@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,153 +1,26 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-
|
|
2
|
-
import { c as classNames } from '../_shared/esm/index-
|
|
3
|
-
import * as React
|
|
4
|
-
import React__default, {
|
|
5
|
-
import { _ as _extends } from '../_shared/esm/extends-
|
|
6
|
-
import $7SXl2$reactdom, {
|
|
7
|
-
import { $ as $5e63c961fc1ce211$export$8c6ed5c666ac1360,
|
|
8
|
-
import { h as hideOthers, $ as $01b9c$RemoveScroll } from '../_shared/esm/index-
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as
|
|
11
|
-
import { I as Icon } from '../_shared/esm/Icon-
|
|
12
|
-
import { F as FormControl } from '../_shared/esm/FormControl-
|
|
13
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
14
|
-
import { A as ArcRootElementContext } from '../_shared/esm/Base-
|
|
15
|
-
import '../_shared/esm/suffix-modifier-
|
|
16
|
-
import '../_shared/esm/BtIconAlert-
|
|
17
|
-
import '../_shared/esm/DisclosureMini-
|
|
18
|
-
import '../_shared/esm/Text-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
2
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default, { useContext, createContext, useEffect, forwardRef, useState, createElement, useRef, useCallback, Fragment, useMemo, useId } from 'react';
|
|
5
|
+
import { _ as _extends } from '../_shared/esm/extends-8cc61aad.js';
|
|
6
|
+
import $7SXl2$reactdom, { createPortal } from 'react-dom';
|
|
7
|
+
import { $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, b as $5e63c961fc1ce211$export$8c6ed5c666ac1360, c as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, d as $8927f6f2acc4f386$export$250ffa63cdc0d034, e as $e42e1063c40fb3ef$export$b9ecd428b558ff10, f as $8927f6f2acc4f386$export$6d1a0317bde7de7f, g as $9f79659886946c16$export$e5c5a5f917a5871c, h as $71cd76cc60e0454e$export$6f32135080cb4c3, i as $010c2913dbd2fe3d$export$5cae361ad82dce8b } from '../_shared/esm/index.module-44714d3f.js';
|
|
8
|
+
import { h as hideOthers, $ as $01b9c$RemoveScroll } from '../_shared/esm/index-41d7af2b.js';
|
|
9
|
+
import { B as BtIconChevronDown2Px } from '../_shared/esm/BtIconChevronDown2Px.esm-345d78fe.js';
|
|
10
|
+
import { B as BtIconTickAlt2Px } from '../_shared/esm/BtIconTickAlt2Px.esm-ce22224b.js';
|
|
11
|
+
import { I as Icon } from '../_shared/esm/Icon-3bfabb14.js';
|
|
12
|
+
import { F as FormControl } from '../_shared/esm/FormControl-aad4288c.js';
|
|
13
|
+
import { C as Context } from '../_shared/esm/Surface-c6e817cd.js';
|
|
14
|
+
import { A as ArcRootElementContext } from '../_shared/esm/Base-f200653c.js';
|
|
15
|
+
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
16
|
+
import '../_shared/esm/BtIconAlert.esm-09346130.js';
|
|
17
|
+
import '../_shared/esm/DisclosureMini-376c013c.js';
|
|
18
|
+
import '../_shared/esm/Text-a3720712.js';
|
|
19
19
|
|
|
20
20
|
function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {
|
|
21
21
|
return Math.min(max, Math.max(min, value));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
|
|
25
|
-
return function handleEvent(event) {
|
|
26
|
-
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
27
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* -------------------------------------------------------------------------------------------------
|
|
32
|
-
* createContextScope
|
|
33
|
-
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
|
|
34
|
-
let defaultContexts = [];
|
|
35
|
-
/* -----------------------------------------------------------------------------------------------
|
|
36
|
-
* createContext
|
|
37
|
-
* ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
38
|
-
const BaseContext = /*#__PURE__*/ createContext(defaultContext);
|
|
39
|
-
const index = defaultContexts.length;
|
|
40
|
-
defaultContexts = [
|
|
41
|
-
...defaultContexts,
|
|
42
|
-
defaultContext
|
|
43
|
-
];
|
|
44
|
-
function Provider(props) {
|
|
45
|
-
const { scope: scope , children: children , ...context } = props;
|
|
46
|
-
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change
|
|
47
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
-
const value = useMemo(()=>context
|
|
49
|
-
, Object.values(context));
|
|
50
|
-
return /*#__PURE__*/ createElement(Context.Provider, {
|
|
51
|
-
value: value
|
|
52
|
-
}, children);
|
|
53
|
-
}
|
|
54
|
-
function useContext$1(consumerName, scope) {
|
|
55
|
-
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext;
|
|
56
|
-
const context = useContext(Context);
|
|
57
|
-
if (context) return context;
|
|
58
|
-
if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context.
|
|
59
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
60
|
-
}
|
|
61
|
-
Provider.displayName = rootComponentName + 'Provider';
|
|
62
|
-
return [
|
|
63
|
-
Provider,
|
|
64
|
-
useContext$1
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
/* -----------------------------------------------------------------------------------------------
|
|
68
|
-
* createScope
|
|
69
|
-
* ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{
|
|
70
|
-
const scopeContexts = defaultContexts.map((defaultContext)=>{
|
|
71
|
-
return /*#__PURE__*/ createContext(defaultContext);
|
|
72
|
-
});
|
|
73
|
-
return function useScope(scope) {
|
|
74
|
-
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
|
|
75
|
-
return useMemo(()=>({
|
|
76
|
-
[`__scope${scopeName}`]: {
|
|
77
|
-
...scope,
|
|
78
|
-
[scopeName]: contexts
|
|
79
|
-
}
|
|
80
|
-
})
|
|
81
|
-
, [
|
|
82
|
-
scope,
|
|
83
|
-
contexts
|
|
84
|
-
]);
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
createScope.scopeName = scopeName;
|
|
88
|
-
return [
|
|
89
|
-
$c512c27ab02ef895$export$fd42f52fd3ae1109,
|
|
90
|
-
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
|
|
91
|
-
];
|
|
92
|
-
}
|
|
93
|
-
/* -------------------------------------------------------------------------------------------------
|
|
94
|
-
* composeContextScopes
|
|
95
|
-
* -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
96
|
-
const baseScope = scopes[0];
|
|
97
|
-
if (scopes.length === 1) return baseScope;
|
|
98
|
-
const createScope1 = ()=>{
|
|
99
|
-
const scopeHooks = scopes.map((createScope)=>({
|
|
100
|
-
useScope: createScope(),
|
|
101
|
-
scopeName: createScope.scopeName
|
|
102
|
-
})
|
|
103
|
-
);
|
|
104
|
-
return function useComposedScopes(overrideScopes) {
|
|
105
|
-
const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{
|
|
106
|
-
// We are calling a hook inside a callback which React warns against to avoid inconsistent
|
|
107
|
-
// renders, however, scoping doesn't have render side effects so we ignore the rule.
|
|
108
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
109
|
-
const scopeProps = useScope(overrideScopes);
|
|
110
|
-
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
111
|
-
return {
|
|
112
|
-
...nextScopes,
|
|
113
|
-
...currentScope
|
|
114
|
-
};
|
|
115
|
-
}, {});
|
|
116
|
-
return useMemo(()=>({
|
|
117
|
-
[`__scope${baseScope.scopeName}`]: nextScopes1
|
|
118
|
-
})
|
|
119
|
-
, [
|
|
120
|
-
nextScopes1
|
|
121
|
-
]);
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
createScope1.scopeName = baseScope.scopeName;
|
|
125
|
-
return createScope1;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Set a given ref to a given value
|
|
130
|
-
* This utility takes care of different types of refs: callback refs and RefObject(s)
|
|
131
|
-
*/ function $6ed0406888f73fc4$var$setRef$1(ref, value) {
|
|
132
|
-
if (typeof ref === 'function') ref(value);
|
|
133
|
-
else if (ref !== null && ref !== undefined) ref.current = value;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* A utility to compose multiple refs together
|
|
137
|
-
* Accepts callback refs and RefObject(s)
|
|
138
|
-
*/ function $6ed0406888f73fc4$export$43e446d32b3d21af$1(...refs) {
|
|
139
|
-
return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef$1(ref, node)
|
|
140
|
-
)
|
|
141
|
-
;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* A custom hook that composes multiple refs
|
|
145
|
-
* Accepts callback refs and RefObject(s)
|
|
146
|
-
*/ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(...refs) {
|
|
147
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
148
|
-
return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af$1(...refs), refs);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
24
|
// We have resorted to returning slots directly rather than exposing primitives that can then
|
|
152
25
|
// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
|
|
153
26
|
// This is because we encountered issues with generic types that cannot be statically analysed
|
|
@@ -179,7 +52,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
|
179
52
|
const CollectionSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
|
|
180
53
|
const { scope: scope , children: children } = props;
|
|
181
54
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
182
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
55
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
|
|
183
56
|
return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
|
|
184
57
|
ref: composedRefs
|
|
185
58
|
}, children);
|
|
@@ -191,7 +64,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
|
191
64
|
const CollectionItemSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
|
|
192
65
|
const { scope: scope , children: children , ...itemData } = props;
|
|
193
66
|
const ref = React__default.useRef(null);
|
|
194
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
67
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
|
|
195
68
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
196
69
|
React__default.useEffect(()=>{
|
|
197
70
|
context.itemMap.set(ref, {
|
|
@@ -241,104 +114,10 @@ const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ createContext(undef
|
|
|
241
114
|
return localDir || globalDir || 'ltr';
|
|
242
115
|
}
|
|
243
116
|
|
|
244
|
-
const $8927f6f2acc4f386$var$NODES$2 = [
|
|
245
|
-
'a',
|
|
246
|
-
'button',
|
|
247
|
-
'div',
|
|
248
|
-
'h2',
|
|
249
|
-
'h3',
|
|
250
|
-
'img',
|
|
251
|
-
'label',
|
|
252
|
-
'li',
|
|
253
|
-
'nav',
|
|
254
|
-
'ol',
|
|
255
|
-
'p',
|
|
256
|
-
'span',
|
|
257
|
-
'svg',
|
|
258
|
-
'ul'
|
|
259
|
-
]; // Temporary while we await merge of this fix:
|
|
260
|
-
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
|
|
261
|
-
// prettier-ignore
|
|
262
|
-
/* -------------------------------------------------------------------------------------------------
|
|
263
|
-
* Primitive
|
|
264
|
-
* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034$2 = $8927f6f2acc4f386$var$NODES$2.reduce((primitive, node)=>{
|
|
265
|
-
const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
266
|
-
const { asChild: asChild , ...primitiveProps } = props;
|
|
267
|
-
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
268
|
-
useEffect(()=>{
|
|
269
|
-
window[Symbol.for('radix-ui')] = true;
|
|
270
|
-
}, []);
|
|
271
|
-
return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
|
|
272
|
-
ref: forwardedRef
|
|
273
|
-
}));
|
|
274
|
-
});
|
|
275
|
-
Node.displayName = `Primitive.${node}`;
|
|
276
|
-
return {
|
|
277
|
-
...primitive,
|
|
278
|
-
[node]: Node
|
|
279
|
-
};
|
|
280
|
-
}, {});
|
|
281
|
-
/* -------------------------------------------------------------------------------------------------
|
|
282
|
-
* Utils
|
|
283
|
-
* -----------------------------------------------------------------------------------------------*/ /**
|
|
284
|
-
* Flush custom event dispatch
|
|
285
|
-
* https://github.com/radix-ui/primitives/pull/1378
|
|
286
|
-
*
|
|
287
|
-
* React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types.
|
|
288
|
-
*
|
|
289
|
-
* Internally, React prioritises events in the following order:
|
|
290
|
-
* - discrete
|
|
291
|
-
* - continuous
|
|
292
|
-
* - default
|
|
293
|
-
*
|
|
294
|
-
* https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350
|
|
295
|
-
*
|
|
296
|
-
* `discrete` is an important distinction as updates within these events are applied immediately.
|
|
297
|
-
* React however, is not able to infer the priority of custom event types due to how they are detected internally.
|
|
298
|
-
* Because of this, it's possible for updates from custom events to be unexpectedly batched when
|
|
299
|
-
* dispatched by another `discrete` event.
|
|
300
|
-
*
|
|
301
|
-
* In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch.
|
|
302
|
-
* This utility should be used when dispatching a custom event from within another `discrete` event, this utility
|
|
303
|
-
* is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event.
|
|
304
|
-
* For example:
|
|
305
|
-
*
|
|
306
|
-
* dispatching a known click 👎
|
|
307
|
-
* target.dispatchEvent(new Event(‘click’))
|
|
308
|
-
*
|
|
309
|
-
* dispatching a custom type within a non-discrete event 👎
|
|
310
|
-
* onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))}
|
|
311
|
-
*
|
|
312
|
-
* dispatching a custom type within a `discrete` event 👍
|
|
313
|
-
* onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))}
|
|
314
|
-
*
|
|
315
|
-
* Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use
|
|
316
|
-
* this utility with them. This is because it's possible for those handlers to be called implicitly during render
|
|
317
|
-
* e.g. when focus is within a component as it is unmounted, or when managing focus on mount.
|
|
318
|
-
*/ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
|
|
319
|
-
if (target) flushSync(()=>target.dispatchEvent(event)
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
325
|
-
* prop or avoid re-executing effects when passed as a dependency
|
|
326
|
-
*/ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
|
|
327
|
-
const callbackRef = useRef(callback);
|
|
328
|
-
useEffect(()=>{
|
|
329
|
-
callbackRef.current = callback;
|
|
330
|
-
}); // https://github.com/facebook/react/issues/19240
|
|
331
|
-
return useMemo(()=>(...args)=>{
|
|
332
|
-
var _callbackRef$current;
|
|
333
|
-
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
334
|
-
}
|
|
335
|
-
, []);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
117
|
/**
|
|
339
118
|
* Listens for when the escape key is down
|
|
340
119
|
*/ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
|
|
341
|
-
const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a
|
|
120
|
+
const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
|
|
342
121
|
useEffect(()=>{
|
|
343
122
|
const handleKeyDown = (event)=>{
|
|
344
123
|
if (event.key === 'Escape') onEscapeKeyDown(event);
|
|
@@ -368,7 +147,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
|
|
|
368
147
|
const [node1, setNode] = useState(null);
|
|
369
148
|
const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
|
|
370
149
|
const [, force] = useState({});
|
|
371
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
150
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNode(node)
|
|
372
151
|
);
|
|
373
152
|
const layers = Array.from(context.layers);
|
|
374
153
|
const [highestLayerWithOutsidePointerEventsDisabled] = [
|
|
@@ -452,7 +231,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
|
|
|
452
231
|
return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
|
|
453
232
|
;
|
|
454
233
|
}, []);
|
|
455
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
234
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
|
|
456
235
|
ref: composedRefs,
|
|
457
236
|
style: {
|
|
458
237
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
|
|
@@ -468,7 +247,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
|
|
|
468
247
|
* to mimic layer dismissing behaviour present in OS.
|
|
469
248
|
* Returns props to pass to the node we want to check for outside events.
|
|
470
249
|
*/ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
|
|
471
|
-
const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a
|
|
250
|
+
const handlePointerDownOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPointerDownOutside);
|
|
472
251
|
const isPointerInsideReactTreeRef = useRef(false);
|
|
473
252
|
const handleClickRef = useRef(()=>{});
|
|
474
253
|
useEffect(()=>{
|
|
@@ -536,7 +315,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
|
|
|
536
315
|
* Listens for when focus happens outside a react subtree.
|
|
537
316
|
* Returns props to pass to the root (node) of the subtree we want to check.
|
|
538
317
|
*/ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
|
|
539
|
-
const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a
|
|
318
|
+
const handleFocusOutside = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onFocusOutside);
|
|
540
319
|
const isFocusInsideReactTreeRef = useRef(false);
|
|
541
320
|
useEffect(()=>{
|
|
542
321
|
const handleFocus = (event)=>{
|
|
@@ -606,82 +385,6 @@ function $3db38b7d1fb3fe6a$var$createFocusGuard() {
|
|
|
606
385
|
return element;
|
|
607
386
|
}
|
|
608
387
|
|
|
609
|
-
/**
|
|
610
|
-
* Set a given ref to a given value
|
|
611
|
-
* This utility takes care of different types of refs: callback refs and RefObject(s)
|
|
612
|
-
*/ function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
613
|
-
if (typeof ref === 'function') ref(value);
|
|
614
|
-
else if (ref !== null && ref !== undefined) ref.current = value;
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* A utility to compose multiple refs together
|
|
618
|
-
* Accepts callback refs and RefObject(s)
|
|
619
|
-
*/ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
620
|
-
return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node)
|
|
621
|
-
)
|
|
622
|
-
;
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* A custom hook that composes multiple refs
|
|
626
|
-
* Accepts callback refs and RefObject(s)
|
|
627
|
-
*/ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
628
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
629
|
-
return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
const $8927f6f2acc4f386$var$NODES$1 = [
|
|
633
|
-
'a',
|
|
634
|
-
'button',
|
|
635
|
-
'div',
|
|
636
|
-
'h2',
|
|
637
|
-
'h3',
|
|
638
|
-
'img',
|
|
639
|
-
'label',
|
|
640
|
-
'li',
|
|
641
|
-
'nav',
|
|
642
|
-
'ol',
|
|
643
|
-
'p',
|
|
644
|
-
'span',
|
|
645
|
-
'svg',
|
|
646
|
-
'ul'
|
|
647
|
-
]; // Temporary while we await merge of this fix:
|
|
648
|
-
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
|
|
649
|
-
// prettier-ignore
|
|
650
|
-
/* -------------------------------------------------------------------------------------------------
|
|
651
|
-
* Primitive
|
|
652
|
-
* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034$1 = $8927f6f2acc4f386$var$NODES$1.reduce((primitive, node)=>{
|
|
653
|
-
const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
654
|
-
const { asChild: asChild , ...primitiveProps } = props;
|
|
655
|
-
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
656
|
-
useEffect(()=>{
|
|
657
|
-
window[Symbol.for('radix-ui')] = true;
|
|
658
|
-
}, []);
|
|
659
|
-
return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
|
|
660
|
-
ref: forwardedRef
|
|
661
|
-
}));
|
|
662
|
-
});
|
|
663
|
-
Node.displayName = `Primitive.${node}`;
|
|
664
|
-
return {
|
|
665
|
-
...primitive,
|
|
666
|
-
[node]: Node
|
|
667
|
-
};
|
|
668
|
-
}, {});
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
672
|
-
* prop or avoid re-executing effects when passed as a dependency
|
|
673
|
-
*/ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
674
|
-
const callbackRef = useRef(callback);
|
|
675
|
-
useEffect(()=>{
|
|
676
|
-
callbackRef.current = callback;
|
|
677
|
-
}); // https://github.com/facebook/react/issues/19240
|
|
678
|
-
return useMemo(()=>(...args)=>{
|
|
679
|
-
var _callbackRef$current;
|
|
680
|
-
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
681
|
-
}
|
|
682
|
-
, []);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
388
|
const $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';
|
|
686
389
|
const $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';
|
|
687
390
|
const $d3863c46a17e8a28$var$EVENT_OPTIONS = {
|
|
@@ -802,7 +505,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ forwardRef((prop
|
|
|
802
505
|
trapped,
|
|
803
506
|
focusScope.paused
|
|
804
507
|
]);
|
|
805
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
508
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
806
509
|
tabIndex: -1
|
|
807
510
|
}, scopeProps, {
|
|
808
511
|
ref: composedRefs,
|
|
@@ -926,11 +629,11 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
|
926
629
|
);
|
|
927
630
|
}
|
|
928
631
|
|
|
929
|
-
const $1746a345f3d73bb7$var$useReactId = React
|
|
632
|
+
const $1746a345f3d73bb7$var$useReactId = React['useId'.toString()] || (()=>undefined
|
|
930
633
|
);
|
|
931
634
|
let $1746a345f3d73bb7$var$count = 0;
|
|
932
635
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
933
|
-
const [id, setId] = React
|
|
636
|
+
const [id, setId] = React.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
|
|
934
637
|
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
935
638
|
if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
936
639
|
);
|
|
@@ -943,92 +646,11 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
|
943
646
|
const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
944
647
|
var _globalThis$document;
|
|
945
648
|
const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;
|
|
946
|
-
return container ? /*#__PURE__*/ $7SXl2$reactdom.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
649
|
+
return container ? /*#__PURE__*/ $7SXl2$reactdom.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
|
|
947
650
|
ref: forwardedRef
|
|
948
651
|
})), container) : null;
|
|
949
652
|
});
|
|
950
653
|
|
|
951
|
-
function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
|
|
952
|
-
const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
|
|
953
|
-
defaultProp: defaultProp,
|
|
954
|
-
onChange: onChange
|
|
955
|
-
});
|
|
956
|
-
const isControlled = prop !== undefined;
|
|
957
|
-
const value1 = isControlled ? prop : uncontrolledProp;
|
|
958
|
-
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
|
|
959
|
-
const setValue = useCallback((nextValue)=>{
|
|
960
|
-
if (isControlled) {
|
|
961
|
-
const setter = nextValue;
|
|
962
|
-
const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
|
|
963
|
-
if (value !== prop) handleChange(value);
|
|
964
|
-
} else setUncontrolledProp(nextValue);
|
|
965
|
-
}, [
|
|
966
|
-
isControlled,
|
|
967
|
-
prop,
|
|
968
|
-
setUncontrolledProp,
|
|
969
|
-
handleChange
|
|
970
|
-
]);
|
|
971
|
-
return [
|
|
972
|
-
value1,
|
|
973
|
-
setValue
|
|
974
|
-
];
|
|
975
|
-
}
|
|
976
|
-
function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp , onChange: onChange }) {
|
|
977
|
-
const uncontrolledState = useState(defaultProp);
|
|
978
|
-
const [value] = uncontrolledState;
|
|
979
|
-
const prevValueRef = useRef(value);
|
|
980
|
-
const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
|
|
981
|
-
useEffect(()=>{
|
|
982
|
-
if (prevValueRef.current !== value) {
|
|
983
|
-
handleChange(value);
|
|
984
|
-
prevValueRef.current = value;
|
|
985
|
-
}
|
|
986
|
-
}, [
|
|
987
|
-
value,
|
|
988
|
-
prevValueRef,
|
|
989
|
-
handleChange
|
|
990
|
-
]);
|
|
991
|
-
return uncontrolledState;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
const $8927f6f2acc4f386$var$NODES = [
|
|
995
|
-
'a',
|
|
996
|
-
'button',
|
|
997
|
-
'div',
|
|
998
|
-
'h2',
|
|
999
|
-
'h3',
|
|
1000
|
-
'img',
|
|
1001
|
-
'label',
|
|
1002
|
-
'li',
|
|
1003
|
-
'nav',
|
|
1004
|
-
'ol',
|
|
1005
|
-
'p',
|
|
1006
|
-
'span',
|
|
1007
|
-
'svg',
|
|
1008
|
-
'ul'
|
|
1009
|
-
]; // Temporary while we await merge of this fix:
|
|
1010
|
-
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
|
|
1011
|
-
// prettier-ignore
|
|
1012
|
-
/* -------------------------------------------------------------------------------------------------
|
|
1013
|
-
* Primitive
|
|
1014
|
-
* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
|
|
1015
|
-
const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1016
|
-
const { asChild: asChild , ...primitiveProps } = props;
|
|
1017
|
-
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
1018
|
-
useEffect(()=>{
|
|
1019
|
-
window[Symbol.for('radix-ui')] = true;
|
|
1020
|
-
}, []);
|
|
1021
|
-
return /*#__PURE__*/ createElement(Comp, _extends({}, primitiveProps, {
|
|
1022
|
-
ref: forwardedRef
|
|
1023
|
-
}));
|
|
1024
|
-
});
|
|
1025
|
-
Node.displayName = `Primitive.${node}`;
|
|
1026
|
-
return {
|
|
1027
|
-
...primitive,
|
|
1028
|
-
[node]: Node
|
|
1029
|
-
};
|
|
1030
|
-
}, {});
|
|
1031
|
-
|
|
1032
654
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1033
655
|
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, props, {
|
|
1034
656
|
ref: forwardedRef,
|
|
@@ -1148,7 +770,7 @@ const $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ forwardRef((props
|
|
|
1148
770
|
const { __scopeSelect: __scopeSelect , disabled: disabled = false , ...triggerProps } = props;
|
|
1149
771
|
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$TRIGGER_NAME, __scopeSelect);
|
|
1150
772
|
const isDisabled = context.disabled || disabled;
|
|
1151
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
773
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onTriggerChange);
|
|
1152
774
|
const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);
|
|
1153
775
|
const [searchRef, handleTypeaheadSearch, resetTypeahead] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{
|
|
1154
776
|
const enabledItems = getItems().filter((item)=>!item.disabled
|
|
@@ -1164,7 +786,7 @@ const $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ forwardRef((props
|
|
|
1164
786
|
resetTypeahead();
|
|
1165
787
|
}
|
|
1166
788
|
};
|
|
1167
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
789
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
1168
790
|
type: "button",
|
|
1169
791
|
role: "combobox",
|
|
1170
792
|
"aria-controls": context.contentId,
|
|
@@ -1224,14 +846,14 @@ const $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ forwardRef((prop
|
|
|
1224
846
|
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$VALUE_NAME, __scopeSelect);
|
|
1225
847
|
const { onValueNodeHasChildrenChange: onValueNodeHasChildrenChange } = context;
|
|
1226
848
|
const hasChildren = children !== undefined;
|
|
1227
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
849
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onValueNodeChange);
|
|
1228
850
|
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
1229
851
|
onValueNodeHasChildrenChange(hasChildren);
|
|
1230
852
|
}, [
|
|
1231
853
|
onValueNodeHasChildrenChange,
|
|
1232
854
|
hasChildren
|
|
1233
855
|
]);
|
|
1234
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
856
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, valueProps, {
|
|
1235
857
|
ref: composedRefs // we don't want events from the portalled `SelectValue` children to bubble
|
|
1236
858
|
,
|
|
1237
859
|
style: {
|
|
@@ -1241,7 +863,7 @@ const $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ forwardRef((prop
|
|
|
1241
863
|
});
|
|
1242
864
|
const $cc7e05a45900e73f$export$99b400cabb58c515 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1243
865
|
const { __scopeSelect: __scopeSelect , children: children , ...iconProps } = props;
|
|
1244
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
866
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
1245
867
|
"aria-hidden": true
|
|
1246
868
|
}, iconProps, {
|
|
1247
869
|
ref: forwardedRef
|
|
@@ -1277,7 +899,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ forwardRef((props,
|
|
|
1277
899
|
const [contentWrapper, setContentWrapper] = useState(null);
|
|
1278
900
|
const [content, setContent] = useState(null);
|
|
1279
901
|
const [viewport, setViewport] = useState(null);
|
|
1280
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
902
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContent(node)
|
|
1281
903
|
);
|
|
1282
904
|
const [selectedItem, setSelectedItem] = useState(null);
|
|
1283
905
|
const [selectedItemText, setSelectedItemText] = useState(null);
|
|
@@ -1637,7 +1259,7 @@ const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ forwardRef((props,
|
|
|
1637
1259
|
const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1638
1260
|
const { __scopeSelect: __scopeSelect , ...viewportProps } = props;
|
|
1639
1261
|
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);
|
|
1640
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
1262
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onViewportChange);
|
|
1641
1263
|
const prevScrollTopRef = useRef(0);
|
|
1642
1264
|
return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement("style", {
|
|
1643
1265
|
dangerouslySetInnerHTML: {
|
|
@@ -1645,7 +1267,7 @@ const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ forwardRef((prop
|
|
|
1645
1267
|
}
|
|
1646
1268
|
}), /*#__PURE__*/ createElement($cc7e05a45900e73f$var$Collection.Slot, {
|
|
1647
1269
|
scope: __scopeSelect
|
|
1648
|
-
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
1270
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
1649
1271
|
"data-radix-select-viewport": "",
|
|
1650
1272
|
role: "presentation"
|
|
1651
1273
|
}, viewportProps, {
|
|
@@ -1700,7 +1322,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ forwardRef((prop
|
|
|
1700
1322
|
const isSelected = context.value === value;
|
|
1701
1323
|
const [textValue, setTextValue] = useState(textValueProp !== null && textValueProp !== void 0 ? textValueProp : '');
|
|
1702
1324
|
const [isFocused, setIsFocused] = useState(false);
|
|
1703
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
1325
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>{
|
|
1704
1326
|
var _contentContext$itemR;
|
|
1705
1327
|
return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);
|
|
1706
1328
|
});
|
|
@@ -1728,7 +1350,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ forwardRef((prop
|
|
|
1728
1350
|
value: value,
|
|
1729
1351
|
disabled: disabled,
|
|
1730
1352
|
textValue: textValue
|
|
1731
|
-
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
1353
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
1732
1354
|
role: "option",
|
|
1733
1355
|
"aria-labelledby": textId,
|
|
1734
1356
|
"data-highlighted": isFocused ? '' : undefined // `isFocused` caveat fixes stuttering in VoiceOver
|
|
@@ -1781,7 +1403,7 @@ const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((prop
|
|
|
1781
1403
|
const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
|
|
1782
1404
|
const nativeOptionsContext = $cc7e05a45900e73f$var$useSelectNativeOptionsContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
|
|
1783
1405
|
const [itemTextNode, setItemTextNode] = useState(null);
|
|
1784
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
1406
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setItemTextNode(node)
|
|
1785
1407
|
, itemContext.onItemTextChange, (node)=>{
|
|
1786
1408
|
var _contentContext$itemT;
|
|
1787
1409
|
return (_contentContext$itemT = contentContext.itemTextRefCallback) === null || _contentContext$itemT === void 0 ? void 0 : _contentContext$itemT.call(contentContext, node, itemContext.value, itemContext.disabled);
|
|
@@ -1807,7 +1429,7 @@ const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((prop
|
|
|
1807
1429
|
onNativeOptionRemove,
|
|
1808
1430
|
nativeOption
|
|
1809
1431
|
]);
|
|
1810
|
-
return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
1432
|
+
return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
1811
1433
|
id: itemContext.textId
|
|
1812
1434
|
}, itemTextProps, {
|
|
1813
1435
|
ref: composedRefs
|
|
@@ -1819,7 +1441,7 @@ const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((prop
|
|
|
1819
1441
|
const $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1820
1442
|
const { __scopeSelect: __scopeSelect , ...itemIndicatorProps } = props;
|
|
1821
1443
|
const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_INDICATOR_NAME, __scopeSelect);
|
|
1822
|
-
return itemContext.isSelected ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
1444
|
+
return itemContext.isSelected ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
1823
1445
|
"aria-hidden": true
|
|
1824
1446
|
}, itemIndicatorProps, {
|
|
1825
1447
|
ref: forwardedRef
|
|
@@ -1831,7 +1453,7 @@ const $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ forwardRef((prop
|
|
|
1831
1453
|
const $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1832
1454
|
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
1833
1455
|
const [canScrollUp1, setCanScrollUp] = useState(false);
|
|
1834
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
1456
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onScrollButtonChange);
|
|
1835
1457
|
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
1836
1458
|
if (contentContext.viewport && contentContext.isPositioned) {
|
|
1837
1459
|
const viewport = contentContext.viewport;
|
|
@@ -1862,7 +1484,7 @@ const $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ forwardRef((prop
|
|
|
1862
1484
|
const $cc7e05a45900e73f$export$ff951e476c12189 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1863
1485
|
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
1864
1486
|
const [canScrollDown1, setCanScrollDown] = useState(false);
|
|
1865
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
1487
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onScrollButtonChange);
|
|
1866
1488
|
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
1867
1489
|
if (contentContext.viewport && contentContext.isPositioned) {
|
|
1868
1490
|
const viewport = contentContext.viewport;
|
|
@@ -1919,7 +1541,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((p
|
|
|
1919
1541
|
}, [
|
|
1920
1542
|
getItems
|
|
1921
1543
|
]);
|
|
1922
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034
|
|
1544
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
1923
1545
|
"aria-hidden": true
|
|
1924
1546
|
}, scrollIndicatorProps, {
|
|
1925
1547
|
ref: forwardedRef,
|
|
@@ -1940,7 +1562,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((p
|
|
|
1940
1562
|
/* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$BubbleSelect = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1941
1563
|
const { value: value , ...selectProps } = props;
|
|
1942
1564
|
const ref = useRef(null);
|
|
1943
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05
|
|
1565
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
|
|
1944
1566
|
const prevValue = $010c2913dbd2fe3d$export$5cae361ad82dce8b(value); // Bubble value change to parents (e.g form change event)
|
|
1945
1567
|
useEffect(()=>{
|
|
1946
1568
|
const select = ref.current;
|
|
@@ -1978,7 +1600,7 @@ const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((p
|
|
|
1978
1600
|
});
|
|
1979
1601
|
$cc7e05a45900e73f$var$BubbleSelect.displayName = 'BubbleSelect';
|
|
1980
1602
|
function $cc7e05a45900e73f$var$useTypeaheadSearch(onSearchChange) {
|
|
1981
|
-
const handleSearchChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a
|
|
1603
|
+
const handleSearchChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onSearchChange);
|
|
1982
1604
|
const searchRef = useRef('');
|
|
1983
1605
|
const timerRef = useRef(0);
|
|
1984
1606
|
const handleTypeaheadSearch = useCallback((key)=>{
|
|
@@ -2056,9 +1678,8 @@ const $cc7e05a45900e73f$export$c3468e2714d175fa = $cc7e05a45900e73f$export$6b919
|
|
|
2056
1678
|
const $cc7e05a45900e73f$export$2f60d3ec9ad468f2 = $cc7e05a45900e73f$export$d8117927658af6d7;
|
|
2057
1679
|
const $cc7e05a45900e73f$export$bf1aedc3039c8d63 = $cc7e05a45900e73f$export$ff951e476c12189;
|
|
2058
1680
|
|
|
2059
|
-
const React = React__default;
|
|
2060
1681
|
const BtIconChevronUp2Px = props =>
|
|
2061
|
-
/*#__PURE__*/
|
|
1682
|
+
/*#__PURE__*/ React__default.createElement(
|
|
2062
1683
|
"svg",
|
|
2063
1684
|
Object.assign(
|
|
2064
1685
|
{
|
|
@@ -2067,14 +1688,13 @@ const BtIconChevronUp2Px = props =>
|
|
|
2067
1688
|
},
|
|
2068
1689
|
props
|
|
2069
1690
|
),
|
|
2070
|
-
/*#__PURE__*/
|
|
2071
|
-
/*#__PURE__*/
|
|
1691
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
1692
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
2072
1693
|
d:
|
|
2073
1694
|
"M28.999,23.5a.99676.99676,0,0,1-.707-.293l-12.28515-12.293L3.708,23.207A.99989.99989,0,0,1,2.294,21.793l13.71289-13.707L29.70605,21.793a.99976.99976,0,0,1-.707,1.707Z",
|
|
2074
1695
|
fill: "currentColor"
|
|
2075
1696
|
})
|
|
2076
1697
|
);
|
|
2077
|
-
var BtIconChevronUp2Px_2 = BtIconChevronUp2Px;
|
|
2078
1698
|
|
|
2079
1699
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
2080
1700
|
var Select = function (_a) {
|
|
@@ -2100,13 +1720,13 @@ var Select = function (_a) {
|
|
|
2100
1720
|
}) }, filterDataAttrs(props)),
|
|
2101
1721
|
React__default.createElement($cc7e05a45900e73f$export$4c8d1a57a761ef94, { asChild: true, "aria-label": getSelectedValueName(selectedValue) }, !selectedValue ? (React__default.createElement("span", { "aria-hidden": true, className: "arc-Select-placeHolder" }, placeholder)) : (React__default.createElement("span", { className: "arc-Select-valueItem" }, getSelectedValueName(selectedValue)))),
|
|
2102
1722
|
React__default.createElement($cc7e05a45900e73f$export$f04a61298a47a40f, { className: "arc-Select-triggerIcon" },
|
|
2103
|
-
React__default.createElement(Icon, { icon:
|
|
2104
|
-
React__default.createElement($cc7e05a45900e73f$export$602eac185826482c, { container: arcRootElement },
|
|
1723
|
+
React__default.createElement(Icon, { icon: BtIconChevronDown2Px, size: 20 }))),
|
|
1724
|
+
React__default.createElement($cc7e05a45900e73f$export$602eac185826482c, { container: arcRootElement || undefined },
|
|
2105
1725
|
React__default.createElement($cc7e05a45900e73f$export$7c6e2c02157bb7d2, { className: classNames("arc-Select-content", {
|
|
2106
1726
|
"arc-Select-content--onDarkSurface": surface === "dark"
|
|
2107
1727
|
}) },
|
|
2108
1728
|
React__default.createElement($cc7e05a45900e73f$export$2f60d3ec9ad468f2, { className: "arc-Select-scrollButton" },
|
|
2109
|
-
React__default.createElement(Icon, { icon:
|
|
1729
|
+
React__default.createElement(Icon, { icon: BtIconChevronUp2Px, size: 16 })),
|
|
2110
1730
|
React__default.createElement($cc7e05a45900e73f$export$d5c6c08dc2d3ca7, null, options.map(function (_a, i) {
|
|
2111
1731
|
var name = _a.name, value = _a.value;
|
|
2112
1732
|
return (React__default.createElement($cc7e05a45900e73f$export$6d08773d2e66f8f2, { className: "arc-Select-item", key: "select-item-".concat(i), value: value },
|
|
@@ -2114,10 +1734,10 @@ var Select = function (_a) {
|
|
|
2114
1734
|
React__default.createElement($cc7e05a45900e73f$export$d6e5bf9c43ea9319, { asChild: true },
|
|
2115
1735
|
React__default.createElement("span", { className: "arc-Select-itemText" }, name))),
|
|
2116
1736
|
React__default.createElement($cc7e05a45900e73f$export$c3468e2714d175fa, null,
|
|
2117
|
-
React__default.createElement(Icon, { icon:
|
|
1737
|
+
React__default.createElement(Icon, { icon: BtIconTickAlt2Px, size: 20 }))));
|
|
2118
1738
|
})),
|
|
2119
1739
|
React__default.createElement($cc7e05a45900e73f$export$bf1aedc3039c8d63, { className: "arc-Select-scrollButton" },
|
|
2120
|
-
React__default.createElement(Icon, { icon:
|
|
1740
|
+
React__default.createElement(Icon, { icon: BtIconChevronDown2Px, size: 16 })))))));
|
|
2121
1741
|
};
|
|
2122
1742
|
|
|
2123
1743
|
export { Select };
|