@utilitywarehouse/hearth-react 0.36.3 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/chunk-2HKJAB5A.cjs +4 -0
  2. package/dist/chunk-2HKJAB5A.cjs.map +1 -0
  3. package/dist/{chunk-N764D6V5.cjs → chunk-3ZIDGMU3.cjs} +2 -2
  4. package/dist/{chunk-N764D6V5.cjs.map → chunk-3ZIDGMU3.cjs.map} +1 -1
  5. package/dist/{chunk-2RNTOHOU.cjs → chunk-5A667ZJZ.cjs} +2 -2
  6. package/dist/{chunk-2RNTOHOU.cjs.map → chunk-5A667ZJZ.cjs.map} +1 -1
  7. package/dist/{chunk-4F2QB3XC.js → chunk-5O7MHLG6.js} +2 -2
  8. package/dist/{chunk-4GNLKRL3.cjs → chunk-5TOYINGT.cjs} +2 -2
  9. package/dist/{chunk-4GNLKRL3.cjs.map → chunk-5TOYINGT.cjs.map} +1 -1
  10. package/dist/{chunk-Y72W6OWA.js → chunk-634BVRHR.js} +2 -2
  11. package/dist/{chunk-75OLYAFB.cjs → chunk-6BVOGEQF.cjs} +2 -2
  12. package/dist/{chunk-75OLYAFB.cjs.map → chunk-6BVOGEQF.cjs.map} +1 -1
  13. package/dist/{chunk-S2CDQ7HR.js → chunk-6KROCMQ7.js} +2 -2
  14. package/dist/{chunk-LBCDHBLY.js → chunk-7W2RLCGB.js} +2 -2
  15. package/dist/{chunk-KRFEIGR5.cjs → chunk-ATP4TL52.cjs} +2 -2
  16. package/dist/{chunk-KRFEIGR5.cjs.map → chunk-ATP4TL52.cjs.map} +1 -1
  17. package/dist/{chunk-YGNGIGCD.cjs → chunk-BSV5FCP7.cjs} +2 -2
  18. package/dist/{chunk-YGNGIGCD.cjs.map → chunk-BSV5FCP7.cjs.map} +1 -1
  19. package/dist/{chunk-ZHVCM3OC.cjs → chunk-DFHWFPXL.cjs} +2 -2
  20. package/dist/{chunk-ZHVCM3OC.cjs.map → chunk-DFHWFPXL.cjs.map} +1 -1
  21. package/dist/{chunk-VGPFJV22.cjs → chunk-EA6RRWYY.cjs} +2 -2
  22. package/dist/{chunk-VGPFJV22.cjs.map → chunk-EA6RRWYY.cjs.map} +1 -1
  23. package/dist/{chunk-E3TWA3DU.js → chunk-ECSNZJO5.js} +2 -2
  24. package/dist/{chunk-MJ43JZBU.js → chunk-EERWIJJE.js} +2 -2
  25. package/dist/{chunk-MAGAAUVZ.cjs → chunk-EU4YDI2W.cjs} +2 -2
  26. package/dist/{chunk-MAGAAUVZ.cjs.map → chunk-EU4YDI2W.cjs.map} +1 -1
  27. package/dist/{chunk-WFNQXP3D.cjs → chunk-GIQYG6QT.cjs} +2 -2
  28. package/dist/{chunk-WFNQXP3D.cjs.map → chunk-GIQYG6QT.cjs.map} +1 -1
  29. package/dist/{chunk-ZI5O2B2R.cjs → chunk-GN2MUYQR.cjs} +2 -2
  30. package/dist/{chunk-ZI5O2B2R.cjs.map → chunk-GN2MUYQR.cjs.map} +1 -1
  31. package/dist/chunk-HEBTLYVH.js +4 -0
  32. package/dist/chunk-HEBTLYVH.js.map +1 -0
  33. package/dist/{chunk-4HYVBOWY.cjs → chunk-HOTNDRL4.cjs} +2 -2
  34. package/dist/{chunk-4HYVBOWY.cjs.map → chunk-HOTNDRL4.cjs.map} +1 -1
  35. package/dist/chunk-HVAVRK6R.js +4 -0
  36. package/dist/chunk-HVAVRK6R.js.map +1 -0
  37. package/dist/{chunk-ZGIMM7G5.js → chunk-JBSAZP3R.js} +2 -2
  38. package/dist/{chunk-OKW3ZZOB.js → chunk-JIJWDAAU.js} +2 -2
  39. package/dist/{chunk-ZBLAL2BN.cjs → chunk-JXPGBAYH.cjs} +2 -2
  40. package/dist/{chunk-ZBLAL2BN.cjs.map → chunk-JXPGBAYH.cjs.map} +1 -1
  41. package/dist/{chunk-FTN2QGBD.cjs → chunk-KCIN3NYN.cjs} +2 -2
  42. package/dist/{chunk-FTN2QGBD.cjs.map → chunk-KCIN3NYN.cjs.map} +1 -1
  43. package/dist/{chunk-XNDPIHAF.js → chunk-KOSD5OKA.js} +2 -2
  44. package/dist/{chunk-IQZRFVT2.cjs → chunk-MFDPD7LL.cjs} +2 -2
  45. package/dist/{chunk-IQZRFVT2.cjs.map → chunk-MFDPD7LL.cjs.map} +1 -1
  46. package/dist/{chunk-6CBHZ5JZ.cjs → chunk-MMQDPLMG.cjs} +2 -2
  47. package/dist/{chunk-6CBHZ5JZ.cjs.map → chunk-MMQDPLMG.cjs.map} +1 -1
  48. package/dist/{chunk-2OHAFTMO.js → chunk-NBLUIVPS.js} +2 -2
  49. package/dist/{chunk-XC27XB43.js → chunk-NCNYRYLC.js} +2 -2
  50. package/dist/{chunk-6Z7AT6VB.js → chunk-NN6N7GOI.js} +2 -2
  51. package/dist/{chunk-EEXCCYCT.js → chunk-OBEWOAZS.js} +2 -2
  52. package/dist/{chunk-G6QAVOQR.js → chunk-ODJW4CKV.js} +2 -2
  53. package/dist/{chunk-AT4JEW4E.js → chunk-OJHREKDB.js} +2 -2
  54. package/dist/{chunk-2RRGJCBC.js → chunk-OTXFBNCU.js} +2 -2
  55. package/dist/{chunk-T36G4P7P.js → chunk-PCFN2SEL.js} +2 -2
  56. package/dist/{chunk-A7AQTINY.js → chunk-RZJZGZ73.js} +2 -2
  57. package/dist/{chunk-EOMKJBCT.cjs → chunk-SL5KN4YG.cjs} +2 -2
  58. package/dist/{chunk-EOMKJBCT.cjs.map → chunk-SL5KN4YG.cjs.map} +1 -1
  59. package/dist/chunk-TCKV5YCW.cjs +4 -0
  60. package/dist/chunk-TCKV5YCW.cjs.map +1 -0
  61. package/dist/{chunk-GBDOGSHO.js → chunk-TQTU3SU5.js} +2 -2
  62. package/dist/{chunk-7KJBTHSU.cjs → chunk-TTJ4COKL.cjs} +2 -2
  63. package/dist/{chunk-7KJBTHSU.cjs.map → chunk-TTJ4COKL.cjs.map} +1 -1
  64. package/dist/{chunk-YX67YOF6.cjs → chunk-UB43SHEW.cjs} +2 -2
  65. package/dist/{chunk-YX67YOF6.cjs.map → chunk-UB43SHEW.cjs.map} +1 -1
  66. package/dist/{chunk-HNPNWQMD.js → chunk-V4BZIPQB.js} +2 -2
  67. package/dist/{chunk-CE6J26Z7.cjs → chunk-V5F33HLX.cjs} +2 -2
  68. package/dist/{chunk-CE6J26Z7.cjs.map → chunk-V5F33HLX.cjs.map} +1 -1
  69. package/dist/{chunk-GTXWXSXO.js → chunk-YPFBLO44.js} +2 -2
  70. package/dist/{chunk-K7747CML.cjs → chunk-ZEHPCJWW.cjs} +2 -2
  71. package/dist/{chunk-K7747CML.cjs.map → chunk-ZEHPCJWW.cjs.map} +1 -1
  72. package/dist/components/Accordion/Accordion.cjs +1 -1
  73. package/dist/components/Accordion/Accordion.js +1 -1
  74. package/dist/components/Breadcrumbs/BreadcrumbItem.cjs +1 -1
  75. package/dist/components/Breadcrumbs/BreadcrumbItem.js +1 -1
  76. package/dist/components/Button/Button.cjs +1 -1
  77. package/dist/components/Button/Button.js +1 -1
  78. package/dist/components/CardAccordion/CardAccordion.cjs +1 -1
  79. package/dist/components/CardAccordion/CardAccordion.js +1 -1
  80. package/dist/components/CardAccordion/CardAccordionButton.cjs +1 -1
  81. package/dist/components/CardAccordion/CardAccordionButton.js +1 -1
  82. package/dist/components/CardAccordion/CardAccordionItem.cjs +1 -1
  83. package/dist/components/CardAccordion/CardAccordionItem.js +1 -1
  84. package/dist/components/Combobox/Combobox.cjs +1 -1
  85. package/dist/components/Combobox/Combobox.js +1 -1
  86. package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
  87. package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
  88. package/dist/components/DescriptionList/DescriptionList.cjs +1 -1
  89. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  90. package/dist/components/ExpandableCard/ExpandableCardGroup.cjs +1 -1
  91. package/dist/components/ExpandableCard/ExpandableCardGroup.js +1 -1
  92. package/dist/components/List/List.cjs +1 -1
  93. package/dist/components/List/List.js +1 -1
  94. package/dist/components/Modal/Modal.cjs +1 -1
  95. package/dist/components/Modal/Modal.cjs.map +1 -1
  96. package/dist/components/Modal/Modal.d.ts.map +1 -1
  97. package/dist/components/Modal/Modal.js +1 -1
  98. package/dist/components/Pagination/Pagination.cjs +1 -1
  99. package/dist/components/Pagination/Pagination.js +1 -1
  100. package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
  101. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  102. package/dist/components/ProgressBar/ProgressBar.cjs +1 -1
  103. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  104. package/dist/components/RadioTile/RadioTile.cjs +1 -1
  105. package/dist/components/RadioTile/RadioTile.js +1 -1
  106. package/dist/components/SearchInput/SearchInput.cjs +1 -1
  107. package/dist/components/SearchInput/SearchInput.js +1 -1
  108. package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
  109. package/dist/components/SectionHeader/SectionHeader.js +1 -1
  110. package/dist/components/Skeleton/SkeletonBodyText.cjs +1 -1
  111. package/dist/components/Skeleton/SkeletonBodyText.js +1 -1
  112. package/dist/components/Table/TablePagination.cjs +1 -1
  113. package/dist/components/Table/TablePagination.js +1 -1
  114. package/dist/components/TextInput/TextInput.cjs +1 -1
  115. package/dist/components/TextInput/TextInput.js +1 -1
  116. package/dist/components/VerificationInput/VerificationInput.cjs +1 -1
  117. package/dist/components/VerificationInput/VerificationInput.js +1 -1
  118. package/dist/components/VisuallyHidden/VisuallyHidden.cjs +4 -0
  119. package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -0
  120. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +10 -0
  121. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  122. package/dist/components/VisuallyHidden/VisuallyHidden.js +4 -0
  123. package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
  124. package/dist/components/VisuallyHidden/VisuallyHidden.props.cjs +3 -0
  125. package/dist/components/VisuallyHidden/VisuallyHidden.props.cjs.map +1 -0
  126. package/dist/components/VisuallyHidden/VisuallyHidden.props.d.ts +8 -0
  127. package/dist/components/VisuallyHidden/VisuallyHidden.props.d.ts.map +1 -0
  128. package/dist/components/VisuallyHidden/VisuallyHidden.props.js +3 -0
  129. package/dist/components/VisuallyHidden/VisuallyHidden.props.js.map +1 -0
  130. package/dist/index.cjs +1 -1
  131. package/dist/index.cjs.map +1 -1
  132. package/dist/index.d.ts +3 -0
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +1 -1
  135. package/dist/index.js.map +1 -1
  136. package/package.json +3 -3
  137. package/public/llms/components/visually-hidden.md +35 -0
  138. package/public/llms/docs/getting-started.md +1 -1
  139. package/public/llms.txt +1 -0
  140. package/styles.css +1 -1
  141. package/dist/chunk-AYU3ESZY.js +0 -4
  142. package/dist/chunk-AYU3ESZY.js.map +0 -1
  143. package/dist/chunk-SWFUZRPD.cjs +0 -4
  144. package/dist/chunk-SWFUZRPD.cjs.map +0 -1
  145. /package/dist/{chunk-4F2QB3XC.js.map → chunk-5O7MHLG6.js.map} +0 -0
  146. /package/dist/{chunk-Y72W6OWA.js.map → chunk-634BVRHR.js.map} +0 -0
  147. /package/dist/{chunk-S2CDQ7HR.js.map → chunk-6KROCMQ7.js.map} +0 -0
  148. /package/dist/{chunk-LBCDHBLY.js.map → chunk-7W2RLCGB.js.map} +0 -0
  149. /package/dist/{chunk-E3TWA3DU.js.map → chunk-ECSNZJO5.js.map} +0 -0
  150. /package/dist/{chunk-MJ43JZBU.js.map → chunk-EERWIJJE.js.map} +0 -0
  151. /package/dist/{chunk-ZGIMM7G5.js.map → chunk-JBSAZP3R.js.map} +0 -0
  152. /package/dist/{chunk-OKW3ZZOB.js.map → chunk-JIJWDAAU.js.map} +0 -0
  153. /package/dist/{chunk-XNDPIHAF.js.map → chunk-KOSD5OKA.js.map} +0 -0
  154. /package/dist/{chunk-2OHAFTMO.js.map → chunk-NBLUIVPS.js.map} +0 -0
  155. /package/dist/{chunk-XC27XB43.js.map → chunk-NCNYRYLC.js.map} +0 -0
  156. /package/dist/{chunk-6Z7AT6VB.js.map → chunk-NN6N7GOI.js.map} +0 -0
  157. /package/dist/{chunk-EEXCCYCT.js.map → chunk-OBEWOAZS.js.map} +0 -0
  158. /package/dist/{chunk-G6QAVOQR.js.map → chunk-ODJW4CKV.js.map} +0 -0
  159. /package/dist/{chunk-AT4JEW4E.js.map → chunk-OJHREKDB.js.map} +0 -0
  160. /package/dist/{chunk-2RRGJCBC.js.map → chunk-OTXFBNCU.js.map} +0 -0
  161. /package/dist/{chunk-T36G4P7P.js.map → chunk-PCFN2SEL.js.map} +0 -0
  162. /package/dist/{chunk-A7AQTINY.js.map → chunk-RZJZGZ73.js.map} +0 -0
  163. /package/dist/{chunk-GBDOGSHO.js.map → chunk-TQTU3SU5.js.map} +0 -0
  164. /package/dist/{chunk-HNPNWQMD.js.map → chunk-V4BZIPQB.js.map} +0 -0
  165. /package/dist/{chunk-GTXWXSXO.js.map → chunk-YPFBLO44.js.map} +0 -0
