@carbon/react 1.20.0 → 1.21.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 (195) hide show
  1. package/es/components/Accordion/Accordion.Skeleton.js +1 -1
  2. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -1
  3. package/es/components/Button/Button.Skeleton.js +1 -1
  4. package/es/components/Button/Button.js +1 -0
  5. package/es/components/{Checkbox → Button}/index.js +3 -3
  6. package/es/components/{Pagination → ButtonSet}/index.js +2 -3
  7. package/es/components/Checkbox/Checkbox.Skeleton.js +1 -1
  8. package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -1
  9. package/es/components/CodeSnippet/CodeSnippet.js +1 -1
  10. package/es/components/{RadioButtonGroup → ComboBox}/index.js +2 -2
  11. package/es/components/ComposedModal/ModalFooter.js +1 -1
  12. package/es/components/ContainedList/ContainedListItem/index.js +9 -0
  13. package/es/components/ContainedList/index.js +1 -1
  14. package/es/components/ContentSwitcher/index.js +3 -3
  15. package/es/components/{ModalWrapper → Copy}/index.js +2 -2
  16. package/es/components/CopyButton/index.js +9 -0
  17. package/es/components/DangerButton/DangerButton.js +1 -1
  18. package/es/components/DataTable/TableBatchAction.js +1 -1
  19. package/es/components/DataTable/TableBatchActions.js +1 -1
  20. package/es/components/DataTable/index.js +1 -1
  21. package/es/components/DatePicker/DatePicker.Skeleton.js +1 -1
  22. package/es/components/DatePicker/DatePicker.js +17 -6
  23. package/es/components/DatePicker/index.js +10 -0
  24. package/es/components/DatePickerInput/index.js +9 -0
  25. package/es/components/Dropdown/Dropdown.Skeleton.js +1 -1
  26. package/es/components/Dropdown/index.js +10 -0
  27. package/es/components/FileUploader/FileUploader.Skeleton.js +1 -1
  28. package/es/components/FluidDatePicker/FluidDatePicker.js +1 -1
  29. package/es/components/FluidDropdown/FluidDropdown.js +1 -1
  30. package/es/components/FluidSelect/FluidSelect.js +1 -1
  31. package/es/components/FluidSelect/index.js +10 -0
  32. package/es/components/FluidTextArea/FluidTextArea.js +1 -1
  33. package/es/components/FluidTextInput/index.js +10 -0
  34. package/es/components/{ExpandableSearch → Form}/index.js +2 -2
  35. package/es/components/Icon/Icon.Skeleton.js +1 -1
  36. package/es/components/IconButton/index.js +1 -1
  37. package/es/components/InlineCheckbox/index.js +9 -0
  38. package/es/components/Link/index.js +9 -0
  39. package/es/components/Loading/index.js +9 -0
  40. package/es/components/Menu/index.js +1 -1
  41. package/es/components/Modal/Modal.js +1 -1
  42. package/es/components/Modal/index.js +1 -1
  43. package/es/components/ModalWrapper/ModalWrapper.js +1 -1
  44. package/es/components/MultiSelect/index.js +1 -1
  45. package/es/components/Notification/Notification.js +1 -1
  46. package/es/components/OverflowMenu/index.js +1 -1
  47. package/es/components/OverflowMenuItem/index.js +1 -1
  48. package/es/components/Pagination/Pagination.Skeleton.js +1 -1
  49. package/es/components/Pagination/Pagination.js +1 -1
  50. package/es/components/Pagination/experimental/PageSelector.js +1 -1
  51. package/es/components/Pagination/experimental/Pagination.js +2 -2
  52. package/es/components/PaginationNav/PaginationNav.js +1 -1
  53. package/es/components/PrimaryButton/PrimaryButton.js +1 -1
  54. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -1
  55. package/es/components/RadioButton/RadioButton.Skeleton.js +1 -1
  56. package/es/components/RadioButton/index.js +1 -1
  57. package/es/components/RadioTile/index.js +9 -0
  58. package/es/components/Search/Search.Skeleton.js +1 -1
  59. package/es/components/Search/index.js +1 -1
  60. package/es/components/SecondaryButton/SecondaryButton.js +1 -1
  61. package/es/components/Select/Select.Skeleton.js +1 -1
  62. package/es/components/Select/index.js +10 -0
  63. package/es/components/SelectItem/index.js +9 -0
  64. package/es/components/SkeletonText/index.js +9 -0
  65. package/es/components/Slider/Slider.Skeleton.js +1 -1
  66. package/es/components/Slider/index.js +3 -3
  67. package/es/components/Tab/index.js +1 -1
  68. package/es/components/Tabs/Tabs.Skeleton.js +1 -1
  69. package/es/components/Tag/Tag.Skeleton.js +1 -1
  70. package/es/components/Tag/Tag.js +2 -1
  71. package/es/components/TextArea/TextArea.Skeleton.js +1 -1
  72. package/es/components/TextArea/index.js +10 -0
  73. package/es/components/TextInput/TextInput.Skeleton.js +1 -1
  74. package/es/components/TextInput/index.js +1 -1
  75. package/es/components/TileGroup/index.js +3 -3
  76. package/es/components/TimePickerSelect/index.js +1 -1
  77. package/es/components/Toggle/Toggle.Skeleton.js +1 -1
  78. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
  79. package/es/components/TreeView/index.js +1 -1
  80. package/es/components/UIShell/HeaderGlobalAction.js +1 -1
  81. package/es/components/UIShell/HeaderNavigation.js +1 -1
  82. package/es/components/UIShell/SideNavLink.js +5 -0
  83. package/es/components/UIShell/SideNavMenu.js +1 -1
  84. package/es/es/components/Checkbox/Checkbox.Skeleton.d.ts +1 -0
  85. package/es/es/components/Checkbox/Checkbox.d.ts +1 -1
  86. package/es/es/components/Checkbox/index.d.ts +3 -2
  87. package/es/es/components/Text/Text.d.ts +1 -1
  88. package/es/es/components/Text/TextDirection.d.ts +2 -2
  89. package/es/es/index.d.ts +119 -0
  90. package/es/index.js +24 -28
  91. package/lib/components/Accordion/Accordion.Skeleton.js +1 -0
  92. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -0
  93. package/lib/components/Button/Button.Skeleton.js +1 -0
  94. package/lib/components/Button/Button.js +1 -0
  95. package/lib/components/{Checkbox → Button}/index.js +5 -4
  96. package/lib/components/ButtonSet/index.js +17 -0
  97. package/lib/components/Checkbox/Checkbox.Skeleton.js +1 -0
  98. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -0
  99. package/lib/components/CodeSnippet/CodeSnippet.js +1 -1
  100. package/lib/components/{Pagination → ComboBox}/index.js +3 -3
  101. package/lib/components/ComposedModal/ModalFooter.js +1 -1
  102. package/lib/components/ContainedList/ContainedListItem/index.js +17 -0
  103. package/lib/components/ContainedList/index.js +1 -0
  104. package/lib/components/ContentSwitcher/index.js +4 -3
  105. package/lib/components/{ModalWrapper → Copy}/index.js +3 -2
  106. package/lib/components/CopyButton/index.js +17 -0
  107. package/lib/components/DangerButton/DangerButton.js +1 -1
  108. package/lib/components/DataTable/TableBatchAction.js +1 -1
  109. package/lib/components/DataTable/TableBatchActions.js +1 -1
  110. package/lib/components/DataTable/index.js +1 -0
  111. package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -0
  112. package/lib/components/DatePicker/DatePicker.js +15 -4
  113. package/lib/components/DatePicker/index.js +19 -0
  114. package/lib/components/DatePickerInput/index.js +17 -0
  115. package/lib/components/Dropdown/Dropdown.Skeleton.js +1 -0
  116. package/lib/components/Dropdown/index.js +19 -0
  117. package/lib/components/FileUploader/FileUploader.Skeleton.js +1 -0
  118. package/lib/components/FluidDatePicker/FluidDatePicker.js +1 -1
  119. package/lib/components/FluidDropdown/FluidDropdown.js +1 -1
  120. package/lib/components/FluidSelect/FluidSelect.js +1 -1
  121. package/lib/components/FluidSelect/index.js +19 -0
  122. package/lib/components/FluidTextArea/FluidTextArea.js +1 -1
  123. package/lib/components/FluidTextInput/index.js +19 -0
  124. package/lib/components/{RadioButtonGroup → Form}/index.js +3 -2
  125. package/lib/components/Icon/Icon.Skeleton.js +1 -0
  126. package/lib/components/IconButton/index.js +1 -1
  127. package/lib/components/InlineCheckbox/index.js +17 -0
  128. package/lib/components/{ExpandableSearch → Link}/index.js +3 -2
  129. package/lib/components/Loading/index.js +17 -0
  130. package/lib/components/Menu/index.js +1 -0
  131. package/lib/components/Modal/Modal.js +1 -1
  132. package/lib/components/Modal/index.js +1 -0
  133. package/lib/components/ModalWrapper/ModalWrapper.js +1 -1
  134. package/lib/components/MultiSelect/index.js +1 -0
  135. package/lib/components/Notification/Notification.js +1 -1
  136. package/lib/components/OverflowMenu/index.js +1 -0
  137. package/lib/components/OverflowMenuItem/index.js +1 -0
  138. package/lib/components/Pagination/Pagination.Skeleton.js +1 -0
  139. package/lib/components/Pagination/Pagination.js +1 -1
  140. package/lib/components/Pagination/experimental/PageSelector.js +1 -1
  141. package/lib/components/Pagination/experimental/Pagination.js +2 -2
  142. package/lib/components/PaginationNav/PaginationNav.js +1 -1
  143. package/lib/components/PrimaryButton/PrimaryButton.js +1 -1
  144. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -0
  145. package/lib/components/RadioButton/RadioButton.Skeleton.js +1 -0
  146. package/lib/components/RadioButton/index.js +1 -0
  147. package/lib/components/RadioTile/index.js +17 -0
  148. package/lib/components/Search/Search.Skeleton.js +1 -0
  149. package/lib/components/Search/index.js +1 -0
  150. package/lib/components/SecondaryButton/SecondaryButton.js +1 -1
  151. package/lib/components/Select/Select.Skeleton.js +1 -0
  152. package/lib/components/Select/index.js +19 -0
  153. package/lib/components/SelectItem/index.js +17 -0
  154. package/lib/components/SkeletonText/index.js +17 -0
  155. package/lib/components/Slider/Slider.Skeleton.js +1 -0
  156. package/lib/components/Slider/index.js +4 -3
  157. package/lib/components/Tab/index.js +1 -0
  158. package/lib/components/Tabs/Tabs.Skeleton.js +1 -0
  159. package/lib/components/Tag/Tag.Skeleton.js +1 -0
  160. package/lib/components/Tag/Tag.js +2 -0
  161. package/lib/components/TextArea/TextArea.Skeleton.js +1 -0
  162. package/lib/components/TextArea/index.js +19 -0
  163. package/lib/components/TextInput/TextInput.Skeleton.js +1 -0
  164. package/lib/components/TextInput/index.js +1 -0
  165. package/lib/components/TileGroup/index.js +4 -3
  166. package/lib/components/TimePickerSelect/index.js +1 -0
  167. package/lib/components/Toggle/Toggle.Skeleton.js +1 -0
  168. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -0
  169. package/lib/components/TreeView/index.js +1 -0
  170. package/lib/components/UIShell/HeaderGlobalAction.js +1 -1
  171. package/lib/components/UIShell/HeaderNavigation.js +1 -0
  172. package/lib/components/UIShell/SideNavLink.js +5 -0
  173. package/lib/components/UIShell/SideNavMenu.js +1 -0
  174. package/lib/index.js +85 -89
  175. package/lib/lib/components/Checkbox/Checkbox.Skeleton.d.ts +1 -0
  176. package/lib/lib/components/Checkbox/Checkbox.d.ts +1 -1
  177. package/lib/lib/components/Checkbox/index.d.ts +3 -2
  178. package/lib/lib/components/Text/Text.d.ts +1 -1
  179. package/lib/lib/components/Text/TextDirection.d.ts +2 -2
  180. package/lib/lib/index.d.ts +119 -0
  181. package/package.json +5 -5
  182. package/es/components/Accordion/index.js +0 -11
  183. package/es/components/AccordionItem/index.js +0 -13
  184. package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +0 -42
  185. package/es/components/FluidNumberInput/FluidNumberInput.js +0 -138
  186. package/es/components/FluidSearch/FluidSearch.Skeleton.js +0 -42
  187. package/es/components/FluidSearch/FluidSearch.js +0 -114
  188. package/es/components/Tabs/index.js +0 -10
  189. package/lib/components/Accordion/index.js +0 -20
  190. package/lib/components/AccordionItem/index.js +0 -18
  191. package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +0 -52
  192. package/lib/components/FluidNumberInput/FluidNumberInput.js +0 -148
  193. package/lib/components/FluidSearch/FluidSearch.Skeleton.js +0 -52
  194. package/lib/components/FluidSearch/FluidSearch.js +0 -124
  195. package/lib/components/Tabs/index.js +0 -23
