@utilitywarehouse/hearth-react 0.31.7 → 0.31.9
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/README.md +3 -2
- package/dist/{chunk-S7Y6GALX.js → chunk-2BXOPSBP.js} +2 -2
- package/dist/{chunk-PO3KPWLQ.cjs → chunk-2CQBAUT4.cjs} +2 -2
- package/dist/{chunk-PO3KPWLQ.cjs.map → chunk-2CQBAUT4.cjs.map} +1 -1
- package/dist/{chunk-DR4QANDW.js → chunk-6LWA5AVL.js} +2 -2
- package/dist/{chunk-PDDNZR3L.js → chunk-A2L377NY.js} +2 -2
- package/dist/{chunk-KH3HBMZZ.js → chunk-A6TWEUBJ.js} +2 -2
- package/dist/{chunk-YQ64U4ZS.cjs → chunk-AEE5GEAR.cjs} +2 -2
- package/dist/{chunk-YQ64U4ZS.cjs.map → chunk-AEE5GEAR.cjs.map} +1 -1
- package/dist/{chunk-VFS3ENK3.cjs → chunk-ATFZDF7V.cjs} +2 -2
- package/dist/{chunk-VFS3ENK3.cjs.map → chunk-ATFZDF7V.cjs.map} +1 -1
- package/dist/{chunk-RUBVYDSJ.js → chunk-BGNYV7FE.js} +2 -2
- package/dist/{chunk-GIIZMNGD.cjs → chunk-BID5FYSA.cjs} +2 -2
- package/dist/{chunk-GIIZMNGD.cjs.map → chunk-BID5FYSA.cjs.map} +1 -1
- package/dist/{chunk-77LGEPIX.js → chunk-CK65ZXRX.js} +2 -2
- package/dist/{chunk-JRFRTAZY.cjs → chunk-DAJBLN6H.cjs} +2 -2
- package/dist/{chunk-JRFRTAZY.cjs.map → chunk-DAJBLN6H.cjs.map} +1 -1
- package/dist/{chunk-S3UYC3UR.cjs → chunk-DD76PFTK.cjs} +2 -2
- package/dist/{chunk-S3UYC3UR.cjs.map → chunk-DD76PFTK.cjs.map} +1 -1
- package/dist/{chunk-HFEDWXR6.cjs → chunk-EEDVZAAP.cjs} +2 -2
- package/dist/{chunk-HFEDWXR6.cjs.map → chunk-EEDVZAAP.cjs.map} +1 -1
- package/dist/{chunk-NWYDAWHJ.js → chunk-ERYOEL6H.js} +2 -2
- package/dist/{chunk-FTLXW6UW.cjs → chunk-GCBPGT3T.cjs} +2 -2
- package/dist/{chunk-FTLXW6UW.cjs.map → chunk-GCBPGT3T.cjs.map} +1 -1
- package/dist/{chunk-232QW7PG.cjs → chunk-GSET274J.cjs} +2 -2
- package/dist/{chunk-232QW7PG.cjs.map → chunk-GSET274J.cjs.map} +1 -1
- package/dist/{chunk-OYIHW2CV.js → chunk-H3MYY4SJ.js} +2 -2
- package/dist/{chunk-ZBCCFNJI.js → chunk-HKHOVE3D.js} +2 -2
- package/dist/{chunk-TUY576CV.js → chunk-IE6LO4K2.js} +2 -2
- package/dist/{chunk-MFTU4Z3B.cjs → chunk-IJOC3KSC.cjs} +2 -2
- package/dist/{chunk-MFTU4Z3B.cjs.map → chunk-IJOC3KSC.cjs.map} +1 -1
- package/dist/{chunk-BJUW32RW.cjs → chunk-ISJSZELR.cjs} +2 -2
- package/dist/{chunk-BJUW32RW.cjs.map → chunk-ISJSZELR.cjs.map} +1 -1
- package/dist/{chunk-HTWIXBNO.cjs → chunk-J7S4JP3H.cjs} +2 -2
- package/dist/{chunk-HTWIXBNO.cjs.map → chunk-J7S4JP3H.cjs.map} +1 -1
- package/dist/{chunk-CNZUOCUM.cjs → chunk-JHH2D3YF.cjs} +2 -2
- package/dist/{chunk-CNZUOCUM.cjs.map → chunk-JHH2D3YF.cjs.map} +1 -1
- package/dist/{chunk-UKIDDRMH.js → chunk-JMDEXMWG.js} +2 -2
- package/dist/{chunk-VFV72EO7.cjs → chunk-JXP7RNJK.cjs} +2 -2
- package/dist/{chunk-VFV72EO7.cjs.map → chunk-JXP7RNJK.cjs.map} +1 -1
- package/dist/{chunk-LB7PWD7I.js → chunk-KANLZBMK.js} +2 -2
- package/dist/chunk-KZGU4LQG.cjs +4 -0
- package/dist/chunk-KZGU4LQG.cjs.map +1 -0
- package/dist/{chunk-7WJQ72PM.cjs → chunk-L3UBMJ2Q.cjs} +2 -2
- package/dist/{chunk-7WJQ72PM.cjs.map → chunk-L3UBMJ2Q.cjs.map} +1 -1
- package/dist/{chunk-ARUDWUBG.js → chunk-LMN7X2ZU.js} +2 -2
- package/dist/{chunk-BBCS2JP5.js → chunk-LTACJFAQ.js} +2 -2
- package/dist/{chunk-BCHFYX2N.js → chunk-MTNMX72O.js} +2 -2
- package/dist/{chunk-SLBGLN2P.cjs → chunk-MZ5F6U2V.cjs} +2 -2
- package/dist/{chunk-SLBGLN2P.cjs.map → chunk-MZ5F6U2V.cjs.map} +1 -1
- package/dist/{chunk-65XQL64O.cjs → chunk-O3VQ23YO.cjs} +2 -2
- package/dist/{chunk-65XQL64O.cjs.map → chunk-O3VQ23YO.cjs.map} +1 -1
- package/dist/{chunk-5CK2UAGE.js → chunk-OAZAGJ5H.js} +2 -2
- package/dist/chunk-P3TBIMSA.js +4 -0
- package/dist/chunk-P3TBIMSA.js.map +1 -0
- package/dist/{chunk-BVDXF3RH.js → chunk-PFUEWOVM.js} +2 -2
- package/dist/{chunk-6XCKGYH5.cjs → chunk-PYGEWGM6.cjs} +2 -2
- package/dist/{chunk-6XCKGYH5.cjs.map → chunk-PYGEWGM6.cjs.map} +1 -1
- package/dist/{chunk-TNCR5TRP.js → chunk-Q4RSQ375.js} +2 -2
- package/dist/{chunk-VYSSCSKV.cjs → chunk-Q6RJ4LCJ.cjs} +2 -2
- package/dist/{chunk-VYSSCSKV.cjs.map → chunk-Q6RJ4LCJ.cjs.map} +1 -1
- package/dist/chunk-QL5D7DXU.cjs +4 -0
- package/dist/chunk-QL5D7DXU.cjs.map +1 -0
- package/dist/{chunk-PSBEC3L7.cjs → chunk-QPJVK2SM.cjs} +2 -2
- package/dist/{chunk-PSBEC3L7.cjs.map → chunk-QPJVK2SM.cjs.map} +1 -1
- package/dist/{chunk-NRE3SOKA.cjs → chunk-QQNBA5L4.cjs} +2 -2
- package/dist/{chunk-NRE3SOKA.cjs.map → chunk-QQNBA5L4.cjs.map} +1 -1
- package/dist/{chunk-OYQSXHT5.js → chunk-QQSZD3WU.js} +2 -2
- package/dist/chunk-QTXKSQ7K.js +4 -0
- package/dist/chunk-QTXKSQ7K.js.map +1 -0
- package/dist/{chunk-VTVXHUS7.cjs → chunk-R3U62QUJ.cjs} +2 -2
- package/dist/{chunk-VTVXHUS7.cjs.map → chunk-R3U62QUJ.cjs.map} +1 -1
- package/dist/{chunk-NRXW75OC.js → chunk-RBRFHUML.js} +2 -2
- package/dist/{chunk-GF2SEKIQ.js → chunk-RHJTLHTA.js} +2 -2
- package/dist/{chunk-LW7RRUXG.js → chunk-T74XRDWT.js} +2 -2
- package/dist/{chunk-UP7TWXXF.cjs → chunk-TKI2FGBE.cjs} +2 -2
- package/dist/{chunk-UP7TWXXF.cjs.map → chunk-TKI2FGBE.cjs.map} +1 -1
- package/dist/{chunk-7AGF5K4K.cjs → chunk-VEBBWIXI.cjs} +2 -2
- package/dist/{chunk-7AGF5K4K.cjs.map → chunk-VEBBWIXI.cjs.map} +1 -1
- package/dist/{chunk-7LDCH5XK.js → chunk-VEPEWBVZ.js} +2 -2
- package/dist/{chunk-GS7HRO37.js → chunk-XKWLFASV.js} +2 -2
- package/dist/{chunk-6QHP6AKX.js → chunk-YIFZN4TH.js} +2 -2
- package/dist/{chunk-HUTTCGFV.cjs → chunk-YO5VMB3U.cjs} +2 -2
- package/dist/{chunk-HUTTCGFV.cjs.map → chunk-YO5VMB3U.cjs.map} +1 -1
- package/dist/{chunk-CTAISUDZ.js → chunk-YP2RDWK5.js} +2 -2
- package/dist/{chunk-IWMLWTVN.cjs → chunk-Z4PF2FMW.cjs} +2 -2
- package/dist/{chunk-IWMLWTVN.cjs.map → chunk-Z4PF2FMW.cjs.map} +1 -1
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/CardAccordion/CardAccordion.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordion.js +1 -1
- package/dist/components/CardAccordion/CardAccordionButton.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordionButton.js +1 -1
- package/dist/components/CardAccordion/CardAccordionItem.cjs +1 -1
- package/dist/components/CardAccordion/CardAccordionItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.cjs +1 -1
- package/dist/components/CheckboxTile/CheckboxTile.js +1 -1
- package/dist/components/Chip/Chip.cjs +4 -0
- package/dist/components/Chip/Chip.cjs.map +1 -0
- package/dist/components/Chip/Chip.d.ts +10 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.js +4 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/Chip.props.cjs +3 -0
- package/dist/components/Chip/Chip.props.cjs.map +1 -0
- package/dist/components/Chip/Chip.props.d.ts +7 -0
- package/dist/components/Chip/Chip.props.d.ts.map +1 -0
- package/dist/components/Chip/Chip.props.js +3 -0
- package/dist/components/Chip/Chip.props.js.map +1 -0
- package/dist/components/Chip/ChipGroup.cjs +4 -0
- package/dist/components/Chip/ChipGroup.cjs.map +1 -0
- package/dist/components/Chip/ChipGroup.d.ts +10 -0
- package/dist/components/Chip/ChipGroup.d.ts.map +1 -0
- package/dist/components/Chip/ChipGroup.js +4 -0
- package/dist/components/Chip/ChipGroup.js.map +1 -0
- package/dist/components/Chip/ChipGroup.props.cjs +3 -0
- package/dist/components/Chip/ChipGroup.props.cjs.map +1 -0
- package/dist/components/Chip/ChipGroup.props.d.ts +13 -0
- package/dist/components/Chip/ChipGroup.props.d.ts.map +1 -0
- package/dist/components/Chip/ChipGroup.props.js +3 -0
- package/dist/components/Chip/ChipGroup.props.js.map +1 -0
- package/dist/components/Combobox/Combobox.cjs +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
- package/dist/components/DateInput/DateInput.cjs +1 -1
- package/dist/components/DateInput/DateInput.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.cjs +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/ExpandableCard/ExpandableCardGroup.cjs +1 -1
- package/dist/components/ExpandableCard/ExpandableCardGroup.js +1 -1
- package/dist/components/FormField/FormField.cjs +1 -1
- package/dist/components/FormField/FormField.js +1 -1
- package/dist/components/List/List.cjs +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/ProgressBar/ProgressBarCircular.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBarCircular.js +1 -1
- package/dist/components/ProgressBar/ProgressBarLinear.cjs +1 -1
- package/dist/components/ProgressBar/ProgressBarLinear.js +1 -1
- package/dist/components/Radio/Radio.cjs +1 -1
- package/dist/components/Radio/Radio.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.js +1 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Skeleton/SkeletonBodyText.cjs +1 -1
- package/dist/components/Skeleton/SkeletonBodyText.js +1 -1
- package/dist/components/Table/TablePagination.cjs +1 -1
- package/dist/components/Table/TablePagination.js +1 -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/components/VerificationInput/VerificationInput.cjs +1 -1
- package/dist/components/VerificationInput/VerificationInput.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +10 -7
- package/public/llms/components/chip.md +126 -0
- package/public/llms/docs/getting-started.md +1 -1
- package/public/llms.txt +1 -0
- package/styles.css +1 -1
- /package/dist/{chunk-S7Y6GALX.js.map → chunk-2BXOPSBP.js.map} +0 -0
- /package/dist/{chunk-DR4QANDW.js.map → chunk-6LWA5AVL.js.map} +0 -0
- /package/dist/{chunk-PDDNZR3L.js.map → chunk-A2L377NY.js.map} +0 -0
- /package/dist/{chunk-KH3HBMZZ.js.map → chunk-A6TWEUBJ.js.map} +0 -0
- /package/dist/{chunk-RUBVYDSJ.js.map → chunk-BGNYV7FE.js.map} +0 -0
- /package/dist/{chunk-77LGEPIX.js.map → chunk-CK65ZXRX.js.map} +0 -0
- /package/dist/{chunk-NWYDAWHJ.js.map → chunk-ERYOEL6H.js.map} +0 -0
- /package/dist/{chunk-OYIHW2CV.js.map → chunk-H3MYY4SJ.js.map} +0 -0
- /package/dist/{chunk-ZBCCFNJI.js.map → chunk-HKHOVE3D.js.map} +0 -0
- /package/dist/{chunk-TUY576CV.js.map → chunk-IE6LO4K2.js.map} +0 -0
- /package/dist/{chunk-UKIDDRMH.js.map → chunk-JMDEXMWG.js.map} +0 -0
- /package/dist/{chunk-LB7PWD7I.js.map → chunk-KANLZBMK.js.map} +0 -0
- /package/dist/{chunk-ARUDWUBG.js.map → chunk-LMN7X2ZU.js.map} +0 -0
- /package/dist/{chunk-BBCS2JP5.js.map → chunk-LTACJFAQ.js.map} +0 -0
- /package/dist/{chunk-BCHFYX2N.js.map → chunk-MTNMX72O.js.map} +0 -0
- /package/dist/{chunk-5CK2UAGE.js.map → chunk-OAZAGJ5H.js.map} +0 -0
- /package/dist/{chunk-BVDXF3RH.js.map → chunk-PFUEWOVM.js.map} +0 -0
- /package/dist/{chunk-TNCR5TRP.js.map → chunk-Q4RSQ375.js.map} +0 -0
- /package/dist/{chunk-OYQSXHT5.js.map → chunk-QQSZD3WU.js.map} +0 -0
- /package/dist/{chunk-NRXW75OC.js.map → chunk-RBRFHUML.js.map} +0 -0
- /package/dist/{chunk-GF2SEKIQ.js.map → chunk-RHJTLHTA.js.map} +0 -0
- /package/dist/{chunk-LW7RRUXG.js.map → chunk-T74XRDWT.js.map} +0 -0
- /package/dist/{chunk-7LDCH5XK.js.map → chunk-VEPEWBVZ.js.map} +0 -0
- /package/dist/{chunk-GS7HRO37.js.map → chunk-XKWLFASV.js.map} +0 -0
- /package/dist/{chunk-6QHP6AKX.js.map → chunk-YIFZN4TH.js.map} +0 -0
- /package/dist/{chunk-CTAISUDZ.js.map → chunk-YP2RDWK5.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-PYGEWGM6.cjs","../src/components/Pagination/Pagination.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ELLIPSIS","MAX_VISIBLE_ITEMS","generatePageNumbers","currentPage","totalPages","_","i","pages","isNearStart","isNearEnd","Pagination","forwardRef","props","ref","className","onPageChange","condensed","hideSkipButtons","Tag","paginationProps","extractProps","marginPropDefs","handlePrevious","handleNext","handleFirst","handleLast","jsx","Slot","cn","jsxs"],"mappings":"AAAA,qFAAY;A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CAAoBgB,CAAS,CAAA,CAC3C,aAAA,CAAahB,CAAAA,CACZ,GAAGqB,CAAAA,CAEJ,QAAA,CAAAO,6BAAAA,CAACR,CAAA,CACC,QAAA,CAAAW,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-PYGEWGM6.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport {\n ChevronLeftSmallIcon,\n ChevronRightSmallIcon,\n SkipFirstSmallIcon,\n SkipLastSmallIcon,\n} from '@utilitywarehouse/hearth-react-icons';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { Button } from '../Button/Button';\nimport { BodyText } from '../BodyText/BodyText';\nimport type { PaginationProps } from './Pagination.props';\nimport { Slot } from 'radix-ui';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'Pagination';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype PaginationElement = ComponentRef<'div'>;\n\nconst ELLIPSIS = '...';\nconst MAX_VISIBLE_ITEMS = 7;\n\n/**\n * Generates the array of page numbers and ellipsis to display\n * Max visible items is 7 (including ellipses)\n */\nconst generatePageNumbers = (\n currentPage: number,\n totalPages: number\n): Array<number | typeof ELLIPSIS> => {\n // If total pages fit within max visible items, show all\n if (totalPages <= MAX_VISIBLE_ITEMS) {\n return Array.from({ length: totalPages }, (_, i) => i + 1);\n }\n\n const pages: Array<number | typeof ELLIPSIS> = [];\n\n // Determine if current page is close to start or end\n const isNearStart = currentPage <= 4;\n const isNearEnd = currentPage > totalPages - 4;\n\n if (isNearStart) {\n // Page 1-4 selected: 1, 2, 3, 4, 5, ..., last\n pages.push(1, 2, 3, 4, 5);\n pages.push(ELLIPSIS);\n pages.push(totalPages);\n } else if (isNearEnd) {\n // Page (totalPages-4) to totalPages selected: 1, ..., last-4, last-3, last-2, last-1, last\n pages.push(1);\n pages.push(ELLIPSIS);\n pages.push(totalPages - 4, totalPages - 3, totalPages - 2, totalPages - 1, totalPages);\n } else {\n // Middle pages: 1, ..., current-1, current, current+1, ..., last\n pages.push(1);\n pages.push(ELLIPSIS);\n pages.push(currentPage - 1, currentPage, currentPage + 1);\n pages.push(ELLIPSIS);\n pages.push(totalPages);\n }\n\n return pages;\n};\n\nexport const Pagination = forwardRef<PaginationElement, PaginationProps>((props, ref) => {\n const {\n className,\n currentPage,\n totalPages,\n onPageChange,\n condensed = false,\n hideSkipButtons = false,\n as: Tag = 'div',\n ...paginationProps\n } = extractProps(props, marginPropDefs);\n\n const pages = generatePageNumbers(currentPage, totalPages);\n\n const handlePrevious = () => {\n if (currentPage > 1) {\n onPageChange(currentPage - 1);\n }\n };\n\n const handleNext = () => {\n if (currentPage < totalPages) {\n onPageChange(currentPage + 1);\n }\n };\n\n const handleFirst = () => {\n if (currentPage !== 1) {\n onPageChange(1);\n }\n };\n\n const handleLast = () => {\n if (currentPage !== totalPages) {\n onPageChange(totalPages);\n }\n };\n\n return (\n <Slot.Root\n ref={ref}\n aria-label=\"pagination\"\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...paginationProps}\n >\n <Tag>\n <div className={`${componentClassName}Container`}>\n <div className={`${componentClassName}Controllers`}>\n {!hideSkipButtons && (\n <UnstyledIconButton\n label=\"Go to first page\"\n onClick={handleFirst}\n disabled={currentPage === 1}\n >\n <SkipFirstSmallIcon />\n </UnstyledIconButton>\n )}\n\n <UnstyledIconButton\n label=\"Go to previous page\"\n onClick={handlePrevious}\n disabled={currentPage === 1}\n >\n <ChevronLeftSmallIcon />\n </UnstyledIconButton>\n </div>\n\n {condensed ? (\n <BodyText size=\"md\" color=\"primary\">\n Page {currentPage} of {totalPages}\n </BodyText>\n ) : (\n <div>\n <ol className={`${componentClassName}Pages`}>\n {pages.map((page, index) => {\n if (page === ELLIPSIS) {\n return (\n <li key={`ellipsis-${index}`}>\n <BodyText\n size=\"md\"\n color=\"primary\"\n className={`${componentClassName}Ellipsis`}\n >\n {ELLIPSIS}\n </BodyText>\n </li>\n );\n }\n const isActive = page === currentPage;\n return (\n <li key={page}>\n <Button\n className={`${componentClassName}Page`}\n variant=\"ghost\"\n colorScheme=\"functional\"\n onClick={() => onPageChange(page)}\n data-active={isActive ? '' : undefined}\n aria-label={`Go to page ${page}`}\n aria-current={isActive ? 'page' : undefined}\n >\n {page}\n </Button>\n </li>\n );\n })}\n </ol>\n </div>\n )}\n\n <div className={`${componentClassName}Controllers`}>\n <UnstyledIconButton\n label=\"Go to next page\"\n onClick={handleNext}\n disabled={currentPage === totalPages}\n >\n <ChevronRightSmallIcon />\n </UnstyledIconButton>\n\n {!hideSkipButtons && (\n <UnstyledIconButton\n label=\"Go to last page\"\n onClick={handleLast}\n disabled={currentPage === totalPages}\n >\n <SkipLastSmallIcon />\n </UnstyledIconButton>\n )}\n </div>\n </div>\n </Tag>\n </Slot.Root>\n );\n});\n\nPagination.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as R}from"./chunk-RDRQOW7F.js";import{c as u}from"./chunk-HY32GRZP.js";import{a as f}from"./chunk-XWNXTDDJ.js";import{a as c}from"./chunk-ZFXXAQRQ.js";import{a as n}from"./chunk-BMUDU7FZ.js";import{a as b}from"./chunk-7X24J4CX.js";import{a as p}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as M}from"react";import{RadioGroup as x}from"radix-ui";import{jsx as o,jsxs as i}from"react/jsx-runtime";var I="RadioTile",T=e(I),O=M(({className:N,id:y,label:r,helperText:t,image:P,"aria-labelledby":a,badge:v,flex:C,flexBasis:G,flexShrink:h,flexGrow:B,...E},F)=>{let{id:d,labelId:m,helperTextId:l}=b({providedId:y,prefix:"radio"}),{hasGroupHelperText:H,"aria-describedby":w}=u(),s=!H&&t!==void 0;return o(n,{asChild:!0,"data-testid":T,...{flex:C,flexBasis:G,flexShrink:h,flexGrow:B},children:o(x.Item,{ref:F,className:p(T,N),...E,id:d,"aria-describedby":s?l:w,"aria-labelledby":a||(r?m:void 0),children:i("div",{className:e("RadioContainer"),children:[o("div",{className:e("RadioItem"),children:o(x.Indicator,{className:e("RadioIndicator")})}),i(c,{direction:"column",alignItems:"start",children:[i(R,{id:m,htmlFor:d,disableUserSelect:!0,children:[P,r]}),s?o(f,{id:l,disableUserSelect:!0,children:t}):null,v]})]})})})});O.displayName=I;export{O as a};
|
|
4
|
+
//# sourceMappingURL=chunk-Q4RSQ375.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkB2HYSLUXcjs = require('./chunk-B2HYSLUX.cjs');var _chunk5C5LNNUHcjs = require('./chunk-5C5LNNUH.cjs');var _chunkHI7GZDRAcjs = require('./chunk-HI7GZDRA.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkHIF6HKZ3cjs = require('./chunk-HIF6HKZ3.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var T="VerificationInput",n=_chunk4Q432K4Wcjs.b.call(void 0, T),A= exports.a =_react.forwardRef.call(void 0, (N,O)=>{let{className:V,disabled:a,readOnly:d,label:x,labelVariant:F,helperText:s,validationText:l,validationStatus:e,required:R,id:w,"aria-describedby":h,...E}=_chunkZPJNQBTNcjs.a.call(void 0, N,_chunkHI7GZDRAcjs.a),{id:S,labelId:m,helperTextId:p,validationTextId:r}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:w,prefix:"verification-input"}),i=!d&&!a,C={id:S,labelId:m,helperTextId:p,validationTextId:r,label:x,labelVariant:F,helperText:s,validationText:i?l:void 0,validationStatus:i?e:void 0,required:R},D=_chunkHIF6HKZ3cjs.a.call(void 0, h,s?p:void 0,i&&l!==void 0?r:void 0);return _jsxruntime.jsx.call(void 0, _chunk5C5LNNUHcjs.a,{className:_chunkONNSZMWFcjs.a.call(void 0, n,V),"data-disabled":a?"":void 0,"data-testid":n,...C,children:_jsxruntime.jsxs.call(void 0, _radixui.unstable_OneTimePasswordField.Root,{className:`${n}Root`,disabled:a,readOnly:d,"aria-labelledby":m,"aria-describedby":D,"aria-invalid":e==="invalid"?!0:void 0,"aria-errormessage":e==="invalid"?r:void 0,"data-validation-status":i?e:void 0,...E,children:[Array.from({length:6}).map((B,_)=>_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.Input,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkB2HYSLUXcjs.a,{})},_)),_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.HiddenInput,{ref:O})]})})});A.displayName=T;exports.a = A;
|
|
4
|
+
//# sourceMappingURL=chunk-Q6RJ4LCJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-Q6RJ4LCJ.cjs","../src/components/VerificationInput/VerificationInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","VerificationInput","forwardRef","props","ref","className","disabled","readOnly","label","labelVariant","helperText","validationText","validationStatus","required","providedId","ariaDescribedby","verificationInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValid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ClD,gBAAA,CAAkBa,CAAAA,CAAiBZ,CAAAA,CAAmB,KAAA,CAAA,CACtD,QAAA,CAAAC,CACF,CAAA,CAEMa,CAAAA,CAAuBC,iCAAAA,CAC3BZ,CACEL,CAAAA,CAAaW,CAAAA,CAAe,KAAA,CAAA,CAC9BG,CAAAA,EAAkBb,CAAAA,GAAmB,KAAA,CAAA,CAAYW,CAAAA,CAAmB,KAAA,CACtE,CAAA,CAIA,OACEM,6BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAG/B,CAAoBM,CAAS,CAAA,CAC3C,eAAA,CAAeC,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAC/B,aAAA,CAAaP,CAAAA,CACZ,GAAG0B,CAAAA,CAEJ,QAAA,CAAAM,8BAAAA,sCAACC,CAA8B,IAAA,CAA9B,CACC,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-Q6RJ4LCJ.cjs","sourcesContent":[null,"'use client';\n\nimport { unstable_OneTimePasswordField as OneTimePasswordFieldPrimitive } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VerificationInputProps } from './VerificationInput.props';\nimport { FormField } from '../FormField/FormField';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { cn } from '../../helpers/cn';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'VerificationInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport type VerificationInputElement = ComponentRef<'input'>;\n\nexport const VerificationInput = forwardRef<VerificationInputElement, VerificationInputProps>(\n (props, ref) => {\n const {\n className,\n disabled,\n readOnly,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n required,\n id: providedId,\n 'aria-describedby': ariaDescribedby,\n ...verificationInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'verification-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n const PASSWORD_LENGTH = 6;\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n data-testid={componentClassName}\n {...formFieldProps}\n >\n <OneTimePasswordFieldPrimitive.Root\n className={`${componentClassName}Root`}\n disabled={disabled}\n readOnly={readOnly}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-validation-status={showValidation ? validationStatus : undefined}\n {...verificationInputProps}\n >\n {Array.from({ length: PASSWORD_LENGTH }).map((_, i) => (\n <OneTimePasswordFieldPrimitive.Input key={i} asChild>\n <InputBase />\n </OneTimePasswordFieldPrimitive.Input>\n ))}\n\n <OneTimePasswordFieldPrimitive.HiddenInput ref={ref} />\n </OneTimePasswordFieldPrimitive.Root>\n </FormField>\n );\n }\n);\n\nVerificationInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
+
|
|
3
|
+
var _chunkHQJPRWDOcjs = require('./chunk-HQJPRWDO.cjs');var _chunkHI7GZDRAcjs = require('./chunk-HI7GZDRA.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var s="ChipGroup",l=_chunk4Q432K4Wcjs.b.call(void 0, s),b= exports.a =_react.forwardRef.call(void 0, (n,d)=>{let{className:f,children:c,label:o,"aria-labelledby":u,...h}=_chunkZPJNQBTNcjs.a.call(void 0, n,_chunkHI7GZDRAcjs.a),{labelId:r}=_chunkRIHABKWYcjs.a.call(void 0, {prefix:"chip-group"});return _jsxruntime.jsxs.call(void 0, "div",{ref:d,className:_chunkONNSZMWFcjs.a.call(void 0, l,f),role:"group","aria-labelledby":_nullishCoalesce(u, () => ((o?r:void 0))),"data-testid":l,...h,children:[o?_jsxruntime.jsx.call(void 0, _chunkHQJPRWDOcjs.a,{as:"span",weight:"semibold",id:r,children:o}):null,c]})});b.displayName=s;exports.a = b;
|
|
4
|
+
//# sourceMappingURL=chunk-QL5D7DXU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-QL5D7DXU.cjs","../src/components/Chip/ChipGroup.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ChipGroup","forwardRef","props","ref","className","children","label","ariaLabelledby","chipGroupProps","extractProps","marginPropDefs","labelId","useIds","jsxs","cn","jsx","BodyText"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,wDAAyC,8BCArN,+CAiCvB,IAvBEA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAW7CC,CAAAA,aAAYC,+BAAAA,CAA8CC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACpF,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaP,CAAOQ,mBAAc,CAAA,CAChC,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,YAAa,CAAC,CAAA,CAEnD,OACEC,8BAAAA,KAAC,CAAA,CACC,GAAA,CAAKV,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAGhB,CAAoBM,CAAS,CAAA,CAC3C,IAAA,CAAK,OAAA,CACL,iBAAA,kBAAiBG,CAAAA,SAAAA,CAAmBD,CAAAA,CAAQK,CAAAA,CAAU,KAAA,CAAA,GAAA,CACtD,aAAA,CAAab,CAAAA,CACZ,GAAGU,CAAAA,CAEH,QAAA,CAAA,CAAAF,CAAAA,CACCS,6BAAAA,mBAACC,CAAA,CAAS,EAAA,CAAG,MAAA,CAAO,MAAA,CAAO,UAAA,CAAW,EAAA,CAAIL,CAAAA,CACvC,QAAA,CAAAL,CAAAA,CACH,CAAA,CACE,IAAA,CACHD,CAAAA,CAAAA,CACH,CAEJ,CAAC,CAAA,CAEDL,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-QL5D7DXU.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { useIds } from '../../hooks/use-ids';\nimport { BodyText } from '../BodyText/BodyText';\nimport type { ChipGroupProps } from './ChipGroup.props';\n\nconst COMPONENT_NAME = 'ChipGroup';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ChipGroupElement = ComponentRef<'div'>;\n\n/**\n * Use ChipGroup to lay out a collection of `Chip` components, such as the\n * filters currently applied to a list of results. Pass `label` to introduce\n * the group, e.g. \"Currently showing:\".\n *\n * @summary A wrapping layout container for a collection of `Chip` components.\n */\nexport const ChipGroup = forwardRef<ChipGroupElement, ChipGroupProps>((props, ref) => {\n const {\n className,\n children,\n label,\n 'aria-labelledby': ariaLabelledby,\n ...chipGroupProps\n } = extractProps(props, marginPropDefs);\n const { labelId } = useIds({ prefix: 'chip-group' });\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n role=\"group\"\n aria-labelledby={ariaLabelledby ?? (label ? labelId : undefined)}\n data-testid={componentClassName}\n {...chipGroupProps}\n >\n {label ? (\n <BodyText as=\"span\" weight=\"semibold\" id={labelId}>\n {label}\n </BodyText>\n ) : null}\n {children}\n </div>\n );\n});\n\nChipGroup.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var _chunkEU7QBTGKcjs = require('./chunk-EU7QBTGK.cjs');var _chunkZL54LQXAcjs = require('./chunk-ZL54LQXA.cjs');var _chunkDXGYPSJKcjs = require('./chunk-DXGYPSJK.cjs');var _chunkDCIZY622cjs = require('./chunk-DCIZY622.cjs');var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkEU7QBTGKcjs = require('./chunk-EU7QBTGK.cjs');var _chunkZL54LQXAcjs = require('./chunk-ZL54LQXA.cjs');var _chunkDXGYPSJKcjs = require('./chunk-DXGYPSJK.cjs');var _chunkDCIZY622cjs = require('./chunk-DCIZY622.cjs');var _chunkHBCCX6CCcjs = require('./chunk-HBCCX6CC.cjs');var _chunkDX6AO37Jcjs = require('./chunk-DX6AO37J.cjs');var _chunkHQJPRWDOcjs = require('./chunk-HQJPRWDO.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var D="Modal",i=_chunk4Q432K4Wcjs.b.call(void 0, D),A= exports.a =_react.forwardRef.call(void 0, ({className:M,image:v,forceMount:x,container:h,heading:B,description:t,hideCloseButton:f,fullScreen:I,loading:l,loadingText:r,loadingHeading:n,loadingDescription:s,children:$,...b},O)=>{let T={forceMount:x,container:h},u=!!v,w=!!(l?(r||n)&&s:t);return _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal,{...T,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Overlay,{className:_chunk4Q432K4Wcjs.b.call(void 0, "Overlay"),children:_jsxruntime.jsx.call(void 0, "div",{className:`${i}Scroll`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${i}ScrollPadding`,children:_jsxruntime.jsxs.call(void 0, _radixui.Dialog.Content,{ref:O,className:_chunkONNSZMWFcjs.a.call(void 0, i,M),"data-contains-image":u?"":void 0,"data-hide-close-button":f?"":void 0,"data-full-screen":I?"":void 0,"data-testid":i,...w?{}:{"aria-describedby":void 0},...b,children:[_jsxruntime.jsx.call(void 0, _chunkEU7QBTGKcjs.a,{children:_jsxruntime.jsx.call(void 0, _chunkZL54LQXAcjs.a,{type:"button",label:"Close","data-visually-hidden":f?"":void 0,className:`${i}CloseIconButton`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseMediumIcon,{})})}),_jsxruntime.jsxs.call(void 0, "div",{className:`${i}OuterContainer`,children:[l?null:_jsxruntime.jsxs.call(void 0, "div",{className:`${i}InnerContainer`,children:[u?_jsxruntime.jsx.call(void 0, "div",{className:`${i}Image`,children:v}):null,_jsxruntime.jsxs.call(void 0, "div",{className:`${i}Header`,children:[_jsxruntime.jsx.call(void 0, _chunkDX6AO37Jcjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkDCIZY622cjs.a,{size:"lg",textWrap:"wrap",children:B})})}),t?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkHQJPRWDOcjs.a,{size:"md",as:"span",children:t})}):null]})]}),l?_jsxruntime.jsxs.call(void 0, _chunkHBCCX6CCcjs.a,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[_jsxruntime.jsx.call(void 0, _chunkDXGYPSJKcjs.a,{size:"lg"}),_jsxruntime.jsxs.call(void 0, "div",{className:`${i}LoadingHeader`,children:[_jsxruntime.jsx.call(void 0, _chunkDX6AO37Jcjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkDCIZY622cjs.a,{size:"lg",textAlign:"center",textWrap:"wrap",children:n||r||"Loading"})})}),(r||n)&&s?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkHQJPRWDOcjs.a,{size:"md",as:"span",textAlign:"center",children:s})}):null]})]}):$]})]})})})})})});A.displayName=D;exports.a = A;
|
|
4
|
+
//# sourceMappingURL=chunk-QPJVK2SM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-QPJVK2SM.cjs","../src/components/Modal/Modal.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","forwardRef","className","image","forceMount","container","heading","description","hideCloseButton","fullScreen","loading","loadingText","loadingHeading","loadingDescription","children","props","ref","portalProps","containsImage","hasDescription","jsx","DialogPrimitive"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCAtU,wEAMV,8BAML,+CAwDP,IArDdA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAQC,+BAAAA,CAEjB,CACE,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAc,CAAE,UAAA,CAAAb,CAAAA,CAAY,SAAA,CAAAC,CAAU,CAAA,CACtCa,CAAAA,CAAgB,CAAA,CAAQf,CAAAA,CACxBgB,CAAAA,CAAiB,CAAA,CAAA,CACrBT,CAAAA,CAAAA,CAAWC,CAAAA,EAAeC,CAAAA,CAAAA,EAAmBC,CAAAA,CAAqBN,CAAAA,CAAAA,CAGpE,OACEa,6BAAAA,eAACC,CAAgB,MAAA,CAAhB,CAAwB,GAAGJ,CAAAA,CAC1B,QAAA,CAAAG,6BAAAA,eAACC,CAAgB,OAAA,CAAhB,CAAwB,SAAA,CAAWtB,iCAAAA,SAA0B,CAAA,CAC5D,QAAA,CAAAqB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-QPJVK2SM.cjs","sourcesContent":[null,"'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ModalProps } from './Modal.props';\nimport { Heading } from '../Heading/Heading';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { CloseMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { ModalClose } from './ModalClose';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\nimport { Spinner } from '../Spinner/Spinner';\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'Modal';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ModalElement = ComponentRef<'div'>;\n\nexport const Modal = forwardRef<ModalElement, ModalProps>(\n (\n {\n className,\n image,\n forceMount,\n container,\n heading,\n description,\n hideCloseButton,\n fullScreen,\n loading,\n loadingText,\n loadingHeading,\n loadingDescription,\n children,\n ...props\n },\n ref\n ) => {\n const portalProps = { forceMount, container };\n const containsImage = Boolean(image);\n const hasDescription = Boolean(\n loading ? (loadingText || loadingHeading) && loadingDescription : description\n );\n\n return (\n <DialogPrimitive.Portal {...portalProps}>\n <DialogPrimitive.Overlay className={withGlobalPrefix('Overlay')}>\n <div className={`${componentClassName}Scroll`}>\n <div className={`${componentClassName}ScrollPadding`}>\n <DialogPrimitive.Content\n ref={ref}\n className={cn(componentClassName, className)}\n data-contains-image={containsImage ? '' : undefined}\n data-hide-close-button={hideCloseButton ? '' : undefined}\n data-full-screen={fullScreen ? '' : undefined}\n data-testid={componentClassName}\n {...(hasDescription ? {} : { 'aria-describedby': undefined })}\n {...props}\n >\n <ModalClose>\n <UnstyledIconButton\n type=\"button\"\n label=\"Close\"\n data-visually-hidden={hideCloseButton ? '' : undefined}\n className={`${componentClassName}CloseIconButton`}\n >\n <CloseMediumIcon />\n </UnstyledIconButton>\n </ModalClose>\n <div className={`${componentClassName}OuterContainer`}>\n {!loading ? (\n <div className={`${componentClassName}InnerContainer`}>\n {containsImage ? (\n <div className={`${componentClassName}Image`}>{image}</div>\n ) : null}\n <div className={`${componentClassName}Header`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textWrap=\"wrap\">\n {heading}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {description ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\">\n {description}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </div>\n ) : null}\n\n {loading ? (\n <Flex\n direction=\"column\"\n gap=\"300\"\n alignItems=\"center\"\n paddingY=\"200\"\n width=\"100%\"\n >\n <Spinner size=\"lg\" />\n <div className={`${componentClassName}LoadingHeader`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textAlign=\"center\" textWrap=\"wrap\">\n {loadingHeading || loadingText || 'Loading'}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {(loadingText || loadingHeading) && loadingDescription ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\" textAlign=\"center\">\n {loadingDescription}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </Flex>\n ) : (\n children\n )}\n </div>\n </DialogPrimitive.Content>\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n );\n }\n);\n\nModal.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkDD76PFTKcjs = require('./chunk-DD76PFTK.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkZL54LQXAcjs = require('./chunk-ZL54LQXA.cjs');var _chunkDXGYPSJKcjs = require('./chunk-DXGYPSJK.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var f="SearchInput",a=_chunk4Q432K4Wcjs.b.call(void 0, f),L= exports.a =_react.forwardRef.call(void 0, ({className:I,disabled:p,value:o,onClear:r,loading:d,hideLabel:h=!0,helperText:S,id:y,...x},b)=>{let e=_react.useRef.call(void 0, null),E=_useMergedRefs.useMergedRefs.call(void 0, b,e),M=_react.useCallback.call(void 0, N=>{typeof r!="function"||N.button!==0||(r(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,r]),{id:B}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:y,prefix:"search-input"});return _jsxruntime.jsxs.call(void 0, _chunkDD76PFTKcjs.a,{ref:E,className:_chunkONNSZMWFcjs.a.call(void 0, a,I),type:"search",enterKeyHint:"search",disabled:p,hideLabel:h,helperText:S,value:o,id:B,"data-testid":a,...x,children:[_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _hearthreacticons.SearchMediumIcon,{})}),d?_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkDXGYPSJKcjs.a,{size:"xs",color:"primary"})}):null,o!==void 0&&String(o).length>0?_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkZL54LQXAcjs.a,{type:"button",label:"clear search",onClick:M,disabled:p,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{})})}):null]})});L.displayName=f;exports.a = L;
|
|
4
|
+
//# sourceMappingURL=chunk-QQNBA5L4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-QQNBA5L4.cjs","../src/components/SearchInput/SearchInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SearchInput","forwardRef","className","disabled","value","onClear","loading","hideLabel","helperText","providedId","props","forwardedRef","internalRef","useRef","inputRef","useMergedRefs","handleClear","useCallback","event","id","useIds","jsxs","TextInput","cn","jsx","InputSlot","SearchMediumIcon","Spinner","UnstyledIconButton","CloseSmallIcon"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wECO7O,8BAED,6DAGlB,+CAwCxB,IAtCAA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAcC,+BAAAA,CAEvB,CACE,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CAAY,CAAA,CAAA,CACZ,UAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAcC,2BAAAA,IAAoC,CAAA,CAClDC,CAAAA,CAAWC,0CAAAA,CAAcJ,CAAcC,CAAW,CAAA,CAElDI,CAAAA,CAAcC,gCAAAA,CACjBC,EAAyC,CACpC,OAAOb,CAAAA,EAAY,UAAA,EAAca,CAAAA,CAAM,MAAA,GAAW,CAAA,EAAA,CAGtDb,CAAAA,CAAQ,CAAA,CAEJO,CAAAA,EAAe,OAAOA,CAAAA,EAAgB,QAAA,EAAYA,CAAAA,CAAY,OAAA,EAChEA,CAAAA,CAAY,OAAA,CAAQ,KAAA,CAAM,CAAA,CAE9B,CAAA,CACA,CAACA,CAAAA,CAAaP,CAAO,CACvB,CAAA,CAEM,CAAE,EAAA,CAAA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"/home/runner/work/hearth/hearth/packages/react/dist/chunk-QQNBA5L4.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport type { SearchInputProps } from './SearchInput.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { CloseSmallIcon, SearchMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport { forwardRef, useRef, useCallback } from 'react';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport type { MouseEvent } from 'react';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'SearchInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const SearchInput = forwardRef<InputBaseElement, SearchInputProps>(\n (\n {\n className,\n disabled,\n value,\n onClear,\n loading,\n hideLabel = true,\n helperText,\n id: providedId,\n ...props\n },\n forwardedRef\n ) => {\n const internalRef = useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const handleClear = useCallback(\n (event: MouseEvent<HTMLButtonElement>) => {\n if (typeof onClear !== 'function' || event.button !== 0) {\n return;\n }\n onClear();\n\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n internalRef.current.focus();\n }\n },\n [internalRef, onClear]\n );\n\n const { id } = useIds({ providedId, prefix: 'search-input' });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"search\"\n enterKeyHint=\"search\"\n disabled={disabled}\n hideLabel={hideLabel}\n helperText={helperText}\n value={value}\n id={id}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <SearchMediumIcon />\n </InputSlot>\n {loading ? (\n <InputSlot placement=\"suffix\">\n <Spinner size=\"xs\" color=\"primary\" />\n </InputSlot>\n ) : null}\n {value !== undefined && String(value).length > 0 ? (\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"clear search\"\n onClick={handleClear}\n disabled={disabled}\n >\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n ) : null}\n </TextInput>\n );\n }\n);\n\nSearchInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as x}from"./chunk-ZL7L2WXW.js";import{a as T}from"./chunk-OTUWE44X.js";import{a as c}from"./chunk-KBX2N5VR.js";import{a as b}from"./chunk-7X24J4CX.js";import{a as I}from"./chunk-VKE2TXPE.js";import{a as f}from"./chunk-KGEVWEVL.js";import{a as m}from"./chunk-J3AJBV4B.js";import{b as u}from"./chunk-PDEVCIQ3.js";import{forwardRef as S}from"react";import{jsx as h}from"react/jsx-runtime";var v="TextInput",y=u(v),k=S((P,N)=>{let{className:B,validationStatus:i,validationText:d,label:F,labelVariant:E,helperText:r,children:O,id:g,disabled:e,readOnly:n,hideLabel:w,required:o,placeholder:C,"aria-describedby":D,...V}=f(P,c),{id:l,labelId:s,helperTextId:p,validationTextId:a}=b({providedId:g,prefix:"text-input"}),t=!n&&!e,q={id:l,labelId:s,helperTextId:p,validationTextId:a,label:F,labelVariant:E,helperText:r,validationText:t?d:void 0,validationStatus:t?i:void 0,hideLabel:w,required:o},M=I(D,r?p:void 0,t&&d!==void 0?a:void 0);return h(T,{className:m(y,B),"data-disabled":e?"":void 0,"data-testid":y,...q,children:h(x,{ref:N,spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:C,"aria-labelledby":s,"aria-describedby":M,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?a:void 0,...V,children:O})})});k.displayName=v;export{k as a};
|
|
4
|
+
//# sourceMappingURL=chunk-QQSZD3WU.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import{a as p}from"./chunk-KBX2N5VR.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as t}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as b}from"react";import{CloseSmallIcon as h}from"@utilitywarehouse/hearth-react-icons";import{jsx as N,jsxs as P}from"react/jsx-runtime";var n="Chip",a=r(n),u=b((m,l)=>{let{className:s,children:o,disabled:e,onClick:f,"aria-label":c,...d}=i(m,p),C=typeof o=="string"?`Remove ${o} filter`:void 0;return P("button",{ref:l,className:t(a,s),"aria-disabled":e||void 0,"aria-label":c??C,onClick:e?void 0:f,type:"button","data-testid":a,...d,children:[o,N(h,{})]})});u.displayName=n;export{u as a};
|
|
4
|
+
//# sourceMappingURL=chunk-QTXKSQ7K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Chip/Chip.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { CloseSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport type { ChipProps } from './Chip.props';\n\nconst COMPONENT_NAME = 'Chip';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ChipElement = ComponentRef<'button'>;\n\n/**\n * Use Chip to represent an input, attribute, or filter that a user can remove\n * with a single click. Commonly used to show active filters applied to a list\n * of results.\n *\n * @summary A compact, removable element representing an active filter or attribute.\n */\nexport const Chip = forwardRef<ChipElement, ChipProps>((props, ref) => {\n const {\n className,\n children,\n disabled,\n onClick,\n 'aria-label': ariaLabel,\n ...chipProps\n } = extractProps(props, marginPropDefs);\n\n // A Chip's only interaction is removal, so its accessible name should say\n // so rather than just repeating the visible label.\n // Pass `aria-label` to override this for a different action or wording.\n const defaultAriaLabel = typeof children === 'string' ? `Remove ${children} filter` : undefined;\n\n return (\n <button\n ref={ref}\n className={cn(componentClassName, className)}\n aria-disabled={disabled || undefined}\n aria-label={ariaLabel ?? defaultAriaLabel}\n onClick={disabled ? undefined : onClick}\n type=\"button\"\n data-testid={componentClassName}\n {...chipProps}\n >\n {children}\n <CloseSmallIcon />\n </button>\n );\n});\n\nChip.displayName = COMPONENT_NAME;\n"],"mappings":";;gKAEA,OAAS,cAAAA,MAAkB,QAE3B,OAAS,kBAAAC,MAAsB,uCAmC3B,OAWE,OAAAC,EAXF,QAAAC,MAAA,oBA5BJ,IAAMC,EAAiB,OACjBC,EAAqBC,EAAiBF,CAAc,EAW7CG,EAAOC,EAAmC,CAACC,EAAOC,IAAQ,CACrE,GAAM,CACJ,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,QAAAC,EACA,aAAcC,EACd,GAAGC,CACL,EAAIC,EAAaR,EAAOS,CAAc,EAKhCC,EAAmB,OAAOP,GAAa,SAAW,UAAUA,CAAQ,UAAY,OAEtF,OACET,EAAC,UACC,IAAKO,EACL,UAAWU,EAAGf,EAAoBM,CAAS,EAC3C,gBAAeE,GAAY,OAC3B,aAAYE,GAAaI,EACzB,QAASN,EAAW,OAAYC,EAChC,KAAK,SACL,cAAaT,EACZ,GAAGW,EAEH,UAAAJ,EACDV,EAACmB,EAAA,EAAe,GAClB,CAEJ,CAAC,EAEDd,EAAK,YAAcH","names":["forwardRef","CloseSmallIcon","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","Chip","forwardRef","props","ref","className","children","disabled","onClick","ariaLabel","chipProps","extractProps","marginPropDefs","defaultAriaLabel","cn","CloseSmallIcon"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var _chunkGTCSSEXIcjs = require('./chunk-GTCSSEXI.cjs');var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkGTCSSEXIcjs = require('./chunk-GTCSSEXI.cjs');var _chunkUIJQN3ZYcjs = require('./chunk-UIJQN3ZY.cjs');var _chunkDCIZY622cjs = require('./chunk-DCIZY622.cjs');var _chunkHBCCX6CCcjs = require('./chunk-HBCCX6CC.cjs');var _chunkDX6AO37Jcjs = require('./chunk-DX6AO37J.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var H="SectionHeader",o=_chunk4Q432K4Wcjs.b.call(void 0, H),P= exports.a =_react.forwardRef.call(void 0, ({className:x,heading:N,id:C,headingElement:E="div",helperText:t,trailingContent:n,validationText:r,validationStatus:i,direction:S,...u},T)=>{let g=i!==void 0&&r!==void 0;return _jsxruntime.jsxs.call(void 0, _chunkHBCCX6CCcjs.a,{ref:T,className:_chunkONNSZMWFcjs.a.call(void 0, o,x),direction:S,"data-testid":o,...u,children:[_jsxruntime.jsxs.call(void 0, _chunkDX6AO37Jcjs.a,{className:`${o}Content`,children:[_jsxruntime.jsx.call(void 0, _chunkDCIZY622cjs.a,{asChild:!0,size:"md",id:C,children:_jsxruntime.jsx.call(void 0, E,{children:N})}),t?_jsxruntime.jsx.call(void 0, _chunkUIJQN3ZYcjs.a,{children:t}):null,g?_jsxruntime.jsx.call(void 0, _chunkGTCSSEXIcjs.a,{status:i,children:r}):null]}),n?_jsxruntime.jsx.call(void 0, "span",{className:`${o}TrailingContent`,children:n}):null]})});P.displayName=H;exports.a = P;
|
|
4
|
+
//# sourceMappingURL=chunk-R3U62QUJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-R3U62QUJ.cjs","../src/components/SectionHeader/SectionHeader.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SectionHeader","forwardRef","className","heading","id","HeadingEl","helperText","trailingContent","validationText","validationStatus","direction","props","ref","showValidationText","jsxs","Flex","cn","Box"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCFnQ,+CA0CnB,IA/BFA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAgBC,+BAAAA,CAEzB,CACE,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,EAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAAY,KAAA,CAC5B,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAqBJ,CAAAA,GAAqB,KAAA,CAAA,EAAaD,CAAAA,GAAmB,KAAA,CAAA,CAEhF,OACEM,8BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWI,iCAAAA,CAAGlB,CAAoBI,CAAS,CAAA,CAC3C,SAAA,CAAWQ,CAAAA,CACX,aAAA,CAAaZ,CAAAA,CACZ,GAAGa,CAAAA,CAEJ,QAAA,CAAA,CAAAG,8BAAAA,mBAACG,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-R3U62QUJ.cjs","sourcesContent":[null,"import { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Heading } from '../Heading/Heading';\nimport { HelperText } from '../HelperText/HelperText';\nimport type { SectionHeaderProps } from './SectionHeader.props';\nimport { ValidationText } from '../ValidationText/ValidationText';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\n\nconst COMPONENT_NAME = 'SectionHeader';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SectionHeaderElement = ComponentRef<'div'>;\n\nexport const SectionHeader = forwardRef<SectionHeaderElement, SectionHeaderProps>(\n (\n {\n className,\n heading,\n id,\n headingElement: HeadingEl = 'div',\n helperText,\n trailingContent,\n validationText,\n validationStatus,\n direction,\n ...props\n },\n ref\n ) => {\n const showValidationText = validationStatus !== undefined && validationText !== undefined;\n\n return (\n <Flex\n ref={ref}\n className={cn(componentClassName, className)}\n direction={direction}\n data-testid={componentClassName}\n {...props}\n >\n <Box className={`${componentClassName}Content`}>\n <Heading asChild size=\"md\" id={id}>\n <HeadingEl>{heading}</HeadingEl>\n </Heading>\n {helperText ? <HelperText>{helperText}</HelperText> : null}\n {showValidationText ? (\n <ValidationText status={validationStatus}>{validationText}</ValidationText>\n ) : null}\n </Box>\n\n {trailingContent ? (\n <span className={`${componentClassName}TrailingContent`}>{trailingContent}</span>\n ) : null}\n </Flex>\n );\n }\n);\n\nSectionHeader.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as h}from"./chunk-36JFAVTL.js";import{a as N}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as h}from"./chunk-36JFAVTL.js";import{a as N}from"./chunk-6LWA5AVL.js";import{a as L}from"./chunk-BMUDU7FZ.js";import{a as u}from"./chunk-KBX2N5VR.js";import{a as C}from"./chunk-7X24J4CX.js";import{a as g}from"./chunk-KGEVWEVL.js";import{a as c}from"./chunk-J3AJBV4B.js";import{b}from"./chunk-PDEVCIQ3.js";import{forwardRef as M}from"react";import{jsx as e,jsxs as V}from"react/jsx-runtime";var y="List",a=b(y),O=M((P,o)=>{let{id:v,as:t="ul",className:x,colorScheme:r=void 0,variant:n,heading:i,headingElement:T,helperText:E,trailingContent:H,validationText:S,validationStatus:B,children:l,paddingNone:I,"aria-label":d,"aria-labelledby":R,...s}=g(P,u),w={heading:i,headingElement:T,helperText:E,trailingContent:H,validationText:S,validationStatus:B},{id:m,labelId:p}=C({providedId:v,prefix:"list"}),f={"aria-label":d,"aria-labelledby":R??(!!i&&!d?p:void 0),"data-padding-none":I?"":void 0};return V("div",{className:c(a,x),"data-testid":a,children:[i?e(N,{id:p,...w}):null,n===void 0||r===void 0?e(L,{asChild:!0,id:m,className:`${a}Container`,role:"list",...f,children:e(t,{ref:o,...s,children:l})}):e(h,{className:`${a}Container`,paddingNone:!0,variant:n,colorScheme:r,children:e(t,{ref:o,role:"list",id:m,...s,...f,children:l})})]})});O.displayName=y;export{O as a};
|
|
4
|
+
//# sourceMappingURL=chunk-RBRFHUML.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as v}from"./chunk-CK65ZXRX.js";import{a as g}from"./chunk-7YDX3DDW.js";import{a as B}from"./chunk-A2L377NY.js";import{a as u}from"./chunk-KBX2N5VR.js";import{a as P}from"./chunk-7X24J4CX.js";import{a as d}from"./chunk-32MOX6DL.js";import{a as f}from"./chunk-KGEVWEVL.js";import{a as n}from"./chunk-J3AJBV4B.js";import{b as c}from"./chunk-PDEVCIQ3.js";import{forwardRef as R}from"react";import{jsx as b,jsxs as I}from"react/jsx-runtime";var N="ProgressBar",x=c(N),D=R((h,y)=>{let{className:C,variant:o="linear",colorScheme:s="default",value:T,min:e=0,max:r=100,label:E,formatValueText:t,"aria-valuetext":M,hideLabel:V,...w}=f(h,g,u),{labelId:l}=P({prefix:"progress"}),a=s==="success"?r:Math.max(e,Math.min(T,r)),m=d(a,e,r),i=t?t(a):`${m}%`,p={value:m,label:E,valueText:i,labelId:l,hideLabel:V};return I("div",{ref:y,className:n(x,C),role:"progressbar","aria-valuenow":a,"aria-valuemin":e,"aria-valuemax":r,"aria-valuetext":M||i,"aria-labelledby":l,"data-colorscheme":s,"data-testid":x,...w,children:[o==="linear"?b(v,{...p}):null,o==="circular"?b(B,{...p}):null]})});D.displayName=N;export{D as a};
|
|
4
|
+
//# sourceMappingURL=chunk-RHJTLHTA.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as n}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as n}from"./chunk-IE6LO4K2.js";import{a as o}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{forwardRef as m}from"react";import{jsx as f}from"react/jsx-runtime";var t="TablePagination",p=a(t),l=m(({className:e,...i},r)=>f(n,{ref:r,className:o(p,e),...i,as:"div"}));l.displayName=t;export{l as a};
|
|
4
|
+
//# sourceMappingURL=chunk-T74XRDWT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkR3U62QUJcjs = require('./chunk-R3U62QUJ.cjs');var _chunkHI7GZDRAcjs = require('./chunk-HI7GZDRA.cjs');var _chunkZPJNQBTNcjs = require('./chunk-ZPJNQBTN.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var d="ExpandableCardGroup",n=_chunk4Q432K4Wcjs.b.call(void 0, d),h= exports.a =_react.forwardRef.call(void 0, (m,i)=>{let{className:l,heading:e,headingElement:s="h2",helperText:f,trailingContent:C,children:E,...c}=_chunkZPJNQBTNcjs.a.call(void 0, m,_chunkHI7GZDRAcjs.a);return _jsxruntime.jsxs.call(void 0, "div",{ref:i,className:_chunkONNSZMWFcjs.a.call(void 0, n,l),"data-testid":n,...c,children:[e?_jsxruntime.jsx.call(void 0, _chunkR3U62QUJcjs.a,{heading:e,headingElement:s,helperText:f,trailingContent:C}):null,E]})});h.displayName=d;exports.a = h;
|
|
4
|
+
//# sourceMappingURL=chunk-TKI2FGBE.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-TKI2FGBE.cjs","../src/components/ExpandableCard/ExpandableCardGroup.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ExpandableCardGroup","forwardRef","props","ref","className","heading","headingElement","helperText","trailingContent","children","restProps","extractProps","marginPropDefs","jsxs","cn","jsx","SectionHeader"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,8BCA5K,+CA2BrB,IAlBAA,CAAAA,CAAiB,qBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAsBC,+BAAAA,CAChCC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,IAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaT,CAAOU,mBAAc,CAAA,CAEtC,OACEC,8BAAAA,KAAC,CAAA,CACC,GAAA,CAAKV,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAGhB,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGY,CAAAA,CAEH,QAAA,CAAA,CAAAL,CAAAA,CACCU,6BAAAA,mBAACC,CAAA,CACC,OAAA,CAASX,CAAAA,CACT,cAAA,CAAgBC,CAAAA,CAChB,UAAA,CAAYC,CAAAA,CACZ,eAAA,CAAiBC,CAAAA,CACnB,CAAA,CACE,IAAA,CACHC,CAAAA,CAAAA,CACH,CAEJ,CACF,CAAA,CAEAT,CAAAA,CAAoB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-TKI2FGBE.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport type { ExpandableCardGroupProps } from './ExpandableCardGroup.props';\nimport { SectionHeader } from '../SectionHeader/SectionHeader';\n\nconst COMPONENT_NAME = 'ExpandableCardGroup';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype ExpandableCardGroupElement = ComponentRef<'div'>;\n\nexport const ExpandableCardGroup = forwardRef<ExpandableCardGroupElement, ExpandableCardGroupProps>(\n (props, ref) => {\n const {\n className,\n heading,\n headingElement = 'h2',\n helperText,\n trailingContent,\n children,\n ...restProps\n } = extractProps(props, marginPropDefs);\n\n return (\n <div\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...restProps}\n >\n {heading ? (\n <SectionHeader\n heading={heading}\n headingElement={headingElement}\n helperText={helperText}\n trailingContent={trailingContent}\n />\n ) : null}\n {children}\n </div>\n );\n }\n);\n\nExpandableCardGroup.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkDD76PFTKcjs = require('./chunk-DD76PFTK.cjs');var _chunkIAFYIHVPcjs = require('./chunk-IAFYIHVP.cjs');var _chunkZL54LQXAcjs = require('./chunk-ZL54LQXA.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var w="PasswordInput",I=_chunk4Q432K4Wcjs.b.call(void 0, w),L= exports.a =_react.forwardRef.call(void 0, ({className:E,disabled:r,id:v,...M},P)=>{let e=_react.useRef.call(void 0, null),S=_useMergedRefs.useMergedRefs.call(void 0, P,e),[s,l]=_react.useState.call(void 0, !1),[i,a]=_react.useState.call(void 0, !1),h=_react.useCallback.call(void 0, ()=>{let t=!s,n=!i;l(t),a(n)},[s,i]);_react.useEffect.call(void 0, ()=>{let t=null;e&&typeof e=="object"&&e.current&&(t=e.current);let n=()=>{_optionalChain([t, 'optionalAccess', _ => _.type])&&(t.type="password",l(!1))};return t&&t.form!==null&&t.form.addEventListener("submit",n),()=>{_optionalChain([t, 'optionalAccess', _2 => _2.form])&&t.form.removeEventListener("submit",n)}},[e]);let g=`Your password is ${s?"shown":"hidden"}!`;_react.useEffect.call(void 0, ()=>{setTimeout(()=>{a(!1)},1500)},[i]);let{id:O}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:v,prefix:"password-input"});return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkDD76PFTKcjs.a,{ref:S,className:_chunkONNSZMWFcjs.a.call(void 0, I,E),type:s?"text":"password",disabled:r,id:O,"data-testid":I,...M,children:_jsxruntime.jsx.call(void 0, _chunkIAFYIHVPcjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkZL54LQXAcjs.a,{type:"button",label:"toggle password visibility",onClick:h,disabled:r,"aria-pressed":s,children:s?_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeSmallIcon,{}):_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeOffSmallIcon,{})})})}),_jsxruntime.jsx.call(void 0, "div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:i?g:""})]})});L.displayName=w;exports.a = L;
|
|
4
|
+
//# sourceMappingURL=chunk-VEBBWIXI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-VEBBWIXI.cjs","../src/components/PasswordInput/PasswordInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","PasswordInput","forwardRef","className","disabled","providedId","props","forwardedRef","internalRef","useRef","inputRef","useMergedRefs","visible","setVisible","useState","showVisibilityMessage","setShowVisibilityMessage","handleVisibility","useCallback","newVisibilityState","newVisibilityMessageState","useEffect","currentElement","handleSubmit","visibilityMessage","id","useIds","jsxs","Fragment","jsx","TextInput","cn","InputSlot","UnstyledIconButton","EyeSmallIcon","EyeOffSmallIcon"],"mappings":"AAAA,ylBAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCEhL,wEAMvB,6DAGhB,+CA2DxB,IAzDAA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CAAA,CAAgB,CAAA,CACjD,CAAA,CACF,CAAA,CACF,CAAA,CACAN,6BAAAA,KAAC,CAAA,CAAI,sBAAA,CAAoB,CAAA,CAAA,CAAC,WAAA,CAAU,WAAA,CAAY,IAAA,CAAK,QAAA,CAClD,QAAA,CAAAd,CAAAA,CAAwBS,CAAAA,CAAoB,EAAA,CAC/C,CAAA,CAAA,CACF,CAEJ,CACF,CAAA,CAEAvB,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-VEBBWIXI.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { forwardRef, useRef, useState, useCallback, useEffect } from 'react';\nimport type { RefObject } from 'react';\nimport type { PasswordInputProps } from './PasswordInput.props';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { EyeOffSmallIcon, EyeSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'PasswordInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const PasswordInput = forwardRef<InputBaseElement, PasswordInputProps>(\n ({ className, disabled, id: providedId, ...props }, forwardedRef) => {\n const internalRef = useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const [visible, setVisible] = useState(false);\n const [showVisibilityMessage, setShowVisibilityMessage] = useState(false);\n\n const handleVisibility = useCallback(() => {\n const newVisibilityState = !visible;\n const newVisibilityMessageState = !showVisibilityMessage;\n setVisible(newVisibilityState);\n setShowVisibilityMessage(newVisibilityMessageState);\n }, [visible, showVisibilityMessage]);\n\n // If the PasswordInput is inside a form we should switch the input type\n // back to password when its parent form is submitted\n useEffect(() => {\n // Get the ref value and ensure proper typing\n let currentElement: HTMLInputElement | null = null;\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = internalRef as RefObject<HTMLInputElement>;\n currentElement = refObject.current;\n }\n\n const handleSubmit = () => {\n if (currentElement?.type) {\n currentElement.type = 'password';\n setVisible(false);\n }\n };\n\n if (currentElement && currentElement.form !== null) {\n currentElement.form.addEventListener('submit', handleSubmit);\n }\n return () => {\n if (currentElement?.form) {\n currentElement.form.removeEventListener('submit', handleSubmit);\n }\n };\n }, [internalRef]);\n\n const visibilityMessage = `Your password is ${visible ? 'shown' : 'hidden'}!`;\n\n useEffect(() => {\n setTimeout(() => {\n setShowVisibilityMessage(false);\n }, 1500);\n }, [showVisibilityMessage]);\n\n const { id } = useIds({ providedId, prefix: 'password-input' });\n\n return (\n <>\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type={visible ? 'text' : 'password'}\n disabled={disabled}\n id={id}\n data-testid={componentClassName}\n {...props}\n >\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"toggle password visibility\"\n onClick={handleVisibility}\n disabled={disabled}\n aria-pressed={visible}\n >\n {visible ? <EyeSmallIcon /> : <EyeOffSmallIcon />}\n </UnstyledIconButton>\n </InputSlot>\n </TextInput>\n <div data-visually-hidden aria-live=\"assertive\" role=\"status\">\n {showVisibilityMessage ? visibilityMessage : ''}\n </div>\n </>\n );\n }\n);\n\nPasswordInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as T}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as T}from"./chunk-QQSZD3WU.js";import{a as x}from"./chunk-I7LHAC2E.js";import{a as M}from"./chunk-TJHI42VN.js";import{a as E}from"./chunk-J3AJBV4B.js";import{b as v}from"./chunk-PDEVCIQ3.js";import{forwardRef as A,useState as _,useRef as P,useEffect as k}from"react";import{useMergedRefs as q}from"@base-ui/utils/useMergedRefs";import{jsx as p}from"react/jsx-runtime";var D="CurrencyInput",B=v(D),F=A(({className:R,disabled:w,value:m,onChange:f,placeholder:N="0.00",disableGroupSeparators:g,defaultValue:d,...S},V)=>{let[b,H]=_(typeof d=="string"?d:""),r=P(null),n=P(null),L=q(V,r),h=m!==void 0,C=h?String(m??""):b,l=t=>{if(!t)return"";let o=t.split("."),e=o[0]||"";g||(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,","));let s=o[1];return s!==void 0?e+"."+s:e},z=t=>{let o=t.target.value,e=t.target.selectionStart||0,s=l(C),I=o.replace(/[^\d.]/g,""),c=I.split("."),y=c.length>2?c[0]+"."+c.slice(1).join(""):I,u=y.split("."),i=u[1]!==void 0?u[0]+"."+u[1].substring(0,2):y;if(g)n.current=null;else{let a=l(i),O=(s.slice(0,Math.min(e,s.length)).match(/,/g)||[]).length,j=(a.slice(0,Math.min(e,a.length)).match(/,/g)||[]).length-O;n.current=e+j}if(h||H(i),f){let a={...t,target:{...t.target,value:i},currentTarget:{...t.currentTarget,value:i}};f(a)}};return k(()=>{r&&typeof r=="object"&&r.current&&n.current!==null&&(r.current.setSelectionRange(n.current,n.current),n.current=null)}),p(T,{ref:L,className:E(B,R),type:"text",inputMode:"decimal",disabled:w,value:l(C),onChange:z,placeholder:N,"data-testid":B,...S,children:p(M,{placement:"prefix",children:p(x,{size:"3xl",children:"\xA3"})})})});F.displayName=D;export{F as a};
|
|
4
|
+
//# sourceMappingURL=chunk-VEPEWBVZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as N}from"./chunk-57OFJSBQ.js";import{a as y}from"./chunk-CMKONDKZ.js";import{a as g}from"./chunk-YO67JIGH.js";import{a as c}from"./chunk-WOJDJQRF.js";import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as N}from"./chunk-57OFJSBQ.js";import{a as y}from"./chunk-CMKONDKZ.js";import{a as g}from"./chunk-YO67JIGH.js";import{a as c}from"./chunk-WOJDJQRF.js";import{a as P}from"./chunk-ZFXXAQRQ.js";import{a as m}from"./chunk-BMUDU7FZ.js";import{a as p}from"./chunk-MI6EAUTT.js";import{a as C}from"./chunk-J3AJBV4B.js";import{b as d}from"./chunk-PDEVCIQ3.js";import{Dialog as o}from"radix-ui";import{CloseMediumIcon as z}from"@utilitywarehouse/hearth-react-icons";import{forwardRef as E}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";var D="Modal",i=d(D),A=E(({className:M,image:v,forceMount:x,container:h,heading:B,description:t,hideCloseButton:f,fullScreen:I,loading:l,loadingText:r,loadingHeading:n,loadingDescription:s,children:$,...b},O)=>{let T={forceMount:x,container:h},u=!!v,w=!!(l?(r||n)&&s:t);return e(o.Portal,{...T,children:e(o.Overlay,{className:d("Overlay"),children:e("div",{className:`${i}Scroll`,children:e("div",{className:`${i}ScrollPadding`,children:a(o.Content,{ref:O,className:C(i,M),"data-contains-image":u?"":void 0,"data-hide-close-button":f?"":void 0,"data-full-screen":I?"":void 0,"data-testid":i,...w?{}:{"aria-describedby":void 0},...b,children:[e(N,{children:e(y,{type:"button",label:"Close","data-visually-hidden":f?"":void 0,className:`${i}CloseIconButton`,children:e(z,{})})}),a("div",{className:`${i}OuterContainer`,children:[l?null:a("div",{className:`${i}InnerContainer`,children:[u?e("div",{className:`${i}Image`,children:v}):null,a("div",{className:`${i}Header`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(c,{size:"lg",textWrap:"wrap",children:B})})}),t?e(o.Description,{asChild:!0,children:e(p,{size:"md",as:"span",children:t})}):null]})]}),l?a(P,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[e(g,{size:"lg"}),a("div",{className:`${i}LoadingHeader`,children:[e(m,{asChild:!0,children:e(o.Title,{asChild:!0,children:e(c,{size:"lg",textAlign:"center",textWrap:"wrap",children:n||r||"Loading"})})}),(r||n)&&s?e(o.Description,{asChild:!0,children:e(p,{size:"md",as:"span",textAlign:"center",children:s})}):null]})]}):$]})]})})})})})});A.displayName=D;export{A as a};
|
|
4
|
+
//# sourceMappingURL=chunk-XKWLFASV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as b}from"./chunk-RDRQOW7F.js";import{c as R}from"./chunk-HY32GRZP.js";import{a as f}from"./chunk-XWNXTDDJ.js";import{a as c}from"./chunk-ZFXXAQRQ.js";import{a as u}from"./chunk-7X24J4CX.js";import{a as l}from"./chunk-J3AJBV4B.js";import{b as n}from"./chunk-PDEVCIQ3.js";import{forwardRef as E}from"react";import{RadioGroup as N}from"radix-ui";import{jsx as o,jsxs as r}from"react/jsx-runtime";var x="Radio",e=n(x),F=E(({id:y,label:i,helperText:t,image:I,className:h,labelFontWeight:v,"aria-labelledby":a,...G},P)=>{let{id:d,labelId:m,helperTextId:s}=u({providedId:y,prefix:"radio"}),{hasGroupHelperText:C,"aria-describedby":T}=R(),p=!C&&t!==void 0,w=!!i;return r("div",{className:l(e,h),"data-testid":e,children:[o("div",{className:`${e}Container`,children:o(N.Item,{ref:P,...G,id:d,"aria-describedby":p?s:T,"aria-labelledby":a||(i?m:void 0),className:`${e}Item`,children:o(N.Indicator,{className:`${e}Indicator`})})}),w?r(c,{direction:"column",gap:"50",children:[r(b,{id:m,htmlFor:d,disableUserSelect:!0,fontWeight:v,children:[I,i]}),p?o(f,{id:s,disableUserSelect:!0,children:t}):null]}):null]})});F.displayName=x;export{F as a};
|
|
4
|
+
//# sourceMappingURL=chunk-YIFZN4TH.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
var _chunkOEU5ZGKEcjs = require('./chunk-OEU5ZGKE.cjs');var _chunkWSD52THLcjs = require('./chunk-WSD52THL.cjs');var _chunkUIJQN3ZYcjs = require('./chunk-UIJQN3ZY.cjs');var _chunkHBCCX6CCcjs = require('./chunk-HBCCX6CC.cjs');var _chunkDX6AO37Jcjs = require('./chunk-DX6AO37J.cjs');var _chunkRIHABKWYcjs = require('./chunk-RIHABKWY.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var I="RadioTile",T=_chunk4Q432K4Wcjs.b.call(void 0, I),O= exports.a =_react.forwardRef.call(void 0, ({className:N,id:y,label:r,helperText:t,image:P,"aria-labelledby":a,badge:v,flex:C,flexBasis:G,flexShrink:h,flexGrow:B,...E},F)=>{let{id:d,labelId:m,helperTextId:l}=_chunkRIHABKWYcjs.a.call(void 0, {providedId:y,prefix:"radio"}),{hasGroupHelperText:H,"aria-describedby":w}=_chunkWSD52THLcjs.c.call(void 0, ),s=!H&&t!==void 0;return _jsxruntime.jsx.call(void 0, _chunkDX6AO37Jcjs.a,{asChild:!0,"data-testid":T,...{flex:C,flexBasis:G,flexShrink:h,flexGrow:B},children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Item,{ref:F,className:_chunkONNSZMWFcjs.a.call(void 0, T,N),...E,id:d,"aria-describedby":s?l:w,"aria-labelledby":a||(r?m:void 0),children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioContainer"),children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioItem"),children:_jsxruntime.jsx.call(void 0, _radixui.RadioGroup.Indicator,{className:_chunk4Q432K4Wcjs.b.call(void 0, "RadioIndicator")})}),_jsxruntime.jsxs.call(void 0, _chunkHBCCX6CCcjs.a,{direction:"column",alignItems:"start",children:[_jsxruntime.jsxs.call(void 0, _chunkOEU5ZGKEcjs.a,{id:m,htmlFor:d,disableUserSelect:!0,children:[P,r]}),s?_jsxruntime.jsx.call(void 0, _chunkUIJQN3ZYcjs.a,{id:l,disableUserSelect:!0,children:t}):null,v]})]})})})});O.displayName=I;exports.a = O;
|
|
4
|
+
//# sourceMappingURL=chunk-YO5VMB3U.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-YO5VMB3U.cjs","../src/components/RadioTile/RadioTile.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","RadioTile","forwardRef","className","providedId","label","helperText","image","ariaLabelledby","badge","flex","flexBasis","flexShrink","flexGrow","props","ref","id","labelId","helperTextId","useIds","hasGroupHelperText","ariaDescribedby","useFormGroupBase","showHelperText","jsx","Box","RadioGroupPrimitive","cn","jsxs","Flex","Label","HelperText"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCA5S,mCAKuB,+CA+CpC,IAvCRA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAYC,+BAAAA,CAErB,CACE,SAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,iBAAA,CAAmBC,CAAAA,CACnB,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAA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AG,CAAA,CAChF,CAAA,CACA4B,8BAAAA,mBAACC,CAAA,CAAK,SAAA,CAAU,QAAA,CAAS,UAAA,CAAW,OAAA,CAClC,QAAA,CAAA,CAAAD,8BAAAA,mBAACE,CAAA,CAAM,EAAA,CAAIb,CAAAA,CAAS,OAAA,CAASD,CAAAA,CAAI,iBAAA,CAAiB,CAAA,CAAA,CAC/C,QAAA,CAAA,CAAAT,CAAAA,CACAF,CAAAA,CAAAA,CACH,CAAA,CACCkB,CAAAA,CACCC,6BAAAA,mBAACO,CAAA,CAAW,EAAA,CAAIb,CAAAA,CAAc,iBAAA,CAAiB,CAAA,CAAA,CAC5C,QAAA,CAAAZ,CAAAA,CACH,CAAA,CACE,IAAA,CACHG,CAAAA,CAAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,CAEJ,CACF,CAAA,CAEAR,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-YO5VMB3U.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { RadioTileProps } from './RadioTile.props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport { useIds } from '../../hooks/use-ids';\nimport { Label } from '../Label/Label';\nimport { HelperText } from '../HelperText/HelperText';\nimport { Flex } from '../Flex/Flex';\nimport { useFormGroupBase } from '../FormGroupBase/FormGroupBase.context';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'RadioTile';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype RadioTileElement = ComponentRef<'button'>;\n\nexport const RadioTile = forwardRef<RadioTileElement, RadioTileProps>(\n (\n {\n className,\n id: providedId,\n label,\n helperText,\n image,\n 'aria-labelledby': ariaLabelledby,\n badge,\n flex,\n flexBasis,\n flexShrink,\n flexGrow,\n ...props\n },\n ref\n ) => {\n const { id, labelId, helperTextId } = useIds({ providedId, prefix: 'radio' });\n const { hasGroupHelperText, 'aria-describedby': ariaDescribedby } = useFormGroupBase();\n const showHelperText = Boolean(!hasGroupHelperText && helperText !== undefined);\n const flexItemProps = { flex, flexBasis, flexShrink, flexGrow };\n return (\n <Box asChild data-testid={componentClassName} {...flexItemProps}>\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n {...props}\n id={id}\n aria-describedby={showHelperText ? helperTextId : ariaDescribedby}\n aria-labelledby={ariaLabelledby ? ariaLabelledby : label ? labelId : undefined}\n >\n <div className={withGlobalPrefix('RadioContainer')}>\n <div className={withGlobalPrefix('RadioItem')}>\n <RadioGroupPrimitive.Indicator className={withGlobalPrefix('RadioIndicator')} />\n </div>\n <Flex direction=\"column\" alignItems=\"start\">\n <Label id={labelId} htmlFor={id} disableUserSelect>\n {image}\n {label}\n </Label>\n {showHelperText ? (\n <HelperText id={helperTextId} disableUserSelect>\n {helperText}\n </HelperText>\n ) : null}\n {badge}\n </Flex>\n </div>\n </RadioGroupPrimitive.Item>\n </Box>\n );\n }\n);\n\nRadioTile.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as d}from"./chunk-ZAS7UCT3.js";import{a as p}from"./chunk-LESWYBVY.js";import{a as l}from"./chunk-YO67JIGH.js";import{a as i}from"./chunk-KGEVWEVL.js";import{a as s}from"./chunk-J3AJBV4B.js";import{b as a}from"./chunk-PDEVCIQ3.js";import{a as m}from"./chunk-VCC5YQTQ.js";import{forwardRef as g}from"react";import{jsx as o,jsxs as v}from"react/jsx-runtime";var c="Button",t=a(c),h=g((f,u)=>{let{className:B,children:r,disabled:N,loading:e,asChild:n,...b}=i(f,d),P=e?m({asChild:n,children:r},C=>v("div",{className:`${t}Loading`,children:[o("div",{children:o(l,{size:"xs",currentColor:!0})}),o("span",{className:`${t}Hidden`,children:C})]})):r;return o(p,{ref:u,className:s(t,B),disabled:N||e,"aria-label":e?"Loading":void 0,"data-testid":t,asChild:n,...b,children:P})});h.displayName=c;export{h as a};
|
|
4
|
+
//# sourceMappingURL=chunk-YP2RDWK5.js.map
|