@carbon/react 1.23.1 → 1.24.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 (880) hide show
  1. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
  2. package/es/components/Accordion/Accordion.Skeleton.js +1 -1
  3. package/es/components/Accordion/Accordion.js +1 -1
  4. package/es/components/Accordion/AccordionItem.js +1 -1
  5. package/es/components/AspectRatio/AspectRatio.js +1 -1
  6. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -1
  7. package/es/components/Breadcrumb/Breadcrumb.js +1 -1
  8. package/es/components/Breadcrumb/BreadcrumbItem.js +1 -1
  9. package/es/components/Button/Button.Skeleton.js +1 -1
  10. package/es/components/Button/Button.js +2 -3
  11. package/es/components/Button/index.js +1 -1
  12. package/es/components/ButtonSet/ButtonSet.js +1 -1
  13. package/es/components/ButtonSet/index.js +1 -1
  14. package/es/components/Checkbox/Checkbox.Skeleton.d.ts +1 -1
  15. package/es/components/Checkbox/Checkbox.Skeleton.js +1 -1
  16. package/es/components/Checkbox/Checkbox.d.ts +1 -1
  17. package/es/components/Checkbox/Checkbox.js +1 -1
  18. package/es/components/Checkbox/index.d.ts +1 -1
  19. package/es/components/ClassPrefix/index.js +1 -1
  20. package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -1
  21. package/es/components/CodeSnippet/CodeSnippet.js +1 -1
  22. package/es/components/ComboBox/ComboBox.d.ts +1 -1
  23. package/es/components/ComboBox/ComboBox.js +1 -1
  24. package/es/components/ComboBox/index.js +1 -1
  25. package/es/components/ComboBox/tools/filter.js +1 -1
  26. package/es/components/ComposedModal/ComposedModal.js +1 -1
  27. package/es/components/ComposedModal/ModalFooter.js +1 -1
  28. package/es/components/ComposedModal/ModalHeader.js +1 -1
  29. package/es/components/ContainedList/ContainedList.js +1 -1
  30. package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +1 -1
  31. package/es/components/ContainedList/ContainedListItem/index.js +1 -1
  32. package/es/components/ContentSwitcher/ContentSwitcher.js +1 -1
  33. package/es/components/ContentSwitcher/index.js +1 -1
  34. package/es/components/ContextMenu/useContextMenu.js +9 -5
  35. package/es/components/Copy/Copy.js +1 -1
  36. package/es/components/Copy/index.js +1 -1
  37. package/es/components/CopyButton/CopyButton.js +1 -1
  38. package/es/components/CopyButton/index.js +1 -1
  39. package/es/components/DangerButton/DangerButton.js +1 -1
  40. package/es/components/DataTable/DataTable.js +1 -1
  41. package/es/components/DataTable/Table.js +1 -1
  42. package/es/components/DataTable/TableActionList.js +1 -1
  43. package/es/components/DataTable/TableBatchAction.js +1 -1
  44. package/es/components/DataTable/TableBatchActions.js +1 -1
  45. package/es/components/DataTable/TableBody.js +1 -1
  46. package/es/components/DataTable/TableCell.js +1 -1
  47. package/es/components/DataTable/TableContainer.js +1 -1
  48. package/es/components/DataTable/TableContext.js +1 -1
  49. package/es/components/DataTable/TableExpandHeader.js +1 -1
  50. package/es/components/DataTable/TableExpandRow.js +1 -1
  51. package/es/components/DataTable/TableExpandedRow.js +1 -1
  52. package/es/components/DataTable/TableHead.js +1 -1
  53. package/es/components/DataTable/TableHeader.js +1 -1
  54. package/es/components/DataTable/TableRow.js +1 -1
  55. package/es/components/DataTable/TableSelectAll.d.ts +1 -1
  56. package/es/components/DataTable/TableSelectAll.js +1 -1
  57. package/es/components/DataTable/TableSelectRow.d.ts +1 -1
  58. package/es/components/DataTable/TableSelectRow.js +1 -1
  59. package/es/components/DataTable/TableToolbar.js +1 -1
  60. package/es/components/DataTable/TableToolbarAction.js +1 -1
  61. package/es/components/DataTable/TableToolbarContent.js +1 -1
  62. package/es/components/DataTable/TableToolbarMenu.js +1 -1
  63. package/es/components/DataTable/TableToolbarSearch.js +1 -1
  64. package/es/components/DataTable/state/getDerivedStateFromProps.js +1 -1
  65. package/es/components/DataTable/state/sortStates.js +1 -1
  66. package/es/components/DataTable/state/sorting.js +1 -1
  67. package/es/components/DataTable/tools/cells.js +1 -1
  68. package/es/components/DataTable/tools/denormalize.js +2 -2
  69. package/es/components/DataTable/tools/filter.js +1 -1
  70. package/es/components/DataTable/tools/instanceId.js +1 -1
  71. package/es/components/DataTable/tools/normalize.js +1 -1
  72. package/es/components/DataTable/tools/sorting.js +1 -1
  73. package/es/components/DataTableSkeleton/DataTableSkeleton.js +1 -1
  74. package/es/components/DatePicker/DatePicker.Skeleton.js +1 -1
  75. package/es/components/DatePicker/DatePicker.js +13 -1
  76. package/es/components/DatePicker/index.js +1 -1
  77. package/es/components/DatePicker/plugins/appendToPlugin.js +1 -1
  78. package/es/components/DatePicker/plugins/fixEventsPlugin.js +3 -3
  79. package/es/components/DatePicker/plugins/rangePlugin.js +1 -1
  80. package/es/components/DatePickerInput/DatePickerInput.js +1 -1
  81. package/es/components/DatePickerInput/index.js +1 -1
  82. package/es/components/Dropdown/Dropdown.Skeleton.js +1 -1
  83. package/es/components/Dropdown/Dropdown.js +1 -1
  84. package/es/components/Dropdown/index.d.ts +1 -1
  85. package/es/components/Dropdown/index.js +1 -1
  86. package/es/components/ErrorBoundary/ErrorBoundary.js +1 -1
  87. package/es/components/ErrorBoundary/ErrorBoundaryContext.js +1 -1
  88. package/es/components/ExpandableSearch/ExpandableSearch.js +1 -1
  89. package/es/components/FeatureFlags/index.js +1 -1
  90. package/es/components/FileUploader/FileUploader.Skeleton.js +1 -1
  91. package/es/components/FileUploader/FileUploader.js +1 -1
  92. package/es/components/FileUploader/FileUploaderButton.js +1 -1
  93. package/es/components/FileUploader/FileUploaderDropContainer.js +1 -1
  94. package/es/components/FileUploader/FileUploaderItem.js +1 -1
  95. package/es/components/FileUploader/Filename.js +1 -1
  96. package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +1 -1
  97. package/es/components/FluidComboBox/FluidComboBox.js +1 -1
  98. package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +1 -1
  99. package/es/components/FluidDatePicker/FluidDatePicker.js +1 -1
  100. package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +1 -1
  101. package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +1 -1
  102. package/es/components/FluidDropdown/FluidDropdown.js +1 -1
  103. package/es/components/FluidForm/FluidForm.js +1 -1
  104. package/es/components/FluidForm/FormContext.js +1 -1
  105. package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -1
  106. package/es/components/FluidMultiSelect/FluidMultiSelect.js +1 -1
  107. package/es/components/FluidSelect/FluidSelect.Skeleton.js +1 -1
  108. package/es/components/FluidSelect/FluidSelect.js +1 -1
  109. package/es/components/FluidSelect/index.js +1 -1
  110. package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +1 -1
  111. package/es/components/FluidTextArea/FluidTextArea.js +1 -1
  112. package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +1 -1
  113. package/es/components/FluidTextInput/FluidTextInput.js +1 -1
  114. package/es/components/FluidTextInput/index.js +1 -1
  115. package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +1 -1
  116. package/es/components/FluidTimePicker/FluidTimePicker.js +1 -1
  117. package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +1 -1
  118. package/es/components/Form/Form.js +1 -1
  119. package/es/components/Form/index.js +1 -1
  120. package/es/components/FormGroup/FormGroup.js +1 -1
  121. package/es/components/FormItem/FormItem.js +1 -1
  122. package/es/components/FormLabel/FormLabel.js +1 -1
  123. package/es/components/Grid/CSSGrid.js +1 -1
  124. package/es/components/Grid/Column.js +1 -1
  125. package/es/components/Grid/ColumnHang.js +1 -1
  126. package/es/components/Grid/FlexGrid.js +1 -1
  127. package/es/components/Grid/Grid.js +1 -1
  128. package/es/components/Grid/GridContext.js +1 -1
  129. package/es/components/Grid/Row.js +1 -1
  130. package/es/components/Heading/index.js +1 -1
  131. package/es/components/Icon/Icon.Skeleton.js +1 -1
  132. package/es/components/IconButton/index.js +1 -1
  133. package/es/components/IdPrefix/index.js +1 -1
  134. package/es/components/InlineCheckbox/InlineCheckbox.js +1 -1
  135. package/es/components/InlineCheckbox/index.js +1 -1
  136. package/es/components/InlineLoading/InlineLoading.js +1 -1
  137. package/es/components/Layer/LayerContext.js +1 -1
  138. package/es/components/Layer/index.js +1 -1
  139. package/es/components/Layout/LayoutDirection.js +1 -1
  140. package/es/components/Layout/LayoutDirectionContext.js +1 -1
  141. package/es/components/Layout/useLayoutDirection.js +1 -1
  142. package/es/components/Link/Link.js +1 -1
  143. package/es/components/Link/index.js +1 -1
  144. package/es/components/ListBox/ListBox.js +1 -1
  145. package/es/components/ListBox/ListBoxField.js +1 -1
  146. package/es/components/ListBox/ListBoxMenu.js +1 -1
  147. package/es/components/ListBox/ListBoxMenuIcon.js +1 -1
  148. package/es/components/ListBox/ListBoxMenuItem.d.ts +2 -2
  149. package/es/components/ListBox/ListBoxMenuItem.js +1 -1
  150. package/es/components/ListBox/ListBoxPropTypes.js +1 -1
  151. package/es/components/ListBox/ListBoxSelection.js +1 -1
  152. package/es/components/ListBox/index.js +1 -1
  153. package/es/components/ListBox/next/ListBoxSelection.js +1 -1
  154. package/es/components/ListBox/next/ListBoxTrigger.js +1 -1
  155. package/es/components/ListItem/ListItem.js +1 -1
  156. package/es/components/Loading/Loading.js +1 -1
  157. package/es/components/Loading/index.js +1 -1
  158. package/es/components/Menu/Menu.js +5 -5
  159. package/es/components/Menu/MenuContext.js +4 -7
  160. package/es/components/Menu/MenuItem.js +15 -11
  161. package/es/components/Modal/Modal.js +1 -1
  162. package/es/components/Modal/index.js +1 -1
  163. package/es/components/ModalWrapper/ModalWrapper.js +1 -1
  164. package/es/components/MultiSelect/FilterableMultiSelect.js +1 -1
  165. package/es/components/MultiSelect/MultiSelect.d.ts +170 -0
  166. package/es/components/MultiSelect/MultiSelect.js +110 -72
  167. package/es/components/MultiSelect/MultiSelectPropTypes.js +1 -1
  168. package/es/components/MultiSelect/index.js +1 -1
  169. package/es/components/MultiSelect/tools/itemToString.js +1 -1
  170. package/es/components/MultiSelect/tools/sorting.js +1 -1
  171. package/es/components/Notification/Notification.js +1 -6
  172. package/es/components/NumberInput/NumberInput.Skeleton.d.ts +1 -1
  173. package/es/components/NumberInput/NumberInput.Skeleton.js +1 -1
  174. package/es/components/NumberInput/NumberInput.d.ts +1 -1
  175. package/es/components/NumberInput/NumberInput.js +3 -5
  176. package/es/components/OrderedList/OrderedList.js +1 -1
  177. package/es/components/OverflowMenu/OverflowMenu.js +1 -1
  178. package/es/components/OverflowMenu/index.js +1 -1
  179. package/es/components/OverflowMenuItem/OverflowMenuItem.js +1 -1
  180. package/es/components/OverflowMenuItem/index.js +1 -1
  181. package/es/components/OverflowMenuV2/index.js +1 -1
  182. package/es/components/Pagination/Pagination.Skeleton.js +1 -1
  183. package/es/components/Pagination/Pagination.js +1 -1
  184. package/es/components/Pagination/experimental/PageSelector.js +1 -1
  185. package/es/components/Pagination/experimental/Pagination.js +1 -1
  186. package/es/components/PaginationNav/PaginationNav.js +1 -1
  187. package/es/components/Popover/index.d.ts +51 -0
  188. package/es/components/Popover/index.js +29 -25
  189. package/es/components/PrimaryButton/PrimaryButton.js +1 -1
  190. package/es/components/ProgressBar/ProgressBar.js +1 -1
  191. package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -1
  192. package/es/components/ProgressIndicator/ProgressIndicator.js +1 -1
  193. package/es/components/RadioButton/RadioButton.Skeleton.js +1 -1
  194. package/es/components/RadioButton/RadioButton.js +1 -1
  195. package/es/components/RadioButton/index.js +1 -1
  196. package/es/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  197. package/es/components/RadioTile/RadioTile.js +1 -1
  198. package/es/components/RadioTile/index.js +1 -1
  199. package/es/components/Search/Search.Skeleton.js +1 -1
  200. package/es/components/Search/Search.js +1 -1
  201. package/es/components/Search/index.js +1 -1
  202. package/es/components/SecondaryButton/SecondaryButton.js +1 -1
  203. package/es/components/Select/Select.Skeleton.d.ts +1 -1
  204. package/es/components/Select/Select.Skeleton.js +1 -1
  205. package/es/components/Select/Select.js +1 -1
  206. package/es/components/Select/index.js +1 -1
  207. package/es/components/SelectItem/SelectItem.js +1 -1
  208. package/es/components/SelectItem/index.js +1 -1
  209. package/es/components/SelectItemGroup/SelectItemGroup.js +1 -1
  210. package/es/components/SkeletonIcon/SkeletonIcon.js +1 -1
  211. package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +1 -1
  212. package/es/components/SkeletonText/SkeletonText.js +1 -1
  213. package/es/components/SkeletonText/index.js +1 -1
  214. package/es/components/Slider/Slider.Skeleton.d.ts +3 -3
  215. package/es/components/Slider/Slider.Skeleton.js +1 -1
  216. package/es/components/Slider/Slider.d.ts +355 -0
  217. package/es/components/Slider/Slider.js +64 -36
  218. package/es/components/Slider/index.js +1 -1
  219. package/es/components/Stack/Stack.js +1 -1
  220. package/es/components/Stack/index.js +1 -1
  221. package/es/components/StructuredList/StructuredList.Skeleton.js +1 -1
  222. package/es/components/StructuredList/StructuredList.js +1 -1
  223. package/es/components/Switch/Switch.js +1 -1
  224. package/es/components/Tab/Tab.js +1 -1
  225. package/es/components/Tab/index.js +1 -1
  226. package/es/components/TabContent/TabContent.js +1 -1
  227. package/es/components/Tabs/Tabs.Skeleton.js +1 -1
  228. package/es/components/Tabs/Tabs.js +1 -1
  229. package/es/components/Tabs/usePressable.js +1 -1
  230. package/es/components/Tag/Tag.Skeleton.js +1 -1
  231. package/es/components/Tag/Tag.js +1 -1
  232. package/es/components/Text/Text.d.ts +1 -1
  233. package/es/components/Text/Text.js +1 -1
  234. package/es/components/Text/TextDirection.d.ts +1 -1
  235. package/es/components/Text/TextDirection.js +1 -1
  236. package/es/components/Text/TextDirectionContext.js +1 -1
  237. package/es/components/Text/createTextComponent.d.ts +1 -1
  238. package/es/components/Text/createTextComponent.js +1 -1
  239. package/es/components/Text/index.d.ts +1 -1
  240. package/es/components/Text/index.js +1 -1
  241. package/es/components/TextArea/TextArea.Skeleton.js +1 -1
  242. package/es/components/TextArea/TextArea.d.ts +95 -0
  243. package/es/components/TextArea/TextArea.js +27 -28
  244. package/es/components/TextArea/index.js +1 -1
  245. package/es/components/TextInput/ControlledPasswordInput.js +1 -1
  246. package/es/components/TextInput/PasswordInput.js +1 -1
  247. package/es/components/TextInput/TextInput.Skeleton.js +1 -1
  248. package/es/components/TextInput/TextInput.d.ts +106 -0
  249. package/es/components/TextInput/TextInput.js +4 -3
  250. package/es/components/TextInput/index.js +1 -1
  251. package/es/components/TextInput/util.js +1 -1
  252. package/es/components/Theme/index.js +1 -1
  253. package/es/components/Tile/Tile.js +1 -1
  254. package/es/components/TileGroup/TileGroup.js +1 -1
  255. package/es/components/TileGroup/index.js +1 -1
  256. package/es/components/TimePicker/TimePicker.d.ts +96 -0
  257. package/es/components/TimePicker/TimePicker.js +8 -7
  258. package/es/components/TimePickerSelect/TimePickerSelect.d.ts +33 -0
  259. package/es/components/TimePickerSelect/TimePickerSelect.js +7 -8
  260. package/es/components/TimePickerSelect/index.js +3 -3
  261. package/es/components/Toggle/Toggle.Skeleton.js +1 -1
  262. package/es/components/Toggle/Toggle.js +1 -1
  263. package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
  264. package/es/components/Toggletip/index.js +1 -1
  265. package/es/components/Tooltip/DefinitionTooltip.js +1 -1
  266. package/es/components/Tooltip/Tooltip.js +1 -1
  267. package/es/components/TreeView/TreeNode.js +1 -1
  268. package/es/components/TreeView/TreeView.js +1 -1
  269. package/es/components/UIShell/Content.js +1 -1
  270. package/es/components/UIShell/Header.js +1 -1
  271. package/es/components/UIShell/HeaderContainer.js +1 -1
  272. package/es/components/UIShell/HeaderGlobalAction.js +1 -1
  273. package/es/components/UIShell/HeaderGlobalBar.js +1 -1
  274. package/es/components/UIShell/HeaderMenu.js +1 -1
  275. package/es/components/UIShell/HeaderMenuButton.js +1 -1
  276. package/es/components/UIShell/HeaderMenuItem.js +1 -1
  277. package/es/components/UIShell/HeaderName.js +1 -1
  278. package/es/components/UIShell/HeaderNavigation.js +1 -1
  279. package/es/components/UIShell/HeaderPanel.js +1 -1
  280. package/es/components/UIShell/HeaderSideNavItems.js +1 -1
  281. package/es/components/UIShell/Link.js +1 -1
  282. package/es/components/UIShell/SideNav.js +1 -1
  283. package/es/components/UIShell/SideNavDetails.js +1 -1
  284. package/es/components/UIShell/SideNavDivider.js +1 -1
  285. package/es/components/UIShell/SideNavFooter.js +1 -1
  286. package/es/components/UIShell/SideNavHeader.js +1 -1
  287. package/es/components/UIShell/SideNavIcon.js +1 -1
  288. package/es/components/UIShell/SideNavItem.js +1 -1
  289. package/es/components/UIShell/SideNavItems.js +1 -1
  290. package/es/components/UIShell/SideNavLink.js +1 -1
  291. package/es/components/UIShell/SideNavLinkText.js +1 -1
  292. package/es/components/UIShell/SideNavMenu.js +1 -1
  293. package/es/components/UIShell/SideNavMenuItem.js +1 -1
  294. package/es/components/UIShell/SideNavSwitcher.js +1 -1
  295. package/es/components/UIShell/SkipToContent.js +1 -1
  296. package/es/components/UIShell/Switcher.js +1 -1
  297. package/es/components/UIShell/SwitcherDivider.js +1 -1
  298. package/es/components/UIShell/SwitcherItem.js +1 -1
  299. package/es/components/UIShell/_utils.js +1 -1
  300. package/es/components/UnorderedList/UnorderedList.js +1 -1
  301. package/es/feature-flags.js +1 -1
  302. package/es/index.d.ts +1 -1
  303. package/es/index.js +1 -1
  304. package/es/internal/ClickListener.js +1 -1
  305. package/es/internal/FloatingMenu.js +1 -1
  306. package/es/internal/OptimizedResize.js +1 -1
  307. package/es/internal/Selection.js +1 -1
  308. package/es/internal/createClassWrapper.js +1 -1
  309. package/es/internal/deprecateFieldOnObject.js +1 -1
  310. package/es/internal/environment.js +1 -1
  311. package/es/internal/focus/index.js +1 -1
  312. package/es/internal/keyboard/keys.js +1 -1
  313. package/es/internal/keyboard/match.js +1 -1
  314. package/es/internal/keyboard/navigation.js +1 -1
  315. package/es/internal/useAnnouncer.js +1 -1
  316. package/es/internal/useControllableState.js +1 -1
  317. package/es/internal/useDelayedState.js +1 -1
  318. package/es/internal/useEffectOnce.js +1 -1
  319. package/es/internal/useEvent.js +1 -1
  320. package/es/internal/useId.js +1 -1
  321. package/es/internal/useIdPrefix.js +1 -1
  322. package/es/internal/useIsomorphicEffect.js +1 -1
  323. package/es/internal/useMergedRefs.d.ts +13 -0
  324. package/es/internal/useMergedRefs.js +3 -6
  325. package/es/internal/useNoInteractiveChildren.js +1 -1
  326. package/es/internal/useNormalizedInputProps.js +2 -1
  327. package/es/internal/usePrefix.d.ts +1 -1
  328. package/es/internal/usePrefix.js +1 -1
  329. package/es/internal/useSavedCallback.js +1 -1
  330. package/es/internal/warning.js +1 -1
  331. package/es/internal/wrapFocus.js +1 -1
  332. package/es/prop-types/AriaPropTypes.js +1 -1
  333. package/es/prop-types/deprecate.js +1 -1
  334. package/es/prop-types/isRequiredOneOf.js +2 -2
  335. package/es/prop-types/requiredIfGivenPropIsTruthy.js +1 -1
  336. package/es/prop-types/types.js +1 -1
  337. package/es/tools/array.js +1 -1
  338. package/es/tools/events.js +1 -1
  339. package/es/tools/mergeRefs.js +1 -1
  340. package/es/tools/setupGetInstanceId.js +1 -1
  341. package/es/tools/toggleClass.js +1 -1
  342. package/es/tools/uniqueId.js +1 -1
  343. package/es/tools/wrapComponent.js +1 -1
  344. package/icons/index.esm.js +1 -1
  345. package/icons/index.js +1 -1
  346. package/index.scss +1 -1
  347. package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
  348. package/lib/components/Accordion/Accordion.Skeleton.js +1 -1
  349. package/lib/components/Accordion/Accordion.js +1 -1
  350. package/lib/components/Accordion/AccordionItem.js +1 -1
  351. package/lib/components/AspectRatio/AspectRatio.js +1 -1
  352. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +1 -1
  353. package/lib/components/Breadcrumb/Breadcrumb.js +1 -1
  354. package/lib/components/Breadcrumb/BreadcrumbItem.js +1 -1
  355. package/lib/components/Button/Button.Skeleton.js +1 -1
  356. package/lib/components/Button/Button.js +2 -3
  357. package/lib/components/Button/index.js +1 -1
  358. package/lib/components/ButtonSet/ButtonSet.js +1 -1
  359. package/lib/components/ButtonSet/index.js +1 -1
  360. package/lib/components/Checkbox/Checkbox.Skeleton.d.ts +1 -1
  361. package/lib/components/Checkbox/Checkbox.Skeleton.js +1 -1
  362. package/lib/components/Checkbox/Checkbox.d.ts +1 -1
  363. package/lib/components/Checkbox/Checkbox.js +1 -1
  364. package/lib/components/Checkbox/index.d.ts +1 -1
  365. package/lib/components/ClassPrefix/index.js +1 -1
  366. package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +1 -1
  367. package/lib/components/CodeSnippet/CodeSnippet.js +1 -1
  368. package/lib/components/ComboBox/ComboBox.d.ts +1 -1
  369. package/lib/components/ComboBox/ComboBox.js +1 -1
  370. package/lib/components/ComboBox/index.js +1 -1
  371. package/lib/components/ComboBox/tools/filter.js +1 -1
  372. package/lib/components/ComposedModal/ComposedModal.js +1 -1
  373. package/lib/components/ComposedModal/ModalFooter.js +1 -1
  374. package/lib/components/ComposedModal/ModalHeader.js +1 -1
  375. package/lib/components/ContainedList/ContainedList.js +1 -1
  376. package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +1 -1
  377. package/lib/components/ContainedList/ContainedListItem/index.js +1 -1
  378. package/lib/components/ContentSwitcher/ContentSwitcher.js +1 -1
  379. package/lib/components/ContentSwitcher/index.js +1 -1
  380. package/lib/components/ContextMenu/useContextMenu.js +9 -5
  381. package/lib/components/Copy/Copy.js +1 -1
  382. package/lib/components/Copy/index.js +1 -1
  383. package/lib/components/CopyButton/CopyButton.js +1 -1
  384. package/lib/components/CopyButton/index.js +1 -1
  385. package/lib/components/DangerButton/DangerButton.js +1 -1
  386. package/lib/components/DataTable/DataTable.js +1 -1
  387. package/lib/components/DataTable/Table.js +1 -1
  388. package/lib/components/DataTable/TableActionList.js +1 -1
  389. package/lib/components/DataTable/TableBatchAction.js +1 -1
  390. package/lib/components/DataTable/TableBatchActions.js +1 -1
  391. package/lib/components/DataTable/TableBody.js +1 -1
  392. package/lib/components/DataTable/TableCell.js +1 -1
  393. package/lib/components/DataTable/TableContainer.js +1 -1
  394. package/lib/components/DataTable/TableContext.js +1 -1
  395. package/lib/components/DataTable/TableExpandHeader.js +1 -1
  396. package/lib/components/DataTable/TableExpandRow.js +1 -1
  397. package/lib/components/DataTable/TableExpandedRow.js +1 -1
  398. package/lib/components/DataTable/TableHead.js +1 -1
  399. package/lib/components/DataTable/TableHeader.js +1 -1
  400. package/lib/components/DataTable/TableRow.js +1 -1
  401. package/lib/components/DataTable/TableSelectAll.d.ts +1 -1
  402. package/lib/components/DataTable/TableSelectAll.js +1 -1
  403. package/lib/components/DataTable/TableSelectRow.d.ts +1 -1
  404. package/lib/components/DataTable/TableSelectRow.js +1 -1
  405. package/lib/components/DataTable/TableToolbar.js +1 -1
  406. package/lib/components/DataTable/TableToolbarAction.js +1 -1
  407. package/lib/components/DataTable/TableToolbarContent.js +1 -1
  408. package/lib/components/DataTable/TableToolbarMenu.js +1 -1
  409. package/lib/components/DataTable/TableToolbarSearch.js +1 -1
  410. package/lib/components/DataTable/state/getDerivedStateFromProps.js +1 -1
  411. package/lib/components/DataTable/state/sortStates.js +1 -1
  412. package/lib/components/DataTable/state/sorting.js +1 -1
  413. package/lib/components/DataTable/tools/cells.js +1 -1
  414. package/lib/components/DataTable/tools/denormalize.js +2 -2
  415. package/lib/components/DataTable/tools/filter.js +1 -1
  416. package/lib/components/DataTable/tools/instanceId.js +1 -1
  417. package/lib/components/DataTable/tools/normalize.js +1 -1
  418. package/lib/components/DataTable/tools/sorting.js +1 -1
  419. package/lib/components/DataTableSkeleton/DataTableSkeleton.js +1 -1
  420. package/lib/components/DatePicker/DatePicker.Skeleton.js +1 -1
  421. package/lib/components/DatePicker/DatePicker.js +13 -1
  422. package/lib/components/DatePicker/index.js +1 -1
  423. package/lib/components/DatePicker/plugins/appendToPlugin.js +1 -1
  424. package/lib/components/DatePicker/plugins/fixEventsPlugin.js +3 -3
  425. package/lib/components/DatePicker/plugins/rangePlugin.js +1 -1
  426. package/lib/components/DatePickerInput/DatePickerInput.js +1 -1
  427. package/lib/components/DatePickerInput/index.js +1 -1
  428. package/lib/components/Dropdown/Dropdown.Skeleton.js +1 -1
  429. package/lib/components/Dropdown/Dropdown.js +1 -1
  430. package/lib/components/Dropdown/index.d.ts +1 -1
  431. package/lib/components/Dropdown/index.js +1 -1
  432. package/lib/components/ErrorBoundary/ErrorBoundary.js +1 -1
  433. package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +1 -1
  434. package/lib/components/ExpandableSearch/ExpandableSearch.js +1 -1
  435. package/lib/components/FeatureFlags/index.js +1 -1
  436. package/lib/components/FileUploader/FileUploader.Skeleton.js +1 -1
  437. package/lib/components/FileUploader/FileUploader.js +1 -1
  438. package/lib/components/FileUploader/FileUploaderButton.js +1 -1
  439. package/lib/components/FileUploader/FileUploaderDropContainer.js +1 -1
  440. package/lib/components/FileUploader/FileUploaderItem.js +1 -1
  441. package/lib/components/FileUploader/Filename.js +1 -1
  442. package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +1 -1
  443. package/lib/components/FluidComboBox/FluidComboBox.js +1 -1
  444. package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +1 -1
  445. package/lib/components/FluidDatePicker/FluidDatePicker.js +1 -1
  446. package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +1 -1
  447. package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +1 -1
  448. package/lib/components/FluidDropdown/FluidDropdown.js +1 -1
  449. package/lib/components/FluidForm/FluidForm.js +1 -1
  450. package/lib/components/FluidForm/FormContext.js +1 -1
  451. package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -1
  452. package/lib/components/FluidMultiSelect/FluidMultiSelect.js +1 -1
  453. package/lib/components/FluidSelect/FluidSelect.Skeleton.js +1 -1
  454. package/lib/components/FluidSelect/FluidSelect.js +1 -1
  455. package/lib/components/FluidSelect/index.js +1 -1
  456. package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +1 -1
  457. package/lib/components/FluidTextArea/FluidTextArea.js +1 -1
  458. package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +1 -1
  459. package/lib/components/FluidTextInput/FluidTextInput.js +1 -1
  460. package/lib/components/FluidTextInput/index.js +1 -1
  461. package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +1 -1
  462. package/lib/components/FluidTimePicker/FluidTimePicker.js +1 -1
  463. package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +1 -1
  464. package/lib/components/Form/Form.js +1 -1
  465. package/lib/components/Form/index.js +1 -1
  466. package/lib/components/FormGroup/FormGroup.js +1 -1
  467. package/lib/components/FormItem/FormItem.js +1 -1
  468. package/lib/components/FormLabel/FormLabel.js +1 -1
  469. package/lib/components/Grid/CSSGrid.js +1 -1
  470. package/lib/components/Grid/Column.js +1 -1
  471. package/lib/components/Grid/ColumnHang.js +1 -1
  472. package/lib/components/Grid/FlexGrid.js +1 -1
  473. package/lib/components/Grid/Grid.js +1 -1
  474. package/lib/components/Grid/GridContext.js +1 -1
  475. package/lib/components/Grid/Row.js +1 -1
  476. package/lib/components/Heading/index.js +1 -1
  477. package/lib/components/Icon/Icon.Skeleton.js +1 -1
  478. package/lib/components/IconButton/index.js +1 -1
  479. package/lib/components/IdPrefix/index.js +1 -1
  480. package/lib/components/InlineCheckbox/InlineCheckbox.js +1 -1
  481. package/lib/components/InlineCheckbox/index.js +1 -1
  482. package/lib/components/InlineLoading/InlineLoading.js +1 -1
  483. package/lib/components/Layer/LayerContext.js +1 -1
  484. package/lib/components/Layer/index.js +1 -1
  485. package/lib/components/Layout/LayoutDirection.js +1 -1
  486. package/lib/components/Layout/LayoutDirectionContext.js +1 -1
  487. package/lib/components/Layout/useLayoutDirection.js +1 -1
  488. package/lib/components/Link/Link.js +1 -1
  489. package/lib/components/Link/index.js +1 -1
  490. package/lib/components/ListBox/ListBox.js +1 -1
  491. package/lib/components/ListBox/ListBoxField.js +1 -1
  492. package/lib/components/ListBox/ListBoxMenu.js +1 -1
  493. package/lib/components/ListBox/ListBoxMenuIcon.js +1 -1
  494. package/lib/components/ListBox/ListBoxMenuItem.d.ts +2 -2
  495. package/lib/components/ListBox/ListBoxMenuItem.js +1 -1
  496. package/lib/components/ListBox/ListBoxPropTypes.js +1 -1
  497. package/lib/components/ListBox/ListBoxSelection.js +1 -1
  498. package/lib/components/ListBox/index.js +1 -1
  499. package/lib/components/ListBox/next/ListBoxSelection.js +1 -1
  500. package/lib/components/ListBox/next/ListBoxTrigger.js +1 -1
  501. package/lib/components/ListItem/ListItem.js +1 -1
  502. package/lib/components/Loading/Loading.js +1 -1
  503. package/lib/components/Loading/index.js +1 -1
  504. package/lib/components/Menu/Menu.js +5 -5
  505. package/lib/components/Menu/MenuContext.js +4 -7
  506. package/lib/components/Menu/MenuItem.js +15 -11
  507. package/lib/components/Modal/Modal.js +1 -1
  508. package/lib/components/Modal/index.js +1 -1
  509. package/lib/components/ModalWrapper/ModalWrapper.js +1 -1
  510. package/lib/components/MultiSelect/FilterableMultiSelect.js +1 -1
  511. package/lib/components/MultiSelect/MultiSelect.d.ts +170 -0
  512. package/lib/components/MultiSelect/MultiSelect.js +110 -72
  513. package/lib/components/MultiSelect/MultiSelectPropTypes.js +1 -1
  514. package/lib/components/MultiSelect/index.js +1 -1
  515. package/lib/components/MultiSelect/tools/itemToString.js +1 -1
  516. package/lib/components/MultiSelect/tools/sorting.js +1 -1
  517. package/lib/components/Notification/Notification.js +1 -6
  518. package/lib/components/NumberInput/NumberInput.Skeleton.d.ts +1 -1
  519. package/lib/components/NumberInput/NumberInput.Skeleton.js +1 -1
  520. package/lib/components/NumberInput/NumberInput.d.ts +1 -1
  521. package/lib/components/NumberInput/NumberInput.js +3 -5
  522. package/lib/components/OrderedList/OrderedList.js +1 -1
  523. package/lib/components/OverflowMenu/OverflowMenu.js +1 -1
  524. package/lib/components/OverflowMenu/index.js +1 -1
  525. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +1 -1
  526. package/lib/components/OverflowMenuItem/index.js +1 -1
  527. package/lib/components/OverflowMenuV2/index.js +1 -1
  528. package/lib/components/Pagination/Pagination.Skeleton.js +1 -1
  529. package/lib/components/Pagination/Pagination.js +1 -1
  530. package/lib/components/Pagination/experimental/PageSelector.js +1 -1
  531. package/lib/components/Pagination/experimental/Pagination.js +1 -1
  532. package/lib/components/PaginationNav/PaginationNav.js +1 -1
  533. package/lib/components/Popover/index.d.ts +51 -0
  534. package/lib/components/Popover/index.js +29 -25
  535. package/lib/components/PrimaryButton/PrimaryButton.js +1 -1
  536. package/lib/components/ProgressBar/ProgressBar.js +1 -1
  537. package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +1 -1
  538. package/lib/components/ProgressIndicator/ProgressIndicator.js +1 -1
  539. package/lib/components/RadioButton/RadioButton.Skeleton.js +1 -1
  540. package/lib/components/RadioButton/RadioButton.js +1 -1
  541. package/lib/components/RadioButton/index.js +1 -1
  542. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  543. package/lib/components/RadioTile/RadioTile.js +1 -1
  544. package/lib/components/RadioTile/index.js +1 -1
  545. package/lib/components/Search/Search.Skeleton.js +1 -1
  546. package/lib/components/Search/Search.js +1 -1
  547. package/lib/components/Search/index.js +1 -1
  548. package/lib/components/SecondaryButton/SecondaryButton.js +1 -1
  549. package/lib/components/Select/Select.Skeleton.d.ts +1 -1
  550. package/lib/components/Select/Select.Skeleton.js +1 -1
  551. package/lib/components/Select/Select.js +1 -1
  552. package/lib/components/Select/index.js +1 -1
  553. package/lib/components/SelectItem/SelectItem.js +1 -1
  554. package/lib/components/SelectItem/index.js +1 -1
  555. package/lib/components/SelectItemGroup/SelectItemGroup.js +1 -1
  556. package/lib/components/SkeletonIcon/SkeletonIcon.js +1 -1
  557. package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +1 -1
  558. package/lib/components/SkeletonText/SkeletonText.js +1 -1
  559. package/lib/components/SkeletonText/index.js +1 -1
  560. package/lib/components/Slider/Slider.Skeleton.d.ts +3 -3
  561. package/lib/components/Slider/Slider.Skeleton.js +1 -1
  562. package/lib/components/Slider/Slider.d.ts +355 -0
  563. package/lib/components/Slider/Slider.js +63 -35
  564. package/lib/components/Slider/index.js +1 -1
  565. package/lib/components/Stack/Stack.js +1 -1
  566. package/lib/components/Stack/index.js +1 -1
  567. package/lib/components/StructuredList/StructuredList.Skeleton.js +1 -1
  568. package/lib/components/StructuredList/StructuredList.js +1 -1
  569. package/lib/components/Switch/Switch.js +1 -1
  570. package/lib/components/Tab/Tab.js +1 -1
  571. package/lib/components/Tab/index.js +1 -1
  572. package/lib/components/TabContent/TabContent.js +1 -1
  573. package/lib/components/Tabs/Tabs.Skeleton.js +1 -1
  574. package/lib/components/Tabs/Tabs.js +1 -1
  575. package/lib/components/Tabs/usePressable.js +1 -1
  576. package/lib/components/Tag/Tag.Skeleton.js +1 -1
  577. package/lib/components/Tag/Tag.js +1 -1
  578. package/lib/components/Text/Text.d.ts +1 -1
  579. package/lib/components/Text/Text.js +1 -1
  580. package/lib/components/Text/TextDirection.d.ts +1 -1
  581. package/lib/components/Text/TextDirection.js +1 -1
  582. package/lib/components/Text/TextDirectionContext.js +1 -1
  583. package/lib/components/Text/createTextComponent.d.ts +1 -1
  584. package/lib/components/Text/createTextComponent.js +1 -1
  585. package/lib/components/Text/index.d.ts +1 -1
  586. package/lib/components/Text/index.js +1 -1
  587. package/lib/components/TextArea/TextArea.Skeleton.js +1 -1
  588. package/lib/components/TextArea/TextArea.d.ts +95 -0
  589. package/lib/components/TextArea/TextArea.js +27 -28
  590. package/lib/components/TextArea/index.js +1 -1
  591. package/lib/components/TextInput/ControlledPasswordInput.js +1 -1
  592. package/lib/components/TextInput/PasswordInput.js +1 -1
  593. package/lib/components/TextInput/TextInput.Skeleton.js +1 -1
  594. package/lib/components/TextInput/TextInput.d.ts +106 -0
  595. package/lib/components/TextInput/TextInput.js +4 -3
  596. package/lib/components/TextInput/index.js +1 -1
  597. package/lib/components/TextInput/util.js +1 -1
  598. package/lib/components/Theme/index.js +1 -1
  599. package/lib/components/Tile/Tile.js +1 -1
  600. package/lib/components/TileGroup/TileGroup.js +1 -1
  601. package/lib/components/TileGroup/index.js +1 -1
  602. package/lib/components/TimePicker/TimePicker.d.ts +96 -0
  603. package/lib/components/TimePicker/TimePicker.js +8 -7
  604. package/lib/components/TimePickerSelect/TimePickerSelect.d.ts +33 -0
  605. package/lib/components/TimePickerSelect/TimePickerSelect.js +7 -8
  606. package/lib/components/TimePickerSelect/index.js +1 -1
  607. package/lib/components/Toggle/Toggle.Skeleton.js +1 -1
  608. package/lib/components/Toggle/Toggle.js +1 -1
  609. package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +1 -1
  610. package/lib/components/Toggletip/index.js +1 -1
  611. package/lib/components/Tooltip/DefinitionTooltip.js +1 -1
  612. package/lib/components/Tooltip/Tooltip.js +1 -1
  613. package/lib/components/TreeView/TreeNode.js +1 -1
  614. package/lib/components/TreeView/TreeView.js +1 -1
  615. package/lib/components/UIShell/Content.js +1 -1
  616. package/lib/components/UIShell/Header.js +1 -1
  617. package/lib/components/UIShell/HeaderContainer.js +1 -1
  618. package/lib/components/UIShell/HeaderGlobalAction.js +1 -1
  619. package/lib/components/UIShell/HeaderGlobalBar.js +1 -1
  620. package/lib/components/UIShell/HeaderMenu.js +1 -1
  621. package/lib/components/UIShell/HeaderMenuButton.js +1 -1
  622. package/lib/components/UIShell/HeaderMenuItem.js +1 -1
  623. package/lib/components/UIShell/HeaderName.js +1 -1
  624. package/lib/components/UIShell/HeaderNavigation.js +1 -1
  625. package/lib/components/UIShell/HeaderPanel.js +1 -1
  626. package/lib/components/UIShell/HeaderSideNavItems.js +1 -1
  627. package/lib/components/UIShell/Link.js +1 -1
  628. package/lib/components/UIShell/SideNav.js +1 -1
  629. package/lib/components/UIShell/SideNavDetails.js +1 -1
  630. package/lib/components/UIShell/SideNavDivider.js +1 -1
  631. package/lib/components/UIShell/SideNavFooter.js +1 -1
  632. package/lib/components/UIShell/SideNavHeader.js +1 -1
  633. package/lib/components/UIShell/SideNavIcon.js +1 -1
  634. package/lib/components/UIShell/SideNavItem.js +1 -1
  635. package/lib/components/UIShell/SideNavItems.js +1 -1
  636. package/lib/components/UIShell/SideNavLink.js +1 -1
  637. package/lib/components/UIShell/SideNavLinkText.js +1 -1
  638. package/lib/components/UIShell/SideNavMenu.js +1 -1
  639. package/lib/components/UIShell/SideNavMenuItem.js +1 -1
  640. package/lib/components/UIShell/SideNavSwitcher.js +1 -1
  641. package/lib/components/UIShell/SkipToContent.js +1 -1
  642. package/lib/components/UIShell/Switcher.js +1 -1
  643. package/lib/components/UIShell/SwitcherDivider.js +1 -1
  644. package/lib/components/UIShell/SwitcherItem.js +1 -1
  645. package/lib/components/UIShell/_utils.js +1 -1
  646. package/lib/components/UnorderedList/UnorderedList.js +1 -1
  647. package/lib/feature-flags.js +1 -1
  648. package/lib/index.d.ts +1 -1
  649. package/lib/index.js +1 -1
  650. package/lib/internal/ClickListener.js +1 -1
  651. package/lib/internal/FloatingMenu.js +1 -1
  652. package/lib/internal/OptimizedResize.js +1 -1
  653. package/lib/internal/Selection.js +1 -1
  654. package/lib/internal/createClassWrapper.js +1 -1
  655. package/lib/internal/deprecateFieldOnObject.js +1 -1
  656. package/lib/internal/environment.js +1 -1
  657. package/lib/internal/focus/index.js +1 -1
  658. package/lib/internal/keyboard/keys.js +1 -1
  659. package/lib/internal/keyboard/match.js +1 -1
  660. package/lib/internal/keyboard/navigation.js +1 -1
  661. package/lib/internal/useAnnouncer.js +1 -1
  662. package/lib/internal/useControllableState.js +1 -1
  663. package/lib/internal/useDelayedState.js +1 -1
  664. package/lib/internal/useEffectOnce.js +1 -1
  665. package/lib/internal/useEvent.js +1 -1
  666. package/lib/internal/useId.js +1 -1
  667. package/lib/internal/useIdPrefix.js +1 -1
  668. package/lib/internal/useIsomorphicEffect.js +1 -1
  669. package/lib/internal/useMergedRefs.d.ts +13 -0
  670. package/lib/internal/useMergedRefs.js +3 -6
  671. package/lib/internal/useNoInteractiveChildren.js +1 -1
  672. package/lib/internal/useNormalizedInputProps.js +2 -1
  673. package/lib/internal/usePrefix.d.ts +1 -1
  674. package/lib/internal/usePrefix.js +1 -1
  675. package/lib/internal/useSavedCallback.js +1 -1
  676. package/lib/internal/warning.js +1 -1
  677. package/lib/internal/wrapFocus.js +1 -1
  678. package/lib/prop-types/AriaPropTypes.js +1 -1
  679. package/lib/prop-types/deprecate.js +1 -1
  680. package/lib/prop-types/isRequiredOneOf.js +2 -2
  681. package/lib/prop-types/requiredIfGivenPropIsTruthy.js +1 -1
  682. package/lib/prop-types/types.js +1 -1
  683. package/lib/tools/array.js +1 -1
  684. package/lib/tools/events.js +1 -1
  685. package/lib/tools/mergeRefs.js +1 -1
  686. package/lib/tools/setupGetInstanceId.js +1 -1
  687. package/lib/tools/toggleClass.js +1 -1
  688. package/lib/tools/uniqueId.js +1 -1
  689. package/lib/tools/wrapComponent.js +1 -1
  690. package/package.json +10 -10
  691. package/scss/_breakpoint.scss +1 -1
  692. package/scss/_colors.scss +1 -1
  693. package/scss/_config.scss +1 -1
  694. package/scss/_feature-flags.scss +1 -1
  695. package/scss/_layer.scss +1 -1
  696. package/scss/_motion.scss +1 -1
  697. package/scss/_reset.scss +1 -1
  698. package/scss/_spacing.scss +1 -1
  699. package/scss/_theme.scss +1 -1
  700. package/scss/_themes.scss +1 -1
  701. package/scss/_zone.scss +1 -1
  702. package/scss/compat/_theme.scss +1 -1
  703. package/scss/compat/_themes.scss +1 -1
  704. package/scss/components/_index.scss +1 -1
  705. package/scss/components/accordion/_accordion.scss +1 -1
  706. package/scss/components/accordion/_index.scss +1 -1
  707. package/scss/components/aspect-ratio/_aspect-ratio.scss +1 -1
  708. package/scss/components/aspect-ratio/_index.scss +1 -1
  709. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  710. package/scss/components/breadcrumb/_index.scss +1 -1
  711. package/scss/components/button/_button.scss +1 -1
  712. package/scss/components/button/_index.scss +1 -1
  713. package/scss/components/button/_tokens.scss +1 -1
  714. package/scss/components/checkbox/_checkbox.scss +1 -1
  715. package/scss/components/checkbox/_index.scss +1 -1
  716. package/scss/components/code-snippet/_code-snippet.scss +1 -1
  717. package/scss/components/code-snippet/_index.scss +1 -1
  718. package/scss/components/combo-box/_combo-box.scss +1 -1
  719. package/scss/components/combo-box/_index.scss +1 -1
  720. package/scss/components/content-switcher/_content-switcher.scss +1 -1
  721. package/scss/components/content-switcher/_index.scss +1 -1
  722. package/scss/components/copy-button/_copy-button.scss +1 -1
  723. package/scss/components/copy-button/_index.scss +1 -1
  724. package/scss/components/data-table/_data-table.scss +1 -1
  725. package/scss/components/data-table/_index.scss +1 -1
  726. package/scss/components/data-table/action/_data-table-action.scss +1 -1
  727. package/scss/components/data-table/action/_index.scss +1 -1
  728. package/scss/components/data-table/expandable/_data-table-expandable.scss +1 -1
  729. package/scss/components/data-table/expandable/_index.scss +1 -1
  730. package/scss/components/data-table/skeleton/_data-table-skeleton.scss +1 -1
  731. package/scss/components/data-table/skeleton/_index.scss +1 -1
  732. package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
  733. package/scss/components/data-table/sort/_index.scss +1 -1
  734. package/scss/components/date-picker/_date-picker.scss +1 -1
  735. package/scss/components/date-picker/_index.scss +1 -1
  736. package/scss/components/dropdown/_dropdown.scss +1 -1
  737. package/scss/components/dropdown/_index.scss +1 -1
  738. package/scss/components/file-uploader/_file-uploader.scss +1 -1
  739. package/scss/components/file-uploader/_index.scss +1 -1
  740. package/scss/components/fluid-combo-box/_fluid-combo-box.scss +1 -1
  741. package/scss/components/fluid-combo-box/_index.scss +1 -1
  742. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +1 -1
  743. package/scss/components/fluid-date-picker/_index.scss +1 -1
  744. package/scss/components/fluid-dropdown/_fluid-dropdown.scss +1 -1
  745. package/scss/components/fluid-dropdown/_index.scss +1 -1
  746. package/scss/components/fluid-list-box/_fluid-list-box.scss +1 -1
  747. package/scss/components/fluid-list-box/_index.scss +1 -1
  748. package/scss/components/fluid-multiselect/_fluid-multiselect.scss +1 -1
  749. package/scss/components/fluid-multiselect/_index.scss +1 -1
  750. package/scss/components/fluid-number-input/_fluid-number-input.scss +1 -1
  751. package/scss/components/fluid-number-input/_index.scss +1 -1
  752. package/scss/components/fluid-search/_fluid-search.scss +1 -1
  753. package/scss/components/fluid-search/_index.scss +1 -1
  754. package/scss/components/fluid-select/_fluid-select.scss +1 -1
  755. package/scss/components/fluid-select/_index.scss +1 -1
  756. package/scss/components/fluid-text-area/_fluid-text-area.scss +1 -1
  757. package/scss/components/fluid-text-area/_index.scss +1 -1
  758. package/scss/components/fluid-text-input/_fluid-text-input.scss +1 -1
  759. package/scss/components/fluid-text-input/_index.scss +1 -1
  760. package/scss/components/fluid-time-picker/_fluid-time-picker.scss +1 -1
  761. package/scss/components/fluid-time-picker/_index.scss +1 -1
  762. package/scss/components/form/_form.scss +1 -1
  763. package/scss/components/form/_index.scss +1 -1
  764. package/scss/components/inline-loading/_index.scss +1 -1
  765. package/scss/components/inline-loading/_inline-loading.scss +1 -1
  766. package/scss/components/link/_index.scss +1 -1
  767. package/scss/components/link/_link.scss +1 -1
  768. package/scss/components/list/_index.scss +1 -1
  769. package/scss/components/list/_list.scss +1 -1
  770. package/scss/components/list-box/_index.scss +1 -1
  771. package/scss/components/list-box/_list-box.scss +1 -1
  772. package/scss/components/loading/_index.scss +1 -1
  773. package/scss/components/loading/_loading.scss +1 -1
  774. package/scss/components/menu/_index.scss +1 -1
  775. package/scss/components/menu/_menu.scss +1 -1
  776. package/scss/components/modal/_index.scss +1 -1
  777. package/scss/components/modal/_modal.scss +1 -1
  778. package/scss/components/multiselect/_index.scss +1 -1
  779. package/scss/components/multiselect/_multiselect.scss +1 -1
  780. package/scss/components/notification/_actionable-notification.scss +1 -1
  781. package/scss/components/notification/_index.scss +1 -1
  782. package/scss/components/notification/_inline-notification.scss +1 -1
  783. package/scss/components/notification/_toast-notification.scss +1 -1
  784. package/scss/components/notification/_tokens.scss +1 -1
  785. package/scss/components/number-input/_index.scss +1 -1
  786. package/scss/components/number-input/_number-input.scss +1 -1
  787. package/scss/components/overflow-menu/_index.scss +1 -1
  788. package/scss/components/overflow-menu/_overflow-menu.scss +1 -1
  789. package/scss/components/pagination/_index.scss +1 -1
  790. package/scss/components/pagination/_pagination.scss +1 -1
  791. package/scss/components/pagination/_unstable_pagination.scss +1 -1
  792. package/scss/components/pagination-nav/_index.scss +1 -1
  793. package/scss/components/pagination-nav/_pagination-nav.scss +1 -1
  794. package/scss/components/popover/_index.scss +1 -1
  795. package/scss/components/popover/_popover.scss +1 -1
  796. package/scss/components/progress-bar/_index.scss +1 -1
  797. package/scss/components/progress-bar/_progress-bar.scss +1 -1
  798. package/scss/components/progress-indicator/_index.scss +1 -1
  799. package/scss/components/progress-indicator/_progress-indicator.scss +1 -1
  800. package/scss/components/radio-button/_index.scss +1 -1
  801. package/scss/components/radio-button/_radio-button.scss +1 -1
  802. package/scss/components/search/_index.scss +1 -1
  803. package/scss/components/search/_search.scss +1 -1
  804. package/scss/components/select/_index.scss +1 -1
  805. package/scss/components/select/_select.scss +1 -1
  806. package/scss/components/skeleton-styles/_index.scss +1 -1
  807. package/scss/components/skeleton-styles/_skeleton-styles.scss +1 -1
  808. package/scss/components/slider/_index.scss +1 -1
  809. package/scss/components/slider/_slider.scss +1 -1
  810. package/scss/components/stack/_index.scss +1 -1
  811. package/scss/components/stack/_stack.scss +1 -1
  812. package/scss/components/structured-list/_index.scss +1 -1
  813. package/scss/components/structured-list/_structured-list.scss +1 -1
  814. package/scss/components/tabs/_index.scss +1 -1
  815. package/scss/components/tabs/_tabs.scss +1 -1
  816. package/scss/components/tag/_index.scss +1 -1
  817. package/scss/components/tag/_tag.scss +1 -1
  818. package/scss/components/tag/_tokens.scss +1 -1
  819. package/scss/components/text-area/_index.scss +1 -1
  820. package/scss/components/text-area/_text-area.scss +1 -1
  821. package/scss/components/text-input/_index.scss +1 -1
  822. package/scss/components/text-input/_text-input.scss +1 -1
  823. package/scss/components/tile/_index.scss +1 -1
  824. package/scss/components/tile/_tile.scss +1 -1
  825. package/scss/components/time-picker/_index.scss +1 -1
  826. package/scss/components/time-picker/_time-picker.scss +1 -1
  827. package/scss/components/toggle/_index.scss +1 -1
  828. package/scss/components/toggle/_toggle.scss +1 -1
  829. package/scss/components/toggletip/_index.scss +1 -1
  830. package/scss/components/toggletip/_toggletip.scss +1 -1
  831. package/scss/components/tooltip/_index.scss +1 -1
  832. package/scss/components/tooltip/_tooltip.scss +1 -1
  833. package/scss/components/treeview/_index.scss +1 -1
  834. package/scss/components/treeview/_treeview.scss +1 -1
  835. package/scss/components/ui-shell/_index.scss +1 -1
  836. package/scss/components/ui-shell/_ui-shell.scss +1 -1
  837. package/scss/components/ui-shell/content/_content.scss +1 -1
  838. package/scss/components/ui-shell/content/_index.scss +1 -1
  839. package/scss/components/ui-shell/header/_header.scss +1 -1
  840. package/scss/components/ui-shell/header/_index.scss +1 -1
  841. package/scss/components/ui-shell/header-panel/_header-panel.scss +1 -1
  842. package/scss/components/ui-shell/header-panel/_index.scss +1 -1
  843. package/scss/components/ui-shell/side-nav/_index.scss +1 -1
  844. package/scss/components/ui-shell/side-nav/_side-nav.scss +1 -1
  845. package/scss/components/ui-shell/switcher/_index.scss +1 -1
  846. package/scss/components/ui-shell/switcher/_switcher.scss +1 -1
  847. package/scss/fonts/_index.scss +1 -1
  848. package/scss/fonts/_mono.scss +1 -1
  849. package/scss/fonts/_sans-arabic.scss +1 -1
  850. package/scss/fonts/_sans-devanagari.scss +1 -1
  851. package/scss/fonts/_sans-hebrew.scss +1 -1
  852. package/scss/fonts/_sans-thai-looped.scss +1 -1
  853. package/scss/fonts/_sans-thai.scss +1 -1
  854. package/scss/fonts/_sans.scss +1 -1
  855. package/scss/fonts/_serif.scss +1 -1
  856. package/scss/fonts/_src.scss +1 -1
  857. package/scss/grid/_css-grid.scss +1 -1
  858. package/scss/grid/_flexbox.scss +1 -1
  859. package/scss/grid/_index.scss +1 -1
  860. package/scss/grid/_mixins.scss +1 -1
  861. package/scss/type/_index.scss +1 -1
  862. package/scss/type/_reset.scss +1 -1
  863. package/scss/utilities/_box-shadow.scss +1 -1
  864. package/scss/utilities/_button-reset.scss +1 -1
  865. package/scss/utilities/_component-reset.scss +1 -1
  866. package/scss/utilities/_component-tokens.scss +1 -1
  867. package/scss/utilities/_convert.scss +1 -1
  868. package/scss/utilities/_custom-property.scss +1 -1
  869. package/scss/utilities/_focus-outline.scss +1 -1
  870. package/scss/utilities/_hide-at-breakpoint.scss +1 -1
  871. package/scss/utilities/_high-contrast-mode.scss +1 -1
  872. package/scss/utilities/_index.scss +1 -1
  873. package/scss/utilities/_keyframes.scss +1 -1
  874. package/scss/utilities/_placeholder-colors.scss +1 -1
  875. package/scss/utilities/_rotate.scss +1 -1
  876. package/scss/utilities/_skeleton.scss +1 -1
  877. package/scss/utilities/_text-overflow.scss +1 -1
  878. package/scss/utilities/_text-truncate.scss +1 -1
  879. package/scss/utilities/_visually-hidden.scss +1 -1
  880. package/scss/utilities/_z-index.scss +1 -1