@@ -102,4 +102,4 @@ function AccordionSkeletonItem() {
102
102
  })));
103
103
  }
104
104
 
105
- export { AccordionSkeleton as default };
105
+ export { AccordionSkeleton, AccordionSkeleton as default };
@@ -42,4 +42,4 @@ BreadcrumbSkeleton.propTypes = {
42
42
  className: PropTypes.string
43
43
  };
44
44
 
45
- export { BreadcrumbSkeleton as default };
45
+ export { BreadcrumbSkeleton, BreadcrumbSkeleton as default };
@@ -65,4 +65,4 @@ ButtonSkeleton.propTypes = {
65
65
  small: PropTypes.bool
66
66
  };
67
67
 
68
- export { ButtonSkeleton as default };
68
+ export { ButtonSkeleton, ButtonSkeleton as default };
@@ -137,6 +137,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function Button(_ref, ref) {
137
137
  }
138
138
 
139
139
  return /*#__PURE__*/React__default.createElement(IconButton, _extends({
140
+ as: as,
140
141
  align: align,
141
142
  label: iconDescription,
142
143
  kind: kind,
@@ -5,6 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- export { default as CheckboxSkeleton } from './Checkbox.Skeleton.js';
9
- import Checkbox from './Checkbox.js';
10
- export { default } from './Checkbox.js';
8
+ import Button from './Button.js';
9
+ export { default as Button, default } from './Button.js';
10
+ export { default as ButtonSkeleton } from './Button.Skeleton.js';
@@ -5,6 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import Pagination from './Pagination.js';
9
- export { default } from './Pagination.js';
10
- import './Pagination.Skeleton.js';
8
+ import ButtonSet from './ButtonSet.js';
9
+ export { default as ButtonSet, default } from './ButtonSet.js';
@@ -34,4 +34,4 @@ CheckboxSkeleton.propTypes = {
34
34
  className: PropTypes.string
35
35
  };
36
36
 
37
- export { CheckboxSkeleton as default };
37
+ export { CheckboxSkeleton, CheckboxSkeleton as default };
@@ -55,4 +55,4 @@ CodeSnippetSkeleton.propTypes = {
55
55
  type: PropTypes.oneOf(['single', 'multi'])
56
56
  };
57
57
 
58
- export { CodeSnippetSkeleton as default };
58
+ export { CodeSnippetSkeleton, CodeSnippetSkeleton as default };
@@ -12,8 +12,8 @@ import cx from 'classnames';
12
12
  import useResizeObserver from '../../node_modules/use-resize-observer/polyfilled.js';
13
13
  import { ChevronDown } from '@carbon/icons-react';
14
14
  import Copy from '../Copy/Copy.js';
15
- import '../Button/Button.Skeleton.js';
16
15
  import Button from '../Button/Button.js';
16
+ import '../Button/Button.Skeleton.js';
17
17
  import CopyButton from '../CopyButton/CopyButton.js';
18
18
  import uniqueId from '../../tools/uniqueId.js';
19
19
  import copy from 'copy-to-clipboard';
@@ -5,5 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import RadioButtonGroup from './RadioButtonGroup.js';
9
- export { default } from './RadioButtonGroup.js';
8
+ import ComboBox from './ComboBox.js';
9
+ export { default as ComboBox, default } from './ComboBox.js';
@@ -8,8 +8,8 @@
8
8
  import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default from 'react';
10
10
  import PropTypes from 'prop-types';
11
- import '../Button/Button.Skeleton.js';
12
11
  import Button from '../Button/Button.js';
12
+ import '../Button/Button.Skeleton.js';
13
13
  import ButtonSet from '../ButtonSet/ButtonSet.js';
14
14
  import cx from 'classnames';
15
15
  import { usePrefix } from '../../internal/usePrefix.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import ContainedListItem from './ContainedListItem.js';
9
+ export { default as ContainedListItem, default } from './ContainedListItem.js';
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import ContainedList from './ContainedList.js';
9
- export { default } from './ContainedList.js';
9
+ export { default as ContainedList, default } from './ContainedList.js';
10
10
  import ContainedListItem from './ContainedListItem/ContainedListItem.js';
11
11
  export { default as ContainedListItem } from './ContainedListItem/ContainedListItem.js';
12
12
 
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import { createClassWrapper } from '../../internal/createClassWrapper.js';
9
- import ContentSwitcher from './ContentSwitcher.js';
9
+ import ContentSwitcher$1 from './ContentSwitcher.js';
10
10
 
11
- var index = createClassWrapper(ContentSwitcher);
11
+ var ContentSwitcher = createClassWrapper(ContentSwitcher$1);
12
12
 
13
- export { index as default };
13
+ export { ContentSwitcher, ContentSwitcher as default };
@@ -5,5 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import ModalWrapper from './ModalWrapper.js';
9
- export { default } from './ModalWrapper.js';
8
+ import Copy from './Copy.js';
9
+ export { default as Copy, default } from './Copy.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import CopyButton from './CopyButton.js';
9
+ export { default as CopyButton, default } from './CopyButton.js';
@@ -7,8 +7,8 @@
7
7
 
8
8
  import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default from 'react';
10
- import '../Button/Button.Skeleton.js';
11
10
  import Button from '../Button/Button.js';
11
+ import '../Button/Button.Skeleton.js';
12
12
 
13
13
  var DangerButton = function DangerButton(props) {
14
14
  return /*#__PURE__*/React__default.createElement(Button, _extends({
@@ -8,8 +8,8 @@
8
8
  import PropTypes from 'prop-types';
9
9
  import React__default from 'react';
10
10
  import { AddFilled } from '@carbon/icons-react';
11
- import '../Button/Button.Skeleton.js';
12
11
  import Button from '../Button/Button.js';
12
+ import '../Button/Button.Skeleton.js';
13
13
 
14
14
  var TableBatchAction = function TableBatchAction(props) {
15
15
  return /*#__PURE__*/React__default.createElement(Button, props);
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
9
9
  import cx from 'classnames';
10
10
  import PropTypes from 'prop-types';
11
11
  import React__default from 'react';
12
- import '../Button/Button.Skeleton.js';
13
12
  import Button from '../Button/Button.js';
13
+ import '../Button/Button.Skeleton.js';
14
14
  import TableActionList from './TableActionList.js';
15
15
  import '../Text/index.js';
16
16
  import { usePrefix } from '../../internal/usePrefix.js';
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import DataTable from './DataTable.js';
9
- export { default } from './DataTable.js';
9
+ export { default as DataTable, default } from './DataTable.js';
10
10
  import { Table } from './Table.js';
11
11
  export { Table } from './Table.js';
12
12
  import TableActionList from './TableActionList.js';
@@ -65,4 +65,4 @@ DatePickerSkeleton.propTypes = {
65
65
  range: PropTypes.bool
66
66
  };
67
67
 
68
- export { DatePickerSkeleton as default };
68
+ export { DatePickerSkeleton, DatePickerSkeleton as default };
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, defineProperty as _defineProperty, typeof as _typeof, objectSpread2 as _objectSpread2, extends as _extends, toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, defineProperty as _defineProperty, typeof as _typeof, objectSpread2 as _objectSpread2, extends as _extends, toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import PropTypes from 'prop-types';
10
- import React__default, { useContext, useRef, useEffect, useImperativeHandle } from 'react';
10
+ import React__default, { useContext, useState, useCallback, useRef, useEffect, useImperativeHandle } from 'react';
11
11
  import cx from 'classnames';
12
12
  import flatpickr from 'flatpickr';
13
13
  import l10n from '../../node_modules/flatpickr/dist/l10n/index.js';
@@ -191,7 +191,17 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
191
191
  var _useContext = useContext(FormContext),
192
192
  isFluid = _useContext.isFluid;
193
193
 
194
- var startInputField = useRef(null);
194
+ var _useState = useState(false),
195
+ _useState2 = _slicedToArray(_useState, 2),
196
+ hasInput = _useState2[0],
197
+ setHasInput = _useState2[1];
198
+
199
+ var startInputField = useCallback(function (node) {
200
+ if (node !== null) {
201
+ startInputField.current = node;
202
+ setHasInput(true);
203
+ }
204
+ }, []);
195
205
  var endInputField = useRef(null);
196
206
  var calendarRef = useRef(null);
197
207
  var savedOnChange = useSavedCallback(onChange);
@@ -237,7 +247,7 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
237
247
  return;
238
248
  }
239
249
 
240
- if (startInputField.current === null) {
250
+ if (!startInputField.current) {
241
251
  return;
242
252
  }
243
253
 
@@ -381,7 +391,7 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
381
391
  end.removeEventListener('change', handleOnChange);
382
392
  }
383
393
  };
384
- }, [savedOnChange, savedOnClose, savedOnOpen, readOnly]); //eslint-disable-line react-hooks/exhaustive-deps
394
+ }, [savedOnChange, savedOnClose, savedOnOpen, readOnly, hasInput]); //eslint-disable-line react-hooks/exhaustive-deps
385
395
  // this hook allows consumers to access the flatpickr calendar
386
396
  // instance for cases where functions like open() or close()
387
397
  // need to be imperatively called on the calendar
@@ -450,7 +460,8 @@ var DatePicker = /*#__PURE__*/React__default.forwardRef(function DatePicker(_ref
450
460
  } else if (!calendarRef.current && value) {
451
461
  startInputField.current.value = value;
452
462
  }
453
- }, [value, prefix]);
463
+ }, [value, prefix]); //eslint-disable-line react-hooks/exhaustive-deps
464
+
454
465
  var fluidError;
