@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/README.md +1 -1
  2. package/dist/Autocomplete-C5ubHBTi.js +358 -0
  3. package/dist/{Button-BXzmntRi.js → Button-mmhMLwp9.js} +89 -85
  4. package/dist/Provider-8wS70V56.js +64 -0
  5. package/dist/{TableProvider-D8SQKIG8.js → TableProvider-bdUNuoG-.js} +11 -21
  6. package/dist/components/Alert/Alert.js +34 -35
  7. package/dist/components/Alert/Alert.styles.js +15 -15
  8. package/dist/components/Alert/index.js +4 -5
  9. package/dist/components/Autocomplete/Autocomplete.js +17 -82
  10. package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
  11. package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
  12. package/dist/components/Autocomplete/index.js +6 -4
  13. package/dist/components/Badge/Badge.js +3 -3
  14. package/dist/components/Badge/Badge.styles.js +5 -5
  15. package/dist/components/Button/Button.js +3 -3
  16. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  17. package/dist/components/Button/index.js +1 -1
  18. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  19. package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
  20. package/dist/components/ButtonGroup/hooks/useButtonGroupItem.js +11 -12
  21. package/dist/components/Card/Card.js +2 -2
  22. package/dist/components/Card/Card.styles.js +17 -17
  23. package/dist/components/Checkbox/Checkbox.js +85 -86
  24. package/dist/components/Checkbox/Checkbox.styles.js +6 -6
  25. package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
  26. package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +11 -11
  27. package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
  28. package/dist/components/CheckboxMark/CheckboxMark.styles.js +2 -2
  29. package/dist/components/Col/Col.js +1 -1
  30. package/dist/components/Col/Col.styles.js +1 -1
  31. package/dist/components/Container/Container.js +1 -1
  32. package/dist/components/Container/Container.styles.js +4 -3
  33. package/dist/components/Divider/Divider.js +2 -2
  34. package/dist/components/Divider/Divider.styles.js +2 -2
  35. package/dist/components/Expander/Expander.js +46 -41
  36. package/dist/components/Expander/Expander.styles.js +5 -5
  37. package/dist/components/Field/Field.js +55 -54
  38. package/dist/components/Field/Field.styles.js +17 -10
  39. package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
  40. package/dist/components/Field/FieldGroup/FieldGroup.styles.js +6 -6
  41. package/dist/components/Field/components/FieldFooter.js +32 -32
  42. package/dist/components/Field/components/FieldHint.js +3 -3
  43. package/dist/components/Filter/Filter.js +213 -100
  44. package/dist/components/Filter/Filter.styles.js +4 -4
  45. package/dist/components/Filter/components/FilterResetButton.js +17 -18
  46. package/dist/components/Filter/components/FilterResultsDescriptor.js +6 -6
  47. package/dist/components/Filter/components/FilterSearch.js +18 -19
  48. package/dist/components/Filter/index.js +2 -2
  49. package/dist/components/Hide/Hide.js +1 -1
  50. package/dist/components/Icon/Icon.js +1 -1
  51. package/dist/components/Icon/Icon.styles.js +1 -1
  52. package/dist/components/Image/Image.js +1 -1
  53. package/dist/components/Image/Image.styles.js +1 -1
  54. package/dist/components/Inline/Inline.js +1 -1
  55. package/dist/components/Inline/Inline.styles.js +2 -2
  56. package/dist/components/Input/Input.js +102 -108
  57. package/dist/components/Input/Input.styles.js +8 -8
  58. package/dist/components/Input/InputBase/InputBase.js +23 -23
  59. package/dist/components/Label/Label.styles.js +4 -4
  60. package/dist/components/Label/LabelBase/LabelBase.js +32 -32
  61. package/dist/components/Link/Link.js +50 -51
  62. package/dist/components/Link/Link.styles.js +4 -3
  63. package/dist/components/Menu/Menu.js +51 -51
  64. package/dist/components/Menu/Menu.styles.js +12 -12
  65. package/dist/components/Menu/MenuDivider/MenuDivider.js +13 -13
  66. package/dist/components/Menu/MenuItem/MenuItem.js +144 -146
  67. package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
  68. package/dist/components/Menu/MenuText/MenuText.js +38 -38
  69. package/dist/components/Modal/Modal.js +115 -125
  70. package/dist/components/Modal/Modal.styles.js +22 -13
  71. package/dist/components/Modal/ModalProvider.js +20 -22
  72. package/dist/components/Modal/hooks/useModal.js +9 -7
  73. package/dist/components/Modal/hooks/useProviderModal.js +8 -8
  74. package/dist/components/Modal/index.js +7 -6
  75. package/dist/components/Panel/Panel.js +1 -1
  76. package/dist/components/Panel/Panel.styles.js +1 -1
  77. package/dist/components/Placeholder/Placeholder.js +14 -14
  78. package/dist/components/Placeholder/Placeholder.styles.js +1 -1
  79. package/dist/components/Popover/InputPopover/InputPopover.js +89 -14
  80. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +31 -34
  81. package/dist/components/Popover/Popover.js +44 -43
  82. package/dist/components/Popover/Popover.styles.js +2 -2
  83. package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
  84. package/dist/components/Popover/components/PopoverActivator.js +48 -53
  85. package/dist/components/Popover/components/PopoverContent.js +33 -33
  86. package/dist/components/Popover/helpers/composeFloatingProps.js +23 -26
  87. package/dist/components/Popover/helpers/handlePopoverTabKey.js +11 -14
  88. package/dist/components/Popover/hooks/usePopover.js +79 -75
  89. package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
  90. package/dist/components/Popover/hooks/usePopoverItem.js +16 -17
  91. package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
  92. package/dist/components/Popover/index.js +6 -6
  93. package/dist/components/Progress/Progress.js +35 -41
  94. package/dist/components/Progress/Progress.styles.js +4 -4
  95. package/dist/components/Provider/Provider.js +12 -35
  96. package/dist/components/Provider/index.js +1 -1
  97. package/dist/components/Radio/Radio.js +86 -81
  98. package/dist/components/Radio/Radio.styles.js +6 -6
  99. package/dist/components/RadioGroup/RadioGroup.js +69 -77
  100. package/dist/components/RadioGroup/RadioGroup.styles.js +5 -5
  101. package/dist/components/Readonly/Readonly.js +44 -43
  102. package/dist/components/Readonly/Readonly.styles.js +12 -17
  103. package/dist/components/RichSelect/RichSelect.js +21 -86
  104. package/dist/components/RichSelect/RichSelect.styles.js +10 -10
  105. package/dist/components/RichSelect/SelectBody/SelectBody.js +23 -117
  106. package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
  107. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +25 -114
  108. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +67 -97
  109. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +19 -19
  110. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +6 -6
  111. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +69 -69
  112. package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
  113. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +52 -46
  114. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +43 -98
  115. package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
  116. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +31 -32
  117. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +1 -1
  118. package/dist/components/RichSelect/SelectTags/SelectTags.js +159 -105
  119. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +4 -4
  120. package/dist/components/RichSelect/components/SelectActivator.js +63 -6
  121. package/dist/components/RichSelect/components/SelectOptions.js +201 -95
  122. package/dist/components/RichSelect/index.js +18 -15
  123. package/dist/components/Row/Row.js +1 -1
  124. package/dist/components/Row/Row.styles.js +1 -1
  125. package/dist/components/Select/Select.js +71 -71
  126. package/dist/components/Select/Select.styles.js +9 -9
  127. package/dist/components/Select/SelectOption/SelectOption.js +1 -1
  128. package/dist/components/Select/components/SelectControl.js +1 -1
  129. package/dist/components/Select/components/SelectReadonly.js +30 -33
  130. package/dist/components/Select/helpers/nodesToSelectOptions.js +19 -20
  131. package/dist/components/Skeleton/Skeleton.styles.js +2 -2
  132. package/dist/components/SkipLink/SkipLink.js +1 -1
  133. package/dist/components/SkipLink/SkipLink.styles.js +3 -3
  134. package/dist/components/Slideout/Slideout.js +161 -161
  135. package/dist/components/Slideout/Slideout.styles.js +8 -8
  136. package/dist/components/Slideout/SlideoutProvider.js +18 -20
  137. package/dist/components/Slideout/components/SlideoutInner.js +3 -3
  138. package/dist/components/Slideout/hooks/useProviderSlideout.js +8 -8
  139. package/dist/components/Slideout/hooks/usePushElement.js +27 -27
  140. package/dist/components/Slideout/hooks/useSlideout.js +11 -9
  141. package/dist/components/Slideout/index.js +7 -6
  142. package/dist/components/Slider/Slider.js +76 -76
  143. package/dist/components/Slider/Slider.styles.js +4 -4
  144. package/dist/components/Slider/components/SliderTicks.js +15 -16
  145. package/dist/components/Spinner/Spinner.styles.js +1 -1
  146. package/dist/components/Stack/Stack.js +1 -1
  147. package/dist/components/Stack/Stack.styles.js +4 -4
  148. package/dist/components/TabSet/Tab/Tab.js +88 -88
  149. package/dist/components/TabSet/Tab/Tab.styles.js +3 -3
  150. package/dist/components/TabSet/TabSet.js +80 -67
  151. package/dist/components/TabSet/TabSet.styles.js +4 -4
  152. package/dist/components/TabSet/TabSetProvider.js +43 -43
  153. package/dist/components/Table/Table.js +39 -39
  154. package/dist/components/Table/Table.styles.js +10 -8
  155. package/dist/components/Table/TableBody/TableBody.js +76 -76
  156. package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +8 -18
  157. package/dist/components/Table/TableProvider.js +2 -2
  158. package/dist/components/Table/components/TableEmpty.js +8 -8
  159. package/dist/components/Table/components/TableHeader.js +31 -32
  160. package/dist/components/Table/components/TableHeaderCell.js +23 -24
  161. package/dist/components/Table/components/TableRows.js +38 -38
  162. package/dist/components/Table/components/TableSortButton.js +6 -6
  163. package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
  164. package/dist/components/Table/helpers/composeTableInitialSorting.js +4 -4
  165. package/dist/components/Table/hooks/useTableColumnSort.js +12 -12
  166. package/dist/components/Table/hooks/useTableColumnStyles.js +13 -14
  167. package/dist/components/Table/index.js +2 -3
  168. package/dist/components/Tag/Tag.js +29 -32
  169. package/dist/components/Tag/Tag.styles.js +5 -6
  170. package/dist/components/Tag/TagInput/TagInput.js +120 -104
  171. package/dist/components/Tag/TagInput/TagInput.styles.js +26 -0
  172. package/dist/components/Text/Text.js +16 -36
  173. package/dist/components/Text/Text.styles.js +5 -4
  174. package/dist/components/Text/index.js +1 -2
  175. package/dist/components/Toaster/Toaster.js +59 -11
  176. package/dist/components/Toaster/Toaster.styles.js +2 -2
  177. package/dist/components/Toaster/ToasterProvider.js +49 -6
  178. package/dist/components/Toaster/components/Toast/Toast.js +46 -47
  179. package/dist/components/Toaster/components/Toast/Toast.styles.js +13 -13
  180. package/dist/components/Toaster/components/Toast/ToastAnimated.js +38 -37
  181. package/dist/components/Toaster/hooks/useToaster.js +24 -22
  182. package/dist/components/Toaster/index.js +5 -4
  183. package/dist/components/Toggle/Toggle.js +59 -54
  184. package/dist/components/Toggle/Toggle.styles.js +13 -13
  185. package/dist/components/Tooltip/Tooltip.js +2 -2
  186. package/dist/components/Tooltip/Tooltip.styles.js +2 -2
  187. package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
  188. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +5 -5
  189. package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-BfFBOARB.js} +99 -109
  190. package/dist/constants.js +10 -10
  191. package/dist/{create-recipe-BqEnhJ30.js → create-recipe-C-ASk1Hy.js} +11 -10
  192. package/dist/css-fGu_jDvv.js +228 -0
  193. package/dist/cva-JiDXAa83.js +63 -0
  194. package/dist/enums.js +7 -7
  195. package/dist/factory-oPXoMw9H.js +58 -0
  196. package/dist/{floating-ui.react-CPN4oQCc.js → floating-ui.react-BetVZ099.js} +1153 -1151
  197. package/dist/fuzzysort-DKAolWVP.js +397 -0
  198. package/dist/helpers/dom/closestCrossShadow.js +16 -17
  199. package/dist/helpers/dom/focusableElements.js +6 -6
  200. package/dist/helpers/dom/getActiveElement.js +5 -6
  201. package/dist/helpers/formatting/formatDateTime.js +9 -10
  202. package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
  203. package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
  204. package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
  205. package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
  206. package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
  207. package/dist/helpers/label-value/searchLabelValues.js +1 -1
  208. package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
  209. package/dist/helpers/styling/iressCss.js +2 -2
  210. package/dist/helpers/styling/mapGutterToGap.js +7 -7
  211. package/dist/helpers/transition/getTransitionDuration.js +5 -8
  212. package/dist/hooks/useAriaRelationship.js +19 -21
  213. package/dist/hooks/useBreakpoint.js +8 -11
  214. package/dist/hooks/useControlledState.js +37 -35
  215. package/dist/{index-DlGwAtoO.js → index-CZ9ot38T.js} +107 -129
  216. package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -5
  217. package/dist/{index.esm-BnSuefUA.js → index.esm-CL8gh5wr.js} +1 -5
  218. package/dist/is-valid-prop-Ce0wiweq.js +7 -0
  219. package/dist/main.js +298 -292
  220. package/dist/patterns/Form/Form.js +1 -1
  221. package/dist/patterns/Form/Form.styles.js +1 -1
  222. package/dist/patterns/Form/FormField/FormField.js +41 -44
  223. package/dist/patterns/Form/FormField/FormFieldset.js +41 -44
  224. package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
  225. package/dist/patterns/Form/FormField/hooks/useFieldRenderProps.js +26 -26
  226. package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +55 -56
  227. package/dist/patterns/Form/HookForm/HookForm.js +72 -75
  228. package/dist/patterns/Form/components/LongForm.js +1 -1
  229. package/dist/patterns/Form/components/ShortForm.js +12 -12
  230. package/dist/patterns/Loading/Loading.styles.js +32 -20
  231. package/dist/patterns/Loading/LoadingSuspense.js +34 -34
  232. package/dist/patterns/Loading/components/ComponentLoading.js +42 -47
  233. package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
  234. package/dist/patterns/Loading/components/LongLoading.js +45 -45
  235. package/dist/patterns/Loading/components/PageLoading.js +64 -64
  236. package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
  237. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  238. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
  239. package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
  240. package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
  241. package/dist/patterns/Shadow/Shadow.js +22009 -0
  242. package/dist/patterns/Shadow/index.js +4 -0
  243. package/dist/src/components/Alert/Alert.d.ts +0 -1
  244. package/dist/src/components/Alert/Alert.styles.d.ts +2 -2
  245. package/dist/src/components/Autocomplete/Autocomplete.d.ts +1 -1
  246. package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +1 -1
  247. package/dist/src/components/Autocomplete/index.d.ts +1 -0
  248. package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
  249. package/dist/src/components/Card/Card.styles.d.ts +2 -2
  250. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
  251. package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
  252. package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
  253. package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
  254. package/dist/src/components/Field/Field.styles.d.ts +13 -6
  255. package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
  256. package/dist/src/components/Inline/Inline.d.ts +1 -2
  257. package/dist/src/components/Label/Label.styles.d.ts +1 -1
  258. package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
  259. package/dist/src/components/Modal/Modal.styles.d.ts +8 -2
  260. package/dist/src/components/Modal/ModalProvider.d.ts +0 -16
  261. package/dist/src/components/Modal/hooks/useModal.d.ts +17 -0
  262. package/dist/src/components/Popover/Popover.styles.d.ts +1 -1
  263. package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +1 -1
  264. package/dist/src/components/Popover/hooks/usePopover.d.ts +4 -0
  265. package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +1 -1
  266. package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
  267. package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
  268. package/dist/src/components/Readonly/Readonly.styles.d.ts +1 -1
  269. package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
  270. package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
  271. package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +1 -1
  272. package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -2
  273. package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
  274. package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +1 -1
  275. package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +1 -2
  276. package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +1 -1
  277. package/dist/src/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
  278. package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
  279. package/dist/src/components/Row/Row.d.ts +1 -2
  280. package/dist/src/components/Select/Select.styles.d.ts +7 -7
  281. package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
  282. package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
  283. package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -6
  284. package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
  285. package/dist/src/components/Stack/Stack.d.ts +1 -2
  286. package/dist/src/components/TabSet/TabSet.d.ts +10 -1
  287. package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -3
  288. package/dist/src/components/Table/helpers/composeTableColumnDefs.d.ts +1 -1
  289. package/dist/src/components/Tag/TagInput/TagInput.styles.d.ts +1 -0
  290. package/dist/src/components/Text/Text.d.ts +1 -2
  291. package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -2
  292. package/dist/src/components/Toaster/components/Toast/Toast.d.ts +1 -2
  293. package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
  294. package/dist/src/components/Toaster/hooks/useToaster.d.ts +7 -6
  295. package/dist/src/components/Toggle/Toggle.d.ts +10 -2
  296. package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
  297. package/dist/src/enums.d.ts +1 -9
  298. package/dist/src/interfaces.d.ts +9 -10
  299. package/dist/src/main.d.ts +1 -1
  300. package/dist/src/patterns/Form/hooks/useNoDefaultValueInForms.d.ts +1 -1
  301. package/dist/src/patterns/Loading/Loading.styles.d.ts +11 -10
  302. package/dist/src/patterns/Loading/components/PageLoading.d.ts +5 -1
  303. package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +8 -3
  304. package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +1 -1
  305. package/dist/src/patterns/Shadow/Shadow.d.ts +34 -0
  306. package/dist/src/patterns/Shadow/index.d.ts +1 -0
  307. package/dist/src/patterns/Shadow/meta/Thumbnail.d.ts +2 -0
  308. package/dist/src/patterns/Shadow/meta/index.d.ts +7 -0
  309. package/dist/src/styled-system/jsx/create-style-context.d.ts +54 -0
  310. package/dist/src/styled-system/jsx/index.d.ts +1 -0
  311. package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -1
  312. package/dist/src/styled-system/patterns/bleed.d.ts +0 -1
  313. package/dist/src/styled-system/patterns/box.d.ts +0 -1
  314. package/dist/src/styled-system/patterns/center.d.ts +0 -1
  315. package/dist/src/styled-system/patterns/circle.d.ts +0 -1
  316. package/dist/src/styled-system/patterns/container.d.ts +0 -1
  317. package/dist/src/styled-system/patterns/cq.d.ts +0 -1
  318. package/dist/src/styled-system/patterns/divider.d.ts +0 -1
  319. package/dist/src/styled-system/patterns/flex.d.ts +0 -1
  320. package/dist/src/styled-system/patterns/float.d.ts +0 -1
  321. package/dist/src/styled-system/patterns/grid-item.d.ts +0 -1
  322. package/dist/src/styled-system/patterns/grid.d.ts +0 -1
  323. package/dist/src/styled-system/patterns/hstack.d.ts +0 -1
  324. package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -1
  325. package/dist/src/styled-system/patterns/spacer.d.ts +0 -1
  326. package/dist/src/styled-system/patterns/square.d.ts +0 -1
  327. package/dist/src/styled-system/patterns/stack.d.ts +0 -1
  328. package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -1
  329. package/dist/src/styled-system/patterns/vstack.d.ts +0 -1
  330. package/dist/src/styled-system/patterns/wrap.d.ts +0 -1
  331. package/dist/src/styled-system/recipes/button.d.ts +4 -3
  332. package/dist/src/styled-system/recipes/table.d.ts +4 -1
  333. package/dist/src/styled-system/recipes/text.d.ts +3 -2
  334. package/dist/src/styled-system/tokens/tokens.d.ts +4 -4
  335. package/dist/src/styled-system/types/composition.d.ts +83 -23
  336. package/dist/src/styled-system/types/conditions.d.ts +15 -11
  337. package/dist/src/styled-system/types/jsx.d.ts +27 -10
  338. package/dist/src/styled-system/types/prop-type.d.ts +11 -4
  339. package/dist/src/styled-system/types/style-props.d.ts +14 -1
  340. package/dist/src/styled-system/types/system-types.d.ts +76 -0
  341. package/dist/src/types.d.ts +3 -1
  342. package/dist/style.css +1 -1
  343. package/dist/sva-OmxClA9g.js +34 -0
  344. package/package.json +68 -46
  345. package/dist/Filter-Bwk7SIlJ.js +0 -1103
  346. package/dist/InputPopover-BWWuoQZ2.js +0 -132
  347. package/dist/ToasterProvider-XqpAGfRs.js +0 -112
  348. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  349. package/dist/cva-B2x59Dph.js +0 -294
  350. package/dist/factory-DHLOr79I.js +0 -53
  351. package/dist/fuzzysort-eoXOpoo6.js +0 -395
  352. package/dist/helpers/utility/generateScopedName.js +0 -9
  353. package/dist/is-valid-prop-DFFvE05x.js +0 -7
  354. package/dist/panda.config.d.ts +0 -4
  355. package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
  356. package/dist/sva-TRyehFkb.js +0 -32
  357. package/dist/theme-preset/config-recipes/button.d.ts +0 -6
  358. package/dist/theme-preset/config-recipes/table.d.ts +0 -1
  359. package/dist/theme-preset/config-recipes/text.d.ts +0 -1
  360. package/dist/theme-preset/globalCss.d.ts +0 -1
  361. package/dist/theme-preset/index.d.ts +0 -2
  362. package/dist/theme-preset/staticCss.d.ts +0 -2
  363. package/dist/theme-preset/storybook.d.ts +0 -4
  364. package/dist/theme-preset/tokens/animationStyles.d.ts +0 -1
  365. package/dist/theme-preset/tokens/borders.d.ts +0 -50
  366. package/dist/theme-preset/tokens/breakpoints.d.ts +0 -8
  367. package/dist/theme-preset/tokens/colors.d.ts +0 -156
  368. package/dist/theme-preset/tokens/keyframes.d.ts +0 -1
  369. package/dist/theme-preset/tokens/layerStyles.d.ts +0 -40
  370. package/dist/theme-preset/tokens/radii.d.ts +0 -42
  371. package/dist/theme-preset/tokens/sizes.d.ts +0 -246
  372. package/dist/theme-preset/tokens/spacing.d.ts +0 -100
  373. package/dist/theme-preset/tokens/textStyles.d.ts +0 -5
  374. package/dist/theme-preset/tokens/zIndex.d.ts +0 -23
  375. package/dist/theme-preset/utilities/chevron.d.ts +0 -3
  376. package/dist/theme-preset/utilities/focusable.d.ts +0 -1
  377. package/dist/theme-preset/utilities/gutter.d.ts +0 -1
  378. package/dist/theme-preset/utilities/hide.d.ts +0 -1
  379. package/dist/theme-preset/utilities/noGutter.d.ts +0 -1
  380. package/dist/theme-preset/utilities/offset.d.ts +0 -75
  381. package/dist/theme-preset/utilities/sliderThumb.d.ts +0 -1
  382. package/dist/theme-preset/utilities/span.d.ts +0 -120
  383. package/dist/theme-preset/utilities/stretch.d.ts +0 -1
  384. package/dist/theme-preset/utilities/topLeftTriangle.d.ts +0 -2
  385. package/dist/typography--vGt_ztU.js +0 -12
  386. package/dist/vite.config.d.ts +0 -2
  387. package/dist/vitest.config.d.ts +0 -2
  388. package/dist/vitest.setup.d.ts +0 -0
  389. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1,32 +1,29 @@
