Skip to content

Commit da59c75

Browse files
daniele-zuricoSergioBanderaGarciasri-viswanathancg-julian-taylorszilvihorvath
authored
Release/0.6 (#401)
* feat: add value to button * feat:select-containerId (#350) * fix: On initial render, ensure that the input prompt for Autocomplete is not visible unless focused (#357) * Feature/upgrade deps (#359) * feat: upgrade deps * feat: downgrade microbundle * Autocomplete: Ensure the value of controlled input is never undefined (#358) * feat: upgrade microbundle (#360) * fix: Accessibility improvements (#361) * Feature/autocomplete (#364) * feat: add dynamic id to the list * feat: add dynamic id to the list * feat: change on the id * feat: remove jss dependecy (#365) * Make onChange prop optional for FormGroup component (#368) * feat: use sass library instead of node-sass * feat: onChange type now optional * Separate radio and checkbox groups (#380) * feat: remove <FormRadio> storybook (#369) * feat: Deprecate <FormRadio> (#370) * feat: remove <FormGroup /> and related stories * Task create form radio (#371) * feat: Deprecate <FormRadio> * feat: add <FormRadio /> component * feat: add <FormRadioCheckboxBase> component * feat: update dev script * feat: move <FormGroup /> to <FormRadio /> * feat: rename test FormGroup to RadioGroup * feat: add storybook documentation * feat: Rename StyledRadios to Styled * feat: Fix unstyled stories * Task create checkbox group (#373) * feat: create <CheckboxGroup /> component * feat: update test * feat: fix test. Was looking for wrong element * feat: update storybook documentation (#378) * feat: remove "unstyled" dir from radioGroup story * feat: update storybook doc for single checkbox (#381) * Correct single checkbox stories (#382) * feat: correct <FormCheckbox /> Stories * feat: correct <FormCheckbox /> Stories * feat: add class to fix styling (#383) * fix: add correct components to example src (#385) * feat: move elements outside of label (#387) * Conditionally render aria-label (#386) * feat: conditionally render aria-label * feat: unit test failed eslint checks * Feature/upgrade storybook (#392) * feat: update storybook * feat: update storybook * Feature/tab index (#389) * fix: tabIndex prop for Button CopyToClipboard Details and FormDate * fix: tabIndex type to string * fix: tabIndex back to number * fix: tabIndex and missing tests * fix: updated liveEdit files Co-authored-by: Daniele Zurico <[email protected]> * fix: allow closing of the options list with the Escape key instead of onBlur (#400) * Feat/update readme (#391) * Update CHANGELOG.md Co-authored-by: SergioBandera <[email protected]> Co-authored-by: Sri Viswanathan <[email protected]> Co-authored-by: cg-julian-taylor <[email protected]> Co-authored-by: Szilvi Horvath <[email protected]>
1 parent 1e58be9 commit da59c75

File tree

68 files changed

+4401
-3766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+4401
-3766
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
## 0.6.0 (10/01/2023)
2+
3+
<a name="0.6.0"></a>
4+
5+
- [Radio - add extra prop](https://github.com/Capgemini/dcx-react-library/issues/313)
6+
- [Autocomplete - a11y enable keyboard keys](https://github.com/Capgemini/dcx-react-library/issues/320)
7+
- [Button - add value prop](https://github.com/Capgemini/dcx-react-library/issues/332)
8+
- [Button - default aria attribute](https://github.com/Capgemini/dcx-react-library/issues/334)
9+
- [FormSelect - add containerId prop](https://github.com/Capgemini/dcx-react-library/issues/335)
10+
- [MultiUpload - HTML output refactor](https://github.com/Capgemini/dcx-react-library/issues/352)
11+
- [Autocomplete - empty field on enter](https://github.com/Capgemini/dcx-react-library/issues/354)
12+
- [Autocomplete - remove prompt on page load](https://github.com/Capgemini/dcx-react-library/issues/355)
13+
- [Autocomplete - add props optionsId for each item in the list](https://github.com/Capgemini/dcx-react-library/issues/363)
14+
- [FormGroup - make onChange optional](https://github.com/Capgemini/dcx-react-library/issues/366) [same property apply to FormRadio and FormCheckbox]
15+
16+
**Deprecated**
17+
18+
The following component has been deprecated and removed from storybook. It will be removed in the next release
19+
20+
- [FormRadio component](https://github.com/Capgemini/dcx-react-library/issues/353)
21+
22+
**Removed**
23+
24+
- [FormGroup component](https://github.com/Capgemini/dcx-react-library/issues/353)
25+
26+
**New components**
27+
28+
Two new components has been created. In case you used the FormRadio component will be easy enough to rename it and remove the type property.
29+
30+
- [RadioGroup component](https://github.com/Capgemini/dcx-react-library/issues/353)
31+
- [CheckboxGroup component](https://github.com/Capgemini/dcx-react-library/issues/353)
32+
33+
**Dependencies**
34+
35+
- [remove external dependency from react-jss](https://github.com/Capgemini/dcx-react-library/issues/356)
36+
- [bumping versions](https://github.com/Capgemini/dcx-react-library/issues/341)
37+
138
## 0.5.0 (1/09/2022)
239

340
<a name="0.5.0"></a>

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,19 @@ Thanks goes to these wonderful people
137137
<sub><b>Sri Viswanathan</b></sub>
138138
</a>
139139
</td>
140+
<td align="center">
141+
<a href="https://github.com/cg-julian-taylor">
142+
<img src="https://avatars.githubusercontent.com/u/107050226?v=4" width="100px;" alt=julian-taylor"/>
143+
<br />
144+
<sub><b>Julian Taylor</b></sub>
145+
</a>
146+
</td>
147+
<td align="center">
148+
<a href="https://github.com/SergioBanderaGarcia">
149+
<img src="https://avatars.githubusercontent.com/u/113599747?v=4" width="100px;" alt=sergio-bandera-garcia"/>
150+
<br />
151+
<sub><b>Sergio Bandera Garcia</b></sub>
152+
</a>
153+
</td>
140154
</tr>
141155
</table>

example/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@fortawesome/fontawesome-svg-core": "^6.1.1",
7-
"@fortawesome/free-solid-svg-icons": "^6.1.1",
8-
"@fortawesome/react-fontawesome": "^0.1.18",
9-
"@testing-library/jest-dom": "^5.16.4",
10-
"@testing-library/react": "^13.3.0",
11-
"@testing-library/user-event": "^14.2.1",
12-
"@types/jest": "^28.1.3",
13-
"@types/node": "^18.0.0",
14-
"microbundle": "0.15.0",
15-
"react-router-dom": "6.3.0",
6+
"@fortawesome/fontawesome-svg-core": "6.2.0",
7+
"@fortawesome/free-solid-svg-icons": "6.2.0",
8+
"@fortawesome/react-fontawesome": "0.2.0",
9+
"@testing-library/jest-dom": "5.16.5",
10+
"@testing-library/react": "13.4.0",
11+
"@testing-library/user-event": "14.4.3",
12+
"@types/jest": "29.2.0",
13+
"@types/node": "18.11.8",
14+
"microbundle": "0.15.1",
15+
"react-router-dom": "6.4.2",
1616
"react-scripts": "5.0.1",
17-
"typescript": "^4.7.4"
17+
"typescript": "4.8.4"
1818
},
1919
"scripts": {
2020
"start": "react-scripts start",

example/src/components/FormCheckboxDemo.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { FormCheckbox, FormGroup } from '@capgeminiuk/dcx-react-library';
2+
import { FormCheckbox, CheckboxGroup } from '@capgeminiuk/dcx-react-library';
33

44
export const FormCheckboxDemo = () => {
55
const [value, setValue] = React.useState('');
@@ -48,9 +48,8 @@ export const FormCheckboxDemo = () => {
4848
disabled={true}
4949
/>
5050
<h2>Group</h2>
51-
<FormGroup
51+
<CheckboxGroup
5252
name="name-of-group"
53-
type="checkbox"
5453
onChange={handleFormChange}
5554
items={[
5655
{
@@ -133,9 +132,8 @@ export const FormCheckboxDemo = () => {
133132
}}
134133
/>
135134
<h2>Group using string values</h2>
136-
<FormGroup
135+
<CheckboxGroup
137136
name="name-of-group-string"
138-
type="checkbox"
139137
onChange={handleFormChange}
140138
items={['yes', 'no']}
141139
/>

example/src/components/FormRadioDemo.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { FormRadio, FormGroup } from '@capgeminiuk/dcx-react-library';
2+
import { FormRadio, RadioGroup } from '@capgeminiuk/dcx-react-library';
33

44
export const FormRadioDemo = () => {
55
const [selected, setSelected] = React.useState('single-2');
@@ -153,10 +153,9 @@ export const FormRadioDemo = () => {
153153
}}
154154
/>
155155
<h4 id="basic-radio-group-tag">Basic Group Radios</h4>
156-
<FormGroup
156+
<RadioGroup
157157
ariaDescribedBy="basic-radio-group-tag"
158158
name="group3"
159-
type="radio"
160159
items={[
161160
{
162161
id: 'radio-1',
@@ -212,10 +211,9 @@ export const FormRadioDemo = () => {
212211
<h4 id="basic-radio-group-with-string-tag">
213212
Basic Group Radios using string
214213
</h4>
215-
<FormGroup
214+
<RadioGroup
216215
ariaDescribedBy="basic-radio-group-tag"
217216
name="group4"
218-
type="radio"
219217
items={['Option 1', 'Option 2', 'Option 3']}
220218
//@ts-ignore
221219
onChange={handleGroupConditionalChange}

example/src/pages/Register.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
FormRadio,
1010
FormSelect,
1111
Toggle,
12-
FormGroup,
12+
RadioGroup,
1313
Autocomplete,
1414
FormDate,
1515
ErrorPosition,
@@ -462,9 +462,8 @@ export const Register = () => {
462462
</div>
463463

464464
<div className="form-group">
465-
<FormGroup
465+
<RadioGroup
466466
name="heard-about"
467-
type="radio"
468467
inputProps={{
469468
className: 'class-name',
470469
}}
@@ -517,8 +516,7 @@ export const Register = () => {
517516
fieldsetClasses="field-set-class"
518517
hint={{
519518
id: 'heard-about-hint',
520-
text:
521-
'Please select the one closest to where you first heard about us',
519+
text: 'Please select the one closest to where you first heard about us',
522520
className: 'hint-class',
523521
}}
524522
itemsClasses="item-classes"

0 commit comments

Comments
 (0)