@ilo-org/react 0.18.4 → 0.19.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 (224) hide show
  1. package/lib/cjs/_store/Accordion-entry-C81QOLKD.js +1 -0
  2. package/lib/cjs/_store/Breadcrumb-chunk-BGt10GMr.js +1 -0
  3. package/lib/cjs/_store/{Breadcrumb-entry-NNucl1rR.js → Breadcrumb-entry-BcWOPogy.js} +1 -1
  4. package/lib/cjs/_store/{Button-chunk-yGkEAzI3.js → Button-chunk-7QGSjiJL.js} +1 -1
  5. package/lib/cjs/_store/{Button-entry-CFKrMKO7.js → Button-entry-B74K2XLp.js} +1 -1
  6. package/lib/cjs/_store/{Callout-chunk-5KDr9zD6.js → Callout-chunk-DI_rZPkx.js} +1 -1
  7. package/lib/cjs/_store/{Callout-entry-vBBI312g.js → Callout-entry-GC_lYwL3.js} +1 -1
  8. package/lib/cjs/_store/{CardGroup-chunk-BCIYNW1W.js → CardGroup-chunk-CrzLMpzZ.js} +1 -1
  9. package/lib/cjs/_store/{Checkbox-chunk-B7P6WeNp.js → Checkbox-chunk-CfN7137m.js} +1 -1
  10. package/lib/cjs/_store/{Checkbox-entry-Cpcx9EKD.js → Checkbox-entry-CLjOEGyj.js} +1 -1
  11. package/lib/cjs/_store/ContextMenu-chunk-Ch5u_T0d.js +1 -0
  12. package/lib/cjs/_store/{ContextMenu-entry-TCdyzIRt.js → ContextMenu-entry-UwZc4yU3.js} +1 -1
  13. package/lib/cjs/_store/{DatePicker-chunk-DMvnrakE.js → DatePicker-chunk-7_96tPkC.js} +1 -1
  14. package/lib/cjs/_store/{DatePicker-entry-CweKIj3U.js → DatePicker-entry-P07fWcN3.js} +1 -1
  15. package/lib/cjs/_store/{Dropdown-chunk--_pVhTcV.js → Dropdown-chunk-Bn-MFT6c.js} +1 -1
  16. package/lib/cjs/_store/{Dropdown-entry-BcBG6Zg7.js → Dropdown-entry-BBiYoQa0.js} +1 -1
  17. package/lib/cjs/_store/{Fieldset-chunk-BsOPbe_a.js → Fieldset-chunk-C3itoJam.js} +1 -1
  18. package/lib/cjs/_store/{Fieldset-entry-BUyKAdkn.js → Fieldset-entry-DyHl-Q8i.js} +1 -1
  19. package/lib/cjs/_store/{FileUpload-chunk-CmHP-E54.js → FileUpload-chunk-BhGfPLEt.js} +1 -1
  20. package/lib/cjs/_store/{FileUpload-entry-DKzm4WvO.js → FileUpload-entry-BdKRo1oJ.js} +1 -1
  21. package/lib/cjs/_store/{Footer-chunk-BVLm3gIW.js → Footer-chunk-DK416bgz.js} +1 -1
  22. package/lib/cjs/_store/{Footer-entry-gbueRcx6.js → Footer-entry-CI7x98xM.js} +1 -1
  23. package/lib/cjs/_store/{FormControl-chunk-08fp5TeU.js → FormControl-chunk-CxP6djqq.js} +1 -1
  24. package/lib/cjs/_store/{FormControl-entry-DN7TYc37.js → FormControl-entry-BgMV944-.js} +1 -1
  25. package/lib/cjs/_store/Hero-chunk-DiUWCO_D.js +1 -0
  26. package/lib/cjs/_store/Hero-entry-AK8D7qYH.js +1 -0
  27. package/lib/cjs/_store/HeroCard-chunk-CCNjdbBJ.js +1 -0
  28. package/lib/cjs/_store/HeroCard-entry-BGUHZKKh.js +1 -0
  29. package/lib/cjs/_store/Icon-chunk-BiF41wYy.js +1 -0
  30. package/lib/cjs/_store/{Icon-entry-Bk5k6jbS.js → Icon-entry-8e8qxrkm.js} +1 -1
  31. package/lib/cjs/_store/Image-chunk-lJKSkHDC.js +1 -0
  32. package/lib/cjs/_store/{Image-entry-DpxKHlQg.js → Image-entry-BoUSe5WL.js} +1 -1
  33. package/lib/cjs/_store/{Input-chunk-DIcDfISq.js → Input-chunk-DVXD2O4Z.js} +1 -1
  34. package/lib/cjs/_store/{Input-entry-Cq1G_bNN.js → Input-entry-CthONy5R.js} +1 -1
  35. package/lib/cjs/_store/LocalNav-entry-SfLDP8BS.js +1 -0
  36. package/lib/cjs/_store/Logo-entry-Dit3r-4I.js +1 -0
  37. package/lib/cjs/_store/Navigation-entry-C6dI5Dpf.js +1 -0
  38. package/lib/cjs/_store/{Notification-chunk-CdXNLoc4.js → Notification-chunk-BudHdd0h.js} +1 -1
  39. package/lib/cjs/_store/{Notification-entry-xJwdmUff.js → Notification-entry-CRW1397K.js} +1 -1
  40. package/lib/cjs/_store/{NumberPicker-chunk-CaQYVhyz.js → NumberPicker-chunk-CjEYQYj0.js} +1 -1
  41. package/lib/cjs/_store/{NumberPicker-entry-BEqwzCKS.js → NumberPicker-entry-DQGcCMGe.js} +1 -1
  42. package/lib/cjs/_store/{Radio-chunk-EK2nKEND.js → Radio-chunk-LFOxcvur.js} +1 -1
  43. package/lib/cjs/_store/{Radio-entry-M4dL4mjL.js → Radio-entry-BmJSr7Sk.js} +1 -1
  44. package/lib/cjs/_store/{SearchField-chunk-B1dvh9Ra.js → SearchField-chunk-BkrZKT5S.js} +1 -1
  45. package/lib/cjs/_store/{SearchField-entry-6JDMx3qT.js → SearchField-entry-DoVeY_de.js} +1 -1
  46. package/lib/cjs/_store/SocialMedia-chunk-jDoYRhrm.js +1 -0
  47. package/lib/cjs/_store/SocialMedia-entry-tsTF-Jtj.js +1 -0
  48. package/lib/cjs/_store/{Tabs-chunk-CvNhDGjJ.js → Tabs-chunk-CnXjQYpB.js} +1 -1
  49. package/lib/cjs/_store/{Tabs-entry-BYCRe16t.js → Tabs-entry-BRmJxjI6.js} +1 -1
  50. package/lib/cjs/_store/Tag-chunk-B-UjKiml.js +1 -0
  51. package/lib/cjs/_store/Tag-entry-Dv_p5zCg.js +1 -0
  52. package/lib/cjs/_store/{TextInput-entry-Bl0sZdpl.js → TextInput-entry-BOVt2TDi.js} +1 -1
  53. package/lib/cjs/_store/{Textarea-chunk-3fPk9MqI.js → Textarea-chunk-B13VaFl6.js} +1 -1
  54. package/lib/cjs/_store/{Textarea-entry-Ac7gdvET.js → Textarea-entry-Byp4EYD1.js} +1 -1
  55. package/lib/cjs/_store/{Toggle-entry-s05NRKOs.js → Toggle-entry-BZ_sk4pV.js} +1 -1
  56. package/lib/cjs/_store/Tooltip-chunk-Ca67o441.js +1 -0
  57. package/lib/cjs/_store/{Tooltip-entry--csXZiQZ.js → Tooltip-entry-BlOyvu7-.js} +1 -1
  58. package/lib/cjs/_store/components-entry-CDxRih4j.js +1 -0
  59. package/lib/cjs/index.js +1 -1
  60. package/lib/esm/_store/Accordion-entry-B-0bgUhR.js +85 -0
  61. package/lib/esm/_store/Breadcrumb-chunk-DcsXzPvT.js +121 -0
  62. package/lib/esm/_store/Breadcrumb-entry-B7kN28qm.js +4 -0
  63. package/lib/esm/_store/{Button-chunk-D3gTmmqF.js → Button-chunk-CTOnaHZ_.js} +1 -1
  64. package/lib/esm/_store/{Button-entry-BTrJYspO.js → Button-entry-DRu9gUR5.js} +1 -1
  65. package/lib/esm/_store/{Callout-chunk-CQS0gd8t.js → Callout-chunk-CsEfqAuS.js} +1 -1
  66. package/lib/esm/_store/{Callout-entry-BP20dlG4.js → Callout-entry-sXFzYEzc.js} +1 -1
  67. package/lib/esm/_store/{CardGroup-chunk-BzPahXVe.js → CardGroup-chunk-0V0yYua2.js} +1 -1
  68. package/lib/esm/_store/{Checkbox-chunk-DJDgykAw.js → Checkbox-chunk-CdjFGjiG.js} +2 -2
  69. package/lib/esm/_store/{Checkbox-entry-CfjxZKrK.js → Checkbox-entry-4xxjRXFu.js} +1 -1
  70. package/lib/esm/_store/ContextMenu-chunk-Zy9igFLz.js +30 -0
  71. package/lib/esm/_store/ContextMenu-entry-C_rAD9kF.js +4 -0
  72. package/lib/esm/_store/{DatePicker-chunk-10fIc74h.js → DatePicker-chunk-BoTriI-e.js} +1 -1
  73. package/lib/esm/_store/DatePicker-entry-B5aB0CYY.js +4 -0
  74. package/lib/esm/_store/{Dropdown-chunk-B6G7DnYr.js → Dropdown-chunk-DxXjnNBq.js} +1 -1
  75. package/lib/esm/_store/Dropdown-entry-CdssOqL2.js +4 -0
  76. package/lib/esm/_store/{Fieldset-chunk-PK4HqNv_.js → Fieldset-chunk-udvv8dML.js} +1 -1
  77. package/lib/esm/_store/Fieldset-entry--0tR2-K1.js +4 -0
  78. package/lib/esm/_store/{FileUpload-chunk-dFon8lP2.js → FileUpload-chunk-Cdl4F5zH.js} +1 -1
  79. package/lib/esm/_store/FileUpload-entry-B0SbE0sW.js +4 -0
  80. package/lib/esm/_store/{Footer-chunk-BsI1B7K-.js → Footer-chunk-Cfulou_M.js} +2 -2
  81. package/lib/esm/_store/Footer-entry-xjy-auY5.js +4 -0
  82. package/lib/esm/_store/{FormControl-chunk-D_3t65GG.js → FormControl-chunk-C2LR6MBZ.js} +1 -1
  83. package/lib/esm/_store/FormControl-entry-Dy_NPcKM.js +4 -0
  84. package/lib/esm/_store/Hero-chunk-swloBIGl.js +67 -0
  85. package/lib/esm/_store/Hero-entry-DxQnc1Ze.js +4 -0
  86. package/lib/esm/_store/HeroCard-chunk-fz3EIUiE.js +47 -0
  87. package/lib/esm/_store/HeroCard-entry-Cp6p3FnU.js +4 -0
  88. package/lib/esm/_store/{Icon-chunk-SeRwWcV9.js → Icon-chunk-nLD8VsP5.js} +914 -915
  89. package/lib/esm/_store/Icon-entry-CCd9MEER.js +4 -0
  90. package/lib/esm/_store/Image-chunk-DGh-6cxv.js +33 -0
  91. package/lib/esm/_store/Image-entry-BIEmEw0G.js +4 -0
  92. package/lib/esm/_store/{Input-chunk-p-3N8OO4.js → Input-chunk-DT_YEVSQ.js} +1 -1
  93. package/lib/esm/_store/Input-entry-Dt6Qaxj6.js +4 -0
  94. package/lib/esm/_store/LocalNav-entry-DydB3k67.js +4 -0
  95. package/lib/esm/_store/{Logo-chunk-CsxA3mRV.js → Logo-entry-sjwkMeb-.js} +19 -19
  96. package/lib/esm/_store/Navigation-entry-BLC2KoMs.js +4 -0
  97. package/lib/esm/_store/{Notification-chunk-CTgFDa_7.js → Notification-chunk-VfaNI3r9.js} +1 -1
  98. package/lib/esm/_store/Notification-entry-BIQsCmF2.js +4 -0
  99. package/lib/esm/_store/{NumberPicker-chunk-CsDLNdop.js → NumberPicker-chunk-Z_TIIuxb.js} +1 -1
  100. package/lib/esm/_store/NumberPicker-entry-BaKtr4-S.js +4 -0
  101. package/lib/esm/_store/{Radio-chunk-CZnGQoYJ.js → Radio-chunk-DDMoE7Le.js} +2 -2
  102. package/lib/esm/_store/{Radio-entry-DhmJk5Et.js → Radio-entry-BzlGsY14.js} +1 -1
  103. package/lib/esm/_store/{SearchField-chunk-CZCT1mJ4.js → SearchField-chunk-DfXCHmW0.js} +2 -2
  104. package/lib/esm/_store/SearchField-entry-qYGaidSz.js +4 -0
  105. package/lib/esm/_store/SocialMedia-chunk-B0IPGaVf.js +62 -0
  106. package/lib/esm/_store/SocialMedia-entry-Dq52Wl-z.js +4 -0
  107. package/lib/esm/_store/{Tabs-chunk-tzegLak-.js → Tabs-chunk-CpUcNAK9.js} +1 -1
  108. package/lib/esm/_store/Tabs-entry-BARAHSrA.js +4 -0
  109. package/lib/esm/_store/Tag-chunk-6_6Oh_I3.js +68 -0
  110. package/lib/esm/_store/Tag-entry-B40IGpPj.js +48 -0
  111. package/lib/esm/_store/{TextInput-entry-BTZVvumC.js → TextInput-entry-DIPdoofw.js} +1 -1
  112. package/lib/esm/_store/{Textarea-chunk-BCW6ZV8n.js → Textarea-chunk-ClZt7jmS.js} +1 -1
  113. package/lib/esm/_store/{Textarea-entry-CFe0s_hM.js → Textarea-entry-BvVP8AXU.js} +1 -1
  114. package/lib/esm/_store/{Toggle-entry-CehJKItc.js → Toggle-entry-q2VLr4yf.js} +1 -1
  115. package/lib/esm/_store/{Tooltip-chunk-CPT-dPDc.js → Tooltip-chunk-EJOnwIYn.js} +362 -363
  116. package/lib/esm/_store/Tooltip-entry-Dz5aVKCZ.js +4 -0
  117. package/lib/esm/_store/components-entry-BW50D0h0.js +86 -0
  118. package/lib/esm/index.js +79 -80
  119. package/lib/styles/components/breadcrumb.css +1 -1
  120. package/lib/styles/components/factlistcard.css +1 -1
  121. package/lib/styles/components/link.css +1 -1
  122. package/lib/styles/components/list.css +1 -1
  123. package/lib/styles/components/promocard.css +1 -1
  124. package/lib/styles/components/richtext.css +1 -1
  125. package/lib/styles/components/table.css +1 -1
  126. package/lib/styles/components/tabs.css +1 -1
  127. package/lib/styles/global.css.map +1 -1
  128. package/lib/styles/index.css +2 -2
  129. package/lib/styles/index.css.map +1 -1
  130. package/lib/styles/monorepo.css +2 -2
  131. package/lib/styles/monorepo.css.map +1 -1
  132. package/lib/types/components/Accordion/Accordion.d.ts +35 -4
  133. package/lib/types/components/Accordion/AccordionItem.d.ts +15 -4
  134. package/lib/types/components/Accordion/index.d.ts +4 -4
  135. package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +17 -4
  136. package/lib/types/components/Breadcrumb/BreadcrumbItem.d.ts +20 -0
  137. package/lib/types/components/Breadcrumb/index.d.ts +1 -1
  138. package/lib/types/components/Cards/CardGroup/CardGroup.props.d.ts +1 -0
  139. package/lib/types/components/Collapse/Collapse.d.ts +1 -1
  140. package/lib/types/components/ContextMenu/ContextMenu.d.ts +27 -5
  141. package/lib/types/components/ContextMenu/index.d.ts +1 -1
  142. package/lib/types/components/Hero/Hero.d.ts +53 -4
  143. package/lib/types/components/Hero/index.d.ts +1 -2
  144. package/lib/types/components/{Hero/HeroCard.props.d.ts → HeroCard/HeroCard.d.ts} +4 -2
  145. package/lib/types/components/HeroCard/HeroCardTitle.d.ts +8 -0
  146. package/lib/types/components/HeroCard/index.d.ts +1 -0
  147. package/lib/types/components/Image/Image.props.d.ts +1 -2
  148. package/lib/types/components/LocalNav/LocalNav.props.d.ts +0 -10
  149. package/lib/types/components/Navigation/Navigation.props.d.ts +0 -13
  150. package/lib/types/components/SocialMedia/SocialMedia.d.ts +44 -3
  151. package/lib/types/components/SocialMedia/index.d.ts +1 -3
  152. package/lib/types/components/Tooltip/Tooltip.d.ts +34 -4
  153. package/lib/types/components/Tooltip/index.d.ts +1 -1
  154. package/lib/types/components/index.d.ts +2 -1
  155. package/lib/types/utils/createChainedFunction.d.ts +1 -1
  156. package/package.json +2 -3
  157. package/lib/cjs/_store/Accordion-chunk-Dj1LluWV.js +0 -1
  158. package/lib/cjs/_store/Accordion-entry-BNfPKFuj.js +0 -1
  159. package/lib/cjs/_store/Breadcrumb-chunk-DvUpVY4l.js +0 -1
  160. package/lib/cjs/_store/ContextMenu-chunk-BegVo-Ry.js +0 -1
  161. package/lib/cjs/_store/Hero-chunk-BmAL9GMT.js +0 -1
  162. package/lib/cjs/_store/Hero-entry-6U1647te.js +0 -1
  163. package/lib/cjs/_store/Icon-chunk-BuN3LIv8.js +0 -1
  164. package/lib/cjs/_store/Image-chunk-jaj_JISB.js +0 -1
  165. package/lib/cjs/_store/LocalNav-chunk-TRLUir71.js +0 -1
  166. package/lib/cjs/_store/LocalNav-entry-BHboaRc5.js +0 -1
  167. package/lib/cjs/_store/Logo-chunk-Bz8Vfcn7.js +0 -1
  168. package/lib/cjs/_store/Logo-entry-C8ZmQs8R.js +0 -1
  169. package/lib/cjs/_store/Navigation-chunk-Cd2_nKBa.js +0 -1
  170. package/lib/cjs/_store/Navigation-entry-D2GGdiL3.js +0 -1
  171. package/lib/cjs/_store/SocialMedia-chunk-DrxlykT6.js +0 -1
  172. package/lib/cjs/_store/SocialMedia-entry-BQyxJpTO.js +0 -1
  173. package/lib/cjs/_store/Tag-chunk-D7MU0DS1.js +0 -1
  174. package/lib/cjs/_store/Tag-entry-j9LvFNEy.js +0 -1
  175. package/lib/cjs/_store/Tooltip-chunk-Bh77DbOg.js +0 -1
  176. package/lib/cjs/_store/checkArrayDuplicates-chunk-Bqxwhc1q.js +0 -1
  177. package/lib/cjs/_store/components-entry-C1UgcdWx.js +0 -1
  178. package/lib/esm/_store/Accordion-chunk-BawBOKZz.js +0 -113
  179. package/lib/esm/_store/Accordion-entry-C8JFNFFn.js +0 -7
  180. package/lib/esm/_store/Breadcrumb-chunk-CclNRjxd.js +0 -132
  181. package/lib/esm/_store/Breadcrumb-entry-Biundzlp.js +0 -4
  182. package/lib/esm/_store/ContextMenu-chunk-CkdC2iPF.js +0 -22
  183. package/lib/esm/_store/ContextMenu-entry-BkbaSgVR.js +0 -4
  184. package/lib/esm/_store/DatePicker-entry-Bu0S1bvg.js +0 -4
  185. package/lib/esm/_store/Dropdown-entry-CRDxMRpe.js +0 -4
  186. package/lib/esm/_store/Fieldset-entry-BmiHpIGy.js +0 -4
  187. package/lib/esm/_store/FileUpload-entry-uIvvAStY.js +0 -4
  188. package/lib/esm/_store/Footer-entry-D5I2UfE7.js +0 -4
  189. package/lib/esm/_store/FormControl-entry-DODa4uyx.js +0 -4
  190. package/lib/esm/_store/Hero-chunk-AgDdKsJ4.js +0 -76
  191. package/lib/esm/_store/Hero-entry-CcnVmzHx.js +0 -5
  192. package/lib/esm/_store/Icon-entry-DVmHvnYh.js +0 -4
  193. package/lib/esm/_store/Image-chunk-C4zF97rw.js +0 -35
  194. package/lib/esm/_store/Image-entry-DaqK9C99.js +0 -4
  195. package/lib/esm/_store/Input-entry-DG2Mv1K2.js +0 -4
  196. package/lib/esm/_store/LocalNav-chunk-BTJAs9kb.js +0 -207
  197. package/lib/esm/_store/LocalNav-entry-CYlCB-lD.js +0 -4
  198. package/lib/esm/_store/Logo-entry-3NNSpfQ9.js +0 -4
  199. package/lib/esm/_store/Navigation-chunk-DOX-uYIu.js +0 -221
  200. package/lib/esm/_store/Navigation-entry-h17tpQEV.js +0 -4
  201. package/lib/esm/_store/Notification-entry-DscPkMfo.js +0 -4
  202. package/lib/esm/_store/NumberPicker-entry-BuxrmdUS.js +0 -4
  203. package/lib/esm/_store/SearchField-entry-D8GdI4NP.js +0 -4
  204. package/lib/esm/_store/SocialMedia-chunk-DdOAr_Gj.js +0 -32
  205. package/lib/esm/_store/SocialMedia-entry-BllaQbO-.js +0 -54
  206. package/lib/esm/_store/Tabs-entry-KkVJWKrD.js +0 -4
  207. package/lib/esm/_store/Tag-chunk-CKCrKm54.js +0 -65
  208. package/lib/esm/_store/Tag-entry-DtON5ly2.js +0 -45
  209. package/lib/esm/_store/Tooltip-entry-cgQr1mHa.js +0 -4
  210. package/lib/esm/_store/checkArrayDuplicates-chunk-C7cf0TQw.js +0 -11
  211. package/lib/esm/_store/components-entry-OJluWOaZ.js +0 -87
  212. package/lib/types/components/Accordion/Accordion.props.d.ts +0 -34
  213. package/lib/types/components/Accordion/AccordionButton.d.ts +0 -5
  214. package/lib/types/components/Accordion/AccordionButton.props.d.ts +0 -12
  215. package/lib/types/components/Accordion/AccordionCtx.d.ts +0 -5
  216. package/lib/types/components/Accordion/AccordionItem.props.d.ts +0 -22
  217. package/lib/types/components/Accordion/AccordionPanel.d.ts +0 -5
  218. package/lib/types/components/Accordion/AccordionPanel.props.d.ts +0 -22
  219. package/lib/types/components/Breadcrumb/Breadcrumb.props.d.ts +0 -32
  220. package/lib/types/components/ContextMenu/ContextMenu.props.d.ts +0 -24
  221. package/lib/types/components/Hero/Hero.props.d.ts +0 -52
  222. package/lib/types/components/Hero/HeroCard.d.ts +0 -5
  223. package/lib/types/components/SocialMedia/SocialMedia.props.d.ts +0 -42
  224. package/lib/types/components/Tooltip/Tooltip.props.d.ts +0 -33