@@ -0,0 +1,355 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
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
+ import React, { KeyboardEventHandler, PureComponent } from 'react';
8
+ import PropTypes, { ReactNodeLike } from 'prop-types';
9
+ type ExcludedAttributes = 'onChange' | 'onBlur';
10
+ export interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, ExcludedAttributes> {
11
+ /**
12
+ * The `ariaLabel` for the `<input>`.
13
+ */
14
+ ariaLabelInput?: string;
15
+ /**
16
+ * The child nodes.
17
+ */
18
+ children?: ReactNodeLike;
19
+ /**
20
+ * The CSS class name for the slider.
21
+ */
22
+ className?: string;
23
+ /**
24
+ * `true` to disable this slider.
25
+ */
26
+ disabled?: boolean;
27
+ /**
28
+ * The callback to format the label associated with the minimum/maximum value.
29
+ */
30
+ formatLabel?: (value: number, label: string | undefined) => string;
31
+ /**
32
+ * `true` to hide the number input box.
33
+ */
34
+ hideTextInput?: boolean;
35
+ /**
36
+ * The ID of the `<input>`.
37
+ */
38
+ id?: string;
39
+ /**
40
+ * The `type` attribute of the `<input>`.
41
+ */
42
+ inputType?: string;
43
+ /**
44
+ * `true` to specify if the control is invalid.
45
+ */
46
+ invalid?: boolean;
47
+ /**
48
+ * The label for the slider.
49
+ */
50
+ labelText?: ReactNodeLike;
51
+ /**
52
+ * @deprecated
53
+ * `true` to use the light version.
54
+ */
55
+ light?: boolean;
56
+ /**
57
+ * The maximum value.
58
+ */
59
+ max: number;
60
+ /**
61
+ * The label associated with the maximum value.
62
+ */
63
+ maxLabel?: string;
64
+ /**
65
+ * The minimum value.
66
+ */
67
+ min: number;
68
+ /**
69
+ * The label associated with the minimum value.
70
+ */
71
+ minLabel?: string;
72
+ /**
73
+ * The `name` attribute of the `<input>`.
74
+ */
75
+ name?: string;
76
+ /**
77
+ * Provide an optional function to be called when the input element
78
+ * loses focus
79
+ */
80
+ onBlur?: (data: {
81
+ value: string;
82
+ }) => void;
83
+ /**
84
+ * The callback to get notified of change in value.
85
+ * `({ value}) => void`
86
+ // * @param {{ value }}
87
+ */
88
+ onChange?: (data: {
89
+ value: SliderProps['value'];
90
+ }) => void;
91
+ /**
92
+ * Provide an optional function to be called when a key is pressed in the number input
93
+ */
94
+ onInputKeyUp?: KeyboardEventHandler<HTMLInputElement>;
95
+ /**
96
+ * The callback to get notified of value on handle release.
97
+ */
98
+ onRelease?: (data: {
99
+ value: SliderProps['value'];
100
+ }) => void;
101
+ /**
102
+ * Whether the slider should be read-only
103
+ */
104
+ readOnly?: boolean;
105
+ /**
106
+ * `true` to specify if the control is required.
107
+ */
108
+ required?: boolean;
109
+ /**
110
+ * A value determining how much the value should increase/decrease by moving the thumb by mouse. If a value other than 1 is provided and the input is *not* hidden, the new step requirement should be added to a visible label. Values outside of the `step` increment will be considered invalid.
111
+ */
112
+ step?: number;
113
+ /**
114
+ * A value determining how much the value should increase/decrease by Shift+arrow keys,
115
+ * which will be `(max - min) / stepMultiplier`.
116
+ */
117
+ stepMultiplier?: number;
118
+ /**
119
+ * The value.
120
+ */
121
+ value: number;
122
+ }
123
+ interface CalcValueProps {
124
+ clientX?: number;
125
+ value?: number;
126
+ useRawValue?: boolean;
127
+ }
128
+ export default class Slider extends PureComponent<SliderProps> {
129
+ static propTypes: {
130
+ /**
131
+ * The `ariaLabel` for the `<input>`.
132
+ */
133
+ ariaLabelInput: PropTypes.Requireable<string>;
134
+ /**
135
+ * The child nodes.
136
+ */
137
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
138
+ /**
139
+ * The CSS class name for the slider.
140
+ */
141
+ className: PropTypes.Requireable<string>;
142
+ /**
143
+ * `true` to disable this slider.
144
+ */
145
+ disabled: PropTypes.Requireable<boolean>;
146
+ /**
147
+ * The callback to format the label associated with the minimum/maximum value.
148
+ */
149
+ formatLabel: PropTypes.Requireable<(...args: any[]) => any>;
150
+ /**
151
+ * `true` to hide the number input box.
152
+ */
153
+ hideTextInput: PropTypes.Requireable<boolean>;
154
+ /**
155
+ * The ID of the `<input>`.
156
+ */
157
+ id: PropTypes.Requireable<string>;
158
+ /**
159
+ * The `type` attribute of the `<input>`.
160
+ */
161
+ inputType: PropTypes.Requireable<string>;
162
+ /**
163
+ * `true` to specify if the control is invalid.
164
+ */
165
+ invalid: PropTypes.Requireable<boolean>;
166
+ /**
167
+ * The label for the slider.
168
+ */
169
+ labelText: PropTypes.Requireable<PropTypes.ReactNodeLike>;
170
+ /**
171
+ * `true` to use the light version.
172
+ */
173
+ light: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
174
+ /**
175
+ * The maximum value.
176
+ */
177
+ max: PropTypes.Validator<number>;
178
+ /**
179
+ * The label associated with the maximum value.
180
+ */
181
+ maxLabel: PropTypes.Requireable<string>;
182
+ /**
183
+ * The minimum value.
184
+ */
185
+ min: PropTypes.Validator<number>;
186
+ /**
187
+ * The label associated with the minimum value.
188
+ */
189
+ minLabel: PropTypes.Requireable<string>;
190
+ /**
191
+ * The `name` attribute of the `<input>`.
192
+ */
193
+ name: PropTypes.Requireable<string>;
194
+ /**
195
+ * Provide an optional function to be called when the input element
196
+ * loses focus
197
+ */
198
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
199
+ /**
200
+ * The callback to get notified of change in value.
201
+ */
202
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
203
+ /**
204
+ * Provide an optional function to be called when a key is pressed in the number input
205
+ */
206
+ onInputKeyUp: PropTypes.Requireable<(...args: any[]) => any>;
207
+ /**
208
+ * The callback to get notified of value on handle release.
209
+ */
210
+ onRelease: PropTypes.Requireable<(...args: any[]) => any>;
211
+ /**
212
+ * Whether the slider should be read-only
213
+ */
214
+ readOnly: PropTypes.Requireable<boolean>;
215
+ /**
216
+ * `true` to specify if the control is required.
217
+ */
218
+ required: PropTypes.Requireable<boolean>;
219
+ /**
220
+ * A value determining how much the value should increase/decrease by moving the thumb by mouse. If a value other than 1 is provided and the input is *not* hidden, the new step requirement should be added to a visible label. Values outside of the `step` increment will be considered invalid.
221
+ */
222
+ step: PropTypes.Requireable<number>;
223
+ /**
224
+ * A value determining how much the value should increase/decrease by Shift+arrow keys,
225
+ * which will be `(max - min) / stepMultiplier`.
226
+ */
227
+ stepMultiplier: PropTypes.Requireable<number>;
228
+ /**
229
+ * The value.
230
+ */
231
+ value: PropTypes.Validator<number>;
232
+ };
233
+ static defaultProps: {
234
+ hideTextInput: boolean;
235
+ step: number;
236
+ stepMultiplier: number;
237
+ disabled: boolean;
238
+ minLabel: string;
239
+ maxLabel: string;
240
+ inputType: string;
241
+ ariaLabelInput: string | undefined;
242
+ readOnly: boolean;
243
+ };
244
+ static contextType: React.Context<any>;
245
+ state: {
246
+ value: number;
247
+ left: number;
248
+ needsOnRelease: boolean;
249
+ isValid: boolean;
250
+ };
251
+ thumbRef: React.RefObject<HTMLDivElement>;
252
+ filledTrackRef: React.RefObject<HTMLDivElement>;
253
+ element: HTMLDivElement | null;
254
+ inputId: string;
255
+ track: HTMLDivElement | null | undefined;
256
+ constructor(props: any);
257
+ /**
258
+ * Sets up initial slider position and value in response to component mount.
259
+ */
260
+ componentDidMount(): void;
261
+ /**
262
+ * Handles firing of `onChange` and `onRelease` callbacks to parent in
263
+ * response to state changes.
264
+ *
265
+ * @param {*} prevProps prevProps
266
+ * @param {*} prevState The previous Slider state, used to see if callbacks
267
+ * should be called.
268
+ */
269
+ componentDidUpdate(prevProps: any, prevState: any): void;
270
+ /**
271
+ * Synonymous to ECMA2017+ `Math.clamp`.
272
+ *
273
+ * @param {number} val
274
+ * @param {number} min
275
+ * @param {number} max
276
+ *
277
+ * @returns `val` if `max>=val>=min`; `min` if `val<min`; `max` if `val>max`.
278
+ */
279
+ clamp(val: any, min: any, max: any): number;
280
+ /**
281
+ * Sets up "drag" event handlers and calls `this.onDrag` in case dragging
282
+ * started on somewhere other than the thumb without a corresponding "move"
283
+ * event.
284
+ *
285
+ * @param {Event} evt The event.
286
+ */
287
+ onDragStart: (evt: any) => void;
288
+ /**
289
+ * Unregisters "drag" and "drag stop" event handlers and calls sets the flag
290
+ * indicating that the `onRelease` callback should be called.
291
+ */
292
+ onDragStop: () => void;
293
+ /**
294
+ * Handles a "drag" event by recalculating the value/thumb and setting state
295
+ * accordingly.
296
+ *
297
+ * @param {Event} evt The event.
298
+ */
299
+ _onDrag: (evt: any) => void;
300
+ /**
301
+ * Throttles calls to `this._onDrag` by limiting events to being processed at
302
+ * most once every `EVENT_THROTTLE` milliseconds.
303
+ */
304
+ onDrag: any;
305
+ /**
306
+ * Handles a `keydown` event by recalculating the value/thumb and setting
307
+ * state accordingly.
308
+ *
309
+ * @param {Event} evt The event.
310
+ */
311
+ onKeyDown: (evt: any) => void;
312
+ /**
313
+ * Provides the two-way binding for the input field of the Slider. It also
314
+ * Handles a change to the input field by recalculating the value/thumb and
315
+ * setting state accordingly.
316
+ *
317
+ * @param {Event} evt The event.
318
+ */
319
+ onChange: (evt: any) => void;
320
+ /**
321
+ * Checks for validity of input value after clicking out of the input. It also
322
+ * Handles state change to isValid state.
323
+ *
324
+ * @param {Event} evt The event.
325
+ */
326
+ onBlur: (evt: React.FocusEvent<HTMLInputElement>) => void;
327
+ /**
328
+ * Calculates a new Slider `value` and `left` (thumb offset) given a `clientX`,
329
+ * `value`, or neither of those.
330
+ * - If `clientX` is specified, it will be used in
331
+ * conjunction with the Slider's bounding rectangle to calculate the new
332
+ * values.
333
+ * - If `clientX` is not specified and `value` is, it will be used to
334
+ * calculate new values as though it were the current value of the Slider.
335
+ * - If neither `clientX` nor `value` are specified, `this.props.value` will
336
+ * be used to calculate the new values as though it were the current value
337
+ * of the Slider.
338
+ *
339
+ * @param {object} params
340
+ * @param {number} [params.clientX] Optional clientX value expected to be from
341
+ * an event fired by one of the Slider's `DRAG_EVENT_TYPES` events.
342
+ * @param {number} [params.value] Optional value use during calculations if
343
+ * clientX is not provided.
344
+ * @param {boolean} [params.useRawValue=false] `true` to use the given value as-is.
345
+ */
346
+ calcValue: ({ clientX, value, useRawValue }: CalcValueProps) => {
347
+ value: number | undefined;
348
+ left: number;
349
+ };
350
+ static getDerivedStateFromProps(props: any, state: any): {
351
+ isValid: boolean;
352
+ } | null;
353
+ render(): JSX.Element;
354
+ }
355
+ export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -89,6 +89,16 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
89
89
  isValid: true
