@utilitywarehouse/hearth-react 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2O7CWEQY.js +2 -0
- package/dist/chunk-2O7CWEQY.js.map +1 -0
- package/dist/chunk-3NXXZ66J.js +2 -0
- package/dist/chunk-3NXXZ66J.js.map +1 -0
- package/dist/chunk-3NY5JW7O.cjs +2 -0
- package/dist/chunk-3NY5JW7O.cjs.map +1 -0
- package/dist/{chunk-PFQOYDXS.js → chunk-44M3HSOB.js} +2 -2
- package/dist/{chunk-SQC6TTIC.cjs → chunk-66T22MXP.cjs} +2 -2
- package/dist/{chunk-SQC6TTIC.cjs.map → chunk-66T22MXP.cjs.map} +1 -1
- package/dist/{chunk-6LS3OYJB.cjs → chunk-AADLVX32.cjs} +2 -2
- package/dist/chunk-AADLVX32.cjs.map +1 -0
- package/dist/{chunk-AOJOLYXJ.cjs → chunk-F2ES3FZC.cjs} +1 -1
- package/dist/{chunk-AOJOLYXJ.cjs.map → chunk-F2ES3FZC.cjs.map} +1 -1
- package/dist/{chunk-EIZVSH76.cjs → chunk-FED7OYNV.cjs} +2 -2
- package/dist/{chunk-EIZVSH76.cjs.map → chunk-FED7OYNV.cjs.map} +1 -1
- package/dist/{chunk-SEYBIGHK.js → chunk-HCP77JZ2.js} +2 -2
- package/dist/{chunk-3M5GFHDO.cjs → chunk-IAKA53GQ.cjs} +1 -1
- package/dist/{chunk-3M5GFHDO.cjs.map → chunk-IAKA53GQ.cjs.map} +1 -1
- package/dist/{chunk-IOPJMAFL.js → chunk-INZC24ME.js} +2 -2
- package/dist/{chunk-FHBLIK6L.cjs → chunk-JDRGWJC4.cjs} +1 -1
- package/dist/{chunk-FHBLIK6L.cjs.map → chunk-JDRGWJC4.cjs.map} +1 -1
- package/dist/{chunk-X472IBQX.js → chunk-JLHY5GT7.js} +2 -2
- package/dist/{chunk-BNMQKKQG.cjs → chunk-JTVPVO3R.cjs} +2 -2
- package/dist/{chunk-BNMQKKQG.cjs.map → chunk-JTVPVO3R.cjs.map} +1 -1
- package/dist/{chunk-HJOJ2HKF.js → chunk-KRLNL2VW.js} +2 -2
- package/dist/chunk-LSSHFMRD.js +2 -0
- package/dist/{chunk-ZIV2RZZI.js.map → chunk-LSSHFMRD.js.map} +1 -1
- package/dist/{chunk-2GYFUPYX.js → chunk-M7JJH7UU.js} +2 -2
- package/dist/{chunk-YWGTX6NX.cjs → chunk-MGVROLEY.cjs} +1 -1
- package/dist/{chunk-YWGTX6NX.cjs.map → chunk-MGVROLEY.cjs.map} +1 -1
- package/dist/{chunk-3XA37DA3.cjs → chunk-MMH5KK7U.cjs} +1 -1
- package/dist/{chunk-3XA37DA3.cjs.map → chunk-MMH5KK7U.cjs.map} +1 -1
- package/dist/{chunk-NPVOVECB.cjs → chunk-MYVMGI3E.cjs} +2 -2
- package/dist/chunk-MYVMGI3E.cjs.map +1 -0
- package/dist/{chunk-KAWXU6RF.js → chunk-ODYEBO3I.js} +2 -2
- package/dist/{chunk-NMWYVOB5.cjs → chunk-OK7GLQBU.cjs} +1 -1
- package/dist/{chunk-NMWYVOB5.cjs.map → chunk-OK7GLQBU.cjs.map} +1 -1
- package/dist/chunk-PPOYG7AT.js +2 -0
- package/dist/{chunk-HKAUNENU.js.map → chunk-PPOYG7AT.js.map} +1 -1
- package/dist/{chunk-L5X63HCH.js → chunk-QG2PPXGR.js} +2 -2
- package/dist/{chunk-TBYXQUBP.js → chunk-TQIXFWV6.js} +2 -2
- package/dist/chunk-UMWTPGDS.cjs +2 -0
- package/dist/chunk-UMWTPGDS.cjs.map +1 -0
- package/dist/{chunk-OUOHGXSD.cjs → chunk-WZA32VXG.cjs} +2 -2
- package/dist/{chunk-OUOHGXSD.cjs.map → chunk-WZA32VXG.cjs.map} +1 -1
- package/dist/{chunk-UA7DGD3T.js → chunk-YZ26DXQZ.js} +2 -2
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.cjs +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.js +1 -1
- package/dist/components/FormGroupBase/FormGroupBase.cjs +1 -1
- package/dist/components/FormGroupBase/FormGroupBase.js +1 -1
- package/dist/components/List/List.cjs +1 -1
- package/dist/components/List/List.cjs.map +1 -1
- package/dist/components/List/List.d.cts +1 -1
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/List.props.d.cts +2 -13
- package/dist/components/List/List.props.d.ts +2 -13
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/Radio/Radio.cjs +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.cjs +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioTile/RadioTile.cjs +1 -1
- package/dist/components/RadioTile/RadioTile.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs +1 -1
- package/dist/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.cts +0 -4
- package/dist/components/SectionHeader/SectionHeader.d.ts +0 -4
- package/dist/components/SectionHeader/SectionHeader.js +1 -1
- package/dist/components/SectionHeader/SectionHeader.props.cjs +1 -2
- package/dist/components/SectionHeader/SectionHeader.props.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.props.d.cts +6 -39
- package/dist/components/SectionHeader/SectionHeader.props.d.ts +6 -39
- package/dist/components/SectionHeader/SectionHeader.props.js +0 -1
- package/dist/components/TextArea/TextArea.cjs +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextInput/TextInput.cjs +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/styles.css +1 -1
- package/dist/chunk-2HATIMMN.cjs +0 -2
- package/dist/chunk-2HATIMMN.cjs.map +0 -1
- package/dist/chunk-6LS3OYJB.cjs.map +0 -1
- package/dist/chunk-HKAUNENU.js +0 -2
- package/dist/chunk-HLGSJ7VZ.js +0 -2
- package/dist/chunk-HLGSJ7VZ.js.map +0 -1
- package/dist/chunk-LX55FQR5.js +0 -2
- package/dist/chunk-LX55FQR5.js.map +0 -1
- package/dist/chunk-NPVOVECB.cjs.map +0 -1
- package/dist/chunk-QFVIQ5MD.cjs +0 -2
- package/dist/chunk-QFVIQ5MD.cjs.map +0 -1
- package/dist/chunk-RL2GY4IW.js +0 -2
- package/dist/chunk-RL2GY4IW.js.map +0 -1
- package/dist/chunk-TBOBX6LG.cjs +0 -2
- package/dist/chunk-TBOBX6LG.cjs.map +0 -1
- package/dist/chunk-ZIV2RZZI.js +0 -2
- /package/dist/{chunk-PFQOYDXS.js.map → chunk-44M3HSOB.js.map} +0 -0
- /package/dist/{chunk-SEYBIGHK.js.map → chunk-HCP77JZ2.js.map} +0 -0
- /package/dist/{chunk-IOPJMAFL.js.map → chunk-INZC24ME.js.map} +0 -0
- /package/dist/{chunk-X472IBQX.js.map → chunk-JLHY5GT7.js.map} +0 -0
- /package/dist/{chunk-HJOJ2HKF.js.map → chunk-KRLNL2VW.js.map} +0 -0
- /package/dist/{chunk-2GYFUPYX.js.map → chunk-M7JJH7UU.js.map} +0 -0
- /package/dist/{chunk-KAWXU6RF.js.map → chunk-ODYEBO3I.js.map} +0 -0
- /package/dist/{chunk-L5X63HCH.js.map → chunk-QG2PPXGR.js.map} +0 -0
- /package/dist/{chunk-TBYXQUBP.js.map → chunk-TQIXFWV6.js.map} +0 -0
- /package/dist/{chunk-UA7DGD3T.js.map → chunk-YZ26DXQZ.js.map} +0 -0
package/dist/chunk-2HATIMMN.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SectionHeader/SectionHeader.props.ts"],"names":["sizes","sectionHeaderPropDefs"],"mappings":"AASA,6EAAMA,CAAAA,CAAQ,CAAC,IAAA,CAAM,IAAA,CAAM,IAAA,CAAM,IAAI,CAAA,CAExBC,CAAAA,aAAwB,CACnC,IAAA,CAAM,CAAE,SAAA,CAAW,MAAA,CAAQ,MAAA,CAAQD,CAAAA,CAAO,UAAA,CAAY,CAAA,CAAA,CAAO,OAAA,CAAS,IAAK,CAC7E,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-2HATIMMN.cjs","sourcesContent":["import { ComponentType } from 'react';\nimport { MarginProps } from '../../props/margin.props';\nimport { PropDef } from '../../props/prop-def';\nimport { TextAlignProps } from '../../props/text-align.props';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { TextWrapProps } from '../../props/text-wrap.props';\nimport type { ComponentPropsWithout, RemovedProps } from '../../types/component-props';\nimport { LinkProps } from '../Link/Link.props';\n\nconst sizes = ['sm', 'md', 'lg', 'xl'] as const;\n\nexport const sectionHeaderPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: false, default: 'md' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface SectionHeaderProps\n extends ComponentPropsWithout<'h2', RemovedProps>,\n TextAlignProps,\n TextTransformProps,\n TextWrapProps,\n MarginProps {\n /**\n * Actual string to display as section header\n */\n heading?: string;\n /**\n * @default h2\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'div';\n /**\n * Set the text size styles.\n * @default md\n */\n size?: (typeof sizes)[number];\n /**\n * Optional helper text to provide additional context or instructions.\n */\n helperText?: string;\n /**\n * Optional configuration of link at the side.\n * Both linkText and linkHref need to be present for the link to appear.\n */\n linkText?: string;\n linkHref?: LinkProps['href'];\n /**\n * @default Chevron\n */\n linkIcon?: ComponentType;\n linkIconPosition?: 'left' | 'right';\n /**\n * @default true\n */\n linkShowIcon?: boolean;\n /**\n * @default _self\n */\n linkTarget?: React.HTMLAttributeAnchorTarget | undefined;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6LS3OYJB.cjs","../src/components/Radio/Radio.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","Radio","providedId","label","helperText","image","className","labelFontWeight","ariaLabelledby","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","showLabel","clsx","RadixRadioGroup","Flex","Label","HelperText"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECA9N,wEAEN,mCAI6B,IASxCA,CAAAA,CAAgB,OAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAgB5CC,CAAAA,aAAc,CAAA,CAAA,UAAA,CACzB,CACE,CACE,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,GAAM,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAZ,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAa,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBX,CAAAA,GAAe,KAAA,CAAA,CAC/De,CAAAA,CAAY,CAAC,CAAChB,CAAAA,CACpB,OACE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWiB,4BAAAA,CAAKrB,CAAoBO,CAAS,CAAA,CAAA,CAChD,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAACe,mBAAAA,CAAgB,IAAA,CAAhB,CACC,GAAA,CAAKX,CAAAA,CACJ,GAAGD,CAAAA,CACJ,EAAA,CAAIE,CAAAA,CACJ,kBAAA,CAAkBO,CAAAA,CAAiBL,CAAAA,CAAeG,CAAAA,CAClD,iBAAA,CAAiBR,CAAAA,EAAAA,CAAkCL,CAAAA,CAAQS,CAAAA,CAAU,KAAA,CAAA,CAAA,CACrE,SAAA,CAAU,kBAAA,CAAA,CAEV,CAAA,CAAA,aAAA,CAACS,mBAAAA,CAAgB,SAAA,CAAhB,CAA0B,SAAA,CAAU,uBAAA,CAAwB,CAC/D,CACF,CAAA,CACCF,CAAAA,CACC,CAAA,CAAA,aAAA,CAACG,mBAAAA,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,GAAA,CAAI,IAAA,CAAA,CAC3B,CAAA,CAAA,aAAA,CAACC,mBAAAA,CAAA,CACC,EAAA,CAAIX,CAAAA,CACJ,OAAA,CAASD,CAAAA,CACT,iBAAA,CAAiB,CAAA,CAAA,CACjB,UAAA,CAAYJ,CAAAA,CACZ,SAAA,CAAU,mBAAA,CAAA,CAETF,CAAAA,CACAF,CACH,CAAA,CACCe,CAAAA,CACC,CAAA,CAAA,aAAA,CAACM,mBAAAA,CAAA,CAAW,EAAA,CAAIX,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAAA,CAC5CT,CACH,CAAA,CACE,IACN,CAAA,CACE,IACN,CAEJ,CACF,CAAA,CAEAH,CAAAA,CAAM,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6LS3OYJB.cjs","sourcesContent":[null,"import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport type { RadioProps } from './Radio.props';\n\nimport { RadioGroup as RadixRadioGroup } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Flex } from '../Flex/Flex';\nimport { Label } from '../Label/Label';\nimport { useIds } from '../../hooks/use-ids';\nimport { HelperText } from '../HelperText/HelperText';\nimport type { ElementRef } from 'react';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\n\nconst componentName = 'Radio';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype RadioElement = ElementRef<'button'>;\n\n/**\n * `Radio` can be used to choose between a set of more than two options.\n *\n * `Radio` should always be used with a `RadioGroup` or `RadioGridGroup` to\n * handle the state control and layout.\n *\n * `Radio` is, by default, appropriately labelled when using\n * the `label` prop, if you do not provide a label, you must specify an\n * `aria-label` or `aria-labelledby` for accessibility.\n *\n * > This component does not need to be wrapped in a `ThemeProvider` and can be used standalone with other component libraries.\n */\nexport const Radio = React.forwardRef<RadioElement, RadioProps>(\n (\n {\n id: providedId,\n label,\n helperText,\n image,\n className,\n labelFontWeight,\n 'aria-labelledby': ariaLabelledby,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId } = useIds({ providedId, prefix: 'radio' });\n const { hasGroupHelperText, 'aria-describedby': ariaDescribedby } = useFormGroupBase();\n const showHelperText = Boolean(!hasGroupHelperText && helperText !== undefined);\n const showLabel = !!label;\n return (\n <div className={clsx(componentClassName, className)}>\n <div className=\"hearth-RadioContainer\">\n <RadixRadioGroup.Item\n ref={ref}\n {...props}\n id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n className=\"hearth-RadioItem\"\n >\n <RadixRadioGroup.Indicator className=\"hearth-RadioIndicator\" />\n </RadixRadioGroup.Item>\n </div>\n {showLabel ? (\n <Flex direction=\"column\" gap=\"50\">\n <Label\n id={labelId}\n htmlFor={id}\n disableUserSelect\n fontWeight={labelFontWeight}\n className=\"hearth-RadioLabel\"\n >\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n ) : null}\n </div>\n );\n }\n);\n\nRadio.displayName = componentName;\n"]}
|
package/dist/chunk-HKAUNENU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-C2M7FEJX.js";import{a as n}from"./chunk-JPYVWTDN.js";import{c as R}from"./chunk-5OLLJKEO.js";import{a as s}from"./chunk-432A6CLH.js";import{a as p}from"./chunk-QC4ZMGCU.js";import{b as m}from"./chunk-4PEMW3UE.js";import*as e from"react";import G from"clsx";import{RadioGroup as f}from"radix-ui";var b="RadioTile",v=m(b),E=e.forwardRef(({className:u,id:h,label:o,helperText:i,image:x,"aria-labelledby":a,...T},y)=>{let{id:r,labelId:t,helperTextId:d}=p({providedId:h,prefix:"radio"}),{hasGroupHelperText:I,"aria-describedby":N}=R(),l=!I&&i!==void 0;return e.createElement(f.Item,{ref:y,className:G(v,u),...T,id:r,"aria-describedby":l?d:N,"aria-labelledby":a||(o?t:void 0)},e.createElement("div",{className:"hearth-RadioContainer"},e.createElement("div",{className:"hearth-RadioItem"},e.createElement(f.Indicator,{className:"hearth-RadioIndicator"})),e.createElement(s,{direction:"column"},e.createElement(c,{id:t,htmlFor:r,disableUserSelect:!0,className:"hearth-RadioLabel"},x,o),l?e.createElement(n,{id:d,disableUserSelect:!0},i):null)))});E.displayName=b;export{E as a};
|
|
2
|
-
//# sourceMappingURL=chunk-HKAUNENU.js.map
|
package/dist/chunk-HLGSJ7VZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SectionHeader/SectionHeader.props.ts"],"sourcesContent":["import { ComponentType } from 'react';\nimport { MarginProps } from '../../props/margin.props';\nimport { PropDef } from '../../props/prop-def';\nimport { TextAlignProps } from '../../props/text-align.props';\nimport { TextTransformProps } from '../../props/text-transform.props';\nimport { TextWrapProps } from '../../props/text-wrap.props';\nimport type { ComponentPropsWithout, RemovedProps } from '../../types/component-props';\nimport { LinkProps } from '../Link/Link.props';\n\nconst sizes = ['sm', 'md', 'lg', 'xl'] as const;\n\nexport const sectionHeaderPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: false, default: 'md' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface SectionHeaderProps\n extends ComponentPropsWithout<'h2', RemovedProps>,\n TextAlignProps,\n TextTransformProps,\n TextWrapProps,\n MarginProps {\n /**\n * Actual string to display as section header\n */\n heading?: string;\n /**\n * @default h2\n */\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'div';\n /**\n * Set the text size styles.\n * @default md\n */\n size?: (typeof sizes)[number];\n /**\n * Optional helper text to provide additional context or instructions.\n */\n helperText?: string;\n /**\n * Optional configuration of link at the side.\n * Both linkText and linkHref need to be present for the link to appear.\n */\n linkText?: string;\n linkHref?: LinkProps['href'];\n /**\n * @default Chevron\n */\n linkIcon?: ComponentType;\n linkIconPosition?: 'left' | 'right';\n /**\n * @default true\n */\n linkShowIcon?: boolean;\n /**\n * @default _self\n */\n linkTarget?: React.HTMLAttributeAnchorTarget | undefined;\n}\n"],"mappings":"AASA,IAAMA,EAAQ,CAAC,KAAM,KAAM,KAAM,IAAI,EAExBC,EAAwB,CACnC,KAAM,CAAE,UAAW,OAAQ,OAAQD,EAAO,WAAY,GAAO,QAAS,IAAK,CAC7E","names":["sizes","sectionHeaderPropDefs"]}
|
package/dist/chunk-LX55FQR5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as g}from"./chunk-HLGSJ7VZ.js";import{a as x}from"./chunk-3YTV62G7.js";import{a as h}from"./chunk-JPYVWTDN.js";import{a as d}from"./chunk-432A6CLH.js";import{a as S}from"./chunk-FGPP4NKK.js";import{a as p}from"./chunk-LFUFY26R.js";import{a as c}from"./chunk-AFZ3OJUA.js";import{a as f}from"./chunk-VV7AHCQF.js";import{a as s}from"./chunk-XQ5A24NX.js";import{a as H}from"./chunk-QC4ZMGCU.js";import{a as l}from"./chunk-RTGGS5XX.js";import{b as a}from"./chunk-4PEMW3UE.js";import*as e from"react";import k from"clsx";import{ChevronRightSmallIcon as L}from"@utilitywarehouse/hearth-react-icons";var P="SectionHeader",b=a(P),y=e.forwardRef(({size:I,...T})=>{let{className:u,heading:v,as:E="div",helperText:r,linkText:o,linkHref:t,linkIconPosition:i="right",linkShowIcon:n=!0,linkTarget:N="_self",linkIcon:m=L,id:R}=l({size:I,...T},g,p,c,f,s),{labelId:w,helperTextId:D}=H({providedId:R,prefix:"sectionHeader"}),C=t&&o;return e.createElement("div",{className:k(b,u)},e.createElement(d,{direction:"column",flexGrow:"1",className:k("hearth-SectionHeaderTextContent")},e.createElement(x,{asChild:!0,size:"md",id:w},e.createElement(E,null,v)),r?e.createElement(h,{id:D,disableUserSelect:!0},r):null),C?e.createElement(S,{href:t,target:N},n&&i==="left"&&e.createElement(m,null),o,n&&i==="right"&&e.createElement(m,null)):null)});y.displayName=P;export{y as a};
|
|
2
|
-
//# sourceMappingURL=chunk-LX55FQR5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/SectionHeader/SectionHeader.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { ChevronRightSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport type { ElementRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { useIds } from '../../hooks/use-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { textAlignPropDefs } from '../../props/text-align.props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\nimport { textWrapPropDefs } from '../../props/text-wrap.props';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Link } from '../Link/Link';\nimport { sectionHeaderPropDefs, SectionHeaderProps } from './SectionHeader.props';\n\nconst componentName = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype SectionHeaderElement = ElementRef<'div'>;\n\nexport const SectionHeader = React.forwardRef<SectionHeaderElement, SectionHeaderProps>(\n ({ size, ...props }) => {\n const {\n className,\n heading,\n as: SectionHeaderEl = 'div',\n helperText,\n linkText,\n linkHref,\n linkIconPosition = 'right',\n linkShowIcon = true,\n linkTarget = '_self',\n linkIcon: SectionHeaderLinkIcon = ChevronRightSmallIcon,\n id: providedId,\n } = extractProps(\n { size, ...props },\n sectionHeaderPropDefs,\n textAlignPropDefs,\n textTransformPropDefs,\n textWrapPropDefs,\n marginPropDefs\n );\n const { labelId, helperTextId } = useIds({\n providedId,\n prefix: 'sectionHeader',\n });\n const showLink = linkHref && linkText;\n return (\n <div className={clsx(componentClassName, className)}>\n <Flex direction=\"column\" flexGrow=\"1\" className={clsx('hearth-SectionHeaderTextContent')}>\n <Heading asChild size=\"md\" id={labelId}>\n <SectionHeaderEl>{heading}</SectionHeaderEl>\n </Heading>\n {helperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n {showLink ? (\n <Link href={linkHref} target={linkTarget}>\n {linkShowIcon && linkIconPosition === 'left' && <SectionHeaderLinkIcon />}\n {linkText}\n {linkShowIcon && linkIconPosition === 'right' && <SectionHeaderLinkIcon />}\n </Link>\n ) : null}\n </div>\n );\n }\n);\n\nSectionHeader.displayName = componentName;\n"],"mappings":"geAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAU,OAEjB,OAAS,yBAAAC,MAA6B,uCAetC,IAAMC,EAAgB,gBAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAsB,aACjC,CAAC,CAAE,KAAAC,EAAM,GAAGC,CAAM,IAAM,CACtB,GAAM,CACJ,UAAAC,EACA,QAAAC,EACA,GAAIC,EAAkB,MACtB,WAAAC,EACA,SAAAC,EACA,SAAAC,EACA,iBAAAC,EAAmB,QACnB,aAAAC,EAAe,GACf,WAAAC,EAAa,QACb,SAAUC,EAAwBC,EAClC,GAAIC,CACN,EAAIC,EACF,CAAE,KAAAd,EAAM,GAAGC,CAAM,EACjBc,EACAC,EACAC,EACAC,EACAC,CACF,EACM,CAAE,QAAAC,EAAS,aAAAC,CAAa,EAAIC,EAAO,CACvC,WAAAT,EACA,OAAQ,eACV,CAAC,EACKU,EAAWhB,GAAYD,EAC7B,OACE,gBAAC,OAAI,UAAWkB,EAAK3B,EAAoBK,CAAS,GAChD,gBAACuB,EAAA,CAAK,UAAU,SAAS,SAAS,IAAI,UAAWD,EAAK,iCAAiC,GACrF,gBAACE,EAAA,CAAQ,QAAO,GAAC,KAAK,KAAK,GAAIN,GAC7B,gBAAChB,EAAA,KAAiBD,CAAQ,CAC5B,EACCE,EACC,gBAACsB,EAAA,CAAW,GAAIN,EAAc,kBAAiB,IAC5ChB,CACH,EACE,IACN,EACCkB,EACC,gBAACK,EAAA,CAAK,KAAMrB,EAAU,OAAQG,GAC3BD,GAAgBD,IAAqB,QAAU,gBAACG,EAAA,IAAsB,EACtEL,EACAG,GAAgBD,IAAqB,SAAW,gBAACG,EAAA,IAAsB,CAC1E,EACE,IACN,CAEJ,CACF,EAEAZ,EAAc,YAAcH","names":["React","clsx","ChevronRightSmallIcon","componentName","componentClassName","withGlobalPrefix","SectionHeader","size","props","className","heading","SectionHeaderEl","helperText","linkText","linkHref","linkIconPosition","linkShowIcon","linkTarget","SectionHeaderLinkIcon","ChevronRightSmallIcon","providedId","extractProps","sectionHeaderPropDefs","textAlignPropDefs","textTransformPropDefs","textWrapPropDefs","marginPropDefs","labelId","helperTextId","useIds","showLink","clsx","Flex","Heading","HelperText","Link"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-NPVOVECB.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","RadioTile","className","providedId","label","helperText","image","ariaLabelledby","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","RadixRadioGroup","clsx","Flex","Label","HelperText"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECA9N,wEACN,mCAI6B,IAOxCA,CAAAA,CAAgB,WAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAkB,CAAA,CAAA,UAAA,CAC7B,CACE,CACE,SAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,GAAM,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAV,CAAAA,CAAY,MAAA,CAAQ,OAAQ,CAAC,CAAA,CACtE,CAAE,kBAAA,CAAAW,CAAAA,CAAoB,kBAAA,CAAoBC,CAAgB,CAAA,CAAIC,iCAAAA,CAAiB,CAC/EC,CAAAA,CAAyB,CAACH,CAAAA,EAAsBT,CAAAA,GAAe,KAAA,CAAA,CACrE,OACE,CAAA,CAAA,aAAA,CAACa,mBAAAA,CAAgB,IAAA,CAAhB,CACC,GAAA,CAAKT,CAAAA,CACL,SAAA,CAAWU,4BAAAA,CAAKpB,CAAoBG,CAAS,CAAA,CAC5C,GAAGM,CAAAA,CACJ,EAAA,CAAIE,CAAAA,CACJ,kBAAA,CAAkBO,CAAAA,CAAiBL,CAAAA,CAAeG,CAAAA,CAClD,iBAAA,CAAiBR,CAAAA,EAAAA,CAAkCH,CAAAA,CAAQO,CAAAA,CAAU,KAAA,CAAA,CAAA,CAAA,CAErE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAACO,mBAAAA,CAAgB,SAAA,CAAhB,CAA0B,SAAA,CAAU,uBAAA,CAAwB,CAC/D,CAAA,CACA,CAAA,CAAA,aAAA,CAACE,mBAAAA,CAAA,CAAK,SAAA,CAAU,QAAA,CAAA,CACd,CAAA,CAAA,aAAA,CAACC,mBAAAA,CAAA,CAAM,EAAA,CAAIV,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAAI,iBAAA,CAAiB,CAAA,CAAA,CAAC,SAAA,CAAU,mBAAA,CAAA,CAC1DJ,CAAAA,CACAF,CACH,CAAA,CACCa,CAAAA,CACC,CAAA,CAAA,aAAA,CAACK,mBAAAA,CAAA,CAAW,EAAA,CAAIV,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAAA,CAC5CP,CACH,CAAA,CACE,IACN,CACF,CACF,CAEJ,CACF,CAAA,CAEAJ,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-NPVOVECB.cjs","sourcesContent":[null,"import * as React from 'react';\nimport clsx from 'clsx';\nimport type { ElementRef } from 'react';\nimport type { RadioTileProps } from './RadioTile.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { RadioGroup as RadixRadioGroup } from 'radix-ui';\nimport { useIds } from '../../hooks/use-ids';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Flex } from '../Flex/Flex';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\n\nconst componentName = 'RadioTile';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype RadioTileElement = ElementRef<'button'>;\n\nexport const RadioTile = React.forwardRef<RadioTileElement, RadioTileProps>(\n (\n {\n className,\n id: providedId,\n label,\n helperText,\n image,\n 'aria-labelledby': ariaLabelledby,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId } = useIds({ providedId, prefix: 'radio' });\n const { hasGroupHelperText, 'aria-describedby': ariaDescribedby } = useFormGroupBase();\n const showHelperText = Boolean(!hasGroupHelperText && helperText !== undefined);\n return (\n <RadixRadioGroup.Item\n ref={ref}\n className={clsx(componentClassName, className)}\n {...props}\n id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className=\"hearth-RadioContainer\">\n <div className=\"hearth-RadioItem\">\n <RadixRadioGroup.Indicator className=\"hearth-RadioIndicator\" />\n </div>\n <Flex direction=\"column\">\n <Label id={labelId} htmlFor={id} disableUserSelect className=\"hearth-RadioLabel\">\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n </div>\n </RadixRadioGroup.Item>\n );\n }\n);\n\nRadioTile.displayName = componentName;\n"]}
|
package/dist/chunk-QFVIQ5MD.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkTBOBX6LGcjs = require('./chunk-TBOBX6LG.cjs');var _chunkASOT2I4Dcjs = require('./chunk-ASOT2I4D.cjs');var _chunkVPZS4ZLEcjs = require('./chunk-VPZS4ZLE.cjs');var _chunkLAVQWQP2cjs = require('./chunk-LAVQWQP2.cjs');var _chunkTMWB3U4Xcjs = require('./chunk-TMWB3U4X.cjs');var _chunk5DRU6TDWcjs = require('./chunk-5DRU6TDW.cjs');var _chunk4H5JT5ORcjs = require('./chunk-4H5JT5OR.cjs');var _react = require('react'); var e = _interopRequireWildcard(_react);var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var y="List",B=_chunk4H5JT5ORcjs.b.call(void 0, y),I= exports.a =e.forwardRef((g,r)=>{let{as:i="ul",className:L,colorScheme:a=void 0,heading:t,headingElement:u="div",helperText:o,linkText:N,linkHref:T,children:n,variant:l,id:P,"aria-labelledby":v,"aria-describedby":C,...s}=_chunk5DRU6TDWcjs.a.call(void 0, g,_chunkLAVQWQP2cjs.a),{id:E,labelId:H,helperTextId:R}=_chunkTMWB3U4Xcjs.a.call(void 0, {providedId:P,prefix:"list"}),d={id:E,role:"list","aria-labelledby":_nullishCoalesce(v, () => ((t?H:void 0))),"aria-describedby":_nullishCoalesce(C, () => ((o?R:void 0)))};return e.createElement("div",{className:_clsx2.default.call(void 0, B,L)},e.createElement(_chunkTBOBX6LGcjs.a,{id:"listHeader",helperText:o,heading:t,linkHref:T,linkText:N,as:u}),l===void 0||a===void 0?e.createElement(_chunkVPZS4ZLEcjs.a,{asChild:!0,className:"hearth-ListContainer"},e.createElement(i,{ref:r,...s,...d},n)):e.createElement(_chunkASOT2I4Dcjs.a,{className:"hearth-ListContainer",paddingNone:!0,variant:l,colorScheme:a},e.createElement(i,{ref:r,...s,...d},n)))});I.displayName=y;exports.a = I;
|
|
2
|
-
//# sourceMappingURL=chunk-QFVIQ5MD.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-QFVIQ5MD.cjs","../src/components/List/List.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","List","props","ref","Tag","className","colorScheme","heading","HeadingEl","helperText","linkText","linkHref","children","variant","providedId","ariaLabelledby","ariaDescribedby","listProps","extractProps","marginPropDefs","id","labelId","helperTextId","useIds","listAriaProps","clsx","SectionHeader","Box","Card"],"mappings":"AAAA,ulBAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECAvQ,wEACN,IAWXA,CAAAA,CAAgB,MAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAa,CAAA,CAAA,UAAA,CAAmC,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC3E,GAAM,CACJ,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,KAAA,CAAA,CACd,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAY,KAAA,CAC5B,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,iBAAA,CAAmBC,CAAAA,CACnB,kBAAA,CAAoBC,CAAAA,CACpB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAahB,CAAOiB,mBAAc,CAAA,CAChC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CACpC,UAAA,CAAAT,CAAAA,CACA,MAAA,CAAQ,MACV,CAAC,CAAA,CACKU,CAAAA,CAAgB,CACpB,EAAA,CAAAJ,CAAAA,CACA,IAAA,CAAM,MAAA,CACL,iBAAA,kBAAoBL,CAAAA,SAAAA,CAA2BR,CAAAA,CAAWc,CAAAA,CAAU,KAAA,CAAA,GAAA,CACpE,kBAAA,kBAAqBL,CAAAA,SAAAA,CAA4BP,CAAAA,CAAca,CAAAA,CAAe,KAAA,CAAA,GACjF,CAAA,CAEA,OACE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWG,4BAAAA,CAAK1B,CAAoBM,CAAS,CAAA,CAAA,CAChD,CAAA,CAAA,aAAA,CAACqB,mBAAAA,CAAA,CACC,EAAA,CAAG,YAAA,CACH,UAAA,CAAYjB,CAAAA,CACZ,OAAA,CAASF,CAAAA,CACT,QAAA,CAAUI,CAAAA,CACV,QAAA,CAAUD,CAAAA,CACV,EAAA,CAAIF,CAAAA,CACN,CAAA,CACCK,CAAAA,GAAY,KAAA,CAAA,EAAaP,CAAAA,GAAgB,KAAA,CAAA,CACxC,CAAA,CAAA,aAAA,CAACqB,mBAAAA,CAAA,CAAI,OAAA,CAAO,CAAA,CAAA,CAAC,SAAA,CAAU,sBAAA,CAAA,CACrB,CAAA,CAAA,aAAA,CAACvB,CAAAA,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAM,GAAGc,CAAAA,CAAY,GAAGO,CAAAA,CAAAA,CAC/BZ,CACH,CACF,CAAA,CAEA,CAAA,CAAA,aAAA,CAACgB,mBAAAA,CAAA,CACC,SAAA,CAAU,sBAAA,CACV,WAAA,CAAW,CAAA,CAAA,CACX,OAAA,CAASf,CAAAA,CACT,WAAA,CAAaP,CAAAA,CAAAA,CAEb,CAAA,CAAA,aAAA,CAACF,CAAAA,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAM,GAAGc,CAAAA,CAAY,GAAGO,CAAAA,CAAAA,CAC/BZ,CACH,CACF,CAEJ,CAEJ,CAAC,CAAA,CAEDX,CAAAA,CAAK,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-QFVIQ5MD.cjs","sourcesContent":[null,"import * as React from 'react';\nimport clsx from 'clsx';\nimport { type ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst componentName = 'List';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype ListElement = ElementRef<'ol'>;\n\nexport const List = React.forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n heading,\n headingElement: HeadingEl = 'div',\n helperText,\n linkText,\n linkHref,\n children,\n variant,\n id: providedId,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId } = useIds({\n providedId,\n prefix: 'list',\n });\n const listAriaProps = {\n id,\n role: 'list',\n ['aria-labelledby']: ariaLabelledby ?? (Boolean(heading) ? labelId : undefined),\n ['aria-describedby']: ariaDescribedby ?? (Boolean(helperText) ? helperTextId : undefined),\n };\n\n return (\n <div className={clsx(componentClassName, className)}>\n <SectionHeader\n id=\"listHeader\"\n helperText={helperText}\n heading={heading}\n linkHref={linkHref}\n linkText={linkText}\n as={HeadingEl}\n />\n {variant === undefined || colorScheme === undefined ? (\n <Box asChild className=\"hearth-ListContainer\">\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className=\"hearth-ListContainer\"\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = componentName;\n"]}
|
package/dist/chunk-RL2GY4IW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./chunk-LX55FQR5.js";import{a as x}from"./chunk-B3LRMWN3.js";import{a as f}from"./chunk-4H4MW2WO.js";import{a as c}from"./chunk-XQ5A24NX.js";import{a as h}from"./chunk-QC4ZMGCU.js";import{a as p}from"./chunk-RTGGS5XX.js";import{b as m}from"./chunk-4PEMW3UE.js";import*as e from"react";import k from"clsx";var y="List",B=m(y),I=e.forwardRef((g,r)=>{let{as:i="ul",className:L,colorScheme:a=void 0,heading:t,headingElement:u="div",helperText:o,linkText:N,linkHref:T,children:n,variant:l,id:P,"aria-labelledby":v,"aria-describedby":C,...s}=p(g,c),{id:E,labelId:H,helperTextId:R}=h({providedId:P,prefix:"list"}),d={id:E,role:"list","aria-labelledby":v??(t?H:void 0),"aria-describedby":C??(o?R:void 0)};return e.createElement("div",{className:k(B,L)},e.createElement(b,{id:"listHeader",helperText:o,heading:t,linkHref:T,linkText:N,as:u}),l===void 0||a===void 0?e.createElement(f,{asChild:!0,className:"hearth-ListContainer"},e.createElement(i,{ref:r,...s,...d},n)):e.createElement(x,{className:"hearth-ListContainer",paddingNone:!0,variant:l,colorScheme:a},e.createElement(i,{ref:r,...s,...d},n)))});I.displayName=y;export{I as a};
|
|
2
|
-
//# sourceMappingURL=chunk-RL2GY4IW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/List/List.tsx"],"sourcesContent":["import * as React from 'react';\nimport clsx from 'clsx';\nimport { type ListProps } from './List.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { Card } from '../Card/Card';\nimport { Box } from '../Box/Box';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst componentName = 'List';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype ListElement = ElementRef<'ol'>;\n\nexport const List = React.forwardRef<ListElement, ListProps>((props, ref) => {\n const {\n as: Tag = 'ul',\n className,\n colorScheme = undefined,\n heading,\n headingElement: HeadingEl = 'div',\n helperText,\n linkText,\n linkHref,\n children,\n variant,\n id: providedId,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...listProps\n } = extractProps(props, marginPropDefs);\n const { id, labelId, helperTextId } = useIds({\n providedId,\n prefix: 'list',\n });\n const listAriaProps = {\n id,\n role: 'list',\n ['aria-labelledby']: ariaLabelledby ?? (Boolean(heading) ? labelId : undefined),\n ['aria-describedby']: ariaDescribedby ?? (Boolean(helperText) ? helperTextId : undefined),\n };\n\n return (\n <div className={clsx(componentClassName, className)}>\n <SectionHeader\n id=\"listHeader\"\n helperText={helperText}\n heading={heading}\n linkHref={linkHref}\n linkText={linkText}\n as={HeadingEl}\n />\n {variant === undefined || colorScheme === undefined ? (\n <Box asChild className=\"hearth-ListContainer\">\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Box>\n ) : (\n <Card\n className=\"hearth-ListContainer\"\n paddingNone\n variant={variant}\n colorScheme={colorScheme}\n >\n <Tag ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = componentName;\n"],"mappings":"wRAAA,UAAYA,MAAW,QACvB,OAAOC,MAAU,OAWjB,IAAMC,EAAgB,OAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAa,aAAmC,CAACC,EAAOC,IAAQ,CAC3E,GAAM,CACJ,GAAIC,EAAM,KACV,UAAAC,EACA,YAAAC,EAAc,OACd,QAAAC,EACA,eAAgBC,EAAY,MAC5B,WAAAC,EACA,SAAAC,EACA,SAAAC,EACA,SAAAC,EACA,QAAAC,EACA,GAAIC,EACJ,kBAAmBC,EACnB,mBAAoBC,EACpB,GAAGC,CACL,EAAIC,EAAahB,EAAOiB,CAAc,EAChC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,CAAa,EAAIC,EAAO,CAC3C,WAAAT,EACA,OAAQ,MACV,CAAC,EACKU,EAAgB,CACpB,GAAAJ,EACA,KAAM,OACL,kBAAoBL,IAA2BR,EAAWc,EAAU,QACpE,mBAAqBL,IAA4BP,EAAca,EAAe,OACjF,EAEA,OACE,gBAAC,OAAI,UAAWG,EAAK1B,EAAoBM,CAAS,GAChD,gBAACqB,EAAA,CACC,GAAG,aACH,WAAYjB,EACZ,QAASF,EACT,SAAUI,EACV,SAAUD,EACV,GAAIF,EACN,EACCK,IAAY,QAAaP,IAAgB,OACxC,gBAACqB,EAAA,CAAI,QAAO,GAAC,UAAU,wBACrB,gBAACvB,EAAA,CAAI,IAAKD,EAAM,GAAGc,EAAY,GAAGO,GAC/BZ,CACH,CACF,EAEA,gBAACgB,EAAA,CACC,UAAU,uBACV,YAAW,GACX,QAASf,EACT,YAAaP,GAEb,gBAACF,EAAA,CAAI,IAAKD,EAAM,GAAGc,EAAY,GAAGO,GAC/BZ,CACH,CACF,CAEJ,CAEJ,CAAC,EAEDX,EAAK,YAAcH","names":["React","clsx","componentName","componentClassName","withGlobalPrefix","List","props","ref","Tag","className","colorScheme","heading","HeadingEl","helperText","linkText","linkHref","children","variant","providedId","ariaLabelledby","ariaDescribedby","listProps","extractProps","marginPropDefs","id","labelId","helperTextId","useIds","listAriaProps","clsx","SectionHeader","Box","Card"]}
|
package/dist/chunk-TBOBX6LG.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk2HATIMMNcjs = require('./chunk-2HATIMMN.cjs');var _chunkVAVAHKMUcjs = require('./chunk-VAVAHKMU.cjs');var _chunkK5BEIZDAcjs = require('./chunk-K5BEIZDA.cjs');var _chunkLVPYDLKGcjs = require('./chunk-LVPYDLKG.cjs');var _chunkIC3LY76Gcjs = require('./chunk-IC3LY76G.cjs');var _chunk6XA5OQRTcjs = require('./chunk-6XA5OQRT.cjs');var _chunkUICIKADYcjs = require('./chunk-UICIKADY.cjs');var _chunk3Q4XWRALcjs = require('./chunk-3Q4XWRAL.cjs');var _chunkLAVQWQP2cjs = require('./chunk-LAVQWQP2.cjs');var _chunkTMWB3U4Xcjs = require('./chunk-TMWB3U4X.cjs');var _chunk5DRU6TDWcjs = require('./chunk-5DRU6TDW.cjs');var _chunk4H5JT5ORcjs = require('./chunk-4H5JT5OR.cjs');var _react = require('react'); var e = _interopRequireWildcard(_react);var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var P="SectionHeader",b=_chunk4H5JT5ORcjs.b.call(void 0, P),y= exports.a =e.forwardRef(({size:I,...T})=>{let{className:u,heading:v,as:E="div",helperText:r,linkText:o,linkHref:t,linkIconPosition:i="right",linkShowIcon:n=!0,linkTarget:N="_self",linkIcon:m=_hearthreacticons.ChevronRightSmallIcon,id:R}=_chunk5DRU6TDWcjs.a.call(void 0, {size:I,...T},_chunk2HATIMMNcjs.a,_chunk6XA5OQRTcjs.a,_chunkUICIKADYcjs.a,_chunk3Q4XWRALcjs.a,_chunkLAVQWQP2cjs.a),{labelId:w,helperTextId:D}=_chunkTMWB3U4Xcjs.a.call(void 0, {providedId:R,prefix:"sectionHeader"}),C=t&&o;return e.createElement("div",{className:_clsx2.default.call(void 0, b,u)},e.createElement(_chunkLVPYDLKGcjs.a,{direction:"column",flexGrow:"1",className:_clsx2.default.call(void 0, "hearth-SectionHeaderTextContent")},e.createElement(_chunkVAVAHKMUcjs.a,{asChild:!0,size:"md",id:w},e.createElement(E,null,v)),r?e.createElement(_chunkK5BEIZDAcjs.a,{id:D,disableUserSelect:!0},r):null),C?e.createElement(_chunkIC3LY76Gcjs.a,{href:t,target:N},n&&i==="left"&&e.createElement(m,null),o,n&&i==="right"&&e.createElement(m,null)):null)});y.displayName=P;exports.a = y;
|
|
2
|
-
//# sourceMappingURL=chunk-TBOBX6LG.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-TBOBX6LG.cjs","../src/components/SectionHeader/SectionHeader.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","SectionHeader","size","props","className","heading","SectionHeaderEl","helperText","linkText","linkHref","linkIconPosition","linkShowIcon","linkTarget","SectionHeaderLinkIcon","ChevronRightSmallIcon","providedId","extractProps","sectionHeaderPropDefs","textAlignPropDefs","textTransformPropDefs","textWrapPropDefs","marginPropDefs","labelId","helperTextId","useIds","showLink","clsx","Flex","Heading","HelperText","Link"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECApd,wEAEN,wEAEqB,IAehCA,CAAAA,CAAgB,eAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAsB,CAAA,CAAA,UAAA,CACjC,CAAC,CAAE,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAA,EAAM,CACtB,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CAAkB,KAAA,CACtB,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CAAmB,OAAA,CACnB,YAAA,CAAAC,CAAAA,CAAe,CAAA,CAAA,CACf,UAAA,CAAAC,CAAAA,CAAa,OAAA,CACb,QAAA,CAAUC,CAAAA,CAAwBC,uCAAAA,CAClC,EAAA,CAAIC,CACN,CAAA,CAAIC,iCAAAA,CACA,IAAA,CAAAd,CAAAA,CAAM,GAAGC,CAAM,CAAA,CACjBc,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBACF,CAAA,CACM,CAAE,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAa,CAAA,CAAIC,iCAAAA,CAChC,UAAA,CAAAT,CAAAA,CACA,MAAA,CAAQ,eACV,CAAC,CAAA,CACKU,CAAAA,CAAWhB,CAAAA,EAAYD,CAAAA,CAC7B,OACE,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWkB,4BAAAA,CAAK3B,CAAoBK,CAAS,CAAA,CAAA,CAChD,CAAA,CAAA,aAAA,CAACuB,mBAAAA,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,QAAA,CAAS,GAAA,CAAI,SAAA,CAAWD,4BAAAA,iCAAsC,CAAA,CAAA,CACrF,CAAA,CAAA,aAAA,CAACE,mBAAAA,CAAA,CAAQ,OAAA,CAAO,CAAA,CAAA,CAAC,IAAA,CAAK,IAAA,CAAK,EAAA,CAAIN,CAAAA,CAAAA,CAC7B,CAAA,CAAA,aAAA,CAAChB,CAAAA,CAAA,IAAA,CAAiBD,CAAQ,CAC5B,CAAA,CACCE,CAAAA,CACC,CAAA,CAAA,aAAA,CAACsB,mBAAAA,CAAA,CAAW,EAAA,CAAIN,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAAA,CAC5ChB,CACH,CAAA,CACE,IACN,CAAA,CACCkB,CAAAA,CACC,CAAA,CAAA,aAAA,CAACK,mBAAAA,CAAA,CAAK,IAAA,CAAMrB,CAAAA,CAAU,MAAA,CAAQG,CAAAA,CAAAA,CAC3BD,CAAAA,EAAgBD,CAAAA,GAAqB,MAAA,EAAU,CAAA,CAAA,aAAA,CAACG,CAAAA,CAAA,IAAsB,CAAA,CACtEL,CAAAA,CACAG,CAAAA,EAAgBD,CAAAA,GAAqB,OAAA,EAAW,CAAA,CAAA,aAAA,CAACG,CAAAA,CAAA,IAAsB,CAC1E,CAAA,CACE,IACN,CAEJ,CACF,CAAA,CAEAZ,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-TBOBX6LG.cjs","sourcesContent":[null,"import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { ChevronRightSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport type { ElementRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { useIds } from '../../hooks/use-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { textAlignPropDefs } from '../../props/text-align.props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\nimport { textWrapPropDefs } from '../../props/text-wrap.props';\nimport { Flex } from '../Flex/Flex';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Link } from '../Link/Link';\nimport { sectionHeaderPropDefs, SectionHeaderProps } from './SectionHeader.props';\n\nconst componentName = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype SectionHeaderElement = ElementRef<'div'>;\n\nexport const SectionHeader = React.forwardRef<SectionHeaderElement, SectionHeaderProps>(\n ({ size, ...props }) => {\n const {\n className,\n heading,\n as: SectionHeaderEl = 'div',\n helperText,\n linkText,\n linkHref,\n linkIconPosition = 'right',\n linkShowIcon = true,\n linkTarget = '_self',\n linkIcon: SectionHeaderLinkIcon = ChevronRightSmallIcon,\n id: providedId,\n } = extractProps(\n { size, ...props },\n sectionHeaderPropDefs,\n textAlignPropDefs,\n textTransformPropDefs,\n textWrapPropDefs,\n marginPropDefs\n );\n const { labelId, helperTextId } = useIds({\n providedId,\n prefix: 'sectionHeader',\n });\n const showLink = linkHref && linkText;\n return (\n <div className={clsx(componentClassName, className)}>\n <Flex direction=\"column\" flexGrow=\"1\" className={clsx('hearth-SectionHeaderTextContent')}>\n <Heading asChild size=\"md\" id={labelId}>\n <SectionHeaderEl>{heading}</SectionHeaderEl>\n </Heading>\n {helperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n </Flex>\n {showLink ? (\n <Link href={linkHref} target={linkTarget}>\n {linkShowIcon && linkIconPosition === 'left' && <SectionHeaderLinkIcon />}\n {linkText}\n {linkShowIcon && linkIconPosition === 'right' && <SectionHeaderLinkIcon />}\n </Link>\n ) : null}\n </div>\n );\n }\n);\n\nSectionHeader.displayName = componentName;\n"]}
|
package/dist/chunk-ZIV2RZZI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-C2M7FEJX.js";import{a as n}from"./chunk-JPYVWTDN.js";import{c as f}from"./chunk-5OLLJKEO.js";import{a as l}from"./chunk-432A6CLH.js";import{a as p}from"./chunk-QC4ZMGCU.js";import{b as s}from"./chunk-4PEMW3UE.js";import*as e from"react";import E from"clsx";import{RadioGroup as R}from"radix-ui";var b="Radio",F=s(b),H=e.forwardRef(({id:h,label:o,helperText:a,image:u,className:x,labelFontWeight:y,"aria-labelledby":r,...I},N)=>{let{id:i,labelId:t,helperTextId:d}=p({providedId:h,prefix:"radio"}),{hasGroupHelperText:G,"aria-describedby":v}=f(),m=!G&&a!==void 0,w=!!o;return e.createElement("div",{className:E(F,x)},e.createElement("div",{className:"hearth-RadioContainer"},e.createElement(R.Item,{ref:N,...I,id:i,"aria-describedby":m?d:v,"aria-labelledby":r||(o?t:void 0),className:"hearth-RadioItem"},e.createElement(R.Indicator,{className:"hearth-RadioIndicator"}))),w?e.createElement(l,{direction:"column",gap:"50"},e.createElement(c,{id:t,htmlFor:i,disableUserSelect:!0,fontWeight:y,className:"hearth-RadioLabel"},u,o),m?e.createElement(n,{id:d,disableUserSelect:!0},a):null):null)});H.displayName=b;export{H as a};
|
|
2
|
-
//# sourceMappingURL=chunk-ZIV2RZZI.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|