@@ -1,5 +1,36 @@
1
- import { FC } from 'react';
2
- import { AccordionProps } from './Accordion.props';
1
+ import { ReactNode } from 'react';
3
2
 
4
- declare const Accordion: FC<AccordionProps>;
5
- export default Accordion;
3
+ export type AccordionProps = {
4
+ /**
5
+ * The size of the accordion default is small
6
+ */
7
+ size?: "small" | "large";
8
+ /**
9
+ * Whether or not multiple accordion items can be expanded at the same time default is true
10
+ */
11
+ multiple?: boolean;
12
+ /**
13
+ * The value of the accordion, when multiple is true this should be an array of strings
14
+ */
15
+ value?: string | string[];
16
+ /**
17
+ * The callback function that is called when the value of the accordion changes
18
+ */
19
+ onChange?: (value: string | string[]) => void;
20
+ /**
21
+ * Whether or not the accordion panel should be scrollable default is false
22
+ */
23
+ scrollable?: boolean;
24
+ className?: string;
25
+ children: ReactNode;
26
+ };
27
+ type AccordionContextValue = {
28
+ size: "small" | "large";
29
+ multiple: boolean;
30
+ value: string | string[];
31
+ scrollable?: boolean;
32
+ onChange: (value: string | string[]) => void;
33
+ };
34
+ declare const AccordionContext: import('react').Context<AccordionContextValue | undefined>;
35
+ declare const Accordion: import('react').ForwardRefExoticComponent<AccordionProps & import('react').RefAttributes<HTMLUListElement>>;
36
+ export { AccordionContext, Accordion };
@@ -1,5 +1,16 @@
1
- import { FC } from 'react';
2
- import { AccordionItemProps } from './AccordionItem.props';
1
+ import { ReactNode } from 'react';
3
2
 
