@alma-oss/spirit-web-react 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (559) hide show
  1. package/README.md +11 -11
  2. package/bundles/web-react.umd.js +33199 -32811
  3. package/bundles/web-react.umd.js.map +1 -1
  4. package/bundles/web-react.umd.min.js +3 -3
  5. package/bundles/web-react.umd.min.js.map +1 -1
  6. package/common/common.cjs.map +1 -1
  7. package/common/utilities/utilities.cjs.map +1 -1
  8. package/components/Accordion/Accordion.cjs +33 -25
  9. package/components/Accordion/Accordion.cjs.map +1 -1
  10. package/components/Accordion/Accordion.d.ts +2 -8
  11. package/components/Accordion/Accordion.js +8 -7
  12. package/components/Accordion/Accordion.js.map +1 -1
  13. package/components/Accordion/AccordionContext.d.ts +5 -5
  14. package/components/Accordion/AccordionContext.js.map +1 -1
  15. package/components/Accordion/AccordionHeader.d.ts +2 -8
  16. package/components/Accordion/AccordionHeader.js +8 -7
  17. package/components/Accordion/AccordionHeader.js.map +1 -1
  18. package/components/Accordion/AccordionItem.d.ts +2 -8
  19. package/components/Accordion/AccordionItem.js +8 -7
  20. package/components/Accordion/AccordionItem.js.map +1 -1
  21. package/components/Accordion/UncontrolledAccordion.d.ts +2 -3
  22. package/components/Accordion/UncontrolledAccordion.js +1 -2
  23. package/components/Accordion/UncontrolledAccordion.js.map +1 -1
  24. package/components/Accordion/useAccordion.d.ts +2 -2
  25. package/components/Accordion/useAccordion.js.map +1 -1
  26. package/components/Accordion/useAccordionStyleProps.d.ts +2 -3
  27. package/components/Accordion/useAccordionStyleProps.js.map +1 -1
  28. package/components/ActionGroup/ActionGroup.cjs +17 -11
  29. package/components/ActionGroup/ActionGroup.cjs.map +1 -1
  30. package/components/Alert/Alert.cjs +17 -7
  31. package/components/Alert/Alert.cjs.map +1 -1
  32. package/components/Alert/Alert.d.ts +2 -6
  33. package/components/Alert/Alert.js +9 -5
  34. package/components/Alert/Alert.js.map +1 -1
  35. package/components/Alert/useAlertIcon.d.ts +1 -1
  36. package/components/Alert/useAlertStyleProps.d.ts +4 -5
  37. package/components/Alert/useAlertStyleProps.js.map +1 -1
  38. package/components/Avatar/Avatar.cjs +41 -16
  39. package/components/Avatar/Avatar.cjs.map +1 -1
  40. package/components/Avatar/Avatar.d.ts +2 -5
  41. package/components/Avatar/Avatar.js +6 -6
  42. package/components/Avatar/Avatar.js.map +1 -1
  43. package/components/Avatar/useAvatarStyleProps.d.ts +4 -4
  44. package/components/Avatar/useAvatarStyleProps.js +5 -5
  45. package/components/Avatar/useAvatarStyleProps.js.map +1 -1
  46. package/components/Box/Box.cjs +15 -9
  47. package/components/Box/Box.cjs.map +1 -1
  48. package/components/Box/Box.d.ts +3 -8
  49. package/components/Box/Box.js +8 -7
  50. package/components/Box/Box.js.map +1 -1
  51. package/components/Box/useBoxStyleProps.d.ts +2 -2
  52. package/components/Breadcrumbs/Breadcrumbs.cjs +14 -6
  53. package/components/Breadcrumbs/Breadcrumbs.cjs.map +1 -1
  54. package/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  55. package/components/Button/Button.cjs +68 -21
  56. package/components/Button/Button.cjs.map +1 -1
  57. package/components/Button/Button.d.ts +2 -2
  58. package/components/Button/Button.js +5 -3
  59. package/components/Button/Button.js.map +1 -1
  60. package/components/Button/useButtonStyleProps.d.ts +19 -6
  61. package/components/Button/useButtonStyleProps.js +6 -6
  62. package/components/Button/useButtonStyleProps.js.map +1 -1
  63. package/components/ButtonLink/ButtonLink.d.ts +2 -2
  64. package/components/ButtonLink/ButtonLink.js +5 -3
  65. package/components/ButtonLink/ButtonLink.js.map +1 -1
  66. package/components/ButtonLink/useButtonLinkProps.d.ts +10 -4
  67. package/components/ButtonLink/useButtonLinkProps.js.map +1 -1
  68. package/components/ButtonLink/useButtonLinkStyleProps.d.ts +19 -6
  69. package/components/ButtonLink/useButtonLinkStyleProps.js +6 -6
  70. package/components/ButtonLink/useButtonLinkStyleProps.js.map +1 -1
  71. package/components/Card/Card.cjs +13 -6
  72. package/components/Card/Card.cjs.map +1 -1
  73. package/components/Card/Card.d.ts +1 -1
  74. package/components/Card/Card.js +2 -2
  75. package/components/Card/Card.js.map +1 -1
  76. package/components/Card/CardLink.d.ts +2 -4
  77. package/components/Card/CardLink.js +1 -0
  78. package/components/Card/CardLink.js.map +1 -1
  79. package/components/Card/CardTitle.d.ts +1 -1
  80. package/components/Card/useCardStyleProps.d.ts +2 -1
  81. package/components/Card/useCardStyleProps.js +2 -1
  82. package/components/Card/useCardStyleProps.js.map +1 -1
  83. package/components/Checkbox/Checkbox.cjs +56 -5
  84. package/components/Checkbox/Checkbox.cjs.map +1 -1
  85. package/components/Checkbox/Checkbox.d.ts +2 -3
  86. package/components/Checkbox/Checkbox.js +1 -0
  87. package/components/Checkbox/Checkbox.js.map +1 -1
  88. package/components/Checkbox/useCheckboxStyleProps.js +5 -2
  89. package/components/Checkbox/useCheckboxStyleProps.js.map +1 -1
  90. package/components/Collapse/Collapse.cjs +10 -5
  91. package/components/Collapse/Collapse.cjs.map +1 -1
  92. package/components/Container/Container.cjs +4 -2
  93. package/components/Container/Container.cjs.map +1 -1
  94. package/components/ControlButton/ControlButton.d.ts +2 -2
  95. package/components/ControlButton/ControlButton.js +5 -3
  96. package/components/ControlButton/ControlButton.js.map +1 -1
  97. package/components/ControlButton/useControlButtonStyleProps.d.ts +19 -6
  98. package/components/ControlButton/useControlButtonStyleProps.js +3 -4
  99. package/components/ControlButton/useControlButtonStyleProps.js.map +1 -1
  100. package/components/Dialog/Dialog.cjs +42 -11
  101. package/components/Dialog/Dialog.cjs.map +1 -1
  102. package/components/Dialog/Dialog.d.ts +3 -4
  103. package/components/Dialog/Dialog.js +4 -2
  104. package/components/Dialog/Dialog.js.map +1 -1
  105. package/components/Dialog/constants.d.ts +1 -0
  106. package/components/Dialog/constants.js +2 -0
  107. package/components/Dialog/constants.js.map +1 -0
  108. package/components/Dialog/useDialog.js +38 -9
  109. package/components/Dialog/useDialog.js.map +1 -1
  110. package/components/Divider/Divider.cjs +4 -2
  111. package/components/Divider/Divider.cjs.map +1 -1
  112. package/components/Drawer/Drawer.cjs +175 -38
  113. package/components/Drawer/Drawer.cjs.map +1 -1
  114. package/components/Drawer/DrawerCloseButton.js +4 -4
  115. package/components/Drawer/DrawerCloseButton.js.map +1 -1
  116. package/components/Drawer/DrawerPanel.d.ts +3 -3
  117. package/components/Drawer/DrawerPanel.js +5 -3
  118. package/components/Drawer/DrawerPanel.js.map +1 -1
  119. package/components/Drawer/constants.d.ts +0 -1
  120. package/components/Drawer/constants.js +0 -1
  121. package/components/Drawer/constants.js.map +1 -1
  122. package/components/Dropdown/Dropdown.cjs +8 -3
  123. package/components/Dropdown/Dropdown.cjs.map +1 -1
  124. package/components/Dropdown/DropdownTrigger.d.ts +1 -1
  125. package/components/EmptyState/EmptyState.cjs +43 -17
  126. package/components/EmptyState/EmptyState.cjs.map +1 -1
  127. package/components/Field/Field.cjs +10 -4
  128. package/components/Field/Field.cjs.map +1 -1
  129. package/components/Field/HelperText.d.ts +1 -1
  130. package/components/Field/Label.d.ts +1 -1
  131. package/components/Field/ValidationText.d.ts +1 -1
  132. package/components/Field/ValidationText.js +1 -1
  133. package/components/Field/ValidationText.js.map +1 -1
  134. package/components/Field/types.d.ts +3 -3
  135. package/components/FieldGroup/FieldGroup.cjs +10 -4
  136. package/components/FieldGroup/FieldGroup.cjs.map +1 -1
  137. package/components/FileUploader/FileUploader.cjs +77 -15
  138. package/components/FileUploader/FileUploader.cjs.map +1 -1
  139. package/components/FileUploader/FileUploaderAttachment.js +8 -5
  140. package/components/FileUploader/FileUploaderAttachment.js.map +1 -1
  141. package/components/FileUploader/FileUploaderList.js +5 -4
  142. package/components/FileUploader/FileUploaderList.js.map +1 -1
  143. package/components/FileUploader/constants.d.ts +0 -3
  144. package/components/FileUploader/constants.js +0 -3
  145. package/components/FileUploader/constants.js.map +1 -1
  146. package/components/FileUploader/useFileUploaderInput.js.map +1 -1
  147. package/components/Flex/Flex.cjs +17 -11
  148. package/components/Flex/Flex.cjs.map +1 -1
  149. package/components/Flex/Flex.d.ts +2 -8
  150. package/components/Flex/Flex.js +8 -7
  151. package/components/Flex/Flex.js.map +1 -1
  152. package/components/Flex/useFlexStyleProps.d.ts +3 -3
  153. package/components/Flex/useFlexStyleProps.js.map +1 -1
  154. package/components/Footer/Footer.cjs +17 -9
  155. package/components/Footer/Footer.cjs.map +1 -1
  156. package/components/Footer/Footer.d.ts +2 -6
  157. package/components/Footer/Footer.js +10 -7
  158. package/components/Footer/Footer.js.map +1 -1
  159. package/components/Grid/Grid.cjs +34 -22
  160. package/components/Grid/Grid.cjs.map +1 -1
  161. package/components/Grid/Grid.d.ts +2 -8
  162. package/components/Grid/Grid.js +8 -7
  163. package/components/Grid/Grid.js.map +1 -1
  164. package/components/Grid/GridItem.d.ts +2 -8
  165. package/components/Grid/GridItem.js +11 -7
  166. package/components/Grid/GridItem.js.map +1 -1
  167. package/components/Grid/useGridItemStyleProps.js +7 -5
  168. package/components/Grid/useGridItemStyleProps.js.map +1 -1
  169. package/components/Header/Header.cjs +120 -38
  170. package/components/Header/Header.cjs.map +1 -1
  171. package/components/Header/HeaderDialogContext.d.ts +2 -2
  172. package/components/Header/HeaderDialogContext.js.map +1 -1
  173. package/components/Header/HeaderDialogLink.d.ts +2 -3
  174. package/components/Header/HeaderDialogLink.js +5 -3
  175. package/components/Header/HeaderDialogLink.js.map +1 -1
  176. package/components/Header/HeaderLink.d.ts +2 -3
  177. package/components/Header/HeaderLink.js +5 -3
  178. package/components/Header/HeaderLink.js.map +1 -1
  179. package/components/Heading/Heading.cjs +8 -3
  180. package/components/Heading/Heading.cjs.map +1 -1
  181. package/components/Heading/Heading.d.ts +1 -1
  182. package/components/Heading/Heading.js.map +1 -1
  183. package/components/Heading/useHeadingStyleProps.d.ts +3 -3
  184. package/components/Heading/useHeadingStyleProps.js.map +1 -1
  185. package/components/Hidden/Hidden.d.ts +3 -0
  186. package/components/Hidden/Hidden.js +32 -0
  187. package/components/Hidden/Hidden.js.map +1 -0
  188. package/components/Hidden/index.d.ts +1 -0
  189. package/components/Hidden/index.js +2 -0
  190. package/components/Hidden/index.js.map +1 -0
  191. package/components/Icon/Icon.cjs +5 -2
  192. package/components/Icon/Icon.cjs.map +1 -1
  193. package/components/Icon/Icon.d.ts +2 -3
  194. package/components/Icon/Icon.js +1 -0
  195. package/components/Icon/Icon.js.map +1 -1
  196. package/components/Icon/useIconStyleProps.d.ts +6 -1322
  197. package/components/Icon/useIconStyleProps.js.map +1 -1
  198. package/components/IconBox/IconBox.cjs +21 -11
  199. package/components/IconBox/IconBox.cjs.map +1 -1
  200. package/components/IconBox/IconBox.d.ts +2 -6
  201. package/components/IconBox/IconBox.js +6 -3
  202. package/components/IconBox/IconBox.js.map +1 -1
  203. package/components/IconBox/useIconBoxStyleProps.d.ts +2 -2
  204. package/components/Item/Item.cjs +9 -3
  205. package/components/Item/Item.cjs.map +1 -1
  206. package/components/Item/Item.d.ts +1 -1
  207. package/components/Link/Link.cjs +13 -6
  208. package/components/Link/Link.cjs.map +1 -1
  209. package/components/Link/Link.d.ts +2 -3
  210. package/components/Link/Link.js +5 -3
  211. package/components/Link/Link.js.map +1 -1
  212. package/components/Link/useLinkStyleProps.d.ts +5 -7
  213. package/components/Link/useLinkStyleProps.js.map +1 -1
  214. package/components/Matrix/Matrix.cjs +8 -3
  215. package/components/Matrix/Matrix.cjs.map +1 -1
  216. package/components/Matrix/Matrix.d.ts +1 -1
  217. package/components/Matrix/Matrix.js +3 -3
  218. package/components/Matrix/Matrix.js.map +1 -1
  219. package/components/Matrix/{constant.js → constants.js} +1 -1
  220. package/components/Matrix/constants.js.map +1 -0
  221. package/components/Matrix/useMatrixStyleProps.d.ts +1 -1
  222. package/components/Matrix/useMatrixStyleProps.js +1 -1
  223. package/components/Matrix/useMatrixStyleProps.js.map +1 -1
  224. package/components/Modal/Modal.cjs +184 -46
  225. package/components/Modal/Modal.cjs.map +1 -1
  226. package/components/Modal/ModalCloseButton.js +5 -3
  227. package/components/Modal/ModalCloseButton.js.map +1 -1
  228. package/components/Modal/ModalDialog.d.ts +4 -3
  229. package/components/Modal/ModalDialog.js +8 -5
  230. package/components/Modal/ModalDialog.js.map +1 -1
  231. package/components/Modal/ModalHeader.js +5 -4
  232. package/components/Modal/ModalHeader.js.map +1 -1
  233. package/components/Modal/useModalDialogStyleProps.d.ts +11 -833
  234. package/components/Modal/useModalDialogStyleProps.js +1 -2
  235. package/components/Modal/useModalDialogStyleProps.js.map +1 -1
  236. package/components/Navigation/Navigation.cjs +47 -19
  237. package/components/Navigation/Navigation.cjs.map +1 -1
  238. package/components/Navigation/NavigationAction.d.ts +3 -3
  239. package/components/Navigation/NavigationAction.js +1 -0
  240. package/components/Navigation/NavigationAction.js.map +1 -1
  241. package/components/Navigation/NavigationAvatar.d.ts +3 -3
  242. package/components/Navigation/NavigationAvatar.js +5 -3
  243. package/components/Navigation/NavigationAvatar.js.map +1 -1
  244. package/components/NoSsr/NoSsr.cjs.map +1 -1
  245. package/components/Pagination/Pagination.cjs +155 -44
  246. package/components/Pagination/Pagination.cjs.map +1 -1
  247. package/components/Pagination/PaginationButtonLink.d.ts +2 -3
  248. package/components/Pagination/PaginationButtonLink.js +6 -5
  249. package/components/Pagination/PaginationButtonLink.js.map +1 -1
  250. package/components/Pagination/PaginationLink.d.ts +3 -3
  251. package/components/Pagination/PaginationLink.js +8 -6
  252. package/components/Pagination/PaginationLink.js.map +1 -1
  253. package/components/Pagination/PaginationLinkNext.d.ts +2 -3
  254. package/components/Pagination/PaginationLinkNext.js +6 -3
  255. package/components/Pagination/PaginationLinkNext.js.map +1 -1
  256. package/components/Pagination/PaginationLinkPrevious.d.ts +2 -3
  257. package/components/Pagination/PaginationLinkPrevious.js +6 -3
  258. package/components/Pagination/PaginationLinkPrevious.js.map +1 -1
  259. package/components/Pagination/UncontrolledPagination.js +9 -5
  260. package/components/Pagination/UncontrolledPagination.js.map +1 -1
  261. package/components/Pagination/index.d.ts +0 -1
  262. package/components/Pagination/index.js +0 -1
  263. package/components/Pagination/index.js.map +1 -1
  264. package/components/PartnerLogo/PartnerLogo.cjs +4 -2
  265. package/components/PartnerLogo/PartnerLogo.cjs.map +1 -1
  266. package/components/Pill/Pill.cjs +8 -3
  267. package/components/Pill/Pill.cjs.map +1 -1
  268. package/components/Pill/Pill.d.ts +1 -1
  269. package/components/Pill/usePillStyleProps.d.ts +1 -1
  270. package/components/PricingPlan/PricingPlan.cjs +196 -53
  271. package/components/PricingPlan/PricingPlan.cjs.map +1 -1
  272. package/components/PricingPlan/PricingPlan.d.ts +1 -1
  273. package/components/PricingPlan/PricingPlanBody.d.ts +1 -1
  274. package/components/PricingPlan/PricingPlanFooter.d.ts +1 -1
  275. package/components/PricingPlan/PricingPlanHeader.d.ts +1 -1
  276. package/components/ProductLogo/ProductLogo.cjs +4 -2
  277. package/components/ProductLogo/ProductLogo.cjs.map +1 -1
  278. package/components/Radio/Radio.cjs +55 -4
  279. package/components/Radio/Radio.cjs.map +1 -1
  280. package/components/Radio/Radio.d.ts +2 -3
  281. package/components/Radio/Radio.js +1 -0
  282. package/components/Radio/Radio.js.map +1 -1
  283. package/components/Radio/useRadioStyleProps.js +5 -2
  284. package/components/Radio/useRadioStyleProps.js.map +1 -1
  285. package/components/ScrollView/ScrollView.cjs +53 -9
  286. package/components/ScrollView/ScrollView.cjs.map +1 -1
  287. package/components/ScrollView/useScrollPosition.js.map +1 -1
  288. package/components/Section/Section.cjs +16 -9
  289. package/components/Section/Section.cjs.map +1 -1
  290. package/components/Section/Section.d.ts +2 -6
  291. package/components/Section/Section.js +8 -6
  292. package/components/Section/Section.js.map +1 -1
  293. package/components/Section/useSectionSizeProps.d.ts +4 -6
  294. package/components/Section/useSectionSizeProps.js +1 -1
  295. package/components/Section/useSectionSizeProps.js.map +1 -1
  296. package/components/Section/useSectionStyleProps.d.ts +3 -5
  297. package/components/Section/useSectionStyleProps.js.map +1 -1
  298. package/components/SegmentedControl/SegmentedControl.cjs +13 -6
  299. package/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
  300. package/components/SegmentedControl/SegmentedControlContext.js.map +1 -1
  301. package/components/SegmentedControl/SegmentedControlItem.d.ts +2 -3
  302. package/components/SegmentedControl/SegmentedControlItem.js +5 -3
  303. package/components/SegmentedControl/SegmentedControlItem.js.map +1 -1
  304. package/components/Select/Select.cjs +11 -4
  305. package/components/Select/Select.cjs.map +1 -1
  306. package/components/Select/Select.d.ts +2 -3
  307. package/components/Select/Select.js +1 -0
  308. package/components/Select/Select.js.map +1 -1
  309. package/components/Skeleton/Skeleton.cjs +8 -3
  310. package/components/Skeleton/Skeleton.cjs.map +1 -1
  311. package/components/Skeleton/SkeletonHeading.d.ts +1 -1
  312. package/components/Skeleton/SkeletonShape.d.ts +1 -1
  313. package/components/Skeleton/SkeletonText.d.ts +1 -1
  314. package/components/Skeleton/useSkeletonShapeStyleProps.d.ts +10 -848
  315. package/components/Skeleton/useSkeletonShapeStyleProps.js.map +1 -1
  316. package/components/Skeleton/useSkeletonStyleProps.d.ts +1 -1
  317. package/components/SkipLink/SkipLink.cjs +5 -2
  318. package/components/SkipLink/SkipLink.cjs.map +1 -1
  319. package/components/SkipLink/SkipLink.d.ts +3 -3
  320. package/components/SkipLink/SkipLink.js +1 -0
  321. package/components/SkipLink/SkipLink.js.map +1 -1
  322. package/components/Slider/Slider.cjs +11 -4
  323. package/components/Slider/Slider.cjs.map +1 -1
  324. package/components/Slider/Slider.d.ts +2 -3
  325. package/components/Slider/Slider.js +1 -0
  326. package/components/Slider/Slider.js.map +1 -1
  327. package/components/Spinner/Spinner.cjs +5 -2
  328. package/components/Spinner/Spinner.cjs.map +1 -1
  329. package/components/Spinner/Spinner.js.map +1 -1
  330. package/components/SplitButton/SplitButton.cjs +130 -27
  331. package/components/SplitButton/SplitButton.cjs.map +1 -1
  332. package/components/SplitButton/UncontrolledSplitButton.js +6 -5
  333. package/components/SplitButton/UncontrolledSplitButton.js.map +1 -1
  334. package/components/Stack/Stack.cjs +27 -13
  335. package/components/Stack/Stack.cjs.map +1 -1
  336. package/components/Stack/Stack.d.ts +2 -6
  337. package/components/Stack/Stack.js +8 -5
  338. package/components/Stack/Stack.js.map +1 -1
  339. package/components/Stack/StackItem.d.ts +2 -6
  340. package/components/Stack/StackItem.js +11 -5
  341. package/components/Stack/StackItem.js.map +1 -1
  342. package/components/Stack/useStackStyleProps.d.ts +19 -10
  343. package/components/Stack/useStackStyleProps.js.map +1 -1
  344. package/components/Tabs/TabContext.js.map +1 -1
  345. package/components/Tabs/TabLink.d.ts +2 -3
  346. package/components/Tabs/TabLink.js +5 -3
  347. package/components/Tabs/TabLink.js.map +1 -1
  348. package/components/Tabs/Tabs.cjs +13 -6
  349. package/components/Tabs/Tabs.cjs.map +1 -1
  350. package/components/Tag/Tag.cjs +13 -6
  351. package/components/Tag/Tag.cjs.map +1 -1
  352. package/components/Tag/Tag.d.ts +3 -3
  353. package/components/Tag/Tag.js +5 -3
  354. package/components/Tag/Tag.js.map +1 -1
  355. package/components/Tag/useTagStyleProps.d.ts +1 -1
  356. package/components/Text/Text.cjs +8 -3
  357. package/components/Text/Text.cjs.map +1 -1
  358. package/components/Text/Text.d.ts +1 -1
  359. package/components/Text/Text.js.map +1 -1
  360. package/components/Text/useTextStyleProps.d.ts +3 -3
  361. package/components/Text/useTextStyleProps.js.map +1 -1
  362. package/components/TextArea/TextArea.cjs +74 -12
  363. package/components/TextArea/TextArea.cjs.map +1 -1
  364. package/components/TextArea/TextArea.d.ts +2 -3
  365. package/components/TextArea/TextArea.js +1 -0
  366. package/components/TextArea/TextArea.js.map +1 -1
  367. package/components/TextArea/useAdjustHeight.js.map +1 -1
  368. package/components/TextField/TextField.cjs +74 -12
  369. package/components/TextField/TextField.cjs.map +1 -1
  370. package/components/TextField/TextField.d.ts +2 -3
  371. package/components/TextField/TextField.js +1 -0
  372. package/components/TextField/TextField.js.map +1 -1
  373. package/components/TextFieldBase/TextFieldBase.cjs +73 -12
  374. package/components/TextFieldBase/TextFieldBase.cjs.map +1 -1
  375. package/components/TextFieldBase/TextFieldBase.d.ts +2 -6
  376. package/components/TextFieldBase/TextFieldBase.js +1 -0
  377. package/components/TextFieldBase/TextFieldBase.js.map +1 -1
  378. package/components/TextFieldBase/TextFieldBaseInput.d.ts +2 -3
  379. package/components/TextFieldBase/TextFieldBaseInput.js +3 -2
  380. package/components/TextFieldBase/TextFieldBaseInput.js.map +1 -1
  381. package/components/TextFieldBase/TextFieldBasePasswordToggle.js +3 -4
  382. package/components/TextFieldBase/TextFieldBasePasswordToggle.js.map +1 -1
  383. package/components/Timeline/Timeline.cjs +8 -3
  384. package/components/Timeline/Timeline.cjs.map +1 -1
  385. package/components/Timeline/Timeline.d.ts +1 -1
  386. package/components/Timeline/TimelineStep.d.ts +1 -1
  387. package/components/Toast/Toast.cjs +79 -12
  388. package/components/Toast/Toast.cjs.map +1 -1
  389. package/components/Toast/ToastBar.js +6 -4
  390. package/components/Toast/ToastBar.js.map +1 -1
  391. package/components/Toast/ToastBarLink.d.ts +2 -3
  392. package/components/Toast/ToastBarLink.js +5 -3
  393. package/components/Toast/ToastBarLink.js.map +1 -1
  394. package/components/Toast/ToastContext.js +2 -2
  395. package/components/Toast/ToastContext.js.map +1 -1
  396. package/components/Toast/UncontrolledToast.js +5 -3
  397. package/components/Toast/UncontrolledToast.js.map +1 -1
  398. package/components/Toast/constants.d.ts +0 -1
  399. package/components/Toast/constants.js +0 -1
  400. package/components/Toast/constants.js.map +1 -1
  401. package/components/Toggle/Toggle.cjs +57 -5
  402. package/components/Toggle/Toggle.cjs.map +1 -1
  403. package/components/Toggle/Toggle.d.ts +2 -3
  404. package/components/Toggle/Toggle.js +1 -0
  405. package/components/Toggle/Toggle.js.map +1 -1
  406. package/components/Toggle/useToggleStyleProps.js +5 -2
  407. package/components/Toggle/useToggleStyleProps.js.map +1 -1
  408. package/components/Tooltip/Tooltip.cjs +78 -10
  409. package/components/Tooltip/Tooltip.cjs.map +1 -1
  410. package/components/Tooltip/Tooltip.d.ts +2 -6
  411. package/components/Tooltip/Tooltip.js +9 -6
  412. package/components/Tooltip/Tooltip.js.map +1 -1
  413. package/components/Tooltip/TooltipCloseButton.js +5 -3
  414. package/components/Tooltip/TooltipCloseButton.js.map +1 -1
  415. package/components/Tooltip/useTooltipStyleProps.d.ts +20 -8
  416. package/components/Tooltip/useTooltipStyleProps.js.map +1 -1
  417. package/components/Truncate/Truncate.cjs +8 -3
  418. package/components/Truncate/Truncate.cjs.map +1 -1
  419. package/components/Truncate/Truncate.d.ts +1 -1
  420. package/components/Truncate/useTruncateStyleProps.d.ts +3 -3
  421. package/components/UNSTABLE_Header/UNSTABLE_Header.cjs +13 -6
  422. package/components/UNSTABLE_Header/UNSTABLE_Header.cjs.map +1 -1
  423. package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.d.ts +2 -3
  424. package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.js +5 -3
  425. package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.js.map +1 -1
  426. package/components/VisuallyHidden/VisuallyHidden.cjs +8 -3
  427. package/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
  428. package/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  429. package/components/VisuallyHidden/useVisuallyHiddenProps.d.ts +3 -3
  430. package/components/components.cjs +715 -457
  431. package/components/components.cjs.map +1 -1
  432. package/components/index.d.ts +1 -0
  433. package/components/index.js +1 -0
  434. package/components/index.js.map +1 -1
  435. package/constants/constants.cjs +6 -0
  436. package/constants/constants.cjs.map +1 -1
  437. package/constants/index.d.ts +1 -0
  438. package/constants/index.js +1 -0
  439. package/constants/index.js.map +1 -1
  440. package/constants/inputs.d.ts +4 -0
  441. package/constants/inputs.js +5 -0
  442. package/constants/inputs.js.map +1 -0
  443. package/hooks/hooks.cjs +110 -9
  444. package/hooks/hooks.cjs.map +1 -1
  445. package/hooks/index.d.ts +3 -1
  446. package/hooks/index.js +3 -1
  447. package/hooks/index.js.map +1 -1
  448. package/hooks/useDeprecationMessage.js +2 -2
  449. package/hooks/useDeprecationMessage.js.map +1 -1
  450. package/hooks/useI18n.d.ts +6 -0
  451. package/hooks/useI18n.js +9 -0
  452. package/hooks/useI18n.js.map +1 -0
  453. package/hooks/useInputPositionClass.d.ts +2 -0
  454. package/hooks/useInputPositionClass.js +8 -0
  455. package/hooks/useInputPositionClass.js.map +1 -0
  456. package/hooks/useStyleUtilities.js +4 -2
  457. package/hooks/useStyleUtilities.js.map +1 -1
  458. package/hooks/useSymmetry.d.ts +7 -0
  459. package/hooks/useSymmetry.js +39 -0
  460. package/hooks/useSymmetry.js.map +1 -0
  461. package/index.cjs +722 -462
  462. package/index.cjs.map +1 -1
  463. package/index.d.ts +1 -0
  464. package/index.js +1 -0
  465. package/index.js.map +1 -1
  466. package/package.json +29 -36
  467. package/spirit-web-react.cjs +723 -463
  468. package/spirit-web-react.cjs.map +1 -1
  469. package/spirit-web-react.min.cjs +1 -1
  470. package/translations/defaults.d.ts +29 -0
  471. package/translations/defaults.js +30 -0
  472. package/translations/defaults.js.map +1 -0
  473. package/translations/index.d.ts +3 -0
  474. package/translations/index.js +4 -0
  475. package/translations/index.js.map +1 -0
  476. package/translations/replaceTranslationParams.d.ts +1 -0
  477. package/translations/replaceTranslationParams.js +5 -0
  478. package/translations/replaceTranslationParams.js.map +1 -0
  479. package/translations/resolveTranslationKey.d.ts +10 -0
  480. package/translations/resolveTranslationKey.js +14 -0
  481. package/translations/resolveTranslationKey.js.map +1 -0
  482. package/types/accordion.d.ts +18 -18
  483. package/types/alert.d.ts +4 -6
  484. package/types/avatar.d.ts +6 -6
  485. package/types/box.d.ts +4 -6
  486. package/types/breadcrumbs.d.ts +2 -2
  487. package/types/button.d.ts +10 -12
  488. package/types/card.d.ts +9 -9
  489. package/types/card.js.map +1 -1
  490. package/types/checkbox.d.ts +2 -1
  491. package/types/controlButton.d.ts +9 -8
  492. package/types/drawer.d.ts +3 -3
  493. package/types/flex.d.ts +7 -8
  494. package/types/footer.d.ts +6 -7
  495. package/types/grid.d.ts +14 -12
  496. package/types/header.d.ts +16 -18
  497. package/types/heading.d.ts +4 -4
  498. package/types/hidden.d.ts +11 -0
  499. package/types/hidden.js +2 -0
  500. package/types/hidden.js.map +1 -0
  501. package/types/icon.d.ts +5 -3
  502. package/types/iconBox.d.ts +7 -6
  503. package/types/index.d.ts +1 -0
  504. package/types/index.js +1 -0
  505. package/types/index.js.map +1 -1
  506. package/types/item.d.ts +4 -4
  507. package/types/link.d.ts +9 -8
  508. package/types/link.js.map +1 -1
  509. package/types/matrix.d.ts +3 -3
  510. package/types/modal.d.ts +7 -5
  511. package/types/navigation.d.ts +10 -5
  512. package/types/pill.d.ts +3 -3
  513. package/types/pricingPlan.d.ts +3 -3
  514. package/types/radio.d.ts +2 -1
  515. package/types/section.d.ts +6 -5
  516. package/types/shared/dialogs.d.ts +6 -3
  517. package/types/shared/element.d.ts +5 -7
  518. package/types/shared/index.d.ts +4 -3
  519. package/types/shared/index.js +1 -0
  520. package/types/shared/index.js.map +1 -1
  521. package/types/shared/inputs.d.ts +3 -0
  522. package/types/shared/polymorphic.d.ts +13 -0
  523. package/types/shared/polymorphic.js +2 -0
  524. package/types/shared/polymorphic.js.map +1 -0
  525. package/types/shared/shared.cjs.map +1 -1
  526. package/types/skeleton.d.ts +9 -6
  527. package/types/slider.d.ts +2 -2
  528. package/types/spinner.d.ts +1 -1
  529. package/types/stack.d.ts +12 -10
  530. package/types/tabs.d.ts +6 -5
  531. package/types/tag.d.ts +3 -3
  532. package/types/text.d.ts +3 -3
  533. package/types/toggle.d.ts +2 -1
  534. package/types/tooltip.d.ts +23 -21
  535. package/types/tooltip.js.map +1 -1
  536. package/types/types.cjs.map +1 -1
  537. package/types/unstableHeader.d.ts +9 -7
  538. package/types/visuallyHidden.d.ts +4 -4
  539. package/utils/mergeStyleProps.js +4 -1
  540. package/utils/mergeStyleProps.js.map +1 -1
  541. package/utils/utils.cjs +4 -1
  542. package/utils/utils.cjs.map +1 -1
  543. package/components/Matrix/constant.js.map +0 -1
  544. package/components/Modal/constants.d.ts +0 -1
  545. package/components/Modal/constants.js +0 -2
  546. package/components/Modal/constants.js.map +0 -1
  547. package/components/Pagination/constants.d.ts +0 -3
  548. package/components/Pagination/constants.js +0 -4
  549. package/components/Pagination/constants.js.map +0 -1
  550. package/components/SplitButton/constants.d.ts +0 -1
  551. package/components/SplitButton/constants.js +0 -2
  552. package/components/SplitButton/constants.js.map +0 -1
  553. package/components/TextFieldBase/constants.d.ts +0 -2
  554. package/components/TextFieldBase/constants.js +0 -3
  555. package/components/TextFieldBase/constants.js.map +0 -1
  556. package/hooks/useDirectionClass.d.ts +0 -2
  557. package/hooks/useDirectionClass.js +0 -5
  558. package/hooks/useDirectionClass.js.map +0 -1
  559. /package/components/Matrix/{constant.d.ts → constants.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"common.cjs","sources":["constants/environments.js","utilities/info.js","utilities/warning.js"],"sourcesContent":["export const ENVIRONMENTS = {\n DEVELOPMENT: 'development',\n TESTING: 'testing',\n PRODUCTION: 'production',\n};\nexport const isDevelopment = () => process.env.NODE_ENV === ENVIRONMENTS.DEVELOPMENT;\nexport const isTesting = () => process.env.NODE_ENV === ENVIRONMENTS.TESTING;\nexport const isProduction = () => process.env.NODE_ENV === ENVIRONMENTS.PRODUCTION;\n//# sourceMappingURL=environments.js.map","import { isProduction } from \"../constants/environments.js\";\nconst info = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Info: ${message}`;\n if (typeof console !== 'undefined') {\n console.info(text);\n }\n }\n};\nexport default info;\n//# sourceMappingURL=info.js.map","import { isProduction } from \"../constants/environments.js\";\nconst warning = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Warning: ${message}`;\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n try {\n throw Error(text);\n }\n catch (x) {\n }\n }\n};\nexport default warning;\n//# sourceMappingURL=warning.js.map"],"names":[],"mappings":";;AAAY,MAAC,YAAY,GAAG;AAC5B,IAAI,WAAW,EAAE,aAAa;AAC9B,IAAI,OAAO,EAAE,SAAS;AACtB,IAAI,UAAU,EAAE,YAAY;AAC5B;AACY,MAAC,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AAC7D,MAAC,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AACzD,MAAC,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;;ACNnE,MAAC,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACrC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ;AACA,QAAQ,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvC,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B;AACA;AACA;;ACVK,MAAC,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ;AACA,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B;AACA,QAAQ,IAAI;AACZ,YAAY,MAAM,KAAK,CAAC,IAAI,CAAC;AAC7B;AACA,QAAQ,OAAO,CAAC,EAAE;AAClB;AACA;AACA;;;;;;;;;"}
