@carbon/react 1.3.0 → 1.4.0-rc.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.
Files changed (35) hide show
  1. package/es/components/ComposedModal/next/ComposedModal.js +11 -11
  2. package/es/components/DatePicker/DatePicker.js +264 -334
  3. package/es/components/DatePickerInput/DatePickerInput.js +141 -168
  4. package/es/components/FileUploader/FileUploader.js +3 -3
  5. package/es/components/FileUploader/FileUploaderButton.js +4 -4
  6. package/es/components/FileUploader/FileUploaderDropContainer.js +3 -3
  7. package/es/components/IconButton/index.js +2 -2
  8. package/es/components/MultiSelect/FilterableMultiSelect.js +10 -0
  9. package/es/components/MultiSelect/next/FilterableMultiSelect.js +11 -0
  10. package/es/components/Slider/Slider.js +11 -0
  11. package/es/components/StructuredList/next/StructuredList.js +19 -3
  12. package/es/components/UIShell/SideNav.js +1 -1
  13. package/es/index.js +3 -3
  14. package/lib/components/ComposedModal/next/ComposedModal.js +11 -11
  15. package/lib/components/DatePicker/DatePicker.js +261 -331
  16. package/lib/components/DatePickerInput/DatePickerInput.js +138 -165
  17. package/lib/components/FileUploader/FileUploader.js +3 -3
  18. package/lib/components/FileUploader/FileUploaderButton.js +4 -4
  19. package/lib/components/FileUploader/FileUploaderDropContainer.js +3 -3
  20. package/lib/components/IconButton/index.js +1 -1
  21. package/lib/components/MultiSelect/FilterableMultiSelect.js +10 -0
  22. package/lib/components/MultiSelect/next/FilterableMultiSelect.js +11 -0
  23. package/lib/components/Slider/Slider.js +11 -0
  24. package/lib/components/StructuredList/next/StructuredList.js +19 -3
  25. package/lib/components/UIShell/SideNav.js +1 -1
  26. package/lib/index.js +100 -100
  27. package/package.json +3 -3
  28. package/es/components/DatePicker/index.js +0 -15
  29. package/es/components/DatePicker/next/DatePicker.js +0 -562
  30. package/es/components/DatePickerInput/index.js +0 -15
  31. package/es/components/DatePickerInput/next/DatePickerInput.js +0 -244
  32. package/lib/components/DatePicker/index.js +0 -39
  33. package/lib/components/DatePicker/next/DatePicker.js +0 -573
  34. package/lib/components/DatePickerInput/index.js +0 -39
  35. package/lib/components/DatePickerInput/next/DatePickerInput.js +0 -254
@@ -10,157 +10,99 @@
10
10
  Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
+ var iconsReact = require('@carbon/icons-react');
14
+ var cx = require('classnames');
13
15
  var PropTypes = require('prop-types');
14
16
  var React = require('react');
15
- var deprecate = require('../../prop-types/deprecate.js');
16
- var cx = require('classnames');
17
- var iconsReact = require('@carbon/icons-react');
18
17
  var usePrefix = require('../../internal/usePrefix.js');
19
18
 
20
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
20
 
21
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
22
22
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
23
23
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
- var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
25
-
26
- var _excluded = ["id", "labelText", "disabled", "invalid", "invalidText", "helperText", "hideLabel", "onChange", "onClick", "placeholder", "type", "datePickerType", "pattern", "iconDescription", "openCalendar", "size", "warn", "warnText"];
27
24
 