4
- declare const AccordionItem: FC<AccordionItemProps>;
5
- export default AccordionItem;
3
+ export type AccordionItemProps = {
4
+ /**
5
+ * The value of the accordion item
6
+ */
7
+ value: string;
8
+ /**
9
+ * The label of the accordion item
10
+ */
11
+ label: string;
12
+ className?: string;
13
+ children: ReactNode;
14
+ };
15
+ declare const AccordionItem: import('react').ForwardRefExoticComponent<AccordionItemProps & import('react').RefAttributes<HTMLLIElement>>;
16
+ export { AccordionItem };
@@ -1,4 +1,4 @@
1
- export { default as AccordionButton } from './AccordionButton';
2
- export { default as AccordionPanel } from './AccordionPanel';
3
- export { default as AccordionItem } from './AccordionItem';
4
- export { default as Accordion } from './Accordion';
1
+ declare const Accordion: import('react').ForwardRefExoticComponent<import('./Accordion').AccordionProps & import('react').RefAttributes<HTMLUListElement>> & {
2
+ Item: import('react').ForwardRefExoticComponent<import('./AccordionItem').AccordionItemProps & import('react').RefAttributes<HTMLLIElement>>;
3
+ };
4
+ export { Accordion };
@@ -1,5 +1,18 @@
1
- import { FC } from 'react';
2
- import { BreadcrumbProps } from './Breadcrumb.props';
1
+ import { BreadcrumbItemProps } from './BreadcrumbItem';
3
2
 
