@utilitywarehouse/hearth-react 0.36.1 → 0.36.2
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.
- package/dist/{chunk-5O7MHLG6.js → chunk-4F2QB3XC.js} +2 -2
- package/dist/{chunk-HOTNDRL4.cjs → chunk-4HYVBOWY.cjs} +2 -2
- package/dist/{chunk-HOTNDRL4.cjs.map → chunk-4HYVBOWY.cjs.map} +1 -1
- package/dist/{chunk-5WA4EJMI.cjs → chunk-5VAS5P47.cjs} +1 -1
- package/dist/{chunk-5WA4EJMI.cjs.map → chunk-5VAS5P47.cjs.map} +1 -1
- package/dist/{chunk-MMQDPLMG.cjs → chunk-6CBHZ5JZ.cjs} +2 -2
- package/dist/{chunk-MMQDPLMG.cjs.map → chunk-6CBHZ5JZ.cjs.map} +1 -1
- package/dist/{chunk-6BVOGEQF.cjs → chunk-75OLYAFB.cjs} +2 -2
- package/dist/{chunk-6BVOGEQF.cjs.map → chunk-75OLYAFB.cjs.map} +1 -1
- package/dist/chunk-7ACLSMWO.js +4 -0
- package/dist/chunk-7ACLSMWO.js.map +1 -0
- package/dist/chunk-DMO5FLXX.js +4 -0
- package/dist/chunk-DMO5FLXX.js.map +1 -0
- package/dist/{chunk-62OPBUU2.js → chunk-DNBDJEL3.js} +2 -2
- package/dist/{chunk-ODJW4CKV.js → chunk-E665GL66.js} +2 -2
- package/dist/{chunk-SL5KN4YG.cjs → chunk-EOMKJBCT.cjs} +2 -2
- package/dist/{chunk-SL5KN4YG.cjs.map → chunk-EOMKJBCT.cjs.map} +1 -1
- package/dist/chunk-GAXATLK3.cjs +4 -0
- package/dist/chunk-GAXATLK3.cjs.map +1 -0
- package/dist/chunk-GBAD27K2.cjs +4 -0
- package/dist/chunk-GBAD27K2.cjs.map +1 -0
- package/dist/{chunk-TQTU3SU5.js → chunk-GBDOGSHO.js} +2 -2
- package/dist/{chunk-V4BZIPQB.js → chunk-HNPNWQMD.js} +2 -2
- package/dist/{chunk-MFDPD7LL.cjs → chunk-IQZRFVT2.cjs} +2 -2
- package/dist/{chunk-MFDPD7LL.cjs.map → chunk-IQZRFVT2.cjs.map} +1 -1
- package/dist/{chunk-OJSBYHQW.cjs → chunk-KCIN3NYN.cjs} +2 -2
- package/dist/{chunk-OJSBYHQW.cjs.map → chunk-KCIN3NYN.cjs.map} +1 -1
- package/dist/chunk-M7TQ74JD.cjs +4 -0
- package/dist/chunk-M7TQ74JD.cjs.map +1 -0
- package/dist/{chunk-ZVXHZSW6.js → chunk-MVRKWLXX.js} +1 -1
- package/dist/chunk-MVRKWLXX.js.map +1 -0
- package/dist/chunk-N4THYSAB.js +4 -0
- package/dist/chunk-N4THYSAB.js.map +1 -0
- package/dist/{chunk-QDV7GHHP.js → chunk-NBLUIVPS.js} +2 -2
- package/dist/{chunk-57QIKAQC.js → chunk-NLRXPN7J.js} +2 -2
- package/dist/{chunk-GIQYG6QT.cjs → chunk-NPGWC5UG.cjs} +2 -2
- package/dist/{chunk-GIQYG6QT.cjs.map → chunk-NPGWC5UG.cjs.map} +1 -1
- package/dist/{chunk-JIJWDAAU.js → chunk-OKW3ZZOB.js} +2 -2
- package/dist/chunk-PLKATHG7.cjs +4 -0
- package/dist/chunk-PLKATHG7.cjs.map +1 -0
- package/dist/{chunk-7W2RLCGB.js → chunk-Q74KVLBL.js} +2 -2
- package/dist/{chunk-ZN6EEPYT.cjs → chunk-QIOH4DVU.cjs} +2 -2
- package/dist/{chunk-ZN6EEPYT.cjs.map → chunk-QIOH4DVU.cjs.map} +1 -1
- package/dist/{chunk-5TOYINGT.cjs → chunk-SR5END3T.cjs} +2 -2
- package/dist/{chunk-5TOYINGT.cjs.map → chunk-SR5END3T.cjs.map} +1 -1
- package/dist/{chunk-PCFN2SEL.js → chunk-T36G4P7P.js} +2 -2
- package/dist/chunk-UBLBAHEF.js +4 -0
- package/dist/chunk-UBLBAHEF.js.map +1 -0
- package/dist/{chunk-NCNYRYLC.js → chunk-XC27XB43.js} +2 -2
- package/dist/{chunk-634BVRHR.js → chunk-Y72W6OWA.js} +2 -2
- package/dist/{chunk-V5F33HLX.cjs → chunk-YMFKZM2G.cjs} +2 -2
- package/dist/{chunk-V5F33HLX.cjs.map → chunk-YMFKZM2G.cjs.map} +1 -1
- package/dist/{chunk-JXPGBAYH.cjs → chunk-ZBLAL2BN.cjs} +2 -2
- package/dist/{chunk-JXPGBAYH.cjs.map → chunk-ZBLAL2BN.cjs.map} +1 -1
- package/dist/{chunk-GN2MUYQR.cjs → chunk-ZI5O2B2R.cjs} +2 -2
- package/dist/{chunk-GN2MUYQR.cjs.map → chunk-ZI5O2B2R.cjs.map} +1 -1
- package/dist/{chunk-EERWIJJE.js → chunk-ZOVTBFLJ.js} +2 -2
- package/dist/{chunk-QDFEVSQ6.cjs → chunk-ZRZL5ETL.cjs} +2 -2
- package/dist/{chunk-QDFEVSQ6.cjs.map → chunk-ZRZL5ETL.cjs.map} +1 -1
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/BannerImage/BannerImage.cjs +4 -0
- package/dist/components/BannerImage/BannerImage.cjs.map +1 -0
- package/dist/components/BannerImage/BannerImage.d.ts +14 -0
- package/dist/components/BannerImage/BannerImage.d.ts.map +1 -0
- package/dist/components/BannerImage/BannerImage.js +4 -0
- package/dist/components/BannerImage/BannerImage.js.map +1 -0
- package/dist/components/BannerImage/BannerImage.props.cjs +3 -0
- package/dist/components/BannerImage/BannerImage.props.cjs.map +1 -0
- package/dist/components/BannerImage/BannerImage.props.d.ts +3 -0
- package/dist/components/BannerImage/BannerImage.props.d.ts.map +1 -0
- package/dist/components/BannerImage/BannerImage.props.js +3 -0
- package/dist/components/BannerImage/BannerImage.props.js.map +1 -0
- package/dist/components/Card/CardBannerContent.cjs +1 -1
- package/dist/components/Card/CardBannerContent.d.ts +1 -1
- package/dist/components/Card/CardBannerContent.js +1 -1
- package/dist/components/Card/CardBannerImage.cjs +1 -1
- package/dist/components/Card/CardBannerImage.cjs.map +1 -1
- package/dist/components/Card/CardBannerImage.d.ts +3 -0
- package/dist/components/Card/CardBannerImage.d.ts.map +1 -1
- package/dist/components/Card/CardBannerImage.js +1 -1
- package/dist/components/CardAccordion/CardAccordion.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordion.js +1 -1
- package/dist/components/CardAccordion/CardAccordionButton.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordionButton.js +1 -1
- package/dist/components/CardAccordion/CardAccordionItem.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordionItem.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.cjs +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/ExpandableCard/ExpandableCardGroup.cjs +1 -1
- package/dist/components/ExpandableCard/ExpandableCardGroup.js +1 -1
- package/dist/components/List/List.cjs +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/Modal.props.cjs +2 -1
- package/dist/components/Modal/Modal.props.cjs.map +1 -1
- package/dist/components/Modal/Modal.props.d.ts +13 -0
- package/dist/components/Modal/Modal.props.d.ts.map +1 -1
- package/dist/components/Modal/Modal.props.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/ProgressBar/ProgressBarCircular.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBarCircular.js +1 -1
- package/dist/components/ProgressBar/ProgressBarLinear.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBarLinear.js +1 -1
- package/dist/components/RadioTile/RadioTile.cjs +1 -1
- package/dist/components/RadioTile/RadioTile.js +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
- package/dist/components/SectionHeader/SectionHeader.js +1 -1
- package/dist/components/Skeleton/SkeletonBodyText.cjs +1 -1
- package/dist/components/Skeleton/SkeletonBodyText.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/public/llms/components/banner-image.md +117 -0
- package/public/llms/components/card.md +6 -6
- package/public/llms/components/modal.md +53 -1
- package/public/llms/docs/getting-started.md +1 -1
- package/public/llms/docs/migration/v1.md +156 -0
- package/public/llms.txt +1 -0
- package/styles.css +1 -1
- package/dist/chunk-AXZY7Z7X.js +0 -4
- package/dist/chunk-AXZY7Z7X.js.map +0 -1
- package/dist/chunk-MA2URC57.cjs +0 -4
- package/dist/chunk-MA2URC57.cjs.map +0 -1
- package/dist/chunk-NHTUK7PO.js +0 -4
- package/dist/chunk-NHTUK7PO.js.map +0 -1
- package/dist/chunk-QBLAIC66.cjs +0 -4
- package/dist/chunk-QBLAIC66.cjs.map +0 -1
- package/dist/chunk-ZVXHZSW6.js.map +0 -1
- /package/dist/{chunk-5O7MHLG6.js.map → chunk-4F2QB3XC.js.map} +0 -0
- /package/dist/{chunk-62OPBUU2.js.map → chunk-DNBDJEL3.js.map} +0 -0
- /package/dist/{chunk-ODJW4CKV.js.map → chunk-E665GL66.js.map} +0 -0
- /package/dist/{chunk-TQTU3SU5.js.map → chunk-GBDOGSHO.js.map} +0 -0
- /package/dist/{chunk-V4BZIPQB.js.map → chunk-HNPNWQMD.js.map} +0 -0
- /package/dist/{chunk-QDV7GHHP.js.map → chunk-NBLUIVPS.js.map} +0 -0
- /package/dist/{chunk-57QIKAQC.js.map → chunk-NLRXPN7J.js.map} +0 -0
- /package/dist/{chunk-JIJWDAAU.js.map → chunk-OKW3ZZOB.js.map} +0 -0
- /package/dist/{chunk-7W2RLCGB.js.map → chunk-Q74KVLBL.js.map} +0 -0
- /package/dist/{chunk-PCFN2SEL.js.map → chunk-T36G4P7P.js.map} +0 -0
- /package/dist/{chunk-NCNYRYLC.js.map → chunk-XC27XB43.js.map} +0 -0
- /package/dist/{chunk-634BVRHR.js.map → chunk-Y72W6OWA.js.map} +0 -0
- /package/dist/{chunk-EERWIJJE.js.map → chunk-ZOVTBFLJ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as h}from"./chunk-V6QXHP4D.js";import{a as N}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as h}from"./chunk-V6QXHP4D.js";import{a as N}from"./chunk-T36G4P7P.js";import{a as L}from"./chunk-RXW6PYP7.js";import{a as u}from"./chunk-OPPG3NOC.js";import{a as C}from"./chunk-7X24J4CX.js";import{a as g}from"./chunk-KGEVWEVL.js";import{a as c}from"./chunk-J3AJBV4B.js";import{b}from"./chunk-PDEVCIQ3.js";import{forwardRef as M}from"react";import{jsx as e,jsxs as $}from"react/jsx-runtime";var y="List",a=b(y),O=M((P,t)=>{let{id:v,as:o="ul",className:x,colorScheme:r=void 0,variant:n,listItemsVariant:T,heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B,children:l,paddingNone:R,"aria-label":d,"aria-labelledby":V,...s}=g(P,u),w={heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B},{id:m,labelId:p}=C({providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":V??(!!i&&!d?p:void 0),"data-padding-none":R?"":void 0,"data-list-items-variant":T};return $("div",{className:c(a,x),"data-testid":a,children:[i?e(N,{id:p,...w}):null,n===void 0||r===void 0?e(L,{asChild:!0,id:m,className:`${a}Container`,role:"list",...f,children:e(o,{ref:t,...s,children:l})}):e(h,{className:`${a}Container`,paddingNone:!0,variant:n,colorScheme:r,children:e(o,{ref:t,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;export{O as a};
|
|
4
|
+
//# sourceMappingURL=chunk-4F2QB3XC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var _chunk3GKKDE55cjs = require('./chunk-3GKKDE55.cjs');var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunk3GKKDE55cjs = require('./chunk-3GKKDE55.cjs');var _chunkZI5O2B2Rcjs = require('./chunk-ZI5O2B2R.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var c="DescriptionList",o=_chunk4Q432K4Wcjs.b.call(void 0, c),F= exports.a =_react.forwardRef.call(void 0, (d,f)=>{let{className:x,style:P,heading:i,headingElement:D,helperText:h,trailingContent:C,children:L,direction:N,validationText:v,validationStatus:y,width:E,maxWidth:g,minWidth:u,...w}=_chunkZPJNQBTNcjs.a.call(void 0, d,_chunkOB7O3UFLcjs.a),R={style:P,width:E,maxWidth:g,minWidth:u},T={heading:i,headingElement:D,helperText:h,trailingContent:C,validationText:v,validationStatus:y};return _jsxruntime.jsxs.call(void 0, _chunkIVFMFU6Ucjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, o,x),"data-testid":o,...R,children:[i?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{...T}):null,_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{asChild:!0,className:`${o}Container`,role:"list",children:_jsxruntime.jsx.call(void 0, "dl",{ref:f,role:"list",...w,children:_jsxruntime.jsx.call(void 0, _chunk3GKKDE55cjs.a.Provider,{value:{direction:N},children:L})})})]})});F.displayName=c;exports.a = F;
|
|
4
|
+
//# sourceMappingURL=chunk-4HYVBOWY.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-4HYVBOWY.cjs","../src/components/DescriptionList/DescriptionList.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","DescriptionList","forwardRef","props","ref","className","style","heading","headingElement","helperText","trailingContent","children","direction","validationText","validationStatus","width","maxWidth","minWidth","listProps","extractProps","marginPropDefs","containerProps","sectionHeaderProps","jsxs","Box","cn","jsx","SectionHeader","Flex"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAoC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAvS,+CAwDrB,IA5CAA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAkBC,+BAAAA,CAC5BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAahB,CAAOiB,mBAAc,CAAA,CAEhCC,CAAAA,CAAiB,CAAE,KAAA,CAAAf,CAAAA,CAAO,KAAA,CAAAS,CAAAA,CAAO,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAS,CAAA,CAEpDK,CAAAA,CAAqB,CACzB,OAAA,CAAAf,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAG,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEA,OACES,8BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAG1B,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGsB,CAAAA,CAEH,QAAA,CAAA,CAAAd,CAAAA,CAAUmB,6BAAAA,mBAACC,CAAA,CAAe,GAAGL,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACvDI,6BAAAA,mBAACE,CAAA,CAAK,OAAA,CAAO,CAAA,CAAA,CAAC,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-4HYVBOWY.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport type { DescriptionListProps } from './DescriptionList.props';\nimport { DescriptionListContext } from './DescriptionList.context';\nimport { Flex } from '../Flex/Flex';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'DescriptionList';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype DescriptionListElement = ComponentRef<'dl'>;\n\n/**\n * Use DescriptionList to present pairs of related information together, such\n * as contact details or account information. Wrap any number of\n * DescriptionListItem components, which render as `dt`/`dd` pairs inside a\n * semantic `dl` element.\n *\n * @summary A list for presenting pairs of related information as terms and descriptions.\n */\nexport const DescriptionList = forwardRef<DescriptionListElement, DescriptionListProps>(\n (props, ref) => {\n const {\n className,\n style,\n heading,\n headingElement,\n helperText,\n trailingContent,\n children,\n direction,\n validationText,\n validationStatus,\n width,\n maxWidth,\n minWidth,\n ...listProps\n } = extractProps(props, marginPropDefs);\n\n const containerProps = { style, width, maxWidth, minWidth };\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n return (\n <Box\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...containerProps}\n >\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <Flex asChild className={`${componentClassName}Container`} role=\"list\">\n <dl ref={ref} role=\"list\" {...listProps}>\n <DescriptionListContext.Provider value={{ direction }}>\n {children}\n </DescriptionListContext.Provider>\n </dl>\n </Flex>\n </Box>\n );\n }\n);\n\nDescriptionList.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
var _chunk3ODBY6JGcjs = require('./chunk-3ODBY6JG.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunk6SM74N7Tcjs = require('./chunk-6SM74N7T.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var p="CardBannerContent",x=_chunk4Q432K4Wcjs.b.call(void 0, p),g= exports.a =_react.forwardRef.call(void 0, ({heading:C,description:d,className:s,children:f,textAlign:e,...l},c)=>_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{ref:c,className:_chunkONNSZMWFcjs.a.call(void 0, x,s),direction:"column",spacing:"lg",...l,children:[_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{spacing:"sm",direction:"column",children:[_jsxruntime.jsx.call(void 0, _chunk3ODBY6JGcjs.a,{size:"sm",textAlign:e,children:C}),_jsxruntime.jsx.call(void 0, _chunk6SM74N7Tcjs.a,{size:"md",textAlign:e,children:d})]}),f]}));g.displayName=p;exports.a = g;
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
4
|
+
//# sourceMappingURL=chunk-5VAS5P47.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-5VAS5P47.cjs","../src/components/Card/CardBannerContent.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CardBannerContent","forwardRef","heading","description","className","children","textAlign","props","ref","jsxs","Flex","cn","jsx","Heading","BodyText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCIjL,+CAyBnB,IAtBFA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAoBC,+BAAAA,CAC9B,CAAE,OAAA,CAAAC,CAAAA,CAAS,WAAA,CAAAC,CAAAA,CAAa,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEjEC,8BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,CAAGb,CAAoBM,CAAS,CAAA,CAC3C,SAAA,CAAU,QAAA,CACV,OAAA,CAAQ,IAAA,CACP,GAAGG,CAAAA,CAEJ,QAAA,CAAA,CAAAE,8BAAAA,mBAACC,CAAA,CAAK,OAAA,CAAQ,IAAA,CAAK,SAAA,CAAU,QAAA,CAC3B,QAAA,CAAA,CAAAE,6BAAAA,mBAACC,CAAA,CAAQ,IAAA,CAAK,IAAA,CAAK,SAAA,CAAWP,CAAAA,CAC3B,QAAA,CAAAJ,CAAAA,CACH,CAAA,CACAU,6BAAAA,mBAACE,CAAA,CAAS,IAAA,CAAK,IAAA,CAAK,SAAA,CAAWR,CAAAA,CAC5B,QAAA,CAAAH,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACCE,CAAAA,CAAAA,CACH,CAGN,CAAA,CAEAL,CAAAA,CAAkB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-5VAS5P47.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { BodyText } from '../BodyText/BodyText';\nimport type { CardBannerContentProps } from './CardBannerContent.props';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'CardBannerContent';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardBannerContentElement = ComponentRef<'div'>;\n\n/**\n * Use CardBannerContent to lay out the heading and description text within a\n * Card banner, alongside any additional content such as actions. Pair it\n * with `BannerImage` for banners that include an image or illustration.\n *\n * @summary Text content layout for a Card banner.\n */\nexport const CardBannerContent = forwardRef<CardBannerContentElement, CardBannerContentProps>(\n ({ heading, description, className, children, textAlign, ...props }, ref) => {\n return (\n <Flex\n ref={ref}\n className={cn(componentClassName, className)}\n direction=\"column\"\n spacing=\"lg\"\n {...props}\n >\n <Flex spacing=\"sm\" direction=\"column\">\n <Heading size=\"sm\" textAlign={textAlign}>\n {heading}\n </Heading>\n <BodyText size=\"md\" textAlign={textAlign}>\n {description}\n </BodyText>\n </Flex>\n {children}\n </Flex>\n );\n }\n);\n\nCardBannerContent.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var _chunkX6536YYGcjs = require('./chunk-X6536YYG.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkF54LCSZKcjs = require('./chunk-F54LCSZK.cjs');var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkX6536YYGcjs = require('./chunk-X6536YYG.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkF54LCSZKcjs = require('./chunk-F54LCSZK.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var T="RadioTile",I=_chunk4Q432K4Wcjs.b.call(void 0, T),U= exports.a =_react.forwardRef.call(void 0, ({className:y,id:N,label:r,helperText:a,image:P,"aria-labelledby":t,"aria-describedby":v,badge:C,flex:G,flexBasis:h,flexShrink:B,flexGrow:E,disabled:H,...w},F)=>{let{id:g,labelId:d,helperTextId:m}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:N,prefix:"radio"}),{hasGroupHelperText:M,"aria-describedby":O}=_chunkWSD52THLcjs.c.call(void 0, ),s=!M&&a!==void 0;return _jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,"data-testid":I,...{flex:G,flexBasis:h,flexShrink:B,flexGrow:E},children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Item,{ref:F,className:_chunkONNSZMWFcjs.a.call(void 0, I,y),...w,disabled:H,id:g,"aria-describedby":_chunkHIF6HKZ3cjs.a.call(void 0, v,s?m:O),"aria-labelledby":t||(r?d:void 0),children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioContainer"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioItem"),children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Indicator,{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioIndicator")})}),_jsxruntime.jsxs.call(void 0, _chunkQKGE3FJXcjs.a,{direction:"column",alignItems:"start",children:[_jsxruntime.jsxs.call(void 0, _chunkX6536YYGcjs.a,{as:"span",id:d,disableUserSelect:!0,children:[P,r]}),s?_jsxruntime.jsx.call(void 0, _chunkF54LCSZKcjs.a,{id:m,disableUserSelect:!0,children:a}):null,C]})]})})})});U.displayName=T;exports.a = U;
|
|
4
|
+
//# sourceMappingURL=chunk-6CBHZ5JZ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6CBHZ5JZ.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioTile","forwardRef","className","providedId","label","helperText","image","ariaLabelledby","consumerAriaDescribedby","badge","flex","flexBasis","flexShrink","flexGrow","disabled","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","jsx","Box","RadioGroupPrimitive","cn","mergeIds","jsxs","Flex","Label","HelperText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCArV,mCAKuB,+CA8DpC,IArDRA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAYC,+BAAAA,CAErB,CACE,SAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,kBAAA,CAAoBC,CAAAA,CACpB,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,GAAM,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAjB,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAkB,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBhB,CAAAA,GAAe,KAAA,CAAA,CAErE,OACEoB,6BAAAA,mBAACC,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,aAAA,CAAa5B,CAAAA,CAAqB,GAF3B,CAAE,IAAA,CAAAY,CAAAA,CAAM,SAAA,CAAAC,CAAAA,CAAW,UAAA,CAAAC,CAAAA,CAAY,QAAA,CAAAC,CAAS,CAAA,CAG1D,QAAA,CAAAY,6BAAAA,mBAACE,CAAoB,IAAA,CAApB,CACC,GAAA,CAAKX,CAAAA,CACL,SAAA,CAAWY,iCAAAA,CAAG9B,CAAoBI,CAAS,CAAA,CAC1C,GAAGa,CAAAA,CACJ,QAAA,CAAUD,CAAAA,CACV,EAAA,CAAIG,CAAAA,CACJ,kBAAA,CAAkBY,iCAAAA,CAChBrB,CACAgB,CAAAA,CAAiBL,CAAAA,CAAeG,CAClC,CAAA,CACA,iBAAA,CAAiBf,CAAAA,EAAAA,CAAkCH,CAAAA,CAAQc,CAAAA,CAAU,KAAA,CAAA,CAAA,CAErE,QAAA,CAAAY,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW/B,iCAAAA,gBAAiC,CAAA,CAC/C,QAAA,CAAA,CAAA0B,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW1B,iCAAAA,WAA4B,CAAA,CAC1C,QAAA,CAAA0B,6BAAAA,mBAACE,CAAoB,SAAA,CAApB,CAA8B,SAAA,CAAW5B,iCAAAA,gBAAiC,CAAA,CAAG,CAAA,CAChF,CAAA,CACA+B,8BAAAA,mBAACC,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,UAAA,CAAW,OAAA,CAClC,QAAA,CAAA,CAAAD,8BAAAA,mBAACE,CAAA,CAAM,EAAA,CAAG,MAAA,CAAO,EAAA,CAAId,CAAAA,CAAS,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAA,CAAAZ,CAAAA,CACAF,CAAAA,CAAAA,CACH,CAAA,CACCoB,CAAAA,CACCC,6BAAAA,mBAACQ,CAAA,CAAW,EAAA,CAAId,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAAd,CAAAA,CACH,CAAA,CACE,IAAA,CACHI,CAAAA,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ,CACF,CAAA,CAEAT,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6CBHZ5JZ.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { RadioTileProps } from './RadioTile.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Flex } from '../Flex/Flex';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'RadioTile';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype RadioTileElement = ComponentRef<'button'>;\n\n/**\n * Use RadioTile within a RadioGroup as the default way to present a grouped\n * set of selectable options — it offers a larger, tile-style target than\n * Radio. Use RadioCard instead when the option needs to display additional\n * child content, or Radio for a plain, compact radio button.\n *\n * @summary A tile-styled radio option for use within RadioGroup.\n */\nexport const RadioTile = forwardRef<RadioTileElement, RadioTileProps>(\n (\n {\n className,\n id: providedId,\n label,\n helperText,\n image,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': consumerAriaDescribedby,\n badge,\n flex,\n flexBasis,\n flexShrink,\n flexGrow,\n disabled,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId } = useIds({ providedId, prefix: 'radio' });\n const { hasGroupHelperText, 'aria-describedby': ariaDescribedby } = useFormGroupBase();\n const showHelperText = Boolean(!hasGroupHelperText && helperText !== undefined);\n const flexItemProps = { flex, flexBasis, flexShrink, flexGrow };\n return (\n <Box asChild data-testid={componentClassName} {...flexItemProps}>\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n {...props}\n disabled={disabled}\n id={id}\n aria-describedby={mergeIds(\n consumerAriaDescribedby,\n showHelperText ? helperTextId : ariaDescribedby\n )}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className={withGlobalPrefix('RadioContainer')}>\n <div className={withGlobalPrefix('RadioItem')}>\n <RadioGroupPrimitive.Indicator className={withGlobalPrefix('RadioIndicator')} />\n </div>\n <Flex direction=\"column\" alignItems=\"start\">\n <Label as=\"span\" id={labelId} disableUserSelect>\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n {badge}\n </Flex>\n </div>\n </RadioGroupPrimitive.Item>\n </Box>\n );\n }\n);\n\nRadioTile.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,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
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Modal/Modal.props.ts"],"sourcesContent":["import { Dialog as DialogPrimitive } from 'radix-ui';\nimport type { ComponentPropsWithRef, ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { PropDef } from '../../props/prop-def';\n\nconst imageSizes = ['md', 'lg'] as const;\n\nexport const modalPropDefs = {\n imageSize: { className: 'image-size', tokens: imageSizes, responsive: false, default: 'md' },\n} satisfies {\n imageSize: PropDef<(typeof imageSizes)[number]>;\n};\n\nexport interface BaseModalProps\n extends\n Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.DialogPortal>, 'forceMount'>,\n Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, 'asChild' | 'forceMount'>,\n ComponentPropsWithRef<'div'> {\n /**\n * Keeps the modal content mounted in the DOM when closed.\n *\n * @default false\n */\n keepMounted?: boolean;\n /**\n * Keeps the modal content mounted in the DOM when closed. Prefer `keepMounted`.\n *\n * @deprecated Use `keepMounted` instead. Will be removed when Modal migrates to Base UI.\n */\n forceMount?: boolean;\n /**\n * Additional descriptive text shown below the heading.\n */\n description?: string;\n /**\n * Hides the visible close icon button. Only use this when providing a\n * visible alternative way to close the modal, such as a Cancel button.\n *\n * @default false\n */\n hideCloseButton?: boolean;\n /**\n * @deprecated this prop has no effect and will be removed in a future major version.\n */\n fullScreen?: boolean;\n /**\n * An image, such as an SVG illustration, rendered at the top of the modal.\n * The layout automatically adjusts to accommodate it.\n */\n image?: ReactNode;\n /**\n * The image max size; `md` for standard illustrations, `lg` for larger banner images.\n */\n imageSize?: (typeof imageSizes)[number];\n /**\n * @deprecated Please use loadingHeading and loadingDescription instead\n */\n loadingText?: string;\n /**\n * The heading shown while `loading` is `true`.\n */\n loadingHeading?: string;\n /**\n * The description shown while `loading` is `true`.\n */\n loadingDescription?: string;\n}\n\ntype NonLoadingState = {\n /**\n * @default false\n */\n loading?: false;\n /**\n * The heading shown in the modal's main content. Required unless `loading` is `true`.\n */\n heading: string; // Required\n};\n\ntype LoadingState = {\n /**\n * Whether the modal is in a loading state. When `true`, a loading heading\n * (via `loadingHeading`) is required for accessibility purposes.\n */\n loading: true;\n /**\n * The heading shown in the modal's main content. Optional while `loading` is `true`.\n */\n heading?: string; // Heading becomes optional\n};\n\nexport type ModalProps = BaseModalProps & (NonLoadingState | LoadingState);\n\nexport type ModalCloseProps = Omit<\n ComponentPropsWithRef<typeof DialogPrimitive.DialogClose>,\n 'asChild'\n>;\n\nexport type ModalRootProps = Omit<ComponentPropsWithRef<typeof DialogPrimitive.Root>, 'modal'>;\n\nexport type ModalTriggerProps = Omit<\n ComponentPropsWithRef<typeof DialogPrimitive.DialogTrigger>,\n 'asChild'\n>;\n"],"mappings":";;AAIA,IAAMA,EAAa,CAAC,KAAM,IAAI,EAEjBC,EAAgB,CAC3B,UAAW,CAAE,UAAW,aAAc,OAAQD,EAAY,WAAY,GAAO,QAAS,IAAK,CAC7F","names":["imageSizes","modalPropDefs"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import{a as y}from"./chunk-7ACLSMWO.js";import{a as h}from"./chunk-57OFJSBQ.js";import{a as B}from"./chunk-UVAC3YXB.js";import{a as N}from"./chunk-QNITBIE4.js";import{a as D}from"./chunk-DAEIJDP7.js";import{a as c}from"./chunk-ZSFO3ITI.js";import{a as m}from"./chunk-RXW6PYP7.js";import{a as P}from"./chunk-4MNQRAHO.js";import{a as p}from"./chunk-QNXCNYOX.js";import{a as x}from"./chunk-UMCDT4ZD.js";import{a as M}from"./chunk-KGEVWEVL.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as s}from"./chunk-PDEVCIQ3.js";import{Dialog as i}from"radix-ui";import{CloseMediumIcon as R}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as U}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var T="Modal",o=s(T),k=U((I,$)=>{let{className:b,image:f,keepMounted:w,container:H,heading:O,description:a,hideCloseButton:g,loading:n,loadingHeading:l,loadingDescription:r,children:z,fullScreen:F,forceMount:u,loadingText:d,...S}=M(I,y);x(u!==void 0,"Modal `forceMount` is deprecated. Use `keepMounted` instead.");let E={forceMount:(w??u)||void 0,container:H},v=!!f,A=!!(n?(d||l)&&r:a);return e(i.Portal,{...E,children:e(i.Overlay,{className:s("Overlay"),children:e("div",{className:`${o}Scroll`,children:e("div",{className:`${o}ScrollPadding`,children:t(i.Content,{ref:$,className:C(o,b),"data-contains-image":v?"":void 0,"data-hide-close-button":g?"":void 0,"data-testid":o,...A?{}:{"aria-describedby":void 0},...S,children:[e(h,{children:e(N,{type:"button",label:"Close","data-visually-hidden":g?"":void 0,className:`${o}CloseIconButton`,children:e(R,{})})}),t("div",{className:`${o}OuterContainer`,children:[n?null:t("div",{className:`${o}InnerContainer`,children:[v?e(B,{children:e("div",{className:`${o}Image`,children:f})}):null,t("div",{className:`${o}Header`,children:[e(m,{asChild:!0,children:e(i.Title,{asChild:!0,children:e(c,{size:"lg",textWrap:"wrap",children:O})})}),a?e(i.Description,{asChild:!0,children:e(p,{size:"md",as:"span",children:a})}):null]})]}),n?t(P,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[e(D,{size:"lg"}),t("div",{className:`${o}LoadingHeader`,children:[e(m,{asChild:!0,children:e(i.Title,{asChild:!0,children:e(c,{size:"lg",textAlign:"center",textWrap:"wrap",children:l||d||"Loading"})})}),(d||l)&&r?e(i.Description,{asChild:!0,children:e(p,{size:"md",as:"span",textAlign:"center",children:r})}):null]})]}):z]})]})})})})})});k.displayName=T;export{k as a};
|
|
4
|
+
//# sourceMappingURL=chunk-DMO5FLXX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Modal/Modal.tsx"],"sourcesContent":["'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { warn } from '../../helpers/logger';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { modalPropDefs, type ModalProps } from './Modal.props';\nimport { Heading } from '../Heading/Heading';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { CloseMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { ModalClose } from './ModalClose';\nimport { ModalContent } from './ModalContent';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\nimport { Spinner } from '../Spinner/Spinner';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\n\nconst COMPONENT_NAME = 'Modal';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ModalElement = ComponentRef<'div'>;\n\n/**\n * Use Modal to overlay content that requests a decision from the user or\n * informs them of important information, without navigating to a new page.\n * Modal must be wrapped in a ModalRoot, and is typically composed with\n * ModalTrigger, ModalContent, ModalFooter, and ModalClose. Pass `heading` and\n * `description` for standard content, or custom children alongside\n * ModalFooter for more control over layout.\n *\n * @summary An overlay that requests a decision or displays important information.\n */\nexport const Modal = forwardRef<ModalElement, ModalProps>((props, ref) => {\n const {\n className,\n image,\n keepMounted,\n container,\n heading,\n description,\n hideCloseButton,\n loading,\n loadingHeading,\n loadingDescription,\n children,\n // Deprecated and ignored; destructured so it isn't forwarded to the DOM.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fullScreen: _fullScreen,\n forceMount,\n loadingText,\n ...modalProps\n } = extractProps(props, modalPropDefs);\n warn(forceMount !== undefined, 'Modal `forceMount` is deprecated. Use `keepMounted` instead.');\n const resolvedKeepMounted = keepMounted ?? forceMount;\n const portalProps = { forceMount: resolvedKeepMounted || undefined, container };\n const containsImage = Boolean(image);\n const hasDescription = Boolean(\n loading ? (loadingText || loadingHeading) && loadingDescription : description\n );\n\n return (\n <DialogPrimitive.Portal {...portalProps}>\n <DialogPrimitive.Overlay className={withGlobalPrefix('Overlay')}>\n <div className={`${componentClassName}Scroll`}>\n <div className={`${componentClassName}ScrollPadding`}>\n <DialogPrimitive.Content\n ref={ref}\n className={cn(componentClassName, className)}\n data-contains-image={containsImage ? '' : undefined}\n data-hide-close-button={hideCloseButton ? '' : undefined}\n data-testid={componentClassName}\n {...(hasDescription ? {} : { 'aria-describedby': undefined })}\n {...modalProps}\n >\n <ModalClose>\n <UnstyledIconButton\n type=\"button\"\n label=\"Close\"\n data-visually-hidden={hideCloseButton ? '' : undefined}\n className={`${componentClassName}CloseIconButton`}\n >\n <CloseMediumIcon />\n </UnstyledIconButton>\n </ModalClose>\n <div className={`${componentClassName}OuterContainer`}>\n {!loading ? (\n <div className={`${componentClassName}InnerContainer`}>\n {containsImage ? (\n <ModalContent>\n <div className={`${componentClassName}Image`}>{image}</div>\n </ModalContent>\n ) : null}\n <div className={`${componentClassName}Header`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textWrap=\"wrap\">\n {heading}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {description ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\">\n {description}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </div>\n ) : null}\n\n {loading ? (\n <Flex\n direction=\"column\"\n gap=\"300\"\n alignItems=\"center\"\n paddingY=\"200\"\n width=\"100%\"\n >\n <Spinner size=\"lg\" />\n <div className={`${componentClassName}LoadingHeader`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textAlign=\"center\" textWrap=\"wrap\">\n {loadingHeading || loadingText || 'Loading'}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {(loadingText || loadingHeading) && loadingDescription ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\" textAlign=\"center\">\n {loadingDescription}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </Flex>\n ) : (\n children\n )}\n </div>\n </DialogPrimitive.Content>\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nModal.displayName = COMPONENT_NAME;\n"],"mappings":"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","names":["DialogPrimitive","CloseMediumIcon","forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","forwardRef","props","ref","className","image","keepMounted","container","heading","description","hideCloseButton","loading","loadingHeading","loadingDescription","children","_fullScreen","forceMount","loadingText","modalProps","extractProps","modalPropDefs","warn","portalProps","containsImage","hasDescription","DialogPrimitive","cn","ModalClose","UnstyledIconButton","CloseMediumIcon","ModalContent","Box","Heading","BodyText","Flex","Spinner"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as o}from"./chunk-ZDDFCYPT.js";import{a as t}from"./chunk-NSX644H5.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{forwardRef as P}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var l="ProgressBarCircular",r=a(l),d=P(({value:i,label:m,labelId:n,valueText:c,...p},g)=>s("div",{ref:g,className:r,...p,style:{"--h-value":`${i}`},children:[s("svg",{xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[e("circle",{className:`${r}Track`}),e("circle",{className:`${r}Indicator`})]}),s("div",{className:`${r}Content`,children:[e(t,{children:c}),e(o,{id:n,children:m})]})]}));d.displayName=l;export{d as a};
|
|
4
|
+
//# sourceMappingURL=chunk-DNBDJEL3.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as l}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as l}from"./chunk-Q74KVLBL.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-E665GL66.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkZI5O2B2Rcjs = require('./chunk-ZI5O2B2R.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var s="Accordion",p=_chunk4Q432K4Wcjs.b.call(void 0, s),u= exports.a =_react.forwardRef.call(void 0, (a,d)=>{let{className:l,type:o="multiple",heading:t,headingElement:f="h2",helperText:P,trailingContent:A,validationText:h,validationStatus:v,collapsible:C,...N}=_chunkZPJNQBTNcjs.a.call(void 0, a,_chunkOB7O3UFLcjs.a),R={heading:t,headingElement:f,helperText:P,trailingContent:A,validationText:h,validationStatus:v},y={type:o,...N,...o==="single"?{collapsible:C}:{}};return _jsxruntime.jsxs.call(void 0, "div",{ref:d,className:_chunkONNSZMWFcjs.a.call(void 0, p,l),"data-testid":p,children:[t?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{...R}):null,_jsxruntime.jsx.call(void 0, _radixui.Accordion.Root,{...y})]})});u.displayName=s;exports.a = u;
|
|
4
|
+
//# sourceMappingURL=chunk-EOMKJBCT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-EOMKJBCT.cjs","../src/components/Accordion/Accordion.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Accordion","forwardRef","props","ref","className","type","heading","headingElement","helperText","trailingContent","validationText","validationStatus","collapsible","restProps","extractProps","marginPropDefs","sectionHeaderProps","accordionProps","jsxs","cn","jsx","SectionHeader","AccordionPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,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-EOMKJBCT.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ComponentPropsWithRef, ComponentRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { AccordionProps } from './Accordion.props';\nimport { Accordion as AccordionPrimitive } from 'radix-ui';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst COMPONENT_NAME = 'Accordion';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype AccordionElement = ComponentRef<'div'>;\n\n/**\n * Use Accordion to let users expand or collapse individual content sections,\n * presenting a large amount of information in a compact, organised interface.\n * Compose it with `AccordionItem`, `AccordionHeader`, `AccordionTrigger`, and\n * `AccordionContent` for each disclosure item. The `type` prop is required and\n * determines whether one (`single`) or multiple (`multiple`) items can be\n * expanded at once.\n *\n * @summary A vertically stacked set of expandable and collapsible content sections.\n */\nexport const Accordion = forwardRef<AccordionElement, AccordionProps>((props, ref) => {\n const {\n className,\n type = 'multiple',\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n collapsible,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const accordionProps = {\n type,\n ...restProps,\n // `collapsible` is only valid for `type=\"single\"` — Radix doesn't strip it for\n // `type=\"multiple\"`, so passing it regardless would leak onto the DOM node.\n ...(type === 'single' ? { collapsible } : {}),\n } as ComponentPropsWithRef<typeof AccordionPrimitive.Root>;\n\n return (\n <div ref={ref} className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader {...sectionHeaderProps} /> : null}\n <AccordionPrimitive.Root {...accordionProps} />\n </div>\n );\n});\n\nAccordion.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
+
|
|
3
|
+
var _chunkM7TQ74JDcjs = require('./chunk-M7TQ74JD.cjs');var _chunkEU7QBTGKcjs = require('./chunk-EU7QBTGK.cjs');var _chunkFTCABZFPcjs = require('./chunk-FTCABZFP.cjs');var _chunkRS5YT3MKcjs = require('./chunk-RS5YT3MK.cjs');var _chunkHHKQ3ZBDcjs = require('./chunk-HHKQ3ZBD.cjs');var _chunk3ODBY6JGcjs = require('./chunk-3ODBY6JG.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunk6SM74N7Tcjs = require('./chunk-6SM74N7T.cjs');var _chunkT27AGDTJcjs = require('./chunk-T27AGDTJ.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var T="Modal",o=_chunk4Q432K4Wcjs.b.call(void 0, T),k= exports.a =_react.forwardRef.call(void 0, (I,$)=>{let{className:b,image:f,keepMounted:w,container:H,heading:O,description:a,hideCloseButton:g,loading:n,loadingHeading:l,loadingDescription:r,children:z,fullScreen:F,forceMount:u,loadingText:d,...S}=_chunkZPJNQBTNcjs.a.call(void 0, I,_chunkM7TQ74JDcjs.a);_chunkT27AGDTJcjs.a.call(void 0, u!==void 0,"Modal `forceMount` is deprecated. Use `keepMounted` instead.");let E={forceMount:(_nullishCoalesce(w, () => (u)))||void 0,container:H},v=!!f,A=!!(n?(d||l)&&r:a);return _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal,{...E,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Overlay,{className:_chunk4Q432K4Wcjs.b.call(void 0, "Overlay"),children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}Scroll`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}ScrollPadding`,children:_jsxruntime.jsxs.call(void 0, _radixui.Dialog.Content,{ref:$,className:_chunkONNSZMWFcjs.a.call(void 0, o,b),"data-contains-image":v?"":void 0,"data-hide-close-button":g?"":void 0,"data-testid":o,...A?{}:{"aria-describedby":void 0},...S,children:[_jsxruntime.jsx.call(void 0, _chunkEU7QBTGKcjs.a,{children:_jsxruntime.jsx.call(void 0, _chunkRS5YT3MKcjs.a,{type:"button",label:"Close","data-visually-hidden":g?"":void 0,className:`${o}CloseIconButton`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseMediumIcon,{})})}),_jsxruntime.jsxs.call(void 0, "div",{className:`${o}OuterContainer`,children:[n?null:_jsxruntime.jsxs.call(void 0, "div",{className:`${o}InnerContainer`,children:[v?_jsxruntime.jsx.call(void 0, _chunkFTCABZFPcjs.a,{children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}Image`,children:f})}):null,_jsxruntime.jsxs.call(void 0, "div",{className:`${o}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, _chunk3ODBY6JGcjs.a,{size:"lg",textWrap:"wrap",children:O})})}),a?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunk6SM74N7Tcjs.a,{size:"md",as:"span",children:a})}):null]})]}),n?_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:`${o}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, _chunk3ODBY6JGcjs.a,{size:"lg",textAlign:"center",textWrap:"wrap",children:l||d||"Loading"})})}),(d||l)&&r?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunk6SM74N7Tcjs.a,{size:"md",as:"span",textAlign:"center",children:r})}):null]})]}):z]})]})})})})})});k.displayName=T;exports.a = k;
|
|
4
|
+
//# sourceMappingURL=chunk-GAXATLK3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GAXATLK3.cjs","../src/components/Modal/Modal.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","forwardRef","props","ref","className","image","keepMounted","container","heading","description","hideCloseButton","loading","loadingHeading","loadingDescription","children","_fullScreen","forceMount","loadingText","modalProps","extractProps","modalPropDefs","warn","portalProps","containsImage","hasDescription","jsx","DialogPrimitive"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCA1e,wEAOV,8BAOL,+CAoET,IAhEZA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAQC,+BAAAA,CAAsCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACxE,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CAGA,UAAA,CAAYC,CAAAA,CACZ,UAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAajB,CAAOkB,mBAAa,CAAA,CACrCC,iCAAAA,CAAKL,GAAe,KAAA,CAAA,CAAW,8DAA8D,CAAA,CAE7F,IAAMM,CAAAA,CAAc,CAAE,UAAA,CAAA,kBADMhB,CAAAA,SAAeU,GAAAA,CAAAA,EACc,KAAA,CAAA,CAAW,SAAA,CAAAT,CAAU,CAAA,CACxEgB,CAAAA,CAAgB,CAAA,CAAQlB,CAAAA,CACxBmB,CAAAA,CAAiB,CAAA,CAAA,CACrBb,CAAAA,CAAAA,CAAWM,CAAAA,EAAeL,CAAAA,CAAAA,EAAmBC,CAAAA,CAAqBJ,CAAAA,CAAAA,CAGpE,OACEgB,6BAAAA,eAACC,CAAgB,MAAA,CAAhB,CAAwB,GAAGJ,CAAAA,CAC1B,QAAA,CAAAG,6BAAAA,eAACC,CAAgB,OAAA,CAAhB,CAAwB,SAAA,CAAW3B,iCAAAA,SAA0B,CAAA,CAC5D,QAAA,CAAA0B,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GAXATLK3.cjs","sourcesContent":[null,"'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { warn } from '../../helpers/logger';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { modalPropDefs, type ModalProps } from './Modal.props';\nimport { Heading } from '../Heading/Heading';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { CloseMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { ModalClose } from './ModalClose';\nimport { ModalContent } from './ModalContent';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\nimport { Spinner } from '../Spinner/Spinner';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\n\nconst COMPONENT_NAME = 'Modal';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ModalElement = ComponentRef<'div'>;\n\n/**\n * Use Modal to overlay content that requests a decision from the user or\n * informs them of important information, without navigating to a new page.\n * Modal must be wrapped in a ModalRoot, and is typically composed with\n * ModalTrigger, ModalContent, ModalFooter, and ModalClose. Pass `heading` and\n * `description` for standard content, or custom children alongside\n * ModalFooter for more control over layout.\n *\n * @summary An overlay that requests a decision or displays important information.\n */\nexport const Modal = forwardRef<ModalElement, ModalProps>((props, ref) => {\n const {\n className,\n image,\n keepMounted,\n container,\n heading,\n description,\n hideCloseButton,\n loading,\n loadingHeading,\n loadingDescription,\n children,\n // Deprecated and ignored; destructured so it isn't forwarded to the DOM.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fullScreen: _fullScreen,\n forceMount,\n loadingText,\n ...modalProps\n } = extractProps(props, modalPropDefs);\n warn(forceMount !== undefined, 'Modal `forceMount` is deprecated. Use `keepMounted` instead.');\n const resolvedKeepMounted = keepMounted ?? forceMount;\n const portalProps = { forceMount: resolvedKeepMounted || undefined, container };\n const containsImage = Boolean(image);\n const hasDescription = Boolean(\n loading ? (loadingText || loadingHeading) && loadingDescription : description\n );\n\n return (\n <DialogPrimitive.Portal {...portalProps}>\n <DialogPrimitive.Overlay className={withGlobalPrefix('Overlay')}>\n <div className={`${componentClassName}Scroll`}>\n <div className={`${componentClassName}ScrollPadding`}>\n <DialogPrimitive.Content\n ref={ref}\n className={cn(componentClassName, className)}\n data-contains-image={containsImage ? '' : undefined}\n data-hide-close-button={hideCloseButton ? '' : undefined}\n data-testid={componentClassName}\n {...(hasDescription ? {} : { 'aria-describedby': undefined })}\n {...modalProps}\n >\n <ModalClose>\n <UnstyledIconButton\n type=\"button\"\n label=\"Close\"\n data-visually-hidden={hideCloseButton ? '' : undefined}\n className={`${componentClassName}CloseIconButton`}\n >\n <CloseMediumIcon />\n </UnstyledIconButton>\n </ModalClose>\n <div className={`${componentClassName}OuterContainer`}>\n {!loading ? (\n <div className={`${componentClassName}InnerContainer`}>\n {containsImage ? (\n <ModalContent>\n <div className={`${componentClassName}Image`}>{image}</div>\n </ModalContent>\n ) : null}\n <div className={`${componentClassName}Header`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textWrap=\"wrap\">\n {heading}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {description ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\">\n {description}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </div>\n ) : null}\n\n {loading ? (\n <Flex\n direction=\"column\"\n gap=\"300\"\n alignItems=\"center\"\n paddingY=\"200\"\n width=\"100%\"\n >\n <Spinner size=\"lg\" />\n <div className={`${componentClassName}LoadingHeader`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textAlign=\"center\" textWrap=\"wrap\">\n {loadingHeading || loadingText || 'Loading'}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {(loadingText || loadingHeading) && loadingDescription ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\" textAlign=\"center\">\n {loadingDescription}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </Flex>\n ) : (\n children\n )}\n </div>\n </DialogPrimitive.Content>\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n );\n});\n\nModal.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
var _chunkQKGE3FJXcjs = require('./chunk-QKGE3FJX.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var r="BannerImage",f=_chunk4Q432K4Wcjs.b.call(void 0, r),s= exports.a =_react.forwardRef.call(void 0, ({className:n,...a},p)=>_jsxruntime.jsx.call(void 0, _chunkQKGE3FJXcjs.a,{ref:p,className:_chunkONNSZMWFcjs.a.call(void 0, f,n),...a}));s.displayName=r;exports.a = s;
|
|
4
|
+
//# sourceMappingURL=chunk-GBAD27K2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GBAD27K2.cjs","../src/components/BannerImage/BannerImage.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","BannerImage","forwardRef","className","props","ref","jsx","Flex","cn"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,8BCF/F,+CAsBvB,IAfEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAY7CC,CAAAA,aAAcC,+BAAAA,CACxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,mBAACC,CAAA,CAAK,GAAA,CAAKF,CAAAA,CAAK,SAAA,CAAWG,iCAAAA,CAAGT,CAAoBI,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE7E,CAAA,CAEAH,CAAAA,CAAY,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GBAD27K2.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport type { BannerImageProps } from './BannerImage.props';\n\nconst COMPONENT_NAME = 'BannerImage';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype BannerImageElement = ComponentRef<'div'>;\n\n/**\n * Wraps a photographic or banner image with a border, rounded corners and\n * clipped overflow. Use it in the `image` prop of `Modal`, or alongside\n * `CardBannerContent` in a `Card`. Give the image `width: 100%`,\n * `height: 100%` and `object-fit: cover` to fill the wrapper.\n *\n * @summary A bordered, rounded wrapper for banner images.\n */\nexport const BannerImage = forwardRef<BannerImageElement, BannerImageProps>(\n ({ className, ...props }, ref) => (\n <Flex ref={ref} className={cn(componentClassName, className)} {...props} />\n )\n);\n\nBannerImage.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as p}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as p}from"./chunk-T36G4P7P.js";import{a as t}from"./chunk-OPPG3NOC.js";import{a}from"./chunk-KGEVWEVL.js";import{a as r}from"./chunk-J3AJBV4B.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as x}from"react";import{jsx as u,jsxs as b}from"react/jsx-runtime";var d="ExpandableCardGroup",n=o(d),h=x((m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=a(m,t);return b("div",{ref:i,className:r(n,l),"data-testid":n,...c,children:[e?u(p,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;export{h as a};
|
|
4
|
+
//# sourceMappingURL=chunk-GBDOGSHO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as f}from"./chunk-MB2NMZ2I.js";import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as f}from"./chunk-MB2NMZ2I.js";import{a as l}from"./chunk-RXW6PYP7.js";import{a as p}from"./chunk-4MNQRAHO.js";import{a}from"./chunk-KGEVWEVL.js";import{a as e}from"./chunk-J3AJBV4B.js";import{b as s}from"./chunk-PDEVCIQ3.js";import{forwardRef as E}from"react";import{jsx as o}from"react/jsx-runtime";var y="SkeletonBodyText",d=s(y),R=E((c,t)=>{let{lines:r="1",className:m,margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u,...n}=a(c,f),i={margin:x,marginTop:g,marginRight:B,marginBottom:T,marginLeft:k,marginX:N,marginY:P,width:h,maxWidth:S,minWidth:u};return r==="1"?o(l,{as:"div",ref:t,className:e(d,m),...i,...n}):o(p,{ref:t,direction:"column",gap:"75",...i,children:Array.from({length:Number(r)},(v,C)=>o("div",{className:e(d,m),...n},C))})});R.displayName=y;export{R as a};
|
|
4
|
+
//# sourceMappingURL=chunk-HNPNWQMD.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
|
|
3
|
-
var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkGS47QEXRcjs = require('./chunk-GS47QEXR.cjs');var _chunkZI5O2B2Rcjs = require('./chunk-ZI5O2B2R.cjs');var _chunkIVFMFU6Ucjs = require('./chunk-IVFMFU6U.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var y="List",a=_chunk4Q432K4Wcjs.b.call(void 0, y),O= exports.a =_react.forwardRef.call(void 0, (P,t)=>{let{id:v,as:o="ul",className:x,colorScheme:r=void 0,variant:n,listItemsVariant:T,heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B,children:l,paddingNone:R,"aria-label":d,"aria-labelledby":V,...s}=_chunkZPJNQBTNcjs.a.call(void 0, P,_chunkOB7O3UFLcjs.a),w={heading:i,headingElement:E,helperText:H,trailingContent:I,validationText:S,validationStatus:B},{id:m,labelId:p}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":_nullishCoalesce(V, () => ((!!i&&!d?p:void 0))),"data-padding-none":R?"":void 0,"data-list-items-variant":T};return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkONNSZMWFcjs.a.call(void 0, a,x),"data-testid":a,children:[i?_jsxruntime.jsx.call(void 0, _chunkZI5O2B2Rcjs.a,{id:p,...w}):null,n===void 0||r===void 0?_jsxruntime.jsx.call(void 0, _chunkIVFMFU6Ucjs.a,{asChild:!0,id:m,className:`${a}Container`,role:"list",...f,children:_jsxruntime.jsx.call(void 0, o,{ref:t,...s,children:l})}):_jsxruntime.jsx.call(void 0, _chunkGS47QEXRcjs.a,{className:`${a}Container`,paddingNone:!0,variant:n,colorScheme:r,children:_jsxruntime.jsx.call(void 0, o,{ref:t,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;exports.a = O;
|
|
4
|
+
//# sourceMappingURL=chunk-IQZRFVT2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-IQZRFVT2.cjs","../src/components/List/List.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","List","forwardRef","props","ref","providedId","Tag","className","colorScheme","variant","listItemsVariant","heading","headingElement","helperText","trailingContent","validationText","validationStatus","children","paddingNone","ariaLabel","ariaLabelledby","listProps","extractProps","marginPropDefs","sectionHeaderProps","id","labelId","useIds","attributeProps","jsxs","cn","jsx","SectionHeader","Box"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,8BCFvS,+CAsEvB,IA1DEA,CAAAA,CAAiB,MAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAOC,+BAAAA,CAAoCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACrE,GAAM,CACJ,EAAA,CAAIC,CAAAA,CACJ,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,KAAA,CAAA,CACd,OAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAcC,CAAAA,CACd,iBAAA,CAAmBC,CAAAA,CACnB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAanB,CAAOoB,mBAAc,CAAA,CAEhCC,CAAAA,CAAqB,CACzB,OAAA,CAAAb,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CACF,CAAA,CAEM,CAAE,EAAA,CAAAS,CAAAA,CAAI,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAtB,CAAAA,CAAY,MAAA,CAAQ,MAAO,CAAC,CAAA,CAKvDuB,CAAAA,CAAiB,CACrB,YAAA,CAAcT,CAAAA,CACd,iBAAA,kBAJ0BC,CAAAA,SAAAA,CADT,CAAA,CAAQT,CAAAA,EACkC,CAACQ,CAAAA,CAAYO,CAAAA,CAAU,KAAA,CAAA,GAAA,CAKlF,mBAAA,CAAqBR,CAAAA,CAAc,EAAA,CAAK,KAAA,CAAA,CACxC,yBAAA,CAA2BR,CAC7B,CAAA,CAEA,OACEmB,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,CAAG/B,CAAoBQ,CAAS,CAAA,CAAG,aAAA,CAAaR,CAAAA,CAC7D,QAAA,CAAA,CAAAY,CAAAA,CAAUoB,6BAAAA,mBAACC,CAAA,CAAc,EAAA,CAAIN,CAAAA,CAAU,GAAGF,CAAAA,CAAoB,CAAA,CAAK,IAAA,CACnEf,CAAAA,GAAY,KAAA,CAAA,EAAaD,CAAAA,GAAgB,KAAA,CAAA,CACxCuB,6BAAAA,mBAACE,CAAA,CACC,OAAA,CAAO,CAAA,CAAA,CACP,EAAA,CAAIR,CAAAA,CACJ,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-IQZRFVT2.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\nimport { useIds } from '../../hooks/use-ids';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'List';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ListElement = ComponentRef<'ol'>;\n\n/**\n * Use List to display a list of items, with support for visual variants,\n * colour schemes, a heading, and helper text. Use ListItem for simple text\n * content, or as a container for more complex or interactive content such as\n * ListItemContent, ListItemButton, or ListItemLink. `variant` and\n * `colorScheme` must be used together — if either is left `undefined`, the\n * list falls back to its default appearance.\n *\n * @summary A list of items with an optional heading, helper text, and style variants.\n */\nexport const List = forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n id: providedId,\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n variant,\n listItemsVariant,\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n children,\n paddingNone,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n\n const sectionHeaderProps = {\n heading,\n headingElement,\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n };\n\n const { id, labelId } = useIds({ providedId, prefix: 'list' });\n\n const hasHeading = Boolean(heading);\n const ariaLabelledbyValue = ariaLabelledby ?? (hasHeading && !ariaLabel ? labelId : undefined);\n\n const attributeProps = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledbyValue,\n 'data-padding-none': paddingNone ? '' : undefined,\n 'data-list-items-variant': listItemsVariant,\n };\n\n return (\n <div className={cn(componentClassName, className)} data-testid={componentClassName}>\n {heading ? <SectionHeader id={labelId} {...sectionHeaderProps} /> : null}\n {variant === undefined || colorScheme === undefined ? (\n <Box\n asChild\n id={id}\n className={`${componentClassName}Container`}\n role=\"list\"\n {...attributeProps}\n >\n <Tag ref={ref} {...listProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className={`${componentClassName}Container`}\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} role=\"list\" id={id} {...listProps} {...attributeProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkQIOH4DVUcjs = require('./chunk-QIOH4DVU.cjs');var _chunkZRZL5ETLcjs = require('./chunk-ZRZL5ETL.cjs');var _chunk4TQZRZEMcjs = require('./chunk-4TQZRZEM.cjs');var _chunkOB7O3UFLcjs = require('./chunk-OB7O3UFL.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkEDOOI4SYcjs = require('./chunk-EDOOI4SY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var N="ProgressBar",x=_chunk4Q432K4Wcjs.b.call(void 0, N),D= exports.a =_react.forwardRef.call(void 0, (h,y)=>{let{className:C,variant:o="linear",colorScheme:s="default",value:T,min:e=0,max:r=100,label:E,formatValueText:t,"aria-valuetext":M,hideLabel:V,...w}=_chunkZPJNQBTNcjs.a.call(void 0, h,_chunk4TQZRZEMcjs.a,_chunkOB7O3UFLcjs.a),{labelId:l}=_chunkRIHABKWYcjs.a.call(void 0, {prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=_chunkEDOOI4SYcjs.a.call(void 0, a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return _jsxruntime.jsxs.call(void 0, "div",{ref:y,className:_chunkONNSZMWFcjs.a.call(void 0, x,C),role:"progressbar","aria-valuenow":a,"aria-valuemin":e,"aria-valuemax":r,"aria-valuetext":M||i,"aria-labelledby":l,"data-colorscheme":s,"data-testid":x,...w,children:[o==="linear"?_jsxruntime.jsx.call(void 0, _chunkZRZL5ETLcjs.a,{...p}):null,o==="circular"?_jsxruntime.jsx.call(void 0, _chunkQIOH4DVUcjs.a,{...p}):null]})});D.displayName=N;exports.a = D;
|
|
4
|
+
//# sourceMappingURL=chunk-KCIN3NYN.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-KCIN3NYN.cjs","../src/components/ProgressBar/ProgressBar.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBar","forwardRef","props","ref","className","variant","colorScheme","value","min","max","label","formatValueText","ariaValueText","hideLabel","progressBarProps","extractProps","progressBarPropDefs","marginPropDefs","labelId","useIds","effectiveValue","percentValue","valueToPercent","valueText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCUrV,+CAmDvB,IAhDEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAa7CC,CAAAA,aAAcC,+BAAAA,CAAkDC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC1F,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,QAAA,CACV,WAAA,CAAAC,CAAAA,CAAc,SAAA,CACd,KAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CAAM,CAAA,CACN,GAAA,CAAAC,CAAAA,CAAM,GAAA,CACN,KAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAkBC,CAAAA,CAClB,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAab,CAAOc,mBAAAA,CAAqBC,mBAAc,CAAA,CAErD,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,UAAW,CAAC,CAAA,CAI3CC,CAAAA,CAAiBd,CAAAA,GAAgB,SAAA,CAAYG,CAAAA,CAAM,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAK,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAOE,CAAG,CAAC,CAAA,CAErFY,CAAAA,CAAeC,iCAAAA,CAAeF,CAAgBZ,CAAAA,CAAKC,CAAG,CAAA,CAEtDc,CAAAA,CAAYZ,CAAAA,CAAkBA,CAAAA,CAAgBS,CAAc,CAAA,CAAI,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-KCIN3NYN.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { progressBarPropDefs } from './ProgressBar.props';\nimport type { ProgressBarProps } from './ProgressBar.props';\nimport { ProgressBarLinear } from './ProgressBarLinear';\nimport { valueToPercent } from '../../helpers/value-to-percent';\nimport { useIds } from '../../hooks/use-ids';\nimport { ProgressBarCircular } from './ProgressBarCircular';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'ProgressBar';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ProgressBarElement = ComponentRef<'div'>;\n\n/**\n * Use ProgressBar to show the progress of a task or process as a linear or\n * circular bar. Use the `colorScheme` prop to indicate success or danger\n * states, and always provide a `label` describing what is progressing (this\n * can be visually hidden with `hideLabel`). For a multi-step process where\n * each step is discrete, use ProgressStepper instead.\n *\n * @summary Displays the progress of a task or process as a linear or circular bar.\n */\nexport const ProgressBar = forwardRef<ProgressBarElement, ProgressBarProps>((props, ref) => {\n const {\n className,\n variant = 'linear',\n colorScheme = 'default',\n value,\n min = 0,\n max = 100,\n label,\n formatValueText,\n 'aria-valuetext': ariaValueText,\n hideLabel,\n ...progressBarProps\n } = extractProps(props, progressBarPropDefs, marginPropDefs);\n\n const { labelId } = useIds({ prefix: 'progress' });\n\n // Determine the logical value based on status\n // If 'success', we force 100% (max); otherwise, we clamp the actual value.\n const effectiveValue = colorScheme === 'success' ? max : Math.max(min, Math.min(value, max));\n // Get the whole number percentage\n const percentValue = valueToPercent(effectiveValue, min, max);\n // Determine the text display\n const valueText = formatValueText ? formatValueText(effectiveValue) : `${percentValue}%`;\n\n const internalProgressBarProps = {\n value: percentValue,\n label,\n valueText,\n labelId,\n hideLabel,\n };\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n role=\"progressbar\"\n aria-valuenow={effectiveValue}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuetext={ariaValueText || valueText}\n aria-labelledby={labelId}\n data-colorscheme={colorScheme}\n data-testid={componentClassName}\n {...progressBarProps}\n >\n {variant === 'linear' ? <ProgressBarLinear {...internalProgressBarProps} /> : null}\n {variant === 'circular' ? <ProgressBarCircular {...internalProgressBarProps} /> : null}\n </div>\n );\n});\n\nProgressBar.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-M7TQ74JD.cjs","../src/components/Modal/Modal.props.ts"],"names":["imageSizes","modalPropDefs"],"mappings":"AAAA,qFAAY;AACZ;ACGA,IAAMA,CAAAA,CAAa,CAAC,IAAA,CAAM,IAAI,CAAA,CAEjBC,CAAAA,aAAgB,CAC3B,SAAA,CAAW,CAAE,SAAA,CAAW,YAAA,CAAc,MAAA,CAAQD,CAAAA,CAAY,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,IAAK,CAC7F,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-M7TQ74JD.cjs","sourcesContent":[null,"import { Dialog as DialogPrimitive } from 'radix-ui';\nimport type { ComponentPropsWithRef, ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { PropDef } from '../../props/prop-def';\n\nconst imageSizes = ['md', 'lg'] as const;\n\nexport const modalPropDefs = {\n imageSize: { className: 'image-size', tokens: imageSizes, responsive: false, default: 'md' },\n} satisfies {\n imageSize: PropDef<(typeof imageSizes)[number]>;\n};\n\nexport interface BaseModalProps\n extends\n Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.DialogPortal>, 'forceMount'>,\n Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, 'asChild' | 'forceMount'>,\n ComponentPropsWithRef<'div'> {\n /**\n * Keeps the modal content mounted in the DOM when closed.\n *\n * @default false\n */\n keepMounted?: boolean;\n /**\n * Keeps the modal content mounted in the DOM when closed. Prefer `keepMounted`.\n *\n * @deprecated Use `keepMounted` instead. Will be removed when Modal migrates to Base UI.\n */\n forceMount?: boolean;\n /**\n * Additional descriptive text shown below the heading.\n */\n description?: string;\n /**\n * Hides the visible close icon button. Only use this when providing a\n * visible alternative way to close the modal, such as a Cancel button.\n *\n * @default false\n */\n hideCloseButton?: boolean;\n /**\n * @deprecated this prop has no effect and will be removed in a future major version.\n */\n fullScreen?: boolean;\n /**\n * An image, such as an SVG illustration, rendered at the top of the modal.\n * The layout automatically adjusts to accommodate it.\n */\n image?: ReactNode;\n /**\n * The image max size; `md` for standard illustrations, `lg` for larger banner images.\n */\n imageSize?: (typeof imageSizes)[number];\n /**\n * @deprecated Please use loadingHeading and loadingDescription instead\n */\n loadingText?: string;\n /**\n * The heading shown while `loading` is `true`.\n */\n loadingHeading?: string;\n /**\n * The description shown while `loading` is `true`.\n */\n loadingDescription?: string;\n}\n\ntype NonLoadingState = {\n /**\n * @default false\n */\n loading?: false;\n /**\n * The heading shown in the modal's main content. Required unless `loading` is `true`.\n */\n heading: string; // Required\n};\n\ntype LoadingState = {\n /**\n * Whether the modal is in a loading state. When `true`, a loading heading\n * (via `loadingHeading`) is required for accessibility purposes.\n */\n loading: true;\n /**\n * The heading shown in the modal's main content. Optional while `loading` is `true`.\n */\n heading?: string; // Heading becomes optional\n};\n\nexport type ModalProps = BaseModalProps & (NonLoadingState | LoadingState);\n\nexport type ModalCloseProps = Omit<\n ComponentPropsWithRef<typeof DialogPrimitive.DialogClose>,\n 'asChild'\n>;\n\nexport type ModalRootProps = Omit<ComponentPropsWithRef<typeof DialogPrimitive.Root>, 'modal'>;\n\nexport type ModalTriggerProps = Omit<\n ComponentPropsWithRef<typeof DialogPrimitive.DialogTrigger>,\n 'asChild'\n>;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import{a as m}from"./chunk-ZSFO3ITI.js";import{a as n}from"./chunk-4MNQRAHO.js";import{a as t}from"./chunk-QNXCNYOX.js";import{a as o}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as B}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var p="CardBannerContent",x=r(p),g=B(({heading:C,description:d,className:s,children:f,textAlign:e,...l},c)=>i(n,{ref:c,className:o(x,s),direction:"column",spacing:"lg",...l,children:[i(n,{spacing:"sm",direction:"column",children:[a(m,{size:"sm",textAlign:e,children:C}),a(t,{size:"md",textAlign:e,children:d})]}),f]}));g.displayName=p;export{g as a};
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
4
|
+
//# sourceMappingURL=chunk-MVRKWLXX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Card/CardBannerContent.tsx"],"sourcesContent":["import { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { BodyText } from '../BodyText/BodyText';\nimport type { CardBannerContentProps } from './CardBannerContent.props';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'CardBannerContent';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype CardBannerContentElement = ComponentRef<'div'>;\n\n/**\n * Use CardBannerContent to lay out the heading and description text within a\n * Card banner, alongside any additional content such as actions. Pair it\n * with `BannerImage` for banners that include an image or illustration.\n *\n * @summary Text content layout for a Card banner.\n */\nexport const CardBannerContent = forwardRef<CardBannerContentElement, CardBannerContentProps>(\n ({ heading, description, className, children, textAlign, ...props }, ref) => {\n return (\n <Flex\n ref={ref}\n className={cn(componentClassName, className)}\n direction=\"column\"\n spacing=\"lg\"\n {...props}\n >\n <Flex spacing=\"sm\" direction=\"column\">\n <Heading size=\"sm\" textAlign={textAlign}>\n {heading}\n </Heading>\n <BodyText size=\"md\" textAlign={textAlign}>\n {description}\n </BodyText>\n </Flex>\n {children}\n </Flex>\n );\n }\n);\n\nCardBannerContent.displayName = COMPONENT_NAME;\n"],"mappings":";;wMAMA,OAAS,cAAAA,MAAkB,QAyBnB,OACE,OAAAC,EADF,QAAAC,MAAA,oBAtBR,IAAMC,EAAiB,oBACjBC,EAAqBC,EAAiBF,CAAc,EAW7CG,EAAoBN,EAC/B,CAAC,CAAE,QAAAO,EAAS,YAAAC,EAAa,UAAAC,EAAW,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEjEX,EAACY,EAAA,CACC,IAAKD,EACL,UAAWE,EAAGX,EAAoBK,CAAS,EAC3C,UAAU,SACV,QAAQ,KACP,GAAGG,EAEJ,UAAAV,EAACY,EAAA,CAAK,QAAQ,KAAK,UAAU,SAC3B,UAAAb,EAACe,EAAA,CAAQ,KAAK,KAAK,UAAWL,EAC3B,SAAAJ,EACH,EACAN,EAACgB,EAAA,CAAS,KAAK,KAAK,UAAWN,EAC5B,SAAAH,EACH,GACF,EACCE,GACH,CAGN,EAEAJ,EAAkB,YAAcH","names":["forwardRef","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","CardBannerContent","heading","description","className","children","textAlign","props","ref","Flex","cn","Heading","BodyText"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Card/CardBannerImage.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { BannerImage } from '../BannerImage/BannerImage';\nimport type { BannerImageProps } from '../BannerImage/BannerImage.props';\n\nconst COMPONENT_NAME = 'CardBannerImage';\n\ntype CardBannerImageElement = ComponentRef<'div'>;\n\n/**\n * @deprecated Use `BannerImage` instead. `CardBannerImage` will be removed in v1.\n */\nexport const CardBannerImage = forwardRef<CardBannerImageElement, BannerImageProps>(\n (props, ref) => <BannerImage ref={ref} {...props} />\n);\n\nCardBannerImage.displayName = COMPONENT_NAME;\n"],"mappings":";;wCAAA,OAAS,cAAAA,MAAkB,QAaT,cAAAC,MAAA,oBARlB,IAAMC,EAAiB,kBAOVC,EAAkBC,EAC7B,CAACC,EAAOC,IAAQL,EAACM,EAAA,CAAY,IAAKD,EAAM,GAAGD,EAAO,CACpD,EAEAF,EAAgB,YAAcD","names":["forwardRef","jsx","COMPONENT_NAME","CardBannerImage","forwardRef","props","ref","BannerImage"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as B}from"./chunk-DNBDJEL3.js";import{a as v}from"./chunk-NLRXPN7J.js";import{a as g}from"./chunk-2WWK2BTL.js";import{a as u}from"./chunk-OPPG3NOC.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as d}from"./chunk-32MOX6DL.js";import{a as f}from"./chunk-KGEVWEVL.js";import{a as n}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{forwardRef as R}from"react";import{jsx as b,jsxs as I}from"react/jsx-runtime";var N="ProgressBar",x=c(N),D=R((h,y)=>{let{className:C,variant:o="linear",colorScheme:s="default",value:T,min:e=0,max:r=100,label:E,formatValueText:t,"aria-valuetext":M,hideLabel:V,...w}=f(h,g,u),{labelId:l}=P({prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=d(a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return I("div",{ref:y,className:n(x,C),role:"progressbar","aria-valuenow":a,"aria-valuemin":e,"aria-valuemax":r,"aria-valuetext":M||i,"aria-labelledby":l,"data-colorscheme":s,"data-testid":x,...w,children:[o==="linear"?b(v,{...p}):null,o==="circular"?b(B,{...p}):null]})});D.displayName=N;export{D as a};
|
|
4
|
+
//# sourceMappingURL=chunk-NBLUIVPS.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as s}from"./chunk-ZDDFCYPT.js";import{a as t}from"./chunk-NSX644H5.js";import{b as o}from"./chunk-PDEVCIQ3.js";import{forwardRef as f}from"react";import{jsx as r,jsxs as B}from"react/jsx-runtime";var i="ProgressBarLinear",e=o(i),g=f(({value:n,label:m,valueText:d,labelId:l,hideLabel:a,...p},P)=>B("div",{ref:P,className:e,...p,children:[r(s,{id:l,"data-visually-hidden":a?"":void 0,children:m}),r(t,{"data-visually-hidden":a?"":void 0,children:d}),r("div",{className:`${e}Track`,children:r("div",{className:`${e}Indicator`,style:{width:`${n}%`}})})]}));g.displayName=i;export{g as a};
|
|
4
|
+
//# sourceMappingURL=chunk-NLRXPN7J.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
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkSR5END3Tcjs = require('./chunk-SR5END3T.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===_chunkSR5END3Tcjs.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-NPGWC5UG.cjs.map
|