@utilitywarehouse/hearth-react 0.32.2 → 0.33.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 (130) hide show
  1. package/dist/{chunk-AOWHE3JS.cjs → chunk-2DOX5QRE.cjs} +2 -2
  2. package/dist/{chunk-AOWHE3JS.cjs.map → chunk-2DOX5QRE.cjs.map} +1 -1
  3. package/dist/{chunk-75OLYAFB.cjs → chunk-6BVOGEQF.cjs} +2 -2
  4. package/dist/{chunk-75OLYAFB.cjs.map → chunk-6BVOGEQF.cjs.map} +1 -1
  5. package/dist/{chunk-X2QPGOUI.cjs → chunk-6GC2HQ72.cjs} +2 -2
  6. package/dist/{chunk-X2QPGOUI.cjs.map → chunk-6GC2HQ72.cjs.map} +1 -1
  7. package/dist/{chunk-4VB6TWFP.cjs → chunk-BB2SOLJS.cjs} +2 -2
  8. package/dist/{chunk-4VB6TWFP.cjs.map → chunk-BB2SOLJS.cjs.map} +1 -1
  9. package/dist/{chunk-UXKDDMKT.js → chunk-BHZ3HDCP.js} +2 -2
  10. package/dist/{chunk-SWIT4LGB.cjs → chunk-CICNJKHM.cjs} +2 -2
  11. package/dist/{chunk-SWIT4LGB.cjs.map → chunk-CICNJKHM.cjs.map} +1 -1
  12. package/dist/chunk-DMMORU7Y.cjs +4 -0
  13. package/dist/chunk-DMMORU7Y.cjs.map +1 -0
  14. package/dist/{chunk-OQ7TRS57.js → chunk-DYMXUQM4.js} +2 -2
  15. package/dist/{chunk-7ILZKQOQ.js → chunk-F2ZTXLIG.js} +2 -2
  16. package/dist/{chunk-TR7MKE7F.js → chunk-FSOQCT7B.js} +2 -2
  17. package/dist/{chunk-IOXDXAHO.cjs → chunk-HE73I4VO.cjs} +2 -2
  18. package/dist/{chunk-IOXDXAHO.cjs.map → chunk-HE73I4VO.cjs.map} +1 -1
  19. package/dist/{chunk-TBO5GN3I.js → chunk-IEKB4IRY.js} +2 -2
  20. package/dist/chunk-IOZE7MTU.cjs +4 -0
  21. package/dist/chunk-IOZE7MTU.cjs.map +1 -0
  22. package/dist/{chunk-KWBAJWSJ.cjs → chunk-JCNQCBO7.cjs} +2 -2
  23. package/dist/{chunk-KWBAJWSJ.cjs.map → chunk-JCNQCBO7.cjs.map} +1 -1
  24. package/dist/{chunk-XAJGQUSC.js → chunk-KNPNKYUS.js} +2 -2
  25. package/dist/{chunk-2YZ3O2PW.js → chunk-L3VPQN5T.js} +2 -2
  26. package/dist/{chunk-NNELZC2A.cjs → chunk-LFHNFACK.cjs} +2 -2
  27. package/dist/{chunk-NNELZC2A.cjs.map → chunk-LFHNFACK.cjs.map} +1 -1
  28. package/dist/chunk-NPCUVYMJ.js +4 -0
  29. package/dist/chunk-NPCUVYMJ.js.map +1 -0
  30. package/dist/chunk-OEEEN4T4.js +4 -0
  31. package/dist/chunk-OEEEN4T4.js.map +1 -0
  32. package/dist/{chunk-KKHWPT5B.js → chunk-PGDFEVA5.js} +2 -2
  33. package/dist/{chunk-N2PQS6HG.js → chunk-PJCXETFD.js} +2 -2
  34. package/dist/chunk-Q7M52MR2.cjs +4 -0
  35. package/dist/chunk-Q7M52MR2.cjs.map +1 -0
  36. package/dist/{chunk-LA3N4ST5.js → chunk-QVE4N4F2.js} +2 -2
  37. package/dist/chunk-R5I57J2E.js +4 -0
  38. package/dist/chunk-R5I57J2E.js.map +1 -0
  39. package/dist/{chunk-ZPQZJIT3.cjs → chunk-R6KCU4S7.cjs} +2 -2
  40. package/dist/{chunk-ZPQZJIT3.cjs.map → chunk-R6KCU4S7.cjs.map} +1 -1
  41. package/dist/{chunk-NV5OZD3V.cjs → chunk-RVXQZ4CI.cjs} +2 -2
  42. package/dist/{chunk-NV5OZD3V.cjs.map → chunk-RVXQZ4CI.cjs.map} +1 -1
  43. package/dist/{chunk-XCT44JDG.js → chunk-S4U7KSTZ.js} +2 -2
  44. package/dist/{chunk-HNPNWQMD.js → chunk-V4BZIPQB.js} +2 -2
  45. package/dist/{chunk-LOKIAOWS.js → chunk-VVBUEPWH.js} +2 -2
  46. package/dist/{chunk-3SXNUUIV.cjs → chunk-VZ37XNSE.cjs} +2 -2
  47. package/dist/{chunk-3SXNUUIV.cjs.map → chunk-VZ37XNSE.cjs.map} +1 -1
  48. package/dist/{chunk-L7I7AUWH.cjs → chunk-XL66CZU5.cjs} +2 -2
  49. package/dist/{chunk-L7I7AUWH.cjs.map → chunk-XL66CZU5.cjs.map} +1 -1
  50. package/dist/{chunk-CKE63SKW.js → chunk-Y2YBHHIX.js} +2 -2
  51. package/dist/{chunk-KKJEZRGJ.cjs → chunk-YEZ6N62U.cjs} +2 -2
  52. package/dist/{chunk-KKJEZRGJ.cjs.map → chunk-YEZ6N62U.cjs.map} +1 -1
  53. package/dist/{chunk-XZBPR3WG.cjs → chunk-ZKHAEQHH.cjs} +2 -2
  54. package/dist/{chunk-XZBPR3WG.cjs.map → chunk-ZKHAEQHH.cjs.map} +1 -1
  55. package/dist/components/Accordion/Accordion.cjs +1 -1
  56. package/dist/components/Accordion/Accordion.js +1 -1
  57. package/dist/components/Button/Button.cjs +1 -1
  58. package/dist/components/Button/Button.js +1 -1
  59. package/dist/components/CardAccordion/CardAccordion.cjs +1 -1
  60. package/dist/components/CardAccordion/CardAccordion.js +1 -1
  61. package/dist/components/CardAccordion/CardAccordionButton.cjs +1 -1
  62. package/dist/components/CardAccordion/CardAccordionButton.js +1 -1
  63. package/dist/components/CardAccordion/CardAccordionItem.cjs +1 -1
  64. package/dist/components/CardAccordion/CardAccordionItem.js +1 -1
  65. package/dist/components/DescriptionList/DescriptionList.cjs +1 -1
  66. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  67. package/dist/components/ExpandableCard/ExpandableCardGroup.cjs +1 -1
  68. package/dist/components/ExpandableCard/ExpandableCardGroup.js +1 -1
  69. package/dist/components/List/List.cjs +1 -1
  70. package/dist/components/List/List.js +1 -1
  71. package/dist/components/Modal/Modal.cjs +1 -1
  72. package/dist/components/Modal/Modal.js +1 -1
  73. package/dist/components/Pagination/Pagination.cjs +1 -1
  74. package/dist/components/Pagination/Pagination.js +1 -1
  75. package/dist/components/RadioTile/RadioTile.cjs +1 -1
  76. package/dist/components/RadioTile/RadioTile.js +1 -1
  77. package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
  78. package/dist/components/SectionHeader/SectionHeader.js +1 -1
  79. package/dist/components/Skeleton/SkeletonBodyText.cjs +1 -1
  80. package/dist/components/Skeleton/SkeletonBodyText.js +1 -1
  81. package/dist/components/Table/TablePagination.cjs +1 -1
  82. package/dist/components/Table/TablePagination.js +1 -1
  83. package/dist/components/Timeline/Timeline.cjs +4 -0
  84. package/dist/components/Timeline/Timeline.cjs.map +1 -0
  85. package/dist/components/Timeline/Timeline.d.ts +12 -0
  86. package/dist/components/Timeline/Timeline.d.ts.map +1 -0
  87. package/dist/components/Timeline/Timeline.js +4 -0
  88. package/dist/components/Timeline/Timeline.js.map +1 -0
  89. package/dist/components/Timeline/Timeline.props.cjs +4 -0
  90. package/dist/components/Timeline/Timeline.props.cjs.map +1 -0
  91. package/dist/components/Timeline/Timeline.props.d.ts +47 -0
  92. package/dist/components/Timeline/Timeline.props.d.ts.map +1 -0
  93. package/dist/components/Timeline/Timeline.props.js +4 -0
  94. package/dist/components/Timeline/Timeline.props.js.map +1 -0
  95. package/dist/components/Timeline/TimelineItem.cjs +4 -0
  96. package/dist/components/Timeline/TimelineItem.cjs.map +1 -0
  97. package/dist/components/Timeline/TimelineItem.d.ts +11 -0
  98. package/dist/components/Timeline/TimelineItem.d.ts.map +1 -0
  99. package/dist/components/Timeline/TimelineItem.js +4 -0
  100. package/dist/components/Timeline/TimelineItem.js.map +1 -0
  101. package/dist/components/Timeline/TimelineItem.props.cjs +3 -0
  102. package/dist/components/Timeline/TimelineItem.props.cjs.map +1 -0
  103. package/dist/components/Timeline/TimelineItem.props.d.ts +17 -0
  104. package/dist/components/Timeline/TimelineItem.props.d.ts.map +1 -0
  105. package/dist/components/Timeline/TimelineItem.props.js +3 -0
  106. package/dist/components/Timeline/TimelineItem.props.js.map +1 -0
  107. package/dist/index.cjs +1 -1
  108. package/dist/index.cjs.map +1 -1
  109. package/dist/index.d.ts +4 -0
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +1 -1
  112. package/package.json +3 -3
  113. package/public/llms/components/timeline.md +183 -0
  114. package/public/llms/docs/getting-started.md +1 -1
  115. package/public/llms.txt +1 -0
  116. package/styles.css +1 -1
  117. /package/dist/{chunk-UXKDDMKT.js.map → chunk-BHZ3HDCP.js.map} +0 -0
  118. /package/dist/{chunk-OQ7TRS57.js.map → chunk-DYMXUQM4.js.map} +0 -0
  119. /package/dist/{chunk-7ILZKQOQ.js.map → chunk-F2ZTXLIG.js.map} +0 -0
  120. /package/dist/{chunk-TR7MKE7F.js.map → chunk-FSOQCT7B.js.map} +0 -0
  121. /package/dist/{chunk-TBO5GN3I.js.map → chunk-IEKB4IRY.js.map} +0 -0
  122. /package/dist/{chunk-XAJGQUSC.js.map → chunk-KNPNKYUS.js.map} +0 -0
  123. /package/dist/{chunk-2YZ3O2PW.js.map → chunk-L3VPQN5T.js.map} +0 -0
  124. /package/dist/{chunk-KKHWPT5B.js.map → chunk-PGDFEVA5.js.map} +0 -0
  125. /package/dist/{chunk-N2PQS6HG.js.map → chunk-PJCXETFD.js.map} +0 -0
  126. /package/dist/{chunk-LA3N4ST5.js.map → chunk-QVE4N4F2.js.map} +0 -0
  127. /package/dist/{chunk-XCT44JDG.js.map → chunk-S4U7KSTZ.js.map} +0 -0
  128. /package/dist/{chunk-HNPNWQMD.js.map → chunk-V4BZIPQB.js.map} +0 -0
  129. /package/dist/{chunk-LOKIAOWS.js.map → chunk-VVBUEPWH.js.map} +0 -0
  130. /package/dist/{chunk-CKE63SKW.js.map → chunk-Y2YBHHIX.js.map} +0 -0