4
- declare const Breadcrumb: FC<BreadcrumbProps>;
5
- export default Breadcrumb;
3
+ export type BreadcrumbProps = {
4
+ /**
5
+ * An additional classname to add to the outer most element of the component
6
+ */
7
+ className?: string;
8
+ /**
9
+ * The accessible label to apply to the ellipsis button that appears when the Breadcrumb is collapsed
10
+ */
11
+ buttonLabel: string;
12
+ /**
13
+ * Specify the links to be displayed in the Breadcrumb
14
+ */
15
+ links: BreadcrumbItemProps[];
16
+ };
17
+ declare const Breadcrumb: import('react').ForwardRefExoticComponent<BreadcrumbProps & import('react').RefAttributes<HTMLElement>>;
18
+ export { Breadcrumb };
@@ -0,0 +1,20 @@
1
+ export type BreadcrumbItemProps = {
2
+ /**
3
+ * Optional additional className of the BreadcrumbLink
4
+ */
5
+ className?: string;
6
+ /**
7
+ * Specify the label for this link
8
+ */
9
+ label: string;
10
+ /**
11
+ * Specify the url for this link
12
+ */
13
+ url: string;
14
+ /**
15
+ * Specify whether this link is the first in the Breadcrumb
16
+ */
17
+ first?: boolean;
18
+ };
19
+ declare const BreadcrumbItem: import('react').ForwardRefExoticComponent<BreadcrumbItemProps & import('react').RefAttributes<HTMLLIElement>>;
20
+ export { BreadcrumbItem };
@@ -1 +1 @@
1
- export { default as Breadcrumb } from './Breadcrumb';
1
+ export * from './Breadcrumb';
@@ -82,4 +82,5 @@ export interface DataCardGroup extends CommonCardGroupProps {
82
82
  titleLevel?: never;
83
83
  cards: DataCardProps[];
84
84
  }
