@arc-ui/components 12.0.0-beta.5 → 12.0.0-beta7
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 +9 -10
- package/dist/Alert/Alert.esm.js +4 -5
- package/dist/Alert/styles.css +1 -0
- package/dist/Align/Align.cjs.js +7 -8
- package/dist/Align/Align.esm.js +1 -2
- package/dist/Align/styles.css +1 -0
- package/dist/AppButton/AppButton.cjs.js +4 -3
- package/dist/AppButton/AppButton.esm.js +4 -3
- package/dist/AppButton/styles.css +1 -0
- package/dist/Avatar/Avatar.cjs.js +7 -8
- package/dist/Avatar/Avatar.esm.js +7 -8
- package/dist/Avatar/styles.css +1 -0
- package/dist/AvatarGroup/AvatarGroup.cjs.js +14 -15
- package/dist/AvatarGroup/AvatarGroup.esm.js +7 -8
- package/dist/AvatarGroup/styles.css +1 -0
- package/dist/Badge/Badge.cjs.js +5 -13
- package/dist/Badge/Badge.esm.js +4 -12
- package/dist/Badge/styles.css +1 -0
- package/dist/Box/Box.cjs.js +6 -24
- package/dist/Box/Box.esm.js +5 -23
- package/dist/Box/styles.css +1 -0
- package/dist/BrandLogo/BrandLogo.cjs.js +3 -4
- package/dist/BrandLogo/BrandLogo.esm.js +3 -4
- package/dist/BrandLogo/styles.css +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +4 -5
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +4 -5
- package/dist/Breadcrumbs/styles.css +1 -0
- package/dist/Button/Button.cjs.js +5 -6
- package/dist/Button/Button.esm.js +5 -6
- package/dist/Button/styles.css +1 -0
- package/dist/ButtonV2/ButtonV2.cjs.js +5 -6
- package/dist/ButtonV2/ButtonV2.esm.js +5 -6
- package/dist/ButtonV2/styles.css +1 -0
- package/dist/Calendar/Calendar.cjs.js +9 -10
- package/dist/Calendar/Calendar.esm.js +9 -10
- package/dist/Calendar/styles.css +1 -0
- package/dist/CardFooter/CardFooter.cjs.js +17 -0
- package/dist/CardFooter/CardFooter.esm.js +9 -0
- package/dist/CardFooter/package.json +7 -0
- package/dist/CardFooter/styles.css +1 -0
- package/dist/CardHeading/CardHeading.cjs.js +14 -0
- package/dist/CardHeading/CardHeading.esm.js +6 -0
- package/dist/CardHeading/package.json +7 -0
- package/dist/CardHeading/styles.css +1 -0
- package/dist/Carousel/Carousel.cjs.js +457 -0
- package/dist/Carousel/Carousel.esm.js +431 -0
- package/dist/Carousel/package.json +7 -0
- package/dist/Carousel/styles.css +1 -0
- package/dist/Checkbox/Checkbox.cjs.js +8 -9
- package/dist/Checkbox/Checkbox.esm.js +8 -9
- package/dist/Checkbox/styles.css +1 -0
- package/dist/Columns/Columns.cjs.js +2 -3
- package/dist/Columns/Columns.esm.js +2 -3
- package/dist/Columns/styles.css +1 -0
- package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +10 -0
- package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +2 -0
- package/dist/ConditionalWrapper/package.json +7 -0
- package/dist/ContentSwitcher/ContentSwitcher.cjs.js +20 -0
- package/dist/ContentSwitcher/ContentSwitcher.esm.js +12 -0
- package/dist/ContentSwitcher/package.json +7 -0
- package/dist/ContentSwitcher/styles.css +1 -0
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +23 -0
- package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +15 -0
- package/dist/ContentSwitcherDropdown/package.json +7 -0
- package/dist/ContentSwitcherDropdown/styles.css +1 -0
- package/dist/DatePicker/DatePicker.cjs.js +18 -22
- package/dist/DatePicker/DatePicker.esm.js +18 -22
- package/dist/DatePicker/styles.css +1 -0
- package/dist/Disclosure/Disclosure.cjs.js +8 -9
- package/dist/Disclosure/Disclosure.esm.js +4 -5
- package/dist/Disclosure/styles.css +1 -0
- package/dist/DisclosureMini/DisclosureMini.cjs.js +5 -6
- package/dist/DisclosureMini/DisclosureMini.esm.js +5 -6
- package/dist/DisclosureMini/styles.css +1 -0
- package/dist/Elevation/Elevation.cjs.js +5 -5
- package/dist/Elevation/Elevation.esm.js +1 -1
- package/dist/Elevation/styles.css +1 -0
- package/dist/Filter/Filter.cjs.js +4 -4
- package/dist/Filter/Filter.esm.js +4 -4
- package/dist/Filter/styles.css +1 -0
- package/dist/FormControl/FormControl.cjs.js +7 -8
- package/dist/FormControl/FormControl.esm.js +7 -8
- package/dist/FormControl/styles.css +1 -0
- package/dist/Grid/Grid.cjs.js +2 -3
- package/dist/Grid/Grid.esm.js +2 -3
- package/dist/Grid/styles.css +1 -0
- package/dist/Group/Group.cjs.js +3 -3
- package/dist/Group/Group.esm.js +3 -3
- package/dist/Group/styles.css +1 -0
- package/dist/Heading/Heading.cjs.js +3 -4
- package/dist/Heading/Heading.esm.js +3 -4
- package/dist/Heading/styles.css +1 -0
- package/dist/HeroBanner/HeroBanner.cjs.js +63 -0
- package/dist/HeroBanner/HeroBanner.esm.js +55 -0
- package/dist/HeroBanner/package.json +7 -0
- package/dist/HeroBanner/styles.css +1 -0
- package/dist/HeroButton/HeroButton.cjs.js +5 -6
- package/dist/HeroButton/HeroButton.esm.js +5 -6
- package/dist/HeroButton/styles.css +1 -0
- package/dist/Hidden/Hidden.cjs.js +5 -5
- package/dist/Hidden/Hidden.esm.js +1 -1
- package/dist/Hidden/styles.css +1 -0
- package/dist/Icon/Icon.cjs.js +3 -4
- package/dist/Icon/Icon.esm.js +3 -4
- package/dist/Icon/styles.css +1 -0
- package/dist/Image/Image.cjs.js +2 -3
- package/dist/Image/Image.esm.js +2 -3
- package/dist/Image/styles.css +1 -0
- package/dist/ImpactCard/ImpactCard.cjs.js +16 -17
- package/dist/ImpactCard/ImpactCard.esm.js +10 -11
- package/dist/ImpactCard/styles.css +1 -0
- package/dist/InformationCard/InformationCard.cjs.js +37 -51
- package/dist/InformationCard/InformationCard.esm.js +34 -48
- package/dist/InformationCard/styles.css +1 -0
- package/dist/Link/Link.cjs.js +11 -12
- package/dist/Link/Link.esm.js +4 -5
- package/dist/Link/styles.css +1 -0
- package/dist/Markup/Markup.cjs.js +6 -6
- package/dist/Markup/Markup.esm.js +2 -2
- package/dist/Markup/styles.css +1 -0
- package/dist/MediaCard/MediaCard.cjs.js +14 -14
- package/dist/MediaCard/MediaCard.esm.js +14 -14
- package/dist/MediaCard/styles.css +1 -0
- package/dist/Modal/Modal.cjs.js +44 -1201
- package/dist/Modal/Modal.esm.js +13 -1169
- package/dist/Modal/styles.css +1 -0
- package/dist/Pagination/Pagination.cjs.js +12 -13
- package/dist/Pagination/Pagination.esm.js +3 -4
- package/dist/Pagination/styles.css +1 -0
- package/dist/PaginationSimple/PaginationSimple.cjs.js +9 -10
- package/dist/PaginationSimple/PaginationSimple.esm.js +3 -4
- package/dist/PaginationSimple/styles.css +1 -0
- package/dist/Poster/Poster.cjs.js +4 -5
- package/dist/Poster/Poster.esm.js +4 -5
- package/dist/Poster/styles.css +1 -0
- package/dist/ProgressBar/ProgressBar.cjs.js +12 -13
- package/dist/ProgressBar/ProgressBar.esm.js +6 -7
- package/dist/ProgressBar/styles.css +1 -0
- package/dist/ProgressStepper/ProgressStepper.cjs.js +5 -6
- package/dist/ProgressStepper/ProgressStepper.esm.js +5 -6
- package/dist/ProgressStepper/styles.css +1 -0
- package/dist/RadioGroup/RadioGroup.cjs.js +8 -9
- package/dist/RadioGroup/RadioGroup.esm.js +8 -9
- package/dist/RadioGroup/styles.css +1 -0
- package/dist/Rule/Rule.cjs.js +5 -5
- package/dist/Rule/Rule.esm.js +2 -2
- package/dist/Rule/styles.css +1 -0
- package/dist/ScrollToTop/ScrollToTop.cjs.js +8 -9
- package/dist/ScrollToTop/ScrollToTop.esm.js +3 -4
- package/dist/ScrollToTop/styles.css +1 -0
- package/dist/Section/Section.cjs.js +2 -2
- package/dist/Section/Section.esm.js +2 -2
- package/dist/Section/styles.css +1 -0
- package/dist/Select/Select.cjs.js +31 -1132
- package/dist/Select/Select.esm.js +18 -1119
- package/dist/Select/styles.css +1 -0
- package/dist/SiteFooter/SiteFooter.cjs.js +7 -8
- package/dist/SiteFooter/SiteFooter.esm.js +7 -8
- package/dist/SiteFooter/styles.css +1 -0
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +11 -13
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +11 -13
- package/dist/SiteHeaderV2/styles.css +1 -0
- package/dist/SkipLink/SkipLink.cjs.js +4 -4
- package/dist/SkipLink/SkipLink.esm.js +3 -3
- package/dist/SkipLink/styles.css +1 -0
- package/dist/Spinner/Spinner.cjs.js +12 -0
- package/dist/Spinner/Spinner.esm.js +4 -0
- package/dist/Spinner/package.json +7 -0
- package/dist/Spinner/styles.css +1 -0
- package/dist/Surface/Surface.cjs.js +2 -2
- package/dist/Surface/Surface.esm.js +2 -2
- package/dist/Surface/styles.css +1 -0
- package/dist/Switch/Switch.cjs.js +16 -18
- package/dist/Switch/Switch.esm.js +12 -14
- package/dist/Switch/styles.css +1 -0
- package/dist/Tabs/Tabs.cjs.js +10 -11
- package/dist/Tabs/Tabs.esm.js +10 -11
- package/dist/Tabs/styles.css +1 -0
- package/dist/Tag/Tag.cjs.js +77 -9
- package/dist/Tag/Tag.esm.js +76 -8
- package/dist/Tag/styles.css +1 -0
- package/dist/Text/Text.cjs.js +3 -4
- package/dist/Text/Text.esm.js +3 -4
- package/dist/Text/styles.css +1 -0
- package/dist/TextArea/TextArea.cjs.js +61 -57
- package/dist/TextArea/TextArea.esm.js +57 -53
- package/dist/TextArea/styles.css +1 -0
- package/dist/TextInput/TextInput.cjs.js +9 -10
- package/dist/TextInput/TextInput.esm.js +9 -10
- package/dist/TextInput/styles.css +1 -0
- package/dist/Theme/Theme.cjs.js +5 -5
- package/dist/Theme/Theme.esm.js +1 -1
- package/dist/Theme/styles.css +1 -0
- package/dist/ThemeIcon/ThemeIcon.cjs.js +3 -4
- package/dist/ThemeIcon/ThemeIcon.esm.js +3 -4
- package/dist/ThemeIcon/styles.css +1 -0
- package/dist/Toast/Toast.cjs.js +8 -10
- package/dist/Toast/Toast.esm.js +8 -10
- package/dist/Toast/styles.css +1 -0
- package/dist/Truncate/Truncate.cjs.js +3 -3
- package/dist/Truncate/Truncate.esm.js +3 -3
- package/dist/Truncate/styles.css +1 -0
- package/dist/TypographyCard/TypographyCard.cjs.js +14 -15
- package/dist/TypographyCard/TypographyCard.esm.js +9 -10
- package/dist/TypographyCard/styles.css +1 -0
- package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
- package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
- package/dist/UniversalHeader/styles.css +1 -0
- package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/VerticalSpace/styles.css +1 -0
- package/dist/VideoPlayer/VideoPlayer.cjs.js +11 -12
- package/dist/VideoPlayer/VideoPlayer.esm.js +8 -9
- package/dist/VideoPlayer/styles.css +1 -0
- package/dist/Visible/Visible.cjs.js +5 -5
- package/dist/Visible/Visible.esm.js +1 -1
- package/dist/Visible/styles.css +1 -0
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +2 -1
- package/dist/VisuallyHidden/VisuallyHidden.esm.js +2 -1
- package/dist/VisuallyHidden/styles.css +1 -0
- package/dist/_shared/cjs/{Avatar-fc0d9b8b.js → Avatar-e6ba0881.js} +11 -12
- package/dist/_shared/cjs/Badge-1f86304b.js +17 -0
- package/dist/_shared/cjs/Box-d177ee32.js +29 -0
- package/dist/_shared/cjs/{BrandLogo-1d2ca2c7.js → BrandLogo-d4a6fd05.js} +7 -8
- package/dist/_shared/cjs/{Breadcrumbs-7af0af2c.js → Breadcrumbs-ca30086e.js} +12 -12
- package/dist/_shared/cjs/{BtIconArrowRight.esm-5989f2ca.js → BtIconArrowRight.esm-6053bb79.js} +0 -8
- package/dist/_shared/cjs/{Button-7d891a89.js → Button-a2150286.js} +12 -13
- package/dist/_shared/cjs/{ButtonV2-b2db3f46.js → ButtonV2-7c437d1a.js} +21 -16
- package/dist/_shared/cjs/{Calendar-649cc139.js → Calendar-9b4b01c8.js} +912 -912
- package/dist/_shared/cjs/{CardFooter-5414bc4f.js → CardFooter-68235081.js} +5 -5
- package/dist/_shared/cjs/CardHeading-88edadd4.js +16 -0
- package/dist/_shared/cjs/{Checkbox-0e423653.js → Checkbox-f6712cc5.js} +17 -12
- package/dist/_shared/cjs/{Columns-1224bdff.js → Columns-5c6bab74.js} +9 -10
- package/dist/_shared/cjs/Combination-854a36ce.js +1203 -0
- package/dist/_shared/cjs/ContentSwitcher-88b00e11.js +98 -0
- package/dist/_shared/cjs/ContentSwitcherDropdown-ba5330ed.js +47 -0
- package/dist/_shared/cjs/DatePicker-61d66a55.js +956 -0
- package/dist/_shared/cjs/{DisclosureMini-c01ecce0.js → DisclosureMini-a46a4838.js} +10 -10
- package/dist/_shared/cjs/{Filter-3b897d92.js → Filter-b6ca2a39.js} +14 -14
- package/dist/_shared/cjs/{FormControl-88d48f42.js → FormControl-0fba93b8.js} +12 -12
- package/dist/_shared/cjs/{Grid-9e91fb3d.js → Grid-69ed0e5c.js} +10 -11
- package/dist/_shared/cjs/{Group-3d5ea240.js → Group-7e6b78c9.js} +9 -9
- package/dist/_shared/cjs/{Heading-fb63844f.js → Heading-25d11688.js} +7 -8
- package/dist/_shared/cjs/{HeroButton-0586a7c4.js → HeroButton-19814c26.js} +14 -14
- package/dist/_shared/cjs/Icon-08447959.js +47 -0
- package/dist/_shared/cjs/{Image-e9a5a326.js → Image-c8969ad9.js} +9 -10
- package/dist/_shared/cjs/{MediaCard-8f41b411.js → MediaCard-7bbe8aa0.js} +18 -18
- package/dist/_shared/cjs/{Poster-b7242b37.js → Poster-96aa286e.js} +13 -14
- package/dist/_shared/cjs/{ProgressStepper-fb8405c2.js → ProgressStepper-c59ec56c.js} +18 -42
- package/dist/_shared/cjs/{RadioGroup-a4186267.js → RadioGroup-11f4b232.js} +14 -14
- package/dist/_shared/cjs/{Section-ecfc659b.js → Section-46646353.js} +5 -5
- package/dist/_shared/cjs/{SiteFooter-7c4072b5.js → SiteFooter-d839f66a.js} +11 -11
- package/dist/_shared/cjs/{SiteHeaderV2-94687999.js → SiteHeaderV2-3793453c.js} +63 -65
- package/dist/_shared/cjs/Spinner-56122c43.js +24 -0
- package/dist/_shared/cjs/Surface-1b5c2ac8.js +175 -0
- package/dist/_shared/cjs/Tabs-30a12f1a.js +93 -0
- package/dist/_shared/cjs/{Text-1c1110a4.js → Text-c187d9ef.js} +7 -8
- package/dist/_shared/cjs/{TextInput-762e2309.js → TextInput-d39f5a80.js} +12 -12
- package/dist/_shared/cjs/{ThemeIcon-ee814862.js → ThemeIcon-7f537bd2.js} +8 -9
- package/dist/_shared/cjs/{Toast-d06a89e0.js → Toast-35c83925.js} +16 -17
- package/dist/_shared/cjs/{UniversalHeader-f6d9c63a.js → UniversalHeader-f9ef793f.js} +6 -6
- package/dist/_shared/cjs/{VerticalSpace-e128ec68.js → VerticalSpace-973deefe.js} +5 -5
- package/dist/_shared/cjs/{VisuallyHidden-b0de4c7b.js → VisuallyHidden-25393f58.js} +3 -2
- package/dist/_shared/cjs/{component-df82bc05.js → component-4e71e3d3.js} +4 -4
- package/dist/_shared/cjs/{Combination-3a639f6d.js → floating-ui.react-dom-08b8b87c.js} +37 -1103
- package/dist/_shared/cjs/{Tabs-75c34f43.js → index-1e7a1fce.js} +11 -96
- package/dist/_shared/cjs/{index-3d629205.js → index-2bf59363.js} +19 -1
- package/dist/_shared/cjs/{index-996dec94.js → index-527f962b.js} +1 -1
- package/dist/_shared/cjs/{index-7aa7f96a.js → index-879e71ee.js} +8 -1
- package/dist/_shared/cjs/index-89c323a4.js +2204 -0
- package/dist/_shared/cjs/{index-41b09e85.js → index-ba3141f5.js} +20 -1
- package/dist/_shared/cjs/{index-0c6319ec.js → index-dbc843d3.js} +1 -1
- package/dist/_shared/cjs/{index-df60851b.js → index.es-c26e8978.js} +20 -6
- package/dist/_shared/cjs/{index.es-16759329.js → index.es-f23456fa.js} +2 -2
- package/dist/_shared/esm/{Avatar-38cc0595.js → Avatar-3537bca7.js} +5 -6
- package/dist/_shared/esm/Badge-7bc80706.js +11 -0
- package/dist/_shared/esm/Box-557fb3b1.js +23 -0
- package/dist/_shared/esm/{BrandLogo-7ed8aeda.js → BrandLogo-45d0d795.js} +2 -3
- package/dist/_shared/esm/{Breadcrumbs-9078b68e.js → Breadcrumbs-bcf9ca79.js} +8 -8
- package/dist/_shared/esm/BtIconArrowRight.esm-93da96bb.js +24 -0
- package/dist/_shared/esm/{Button-dde2b46a.js → Button-0506afa7.js} +4 -5
- package/dist/_shared/esm/{ButtonV2-49cd0615.js → ButtonV2-c83db10c.js} +13 -8
- package/dist/_shared/esm/{Calendar-60591442.js → Calendar-34b10bd5.js} +890 -890
- package/dist/_shared/esm/{CardFooter-c79fb2db.js → CardFooter-bf886438.js} +5 -5
- package/dist/_shared/esm/CardHeading-c65f9fb2.js +10 -0
- package/dist/_shared/esm/{Checkbox-0baca464.js → Checkbox-8195c42c.js} +12 -7
- package/dist/_shared/esm/{Columns-6a8f6fbb.js → Columns-9aa5df4a.js} +1 -2
- package/dist/_shared/esm/Combination-2af75870.js +1163 -0
- package/dist/_shared/esm/ContentSwitcher-bae1f0a7.js +92 -0
- package/dist/_shared/esm/ContentSwitcherDropdown-65291c09.js +41 -0
- package/dist/_shared/esm/DatePicker-aafbdea8.js +927 -0
- package/dist/_shared/esm/{DisclosureMini-38f4c459.js → DisclosureMini-f6d8c9bc.js} +4 -4
- package/dist/_shared/esm/{Filter-49dcf5ce.js → Filter-a5bf3fe3.js} +11 -11
- package/dist/_shared/esm/{FormControl-d873f7fa.js → FormControl-ff671eb8.js} +5 -5
- package/dist/_shared/esm/{Grid-fb9fc522.js → Grid-727d05d6.js} +1 -2
- package/dist/_shared/esm/{Group-66196f07.js → Group-c4f6c745.js} +2 -2
- package/dist/_shared/esm/{Heading-906c7c7c.js → Heading-0a8d3545.js} +2 -3
- package/dist/_shared/esm/{HeroButton-7ea692bf.js → HeroButton-a98767b7.js} +6 -6
- package/dist/_shared/esm/{Icon-512f834f.js → Icon-a5cb17de.js} +16 -6
- package/dist/_shared/esm/{Image-57d08939.js → Image-c1dc10b5.js} +1 -2
- package/dist/_shared/esm/{MediaCard-c12d89ea.js → MediaCard-fdc76670.js} +10 -10
- package/dist/_shared/esm/{Poster-e05a8b45.js → Poster-dc3d7ee8.js} +4 -5
- package/dist/_shared/esm/{ProgressStepper-189ed0f9.js → ProgressStepper-427f24e3.js} +9 -33
- package/dist/_shared/esm/{RadioGroup-8ff17cbb.js → RadioGroup-5b654bee.js} +7 -7
- package/dist/_shared/esm/{Section-1acbc06a.js → Section-c1dc6e37.js} +1 -1
- package/dist/_shared/esm/{SiteFooter-b65497e8.js → SiteFooter-1cdba967.js} +6 -6
- package/dist/_shared/esm/{SiteHeaderV2-784b3bf8.js → SiteHeaderV2-743847f6.js} +9 -11
- package/dist/_shared/esm/Spinner-6704017c.js +18 -0
- package/dist/_shared/esm/Surface-0af6a69a.js +165 -0
- package/dist/_shared/esm/Tabs-d360207d.js +87 -0
- package/dist/_shared/esm/{Text-a46fb76b.js → Text-df93be85.js} +2 -3
- package/dist/_shared/esm/{TextInput-94c7b1a4.js → TextInput-7ab39a54.js} +5 -5
- package/dist/_shared/esm/{ThemeIcon-c2dc41a6.js → ThemeIcon-e1e19266.js} +2 -3
- package/dist/_shared/esm/{Toast-de6ca2f3.js → Toast-abd517c8.js} +6 -7
- package/dist/_shared/esm/{UniversalHeader-456ad60c.js → UniversalHeader-8ebc5322.js} +3 -3
- package/dist/_shared/esm/{VerticalSpace-b07cd8e6.js → VerticalSpace-6a3533db.js} +1 -1
- package/dist/_shared/esm/VisuallyHidden-cf45ac18.js +12 -0
- package/dist/_shared/esm/{component-d0a555cf.js → component-3e60a45e.js} +1 -1
- package/dist/_shared/esm/{Combination-ae3a3f08.js → floating-ui.react-dom-1bb71aae.js} +15 -1079
- package/dist/_shared/esm/{index-f97466e9.js → index-14c7f4da.js} +1 -1
- package/dist/_shared/esm/{index-cace3545.js → index-57d4cb34.js} +33 -33
- package/dist/_shared/esm/{Tabs-21ac7dfe.js → index-89a7c31c.js} +6 -90
- package/dist/_shared/esm/{index-4e58de24.js → index-ac50b180.js} +21 -3
- package/dist/_shared/esm/index-afbf540d.js +2169 -0
- package/dist/_shared/esm/{index-7740883c.js → index-b9923ee4.js} +9 -2
- package/dist/_shared/esm/{index-605031ca.js → index-ce6dee84.js} +53 -53
- package/dist/_shared/esm/index-e969452b.js +41 -0
- package/dist/_shared/esm/{index-fa93ec97.js → index-f2ddcbe2.js} +1 -1
- package/dist/_shared/esm/{index-288c66b5.js → index.es-5496ec12.js} +20 -6
- package/dist/_shared/esm/{index.es-1b6d33c2.js → index.es-932db59a.js} +2 -2
- package/dist/index.es.js +14701 -14060
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +14703 -14059
- package/dist/index.js.map +1 -1
- package/dist/styles.css +5 -3
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Box/Box.d.ts +4 -0
- package/dist/types/components/ButtonV2/ButtonV2.d.ts +2 -2
- package/dist/types/components/CardHeading/index.d.ts +1 -0
- package/dist/types/components/Carousel/Carousel.d.ts +12 -0
- package/dist/types/components/Carousel/helpers/get-slide-config.d.ts +4 -0
- package/dist/types/components/Carousel/helpers/get-slider-position.d.ts +9 -0
- package/dist/types/components/Carousel/helpers/is-last-slide.d.ts +2 -0
- package/dist/types/components/Carousel/helpers/is-slide-hidden.d.ts +2 -0
- package/dist/types/components/Carousel/hooks/use-slides.d.ts +18 -0
- package/dist/types/components/Carousel/index.d.ts +1 -0
- package/dist/types/components/Carousel/types/breakpoints.d.ts +1 -0
- package/dist/types/components/Carousel/types/responsive.d.ts +3 -0
- package/dist/types/components/Carousel/types/screen-sizes.d.ts +2 -0
- package/dist/types/components/Carousel/types/slide-config.d.ts +5 -0
- package/dist/types/components/Carousel/types/slide.d.ts +4 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +28 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +12 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +24 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +17 -0
- package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcher/index.d.ts +1 -0
- package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +37 -0
- package/dist/types/components/ContentSwitcherDropdown/index.d.ts +1 -0
- package/dist/types/components/Disclosure/index.d.ts +1 -1
- package/dist/types/components/Heading/index.d.ts +1 -1
- package/dist/types/components/HeroBanner/HeroBanner.d.ts +52 -0
- package/dist/types/components/HeroBanner/index.d.ts +1 -0
- package/dist/types/components/Icon/Icon.d.ts +2 -2
- package/dist/types/components/ImpactCard/ImpactCard.d.ts +2 -2
- package/dist/types/components/ImpactCard/index.d.ts +1 -1
- package/dist/types/components/InformationCard/InformationCard.d.ts +2 -2
- package/dist/types/components/InformationCard/index.d.ts +1 -1
- package/dist/types/components/MediaCard/MediaCard.d.ts +1 -1
- package/dist/types/components/MediaCard/index.d.ts +1 -1
- package/dist/types/components/Spinner/Spinner.d.ts +16 -0
- package/dist/types/components/Spinner/index.d.ts +1 -0
- package/dist/types/components/Surface/Surface.d.ts +4 -0
- package/dist/types/components/Switch/Switch.d.ts +4 -0
- package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -1
- package/dist/types/components/Truncate/Truncate.d.ts +1 -1
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +2 -2
- package/dist/types/components/TypographyCard/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/helpers/index.d.ts +0 -2
- package/dist/types/styles.d.ts +8 -4
- package/package.json +21 -16
- package/dist/_shared/cjs/ArcIconEclipse.esm-ac777a76.js +0 -28
- package/dist/_shared/cjs/DatePicker-2417e55b.js +0 -550
- package/dist/_shared/cjs/Icon-0ec0c1fb.js +0 -37
- package/dist/_shared/cjs/Surface-8599dbe4.js +0 -57
- package/dist/_shared/cjs/Tag-452048f6.js +0 -44
- package/dist/_shared/cjs/index-039a9d35.js +0 -23
- package/dist/_shared/cjs/index-28447df0.js +0 -23
- package/dist/_shared/cjs/index-dcfdd5da.js +0 -11
- package/dist/_shared/cjs/suffix-modifier-c8a34402.js +0 -19
- package/dist/_shared/esm/ArcIconEclipse.esm-bb48b82a.js +0 -22
- package/dist/_shared/esm/BtIconArrowRight.esm-6a17d0ce.js +0 -31
- package/dist/_shared/esm/DatePicker-c7bb178e.js +0 -539
- package/dist/_shared/esm/Surface-71d21a9e.js +0 -48
- package/dist/_shared/esm/Tag-2513c185.js +0 -38
- package/dist/_shared/esm/VisuallyHidden-06692fd3.js +0 -11
- package/dist/_shared/esm/index-5113ed53.js +0 -24
- package/dist/_shared/esm/index-6028d797.js +0 -21
- package/dist/_shared/esm/index-69089474.js +0 -21
- package/dist/_shared/esm/index-a624de47.js +0 -9
- package/dist/_shared/esm/suffix-modifier-1ce05abe.js +0 -17
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Todo.d.ts +0 -2
- package/dist/types/helpers/filter-data-attrs.d.ts +0 -1
- package/dist/types/helpers/suffix-modifier.d.ts +0 -9
- package/dist/types/private-components/CardHeading/index.d.ts +0 -1
- package/dist/types/private-components/index.d.ts +0 -3
- package/dist/_shared/cjs/{ConditionalWrapper-be3b2625.js → ConditionalWrapper-bf944594.js} +0 -0
- package/dist/_shared/cjs/{index-7e31a45b.js → index-28fbfd5b.js} +52 -52
- package/dist/_shared/cjs/{index-3dd54df1.js → index-76f7dd53.js} +31 -31
- /package/dist/_shared/esm/{ConditionalWrapper-59be8f35.js → ConditionalWrapper-b85979de.js} +0 -0
- /package/dist/types/{private-components → components}/CardFooter/CardFooter.d.ts +0 -0
- /package/dist/types/{private-components → components}/CardFooter/index.d.ts +0 -0
- /package/dist/types/{private-components → components}/CardHeading/CardHeading.d.ts +0 -0
- /package/dist/types/{private-components → components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
- /package/dist/types/{private-components → components}/ConditionalWrapper/index.d.ts +0 -0
|
@@ -1,1122 +1,21 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index.es-5496ec12.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
3
|
-
import React__default, {
|
|
4
|
-
import { $ as $
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import '../_shared/esm/
|
|
17
|
-
import '../_shared/esm/
|
|
18
|
-
import '../_shared/esm/
|
|
19
|
-
import '../_shared/esm/Text-a46fb76b.js';
|
|
20
|
-
import '../_shared/esm/suffix-modifier-1ce05abe.js';
|
|
21
|
-
import '../_shared/esm/VisuallyHidden-06692fd3.js';
|
|
22
|
-
|
|
23
|
-
function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {
|
|
24
|
-
return Math.min(max, Math.max(min, value));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const $cc7e05a45900e73f$var$OPEN_KEYS = [
|
|
28
|
-
' ',
|
|
29
|
-
'Enter',
|
|
30
|
-
'ArrowUp',
|
|
31
|
-
'ArrowDown'
|
|
32
|
-
];
|
|
33
|
-
const $cc7e05a45900e73f$var$SELECTION_KEYS = [
|
|
34
|
-
' ',
|
|
35
|
-
'Enter'
|
|
36
|
-
];
|
|
37
|
-
/* -------------------------------------------------------------------------------------------------
|
|
38
|
-
* Select
|
|
39
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SELECT_NAME = 'Select';
|
|
40
|
-
const [$cc7e05a45900e73f$var$Collection, $cc7e05a45900e73f$var$useCollection, $cc7e05a45900e73f$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($cc7e05a45900e73f$var$SELECT_NAME);
|
|
41
|
-
const [$cc7e05a45900e73f$var$createSelectContext, $cc7e05a45900e73f$export$286727a75dc039bd] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cc7e05a45900e73f$var$SELECT_NAME, [
|
|
42
|
-
$cc7e05a45900e73f$var$createCollectionScope,
|
|
43
|
-
$cf1ac5d9fe0e8206$export$722aac194ae923
|
|
44
|
-
]);
|
|
45
|
-
const $cc7e05a45900e73f$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
|
|
46
|
-
const [$cc7e05a45900e73f$var$SelectProvider, $cc7e05a45900e73f$var$useSelectContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$SELECT_NAME);
|
|
47
|
-
const [$cc7e05a45900e73f$var$SelectNativeOptionsProvider, $cc7e05a45900e73f$var$useSelectNativeOptionsContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$SELECT_NAME);
|
|
48
|
-
const $cc7e05a45900e73f$export$ef9b1a59e592288f = (props)=>{
|
|
49
|
-
const { __scopeSelect: __scopeSelect , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange , dir: dir , name: name , autoComplete: autoComplete , disabled: disabled , required: required } = props;
|
|
50
|
-
const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);
|
|
51
|
-
const [trigger, setTrigger] = useState(null);
|
|
52
|
-
const [valueNode, setValueNode] = useState(null);
|
|
53
|
-
const [valueNodeHasChildren, setValueNodeHasChildren] = useState(false);
|
|
54
|
-
const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
|
|
55
|
-
const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
56
|
-
prop: openProp,
|
|
57
|
-
defaultProp: defaultOpen,
|
|
58
|
-
onChange: onOpenChange
|
|
59
|
-
});
|
|
60
|
-
const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
61
|
-
prop: valueProp,
|
|
62
|
-
defaultProp: defaultValue,
|
|
63
|
-
onChange: onValueChange
|
|
64
|
-
});
|
|
65
|
-
const triggerPointerDownPosRef = useRef(null); // We set this to true by default so that events bubble to forms without JS (SSR)
|
|
66
|
-
const isFormControl = trigger ? Boolean(trigger.closest('form')) : true;
|
|
67
|
-
const [nativeOptionsSet, setNativeOptionsSet] = useState(new Set()); // The native `select` only associates the correct default value if the corresponding
|
|
68
|
-
// `option` is rendered as a child **at the same time** as itself.
|
|
69
|
-
// Because it might take a few renders for our items to gather the information to build
|
|
70
|
-
// the native `option`(s), we generate a key on the `select` to make sure React re-builds it
|
|
71
|
-
// each time the options change.
|
|
72
|
-
const nativeSelectKey = Array.from(nativeOptionsSet).map((option)=>option.props.value
|
|
73
|
-
).join(';');
|
|
74
|
-
return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9, popperScope, /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectProvider, {
|
|
75
|
-
required: required,
|
|
76
|
-
scope: __scopeSelect,
|
|
77
|
-
trigger: trigger,
|
|
78
|
-
onTriggerChange: setTrigger,
|
|
79
|
-
valueNode: valueNode,
|
|
80
|
-
onValueNodeChange: setValueNode,
|
|
81
|
-
valueNodeHasChildren: valueNodeHasChildren,
|
|
82
|
-
onValueNodeHasChildrenChange: setValueNodeHasChildren,
|
|
83
|
-
contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
|
|
84
|
-
value: value,
|
|
85
|
-
onValueChange: setValue,
|
|
86
|
-
open: open,
|
|
87
|
-
onOpenChange: setOpen,
|
|
88
|
-
dir: direction,
|
|
89
|
-
triggerPointerDownPosRef: triggerPointerDownPosRef,
|
|
90
|
-
disabled: disabled
|
|
91
|
-
}, /*#__PURE__*/ createElement($cc7e05a45900e73f$var$Collection.Provider, {
|
|
92
|
-
scope: __scopeSelect
|
|
93
|
-
}, /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectNativeOptionsProvider, {
|
|
94
|
-
scope: props.__scopeSelect,
|
|
95
|
-
onNativeOptionAdd: useCallback((option)=>{
|
|
96
|
-
setNativeOptionsSet((prev)=>new Set(prev).add(option)
|
|
97
|
-
);
|
|
98
|
-
}, []),
|
|
99
|
-
onNativeOptionRemove: useCallback((option)=>{
|
|
100
|
-
setNativeOptionsSet((prev)=>{
|
|
101
|
-
const optionsSet = new Set(prev);
|
|
102
|
-
optionsSet.delete(option);
|
|
103
|
-
return optionsSet;
|
|
104
|
-
});
|
|
105
|
-
}, [])
|
|
106
|
-
}, children)), isFormControl ? /*#__PURE__*/ createElement($cc7e05a45900e73f$var$BubbleSelect, {
|
|
107
|
-
key: nativeSelectKey,
|
|
108
|
-
"aria-hidden": true,
|
|
109
|
-
required: required,
|
|
110
|
-
tabIndex: -1,
|
|
111
|
-
name: name,
|
|
112
|
-
autoComplete: autoComplete,
|
|
113
|
-
value: value // enable form autofill
|
|
114
|
-
,
|
|
115
|
-
onChange: (event)=>setValue(event.target.value)
|
|
116
|
-
,
|
|
117
|
-
disabled: disabled
|
|
118
|
-
}, value === undefined ? /*#__PURE__*/ createElement("option", {
|
|
119
|
-
value: ""
|
|
120
|
-
}) : null, Array.from(nativeOptionsSet)) : null));
|
|
121
|
-
};
|
|
122
|
-
/* -------------------------------------------------------------------------------------------------
|
|
123
|
-
* SelectTrigger
|
|
124
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$TRIGGER_NAME = 'SelectTrigger';
|
|
125
|
-
const $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
126
|
-
const { __scopeSelect: __scopeSelect , disabled: disabled = false , ...triggerProps } = props;
|
|
127
|
-
const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);
|
|
128
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$TRIGGER_NAME, __scopeSelect);
|
|
129
|
-
const isDisabled = context.disabled || disabled;
|
|
130
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onTriggerChange);
|
|
131
|
-
const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);
|
|
132
|
-
const [searchRef, handleTypeaheadSearch, resetTypeahead] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{
|
|
133
|
-
const enabledItems = getItems().filter((item)=>!item.disabled
|
|
134
|
-
);
|
|
135
|
-
const currentItem = enabledItems.find((item)=>item.value === context.value
|
|
136
|
-
);
|
|
137
|
-
const nextItem = $cc7e05a45900e73f$var$findNextItem(enabledItems, search, currentItem);
|
|
138
|
-
if (nextItem !== undefined) context.onValueChange(nextItem.value);
|
|
139
|
-
});
|
|
140
|
-
const handleOpen = ()=>{
|
|
141
|
-
if (!isDisabled) {
|
|
142
|
-
context.onOpenChange(true); // reset typeahead when we open
|
|
143
|
-
resetTypeahead();
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({
|
|
147
|
-
asChild: true
|
|
148
|
-
}, popperScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
149
|
-
type: "button",
|
|
150
|
-
role: "combobox",
|
|
151
|
-
"aria-controls": context.contentId,
|
|
152
|
-
"aria-expanded": context.open,
|
|
153
|
-
"aria-required": context.required,
|
|
154
|
-
"aria-autocomplete": "none",
|
|
155
|
-
dir: context.dir,
|
|
156
|
-
"data-state": context.open ? 'open' : 'closed',
|
|
157
|
-
disabled: isDisabled,
|
|
158
|
-
"data-disabled": isDisabled ? '' : undefined,
|
|
159
|
-
"data-placeholder": $cc7e05a45900e73f$var$shouldShowPlaceholder(context.value) ? '' : undefined
|
|
160
|
-
}, triggerProps, {
|
|
161
|
-
ref: composedRefs // Enable compatibility with native label or custom `Label` "click" for Safari:
|
|
162
|
-
,
|
|
163
|
-
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(triggerProps.onClick, (event)=>{
|
|
164
|
-
// Whilst browsers generally have no issue focusing the trigger when clicking
|
|
165
|
-
// on a label, Safari seems to struggle with the fact that there's no `onClick`.
|
|
166
|
-
// We force `focus` in this case. Note: this doesn't create any other side-effect
|
|
167
|
-
// because we are preventing default in `onPointerDown` so effectively
|
|
168
|
-
// this only runs for a label "click"
|
|
169
|
-
event.currentTarget.focus();
|
|
170
|
-
}),
|
|
171
|
-
onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(triggerProps.onPointerDown, (event)=>{
|
|
172
|
-
// prevent implicit pointer capture
|
|
173
|
-
// https://www.w3.org/TR/pointerevents3/#implicit-pointer-capture
|
|
174
|
-
const target = event.target;
|
|
175
|
-
if (target.hasPointerCapture(event.pointerId)) target.releasePointerCapture(event.pointerId);
|
|
176
|
-
// only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
|
|
177
|
-
// but not when the control key is pressed (avoiding MacOS right click)
|
|
178
|
-
if (event.button === 0 && event.ctrlKey === false) {
|
|
179
|
-
handleOpen();
|
|
180
|
-
context.triggerPointerDownPosRef.current = {
|
|
181
|
-
x: Math.round(event.pageX),
|
|
182
|
-
y: Math.round(event.pageY)
|
|
183
|
-
}; // prevent trigger from stealing focus from the active item after opening.
|
|
184
|
-
event.preventDefault();
|
|
185
|
-
}
|
|
186
|
-
}),
|
|
187
|
-
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(triggerProps.onKeyDown, (event)=>{
|
|
188
|
-
const isTypingAhead = searchRef.current !== '';
|
|
189
|
-
const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
|
|
190
|
-
if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);
|
|
191
|
-
if (isTypingAhead && event.key === ' ') return;
|
|
192
|
-
if ($cc7e05a45900e73f$var$OPEN_KEYS.includes(event.key)) {
|
|
193
|
-
handleOpen();
|
|
194
|
-
event.preventDefault();
|
|
195
|
-
}
|
|
196
|
-
})
|
|
197
|
-
})));
|
|
198
|
-
});
|
|
199
|
-
/* -------------------------------------------------------------------------------------------------
|
|
200
|
-
* SelectValue
|
|
201
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$VALUE_NAME = 'SelectValue';
|
|
202
|
-
const $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
203
|
-
// We ignore `className` and `style` as this part shouldn't be styled.
|
|
204
|
-
const { __scopeSelect: __scopeSelect , className: className , style: style , children: children , placeholder: placeholder = '' , ...valueProps } = props;
|
|
205
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$VALUE_NAME, __scopeSelect);
|
|
206
|
-
const { onValueNodeHasChildrenChange: onValueNodeHasChildrenChange } = context;
|
|
207
|
-
const hasChildren = children !== undefined;
|
|
208
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.onValueNodeChange);
|
|
209
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
210
|
-
onValueNodeHasChildrenChange(hasChildren);
|
|
211
|
-
}, [
|
|
212
|
-
onValueNodeHasChildrenChange,
|
|
213
|
-
hasChildren
|
|
214
|
-
]);
|
|
215
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, valueProps, {
|
|
216
|
-
ref: composedRefs // we don't want events from the portalled `SelectValue` children to bubble
|
|
217
|
-
,
|
|
218
|
-
style: {
|
|
219
|
-
pointerEvents: 'none'
|
|
220
|
-
}
|
|
221
|
-
}), $cc7e05a45900e73f$var$shouldShowPlaceholder(context.value) ? /*#__PURE__*/ createElement(Fragment, null, placeholder) : children);
|
|
222
|
-
});
|
|
223
|
-
const $cc7e05a45900e73f$export$99b400cabb58c515 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
224
|
-
const { __scopeSelect: __scopeSelect , children: children , ...iconProps } = props;
|
|
225
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
226
|
-
"aria-hidden": true
|
|
227
|
-
}, iconProps, {
|
|
228
|
-
ref: forwardedRef
|
|
229
|
-
}), children || '▼');
|
|
230
|
-
});
|
|
231
|
-
const $cc7e05a45900e73f$export$b2af6c9944296213 = (props)=>{
|
|
232
|
-
return /*#__PURE__*/ createElement($f1701beae083dbae$export$602eac185826482c, _extends({
|
|
233
|
-
asChild: true
|
|
234
|
-
}, props));
|
|
235
|
-
};
|
|
236
|
-
/* -------------------------------------------------------------------------------------------------
|
|
237
|
-
* SelectContent
|
|
238
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$CONTENT_NAME = 'SelectContent';
|
|
239
|
-
const $cc7e05a45900e73f$export$c973a4b3cb86a03d = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
240
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, props.__scopeSelect);
|
|
241
|
-
const [fragment, setFragment] = useState(); // setting the fragment in `useLayoutEffect` as `DocumentFragment` doesn't exist on the server
|
|
242
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
243
|
-
setFragment(new DocumentFragment());
|
|
244
|
-
}, []);
|
|
245
|
-
if (!context.open) {
|
|
246
|
-
const frag = fragment;
|
|
247
|
-
return frag ? /*#__PURE__*/ createPortal(/*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectContentProvider, {
|
|
248
|
-
scope: props.__scopeSelect
|
|
249
|
-
}, /*#__PURE__*/ createElement($cc7e05a45900e73f$var$Collection.Slot, {
|
|
250
|
-
scope: props.__scopeSelect
|
|
251
|
-
}, /*#__PURE__*/ createElement("div", null, props.children))), frag) : null;
|
|
252
|
-
}
|
|
253
|
-
return /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectContentImpl, _extends({}, props, {
|
|
254
|
-
ref: forwardedRef
|
|
255
|
-
}));
|
|
256
|
-
});
|
|
257
|
-
/* -------------------------------------------------------------------------------------------------
|
|
258
|
-
* SelectContentImpl
|
|
259
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$CONTENT_MARGIN = 10;
|
|
260
|
-
const [$cc7e05a45900e73f$var$SelectContentProvider, $cc7e05a45900e73f$var$useSelectContentContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$CONTENT_NAME);
|
|
261
|
-
const $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
262
|
-
const { __scopeSelect: __scopeSelect , position: position = 'item-aligned' , onCloseAutoFocus: onCloseAutoFocus , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , side: //
|
|
263
|
-
// PopperContent props
|
|
264
|
-
side , sideOffset: sideOffset , align: align , alignOffset: alignOffset , arrowPadding: arrowPadding , collisionBoundary: collisionBoundary , collisionPadding: collisionPadding , sticky: sticky , hideWhenDetached: hideWhenDetached , avoidCollisions: avoidCollisions , //
|
|
265
|
-
...contentProps } = props;
|
|
266
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);
|
|
267
|
-
const [content, setContent] = useState(null);
|
|
268
|
-
const [viewport, setViewport] = useState(null);
|
|
269
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContent(node)
|
|
270
|
-
);
|
|
271
|
-
const [selectedItem, setSelectedItem] = useState(null);
|
|
272
|
-
const [selectedItemText, setSelectedItemText] = useState(null);
|
|
273
|
-
const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);
|
|
274
|
-
const [isPositioned, setIsPositioned] = useState(false);
|
|
275
|
-
const firstValidItemFoundRef = useRef(false); // aria-hide everything except the content (better supported equivalent to setting aria-modal)
|
|
276
|
-
useEffect(()=>{
|
|
277
|
-
if (content) return hideOthers(content);
|
|
278
|
-
}, [
|
|
279
|
-
content
|
|
280
|
-
]); // Make sure the whole tree has focus guards as our `Select` may be
|
|
281
|
-
// the last element in the DOM (because of the `Portal`)
|
|
282
|
-
$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
|
|
283
|
-
const focusFirst = useCallback((candidates)=>{
|
|
284
|
-
const [firstItem, ...restItems] = getItems().map((item)=>item.ref.current
|
|
285
|
-
);
|
|
286
|
-
const [lastItem] = restItems.slice(-1);
|
|
287
|
-
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
288
|
-
for (const candidate of candidates){
|
|
289
|
-
// if focus is already where we want to go, we don't want to keep going through the candidates
|
|
290
|
-
if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
291
|
-
candidate === null || candidate === void 0 || candidate.scrollIntoView({
|
|
292
|
-
block: 'nearest'
|
|
293
|
-
}); // viewport might have padding so scroll to its edges when focusing first/last items.
|
|
294
|
-
if (candidate === firstItem && viewport) viewport.scrollTop = 0;
|
|
295
|
-
if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;
|
|
296
|
-
candidate === null || candidate === void 0 || candidate.focus();
|
|
297
|
-
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
298
|
-
}
|
|
299
|
-
}, [
|
|
300
|
-
getItems,
|
|
301
|
-
viewport
|
|
302
|
-
]);
|
|
303
|
-
const focusSelectedItem = useCallback(()=>focusFirst([
|
|
304
|
-
selectedItem,
|
|
305
|
-
content
|
|
306
|
-
])
|
|
307
|
-
, [
|
|
308
|
-
focusFirst,
|
|
309
|
-
selectedItem,
|
|
310
|
-
content
|
|
311
|
-
]); // Since this is not dependent on layout, we want to ensure this runs at the same time as
|
|
312
|
-
// other effects across components. Hence why we don't call `focusSelectedItem` inside `position`.
|
|
313
|
-
useEffect(()=>{
|
|
314
|
-
if (isPositioned) focusSelectedItem();
|
|
315
|
-
}, [
|
|
316
|
-
isPositioned,
|
|
317
|
-
focusSelectedItem
|
|
318
|
-
]); // prevent selecting items on `pointerup` in some cases after opening from `pointerdown`
|
|
319
|
-
// and close on `pointerup` outside.
|
|
320
|
-
const { onOpenChange: onOpenChange , triggerPointerDownPosRef: triggerPointerDownPosRef } = context;
|
|
321
|
-
useEffect(()=>{
|
|
322
|
-
if (content) {
|
|
323
|
-
let pointerMoveDelta = {
|
|
324
|
-
x: 0,
|
|
325
|
-
y: 0
|
|
326
|
-
};
|
|
327
|
-
const handlePointerMove = (event)=>{
|
|
328
|
-
var _triggerPointerDownPo, _triggerPointerDownPo2, _triggerPointerDownPo3, _triggerPointerDownPo4;
|
|
329
|
-
pointerMoveDelta = {
|
|
330
|
-
x: Math.abs(Math.round(event.pageX) - ((_triggerPointerDownPo = (_triggerPointerDownPo2 = triggerPointerDownPosRef.current) === null || _triggerPointerDownPo2 === void 0 ? void 0 : _triggerPointerDownPo2.x) !== null && _triggerPointerDownPo !== void 0 ? _triggerPointerDownPo : 0)),
|
|
331
|
-
y: Math.abs(Math.round(event.pageY) - ((_triggerPointerDownPo3 = (_triggerPointerDownPo4 = triggerPointerDownPosRef.current) === null || _triggerPointerDownPo4 === void 0 ? void 0 : _triggerPointerDownPo4.y) !== null && _triggerPointerDownPo3 !== void 0 ? _triggerPointerDownPo3 : 0))
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
const handlePointerUp = (event)=>{
|
|
335
|
-
// If the pointer hasn't moved by a certain threshold then we prevent selecting item on `pointerup`.
|
|
336
|
-
if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) event.preventDefault();
|
|
337
|
-
else // otherwise, if the event was outside the content, close.
|
|
338
|
-
if (!content.contains(event.target)) onOpenChange(false);
|
|
339
|
-
document.removeEventListener('pointermove', handlePointerMove);
|
|
340
|
-
triggerPointerDownPosRef.current = null;
|
|
341
|
-
};
|
|
342
|
-
if (triggerPointerDownPosRef.current !== null) {
|
|
343
|
-
document.addEventListener('pointermove', handlePointerMove);
|
|
344
|
-
document.addEventListener('pointerup', handlePointerUp, {
|
|
345
|
-
capture: true,
|
|
346
|
-
once: true
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
return ()=>{
|
|
350
|
-
document.removeEventListener('pointermove', handlePointerMove);
|
|
351
|
-
document.removeEventListener('pointerup', handlePointerUp, {
|
|
352
|
-
capture: true
|
|
353
|
-
});
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
}, [
|
|
357
|
-
content,
|
|
358
|
-
onOpenChange,
|
|
359
|
-
triggerPointerDownPosRef
|
|
360
|
-
]);
|
|
361
|
-
useEffect(()=>{
|
|
362
|
-
const close = ()=>onOpenChange(false)
|
|
363
|
-
;
|
|
364
|
-
window.addEventListener('blur', close);
|
|
365
|
-
window.addEventListener('resize', close);
|
|
366
|
-
return ()=>{
|
|
367
|
-
window.removeEventListener('blur', close);
|
|
368
|
-
window.removeEventListener('resize', close);
|
|
369
|
-
};
|
|
370
|
-
}, [
|
|
371
|
-
onOpenChange
|
|
372
|
-
]);
|
|
373
|
-
const [searchRef, handleTypeaheadSearch] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{
|
|
374
|
-
const enabledItems = getItems().filter((item)=>!item.disabled
|
|
375
|
-
);
|
|
376
|
-
const currentItem = enabledItems.find((item)=>item.ref.current === document.activeElement
|
|
377
|
-
);
|
|
378
|
-
const nextItem = $cc7e05a45900e73f$var$findNextItem(enabledItems, search, currentItem);
|
|
379
|
-
if (nextItem) /**
|
|
380
|
-
* Imperative focus during keydown is risky so we prevent React's batching updates
|
|
381
|
-
* to avoid potential bugs. See: https://github.com/facebook/react/issues/20332
|
|
382
|
-
*/ setTimeout(()=>nextItem.ref.current.focus()
|
|
383
|
-
);
|
|
384
|
-
});
|
|
385
|
-
const itemRefCallback = useCallback((node, value, disabled)=>{
|
|
386
|
-
const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
|
|
387
|
-
const isSelectedItem = context.value !== undefined && context.value === value;
|
|
388
|
-
if (isSelectedItem || isFirstValidItem) {
|
|
389
|
-
setSelectedItem(node);
|
|
390
|
-
if (isFirstValidItem) firstValidItemFoundRef.current = true;
|
|
391
|
-
}
|
|
392
|
-
}, [
|
|
393
|
-
context.value
|
|
394
|
-
]);
|
|
395
|
-
const handleItemLeave = useCallback(()=>content === null || content === void 0 ? void 0 : content.focus()
|
|
396
|
-
, [
|
|
397
|
-
content
|
|
398
|
-
]);
|
|
399
|
-
const itemTextRefCallback = useCallback((node, value, disabled)=>{
|
|
400
|
-
const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
|
|
401
|
-
const isSelectedItem = context.value !== undefined && context.value === value;
|
|
402
|
-
if (isSelectedItem || isFirstValidItem) setSelectedItemText(node);
|
|
403
|
-
}, [
|
|
404
|
-
context.value
|
|
405
|
-
]);
|
|
406
|
-
const SelectPosition = position === 'popper' ? $cc7e05a45900e73f$var$SelectPopperPosition : $cc7e05a45900e73f$var$SelectItemAlignedPosition; // Silently ignore props that are not supported by `SelectItemAlignedPosition`
|
|
407
|
-
const popperContentProps = SelectPosition === $cc7e05a45900e73f$var$SelectPopperPosition ? {
|
|
408
|
-
side: side,
|
|
409
|
-
sideOffset: sideOffset,
|
|
410
|
-
align: align,
|
|
411
|
-
alignOffset: alignOffset,
|
|
412
|
-
arrowPadding: arrowPadding,
|
|
413
|
-
collisionBoundary: collisionBoundary,
|
|
414
|
-
collisionPadding: collisionPadding,
|
|
415
|
-
sticky: sticky,
|
|
416
|
-
hideWhenDetached: hideWhenDetached,
|
|
417
|
-
avoidCollisions: avoidCollisions
|
|
418
|
-
} : {};
|
|
419
|
-
return /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectContentProvider, {
|
|
420
|
-
scope: __scopeSelect,
|
|
421
|
-
content: content,
|
|
422
|
-
viewport: viewport,
|
|
423
|
-
onViewportChange: setViewport,
|
|
424
|
-
itemRefCallback: itemRefCallback,
|
|
425
|
-
selectedItem: selectedItem,
|
|
426
|
-
onItemLeave: handleItemLeave,
|
|
427
|
-
itemTextRefCallback: itemTextRefCallback,
|
|
428
|
-
focusSelectedItem: focusSelectedItem,
|
|
429
|
-
selectedItemText: selectedItemText,
|
|
430
|
-
position: position,
|
|
431
|
-
isPositioned: isPositioned,
|
|
432
|
-
searchRef: searchRef
|
|
433
|
-
}, /*#__PURE__*/ createElement($01b9c$RemoveScroll, {
|
|
434
|
-
as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
|
|
435
|
-
allowPinchZoom: true
|
|
436
|
-
}, /*#__PURE__*/ createElement($d3863c46a17e8a28$export$20e40289641fbbb6, {
|
|
437
|
-
asChild: true // we make sure we're not trapping once it's been closed
|
|
438
|
-
,
|
|
439
|
-
trapped: context.open,
|
|
440
|
-
onMountAutoFocus: (event)=>{
|
|
441
|
-
// we prevent open autofocus because we manually focus the selected item
|
|
442
|
-
event.preventDefault();
|
|
443
|
-
},
|
|
444
|
-
onUnmountAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(onCloseAutoFocus, (event)=>{
|
|
445
|
-
var _context$trigger;
|
|
446
|
-
(_context$trigger = context.trigger) === null || _context$trigger === void 0 || _context$trigger.focus({
|
|
447
|
-
preventScroll: true
|
|
448
|
-
});
|
|
449
|
-
event.preventDefault();
|
|
450
|
-
})
|
|
451
|
-
}, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, {
|
|
452
|
-
asChild: true,
|
|
453
|
-
disableOutsidePointerEvents: true,
|
|
454
|
-
onEscapeKeyDown: onEscapeKeyDown,
|
|
455
|
-
onPointerDownOutside: onPointerDownOutside // When focus is trapped, a focusout event may still happen.
|
|
456
|
-
,
|
|
457
|
-
onFocusOutside: (event)=>event.preventDefault()
|
|
458
|
-
,
|
|
459
|
-
onDismiss: ()=>context.onOpenChange(false)
|
|
460
|
-
}, /*#__PURE__*/ createElement(SelectPosition, _extends({
|
|
461
|
-
role: "listbox",
|
|
462
|
-
id: context.contentId,
|
|
463
|
-
"data-state": context.open ? 'open' : 'closed',
|
|
464
|
-
dir: context.dir,
|
|
465
|
-
onContextMenu: (event)=>event.preventDefault()
|
|
466
|
-
}, contentProps, popperContentProps, {
|
|
467
|
-
onPlaced: ()=>setIsPositioned(true)
|
|
468
|
-
,
|
|
469
|
-
ref: composedRefs,
|
|
470
|
-
style: {
|
|
471
|
-
// flex layout so we can place the scroll buttons properly
|
|
472
|
-
display: 'flex',
|
|
473
|
-
flexDirection: 'column',
|
|
474
|
-
// reset the outline by default as the content MAY get focused
|
|
475
|
-
outline: 'none',
|
|
476
|
-
...contentProps.style
|
|
477
|
-
},
|
|
478
|
-
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(contentProps.onKeyDown, (event)=>{
|
|
479
|
-
const isModifierKey = event.ctrlKey || event.altKey || event.metaKey; // select should not be navigated using tab key so we prevent it
|
|
480
|
-
if (event.key === 'Tab') event.preventDefault();
|
|
481
|
-
if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);
|
|
482
|
-
if ([
|
|
483
|
-
'ArrowUp',
|
|
484
|
-
'ArrowDown',
|
|
485
|
-
'Home',
|
|
486
|
-
'End'
|
|
487
|
-
].includes(event.key)) {
|
|
488
|
-
const items = getItems().filter((item)=>!item.disabled
|
|
489
|
-
);
|
|
490
|
-
let candidateNodes = items.map((item)=>item.ref.current
|
|
491
|
-
);
|
|
492
|
-
if ([
|
|
493
|
-
'ArrowUp',
|
|
494
|
-
'End'
|
|
495
|
-
].includes(event.key)) candidateNodes = candidateNodes.slice().reverse();
|
|
496
|
-
if ([
|
|
497
|
-
'ArrowUp',
|
|
498
|
-
'ArrowDown'
|
|
499
|
-
].includes(event.key)) {
|
|
500
|
-
const currentElement = event.target;
|
|
501
|
-
const currentIndex = candidateNodes.indexOf(currentElement);
|
|
502
|
-
candidateNodes = candidateNodes.slice(currentIndex + 1);
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Imperative focus during keydown is risky so we prevent React's batching updates
|
|
506
|
-
* to avoid potential bugs. See: https://github.com/facebook/react/issues/20332
|
|
507
|
-
*/ setTimeout(()=>focusFirst(candidateNodes)
|
|
508
|
-
);
|
|
509
|
-
event.preventDefault();
|
|
510
|
-
}
|
|
511
|
-
})
|
|
512
|
-
}))))));
|
|
513
|
-
});
|
|
514
|
-
const $cc7e05a45900e73f$var$SelectItemAlignedPosition = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
515
|
-
const { __scopeSelect: __scopeSelect , onPlaced: onPlaced , ...popperProps } = props;
|
|
516
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);
|
|
517
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);
|
|
518
|
-
const [contentWrapper, setContentWrapper] = useState(null);
|
|
519
|
-
const [content, setContent] = useState(null);
|
|
520
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setContent(node)
|
|
521
|
-
);
|
|
522
|
-
const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);
|
|
523
|
-
const shouldExpandOnScrollRef = useRef(false);
|
|
524
|
-
const shouldRepositionRef = useRef(true);
|
|
525
|
-
const { viewport: viewport , selectedItem: selectedItem , selectedItemText: selectedItemText , focusSelectedItem: focusSelectedItem } = contentContext;
|
|
526
|
-
const position = useCallback(()=>{
|
|
527
|
-
if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
|
|
528
|
-
const triggerRect = context.trigger.getBoundingClientRect(); // -----------------------------------------------------------------------------------------
|
|
529
|
-
// Horizontal positioning
|
|
530
|
-
// -----------------------------------------------------------------------------------------
|
|
531
|
-
const contentRect = content.getBoundingClientRect();
|
|
532
|
-
const valueNodeRect = context.valueNode.getBoundingClientRect();
|
|
533
|
-
const itemTextRect = selectedItemText.getBoundingClientRect();
|
|
534
|
-
if (context.dir !== 'rtl') {
|
|
535
|
-
const itemTextOffset = itemTextRect.left - contentRect.left;
|
|
536
|
-
const left = valueNodeRect.left - itemTextOffset;
|
|
537
|
-
const leftDelta = triggerRect.left - left;
|
|
538
|
-
const minContentWidth = triggerRect.width + leftDelta;
|
|
539
|
-
const contentWidth = Math.max(minContentWidth, contentRect.width);
|
|
540
|
-
const rightEdge = window.innerWidth - $cc7e05a45900e73f$var$CONTENT_MARGIN;
|
|
541
|
-
const clampedLeft = $ae6933e535247d3d$export$7d15b64cf5a3a4c4(left, [
|
|
542
|
-
$cc7e05a45900e73f$var$CONTENT_MARGIN,
|
|
543
|
-
rightEdge - contentWidth
|
|
544
|
-
]);
|
|
545
|
-
contentWrapper.style.minWidth = minContentWidth + 'px';
|
|
546
|
-
contentWrapper.style.left = clampedLeft + 'px';
|
|
547
|
-
} else {
|
|
548
|
-
const itemTextOffset = contentRect.right - itemTextRect.right;
|
|
549
|
-
const right = window.innerWidth - valueNodeRect.right - itemTextOffset;
|
|
550
|
-
const rightDelta = window.innerWidth - triggerRect.right - right;
|
|
551
|
-
const minContentWidth = triggerRect.width + rightDelta;
|
|
552
|
-
const contentWidth = Math.max(minContentWidth, contentRect.width);
|
|
553
|
-
const leftEdge = window.innerWidth - $cc7e05a45900e73f$var$CONTENT_MARGIN;
|
|
554
|
-
const clampedRight = $ae6933e535247d3d$export$7d15b64cf5a3a4c4(right, [
|
|
555
|
-
$cc7e05a45900e73f$var$CONTENT_MARGIN,
|
|
556
|
-
leftEdge - contentWidth
|
|
557
|
-
]);
|
|
558
|
-
contentWrapper.style.minWidth = minContentWidth + 'px';
|
|
559
|
-
contentWrapper.style.right = clampedRight + 'px';
|
|
560
|
-
} // -----------------------------------------------------------------------------------------
|
|
561
|
-
// Vertical positioning
|
|
562
|
-
// -----------------------------------------------------------------------------------------
|
|
563
|
-
const items = getItems();
|
|
564
|
-
const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2;
|
|
565
|
-
const itemsHeight = viewport.scrollHeight;
|
|
566
|
-
const contentStyles = window.getComputedStyle(content);
|
|
567
|
-
const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);
|
|
568
|
-
const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);
|
|
569
|
-
const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);
|
|
570
|
-
const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);
|
|
571
|
-
const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth; // prettier-ignore
|
|
572
|
-
const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);
|
|
573
|
-
const viewportStyles = window.getComputedStyle(viewport);
|
|
574
|
-
const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);
|
|
575
|
-
const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);
|
|
576
|
-
const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - $cc7e05a45900e73f$var$CONTENT_MARGIN;
|
|
577
|
-
const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;
|
|
578
|
-
const selectedItemHalfHeight = selectedItem.offsetHeight / 2;
|
|
579
|
-
const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;
|
|
580
|
-
const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;
|
|
581
|
-
const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;
|
|
582
|
-
const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;
|
|
583
|
-
if (willAlignWithoutTopOverflow) {
|
|
584
|
-
const isLastItem = selectedItem === items[items.length - 1].ref.current;
|
|
585
|
-
contentWrapper.style.bottom = "0px";
|
|
586
|
-
const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;
|
|
587
|
-
const clampedTriggerMiddleToBottomEdge = Math.max(triggerMiddleToBottomEdge, selectedItemHalfHeight + (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth);
|
|
588
|
-
const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;
|
|
589
|
-
contentWrapper.style.height = height + 'px';
|
|
590
|
-
} else {
|
|
591
|
-
const isFirstItem = selectedItem === items[0].ref.current;
|
|
592
|
-
contentWrapper.style.top = "0px";
|
|
593
|
-
const clampedTopEdgeToTriggerMiddle = Math.max(topEdgeToTriggerMiddle, contentBorderTopWidth + viewport.offsetTop + (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight);
|
|
594
|
-
const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;
|
|
595
|
-
contentWrapper.style.height = height + 'px';
|
|
596
|
-
viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;
|
|
597
|
-
}
|
|
598
|
-
contentWrapper.style.margin = `${$cc7e05a45900e73f$var$CONTENT_MARGIN}px 0`;
|
|
599
|
-
contentWrapper.style.minHeight = minContentHeight + 'px';
|
|
600
|
-
contentWrapper.style.maxHeight = availableHeight + 'px'; // -----------------------------------------------------------------------------------------
|
|
601
|
-
onPlaced === null || onPlaced === void 0 || onPlaced(); // we don't want the initial scroll position adjustment to trigger "expand on scroll"
|
|
602
|
-
// so we explicitly turn it on only after they've registered.
|
|
603
|
-
requestAnimationFrame(()=>shouldExpandOnScrollRef.current = true
|
|
604
|
-
);
|
|
605
|
-
}
|
|
606
|
-
}, [
|
|
607
|
-
getItems,
|
|
608
|
-
context.trigger,
|
|
609
|
-
context.valueNode,
|
|
610
|
-
contentWrapper,
|
|
611
|
-
content,
|
|
612
|
-
viewport,
|
|
613
|
-
selectedItem,
|
|
614
|
-
selectedItemText,
|
|
615
|
-
context.dir,
|
|
616
|
-
onPlaced
|
|
617
|
-
]);
|
|
618
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>position()
|
|
619
|
-
, [
|
|
620
|
-
position
|
|
621
|
-
]); // copy z-index from content to wrapper
|
|
622
|
-
const [contentZIndex, setContentZIndex] = useState();
|
|
623
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
624
|
-
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
625
|
-
}, [
|
|
626
|
-
content
|
|
627
|
-
]); // When the viewport becomes scrollable at the top, the scroll up button will mount.
|
|
628
|
-
// Because it is part of the normal flow, it will push down the viewport, thus throwing our
|
|
629
|
-
// trigger => selectedItem alignment off by the amount the viewport was pushed down.
|
|
630
|
-
// We wait for this to happen and then re-run the positining logic one more time to account for it.
|
|
631
|
-
const handleScrollButtonChange = useCallback((node)=>{
|
|
632
|
-
if (node && shouldRepositionRef.current === true) {
|
|
633
|
-
position();
|
|
634
|
-
focusSelectedItem === null || focusSelectedItem === void 0 || focusSelectedItem();
|
|
635
|
-
shouldRepositionRef.current = false;
|
|
636
|
-
}
|
|
637
|
-
}, [
|
|
638
|
-
position,
|
|
639
|
-
focusSelectedItem
|
|
640
|
-
]);
|
|
641
|
-
return /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectViewportProvider, {
|
|
642
|
-
scope: __scopeSelect,
|
|
643
|
-
contentWrapper: contentWrapper,
|
|
644
|
-
shouldExpandOnScrollRef: shouldExpandOnScrollRef,
|
|
645
|
-
onScrollButtonChange: handleScrollButtonChange
|
|
646
|
-
}, /*#__PURE__*/ createElement("div", {
|
|
647
|
-
ref: setContentWrapper,
|
|
648
|
-
style: {
|
|
649
|
-
display: 'flex',
|
|
650
|
-
flexDirection: 'column',
|
|
651
|
-
position: 'fixed',
|
|
652
|
-
zIndex: contentZIndex
|
|
653
|
-
}
|
|
654
|
-
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, popperProps, {
|
|
655
|
-
ref: composedRefs,
|
|
656
|
-
style: {
|
|
657
|
-
// When we get the height of the content, it includes borders. If we were to set
|
|
658
|
-
// the height without having `boxSizing: 'border-box'` it would be too big.
|
|
659
|
-
boxSizing: 'border-box',
|
|
660
|
-
// We need to ensure the content doesn't get taller than the wrapper
|
|
661
|
-
maxHeight: '100%',
|
|
662
|
-
...popperProps.style
|
|
663
|
-
}
|
|
664
|
-
}))));
|
|
665
|
-
});
|
|
666
|
-
const $cc7e05a45900e73f$var$SelectPopperPosition = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
667
|
-
const { __scopeSelect: __scopeSelect , align: align = 'start' , collisionPadding: collisionPadding = $cc7e05a45900e73f$var$CONTENT_MARGIN , ...popperProps } = props;
|
|
668
|
-
const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);
|
|
669
|
-
return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({}, popperScope, popperProps, {
|
|
670
|
-
ref: forwardedRef,
|
|
671
|
-
align: align,
|
|
672
|
-
collisionPadding: collisionPadding,
|
|
673
|
-
style: {
|
|
674
|
-
// Ensure border-box for floating-ui calculations
|
|
675
|
-
boxSizing: 'border-box',
|
|
676
|
-
...popperProps.style,
|
|
677
|
-
'--radix-select-content-transform-origin': 'var(--radix-popper-transform-origin)',
|
|
678
|
-
'--radix-select-content-available-width': 'var(--radix-popper-available-width)',
|
|
679
|
-
'--radix-select-content-available-height': 'var(--radix-popper-available-height)',
|
|
680
|
-
'--radix-select-trigger-width': 'var(--radix-popper-anchor-width)',
|
|
681
|
-
'--radix-select-trigger-height': 'var(--radix-popper-anchor-height)'
|
|
682
|
-
}
|
|
683
|
-
}));
|
|
684
|
-
});
|
|
685
|
-
/* -------------------------------------------------------------------------------------------------
|
|
686
|
-
* SelectViewport
|
|
687
|
-
* -----------------------------------------------------------------------------------------------*/ const [$cc7e05a45900e73f$var$SelectViewportProvider, $cc7e05a45900e73f$var$useSelectViewportContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, {});
|
|
688
|
-
const $cc7e05a45900e73f$var$VIEWPORT_NAME = 'SelectViewport';
|
|
689
|
-
const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
690
|
-
const { __scopeSelect: __scopeSelect , ...viewportProps } = props;
|
|
691
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);
|
|
692
|
-
const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);
|
|
693
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, contentContext.onViewportChange);
|
|
694
|
-
const prevScrollTopRef = useRef(0);
|
|
695
|
-
return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement("style", {
|
|
696
|
-
dangerouslySetInnerHTML: {
|
|
697
|
-
__html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
|
|
698
|
-
}
|
|
699
|
-
}), /*#__PURE__*/ createElement($cc7e05a45900e73f$var$Collection.Slot, {
|
|
700
|
-
scope: __scopeSelect
|
|
701
|
-
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
702
|
-
"data-radix-select-viewport": "",
|
|
703
|
-
role: "presentation"
|
|
704
|
-
}, viewportProps, {
|
|
705
|
-
ref: composedRefs,
|
|
706
|
-
style: {
|
|
707
|
-
// we use position: 'relative' here on the `viewport` so that when we call
|
|
708
|
-
// `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
|
|
709
|
-
// (independent of the scrollUpButton).
|
|
710
|
-
position: 'relative',
|
|
711
|
-
flex: 1,
|
|
712
|
-
overflow: 'auto',
|
|
713
|
-
...viewportProps.style
|
|
714
|
-
},
|
|
715
|
-
onScroll: $e42e1063c40fb3ef$export$b9ecd428b558ff10(viewportProps.onScroll, (event)=>{
|
|
716
|
-
const viewport = event.currentTarget;
|
|
717
|
-
const { contentWrapper: contentWrapper , shouldExpandOnScrollRef: shouldExpandOnScrollRef } = viewportContext;
|
|
718
|
-
if (shouldExpandOnScrollRef !== null && shouldExpandOnScrollRef !== void 0 && shouldExpandOnScrollRef.current && contentWrapper) {
|
|
719
|
-
const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);
|
|
720
|
-
if (scrolledBy > 0) {
|
|
721
|
-
const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2;
|
|
722
|
-
const cssMinHeight = parseFloat(contentWrapper.style.minHeight);
|
|
723
|
-
const cssHeight = parseFloat(contentWrapper.style.height);
|
|
724
|
-
const prevHeight = Math.max(cssMinHeight, cssHeight);
|
|
725
|
-
if (prevHeight < availableHeight) {
|
|
726
|
-
const nextHeight = prevHeight + scrolledBy;
|
|
727
|
-
const clampedNextHeight = Math.min(availableHeight, nextHeight);
|
|
728
|
-
const heightDiff = nextHeight - clampedNextHeight;
|
|
729
|
-
contentWrapper.style.height = clampedNextHeight + 'px';
|
|
730
|
-
if (contentWrapper.style.bottom === '0px') {
|
|
731
|
-
viewport.scrollTop = heightDiff > 0 ? heightDiff : 0; // ensure the content stays pinned to the bottom
|
|
732
|
-
contentWrapper.style.justifyContent = 'flex-end';
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
prevScrollTopRef.current = viewport.scrollTop;
|
|
738
|
-
})
|
|
739
|
-
}))));
|
|
740
|
-
});
|
|
741
|
-
/* -------------------------------------------------------------------------------------------------
|
|
742
|
-
* SelectGroup
|
|
743
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$GROUP_NAME = 'SelectGroup';
|
|
744
|
-
$cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$GROUP_NAME);
|
|
745
|
-
/* -------------------------------------------------------------------------------------------------
|
|
746
|
-
* SelectItem
|
|
747
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_NAME = 'SelectItem';
|
|
748
|
-
const [$cc7e05a45900e73f$var$SelectItemContextProvider, $cc7e05a45900e73f$var$useSelectItemContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$ITEM_NAME);
|
|
749
|
-
const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
750
|
-
const { __scopeSelect: __scopeSelect , value: value , disabled: disabled = false , textValue: textValueProp , ...itemProps } = props;
|
|
751
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ITEM_NAME, __scopeSelect);
|
|
752
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ITEM_NAME, __scopeSelect);
|
|
753
|
-
const isSelected = context.value === value;
|
|
754
|
-
const [textValue, setTextValue] = useState(textValueProp !== null && textValueProp !== void 0 ? textValueProp : '');
|
|
755
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
756
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>{
|
|
757
|
-
var _contentContext$itemR;
|
|
758
|
-
return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);
|
|
759
|
-
});
|
|
760
|
-
const textId = $1746a345f3d73bb7$export$f680877a34711e37();
|
|
761
|
-
const handleSelect = ()=>{
|
|
762
|
-
if (!disabled) {
|
|
763
|
-
context.onValueChange(value);
|
|
764
|
-
context.onOpenChange(false);
|
|
765
|
-
}
|
|
766
|
-
};
|
|
767
|
-
if (value === '') throw new Error('A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.');
|
|
768
|
-
return /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectItemContextProvider, {
|
|
769
|
-
scope: __scopeSelect,
|
|
770
|
-
value: value,
|
|
771
|
-
disabled: disabled,
|
|
772
|
-
textId: textId,
|
|
773
|
-
isSelected: isSelected,
|
|
774
|
-
onItemTextChange: useCallback((node)=>{
|
|
775
|
-
setTextValue((prevTextValue)=>{
|
|
776
|
-
var _node$textContent;
|
|
777
|
-
return prevTextValue || ((_node$textContent = node === null || node === void 0 ? void 0 : node.textContent) !== null && _node$textContent !== void 0 ? _node$textContent : '').trim();
|
|
778
|
-
});
|
|
779
|
-
}, [])
|
|
780
|
-
}, /*#__PURE__*/ createElement($cc7e05a45900e73f$var$Collection.ItemSlot, {
|
|
781
|
-
scope: __scopeSelect,
|
|
782
|
-
value: value,
|
|
783
|
-
disabled: disabled,
|
|
784
|
-
textValue: textValue
|
|
785
|
-
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
786
|
-
role: "option",
|
|
787
|
-
"aria-labelledby": textId,
|
|
788
|
-
"data-highlighted": isFocused ? '' : undefined // `isFocused` caveat fixes stuttering in VoiceOver
|
|
789
|
-
,
|
|
790
|
-
"aria-selected": isSelected && isFocused,
|
|
791
|
-
"data-state": isSelected ? 'checked' : 'unchecked',
|
|
792
|
-
"aria-disabled": disabled || undefined,
|
|
793
|
-
"data-disabled": disabled ? '' : undefined,
|
|
794
|
-
tabIndex: disabled ? undefined : -1
|
|
795
|
-
}, itemProps, {
|
|
796
|
-
ref: composedRefs,
|
|
797
|
-
onFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(itemProps.onFocus, ()=>setIsFocused(true)
|
|
798
|
-
),
|
|
799
|
-
onBlur: $e42e1063c40fb3ef$export$b9ecd428b558ff10(itemProps.onBlur, ()=>setIsFocused(false)
|
|
800
|
-
),
|
|
801
|
-
onPointerUp: $e42e1063c40fb3ef$export$b9ecd428b558ff10(itemProps.onPointerUp, handleSelect),
|
|
802
|
-
onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(itemProps.onPointerMove, (event)=>{
|
|
803
|
-
if (disabled) {
|
|
804
|
-
var _contentContext$onIte;
|
|
805
|
-
(_contentContext$onIte = contentContext.onItemLeave) === null || _contentContext$onIte === void 0 || _contentContext$onIte.call(contentContext);
|
|
806
|
-
} else // even though safari doesn't support this option, it's acceptable
|
|
807
|
-
// as it only means it might scroll a few pixels when using the pointer.
|
|
808
|
-
event.currentTarget.focus({
|
|
809
|
-
preventScroll: true
|
|
810
|
-
});
|
|
811
|
-
}),
|
|
812
|
-
onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(itemProps.onPointerLeave, (event)=>{
|
|
813
|
-
if (event.currentTarget === document.activeElement) {
|
|
814
|
-
var _contentContext$onIte2;
|
|
815
|
-
(_contentContext$onIte2 = contentContext.onItemLeave) === null || _contentContext$onIte2 === void 0 || _contentContext$onIte2.call(contentContext);
|
|
816
|
-
}
|
|
817
|
-
}),
|
|
818
|
-
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(itemProps.onKeyDown, (event)=>{
|
|
819
|
-
var _contentContext$searc;
|
|
820
|
-
const isTypingAhead = ((_contentContext$searc = contentContext.searchRef) === null || _contentContext$searc === void 0 ? void 0 : _contentContext$searc.current) !== '';
|
|
821
|
-
if (isTypingAhead && event.key === ' ') return;
|
|
822
|
-
if ($cc7e05a45900e73f$var$SELECTION_KEYS.includes(event.key)) handleSelect(); // prevent page scroll if using the space key to select an item
|
|
823
|
-
if (event.key === ' ') event.preventDefault();
|
|
824
|
-
})
|
|
825
|
-
}))));
|
|
826
|
-
});
|
|
827
|
-
/* -------------------------------------------------------------------------------------------------
|
|
828
|
-
* SelectItemText
|
|
829
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_TEXT_NAME = 'SelectItemText';
|
|
830
|
-
const $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
831
|
-
// We ignore `className` and `style` as this part shouldn't be styled.
|
|
832
|
-
const { __scopeSelect: __scopeSelect , className: className , style: style , ...itemTextProps } = props;
|
|
833
|
-
const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
|
|
834
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
|
|
835
|
-
const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
|
|
836
|
-
const nativeOptionsContext = $cc7e05a45900e73f$var$useSelectNativeOptionsContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);
|
|
837
|
-
const [itemTextNode, setItemTextNode] = useState(null);
|
|
838
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setItemTextNode(node)
|
|
839
|
-
, itemContext.onItemTextChange, (node)=>{
|
|
840
|
-
var _contentContext$itemT;
|
|
841
|
-
return (_contentContext$itemT = contentContext.itemTextRefCallback) === null || _contentContext$itemT === void 0 ? void 0 : _contentContext$itemT.call(contentContext, node, itemContext.value, itemContext.disabled);
|
|
842
|
-
});
|
|
843
|
-
const textContent = itemTextNode === null || itemTextNode === void 0 ? void 0 : itemTextNode.textContent;
|
|
844
|
-
const nativeOption = useMemo(()=>/*#__PURE__*/ createElement("option", {
|
|
845
|
-
key: itemContext.value,
|
|
846
|
-
value: itemContext.value,
|
|
847
|
-
disabled: itemContext.disabled
|
|
848
|
-
}, textContent)
|
|
849
|
-
, [
|
|
850
|
-
itemContext.disabled,
|
|
851
|
-
itemContext.value,
|
|
852
|
-
textContent
|
|
853
|
-
]);
|
|
854
|
-
const { onNativeOptionAdd: onNativeOptionAdd , onNativeOptionRemove: onNativeOptionRemove } = nativeOptionsContext;
|
|
855
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
856
|
-
onNativeOptionAdd(nativeOption);
|
|
857
|
-
return ()=>onNativeOptionRemove(nativeOption)
|
|
858
|
-
;
|
|
859
|
-
}, [
|
|
860
|
-
onNativeOptionAdd,
|
|
861
|
-
onNativeOptionRemove,
|
|
862
|
-
nativeOption
|
|
863
|
-
]);
|
|
864
|
-
return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
865
|
-
id: itemContext.textId
|
|
866
|
-
}, itemTextProps, {
|
|
867
|
-
ref: composedRefs
|
|
868
|
-
})), itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? /*#__PURE__*/ createPortal(itemTextProps.children, context.valueNode) : null);
|
|
869
|
-
});
|
|
870
|
-
/* -------------------------------------------------------------------------------------------------
|
|
871
|
-
* SelectItemIndicator
|
|
872
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_INDICATOR_NAME = 'SelectItemIndicator';
|
|
873
|
-
const $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
874
|
-
const { __scopeSelect: __scopeSelect , ...itemIndicatorProps } = props;
|
|
875
|
-
const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_INDICATOR_NAME, __scopeSelect);
|
|
876
|
-
return itemContext.isSelected ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
877
|
-
"aria-hidden": true
|
|
878
|
-
}, itemIndicatorProps, {
|
|
879
|
-
ref: forwardedRef
|
|
880
|
-
})) : null;
|
|
881
|
-
});
|
|
882
|
-
/* -------------------------------------------------------------------------------------------------
|
|
883
|
-
* SelectScrollUpButton
|
|
884
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME = 'SelectScrollUpButton';
|
|
885
|
-
const $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
886
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
887
|
-
const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
888
|
-
const [canScrollUp1, setCanScrollUp] = useState(false);
|
|
889
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, viewportContext.onScrollButtonChange);
|
|
890
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
891
|
-
if (contentContext.viewport && contentContext.isPositioned) {
|
|
892
|
-
const viewport = contentContext.viewport;
|
|
893
|
-
function handleScroll() {
|
|
894
|
-
const canScrollUp = viewport.scrollTop > 0;
|
|
895
|
-
setCanScrollUp(canScrollUp);
|
|
896
|
-
}
|
|
897
|
-
handleScroll();
|
|
898
|
-
viewport.addEventListener('scroll', handleScroll);
|
|
899
|
-
return ()=>viewport.removeEventListener('scroll', handleScroll)
|
|
900
|
-
;
|
|
901
|
-
}
|
|
902
|
-
}, [
|
|
903
|
-
contentContext.viewport,
|
|
904
|
-
contentContext.isPositioned
|
|
905
|
-
]);
|
|
906
|
-
return canScrollUp1 ? /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectScrollButtonImpl, _extends({}, props, {
|
|
907
|
-
ref: composedRefs,
|
|
908
|
-
onAutoScroll: ()=>{
|
|
909
|
-
const { viewport: viewport , selectedItem: selectedItem } = contentContext;
|
|
910
|
-
if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;
|
|
911
|
-
}
|
|
912
|
-
})) : null;
|
|
913
|
-
});
|
|
914
|
-
/* -------------------------------------------------------------------------------------------------
|
|
915
|
-
* SelectScrollDownButton
|
|
916
|
-
* -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME = 'SelectScrollDownButton';
|
|
917
|
-
const $cc7e05a45900e73f$export$ff951e476c12189 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
918
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
919
|
-
const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
920
|
-
const [canScrollDown1, setCanScrollDown] = useState(false);
|
|
921
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, viewportContext.onScrollButtonChange);
|
|
922
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
923
|
-
if (contentContext.viewport && contentContext.isPositioned) {
|
|
924
|
-
const viewport = contentContext.viewport;
|
|
925
|
-
function handleScroll() {
|
|
926
|
-
const maxScroll = viewport.scrollHeight - viewport.clientHeight; // we use Math.ceil here because if the UI is zoomed-in
|
|
927
|
-
// `scrollTop` is not always reported as an integer
|
|
928
|
-
const canScrollDown = Math.ceil(viewport.scrollTop) < maxScroll;
|
|
929
|
-
setCanScrollDown(canScrollDown);
|
|
930
|
-
}
|
|
931
|
-
handleScroll();
|
|
932
|
-
viewport.addEventListener('scroll', handleScroll);
|
|
933
|
-
return ()=>viewport.removeEventListener('scroll', handleScroll)
|
|
934
|
-
;
|
|
935
|
-
}
|
|
936
|
-
}, [
|
|
937
|
-
contentContext.viewport,
|
|
938
|
-
contentContext.isPositioned
|
|
939
|
-
]);
|
|
940
|
-
return canScrollDown1 ? /*#__PURE__*/ createElement($cc7e05a45900e73f$var$SelectScrollButtonImpl, _extends({}, props, {
|
|
941
|
-
ref: composedRefs,
|
|
942
|
-
onAutoScroll: ()=>{
|
|
943
|
-
const { viewport: viewport , selectedItem: selectedItem } = contentContext;
|
|
944
|
-
if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;
|
|
945
|
-
}
|
|
946
|
-
})) : null;
|
|
947
|
-
});
|
|
948
|
-
const $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
949
|
-
const { __scopeSelect: __scopeSelect , onAutoScroll: onAutoScroll , ...scrollIndicatorProps } = props;
|
|
950
|
-
const contentContext = $cc7e05a45900e73f$var$useSelectContentContext('SelectScrollButton', __scopeSelect);
|
|
951
|
-
const autoScrollTimerRef = useRef(null);
|
|
952
|
-
const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);
|
|
953
|
-
const clearAutoScrollTimer = useCallback(()=>{
|
|
954
|
-
if (autoScrollTimerRef.current !== null) {
|
|
955
|
-
window.clearInterval(autoScrollTimerRef.current);
|
|
956
|
-
autoScrollTimerRef.current = null;
|
|
957
|
-
}
|
|
958
|
-
}, []);
|
|
959
|
-
useEffect(()=>{
|
|
960
|
-
return ()=>clearAutoScrollTimer()
|
|
961
|
-
;
|
|
962
|
-
}, [
|
|
963
|
-
clearAutoScrollTimer
|
|
964
|
-
]); // When the viewport becomes scrollable on either side, the relevant scroll button will mount.
|
|
965
|
-
// Because it is part of the normal flow, it will push down (top button) or shrink (bottom button)
|
|
966
|
-
// the viewport, potentially causing the active item to now be partially out of view.
|
|
967
|
-
// We re-run the `scrollIntoView` logic to make sure it stays within the viewport.
|
|
968
|
-
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
969
|
-
var _activeItem$ref$curre;
|
|
970
|
-
const activeItem = getItems().find((item)=>item.ref.current === document.activeElement
|
|
971
|
-
);
|
|
972
|
-
activeItem === null || activeItem === void 0 || (_activeItem$ref$curre = activeItem.ref.current) === null || _activeItem$ref$curre === void 0 || _activeItem$ref$curre.scrollIntoView({
|
|
973
|
-
block: 'nearest'
|
|
974
|
-
});
|
|
975
|
-
}, [
|
|
976
|
-
getItems
|
|
977
|
-
]);
|
|
978
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
979
|
-
"aria-hidden": true
|
|
980
|
-
}, scrollIndicatorProps, {
|
|
981
|
-
ref: forwardedRef,
|
|
982
|
-
style: {
|
|
983
|
-
flexShrink: 0,
|
|
984
|
-
...scrollIndicatorProps.style
|
|
985
|
-
},
|
|
986
|
-
onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(scrollIndicatorProps.onPointerDown, ()=>{
|
|
987
|
-
if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);
|
|
988
|
-
}),
|
|
989
|
-
onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(scrollIndicatorProps.onPointerMove, ()=>{
|
|
990
|
-
var _contentContext$onIte3;
|
|
991
|
-
(_contentContext$onIte3 = contentContext.onItemLeave) === null || _contentContext$onIte3 === void 0 || _contentContext$onIte3.call(contentContext);
|
|
992
|
-
if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);
|
|
993
|
-
}),
|
|
994
|
-
onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(scrollIndicatorProps.onPointerLeave, ()=>{
|
|
995
|
-
clearAutoScrollTimer();
|
|
996
|
-
})
|
|
997
|
-
}));
|
|
998
|
-
});
|
|
999
|
-
/* -----------------------------------------------------------------------------------------------*/ function $cc7e05a45900e73f$var$shouldShowPlaceholder(value) {
|
|
1000
|
-
return value === '' || value === undefined;
|
|
1001
|
-
}
|
|
1002
|
-
const $cc7e05a45900e73f$var$BubbleSelect = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
1003
|
-
const { value: value , ...selectProps } = props;
|
|
1004
|
-
const ref = useRef(null);
|
|
1005
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
|
|
1006
|
-
const prevValue = $010c2913dbd2fe3d$export$5cae361ad82dce8b(value); // Bubble value change to parents (e.g form change event)
|
|
1007
|
-
useEffect(()=>{
|
|
1008
|
-
const select = ref.current;
|
|
1009
|
-
const selectProto = window.HTMLSelectElement.prototype;
|
|
1010
|
-
const descriptor = Object.getOwnPropertyDescriptor(selectProto, 'value');
|
|
1011
|
-
const setValue = descriptor.set;
|
|
1012
|
-
if (prevValue !== value && setValue) {
|
|
1013
|
-
const event = new Event('change', {
|
|
1014
|
-
bubbles: true
|
|
1015
|
-
});
|
|
1016
|
-
setValue.call(select, value);
|
|
1017
|
-
select.dispatchEvent(event);
|
|
1018
|
-
}
|
|
1019
|
-
}, [
|
|
1020
|
-
prevValue,
|
|
1021
|
-
value
|
|
1022
|
-
]);
|
|
1023
|
-
/**
|
|
1024
|
-
* We purposefully use a `select` here to support form autofill as much
|
|
1025
|
-
* as possible.
|
|
1026
|
-
*
|
|
1027
|
-
* We purposefully do not add the `value` attribute here to allow the value
|
|
1028
|
-
* to be set programatically and bubble to any parent form `onChange` event.
|
|
1029
|
-
* Adding the `value` will cause React to consider the programatic
|
|
1030
|
-
* dispatch a duplicate and it will get swallowed.
|
|
1031
|
-
*
|
|
1032
|
-
* We use `VisuallyHidden` rather than `display: "none"` because Safari autofill
|
|
1033
|
-
* won't work otherwise.
|
|
1034
|
-
*/ return /*#__PURE__*/ createElement($ea1ef594cf570d83$export$439d29a4e110a164, {
|
|
1035
|
-
asChild: true
|
|
1036
|
-
}, /*#__PURE__*/ createElement("select", _extends({}, selectProps, {
|
|
1037
|
-
ref: composedRefs,
|
|
1038
|
-
defaultValue: value
|
|
1039
|
-
})));
|
|
1040
|
-
});
|
|
1041
|
-
$cc7e05a45900e73f$var$BubbleSelect.displayName = 'BubbleSelect';
|
|
1042
|
-
function $cc7e05a45900e73f$var$useTypeaheadSearch(onSearchChange) {
|
|
1043
|
-
const handleSearchChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onSearchChange);
|
|
1044
|
-
const searchRef = useRef('');
|
|
1045
|
-
const timerRef = useRef(0);
|
|
1046
|
-
const handleTypeaheadSearch = useCallback((key)=>{
|
|
1047
|
-
const search = searchRef.current + key;
|
|
1048
|
-
handleSearchChange(search);
|
|
1049
|
-
(function updateSearch(value) {
|
|
1050
|
-
searchRef.current = value;
|
|
1051
|
-
window.clearTimeout(timerRef.current); // Reset `searchRef` 1 second after it was last updated
|
|
1052
|
-
if (value !== '') timerRef.current = window.setTimeout(()=>updateSearch('')
|
|
1053
|
-
, 1000);
|
|
1054
|
-
})(search);
|
|
1055
|
-
}, [
|
|
1056
|
-
handleSearchChange
|
|
1057
|
-
]);
|
|
1058
|
-
const resetTypeahead = useCallback(()=>{
|
|
1059
|
-
searchRef.current = '';
|
|
1060
|
-
window.clearTimeout(timerRef.current);
|
|
1061
|
-
}, []);
|
|
1062
|
-
useEffect(()=>{
|
|
1063
|
-
return ()=>window.clearTimeout(timerRef.current)
|
|
1064
|
-
;
|
|
1065
|
-
}, []);
|
|
1066
|
-
return [
|
|
1067
|
-
searchRef,
|
|
1068
|
-
handleTypeaheadSearch,
|
|
1069
|
-
resetTypeahead
|
|
1070
|
-
];
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* This is the "meat" of the typeahead matching logic. It takes in a list of items,
|
|
1074
|
-
* the search and the current item, and returns the next item (or `undefined`).
|
|
1075
|
-
*
|
|
1076
|
-
* We normalize the search because if a user has repeatedly pressed a character,
|
|
1077
|
-
* we want the exact same behavior as if we only had that one character
|
|
1078
|
-
* (ie. cycle through items starting with that character)
|
|
1079
|
-
*
|
|
1080
|
-
* We also reorder the items by wrapping the array around the current item.
|
|
1081
|
-
* This is so we always look forward from the current item, and picking the first
|
|
1082
|
-
* item will always be the correct one.
|
|
1083
|
-
*
|
|
1084
|
-
* Finally, if the normalized search is exactly one character, we exclude the
|
|
1085
|
-
* current item from the values because otherwise it would be the first to match always
|
|
1086
|
-
* and focus would never move. This is as opposed to the regular case, where we
|
|
1087
|
-
* don't want focus to move if the current item still matches.
|
|
1088
|
-
*/ function $cc7e05a45900e73f$var$findNextItem(items, search, currentItem) {
|
|
1089
|
-
const isRepeated = search.length > 1 && Array.from(search).every((char)=>char === search[0]
|
|
1090
|
-
);
|
|
1091
|
-
const normalizedSearch = isRepeated ? search[0] : search;
|
|
1092
|
-
const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;
|
|
1093
|
-
let wrappedItems = $cc7e05a45900e73f$var$wrapArray(items, Math.max(currentItemIndex, 0));
|
|
1094
|
-
const excludeCurrentItem = normalizedSearch.length === 1;
|
|
1095
|
-
if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v)=>v !== currentItem
|
|
1096
|
-
);
|
|
1097
|
-
const nextItem = wrappedItems.find((item)=>item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())
|
|
1098
|
-
);
|
|
1099
|
-
return nextItem !== currentItem ? nextItem : undefined;
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Wraps an array around itself at a given start index
|
|
1103
|
-
* Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
|
|
1104
|
-
*/ function $cc7e05a45900e73f$var$wrapArray(array, startIndex) {
|
|
1105
|
-
return array.map((_, index)=>array[(startIndex + index) % array.length]
|
|
1106
|
-
);
|
|
1107
|
-
}
|
|
1108
|
-
const $cc7e05a45900e73f$export$be92b6f5f03c0fe9 = $cc7e05a45900e73f$export$ef9b1a59e592288f;
|
|
1109
|
-
const $cc7e05a45900e73f$export$41fb9f06171c75f4 = $cc7e05a45900e73f$export$3ac1e88a1c0b9f1;
|
|
1110
|
-
const $cc7e05a45900e73f$export$4c8d1a57a761ef94 = $cc7e05a45900e73f$export$e288731fd71264f0;
|
|
1111
|
-
const $cc7e05a45900e73f$export$f04a61298a47a40f = $cc7e05a45900e73f$export$99b400cabb58c515;
|
|
1112
|
-
const $cc7e05a45900e73f$export$602eac185826482c = $cc7e05a45900e73f$export$b2af6c9944296213;
|
|
1113
|
-
const $cc7e05a45900e73f$export$7c6e2c02157bb7d2 = $cc7e05a45900e73f$export$c973a4b3cb86a03d;
|
|
1114
|
-
const $cc7e05a45900e73f$export$d5c6c08dc2d3ca7 = $cc7e05a45900e73f$export$9ed6e7b40248d36d;
|
|
1115
|
-
const $cc7e05a45900e73f$export$6d08773d2e66f8f2 = $cc7e05a45900e73f$export$13ef48a934230896;
|
|
1116
|
-
const $cc7e05a45900e73f$export$d6e5bf9c43ea9319 = $cc7e05a45900e73f$export$3572fb0fb821ff49;
|
|
1117
|
-
const $cc7e05a45900e73f$export$c3468e2714d175fa = $cc7e05a45900e73f$export$6b9198de19accfe6;
|
|
1118
|
-
const $cc7e05a45900e73f$export$2f60d3ec9ad468f2 = $cc7e05a45900e73f$export$d8117927658af6d7;
|
|
1119
|
-
const $cc7e05a45900e73f$export$bf1aedc3039c8d63 = $cc7e05a45900e73f$export$ff951e476c12189;
|
|
3
|
+
import React__default, { useId, useContext, useState } from 'react';
|
|
4
|
+
import { $ as $cc7e05a45900e73f$export$be92b6f5f03c0fe9, a as $cc7e05a45900e73f$export$41fb9f06171c75f4, b as $cc7e05a45900e73f$export$4c8d1a57a761ef94, c as $cc7e05a45900e73f$export$f04a61298a47a40f, d as $cc7e05a45900e73f$export$602eac185826482c, e as $cc7e05a45900e73f$export$7c6e2c02157bb7d2, f as $cc7e05a45900e73f$export$2f60d3ec9ad468f2, g as $cc7e05a45900e73f$export$d5c6c08dc2d3ca7, h as $cc7e05a45900e73f$export$6d08773d2e66f8f2, i as $cc7e05a45900e73f$export$d6e5bf9c43ea9319, j as $cc7e05a45900e73f$export$c3468e2714d175fa, k as $cc7e05a45900e73f$export$bf1aedc3039c8d63 } from '../_shared/esm/index-afbf540d.js';
|
|
5
|
+
import { u as useThemeElement } from '../_shared/esm/component-3e60a45e.js';
|
|
6
|
+
import { F as FormControl } from '../_shared/esm/FormControl-ff671eb8.js';
|
|
7
|
+
import { C as Context } from '../_shared/esm/Surface-0af6a69a.js';
|
|
8
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-e1e19266.js';
|
|
9
|
+
import '../_shared/esm/index-57d4cb34.js';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
import '../_shared/esm/index-14c7f4da.js';
|
|
12
|
+
import '../_shared/esm/index-b9923ee4.js';
|
|
13
|
+
import '../_shared/esm/index-e969452b.js';
|
|
14
|
+
import '../_shared/esm/floating-ui.react-dom-1bb71aae.js';
|
|
15
|
+
import '../_shared/esm/index-ac50b180.js';
|
|
16
|
+
import '../_shared/esm/DisclosureMini-f6d8c9bc.js';
|
|
17
|
+
import '../_shared/esm/Text-df93be85.js';
|
|
18
|
+
import '../_shared/esm/VisuallyHidden-cf45ac18.js';
|
|
1120
19
|
|
|
1121
20
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
1122
21
|
var Select = function (_a) {
|
|
@@ -1155,7 +54,7 @@ var Select = function (_a) {
|
|
|
1155
54
|
"arc-Select-trigger--invalid": errorMessage
|
|
1156
55
|
},
|
|
1157
56
|
_b["arc-Select-trigger--size".concat(selectSize && selectSize.toUpperCase())] = selectSize && selectSize !== "m",
|
|
1158
|
-
_b)), "aria-describedby": ""
|
|
57
|
+
_b)), "aria-describedby": id + (disclosureText ? "-disclosure" : "-helper") }, filterDataAttrs(props)),
|
|
1159
58
|
React__default.createElement($cc7e05a45900e73f$export$4c8d1a57a761ef94, { className: "arc-Select-triggerText", placeholder: placeholder, "aria-label": getSelectedValueName(uncontrolledValue) }),
|
|
1160
59
|
React__default.createElement($cc7e05a45900e73f$export$f04a61298a47a40f, { className: "arc-Select-triggerIcon" },
|
|
1161
60
|
React__default.createElement(ThemeIcon, { size: getIconSize(selectSize), icon: "selectTrigger" }))),
|