@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
|
@@ -2,61 +2,38 @@ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-549
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
4
|
import { V as VisuallyHidden } from './VisuallyHidden-cf45ac18.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
5
|
+
import { I as Icon } from './Icon-a5cb17de.js';
|
|
6
6
|
|
|
7
7
|
var Error = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
8
8
|
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
9
9
|
React__default.createElement("path", { d: "m13.06 12 2.845-2.845a.75.75 0 0 0-1.06-1.06L12 10.94 9.155 8.095a.75.75 0 0 0-1.06 1.06L10.939 12l-2.844 2.845a.75.75 0 1 0 1.06 1.06L12 13.061l2.845 2.844a.75.75 0 0 0 1.06-1.06L13.06 12Z", fill: "currentColor" })),
|
|
10
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
11
10
|
React__default.createElement("defs", null,
|
|
12
11
|
React__default.createElement("clipPath", { id: "a" },
|
|
13
12
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
14
13
|
|
|
15
14
|
var Warning = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
16
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
17
15
|
React__default.createElement("path", { d: "M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z", fill: "currentColor", stroke: "currentColor", strokeWidth: ".3" }))); };
|
|
18
16
|
|
|
19
17
|
var Complete = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
20
18
|
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
21
19
|
React__default.createElement("path", { d: "m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z", fill: "currentColor" })),
|
|
22
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }),
|
|
23
20
|
React__default.createElement("defs", null,
|
|
24
21
|
React__default.createElement("clipPath", null,
|
|
25
22
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
26
23
|
|
|
27
24
|
var Current = function () { return (React__default.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
28
|
-
React__default.createElement("rect", { x: "0.666667", y: "0.666667", width: "22.6667", height: "22.6667", rx: "11.3333", stroke: "url(#paint0_linear_1_1050)", strokeWidth: "1.33333" }),
|
|
29
25
|
React__default.createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
|
|
30
26
|
React__default.createElement("defs", null,
|
|
31
27
|
React__default.createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
|
|
32
28
|
React__default.createElement("stop", { stopColor: "#F200F5" }),
|
|
33
29
|
React__default.createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
|
|
34
30
|
|
|
35
|
-
var Todo = function () { return (React__default.createElement("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
36
|
-
React__default.createElement("rect", { x: ".667", y: ".667", width: "22.667", height: "22.667", rx: "11.333", stroke: "currentColor", strokeWidth: "1.333" }))); };
|
|
37
|
-
|
|
38
31
|
// export current step as an icon
|
|
39
32
|
var ProgressStepperItem = function (_a) {
|
|
40
|
-
// TODO: Revise icons missing in BT theme
|
|
41
|
-
// const statusIcons: Record<
|
|
42
|
-
// Exclude<ProgressStatus, "todo">,
|
|
43
|
-
// Extract<
|
|
44
|
-
// ThemeIconNames,
|
|
45
|
-
// | "progressStepperComplete"
|
|
46
|
-
// | "progressStepperCurrent"
|
|
47
|
-
// | "progressStepperWarning"
|
|
48
|
-
// | "progressStepperError"
|
|
49
|
-
// >
|
|
50
|
-
// > = {
|
|
51
|
-
// completed: "progressStepperComplete",
|
|
52
|
-
// current: "progressStepperCurrent",
|
|
53
|
-
// warning: "progressStepperWarning",
|
|
54
|
-
// error: "progressStepperError",
|
|
55
|
-
// };
|
|
56
33
|
var _b;
|
|
57
34
|
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _c = _a.direction, direction = _c === void 0 ? "horizontal" : _c, _d = _a.status, status = _d === void 0 ? "todo" : _d, _e = _a.size, size = _e === void 0 ? "large" : _e, isFluid = _a.isFluid, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "isFluid", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden"]);
|
|
58
35
|
var statusIcons = {
|
|
59
|
-
todo:
|
|
36
|
+
todo: undefined,
|
|
60
37
|
completed: Complete,
|
|
61
38
|
current: Current,
|
|
62
39
|
warning: Warning,
|
|
@@ -77,11 +54,10 @@ var ProgressStepperItem = function (_a) {
|
|
|
77
54
|
_b["arc-ProgressStepperItem--hasInteractiveStatus"] = status !== "todo",
|
|
78
55
|
_b)) }, filterDataAttrs(props)),
|
|
79
56
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSection" },
|
|
80
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
React__default.createElement(Icon, { size: size === "small" ? 16 : 24, icon: statusIcons[status] }))))),
|
|
57
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
|
|
58
|
+
React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
|
|
59
|
+
"arc-ProgressStepperItem-statusIcon--small": size === "small"
|
|
60
|
+
}) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon, { icon: statusIcons[status] }))))),
|
|
85
61
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
86
62
|
titleHref || onClick ? (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler },
|
|
87
63
|
title,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
2
|
import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
|
|
3
|
-
import { F as FormControl } from './FormControl-
|
|
3
|
+
import { F as FormControl } from './FormControl-ff671eb8.js';
|
|
4
4
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
5
|
-
import { C as Context } from './Surface-
|
|
5
|
+
import { C as Context } from './Surface-0af6a69a.js';
|
|
6
6
|
import { V as VisuallyHidden } from './VisuallyHidden-cf45ac18.js';
|
|
7
7
|
|
|
8
8
|
var RadioContext = createContext({});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
|
-
import { S as SemSizeBreakpointsM } from './index.es-
|
|
2
|
+
import { S as SemSizeBreakpointsM } from './index.es-932db59a.js';
|
|
3
3
|
import React__default, { useEffect, Fragment } from 'react';
|
|
4
|
-
import { B as BrandLogo } from './BrandLogo-
|
|
4
|
+
import { B as BrandLogo } from './BrandLogo-45d0d795.js';
|
|
5
5
|
import { u as useMediaQuery } from './use-media-query-d3622da8.js';
|
|
6
6
|
import { S as Section } from './Section-c1dc6e37.js';
|
|
7
|
-
import { S as Surface } from './Surface-
|
|
7
|
+
import { S as Surface } from './Surface-0af6a69a.js';
|
|
8
8
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
9
|
-
import { T as ThemeIcon } from './ThemeIcon-
|
|
9
|
+
import { T as ThemeIcon } from './ThemeIcon-e1e19266.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Use `SiteFooter` to display information at the bottom of a page.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs, s as suffixModifier } from './index.es-5496ec12.js';
|
|
2
|
-
import { b as SemSizeBreakpointsL } from './index.es-
|
|
2
|
+
import { b as SemSizeBreakpointsL } from './index.es-932db59a.js';
|
|
3
3
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
4
|
import React__default, { useEffect, Fragment, useRef, useState, createContext, useContext } from 'react';
|
|
5
|
-
import { B as BrandLogo } from './BrandLogo-
|
|
5
|
+
import { B as BrandLogo } from './BrandLogo-45d0d795.js';
|
|
6
6
|
import { u as useMediaQuery } from './use-media-query-d3622da8.js';
|
|
7
|
-
import { S as Surface } from './Surface-
|
|
7
|
+
import { S as Surface } from './Surface-0af6a69a.js';
|
|
8
8
|
import { B as BtIconChevronRightMid } from './BtIconChevronRightMid.esm-4764708f.js';
|
|
9
9
|
import { C as ConditionalWrapper } from './ConditionalWrapper-b85979de.js';
|
|
10
10
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
11
|
-
import { B as ButtonV2 } from './ButtonV2-
|
|
12
|
-
import { T as Text } from './Text-
|
|
13
|
-
import { I as Icon } from './Icon-
|
|
11
|
+
import { B as ButtonV2 } from './ButtonV2-c83db10c.js';
|
|
12
|
+
import { T as Text } from './Text-df93be85.js';
|
|
13
|
+
import { I as Icon } from './Icon-a5cb17de.js';
|
|
14
14
|
|
|
15
15
|
var Item = function (_a) {
|
|
16
16
|
var _b;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Use `Spinner` to display a loading state.
|
|
7
|
+
*/
|
|
8
|
+
var Spinner = function (_a) {
|
|
9
|
+
var _b = _a.size, size = _b === void 0 ? "m" : _b, color = _a.color;
|
|
10
|
+
var props = [];
|
|
11
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
12
|
+
props[_i - 1] = arguments[_i];
|
|
13
|
+
}
|
|
14
|
+
return (React__default.createElement("svg", __assign({ className: classNames("arc-Spinner", "arc-Spinner-".concat(color), "arc-Spinner-size--".concat(size)), width: typeof size === "number" ? "".concat(size, "px") : undefined, "data-testid": "arc-Spinner", "aria-label": "loading", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" }, filterDataAttrs(props)),
|
|
15
|
+
React__default.createElement("circle", { cx: "24", cy: "24", fill: "none", r: "22", "stroke-width": "4", "stroke-linecap": "round" })));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Spinner as S };
|
|
@@ -126,7 +126,7 @@ var Provider = Context.Provider;
|
|
|
126
126
|
*/
|
|
127
127
|
var Surface = function (_a) {
|
|
128
128
|
var _b;
|
|
129
|
-
var background = _a.background, children = _a.children, _c = _a.growVertically, growVertically = _c === void 0 ? false : _c, padding = _a.padding, paddingHorizontal = _a.paddingHorizontal, paddingVertical = _a.paddingVertical, props = __rest(_a, ["background", "children", "growVertically", "padding", "paddingHorizontal", "paddingVertical"]);
|
|
129
|
+
var background = _a.background, children = _a.children, _c = _a.growVertically, growVertically = _c === void 0 ? false : _c, padding = _a.padding, paddingHorizontal = _a.paddingHorizontal, paddingVertical = _a.paddingVertical, isTransparent = _a.isTransparent, props = __rest(_a, ["background", "children", "growVertically", "padding", "paddingHorizontal", "paddingVertical", "isTransparent"]);
|
|
130
130
|
var surface = "light";
|
|
131
131
|
if (background === "dark-black" ||
|
|
132
132
|
background === "dark-brand-01" ||
|
|
@@ -144,6 +144,7 @@ var Surface = function (_a) {
|
|
|
144
144
|
_b["arc-Surface--padding".concat(padding)] = padding,
|
|
145
145
|
_b["arc-Surface--paddingHorizontal".concat(paddingHorizontal)] = paddingHorizontal,
|
|
146
146
|
_b["arc-Surface--paddingVertical".concat(paddingVertical)] = paddingVertical,
|
|
147
|
+
_b["arc-Surface--isTransparent"] = isTransparent,
|
|
147
148
|
_b)) }, filterDataAttrs(props)), children)));
|
|
148
149
|
};
|
|
149
150
|
var backgroundsShared = [
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
|
+
import React__default, { useContext, useRef, useState, useEffect } from 'react';
|
|
3
|
+
import { $ as $69cb30bb0017df05$export$41fb9f06171c75f4, a as $69cb30bb0017df05$export$7c6e2c02157bb7d2, b as $69cb30bb0017df05$export$54c2e3dc7acea9f5, c as $69cb30bb0017df05$export$be92b6f5f03c0fe9 } from './index-89a7c31c.js';
|
|
4
|
+
import { I as Icon } from './Icon-a5cb17de.js';
|
|
5
|
+
import { C as Context } from './Surface-0af6a69a.js';
|
|
6
|
+
import { c as classNames } from './index-2e73c2e9.js';
|
|
7
|
+
import { T as ThemeIcon } from './ThemeIcon-e1e19266.js';
|
|
8
|
+
|
|
9
|
+
var Tab = function (_a) {
|
|
10
|
+
var label = _a.label, value = _a.value, icon = _a.icon, iconActive = _a.iconActive, props = __rest(_a, ["label", "value", "icon", "iconActive"]);
|
|
11
|
+
var surface = useContext(Context).surface;
|
|
12
|
+
return (React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, __assign({ className: classNames("arc-Tab-trigger", {
|
|
13
|
+
"arc-Tab-trigger--onDarkSurface": surface === "dark",
|
|
14
|
+
"arc-Tab-trigger--hasIcon": icon || iconActive
|
|
15
|
+
}), value: value }, filterDataAttrs(props)),
|
|
16
|
+
icon && (React__default.createElement("div", { className: "arc-Tab-triggerIcon", "data-testid": "arc-Tab-TriggerIcon" },
|
|
17
|
+
React__default.createElement(Icon, { icon: icon }))),
|
|
18
|
+
iconActive && (React__default.createElement("div", { className: "arc-Tab-triggerIcon arc-Tab-triggerIcon--active", "data-testid": "arc-Tab-TriggerIconActive" },
|
|
19
|
+
React__default.createElement(Icon, { icon: iconActive }))),
|
|
20
|
+
React__default.createElement("span", { className: "arc-Tab-triggerText" }, label)));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var TabContent = function (_a) {
|
|
24
|
+
var children = _a.children, value = _a.value, props = __rest(_a, ["children", "value"]);
|
|
25
|
+
return (React__default.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2, __assign({ className: "arc-Tab-content", value: value }, filterDataAttrs(props)), children));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var TabsList = function (_a) {
|
|
29
|
+
var children = _a.children, type = _a.type, isJustified = _a.isJustified, ariaLabel = _a.ariaLabel, props = __rest(_a, ["children", "type", "isJustified", "ariaLabel"]);
|
|
30
|
+
var surface = useContext(Context).surface;
|
|
31
|
+
var tabsRef = useRef(null);
|
|
32
|
+
var _b = useState(false), rightOverflow = _b[0], setRightOverflow = _b[1];
|
|
33
|
+
var _c = useState(false), leftOverflow = _c[0], setLeftOverflow = _c[1];
|
|
34
|
+
var checkOverflow = function (element) {
|
|
35
|
+
if (element) {
|
|
36
|
+
if (element.scrollWidth > element.clientWidth) {
|
|
37
|
+
setRightOverflow(true);
|
|
38
|
+
}
|
|
39
|
+
if (element.scrollLeft + 10 >=
|
|
40
|
+
element.scrollWidth - element.clientWidth) {
|
|
41
|
+
setRightOverflow(false);
|
|
42
|
+
}
|
|
43
|
+
if (element.scrollLeft >= 1) {
|
|
44
|
+
setLeftOverflow(true);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
setLeftOverflow(false);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
useEffect(function () {
|
|
52
|
+
checkOverflow(tabsRef.current);
|
|
53
|
+
}, []);
|
|
54
|
+
var scrollTabs = function (scrollAmount) {
|
|
55
|
+
if (tabsRef.current) {
|
|
56
|
+
tabsRef.current.scrollLeft += scrollAmount;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var onScroll = function (event) {
|
|
60
|
+
checkOverflow(event.currentTarget);
|
|
61
|
+
};
|
|
62
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
63
|
+
React__default.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5, __assign({ onScroll: onScroll, className: classNames("arc-Tabs", {
|
|
64
|
+
"arc-Tabs--contained": type === "contained",
|
|
65
|
+
"arc-Tabs--isJustified": isJustified,
|
|
66
|
+
"arc-Tabs--onDarkSurface": surface === "dark"
|
|
67
|
+
}), ref: tabsRef, "aria-label": ariaLabel }, filterDataAttrs(props)), children),
|
|
68
|
+
leftOverflow && (React__default.createElement("button", { className: classNames("arc-Tabs-overflowIcon arc-Tabs-overflowIcon--left", {
|
|
69
|
+
"arc-Tabs-overflowIcon--onDarkSurface": surface === "dark"
|
|
70
|
+
}), onClick: function () { return scrollTabs(-300); }, "aria-label": "Scroll Tabs Left", "data-testid": "arc-Tabs-overflowIconLeft" },
|
|
71
|
+
React__default.createElement(ThemeIcon, { icon: "tabsPrevious", size: 40, color: "brand" }))),
|
|
72
|
+
rightOverflow && (React__default.createElement("button", { className: classNames("arc-Tabs-overflowIcon", {
|
|
73
|
+
"arc-Tabs-overflowIcon--onDarkSurface": surface === "dark"
|
|
74
|
+
}), onClick: function () { return scrollTabs(300); }, "aria-label": "Scroll Tabs Right", "data-testid": "arc-Tabs-overflowIconRight" },
|
|
75
|
+
React__default.createElement(ThemeIcon, { icon: "tabsNext", size: 40, color: "brand" })))));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** Use `Tabs` to allow users to navigate between different sections of relevant content. */
|
|
79
|
+
var Tabs = function (_a) {
|
|
80
|
+
var children = _a.children, defaultValue = _a.defaultValue, onValueChange = _a.onValueChange, activationMode = _a.activationMode, props = __rest(_a, ["children", "defaultValue", "onValueChange", "activationMode"]);
|
|
81
|
+
return (React__default.createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, __assign({ className: "arc-Tabs-root", defaultValue: defaultValue, onValueChange: onValueChange, activationMode: activationMode }, filterDataAttrs(props)), children));
|
|
82
|
+
};
|
|
83
|
+
Tabs.Tab = Tab;
|
|
84
|
+
Tabs.List = TabsList;
|
|
85
|
+
Tabs.Content = TabContent;
|
|
86
|
+
|
|
87
|
+
export { Tabs as T };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, s as suffixModifier, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { C as Context } from './Surface-
|
|
4
|
+
import { C as Context } from './Surface-0af6a69a.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Text` to display text.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { forwardRef, useContext, useState } from 'react';
|
|
4
|
-
import { u as useAriaDescribedby, F as FormControl } from './FormControl-
|
|
5
|
-
import { C as Context } from './Surface-
|
|
4
|
+
import { u as useAriaDescribedby, F as FormControl } from './FormControl-ff671eb8.js';
|
|
5
|
+
import { C as Context } from './Surface-0af6a69a.js';
|
|
6
6
|
import { V as VisuallyHidden } from './VisuallyHidden-cf45ac18.js';
|
|
7
|
-
import { I as Icon } from './Icon-
|
|
7
|
+
import { I as Icon } from './Icon-a5cb17de.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Infer the correct inputMode, pattern and type if specifying a `number` type.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, s as suffixModifier, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { useContext } from 'react';
|
|
4
|
-
import { C as Context } from './Surface-
|
|
4
|
+
import { C as Context } from './Surface-0af6a69a.js';
|
|
5
5
|
|
|
6
6
|
var ThemeIcon = function (_a) {
|
|
7
7
|
var _b;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
2
|
import React__default, { forwardRef, useContext, useState, useEffect, createElement, useRef, createContext, useCallback, useMemo, Fragment } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { c as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, a as $8927f6f2acc4f386$export$250ffa63cdc0d034, _ as _extends, b as $e42e1063c40fb3ef$export$b9ecd428b558ff10, e as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, h as $8927f6f2acc4f386$export$6d1a0317bde7de7f, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, f as $9f79659886946c16$export$e5c5a5f917a5871c, d as $71cd76cc60e0454e$export$6f32135080cb4c3 } from './index-57d4cb34.js';
|
|
4
4
|
import ReactDOM__default, { createPortal } from 'react-dom';
|
|
5
|
-
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-
|
|
6
|
-
import { $ as $addc16e1bbe58fd0$export$3a72a57244d6e765, a as $ea1ef594cf570d83$export$439d29a4e110a164 } from './index-
|
|
7
|
-
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-
|
|
5
|
+
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-14c7f4da.js';
|
|
6
|
+
import { $ as $addc16e1bbe58fd0$export$3a72a57244d6e765, a as $ea1ef594cf570d83$export$439d29a4e110a164 } from './index-e969452b.js';
|
|
7
|
+
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-f2ddcbe2.js';
|
|
8
8
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
9
|
-
import { T as ThemeIcon } from './ThemeIcon-
|
|
9
|
+
import { T as ThemeIcon } from './ThemeIcon-e1e19266.js';
|
|
10
10
|
|
|
11
11
|
const $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';
|
|
12
12
|
const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index.es-5496ec12.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { S as Surface } from './Surface-
|
|
3
|
+
import { S as Surface } from './Surface-0af6a69a.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use `UniversalHeader` to display a group-level page header.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, c as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, g as $5e63c961fc1ce211$export$8c6ed5c666ac1360 } from './index-57d4cb34.js';
|
|
3
3
|
|
|
4
4
|
// We have resorted to returning slots directly rather than exposing primitives that can then
|
|
5
5
|
// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, useMemo, createElement, useContext, useCallback, forwardRef, Children, isValidElement, cloneElement, Fragment, useEffect, useRef,
|
|
1
|
+
import { createContext, useMemo, createElement, useContext, useCallback, forwardRef, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { flushSync } from 'react-dom';
|
|
3
3
|
|
|
4
4
|
function _extends() {
|
|
@@ -219,6 +219,14 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
/**
|
|
223
|
+
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
224
|
+
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
225
|
+
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
226
|
+
*
|
|
227
|
+
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
228
|
+
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? useLayoutEffect : ()=>{};
|
|
229
|
+
|
|
222
230
|
const $8927f6f2acc4f386$var$NODES = [
|
|
223
231
|
'a',
|
|
224
232
|
'button',
|
|
@@ -315,14 +323,6 @@ const $8927f6f2acc4f386$var$NODES = [
|
|
|
315
323
|
, []);
|
|
316
324
|
}
|
|
317
325
|
|
|
318
|
-
/**
|
|
319
|
-
* On the server, React emits a warning when calling `useLayoutEffect`.
|
|
320
|
-
* This is because neither `useLayoutEffect` nor `useEffect` run on the server.
|
|
321
|
-
* We use this safe version which suppresses the warning by replacing it with a noop on the server.
|
|
322
|
-
*
|
|
323
|
-
* See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
|
|
324
|
-
*/ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? useLayoutEffect : ()=>{};
|
|
325
|
-
|
|
326
326
|
function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
|
|
327
327
|
const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
|
|
328
328
|
defaultProp: defaultProp,
|
|
@@ -366,4 +366,4 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp ,
|
|
|
366
366
|
return uncontrolledState;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
export { $
|
|
369
|
+
export { $c512c27ab02ef895$export$50c7b4e9d9f19c1 as $, _extends as _, $8927f6f2acc4f386$export$250ffa63cdc0d034 as a, $e42e1063c40fb3ef$export$b9ecd428b558ff10 as b, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as c, $71cd76cc60e0454e$export$6f32135080cb4c3 as d, $b1b2314f5f9a1d84$export$25bec8c6f54ee79a as e, $9f79659886946c16$export$e5c5a5f917a5871c as f, $5e63c961fc1ce211$export$8c6ed5c666ac1360 as g, $8927f6f2acc4f386$export$6d1a0317bde7de7f as h };
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { $ as $
|
|
5
|
-
import { $ as $
|
|
6
|
-
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-d083425f.js';
|
|
7
|
-
import { I as Icon } from './Icon-428e8061.js';
|
|
8
|
-
import { C as Context } from './Surface-c425e5e6.js';
|
|
9
|
-
import { c as classNames } from './index-2e73c2e9.js';
|
|
10
|
-
import { T as ThemeIcon } from './ThemeIcon-9fac63d0.js';
|
|
1
|
+
import { $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $8927f6f2acc4f386$export$250ffa63cdc0d034, _ as _extends, b as $e42e1063c40fb3ef$export$b9ecd428b558ff10, c as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, d as $71cd76cc60e0454e$export$6f32135080cb4c3, e as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a } from './index-57d4cb34.js';
|
|
2
|
+
import { forwardRef, useEffect, createElement, useRef, useState, useCallback } from 'react';
|
|
3
|
+
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2 } from './index-14c7f4da.js';
|
|
4
|
+
import { $ as $1746a345f3d73bb7$export$f680877a34711e37, a as $f631663db3294ace$export$b39126d51d94e6f3 } from './index-b9923ee4.js';
|
|
5
|
+
import { $ as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-f2ddcbe2.js';
|
|
11
6
|
|
|
12
7
|
const $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';
|
|
13
8
|
const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
|
|
@@ -376,82 +371,4 @@ const $69cb30bb0017df05$export$54c2e3dc7acea9f5 = $69cb30bb0017df05$export$9712d
|
|
|
376
371
|
const $69cb30bb0017df05$export$41fb9f06171c75f4 = $69cb30bb0017df05$export$8114b9fdfdf9f3ba;
|
|
377
372
|
const $69cb30bb0017df05$export$7c6e2c02157bb7d2 = $69cb30bb0017df05$export$bd905d70e8fd2ebb;
|
|
378
373
|
|
|
379
|
-
|
|
380
|
-
var label = _a.label, value = _a.value, icon = _a.icon, iconActive = _a.iconActive, props = __rest(_a, ["label", "value", "icon", "iconActive"]);
|
|
381
|
-
var surface = useContext(Context).surface;
|
|
382
|
-
return (React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, __assign({ className: classNames("arc-Tab-trigger", {
|
|
383
|
-
"arc-Tab-trigger--onDarkSurface": surface === "dark",
|
|
384
|
-
"arc-Tab-trigger--hasIcon": icon || iconActive
|
|
385
|
-
}), value: value }, filterDataAttrs(props)),
|
|
386
|
-
icon && (React__default.createElement("div", { className: "arc-Tab-triggerIcon", "data-testid": "arc-Tab-TriggerIcon" },
|
|
387
|
-
React__default.createElement(Icon, { icon: icon }))),
|
|
388
|
-
iconActive && (React__default.createElement("div", { className: "arc-Tab-triggerIcon arc-Tab-triggerIcon--active", "data-testid": "arc-Tab-TriggerIconActive" },
|
|
389
|
-
React__default.createElement(Icon, { icon: iconActive }))),
|
|
390
|
-
React__default.createElement("span", { className: "arc-Tab-triggerText" }, label)));
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
var TabContent = function (_a) {
|
|
394
|
-
var children = _a.children, value = _a.value, props = __rest(_a, ["children", "value"]);
|
|
395
|
-
return (React__default.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2, __assign({ className: "arc-Tab-content", value: value }, filterDataAttrs(props)), children));
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
var TabsList = function (_a) {
|
|
399
|
-
var children = _a.children, type = _a.type, isJustified = _a.isJustified, ariaLabel = _a.ariaLabel, props = __rest(_a, ["children", "type", "isJustified", "ariaLabel"]);
|
|
400
|
-
var surface = useContext(Context).surface;
|
|
401
|
-
var tabsRef = useRef(null);
|
|
402
|
-
var _b = useState(false), rightOverflow = _b[0], setRightOverflow = _b[1];
|
|
403
|
-
var _c = useState(false), leftOverflow = _c[0], setLeftOverflow = _c[1];
|
|
404
|
-
var checkOverflow = function (element) {
|
|
405
|
-
if (element) {
|
|
406
|
-
if (element.scrollWidth > element.clientWidth) {
|
|
407
|
-
setRightOverflow(true);
|
|
408
|
-
}
|
|
409
|
-
if (element.scrollLeft + 10 >=
|
|
410
|
-
element.scrollWidth - element.clientWidth) {
|
|
411
|
-
setRightOverflow(false);
|
|
412
|
-
}
|
|
413
|
-
if (element.scrollLeft >= 1) {
|
|
414
|
-
setLeftOverflow(true);
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
setLeftOverflow(false);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
useEffect(function () {
|
|
422
|
-
checkOverflow(tabsRef.current);
|
|
423
|
-
}, []);
|
|
424
|
-
var scrollTabs = function (scrollAmount) {
|
|
425
|
-
if (tabsRef.current) {
|
|
426
|
-
tabsRef.current.scrollLeft += scrollAmount;
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
var onScroll = function (event) {
|
|
430
|
-
checkOverflow(event.currentTarget);
|
|
431
|
-
};
|
|
432
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
433
|
-
React__default.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5, __assign({ onScroll: onScroll, className: classNames("arc-Tabs", {
|
|
434
|
-
"arc-Tabs--contained": type === "contained",
|
|
435
|
-
"arc-Tabs--isJustified": isJustified,
|
|
436
|
-
"arc-Tabs--onDarkSurface": surface === "dark"
|
|
437
|
-
}), ref: tabsRef, "aria-label": ariaLabel }, filterDataAttrs(props)), children),
|
|
438
|
-
leftOverflow && (React__default.createElement("button", { className: classNames("arc-Tabs-overflowIcon arc-Tabs-overflowIcon--left", {
|
|
439
|
-
"arc-Tabs-overflowIcon--onDarkSurface": surface === "dark"
|
|
440
|
-
}), onClick: function () { return scrollTabs(-300); }, "aria-label": "Scroll Tabs Left", "data-testid": "arc-Tabs-overflowIconLeft" },
|
|
441
|
-
React__default.createElement(ThemeIcon, { icon: "tabsPrevious", size: 40, color: "brand" }))),
|
|
442
|
-
rightOverflow && (React__default.createElement("button", { className: classNames("arc-Tabs-overflowIcon", {
|
|
443
|
-
"arc-Tabs-overflowIcon--onDarkSurface": surface === "dark"
|
|
444
|
-
}), onClick: function () { return scrollTabs(300); }, "aria-label": "Scroll Tabs Right", "data-testid": "arc-Tabs-overflowIconRight" },
|
|
445
|
-
React__default.createElement(ThemeIcon, { icon: "tabsNext", size: 40, color: "brand" })))));
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
/** Use `Tabs` to allow users to navigate between different sections of relevant content. */
|
|
449
|
-
var Tabs = function (_a) {
|
|
450
|
-
var children = _a.children, defaultValue = _a.defaultValue, onValueChange = _a.onValueChange, activationMode = _a.activationMode, props = __rest(_a, ["children", "defaultValue", "onValueChange", "activationMode"]);
|
|
451
|
-
return (React__default.createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, __assign({ className: "arc-Tabs-root", defaultValue: defaultValue, onValueChange: onValueChange, activationMode: activationMode }, filterDataAttrs(props)), children));
|
|
452
|
-
};
|
|
453
|
-
Tabs.Tab = Tab;
|
|
454
|
-
Tabs.List = TabsList;
|
|
455
|
-
Tabs.Content = TabContent;
|
|
456
|
-
|
|
457
|
-
export { Tabs as T };
|
|
374
|
+
export { $69cb30bb0017df05$export$41fb9f06171c75f4 as $, $69cb30bb0017df05$export$7c6e2c02157bb7d2 as a, $69cb30bb0017df05$export$54c2e3dc7acea9f5 as b, $69cb30bb0017df05$export$be92b6f5f03c0fe9 as c };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useMemo } from 'react';
|
|
2
|
-
import { f as $9f79659886946c16$export$e5c5a5f917a5871c } from './index-
|
|
2
|
+
import { f as $9f79659886946c16$export$e5c5a5f917a5871c } from './index-57d4cb34.js';
|
|
3
3
|
|
|
4
4
|
function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
5
5
|
const [size, setSize] = useState(undefined);
|