@utilitywarehouse/hearth-react 0.0.5 → 0.1.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-4L7UQYRQ.js +2 -0
- package/dist/chunk-4L7UQYRQ.js.map +1 -0
- package/dist/{chunk-7NOB67RU.js → chunk-6BKRNOB3.js} +2 -2
- package/dist/chunk-7S6UOJOL.cjs +2 -0
- package/dist/chunk-7S6UOJOL.cjs.map +1 -0
- package/dist/{chunk-O4RNVBHC.js → chunk-B32JIOPJ.js} +2 -2
- package/dist/chunk-B32JIOPJ.js.map +1 -0
- package/dist/chunk-B42GJ6TO.js +2 -0
- package/dist/chunk-B42GJ6TO.js.map +1 -0
- package/dist/chunk-BBH2BLZX.cjs +2 -0
- package/dist/chunk-BBH2BLZX.cjs.map +1 -0
- package/dist/chunk-BC7Y6MZO.js +2 -0
- package/dist/chunk-BC7Y6MZO.js.map +1 -0
- package/dist/chunk-CEGUCKZW.js +2 -0
- package/dist/chunk-CEGUCKZW.js.map +1 -0
- package/dist/chunk-FI7OM2M2.js +2 -0
- package/dist/chunk-FI7OM2M2.js.map +1 -0
- package/dist/chunk-G4BATINY.js +2 -0
- package/dist/chunk-G4BATINY.js.map +1 -0
- package/dist/chunk-GHB36POH.js +2 -0
- package/dist/chunk-GHB36POH.js.map +1 -0
- package/dist/{chunk-TP3BNJIU.js → chunk-IWO3P2JG.js} +1 -1
- package/dist/chunk-IWO3P2JG.js.map +1 -0
- package/dist/chunk-JEB5LCIV.cjs +2 -0
- package/dist/chunk-JEB5LCIV.cjs.map +1 -0
- package/dist/{chunk-FOR3ZZI6.js → chunk-JZVVALJB.js} +2 -2
- package/dist/{chunk-W4OJ53QH.js → chunk-KSIM57FG.js} +2 -2
- package/dist/chunk-LNST5XBT.js +2 -0
- package/dist/chunk-LNST5XBT.js.map +1 -0
- package/dist/chunk-MLABIXLN.cjs +2 -0
- package/dist/chunk-MLABIXLN.cjs.map +1 -0
- package/dist/{chunk-2OK3ZMXV.cjs → chunk-N2FOD332.cjs} +2 -2
- package/dist/chunk-N2FOD332.cjs.map +1 -0
- package/dist/chunk-NYIZVR6U.cjs +2 -0
- package/dist/chunk-NYIZVR6U.cjs.map +1 -0
- package/dist/chunk-O63GLLKH.cjs +2 -0
- package/dist/chunk-O63GLLKH.cjs.map +1 -0
- package/dist/{chunk-RNI77PJE.cjs → chunk-PFCKEVNT.cjs} +2 -2
- package/dist/chunk-PFCKEVNT.cjs.map +1 -0
- package/dist/{chunk-7G5UUVXA.cjs → chunk-PGIWMIRY.cjs} +2 -2
- package/dist/{chunk-7G5UUVXA.cjs.map → chunk-PGIWMIRY.cjs.map} +1 -1
- package/dist/chunk-PRACO7UD.cjs +2 -0
- package/dist/chunk-PRACO7UD.cjs.map +1 -0
- package/dist/{chunk-DYVGYBVR.cjs → chunk-Q4E2FYKM.cjs} +2 -2
- package/dist/chunk-Q4E2FYKM.cjs.map +1 -0
- package/dist/chunk-QE7SFMVD.cjs +2 -0
- package/dist/chunk-QE7SFMVD.cjs.map +1 -0
- package/dist/{chunk-JPX554TI.cjs → chunk-RA7PIIC6.cjs} +2 -2
- package/dist/{chunk-JPX554TI.cjs.map → chunk-RA7PIIC6.cjs.map} +1 -1
- package/dist/chunk-RSZBNTZ7.js +2 -0
- package/dist/chunk-RSZBNTZ7.js.map +1 -0
- package/dist/{chunk-P3VWIBOQ.cjs → chunk-SSLWJ5GT.cjs} +2 -2
- package/dist/{chunk-P3VWIBOQ.cjs.map → chunk-SSLWJ5GT.cjs.map} +1 -1
- package/dist/chunk-TKW3USYF.js +2 -0
- package/dist/chunk-TKW3USYF.js.map +1 -0
- package/dist/{chunk-BLQSWP7Z.cjs → chunk-V63VK7GL.cjs} +2 -2
- package/dist/chunk-V63VK7GL.cjs.map +1 -0
- package/dist/chunk-Z27JG5SL.js +2 -0
- package/dist/chunk-Z27JG5SL.js.map +1 -0
- package/dist/{chunk-5FEV22T3.cjs → chunk-ZFRIAQAB.cjs} +1 -1
- package/dist/chunk-ZFRIAQAB.cjs.map +1 -0
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +1 -1
- package/dist/components/ButtonBase/ButtonBase.js +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.d.cts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.props.d.cts +2 -2
- package/dist/components/Checkbox/Checkbox.props.d.ts +2 -2
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.cts +0 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.props.d.cts +2 -3
- package/dist/components/CheckboxGroup/CheckboxGroup.props.d.ts +2 -3
- package/dist/components/CheckboxTile/CheckboxTile.cjs +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.d.cts +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.d.ts +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.js +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.props.d.cts +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.props.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.cjs +1 -1
- package/dist/components/Fieldset/Fieldset.cjs.map +1 -1
- package/dist/components/Fieldset/Fieldset.context.cjs +2 -0
- package/dist/components/Fieldset/Fieldset.context.cjs.map +1 -0
- package/dist/components/Fieldset/Fieldset.context.d.cts +11 -0
- package/dist/components/Fieldset/Fieldset.context.d.ts +11 -0
- package/dist/components/Fieldset/Fieldset.context.js +2 -0
- package/dist/components/Fieldset/Fieldset.d.cts +7 -3
- package/dist/components/Fieldset/Fieldset.d.ts +7 -3
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.props.d.cts +23 -2
- package/dist/components/Fieldset/Fieldset.props.d.ts +23 -2
- package/dist/components/FieldsetLegend/FieldsetLegend.cjs +1 -1
- package/dist/components/FieldsetLegend/FieldsetLegend.cjs.map +1 -1
- package/dist/components/FieldsetLegend/FieldsetLegend.js +1 -1
- package/dist/components/FieldsetLegend/FieldsetLegend.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Legend/Legend.cjs +2 -0
- package/dist/components/Legend/Legend.cjs.map +1 -0
- package/dist/components/Legend/Legend.d.cts +8 -0
- package/dist/components/Legend/Legend.d.ts +8 -0
- package/dist/components/Legend/Legend.js +2 -0
- package/dist/components/Legend/Legend.props.cjs +1 -0
- package/dist/components/Legend/Legend.props.cjs.map +1 -0
- package/dist/components/Legend/Legend.props.d.cts +8 -0
- package/dist/components/Legend/Legend.props.d.ts +8 -0
- package/dist/components/Legend/Legend.props.js +1 -0
- package/dist/components/Radio/Radio.cjs +1 -1
- package/dist/components/Radio/Radio.d.cts +1 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/Radio.props.d.cts +2 -2
- package/dist/components/Radio/Radio.props.d.ts +2 -2
- package/dist/components/RadioCard/RadioCard.cjs +1 -1
- package/dist/components/RadioCard/RadioCard.d.cts +1 -1
- package/dist/components/RadioCard/RadioCard.d.ts +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCard/RadioCard.props.d.cts +1 -1
- package/dist/components/RadioCard/RadioCard.props.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.cts +3 -4
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -4
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.props.d.cts +6 -7
- package/dist/components/RadioGroup/RadioGroup.props.d.ts +6 -7
- package/dist/components/RadioTile/RadioTile.cjs +1 -1
- package/dist/components/RadioTile/RadioTile.d.cts +1 -1
- package/dist/components/RadioTile/RadioTile.d.ts +1 -1
- package/dist/components/RadioTile/RadioTile.js +1 -1
- package/dist/components/RadioTile/RadioTile.props.d.cts +1 -1
- package/dist/components/RadioTile/RadioTile.props.d.ts +1 -1
- package/dist/components/Strong/Strong.cjs +1 -1
- package/dist/components/Strong/Strong.js +1 -1
- package/dist/components/Switch/Switch.cjs +1 -1
- package/dist/components/Switch/Switch.d.cts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.props.cjs +1 -1
- package/dist/components/Switch/Switch.props.d.cts +2 -2
- package/dist/components/Switch/Switch.props.d.ts +2 -2
- package/dist/components/Switch/Switch.props.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles.css +17 -5
- package/dist/chunk-2OK3ZMXV.cjs.map +0 -1
- package/dist/chunk-4BANAAXX.cjs +0 -2
- package/dist/chunk-4BANAAXX.cjs.map +0 -1
- package/dist/chunk-4NT4UBG3.js +0 -2
- package/dist/chunk-4NT4UBG3.js.map +0 -1
- package/dist/chunk-5FEV22T3.cjs.map +0 -1
- package/dist/chunk-7HABZBWT.cjs +0 -2
- package/dist/chunk-7HABZBWT.cjs.map +0 -1
- package/dist/chunk-7MLDCVRK.js +0 -2
- package/dist/chunk-7MLDCVRK.js.map +0 -1
- package/dist/chunk-ABNY6UEV.js +0 -2
- package/dist/chunk-ABNY6UEV.js.map +0 -1
- package/dist/chunk-AZX26NX4.cjs +0 -2
- package/dist/chunk-AZX26NX4.cjs.map +0 -1
- package/dist/chunk-BLQSWP7Z.cjs.map +0 -1
- package/dist/chunk-CAZMCWS2.js +0 -2
- package/dist/chunk-CAZMCWS2.js.map +0 -1
- package/dist/chunk-DYVGYBVR.cjs.map +0 -1
- package/dist/chunk-EN2II3U7.cjs +0 -2
- package/dist/chunk-EN2II3U7.cjs.map +0 -1
- package/dist/chunk-H4UKIYE7.cjs +0 -2
- package/dist/chunk-H4UKIYE7.cjs.map +0 -1
- package/dist/chunk-HMTIVDG5.js +0 -2
- package/dist/chunk-HMTIVDG5.js.map +0 -1
- package/dist/chunk-JKJ546OB.js +0 -2
- package/dist/chunk-JKJ546OB.js.map +0 -1
- package/dist/chunk-JL7WDTVI.cjs +0 -2
- package/dist/chunk-JL7WDTVI.cjs.map +0 -1
- package/dist/chunk-KPBAXG5T.js +0 -2
- package/dist/chunk-KPBAXG5T.js.map +0 -1
- package/dist/chunk-LUCUIQH2.cjs +0 -2
- package/dist/chunk-LUCUIQH2.cjs.map +0 -1
- package/dist/chunk-O4RNVBHC.js.map +0 -1
- package/dist/chunk-R4PRXOXC.cjs +0 -2
- package/dist/chunk-R4PRXOXC.cjs.map +0 -1
- package/dist/chunk-RFBIC75M.js +0 -2
- package/dist/chunk-RFBIC75M.js.map +0 -1
- package/dist/chunk-RNI77PJE.cjs.map +0 -1
- package/dist/chunk-TP3BNJIU.js.map +0 -1
- package/dist/chunk-TPDJP4AA.js +0 -2
- package/dist/chunk-TPDJP4AA.js.map +0 -1
- package/dist/chunk-TT4OSBGU.js +0 -2
- package/dist/chunk-TT4OSBGU.js.map +0 -1
- package/dist/chunk-XQRMCUFK.cjs +0 -2
- package/dist/chunk-XQRMCUFK.cjs.map +0 -1
- package/dist/chunk-YRE2X2PS.js +0 -2
- package/dist/chunk-YRE2X2PS.js.map +0 -1
- package/dist/chunk-Z5TWTOFS.js +0 -2
- package/dist/chunk-Z5TWTOFS.js.map +0 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.cjs +0 -2
- package/dist/components/FormFieldGroup/FormFieldGroup.cjs.map +0 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.context.cjs +0 -2
- package/dist/components/FormFieldGroup/FormFieldGroup.context.cjs.map +0 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.context.d.cts +0 -11
- package/dist/components/FormFieldGroup/FormFieldGroup.context.d.ts +0 -11
- package/dist/components/FormFieldGroup/FormFieldGroup.context.js +0 -2
- package/dist/components/FormFieldGroup/FormFieldGroup.d.cts +0 -13
- package/dist/components/FormFieldGroup/FormFieldGroup.d.ts +0 -13
- package/dist/components/FormFieldGroup/FormFieldGroup.js +0 -2
- package/dist/components/FormFieldGroup/FormFieldGroup.props.cjs +0 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.props.cjs.map +0 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.props.d.cts +0 -30
- package/dist/components/FormFieldGroup/FormFieldGroup.props.d.ts +0 -30
- package/dist/components/FormFieldGroup/FormFieldGroup.props.js +0 -1
- /package/dist/{chunk-7NOB67RU.js.map → chunk-6BKRNOB3.js.map} +0 -0
- /package/dist/{chunk-FOR3ZZI6.js.map → chunk-JZVVALJB.js.map} +0 -0
- /package/dist/{chunk-W4OJ53QH.js.map → chunk-KSIM57FG.js.map} +0 -0
- /package/dist/components/{FormFieldGroup/FormFieldGroup.context.js.map → Fieldset/Fieldset.context.js.map} +0 -0
- /package/dist/components/{FormFieldGroup/FormFieldGroup.js.map → Legend/Legend.js.map} +0 -0
- /package/dist/components/{FormFieldGroup/FormFieldGroup.props.js.map → Legend/Legend.props.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/FormFieldGroup/FormFieldGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ElementRef } from 'react';\n\nimport { FormFieldGroupProvider } from './FormFieldGroup.context';\nimport type { FormFieldGroupProps } from './FormFieldGroup.props';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { Fieldset } from '../Fieldset/Fieldset';\nimport { Flex } from '../Flex/Flex';\nimport { FieldsetLegend } from '../FieldsetLegend/FieldsetLegend';\nimport { HelperText } from '../HelperText/HelperText';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport clsx from 'clsx';\n\nconst componentName = 'FormFieldGroup';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype FormFieldGroupElement = ElementRef<'fieldset'>;\n\nexport const FormFieldGroup = React.forwardRef<FormFieldGroupElement, FormFieldGroupProps>(\n (\n {\n className,\n id: providedId,\n children,\n label,\n helperText,\n validationText,\n validationStatus,\n disabled,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-errormessage': ariaErrorMessage,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'formfieldgroup',\n });\n const showValidationText = Boolean(validationStatus && validationText);\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby || !!helperText ? helperTextId : undefined,\n ariaErrorMessage || showValidationText ? validationTextId : undefined\n );\n const value = {\n hasGroupHelperText: Boolean(helperText !== undefined),\n hasGroupValidationText: Boolean(\n validationStatus !== undefined && validationText !== undefined\n ),\n 'aria-describedby': ariaDescribedbyValue,\n };\n\n return (\n <Fieldset\n ref={ref}\n className={clsx(componentClassName, className)}\n {...props}\n disabled={disabled}\n id={id}\n data-disabled={disabled ? '' : undefined}\n aria-errormessage={ariaErrorMessage || showValidationText ? validationTextId : undefined}\n aria-labelledby={ariaLabelledby ?? (Boolean(label) ? labelId : undefined)}\n aria-invalid={showValidationText}\n aria-describedby={ariaDescribedbyValue}\n >\n {label ? <FieldsetLegend id={labelId}>{label}</FieldsetLegend> : null}\n {helperText || validationText ? (\n <Flex direction=\"column\" alignItems=\"start\">\n {helperText ? (\n <HelperText id={helperTextId} disabled={disabled}>\n {helperText}\n </HelperText>\n ) : null}\n {showValidationText ? (\n <ValidationText id={validationTextId} status={validationStatus}>\n {validationText}\n </ValidationText>\n ) : null}\n </Flex>\n ) : null}\n\n <FormFieldGroupProvider value={value}>\n <div className=\"hearth-FormFieldGroupContent\">{children}</div>\n </FormFieldGroupProvider>\n </Fieldset>\n );\n }\n);\n\nFormFieldGroup.displayName = componentName;\n"],"mappings":"wWAAA,UAAYA,MAAW,QAavB,OAAOC,MAAU,OAEjB,IAAMC,EAAgB,iBAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAuB,aAClC,CACE,CACE,UAAAC,EACA,GAAIC,EACJ,SAAAC,EACA,MAAAC,EACA,WAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,SAAAC,EACA,kBAAmBC,EACnB,mBAAoBC,EACpB,oBAAqBC,EACrB,GAAGC,CACL,EACAC,IACG,CACH,GAAM,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,EAAc,iBAAAC,CAAiB,EAAIC,EAAO,CAC7D,WAAAhB,EACA,OAAQ,gBACV,CAAC,EACKiB,EAAqB,GAAQZ,GAAoBD,GACjDc,EAAuBC,EAC3BX,GAAqBL,EAAaW,EAAe,OACjDL,GAAoBQ,EAAqBF,EAAmB,MAC9D,EACMK,EAAQ,CACZ,mBAA4BjB,IAAe,OAC3C,uBACEE,IAAqB,QAAaD,IAAmB,OAEvD,mBAAoBc,CACtB,EAEA,OACE,gBAACG,EAAA,CACC,IAAKV,EACL,UAAWjB,EAAKE,EAAoBG,CAAS,EAC5C,GAAGW,EACJ,SAAUJ,EACV,GAAIM,EACJ,gBAAeN,EAAW,GAAK,OAC/B,oBAAmBG,GAAoBQ,EAAqBF,EAAmB,OAC/E,kBAAiBR,IAA2BL,EAASW,EAAU,QAC/D,eAAcI,EACd,mBAAkBC,GAEjBhB,EAAQ,gBAACoB,EAAA,CAAe,GAAIT,GAAUX,CAAM,EAAoB,KAChEC,GAAcC,EACb,gBAACmB,EAAA,CAAK,UAAU,SAAS,WAAW,SACjCpB,EACC,gBAACqB,EAAA,CAAW,GAAIV,EAAc,SAAUR,GACrCH,CACH,EACE,KACHc,EACC,gBAACQ,EAAA,CAAe,GAAIV,EAAkB,OAAQV,GAC3CD,CACH,EACE,IACN,EACE,KAEJ,gBAACsB,EAAA,CAAuB,MAAON,GAC7B,gBAAC,OAAI,UAAU,gCAAgCnB,CAAS,CAC1D,CACF,CAEJ,CACF,EAEAH,EAAe,YAAcH","names":["React","clsx","componentName","componentClassName","withGlobalPrefix","FormFieldGroup","className","providedId","children","label","helperText","validationText","validationStatus","disabled","ariaLabelledby","ariaDescribedby","ariaErrorMessage","props","ref","id","labelId","helperTextId","validationTextId","useIds","showValidationText","ariaDescribedbyValue","mergeIds","value","Fieldset","FieldsetLegend","Flex","HelperText","ValidationText","FormFieldGroupProvider"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/FormFieldGroup/FormFieldGroup.context.ts"],"names":["FormFieldGroupContext","createContext","FormFieldGroupProvider","useFormFieldGroup","useContext"],"mappings":"AAAA,uGAA0C,IAO7BA,CAAAA,CAAwBC,kCAAAA,CACnC,kBAAA,CAAoB,CAAA,CACtB,CAA+B,CAAA,CAElBC,CAAAA,aAAyBF,CAAAA,CAAsB,QAAA,CAE/CG,CAAAA,aAAoB,CAAA,CAAA,EAAMC,+BAAAA,CAAgC,CAAA,CAAA,4CAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-RNI77PJE.cjs","sourcesContent":["import { createContext, useContext } from 'react';\n\nexport type FormFieldGroupContextValue = {\n hasGroupHelperText: boolean;\n 'aria-describedby'?: string;\n};\n\nexport const FormFieldGroupContext = createContext<FormFieldGroupContextValue>({\n hasGroupHelperText: false,\n} as FormFieldGroupContextValue);\n\nexport const FormFieldGroupProvider = FormFieldGroupContext.Provider;\n\nexport const useFormFieldGroup = () => useContext(FormFieldGroupContext);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Switch/Switch.props.ts"],"sourcesContent":["import type { SwitchProps as RadixSwitchProps } from '@radix-ui/react-switch';\nimport { PropDef } from '../../props/prop-def';\nimport { Responsive } from '../../types/responsive';\nimport { MarginProps } from '../../props/margin.props';\n\nconst sizes = ['sm', 'md'] as const;\n\nexport const switchPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: true, default: 'md' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\nexport interface SwitchProps extends RadixSwitchProps, MarginProps {\n size?: Responsive<(typeof sizes)[number]>;\n /**\n * The label for the Switch, describing its purpose.\n */\n label?: string;\n}\n"],"mappings":"AAKA,IAAMA,EAAQ,CAAC,KAAM,IAAI,EAEZC,EAAiB,CAC5B,KAAM,CAAE,UAAW,OAAQ,OAAQD,EAAO,WAAY,GAAM,QAAS,IAAK,CAC5E","names":["sizes","switchPropDefs"]}
|
package/dist/chunk-TPDJP4AA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-XQ5A24NX.js";import{a as o}from"./chunk-RTGGS5XX.js";import{b as t}from"./chunk-4PEMW3UE.js";import*as e from"react";import a from"clsx";var s="Fieldset",n=t(s),c=e.forwardRef((m,i)=>{let{children:l,className:p,...f}=o(m,r);return e.createElement("fieldset",{className:a(n,p),ref:i,...f},l)});c.displayName=s;export{c as a};
|
|
2
|
-
//# sourceMappingURL=chunk-TPDJP4AA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Fieldset/Fieldset.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport type { FieldsetProps } from './Fieldset.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst componentName = 'Fieldset';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype FieldsetElement = ElementRef<'fieldset'>;\n\nexport const Fieldset = React.forwardRef<FieldsetElement, FieldsetProps>((props, ref) => {\n const { children, className, ...fieldsetProps } = extractProps(props, marginPropDefs);\n return (\n <fieldset className={clsx(componentClassName, className)} ref={ref} {...fieldsetProps}>\n {children}\n </fieldset>\n );\n});\n\nFieldset.displayName = componentName;\n"],"mappings":"wHAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAU,OAQjB,IAAMC,EAAgB,WAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAiB,aAA2C,CAACC,EAAOC,IAAQ,CACvF,GAAM,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAc,EAAIC,EAAaL,EAAOM,CAAc,EACpF,OACE,gBAAC,YAAS,UAAWC,EAAKV,EAAoBM,CAAS,EAAG,IAAKF,EAAM,GAAGG,GACrEF,CACH,CAEJ,CAAC,EAEDH,EAAS,YAAcH","names":["React","clsx","componentName","componentClassName","withGlobalPrefix","Fieldset","props","ref","children","className","fieldsetProps","extractProps","marginPropDefs","clsx"]}
|
package/dist/chunk-TT4OSBGU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-RFBIC75M.js";import{a as d}from"./chunk-35HZSCJP.js";import{b as m}from"./chunk-4PEMW3UE.js";import*as o from"react";import l from"clsx";import{RadioGroup as z}from"radix-ui";var u="RadioGroupRoot",b=m(u),c=o.forwardRef(({children:r,direction:t="column",width:e,className:a,...p},i)=>o.createElement(z.Root,{ref:i,asChild:!0,...p,orientation:t==="column"?"vertical":"horizontal",className:l(b,a)},o.createElement(d,{width:e},r)));c.displayName=u;var G="RadioGroup",g=m(G),j=o.forwardRef(({children:r,contentWidth:t,direction:e="column",className:a,label:p,helperText:i,validationText:f,validationStatus:x,required:R,disabled:n,loop:N,defaultValue:E,value:F,onValueChange:P,name:h,...w},y)=>{let C={...w,disabled:n,required:R,label:p,helperText:i,validationText:f,validationStatus:x},v={width:t,direction:e,name:h,required:R,disabled:n,loop:N,defaultValue:E,value:F,onValueChange:P};return o.createElement(s,{ref:y,className:l(g,a),...C},o.createElement(c,{...v},r))});j.displayName=G;export{c as a,j as b};
|
|
2
|
-
//# sourceMappingURL=chunk-TT4OSBGU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { RadioGroup as RadixRadioGroup } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { RadioGroupProps, RadioGroupRootProps } from './RadioGroup.props';\nimport { Flex } from '../Flex/Flex';\nimport { FormFieldGroup } from '../FormFieldGroup/FormFieldGroup';\n\nconst rootComponentName = 'RadioGroupRoot';\nconst rootComponentClassName = withGlobalPrefix(rootComponentName);\n\ntype RadioGroupRootElement = ElementRef<'div'>;\n\nexport const RadioGroupRoot = React.forwardRef<RadioGroupRootElement, RadioGroupRootProps>(\n ({ children, direction = 'column', width, className, ...props }, ref) => {\n return (\n <RadixRadioGroup.Root\n ref={ref}\n asChild\n {...props}\n orientation={direction === 'column' ? 'vertical' : 'horizontal'}\n className={clsx(rootComponentClassName, className)}\n >\n <Flex width={width}>{children}</Flex>\n </RadixRadioGroup.Root>\n );\n }\n);\n\nRadioGroupRoot.displayName = rootComponentName;\n\nconst componentName = 'RadioGroup';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype RadioGroupElement = ElementRef<'fieldset'>;\n\nexport const RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(\n (\n {\n children,\n contentWidth,\n direction = 'column',\n className,\n label,\n helperText,\n validationText,\n validationStatus,\n required,\n disabled,\n loop,\n defaultValue,\n value,\n onValueChange,\n name,\n ...props\n },\n ref\n ) => {\n const formFieldGroupProps = {\n ...props,\n disabled,\n required,\n label,\n helperText,\n validationText,\n validationStatus,\n };\n const radioGroupRootProps = {\n width: contentWidth,\n direction,\n name,\n required,\n disabled,\n loop,\n defaultValue,\n value,\n onValueChange,\n };\n\n return (\n <FormFieldGroup\n ref={ref}\n className={clsx(componentClassName, className)}\n {...formFieldGroupProps}\n >\n <RadioGroupRoot {...radioGroupRootProps}>{children}</RadioGroupRoot>\n </FormFieldGroup>\n );\n }\n);\n\nRadioGroup.displayName = componentName;\n"],"mappings":"wHAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAU,OAEjB,OAAS,cAAcC,MAAuB,WAO9C,IAAMC,EAAoB,iBACpBC,EAAyBC,EAAiBF,CAAiB,EAIpDG,EAAuB,aAClC,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAY,SAAU,MAAAC,EAAO,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAE7D,gBAACC,EAAgB,KAAhB,CACC,IAAKD,EACL,QAAO,GACN,GAAGD,EACJ,YAAaH,IAAc,SAAW,WAAa,aACnD,UAAWM,EAAKV,EAAwBM,CAAS,GAEjD,gBAACK,EAAA,CAAK,MAAON,GAAQF,CAAS,CAChC,CAGN,EAEAD,EAAe,YAAcH,EAE7B,IAAMa,EAAgB,aAChBC,EAAqBZ,EAAiBW,CAAa,EAI5CE,EAAmB,aAC9B,CACE,CACE,SAAAX,EACA,aAAAY,EACA,UAAAX,EAAY,SACZ,UAAAE,EACA,MAAAU,EACA,WAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,SAAAC,EACA,SAAAC,EACA,KAAAC,EACA,aAAAC,EACA,MAAAC,EACA,cAAAC,EACA,KAAAC,EACA,GAAGnB,CACL,EACAC,IACG,CACH,IAAMmB,EAAsB,CAC1B,GAAGpB,EACH,SAAAc,EACA,SAAAD,EACA,MAAAJ,EACA,WAAAC,EACA,eAAAC,EACA,iBAAAC,CACF,EACMS,EAAsB,CAC1B,MAAOb,EACP,UAAAX,EACA,KAAAsB,EACA,SAAAN,EACA,SAAAC,EACA,KAAAC,EACA,aAAAC,EACA,MAAAC,EACA,cAAAC,CACF,EAEA,OACE,gBAACI,EAAA,CACC,IAAKrB,EACL,UAAWE,EAAKG,EAAoBP,CAAS,EAC5C,GAAGqB,GAEJ,gBAACzB,EAAA,CAAgB,GAAG0B,GAAsBzB,CAAS,CACrD,CAEJ,CACF,EAEAW,EAAW,YAAcF","names":["React","clsx","RadixRadioGroup","rootComponentName","rootComponentClassName","withGlobalPrefix","RadioGroupRoot","children","direction","width","className","props","ref","RadixRadioGroup","clsx","Flex","componentName","componentClassName","RadioGroup","contentWidth","label","helperText","validationText","validationStatus","required","disabled","loop","defaultValue","value","onValueChange","name","formFieldGroupProps","radioGroupRootProps","FormFieldGroup"]}
|
package/dist/chunk-XQRMCUFK.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 _chunk5AWM4ERTcjs = require('./chunk-5AWM4ERT.cjs');var _chunkLAVQWQP2cjs = require('./chunk-LAVQWQP2.cjs');var _chunk5DRU6TDWcjs = require('./chunk-5DRU6TDW.cjs');var _chunk4H5JT5ORcjs = require('./chunk-4H5JT5OR.cjs');var _react = require('react'); var e = _interopRequireWildcard(_react);var _reactslot = require('@radix-ui/react-slot');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var b="ButtonBase",B=_chunk4H5JT5ORcjs.b.call(void 0, b),x= exports.a =e.forwardRef((a,n)=>{let{colorScheme:C,inverted:N,className:s,disabled:t,onClick:r,asChild:P,children:i,...m}=_chunk5DRU6TDWcjs.a.call(void 0, a,_chunk5AWM4ERTcjs.a,_chunkLAVQWQP2cjs.a),{variant:o="solid"}=a,d={"data-colorscheme":C||(o==="emphasis"||o==="solid"?"yellow":"grey"),"data-inverted":N?"":void 0},l=P?_reactslot.Slot:"button";return o==="emphasis"?e.createElement(l,{ref:n,"aria-disabled":t||void 0,className:_clsx2.default.call(void 0, B,s),onClick:t?void 0:r,...d,...m},e.createElement("span",{className:"hearth-shadow"}),e.createElement("span",{className:"hearth-front"},i)):e.createElement(l,{ref:n,"aria-disabled":t||void 0,className:_clsx2.default.call(void 0, B,s),onClick:t?void 0:r,...d,...m},i)});x.displayName=b;exports.a = x;
|
|
2
|
-
//# sourceMappingURL=chunk-XQRMCUFK.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-XQRMCUFK.cjs","../src/components/ButtonBase/ButtonBase.tsx"],"names":["componentName","componentClassName","withGlobalPrefix","ButtonBase","props","ref","colorScheme","inverted","className","disabled","onClick","asChild","children","buttonBaseProps","extractProps","buttonBasePropDefs","marginPropDefs","variant","dataAttributeProps","Component","Slot","clsx"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAAyC,wDAAyC,uECA5I,iDACF,wEAEJ,IAOXA,CAAAA,CAAgB,YAAA,CAChBC,CAAAA,CAAqBC,iCAAAA,CAA8B,CAAA,CAI5CC,CAAAA,aAAmB,CAAA,CAAA,UAAA,CAA+C,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC7F,GAAM,CACJ,WAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaV,CAAOW,mBAAAA,CAAoBC,mBAAc,CAAA,CACpD,CAAE,OAAA,CAAAC,CAAAA,CAAU,OAAQ,CAAA,CAAIb,CAAAA,CAGxBc,CAAAA,CAAqB,CACzB,kBAAA,CAAoBZ,CAAAA,EAAAA,CAFKW,CAAAA,GAAY,UAAA,EAAcA,CAAAA,GAAY,OAAA,CAAU,QAAA,CAAW,MAAA,CAAA,CAGpF,eAAA,CAAiBV,CAAAA,CAAW,EAAA,CAAK,KAAA,CACnC,CAAA,CAEMY,CAAAA,CAAYR,CAAAA,CAAUS,eAAAA,CAAO,QAAA,CAKnC,OAAIH,CAAAA,GAAY,UAAA,CAEZ,CAAA,CAAA,aAAA,CAACE,CAAAA,CAAA,CACC,GAAA,CAAKd,CAAAA,CACL,eAAA,CAAeI,CAAAA,EAAY,KAAA,CAAA,CAC3B,SAAA,CAAWY,4BAAAA,CAAKpB,CAAoBO,CAAS,CAAA,CAG7C,OAAA,CAASC,CAAAA,CAAW,KAAA,CAAA,CAAYC,CAAAA,CAC/B,GAAGQ,CAAAA,CACH,GAAGL,CAAAA,CAAAA,CAEJ,CAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CAAK,SAAA,CAAU,eAAA,CAAgB,CAAA,CAChC,CAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CAAK,SAAA,CAAU,cAAA,CAAA,CAAgBD,CAAS,CAC3C,CAAA,CAIF,CAAA,CAAA,aAAA,CAACO,CAAAA,CAAA,CACC,GAAA,CAAKd,CAAAA,CACL,eAAA,CAAeI,CAAAA,EAAY,KAAA,CAAA,CAC3B,SAAA,CAAWY,4BAAAA,CAAKpB,CAAoBO,CAAS,CAAA,CAC7C,OAAA,CAASC,CAAAA,CAAW,KAAA,CAAA,CAAYC,CAAAA,CAC/B,GAAGQ,CAAAA,CACH,GAAGL,CAAAA,CAAAA,CAEHD,CACH,CAEJ,CAAC,CAAA,CAEDT,CAAAA,CAAW,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-XQRMCUFK.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport clsx from 'clsx';\nimport { buttonBasePropDefs, ButtonBaseProps } from './ButtonBase.props';\nimport type { ElementRef } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst componentName = 'ButtonBase';\nconst componentClassName = withGlobalPrefix(componentName);\n\nexport type ButtonBaseElement = ElementRef<'button'>;\n\nexport const ButtonBase = React.forwardRef<ButtonBaseElement, ButtonBaseProps>((props, ref) => {\n const {\n colorScheme,\n inverted,\n className,\n disabled,\n onClick,\n asChild,\n children,\n ...buttonBaseProps\n } = extractProps(props, buttonBasePropDefs, marginPropDefs);\n const { variant = 'solid' } = props;\n\n const defaultColorScheme = variant === 'emphasis' || variant === 'solid' ? 'yellow' : 'grey';\n const dataAttributeProps = {\n 'data-colorscheme': colorScheme || defaultColorScheme,\n 'data-inverted': inverted ? '' : undefined,\n };\n\n const Component = asChild ? Slot : 'button';\n\n // We're rendering a different component here so that we don't have to apply\n // transitions to box-shadow, which causes re-paints on every frame, heavily\n // impacting performance.\n if (variant === 'emphasis') {\n return (\n <Component\n ref={ref}\n aria-disabled={disabled || undefined}\n className={clsx(componentClassName, className)}\n // as we're using aria-disabled instead of disabled then we need to\n // disable the onClick event\n onClick={disabled ? undefined : onClick}\n {...dataAttributeProps}\n {...buttonBaseProps}\n >\n <span className=\"hearth-shadow\"></span>\n <span className=\"hearth-front\">{children}</span>\n </Component>\n );\n }\n return (\n <Component\n ref={ref}\n aria-disabled={disabled || undefined}\n className={clsx(componentClassName, className)}\n onClick={disabled ? undefined : onClick}\n {...dataAttributeProps}\n {...buttonBaseProps}\n >\n {children}\n </Component>\n );\n});\n\nButtonBase.displayName = componentName;\n"]}
|
package/dist/chunk-YRE2X2PS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-LFUFY26R.js";import{a as s}from"./chunk-AFZ3OJUA.js";import{a as p}from"./chunk-VV7AHCQF.js";import{a as m}from"./chunk-XQ5A24NX.js";import{a as e}from"./chunk-RTGGS5XX.js";import{b as t}from"./chunk-4PEMW3UE.js";import*as r from"react";import S from"clsx";import{Slot as d}from"@radix-ui/react-slot";var a="Strong",x=t(a),N=r.forwardRef((f,i)=>{let{className:c,asChild:l,children:o,truncate:g,...P}=e(f,n,s,p,m);return r.createElement(d,{ref:i,className:S(x,c),"data-truncate":g?"":void 0,...P},l?o:r.createElement("strong",null,o))});N.displayName=a;export{N as a};
|
|
2
|
-
//# sourceMappingURL=chunk-YRE2X2PS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Strong/Strong.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { StrongProps } from './Strong.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport type { ElementRef } from 'react';\nimport { extractProps } from '../../helpers/extract-props';\nimport { textAlignPropDefs } from '../../props/text-align.props';\nimport { textTransformPropDefs } from '../../props/text-transform.props';\nimport { textWrapPropDefs } from '../../props/text-wrap.props';\nimport { marginPropDefs } from '../../props/margin.props';\n\nconst componentName = 'Strong';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype StrongElement = ElementRef<'strong'>;\n\nexport const Strong = React.forwardRef<StrongElement, StrongProps>((props, ref) => {\n const { className, asChild, children, truncate, ...strongProps } = extractProps(\n props,\n textAlignPropDefs,\n textTransformPropDefs,\n textWrapPropDefs,\n marginPropDefs\n );\n return (\n <Slot\n ref={ref}\n className={clsx(componentClassName, className)}\n data-truncate={truncate ? '' : undefined}\n {...strongProps}\n >\n {asChild ? children : <strong>{children}</strong>}\n </Slot>\n );\n});\n\nStrong.displayName = componentName;\n"],"mappings":"gPAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAU,OAIjB,OAAS,QAAAC,MAAY,uBASrB,IAAMC,EAAgB,SAChBC,EAAqBC,EAAiBF,CAAa,EAI5CG,EAAe,aAAuC,CAACC,EAAOC,IAAQ,CACjF,GAAM,CAAE,UAAAC,EAAW,QAAAC,EAAS,SAAAC,EAAU,SAAAC,EAAU,GAAGC,CAAY,EAAIC,EACjEP,EACAQ,EACAC,EACAC,EACAC,CACF,EACA,OACE,gBAACC,EAAA,CACC,IAAKX,EACL,UAAWY,EAAKhB,EAAoBK,CAAS,EAC7C,gBAAeG,EAAW,GAAK,OAC9B,GAAGC,GAEHH,EAAUC,EAAW,gBAAC,cAAQA,CAAS,CAC1C,CAEJ,CAAC,EAEDL,EAAO,YAAcH","names":["React","clsx","Slot","componentName","componentClassName","withGlobalPrefix","Strong","props","ref","className","asChild","children","truncate","strongProps","extractProps","textAlignPropDefs","textTransformPropDefs","textWrapPropDefs","marginPropDefs","Slot","clsx"]}
|
package/dist/chunk-Z5TWTOFS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-RFBIC75M.js";import{a as G}from"./chunk-BJ2OK6RA.js";import{a as x}from"./chunk-35HZSCJP.js";import{b as u}from"./chunk-4PEMW3UE.js";import*as o from"react";import C from"clsx";var b="CheckboxGroupRoot",y=u(b),k=o.forwardRef(({name:t,disabled:e,value:r,defaultValue:p,onValueChange:m,width:c="fit-content",direction:n="column",children:a,className:s,...l},i)=>{let f={name:t,value:r,defaultValue:p,onValueChange:m,children:a};return o.createElement(x,{ref:i,...l,className:C(y,s),"data-orientation":n==="column"?"vertical":"horizontal","data-disabled":e?"":void 0,width:c},o.createElement(G,{...f}))});k.displayName=b;var R="CheckboxGroup",v=u(R),B=o.forwardRef(({contentWidth:t,disabled:e,required:r,label:p,helperText:m,validationText:c,validationStatus:n,direction:a,value:s,defaultValue:l,onValueChange:i,children:f,className:d,name:N,...P},E)=>{let F={...P,disabled:e,required:r,label:p,helperText:m,validationText:c,validationStatus:n},w={width:t,direction:a,name:N,required:r,disabled:e,defaultValue:l,value:s,onValueChange:i,children:f};return o.createElement(h,{ref:E,className:C(v,d),...F},o.createElement(k,{...w}))});B.displayName=R;export{k as a,B as b};
|
|
2
|
-
//# sourceMappingURL=chunk-Z5TWTOFS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/CheckboxGroup/CheckboxGroup.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport { CheckboxGroupProps, CheckboxGroupRootProps } from './CheckboxGroup.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ElementRef } from 'react';\nimport { FormFieldGroup } from '../FormFieldGroup/FormFieldGroup';\nimport { Flex } from '../Flex/Flex';\nimport { CheckboxGroupBase } from '../CheckboxGroupBase/CheckboxGroupBase';\n\nconst rootComponentName = 'CheckboxGroupRoot';\nconst rootComponentClassName = withGlobalPrefix(rootComponentName);\n\ntype CheckboxGroupRootElement = ElementRef<'div'>;\n\nexport const CheckboxGroupRoot = React.forwardRef<CheckboxGroupRootElement, CheckboxGroupRootProps>(\n (\n {\n name,\n disabled,\n value,\n defaultValue,\n onValueChange,\n width = 'fit-content',\n direction = 'column',\n children,\n className,\n ...props\n },\n ref\n ) => {\n const checkboxGroupBaseProps = { name, value, defaultValue, onValueChange, children };\n return (\n <Flex\n ref={ref}\n {...props}\n className={clsx(rootComponentClassName, className)}\n data-orientation={direction === 'column' ? 'vertical' : 'horizontal'}\n data-disabled={disabled ? '' : undefined}\n width={width}\n >\n <CheckboxGroupBase {...checkboxGroupBaseProps} />\n </Flex>\n );\n }\n);\n\nCheckboxGroupRoot.displayName = rootComponentName;\n\nconst componentName = 'CheckboxGroup';\nconst componentClassName = withGlobalPrefix(componentName);\n\ntype CheckboxGroupElement = ElementRef<'fieldset'>;\n\nexport const CheckboxGroup = React.forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n (\n {\n contentWidth,\n disabled,\n required,\n label,\n helperText,\n validationText,\n validationStatus,\n direction,\n value,\n defaultValue,\n onValueChange,\n children,\n className,\n name,\n ...props\n },\n ref\n ) => {\n const formFieldGroupProps = {\n ...props,\n disabled,\n required,\n label,\n helperText,\n validationText,\n validationStatus,\n };\n const checkboxGroupRootProps = {\n width: contentWidth,\n direction,\n name,\n required,\n disabled,\n defaultValue,\n value,\n onValueChange,\n children,\n };\n return (\n <FormFieldGroup\n ref={ref}\n className={clsx(componentClassName, className)}\n {...formFieldGroupProps}\n >\n <CheckboxGroupRoot {...checkboxGroupRootProps} />\n </FormFieldGroup>\n );\n }\n);\n\nCheckboxGroup.displayName = componentName;\n"],"mappings":"gKAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAU,OASjB,IAAMC,EAAoB,oBACpBC,EAAyBC,EAAiBF,CAAiB,EAIpDG,EAA0B,aACrC,CACE,CACE,KAAAC,EACA,SAAAC,EACA,MAAAC,EACA,aAAAC,EACA,cAAAC,EACA,MAAAC,EAAQ,cACR,UAAAC,EAAY,SACZ,SAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAyB,CAAE,KAAAX,EAAM,MAAAE,EAAO,aAAAC,EAAc,cAAAC,EAAe,SAAAG,CAAS,EACpF,OACE,gBAACK,EAAA,CACC,IAAKF,EACJ,GAAGD,EACJ,UAAWI,EAAKhB,EAAwBW,CAAS,EACjD,mBAAkBF,IAAc,SAAW,WAAa,aACxD,gBAAeL,EAAW,GAAK,OAC/B,MAAOI,GAEP,gBAACS,EAAA,CAAmB,GAAGH,EAAwB,CACjD,CAEJ,CACF,EAEAZ,EAAkB,YAAcH,EAEhC,IAAMmB,EAAgB,gBAChBC,EAAqBlB,EAAiBiB,CAAa,EAI5CE,EAAsB,aACjC,CACE,CACE,aAAAC,EACA,SAAAjB,EACA,SAAAkB,EACA,MAAAC,EACA,WAAAC,EACA,eAAAC,EACA,iBAAAC,EACA,UAAAjB,EACA,MAAAJ,EACA,aAAAC,EACA,cAAAC,EACA,SAAAG,EACA,UAAAC,EACA,KAAAR,EACA,GAAGS,CACL,EACAC,IACG,CACH,IAAMc,EAAsB,CAC1B,GAAGf,EACH,SAAAR,EACA,SAAAkB,EACA,MAAAC,EACA,WAAAC,EACA,eAAAC,EACA,iBAAAC,CACF,EACME,EAAyB,CAC7B,MAAOP,EACP,UAAAZ,EACA,KAAAN,EACA,SAAAmB,EACA,SAAAlB,EACA,aAAAE,EACA,MAAAD,EACA,cAAAE,EACA,SAAAG,CACF,EACA,OACE,gBAACmB,EAAA,CACC,IAAKhB,EACL,UAAWG,EAAKG,EAAoBR,CAAS,EAC5C,GAAGgB,GAEJ,gBAACzB,EAAA,CAAmB,GAAG0B,EAAwB,CACjD,CAEJ,CACF,EAEAR,EAAc,YAAcF","names":["React","clsx","rootComponentName","rootComponentClassName","withGlobalPrefix","CheckboxGroupRoot","name","disabled","value","defaultValue","onValueChange","width","direction","children","className","props","ref","checkboxGroupBaseProps","Flex","clsx","CheckboxGroupBase","componentName","componentClassName","CheckboxGroup","contentWidth","required","label","helperText","validationText","validationStatus","formFieldGroupProps","checkboxGroupRootProps","FormFieldGroup"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJL7WDTVIcjs = require('../../chunk-JL7WDTVI.cjs');require('../../chunk-TIOWEGWW.cjs');require('../../chunk-7HABZBWT.cjs');require('../../chunk-BLQSWP7Z.cjs');require('../../chunk-K5BEIZDA.cjs');require('../../chunk-RNI77PJE.cjs');require('../../chunk-VRX67OL2.cjs');require('../../chunk-G3WGZ27Z.cjs');require('../../chunk-7TQMVZ2R.cjs');require('../../chunk-XZD2I4TZ.cjs');require('../../chunk-4JPGKPIU.cjs');require('../../chunk-6XA5OQRT.cjs');require('../../chunk-UICIKADY.cjs');require('../../chunk-3Q4XWRAL.cjs');require('../../chunk-SPWXYK7X.cjs');require('../../chunk-DCR54SDP.cjs');require('../../chunk-4VG5MYC3.cjs');require('../../chunk-LAVQWQP2.cjs');require('../../chunk-CXGQIXJR.cjs');require('../../chunk-76HQAMKU.cjs');require('../../chunk-SZO4CNE5.cjs');require('../../chunk-IYSVQSPG.cjs');require('../../chunk-TMWB3U4X.cjs');require('../../chunk-75BHPV4A.cjs');require('../../chunk-MT6VZWFA.cjs');require('../../chunk-GBMJ5JAI.cjs');require('../../chunk-LAITMUFB.cjs');require('../../chunk-H2TDV2BL.cjs');require('../../chunk-5DRU6TDW.cjs');require('../../chunk-3DNRI5YZ.cjs');require('../../chunk-4H5JT5OR.cjs');require('../../chunk-DPWOHAYD.cjs');require('../../chunk-AURLQ3VG.cjs');require('../../chunk-A4KDLDVY.cjs');require('../../chunk-DSW76HKT.cjs');require('../../chunk-JHPCQWHT.cjs');exports.FormFieldGroup = _chunkJL7WDTVIcjs.a;
|
|
2
|
-
//# sourceMappingURL=FormFieldGroup.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/FormFieldGroup/FormFieldGroup.cjs"],"names":[],"mappings":"AAAA,qIAAuC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,6CAA4B","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/FormFieldGroup/FormFieldGroup.cjs"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRNI77PJEcjs = require('../../chunk-RNI77PJE.cjs');exports.FormFieldGroupContext = _chunkRNI77PJEcjs.a; exports.FormFieldGroupProvider = _chunkRNI77PJEcjs.b; exports.useFormFieldGroup = _chunkRNI77PJEcjs.c;
|
|
2
|
-
//# sourceMappingURL=FormFieldGroup.context.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/FormFieldGroup/FormFieldGroup.context.cjs"],"names":[],"mappings":"AAAA,qIAA2C,2JAAsF","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/FormFieldGroup/FormFieldGroup.context.cjs"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type FormFieldGroupContextValue = {
|
|
4
|
-
hasGroupHelperText: boolean;
|
|
5
|
-
'aria-describedby'?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const FormFieldGroupContext: React.Context<FormFieldGroupContextValue>;
|
|
8
|
-
declare const FormFieldGroupProvider: React.Provider<FormFieldGroupContextValue>;
|
|
9
|
-
declare const useFormFieldGroup: () => FormFieldGroupContextValue;
|
|
10
|
-
|
|
11
|
-
export { FormFieldGroupContext, type FormFieldGroupContextValue, FormFieldGroupProvider, useFormFieldGroup };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type FormFieldGroupContextValue = {
|
|
4
|
-
hasGroupHelperText: boolean;
|
|
5
|
-
'aria-describedby'?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const FormFieldGroupContext: React.Context<FormFieldGroupContextValue>;
|
|
8
|
-
declare const FormFieldGroupProvider: React.Provider<FormFieldGroupContextValue>;
|
|
9
|
-
declare const useFormFieldGroup: () => FormFieldGroupContextValue;
|
|
10
|
-
|
|
11
|
-
export { FormFieldGroupContext, type FormFieldGroupContextValue, FormFieldGroupProvider, useFormFieldGroup };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormFieldGroupProps } from './FormFieldGroup.props.cjs';
|
|
3
|
-
import '../Fieldset/Fieldset.props.cjs';
|
|
4
|
-
import '../../props/margin.props.cjs';
|
|
5
|
-
import '../../types/responsive.cjs';
|
|
6
|
-
import '../../types/component-props.cjs';
|
|
7
|
-
import '../ValidationText/ValidationText.props.cjs';
|
|
8
|
-
import '../../props/text-align.props.cjs';
|
|
9
|
-
import '../../props/text-transform.props.cjs';
|
|
10
|
-
|
|
11
|
-
declare const FormFieldGroup: React.ForwardRefExoticComponent<FormFieldGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
12
|
-
|
|
13
|
-
export { FormFieldGroup };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormFieldGroupProps } from './FormFieldGroup.props.js';
|
|
3
|
-
import '../Fieldset/Fieldset.props.js';
|
|
4
|
-
import '../../props/margin.props.js';
|
|
5
|
-
import '../../types/responsive.js';
|
|
6
|
-
import '../../types/component-props.js';
|
|
7
|
-
import '../ValidationText/ValidationText.props.js';
|
|
8
|
-
import '../../props/text-align.props.js';
|
|
9
|
-
import '../../props/text-transform.props.js';
|
|
10
|
-
|
|
11
|
-
declare const FormFieldGroup: React.ForwardRefExoticComponent<FormFieldGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
12
|
-
|
|
13
|
-
export { FormFieldGroup };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-RFBIC75M.js";import"../../chunk-PJXMEG7B.js";import"../../chunk-TPDJP4AA.js";import"../../chunk-7MLDCVRK.js";import"../../chunk-JPYVWTDN.js";import"../../chunk-HMTIVDG5.js";import"../../chunk-35HZSCJP.js";import"../../chunk-HTXCYMDE.js";import"../../chunk-VBMXLPU5.js";import"../../chunk-6TDZE7FX.js";import"../../chunk-ZKJZGOS5.js";import"../../chunk-LFUFY26R.js";import"../../chunk-AFZ3OJUA.js";import"../../chunk-VV7AHCQF.js";import"../../chunk-BXITMQY6.js";import"../../chunk-V6DSC6VC.js";import"../../chunk-WOH4H47Z.js";import"../../chunk-XQ5A24NX.js";import"../../chunk-ND4U26VB.js";import"../../chunk-NMHPABLW.js";import"../../chunk-CJ2QDEW6.js";import"../../chunk-EUTKQ2DV.js";import"../../chunk-QC4ZMGCU.js";import"../../chunk-A7VLDNG7.js";import"../../chunk-RHACHKA5.js";import"../../chunk-NO5CYWTB.js";import"../../chunk-5LFE33FH.js";import"../../chunk-6D6OHJRG.js";import"../../chunk-RTGGS5XX.js";import"../../chunk-TOUF44PN.js";import"../../chunk-4PEMW3UE.js";import"../../chunk-FSK5FGWM.js";import"../../chunk-AJUKXCDS.js";import"../../chunk-TLHGRJDQ.js";import"../../chunk-DVGYWBKQ.js";import"../../chunk-4IJEOHER.js";export{a as FormFieldGroup};
|
|
2
|
-
//# sourceMappingURL=FormFieldGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";//# sourceMappingURL=FormFieldGroup.props.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/FormFieldGroup/FormFieldGroup.props.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/FormFieldGroup/FormFieldGroup.props.cjs"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FieldsetProps } from '../Fieldset/Fieldset.props.cjs';
|
|
3
|
-
import { ValidationTextProps } from '../ValidationText/ValidationText.props.cjs';
|
|
4
|
-
import '../../props/margin.props.cjs';
|
|
5
|
-
import '../../types/responsive.cjs';
|
|
6
|
-
import '../../types/component-props.cjs';
|
|
7
|
-
import '../../props/text-align.props.cjs';
|
|
8
|
-
import '../../props/text-transform.props.cjs';
|
|
9
|
-
|
|
10
|
-
interface FormFieldGroupProps extends FieldsetProps {
|
|
11
|
-
/**
|
|
12
|
-
* The label for the formfield group. This should contain the question being
|
|
13
|
-
* answered by the formfield group.
|
|
14
|
-
*
|
|
15
|
-
* If you don't include a label you need to ensure you use the `aria-label`
|
|
16
|
-
* or `aria-labelledby` prop to properly associate a label with the formfield
|
|
17
|
-
* group.
|
|
18
|
-
*/
|
|
19
|
-
label?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Helper text for the formfield group. Provides a hint such as specific
|
|
22
|
-
* requirements for what to choose. When displayed, child
|
|
23
|
-
* components should not display their own `helperText`.
|
|
24
|
-
*/
|
|
25
|
-
helperText?: ReactNode;
|
|
26
|
-
validationText?: ReactNode;
|
|
27
|
-
validationStatus?: ValidationTextProps['status'];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type { FormFieldGroupProps };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FieldsetProps } from '../Fieldset/Fieldset.props.js';
|
|
3
|
-
import { ValidationTextProps } from '../ValidationText/ValidationText.props.js';
|
|
4
|
-
import '../../props/margin.props.js';
|
|
5
|
-
import '../../types/responsive.js';
|
|
6
|
-
import '../../types/component-props.js';
|
|
7
|
-
import '../../props/text-align.props.js';
|
|
8
|
-
import '../../props/text-transform.props.js';
|
|
9
|
-
|
|
10
|
-
interface FormFieldGroupProps extends FieldsetProps {
|
|
11
|
-
/**
|
|
12
|
-
* The label for the formfield group. This should contain the question being
|
|
13
|
-
* answered by the formfield group.
|
|
14
|
-
*
|
|
15
|
-
* If you don't include a label you need to ensure you use the `aria-label`
|
|
16
|
-
* or `aria-labelledby` prop to properly associate a label with the formfield
|
|
17
|
-
* group.
|
|
18
|
-
*/
|
|
19
|
-
label?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Helper text for the formfield group. Provides a hint such as specific
|
|
22
|
-
* requirements for what to choose. When displayed, child
|
|
23
|
-
* components should not display their own `helperText`.
|
|
24
|
-
*/
|
|
25
|
-
helperText?: ReactNode;
|
|
26
|
-
validationText?: ReactNode;
|
|
27
|
-
validationStatus?: ValidationTextProps['status'];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type { FormFieldGroupProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=FormFieldGroup.props.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{FormFieldGroup/FormFieldGroup.props.js.map → Legend/Legend.props.js.map}
RENAMED
|
File without changes
|