@utilitywarehouse/hearth-react 0.7.0 → 0.9.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 (179) hide show
  1. package/dist/chunk-2O7CWEQY.js +2 -0
  2. package/dist/chunk-2O7CWEQY.js.map +1 -0
  3. package/dist/chunk-37VTNO3H.js +2 -0
  4. package/dist/chunk-37VTNO3H.js.map +1 -0
  5. package/dist/chunk-3NXXZ66J.js +2 -0
  6. package/dist/chunk-3NXXZ66J.js.map +1 -0
  7. package/dist/chunk-3NY5JW7O.cjs +2 -0
  8. package/dist/chunk-3NY5JW7O.cjs.map +1 -0
  9. package/dist/{chunk-2GYFUPYX.js → chunk-52UMCRWP.js} +2 -2
  10. package/dist/{chunk-SQC6TTIC.cjs → chunk-6XA4O3M3.cjs} +2 -2
  11. package/dist/{chunk-SQC6TTIC.cjs.map → chunk-6XA4O3M3.cjs.map} +1 -1
  12. package/dist/chunk-7UIP3FE3.js +2 -0
  13. package/dist/chunk-7UIP3FE3.js.map +1 -0
  14. package/dist/{chunk-HJOJ2HKF.js → chunk-BDXQRSF4.js} +2 -2
  15. package/dist/chunk-BLIB3FDC.cjs +2 -0
  16. package/dist/chunk-BLIB3FDC.cjs.map +1 -0
  17. package/dist/chunk-DKLZOG5K.js +2 -0
  18. package/dist/chunk-DKLZOG5K.js.map +1 -0
  19. package/dist/chunk-EDUYBNHP.cjs +2 -0
  20. package/dist/chunk-EDUYBNHP.cjs.map +1 -0
  21. package/dist/{chunk-NPVOVECB.cjs → chunk-EPKZSK2V.cjs} +2 -2
  22. package/dist/chunk-EPKZSK2V.cjs.map +1 -0
  23. package/dist/{chunk-X472IBQX.js → chunk-EVTSIFYV.js} +2 -2
  24. package/dist/chunk-F65OZ2UR.cjs +2 -0
  25. package/dist/chunk-F65OZ2UR.cjs.map +1 -0
  26. package/dist/{chunk-W2RI5BYP.cjs → chunk-I5YVANFZ.cjs} +1 -1
  27. package/dist/chunk-I5YVANFZ.cjs.map +1 -0
  28. package/dist/{chunk-3M5GFHDO.cjs → chunk-IAKA53GQ.cjs} +1 -1
  29. package/dist/{chunk-3M5GFHDO.cjs.map → chunk-IAKA53GQ.cjs.map} +1 -1
  30. package/dist/{chunk-IOPJMAFL.js → chunk-INZC24ME.js} +2 -2
  31. package/dist/chunk-IO77OE2Y.js +2 -0
  32. package/dist/chunk-IO77OE2Y.js.map +1 -0
  33. package/dist/{chunk-FHBLIK6L.cjs → chunk-JDRGWJC4.cjs} +1 -1
  34. package/dist/{chunk-FHBLIK6L.cjs.map → chunk-JDRGWJC4.cjs.map} +1 -1
  35. package/dist/{chunk-6LS3OYJB.cjs → chunk-KNZRWJJE.cjs} +2 -2
  36. package/dist/chunk-KNZRWJJE.cjs.map +1 -0
  37. package/dist/{chunk-BNMQKKQG.cjs → chunk-KQP63BAK.cjs} +2 -2
  38. package/dist/{chunk-BNMQKKQG.cjs.map → chunk-KQP63BAK.cjs.map} +1 -1
  39. package/dist/{chunk-ZAYXQ36V.js → chunk-LS6BEGH4.js} +1 -1
  40. package/dist/chunk-LS6BEGH4.js.map +1 -0
  41. package/dist/{chunk-3XA37DA3.cjs → chunk-M5L7GYFB.cjs} +2 -2
  42. package/dist/{chunk-3XA37DA3.cjs.map → chunk-M5L7GYFB.cjs.map} +1 -1
  43. package/dist/{chunk-NMWYVOB5.cjs → chunk-MBMSU7AI.cjs} +2 -2
  44. package/dist/{chunk-NMWYVOB5.cjs.map → chunk-MBMSU7AI.cjs.map} +1 -1
  45. package/dist/{chunk-YWGTX6NX.cjs → chunk-MGVROLEY.cjs} +1 -1
  46. package/dist/{chunk-YWGTX6NX.cjs.map → chunk-MGVROLEY.cjs.map} +1 -1
  47. package/dist/{chunk-KAWXU6RF.js → chunk-ODYEBO3I.js} +2 -2
  48. package/dist/chunk-OENWMR2C.cjs +2 -0
  49. package/dist/chunk-OENWMR2C.cjs.map +1 -0
  50. package/dist/{chunk-AOJOLYXJ.cjs → chunk-PEC5UK3V.cjs} +2 -2
  51. package/dist/{chunk-AOJOLYXJ.cjs.map → chunk-PEC5UK3V.cjs.map} +1 -1
  52. package/dist/{chunk-PFQOYDXS.js → chunk-PGPMMXR6.js} +2 -2
  53. package/dist/{chunk-EIZVSH76.cjs → chunk-PYYVUI5W.cjs} +2 -2
  54. package/dist/{chunk-EIZVSH76.cjs.map → chunk-PYYVUI5W.cjs.map} +1 -1
  55. package/dist/chunk-QV4D3AS6.js +2 -0
  56. package/dist/{chunk-ZIV2RZZI.js.map → chunk-QV4D3AS6.js.map} +1 -1
  57. package/dist/chunk-T236DCNC.js +2 -0
  58. package/dist/{chunk-HKAUNENU.js.map → chunk-T236DCNC.js.map} +1 -1
  59. package/dist/{chunk-TBYXQUBP.js → chunk-TQIXFWV6.js} +2 -2
  60. package/dist/{chunk-UA7DGD3T.js → chunk-TRQYHK6F.js} +2 -2
  61. package/dist/chunk-UMWTPGDS.cjs +2 -0
  62. package/dist/chunk-UMWTPGDS.cjs.map +1 -0
  63. package/dist/{chunk-OUOHGXSD.cjs → chunk-V2Z3FLZS.cjs} +2 -2
  64. package/dist/{chunk-OUOHGXSD.cjs.map → chunk-V2Z3FLZS.cjs.map} +1 -1
  65. package/dist/{chunk-L5X63HCH.js → chunk-VBIUSNIN.js} +2 -2
  66. package/dist/{chunk-SEYBIGHK.js → chunk-YXZJ5SGZ.js} +2 -2
  67. package/dist/components/Badge/Badge.cjs +1 -1
  68. package/dist/components/Badge/Badge.cjs.map +1 -1
  69. package/dist/components/Badge/Badge.d.cts +2 -1
  70. package/dist/components/Badge/Badge.d.ts +2 -1
  71. package/dist/components/Badge/Badge.js +1 -1
  72. package/dist/components/Badge/Badge.props.cjs +1 -1
  73. package/dist/components/Badge/Badge.props.d.cts +2 -1
  74. package/dist/components/Badge/Badge.props.d.ts +2 -1
  75. package/dist/components/Badge/Badge.props.js +1 -1
  76. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  77. package/dist/components/Checkbox/Checkbox.js +1 -1
  78. package/dist/components/CheckboxGroup/CheckboxGroup.cjs +1 -1
  79. package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
  80. package/dist/components/CheckboxTile/CheckboxTile.cjs +1 -1
  81. package/dist/components/CheckboxTile/CheckboxTile.js +1 -1
  82. package/dist/components/CurrencyInput/CurrencyInput.cjs +2 -0
  83. package/dist/components/CurrencyInput/CurrencyInput.cjs.map +1 -0
  84. package/dist/components/CurrencyInput/CurrencyInput.d.cts +11 -0
  85. package/dist/components/CurrencyInput/CurrencyInput.d.ts +11 -0
  86. package/dist/components/CurrencyInput/CurrencyInput.js +2 -0
  87. package/dist/components/CurrencyInput/CurrencyInput.js.map +1 -0
  88. package/dist/components/CurrencyInput/CurrencyInput.props.cjs +1 -0
  89. package/dist/components/CurrencyInput/CurrencyInput.props.cjs.map +1 -0
  90. package/dist/components/CurrencyInput/CurrencyInput.props.d.cts +10 -0
  91. package/dist/components/CurrencyInput/CurrencyInput.props.d.ts +10 -0
  92. package/dist/components/CurrencyInput/CurrencyInput.props.js +1 -0
  93. package/dist/components/CurrencyInput/CurrencyInput.props.js.map +1 -0
  94. package/dist/components/FormGroupBase/FormGroupBase.cjs +1 -1
  95. package/dist/components/FormGroupBase/FormGroupBase.js +1 -1
  96. package/dist/components/IconContainer/IconContainer.cjs +2 -0
  97. package/dist/components/IconContainer/IconContainer.cjs.map +1 -0
  98. package/dist/components/IconContainer/IconContainer.d.cts +9 -0
  99. package/dist/components/IconContainer/IconContainer.d.ts +9 -0
  100. package/dist/components/IconContainer/IconContainer.js +2 -0
  101. package/dist/components/IconContainer/IconContainer.js.map +1 -0
  102. package/dist/components/IconContainer/IconContainer.props.cjs +2 -0
  103. package/dist/components/IconContainer/IconContainer.props.cjs.map +1 -0
  104. package/dist/components/IconContainer/IconContainer.props.d.cts +45 -0
  105. package/dist/components/IconContainer/IconContainer.props.d.ts +45 -0
  106. package/dist/components/IconContainer/IconContainer.props.js +2 -0
  107. package/dist/components/IconContainer/IconContainer.props.js.map +1 -0
  108. package/dist/components/List/List.cjs +1 -1
  109. package/dist/components/List/List.cjs.map +1 -1
  110. package/dist/components/List/List.d.cts +1 -1
  111. package/dist/components/List/List.d.ts +1 -1
  112. package/dist/components/List/List.js +1 -1
  113. package/dist/components/List/List.props.d.cts +2 -13
  114. package/dist/components/List/List.props.d.ts +2 -13
  115. package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
  116. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  117. package/dist/components/Radio/Radio.cjs +1 -1
  118. package/dist/components/Radio/Radio.js +1 -1
  119. package/dist/components/RadioCard/RadioCard.cjs +1 -1
  120. package/dist/components/RadioCard/RadioCard.js +1 -1
  121. package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
  122. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  123. package/dist/components/RadioTile/RadioTile.cjs +1 -1
  124. package/dist/components/RadioTile/RadioTile.js +1 -1
  125. package/dist/components/SearchInput/SearchInput.cjs +1 -1
  126. package/dist/components/SearchInput/SearchInput.js +1 -1
  127. package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
  128. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
  129. package/dist/components/SectionHeader/SectionHeader.d.cts +0 -4
  130. package/dist/components/SectionHeader/SectionHeader.d.ts +0 -4
  131. package/dist/components/SectionHeader/SectionHeader.js +1 -1
  132. package/dist/components/SectionHeader/SectionHeader.props.cjs +1 -2
  133. package/dist/components/SectionHeader/SectionHeader.props.cjs.map +1 -1
  134. package/dist/components/SectionHeader/SectionHeader.props.d.cts +6 -39
  135. package/dist/components/SectionHeader/SectionHeader.props.d.ts +6 -39
  136. package/dist/components/SectionHeader/SectionHeader.props.js +0 -1
  137. package/dist/components/TextArea/TextArea.cjs +1 -1
  138. package/dist/components/TextArea/TextArea.js +1 -1
  139. package/dist/components/TextInput/TextInput.cjs +1 -1
  140. package/dist/components/TextInput/TextInput.js +1 -1
  141. package/dist/index.cjs +1 -1
  142. package/dist/index.cjs.map +1 -1
  143. package/dist/index.d.cts +4 -0
  144. package/dist/index.d.ts +4 -0
  145. package/dist/index.js +1 -1
  146. package/package.json +5 -5
  147. package/styles.css +1 -1
  148. package/dist/chunk-2HATIMMN.cjs +0 -2
  149. package/dist/chunk-2HATIMMN.cjs.map +0 -1
  150. package/dist/chunk-6LS3OYJB.cjs.map +0 -1
  151. package/dist/chunk-HKAUNENU.js +0 -2
  152. package/dist/chunk-HLGSJ7VZ.js +0 -2
  153. package/dist/chunk-HLGSJ7VZ.js.map +0 -1
  154. package/dist/chunk-LX55FQR5.js +0 -2
  155. package/dist/chunk-LX55FQR5.js.map +0 -1
  156. package/dist/chunk-NPVOVECB.cjs.map +0 -1
  157. package/dist/chunk-QFVIQ5MD.cjs +0 -2
  158. package/dist/chunk-QFVIQ5MD.cjs.map +0 -1
  159. package/dist/chunk-RL2GY4IW.js +0 -2
  160. package/dist/chunk-RL2GY4IW.js.map +0 -1
  161. package/dist/chunk-RL3MTR6O.cjs +0 -2
  162. package/dist/chunk-RL3MTR6O.cjs.map +0 -1
  163. package/dist/chunk-TBOBX6LG.cjs +0 -2
  164. package/dist/chunk-TBOBX6LG.cjs.map +0 -1
  165. package/dist/chunk-W2RI5BYP.cjs.map +0 -1
  166. package/dist/chunk-YGKRSQ7L.js +0 -2
  167. package/dist/chunk-YGKRSQ7L.js.map +0 -1
  168. package/dist/chunk-ZAYXQ36V.js.map +0 -1
  169. package/dist/chunk-ZIV2RZZI.js +0 -2
  170. /package/dist/{chunk-2GYFUPYX.js.map → chunk-52UMCRWP.js.map} +0 -0
  171. /package/dist/{chunk-HJOJ2HKF.js.map → chunk-BDXQRSF4.js.map} +0 -0
  172. /package/dist/{chunk-X472IBQX.js.map → chunk-EVTSIFYV.js.map} +0 -0
  173. /package/dist/{chunk-IOPJMAFL.js.map → chunk-INZC24ME.js.map} +0 -0
  174. /package/dist/{chunk-KAWXU6RF.js.map → chunk-ODYEBO3I.js.map} +0 -0
  175. /package/dist/{chunk-PFQOYDXS.js.map → chunk-PGPMMXR6.js.map} +0 -0
  176. /package/dist/{chunk-TBYXQUBP.js.map → chunk-TQIXFWV6.js.map} +0 -0
  177. /package/dist/{chunk-UA7DGD3T.js.map → chunk-TRQYHK6F.js.map} +0 -0
  178. /package/dist/{chunk-L5X63HCH.js.map → chunk-VBIUSNIN.js.map} +0 -0
  179. /package/dist/{chunk-SEYBIGHK.js.map → chunk-YXZJ5SGZ.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var o=["sm","md","lg","xl"],e= exports.a ={size:{className:"size",tokens:o,responsive:!1,default:"md"}};exports.a = e;
2
- //# sourceMappingURL=chunk-2HATIMMN.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/SectionHeader/SectionHeader.props.ts"],"names":["sizes","sectionHeaderPropDefs"],"mappings":"AASA,6EAAMA,CAAAA,CAAQ,CAAC,IAAA,CAAM,IAAA,CAAM,IAAA,CAAM,IAAI,CAAA,CAExBC,CAAAA,aAAwB,CACnC,IAAA,CAAM,CAAE,SAAA,CAAW,MAAA,CAAQ,MAAA,CAAQD,CAAAA,CAAO,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,IAAK,CAC7E,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-2HATIMMN.cjs","sourcesContent":["import { ComponentType } from 'react';\nimport { MarginProps } from '../../props/margin.props';\nimport { PropDef } from '../../props/prop-def';\nimport { TextAlignProps } from '../../props/text-align.props';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { TextWrapProps } from '../../props/text-wrap.props';\nimport type { ComponentPropsWithout, RemovedProps } from '../../types/component-props';\nimport { LinkProps } from '../Link/Link.props';\n\nconst sizes = ['sm', 'md', 'lg', 'xl'] as const;\n\nexport const sectionHeaderPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: false, default: 'md' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface SectionHeaderProps\n extends ComponentPropsWithout<'h2', RemovedProps>,\n TextAlignProps,\n TextTransformProps,\n TextWrapProps,\n MarginProps {\n /**\n * Actual string to display as section header\n */\n heading?: string;\n /**\n * @default h2\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'div';\n /**\n * Set the text size styles.\n * @default md\n */\n size?: (typeof sizes)[number];\n /**\n * Optional helper text to provide additional context or instructions.\n */\n helperText?: string;\n /**\n * Optional configuration of link at the side.\n * Both linkText and linkHref need to be present for the link to appear.\n */\n linkText?: string;\n linkHref?: LinkProps['href'];\n /**\n * @default Chevron\n */\n linkIcon?: ComponentType;\n linkIconPosition?: 'left' | 'right';\n /**\n * @default true\n */\n linkShowIcon?: boolean;\n /**\n * @default _self\n */\n linkTarget?: React.HTMLAttributeAnchorTarget | undefined;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6LS3OYJB.cjs","../src/components/Radio/Radio.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","Radio","providedId","label","helperText","image","className","labelFontWeight","ariaLabelledby","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","showLabel","clsx","RadixRadioGroup","Flex","Label","HelperText"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECA9N,wEAEN,mCAI6B,IASxCA,CAAAA,CAAgB,OAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAgB5CC,CAAAA,aAAc,CAAA,CAAA,UAAA,CACzB,CACE,CACE,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,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,CAAAZ,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAa,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBX,CAAAA,GAAe,KAAA,CAAA,CAC/De,CAAAA,CAAY,CAAC,CAAChB,CAAAA,CACpB,OACE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWiB,4BAAAA,CAAKrB,CAAoBO,CAAS,CAAA,CAAA,CAChD,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAACe,mBAAAA,CAAgB,IAAA,CAAhB,CACC,GAAA,CAAKX,CAAAA,CACJ,GAAGD,CAAAA,CACJ,EAAA,CAAIE,CAAAA,CACJ,kBAAA,CAAkBO,CAAAA,CAAiBL,CAAAA,CAAeG,CAAAA,CAClD,iBAAA,CAAiBR,CAAAA,EAAAA,CAAkCL,CAAAA,CAAQS,CAAAA,CAAU,KAAA,CAAA,CAAA,CACrE,SAAA,CAAU,kBAAA,CAAA,CAEV,CAAA,CAAA,aAAA,CAACS,mBAAAA,CAAgB,SAAA,CAAhB,CAA0B,SAAA,CAAU,uBAAA,CAAwB,CAC/D,CACF,CAAA,CACCF,CAAAA,CACC,CAAA,CAAA,aAAA,CAACG,mBAAAA,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,GAAA,CAAI,IAAA,CAAA,CAC3B,CAAA,CAAA,aAAA,CAACC,mBAAAA,CAAA,CACC,EAAA,CAAIX,CAAAA,CACJ,OAAA,CAASD,CAAAA,CACT,iBAAA,CAAiB,CAAA,CAAA,CACjB,UAAA,CAAYJ,CAAAA,CACZ,SAAA,CAAU,mBAAA,CAAA,CAETF,CAAAA,CACAF,CACH,CAAA,CACCe,CAAAA,CACC,CAAA,CAAA,aAAA,CAACM,mBAAAA,CAAA,CAAW,EAAA,CAAIX,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAAA,CAC5CT,CACH,CAAA,CACE,IACN,CAAA,CACE,IACN,CAEJ,CACF,CAAA,CAEAH,CAAAA,CAAM,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6LS3OYJB.cjs","sourcesContent":[null,"import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport type { RadioProps } from './Radio.props';\n\nimport { RadioGroup as RadixRadioGroup } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport { Label } from '../Label/Label';\nimport { useIds } from '../../hooks/use-ids';\nimport { HelperText } from '../HelperText/HelperText';\nimport type { ElementRef } from 'react';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\n\nconst componentName = 'Radio';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype RadioElement = ElementRef<'button'>;\n\n/**\n * `Radio` can be used to choose between a set of more than two options.\n *\n * `Radio` should always be used with a `RadioGroup` or `RadioGridGroup` to\n * handle the state control and layout.\n *\n * `Radio` is, by default, appropriately labelled when using\n * the `label` prop, if you do not provide a label, you must specify an\n * `aria-label` or `aria-labelledby` for accessibility.\n *\n * > This component does not need to be wrapped in a `ThemeProvider` and can be used standalone with other component libraries.\n */\nexport const Radio = React.forwardRef<RadioElement, RadioProps>(\n (\n {\n id: providedId,\n label,\n helperText,\n image,\n className,\n labelFontWeight,\n 'aria-labelledby': ariaLabelledby,\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 showLabel = !!label;\n return (\n <div className={clsx(componentClassName, className)}>\n <div className=\"hearth-RadioContainer\">\n <RadixRadioGroup.Item\n ref={ref}\n {...props}\n id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n className=\"hearth-RadioItem\"\n >\n <RadixRadioGroup.Indicator className=\"hearth-RadioIndicator\" />\n </RadixRadioGroup.Item>\n </div>\n {showLabel ? (\n <Flex direction=\"column\" gap=\"50\">\n <Label\n id={labelId}\n htmlFor={id}\n disableUserSelect\n fontWeight={labelFontWeight}\n className=\"hearth-RadioLabel\"\n >\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n ) : null}\n </div>\n );\n }\n);\n\nRadio.displayName = componentName;\n"]}
@@ -1,2 +0,0 @@
1
- import{a as c}from"./chunk-C2M7FEJX.js";import{a as n}from"./chunk-JPYVWTDN.js";import{c as R}from"./chunk-5OLLJKEO.js";import{a as s}from"./chunk-432A6CLH.js";import{a as p}from"./chunk-QC4ZMGCU.js";import{b as m}from"./chunk-4PEMW3UE.js";import*as e from"react";import G from"clsx";import{RadioGroup as f}from"radix-ui";var b="RadioTile",v=m(b),E=e.forwardRef(({className:u,id:h,label:o,helperText:i,image:x,"aria-labelledby":a,...T},y)=>{let{id:r,labelId:t,helperTextId:d}=p({providedId:h,prefix:"radio"}),{hasGroupHelperText:I,"aria-describedby":N}=R(),l=!I&&i!==void 0;return e.createElement(f.Item,{ref:y,className:G(v,u),...T,id:r,"aria-describedby":l?d:N,"aria-labelledby":a||(o?t:void 0)},e.createElement("div",{className:"hearth-RadioContainer"},e.createElement("div",{className:"hearth-RadioItem"},e.createElement(f.Indicator,{className:"hearth-RadioIndicator"})),e.createElement(s,{direction:"column"},e.createElement(c,{id:t,htmlFor:r,disableUserSelect:!0,className:"hearth-RadioLabel"},x,o),l?e.createElement(n,{id:d,disableUserSelect:!0},i):null)))});E.displayName=b;export{E as a};
2
- //# sourceMappingURL=chunk-HKAUNENU.js.map
@@ -1,2 +0,0 @@
1
- var o=["sm","md","lg","xl"],e={size:{className:"size",tokens:o,responsive:!1,default:"md"}};export{e as a};
2
- //# sourceMappingURL=chunk-HLGSJ7VZ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/SectionHeader/SectionHeader.props.ts"],"sourcesContent":["import { ComponentType } from 'react';\nimport { MarginProps } from '../../props/margin.props';\nimport { PropDef } from '../../props/prop-def';\nimport { TextAlignProps } from '../../props/text-align.props';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { TextWrapProps } from '../../props/text-wrap.props';\nimport type { ComponentPropsWithout, RemovedProps } from '../../types/component-props';\nimport { LinkProps } from '../Link/Link.props';\n\nconst sizes = ['sm', 'md', 'lg', 'xl'] as const;\n\nexport const sectionHeaderPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: false, default: 'md' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface SectionHeaderProps\n extends ComponentPropsWithout<'h2', RemovedProps>,\n TextAlignProps,\n TextTransformProps,\n TextWrapProps,\n MarginProps {\n /**\n * Actual string to display as section header\n */\n heading?: string;\n /**\n * @default h2\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'div';\n /**\n * Set the text size styles.\n * @default md\n */\n size?: (typeof sizes)[number];\n /**\n * Optional helper text to provide additional context or instructions.\n */\n helperText?: string;\n /**\n * Optional configuration of link at the side.\n * Both linkText and linkHref need to be present for the link to appear.\n */\n linkText?: string;\n linkHref?: LinkProps['href'];\n /**\n * @default Chevron\n */\n linkIcon?: ComponentType;\n linkIconPosition?: 'left' | 'right';\n /**\n * @default true\n */\n linkShowIcon?: boolean;\n /**\n * @default _self\n */\n linkTarget?: React.HTMLAttributeAnchorTarget | undefined;\n}\n"],"mappings":"AASA,IAAMA,EAAQ,CAAC,KAAM,KAAM,KAAM,IAAI,EAExBC,EAAwB,CACnC,KAAM,CAAE,UAAW,OAAQ,OAAQD,EAAO,WAAY,GAAO,QAAS,IAAK,CAC7E","names":["sizes","sectionHeaderPropDefs"]}
@@ -1,2 +0,0 @@
1
- import{a as g}from"./chunk-HLGSJ7VZ.js";import{a as x}from"./chunk-3YTV62G7.js";import{a as h}from"./chunk-JPYVWTDN.js";import{a as d}from"./chunk-432A6CLH.js";import{a as S}from"./chunk-FGPP4NKK.js";import{a as p}from"./chunk-LFUFY26R.js";import{a as c}from"./chunk-AFZ3OJUA.js";import{a as f}from"./chunk-VV7AHCQF.js";import{a as s}from"./chunk-XQ5A24NX.js";import{a as H}from"./chunk-QC4ZMGCU.js";import{a as l}from"./chunk-RTGGS5XX.js";import{b as a}from"./chunk-4PEMW3UE.js";import*as e from"react";import k from"clsx";import{ChevronRightSmallIcon as L}from"@utilitywarehouse/hearth-react-icons";var P="SectionHeader",b=a(P),y=e.forwardRef(({size:I,...T})=>{let{className:u,heading:v,as:E="div",helperText:r,linkText:o,linkHref:t,linkIconPosition:i="right",linkShowIcon:n=!0,linkTarget:N="_self",linkIcon:m=L,id:R}=l({size:I,...T},g,p,c,f,s),{labelId:w,helperTextId:D}=H({providedId:R,prefix:"sectionHeader"}),C=t&&o;return e.createElement("div",{className:k(b,u)},e.createElement(d,{direction:"column",flexGrow:"1",className:k("hearth-SectionHeaderTextContent")},e.createElement(x,{asChild:!0,size:"md",id:w},e.createElement(E,null,v)),r?e.createElement(h,{id:D,disableUserSelect:!0},r):null),C?e.createElement(S,{href:t,target:N},n&&i==="left"&&e.createElement(m,null),o,n&&i==="right"&&e.createElement(m,null)):null)});y.displayName=P;export{y as a};
2
- //# sourceMappingURL=chunk-LX55FQR5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/SectionHeader/SectionHeader.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { ChevronRightSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport type { ElementRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { useIds } from '../../hooks/use-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { textAlignPropDefs } from '../../props/text-align.props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\nimport { textWrapPropDefs } from '../../props/text-wrap.props';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Link } from '../Link/Link';\nimport { sectionHeaderPropDefs, SectionHeaderProps } from './SectionHeader.props';\n\nconst componentName = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype SectionHeaderElement = ElementRef<'div'>;\n\nexport const SectionHeader = React.forwardRef<SectionHeaderElement, SectionHeaderProps>(\n ({ size, ...props }) => {\n const {\n className,\n heading,\n as: SectionHeaderEl = 'div',\n helperText,\n linkText,\n linkHref,\n linkIconPosition = 'right',\n linkShowIcon = true,\n linkTarget = '_self',\n linkIcon: SectionHeaderLinkIcon = ChevronRightSmallIcon,\n id: providedId,\n } = extractProps(\n { size, ...props },\n sectionHeaderPropDefs,\n textAlignPropDefs,\n textTransformPropDefs,\n textWrapPropDefs,\n marginPropDefs\n );\n const { labelId, helperTextId } = useIds({\n providedId,\n prefix: 'sectionHeader',\n });\n const showLink = linkHref && linkText;\n return (\n <div className={clsx(componentClassName, className)}>\n <Flex direction=\"column\" flexGrow=\"1\" className={clsx('hearth-SectionHeaderTextContent')}>\n <Heading asChild size=\"md\" id={labelId}>\n <SectionHeaderEl>{heading}</SectionHeaderEl>\n </Heading>\n {helperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n {showLink ? (\n <Link href={linkHref} target={linkTarget}>\n {linkShowIcon && linkIconPosition === 'left' && <SectionHeaderLinkIcon />}\n {linkText}\n {linkShowIcon && linkIconPosition === 'right' && <SectionHeaderLinkIcon />}\n </Link>\n ) : null}\n </div>\n );\n }\n);\n\nSectionHeader.displayName = componentName;\n"],"mappings":"geAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAU,OAEjB,OAAS,yBAAAC,MAA6B,uCAetC,IAAMC,EAAgB,gBAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAsB,aACjC,CAAC,CAAE,KAAAC,EAAM,GAAGC,CAAM,IAAM,CACtB,GAAM,CACJ,UAAAC,EACA,QAAAC,EACA,GAAIC,EAAkB,MACtB,WAAAC,EACA,SAAAC,EACA,SAAAC,EACA,iBAAAC,EAAmB,QACnB,aAAAC,EAAe,GACf,WAAAC,EAAa,QACb,SAAUC,EAAwBC,EAClC,GAAIC,CACN,EAAIC,EACF,CAAE,KAAAd,EAAM,GAAGC,CAAM,EACjBc,EACAC,EACAC,EACAC,EACAC,CACF,EACM,CAAE,QAAAC,EAAS,aAAAC,CAAa,EAAIC,EAAO,CACvC,WAAAT,EACA,OAAQ,eACV,CAAC,EACKU,EAAWhB,GAAYD,EAC7B,OACE,gBAAC,OAAI,UAAWkB,EAAK3B,EAAoBK,CAAS,GAChD,gBAACuB,EAAA,CAAK,UAAU,SAAS,SAAS,IAAI,UAAWD,EAAK,iCAAiC,GACrF,gBAACE,EAAA,CAAQ,QAAO,GAAC,KAAK,KAAK,GAAIN,GAC7B,gBAAChB,EAAA,KAAiBD,CAAQ,CAC5B,EACCE,EACC,gBAACsB,EAAA,CAAW,GAAIN,EAAc,kBAAiB,IAC5ChB,CACH,EACE,IACN,EACCkB,EACC,gBAACK,EAAA,CAAK,KAAMrB,EAAU,OAAQG,GAC3BD,GAAgBD,IAAqB,QAAU,gBAACG,EAAA,IAAsB,EACtEL,EACAG,GAAgBD,IAAqB,SAAW,gBAACG,EAAA,IAAsB,CAC1E,EACE,IACN,CAEJ,CACF,EAEAZ,EAAc,YAAcH","names":["React","clsx","ChevronRightSmallIcon","componentName","componentClassName","withGlobalPrefix","SectionHeader","size","props","className","heading","SectionHeaderEl","helperText","linkText","linkHref","linkIconPosition","linkShowIcon","linkTarget","SectionHeaderLinkIcon","ChevronRightSmallIcon","providedId","extractProps","sectionHeaderPropDefs","textAlignPropDefs","textTransformPropDefs","textWrapPropDefs","marginPropDefs","labelId","helperTextId","useIds","showLink","clsx","Flex","Heading","HelperText","Link"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-NPVOVECB.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","RadioTile","className","providedId","label","helperText","image","ariaLabelledby","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","RadixRadioGroup","clsx","Flex","Label","HelperText"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECA9N,wEACN,mCAI6B,IAOxCA,CAAAA,CAAgB,WAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAkB,CAAA,CAAA,UAAA,CAC7B,CACE,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,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,CAAAV,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAW,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBT,CAAAA,GAAe,KAAA,CAAA,CACrE,OACE,CAAA,CAAA,aAAA,CAACa,mBAAAA,CAAgB,IAAA,CAAhB,CACC,GAAA,CAAKT,CAAAA,CACL,SAAA,CAAWU,4BAAAA,CAAKpB,CAAoBG,CAAS,CAAA,CAC5C,GAAGM,CAAAA,CACJ,EAAA,CAAIE,CAAAA,CACJ,kBAAA,CAAkBO,CAAAA,CAAiBL,CAAAA,CAAeG,CAAAA,CAClD,iBAAA,CAAiBR,CAAAA,EAAAA,CAAkCH,CAAAA,CAAQO,CAAAA,CAAU,KAAA,CAAA,CAAA,CAAA,CAErE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAACO,mBAAAA,CAAgB,SAAA,CAAhB,CAA0B,SAAA,CAAU,uBAAA,CAAwB,CAC/D,CAAA,CACA,CAAA,CAAA,aAAA,CAACE,mBAAAA,CAAA,CAAK,SAAA,CAAU,QAAA,CAAA,CACd,CAAA,CAAA,aAAA,CAACC,mBAAAA,CAAA,CAAM,EAAA,CAAIV,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAAI,iBAAA,CAAiB,CAAA,CAAA,CAAC,SAAA,CAAU,mBAAA,CAAA,CAC1DJ,CAAAA,CACAF,CACH,CAAA,CACCa,CAAAA,CACC,CAAA,CAAA,aAAA,CAACK,mBAAAA,CAAA,CAAW,EAAA,CAAIV,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAAA,CAC5CP,CACH,CAAA,CACE,IACN,CACF,CACF,CAEJ,CACF,CAAA,CAEAJ,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-NPVOVECB.cjs","sourcesContent":[null,"import * as React from 'react';\nimport clsx from 'clsx';\nimport type { ElementRef } from 'react';\nimport type { RadioTileProps } from './RadioTile.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { RadioGroup as RadixRadioGroup } from 'radix-ui';\nimport { useIds } from '../../hooks/use-ids';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Flex } from '../Flex/Flex';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\n\nconst componentName = 'RadioTile';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype RadioTileElement = ElementRef<'button'>;\n\nexport const RadioTile = React.forwardRef<RadioTileElement, RadioTileProps>(\n (\n {\n className,\n id: providedId,\n label,\n helperText,\n image,\n 'aria-labelledby': ariaLabelledby,\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 return (\n <RadixRadioGroup.Item\n ref={ref}\n className={clsx(componentClassName, className)}\n {...props}\n id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className=\"hearth-RadioContainer\">\n <div className=\"hearth-RadioItem\">\n <RadixRadioGroup.Indicator className=\"hearth-RadioIndicator\" />\n </div>\n <Flex direction=\"column\">\n <Label id={labelId} htmlFor={id} disableUserSelect className=\"hearth-RadioLabel\">\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n </div>\n </RadixRadioGroup.Item>\n );\n }\n);\n\nRadioTile.displayName = componentName;\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkTBOBX6LGcjs = require('./chunk-TBOBX6LG.cjs');var _chunkASOT2I4Dcjs = require('./chunk-ASOT2I4D.cjs');var _chunkVPZS4ZLEcjs = require('./chunk-VPZS4ZLE.cjs');var _chunkLAVQWQP2cjs = require('./chunk-LAVQWQP2.cjs');var _chunkTMWB3U4Xcjs = require('./chunk-TMWB3U4X.cjs');var _chunk5DRU6TDWcjs = require('./chunk-5DRU6TDW.cjs');var _chunk4H5JT5ORcjs = require('./chunk-4H5JT5OR.cjs');var _react = require('react'); var e = _interopRequireWildcard(_react);var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var y="List",B=_chunk4H5JT5ORcjs.b.call(void 0, y),I= exports.a =e.forwardRef((g,r)=>{let{as:i="ul",className:L,colorScheme:a=void 0,heading:t,headingElement:u="div",helperText:o,linkText:N,linkHref:T,children:n,variant:l,id:P,"aria-labelledby":v,"aria-describedby":C,...s}=_chunk5DRU6TDWcjs.a.call(void 0, g,_chunkLAVQWQP2cjs.a),{id:E,labelId:H,helperTextId:R}=_chunkTMWB3U4Xcjs.a.call(void 0, {providedId:P,prefix:"list"}),d={id:E,role:"list","aria-labelledby":_nullishCoalesce(v, () => ((t?H:void 0))),"aria-describedby":_nullishCoalesce(C, () => ((o?R:void 0)))};return e.createElement("div",{className:_clsx2.default.call(void 0, B,L)},e.createElement(_chunkTBOBX6LGcjs.a,{id:"listHeader",helperText:o,heading:t,linkHref:T,linkText:N,as:u}),l===void 0||a===void 0?e.createElement(_chunkVPZS4ZLEcjs.a,{asChild:!0,className:"hearth-ListContainer"},e.createElement(i,{ref:r,...s,...d},n)):e.createElement(_chunkASOT2I4Dcjs.a,{className:"hearth-ListContainer",paddingNone:!0,variant:l,colorScheme:a},e.createElement(i,{ref:r,...s,...d},n)))});I.displayName=y;exports.a = I;
2
- //# sourceMappingURL=chunk-QFVIQ5MD.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-QFVIQ5MD.cjs","../src/components/List/List.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","List","props","ref","Tag","className","colorScheme","heading","HeadingEl","helperText","linkText","linkHref","children","variant","providedId","ariaLabelledby","ariaDescribedby","listProps","extractProps","marginPropDefs","id","labelId","helperTextId","useIds","listAriaProps","clsx","SectionHeader","Box","Card"],"mappings":"AAAA,ulBAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECAvQ,wEACN,IAWXA,CAAAA,CAAgB,MAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAa,CAAA,CAAA,UAAA,CAAmC,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC3E,GAAM,CACJ,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,KAAA,CAAA,CACd,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAY,KAAA,CAC5B,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,iBAAA,CAAmBC,CAAAA,CACnB,kBAAA,CAAoBC,CAAAA,CACpB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAahB,CAAOiB,mBAAc,CAAA,CAChC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CACpC,UAAA,CAAAT,CAAAA,CACA,MAAA,CAAQ,MACV,CAAC,CAAA,CACKU,CAAAA,CAAgB,CACpB,EAAA,CAAAJ,CAAAA,CACA,IAAA,CAAM,MAAA,CACL,iBAAA,kBAAoBL,CAAAA,SAAAA,CAA2BR,CAAAA,CAAWc,CAAAA,CAAU,KAAA,CAAA,GAAA,CACpE,kBAAA,kBAAqBL,CAAAA,SAAAA,CAA4BP,CAAAA,CAAca,CAAAA,CAAe,KAAA,CAAA,GACjF,CAAA,CAEA,OACE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWG,4BAAAA,CAAK1B,CAAoBM,CAAS,CAAA,CAAA,CAChD,CAAA,CAAA,aAAA,CAACqB,mBAAAA,CAAA,CACC,EAAA,CAAG,YAAA,CACH,UAAA,CAAYjB,CAAAA,CACZ,OAAA,CAASF,CAAAA,CACT,QAAA,CAAUI,CAAAA,CACV,QAAA,CAAUD,CAAAA,CACV,EAAA,CAAIF,CAAAA,CACN,CAAA,CACCK,CAAAA,GAAY,KAAA,CAAA,EAAaP,CAAAA,GAAgB,KAAA,CAAA,CACxC,CAAA,CAAA,aAAA,CAACqB,mBAAAA,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,SAAA,CAAU,sBAAA,CAAA,CACrB,CAAA,CAAA,aAAA,CAACvB,CAAAA,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAM,GAAGc,CAAAA,CAAY,GAAGO,CAAAA,CAAAA,CAC/BZ,CACH,CACF,CAAA,CAEA,CAAA,CAAA,aAAA,CAACgB,mBAAAA,CAAA,CACC,SAAA,CAAU,sBAAA,CACV,WAAA,CAAW,CAAA,CAAA,CACX,OAAA,CAASf,CAAAA,CACT,WAAA,CAAaP,CAAAA,CAAAA,CAEb,CAAA,CAAA,aAAA,CAACF,CAAAA,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAM,GAAGc,CAAAA,CAAY,GAAGO,CAAAA,CAAAA,CAC/BZ,CACH,CACF,CAEJ,CAEJ,CAAC,CAAA,CAEDX,CAAAA,CAAK,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-QFVIQ5MD.cjs","sourcesContent":[null,"import * as React from 'react';\nimport clsx from 'clsx';\nimport { type ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst componentName = 'List';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype ListElement = ElementRef<'ol'>;\n\nexport const List = React.forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n heading,\n headingElement: HeadingEl = 'div',\n helperText,\n linkText,\n linkHref,\n children,\n variant,\n id: providedId,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId } = useIds({\n providedId,\n prefix: 'list',\n });\n const listAriaProps = {\n id,\n role: 'list',\n ['aria-labelledby']: ariaLabelledby ?? (Boolean(heading) ? labelId : undefined),\n ['aria-describedby']: ariaDescribedby ?? (Boolean(helperText) ? helperTextId : undefined),\n };\n\n return (\n <div className={clsx(componentClassName, className)}>\n <SectionHeader\n id=\"listHeader\"\n helperText={helperText}\n heading={heading}\n linkHref={linkHref}\n linkText={linkText}\n as={HeadingEl}\n />\n {variant === undefined || colorScheme === undefined ? (\n <Box asChild className=\"hearth-ListContainer\">\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className=\"hearth-ListContainer\"\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = componentName;\n"]}
@@ -1,2 +0,0 @@
1
- import{a as b}from"./chunk-LX55FQR5.js";import{a as x}from"./chunk-B3LRMWN3.js";import{a as f}from"./chunk-4H4MW2WO.js";import{a as c}from"./chunk-XQ5A24NX.js";import{a as h}from"./chunk-QC4ZMGCU.js";import{a as p}from"./chunk-RTGGS5XX.js";import{b as m}from"./chunk-4PEMW3UE.js";import*as e from"react";import k from"clsx";var y="List",B=m(y),I=e.forwardRef((g,r)=>{let{as:i="ul",className:L,colorScheme:a=void 0,heading:t,headingElement:u="div",helperText:o,linkText:N,linkHref:T,children:n,variant:l,id:P,"aria-labelledby":v,"aria-describedby":C,...s}=p(g,c),{id:E,labelId:H,helperTextId:R}=h({providedId:P,prefix:"list"}),d={id:E,role:"list","aria-labelledby":v??(t?H:void 0),"aria-describedby":C??(o?R:void 0)};return e.createElement("div",{className:k(B,L)},e.createElement(b,{id:"listHeader",helperText:o,heading:t,linkHref:T,linkText:N,as:u}),l===void 0||a===void 0?e.createElement(f,{asChild:!0,className:"hearth-ListContainer"},e.createElement(i,{ref:r,...s,...d},n)):e.createElement(x,{className:"hearth-ListContainer",paddingNone:!0,variant:l,colorScheme:a},e.createElement(i,{ref:r,...s,...d},n)))});I.displayName=y;export{I as a};
2
- //# sourceMappingURL=chunk-RL2GY4IW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/List/List.tsx"],"sourcesContent":["import * as React from 'react';\nimport clsx from 'clsx';\nimport { type ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst componentName = 'List';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype ListElement = ElementRef<'ol'>;\n\nexport const List = React.forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n heading,\n headingElement: HeadingEl = 'div',\n helperText,\n linkText,\n linkHref,\n children,\n variant,\n id: providedId,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId } = useIds({\n providedId,\n prefix: 'list',\n });\n const listAriaProps = {\n id,\n role: 'list',\n ['aria-labelledby']: ariaLabelledby ?? (Boolean(heading) ? labelId : undefined),\n ['aria-describedby']: ariaDescribedby ?? (Boolean(helperText) ? helperTextId : undefined),\n };\n\n return (\n <div className={clsx(componentClassName, className)}>\n <SectionHeader\n id=\"listHeader\"\n helperText={helperText}\n heading={heading}\n linkHref={linkHref}\n linkText={linkText}\n as={HeadingEl}\n />\n {variant === undefined || colorScheme === undefined ? (\n <Box asChild className=\"hearth-ListContainer\">\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className=\"hearth-ListContainer\"\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = componentName;\n"],"mappings":"wRAAA,UAAYA,MAAW,QACvB,OAAOC,MAAU,OAWjB,IAAMC,EAAgB,OAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAa,aAAmC,CAACC,EAAOC,IAAQ,CAC3E,GAAM,CACJ,GAAIC,EAAM,KACV,UAAAC,EACA,YAAAC,EAAc,OACd,QAAAC,EACA,eAAgBC,EAAY,MAC5B,WAAAC,EACA,SAAAC,EACA,SAAAC,EACA,SAAAC,EACA,QAAAC,EACA,GAAIC,EACJ,kBAAmBC,EACnB,mBAAoBC,EACpB,GAAGC,CACL,EAAIC,EAAahB,EAAOiB,CAAc,EAChC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,CAAa,EAAIC,EAAO,CAC3C,WAAAT,EACA,OAAQ,MACV,CAAC,EACKU,EAAgB,CACpB,GAAAJ,EACA,KAAM,OACL,kBAAoBL,IAA2BR,EAAWc,EAAU,QACpE,mBAAqBL,IAA4BP,EAAca,EAAe,OACjF,EAEA,OACE,gBAAC,OAAI,UAAWG,EAAK1B,EAAoBM,CAAS,GAChD,gBAACqB,EAAA,CACC,GAAG,aACH,WAAYjB,EACZ,QAASF,EACT,SAAUI,EACV,SAAUD,EACV,GAAIF,EACN,EACCK,IAAY,QAAaP,IAAgB,OACxC,gBAACqB,EAAA,CAAI,QAAO,GAAC,UAAU,wBACrB,gBAACvB,EAAA,CAAI,IAAKD,EAAM,GAAGc,EAAY,GAAGO,GAC/BZ,CACH,CACF,EAEA,gBAACgB,EAAA,CACC,UAAU,uBACV,YAAW,GACX,QAASf,EACT,YAAaP,GAEb,gBAACF,EAAA,CAAI,IAAKD,EAAM,GAAGc,EAAY,GAAGO,GAC/BZ,CACH,CACF,CAEJ,CAEJ,CAAC,EAEDX,EAAK,YAAcH","names":["React","clsx","componentName","componentClassName","withGlobalPrefix","List","props","ref","Tag","className","colorScheme","heading","HeadingEl","helperText","linkText","linkHref","children","variant","providedId","ariaLabelledby","ariaDescribedby","listProps","extractProps","marginPropDefs","id","labelId","helperTextId","useIds","listAriaProps","clsx","SectionHeader","Box","Card"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkW2RI5BYPcjs = require('./chunk-W2RI5BYP.cjs');var _chunkUICIKADYcjs = require('./chunk-UICIKADY.cjs');var _chunk5DRU6TDWcjs = require('./chunk-5DRU6TDW.cjs');var _chunk4H5JT5ORcjs = require('./chunk-4H5JT5OR.cjs');var _react = require('react'); var e = _interopRequireWildcard(_react);var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var m="Badge",g=_chunk4H5JT5ORcjs.b.call(void 0, m),P= exports.a =e.forwardRef((s,p)=>{let{className:n,colorScheme:f="info",flatBase:c,...d}=_chunk5DRU6TDWcjs.a.call(void 0, s,_chunkW2RI5BYPcjs.a,_chunkUICIKADYcjs.a),i={"data-colorscheme":f,"data-bottom-radius-zero":c?"":void 0};return e.createElement("span",{ref:p,className:_clsx2.default.call(void 0, g,n),...i,...d})});P.displayName=m;exports.a = P;
2
- //# sourceMappingURL=chunk-RL3MTR6O.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-RL3MTR6O.cjs","../src/components/Badge/Badge.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","Badge","props","ref","className","colorScheme","flatBase","badgeProps","extractProps","badgePropDefs","textTransformPropDefs","dataAttributeProps","clsx"],"mappings":"AAAA,mfAAmC,wDAAyC,wDAAyC,wDAAyC,uECAvI,wEAGN,IAOXA,CAAAA,CAAgB,OAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAc,CAAA,CAAA,UAAA,CAAqC,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC9E,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaN,CAAOO,mBAAAA,CAAeC,mBAAqB,CAAA,CACtDC,CAAAA,CAAqB,CACzB,kBAAA,CAAoBN,CAAAA,CACpB,yBAAA,CAA2BC,CAAAA,CAAW,EAAA,CAAK,KAAA,CAC7C,CAAA,CACA,OACE,CAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWS,4BAAAA,CAAKb,CAAoBK,CAAS,CAAA,CAC5C,GAAGO,CAAAA,CACH,GAAGJ,CAAAA,CACN,CAEJ,CAAC,CAAA,CAEDN,CAAAA,CAAM,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-RL3MTR6O.cjs","sourcesContent":[null,"import * as React from 'react';\nimport type { ElementRef } from 'react';\n\nimport clsx from 'clsx';\n\nimport { badgePropDefs, BadgeProps } from './Badge.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\n\nconst componentName = 'Badge';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype BadgeElement = ElementRef<'span'>;\n\nexport const Badge = React.forwardRef<BadgeElement, BadgeProps>((props, ref) => {\n const {\n className,\n colorScheme = 'info',\n flatBase,\n ...badgeProps\n } = extractProps(props, badgePropDefs, textTransformPropDefs);\n const dataAttributeProps = {\n 'data-colorscheme': colorScheme,\n 'data-bottom-radius-zero': flatBase ? '' : undefined,\n };\n return (\n <span\n ref={ref}\n className={clsx(componentClassName, className)}\n {...dataAttributeProps}\n {...badgeProps}\n />\n );\n});\n\nBadge.displayName = componentName;\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk2HATIMMNcjs = require('./chunk-2HATIMMN.cjs');var _chunkVAVAHKMUcjs = require('./chunk-VAVAHKMU.cjs');var _chunkK5BEIZDAcjs = require('./chunk-K5BEIZDA.cjs');var _chunkLVPYDLKGcjs = require('./chunk-LVPYDLKG.cjs');var _chunkIC3LY76Gcjs = require('./chunk-IC3LY76G.cjs');var _chunk6XA5OQRTcjs = require('./chunk-6XA5OQRT.cjs');var _chunkUICIKADYcjs = require('./chunk-UICIKADY.cjs');var _chunk3Q4XWRALcjs = require('./chunk-3Q4XWRAL.cjs');var _chunkLAVQWQP2cjs = require('./chunk-LAVQWQP2.cjs');var _chunkTMWB3U4Xcjs = require('./chunk-TMWB3U4X.cjs');var _chunk5DRU6TDWcjs = require('./chunk-5DRU6TDW.cjs');var _chunk4H5JT5ORcjs = require('./chunk-4H5JT5OR.cjs');var _react = require('react'); var e = _interopRequireWildcard(_react);var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var P="SectionHeader",b=_chunk4H5JT5ORcjs.b.call(void 0, P),y= exports.a =e.forwardRef(({size:I,...T})=>{let{className:u,heading:v,as:E="div",helperText:r,linkText:o,linkHref:t,linkIconPosition:i="right",linkShowIcon:n=!0,linkTarget:N="_self",linkIcon:m=_hearthreacticons.ChevronRightSmallIcon,id:R}=_chunk5DRU6TDWcjs.a.call(void 0, {size:I,...T},_chunk2HATIMMNcjs.a,_chunk6XA5OQRTcjs.a,_chunkUICIKADYcjs.a,_chunk3Q4XWRALcjs.a,_chunkLAVQWQP2cjs.a),{labelId:w,helperTextId:D}=_chunkTMWB3U4Xcjs.a.call(void 0, {providedId:R,prefix:"sectionHeader"}),C=t&&o;return e.createElement("div",{className:_clsx2.default.call(void 0, b,u)},e.createElement(_chunkLVPYDLKGcjs.a,{direction:"column",flexGrow:"1",className:_clsx2.default.call(void 0, "hearth-SectionHeaderTextContent")},e.createElement(_chunkVAVAHKMUcjs.a,{asChild:!0,size:"md",id:w},e.createElement(E,null,v)),r?e.createElement(_chunkK5BEIZDAcjs.a,{id:D,disableUserSelect:!0},r):null),C?e.createElement(_chunkIC3LY76Gcjs.a,{href:t,target:N},n&&i==="left"&&e.createElement(m,null),o,n&&i==="right"&&e.createElement(m,null)):null)});y.displayName=P;exports.a = y;
2
- //# sourceMappingURL=chunk-TBOBX6LG.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-TBOBX6LG.cjs","../src/components/SectionHeader/SectionHeader.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","SectionHeader","size","props","className","heading","SectionHeaderEl","helperText","linkText","linkHref","linkIconPosition","linkShowIcon","linkTarget","SectionHeaderLinkIcon","ChevronRightSmallIcon","providedId","extractProps","sectionHeaderPropDefs","textAlignPropDefs","textTransformPropDefs","textWrapPropDefs","marginPropDefs","labelId","helperTextId","useIds","showLink","clsx","Flex","Heading","HelperText","Link"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECApd,wEAEN,wEAEqB,IAehCA,CAAAA,CAAgB,eAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAsB,CAAA,CAAA,UAAA,CACjC,CAAC,CAAE,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAA,EAAM,CACtB,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CAAkB,KAAA,CACtB,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CAAmB,OAAA,CACnB,YAAA,CAAAC,CAAAA,CAAe,CAAA,CAAA,CACf,UAAA,CAAAC,CAAAA,CAAa,OAAA,CACb,QAAA,CAAUC,CAAAA,CAAwBC,uCAAAA,CAClC,EAAA,CAAIC,CACN,CAAA,CAAIC,iCAAAA,CACA,IAAA,CAAAd,CAAAA,CAAM,GAAGC,CAAM,CAAA,CACjBc,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBACF,CAAA,CACM,CAAE,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAChC,UAAA,CAAAT,CAAAA,CACA,MAAA,CAAQ,eACV,CAAC,CAAA,CACKU,CAAAA,CAAWhB,CAAAA,EAAYD,CAAAA,CAC7B,OACE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWkB,4BAAAA,CAAK3B,CAAoBK,CAAS,CAAA,CAAA,CAChD,CAAA,CAAA,aAAA,CAACuB,mBAAAA,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,QAAA,CAAS,GAAA,CAAI,SAAA,CAAWD,4BAAAA,iCAAsC,CAAA,CAAA,CACrF,CAAA,CAAA,aAAA,CAACE,mBAAAA,CAAA,CAAQ,OAAA,CAAO,CAAA,CAAA,CAAC,IAAA,CAAK,IAAA,CAAK,EAAA,CAAIN,CAAAA,CAAAA,CAC7B,CAAA,CAAA,aAAA,CAAChB,CAAAA,CAAA,IAAA,CAAiBD,CAAQ,CAC5B,CAAA,CACCE,CAAAA,CACC,CAAA,CAAA,aAAA,CAACsB,mBAAAA,CAAA,CAAW,EAAA,CAAIN,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAAA,CAC5ChB,CACH,CAAA,CACE,IACN,CAAA,CACCkB,CAAAA,CACC,CAAA,CAAA,aAAA,CAACK,mBAAAA,CAAA,CAAK,IAAA,CAAMrB,CAAAA,CAAU,MAAA,CAAQG,CAAAA,CAAAA,CAC3BD,CAAAA,EAAgBD,CAAAA,GAAqB,MAAA,EAAU,CAAA,CAAA,aAAA,CAACG,CAAAA,CAAA,IAAsB,CAAA,CACtEL,CAAAA,CACAG,CAAAA,EAAgBD,CAAAA,GAAqB,OAAA,EAAW,CAAA,CAAA,aAAA,CAACG,CAAAA,CAAA,IAAsB,CAC1E,CAAA,CACE,IACN,CAEJ,CACF,CAAA,CAEAZ,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-TBOBX6LG.cjs","sourcesContent":[null,"import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { ChevronRightSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport type { ElementRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { useIds } from '../../hooks/use-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { textAlignPropDefs } from '../../props/text-align.props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\nimport { textWrapPropDefs } from '../../props/text-wrap.props';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Link } from '../Link/Link';\nimport { sectionHeaderPropDefs, SectionHeaderProps } from './SectionHeader.props';\n\nconst componentName = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype SectionHeaderElement = ElementRef<'div'>;\n\nexport const SectionHeader = React.forwardRef<SectionHeaderElement, SectionHeaderProps>(\n ({ size, ...props }) => {\n const {\n className,\n heading,\n as: SectionHeaderEl = 'div',\n helperText,\n linkText,\n linkHref,\n linkIconPosition = 'right',\n linkShowIcon = true,\n linkTarget = '_self',\n linkIcon: SectionHeaderLinkIcon = ChevronRightSmallIcon,\n id: providedId,\n } = extractProps(\n { size, ...props },\n sectionHeaderPropDefs,\n textAlignPropDefs,\n textTransformPropDefs,\n textWrapPropDefs,\n marginPropDefs\n );\n const { labelId, helperTextId } = useIds({\n providedId,\n prefix: 'sectionHeader',\n });\n const showLink = linkHref && linkText;\n return (\n <div className={clsx(componentClassName, className)}>\n <Flex direction=\"column\" flexGrow=\"1\" className={clsx('hearth-SectionHeaderTextContent')}>\n <Heading asChild size=\"md\" id={labelId}>\n <SectionHeaderEl>{heading}</SectionHeaderEl>\n </Heading>\n {helperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n {showLink ? (\n <Link href={linkHref} target={linkTarget}>\n {linkShowIcon && linkIconPosition === 'left' && <SectionHeaderLinkIcon />}\n {linkText}\n {linkShowIcon && linkIconPosition === 'right' && <SectionHeaderLinkIcon />}\n </Link>\n ) : null}\n </div>\n );\n }\n);\n\nSectionHeader.displayName = componentName;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/Badge/Badge.props.ts"],"names":["variants","sizes","badgePropDefs"],"mappings":"AAKA,6EAAMA,CAAAA,CAAW,CAAC,UAAA,CAAY,QAAA,CAAU,SAAS,CAAA,CAC3CC,CAAAA,CAAQ,CAAC,IAAA,CAAM,IAAI,CAAA,CAEZC,CAAAA,aAAgB,CAC3B,OAAA,CAAS,CAAE,SAAA,CAAW,SAAA,CAAW,MAAA,CAAQF,CAAAA,CAAU,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,QAAS,CAAA,CACxF,IAAA,CAAM,CAAE,SAAA,CAAW,MAAA,CAAQ,MAAA,CAAQC,CAAAA,CAAO,UAAA,CAAY,CAAA,CAAA,CAAM,OAAA,CAAS,IAAK,CAC5E,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-W2RI5BYP.cjs","sourcesContent":["import { PropDef } from '../../props/prop-def';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { ComponentPropsWithout, RemovedProps } from '../../types/component-props';\nimport { Responsive } from '../../types/responsive';\n\nconst variants = ['emphasis', 'subtle', 'outline'] as const;\nconst sizes = ['sm', 'md'] as const;\n\nexport const badgePropDefs = {\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'subtle' },\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface BadgeProps\n extends ComponentPropsWithout<'span', RemovedProps>,\n TextTransformProps {\n /**\n * Sets the badges's visual variant\n * @default subtle\n */\n variant?: (typeof variants)[number];\n /**\n * Sets the badge size.\n * @default md\n */\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * Sets the colour scheme.\n * @default info\n */\n colorScheme?:\n | 'info'\n | 'positive'\n | 'danger'\n | 'warning'\n | 'functional'\n | 'energy'\n | 'mobile'\n | 'broadband'\n | 'insurance'\n | 'cashback'\n | 'pig'\n | 'highlight';\n /**\n * Removes the bottom radius, set when the Badge sits directly above another container\n * @default false\n */\n flatBase?: boolean;\n}\n"]}
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-ZAYXQ36V.js";import{a as r}from"./chunk-AFZ3OJUA.js";import{a as t}from"./chunk-RTGGS5XX.js";import{b as o}from"./chunk-4PEMW3UE.js";import*as e from"react";import l from"clsx";var m="Badge",g=o(m),P=e.forwardRef((s,p)=>{let{className:n,colorScheme:f="info",flatBase:c,...d}=t(s,a,r),i={"data-colorscheme":f,"data-bottom-radius-zero":c?"":void 0};return e.createElement("span",{ref:p,className:l(g,n),...i,...d})});P.displayName=m;export{P as a};
2
- //# sourceMappingURL=chunk-YGKRSQ7L.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/Badge/Badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ElementRef } from 'react';\n\nimport clsx from 'clsx';\n\nimport { badgePropDefs, BadgeProps } from './Badge.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\n\nconst componentName = 'Badge';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype BadgeElement = ElementRef<'span'>;\n\nexport const Badge = React.forwardRef<BadgeElement, BadgeProps>((props, ref) => {\n const {\n className,\n colorScheme = 'info',\n flatBase,\n ...badgeProps\n } = extractProps(props, badgePropDefs, textTransformPropDefs);\n const dataAttributeProps = {\n 'data-colorscheme': colorScheme,\n 'data-bottom-radius-zero': flatBase ? '' : undefined,\n };\n return (\n <span\n ref={ref}\n className={clsx(componentClassName, className)}\n {...dataAttributeProps}\n {...badgeProps}\n />\n );\n});\n\nBadge.displayName = componentName;\n"],"mappings":"2JAAA,UAAYA,MAAW,QAGvB,OAAOC,MAAU,OAOjB,IAAMC,EAAgB,QAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAc,aAAqC,CAACC,EAAOC,IAAQ,CAC9E,GAAM,CACJ,UAAAC,EACA,YAAAC,EAAc,OACd,SAAAC,EACA,GAAGC,CACL,EAAIC,EAAaN,EAAOO,EAAeC,CAAqB,EACtDC,EAAqB,CACzB,mBAAoBN,EACpB,0BAA2BC,EAAW,GAAK,MAC7C,EACA,OACE,gBAAC,QACC,IAAKH,EACL,UAAWS,EAAKb,EAAoBK,CAAS,EAC5C,GAAGO,EACH,GAAGJ,EACN,CAEJ,CAAC,EAEDN,EAAM,YAAcH","names":["React","clsx","componentName","componentClassName","withGlobalPrefix","Badge","props","ref","className","colorScheme","flatBase","badgeProps","extractProps","badgePropDefs","textTransformPropDefs","dataAttributeProps","clsx"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/Badge/Badge.props.ts"],"sourcesContent":["import { PropDef } from '../../props/prop-def';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { ComponentPropsWithout, RemovedProps } from '../../types/component-props';\nimport { Responsive } from '../../types/responsive';\n\nconst variants = ['emphasis', 'subtle', 'outline'] as const;\nconst sizes = ['sm', 'md'] as const;\n\nexport const badgePropDefs = {\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'subtle' },\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface BadgeProps\n extends ComponentPropsWithout<'span', RemovedProps>,\n TextTransformProps {\n /**\n * Sets the badges's visual variant\n * @default subtle\n */\n variant?: (typeof variants)[number];\n /**\n * Sets the badge size.\n * @default md\n */\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * Sets the colour scheme.\n * @default info\n */\n colorScheme?:\n | 'info'\n | 'positive'\n | 'danger'\n | 'warning'\n | 'functional'\n | 'energy'\n | 'mobile'\n | 'broadband'\n | 'insurance'\n | 'cashback'\n | 'pig'\n | 'highlight';\n /**\n * Removes the bottom radius, set when the Badge sits directly above another container\n * @default false\n */\n flatBase?: boolean;\n}\n"],"mappings":"AAKA,IAAMA,EAAW,CAAC,WAAY,SAAU,SAAS,EAC3CC,EAAQ,CAAC,KAAM,IAAI,EAEZC,EAAgB,CAC3B,QAAS,CAAE,UAAW,UAAW,OAAQF,EAAU,WAAY,GAAO,QAAS,QAAS,EACxF,KAAM,CAAE,UAAW,OAAQ,OAAQC,EAAO,WAAY,GAAM,QAAS,IAAK,CAC5E","names":["variants","sizes","badgePropDefs"]}
@@ -1,2 +0,0 @@
1
- import{a as c}from"./chunk-C2M7FEJX.js";import{a as n}from"./chunk-JPYVWTDN.js";import{c as f}from"./chunk-5OLLJKEO.js";import{a as l}from"./chunk-432A6CLH.js";import{a as p}from"./chunk-QC4ZMGCU.js";import{b as s}from"./chunk-4PEMW3UE.js";import*as e from"react";import E from"clsx";import{RadioGroup as R}from"radix-ui";var b="Radio",F=s(b),H=e.forwardRef(({id:h,label:o,helperText:a,image:u,className:x,labelFontWeight:y,"aria-labelledby":r,...I},N)=>{let{id:i,labelId:t,helperTextId:d}=p({providedId:h,prefix:"radio"}),{hasGroupHelperText:G,"aria-describedby":v}=f(),m=!G&&a!==void 0,w=!!o;return e.createElement("div",{className:E(F,x)},e.createElement("div",{className:"hearth-RadioContainer"},e.createElement(R.Item,{ref:N,...I,id:i,"aria-describedby":m?d:v,"aria-labelledby":r||(o?t:void 0),className:"hearth-RadioItem"},e.createElement(R.Indicator,{className:"hearth-RadioIndicator"}))),w?e.createElement(l,{direction:"column",gap:"50"},e.createElement(c,{id:t,htmlFor:i,disableUserSelect:!0,fontWeight:y,className:"hearth-RadioLabel"},u,o),m?e.createElement(n,{id:d,disableUserSelect:!0},a):null):null)});H.displayName=b;export{H as a};
2
- //# sourceMappingURL=chunk-ZIV2RZZI.js.map