90
90
  });
91
91
 
92
+ _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "thumbRef", void 0);
93
+
94
+ _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "filledTrackRef", void 0);
95
+
96
+ _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "element", null);
97
+
98
+ _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "inputId", '');
99
+
100
+ _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "track", void 0);
101
+
92
102
  _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "onDragStart", function (evt) {
93
103
  // Do nothing if component is disabled
94
104
  if (_this.props.disabled || _this.props.readOnly) {
@@ -97,11 +107,15 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
97
107
 
98
108
 
99
109
  DRAG_STOP_EVENT_TYPES.forEach(function (element) {
100
- _this.element.ownerDocument.addEventListener(element, _this.onDragStop);
110
+ var _this$element;
111
+
112
+ (_this$element = _this.element) === null || _this$element === void 0 ? void 0 : _this$element.ownerDocument.addEventListener(element, _this.onDragStop);
101
113
  }); // Register drag handlers
102
114
 
103
115
  DRAG_EVENT_TYPES.forEach(function (element) {
104
- _this.element.ownerDocument.addEventListener(element, _this.onDrag);
116
+ var _this$element2;
117
+
118
+ (_this$element2 = _this.element) === null || _this$element2 === void 0 ? void 0 : _this$element2.ownerDocument.addEventListener(element, _this.onDrag);
105
119
  }); // Perform first recalculation since we probably didn't click exactly in the
106
120
  // middle of the thumb
107
121
 
@@ -116,11 +130,15 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
116
130
 
117
131
 
118
132
  DRAG_STOP_EVENT_TYPES.forEach(function (element) {
119
- _this.element.ownerDocument.removeEventListener(element, _this.onDragStop);
133
+ var _this$element3;
134
+
135
+ (_this$element3 = _this.element) === null || _this$element3 === void 0 ? void 0 : _this$element3.ownerDocument.removeEventListener(element, _this.onDragStop);
120
136
  }); // Remove drag handlers
121
137
 
122
138
  DRAG_EVENT_TYPES.forEach(function (element) {
123
- _this.element.ownerDocument.removeEventListener(element, _this.onDrag);
139
+ var _this$element4;
140
+
141
+ (_this$element4 = _this.element) === null || _this$element4 === void 0 ? void 0 : _this$element4.ownerDocument.removeEventListener(element, _this.onDrag);
124
142
  }); // Set needsOnRelease flag so event fires on next update
125
143
 
126
144
  _this.setState({
@@ -165,18 +183,23 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
165
183
  }));
166
184
 
167
185
  _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "onKeyDown", function (evt) {
186
+ var _this$props$step3, _this$props$step4, _this$props$step5, _this$props$step6;
187
+
168
188
  // Do nothing if component is disabled or we don't have a valid event
169
189
  if (_this.props.disabled || _this.props.readOnly || !('which' in evt)) {
170
190
  return;
171
191
  }
172
192
 
173
- var which = Number.parseInt(evt.which);
174
193
  var delta = 0;
175
194
 
176
- if (match.matches(which, [keys.ArrowDown, keys.ArrowLeft])) {
177
- delta = -_this.props.step;
178
- } else if (match.matches(which, [keys.ArrowUp, keys.ArrowRight])) {
179
- delta = _this.props.step;
195
+ if (match.matches(evt.which, [keys.ArrowDown, keys.ArrowLeft])) {
196
+ var _this$props$step;
197
+
198
+ delta = -((_this$props$step = _this.props.step) !== null && _this$props$step !== void 0 ? _this$props$step : Slider.defaultProps.step);
199
+ } else if (match.matches(evt.which, [keys.ArrowUp, keys.ArrowRight])) {
200
+ var _this$props$step2;
201
+
202
+ delta = (_this$props$step2 = _this.props.step) !== null && _this$props$step2 !== void 0 ? _this$props$step2 : Slider.defaultProps.step;
180
203
  } else {
181
204
  // Ignore keys we don't want to handle
182
205
  return;
@@ -185,15 +208,15 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
185
208
 
186
209
  if (evt.shiftKey) {
187
210
  var stepMultiplier = _this.props.stepMultiplier;
188
- delta *= stepMultiplier;
211
+ delta *= stepMultiplier !== null && stepMultiplier !== void 0 ? stepMultiplier : Slider.defaultProps.stepMultiplier;
189
212
  }
190
213
 
191
- Math.floor(_this.state.value / _this.props.step) * _this.props.step;
214
+ Math.floor(_this.state.value / ((_this$props$step3 = _this.props.step) !== null && _this$props$step3 !== void 0 ? _this$props$step3 : Slider.defaultProps.step)) * ((_this$props$step4 = _this.props.step) !== null && _this$props$step4 !== void 0 ? _this$props$step4 : Slider.defaultProps.step);
192
215
 
193
216
  var _this$calcValue2 = _this.calcValue({
194
217
  // Ensures custom value from `<input>` won't cause skipping next stepping point with right arrow key,
195
218
  // e.g. Typing 51 in `<input>`, moving focus onto the thumb and the hitting right arrow key should yield 52 instead of 54
196
- value: (delta > 0 ? Math.floor(_this.state.value / _this.props.step) * _this.props.step : _this.state.value) + delta
219
+ value: (delta > 0 ? Math.floor(_this.state.value / ((_this$props$step5 = _this.props.step) !== null && _this$props$step5 !== void 0 ? _this$props$step5 : Slider.defaultProps.step)) * ((_this$props$step6 = _this.props.step) !== null && _this$props$step6 !== void 0 ? _this$props$step6 : Slider.defaultProps.step) : _this.state.value) + delta
197
220
  }),
198
221
  value = _this$calcValue2.value,
199
222
  left = _this$calcValue2.left;
@@ -227,11 +250,11 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
227
250
  value: targetValue,
228
251
  useRawValue: true
229
252
  }),
230
- value = _this$calcValue3.value,
253
+ _value = _this$calcValue3.value,
231
254
  left = _this$calcValue3.left;
232
255
 
233
256
  _this.setState({
234
- value: value,
257
+ value: _value,
235
258
  left: left
236
259
  });
237
260
  }
@@ -259,18 +282,16 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
259
282
  });
