@carbon/react 1.0.0-rc.0 → 1.0.2
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/README.md +2 -2
- package/es/components/Accordion/Accordion.Skeleton.js +1 -7
- package/es/components/Accordion/AccordionItem.js +0 -5
- package/es/components/Button/Button.Skeleton.js +1 -3
- package/es/components/Button/Button.js +51 -113
- package/es/components/Checkbox/Checkbox.js +8 -21
- package/es/components/CodeSnippet/CodeSnippet.js +3 -11
- package/es/components/ComboBox/ComboBox.js +2 -4
- package/es/components/ContentSwitcher/index.js +13 -0
- package/es/components/DataTable/DataTable.js +5 -14
- package/es/components/DataTable/Table.js +3 -11
- package/es/components/DataTable/TableBatchAction.js +2 -1
- package/es/components/DataTable/TableExpandHeader.js +1 -1
- package/es/components/DataTable/TableToolbar.js +1 -2
- package/es/components/DataTable/TableToolbarSearch.js +4 -13
- package/es/components/DatePickerInput/next/DatePickerInput.js +6 -31
- package/es/components/Dropdown/Dropdown.Skeleton.js +4 -13
- package/es/components/Dropdown/Dropdown.js +4 -9
- package/es/components/ExpandableSearch/ExpandableSearch.js +16 -22
- package/es/components/FormGroup/FormGroup.js +4 -14
- package/es/components/IconButton/index.js +0 -1
- package/es/components/InlineLoading/InlineLoading.js +2 -9
- package/es/components/ListBox/ListBox.js +10 -0
- package/es/components/Modal/next/Modal.js +5 -8
- package/es/components/MultiSelect/FilterableMultiSelect.js +1 -2
- package/es/components/MultiSelect/MultiSelect.js +2 -3
- package/es/components/MultiSelect/next/FilterableMultiSelect.js +1 -2
- package/es/components/Notification/next/Notification.js +18 -39
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +1 -9
- package/es/components/RadioTile/RadioTile.js +6 -13
- package/es/components/Search/index.js +3 -3
- package/es/components/Search/next/Search.js +25 -20
- package/es/components/Select/Select.js +6 -14
- package/es/components/Slider/Slider.js +4 -14
- package/es/components/StructuredList/next/StructuredList.js +7 -11
- package/es/components/TextInput/ControlledPasswordInput.js +2 -2
- package/es/components/Tile/next/Tile.js +12 -51
- package/es/components/TileGroup/index.js +13 -0
- package/es/components/TimePickerSelect/next/TimePickerSelect.js +0 -6
- package/es/components/Toggletip/index.js +252 -0
- package/es/components/Tooltip/next/DefinitionTooltip.js +1 -1
- package/es/index.js +6 -10
- package/es/internal/useEvent.js +29 -0
- package/icons/package.json +2 -1
- package/lib/components/Accordion/Accordion.Skeleton.js +1 -7
- package/lib/components/Accordion/AccordionItem.js +0 -5
- package/lib/components/Button/Button.Skeleton.js +1 -3
- package/lib/components/Button/Button.js +49 -130
- package/lib/components/Checkbox/Checkbox.js +8 -21
- package/lib/components/CodeSnippet/CodeSnippet.js +3 -11
- package/lib/components/ComboBox/ComboBox.js +2 -4
- package/lib/components/ContentSwitcher/index.js +17 -0
- package/lib/components/DataTable/DataTable.js +5 -33
- package/lib/components/DataTable/Table.js +3 -30
- package/lib/components/DataTable/TableBatchAction.js +2 -1
- package/lib/components/DataTable/TableExpandHeader.js +1 -1
- package/lib/components/DataTable/TableToolbar.js +1 -21
- package/lib/components/DataTable/TableToolbarSearch.js +4 -13
- package/lib/components/DatePickerInput/next/DatePickerInput.js +5 -30
- package/lib/components/Dropdown/Dropdown.Skeleton.js +4 -13
- package/lib/components/Dropdown/Dropdown.js +4 -9
- package/lib/components/ExpandableSearch/ExpandableSearch.js +15 -21
- package/lib/components/FormGroup/FormGroup.js +3 -13
- package/lib/components/IconButton/index.js +0 -1
- package/lib/components/InlineLoading/InlineLoading.js +2 -9
- package/lib/components/ListBox/ListBox.js +10 -0
- package/lib/components/Modal/next/Modal.js +5 -8
- package/lib/components/MultiSelect/FilterableMultiSelect.js +1 -2
- package/lib/components/MultiSelect/MultiSelect.js +2 -3
- package/lib/components/MultiSelect/next/FilterableMultiSelect.js +1 -2
- package/lib/components/Notification/next/Notification.js +18 -39
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +1 -9
- package/lib/components/RadioTile/RadioTile.js +6 -13
- package/lib/components/Search/next/Search.js +25 -20
- package/lib/components/Select/Select.js +6 -33
- package/lib/components/Slider/Slider.js +4 -14
- package/lib/components/StructuredList/next/StructuredList.js +7 -11
- package/lib/components/TextInput/ControlledPasswordInput.js +2 -2
- package/lib/components/Tile/next/Tile.js +12 -51
- package/lib/components/TileGroup/index.js +17 -0
- package/lib/components/TimePickerSelect/next/TimePickerSelect.js +0 -6
- package/lib/components/Toggletip/index.js +266 -0
- package/lib/components/Tooltip/next/DefinitionTooltip.js +1 -1
- package/lib/index.js +102 -110
- package/lib/internal/useEvent.js +33 -0
- package/package.json +9 -9
- package/es/components/ToggleSmall/ToggleSmall.js +0 -104
- package/es/components/Toolbar/Toolbar.js +0 -121
- package/es/components/ToolbarSearch/ToolbarSearch.js +0 -168
- package/es/components/TooltipDefinition/TooltipDefinition.js +0 -167
- package/es/components/TooltipIcon/TooltipIcon.js +0 -235
- package/es/tools/createPropAdapter.js +0 -63
- package/lib/components/ToggleSmall/ToggleSmall.js +0 -114
- package/lib/components/Toolbar/Toolbar.js +0 -135
- package/lib/components/ToolbarSearch/ToolbarSearch.js +0 -178
- package/lib/components/TooltipDefinition/TooltipDefinition.js +0 -178
- package/lib/components/TooltipIcon/TooltipIcon.js +0 -245
- package/lib/tools/createPropAdapter.js +0 -67
|
@@ -30,10 +30,10 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
|
30
30
|
var _iconTypes;
|
|
31
31
|
|
|
32
32
|
var _excluded = ["children", "className", "onClick", "inline"],
|
|
33
|
-
_excluded2 = ["ariaLabel", "className", "
|
|
34
|
-
_excluded3 = ["role", "onClose", "onCloseButtonClick", "
|
|
35
|
-
_excluded4 = ["children", "title", "subtitle", "role", "onClose", "onCloseButtonClick", "
|
|
36
|
-
_excluded5 = ["actionButtonLabel", "children", "role", "onActionButtonClick", "onClose", "onCloseButtonClick", "
|
|
33
|
+
_excluded2 = ["ariaLabel", "className", "type", "renderIcon", "name", "notificationType"],
|
|
34
|
+
_excluded3 = ["role", "onClose", "onCloseButtonClick", "statusIconDescription", "className", "children", "kind", "lowContrast", "hideCloseButton", "timeout", "title", "caption", "subtitle"],
|
|
35
|
+
_excluded4 = ["children", "title", "subtitle", "role", "onClose", "onCloseButtonClick", "statusIconDescription", "className", "kind", "lowContrast", "hideCloseButton"],
|
|
36
|
+
_excluded5 = ["actionButtonLabel", "ariaLabel", "children", "role", "onActionButtonClick", "onClose", "onCloseButtonClick", "statusIconDescription", "className", "inline", "kind", "lowContrast", "hideCloseButton", "hasFocus", "closeOnEscape", "title", "subtitle"];
|
|
37
37
|
/**
|
|
38
38
|
* Conditionally call a callback when the escape key is pressed
|
|
39
39
|
* @param {node} ref - ref of the container element to scope the functionality to
|
|
@@ -101,7 +101,6 @@ NotificationActionButton.propTypes = {
|
|
|
101
101
|
function NotificationButton(_ref2) {
|
|
102
102
|
var ariaLabel = _ref2.ariaLabel,
|
|
103
103
|
className = _ref2.className,
|
|
104
|
-
iconDescription = _ref2.iconDescription,
|
|
105
104
|
type = _ref2.type,
|
|
106
105
|
IconTag = _ref2.renderIcon,
|
|
107
106
|
name = _ref2.name,
|
|
@@ -114,11 +113,10 @@ function NotificationButton(_ref2) {
|
|
|
114
113
|
return /*#__PURE__*/React__default["default"].createElement("button", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
|
115
114
|
// eslint-disable-next-line react/button-has-type
|
|
116
115
|
type: type,
|
|
117
|
-
"aria-label":
|
|
118
|
-
title:
|
|
116
|
+
"aria-label": ariaLabel,
|
|
117
|
+
title: ariaLabel,
|
|
119
118
|
className: buttonClassName
|
|
120
119
|
}), IconTag && /*#__PURE__*/React__default["default"].createElement(IconTag, {
|
|
121
|
-
"aria-label": ariaLabel,
|
|
122
120
|
className: iconClassName,
|
|
123
121
|
name: name
|
|
124
122
|
}));
|
|
@@ -134,11 +132,6 @@ NotificationButton.propTypes = {
|
|
|
134
132
|
*/
|
|
135
133
|
className: PropTypes__default["default"].string,
|
|
136
134
|
|
|
137
|
-
/**
|
|
138
|
-
* Provide a description for "close" icon that can be read by screen readers
|
|
139
|
-
*/
|
|
140
|
-
iconDescription: PropTypes__default["default"].string,
|
|
141
|
-
|
|
142
135
|
/**
|
|
143
136
|
* Specify an optional icon for the Button through a string,
|
|
144
137
|
* if something but regular "close" icon is desirable
|
|
@@ -163,10 +156,8 @@ NotificationButton.propTypes = {
|
|
|
163
156
|
};
|
|
164
157
|
NotificationButton.defaultProps = {
|
|
165
158
|
ariaLabel: 'close notification',
|
|
166
|
-
// TODO: deprecate this prop
|
|
167
159
|
notificationType: 'toast',
|
|
168
160
|
type: 'button',
|
|
169
|
-
iconDescription: 'close icon',
|
|
170
161
|
renderIcon: iconsReact.Close
|
|
171
162
|
};
|
|
172
163
|
var iconTypes = (_iconTypes = {
|
|
@@ -202,7 +193,6 @@ function ToastNotification(_ref4) {
|
|
|
202
193
|
var role = _ref4.role,
|
|
203
194
|
onClose = _ref4.onClose,
|
|
204
195
|
onCloseButtonClick = _ref4.onCloseButtonClick,
|
|
205
|
-
iconDescription = _ref4.iconDescription,
|
|
206
196
|
statusIconDescription = _ref4.statusIconDescription,
|
|
207
197
|
className = _ref4.className,
|
|
208
198
|
children = _ref4.children,
|
|
@@ -282,7 +272,6 @@ function ToastNotification(_ref4) {
|
|
|
282
272
|
}, subtitle), caption && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
283
273
|
className: "".concat(prefix, "--toast-notification__caption")
|
|
284
274
|
}, caption), children), !hideCloseButton && /*#__PURE__*/React__default["default"].createElement(NotificationButton, {
|
|
285
|
-
iconDescription: iconDescription,
|
|
286
275
|
notificationType: "toast",
|
|
287
276
|
onClick: handleCloseButtonClick,
|
|
288
277
|
"aria-hidden": "true",
|
|
@@ -290,6 +279,11 @@ function ToastNotification(_ref4) {
|
|
|
290
279
|
}));
|
|
291
280
|
}
|
|
292
281
|
ToastNotification.propTypes = {
|
|
282
|
+
/**
|
|
283
|
+
* Provide a description for "close" icon button that can be read by screen readers
|
|
284
|
+
*/
|
|
285
|
+
ariaLabel: PropTypes__default["default"].string,
|
|
286
|
+
|
|
293
287
|
/**
|
|
294
288
|
* Specify the caption
|
|
295
289
|
*/
|
|
@@ -310,11 +304,6 @@ ToastNotification.propTypes = {
|
|
|
310
304
|
*/
|
|
311
305
|
hideCloseButton: PropTypes__default["default"].bool,
|
|
312
306
|
|
|
313
|
-
/**
|
|
314
|
-
* Provide a description for "close" icon that can be read by screen readers
|
|
315
|
-
*/
|
|
316
|
-
iconDescription: PropTypes__default["default"].string,
|
|
317
|
-
|
|
318
307
|
/**
|
|
319
308
|
* Specify what state the notification represents
|
|
320
309
|
*/
|
|
@@ -364,7 +353,6 @@ ToastNotification.propTypes = {
|
|
|
364
353
|
ToastNotification.defaultProps = {
|
|
365
354
|
kind: 'error',
|
|
366
355
|
role: 'status',
|
|
367
|
-
iconDescription: 'closes notification',
|
|
368
356
|
onCloseButtonClick: function onCloseButtonClick() {},
|
|
369
357
|
hideCloseButton: false,
|
|
370
358
|
timeout: 0
|
|
@@ -378,7 +366,6 @@ function InlineNotification(_ref5) {
|
|
|
378
366
|
role = _ref5.role,
|
|
379
367
|
onClose = _ref5.onClose,
|
|
380
368
|
onCloseButtonClick = _ref5.onCloseButtonClick,
|
|
381
|
-
iconDescription = _ref5.iconDescription,
|
|
382
369
|
statusIconDescription = _ref5.statusIconDescription,
|
|
383
370
|
className = _ref5.className,
|
|
384
371
|
kind = _ref5.kind,
|
|
@@ -432,7 +419,6 @@ function InlineNotification(_ref5) {
|
|
|
432
419
|
}, title), subtitle && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
433
420
|
className: "".concat(prefix, "--inline-notification__subtitle")
|
|
434
421
|
}, subtitle), children)), !hideCloseButton && /*#__PURE__*/React__default["default"].createElement(NotificationButton, {
|
|
435
|
-
iconDescription: iconDescription,
|
|
436
422
|
notificationType: "inline",
|
|
437
423
|
onClick: handleCloseButtonClick,
|
|
438
424
|
"aria-hidden": "true",
|
|
@@ -455,11 +441,6 @@ InlineNotification.propTypes = {
|
|
|
455
441
|
*/
|
|
456
442
|
hideCloseButton: PropTypes__default["default"].bool,
|
|
457
443
|
|
|
458
|
-
/**
|
|
459
|
-
* Provide a description for "close" icon that can be read by screen readers
|
|
460
|
-
*/
|
|
461
|
-
iconDescription: PropTypes__default["default"].string,
|
|
462
|
-
|
|
463
444
|
/**
|
|
464
445
|
* Specify what state the notification represents
|
|
465
446
|
*/
|
|
@@ -504,7 +485,6 @@ InlineNotification.propTypes = {
|
|
|
504
485
|
InlineNotification.defaultProps = {
|
|
505
486
|
kind: 'error',
|
|
506
487
|
role: 'status',
|
|
507
|
-
iconDescription: 'closes notification',
|
|
508
488
|
onCloseButtonClick: function onCloseButtonClick() {},
|
|
509
489
|
hideCloseButton: false
|
|
510
490
|
};
|
|
@@ -512,12 +492,12 @@ function ActionableNotification(_ref6) {
|
|
|
512
492
|
var _cx6;
|
|
513
493
|
|
|
514
494
|
var actionButtonLabel = _ref6.actionButtonLabel,
|
|
495
|
+
ariaLabel = _ref6.ariaLabel,
|
|
515
496
|
children = _ref6.children,
|
|
516
497
|
role = _ref6.role,
|
|
517
498
|
onActionButtonClick = _ref6.onActionButtonClick,
|
|
518
499
|
onClose = _ref6.onClose,
|
|
519
500
|
onCloseButtonClick = _ref6.onCloseButtonClick,
|
|
520
|
-
iconDescription = _ref6.iconDescription,
|
|
521
501
|
statusIconDescription = _ref6.statusIconDescription,
|
|
522
502
|
className = _ref6.className,
|
|
523
503
|
inline = _ref6.inline,
|
|
@@ -583,7 +563,7 @@ function ActionableNotification(_ref6) {
|
|
|
583
563
|
onClick: onActionButtonClick,
|
|
584
564
|
inline: inline
|
|
585
565
|
}, actionButtonLabel), !hideCloseButton && /*#__PURE__*/React__default["default"].createElement(NotificationButton, {
|
|
586
|
-
|
|
566
|
+
"aria-label": ariaLabel,
|
|
587
567
|
notificationType: "actionable",
|
|
588
568
|
onClick: handleCloseButtonClick
|
|
589
569
|
}));
|
|
@@ -594,6 +574,11 @@ ActionableNotification.propTypes = {
|
|
|
594
574
|
*/
|
|
595
575
|
actionButtonLabel: PropTypes__default["default"].string.isRequired,
|
|
596
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Provide a description for "close" icon button that can be read by screen readers
|
|
579
|
+
*/
|
|
580
|
+
ariaLabel: PropTypes__default["default"].string,
|
|
581
|
+
|
|
597
582
|
/**
|
|
598
583
|
* Specify the caption
|
|
599
584
|
*/
|
|
@@ -624,11 +609,6 @@ ActionableNotification.propTypes = {
|
|
|
624
609
|
*/
|
|
625
610
|
hideCloseButton: PropTypes__default["default"].bool,
|
|
626
611
|
|
|
627
|
-
/**
|
|
628
|
-
* Provide a description for "close" icon that can be read by screen readers
|
|
629
|
-
*/
|
|
630
|
-
iconDescription: PropTypes__default["default"].string,
|
|
631
|
-
|
|
632
612
|
/*
|
|
633
613
|
* Specify if the notification should have inline styling applied instead of toast
|
|
634
614
|
*/
|
|
@@ -683,7 +663,6 @@ ActionableNotification.propTypes = {
|
|
|
683
663
|
ActionableNotification.defaultProps = {
|
|
684
664
|
kind: 'error',
|
|
685
665
|
role: 'alertdialog',
|
|
686
|
-
iconDescription: 'closes notification',
|
|
687
666
|
onCloseButtonClick: function onCloseButtonClick() {},
|
|
688
667
|
hideCloseButton: false,
|
|
689
668
|
hasFocus: true,
|
|
@@ -14,7 +14,6 @@ var cx = require('classnames');
|
|
|
14
14
|
var PropTypes = require('prop-types');
|
|
15
15
|
var React = require('react');
|
|
16
16
|
var warning = require('../../internal/warning.js');
|
|
17
|
-
var deprecate = require('../../prop-types/deprecate.js');
|
|
18
17
|
var FeatureFlags = require('@carbon/feature-flags');
|
|
19
18
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
20
19
|
var match = require('../../internal/keyboard/match.js');
|
|
@@ -45,7 +44,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
45
44
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
46
45
|
var FeatureFlags__namespace = /*#__PURE__*/_interopNamespace(FeatureFlags);
|
|
47
46
|
|
|
48
|
-
var _excluded = ["href", "className", "itemText", "hasDivider", "isDelete", "disabled", "closeMenu", "onClick", "handleOverflowMenuItemFocus", "onKeyDown", "
|
|
47
|
+
var _excluded = ["href", "className", "itemText", "hasDivider", "isDelete", "disabled", "closeMenu", "onClick", "handleOverflowMenuItemFocus", "onKeyDown", "wrapperClassName", "requireTitle", "index", "title"];
|
|
49
48
|
|
|
50
49
|
var OverflowMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
51
50
|
_rollupPluginBabelHelpers.inherits(OverflowMenuItem, _React$Component);
|
|
@@ -111,7 +110,6 @@ var OverflowMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
|
111
110
|
_this$props2.onClick;
|
|
112
111
|
_this$props2.handleOverflowMenuItemFocus;
|
|
113
112
|
var _onKeyDown = _this$props2.onKeyDown,
|
|
114
|
-
primaryFocus = _this$props2.primaryFocus,
|
|
115
113
|
wrapperClassName = _this$props2.wrapperClassName,
|
|
116
114
|
requireTitle = _this$props2.requireTitle,
|
|
117
115
|
index = _this$props2.index,
|
|
@@ -143,7 +141,6 @@ var OverflowMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
|
143
141
|
className: overflowMenuItemClasses,
|
|
144
142
|
role: "none"
|
|
145
143
|
}, /*#__PURE__*/React__default["default"].createElement(TagToUse, _rollupPluginBabelHelpers["extends"]({}, other, {
|
|
146
|
-
'data-floating-menu-primary-focus': primaryFocus || null,
|
|
147
144
|
role: "menuitem",
|
|
148
145
|
href: href,
|
|
149
146
|
className: overflowMenuBtnClasses,
|
|
@@ -217,11 +214,6 @@ _rollupPluginBabelHelpers.defineProperty(OverflowMenuItem, "propTypes", {
|
|
|
217
214
|
onMouseLeave: PropTypes__default["default"].func,
|
|
218
215
|
onMouseUp: PropTypes__default["default"].func,
|
|
219
216
|
|
|
220
|
-
/**
|
|
221
|
-
* `true` if this menu item should get focus when the menu gets open.
|
|
222
|
-
*/
|
|
223
|
-
primaryFocus: deprecate["default"](PropTypes__default["default"].bool, 'The `primaryFocus` prop has been deprecated as it is no longer used. ' + 'Feel free to remove this prop from <OverflowMenuItem>. This prop will ' + 'be removed in the next major release of `carbon-components-react`. ' + 'Opt for `selectorPrimaryFocus` in `<OverflowMenu>` instead'),
|
|
224
|
-
|
|
225
217
|
/**
|
|
226
218
|
* `true` if this menu item has long text and requires a browser tooltip
|
|
227
219
|
*/
|
|
@@ -14,10 +14,10 @@ var iconsReact = require('@carbon/icons-react');
|
|
|
14
14
|
var cx = require('classnames');
|
|
15
15
|
var PropTypes = require('prop-types');
|
|
16
16
|
var React = require('react');
|
|
17
|
-
var deprecate = require('../../prop-types/deprecate.js');
|
|
18
17
|
var useId = require('../../internal/useId.js');
|
|
19
18
|
var index = require('../FeatureFlags/index.js');
|
|
20
19
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
20
|
+
var deprecate = require('../../prop-types/deprecate.js');
|
|
21
21
|
var match = require('../../internal/keyboard/match.js');
|
|
22
22
|
var keys = require('../../internal/keyboard/keys.js');
|
|
23
23
|
|
|
@@ -29,16 +29,15 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
29
29
|
|
|
30
30
|
var _CheckmarkFilled;
|
|
31
31
|
|
|
32
|
-
var _excluded = ["children", "className", "disabled", "
|
|
32
|
+
var _excluded = ["children", "className", "disabled", "light", "checked", "name", "value", "id", "onChange", "tabIndex"];
|
|
33
33
|
|
|
34
34
|
function RadioTile(_ref) {
|
|
35
35
|
var _cx;
|
|
36
36
|
|
|
37
37
|
var children = _ref.children,
|
|
38
38
|
customClassName = _ref.className,
|
|
39
|
-
disabled = _ref.disabled
|
|
40
|
-
_ref.
|
|
41
|
-
var light = _ref.light,
|
|
39
|
+
disabled = _ref.disabled,
|
|
40
|
+
light = _ref.light,
|
|
42
41
|
checked = _ref.checked,
|
|
43
42
|
name = _ref.name,
|
|
44
43
|
value = _ref.value,
|
|
@@ -112,11 +111,6 @@ RadioTile.propTypes = {
|
|
|
112
111
|
*/
|
|
113
112
|
disabled: PropTypes__default["default"].bool,
|
|
114
113
|
|
|
115
|
-
/**
|
|
116
|
-
* The description of the tile checkmark icon.
|
|
117
|
-
*/
|
|
118
|
-
iconDescription: deprecate["default"](PropTypes__default["default"].string, 'The `iconDescription` prop for `RadioTile` is no longer needed and has ' + 'been deprecated. It will be moved in the next major release.'),
|
|
119
|
-
|
|
120
114
|
/**
|
|
121
115
|
* The ID of the `<input>`.
|
|
122
116
|
*/
|
|
@@ -126,7 +120,7 @@ RadioTile.propTypes = {
|
|
|
126
120
|
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
127
121
|
* Don't use this to make tile background color same as container background color.
|
|
128
122
|
*/
|
|
129
|
-
light: PropTypes__default["default"].bool,
|
|
123
|
+
light: deprecate["default"](PropTypes__default["default"].bool, 'The `light` prop for `RadioTile` is no longer needed and has ' + 'been deprecated in v11 in favor of the new `Layer` component. It will be moved in the next major release.'),
|
|
130
124
|
|
|
131
125
|
/**
|
|
132
126
|
* The `name` of the `<input>`.
|
|
@@ -150,8 +144,7 @@ RadioTile.propTypes = {
|
|
|
150
144
|
};
|
|
151
145
|
RadioTile.defaultProps = {
|
|
152
146
|
onChange: function onChange() {},
|
|
153
|
-
tabIndex: 0
|
|
154
|
-
light: false
|
|
147
|
+
tabIndex: 0
|
|
155
148
|
};
|
|
156
149
|
|
|
157
150
|
exports["default"] = RadioTile;
|
|
@@ -17,8 +17,9 @@ var React = require('react');
|
|
|
17
17
|
var index = require('../../../internal/focus/index.js');
|
|
18
18
|
var useId = require('../../../internal/useId.js');
|
|
19
19
|
var usePrefix = require('../../../internal/usePrefix.js');
|
|
20
|
-
var deprecate = require('../../../prop-types/deprecate.js');
|
|
21
20
|
var events = require('../../../tools/events.js');
|
|
21
|
+
var useMergedRefs = require('../../../internal/useMergedRefs.js');
|
|
22
|
+
var deprecate = require('../../../prop-types/deprecate.js');
|
|
22
23
|
var match = require('../../../internal/keyboard/match.js');
|
|
23
24
|
var keys = require('../../../internal/keyboard/keys.js');
|
|
24
25
|
|
|
@@ -30,9 +31,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
30
31
|
|
|
31
32
|
var _Close;
|
|
32
33
|
|
|
33
|
-
var _excluded = ["autoComplete", "className", "closeButtonLabelText", "defaultValue", "disabled", "id", "labelText", "light", "onChange", "onClear", "onKeyDown", "
|
|
34
|
-
|
|
35
|
-
function Search(_ref) {
|
|
34
|
+
var _excluded = ["autoComplete", "className", "closeButtonLabelText", "defaultValue", "disabled", "id", "labelText", "light", "onChange", "onClear", "onKeyDown", "onExpand", "placeholder", "renderIcon", "role", "size", "type", "value"];
|
|
35
|
+
var Search = /*#__PURE__*/React__default["default"].forwardRef(function Search(_ref, forwardRef) {
|
|
36
36
|
var _cx, _cx2;
|
|
37
37
|
|
|
38
38
|
var _ref$autoComplete = _ref.autoComplete,
|
|
@@ -50,7 +50,7 @@ function Search(_ref) {
|
|
|
50
50
|
_ref$onClear = _ref.onClear,
|
|
51
51
|
onClear = _ref$onClear === void 0 ? function () {} : _ref$onClear,
|
|
52
52
|
onKeyDown = _ref.onKeyDown,
|
|
53
|
-
|
|
53
|
+
onExpand = _ref.onExpand,
|
|
54
54
|
_ref$placeholder = _ref.placeholder,
|
|
55
55
|
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
|
56
56
|
renderIcon = _ref.renderIcon,
|
|
@@ -64,8 +64,8 @@ function Search(_ref) {
|
|
|
64
64
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
65
65
|
|
|
66
66
|
var prefix = usePrefix.usePrefix();
|
|
67
|
-
var
|
|
68
|
-
var
|
|
67
|
+
var inputRef = React.useRef(null);
|
|
68
|
+
var ref = useMergedRefs.useMergedRefs([forwardRef, inputRef]);
|
|
69
69
|
var inputId = useId.useId('search-input');
|
|
70
70
|
var uniqueId = id || inputId;
|
|
71
71
|
var searchId = "".concat(uniqueId, "-search");
|
|
@@ -90,7 +90,7 @@ function Search(_ref) {
|
|
|
90
90
|
|
|
91
91
|
function clearInput(event) {
|
|
92
92
|
if (!value) {
|
|
93
|
-
|
|
93
|
+
inputRef.current.value = '';
|
|
94
94
|
onChange(event);
|
|
95
95
|
} else {
|
|
96
96
|
var clearedEvt = Object.assign({}, event.target, {
|
|
@@ -103,7 +103,7 @@ function Search(_ref) {
|
|
|
103
103
|
|
|
104
104
|
onClear();
|
|
105
105
|
setHasContent(false);
|
|
106
|
-
index.focus(
|
|
106
|
+
index.focus(inputRef);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
function handleChange(event) {
|
|
@@ -122,8 +122,13 @@ function Search(_ref) {
|
|
|
122
122
|
"aria-labelledby": searchId,
|
|
123
123
|
className: searchClasses
|
|
124
124
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
125
|
+
role: onExpand ? 'button' : null,
|
|
125
126
|
className: "".concat(prefix, "--search-magnifier"),
|
|
126
|
-
|
|
127
|
+
onClick: function onClick() {
|
|
128
|
+
if (onExpand) {
|
|
129
|
+
onExpand();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
127
132
|
}, /*#__PURE__*/React__default["default"].createElement(CustomSearchIcon, {
|
|
128
133
|
icon: renderIcon
|
|
129
134
|
})), /*#__PURE__*/React__default["default"].createElement("label", {
|
|
@@ -136,11 +141,11 @@ function Search(_ref) {
|
|
|
136
141
|
defaultValue: defaultValue,
|
|
137
142
|
disabled: disabled,
|
|
138
143
|
role: role,
|
|
139
|
-
ref:
|
|
144
|
+
ref: ref,
|
|
140
145
|
id: uniqueId,
|
|
141
146
|
onChange: events.composeEventHandlers([onChange, handleChange]),
|
|
142
147
|
onKeyDown: events.composeEventHandlers([onKeyDown, handleKeyDown]),
|
|
143
|
-
placeholder:
|
|
148
|
+
placeholder: placeholder,
|
|
144
149
|
type: type,
|
|
145
150
|
value: value
|
|
146
151
|
})), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
@@ -150,8 +155,7 @@ function Search(_ref) {
|
|
|
150
155
|
onClick: clearInput,
|
|
151
156
|
type: "button"
|
|
152
157
|
}, _Close || (_Close = /*#__PURE__*/React__default["default"].createElement(iconsReact.Close, null))));
|
|
153
|
-
}
|
|
154
|
-
|
|
158
|
+
});
|
|
155
159
|
Search.propTypes = {
|
|
156
160
|
/**
|
|
157
161
|
* Specify an optional value for the `autocomplete` property on the underlying
|
|
@@ -192,7 +196,7 @@ Search.propTypes = {
|
|
|
192
196
|
/**
|
|
193
197
|
* Specify light version or default version of this control
|
|
194
198
|
*/
|
|
195
|
-
light: PropTypes__default["default"].bool,
|
|
199
|
+
light: deprecate["default"](PropTypes__default["default"].bool, 'The `light` prop for `Search` is no longer needed and has ' + 'been deprecated in v11 in favor of the new `Layer` component. It will be moved in the next major release.'),
|
|
196
200
|
|
|
197
201
|
/**
|
|
198
202
|
* Optional callback called when the search value changes.
|
|
@@ -205,14 +209,14 @@ Search.propTypes = {
|
|
|
205
209
|
onClear: PropTypes__default["default"].func,
|
|
206
210
|
|
|
207
211
|
/**
|
|
208
|
-
*
|
|
212
|
+
* Optional callback called when the magnifier icon is clicked in ExpandableSearch.
|
|
209
213
|
*/
|
|
210
|
-
|
|
214
|
+
onExpand: PropTypes__default["default"].func,
|
|
211
215
|
|
|
212
216
|
/**
|
|
213
|
-
*
|
|
217
|
+
* Provide a handler that is invoked on the key down event for the input
|
|
214
218
|
*/
|
|
215
|
-
|
|
219
|
+
onKeyDown: PropTypes__default["default"].func,
|
|
216
220
|
|
|
217
221
|
/**
|
|
218
222
|
* Provide an optional placeholder text for the Search.
|
|
@@ -269,5 +273,6 @@ CustomSearchIcon.propTypes = {
|
|
|
269
273
|
*/
|
|
270
274
|
icon: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].object])
|
|
271
275
|
};
|
|
276
|
+
var SearchNext = Search;
|
|
272
277
|
|
|
273
|
-
exports["default"] =
|
|
278
|
+
exports["default"] = SearchNext;
|
|
@@ -17,34 +17,14 @@ var iconsReact = require('@carbon/icons-react');
|
|
|
17
17
|
var deprecate = require('../../prop-types/deprecate.js');
|
|
18
18
|
var index = require('../FeatureFlags/index.js');
|
|
19
19
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
20
|
-
var FeatureFlags = require('@carbon/feature-flags');
|
|
21
20
|
|
|
22
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
22
|
|
|
24
|
-
function _interopNamespace(e) {
|
|
25
|
-
if (e && e.__esModule) return e;
|
|
26
|
-
var n = Object.create(null);
|
|
27
|
-
if (e) {
|
|
28
|
-
Object.keys(e).forEach(function (k) {
|
|
29
|
-
if (k !== 'default') {
|
|
30
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
31
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return e[k]; }
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
n["default"] = e;
|
|
39
|
-
return Object.freeze(n);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
23
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
43
24
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
44
25
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
45
|
-
var FeatureFlags__namespace = /*#__PURE__*/_interopNamespace(FeatureFlags);
|
|
46
26
|
|
|
47
|
-
var _excluded = ["className", "id", "inline", "labelText", "disabled", "children", "noLabel", "
|
|
27
|
+
var _excluded = ["className", "id", "inline", "labelText", "disabled", "children", "noLabel", "hideLabel", "invalid", "invalidText", "helperText", "light", "size", "warn", "warnText"];
|
|
48
28
|
var Select = /*#__PURE__*/React__default["default"].forwardRef(function Select(_ref, ref) {
|
|
49
29
|
var _classNames, _classNames2, _classNames3;
|
|
50
30
|
|
|
@@ -54,9 +34,8 @@ var Select = /*#__PURE__*/React__default["default"].forwardRef(function Select(_
|
|
|
54
34
|
labelText = _ref.labelText,
|
|
55
35
|
disabled = _ref.disabled,
|
|
56
36
|
children = _ref.children,
|
|
57
|
-
noLabel = _ref.noLabel
|
|
58
|
-
_ref.
|
|
59
|
-
var hideLabel = _ref.hideLabel,
|
|
37
|
+
noLabel = _ref.noLabel,
|
|
38
|
+
hideLabel = _ref.hideLabel,
|
|
60
39
|
invalid = _ref.invalid,
|
|
61
40
|
invalidText = _ref.invalidText,
|
|
62
41
|
helperText = _ref.helperText,
|
|
@@ -162,11 +141,6 @@ Select.propTypes = {
|
|
|
162
141
|
*/
|
|
163
142
|
hideLabel: PropTypes__default["default"].bool,
|
|
164
143
|
|
|
165
|
-
/**
|
|
166
|
-
* Provide a description for the twistie icon that can be read by screen readers
|
|
167
|
-
*/
|
|
168
|
-
iconDescription: deprecate["default"](PropTypes__default["default"].string, 'The `iconDescription` prop for `Select` is no longer needed and has ' + 'been deprecated. It will be moved in the next major release.'),
|
|
169
|
-
|
|
170
144
|
/**
|
|
171
145
|
* Specify a custom `id` for the `<select>`
|
|
172
146
|
*/
|
|
@@ -197,7 +171,7 @@ Select.propTypes = {
|
|
|
197
171
|
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
198
172
|
* Don't use this to make tile background color same as container background color.
|
|
199
173
|
*/
|
|
200
|
-
light: PropTypes__default["default"].bool,
|
|
174
|
+
light: deprecate["default"](PropTypes__default["default"].bool, 'The `light` prop for `Select` is no longer needed and has ' + 'been deprecated in v11 in favor of the new `Layer` component. It will be moved in the next major release.'),
|
|
201
175
|
|
|
202
176
|
/**
|
|
203
177
|
* Reserved for use with <Pagination> component. Will not render a label for the
|
|
@@ -214,7 +188,7 @@ Select.propTypes = {
|
|
|
214
188
|
/**
|
|
215
189
|
* Specify the size of the Select Input.
|
|
216
190
|
*/
|
|
217
|
-
size:
|
|
191
|
+
size: PropTypes__default["default"].oneOf(['sm', 'md', 'lg']),
|
|
218
192
|
|
|
219
193
|
/**
|
|
220
194
|
* Specify whether the control is currently in warning state
|
|
@@ -232,8 +206,7 @@ Select.defaultProps = {
|
|
|
232
206
|
inline: false,
|
|
233
207
|
invalid: false,
|
|
234
208
|
invalidText: '',
|
|
235
|
-
helperText: ''
|
|
236
|
-
light: false
|
|
209
|
+
helperText: ''
|
|
237
210
|
};
|
|
238
211
|
var Select$1 = Select;
|
|
239
212
|
|
|
@@ -47,7 +47,7 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
|
47
47
|
var throttle__default = /*#__PURE__*/_interopDefaultLegacy(throttle);
|
|
48
48
|
var FeatureFlags__namespace = /*#__PURE__*/_interopNamespace(FeatureFlags);
|
|
49
49
|
|
|
50
|
-
var _excluded = ["ariaLabelInput", "className", "hideTextInput", "id", "min", "minLabel", "max", "maxLabel", "formatLabel", "labelText", "step", "
|
|
50
|
+
var _excluded = ["ariaLabelInput", "className", "hideTextInput", "id", "min", "minLabel", "max", "maxLabel", "formatLabel", "labelText", "step", "stepMultiplier", "inputType", "required", "disabled", "name", "light"];
|
|
51
51
|
|
|
52
52
|
var defaultFormatLabel = function defaultFormatLabel(value, label) {
|
|
53
53
|
return typeof label === 'function' ? label(value) : "".concat(value).concat(label);
|
|
@@ -188,7 +188,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
if (evt.shiftKey) {
|
|
191
|
-
var stepMultiplier = _this.props.stepMultiplier
|
|
191
|
+
var stepMultiplier = _this.props.stepMultiplier;
|
|
192
192
|
delta *= stepMultiplier;
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -347,7 +347,6 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
347
347
|
// Fire onChange event handler if present, if there's a usable value, and
|
|
348
348
|
// if the value is different from the last one
|
|
349
349
|
if (this.state.value !== '' && prevState.value !== this.state.value && typeof this.props.onChange === 'function') {
|
|
350
|
-
// TODO: pass event object as first param (breaking change/feat for v11)
|
|
351
350
|
this.props.onChange({
|
|
352
351
|
value: this.state.value
|
|
353
352
|
});
|
|
@@ -355,7 +354,6 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
355
354
|
|
|
356
355
|
|
|
357
356
|
if (this.state.needsOnRelease && typeof this.props.onRelease === 'function') {
|
|
358
|
-
// TODO: pass event object as first param (breaking change/feat for v11)
|
|
359
357
|
this.props.onRelease({
|
|
360
358
|
value: this.state.value
|
|
361
359
|
}); // Reset the flag
|
|
@@ -418,7 +416,6 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
|
|
|
418
416
|
formatLabel = _this$props$formatLab === void 0 ? defaultFormatLabel : _this$props$formatLab,
|
|
419
417
|
labelText = _this$props.labelText,
|
|
420
418
|
step = _this$props.step;
|
|
421
|
-
_this$props.stepMuliplier;
|
|
422
419
|
_this$props.stepMultiplier;
|
|
423
420
|
var inputType = _this$props.inputType,
|
|
424
421
|
required = _this$props.required,
|
|
@@ -597,7 +594,7 @@ _rollupPluginBabelHelpers.defineProperty(Slider, "propTypes", {
|
|
|
597
594
|
/**
|
|
598
595
|
* `true` to use the light version.
|
|
599
596
|
*/
|
|
600
|
-
light: PropTypes__default["default"].bool,
|
|
597
|
+
light: deprecate["default"](PropTypes__default["default"].bool, 'The `light` prop for `Slider` is no longer needed and has ' + 'been deprecated in v11 in favor of the new `Layer` component. It will be moved in the next major release.'),
|
|
601
598
|
|
|
602
599
|
/**
|
|
603
600
|
* The maximum value.
|
|
@@ -644,12 +641,6 @@ _rollupPluginBabelHelpers.defineProperty(Slider, "propTypes", {
|
|
|
644
641
|
*/
|
|
645
642
|
step: PropTypes__default["default"].number,
|
|
646
643
|
|
|
647
|
-
/**
|
|
648
|
-
* A value determining how much the value should increase/decrease by Shift+arrow keys,
|
|
649
|
-
* which will be `(max - min) / stepMuliplier`.
|
|
650
|
-
*/
|
|
651
|
-
stepMuliplier: deprecate["default"](PropTypes__default["default"].number, ' The `stepMuliplier` prop has been deprecated in favor of `stepMultiplier`. It will be removed in the next major release.'),
|
|
652
|
-
|
|
653
644
|
/**
|
|
654
645
|
* A value determining how much the value should increase/decrease by Shift+arrow keys,
|
|
655
646
|
* which will be `(max - min) / stepMultiplier`.
|
|
@@ -670,8 +661,7 @@ _rollupPluginBabelHelpers.defineProperty(Slider, "defaultProps", {
|
|
|
670
661
|
minLabel: '',
|
|
671
662
|
maxLabel: '',
|
|
672
663
|
inputType: 'number',
|
|
673
|
-
ariaLabelInput: FeatureFlags__namespace.enabled('enable-v11-release') ? undefined : 'Slider number input'
|
|
674
|
-
light: false
|
|
664
|
+
ariaLabelInput: FeatureFlags__namespace.enabled('enable-v11-release') ? undefined : 'Slider number input'
|
|
675
665
|
});
|
|
676
666
|
|
|
677
667
|
_rollupPluginBabelHelpers.defineProperty(Slider, "contextType", index.FeatureFlagContext);
|
|
@@ -23,7 +23,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
23
23
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
24
24
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
25
25
|
|
|
26
|
-
var _excluded = ["children", "selection", "className", "ariaLabel"
|
|
26
|
+
var _excluded = ["children", "selection", "className", "ariaLabel"],
|
|
27
27
|
_excluded2 = ["children", "className"],
|
|
28
28
|
_excluded3 = ["children", "className"],
|
|
29
29
|
_excluded4 = ["onKeyDown", "children", "className", "head"],
|
|
@@ -35,9 +35,8 @@ function StructuredListWrapper(props) {
|
|
|
35
35
|
var children = props.children,
|
|
36
36
|
selection = props.selection,
|
|
37
37
|
className = props.className,
|
|
38
|
-
ariaLabel = props.ariaLabel
|
|
39
|
-
props
|
|
40
|
-
var other = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
|
38
|
+
ariaLabel = props.ariaLabel,
|
|
39
|
+
other = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
|
41
40
|
|
|
42
41
|
var prefix = usePrefix.usePrefix();
|
|
43
42
|
var classes = cx__default["default"]("".concat(prefix, "--structured-list"), className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--structured-list--selection"), selection));
|
|
@@ -64,11 +63,6 @@ StructuredListWrapper.propTypes = {
|
|
|
64
63
|
*/
|
|
65
64
|
ariaLabel: PropTypes__default["default"].string,
|
|
66
65
|
|
|
67
|
-
/**
|
|
68
|
-
* Specify whether a border should be added to your StructuredListWrapper
|
|
69
|
-
*/
|
|
70
|
-
border: deprecate["default"](PropTypes__default["default"].bool, "\nThe prop `border` will be removed in the next major version of Carbon."),
|
|
71
|
-
|
|
72
66
|
/**
|
|
73
67
|
* Provide the contents of your StructuredListWrapper
|
|
74
68
|
*/
|
|
@@ -220,6 +214,8 @@ StructuredListRow.defaultProps = {
|
|
|
220
214
|
onKeyDown: function onKeyDown() {}
|
|
221
215
|
};
|
|
222
216
|
function StructuredListInput(props) {
|
|
217
|
+
var _row$id;
|
|
218
|
+
|
|
223
219
|
var defaultId = useId.useId('structureListInput');
|
|
224
220
|
|
|
225
221
|
var className = props.className,
|
|
@@ -238,11 +234,11 @@ function StructuredListInput(props) {
|
|
|
238
234
|
type: "radio",
|
|
239
235
|
tabIndex: 0,
|
|
240
236
|
checked: row && row.id === selectedRow,
|
|
241
|
-
value: row ? row.id : '',
|
|
237
|
+
value: (_row$id = row === null || row === void 0 ? void 0 : row.id) !== null && _row$id !== void 0 ? _row$id : '',
|
|
242
238
|
onChange: function onChange(event) {
|
|
243
239
|
setSelectedRow(event.target.value);
|
|
244
240
|
},
|
|
245
|
-
id:
|
|
241
|
+
id: id !== null && id !== void 0 ? id : defaultId,
|
|
246
242
|
className: classes,
|
|
247
243
|
name: name,
|
|
248
244
|
title: title
|
|
@@ -207,9 +207,9 @@ ControlledPasswordInput.propTypes = {
|
|
|
207
207
|
showPasswordLabel: PropTypes__default["default"].string,
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Specify the size of the Text Input.
|
|
210
|
+
* Specify the size of the Text Input.
|
|
211
211
|
*/
|
|
212
|
-
size: PropTypes__default["default"].
|
|
212
|
+
size: PropTypes__default["default"].oneOf(['sm', 'md', 'lg']),
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* Specify the alignment of the tooltip to the icon-only button.
|