1
+ {"version":3,"file":"common.cjs","sources":["constants/environments.js","utilities/info.js","utilities/warning.js"],"sourcesContent":["export const ENVIRONMENTS = {\n DEVELOPMENT: 'development',\n TESTING: 'testing',\n PRODUCTION: 'production',\n};\nexport const isDevelopment = () => process.env.NODE_ENV === ENVIRONMENTS.DEVELOPMENT;\nexport const isTesting = () => process.env.NODE_ENV === ENVIRONMENTS.TESTING;\nexport const isProduction = () => process.env.NODE_ENV === ENVIRONMENTS.PRODUCTION;\n//# sourceMappingURL=environments.js.map","import { isProduction } from \"../constants/environments.js\";\nconst info = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Info: ${message}`;\n if (typeof console !== 'undefined') {\n console.info(text);\n }\n }\n};\nexport default info;\n//# sourceMappingURL=info.js.map","import { isProduction } from \"../constants/environments.js\";\nconst warning = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Warning: ${message}`;\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n try {\n throw Error(text);\n }\n catch (x) {\n }\n }\n};\nexport default warning;\n//# sourceMappingURL=warning.js.map"],"names":[],"mappings":";;AAAY,MAAC,YAAY,GAAG;AAC5B,IAAI,WAAW,EAAE,aAAa;AAC9B,IAAI,OAAO,EAAE,SAAS;AACtB,IAAI,UAAU,EAAE,YAAY;AAC5B;AACY,MAAC,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AAC7D,MAAC,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AACzD,MAAC,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;;ACNnE,MAAC,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACrC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ,QAAQ;AACR,QAAQ,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvC,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAQ;AACR,IAAI;AACJ;;ACVK,MAAC,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ,QAAQ;AACR,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAQ;AACR,QAAQ,IAAI;AACZ,YAAY,MAAM,KAAK,CAAC,IAAI,CAAC;AAC7B,QAAQ;AACR,QAAQ,OAAO,CAAC,EAAE;AAClB,QAAQ;AACR,IAAI;AACJ;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.cjs","sources":["../constants/environments.js","info.js","warning.js"],"sourcesContent":["export const ENVIRONMENTS = {\n DEVELOPMENT: 'development',\n TESTING: 'testing',\n PRODUCTION: 'production',\n};\nexport const isDevelopment = () => process.env.NODE_ENV === ENVIRONMENTS.DEVELOPMENT;\nexport const isTesting = () => process.env.NODE_ENV === ENVIRONMENTS.TESTING;\nexport const isProduction = () => process.env.NODE_ENV === ENVIRONMENTS.PRODUCTION;\n//# sourceMappingURL=environments.js.map","import { isProduction } from \"../constants/environments.js\";\nconst info = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Info: ${message}`;\n if (typeof console !== 'undefined') {\n console.info(text);\n }\n }\n};\nexport default info;\n//# sourceMappingURL=info.js.map","import { isProduction } from \"../constants/environments.js\";\nconst warning = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Warning: ${message}`;\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n try {\n throw Error(text);\n }\n catch (x) {\n }\n }\n};\nexport default warning;\n//# sourceMappingURL=warning.js.map"],"names":[],"mappings":";;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EAAE,YAAY;AAC5B,CAAC;AAGM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,UAAU;;ACN7E,MAAC,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACrC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ;AACA,QAAQ,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvC,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B;AACA;AACA;;ACVK,MAAC,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ;AACA,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B;AACA,QAAQ,IAAI;AACZ,YAAY,MAAM,KAAK,CAAC,IAAI,CAAC;AAC7B;AACA,QAAQ,OAAO,CAAC,EAAE;AAClB;AACA;AACA;;;;;"}
1
+ {"version":3,"file":"utilities.cjs","sources":["../constants/environments.js","info.js","warning.js"],"sourcesContent":["export const ENVIRONMENTS = {\n DEVELOPMENT: 'development',\n TESTING: 'testing',\n PRODUCTION: 'production',\n};\nexport const isDevelopment = () => process.env.NODE_ENV === ENVIRONMENTS.DEVELOPMENT;\nexport const isTesting = () => process.env.NODE_ENV === ENVIRONMENTS.TESTING;\nexport const isProduction = () => process.env.NODE_ENV === ENVIRONMENTS.PRODUCTION;\n//# sourceMappingURL=environments.js.map","import { isProduction } from \"../constants/environments.js\";\nconst info = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Info: ${message}`;\n if (typeof console !== 'undefined') {\n console.info(text);\n }\n }\n};\nexport default info;\n//# sourceMappingURL=info.js.map","import { isProduction } from \"../constants/environments.js\";\nconst warning = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Warning: ${message}`;\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n try {\n throw Error(text);\n }\n catch (x) {\n }\n }\n};\nexport default warning;\n//# sourceMappingURL=warning.js.map"],"names":[],"mappings":";;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EAAE,YAAY;AAC5B,CAAC;AAGM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,UAAU;;ACN7E,MAAC,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACrC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ,QAAQ;AACR,QAAQ,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACvC,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAQ;AACR,IAAI;AACJ;;ACVK,MAAC,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AACzB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY;AACZ,QAAQ;AACR,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAQ;AACR,QAAQ,IAAI;AACZ,YAAY,MAAM,KAAK,CAAC,IAAI,CAAC;AAC7B,QAAQ;AACR,QAAQ,OAAO,CAAC,EAAE;AAClB,QAAQ;AACR,IAAI;AACJ;;;;;"}
@@ -210,8 +210,11 @@ const htmlReactParser = (html) => {
210
210
  return domToReact(htmlToDOM(html));
211
211
  };