85
+ export type CardGroupComponentProps = StatCardProps | MultilinkCardProps | TextCardProps | PromoCardProps | FeatureCardProps | DetailCardProps | FactlistCardProps | DataCardProps;
85
86
  export type CardGroupProps = StatCardGroup | MultilinkCardGroup | TextCardGroup | PromoCardGroup | FeatureCardGroup | DetailCardGroup | FactlistCardGroup | DataCardGroup;
@@ -1,4 +1,4 @@
1
1
  import { CollapseProps } from './Collapse.props';
2
2
 
3
- declare const Collapse: import('react').ForwardRefExoticComponent<CollapseProps & import('react').RefAttributes<Transition<any>>>;
3
+ declare const Collapse: import('react').ForwardRefExoticComponent<CollapseProps & import('react').RefAttributes<Transition<unknown>>>;
4
4
  export default Collapse;
@@ -1,5 +1,27 @@
1
- import { default as React } from 'react';
2
- import { ContextMenuProps } from './ContextMenu.props';
3
-
4
- declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLOListElement>>;
5
- export default ContextMenu;
1
+ export type LinkProps = {
2
+ /**
3
+ * Specify whether this link marks the end of a section
4
+ */
5
+ endsection?: boolean;
6
+ /**
7
+ * Specify the label for the the Context Menu's link
8
+ */
9
+ label: string;
10
+ /**
11
+ * Specify the url for the Context Menu's link
12
+ */
13
+ url: string;
14
+ className?: string;
15
+ };
16
+ export type ContextMenuProps = {
17
+ /**
18
+ * Specify an optional className to be added to your Context Menu component.
19
+ */
20
+ className?: string;
21
+ /**
22
+ * Specify the links to be displayed in the Context Menu
23
+ */
24
+ links: Array<LinkProps>;
25
+ };
26
+ declare const ContextMenu: import('react').ForwardRefExoticComponent<ContextMenuProps & import('react').RefAttributes<HTMLOListElement>>;
27
+ export { ContextMenu };
@@ -1 +1 @@
1
- export { default as ContextMenu } from './ContextMenu';
1
+ export * from './ContextMenu';
@@ -1,5 +1,54 @@
1
- import { FC } from 'react';
2
- import { HeroProps } from './Hero.props';
1
+ import { ImageProps } from '../Image/Image.props';
2
+ import { BreadcrumbProps } from '../Breadcrumb';
3
+ import { TooltipProps } from '../Tooltip';
4
+ import { HeroCardProps } from '../HeroCard';
5
+ import { ThemeTypes } from '../../types';
3
6
 
4
- declare const Hero: FC<HeroProps>;
5
- export default Hero;
7
+ export type HeroProps = {
8
+ /**
9
+ * Vertical alignment of the hero card
10
+ */
11
+ align?: "center" | "bottom" | "baseline";
12
+ /**
13
+ * Props to pass to the breadcrumb if there is one
14
+ */
15
+ breadcrumb?: BreadcrumbProps;
16
+ /**
17
+ * Caption to render in the hero card
18
+ */
19
+ caption?: TooltipProps;
20
+ /**
21
+ * Size the of hero card
22
+ */
23
+ cardSize?: "small" | "medium" | "large" | "xlarge" | "xxlarge";
24
+ /**
25
+ * Specify an optional className to be added to your Hero component.
26
+ */
27
+ className?: string;
28
+ /**
29
+ * Props for the image for the hero
30
+ */
31
+ image?: ImageProps;
32
+ /**
33
+ * How to justify the hero card
34
+ */
35
+ justify?: "start" | "center" | "offset";
36
+ /**
37
+ * Props for the card for the hero
38
+ */
39
+ heroCard: HeroCardProps;
40
+ /**
41
+ * Color of the gap space between bottom of the hero image and bottom of the card
42
+ */
43
+ gap?: "white" | "transparent" | "dark" | "light";
44
+ /**
45
+ * The size of the poster image
46
+ */
47
+ posterSize?: "small" | "medium" | "large" | "xlarge";
48
+ /**
49
+ * Theme for the card
50
+ */
51
+ theme?: ThemeTypes;
52
+ };
53
+ declare const Hero: import('react').ForwardRefExoticComponent<HeroProps & import('react').RefAttributes<HTMLDivElement>>;
54
+ export { Hero };
@@ -1,2 +1 @@
1
- export { default as Hero } from './Hero';
2
- export { default as HeroCard } from './HeroCard';
1
+ export * from './Hero';
@@ -1,7 +1,7 @@
1
1
  import { ThemeTypes } from '../../types';
2
2
  import { SocialMediaProps } from '../SocialMedia';
3
3
 
