@telus-uds/components-base 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -2
- package/component-docs.json +264 -18
- package/lib/Button/ButtonGroup.js +118 -45
- package/lib/Checkbox/CheckboxGroup.js +3 -3
- package/lib/ExpandCollapse/Panel.js +2 -1
- package/lib/Fieldset/Fieldset.js +7 -0
- package/lib/InputLabel/InputLabel.js +8 -1
- package/lib/InputSupports/InputSupports.js +7 -0
- package/lib/Notification/Notification.js +1 -1
- package/lib/Radio/RadioGroup.js +12 -5
- package/lib/RadioCard/RadioCardGroup.js +7 -0
- package/lib/Search/Search.js +1 -1
- package/lib/Skeleton/Skeleton.js +48 -2
- package/lib/ToggleSwitch/ToggleSwitch.js +7 -0
- package/lib/ToggleSwitch/ToggleSwitchGroup.js +7 -0
- package/lib/Tooltip/Tooltip.js +1 -1
- package/lib/utils/animation/useVerticalExpandAnimation.js +26 -13
- package/lib/utils/props/inputSupportsProps.js +7 -0
- package/lib/utils/props/textInputProps.js +2 -1
- package/lib-module/Button/ButtonGroup.js +117 -45
- package/lib-module/Checkbox/CheckboxGroup.js +3 -3
- package/lib-module/ExpandCollapse/Panel.js +2 -1
- package/lib-module/Fieldset/Fieldset.js +7 -0
- package/lib-module/InputLabel/InputLabel.js +8 -1
- package/lib-module/InputSupports/InputSupports.js +7 -0
- package/lib-module/Notification/Notification.js +1 -1
- package/lib-module/Radio/RadioGroup.js +12 -5
- package/lib-module/RadioCard/RadioCardGroup.js +7 -0
- package/lib-module/Search/Search.js +1 -1
- package/lib-module/Skeleton/Skeleton.js +49 -3
- package/lib-module/ToggleSwitch/ToggleSwitch.js +7 -0
- package/lib-module/ToggleSwitch/ToggleSwitchGroup.js +7 -0
- package/lib-module/Tooltip/Tooltip.js +1 -1
- package/lib-module/utils/animation/useVerticalExpandAnimation.js +26 -14
- package/lib-module/utils/props/inputSupportsProps.js +7 -0
- package/lib-module/utils/props/textInputProps.js +2 -1
- package/package.json +11 -6
- package/src/Button/ButtonGroup.jsx +106 -41
- package/src/Checkbox/Checkbox.jsx +7 -4
- package/src/Checkbox/CheckboxGroup.jsx +3 -3
- package/src/ExpandCollapse/Panel.jsx +3 -1
- package/src/Fieldset/Fieldset.jsx +6 -0
- package/src/InputLabel/InputLabel.jsx +17 -2
- package/src/InputSupports/InputSupports.jsx +9 -1
- package/src/Notification/Notification.jsx +1 -1
- package/src/Radio/Radio.jsx +5 -1
- package/src/Radio/RadioGroup.jsx +11 -5
- package/src/RadioCard/RadioCard.jsx +5 -1
- package/src/RadioCard/RadioCardGroup.jsx +6 -0
- package/src/Search/Search.jsx +1 -1
- package/src/Skeleton/Skeleton.jsx +56 -3
- package/src/ToggleSwitch/ToggleSwitch.jsx +6 -0
- package/src/ToggleSwitch/ToggleSwitchGroup.jsx +6 -0
- package/src/Tooltip/Tooltip.jsx +1 -1
- package/src/utils/animation/useVerticalExpandAnimation.js +25 -12
- package/src/utils/props/inputSupportsProps.js +6 -1
- package/src/utils/props/textInputProps.js +2 -1
- package/src/utils/props/tokens.js +21 -19
- package/.storybook/main.js +0 -4
- package/.storybook/preview.js +0 -37
- package/.turbo/turbo-build.log +0 -8
- package/.turbo/turbo-lint.log +0 -13
- package/CHANGELOG.json +0 -235
- package/__fixtures__/Accessible.js +0 -35
- package/__fixtures__/Accessible.native.js +0 -35
- package/__fixtures__/Theme.jsx +0 -13
- package/__fixtures__/Viewport.jsx +0 -17
- package/__fixtures__/test-utils.js +0 -25
- package/__fixtures__/testTheme.js +0 -1830
- package/__tests__/A11yText/A11yText.test.jsx +0 -34
- package/__tests__/ActivityIndicator/ActivityIndicator.test.jsx +0 -68
- package/__tests__/ActivityIndicator/__snapshots__/ActivityIndicator.test.jsx.snap +0 -287
- package/__tests__/Box/Box.test.jsx +0 -111
- package/__tests__/Button/Button.test.jsx +0 -86
- package/__tests__/Button/ButtonBase.test.jsx +0 -82
- package/__tests__/Button/ButtonGroup.test.jsx +0 -347
- package/__tests__/Button/ButtonLink.test.jsx +0 -61
- package/__tests__/Card/Card.test.jsx +0 -63
- package/__tests__/Checkbox/Checkbox.test.jsx +0 -94
- package/__tests__/Checkbox/CheckboxGroup.test.jsx +0 -246
- package/__tests__/Divider/Divider.test.jsx +0 -91
- package/__tests__/ExpandCollapse/ExpandCollapse.test.jsx +0 -109
- package/__tests__/Feedback/Feedback.test.jsx +0 -42
- package/__tests__/FlexGrid/Col.test.jsx +0 -256
- package/__tests__/FlexGrid/FlexGrid.test.jsx +0 -136
- package/__tests__/FlexGrid/Row.test.jsx +0 -273
- package/__tests__/HorizontalScroll/HorizontalScroll.test.jsx +0 -165
- package/__tests__/Icon/Icon.test.jsx +0 -61
- package/__tests__/IconButton/IconButton.test.jsx +0 -52
- package/__tests__/InputSupports/InputSupports.test.jsx +0 -50
- package/__tests__/Link/Link.test.jsx +0 -63
- package/__tests__/Link/TextButton.test.jsx +0 -35
- package/__tests__/List/List.test.jsx +0 -60
- package/__tests__/Modal/Modal.test.jsx +0 -47
- package/__tests__/Notification/Notification.test.jsx +0 -20
- package/__tests__/Pagination/Pagination.test.jsx +0 -160
- package/__tests__/Progress/Progress.test.jsx +0 -79
- package/__tests__/Radio/Radio.test.jsx +0 -87
- package/__tests__/Radio/RadioGroup.test.jsx +0 -220
- package/__tests__/RadioCard/RadioCard.test.jsx +0 -87
- package/__tests__/RadioCard/RadioCardGroup.test.jsx +0 -246
- package/__tests__/Search/Search.test.jsx +0 -73
- package/__tests__/Select/Select.test.jsx +0 -94
- package/__tests__/SideNav/SideNav.test.jsx +0 -110
- package/__tests__/Skeleton/Skeleton.test.jsx +0 -61
- package/__tests__/Spacer/Spacer.test.jsx +0 -63
- package/__tests__/StackView/StackView.test.jsx +0 -216
- package/__tests__/StackView/StackWrap.test.jsx +0 -47
- package/__tests__/StackView/getStackedContent.test.jsx +0 -295
- package/__tests__/StepTracker/StepTracker.test.jsx +0 -94
- package/__tests__/Tabs/Tabs.test.jsx +0 -40
- package/__tests__/Tags/Tags.test.jsx +0 -327
- package/__tests__/TextInput/TextArea.test.jsx +0 -35
- package/__tests__/TextInput/TextInputBase.test.jsx +0 -125
- package/__tests__/ThemeProvider/ThemeProvider.test.jsx +0 -77
- package/__tests__/ThemeProvider/useThemeTokens.test.jsx +0 -514
- package/__tests__/ThemeProvider/utils/theme-tokens.test.js +0 -41
- package/__tests__/ToggleSwitch/ToggleSwitch.test.jsx +0 -82
- package/__tests__/ToggleSwitch/ToggleSwitchGroup.test.jsx +0 -192
- package/__tests__/Tooltip/Tooltip.test.jsx +0 -65
- package/__tests__/Tooltip/getTooltipPosition.test.js +0 -79
- package/__tests__/Typography/typography.test.jsx +0 -90
- package/__tests__/utils/children.test.jsx +0 -128
- package/__tests__/utils/containUniqueFields.test.js +0 -25
- package/__tests__/utils/input.test.js +0 -375
- package/__tests__/utils/props.test.js +0 -36
- package/__tests__/utils/semantics.test.jsx +0 -34
- package/__tests__/utils/useCopy.test.js +0 -42
- package/__tests__/utils/useResponsiveProp.test.jsx +0 -202
- package/__tests__/utils/useSpacingScale.test.jsx +0 -273
- package/__tests__/utils/useUniqueId.test.js +0 -31
- package/babel.config.js +0 -35
- package/generate-component-docs.js +0 -72
- package/jest.config.js +0 -32
- package/stories/A11yText/A11yText.stories.jsx +0 -71
- package/stories/ActivityIndicator/ActivityIndicator.stories.jsx +0 -22
- package/stories/Box/Box.stories.jsx +0 -143
- package/stories/Button/Button.stories.jsx +0 -72
- package/stories/Button/ButtonGroup.stories.jsx +0 -81
- package/stories/Button/ButtonLink.stories.jsx +0 -30
- package/stories/Card/Card.stories.jsx +0 -62
- package/stories/Checkbox/Checkbox.stories.jsx +0 -94
- package/stories/Divider/Divider.stories.jsx +0 -68
- package/stories/ExpandCollapse/ExpandCollapse.stories.jsx +0 -112
- package/stories/Feedback/Feedback.stories.jsx +0 -96
- package/stories/FlexGrid/01 FlexGrid.stories.jsx +0 -54
- package/stories/FlexGrid/02 Row.stories.jsx +0 -41
- package/stories/FlexGrid/03 Col.stories.jsx +0 -141
- package/stories/Icon/Icon.stories.jsx +0 -79
- package/stories/IconButton/IconButton.stories.jsx +0 -50
- package/stories/InputLabel/InputLabel.stories.jsx +0 -39
- package/stories/Link/ChevronLink.stories.jsx +0 -48
- package/stories/Link/Link.stories.jsx +0 -90
- package/stories/Link/TextButton.stories.jsx +0 -79
- package/stories/List/List.stories.jsx +0 -117
- package/stories/Modal/Modal.stories.jsx +0 -54
- package/stories/Notification/Notification.stories.jsx +0 -82
- package/stories/Pagination/Pagination.stories.jsx +0 -64
- package/stories/Progress/Progress.stories.jsx +0 -93
- package/stories/Radio/Radio.stories.jsx +0 -100
- package/stories/RadioCard/RadioCard.stories.jsx +0 -98
- package/stories/Search/Search.stories.jsx +0 -66
- package/stories/Select/Select.stories.jsx +0 -55
- package/stories/SideNav/SideNav.stories.jsx +0 -42
- package/stories/SideNav/SideNavItem.stories.jsx +0 -9
- package/stories/SideNav/SideNavItemsGroup.stories.jsx +0 -17
- package/stories/Skeleton/Skeleton.stories.jsx +0 -36
- package/stories/Spacer/Spacer.stories.jsx +0 -38
- package/stories/StackView/StackView.stories.jsx +0 -75
- package/stories/StackView/StackWrap.stories.jsx +0 -64
- package/stories/StepTracker/StepTracker.stories.jsx +0 -71
- package/stories/Tabs/Tabs.stories.jsx +0 -97
- package/stories/Tags/Tags.stories.jsx +0 -69
- package/stories/TextInput/TextArea.stories.jsx +0 -101
- package/stories/TextInput/TextInput.stories.jsx +0 -141
- package/stories/ToggleSwitch/ToggleSwitch.stories.jsx +0 -64
- package/stories/ToggleSwitch/ToggleSwitchGroup.stories.jsx +0 -81
- package/stories/Tooltip/Tooltip.stories.jsx +0 -81
- package/stories/TooltipButton/TooltipButton.stories.jsx +0 -11
- package/stories/Typography/Typography.stories.jsx +0 -49
- package/stories/platform-supports.jsx +0 -32
- package/stories/platform-supports.native.jsx +0 -3
- package/stories/supports.jsx +0 -236
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-base
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue,
|
|
3
|
+
This log was last generated on Tue, 07 Jun 2022 14:07:20 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.8.1
|
|
8
|
+
|
|
9
|
+
Tue, 07 Jun 2022 14:07:20 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- prune files included in published packages (cody.zuschlag@nearform.com)
|
|
14
|
+
- Bump @telus-uds/system-constants to v1.0.3
|
|
15
|
+
- Bump @telus-uds/system-theme-tokens to v2.0.1
|
|
16
|
+
- Bump @telus-uds/browserslist-config to v1.0.2
|
|
17
|
+
|
|
18
|
+
## 1.8.0
|
|
19
|
+
|
|
20
|
+
Fri, 03 Jun 2022 17:26:38 GMT
|
|
21
|
+
|
|
22
|
+
### Minor changes
|
|
23
|
+
|
|
24
|
+
- feat: add passing `copy` for tooltips to components using it internally (ruslan.bredikhin@nearform.com)
|
|
25
|
+
- add Fieldset to ButtonGroup (legend, feedback etc) (alan.slater@nearform.com)
|
|
26
|
+
- Bump @telus-uds/system-theme-tokens to v2.0.0
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- Make collapsed items in ExpandCollapse non-focusable (alan.slater@nearform.com)
|
|
31
|
+
- linting updates (simon.lawrence@nearform.com)
|
|
32
|
+
- fix Skeleton size proptype (alan.slater@nearform.com)
|
|
33
|
+
- make Skeleton props more intuitive (alan.slater@nearform.com)
|
|
34
|
+
|
|
35
|
+
## 1.7.1
|
|
36
|
+
|
|
37
|
+
Tue, 17 May 2022 19:56:05 GMT
|
|
38
|
+
|
|
39
|
+
### Patches
|
|
40
|
+
|
|
41
|
+
- fix(components): fix inactive TextInput prop (alan.slater@nearform.com)
|
|
42
|
+
|
|
7
43
|
## 1.7.0
|
|
8
44
|
|
|
9
|
-
Tue, 17 May 2022 15:04:
|
|
45
|
+
Tue, 17 May 2022 15:04:46 GMT
|
|
10
46
|
|
|
11
47
|
### Minor changes
|
|
12
48
|
|
package/component-docs.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"ButtonGroup": {
|
|
38
38
|
"space": "integer",
|
|
39
|
+
"fieldSpace": "integer",
|
|
39
40
|
"direction": "direction",
|
|
40
41
|
"alignItems": "flexAlign",
|
|
41
42
|
"justifyContent": "flexJustifyContent",
|
|
@@ -748,6 +749,7 @@
|
|
|
748
749
|
},
|
|
749
750
|
"ToggleSwitchGroup": {
|
|
750
751
|
"space": "integer",
|
|
752
|
+
"fieldSpace": "integer",
|
|
751
753
|
"direction": "direction",
|
|
752
754
|
"alignItems": "flexAlign",
|
|
753
755
|
"justifyContent": "flexJustifyContent",
|
|
@@ -2824,6 +2826,27 @@
|
|
|
2824
2826
|
"docs": {
|
|
2825
2827
|
"description": "An alternative to InputSupports for groups of input elements that, on web, are to be\nwrapped in a `<fieldset>` tag, with label content displated in a `<legend>` tag.\n\nFollows the same theming and most of the same props as InputSupports.",
|
|
2826
2828
|
"props": {
|
|
2829
|
+
"copy": {
|
|
2830
|
+
"defaultValue": {
|
|
2831
|
+
"value": "'en'",
|
|
2832
|
+
"computed": false
|
|
2833
|
+
},
|
|
2834
|
+
"type": {
|
|
2835
|
+
"name": "enum",
|
|
2836
|
+
"value": [
|
|
2837
|
+
{
|
|
2838
|
+
"value": "'en'",
|
|
2839
|
+
"computed": false
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"value": "'fr'",
|
|
2843
|
+
"computed": false
|
|
2844
|
+
}
|
|
2845
|
+
]
|
|
2846
|
+
},
|
|
2847
|
+
"required": false,
|
|
2848
|
+
"description": "Whether the English or French copy will be used (e.g. for accessibility labels)."
|
|
2849
|
+
},
|
|
2827
2850
|
"feedbackPosition": {
|
|
2828
2851
|
"defaultValue": {
|
|
2829
2852
|
"value": "'top'",
|
|
@@ -4182,6 +4205,27 @@
|
|
|
4182
4205
|
"docs": {
|
|
4183
4206
|
"description": "",
|
|
4184
4207
|
"props": {
|
|
4208
|
+
"copy": {
|
|
4209
|
+
"defaultValue": {
|
|
4210
|
+
"value": "'en'",
|
|
4211
|
+
"computed": false
|
|
4212
|
+
},
|
|
4213
|
+
"type": {
|
|
4214
|
+
"name": "enum",
|
|
4215
|
+
"value": [
|
|
4216
|
+
{
|
|
4217
|
+
"value": "'en'",
|
|
4218
|
+
"computed": false
|
|
4219
|
+
},
|
|
4220
|
+
{
|
|
4221
|
+
"value": "'fr'",
|
|
4222
|
+
"computed": false
|
|
4223
|
+
}
|
|
4224
|
+
]
|
|
4225
|
+
},
|
|
4226
|
+
"required": false,
|
|
4227
|
+
"description": "Whether the English or French copy will be used (e.g. for accessibility labels)."
|
|
4228
|
+
},
|
|
4185
4229
|
"hintPosition": {
|
|
4186
4230
|
"defaultValue": {
|
|
4187
4231
|
"value": "'inline'",
|
|
@@ -4843,7 +4887,7 @@
|
|
|
4843
4887
|
]
|
|
4844
4888
|
},
|
|
4845
4889
|
"required": false,
|
|
4846
|
-
"description": "Select
|
|
4890
|
+
"description": "Select English or French copy for the accessible label of the dismiss button."
|
|
4847
4891
|
},
|
|
4848
4892
|
"children": {
|
|
4849
4893
|
"type": {
|
|
@@ -5742,7 +5786,7 @@
|
|
|
5742
5786
|
]
|
|
5743
5787
|
},
|
|
5744
5788
|
"required": false,
|
|
5745
|
-
"description": "Select
|
|
5789
|
+
"description": "Select English or French copy for the accessible labels.\nYou may also pass in a custom dictionary object."
|
|
5746
5790
|
},
|
|
5747
5791
|
"initialValue": {
|
|
5748
5792
|
"type": {
|
|
@@ -6357,6 +6401,27 @@
|
|
|
6357
6401
|
"docs": {
|
|
6358
6402
|
"description": "",
|
|
6359
6403
|
"props": {
|
|
6404
|
+
"sizeIndex": {
|
|
6405
|
+
"defaultValue": {
|
|
6406
|
+
"value": "size",
|
|
6407
|
+
"computed": true
|
|
6408
|
+
},
|
|
6409
|
+
"type": {
|
|
6410
|
+
"name": "union",
|
|
6411
|
+
"value": [
|
|
6412
|
+
{
|
|
6413
|
+
"name": "custom",
|
|
6414
|
+
"raw": "spacingIndexPropType"
|
|
6415
|
+
},
|
|
6416
|
+
{
|
|
6417
|
+
"name": "custom",
|
|
6418
|
+
"raw": "spacingObjectPropType"
|
|
6419
|
+
}
|
|
6420
|
+
]
|
|
6421
|
+
},
|
|
6422
|
+
"required": false,
|
|
6423
|
+
"description": "Sets the size of Skeleton lines or shape according to the theme's spacing scale. For example, size={1} gives the smallest non-zero theme-defined spacing size.\n\nMay also accept an object with responsive viewport keys or spacing scale options - see `useSpacingScale` for details."
|
|
6424
|
+
},
|
|
6360
6425
|
"shape": {
|
|
6361
6426
|
"defaultValue": {
|
|
6362
6427
|
"value": "'line'",
|
|
@@ -6380,7 +6445,7 @@
|
|
|
6380
6445
|
]
|
|
6381
6446
|
},
|
|
6382
6447
|
"required": false,
|
|
6383
|
-
"description": ""
|
|
6448
|
+
"description": "Determines if the skeleton should resemble lines of text (default), a circle, or a square box with themed rounded corners."
|
|
6384
6449
|
},
|
|
6385
6450
|
"tokens": {
|
|
6386
6451
|
"type": {
|
|
@@ -6421,24 +6486,42 @@
|
|
|
6421
6486
|
},
|
|
6422
6487
|
"size": {
|
|
6423
6488
|
"type": {
|
|
6424
|
-
"name": "
|
|
6489
|
+
"name": "union",
|
|
6490
|
+
"value": [
|
|
6491
|
+
{
|
|
6492
|
+
"name": "custom",
|
|
6493
|
+
"raw": "spacingIndexPropType"
|
|
6494
|
+
},
|
|
6495
|
+
{
|
|
6496
|
+
"name": "custom",
|
|
6497
|
+
"raw": "spacingObjectPropType"
|
|
6498
|
+
}
|
|
6499
|
+
]
|
|
6425
6500
|
},
|
|
6426
6501
|
"required": false,
|
|
6427
|
-
"description": ""
|
|
6502
|
+
"description": "@deprecated alias for `sizeIndex`"
|
|
6503
|
+
},
|
|
6504
|
+
"sizePixels": {
|
|
6505
|
+
"type": {
|
|
6506
|
+
"name": "custom",
|
|
6507
|
+
"raw": "responsiveProps.getTypeOptionallyByViewport(propTypes.number)"
|
|
6508
|
+
},
|
|
6509
|
+
"required": false,
|
|
6510
|
+
"description": "Sets the size of Skeleton lines or shape to an exact number of pixels. Use when it's necessary to exactly match sizes of images or other boxes.\n\nAccepts a number or an object with responsive viewport keys, e.g. { xs: 32, lg: 64 } would be 32px at xs, sm and md and 64 at lg and xl viewports."
|
|
6428
6511
|
},
|
|
6429
6512
|
"characters": {
|
|
6430
6513
|
"type": {
|
|
6431
6514
|
"name": "number"
|
|
6432
6515
|
},
|
|
6433
6516
|
"required": false,
|
|
6434
|
-
"description": ""
|
|
6517
|
+
"description": "Determines the width of simulated lines of text if the Skeleton's shape is 'line' (the default shape).\n\nOnly has any affect if shape is line (the default). If unset, takes a default value from the theme."
|
|
6435
6518
|
},
|
|
6436
6519
|
"lines": {
|
|
6437
6520
|
"type": {
|
|
6438
6521
|
"name": "number"
|
|
6439
6522
|
},
|
|
6440
6523
|
"required": false,
|
|
6441
|
-
"description": ""
|
|
6524
|
+
"description": "Determines how many Skeleton items are rendered (default 1).\n\nRecommended usage is to simulate paragraphs of text when Skeleton's shape is 'line' (the default shape).\n\nThe amount of spacing between multiple lines is controlled by theme tokens."
|
|
6442
6525
|
}
|
|
6443
6526
|
},
|
|
6444
6527
|
"attributes": {
|
|
@@ -7223,7 +7306,7 @@
|
|
|
7223
7306
|
]
|
|
7224
7307
|
},
|
|
7225
7308
|
"required": false,
|
|
7226
|
-
"description": "Select
|
|
7309
|
+
"description": "Select English or French copy for the accessible label."
|
|
7227
7310
|
},
|
|
7228
7311
|
"children": {
|
|
7229
7312
|
"type": {
|
|
@@ -7984,14 +8067,22 @@
|
|
|
7984
8067
|
"value": "false",
|
|
7985
8068
|
"computed": false
|
|
7986
8069
|
},
|
|
7987
|
-
"
|
|
8070
|
+
"type": {
|
|
8071
|
+
"name": "bool"
|
|
8072
|
+
},
|
|
8073
|
+
"required": false,
|
|
8074
|
+
"description": "If true, the buttons cannot be selected by the user and simply show their current state."
|
|
7988
8075
|
},
|
|
7989
8076
|
"inactive": {
|
|
7990
8077
|
"defaultValue": {
|
|
7991
8078
|
"value": "false",
|
|
7992
8079
|
"computed": false
|
|
7993
8080
|
},
|
|
7994
|
-
"
|
|
8081
|
+
"type": {
|
|
8082
|
+
"name": "bool"
|
|
8083
|
+
},
|
|
8084
|
+
"required": false,
|
|
8085
|
+
"description": "If true, the buttons cannot be interacted with, elements are set as `disabled` and if the\ntheme supports `inactive` appearances rules, these are applied."
|
|
7995
8086
|
},
|
|
7996
8087
|
"accessibilityRole": {
|
|
7997
8088
|
"defaultValue": {
|
|
@@ -8005,6 +8096,7 @@
|
|
|
8005
8096
|
"name": "custom",
|
|
8006
8097
|
"raw": {
|
|
8007
8098
|
"space": "integer",
|
|
8099
|
+
"fieldSpace": "integer",
|
|
8008
8100
|
"direction": "direction",
|
|
8009
8101
|
"alignItems": "flexAlign",
|
|
8010
8102
|
"justifyContent": "flexJustifyContent",
|
|
@@ -8062,6 +8154,75 @@
|
|
|
8062
8154
|
},
|
|
8063
8155
|
"required": false,
|
|
8064
8156
|
"description": "If `values` is not passed, making the ButtonGroup an \"uncontrolled\" component\nmanaging its own selected state, a default set of selections may be provided.\nChanging the `initialValues` does not change the user's selections."
|
|
8157
|
+
},
|
|
8158
|
+
"legend": {
|
|
8159
|
+
"type": {
|
|
8160
|
+
"name": "string"
|
|
8161
|
+
},
|
|
8162
|
+
"required": false,
|
|
8163
|
+
"description": "Main text used to describe this group, used in Fieldset's Legend element."
|
|
8164
|
+
},
|
|
8165
|
+
"hint": {
|
|
8166
|
+
"type": {
|
|
8167
|
+
"name": "string"
|
|
8168
|
+
},
|
|
8169
|
+
"required": false,
|
|
8170
|
+
"description": "Optional additional text giving more detail to help a user make a choice."
|
|
8171
|
+
},
|
|
8172
|
+
"tooltip": {
|
|
8173
|
+
"type": {
|
|
8174
|
+
"name": "string"
|
|
8175
|
+
},
|
|
8176
|
+
"required": false,
|
|
8177
|
+
"description": "Optional tooltip text content to include alongside the legend and hint."
|
|
8178
|
+
},
|
|
8179
|
+
"validation": {
|
|
8180
|
+
"type": {
|
|
8181
|
+
"name": "enum",
|
|
8182
|
+
"value": [
|
|
8183
|
+
{
|
|
8184
|
+
"value": "'error'",
|
|
8185
|
+
"computed": false
|
|
8186
|
+
},
|
|
8187
|
+
{
|
|
8188
|
+
"value": "'success'",
|
|
8189
|
+
"computed": false
|
|
8190
|
+
}
|
|
8191
|
+
]
|
|
8192
|
+
},
|
|
8193
|
+
"required": false,
|
|
8194
|
+
"description": "Current validation status of the group, passed to the feedback element if there is one."
|
|
8195
|
+
},
|
|
8196
|
+
"feedback": {
|
|
8197
|
+
"type": {
|
|
8198
|
+
"name": "string"
|
|
8199
|
+
},
|
|
8200
|
+
"required": false,
|
|
8201
|
+
"description": "If provided, a Feedback element is rendered containing this text."
|
|
8202
|
+
},
|
|
8203
|
+
"name": {
|
|
8204
|
+
"type": {
|
|
8205
|
+
"name": "string"
|
|
8206
|
+
},
|
|
8207
|
+
"required": false,
|
|
8208
|
+
"description": "On Web, this is passed to the `name` attribute of the fieldset."
|
|
8209
|
+
},
|
|
8210
|
+
"copy": {
|
|
8211
|
+
"type": {
|
|
8212
|
+
"name": "enum",
|
|
8213
|
+
"value": [
|
|
8214
|
+
{
|
|
8215
|
+
"value": "'en'",
|
|
8216
|
+
"computed": false
|
|
8217
|
+
},
|
|
8218
|
+
{
|
|
8219
|
+
"value": "'fr'",
|
|
8220
|
+
"computed": false
|
|
8221
|
+
}
|
|
8222
|
+
]
|
|
8223
|
+
},
|
|
8224
|
+
"required": false,
|
|
8225
|
+
"description": "Sets the language of microcopy in subcomponents (e.g. Tooltip's default accessibility label)."
|
|
8065
8226
|
}
|
|
8066
8227
|
},
|
|
8067
8228
|
"attributes": {
|
|
@@ -8247,21 +8408,21 @@
|
|
|
8247
8408
|
"name": "bool"
|
|
8248
8409
|
},
|
|
8249
8410
|
"required": false,
|
|
8250
|
-
"description": "If true, the
|
|
8411
|
+
"description": "If true, the checkboxes cannot be selected by the user and simply show their current state."
|
|
8251
8412
|
},
|
|
8252
8413
|
"inactive": {
|
|
8253
8414
|
"type": {
|
|
8254
8415
|
"name": "bool"
|
|
8255
8416
|
},
|
|
8256
8417
|
"required": false,
|
|
8257
|
-
"description": "If true, the
|
|
8418
|
+
"description": "If true, the checkboxes cannot be interacted with, elements are set as `disabled` and if the\ntheme supports `inactive` appearances rules, these are applied."
|
|
8258
8419
|
},
|
|
8259
8420
|
"name": {
|
|
8260
8421
|
"type": {
|
|
8261
8422
|
"name": "string"
|
|
8262
8423
|
},
|
|
8263
8424
|
"required": false,
|
|
8264
|
-
"description": "On Web, this is passed to the `name` attribute of the fieldset and each
|
|
8425
|
+
"description": "On Web, this is passed to the `name` attribute of the fieldset and each checkbox input."
|
|
8265
8426
|
}
|
|
8266
8427
|
},
|
|
8267
8428
|
"attributes": {
|
|
@@ -8749,8 +8910,29 @@
|
|
|
8749
8910
|
},
|
|
8750
8911
|
"RadioGroup": {
|
|
8751
8912
|
"docs": {
|
|
8752
|
-
"description": "A group of Radios that behave as a radio group. Use when users select a single choice from mutually\nexclusive options.\n\n## Component API\n\nUse the `items` prop to pass an array of objects describing each Radio in the group:\n\n - `label`: main text passed to Radio's `label` prop\n - `id`: identifier used to store which Radio is selected (uses `label` if undefinded)\n - `onChange`: optional function called on selection, in addition to updating the group's selection state\n\n### Controlled version\n\nIf the selection state is controlled from outside, it needs to receive `checkedId` and `onChange` props.\n\n### Uncontrolled version\n\nIf the RadioGroup manages its own state, you can use `initialCheckedId` prop to provide the initial value.\nWhenever the radio
|
|
8913
|
+
"description": "A group of Radios that behave as a radio group. Use when users select a single choice from mutually\nexclusive options.\n\n## Component API\n\nUse the `items` prop to pass an array of objects describing each Radio in the group:\n\n - `label`: main text passed to Radio's `label` prop\n - `id`: identifier used to store which Radio is selected (uses `label` if undefinded)\n - `onChange`: optional function called on selection, in addition to updating the group's selection state\n\n### Controlled version\n\nIf the selection state is controlled from outside, it needs to receive `checkedId` and `onChange` props.\n\n### Uncontrolled version\n\nIf the RadioGroup manages its own state, you can use `initialCheckedId` prop to provide the initial value.\nWhenever the radio gets toggled, it calls the `onChange` callback with the new value (string).\n\n### Use in forms\n\nFor web forms, the `name` prop may be used to define the name of the group's `fieldset` and input elements.\n\n### Validation\n\nValidation state may be set by passing 'error' or 'success' to the `validation` prop.\n\n## A11y guidelines\n\nRadioGroup accepts all the common accessibility props, but also sets accessibility role `'radiogroup'`\nand controls the accessibility state of children like Radio and Feedback based on current state.\n\n@example\n```jsx\n<RadioGroup\n initialCheckedId=\"radio1\"\n items={[\n { label: 'Radio 1', id: 'radio1' },\n { label: 'Radio 2', id: 'radio2' },\n { label: 'Radio 3', id: 'radio3' }\n ]}\n legend=\"Radios\"\n hint=\"Choose one option\"\n/>\n```",
|
|
8753
8914
|
"props": {
|
|
8915
|
+
"copy": {
|
|
8916
|
+
"defaultValue": {
|
|
8917
|
+
"value": "'en'",
|
|
8918
|
+
"computed": false
|
|
8919
|
+
},
|
|
8920
|
+
"type": {
|
|
8921
|
+
"name": "enum",
|
|
8922
|
+
"value": [
|
|
8923
|
+
{
|
|
8924
|
+
"value": "'en'",
|
|
8925
|
+
"computed": false
|
|
8926
|
+
},
|
|
8927
|
+
{
|
|
8928
|
+
"value": "'fr'",
|
|
8929
|
+
"computed": false
|
|
8930
|
+
}
|
|
8931
|
+
]
|
|
8932
|
+
},
|
|
8933
|
+
"required": false,
|
|
8934
|
+
"description": "Whether the English or French copy will be used (e.g. for accessibility labels)."
|
|
8935
|
+
},
|
|
8754
8936
|
"items": {
|
|
8755
8937
|
"defaultValue": {
|
|
8756
8938
|
"value": "[]",
|
|
@@ -8903,14 +9085,14 @@
|
|
|
8903
9085
|
"name": "string"
|
|
8904
9086
|
},
|
|
8905
9087
|
"required": false,
|
|
8906
|
-
"description": "If provided, the radio
|
|
9088
|
+
"description": "If provided, the radio with this id is selected on first render."
|
|
8907
9089
|
},
|
|
8908
9090
|
"checkedId": {
|
|
8909
9091
|
"type": {
|
|
8910
9092
|
"name": "string"
|
|
8911
9093
|
},
|
|
8912
9094
|
"required": false,
|
|
8913
|
-
"description": "If not undefined, the radio
|
|
9095
|
+
"description": "If not undefined, the radio with this id is selected (or none is selected if `null`), and the\nelement's selection state will be controlled by its parent using the `onChange` function."
|
|
8914
9096
|
},
|
|
8915
9097
|
"onChange": {
|
|
8916
9098
|
"type": {
|
|
@@ -8924,14 +9106,14 @@
|
|
|
8924
9106
|
"name": "bool"
|
|
8925
9107
|
},
|
|
8926
9108
|
"required": false,
|
|
8927
|
-
"description": "If true, the
|
|
9109
|
+
"description": "If true, the radios cannot be selected by the user and simply show their current state."
|
|
8928
9110
|
},
|
|
8929
9111
|
"inactive": {
|
|
8930
9112
|
"type": {
|
|
8931
9113
|
"name": "bool"
|
|
8932
9114
|
},
|
|
8933
9115
|
"required": false,
|
|
8934
|
-
"description": "If true, the
|
|
9116
|
+
"description": "If true, the radios cannot be interacted with, elements are set as `disabled` and if the\ntheme supports `inactive` appearances rules, these are applied."
|
|
8935
9117
|
},
|
|
8936
9118
|
"name": {
|
|
8937
9119
|
"type": {
|
|
@@ -8950,6 +9132,27 @@
|
|
|
8950
9132
|
"docs": {
|
|
8951
9133
|
"description": "A group of Cards that behave as a radio button group. Use when users select a single choice from mutually\nexclusive options with need to show additional information for each option. The whole cards are each\ninteractive as one item.\n\n## Component API\n\nUse the `items` prop to pass an array of objects describing each RadioCard in the group:\n\n - `title`: main text passed to RadioCard's `title` prop\n - `content`: React content passed to RadioCard's `children` prop\n - `id`: identifier used to store which RadioCard is selected (uses `title` if undefinded)\n - `onChange`: optional function called on selection, in addition to updating the group's selection state\n\n### Controlled version\n\nIf the selection state is controlled from outside, it needs to receive `checkedId` and `onChange` props.\n\n### Uncontrolled version\n\nIf the RadioCardGroup manages its own state, you can use `initialCheckedId` prop to provide the initial value.\nWhenever the radio card gets toggled, it calls the `onChange` callback with the new value (string).\n\n### Use in forms\n\nFor web forms, the `name` prop may be used to define the name of the group's `fieldset` and input elements.\n\n### Validation\n\nValidation state may be set by passing 'error' or 'success' to the `validation` prop.\n\n## A11y guidelines\n\nRadioCardGroup accepts all the common accessibility props, but also sets accessibility role `'radiogroup'`\nand controls the accessibility state of children like RadioCard and Feedback based on current state.\n\n@example\n```jsx\n<RadioCardGroup\n initialCheckedId=\"card1\"\n items={[\n { title: 'Card 1', id: 'card1', content: <Typography>More info</Typography> },\n { title: 'Card 2', id: 'card2', content: <Typography>Extra content</Typography> },\n { title: 'Card 3', id: 'card3', content: <Typography>More content</Typography> }\n ]}\n legend=\"Cards\"\n hint=\"Choose a card to select\"\n/>\n```",
|
|
8952
9134
|
"props": {
|
|
9135
|
+
"copy": {
|
|
9136
|
+
"defaultValue": {
|
|
9137
|
+
"value": "'en'",
|
|
9138
|
+
"computed": false
|
|
9139
|
+
},
|
|
9140
|
+
"type": {
|
|
9141
|
+
"name": "enum",
|
|
9142
|
+
"value": [
|
|
9143
|
+
{
|
|
9144
|
+
"value": "'en'",
|
|
9145
|
+
"computed": false
|
|
9146
|
+
},
|
|
9147
|
+
{
|
|
9148
|
+
"value": "'fr'",
|
|
9149
|
+
"computed": false
|
|
9150
|
+
}
|
|
9151
|
+
]
|
|
9152
|
+
},
|
|
9153
|
+
"required": false,
|
|
9154
|
+
"description": "Whether the English or French copy will be used (e.g. for accessibility labels)."
|
|
9155
|
+
},
|
|
8953
9156
|
"items": {
|
|
8954
9157
|
"defaultValue": {
|
|
8955
9158
|
"value": "[]",
|
|
@@ -9510,6 +9713,27 @@
|
|
|
9510
9713
|
"docs": {
|
|
9511
9714
|
"description": "",
|
|
9512
9715
|
"props": {
|
|
9716
|
+
"copy": {
|
|
9717
|
+
"defaultValue": {
|
|
9718
|
+
"value": "'en'",
|
|
9719
|
+
"computed": false
|
|
9720
|
+
},
|
|
9721
|
+
"type": {
|
|
9722
|
+
"name": "enum",
|
|
9723
|
+
"value": [
|
|
9724
|
+
{
|
|
9725
|
+
"value": "'en'",
|
|
9726
|
+
"computed": false
|
|
9727
|
+
},
|
|
9728
|
+
{
|
|
9729
|
+
"value": "'fr'",
|
|
9730
|
+
"computed": false
|
|
9731
|
+
}
|
|
9732
|
+
]
|
|
9733
|
+
},
|
|
9734
|
+
"required": false,
|
|
9735
|
+
"description": "Whether the English or French copy will be used (e.g. for accessibility labels)."
|
|
9736
|
+
},
|
|
9513
9737
|
"accessibilityRole": {
|
|
9514
9738
|
"defaultValue": {
|
|
9515
9739
|
"value": "'switch'",
|
|
@@ -9647,6 +9871,27 @@
|
|
|
9647
9871
|
"docs": {
|
|
9648
9872
|
"description": "",
|
|
9649
9873
|
"props": {
|
|
9874
|
+
"copy": {
|
|
9875
|
+
"defaultValue": {
|
|
9876
|
+
"value": "'en'",
|
|
9877
|
+
"computed": false
|
|
9878
|
+
},
|
|
9879
|
+
"type": {
|
|
9880
|
+
"name": "enum",
|
|
9881
|
+
"value": [
|
|
9882
|
+
{
|
|
9883
|
+
"value": "'en'",
|
|
9884
|
+
"computed": false
|
|
9885
|
+
},
|
|
9886
|
+
{
|
|
9887
|
+
"value": "'fr'",
|
|
9888
|
+
"computed": false
|
|
9889
|
+
}
|
|
9890
|
+
]
|
|
9891
|
+
},
|
|
9892
|
+
"required": false,
|
|
9893
|
+
"description": "Whether the English or French copy will be used (e.g. for accessibility labels)."
|
|
9894
|
+
},
|
|
9650
9895
|
"items": {
|
|
9651
9896
|
"defaultValue": {
|
|
9652
9897
|
"value": "[]",
|
|
@@ -9721,6 +9966,7 @@
|
|
|
9721
9966
|
"name": "custom",
|
|
9722
9967
|
"raw": {
|
|
9723
9968
|
"space": "integer",
|
|
9969
|
+
"fieldSpace": "integer",
|
|
9724
9970
|
"direction": "direction",
|
|
9725
9971
|
"alignItems": "flexAlign",
|
|
9726
9972
|
"justifyContent": "flexJustifyContent",
|