@arc-ui/components 12.0.0-beta.6 → 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 +3 -3
- package/dist/Alert/Alert.esm.js +3 -3
- package/dist/Alert/styles.css +1 -1
- package/dist/Avatar/Avatar.cjs.js +4 -4
- package/dist/Avatar/Avatar.esm.js +4 -4
- package/dist/AvatarGroup/AvatarGroup.cjs.js +4 -4
- package/dist/AvatarGroup/AvatarGroup.esm.js +4 -4
- package/dist/Badge/Badge.cjs.js +5 -12
- package/dist/Badge/Badge.esm.js +4 -11
- package/dist/Box/Box.cjs.js +6 -24
- package/dist/Box/Box.esm.js +5 -23
- package/dist/Box/styles.css +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
- package/dist/BrandLogo/BrandLogo.esm.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +3 -3
- package/dist/Button/Button.cjs.js +4 -4
- package/dist/Button/Button.esm.js +4 -4
- package/dist/Button/styles.css +1 -1
- package/dist/ButtonV2/ButtonV2.cjs.js +4 -4
- package/dist/ButtonV2/ButtonV2.esm.js +4 -4
- package/dist/ButtonV2/styles.css +1 -1
- package/dist/Calendar/Calendar.cjs.js +6 -6
- package/dist/Calendar/Calendar.esm.js +6 -6
- package/dist/Calendar/styles.css +1 -1
- package/dist/CardFooter/CardFooter.cjs.js +3 -3
- package/dist/CardFooter/CardFooter.esm.js +3 -3
- package/dist/CardFooter/styles.css +1 -1
- package/dist/CardHeading/CardHeading.cjs.js +3 -3
- package/dist/CardHeading/CardHeading.esm.js +3 -3
- 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 +6 -6
- package/dist/Checkbox/Checkbox.esm.js +6 -6
- package/dist/Checkbox/styles.css +1 -1
- 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 +11 -11
- package/dist/DatePicker/DatePicker.esm.js +11 -11
- package/dist/Disclosure/Disclosure.cjs.js +3 -3
- package/dist/Disclosure/Disclosure.esm.js +3 -3
- package/dist/Disclosure/styles.css +1 -1
- package/dist/DisclosureMini/DisclosureMini.cjs.js +4 -4
- package/dist/DisclosureMini/DisclosureMini.esm.js +4 -4
- package/dist/Elevation/styles.css +1 -1
- package/dist/Filter/Filter.cjs.js +2 -2
- package/dist/Filter/Filter.esm.js +2 -2
- package/dist/FormControl/FormControl.cjs.js +5 -5
- package/dist/FormControl/FormControl.esm.js +5 -5
- package/dist/Grid/styles.css +1 -1
- package/dist/Group/Group.cjs.js +2 -2
- package/dist/Group/Group.esm.js +2 -2
- package/dist/Heading/Heading.cjs.js +2 -2
- package/dist/Heading/Heading.esm.js +2 -2
- 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 +4 -4
- package/dist/HeroButton/HeroButton.esm.js +4 -4
- package/dist/HeroButton/styles.css +1 -1
- package/dist/Icon/Icon.cjs.js +2 -2
- package/dist/Icon/Icon.esm.js +2 -2
- package/dist/ImpactCard/ImpactCard.cjs.js +6 -7
- package/dist/ImpactCard/ImpactCard.esm.js +6 -7
- package/dist/ImpactCard/styles.css +1 -1
- package/dist/InformationCard/InformationCard.cjs.js +31 -45
- package/dist/InformationCard/InformationCard.esm.js +31 -45
- package/dist/InformationCard/styles.css +1 -1
- package/dist/Link/Link.cjs.js +2 -2
- package/dist/Link/Link.esm.js +2 -2
- package/dist/Link/styles.css +1 -1
- package/dist/Markup/Markup.cjs.js +1 -1
- package/dist/Markup/Markup.esm.js +1 -1
- package/dist/MediaCard/MediaCard.cjs.js +8 -8
- package/dist/MediaCard/MediaCard.esm.js +8 -8
- package/dist/MediaCard/styles.css +1 -1
- package/dist/Modal/Modal.cjs.js +7 -7
- package/dist/Modal/Modal.esm.js +7 -7
- package/dist/Pagination/Pagination.cjs.js +2 -2
- package/dist/Pagination/Pagination.esm.js +2 -2
- package/dist/PaginationSimple/PaginationSimple.cjs.js +2 -2
- package/dist/PaginationSimple/PaginationSimple.esm.js +2 -2
- package/dist/Poster/Poster.cjs.js +2 -2
- package/dist/Poster/Poster.esm.js +2 -2
- package/dist/ProgressBar/ProgressBar.cjs.js +4 -4
- package/dist/ProgressBar/ProgressBar.esm.js +4 -4
- package/dist/ProgressStepper/ProgressStepper.cjs.js +3 -3
- package/dist/ProgressStepper/ProgressStepper.esm.js +3 -3
- package/dist/ProgressStepper/styles.css +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +6 -6
- package/dist/RadioGroup/RadioGroup.esm.js +6 -6
- package/dist/RadioGroup/styles.css +1 -1
- package/dist/Rule/Rule.cjs.js +1 -1
- package/dist/Rule/Rule.esm.js +1 -1
- package/dist/Rule/styles.css +1 -1
- package/dist/ScrollToTop/ScrollToTop.cjs.js +2 -2
- package/dist/ScrollToTop/ScrollToTop.esm.js +2 -2
- package/dist/ScrollToTop/styles.css +1 -1
- package/dist/Select/Select.cjs.js +26 -2201
- package/dist/Select/Select.esm.js +16 -2172
- package/dist/Select/styles.css +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +5 -5
- package/dist/SiteFooter/SiteFooter.esm.js +5 -5
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +8 -8
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +8 -8
- 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 +1 -1
- package/dist/Surface/Surface.esm.js +1 -1
- package/dist/Surface/styles.css +1 -1
- package/dist/Switch/Switch.cjs.js +7 -7
- package/dist/Switch/Switch.esm.js +7 -7
- package/dist/Switch/styles.css +1 -1
- package/dist/Tabs/Tabs.cjs.js +9 -8
- package/dist/Tabs/Tabs.esm.js +9 -8
- package/dist/Tag/Tag.cjs.js +77 -8
- package/dist/Tag/Tag.esm.js +76 -7
- package/dist/Tag/styles.css +1 -1
- package/dist/Text/Text.cjs.js +2 -2
- package/dist/Text/Text.esm.js +2 -2
- package/dist/TextArea/TextArea.cjs.js +44 -39
- package/dist/TextArea/TextArea.esm.js +44 -39
- package/dist/TextInput/TextInput.cjs.js +7 -7
- package/dist/TextInput/TextInput.esm.js +7 -7
- package/dist/Theme/styles.css +1 -1
- package/dist/ThemeIcon/ThemeIcon.cjs.js +2 -2
- package/dist/ThemeIcon/ThemeIcon.esm.js +2 -2
- package/dist/ThemeIcon/styles.css +1 -1
- package/dist/Toast/Toast.cjs.js +7 -7
- package/dist/Toast/Toast.esm.js +7 -7
- package/dist/Toast/styles.css +1 -1
- package/dist/Truncate/Truncate.cjs.js +2 -2
- package/dist/Truncate/Truncate.esm.js +2 -2
- package/dist/TypographyCard/TypographyCard.cjs.js +6 -7
- package/dist/TypographyCard/TypographyCard.esm.js +6 -7
- package/dist/TypographyCard/styles.css +1 -1
- package/dist/UniversalHeader/UniversalHeader.cjs.js +2 -2
- package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
- package/dist/VideoPlayer/VideoPlayer.cjs.js +5 -5
- package/dist/VideoPlayer/VideoPlayer.esm.js +5 -5
- package/dist/_shared/cjs/{Avatar-9277512a.js → Avatar-e6ba0881.js} +2 -2
- package/dist/_shared/cjs/Badge-1f86304b.js +17 -0
- package/dist/_shared/cjs/Box-d177ee32.js +29 -0
- package/dist/_shared/cjs/{BrandLogo-ce65cd74.js → BrandLogo-d4a6fd05.js} +1 -1
- package/dist/_shared/cjs/{Breadcrumbs-c7821aa9.js → Breadcrumbs-ca30086e.js} +1 -1
- package/dist/_shared/cjs/{Button-ea665c9c.js → Button-a2150286.js} +3 -3
- package/dist/_shared/cjs/{ButtonV2-373877da.js → ButtonV2-7c437d1a.js} +12 -7
- package/dist/_shared/cjs/{Calendar-e5184158.js → Calendar-9b4b01c8.js} +6 -6
- package/dist/_shared/cjs/{CardFooter-a1bb3ded.js → CardFooter-68235081.js} +3 -3
- package/dist/_shared/cjs/{CardHeading-3ddcf774.js → CardHeading-88edadd4.js} +1 -1
- package/dist/_shared/cjs/{Checkbox-850dcf99.js → Checkbox-f6712cc5.js} +10 -5
- package/dist/_shared/cjs/ContentSwitcher-88b00e11.js +98 -0
- package/dist/_shared/cjs/ContentSwitcherDropdown-ba5330ed.js +47 -0
- package/dist/_shared/cjs/{DatePicker-2bf10a10.js → DatePicker-61d66a55.js} +2 -2
- package/dist/_shared/cjs/{DisclosureMini-c730c24d.js → DisclosureMini-a46a4838.js} +3 -3
- package/dist/_shared/cjs/{Filter-c42eee70.js → Filter-b6ca2a39.js} +1 -1
- package/dist/_shared/cjs/{FormControl-5c963e6e.js → FormControl-0fba93b8.js} +3 -3
- package/dist/_shared/cjs/{Group-5233a907.js → Group-7e6b78c9.js} +1 -1
- package/dist/_shared/cjs/{Heading-14378b72.js → Heading-25d11688.js} +1 -1
- package/dist/_shared/cjs/{HeroButton-db7d03d6.js → HeroButton-19814c26.js} +5 -5
- package/dist/_shared/cjs/{Icon-7f1e8a19.js → Icon-08447959.js} +15 -4
- package/dist/_shared/cjs/{MediaCard-4ff9f5c0.js → MediaCard-7bbe8aa0.js} +6 -6
- package/dist/_shared/cjs/{Poster-8fba5492.js → Poster-96aa286e.js} +1 -1
- package/dist/_shared/cjs/{ProgressStepper-aaff6b51.js → ProgressStepper-c59ec56c.js} +6 -30
- package/dist/_shared/cjs/{RadioGroup-6142dceb.js → RadioGroup-11f4b232.js} +2 -2
- package/dist/_shared/cjs/{SiteFooter-cfe7163f.js → SiteFooter-d839f66a.js} +4 -4
- package/dist/_shared/cjs/{SiteHeaderV2-043d976a.js → SiteHeaderV2-3793453c.js} +6 -6
- package/dist/_shared/cjs/Spinner-56122c43.js +24 -0
- package/dist/_shared/cjs/{Surface-7500f314.js → Surface-1b5c2ac8.js} +2 -1
- package/dist/_shared/cjs/Tabs-30a12f1a.js +93 -0
- package/dist/_shared/cjs/{Text-284a7314.js → Text-c187d9ef.js} +1 -1
- package/dist/_shared/cjs/{TextInput-bcc3f86c.js → TextInput-d39f5a80.js} +3 -3
- package/dist/_shared/cjs/{ThemeIcon-c3dc056d.js → ThemeIcon-7f537bd2.js} +1 -1
- package/dist/_shared/cjs/{Toast-69020185.js → Toast-35c83925.js} +5 -5
- package/dist/_shared/cjs/{UniversalHeader-07be88fd.js → UniversalHeader-f9ef793f.js} +1 -1
- package/dist/_shared/cjs/{Tabs-bd1f208d.js → index-1e7a1fce.js} +8 -92
- package/dist/_shared/cjs/{index-6cbaf5e0.js → index-2bf59363.js} +1 -1
- package/dist/_shared/cjs/{index-dbab0ad6.js → index-527f962b.js} +1 -1
- package/dist/_shared/cjs/{index-568bc1da.js → index-879e71ee.js} +7 -7
- package/dist/_shared/cjs/index-89c323a4.js +2204 -0
- package/dist/_shared/cjs/{index-c137700a.js → index-ba3141f5.js} +1 -1
- package/dist/_shared/cjs/{index-677557a4.js → index-dbc843d3.js} +1 -1
- package/dist/_shared/cjs/{index.es-ba095ee5.js → index.es-f23456fa.js} +2 -2
- package/dist/_shared/esm/{Avatar-b5ac0a89.js → Avatar-3537bca7.js} +2 -2
- package/dist/_shared/esm/Badge-7bc80706.js +11 -0
- package/dist/_shared/esm/Box-557fb3b1.js +23 -0
- package/dist/_shared/esm/{BrandLogo-fb863b5b.js → BrandLogo-45d0d795.js} +1 -1
- package/dist/_shared/esm/{Breadcrumbs-01ebed9b.js → Breadcrumbs-bcf9ca79.js} +1 -1
- package/dist/_shared/esm/{Button-1491784f.js → Button-0506afa7.js} +3 -3
- package/dist/_shared/esm/{ButtonV2-f9019e00.js → ButtonV2-c83db10c.js} +12 -7
- package/dist/_shared/esm/{Calendar-5c2fb044.js → Calendar-34b10bd5.js} +6 -6
- package/dist/_shared/esm/{CardFooter-e4380cda.js → CardFooter-bf886438.js} +3 -3
- package/dist/_shared/esm/{CardHeading-4223432d.js → CardHeading-c65f9fb2.js} +1 -1
- package/dist/_shared/esm/{Checkbox-97def257.js → Checkbox-8195c42c.js} +10 -5
- package/dist/_shared/esm/ContentSwitcher-bae1f0a7.js +92 -0
- package/dist/_shared/esm/ContentSwitcherDropdown-65291c09.js +41 -0
- package/dist/_shared/esm/{DatePicker-2d891441.js → DatePicker-aafbdea8.js} +2 -2
- package/dist/_shared/esm/{DisclosureMini-6292f721.js → DisclosureMini-f6d8c9bc.js} +3 -3
- package/dist/_shared/esm/{Filter-71e06965.js → Filter-a5bf3fe3.js} +1 -1
- package/dist/_shared/esm/{FormControl-e0acdf7a.js → FormControl-ff671eb8.js} +3 -3
- package/dist/_shared/esm/{Group-b1b14ab4.js → Group-c4f6c745.js} +1 -1
- package/dist/_shared/esm/{Heading-0dfbdb24.js → Heading-0a8d3545.js} +1 -1
- package/dist/_shared/esm/{HeroButton-bb983125.js → HeroButton-a98767b7.js} +5 -5
- package/dist/_shared/esm/{Icon-428e8061.js → Icon-a5cb17de.js} +15 -4
- package/dist/_shared/esm/{MediaCard-d83b5561.js → MediaCard-fdc76670.js} +6 -6
- package/dist/_shared/esm/{Poster-ac72059a.js → Poster-dc3d7ee8.js} +1 -1
- package/dist/_shared/esm/{ProgressStepper-e3e7b392.js → ProgressStepper-427f24e3.js} +6 -30
- package/dist/_shared/esm/{RadioGroup-0d337240.js → RadioGroup-5b654bee.js} +2 -2
- package/dist/_shared/esm/{SiteFooter-7e924fb4.js → SiteFooter-1cdba967.js} +4 -4
- package/dist/_shared/esm/{SiteHeaderV2-94b9a407.js → SiteHeaderV2-743847f6.js} +6 -6
- package/dist/_shared/esm/Spinner-6704017c.js +18 -0
- package/dist/_shared/esm/{Surface-c425e5e6.js → Surface-0af6a69a.js} +2 -1
- package/dist/_shared/esm/Tabs-d360207d.js +87 -0
- package/dist/_shared/esm/{Text-96d8a35f.js → Text-df93be85.js} +1 -1
- package/dist/_shared/esm/{TextInput-8e3b81bf.js → TextInput-7ab39a54.js} +3 -3
- package/dist/_shared/esm/{ThemeIcon-9fac63d0.js → ThemeIcon-e1e19266.js} +1 -1
- package/dist/_shared/esm/{Toast-ebe2cd97.js → Toast-abd517c8.js} +5 -5
- package/dist/_shared/esm/{UniversalHeader-22ff848b.js → UniversalHeader-8ebc5322.js} +1 -1
- package/dist/_shared/esm/{index-61497bd9.js → index-14c7f4da.js} +1 -1
- package/dist/_shared/esm/{index-3a2c1ceb.js → index-57d4cb34.js} +10 -10
- package/dist/_shared/esm/{Tabs-028cee5d.js → index-89a7c31c.js} +6 -89
- package/dist/_shared/esm/{index-cf208294.js → index-ac50b180.js} +1 -1
- package/dist/_shared/esm/index-afbf540d.js +2169 -0
- package/dist/_shared/esm/{index-fb8b9df7.js → index-b9923ee4.js} +8 -8
- package/dist/_shared/esm/{index-f6cc48d2.js → index-e969452b.js} +1 -1
- package/dist/_shared/esm/{index-d083425f.js → index-f2ddcbe2.js} +1 -1
- package/dist/_shared/esm/{index.es-974af4a2.js → index.es-932db59a.js} +2 -2
- package/dist/index.es.js +9613 -9476
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +9605 -9465
- 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/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/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/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/ThemeIcon/icon-names.d.ts +1 -1
- package/dist/types/components/Truncate/Truncate.d.ts +1 -1
- package/dist/types/components/TypographyCard/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/styles.d.ts +5 -1
- package/package.json +18 -18
- package/dist/_shared/cjs/ArcIconEclipse.esm-ac777a76.js +0 -28
- package/dist/_shared/cjs/Tag-4eb2ed9e.js +0 -44
- package/dist/_shared/esm/ArcIconEclipse.esm-bb48b82a.js +0 -22
- package/dist/_shared/esm/Tag-1ae027ee.js +0 -38
- package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Todo.d.ts +0 -2
- package/dist/_shared/cjs/{index-6f33b8c0.js → index-76f7dd53.js} +8 -8
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { a as __assign } from '../_shared/esm/index.es-5496ec12.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { useMemo, useId, useState, useEffect } from 'react';
|
|
4
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
+
import { T as ThemeIcon } from '../_shared/esm/ThemeIcon-e1e19266.js';
|
|
6
|
+
import { u as useMediaQuery } from '../_shared/esm/use-media-query-d3622da8.js';
|
|
7
|
+
import '../_shared/esm/Surface-0af6a69a.js';
|
|
8
|
+
|
|
9
|
+
const LEFT = "Left";
|
|
10
|
+
const RIGHT = "Right";
|
|
11
|
+
const UP = "Up";
|
|
12
|
+
const DOWN = "Down";
|
|
13
|
+
|
|
14
|
+
/* global document */
|
|
15
|
+
const defaultProps = {
|
|
16
|
+
delta: 10,
|
|
17
|
+
preventScrollOnSwipe: false,
|
|
18
|
+
rotationAngle: 0,
|
|
19
|
+
trackMouse: false,
|
|
20
|
+
trackTouch: true,
|
|
21
|
+
swipeDuration: Infinity,
|
|
22
|
+
touchEventOptions: { passive: true },
|
|
23
|
+
};
|
|
24
|
+
const initialState = {
|
|
25
|
+
first: true,
|
|
26
|
+
initial: [0, 0],
|
|
27
|
+
start: 0,
|
|
28
|
+
swiping: false,
|
|
29
|
+
xy: [0, 0],
|
|
30
|
+
};
|
|
31
|
+
const mouseMove = "mousemove";
|
|
32
|
+
const mouseUp = "mouseup";
|
|
33
|
+
const touchEnd = "touchend";
|
|
34
|
+
const touchMove = "touchmove";
|
|
35
|
+
const touchStart = "touchstart";
|
|
36
|
+
function getDirection(absX, absY, deltaX, deltaY) {
|
|
37
|
+
if (absX > absY) {
|
|
38
|
+
if (deltaX > 0) {
|
|
39
|
+
return RIGHT;
|
|
40
|
+
}
|
|
41
|
+
return LEFT;
|
|
42
|
+
}
|
|
43
|
+
else if (deltaY > 0) {
|
|
44
|
+
return DOWN;
|
|
45
|
+
}
|
|
46
|
+
return UP;
|
|
47
|
+
}
|
|
48
|
+
function rotateXYByAngle(pos, angle) {
|
|
49
|
+
if (angle === 0)
|
|
50
|
+
return pos;
|
|
51
|
+
const angleInRadians = (Math.PI / 180) * angle;
|
|
52
|
+
const x = pos[0] * Math.cos(angleInRadians) + pos[1] * Math.sin(angleInRadians);
|
|
53
|
+
const y = pos[1] * Math.cos(angleInRadians) - pos[0] * Math.sin(angleInRadians);
|
|
54
|
+
return [x, y];
|
|
55
|
+
}
|
|
56
|
+
function getHandlers(set, handlerProps) {
|
|
57
|
+
const onStart = (event) => {
|
|
58
|
+
const isTouch = "touches" in event;
|
|
59
|
+
// if more than a single touch don't track, for now...
|
|
60
|
+
if (isTouch && event.touches.length > 1)
|
|
61
|
+
return;
|
|
62
|
+
set((state, props) => {
|
|
63
|
+
// setup mouse listeners on document to track swipe since swipe can leave container
|
|
64
|
+
if (props.trackMouse && !isTouch) {
|
|
65
|
+
document.addEventListener(mouseMove, onMove);
|
|
66
|
+
document.addEventListener(mouseUp, onUp);
|
|
67
|
+
}
|
|
68
|
+
const { clientX, clientY } = isTouch ? event.touches[0] : event;
|
|
69
|
+
const xy = rotateXYByAngle([clientX, clientY], props.rotationAngle);
|
|
70
|
+
props.onTouchStartOrOnMouseDown &&
|
|
71
|
+
props.onTouchStartOrOnMouseDown({ event });
|
|
72
|
+
return Object.assign(Object.assign(Object.assign({}, state), initialState), { initial: xy.slice(), xy, start: event.timeStamp || 0 });
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
const onMove = (event) => {
|
|
76
|
+
set((state, props) => {
|
|
77
|
+
const isTouch = "touches" in event;
|
|
78
|
+
// Discount a swipe if additional touches are present after
|
|
79
|
+
// a swipe has started.
|
|
80
|
+
if (isTouch && event.touches.length > 1) {
|
|
81
|
+
return state;
|
|
82
|
+
}
|
|
83
|
+
// if swipe has exceeded duration stop tracking
|
|
84
|
+
if (event.timeStamp - state.start > props.swipeDuration) {
|
|
85
|
+
return state.swiping ? Object.assign(Object.assign({}, state), { swiping: false }) : state;
|
|
86
|
+
}
|
|
87
|
+
const { clientX, clientY } = isTouch ? event.touches[0] : event;
|
|
88
|
+
const [x, y] = rotateXYByAngle([clientX, clientY], props.rotationAngle);
|
|
89
|
+
const deltaX = x - state.xy[0];
|
|
90
|
+
const deltaY = y - state.xy[1];
|
|
91
|
+
const absX = Math.abs(deltaX);
|
|
92
|
+
const absY = Math.abs(deltaY);
|
|
93
|
+
const time = (event.timeStamp || 0) - state.start;
|
|
94
|
+
const velocity = Math.sqrt(absX * absX + absY * absY) / (time || 1);
|
|
95
|
+
const vxvy = [deltaX / (time || 1), deltaY / (time || 1)];
|
|
96
|
+
const dir = getDirection(absX, absY, deltaX, deltaY);
|
|
97
|
+
// if swipe is under delta and we have not started to track a swipe: skip update
|
|
98
|
+
const delta = typeof props.delta === "number"
|
|
99
|
+
? props.delta
|
|
100
|
+
: props.delta[dir.toLowerCase()] ||
|
|
101
|
+
defaultProps.delta;
|
|
102
|
+
if (absX < delta && absY < delta && !state.swiping)
|
|
103
|
+
return state;
|
|
104
|
+
const eventData = {
|
|
105
|
+
absX,
|
|
106
|
+
absY,
|
|
107
|
+
deltaX,
|
|
108
|
+
deltaY,
|
|
109
|
+
dir,
|
|
110
|
+
event,
|
|
111
|
+
first: state.first,
|
|
112
|
+
initial: state.initial,
|
|
113
|
+
velocity,
|
|
114
|
+
vxvy,
|
|
115
|
+
};
|
|
116
|
+
// call onSwipeStart if present and is first swipe event
|
|
117
|
+
eventData.first && props.onSwipeStart && props.onSwipeStart(eventData);
|
|
118
|
+
// call onSwiping if present
|
|
119
|
+
props.onSwiping && props.onSwiping(eventData);
|
|
120
|
+
// track if a swipe is cancelable (handler for swiping or swiped(dir) exists)
|
|
121
|
+
// so we can call preventDefault if needed
|
|
122
|
+
let cancelablePageSwipe = false;
|
|
123
|
+
if (props.onSwiping ||
|
|
124
|
+
props.onSwiped ||
|
|
125
|
+
props[`onSwiped${dir}`]) {
|
|
126
|
+
cancelablePageSwipe = true;
|
|
127
|
+
}
|
|
128
|
+
if (cancelablePageSwipe &&
|
|
129
|
+
props.preventScrollOnSwipe &&
|
|
130
|
+
props.trackTouch &&
|
|
131
|
+
event.cancelable) {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
}
|
|
134
|
+
return Object.assign(Object.assign({}, state), {
|
|
135
|
+
// first is now always false
|
|
136
|
+
first: false, eventData, swiping: true });
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const onEnd = (event) => {
|
|
140
|
+
set((state, props) => {
|
|
141
|
+
let eventData;
|
|
142
|
+
if (state.swiping && state.eventData) {
|
|
143
|
+
// if swipe is less than duration fire swiped callbacks
|
|
144
|
+
if (event.timeStamp - state.start < props.swipeDuration) {
|
|
145
|
+
eventData = Object.assign(Object.assign({}, state.eventData), { event });
|
|
146
|
+
props.onSwiped && props.onSwiped(eventData);
|
|
147
|
+
const onSwipedDir = props[`onSwiped${eventData.dir}`];
|
|
148
|
+
onSwipedDir && onSwipedDir(eventData);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
props.onTap && props.onTap({ event });
|
|
153
|
+
}
|
|
154
|
+
props.onTouchEndOrOnMouseUp && props.onTouchEndOrOnMouseUp({ event });
|
|
155
|
+
return Object.assign(Object.assign(Object.assign({}, state), initialState), { eventData });
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
const cleanUpMouse = () => {
|
|
159
|
+
// safe to just call removeEventListener
|
|
160
|
+
document.removeEventListener(mouseMove, onMove);
|
|
161
|
+
document.removeEventListener(mouseUp, onUp);
|
|
162
|
+
};
|
|
163
|
+
const onUp = (e) => {
|
|
164
|
+
cleanUpMouse();
|
|
165
|
+
onEnd(e);
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* The value of passive on touchMove depends on `preventScrollOnSwipe`:
|
|
169
|
+
* - true => { passive: false }
|
|
170
|
+
* - false => { passive: true } // Default
|
|
171
|
+
*
|
|
172
|
+
* NOTE: When preventScrollOnSwipe is true, we attempt to call preventDefault to prevent scroll.
|
|
173
|
+
*
|
|
174
|
+
* props.touchEventOptions can also be set for all touch event listeners,
|
|
175
|
+
* but for `touchmove` specifically when `preventScrollOnSwipe` it will
|
|
176
|
+
* supersede and force passive to false.
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
const attachTouch = (el, props) => {
|
|
180
|
+
let cleanup = () => { };
|
|
181
|
+
if (el && el.addEventListener) {
|
|
182
|
+
const baseOptions = Object.assign(Object.assign({}, defaultProps.touchEventOptions), props.touchEventOptions);
|
|
183
|
+
// attach touch event listeners and handlers
|
|
184
|
+
const tls = [
|
|
185
|
+
[touchStart, onStart, baseOptions],
|
|
186
|
+
// preventScrollOnSwipe option supersedes touchEventOptions.passive
|
|
187
|
+
[
|
|
188
|
+
touchMove,
|
|
189
|
+
onMove,
|
|
190
|
+
Object.assign(Object.assign({}, baseOptions), (props.preventScrollOnSwipe ? { passive: false } : {})),
|
|
191
|
+
],
|
|
192
|
+
[touchEnd, onEnd, baseOptions],
|
|
193
|
+
];
|
|
194
|
+
tls.forEach(([e, h, o]) => el.addEventListener(e, h, o));
|
|
195
|
+
// return properly scoped cleanup method for removing listeners, options not required
|
|
196
|
+
cleanup = () => tls.forEach(([e, h]) => el.removeEventListener(e, h));
|
|
197
|
+
}
|
|
198
|
+
return cleanup;
|
|
199
|
+
};
|
|
200
|
+
const onRef = (el) => {
|
|
201
|
+
// "inline" ref functions are called twice on render, once with null then again with DOM element
|
|
202
|
+
// ignore null here
|
|
203
|
+
if (el === null)
|
|
204
|
+
return;
|
|
205
|
+
set((state, props) => {
|
|
206
|
+
// if the same DOM el as previous just return state
|
|
207
|
+
if (state.el === el)
|
|
208
|
+
return state;
|
|
209
|
+
const addState = {};
|
|
210
|
+
// if new DOM el clean up old DOM and reset cleanUpTouch
|
|
211
|
+
if (state.el && state.el !== el && state.cleanUpTouch) {
|
|
212
|
+
state.cleanUpTouch();
|
|
213
|
+
addState.cleanUpTouch = void 0;
|
|
214
|
+
}
|
|
215
|
+
// only attach if we want to track touch
|
|
216
|
+
if (props.trackTouch && el) {
|
|
217
|
+
addState.cleanUpTouch = attachTouch(el, props);
|
|
218
|
+
}
|
|
219
|
+
// store event attached DOM el for comparison, clean up, and re-attachment
|
|
220
|
+
return Object.assign(Object.assign(Object.assign({}, state), { el }), addState);
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
// set ref callback to attach touch event listeners
|
|
224
|
+
const output = {
|
|
225
|
+
ref: onRef,
|
|
226
|
+
};
|
|
227
|
+
// if track mouse attach mouse down listener
|
|
228
|
+
if (handlerProps.trackMouse) {
|
|
229
|
+
output.onMouseDown = onStart;
|
|
230
|
+
}
|
|
231
|
+
return [output, attachTouch];
|
|
232
|
+
}
|
|
233
|
+
function updateTransientState(state, props, previousProps, attachTouch) {
|
|
234
|
+
// if trackTouch is off or there is no el, then remove handlers if necessary and exit
|
|
235
|
+
if (!props.trackTouch || !state.el) {
|
|
236
|
+
if (state.cleanUpTouch) {
|
|
237
|
+
state.cleanUpTouch();
|
|
238
|
+
}
|
|
239
|
+
return Object.assign(Object.assign({}, state), { cleanUpTouch: undefined });
|
|
240
|
+
}
|
|
241
|
+
// trackTouch is on, so if there are no handlers attached, attach them and exit
|
|
242
|
+
if (!state.cleanUpTouch) {
|
|
243
|
+
return Object.assign(Object.assign({}, state), { cleanUpTouch: attachTouch(state.el, props) });
|
|
244
|
+
}
|
|
245
|
+
// trackTouch is on and handlers are already attached, so if preventScrollOnSwipe changes value,
|
|
246
|
+
// remove and reattach handlers (this is required to update the passive option when attaching
|
|
247
|
+
// the handlers)
|
|
248
|
+
if (props.preventScrollOnSwipe !== previousProps.preventScrollOnSwipe ||
|
|
249
|
+
props.touchEventOptions.passive !== previousProps.touchEventOptions.passive) {
|
|
250
|
+
state.cleanUpTouch();
|
|
251
|
+
return Object.assign(Object.assign({}, state), { cleanUpTouch: attachTouch(state.el, props) });
|
|
252
|
+
}
|
|
253
|
+
return state;
|
|
254
|
+
}
|
|
255
|
+
function useSwipeable(options) {
|
|
256
|
+
const { trackMouse } = options;
|
|
257
|
+
const transientState = React.useRef(Object.assign({}, initialState));
|
|
258
|
+
const transientProps = React.useRef(Object.assign({}, defaultProps));
|
|
259
|
+
// track previous rendered props
|
|
260
|
+
const previousProps = React.useRef(Object.assign({}, transientProps.current));
|
|
261
|
+
previousProps.current = Object.assign({}, transientProps.current);
|
|
262
|
+
// update current render props & defaults
|
|
263
|
+
transientProps.current = Object.assign(Object.assign({}, defaultProps), options);
|
|
264
|
+
// Force defaults for config properties
|
|
265
|
+
let defaultKey;
|
|
266
|
+
for (defaultKey in defaultProps) {
|
|
267
|
+
if (transientProps.current[defaultKey] === void 0) {
|
|
268
|
+
transientProps.current[defaultKey] = defaultProps[defaultKey];
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
const [handlers, attachTouch] = React.useMemo(() => getHandlers((stateSetter) => (transientState.current = stateSetter(transientState.current, transientProps.current)), { trackMouse }), [trackMouse]);
|
|
272
|
+
transientState.current = updateTransientState(transientState.current, transientProps.current, previousProps.current, attachTouch);
|
|
273
|
+
return handlers;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Do not edit directly
|
|
278
|
+
* Generated on Fri, 25 Oct 2024 08:31:13 GMT
|
|
279
|
+
*/
|
|
280
|
+
var ArcSizeBreakpointsXs = "320px";
|
|
281
|
+
var ArcSizeBreakpointsS = "636px";
|
|
282
|
+
var ArcSizeBreakpointsM = "768px";
|
|
283
|
+
var ArcSizeBreakpointsL = "1024px";
|
|
284
|
+
var ArcSizeBreakpointsXl = "1280px";
|
|
285
|
+
|
|
286
|
+
var isSlideHidden = function (slides, visibleSlideIndex, itemId) {
|
|
287
|
+
return slides.length ? !slides[visibleSlideIndex].itemIds.includes(itemId) : false;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
var isLastSlide = function (slides, visibleSlideIndex) {
|
|
291
|
+
return slides.length === 0 ? true : visibleSlideIndex === slides.length - 1;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
var getSliderPosition = function (_a) {
|
|
295
|
+
var slides = _a.slides, visibleSlideIndex = _a.visibleSlideIndex, slideWidth = _a.slideWidth, widthAdjustment = _a.widthAdjustment;
|
|
296
|
+
return slides.length
|
|
297
|
+
? slides[visibleSlideIndex].itemsToScroll * slideWidth -
|
|
298
|
+
(isLastSlide(slides, visibleSlideIndex) ? widthAdjustment : 0)
|
|
299
|
+
: 0;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
var getSlideConfig = function (screenSizes, slideAmount, itemsPerSlide, partialVisible, responsive) {
|
|
303
|
+
var responsiveConfig = responsive &&
|
|
304
|
+
Object.keys(screenSizes)
|
|
305
|
+
.reverse()
|
|
306
|
+
.find(function (size) {
|
|
307
|
+
return responsive && screenSizes[size] && responsive[size];
|
|
308
|
+
});
|
|
309
|
+
return responsiveConfig
|
|
310
|
+
? responsive[responsiveConfig]
|
|
311
|
+
: { slideAmount: slideAmount, itemsPerSlide: itemsPerSlide, partialVisible: partialVisible };
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
var useSlides = function (_a) {
|
|
315
|
+
var children = _a.children, itemsPerSlide = _a.itemsPerSlide, partialVisible = _a.partialVisible, slideAmount = _a.slideAmount, responsive = _a.responsive, screenSizes = _a.screenSizes;
|
|
316
|
+
return useMemo(function () {
|
|
317
|
+
var slideConfig = getSlideConfig(screenSizes, slideAmount, itemsPerSlide, partialVisible, responsive);
|
|
318
|
+
var totalItems = React__default.Children.count(children);
|
|
319
|
+
var itemsPerView = slideConfig.itemsPerSlide > totalItems
|
|
320
|
+
? totalItems
|
|
321
|
+
: Math.max(1, slideConfig.itemsPerSlide);
|
|
322
|
+
var widthAdjustment = slideConfig.partialVisible ? 10 : 0;
|
|
323
|
+
var slideWidth = (100 - widthAdjustment) / itemsPerView;
|
|
324
|
+
var slideIncrement = Math.max(1, slideConfig.slideAmount > totalItems
|
|
325
|
+
? totalItems
|
|
326
|
+
: slideConfig.slideAmount);
|
|
327
|
+
var itemsToScroll = totalItems - itemsPerView;
|
|
328
|
+
var slideCount = itemsToScroll > 0 ? Math.ceil(itemsToScroll / slideIncrement + 1) : 0;
|
|
329
|
+
var slides = Array.from({ length: slideCount }, function (_, slideIndex) {
|
|
330
|
+
var itemIds = Array.from({ length: itemsPerView }, function (_, i) { return i + slideIndex * slideIncrement; });
|
|
331
|
+
var filteredItems = itemIds.filter(function (id) { return id < totalItems; });
|
|
332
|
+
var hasFilteredItems = filteredItems.length < itemsPerView;
|
|
333
|
+
var getScrollAmount = function () {
|
|
334
|
+
return (slideIndex * slideIncrement -
|
|
335
|
+
(hasFilteredItems ? itemsPerView - filteredItems.length : 0));
|
|
336
|
+
};
|
|
337
|
+
return {
|
|
338
|
+
itemsToScroll: getScrollAmount(),
|
|
339
|
+
itemIds: hasFilteredItems
|
|
340
|
+
? itemIds.map(function (id) { return id - (slideConfig.itemsPerSlide - filteredItems.length); })
|
|
341
|
+
: itemIds
|
|
342
|
+
};
|
|
343
|
+
});
|
|
344
|
+
return {
|
|
345
|
+
slides: slides,
|
|
346
|
+
slideWidth: slideWidth,
|
|
347
|
+
widthAdjustment: widthAdjustment
|
|
348
|
+
};
|
|
349
|
+
}, [
|
|
350
|
+
children,
|
|
351
|
+
itemsPerSlide,
|
|
352
|
+
partialVisible,
|
|
353
|
+
slideAmount,
|
|
354
|
+
responsive,
|
|
355
|
+
screenSizes,
|
|
356
|
+
]);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
var Carousel = function (_a) {
|
|
360
|
+
var children = _a.children, responsive = _a.responsive, _b = _a.slideAmount, slideAmount = _b === void 0 ? 1 : _b, _c = _a.itemsPerSlide, itemsPerSlide = _c === void 0 ? 1 : _c, _d = _a.withGutter, withGutter = _d === void 0 ? true : _d, _e = _a.partialVisible, partialVisible = _e === void 0 ? false : _e;
|
|
361
|
+
var id = useId();
|
|
362
|
+
var _f = useState(0), visibleSlideIndex = _f[0], setVisibleSlideIndex = _f[1];
|
|
363
|
+
var isMinWidthArcBreakpointXs = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsXs, ")"));
|
|
364
|
+
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
365
|
+
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
366
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
367
|
+
var isMinWidthArcBreakpointXl = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsXl, ")"));
|
|
368
|
+
var handlers = useSwipeable({
|
|
369
|
+
onSwipedLeft: function () {
|
|
370
|
+
!isLastSlide(slides, visibleSlideIndex) &&
|
|
371
|
+
setVisibleSlideIndex(visibleSlideIndex + 1);
|
|
372
|
+
},
|
|
373
|
+
onSwipedRight: function () {
|
|
374
|
+
visibleSlideIndex > 0 && setVisibleSlideIndex(visibleSlideIndex - 1);
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
var _g = useSlides({
|
|
378
|
+
children: children,
|
|
379
|
+
partialVisible: partialVisible,
|
|
380
|
+
slideAmount: slideAmount,
|
|
381
|
+
itemsPerSlide: itemsPerSlide,
|
|
382
|
+
responsive: responsive,
|
|
383
|
+
screenSizes: {
|
|
384
|
+
xs: isMinWidthArcBreakpointXs,
|
|
385
|
+
s: isMinWidthArcBreakpointS,
|
|
386
|
+
m: isMinWidthArcBreakpointM,
|
|
387
|
+
l: isMinWidthArcBreakpointL,
|
|
388
|
+
xl: isMinWidthArcBreakpointXl
|
|
389
|
+
}
|
|
390
|
+
}), slides = _g.slides, slideWidth = _g.slideWidth, widthAdjustment = _g.widthAdjustment;
|
|
391
|
+
useEffect(function () {
|
|
392
|
+
setVisibleSlideIndex(0);
|
|
393
|
+
}, [
|
|
394
|
+
isMinWidthArcBreakpointXs,
|
|
395
|
+
isMinWidthArcBreakpointS,
|
|
396
|
+
isMinWidthArcBreakpointM,
|
|
397
|
+
isMinWidthArcBreakpointL,
|
|
398
|
+
isMinWidthArcBreakpointXl,
|
|
399
|
+
]);
|
|
400
|
+
var currentSlideIndex = Math.min(slides.length - 1, visibleSlideIndex);
|
|
401
|
+
var sliderPosition = getSliderPosition({
|
|
402
|
+
slides: slides,
|
|
403
|
+
slideWidth: slideWidth,
|
|
404
|
+
widthAdjustment: widthAdjustment,
|
|
405
|
+
visibleSlideIndex: currentSlideIndex
|
|
406
|
+
});
|
|
407
|
+
return (React__default.createElement("div", { className: "arc-Carousel" },
|
|
408
|
+
React__default.createElement("div", { className: "arc-Carousel-nav" },
|
|
409
|
+
React__default.createElement("button", { className: classNames("arc-Carousel-navButton", {
|
|
410
|
+
"arc-Carousel-navButton--hidden": visibleSlideIndex === 0
|
|
411
|
+
}), onClick: function () { return setVisibleSlideIndex(visibleSlideIndex - 1); }, "aria-label": "Show slide ".concat(visibleSlideIndex) },
|
|
412
|
+
React__default.createElement(ThemeIcon, { size: 32, icon: "carouselLeft" })),
|
|
413
|
+
React__default.createElement("div", { className: "arc-Carousel-dotContainer", role: "tablist" }, slides.map(function (_, i) { return (React__default.createElement("button", { className: classNames("arc-Carousel-dot", {
|
|
414
|
+
"arc-Carousel-dot--selected": visibleSlideIndex === i
|
|
415
|
+
}), onClick: function () { return setVisibleSlideIndex(i); }, "aria-selected": visibleSlideIndex === i, key: "".concat(id, "-dot-").concat(i), role: "tab", "aria-label": "Show slide ".concat(i + 1) })); })),
|
|
416
|
+
React__default.createElement("button", { className: classNames("arc-Carousel-navButton", {
|
|
417
|
+
"arc-Carousel-navButton--hidden": isLastSlide(slides, visibleSlideIndex)
|
|
418
|
+
}), onClick: function () { return setVisibleSlideIndex(visibleSlideIndex + 1); }, "aria-label": "Show slide ".concat(visibleSlideIndex + 2) },
|
|
419
|
+
React__default.createElement(ThemeIcon, { size: 32, icon: "carouselRight" }))),
|
|
420
|
+
React__default.createElement("div", { className: "arc-Carousel-outer" },
|
|
421
|
+
React__default.createElement("div", { className: classNames("arc-Carousel-inner", {
|
|
422
|
+
"arc-Carousel-inner--gutterless": !withGutter
|
|
423
|
+
}) },
|
|
424
|
+
React__default.createElement("div", __assign({ className: classNames("arc-Carousel-slider", {
|
|
425
|
+
"arc-Carousel-slider--gutter": withGutter
|
|
426
|
+
}), style: {
|
|
427
|
+
transform: "translateX(-".concat(sliderPosition, "%)")
|
|
428
|
+
}, role: "region", "aria-roledescription": "carousel" }, handlers), React__default.Children.map(children, function (child, i) { return (React__default.createElement("div", { style: { flex: "0 0 ".concat(slideWidth, "%"), width: "".concat(slideWidth, "%") }, className: "arc-Carousel-item", key: "".concat(id, "-option-").concat(i), role: "group", "aria-hidden": isSlideHidden(slides, currentSlideIndex, i), "aria-roledescription": "slide" }, child)); }))))));
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
export { Carousel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.arc .arc-Carousel{display:flex;flex-direction:column}.arc .arc-Carousel-outer{order:1;overflow:hidden}.arc .arc-Carousel-inner{margin:0 -12px}.arc .arc-Carousel-inner--gutterless{margin:0}.arc .arc-Carousel-slider{display:flex;padding:12px 0;transition:1s cubic-bezier(0.13,0.93,0.71,0.97) transform;width:100%}.arc .arc-Carousel-slider--gutter .arc-Carousel-item{padding:0 12px}.arc .arc-Carousel-navButton{background:#ffffff;border:none;border-radius:50%;box-shadow:0 2px 6px 0 rgba(0,0,0,0.25);color:var(--sem-color-bg-primary-light-default);cursor:pointer;padding:0;width:32px}.arc .arc-Carousel-nav .arc-Carousel-navButton:first-of-type span{transform:translateX(-1px)}.arc .arc-Carousel-nav .arc-Carousel-navButton:last-of-type span{transform:translateX(1px)}.arc .arc-Carousel-navButton:focus-visible{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:2px}.arc .arc-Carousel-navButton--hidden{pointer-events:none;visibility:hidden}.arc .arc-Carousel-navButtonIcons{display:flex}@media (hover:hover){.arc .arc-Carousel-navButton:hover{background:#e3e3e3}}.arc .arc-Carousel-navButton:active{background:#c8c8c8}.arc .arc-Carousel-nav{align-items:center;display:flex;gap:24px;justify-content:center;margin-top:28px;order:2}.arc .arc-Carousel-dotContainer{align-items:center;display:flex;gap:20px}.arc .arc-Carousel-dot{background-color:#d9d9d9;border:none;border-radius:50%;cursor:pointer;height:8px;margin:0;outline:none;padding:0;transition:0.4s ease background-color;width:8px}.arc .arc-Carousel-dot:focus-visible{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:2px}.arc .arc-Carousel-dot--selected{background-color:#2a2a2a}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Checkbox = require('../_shared/cjs/Checkbox-
|
|
5
|
+
var Checkbox = require('../_shared/cjs/Checkbox-f6712cc5.js');
|
|
6
6
|
require('../_shared/cjs/index.es-c26e8978.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/index-9947ac13.js');
|
|
9
|
-
require('../_shared/cjs/FormControl-
|
|
10
|
-
require('../_shared/cjs/Surface-
|
|
11
|
-
require('../_shared/cjs/DisclosureMini-
|
|
12
|
-
require('../_shared/cjs/Text-
|
|
13
|
-
require('../_shared/cjs/ThemeIcon-
|
|
9
|
+
require('../_shared/cjs/FormControl-0fba93b8.js');
|
|
10
|
+
require('../_shared/cjs/Surface-1b5c2ac8.js');
|
|
11
|
+
require('../_shared/cjs/DisclosureMini-a46a4838.js');
|
|
12
|
+
require('../_shared/cjs/Text-c187d9ef.js');
|
|
13
|
+
require('../_shared/cjs/ThemeIcon-7f537bd2.js');
|
|
14
14
|
require('../_shared/cjs/VisuallyHidden-25393f58.js');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { C as Checkbox } from '../_shared/esm/Checkbox-
|
|
1
|
+
export { C as Checkbox } from '../_shared/esm/Checkbox-8195c42c.js';
|
|
2
2
|
import '../_shared/esm/index.es-5496ec12.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
-
import '../_shared/esm/FormControl-
|
|
6
|
-
import '../_shared/esm/Surface-
|
|
7
|
-
import '../_shared/esm/DisclosureMini-
|
|
8
|
-
import '../_shared/esm/Text-
|
|
9
|
-
import '../_shared/esm/ThemeIcon-
|
|
5
|
+
import '../_shared/esm/FormControl-ff671eb8.js';
|
|
6
|
+
import '../_shared/esm/Surface-0af6a69a.js';
|
|
7
|
+
import '../_shared/esm/DisclosureMini-f6d8c9bc.js';
|
|
8
|
+
import '../_shared/esm/Text-df93be85.js';
|
|
9
|
+
import '../_shared/esm/ThemeIcon-e1e19266.js';
|
|
10
10
|
import '../_shared/esm/VisuallyHidden-cf45ac18.js';
|
package/dist/Checkbox/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.arc .arc-Checkbox{line-height:1;position:relative}.arc .arc-Checkbox-box{align-items:center;background:var(--checkbox-colors-light-bg-default-alt);border:var(--checkbox-border-weight-s) solid var(--checkbox-colors-light-border-default);border-radius:var(--checkbox-border-radius-s);color:var(--checkbox-colors-light-fg-default);display:inline-flex;flex-shrink:0;height:var(--checkbox-size-l);justify-content:center;margin-right:var(--checkbox-gap-s);width:var(--checkbox-size-l)}.arc .arc-Checkbox-label{align-items:center;cursor:pointer;display:inline-flex;font:var(--
|
|
1
|
+
.arc .arc-Checkbox{line-height:1;position:relative}.arc .arc-Checkbox-box{align-items:center;background:var(--checkbox-colors-light-bg-default-alt);border:var(--checkbox-border-weight-s) solid var(--checkbox-colors-light-border-default);border-radius:var(--checkbox-border-radius-s);color:var(--checkbox-colors-light-fg-default);display:inline-flex;flex-shrink:0;height:var(--checkbox-size-l);justify-content:center;margin-right:var(--checkbox-gap-s);width:var(--checkbox-size-l)}.arc .arc-Checkbox-label{align-items:center;cursor:pointer;display:inline-flex;font:var(--checkbox-type-label-m)}.arc .arc-Checkbox-labelOptional{font:var(--sem-type-label-reg-xs);margin-left:4px}.arc .arc-Checkbox--disabled .arc-Checkbox-label{cursor:not-allowed}.arc .arc-Checkbox-box svg{width:100%}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-box{background:var(--checkbox-colors-dark-bg-default-alt);border-color:var(--checkbox-colors-dark-border-default);color:var(--checkbox-colors-dark-bg-default-alt)}.arc .arc-Checkbox-box::after{content:"";display:inline-block;pointer-events:none}.arc .arc-Checkbox-helper{color:var(--checkbox-colors-light-text-default);display:block;font:var(--sem-type-support-reg-s)}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-helper{color:var(--checkbox-colors-dark-text-default)}.arc .arc-Checkbox-error{align-items:center;color:var(--checkbox-colors-light-border-error);display:flex;line-height:1.5;margin-top:var(--checkbox-gap-m)}.arc .arc-Checkbox-label--top{align-items:flex-start}.arc .arc-Checkbox-content--marginTop{margin-top:4px}.arc .arc-Checkbox--small .arc-Checkbox-content--marginTop{margin-top:2px}.arc .arc-Checkbox-input{clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.arc .arc-Checkbox--small .arc-Checkbox-box{border-radius:var(--checkbox-border-radius-xs);height:var(--checkbox-size-s);width:var(--checkbox-size-s)}.arc .arc-Checkbox--small .arc-Checkbox-label{font:var(--checkbox-type-label-s)}.arc .arc-Checkbox--small .arc-Checkbox-labelOptional{font:var(--sem-type-label-reg-xxs)}.arc .arc-Checkbox--small .arc-Checkbox-helper{font:var(--sem-type-support-reg-xs)}.arc .arc-Checkbox-input:checked+.arc-Checkbox-box{background:var(--checkbox-colors-light-bg-default);border-color:transparent}.arc .arc-Checkbox-input[disabled]+.arc-Checkbox-box{background:var(--checkbox-colors-light-bg-disabled);border-color:var(--checkbox-colors-light-border-disabled);color:transparent}.arc .arc-Checkbox-input:focus+.arc-Checkbox-box,.arc .arc-Checkbox-input:focus-visible+.arc-Checkbox-box{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:2px}.arc .arc-Checkbox--invalid .arc-Checkbox-input:not(:checked)+.arc-Checkbox-box{background:var(--checkbox-colors-light-bg-error);border-color:var(--checkbox-colors-light-border-error);color:var(--checkbox-colors-light-bg-error)}.arc .arc-Checkbox-error .arc-Checkbox-error--icon{color:currentColor;flex-shrink:0;height:24px;margin-right:4px;width:24px}.arc .arc-Checkbox--onDarkSurface{color:var(--checkbox-colors-dark-text-default)}.arc .arc-Checkbox--disabled{color:var(--checkbox-colors-light-text-disabled)}.arc .arc-Checkbox--onDarkSurface.arc-Checkbox--disabled{color:var(--checkbox-colors-dark-text-disabled)}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-input:checked+.arc-Checkbox-box{background:var(--checkbox-colors-dark-bg-default);border-color:transparent;color:var(--checkbox-colors-dark-fg-default)}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-input[disabled]+.arc-Checkbox-box{background:var(--checkbox-colors-dark-bg-default-alt);border-color:var(--checkbox-colors-dark-border-default);color:transparent}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-input:focus+.arc-Checkbox-box,.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-input:focus-visible+.arc-Checkbox-box{outline:var(--focus-border-weight-s) solid var(--focus-colors-dark-border-subtle);outline-offset:2px}.arc .arc-Checkbox-input[disabled].arc-Checkbox-input:checked+.arc-Checkbox-box{background:var(--checkbox-colors-light-bg-disabled);border-color:var(--checkbox-colors-light-border-disabled);color:var(--checkbox-colors-light-fg-disabled)}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-input[disabled].arc-Checkbox-input:checked+.arc-Checkbox-box{background:var(--checkbox-colors-dark-bg-disabled);border-color:var(--checkbox-colors-dark-border-disabled);color:var(--checkbox-colors-dark-fg-disabled)}.arc .arc-Checkbox--onDarkSurface .arc-Checkbox-error{color:#fa9590}.arc .arc-Checkbox-input:focus:not(:focus-visible)+.arc-Checkbox-box{box-shadow:none;outline:none}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ContentSwitcher = require('../_shared/cjs/ContentSwitcher-88b00e11.js');
|
|
6
|
+
require('../_shared/cjs/index.es-c26e8978.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/index-1e7a1fce.js');
|
|
9
|
+
require('../_shared/cjs/index-76f7dd53.js');
|
|
10
|
+
require('react-dom');
|
|
11
|
+
require('../_shared/cjs/index-dbc843d3.js');
|
|
12
|
+
require('../_shared/cjs/index-879e71ee.js');
|
|
13
|
+
require('../_shared/cjs/index-527f962b.js');
|
|
14
|
+
require('../_shared/cjs/Text-c187d9ef.js');
|
|
15
|
+
require('../_shared/cjs/index-9947ac13.js');
|
|
16
|
+
require('../_shared/cjs/Surface-1b5c2ac8.js');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.ContentSwitcher = ContentSwitcher.ContentSwitcher;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { C as ContentSwitcher } from '../_shared/esm/ContentSwitcher-bae1f0a7.js';
|
|
2
|
+
import '../_shared/esm/index.es-5496ec12.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/index-89a7c31c.js';
|
|
5
|
+
import '../_shared/esm/index-57d4cb34.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
import '../_shared/esm/index-14c7f4da.js';
|
|
8
|
+
import '../_shared/esm/index-b9923ee4.js';
|
|
9
|
+
import '../_shared/esm/index-f2ddcbe2.js';
|
|
10
|
+
import '../_shared/esm/Text-df93be85.js';
|
|
11
|
+
import '../_shared/esm/index-2e73c2e9.js';
|
|
12
|
+
import '../_shared/esm/Surface-0af6a69a.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.arc .arc-ContentSwitcherTab{align-items:center;background:var(--content-switcher-colors-light-bg-default);border:none;border-radius:var(--content-switcher-border-radius-pill);display:flex;height:48px;max-width:300px;padding:var(--content-switcher-padding-m) var(--content-switcher-padding-l);transition:background 0.3s ease;white-space:nowrap}.arc .arc-ContentSwitcherTab>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arc .arc-ContentSwitcherTab:hover{background:var(--content-switcher-colors-light-bg-hover);cursor:pointer}.arc .arc-ContentSwitcherTab:focus-visible{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:2px}.arc .arc-ContentSwitcherTab[data-state="active"]{background:var(--content-switcher-colors-light-bg-default-alt);color:var(--content-switcher-colors-light-text-default-alt)}:root{--arc-content-switcher-height:48px}.arc .arc-ContentSwitcherList{background:var(--content-switcher-colors-light-bg-default);border-radius:var(--sem-border-radius-xxl);box-shadow:var(--content-switcher-elevations-02,0 0 1px 0 rgba(0,0,0,0.25),0 4px 12px 0 rgba(0,0,0,0.1));margin-bottom:10px;max-width:1000px;overflow:scroll;-ms-overflow-style:none;position:relative;scrollbar-width:none;text-align:center;z-index:1}.arc .arc-ContentSwitcherList::-webkit-scrollbar{display:none}.arc .arc-ContentSwitcherList-overflowWrapper{height:calc(var(--arc-content-switcher-height) + (var(--content-switcher-padding-s) * 2));left:50%;max-width:1000px;pointer-events:none;position:absolute;top:0;transform:translateX(-50%);width:100%;z-index:2}.arc .arc-ContentSwitcherList-wrapper{display:flex;justify-content:center;margin:0 32px;position:relative}.arc .arc-ContentSwitcherList-inner{display:inline-flex;gap:var(--content-switcher-padding-s);padding:var(--content-switcher-padding-s)}.arc .arc-ContentSwitcherList--rightOverflow,.arc .arc-ContentSwitcherList--leftOverflow{content:"";display:block;height:100%;pointer-events:none;position:absolute;top:0;width:96px}.arc .arc-ContentSwitcherList--rightOverflow{background:linear-gradient(90deg,rgba(255,255,255,0) 0.61%,#ffffff 75.15%);border-radius:0 var(--sem-border-radius-xxl) var(--sem-border-radius-xxl) 0;right:0}.arc .arc-ContentSwitcherList--leftOverflow{background:linear-gradient(270deg,rgba(255,255,255,0) 0.61%,#ffffff 75.15%);border-radius:var(--sem-border-radius-xxl) 0 0 var(--sem-border-radius-xxl);left:0}.arc .arc-ContentSwitcherList--isInset{margin-bottom:calc((var(--arc-content-switcher-height) * -1) + var(--content-switcher-padding-s))}.arc .arc-ContentSwitcherContent{display:flex;justify-content:center;opacity:1;transition:opacity 0.5s ease}.arc .arc-ContentSwitcherContent[data-state="inactive"]{opacity:0}.arc .arc-ContentSwitcher{margin:0 auto}.arc .arc-ContentSwitcher-root{position:relative}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ContentSwitcherDropdown = require('../_shared/cjs/ContentSwitcherDropdown-ba5330ed.js');
|
|
6
|
+
require('../_shared/cjs/index.es-c26e8978.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/index-89c323a4.js');
|
|
9
|
+
require('../_shared/cjs/index-76f7dd53.js');
|
|
10
|
+
require('react-dom');
|
|
11
|
+
require('../_shared/cjs/index-dbc843d3.js');
|
|
12
|
+
require('../_shared/cjs/index-879e71ee.js');
|
|
13
|
+
require('../_shared/cjs/index-2bf59363.js');
|
|
14
|
+
require('../_shared/cjs/floating-ui.react-dom-08b8b87c.js');
|
|
15
|
+
require('../_shared/cjs/index-ba3141f5.js');
|
|
16
|
+
require('../_shared/cjs/component-4e71e3d3.js');
|
|
17
|
+
require('../_shared/cjs/ThemeIcon-7f537bd2.js');
|
|
18
|
+
require('../_shared/cjs/index-9947ac13.js');
|
|
19
|
+
require('../_shared/cjs/Surface-1b5c2ac8.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.ContentSwitcherDropdown = ContentSwitcherDropdown.ContentSwitcherDropdown;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { C as ContentSwitcherDropdown } from '../_shared/esm/ContentSwitcherDropdown-65291c09.js';
|
|
2
|
+
import '../_shared/esm/index.es-5496ec12.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/index-afbf540d.js';
|
|
5
|
+
import '../_shared/esm/index-57d4cb34.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
import '../_shared/esm/index-14c7f4da.js';
|
|
8
|
+
import '../_shared/esm/index-b9923ee4.js';
|
|
9
|
+
import '../_shared/esm/index-e969452b.js';
|
|
10
|
+
import '../_shared/esm/floating-ui.react-dom-1bb71aae.js';
|
|
11
|
+
import '../_shared/esm/index-ac50b180.js';
|
|
12
|
+
import '../_shared/esm/component-3e60a45e.js';
|
|
13
|
+
import '../_shared/esm/ThemeIcon-e1e19266.js';
|
|
14
|
+
import '../_shared/esm/index-2e73c2e9.js';
|
|
15
|
+
import '../_shared/esm/Surface-0af6a69a.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.arc .arc-ContentSwitcherDropdown-selectTrigger{align-items:center;background:var(--content-switcher-colors-light-bg-default-alt);border:none;border-radius:var(--content-switcher-border-radius-pill);color:var(--content-switcher-colors-light-text-default-alt);display:flex;font:var(--sem-type-body-reg-m);justify-content:space-between;padding:var(--content-switcher-padding-m) var(--content-switcher-padding-l);width:100%}.arc .arc-ContentSwitcherDropdown-selectTrigger>span:first-child,.arc .arc-ContentSwitcherDropdown-selectItem>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arc .arc-ContentSwitcherDropdown-selectTriggerIcon{color:var(--content-switcher-colors-light-text-default-alt);margin-left:var(--content-switcher-gap-l)}.arc .arc-ContentSwitcherDropdown-selectTrigger[aria-expanded="true"]{background:var(--content-switcher-colors-light-bg-default);color:var(--content-switcher-colors-light-text-hover);outline:var(--content-switcher-border-weight-s) solid var(--content-switcher-colors-light-border-default);outline-offset:calc(var(--content-switcher-border-weight-s) * -1)}.arc .arc-ContentSwitcherDropdown-selectTrigger[aria-expanded="true"] .arc-ContentSwitcherDropdown-selectTriggerIcon{color:var(--content-switcher-colors-light-text-hover)}.arc .arc-ContentSwitcherDropdown-selectTrigger:hover{background:var(--content-switcher-colors-light-bg-selected-hover);cursor:pointer}.arc .arc-ContentSwitcherDropdown-selectTrigger:focus-visible{outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:var(--focus-border-weight-s)}.arc .arc-ContentSwitcherDropdown-selectTriggerWrapper{align-items:center;background:var(--colors-light-bg-default-alt);border-radius:var(--content-switcher-border-radius-pill);box-shadow:var(--elevation-02);display:block;margin-bottom:var(--content-switcher-gap-l);min-width:288px;padding:var(--content-switcher-padding-xs)}.arc .arc-ContentSwitcherDropdown-selectTrigger[data-state="open"] .arc-ContentSwitcherDropdown-selectTriggerIcon{transform:rotate(180deg)}.arc .arc-ContentSwitcherDropdown-selectContent{background:var(--content-switcher-colors-light-bg-default);border-radius:var(--content-switcher-border-radius-xl);box-shadow:var(--elevation-02);margin:var(--content-switcher-gap-l) 0 var(--content-switcher-gap-l) calc(var(--content-switcher-gap-l) * -1);padding:var(--content-switcher-padding-xs);position:relative;width:calc(var(--radix-select-trigger-width) + (var(--content-switcher-padding-xs) * 2))}.arc .arc-ContentSwitcherDropdown-selectItem{align-items:center;border-radius:var(--content-switcher-border-radius-pill);display:flex;justify-content:space-between;margin-bottom:var(--content-switcher-gap-l);padding:var(--content-switcher-padding-m) var(--content-switcher-padding-l)}.arc .arc-ContentSwitcherDropdown-selectItem[data-highlighted]{background:var(--content-switcher-colors-light-bg-hover);cursor:pointer;outline:none}.arc .arc-ContentSwitcherDropdown-selectItem[data-state="checked"]{background:var(--content-switcher-colors-light-bg-active)}.arc .arc-ContentSwitcherDropdown-selectItem:last-of-type{margin-bottom:0}.arc .arc-ContentSwitcherDropdown-content[hidden]{display:none}
|