4
- export interface HeroCardProps {
4
+ export type HeroCardProps = {
5
5
  /**
6
6
  * Specify whether the background should be solid, transparent or semi-transparent
7
7
  */
@@ -42,4 +42,6 @@ export interface HeroCardProps {
42
42
  * The link of the card's title if it has one
43
43
  */
44
44
  url?: string;
45
- }
45
+ };
46
+ declare const HeroCard: import('react').ForwardRefExoticComponent<HeroCardProps & import('react').RefAttributes<HTMLDivElement>>;
47
+ export { HeroCard };
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+
3
+ type HeroCardTitleProps = {
4
+ title: string;
5
+ url?: string;
6
+ };
7
+ declare const HeroCardTitle: FC<HeroCardTitleProps>;
8
+ export { HeroCardTitle };
@@ -0,0 +1 @@
1
+ export * from './HeroCard';
@@ -1,4 +1,4 @@
1
- interface ImageUrl {
1
+ export interface ImageUrl {
2
2
  /**
3
3
  * Specify the breakpoint at which this image src should be used
4
4
  */
@@ -34,4 +34,3 @@ export interface ImageProps {
34
34
  */
35
35
  loading?: "lazy" | "eager";
36
36
  }
37
- export {};
@@ -1,4 +1,3 @@
1
- import { LinkProps, ContextMenuProps } from '../ContextMenu/ContextMenu.props';
2
1
  import { LogoProps } from '../Logo/Logo.props';
3
2
 
4
3
  export interface LocalNavProps {
@@ -17,7 +16,6 @@ export interface LocalNavProps {
17
16
  /**
18
17
  * Specify the main link for the LocalNav
19
18
  */
20
- mainlink?: LinkProps;
21
19
  /**
22
20
  * Specify the menu close label for the LocalNav
23
21
  */
@@ -26,10 +24,6 @@ export interface LocalNavProps {
26
24
  * Specify the language label for the LocalNav
27
25
  */
28
26
  languagelabel?: string;
29
- /**
30
- * Specify the language context menu for the LocalNav
31
- */
32
- languagecontextmenu?: ContextMenuProps;
33
27
  }
34
28
  interface PrimaryNavProps {
35
29
  /**
@@ -40,9 +34,5 @@ interface PrimaryNavProps {
40
34
  * Specify the close label for mobile local nav
41
35
  */
42
36
  mobilecloselabel?: Required<string>;
43
- /**
44
- * Specify the social links
45
- */
46
- items?: Required<Array<LinkProps>>;
47
37
  }
48
38
  export {};
@@ -1,4 +1,3 @@
1
- import { LinkProps, ContextMenuProps } from '../ContextMenu/ContextMenu.props';
2
1
  import { SearchFieldProps } from '../SearchField/SearchField.props';
3
2
 
4
3
  export interface NavigationProps {
@@ -46,10 +45,6 @@ export interface NavigationProps {
46
45
  * Specify the language label for the Navigation
47
46
  */
48
47
  languagelabel?: string;
49
- /**
50
- * Specify the language context menu for the Navigation
51
- */
52
- languagecontextmenu?: ContextMenuProps;
53
48
  }
54
49
  interface PrimaryNavProps {
55
50
  /**
@@ -60,10 +55,6 @@ interface PrimaryNavProps {
60
55
  * Specify the close label for mobile Navigation
61
56
  */
62
57
  mobilecloselabel?: Required<string>;
63
- /**
64
- * Specify the links
65
- */
66
- items?: Required<Array<LinkProps>>;
67
58
  }
68
59
  interface SubNavProps {
69
60
  /**
@@ -82,10 +73,6 @@ interface SubNavProps {
82
73
  * Specify the back label for mobile sub Navigation
83
74
  */
84
75
  mobilebacklabel?: Required<string>;
85
- /**
86
- * Specify the subnav links
87
- */
88
- items?: Required<Array<LinkProps>>;
89
76
  }
90
77
  interface TaglineProps {
91
78
  /**
@@ -1,4 +1,45 @@
1
- import { SocialMediaProps } from './SocialMedia.props';
1
+ import { SocialTypes } from '../../types';
2
2
 
3
- declare const SocialMedia: React.FC<SocialMediaProps>;
4
- export default SocialMedia;
3
+ export type SocialMediaIcons = {
4
+ /**
5
+ * The name of the icon to display
6
+ */
7
+ icon: SocialTypes;
8
+ /**
9
+ * The url to link to
10
+ */
11
+ url: string;
12
+ /**
13
+ * The alt text of the link
14
+ */
15
+ label: string;
16
+ className?: string;
17
+ };
18
+ export type SocialMediaProps = {
19
+ /**
20
+ * An optional headline to display above the icons
21
+ */
22
+ headline?: string;
23
+ /**
24
+ * Specify an optional className to be added to your SocialMedia.
25
+ */
26
+ className?: string;
27
+ /**
28
+ * Specify the theme of the SocialMedia.
29
+ */
30
+ theme?: "light" | "dark";
31
+ /**
32
+ * The justification of the icons
33
+ */
34
+ justify?: "start" | "center";
35
+ /**
36
+ * Specify the icons to display.
37
+ */
38
+ icons: SocialMediaIcons[];
39
+ /**
40
+ * The size of the social media icons
41
+ */
42
+ iconSize: "normal" | "large";
43
+ };
44
+ declare const SocialMedia: import('react').ForwardRefExoticComponent<SocialMediaProps & import('react').RefAttributes<HTMLDivElement>>;
45
+ export { SocialMedia };
@@ -1,3 +1 @@
1
- export { default as SocialMedia } from './SocialMedia';
2
- export type { SocialMediaProps } from './SocialMedia.props';
3
- export { defaultArgs } from './SocialMedia.args';
1
+ export * from './SocialMedia';
@@ -1,5 +1,35 @@
1
- import { FC } from 'react';
2
- import { TooltipProps } from './Tooltip.props';
1
+ import { TooltipThemes, TooltipIconThemes } from '../../types';
3
2
 
4
- declare const Tooltip: FC<TooltipProps>;
5
- export default Tooltip;
3
+ export type TooltipProps = {
4
+ /**
5
+ * Set the label for the tooltip
6
+ */
7
+ label: string;
8
+ /**
9
+ * Describe the theme of the tooltip
10
+ */
11
+ theme?: TooltipThemes;
12
+ /**
13
+ * Describe the background theme of the tooltip
14
+ */
15
+ iconTheme?: TooltipIconThemes;
16
+ /**
17
+ * Specify an optional className to be added to your Tooltip.
18
+ */
19
+ className?: string;
20
+ /**
21
+ * Should the tooltip appear on hover of an info icon?
22
+ */
23
+ icon?: boolean;
24
+ /**
25
+ * Set whether the tooltip is visible or not
26
+ */
27
+ isVisible?: boolean;
28
+ /**
29
+ * Specify an optional id for the Tooltip
30
+ */
31
+ id?: string;
32
+ children?: React.ReactNode;
33
+ };
34
+ declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
35
+ export { Tooltip };
@@ -1 +1 @@
1
- export { default as Tooltip } from './Tooltip';
1
+ export * from './Tooltip';
@@ -1,4 +1,4 @@
1
- export { Accordion, AccordionButton, AccordionItem, AccordionPanel, } from './Accordion';
1
+ export { Accordion } from './Accordion';
2
2
  export { Form } from './Form';
3
3
  export { Collapse } from './Collapse';
4
4
  export { Empty } from './Empty';
@@ -24,6 +24,7 @@ export { Tooltip } from './Tooltip';
24
24
  export { Checkbox } from './Checkbox';
25
25
  export { DatePicker } from './DatePicker';
26
26
  export { Hero } from './Hero';
27
+ export { HeroCard } from './HeroCard';
27
28
  export { LinkList } from './LinkList';
28
29
  export { Pagination } from './Pagination';
29
30
  export { SearchField } from './SearchField';
@@ -7,5 +7,5 @@
7
7
  * @param {function} functions to chain
8
8
  * @returns {function|null}
9
9
  */
10
- declare function createChainedFunction(...funcs: any[]): any;
10
+ declare function createChainedFunction<T extends (...args: unknown[]) => void>(...funcs: (T | null | undefined)[]): T | null;
11
11
  export default createChainedFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/react",
3
- "version": "0.18.4",
3
+ "version": "0.19.0",
4
4
  "description": "React components for the ILO's Design System",
5
5
  "keywords": [
6
6
  "ui_patterns",
@@ -74,7 +74,7 @@
74
74
  "@ilo-org/brand-assets": "1.0.0",
75
75
  "@ilo-org/fonts": "1.0.0",
76
76
  "@ilo-org/icons-react": "1.0.2",
77
- "@ilo-org/styles": "1.3.2",
77
+ "@ilo-org/styles": "1.3.4",
78
78
  "@ilo-org/themes": "0.9.1",
79
79
  "@ilo-org/utils": "0.1.1"
80
80
  },
@@ -123,7 +123,6 @@
123
123
  "access": "public"
124
124
  },
125
125
  "scripts": {
126
- "build": "pnpm build:lib",
127
126
  "build:lib": "tsc --noEmit --project tsconfig.build.json && vite build",
128
127
  "build:docs": "storybook build",
129
128
  "check": "tsc --noEmit --p tsconfig.build.json",
@@ -1 +0,0 @@
1
- "use strict";const a=require("react/jsx-runtime"),p=require("./index-chunk-DCI82Tmm.js"),t=require("react"),$=require("./useGlobalSettings-chunk-Pa38w6VS.js"),A=require("./checkArrayDuplicates-chunk-Bqxwhc1q.js"),b=t.createContext({}),f=t.createContext({}),I=({children:c,className:o,...r})=>{const{prefix:e}=$.useGlobalSettings(),l=`${e}--accordion--button`,{activeItems:s,setActiveItems:u,getUpdatedItems:C,allowMultipleExpanded:x,onButtonClick:d}=t.useContext(b),{id:n}=t.useContext(f),i=s.indexOf(n)>-1,m=p.classnames(o,{[l]:!0}),v=(g,h)=>{u(C({id:h,itemStatuses:s,allowMultipleExpanded:x})),d&&d(g,h),g.currentTarget.blur()};return a.jsx("div",{className:`${e}--h3`,children:a.jsx("button",{className:m,"aria-expanded":i,onClick:g=>v(g,n),"aria-controls":`panel-${n}`,id:`button-${n}`,...r,children:c})})},S=I,j=({children:c,className:o,scroll:r,...e})=>{const{activeItems:l}=t.useContext(b),{id:s}=t.useContext(f),[u,C]=t.useState(0),x=l.indexOf(s)>-1,{prefix:d}=$.useGlobalSettings(),n=`${d}--accordion--panel`,i=p.classnames(o,n,{[`${n}__scroll`]:r,[`${n}--open`]:x}),m=t.useRef(null);return t.useLayoutEffect(()=>{m.current&&C(m.current.scrollHeight)}),a.jsx("div",{className:i,id:`panel-${s}`,"aria-labelledby":`button-${s}`,role:"region",ref:m,style:{"--height":`${u}px`},...e,children:a.jsx("div",{className:`${d}--accordion--innerpanel`,children:c})})},N=j,P=({children:c,id:o,className:r,...e})=>{const{prefix:l}=$.useGlobalSettings(),s=`${l}--accordion--item`,u=p.classnames(r,{[s]:!0});return a.jsx(f.Provider,{value:{id:o},children:a.jsx("li",{className:u,...e,children:c})})},q=P,y=({children:c,allowMultipleExpanded:o=!1,onButtonClick:r,defaultAccordionsExpanded:e=[],className:l})=>{const{prefix:s}=$.useGlobalSettings(),u=`${s}--accordion`,[C,x]=t.useState([]),d=p.classnames(l,{[u]:!0}),n=JSON.stringify(e);if(t.useEffect(()=>{const i=o?e:e.length>0?[e[0]]:e;x(i)},[n,o]),c){const i=[];t.Children.forEach(c,m=>{i.push(m.props.id)}),A.checkArrayDuplicates(i)&&console.warn("Warning: Accordion items must have unique ids.")}return a.jsx(b.Provider,{value:{activeItems:C,setActiveItems:x,getUpdatedItems:A.e,allowMultipleExpanded:o,onButtonClick:r},children:a.jsx("ul",{className:d,children:c})})},k=y;exports.Accordion=k;exports.AccordionButton=S;exports.AccordionItem=q;exports.AccordionPanel=N;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Accordion-chunk-Dj1LluWV.js");exports.Accordion=o.Accordion;exports.AccordionButton=o.AccordionButton;exports.AccordionItem=o.AccordionItem;exports.AccordionPanel=o.AccordionPanel;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),c=require("react"),I=require("./useGlobalSettings-chunk-Pa38w6VS.js"),y=require("./index-chunk-DCI82Tmm.js"),F=require("./ContextMenu-chunk-BegVo-Ry.js"),M=({url:h,label:l,className:E,labelShown:$=!0})=>{const{prefix:n}=I.useGlobalSettings(),b=`${n}--breadcrumb--item`,i=`${n}--breadcrumb--link`,v=`${i}--label`,r=y.classnames(b,E);return s.jsx("li",{className:r,children:$?s.jsx("a",{className:i,href:h,children:s.jsx("span",{className:v,children:l})}):s.jsx("a",{"aria-label":l,className:i,href:h})})},X=({className:h,links:l,buttonLabel:E})=>{const{prefix:$}=I.useGlobalSettings(),[n,b]=c.useState(!1),[i,v]=c.useState({start:0,top:0}),[r,N]=c.useState(!1),o=c.useRef(null),g=c.useRef(0),a=c.useRef(null),u=c.useRef(null),f=`${$}--breadcrumb`,K=`${f}--inner`,S=`${f}--items`,W=`${`${f}--item`}__first`,x=`${f}--context`,O=`${x}__collapse`,q=`${f}--menu`,G=`${x}--button`,P=y.classnames(f,h),T=y.classnames(x,{[O]:r}),z=y.classnames(`${x}--menu`,{[`${x}--menu__visible`]:n});function A(){b(!n)}const w=c.useCallback(e=>{e&&!r&&N(!0),!e&&r&&N(!1)},[r]);c.useLayoutEffect(()=>{const e=o==null?void 0:o.current;!e||!window||!document||(g.current=e.offsetWidth)},[]),c.useLayoutEffect(()=>{if(!(o==null?void 0:o.current)||!window||!document)return;const t=new ResizeObserver(d=>{const m=d[0].contentRect.width;g.current>=m/1.5?w(!0):w(!1)});return t.observe(document.body),()=>{t.disconnect()}},[w]),c.useLayoutEffect(()=>{if(!(!a.current||!u.current)&&r&&n){const e=a.current.getBoundingClientRect(),t=e.left+e.width/2,d=u.current.offsetWidth,m=t-d/2,p=e.bottom+16;v({start:m,top:p})}},[r,n]),c.useEffect(()=>{function e(t){n&&u.current&&!u.current.contains(t.target)&&a.current&&!a.current.contains(t.target)&&b(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r,n]),c.useEffect(()=>{n&&!r&&b(!1)},[r,n]),c.useEffect(()=>{if(!a.current||!u.current)return;function e(t){var d,m,p,R;if(!(!n||!r)&&t.key==="Tab"){const j=(d=u.current)==null?void 0:d.querySelectorAll("a"),L=(p=(m=o.current)==null?void 0:m.lastElementChild)==null?void 0:p.querySelector("a");if(!j||!L)return;const _=j[0],D=j[j.length-1];if(!t.shiftKey){if(document.activeElement===a.current){t.preventDefault(),_.focus();return}document.activeElement===D&&(t.preventDefault(),L.focus())}t.shiftKey&&(t.shiftKey&&document.activeElement===_&&(t.preventDefault(),(R=a==null?void 0:a.current)==null||R.focus()),t.shiftKey&&document.activeElement===L&&(t.preventDefault(),D.focus()))}}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}});const B=l[0],C=l.slice(1,l.length-1),k=l[l.length-1];return s.jsxs("nav",{className:P,children:[s.jsx("div",{className:K,children:s.jsxs("ol",{className:S,ref:o,children:[s.jsx(M,{url:B.url,label:B.label,labelShown:!1,className:W}),C&&C.length>0?s.jsxs("li",{className:T,children:[s.jsx("ol",{className:S,children:C.map((e,t)=>s.jsx(M,{url:e.url,label:e.label},t))}),s.jsx("button",{"aria-label":E,"aria-expanded":n,"aria-controls":q,className:G,onClick:A,ref:a})]}):null,k&&s.jsx(M,{url:k.url,label:k.label})]})}),s.jsx("div",{className:z,id:q,hidden:!n,style:{left:i.start,top:i.top},children:s.jsx(F.ContextMenu,{links:C,ref:u})})]})},H=X;exports.Breadcrumb=H;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),i=require("react"),u=require("./index-chunk-DCI82Tmm.js"),x=require("./useGlobalSettings-chunk-Pa38w6VS.js"),m=i.forwardRef(({className:c,links:n},a)=>{const{prefix:r}=x.useGlobalSettings(),e=`${r}--context-menu`,l=u.classnames(c,{[e]:!0});return s.jsx("ol",{className:l,ref:a,children:n&&n.map((t,o)=>s.jsx("li",{className:`${e}--item ${t.endsection?"endsection":""}`,children:s.jsx("a",{href:t.url,className:`${e}--link`,children:s.jsx("span",{className:`${e}--label`,children:t.label})})},`${e}--item-${o}`))})}),d=m;exports.ContextMenu=d;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),p=require("./index-chunk-DCI82Tmm.js"),b=require("./useGlobalSettings-chunk-Pa38w6VS.js"),g=require("./SocialMedia-chunk-DrxlykT6.js"),k=require("./Breadcrumb-chunk-DvUpVY4l.js"),f=require("./Tooltip-chunk-Bh77DbOg.js"),v=({baseclass:a,title:n,url:o})=>{const c=`${a}--title`,t=`${a}--title-link`;return o?s.jsx("a",{className:t,href:o,children:s.jsx("h1",{className:c,children:n})}):s.jsx("h1",{className:c,children:n})},S=({theme:a="dark",background:n="solid",cornercut:o="true",eyebrow:c,title:t,url:l,datecopy:r,intro:i,socialmedia:d})=>{const{prefix:h}=b.useGlobalSettings(),e=`${h}--hero-card`,_=`${e}__theme__${a}`,m=`${e}__background__${n}`,x=`${e}__cornercut`,u=p.classnames(e,_,m,{[x]:o}),j=`${e}--eyebrow`,$=`${e}--datecopy`,C=`${e}--intro`;return s.jsxs("div",{className:u,children:[c&&s.jsx("p",{className:j,children:c}),s.jsx(v,{baseclass:e,title:t,url:l}),i&&s.jsx("p",{className:C,children:i}),r&&s.jsx("p",{className:$,children:r}),d&&s.jsx(g.SocialMedia,{...d,theme:a})]})},N=S,H=({url:a,alt:n})=>{const{prefix:o}=b.useGlobalSettings(),c=`${o}--card--image`,t=a.sort((r,i)=>r.breakpoint-i.breakpoint),l=t[t.length-1].src;return s.jsx("figure",{className:"hero--image",children:s.jsxs("picture",{children:[t.map(r=>s.jsx("source",{srcSet:r.src,media:`(min-width: ${r.breakpoint}px)`},r.breakpoint)),s.jsx("img",{className:c,src:l,alt:n})]})})},q=({justify:a="start",align:n="baseline",cardSize:o="small",posterSize:c="large",theme:t="dark",image:l,breadcrumb:r,heroCard:i,caption:d,gap:h})=>{const e="hero",_=`${e}__card-justify__${a}`,m=`${e}__card-align__${n}`,x=`${e}__card-size__${o}`,u=`${e}__poster-size__${c}`,j=`${e}__card-theme__${t}`,$=`${e}__gap__${h}`,C=p.classnames(e,_,m,x,u,j,{[$]:!!h});return s.jsxs("div",{className:C,children:[s.jsx("div",{className:"hero--background",children:l&&s.jsx(H,{...l})}),r&&s.jsx(s.Fragment,{children:s.jsx("div",{className:"hero--breadcrumbs",children:s.jsx("div",{className:"hero--breadcrumbs--wrapper",children:s.jsx(k.Breadcrumb,{...r})})})}),s.jsx("div",{className:"hero--card-offset"}),s.jsx("div",{className:"hero--card",children:s.jsx(N,{...i})}),d&&s.jsx("div",{className:"hero--caption",children:s.jsx("div",{className:"hero--caption--wrapper",children:s.jsx(f.Tooltip,{...d})})})]})},w=q;exports.Hero=w;exports.HeroCard=N;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Hero-chunk-BmAL9GMT.js");exports.Hero=e.Hero;exports.HeroCard=e.HeroCard;