28
- var DatePickerInput = /*#__PURE__*/function (_Component) {
29
- _rollupPluginBabelHelpers.inherits(DatePickerInput, _Component);
30
-
31
- var _super = _rollupPluginBabelHelpers.createSuper(DatePickerInput);
32
-
33
- function DatePickerInput() {
34
- _rollupPluginBabelHelpers.classCallCheck(this, DatePickerInput);
35
-
36
- return _super.apply(this, arguments);
37
- }
38
-
39
- _rollupPluginBabelHelpers.createClass(DatePickerInput, [{
40
- key: "render",
41
- value: function render() {
42
- var _this = this,
43
- _title;
44
-
45
- var _this$props = this.props,
46
- id = _this$props.id,
47
- labelText = _this$props.labelText,
48
- disabled = _this$props.disabled,
49
- invalid = _this$props.invalid,
50
- invalidText = _this$props.invalidText,
51
- helperText = _this$props.helperText,
52
- hideLabel = _this$props.hideLabel,
53
- _onChange = _this$props.onChange,
54
- _onClick = _this$props.onClick,
55
- placeholder = _this$props.placeholder,
56
- type = _this$props.type,
57
- datePickerType = _this$props.datePickerType,
58
- pattern = _this$props.pattern,
59
- iconDescription = _this$props.iconDescription,
60
- openCalendar = _this$props.openCalendar,
61
- size = _this$props.size,
62
- warn = _this$props.warn,
63
- warnText = _this$props.warnText,
64
- other = _rollupPluginBabelHelpers.objectWithoutProperties(_this$props, _excluded);
65
-
66
- var datePickerInputProps = {
67
- id: id,
68
- onChange: function onChange(evt) {
69
- if (!disabled) {
70
- _onChange(evt);
71
- }
72
- },
73
- onClick: function onClick(evt) {
74
- if (!disabled) {
75
- _onClick(evt);
76
- }
77
- },
78
- placeholder: placeholder,
79
- type: type,
80
- pattern: pattern
81
- };
82
- return /*#__PURE__*/React__default["default"].createElement(usePrefix.PrefixContext.Consumer, null, function (prefix) {
83
- var _classNames, _classNames2, _classNames4;
84
-
85
- var wrapperClasses = cx__default["default"]("".concat(prefix, "--date-picker-input__wrapper"), (_classNames = {}, _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--date-picker-input__wrapper--invalid"), invalid), _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--date-picker-input__wrapper--warn"), warn), _classNames));
86
- var labelClasses = cx__default["default"]("".concat(prefix, "--label"), (_classNames2 = {}, _rollupPluginBabelHelpers.defineProperty(_classNames2, "".concat(prefix, "--visually-hidden"), hideLabel), _rollupPluginBabelHelpers.defineProperty(_classNames2, "".concat(prefix, "--label--disabled"), disabled), _classNames2));
87
- var helperTextClasses = cx__default["default"]("".concat(prefix, "--form__helper-text"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--form__helper-text--disabled"), disabled));
88
- var inputClasses = cx__default["default"]("".concat(prefix, "--date-picker__input"), (_classNames4 = {}, _rollupPluginBabelHelpers.defineProperty(_classNames4, "".concat(prefix, "--date-picker__input--").concat(size), size), _rollupPluginBabelHelpers.defineProperty(_classNames4, "".concat(prefix, "--date-picker__input--invalid"), invalid), _classNames4));
89
-
90
- var datePickerIcon = function () {
91
- if (datePickerType === 'simple' && !invalid && !warn) {
92
- return;
93
- }
94
-
95
- if (invalid) {
96
- return /*#__PURE__*/React__default["default"].createElement(iconsReact.WarningFilled, {
97
- className: "".concat(prefix, "--date-picker__icon ").concat(prefix, "--date-picker__icon--invalid")
98
- });
99
- }
100
-
101
- if (!invalid && warn) {
102
- return /*#__PURE__*/React__default["default"].createElement(iconsReact.WarningAltFilled, {
103
- className: "".concat(prefix, "--date-picker__icon ").concat(prefix, "--date-picker__icon--warn")
104
- });
105
- }
106
-
107
- return /*#__PURE__*/React__default["default"].createElement(iconsReact.Calendar, {
108
- className: "".concat(prefix, "--date-picker__icon"),
109
- "aria-label": iconDescription,
110
- onClick: openCalendar,
111
- role: "img",
112
- "aria-hidden": "true"
113
- }, iconDescription && (_title || (_title = /*#__PURE__*/React__default["default"].createElement("title", null, iconDescription))));
114
- }();
115
-
116
- var label = labelText ? /*#__PURE__*/React__default["default"].createElement("label", {
117
- htmlFor: id,
118
- className: labelClasses
119
- }, labelText) : null;
120
- var helper = helperText ? /*#__PURE__*/React__default["default"].createElement("div", {
121
- className: helperTextClasses
122
- }, helperText) : null;
123
- var error = null;
124
-
125
- if (invalid) {
126
- error = /*#__PURE__*/React__default["default"].createElement("div", {
127
- className: "".concat(prefix, "--form-requirement")
128
- }, invalidText);
129
- } else if (warn) {
130
- error = /*#__PURE__*/React__default["default"].createElement("div", {
131
- className: "".concat(prefix, "--form-requirement")
132
- }, warnText);
133
- }
134
-
135
- var containerClasses = cx__default["default"]("".concat(prefix, "--date-picker-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--date-picker--nolabel"), !label));
136
- var input = invalid ? /*#__PURE__*/React__default["default"].createElement("input", _rollupPluginBabelHelpers["extends"]({}, other, datePickerInputProps, {
137
- disabled: disabled,
138
- ref: function ref(input) {
139
- _this.input = input;
140
- },
141
- "data-invalid": true,
142
- className: inputClasses
143
- })) : /*#__PURE__*/React__default["default"].createElement("input", _rollupPluginBabelHelpers["extends"]({
144
- ref: function ref(input) {
145
- _this.input = input;
146
- }
147
- }, other, datePickerInputProps, {
148
- disabled: disabled,
149
- className: inputClasses
150
- }));
151
- return /*#__PURE__*/React__default["default"].createElement("div", {
152
- className: containerClasses
153
- }, label, /*#__PURE__*/React__default["default"].createElement("div", {
154
- className: wrapperClasses
155
- }, input, datePickerIcon), error, helper);
156
- });
157
- }
158
- }]);
159
-
160
- return DatePickerInput;
161
- }(React.Component);
162
-
163
- _rollupPluginBabelHelpers.defineProperty(DatePickerInput, "propTypes", {
25
+ var _excluded = ["datePickerType", "disabled", "helperText", "hideLabel", "id", "invalid", "invalidText", "labelText", "onClick", "onChange", "pattern", "placeholder", "size", "type", "warn", "warnText"];
26
+ var DatePickerInput = /*#__PURE__*/React__default["default"].forwardRef(function DatePickerInput(props, ref) {
27
+ var _cx, _cx2, _cx4;
28
+
29
+ var datePickerType = props.datePickerType,
30
+ _props$disabled = props.disabled,
31
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
32
+ helperText = props.helperText,
33
+ hideLabel = props.hideLabel,
34
+ id = props.id,
35
+ _props$invalid = props.invalid,
36
+ invalid = _props$invalid === void 0 ? false : _props$invalid,
37
+ invalidText = props.invalidText,
38
+ labelText = props.labelText,
39
+ _props$onClick = props.onClick,
40
+ _onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
41
+ _props$onChange = props.onChange,
42
+ _onChange = _props$onChange === void 0 ? function () {} : _props$onChange,
43
+ _props$pattern = props.pattern,
44
+ pattern = _props$pattern === void 0 ? '\\d{1,2}\\/\\d{1,2}\\/\\d{4}' : _props$pattern,
45
+ placeholder = props.placeholder,
46
+ _props$size = props.size,
47
+ size = _props$size === void 0 ? 'md' : _props$size,
48
+ _props$type = props.type,
49
+ type = _props$type === void 0 ? 'text' : _props$type,
50
+ warn = props.warn,
51
+ warnText = props.warnText,
52
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
53
+
54
+ var prefix = usePrefix.usePrefix();
55
+ var datePickerInputProps = {
56
+ id: id,
57
+ onChange: function onChange(event) {
58
+ if (!disabled) {
59
+ _onChange(event);
60
+ }
61
+ },
62
+ onClick: function onClick(event) {
63
+ if (!disabled) {
64
+ _onClick(event);
65
+ }
66
+ },
67
+ pattern: pattern,
68
+ placeholder: placeholder,
69
+ type: type
70
+ };
71
+ var wrapperClasses = cx__default["default"]("".concat(prefix, "--date-picker-input__wrapper"), (_cx = {}, _rollupPluginBabelHelpers.defineProperty(_cx, "".concat(prefix, "--date-picker-input__wrapper--invalid"), invalid), _rollupPluginBabelHelpers.defineProperty(_cx, "".concat(prefix, "--date-picker-input__wrapper--warn"), warn), _cx));
72
+ var labelClasses = cx__default["default"]("".concat(prefix, "--label"), (_cx2 = {}, _rollupPluginBabelHelpers.defineProperty(_cx2, "".concat(prefix, "--visually-hidden"), hideLabel), _rollupPluginBabelHelpers.defineProperty(_cx2, "".concat(prefix, "--label--disabled"), disabled), _cx2));
73
+ var helperTextClasses = cx__default["default"]("".concat(prefix, "--form__helper-text"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--form__helper-text--disabled"), disabled));
74
+ var inputClasses = cx__default["default"]("".concat(prefix, "--date-picker__input"), (_cx4 = {}, _rollupPluginBabelHelpers.defineProperty(_cx4, "".concat(prefix, "--date-picker__input--").concat(size), size), _rollupPluginBabelHelpers.defineProperty(_cx4, "".concat(prefix, "--date-picker__input--invalid"), invalid), _cx4));
75
+ var containerClasses = cx__default["default"]("".concat(prefix, "--date-picker-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--date-picker--nolabel"), !labelText));
76
+ var input = invalid ? /*#__PURE__*/React__default["default"].createElement("input", _rollupPluginBabelHelpers["extends"]({}, rest, datePickerInputProps, {
77
+ disabled: disabled,
78
+ ref: ref,
79
+ "data-invalid": true,
80
+ className: inputClasses
81
+ })) : /*#__PURE__*/React__default["default"].createElement("input", _rollupPluginBabelHelpers["extends"]({}, rest, datePickerInputProps, {
82
+ disabled: disabled,
83
+ className: inputClasses,
84
+ ref: ref
85
+ }));
86
+ return /*#__PURE__*/React__default["default"].createElement("div", {
87
+ className: containerClasses
88
+ }, labelText && /*#__PURE__*/React__default["default"].createElement("label", {
89
+ htmlFor: id,
90
+ className: labelClasses
91
+ }, labelText), /*#__PURE__*/React__default["default"].createElement("div", {
92
+ className: wrapperClasses
93
+ }, input, /*#__PURE__*/React__default["default"].createElement(DatePickerIcon, {
94
+ datePickerType: datePickerType,
95
+ invalid: invalid,
96
+ warn: warn
97
+ })), invalid && /*#__PURE__*/React__default["default"].createElement("div", {
98
+ className: "".concat(prefix, "--form-requirement")
99
+ }, invalidText), warn && /*#__PURE__*/React__default["default"].createElement("div", {
100
+ className: "".concat(prefix, "--form-requirement")
101
+ }, warnText), helperText && /*#__PURE__*/React__default["default"].createElement("div", {
102
+ className: helperTextClasses
103
+ }, helperText));
104
+ });
105
+ DatePickerInput.propTypes = {
164
106
  /**
165
107
  * The type of the date picker:
166
108
  *
@@ -185,11 +127,6 @@ _rollupPluginBabelHelpers.defineProperty(DatePickerInput, "propTypes", {
185
127
  */
186
128
  hideLabel: PropTypes__default["default"].bool,
187
129
 
188
- /**
189
- * The description of the calendar icon.
190
- */
191
- iconDescription: deprecate["default"](PropTypes__default["default"].string, "\nThe prop `iconDescriptionInput` for DatePickerInput has been deprecated and is no longer used"),
192
-
193
130
  /**
194
131
  * Specify an id that uniquely identifies the `<input>`
195
132
  */
@@ -222,11 +159,6 @@ _rollupPluginBabelHelpers.defineProperty(DatePickerInput, "propTypes", {
222
159
  */
223
160
  onClick: PropTypes__default["default"].func,
224
161
 
225
- /**
226
- * Provide a function to be called when the input field is clicked
227
- */
228
- openCalendar: deprecate["default"](PropTypes__default["default"].func, "\nThe prop `openCalendar` for DatePickerInput has been deprecated and is no longer used"),
229
-
230
162
  /**
231
163
  * Provide a regular expression that the input value must match
232
164
  */
@@ -248,10 +180,9 @@ _rollupPluginBabelHelpers.defineProperty(DatePickerInput, "propTypes", {
248
180
  placeholder: PropTypes__default["default"].string,
249
181
 
250
182
  /**
251
- * Specify the size of the Date Picker Input. Currently supports either `sm`, 'md' (default) or 'lg` as an option.
252
- * TODO V11: remove `xl` (replaced with lg)
183
+ * Specify the size of the Date Picker Input. Currently supports either `sm`, `md`, or `lg` as an option.
253
184
  */
254
- size: PropTypes__default["default"].oneOf(['sm', 'md', 'lg', 'xl']),
185
+ size: PropTypes__default["default"].oneOf(['sm', 'md', 'lg']),
255
186
 
256
187
  /**
257
188
  * Specify the type of the `<input>`
@@ -267,15 +198,57 @@ _rollupPluginBabelHelpers.defineProperty(DatePickerInput, "propTypes", {
267
198
  * Provide the text that is displayed when the control is in warning state
268
199
  */
269
200
  warnText: PropTypes__default["default"].node
270
- });
201
+ };
271
202
 
272
- _rollupPluginBabelHelpers.defineProperty(DatePickerInput, "defaultProps", {
273
- pattern: '\\d{1,2}\\/\\d{1,2}\\/\\d{4}',
274
- type: 'text',
275
- disabled: false,
276
- invalid: false,
277
- onClick: function onClick() {},
278
- onChange: function onChange() {}
279
- });
203
+ function DatePickerIcon(_ref) {
204
+ var datePickerType = _ref.datePickerType,
205
+ invalid = _ref.invalid,
206
+ warn = _ref.warn;
207
+ var prefix = usePrefix.usePrefix();
208
+
209
+ if (datePickerType === 'simple' && !invalid && !warn) {
210
+ return null;
211
+ }
212
+
213
+ if (invalid) {
214
+ return /*#__PURE__*/React__default["default"].createElement(iconsReact.WarningFilled, {
215
+ className: "".concat(prefix, "--date-picker__icon ").concat(prefix, "--date-picker__icon--invalid")
216
+ });
217
+ }
218
+
219
+ if (!invalid && warn) {
220
+ return /*#__PURE__*/React__default["default"].createElement(iconsReact.WarningAltFilled, {
221
+ className: "".concat(prefix, "--date-picker__icon ").concat(prefix, "--date-picker__icon--warn")
222
+ });
223
+ }
224
+
225
+ return /*#__PURE__*/React__default["default"].createElement(iconsReact.Calendar, {
226
+ className: "".concat(prefix, "--date-picker__icon"),
227
+ role: "img",
228
+ "aria-hidden": "true"
229
+ });
230
+ }
231
+
232
+ DatePickerIcon.propTypes = {
233
+ /**
234
+ * The type of the date picker:
235
+ *
236
+ * * `simple` - Without calendar dropdown.
237
+ * * `single` - With calendar dropdown and single date.
238
+ * * `range` - With calendar dropdown and a date range.
239
+ */
240
+ datePickerType: PropTypes__default["default"].oneOf(['simple', 'single', 'range']),
241
+
242
+ /**
243
+ * Specify whether or not the input should be invalid
244
+ */
245
+ invalid: PropTypes__default["default"].bool,
246
+
247
+ /**
248
+ * Specify whether the control is currently in warning state
249
+ */
250
+ warn: PropTypes__default["default"].bool
251
+ };
252
+ var DatePickerInput$1 = DatePickerInput;
280
253
 
281
- exports["default"] = DatePickerInput;
254
+ exports["default"] = DatePickerInput$1;
@@ -222,13 +222,13 @@ _rollupPluginBabelHelpers.defineProperty(FileUploader, "propTypes", {
222
222
  accept: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string),
223
223
 
224
224
  /**
225
- * Specify the type of the <FileUploaderButton>
225
+ * Specify the type of the `<FileUploaderButton>`
226
226
  */
227
227
  buttonKind: PropTypes__default["default"].oneOf(types.ButtonKinds),
228
228
 
229
229
  /**
230
230
  * Provide the label text to be read by screen readers when interacting with
231
- * the <FileUploaderButton>
231
+ * the `<FileUploaderButton>`
232
232
  */
233
233
  buttonLabel: PropTypes__default["default"].string,
234
234
 
@@ -258,7 +258,7 @@ _rollupPluginBabelHelpers.defineProperty(FileUploader, "propTypes", {
258
258
  labelDescription: PropTypes__default["default"].string,
259
259
 
260
260
  /**
261
- * Specify the title text of this <FileUploader>
261
+ * Specify the title text of this `<FileUploader>`
262
262
  */
263
263
  labelTitle: PropTypes__default["default"].string,
264
264
 
@@ -191,12 +191,12 @@ FileUploaderButton.propTypes = {
191
191
  multiple: PropTypes__default["default"].bool,
192
192
 
193
193
  /**
194
- * Provide a name for the underlying <input> node
194
+ * Provide a name for the underlying `<input>` node
195
195
  */
196
196
  name: PropTypes__default["default"].string,
197
197
 
198
198
  /**
199
- * Provide an optional `onChange` hook that is called each time the <input>
199
+ * Provide an optional `onChange` hook that is called each time the `<input>`
200
200
  * value changes
201
201
  */
202
202
  onChange: PropTypes__default["default"].func,
@@ -208,7 +208,7 @@ FileUploaderButton.propTypes = {
208
208
  onClick: PropTypes__default["default"].func,
209
209
 
210
210
  /**
211
- * Provide an accessibility role for the <FileUploaderButton>
211
+ * Provide an accessibility role for the `<FileUploaderButton>`
212
212
  */
213
213
  role: PropTypes__default["default"].string,
214
214
 
@@ -219,7 +219,7 @@ FileUploaderButton.propTypes = {
219
219
  size: FeatureFlags__namespace.enabled('enable-v11-release') ? PropTypes__default["default"].oneOf(['sm', 'md', 'lg']) : PropTypes__default["default"].oneOf(['default', 'field', 'small', 'sm', 'md', 'lg']),
220
220
 
221
221
  /**
222
- * Provide a custom tabIndex value for the <FileUploaderButton>
222
+ * Provide a custom tabIndex value for the `<FileUploaderButton>`
223
223
  */
224
224
  tabIndex: PropTypes__default["default"].number
225
225
  };
@@ -83,7 +83,7 @@ function FileUploaderDropContainer(_ref) {
83
83
  _name$match2 = _rollupPluginBabelHelpers.slicedToArray(_name$match, 1),
84
84
  fileExtension = _name$match2[0];
85
85
 
86
- if (acceptedTypes.has(mimeType) || acceptedTypes.has(fileExtension)) {
86
+ if (acceptedTypes.has(mimeType) || acceptedTypes.has(fileExtension.toLowerCase())) {
87
87
  return acc.concat([curr]);
88
88
  }
89
89
 
@@ -212,12 +212,12 @@ FileUploaderDropContainer.propTypes = {
212
212
  pattern: PropTypes__default["default"].string,
213
213
 
214
214
  /**
215
- * Provide an accessibility role for the <FileUploaderButton>
215
+ * Provide an accessibility role for the `<FileUploaderButton>`
216
216
  */
217
217
  role: PropTypes__default["default"].string,
218
218
 
219
219
  /**
220
- * Provide a custom tabIndex value for the <FileUploaderButton>
220
+ * Provide a custom tabIndex value for the `<FileUploaderButton>`
221
221
  */
222
222
  tabIndex: PropTypes__default["default"].number
223
223
  };
@@ -50,7 +50,7 @@ var IconButton = /*#__PURE__*/React__default["default"].forwardRef(function Icon
50
50
  kind: kind,
51
51
  ref: ref,
52
52
  size: size,
53
- className: cx__default["default"]("".concat(prefix, "--btn--icon-only"), _rollupPluginBabelHelpers.defineProperty({}, className, className))
53
+ className: cx__default["default"]("".concat(prefix, "--btn--icon-only"), className)
54
54
  }), children));
55
55
  });
56
56
  IconButton.propTypes = {
@@ -116,6 +116,10 @@ var FilterableMultiSelect = /*#__PURE__*/function (_React$Component) {
116
116
  _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "handleOnInputValueChange", function (inputValue, _ref) {
117
117
  var type = _ref.type;
118
118
 
119
+ if (_this.props.onInputValueChange) {
120
+ _this.props.onInputValueChange(inputValue);
121
+ }
122
+
119
123
  if (type !== Downshift__default["default"].stateChangeTypes.changeInput) {
120
124
  return;
121
125
  }
@@ -516,6 +520,12 @@ _rollupPluginBabelHelpers.defineProperty(FilterableMultiSelect, "propTypes", _ro
516
520
  */
517
521
  onChange: PropTypes__default["default"].func,
518
522
 
523
+ /**
524
+ * `onInputValueChange` is a utility for this controlled component to communicate to
525
+ * the currently typed input.
526
+ */
527
+ onInputValueChange: PropTypes__default["default"].func,
528
+
519
529
  /**
520
530
  * `onMenuChange` is a utility for this controlled component to communicate to a
521
531
  * consuming component that the menu was opened(`true`)/closed(`false`).
@@ -62,6 +62,7 @@ var FilterableMultiSelect = /*#__PURE__*/React__default["default"].forwardRef(fu
62
62
  itemToString = _ref.itemToString,
63
63
  light = _ref.light,
64
64
  locale = _ref.locale,
65
+ onInputValueChange = _ref.onInputValueChange,
65
66
  open = _ref.open,
66
67
  onChange = _ref.onChange,
67
68
  onMenuChange = _ref.onMenuChange,
@@ -180,6 +181,10 @@ var FilterableMultiSelect = /*#__PURE__*/React__default["default"].forwardRef(fu
180
181
  function handleOnInputValueChange(inputValue, _ref2) {
181
182
  var type = _ref2.type;
182
183
 
184
+ if (onInputValueChange) {
185
+ onInputValueChange(inputValue);
186
+ }
187
+
183
188
  if (type !== Downshift__default["default"].stateChangeTypes.changeInput) {
184
189
  return;
185
190
  }
@@ -474,6 +479,12 @@ FilterableMultiSelect.propTypes = _rollupPluginBabelHelpers.objectSpread2(_rollu
474
479
  */
475
480
  onChange: PropTypes__default["default"].func,
476
481
 
482
+ /**
483
+ * `onInputValueChange` is a utility for this controlled component to communicate to
484
+ * the currently typed input.
485
+ */
486
+ onInputValueChange: PropTypes__default["default"].func,
487
+
477
488
  /**
478
489
  * `onMenuChange` is a utility for this controlled component to communicate to a
479
490
  * consuming component that the menu was opened(`true`)/closed(`false`).
@@ -250,10 +250,15 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
250
250
 
251
251
 
252
252
  var validity = evt.target.checkValidity();
253
+ var value = evt.target.value;
253
254
 
254
255
  _this.setState({
255
256
  isValid: validity
256
257
  });
258
+
259
+ _this.props.onBlur({
260
+ value: value
261
+ });
257
262
  });
258
263
 
259
264
  _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "calcValue", function (_ref) {
@@ -622,6 +627,12 @@ _rollupPluginBabelHelpers.defineProperty(Slider, "propTypes", {
622
627
  */
623
628
  name: PropTypes__default["default"].string,
624
629
 
630
+ /**
631
+ * Provide an optional function to be called when the input element
632
+ * loses focus
633
+ */
634
+ onBlur: PropTypes__default["default"].func,
635
+
625
636
  /**
626
637
  * The callback to get notified of change in value.
627
638
  */
@@ -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", "isCondensed", "isFlush"],
27
27
  _excluded2 = ["children", "className"],
28
28
  _excluded3 = ["children", "className"],
29
29
  _excluded4 = ["onKeyDown", "children", "className", "head"],
@@ -32,14 +32,18 @@ var _excluded = ["children", "selection", "className", "ariaLabel"],
32
32
  var GridSelectedRowStateContext = /*#__PURE__*/React__default["default"].createContext(null);
33
33
  var GridSelectedRowDispatchContext = /*#__PURE__*/React__default["default"].createContext(null);
34
34
  function StructuredListWrapper(props) {
35
+ var _classNames;
36
+
35
37
  var children = props.children,
36
38
  selection = props.selection,
37
39
  className = props.className,
38
40
  ariaLabel = props.ariaLabel,
41
+ isCondensed = props.isCondensed,
42
+ isFlush = props.isFlush,
39
43
  other = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
40
44
 
41
45
  var prefix = usePrefix.usePrefix();
42
- var classes = cx__default["default"]("".concat(prefix, "--structured-list"), className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--structured-list--selection"), selection));
46
+ var classes = cx__default["default"]("".concat(prefix, "--structured-list"), className, (_classNames = {}, _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--structured-list--selection"), selection), _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--structured-list--condensed"), isCondensed), _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--structured-list--flush"), isFlush), _classNames));
43
47
 
44
48
  var _React$useState = React__default["default"].useState(null),
45
49
  _React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
@@ -51,7 +55,7 @@ function StructuredListWrapper(props) {
51
55
  }, /*#__PURE__*/React__default["default"].createElement(GridSelectedRowDispatchContext.Provider, {
52
56
  value: setSelectedRow
53
57
  }, /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
54
- role: "grid",
58
+ role: "table",
55
59
  className: classes
56
60
  }, other, {
57
61
  "aria-label": ariaLabel
@@ -73,6 +77,16 @@ StructuredListWrapper.propTypes = {
73
77
  */
74
78
  className: PropTypes__default["default"].string,
75
79
 
80
+ /**
81
+ * Specify if structured list is condensed, default is false
82
+ */
83
+ isCondensed: PropTypes__default["default"].bool,
84
+
85
+ /**
86
+ * Specify if structured list is flush, default is false
87
+ */
88
+ isFlush: PropTypes__default["default"].bool,
89
+
76
90
  /**
77
91
  * Specify whether your StructuredListWrapper should have selections
78
92
  */
@@ -80,6 +94,8 @@ StructuredListWrapper.propTypes = {
80
94
  };
81
95
  StructuredListWrapper.defaultProps = {
82
96
  selection: false,
97
+ isCondensed: false,
98
+ isFlush: false,
83
99
  ariaLabel: 'Structured list section'
84
100
  };
85
101
  function StructuredListHead(props) {
@@ -131,7 +131,7 @@ var SideNav = /*#__PURE__*/React__default["default"].forwardRef(function SideNav
131
131
  }
132
132
 
133
133
  var isSideNavCollapsed = useMatchMedia.useMatchMedia("(max-width: 1055px)");
134
- var ariaHidden = expanded === false && isSideNavCollapsed;
134
+ var ariaHidden = isRail ? false : expanded === false && isSideNavCollapsed;
135
135
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isFixedNav ? null :
136
136
  /*#__PURE__*/
137
137
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions