@utilitywarehouse/hearth-react 0.36.1 → 0.36.3

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 (228) hide show
  1. package/dist/{chunk-QDV7GHHP.js → chunk-2OHAFTMO.js} +2 -2
  2. package/dist/{chunk-5A667ZJZ.cjs → chunk-2RNTOHOU.cjs} +2 -2
  3. package/dist/{chunk-5A667ZJZ.cjs.map → chunk-2RNTOHOU.cjs.map} +1 -1
  4. package/dist/{chunk-OTXFBNCU.js → chunk-2RRGJCBC.js} +2 -2
  5. package/dist/{chunk-5O7MHLG6.js → chunk-4F2QB3XC.js} +2 -2
  6. package/dist/{chunk-5TOYINGT.cjs → chunk-4GNLKRL3.cjs} +2 -2
  7. package/dist/{chunk-5TOYINGT.cjs.map → chunk-4GNLKRL3.cjs.map} +1 -1
  8. package/dist/{chunk-HOTNDRL4.cjs → chunk-4HYVBOWY.cjs} +2 -2
  9. package/dist/{chunk-HOTNDRL4.cjs.map → chunk-4HYVBOWY.cjs.map} +1 -1
  10. package/dist/{chunk-5WA4EJMI.cjs → chunk-5VAS5P47.cjs} +1 -1
  11. package/dist/{chunk-5WA4EJMI.cjs.map → chunk-5VAS5P47.cjs.map} +1 -1
  12. package/dist/{chunk-MMQDPLMG.cjs → chunk-6CBHZ5JZ.cjs} +2 -2
  13. package/dist/{chunk-MMQDPLMG.cjs.map → chunk-6CBHZ5JZ.cjs.map} +1 -1
  14. package/dist/{chunk-NN6N7GOI.js → chunk-6Z7AT6VB.js} +2 -2
  15. package/dist/{chunk-6BVOGEQF.cjs → chunk-75OLYAFB.cjs} +2 -2
  16. package/dist/{chunk-6BVOGEQF.cjs.map → chunk-75OLYAFB.cjs.map} +1 -1
  17. package/dist/chunk-7ACLSMWO.js +4 -0
  18. package/dist/chunk-7ACLSMWO.js.map +1 -0
  19. package/dist/{chunk-TTJ4COKL.cjs → chunk-7KJBTHSU.cjs} +2 -2
  20. package/dist/{chunk-TTJ4COKL.cjs.map → chunk-7KJBTHSU.cjs.map} +1 -1
  21. package/dist/{chunk-RZJZGZ73.js → chunk-A7AQTINY.js} +2 -2
  22. package/dist/{chunk-OJHREKDB.js → chunk-AT4JEW4E.js} +2 -2
  23. package/dist/chunk-AYU3ESZY.js +4 -0
  24. package/dist/chunk-AYU3ESZY.js.map +1 -0
  25. package/dist/chunk-BC6YF4X4.js +4 -0
  26. package/dist/{chunk-4NKAXI6G.js.map → chunk-BC6YF4X4.js.map} +1 -1
  27. package/dist/{chunk-V5F33HLX.cjs → chunk-CE6J26Z7.cjs} +2 -2
  28. package/dist/{chunk-V5F33HLX.cjs.map → chunk-CE6J26Z7.cjs.map} +1 -1
  29. package/dist/{chunk-62OPBUU2.js → chunk-DNBDJEL3.js} +2 -2
  30. package/dist/{chunk-ECSNZJO5.js → chunk-E3TWA3DU.js} +2 -2
  31. package/dist/{chunk-JN4C5D5P.cjs → chunk-E6QW7LY4.cjs} +1 -1
  32. package/dist/{chunk-JN4C5D5P.cjs.map → chunk-E6QW7LY4.cjs.map} +1 -1
  33. package/dist/{chunk-OBEWOAZS.js → chunk-EEXCCYCT.js} +2 -2
  34. package/dist/{chunk-SL5KN4YG.cjs → chunk-EOMKJBCT.cjs} +2 -2
  35. package/dist/{chunk-SL5KN4YG.cjs.map → chunk-EOMKJBCT.cjs.map} +1 -1
  36. package/dist/{chunk-OJSBYHQW.cjs → chunk-FTN2QGBD.cjs} +2 -2
  37. package/dist/{chunk-OJSBYHQW.cjs.map → chunk-FTN2QGBD.cjs.map} +1 -1
  38. package/dist/{chunk-ODJW4CKV.js → chunk-G6QAVOQR.js} +2 -2
  39. package/dist/chunk-GBAD27K2.cjs +4 -0
  40. package/dist/chunk-GBAD27K2.cjs.map +1 -0
  41. package/dist/{chunk-TQTU3SU5.js → chunk-GBDOGSHO.js} +2 -2
  42. package/dist/{chunk-YPFBLO44.js → chunk-GTXWXSXO.js} +2 -2
  43. package/dist/{chunk-V4BZIPQB.js → chunk-HNPNWQMD.js} +2 -2
  44. package/dist/{chunk-MFDPD7LL.cjs → chunk-IQZRFVT2.cjs} +2 -2
  45. package/dist/{chunk-MFDPD7LL.cjs.map → chunk-IQZRFVT2.cjs.map} +1 -1
  46. package/dist/{chunk-ZEHPCJWW.cjs → chunk-K7747CML.cjs} +2 -2
  47. package/dist/{chunk-ZEHPCJWW.cjs.map → chunk-K7747CML.cjs.map} +1 -1
  48. package/dist/{chunk-U7C2K4JT.js → chunk-K7EQ2JR7.js} +1 -1
  49. package/dist/{chunk-U7C2K4JT.js.map → chunk-K7EQ2JR7.js.map} +1 -1
  50. package/dist/{chunk-ATP4TL52.cjs → chunk-KRFEIGR5.cjs} +2 -2
  51. package/dist/{chunk-ATP4TL52.cjs.map → chunk-KRFEIGR5.cjs.map} +1 -1
  52. package/dist/chunk-KYPME3YP.cjs +4 -0
  53. package/dist/chunk-KYPME3YP.cjs.map +1 -0
  54. package/dist/{chunk-7W2RLCGB.js → chunk-LBCDHBLY.js} +2 -2
  55. package/dist/chunk-M7TQ74JD.cjs +4 -0
  56. package/dist/chunk-M7TQ74JD.cjs.map +1 -0
  57. package/dist/{chunk-EU4YDI2W.cjs → chunk-MAGAAUVZ.cjs} +2 -2
  58. package/dist/{chunk-EU4YDI2W.cjs.map → chunk-MAGAAUVZ.cjs.map} +1 -1
  59. package/dist/{chunk-EERWIJJE.js → chunk-MJ43JZBU.js} +2 -2
  60. package/dist/{chunk-ZVXHZSW6.js → chunk-MVRKWLXX.js} +1 -1
  61. package/dist/chunk-MVRKWLXX.js.map +1 -0
  62. package/dist/chunk-N4THYSAB.js +4 -0
  63. package/dist/chunk-N4THYSAB.js.map +1 -0
  64. package/dist/{chunk-3ZIDGMU3.cjs → chunk-N764D6V5.cjs} +2 -2
  65. package/dist/{chunk-3ZIDGMU3.cjs.map → chunk-N764D6V5.cjs.map} +1 -1
  66. package/dist/{chunk-57QIKAQC.js → chunk-NLRXPN7J.js} +2 -2
  67. package/dist/{chunk-JIJWDAAU.js → chunk-OKW3ZZOB.js} +2 -2
  68. package/dist/chunk-PLKATHG7.cjs +4 -0
  69. package/dist/chunk-PLKATHG7.cjs.map +1 -0
  70. package/dist/{chunk-ZN6EEPYT.cjs → chunk-QIOH4DVU.cjs} +2 -2
  71. package/dist/{chunk-ZN6EEPYT.cjs.map → chunk-QIOH4DVU.cjs.map} +1 -1
  72. package/dist/{chunk-6KROCMQ7.js → chunk-S2CDQ7HR.js} +2 -2
  73. package/dist/chunk-SWFUZRPD.cjs +4 -0
  74. package/dist/chunk-SWFUZRPD.cjs.map +1 -0
  75. package/dist/{chunk-PCFN2SEL.js → chunk-T36G4P7P.js} +2 -2
  76. package/dist/chunk-UBLBAHEF.js +4 -0
  77. package/dist/chunk-UBLBAHEF.js.map +1 -0
  78. package/dist/{chunk-EA6RRWYY.cjs → chunk-VGPFJV22.cjs} +2 -2
  79. package/dist/{chunk-EA6RRWYY.cjs.map → chunk-VGPFJV22.cjs.map} +1 -1
  80. package/dist/{chunk-GIQYG6QT.cjs → chunk-WFNQXP3D.cjs} +2 -2
  81. package/dist/{chunk-GIQYG6QT.cjs.map → chunk-WFNQXP3D.cjs.map} +1 -1
  82. package/dist/{chunk-NCNYRYLC.js → chunk-XC27XB43.js} +2 -2
  83. package/dist/{chunk-KOSD5OKA.js → chunk-XNDPIHAF.js} +2 -2
  84. package/dist/{chunk-634BVRHR.js → chunk-Y72W6OWA.js} +2 -2
  85. package/dist/{chunk-BSV5FCP7.cjs → chunk-YGNGIGCD.cjs} +2 -2
  86. package/dist/{chunk-BSV5FCP7.cjs.map → chunk-YGNGIGCD.cjs.map} +1 -1
  87. package/dist/{chunk-UB43SHEW.cjs → chunk-YX67YOF6.cjs} +2 -2
  88. package/dist/{chunk-UB43SHEW.cjs.map → chunk-YX67YOF6.cjs.map} +1 -1
  89. package/dist/{chunk-JXPGBAYH.cjs → chunk-ZBLAL2BN.cjs} +2 -2
  90. package/dist/{chunk-JXPGBAYH.cjs.map → chunk-ZBLAL2BN.cjs.map} +1 -1
  91. package/dist/{chunk-JBSAZP3R.js → chunk-ZGIMM7G5.js} +2 -2
  92. package/dist/{chunk-DFHWFPXL.cjs → chunk-ZHVCM3OC.cjs} +2 -2
  93. package/dist/{chunk-DFHWFPXL.cjs.map → chunk-ZHVCM3OC.cjs.map} +1 -1
  94. package/dist/{chunk-GN2MUYQR.cjs → chunk-ZI5O2B2R.cjs} +2 -2
  95. package/dist/{chunk-GN2MUYQR.cjs.map → chunk-ZI5O2B2R.cjs.map} +1 -1
  96. package/dist/{chunk-QDFEVSQ6.cjs → chunk-ZRZL5ETL.cjs} +2 -2
  97. package/dist/{chunk-QDFEVSQ6.cjs.map → chunk-ZRZL5ETL.cjs.map} +1 -1
  98. package/dist/components/Accordion/Accordion.cjs +1 -1
  99. package/dist/components/Accordion/Accordion.js +1 -1
  100. package/dist/components/Badge/Badge.cjs +1 -1
  101. package/dist/components/Badge/Badge.d.ts.map +1 -1
  102. package/dist/components/Badge/Badge.js +1 -1
  103. package/dist/components/Badge/Badge.props.cjs +1 -1
  104. package/dist/components/Badge/Badge.props.d.ts +5 -0
  105. package/dist/components/Badge/Badge.props.d.ts.map +1 -1
  106. package/dist/components/Badge/Badge.props.js +1 -1
  107. package/dist/components/BannerImage/BannerImage.cjs +4 -0
  108. package/dist/components/BannerImage/BannerImage.cjs.map +1 -0
  109. package/dist/components/BannerImage/BannerImage.d.ts +14 -0
  110. package/dist/components/BannerImage/BannerImage.d.ts.map +1 -0
  111. package/dist/components/BannerImage/BannerImage.js +4 -0
  112. package/dist/components/BannerImage/BannerImage.js.map +1 -0
  113. package/dist/components/BannerImage/BannerImage.props.cjs +3 -0
  114. package/dist/components/BannerImage/BannerImage.props.cjs.map +1 -0
  115. package/dist/components/BannerImage/BannerImage.props.d.ts +3 -0
  116. package/dist/components/BannerImage/BannerImage.props.d.ts.map +1 -0
  117. package/dist/components/BannerImage/BannerImage.props.js +3 -0
  118. package/dist/components/BannerImage/BannerImage.props.js.map +1 -0
  119. package/dist/components/Breadcrumbs/BreadcrumbItem.cjs +1 -1
  120. package/dist/components/Breadcrumbs/BreadcrumbItem.js +1 -1
  121. package/dist/components/Button/Button.cjs +1 -1
  122. package/dist/components/Button/Button.js +1 -1
  123. package/dist/components/Card/CardBannerContent.cjs +1 -1
  124. package/dist/components/Card/CardBannerContent.d.ts +1 -1
  125. package/dist/components/Card/CardBannerContent.js +1 -1
  126. package/dist/components/Card/CardBannerImage.cjs +1 -1
  127. package/dist/components/Card/CardBannerImage.cjs.map +1 -1
  128. package/dist/components/Card/CardBannerImage.d.ts +3 -0
  129. package/dist/components/Card/CardBannerImage.d.ts.map +1 -1
  130. package/dist/components/Card/CardBannerImage.js +1 -1
  131. package/dist/components/CardAccordion/CardAccordion.cjs +1 -1
  132. package/dist/components/CardAccordion/CardAccordion.js +1 -1
  133. package/dist/components/CardAccordion/CardAccordionButton.cjs +1 -1
  134. package/dist/components/CardAccordion/CardAccordionButton.js +1 -1
  135. package/dist/components/CardAccordion/CardAccordionItem.cjs +1 -1
  136. package/dist/components/CardAccordion/CardAccordionItem.js +1 -1
  137. package/dist/components/Combobox/Combobox.cjs +1 -1
  138. package/dist/components/Combobox/Combobox.js +1 -1
  139. package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
  140. package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
  141. package/dist/components/DescriptionList/DescriptionList.cjs +1 -1
  142. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  143. package/dist/components/ExpandableCard/ExpandableCardGroup.cjs +1 -1
  144. package/dist/components/ExpandableCard/ExpandableCardGroup.js +1 -1
  145. package/dist/components/List/List.cjs +1 -1
  146. package/dist/components/List/List.js +1 -1
  147. package/dist/components/Modal/Modal.cjs +1 -1
  148. package/dist/components/Modal/Modal.cjs.map +1 -1
  149. package/dist/components/Modal/Modal.d.ts.map +1 -1
  150. package/dist/components/Modal/Modal.js +1 -1
  151. package/dist/components/Modal/Modal.props.cjs +2 -1
  152. package/dist/components/Modal/Modal.props.cjs.map +1 -1
  153. package/dist/components/Modal/Modal.props.d.ts +13 -0
  154. package/dist/components/Modal/Modal.props.d.ts.map +1 -1
  155. package/dist/components/Modal/Modal.props.js +1 -0
  156. package/dist/components/Pagination/Pagination.cjs +1 -1
  157. package/dist/components/Pagination/Pagination.js +1 -1
  158. package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
  159. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  160. package/dist/components/ProgressBar/ProgressBar.cjs +1 -1
  161. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  162. package/dist/components/ProgressBar/ProgressBarCircular.cjs +1 -1
  163. package/dist/components/ProgressBar/ProgressBarCircular.js +1 -1
  164. package/dist/components/ProgressBar/ProgressBarLinear.cjs +1 -1
  165. package/dist/components/ProgressBar/ProgressBarLinear.js +1 -1
  166. package/dist/components/RadioTile/RadioTile.cjs +1 -1
  167. package/dist/components/RadioTile/RadioTile.js +1 -1
  168. package/dist/components/SearchInput/SearchInput.cjs +1 -1
  169. package/dist/components/SearchInput/SearchInput.js +1 -1
  170. package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
  171. package/dist/components/SectionHeader/SectionHeader.js +1 -1
  172. package/dist/components/Skeleton/SkeletonBodyText.cjs +1 -1
  173. package/dist/components/Skeleton/SkeletonBodyText.js +1 -1
  174. package/dist/components/Table/TablePagination.cjs +1 -1
  175. package/dist/components/Table/TablePagination.js +1 -1
  176. package/dist/components/TextInput/TextInput.cjs +1 -1
  177. package/dist/components/TextInput/TextInput.js +1 -1
  178. package/dist/components/VerificationInput/VerificationInput.cjs +1 -1
  179. package/dist/components/VerificationInput/VerificationInput.js +1 -1
  180. package/dist/index.cjs +1 -1
  181. package/dist/index.cjs.map +1 -1
  182. package/dist/index.d.ts +2 -0
  183. package/dist/index.d.ts.map +1 -1
  184. package/dist/index.js +1 -1
  185. package/package.json +3 -3
  186. package/public/llms/components/badge.md +32 -0
  187. package/public/llms/components/banner-image.md +117 -0
  188. package/public/llms/components/card.md +6 -6
  189. package/public/llms/components/modal.md +53 -1
  190. package/public/llms/docs/getting-started.md +1 -1
  191. package/public/llms/docs/migration/v1.md +156 -0
  192. package/public/llms.txt +1 -0
  193. package/styles.css +1 -1
  194. package/dist/chunk-4NKAXI6G.js +0 -4
  195. package/dist/chunk-AXZY7Z7X.js +0 -4
  196. package/dist/chunk-AXZY7Z7X.js.map +0 -1
  197. package/dist/chunk-L5NLFVE2.cjs +0 -4
  198. package/dist/chunk-L5NLFVE2.cjs.map +0 -1
  199. package/dist/chunk-MA2URC57.cjs +0 -4
  200. package/dist/chunk-MA2URC57.cjs.map +0 -1
  201. package/dist/chunk-NHTUK7PO.js +0 -4
  202. package/dist/chunk-NHTUK7PO.js.map +0 -1
  203. package/dist/chunk-QBLAIC66.cjs +0 -4
  204. package/dist/chunk-QBLAIC66.cjs.map +0 -1
  205. package/dist/chunk-ZVXHZSW6.js.map +0 -1
  206. /package/dist/{chunk-QDV7GHHP.js.map → chunk-2OHAFTMO.js.map} +0 -0
  207. /package/dist/{chunk-OTXFBNCU.js.map → chunk-2RRGJCBC.js.map} +0 -0
  208. /package/dist/{chunk-5O7MHLG6.js.map → chunk-4F2QB3XC.js.map} +0 -0
  209. /package/dist/{chunk-NN6N7GOI.js.map → chunk-6Z7AT6VB.js.map} +0 -0
  210. /package/dist/{chunk-RZJZGZ73.js.map → chunk-A7AQTINY.js.map} +0 -0
  211. /package/dist/{chunk-OJHREKDB.js.map → chunk-AT4JEW4E.js.map} +0 -0
  212. /package/dist/{chunk-62OPBUU2.js.map → chunk-DNBDJEL3.js.map} +0 -0
  213. /package/dist/{chunk-ECSNZJO5.js.map → chunk-E3TWA3DU.js.map} +0 -0
  214. /package/dist/{chunk-OBEWOAZS.js.map → chunk-EEXCCYCT.js.map} +0 -0
  215. /package/dist/{chunk-ODJW4CKV.js.map → chunk-G6QAVOQR.js.map} +0 -0
  216. /package/dist/{chunk-TQTU3SU5.js.map → chunk-GBDOGSHO.js.map} +0 -0
  217. /package/dist/{chunk-YPFBLO44.js.map → chunk-GTXWXSXO.js.map} +0 -0
  218. /package/dist/{chunk-V4BZIPQB.js.map → chunk-HNPNWQMD.js.map} +0 -0
  219. /package/dist/{chunk-7W2RLCGB.js.map → chunk-LBCDHBLY.js.map} +0 -0
  220. /package/dist/{chunk-EERWIJJE.js.map → chunk-MJ43JZBU.js.map} +0 -0
  221. /package/dist/{chunk-57QIKAQC.js.map → chunk-NLRXPN7J.js.map} +0 -0
  222. /package/dist/{chunk-JIJWDAAU.js.map → chunk-OKW3ZZOB.js.map} +0 -0
  223. /package/dist/{chunk-6KROCMQ7.js.map → chunk-S2CDQ7HR.js.map} +0 -0
  224. /package/dist/{chunk-PCFN2SEL.js.map → chunk-T36G4P7P.js.map} +0 -0
  225. /package/dist/{chunk-NCNYRYLC.js.map → chunk-XC27XB43.js.map} +0 -0
  226. /package/dist/{chunk-KOSD5OKA.js.map → chunk-XNDPIHAF.js.map} +0 -0
  227. /package/dist/{chunk-634BVRHR.js.map → chunk-Y72W6OWA.js.map} +0 -0
  228. /package/dist/{chunk-JBSAZP3R.js.map → chunk-ZGIMM7G5.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-JN4C5D5P.cjs","../src/components/Badge/Badge.props.ts"],"names":["variants","sizes","badgePropDefs"],"mappings":"AAAA,qFAAY;AACZ;ACKA,IAAMA,CAAAA,CAAW,CAAC,UAAA,CAAY,QAAA,CAAU,SAAS,CAAA,CAC3CC,CAAAA,CAAQ,CAAC,IAAA,CAAM,IAAI,CAAA,CAEZC,CAAAA,aAAgB,CAC3B,OAAA,CAAS,CAAE,SAAA,CAAW,SAAA,CAAW,MAAA,CAAQF,CAAAA,CAAU,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,QAAS,CAAA,CACxF,IAAA,CAAM,CAAE,SAAA,CAAW,MAAA,CAAQ,MAAA,CAAQC,CAAAA,CAAO,UAAA,CAAY,CAAA,CAAA,CAAM,OAAA,CAAS,IAAK,CAC5E,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-JN4C5D5P.cjs","sourcesContent":[null,"import { MarginProps } from '../../props/margin.props';\nimport type { ComponentPropsWithRef } from 'react';\nimport { PropDef } from '../../props/prop-def';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { Responsive } from '../../types/responsive';\n\nconst variants = ['emphasis', 'subtle', 'outline'] as const;\nconst sizes = ['sm', 'md'] as const;\n\nexport const badgePropDefs = {\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'subtle' },\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface BadgeProps extends ComponentPropsWithRef<'span'>, MarginProps, TextTransformProps {\n /**\n * Sets the badges's visual variant\n * @default subtle\n */\n variant?: (typeof variants)[number];\n /**\n * Sets the badge size.\n * @default md\n */\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * Sets the colour scheme.\n * @default info\n */\n colorScheme?:\n | 'info'\n | 'positive'\n | 'danger'\n | 'warning'\n | 'functional'\n | 'energy'\n | 'mobile'\n | 'broadband'\n | 'insurance'\n | 'cashback'\n | 'pig'\n | 'highlight';\n /**\n * Removes the bottom radius, set when the Badge sits directly above another container\n * @default false\n */\n flatBase?: boolean;\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-E6QW7LY4.cjs","../src/components/Badge/Badge.props.ts"],"names":["variants","sizes","badgePropDefs"],"mappings":"AAAA,qFAAY;AACZ;ACKA,IAAMA,CAAAA,CAAW,CAAC,UAAA,CAAY,QAAA,CAAU,SAAS,CAAA,CAC3CC,CAAAA,CAAQ,CAAC,IAAA,CAAM,IAAI,CAAA,CAEZC,CAAAA,aAAgB,CAC3B,OAAA,CAAS,CAAE,SAAA,CAAW,SAAA,CAAW,MAAA,CAAQF,CAAAA,CAAU,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,QAAS,CAAA,CACxF,IAAA,CAAM,CAAE,SAAA,CAAW,MAAA,CAAQ,MAAA,CAAQC,CAAAA,CAAO,UAAA,CAAY,CAAA,CAAA,CAAM,OAAA,CAAS,IAAK,CAC5E,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-E6QW7LY4.cjs","sourcesContent":[null,"import { MarginProps } from '../../props/margin.props';\nimport type { ComponentPropsWithRef } from 'react';\nimport { PropDef } from '../../props/prop-def';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { Responsive } from '../../types/responsive';\n\nconst variants = ['emphasis', 'subtle', 'outline'] as const;\nconst sizes = ['sm', 'md'] as const;\n\nexport const badgePropDefs = {\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'subtle' },\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface BadgeProps extends ComponentPropsWithRef<'span'>, MarginProps, TextTransformProps {\n /**\n * Sets the badges's visual variant\n * @default subtle\n */\n variant?: (typeof variants)[number];\n /**\n * Sets the badge size.\n * @default md\n */\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * Sets the colour scheme.\n * @default info\n */\n colorScheme?:\n | 'info'\n | 'positive'\n | 'danger'\n | 'warning'\n | 'functional'\n | 'energy'\n | 'mobile'\n | 'broadband'\n | 'insurance'\n | 'cashback'\n | 'pig'\n | 'highlight';\n /**\n * Removes the bottom radius, set when the Badge sits directly above another container\n * @default false\n */\n flatBase?: boolean;\n /**\n * Allows the content to wrap onto multiple lines, left-aligned\n * @default false\n */\n wrap?: boolean;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as l}from"./chunk-TJHI42VN.js";import{a as B}from"./chunk-6RAPGVEG.js";import{a as O}from"./chunk-ZL7L2WXW.js";import{a as E}from"./chunk-L7XVQXSE.js";import{a as V}from"./chunk-CANHKUAY.js";import{a as n}from"./chunk-QNITBIE4.js";import{a as T}from"./chunk-DAEIJDP7.js";import{a as h}from"./chunk-OPPG3NOC.js";import{a as g}from"./chunk-7X24J4CX.js";import{a as A}from"./chunk-VKE2TXPE.js";import{a as N}from"./chunk-KGEVWEVL.js";import{a as y}from"./chunk-J3AJBV4B.js";import{b as i}from"./chunk-PDEVCIQ3.js";import{Combobox as e}from"@base-ui/react/combobox";import{CloseSmallIcon as Q,ExpandSmallIcon as W,SearchMediumIcon as X}from"@utilitywarehouse/hearth-react-icons";import{ScrollArea as s}from"radix-ui";import{jsx as o,jsxs as m}from"react/jsx-runtime";var F="Combobox",r=i(F);function Y(d){let{className:w,children:p,triggerOnlyOnType:C,validationStatus:b,validationText:u,label:M,labelVariant:R,helperText:P,id:L,disabled:t,required:U,noOptionsFoundText:$,statusText:c,loading:D,hideLabel:k,placeholder:q,"aria-describedby":z,...G}=N(d,h),{id:S,labelId:H,helperTextId:I,validationTextId:f}=g({providedId:L,prefix:"combobox"}),a=!t,_={id:S,labelId:H,helperTextId:I,validationTextId:f,label:M,labelVariant:R,helperText:P,validationText:a?u:void 0,validationStatus:a?b:void 0,required:U,hideLabel:k},v=a&&b==="invalid",J=A(z,P?I:void 0,a&&b!==void 0&&u!==void 0?f:void 0),K=!!c||!!d.items||!!p;return o(B,{className:y(r,w),"data-disabled":t?"":void 0,"data-testid":r,..._,children:m(e.Root,{openOnInputClick:!C,...G,children:[o(e.Input,{render:m(O,{id:S,disabled:t,placeholder:q,"aria-describedby":J,"aria-invalid":v?!0:void 0,"aria-errormessage":v&&u!==void 0?f:void 0,children:[o(e.Trigger,{disabled:t,render:o(l,{placement:"prefix",asChild:!0,children:o(n,{type:"button",label:"Open popup",disabled:t,children:o(X,{})})})}),D?o(l,{placement:"suffix",children:o(T,{size:"xs",color:"primary"})}):null,o(e.Clear,{render:o(l,{placement:"suffix",asChild:!0,children:o(n,{type:"button",label:"Clear selection",disabled:t,children:o(Q,{})})})}),C?null:o(e.Trigger,{disabled:t,render:o(l,{placement:"suffix",asChild:!0,children:o(n,{type:"button",label:"Open popup",disabled:t,children:o(W,{})})})})]})}),K?o(e.Portal,{children:o(e.Positioner,{side:"bottom",sideOffset:16,align:"start",alignOffset:-47,children:m(e.Popup,{className:`${r}Popup`,children:[c?o(e.Status,{className:`${r}StatusText`,children:c}):null,d.items?o(E,{className:`${r}Empty`,children:$}):null,m(s.Root,{className:i("ScrollAreaRoot"),type:"auto",children:[o(s.Viewport,{className:i("ScrollAreaViewport"),children:o(e.List,{className:`${r}List`,children:p||(x=>o(V,{value:x,children:x},x))})}),o(s.Scrollbar,{className:i("ScrollAreaScrollbar"),orientation:"vertical",children:o(s.Thumb,{className:i("ScrollAreaThumb")})})]})]})})}):null]})})}Y.displayName=F;export{Y as a};
4
- //# sourceMappingURL=chunk-OBEWOAZS.js.map
3
+ import{a as l}from"./chunk-TJHI42VN.js";import{a as O}from"./chunk-ZL7L2WXW.js";import{a as B}from"./chunk-6RAPGVEG.js";import{a as E}from"./chunk-L7XVQXSE.js";import{a as V}from"./chunk-CANHKUAY.js";import{a as n}from"./chunk-QNITBIE4.js";import{a as T}from"./chunk-DAEIJDP7.js";import{a as h}from"./chunk-OPPG3NOC.js";import{a as g}from"./chunk-7X24J4CX.js";import{a as A}from"./chunk-VKE2TXPE.js";import{a as N}from"./chunk-KGEVWEVL.js";import{a as y}from"./chunk-J3AJBV4B.js";import{b as i}from"./chunk-PDEVCIQ3.js";import{Combobox as e}from"@base-ui/react/combobox";import{CloseSmallIcon as Q,ExpandSmallIcon as W,SearchMediumIcon as X}from"@utilitywarehouse/hearth-react-icons";import{ScrollArea as s}from"radix-ui";import{jsx as o,jsxs as m}from"react/jsx-runtime";var F="Combobox",r=i(F);function Y(d){let{className:w,children:p,triggerOnlyOnType:C,validationStatus:b,validationText:u,label:M,labelVariant:R,helperText:P,id:L,disabled:t,required:U,noOptionsFoundText:$,statusText:c,loading:D,hideLabel:k,placeholder:q,"aria-describedby":z,...G}=N(d,h),{id:S,labelId:H,helperTextId:I,validationTextId:f}=g({providedId:L,prefix:"combobox"}),a=!t,_={id:S,labelId:H,helperTextId:I,validationTextId:f,label:M,labelVariant:R,helperText:P,validationText:a?u:void 0,validationStatus:a?b:void 0,required:U,hideLabel:k},v=a&&b==="invalid",J=A(z,P?I:void 0,a&&b!==void 0&&u!==void 0?f:void 0),K=!!c||!!d.items||!!p;return o(B,{className:y(r,w),"data-disabled":t?"":void 0,"data-testid":r,..._,children:m(e.Root,{openOnInputClick:!C,...G,children:[o(e.Input,{render:m(O,{id:S,disabled:t,placeholder:q,"aria-describedby":J,"aria-invalid":v?!0:void 0,"aria-errormessage":v&&u!==void 0?f:void 0,children:[o(e.Trigger,{disabled:t,render:o(l,{placement:"prefix",asChild:!0,children:o(n,{type:"button",label:"Open popup",disabled:t,children:o(X,{})})})}),D?o(l,{placement:"suffix",children:o(T,{size:"xs",color:"primary"})}):null,o(e.Clear,{render:o(l,{placement:"suffix",asChild:!0,children:o(n,{type:"button",label:"Clear selection",disabled:t,children:o(Q,{})})})}),C?null:o(e.Trigger,{disabled:t,render:o(l,{placement:"suffix",asChild:!0,children:o(n,{type:"button",label:"Open popup",disabled:t,children:o(W,{})})})})]})}),K?o(e.Portal,{children:o(e.Positioner,{side:"bottom",sideOffset:16,align:"start",alignOffset:-47,children:m(e.Popup,{className:`${r}Popup`,children:[c?o(e.Status,{className:`${r}StatusText`,children:c}):null,d.items?o(E,{className:`${r}Empty`,children:$}):null,m(s.Root,{className:i("ScrollAreaRoot"),type:"auto",children:[o(s.Viewport,{className:i("ScrollAreaViewport"),children:o(e.List,{className:`${r}List`,children:p||(x=>o(V,{value:x,children:x},x))})}),o(s.Scrollbar,{className:i("ScrollAreaScrollbar"),orientation:"vertical",children:o(s.Thumb,{className:i("ScrollAreaThumb")})})]})]})})}):null]})})}Y.displayName=F;export{Y as a};
4
+ //# sourceMappingURL=chunk-EEXCCYCT.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkGN2MUYQRcjs = require('./chunk-GN2MUYQR.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var s="Accordion",p=_chunk4Q432K4Wcjs.b.call(void 0, s),u= exports.a =_react.forwardRef.call(void 0, (a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=_chunkZPJNQBTNcjs.a.call(void 0, a,_chunkOB7O3UFLcjs.a),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return _jsxruntime.jsxs.call(void 0, "div",{ref:d,className:_chunkONNSZMWFcjs.a.call(void 0, p,l),"data-testid":p,children:[t?_jsxruntime.jsx.call(void 0, _chunkGN2MUYQRcjs.a,{...R}):null,_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{...y})]})});u.displayName=s;exports.a = u;
4
- //# sourceMappingURL=chunk-SL5KN4YG.cjs.map
3
+ var _chunkZI5O2B2Rcjs = require('./chunk-ZI5O2B2R.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var s="Accordion",p=_chunk4Q432K4Wcjs.b.call(void 0, s),u= exports.a =_react.forwardRef.call(void 0, (a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=_chunkZPJNQBTNcjs.a.call(void 0, a,_chunkOB7O3UFLcjs.a),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return _jsxruntime.jsxs.call(void 0, "div",{ref:d,className:_chunkONNSZMWFcjs.a.call(void 0, p,l),"data-testid":p,children:[t?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{...R}):null,_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{...y})]})});u.displayName=s;exports.a = u;
4
+ //# sourceMappingURL=chunk-EOMKJBCT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-SL5KN4YG.cjs","../src/components/Accordion/Accordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Accordion","forwardRef","props","ref","className","type","heading","headingElement","helperText","trailingContent","validationText","validationStatus","collapsible","restProps","extractProps","marginPropDefs","sectionHeaderProps","accordionProps","jsxs","cn","jsx","SectionHeader","AccordionPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAjL,mCAKqB,+CAoD5C,IA/CEA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAYC,+BAAAA,CAA8CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACpF,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CAAO,UAAA,CACP,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,IAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaZ,CAAOa,mBAAc,CAAA,CAEhCC,CAAAA,CAAqB,CACzB,OAAA,CAAAV,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEMM,CAAAA,CAAiB,CACrB,IAAA,CAAAZ,CAAAA,CACA,GAAGQ,CAAAA,CAGH,GAAIR,CAAAA,GAAS,QAAA,CAAW,CAAE,WAAA,CAAAO,CAAY,CAAA,CAAI,CAAC,CAC7C,CAAA,CAEA,OACEM,8BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKf,CAAAA,CAAK,SAAA,CAAWgB,iCAAAA,CAAGrB,CAAoBM,CAAS,CAAA,CAAG,aAAA,CAAaN,CAAAA,CACvE,QAAA,CAAA,CAAAQ,CAAAA,CAAUc,6BAAAA,mBAACC,CAAA,CAAe,GAAGL,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACvDI,6BAAAA,kBAACE,CAAmB,IAAA,CAAnB,CAAyB,GAAGL,CAAAA,CAAgB,CAAA,CAAA,CAC/C,CAEJ,CAAC,CAAA,CAEDjB,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-SL5KN4YG.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { AccordionProps } from './Accordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst COMPONENT_NAME = 'Accordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype AccordionElement = ComponentRef<'div'>;\n\n/**\n * Use Accordion to let users expand or collapse individual content sections,\n * presenting a large amount of information in a compact, organised interface.\n * Compose it with `AccordionItem`, `AccordionHeader`, `AccordionTrigger`, and\n * `AccordionContent` for each disclosure item. The `type` prop is required and\n * determines whether one (`single`) or multiple (`multiple`) items can be\n * expanded at once.\n *\n * @summary A vertically stacked set of expandable and collapsible content sections.\n */\nexport const Accordion = forwardRef<AccordionElement, AccordionProps>((props, ref) => {\n const {\n className,\n type = 'multiple',\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n collapsible,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const accordionProps = {\n type,\n ...restProps,\n // `collapsible` is only valid for `type=\"single\"` — Radix doesn't strip it for\n // `type=\"multiple\"`, so passing it regardless would leak onto the DOM node.\n ...(type === 'single' ? { collapsible } : {}),\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n return (\n <div ref={ref} className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <AccordionPrimitive.Root {...accordionProps} />\n </div>\n );\n});\n\nAccordion.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-EOMKJBCT.cjs","../src/components/Accordion/Accordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Accordion","forwardRef","props","ref","className","type","heading","headingElement","helperText","trailingContent","validationText","validationStatus","collapsible","restProps","extractProps","marginPropDefs","sectionHeaderProps","accordionProps","jsxs","cn","jsx","SectionHeader","AccordionPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,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jB,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-EOMKJBCT.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { AccordionProps } from './Accordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst COMPONENT_NAME = 'Accordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype AccordionElement = ComponentRef<'div'>;\n\n/**\n * Use Accordion to let users expand or collapse individual content sections,\n * presenting a large amount of information in a compact, organised interface.\n * Compose it with `AccordionItem`, `AccordionHeader`, `AccordionTrigger`, and\n * `AccordionContent` for each disclosure item. The `type` prop is required and\n * determines whether one (`single`) or multiple (`multiple`) items can be\n * expanded at once.\n *\n * @summary A vertically stacked set of expandable and collapsible content sections.\n */\nexport const Accordion = forwardRef<AccordionElement, AccordionProps>((props, ref) => {\n const {\n className,\n type = 'multiple',\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n collapsible,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const accordionProps = {\n type,\n ...restProps,\n // `collapsible` is only valid for `type=\"single\"` — Radix doesn't strip it for\n // `type=\"multiple\"`, so passing it regardless would leak onto the DOM node.\n ...(type === 'single' ? { collapsible } : {}),\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n return (\n <div ref={ref} className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <AccordionPrimitive.Root {...accordionProps} />\n </div>\n );\n});\n\nAccordion.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkQDFEVSQ6cjs = require('./chunk-QDFEVSQ6.cjs');var _chunk4TQZRZEMcjs = require('./chunk-4TQZRZEM.cjs');var _chunkZN6EEPYTcjs = require('./chunk-ZN6EEPYT.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkEDOOI4SYcjs = require('./chunk-EDOOI4SY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="ProgressBar",x=_chunk4Q432K4Wcjs.b.call(void 0, N),D= exports.a =_react.forwardRef.call(void 0, (h,y)=>{let{className:C,variant:o="linear",colorScheme:s="default",value:T,min:e=0,max:r=100,label:E,formatValueText:t,"aria-valuetext":M,hideLabel:V,...w}=_chunkZPJNQBTNcjs.a.call(void 0, h,_chunk4TQZRZEMcjs.a,_chunkOB7O3UFLcjs.a),{labelId:l}=_chunkRIHABKWYcjs.a.call(void 0, {prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=_chunkEDOOI4SYcjs.a.call(void 0, a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return _jsxruntime.jsxs.call(void 0, "div",{ref:y,className:_chunkONNSZMWFcjs.a.call(void 0, x,C),role:"progressbar","aria-valuenow":a,"aria-valuemin":e,"aria-valuemax":r,"aria-valuetext":M||i,"aria-labelledby":l,"data-colorscheme":s,"data-testid":x,...w,children:[o==="linear"?_jsxruntime.jsx.call(void 0, _chunkQDFEVSQ6cjs.a,{...p}):null,o==="circular"?_jsxruntime.jsx.call(void 0, _chunkZN6EEPYTcjs.a,{...p}):null]})});D.displayName=N;exports.a = D;
4
- //# sourceMappingURL=chunk-OJSBYHQW.cjs.map
3
+ var _chunk4TQZRZEMcjs = require('./chunk-4TQZRZEM.cjs');var _chunkQIOH4DVUcjs = require('./chunk-QIOH4DVU.cjs');var _chunkZRZL5ETLcjs = require('./chunk-ZRZL5ETL.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkEDOOI4SYcjs = require('./chunk-EDOOI4SY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="ProgressBar",x=_chunk4Q432K4Wcjs.b.call(void 0, N),D= exports.a =_react.forwardRef.call(void 0, (h,y)=>{let{className:C,variant:o="linear",colorScheme:s="default",value:T,min:e=0,max:r=100,label:E,formatValueText:t,"aria-valuetext":M,hideLabel:V,...w}=_chunkZPJNQBTNcjs.a.call(void 0, h,_chunk4TQZRZEMcjs.a,_chunkOB7O3UFLcjs.a),{labelId:l}=_chunkRIHABKWYcjs.a.call(void 0, {prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=_chunkEDOOI4SYcjs.a.call(void 0, a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return _jsxruntime.jsxs.call(void 0, "div",{ref:y,className:_chunkONNSZMWFcjs.a.call(void 0, x,C),role:"progressbar","aria-valuenow":a,"aria-valuemin":e,"aria-valuemax":r,"aria-valuetext":M||i,"aria-labelledby":l,"data-colorscheme":s,"data-testid":x,...w,children:[o==="linear"?_jsxruntime.jsx.call(void 0, _chunkZRZL5ETLcjs.a,{...p}):null,o==="circular"?_jsxruntime.jsx.call(void 0, _chunkQIOH4DVUcjs.a,{...p}):null]})});D.displayName=N;exports.a = D;
4
+ //# sourceMappingURL=chunk-FTN2QGBD.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-OJSBYHQW.cjs","../src/components/ProgressBar/ProgressBar.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBar","forwardRef","props","ref","className","variant","colorScheme","value","min","max","label","formatValueText","ariaValueText","hideLabel","progressBarProps","extractProps","progressBarPropDefs","marginPropDefs","labelId","useIds","effectiveValue","percentValue","valueToPercent","valueText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCUrV,+CAmDvB,IAhDEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAa7CC,CAAAA,aAAcC,+BAAAA,CAAkDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC1F,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,QAAA,CACV,WAAA,CAAAC,CAAAA,CAAc,SAAA,CACd,KAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CAAM,CAAA,CACN,GAAA,CAAAC,CAAAA,CAAM,GAAA,CACN,KAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAkBC,CAAAA,CAClB,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAab,CAAOc,mBAAAA,CAAqBC,mBAAc,CAAA,CAErD,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,UAAW,CAAC,CAAA,CAI3CC,CAAAA,CAAiBd,CAAAA,GAAgB,SAAA,CAAYG,CAAAA,CAAM,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAK,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAOE,CAAG,CAAC,CAAA,CAErFY,CAAAA,CAAeC,iCAAAA,CAAeF,CAAgBZ,CAAAA,CAAKC,CAAG,CAAA,CAEtDc,CAAAA,CAAYZ,CAAAA,CAAkBA,CAAAA,CAAgBS,CAAc,CAAA,CAAI,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-OJSBYHQW.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { progressBarPropDefs } from './ProgressBar.props';\nimport type { ProgressBarProps } from './ProgressBar.props';\nimport { ProgressBarLinear } from './ProgressBarLinear';\nimport { valueToPercent } from '../../helpers/value-to-percent';\nimport { useIds } from '../../hooks/use-ids';\nimport { ProgressBarCircular } from './ProgressBarCircular';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'ProgressBar';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ProgressBarElement = ComponentRef<'div'>;\n\n/**\n * Use ProgressBar to show the progress of a task or process as a linear or\n * circular bar. Use the `colorScheme` prop to indicate success or danger\n * states, and always provide a `label` describing what is progressing (this\n * can be visually hidden with `hideLabel`). For a multi-step process where\n * each step is discrete, use ProgressStepper instead.\n *\n * @summary Displays the progress of a task or process as a linear or circular bar.\n */\nexport const ProgressBar = forwardRef<ProgressBarElement, ProgressBarProps>((props, ref) => {\n const {\n className,\n variant = 'linear',\n colorScheme = 'default',\n value,\n min = 0,\n max = 100,\n label,\n formatValueText,\n 'aria-valuetext': ariaValueText,\n hideLabel,\n ...progressBarProps\n } = extractProps(props, progressBarPropDefs, marginPropDefs);\n\n const { labelId } = useIds({ prefix: 'progress' });\n\n // Determine the logical value based on status\n // If 'success', we force 100% (max); otherwise, we clamp the actual value.\n const effectiveValue = colorScheme === 'success' ? max : Math.max(min, Math.min(value, max));\n // Get the whole number percentage\n const percentValue = valueToPercent(effectiveValue, min, max);\n // Determine the text display\n const valueText = formatValueText ? formatValueText(effectiveValue) : `${percentValue}%`;\n\n const internalProgressBarProps = {\n value: percentValue,\n label,\n valueText,\n labelId,\n hideLabel,\n };\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n role=\"progressbar\"\n aria-valuenow={effectiveValue}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuetext={ariaValueText || valueText}\n aria-labelledby={labelId}\n data-colorscheme={colorScheme}\n data-testid={componentClassName}\n {...progressBarProps}\n >\n {variant === 'linear' ? <ProgressBarLinear {...internalProgressBarProps} /> : null}\n {variant === 'circular' ? <ProgressBarCircular {...internalProgressBarProps} /> : null}\n </div>\n );\n});\n\nProgressBar.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-FTN2QGBD.cjs","../src/components/ProgressBar/ProgressBar.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBar","forwardRef","props","ref","className","variant","colorScheme","value","min","max","label","formatValueText","ariaValueText","hideLabel","progressBarProps","extractProps","progressBarPropDefs","marginPropDefs","labelId","useIds","effectiveValue","percentValue","valueToPercent","valueText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCUrV,+CAmDvB,IAhDEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAa7CC,CAAAA,aAAcC,+BAAAA,CAAkDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC1F,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,QAAA,CACV,WAAA,CAAAC,CAAAA,CAAc,SAAA,CACd,KAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CAAM,CAAA,CACN,GAAA,CAAAC,CAAAA,CAAM,GAAA,CACN,KAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAkBC,CAAAA,CAClB,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAab,CAAOc,mBAAAA,CAAqBC,mBAAc,CAAA,CAErD,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,UAAW,CAAC,CAAA,CAI3CC,CAAAA,CAAiBd,CAAAA,GAAgB,SAAA,CAAYG,CAAAA,CAAM,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAK,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAOE,CAAG,CAAC,CAAA,CAErFY,CAAAA,CAAeC,iCAAAA,CAAeF,CAAgBZ,CAAAA,CAAKC,CAAG,CAAA,CAEtDc,CAAAA,CAAYZ,CAAAA,CAAkBA,CAAAA,CAAgBS,CAAc,CAAA,CAAI,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-FTN2QGBD.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { progressBarPropDefs } from './ProgressBar.props';\nimport type { ProgressBarProps } from './ProgressBar.props';\nimport { ProgressBarLinear } from './ProgressBarLinear';\nimport { valueToPercent } from '../../helpers/value-to-percent';\nimport { useIds } from '../../hooks/use-ids';\nimport { ProgressBarCircular } from './ProgressBarCircular';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'ProgressBar';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ProgressBarElement = ComponentRef<'div'>;\n\n/**\n * Use ProgressBar to show the progress of a task or process as a linear or\n * circular bar. Use the `colorScheme` prop to indicate success or danger\n * states, and always provide a `label` describing what is progressing (this\n * can be visually hidden with `hideLabel`). For a multi-step process where\n * each step is discrete, use ProgressStepper instead.\n *\n * @summary Displays the progress of a task or process as a linear or circular bar.\n */\nexport const ProgressBar = forwardRef<ProgressBarElement, ProgressBarProps>((props, ref) => {\n const {\n className,\n variant = 'linear',\n colorScheme = 'default',\n value,\n min = 0,\n max = 100,\n label,\n formatValueText,\n 'aria-valuetext': ariaValueText,\n hideLabel,\n ...progressBarProps\n } = extractProps(props, progressBarPropDefs, marginPropDefs);\n\n const { labelId } = useIds({ prefix: 'progress' });\n\n // Determine the logical value based on status\n // If 'success', we force 100% (max); otherwise, we clamp the actual value.\n const effectiveValue = colorScheme === 'success' ? max : Math.max(min, Math.min(value, max));\n // Get the whole number percentage\n const percentValue = valueToPercent(effectiveValue, min, max);\n // Determine the text display\n const valueText = formatValueText ? formatValueText(effectiveValue) : `${percentValue}%`;\n\n const internalProgressBarProps = {\n value: percentValue,\n label,\n valueText,\n labelId,\n hideLabel,\n };\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n role=\"progressbar\"\n aria-valuenow={effectiveValue}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuetext={ariaValueText || valueText}\n aria-labelledby={labelId}\n data-colorscheme={colorScheme}\n data-testid={componentClassName}\n {...progressBarProps}\n >\n {variant === 'linear' ? <ProgressBarLinear {...internalProgressBarProps} /> : null}\n {variant === 'circular' ? <ProgressBarCircular {...internalProgressBarProps} /> : null}\n </div>\n );\n});\n\nProgressBar.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as l}from"./chunk-7W2RLCGB.js";import{b as p}from"./chunk-YWMUOY43.js";import{a as d}from"./chunk-OPPG3NOC.js";import{a as s}from"./chunk-KGEVWEVL.js";import{a}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{Children as N,forwardRef as V,isValidElement as y,useEffect as E,useState as R}from"react";import{Accordion as w}from"radix-ui";import{jsx as f}from"react/jsx-runtime";var C="CardAccordion",m=c(C),I=V((u,A)=>{let{className:P,children:t,value:r,onValueChange:e,...h}=s(u,d),[v,n]=R(r);E(()=>{r!==void 0&&n(r)},[r]);let g={...h,type:"single",collapsible:!1,value:v,onValueChange:o=>{n(o),e&&e(o)}},i=(N.map(t,o=>y(o)&&o.type===l?o.props.value:null)??[]).filter(Boolean);return i.length===0?(process.env.NODE_ENV!=="production"&&console.error('[CardAccordion]: No CardAccordionItem children with a "value" prop were found. CardAccordion requires at least one CardAccordionItem child.'),null):f(w.Root,{ref:A,className:a(m,P),"data-testid":m,...g,children:f(p,{steps:i,onValueChange:e,setCurrentValue:n,children:t})})});I.displayName=C;export{I as a};
4
- //# sourceMappingURL=chunk-ODJW4CKV.js.map
3
+ import{a as l}from"./chunk-LBCDHBLY.js";import{b as p}from"./chunk-YWMUOY43.js";import{a as d}from"./chunk-OPPG3NOC.js";import{a as s}from"./chunk-KGEVWEVL.js";import{a}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{Children as N,forwardRef as V,isValidElement as y,useEffect as E,useState as R}from"react";import{Accordion as w}from"radix-ui";import{jsx as f}from"react/jsx-runtime";var C="CardAccordion",m=c(C),I=V((u,A)=>{let{className:P,children:t,value:r,onValueChange:e,...h}=s(u,d),[v,n]=R(r);E(()=>{r!==void 0&&n(r)},[r]);let g={...h,type:"single",collapsible:!1,value:v,onValueChange:o=>{n(o),e&&e(o)}},i=(N.map(t,o=>y(o)&&o.type===l?o.props.value:null)??[]).filter(Boolean);return i.length===0?(process.env.NODE_ENV!=="production"&&console.error('[CardAccordion]: No CardAccordionItem children with a "value" prop were found. CardAccordion requires at least one CardAccordionItem child.'),null):f(w.Root,{ref:A,className:a(m,P),"data-testid":m,...g,children:f(p,{steps:i,onValueChange:e,setCurrentValue:n,children:t})})});I.displayName=C;export{I as a};
4
+ //# sourceMappingURL=chunk-G6QAVOQR.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var r="BannerImage",f=_chunk4Q432K4Wcjs.b.call(void 0, r),s= exports.a =_react.forwardRef.call(void 0, ({className:n,...a},p)=>_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{ref:p,className:_chunkONNSZMWFcjs.a.call(void 0, f,n),...a}));s.displayName=r;exports.a = s;
4
+ //# sourceMappingURL=chunk-GBAD27K2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GBAD27K2.cjs","../src/components/BannerImage/BannerImage.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","BannerImage","forwardRef","className","props","ref","jsx","Flex","cn"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,8BCF/F,+CAsBvB,IAfEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAcC,+BAAAA,CACxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,mBAACC,CAAA,CAAK,GAAA,CAAKF,CAAAA,CAAK,SAAA,CAAWG,iCAAAA,CAAGT,CAAoBI,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE7E,CAAA,CAEAH,CAAAA,CAAY,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GBAD27K2.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport type { BannerImageProps } from './BannerImage.props';\n\nconst COMPONENT_NAME = 'BannerImage';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype BannerImageElement = ComponentRef<'div'>;\n\n/**\n * Wraps a photographic or banner image with a border, rounded corners and\n * clipped overflow. Use it in the `image` prop of `Modal`, or alongside\n * `CardBannerContent` in a `Card`. Give the image `width: 100%`,\n * `height: 100%` and `object-fit: cover` to fill the wrapper.\n *\n * @summary A bordered, rounded wrapper for banner images.\n */\nexport const BannerImage = forwardRef<BannerImageElement, BannerImageProps>(\n ({ className, ...props }, ref) => (\n <Flex ref={ref} className={cn(componentClassName, className)} {...props} />\n )\n);\n\nBannerImage.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as p}from"./chunk-PCFN2SEL.js";import{a as t}from"./chunk-OPPG3NOC.js";import{a}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{jsx as u,jsxs as b}from"react/jsx-runtime";var d="ExpandableCardGroup",n=o(d),h=x((m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=a(m,t);return b("div",{ref:i,className:r(n,l),"data-testid":n,...c,children:[e?u(p,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;export{h as a};
4
- //# sourceMappingURL=chunk-TQTU3SU5.js.map
3
+ import{a as p}from"./chunk-T36G4P7P.js";import{a as t}from"./chunk-OPPG3NOC.js";import{a}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{jsx as u,jsxs as b}from"react/jsx-runtime";var d="ExpandableCardGroup",n=o(d),h=x((m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=a(m,t);return b("div",{ref:i,className:r(n,l),"data-testid":n,...c,children:[e?u(p,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;export{h as a};
4
+ //# sourceMappingURL=chunk-GBDOGSHO.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as p}from"./chunk-PCAKJHKN.js";import{a}from"./chunk-OHQ72FBJ.js";import{a as m}from"./chunk-QNXCNYOX.js";import{a as t}from"./chunk-J3AJBV4B.js";import{b as n}from"./chunk-PDEVCIQ3.js";import{forwardRef as u,useContext as B}from"react";import{Fragment as y,jsx as e,jsxs as x}from"react/jsx-runtime";var c="BreadcrumbItem",d=n(c),b=u(({className:o,children:i,currentPage:l,...s},f)=>{let{inverted:r}=B(p);return l?e(m,{"aria-current":"page",size:"md",color:r?"inverted":"primary",textAlign:"center",asChild:!0,children:e("li",{className:t(d,o),children:i})}):x(y,{children:[e("li",{className:t(d,o),children:e(a,{ref:f,...s,inverted:r,children:i})}),e(m,{asChild:!0,size:"md",color:r?"inverted":"primary",textAlign:"center",children:e("li",{"aria-hidden":!0,children:"/"})})]})});b.displayName=c;export{b as a};
4
- //# sourceMappingURL=chunk-YPFBLO44.js.map
3
+ import{a}from"./chunk-OHQ72FBJ.js";import{a as p}from"./chunk-PCAKJHKN.js";import{a as m}from"./chunk-QNXCNYOX.js";import{a as t}from"./chunk-J3AJBV4B.js";import{b as n}from"./chunk-PDEVCIQ3.js";import{forwardRef as u,useContext as B}from"react";import{Fragment as y,jsx as e,jsxs as x}from"react/jsx-runtime";var c="BreadcrumbItem",d=n(c),b=u(({className:o,children:i,currentPage:l,...s},f)=>{let{inverted:r}=B(p);return l?e(m,{"aria-current":"page",size:"md",color:r?"inverted":"primary",textAlign:"center",asChild:!0,children:e("li",{className:t(d,o),children:i})}):x(y,{children:[e("li",{className:t(d,o),children:e(a,{ref:f,...s,inverted:r,children:i})}),e(m,{asChild:!0,size:"md",color:r?"inverted":"primary",textAlign:"center",children:e("li",{"aria-hidden":!0,children:"/"})})]})});b.displayName=c;export{b as a};
4
+ //# sourceMappingURL=chunk-GTXWXSXO.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as f}from"./chunk-MB2NMZ2I.js";import{a as p}from"./chunk-4MNQRAHO.js";import{a as l}from"./chunk-RXW6PYP7.js";import{a}from"./chunk-KGEVWEVL.js";import{a as e}from"./chunk-J3AJBV4B.js";import{b as s}from"./chunk-PDEVCIQ3.js";import{forwardRef as E}from"react";import{jsx as o}from"react/jsx-runtime";var y="SkeletonBodyText",d=s(y),R=E((c,t)=>{let{lines:r="1",className:m,margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u,...n}=a(c,f),i={margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u};return r==="1"?o(l,{as:"div",ref:t,className:e(d,m),...i,...n}):o(p,{ref:t,direction:"column",gap:"75",...i,children:Array.from({length:Number(r)},(v,C)=>o("div",{className:e(d,m),...n},C))})});R.displayName=y;export{R as a};
4
- //# sourceMappingURL=chunk-V4BZIPQB.js.map
3
+ import{a as f}from"./chunk-MB2NMZ2I.js";import{a as l}from"./chunk-RXW6PYP7.js";import{a as p}from"./chunk-4MNQRAHO.js";import{a}from"./chunk-KGEVWEVL.js";import{a as e}from"./chunk-J3AJBV4B.js";import{b as s}from"./chunk-PDEVCIQ3.js";import{forwardRef as E}from"react";import{jsx as o}from"react/jsx-runtime";var y="SkeletonBodyText",d=s(y),R=E((c,t)=>{let{lines:r="1",className:m,margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u,...n}=a(c,f),i={margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u};return r==="1"?o(l,{as:"div",ref:t,className:e(d,m),...i,...n}):o(p,{ref:t,direction:"column",gap:"75",...i,children:Array.from({length:Number(r)},(v,C)=>o("div",{className:e(d,m),...n},C))})});R.displayName=y;export{R as a};
4
+ //# sourceMappingURL=chunk-HNPNWQMD.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
2
2
 
3
- var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunkGN2MUYQRcjs = require('./chunk-GN2MUYQR.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var y="List",a=_chunk4Q432K4Wcjs.b.call(void 0, y),O= exports.a =_react.forwardRef.call(void 0, (P,t)=>{let{id:v,as:o="ul",className:x,colorScheme:r=void 0,variant:n,listItemsVariant:T,heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B,children:l,paddingNone:R,"aria-label":d,"aria-labelledby":V,...s}=_chunkZPJNQBTNcjs.a.call(void 0, P,_chunkOB7O3UFLcjs.a),w={heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B},{id:m,labelId:p}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":_nullishCoalesce(V, () => ((!!i&&!d?p:void 0))),"data-padding-none":R?"":void 0,"data-list-items-variant":T};return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkONNSZMWFcjs.a.call(void 0, a,x),"data-testid":a,children:[i?_jsxruntime.jsx.call(void 0, _chunkGN2MUYQRcjs.a,{id:p,...w}):null,n===void 0||r===void 0?_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,id:m,className:`${a}Container`,role:"list",...f,children:_jsxruntime.jsx.call(void 0, o,{ref:t,...s,children:l})}):_jsxruntime.jsx.call(void 0, _chunkGS47QEXRcjs.a,{className:`${a}Container`,paddingNone:!0,variant:n,colorScheme:r,children:_jsxruntime.jsx.call(void 0, o,{ref:t,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;exports.a = O;
4
- //# sourceMappingURL=chunk-MFDPD7LL.cjs.map
3
+ var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunkZI5O2B2Rcjs = require('./chunk-ZI5O2B2R.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var y="List",a=_chunk4Q432K4Wcjs.b.call(void 0, y),O= exports.a =_react.forwardRef.call(void 0, (P,t)=>{let{id:v,as:o="ul",className:x,colorScheme:r=void 0,variant:n,listItemsVariant:T,heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B,children:l,paddingNone:R,"aria-label":d,"aria-labelledby":V,...s}=_chunkZPJNQBTNcjs.a.call(void 0, P,_chunkOB7O3UFLcjs.a),w={heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B},{id:m,labelId:p}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":_nullishCoalesce(V, () => ((!!i&&!d?p:void 0))),"data-padding-none":R?"":void 0,"data-list-items-variant":T};return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkONNSZMWFcjs.a.call(void 0, a,x),"data-testid":a,children:[i?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{id:p,...w}):null,n===void 0||r===void 0?_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,id:m,className:`${a}Container`,role:"list",...f,children:_jsxruntime.jsx.call(void 0, o,{ref:t,...s,children:l})}):_jsxruntime.jsx.call(void 0, _chunkGS47QEXRcjs.a,{className:`${a}Container`,paddingNone:!0,variant:n,colorScheme:r,children:_jsxruntime.jsx.call(void 0, o,{ref:t,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;exports.a = O;
4
+ //# sourceMappingURL=chunk-IQZRFVT2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-MFDPD7LL.cjs","../src/components/List/List.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","List","forwardRef","props","ref","providedId","Tag","className","colorScheme","variant","listItemsVariant","heading","headingElement","helperText","trailingContent","validationText","validationStatus","children","paddingNone","ariaLabel","ariaLabelledby","listProps","extractProps","marginPropDefs","sectionHeaderProps","id","labelId","useIds","attributeProps","jsxs","cn","jsx","SectionHeader","Box"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,8BCFvS,+CAsEvB,IA1DEA,CAAAA,CAAiB,MAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAOC,+BAAAA,CAAoCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACrE,GAAM,CACJ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AA,CAAAY,CAAAA,CAAUoB,6BAAAA,mBAACC,CAAA,CAAc,EAAA,CAAIN,CAAAA,CAAU,GAAGF,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACnEf,CAAAA,GAAY,KAAA,CAAA,EAAaD,CAAAA,GAAgB,KAAA,CAAA,CACxCuB,6BAAAA,mBAACE,CAAA,CACC,OAAA,CAAO,CAAA,CAAA,CACP,EAAA,CAAIR,CAAAA,CACJ,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-MFDPD7LL.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { useIds } from '../../hooks/use-ids';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'List';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ListElement = ComponentRef<'ol'>;\n\n/**\n * Use List to display a list of items, with support for visual variants,\n * colour schemes, a heading, and helper text. Use ListItem for simple text\n * content, or as a container for more complex or interactive content such as\n * ListItemContent, ListItemButton, or ListItemLink. `variant` and\n * `colorScheme` must be used together — if either is left `undefined`, the\n * list falls back to its default appearance.\n *\n * @summary A list of items with an optional heading, helper text, and style variants.\n */\nexport const List = forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n id: providedId,\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n variant,\n listItemsVariant,\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n children,\n paddingNone,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const { id, labelId } = useIds({ providedId, prefix: 'list' });\n\n const hasHeading = Boolean(heading);\n const ariaLabelledbyValue = ariaLabelledby ?? (hasHeading && !ariaLabel ? labelId : undefined);\n\n const attributeProps = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyValue,\n 'data-padding-none': paddingNone ? '' : undefined,\n 'data-list-items-variant': listItemsVariant,\n };\n\n return (\n <div className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader id={labelId} {...sectionHeaderProps} /> : null}\n {variant === undefined || colorScheme === undefined ? (\n <Box\n asChild\n id={id}\n className={`${componentClassName}Container`}\n role=\"list\"\n {...attributeProps}\n >\n <Tag ref={ref} {...listProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className={`${componentClassName}Container`}\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} role=\"list\" id={id} {...listProps} {...attributeProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-IQZRFVT2.cjs","../src/components/List/List.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","List","forwardRef","props","ref","providedId","Tag","className","colorScheme","variant","listItemsVariant","heading","headingElement","helperText","trailingContent","validationText","validationStatus","children","paddingNone","ariaLabel","ariaLabelledby","listProps","extractProps","marginPropDefs","sectionHeaderProps","id","labelId","useIds","attributeProps","jsxs","cn","jsx","SectionHeader","Box"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,8BCFvS,+CAsEvB,IA1DEA,CAAAA,CAAiB,MAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAOC,+BAAAA,CAAoCC,CAAAA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AAA,CAAG,aAAA,CAAaR,CAAAA,CAC7D,QAAA,CAAA,CAAAY,CAAAA,CAAUoB,6BAAAA,mBAACC,CAAA,CAAc,EAAA,CAAIN,CAAAA,CAAU,GAAGF,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACnEf,CAAAA,GAAY,KAAA,CAAA,EAAaD,CAAAA,GAAgB,KAAA,CAAA,CACxCuB,6BAAAA,mBAACE,CAAA,CACC,OAAA,CAAO,CAAA,CAAA,CACP,EAAA,CAAIR,CAAAA,CACJ,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-IQZRFVT2.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { useIds } from '../../hooks/use-ids';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'List';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ListElement = ComponentRef<'ol'>;\n\n/**\n * Use List to display a list of items, with support for visual variants,\n * colour schemes, a heading, and helper text. Use ListItem for simple text\n * content, or as a container for more complex or interactive content such as\n * ListItemContent, ListItemButton, or ListItemLink. `variant` and\n * `colorScheme` must be used together — if either is left `undefined`, the\n * list falls back to its default appearance.\n *\n * @summary A list of items with an optional heading, helper text, and style variants.\n */\nexport const List = forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n id: providedId,\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n variant,\n listItemsVariant,\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n children,\n paddingNone,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const { id, labelId } = useIds({ providedId, prefix: 'list' });\n\n const hasHeading = Boolean(heading);\n const ariaLabelledbyValue = ariaLabelledby ?? (hasHeading && !ariaLabel ? labelId : undefined);\n\n const attributeProps = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyValue,\n 'data-padding-none': paddingNone ? '' : undefined,\n 'data-list-items-variant': listItemsVariant,\n };\n\n return (\n <div className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader id={labelId} {...sectionHeaderProps} /> : null}\n {variant === undefined || colorScheme === undefined ? (\n <Box\n asChild\n id={id}\n className={`${componentClassName}Container`}\n role=\"list\"\n {...attributeProps}\n >\n <Tag ref={ref} {...listProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className={`${componentClassName}Container`}\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} role=\"list\" id={id} {...listProps} {...attributeProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
2
2
 
3
- var _chunkBSV5FCP7cjs = require('./chunk-BSV5FCP7.cjs');var _chunkOEB3RQMLcjs = require('./chunk-OEB3RQML.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var N="CurrencyInput",M=_chunk4Q432K4Wcjs.b.call(void 0, N),G= exports.a =_react.forwardRef.call(void 0, ({className:S,disabled:V,value:d,onChange:y,placeholder:b="0.00",disableGroupSeparators:C,defaultValue:h,...k},z)=>{let[H,L]=_react.useState.call(void 0, typeof h=="string"?h:""),s=_react.useRef.call(void 0, null),r=_react.useRef.call(void 0, null),O=_useMergedRefs.useMergedRefs.call(void 0, z,s),I=d!==void 0,x=I?String(_nullishCoalesce(d, () => (""))):H,c=n=>{if(!n)return"";let l=n.split("."),e=l[0]||"";C||(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,","));let i=l[1];return i!==void 0?e+"."+i:e},j=n=>{let l=n.target.value,e=n.target.selectionStart||0,i=c(x),w=l.replace(/[^\d.]/g,""),a=w.split("."),P=a.length>2?a[0]+"."+a.slice(1).join(""):w,m=P.split("."),p=m[1]!==void 0?m[0]+"."+m[1].substring(0,2):P;if(C)r.current=null;else{let u=c(p),f=(i.slice(0,Math.min(e,i.length)).match(/,/g)||[]).length,t=(u.slice(0,Math.min(e,u.length)).match(/,/g)||[]).length-f;r.current=e+t}if(I||L(p),y){let u=new Proxy(n.target,{get(o,t){return t==="value"?p:Reflect.get(o,t,o)}}),f=new Proxy(n,{get(o,t){return t==="target"||t==="currentTarget"?u:Reflect.get(o,t,o)}});y(f)}};return _react.useEffect.call(void 0, ()=>{s&&typeof s=="object"&&s.current&&r.current!==null&&(s.current.setSelectionRange(r.current,r.current),r.current=null)}),_jsxruntime.jsx.call(void 0, _chunkBSV5FCP7cjs.a,{ref:O,className:_chunkONNSZMWFcjs.a.call(void 0, M,S),type:"text",inputMode:"decimal",disabled:V,value:c(x),onChange:j,placeholder:b,"data-testid":M,...k,children:_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _chunkOEB3RQMLcjs.a,{size:"3xl",children:"\xA3"})})})});G.displayName=N;exports.a = G;
4
- //# sourceMappingURL=chunk-ZEHPCJWW.cjs.map
3
+ var _chunkYGNGIGCDcjs = require('./chunk-YGNGIGCD.cjs');var _chunkOEB3RQMLcjs = require('./chunk-OEB3RQML.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var N="CurrencyInput",M=_chunk4Q432K4Wcjs.b.call(void 0, N),G= exports.a =_react.forwardRef.call(void 0, ({className:S,disabled:V,value:d,onChange:y,placeholder:b="0.00",disableGroupSeparators:C,defaultValue:h,...k},z)=>{let[H,L]=_react.useState.call(void 0, typeof h=="string"?h:""),s=_react.useRef.call(void 0, null),r=_react.useRef.call(void 0, null),O=_useMergedRefs.useMergedRefs.call(void 0, z,s),I=d!==void 0,x=I?String(_nullishCoalesce(d, () => (""))):H,c=n=>{if(!n)return"";let l=n.split("."),e=l[0]||"";C||(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,","));let i=l[1];return i!==void 0?e+"."+i:e},j=n=>{let l=n.target.value,e=n.target.selectionStart||0,i=c(x),w=l.replace(/[^\d.]/g,""),a=w.split("."),P=a.length>2?a[0]+"."+a.slice(1).join(""):w,m=P.split("."),p=m[1]!==void 0?m[0]+"."+m[1].substring(0,2):P;if(C)r.current=null;else{let u=c(p),f=(i.slice(0,Math.min(e,i.length)).match(/,/g)||[]).length,t=(u.slice(0,Math.min(e,u.length)).match(/,/g)||[]).length-f;r.current=e+t}if(I||L(p),y){let u=new Proxy(n.target,{get(o,t){return t==="value"?p:Reflect.get(o,t,o)}}),f=new Proxy(n,{get(o,t){return t==="target"||t==="currentTarget"?u:Reflect.get(o,t,o)}});y(f)}};return _react.useEffect.call(void 0, ()=>{s&&typeof s=="object"&&s.current&&r.current!==null&&(s.current.setSelectionRange(r.current,r.current),r.current=null)}),_jsxruntime.jsx.call(void 0, _chunkYGNGIGCDcjs.a,{ref:O,className:_chunkONNSZMWFcjs.a.call(void 0, M,S),type:"text",inputMode:"decimal",disabled:V,value:c(x),onChange:j,placeholder:b,"data-testid":M,...k,children:_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _chunkOEB3RQMLcjs.a,{size:"3xl",children:"\xA3"})})})});G.displayName=N;exports.a = G;
4
+ //# sourceMappingURL=chunk-K7747CML.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-ZEHPCJWW.cjs","../src/components/CurrencyInput/CurrencyInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CurrencyInput","forwardRef","className","disabled","controlledValue","onChange","placeholder","disableGroupSeparators","defaultValue","props","forwardedRef","internalValue","setInternalValue","useState","internalRef","useRef","cursorPositionRef","inputRef","useMergedRefs","isControlled","numericValue","formatValue","value","parts","integerPart","decimalPart","handleChange","e","input","cursorPosition","previousDisplayValue","cleaned","sanitized","finalParts","limitedValue","newDisplayValue","oldCommasBeforeCursor","commaDiff","proxiedTarget","target","prop","proxiedEvent","useEffect","jsx","TextInput","cn","InputSlot","DetailText"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCApJ,6DAS1B,+CAiJpB,IA/IJA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAgBC,+BAAAA,CAEzB,CACE,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,sBAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CAEH,GAAM,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,6BAAAA,OACjCL,CAA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,CAAA,CAC1B,CAAA,CACF,CAEJ,CACF,CAAA,CAEA/C,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-ZEHPCJWW.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef, useState, useRef, useEffect } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ChangeEvent } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport type { CurrencyInputProps } from './CurrencyInput.props';\nimport { DetailText } from '../DetailText/DetailText';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'CurrencyInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use CurrencyInput for entering monetary amounts, such as in Cashback and\n * payment areas. It displays values with comma-separated thousands by default\n * and returns the underlying value without formatting via `onChange`.\n *\n * For general text entry, use TextInput instead.\n *\n * @summary An input field for entering monetary amounts.\n */\nexport const CurrencyInput = forwardRef<InputBaseElement, CurrencyInputProps>(\n (\n {\n className,\n disabled,\n value: controlledValue,\n onChange,\n placeholder = '0.00',\n disableGroupSeparators,\n defaultValue,\n ...props\n },\n forwardedRef\n ) => {\n const maxDecimals = 2;\n const [internalValue, setInternalValue] = useState<string>(\n typeof defaultValue === 'string' ? defaultValue : ''\n );\n const internalRef = useRef<HTMLInputElement>(null);\n const cursorPositionRef = useRef<number | null>(null);\n\n // Merge forwarded ref (if any) with internal ref\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const isControlled = controlledValue !== undefined;\n const numericValue = isControlled ? String(controlledValue ?? '') : internalValue;\n\n // Format value for display\n const formatValue = (value: string): string => {\n if (!value) return '';\n\n const parts = value.split('.');\n let integerPart = parts[0] || '';\n\n if (!disableGroupSeparators) {\n integerPart = integerPart.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n }\n\n const decimalPart = parts[1];\n return decimalPart !== undefined ? integerPart + '.' + decimalPart : integerPart;\n };\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>): void => {\n const input = e.target.value;\n const cursorPosition = e.target.selectionStart || 0;\n const previousDisplayValue = formatValue(numericValue);\n\n // Remove all non-digits except decimal\n const cleaned = input.replace(/[^\\d.]/g, '');\n\n // Ensure only one decimal point\n const parts = cleaned.split('.');\n const sanitized = parts.length > 2 ? parts[0] + '.' + parts.slice(1).join('') : cleaned;\n\n // Limit decimal places\n const finalParts = sanitized.split('.');\n const limitedValue =\n finalParts[1] !== undefined\n ? finalParts[0] + '.' + finalParts[1].substring(0, maxDecimals)\n : sanitized;\n\n // Calculate new cursor position\n if (!disableGroupSeparators) {\n const newDisplayValue = formatValue(limitedValue);\n const oldCommasBeforeCursor = (\n previousDisplayValue\n .slice(0, Math.min(cursorPosition, previousDisplayValue.length))\n .match(/,/g) || []\n ).length;\n const newCommasBeforeCursor = (\n newDisplayValue.slice(0, Math.min(cursorPosition, newDisplayValue.length)).match(/,/g) ||\n []\n ).length;\n const commaDiff = newCommasBeforeCursor - oldCommasBeforeCursor;\n cursorPositionRef.current = cursorPosition + commaDiff;\n } else {\n cursorPositionRef.current = null;\n }\n if (!isControlled) {\n setInternalValue(limitedValue);\n }\n\n // Return numeric value WITHOUT commas, via a Proxy so everything else\n // (target.name, target.id, preventDefault, instanceof checks, etc.)\n // still passes through to the real event and element.\n if (onChange) {\n const proxiedTarget = new Proxy(e.target, {\n get(target, prop): unknown {\n if (prop === 'value') return limitedValue;\n return Reflect.get(target, prop, target) as unknown;\n },\n });\n\n const proxiedEvent = new Proxy(e, {\n get(target, prop): unknown {\n if (prop === 'target' || prop === 'currentTarget') return proxiedTarget;\n return Reflect.get(target, prop, target) as unknown;\n },\n });\n\n onChange(proxiedEvent);\n }\n };\n\n // Restore cursor position after render\n useEffect(() => {\n if (\n internalRef &&\n typeof internalRef === 'object' &&\n internalRef.current &&\n cursorPositionRef.current !== null\n ) {\n internalRef.current.setSelectionRange(cursorPositionRef.current, cursorPositionRef.current);\n cursorPositionRef.current = null;\n }\n });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"text\"\n inputMode=\"decimal\"\n disabled={disabled}\n value={formatValue(numericValue)} // Display with commas\n onChange={handleChange}\n placeholder={placeholder}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <DetailText size=\"3xl\">£</DetailText>\n </InputSlot>\n </TextInput>\n );\n }\n);\n\nCurrencyInput.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-K7747CML.cjs","../src/components/CurrencyInput/CurrencyInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CurrencyInput","forwardRef","className","disabled","controlledValue","onChange","placeholder","disableGroupSeparators","defaultValue","props","forwardedRef","internalValue","setInternalValue","useState","internalRef","useRef","cursorPositionRef","inputRef","useMergedRefs","isControlled","numericValue","formatValue","value","parts","integerPart","decimalPart","handleChange","e","input","cursorPosition","previousDisplayValue","cleaned","sanitized","finalParts","limitedValue","newDisplayValue","oldCommasBeforeCursor","commaDiff","proxiedTarget","target","prop","proxiedEvent","useEffect","jsx","TextInput","cn","InputSlot","DetailText"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCApJ,6DAS1B,+CAiJpB,IA/IJA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAgBC,+BAAAA,CAEzB,CACE,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,sBAAA,CAAAC,CAAAA,CACA,Y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6BAAAA,mBAACG,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAH,6BAAAA,mBAACI,CAAA,CAAW,IAAA,CAAK,KAAA,CAAM,QAAA,CAAA,MAAA,CAAC,CAAA,CAC1B,CAAA,CACF,CAEJ,CACF,CAAA,CAEA/C,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-K7747CML.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef, useState, useRef, useEffect } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ChangeEvent } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport type { CurrencyInputProps } from './CurrencyInput.props';\nimport { DetailText } from '../DetailText/DetailText';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'CurrencyInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use CurrencyInput for entering monetary amounts, such as in Cashback and\n * payment areas. It displays values with comma-separated thousands by default\n * and returns the underlying value without formatting via `onChange`.\n *\n * For general text entry, use TextInput instead.\n *\n * @summary An input field for entering monetary amounts.\n */\nexport const CurrencyInput = forwardRef<InputBaseElement, CurrencyInputProps>(\n (\n {\n className,\n disabled,\n value: controlledValue,\n onChange,\n placeholder = '0.00',\n disableGroupSeparators,\n defaultValue,\n ...props\n },\n forwardedRef\n ) => {\n const maxDecimals = 2;\n const [internalValue, setInternalValue] = useState<string>(\n typeof defaultValue === 'string' ? defaultValue : ''\n );\n const internalRef = useRef<HTMLInputElement>(null);\n const cursorPositionRef = useRef<number | null>(null);\n\n // Merge forwarded ref (if any) with internal ref\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const isControlled = controlledValue !== undefined;\n const numericValue = isControlled ? String(controlledValue ?? '') : internalValue;\n\n // Format value for display\n const formatValue = (value: string): string => {\n if (!value) return '';\n\n const parts = value.split('.');\n let integerPart = parts[0] || '';\n\n if (!disableGroupSeparators) {\n integerPart = integerPart.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n }\n\n const decimalPart = parts[1];\n return decimalPart !== undefined ? integerPart + '.' + decimalPart : integerPart;\n };\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>): void => {\n const input = e.target.value;\n const cursorPosition = e.target.selectionStart || 0;\n const previousDisplayValue = formatValue(numericValue);\n\n // Remove all non-digits except decimal\n const cleaned = input.replace(/[^\\d.]/g, '');\n\n // Ensure only one decimal point\n const parts = cleaned.split('.');\n const sanitized = parts.length > 2 ? parts[0] + '.' + parts.slice(1).join('') : cleaned;\n\n // Limit decimal places\n const finalParts = sanitized.split('.');\n const limitedValue =\n finalParts[1] !== undefined\n ? finalParts[0] + '.' + finalParts[1].substring(0, maxDecimals)\n : sanitized;\n\n // Calculate new cursor position\n if (!disableGroupSeparators) {\n const newDisplayValue = formatValue(limitedValue);\n const oldCommasBeforeCursor = (\n previousDisplayValue\n .slice(0, Math.min(cursorPosition, previousDisplayValue.length))\n .match(/,/g) || []\n ).length;\n const newCommasBeforeCursor = (\n newDisplayValue.slice(0, Math.min(cursorPosition, newDisplayValue.length)).match(/,/g) ||\n []\n ).length;\n const commaDiff = newCommasBeforeCursor - oldCommasBeforeCursor;\n cursorPositionRef.current = cursorPosition + commaDiff;\n } else {\n cursorPositionRef.current = null;\n }\n if (!isControlled) {\n setInternalValue(limitedValue);\n }\n\n // Return numeric value WITHOUT commas, via a Proxy so everything else\n // (target.name, target.id, preventDefault, instanceof checks, etc.)\n // still passes through to the real event and element.\n if (onChange) {\n const proxiedTarget = new Proxy(e.target, {\n get(target, prop): unknown {\n if (prop === 'value') return limitedValue;\n return Reflect.get(target, prop, target) as unknown;\n },\n });\n\n const proxiedEvent = new Proxy(e, {\n get(target, prop): unknown {\n if (prop === 'target' || prop === 'currentTarget') return proxiedTarget;\n return Reflect.get(target, prop, target) as unknown;\n },\n });\n\n onChange(proxiedEvent);\n }\n };\n\n // Restore cursor position after render\n useEffect(() => {\n if (\n internalRef &&\n typeof internalRef === 'object' &&\n internalRef.current &&\n cursorPositionRef.current !== null\n ) {\n internalRef.current.setSelectionRange(cursorPositionRef.current, cursorPositionRef.current);\n cursorPositionRef.current = null;\n }\n });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"text\"\n inputMode=\"decimal\"\n disabled={disabled}\n value={formatValue(numericValue)} // Display with commas\n onChange={handleChange}\n placeholder={placeholder}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <DetailText size=\"3xl\">£</DetailText>\n </InputSlot>\n </TextInput>\n );\n }\n);\n\nCurrencyInput.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
3
  var e=["emphasis","subtle","outline"],s=["sm","md"],o={variant:{className:"variant",tokens:e,responsive:!1,default:"subtle"},size:{className:"size",tokens:s,responsive:!0,default:"md"}};export{o as a};
4
- //# sourceMappingURL=chunk-U7C2K4JT.js.map
4
+ //# sourceMappingURL=chunk-K7EQ2JR7.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Badge/Badge.props.ts"],"sourcesContent":["import { MarginProps } from '../../props/margin.props';\nimport type { ComponentPropsWithRef } from 'react';\nimport { PropDef } from '../../props/prop-def';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { Responsive } from '../../types/responsive';\n\nconst variants = ['emphasis', 'subtle', 'outline'] as const;\nconst sizes = ['sm', 'md'] as const;\n\nexport const badgePropDefs = {\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'subtle' },\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface BadgeProps extends ComponentPropsWithRef<'span'>, MarginProps, TextTransformProps {\n /**\n * Sets the badges's visual variant\n * @default subtle\n */\n variant?: (typeof variants)[number];\n /**\n * Sets the badge size.\n * @default md\n */\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * Sets the colour scheme.\n * @default info\n */\n colorScheme?:\n | 'info'\n | 'positive'\n | 'danger'\n | 'warning'\n | 'functional'\n | 'energy'\n | 'mobile'\n | 'broadband'\n | 'insurance'\n | 'cashback'\n | 'pig'\n | 'highlight';\n /**\n * Removes the bottom radius, set when the Badge sits directly above another container\n * @default false\n */\n flatBase?: boolean;\n}\n"],"mappings":";;AAMA,IAAMA,EAAW,CAAC,WAAY,SAAU,SAAS,EAC3CC,EAAQ,CAAC,KAAM,IAAI,EAEZC,EAAgB,CAC3B,QAAS,CAAE,UAAW,UAAW,OAAQF,EAAU,WAAY,GAAO,QAAS,QAAS,EACxF,KAAM,CAAE,UAAW,OAAQ,OAAQC,EAAO,WAAY,GAAM,QAAS,IAAK,CAC5E","names":["variants","sizes","badgePropDefs"]}
1
+ {"version":3,"sources":["../src/components/Badge/Badge.props.ts"],"sourcesContent":["import { MarginProps } from '../../props/margin.props';\nimport type { ComponentPropsWithRef } from 'react';\nimport { PropDef } from '../../props/prop-def';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { Responsive } from '../../types/responsive';\n\nconst variants = ['emphasis', 'subtle', 'outline'] as const;\nconst sizes = ['sm', 'md'] as const;\n\nexport const badgePropDefs = {\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'subtle' },\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface BadgeProps extends ComponentPropsWithRef<'span'>, MarginProps, TextTransformProps {\n /**\n * Sets the badges's visual variant\n * @default subtle\n */\n variant?: (typeof variants)[number];\n /**\n * Sets the badge size.\n * @default md\n */\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * Sets the colour scheme.\n * @default info\n */\n colorScheme?:\n | 'info'\n | 'positive'\n | 'danger'\n | 'warning'\n | 'functional'\n | 'energy'\n | 'mobile'\n | 'broadband'\n | 'insurance'\n | 'cashback'\n | 'pig'\n | 'highlight';\n /**\n * Removes the bottom radius, set when the Badge sits directly above another container\n * @default false\n */\n flatBase?: boolean;\n /**\n * Allows the content to wrap onto multiple lines, left-aligned\n * @default false\n */\n wrap?: boolean;\n}\n"],"mappings":";;AAMA,IAAMA,EAAW,CAAC,WAAY,SAAU,SAAS,EAC3CC,EAAQ,CAAC,KAAM,IAAI,EAEZC,EAAgB,CAC3B,QAAS,CAAE,UAAW,UAAW,OAAQF,EAAU,WAAY,GAAO,QAAS,QAAS,EACxF,KAAM,CAAE,UAAW,OAAQ,OAAQC,EAAO,WAAY,GAAM,QAAS,IAAK,CAC5E","names":["variants","sizes","badgePropDefs"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
2
 
3
- var _chunkBSV5FCP7cjs = require('./chunk-BSV5FCP7.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkRS5YT3MKcjs = require('./chunk-RS5YT3MK.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var w="PasswordInput",y=_chunk4Q432K4Wcjs.b.call(void 0, w),j= exports.a =_react.forwardRef.call(void 0, ({className:E,disabled:n,id:v,...M},P)=>{let e=_react.useRef.call(void 0, null),h=_useMergedRefs.useMergedRefs.call(void 0, P,e),[o,i]=_react.useState.call(void 0, !1),[r,l]=_react.useState.call(void 0, !1),T=_react.useCallback.call(void 0, ()=>{i(t=>!t),l(!0)},[]);_react.useEffect.call(void 0, ()=>{let t=null;e&&typeof e=="object"&&e.current&&(t=e.current);let a=()=>{_optionalChain([t, 'optionalAccess', _ => _.type])&&(t.type="password",i(!1))};return t&&t.form!==null&&t.form.addEventListener("submit",a),()=>{_optionalChain([t, 'optionalAccess', _2 => _2.form])&&t.form.removeEventListener("submit",a)}},[e]);let O=`Your password is ${o?"shown":"hidden"}!`;_react.useEffect.call(void 0, ()=>{if(!r)return;let t=setTimeout(()=>{l(!1)},1500);return()=>clearTimeout(t)},[r,o]);let{id:R}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"password-input"});return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkBSV5FCP7cjs.a,{ref:h,className:_chunkONNSZMWFcjs.a.call(void 0, y,E),type:o?"text":"password",disabled:n,id:R,"data-testid":y,...M,children:_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkRS5YT3MKcjs.a,{type:"button",label:"toggle password visibility",onClick:T,disabled:n,"aria-pressed":o,children:o?_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeSmallIcon,{}):_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeOffSmallIcon,{})})})}),_jsxruntime.jsx.call(void 0, "div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:r?O:""})]})});j.displayName=w;exports.a = j;
4
- //# sourceMappingURL=chunk-ATP4TL52.cjs.map
3
+ var _chunkYGNGIGCDcjs = require('./chunk-YGNGIGCD.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkRS5YT3MKcjs = require('./chunk-RS5YT3MK.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var w="PasswordInput",y=_chunk4Q432K4Wcjs.b.call(void 0, w),j= exports.a =_react.forwardRef.call(void 0, ({className:E,disabled:n,id:v,...M},P)=>{let e=_react.useRef.call(void 0, null),h=_useMergedRefs.useMergedRefs.call(void 0, P,e),[o,i]=_react.useState.call(void 0, !1),[r,l]=_react.useState.call(void 0, !1),T=_react.useCallback.call(void 0, ()=>{i(t=>!t),l(!0)},[]);_react.useEffect.call(void 0, ()=>{let t=null;e&&typeof e=="object"&&e.current&&(t=e.current);let a=()=>{_optionalChain([t, 'optionalAccess', _ => _.type])&&(t.type="password",i(!1))};return t&&t.form!==null&&t.form.addEventListener("submit",a),()=>{_optionalChain([t, 'optionalAccess', _2 => _2.form])&&t.form.removeEventListener("submit",a)}},[e]);let O=`Your password is ${o?"shown":"hidden"}!`;_react.useEffect.call(void 0, ()=>{if(!r)return;let t=setTimeout(()=>{l(!1)},1500);return()=>clearTimeout(t)},[r,o]);let{id:R}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"password-input"});return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkYGNGIGCDcjs.a,{ref:h,className:_chunkONNSZMWFcjs.a.call(void 0, y,E),type:o?"text":"password",disabled:n,id:R,"data-testid":y,...M,children:_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkRS5YT3MKcjs.a,{type:"button",label:"toggle password visibility",onClick:T,disabled:n,"aria-pressed":o,children:o?_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeSmallIcon,{}):_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeOffSmallIcon,{})})})}),_jsxruntime.jsx.call(void 0, "div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:r?O:""})]})});j.displayName=w;exports.a = j;
4
+ //# sourceMappingURL=chunk-KRFEIGR5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-ATP4TL52.cjs","../src/components/PasswordInput/PasswordInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","PasswordInput","forwardRef","className","disabled","providedId","props","forwardedRef","internalRef","useRef","inputRef","useMergedRefs","visible","setVisible","useState","showVisibilityMessage","setShowVisibilityMessage","handleVisibility","useCallback","prevVisible","useEffect","currentElement","handleSubmit","visibilityMessage","timeout","id","useIds","jsxs","Fragment","jsx","TextInput","cn","InputSlot","UnstyledIconButton","EyeSmallIcon","EyeOffSmallIcon"],"mappings":"AAAA,ylBAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCEhL,wEAMvB,6DAGhB,+CAmExB,IAjEAA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAU7CC,CAAAA,aAAgBC,+BAAAA,CAC1B,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,EAAA,CAAIC,CAAAA,CAAY,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAAiB,CACnE,IAAMC,CAAAA,CAAcC,2BAAAA,IAAoC,CAAA,CAClDC,CAAAA,CAAWC,0CAAAA,CAAcJ,CAAcC,CAAW,CAAA,CAElD,CAACI,CAAAA,CAASC,CAAU,CAAA,CAAIC,6BAAAA,C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packages/react/dist/chunk-ATP4TL52.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { forwardRef, useRef, useState, useCallback, useEffect } from 'react';\nimport type { RefObject } from 'react';\nimport type { PasswordInputProps } from './PasswordInput.props';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { EyeOffSmallIcon, EyeSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'PasswordInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use PasswordInput to securely collect a user's password, with a built-in\n * control for toggling visibility of the entered value. It automatically\n * resets to hidden when its parent form is submitted. For general text entry\n * use TextInput instead, and for search input use SearchInput.\n *\n * @summary An input for securely entering a password, with a visibility toggle.\n */\nexport const PasswordInput = forwardRef<InputBaseElement, PasswordInputProps>(\n ({ className, disabled, id: providedId, ...props }, forwardedRef) => {\n const internalRef = useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const [visible, setVisible] = useState(false);\n const [showVisibilityMessage, setShowVisibilityMessage] = useState(false);\n\n const handleVisibility = useCallback(() => {\n setVisible(prevVisible => !prevVisible);\n setShowVisibilityMessage(true);\n }, []);\n\n // If the PasswordInput is inside a form we should switch the input type\n // back to password when its parent form is submitted\n useEffect(() => {\n // Get the ref value and ensure proper typing\n let currentElement: HTMLInputElement | null = null;\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = internalRef as RefObject<HTMLInputElement>;\n currentElement = refObject.current;\n }\n\n const handleSubmit = () => {\n if (currentElement?.type) {\n currentElement.type = 'password';\n setVisible(false);\n }\n };\n\n if (currentElement && currentElement.form !== null) {\n currentElement.form.addEventListener('submit', handleSubmit);\n }\n return () => {\n if (currentElement?.form) {\n currentElement.form.removeEventListener('submit', handleSubmit);\n }\n };\n }, [internalRef]);\n\n const visibilityMessage = `Your password is ${visible ? 'shown' : 'hidden'}!`;\n\n useEffect(() => {\n if (!showVisibilityMessage) return;\n const timeout = setTimeout(() => {\n setShowVisibilityMessage(false);\n }, 1500);\n return () => clearTimeout(timeout);\n }, [showVisibilityMessage, visible]);\n\n const { id } = useIds({ providedId, prefix: 'password-input' });\n\n return (\n <>\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type={visible ? 'text' : 'password'}\n disabled={disabled}\n id={id}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"toggle password visibility\"\n onClick={handleVisibility}\n disabled={disabled}\n aria-pressed={visible}\n >\n {visible ? <EyeSmallIcon /> : <EyeOffSmallIcon />}\n </UnstyledIconButton>\n </InputSlot>\n </TextInput>\n <div data-visually-hidden aria-live=\"assertive\" role=\"status\">\n {showVisibilityMessage ? visibilityMessage : ''}\n </div>\n </>\n );\n }\n);\n\nPasswordInput.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-KRFEIGR5.cjs","../src/components/PasswordInput/PasswordInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","PasswordInput","forwardRef","className","disabled","providedId","props","forwardedRef","internalRef","useRef","inputRef","useMergedRefs","visible","setVisible","useState","showVisibilityMessage","setShowVisibilityMessage","handleVisibility","useCallback","prevVisible","useEffect","currentElement","handleSubmit","visibilityMessage","timeout","id","useIds","jsxs","Fragment","jsx","TextInput","cn","InputSlot","UnstyledIconButton","EyeSmallIcon","EyeOffSmallIcon"],"mappings":"AAAA,ylBAAY;AACZ;AACA,wDAAwC,wDAAyC,w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AAAA,CACV,cAAA,CAAcQ,CAAAA,CAEb,QAAA,CAAAA,CAAAA,CAAUiB,6BAAAA,8BAACK,CAAA,CAAA,CAAa,CAAA,CAAKL,6BAAAA,iCAACM,CAAA,CAAA,CAAgB,CAAA,CACjD,CAAA,CACF,CAAA,CACF,CAAA,CACAN,6BAAAA,KAAC,CAAA,CAAI,sBAAA,CAAoB,CAAA,CAAA,CAAC,WAAA,CAAU,WAAA,CAAY,IAAA,CAAK,QAAA,CAClD,QAAA,CAAAd,CAAAA,CAAwBQ,CAAAA,CAAoB,EAAA,CAC/C,CAAA,CAAA,CACF,CAEJ,CACF,CAAA,CAEAtB,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-KRFEIGR5.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { forwardRef, useRef, useState, useCallback, useEffect } from 'react';\nimport type { RefObject } from 'react';\nimport type { PasswordInputProps } from './PasswordInput.props';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { EyeOffSmallIcon, EyeSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'PasswordInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use PasswordInput to securely collect a user's password, with a built-in\n * control for toggling visibility of the entered value. It automatically\n * resets to hidden when its parent form is submitted. For general text entry\n * use TextInput instead, and for search input use SearchInput.\n *\n * @summary An input for securely entering a password, with a visibility toggle.\n */\nexport const PasswordInput = forwardRef<InputBaseElement, PasswordInputProps>(\n ({ className, disabled, id: providedId, ...props }, forwardedRef) => {\n const internalRef = useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const [visible, setVisible] = useState(false);\n const [showVisibilityMessage, setShowVisibilityMessage] = useState(false);\n\n const handleVisibility = useCallback(() => {\n setVisible(prevVisible => !prevVisible);\n setShowVisibilityMessage(true);\n }, []);\n\n // If the PasswordInput is inside a form we should switch the input type\n // back to password when its parent form is submitted\n useEffect(() => {\n // Get the ref value and ensure proper typing\n let currentElement: HTMLInputElement | null = null;\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = internalRef as RefObject<HTMLInputElement>;\n currentElement = refObject.current;\n }\n\n const handleSubmit = () => {\n if (currentElement?.type) {\n currentElement.type = 'password';\n setVisible(false);\n }\n };\n\n if (currentElement && currentElement.form !== null) {\n currentElement.form.addEventListener('submit', handleSubmit);\n }\n return () => {\n if (currentElement?.form) {\n currentElement.form.removeEventListener('submit', handleSubmit);\n }\n };\n }, [internalRef]);\n\n const visibilityMessage = `Your password is ${visible ? 'shown' : 'hidden'}!`;\n\n useEffect(() => {\n if (!showVisibilityMessage) return;\n const timeout = setTimeout(() => {\n setShowVisibilityMessage(false);\n }, 1500);\n return () => clearTimeout(timeout);\n }, [showVisibilityMessage, visible]);\n\n const { id } = useIds({ providedId, prefix: 'password-input' });\n\n return (\n <>\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type={visible ? 'text' : 'password'}\n disabled={disabled}\n id={id}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"toggle password visibility\"\n onClick={handleVisibility}\n disabled={disabled}\n aria-pressed={visible}\n >\n {visible ? <EyeSmallIcon /> : <EyeOffSmallIcon />}\n </UnstyledIconButton>\n </InputSlot>\n </TextInput>\n <div data-visually-hidden aria-live=\"assertive\" role=\"status\">\n {showVisibilityMessage ? visibilityMessage : ''}\n </div>\n </>\n );\n }\n);\n\nPasswordInput.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkE6QW7LY4cjs = require('./chunk-E6QW7LY4.cjs');var _chunkTZC7VV6Qcjs = require('./chunk-TZC7VV6Q.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var s="Badge",p=_chunk4Q432K4Wcjs.b.call(void 0, s),B= exports.a =_react.forwardRef.call(void 0, (f,n)=>{let{className:d,colorScheme:i="info",flatBase:c,wrap:l,...g}=_chunkZPJNQBTNcjs.a.call(void 0, f,_chunkE6QW7LY4cjs.a,_chunkOB7O3UFLcjs.a,_chunkTZC7VV6Qcjs.a);return _jsxruntime.jsx.call(void 0, "span",{ref:n,className:_chunkONNSZMWFcjs.a.call(void 0, p,d),"data-colorscheme":i,"data-testid":p,"data-bottom-radius-zero":c?"":void 0,"data-wrap":l?"":void 0,...g})});B.displayName=s;exports.a = B;
4
+ //# sourceMappingURL=chunk-KYPME3YP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-KYPME3YP.cjs","../src/components/Badge/Badge.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Badge","forwardRef","props","ref","className","colorScheme","flatBase","wrap","badgeProps","extractProps","badgePropDefs","marginPropDefs","textTransformPropDefs","jsx","cn"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,wDAAyC,8BCFrN,+CAkCvB,IAvBEA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAa7CC,CAAAA,aAAQC,+BAAAA,CAAsCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACxE,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaP,CAAOQ,mBAAAA,CAAeC,mBAAAA,CAAgBC,mBAAqB,CAAA,CAC5E,OACEC,6BAAAA,MAAC,CAAA,CACC,GAAA,CAAKV,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAGhB,CAAoBM,CAAS,CAAA,CAC3C,kBAAA,CAAkBC,CAAAA,CAClB,aAAA,CAAaP,CAAAA,CACb,yBAAA,CAAyBQ,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CACzC,WAAA,CAAWC,CAAAA,CAAO,EAAA,CAAK,KAAA,CAAA,CACtB,GAAGC,CAAAA,CACN,CAEJ,CAAC,CAAA,CAEDR,CAAAA,CAAM,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-KYPME3YP.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentRef } from 'react';\n\nimport { badgePropDefs } from './Badge.props';\nimport type { BadgeProps } from './Badge.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst COMPONENT_NAME = 'Badge';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype BadgeElement = ComponentRef<'span'>;\n\n/**\n * Use Badge to convey status or highlight content with a small, read-only\n * visual label. Badges are not interactive; for a similar but interactive\n * element, use Chip instead. Use `colorScheme` to convey semantic meaning and\n * `variant` to control the visual style; note some `colorScheme`/`variant`\n * combinations (e.g. `highlight` with `emphasis`) are not supported.\n *\n * @summary A read-only visual label used to convey status or highlight content.\n */\nexport const Badge = forwardRef<BadgeElement, BadgeProps>((props, ref) => {\n const {\n className,\n colorScheme = 'info',\n flatBase,\n wrap,\n ...badgeProps\n } = extractProps(props, badgePropDefs, marginPropDefs, textTransformPropDefs);\n return (\n <span\n ref={ref}\n className={cn(componentClassName, className)}\n data-colorscheme={colorScheme}\n data-testid={componentClassName}\n data-bottom-radius-zero={flatBase ? '' : undefined}\n data-wrap={wrap ? '' : undefined}\n {...badgeProps}\n />\n );\n});\n\nBadge.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{b as H}from"./chunk-AJ6U5OJT.js";import{c as b}from"./chunk-YWMUOY43.js";import{a as h}from"./chunk-OTXFBNCU.js";import{a as I}from"./chunk-V6QXHP4D.js";import{a as g}from"./chunk-TMDOWN4M.js";import{a as m}from"./chunk-ZSFO3ITI.js";import{a as A}from"./chunk-4MNQRAHO.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as v}from"./chunk-PDEVCIQ3.js";import{forwardRef as G,useEffect as L,useRef as E}from"react";import{Accordion as i}from"radix-ui";import{jsx as e,jsxs as a}from"react/jsx-runtime";var N="CardAccordionItem",n=v(N),_=G(({className:x,title:S,description:c,headingElement:T="h3",summaryTitle:s,summaryDescription:l,children:R,value:o,onEditClick:y,...B},M)=>{let{setCurrentStep:z,setPreviousSteps:O,getStep:$,steps:d}=b(),r=$(o),w=r==="current"?"emphasis":"subtle",F=r==="current"?"neutralStrong":"neutralSubtle",p=E(null),f=E(!1),{labelId:t,helperTextId:u}=P({prefix:"card-accordion-item"});return L(()=>{if(!f.current){f.current=!0;return}r==="current"&&p.current?.focus()},[r]),e(i.Item,{asChild:!0,ref:M,className:C(n,x),disabled:r==="future","data-step":r,value:o,...B,children:e(I,{variant:w,colorScheme:F,direction:"column",children:a(H,{value:{value:o},children:[e(i.Header,{className:`${n}Header`,asChild:!0,children:a(T,{children:[e(i.Trigger,{ref:p,className:`${n}Trigger`,"aria-labelledby":t,"aria-describedby":c?u:void 0,children:a(A,{direction:"column",children:[r==="previous"&&s?e(m,{asChild:!0,size:"md",id:t,children:e("div",{children:s})}):e(m,{asChild:!0,size:"md",id:t,children:e("div",{children:S})}),c?e(g,{id:u,children:c}):null]})}),r==="previous"?e(h,{size:"sm",variant:"ghost",colorScheme:"functional","aria-describedby":t,onClick:k=>{z(o),d&&O(d.slice(0,d.indexOf(o))),y?.(k)},children:"Edit"}):null]})}),r==="previous"&&l?l:null,r==="current"?e(i.Content,{className:`${n}Content`,children:R}):null]})})})});_.displayName=N;export{_ as a};
4
- //# sourceMappingURL=chunk-7W2RLCGB.js.map
3
+ import{b as H}from"./chunk-AJ6U5OJT.js";import{c as b}from"./chunk-YWMUOY43.js";import{a as h}from"./chunk-2RRGJCBC.js";import{a as I}from"./chunk-V6QXHP4D.js";import{a as g}from"./chunk-TMDOWN4M.js";import{a as m}from"./chunk-ZSFO3ITI.js";import{a as A}from"./chunk-4MNQRAHO.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as v}from"./chunk-PDEVCIQ3.js";import{forwardRef as G,useEffect as L,useRef as E}from"react";import{Accordion as i}from"radix-ui";import{jsx as e,jsxs as a}from"react/jsx-runtime";var N="CardAccordionItem",n=v(N),_=G(({className:x,title:S,description:c,headingElement:T="h3",summaryTitle:s,summaryDescription:l,children:R,value:o,onEditClick:y,...B},M)=>{let{setCurrentStep:z,setPreviousSteps:O,getStep:$,steps:d}=b(),r=$(o),w=r==="current"?"emphasis":"subtle",F=r==="current"?"neutralStrong":"neutralSubtle",p=E(null),f=E(!1),{labelId:t,helperTextId:u}=P({prefix:"card-accordion-item"});return L(()=>{if(!f.current){f.current=!0;return}r==="current"&&p.current?.focus()},[r]),e(i.Item,{asChild:!0,ref:M,className:C(n,x),disabled:r==="future","data-step":r,value:o,...B,children:e(I,{variant:w,colorScheme:F,direction:"column",children:a(H,{value:{value:o},children:[e(i.Header,{className:`${n}Header`,asChild:!0,children:a(T,{children:[e(i.Trigger,{ref:p,className:`${n}Trigger`,"aria-labelledby":t,"aria-describedby":c?u:void 0,children:a(A,{direction:"column",children:[r==="previous"&&s?e(m,{asChild:!0,size:"md",id:t,children:e("div",{children:s})}):e(m,{asChild:!0,size:"md",id:t,children:e("div",{children:S})}),c?e(g,{id:u,children:c}):null]})}),r==="previous"?e(h,{size:"sm",variant:"ghost",colorScheme:"functional","aria-describedby":t,onClick:k=>{z(o),d&&O(d.slice(0,d.indexOf(o))),y?.(k)},children:"Edit"}):null]})}),r==="previous"&&l?l:null,r==="current"?e(i.Content,{className:`${n}Content`,children:R}):null]})})})});_.displayName=N;export{_ as a};
4
+ //# sourceMappingURL=chunk-LBCDHBLY.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var o=["md","lg"],e= exports.a ={imageSize:{className:"image-size",tokens:o,responsive:!1,default:"md"}};exports.a = e;
4
+ //# sourceMappingURL=chunk-M7TQ74JD.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-M7TQ74JD.cjs","../src/components/Modal/Modal.props.ts"],"names":["imageSizes","modalPropDefs"],"mappings":"AAAA,qFAAY;AACZ;ACGA,IAAMA,CAAAA,CAAa,CAAC,IAAA,CAAM,IAAI,CAAA,CAEjBC,CAAAA,aAAgB,CAC3B,SAAA,CAAW,CAAE,SAAA,CAAW,YAAA,CAAc,MAAA,CAAQD,CAAAA,CAAY,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,IAAK,CAC7F,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-M7TQ74JD.cjs","sourcesContent":[null,"import { Dialog as DialogPrimitive } from 'radix-ui';\nimport type { ComponentPropsWithRef, ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { PropDef } from '../../props/prop-def';\n\nconst imageSizes = ['md', 'lg'] as const;\n\nexport const modalPropDefs = {\n imageSize: { className: 'image-size', tokens: imageSizes, responsive: false, default: 'md' },\n} satisfies {\n imageSize: PropDef<(typeof imageSizes)[number]>;\n};\n\nexport interface BaseModalProps\n extends\n Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.DialogPortal>, 'forceMount'>,\n Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, 'asChild' | 'forceMount'>,\n ComponentPropsWithRef<'div'> {\n /**\n * Keeps the modal content mounted in the DOM when closed.\n *\n * @default false\n */\n keepMounted?: boolean;\n /**\n * Keeps the modal content mounted in the DOM when closed. Prefer `keepMounted`.\n *\n * @deprecated Use `keepMounted` instead. Will be removed when Modal migrates to Base UI.\n */\n forceMount?: boolean;\n /**\n * Additional descriptive text shown below the heading.\n */\n description?: string;\n /**\n * Hides the visible close icon button. Only use this when providing a\n * visible alternative way to close the modal, such as a Cancel button.\n *\n * @default false\n */\n hideCloseButton?: boolean;\n /**\n * @deprecated this prop has no effect and will be removed in a future major version.\n */\n fullScreen?: boolean;\n /**\n * An image, such as an SVG illustration, rendered at the top of the modal.\n * The layout automatically adjusts to accommodate it.\n */\n image?: ReactNode;\n /**\n * The image max size; `md` for standard illustrations, `lg` for larger banner images.\n */\n imageSize?: (typeof imageSizes)[number];\n /**\n * @deprecated Please use loadingHeading and loadingDescription instead\n */\n loadingText?: string;\n /**\n * The heading shown while `loading` is `true`.\n */\n loadingHeading?: string;\n /**\n * The description shown while `loading` is `true`.\n */\n loadingDescription?: string;\n}\n\ntype NonLoadingState = {\n /**\n * @default false\n */\n loading?: false;\n /**\n * The heading shown in the modal's main content. Required unless `loading` is `true`.\n */\n heading: string; // Required\n};\n\ntype LoadingState = {\n /**\n * Whether the modal is in a loading state. When `true`, a loading heading\n * (via `loadingHeading`) is required for accessibility purposes.\n */\n loading: true;\n /**\n * The heading shown in the modal's main content. Optional while `loading` is `true`.\n */\n heading?: string; // Heading becomes optional\n};\n\nexport type ModalProps = BaseModalProps & (NonLoadingState | LoadingState);\n\nexport type ModalCloseProps = Omit<\n ComponentPropsWithRef<typeof DialogPrimitive.DialogClose>,\n 'asChild'\n>;\n\nexport type ModalRootProps = Omit<ComponentPropsWithRef<typeof DialogPrimitive.Root>, 'modal'>;\n\nexport type ModalTriggerProps = Omit<\n ComponentPropsWithRef<typeof DialogPrimitive.DialogTrigger>,\n 'asChild'\n>;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkMJVMVHKIcjs = require('./chunk-MJVMVHKI.cjs');var _chunkB2HYSLUXcjs = require('./chunk-B2HYSLUX.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="VerificationInput",d=_chunk4Q432K4Wcjs.b.call(void 0, N),G= exports.a =_react.forwardRef.call(void 0, (O,V)=>{let{className:x,disabled:a,readOnly:s,label:F,labelVariant:R,helperText:l,validationText:n,validationStatus:i,required:w,id:h,"aria-describedby":E,...S}=_chunkZPJNQBTNcjs.a.call(void 0, O,_chunkOB7O3UFLcjs.a),{id:C,labelId:m,helperTextId:p,validationTextId:r}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:h,prefix:"verification-input"}),e=!s&&!a,D={id:C,labelId:m,helperTextId:p,validationTextId:r,label:F,labelVariant:R,helperText:l,validationText:e?n:void 0,validationStatus:e?i:void 0,required:w},_=_chunkHIF6HKZ3cjs.a.call(void 0, E,l?p:void 0,e&&i!==void 0&&n!==void 0?r:void 0),f=e&&i==="invalid";return _jsxruntime.jsx.call(void 0, _chunkMJVMVHKIcjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, d,x),"data-disabled":a?"":void 0,"data-testid":d,...D,children:_jsxruntime.jsxs.call(void 0, _radixui.unstable_OneTimePasswordField.Root,{className:`${d}Root`,disabled:a,readOnly:s,"aria-labelledby":m,"aria-describedby":_,"aria-invalid":f?!0:void 0,"aria-errormessage":f&&n!==void 0?r:void 0,"data-validation-status":e?i:void 0,...S,children:[Array.from({length:6}).map((L,g)=>_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.Input,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkB2HYSLUXcjs.a,{})},g)),_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.HiddenInput,{ref:V})]})})});G.displayName=N;exports.a = G;
4
- //# sourceMappingURL=chunk-EU4YDI2W.cjs.map
3
+ var _chunkB2HYSLUXcjs = require('./chunk-B2HYSLUX.cjs');var _chunkMJVMVHKIcjs = require('./chunk-MJVMVHKI.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="VerificationInput",d=_chunk4Q432K4Wcjs.b.call(void 0, N),G= exports.a =_react.forwardRef.call(void 0, (O,V)=>{let{className:x,disabled:a,readOnly:s,label:F,labelVariant:R,helperText:l,validationText:n,validationStatus:i,required:w,id:h,"aria-describedby":E,...S}=_chunkZPJNQBTNcjs.a.call(void 0, O,_chunkOB7O3UFLcjs.a),{id:C,labelId:m,helperTextId:p,validationTextId:r}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:h,prefix:"verification-input"}),e=!s&&!a,D={id:C,labelId:m,helperTextId:p,validationTextId:r,label:F,labelVariant:R,helperText:l,validationText:e?n:void 0,validationStatus:e?i:void 0,required:w},_=_chunkHIF6HKZ3cjs.a.call(void 0, E,l?p:void 0,e&&i!==void 0&&n!==void 0?r:void 0),f=e&&i==="invalid";return _jsxruntime.jsx.call(void 0, _chunkMJVMVHKIcjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, d,x),"data-disabled":a?"":void 0,"data-testid":d,...D,children:_jsxruntime.jsxs.call(void 0, _radixui.unstable_OneTimePasswordField.Root,{className:`${d}Root`,disabled:a,readOnly:s,"aria-labelledby":m,"aria-describedby":_,"aria-invalid":f?!0:void 0,"aria-errormessage":f&&n!==void 0?r:void 0,"data-validation-status":e?i:void 0,...S,children:[Array.from({length:6}).map((L,g)=>_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.Input,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkB2HYSLUXcjs.a,{})},g)),_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.HiddenInput,{ref:V})]})})});G.displayName=N;exports.a = G;
4
+ //# sourceMappingURL=chunk-MAGAAUVZ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-EU4YDI2W.cjs","../src/components/VerificationInput/VerificationInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","VerificationInput","forwardRef","props","ref","className","disabled","readOnly","label","labelVariant","helperText","validationText","validationStatus","required","providedId","ariaDescribedby","verificationInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","isInvalid","jsx","FormField","cn","jsxs","OneTimePasswordFieldPrimitive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A,CAAAC,CACF,CAAA,CAEMa,CAAAA,CAAuBC,iCAAAA,CAC3BZ,CACEL,CAAAA,CAAaW,CAAAA,CAAe,KAAA,CAAA,CAC9BG,CAAAA,EAAkBZ,CAAAA,GAAqB,KAAA,CAAA,EAAaD,CAAAA,GAAmB,KAAA,CAAA,CACnEW,CAAAA,CACA,KAAA,CACN,CAAA,CAEMM,CAAAA,CAAYJ,CAAAA,EAAkBZ,CAAAA,GAAqB,SAAA,CAIzD,OACEiB,6BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGhC,CAAoBM,CAAS,CAAA,CAC3C,eAAA,CAAeC,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAC/B,aAAA,CAAaP,CAAAA,CACZ,GAAG0B,CAAAA,CAEJ,QAAA,CAAAO,8BAAAA,sCAACC,CAA8B,IAAA,CAA9B,CACC,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-EU4YDI2W.cjs","sourcesContent":[null,"'use client';\n\nimport { unstable_OneTimePasswordField as OneTimePasswordFieldPrimitive } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VerificationInputProps } from './VerificationInput.props';\nimport { FormField } from '../FormField/FormField';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { cn } from '../../helpers/cn';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'VerificationInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport type VerificationInputElement = ComponentRef<'input'>;\n\n/**\n * Use VerificationInput to let users enter a one-time password (OTP) sent via\n * SMS, email, or an authenticator app. For general text entry, use TextInput;\n * for passwords, use PasswordInput instead. A `label` is required.\n *\n * @summary An input for entering a one-time password (OTP).\n */\nexport const VerificationInput = forwardRef<VerificationInputElement, VerificationInputProps>(\n (props, ref) => {\n const {\n className,\n disabled,\n readOnly,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n required,\n id: providedId,\n 'aria-describedby': ariaDescribedby,\n ...verificationInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'verification-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationStatus !== undefined && validationText !== undefined\n ? validationTextId\n : undefined\n );\n\n const isInvalid = showValidation && validationStatus === 'invalid';\n\n const PASSWORD_LENGTH = 6;\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <OneTimePasswordFieldPrimitive.Root\n className={`${componentClassName}Root`}\n disabled={disabled}\n readOnly={readOnly}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={isInvalid ? true : undefined}\n aria-errormessage={\n isInvalid && validationText !== undefined ? validationTextId : undefined\n }\n data-validation-status={showValidation ? validationStatus : undefined}\n {...verificationInputProps}\n >\n {Array.from({ length: PASSWORD_LENGTH }).map((_, i) => (\n <OneTimePasswordFieldPrimitive.Input key={i} asChild>\n <InputBase />\n </OneTimePasswordFieldPrimitive.Input>\n ))}\n\n <OneTimePasswordFieldPrimitive.HiddenInput ref={ref} />\n </OneTimePasswordFieldPrimitive.Root>\n </FormField>\n );\n }\n);\n\nVerificationInput.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-MAGAAUVZ.cjs","../src/components/VerificationInput/VerificationInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","VerificationInput","forwardRef","props","ref","className","disabled","readOnly","label","labelVariant","helperText","validationText","validationStatus","required","providedId","ariaDescribedby","verificationInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","isInvalid","jsx","FormField","cn","jsxs","OneTimePasswordFieldPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCAxP,8BAUpD,+CAuEnB,IApEFA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAoBC,+BAAAA,CAC9BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,kBAAA,CAAoBC,CAAAA,CACpB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAad,CAAOe,mBAAc,CAAA,CAEhC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,iCAAAA,CACtD,UAAA,CAAAT,CAAAA,CACA,MAAA,CAAQ,oBACV,CAAC,CAAA,CAEKU,CAAAA,CAAyB,CAACjB,CAAAA,EAAY,CAACD,CAAAA,CAEvCmB,CAAAA,CAAiB,CACrB,EAAA,CAAAN,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAd,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBc,CAAAA,CAAiBb,CAAAA,CAAiB,KAAA,CAAA,CAClD,gBAAA,CAAkBa,CAAAA,CAAiBZ,CAAAA,CAAmB,KAAA,CAAA,CACtD,QAAA,CAAAC,CACF,CAAA,CAEMa,CAAAA,CAAuBC,iCAAAA,CAC3BZ,CACEL,CAAAA,CAAaW,CAAAA,CAAe,KAAA,CAAA,CAC9BG,CAAAA,EAAkBZ,CAAAA,GAAqB,KAAA,CAAA,EAAaD,CAAAA,GAAmB,KAAA,CAAA,CACnEW,CAAAA,CACA,KAAA,CACN,CAAA,CAEMM,CAAAA,CAAYJ,CAAAA,EAAkBZ,CAAAA,GAAqB,SAAA,CAIzD,OACEiB,6BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGhC,CAAoBM,CAAS,CAAA,CAC3C,eAAA,CAAeC,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAC/B,aAAA,CAAaP,CAAAA,CACZ,GAAG0B,CAAAA,CAEJ,QAAA,CAAAO,8BAAAA,sCAACC,CAA8B,IAAA,CAA9B,CACC,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-MAGAAUVZ.cjs","sourcesContent":[null,"'use client';\n\nimport { unstable_OneTimePasswordField as OneTimePasswordFieldPrimitive } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VerificationInputProps } from './VerificationInput.props';\nimport { FormField } from '../FormField/FormField';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { cn } from '../../helpers/cn';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'VerificationInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport type VerificationInputElement = ComponentRef<'input'>;\n\n/**\n * Use VerificationInput to let users enter a one-time password (OTP) sent via\n * SMS, email, or an authenticator app. For general text entry, use TextInput;\n * for passwords, use PasswordInput instead. A `label` is required.\n *\n * @summary An input for entering a one-time password (OTP).\n */\nexport const VerificationInput = forwardRef<VerificationInputElement, VerificationInputProps>(\n (props, ref) => {\n const {\n className,\n disabled,\n readOnly,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n required,\n id: providedId,\n 'aria-describedby': ariaDescribedby,\n ...verificationInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'verification-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationStatus !== undefined && validationText !== undefined\n ? validationTextId\n : undefined\n );\n\n const isInvalid = showValidation && validationStatus === 'invalid';\n\n const PASSWORD_LENGTH = 6;\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <OneTimePasswordFieldPrimitive.Root\n className={`${componentClassName}Root`}\n disabled={disabled}\n readOnly={readOnly}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={isInvalid ? true : undefined}\n aria-errormessage={\n isInvalid && validationText !== undefined ? validationTextId : undefined\n }\n data-validation-status={showValidation ? validationStatus : undefined}\n {...verificationInputProps}\n >\n {Array.from({ length: PASSWORD_LENGTH }).map((_, i) => (\n <OneTimePasswordFieldPrimitive.Input key={i} asChild>\n <InputBase />\n </OneTimePasswordFieldPrimitive.Input>\n ))}\n\n <OneTimePasswordFieldPrimitive.HiddenInput ref={ref} />\n </OneTimePasswordFieldPrimitive.Root>\n </FormField>\n );\n }\n);\n\nVerificationInput.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{c as B}from"./chunk-AJ6U5OJT.js";import{c as A}from"./chunk-YWMUOY43.js";import{a}from"./chunk-OTXFBNCU.js";import{a as c}from"./chunk-J3AJBV4B.js";import{b as C}from"./chunk-PDEVCIQ3.js";import{forwardRef as y}from"react";import{jsx as h}from"react/jsx-runtime";var v="CardAccordionButton",g=C(v),N=y(({className:s,children:u,action:x,onClick:o,...m},p)=>{let{steps:r,setPreviousSteps:d,setCurrentStep:f,previousSteps:n}=A(),e=B();return x==="next"?h(a,{ref:p,className:c(g,s),type:"button",...m,variant:"solid",colorScheme:"highlight","data-action":"next",onClick:i=>{if(o&&o(i),d(t=>[...t,e.value]),r){let t=r.indexOf(e.value);t>=0&&t<r.length-1&&f(r[t+1])}},children:u||"Next"}):h(a,{ref:p,className:c(g,s),type:"button",...m,variant:"outline",colorScheme:"functional","data-action":"previous",onClick:i=>{if(o&&o(i),n.length>0){let t=n[n.length-1];f(t),d(l=>l.slice(0,l.indexOf(e.value)))}},children:u||"Previous"})});N.displayName=v;export{N as a};
4
- //# sourceMappingURL=chunk-EERWIJJE.js.map
3
+ import{c as B}from"./chunk-AJ6U5OJT.js";import{c as A}from"./chunk-YWMUOY43.js";import{a}from"./chunk-2RRGJCBC.js";import{a as c}from"./chunk-J3AJBV4B.js";import{b as C}from"./chunk-PDEVCIQ3.js";import{forwardRef as y}from"react";import{jsx as h}from"react/jsx-runtime";var v="CardAccordionButton",g=C(v),N=y(({className:s,children:u,action:x,onClick:o,...m},p)=>{let{steps:r,setPreviousSteps:d,setCurrentStep:f,previousSteps:n}=A(),e=B();return x==="next"?h(a,{ref:p,className:c(g,s),type:"button",...m,variant:"solid",colorScheme:"highlight","data-action":"next",onClick:i=>{if(o&&o(i),d(t=>[...t,e.value]),r){let t=r.indexOf(e.value);t>=0&&t<r.length-1&&f(r[t+1])}},children:u||"Next"}):h(a,{ref:p,className:c(g,s),type:"button",...m,variant:"outline",colorScheme:"functional","data-action":"previous",onClick:i=>{if(o&&o(i),n.length>0){let t=n[n.length-1];f(t),d(l=>l.slice(0,l.indexOf(e.value)))}},children:u||"Previous"})});N.displayName=v;export{N as a};
4
+ //# sourceMappingURL=chunk-MJ43JZBU.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
3
  import{a as m}from"./chunk-ZSFO3ITI.js";import{a as n}from"./chunk-4MNQRAHO.js";import{a as t}from"./chunk-QNXCNYOX.js";import{a as o}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as B}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var p="CardBannerContent",x=r(p),g=B(({heading:C,description:d,className:s,children:f,textAlign:e,...l},c)=>i(n,{ref:c,className:o(x,s),direction:"column",spacing:"lg",...l,children:[i(n,{spacing:"sm",direction:"column",children:[a(m,{size:"sm",textAlign:e,children:C}),a(t,{size:"md",textAlign:e,children:d})]}),f]}));g.displayName=p;export{g as a};
4
- //# sourceMappingURL=chunk-ZVXHZSW6.js.map
4
+ //# sourceMappingURL=chunk-MVRKWLXX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Card/CardBannerContent.tsx"],"sourcesContent":["import { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { BodyText } from '../BodyText/BodyText';\nimport type { CardBannerContentProps } from './CardBannerContent.props';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'CardBannerContent';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardBannerContentElement = ComponentRef<'div'>;\n\n/**\n * Use CardBannerContent to lay out the heading and description text within a\n * Card banner, alongside any additional content such as actions. Pair it\n * with `BannerImage` for banners that include an image or illustration.\n *\n * @summary Text content layout for a Card banner.\n */\nexport const CardBannerContent = forwardRef<CardBannerContentElement, CardBannerContentProps>(\n ({ heading, description, className, children, textAlign, ...props }, ref) => {\n return (\n <Flex\n ref={ref}\n className={cn(componentClassName, className)}\n direction=\"column\"\n spacing=\"lg\"\n {...props}\n >\n <Flex spacing=\"sm\" direction=\"column\">\n <Heading size=\"sm\" textAlign={textAlign}>\n {heading}\n </Heading>\n <BodyText size=\"md\" textAlign={textAlign}>\n {description}\n </BodyText>\n </Flex>\n {children}\n </Flex>\n );\n }\n);\n\nCardBannerContent.displayName = COMPONENT_NAME;\n"],"mappings":";;wMAMA,OAAS,cAAAA,MAAkB,QAyBnB,OACE,OAAAC,EADF,QAAAC,MAAA,oBAtBR,IAAMC,EAAiB,oBACjBC,EAAqBC,EAAiBF,CAAc,EAW7CG,EAAoBN,EAC/B,CAAC,CAAE,QAAAO,EAAS,YAAAC,EAAa,UAAAC,EAAW,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEjEX,EAACY,EAAA,CACC,IAAKD,EACL,UAAWE,EAAGX,EAAoBK,CAAS,EAC3C,UAAU,SACV,QAAQ,KACP,GAAGG,EAEJ,UAAAV,EAACY,EAAA,CAAK,QAAQ,KAAK,UAAU,SAC3B,UAAAb,EAACe,EAAA,CAAQ,KAAK,KAAK,UAAWL,EAC3B,SAAAJ,EACH,EACAN,EAACgB,EAAA,CAAS,KAAK,KAAK,UAAWN,EAC5B,SAAAH,EACH,GACF,EACCE,GACH,CAGN,EAEAJ,EAAkB,YAAcH","names":["forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","CardBannerContent","heading","description","className","children","textAlign","props","ref","Flex","cn","Heading","BodyText"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as e}from"./chunk-UBLBAHEF.js";import{forwardRef as n}from"react";import{jsx as p}from"react/jsx-runtime";var m="CardBannerImage",o=n((r,a)=>p(e,{ref:a,...r}));o.displayName=m;export{o as a};
4
+ //# sourceMappingURL=chunk-N4THYSAB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Card/CardBannerImage.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { BannerImage } from '../BannerImage/BannerImage';\nimport type { BannerImageProps } from '../BannerImage/BannerImage.props';\n\nconst COMPONENT_NAME = 'CardBannerImage';\n\ntype CardBannerImageElement = ComponentRef<'div'>;\n\n/**\n * @deprecated Use `BannerImage` instead. `CardBannerImage` will be removed in v1.\n */\nexport const CardBannerImage = forwardRef<CardBannerImageElement, BannerImageProps>(\n (props, ref) => <BannerImage ref={ref} {...props} />\n);\n\nCardBannerImage.displayName = COMPONENT_NAME;\n"],"mappings":";;wCAAA,OAAS,cAAAA,MAAkB,QAaT,cAAAC,MAAA,oBARlB,IAAMC,EAAiB,kBAOVC,EAAkBC,EAC7B,CAACC,EAAOC,IAAQL,EAACM,EAAA,CAAY,IAAKD,EAAM,GAAGD,EAAO,CACpD,EAEAF,EAAgB,YAAcD","names":["forwardRef","jsx","COMPONENT_NAME","CardBannerImage","forwardRef","props","ref","BannerImage"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkUB43SHEWcjs = require('./chunk-UB43SHEW.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var t="TablePagination",p=_chunk4Q432K4Wcjs.b.call(void 0, t),l= exports.a =_react.forwardRef.call(void 0, ({className:e,...i},r)=>_jsxruntime.jsx.call(void 0, _chunkUB43SHEWcjs.a,{ref:r,className:_chunkONNSZMWFcjs.a.call(void 0, p,e),...i,as:"div"}));l.displayName=t;exports.a = l;
4
- //# sourceMappingURL=chunk-3ZIDGMU3.cjs.map
3
+ var _chunkYX67YOF6cjs = require('./chunk-YX67YOF6.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var t="TablePagination",p=_chunk4Q432K4Wcjs.b.call(void 0, t),l= exports.a =_react.forwardRef.call(void 0, ({className:e,...i},r)=>_jsxruntime.jsx.call(void 0, _chunkYX67YOF6cjs.a,{ref:r,className:_chunkONNSZMWFcjs.a.call(void 0, p,e),...i,as:"div"}));l.displayName=t;exports.a = l;
4
+ //# sourceMappingURL=chunk-N764D6V5.cjs.map