@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
@@ -0,0 +1,4 @@
1
+ import { IressShadow as e } from "./Shadow.js";
2
+ export {
3
+ e as IressShadow
4
+ };
@@ -54,5 +54,4 @@ export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
54
54
  */
55
55
  variant?: 'sidebar' | 'site-wide';
56
56
  }
57
- export declare const ALERT_ICONS: Record<SystemValidationStatuses, IressIconProps['name']>;
58
57
  export declare const IressAlert: ({ actions, children, className, defaultDismissed, dismissed: dismissedProp, footer, heading, icon: iconProp, onDismiss, status, variant, ...restProps }: IressAlertProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- export declare const alert: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "children" | "heading" | "action" | "alert" | "icon" | "wrapper" | "dismiss", {
1
+ export declare const alert: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "alert" | "children" | "heading" | "icon" | "wrapper" | "action" | "dismiss", {
2
2
  status: {
3
3
  danger: {
4
4
  alert: {
@@ -108,7 +108,7 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
108
108
  borderBottomLeftRadius: "radius.000";
109
109
  borderWidth: "[0]";
110
110
  borderLeftWidth: "[2.5px]";
111
- paddingBlock: "spacing.400";
111
+ paddingBlock: "spacing.4";
112
112
  };
113
113
  };
114
114
  'site-wide': {
@@ -5,7 +5,7 @@ import { ReactNode, SyntheticEvent } from 'react';
5
5
  import { InputRef } from '../Input/InputBase/InputBase';
6
6
  import { IressSelectMenuProps } from '../RichSelect';
7
7
  import { LabelValueMeta } from '../../interfaces';
8
- import { FormControlValue } from '../../main';
8
+ import { FormControlValue } from '../../types';
9
9
  export interface IressAutocompleteProps<T extends FormControlValue = string> extends Omit<IressInputProps<T>, 'children' | 'onChange'>, Omit<AutocompleteSearchHookProps, 'query'>, Pick<IressSelectMenuProps, 'limitMobile' | 'limitDesktop'> {
10
10
  /**
11
11
  * Always shown on focus, even if the user has not interacted with the input.
@@ -1,4 +1,4 @@
1
- import { FormattedLabelValueMeta, LabelValueMeta } from '../../../main';
1
+ import { FormattedLabelValueMeta, LabelValueMeta } from '../../../interfaces';
2
2
  export interface AutocompleteSearchHookProps {
3
3
  /**
4
4
  * Time in milliseconds to wait for before performing result search. Only applies to searchable options (function).
@@ -1,2 +1,3 @@
1
1
  export * from './Autocomplete';
2
+ export * from './Autocomplete.styles';
2
3
  export * from './hooks/useAutocompleteSearch';
@@ -3,8 +3,8 @@ export declare const badge: import('../../styled-system/types').SlotRecipeRuntim
3
3
  true: {
4
4
  badge: {
5
5
  position: "absolute";
6
- insetBlockStart: "spacing.000";
7
- insetInlineEnd: "spacing.000";
6
+ insetBlockStart: "spacing.0";
7
+ insetInlineEnd: "spacing.0";
8
8
  zIndex: "100";
9
9
  transformOrigin: "100% 0";
10
10
  borderRadius: "radius.100";
@@ -56,7 +56,7 @@ export declare const card: import('../../styled-system/types').SlotRecipeRuntime
56
56
  gridTemplateAreas: "\"prepend body topRight\" \"footer footer footer\"";
57
57
  gridAutoColumns: "[minmax(0, min-content) auto min-content]";
58
58
  gridAutoRows: "[auto min-content]";
59
- padding: "spacing.000";
59
+ padding: "spacing.0";
60
60
  };
61
61
  };
62
62
  };
@@ -69,7 +69,7 @@ export declare const card: import('../../styled-system/types').SlotRecipeRuntime
69
69
  hasMedia: {
70
70
  true: {
71
71
  root: {
72
- padding: "spacing.000";
72
+ padding: "spacing.0";
73
73
  };
74
74
  };
75
75
  };
@@ -35,7 +35,9 @@ export interface IressCheckboxProps<T = FormControlValue> extends Omit<IressStyl
35
35
  required?: boolean;
36
36
  /**
37
37
  * Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group.
38
- * **Note:** The value of the checkbox does not mean if its checked or not, use the checked property for that.
38
+ * **Note:**
39
+ * - The value of the checkbox does not mean if its checked or not, use the checked property for that.
40
+ * - If the value of the checkbox is true/false, and checked is undefined and not inside a CheckboxGroup, it will use this as the checked value. This ensures out-of-the-box compatibility with React Hook Form.
39
41
  */
40
42
  value?: T;
41
43
  /**
@@ -5,7 +5,7 @@ export declare const checkbox: import('../../styled-system/types').SlotRecipeRun
5
5
  display: "inline-block";
6
6
  };
7
7
  mark: {
8
- marginInlineEnd: "spacing.000";
8
+ marginInlineEnd: "spacing.0";
9
9
  };
10
10
  labelSpan: {
11
11
  srOnly: true;
@@ -16,7 +16,7 @@ export declare const checkbox: import('../../styled-system/types').SlotRecipeRun
16
16
  true: {
17
17
  label: {
18
18
  position: "relative";
19
- padding: "spacing.000";
19
+ padding: "spacing.0";
20
20
  width: "[100%]";
21
21
  cursor: "pointer";
22
22
  borderRadius: "radius.system.form";
@@ -45,7 +45,7 @@ export declare const checkbox: import('../../styled-system/types').SlotRecipeRun
45
45
  borderStyle: "solid";
46
46
  borderWidth: "1px";
47
47
  borderRadius: "radius.system.form";
48
- padding: "spacing.300";
48
+ padding: "spacing.3";
49
49
  };
50
50
  };
51
51
  };
@@ -3,7 +3,7 @@ export declare const checkboxGroup: import('../../styled-system/types').RecipeRu
3
3
  block: {
4
4
  display: "flex";
5
5
  flexWrap: "wrap";
6
- rowGap: "spacing.200";
6
+ rowGap: "spacing.2";
7
7
  '& label': {
8
8
  display: "flex";
9
9
  flexBasis: "[100%]";
@@ -18,7 +18,7 @@ export declare const checkboxGroup: import('../../styled-system/types').RecipeRu
18
18
  stack: {
19
19
  display: "flex";
20
20
  flexWrap: "wrap";
21
- rowGap: "spacing.200";
21
+ rowGap: "spacing.2";
22
22
  '& > *': {
23
23
  flexBasis: "[100%]";
24
24
  };
@@ -27,8 +27,8 @@ export declare const checkboxGroup: import('../../styled-system/types').RecipeRu
27
27
  display: "flex";
28
28
  flexFlow: "row wrap";
29
29
  width: "[100%]";
30
- rowGap: "spacing.200";
31
- columnGap: "spacing.400";
30
+ rowGap: "spacing.2";
31
+ columnGap: "spacing.4";
32
32
  };
33
33
  };
34
34
  readOnly: {
@@ -7,11 +7,11 @@ export declare const expander: import('../../styled-system/types').SlotRecipeRun
7
7
  alignItems: "flex-end";
8
8
  width: "[100%]";
9
9
  textStyle: "typography.heading.4";
10
- py: "spacing.300";
10
+ py: "spacing.3";
11
11
  borderBottom: "divider";
12
12
  transition: "[all 0.2s ease-in-out]";
13
13
  _after: {
14
- mr: "spacing.200";
14
+ mr: "spacing.2";
15
15
  };
16
16
  _hover: {
17
17
  color: "colour.primary.text";
@@ -1,4 +1,4 @@
1
- export declare const field: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "label" | "element" | "root" | "hint" | "supplementary" | "labelContainer" | "fieldContainer", {
1
+ export declare const field: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "label" | "hint" | "element" | "root" | "supplementary" | "labelContainer" | "fieldContainer", {
2
2
  horizontal: {
3
3
  true: {
4
4
  root: {
@@ -6,7 +6,7 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
6
6
  gridTemplateColumns: "auto 1fr";
7
7
  gridTemplateRows: "auto auto";
8
8
  gridTemplateAreas: "\"label field\" \". footer\"";
9
- columnGap: "spacing.200";
9
+ columnGap: "spacing.2";
10
10
  alignItems: "center";
11
11
  };
12
12
  labelContainer: {
@@ -18,7 +18,7 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
18
18
  };
19
19
  footer: {
20
20
  gridArea: "footer";
21
- mt: "spacing.100";
21
+ mt: "spacing.1";
22
22
  };
23
23
  label: {
24
24
  mb: "none";
@@ -34,6 +34,13 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
34
34
  };
35
35
  };
36
36
  };
37
+ hasHint: {
38
+ true: {
39
+ label: {
40
+ mb: "spacing.0";
41
+ };
42
+ };
43
+ };
37
44
  hiddenLabel: {
38
45
  true: {
39
46
  label: {
@@ -71,10 +78,10 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
71
78
  };
72
79
  footer: {
73
80
  position: "absolute";
74
- left: "spacing.000";
75
- right: "spacing.000";
81
+ left: "spacing.0";
82
+ right: "spacing.0";
76
83
  top: "[100%]";
77
- mt: "spacing.100";
84
+ mt: "spacing.1";
78
85
  };
79
86
  };
80
87
  };
@@ -1,4 +1,4 @@
1
- export declare const fieldGroup: import('../../../styled-system/types').SlotRecipeRuntimeFn<"legend" | "root" | "hint" | "fields", {
1
+ export declare const fieldGroup: import('../../../styled-system/types').SlotRecipeRuntimeFn<"legend" | "hint" | "root" | "fields", {
2
2
  hasError: {
3
3
  true: {
4
4
  root: {
@@ -1,6 +1,5 @@
1
- import { HorizontalAligns, VerticalAligns, IressStyledProps, ResponsiveProp } from '../../types';
1
+ import { HorizontalAligns, VerticalAligns, IressStyledProps, ResponsiveProp, PositiveSpacingToken } from '../../types';
2
2
  import { ReactNode } from 'react';
3
- import { PositiveSpacingToken } from '../../../theme-preset/tokens/spacing';
4
3
  export interface IressInlineProps extends IressStyledProps {
5
4
  /**
6
5
  * Content to be displayed inline.
@@ -1 +1 @@
1
- export declare const label: import('../../styled-system/types').SlotRecipeRuntimeFn<"text" | "required" | "root", import('../../styled-system/types').SlotRecipeVariantRecord<"text" | "required" | "root">>;
1
+ export declare const label: import('../../styled-system/types').SlotRecipeRuntimeFn<"text" | "root" | "required", import('../../styled-system/types').SlotRecipeVariantRecord<"text" | "root" | "required">>;
@@ -33,8 +33,8 @@ export declare const menu: import('../../styled-system/types').SlotRecipeRuntime
33
33
  insidePopover: {
34
34
  true: {
35
35
  root: {
36
- my: "spacing.200";
37
- px: "spacing.200";
36
+ my: "spacing.2";
37
+ px: "spacing.2";
38
38
  };
39
39
  };
40
40
  };
@@ -52,13 +52,13 @@ export declare const menu: import('../../styled-system/types').SlotRecipeRuntime
52
52
  display: "inline-flex";
53
53
  flexWrap: "wrap";
54
54
  flexDirection: "column";
55
- rowGap: "spacing.100";
55
+ rowGap: "spacing.1";
56
56
  };
57
57
  };
58
58
  inline: {
59
59
  root: {
60
60
  display: "inline-flex";
61
- columnGap: "spacing.100";
61
+ columnGap: "spacing.1";
62
62
  flexWrap: "wrap";
63
63
  };
64
64
  item: {
@@ -71,7 +71,7 @@ export declare const menu: import('../../styled-system/types').SlotRecipeRuntime
71
71
  root: {
72
72
  display: "flex";
73
73
  flexDirection: "row";
74
- columnGap: "spacing.100";
74
+ columnGap: "spacing.1";
75
75
  '& > :not(hr)': {
76
76
  flex: "1";
77
77
  textAlign: "center";
@@ -12,14 +12,20 @@ export declare const modal: import('../../styled-system/types').SlotRecipeRuntim
12
12
  modal: {
13
13
  display: "flex";
14
14
  flexDirection: "column";
15
- maxHeight: "[calc(100vh - ({spacing.spacing.700} * 2))]";
15
+ maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]";
16
+ '@media (min-height: 600px)': {
17
+ maxHeight: "[calc(100vh - (100px * 2))]";
18
+ };
16
19
  overflow: "clip";
17
20
  };
18
21
  content: {
19
22
  flex: "[1]";
20
23
  overflowX: "hidden";
21
24
  overflowY: "auto";
22
- maxHeight: "[calc(100vh - ({spacing.spacing.700} * 2))]";
25
+ maxHeight: "[calc(100vh - ({spacing.spacing.7} * 2))]";
26
+ '@media (min-height: 600px)': {
27
+ maxHeight: "[calc(100vh - (100px * 2))]";
28
+ };
23
29
  };
24
30
  footer: {
25
31
  flex: "[0]";
@@ -1,20 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { FloatingUIContainer } from '../../types';
3
- export interface ModalContextValue {
4
- /**
5
- * An array of modal IDs that are currently open.
6
- */
7
- opened: string[];
8
- /**
9
- * The container element to render the modal into.
10
- * By default, the modal will render at the end of the document body.
11
- */
12
- container?: FloatingUIContainer;
13
- /**
14
- * Show or hide a modal by ID.
15
- */
16
- showModal: (id: string, flag?: boolean) => void;
17
- }
18
3
  export interface IressModalProviderProps extends PropsWithChildren {
19
4
  /**
20
5
  * The container element to render the modal into.
@@ -22,5 +7,4 @@ export interface IressModalProviderProps extends PropsWithChildren {
22
7
  */
23
8
  container?: FloatingUIContainer;
24
9
  }
25
- export declare const ModalContext: import('react').Context<ModalContextValue | undefined>;
26
10
  export declare const IressModalProvider: ({ children, container, }: IressModalProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,20 @@
1
+ import { FloatingUIContainer } from '../../../types';
2
+ export interface ModalContextValue {
3
+ /**
4
+ * An array of modal IDs that are currently open.
5
+ */
6
+ opened: string[];
7
+ /**
8
+ * The container element to render the modal into.
9
+ * By default, the modal will render at the end of the document body.
10
+ */
11
+ container?: FloatingUIContainer;
12
+ /**
13
+ * Show or hide a modal by ID.
14
+ */
15
+ showModal: (id: string, flag?: boolean) => void;
16
+ }
17
+ export declare const ModalContext: import('react').Context<ModalContextValue | undefined>;
1
18
  export declare const useModal: () => {
2
19
  showModal: (id: string, flag?: boolean) => void;
3
20
  };
@@ -18,7 +18,7 @@ export declare const popover: import('../../styled-system/types').SlotRecipeRunt
18
18
  };
19
19
  };
20
20
  matchActivatorWidth: {
21
- true: {
21
+ false: {
22
22
  content: {
23
23
  maxWidth: "[none]";
24
24
  };
@@ -2,4 +2,4 @@ import { PropsWithChildren } from 'react';
2
2
  import { PopoverHookReturn } from '../hooks/usePopover';
3
3
  export declare const NestedPopoverActivator: ({ children, parentPopover, }: PropsWithChildren & {
4
4
  parentPopover?: PopoverHookReturn;
5
- }) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
5
+ }) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -68,6 +68,10 @@ export interface PopoverHookReturn extends PopoverAriaHookReturn {
68
68
  * It is used by other components to manage the aria attributes and keyboard navigation of the items.
69
69
  */
70
70
  list: MutableRefObject<(HTMLElement | null)[]>;
71
+ /**
72
+ * Resets the active index of the popover items, either to the `focusStartIndex` or null
73
+ */
74
+ resetActiveIndex: () => void;
71
75
  /**
72
76
  * Set the current active index of the popover items.
73
77
  */
@@ -14,7 +14,7 @@ import { IressPopoverProps } from '../Popover';
14
14
  */
15
15
  export declare const usePopoverNavigation: <RT extends VirtualElement = HTMLButtonElement>(context: FloatingContext<RT>, type?: IressPopoverProps["type"], props?: Partial<UseListNavigationProps>, onNavigate?: (activeIndex: number | null) => void, startIndex?: number) => {
16
16
  activeIndex: number | null;
17
- list: import('react').MutableRefObject<(HTMLElement | null)[]>;
17
+ list: import('react').RefObject<(HTMLElement | null)[]>;
18
18
  listNav: import('@floating-ui/react').ElementProps;
19
19
  setActiveIndex: import('react').Dispatch<import('react').SetStateAction<number | null>>;
20
20
  };
@@ -23,7 +23,7 @@ export declare const radio: import('../../styled-system/types').SlotRecipeRuntim
23
23
  borderStyle: "solid";
24
24
  borderColor: "colour.neutral.40";
25
25
  borderRadius: "radius.050";
26
- padding: "spacing.400";
26
+ padding: "spacing.4";
27
27
  };
28
28
  };
29
29
  };
@@ -3,7 +3,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
3
3
  stack: {
4
4
  display: "inline-flex";
5
5
  flexFlow: "column wrap";
6
- rowGap: "spacing.200";
6
+ rowGap: "spacing.2";
7
7
  '& > *': {
8
8
  flexBasis: "[0]";
9
9
  };
@@ -11,7 +11,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
11
11
  block: {
12
12
  display: "flex";
13
13
  flexFlow: "column wrap";
14
- rowGap: "spacing.200";
14
+ rowGap: "spacing.2";
15
15
  '& label': {
16
16
  flexBasis: "[100%]";
17
17
  };
@@ -20,7 +20,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
20
20
  display: "flex";
21
21
  flexFlow: "row wrap";
22
22
  width: "[100%]";
23
- gap: "spacing.200";
23
+ gap: "spacing.2";
24
24
  '& label': {
25
25
  flexBasis: "[auto]";
26
26
  flexGrow: "[0]";
@@ -28,7 +28,7 @@ export declare const radioGroup: import('../../styled-system/types').RecipeRunti
28
28
  };
29
29
  inlineFlex: {
30
30
  display: "inline-flex";
31
- gap: "spacing.200";
31
+ gap: "spacing.2";
32
32
  };
33
33
  inlineEqualWidth: {
34
34
  display: "flex";
@@ -1,4 +1,4 @@
1
- export declare const readonly: import('../../styled-system/types').SlotRecipeRuntimeFn<"wrapper" | "root" | "addon" | "internal" | "formControl" | "readonly", {
1
+ export declare const readonly: import('../../styled-system/types').SlotRecipeRuntimeFn<"wrapper" | "root" | "addon" | "internal" | "formControl", {
2
2
  inline: {
3
3
  true: {
4
4
  root: {
@@ -2,8 +2,11 @@ import { ForwardedRef, ReactElement, ChangeEvent, ReactNode } from 'react';
2
2
  import { AutocompleteSearchHookProps } from '../Autocomplete';
3
3
  import { IressSelectActivatorProps } from './components/SelectActivator';
4
4
  import { SelectHiddenInputRenderProps } from './components/SelectHiddenInput';
5
- import { ControlledValue, FloatingUIAligns, FormattedLabelValueMeta, IressPopoverProps, LabelValueMeta, PopoverRef, ReactHookFormCompatibleRef } from '../../main';
6
5
  import { IressInputProps } from '../Input';
6
+ import { ControlledValue } from '../../hooks';
7
+ import { FormattedLabelValueMeta, LabelValueMeta, ReactHookFormCompatibleRef } from '../../interfaces';
8
+ import { FloatingUIAligns } from '../../types';
9
+ import { IressPopoverProps, PopoverRef } from '../Popover';
7
10
  export interface IressRichSelectProps<TMultiple extends boolean = false> extends Omit<AutocompleteSearchHookProps, 'query'>, Omit<IressPopoverProps, 'activator' | 'children' | 'contentClassName' | 'defaultShow' | 'defaultValue' | 'disabledAutoToggle' | 'onChange' | 'matchActivatorWidth' | 'show' | 'width'>, Pick<IressSelectActivatorProps, 'append' | 'prepend' | 'selectedOptionsText'> {
8
11
  /**
9
12
  * Sets the alignment of the dropdown relative to the activator element.
@@ -90,6 +93,13 @@ export interface IressRichSelectProps<TMultiple extends boolean = false> extends
90
93
  * The width of the select.
91
94
  */
92
95
  width?: IressInputProps['width'];
96
+ /**
97
+ * Whether the popover should match the width of the activator element.
98
+ * When true, the dropdown will have the same width as the select input.
99
+ * When false, the dropdown will size based on its content.
100
+ * @default true
101
+ */
102
+ matchActivatorWidth?: boolean;
93
103
  }
94
104
  export interface SelectLabelRenderProps<TMultiple extends boolean = false> {
95
105
  /**
@@ -2,37 +2,37 @@ export declare const richSelect: import('../../styled-system/types').SlotRecipeR
2
2
  width: {
3
3
  '2': {
4
4
  richSelect: {
5
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]";
5
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]";
6
6
  };
7
7
  };
8
8
  '4': {
9
9
  richSelect: {
10
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]";
10
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]";
11
11
  };
12
12
  };
13
13
  '6': {
14
14
  richSelect: {
15
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]";
15
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]";
16
16
  };
17
17
  };
18
18
  '8': {
19
19
  richSelect: {
20
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]";
20
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]";
21
21
  };
22
22
  };
23
23
  '10': {
24
24
  richSelect: {
25
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]";
25
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]";
26
26
  };
27
27
  };
28
28
  '12': {
29
29
  richSelect: {
30
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]";
30
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]";
31
31
  };
32
32
  };
33
33
  '16': {
34
34
  richSelect: {
35
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
35
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]";
36
36
  };
37
37
  };
38
38
  '25perc': {
@@ -1,5 +1,5 @@
1
- import { IressTextProps } from '../../../main';
2
1
  import { ReactNode } from 'react';
2
+ import { IressTextProps } from '../../Text';
3
3
  export interface IressSelectBodyProps extends Omit<IressTextProps, 'element'> {
4
4
  /**
5
5
  * Footer of the select, it will render as fixed (pinned).
@@ -1,8 +1,8 @@
1
1
  import { IressMenuItemProps, IressMenuProps } from '../../Menu';
2
2
  import { ReactNode } from 'react';
3
- import { FormControlValue, LabelValueMeta } from '../../../main';
4
3
  import { ControlledValue } from '../../../hooks';
5
- import { FormattedLabelValueMeta } from '../../../interfaces';
4
+ import { FormattedLabelValueMeta, LabelValueMeta } from '../../../interfaces';
5
+ import { FormControlValue } from '../../../types';
6
6
  export interface IressSelectMenuProps<TMultiple extends boolean = false> extends Omit<IressMenuProps<FormControlValue, TMultiple>, 'children' | 'onChange' | 'selected' | 'type'> {
7
7
  /**
8
8
  * Heading slot. Often used for a title or description.
@@ -1,2 +1,2 @@
1
1
  import { IressSelectMenuItemProps } from './SelectMenu';
2
- export declare const IressSelectMenuItem: ({ className, divider, formattedLabel, hiddenOnMobile, label, meta, value, append, canToggle, onClick, onKeyDown, prepend, role, selected, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, }: IressSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const IressSelectMenuItem: ({ className, divider, formattedLabel, formattedMeta, hiddenOnMobile, label, meta, value, append, canToggle, onClick, onKeyDown, prepend, role, selected, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, }: IressSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { IressInputPopoverProps } from '../../../main';
1
+ import { IressInputPopoverProps } from '../../Popover';
2
2
  export type IressSelectSearchProps = Omit<IressInputPopoverProps, 'disabledAutoToggle' | 'displayMode' | 'show' | 'width'>;
3
3
  export declare const IressSelectSearch: ({ className, contentClassName, contentStyle, onKeyDown, ...restProps }: IressSelectSearchProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { InputRef } from '../../Input';
2
- import { IressInputProps } from '../../../main';
1
+ import { InputRef, IressInputProps } from '../../Input';
3
2
  export interface IressSelectSearchInputProps extends Omit<IressInputProps, 'rows' | 'width'> {
4
3
  /**
5
4
  * Content to place inside the input when it has no value.
@@ -1,7 +1,7 @@
1
- import { LabelValueMeta } from '../../../main';
2
1
  import { ReactNode } from 'react';
3
2
  import { IressTextProps } from '../../Text';
4
3
  import { IressSelectActivatorProps } from '../components/SelectActivator';
4
+ import { LabelValueMeta } from '../../../interfaces';
5
5
  export interface IressSelectTagsProps extends Omit<IressSelectActivatorProps, 'width'>, Omit<IressTextProps, 'element' | 'width'> {
6
6
  /**
7
7
  * Append content.
@@ -1,4 +1,4 @@
1
- export declare const selectTags: import('../../../styled-system/types').SlotRecipeRuntimeFn<"tag" | "placeholder" | "root" | "append" | "prepend" | "tagsList", {
1
+ export declare const selectTags: import('../../../styled-system/types').SlotRecipeRuntimeFn<"placeholder" | "tag" | "root" | "append" | "prepend" | "tagsList", {
2
2
  showDefaultChevron: {
3
3
  true: {
4
4
  root: {
@@ -4,5 +4,5 @@ interface SelectOptionsProps<TMultiple extends boolean = false> extends Pick<Ire
4
4
  shouldShowInstructions?: boolean;
5
5
  shouldShowNoResults?: boolean;
6
6
  }
7
- export declare const SelectOptions: <TMultiple extends boolean = false>({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, shouldShowInstructions, shouldShowNoResults, value, }: SelectOptionsProps<TMultiple>) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
7
+ export declare const SelectOptions: <TMultiple extends boolean = false>({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, shouldShowInstructions, shouldShowNoResults, value, }: SelectOptionsProps<TMultiple>) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
8
8
  export {};
@@ -1,6 +1,5 @@
1
- import { HorizontalAligns, IressStyledProps, ResponsiveProp, VerticalAligns } from '../../types';
1
+ import { PositiveSpacingToken, HorizontalAligns, IressStyledProps, ResponsiveProp, VerticalAligns } from '../../types';
2
2
  import { ReactNode } from 'react';
3
- import { PositiveSpacingToken } from '../../../theme-preset/tokens/spacing';
4
3
  export interface IressRowProps extends IressStyledProps {
5
4
  /**
6
5
  * Any content you would like to be contained. Best used with `IressCol`.