@arc-ui/components 12.0.0-beta.16 → 12.0.0-beta.18
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/lib/Alert/Alert.cjs +1 -1
- package/lib/Alert/Alert.mjs +1 -1
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +6 -6
- package/lib/Banner/Banner.mjs +6 -6
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -2
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/Button.cjs +2 -2
- package/lib/Button/Button.mjs +2 -2
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/ButtonGroup.cjs +3 -3
- package/lib/ButtonGroup/ButtonGroup.mjs +3 -3
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/ButtonV2.cjs +2 -2
- package/lib/ButtonV2/ButtonV2.mjs +2 -2
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +4 -4
- package/lib/Calendar/Calendar.mjs +4 -4
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/CardFooter.cjs +2 -4
- package/lib/CardFooter/CardFooter.mjs +2 -4
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +1 -1
- package/lib/Carousel/Carousel.mjs +1 -1
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +6 -6
- package/lib/ComboBox/ComboBox.mjs +6 -6
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +6 -4
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +6 -4
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +9 -9
- package/lib/DatePicker/DatePicker.mjs +9 -9
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/Drawer.cjs +3 -3
- package/lib/Drawer/Drawer.mjs +3 -3
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +31 -0
- package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +29 -0
- package/lib/GhostedHeroBanner/styles.css +1 -0
- package/lib/GradientBackground/GradientBackground.cjs +19 -0
- package/lib/GradientBackground/GradientBackground.mjs +17 -0
- package/lib/GradientBackground/styles.css +1 -0
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +6 -6
- package/lib/HeroBanner/HeroBanner.mjs +6 -6
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +2 -2
- package/lib/HeroButton/HeroButton.mjs +2 -2
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/HorizontalCard.cjs +2 -4
- package/lib/HorizontalCard/HorizontalCard.mjs +2 -4
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/Icon.cjs +1 -1
- package/lib/Icon/Icon.mjs +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/ImpactCard.cjs +2 -4
- package/lib/ImpactCard/ImpactCard.mjs +2 -4
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +4 -4
- package/lib/InformationCard/InformationCard.mjs +4 -4
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +9 -22
- package/lib/Link/Link.mjs +9 -22
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +4 -6
- package/lib/MediaCard/MediaCard.mjs +4 -6
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +261 -0
- package/lib/Menu/Menu.mjs +243 -0
- package/lib/Menu/styles.css +1 -0
- package/lib/Modal/Modal.cjs +18 -12
- package/lib/Modal/Modal.mjs +18 -12
- package/lib/Modal/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/PaginationSimple.cjs +15 -49
- package/lib/PaginationSimple/PaginationSimple.mjs +15 -49
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/Popover.cjs +7 -7
- package/lib/Popover/Popover.mjs +7 -7
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +8 -23
- package/lib/ProgressStepper/ProgressStepper.mjs +8 -23
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +2 -2
- package/lib/RadioCardGroup/RadioCardGroup.mjs +3 -3
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +8 -17
- package/lib/ScrollToTop/ScrollToTop.mjs +8 -17
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/Select.cjs +4 -3
- package/lib/Select/Select.mjs +4 -3
- package/lib/Select/styles.css +1 -1
- package/lib/SiteFooter/SiteFooter.cjs +1 -1
- package/lib/SiteFooter/SiteFooter.mjs +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +5 -5
- package/lib/SiteFooterV2/SiteFooterV2.mjs +5 -5
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +11 -11
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +12 -12
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/Switch.cjs +3 -2
- package/lib/Switch/Switch.mjs +3 -2
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +13 -10
- package/lib/TabbedBanner/TabbedBanner.mjs +13 -10
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +1 -1
- package/lib/Tabs/Tabs.mjs +1 -1
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/Tag.cjs +15 -37
- package/lib/Tag/Tag.mjs +15 -37
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +6 -6
- package/lib/TemplateBanner/TemplateBanner.mjs +6 -6
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +34 -26
- package/lib/TextArea/TextArea.mjs +34 -26
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +4 -4
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +4 -4
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +1 -1
- package/lib/Tooltip/Tooltip.mjs +1 -1
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +2 -4
- package/lib/TypographyCard/TypographyCard.mjs +2 -4
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/VideoPlayer.cjs +12 -5
- package/lib/VideoPlayer/VideoPlayer.mjs +12 -5
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/BannerImage-kdAKagG-.cjs +13 -0
- package/lib/_shared/cjs/BtIconArrowRight-Bm5PIn_6.cjs +11 -0
- package/lib/_shared/cjs/BtIconChevronRight2Px-CIRaur2B.cjs +20 -0
- package/lib/_shared/cjs/BtIconChevronRightMid-eGxk3ae6.cjs +11 -0
- package/lib/_shared/cjs/{Button-b36K7-Cf.cjs → Button-CKTa6bQL.cjs} +1 -1
- package/lib/_shared/cjs/{ButtonV2-s8OF4enU.cjs → ButtonV2-CRNNZ_nd.cjs} +15 -4
- package/lib/_shared/cjs/{Calendar-D58QIWQz.cjs → Calendar-C5C0evEy.cjs} +17 -40
- package/lib/_shared/cjs/{CardFooter-B2ljCf25.cjs → CardFooter-DwE-u0Om.cjs} +9 -45
- package/lib/_shared/cjs/{Combination-iNPq-pNP.cjs → Combination-B-rSVLfT.cjs} +2 -0
- package/lib/_shared/cjs/{ComboBox-CmVMpsxn.cjs → ComboBox-BIMxZhJp.cjs} +10 -20
- package/lib/_shared/cjs/{ContentSwitcherDropdown-CWP2-zun.cjs → ContentSwitcherDropdown-CAWaAMZN.cjs} +4 -2
- package/lib/_shared/cjs/{DatePicker-Cx5VZpwJ.cjs → DatePicker-BgU6iidG.cjs} +2 -2
- package/lib/_shared/cjs/HeroButton-CiIygZ16.cjs +82 -0
- package/lib/_shared/cjs/Icon-KMACQ1i3.cjs +39 -0
- package/lib/_shared/cjs/{MediaCard-DkTTTQNz.cjs → MediaCard-kcqfmeue.cjs} +2 -2
- package/lib/_shared/cjs/MenuSubContent-Bs2_ebS3.cjs +1330 -0
- package/lib/_shared/cjs/{RadioCardGroupInput-DT0Xce4L.cjs → RadioCardGroupInput-BmntgyWB.cjs} +1 -1
- package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-XnnzUfOs.cjs → SiteHeaderV2NavItemWithSubNav-DgoCW2W3.cjs} +8 -7
- package/lib/_shared/cjs/{TemplateBanner-BCbI7NLb.cjs → TemplateBanner-BMi77IGK.cjs} +10 -18
- package/lib/_shared/cjs/{index-DbQ2PCr3.cjs → index-Bt7hfZBc.cjs} +1 -1
- package/lib/_shared/cjs/{index-BcWpGxUd.cjs → index-C_Rl7v2g.cjs} +27 -94
- package/lib/_shared/cjs/{index-Cn7XSNle.cjs → index-CaO6cOF0.cjs} +3 -3
- package/lib/_shared/cjs/index-CqYNiqix.cjs +137 -0
- package/lib/_shared/cjs/{index-BMs6MHwq.cjs → index-DAr_oO4-.cjs} +2 -2
- package/lib/_shared/cjs/{index-DNgUhsBO.cjs → index-Dv1xvB_E.cjs} +1 -1
- package/lib/_shared/cjs/index-EFXw1jWg.cjs +97 -0
- package/lib/_shared/cjs/{index.es-CY6h69at.cjs → index.es-sqSQUWYg.cjs} +1 -1
- package/lib/_shared/esm/BannerImage-BTsixvUH.mjs +11 -0
- package/lib/_shared/esm/BtIconArrowRight-DpUmY3g3.mjs +9 -0
- package/lib/_shared/esm/BtIconChevronRight2Px-DzWb16fR.mjs +17 -0
- package/lib/_shared/esm/BtIconChevronRightMid-DE4lmVaG.mjs +9 -0
- package/lib/_shared/esm/{Button-DtmI3xYm.mjs → Button-9L4AksQP.mjs} +1 -1
- package/lib/_shared/esm/{ButtonV2-CkFdHviV.mjs → ButtonV2-2U4PvnpS.mjs} +15 -4
- package/lib/_shared/esm/{Calendar-C_b271wl.mjs → Calendar-L6u3D8xb.mjs} +17 -40
- package/lib/_shared/esm/{CardFooter-6APGUbK4.mjs → CardFooter-CgDDDI7Z.mjs} +9 -45
- package/lib/_shared/esm/{Combination-CFD0IA8r.mjs → Combination-BpO6XTeS.mjs} +1 -1
- package/lib/_shared/esm/{ComboBox-CTx_umV_.mjs → ComboBox-DUTrEu0N.mjs} +10 -20
- package/lib/_shared/esm/{ContentSwitcherDropdown-DuN_n1jh.mjs → ContentSwitcherDropdown-dktkyAjY.mjs} +4 -2
- package/lib/_shared/esm/{DatePicker-CIdfpUqM.mjs → DatePicker-CccSfg17.mjs} +2 -2
- package/lib/_shared/esm/HeroButton-HYskwyvn.mjs +80 -0
- package/lib/_shared/esm/Icon-MZfaoOo9.mjs +36 -0
- package/lib/_shared/esm/{MediaCard-_6xVVmiF.mjs → MediaCard-CjTDOvmx.mjs} +2 -2
- package/lib/_shared/esm/MenuSubContent-Cv9mSn58.mjs +1297 -0
- package/lib/_shared/esm/{RadioCardGroupInput-CwYJBtmO.mjs → RadioCardGroupInput-Cy1r7M8l.mjs} +1 -1
- package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-C_rohQhn.mjs → SiteHeaderV2NavItemWithSubNav-BLqiSeEC.mjs} +8 -7
- package/lib/_shared/esm/{TemplateBanner-Cckao4N8.mjs → TemplateBanner-zc4VmeeW.mjs} +10 -18
- package/lib/_shared/esm/index-BbAu4d3T.mjs +76 -0
- package/lib/_shared/esm/index-CL6dwOYV.mjs +135 -0
- package/lib/_shared/esm/{index-CpOcAL8k.mjs → index-CYUcQl4W.mjs} +3 -71
- package/lib/_shared/esm/{index-ZYyu0Vjh.mjs → index-CxrL7jIX.mjs} +3 -3
- package/lib/_shared/esm/{index-DNxTGgc1.mjs → index-DLovItWo.mjs} +1 -1
- package/lib/_shared/esm/{index-BUp5JjoD.mjs → index-DXTwueLZ.mjs} +1 -1
- package/lib/_shared/esm/{index-pkbjTTz_.mjs → index-J5IHetgg.mjs} +2 -2
- package/lib/_shared/esm/{index.es-JItYKukj.mjs → index.es-C3WGtwrW.mjs} +2 -2
- package/lib/index.cjs +2457 -1014
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +800 -431
- package/lib/index.d.mts +800 -431
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2437 -1014
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +22 -8
- package/package.json +11 -8
- package/lib/_shared/cjs/BtIconArrowRight-BX-bj8Y6.cjs +0 -27
- package/lib/_shared/cjs/BtIconChevronRight2Px-CnplmEFZ.cjs +0 -41
- package/lib/_shared/cjs/BtIconChevronRightMid-C6zjDEMv.cjs +0 -25
- package/lib/_shared/cjs/BtIconPlayFill-WUt-9eLl.cjs +0 -27
- package/lib/_shared/cjs/HeroButton-CrsC6Q7A.cjs +0 -124
- package/lib/_shared/cjs/Icon-DdqFr6bT.cjs +0 -52
- package/lib/_shared/esm/BtIconArrowRight-CTjAzV9X.mjs +0 -25
- package/lib/_shared/esm/BtIconChevronRight2Px-CWIIvs1E.mjs +0 -38
- package/lib/_shared/esm/BtIconChevronRightMid-DB68JQ0u.mjs +0 -23
- package/lib/_shared/esm/BtIconPlayFill-DEoVOrOQ.mjs +0 -25
- package/lib/_shared/esm/HeroButton-x7krReay.mjs +0 -122
- package/lib/_shared/esm/Icon-B626JGP1.mjs +0 -49
package/lib/_shared/esm/{RadioCardGroupInput-CwYJBtmO.mjs → RadioCardGroupInput-Cy1r7M8l.mjs}
RENAMED
|
@@ -3,7 +3,7 @@ import React__default, { createContext, useContext, forwardRef } from 'react';
|
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
4
|
import { c as capitaliseFirstLetter } from './capitalise-first-letter-Cubg2CS1.mjs';
|
|
5
5
|
import { C as Context } from './Surface-Colbp3Zx.mjs';
|
|
6
|
-
import { I as Icon } from './Icon-
|
|
6
|
+
import { I as Icon } from './Icon-MZfaoOo9.mjs';
|
|
7
7
|
|
|
8
8
|
var RadioContext = createContext({});
|
|
9
9
|
var Provider = RadioContext.Provider;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default, { createContext, useState, useRef, useEffect, useContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import { d as ArcSizeBreakpointsL } from './index.es-
|
|
5
|
-
import { a as BtIconChevronRight2Px, B as BtIconChevronLeft2Px } from './BtIconChevronRight2Px-
|
|
4
|
+
import { d as ArcSizeBreakpointsL } from './index.es-C3WGtwrW.mjs';
|
|
5
|
+
import { a as BtIconChevronRight2Px, B as BtIconChevronLeft2Px } from './BtIconChevronRight2Px-DzWb16fR.mjs';
|
|
6
6
|
import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
|
|
7
|
+
import { I as Icon } from './Icon-MZfaoOo9.mjs';
|
|
7
8
|
import { S as Surface } from './Surface-Colbp3Zx.mjs';
|
|
8
|
-
import { B as ButtonV2 } from './ButtonV2-
|
|
9
|
+
import { B as ButtonV2 } from './ButtonV2-2U4PvnpS.mjs';
|
|
9
10
|
import { h as handleLinkClick } from './handle-link-click-CIgZ7pa0.mjs';
|
|
10
11
|
import { B as BrandLogo } from './BrandLogo-_2Z_8I2Y.mjs';
|
|
11
12
|
|
|
@@ -100,11 +101,11 @@ var SiteHeaderV2 = function (_a) {
|
|
|
100
101
|
React__default.createElement("button", { className: "arc-SiteHeaderV2-mobileLogin", onClick: loginOnClick },
|
|
101
102
|
loginTitle,
|
|
102
103
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
103
|
-
React__default.createElement(
|
|
104
|
+
React__default.createElement(Icon, { icon: BtIconChevronRight2Px }))))) : (React__default.createElement("div", { className: "arc-SiteHeaderV2-mobileButtonContainer" },
|
|
104
105
|
React__default.createElement("a", { className: "arc-SiteHeaderV2-mobileLogin", href: loginHref },
|
|
105
106
|
loginTitle,
|
|
106
107
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
107
|
-
React__default.createElement(
|
|
108
|
+
React__default.createElement(Icon, { icon: BtIconChevronRight2Px })))))))))),
|
|
108
109
|
(basket || hasLogin || search) && (React__default.createElement("div", { className: "arc-SiteHeaderV2-secondary" },
|
|
109
110
|
search ? (React__default.createElement("div", { className: "arc-SiteHeaderV2-search" }, search)) : null,
|
|
110
111
|
basket ? (React__default.createElement("div", { className: "arc-SiteHeaderV2-basket" }, basket)) : null,
|
|
@@ -121,7 +122,7 @@ var SiteHeaderV2BackButton = function (_a) {
|
|
|
121
122
|
setOpenPanelOnFirstClick(false);
|
|
122
123
|
} },
|
|
123
124
|
React__default.createElement("span", { className: "arc-SiteHeaderV2BackButton-icon" },
|
|
124
|
-
React__default.createElement(
|
|
125
|
+
React__default.createElement(Icon, { icon: BtIconChevronLeft2Px })),
|
|
125
126
|
React__default.createElement("span", { className: "arc-SiteHeaderV2BackButton-text" }, "Back")));
|
|
126
127
|
};
|
|
127
128
|
|
|
@@ -401,7 +402,7 @@ var SiteHeaderV2NavItemWithSubNav = function (_a) {
|
|
|
401
402
|
_d["arc-SiteHeaderV2NavItem-link--itemHasChildren-primary"] = isPrimary,
|
|
402
403
|
_d)) }, title),
|
|
403
404
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
404
|
-
React__default.createElement(
|
|
405
|
+
React__default.createElement(Icon, { icon: BtIconChevronRight2Px })),
|
|
405
406
|
subTitle && !isPrimary && isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: classNames((_e = {},
|
|
406
407
|
_e["arc-SiteHeaderV2NavItemWithSubNav-text"] = !isPrimary,
|
|
407
408
|
_e["arc-SiteHeaderV2NavItem-link--itemHasChildren-closeFirstPanel"] = !isPrimary && !opensFirstWithPanel,
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { A as ArcSizeBreakpointsM } from './index.es-C3WGtwrW.mjs';
|
|
5
5
|
import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
|
|
6
6
|
import { V as VerticalSpace } from './VerticalSpace-Duhm0zXP.mjs';
|
|
7
|
-
import { T as Text } from './Text-CBlnm5CT.mjs';
|
|
8
7
|
import { B as Box } from './Box-BYm_GTct.mjs';
|
|
9
8
|
import { H as Heading } from './Heading-CxHWefi7.mjs';
|
|
10
9
|
import { G as Grid, b as GridRow, a as GridCol } from './GridRow-Ddt5CtFn.mjs';
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
var BannerImage = function (_a) {
|
|
14
|
-
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
15
|
-
return (React__default.createElement(Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
16
|
-
sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); })));
|
|
17
|
-
};
|
|
10
|
+
import { B as BannerImage } from './BannerImage-BTsixvUH.mjs';
|
|
18
11
|
|
|
19
12
|
var TemplateBanner = function (_a) {
|
|
20
13
|
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, _c = _a.alignment, alignment = _c === void 0 ? "center" : _c, additionalTopMargin = _a.additionalTopMargin, _d = _a.minHeight, minHeight = _d === void 0 ? 454 : _d, _e = _a.headingSize, headingSize = _e === void 0 ? "xl" : _e, _f = _a.isReversed, isReversed = _f === void 0 ? false : _f, _g = _a.isElevated, isElevated = _g === void 0 ? false : _g, _h = _a.headingLevel, headingLevel = _h === void 0 ? "2" : _h, _j = _a.type, type = _j === void 0 ? "light" : _j, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "headingSize", "isReversed", "isElevated", "headingLevel", "type"]);
|
|
@@ -31,7 +24,7 @@ var TemplateBanner = function (_a) {
|
|
|
31
24
|
};
|
|
32
25
|
var isContained = type === "contained";
|
|
33
26
|
var borderWidth = isContained && !isElevated ? "thin" : undefined;
|
|
34
|
-
var direction = isReversed && isMinWidthArcBreakpointM ? "row" : "row
|
|
27
|
+
var direction = isReversed && isMinWidthArcBreakpointM ? "row-reverse" : "row";
|
|
35
28
|
var columnWithImgWidths = {
|
|
36
29
|
"1/0": 12,
|
|
37
30
|
"2/3": 8,
|
|
@@ -43,14 +36,10 @@ var TemplateBanner = function (_a) {
|
|
|
43
36
|
React__default.createElement(Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
|
|
44
37
|
React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
45
38
|
React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow", direction: direction },
|
|
46
|
-
img && contentRatio !== "1/0" && (React__default.createElement(GridCol, __assign({ "data-coltype": "img", "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
|
|
47
|
-
? { m: imageAlignment[img.alignment || "center"] }
|
|
48
|
-
: undefined, xs: 12, order: { xs: isContained && isReversed ? 0 : 1, m: 0 } }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
|
|
49
|
-
React__default.createElement(BannerImage, __assign({}, img)))),
|
|
50
39
|
React__default.createElement(GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
|
|
51
40
|
m: alignment === "start" ? "start" : "center",
|
|
52
41
|
xs: !img || contentRatio === "1/0" ? "center" : "start",
|
|
53
|
-
}, xs: 12, m: img ? columnWithImgWidths[contentRatio] : 12 },
|
|
42
|
+
}, xs: 12, order: { xs: isContained && isReversed ? 1 : 0, m: 0 }, m: img ? columnWithImgWidths[contentRatio] : 12 },
|
|
54
43
|
React__default.createElement("div", { className: classNames("arc-TemplateBanner-content", {
|
|
55
44
|
"arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
|
|
56
45
|
}) },
|
|
@@ -60,11 +49,14 @@ var TemplateBanner = function (_a) {
|
|
|
60
49
|
React__default.createElement(Heading, { level: headingLevel, size: headingSize }, heading),
|
|
61
50
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
62
51
|
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
63
|
-
React__default.createElement("
|
|
64
|
-
React__default.createElement(Text, null, text)))),
|
|
52
|
+
React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
65
53
|
children && (React__default.createElement(React__default.Fragment, null,
|
|
66
54
|
React__default.createElement(VerticalSpace, { size: "32" }),
|
|
67
|
-
children))))
|
|
55
|
+
children)))),
|
|
56
|
+
img && contentRatio !== "1/0" && (React__default.createElement(GridCol, __assign({ "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
|
|
57
|
+
? { m: imageAlignment[img.alignment || "center"] }
|
|
58
|
+
: undefined, xs: 12 }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
|
|
59
|
+
React__default.createElement(BannerImage, __assign({ ariaHidden: true }, img)))))))));
|
|
68
60
|
};
|
|
69
61
|
|
|
70
62
|
export { TemplateBanner as T };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { c as createContextScope } from './index-Bz2JQq34.mjs';
|
|
5
|
+
import { u as useComposedRefs, S as Slot } from './Combination-BpO6XTeS.mjs';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function createCollection(name) {
|
|
9
|
+
const PROVIDER_NAME = name + "CollectionProvider";
|
|
10
|
+
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
|
11
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
12
|
+
PROVIDER_NAME,
|
|
13
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
14
|
+
);
|
|
15
|
+
const CollectionProvider = (props) => {
|
|
16
|
+
const { scope, children } = props;
|
|
17
|
+
const ref = React__default.useRef(null);
|
|
18
|
+
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
|
19
|
+
return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
20
|
+
};
|
|
21
|
+
CollectionProvider.displayName = PROVIDER_NAME;
|
|
22
|
+
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
23
|
+
const CollectionSlot = React__default.forwardRef(
|
|
24
|
+
(props, forwardedRef) => {
|
|
25
|
+
const { scope, children } = props;
|
|
26
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
27
|
+
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
28
|
+
return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
32
|
+
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
33
|
+
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
34
|
+
const CollectionItemSlot = React__default.forwardRef(
|
|
35
|
+
(props, forwardedRef) => {
|
|
36
|
+
const { scope, children, ...itemData } = props;
|
|
37
|
+
const ref = React__default.useRef(null);
|
|
38
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
39
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
40
|
+
React__default.useEffect(() => {
|
|
41
|
+
context.itemMap.set(ref, { ref, ...itemData });
|
|
42
|
+
return () => void context.itemMap.delete(ref);
|
|
43
|
+
});
|
|
44
|
+
return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
48
|
+
function useCollection(scope) {
|
|
49
|
+
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
50
|
+
const getItems = React__default.useCallback(() => {
|
|
51
|
+
const collectionNode = context.collectionRef.current;
|
|
52
|
+
if (!collectionNode) return [];
|
|
53
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
54
|
+
const items = Array.from(context.itemMap.values());
|
|
55
|
+
const orderedItems = items.sort(
|
|
56
|
+
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
57
|
+
);
|
|
58
|
+
return orderedItems;
|
|
59
|
+
}, [context.collectionRef, context.itemMap]);
|
|
60
|
+
return getItems;
|
|
61
|
+
}
|
|
62
|
+
return [
|
|
63
|
+
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
64
|
+
useCollection,
|
|
65
|
+
createCollectionScope
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// packages/react/direction/src/Direction.tsx
|
|
70
|
+
var DirectionContext = React.createContext(void 0);
|
|
71
|
+
function useDirection(localDir) {
|
|
72
|
+
const globalDir = React.useContext(DirectionContext);
|
|
73
|
+
return localDir || globalDir || "ltr";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { createCollection as c, useDirection as u };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from './index-5C0-U8cc.mjs';
|
|
2
|
+
|
|
3
|
+
var shorterCssColorNames;
|
|
4
|
+
var hasRequiredShorterCssColorNames;
|
|
5
|
+
|
|
6
|
+
function requireShorterCssColorNames () {
|
|
7
|
+
if (hasRequiredShorterCssColorNames) return shorterCssColorNames;
|
|
8
|
+
hasRequiredShorterCssColorNames = 1;
|
|
9
|
+
shorterCssColorNames = {
|
|
10
|
+
aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
11
|
+
azure: /#f0ffff(ff)?(?!\w)/gi,
|
|
12
|
+
beige: /#f5f5dc(ff)?(?!\w)/gi,
|
|
13
|
+
bisque: /#ffe4c4(ff)?(?!\w)/gi,
|
|
14
|
+
black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
|
|
15
|
+
blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
|
|
16
|
+
brown: /#a52a2a(ff)?(?!\w)/gi,
|
|
17
|
+
coral: /#ff7f50(ff)?(?!\w)/gi,
|
|
18
|
+
cornsilk: /#fff8dc(ff)?(?!\w)/gi,
|
|
19
|
+
crimson: /#dc143c(ff)?(?!\w)/gi,
|
|
20
|
+
cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
21
|
+
darkblue: /#00008b(ff)?(?!\w)/gi,
|
|
22
|
+
darkcyan: /#008b8b(ff)?(?!\w)/gi,
|
|
23
|
+
darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
|
|
24
|
+
darkred: /#8b0000(ff)?(?!\w)/gi,
|
|
25
|
+
deeppink: /#ff1493(ff)?(?!\w)/gi,
|
|
26
|
+
dimgrey: /#696969(ff)?(?!\w)/gi,
|
|
27
|
+
gold: /#ffd700(ff)?(?!\w)/gi,
|
|
28
|
+
green: /#008000(ff)?(?!\w)/gi,
|
|
29
|
+
grey: /#808080(ff)?(?!\w)/gi,
|
|
30
|
+
honeydew: /#f0fff0(ff)?(?!\w)/gi,
|
|
31
|
+
hotpink: /#ff69b4(ff)?(?!\w)/gi,
|
|
32
|
+
indigo: /#4b0082(ff)?(?!\w)/gi,
|
|
33
|
+
ivory: /#fffff0(ff)?(?!\w)/gi,
|
|
34
|
+
khaki: /#f0e68c(ff)?(?!\w)/gi,
|
|
35
|
+
lavender: /#e6e6fa(ff)?(?!\w)/gi,
|
|
36
|
+
lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
|
|
37
|
+
linen: /#faf0e6(ff)?(?!\w)/gi,
|
|
38
|
+
maroon: /#800000(ff)?(?!\w)/gi,
|
|
39
|
+
moccasin: /#ffe4b5(ff)?(?!\w)/gi,
|
|
40
|
+
navy: /#000080(ff)?(?!\w)/gi,
|
|
41
|
+
oldlace: /#fdf5e6(ff)?(?!\w)/gi,
|
|
42
|
+
olive: /#808000(ff)?(?!\w)/gi,
|
|
43
|
+
orange: /#ffa500(ff)?(?!\w)/gi,
|
|
44
|
+
orchid: /#da70d6(ff)?(?!\w)/gi,
|
|
45
|
+
peru: /#cd853f(ff)?(?!\w)/gi,
|
|
46
|
+
pink: /#ffc0cb(ff)?(?!\w)/gi,
|
|
47
|
+
plum: /#dda0dd(ff)?(?!\w)/gi,
|
|
48
|
+
purple: /#800080(ff)?(?!\w)/gi,
|
|
49
|
+
red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
|
|
50
|
+
salmon: /#fa8072(ff)?(?!\w)/gi,
|
|
51
|
+
seagreen: /#2e8b57(ff)?(?!\w)/gi,
|
|
52
|
+
seashell: /#fff5ee(ff)?(?!\w)/gi,
|
|
53
|
+
sienna: /#a0522d(ff)?(?!\w)/gi,
|
|
54
|
+
silver: /#c0c0c0(ff)?(?!\w)/gi,
|
|
55
|
+
skyblue: /#87ceeb(ff)?(?!\w)/gi,
|
|
56
|
+
snow: /#fffafa(ff)?(?!\w)/gi,
|
|
57
|
+
tan: /#d2b48c(ff)?(?!\w)/gi,
|
|
58
|
+
teal: /#008080(ff)?(?!\w)/gi,
|
|
59
|
+
thistle: /#d8bfd8(ff)?(?!\w)/gi,
|
|
60
|
+
tomato: /#ff6347(ff)?(?!\w)/gi,
|
|
61
|
+
violet: /#ee82ee(ff)?(?!\w)/gi,
|
|
62
|
+
wheat: /#f5deb3(ff)?(?!\w)/gi,
|
|
63
|
+
white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi,
|
|
64
|
+
};
|
|
65
|
+
return shorterCssColorNames;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var miniSvgDataUri;
|
|
69
|
+
var hasRequiredMiniSvgDataUri;
|
|
70
|
+
|
|
71
|
+
function requireMiniSvgDataUri () {
|
|
72
|
+
if (hasRequiredMiniSvgDataUri) return miniSvgDataUri;
|
|
73
|
+
hasRequiredMiniSvgDataUri = 1;
|
|
74
|
+
var shorterNames = requireShorterCssColorNames();
|
|
75
|
+
var REGEX = {
|
|
76
|
+
whitespace: /\s+/g,
|
|
77
|
+
urlHexPairs: /%[\dA-F]{2}/g,
|
|
78
|
+
quotes: /"/g,
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
function collapseWhitespace(str) {
|
|
82
|
+
return str.trim().replace(REGEX.whitespace, ' ');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function dataURIPayload(string) {
|
|
86
|
+
return encodeURIComponent(string)
|
|
87
|
+
.replace(REGEX.urlHexPairs, specialHexEncode);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than
|
|
91
|
+
// their equivalent URL-encoded hex codes.
|
|
92
|
+
function colorCodeToShorterNames(string) {
|
|
93
|
+
Object.keys(shorterNames).forEach(function(key) {
|
|
94
|
+
if (shorterNames[key].test(string)) {
|
|
95
|
+
string = string.replace(shorterNames[key], key);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
return string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function specialHexEncode(match) {
|
|
103
|
+
switch (match) { // Browsers tolerate these characters, and they're frequent
|
|
104
|
+
case '%20': return ' ';
|
|
105
|
+
case '%3D': return '=';
|
|
106
|
+
case '%3A': return ':';
|
|
107
|
+
case '%2F': return '/';
|
|
108
|
+
default: return match.toLowerCase(); // compresses better
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function svgToTinyDataUri(svgString) {
|
|
113
|
+
if (typeof svgString !== 'string') {
|
|
114
|
+
throw new TypeError('Expected a string, but received ' + typeof svgString);
|
|
115
|
+
}
|
|
116
|
+
// Strip the Byte-Order Mark if the SVG has one
|
|
117
|
+
if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1); }
|
|
118
|
+
|
|
119
|
+
var body = colorCodeToShorterNames(collapseWhitespace(svgString))
|
|
120
|
+
.replace(REGEX.quotes, "'");
|
|
121
|
+
return 'data:image/svg+xml,' + dataURIPayload(body);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
svgToTinyDataUri.toSrcset = function toSrcset(svgString) {
|
|
125
|
+
return svgToTinyDataUri(svgString).replace(/ /g, '%20');
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
miniSvgDataUri = svgToTinyDataUri;
|
|
129
|
+
return miniSvgDataUri;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
var miniSvgDataUriExports = requireMiniSvgDataUri();
|
|
133
|
+
var svgToMiniDataURI = /*@__PURE__*/getDefaultExportFromCjs(miniSvgDataUriExports);
|
|
134
|
+
|
|
135
|
+
export { svgToMiniDataURI as s };
|
|
@@ -1,85 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default from 'react';
|
|
4
3
|
import * as ReactDOM from 'react-dom';
|
|
5
|
-
import {
|
|
4
|
+
import { P as Primitive, u as useComposedRefs, c as composeEventHandlers, h as hideOthers, a as useFocusGuards, R as ReactRemoveScroll, S as Slot, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-BpO6XTeS.mjs';
|
|
5
|
+
import { c as createCollection, u as useDirection } from './index-BbAu4d3T.mjs';
|
|
6
6
|
import { c as createContextScope, b as useLayoutEffect2, a as useId, f as useCallbackRef, u as useControllableState } from './index-Bz2JQq34.mjs';
|
|
7
|
+
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-DLovItWo.mjs';
|
|
7
8
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-DNxTGgc1.mjs';
|
|
9
9
|
|
|
10
10
|
// packages/core/number/src/number.ts
|
|
11
11
|
function clamp(value, [min, max]) {
|
|
12
12
|
return Math.min(max, Math.max(min, value));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
function createCollection(name) {
|
|
16
|
-
const PROVIDER_NAME = name + "CollectionProvider";
|
|
17
|
-
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
|
18
|
-
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
19
|
-
PROVIDER_NAME,
|
|
20
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
21
|
-
);
|
|
22
|
-
const CollectionProvider = (props) => {
|
|
23
|
-
const { scope, children } = props;
|
|
24
|
-
const ref = React__default.useRef(null);
|
|
25
|
-
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
|
26
|
-
return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
27
|
-
};
|
|
28
|
-
CollectionProvider.displayName = PROVIDER_NAME;
|
|
29
|
-
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
30
|
-
const CollectionSlot = React__default.forwardRef(
|
|
31
|
-
(props, forwardedRef) => {
|
|
32
|
-
const { scope, children } = props;
|
|
33
|
-
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
34
|
-
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
35
|
-
return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
39
|
-
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
40
|
-
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
41
|
-
const CollectionItemSlot = React__default.forwardRef(
|
|
42
|
-
(props, forwardedRef) => {
|
|
43
|
-
const { scope, children, ...itemData } = props;
|
|
44
|
-
const ref = React__default.useRef(null);
|
|
45
|
-
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
46
|
-
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
47
|
-
React__default.useEffect(() => {
|
|
48
|
-
context.itemMap.set(ref, { ref, ...itemData });
|
|
49
|
-
return () => void context.itemMap.delete(ref);
|
|
50
|
-
});
|
|
51
|
-
return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
55
|
-
function useCollection(scope) {
|
|
56
|
-
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
57
|
-
const getItems = React__default.useCallback(() => {
|
|
58
|
-
const collectionNode = context.collectionRef.current;
|
|
59
|
-
if (!collectionNode) return [];
|
|
60
|
-
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
61
|
-
const items = Array.from(context.itemMap.values());
|
|
62
|
-
const orderedItems = items.sort(
|
|
63
|
-
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
64
|
-
);
|
|
65
|
-
return orderedItems;
|
|
66
|
-
}, [context.collectionRef, context.itemMap]);
|
|
67
|
-
return getItems;
|
|
68
|
-
}
|
|
69
|
-
return [
|
|
70
|
-
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
71
|
-
useCollection,
|
|
72
|
-
createCollectionScope
|
|
73
|
-
];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// packages/react/direction/src/Direction.tsx
|
|
77
|
-
var DirectionContext = React.createContext(void 0);
|
|
78
|
-
function useDirection(localDir) {
|
|
79
|
-
const globalDir = React.useContext(DirectionContext);
|
|
80
|
-
return localDir || globalDir || "ltr";
|
|
81
|
-
}
|
|
82
|
-
|
|
83
15
|
// packages/react/use-previous/src/usePrevious.tsx
|
|
84
16
|
function usePrevious(value) {
|
|
85
17
|
const ref = React.useRef({ value, previous: value });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, h as hideOthers, R as ReactRemoveScroll, S as Slot, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-
|
|
3
|
+
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, h as hideOthers, R as ReactRemoveScroll, S as Slot, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-BpO6XTeS.mjs';
|
|
4
4
|
import { c as createContextScope, u as useControllableState, a as useId } from './index-Bz2JQq34.mjs';
|
|
5
|
-
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-
|
|
6
|
-
import { P as Presence } from './index-
|
|
5
|
+
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-DLovItWo.mjs';
|
|
6
|
+
import { P as Presence } from './index-DXTwueLZ.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var POPOVER_NAME = "Popover";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { u as useSize, a as useFloating, b as autoUpdate, o as offset, s as shift, f as flip, c as size, d as arrow, h as hide, l as limitShift } from './index-CWHcEz3_.mjs';
|
|
4
|
-
import { P as Primitive, u as useComposedRefs } from './Combination-
|
|
4
|
+
import { P as Primitive, u as useComposedRefs } from './Combination-BpO6XTeS.mjs';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import { c as createContextScope, f as useCallbackRef, b as useLayoutEffect2 } from './index-Bz2JQq34.mjs';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useComposedRefs } from './Combination-
|
|
3
|
+
import { u as useComposedRefs } from './Combination-BpO6XTeS.mjs';
|
|
4
4
|
import { b as useLayoutEffect2 } from './index-Bz2JQq34.mjs';
|
|
5
5
|
|
|
6
6
|
function useStateMachine(initialState, machine) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, R as ReactRemoveScroll, S as Slot, h as hideOthers, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-
|
|
3
|
+
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, R as ReactRemoveScroll, S as Slot, h as hideOthers, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-BpO6XTeS.mjs';
|
|
4
4
|
import { c as createContextScope, d as createContext2, u as useControllableState, a as useId } from './index-Bz2JQq34.mjs';
|
|
5
|
-
import { P as Presence } from './index-
|
|
5
|
+
import { P as Presence } from './index-DXTwueLZ.mjs';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var DIALOG_NAME = "Dialog";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 19 May 2025 14:54:16 GMT
|
|
4
4
|
*/
|
|
5
5
|
var ArcSizeBreakpointsXs = "320px";
|
|
6
6
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -9,4 +9,4 @@ var ArcSizeBreakpointsL = "1024px";
|
|
|
9
9
|
var ArcSizeBreakpointsXl = "1280px";
|
|
10
10
|
var ArcSizeBreakpointsXxl = "1440px";
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { ArcSizeBreakpointsM as A, ArcSizeBreakpointsS as a, ArcSizeBreakpointsXxl as b, ArcSizeBreakpointsXl as c, ArcSizeBreakpointsL as d, ArcSizeBreakpointsXs as e };
|