@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,45 +1,25 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { s as r } from "../../factory-DHLOr79I.js";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { s as r } from "../../factory-oPXoMw9H.js";
3
3
  import { text as s } from "./Text.styles.js";
4
- import { useMemo as n } from "react";
5
- import { c as a } from "../../cx-DN21T1EH.js";
6
- import { GlobalCSSClass as c } from "../../enums.js";
7
- const T = [
8
- "p",
9
- "div",
10
- "span",
11
- "h1",
12
- "h2",
13
- "h3",
14
- "h4",
15
- "h5",
16
- "h6",
17
- "code",
18
- "small",
19
- "cite",
20
- "caption",
21
- "strong",
22
- "em",
23
- "a",
24
- "blockquote",
25
- "pre"
26
- ], d = ({
27
- className: t,
28
- ...o
4
+ import { useMemo as i } from "react";
5
+ import { c as l } from "../../cx-DN21T1EH.js";
6
+ import { GlobalCSSClass as n } from "../../enums.js";
7
+ const d = ({
8
+ className: o,
9
+ ...m
29
10
  }) => {
30
- const e = n(
31
- () => r(o.element ?? "div", s),
32
- [o.element]
11
+ const t = i(
12
+ () => r(m.element ?? "div", s),
13
+ [m.element]
33
14
  );
34
- return /* @__PURE__ */ m(
35
- e,
15
+ return /* @__PURE__ */ e(
16
+ t,
36
17
  {
37
- ...o,
38
- className: a(t, c.Text)
18
+ ...m,
19
+ className: l(o, n.Text)
39
20
  }
40
21
  );
41
22
  };
42
23
  export {
43
- d as IressText,
44
- T as TEXT_ELEMENTS
24
+ d as IressText
45
25
  };
@@ -1,5 +1,5 @@
1
- import { m as a, s as n } from "../../cva-B2x59Dph.js";
2
- import { c as s, m as i } from "../../create-recipe-BqEnhJ30.js";
1
+ import { m as a, s as n } from "../../css-fGu_jDvv.js";
2
+ import { c as s, m as i } from "../../create-recipe-C-ASk1Hy.js";
3
3
  const e = /* @__PURE__ */ s("text", {
4
4
  element: "div"
5
5
  }, [
@@ -12,8 +12,8 @@ const e = /* @__PURE__ */ s("text", {
12
12
  css: {
13
13
  "& code": {
14
14
  textStyle: "typography.code",
15
- paddingBlock: "spacing.000",
16
- paddingInline: "spacing.100",
15
+ paddingBlock: "spacing.0",
16
+ paddingInline: "spacing.1",
17
17
  background: "colour.neutral.20",
18
18
  color: "colour.neutral.80",
19
19
  borderWidth: "0.5px",
@@ -33,6 +33,7 @@ const e = /* @__PURE__ */ s("text", {
33
33
  },
34
34
  "& a:not([class])": {
35
35
  color: "colour.primary.text",
36
+ fontWeight: "var(--iress-typography-body-md--medium-font-weight, 500)",
36
37
  textDecoration: "underline",
37
38
  _hover: {
38
39
  textDecoration: "none"
@@ -1,7 +1,6 @@
1
1
  import { text as t } from "./Text.styles.js";
2
- import { IressText as x, TEXT_ELEMENTS as E } from "./Text.js";
2
+ import { IressText as x } from "./Text.js";
3
3
  export {
4
4
  x as IressText,
5
- E as TEXT_ELEMENTS,
6
5
  t as text
7
6
  };
@@ -1,14 +1,62 @@
1
- import "react/jsx-runtime";
2
- import "react";
1
+ import { jsx as r, jsxs as u, Fragment as x } from "react/jsx-runtime";
2
+ import { useContext as b, useRef as v, useEffect as C, createElement as T } from "react";
3
3
  import "../Stack/Stack.styles.js";
4
- import "../Stack/Stack.js";
5
- import "../../floating-ui.react-CPN4oQCc.js";
6
- import "./Toaster.styles.js";
7
- import "../../cx-DN21T1EH.js";
8
- import "./components/Toast/ToastAnimated.js";
9
- import "../../factory-DHLOr79I.js";
10
- import "../../enums.js";
11
- import { a as b } from "../../ToasterProvider-XqpAGfRs.js";
4
+ import { IressStack as g } from "../Stack/Stack.js";
5
+ import { g as h } from "../../floating-ui.react-BetVZ099.js";
6
+ import { toaster as A } from "./Toaster.styles.js";
7
+ import { c as y } from "../../cx-DN21T1EH.js";
8
+ import { ToastAnimated as E } from "./components/Toast/ToastAnimated.js";
9
+ import { s as l } from "../../factory-oPXoMw9H.js";
10
+ import { GlobalCSSClass as S } from "../../enums.js";
11
+ import { ToasterContext as j } from "./hooks/useToaster.js";
12
+ const k = {
13
+ "bottom-end": "end-x",
14
+ "bottom-start": "start-x",
15
+ "bottom-center": "end-y",
16
+ "top-end": "end-x",
17
+ "top-start": "start-x",
18
+ "top-center": "start-y"
19
+ }, m = {
20
+ role: "alert",
21
+ "aria-relevant": "additions",
22
+ "aria-live": "assertive"
23
+ }, q = ({
24
+ className: d,
25
+ container: t,
26
+ position: a = "bottom-end",
27
+ toasts: n = [],
28
+ ...f
29
+ }) => {
30
+ const i = b(j), o = v(null), c = A({ position: a });
31
+ return C(() => {
32
+ if (!t)
33
+ return;
34
+ const e = t instanceof HTMLElement ? t : t.current;
35
+ Object.entries(m).forEach(([s, p]) => {
36
+ e?.setAttribute(s, String(p));
37
+ });
38
+ }, [t]), n.length ? /* @__PURE__ */ u(x, { children: [
39
+ !t && /* @__PURE__ */ r(l.div, { ref: o, ...m }),
40
+ /* @__PURE__ */ r(h, { root: t ?? o, children: /* @__PURE__ */ r(
41
+ g,
42
+ {
43
+ className: y(c.root, d, S.Toaster),
44
+ gap: "md",
45
+ ...f,
46
+ children: n.map((e) => /* @__PURE__ */ T(
47
+ E,
48
+ {
49
+ ...e,
50
+ animation: k[a],
51
+ key: e.id,
52
+ onClose: (s) => i?.remove(e.id, s),
53
+ onTimeout: () => i?.remove(e.id)
54
+ }
55
+ ))
56
+ }
57
+ ) })
58
+ ] }) : t ? null : /* @__PURE__ */ r(l.div, { ref: o, ...m });
59
+ };
12
60
  export {
13
- b as Toaster
61
+ q as Toaster
14
62
  };
@@ -1,4 +1,4 @@
1
- import { s as t } from "../../sva-TRyehFkb.js";
1
+ import { s as t } from "../../sva-OmxClA9g.js";
2
2
  const n = t({
3
3
  slots: ["root"],
4
4
  base: {
@@ -8,7 +8,7 @@ const n = t({
8
8
  width: "[500px]",
9
9
  maxWidth: "[100%]",
10
10
  zIndex: "500",
11
- padding: "spacing.700",
11
+ padding: "spacing.7",
12
12
  boxSizing: "border-box",
13
13
  "&:empty": {
14
14
  display: "none"
@@ -1,8 +1,51 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import { I as a, T as i } from "../../ToasterProvider-XqpAGfRs.js";
4
- import "./helpers/toasterRegister.js";
1
+ import { jsxs as x, jsx as g } from "react/jsx-runtime";
2
+ import { useState as C, useCallback as a, useMemo as h, useEffect as j } from "react";
3
+ import { Toaster as v } from "./Toaster.js";
4
+ import { registerToaster as w, unregisterToaster as I } from "./helpers/toasterRegister.js";
5
+ import { ToasterContext as P } from "./hooks/useToaster.js";
6
+ const S = ({
7
+ children: d,
8
+ id: s,
9
+ position: n,
10
+ ...p
11
+ }) => {
12
+ const [T, m] = C([]), i = a(
13
+ (t, r) => {
14
+ m((e) => (e?.find((o) => o.id === t)?.onClose?.(r), e?.filter((o) => o.id !== t)));
15
+ },
16
+ []
17
+ ), f = a(
18
+ (t, r) => {
19
+ const e = r.id ?? `${(/* @__PURE__ */ new Date()).getTime()}`, c = n?.includes("top");
20
+ return m((o = []) => [
21
+ ...c ? [] : o,
22
+ { ...r, id: e, status: t },
23
+ ...c ? o : []
24
+ ]), e;
25
+ },
26
+ [n]
27
+ ), l = a((t) => {
28
+ m(
29
+ (r) => r?.map(
30
+ (e) => e.id === t ? { ...e, timeout: 100 } : e
31
+ )
32
+ );
33
+ }, []), u = h(
34
+ () => ({
35
+ close: l,
36
+ remove: i,
37
+ show: f
38
+ }),
39
+ [l, i, f]
40
+ );
41
+ return j(() => {
42
+ if (s)
43
+ return w(s, u), () => I(s);
44
+ }, [s, u]), /* @__PURE__ */ x(P.Provider, { value: u, children: [
45
+ d,
46
+ /* @__PURE__ */ g(v, { id: s, position: n, ...p, toasts: T })
47
+ ] });
48
+ };
5
49
  export {
6
- a as IressToasterProvider,
7
- i as ToasterContext
50
+ S as IressToasterProvider
8
51
  };
@@ -1,86 +1,86 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { propagateTestid as c } from "../../../../helpers/utility/propagateTestid.js";
3
- import "../../../../Button-BXzmntRi.js";
1
+ import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
+ import { propagateTestid as i } from "../../../../helpers/utility/propagateTestid.js";
3
+ import "../../../../Button-mmhMLwp9.js";
4
4
  import { IressCloseButton as h } from "../../../Button/CloseButton/CloseButton.js";
5
5
  import "../../../Inline/Inline.styles.js";
6
6
  import { IressInline as y } from "../../../Inline/Inline.js";
7
7
  import { IressText as N } from "../../../Text/Text.js";
8
- import { forwardRef as T } from "react";
9
- import { c as b } from "../../../../cx-DN21T1EH.js";
10
- import { toast as g } from "./Toast.styles.js";
11
- import { s as v } from "../../../../factory-DHLOr79I.js";
12
- import { IressIcon as S } from "../../../Icon/Icon.js";
8
+ import { forwardRef as b } from "react";
9
+ import { c as g } from "../../../../cx-DN21T1EH.js";
10
+ import { toast as v } from "./Toast.styles.js";
11
+ import { s as C } from "../../../../factory-oPXoMw9H.js";
12
+ import { IressIcon as I } from "../../../Icon/Icon.js";
13
13
  import "../../../Icon/Icon.styles.js";
14
- import { GlobalCSSClass as I } from "../../../../enums.js";
15
- const F = ["success", "error", "info"], A = {
14
+ import { GlobalCSSClass as T } from "../../../../enums.js";
15
+ const S = {
16
16
  error: "colour.system.danger.text",
17
17
  success: "colour.system.success.text",
18
18
  info: "colour.system.info.text"
19
- }, _ = {
19
+ }, j = {
20
20
  error: "ban",
21
21
  success: "check",
22
22
  info: "info-square"
23
- }, j = T(
23
+ }, k = b(
24
24
  ({
25
- heading: t,
26
- status: o,
27
- actions: a,
28
- children: n,
29
- content: l,
30
- dismissible: d = !0,
31
- onClose: i,
25
+ heading: e,
26
+ status: t,
27
+ actions: c,
28
+ children: m,
29
+ content: n,
30
+ dismissible: l = !0,
31
+ onClose: d,
32
32
  "data-testid": s,
33
33
  className: p,
34
34
  ...f
35
- }, u) => {
36
- const e = g({ status: o });
37
- return /* @__PURE__ */ r(
38
- v.div,
35
+ }, x) => {
36
+ const r = v({ status: t });
37
+ return /* @__PURE__ */ o(
38
+ C.div,
39
39
  {
40
40
  ...f,
41
41
  "data-testid": s,
42
- className: b(p, e.root, I.Toast),
42
+ className: g(p, r.root, T.Toast),
43
43
  tabIndex: -1,
44
- ref: u,
45
- children: /* @__PURE__ */ r("div", { className: e.panel, children: /* @__PURE__ */ m(y, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
46
- /* @__PURE__ */ r(
47
- S,
44
+ ref: x,
45
+ children: /* @__PURE__ */ o("div", { className: r.panel, children: /* @__PURE__ */ a(y, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
46
+ /* @__PURE__ */ o(
47
+ I,
48
48
  {
49
- name: _[o],
50
- screenreaderText: `${o}: `,
49
+ name: j[t],
50
+ screenreaderText: `${t}: `,
51
51
  textStyle: "typography.body.lg",
52
52
  fixedWidth: !0,
53
- color: A[o]
53
+ color: S[t]
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ m(
56
+ /* @__PURE__ */ a(
57
57
  "div",
58
58
  {
59
- className: e.wrapper,
60
- "data-testid": c(s, "content"),
59
+ className: r.wrapper,
60
+ "data-testid": i(s, "content"),
61
61
  children: [
62
- t && /* @__PURE__ */ r(
62
+ e && /* @__PURE__ */ o(
63
63
  N,
64
64
  {
65
- className: e.heading,
66
- "data-testid": c(s, "heading"),
67
- children: typeof t == "string" ? /* @__PURE__ */ r("h2", { children: t }) : t
65
+ className: r.heading,
66
+ "data-testid": i(s, "heading"),
67
+ children: typeof e == "string" ? /* @__PURE__ */ o("h2", { children: e }) : e
68
68
  }
69
69
  ),
70
- d && /* @__PURE__ */ r(
70
+ l && /* @__PURE__ */ o(
71
71
  h,
72
72
  {
73
- "data-testid": c(
73
+ "data-testid": i(
74
74
  s,
75
75
  "close-button__button"
76
76
  ),
77
- className: e.closeButton,
78
- onClick: (x) => i == null ? void 0 : i(x),
77
+ className: r.closeButton,
78
+ onClick: (u) => d?.(u),
79
79
  screenreaderText: "Dismiss"
80
80
  }
81
81
  ),
82
- /* @__PURE__ */ r("div", { className: e.content, children: l ?? n }),
83
- a && /* @__PURE__ */ r("div", { className: e.footer, children: a })
82
+ /* @__PURE__ */ o("div", { className: r.content, children: n ?? m }),
83
+ c && /* @__PURE__ */ o("div", { className: r.footer, children: c })
84
84
  ]
85
85
  }
86
86
  )
@@ -89,8 +89,7 @@ const F = ["success", "error", "info"], A = {
89
89
  );
90
90
  }
91
91
  );
92
- j.displayName = "Toast";
92
+ k.displayName = "Toast";
93
93
  export {
94
- F as TOAST_STATUS,
95
- j as Toast
94
+ k as Toast
96
95
  };
@@ -1,4 +1,4 @@
1
- import { s as o } from "../../../../sva-TRyehFkb.js";
1
+ import { s as o } from "../../../../sva-OmxClA9g.js";
2
2
  const n = o({
3
3
  slots: [
4
4
  "root",
@@ -26,25 +26,25 @@ const n = o({
26
26
  panel: {
27
27
  borderWidth: "1px",
28
28
  borderRadius: "radius.system.form",
29
- padding: "spacing.400",
29
+ padding: "spacing.4",
30
30
  textStyle: "typography.body.md.regular"
31
31
  },
32
32
  wrapper: {
33
33
  lineHeight: "1.5",
34
- paddingRight: "spacing.600"
34
+ paddingRight: "spacing.6"
35
35
  },
36
36
  icon: {
37
37
  lineHeight: "normal"
38
38
  },
39
39
  heading: {
40
40
  display: "inline-block",
41
- marginBottom: "spacing.100",
42
- marginRight: "spacing.100",
41
+ marginBottom: "spacing.1",
42
+ marginRight: "spacing.1",
43
43
  "&:empty": {
44
44
  display: "none"
45
45
  },
46
46
  "& > h2, & > h3, & > h4, & > h5, & > h6": {
47
- marginBlock: "spacing.000",
47
+ marginBlock: "spacing.0",
48
48
  textStyle: "typography.body.md.strong"
49
49
  }
50
50
  },
@@ -52,12 +52,12 @@ const n = o({
52
52
  noGutter: !0
53
53
  },
54
54
  footer: {
55
- paddingBlockStart: "spacing.200"
55
+ paddingBlockStart: "spacing.2"
56
56
  },
57
57
  closeButton: {
58
58
  position: "absolute",
59
- top: "spacing.050",
60
- right: "spacing.050"
59
+ top: "spacing.1",
60
+ right: "spacing.1"
61
61
  }
62
62
  },
63
63
  variants: {
@@ -97,24 +97,24 @@ const n = o({
97
97
  "start-x": {
98
98
  root: {
99
99
  insetInlineStart: "[-100%]",
100
- ms: "spacing.400"
100
+ ms: "spacing.4"
101
101
  }
102
102
  },
103
103
  "end-x": {
104
104
  root: {
105
105
  insetInlineEnd: "[-100%]",
106
- me: "spacing.400"
106
+ me: "spacing.4"
107
107
  }
108
108
  },
109
109
  "start-y": {
110
110
  root: {
111
- mt: "spacing.400",
111
+ mt: "spacing.4",
112
112
  transform: "[translateY(-100%)]"
113
113
  }
114
114
  },
115
115
  "end-y": {
116
116
  root: {
117
- mb: "spacing.400",
117
+ mb: "spacing.4",
118
118
  transform: "[translateY(100%)]"
119
119
  }
120
120
  },
@@ -1,51 +1,52 @@
1
- import { jsx as x } from "react/jsx-runtime";
2
- import { useState as S, useRef as F, useEffect as c } from "react";
3
- import { getTransitionDuration as O } from "../../../../helpers/transition/getTransitionDuration.js";
4
- import { u as R, e as T } from "../../../../floating-ui.react-CPN4oQCc.js";
5
- import { toast as h } from "./Toast.styles.js";
6
- import { c as j } from "../../../../cx-DN21T1EH.js";
7
- import { Toast as A } from "./Toast.js";
8
- const v = ({
1
+ import { jsx as T } from "react/jsx-runtime";
2
+ import { useState as x, useEffect as f } from "react";
3
+ import { getTransitionDuration as S } from "../../../../helpers/transition/getTransitionDuration.js";
4
+ import { u as C, e as F } from "../../../../floating-ui.react-BetVZ099.js";
5
+ import { toast as O } from "./Toast.styles.js";
6
+ import { c as h } from "../../../../cx-DN21T1EH.js";
7
+ import { Toast as j } from "./Toast.js";
8
+ const q = ({
9
9
  animation: u,
10
- className: m,
11
- onClose: n,
12
- onTimeout: s,
13
- timeout: o = 6e3,
14
- ...p
10
+ className: c,
11
+ onClose: m,
12
+ onTimeout: a,
13
+ timeout: s = 6e3,
14
+ ...l
15
15
  }) => {
16
- const [l, f] = S(!0), a = F(240), { context: e } = R({
17
- open: l,
18
- onOpenChange: f
19
- }), { isMounted: d, status: r } = T(e, {
20
- duration: a.current
16
+ const [p, r] = x(!0);
17
+ let e = 240;
18
+ const { context: t } = C({
19
+ open: p,
20
+ onOpenChange: r
21
21
  });
22
- if (c(() => {
23
- o && setTimeout(() => {
24
- f(!1), setTimeout(() => s == null ? void 0 : s(), a.current);
25
- }, o);
26
- }, [s, o]), c(() => {
27
- var t;
28
- r === "initial" && (a.current = O(
29
- e.refs.floating.current
30
- )), r === "open" && ((t = e.refs.floating.current) == null || t.focus());
31
- }, [r, e.refs.floating]), !d) return !1;
32
- const i = r === "close" ? "closed" : r, g = h({
22
+ t.refs.floating.current && (e = S(t.refs.floating.current));
23
+ const { isMounted: g, status: o } = F(t, {
24
+ duration: e
25
+ });
26
+ if (f(() => {
27
+ s && setTimeout(() => {
28
+ r(!1), setTimeout(() => a?.(), e);
29
+ }, s);
30
+ }, [e, a, s]), f(() => {
31
+ o === "open" && t.refs.floating.current?.focus();
32
+ }, [o, t.refs.floating]), !g) return !1;
33
+ const i = o === "close" ? "closed" : o, d = O({
33
34
  animation: u ?? "fade",
34
35
  transitionState: i
35
36
  });
36
- return /* @__PURE__ */ x(
37
- A,
37
+ return /* @__PURE__ */ T(
38
+ j,
38
39
  {
39
- ...p,
40
- className: j(m, g.root),
40
+ ...l,
41
+ className: h(c, d.root),
41
42
  "data-state": i,
42
- onClose: (t) => {
43
- f(!1), setTimeout(() => n == null ? void 0 : n(t), a.current);
43
+ onClose: (n) => {
44
+ r(!1), setTimeout(() => m?.(n), e);
44
45
  },
45
- ref: (t) => e.refs.setFloating(t)
46
+ ref: (n) => t.refs.setFloating(n)
46
47
  }
47
48
  );
48
49
  };
49
50
  export {
50
- v as ToastAnimated
51
+ q as ToastAnimated
51
52
  };
@@ -1,37 +1,39 @@
1
- import { useContext as f, useCallback as u, useMemo as a } from "react";
2
- import { T as h } from "../../../ToasterProvider-XqpAGfRs.js";
3
- import { getToaster as w } from "../helpers/toasterRegister.js";
4
- const l = (o) => {
5
- const s = f(h);
6
- if (s === void 0)
1
+ import { createContext as w, useContext as i, useCallback as a, useMemo as T } from "react";
2
+ import { getToaster as f } from "../helpers/toasterRegister.js";
3
+ const h = w(
4
+ void 0
5
+ ), n = (o) => typeof o != "string" ? o : { content: o }, l = (o) => {
6
+ const t = i(h);
7
+ if (t === void 0)
7
8
  throw new Error("useToaster must be used within a IressToasterProvider");
8
- const t = u(
9
- (r, e) => {
10
- const n = o ? w(o) : s;
11
- if (!n && o)
9
+ const e = a(
10
+ (r, s) => {
11
+ const u = o ? f(o) : t;
12
+ if (!u && o)
12
13
  throw new Error(`Toaster with id "${o}" not found.`);
13
- return (n == null ? void 0 : n.show(r, e)) ?? "";
14
+ return u?.show(r, s) ?? "";
14
15
  },
15
- [s, o]
16
- ), c = u(
16
+ [t, o]
17
+ ), c = a(
17
18
  (r) => {
18
- const e = o ? w(o) : s;
19
- if (!e && o)
19
+ const s = o ? f(o) : t;
20
+ if (!s && o)
20
21
  throw new Error(`Toaster with id "${o}" not found.`);
21
- e == null || e.close(r);
22
+ s?.close(r);
22
23
  },
23
- [s, o]
24
+ [t, o]
24
25
  );
25
- return a(
26
+ return T(
26
27
  () => ({
27
- success: (r) => t("success", r),
28
- error: (r) => t("error", r),
29
- info: (r) => t("info", r),
28
+ success: (r) => e("success", n(r)),
29
+ error: (r) => e("error", n(r)),
30
+ info: (r) => e("info", n(r)),
30
31
  close: c
31
32
  }),
32
- [c, t]
33
+ [c, e]
33
34
  );
34
35
  };
35
36
  export {
37
+ h as ToasterContext,
36
38
  l as useToaster
37
39
  };
@@ -1,10 +1,11 @@
1
- import { I as e } from "../../ToasterProvider-XqpAGfRs.js";
2
- import { useToaster as s } from "./hooks/useToaster.js";
1
+ import { IressToasterProvider as t } from "./ToasterProvider.js";
2
+ import { ToasterContext as s, useToaster as a } from "./hooks/useToaster.js";
3
3
  import { toaster as f } from "./Toaster.styles.js";
4
4
  import { toast as p } from "./components/Toast/Toast.styles.js";
5
5
  export {
6
- e as IressToasterProvider,
6
+ t as IressToasterProvider,
7
+ s as ToasterContext,
7
8
  p as toast,
8
9
  f as toaster,
9
- s as useToaster
10
+ a as useToaster
10
11
  };