carbon-react 143.0.1 → 143.1.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/esm/__internal__/checkable-input/checkable-input.component.js +51 -1
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +51 -1
- package/esm/__internal__/input/input.component.js +51 -1
- package/esm/__internal__/popover/popover.component.js +1 -1
- package/esm/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -1
- package/esm/__internal__/utils/helpers/events/composedPath.js +2 -2
- package/esm/__internal__/utils/helpers/guid/index.js +2 -2
- package/esm/components/action-popover/action-popover-item/action-popover-item.component.js +1 -1
- package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +10 -2
- package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -2
- package/esm/components/button/button-types.style.js +2 -2
- package/esm/components/checkbox/checkbox.component.js +51 -1
- package/esm/components/date/date.component.js +51 -1
- package/esm/components/decimal/decimal.component.js +51 -1
- package/esm/components/duelling-picklist/duelling-picklist.component.js +1 -1
- package/esm/components/flat-table/__internal__/build-position-map.js +2 -2
- package/esm/components/flat-table/__internal__/use-table-cell.js +2 -2
- package/esm/components/form/required-fields-indicator/required-fields-indicator.component.js +2 -2
- package/esm/components/grouped-character/grouped-character.component.js +51 -1
- package/esm/components/number/number.component.js +51 -1
- package/esm/components/pill/pill.style.config.js +2 -2
- package/esm/components/portal/portal.js +1 -1
- package/esm/components/preview/preview.component.js +1 -1
- package/esm/components/radio-button/radio-button.component.js +51 -1
- package/esm/components/select/__internal__/select-list/select-list.component.js +1 -1
- package/esm/components/select/__internal__/select-textbox/select-textbox.component.js +51 -1
- package/esm/components/select/filterable-select/filterable-select.component.js +51 -1
- package/esm/components/select/multi-select/multi-select.component.js +52 -2
- package/esm/components/select/option/option.component.js +51 -1
- package/esm/components/select/simple-select/simple-select.component.js +51 -1
- package/esm/components/switch/switch.component.js +51 -1
- package/esm/components/text-editor/text-editor.component.js +1 -1
- package/esm/components/textarea/textarea.component.js +51 -1
- package/esm/components/textbox/textbox.component.js +51 -1
- package/esm/components/tile/__internal__/compute-content-padding.js +2 -2
- package/esm/components/tile-select/tile-select-group/tile-select-group.component.js +1 -1
- package/esm/hooks/__internal__/useClickAwayListener/useClickAwayListener.js +2 -2
- package/esm/hooks/__internal__/useFocusPortalContent/useFocusPortalContent.js +2 -2
- package/esm/hooks/__internal__/useFormSpacing/add-form-spacing/index.js +2 -2
- package/esm/hooks/__internal__/useFormSpacing/index.js +2 -2
- package/esm/hooks/__internal__/useMenuKeyboardNavigation/useMenuKeyboardNavigation.js +2 -2
- package/esm/hooks/__internal__/useResizeObserver/useResizeObserver.js +1 -1
- package/esm/hooks/__internal__/useUniqueId/index.js +2 -2
- package/esm/style/design-tokens/generate-css-variables.util.js +2 -2
- package/esm/style/themes/base/base-theme.config.js +2 -2
- package/esm/style/themes/none/none-theme.config.js +2 -2
- package/esm/style/utils/add-focus-styling.js +2 -2
- package/esm/style/utils/add-hex-symbols.js +1 -1
- package/esm/style/utils/at-opacity.js +2 -2
- package/esm/style/utils/color.js +2 -2
- package/esm/style/utils/element-sizing.js +2 -2
- package/esm/style/utils/get-color-value.js +2 -2
- package/esm/style/utils/mix.js +2 -2
- package/esm/style/utils/shade.js +1 -1
- package/esm/style/utils/tint.js +1 -1
- package/lib/__internal__/checkable-input/checkable-input.component.js +51 -1
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +51 -1
- package/lib/__internal__/input/input.component.js +51 -1
- package/lib/__internal__/popover/popover.component.js +1 -1
- package/lib/__internal__/radio-button-mapper/radio-button-mapper.component.js +1 -1
- package/lib/components/action-popover/action-popover-item/action-popover-item.component.js +1 -1
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts +10 -2
- package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +2 -2
- package/lib/components/checkbox/checkbox.component.js +51 -1
- package/lib/components/date/date.component.js +51 -1
- package/lib/components/decimal/decimal.component.js +51 -1
- package/lib/components/duelling-picklist/duelling-picklist.component.js +1 -1
- package/lib/components/grouped-character/grouped-character.component.js +51 -1
- package/lib/components/number/number.component.js +51 -1
- package/lib/components/portal/portal.js +1 -1
- package/lib/components/preview/preview.component.js +1 -1
- package/lib/components/radio-button/radio-button.component.js +51 -1
- package/lib/components/select/__internal__/select-list/select-list.component.js +1 -1
- package/lib/components/select/__internal__/select-textbox/select-textbox.component.js +51 -1
- package/lib/components/select/filterable-select/filterable-select.component.js +51 -1
- package/lib/components/select/multi-select/multi-select.component.js +52 -2
- package/lib/components/select/option/option.component.js +51 -1
- package/lib/components/select/simple-select/simple-select.component.js +51 -1
- package/lib/components/switch/switch.component.js +51 -1
- package/lib/components/text-editor/text-editor.component.js +1 -1
- package/lib/components/textarea/textarea.component.js +51 -1
- package/lib/components/textbox/textbox.component.js +51 -1
- package/lib/components/tile-select/tile-select-group/tile-select-group.component.js +1 -1
- package/lib/hooks/__internal__/useResizeObserver/useResizeObserver.js +1 -1
- package/package.json +20 -16
|
@@ -166,7 +166,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
166
166
|
"aria-valuetext": PropTypes.string,
|
|
167
167
|
"ariaDescribedBy": PropTypes.string,
|
|
168
168
|
"ariaLabelledBy": PropTypes.string,
|
|
169
|
-
"autoCapitalize": PropTypes.
|
|
169
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
170
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
171
|
+
"anchor": PropTypes.func.isRequired,
|
|
172
|
+
"at": PropTypes.func.isRequired,
|
|
173
|
+
"big": PropTypes.func.isRequired,
|
|
174
|
+
"blink": PropTypes.func.isRequired,
|
|
175
|
+
"bold": PropTypes.func.isRequired,
|
|
176
|
+
"charAt": PropTypes.func.isRequired,
|
|
177
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
178
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
179
|
+
"concat": PropTypes.func.isRequired,
|
|
180
|
+
"endsWith": PropTypes.func.isRequired,
|
|
181
|
+
"fixed": PropTypes.func.isRequired,
|
|
182
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
183
|
+
"fontsize": PropTypes.func.isRequired,
|
|
184
|
+
"includes": PropTypes.func.isRequired,
|
|
185
|
+
"indexOf": PropTypes.func.isRequired,
|
|
186
|
+
"italics": PropTypes.func.isRequired,
|
|
187
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
188
|
+
"length": PropTypes.number.isRequired,
|
|
189
|
+
"link": PropTypes.func.isRequired,
|
|
190
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
191
|
+
"match": PropTypes.func.isRequired,
|
|
192
|
+
"matchAll": PropTypes.func.isRequired,
|
|
193
|
+
"normalize": PropTypes.func.isRequired,
|
|
194
|
+
"padEnd": PropTypes.func.isRequired,
|
|
195
|
+
"padStart": PropTypes.func.isRequired,
|
|
196
|
+
"repeat": PropTypes.func.isRequired,
|
|
197
|
+
"replace": PropTypes.func.isRequired,
|
|
198
|
+
"search": PropTypes.func.isRequired,
|
|
199
|
+
"slice": PropTypes.func.isRequired,
|
|
200
|
+
"small": PropTypes.func.isRequired,
|
|
201
|
+
"split": PropTypes.func.isRequired,
|
|
202
|
+
"startsWith": PropTypes.func.isRequired,
|
|
203
|
+
"strike": PropTypes.func.isRequired,
|
|
204
|
+
"sub": PropTypes.func.isRequired,
|
|
205
|
+
"substr": PropTypes.func.isRequired,
|
|
206
|
+
"substring": PropTypes.func.isRequired,
|
|
207
|
+
"sup": PropTypes.func.isRequired,
|
|
208
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
209
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
210
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
211
|
+
"toString": PropTypes.func.isRequired,
|
|
212
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
213
|
+
"trim": PropTypes.func.isRequired,
|
|
214
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
215
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
216
|
+
"trimRight": PropTypes.func.isRequired,
|
|
217
|
+
"trimStart": PropTypes.func.isRequired,
|
|
218
|
+
"valueOf": PropTypes.func.isRequired
|
|
219
|
+
})]),
|
|
170
220
|
"autoComplete": PropTypes.string,
|
|
171
221
|
"autoCorrect": PropTypes.string,
|
|
172
222
|
"autoFocus": PropTypes.bool,
|
|
@@ -134,7 +134,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
134
134
|
"aria-valuetext": PropTypes.string,
|
|
135
135
|
"ariaDescribedBy": PropTypes.string,
|
|
136
136
|
"ariaLabelledBy": PropTypes.string,
|
|
137
|
-
"autoCapitalize": PropTypes.
|
|
137
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
138
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
139
|
+
"anchor": PropTypes.func.isRequired,
|
|
140
|
+
"at": PropTypes.func.isRequired,
|
|
141
|
+
"big": PropTypes.func.isRequired,
|
|
142
|
+
"blink": PropTypes.func.isRequired,
|
|
143
|
+
"bold": PropTypes.func.isRequired,
|
|
144
|
+
"charAt": PropTypes.func.isRequired,
|
|
145
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
146
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
147
|
+
"concat": PropTypes.func.isRequired,
|
|
148
|
+
"endsWith": PropTypes.func.isRequired,
|
|
149
|
+
"fixed": PropTypes.func.isRequired,
|
|
150
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
151
|
+
"fontsize": PropTypes.func.isRequired,
|
|
152
|
+
"includes": PropTypes.func.isRequired,
|
|
153
|
+
"indexOf": PropTypes.func.isRequired,
|
|
154
|
+
"italics": PropTypes.func.isRequired,
|
|
155
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
156
|
+
"length": PropTypes.number.isRequired,
|
|
157
|
+
"link": PropTypes.func.isRequired,
|
|
158
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
159
|
+
"match": PropTypes.func.isRequired,
|
|
160
|
+
"matchAll": PropTypes.func.isRequired,
|
|
161
|
+
"normalize": PropTypes.func.isRequired,
|
|
162
|
+
"padEnd": PropTypes.func.isRequired,
|
|
163
|
+
"padStart": PropTypes.func.isRequired,
|
|
164
|
+
"repeat": PropTypes.func.isRequired,
|
|
165
|
+
"replace": PropTypes.func.isRequired,
|
|
166
|
+
"search": PropTypes.func.isRequired,
|
|
167
|
+
"slice": PropTypes.func.isRequired,
|
|
168
|
+
"small": PropTypes.func.isRequired,
|
|
169
|
+
"split": PropTypes.func.isRequired,
|
|
170
|
+
"startsWith": PropTypes.func.isRequired,
|
|
171
|
+
"strike": PropTypes.func.isRequired,
|
|
172
|
+
"sub": PropTypes.func.isRequired,
|
|
173
|
+
"substr": PropTypes.func.isRequired,
|
|
174
|
+
"substring": PropTypes.func.isRequired,
|
|
175
|
+
"sup": PropTypes.func.isRequired,
|
|
176
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
177
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
178
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
179
|
+
"toString": PropTypes.func.isRequired,
|
|
180
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
181
|
+
"trim": PropTypes.func.isRequired,
|
|
182
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
183
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
184
|
+
"trimRight": PropTypes.func.isRequired,
|
|
185
|
+
"trimStart": PropTypes.func.isRequired,
|
|
186
|
+
"valueOf": PropTypes.func.isRequired
|
|
187
|
+
})]),
|
|
138
188
|
"autoComplete": PropTypes.string,
|
|
139
189
|
"autoCorrect": PropTypes.string,
|
|
140
190
|
"autoFocus": PropTypes.bool,
|
|
@@ -210,7 +210,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
210
210
|
"aria-valuetext": PropTypes.string,
|
|
211
211
|
"ariaDescribedBy": PropTypes.string,
|
|
212
212
|
"as": PropTypes.elementType,
|
|
213
|
-
"autoCapitalize": PropTypes.
|
|
213
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
214
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
215
|
+
"anchor": PropTypes.func.isRequired,
|
|
216
|
+
"at": PropTypes.func.isRequired,
|
|
217
|
+
"big": PropTypes.func.isRequired,
|
|
218
|
+
"blink": PropTypes.func.isRequired,
|
|
219
|
+
"bold": PropTypes.func.isRequired,
|
|
220
|
+
"charAt": PropTypes.func.isRequired,
|
|
221
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
222
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
223
|
+
"concat": PropTypes.func.isRequired,
|
|
224
|
+
"endsWith": PropTypes.func.isRequired,
|
|
225
|
+
"fixed": PropTypes.func.isRequired,
|
|
226
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
227
|
+
"fontsize": PropTypes.func.isRequired,
|
|
228
|
+
"includes": PropTypes.func.isRequired,
|
|
229
|
+
"indexOf": PropTypes.func.isRequired,
|
|
230
|
+
"italics": PropTypes.func.isRequired,
|
|
231
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
232
|
+
"length": PropTypes.number.isRequired,
|
|
233
|
+
"link": PropTypes.func.isRequired,
|
|
234
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
235
|
+
"match": PropTypes.func.isRequired,
|
|
236
|
+
"matchAll": PropTypes.func.isRequired,
|
|
237
|
+
"normalize": PropTypes.func.isRequired,
|
|
238
|
+
"padEnd": PropTypes.func.isRequired,
|
|
239
|
+
"padStart": PropTypes.func.isRequired,
|
|
240
|
+
"repeat": PropTypes.func.isRequired,
|
|
241
|
+
"replace": PropTypes.func.isRequired,
|
|
242
|
+
"search": PropTypes.func.isRequired,
|
|
243
|
+
"slice": PropTypes.func.isRequired,
|
|
244
|
+
"small": PropTypes.func.isRequired,
|
|
245
|
+
"split": PropTypes.func.isRequired,
|
|
246
|
+
"startsWith": PropTypes.func.isRequired,
|
|
247
|
+
"strike": PropTypes.func.isRequired,
|
|
248
|
+
"sub": PropTypes.func.isRequired,
|
|
249
|
+
"substr": PropTypes.func.isRequired,
|
|
250
|
+
"substring": PropTypes.func.isRequired,
|
|
251
|
+
"sup": PropTypes.func.isRequired,
|
|
252
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
253
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
254
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
255
|
+
"toString": PropTypes.func.isRequired,
|
|
256
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
257
|
+
"trim": PropTypes.func.isRequired,
|
|
258
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
259
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
260
|
+
"trimRight": PropTypes.func.isRequired,
|
|
261
|
+
"trimStart": PropTypes.func.isRequired,
|
|
262
|
+
"valueOf": PropTypes.func.isRequired
|
|
263
|
+
})]),
|
|
214
264
|
"autoComplete": PropTypes.string,
|
|
215
265
|
"autoCorrect": PropTypes.string,
|
|
216
266
|
"autoFocus": PropTypes.bool,
|
|
@@ -74,6 +74,6 @@ const Popover = ({
|
|
|
74
74
|
if (disablePortal) {
|
|
75
75
|
return content;
|
|
76
76
|
}
|
|
77
|
-
return /*#__PURE__*/ReactDOM.createPortal(
|
|
77
|
+
return /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React.createElement(CarbonScopedTokensProvider, null, content), elementDOM.current);
|
|
78
78
|
};
|
|
79
79
|
export default Popover;
|
|
@@ -13,7 +13,7 @@ const RadioButtonMapper = ({
|
|
|
13
13
|
const anyChecked = useMemo(() => {
|
|
14
14
|
let result = false;
|
|
15
15
|
filteredChildren.forEach(child => {
|
|
16
|
-
if (
|
|
16
|
+
if (/*#__PURE__*/React.isValidElement(child) && Object.prototype.hasOwnProperty.call(child.props, "defaultChecked")) {
|
|
17
17
|
result = true;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// IE does not support composedPath
|
|
4
4
|
|
|
5
5
|
// https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
|
|
6
|
-
export default
|
|
6
|
+
export default ev => {
|
|
7
7
|
// When testing with enzyme, we want to trigger a listener on an element but pretend
|
|
8
8
|
// that it bubbled from the enzymeTestingTarget
|
|
9
9
|
// e.g. document.dispatchEvent(new MouseClick('click', {
|
|
@@ -21,4 +21,4 @@ export default (ev => {
|
|
|
21
21
|
path.unshift(element);
|
|
22
22
|
}
|
|
23
23
|
return path;
|
|
24
|
-
}
|
|
24
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generates a random guid, useful for creating unique IDs.
|
|
3
3
|
*/
|
|
4
|
-
export default (
|
|
4
|
+
export default () => {
|
|
5
5
|
function s4() {
|
|
6
6
|
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
|
7
7
|
}
|
|
8
8
|
return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
@@ -50,7 +50,7 @@ export const ActionPopoverItem = ({
|
|
|
50
50
|
}) => {
|
|
51
51
|
const context = useContext(ActionPopoverContext);
|
|
52
52
|
!context ? process.env.NODE_ENV !== "production" ? invariant(false, "ActionPopoverItem must be used within an ActionPopover component") : invariant(false) : void 0;
|
|
53
|
-
!(
|
|
53
|
+
!(/*#__PURE__*/React.isValidElement(submenu) ? submenu.type === ActionPopoverMenu : true) ? process.env.NODE_ENV !== "production" ? invariant(false, "ActionPopoverItem only accepts submenu of type `ActionPopoverMenu`") : invariant(false) : void 0;
|
|
54
54
|
const {
|
|
55
55
|
setOpenPopover,
|
|
56
56
|
isOpenPopover,
|
package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.d.ts
CHANGED
|
@@ -3,13 +3,21 @@ import { Alignment } from "../__internal__/action-popover.context";
|
|
|
3
3
|
export interface ActionPopoverMenuBaseProps {
|
|
4
4
|
/** Children for the menu */
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
* @private
|
|
9
|
+
* @internal
|
|
10
|
+
* Index to control which item is focused */
|
|
7
11
|
focusIndex?: number;
|
|
8
12
|
/** Flag to indicate whether a menu should open */
|
|
9
13
|
isOpen?: boolean;
|
|
10
14
|
/** A unique ID for the menu */
|
|
11
15
|
menuID?: string;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
* @private
|
|
19
|
+
* @internal
|
|
20
|
+
* Callback to set the index of the focused item */
|
|
13
21
|
setFocusIndex?: (args: number) => void;
|
|
14
22
|
/** Callback to set the isOpen flag */
|
|
15
23
|
setOpen?: (args: boolean) => void;
|
|
@@ -116,7 +116,7 @@ const ActionPopoverMenu = /*#__PURE__*/React.forwardRef(({
|
|
|
116
116
|
let firstMatch;
|
|
117
117
|
let nextMatch;
|
|
118
118
|
items.forEach((item, index) => {
|
|
119
|
-
if (
|
|
119
|
+
if (/*#__PURE__*/React.isValidElement(item) && !isItemDisabled(index) && item.props.children.toLowerCase().startsWith(e.key.toLowerCase())) {
|
|
120
120
|
// istanbul ignore else
|
|
121
121
|
if (firstMatch === undefined) {
|
|
122
122
|
firstMatch = index;
|
|
@@ -139,7 +139,7 @@ const ActionPopoverMenu = /*#__PURE__*/React.forwardRef(({
|
|
|
139
139
|
const clonedChildren = useMemo(() => {
|
|
140
140
|
let index = 0;
|
|
141
141
|
return React.Children.map(children, child => {
|
|
142
|
-
if (
|
|
142
|
+
if (/*#__PURE__*/React.isValidElement(child) && child.type === ActionPopoverItem) {
|
|
143
143
|
index += 1;
|
|
144
144
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
145
145
|
focusItem: isOpen && focusIndex === index - 1,
|
|
@@ -32,7 +32,7 @@ const gradientSharedStyle = `
|
|
|
32
32
|
background: linear-gradient(to right, #d6f8df, #d9f2ff, #ede2ff) padding-box, linear-gradient(to right, #00D639, #11AFFF, #8F49FE) border-box;
|
|
33
33
|
}
|
|
34
34
|
`;
|
|
35
|
-
export default (
|
|
35
|
+
export default (isDisabled, destructive) => ({
|
|
36
36
|
primary: `
|
|
37
37
|
background: var(--colorsActionMajor500);
|
|
38
38
|
border-color: transparent;
|
|
@@ -154,4 +154,4 @@ export default ((isDisabled, destructive) => ({
|
|
|
154
154
|
${gradientSharedStyle}
|
|
155
155
|
`}
|
|
156
156
|
`
|
|
157
|
-
})
|
|
157
|
+
});
|
|
@@ -174,7 +174,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
174
174
|
"aria-valuetext": PropTypes.string,
|
|
175
175
|
"ariaDescribedBy": PropTypes.string,
|
|
176
176
|
"ariaLabelledBy": PropTypes.string,
|
|
177
|
-
"autoCapitalize": PropTypes.
|
|
177
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
178
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
179
|
+
"anchor": PropTypes.func.isRequired,
|
|
180
|
+
"at": PropTypes.func.isRequired,
|
|
181
|
+
"big": PropTypes.func.isRequired,
|
|
182
|
+
"blink": PropTypes.func.isRequired,
|
|
183
|
+
"bold": PropTypes.func.isRequired,
|
|
184
|
+
"charAt": PropTypes.func.isRequired,
|
|
185
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
186
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
187
|
+
"concat": PropTypes.func.isRequired,
|
|
188
|
+
"endsWith": PropTypes.func.isRequired,
|
|
189
|
+
"fixed": PropTypes.func.isRequired,
|
|
190
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
191
|
+
"fontsize": PropTypes.func.isRequired,
|
|
192
|
+
"includes": PropTypes.func.isRequired,
|
|
193
|
+
"indexOf": PropTypes.func.isRequired,
|
|
194
|
+
"italics": PropTypes.func.isRequired,
|
|
195
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
196
|
+
"length": PropTypes.number.isRequired,
|
|
197
|
+
"link": PropTypes.func.isRequired,
|
|
198
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
199
|
+
"match": PropTypes.func.isRequired,
|
|
200
|
+
"matchAll": PropTypes.func.isRequired,
|
|
201
|
+
"normalize": PropTypes.func.isRequired,
|
|
202
|
+
"padEnd": PropTypes.func.isRequired,
|
|
203
|
+
"padStart": PropTypes.func.isRequired,
|
|
204
|
+
"repeat": PropTypes.func.isRequired,
|
|
205
|
+
"replace": PropTypes.func.isRequired,
|
|
206
|
+
"search": PropTypes.func.isRequired,
|
|
207
|
+
"slice": PropTypes.func.isRequired,
|
|
208
|
+
"small": PropTypes.func.isRequired,
|
|
209
|
+
"split": PropTypes.func.isRequired,
|
|
210
|
+
"startsWith": PropTypes.func.isRequired,
|
|
211
|
+
"strike": PropTypes.func.isRequired,
|
|
212
|
+
"sub": PropTypes.func.isRequired,
|
|
213
|
+
"substr": PropTypes.func.isRequired,
|
|
214
|
+
"substring": PropTypes.func.isRequired,
|
|
215
|
+
"sup": PropTypes.func.isRequired,
|
|
216
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
217
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
218
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
219
|
+
"toString": PropTypes.func.isRequired,
|
|
220
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
221
|
+
"trim": PropTypes.func.isRequired,
|
|
222
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
223
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
224
|
+
"trimRight": PropTypes.func.isRequired,
|
|
225
|
+
"trimStart": PropTypes.func.isRequired,
|
|
226
|
+
"valueOf": PropTypes.func.isRequired
|
|
227
|
+
})]),
|
|
178
228
|
"autoComplete": PropTypes.string,
|
|
179
229
|
"autoCorrect": PropTypes.string,
|
|
180
230
|
"autoFocus": PropTypes.bool,
|
|
@@ -411,7 +411,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
411
411
|
"aria-valuetext": PropTypes.string,
|
|
412
412
|
"ariaDescribedBy": PropTypes.string,
|
|
413
413
|
"as": PropTypes.elementType,
|
|
414
|
-
"autoCapitalize": PropTypes.
|
|
414
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
415
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
416
|
+
"anchor": PropTypes.func.isRequired,
|
|
417
|
+
"at": PropTypes.func.isRequired,
|
|
418
|
+
"big": PropTypes.func.isRequired,
|
|
419
|
+
"blink": PropTypes.func.isRequired,
|
|
420
|
+
"bold": PropTypes.func.isRequired,
|
|
421
|
+
"charAt": PropTypes.func.isRequired,
|
|
422
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
423
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
424
|
+
"concat": PropTypes.func.isRequired,
|
|
425
|
+
"endsWith": PropTypes.func.isRequired,
|
|
426
|
+
"fixed": PropTypes.func.isRequired,
|
|
427
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
428
|
+
"fontsize": PropTypes.func.isRequired,
|
|
429
|
+
"includes": PropTypes.func.isRequired,
|
|
430
|
+
"indexOf": PropTypes.func.isRequired,
|
|
431
|
+
"italics": PropTypes.func.isRequired,
|
|
432
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
433
|
+
"length": PropTypes.number.isRequired,
|
|
434
|
+
"link": PropTypes.func.isRequired,
|
|
435
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
436
|
+
"match": PropTypes.func.isRequired,
|
|
437
|
+
"matchAll": PropTypes.func.isRequired,
|
|
438
|
+
"normalize": PropTypes.func.isRequired,
|
|
439
|
+
"padEnd": PropTypes.func.isRequired,
|
|
440
|
+
"padStart": PropTypes.func.isRequired,
|
|
441
|
+
"repeat": PropTypes.func.isRequired,
|
|
442
|
+
"replace": PropTypes.func.isRequired,
|
|
443
|
+
"search": PropTypes.func.isRequired,
|
|
444
|
+
"slice": PropTypes.func.isRequired,
|
|
445
|
+
"small": PropTypes.func.isRequired,
|
|
446
|
+
"split": PropTypes.func.isRequired,
|
|
447
|
+
"startsWith": PropTypes.func.isRequired,
|
|
448
|
+
"strike": PropTypes.func.isRequired,
|
|
449
|
+
"sub": PropTypes.func.isRequired,
|
|
450
|
+
"substr": PropTypes.func.isRequired,
|
|
451
|
+
"substring": PropTypes.func.isRequired,
|
|
452
|
+
"sup": PropTypes.func.isRequired,
|
|
453
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
454
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
455
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
456
|
+
"toString": PropTypes.func.isRequired,
|
|
457
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
458
|
+
"trim": PropTypes.func.isRequired,
|
|
459
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
460
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
461
|
+
"trimRight": PropTypes.func.isRequired,
|
|
462
|
+
"trimStart": PropTypes.func.isRequired,
|
|
463
|
+
"valueOf": PropTypes.func.isRequired
|
|
464
|
+
})]),
|
|
415
465
|
"autoComplete": PropTypes.string,
|
|
416
466
|
"autoCorrect": PropTypes.string,
|
|
417
467
|
"autoFocus": PropTypes.bool,
|
|
@@ -244,7 +244,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
244
244
|
"aria-valuetext": PropTypes.string,
|
|
245
245
|
"ariaDescribedBy": PropTypes.string,
|
|
246
246
|
"as": PropTypes.elementType,
|
|
247
|
-
"autoCapitalize": PropTypes.
|
|
247
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
248
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
249
|
+
"anchor": PropTypes.func.isRequired,
|
|
250
|
+
"at": PropTypes.func.isRequired,
|
|
251
|
+
"big": PropTypes.func.isRequired,
|
|
252
|
+
"blink": PropTypes.func.isRequired,
|
|
253
|
+
"bold": PropTypes.func.isRequired,
|
|
254
|
+
"charAt": PropTypes.func.isRequired,
|
|
255
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
256
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
257
|
+
"concat": PropTypes.func.isRequired,
|
|
258
|
+
"endsWith": PropTypes.func.isRequired,
|
|
259
|
+
"fixed": PropTypes.func.isRequired,
|
|
260
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
261
|
+
"fontsize": PropTypes.func.isRequired,
|
|
262
|
+
"includes": PropTypes.func.isRequired,
|
|
263
|
+
"indexOf": PropTypes.func.isRequired,
|
|
264
|
+
"italics": PropTypes.func.isRequired,
|
|
265
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
266
|
+
"length": PropTypes.number.isRequired,
|
|
267
|
+
"link": PropTypes.func.isRequired,
|
|
268
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
269
|
+
"match": PropTypes.func.isRequired,
|
|
270
|
+
"matchAll": PropTypes.func.isRequired,
|
|
271
|
+
"normalize": PropTypes.func.isRequired,
|
|
272
|
+
"padEnd": PropTypes.func.isRequired,
|
|
273
|
+
"padStart": PropTypes.func.isRequired,
|
|
274
|
+
"repeat": PropTypes.func.isRequired,
|
|
275
|
+
"replace": PropTypes.func.isRequired,
|
|
276
|
+
"search": PropTypes.func.isRequired,
|
|
277
|
+
"slice": PropTypes.func.isRequired,
|
|
278
|
+
"small": PropTypes.func.isRequired,
|
|
279
|
+
"split": PropTypes.func.isRequired,
|
|
280
|
+
"startsWith": PropTypes.func.isRequired,
|
|
281
|
+
"strike": PropTypes.func.isRequired,
|
|
282
|
+
"sub": PropTypes.func.isRequired,
|
|
283
|
+
"substr": PropTypes.func.isRequired,
|
|
284
|
+
"substring": PropTypes.func.isRequired,
|
|
285
|
+
"sup": PropTypes.func.isRequired,
|
|
286
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
287
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
288
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
289
|
+
"toString": PropTypes.func.isRequired,
|
|
290
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
291
|
+
"trim": PropTypes.func.isRequired,
|
|
292
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
293
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
294
|
+
"trimRight": PropTypes.func.isRequired,
|
|
295
|
+
"trimStart": PropTypes.func.isRequired,
|
|
296
|
+
"valueOf": PropTypes.func.isRequired
|
|
297
|
+
})]),
|
|
248
298
|
"autoComplete": PropTypes.string,
|
|
249
299
|
"autoCorrect": PropTypes.string,
|
|
250
300
|
"autoFocus": PropTypes.bool,
|
|
@@ -31,7 +31,7 @@ export const DuellingPicklist = ({
|
|
|
31
31
|
return index;
|
|
32
32
|
};
|
|
33
33
|
const clonedChildren = React.Children.map(children, child => {
|
|
34
|
-
if (
|
|
34
|
+
if (/*#__PURE__*/React.isValidElement(child) && child.type === Picklist) {
|
|
35
35
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
36
36
|
index: getIndex()
|
|
37
37
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default (
|
|
1
|
+
export default (array, propertyName) => array.reduce((acc, _, index) => {
|
|
2
2
|
const currentId = array[index].getAttribute("id");
|
|
3
3
|
if (currentId) {
|
|
4
4
|
if (index === 0) {
|
|
@@ -13,4 +13,4 @@ export default ((array, propertyName) => array.reduce((acc, _, index) => {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return acc;
|
|
16
|
-
}, {})
|
|
16
|
+
}, {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useEffect, useState } from "react";
|
|
2
2
|
import FlatTableRowContext from "../flat-table-row/__internal__/flat-table-row.context";
|
|
3
3
|
import FlatTableContext from "./flat-table.context";
|
|
4
|
-
export default
|
|
4
|
+
export default id => {
|
|
5
5
|
const {
|
|
6
6
|
getTabStopElementId
|
|
7
7
|
} = useContext(FlatTableContext);
|
|
@@ -86,4 +86,4 @@ export default (id => {
|
|
|
86
86
|
isInSelectedRow: selected,
|
|
87
87
|
bringToFront
|
|
88
88
|
};
|
|
89
|
-
}
|
|
89
|
+
};
|
package/esm/components/form/required-fields-indicator/required-fields-indicator.component.js
CHANGED
|
@@ -14,7 +14,7 @@ const StyledIndicatorContainer = styled(Box)`
|
|
|
14
14
|
margin-left: var(--spacing050);
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
|
-
export default (
|
|
17
|
+
export default ({
|
|
18
18
|
children,
|
|
19
19
|
...rest
|
|
20
|
-
}) => /*#__PURE__*/React.createElement(StyledIndicatorContainer, rest, children)
|
|
20
|
+
}) => /*#__PURE__*/React.createElement(StyledIndicatorContainer, rest, children);
|
|
@@ -169,7 +169,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
169
169
|
"aria-valuetext": PropTypes.string,
|
|
170
170
|
"ariaDescribedBy": PropTypes.string,
|
|
171
171
|
"as": PropTypes.elementType,
|
|
172
|
-
"autoCapitalize": PropTypes.
|
|
172
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
173
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
174
|
+
"anchor": PropTypes.func.isRequired,
|
|
175
|
+
"at": PropTypes.func.isRequired,
|
|
176
|
+
"big": PropTypes.func.isRequired,
|
|
177
|
+
"blink": PropTypes.func.isRequired,
|
|
178
|
+
"bold": PropTypes.func.isRequired,
|
|
179
|
+
"charAt": PropTypes.func.isRequired,
|
|
180
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
181
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
182
|
+
"concat": PropTypes.func.isRequired,
|
|
183
|
+
"endsWith": PropTypes.func.isRequired,
|
|
184
|
+
"fixed": PropTypes.func.isRequired,
|
|
185
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
186
|
+
"fontsize": PropTypes.func.isRequired,
|
|
187
|
+
"includes": PropTypes.func.isRequired,
|
|
188
|
+
"indexOf": PropTypes.func.isRequired,
|
|
189
|
+
"italics": PropTypes.func.isRequired,
|
|
190
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
191
|
+
"length": PropTypes.number.isRequired,
|
|
192
|
+
"link": PropTypes.func.isRequired,
|
|
193
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
194
|
+
"match": PropTypes.func.isRequired,
|
|
195
|
+
"matchAll": PropTypes.func.isRequired,
|
|
196
|
+
"normalize": PropTypes.func.isRequired,
|
|
197
|
+
"padEnd": PropTypes.func.isRequired,
|
|
198
|
+
"padStart": PropTypes.func.isRequired,
|
|
199
|
+
"repeat": PropTypes.func.isRequired,
|
|
200
|
+
"replace": PropTypes.func.isRequired,
|
|
201
|
+
"search": PropTypes.func.isRequired,
|
|
202
|
+
"slice": PropTypes.func.isRequired,
|
|
203
|
+
"small": PropTypes.func.isRequired,
|
|
204
|
+
"split": PropTypes.func.isRequired,
|
|
205
|
+
"startsWith": PropTypes.func.isRequired,
|
|
206
|
+
"strike": PropTypes.func.isRequired,
|
|
207
|
+
"sub": PropTypes.func.isRequired,
|
|
208
|
+
"substr": PropTypes.func.isRequired,
|
|
209
|
+
"substring": PropTypes.func.isRequired,
|
|
210
|
+
"sup": PropTypes.func.isRequired,
|
|
211
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
212
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
213
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
214
|
+
"toString": PropTypes.func.isRequired,
|
|
215
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
216
|
+
"trim": PropTypes.func.isRequired,
|
|
217
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
218
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
219
|
+
"trimRight": PropTypes.func.isRequired,
|
|
220
|
+
"trimStart": PropTypes.func.isRequired,
|
|
221
|
+
"valueOf": PropTypes.func.isRequired
|
|
222
|
+
})]),
|
|
173
223
|
"autoComplete": PropTypes.string,
|
|
174
224
|
"autoCorrect": PropTypes.string,
|
|
175
225
|
"autoFocus": PropTypes.bool,
|
|
@@ -110,7 +110,57 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
110
110
|
"aria-valuetext": PropTypes.string,
|
|
111
111
|
"ariaDescribedBy": PropTypes.string,
|
|
112
112
|
"as": PropTypes.elementType,
|
|
113
|
-
"autoCapitalize": PropTypes.
|
|
113
|
+
"autoCapitalize": PropTypes.oneOfType([PropTypes.oneOf(["characters", "none", "off", "on", "sentences", "words"]), PropTypes.shape({
|
|
114
|
+
"__@iterator": PropTypes.func.isRequired,
|
|
115
|
+
"anchor": PropTypes.func.isRequired,
|
|
116
|
+
"at": PropTypes.func.isRequired,
|
|
117
|
+
"big": PropTypes.func.isRequired,
|
|
118
|
+
"blink": PropTypes.func.isRequired,
|
|
119
|
+
"bold": PropTypes.func.isRequired,
|
|
120
|
+
"charAt": PropTypes.func.isRequired,
|
|
121
|
+
"charCodeAt": PropTypes.func.isRequired,
|
|
122
|
+
"codePointAt": PropTypes.func.isRequired,
|
|
123
|
+
"concat": PropTypes.func.isRequired,
|
|
124
|
+
"endsWith": PropTypes.func.isRequired,
|
|
125
|
+
"fixed": PropTypes.func.isRequired,
|
|
126
|
+
"fontcolor": PropTypes.func.isRequired,
|
|
127
|
+
"fontsize": PropTypes.func.isRequired,
|
|
128
|
+
"includes": PropTypes.func.isRequired,
|
|
129
|
+
"indexOf": PropTypes.func.isRequired,
|
|
130
|
+
"italics": PropTypes.func.isRequired,
|
|
131
|
+
"lastIndexOf": PropTypes.func.isRequired,
|
|
132
|
+
"length": PropTypes.number.isRequired,
|
|
133
|
+
"link": PropTypes.func.isRequired,
|
|
134
|
+
"localeCompare": PropTypes.func.isRequired,
|
|
135
|
+
"match": PropTypes.func.isRequired,
|
|
136
|
+
"matchAll": PropTypes.func.isRequired,
|
|
137
|
+
"normalize": PropTypes.func.isRequired,
|
|
138
|
+
"padEnd": PropTypes.func.isRequired,
|
|
139
|
+
"padStart": PropTypes.func.isRequired,
|
|
140
|
+
"repeat": PropTypes.func.isRequired,
|
|
141
|
+
"replace": PropTypes.func.isRequired,
|
|
142
|
+
"search": PropTypes.func.isRequired,
|
|
143
|
+
"slice": PropTypes.func.isRequired,
|
|
144
|
+
"small": PropTypes.func.isRequired,
|
|
145
|
+
"split": PropTypes.func.isRequired,
|
|
146
|
+
"startsWith": PropTypes.func.isRequired,
|
|
147
|
+
"strike": PropTypes.func.isRequired,
|
|
148
|
+
"sub": PropTypes.func.isRequired,
|
|
149
|
+
"substr": PropTypes.func.isRequired,
|
|
150
|
+
"substring": PropTypes.func.isRequired,
|
|
151
|
+
"sup": PropTypes.func.isRequired,
|
|
152
|
+
"toLocaleLowerCase": PropTypes.func.isRequired,
|
|
153
|
+
"toLocaleUpperCase": PropTypes.func.isRequired,
|
|
154
|
+
"toLowerCase": PropTypes.func.isRequired,
|
|
155
|
+
"toString": PropTypes.func.isRequired,
|
|
156
|
+
"toUpperCase": PropTypes.func.isRequired,
|
|
157
|
+
"trim": PropTypes.func.isRequired,
|
|
158
|
+
"trimEnd": PropTypes.func.isRequired,
|
|
159
|
+
"trimLeft": PropTypes.func.isRequired,
|
|
160
|
+
"trimRight": PropTypes.func.isRequired,
|
|
161
|
+
"trimStart": PropTypes.func.isRequired,
|
|
162
|
+
"valueOf": PropTypes.func.isRequired
|
|
163
|
+
})]),
|
|
114
164
|
"autoComplete": PropTypes.string,
|
|
115
165
|
"autoCorrect": PropTypes.string,
|
|
116
166
|
"autoFocus": PropTypes.bool,
|