@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,4 +1,4 @@
1
- import { I as s, b as r } from "../../Button-BXzmntRi.js";
1
+ import { I as s, b as r } from "../../Button-mmhMLwp9.js";
2
2
  import { IressCloseButton as n } from "./CloseButton/CloseButton.js";
3
3
  export {
4
4
  s as IressButton,
@@ -4,7 +4,7 @@ import { useIdIfNeeded as b } from "../../hooks/useIdIfNeeded.js";
4
4
  import { propagateTestid as v } from "../../helpers/utility/propagateTestid.js";
5
5
  import { buttonGroup as G } from "./ButtonGroup.styles.js";
6
6
  import { c as x } from "../../cx-DN21T1EH.js";
7
- import { s as N } from "../../factory-DHLOr79I.js";
7
+ import { s as N } from "../../factory-oPXoMw9H.js";
8
8
  import { ButtonGroupProvider as h } from "./ButtonGroupProvider.js";
9
9
  import { GlobalCSSClass as B } from "../../enums.js";
10
10
  const w = ({
@@ -1,4 +1,4 @@
1
- import { s as r } from "../../sva-TRyehFkb.js";
1
+ import { s as r } from "../../sva-OmxClA9g.js";
2
2
  const s = r({
3
3
  slots: ["root", "label", "values"],
4
4
  base: {
@@ -1,22 +1,21 @@
1
- import { useContext as i } from "react";
2
- import { ButtonGroupContext as s } from "../ButtonGroupProvider.js";
3
- const m = ({
4
- value: e
1
+ import { useContext as e } from "react";
2
+ import { ButtonGroupContext as i } from "../ButtonGroupProvider.js";
3
+ const p = ({
4
+ value: t
5
5
  }) => {
6
- const t = i(s);
7
- if (!t) return;
8
- const o = t.isActive(e);
6
+ const o = e(i);
7
+ if (!o) return;
8
+ const r = o.isActive(t);
9
9
  return {
10
- active: o,
10
+ active: r,
11
11
  props: {
12
- "aria-pressed": o
12
+ "aria-pressed": r
13
13
  },
14
14
  toggle() {
15
- var r;
16
- e !== void 0 && ((r = t == null ? void 0 : t.toggle) == null || r.call(t, e, !o));
15
+ t !== void 0 && o?.toggle?.(t, !r);
17
16
  }
18
17
  };
19
18
  };
20
19
  export {
21
- m as useButtonGroupItem
20
+ p as useButtonGroupItem
22
21
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as k, Fragment as P } from "react/jsx-runtime";
2
- import { s as j } from "../../is-valid-prop-DFFvE05x.js";
2
+ import { s as j } from "../../is-valid-prop-Ce0wiweq.js";
3
3
  import { card as M } from "./Card.styles.js";
4
- import { c as e } from "../../cva-B2x59Dph.js";
4
+ import { c as e } from "../../css-fGu_jDvv.js";
5
5
  import { c as w } from "../../cx-DN21T1EH.js";
6
6
  import { propagateTestid as r } from "../../helpers/utility/propagateTestid.js";
7
7
  import { useMemo as B } from "react";
@@ -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 e = t({
3
3
  slots: ["root", "prepend", "heading", "topRight", "media", "body", "footer"],
4
4
  base: {
@@ -11,7 +11,7 @@ const e = t({
11
11
  textStyle: "typography.body.md.regular",
12
12
  textAlign: "start",
13
13
  noGutter: !0,
14
- padding: "spacing.400",
14
+ padding: "spacing.4",
15
15
  transition: "all",
16
16
  _focus: {
17
17
  layerStyle: "elevation.focus"
@@ -19,14 +19,14 @@ const e = t({
19
19
  },
20
20
  prepend: {
21
21
  gridArea: "prepend",
22
- padding: "spacing.400"
22
+ padding: "spacing.4"
23
23
  },
24
24
  heading: {
25
25
  gridArea: "heading",
26
- padding: "spacing.400",
26
+ padding: "spacing.4",
27
27
  "& > h1:not([class]), & > h2:not([class]), & > h3:not([class]), & > h4:not([class]), & > h5:not([class]), & > h6:not([class])": {
28
28
  textStyle: "typography.heading.4",
29
- mb: "spacing.000"
29
+ mb: "spacing.0"
30
30
  },
31
31
  "& a": {
32
32
  color: "colour.primary.text",
@@ -38,11 +38,11 @@ const e = t({
38
38
  },
39
39
  topRight: {
40
40
  gridArea: "topRight",
41
- padding: "spacing.200"
41
+ padding: "spacing.2"
42
42
  },
43
43
  media: {
44
44
  gridArea: "media",
45
- padding: "spacing.000",
45
+ padding: "spacing.0",
46
46
  borderRadius: "radius.system.layout",
47
47
  overflow: "hidden",
48
48
  "& img": {
@@ -57,11 +57,11 @@ const e = t({
57
57
  },
58
58
  body: {
59
59
  gridArea: "body",
60
- padding: "spacing.400"
60
+ padding: "spacing.4"
61
61
  },
62
62
  footer: {
63
63
  gridArea: "footer",
64
- padding: "spacing.400",
64
+ padding: "spacing.4",
65
65
  borderBlockStart: "divider"
66
66
  }
67
67
  },
@@ -123,7 +123,7 @@ const e = t({
123
123
  gridTemplateAreas: '"prepend body topRight" "footer footer footer"',
124
124
  gridAutoColumns: "[minmax(0, min-content) auto min-content]",
125
125
  gridAutoRows: "[auto min-content]",
126
- padding: "spacing.000"
126
+ padding: "spacing.0"
127
127
  }
128
128
  }
129
129
  },
@@ -136,7 +136,7 @@ const e = t({
136
136
  hasMedia: {
137
137
  true: {
138
138
  root: {
139
- padding: "spacing.000"
139
+ padding: "spacing.0"
140
140
  }
141
141
  }
142
142
  }
@@ -153,11 +153,11 @@ const e = t({
153
153
  },
154
154
  heading: {
155
155
  "&:not(:last-child)": {
156
- paddingBlockEnd: "spacing.200"
156
+ paddingBlockEnd: "spacing.2"
157
157
  }
158
158
  },
159
159
  body: {
160
- paddingBlockStart: "spacing.000"
160
+ paddingBlockStart: "spacing.0"
161
161
  }
162
162
  }
163
163
  },
@@ -170,7 +170,7 @@ const e = t({
170
170
  gridAutoColumns: "[minmax(0, min-content) auto]",
171
171
  gridAutoRows: "[min-content auto min-content]",
172
172
  position: "relative",
173
- padding: "spacing.000"
173
+ padding: "spacing.0"
174
174
  }
175
175
  }
176
176
  },
@@ -185,7 +185,7 @@ const e = t({
185
185
  gridAutoRows: "[min-content min-content auto min-content]"
186
186
  },
187
187
  topRight: {
188
- pt: "spacing.250"
188
+ pt: "spacing.3"
189
189
  }
190
190
  }
191
191
  },
@@ -194,10 +194,10 @@ const e = t({
194
194
  hasPrepend: !0,
195
195
  css: {
196
196
  heading: {
197
- paddingInlineStart: "spacing.000"
197
+ paddingInlineStart: "spacing.0"
198
198
  },
199
199
  body: {
200
- paddingInlineStart: "spacing.000"
200
+ paddingInlineStart: "spacing.0"
201
201
  }
202
202
  }
203
203
  }
@@ -1,127 +1,126 @@
1
- import { jsx as m, jsxs as y } from "react/jsx-runtime";
2
- import { forwardRef as W, useRef as X, useId as Y, useState as Z, useContext as _, useCallback as $, useImperativeHandle as E } from "react";
3
- import { getFormControlValueAsString as b } from "../../helpers/form/getFormControlValueAsString.js";
4
- import { IressCheckboxMark as G } from "../CheckboxMark/CheckboxMark.js";
1
+ import { jsx as c, jsxs as I } from "react/jsx-runtime";
2
+ import { forwardRef as K, useRef as L, useId as Q, useState as W, useContext as X, useCallback as Y, useImperativeHandle as Z } from "react";
3
+ import { getFormControlValueAsString as g } from "../../helpers/form/getFormControlValueAsString.js";
4
+ import { IressCheckboxMark as _ } from "../CheckboxMark/CheckboxMark.js";
5
5
  import "../CheckboxMark/CheckboxMark.styles.js";
6
- import { useControlledState as ee } from "../../hooks/useControlledState.js";
7
- import { IressReadonly as te } from "../Readonly/Readonly.js";
6
+ import { useControlledState as $ } from "../../hooks/useControlledState.js";
7
+ import { IressReadonly as ee } from "../Readonly/Readonly.js";
8
8
  import "../Readonly/Readonly.styles.js";
9
9
  import { checkbox as oe } from "./Checkbox.styles.js";
10
- import { c as l } from "../../cva-B2x59Dph.js";
11
- import { c as g } from "../../cx-DN21T1EH.js";
12
- import { propagateTestid as se } from "../../helpers/utility/propagateTestid.js";
13
- import { getCheckboxGroupContext as re } from "../CheckboxGroup/CheckboxGroup.js";
10
+ import { c as l } from "../../css-fGu_jDvv.js";
11
+ import { c as y } from "../../cx-DN21T1EH.js";
12
+ import { propagateTestid as te } from "../../helpers/utility/propagateTestid.js";
13
+ import { getCheckboxGroupContext as se } from "../CheckboxGroup/CheckboxGroup.js";
14
14
  import "../CheckboxGroup/CheckboxGroup.styles.js";
15
- import { GlobalCSSClass as d } from "../../enums.js";
16
- import { s as F } from "../../factory-DHLOr79I.js";
17
- import { s as ne } from "../../is-valid-prop-DFFvE05x.js";
18
- import { IressText as ae } from "../Text/Text.js";
19
- import { useNoDefaultValueInForms as ie } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
20
- const me = ({
15
+ import { GlobalCSSClass as i } from "../../enums.js";
16
+ import { s as F } from "../../factory-oPXoMw9H.js";
17
+ import { s as re } from "../../is-valid-prop-Ce0wiweq.js";
18
+ import { IressText as ne } from "../Text/Text.js";
19
+ import { useNoDefaultValueInForms as ce } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
20
+ const ae = ({
21
21
  checked: S,
22
22
  className: V,
23
- defaultChecked: c,
24
- hiddenControl: v,
25
- hiddenLabel: N,
26
- indeterminate: p,
27
- id: R,
28
- name: w,
29
- onChange: i,
30
- value: t,
31
- children: u,
32
- readOnly: P,
23
+ defaultChecked: d,
24
+ hiddenControl: N,
25
+ hiddenLabel: R,
26
+ indeterminate: u,
27
+ id: G,
28
+ name: v,
29
+ onChange: p,
30
+ value: o,
31
+ children: h,
32
+ readOnly: w,
33
33
  touch: j,
34
34
  "data-testid": f,
35
- ...h
36
- }, H) => {
37
- ie({
35
+ ...k
36
+ }, E) => {
37
+ ce({
38
38
  component: "IressCheckbox",
39
- defaultValue: c,
39
+ defaultValue: d,
40
40
  message: "Using the `defaultChecked` prop on an `IressCheckbox` inside an `IressForm` component is not supported. Please use the `defaultValue` prop on the `IressFormField`, or use `defaultValues` on the `IressForm` component (recommended) to ensure a single source of truth for your form."
41
41
  });
42
- const C = X(null), o = C.current, M = Y(), k = R ?? M, [T, q] = Z(
43
- p ?? !1
44
- ), e = _(re()), A = e ? void 0 : c, D = e && t ? e.value.includes(t) : S, O = (e == null ? void 0 : e.hiddenCheckbox) ?? v, U = (e == null ? void 0 : e.touch) ?? j, z = (e == null ? void 0 : e.readOnly) ?? P, B = (e == null ? void 0 : e.name) ?? w, {
45
- value: s,
46
- setValue: I,
47
- isControlled: r
48
- } = ee({
42
+ const C = L(null), a = C.current, H = Q(), b = G ?? H, [M, P] = W(
43
+ u ?? !1
44
+ ), e = X(se()), T = e ? void 0 : d, q = e?.hiddenCheckbox ?? N, A = e?.touch ?? j, D = e?.readOnly ?? w, O = e?.name ?? v;
45
+ let m = S;
46
+ e && o ? m = e.value.includes(o) : !e && typeof o == "boolean" && (m = o);
47
+ const {
48
+ value: t,
49
+ setValue: x,
50
+ isControlled: s
51
+ } = $({
49
52
  component: "IressCheckbox",
50
53
  propName: "checked",
51
- defaultValue: A,
52
- value: D
53
- }), J = r ? p : T, K = $(
54
- (a) => {
55
- var x;
56
- r || q(!1), I(a.target.checked), i == null || i(a, a.target.checked, t), (x = e == null ? void 0 : e.onChange) == null || x.call(e, a, a.target.checked, t);
54
+ defaultValue: T,
55
+ value: m
56
+ }), U = s ? u : M, z = Y(
57
+ (n) => {
58
+ s || P(!1), x(n.target.checked), p?.(n, n.target.checked, o), e?.onChange?.(n, n.target.checked, o);
57
59
  },
58
- [e, r, i, I, t]
60
+ [e, s, p, x, o]
59
61
  );
60
- if (E(H, () => ({
61
- focus: () => o == null ? void 0 : o.focus(),
62
- blur: () => o == null ? void 0 : o.blur(),
63
- input: o,
64
- extras: {
65
- valueProp: "checked"
66
- }
67
- })), z)
68
- return s ? /* @__PURE__ */ m(
69
- te,
62
+ if (Z(E, () => ({
63
+ focus: () => a?.focus(),
64
+ blur: () => a?.blur(),
65
+ input: a
66
+ })), D)
67
+ return t ? /* @__PURE__ */ c(
68
+ ee,
70
69
  {
71
- ...h,
70
+ ...k,
72
71
  width: void 0,
73
- value: b(t),
74
- children: u
72
+ value: g(o),
73
+ children: h
75
74
  }
76
75
  ) : null;
77
- const n = oe.raw({
78
- hiddenControl: O,
79
- hiddenLabel: N,
80
- touch: U,
81
- checked: s
82
- }), [L, Q] = ne(h);
83
- return /* @__PURE__ */ y(
76
+ const r = oe.raw({
77
+ hiddenControl: q,
78
+ hiddenLabel: R,
79
+ touch: A,
80
+ checked: t
81
+ }), [B, J] = re(k);
82
+ return /* @__PURE__ */ I(
84
83
  "div",
85
84
  {
86
85
  "data-testid": f,
87
- className: g(
86
+ className: y(
88
87
  V,
89
- l(n.root, L),
90
- d.Group,
91
- d.Checkbox
88
+ l(r.root, B),
89
+ i.Group,
90
+ i.Checkbox
92
91
  ),
93
92
  children: [
94
- /* @__PURE__ */ m(
93
+ /* @__PURE__ */ c(
95
94
  F.input,
96
95
  {
97
- ...Q,
98
- ...n.input,
99
- value: b(t),
96
+ ...J,
97
+ ...r.input,
98
+ value: g(o),
100
99
  type: "checkbox",
101
- id: k,
102
- defaultChecked: r ? void 0 : s,
103
- checked: r ? s : void 0,
104
- onChange: K,
100
+ id: b,
101
+ defaultChecked: s ? void 0 : t,
102
+ checked: s ? t : void 0,
103
+ onChange: z,
105
104
  ref: C,
106
- name: B
105
+ name: O
107
106
  }
108
107
  ),
109
- /* @__PURE__ */ y(F.label, { htmlFor: k, ...n.label, children: [
110
- /* @__PURE__ */ m(
111
- G,
108
+ /* @__PURE__ */ I(F.label, { htmlFor: b, ...r.label, children: [
109
+ /* @__PURE__ */ c(
110
+ _,
112
111
  {
113
- className: g(l(n.mark), d.FormElement),
114
- checked: s,
115
- indeterminate: J,
116
- "data-testid": se(f, "checkboxMark")
112
+ className: y(l(r.mark), i.FormElement),
113
+ checked: t,
114
+ indeterminate: U,
115
+ "data-testid": te(f, "checkboxMark")
117
116
  }
118
117
  ),
119
- /* @__PURE__ */ m(ae, { element: "span", className: l(n.labelSpan), children: u })
118
+ /* @__PURE__ */ c(ne, { element: "span", className: l(r.labelSpan), children: h })
120
119
  ] })
121
120
  ]
122
121
  }
123
122
  );
124
- }, Re = W(me);
123
+ }, Re = K(ae);
125
124
  export {
126
125
  Re as IressCheckbox
127
126
  };
@@ -1,4 +1,4 @@
1
- import { s as r } from "../../sva-TRyehFkb.js";
1
+ import { s as r } from "../../sva-OmxClA9g.js";
2
2
  const o = r({
3
3
  slots: [
4
4
  "formElement",
@@ -24,14 +24,14 @@ const o = r({
24
24
  label: {
25
25
  position: "relative",
26
26
  lineHeight: "1.5",
27
- margin: "spacing.000",
27
+ margin: "spacing.0",
28
28
  display: "inline-flex",
29
29
  cursor: "pointer"
30
30
  },
31
31
  labelSpan: {},
32
32
  mark: {
33
33
  color: "[currentColor]",
34
- marginInlineEnd: "spacing.200",
34
+ marginInlineEnd: "spacing.2",
35
35
  flexShrink: 0,
36
36
  _groupFocusWithin: {
37
37
  layerStyle: "elevation.focus"
@@ -45,7 +45,7 @@ const o = r({
45
45
  display: "inline-block"
46
46
  },
47
47
  mark: {
48
- marginInlineEnd: "spacing.000"
48
+ marginInlineEnd: "spacing.0"
49
49
  },
50
50
  labelSpan: {
51
51
  srOnly: !0
@@ -56,7 +56,7 @@ const o = r({
56
56
  true: {
57
57
  label: {
58
58
  position: "relative",
59
- padding: "spacing.000",
59
+ padding: "spacing.0",
60
60
  width: "[100%]",
61
61
  cursor: "pointer",
62
62
  borderRadius: "radius.system.form",
@@ -85,7 +85,7 @@ const o = r({
85
85
  borderStyle: "solid",
86
86
  borderWidth: "1px",
87
87
  borderRadius: "radius.system.form",
88
- padding: "spacing.300"
88
+ padding: "spacing.3"
89
89
  }
90
90
  }
91
91
  },
@@ -1,92 +1,87 @@
1
- import { jsx as x } from "react/jsx-runtime";
2
- import { forwardRef as V, createContext as j, useRef as w, useImperativeHandle as y, useMemo as A } from "react";
3
- import { toArray as C } from "../../helpers/formatting/toArray.js";
4
- import { useControlledState as D } from "../../hooks/useControlledState.js";
5
- import { checkboxGroup as H } from "./CheckboxGroup.styles.js";
6
- import { c as M } from "../../cx-DN21T1EH.js";
7
- import { GlobalCSSClass as _ } from "../../enums.js";
8
- import { useNoDefaultValueInForms as z } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
9
- function J() {
10
- return j(void 0);
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as N, createContext as T, useRef as V, useImperativeHandle as j, useMemo as w } from "react";
3
+ import { toArray as m } from "../../helpers/formatting/toArray.js";
4
+ import { useControlledState as y } from "../../hooks/useControlledState.js";
5
+ import { checkboxGroup as A } from "./CheckboxGroup.styles.js";
6
+ import { c as D } from "../../cx-DN21T1EH.js";
7
+ import { GlobalCSSClass as E } from "../../enums.js";
8
+ import { useNoDefaultValueInForms as H } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
9
+ function M() {
10
+ return T(void 0);
11
11
  }
12
- function K() {
13
- return L;
12
+ function _() {
13
+ return z;
14
14
  }
15
- const L = J(), P = ({
16
- className: v,
17
- value: a,
18
- defaultValue: c,
19
- children: b,
20
- layout: d = "stack",
21
- onBlur: u,
22
- onChange: h,
23
- onFocus: s,
24
- hiddenCheckbox: p,
25
- name: f,
26
- role: k = "group",
27
- readOnly: n,
28
- touch: l,
29
- ...G
30
- }, g) => {
31
- z({
15
+ const z = M(), J = ({
16
+ className: f,
17
+ value: n,
18
+ defaultValue: r,
19
+ children: x,
20
+ layout: C = "stack",
21
+ onBlur: v,
22
+ onChange: b,
23
+ onFocus: d,
24
+ hiddenCheckbox: s,
25
+ name: l,
26
+ role: h = "group",
27
+ readOnly: t,
28
+ touch: i,
29
+ ...k
30
+ }, G) => {
31
+ H({
32
32
  component: "IressCheckboxGroup",
33
- defaultValue: c
33
+ defaultValue: r
34
34
  });
35
- const { value: m, setValue: I, toggleValue: i } = D({
35
+ const { value: a, setValue: g, toggleValue: u } = y({
36
36
  component: "IressCheckbox",
37
- defaultValue: c === void 0 ? void 0 : C(c),
37
+ defaultValue: r === void 0 ? void 0 : m(r),
38
38
  multiple: !0,
39
- onChange: h,
40
- value: a === void 0 ? void 0 : C(a)
41
- }), r = w(null), e = r.current;
42
- y(g, () => ({
39
+ onChange: b,
40
+ value: n === void 0 ? void 0 : m(n)
41
+ }), e = V(null), c = e.current;
42
+ j(G, () => ({
43
43
  // React hook form requires the focus, blur, input
44
- focus: () => {
45
- var o;
46
- return (o = e == null ? void 0 : e.querySelector("input")) == null ? void 0 : o.focus();
47
- },
48
- blur: () => e == null ? void 0 : e.blur(),
49
- input: e,
44
+ focus: () => c?.querySelector("input")?.focus(),
45
+ blur: () => c?.blur(),
46
+ input: c,
50
47
  // Custom methods allowing you to interact with an uncontrolled checkbox group
51
- check: (o) => i(o, !0),
52
- reset: () => I([])
48
+ check: (o) => u(o, !0),
49
+ reset: () => g([])
53
50
  }));
54
- const S = A(
51
+ const I = w(
55
52
  () => ({
56
- hiddenCheckbox: p,
57
- name: f,
58
- onChange: (o, t, T) => i(T, t),
59
- readOnly: n,
60
- touch: l,
61
- value: m ?? []
53
+ hiddenCheckbox: s,
54
+ name: l,
55
+ onChange: (o, q, B) => u(B, q),
56
+ readOnly: t,
57
+ touch: i,
58
+ value: a ?? []
62
59
  }),
63
- [f, m, p, n, l, i]
64
- ), R = (o) => {
65
- var t;
66
- s == null || s(o), o.target === r.current && ((t = r.current.querySelector("input")) == null || t.focus());
67
- }, q = (o) => {
68
- var t;
69
- o.relatedTarget && !((t = r.current) != null && t.contains(o.relatedTarget)) && (u == null || u(o));
70
- }, { Provider: N } = K();
71
- return /* @__PURE__ */ x(N, { value: S, children: /* @__PURE__ */ x(
60
+ [l, a, s, t, i, u]
61
+ ), S = (o) => {
62
+ d?.(o), o.target === e.current && e.current.querySelector("input")?.focus();
63
+ }, F = (o) => {
64
+ o.relatedTarget && !e.current?.contains(o.relatedTarget) && v?.(o);
65
+ }, { Provider: R } = _();
66
+ return /* @__PURE__ */ p(R, { value: I, children: /* @__PURE__ */ p(
72
67
  "div",
73
68
  {
74
- ...G,
75
- role: k,
76
- ref: r,
77
- className: M(
78
- v,
79
- H({ layout: d, readOnly: n }),
80
- _.CheckboxGroup
69
+ ...k,
70
+ role: h,
71
+ ref: e,
72
+ className: D(
73
+ f,
74
+ A({ layout: C, readOnly: t }),
75
+ E.CheckboxGroup
81
76
  ),
82
- onBlur: q,
83
- onFocus: R,
84
- children: b
77
+ onBlur: F,
78
+ onFocus: S,
79
+ children: x
85
80
  }
86
81
  ) });
87
- }, B = V(P);
82
+ }, Z = N(J);
88
83
  export {
89
- L as CheckboxGroupContext,
90
- B as IressCheckboxGroup,
91
- K as getCheckboxGroupContext
84
+ z as CheckboxGroupContext,
85
+ Z as IressCheckboxGroup,
86
+ _ as getCheckboxGroupContext
92
87
  };