455
466
 
456
467
  if (isFluid) {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import DatePicker from './DatePicker.js';
9
+ export { default as DatePicker, default } from './DatePicker.js';
10
+ export { default as DatePickerSkeleton } from './DatePicker.Skeleton.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import DatePickerInput from './DatePickerInput.js';
9
+ export { default as DatePickerInput, default } from './DatePickerInput.js';
@@ -43,4 +43,4 @@ DropdownSkeleton.propTypes = {
43
43
  size: ListBoxSize
44
44
  };
45
45
 
46
- export { DropdownSkeleton as default };
46
+ export { DropdownSkeleton, DropdownSkeleton as default };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import Dropdown from './Dropdown.js';
9
+ export { default as Dropdown, default } from './Dropdown.js';
10
+ export { default as DropdownSkeleton } from './Dropdown.Skeleton.js';
@@ -40,4 +40,4 @@ FileUploaderSkeleton.propTypes = {
40
40
  className: PropTypes.string
41
41
  };
42
42
 
43
- export { FileUploaderSkeleton as default };
43
+ export { FileUploaderSkeleton, FileUploaderSkeleton as default };
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
- import '../DatePicker/DatePicker.Skeleton.js';
13
12
  import DatePicker from '../DatePicker/DatePicker.js';
13
+ import '../DatePicker/DatePicker.Skeleton.js';
14
14
  import { usePrefix } from '../../internal/usePrefix.js';
15
15
  import { FormContext } from '../FluidForm/FormContext.js';
16
16
 
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, defineProperty as
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
- import '../Dropdown/Dropdown.Skeleton.js';
13
12
  import Dropdown from '../Dropdown/Dropdown.js';
13
+ import '../Dropdown/Dropdown.Skeleton.js';
14
14
  import { usePrefix } from '../../internal/usePrefix.js';
15
15
  import { FormContext } from '../FluidForm/FormContext.js';
16
16
 
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
- import '../Select/Select.Skeleton.js';
13
12
  import Select from '../Select/Select.js';
13
+ import '../Select/Select.Skeleton.js';
14
14
  import { usePrefix } from '../../internal/usePrefix.js';
15
15
  import { FormContext } from '../FluidForm/FormContext.js';
16
16
 
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import FluidSelect from './FluidSelect.js';
9
+ export { default as FluidSelect, default } from './FluidSelect.js';
10
+ export { default as FluidSelectSkeleton } from './FluidSelect.Skeleton.js';
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import cx from 'classnames';
12
- import '../TextArea/TextArea.Skeleton.js';
13
12
  import TextArea from '../TextArea/TextArea.js';
13
+ import '../TextArea/TextArea.Skeleton.js';
14
14
  import deprecate from '../../prop-types/deprecate.js';
15
15
  import { usePrefix } from '../../internal/usePrefix.js';
16
16
  import { FormContext } from '../FluidForm/FormContext.js';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import FluidTextInput from './FluidTextInput.js';
9
+ export { default as FluidTextInput, default } from './FluidTextInput.js';
10
+ export { default as FluidTextInputSkeleton } from './FluidTextInput.Skeleton.js';
@@ -5,5 +5,5 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import ExpandableSearch from './ExpandableSearch.js';
9
- export { default } from './ExpandableSearch.js';
8
+ import Form from './Form.js';
9
+ export { default as Form, default } from './Form.js';
@@ -33,4 +33,4 @@ IconSkeleton.propTypes = {
33
33
  className: PropTypes.string
34
34
  };
35
35
 
36
- export { IconSkeleton as default };
36
+ export { IconSkeleton, IconSkeleton as default };
@@ -8,8 +8,8 @@
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
- import '../Button/Button.Skeleton.js';
12
11
  import Button from '../Button/Button.js';
12
+ import '../Button/Button.Skeleton.js';
13
13
  import '../Tooltip/DefinitionTooltip.js';
14
14
  import { Tooltip } from '../Tooltip/Tooltip.js';
15
15
  import { usePrefix } from '../../internal/usePrefix.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import InlineCheckbox from './InlineCheckbox.js';
9
+ export { default as InlineCheckbox, default } from './InlineCheckbox.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import Link from './Link.js';
9
+ export { default as Link, default } from './Link.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import Loading from './Loading.js';
9
+ export { default as Loading, default } from './Loading.js';
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import Menu from './Menu.js';
9
- export { default } from './Menu.js';
9
+ export { default as Menu, default } from './Menu.js';
10
10
  import MenuDivider from './MenuDivider.js';
11
11
  export { default as MenuDivider } from './MenuDivider.js';
12
12
  import MenuGroup from './MenuGroup.js';
@@ -11,8 +11,8 @@ import React__default, { useRef, useEffect } from 'react';
11
11
  import cx from 'classnames';
12
12
  import { Close } from '@carbon/icons-react';
13
13
  import toggleClass from '../../tools/toggleClass.js';
14
- import '../Button/Button.Skeleton.js';
15
14
  import Button from '../Button/Button.js';
15
+ import '../Button/Button.Skeleton.js';
16
16
  import ButtonSet from '../ButtonSet/ButtonSet.js';
17
17
  import requiredIfGivenPropIsTruthy from '../../prop-types/requiredIfGivenPropIsTruthy.js';
18
18
  import wrapFocus, { elementOrParentIsFloatingMenu } from '../../internal/wrapFocus.js';
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  import Modal from './Modal.js';
9
- export { default } from './Modal.js';
9
+ export { default as Modal, default } from './Modal.js';
@@ -9,8 +9,8 @@ import { inherits as _inherits, createSuper as _createSuper, createClass as _cre
9
9
  import PropTypes from 'prop-types';
10
10
  import React__default from 'react';
11
11
  import Modal from '../Modal/Modal.js';
12
- import '../Button/Button.Skeleton.js';
13
12
  import Button from '../Button/Button.js';
13
+ import '../Button/Button.Skeleton.js';
14
14
  import { ButtonKinds } from '../../prop-types/types.js';
15
15
  import { warning } from '../../internal/warning.js';
16
16
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { deprecateFieldOnObject } from '../../internal/deprecateFieldOnObject.js';
9
9
  import MultiSelect from './MultiSelect.js';
10
- export { default } from './MultiSelect.js';
10
+ export { default as MultiSelect, default } from './MultiSelect.js';
11
11
  import FilterableMultiSelect from './FilterableMultiSelect.js';
12
12
  export { default as FilterableMultiSelect } from './FilterableMultiSelect.js';
13
13
 
@@ -10,8 +10,8 @@ import PropTypes from 'prop-types';
10
10
  import React__default, { useState, useRef, useEffect } from 'react';
11
11
  import cx from 'classnames';
12
12
  import { Close, ErrorFilled, CheckmarkFilled, WarningFilled, WarningAltFilled, InformationFilled, InformationSquareFilled } from '@carbon/icons-react';
13
- import '../Button/Button.Skeleton.js';
14
13
  import Button from '../Button/Button.js';
14
+ import '../Button/Button.Skeleton.js';
15
15
  import useIsomorphicEffect from '../../internal/useIsomorphicEffect.js';
16
16
  import { useNoInteractiveChildren } from '../../internal/useNoInteractiveChildren.js';
17
17
  import { Escape } from '../../internal/keyboard/keys.js';
@@ -10,4 +10,4 @@ import { createClassWrapper } from '../../internal/createClassWrapper.js';
10
10
 
11
11
  var OverflowMenu = createClassWrapper(OverflowMenu$1);
12
12
 
13
- export { OverflowMenu as default };
13
+ export { OverflowMenu, OverflowMenu as default };
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  import OverflowMenuItem from './OverflowMenuItem.js';
9
- export { default } from './OverflowMenuItem.js';
9
+ export { default as OverflowMenuItem, default } from './OverflowMenuItem.js';
@@ -45,4 +45,4 @@ PaginationSkeleton.propTypes = {
45
45
  className: PropTypes.string
46
46
  };
47
47
 
48
- export { PaginationSkeleton as default };
48
+ export { PaginationSkeleton, PaginationSkeleton as default };
@@ -10,8 +10,8 @@ import { CaretLeft, CaretRight } from '@carbon/icons-react';
10
10
  import cx from 'classnames';
11
11
  import PropTypes from 'prop-types';
12
12
  import React__default, { useRef, useState } from 'react';
13
- import '../Select/Select.Skeleton.js';
14
13
  import Select from '../Select/Select.js';
14
+ import '../Select/Select.Skeleton.js';
15
15
  import SelectItem from '../SelectItem/SelectItem.js';
16
16
  import { equals } from '../../tools/array.js';
17
17
  import { useFallbackId } from '../../internal/useId.js';
@@ -10,8 +10,8 @@ import React__default from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import cx from 'classnames';
12
12
  import setupGetInstanceId from '../../../tools/setupGetInstanceId.js';
13
- import '../../Select/Select.Skeleton.js';
14
13
  import Select from '../../Select/Select.js';
14
+ import '../../Select/Select.Skeleton.js';
15
15
  import SelectItem from '../../SelectItem/SelectItem.js';
16
16
  import { usePrefix } from '../../../internal/usePrefix.js';
17
17
 
@@ -10,10 +10,10 @@ import React__default, { useState } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import cx from 'classnames';
12
12
  import { CaretLeft, CaretRight } from '@carbon/icons-react';
13
- import '../../Button/Button.Skeleton.js';
14
13
  import Button from '../../Button/Button.js';
15
- import '../../Select/Select.Skeleton.js';
14
+ import '../../Button/Button.Skeleton.js';
16
15
  import Select from '../../Select/Select.js';
16
+ import '../../Select/Select.Skeleton.js';
17
17
  import SelectItem from '../../SelectItem/SelectItem.js';
18
18
  import { IconButton } from '../../IconButton/index.js';
19
19
  import * as FeatureFlags from '@carbon/feature-flags';
@@ -10,8 +10,8 @@ import PropTypes from 'prop-types';
10
10
  import React__default, { useState, useEffect, useRef } from 'react';
11
11
  import cx from 'classnames';
12
12
  import { CaretRight, CaretLeft, OverflowMenuHorizontal } from '@carbon/icons-react';
13
- import '../Button/Button.Skeleton.js';
14
13
  import Button from '../Button/Button.js';
14
+ import '../Button/Button.Skeleton.js';
15
15
  import { IconButton } from '../IconButton/index.js';
16
16
  import * as FeatureFlags from '@carbon/feature-flags';
17
17
  import { usePrefix } from '../../internal/usePrefix.js';
@@ -7,8 +7,8 @@
7
7
 
8
8
  import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default from 'react';
10
- import '../Button/Button.Skeleton.js';
11
10
  import Button from '../Button/Button.js';
11
+ import '../Button/Button.Skeleton.js';
12
12
 
13
13
  var PrimaryButton = function PrimaryButton(props) {
14
14
  return /*#__PURE__*/React__default.createElement(Button, _extends({
@@ -52,4 +52,4 @@ ProgressIndicatorSkeleton.propTypes = {
52
52
  vertical: PropTypes.bool
53
53
  };
54
54
 
55
- export { ProgressIndicatorSkeleton as default };
55
+ export { ProgressIndicatorSkeleton, ProgressIndicatorSkeleton as default };
@@ -34,4 +34,4 @@ RadioButtonSkeleton.propTypes = {
34
34
  className: PropTypes.string
35
35
  };
36
36
 
37
- export { RadioButtonSkeleton as default };
37
+ export { RadioButtonSkeleton, RadioButtonSkeleton as default };
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  import RadioButton from './RadioButton.js';
9
- export { default } from './RadioButton.js';
9
+ export { default as RadioButton, default } from './RadioButton.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import RadioTile from './RadioTile.js';
9
+ export { default as RadioTile, default } from './RadioTile.js';
@@ -46,4 +46,4 @@ SearchSkeleton.defaultProps = {
46
46
  small: false
47
47
  };
48
48
 
49
- export { SearchSkeleton as default };
49
+ export { SearchSkeleton, SearchSkeleton as default };