@arc-ui/components 11.8.0 → 11.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.cjs.js +15 -15
- package/dist/Alert/Alert.esm.js +15 -15
- package/dist/Alert/package.json +1 -1
- package/dist/Align/Align.cjs.js +3 -3
- package/dist/Align/Align.esm.js +3 -3
- package/dist/Align/package.json +1 -1
- package/dist/Badge/Badge.cjs.js +8 -8
- package/dist/Badge/Badge.esm.js +8 -8
- package/dist/Badge/package.json +1 -1
- package/dist/Base/Base.cjs.js +2 -2
- package/dist/Base/Base.esm.js +2 -2
- package/dist/Base/package.json +1 -1
- package/dist/Box/Box.cjs.js +3 -3
- package/dist/Box/Box.esm.js +3 -3
- package/dist/Box/package.json +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +5 -5
- package/dist/BrandLogo/BrandLogo.esm.js +5 -5
- package/dist/BrandLogo/package.json +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +8 -8
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +8 -8
- package/dist/Breadcrumbs/package.json +1 -1
- package/dist/Button/Button.cjs.js +8 -8
- package/dist/Button/Button.esm.js +8 -8
- package/dist/Button/package.json +1 -1
- package/dist/Card/Card.cjs.js +9 -9
- package/dist/Card/Card.esm.js +9 -9
- package/dist/Card/package.json +1 -1
- package/dist/Checkbox/Checkbox.cjs.js +11 -11
- package/dist/Checkbox/Checkbox.esm.js +11 -11
- package/dist/Checkbox/package.json +1 -1
- package/dist/Clock/Clock.cjs.js +1 -1
- package/dist/Clock/Clock.esm.js +1 -1
- package/dist/Clock/package.json +1 -1
- package/dist/Columns/Columns.cjs.js +4 -4
- package/dist/Columns/Columns.esm.js +4 -4
- package/dist/Columns/package.json +1 -1
- package/dist/Curve/Curve.cjs.js +4 -4
- package/dist/Curve/Curve.esm.js +4 -4
- package/dist/Curve/package.json +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +7 -7
- package/dist/Disclosure/Disclosure.esm.js +7 -7
- package/dist/Disclosure/package.json +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +7 -7
- package/dist/DisclosureMini/DisclosureMini.esm.js +7 -7
- package/dist/DisclosureMini/package.json +1 -1
- package/dist/Elevation/Elevation.cjs.js +2 -2
- package/dist/Elevation/Elevation.esm.js +2 -2
- package/dist/Elevation/package.json +1 -1
- package/dist/Filter/Filter.cjs.js +4 -4
- package/dist/Filter/Filter.esm.js +4 -4
- package/dist/Filter/package.json +1 -1
- package/dist/FormControl/FormControl.cjs.js +9 -9
- package/dist/FormControl/FormControl.esm.js +9 -9
- package/dist/FormControl/package.json +1 -1
- package/dist/Group/Group.cjs.js +4 -4
- package/dist/Group/Group.esm.js +4 -4
- package/dist/Group/package.json +1 -1
- package/dist/Heading/Heading.cjs.js +5 -5
- package/dist/Heading/Heading.esm.js +5 -5
- package/dist/Heading/package.json +1 -1
- package/dist/Icon/Icon.cjs.js +5 -5
- package/dist/Icon/Icon.esm.js +5 -5
- package/dist/Icon/package.json +1 -1
- package/dist/Image/Image.cjs.js +4 -4
- package/dist/Image/Image.esm.js +4 -4
- package/dist/Image/package.json +1 -1
- package/dist/Markup/Markup.cjs.js +3 -3
- package/dist/Markup/Markup.esm.js +3 -3
- package/dist/Markup/package.json +1 -1
- package/dist/Modal/Modal.cjs.js +21 -97
- package/dist/Modal/Modal.esm.js +21 -97
- package/dist/Modal/package.json +1 -1
- package/dist/Pagination/Pagination.cjs.js +9 -9
- package/dist/Pagination/Pagination.esm.js +9 -9
- package/dist/Pagination/package.json +1 -1
- package/dist/PaginationSimple/PaginationSimple.cjs.js +9 -9
- package/dist/PaginationSimple/PaginationSimple.esm.js +9 -9
- package/dist/PaginationSimple/package.json +1 -1
- package/dist/Poster/Poster.cjs.js +6 -6
- package/dist/Poster/Poster.esm.js +6 -6
- package/dist/Poster/package.json +1 -1
- package/dist/ProgressBar/ProgressBar.cjs.js +20 -22
- package/dist/ProgressBar/ProgressBar.esm.js +17 -19
- package/dist/ProgressBar/package.json +1 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +11 -145
- package/dist/ProgressStepper/ProgressStepper.esm.js +10 -144
- package/dist/ProgressStepper/package.json +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +10 -10
- package/dist/RadioGroup/RadioGroup.esm.js +10 -10
- package/dist/RadioGroup/package.json +1 -1
- package/dist/Rule/Rule.cjs.js +3 -3
- package/dist/Rule/Rule.esm.js +3 -3
- package/dist/Rule/package.json +1 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +14 -16
- package/dist/ScrollToTop/ScrollToTop.esm.js +10 -12
- package/dist/ScrollToTop/package.json +1 -1
- package/dist/Section/Section.cjs.js +3 -3
- package/dist/Section/Section.esm.js +3 -3
- package/dist/Section/package.json +1 -1
- package/dist/Select/Select.cjs.js +192 -572
- package/dist/Select/Select.esm.js +55 -435
- package/dist/Select/package.json +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +9 -9
- package/dist/SiteFooter/SiteFooter.esm.js +10 -10
- package/dist/SiteFooter/package.json +1 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +13 -13
- package/dist/SiteHeader/SiteHeader.esm.js +13 -13
- package/dist/SiteHeader/package.json +1 -1
- package/dist/Surface/Surface.cjs.js +3 -3
- package/dist/Surface/Surface.esm.js +3 -3
- package/dist/Surface/package.json +1 -1
- package/dist/Switch/Switch.cjs.js +21 -244
- package/dist/Switch/Switch.esm.js +16 -239
- package/dist/Switch/package.json +1 -1
- package/dist/Tabs/Tabs.cjs.js +12 -506
- package/dist/Tabs/Tabs.esm.js +11 -505
- package/dist/Tabs/package.json +1 -1
- package/dist/Tag/Tag.cjs.js +18 -22
- package/dist/Tag/Tag.esm.js +14 -18
- package/dist/Tag/package.json +1 -1
- package/dist/Text/Text.cjs.js +5 -5
- package/dist/Text/Text.esm.js +5 -5
- package/dist/Text/package.json +1 -1
- package/dist/TextArea/TextArea.cjs.js +47 -35
- package/dist/TextArea/TextArea.esm.js +47 -35
- package/dist/TextArea/package.json +1 -1
- package/dist/TextInput/TextInput.cjs.js +10 -10
- package/dist/TextInput/TextInput.esm.js +10 -10
- package/dist/TextInput/package.json +1 -1
- package/dist/Toast/Toast.cjs.js +19 -739
- package/dist/Toast/Toast.esm.js +15 -735
- package/dist/Toast/package.json +1 -1
- package/dist/Truncate/Truncate.cjs.js +1 -1
- package/dist/Truncate/Truncate.esm.js +1 -1
- package/dist/Truncate/package.json +1 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +4 -4
- package/dist/UniversalHeader/UniversalHeader.esm.js +4 -4
- package/dist/UniversalHeader/package.json +1 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +3 -3
- package/dist/VerticalSpace/VerticalSpace.esm.js +3 -3
- package/dist/VerticalSpace/package.json +1 -1
- package/dist/VisuallyHidden/package.json +1 -1
- package/dist/_shared/cjs/{Base-569e4334.js → Base-f5a86eed.js} +1 -1
- package/dist/_shared/cjs/{BrandLogo-8107d59f.js → BrandLogo-f001e0c0.js} +4 -4
- package/dist/_shared/cjs/{Breadcrumbs-0906dd10.js → Breadcrumbs-9aa1d18b.js} +7 -9
- package/dist/_shared/cjs/{BtIconAlert-637db790.js → BtIconAlert.esm-e62a75b7.js} +8 -10
- package/dist/_shared/cjs/{BtIconChevronDown2Px-8fb4e2eb.js → BtIconChevronDown2Px.esm-c6f8ced2.js} +6 -8
- package/dist/_shared/cjs/{BtIconChevronLeftMid-df952a3e.js → BtIconChevronLeftMid.esm-7c2fc822.js} +5 -7
- package/dist/_shared/cjs/{BtIconChevronRight2Px-a8e40136.js → BtIconChevronRight2Px.esm-3c438341.js} +10 -14
- package/dist/_shared/cjs/{BtIconChevronRightMid-5a38d855.js → BtIconChevronRightMid.esm-cce080c8.js} +5 -7
- package/dist/_shared/cjs/{BtIconCrossAlt2Px-30dc2688.js → BtIconCrossAlt2Px.esm-c002bf55.js} +6 -8
- package/dist/_shared/cjs/{BtIconTick-42fcc5ec.js → BtIconTick.esm-613dfd8a.js} +18 -24
- package/dist/_shared/cjs/{BtIconTickAlt2Px-bdf06f8c.js → BtIconTickAlt2Px.esm-4862184c.js} +6 -8
- package/dist/_shared/cjs/{Button-5aaa6776.js → Button-c22c9787.js} +8 -8
- package/dist/_shared/cjs/{Card-fd189ba8.js → Card-55a1c129.js} +9 -11
- package/dist/_shared/cjs/{Checkbox-02c546ca.js → Checkbox-7ce718e7.js} +8 -8
- package/dist/_shared/cjs/{Columns-e90798f8.js → Columns-ae4f8cef.js} +3 -4
- package/dist/_shared/cjs/{Curve-781ef633.js → Curve-d038052b.js} +3 -3
- package/dist/_shared/cjs/{DisclosureMini-52706ee6.js → DisclosureMini-c666cc4d.js} +6 -6
- package/dist/_shared/cjs/{Filter-a7574fe7.js → Filter-22b8b171.js} +3 -7
- package/dist/_shared/cjs/{FormControl-1e1bf2bf.js → FormControl-5541ac3a.js} +6 -6
- package/dist/_shared/cjs/{Group-f85dd4c0.js → Group-143a4578.js} +4 -5
- package/dist/_shared/cjs/{Heading-e3332dcf.js → Heading-ba2f74ad.js} +4 -5
- package/dist/_shared/cjs/{Icon-e1dd45eb.js → Icon-cf30e736.js} +10 -12
- package/dist/_shared/cjs/{Image-0e393cbf.js → Image-e873b8fc.js} +3 -4
- package/dist/_shared/cjs/{Poster-faea1ad3.js → Poster-62e2ba67.js} +5 -9
- package/dist/_shared/cjs/ProgressStepper-92668367.js +144 -0
- package/dist/_shared/cjs/{RadioGroup-d7664b0c.js → RadioGroup-66c1e882.js} +4 -5
- package/dist/_shared/cjs/{Section-48aca5f5.js → Section-59804166.js} +2 -2
- package/dist/_shared/cjs/{SiteFooter-5da774e1.js → SiteFooter-d3babe07.js} +7 -9
- package/dist/_shared/cjs/{SiteHeader.rehydrator-acc9d8c4.js → SiteHeader.rehydrator-b7284004.js} +16 -24
- package/dist/_shared/cjs/{Surface-b7c51b2b.js → Surface-80c0909a.js} +2 -2
- package/dist/_shared/cjs/Tabs-65e7af8a.js +503 -0
- package/dist/_shared/cjs/{Text-fa447e2d.js → Text-76b7fea1.js} +4 -4
- package/dist/_shared/cjs/{TextInput-f4549637.js → TextInput-5bee337d.js} +4 -4
- package/dist/_shared/cjs/Toast-874d9be4.js +730 -0
- package/dist/_shared/cjs/{UniversalHeader-da622e1a.js → UniversalHeader-f5a225b6.js} +2 -3
- package/dist/_shared/cjs/{VerticalSpace-86f697e7.js → VerticalSpace-dc53bb70.js} +2 -2
- package/dist/_shared/cjs/{extends-bb8ffacd.js → extends-8c5e4b48.js} +1 -4
- package/dist/_shared/cjs/filter-data-attrs-1c9a530c.js +227 -0
- package/dist/_shared/cjs/{index-ec260f5e.js → index-43458549.js} +13 -96
- package/dist/_shared/cjs/{index-96c4d581.js → index-6b2a9ac3.js} +2 -2
- package/dist/_shared/cjs/{index-45bfb67b.js → index-9947ac13.js} +11 -10
- package/dist/_shared/cjs/{index-fb4b8fda.js → index-adbb63da.js} +2 -9
- package/dist/_shared/cjs/{index-27b53d49.js → index-b2fd6338.js} +3 -80
- package/dist/_shared/cjs/{index-952918c9.js → index-c575a255.js} +11 -10
- package/dist/_shared/cjs/index.module-dd1d7d0b.js +382 -0
- package/dist/_shared/cjs/{suffix-modifier-1ee2da04.js → suffix-modifier-64dcd338.js} +1 -1
- package/dist/_shared/esm/{Base-6c01e0ec.js → Base-f200653c.js} +1 -1
- package/dist/_shared/esm/{BrandLogo-9ec620e8.js → BrandLogo-51fc6f15.js} +4 -4
- package/dist/_shared/esm/{Breadcrumbs-dafa8dde.js → Breadcrumbs-50d0f406.js} +7 -9
- package/dist/_shared/esm/{BtIconAlert-55a6ed5c.js → BtIconAlert.esm-09346130.js} +6 -8
- package/dist/_shared/esm/{BtIconChevronDown2Px-782876e2.js → BtIconChevronDown2Px.esm-345d78fe.js} +4 -6
- package/dist/_shared/esm/{BtIconChevronLeftMid-9f4f3a3d.js → BtIconChevronLeftMid.esm-e69276cb.js} +3 -5
- package/dist/_shared/esm/{BtIconChevronRight2Px-b8e7b4ad.js → BtIconChevronRight2Px.esm-2c693ef3.js} +7 -11
- package/dist/_shared/esm/{BtIconChevronRightMid-d9b11761.js → BtIconChevronRightMid.esm-24809a93.js} +3 -5
- package/dist/_shared/esm/{BtIconCrossAlt2Px-a6a9f431.js → BtIconCrossAlt2Px.esm-425a6beb.js} +4 -6
- package/dist/_shared/esm/{BtIconTick-5fe50cc7.js → BtIconTick.esm-673282f5.js} +14 -20
- package/dist/_shared/esm/{BtIconTickAlt2Px-da97e9ae.js → BtIconTickAlt2Px.esm-ce22224b.js} +4 -6
- package/dist/_shared/esm/{Button-d1dbcf79.js → Button-67f68b14.js} +8 -8
- package/dist/_shared/esm/{Card-e62c3ff6.js → Card-bf0c3b0b.js} +9 -11
- package/dist/_shared/esm/{Checkbox-d8891198.js → Checkbox-50e2d4ab.js} +8 -8
- package/dist/_shared/esm/{Columns-8704515b.js → Columns-d96b7425.js} +3 -4
- package/dist/_shared/esm/{Curve-bbc5589c.js → Curve-d8679dde.js} +3 -3
- package/dist/_shared/esm/{DisclosureMini-9b819941.js → DisclosureMini-376c013c.js} +6 -6
- package/dist/_shared/esm/{Filter-a01aed11.js → Filter-f7ac126b.js} +3 -7
- package/dist/_shared/esm/{FormControl-f18e2f59.js → FormControl-aad4288c.js} +6 -6
- package/dist/_shared/esm/{Group-fb26fd32.js → Group-0129c979.js} +4 -5
- package/dist/_shared/esm/{Heading-0f629151.js → Heading-8bb7b7c0.js} +4 -5
- package/dist/_shared/esm/{Icon-c1af47bc.js → Icon-3bfabb14.js} +7 -9
- package/dist/_shared/esm/{Image-3ed3863c.js → Image-12fbd327.js} +3 -4
- package/dist/_shared/esm/{Poster-a83ae770.js → Poster-046b0f77.js} +5 -9
- package/dist/_shared/esm/ProgressStepper-3ffbdb73.js +138 -0
- package/dist/_shared/esm/{RadioGroup-be16d5d3.js → RadioGroup-1273a716.js} +4 -5
- package/dist/_shared/esm/{Section-b8038d66.js → Section-73781b56.js} +2 -2
- package/dist/_shared/esm/{SiteFooter-a182cb18.js → SiteFooter-60d1b216.js} +7 -9
- package/dist/_shared/esm/{SiteHeader.rehydrator-023b7b76.js → SiteHeader.rehydrator-029f568e.js} +16 -24
- package/dist/_shared/esm/{Surface-dde51789.js → Surface-c6e817cd.js} +2 -2
- package/dist/_shared/esm/Tabs-ec960828.js +497 -0
- package/dist/_shared/esm/{Text-40457811.js → Text-a3720712.js} +4 -4
- package/dist/_shared/esm/{TextInput-4424c195.js → TextInput-732f0b51.js} +4 -4
- package/dist/_shared/esm/Toast-b81384a4.js +724 -0
- package/dist/_shared/esm/{UniversalHeader-1c5a886d.js → UniversalHeader-354a1867.js} +2 -3
- package/dist/_shared/esm/{VerticalSpace-93980c9c.js → VerticalSpace-43cd9138.js} +2 -2
- package/dist/_shared/esm/{extends-4575346e.js → extends-8cc61aad.js} +1 -4
- package/dist/_shared/esm/filter-data-attrs-ea8f4ed4.js +220 -0
- package/dist/_shared/esm/{index-22aad354.js → index-13d575cc.js} +11 -11
- package/dist/_shared/esm/{index-2ae58626.js → index-2e73c2e9.js} +11 -10
- package/dist/_shared/esm/{index-94ecc5f8.js → index-3797d77e.js} +2 -2
- package/dist/_shared/esm/{index-369dce7f.js → index-41d7af2b.js} +9 -92
- package/dist/_shared/esm/{index-8000d9e3.js → index-a1d2d9b3.js} +2 -79
- package/dist/_shared/esm/{index-bed18a88.js → index-efd9ef1c.js} +1 -9
- package/dist/_shared/esm/index.module-44714d3f.js +371 -0
- package/dist/_shared/esm/{suffix-modifier-7e640670.js → suffix-modifier-3d548e45.js} +1 -1
- package/dist/index.es.js +2541 -1304
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2865 -1617
- package/dist/index.js.map +1 -1
- package/dist/styles.css +11 -1
- package/dist/types/components/Badge/Badge.d.ts +4 -0
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Card/Card.d.ts +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Clock/Clock.d.ts +1 -1
- package/dist/types/components/Columns/Columns.d.ts +2 -2
- package/dist/types/components/FormControl/FormControl.d.ts +1 -1
- package/dist/types/components/Group/GroupItem/GroupItem.d.ts +17 -0
- package/dist/types/components/Heading/Heading.d.ts +4 -4
- package/dist/types/components/MediaCard/MediaCard.stories-wip.d.ts +15 -0
- package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +1 -1
- package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +1 -1
- package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/RadioGroup/context.d.ts +2 -2
- package/dist/types/components/Surface/Surface.d.ts +3 -3
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/TextArea/TextArea.d.ts +1 -1
- package/dist/types/components/TextInput/TextInput.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +5 -2
- package/dist/types/components/Toast/ToastNotification.d.ts +2 -2
- package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +1 -1
- package/dist/types/components/index.d.ts +17 -6
- package/dist/types/types/arc-icon.d.ts +1 -1
- package/package.json +44 -15
- package/dist/Alert/Alert.cjs.d.ts +0 -57
- package/dist/Alert/Alert.esm.d.ts +0 -57
- package/dist/Align/Align.cjs.d.ts +0 -25
- package/dist/Align/Align.esm.d.ts +0 -25
- package/dist/Badge/Badge.cjs.d.ts +0 -26
- package/dist/Badge/Badge.esm.d.ts +0 -26
- package/dist/Base/Base.cjs.d.ts +0 -1
- package/dist/Base/Base.esm.d.ts +0 -1
- package/dist/Box/Box.cjs.d.ts +0 -40
- package/dist/Box/Box.esm.d.ts +0 -40
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +0 -1
- package/dist/BrandLogo/BrandLogo.esm.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +0 -1
- package/dist/Button/Button.cjs.d.ts +0 -1
- package/dist/Button/Button.esm.d.ts +0 -1
- package/dist/Card/Card.cjs.d.ts +0 -1
- package/dist/Card/Card.esm.d.ts +0 -1
- package/dist/Checkbox/Checkbox.cjs.d.ts +0 -1
- package/dist/Checkbox/Checkbox.esm.d.ts +0 -1
- package/dist/Clock/Clock.cjs.d.ts +0 -15
- package/dist/Clock/Clock.esm.d.ts +0 -15
- package/dist/Columns/Columns.cjs.d.ts +0 -1
- package/dist/Columns/Columns.esm.d.ts +0 -1
- package/dist/Curve/Curve.cjs.d.ts +0 -1
- package/dist/Curve/Curve.esm.d.ts +0 -1
- package/dist/Disclosure/Disclosure.cjs.d.ts +0 -31
- package/dist/Disclosure/Disclosure.esm.d.ts +0 -31
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +0 -1
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +0 -1
- package/dist/Elevation/Elevation.cjs.d.ts +0 -20
- package/dist/Elevation/Elevation.esm.d.ts +0 -20
- package/dist/Filter/Filter.cjs.d.ts +0 -1
- package/dist/Filter/Filter.esm.d.ts +0 -1
- package/dist/FormControl/FormControl.cjs.d.ts +0 -1
- package/dist/FormControl/FormControl.esm.d.ts +0 -1
- package/dist/Group/Group.cjs.d.ts +0 -1
- package/dist/Group/Group.esm.d.ts +0 -1
- package/dist/Heading/Heading.cjs.d.ts +0 -1
- package/dist/Heading/Heading.esm.d.ts +0 -1
- package/dist/Icon/Icon.cjs.d.ts +0 -1
- package/dist/Icon/Icon.esm.d.ts +0 -1
- package/dist/Image/Image.cjs.d.ts +0 -1
- package/dist/Image/Image.esm.d.ts +0 -1
- package/dist/Markup/Markup.cjs.d.ts +0 -16
- package/dist/Markup/Markup.esm.d.ts +0 -16
- package/dist/Modal/Modal.cjs.d.ts +0 -53
- package/dist/Modal/Modal.esm.d.ts +0 -53
- package/dist/Pagination/Pagination.cjs.d.ts +0 -20
- package/dist/Pagination/Pagination.esm.d.ts +0 -20
- package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +0 -28
- package/dist/PaginationSimple/PaginationSimple.esm.d.ts +0 -28
- package/dist/Poster/Poster.cjs.d.ts +0 -1
- package/dist/Poster/Poster.esm.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.cjs.d.ts +0 -47
- package/dist/ProgressBar/ProgressBar.esm.d.ts +0 -47
- package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +0 -89
- package/dist/ProgressStepper/ProgressStepper.esm.d.ts +0 -89
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +0 -1
- package/dist/RadioGroup/RadioGroup.esm.d.ts +0 -1
- package/dist/Rule/Rule.cjs.d.ts +0 -8
- package/dist/Rule/Rule.esm.d.ts +0 -8
- package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +0 -25
- package/dist/ScrollToTop/ScrollToTop.esm.d.ts +0 -25
- package/dist/Section/Section.cjs.d.ts +0 -1
- package/dist/Section/Section.esm.d.ts +0 -1
- package/dist/Select/Select.cjs.d.ts +0 -25
- package/dist/Select/Select.esm.d.ts +0 -25
- package/dist/SiteFooter/SiteFooter.cjs.d.ts +0 -4
- package/dist/SiteFooter/SiteFooter.esm.d.ts +0 -4
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +0 -2
- package/dist/SiteHeader/SiteHeader.esm.d.ts +0 -2
- package/dist/Surface/Surface.cjs.d.ts +0 -1
- package/dist/Surface/Surface.esm.d.ts +0 -1
- package/dist/Switch/Switch.cjs.d.ts +0 -40
- package/dist/Switch/Switch.esm.d.ts +0 -40
- package/dist/Tabs/Tabs.cjs.d.ts +0 -75
- package/dist/Tabs/Tabs.esm.d.ts +0 -75
- package/dist/Tag/Tag.cjs.d.ts +0 -33
- package/dist/Tag/Tag.esm.d.ts +0 -33
- package/dist/Text/Text.cjs.d.ts +0 -1
- package/dist/Text/Text.esm.d.ts +0 -1
- package/dist/TextArea/TextArea.cjs.d.ts +0 -64
- package/dist/TextArea/TextArea.esm.d.ts +0 -64
- package/dist/TextInput/TextInput.cjs.d.ts +0 -1
- package/dist/TextInput/TextInput.esm.d.ts +0 -1
- package/dist/Toast/Toast.cjs.d.ts +0 -52
- package/dist/Toast/Toast.esm.d.ts +0 -52
- package/dist/Truncate/Truncate.cjs.d.ts +0 -18
- package/dist/Truncate/Truncate.esm.d.ts +0 -18
- package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +0 -1
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +0 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +0 -1
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.cjs.d.ts +0 -1
- package/dist/VisuallyHidden/VisuallyHidden.esm.d.ts +0 -1
- package/dist/_shared/cjs/Base-569e4334.d.ts +0 -19
- package/dist/_shared/cjs/BrandLogo-8107d59f.d.ts +0 -26
- package/dist/_shared/cjs/Breadcrumbs-0906dd10.d.ts +0 -61
- package/dist/_shared/cjs/Button-5aaa6776.d.ts +0 -102
- package/dist/_shared/cjs/Card-fd189ba8.d.ts +0 -136
- package/dist/_shared/cjs/Checkbox-02c546ca.d.ts +0 -64
- package/dist/_shared/cjs/Columns-e90798f8.d.ts +0 -76
- package/dist/_shared/cjs/Curve-781ef633.d.ts +0 -35
- package/dist/_shared/cjs/DisclosureMini-52706ee6.d.ts +0 -37
- package/dist/_shared/cjs/Filter-a7574fe7.d.ts +0 -83
- package/dist/_shared/cjs/FormControl-1e1bf2bf.d.ts +0 -99
- package/dist/_shared/cjs/Group-f85dd4c0.d.ts +0 -46
- package/dist/_shared/cjs/Heading-e3332dcf.d.ts +0 -50
- package/dist/_shared/cjs/Icon-e1dd45eb.d.ts +0 -34
- package/dist/_shared/cjs/Image-0e393cbf.d.ts +0 -94
- package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +0 -27
- package/dist/_shared/cjs/NavItem-df20237c.d.ts +0 -43
- package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +0 -49
- package/dist/_shared/cjs/Poster-faea1ad3.d.ts +0 -81
- package/dist/_shared/cjs/RadioGroup-d7664b0c.d.ts +0 -97
- package/dist/_shared/cjs/Section-48aca5f5.d.ts +0 -21
- package/dist/_shared/cjs/SiteFooter-5da774e1.d.ts +0 -62
- package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +0 -78
- package/dist/_shared/cjs/SiteHeader.rehydrator-acc9d8c4.d.ts +0 -78
- package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +0 -48
- package/dist/_shared/cjs/Surface-b7c51b2b.d.ts +0 -51
- package/dist/_shared/cjs/Text-fa447e2d.d.ts +0 -38
- package/dist/_shared/cjs/TextInput-13050538.d.ts +0 -77
- package/dist/_shared/cjs/TextInput-f4549637.d.ts +0 -10
- package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +0 -26
- package/dist/_shared/cjs/VerticalSpace-86f697e7.d.ts +0 -34
- package/dist/_shared/cjs/VisuallyHidden-e2c8b291.d.ts +0 -12
- package/dist/_shared/cjs/arc-icon-17594b2f.d.ts +0 -4
- package/dist/_shared/cjs/filter-data-attrs-a30dcf5f.d.ts +0 -2
- package/dist/_shared/cjs/filter-data-attrs-a30dcf5f.js +0 -215
- package/dist/_shared/cjs/handle-link-click-17a44cf4.d.ts +0 -7
- package/dist/_shared/cjs/index-699086a7.d.ts +0 -2
- package/dist/_shared/cjs/index-74488a9f.d.ts +0 -2
- package/dist/_shared/cjs/index-9483ad5f.d.ts +0 -14
- package/dist/_shared/cjs/index-c81c9401.d.ts +0 -4
- package/dist/_shared/cjs/index-e340924e.d.ts +0 -2
- package/dist/_shared/cjs/index-e6d20018.d.ts +0 -3
- package/dist/_shared/cjs/index-eb06f640.d.ts +0 -2
- package/dist/_shared/cjs/index-f419cf04.d.ts +0 -2
- package/dist/_shared/cjs/index.es-77def0c9.d.ts +0 -19
- package/dist/_shared/cjs/index.module-bbcc4e18.js +0 -126
- package/dist/_shared/cjs/suffix-modifier-1ee2da04.d.ts +0 -10
- package/dist/_shared/esm/Base-6c01e0ec.d.ts +0 -19
- package/dist/_shared/esm/BrandLogo-9ec620e8.d.ts +0 -26
- package/dist/_shared/esm/Breadcrumbs-dafa8dde.d.ts +0 -61
- package/dist/_shared/esm/Button-d1dbcf79.d.ts +0 -102
- package/dist/_shared/esm/Card-e62c3ff6.d.ts +0 -136
- package/dist/_shared/esm/Checkbox-d8891198.d.ts +0 -64
- package/dist/_shared/esm/Columns-8704515b.d.ts +0 -76
- package/dist/_shared/esm/Curve-bbc5589c.d.ts +0 -35
- package/dist/_shared/esm/DisclosureMini-9b819941.d.ts +0 -37
- package/dist/_shared/esm/Filter-a01aed11.d.ts +0 -83
- package/dist/_shared/esm/FormControl-f18e2f59.d.ts +0 -99
- package/dist/_shared/esm/Group-fb26fd32.d.ts +0 -46
- package/dist/_shared/esm/Heading-0f629151.d.ts +0 -50
- package/dist/_shared/esm/Icon-c1af47bc.d.ts +0 -34
- package/dist/_shared/esm/Image-3ed3863c.d.ts +0 -94
- package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +0 -27
- package/dist/_shared/esm/NavItem-df20237c.d.ts +0 -43
- package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +0 -49
- package/dist/_shared/esm/Poster-a83ae770.d.ts +0 -81
- package/dist/_shared/esm/RadioGroup-be16d5d3.d.ts +0 -97
- package/dist/_shared/esm/Section-b8038d66.d.ts +0 -21
- package/dist/_shared/esm/SiteFooter-a182cb18.d.ts +0 -62
- package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +0 -78
- package/dist/_shared/esm/SiteHeader.rehydrator-023b7b76.d.ts +0 -78
- package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +0 -48
- package/dist/_shared/esm/Surface-dde51789.d.ts +0 -51
- package/dist/_shared/esm/Text-40457811.d.ts +0 -38
- package/dist/_shared/esm/TextInput-13050538.d.ts +0 -77
- package/dist/_shared/esm/TextInput-4424c195.d.ts +0 -10
- package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +0 -26
- package/dist/_shared/esm/VerticalSpace-93980c9c.d.ts +0 -34
- package/dist/_shared/esm/VisuallyHidden-b9eebf71.d.ts +0 -12
- package/dist/_shared/esm/arc-icon-17594b2f.d.ts +0 -4
- package/dist/_shared/esm/filter-data-attrs-afdb7d32.d.ts +0 -2
- package/dist/_shared/esm/filter-data-attrs-afdb7d32.js +0 -208
- package/dist/_shared/esm/handle-link-click-f64f55a2.d.ts +0 -7
- package/dist/_shared/esm/index-699086a7.d.ts +0 -2
- package/dist/_shared/esm/index-74488a9f.d.ts +0 -2
- package/dist/_shared/esm/index-9483ad5f.d.ts +0 -14
- package/dist/_shared/esm/index-c81c9401.d.ts +0 -4
- package/dist/_shared/esm/index-e340924e.d.ts +0 -2
- package/dist/_shared/esm/index-e6d20018.d.ts +0 -3
- package/dist/_shared/esm/index-eb06f640.d.ts +0 -2
- package/dist/_shared/esm/index-f419cf04.d.ts +0 -2
- package/dist/_shared/esm/index.es-00cb3bcb.d.ts +0 -19
- package/dist/_shared/esm/index.module-5ed90b21.js +0 -122
- package/dist/_shared/esm/suffix-modifier-7e640670.d.ts +0 -10
- /package/dist/_shared/cjs/{debounce-506538c5.js → debounce-123468fb.js} +0 -0
- /package/dist/_shared/esm/{debounce-e228705f.js → debounce-6fed6b84.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var filterDataAttrs = require('./filter-data-attrs-
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var Surface = require('./Surface-
|
|
5
|
+
var Surface = require('./Surface-80c0909a.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -29,7 +29,6 @@ var UniversalHeaderItem = function (_a) {
|
|
|
29
29
|
return (React__default["default"].createElement("li", filterDataAttrs.__assign({}, filterDataAttrs.filterDataAttrs(props)),
|
|
30
30
|
React__default["default"].createElement("a", { className: "arc-UniversalHeader-link", href: href }, children)));
|
|
31
31
|
};
|
|
32
|
-
UniversalHeaderItem.displayName = "UniversalHeader.Item";
|
|
33
32
|
UniversalHeader.Item = UniversalHeaderItem;
|
|
34
33
|
|
|
35
34
|
exports.UniversalHeader = UniversalHeader;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var filterDataAttrs = require('./filter-data-attrs-
|
|
4
|
-
var index = require('./index-
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
|
+
var index = require('./index-9947ac13.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
function _extends() {
|
|
4
|
-
_extends = Object.assign
|
|
4
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i];
|
|
7
|
-
|
|
8
7
|
for (var key in source) {
|
|
9
8
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10
9
|
target[key] = source[key];
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
return target;
|
|
16
14
|
};
|
|
17
|
-
|
|
18
15
|
return _extends.apply(this, arguments);
|
|
19
16
|
}
|
|
20
17
|
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/******************************************************************************
|
|
4
|
+
Copyright (c) Microsoft Corporation.
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
+
***************************************************************************** */
|
|
17
|
+
|
|
18
|
+
exports.__assign = function() {
|
|
19
|
+
exports.__assign = Object.assign || function __assign(t) {
|
|
20
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21
|
+
s = arguments[i];
|
|
22
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return exports.__assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function __rest(s, e) {
|
|
30
|
+
var t = {};
|
|
31
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
32
|
+
t[p] = s[p];
|
|
33
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
34
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
35
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
36
|
+
t[p[i]] = s[p[i]];
|
|
37
|
+
}
|
|
38
|
+
return t;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function __generator(thisArg, body) {
|
|
52
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
53
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
54
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
55
|
+
function step(op) {
|
|
56
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
57
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
58
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
59
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
60
|
+
switch (op[0]) {
|
|
61
|
+
case 0: case 1: t = op; break;
|
|
62
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
63
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
64
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
65
|
+
default:
|
|
66
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
67
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
68
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
69
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
70
|
+
if (t[2]) _.ops.pop();
|
|
71
|
+
_.trys.pop(); continue;
|
|
72
|
+
}
|
|
73
|
+
op = body.call(thisArg, _);
|
|
74
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
75
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function __spreadArray(to, from, pack) {
|
|
80
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
81
|
+
if (ar || !(i in from)) {
|
|
82
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
83
|
+
ar[i] = from[i];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
90
|
+
var e = new Error(message);
|
|
91
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
var camelcase = {exports: {}};
|
|
95
|
+
|
|
96
|
+
const UPPERCASE = /[\p{Lu}]/u;
|
|
97
|
+
const LOWERCASE = /[\p{Ll}]/u;
|
|
98
|
+
const LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
99
|
+
const IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
|
|
100
|
+
const SEPARATORS = /[_.\- ]+/;
|
|
101
|
+
|
|
102
|
+
const LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);
|
|
103
|
+
const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');
|
|
104
|
+
const NUMBERS_AND_IDENTIFIER = new RegExp('\\d+' + IDENTIFIER.source, 'gu');
|
|
105
|
+
|
|
106
|
+
const preserveCamelCase = (string, toLowerCase, toUpperCase) => {
|
|
107
|
+
let isLastCharLower = false;
|
|
108
|
+
let isLastCharUpper = false;
|
|
109
|
+
let isLastLastCharUpper = false;
|
|
110
|
+
|
|
111
|
+
for (let i = 0; i < string.length; i++) {
|
|
112
|
+
const character = string[i];
|
|
113
|
+
|
|
114
|
+
if (isLastCharLower && UPPERCASE.test(character)) {
|
|
115
|
+
string = string.slice(0, i) + '-' + string.slice(i);
|
|
116
|
+
isLastCharLower = false;
|
|
117
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
118
|
+
isLastCharUpper = true;
|
|
119
|
+
i++;
|
|
120
|
+
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
|
121
|
+
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
|
122
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
123
|
+
isLastCharUpper = false;
|
|
124
|
+
isLastCharLower = true;
|
|
125
|
+
} else {
|
|
126
|
+
isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
|
|
127
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
128
|
+
isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return string;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const preserveConsecutiveUppercase = (input, toLowerCase) => {
|
|
136
|
+
LEADING_CAPITAL.lastIndex = 0;
|
|
137
|
+
|
|
138
|
+
return input.replace(LEADING_CAPITAL, m1 => toLowerCase(m1));
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const postProcess = (input, toUpperCase) => {
|
|
142
|
+
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
|
143
|
+
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
|
144
|
+
|
|
145
|
+
return input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier))
|
|
146
|
+
.replace(NUMBERS_AND_IDENTIFIER, m => toUpperCase(m));
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const camelCase = (input, options) => {
|
|
150
|
+
if (!(typeof input === 'string' || Array.isArray(input))) {
|
|
151
|
+
throw new TypeError('Expected the input to be `string | string[]`');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
options = {
|
|
155
|
+
pascalCase: false,
|
|
156
|
+
preserveConsecutiveUppercase: false,
|
|
157
|
+
...options
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
if (Array.isArray(input)) {
|
|
161
|
+
input = input.map(x => x.trim())
|
|
162
|
+
.filter(x => x.length)
|
|
163
|
+
.join('-');
|
|
164
|
+
} else {
|
|
165
|
+
input = input.trim();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (input.length === 0) {
|
|
169
|
+
return '';
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const toLowerCase = options.locale === false ?
|
|
173
|
+
string => string.toLowerCase() :
|
|
174
|
+
string => string.toLocaleLowerCase(options.locale);
|
|
175
|
+
const toUpperCase = options.locale === false ?
|
|
176
|
+
string => string.toUpperCase() :
|
|
177
|
+
string => string.toLocaleUpperCase(options.locale);
|
|
178
|
+
|
|
179
|
+
if (input.length === 1) {
|
|
180
|
+
return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const hasUpperCase = input !== toLowerCase(input);
|
|
184
|
+
|
|
185
|
+
if (hasUpperCase) {
|
|
186
|
+
input = preserveCamelCase(input, toLowerCase, toUpperCase);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
input = input.replace(LEADING_SEPARATORS, '');
|
|
190
|
+
|
|
191
|
+
if (options.preserveConsecutiveUppercase) {
|
|
192
|
+
input = preserveConsecutiveUppercase(input, toLowerCase);
|
|
193
|
+
} else {
|
|
194
|
+
input = toLowerCase(input);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (options.pascalCase) {
|
|
198
|
+
input = toUpperCase(input.charAt(0)) + input.slice(1);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return postProcess(input, toUpperCase);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
camelcase.exports = camelCase;
|
|
205
|
+
// TODO: Remove this for the next major release
|
|
206
|
+
camelcase.exports.default = camelCase;
|
|
207
|
+
|
|
208
|
+
var camelCase$1 = camelcase.exports;
|
|
209
|
+
|
|
210
|
+
var dataAttrRe = /^(data-.*)$/;
|
|
211
|
+
var filterDataAttrs = function (props) {
|
|
212
|
+
var filteredProps = {};
|
|
213
|
+
for (var prop in props) {
|
|
214
|
+
if (Object.prototype.hasOwnProperty.call(props, prop) &&
|
|
215
|
+
dataAttrRe.test(prop)) {
|
|
216
|
+
filteredProps[prop] = props[prop];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return filteredProps;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
exports.__awaiter = __awaiter;
|
|
223
|
+
exports.__generator = __generator;
|
|
224
|
+
exports.__rest = __rest;
|
|
225
|
+
exports.__spreadArray = __spreadArray;
|
|
226
|
+
exports.camelCase = camelCase$1;
|
|
227
|
+
exports.filterDataAttrs = filterDataAttrs;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
|
|
5
6
|
function _interopNamespace(e) {
|
|
@@ -22,54 +23,6 @@ function _interopNamespace(e) {
|
|
|
22
23
|
|
|
23
24
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
25
|
|
|
25
|
-
/******************************************************************************
|
|
26
|
-
Copyright (c) Microsoft Corporation.
|
|
27
|
-
|
|
28
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
29
|
-
purpose with or without fee is hereby granted.
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
32
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
33
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
34
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
35
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
36
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
***************************************************************************** */
|
|
39
|
-
|
|
40
|
-
var __assign$1 = function() {
|
|
41
|
-
__assign$1 = Object.assign || function __assign(t) {
|
|
42
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
43
|
-
s = arguments[i];
|
|
44
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
45
|
-
}
|
|
46
|
-
return t;
|
|
47
|
-
};
|
|
48
|
-
return __assign$1.apply(this, arguments);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
function __rest$1(s, e) {
|
|
52
|
-
var t = {};
|
|
53
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
54
|
-
t[p] = s[p];
|
|
55
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
56
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
57
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
58
|
-
t[p[i]] = s[p[i]];
|
|
59
|
-
}
|
|
60
|
-
return t;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function __spreadArray(to, from, pack) {
|
|
64
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
65
|
-
if (ar || !(i in from)) {
|
|
66
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
67
|
-
ar[i] = from[i];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
26
|
var zeroRightClassName = 'right-scroll-bar-position';
|
|
74
27
|
var fullWidthClassName = 'width-before-scroll-bar';
|
|
75
28
|
var noScrollbarsClassName = 'with-scroll-bars-hidden';
|
|
@@ -159,44 +112,6 @@ function useMergeRefs(refs, defaultValue) {
|
|
|
159
112
|
return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
|
|
160
113
|
}
|
|
161
114
|
|
|
162
|
-
/*! *****************************************************************************
|
|
163
|
-
Copyright (c) Microsoft Corporation.
|
|
164
|
-
|
|
165
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
166
|
-
purpose with or without fee is hereby granted.
|
|
167
|
-
|
|
168
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
169
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
170
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
171
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
172
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
173
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
174
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
175
|
-
***************************************************************************** */
|
|
176
|
-
|
|
177
|
-
var __assign = function() {
|
|
178
|
-
__assign = Object.assign || function __assign(t) {
|
|
179
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
180
|
-
s = arguments[i];
|
|
181
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
182
|
-
}
|
|
183
|
-
return t;
|
|
184
|
-
};
|
|
185
|
-
return __assign.apply(this, arguments);
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
function __rest(s, e) {
|
|
189
|
-
var t = {};
|
|
190
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
191
|
-
t[p] = s[p];
|
|
192
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
193
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
194
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
195
|
-
t[p[i]] = s[p[i]];
|
|
196
|
-
}
|
|
197
|
-
return t;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
115
|
function ItoI(a) {
|
|
201
116
|
return a;
|
|
202
117
|
}
|
|
@@ -267,12 +182,12 @@ function innerCreateMedium(defaults, middleware) {
|
|
|
267
182
|
function createSidecarMedium(options) {
|
|
268
183
|
if (options === void 0) { options = {}; }
|
|
269
184
|
var medium = innerCreateMedium(null);
|
|
270
|
-
medium.options = __assign({ async: true, ssr: false }, options);
|
|
185
|
+
medium.options = filterDataAttrs.__assign({ async: true, ssr: false }, options);
|
|
271
186
|
return medium;
|
|
272
187
|
}
|
|
273
188
|
|
|
274
189
|
var SideCar$1 = function (_a) {
|
|
275
|
-
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
190
|
+
var sideCar = _a.sideCar, rest = filterDataAttrs.__rest(_a, ["sideCar"]);
|
|
276
191
|
if (!sideCar) {
|
|
277
192
|
throw new Error('Sidecar: please provide `sideCar` property to import the right car');
|
|
278
193
|
}
|
|
@@ -280,7 +195,7 @@ var SideCar$1 = function (_a) {
|
|
|
280
195
|
if (!Target) {
|
|
281
196
|
throw new Error('Sidecar medium not found');
|
|
282
197
|
}
|
|
283
|
-
return React__namespace.createElement(Target, __assign({}, rest));
|
|
198
|
+
return React__namespace.createElement(Target, filterDataAttrs.__assign({}, rest));
|
|
284
199
|
};
|
|
285
200
|
SideCar$1.isSideCarExport = true;
|
|
286
201
|
function exportSidecar(medium, exported) {
|
|
@@ -303,13 +218,13 @@ var RemoveScroll = React__namespace.forwardRef(function (props, parentRef) {
|
|
|
303
218
|
onWheelCapture: nothing,
|
|
304
219
|
onTouchMoveCapture: nothing,
|
|
305
220
|
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
306
|
-
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = __rest
|
|
221
|
+
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = filterDataAttrs.__rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]);
|
|
307
222
|
var SideCar = sideCar;
|
|
308
223
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
309
|
-
var containerProps = __assign
|
|
224
|
+
var containerProps = filterDataAttrs.__assign(filterDataAttrs.__assign({}, rest), callbacks);
|
|
310
225
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
311
226
|
enabled && (React__namespace.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),
|
|
312
|
-
forwardProps ? (React__namespace.cloneElement(React__namespace.Children.only(children), __assign
|
|
227
|
+
forwardProps ? (React__namespace.cloneElement(React__namespace.Children.only(children), filterDataAttrs.__assign(filterDataAttrs.__assign({}, containerProps), { ref: containerRef }))) : (React__namespace.createElement(Container, filterDataAttrs.__assign({}, containerProps, { className: className, ref: containerRef }), children))));
|
|
313
228
|
});
|
|
314
229
|
RemoveScroll.defaultProps = {
|
|
315
230
|
enabled: true,
|
|
@@ -614,7 +529,7 @@ function RemoveScrollSideCar(props) {
|
|
|
614
529
|
React__namespace.useEffect(function () {
|
|
615
530
|
if (props.inert) {
|
|
616
531
|
document.body.classList.add("block-interactivity-".concat(id));
|
|
617
|
-
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
532
|
+
var allow_1 = filterDataAttrs.__spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
618
533
|
allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
|
|
619
534
|
return function () {
|
|
620
535
|
document.body.classList.remove("block-interactivity-".concat(id));
|
|
@@ -733,7 +648,7 @@ function RemoveScrollSideCar(props) {
|
|
|
733
648
|
|
|
734
649
|
var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
735
650
|
|
|
736
|
-
var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(RemoveScroll, __assign
|
|
651
|
+
var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(RemoveScroll, filterDataAttrs.__assign({}, props, { ref: ref, sideCar: SideCar }))); });
|
|
737
652
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
738
653
|
var $01b9c$RemoveScroll = ReactRemoveScroll;
|
|
739
654
|
|
|
@@ -752,7 +667,8 @@ var unwrapHost = function (node) {
|
|
|
752
667
|
return node && (node.host || unwrapHost(node.parentNode));
|
|
753
668
|
};
|
|
754
669
|
var correctTargets = function (parent, targets) {
|
|
755
|
-
return targets
|
|
670
|
+
return targets
|
|
671
|
+
.map(function (target) {
|
|
756
672
|
if (parent.contains(target)) {
|
|
757
673
|
return target;
|
|
758
674
|
}
|
|
@@ -762,7 +678,8 @@ var correctTargets = function (parent, targets) {
|
|
|
762
678
|
}
|
|
763
679
|
console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
|
|
764
680
|
return null;
|
|
765
|
-
})
|
|
681
|
+
})
|
|
682
|
+
.filter(function (x) { return Boolean(x); });
|
|
766
683
|
};
|
|
767
684
|
/**
|
|
768
685
|
* Marks everything except given node(or nodes) as aria-hidden
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _extends = require('./extends-
|
|
3
|
+
var _extends = require('./extends-8c5e4b48.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-c575a255.js');
|
|
6
6
|
var $7SXl2$reactdom = require('react-dom');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var classnames = {exports: {}};
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Copyright (c) 2018 Jed Watson.
|
|
7
|
+
Licensed under the MIT License (MIT), see
|
|
8
|
+
http://jedwatson.github.io/classnames
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function (module) {
|
|
@@ -34,14 +34,15 @@ var classnames = {exports: {}};
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
} else if (argType === 'object') {
|
|
37
|
-
if (arg.toString
|
|
38
|
-
for (var key in arg) {
|
|
39
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
40
|
-
classes.push(key);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
} else {
|
|
37
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
44
38
|
classes.push(arg.toString());
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
for (var key in arg) {
|
|
43
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
44
|
+
classes.push(key);
|
|
45
|
+
}
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var index = require('./index-c575a255.js');
|
|
4
5
|
|
|
5
6
|
function _interopNamespace(e) {
|
|
6
7
|
if (e && e.__esModule) return e;
|
|
@@ -22,20 +23,12 @@ function _interopNamespace(e) {
|
|
|
22
23
|
|
|
23
24
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
25
|
|
|
25
|
-
/**
|
|
26
|
-
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
27
|
-
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
28
|
-
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
29
|
-
*
|
|
30
|
-
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
31
|
-
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
|
|
32
|
-
|
|
33
26
|
const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
|
|
34
27
|
);
|
|
35
28
|
let $1746a345f3d73bb7$var$count = 0;
|
|
36
29
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
37
30
|
const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
|
|
38
|
-
|
|
31
|
+
index.$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
39
32
|
if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
40
33
|
);
|
|
41
34
|
}, [
|
|
@@ -1,89 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var _extends = require('./extends-bb8ffacd.js');
|
|
4
|
+
var index = require('./index-c575a255.js');
|
|
6
5
|
|
|
7
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
7
|
|
|
9
8
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
9
|
|
|
11
|
-
/* -------------------------------------------------------------------------------------------------
|
|
12
|
-
* Slot
|
|
13
|
-
* -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
14
|
-
const { children: children , ...slotProps } = props;
|
|
15
|
-
const childrenArray = React.Children.toArray(children);
|
|
16
|
-
const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
|
|
17
|
-
if (slottable) {
|
|
18
|
-
// the new element to render is the one passed as a child of `Slottable`
|
|
19
|
-
const newElement = slottable.props.children;
|
|
20
|
-
const newChildren = childrenArray.map((child)=>{
|
|
21
|
-
if (child === slottable) {
|
|
22
|
-
// because the new element will be the one rendered, we are only interested
|
|
23
|
-
// in grabbing its children (`newElement.props.children`)
|
|
24
|
-
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
25
|
-
return /*#__PURE__*/ React.isValidElement(newElement) ? newElement.props.children : null;
|
|
26
|
-
} else return child;
|
|
27
|
-
});
|
|
28
|
-
return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
|
|
29
|
-
ref: forwardedRef
|
|
30
|
-
}), /*#__PURE__*/ React.isValidElement(newElement) ? /*#__PURE__*/ React.cloneElement(newElement, undefined, newChildren) : null);
|
|
31
|
-
}
|
|
32
|
-
return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends._extends({}, slotProps, {
|
|
33
|
-
ref: forwardedRef
|
|
34
|
-
}), children);
|
|
35
|
-
});
|
|
36
|
-
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
|
|
37
|
-
/* -------------------------------------------------------------------------------------------------
|
|
38
|
-
* SlotClone
|
|
39
|
-
* -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
40
|
-
const { children: children , ...slotProps } = props;
|
|
41
|
-
if (/*#__PURE__*/ React.isValidElement(children)) return /*#__PURE__*/ React.cloneElement(children, {
|
|
42
|
-
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
43
|
-
ref: forwardedRef ? index.$6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
44
|
-
});
|
|
45
|
-
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
46
|
-
});
|
|
47
|
-
$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
|
|
48
|
-
/* -------------------------------------------------------------------------------------------------
|
|
49
|
-
* Slottable
|
|
50
|
-
* -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
|
|
51
|
-
return /*#__PURE__*/ React.createElement(React.Fragment, null, children);
|
|
52
|
-
};
|
|
53
|
-
/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
54
|
-
return /*#__PURE__*/ React.isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
55
|
-
}
|
|
56
|
-
function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
57
|
-
// all child props should override
|
|
58
|
-
const overrideProps = {
|
|
59
|
-
...childProps
|
|
60
|
-
};
|
|
61
|
-
for(const propName in childProps){
|
|
62
|
-
const slotPropValue = slotProps[propName];
|
|
63
|
-
const childPropValue = childProps[propName];
|
|
64
|
-
const isHandler = /^on[A-Z]/.test(propName);
|
|
65
|
-
if (isHandler) {
|
|
66
|
-
// if the handler exists on both, we compose them
|
|
67
|
-
if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{
|
|
68
|
-
childPropValue(...args);
|
|
69
|
-
slotPropValue(...args);
|
|
70
|
-
};
|
|
71
|
-
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
72
|
-
} else if (propName === 'style') overrideProps[propName] = {
|
|
73
|
-
...slotPropValue,
|
|
74
|
-
...childPropValue
|
|
75
|
-
};
|
|
76
|
-
else if (propName === 'className') overrideProps[propName] = [
|
|
77
|
-
slotPropValue,
|
|
78
|
-
childPropValue
|
|
79
|
-
].filter(Boolean).join(' ');
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
...slotProps,
|
|
83
|
-
...overrideProps
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
10
|
// We have resorted to returning slots directly rather than exposing primitives that can then
|
|
88
11
|
// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
|
|
89
12
|
// This is because we encountered issues with generic types that cannot be statically analysed
|
|
@@ -116,7 +39,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
|
116
39
|
const { scope: scope , children: children } = props;
|
|
117
40
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
118
41
|
const composedRefs = index.$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
|
|
119
|
-
return /*#__PURE__*/ React__default["default"].createElement(
|
|
42
|
+
return /*#__PURE__*/ React__default["default"].createElement(index.$5e63c961fc1ce211$export$8c6ed5c666ac1360, {
|
|
120
43
|
ref: composedRefs
|
|
121
44
|
}, children);
|
|
122
45
|
});
|
|
@@ -137,7 +60,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
|
137
60
|
return ()=>void context.itemMap.delete(ref)
|
|
138
61
|
;
|
|
139
62
|
});
|
|
140
|
-
return /*#__PURE__*/ React__default["default"].createElement(
|
|
63
|
+
return /*#__PURE__*/ React__default["default"].createElement(index.$5e63c961fc1ce211$export$8c6ed5c666ac1360, {
|
|
141
64
|
[ITEM_DATA_ATTR]: '',
|
|
142
65
|
ref: composedRefs
|
|
143
66
|
}, children);
|