260
283
 
261
284
  _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.assertThisInitialized(_this), "calcValue", function (_ref) {
262
- var _ref$clientX = _ref.clientX,
263
- clientX = _ref$clientX === void 0 ? null : _ref$clientX,
264
- _ref$value = _ref.value,
265
- value = _ref$value === void 0 ? null : _ref$value,
285
+ var _this$element5, _this$element5$getBou, _this$props$step7, _this$props$step8;
286
+
287
+ var clientX = _ref.clientX,
288
+ value = _ref.value,
266
289
  _ref$useRawValue = _ref.useRawValue,
267
290
  useRawValue = _ref$useRawValue === void 0 ? false : _ref$useRawValue;
268
291
  var range = _this.props.max - _this.props.min;
269
-
270
- var boundingRect = _this.element.getBoundingClientRect();
271
-
272
- var totalSteps = range / _this.props.step;
273
- var width = boundingRect.right - boundingRect.left; // Enforce a minimum width of at least 1 for calculations
292
+ var boundingRect = (_this$element5 = _this.element) === null || _this$element5 === void 0 ? void 0 : (_this$element5$getBou = _this$element5.getBoundingClientRect) === null || _this$element5$getBou === void 0 ? void 0 : _this$element5$getBou.call(_this$element5);
293
+ var totalSteps = range / ((_this$props$step7 = _this.props.step) !== null && _this$props$step7 !== void 0 ? _this$props$step7 : Slider.defaultProps.step);
294
+ var width = boundingRect ? boundingRect.right - boundingRect.left : 0; // Enforce a minimum width of at least 1 for calculations
274
295
 
275
296
  if (width <= 0) {
276
297
  width = 1;
@@ -281,7 +302,9 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
281
302
  var leftPercent;
282
303
 
283
304
  if (clientX != null) {
284
- var leftOffset = clientX - boundingRect.left;
305
+ var _boundingRect$left;
306
+
307
+ var leftOffset = clientX - ((_boundingRect$left = boundingRect === null || boundingRect === void 0 ? void 0 : boundingRect.left) !== null && _boundingRect$left !== void 0 ? _boundingRect$left : 0);
285
308
  leftPercent = leftOffset / width;
286
309
  } else {
287
310
  if (value == null) {
@@ -300,7 +323,7 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
300
323
  };
301
324
  }
302
325
 
303
- var steppedValue = Math.round(leftPercent * totalSteps) * _this.props.step;
326
+ var steppedValue = Math.round(leftPercent * totalSteps) * ((_this$props$step8 = _this.props.step) !== null && _this$props$step8 !== void 0 ? _this$props$step8 : Slider.defaultProps.step);
304
327
 
305
328
  var steppedPercent = _this.clamp(steppedValue / range, 0, 1);
306
329
 
@@ -327,11 +350,11 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
327
350
  var _this$calcValue4 = this.calcValue({
328
351
  useRawValue: true
329
352
  }),
330
- value = _this$calcValue4.value,
353
+ _value2 = _this$calcValue4.value,
331
354
  left = _this$calcValue4.left;
332
355
 
333
356
  this.setState({
334
- value: value,
357
+ value: _value2,
335
358
  left: left
336
359
  });
337
360
  }
@@ -350,10 +373,15 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
350
373
  value: function componentDidUpdate(prevProps, prevState) {
351
374
  // Fire onChange event handler if present, if there's a usable value, and
352
375
  // if the value is different from the last one
353
- this.thumbRef.current.style.left = "".concat(this.state.left, "%");
354
- this.filledTrackRef.current.style.transform = "translate(0%, -50%) scaleX(".concat(this.state.left / 100, ")");
376
+ if (this.thumbRef.current) {
377
+ this.thumbRef.current.style.left = "".concat(this.state.left, "%");
378
+ }
379
+
380
+ if (this.filledTrackRef.current) {
381
+ this.filledTrackRef.current.style.transform = "translate(0%, -50%) scaleX(".concat(this.state.left / 100, ")");
382
+ }
355
383
 
356
- if (this.state.value !== '' && prevState.value !== this.state.value && typeof this.props.onChange === 'function') {
384
+ if (prevState.value !== this.state.value && typeof this.props.onChange === 'function') {
357
385
  this.props.onChange({
358
386
  value: this.state.value
359
387
  });
@@ -498,8 +526,8 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
498
526
  name: name,
499
527
  className: inputClasses,
500
528
  value: value,
501
- "aria-labelledby": !ariaLabelInput ? labelId : null,
502
- "aria-label": ariaLabelInput ? ariaLabelInput : null,
529
+ "aria-labelledby": !ariaLabelInput ? labelId : undefined,
530
+ "aria-label": ariaLabelInput ? ariaLabelInput : undefined,
503
531
  disabled: disabled,
504
532
  required: required,
505
533
  min: min,
@@ -507,9 +535,9 @@ var Slider = /*#__PURE__*/function (_PureComponent) {
507
535
  step: step,
508
536
  onChange: _this2.onChange,
509
537
  onBlur: _this2.onBlur,
510
- onKeyUp: _this2.onInputKeyUp,
538
+ onKeyUp: _this2.props.onInputKeyUp,
511
539
  "data-invalid": isValid ? null : true,
512
- "aria-invalid": isValid ? null : true,
540
+ "aria-invalid": isValid ? undefined : true,
513
541
  readOnly: readOnly
514
542
  })));
515
543
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.