1
- import { t as c } from "../../../index.esm-BnSuefUA.js";
2
- import { FOCUSABLE_QUERY_SELECTOR as l } from "../../../constants.js";
3
- import { focusableElements as u } from "../../../helpers/dom/focusableElements.js";
4
- import { waitUntilTrue as m } from "./waitUntilTrue.js";
5
- const g = async (t, a) => {
1
+ import { t as o } from "../../../index.esm-CL8gh5wr.js";
2
+ import { FOCUSABLE_QUERY_SELECTOR as c } from "../../../constants.js";
3
+ import { focusableElements as l } from "../../../helpers/dom/focusableElements.js";
4
+ import { waitUntilTrue as u } from "./waitUntilTrue.js";
5
+ const E = async (t, a) => {
6
6
  if (a.key !== "Tab")
7
7
  return;
8
8
  const i = t.api.elements.reference;
9
9
  if (!i)
10
10
  return;
11
11
  let n = i;
12
- if (!n.matches(l)) {
13
- const e = u(i);
12
+ if (!n.matches(c)) {
13
+ const e = l(i);
14
14
  n = e[e.length - 1];
15
15
  }
16
16
  if (a.shiftKey && (t.setShow(!1), n.focus()), !a.shiftKey) {
17
17
  t.setShowWithReason(!1);
18
- const e = c(document.documentElement).filter(
19
- (r) => {
20
- var o;
21
- return !((o = t.api.elements.floating) != null && o.contains(r)) && !r.hasAttribute("data-floating-ui-focus-guard");
22
- }
18
+ const e = o(document.documentElement).filter(
19
+ (r) => !t.api.elements.floating?.contains(r) && !r.hasAttribute("data-floating-ui-focus-guard")
23
20
  ), f = e.indexOf(n), s = e[f + 1];
24
21
  if (f === -1 || !s) return;
25
- await m(
22
+ await u(
26
23
  () => !s.hasAttribute("data-floating-ui-inert")
27
24
  ), s.focus();
28
25
  }
29
26
  };
30
27
  export {
31
- g as handlePopoverTabKey
28
+ E as handlePopoverTabKey
32
29
  };
@@ -1,139 +1,143 @@
1
- import { createContext as z, useRef as I, useMemo as p, useCallback as V } from "react";
2
- import { useControlledState as K } from "../../../hooks/useControlledState.js";
3
- import { o as E, j as M, i as T, s as W, m as X, u as A, n as B, b as J, c as L, d as Q, p as Y } from "../../../floating-ui.react-CPN4oQCc.js";
1
+ import { createContext as z, useRef as V, useMemo as p, useCallback as x } from "react";
2
+ import { useControlledState as D } from "../../../hooks/useControlledState.js";
3
+ import { o as A, j as E, i as K, s as T, m as W, u as X, n as B, b as J, c as L, d as Q, p as Y } from "../../../floating-ui.react-BetVZ099.js";
4
4
  import { usePopoverNavigation as Z } from "./usePopoverNavigation.js";
5
- import { focusableElements as D } from "../../../helpers/dom/focusableElements.js";
6
- import { usePopoverAria as ee } from "./usePopoverAria.js";
7
- import { closestCrossShadow as oe } from "../../../helpers/dom/closestCrossShadow.js";
5
+ import { focusableElements as ee } from "../../../helpers/dom/focusableElements.js";
6
+ import { usePopoverAria as oe } from "./usePopoverAria.js";
7
+ import { closestCrossShadow as te } from "../../../helpers/dom/closestCrossShadow.js";
8
8
  import { GlobalCSSClass as se } from "../../../enums.js";
9
- const te = 200, de = ({
9
+ const ne = 200, fe = ({
10
10
  align: i = "auto",
11
- autoHighlight: N = !0,
12
- component: k = "IressPopover",
13
- defaultShow: v,
14
- focusStartIndex: H,
15
- hasInputActivator: l,
16
- matchActivatorWidth: x,
17
- onActivated: m,
18
- onDeactivated: d,
11
+ autoHighlight: I = !0,
12
+ component: M = "IressPopover",
13
+ defaultShow: N,
14
+ focusStartIndex: d,
15
+ hasInputActivator: a,
16
+ matchActivatorWidth: v,
17
+ onActivated: k,
18
+ onDeactivated: H,
19
19
  onNavigate: _,
20
20
  show: $,
21
- type: a,
22
- virtualFocus: r
21
+ type: l,
22
+ virtualFocus: n
23
23
  }) => {
24
- const w = I(!1), C = I(null), {
24
+ const w = V(!1), C = V(null), {
25
25
  isControlled: h,
26
26
  setValue: f,
27
- value: n
28
- } = K({
29
- component: k,
30
- defaultValue: v,
27
+ value: r
28
+ } = D({
29
+ component: M,
30
+ defaultValue: N,
31
31
  propName: "show",
32
32
  value: $
33
33
  }), j = p(() => {
34
- const e = l ? [E(5), M({ padding: 5 })] : [
35
- E(5),
36
- i === "auto" ? T() : M(),
37
- W((s) => ({
38
- mainAxis: !oe(
39
- s.elements.reference,
34
+ const e = a ? [A(5), E({ padding: 5 })] : [
35
+ A(5),
36
+ i === "auto" ? K() : E(),
37
+ T((t) => ({
38
+ mainAxis: !te(
39
+ t.elements.reference,
40
40
  `.${se.Slideout}`
41
41
  )
42
42
  }))
43
43
  ];
44
- return x ? [
44
+ return v ? [
45
45
  ...e,
46
- X({
47
- apply({ rects: s, availableHeight: t, elements: y }) {
46
+ W({
47
+ apply({ rects: t, availableHeight: s, elements: y }) {
48
48
  requestAnimationFrame(() => {
49
49
  Object.assign(y.floating.style, {
50
- minWidth: `${s.reference.width}px`,
51
- maxHeight: t > te ? `${t}px` : void 0
50
+ minWidth: `${t.reference.width}px`,
51
+ maxHeight: s > ne ? `${s}px` : void 0
52
52
  });
53
53
  });
54
54
  },
55
55
  padding: 5
56
56
  })
57
57
  ] : e;
58
- }, [x, l, i]), o = A({
59
- open: n,
60
- onOpenChange: (e, s, t) => {
61
- f(e), e ? m == null || m(s, t, u) : d == null || d(s, t, u);
58
+ }, [v, a, i]), o = X({
59
+ open: r,
60
+ onOpenChange: (e, t, s) => {
61
+ f(e), e ? k?.(t, s, c) : H?.(t, s, c);
62
62
  },
63
63
  middleware: j,
64
64
  placement: i === "auto" ? void 0 : i,
65
65
  whileElementsMounted: Y
66
- }), { activeIndex: u, list: S, listNav: q, setActiveIndex: b } = Z(
66
+ }), { activeIndex: c, list: b, listNav: q, setActiveIndex: u } = Z(
67
67
  o.context,
68
- a,
68
+ l,
69
69
  {
70
- focusItemOnOpen: N,
71
- virtual: r
70
+ focusItemOnOpen: I,
71
+ virtual: n
72
72
  },
73
73
  _,
74
- H
74
+ d
75
75
  ), F = B(o.context, {
76
- enabled: !l
76
+ enabled: !a
77
77
  }), G = J(o.context, {
78
78
  enabled: !0,
79
- escapeKey: !l
79
+ escapeKey: !a
80
80
  }), U = L(o.context, {
81
- role: a
82
- }), P = ee(), g = Q([F, G, U, q]), O = p(() => r ? {
81
+ role: l
82
+ }), S = oe(), P = Q([F, G, U, q]), g = p(() => n ? {
83
83
  getVirtualFocus: () => C.current,
84
84
  setVirtualFocus: (e) => {
85
85
  C.current = e;
86
86
  }
87
- } : {}, [r]), c = V(() => {
87
+ } : {}, [n]), m = x(() => {
88
88
  const e = o.elements.reference;
89
- return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? D(e)[0];
90
- }, [o.elements.reference]), R = V(
91
- (e) => !e || !n ? !1 : e === c(),
92
- [c, n]
93
- );
89
+ return e?.querySelector("[role=combobox]") ?? ee(e)[0];
90
+ }, [o.elements.reference]), O = x(
91
+ (e) => !e || !r ? !1 : e === m(),
92
+ [m, r]
93
+ ), R = x(() => {
94
+ u(d ?? null);
95
+ }, [d, u]);
94
96
  return p(
95
97
  () => ({
96
- activeIndex: u,
97
- ...P,
98
+ activeIndex: c,
99
+ ...S,
98
100
  api: o,
99
- getFocusableActivator: c,
101
+ getFocusableActivator: m,
100
102
  hasInnerRole: () => w.current,
101
- interactions: g,
102
- isActiveActivator: R,
103
+ interactions: P,
104
+ isActiveActivator: O,
103
105
  isControlled: h,
104
- isVirtualFocus: !!r,
105
- list: S,
106
- setActiveIndex: b,
106
+ isVirtualFocus: !!n,
107
+ list: b,
108
+ resetActiveIndex: R,
109
+ setActiveIndex: u,
107
110
  setShow: f,
108
111
  setShowWithReason: o.context.onOpenChange,
109
112
  setHasInnerRole: (e) => {
110
113
  w.current = e;
111
114
  },
112
- show: !!n,
113
- type: a,
114
- ...O
115
+ show: !!r,
116
+ type: l,
117
+ ...g
115
118
  }),
116
119
  [
117
- u,
120
+ c,
118
121
  o,
122
+ S,
123
+ m,
119
124
  P,
120
- c,
121
- g,
122
- R,
125
+ O,
123
126
  h,
124
- S,
125
127
  b,
128
+ R,
129
+ u,
126
130
  f,
127
- n,
128
- a,
129
- O,
130
- r
131
+ r,
132
+ l,
133
+ g,
134
+ n
131
135
  ]
132
136
  );
133
- }, fe = z(
137
+ }, pe = z(
134
138
  void 0
135
139
  );
136
140
  export {
137
- fe as PopoverContext,
138
- de as usePopover
141
+ pe as PopoverContext,
142
+ fe as usePopover
139
143
  };
@@ -1,36 +1,33 @@
1
- import { useCallback as D } from "react";
2
- const x = (n, t) => {
3
- const u = D(
4
- (i) => {
5
- var a;
6
- (a = t == null ? void 0 : t.onBlur) == null || a.call(t, i);
1
+ import { useCallback as s } from "react";
2
+ const c = (t, n) => {
3
+ const a = s(
4
+ (e) => {
5
+ n?.onBlur?.(e);
7
6
  },
8
- [t]
9
- ), s = D(
10
- (i) => {
11
- var a;
12
- n != null && n.show ? c(i, n) : n && k(i, n), (a = t == null ? void 0 : t.onKeyDown) == null || a.call(t, i);
7
+ [n]
8
+ ), i = s(
9
+ (e) => {
10
+ t?.show ? l(e, t) : t && o(e, t), n?.onKeyDown?.(e);
13
11
  },
14
- [t, n]
12
+ [n, t]
15
13
  );
16
14
  return {
17
- onBlur: u,
18
- onKeyDown: s
15
+ onBlur: a,
16
+ onKeyDown: i
19
17
  };
20
- }, c = (n, t) => {
21
- var s, i, a, g, h, d, y;
22
- const u = (t == null ? void 0 : t.getVirtualFocus) !== void 0;
23
- if ((a = (i = (s = t == null ? void 0 : t.getVirtualFocus) == null ? void 0 : s.call(t)) == null ? void 0 : i.onKeyDown) == null || a.call(i, n), n.key === "Tab" && ((d = (h = (g = t == null ? void 0 : t.getVirtualFocus) == null ? void 0 : g.call(t)) == null ? void 0 : h.onBlur) == null || d.call(h, n), t != null && t.getVirtualFocus && (t == null || t.setShowWithReason(!1, n.nativeEvent, "focus"))), n.key === "PageUp" && u && t.setActiveIndex(0), n.key === "PageDown" && u) {
24
- const l = Math.max((t == null ? void 0 : t.list.current.length) - 1, 0);
25
- t.setActiveIndex(l);
18
+ }, l = (t, n) => {
19
+ const a = n?.getVirtualFocus !== void 0;
20
+ if (n?.getVirtualFocus?.()?.onKeyDown?.(t), t.key === "Tab" && (n?.getVirtualFocus?.()?.onBlur?.(t), n?.getVirtualFocus && n?.setShowWithReason(!1, t.nativeEvent, "focus")), t.key === "PageUp" && a && n.setActiveIndex(0), t.key === "PageDown" && a) {
21
+ const i = Math.max(n?.list.current.length - 1, 0);
22
+ n.setActiveIndex(i);
26
23
  }
27
- if (n.key === "ArrowUp" && (t == null ? void 0 : t.activeIndex) === 0 && (t == null || t.setShowWithReason(!1, n.nativeEvent, "focus")), n.key === "ArrowRight" && n.isDefaultPrevented() && n.target instanceof HTMLInputElement && ((y = n.target.value) != null && y.length)) {
28
- const l = n.target, w = l.selectionStart ?? 0;
29
- w < l.value.length && l.setSelectionRange(w + 1, w + 1);
24
+ if (t.key === "ArrowUp" && n?.activeIndex === 0 && n?.setShowWithReason(!1, t.nativeEvent, "focus"), t.key === "ArrowRight" && t.isDefaultPrevented() && t.target instanceof HTMLInputElement && t.target.value?.length) {
25
+ const i = t.target, e = i.selectionStart ?? 0;
26
+ e < i.value.length && i.setSelectionRange(e + 1, e + 1);
30
27
  }
31
- }, k = (n, t) => {
32
- n.key === "ArrowDown" && (t == null || t.setShowWithReason(!0, n.nativeEvent, "focus"));
28
+ }, o = (t, n) => {
29
+ t.key === "ArrowDown" && n?.setShowWithReason(!0, t.nativeEvent, "focus");
33
30
  };
34
31
  export {
35
- x as usePopoverActivatorInteractions
32
+ c as usePopoverActivatorInteractions
36
33
  };
@@ -1,21 +1,20 @@
1
- import { h as f } from "../../../floating-ui.react-CPN4oQCc.js";
2
- import { useContext as m, useId as d, useMemo as x, useEffect as I } from "react";
3
- import { PopoverContext as a } from "./usePopover.js";
4
- const C = (i, s = null) => {
5
- const t = m(a), { ref: r, index: u } = f({ label: i }), o = d(), e = u === (t == null ? void 0 : t.activeIndex), c = x(() => {
6
- if (t)
7
- return e && !(t != null && t.isVirtualFocus) ? 0 : -1;
8
- }, [e, t]);
9
- return I(() => {
10
- var n;
11
- e && ((n = t == null ? void 0 : t.setVirtualFocus) == null || n.call(t, s));
12
- }, [e, t, s]), {
13
- id: o,
14
- isActiveInPopover: e,
15
- ref: r,
16
- tabIndex: t ? c : void 0
1
+ import { h as c } from "../../../floating-ui.react-BetVZ099.js";
2
+ import { useContext as p, useId as f, useMemo as m, useEffect as v } from "react";
3
+ import { PopoverContext as d } from "./usePopover.js";
4
+ const l = (r, t = null) => {
5
+ const e = p(d), { ref: s, index: n } = c({ label: r }), i = f(), o = n === e?.activeIndex, u = m(() => {
6
+ if (e)
7
+ return o && !e?.isVirtualFocus ? 0 : -1;
8
+ }, [o, e]);
9
+ return v(() => {
10
+ o && e?.setVirtualFocus?.(t);
11
+ }, [o, e, t]), {
12
+ id: i,
13
+ isActiveInPopover: o,
14
+ ref: s,
15
+ tabIndex: e ? u : void 0
17
16
  };
18
17
  };
19
18
  export {
20
- C as usePopoverItem
19
+ l as usePopoverItem
21
20
  };
@@ -1,32 +1,32 @@
1
- import { useMemo as a, useState as O, useEffect as R, useRef as r } from "react";
2
- import { x as d } from "../../../floating-ui.react-CPN4oQCc.js";
3
- const A = (l, n, e, t, i = 0) => {
4
- const s = a(
5
- () => !!(n && ["menu", "listbox"].includes(n)),
6
- [n]
7
- ), f = a(() => s ? e == null ? void 0 : e.focusItemOnOpen : !1, [e == null ? void 0 : e.focusItemOnOpen, s]), [o, u] = O(null);
8
- R(() => {
9
- l.open ? u(f ? i : null) : u(null);
10
- }, [l.open, f, i]);
11
- const c = r([]), v = r(null), I = d(l, {
12
- ...e,
13
- activeIndex: o,
14
- enabled: s,
1
+ import { useMemo as r, useState as O, useEffect as N, useRef as c } from "react";
2
+ import { x as R } from "../../../floating-ui.react-BetVZ099.js";
3
+ const b = (s, e, o, m, u = 0) => {
4
+ const t = r(
5
+ () => !!(e && ["menu", "listbox"].includes(e)),
6
+ [e]
7
+ ), l = r(() => t ? o?.focusItemOnOpen : !1, [o?.focusItemOnOpen, t]), [i, n] = O(null);
8
+ N(() => {
9
+ s.open ? n(l ? u : null) : n(null);
10
+ }, [s.open, l, u]);
11
+ const a = c([]), v = c(null), I = R(s, {
12
+ ...o,
13
+ activeIndex: i,
14
+ enabled: t,
15
15
  focusItemOnHover: !1,
16
- listRef: c,
17
- loop: n === "menu",
18
- onNavigate: (m) => {
19
- u(m), t == null || t(m);
16
+ listRef: a,
17
+ loop: e === "menu",
18
+ onNavigate: (f) => {
19
+ n(f), m?.(f);
20
20
  },
21
21
  virtualItemRef: v
22
22
  });
23
23
  return {
24
- activeIndex: o,
25
- list: c,
24
+ activeIndex: i,
25
+ list: a,
26
26
  listNav: I,
27
- setActiveIndex: u
27
+ setActiveIndex: n
28
28
  };
29
29
  };
30
30
  export {
31
- A as usePopoverNavigation
31
+ b as usePopoverNavigation
32
32
  };
@@ -1,10 +1,10 @@
1
1
  import { IressPopover as e } from "./Popover.js";
2
- import { popover as s } from "./Popover.styles.js";
3
- import { I as m } from "../../InputPopover-BWWuoQZ2.js";
4
- import { usePopoverItem as f } from "./hooks/usePopoverItem.js";
2
+ import { popover as t } from "./Popover.styles.js";
3
+ import { IressInputPopover as s } from "./InputPopover/InputPopover.js";
4
+ import { usePopoverItem as v } from "./hooks/usePopoverItem.js";
5
5
  export {
6
- m as IressInputPopover,
6
+ s as IressInputPopover,
7
7
  e as IressPopover,
8
- s as popover,
9
- f as usePopoverItem
8
+ t as popover,
9
+ v as usePopoverItem
10
10
  };
@@ -1,62 +1,56 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useState as v, useEffect as M } from "react";
3
- import { stringReplacer as b } from "../../helpers/formatting/stringReplacer.js";
4
- import { c as x } from "../../cva-B2x59Dph.js";
5
- import { c as C } from "../../cx-DN21T1EH.js";
6
- import { progress as h } from "./Progress.styles.js";
7
- import { s as c } from "../../factory-DHLOr79I.js";
8
- import { s as N } from "../../is-valid-prop-DFFvE05x.js";
9
- import { GlobalCSSClass as V } from "../../enums.js";
10
- import { t as j } from "../../index-DlGwAtoO.js";
11
- const A = ({
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { stringReplacer as v } from "../../helpers/formatting/stringReplacer.js";
3
+ import { c as P } from "../../css-fGu_jDvv.js";
4
+ import { c as S } from "../../cx-DN21T1EH.js";
5
+ import { progress as y } from "./Progress.styles.js";
6
+ import { s as n } from "../../factory-oPXoMw9H.js";
7
+ import { s as b } from "../../is-valid-prop-Ce0wiweq.js";
8
+ import { GlobalCSSClass as x } from "../../enums.js";
9
+ import { t as C } from "../../index-CZ9ot38T.js";
10
+ const V = ({
12
11
  borderRadius: e,
13
12
  className: p,
14
13
  max: r = 100,
15
14
  min: s,
16
- sectionTitle: f = "Progress is {{current}} of {{max}}",
17
- style: u,
18
- value: o = 0,
19
- ...d
15
+ sectionTitle: c = "Progress is {{current}} of {{max}}",
16
+ style: f,
17
+ value: u = 0,
18
+ ...g
20
19
  }) => {
21
- const [t, g] = v(o), [S, a] = N(d), l = C(
20
+ const [d, t] = b(g), a = S(
22
21
  p,
23
- x(h.raw(), S),
24
- V.Progress
25
- ), i = () => b(f, [
26
- { name: "{{current}}", value: String(t) },
22
+ P(y.raw(), d),
23
+ x.Progress
24
+ ), o = Math.min(Math.max(u, s ?? 0), r), i = () => v(c, [
25
+ { name: "{{current}}", value: String(o) },
27
26
  { name: "{{max}}", value: r.toString() }
28
- ]);
29
- M(() => {
30
- const P = Math.max(o, s ?? 0), y = Math.min(P, r);
31
- g(y);
32
- }, [o, s, r]);
33
- const m = {
34
- "--iress-border-radius": e ? j(`radii.${e}`) : void 0,
35
- ...u
27
+ ]), l = {
28
+ "--iress-border-radius": e ? C(`radii.${e}`) : void 0,
29
+ ...f
36
30
  };
37
- return s !== void 0 ? /* @__PURE__ */ n(
38
- c.meter,
31
+ return s !== void 0 ? /* @__PURE__ */ m(
32
+ n.meter,
39
33
  {
40
34
  "aria-label": i(),
41
- className: l,
35
+ className: a,
42
36
  max: r,
43
37
  min: s,
44
- value: t,
45
- ...a,
46
- style: m
38
+ value: o,
39
+ ...t,
40
+ style: l
47
41
  }
48
- ) : /* @__PURE__ */ n(
49
- c.progress,
42
+ ) : /* @__PURE__ */ m(
43
+ n.progress,
50
44
  {
51
45
  "aria-label": i(),
52
- className: l,
46
+ className: a,
53
47
  max: r,
54
- value: t,
55
- ...a,
56
- style: m
48
+ value: o,
49
+ ...t,
50
+ style: l
57
51
  }
58
52
  );
59
53
  };
60
54
  export {
61
- A as IressProgress
55
+ V as IressProgress
62
56
  };
@@ -1,4 +1,4 @@
1
- import { a as r } from "../../cva-B2x59Dph.js";
1
+ import { c as r } from "../../cva-JiDXAa83.js";
2
2
  const e = r({
3
3
  base: {
4
4
  appearance: "none",
@@ -13,20 +13,20 @@ const e = r({
13
13
  _progressBar: {
14
14
  bg: "transparent",
15
15
  height: "progress.height",
16
- margin: "spacing.000"
16
+ margin: "spacing.0"
17
17
  },
18
18
  _progressValue: {
19
19
  appearance: "none",
20
20
  bg: "[currentColor]",
21
21
  borderRadius: "var(--iress-border-radius)",
22
- margin: "spacing.000",
22
+ margin: "spacing.0",
23
23
  transition: "all"
24
24
  },
25
25
  _mozProgressValue: {
26
26
  appearance: "none",
27
27
  bg: "[currentColor]",
28
28
  borderRadius: "var(--iress-border-radius)",
29
- margin: "spacing.000",
29
+ margin: "spacing.0",
30
30
  transition: "all"
31
31
  }
32
32
  }
@@ -1,43 +1,20 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
1
+ import "react/jsx-runtime";
2
2
  import "../Modal/Modal.styles.js";
3
3
  import "react";
4
- import "../../Button-BXzmntRi.js";
4
+ import "../../Button-mmhMLwp9.js";
5
5
  import "../Button/CloseButton/CloseButton.js";
6
- import { IressModalProvider as l } from "../Modal/ModalProvider.js";
7
- import { I as n } from "../../ToasterProvider-XqpAGfRs.js";
6
+ import "../Modal/hooks/useModal.js";
7
+ import "../Modal/ModalProvider.js";
8
+ import "../Toaster/ToasterProvider.js";
9
+ import "../Toaster/hooks/useToaster.js";
8
10
  import "../Toaster/Toaster.styles.js";
9
11
  import "../Toaster/components/Toast/Toast.styles.js";
10
12
  import "../Slideout/Slideout.styles.js";
11
- import "../../index-DlGwAtoO.js";
12
- import { IressSlideoutProvider as h } from "../Slideout/SlideoutProvider.js";
13
- import { createPortal as e } from "react-dom";
14
- import { s as f } from "../../typography--vGt_ztU.js";
15
- const q = ({
16
- children: i,
17
- container: o,
18
- noDefaultFont: m,
19
- noIcons: t,
20
- position: p,
21
- ...d
22
- }) => /* @__PURE__ */ c(l, { container: o, children: [
23
- /* @__PURE__ */ r(n, { container: o, position: p, children: /* @__PURE__ */ r(h, { container: o, ...d, children: i }) }),
24
- !m && e(
25
- f.map((s) => /* @__PURE__ */ r("link", { rel: "stylesheet", href: s }, s)),
26
- document.head,
27
- "design-system-font"
28
- ),
29
- !t && e(
30
- /* @__PURE__ */ r(
31
- "link",
32
- {
33
- rel: "stylesheet",
34
- href: "https://cdn.iress.com/icons/5.15.4/css/combined.min.css"
35
- }
36
- ),
37
- document.head,
38
- "design-system-icons"
39
- )
40
- ] });
13
+ import "../../index-CZ9ot38T.js";
14
+ import "../Slideout/hooks/useSlideout.js";
15
+ import "../Slideout/SlideoutProvider.js";
16
+ import "react-dom";
17
+ import { I as h } from "../../Provider-8wS70V56.js";
41
18
  export {
42
- q as IressProvider
19
+ h as IressProvider
43
20
  };
@@ -1,4 +1,4 @@
1
- import { IressProvider as o } from "./Provider.js";
1
+ import { I as o } from "../../Provider-8wS70V56.js";
2
2
  export {
3
3
  o as IressProvider
4
4
  };