@@ -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 _chunkL7I7AUWHcjs = require('./chunk-L7I7AUWH.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,o)=>{let{id:v,as:t="ul",className:x,colorScheme:r=void 0,variant:n,heading:i,headingElement:T,helperText:E,trailingContent:H,validationText:S,validationStatus:B,children:l,paddingNone:I,"aria-label":d,"aria-labelledby":R,...s}=_chunkZPJNQBTNcjs.a.call(void 0, P,_chunkOB7O3UFLcjs.a),w={heading:i,headingElement:T,helperText:E,trailingContent:H,validationText:S,validationStatus:B},{id:m,labelId:p}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":_nullishCoalesce(R, () => ((!!i&&!d?p:void 0))),"data-padding-none":I?"":void 0};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, _chunkL7I7AUWHcjs.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, t,{ref:o,...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, t,{ref:o,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;exports.a = O;
4
- //# sourceMappingURL=chunk-AOWHE3JS.cjs.map
3
+ var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunkXL66CZU5cjs = require('./chunk-XL66CZU5.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,o)=>{let{id:v,as:t="ul",className:x,colorScheme:r=void 0,variant:n,heading:i,headingElement:T,helperText:E,trailingContent:H,validationText:S,validationStatus:B,children:l,paddingNone:I,"aria-label":d,"aria-labelledby":R,...s}=_chunkZPJNQBTNcjs.a.call(void 0, P,_chunkOB7O3UFLcjs.a),w={heading:i,headingElement:T,helperText:E,trailingContent:H,validationText:S,validationStatus:B},{id:m,labelId:p}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":_nullishCoalesce(R, () => ((!!i&&!d?p:void 0))),"data-padding-none":I?"":void 0};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, _chunkXL66CZU5cjs.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, t,{ref:o,...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, t,{ref:o,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;exports.a = O;
4
+ //# sourceMappingURL=chunk-2DOX5QRE.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-AOWHE3JS.cjs","../src/components/List/List.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","List","forwardRef","props","ref","providedId","Tag","className","colorScheme","variant","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,+CAoEvB,IAxDEA,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,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,CAAalB,CAAOmB,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,CAAArB,CAAAA,CAAY,MAAA,CAAQ,MAAO,CAAC,CAAA,CAKvDsB,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,CAC1C,CAAA,CAEA,OACEW,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,CAAG9B,CAAoBQ,CAAS,CAAA,CAAG,aAAA,CAAaR,CAAAA,CAC7D,QAAA,CAAA,CAAAW,CAAAA,CAAUoB,6BAAAA,mBAACC,CAAA,CAAc,EAAA,CAAIN,CAAAA,CAAU,GAAGF,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACnEd,CAAAA,GAAY,KAAA,CAAA,EAAaD,CAAAA,GAAgB,KAAA,CAAA,CACxCsB,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-AOWHE3JS.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 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 };\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-2DOX5QRE.cjs","../src/components/List/List.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","List","forwardRef","props","ref","providedId","Tag","className","colorScheme","variant","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,+CAoEvB,IAxDEA,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,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,CAAalB,CAAOmB,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,CAAArB,CAAAA,CAAY,MAAA,CAAQ,MAAO,CAAC,CAAA,CAKvDsB,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,CAC1C,CAAA,CAEA,OACEW,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,CAAG9B,CAAoBQ,CAAS,CAAA,CAAG,aAAA,CAAaR,CAAAA,CAC7D,QAAA,CAAA,CAAAW,CAAAA,CAAUoB,6BAAAA,mBAACC,CAAA,CAAc,EAAA,CAAIN,CAAAA,CAAU,GAAGF,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACnEd,CAAAA,GAAY,KAAA,CAAA,EAAaD,CAAAA,GAAgB,KAAA,CAAA,CACxCsB,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-2DOX5QRE.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 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 };\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 _chunk2XTXL6ZEcjs = require('./chunk-2XTXL6ZE.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.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="SkeletonBodyText",d=_chunk4Q432K4Wcjs.b.call(void 0, y),R= exports.a =_react.forwardRef.call(void 0, (c,t)=>{let{lines:r="1",className:m,margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u,...n}=_chunkZPJNQBTNcjs.a.call(void 0, c,_chunk2XTXL6ZEcjs.a),i={margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u};return r==="1"?_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{as:"div",ref:t,className:_chunkONNSZMWFcjs.a.call(void 0, d,m),...i,...n}):_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{ref:t,direction:"column",gap:"75",...i,children:Array.from({length:Number(r)},(v,C)=>_jsxruntime.jsx.call(void 0, "div",{className:_chunkONNSZMWFcjs.a.call(void 0, d,m),...n},C))})});R.displayName=y;exports.a = R;
4
- //# sourceMappingURL=chunk-75OLYAFB.cjs.map
3
+ var _chunk2XTXL6ZEcjs = require('./chunk-2XTXL6ZE.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.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="SkeletonBodyText",d=_chunk4Q432K4Wcjs.b.call(void 0, y),R= exports.a =_react.forwardRef.call(void 0, (c,t)=>{let{lines:r="1",className:m,margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u,...n}=_chunkZPJNQBTNcjs.a.call(void 0, c,_chunk2XTXL6ZEcjs.a),i={margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u};return r==="1"?_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{as:"div",ref:t,className:_chunkONNSZMWFcjs.a.call(void 0, d,m),...i,...n}):_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{ref:t,direction:"column",gap:"75",...i,children:Array.from({length:Number(r)},(v,C)=>_jsxruntime.jsx.call(void 0, "div",{className:_chunkONNSZMWFcjs.a.call(void 0, d,m),...n},C))})});R.displayName=y;exports.a = R;
4
+ //# sourceMappingURL=chunk-6BVOGEQF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-75OLYAFB.cjs","../src/components/Skeleton/SkeletonBodyText.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SkeletonBodyText","forwardRef","props","ref","lines","className","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","width","maxWidth","minWidth","skeletonBodyTextProps","extractProps","skeletonBodyTextPropDefs","styleProps","jsx","Box","cn","Flex","_","index"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,8BCArN,+CAuDnB,IA9CFA,CAAAA,CAAiB,kBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAmBC,+BAAAA,CAC7BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,KAAA,CAAAC,CAAAA,CAAQ,GAAA,CACR,SAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaf,CAAOgB,mBAAwB,CAAA,CAE1CC,CAAAA,CAAa,CACjB,MAAA,CAAAb,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CACF,CAAA,CAEA,OAAIX,CAAAA,GAAU,GAAA,CAEVgB,6BAAAA,mBAACC,CAAA,CACC,EAAA,CAAG,KAAA,CACH,GAAA,CAAKlB,CAAAA,CACL,SAAA,CAAWmB,iCAAAA,CAAGxB,CAAoBO,CAAS,CAAA,CAC1C,GAAGc,CAAAA,CACH,GAAGH,CAAAA,CACN,CAAA,CAKFI,6BAAAA,mBAACG,CAAA,CAAK,GAAA,CAAKpB,CAAAA,CAAK,SAAA,CAAU,QAAA,CAAS,GAAA,CAAI,IAAA,CAAM,GAAGgB,CAAAA,CAC7C,QAAA,CAAA,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAAQ,MAAA,CAAOf,CAAK,CAAE,CAAA,CAAG,CAACoB,CAAAA,CAAGC,CAAAA,CAAAA,EACzCL,6BAAAA,KAAC,CAAA,CAEC,SAAA,CAAWE,iCAAAA,CAAGxB,CAAoBO,CAAS,CAAA,CAC1C,GAAGW,CAAAA,CAAAA,CAFCS,CAGP,CACD,CAAA,CACH,CAEJ,CACF,CAAA,CAEAzB,CAAAA,CAAiB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-75OLYAFB.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 { skeletonBodyTextPropDefs, type SkeletonBodyTextProps } from './SkeletonBodyText.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { Flex } from '../Flex/Flex';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'SkeletonBodyText';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SkeletonBodyTextElement = ComponentRef<'div'>;\n\n/**\n * Use SkeletonBodyText as a loading placeholder for BodyText content, inside\n * a Skeleton wrapper. It supports multiple lines via the `lines` prop and the\n * same size props as BodyText. For placeholder headings, use SkeletonHeading;\n * for arbitrary shapes like images or avatars, use SkeletonBox instead.\n *\n * @summary A loading placeholder for BodyText content, supporting multiple lines.\n */\nexport const SkeletonBodyText = forwardRef<SkeletonBodyTextElement, SkeletonBodyTextProps>(\n (props, ref) => {\n const {\n lines = '1',\n className,\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginX,\n marginY,\n width,\n maxWidth,\n minWidth,\n ...skeletonBodyTextProps\n } = extractProps(props, skeletonBodyTextPropDefs);\n\n const styleProps = {\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginX,\n marginY,\n width,\n maxWidth,\n minWidth,\n };\n\n if (lines === '1') {\n return (\n <Box\n as=\"div\"\n ref={ref}\n className={cn(componentClassName, className)}\n {...styleProps}\n {...skeletonBodyTextProps}\n />\n );\n }\n\n return (\n <Flex ref={ref} direction=\"column\" gap=\"75\" {...styleProps}>\n {Array.from({ length: Number(lines) }, (_, index) => (\n <div\n key={index}\n className={cn(componentClassName, className)}\n {...skeletonBodyTextProps}\n />\n ))}\n </Flex>\n );\n }\n);\n\nSkeletonBodyText.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6BVOGEQF.cjs","../src/components/Skeleton/SkeletonBodyText.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SkeletonBodyText","forwardRef","props","ref","lines","className","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","width","maxWidth","minWidth","skeletonBodyTextProps","extractProps","skeletonBodyTextPropDefs","styleProps","jsx","Box","cn","Flex","_","index"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,8BCArN,+CAuDnB,IA9CFA,CAAAA,CAAiB,kBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAmBC,+BAAAA,CAC7BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,KAAA,CAAAC,CAAAA,CAAQ,GAAA,CACR,SAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaf,CAAOgB,mBAAwB,CAAA,CAE1CC,CAAAA,CAAa,CACjB,MAAA,CAAAb,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CACF,CAAA,CAEA,OAAIX,CAAAA,GAAU,GAAA,CAEVgB,6BAAAA,mBAACC,CAAA,CACC,EAAA,CAAG,KAAA,CACH,GAAA,CAAKlB,CAAAA,CACL,SAAA,CAAWmB,iCAAAA,CAAGxB,CAAoBO,CAAS,CAAA,CAC1C,GAAGc,CAAAA,CACH,GAAGH,CAAAA,CACN,CAAA,CAKFI,6BAAAA,mBAACG,CAAA,CAAK,GAAA,CAAKpB,CAAAA,CAAK,SAAA,CAAU,QAAA,CAAS,GAAA,CAAI,IAAA,CAAM,GAAGgB,CAAAA,CAC7C,QAAA,CAAA,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAAQ,MAAA,CAAOf,CAAK,CAAE,CAAA,CAAG,CAACoB,CAAAA,CAAGC,CAAAA,CAAAA,EACzCL,6BAAAA,KAAC,CAAA,CAEC,SAAA,CAAWE,iCAAAA,CAAGxB,CAAoBO,CAAS,CAAA,CAC1C,GAAGW,CAAAA,CAAAA,CAFCS,CAGP,CACD,CAAA,CACH,CAEJ,CACF,CAAA,CAEAzB,CAAAA,CAAiB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6BVOGEQF.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 { skeletonBodyTextPropDefs, type SkeletonBodyTextProps } from './SkeletonBodyText.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { Flex } from '../Flex/Flex';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'SkeletonBodyText';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SkeletonBodyTextElement = ComponentRef<'div'>;\n\n/**\n * Use SkeletonBodyText as a loading placeholder for BodyText content, inside\n * a Skeleton wrapper. It supports multiple lines via the `lines` prop and the\n * same size props as BodyText. For placeholder headings, use SkeletonHeading;\n * for arbitrary shapes like images or avatars, use SkeletonBox instead.\n *\n * @summary A loading placeholder for BodyText content, supporting multiple lines.\n */\nexport const SkeletonBodyText = forwardRef<SkeletonBodyTextElement, SkeletonBodyTextProps>(\n (props, ref) => {\n const {\n lines = '1',\n className,\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginX,\n marginY,\n width,\n maxWidth,\n minWidth,\n ...skeletonBodyTextProps\n } = extractProps(props, skeletonBodyTextPropDefs);\n\n const styleProps = {\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginX,\n marginY,\n width,\n maxWidth,\n minWidth,\n };\n\n if (lines === '1') {\n return (\n <Box\n as=\"div\"\n ref={ref}\n className={cn(componentClassName, className)}\n {...styleProps}\n {...skeletonBodyTextProps}\n />\n );\n }\n\n return (\n <Flex ref={ref} direction=\"column\" gap=\"75\" {...styleProps}>\n {Array.from({ length: Number(lines) }, (_, index) => (\n <div\n key={index}\n className={cn(componentClassName, className)}\n {...skeletonBodyTextProps}\n />\n ))}\n </Flex>\n );\n }\n);\n\nSkeletonBodyText.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkL7I7AUWHcjs = require('./chunk-L7I7AUWH.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var s="Accordion",p=_chunk4Q432K4Wcjs.b.call(void 0, s),u= exports.a =_react.forwardRef.call(void 0, (a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=_chunkZPJNQBTNcjs.a.call(void 0, a,_chunkOB7O3UFLcjs.a),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return _jsxruntime.jsxs.call(void 0, "div",{ref:d,className:_chunkONNSZMWFcjs.a.call(void 0, p,l),"data-testid":p,children:[t?_jsxruntime.jsx.call(void 0, _chunkL7I7AUWHcjs.a,{...R}):null,_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{...y})]})});u.displayName=s;exports.a = u;
4
- //# sourceMappingURL=chunk-X2QPGOUI.cjs.map
3
+ var _chunkXL66CZU5cjs = require('./chunk-XL66CZU5.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var s="Accordion",p=_chunk4Q432K4Wcjs.b.call(void 0, s),u= exports.a =_react.forwardRef.call(void 0, (a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=_chunkZPJNQBTNcjs.a.call(void 0, a,_chunkOB7O3UFLcjs.a),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return _jsxruntime.jsxs.call(void 0, "div",{ref:d,className:_chunkONNSZMWFcjs.a.call(void 0, p,l),"data-testid":p,children:[t?_jsxruntime.jsx.call(void 0, _chunkXL66CZU5cjs.a,{...R}):null,_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{...y})]})});u.displayName=s;exports.a = u;
4
+ //# sourceMappingURL=chunk-6GC2HQ72.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-X2QPGOUI.cjs","../src/components/Accordion/Accordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Accordion","forwardRef","props","ref","className","type","heading","headingElement","helperText","trailingContent","validationText","validationStatus","collapsible","restProps","extractProps","marginPropDefs","sectionHeaderProps","accordionProps","jsxs","cn","jsx","SectionHeader","AccordionPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAjL,mCAKqB,+CAoD5C,IA/CEA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAYC,+BAAAA,CAA8CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACpF,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CAAO,UAAA,CACP,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,IAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaZ,CAAOa,mBAAc,CAAA,CAEhCC,CAAAA,CAAqB,CACzB,OAAA,CAAAV,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEMM,CAAAA,CAAiB,CACrB,IAAA,CAAAZ,CAAAA,CACA,GAAGQ,CAAAA,CAGH,GAAIR,CAAAA,GAAS,QAAA,CAAW,CAAE,WAAA,CAAAO,CAAY,CAAA,CAAI,CAAC,CAC7C,CAAA,CAEA,OACEM,8BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKf,CAAAA,CAAK,SAAA,CAAWgB,iCAAAA,CAAGrB,CAAoBM,CAAS,CAAA,CAAG,aAAA,CAAaN,CAAAA,CACvE,QAAA,CAAA,CAAAQ,CAAAA,CAAUc,6BAAAA,mBAACC,CAAA,CAAe,GAAGL,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACvDI,6BAAAA,kBAACE,CAAmB,IAAA,CAAnB,CAAyB,GAAGL,CAAAA,CAAgB,CAAA,CAAA,CAC/C,CAEJ,CAAC,CAAA,CAEDjB,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-X2QPGOUI.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { AccordionProps } from './Accordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst COMPONENT_NAME = 'Accordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype AccordionElement = ComponentRef<'div'>;\n\n/**\n * Use Accordion to let users expand or collapse individual content sections,\n * presenting a large amount of information in a compact, organised interface.\n * Compose it with `AccordionItem`, `AccordionHeader`, `AccordionTrigger`, and\n * `AccordionContent` for each disclosure item. The `type` prop is required and\n * determines whether one (`single`) or multiple (`multiple`) items can be\n * expanded at once.\n *\n * @summary A vertically stacked set of expandable and collapsible content sections.\n */\nexport const Accordion = forwardRef<AccordionElement, AccordionProps>((props, ref) => {\n const {\n className,\n type = 'multiple',\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n collapsible,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const accordionProps = {\n type,\n ...restProps,\n // `collapsible` is only valid for `type=\"single\"` — Radix doesn't strip it for\n // `type=\"multiple\"`, so passing it regardless would leak onto the DOM node.\n ...(type === 'single' ? { collapsible } : {}),\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n return (\n <div ref={ref} className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <AccordionPrimitive.Root {...accordionProps} />\n </div>\n );\n});\n\nAccordion.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6GC2HQ72.cjs","../src/components/Accordion/Accordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Accordion","forwardRef","props","ref","className","type","heading","headingElement","helperText","trailingContent","validationText","validationStatus","collapsible","restProps","extractProps","marginPropDefs","sectionHeaderProps","accordionProps","jsxs","cn","jsx","SectionHeader","AccordionPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAjL,mCAKqB,+CAoD5C,IA/CEA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAYC,+BAAAA,CAA8CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACpF,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CAAO,UAAA,CACP,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,IAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaZ,CAAOa,mBAAc,CAAA,CAEhCC,CAAAA,CAAqB,CACzB,OAAA,CAAAV,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEMM,CAAAA,CAAiB,CACrB,IAAA,CAAAZ,CAAAA,CACA,GAAGQ,CAAAA,CAGH,GAAIR,CAAAA,GAAS,QAAA,CAAW,CAAE,WAAA,CAAAO,CAAY,CAAA,CAAI,CAAC,CAC7C,CAAA,CAEA,OACEM,8BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKf,CAAAA,CAAK,SAAA,CAAWgB,iCAAAA,CAAGrB,CAAoBM,CAAS,CAAA,CAAG,aAAA,CAAaN,CAAAA,CACvE,QAAA,CAAA,CAAAQ,CAAAA,CAAUc,6BAAAA,mBAACC,CAAA,CAAe,GAAGL,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACvDI,6BAAAA,kBAACE,CAAmB,IAAA,CAAnB,CAAyB,GAAGL,CAAAA,CAAgB,CAAA,CAAA,CAC/C,CAEJ,CAAC,CAAA,CAEDjB,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6GC2HQ72.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { AccordionProps } from './Accordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst COMPONENT_NAME = 'Accordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype AccordionElement = ComponentRef<'div'>;\n\n/**\n * Use Accordion to let users expand or collapse individual content sections,\n * presenting a large amount of information in a compact, organised interface.\n * Compose it with `AccordionItem`, `AccordionHeader`, `AccordionTrigger`, and\n * `AccordionContent` for each disclosure item. The `type` prop is required and\n * determines whether one (`single`) or multiple (`multiple`) items can be\n * expanded at once.\n *\n * @summary A vertically stacked set of expandable and collapsible content sections.\n */\nexport const Accordion = forwardRef<AccordionElement, AccordionProps>((props, ref) => {\n const {\n className,\n type = 'multiple',\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n collapsible,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const accordionProps = {\n type,\n ...restProps,\n // `collapsible` is only valid for `type=\"single\"` — Radix doesn't strip it for\n // `type=\"multiple\"`, so passing it regardless would leak onto the DOM node.\n ...(type === 'single' ? { collapsible } : {}),\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n return (\n <div ref={ref} className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <AccordionPrimitive.Root {...accordionProps} />\n </div>\n );\n});\n\nAccordion.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkHMT3R4UWcjs = require('./chunk-HMT3R4UW.cjs');var _chunkOTQHBR7Ccjs = require('./chunk-OTQHBR7C.cjs');var _chunkHHKQ3ZBDcjs = require('./chunk-HHKQ3ZBD.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _chunkZSLWPF2Ucjs = require('./chunk-ZSLWPF2U.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var c="Button",t=_chunk4Q432K4Wcjs.b.call(void 0, c),h= exports.a =_react.forwardRef.call(void 0, (f,u)=>{let{className:B,children:r,disabled:N,loading:e,asChild:n,...b}=_chunkZPJNQBTNcjs.a.call(void 0, f,_chunkOTQHBR7Ccjs.a),P=e?_chunkZSLWPF2Ucjs.a.call(void 0, {asChild:n,children:r},C=>_jsxruntime.jsxs.call(void 0, "div",{className:`${t}Loading`,children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkHHKQ3ZBDcjs.a,{size:"xs",currentColor:!0})}),_jsxruntime.jsx.call(void 0, "span",{className:`${t}Hidden`,children:C})]})):r;return _jsxruntime.jsx.call(void 0, _chunkHMT3R4UWcjs.a,{ref:u,className:_chunkONNSZMWFcjs.a.call(void 0, t,B),disabled:N||e,"aria-label":e?"Loading":void 0,"data-testid":t,asChild:n,...b,children:P})});h.displayName=c;exports.a = h;
4
- //# sourceMappingURL=chunk-4VB6TWFP.cjs.map
3
+ var _chunkOTQHBR7Ccjs = require('./chunk-OTQHBR7C.cjs');var _chunkHMT3R4UWcjs = require('./chunk-HMT3R4UW.cjs');var _chunkHHKQ3ZBDcjs = require('./chunk-HHKQ3ZBD.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _chunkZSLWPF2Ucjs = require('./chunk-ZSLWPF2U.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var c="Button",t=_chunk4Q432K4Wcjs.b.call(void 0, c),h= exports.a =_react.forwardRef.call(void 0, (f,u)=>{let{className:B,children:r,disabled:N,loading:e,asChild:n,...b}=_chunkZPJNQBTNcjs.a.call(void 0, f,_chunkOTQHBR7Ccjs.a),P=e?_chunkZSLWPF2Ucjs.a.call(void 0, {asChild:n,children:r},C=>_jsxruntime.jsxs.call(void 0, "div",{className:`${t}Loading`,children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkHHKQ3ZBDcjs.a,{size:"xs",currentColor:!0})}),_jsxruntime.jsx.call(void 0, "span",{className:`${t}Hidden`,children:C})]})):r;return _jsxruntime.jsx.call(void 0, _chunkHMT3R4UWcjs.a,{ref:u,className:_chunkONNSZMWFcjs.a.call(void 0, t,B),disabled:N||e,"aria-label":e?"Loading":void 0,"data-testid":t,asChild:n,...b,children:P})});h.displayName=c;exports.a = h;
4
+ //# sourceMappingURL=chunk-BB2SOLJS.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-4VB6TWFP.cjs","../src/components/Button/Button.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Button","forwardRef","props","ref","className","children","disabled","loading","asChild","buttonProps","extractProps","buttonPropDefs","content","getSubtree","jsxs"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCQnQ,+CAsBnB,IApBFA,CAAAA,CAAiB,QAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAASC,+BAAAA,CAA4CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC/E,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAAA,CAAU,OAAA,CAAAC,CAAAA,CAAS,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAY,CAAA,CAAIC,iCAAAA,CAC1ER,CACAS,mBACF,CAAA,CACMC,CAAAA,CAAUL,CAAAA,CACZM,iCAAAA,CAAa,OAAA,CAAAL,CAAAA,CAAS,QAAA,CAAAH,CAAS,CAAA,CAAGA,CAAAA,EAChCS,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-4VB6TWFP.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 { ButtonBase, ButtonBaseElement } from '../ButtonBase/ButtonBase';\nimport { buttonPropDefs } from './Button.props';\nimport type { ButtonProps } from './Button.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { getSubtree } from '../../helpers/get-subtree';\nimport { forwardRef } from 'react';\n\nconst COMPONENT_NAME = 'Button';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use Button to trigger an action or event, such as submitting a form or\n * displaying a dialog. Use the `variant` prop to convey emphasis: `emphasis`\n * and `solid` for primary actions, `outline` for medium-emphasis, non-critical\n * actions, and `ghost` for the lowest-prominence actions. For actions that\n * navigate somewhere, use a link instead, or render Button `asChild` with an\n * anchor or router link.\n *\n * @summary Triggers an action or event, such as submitting a form or displaying a dialog.\n */\nexport const Button = forwardRef<ButtonBaseElement, ButtonProps>((props, ref) => {\n const { className, children, disabled, loading, asChild, ...buttonProps } = extractProps(\n props,\n buttonPropDefs\n );\n const content = loading\n ? getSubtree({ asChild, children }, children => (\n <div className={`${componentClassName}Loading`}>\n <div>\n <Spinner size=\"xs\" currentColor />\n </div>\n <span className={`${componentClassName}Hidden`}>{children}</span>\n </div>\n ))\n : children;\n return (\n <ButtonBase\n ref={ref}\n className={cn(componentClassName, className)}\n disabled={disabled || loading}\n aria-label={loading ? 'Loading' : undefined}\n data-testid={componentClassName}\n asChild={asChild}\n {...buttonProps}\n >\n {content}\n </ButtonBase>\n );\n});\n\nButton.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-BB2SOLJS.cjs","../src/components/Button/Button.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Button","forwardRef","props","ref","className","children","disabled","loading","asChild","buttonProps","extractProps","buttonPropDefs","content","getSubtree","jsxs"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCQnQ,+CAsBnB,IApBFA,CAAAA,CAAiB,QAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAASC,+BAAAA,CAA4CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC/E,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAAA,CAAU,OAAA,CAAAC,CAAAA,CAAS,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAY,CAAA,CAAIC,iCAAAA,CAC1ER,CACAS,mBACF,CAAA,CACMC,CAAAA,CAAUL,CAAAA,CACZM,iCAAAA,CAAa,OAAA,CAAAL,CAAAA,CAAS,QAAA,CAAAH,CAAS,CAAA,CAAGA,CAAAA,EAChCS,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-BB2SOLJS.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 { ButtonBase, ButtonBaseElement } from '../ButtonBase/ButtonBase';\nimport { buttonPropDefs } from './Button.props';\nimport type { ButtonProps } from './Button.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { getSubtree } from '../../helpers/get-subtree';\nimport { forwardRef } from 'react';\n\nconst COMPONENT_NAME = 'Button';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\n/**\n * Use Button to trigger an action or event, such as submitting a form or\n * displaying a dialog. Use the `variant` prop to convey emphasis: `emphasis`\n * and `solid` for primary actions, `outline` for medium-emphasis, non-critical\n * actions, and `ghost` for the lowest-prominence actions. For actions that\n * navigate somewhere, use a link instead, or render Button `asChild` with an\n * anchor or router link.\n *\n * @summary Triggers an action or event, such as submitting a form or displaying a dialog.\n */\nexport const Button = forwardRef<ButtonBaseElement, ButtonProps>((props, ref) => {\n const { className, children, disabled, loading, asChild, ...buttonProps } = extractProps(\n props,\n buttonPropDefs\n );\n const content = loading\n ? getSubtree({ asChild, children }, children => (\n <div className={`${componentClassName}Loading`}>\n <div>\n <Spinner size=\"xs\" currentColor />\n </div>\n <span className={`${componentClassName}Hidden`}>{children}</span>\n </div>\n ))\n : children;\n return (\n <ButtonBase\n ref={ref}\n className={cn(componentClassName, className)}\n disabled={disabled || loading}\n aria-label={loading ? 'Loading' : undefined}\n data-testid={componentClassName}\n asChild={asChild}\n {...buttonProps}\n >\n {content}\n </ButtonBase>\n );\n});\n\nButton.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as R}from"./chunk-GBTQPGQG.js";import{c as u}from"./chunk-HY32GRZP.js";import{a as f}from"./chunk-JWPVXXER.js";import{a as n}from"./chunk-RXW6PYP7.js";import{a as c}from"./chunk-4MNQRAHO.js";import{a as b}from"./chunk-7X24J4CX.js";import{a as p}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as M}from"react";import{RadioGroup as x}from"radix-ui";import{jsx as o,jsxs as i}from"react/jsx-runtime";var I="RadioTile",T=e(I),O=M(({className:N,id:y,label:r,helperText:t,image:P,"aria-labelledby":a,badge:v,flex:C,flexBasis:G,flexShrink:h,flexGrow:B,...E},F)=>{let{id:d,labelId:m,helperTextId:l}=b({providedId:y,prefix:"radio"}),{hasGroupHelperText:H,"aria-describedby":w}=u(),s=!H&&t!==void 0;return o(n,{asChild:!0,"data-testid":T,...{flex:C,flexBasis:G,flexShrink:h,flexGrow:B},children:o(x.Item,{ref:F,className:p(T,N),...E,id:d,"aria-describedby":s?l:w,"aria-labelledby":a||(r?m:void 0),children:i("div",{className:e("RadioContainer"),children:[o("div",{className:e("RadioItem"),children:o(x.Indicator,{className:e("RadioIndicator")})}),i(c,{direction:"column",alignItems:"start",children:[i(R,{id:m,htmlFor:d,disableUserSelect:!0,children:[P,r]}),s?o(f,{id:l,disableUserSelect:!0,children:t}):null,v]})]})})})});O.displayName=I;export{O as a};
4
- //# sourceMappingURL=chunk-UXKDDMKT.js.map
3
+ import{a as R}from"./chunk-GBTQPGQG.js";import{c as u}from"./chunk-HY32GRZP.js";import{a as f}from"./chunk-JWPVXXER.js";import{a as c}from"./chunk-4MNQRAHO.js";import{a as n}from"./chunk-RXW6PYP7.js";import{a as b}from"./chunk-7X24J4CX.js";import{a as p}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as M}from"react";import{RadioGroup as x}from"radix-ui";import{jsx as o,jsxs as i}from"react/jsx-runtime";var I="RadioTile",T=e(I),O=M(({className:N,id:y,label:r,helperText:t,image:P,"aria-labelledby":a,badge:v,flex:C,flexBasis:G,flexShrink:h,flexGrow:B,...E},F)=>{let{id:d,labelId:m,helperTextId:l}=b({providedId:y,prefix:"radio"}),{hasGroupHelperText:H,"aria-describedby":w}=u(),s=!H&&t!==void 0;return o(n,{asChild:!0,"data-testid":T,...{flex:C,flexBasis:G,flexShrink:h,flexGrow:B},children:o(x.Item,{ref:F,className:p(T,N),...E,id:d,"aria-describedby":s?l:w,"aria-labelledby":a||(r?m:void 0),children:i("div",{className:e("RadioContainer"),children:[o("div",{className:e("RadioItem"),children:o(x.Indicator,{className:e("RadioIndicator")})}),i(c,{direction:"column",alignItems:"start",children:[i(R,{id:m,htmlFor:d,disableUserSelect:!0,children:[P,r]}),s?o(f,{id:l,disableUserSelect:!0,children:t}):null,v]})]})})})});O.displayName=I;export{O as a};
4
+ //# sourceMappingURL=chunk-BHZ3HDCP.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkEU7QBTGKcjs = require('./chunk-EU7QBTGK.cjs');var _chunkWFVKT4MGcjs = require('./chunk-WFVKT4MG.cjs');var _chunkHHKQ3ZBDcjs = require('./chunk-HHKQ3ZBD.cjs');var _chunkPWY25JDNcjs = require('./chunk-PWY25JDN.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkDLU27EEOcjs = require('./chunk-DLU27EEO.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var D="Modal",i=_chunk4Q432K4Wcjs.b.call(void 0, D),A= exports.a =_react.forwardRef.call(void 0, ({className:M,image:v,forceMount:x,container:h,heading:B,description:t,hideCloseButton:f,fullScreen:I,loading:l,loadingText:r,loadingHeading:n,loadingDescription:s,children:$,...b},O)=>{let T={forceMount:x,container:h},u=!!v,w=!!(l?(r||n)&&s:t);return _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal,{...T,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Overlay,{className:_chunk4Q432K4Wcjs.b.call(void 0, "Overlay"),children:_jsxruntime.jsx.call(void 0, "div",{className:`${i}Scroll`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${i}ScrollPadding`,children:_jsxruntime.jsxs.call(void 0, _radixui.Dialog.Content,{ref:O,className:_chunkONNSZMWFcjs.a.call(void 0, i,M),"data-contains-image":u?"":void 0,"data-hide-close-button":f?"":void 0,"data-full-screen":I?"":void 0,"data-testid":i,...w?{}:{"aria-describedby":void 0},...b,children:[_jsxruntime.jsx.call(void 0, _chunkEU7QBTGKcjs.a,{children:_jsxruntime.jsx.call(void 0, _chunkWFVKT4MGcjs.a,{type:"button",label:"Close","data-visually-hidden":f?"":void 0,className:`${i}CloseIconButton`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseMediumIcon,{})})}),_jsxruntime.jsxs.call(void 0, "div",{className:`${i}OuterContainer`,children:[l?null:_jsxruntime.jsxs.call(void 0, "div",{className:`${i}InnerContainer`,children:[u?_jsxruntime.jsx.call(void 0, "div",{className:`${i}Image`,children:v}):null,_jsxruntime.jsxs.call(void 0, "div",{className:`${i}Header`,children:[_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{size:"lg",textWrap:"wrap",children:B})})}),t?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkDLU27EEOcjs.a,{size:"md",as:"span",children:t})}):null]})]}),l?_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[_jsxruntime.jsx.call(void 0, _chunkHHKQ3ZBDcjs.a,{size:"lg"}),_jsxruntime.jsxs.call(void 0, "div",{className:`${i}LoadingHeader`,children:[_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{size:"lg",textAlign:"center",textWrap:"wrap",children:n||r||"Loading"})})}),(r||n)&&s?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkDLU27EEOcjs.a,{size:"md",as:"span",textAlign:"center",children:s})}):null]})]}):$]})]})})})})})});A.displayName=D;exports.a = A;
4
- //# sourceMappingURL=chunk-SWIT4LGB.cjs.map
3
+ var _chunkEU7QBTGKcjs = require('./chunk-EU7QBTGK.cjs');var _chunkWFVKT4MGcjs = require('./chunk-WFVKT4MG.cjs');var _chunkHHKQ3ZBDcjs = require('./chunk-HHKQ3ZBD.cjs');var _chunkPWY25JDNcjs = require('./chunk-PWY25JDN.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkDLU27EEOcjs = require('./chunk-DLU27EEO.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var D="Modal",i=_chunk4Q432K4Wcjs.b.call(void 0, D),A= exports.a =_react.forwardRef.call(void 0, ({className:M,image:v,forceMount:x,container:h,heading:B,description:t,hideCloseButton:f,fullScreen:I,loading:l,loadingText:r,loadingHeading:n,loadingDescription:s,children:$,...b},O)=>{let T={forceMount:x,container:h},u=!!v,w=!!(l?(r||n)&&s:t);return _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal,{...T,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Overlay,{className:_chunk4Q432K4Wcjs.b.call(void 0, "Overlay"),children:_jsxruntime.jsx.call(void 0, "div",{className:`${i}Scroll`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${i}ScrollPadding`,children:_jsxruntime.jsxs.call(void 0, _radixui.Dialog.Content,{ref:O,className:_chunkONNSZMWFcjs.a.call(void 0, i,M),"data-contains-image":u?"":void 0,"data-hide-close-button":f?"":void 0,"data-full-screen":I?"":void 0,"data-testid":i,...w?{}:{"aria-describedby":void 0},...b,children:[_jsxruntime.jsx.call(void 0, _chunkEU7QBTGKcjs.a,{children:_jsxruntime.jsx.call(void 0, _chunkWFVKT4MGcjs.a,{type:"button",label:"Close","data-visually-hidden":f?"":void 0,className:`${i}CloseIconButton`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseMediumIcon,{})})}),_jsxruntime.jsxs.call(void 0, "div",{className:`${i}OuterContainer`,children:[l?null:_jsxruntime.jsxs.call(void 0, "div",{className:`${i}InnerContainer`,children:[u?_jsxruntime.jsx.call(void 0, "div",{className:`${i}Image`,children:v}):null,_jsxruntime.jsxs.call(void 0, "div",{className:`${i}Header`,children:[_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{size:"lg",textWrap:"wrap",children:B})})}),t?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkDLU27EEOcjs.a,{size:"md",as:"span",children:t})}):null]})]}),l?_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[_jsxruntime.jsx.call(void 0, _chunkHHKQ3ZBDcjs.a,{size:"lg"}),_jsxruntime.jsxs.call(void 0, "div",{className:`${i}LoadingHeader`,children:[_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{size:"lg",textAlign:"center",textWrap:"wrap",children:n||r||"Loading"})})}),(r||n)&&s?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkDLU27EEOcjs.a,{size:"md",as:"span",textAlign:"center",children:s})}):null]})]}):$]})]})})})})})});A.displayName=D;exports.a = A;
4
+ //# sourceMappingURL=chunk-CICNJKHM.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-SWIT4LGB.cjs","../src/components/Modal/Modal.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","forwardRef","className","image","forceMount","container","heading","description","hideCloseButton","fullScreen","loading","loadingText","loadingHeading","loadingDescription","children","props","ref","portalProps","containsImage","hasDescription","jsx","DialogPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCAtU,wEAMV,8BAML,+CAkEP,IA/DdA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAQC,+BAAAA,CAEjB,CACE,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAc,CAAE,UAAA,CAAAb,CAAAA,CAAY,SAAA,CAAAC,CAAU,CAAA,CACtCa,CAAAA,CAAgB,CAAA,CAAQf,CAAAA,CACxBgB,CAAAA,CAAiB,CAAA,CAAA,CACrBT,CAAAA,CAAAA,CAAWC,CAAAA,EAAeC,CAAAA,CAAAA,EAAmBC,CAAAA,CAAqBN,CAAAA,CAAAA,CAGpE,OACEa,6BAAAA,eAACC,CAAgB,MAAA,CAAhB,CAAwB,GAAGJ,CAAAA,CAC1B,QAAA,CAAAG,6BAAAA,eAACC,CAAgB,OAAA,CAAhB,CAAwB,SAAA,CAAWtB,iCAAAA,SAA0B,CAAA,CAC5D,QAAA,CAAAqB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-SWIT4LGB.cjs","sourcesContent":[null,"'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport 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';\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>(\n (\n {\n className,\n image,\n forceMount,\n container,\n heading,\n description,\n hideCloseButton,\n fullScreen,\n loading,\n loadingText,\n loadingHeading,\n loadingDescription,\n children,\n ...props\n },\n ref\n ) => {\n const portalProps = { forceMount, 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-full-screen={fullScreen ? '' : undefined}\n data-testid={componentClassName}\n {...(hasDescription ? {} : { 'aria-describedby': undefined })}\n {...props}\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}Image`}>{image}</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);\n\nModal.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-CICNJKHM.cjs","../src/components/Modal/Modal.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","forwardRef","className","image","forceMount","container","heading","description","hideCloseButton","fullScreen","loading","loadingText","loadingHeading","loadingDescription","children","props","ref","portalProps","containsImage","hasDescription","jsx","DialogPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCAtU,wEAMV,8BAML,+CAkEP,IA/DdA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAQC,+BAAAA,CAEjB,CACE,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAc,CAAE,UAAA,CAAAb,CAAAA,CAAY,SAAA,CAAAC,CAAU,CAAA,CACtCa,CAAAA,CAAgB,CAAA,CAAQf,CAAAA,CACxBgB,CAAAA,CAAiB,CAAA,CAAA,CACrBT,CAAAA,CAAAA,CAAWC,CAAAA,EAAeC,CAAAA,CAAAA,EAAmBC,CAAAA,CAAqBN,CAAAA,CAAAA,CAGpE,OACEa,6BAAAA,eAACC,CAAgB,MAAA,CAAhB,CAAwB,GAAGJ,CAAAA,CAC1B,QAAA,CAAAG,6BAAAA,eAACC,CAAgB,OAAA,CAAhB,CAAwB,SAAA,CAAWtB,iCAAAA,SAA0B,CAAA,CAC5D,QAAA,CAAAqB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-CICNJKHM.cjs","sourcesContent":[null,"'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport 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';\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>(\n (\n {\n className,\n image,\n forceMount,\n container,\n heading,\n description,\n hideCloseButton,\n fullScreen,\n loading,\n loadingText,\n loadingHeading,\n loadingDescription,\n children,\n ...props\n },\n ref\n ) => {\n const portalProps = { forceMount, 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-full-screen={fullScreen ? '' : undefined}\n data-testid={componentClassName}\n {...(hasDescription ? {} : { 'aria-describedby': undefined })}\n {...props}\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}Image`}>{image}</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);\n\nModal.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkMZMYW4KCcjs = require('./chunk-MZMYW4KC.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _jsxruntime = require('react/jsx-runtime');var c="TimelineItem",i=_chunk4Q432K4Wcjs.b.call(void 0, c),C= exports.a =_react.forwardRef.call(void 0, ({state:e,label:l,helperText:a,className:f,children:d,"aria-label":T,...I},N)=>{let u=[l,`${e} item`,T].filter(Boolean).join(", ");return _jsxruntime.jsxs.call(void 0, "li",{ref:N,className:_chunkONNSZMWFcjs.a.call(void 0, i,f),"data-state":e,"aria-label":u,...I,children:[_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",alignItems:"center",className:`${i}Rail`,children:[_jsxruntime.jsx.call(void 0, "span",{className:`${i}Indicator`,"data-state":e,"aria-hidden":"true",children:e==="complete"?_jsxruntime.jsx.call(void 0, _hearthreacticons.TickSmallIcon,{}):null}),_jsxruntime.jsx.call(void 0, "div",{className:`${i}Connector`,"data-state":e,"aria-hidden":"true"})]}),_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",className:`${i}Content`,children:[_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",children:[_jsxruntime.jsx.call(void 0, _chunkMZMYW4KCcjs.a,{as:"span",fontWeight:"semibold",children:l}),a?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{children:a}):null]}),d]})]})});C.displayName=c;exports.a = C;
4
+ //# sourceMappingURL=chunk-DMMORU7Y.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-DMMORU7Y.cjs","../src/components/Timeline/TimelineItem.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TimelineItem","forwardRef","state","label","helperText","className","children","ariaLabel","props","ref","ariaLabelText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCFjL,wEAEG,+CAiCtB,IAzBFA,CAAAA,CAAiB,cAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAeC,+BAAAA,CACzB,CAAE,KAAA,CAAAC,CAAAA,CAAO,KAAA,CAAAC,CAAAA,CAAO,UAAA,CAAAC,CAAAA,CAAY,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,YAAA,CAAcC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAAQ,CAC7F,IAAMC,CAAAA,CAAgB,CAACP,CAAAA,CAAO,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-DMMORU7Y.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { TickSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport type { TimelineItemProps } from './TimelineItem.props';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Label } from '../Label/Label';\n\nconst COMPONENT_NAME = 'TimelineItem';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype TimelineItemElement = ComponentRef<'li'>;\n\n/**\n * Use TimelineItem as a single event or step within a `Timeline`, showing\n * its `state` — `complete`, `active`, or `incomplete` — via an indicator\n * and connector line alongside its `label`, optional `helperText`, and any\n * additional custom content passed as `children`.\n *\n * @summary A single event or step within a Timeline.\n */\nexport const TimelineItem = forwardRef<TimelineItemElement, TimelineItemProps>(\n ({ state, label, helperText, className, children, 'aria-label': ariaLabel, ...props }, ref) => {\n const ariaLabelText = [label, `${state} item`, ariaLabel].filter(Boolean).join(', ');\n\n return (\n <li\n ref={ref}\n className={cn(componentClassName, className)}\n data-state={state}\n aria-label={ariaLabelText}\n {...props}\n >\n <Flex direction=\"column\" alignItems=\"center\" className={`${componentClassName}Rail`}>\n <span className={`${componentClassName}Indicator`} data-state={state} aria-hidden=\"true\">\n {state === 'complete' ? <TickSmallIcon /> : null}\n </span>\n <div className={`${componentClassName}Connector`} data-state={state} aria-hidden=\"true\" />\n </Flex>\n\n <Flex direction=\"column\" className={`${componentClassName}Content`}>\n <Flex direction=\"column\">\n <Label as=\"span\" fontWeight=\"semibold\">\n {label}\n </Label>\n {helperText ? <HelperText>{helperText}</HelperText> : null}\n </Flex>\n {children}\n </Flex>\n </li>\n );\n }\n);\n\nTimelineItem.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as p}from"./chunk-N2PQS6HG.js";import{a as t}from"./chunk-OPPG3NOC.js";import{a}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{jsx as u,jsxs as b}from"react/jsx-runtime";var d="ExpandableCardGroup",n=o(d),h=x((m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=a(m,t);return b("div",{ref:i,className:r(n,l),"data-testid":n,...c,children:[e?u(p,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;export{h as a};
4
- //# sourceMappingURL=chunk-OQ7TRS57.js.map
3
+ import{a as p}from"./chunk-PJCXETFD.js";import{a as t}from"./chunk-OPPG3NOC.js";import{a}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{jsx as u,jsxs as b}from"react/jsx-runtime";var d="ExpandableCardGroup",n=o(d),h=x((m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=a(m,t);return b("div",{ref:i,className:r(n,l),"data-testid":n,...c,children:[e?u(p,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;export{h as a};
4
+ //# sourceMappingURL=chunk-DYMXUQM4.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as N}from"./chunk-57OFJSBQ.js";import{a as y}from"./chunk-MD3VAECH.js";import{a as g}from"./chunk-DAEIJDP7.js";import{a as c}from"./chunk-3KEOP2WO.js";import{a as m}from"./chunk-RXW6PYP7.js";import{a as P}from"./chunk-4MNQRAHO.js";import{a as p}from"./chunk-XVM5ECBR.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as d}from"./chunk-PDEVCIQ3.js";import{Dialog as o}from"radix-ui";import{CloseMediumIcon as z}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as E}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var D="Modal",i=d(D),A=E(({className:M,image:v,forceMount:x,container:h,heading:B,description:t,hideCloseButton:f,fullScreen:I,loading:l,loadingText:r,loadingHeading:n,loadingDescription:s,children:$,...b},O)=>{let T={forceMount:x,container:h},u=!!v,w=!!(l?(r||n)&&s:t);return e(o.Portal,{...T,children:e(o.Overlay,{className:d("Overlay"),children:e("div",{className:`${i}Scroll`,children:e("div",{className:`${i}ScrollPadding`,children:a(o.Content,{ref:O,className:C(i,M),"data-contains-image":u?"":void 0,"data-hide-close-button":f?"":void 0,"data-full-screen":I?"":void 0,"data-testid":i,...w?{}:{"aria-describedby":void 0},...b,children:[e(N,{children:e(y,{type:"button",label:"Close","data-visually-hidden":f?"":void 0,className:`${i}CloseIconButton`,children:e(z,{})})}),a("div",{className:`${i}OuterContainer`,children:[l?null:a("div",{className:`${i}InnerContainer`,children:[u?e("div",{className:`${i}Image`,children:v}):null,a("div",{className:`${i}Header`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(c,{size:"lg",textWrap:"wrap",children:B})})}),t?e(o.Description,{asChild:!0,children:e(p,{size:"md",as:"span",children:t})}):null]})]}),l?a(P,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[e(g,{size:"lg"}),a("div",{className:`${i}LoadingHeader`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(c,{size:"lg",textAlign:"center",textWrap:"wrap",children:n||r||"Loading"})})}),(r||n)&&s?e(o.Description,{asChild:!0,children:e(p,{size:"md",as:"span",textAlign:"center",children:s})}):null]})]}):$]})]})})})})})});A.displayName=D;export{A as a};
4
- //# sourceMappingURL=chunk-7ILZKQOQ.js.map
3
+ import{a as N}from"./chunk-57OFJSBQ.js";import{a as y}from"./chunk-MD3VAECH.js";import{a as g}from"./chunk-DAEIJDP7.js";import{a as c}from"./chunk-3KEOP2WO.js";import{a as P}from"./chunk-4MNQRAHO.js";import{a as m}from"./chunk-RXW6PYP7.js";import{a as p}from"./chunk-XVM5ECBR.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as d}from"./chunk-PDEVCIQ3.js";import{Dialog as o}from"radix-ui";import{CloseMediumIcon as z}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as E}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var D="Modal",i=d(D),A=E(({className:M,image:v,forceMount:x,container:h,heading:B,description:t,hideCloseButton:f,fullScreen:I,loading:l,loadingText:r,loadingHeading:n,loadingDescription:s,children:$,...b},O)=>{let T={forceMount:x,container:h},u=!!v,w=!!(l?(r||n)&&s:t);return e(o.Portal,{...T,children:e(o.Overlay,{className:d("Overlay"),children:e("div",{className:`${i}Scroll`,children:e("div",{className:`${i}ScrollPadding`,children:a(o.Content,{ref:O,className:C(i,M),"data-contains-image":u?"":void 0,"data-hide-close-button":f?"":void 0,"data-full-screen":I?"":void 0,"data-testid":i,...w?{}:{"aria-describedby":void 0},...b,children:[e(N,{children:e(y,{type:"button",label:"Close","data-visually-hidden":f?"":void 0,className:`${i}CloseIconButton`,children:e(z,{})})}),a("div",{className:`${i}OuterContainer`,children:[l?null:a("div",{className:`${i}InnerContainer`,children:[u?e("div",{className:`${i}Image`,children:v}):null,a("div",{className:`${i}Header`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(c,{size:"lg",textWrap:"wrap",children:B})})}),t?e(o.Description,{asChild:!0,children:e(p,{size:"md",as:"span",children:t})}):null]})]}),l?a(P,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[e(g,{size:"lg"}),a("div",{className:`${i}LoadingHeader`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(c,{size:"lg",textAlign:"center",textWrap:"wrap",children:n||r||"Loading"})})}),(r||n)&&s?e(o.Description,{asChild:!0,children:e(p,{size:"md",as:"span",textAlign:"center",children:s})}):null]})]}):$]})]})})})})})});A.displayName=D;export{A as a};
4
+ //# sourceMappingURL=chunk-F2ZTXLIG.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as N}from"./chunk-2YZ3O2PW.js";import{a as p}from"./chunk-MD3VAECH.js";import{a as f}from"./chunk-XVM5ECBR.js";import{a as v}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-KGEVWEVL.js";import{a as y}from"./chunk-J3AJBV4B.js";import{b as S}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{ChevronLeftSmallIcon as T,ChevronRightSmallIcon as A,SkipFirstSmallIcon as G,SkipLastSmallIcon as R}from"@utilitywarehouse/hearth-react-icons";import{Slot as U}from"radix-ui";import{jsx as o,jsxs as c}from"react/jsx-runtime";var b="Pagination",s=S(b),m="...",M=7,_=(a,i)=>{if(i<=M)return Array.from({length:i},(r,d)=>d+1);let e=[],n=a<=4,t=a>i-4;return n?(e.push(1,2,3,4,5),e.push(m),e.push(i)):t?(e.push(1),e.push(m),e.push(i-4,i-3,i-2,i-1,i)):(e.push(1),e.push(m),e.push(a-1,a,a+1),e.push(m),e.push(i)),e},w=x((a,i)=>{let{className:e,currentPage:n,totalPages:t,onPageChange:r,condensed:d=!1,hideSkipButtons:u=!1,as:C="div",...g}=I(a,v),B=_(n,t),P=()=>{n>1&&r(n-1)},E=()=>{n<t&&r(n+1)},k=()=>{n!==1&&r(1)},L=()=>{n!==t&&r(t)};return o(U.Root,{ref:i,"aria-label":"pagination",className:y(s,e),"data-testid":s,...g,children:o(C,{children:c("div",{className:`${s}Container`,children:[c("div",{className:`${s}Controllers`,children:[!u&&o(p,{label:"Go to first page",onClick:k,disabled:n===1,children:o(G,{})}),o(p,{label:"Go to previous page",onClick:P,disabled:n===1,children:o(T,{})})]}),d?c(f,{size:"md",color:"primary",children:["Page ",n," of ",t]}):o("div",{children:o("ol",{className:`${s}Pages`,children:B.map((l,$)=>{if(l===m)return o("li",{children:o(f,{size:"md",color:"primary",className:`${s}Ellipsis`,children:m})},`ellipsis-${$}`);let h=l===n;return o("li",{children:o(N,{className:`${s}Page`,variant:"ghost",colorScheme:"functional",onClick:()=>r(l),"data-active":h?"":void 0,"aria-label":`Go to page ${l}`,"aria-current":h?"page":void 0,children:l})},l)})})}),c("div",{className:`${s}Controllers`,children:[o(p,{label:"Go to next page",onClick:E,disabled:n===t,children:o(A,{})}),!u&&o(p,{label:"Go to last page",onClick:L,disabled:n===t,children:o(R,{})})]})]})})})});w.displayName=b;export{w as a};
4
- //# sourceMappingURL=chunk-TR7MKE7F.js.map
3
+ import{a as N}from"./chunk-L3VPQN5T.js";import{a as p}from"./chunk-MD3VAECH.js";import{a as f}from"./chunk-XVM5ECBR.js";import{a as v}from"./chunk-OPPG3NOC.js";import{a as I}from"./chunk-KGEVWEVL.js";import{a as y}from"./chunk-J3AJBV4B.js";import{b as S}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{ChevronLeftSmallIcon as T,ChevronRightSmallIcon as A,SkipFirstSmallIcon as G,SkipLastSmallIcon as R}from"@utilitywarehouse/hearth-react-icons";import{Slot as U}from"radix-ui";import{jsx as o,jsxs as c}from"react/jsx-runtime";var b="Pagination",s=S(b),m="...",M=7,_=(a,i)=>{if(i<=M)return Array.from({length:i},(r,d)=>d+1);let e=[],n=a<=4,t=a>i-4;return n?(e.push(1,2,3,4,5),e.push(m),e.push(i)):t?(e.push(1),e.push(m),e.push(i-4,i-3,i-2,i-1,i)):(e.push(1),e.push(m),e.push(a-1,a,a+1),e.push(m),e.push(i)),e},w=x((a,i)=>{let{className:e,currentPage:n,totalPages:t,onPageChange:r,condensed:d=!1,hideSkipButtons:u=!1,as:C="div",...g}=I(a,v),B=_(n,t),P=()=>{n>1&&r(n-1)},E=()=>{n<t&&r(n+1)},k=()=>{n!==1&&r(1)},L=()=>{n!==t&&r(t)};return o(U.Root,{ref:i,"aria-label":"pagination",className:y(s,e),"data-testid":s,...g,children:o(C,{children:c("div",{className:`${s}Container`,children:[c("div",{className:`${s}Controllers`,children:[!u&&o(p,{label:"Go to first page",onClick:k,disabled:n===1,children:o(G,{})}),o(p,{label:"Go to previous page",onClick:P,disabled:n===1,children:o(T,{})})]}),d?c(f,{size:"md",color:"primary",children:["Page ",n," of ",t]}):o("div",{children:o("ol",{className:`${s}Pages`,children:B.map((l,$)=>{if(l===m)return o("li",{children:o(f,{size:"md",color:"primary",className:`${s}Ellipsis`,children:m})},`ellipsis-${$}`);let h=l===n;return o("li",{children:o(N,{className:`${s}Page`,variant:"ghost",colorScheme:"functional",onClick:()=>r(l),"data-active":h?"":void 0,"aria-label":`Go to page ${l}`,"aria-current":h?"page":void 0,children:l})},l)})})}),c("div",{className:`${s}Controllers`,children:[o(p,{label:"Go to next page",onClick:E,disabled:n===t,children:o(A,{})}),!u&&o(p,{label:"Go to last page",onClick:L,disabled:n===t,children:o(R,{})})]})]})})})});w.displayName=b;export{w as a};
4
+ //# sourceMappingURL=chunk-FSOQCT7B.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 _chunkKWBAJWSJcjs = require('./chunk-KWBAJWSJ.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===_chunkKWBAJWSJcjs.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-IOXDXAHO.cjs.map
3
+ var _chunkJCNQCBO7cjs = require('./chunk-JCNQCBO7.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===_chunkJCNQCBO7cjs.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-HE73I4VO.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-IOXDXAHO.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-IOXDXAHO.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-HE73I4VO.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-HE73I4VO.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 client";
2
2
 
3
- import{a as l}from"./chunk-LA3N4ST5.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-TBO5GN3I.js.map
3
+ import{a as l}from"./chunk-QVE4N4F2.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-IEKB4IRY.js.map
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var e=["static","progress"],a= exports.a ={variant:{className:"variant",tokens:e,responsive:!1,default:"static"},danglingRail:{className:"dangling-rail",responsive:!1}};exports.a = a;
4
+ //# sourceMappingURL=chunk-IOZE7MTU.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-IOZE7MTU.cjs","../src/components/Timeline/Timeline.props.ts"],"names":["variants","timelinePropDefs"],"mappings":"AAAA,qFAAY;AACZ;ACGA,IAAMA,CAAAA,CAAW,CAAC,QAAA,CAAU,UAAU,CAAA,CAEzBC,CAAAA,aAAmB,CAO9B,OAAA,CAAS,CAAE,SAAA,CAAW,SAAA,CAAW,MAAA,CAAQD,CAAAA,CAAU,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,QAAS,CAAA,CAQxF,YAAA,CAAc,CAAE,SAAA,CAAW,eAAA,CAAiB,UAAA,CAAY,CAAA,CAAM,CAChE,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-IOZE7MTU.cjs","sourcesContent":[null,"import { MarginProps } from '../../props/margin.props';\nimport type { PropDef } from '../../props/prop-def';\nimport type { ComponentPropsWithRef } from 'react';\n\nconst variants = ['static', 'progress'] as const;\n\nexport const timelinePropDefs = {\n /**\n * Controls the size of each `TimelineItem`'s indicator — `static` renders a\n * small dot, `progress` renders a larger circle that can carry a complete\n * icon.\n * @default static\n */\n variant: { className: 'variant', tokens: variants, responsive: false, default: 'static' },\n /**\n * Extends the final `TimelineItem`'s connector line beyond the list,\n * fading it to transparent, to suggest the timeline continues. Only takes\n * effect when `variant` is `progress` and the final item's `state` is\n * `incomplete`.\n * @default false\n */\n danglingRail: { className: 'dangling-rail', responsive: false },\n} satisfies {\n variant: PropDef<(typeof variants)[number]>;\n danglingRail: PropDef<boolean>;\n};\n\nexport interface TimelineProps extends ComponentPropsWithRef<'ol'>, MarginProps {\n /**\n * Controls the size of each `TimelineItem`'s indicator — `static` renders a\n * small dot, `progress` renders a larger circle that can carry a complete\n * icon.\n * @default static\n */\n variant?: (typeof variants)[number];\n /**\n * Extends the final `TimelineItem`'s connector line beyond the list,\n * fading it to transparent, to suggest the timeline continues. Only takes\n * effect when `variant` is `progress` and the final item's `state` is\n * `incomplete`.\n * @default false\n */\n danglingRail?: boolean;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
2
 
3
- var _chunkS45VPPZEcjs = require('./chunk-S45VPPZE.cjs');var _chunkMJNIIRVPcjs = require('./chunk-MJNIIRVP.cjs');var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunk4VB6TWFPcjs = require('./chunk-4VB6TWFP.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkPWY25JDNcjs = require('./chunk-PWY25JDN.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.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 N="CardAccordionItem",n=_chunk4Q432K4Wcjs.b.call(void 0, N),_= exports.a =_react.forwardRef.call(void 0, ({className:x,title:S,description:c,headingElement:T="h3",summaryTitle:s,summaryDescription:l,children:R,value:o,onEditClick:y,...B},M)=>{let{setCurrentStep:z,setPreviousSteps:O,getStep:$,steps:d}=_chunkMJNIIRVPcjs.c.call(void 0, ),r=$(o),w=r==="current"?"emphasis":"subtle",F=r==="current"?"neutralStrong":"neutralSubtle",p=_react.useRef.call(void 0, null),f=_react.useRef.call(void 0, !1),{labelId:t,helperTextId:u}=_chunkRIHABKWYcjs.a.call(void 0, {prefix:"card-accordion-item"});return _react.useEffect.call(void 0, ()=>{if(!f.current){f.current=!0;return}r==="current"&&_optionalChain([p, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()])},[r]),_jsxruntime.jsx.call(void 0, _radixui.Accordion.Item,{asChild:!0,ref:M,className:_chunkONNSZMWFcjs.a.call(void 0, n,x),disabled:r==="future","data-step":r,value:o,...B,children:_jsxruntime.jsx.call(void 0, _chunkGS47QEXRcjs.a,{variant:w,colorScheme:F,direction:"column",children:_jsxruntime.jsxs.call(void 0, _chunkS45VPPZEcjs.b,{value:{value:o},children:[_jsxruntime.jsx.call(void 0, _radixui.Accordion.Header,{className:`${n}Header`,asChild:!0,children:_jsxruntime.jsxs.call(void 0, T,{children:[_jsxruntime.jsx.call(void 0, _radixui.Accordion.Trigger,{ref:p,className:`${n}Trigger`,"aria-labelledby":t,"aria-describedby":c?u:void 0,children:_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",children:[r==="previous"&&s?_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{asChild:!0,size:"md",id:t,children:_jsxruntime.jsx.call(void 0, "div",{children:s})}):_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{asChild:!0,size:"md",id:t,children:_jsxruntime.jsx.call(void 0, "div",{children:S})}),c?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{id:u,children:c}):null]})}),r==="previous"?_jsxruntime.jsx.call(void 0, _chunk4VB6TWFPcjs.a,{size:"sm",variant:"ghost",colorScheme:"functional","aria-describedby":t,onClick:k=>{z(o),d&&O(d.slice(0,d.indexOf(o))),_optionalChain([y, 'optionalCall', _5 => _5(k)])},children:"Edit"}):null]})}),r==="previous"&&l?l:null,r==="current"?_jsxruntime.jsx.call(void 0, _radixui.Accordion.Content,{className:`${n}Content`,children:R}):null]})})})});_.displayName=N;exports.a = _;
4
- //# sourceMappingURL=chunk-KWBAJWSJ.cjs.map
3
+ var _chunkS45VPPZEcjs = require('./chunk-S45VPPZE.cjs');var _chunkMJNIIRVPcjs = require('./chunk-MJNIIRVP.cjs');var _chunkBB2SOLJScjs = require('./chunk-BB2SOLJS.cjs');var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkPWY25JDNcjs = require('./chunk-PWY25JDN.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.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 N="CardAccordionItem",n=_chunk4Q432K4Wcjs.b.call(void 0, N),_= exports.a =_react.forwardRef.call(void 0, ({className:x,title:S,description:c,headingElement:T="h3",summaryTitle:s,summaryDescription:l,children:R,value:o,onEditClick:y,...B},M)=>{let{setCurrentStep:z,setPreviousSteps:O,getStep:$,steps:d}=_chunkMJNIIRVPcjs.c.call(void 0, ),r=$(o),w=r==="current"?"emphasis":"subtle",F=r==="current"?"neutralStrong":"neutralSubtle",p=_react.useRef.call(void 0, null),f=_react.useRef.call(void 0, !1),{labelId:t,helperTextId:u}=_chunkRIHABKWYcjs.a.call(void 0, {prefix:"card-accordion-item"});return _react.useEffect.call(void 0, ()=>{if(!f.current){f.current=!0;return}r==="current"&&_optionalChain([p, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()])},[r]),_jsxruntime.jsx.call(void 0, _radixui.Accordion.Item,{asChild:!0,ref:M,className:_chunkONNSZMWFcjs.a.call(void 0, n,x),disabled:r==="future","data-step":r,value:o,...B,children:_jsxruntime.jsx.call(void 0, _chunkGS47QEXRcjs.a,{variant:w,colorScheme:F,direction:"column",children:_jsxruntime.jsxs.call(void 0, _chunkS45VPPZEcjs.b,{value:{value:o},children:[_jsxruntime.jsx.call(void 0, _radixui.Accordion.Header,{className:`${n}Header`,asChild:!0,children:_jsxruntime.jsxs.call(void 0, T,{children:[_jsxruntime.jsx.call(void 0, _radixui.Accordion.Trigger,{ref:p,className:`${n}Trigger`,"aria-labelledby":t,"aria-describedby":c?u:void 0,children:_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",children:[r==="previous"&&s?_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{asChild:!0,size:"md",id:t,children:_jsxruntime.jsx.call(void 0, "div",{children:s})}):_jsxruntime.jsx.call(void 0, _chunkPWY25JDNcjs.a,{asChild:!0,size:"md",id:t,children:_jsxruntime.jsx.call(void 0, "div",{children:S})}),c?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{id:u,children:c}):null]})}),r==="previous"?_jsxruntime.jsx.call(void 0, _chunkBB2SOLJScjs.a,{size:"sm",variant:"ghost",colorScheme:"functional","aria-describedby":t,onClick:k=>{z(o),d&&O(d.slice(0,d.indexOf(o))),_optionalChain([y, 'optionalCall', _5 => _5(k)])},children:"Edit"}):null]})}),r==="previous"&&l?l:null,r==="current"?_jsxruntime.jsx.call(void 0, _radixui.Accordion.Content,{className:`${n}Content`,children:R}):null]})})})});_.displayName=N;exports.a = _;
4
+ //# sourceMappingURL=chunk-JCNQCBO7.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-KWBAJWSJ.cjs","../src/components/CardAccordion/CardAccordionItem.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CardAccordionItem","forwardRef","className","title","description","HeadingElement","summaryTitle","summaryDescription","children","value","onEditClick","props","ref","setCurrentStep","setPreviousSteps","getStep","steps","useCardAccordion","step","variant","colorScheme","triggerRef","useRef","hasMountedRef","labelId","helperTextId","useIds","useEffect","jsx","AccordionPrimitive","cn","Card","jsxs","CardAccordionItemProvider"],"mappings":"AAAA,ylBAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA3W,mCAIE,+CAgF9B,IArEZA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAoBC,+BAAAA,CAE7B,CACE,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAiB,IAAA,CACjC,YAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,GAAM,CAAE,cAAA,CAAAC,CAAAA,CAAgB,gBAAA,CAAAC,CAAAA,CAAkB,OAAA,CAAAC,CAAAA,CAAS,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAiB,CACxEC,CAAAA,CAAOH,CAAAA,CAAQN,CAAK,CAAA,CACpBU,CAAAA,CAAUD,CAAAA,GAAS,SAAA,CAAY,UAAA,CAAa,QAAA,CAC5CE,CAAAA,CAAcF,CAAAA,GAAS,SAAA,CAAY,eAAA,CAAkB,eAAA,CACrDG,CAAAA,CAAaC,2BAAAA,IAA8B,CAAA,CAC3CC,CAAAA,CAAgBD,2BAAAA,CAAO,CAAK,CAAA,CAE5B,CAAE,OAAA,CAAAE,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,qBAAsB,CAAC,CAAA,CAE1E,OAAAC,8BAAAA,CAAU,CAAA,EAAM,CACd,EAAA,CAAI,CAACJ,CAAAA,CAAc,OAAA,CAAS,CAC1BA,CAAAA,CAAc,OAAA,CAAU,CAAA,CAAA,CACxB,MACF,CAEIL,CAAAA,GAAS,SAAA,kBACXG,CAAAA,qBAAW,OAAA,6BAAS,KAAA,mBAAM,GAE9B,CAAA,CAAG,CAACH,CAAI,CAAC,CAAA,CAGPU,6BAAAA,kBAACC,CAAmB,IAAA,CAAnB,CACC,OAAA,CAAO,CAAA,CAAA,CACP,GAAA,CAAKjB,CAAAA,CACL,SAAA,CAAWkB,iCAAAA,CAAGhC,CAAoBI,CAAS,CAAA,CAC3C,QAAA,CAAUgB,CAAAA,GAAS,QAAA,CACnB,WAAA,CAAWA,CAAAA,CACX,KAAA,CAAOT,CAAAA,CACN,GAAGE,CAAAA,CAEJ,QAAA,CAAAiB,6BAAAA,mBAACG,CAAA,CAAK,OAAA,CAASZ,CAAAA,CAAS,WAAA,CAAaC,CAAAA,CAAa,SAAA,CAAU,QAAA,CAC1D,QAAA,CAAAY,8BAAAA,mBAACC,CAAA,CAA0B,KAAA,CAAO,CAAE,KAAA,CAAAxB,CAAM,CAAA,CACxC,QAAA,CAAA,CAAAmB,6BAAAA,kBAACC,CAAmB,MAAA,CAAnB,CAA0B,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-KWBAJWSJ.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef, useEffect, useRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { CardAccordionItemProps } from './CardAccordionItem.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport type { ComponentRef } from 'react';\nimport { Card } from '../Card/Card';\nimport { Button } from '../Button/Button';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport { useIds } from '../../hooks/use-ids';\nimport { CardAccordionItemProvider } from './CardAccordionItem.context';\nimport { useCardAccordion } from './CardAccordion.context';\n\nconst COMPONENT_NAME = 'CardAccordionItem';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardAccordionItemElement = ComponentRef<'div'>;\n\n/**\n * Use CardAccordionItem for each step within a CardAccordion. Requires a\n * unique `value` and a `title`. Once a step becomes `previous`,\n * `summaryTitle`/`summaryDescription` (if set) replace the current view and\n * an Edit button (wired via `onEditClick`) lets users return to it.\n *\n * @summary A single step within a CardAccordion.\n */\nexport const CardAccordionItem = forwardRef<CardAccordionItemElement, CardAccordionItemProps>(\n (\n {\n className,\n title,\n description,\n headingElement: HeadingElement = 'h3',\n summaryTitle,\n summaryDescription,\n children,\n value,\n onEditClick,\n ...props\n },\n ref\n ) => {\n const { setCurrentStep, setPreviousSteps, getStep, steps } = useCardAccordion();\n const step = getStep(value);\n const variant = step === 'current' ? 'emphasis' : 'subtle';\n const colorScheme = step === 'current' ? 'neutralStrong' : 'neutralSubtle';\n const triggerRef = useRef<HTMLButtonElement>(null);\n const hasMountedRef = useRef(false);\n\n const { labelId, helperTextId } = useIds({ prefix: 'card-accordion-item' });\n\n useEffect(() => {\n if (!hasMountedRef.current) {\n hasMountedRef.current = true;\n return;\n }\n\n if (step === 'current') {\n triggerRef.current?.focus();\n }\n }, [step]);\n\n return (\n <AccordionPrimitive.Item\n asChild\n ref={ref}\n className={cn(componentClassName, className)}\n disabled={step === 'future'}\n data-step={step}\n value={value}\n {...props}\n >\n <Card variant={variant} colorScheme={colorScheme} direction=\"column\">\n <CardAccordionItemProvider value={{ value }}>\n <AccordionPrimitive.Header className={`${componentClassName}Header`} asChild>\n <HeadingElement>\n <AccordionPrimitive.Trigger\n ref={triggerRef}\n className={`${componentClassName}Trigger`}\n aria-labelledby={labelId}\n aria-describedby={description ? helperTextId : undefined}\n >\n <Flex direction=\"column\">\n {step === 'previous' && Boolean(summaryTitle) ? (\n <Heading asChild size=\"md\" id={labelId}>\n <div>{summaryTitle}</div>\n </Heading>\n ) : (\n <Heading asChild size=\"md\" id={labelId}>\n <div>{title}</div>\n </Heading>\n )}\n {description ? <HelperText id={helperTextId}>{description}</HelperText> : null}\n </Flex>\n </AccordionPrimitive.Trigger>\n {step === 'previous' ? (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n colorScheme=\"functional\"\n aria-describedby={labelId}\n onClick={e => {\n setCurrentStep(value);\n if (steps) {\n setPreviousSteps(steps.slice(0, steps.indexOf(value)));\n }\n onEditClick?.(e);\n }}\n >\n Edit\n </Button>\n ) : null}\n </HeadingElement>\n </AccordionPrimitive.Header>\n {step === 'previous' && summaryDescription ? summaryDescription : null}\n {step === 'current' ? (\n <AccordionPrimitive.Content className={`${componentClassName}Content`}>\n {children}\n </AccordionPrimitive.Content>\n ) : null}\n </CardAccordionItemProvider>\n </Card>\n </AccordionPrimitive.Item>\n );\n }\n);\n\nCardAccordionItem.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-JCNQCBO7.cjs","../src/components/CardAccordion/CardAccordionItem.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CardAccordionItem","forwardRef","className","title","description","HeadingElement","summaryTitle","summaryDescription","children","value","onEditClick","props","ref","setCurrentStep","setPreviousSteps","getStep","steps","useCardAccordion","step","variant","colorScheme","triggerRef","useRef","hasMountedRef","labelId","helperTextId","useIds","useEffect","jsx","AccordionPrimitive","cn","Card","jsxs","CardAccordionItemProvider"],"mappings":"AAAA,ylBAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA3W,mCAIE,+CAgF9B,IArEZA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAoBC,+BAAAA,CAE7B,CACE,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAiB,IAAA,CACjC,YAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,GAAM,CAAE,cAAA,CAAAC,CAAAA,CAAgB,gBAAA,CAAAC,CAAAA,CAAkB,OAAA,CAAAC,CAAAA,CAAS,KAAA,CAAAC,CAAM,CAAA,CAAIC,iCAAAA,CAAiB,CACxEC,CAAAA,CAAOH,CAAAA,CAAQN,CAAK,CAAA,CACpBU,CAAAA,CAAUD,CAAAA,GAAS,SAAA,CAAY,UAAA,CAAa,QAAA,CAC5CE,CAAAA,CAAcF,CAAAA,GAAS,SAAA,CAAY,eAAA,CAAkB,eAAA,CACrDG,CAAAA,CAAaC,2BAAAA,IAA8B,CAAA,CAC3CC,CAAAA,CAAgBD,2BAAAA,CAAO,CAAK,CAAA,CAE5B,CAAE,OAAA,CAAAE,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,qBAAsB,CAAC,CAAA,CAE1E,OAAAC,8BAAAA,CAAU,CAAA,EAAM,CACd,EAAA,CAAI,CAACJ,CAAAA,CAAc,OAAA,CAAS,CAC1BA,CAAAA,CAAc,OAAA,CAAU,CAAA,CAAA,CACxB,MACF,CAEIL,CAAAA,GAAS,SAAA,kBACXG,CAAAA,qBAAW,OAAA,6BAAS,KAAA,mBAAM,GAE9B,CAAA,CAAG,CAACH,CAAI,CAAC,CAAA,CAGPU,6BAAAA,kBAACC,CAAmB,IAAA,CAAnB,CACC,OAAA,CAAO,CAAA,CAAA,CACP,GAAA,CAAKjB,CAAAA,CACL,SAAA,CAAWkB,iCAAAA,CAAGhC,CAAoBI,CAAS,CAAA,CAC3C,QAAA,CAAUgB,CAAAA,GAAS,QAAA,CACnB,WAAA,CAAWA,CAAAA,CACX,KAAA,CAAOT,CAAAA,CACN,GAAGE,CAAAA,CAEJ,QAAA,CAAAiB,6BAAAA,mBAACG,CAAA,CAAK,OAAA,CAASZ,CAAAA,CAAS,WAAA,CAAaC,CAAAA,CAAa,SAAA,CAAU,QAAA,CAC1D,QAAA,CAAAY,8BAAAA,mBAACC,CAAA,CAA0B,KAAA,CAAO,CAAE,KAAA,CAAAxB,CAAM,CAAA,CACxC,QAAA,CAAA,CAAAmB,6BAAAA,kBAACC,CAAmB,MAAA,CAAnB,CAA0B,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-JCNQCBO7.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef, useEffect, useRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { CardAccordionItemProps } from './CardAccordionItem.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport type { ComponentRef } from 'react';\nimport { Card } from '../Card/Card';\nimport { Button } from '../Button/Button';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport { useIds } from '../../hooks/use-ids';\nimport { CardAccordionItemProvider } from './CardAccordionItem.context';\nimport { useCardAccordion } from './CardAccordion.context';\n\nconst COMPONENT_NAME = 'CardAccordionItem';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardAccordionItemElement = ComponentRef<'div'>;\n\n/**\n * Use CardAccordionItem for each step within a CardAccordion. Requires a\n * unique `value` and a `title`. Once a step becomes `previous`,\n * `summaryTitle`/`summaryDescription` (if set) replace the current view and\n * an Edit button (wired via `onEditClick`) lets users return to it.\n *\n * @summary A single step within a CardAccordion.\n */\nexport const CardAccordionItem = forwardRef<CardAccordionItemElement, CardAccordionItemProps>(\n (\n {\n className,\n title,\n description,\n headingElement: HeadingElement = 'h3',\n summaryTitle,\n summaryDescription,\n children,\n value,\n onEditClick,\n ...props\n },\n ref\n ) => {\n const { setCurrentStep, setPreviousSteps, getStep, steps } = useCardAccordion();\n const step = getStep(value);\n const variant = step === 'current' ? 'emphasis' : 'subtle';\n const colorScheme = step === 'current' ? 'neutralStrong' : 'neutralSubtle';\n const triggerRef = useRef<HTMLButtonElement>(null);\n const hasMountedRef = useRef(false);\n\n const { labelId, helperTextId } = useIds({ prefix: 'card-accordion-item' });\n\n useEffect(() => {\n if (!hasMountedRef.current) {\n hasMountedRef.current = true;\n return;\n }\n\n if (step === 'current') {\n triggerRef.current?.focus();\n }\n }, [step]);\n\n return (\n <AccordionPrimitive.Item\n asChild\n ref={ref}\n className={cn(componentClassName, className)}\n disabled={step === 'future'}\n data-step={step}\n value={value}\n {...props}\n >\n <Card variant={variant} colorScheme={colorScheme} direction=\"column\">\n <CardAccordionItemProvider value={{ value }}>\n <AccordionPrimitive.Header className={`${componentClassName}Header`} asChild>\n <HeadingElement>\n <AccordionPrimitive.Trigger\n ref={triggerRef}\n className={`${componentClassName}Trigger`}\n aria-labelledby={labelId}\n aria-describedby={description ? helperTextId : undefined}\n >\n <Flex direction=\"column\">\n {step === 'previous' && Boolean(summaryTitle) ? (\n <Heading asChild size=\"md\" id={labelId}>\n <div>{summaryTitle}</div>\n </Heading>\n ) : (\n <Heading asChild size=\"md\" id={labelId}>\n <div>{title}</div>\n </Heading>\n )}\n {description ? <HelperText id={helperTextId}>{description}</HelperText> : null}\n </Flex>\n </AccordionPrimitive.Trigger>\n {step === 'previous' ? (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n colorScheme=\"functional\"\n aria-describedby={labelId}\n onClick={e => {\n setCurrentStep(value);\n if (steps) {\n setPreviousSteps(steps.slice(0, steps.indexOf(value)));\n }\n onEditClick?.(e);\n }}\n >\n Edit\n </Button>\n ) : null}\n </HeadingElement>\n </AccordionPrimitive.Header>\n {step === 'previous' && summaryDescription ? summaryDescription : null}\n {step === 'current' ? (\n <AccordionPrimitive.Content className={`${componentClassName}Content`}>\n {children}\n </AccordionPrimitive.Content>\n ) : null}\n </CardAccordionItemProvider>\n </Card>\n </AccordionPrimitive.Item>\n );\n }\n);\n\nCardAccordionItem.displayName = COMPONENT_NAME;\n"]}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as c}from"./chunk-N2PQS6HG.js";import{a as n}from"./chunk-OPPG3NOC.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as g}from"react";import{Accordion as E}from"radix-ui";import{jsx as m,jsxs as x}from"react/jsx-runtime";var s="Accordion",p=e(s),u=g((a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=i(a,n),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return x("div",{ref:d,className:r(p,l),"data-testid":p,children:[t?m(c,{...R}):null,m(E.Root,{...y})]})});u.displayName=s;export{u as a};
4
- //# sourceMappingURL=chunk-XAJGQUSC.js.map
3
+ import{a as c}from"./chunk-PJCXETFD.js";import{a as n}from"./chunk-OPPG3NOC.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as g}from"react";import{Accordion as E}from"radix-ui";import{jsx as m,jsxs as x}from"react/jsx-runtime";var s="Accordion",p=e(s),u=g((a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=i(a,n),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return x("div",{ref:d,className:r(p,l),"data-testid":p,children:[t?m(c,{...R}):null,m(E.Root,{...y})]})});u.displayName=s;export{u as a};
4
+ //# sourceMappingURL=chunk-KNPNKYUS.js.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- import{a as p}from"./chunk-JEJLX5DM.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-2YZ3O2PW.js.map
3
+ import{a as d}from"./chunk-ZAS7UCT3.js";import{a as p}from"./chunk-JEJLX5DM.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-L3VPQN5T.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- var _chunkMZMYW4KCcjs = require('./chunk-MZMYW4KC.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.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 I="RadioTile",T=_chunk4Q432K4Wcjs.b.call(void 0, I),O= exports.a =_react.forwardRef.call(void 0, ({className:N,id:y,label:r,helperText:t,image:P,"aria-labelledby":a,badge:v,flex:C,flexBasis:G,flexShrink:h,flexGrow:B,...E},F)=>{let{id:d,labelId:m,helperTextId:l}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:y,prefix:"radio"}),{hasGroupHelperText:H,"aria-describedby":w}=_chunkWSD52THLcjs.c.call(void 0, ),s=!H&&t!==void 0;return _jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,"data-testid":T,...{flex:C,flexBasis:G,flexShrink:h,flexGrow:B},children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Item,{ref:F,className:_chunkONNSZMWFcjs.a.call(void 0, T,N),...E,id:d,"aria-describedby":s?l:w,"aria-labelledby":a||(r?m: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, _chunkMZMYW4KCcjs.a,{id:m,htmlFor:d,disableUserSelect:!0,children:[P,r]}),s?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{id:l,disableUserSelect:!0,children:t}):null,v]})]})})})});O.displayName=I;exports.a = O;
4
- //# sourceMappingURL=chunk-NNELZC2A.cjs.map
3
+ var _chunkMZMYW4KCcjs = require('./chunk-MZMYW4KC.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkRAIRXO6Fcjs = require('./chunk-RAIRXO6F.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.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 I="RadioTile",T=_chunk4Q432K4Wcjs.b.call(void 0, I),O= exports.a =_react.forwardRef.call(void 0, ({className:N,id:y,label:r,helperText:t,image:P,"aria-labelledby":a,badge:v,flex:C,flexBasis:G,flexShrink:h,flexGrow:B,...E},F)=>{let{id:d,labelId:m,helperTextId:l}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:y,prefix:"radio"}),{hasGroupHelperText:H,"aria-describedby":w}=_chunkWSD52THLcjs.c.call(void 0, ),s=!H&&t!==void 0;return _jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,"data-testid":T,...{flex:C,flexBasis:G,flexShrink:h,flexGrow:B},children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Item,{ref:F,className:_chunkONNSZMWFcjs.a.call(void 0, T,N),...E,id:d,"aria-describedby":s?l:w,"aria-labelledby":a||(r?m: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, _chunkMZMYW4KCcjs.a,{id:m,htmlFor:d,disableUserSelect:!0,children:[P,r]}),s?_jsxruntime.jsx.call(void 0, _chunkRAIRXO6Fcjs.a,{id:l,disableUserSelect:!0,children:t}):null,v]})]})})})});O.displayName=I;exports.a = O;
4
+ //# sourceMappingURL=chunk-LFHNFACK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-NNELZC2A.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioTile","forwardRef","className","providedId","label","helperText","image","ariaLabelledby","badge","flex","flexBasis","flexShrink","flexGrow","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","jsx","Box","RadioGroupPrimitive","cn","jsxs","Flex","Label","HelperText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA5S,mCAKuB,+CAuDpC,IA/CRA,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,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,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,CAAAf,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAgB,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBd,CAAAA,GAAe,KAAA,CAAA,CAErE,OACEkB,6BAAAA,mBAACC,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,aAAA,CAAa1B,CAAAA,CAAqB,GAF3B,CAAE,IAAA,CAAAW,CAAAA,CAAM,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAY,QAAA,CAAAC,CAAS,CAAA,CAG1D,QAAA,CAAAW,6BAAAA,mBAACE,CAAoB,IAAA,CAApB,CACC,GAAA,CAAKX,CAAAA,CACL,SAAA,CAAWY,iCAAAA,CAAG5B,CAAoBI,CAAS,CAAA,CAC1C,GAAGW,CAAAA,CACJ,EAAA,CAAIE,CAAAA,CACJ,kBAAA,CAAkBO,CAAAA,CAAiBL,CAAAA,CAAeG,CAAAA,CAClD,iBAAA,CAAiBb,CAAAA,EAAAA,CAAkCH,CAAAA,CAAQY,CAAAA,CAAU,KAAA,CAAA,CAAA,CAErE,QAAA,CAAAW,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW5B,iCAAAA,gBAAiC,CAAA,CAC/C,QAAA,CAAA,CAAAwB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWxB,iCAAAA,WAA4B,CAAA,CAC1C,QAAA,CAAAwB,6BAAAA,mBAACE,CAAoB,SAAA,CAApB,CAA8B,SAAA,CAAW1B,iCAAAA,gBAAiC,CAAA,CAAG,CAAA,CAChF,CAAA,CACA4B,8BAAAA,mBAACC,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,UAAA,CAAW,OAAA,CAClC,QAAA,CAAA,CAAAD,8BAAAA,mBAACE,CAAA,CAAM,EAAA,CAAIb,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAAI,iBAAA,CAAiB,CAAA,CAAA,CAC/C,QAAA,CAAA,CAAAT,CAAAA,CACAF,CAAAA,CAAAA,CACH,CAAA,CACCkB,CAAAA,CACCC,6BAAAA,mBAACO,CAAA,CAAW,EAAA,CAAIb,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAAZ,CAAAA,CACH,CAAA,CACE,IAAA,CACHG,CAAAA,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ,CACF,CAAA,CAEAR,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-NNELZC2A.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 { 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 badge,\n flex,\n flexBasis,\n flexShrink,\n flexGrow,\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 id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\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 id={labelId} htmlFor={id} 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-LFHNFACK.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioTile","forwardRef","className","providedId","label","helperText","image","ariaLabelledby","badge","flex","flexBasis","flexShrink","flexGrow","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","jsx","Box","RadioGroupPrimitive","cn","jsxs","Flex","Label","HelperText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA5S,mCAKuB,+CAuDpC,IA/CRA,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,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,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,CAAAf,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAgB,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBd,CAAAA,GAAe,KAAA,CAAA,CAErE,OACEkB,6BAAAA,mBAACC,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,aAAA,CAAa1B,CAAAA,CAAqB,GAF3B,CAAE,IAAA,CAAAW,CAAAA,CAAM,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAY,QAAA,CAAAC,CAAS,CAAA,CAG1D,QAAA,CAAAW,6BAAAA,mBAACE,CAAoB,IAAA,CAApB,CACC,GAAA,CAAKX,CAAAA,CACL,SAAA,CAAWY,iCAAAA,CAAG5B,CAAoBI,CAAS,CAAA,CAC1C,GAAGW,CAAAA,CACJ,EAAA,CAAIE,CAAAA,CACJ,kBAAA,CAAkBO,CAAAA,CAAiBL,CAAAA,CAAeG,CAAAA,CAClD,iBAAA,CAAiBb,CAAAA,EAAAA,CAAkCH,CAAAA,CAAQY,CAAAA,CAAU,KAAA,CAAA,CAAA,CAErE,QAAA,CAAAW,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW5B,iCAAAA,gBAAiC,CAAA,CAC/C,QAAA,CAAA,CAAAwB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWxB,iCAAAA,WAA4B,CAAA,CAC1C,QAAA,CAAAwB,6BAAAA,mBAACE,CAAoB,SAAA,CAApB,CAA8B,SAAA,CAAW1B,iCAAAA,gBAAiC,CAAA,CAAG,CAAA,CAChF,CAAA,CACA4B,8BAAAA,mBAACC,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,UAAA,CAAW,OAAA,CAClC,QAAA,CAAA,CAAAD,8BAAAA,mBAACE,CAAA,CAAM,EAAA,CAAIb,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAAI,iBAAA,CAAiB,CAAA,CAAA,CAC/C,QAAA,CAAA,CAAAT,CAAAA,CACAF,CAAAA,CAAAA,CACH,CAAA,CACCkB,CAAAA,CACCC,6BAAAA,mBAACO,CAAA,CAAW,EAAA,CAAIb,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAAZ,CAAAA,CACH,CAAA,CACE,IAAA,CACHG,CAAAA,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ,CACF,CAAA,CAEAR,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-LFHNFACK.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 { 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 badge,\n flex,\n flexBasis,\n flexShrink,\n flexGrow,\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 id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\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 id={labelId} htmlFor={id} 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"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as i}from"./chunk-R5I57J2E.js";import{a as r}from"./chunk-OPPG3NOC.js";import{a as m}from"./chunk-KGEVWEVL.js";import{a as e}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as c}from"react";import{jsx as T}from"react/jsx-runtime";var n="Timeline",t=o(n),P=c((p,l)=>{let{className:s,children:f,...a}=m(p,i,r);return T("ol",{ref:l,role:"list",className:e(t,s),"data-testid":t,...a,children:f})});P.displayName=n;export{P as a};
4
+ //# sourceMappingURL=chunk-NPCUVYMJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Timeline/Timeline.tsx"],"sourcesContent":["import { 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 { timelinePropDefs } from './Timeline.props';\nimport type { TimelineProps } from './Timeline.props';\n\nconst COMPONENT_NAME = 'Timeline';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype TimelineElement = ComponentRef<'ol'>;\n\n/**\n * Use Timeline to show a sequence of events or steps, each rendered as a\n * `TimelineItem`, in the order they occur. Use the `progress` variant when\n * the sequence represents the user's advancement through it; use `static`\n * for a purely informational history or schedule. For a multi-step process\n * the user actively navigates, use ProgressStepper instead.\n *\n * @summary Shows a vertical sequence of events or steps.\n */\nexport const Timeline = forwardRef<TimelineElement, TimelineProps>((props, ref) => {\n const { className, children, ...timelineProps } = extractProps(\n props,\n timelinePropDefs,\n marginPropDefs\n );\n\n return (\n <ol\n ref={ref}\n role=\"list\"\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...timelineProps}\n >\n {children}\n </ol>\n );\n});\n\nTimeline.displayName = COMPONENT_NAME;\n"],"mappings":";;wMAAA,OAAS,cAAAA,MAAkB,QA+BvB,cAAAC,MAAA,oBAtBJ,IAAMC,EAAiB,WACjBC,EAAqBC,EAAiBF,CAAc,EAa7CG,EAAWC,EAA2C,CAACC,EAAOC,IAAQ,CACjF,GAAM,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAc,EAAIC,EAChDL,EACAM,EACAC,CACF,EAEA,OACEb,EAAC,MACC,IAAKO,EACL,KAAK,OACL,UAAWO,EAAGZ,EAAoBM,CAAS,EAC3C,cAAaN,EACZ,GAAGQ,EAEH,SAAAD,EACH,CAEJ,CAAC,EAEDL,EAAS,YAAcH","names":["forwardRef","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","Timeline","forwardRef","props","ref","className","children","timelineProps","extractProps","timelinePropDefs","marginPropDefs","cn"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as s}from"./chunk-GBTQPGQG.js";import{a as p}from"./chunk-JWPVXXER.js";import{a as o}from"./chunk-4MNQRAHO.js";import{a as n}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{TickSmallIcon as b}from"@utilitywarehouse/hearth-react-icons";import{jsx as m,jsxs as t}from"react/jsx-runtime";var c="TimelineItem",i=r(c),C=x(({state:e,label:l,helperText:a,className:f,children:d,"aria-label":T,...I},N)=>{let u=[l,`${e} item`,T].filter(Boolean).join(", ");return t("li",{ref:N,className:n(i,f),"data-state":e,"aria-label":u,...I,children:[t(o,{direction:"column",alignItems:"center",className:`${i}Rail`,children:[m("span",{className:`${i}Indicator`,"data-state":e,"aria-hidden":"true",children:e==="complete"?m(b,{}):null}),m("div",{className:`${i}Connector`,"data-state":e,"aria-hidden":"true"})]}),t(o,{direction:"column",className:`${i}Content`,children:[t(o,{direction:"column",children:[m(s,{as:"span",fontWeight:"semibold",children:l}),a?m(p,{children:a}):null]}),d]})]})});C.displayName=c;export{C as a};
4
+ //# sourceMappingURL=chunk-OEEEN4T4.js.map