@@ -1 +1 @@
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
+ {"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"],"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-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,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 _chunk4GNLKRL3cjs = require('./chunk-4GNLKRL3.cjs');var _chunkMJNIIRVPcjs = require('./chunk-MJNIIRVP.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 C="CardAccordion",m=_chunk4Q432K4Wcjs.b.call(void 0, C),I= exports.a =_react.forwardRef.call(void 0, (u,A)=>{let{className:P,children:t,value:r,onValueChange:e,...h}=_chunkZPJNQBTNcjs.a.call(void 0, u,_chunkOB7O3UFLcjs.a),[v,n]=_react.useState.call(void 0, r);_react.useEffect.call(void 0, ()=>{r!==void 0&&n(r)},[r]);let g={...h,type:"single",collapsible:!1,value:v,onValueChange:o=>{n(o),e&&e(o)}},i=(_nullishCoalesce(_react.Children.map(t,o=>_react.isValidElement.call(void 0, o)&&o.type===_chunk4GNLKRL3cjs.a?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):_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{ref:A,className:_chunkONNSZMWFcjs.a.call(void 0, m,P),"data-testid":m,...g,children:_jsxruntime.jsx.call(void 0, _chunkMJNIIRVPcjs.b,{steps:i,onValueChange:e,setCurrentValue:n,children:t})})});I.displayName=C;exports.a = I;
4
- //# sourceMappingURL=chunk-WFNQXP3D.cjs.map
3
+ var _chunk5TOYINGTcjs = require('./chunk-5TOYINGT.cjs');var _chunkMJNIIRVPcjs = require('./chunk-MJNIIRVP.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 C="CardAccordion",m=_chunk4Q432K4Wcjs.b.call(void 0, C),I= exports.a =_react.forwardRef.call(void 0, (u,A)=>{let{className:P,children:t,value:r,onValueChange:e,...h}=_chunkZPJNQBTNcjs.a.call(void 0, u,_chunkOB7O3UFLcjs.a),[v,n]=_react.useState.call(void 0, r);_react.useEffect.call(void 0, ()=>{r!==void 0&&n(r)},[r]);let g={...h,type:"single",collapsible:!1,value:v,onValueChange:o=>{n(o),e&&e(o)}},i=(_nullishCoalesce(_react.Children.map(t,o=>_react.isValidElement.call(void 0, o)&&o.type===_chunk5TOYINGTcjs.a?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):_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{ref:A,className:_chunkONNSZMWFcjs.a.call(void 0, m,P),"data-testid":m,...g,children:_jsxruntime.jsx.call(void 0, _chunkMJNIIRVPcjs.b,{steps:i,onValueChange:e,setCurrentValue:n,children:t})})});I.displayName=C;exports.a = I;
4
+ //# sourceMappingURL=chunk-GIQYG6QT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-WFNQXP3D.cjs","../src/components/CardAccordion/CardAccordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CardAccordion","forwardRef","props","ref","className","children","value","onValueChange","restProps","extractProps","marginPropDefs","currentValue","setCurrentValue","useState","useEffect","accordionProps","newValue","steps","Children","child","isValidElement","CardAccordionItem","jsx","AccordionPrimitive","cn","CardAccordionProvider"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,wDAAyC,8BCAtK,mCAK1B,+CAkF1C,IA5EAA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAgBC,+BAAAA,CAAsDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAChG,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,KAAA,CAAAC,CAAAA,CAAO,aAAA,CAAAC,CAAAA,CAAe,GAAGC,CAAU,CAAA,CAAIC,iCAAAA,CAClEP,CACAQ,mBACF,CAAA,CAEM,CAACC,CAAAA,CAAcC,CAAe,CAAA,CAAIC,6BAAAA,CAAc,CAAA,CAEtDC,8BAAAA,CAAU,CAAA,EAAM,CAEVR,CAAAA,GAAU,KAAA,CAAA,EACZM,CAAAA,CAAgBN,CAAK,CAEzB,CAAA,CAAG,CAACA,CAAK,CAAC,CAAA,CASV,IAAMS,CAAAA,CAAiB,CACrB,GAAGP,CAAAA,CACH,IAAA,CAAM,QAAA,CACN,WAAA,CAAa,CAAA,CAAA,CACb,KAAA,CAAOG,CAAAA,CACP,aAAA,CAZyBK,CAAAA,EAAqB,CAC9CJ,CAAAA,CAAgBI,CAAQ,CAAA,CACpBT,CAAAA,EACFA,CAAAA,CAAcS,CAAQ,CAE1B,CAQA,CAAA,CAEMC,CAAAA,CAAAA,kBACJC,eAAAA,CAAS,GAAA,CAAIb,CAAAA,CAAUc,CAAAA,EACjBC,mCAAAA,CAAoB,CAAA,EAAKD,CAAAA,CAAM,IAAA,GAASE,mBAAAA,CAClCF,CAAAA,CAAM,KAAA,CAA6B,KAAA,CAEtC,IACR,CAAA,SAAK,CAAC,GAAA,CAAA,CACP,MAAA,CAAO,OAAO,CAAA,CAEhB,OAAIF,CAAAA,CAAM,MAAA,GAAW,CAAA,CAAA,CACf,OAAA,CAAQ,GAAA,CAAI,QAAA,GAAa,YAAA,EAM3B,OAAA,CAAQ,KAAA,CACN,6IAEF,CAAA,CAEK,IAAA,CAAA,CAIPK,6BAAAA,kBAACC,CAAmB,IAAA,CAAnB,CACC,GAAA,CAAKpB,CAAAA,CACL,SAAA,CAAWqB,iCAAAA,CAAG1B,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGiB,CAAAA,CAEJ,QAAA,CAAAO,6BAAAA,mBAACG,CAAA,CACC,KAAA,CAAOR,CAAAA,CACP,aAAA,CAAeV,CAAAA,CACf,eAAA,CAAiBK,CAAAA,CAEhB,QAAA,CAAAP,CAAAA,CACH,CAAA,CACF,CAEJ,CAAC,CAAA,CAEDL,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-WFNQXP3D.cjs","sourcesContent":[null,"'use client';\n\nimport { Children, forwardRef, isValidElement, useEffect, useState } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { CardAccordionProps } from './CardAccordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { CardAccordionProvider } from './CardAccordion.context';\nimport { CardAccordionItem } from './CardAccordionItem';\n\nconst COMPONENT_NAME = 'CardAccordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardAccordionElement = ComponentRef<'div'>;\n\n/**\n * Use CardAccordion to break a form journey into multiple collapsible cards,\n * letting users progress step-by-step on a single page while keeping\n * previously completed steps visible and editable. Compose it with\n * `CardAccordionItem` for each step (each requires a unique `value`) and\n * `CardAccordionFooter`/`CardAccordionButton` for step navigation. Requires at\n * least one `CardAccordionItem` child.\n *\n * @summary A form journey broken into multiple collapsible, step-by-step cards.\n */\nexport const CardAccordion = forwardRef<CardAccordionElement, CardAccordionProps>((props, ref) => {\n const { className, children, value, onValueChange, ...restProps } = extractProps(\n props,\n marginPropDefs\n );\n\n const [currentValue, setCurrentValue] = useState(value);\n\n useEffect(() => {\n // Keep internal state in sync when the controlled `value` prop changes.\n if (value !== undefined) {\n setCurrentValue(value);\n }\n }, [value]);\n\n const handleValueChange = (newValue: string) => {\n setCurrentValue(newValue);\n if (onValueChange) {\n onValueChange(newValue);\n }\n };\n\n const accordionProps = {\n ...restProps,\n type: 'single',\n collapsible: false,\n value: currentValue,\n onValueChange: handleValueChange,\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n const steps: Array<string> = (\n Children.map(children, child => {\n if (isValidElement(child) && child.type === CardAccordionItem) {\n return (child.props as { value?: string }).value;\n }\n return null;\n }) ?? []\n ).filter(Boolean);\n\n if (steps.length === 0) {\n if (process.env.NODE_ENV !== 'production') {\n // CardAccordionProvider assumes at least one step (steps[0]).\n // Rendering CardAccordion without any CardAccordionItem children can cause runtime errors.\n // This guard ensures we fail fast in development and avoid crashing in production.\n // Make sure to pass at least one <CardAccordionItem value=\"...\"> as a child of <CardAccordion>.\n\n console.error(\n '[CardAccordion]: No CardAccordionItem children with a \"value\" prop were found. ' +\n 'CardAccordion requires at least one CardAccordionItem child.'\n );\n }\n return null;\n }\n\n return (\n <AccordionPrimitive.Root\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...accordionProps}\n >\n <CardAccordionProvider\n steps={steps}\n onValueChange={onValueChange}\n setCurrentValue={setCurrentValue}\n >\n {children}\n </CardAccordionProvider>\n </AccordionPrimitive.Root>\n );\n});\n\nCardAccordion.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GIQYG6QT.cjs","../src/components/CardAccordion/CardAccordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CardAccordion","forwardRef","props","ref","className","children","value","onValueChange","restProps","extractProps","marginPropDefs","currentValue","setCurrentValue","useState","useEffect","accordionProps","newValue","steps","Children","child","isValidElement","CardAccordionItem","jsx","AccordionPrimitive","cn","CardAccordionProvider"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,wDAAyC,8BCAtK,mCAK1B,+CAkF1C,IA5EAA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAgBC,+BAAAA,CAAsDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAChG,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,KAAA,CAAAC,CAAAA,CAAO,aAAA,CAAAC,CAAAA,CAAe,GAAGC,CAAU,CAAA,CAAIC,iCAAAA,CAClEP,CACAQ,mBACF,CAAA,CAEM,CAACC,CAAAA,CAAcC,CAAe,CAAA,CAAIC,6BAAAA,CAAc,CAAA,CAEtDC,8BAAAA,CAAU,CAAA,EAAM,CAEVR,CAAAA,GAAU,KAAA,CAAA,EACZM,CAAAA,CAAgBN,CAAK,CAEzB,CAAA,CAAG,CAACA,CAAK,CAAC,CAAA,CASV,IAAMS,CAAAA,CAAiB,CACrB,GAAGP,CAAAA,CACH,IAAA,CAAM,QAAA,CACN,WAAA,CAAa,CAAA,CAAA,CACb,KAAA,CAAOG,CAAAA,CACP,aAAA,CAZyBK,CAAAA,EAAqB,CAC9CJ,CAAAA,CAAgBI,CAAQ,CAAA,CACpBT,CAAAA,EACFA,CAAAA,CAAcS,CAAQ,CAE1B,CAQA,CAAA,CAEMC,CAAAA,CAAAA,kBACJC,eAAAA,CAAS,GAAA,CAAIb,CAAAA,CAAUc,CAAAA,EACjBC,mCAAAA,CAAoB,CAAA,EAAKD,CAAAA,CAAM,IAAA,GAASE,mBAAAA,CAClCF,CAAAA,CAAM,KAAA,CAA6B,KAAA,CAEtC,IACR,CAAA,SAAK,CAAC,GAAA,CAAA,CACP,MAAA,CAAO,OAAO,CAAA,CAEhB,OAAIF,CAAAA,CAAM,MAAA,GAAW,CAAA,CAAA,CACf,OAAA,CAAQ,GAAA,CAAI,QAAA,GAAa,YAAA,EAM3B,OAAA,CAAQ,KAAA,CACN,6IAEF,CAAA,CAEK,IAAA,CAAA,CAIPK,6BAAAA,kBAACC,CAAmB,IAAA,CAAnB,CACC,GAAA,CAAKpB,CAAAA,CACL,SAAA,CAAWqB,iCAAAA,CAAG1B,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGiB,CAAAA,CAEJ,QAAA,CAAAO,6BAAAA,mBAACG,CAAA,CACC,KAAA,CAAOR,CAAAA,CACP,aAAA,CAAeV,CAAAA,CACf,eAAA,CAAiBK,CAAAA,CAEhB,QAAA,CAAAP,CAAAA,CACH,CAAA,CACF,CAEJ,CAAC,CAAA,CAEDL,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GIQYG6QT.cjs","sourcesContent":[null,"'use client';\n\nimport { Children, forwardRef, isValidElement, useEffect, useState } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { CardAccordionProps } from './CardAccordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { CardAccordionProvider } from './CardAccordion.context';\nimport { CardAccordionItem } from './CardAccordionItem';\n\nconst COMPONENT_NAME = 'CardAccordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardAccordionElement = ComponentRef<'div'>;\n\n/**\n * Use CardAccordion to break a form journey into multiple collapsible cards,\n * letting users progress step-by-step on a single page while keeping\n * previously completed steps visible and editable. Compose it with\n * `CardAccordionItem` for each step (each requires a unique `value`) and\n * `CardAccordionFooter`/`CardAccordionButton` for step navigation. Requires at\n * least one `CardAccordionItem` child.\n *\n * @summary A form journey broken into multiple collapsible, step-by-step cards.\n */\nexport const CardAccordion = forwardRef<CardAccordionElement, CardAccordionProps>((props, ref) => {\n const { className, children, value, onValueChange, ...restProps } = extractProps(\n props,\n marginPropDefs\n );\n\n const [currentValue, setCurrentValue] = useState(value);\n\n useEffect(() => {\n // Keep internal state in sync when the controlled `value` prop changes.\n if (value !== undefined) {\n setCurrentValue(value);\n }\n }, [value]);\n\n const handleValueChange = (newValue: string) => {\n setCurrentValue(newValue);\n if (onValueChange) {\n onValueChange(newValue);\n }\n };\n\n const accordionProps = {\n ...restProps,\n type: 'single',\n collapsible: false,\n value: currentValue,\n onValueChange: handleValueChange,\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n const steps: Array<string> = (\n Children.map(children, child => {\n if (isValidElement(child) && child.type === CardAccordionItem) {\n return (child.props as { value?: string }).value;\n }\n return null;\n }) ?? []\n ).filter(Boolean);\n\n if (steps.length === 0) {\n if (process.env.NODE_ENV !== 'production') {\n // CardAccordionProvider assumes at least one step (steps[0]).\n // Rendering CardAccordion without any CardAccordionItem children can cause runtime errors.\n // This guard ensures we fail fast in development and avoid crashing in production.\n // Make sure to pass at least one <CardAccordionItem value=\"...\"> as a child of <CardAccordion>.\n\n console.error(\n '[CardAccordion]: No CardAccordionItem children with a \"value\" prop were found. ' +\n 'CardAccordion requires at least one CardAccordionItem child.'\n );\n }\n return null;\n }\n\n return (\n <AccordionPrimitive.Root\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...accordionProps}\n >\n <CardAccordionProvider\n steps={steps}\n onValueChange={onValueChange}\n setCurrentValue={setCurrentValue}\n >\n {children}\n </CardAccordionProvider>\n </AccordionPrimitive.Root>\n );\n});\n\nCardAccordion.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkQVPA4BU3cjs = require('./chunk-QVPA4BU3.cjs');var _chunkF54LCSZKcjs = require('./chunk-F54LCSZK.cjs');var _chunk3ODBY6JGcjs = require('./chunk-3ODBY6JG.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');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 H="SectionHeader",o=_chunk4Q432K4Wcjs.b.call(void 0, H),P= exports.a =_react.forwardRef.call(void 0, ({className:x,heading:N,id:C,headingElement:E="div",helperText:t,trailingContent:n,validationText:r,validationStatus:i,direction:S,...u},T)=>{let g=i!==void 0&&r!==void 0;return _jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{ref:T,className:_chunkONNSZMWFcjs.a.call(void 0, o,x),direction:S,"data-testid":o,...u,children:[_jsxruntime.jsxs.call(void 0, _chunkIVFMFU6Ucjs.a,{className:`${o}Content`,children:[_jsxruntime.jsx.call(void 0, _chunk3ODBY6JGcjs.a,{asChild:!0,size:"md",id:C,children:_jsxruntime.jsx.call(void 0, E,{children:N})}),t?_jsxruntime.jsx.call(void 0, _chunkF54LCSZKcjs.a,{children:t}):null,g?_jsxruntime.jsx.call(void 0, _chunkQVPA4BU3cjs.a,{status:i,children:r}):null]}),n?_jsxruntime.jsx.call(void 0, "span",{className:`${o}TrailingContent`,children:n}):null]})});P.displayName=H;exports.a = P;
4
- //# sourceMappingURL=chunk-ZI5O2B2R.cjs.map
3
+ var _chunkQVPA4BU3cjs = require('./chunk-QVPA4BU3.cjs');var _chunkF54LCSZKcjs = require('./chunk-F54LCSZK.cjs');var _chunk3ODBY6JGcjs = require('./chunk-3ODBY6JG.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var H="SectionHeader",o=_chunk4Q432K4Wcjs.b.call(void 0, H),P= exports.a =_react.forwardRef.call(void 0, ({className:x,heading:N,id:C,headingElement:E="div",helperText:t,trailingContent:n,validationText:r,validationStatus:i,direction:S,...u},T)=>{let g=i!==void 0&&r!==void 0;return _jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{ref:T,className:_chunkONNSZMWFcjs.a.call(void 0, o,x),direction:S,"data-testid":o,...u,children:[_jsxruntime.jsxs.call(void 0, _chunkIVFMFU6Ucjs.a,{className:`${o}Content`,children:[_jsxruntime.jsx.call(void 0, _chunk3ODBY6JGcjs.a,{asChild:!0,size:"md",id:C,children:_jsxruntime.jsx.call(void 0, E,{children:N})}),t?_jsxruntime.jsx.call(void 0, _chunkF54LCSZKcjs.a,{children:t}):null,g?_jsxruntime.jsx.call(void 0, _chunkQVPA4BU3cjs.a,{status:i,children:r}):null]}),n?_jsxruntime.jsx.call(void 0, "span",{className:`${o}TrailingContent`,children:n}):null]})});P.displayName=H;exports.a = P;
4
+ //# sourceMappingURL=chunk-GN2MUYQR.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-ZI5O2B2R.cjs","../src/components/SectionHeader/SectionHeader.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SectionHeader","forwardRef","className","heading","id","HeadingEl","helperText","trailingContent","validationText","validationStatus","direction","props","ref","showValidationText","jsxs","Flex","cn","Box"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCFnQ,+CAiDnB,IAtCFA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAgBC,+BAAAA,CAEzB,CACE,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAY,KAAA,CAC5B,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAqBJ,CAAAA,GAAqB,KAAA,CAAA,EAAaD,CAAAA,GAAmB,KAAA,CAAA,CAEhF,OACEM,8BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWI,iCAAAA,CAAGlB,CAAoBI,CAAS,CAAA,CAC3C,SAAA,CAAWQ,CAAAA,CACX,aAAA,CAAaZ,CAAAA,CACZ,GAAGa,CAAAA,CAEJ,QAAA,CAAA,CAAAG,8BAAAA,mBAACG,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-ZI5O2B2R.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 { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport type { SectionHeaderProps } from './SectionHeader.props';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\n\nconst COMPONENT_NAME = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SectionHeaderElement = ComponentRef<'div'>;\n\n/**\n * Use SectionHeader to introduce and visually separate a section of content\n * within a screen. Pass `trailingContent` to add a Link, Button, or Badge\n * alongside the heading.\n *\n * @summary A heading used to introduce and separate a section of content.\n */\nexport const SectionHeader = forwardRef<SectionHeaderElement, SectionHeaderProps>(\n (\n {\n className,\n heading,\n id,\n headingElement: HeadingEl = 'div',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n direction,\n ...props\n },\n ref\n ) => {\n const showValidationText = validationStatus !== undefined && validationText !== undefined;\n\n return (\n <Flex\n ref={ref}\n className={cn(componentClassName, className)}\n direction={direction}\n data-testid={componentClassName}\n {...props}\n >\n <Box className={`${componentClassName}Content`}>\n <Heading asChild size=\"md\" id={id}>\n <HeadingEl>{heading}</HeadingEl>\n </Heading>\n {helperText ? <HelperText>{helperText}</HelperText> : null}\n {showValidationText ? (\n <ValidationText status={validationStatus}>{validationText}</ValidationText>\n ) : null}\n </Box>\n\n {trailingContent ? (\n <span className={`${componentClassName}TrailingContent`}>{trailingContent}</span>\n ) : null}\n </Flex>\n );\n }\n);\n\nSectionHeader.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GN2MUYQR.cjs","../src/components/SectionHeader/SectionHeader.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SectionHeader","forwardRef","className","heading","id","HeadingEl","helperText","trailingContent","validationText","validationStatus","direction","props","ref","showValidationText","jsxs","Flex","cn","Box"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCFnQ,+CAiDnB,IAtCFA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAgBC,+BAAAA,CAEzB,CACE,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAY,KAAA,CAC5B,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAqBJ,CAAAA,GAAqB,KAAA,CAAA,EAAaD,CAAAA,GAAmB,KAAA,CAAA,CAEhF,OACEM,8BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWI,iCAAAA,CAAGlB,CAAoBI,CAAS,CAAA,CAC3C,SAAA,CAAWQ,CAAAA,CACX,aAAA,CAAaZ,CAAAA,CACZ,GAAGa,CAAAA,CAEJ,QAAA,CAAA,CAAAG,8BAAAA,mBAACG,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GN2MUYQR.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 { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport type { SectionHeaderProps } from './SectionHeader.props';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\n\nconst COMPONENT_NAME = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SectionHeaderElement = ComponentRef<'div'>;\n\n/**\n * Use SectionHeader to introduce and visually separate a section of content\n * within a screen. Pass `trailingContent` to add a Link, Button, or Badge\n * alongside the heading.\n *\n * @summary A heading used to introduce and separate a section of content.\n */\nexport const SectionHeader = forwardRef<SectionHeaderElement, SectionHeaderProps>(\n (\n {\n className,\n heading,\n id,\n headingElement: HeadingEl = 'div',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n direction,\n ...props\n },\n ref\n ) => {\n const showValidationText = validationStatus !== undefined && validationText !== undefined;\n\n return (\n <Flex\n ref={ref}\n className={cn(componentClassName, className)}\n direction={direction}\n data-testid={componentClassName}\n {...props}\n >\n <Box className={`${componentClassName}Content`}>\n <Heading asChild size=\"md\" id={id}>\n <HeadingEl>{heading}</HeadingEl>\n </Heading>\n {helperText ? <HelperText>{helperText}</HelperText> : null}\n {showValidationText ? (\n <ValidationText status={validationStatus}>{validationText}</ValidationText>\n ) : null}\n </Box>\n\n {trailingContent ? (\n <span className={`${componentClassName}TrailingContent`}>{trailingContent}</span>\n ) : null}\n </Flex>\n );\n }\n);\n\nSectionHeader.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as y}from"./chunk-7ACLSMWO.js";import{a as h}from"./chunk-57OFJSBQ.js";import{a as D}from"./chunk-QNITBIE4.js";import{a as N}from"./chunk-DAEIJDP7.js";import{a as p}from"./chunk-ZSFO3ITI.js";import{a as P}from"./chunk-4MNQRAHO.js";import{a as m}from"./chunk-RXW6PYP7.js";import{a as c}from"./chunk-QNXCNYOX.js";import{a as x}from"./chunk-UMCDT4ZD.js";import{a as M}from"./chunk-KGEVWEVL.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as s}from"./chunk-PDEVCIQ3.js";import{Dialog as o}from"radix-ui";import{CloseMediumIcon as A}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as R}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var B="Modal",i=s(B),U=R((I,T)=>{let{className:$,image:f,keepMounted:b,container:w,heading:H,description:t,hideCloseButton:g,loading:n,loadingHeading:l,loadingDescription:d,children:O,fullScreen:k,forceMount:v,loadingText:r,...z}=M(I,y);x(v!==void 0,"Modal `forceMount` is deprecated. Use `keepMounted` instead.");let S={forceMount:(b??v)||void 0,container:w},u=!!f,E=!!(n?(r||l)&&d:t);return e(o.Portal,{...S,children:e(o.Overlay,{className:s("Overlay"),children:e("div",{className:`${i}Scroll`,children:e("div",{className:`${i}ScrollPadding`,children:a(o.Content,{ref:T,className:C(i,$),"data-contains-image":u?"":void 0,"data-hide-close-button":g?"":void 0,"data-testid":i,...E?{}:{"aria-describedby":void 0},...z,children:[e(h,{children:e(D,{type:"button",label:"Close","data-visually-hidden":g?"":void 0,className:`${i}CloseIconButton`,children:e(A,{})})}),a("div",{className:`${i}OuterContainer`,children:[n?null:a("div",{className:`${i}InnerContainer`,children:[u?e("div",{className:`${i}ImageContainer`,children:e("div",{className:`${i}Image`,children:f})}):null,a("div",{className:`${i}Header`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(p,{size:"lg",textWrap:"wrap",children:H})})}),t?e(o.Description,{asChild:!0,children:e(c,{size:"md",as:"span",children:t})}):null]})]}),n?a(P,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[e(N,{size:"lg"}),a("div",{className:`${i}LoadingHeader`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(p,{size:"lg",textAlign:"center",textWrap:"wrap",children:l||r||"Loading"})})}),(r||l)&&d?e(o.Description,{asChild:!0,children:e(c,{size:"md",as:"span",textAlign:"center",children:d})}):null]})]}):O]})]})})})})})});U.displayName=B;export{U as a};
4
+ //# sourceMappingURL=chunk-HEBTLYVH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Modal/Modal.tsx"],"sourcesContent":["'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { warn } from '../../helpers/logger';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { modalPropDefs, type ModalProps } from './Modal.props';\nimport { Heading } from '../Heading/Heading';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { CloseMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { ModalClose } from './ModalClose';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\nimport { Spinner } from '../Spinner/Spinner';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\n\nconst COMPONENT_NAME = 'Modal';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ModalElement = ComponentRef<'div'>;\n\n/**\n * Use Modal to overlay content that requests a decision from the user or\n * informs them of important information, without navigating to a new page.\n * Modal must be wrapped in a ModalRoot, and is typically composed with\n * ModalTrigger, ModalContent, ModalFooter, and ModalClose. Pass `heading` and\n * `description` for standard content, or custom children alongside\n * ModalFooter for more control over layout.\n *\n * @summary An overlay that requests a decision or displays important information.\n */\nexport const Modal = forwardRef<ModalElement, ModalProps>((props, ref) => {\n const {\n className,\n image,\n keepMounted,\n container,\n heading,\n description,\n hideCloseButton,\n loading,\n loadingHeading,\n loadingDescription,\n children,\n // Deprecated and ignored; destructured so it isn't forwarded to the DOM.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fullScreen: _fullScreen,\n forceMount,\n loadingText,\n ...modalProps\n } = extractProps(props, modalPropDefs);\n warn(forceMount !== undefined, 'Modal `forceMount` is deprecated. Use `keepMounted` instead.');\n const resolvedKeepMounted = keepMounted ?? forceMount;\n const portalProps = { forceMount: resolvedKeepMounted || undefined, container };\n const containsImage = Boolean(image);\n const hasDescription = Boolean(\n loading ? (loadingText || loadingHeading) && loadingDescription : description\n );\n\n return (\n <DialogPrimitive.Portal {...portalProps}>\n <DialogPrimitive.Overlay className={withGlobalPrefix('Overlay')}>\n <div className={`${componentClassName}Scroll`}>\n <div className={`${componentClassName}ScrollPadding`}>\n <DialogPrimitive.Content\n ref={ref}\n className={cn(componentClassName, className)}\n data-contains-image={containsImage ? '' : undefined}\n data-hide-close-button={hideCloseButton ? '' : undefined}\n data-testid={componentClassName}\n {...(hasDescription ? {} : { 'aria-describedby': undefined })}\n {...modalProps}\n >\n <ModalClose>\n <UnstyledIconButton\n type=\"button\"\n label=\"Close\"\n data-visually-hidden={hideCloseButton ? '' : undefined}\n className={`${componentClassName}CloseIconButton`}\n >\n <CloseMediumIcon />\n </UnstyledIconButton>\n </ModalClose>\n <div className={`${componentClassName}OuterContainer`}>\n {!loading ? (\n <div className={`${componentClassName}InnerContainer`}>\n {containsImage ? (\n <div className={`${componentClassName}ImageContainer`}>\n <div className={`${componentClassName}Image`}>{image}</div>\n </div>\n ) : null}\n <div className={`${componentClassName}Header`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textWrap=\"wrap\">\n {heading}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {description ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\">\n {description}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </div>\n ) : null}\n\n {loading ? (\n <Flex\n direction=\"column\"\n gap=\"300\"\n alignItems=\"center\"\n paddingY=\"200\"\n width=\"100%\"\n >\n <Spinner size=\"lg\" />\n <div className={`${componentClassName}LoadingHeader`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textAlign=\"center\" textWrap=\"wrap\">\n {loadingHeading || loadingText || 'Loading'}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {(loadingText || loadingHeading) && loadingDescription ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\" textAlign=\"center\">\n {loadingDescription}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </Flex>\n ) : (\n children\n )}\n </div>\n </DialogPrimitive.Content>\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nModal.displayName = COMPONENT_NAME;\n"],"mappings":"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","names":["DialogPrimitive","CloseMediumIcon","forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","forwardRef","props","ref","className","image","keepMounted","container","heading","description","hideCloseButton","loading","loadingHeading","loadingDescription","children","_fullScreen","forceMount","loadingText","modalProps","extractProps","modalPropDefs","warn","portalProps","containsImage","hasDescription","DialogPrimitive","cn","ModalClose","UnstyledIconButton","CloseMediumIcon","Box","Heading","BodyText","Flex","Spinner"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunk3GKKDE55cjs = require('./chunk-3GKKDE55.cjs');var _chunkZI5O2B2Rcjs = require('./chunk-ZI5O2B2R.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.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 c="DescriptionList",o=_chunk4Q432K4Wcjs.b.call(void 0, c),F= exports.a =_react.forwardRef.call(void 0, (d,f)=>{let{className:x,style:P,heading:i,headingElement:D,helperText:h,trailingContent:C,children:L,direction:N,validationText:v,validationStatus:y,width:E,maxWidth:g,minWidth:u,...w}=_chunkZPJNQBTNcjs.a.call(void 0, d,_chunkOB7O3UFLcjs.a),R={style:P,width:E,maxWidth:g,minWidth:u},T={heading:i,headingElement:D,helperText:h,trailingContent:C,validationText:v,validationStatus:y};return _jsxruntime.jsxs.call(void 0, _chunkIVFMFU6Ucjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, o,x),"data-testid":o,...R,children:[i?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{...T}):null,_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{asChild:!0,className:`${o}Container`,role:"list",children:_jsxruntime.jsx.call(void 0, "dl",{ref:f,role:"list",...w,children:_jsxruntime.jsx.call(void 0, _chunk3GKKDE55cjs.a.Provider,{value:{direction:N},children:L})})})]})});F.displayName=c;exports.a = F;
4
- //# sourceMappingURL=chunk-4HYVBOWY.cjs.map
3
+ var _chunk3GKKDE55cjs = require('./chunk-3GKKDE55.cjs');var _chunkGN2MUYQRcjs = require('./chunk-GN2MUYQR.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.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 c="DescriptionList",o=_chunk4Q432K4Wcjs.b.call(void 0, c),F= exports.a =_react.forwardRef.call(void 0, (d,f)=>{let{className:x,style:P,heading:i,headingElement:D,helperText:h,trailingContent:C,children:L,direction:N,validationText:v,validationStatus:y,width:E,maxWidth:g,minWidth:u,...w}=_chunkZPJNQBTNcjs.a.call(void 0, d,_chunkOB7O3UFLcjs.a),R={style:P,width:E,maxWidth:g,minWidth:u},T={heading:i,headingElement:D,helperText:h,trailingContent:C,validationText:v,validationStatus:y};return _jsxruntime.jsxs.call(void 0, _chunkIVFMFU6Ucjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, o,x),"data-testid":o,...R,children:[i?_jsxruntime.jsx.call(void 0, _chunkGN2MUYQRcjs.a,{...T}):null,_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{asChild:!0,className:`${o}Container`,role:"list",children:_jsxruntime.jsx.call(void 0, "dl",{ref:f,role:"list",...w,children:_jsxruntime.jsx.call(void 0, _chunk3GKKDE55cjs.a.Provider,{value:{direction:N},children:L})})})]})});F.displayName=c;exports.a = F;
4
+ //# sourceMappingURL=chunk-HOTNDRL4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-4HYVBOWY.cjs","../src/components/DescriptionList/DescriptionList.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","DescriptionList","forwardRef","props","ref","className","style","heading","headingElement","helperText","trailingContent","children","direction","validationText","validationStatus","width","maxWidth","minWidth","listProps","extractProps","marginPropDefs","containerProps","sectionHeaderProps","jsxs","Box","cn","jsx","SectionHeader","Flex"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAoC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAvS,+CAwDrB,IA5CAA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAkBC,+BAAAA,CAC5BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAahB,CAAOiB,mBAAc,CAAA,CAEhCC,CAAAA,CAAiB,CAAE,KAAA,CAAAf,CAAAA,CAAO,KAAA,CAAAS,CAAAA,CAAO,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAS,CAAA,CAEpDK,CAAAA,CAAqB,CACzB,OAAA,CAAAf,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAG,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEA,OACES,8BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAG1B,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGsB,CAAAA,CAEH,QAAA,CAAA,CAAAd,CAAAA,CAAUmB,6BAAAA,mBAACC,CAAA,CAAe,GAAGL,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACvDI,6BAAAA,mBAACE,CAAA,CAAK,OAAA,CAAO,CAAA,CAAA,CAAC,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-4HYVBOWY.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\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 { SectionHeader } from '../SectionHeader/SectionHeader';\nimport type { DescriptionListProps } from './DescriptionList.props';\nimport { DescriptionListContext } from './DescriptionList.context';\nimport { Flex } from '../Flex/Flex';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'DescriptionList';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype DescriptionListElement = ComponentRef<'dl'>;\n\n/**\n * Use DescriptionList to present pairs of related information together, such\n * as contact details or account information. Wrap any number of\n * DescriptionListItem components, which render as `dt`/`dd` pairs inside a\n * semantic `dl` element.\n *\n * @summary A list for presenting pairs of related information as terms and descriptions.\n */\nexport const DescriptionList = forwardRef<DescriptionListElement, DescriptionListProps>(\n (props, ref) => {\n const {\n className,\n style,\n heading,\n headingElement,\n helperText,\n trailingContent,\n children,\n direction,\n validationText,\n validationStatus,\n width,\n maxWidth,\n minWidth,\n ...listProps\n } = extractProps(props, marginPropDefs);\n\n const containerProps = { style, width, maxWidth, minWidth };\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n return (\n <Box\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...containerProps}\n >\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <Flex asChild className={`${componentClassName}Container`} role=\"list\">\n <dl ref={ref} role=\"list\" {...listProps}>\n <DescriptionListContext.Provider value={{ direction }}>\n {children}\n </DescriptionListContext.Provider>\n </dl>\n </Flex>\n </Box>\n );\n }\n);\n\nDescriptionList.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-HOTNDRL4.cjs","../src/components/DescriptionList/DescriptionList.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","DescriptionList","forwardRef","props","ref","className","style","heading","headingElement","helperText","trailingContent","children","direction","validationText","validationStatus","width","maxWidth","minWidth","listProps","extractProps","marginPropDefs","containerProps","sectionHeaderProps","jsxs","Box","cn","jsx","SectionHeader","Flex"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAoC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAvS,+CAwDrB,IA5CAA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAkBC,+BAAAA,CAC5BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAahB,CAAOiB,mBAAc,CAAA,CAEhCC,CAAAA,CAAiB,CAAE,KAAA,CAAAf,CAAAA,CAAO,KAAA,CAAAS,CAAAA,CAAO,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAS,CAAA,CAEpDK,CAAAA,CAAqB,CACzB,OAAA,CAAAf,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAG,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEA,OACES,8BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAG1B,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGsB,CAAAA,CAEH,QAAA,CAAA,CAAAd,CAAAA,CAAUmB,6BAAAA,mBAACC,CAAA,CAAe,GAAGL,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACvDI,6BAAAA,mBAACE,CAAA,CAAK,OAAA,CAAO,CAAA,CAAA,CAAC,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-HOTNDRL4.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\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 { SectionHeader } from '../SectionHeader/SectionHeader';\nimport type { DescriptionListProps } from './DescriptionList.props';\nimport { DescriptionListContext } from './DescriptionList.context';\nimport { Flex } from '../Flex/Flex';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'DescriptionList';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype DescriptionListElement = ComponentRef<'dl'>;\n\n/**\n * Use DescriptionList to present pairs of related information together, such\n * as contact details or account information. Wrap any number of\n * DescriptionListItem components, which render as `dt`/`dd` pairs inside a\n * semantic `dl` element.\n *\n * @summary A list for presenting pairs of related information as terms and descriptions.\n */\nexport const DescriptionList = forwardRef<DescriptionListElement, DescriptionListProps>(\n (props, ref) => {\n const {\n className,\n style,\n heading,\n headingElement,\n helperText,\n trailingContent,\n children,\n direction,\n validationText,\n validationStatus,\n width,\n maxWidth,\n minWidth,\n ...listProps\n } = extractProps(props, marginPropDefs);\n\n const containerProps = { style, width, maxWidth, minWidth };\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n return (\n <Box\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...containerProps}\n >\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <Flex asChild className={`${componentClassName}Container`} role=\"list\">\n <dl ref={ref} role=\"list\" {...listProps}>\n <DescriptionListContext.Provider value={{ direction }}>\n {children}\n </DescriptionListContext.Provider>\n </dl>\n </Flex>\n </Box>\n );\n }\n);\n\nDescriptionList.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as e}from"./chunk-J3AJBV4B.js";import{b as t}from"./chunk-PDEVCIQ3.js";import{forwardRef as r}from"react";import{Slot as m}from"radix-ui";import{jsx as l}from"react/jsx-runtime";var a="VisuallyHidden",i=t(a),f=r(({className:n,asChild:s,children:o,...p},d)=>l(m.Root,{ref:d,className:e(i,n),"data-visually-hidden":"","data-testid":i,...p,children:s?o:l("span",{children:o})}));f.displayName=a;export{f as a};
4
+ //# sourceMappingURL=chunk-HVAVRK6R.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/VisuallyHidden/VisuallyHidden.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { Slot } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VisuallyHiddenProps } from './VisuallyHidden.props';\n\nconst COMPONENT_NAME = 'VisuallyHidden';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype VisuallyHiddenElement = ComponentRef<'span'>;\n\n/**\n * Use VisuallyHidden to hide content visually while keeping it available to\n * screen readers — for example, extra context for an icon-only control.\n * It renders a `span` element by default.\n *\n * @summary Hides content visually while keeping it accessible to screen readers.\n */\nexport const VisuallyHidden = forwardRef<VisuallyHiddenElement, VisuallyHiddenProps>(\n ({ className, asChild, children, ...props }, ref) => {\n return (\n <Slot.Root\n ref={ref}\n className={cn(componentClassName, className)}\n data-visually-hidden=\"\"\n data-testid={componentClassName}\n {...props}\n >\n {asChild ? children : <span>{children}</span>}\n </Slot.Root>\n );\n }\n);\n\nVisuallyHidden.displayName = COMPONENT_NAME;\n"],"mappings":";;gFAEA,OAAS,cAAAA,MAAkB,QAE3B,OAAS,QAAAC,MAAY,WA2BS,cAAAC,MAAA,oBAtB9B,IAAMC,EAAiB,iBACjBC,EAAqBC,EAAiBF,CAAc,EAW7CG,EAAiBC,EAC5B,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAEzCV,EAACW,EAAK,KAAL,CACC,IAAKD,EACL,UAAWE,EAAGV,EAAoBI,CAAS,EAC3C,uBAAqB,GACrB,cAAaJ,EACZ,GAAGO,EAEH,SAAAF,EAAUC,EAAWR,EAAC,QAAM,SAAAQ,EAAS,EACxC,CAGN,EAEAJ,EAAe,YAAcH","names":["forwardRef","Slot","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","VisuallyHidden","forwardRef","className","asChild","children","props","ref","Slot","cn"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as T}from"./chunk-ZL7L2WXW.js";import{a as y}from"./chunk-6RAPGVEG.js";import{a as b}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-7X24J4CX.js";import{a as x}from"./chunk-VKE2TXPE.js";import{a as c}from"./chunk-KGEVWEVL.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as f}from"./chunk-PDEVCIQ3.js";import{forwardRef as k}from"react";import{jsx as v}from"react/jsx-runtime";var P="TextInput",h=f(P),A=k((N,B)=>{let{className:F,validationStatus:d,validationText:t,label:E,labelVariant:O,helperText:r,children:g,id:w,disabled:e,readOnly:n,hideLabel:C,required:o,placeholder:D,"aria-describedby":V,...q}=c(N,b),{id:l,labelId:s,helperTextId:p,validationTextId:a}=I({providedId:w,prefix:"text-input"}),i=!n&&!e,M={id:l,labelId:s,helperTextId:p,validationTextId:a,label:E,labelVariant:O,helperText:r,validationText:i?t:void 0,validationStatus:i?d:void 0,hideLabel:C,required:o},m=i&&d==="invalid",S=x(V,r?p:void 0,i&&d!==void 0&&t!==void 0?a:void 0);return v(y,{className:u(h,F),"data-disabled":e?"":void 0,"data-testid":h,...M,children:v(T,{ref:B,spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:D,"aria-labelledby":s,"aria-describedby":S,"aria-invalid":m?!0:void 0,"aria-errormessage":m&&t!==void 0?a:void 0,...q,children:g})})});A.displayName=P;export{A as a};
4
- //# sourceMappingURL=chunk-ZGIMM7G5.js.map
3
+ import{a as y}from"./chunk-6RAPGVEG.js";import{a as T}from"./chunk-ZL7L2WXW.js";import{a as b}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-7X24J4CX.js";import{a as x}from"./chunk-VKE2TXPE.js";import{a as c}from"./chunk-KGEVWEVL.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as f}from"./chunk-PDEVCIQ3.js";import{forwardRef as k}from"react";import{jsx as v}from"react/jsx-runtime";var P="TextInput",h=f(P),A=k((N,B)=>{let{className:F,validationStatus:d,validationText:t,label:E,labelVariant:O,helperText:r,children:g,id:w,disabled:e,readOnly:n,hideLabel:C,required:o,placeholder:D,"aria-describedby":V,...q}=c(N,b),{id:l,labelId:s,helperTextId:p,validationTextId:a}=I({providedId:w,prefix:"text-input"}),i=!n&&!e,M={id:l,labelId:s,helperTextId:p,validationTextId:a,label:E,labelVariant:O,helperText:r,validationText:i?t:void 0,validationStatus:i?d:void 0,hideLabel:C,required:o},m=i&&d==="invalid",S=x(V,r?p:void 0,i&&d!==void 0&&t!==void 0?a:void 0);return v(y,{className:u(h,F),"data-disabled":e?"":void 0,"data-testid":h,...M,children:v(T,{ref:B,spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:D,"aria-labelledby":s,"aria-describedby":S,"aria-invalid":m?!0:void 0,"aria-errormessage":m&&t!==void 0?a:void 0,...q,children:g})})});A.displayName=P;export{A as a};
4
+ //# sourceMappingURL=chunk-JBSAZP3R.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as f}from"./chunk-DU2ODBWK.js";import{c as u}from"./chunk-HY32GRZP.js";import{a as c}from"./chunk-TMDOWN4M.js";import{a as p}from"./chunk-RXW6PYP7.js";import{a as n}from"./chunk-4MNQRAHO.js";import{a as b}from"./chunk-7X24J4CX.js";import{a as R}from"./chunk-VKE2TXPE.js";import{a as l}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as S}from"react";import{RadioGroup as x}from"radix-ui";import{jsx as o,jsxs as i}from"react/jsx-runtime";var T="RadioTile",I=e(T),U=S(({className:y,id:N,label:r,helperText:a,image:P,"aria-labelledby":t,"aria-describedby":v,badge:C,flex:G,flexBasis:h,flexShrink:B,flexGrow:E,disabled:H,...w},F)=>{let{id:g,labelId:d,helperTextId:m}=b({providedId:N,prefix:"radio"}),{hasGroupHelperText:M,"aria-describedby":O}=u(),s=!M&&a!==void 0;return o(p,{asChild:!0,"data-testid":I,...{flex:G,flexBasis:h,flexShrink:B,flexGrow:E},children:o(x.Item,{ref:F,className:l(I,y),...w,disabled:H,id:g,"aria-describedby":R(v,s?m:O),"aria-labelledby":t||(r?d:void 0),children:i("div",{className:e("RadioContainer"),children:[o("div",{className:e("RadioItem"),children:o(x.Indicator,{className:e("RadioIndicator")})}),i(n,{direction:"column",alignItems:"start",children:[i(f,{as:"span",id:d,disableUserSelect:!0,children:[P,r]}),s?o(c,{id:m,disableUserSelect:!0,children:a}):null,C]})]})})})});U.displayName=T;export{U as a};
4
- //# sourceMappingURL=chunk-OKW3ZZOB.js.map
3
+ import{a as f}from"./chunk-DU2ODBWK.js";import{c as u}from"./chunk-HY32GRZP.js";import{a as c}from"./chunk-TMDOWN4M.js";import{a as n}from"./chunk-4MNQRAHO.js";import{a as p}from"./chunk-RXW6PYP7.js";import{a as b}from"./chunk-7X24J4CX.js";import{a as R}from"./chunk-VKE2TXPE.js";import{a as l}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as S}from"react";import{RadioGroup as x}from"radix-ui";import{jsx as o,jsxs as i}from"react/jsx-runtime";var T="RadioTile",I=e(T),U=S(({className:y,id:N,label:r,helperText:a,image:P,"aria-labelledby":t,"aria-describedby":v,badge:C,flex:G,flexBasis:h,flexShrink:B,flexGrow:E,disabled:H,...w},F)=>{let{id:g,labelId:d,helperTextId:m}=b({providedId:N,prefix:"radio"}),{hasGroupHelperText:M,"aria-describedby":O}=u(),s=!M&&a!==void 0;return o(p,{asChild:!0,"data-testid":I,...{flex:G,flexBasis:h,flexShrink:B,flexGrow:E},children:o(x.Item,{ref:F,className:l(I,y),...w,disabled:H,id:g,"aria-describedby":R(v,s?m:O),"aria-labelledby":t||(r?d:void 0),children:i("div",{className:e("RadioContainer"),children:[o("div",{className:e("RadioItem"),children:o(x.Indicator,{className:e("RadioIndicator")})}),i(n,{direction:"column",alignItems:"start",children:[i(f,{as:"span",id:d,disableUserSelect:!0,children:[P,r]}),s?o(c,{id:m,disableUserSelect:!0,children:a}):null,C]})]})})})});U.displayName=T;export{U as a};
4
+ //# sourceMappingURL=chunk-JIJWDAAU.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
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 _jsxruntime = require('react/jsx-runtime');var d="ExpandableCardGroup",n=_chunk4Q432K4Wcjs.b.call(void 0, d),h= exports.a =_react.forwardRef.call(void 0, (m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=_chunkZPJNQBTNcjs.a.call(void 0, m,_chunkOB7O3UFLcjs.a);return _jsxruntime.jsxs.call(void 0, "div",{ref:i,className:_chunkONNSZMWFcjs.a.call(void 0, n,l),"data-testid":n,...c,children:[e?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;exports.a = h;
4
- //# sourceMappingURL=chunk-ZBLAL2BN.cjs.map
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 _jsxruntime = require('react/jsx-runtime');var d="ExpandableCardGroup",n=_chunk4Q432K4Wcjs.b.call(void 0, d),h= exports.a =_react.forwardRef.call(void 0, (m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=_chunkZPJNQBTNcjs.a.call(void 0, m,_chunkOB7O3UFLcjs.a);return _jsxruntime.jsxs.call(void 0, "div",{ref:i,className:_chunkONNSZMWFcjs.a.call(void 0, n,l),"data-testid":n,...c,children:[e?_jsxruntime.jsx.call(void 0, _chunkGN2MUYQRcjs.a,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;exports.a = h;
4
+ //# sourceMappingURL=chunk-JXPGBAYH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-ZBLAL2BN.cjs","../src/components/ExpandableCard/ExpandableCardGroup.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ExpandableCardGroup","forwardRef","props","ref","className","heading","headingElement","helperText","trailingContent","children","restProps","extractProps","marginPropDefs","jsxs","cn","jsx","SectionHeader"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,8BCA5K,+CAiCrB,IAxBAA,CAAAA,CAAiB,qBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAU7CC,CAAAA,aAAsBC,+BAAAA,CAChCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,IAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaT,CAAOU,mBAAc,CAAA,CAEtC,OACEC,8BAAAA,KAAC,CAAA,CACC,GAAA,CAAKV,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAGhB,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGY,CAAAA,CAEH,QAAA,CAAA,CAAAL,CAAAA,CACCU,6BAAAA,mBAACC,CAAA,CACC,OAAA,CAASX,CAAAA,CACT,cAAA,CAAgBC,CAAAA,CAChB,UAAA,CAAYC,CAAAA,CACZ,eAAA,CAAiBC,CAAAA,CACnB,CAAA,CACE,IAAA,CACHC,CAAAA,CAAAA,CACH,CAEJ,CACF,CAAA,CAEAT,CAAAA,CAAoB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-ZBLAL2BN.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\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 type { ExpandableCardGroupProps } from './ExpandableCardGroup.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst COMPONENT_NAME = 'ExpandableCardGroup';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ExpandableCardGroupElement = ComponentRef<'div'>;\n\n/**\n * Use ExpandableCardGroup to wrap a set of related `ExpandableCard`\n * components under a shared, optional heading and helper text.\n *\n * @summary Groups related ExpandableCard components under a shared heading.\n */\nexport const ExpandableCardGroup = forwardRef<ExpandableCardGroupElement, ExpandableCardGroupProps>(\n (props, ref) => {\n const {\n className,\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n children,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...restProps}\n >\n {heading ? (\n <SectionHeader\n heading={heading}\n headingElement={headingElement}\n helperText={helperText}\n trailingContent={trailingContent}\n />\n ) : null}\n {children}\n </div>\n );\n }\n);\n\nExpandableCardGroup.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-JXPGBAYH.cjs","../src/components/ExpandableCard/ExpandableCardGroup.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ExpandableCardGroup","forwardRef","props","ref","className","heading","headingElement","helperText","trailingContent","children","restProps","extractProps","marginPropDefs","jsxs","cn","jsx","SectionHeader"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,8BCA5K,+CAiCrB,IAxBAA,CAAAA,CAAiB,qBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAU7CC,CAAAA,aAAsBC,+BAAAA,CAChCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,IAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaT,CAAOU,mBAAc,CAAA,CAEtC,OACEC,8BAAAA,KAAC,CAAA,CACC,GAAA,CAAKV,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAGhB,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGY,CAAAA,CAEH,QAAA,CAAA,CAAAL,CAAAA,CACCU,6BAAAA,mBAACC,CAAA,CACC,OAAA,CAASX,CAAAA,CACT,cAAA,CAAgBC,CAAAA,CAChB,UAAA,CAAYC,CAAAA,CACZ,eAAA,CAAiBC,CAAAA,CACnB,CAAA,CACE,IAAA,CACHC,CAAAA,CAAAA,CACH,CAEJ,CACF,CAAA,CAEAT,CAAAA,CAAoB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-JXPGBAYH.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\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 type { ExpandableCardGroupProps } from './ExpandableCardGroup.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst COMPONENT_NAME = 'ExpandableCardGroup';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ExpandableCardGroupElement = ComponentRef<'div'>;\n\n/**\n * Use ExpandableCardGroup to wrap a set of related `ExpandableCard`\n * components under a shared, optional heading and helper text.\n *\n * @summary Groups related ExpandableCard components under a shared heading.\n */\nexport const ExpandableCardGroup = forwardRef<ExpandableCardGroupElement, ExpandableCardGroupProps>(\n (props, ref) => {\n const {\n className,\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n children,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...restProps}\n >\n {heading ? (\n <SectionHeader\n heading={heading}\n headingElement={headingElement}\n helperText={helperText}\n trailingContent={trailingContent}\n />\n ) : null}\n {children}\n </div>\n );\n }\n);\n\nExpandableCardGroup.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
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
3
+ var _chunkQIOH4DVUcjs = require('./chunk-QIOH4DVU.cjs');var _chunkZRZL5ETLcjs = require('./chunk-ZRZL5ETL.cjs');var _chunk4TQZRZEMcjs = require('./chunk-4TQZRZEM.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-KCIN3NYN.cjs.map
@@ -1 +1 @@
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
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-KCIN3NYN.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-KCIN3NYN.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 v}from"./chunk-ZGIMM7G5.js";import{a as T}from"./chunk-CQ3DFX5W.js";import{a as B}from"./chunk-TJHI42VN.js";import{a as E}from"./chunk-J3AJBV4B.js";import{b as R}from"./chunk-PDEVCIQ3.js";import{forwardRef as A,useState as _,useRef as D,useEffect as q}from"react";import{useMergedRefs as F}from"@base-ui/utils/useMergedRefs";import{jsx as g}from"react/jsx-runtime";var N="CurrencyInput",M=R(N),G=A(({className:S,disabled:V,value:d,onChange:y,placeholder:b="0.00",disableGroupSeparators:C,defaultValue:h,...k},z)=>{let[H,L]=_(typeof h=="string"?h:""),s=D(null),r=D(null),O=F(z,s),I=d!==void 0,x=I?String(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 q(()=>{s&&typeof s=="object"&&s.current&&r.current!==null&&(s.current.setSelectionRange(r.current,r.current),r.current=null)}),g(v,{ref:O,className:E(M,S),type:"text",inputMode:"decimal",disabled:V,value:c(x),onChange:j,placeholder:b,"data-testid":M,...k,children:g(B,{placement:"prefix",children:g(T,{size:"3xl",children:"\xA3"})})})});G.displayName=N;export{G as a};
4
- //# sourceMappingURL=chunk-XNDPIHAF.js.map
3
+ import{a as v}from"./chunk-JBSAZP3R.js";import{a as T}from"./chunk-CQ3DFX5W.js";import{a as B}from"./chunk-TJHI42VN.js";import{a as E}from"./chunk-J3AJBV4B.js";import{b as R}from"./chunk-PDEVCIQ3.js";import{forwardRef as A,useState as _,useRef as D,useEffect as q}from"react";import{useMergedRefs as F}from"@base-ui/utils/useMergedRefs";import{jsx as g}from"react/jsx-runtime";var N="CurrencyInput",M=R(N),G=A(({className:S,disabled:V,value:d,onChange:y,placeholder:b="0.00",disableGroupSeparators:C,defaultValue:h,...k},z)=>{let[H,L]=_(typeof h=="string"?h:""),s=D(null),r=D(null),O=F(z,s),I=d!==void 0,x=I?String(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 q(()=>{s&&typeof s=="object"&&s.current&&r.current!==null&&(s.current.setSelectionRange(r.current,r.current),r.current=null)}),g(v,{ref:O,className:E(M,S),type:"text",inputMode:"decimal",disabled:V,value:c(x),onChange:j,placeholder:b,"data-testid":M,...k,children:g(B,{placement:"prefix",children:g(T,{size:"3xl",children:"\xA3"})})})});G.displayName=N;export{G as a};
4
+ //# sourceMappingURL=chunk-KOSD5OKA.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 _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
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
@@ -1 +1 @@
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,CAAOC,CAAAA,CAAAA,EAAQ,CACrE,GAAM,CACJ,EAAA,CAAIC,CAAAA,CACJ,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,KAAA,CAAA,CACd,OAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAcC,CAAAA,CACd,iBAAA,CAAmBC,CAAAA,CACnB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAanB,CAAOoB,mBAAc,CAAA,CAEhCC,CAAAA,CAAqB,CACzB,OAAA,CAAAb,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEM,CAAE,EAAA,CAAAS,CAAAA,CAAI,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAtB,CAAAA,CAAY,MAAA,CAAQ,MAAO,CAAC,CAAA,CAKvDuB,CAAAA,CAAiB,CACrB,YAAA,CAAcT,CAAAA,CACd,iBAAA,kBAJ0BC,CAAAA,SAAAA,CADT,CAAA,CAAQT,CAAAA,EACkC,CAACQ,CAAAA,CAAYO,CAAAA,CAAU,KAAA,CAAA,GAAA,CAKlF,mBAAA,CAAqBR,CAAAA,CAAc,EAAA,CAAK,KAAA,CAAA,CACxC,yBAAA,CAA2BR,CAC7B,CAAA,CAEA,OACEmB,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,CAAG/B,CAAoBQ,CAAS,CAAA,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
+ {"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,EAAA,CAAIC,CAAAA,CACJ,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,KAAA,CAAA,CACd,OAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAcC,CAAAA,CACd,iBAAA,CAAmBC,CAAAA,CACnB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAanB,CAAOoB,mBAAc,CAAA,CAEhCC,CAAAA,CAAqB,CACzB,OAAA,CAAAb,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEM,CAAE,EAAA,CAAAS,CAAAA,CAAI,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAtB,CAAAA,CAAY,MAAA,CAAQ,MAAO,CAAC,CAAA,CAKvDuB,CAAAA,CAAiB,CACrB,YAAA,CAAcT,CAAAA,CACd,iBAAA,kBAJ0BC,CAAAA,SAAAA,CADT,CAAA,CAAQT,CAAAA,EACkC,CAACQ,CAAAA,CAAYO,CAAAA,CAAU,KAAA,CAAA,GAAA,CAKlF,mBAAA,CAAqBR,CAAAA,CAAc,EAAA,CAAK,KAAA,CAAA,CACxC,yBAAA,CAA2BR,CAC7B,CAAA,CAEA,OACEmB,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,CAAG/B,CAAoBQ,CAAS,CAAA,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-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,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkX6536YYGcjs = require('./chunk-X6536YYG.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkF54LCSZKcjs = require('./chunk-F54LCSZK.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.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 T="RadioTile",I=_chunk4Q432K4Wcjs.b.call(void 0, T),U= exports.a =_react.forwardRef.call(void 0, ({className:y,id:N,label:r,helperText:a,image:P,"aria-labelledby":t,"aria-describedby":v,badge:C,flex:G,flexBasis:h,flexShrink:B,flexGrow:E,disabled:H,...w},F)=>{let{id:g,labelId:d,helperTextId:m}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:N,prefix:"radio"}),{hasGroupHelperText:M,"aria-describedby":O}=_chunkWSD52THLcjs.c.call(void 0, ),s=!M&&a!==void 0;return _jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,"data-testid":I,...{flex:G,flexBasis:h,flexShrink:B,flexGrow:E},children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Item,{ref:F,className:_chunkONNSZMWFcjs.a.call(void 0, I,y),...w,disabled:H,id:g,"aria-describedby":_chunkHIF6HKZ3cjs.a.call(void 0, v,s?m:O),"aria-labelledby":t||(r?d:void 0),children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioContainer"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioItem"),children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Indicator,{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioIndicator")})}),_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",alignItems:"start",children:[_jsxruntime.jsxs.call(void 0, _chunkX6536YYGcjs.a,{as:"span",id:d,disableUserSelect:!0,children:[P,r]}),s?_jsxruntime.jsx.call(void 0, _chunkF54LCSZKcjs.a,{id:m,disableUserSelect:!0,children:a}):null,C]})]})})})});U.displayName=T;exports.a = U;
4
- //# sourceMappingURL=chunk-6CBHZ5JZ.cjs.map
3
+ var _chunkX6536YYGcjs = require('./chunk-X6536YYG.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkF54LCSZKcjs = require('./chunk-F54LCSZK.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.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 T="RadioTile",I=_chunk4Q432K4Wcjs.b.call(void 0, T),U= exports.a =_react.forwardRef.call(void 0, ({className:y,id:N,label:r,helperText:a,image:P,"aria-labelledby":t,"aria-describedby":v,badge:C,flex:G,flexBasis:h,flexShrink:B,flexGrow:E,disabled:H,...w},F)=>{let{id:g,labelId:d,helperTextId:m}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:N,prefix:"radio"}),{hasGroupHelperText:M,"aria-describedby":O}=_chunkWSD52THLcjs.c.call(void 0, ),s=!M&&a!==void 0;return _jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,"data-testid":I,...{flex:G,flexBasis:h,flexShrink:B,flexGrow:E},children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Item,{ref:F,className:_chunkONNSZMWFcjs.a.call(void 0, I,y),...w,disabled:H,id:g,"aria-describedby":_chunkHIF6HKZ3cjs.a.call(void 0, v,s?m:O),"aria-labelledby":t||(r?d:void 0),children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioContainer"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioItem"),children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Indicator,{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioIndicator")})}),_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",alignItems:"start",children:[_jsxruntime.jsxs.call(void 0, _chunkX6536YYGcjs.a,{as:"span",id:d,disableUserSelect:!0,children:[P,r]}),s?_jsxruntime.jsx.call(void 0, _chunkF54LCSZKcjs.a,{id:m,disableUserSelect:!0,children:a}):null,C]})]})})})});U.displayName=T;exports.a = U;
4
+ //# sourceMappingURL=chunk-MMQDPLMG.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6CBHZ5JZ.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioTile","forwardRef","className","providedId","label","helperText","image","ariaLabelledby","consumerAriaDescribedby","badge","flex","flexBasis","flexShrink","flexGrow","disabled","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","jsx","Box","RadioGroupPrimitive","cn","mergeIds","jsxs","Flex","Label","HelperText"],"mappings":"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","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6CBHZ5JZ.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { RadioTileProps } from './RadioTile.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Flex } from '../Flex/Flex';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'RadioTile';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype RadioTileElement = ComponentRef<'button'>;\n\n/**\n * Use RadioTile within a RadioGroup as the default way to present a grouped\n * set of selectable options — it offers a larger, tile-style target than\n * Radio. Use RadioCard instead when the option needs to display additional\n * child content, or Radio for a plain, compact radio button.\n *\n * @summary A tile-styled radio option for use within RadioGroup.\n */\nexport const RadioTile = forwardRef<RadioTileElement, RadioTileProps>(\n (\n {\n className,\n id: providedId,\n label,\n helperText,\n image,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': consumerAriaDescribedby,\n badge,\n flex,\n flexBasis,\n flexShrink,\n flexGrow,\n disabled,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId } = useIds({ providedId, prefix: 'radio' });\n const { hasGroupHelperText, 'aria-describedby': ariaDescribedby } = useFormGroupBase();\n const showHelperText = Boolean(!hasGroupHelperText && helperText !== undefined);\n const flexItemProps = { flex, flexBasis, flexShrink, flexGrow };\n return (\n <Box asChild data-testid={componentClassName} {...flexItemProps}>\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n {...props}\n disabled={disabled}\n id={id}\n aria-describedby={mergeIds(\n consumerAriaDescribedby,\n showHelperText ? helperTextId : ariaDescribedby\n )}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className={withGlobalPrefix('RadioContainer')}>\n <div className={withGlobalPrefix('RadioItem')}>\n <RadioGroupPrimitive.Indicator className={withGlobalPrefix('RadioIndicator')} />\n </div>\n <Flex direction=\"column\" alignItems=\"start\">\n <Label as=\"span\" id={labelId} disableUserSelect>\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n {badge}\n </Flex>\n </div>\n </RadioGroupPrimitive.Item>\n </Box>\n );\n }\n);\n\nRadioTile.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-MMQDPLMG.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioTile","forwardRef","className","providedId","label","helperText","image","ariaLabelledby","consumerAriaDescribedby","badge","flex","flexBasis","flexShrink","flexGrow","disabled","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","jsx","Box","RadioGroupPrimitive","cn","mergeIds","jsxs","Flex","Label","HelperText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCArV,mCAKuB,+CA8DpC,IArDRA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAYC,+BAAAA,CAErB,CACE,SAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,kBAAA,CAAoBC,CAAAA,CACpB,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,GAAM,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAjB,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAkB,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBhB,CAAAA,GAAe,KAAA,CAAA,CAErE,OACEoB,6BAAAA,mBAACC,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,aAAA,CAAa5B,CAAAA,CAAqB,GAF3B,CAAE,IAAA,CAAAY,CAAAA,CAAM,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAY,QAAA,CAAAC,CAAS,CAAA,CAG1D,QAAA,CAAAY,6BAAAA,mBAACE,CAAoB,IAAA,CAApB,CACC,GAAA,CAAKX,CAAAA,CACL,SAAA,CAAWY,iCAAAA,CAAG9B,CAAoBI,CAAS,CAAA,CAC1C,GAAGa,CAAAA,CACJ,QAAA,CAAUD,CAAAA,CACV,EAAA,CAAIG,CAAAA,CACJ,kBAAA,CAAkBY,iCAAAA,CAChBrB,CACAgB,CAAAA,CAAiBL,CAAAA,CAAeG,CAClC,CAAA,CACA,iBAAA,CAAiBf,CAAAA,EAAAA,CAAkCH,CAAAA,CAAQc,CAAAA,CAAU,KAAA,CAAA,CAAA,CAErE,QAAA,CAAAY,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW/B,iCAAAA,gBAAiC,CAAA,CAC/C,QAAA,CAAA,CAAA0B,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW1B,iCAAAA,WAA4B,CAAA,CAC1C,QAAA,CAAA0B,6BAAAA,mBAACE,CAAoB,SAAA,CAApB,CAA8B,SAAA,CAAW5B,iCAAAA,gBAAiC,CAAA,CAAG,CAAA,CAChF,CAAA,CACA+B,8BAAAA,mBAACC,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,UAAA,CAAW,OAAA,CAClC,QAAA,CAAA,CAAAD,8BAAAA,mBAACE,CAAA,CAAM,EAAA,CAAG,MAAA,CAAO,EAAA,CAAId,CAAAA,CAAS,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAA,CAAAZ,CAAAA,CACAF,CAAAA,CAAAA,CACH,CAAA,CACCoB,CAAAA,CACCC,6BAAAA,mBAACQ,CAAA,CAAW,EAAA,CAAId,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAAd,CAAAA,CACH,CAAA,CACE,IAAA,CACHI,CAAAA,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ,CACF,CAAA,CAEAT,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-MMQDPLMG.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { RadioTileProps } from './RadioTile.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Flex } from '../Flex/Flex';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'RadioTile';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype RadioTileElement = ComponentRef<'button'>;\n\n/**\n * Use RadioTile within a RadioGroup as the default way to present a grouped\n * set of selectable options — it offers a larger, tile-style target than\n * Radio. Use RadioCard instead when the option needs to display additional\n * child content, or Radio for a plain, compact radio button.\n *\n * @summary A tile-styled radio option for use within RadioGroup.\n */\nexport const RadioTile = forwardRef<RadioTileElement, RadioTileProps>(\n (\n {\n className,\n id: providedId,\n label,\n helperText,\n image,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': consumerAriaDescribedby,\n badge,\n flex,\n flexBasis,\n flexShrink,\n flexGrow,\n disabled,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId } = useIds({ providedId, prefix: 'radio' });\n const { hasGroupHelperText, 'aria-describedby': ariaDescribedby } = useFormGroupBase();\n const showHelperText = Boolean(!hasGroupHelperText && helperText !== undefined);\n const flexItemProps = { flex, flexBasis, flexShrink, flexGrow };\n return (\n <Box asChild data-testid={componentClassName} {...flexItemProps}>\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n {...props}\n disabled={disabled}\n id={id}\n aria-describedby={mergeIds(\n consumerAriaDescribedby,\n showHelperText ? helperTextId : ariaDescribedby\n )}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className={withGlobalPrefix('RadioContainer')}>\n <div className={withGlobalPrefix('RadioItem')}>\n <RadioGroupPrimitive.Indicator className={withGlobalPrefix('RadioIndicator')} />\n </div>\n <Flex direction=\"column\" alignItems=\"start\">\n <Label as=\"span\" id={labelId} disableUserSelect>\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n {badge}\n </Flex>\n </div>\n </RadioGroupPrimitive.Item>\n </Box>\n );\n }\n);\n\nRadioTile.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as g}from"./chunk-2WWK2BTL.js";import{a as B}from"./chunk-DNBDJEL3.js";import{a as v}from"./chunk-NLRXPN7J.js";import{a as u}from"./chunk-OPPG3NOC.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as d}from"./chunk-32MOX6DL.js";import{a as f}from"./chunk-KGEVWEVL.js";import{a as n}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{forwardRef as R}from"react";import{jsx as b,jsxs as I}from"react/jsx-runtime";var N="ProgressBar",x=c(N),D=R((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}=f(h,g,u),{labelId:l}=P({prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=d(a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return I("div",{ref:y,className:n(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"?b(v,{...p}):null,o==="circular"?b(B,{...p}):null]})});D.displayName=N;export{D as a};
4
- //# sourceMappingURL=chunk-2OHAFTMO.js.map
3
+ import{a as B}from"./chunk-DNBDJEL3.js";import{a as v}from"./chunk-NLRXPN7J.js";import{a as g}from"./chunk-2WWK2BTL.js";import{a as u}from"./chunk-OPPG3NOC.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as d}from"./chunk-32MOX6DL.js";import{a as f}from"./chunk-KGEVWEVL.js";import{a as n}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{forwardRef as R}from"react";import{jsx as b,jsxs as I}from"react/jsx-runtime";var N="ProgressBar",x=c(N),D=R((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}=f(h,g,u),{labelId:l}=P({prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=d(a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return I("div",{ref:y,className:n(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"?b(v,{...p}):null,o==="circular"?b(B,{...p}):null]})});D.displayName=N;export{D as a};
4
+ //# sourceMappingURL=chunk-NBLUIVPS.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as l}from"./chunk-NMFPRBPK.js";import{a}from"./chunk-T36G4P7P.js";import{a as p}from"./chunk-RXW6PYP7.js";import{a as m}from"./chunk-4MNQRAHO.js";import{a as n}from"./chunk-OPPG3NOC.js";import{a as s}from"./chunk-KGEVWEVL.js";import{a as e}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as B}from"react";import{jsx as t,jsxs as H}from"react/jsx-runtime";var c="DescriptionList",o=r(c),F=B((d,f)=>{let{className:x,style:P,heading:i,headingElement:D,helperText:h,trailingContent:C,children:L,direction:N,validationText:v,validationStatus:y,width:E,maxWidth:g,minWidth:u,...w}=s(d,n),R={style:P,width:E,maxWidth:g,minWidth:u},T={heading:i,headingElement:D,helperText:h,trailingContent:C,validationText:v,validationStatus:y};return H(p,{className:e(o,x),"data-testid":o,...R,children:[i?t(a,{...T}):null,t(m,{asChild:!0,className:`${o}Container`,role:"list",children:t("dl",{ref:f,role:"list",...w,children:t(l.Provider,{value:{direction:N},children:L})})})]})});F.displayName=c;export{F as a};
4
- //# sourceMappingURL=chunk-XC27XB43.js.map
3
+ import{a as l}from"./chunk-NMFPRBPK.js";import{a}from"./chunk-PCFN2SEL.js";import{a as m}from"./chunk-4MNQRAHO.js";import{a as p}from"./chunk-RXW6PYP7.js";import{a as n}from"./chunk-OPPG3NOC.js";import{a as s}from"./chunk-KGEVWEVL.js";import{a as e}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as B}from"react";import{jsx as t,jsxs as H}from"react/jsx-runtime";var c="DescriptionList",o=r(c),F=B((d,f)=>{let{className:x,style:P,heading:i,headingElement:D,helperText:h,trailingContent:C,children:L,direction:N,validationText:v,validationStatus:y,width:E,maxWidth:g,minWidth:u,...w}=s(d,n),R={style:P,width:E,maxWidth:g,minWidth:u},T={heading:i,headingElement:D,helperText:h,trailingContent:C,validationText:v,validationStatus:y};return H(p,{className:e(o,x),"data-testid":o,...R,children:[i?t(a,{...T}):null,t(m,{asChild:!0,className:`${o}Container`,role:"list",children:t("dl",{ref:f,role:"list",...w,children:t(l.Provider,{value:{direction:N},children:L})})})]})});F.displayName=c;export{F as a};
4
+ //# sourceMappingURL=chunk-NCNYRYLC.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as y}from"./chunk-ZL7L2WXW.js";import{a as T}from"./chunk-6RAPGVEG.js";import{a as b}from"./chunk-OPPG3NOC.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as v}from"./chunk-VKE2TXPE.js";import{a as I}from"./chunk-KGEVWEVL.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{unstable_OneTimePasswordField as o}from"radix-ui";import{forwardRef as A}from"react";import{jsx as t,jsxs as H}from"react/jsx-runtime";var N="VerificationInput",d=c(N),G=A((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}=I(O,b),{id:C,labelId:m,helperTextId:p,validationTextId:r}=P({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},_=v(E,l?p:void 0,e&&i!==void 0&&n!==void 0?r:void 0),f=e&&i==="invalid";return t(T,{className:u(d,x),"data-disabled":a?"":void 0,"data-testid":d,...D,children:H(o.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)=>t(o.Input,{asChild:!0,children:t(y,{})},g)),t(o.HiddenInput,{ref:V})]})})});G.displayName=N;export{G as a};
4
- //# sourceMappingURL=chunk-6Z7AT6VB.js.map
3
+ import{a as T}from"./chunk-6RAPGVEG.js";import{a as y}from"./chunk-ZL7L2WXW.js";import{a as b}from"./chunk-OPPG3NOC.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as v}from"./chunk-VKE2TXPE.js";import{a as I}from"./chunk-KGEVWEVL.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{unstable_OneTimePasswordField as o}from"radix-ui";import{forwardRef as A}from"react";import{jsx as t,jsxs as H}from"react/jsx-runtime";var N="VerificationInput",d=c(N),G=A((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}=I(O,b),{id:C,labelId:m,helperTextId:p,validationTextId:r}=P({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},_=v(E,l?p:void 0,e&&i!==void 0&&n!==void 0?r:void 0),f=e&&i==="invalid";return t(T,{className:u(d,x),"data-disabled":a?"":void 0,"data-testid":d,...D,children:H(o.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)=>t(o.Input,{asChild:!0,children:t(y,{})},g)),t(o.HiddenInput,{ref:V})]})})});G.displayName=N;export{G as a};
4
+ //# sourceMappingURL=chunk-NN6N7GOI.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
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
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
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
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
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
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as c}from"./chunk-ZGIMM7G5.js";import{a as o}from"./chunk-TJHI42VN.js";import{a as l}from"./chunk-QNITBIE4.js";import{a as s}from"./chunk-DAEIJDP7.js";import{a as m}from"./chunk-7X24J4CX.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as i}from"./chunk-PDEVCIQ3.js";import{CloseSmallIcon as T,SearchMediumIcon as R}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as P,useRef as g,useCallback as C}from"react";import{useMergedRefs as H}from"@base-ui/utils/useMergedRefs";import{jsx as t,jsxs as k}from"react/jsx-runtime";var a="SearchInput",f=i(a),L=P(({className:I,disabled:p,value:r,onClear:n,loading:d,hideLabel:h=!0,helperText:S,id:y,...x},b)=>{let e=g(null),E=H(b,e),M=C(N=>{typeof n!="function"||N.button!==0||(n(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,n]),{id:B}=m({providedId:y,prefix:"search-input"});return k(c,{ref:E,className:u(f,I),type:"search",enterKeyHint:"search",disabled:p,hideLabel:h,helperText:S,value:r,id:B,"data-testid":f,...x,children:[t(o,{placement:"prefix",children:t(R,{})}),d?t(o,{placement:"suffix",children:t(s,{size:"xs",color:"primary"})}):null,n!==void 0&&r!==void 0&&String(r).length>0?t(o,{placement:"suffix",children:t(l,{type:"button",label:"clear search",onClick:M,disabled:p,children:t(T,{})})}):null]})});L.displayName=a;export{L as a};
4
- //# sourceMappingURL=chunk-AT4JEW4E.js.map
3
+ import{a as c}from"./chunk-JBSAZP3R.js";import{a as o}from"./chunk-TJHI42VN.js";import{a as l}from"./chunk-QNITBIE4.js";import{a as s}from"./chunk-DAEIJDP7.js";import{a as m}from"./chunk-7X24J4CX.js";import{a as u}from"./chunk-J3AJBV4B.js";import{b as i}from"./chunk-PDEVCIQ3.js";import{CloseSmallIcon as T,SearchMediumIcon as R}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as P,useRef as g,useCallback as C}from"react";import{useMergedRefs as H}from"@base-ui/utils/useMergedRefs";import{jsx as t,jsxs as k}from"react/jsx-runtime";var a="SearchInput",f=i(a),L=P(({className:I,disabled:p,value:r,onClear:n,loading:d,hideLabel:h=!0,helperText:S,id:y,...x},b)=>{let e=g(null),E=H(b,e),M=C(N=>{typeof n!="function"||N.button!==0||(n(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,n]),{id:B}=m({providedId:y,prefix:"search-input"});return k(c,{ref:E,className:u(f,I),type:"search",enterKeyHint:"search",disabled:p,hideLabel:h,helperText:S,value:r,id:B,"data-testid":f,...x,children:[t(o,{placement:"prefix",children:t(R,{})}),d?t(o,{placement:"suffix",children:t(s,{size:"xs",color:"primary"})}):null,n!==void 0&&r!==void 0&&String(r).length>0?t(o,{placement:"suffix",children:t(l,{type:"button",label:"clear search",onClick:M,disabled:p,children:t(T,{})})}):null]})});L.displayName=a;export{L as a};
4
+ //# sourceMappingURL=chunk-OJHREKDB.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as p}from"./chunk-GI6ISM62.js";import{a as d}from"./chunk-ZAS7UCT3.js";import{a as l}from"./chunk-DAEIJDP7.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as s}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{a as m}from"./chunk-VCC5YQTQ.js";import{forwardRef as g}from"react";import{jsx as o,jsxs as v}from"react/jsx-runtime";var c="Button",t=a(c),h=g((f,u)=>{let{className:B,children:r,disabled:N,loading:e,asChild:n,...b}=i(f,d),P=e?m({asChild:n,children:r},C=>v("div",{className:`${t}Loading`,children:[o("div",{children:o(l,{size:"xs",currentColor:!0})}),o("span",{className:`${t}Hidden`,children:C})]})):r;return o(p,{ref:u,className:s(t,B),disabled:N||e,"aria-label":e?"Loading":void 0,"data-testid":t,asChild:n,...b,children:P})});h.displayName=c;export{h as a};
4
- //# sourceMappingURL=chunk-2RRGJCBC.js.map
3
+ import{a as d}from"./chunk-ZAS7UCT3.js";import{a as p}from"./chunk-GI6ISM62.js";import{a as l}from"./chunk-DAEIJDP7.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as s}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{a as m}from"./chunk-VCC5YQTQ.js";import{forwardRef as g}from"react";import{jsx as o,jsxs as v}from"react/jsx-runtime";var c="Button",t=a(c),h=g((f,u)=>{let{className:B,children:r,disabled:N,loading:e,asChild:n,...b}=i(f,d),P=e?m({asChild:n,children:r},C=>v("div",{className:`${t}Loading`,children:[o("div",{children:o(l,{size:"xs",currentColor:!0})}),o("span",{className:`${t}Hidden`,children:C})]})):r;return o(p,{ref:u,className:s(t,B),disabled:N||e,"aria-label":e?"Loading":void 0,"data-testid":t,asChild:n,...b,children:P})});h.displayName=c;export{h as a};
4
+ //# sourceMappingURL=chunk-OTXFBNCU.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as f}from"./chunk-VIUY3XJT.js";import{a as s}from"./chunk-TMDOWN4M.js";import{a as l}from"./chunk-ZSFO3ITI.js";import{a as d}from"./chunk-RXW6PYP7.js";import{a as p}from"./chunk-4MNQRAHO.js";import{a as m}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{forwardRef as y}from"react";import{jsx as e,jsxs as c}from"react/jsx-runtime";var H="SectionHeader",o=a(H),P=y(({className:x,heading:N,id:C,headingElement:E="div",helperText:t,trailingContent:n,validationText:r,validationStatus:i,direction:S,...u},T)=>{let g=i!==void 0&&r!==void 0;return c(p,{ref:T,className:m(o,x),direction:S,"data-testid":o,...u,children:[c(d,{className:`${o}Content`,children:[e(l,{asChild:!0,size:"md",id:C,children:e(E,{children:N})}),t?e(s,{children:t}):null,g?e(f,{status:i,children:r}):null]}),n?e("span",{className:`${o}TrailingContent`,children:n}):null]})});P.displayName=H;export{P as a};
4
- //# sourceMappingURL=chunk-T36G4P7P.js.map
3
+ import{a as f}from"./chunk-VIUY3XJT.js";import{a as s}from"./chunk-TMDOWN4M.js";import{a as l}from"./chunk-ZSFO3ITI.js";import{a as p}from"./chunk-4MNQRAHO.js";import{a as d}from"./chunk-RXW6PYP7.js";import{a as m}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{forwardRef as y}from"react";import{jsx as e,jsxs as c}from"react/jsx-runtime";var H="SectionHeader",o=a(H),P=y(({className:x,heading:N,id:C,headingElement:E="div",helperText:t,trailingContent:n,validationText:r,validationStatus:i,direction:S,...u},T)=>{let g=i!==void 0&&r!==void 0;return c(p,{ref:T,className:m(o,x),direction:S,"data-testid":o,...u,children:[c(d,{className:`${o}Content`,children:[e(l,{asChild:!0,size:"md",id:C,children:e(E,{children:N})}),t?e(s,{children:t}):null,g?e(f,{status:i,children:r}):null]}),n?e("span",{className:`${o}TrailingContent`,children:n}):null]})});P.displayName=H;export{P as a};
4
+ //# sourceMappingURL=chunk-PCFN2SEL.js.map