@telus-uds/components-base 1.60.0 → 1.62.0
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 +19 -2
- package/component-docs.json +306 -116
- package/lib/Autocomplete/Autocomplete.js +483 -0
- package/lib/Autocomplete/Loading.js +51 -0
- package/lib/Autocomplete/Suggestions.js +85 -0
- package/lib/Autocomplete/constants.js +14 -0
- package/lib/Autocomplete/dictionary.js +19 -0
- package/lib/Autocomplete/index.js +13 -0
- package/lib/IconButton/IconButton.js +28 -9
- package/lib/Listbox/GroupControl.js +121 -0
- package/lib/Listbox/Listbox.js +198 -0
- package/lib/Listbox/ListboxGroup.js +142 -0
- package/lib/Listbox/ListboxItem.js +97 -0
- package/lib/Listbox/ListboxOverlay.js +106 -0
- package/lib/Listbox/PressableItem.js +0 -2
- package/lib/Listbox/index.js +5 -24
- package/lib/SideNav/Item.js +7 -15
- package/lib/TextInput/TextInputBase.js +8 -1
- package/lib/Tooltip/Tooltip.js +5 -1
- package/lib/Tooltip/Tooltip.native.js +5 -1
- package/lib/Tooltip/shared.js +5 -0
- package/lib/index.js +17 -13
- package/lib/utils/useOverlaidPosition.js +6 -4
- package/lib-module/Autocomplete/Autocomplete.js +448 -0
- package/lib-module/Autocomplete/Loading.js +36 -0
- package/lib-module/Autocomplete/Suggestions.js +66 -0
- package/lib-module/Autocomplete/constants.js +4 -0
- package/lib-module/Autocomplete/dictionary.js +12 -0
- package/lib-module/Autocomplete/index.js +2 -0
- package/lib-module/IconButton/IconButton.js +30 -10
- package/lib-module/Listbox/GroupControl.js +102 -0
- package/lib-module/Listbox/Listbox.js +172 -0
- package/lib-module/Listbox/ListboxGroup.js +117 -0
- package/lib-module/Listbox/ListboxItem.js +71 -0
- package/lib-module/Listbox/ListboxOverlay.js +80 -0
- package/lib-module/Listbox/PressableItem.js +0 -2
- package/lib-module/Listbox/index.js +2 -2
- package/lib-module/SideNav/Item.js +7 -15
- package/lib-module/TextInput/TextInputBase.js +8 -1
- package/lib-module/Tooltip/Tooltip.js +5 -1
- package/lib-module/Tooltip/Tooltip.native.js +5 -1
- package/lib-module/Tooltip/shared.js +5 -0
- package/lib-module/index.js +2 -1
- package/lib-module/utils/useOverlaidPosition.js +5 -4
- package/package.json +4 -2
- package/src/Autocomplete/Autocomplete.jsx +411 -0
- package/src/Autocomplete/Loading.jsx +18 -0
- package/src/Autocomplete/Suggestions.jsx +54 -0
- package/src/Autocomplete/constants.js +4 -0
- package/src/Autocomplete/dictionary.js +12 -0
- package/src/Autocomplete/index.js +3 -0
- package/src/IconButton/IconButton.jsx +62 -35
- package/src/Listbox/GroupControl.jsx +93 -0
- package/src/Listbox/Listbox.jsx +165 -0
- package/src/Listbox/ListboxGroup.jsx +120 -0
- package/src/Listbox/ListboxItem.jsx +76 -0
- package/src/Listbox/ListboxOverlay.jsx +82 -0
- package/src/Listbox/PressableItem.jsx +0 -2
- package/src/Listbox/index.js +3 -2
- package/src/SideNav/Item.jsx +7 -13
- package/src/TextInput/TextInputBase.jsx +4 -1
- package/src/Tooltip/Tooltip.jsx +15 -2
- package/src/Tooltip/Tooltip.native.jsx +15 -2
- package/src/Tooltip/shared.js +4 -0
- package/src/index.js +2 -1
- package/src/utils/useOverlaidPosition.js +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-base
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 15 Sep 2023 20:56:52 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.62.0
|
|
8
|
+
|
|
9
|
+
Fri, 15 Sep 2023 20:56:52 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- TextInputBase component changed to match with design intention for the IconButton (35577399+JoshHC@users.noreply.github.com)
|
|
14
|
+
- `Tooltip`: Add `onPress` callback function to be triggered when tooltip button is clicked (shahzaibkhalidmalik@outlook.com)
|
|
15
|
+
|
|
16
|
+
## 1.61.0
|
|
17
|
+
|
|
18
|
+
Tue, 12 Sep 2023 23:39:14 GMT
|
|
19
|
+
|
|
20
|
+
### Minor changes
|
|
21
|
+
|
|
22
|
+
- autocomplete from web to multi-platform (srikanthkhari@gmail.com)
|
|
23
|
+
|
|
7
24
|
## 1.60.0
|
|
8
25
|
|
|
9
|
-
Tue, 12 Sep 2023 15:
|
|
26
|
+
Tue, 12 Sep 2023 15:37:54 GMT
|
|
10
27
|
|
|
11
28
|
### Minor changes
|
|
12
29
|
|
package/component-docs.json
CHANGED
|
@@ -799,7 +799,9 @@
|
|
|
799
799
|
"iconSize": "size",
|
|
800
800
|
"iconScale": "iconScale",
|
|
801
801
|
"iconTranslateX": "size",
|
|
802
|
-
"iconTranslateY": "size"
|
|
802
|
+
"iconTranslateY": "size",
|
|
803
|
+
"height": "size",
|
|
804
|
+
"width": "size"
|
|
803
805
|
},
|
|
804
806
|
"Link": {
|
|
805
807
|
"color": "color",
|
|
@@ -3972,6 +3974,166 @@
|
|
|
3972
3974
|
}
|
|
3973
3975
|
}
|
|
3974
3976
|
},
|
|
3977
|
+
"Autocomplete": {
|
|
3978
|
+
"docs": {
|
|
3979
|
+
"description": "",
|
|
3980
|
+
"props": {
|
|
3981
|
+
"copy": {
|
|
3982
|
+
"defaultValue": {
|
|
3983
|
+
"value": "'en'",
|
|
3984
|
+
"computed": false
|
|
3985
|
+
},
|
|
3986
|
+
"type": {
|
|
3987
|
+
"name": "union",
|
|
3988
|
+
"value": [
|
|
3989
|
+
{
|
|
3990
|
+
"name": "enum",
|
|
3991
|
+
"value": [
|
|
3992
|
+
{
|
|
3993
|
+
"value": "'en'",
|
|
3994
|
+
"computed": false
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
"value": "'fr'",
|
|
3998
|
+
"computed": false
|
|
3999
|
+
}
|
|
4000
|
+
]
|
|
4001
|
+
},
|
|
4002
|
+
{
|
|
4003
|
+
"name": "custom",
|
|
4004
|
+
"raw": "dictionaryContentShape"
|
|
4005
|
+
}
|
|
4006
|
+
]
|
|
4007
|
+
},
|
|
4008
|
+
"required": false,
|
|
4009
|
+
"description": "Copy language identifier"
|
|
4010
|
+
},
|
|
4011
|
+
"fullWidth": {
|
|
4012
|
+
"defaultValue": {
|
|
4013
|
+
"value": "true",
|
|
4014
|
+
"computed": false
|
|
4015
|
+
},
|
|
4016
|
+
"required": false
|
|
4017
|
+
},
|
|
4018
|
+
"isLoading": {
|
|
4019
|
+
"defaultValue": {
|
|
4020
|
+
"value": "false",
|
|
4021
|
+
"computed": false
|
|
4022
|
+
},
|
|
4023
|
+
"type": {
|
|
4024
|
+
"name": "bool"
|
|
4025
|
+
},
|
|
4026
|
+
"required": false,
|
|
4027
|
+
"description": "Set to true in order to display the loading indicator instead of results"
|
|
4028
|
+
},
|
|
4029
|
+
"maxSuggestions": {
|
|
4030
|
+
"defaultValue": {
|
|
4031
|
+
"value": "5",
|
|
4032
|
+
"computed": false
|
|
4033
|
+
},
|
|
4034
|
+
"type": {
|
|
4035
|
+
"name": "number"
|
|
4036
|
+
},
|
|
4037
|
+
"required": false,
|
|
4038
|
+
"description": "Maximum number of suggestions provided at the same time"
|
|
4039
|
+
},
|
|
4040
|
+
"minToSuggestion": {
|
|
4041
|
+
"defaultValue": {
|
|
4042
|
+
"value": "1",
|
|
4043
|
+
"computed": false
|
|
4044
|
+
},
|
|
4045
|
+
"type": {
|
|
4046
|
+
"name": "number"
|
|
4047
|
+
},
|
|
4048
|
+
"required": false,
|
|
4049
|
+
"description": "Minimum number of characters typed for a list of suggestions to appear"
|
|
4050
|
+
},
|
|
4051
|
+
"helpText": {
|
|
4052
|
+
"defaultValue": {
|
|
4053
|
+
"value": "''",
|
|
4054
|
+
"computed": false
|
|
4055
|
+
},
|
|
4056
|
+
"type": {
|
|
4057
|
+
"name": "string"
|
|
4058
|
+
},
|
|
4059
|
+
"required": false,
|
|
4060
|
+
"description": "Help text to display when the input is focused and empty"
|
|
4061
|
+
},
|
|
4062
|
+
"children": {
|
|
4063
|
+
"type": {
|
|
4064
|
+
"name": "func"
|
|
4065
|
+
},
|
|
4066
|
+
"required": false,
|
|
4067
|
+
"description": "Can be used to provide a function that renders a custom input:\n<Autocomplete items={items} value={currentValue}>\n {({ inputId, inputRef, onChange, onKeyPress, readOnly, tokens, value }) => (\n <Search\n nativeID={inputId}\n ref={inputRef}\n onChange={onChange}\n onKeyPress={onKeyPress}\n readOnly={readOnly}\n tokens={tokens}\n value={value}\n />\n )}\n</Autocomplete>"
|
|
4068
|
+
},
|
|
4069
|
+
"items": {
|
|
4070
|
+
"type": {
|
|
4071
|
+
"name": "arrayOf",
|
|
4072
|
+
"value": {
|
|
4073
|
+
"name": "shape",
|
|
4074
|
+
"value": {
|
|
4075
|
+
"id": {
|
|
4076
|
+
"name": "string",
|
|
4077
|
+
"required": false
|
|
4078
|
+
},
|
|
4079
|
+
"label": {
|
|
4080
|
+
"name": "string",
|
|
4081
|
+
"required": false
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
},
|
|
4086
|
+
"required": false,
|
|
4087
|
+
"description": "List of items to display as suggestions"
|
|
4088
|
+
},
|
|
4089
|
+
"loadingLabel": {
|
|
4090
|
+
"type": {
|
|
4091
|
+
"name": "string"
|
|
4092
|
+
},
|
|
4093
|
+
"required": false,
|
|
4094
|
+
"description": "Label to display alongside the spinner when in a loading state"
|
|
4095
|
+
},
|
|
4096
|
+
"noResults": {
|
|
4097
|
+
"type": {
|
|
4098
|
+
"name": "node"
|
|
4099
|
+
},
|
|
4100
|
+
"required": false,
|
|
4101
|
+
"description": "Text or JSX to render when no results are available"
|
|
4102
|
+
},
|
|
4103
|
+
"onChange": {
|
|
4104
|
+
"type": {
|
|
4105
|
+
"name": "func"
|
|
4106
|
+
},
|
|
4107
|
+
"required": false,
|
|
4108
|
+
"description": "Handler function to be called when the input value changes"
|
|
4109
|
+
},
|
|
4110
|
+
"onClear": {
|
|
4111
|
+
"type": {
|
|
4112
|
+
"name": "func"
|
|
4113
|
+
},
|
|
4114
|
+
"required": false,
|
|
4115
|
+
"description": "Handler function to be called when the clear button (appears if the handler is passed) is pressed"
|
|
4116
|
+
},
|
|
4117
|
+
"onSelect": {
|
|
4118
|
+
"type": {
|
|
4119
|
+
"name": "func"
|
|
4120
|
+
},
|
|
4121
|
+
"required": false,
|
|
4122
|
+
"description": "Callback function to be called when an item is selected from the list"
|
|
4123
|
+
},
|
|
4124
|
+
"value": {
|
|
4125
|
+
"type": {
|
|
4126
|
+
"name": "string"
|
|
4127
|
+
},
|
|
4128
|
+
"required": false,
|
|
4129
|
+
"description": "Input value for controlled usage"
|
|
4130
|
+
}
|
|
4131
|
+
},
|
|
4132
|
+
"attributes": {
|
|
4133
|
+
"acceptsRNA11yProps": false
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
},
|
|
3975
4137
|
"BaseProvider": {
|
|
3976
4138
|
"docs": {
|
|
3977
4139
|
"description": "",
|
|
@@ -6367,7 +6529,9 @@
|
|
|
6367
6529
|
"iconSize": "size",
|
|
6368
6530
|
"iconScale": "iconScale",
|
|
6369
6531
|
"iconTranslateX": "size",
|
|
6370
|
-
"iconTranslateY": "size"
|
|
6532
|
+
"iconTranslateY": "size",
|
|
6533
|
+
"height": "size",
|
|
6534
|
+
"width": "size"
|
|
6371
6535
|
}
|
|
6372
6536
|
},
|
|
6373
6537
|
"required": false,
|
|
@@ -7142,6 +7306,127 @@
|
|
|
7142
7306
|
}
|
|
7143
7307
|
}
|
|
7144
7308
|
},
|
|
7309
|
+
"Listbox": {
|
|
7310
|
+
"docs": {
|
|
7311
|
+
"description": "",
|
|
7312
|
+
"props": {
|
|
7313
|
+
"items": {
|
|
7314
|
+
"defaultValue": {
|
|
7315
|
+
"value": "[]",
|
|
7316
|
+
"computed": false
|
|
7317
|
+
},
|
|
7318
|
+
"type": {
|
|
7319
|
+
"name": "array"
|
|
7320
|
+
},
|
|
7321
|
+
"required": false,
|
|
7322
|
+
"description": "`Listbox` items"
|
|
7323
|
+
},
|
|
7324
|
+
"firstItemRef": {
|
|
7325
|
+
"defaultValue": {
|
|
7326
|
+
"value": "null",
|
|
7327
|
+
"computed": false
|
|
7328
|
+
},
|
|
7329
|
+
"type": {
|
|
7330
|
+
"name": "object"
|
|
7331
|
+
},
|
|
7332
|
+
"required": false,
|
|
7333
|
+
"description": "Focus will be moved to the item with this ref once within the menu."
|
|
7334
|
+
},
|
|
7335
|
+
"parentRef": {
|
|
7336
|
+
"defaultValue": {
|
|
7337
|
+
"value": "null",
|
|
7338
|
+
"computed": false
|
|
7339
|
+
},
|
|
7340
|
+
"type": {
|
|
7341
|
+
"name": "object"
|
|
7342
|
+
},
|
|
7343
|
+
"required": false,
|
|
7344
|
+
"description": "Focus will be returned to the dropdown control with this ref after leaving\nthe last menu item."
|
|
7345
|
+
},
|
|
7346
|
+
"LinkRouter": {
|
|
7347
|
+
"type": {
|
|
7348
|
+
"name": "elementType"
|
|
7349
|
+
},
|
|
7350
|
+
"required": false,
|
|
7351
|
+
"description": ""
|
|
7352
|
+
},
|
|
7353
|
+
"linkRouterProps": {
|
|
7354
|
+
"type": {
|
|
7355
|
+
"name": "object"
|
|
7356
|
+
},
|
|
7357
|
+
"required": false,
|
|
7358
|
+
"description": ""
|
|
7359
|
+
},
|
|
7360
|
+
"selectedId": {
|
|
7361
|
+
"type": {
|
|
7362
|
+
"name": "string"
|
|
7363
|
+
},
|
|
7364
|
+
"required": false,
|
|
7365
|
+
"description": "To select an item by default"
|
|
7366
|
+
},
|
|
7367
|
+
"onClose": {
|
|
7368
|
+
"type": {
|
|
7369
|
+
"name": "func"
|
|
7370
|
+
},
|
|
7371
|
+
"required": false,
|
|
7372
|
+
"description": "onClose event"
|
|
7373
|
+
},
|
|
7374
|
+
"tokens": {
|
|
7375
|
+
"type": {
|
|
7376
|
+
"name": "custom",
|
|
7377
|
+
"raw": {
|
|
7378
|
+
"groupBorderRadius": "radius",
|
|
7379
|
+
"groupBorderWidth": "border",
|
|
7380
|
+
"groupFontSize": "size",
|
|
7381
|
+
"groupFontName": "fontName",
|
|
7382
|
+
"groupFontWeight": "fontWeight",
|
|
7383
|
+
"groupColor": "color",
|
|
7384
|
+
"groupBorderColor": "color",
|
|
7385
|
+
"groupBackgroundColor": "color",
|
|
7386
|
+
"groupPaddingTop": "size",
|
|
7387
|
+
"groupPaddingBottom": "size",
|
|
7388
|
+
"groupPaddingLeft": "size",
|
|
7389
|
+
"groupPaddingRight": "size",
|
|
7390
|
+
"groupIcon": "icon",
|
|
7391
|
+
"itemDisplay": "show",
|
|
7392
|
+
"itemFontName": "fontName",
|
|
7393
|
+
"itemFontWeight": "fontWeight",
|
|
7394
|
+
"itemFontSize": "size",
|
|
7395
|
+
"itemPaddingTop": "size",
|
|
7396
|
+
"itemPaddingBottom": "size",
|
|
7397
|
+
"itemPaddingLeft": "size",
|
|
7398
|
+
"itemPaddingRight": "size",
|
|
7399
|
+
"itemColor": "color",
|
|
7400
|
+
"itemBackgroundColor": "color",
|
|
7401
|
+
"itemBorderLeftColor": "color",
|
|
7402
|
+
"itemBorderLeftWidth": "border",
|
|
7403
|
+
"itemBorderWidth": "border",
|
|
7404
|
+
"itemTextDecoration": "textLine",
|
|
7405
|
+
"itemOutline": "border",
|
|
7406
|
+
"shadow": "shadow",
|
|
7407
|
+
"itemBorderRightColor": "color",
|
|
7408
|
+
"itemBorderBottomColor": "color",
|
|
7409
|
+
"itemBorderTopColor": "color",
|
|
7410
|
+
"itemBorderRightWidth": "border",
|
|
7411
|
+
"itemBorderBottomWidth": "border",
|
|
7412
|
+
"itemBorderTopWidth": "border",
|
|
7413
|
+
"itemBorderRadius": "radius",
|
|
7414
|
+
"minWidth": "size",
|
|
7415
|
+
"minHeight": "size",
|
|
7416
|
+
"itemHeight": "size",
|
|
7417
|
+
"groupHeight": "size",
|
|
7418
|
+
"lineHeight": "lineHeight"
|
|
7419
|
+
}
|
|
7420
|
+
},
|
|
7421
|
+
"required": false,
|
|
7422
|
+
"description": ""
|
|
7423
|
+
}
|
|
7424
|
+
},
|
|
7425
|
+
"attributes": {
|
|
7426
|
+
"acceptsRNA11yProps": false
|
|
7427
|
+
}
|
|
7428
|
+
}
|
|
7429
|
+
},
|
|
7145
7430
|
"Modal": {
|
|
7146
7431
|
"docs": {
|
|
7147
7432
|
"description": "A modal window is a secondary window that opens on top of the main one.\nUsers have to interact with it before they can carry out their task and return to the main window.\nUse to reveal additional information to a user after they have performed an explicit interaction.\nThey are a strongly discouraged pattern; it's preferred to have all relevant information within a page,\nand irrelevant information either linked externally or omitted.\n\n- Must only appear after a customer interaction, not on page load or any other circumstance\n- Open a modal based on explicit customer action e.g. clicking on a button/link/form field\n- Only one modal should be \"current\" at any time\n- Read [WebAIM's documentation](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html) to create accessible modals\n- Don’t use modals to reinforce or repeat information already available in the parent page or view\n- Don’t use modals consecutively",
|
|
@@ -9437,28 +9722,6 @@
|
|
|
9437
9722
|
"docs": {
|
|
9438
9723
|
"description": "`SideNav.Item` is a navigational element that is used within `SideNav` or `SideNav.ItemsGroup`.\n\n This component can only be accessed as a name-spaced component: `SideNav.Item`.",
|
|
9439
9724
|
"props": {
|
|
9440
|
-
"isActive": {
|
|
9441
|
-
"defaultValue": {
|
|
9442
|
-
"value": "false",
|
|
9443
|
-
"computed": false
|
|
9444
|
-
},
|
|
9445
|
-
"type": {
|
|
9446
|
-
"name": "bool"
|
|
9447
|
-
},
|
|
9448
|
-
"required": false,
|
|
9449
|
-
"description": "Set internally in `SideNav` render function."
|
|
9450
|
-
},
|
|
9451
|
-
"isExpanded": {
|
|
9452
|
-
"defaultValue": {
|
|
9453
|
-
"value": "false",
|
|
9454
|
-
"computed": false
|
|
9455
|
-
},
|
|
9456
|
-
"type": {
|
|
9457
|
-
"name": "bool"
|
|
9458
|
-
},
|
|
9459
|
-
"required": false,
|
|
9460
|
-
"description": "Set internally in `SideNav.ItemsGroup` render function. Used to mark expanded `ItemsGroup` parent."
|
|
9461
|
-
},
|
|
9462
9725
|
"accessibilityRole": {
|
|
9463
9726
|
"defaultValue": {
|
|
9464
9727
|
"value": "'link'",
|
|
@@ -9468,7 +9731,7 @@
|
|
|
9468
9731
|
"name": "string"
|
|
9469
9732
|
},
|
|
9470
9733
|
"required": false,
|
|
9471
|
-
"description": "
|
|
9734
|
+
"description": ""
|
|
9472
9735
|
},
|
|
9473
9736
|
"children": {
|
|
9474
9737
|
"type": {
|
|
@@ -9477,20 +9740,6 @@
|
|
|
9477
9740
|
"required": true,
|
|
9478
9741
|
"description": "Text content of the `Item`."
|
|
9479
9742
|
},
|
|
9480
|
-
"itemId": {
|
|
9481
|
-
"type": {
|
|
9482
|
-
"name": "string"
|
|
9483
|
-
},
|
|
9484
|
-
"required": false,
|
|
9485
|
-
"description": "Set internally in `SideNav` render function - used to keep track of active item."
|
|
9486
|
-
},
|
|
9487
|
-
"groupId": {
|
|
9488
|
-
"type": {
|
|
9489
|
-
"name": "string"
|
|
9490
|
-
},
|
|
9491
|
-
"required": false,
|
|
9492
|
-
"description": "Set internally in `SideNav` render function - used to keep track of expanded items groups."
|
|
9493
|
-
},
|
|
9494
9743
|
"onPress": {
|
|
9495
9744
|
"type": {
|
|
9496
9745
|
"name": "func"
|
|
@@ -9544,6 +9793,13 @@
|
|
|
9544
9793
|
"required": false,
|
|
9545
9794
|
"description": "On Web if href is passed, React Native Web maps this object's props to\n`rel`, `target` and `download` attrs."
|
|
9546
9795
|
},
|
|
9796
|
+
"testID": {
|
|
9797
|
+
"type": {
|
|
9798
|
+
"name": "number"
|
|
9799
|
+
},
|
|
9800
|
+
"required": false,
|
|
9801
|
+
"description": ""
|
|
9802
|
+
},
|
|
9547
9803
|
"tokens": {
|
|
9548
9804
|
"type": {
|
|
9549
9805
|
"name": "custom",
|
|
@@ -9591,13 +9847,6 @@
|
|
|
9591
9847
|
},
|
|
9592
9848
|
"required": false,
|
|
9593
9849
|
"description": ""
|
|
9594
|
-
},
|
|
9595
|
-
"testID": {
|
|
9596
|
-
"type": {
|
|
9597
|
-
"name": "number"
|
|
9598
|
-
},
|
|
9599
|
-
"required": false,
|
|
9600
|
-
"description": "test ID"
|
|
9601
9850
|
}
|
|
9602
9851
|
},
|
|
9603
9852
|
"attributes": {
|
|
@@ -11010,6 +11259,17 @@
|
|
|
11010
11259
|
"required": false,
|
|
11011
11260
|
"description": "Select English or French copy for the accessible label."
|
|
11012
11261
|
},
|
|
11262
|
+
"onPress": {
|
|
11263
|
+
"defaultValue": {
|
|
11264
|
+
"value": "() => {}",
|
|
11265
|
+
"computed": false
|
|
11266
|
+
},
|
|
11267
|
+
"type": {
|
|
11268
|
+
"name": "func"
|
|
11269
|
+
},
|
|
11270
|
+
"required": false,
|
|
11271
|
+
"description": "Callback function triggered when the tooltip is pressed."
|
|
11272
|
+
},
|
|
11013
11273
|
"inline": {
|
|
11014
11274
|
"defaultValue": {
|
|
11015
11275
|
"value": "false",
|
|
@@ -13363,76 +13623,6 @@
|
|
|
13363
13623
|
}
|
|
13364
13624
|
}
|
|
13365
13625
|
},
|
|
13366
|
-
"PressableItem": {
|
|
13367
|
-
"docs": {
|
|
13368
|
-
"description": "",
|
|
13369
|
-
"props": {
|
|
13370
|
-
"isChild": {
|
|
13371
|
-
"defaultValue": {
|
|
13372
|
-
"value": "false",
|
|
13373
|
-
"computed": false
|
|
13374
|
-
},
|
|
13375
|
-
"type": {
|
|
13376
|
-
"name": "bool"
|
|
13377
|
-
},
|
|
13378
|
-
"required": false,
|
|
13379
|
-
"description": ""
|
|
13380
|
-
},
|
|
13381
|
-
"tabIndex": {
|
|
13382
|
-
"defaultValue": {
|
|
13383
|
-
"value": "0",
|
|
13384
|
-
"computed": false
|
|
13385
|
-
},
|
|
13386
|
-
"required": false
|
|
13387
|
-
},
|
|
13388
|
-
"href": {
|
|
13389
|
-
"type": {
|
|
13390
|
-
"name": "string"
|
|
13391
|
-
},
|
|
13392
|
-
"required": false,
|
|
13393
|
-
"description": ""
|
|
13394
|
-
},
|
|
13395
|
-
"children": {
|
|
13396
|
-
"type": {
|
|
13397
|
-
"name": "node"
|
|
13398
|
-
},
|
|
13399
|
-
"required": true,
|
|
13400
|
-
"description": ""
|
|
13401
|
-
},
|
|
13402
|
-
"onBlur": {
|
|
13403
|
-
"type": {
|
|
13404
|
-
"name": "func"
|
|
13405
|
-
},
|
|
13406
|
-
"required": false,
|
|
13407
|
-
"description": ""
|
|
13408
|
-
},
|
|
13409
|
-
"onPress": {
|
|
13410
|
-
"type": {
|
|
13411
|
-
"name": "func"
|
|
13412
|
-
},
|
|
13413
|
-
"required": false,
|
|
13414
|
-
"description": ""
|
|
13415
|
-
},
|
|
13416
|
-
"nextItemRef": {
|
|
13417
|
-
"type": {
|
|
13418
|
-
"name": "object"
|
|
13419
|
-
},
|
|
13420
|
-
"required": false,
|
|
13421
|
-
"description": ""
|
|
13422
|
-
},
|
|
13423
|
-
"prevItemRef": {
|
|
13424
|
-
"type": {
|
|
13425
|
-
"name": "object"
|
|
13426
|
-
},
|
|
13427
|
-
"required": false,
|
|
13428
|
-
"description": ""
|
|
13429
|
-
}
|
|
13430
|
-
},
|
|
13431
|
-
"attributes": {
|
|
13432
|
-
"acceptsRNA11yProps": false
|
|
13433
|
-
}
|
|
13434
|
-
}
|
|
13435
|
-
},
|
|
13436
13626
|
"CheckboxGroup": {
|
|
13437
13627
|
"docs": {
|
|
13438
13628
|
"description": "A group of Checkboxs that behave as a fieldset. Use when users select any number of choices from options.\n\n## Component API\n\nUse the `items` prop to pass an array of objects describing each Checkbox in the group:\n\n - `label`: main text passed to CheckboxGroup's `label` prop\n - `id`: identifier used to store which CheckboxGroup 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 CheckboxGroup 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\nCheckboxGroup accepts all the common accessibility props, and controls the accessibility state\nof children like Checkbox and Feedback based on current state.\n\n@example\n```jsx\n<CheckboxGroup\n initialCheckedIds=\"check1\"\n items={[\n { label: 'Checkbox 1', id: 'check1' },\n { label: 'Checkbox 2', id: 'check2' },\n { label: 'Checkbox 3', id: 'check3' }\n ]}\n legend=\"Checkboxes\"\n hint=\"Choose from these options\"\n/>\n```",
|