@utilitywarehouse/hearth-react 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-7POZ6SDC.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,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AAAA,CAC3CZ,CACH,CACF,CAEJ,CAEJ,CAAC,CAAA,CAEDX,CAAAA,CAAK,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-7POZ6SDC.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 ['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 role=\"list\" 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 role=\"list\" ref={ref} {...listProps} {...listAriaProps}>\n {children}\n </Tag>\n </Card>\n )}\n </div>\n );\n});\n\nList.displayName = componentName;\n"]}
@@ -1,2 +0,0 @@
1
- import{a as b}from"./chunk-LX55FQR5.js";import{a as x}from"./chunk-TKOS3BOP.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:l,variant:n,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,"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}),n===void 0||a===void 0?e.createElement(f,{asChild:!0,className:"hearth-ListContainer"},e.createElement(i,{role:"list",ref:r,...s,...d},l)):e.createElement(x,{className:"hearth-ListContainer",paddingNone:!0,variant:n,colorScheme:a},e.createElement(i,{role:"list",ref:r,...s,...d},l)))});I.displayName=y;export{I as a};
2
- //# sourceMappingURL=chunk-B75SG3NE.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 ['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 role=\"list\" 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 role=\"list\" 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,EACC,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,KAAK,OAAO,IAAKD,EAAM,GAAGc,EAAY,GAAGO,GAC3CZ,CACH,CACF,EAEA,gBAACgB,EAAA,CACC,UAAU,uBACV,YAAW,GACX,QAASf,EACT,YAAaP,GAEb,gBAACF,EAAA,CAAI,KAAK,OAAO,IAAKD,EAAM,GAAGc,EAAY,GAAGO,GAC3CZ,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"]}