212
212
 
213
+ function hasSpiritComponent(elementTag) {
214
+ return typeof elementTag !== 'string' && elementTag !== null && 'spiritComponent' in elementTag;
215
+ }
213
216
  function mergeStyleProps(ElementTag, styleProps) {
214
- const isSpiritComponent = typeof ElementTag !== 'string' && !!(ElementTag === null || ElementTag === void 0 ? void 0 : ElementTag.spiritComponent);
217
+ const isSpiritComponent = hasSpiritComponent(ElementTag);
215
218
  const isNonNullableObject = (styleProp) => typeof styleProp === 'object' && styleProp !== null;
216
219
  const extractClassNames = (styleProp) => {
217
220
  if (typeof styleProp === 'string') {
@@ -303,8 +306,10 @@ const processProperties = (utilityKey, utilityName, propValue, prefix) => {
303
306
  };
304
307
  const isStylePropProcessable = (styleProps, stylePropKey, stylePropValue, options = { includesKey: true }) => {
305
308
  const isStylePropKeyIncluded = isKeyIncluded(styleProps, stylePropKey);
306
- const isProcessable = (options.includesKey ? isStylePropKeyIncluded : !isStylePropKeyIncluded) && !isEmpty(stylePropValue);
307
- return isProcessable;
309
+ if (options.includesKey) {
310
+ return isStylePropKeyIncluded && !isEmpty(stylePropValue);
311
+ }
312
+ return !isStylePropKeyIncluded;
308
313
  };
309
314
  const useStyleUtilities = (props, prefix = '', additionalProps = {}) => {
310
315
  const styleProps = Object.assign(Object.assign(Object.assign(Object.assign({}, SpacingStyleProp), DisplayStyleProps), ThemeStyleProps), additionalProps);
@@ -383,11 +388,11 @@ const useClassNamePrefix = (className) => {
383
388
  };
384
389
 
385
390
  const useDeprecationMessage = ({ method = 'component', trigger, componentName, componentProps, propertyProps, customText, }) => {
386
- let message;
387
- let hasProps;
388
391
  const messageBase = `Deprecation warning (${componentName}):`;
389
392
  React.useEffect(() => {
390
393
  const isExecutable = trigger && componentName && process.env.NODE_ENV === 'development';
394
+ let message;
395
+ let hasProps;
391
396
  switch (method) {
392
397
  case 'property':
393
398
  if (propertyProps === null || propertyProps === void 0 ? void 0 : propertyProps.delete) {
@@ -565,21 +570,22 @@ var __rest$8 = (undefined && undefined.__rest) || function (s, e) {
565
570
  }
566
571
  return t;
567
572
  };
568
- const Accordion = (props) => {
569
- const { children, elementType: ElementTag = 'section', open, toggle } = props, restProps = __rest$8(props, ["children", "elementType", "open", "toggle"]);
573
+ const _Accordion = (props, ref) => {
574
+ const { children, elementType = 'section', open, toggle } = props, restProps = __rest$8(props, ["children", "elementType", "open", "toggle"]);
575
+ const Component = elementType;
570
576
  const { classProps } = useAccordionStyleProps();
571
577
  const { styleProps, props: transferProps } = useStyleProps(restProps);
572
- const mergedStyleProps = mergeStyleProps(ElementTag, { classProps: classProps.root, styleProps });
578
+ const mergedStyleProps = mergeStyleProps(Component, { classProps: classProps.root, styleProps });
573
579
  const contextValue = {
574
580
  open,
575
581
  toggle,
576
582
  };
577
- return (React.createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps),
583
+ return (React.createElement(Component, Object.assign({}, transferProps, mergedStyleProps, { ref: ref }),
578
584
  React.createElement(AccordionProvider, { value: contextValue }, children)));
579
585
  };
586
+ const Accordion = React.forwardRef(_Accordion);
580
587
  Accordion.spiritComponent = 'Accordion';
581
- Accordion.spiritDefaultElement = 'section';
582
- Accordion.spiritDefaultProps = null;
588
+ Accordion.displayName = 'Accordion';
583
589
 
584
590
  const defaultContext = {
585
591
  id: '',
@@ -600,18 +606,19 @@ var __rest$7 = (undefined && undefined.__rest) || function (s, e) {
600
606
  }
601
607
  return t;
602
608
  };
603
- const AccordionItem = (props) => {
604
- const { children, elementType: ElementTag = 'article', id } = props, restProps = __rest$7(props, ["children", "elementType", "id"]);
609
+ const _AccordionItem = (props, ref) => {
610
+ const { children, elementType = 'article', id } = props, restProps = __rest$7(props, ["children", "elementType", "id"]);
611
+ const Component = elementType;
605
612
  const { classProps } = useAccordionStyleProps();
606
613
  const { styleProps, props: transferProps } = useStyleProps(restProps);
607
- const mergedStyleProps = mergeStyleProps(ElementTag, { classProps: classProps.item, styleProps });
614
+ const mergedStyleProps = mergeStyleProps(Component, { classProps: classProps.item, styleProps });
608
615
  const contextValue = { id };
609
- return (React.createElement(ElementTag, Object.assign({}, transferProps, { id: id }, mergedStyleProps),
616
+ return (React.createElement(Component, Object.assign({}, transferProps, { id: id }, mergedStyleProps, { ref: ref }),
610
617
  React.createElement(AccordionItemProvider, { value: contextValue }, children)));
611
618
  };
619
+ const AccordionItem = React.forwardRef(_AccordionItem);
612
620
  AccordionItem.spiritComponent = 'AccordionItem';
613
- AccordionItem.spiritDefaultElement = 'article';
614
- AccordionItem.spiritDefaultProps = null;
621
+ AccordionItem.displayName = 'AccordionItem';
615
622
 
616
623
  const DEFAULT_BOX_SIZE = 24;
617
624
 
@@ -690,6 +697,7 @@ const _Icon = (props, ref) => {
690
697
  };
691
698
  const Icon = React.forwardRef(_Icon);
692
699
  Icon.spiritComponent = 'Icon';
700
+ Icon.displayName = 'Icon';
693
701
 
694
702
  var __rest$4 = (undefined && undefined.__rest) || function (s, e) {
695
703
  var t = {};
@@ -705,16 +713,17 @@ var __rest$4 = (undefined && undefined.__rest) || function (s, e) {
705
713
  const defaultProps$1 = {
706
714
  elementType: 'h3',
707
715
  };
708
- const AccordionHeader = (props) => {
716
+ const _AccordionHeader = (props, ref) => {
709
717
  const propsWithDefaults = Object.assign(Object.assign({}, defaultProps$1), props);
710
- const { elementType: ElementTag = 'h3', children, slot } = propsWithDefaults, restProps = __rest$4(propsWithDefaults, ["elementType", "children", "slot"]);
718
+ const { elementType = 'h3', children, slot } = propsWithDefaults, restProps = __rest$4(propsWithDefaults, ["elementType", "children", "slot"]);
719
+ const Component = elementType;
711
720
  const { classProps } = useAccordionStyleProps();
712
721
  const { toggle } = useAccordionContext();
713
722
  const { id } = useAccordionItemContext();
714
723
  const { styleProps, props: transferProps } = useStyleProps(restProps);
715
724
  const { isOpen } = useOpenItem(id);
716
725
  const { triggerProps, headerProps } = useAccordionAriaProps({ id, isOpen });
717
- const mergedStyleProps = mergeStyleProps(ElementTag, {
726
+ const mergedStyleProps = mergeStyleProps(Component, {
718
727
  classProps: classProps.header,
719
728
  styleProps,
720
729
  });
@@ -723,16 +732,16 @@ const AccordionHeader = (props) => {
723
732
  toggle(id);
724
733
  }
725
734
  };
726
- return (React.createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps, headerProps),
735
+ return (React.createElement(Component, Object.assign({}, transferProps, mergedStyleProps, headerProps, { ref: ref }),
727
736
  React.createElement("button", Object.assign({ type: "button", className: classProps.toggle, onClick: itemToggle }, triggerProps), children),
728
737
  React.createElement("span", { className: classProps.side },
729
738
  slot && React.createElement("span", { className: classProps.slot }, slot),
730
739
  React.createElement("span", { className: classProps.icon },
731
740
  React.createElement(Icon, { name: "chevron-down" })))));
732
741
  };
742
+ const AccordionHeader = React.forwardRef(_AccordionHeader);
733
743
  AccordionHeader.spiritComponent = 'AccordionHeader';
734
- AccordionHeader.spiritDefaultElement = 'h3';
735
- AccordionHeader.spiritDefaultProps = null;
744
+ AccordionHeader.displayName = 'AccordionHeader';
736
745
 
737
746
  var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
738
747
  var t = {};
@@ -899,8 +908,7 @@ const UncontrolledAccordion = (props) => {
899
908
  return React.createElement(Accordion, Object.assign({}, restProps, { open: open, toggle: toggle }));
900
909
  };
901
910
  UncontrolledAccordion.spiritComponent = 'UncontrolledAccordion';
902
- UncontrolledAccordion.spiritDefaultElement = 'section';
903
- UncontrolledAccordion.spiritDefaultProps = null;
911
+ UncontrolledAccordion.displayName = 'UncontrolledAccordion';
904
912
 
905
913
  exports.Accordion = Accordion;
906
914
  exports.AccordionContent = AccordionContent;