@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/index.mjs
CHANGED
|
@@ -385,34 +385,20 @@ var backgroundsBT = __spreadArray([], backgroundsShared, true);
|
|
|
385
385
|
*/
|
|
386
386
|
var Icon$1 = function (_a) {
|
|
387
387
|
var _b;
|
|
388
|
-
var testId = _a.testId, icon = _a.icon, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.isInline, isInline = _d === void 0 ? false : _d,
|
|
388
|
+
var testId = _a.testId, icon = _a.icon, label = _a.label, size = _a.size, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.isInline, isInline = _d === void 0 ? false : _d, props = __rest(_a, ["testId", "icon", "label", "size", "color", "isInline"]);
|
|
389
389
|
var surface = useContext(Context$3).surface;
|
|
390
|
-
var
|
|
391
|
-
|
|
392
|
-
"aria-hidden": true,
|
|
393
|
-
};
|
|
394
|
-
var renderIcon = function () {
|
|
395
|
-
if (!icon)
|
|
396
|
-
return null;
|
|
397
|
-
var accessibleProps = isPresentationIcon ? presentationIconProps : {};
|
|
398
|
-
if (typeof icon === "function") {
|
|
399
|
-
var IconComponent = icon || (function () { return React__default.createElement(React__default.Fragment, null); });
|
|
400
|
-
return React__default.createElement(IconComponent, __assign({}, accessibleProps));
|
|
401
|
-
}
|
|
402
|
-
if (React__default.isValidElement(icon) && icon.type === "svg") {
|
|
403
|
-
return React__default.cloneElement(icon, accessibleProps);
|
|
404
|
-
}
|
|
405
|
-
return null;
|
|
406
|
-
};
|
|
407
|
-
return (React__default.createElement("span", __assign({ "data-testid": testId, "aria-label": label, className: classNames((_b = {},
|
|
390
|
+
var iconUrl = icon ? "url(\"".concat(icon, "\")") : undefined;
|
|
391
|
+
return (React__default.createElement("span", __assign({ "data-testid": testId, "aria-label": label, role: label ? "img" : undefined, className: classNames((_b = {},
|
|
408
392
|
_b["arc-Icon"] = true,
|
|
409
|
-
_b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
|
|
410
393
|
_b["arc-Icon--inline"] = isInline,
|
|
394
|
+
_b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
|
|
411
395
|
_b["arc-Icon--onDarkSurface"] = surface === "dark",
|
|
412
|
-
_b)),
|
|
396
|
+
_b)), style: {
|
|
413
397
|
height: size,
|
|
414
398
|
width: size,
|
|
415
|
-
|
|
399
|
+
maskImage: iconUrl,
|
|
400
|
+
WebkitMaskImage: iconUrl,
|
|
401
|
+
} }, filterAttrs(props))));
|
|
416
402
|
};
|
|
417
403
|
var colors$1 = [
|
|
418
404
|
"auto",
|
|
@@ -420,6 +406,7 @@ var colors$1 = [
|
|
|
420
406
|
"statusRed",
|
|
421
407
|
"statusAmber",
|
|
422
408
|
"statusGreen",
|
|
409
|
+
"gradient",
|
|
423
410
|
];
|
|
424
411
|
|
|
425
412
|
var ThemeIcon = function (_a) {
|
|
@@ -665,7 +652,7 @@ var Badge = function (_a) {
|
|
|
665
652
|
|
|
666
653
|
/**
|
|
667
654
|
* Do not edit directly
|
|
668
|
-
* Generated on
|
|
655
|
+
* Generated on Mon, 19 May 2025 14:54:16 GMT
|
|
669
656
|
*/
|
|
670
657
|
var ArcSizeBreakpointsXs = "320px";
|
|
671
658
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -827,26 +814,6 @@ var VerticalSpace = function (_a) {
|
|
|
827
814
|
_b)) }, filterAttrs(props))));
|
|
828
815
|
};
|
|
829
816
|
|
|
830
|
-
/**
|
|
831
|
-
* Use `Text` to display text.
|
|
832
|
-
*/
|
|
833
|
-
var Text = function (_a) {
|
|
834
|
-
var _b;
|
|
835
|
-
var _c = _a.align, align = _c === void 0 ? "left" : _c, children = _a.children, id = _a.id, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isMeasured, isMeasured = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "m" : _f, _g = _a.tone, tone = _g === void 0 ? "default" : _g, _h = _a.elementType, elementType = _h === void 0 ? "span" : _h, props = __rest(_a, ["align", "children", "id", "isInline", "isMeasured", "size", "tone", "elementType"]);
|
|
836
|
-
var surface = useContext(Context$3).surface;
|
|
837
|
-
var Element = elementType;
|
|
838
|
-
return (React__default.createElement(Element, __assign({ id: id, className: classNames((_b = {
|
|
839
|
-
"arc-Text": true
|
|
840
|
-
},
|
|
841
|
-
_b[suffixModifier("arc-Text--align", align)] = align !== "left",
|
|
842
|
-
_b["arc-Text--inline"] = isInline,
|
|
843
|
-
_b["arc-Text--measured"] = isMeasured,
|
|
844
|
-
_b["arc-Text--size".concat(size && size.toUpperCase())] = size && size !== "m",
|
|
845
|
-
_b["arc-Text--".concat(tone)] = tone !== "default",
|
|
846
|
-
_b["arc-Text--onDarkSurface"] = surface === "dark",
|
|
847
|
-
_b)) }, filterAttrs(props)), children));
|
|
848
|
-
};
|
|
849
|
-
|
|
850
817
|
/**
|
|
851
818
|
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
852
819
|
*/
|
|
@@ -899,8 +866,8 @@ var GridRow = function (_a) {
|
|
|
899
866
|
};
|
|
900
867
|
|
|
901
868
|
var BannerImage = function (_a) {
|
|
902
|
-
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
903
|
-
return (React__default.createElement(Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
869
|
+
var sources = _a.sources, ariaHidden = _a.ariaHidden, props = __rest(_a, ["sources", "ariaHidden"]);
|
|
870
|
+
return (React__default.createElement(Image, __assign({ "aria-hidden": ariaHidden, fadeOnLoad: true }, props), sources &&
|
|
904
871
|
sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); })));
|
|
905
872
|
};
|
|
906
873
|
|
|
@@ -919,7 +886,7 @@ var TemplateBanner = function (_a) {
|
|
|
919
886
|
};
|
|
920
887
|
var isContained = type === "contained";
|
|
921
888
|
var borderWidth = isContained && !isElevated ? "thin" : undefined;
|
|
922
|
-
var direction = isReversed && isMinWidthArcBreakpointM ? "row" : "row
|
|
889
|
+
var direction = isReversed && isMinWidthArcBreakpointM ? "row-reverse" : "row";
|
|
923
890
|
var columnWithImgWidths = {
|
|
924
891
|
"1/0": 12,
|
|
925
892
|
"2/3": 8,
|
|
@@ -931,14 +898,10 @@ var TemplateBanner = function (_a) {
|
|
|
931
898
|
React__default.createElement(Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
|
|
932
899
|
React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
933
900
|
React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow", direction: direction },
|
|
934
|
-
img && contentRatio !== "1/0" && (React__default.createElement(GridCol, __assign({ "data-coltype": "img", "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
|
|
935
|
-
? { m: imageAlignment[img.alignment || "center"] }
|
|
936
|
-
: undefined, xs: 12, order: { xs: isContained && isReversed ? 0 : 1, m: 0 } }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
|
|
937
|
-
React__default.createElement(BannerImage, __assign({}, img)))),
|
|
938
901
|
React__default.createElement(GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
|
|
939
902
|
m: alignment === "start" ? "start" : "center",
|
|
940
903
|
xs: !img || contentRatio === "1/0" ? "center" : "start",
|
|
941
|
-
}, xs: 12, m: img ? columnWithImgWidths[contentRatio] : 12 },
|
|
904
|
+
}, xs: 12, order: { xs: isContained && isReversed ? 1 : 0, m: 0 }, m: img ? columnWithImgWidths[contentRatio] : 12 },
|
|
942
905
|
React__default.createElement("div", { className: classNames("arc-TemplateBanner-content", {
|
|
943
906
|
"arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
|
|
944
907
|
}) },
|
|
@@ -948,11 +911,14 @@ var TemplateBanner = function (_a) {
|
|
|
948
911
|
React__default.createElement(Heading, { level: headingLevel, size: headingSize }, heading),
|
|
949
912
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
950
913
|
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
951
|
-
React__default.createElement("
|
|
952
|
-
React__default.createElement(Text, null, text)))),
|
|
914
|
+
React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
953
915
|
children && (React__default.createElement(React__default.Fragment, null,
|
|
954
916
|
React__default.createElement(VerticalSpace, { size: "32" }),
|
|
955
|
-
children))))
|
|
917
|
+
children)))),
|
|
918
|
+
img && contentRatio !== "1/0" && (React__default.createElement(GridCol, __assign({ "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
|
|
919
|
+
? { m: imageAlignment[img.alignment || "center"] }
|
|
920
|
+
: undefined, xs: 12 }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
|
|
921
|
+
React__default.createElement(BannerImage, __assign({ ariaHidden: true }, img)))))))));
|
|
956
922
|
};
|
|
957
923
|
|
|
958
924
|
var Banner = function (_a) {
|
|
@@ -1633,39 +1599,21 @@ function requireDebounce () {
|
|
|
1633
1599
|
var debounceExports = requireDebounce();
|
|
1634
1600
|
var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
|
|
1635
1601
|
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
{
|
|
1641
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1642
|
-
viewBox: "0 0 32 32",
|
|
1643
|
-
},
|
|
1644
|
-
props,
|
|
1645
|
-
),
|
|
1646
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
1647
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
1648
|
-
d: "M22.5,29.99854a.99676.99676,0,0,1-.707-.293L8.08594,15.99268,21.793,2.294A1.00023,1.00023,0,0,1,23.207,3.709l-12.293,12.28467L23.207,28.2915a1,1,0,0,1-.707,1.707Z",
|
|
1649
|
-
fill: "currentColor",
|
|
1650
|
-
}),
|
|
1651
|
-
);
|
|
1602
|
+
/**
|
|
1603
|
+
* Do not edit directly
|
|
1604
|
+
* Generated file
|
|
1605
|
+
*/
|
|
1652
1606
|
|
|
1653
|
-
const
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
1664
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
1665
|
-
d: "M9.5,29.99854A1.00025,1.00025,0,0,1,8.793,28.291l12.293-12.28467L8.793,3.7085A.99989.99989,0,0,1,10.207,2.29443l13.707,13.71289L10.207,29.70605A.99827.99827,0,0,1,9.5,29.99854Z",
|
|
1666
|
-
fill: "currentColor",
|
|
1667
|
-
}),
|
|
1668
|
-
);
|
|
1607
|
+
const BtIconChevronLeft2Px =
|
|
1608
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M22.5 29.999a1 1 0 0 1-.707-.293L8.086 15.993 21.793 2.294a1 1 0 0 1 1.414 1.415L10.914 15.994l12.293 12.298a1 1 0 0 1-.707 1.706'/%3e%3c/svg%3e";
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* Do not edit directly
|
|
1612
|
+
* Generated file
|
|
1613
|
+
*/
|
|
1614
|
+
|
|
1615
|
+
const BtIconChevronRight2Px =
|
|
1616
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M9.5 29.999a1 1 0 0 1-.707-1.708l12.293-12.285L8.793 3.71a1 1 0 0 1 1.414-1.415l13.707 13.713-13.707 13.7a1 1 0 0 1-.707.292'/%3e%3c/svg%3e";
|
|
1669
1617
|
|
|
1670
1618
|
var BreadcrumbsItem = function (_a) {
|
|
1671
1619
|
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children;
|
|
@@ -1809,8 +1757,9 @@ var Spinner = function (_a) {
|
|
|
1809
1757
|
};
|
|
1810
1758
|
|
|
1811
1759
|
var ButtonV2 = forwardRef(function (_a, ref) {
|
|
1812
|
-
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, _c = _a.iconPosition, iconPosition = _c === void 0 ? "beforeText" : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
1760
|
+
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, _c = _a.iconPosition, iconPosition = _c === void 0 ? "beforeText" : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, isSpan = _a.isSpan, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
1813
1761
|
var surface = useContext(Context$3).surface;
|
|
1762
|
+
var ButtonElement = isSpan ? "span" : "button";
|
|
1814
1763
|
var iconSizes = {
|
|
1815
1764
|
s: 16,
|
|
1816
1765
|
m: 32,
|
|
@@ -1825,6 +1774,16 @@ var ButtonV2 = forwardRef(function (_a, ref) {
|
|
|
1825
1774
|
"arc-ButtonV2--withIconBeforeText": iconPosition === "beforeText" && (icon || isLoading),
|
|
1826
1775
|
});
|
|
1827
1776
|
var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterAttrs(props));
|
|
1777
|
+
var getIconColor = function (buttonStyle) {
|
|
1778
|
+
switch (buttonStyle) {
|
|
1779
|
+
case "compact":
|
|
1780
|
+
case "secondary":
|
|
1781
|
+
case "tertiary":
|
|
1782
|
+
return surface === "light" ? "gradient" : "auto";
|
|
1783
|
+
default:
|
|
1784
|
+
return "auto";
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1828
1787
|
var buttonContent = (React__default.createElement("span", { className: classNames("arc-ButtonV2-inner", {
|
|
1829
1788
|
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
|
|
1830
1789
|
}) },
|
|
@@ -1832,11 +1791,11 @@ var ButtonV2 = forwardRef(function (_a, ref) {
|
|
|
1832
1791
|
isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
1833
1792
|
React__default.createElement(Spinner, { size: size }))),
|
|
1834
1793
|
icon && !isLoading && (React__default.createElement("span", { className: "arc-ButtonV2-icon" },
|
|
1835
|
-
React__default.createElement(Icon$1, { size: iconSizes[size], icon: icon })))));
|
|
1794
|
+
React__default.createElement(Icon$1, { color: getIconColor(buttonStyle), size: iconSizes[size], icon: icon })))));
|
|
1836
1795
|
if (href && !isLoading) {
|
|
1837
1796
|
return (React__default.createElement("a", __assign({}, commonProps, { className: ButtonV2Classes, href: href, rel: rel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-label": ariaLabel, target: target }), buttonContent));
|
|
1838
1797
|
}
|
|
1839
|
-
return (React__default.createElement(
|
|
1798
|
+
return (React__default.createElement(ButtonElement, __assign({}, commonProps, { className: ButtonV2Classes, "aria-label": ariaLabel, "aria-haspopup": ariaHasPopup, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, disabled: isLoading, type: type, form: form }),
|
|
1840
1799
|
React__default.createElement("span", { className: classNames("arc-ButtonV2-inner", {
|
|
1841
1800
|
"arc-ButtonV2-inner--iconBeforeText": iconPosition === "beforeText",
|
|
1842
1801
|
}) }, buttonContent)));
|
|
@@ -5095,6 +5054,26 @@ function cleanEscapedString(input) {
|
|
|
5095
5054
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
5096
5055
|
}
|
|
5097
5056
|
|
|
5057
|
+
/**
|
|
5058
|
+
* Use `Text` to display text.
|
|
5059
|
+
*/
|
|
5060
|
+
var Text = function (_a) {
|
|
5061
|
+
var _b;
|
|
5062
|
+
var _c = _a.align, align = _c === void 0 ? "left" : _c, children = _a.children, id = _a.id, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isMeasured, isMeasured = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "m" : _f, _g = _a.tone, tone = _g === void 0 ? "default" : _g, _h = _a.elementType, elementType = _h === void 0 ? "span" : _h, props = __rest(_a, ["align", "children", "id", "isInline", "isMeasured", "size", "tone", "elementType"]);
|
|
5063
|
+
var surface = useContext(Context$3).surface;
|
|
5064
|
+
var Element = elementType;
|
|
5065
|
+
return (React__default.createElement(Element, __assign({ id: id, className: classNames((_b = {
|
|
5066
|
+
"arc-Text": true
|
|
5067
|
+
},
|
|
5068
|
+
_b[suffixModifier("arc-Text--align", align)] = align !== "left",
|
|
5069
|
+
_b["arc-Text--inline"] = isInline,
|
|
5070
|
+
_b["arc-Text--measured"] = isMeasured,
|
|
5071
|
+
_b["arc-Text--size".concat(size && size.toUpperCase())] = size && size !== "m",
|
|
5072
|
+
_b["arc-Text--".concat(tone)] = tone !== "default",
|
|
5073
|
+
_b["arc-Text--onDarkSurface"] = surface === "dark",
|
|
5074
|
+
_b)) }, filterAttrs(props)), children));
|
|
5075
|
+
};
|
|
5076
|
+
|
|
5098
5077
|
var ArcCalendarContext = createContext(null);
|
|
5099
5078
|
|
|
5100
5079
|
var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
|
|
@@ -5161,24 +5140,13 @@ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
|
|
|
5161
5140
|
React__default.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
|
|
5162
5141
|
});
|
|
5163
5142
|
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5172
|
-
},
|
|
5173
|
-
props,
|
|
5174
|
-
),
|
|
5175
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
5176
|
-
fillRule: "evenodd",
|
|
5177
|
-
clipRule: "evenodd",
|
|
5178
|
-
d: "M16.0001 18.0909L21.7041 12.3935C21.9566 12.1415 22.2987 12 22.6554 12C23.0121 12 23.3543 12.1415 23.6068 12.3935C23.7316 12.5181 23.8306 12.6661 23.8982 12.829C23.9657 12.9919 24.0005 13.1665 24.0005 13.3429C24.0005 13.5192 23.9657 13.6938 23.8982 13.8567C23.8306 14.0196 23.7316 14.1676 23.6068 14.2922L16.9508 20.9402C16.6983 21.1918 16.3565 21.3331 16.0001 21.3331C15.6437 21.3331 15.3018 21.1918 15.0494 20.9402L8.39342 14.2922C8.26861 14.1676 8.16959 14.0196 8.10202 13.8567C8.03446 13.6938 7.99969 13.5192 7.99969 13.3429C7.99969 13.1665 8.03446 12.9919 8.10202 12.829C8.16959 12.6661 8.26861 12.5181 8.39342 12.3935C8.6459 12.1415 8.98804 12 9.34475 12C9.70147 12 10.0436 12.1415 10.2961 12.3935L16.0001 18.0909Z",
|
|
5179
|
-
fill: "currentColor",
|
|
5180
|
-
}),
|
|
5181
|
-
);
|
|
5143
|
+
/**
|
|
5144
|
+
* Do not edit directly
|
|
5145
|
+
* Generated file
|
|
5146
|
+
*/
|
|
5147
|
+
|
|
5148
|
+
const BtIconChevronDownMid =
|
|
5149
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='m16 18.09 5.704-5.696a1.347 1.347 0 0 1 2.296.949 1.34 1.34 0 0 1-.393.95L16.95 20.94a1.347 1.347 0 0 1-1.902 0l-6.656-6.648A1.342 1.342 0 0 1 9.345 12c.356 0 .699.142.951.393z' clip-rule='evenodd'/%3e%3c/svg%3e";
|
|
5182
5150
|
|
|
5183
5151
|
var CalendarDateSelect = function (_a) {
|
|
5184
5152
|
var ariaLabel = _a.ariaLabel, onChange = _a.onChange, name = _a.name, value = _a.value, displayValue = _a.displayValue, options = _a.options;
|
|
@@ -5372,43 +5340,21 @@ var CalendarDayGrid = function (_a) {
|
|
|
5372
5340
|
React__default.createElement("tbody", { onKeyDown: handleKeyDown }, getWeeksInMonth(month).map(function (week, i) { return (React__default.createElement("tr", { key: "".concat(month.getTime(), "-week-").concat(i) }, week.map(function (day) { return (React__default.createElement(CalendarDayNumber, { ref: autoFocusRef, shouldRender: isSameMonth(month, day), key: day.getTime(), date: day, isFocusWithinDayGrid: isFocusWithinDayGrid })); }))); }))))); })));
|
|
5373
5341
|
};
|
|
5374
5342
|
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
{
|
|
5380
|
-
viewBox: "0 0 16 16",
|
|
5381
|
-
fill: "none",
|
|
5382
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5383
|
-
},
|
|
5384
|
-
props,
|
|
5385
|
-
),
|
|
5386
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
5387
|
-
fillRule: "evenodd",
|
|
5388
|
-
clipRule: "evenodd",
|
|
5389
|
-
d: "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
|
|
5390
|
-
fill: "currentColor",
|
|
5391
|
-
}),
|
|
5392
|
-
);
|
|
5343
|
+
/**
|
|
5344
|
+
* Do not edit directly
|
|
5345
|
+
* Generated file
|
|
5346
|
+
*/
|
|
5393
5347
|
|
|
5394
|
-
const
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
),
|
|
5405
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
5406
|
-
fillRule: "evenodd",
|
|
5407
|
-
clipRule: "evenodd",
|
|
5408
|
-
d: "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
|
|
5409
|
-
fill: "currentColor",
|
|
5410
|
-
}),
|
|
5411
|
-
);
|
|
5348
|
+
const BtIconChevronLeftMid =
|
|
5349
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='m7.621 8 2.849 2.852a.673.673 0 0 1-.732 1.097.7.7 0 0 1-.218-.145L6.196 8.476a.673.673 0 0 1 0-.951L9.52 4.197a.67.67 0 0 1 1.146.476c0 .178-.07.349-.196.475z' clip-rule='evenodd'/%3e%3c/svg%3e";
|
|
5350
|
+
|
|
5351
|
+
/**
|
|
5352
|
+
* Do not edit directly
|
|
5353
|
+
* Generated file
|
|
5354
|
+
*/
|
|
5355
|
+
|
|
5356
|
+
const BtIconChevronRightMid =
|
|
5357
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='M9.045 8 6.197 5.148a.673.673 0 0 1 .731-1.097.7.7 0 0 1 .218.146l3.324 3.328a.673.673 0 0 1 0 .95l-3.324 3.329A.67.67 0 0 1 6 11.328c0-.178.07-.35.197-.476z' clip-rule='evenodd'/%3e%3c/svg%3e";
|
|
5412
5358
|
|
|
5413
5359
|
var CalendarNavButton = function (_a) {
|
|
5414
5360
|
var isDisabled = _a.isDisabled, onClick = _a.onClick, direction = _a.direction, ariaLabel = _a.ariaLabel;
|
|
@@ -8037,6 +7983,44 @@ var Checkbox = forwardRef(function (_a, ref) {
|
|
|
8037
7983
|
errorMessage))));
|
|
8038
7984
|
});
|
|
8039
7985
|
|
|
7986
|
+
/**
|
|
7987
|
+
* Use `Columns` to compose layouts on a 12-column grid.
|
|
7988
|
+
*/
|
|
7989
|
+
var Columns = function (_a) {
|
|
7990
|
+
var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, _c = _a.isExtended, isExtended = _c === void 0 ? false : _c, props = __rest(_a, ["children", "isGutterless", "isExtended"]);
|
|
7991
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
7992
|
+
"arc-Columns": true,
|
|
7993
|
+
"arc-Columns--regular": !isExtended,
|
|
7994
|
+
"arc-Columns--extended": isExtended,
|
|
7995
|
+
"arc-Columns--gutterless": isGutterless,
|
|
7996
|
+
}) }, filterAttrs(props)),
|
|
7997
|
+
React__default.createElement("div", { className: "arc-Columns-inner" }, children)));
|
|
7998
|
+
};
|
|
7999
|
+
var ColumnsCol = function (_a) {
|
|
8000
|
+
var _b;
|
|
8001
|
+
var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
|
|
8002
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
8003
|
+
_b["arc-Columns-col"] = true,
|
|
8004
|
+
_b[suffixModifier("arc-Columns-col--align", align || "")] = align,
|
|
8005
|
+
_b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
|
|
8006
|
+
_b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
|
|
8007
|
+
_b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
|
|
8008
|
+
_b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
|
|
8009
|
+
_b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
|
|
8010
|
+
_b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
|
|
8011
|
+
typeof offsetS !== "undefined" ||
|
|
8012
|
+
typeof offsetM !== "undefined" ||
|
|
8013
|
+
typeof offsetL !== "undefined" ||
|
|
8014
|
+
typeof offsetXL !== "undefined",
|
|
8015
|
+
_b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
|
|
8016
|
+
_b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
|
|
8017
|
+
_b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
|
|
8018
|
+
_b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
|
|
8019
|
+
_b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
|
|
8020
|
+
_b["arc-Columns-col--debugVisible"] = isDebugVisible,
|
|
8021
|
+
_b)) }, filterAttrs(props)), children));
|
|
8022
|
+
};
|
|
8023
|
+
|
|
8040
8024
|
// packages/core/primitive/src/primitive.tsx
|
|
8041
8025
|
function composeEventHandlers$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
8042
8026
|
return function handleEvent(event) {
|
|
@@ -8522,7 +8506,7 @@ function createFocusGuard() {
|
|
|
8522
8506
|
|
|
8523
8507
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
8524
8508
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
8525
|
-
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
8509
|
+
var EVENT_OPTIONS$1 = { bubbles: false, cancelable: true };
|
|
8526
8510
|
var FOCUS_SCOPE_NAME = "FocusScope";
|
|
8527
8511
|
var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
8528
8512
|
const {
|
|
@@ -8587,11 +8571,11 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
|
8587
8571
|
const previouslyFocusedElement = document.activeElement;
|
|
8588
8572
|
const hasFocusedCandidate = container.contains(previouslyFocusedElement);
|
|
8589
8573
|
if (!hasFocusedCandidate) {
|
|
8590
|
-
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
8574
|
+
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS$1);
|
|
8591
8575
|
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
8592
8576
|
container.dispatchEvent(mountEvent);
|
|
8593
8577
|
if (!mountEvent.defaultPrevented) {
|
|
8594
|
-
focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
8578
|
+
focusFirst$2(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
8595
8579
|
if (document.activeElement === previouslyFocusedElement) {
|
|
8596
8580
|
focus(container);
|
|
8597
8581
|
}
|
|
@@ -8600,7 +8584,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
|
8600
8584
|
return () => {
|
|
8601
8585
|
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
8602
8586
|
setTimeout(() => {
|
|
8603
|
-
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
8587
|
+
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS$1);
|
|
8604
8588
|
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
8605
8589
|
container.dispatchEvent(unmountEvent);
|
|
8606
8590
|
if (!unmountEvent.defaultPrevented) {
|
|
@@ -8640,7 +8624,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
|
8640
8624
|
return /* @__PURE__ */ jsx(Primitive$1.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
8641
8625
|
});
|
|
8642
8626
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
8643
|
-
function focusFirst(candidates, { select = false } = {}) {
|
|
8627
|
+
function focusFirst$2(candidates, { select = false } = {}) {
|
|
8644
8628
|
const previouslyFocusedElement = document.activeElement;
|
|
8645
8629
|
for (const candidate of candidates) {
|
|
8646
8630
|
focus(candidate, { select });
|
|
@@ -10889,7 +10873,7 @@ var Arrow$3 = React.forwardRef((props, forwardedRef) => {
|
|
|
10889
10873
|
);
|
|
10890
10874
|
});
|
|
10891
10875
|
Arrow$3.displayName = NAME$3;
|
|
10892
|
-
var Root$
|
|
10876
|
+
var Root$4 = Arrow$3;
|
|
10893
10877
|
|
|
10894
10878
|
// packages/react/use-size/src/useSize.tsx
|
|
10895
10879
|
function useSize(element) {
|
|
@@ -10936,11 +10920,11 @@ var Popper$1 = (props) => {
|
|
|
10936
10920
|
return /* @__PURE__ */ jsx(PopperProvider$1, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
10937
10921
|
};
|
|
10938
10922
|
Popper$1.displayName = POPPER_NAME$1;
|
|
10939
|
-
var ANCHOR_NAME$
|
|
10923
|
+
var ANCHOR_NAME$3 = "PopperAnchor";
|
|
10940
10924
|
var PopperAnchor$1 = React.forwardRef(
|
|
10941
10925
|
(props, forwardedRef) => {
|
|
10942
10926
|
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
10943
|
-
const context = usePopperContext$1(ANCHOR_NAME$
|
|
10927
|
+
const context = usePopperContext$1(ANCHOR_NAME$3, __scopePopper);
|
|
10944
10928
|
const ref = React.useRef(null);
|
|
10945
10929
|
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
10946
10930
|
React.useEffect(() => {
|
|
@@ -10949,9 +10933,9 @@ var PopperAnchor$1 = React.forwardRef(
|
|
|
10949
10933
|
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$1.div, { ...anchorProps, ref: composedRefs });
|
|
10950
10934
|
}
|
|
10951
10935
|
);
|
|
10952
|
-
PopperAnchor$1.displayName = ANCHOR_NAME$
|
|
10953
|
-
var CONTENT_NAME$
|
|
10954
|
-
var [PopperContentProvider$1, useContentContext$1] = createPopperContext$1(CONTENT_NAME$
|
|
10936
|
+
PopperAnchor$1.displayName = ANCHOR_NAME$3;
|
|
10937
|
+
var CONTENT_NAME$7 = "PopperContent";
|
|
10938
|
+
var [PopperContentProvider$1, useContentContext$1] = createPopperContext$1(CONTENT_NAME$7);
|
|
10955
10939
|
var PopperContent$1 = React.forwardRef(
|
|
10956
10940
|
(props, forwardedRef) => {
|
|
10957
10941
|
const {
|
|
@@ -10970,7 +10954,7 @@ var PopperContent$1 = React.forwardRef(
|
|
|
10970
10954
|
onPlaced,
|
|
10971
10955
|
...contentProps
|
|
10972
10956
|
} = props;
|
|
10973
|
-
const context = usePopperContext$1(CONTENT_NAME$
|
|
10957
|
+
const context = usePopperContext$1(CONTENT_NAME$7, __scopePopper);
|
|
10974
10958
|
const [content, setContent] = React.useState(null);
|
|
10975
10959
|
const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
|
|
10976
10960
|
const [arrow$1, setArrow] = React.useState(null);
|
|
@@ -11093,8 +11077,8 @@ var PopperContent$1 = React.forwardRef(
|
|
|
11093
11077
|
);
|
|
11094
11078
|
}
|
|
11095
11079
|
);
|
|
11096
|
-
PopperContent$1.displayName = CONTENT_NAME$
|
|
11097
|
-
var ARROW_NAME$
|
|
11080
|
+
PopperContent$1.displayName = CONTENT_NAME$7;
|
|
11081
|
+
var ARROW_NAME$6 = "PopperArrow";
|
|
11098
11082
|
var OPPOSITE_SIDE$1 = {
|
|
11099
11083
|
top: "bottom",
|
|
11100
11084
|
right: "left",
|
|
@@ -11103,7 +11087,7 @@ var OPPOSITE_SIDE$1 = {
|
|
|
11103
11087
|
};
|
|
11104
11088
|
var PopperArrow$1 = React.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
11105
11089
|
const { __scopePopper, ...arrowProps } = props;
|
|
11106
|
-
const contentContext = useContentContext$1(ARROW_NAME$
|
|
11090
|
+
const contentContext = useContentContext$1(ARROW_NAME$6, __scopePopper);
|
|
11107
11091
|
const baseSide = OPPOSITE_SIDE$1[contentContext.placedSide];
|
|
11108
11092
|
return (
|
|
11109
11093
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
@@ -11133,7 +11117,7 @@ var PopperArrow$1 = React.forwardRef(function PopperArrow2(props, forwardedRef)
|
|
|
11133
11117
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
11134
11118
|
},
|
|
11135
11119
|
children: /* @__PURE__ */ jsx(
|
|
11136
|
-
Root$
|
|
11120
|
+
Root$4,
|
|
11137
11121
|
{
|
|
11138
11122
|
...arrowProps,
|
|
11139
11123
|
ref: forwardedRef,
|
|
@@ -11148,7 +11132,7 @@ var PopperArrow$1 = React.forwardRef(function PopperArrow2(props, forwardedRef)
|
|
|
11148
11132
|
)
|
|
11149
11133
|
);
|
|
11150
11134
|
});
|
|
11151
|
-
PopperArrow$1.displayName = ARROW_NAME$
|
|
11135
|
+
PopperArrow$1.displayName = ARROW_NAME$6;
|
|
11152
11136
|
function isNotNull$1(value) {
|
|
11153
11137
|
return value !== null;
|
|
11154
11138
|
}
|
|
@@ -11187,20 +11171,20 @@ function getSideAndAlignFromPlacement$1(placement) {
|
|
|
11187
11171
|
const [side, align = "center"] = placement.split("-");
|
|
11188
11172
|
return [side, align];
|
|
11189
11173
|
}
|
|
11190
|
-
var Root2$
|
|
11174
|
+
var Root2$4 = Popper$1;
|
|
11191
11175
|
var Anchor$1 = PopperAnchor$1;
|
|
11192
11176
|
var Content$2 = PopperContent$1;
|
|
11193
11177
|
var Arrow$2 = PopperArrow$1;
|
|
11194
11178
|
|
|
11195
|
-
var PORTAL_NAME$
|
|
11196
|
-
var Portal$
|
|
11179
|
+
var PORTAL_NAME$7 = "Portal";
|
|
11180
|
+
var Portal$6 = React.forwardRef((props, forwardedRef) => {
|
|
11197
11181
|
const { container: containerProp, ...portalProps } = props;
|
|
11198
11182
|
const [mounted, setMounted] = React.useState(false);
|
|
11199
11183
|
useLayoutEffect2(() => setMounted(true), []);
|
|
11200
11184
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
11201
11185
|
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$1.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
11202
11186
|
});
|
|
11203
|
-
Portal$
|
|
11187
|
+
Portal$6.displayName = PORTAL_NAME$7;
|
|
11204
11188
|
|
|
11205
11189
|
function useStateMachine$1(initialState, machine) {
|
|
11206
11190
|
return React.useReducer((state, event) => {
|
|
@@ -12203,7 +12187,7 @@ var POPOVER_NAME = "Popover";
|
|
|
12203
12187
|
var [createPopoverContext, createPopoverScope] = createContextScope$1(POPOVER_NAME, [
|
|
12204
12188
|
createPopperScope$1
|
|
12205
12189
|
]);
|
|
12206
|
-
var usePopperScope$
|
|
12190
|
+
var usePopperScope$3 = createPopperScope$1();
|
|
12207
12191
|
var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
|
|
12208
12192
|
var Popover$1 = (props) => {
|
|
12209
12193
|
const {
|
|
@@ -12214,7 +12198,7 @@ var Popover$1 = (props) => {
|
|
|
12214
12198
|
onOpenChange,
|
|
12215
12199
|
modal = false
|
|
12216
12200
|
} = props;
|
|
12217
|
-
const popperScope = usePopperScope$
|
|
12201
|
+
const popperScope = usePopperScope$3(__scopePopover);
|
|
12218
12202
|
const triggerRef = React.useRef(null);
|
|
12219
12203
|
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
|
12220
12204
|
const [open = false, setOpen] = useControllableState({
|
|
@@ -12222,7 +12206,7 @@ var Popover$1 = (props) => {
|
|
|
12222
12206
|
defaultProp: defaultOpen,
|
|
12223
12207
|
onChange: onOpenChange
|
|
12224
12208
|
});
|
|
12225
|
-
return /* @__PURE__ */ jsx(Root2$
|
|
12209
|
+
return /* @__PURE__ */ jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsx(
|
|
12226
12210
|
PopoverProvider,
|
|
12227
12211
|
{
|
|
12228
12212
|
scope: __scopePopover,
|
|
@@ -12240,12 +12224,12 @@ var Popover$1 = (props) => {
|
|
|
12240
12224
|
) });
|
|
12241
12225
|
};
|
|
12242
12226
|
Popover$1.displayName = POPOVER_NAME;
|
|
12243
|
-
var ANCHOR_NAME$
|
|
12227
|
+
var ANCHOR_NAME$2 = "PopoverAnchor";
|
|
12244
12228
|
var PopoverAnchor = React.forwardRef(
|
|
12245
12229
|
(props, forwardedRef) => {
|
|
12246
12230
|
const { __scopePopover, ...anchorProps } = props;
|
|
12247
|
-
const context = usePopoverContext(ANCHOR_NAME$
|
|
12248
|
-
const popperScope = usePopperScope$
|
|
12231
|
+
const context = usePopoverContext(ANCHOR_NAME$2, __scopePopover);
|
|
12232
|
+
const popperScope = usePopperScope$3(__scopePopover);
|
|
12249
12233
|
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
|
12250
12234
|
React.useEffect(() => {
|
|
12251
12235
|
onCustomAnchorAdd();
|
|
@@ -12254,13 +12238,13 @@ var PopoverAnchor = React.forwardRef(
|
|
|
12254
12238
|
return /* @__PURE__ */ jsx(Anchor$1, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
12255
12239
|
}
|
|
12256
12240
|
);
|
|
12257
|
-
PopoverAnchor.displayName = ANCHOR_NAME$
|
|
12258
|
-
var TRIGGER_NAME$
|
|
12241
|
+
PopoverAnchor.displayName = ANCHOR_NAME$2;
|
|
12242
|
+
var TRIGGER_NAME$4 = "PopoverTrigger";
|
|
12259
12243
|
var PopoverTrigger = React.forwardRef(
|
|
12260
12244
|
(props, forwardedRef) => {
|
|
12261
12245
|
const { __scopePopover, ...triggerProps } = props;
|
|
12262
|
-
const context = usePopoverContext(TRIGGER_NAME$
|
|
12263
|
-
const popperScope = usePopperScope$
|
|
12246
|
+
const context = usePopoverContext(TRIGGER_NAME$4, __scopePopover);
|
|
12247
|
+
const popperScope = usePopperScope$3(__scopePopover);
|
|
12264
12248
|
const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
|
|
12265
12249
|
const trigger = /* @__PURE__ */ jsx(
|
|
12266
12250
|
Primitive$1.button,
|
|
@@ -12278,30 +12262,30 @@ var PopoverTrigger = React.forwardRef(
|
|
|
12278
12262
|
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(Anchor$1, { asChild: true, ...popperScope, children: trigger });
|
|
12279
12263
|
}
|
|
12280
12264
|
);
|
|
12281
|
-
PopoverTrigger.displayName = TRIGGER_NAME$
|
|
12282
|
-
var PORTAL_NAME$
|
|
12283
|
-
var [PortalProvider$
|
|
12265
|
+
PopoverTrigger.displayName = TRIGGER_NAME$4;
|
|
12266
|
+
var PORTAL_NAME$6 = "PopoverPortal";
|
|
12267
|
+
var [PortalProvider$3, usePortalContext$3] = createPopoverContext(PORTAL_NAME$6, {
|
|
12284
12268
|
forceMount: void 0
|
|
12285
12269
|
});
|
|
12286
12270
|
var PopoverPortal = (props) => {
|
|
12287
12271
|
const { __scopePopover, forceMount, children, container } = props;
|
|
12288
|
-
const context = usePopoverContext(PORTAL_NAME$
|
|
12289
|
-
return /* @__PURE__ */ jsx(PortalProvider$
|
|
12272
|
+
const context = usePopoverContext(PORTAL_NAME$6, __scopePopover);
|
|
12273
|
+
return /* @__PURE__ */ jsx(PortalProvider$3, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$6, { asChild: true, container, children }) }) });
|
|
12290
12274
|
};
|
|
12291
|
-
PopoverPortal.displayName = PORTAL_NAME$
|
|
12292
|
-
var CONTENT_NAME$
|
|
12275
|
+
PopoverPortal.displayName = PORTAL_NAME$6;
|
|
12276
|
+
var CONTENT_NAME$6 = "PopoverContent";
|
|
12293
12277
|
var PopoverContent = React.forwardRef(
|
|
12294
12278
|
(props, forwardedRef) => {
|
|
12295
|
-
const portalContext = usePortalContext$
|
|
12279
|
+
const portalContext = usePortalContext$3(CONTENT_NAME$6, props.__scopePopover);
|
|
12296
12280
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
12297
|
-
const context = usePopoverContext(CONTENT_NAME$
|
|
12281
|
+
const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
|
|
12298
12282
|
return /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
12299
12283
|
}
|
|
12300
12284
|
);
|
|
12301
|
-
PopoverContent.displayName = CONTENT_NAME$
|
|
12285
|
+
PopoverContent.displayName = CONTENT_NAME$6;
|
|
12302
12286
|
var PopoverContentModal = React.forwardRef(
|
|
12303
12287
|
(props, forwardedRef) => {
|
|
12304
|
-
const context = usePopoverContext(CONTENT_NAME$
|
|
12288
|
+
const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
|
|
12305
12289
|
const contentRef = React.useRef(null);
|
|
12306
12290
|
const composedRefs = useComposedRefs$1(forwardedRef, contentRef);
|
|
12307
12291
|
const isRightClickOutsideRef = React.useRef(false);
|
|
@@ -12341,7 +12325,7 @@ var PopoverContentModal = React.forwardRef(
|
|
|
12341
12325
|
);
|
|
12342
12326
|
var PopoverContentNonModal = React.forwardRef(
|
|
12343
12327
|
(props, forwardedRef) => {
|
|
12344
|
-
const context = usePopoverContext(CONTENT_NAME$
|
|
12328
|
+
const context = usePopoverContext(CONTENT_NAME$6, props.__scopePopover);
|
|
12345
12329
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
12346
12330
|
const hasPointerDownOutsideRef = React.useRef(false);
|
|
12347
12331
|
return /* @__PURE__ */ jsx(
|
|
@@ -12393,8 +12377,8 @@ var PopoverContentImpl = React.forwardRef(
|
|
|
12393
12377
|
onInteractOutside,
|
|
12394
12378
|
...contentProps
|
|
12395
12379
|
} = props;
|
|
12396
|
-
const context = usePopoverContext(CONTENT_NAME$
|
|
12397
|
-
const popperScope = usePopperScope$
|
|
12380
|
+
const context = usePopoverContext(CONTENT_NAME$6, __scopePopover);
|
|
12381
|
+
const popperScope = usePopperScope$3(__scopePopover);
|
|
12398
12382
|
useFocusGuards();
|
|
12399
12383
|
return /* @__PURE__ */ jsx(
|
|
12400
12384
|
FocusScope,
|
|
@@ -12459,40 +12443,31 @@ var PopoverClose = React.forwardRef(
|
|
|
12459
12443
|
}
|
|
12460
12444
|
);
|
|
12461
12445
|
PopoverClose.displayName = CLOSE_NAME$1;
|
|
12462
|
-
var ARROW_NAME$
|
|
12446
|
+
var ARROW_NAME$5 = "PopoverArrow";
|
|
12463
12447
|
var PopoverArrow = React.forwardRef(
|
|
12464
12448
|
(props, forwardedRef) => {
|
|
12465
12449
|
const { __scopePopover, ...arrowProps } = props;
|
|
12466
|
-
const popperScope = usePopperScope$
|
|
12450
|
+
const popperScope = usePopperScope$3(__scopePopover);
|
|
12467
12451
|
return /* @__PURE__ */ jsx(Arrow$2, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
12468
12452
|
}
|
|
12469
12453
|
);
|
|
12470
|
-
PopoverArrow.displayName = ARROW_NAME$
|
|
12454
|
+
PopoverArrow.displayName = ARROW_NAME$5;
|
|
12471
12455
|
function getState$1(open) {
|
|
12472
12456
|
return open ? "open" : "closed";
|
|
12473
12457
|
}
|
|
12474
|
-
var Root2$
|
|
12475
|
-
var Anchor2 = PopoverAnchor;
|
|
12476
|
-
var Trigger$
|
|
12477
|
-
var Portal$
|
|
12478
|
-
var Content2$
|
|
12458
|
+
var Root2$3 = Popover$1;
|
|
12459
|
+
var Anchor2$1 = PopoverAnchor;
|
|
12460
|
+
var Trigger$3 = PopoverTrigger;
|
|
12461
|
+
var Portal$5 = PopoverPortal;
|
|
12462
|
+
var Content2$4 = PopoverContent;
|
|
12479
12463
|
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
},
|
|
12488
|
-
props,
|
|
12489
|
-
),
|
|
12490
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
12491
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
12492
|
-
d: "M15.99316,23.91406,2.294,10.207A.99989.99989,0,1,1,3.708,8.793l12.28515,12.293L28.292,8.793A.99989.99989,0,1,1,29.70605,10.207Z",
|
|
12493
|
-
fill: "currentColor",
|
|
12494
|
-
}),
|
|
12495
|
-
);
|
|
12464
|
+
/**
|
|
12465
|
+
* Do not edit directly
|
|
12466
|
+
* Generated file
|
|
12467
|
+
*/
|
|
12468
|
+
|
|
12469
|
+
const BtIconChevronDown2Px =
|
|
12470
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M15.993 23.914 2.294 10.207a1 1 0 1 1 1.414-1.414l12.285 12.293L28.292 8.793a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
|
|
12496
12471
|
|
|
12497
12472
|
var filterOptions = function (options, value) {
|
|
12498
12473
|
return options.filter(function (option) {
|
|
@@ -12719,7 +12694,7 @@ var ComboBox = forwardRef(function (_a, ref) {
|
|
|
12719
12694
|
"arc-ComboBox--constrained": !isFluid,
|
|
12720
12695
|
}) },
|
|
12721
12696
|
React__default.createElement("div", { ref: containerRef },
|
|
12722
|
-
React__default.createElement(Root2$
|
|
12697
|
+
React__default.createElement(Root2$3, { open: isExpanded },
|
|
12723
12698
|
React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure },
|
|
12724
12699
|
React__default.createElement("div", { onClick: onInputClick, className: classNames("arc-ComboBox-container", {
|
|
12725
12700
|
"arc-ComboBox-container--cursor": isAutocomplete,
|
|
@@ -12738,10 +12713,10 @@ var ComboBox = forwardRef(function (_a, ref) {
|
|
|
12738
12713
|
isAutocomplete && (React__default.createElement("div", { className: classNames("arc-ComboBox-inputIcon", {
|
|
12739
12714
|
"arc-ComboBox-inputIcon--expanded": isExpanded,
|
|
12740
12715
|
}) },
|
|
12741
|
-
React__default.createElement(Icon$1, {
|
|
12742
|
-
React__default.createElement(Anchor2, null),
|
|
12743
|
-
React__default.createElement(Portal$
|
|
12744
|
-
React__default.createElement(Content2$
|
|
12716
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronDown2Px, size: 24 }))))),
|
|
12717
|
+
React__default.createElement(Anchor2$1, null),
|
|
12718
|
+
React__default.createElement(Portal$5, { container: themeElement },
|
|
12719
|
+
React__default.createElement(Content2$4, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
|
|
12745
12720
|
React__default.createElement("div", { className: "arc-ComboBox-listboxContainer" },
|
|
12746
12721
|
React__default.createElement(Box, { elevationLevel: "1" },
|
|
12747
12722
|
React__default.createElement("ul", { ref: setScrollPosition, id: listBoxId, className: "arc-ComboBox-list", role: "listbox", "aria-label": listBoxAriaLabel, "aria-multiselectable": isMultiSelectable }, options.length ? (options.map(function (option, i) { return (React__default.createElement("li", { id: "".concat(listBoxId, "-").concat(i), ref: function (el) { return (listItemRefs.current[i] = el); }, key: option, className: classNames("arc-ComboBox-listItem", {
|
|
@@ -12754,44 +12729,6 @@ var ComboBox = forwardRef(function (_a, ref) {
|
|
|
12754
12729
|
React__default.createElement(ThemeIcon, { size: 20, icon: "selectIndicator" })))); })) : (React__default.createElement("li", { className: "arc-ComboBox-listItem", role: "option", "aria-selected": false, "aria-disabled": true }, "No matches found")))))))))));
|
|
12755
12730
|
});
|
|
12756
12731
|
|
|
12757
|
-
/**
|
|
12758
|
-
* Use `Columns` to compose layouts on a 12-column grid.
|
|
12759
|
-
*/
|
|
12760
|
-
var Columns = function (_a) {
|
|
12761
|
-
var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, _c = _a.isExtended, isExtended = _c === void 0 ? false : _c, props = __rest(_a, ["children", "isGutterless", "isExtended"]);
|
|
12762
|
-
return (React__default.createElement("div", __assign({ className: classNames({
|
|
12763
|
-
"arc-Columns": true,
|
|
12764
|
-
"arc-Columns--regular": !isExtended,
|
|
12765
|
-
"arc-Columns--extended": isExtended,
|
|
12766
|
-
"arc-Columns--gutterless": isGutterless,
|
|
12767
|
-
}) }, filterAttrs(props)),
|
|
12768
|
-
React__default.createElement("div", { className: "arc-Columns-inner" }, children)));
|
|
12769
|
-
};
|
|
12770
|
-
var ColumnsCol = function (_a) {
|
|
12771
|
-
var _b;
|
|
12772
|
-
var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
|
|
12773
|
-
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
12774
|
-
_b["arc-Columns-col"] = true,
|
|
12775
|
-
_b[suffixModifier("arc-Columns-col--align", align || "")] = align,
|
|
12776
|
-
_b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
|
|
12777
|
-
_b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
|
|
12778
|
-
_b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
|
|
12779
|
-
_b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
|
|
12780
|
-
_b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
|
|
12781
|
-
_b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
|
|
12782
|
-
typeof offsetS !== "undefined" ||
|
|
12783
|
-
typeof offsetM !== "undefined" ||
|
|
12784
|
-
typeof offsetL !== "undefined" ||
|
|
12785
|
-
typeof offsetXL !== "undefined",
|
|
12786
|
-
_b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
|
|
12787
|
-
_b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
|
|
12788
|
-
_b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
|
|
12789
|
-
_b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
|
|
12790
|
-
_b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
|
|
12791
|
-
_b["arc-Columns-col--debugVisible"] = isDebugVisible,
|
|
12792
|
-
_b)) }, filterAttrs(props)), children));
|
|
12793
|
-
};
|
|
12794
|
-
|
|
12795
12732
|
function _extends() {
|
|
12796
12733
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
12797
12734
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -13958,14 +13895,14 @@ var VisuallyHidden$1 = React.forwardRef(
|
|
|
13958
13895
|
VisuallyHidden$1.displayName = NAME$2;
|
|
13959
13896
|
|
|
13960
13897
|
var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
13961
|
-
var SELECTION_KEYS = [" ", "Enter"];
|
|
13898
|
+
var SELECTION_KEYS$1 = [" ", "Enter"];
|
|
13962
13899
|
var SELECT_NAME = "Select";
|
|
13963
|
-
var [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);
|
|
13900
|
+
var [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(SELECT_NAME);
|
|
13964
13901
|
var [createSelectContext, createSelectScope] = createContextScope$1(SELECT_NAME, [
|
|
13965
|
-
createCollectionScope,
|
|
13902
|
+
createCollectionScope$2,
|
|
13966
13903
|
createPopperScope$1
|
|
13967
13904
|
]);
|
|
13968
|
-
var usePopperScope$
|
|
13905
|
+
var usePopperScope$2 = createPopperScope$1();
|
|
13969
13906
|
var [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);
|
|
13970
13907
|
var [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);
|
|
13971
13908
|
var Select$1 = (props) => {
|
|
@@ -13985,7 +13922,7 @@ var Select$1 = (props) => {
|
|
|
13985
13922
|
required,
|
|
13986
13923
|
form
|
|
13987
13924
|
} = props;
|
|
13988
|
-
const popperScope = usePopperScope$
|
|
13925
|
+
const popperScope = usePopperScope$2(__scopeSelect);
|
|
13989
13926
|
const [trigger, setTrigger] = React.useState(null);
|
|
13990
13927
|
const [valueNode, setValueNode] = React.useState(null);
|
|
13991
13928
|
const [valueNodeHasChildren, setValueNodeHasChildren] = React.useState(false);
|
|
@@ -14004,7 +13941,7 @@ var Select$1 = (props) => {
|
|
|
14004
13941
|
const isFormControl = trigger ? form || !!trigger.closest("form") : true;
|
|
14005
13942
|
const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());
|
|
14006
13943
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
|
14007
|
-
return /* @__PURE__ */ jsx(Root2$
|
|
13944
|
+
return /* @__PURE__ */ jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsxs(
|
|
14008
13945
|
SelectProvider,
|
|
14009
13946
|
{
|
|
14010
13947
|
required,
|
|
@@ -14024,7 +13961,7 @@ var Select$1 = (props) => {
|
|
|
14024
13961
|
triggerPointerDownPosRef,
|
|
14025
13962
|
disabled,
|
|
14026
13963
|
children: [
|
|
14027
|
-
/* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
13964
|
+
/* @__PURE__ */ jsx(Collection$2.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
14028
13965
|
SelectNativeOptionsProvider,
|
|
14029
13966
|
{
|
|
14030
13967
|
scope: props.__scopeSelect,
|
|
@@ -14065,15 +14002,15 @@ var Select$1 = (props) => {
|
|
|
14065
14002
|
) });
|
|
14066
14003
|
};
|
|
14067
14004
|
Select$1.displayName = SELECT_NAME;
|
|
14068
|
-
var TRIGGER_NAME$
|
|
14005
|
+
var TRIGGER_NAME$3 = "SelectTrigger";
|
|
14069
14006
|
var SelectTrigger = React.forwardRef(
|
|
14070
14007
|
(props, forwardedRef) => {
|
|
14071
14008
|
const { __scopeSelect, disabled = false, ...triggerProps } = props;
|
|
14072
|
-
const popperScope = usePopperScope$
|
|
14073
|
-
const context = useSelectContext(TRIGGER_NAME$
|
|
14009
|
+
const popperScope = usePopperScope$2(__scopeSelect);
|
|
14010
|
+
const context = useSelectContext(TRIGGER_NAME$3, __scopeSelect);
|
|
14074
14011
|
const isDisabled = context.disabled || disabled;
|
|
14075
14012
|
const composedRefs = useComposedRefs$1(forwardedRef, context.onTriggerChange);
|
|
14076
|
-
const getItems = useCollection(__scopeSelect);
|
|
14013
|
+
const getItems = useCollection$2(__scopeSelect);
|
|
14077
14014
|
const pointerTypeRef = React.useRef("touch");
|
|
14078
14015
|
const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
|
|
14079
14016
|
const enabledItems = getItems().filter((item) => !item.disabled);
|
|
@@ -14142,7 +14079,7 @@ var SelectTrigger = React.forwardRef(
|
|
|
14142
14079
|
) });
|
|
14143
14080
|
}
|
|
14144
14081
|
);
|
|
14145
|
-
SelectTrigger.displayName = TRIGGER_NAME$
|
|
14082
|
+
SelectTrigger.displayName = TRIGGER_NAME$3;
|
|
14146
14083
|
var VALUE_NAME = "SelectValue";
|
|
14147
14084
|
var SelectValue = React.forwardRef(
|
|
14148
14085
|
(props, forwardedRef) => {
|
|
@@ -14174,15 +14111,15 @@ var SelectIcon = React.forwardRef(
|
|
|
14174
14111
|
}
|
|
14175
14112
|
);
|
|
14176
14113
|
SelectIcon.displayName = ICON_NAME;
|
|
14177
|
-
var PORTAL_NAME$
|
|
14114
|
+
var PORTAL_NAME$5 = "SelectPortal";
|
|
14178
14115
|
var SelectPortal = (props) => {
|
|
14179
|
-
return /* @__PURE__ */ jsx(Portal$
|
|
14116
|
+
return /* @__PURE__ */ jsx(Portal$6, { asChild: true, ...props });
|
|
14180
14117
|
};
|
|
14181
|
-
SelectPortal.displayName = PORTAL_NAME$
|
|
14182
|
-
var CONTENT_NAME$
|
|
14118
|
+
SelectPortal.displayName = PORTAL_NAME$5;
|
|
14119
|
+
var CONTENT_NAME$5 = "SelectContent";
|
|
14183
14120
|
var SelectContent = React.forwardRef(
|
|
14184
14121
|
(props, forwardedRef) => {
|
|
14185
|
-
const context = useSelectContext(CONTENT_NAME$
|
|
14122
|
+
const context = useSelectContext(CONTENT_NAME$5, props.__scopeSelect);
|
|
14186
14123
|
const [fragment, setFragment] = React.useState();
|
|
14187
14124
|
useLayoutEffect2(() => {
|
|
14188
14125
|
setFragment(new DocumentFragment());
|
|
@@ -14190,16 +14127,16 @@ var SelectContent = React.forwardRef(
|
|
|
14190
14127
|
if (!context.open) {
|
|
14191
14128
|
const frag = fragment;
|
|
14192
14129
|
return frag ? ReactDOM.createPortal(
|
|
14193
|
-
/* @__PURE__ */ jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx("div", { children: props.children }) }) }),
|
|
14130
|
+
/* @__PURE__ */ jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(Collection$2.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx("div", { children: props.children }) }) }),
|
|
14194
14131
|
frag
|
|
14195
14132
|
) : null;
|
|
14196
14133
|
}
|
|
14197
14134
|
return /* @__PURE__ */ jsx(SelectContentImpl, { ...props, ref: forwardedRef });
|
|
14198
14135
|
}
|
|
14199
14136
|
);
|
|
14200
|
-
SelectContent.displayName = CONTENT_NAME$
|
|
14137
|
+
SelectContent.displayName = CONTENT_NAME$5;
|
|
14201
14138
|
var CONTENT_MARGIN = 10;
|
|
14202
|
-
var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$
|
|
14139
|
+
var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$5);
|
|
14203
14140
|
var CONTENT_IMPL_NAME = "SelectContentImpl";
|
|
14204
14141
|
var SelectContentImpl = React.forwardRef(
|
|
14205
14142
|
(props, forwardedRef) => {
|
|
@@ -14224,7 +14161,7 @@ var SelectContentImpl = React.forwardRef(
|
|
|
14224
14161
|
//
|
|
14225
14162
|
...contentProps
|
|
14226
14163
|
} = props;
|
|
14227
|
-
const context = useSelectContext(CONTENT_NAME$
|
|
14164
|
+
const context = useSelectContext(CONTENT_NAME$5, __scopeSelect);
|
|
14228
14165
|
const [content, setContent] = React.useState(null);
|
|
14229
14166
|
const [viewport, setViewport] = React.useState(null);
|
|
14230
14167
|
const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
|
|
@@ -14232,7 +14169,7 @@ var SelectContentImpl = React.forwardRef(
|
|
|
14232
14169
|
const [selectedItemText, setSelectedItemText] = React.useState(
|
|
14233
14170
|
null
|
|
14234
14171
|
);
|
|
14235
|
-
const getItems = useCollection(__scopeSelect);
|
|
14172
|
+
const getItems = useCollection$2(__scopeSelect);
|
|
14236
14173
|
const [isPositioned, setIsPositioned] = React.useState(false);
|
|
14237
14174
|
const firstValidItemFoundRef = React.useRef(false);
|
|
14238
14175
|
React.useEffect(() => {
|
|
@@ -14437,12 +14374,12 @@ SelectContentImpl.displayName = CONTENT_IMPL_NAME;
|
|
|
14437
14374
|
var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
|
|
14438
14375
|
var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {
|
|
14439
14376
|
const { __scopeSelect, onPlaced, ...popperProps } = props;
|
|
14440
|
-
const context = useSelectContext(CONTENT_NAME$
|
|
14441
|
-
const contentContext = useSelectContentContext(CONTENT_NAME$
|
|
14377
|
+
const context = useSelectContext(CONTENT_NAME$5, __scopeSelect);
|
|
14378
|
+
const contentContext = useSelectContentContext(CONTENT_NAME$5, __scopeSelect);
|
|
14442
14379
|
const [contentWrapper, setContentWrapper] = React.useState(null);
|
|
14443
14380
|
const [content, setContent] = React.useState(null);
|
|
14444
14381
|
const composedRefs = useComposedRefs$1(forwardedRef, (node) => setContent(node));
|
|
14445
|
-
const getItems = useCollection(__scopeSelect);
|
|
14382
|
+
const getItems = useCollection$2(__scopeSelect);
|
|
14446
14383
|
const shouldExpandOnScrollRef = React.useRef(false);
|
|
14447
14384
|
const shouldRepositionRef = React.useRef(true);
|
|
14448
14385
|
const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
|
|
@@ -14606,7 +14543,7 @@ var SelectPopperPosition = React.forwardRef((props, forwardedRef) => {
|
|
|
14606
14543
|
collisionPadding = CONTENT_MARGIN,
|
|
14607
14544
|
...popperProps
|
|
14608
14545
|
} = props;
|
|
14609
|
-
const popperScope = usePopperScope$
|
|
14546
|
+
const popperScope = usePopperScope$2(__scopeSelect);
|
|
14610
14547
|
return /* @__PURE__ */ jsx(
|
|
14611
14548
|
Content$2,
|
|
14612
14549
|
{
|
|
@@ -14632,7 +14569,7 @@ var SelectPopperPosition = React.forwardRef((props, forwardedRef) => {
|
|
|
14632
14569
|
);
|
|
14633
14570
|
});
|
|
14634
14571
|
SelectPopperPosition.displayName = POPPER_POSITION_NAME;
|
|
14635
|
-
var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$
|
|
14572
|
+
var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$5, {});
|
|
14636
14573
|
var VIEWPORT_NAME = "SelectViewport";
|
|
14637
14574
|
var SelectViewport = React.forwardRef(
|
|
14638
14575
|
(props, forwardedRef) => {
|
|
@@ -14651,7 +14588,7 @@ var SelectViewport = React.forwardRef(
|
|
|
14651
14588
|
nonce
|
|
14652
14589
|
}
|
|
14653
14590
|
),
|
|
14654
|
-
/* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
14591
|
+
/* @__PURE__ */ jsx(Collection$2.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
14655
14592
|
Primitive$1.div,
|
|
14656
14593
|
{
|
|
14657
14594
|
"data-radix-select-viewport": "",
|
|
@@ -14701,8 +14638,8 @@ var SelectViewport = React.forwardRef(
|
|
|
14701
14638
|
}
|
|
14702
14639
|
);
|
|
14703
14640
|
SelectViewport.displayName = VIEWPORT_NAME;
|
|
14704
|
-
var GROUP_NAME = "SelectGroup";
|
|
14705
|
-
var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
|
|
14641
|
+
var GROUP_NAME$3 = "SelectGroup";
|
|
14642
|
+
var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME$3);
|
|
14706
14643
|
var SelectGroup = React.forwardRef(
|
|
14707
14644
|
(props, forwardedRef) => {
|
|
14708
14645
|
const { __scopeSelect, ...groupProps } = props;
|
|
@@ -14710,18 +14647,18 @@ var SelectGroup = React.forwardRef(
|
|
|
14710
14647
|
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive$1.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
|
14711
14648
|
}
|
|
14712
14649
|
);
|
|
14713
|
-
SelectGroup.displayName = GROUP_NAME;
|
|
14714
|
-
var LABEL_NAME = "SelectLabel";
|
|
14650
|
+
SelectGroup.displayName = GROUP_NAME$3;
|
|
14651
|
+
var LABEL_NAME$2 = "SelectLabel";
|
|
14715
14652
|
var SelectLabel = React.forwardRef(
|
|
14716
14653
|
(props, forwardedRef) => {
|
|
14717
14654
|
const { __scopeSelect, ...labelProps } = props;
|
|
14718
|
-
const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
|
|
14655
|
+
const groupContext = useSelectGroupContext(LABEL_NAME$2, __scopeSelect);
|
|
14719
14656
|
return /* @__PURE__ */ jsx(Primitive$1.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
|
14720
14657
|
}
|
|
14721
14658
|
);
|
|
14722
|
-
SelectLabel.displayName = LABEL_NAME;
|
|
14723
|
-
var ITEM_NAME = "SelectItem";
|
|
14724
|
-
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
|
|
14659
|
+
SelectLabel.displayName = LABEL_NAME$2;
|
|
14660
|
+
var ITEM_NAME$3 = "SelectItem";
|
|
14661
|
+
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME$3);
|
|
14725
14662
|
var SelectItem = React.forwardRef(
|
|
14726
14663
|
(props, forwardedRef) => {
|
|
14727
14664
|
const {
|
|
@@ -14731,8 +14668,8 @@ var SelectItem = React.forwardRef(
|
|
|
14731
14668
|
textValue: textValueProp,
|
|
14732
14669
|
...itemProps
|
|
14733
14670
|
} = props;
|
|
14734
|
-
const context = useSelectContext(ITEM_NAME, __scopeSelect);
|
|
14735
|
-
const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
|
|
14671
|
+
const context = useSelectContext(ITEM_NAME$3, __scopeSelect);
|
|
14672
|
+
const contentContext = useSelectContentContext(ITEM_NAME$3, __scopeSelect);
|
|
14736
14673
|
const isSelected = context.value === value;
|
|
14737
14674
|
const [textValue, setTextValue] = React.useState(textValueProp ?? "");
|
|
14738
14675
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
@@ -14765,7 +14702,7 @@ var SelectItem = React.forwardRef(
|
|
|
14765
14702
|
setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
|
|
14766
14703
|
}, []),
|
|
14767
14704
|
children: /* @__PURE__ */ jsx(
|
|
14768
|
-
Collection.ItemSlot,
|
|
14705
|
+
Collection$2.ItemSlot,
|
|
14769
14706
|
{
|
|
14770
14707
|
scope: __scopeSelect,
|
|
14771
14708
|
value,
|
|
@@ -14811,7 +14748,7 @@ var SelectItem = React.forwardRef(
|
|
|
14811
14748
|
onKeyDown: composeEventHandlers$1(itemProps.onKeyDown, (event) => {
|
|
14812
14749
|
const isTypingAhead = contentContext.searchRef?.current !== "";
|
|
14813
14750
|
if (isTypingAhead && event.key === " ") return;
|
|
14814
|
-
if (SELECTION_KEYS.includes(event.key)) handleSelect();
|
|
14751
|
+
if (SELECTION_KEYS$1.includes(event.key)) handleSelect();
|
|
14815
14752
|
if (event.key === " ") event.preventDefault();
|
|
14816
14753
|
})
|
|
14817
14754
|
}
|
|
@@ -14822,7 +14759,7 @@ var SelectItem = React.forwardRef(
|
|
|
14822
14759
|
);
|
|
14823
14760
|
}
|
|
14824
14761
|
);
|
|
14825
|
-
SelectItem.displayName = ITEM_NAME;
|
|
14762
|
+
SelectItem.displayName = ITEM_NAME$3;
|
|
14826
14763
|
var ITEM_TEXT_NAME = "SelectItemText";
|
|
14827
14764
|
var SelectItemText = React.forwardRef(
|
|
14828
14765
|
(props, forwardedRef) => {
|
|
@@ -14855,15 +14792,15 @@ var SelectItemText = React.forwardRef(
|
|
|
14855
14792
|
}
|
|
14856
14793
|
);
|
|
14857
14794
|
SelectItemText.displayName = ITEM_TEXT_NAME;
|
|
14858
|
-
var ITEM_INDICATOR_NAME = "SelectItemIndicator";
|
|
14795
|
+
var ITEM_INDICATOR_NAME$1 = "SelectItemIndicator";
|
|
14859
14796
|
var SelectItemIndicator = React.forwardRef(
|
|
14860
14797
|
(props, forwardedRef) => {
|
|
14861
14798
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
14862
|
-
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
|
|
14799
|
+
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME$1, __scopeSelect);
|
|
14863
14800
|
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$1.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
|
14864
14801
|
}
|
|
14865
14802
|
);
|
|
14866
|
-
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
14803
|
+
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME$1;
|
|
14867
14804
|
var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
|
|
14868
14805
|
var SelectScrollUpButton = React.forwardRef((props, forwardedRef) => {
|
|
14869
14806
|
const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
@@ -14935,7 +14872,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
14935
14872
|
const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
|
|
14936
14873
|
const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
|
|
14937
14874
|
const autoScrollTimerRef = React.useRef(null);
|
|
14938
|
-
const getItems = useCollection(__scopeSelect);
|
|
14875
|
+
const getItems = useCollection$2(__scopeSelect);
|
|
14939
14876
|
const clearAutoScrollTimer = React.useCallback(() => {
|
|
14940
14877
|
if (autoScrollTimerRef.current !== null) {
|
|
14941
14878
|
window.clearInterval(autoScrollTimerRef.current);
|
|
@@ -14973,25 +14910,25 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
14973
14910
|
}
|
|
14974
14911
|
);
|
|
14975
14912
|
});
|
|
14976
|
-
var SEPARATOR_NAME = "SelectSeparator";
|
|
14913
|
+
var SEPARATOR_NAME$2 = "SelectSeparator";
|
|
14977
14914
|
var SelectSeparator = React.forwardRef(
|
|
14978
14915
|
(props, forwardedRef) => {
|
|
14979
14916
|
const { __scopeSelect, ...separatorProps } = props;
|
|
14980
14917
|
return /* @__PURE__ */ jsx(Primitive$1.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
|
14981
14918
|
}
|
|
14982
14919
|
);
|
|
14983
|
-
SelectSeparator.displayName = SEPARATOR_NAME;
|
|
14984
|
-
var ARROW_NAME$
|
|
14920
|
+
SelectSeparator.displayName = SEPARATOR_NAME$2;
|
|
14921
|
+
var ARROW_NAME$4 = "SelectArrow";
|
|
14985
14922
|
var SelectArrow = React.forwardRef(
|
|
14986
14923
|
(props, forwardedRef) => {
|
|
14987
14924
|
const { __scopeSelect, ...arrowProps } = props;
|
|
14988
|
-
const popperScope = usePopperScope$
|
|
14989
|
-
const context = useSelectContext(ARROW_NAME$
|
|
14990
|
-
const contentContext = useSelectContentContext(ARROW_NAME$
|
|
14925
|
+
const popperScope = usePopperScope$2(__scopeSelect);
|
|
14926
|
+
const context = useSelectContext(ARROW_NAME$4, __scopeSelect);
|
|
14927
|
+
const contentContext = useSelectContentContext(ARROW_NAME$4, __scopeSelect);
|
|
14991
14928
|
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx(Arrow$2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
|
|
14992
14929
|
}
|
|
14993
14930
|
);
|
|
14994
|
-
SelectArrow.displayName = ARROW_NAME$
|
|
14931
|
+
SelectArrow.displayName = ARROW_NAME$4;
|
|
14995
14932
|
function shouldShowPlaceholder(value) {
|
|
14996
14933
|
return value === "" || value === void 0;
|
|
14997
14934
|
}
|
|
@@ -15048,7 +14985,7 @@ function findNextItem(items, search, currentItem) {
|
|
|
15048
14985
|
const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
|
|
15049
14986
|
const normalizedSearch = isRepeated ? search[0] : search;
|
|
15050
14987
|
const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;
|
|
15051
|
-
let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));
|
|
14988
|
+
let wrappedItems = wrapArray$2(items, Math.max(currentItemIndex, 0));
|
|
15052
14989
|
const excludeCurrentItem = normalizedSearch.length === 1;
|
|
15053
14990
|
if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v) => v !== currentItem);
|
|
15054
14991
|
const nextItem = wrappedItems.find(
|
|
@@ -15056,19 +14993,19 @@ function findNextItem(items, search, currentItem) {
|
|
|
15056
14993
|
);
|
|
15057
14994
|
return nextItem !== currentItem ? nextItem : void 0;
|
|
15058
14995
|
}
|
|
15059
|
-
function wrapArray(array, startIndex) {
|
|
14996
|
+
function wrapArray$2(array, startIndex) {
|
|
15060
14997
|
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
15061
14998
|
}
|
|
15062
|
-
var Root2$
|
|
15063
|
-
var Trigger$
|
|
14999
|
+
var Root2$2 = Select$1;
|
|
15000
|
+
var Trigger$2 = SelectTrigger;
|
|
15064
15001
|
var Value = SelectValue;
|
|
15065
15002
|
var Icon = SelectIcon;
|
|
15066
|
-
var Portal$
|
|
15067
|
-
var Content2$
|
|
15003
|
+
var Portal$4 = SelectPortal;
|
|
15004
|
+
var Content2$3 = SelectContent;
|
|
15068
15005
|
var Viewport = SelectViewport;
|
|
15069
|
-
var Item = SelectItem;
|
|
15006
|
+
var Item$1 = SelectItem;
|
|
15070
15007
|
var ItemText = SelectItemText;
|
|
15071
|
-
var ItemIndicator = SelectItemIndicator;
|
|
15008
|
+
var ItemIndicator$1 = SelectItemIndicator;
|
|
15072
15009
|
var ScrollUpButton = SelectScrollUpButton;
|
|
15073
15010
|
var ScrollDownButton = SelectScrollDownButton;
|
|
15074
15011
|
|
|
@@ -15098,7 +15035,7 @@ var ContentSwitcherDropdown = function (_a) {
|
|
|
15098
15035
|
return current.label.length > longest.length ? current.label : longest;
|
|
15099
15036
|
}, ""));
|
|
15100
15037
|
return (React__default.createElement(React__default.Fragment, null,
|
|
15101
|
-
React__default.createElement(Root2$
|
|
15038
|
+
React__default.createElement(Root2$2, { defaultValue: defaultValue, onValueChange: onValueChangeHandler, value: selectValue },
|
|
15102
15039
|
React__default.createElement("span", __assign({ className: classNames("arc-ContentSwitcherDropdown-selectTriggerWrapper", {
|
|
15103
15040
|
"arc-ContentSwitcherDropdown-selectTriggerWrapper--isInset": isInset,
|
|
15104
15041
|
"arc-ContentSwitcherDropdown-selectTriggerWrapper--isFluid": isFluid,
|
|
@@ -15107,16 +15044,17 @@ var ContentSwitcherDropdown = function (_a) {
|
|
|
15107
15044
|
width: width ? width : LongestLabelWidth + 84,
|
|
15108
15045
|
},
|
|
15109
15046
|
}), filterAttrs(props)),
|
|
15110
|
-
React__default.createElement(Trigger$
|
|
15047
|
+
React__default.createElement(Trigger$2, { className: "arc-ContentSwitcherDropdown-selectTrigger", "aria-label": ariaLabel },
|
|
15111
15048
|
React__default.createElement(Value, null),
|
|
15112
15049
|
React__default.createElement(Icon, { className: "arc-ContentSwitcherDropdown-selectTriggerIcon" },
|
|
15113
|
-
React__default.createElement(ThemeIcon, { size: 24, icon: "selectTrigger" }))
|
|
15114
|
-
|
|
15115
|
-
|
|
15050
|
+
React__default.createElement(ThemeIcon, { size: 24, icon: "selectTrigger" })),
|
|
15051
|
+
React__default.createElement(VisuallyHidden$2, null, ". This is a content switcher. Use the dropdown to select a section. The content below will update based on your selection."))),
|
|
15052
|
+
React__default.createElement(Portal$4, { container: themeElement },
|
|
15053
|
+
React__default.createElement(Content2$3, { className: "arc-ContentSwitcherDropdown-selectContent", sideOffset: 8, position: "popper" },
|
|
15116
15054
|
React__default.createElement(ScrollUpButton, null),
|
|
15117
|
-
React__default.createElement(Viewport, null, tabs.map(function (item, index) { return (React__default.createElement(Item, { value: item.value, key: index, className: "arc-ContentSwitcherDropdown-selectItem", id: "arc-content-switcher-dropdown-trigger-".concat(item.value) },
|
|
15055
|
+
React__default.createElement(Viewport, null, tabs.map(function (item, index) { return (React__default.createElement(Item$1, { value: item.value, key: index, className: "arc-ContentSwitcherDropdown-selectItem", id: "arc-content-switcher-dropdown-trigger-".concat(item.value) },
|
|
15118
15056
|
React__default.createElement(ItemText, null, item.label),
|
|
15119
|
-
React__default.createElement(ItemIndicator, null,
|
|
15057
|
+
React__default.createElement(ItemIndicator$1, null,
|
|
15120
15058
|
React__default.createElement(ThemeIcon, { size: 24, icon: "selectIndicator" })))); })),
|
|
15121
15059
|
React__default.createElement(ScrollDownButton, null)))),
|
|
15122
15060
|
React__default.Children.map(children, function (child) {
|
|
@@ -15491,10 +15429,10 @@ var DatePicker = forwardRef(function (_a, ref) {
|
|
|
15491
15429
|
label: ariaLabel,
|
|
15492
15430
|
ref: buttonRef,
|
|
15493
15431
|
}, placeholder: placeHolder, errorMessage: errorMessage, helper: helper, id: id, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, label: label, labelSize: labelSize, maxLength: selectionType === "range" ? 23 : 10, name: name, onBlur: handleBlur, onChange: handleChange, onClickDisclosure: onClickDisclosure, type: "text", value: value, disclosureTitle: disclosureTitle, disclosureText: disclosureText, inputSize: inputSize }, props, filterAttrs(props))),
|
|
15494
|
-
React__default.createElement(Root2$
|
|
15495
|
-
React__default.createElement(Anchor2, null),
|
|
15496
|
-
React__default.createElement(Portal$
|
|
15497
|
-
React__default.createElement(Content2$
|
|
15432
|
+
React__default.createElement(Root2$3, __assign({ open: showCalendar, onOpenChange: handleCalendarOpenChange }, filterAttrs(props)),
|
|
15433
|
+
React__default.createElement(Anchor2$1, null),
|
|
15434
|
+
React__default.createElement(Portal$5, { container: themeElement },
|
|
15435
|
+
React__default.createElement(Content2$4, { align: "start", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
|
|
15498
15436
|
React__default.createElement(Calendar, { autoFocusOnMount: true, type: type, onCancelClick: onCancelClick, selectionType: selectionType, selectedDate: convertDateStringToDate(value), selectedRange: convertRangeStringToDates(value), disabledDates: disabledDates, minDate: minDate, maxDate: maxDate, onDateSelect: handleDateSelect, onRangeSelect: handleRangeSelect }))))));
|
|
15499
15437
|
});
|
|
15500
15438
|
|
|
@@ -15520,6 +15458,35 @@ var Disclosure = function (_a) {
|
|
|
15520
15458
|
React__default.createElement("div", { className: "arc-Disclosure-details" }, children)));
|
|
15521
15459
|
};
|
|
15522
15460
|
|
|
15461
|
+
var Download = function (_a) {
|
|
15462
|
+
var name = _a.name, onClick = _a.onClick, description = _a.description, href = _a.href, type = _a.type, size = _a.size, _b = _a.icon, icon = _b === void 0 ? "downloadFile" : _b, _c = _a.isCompact, isCompact = _c === void 0 ? false : _c, _d = _a.isFullWidth, isFullWidth = _d === void 0 ? true : _d;
|
|
15463
|
+
var linkProps = href
|
|
15464
|
+
? {
|
|
15465
|
+
href: href,
|
|
15466
|
+
download: true,
|
|
15467
|
+
target: "_blank",
|
|
15468
|
+
rel: "noreferrer",
|
|
15469
|
+
}
|
|
15470
|
+
: {
|
|
15471
|
+
role: "button",
|
|
15472
|
+
};
|
|
15473
|
+
return (React__default.createElement("a", __assign({}, linkProps, { className: classNames("arc-Download", {
|
|
15474
|
+
"arc-Download--maxContent": !isFullWidth,
|
|
15475
|
+
"arc-Download--compact": isCompact,
|
|
15476
|
+
}), "aria-label": name, onClick: onClick }),
|
|
15477
|
+
React__default.createElement("div", { className: "arc-Download-iconContainer" },
|
|
15478
|
+
React__default.createElement(ThemeIcon, { size: isCompact ? 40 : 64, icon: icon })),
|
|
15479
|
+
React__default.createElement("div", { className: "arc-Download-contentContainer" },
|
|
15480
|
+
React__default.createElement("span", { className: "arc-Download-name" }, name),
|
|
15481
|
+
React__default.createElement(Text, { tone: "muted", size: "xs" },
|
|
15482
|
+
type,
|
|
15483
|
+
"\u00A0",
|
|
15484
|
+
size && "| ".concat(size)),
|
|
15485
|
+
description && (React__default.createElement(React__default.Fragment, null,
|
|
15486
|
+
React__default.createElement(VerticalSpace, { size: "4" }),
|
|
15487
|
+
React__default.createElement(Text, { tone: "supporting" }, description))))));
|
|
15488
|
+
};
|
|
15489
|
+
|
|
15523
15490
|
const LEFT = "Left";
|
|
15524
15491
|
const RIGHT = "Right";
|
|
15525
15492
|
const UP = "Up";
|
|
@@ -15824,11 +15791,11 @@ var Dialog = (props) => {
|
|
|
15824
15791
|
);
|
|
15825
15792
|
};
|
|
15826
15793
|
Dialog.displayName = DIALOG_NAME;
|
|
15827
|
-
var TRIGGER_NAME$
|
|
15794
|
+
var TRIGGER_NAME$2 = "DialogTrigger";
|
|
15828
15795
|
var DialogTrigger = React.forwardRef(
|
|
15829
15796
|
(props, forwardedRef) => {
|
|
15830
15797
|
const { __scopeDialog, ...triggerProps } = props;
|
|
15831
|
-
const context = useDialogContext(TRIGGER_NAME$
|
|
15798
|
+
const context = useDialogContext(TRIGGER_NAME$2, __scopeDialog);
|
|
15832
15799
|
const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
|
|
15833
15800
|
return /* @__PURE__ */ jsx(
|
|
15834
15801
|
Primitive$1.button,
|
|
@@ -15845,21 +15812,21 @@ var DialogTrigger = React.forwardRef(
|
|
|
15845
15812
|
);
|
|
15846
15813
|
}
|
|
15847
15814
|
);
|
|
15848
|
-
DialogTrigger.displayName = TRIGGER_NAME$
|
|
15849
|
-
var PORTAL_NAME$
|
|
15850
|
-
var [PortalProvider$
|
|
15815
|
+
DialogTrigger.displayName = TRIGGER_NAME$2;
|
|
15816
|
+
var PORTAL_NAME$4 = "DialogPortal";
|
|
15817
|
+
var [PortalProvider$2, usePortalContext$2] = createDialogContext(PORTAL_NAME$4, {
|
|
15851
15818
|
forceMount: void 0
|
|
15852
15819
|
});
|
|
15853
15820
|
var DialogPortal = (props) => {
|
|
15854
15821
|
const { __scopeDialog, forceMount, children, container } = props;
|
|
15855
|
-
const context = useDialogContext(PORTAL_NAME$
|
|
15856
|
-
return /* @__PURE__ */ jsx(PortalProvider$
|
|
15822
|
+
const context = useDialogContext(PORTAL_NAME$4, __scopeDialog);
|
|
15823
|
+
return /* @__PURE__ */ jsx(PortalProvider$2, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$6, { asChild: true, container, children: child }) })) });
|
|
15857
15824
|
};
|
|
15858
|
-
DialogPortal.displayName = PORTAL_NAME$
|
|
15825
|
+
DialogPortal.displayName = PORTAL_NAME$4;
|
|
15859
15826
|
var OVERLAY_NAME = "DialogOverlay";
|
|
15860
15827
|
var DialogOverlay = React.forwardRef(
|
|
15861
15828
|
(props, forwardedRef) => {
|
|
15862
|
-
const portalContext = usePortalContext$
|
|
15829
|
+
const portalContext = usePortalContext$2(OVERLAY_NAME, props.__scopeDialog);
|
|
15863
15830
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
|
15864
15831
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
|
15865
15832
|
return context.modal ? /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
|
@@ -15885,19 +15852,19 @@ var DialogOverlayImpl = React.forwardRef(
|
|
|
15885
15852
|
);
|
|
15886
15853
|
}
|
|
15887
15854
|
);
|
|
15888
|
-
var CONTENT_NAME$
|
|
15855
|
+
var CONTENT_NAME$4 = "DialogContent";
|
|
15889
15856
|
var DialogContent = React.forwardRef(
|
|
15890
15857
|
(props, forwardedRef) => {
|
|
15891
|
-
const portalContext = usePortalContext$
|
|
15858
|
+
const portalContext = usePortalContext$2(CONTENT_NAME$4, props.__scopeDialog);
|
|
15892
15859
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
15893
|
-
const context = useDialogContext(CONTENT_NAME$
|
|
15860
|
+
const context = useDialogContext(CONTENT_NAME$4, props.__scopeDialog);
|
|
15894
15861
|
return /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
15895
15862
|
}
|
|
15896
15863
|
);
|
|
15897
|
-
DialogContent.displayName = CONTENT_NAME$
|
|
15864
|
+
DialogContent.displayName = CONTENT_NAME$4;
|
|
15898
15865
|
var DialogContentModal = React.forwardRef(
|
|
15899
15866
|
(props, forwardedRef) => {
|
|
15900
|
-
const context = useDialogContext(CONTENT_NAME$
|
|
15867
|
+
const context = useDialogContext(CONTENT_NAME$4, props.__scopeDialog);
|
|
15901
15868
|
const contentRef = React.useRef(null);
|
|
15902
15869
|
const composedRefs = useComposedRefs$1(forwardedRef, context.contentRef, contentRef);
|
|
15903
15870
|
React.useEffect(() => {
|
|
@@ -15931,7 +15898,7 @@ var DialogContentModal = React.forwardRef(
|
|
|
15931
15898
|
);
|
|
15932
15899
|
var DialogContentNonModal = React.forwardRef(
|
|
15933
15900
|
(props, forwardedRef) => {
|
|
15934
|
-
const context = useDialogContext(CONTENT_NAME$
|
|
15901
|
+
const context = useDialogContext(CONTENT_NAME$4, props.__scopeDialog);
|
|
15935
15902
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
15936
15903
|
const hasPointerDownOutsideRef = React.useRef(false);
|
|
15937
15904
|
return /* @__PURE__ */ jsx(
|
|
@@ -15972,7 +15939,7 @@ var DialogContentNonModal = React.forwardRef(
|
|
|
15972
15939
|
var DialogContentImpl = React.forwardRef(
|
|
15973
15940
|
(props, forwardedRef) => {
|
|
15974
15941
|
const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
|
|
15975
|
-
const context = useDialogContext(CONTENT_NAME$
|
|
15942
|
+
const context = useDialogContext(CONTENT_NAME$4, __scopeDialog);
|
|
15976
15943
|
const contentRef = React.useRef(null);
|
|
15977
15944
|
const composedRefs = useComposedRefs$1(forwardedRef, contentRef);
|
|
15978
15945
|
useFocusGuards();
|
|
@@ -16047,7 +16014,7 @@ function getState(open) {
|
|
|
16047
16014
|
}
|
|
16048
16015
|
var TITLE_WARNING_NAME = "DialogTitleWarning";
|
|
16049
16016
|
var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
|
|
16050
|
-
contentName: CONTENT_NAME$
|
|
16017
|
+
contentName: CONTENT_NAME$4,
|
|
16051
16018
|
titleName: TITLE_NAME,
|
|
16052
16019
|
docsSlug: "dialog"
|
|
16053
16020
|
});
|
|
@@ -16079,8 +16046,8 @@ var DescriptionWarning = ({ contentRef, descriptionId }) => {
|
|
|
16079
16046
|
}, [MESSAGE, contentRef, descriptionId]);
|
|
16080
16047
|
return null;
|
|
16081
16048
|
};
|
|
16082
|
-
var Root$
|
|
16083
|
-
var Portal$
|
|
16049
|
+
var Root$3 = Dialog;
|
|
16050
|
+
var Portal$3 = DialogPortal;
|
|
16084
16051
|
var Overlay = DialogOverlay;
|
|
16085
16052
|
var Content$1 = DialogContent;
|
|
16086
16053
|
var Title = DialogTitle;
|
|
@@ -16130,8 +16097,8 @@ var Drawer = function (_a) {
|
|
|
16130
16097
|
}
|
|
16131
16098
|
: {};
|
|
16132
16099
|
return (React__default.createElement("div", { ref: setThemeElement },
|
|
16133
|
-
React__default.createElement(Root$
|
|
16134
|
-
React__default.createElement(Portal$
|
|
16100
|
+
React__default.createElement(Root$3, { open: isOpen },
|
|
16101
|
+
React__default.createElement(Portal$3, { container: themeElement },
|
|
16135
16102
|
React__default.createElement(Overlay, { style: exitTransitionStyle.overlay, className: classNames("arc-Drawer-overlay", {
|
|
16136
16103
|
"arc-Drawer-overlay--visible": isOverlayVisible,
|
|
16137
16104
|
}) },
|
|
@@ -16155,35 +16122,6 @@ var Drawer = function (_a) {
|
|
|
16155
16122
|
React__default.createElement(VerticalSpace, { size: "32" }))))))));
|
|
16156
16123
|
};
|
|
16157
16124
|
|
|
16158
|
-
var Download = function (_a) {
|
|
16159
|
-
var name = _a.name, onClick = _a.onClick, description = _a.description, href = _a.href, type = _a.type, size = _a.size, _b = _a.icon, icon = _b === void 0 ? "downloadFile" : _b, _c = _a.isCompact, isCompact = _c === void 0 ? false : _c, _d = _a.isFullWidth, isFullWidth = _d === void 0 ? true : _d;
|
|
16160
|
-
var linkProps = href
|
|
16161
|
-
? {
|
|
16162
|
-
href: href,
|
|
16163
|
-
download: true,
|
|
16164
|
-
target: "_blank",
|
|
16165
|
-
rel: "noreferrer",
|
|
16166
|
-
}
|
|
16167
|
-
: {
|
|
16168
|
-
role: "button",
|
|
16169
|
-
};
|
|
16170
|
-
return (React__default.createElement("a", __assign({}, linkProps, { className: classNames("arc-Download", {
|
|
16171
|
-
"arc-Download--maxContent": !isFullWidth,
|
|
16172
|
-
"arc-Download--compact": isCompact,
|
|
16173
|
-
}), "aria-label": name, onClick: onClick }),
|
|
16174
|
-
React__default.createElement("div", { className: "arc-Download-iconContainer" },
|
|
16175
|
-
React__default.createElement(ThemeIcon, { size: isCompact ? 40 : 64, icon: icon })),
|
|
16176
|
-
React__default.createElement("div", { className: "arc-Download-contentContainer" },
|
|
16177
|
-
React__default.createElement("span", { className: "arc-Download-name" }, name),
|
|
16178
|
-
React__default.createElement(Text, { tone: "muted", size: "xs" },
|
|
16179
|
-
type,
|
|
16180
|
-
"\u00A0",
|
|
16181
|
-
size && "| ".concat(size)),
|
|
16182
|
-
description && (React__default.createElement(React__default.Fragment, null,
|
|
16183
|
-
React__default.createElement(VerticalSpace, { size: "4" }),
|
|
16184
|
-
React__default.createElement(Text, { tone: "supporting" }, description))))));
|
|
16185
|
-
};
|
|
16186
|
-
|
|
16187
16125
|
/**
|
|
16188
16126
|
* Use `Elevation` to elevate what matters.
|
|
16189
16127
|
*/
|
|
@@ -16290,10 +16228,37 @@ var FilterItem = function (_a) {
|
|
|
16290
16228
|
return React__default.createElement("div", { className: "arc-FilterItem" }, children);
|
|
16291
16229
|
};
|
|
16292
16230
|
|
|
16231
|
+
var GhostedHeroBanner = function (_a) {
|
|
16232
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, label = _a.label, text = _a.text, img = _a.img, children = _a.children, props = __rest(_a, ["heading", "headingLevel", "label", "text", "img", "children"]);
|
|
16233
|
+
return (React__default.createElement("div", __assign({ className: "arc-GhostedHeroBanner" }, filterAttrs(props)),
|
|
16234
|
+
React__default.createElement("div", { className: "arc-GhostedHeroBanner-content" },
|
|
16235
|
+
label && (React__default.createElement(React__default.Fragment, null,
|
|
16236
|
+
React__default.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
|
|
16237
|
+
React__default.createElement(VerticalSpace, { size: "8" }))),
|
|
16238
|
+
React__default.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
|
|
16239
|
+
text && (React__default.createElement(React__default.Fragment, null,
|
|
16240
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
16241
|
+
React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
16242
|
+
children && (React__default.createElement(React__default.Fragment, null,
|
|
16243
|
+
React__default.createElement(VerticalSpace, { size: "32" }),
|
|
16244
|
+
children))),
|
|
16245
|
+
React__default.createElement("div", { className: "arc-GhostedHeroBanner-image " }, img && React__default.createElement(BannerImage, __assign({ ariaHidden: true }, img)))));
|
|
16246
|
+
};
|
|
16247
|
+
|
|
16248
|
+
var GradientBackground = function (_a) {
|
|
16249
|
+
var _b;
|
|
16250
|
+
var _c = _a.type, type = _c === void 0 ? "lightOne" : _c, children = _a.children, scrim = _a.scrim, props = __rest(_a, ["type", "children", "scrim"]);
|
|
16251
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-GradientBackground", "arc-GradientBackground--".concat(type), (_b = {},
|
|
16252
|
+
_b["arc-GradientBackground-scrim--".concat(scrim)] = scrim,
|
|
16253
|
+
_b)) }, filterAttrs(props)),
|
|
16254
|
+
React__default.createElement("div", { className: "arc-GradientBackground-content" },
|
|
16255
|
+
React__default.createElement(Surface, { isTransparent: true, background: type === "lightOne" ? "light-white" : "dark-black" }, children))));
|
|
16256
|
+
};
|
|
16257
|
+
|
|
16293
16258
|
/**
|
|
16294
16259
|
* Use `Group` to arrange flexible items in a row.
|
|
16295
16260
|
*/
|
|
16296
|
-
var Group = function (_a) {
|
|
16261
|
+
var Group$1 = function (_a) {
|
|
16297
16262
|
var _b;
|
|
16298
16263
|
var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.growEqual, growEqual = _d === void 0 ? false : _d, _e = _a.gutterBorder, gutterBorder = _e === void 0 ? false : _e, _f = _a.noWrap, noWrap = _f === void 0 ? false : _f, _g = _a.isExtended, isExtended = _g === void 0 ? false : _g, props = __rest(_a, ["children", "grow", "growEqual", "gutterBorder", "noWrap", "isExtended"]);
|
|
16299
16264
|
var surface = useContext(Context$3).surface;
|
|
@@ -16328,78 +16293,37 @@ var HeroBanner = function (_a) {
|
|
|
16328
16293
|
React__default.createElement(TemplateBanner, __assign({ heading: heading, label: label, text: text, img: img, contentRatio: contentRatio, minHeight: minHeight, isReversed: isReversed, isElevated: isElevated, headingLevel: headingLevel, type: type, headingSize: "xl", alignment: "center" }, filterAttrs(props)), children)));
|
|
16329
16294
|
};
|
|
16330
16295
|
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
{
|
|
16336
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16337
|
-
viewBox: "0 0 32 32",
|
|
16338
|
-
},
|
|
16339
|
-
props,
|
|
16340
|
-
),
|
|
16341
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16342
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16343
|
-
d: "M18.85352,11.64648a.49995.49995,0,0,0-.707.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.49995.49995,0,1,0,.707.707L23.207,16Z",
|
|
16344
|
-
fill: "currentColor",
|
|
16345
|
-
}),
|
|
16346
|
-
);
|
|
16296
|
+
/**
|
|
16297
|
+
* Do not edit directly
|
|
16298
|
+
* Generated file
|
|
16299
|
+
*/
|
|
16347
16300
|
|
|
16348
|
-
const
|
|
16349
|
-
|
|
16350
|
-
"svg",
|
|
16351
|
-
Object.assign(
|
|
16352
|
-
{
|
|
16353
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16354
|
-
viewBox: "0 0 32 32",
|
|
16355
|
-
},
|
|
16356
|
-
props,
|
|
16357
|
-
),
|
|
16358
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16359
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16360
|
-
d: "M20.35352,18.14648a.49983.49983,0,0,0-.707,0L16.5,21.293V9.5a.5.5,0,0,0-1,0V21.293l-3.14648-3.14648a.49995.49995,0,1,0-.707.707L16,23.207l4.35352-4.35352A.49982.49982,0,0,0,20.35352,18.14648Z",
|
|
16361
|
-
fill: "currentColor",
|
|
16362
|
-
}),
|
|
16363
|
-
);
|
|
16301
|
+
const BtIconArrowAltRight =
|
|
16302
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M18.854 11.646a.5.5 0 0 0-.707.707l3.146 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16Z'/%3e%3c/svg%3e";
|
|
16364
16303
|
|
|
16365
|
-
|
|
16366
|
-
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
{
|
|
16370
|
-
viewBox: "0 0 56 56",
|
|
16371
|
-
fill: "none",
|
|
16372
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16373
|
-
},
|
|
16374
|
-
props,
|
|
16375
|
-
),
|
|
16376
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16377
|
-
d: "M36.4683 26.3206L23.9068 19.0686C23.6123 18.8984 23.2783 18.8088 22.9382 18.8086C22.5981 18.8084 22.264 18.8978 21.9694 19.0677C21.6748 19.2376 21.4301 19.4821 21.26 19.7765C21.0898 20.071 21.0001 20.4051 21 20.7451V35.2491C20.9985 35.5899 21.087 35.9251 21.2566 36.2207C21.4263 36.5162 21.671 36.7617 21.9661 36.9323C22.2612 37.1028 22.5961 37.1923 22.9369 37.1918C23.2777 37.1912 23.6123 37.1006 23.9068 36.9291L36.4683 29.6754C36.7626 29.5053 37.007 29.2608 37.1769 28.9664C37.3469 28.6719 37.4363 28.338 37.4363 27.998C37.4363 27.6581 37.3469 27.3241 37.1769 27.0297C37.007 26.7352 36.7626 26.4907 36.4683 26.3206ZM35.5933 28.1599L23.0318 35.4136C23.0035 35.4306 22.9711 35.4396 22.9381 35.4396C22.9052 35.4396 22.8728 35.4306 22.8445 35.4136C22.815 35.3977 22.7906 35.3739 22.7739 35.3448C22.7572 35.3158 22.7489 35.2826 22.75 35.2491V20.7451C22.7494 20.7122 22.7579 20.6797 22.7745 20.6513C22.7912 20.6229 22.8154 20.5996 22.8445 20.5841C22.8727 20.567 22.9051 20.5579 22.9381 20.5579C22.9712 20.5579 23.0036 20.567 23.0318 20.5841L35.5933 27.8344C35.6226 27.8505 35.647 27.8743 35.6637 27.9034C35.6803 27.9324 35.6887 27.9654 35.6878 27.9989C35.6882 28.0318 35.6796 28.0642 35.663 28.0926C35.6463 28.121 35.6222 28.1442 35.5933 28.1599Z",
|
|
16378
|
-
fill: "currentColor",
|
|
16379
|
-
}),
|
|
16380
|
-
);
|
|
16304
|
+
/**
|
|
16305
|
+
* Do not edit directly
|
|
16306
|
+
* Generated file
|
|
16307
|
+
*/
|
|
16381
16308
|
|
|
16382
|
-
const
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
fill: "currentColor",
|
|
16401
|
-
}),
|
|
16402
|
-
);
|
|
16309
|
+
const BtIconArrowAltDown =
|
|
16310
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M20.354 18.146a.5.5 0 0 0-.707 0L16.5 21.293V9.5a.5.5 0 0 0-1 0v11.793l-3.146-3.146a.5.5 0 1 0-.707.707L16 23.207l4.354-4.354a.5.5 0 0 0 0-.707'/%3e%3c/svg%3e";
|
|
16311
|
+
|
|
16312
|
+
/**
|
|
16313
|
+
* Do not edit directly
|
|
16314
|
+
* Generated file
|
|
16315
|
+
*/
|
|
16316
|
+
|
|
16317
|
+
const ArcIconPlay =
|
|
16318
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 56 56'%3e%3cpath fill='currentColor' d='M36.468 26.32 23.907 19.07A1.938 1.938 0 0 0 21 20.745V35.25a1.935 1.935 0 0 0 2.907 1.68l12.561-7.254a1.938 1.938 0 0 0 0-3.354m-.875 1.84-12.561 7.254a.18.18 0 0 1-.187 0 .18.18 0 0 1-.095-.165V20.745a.18.18 0 0 1 .095-.16.18.18 0 0 1 .187 0l12.561 7.25a.18.18 0 0 1 .095.164.18.18 0 0 1-.095.16'/%3e%3c/svg%3e";
|
|
16319
|
+
|
|
16320
|
+
/**
|
|
16321
|
+
* Do not edit directly
|
|
16322
|
+
* Generated file
|
|
16323
|
+
*/
|
|
16324
|
+
|
|
16325
|
+
const ArcIconWarn =
|
|
16326
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M16 20.993a1 1 0 1 0 0 2 1 1 0 1 0 0-2M16.005 19.01a.5.5 0 0 0 .5-.5l.002-9.01a.5.5 0 0 0-1 0l-.002 9.01a.5.5 0 0 0 .5.5'/%3e%3c/svg%3e";
|
|
16403
16327
|
|
|
16404
16328
|
var HeroButton = forwardRef(function (_a, ref) {
|
|
16405
16329
|
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, ariaLabel = _a.ariaLabel, _c = _a.isLoading, isLoading = _c === void 0 ? false : _c, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "ariaLabel", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
@@ -16425,7 +16349,7 @@ var HeroButton = forwardRef(function (_a, ref) {
|
|
|
16425
16349
|
isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
|
|
16426
16350
|
React__default.createElement(Spinner, { size: "xxl" }))),
|
|
16427
16351
|
icon && !isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
|
|
16428
|
-
React__default.createElement(Icon$1, { size: 48, icon: buttonStyle === "warning"
|
|
16352
|
+
React__default.createElement(Icon$1, { testId: "hero-button-icon", size: 48, icon: buttonStyle === "warning"
|
|
16429
16353
|
? HeroButtonIcons["warning"]
|
|
16430
16354
|
: HeroButtonIcons[icon] }))))));
|
|
16431
16355
|
}
|
|
@@ -16433,7 +16357,7 @@ var HeroButton = forwardRef(function (_a, ref) {
|
|
|
16433
16357
|
React__default.createElement("span", { className: classNames("arc-HeroButton-inner") },
|
|
16434
16358
|
label && React__default.createElement("span", { className: "arc-HeroButton-label" }, label),
|
|
16435
16359
|
icon && !isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
|
|
16436
|
-
React__default.createElement(Icon$1, { size: 48, icon: buttonStyle === "warning"
|
|
16360
|
+
React__default.createElement(Icon$1, { testId: "hero-button-icon", size: 48, icon: buttonStyle === "warning"
|
|
16437
16361
|
? HeroButtonIcons["warning"]
|
|
16438
16362
|
: HeroButtonIcons[icon] }))),
|
|
16439
16363
|
isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
|
|
@@ -16451,96 +16375,21 @@ var Hidden = function (_a) {
|
|
|
16451
16375
|
}) }, filterAttrs(props)), children));
|
|
16452
16376
|
};
|
|
16453
16377
|
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16457
|
-
|
|
16458
|
-
{
|
|
16459
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16460
|
-
viewBox: "0 0 32 32",
|
|
16461
|
-
},
|
|
16462
|
-
props,
|
|
16463
|
-
),
|
|
16464
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16465
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16466
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
16467
|
-
fill: "currentColor",
|
|
16468
|
-
}),
|
|
16469
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16470
|
-
d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
|
|
16471
|
-
fill: "currentColor",
|
|
16472
|
-
}),
|
|
16473
|
-
);
|
|
16474
|
-
|
|
16475
|
-
const BtIconPlay = (props) =>
|
|
16476
|
-
/*#__PURE__*/ React__default.createElement(
|
|
16477
|
-
"svg",
|
|
16478
|
-
Object.assign(
|
|
16479
|
-
{
|
|
16480
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16481
|
-
viewBox: "0 0 32 32",
|
|
16482
|
-
},
|
|
16483
|
-
props,
|
|
16484
|
-
),
|
|
16485
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16486
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16487
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
16488
|
-
fill: "currentColor",
|
|
16489
|
-
}),
|
|
16490
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16491
|
-
d: "M20.83887,15.03955,13.66113,10.896A1.107,1.107,0,0,0,12,11.85449v8.2876a1.10534,1.10534,0,0,0,1.66113.95947L20.83887,16.957a1.10688,1.10688,0,0,0,0-1.91748Zm-.5,1.05176-7.17774,4.14453a.10437.10437,0,0,1-.10742-.00049A.10314.10314,0,0,1,13,20.14209v-8.2876a.10229.10229,0,0,1,.05371-.09277.10284.10284,0,0,1,.10742,0l7.17774,4.14307a.10421.10421,0,0,1,.05371.09375A.10285.10285,0,0,1,20.33887,16.09131Z",
|
|
16492
|
-
fill: "currentColor",
|
|
16493
|
-
}),
|
|
16494
|
-
);
|
|
16495
|
-
|
|
16496
|
-
const BtIconArrowRightFill = (props) =>
|
|
16497
|
-
/*#__PURE__*/ React__default.createElement(
|
|
16498
|
-
"svg",
|
|
16499
|
-
Object.assign(
|
|
16500
|
-
{
|
|
16501
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16502
|
-
viewBox: "0 0 32 32",
|
|
16503
|
-
},
|
|
16504
|
-
props,
|
|
16505
|
-
),
|
|
16506
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16507
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16508
|
-
d: "M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm16.85352-4.35352L23.207,16l-4.35351,4.35352a.5.5,0,0,1-.707-.707L21.293,16.5H9.5a.5.5,0,0,1,0-1H21.293l-3.14649-3.14648a.5.5,0,0,1,.707-.707Z",
|
|
16509
|
-
fill: "currentColor",
|
|
16510
|
-
}),
|
|
16511
|
-
);
|
|
16512
|
-
|
|
16513
|
-
const BtIconPlayFill = (props) =>
|
|
16514
|
-
/*#__PURE__*/ React__default.createElement(
|
|
16515
|
-
"svg",
|
|
16516
|
-
Object.assign(
|
|
16517
|
-
{
|
|
16518
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16519
|
-
viewBox: "0 0 32 32",
|
|
16520
|
-
},
|
|
16521
|
-
props,
|
|
16522
|
-
),
|
|
16523
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16524
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16525
|
-
d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
|
|
16526
|
-
fill: "currentColor",
|
|
16527
|
-
}),
|
|
16528
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16529
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
|
|
16530
|
-
fill: "currentColor",
|
|
16531
|
-
}),
|
|
16532
|
-
);
|
|
16378
|
+
var ArrowRight = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M18.146 11.646a.5.5 0 0 0 0 .707l3.147 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16l-4.354-4.354a.5.5 0 0 0-.707 0'/%3e%3c/svg%3e";
|
|
16379
|
+
var ArrowRightFill = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2 14 14 0 0 0 2 16m16.854-4.354L23.207 16l-4.354 4.354a.5.5 0 0 1-.707-.707l3.147-3.147H9.5a.5.5 0 0 1 0-1h11.793l-3.146-3.146a.5.5 0 0 1 .707-.707'/%3e%3c/svg%3e";
|
|
16380
|
+
var Play = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='m20.839 15.04-7.178-4.144a1.107 1.107 0 0 0-1.661.958v8.288a1.105 1.105 0 0 0 1.661.96l7.178-4.145a1.107 1.107 0 0 0 0-1.917m-.5 1.051-7.178 4.145a.1.1 0 0 1-.107 0 .1.1 0 0 1-.054-.094v-8.288a.1.1 0 0 1 .054-.092.1.1 0 0 1 .107 0l7.178 4.143a.1.1 0 0 1 .054.094.1.1 0 0 1-.054.092'/%3e%3c/svg%3e";
|
|
16381
|
+
var PlayFill = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.839 14.957-7.178 4.145a1.108 1.108 0 0 1-1.661-.96v-8.288a1.107 1.107 0 0 1 1.661-.958l7.178 4.144a1.107 1.107 0 0 1 0 1.917'/%3e%3c/svg%3e";
|
|
16533
16382
|
|
|
16534
16383
|
var CardFooter = function (_a) {
|
|
16535
16384
|
var metaText = _a.metaText, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.buttonSize, buttonSize = _c === void 0 ? "m" : _c, _d = _a.isDarkPathway, isDarkPathway = _d === void 0 ? false : _d, _e = _a.showButton, showButton = _e === void 0 ? true : _e, _f = _a.isHovered, isHovered = _f === void 0 ? false : _f;
|
|
16536
16385
|
var icons = {
|
|
16537
16386
|
arrow: {
|
|
16538
|
-
regular:
|
|
16539
|
-
filled:
|
|
16387
|
+
regular: ArrowRight,
|
|
16388
|
+
filled: ArrowRightFill,
|
|
16540
16389
|
},
|
|
16541
16390
|
play: {
|
|
16542
|
-
regular:
|
|
16543
|
-
filled:
|
|
16391
|
+
regular: Play,
|
|
16392
|
+
filled: PlayFill,
|
|
16544
16393
|
},
|
|
16545
16394
|
};
|
|
16546
16395
|
return (React__default.createElement("div", { className: classNames("arc-CardFooter", {
|
|
@@ -16565,6 +16414,24 @@ var CardHeading = function (_a) {
|
|
|
16565
16414
|
return (React__default.createElement(Heading, { level: headingLevel, size: size }, href ? (React__default.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterAttrs(linkData)), heading)) : (heading)));
|
|
16566
16415
|
};
|
|
16567
16416
|
|
|
16417
|
+
var HorizontalCard = function (_a) {
|
|
16418
|
+
var text = _a.text, heading = _a.heading, headingLevel = _a.headingLevel, img = _a.img, metaText = _a.metaText, url = _a.url, onClick = _a.onClick, props = __rest(_a, ["text", "heading", "headingLevel", "img", "metaText", "url", "onClick"]);
|
|
16419
|
+
var _b = useState(false), showHoverState = _b[0], setShowHoverState = _b[1];
|
|
16420
|
+
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
16421
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-HorizontalCard", {
|
|
16422
|
+
"arc-HorizontalCard--outlined": (url || onclick) && showHoverState,
|
|
16423
|
+
}) }, filterAttrs(props)),
|
|
16424
|
+
(img === null || img === void 0 ? void 0 : img.src) && (React__default.createElement("div", { className: "arc-HorizontalCard-image" },
|
|
16425
|
+
React__default.createElement(Image, __assign({ fit: "cover", anchor: "C" }, img)))),
|
|
16426
|
+
React__default.createElement("div", { className: "arc-HorizontalCard-content" },
|
|
16427
|
+
React__default.createElement(VerticalSpace, { size: "12" }),
|
|
16428
|
+
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
16429
|
+
React__default.createElement(VerticalSpace, { size: "12" }),
|
|
16430
|
+
React__default.createElement(Text, null, text),
|
|
16431
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
16432
|
+
React__default.createElement(CardFooter, { metaText: metaText, buttonIcon: "arrow", isHovered: showHoverState, buttonSize: "s" }))));
|
|
16433
|
+
};
|
|
16434
|
+
|
|
16568
16435
|
/** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
|
|
16569
16436
|
var ImpactCard = function (_a) {
|
|
16570
16437
|
var url = _a.url, onClick = _a.onClick, heading = _a.heading, img = _a.img, label = _a.label, minHeight = _a.minHeight, _b = _a.headingSize, headingSize = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.pathway, pathway = _d === void 0 ? "light" : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.buttonIcon, buttonIcon = _f === void 0 ? "arrow" : _f, props = __rest(_a, ["url", "onClick", "heading", "img", "label", "minHeight", "headingSize", "linkData", "pathway", "headingLevel", "buttonIcon"]);
|
|
@@ -16586,6 +16453,14 @@ var ImpactCard = function (_a) {
|
|
|
16586
16453
|
React__default.createElement(CardFooter, { buttonIcon: buttonIcon, showButton: true, isDarkPathway: isDarkPathway, isHovered: showHoverState })));
|
|
16587
16454
|
};
|
|
16588
16455
|
|
|
16456
|
+
/**
|
|
16457
|
+
* Do not edit directly
|
|
16458
|
+
* Generated file
|
|
16459
|
+
*/
|
|
16460
|
+
|
|
16461
|
+
const BtIconArrowRight =
|
|
16462
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 27a13 13 0 1 1 13-13 13.015 13.015 0 0 1-13 13'/%3e%3cpath d='M18.146 11.646a.5.5 0 0 0 0 .707l3.147 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16l-4.354-4.354a.5.5 0 0 0-.707 0'/%3e%3c/svg%3e";
|
|
16463
|
+
|
|
16589
16464
|
/**
|
|
16590
16465
|
* Provides an object of breakpoints for responsive designs.
|
|
16591
16466
|
*
|
|
@@ -16604,181 +16479,1738 @@ var ArcBreakpoints = {
|
|
|
16604
16479
|
xs: parseInt(ArcSizeBreakpointsXs, 10),
|
|
16605
16480
|
};
|
|
16606
16481
|
|
|
16607
|
-
/** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
|
|
16608
|
-
var InformationCard = function (_a) {
|
|
16609
|
-
var cardUrl = _a.cardUrl, onClick = _a.onClick, heading = _a.heading, text = _a.text, label = _a.label, footerLogo = _a.footerLogo, button = _a.button, image = _a.image, badges = _a.badges, icon = _a.icon, minHeight = _a.minHeight, minHeights = _a.minHeights, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel"]);
|
|
16610
|
-
var surface = useContext(Context$3).surface;
|
|
16611
|
-
var _c = useState(false), showHoverState = _c[0], setShowHoverState = _c[1];
|
|
16612
|
-
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
16613
|
-
var _d = useState(undefined), minimumHeight = _d[0], setMinimumHeight = _d[1];
|
|
16614
|
-
var checkMinHeight = debounce(function () {
|
|
16615
|
-
for (var _i = 0, _a = Object.entries(ArcBreakpoints); _i < _a.length; _i++) {
|
|
16616
|
-
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
16617
|
-
if (window.innerWidth > value) {
|
|
16618
|
-
setMinimumHeight(minHeights === null || minHeights === void 0 ? void 0 : minHeights[key]);
|
|
16619
|
-
return;
|
|
16482
|
+
/** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
|
|
16483
|
+
var InformationCard = function (_a) {
|
|
16484
|
+
var cardUrl = _a.cardUrl, onClick = _a.onClick, heading = _a.heading, text = _a.text, label = _a.label, footerLogo = _a.footerLogo, button = _a.button, image = _a.image, badges = _a.badges, icon = _a.icon, minHeight = _a.minHeight, minHeights = _a.minHeights, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel"]);
|
|
16485
|
+
var surface = useContext(Context$3).surface;
|
|
16486
|
+
var _c = useState(false), showHoverState = _c[0], setShowHoverState = _c[1];
|
|
16487
|
+
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
16488
|
+
var _d = useState(undefined), minimumHeight = _d[0], setMinimumHeight = _d[1];
|
|
16489
|
+
var checkMinHeight = debounce(function () {
|
|
16490
|
+
for (var _i = 0, _a = Object.entries(ArcBreakpoints); _i < _a.length; _i++) {
|
|
16491
|
+
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
16492
|
+
if (window.innerWidth > value) {
|
|
16493
|
+
setMinimumHeight(minHeights === null || minHeights === void 0 ? void 0 : minHeights[key]);
|
|
16494
|
+
return;
|
|
16495
|
+
}
|
|
16496
|
+
}
|
|
16497
|
+
setMinimumHeight(undefined);
|
|
16498
|
+
}, 100);
|
|
16499
|
+
useEffect(function () {
|
|
16500
|
+
checkMinHeight();
|
|
16501
|
+
window.addEventListener("resize", checkMinHeight);
|
|
16502
|
+
return function () {
|
|
16503
|
+
window.removeEventListener("resize", checkMinHeight);
|
|
16504
|
+
};
|
|
16505
|
+
}, [minHeights, ArcBreakpoints]);
|
|
16506
|
+
return (React__default.createElement("div", __assign({ style: { minHeight: minHeight ? minHeight : minimumHeight }, className: classNames("arc-InformationCard", {
|
|
16507
|
+
"arc-InformationCard--isALink": cardUrl,
|
|
16508
|
+
"arc-InformationCard--outlined": cardUrl && showHoverState,
|
|
16509
|
+
"arc-InformationCard--onDarkSurface": surface === "dark",
|
|
16510
|
+
}) }, filterAttrs(props)),
|
|
16511
|
+
React__default.createElement(Surface, { growVertically: true, background: "light-white" },
|
|
16512
|
+
React__default.createElement("div", { className: "arc-InformationCard-innerContainer" },
|
|
16513
|
+
image && (React__default.createElement("div", { className: "arc-InformationCard-img" },
|
|
16514
|
+
React__default.createElement(Image, __assign({ alt: "" }, image)))),
|
|
16515
|
+
icon && (React__default.createElement(React__default.Fragment, null,
|
|
16516
|
+
React__default.createElement("div", { className: "arc-InformationCard-icon" },
|
|
16517
|
+
React__default.createElement(Icon$1, { testId: "information-card-icon", icon: icon })))),
|
|
16518
|
+
React__default.createElement("div", { className: "arc-InformationCard-contentContainer" },
|
|
16519
|
+
label && (React__default.createElement(React__default.Fragment, null,
|
|
16520
|
+
React__default.createElement("div", { className: "arc-InformationCard-label" }, label.toUpperCase()))),
|
|
16521
|
+
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
16522
|
+
text && React__default.createElement(Text, null, text)),
|
|
16523
|
+
(button || badges || footerLogo) && (React__default.createElement("div", { className: "arc-InformationCard-footer" },
|
|
16524
|
+
badges && (React__default.createElement(React__default.Fragment, null,
|
|
16525
|
+
React__default.createElement("div", { className: "arc-InformationCard-badgeContainer" }, badges.map(function (_a, i) {
|
|
16526
|
+
var text = _a.text, badgeProps = __rest(_a, ["text"]);
|
|
16527
|
+
return (React__default.createElement("div", { className: "arc-InformationCard-badge", key: "information-card-badge-".concat(i) },
|
|
16528
|
+
React__default.createElement(Badge, __assign({}, badgeProps), text)));
|
|
16529
|
+
})))),
|
|
16530
|
+
React__default.createElement("div", { className: "arc-InformationCard-footerItems" },
|
|
16531
|
+
button && !cardUrl && (React__default.createElement("div", { className: "arc-InformationCard-footerButtonContainer" },
|
|
16532
|
+
React__default.createElement(ButtonV2, __assign({}, button, { size: "m", iconPosition: "beforeText", buttonStyle: "compact", icon: BtIconArrowRight })))),
|
|
16533
|
+
footerLogo && (React__default.createElement("div", { className: "arc-InformationCard-footerLogoContainer" },
|
|
16534
|
+
React__default.createElement(Image, __assign({}, footerLogo)))))))))));
|
|
16535
|
+
};
|
|
16536
|
+
|
|
16537
|
+
/**
|
|
16538
|
+
* Do not edit directly
|
|
16539
|
+
* Generated file
|
|
16540
|
+
*/
|
|
16541
|
+
|
|
16542
|
+
const BtIconNewWindow =
|
|
16543
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M24.702 7.018a.5.5 0 0 0-.191-.039h-7.005a.5.5 0 0 0 0 1h5.798l-8.16 8.16a.5.5 0 1 0 .708.707l8.159-8.16v5.774a.5.5 0 1 0 1 0V7.48a.5.5 0 0 0-.31-.462'/%3e%3cpath d='M26.852 3.99H5.184a1.2 1.2 0 0 0-1.2 1.201v21.7a1.104 1.104 0 0 0 1.102 1.103h21.766a1.18 1.18 0 0 0 1.178-1.18V5.17a1.18 1.18 0 0 0-1.178-1.178m.178 22.825a.18.18 0 0 1-.178.179H5.086a.104.104 0 0 1-.103-.103V5.19a.2.2 0 0 1 .2-.2h21.669a.18.18 0 0 1 .178.178Z'/%3e%3c/svg%3e";
|
|
16544
|
+
|
|
16545
|
+
/**
|
|
16546
|
+
* Use `Link` to direct users to a new page or piece of information.
|
|
16547
|
+
*/
|
|
16548
|
+
var Link = function (_a) {
|
|
16549
|
+
var id = _a.id, href = _a.href, title = _a.title, rel = _a.rel, target = _a.target, children = _a.children, onClick = _a.onClick, screenReaderText = _a.screenReaderText, _b = _a.isButton, isButton = _b === void 0 ? false : _b, _c = _a.isImplied, isImplied = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, props = __rest(_a, ["id", "href", "title", "rel", "target", "children", "onClick", "screenReaderText", "isButton", "isImplied", "size"]);
|
|
16550
|
+
var surface = useContext(Context$3).surface;
|
|
16551
|
+
var isExternalLink = target === "_blank";
|
|
16552
|
+
var textArray = children.split(" ");
|
|
16553
|
+
var firstText = textArray.slice(0, -1).join(" ");
|
|
16554
|
+
var lastWord = textArray[textArray.length - 1];
|
|
16555
|
+
var commonProps = {
|
|
16556
|
+
id: id,
|
|
16557
|
+
onClick: onClick,
|
|
16558
|
+
className: classNames("arc-Link", "arc-Link--".concat(size), {
|
|
16559
|
+
"arc-Link--onDarkSurface": surface === "dark",
|
|
16560
|
+
"arc-Link--onLightSurface": surface !== "dark",
|
|
16561
|
+
"arc-Link--isImplied": isImplied,
|
|
16562
|
+
}),
|
|
16563
|
+
};
|
|
16564
|
+
var elementProps = {
|
|
16565
|
+
a: __assign(__assign({}, commonProps), { href: href, title: title, target: target, rel: rel }),
|
|
16566
|
+
button: __assign({}, commonProps),
|
|
16567
|
+
span: __assign({}, commonProps),
|
|
16568
|
+
};
|
|
16569
|
+
var LinkElement = isButton ? "button" : href ? "a" : "span";
|
|
16570
|
+
return (React__default.createElement(LinkElement, __assign({}, elementProps[LinkElement], filterAttrs(props)),
|
|
16571
|
+
React__default.createElement("div", { className: "arc-Link-wrapper" },
|
|
16572
|
+
React__default.createElement(VisuallyHidden$2, null,
|
|
16573
|
+
screenReaderText || children,
|
|
16574
|
+
isExternalLink && " (Opens in new window)"),
|
|
16575
|
+
firstText && (React__default.createElement("span", { "aria-hidden": true, className: "arc-Link-text" },
|
|
16576
|
+
firstText,
|
|
16577
|
+
"\u00A0")),
|
|
16578
|
+
React__default.createElement("span", { className: "arc-Link-iconWrapper" },
|
|
16579
|
+
React__default.createElement("span", { "aria-hidden": true, className: "arc-Link-text" }, lastWord),
|
|
16580
|
+
isExternalLink && (React__default.createElement(Icon$1, { icon: BtIconNewWindow, size: size === "s" ? 20 : 24 }))))));
|
|
16581
|
+
};
|
|
16582
|
+
|
|
16583
|
+
/**
|
|
16584
|
+
* Use `Markup` to display HTML-formatted text.
|
|
16585
|
+
*/
|
|
16586
|
+
var Markup = function (_a) {
|
|
16587
|
+
var children = _a.children, _b = _a.isMeasured, isMeasured = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isMeasured"]);
|
|
16588
|
+
var surface = useContext(Context$3).surface;
|
|
16589
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
16590
|
+
"arc-Markup": true,
|
|
16591
|
+
"arc-Markup--measured": isMeasured,
|
|
16592
|
+
"arc-Markup--onDarkSurface": surface === "dark",
|
|
16593
|
+
}) }, filterAttrs(props)), children));
|
|
16594
|
+
};
|
|
16595
|
+
|
|
16596
|
+
var VideoPlayer$1 = React__default.lazy(function () {
|
|
16597
|
+
return Promise.resolve().then(function () { return index; }).then(function (_a) {
|
|
16598
|
+
var VideoPlayer = _a.VideoPlayer;
|
|
16599
|
+
return ({
|
|
16600
|
+
default: VideoPlayer,
|
|
16601
|
+
});
|
|
16602
|
+
});
|
|
16603
|
+
});
|
|
16604
|
+
/**
|
|
16605
|
+
* Use `MediaCard` to contain content and an image about a single subject.
|
|
16606
|
+
*/
|
|
16607
|
+
var MediaCard = function (_a) {
|
|
16608
|
+
var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.isContained, isContained = _c === void 0 ? true : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel"]);
|
|
16609
|
+
var surface = useContext(Context$3).surface;
|
|
16610
|
+
var _e = useState(false), isClient = _e[0], setIsClient = _e[1];
|
|
16611
|
+
var _f = useState(false), showHoverState = _f[0], setShowHoverState = _f[1];
|
|
16612
|
+
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
16613
|
+
var headingSpacing = isMinWidthArcBreakpointS ? "16" : "8";
|
|
16614
|
+
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
16615
|
+
useEffect(function () {
|
|
16616
|
+
setIsClient(true);
|
|
16617
|
+
}, []);
|
|
16618
|
+
return (React__default.createElement("div", __assign({ style: { minHeight: minHeight }, className: classNames("arc-MediaCard", {
|
|
16619
|
+
"arc-MediaCard--outlined": url && isContained && showHoverState,
|
|
16620
|
+
"arc-MediaCard--contained": isContained,
|
|
16621
|
+
"arc-MediaCard--onDarkSurface": surface === "dark",
|
|
16622
|
+
}) }, filterAttrs(props)),
|
|
16623
|
+
React__default.createElement(ConditionalWrapper, { condition: isContained, wrapper: function (children) { return (React__default.createElement(Surface, { growVertically: true, background: "light-white" }, children)); } },
|
|
16624
|
+
media.type === "img" && (React__default.createElement("div", { className: "arc-MediaCard-imgContainer" },
|
|
16625
|
+
React__default.createElement(Image, __assign({}, media)))),
|
|
16626
|
+
media.type === "video" && isClient && (React__default.createElement(Suspense, { fallback: null },
|
|
16627
|
+
React__default.createElement(VideoPlayer$1, __assign({ isSupportingTextHidden: true }, media)))),
|
|
16628
|
+
React__default.createElement("div", { className: "arc-MediaCard-content" },
|
|
16629
|
+
label && (React__default.createElement(React__default.Fragment, null,
|
|
16630
|
+
React__default.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
|
|
16631
|
+
React__default.createElement(VerticalSpace, { size: headingSpacing }))),
|
|
16632
|
+
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: media.type !== "video" ? url : undefined, onClick: media.type !== "video" ? onClick : undefined, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
16633
|
+
React__default.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React__default.createElement(React__default.Fragment, null,
|
|
16634
|
+
React__default.createElement(VerticalSpace, { size: headingSpacing }),
|
|
16635
|
+
React__default.createElement(Text, null, text),
|
|
16636
|
+
(url || metaText) && React__default.createElement(VerticalSpace, { size: "24" })))),
|
|
16637
|
+
React__default.createElement(CardFooter, { buttonIcon: buttonIcon, metaText: metaText, showButton: Boolean(url) && media.type !== "video", isHovered: showHoverState })))));
|
|
16638
|
+
};
|
|
16639
|
+
|
|
16640
|
+
var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
|
|
16641
|
+
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
16642
|
+
var GROUP_NAME$2 = "RovingFocusGroup";
|
|
16643
|
+
var [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(GROUP_NAME$2);
|
|
16644
|
+
var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope$1(
|
|
16645
|
+
GROUP_NAME$2,
|
|
16646
|
+
[createCollectionScope$1]
|
|
16647
|
+
);
|
|
16648
|
+
var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME$2);
|
|
16649
|
+
var RovingFocusGroup = React.forwardRef(
|
|
16650
|
+
(props, forwardedRef) => {
|
|
16651
|
+
return /* @__PURE__ */ jsx(Collection$1.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection$1.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
|
|
16652
|
+
}
|
|
16653
|
+
);
|
|
16654
|
+
RovingFocusGroup.displayName = GROUP_NAME$2;
|
|
16655
|
+
var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
|
|
16656
|
+
const {
|
|
16657
|
+
__scopeRovingFocusGroup,
|
|
16658
|
+
orientation,
|
|
16659
|
+
loop = false,
|
|
16660
|
+
dir,
|
|
16661
|
+
currentTabStopId: currentTabStopIdProp,
|
|
16662
|
+
defaultCurrentTabStopId,
|
|
16663
|
+
onCurrentTabStopIdChange,
|
|
16664
|
+
onEntryFocus,
|
|
16665
|
+
preventScrollOnEntryFocus = false,
|
|
16666
|
+
...groupProps
|
|
16667
|
+
} = props;
|
|
16668
|
+
const ref = React.useRef(null);
|
|
16669
|
+
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
16670
|
+
const direction = useDirection(dir);
|
|
16671
|
+
const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({
|
|
16672
|
+
prop: currentTabStopIdProp,
|
|
16673
|
+
defaultProp: defaultCurrentTabStopId,
|
|
16674
|
+
onChange: onCurrentTabStopIdChange
|
|
16675
|
+
});
|
|
16676
|
+
const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);
|
|
16677
|
+
const handleEntryFocus = useCallbackRef$1(onEntryFocus);
|
|
16678
|
+
const getItems = useCollection$1(__scopeRovingFocusGroup);
|
|
16679
|
+
const isClickFocusRef = React.useRef(false);
|
|
16680
|
+
const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);
|
|
16681
|
+
React.useEffect(() => {
|
|
16682
|
+
const node = ref.current;
|
|
16683
|
+
if (node) {
|
|
16684
|
+
node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
|
|
16685
|
+
return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);
|
|
16686
|
+
}
|
|
16687
|
+
}, [handleEntryFocus]);
|
|
16688
|
+
return /* @__PURE__ */ jsx(
|
|
16689
|
+
RovingFocusProvider,
|
|
16690
|
+
{
|
|
16691
|
+
scope: __scopeRovingFocusGroup,
|
|
16692
|
+
orientation,
|
|
16693
|
+
dir: direction,
|
|
16694
|
+
loop,
|
|
16695
|
+
currentTabStopId,
|
|
16696
|
+
onItemFocus: React.useCallback(
|
|
16697
|
+
(tabStopId) => setCurrentTabStopId(tabStopId),
|
|
16698
|
+
[setCurrentTabStopId]
|
|
16699
|
+
),
|
|
16700
|
+
onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),
|
|
16701
|
+
onFocusableItemAdd: React.useCallback(
|
|
16702
|
+
() => setFocusableItemsCount((prevCount) => prevCount + 1),
|
|
16703
|
+
[]
|
|
16704
|
+
),
|
|
16705
|
+
onFocusableItemRemove: React.useCallback(
|
|
16706
|
+
() => setFocusableItemsCount((prevCount) => prevCount - 1),
|
|
16707
|
+
[]
|
|
16708
|
+
),
|
|
16709
|
+
children: /* @__PURE__ */ jsx(
|
|
16710
|
+
Primitive$1.div,
|
|
16711
|
+
{
|
|
16712
|
+
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
16713
|
+
"data-orientation": orientation,
|
|
16714
|
+
...groupProps,
|
|
16715
|
+
ref: composedRefs,
|
|
16716
|
+
style: { outline: "none", ...props.style },
|
|
16717
|
+
onMouseDown: composeEventHandlers$1(props.onMouseDown, () => {
|
|
16718
|
+
isClickFocusRef.current = true;
|
|
16719
|
+
}),
|
|
16720
|
+
onFocus: composeEventHandlers$1(props.onFocus, (event) => {
|
|
16721
|
+
const isKeyboardFocus = !isClickFocusRef.current;
|
|
16722
|
+
if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {
|
|
16723
|
+
const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
|
|
16724
|
+
event.currentTarget.dispatchEvent(entryFocusEvent);
|
|
16725
|
+
if (!entryFocusEvent.defaultPrevented) {
|
|
16726
|
+
const items = getItems().filter((item) => item.focusable);
|
|
16727
|
+
const activeItem = items.find((item) => item.active);
|
|
16728
|
+
const currentItem = items.find((item) => item.id === currentTabStopId);
|
|
16729
|
+
const candidateItems = [activeItem, currentItem, ...items].filter(
|
|
16730
|
+
Boolean
|
|
16731
|
+
);
|
|
16732
|
+
const candidateNodes = candidateItems.map((item) => item.ref.current);
|
|
16733
|
+
focusFirst$1(candidateNodes, preventScrollOnEntryFocus);
|
|
16734
|
+
}
|
|
16735
|
+
}
|
|
16736
|
+
isClickFocusRef.current = false;
|
|
16737
|
+
}),
|
|
16738
|
+
onBlur: composeEventHandlers$1(props.onBlur, () => setIsTabbingBackOut(false))
|
|
16739
|
+
}
|
|
16740
|
+
)
|
|
16741
|
+
}
|
|
16742
|
+
);
|
|
16743
|
+
});
|
|
16744
|
+
var ITEM_NAME$2 = "RovingFocusGroupItem";
|
|
16745
|
+
var RovingFocusGroupItem = React.forwardRef(
|
|
16746
|
+
(props, forwardedRef) => {
|
|
16747
|
+
const {
|
|
16748
|
+
__scopeRovingFocusGroup,
|
|
16749
|
+
focusable = true,
|
|
16750
|
+
active = false,
|
|
16751
|
+
tabStopId,
|
|
16752
|
+
...itemProps
|
|
16753
|
+
} = props;
|
|
16754
|
+
const autoId = useId();
|
|
16755
|
+
const id = tabStopId || autoId;
|
|
16756
|
+
const context = useRovingFocusContext(ITEM_NAME$2, __scopeRovingFocusGroup);
|
|
16757
|
+
const isCurrentTabStop = context.currentTabStopId === id;
|
|
16758
|
+
const getItems = useCollection$1(__scopeRovingFocusGroup);
|
|
16759
|
+
const { onFocusableItemAdd, onFocusableItemRemove } = context;
|
|
16760
|
+
React.useEffect(() => {
|
|
16761
|
+
if (focusable) {
|
|
16762
|
+
onFocusableItemAdd();
|
|
16763
|
+
return () => onFocusableItemRemove();
|
|
16764
|
+
}
|
|
16765
|
+
}, [focusable, onFocusableItemAdd, onFocusableItemRemove]);
|
|
16766
|
+
return /* @__PURE__ */ jsx(
|
|
16767
|
+
Collection$1.ItemSlot,
|
|
16768
|
+
{
|
|
16769
|
+
scope: __scopeRovingFocusGroup,
|
|
16770
|
+
id,
|
|
16771
|
+
focusable,
|
|
16772
|
+
active,
|
|
16773
|
+
children: /* @__PURE__ */ jsx(
|
|
16774
|
+
Primitive$1.span,
|
|
16775
|
+
{
|
|
16776
|
+
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
16777
|
+
"data-orientation": context.orientation,
|
|
16778
|
+
...itemProps,
|
|
16779
|
+
ref: forwardedRef,
|
|
16780
|
+
onMouseDown: composeEventHandlers$1(props.onMouseDown, (event) => {
|
|
16781
|
+
if (!focusable) event.preventDefault();
|
|
16782
|
+
else context.onItemFocus(id);
|
|
16783
|
+
}),
|
|
16784
|
+
onFocus: composeEventHandlers$1(props.onFocus, () => context.onItemFocus(id)),
|
|
16785
|
+
onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
|
|
16786
|
+
if (event.key === "Tab" && event.shiftKey) {
|
|
16787
|
+
context.onItemShiftTab();
|
|
16788
|
+
return;
|
|
16789
|
+
}
|
|
16790
|
+
if (event.target !== event.currentTarget) return;
|
|
16791
|
+
const focusIntent = getFocusIntent(event, context.orientation, context.dir);
|
|
16792
|
+
if (focusIntent !== void 0) {
|
|
16793
|
+
if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;
|
|
16794
|
+
event.preventDefault();
|
|
16795
|
+
const items = getItems().filter((item) => item.focusable);
|
|
16796
|
+
let candidateNodes = items.map((item) => item.ref.current);
|
|
16797
|
+
if (focusIntent === "last") candidateNodes.reverse();
|
|
16798
|
+
else if (focusIntent === "prev" || focusIntent === "next") {
|
|
16799
|
+
if (focusIntent === "prev") candidateNodes.reverse();
|
|
16800
|
+
const currentIndex = candidateNodes.indexOf(event.currentTarget);
|
|
16801
|
+
candidateNodes = context.loop ? wrapArray$1(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);
|
|
16802
|
+
}
|
|
16803
|
+
setTimeout(() => focusFirst$1(candidateNodes));
|
|
16804
|
+
}
|
|
16805
|
+
})
|
|
16806
|
+
}
|
|
16807
|
+
)
|
|
16808
|
+
}
|
|
16809
|
+
);
|
|
16810
|
+
}
|
|
16811
|
+
);
|
|
16812
|
+
RovingFocusGroupItem.displayName = ITEM_NAME$2;
|
|
16813
|
+
var MAP_KEY_TO_FOCUS_INTENT = {
|
|
16814
|
+
ArrowLeft: "prev",
|
|
16815
|
+
ArrowUp: "prev",
|
|
16816
|
+
ArrowRight: "next",
|
|
16817
|
+
ArrowDown: "next",
|
|
16818
|
+
PageUp: "first",
|
|
16819
|
+
Home: "first",
|
|
16820
|
+
PageDown: "last",
|
|
16821
|
+
End: "last"
|
|
16822
|
+
};
|
|
16823
|
+
function getDirectionAwareKey(key, dir) {
|
|
16824
|
+
if (dir !== "rtl") return key;
|
|
16825
|
+
return key === "ArrowLeft" ? "ArrowRight" : key === "ArrowRight" ? "ArrowLeft" : key;
|
|
16826
|
+
}
|
|
16827
|
+
function getFocusIntent(event, orientation, dir) {
|
|
16828
|
+
const key = getDirectionAwareKey(event.key, dir);
|
|
16829
|
+
if (orientation === "vertical" && ["ArrowLeft", "ArrowRight"].includes(key)) return void 0;
|
|
16830
|
+
if (orientation === "horizontal" && ["ArrowUp", "ArrowDown"].includes(key)) return void 0;
|
|
16831
|
+
return MAP_KEY_TO_FOCUS_INTENT[key];
|
|
16832
|
+
}
|
|
16833
|
+
function focusFirst$1(candidates, preventScroll = false) {
|
|
16834
|
+
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
16835
|
+
for (const candidate of candidates) {
|
|
16836
|
+
if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
16837
|
+
candidate.focus({ preventScroll });
|
|
16838
|
+
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
16839
|
+
}
|
|
16840
|
+
}
|
|
16841
|
+
function wrapArray$1(array, startIndex) {
|
|
16842
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
16843
|
+
}
|
|
16844
|
+
var Root$2 = RovingFocusGroup;
|
|
16845
|
+
var Item = RovingFocusGroupItem;
|
|
16846
|
+
|
|
16847
|
+
var SELECTION_KEYS = ["Enter", " "];
|
|
16848
|
+
var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
|
|
16849
|
+
var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
|
|
16850
|
+
var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
|
|
16851
|
+
var SUB_OPEN_KEYS = {
|
|
16852
|
+
ltr: [...SELECTION_KEYS, "ArrowRight"],
|
|
16853
|
+
rtl: [...SELECTION_KEYS, "ArrowLeft"]
|
|
16854
|
+
};
|
|
16855
|
+
var SUB_CLOSE_KEYS = {
|
|
16856
|
+
ltr: ["ArrowLeft"],
|
|
16857
|
+
rtl: ["ArrowRight"]
|
|
16858
|
+
};
|
|
16859
|
+
var MENU_NAME = "Menu";
|
|
16860
|
+
var [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);
|
|
16861
|
+
var [createMenuContext, createMenuScope] = createContextScope$1(MENU_NAME, [
|
|
16862
|
+
createCollectionScope,
|
|
16863
|
+
createPopperScope$1,
|
|
16864
|
+
createRovingFocusGroupScope
|
|
16865
|
+
]);
|
|
16866
|
+
var usePopperScope$1 = createPopperScope$1();
|
|
16867
|
+
var useRovingFocusGroupScope = createRovingFocusGroupScope();
|
|
16868
|
+
var [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);
|
|
16869
|
+
var [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);
|
|
16870
|
+
var Menu$1 = (props) => {
|
|
16871
|
+
const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;
|
|
16872
|
+
const popperScope = usePopperScope$1(__scopeMenu);
|
|
16873
|
+
const [content, setContent] = React.useState(null);
|
|
16874
|
+
const isUsingKeyboardRef = React.useRef(false);
|
|
16875
|
+
const handleOpenChange = useCallbackRef$1(onOpenChange);
|
|
16876
|
+
const direction = useDirection(dir);
|
|
16877
|
+
React.useEffect(() => {
|
|
16878
|
+
const handleKeyDown = () => {
|
|
16879
|
+
isUsingKeyboardRef.current = true;
|
|
16880
|
+
document.addEventListener("pointerdown", handlePointer, { capture: true, once: true });
|
|
16881
|
+
document.addEventListener("pointermove", handlePointer, { capture: true, once: true });
|
|
16882
|
+
};
|
|
16883
|
+
const handlePointer = () => isUsingKeyboardRef.current = false;
|
|
16884
|
+
document.addEventListener("keydown", handleKeyDown, { capture: true });
|
|
16885
|
+
return () => {
|
|
16886
|
+
document.removeEventListener("keydown", handleKeyDown, { capture: true });
|
|
16887
|
+
document.removeEventListener("pointerdown", handlePointer, { capture: true });
|
|
16888
|
+
document.removeEventListener("pointermove", handlePointer, { capture: true });
|
|
16889
|
+
};
|
|
16890
|
+
}, []);
|
|
16891
|
+
return /* @__PURE__ */ jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsx(
|
|
16892
|
+
MenuProvider,
|
|
16893
|
+
{
|
|
16894
|
+
scope: __scopeMenu,
|
|
16895
|
+
open,
|
|
16896
|
+
onOpenChange: handleOpenChange,
|
|
16897
|
+
content,
|
|
16898
|
+
onContentChange: setContent,
|
|
16899
|
+
children: /* @__PURE__ */ jsx(
|
|
16900
|
+
MenuRootProvider,
|
|
16901
|
+
{
|
|
16902
|
+
scope: __scopeMenu,
|
|
16903
|
+
onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),
|
|
16904
|
+
isUsingKeyboardRef,
|
|
16905
|
+
dir: direction,
|
|
16906
|
+
modal,
|
|
16907
|
+
children
|
|
16908
|
+
}
|
|
16909
|
+
)
|
|
16910
|
+
}
|
|
16911
|
+
) });
|
|
16912
|
+
};
|
|
16913
|
+
Menu$1.displayName = MENU_NAME;
|
|
16914
|
+
var ANCHOR_NAME$1 = "MenuAnchor";
|
|
16915
|
+
var MenuAnchor = React.forwardRef(
|
|
16916
|
+
(props, forwardedRef) => {
|
|
16917
|
+
const { __scopeMenu, ...anchorProps } = props;
|
|
16918
|
+
const popperScope = usePopperScope$1(__scopeMenu);
|
|
16919
|
+
return /* @__PURE__ */ jsx(Anchor$1, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
16920
|
+
}
|
|
16921
|
+
);
|
|
16922
|
+
MenuAnchor.displayName = ANCHOR_NAME$1;
|
|
16923
|
+
var PORTAL_NAME$3 = "MenuPortal";
|
|
16924
|
+
var [PortalProvider$1, usePortalContext$1] = createMenuContext(PORTAL_NAME$3, {
|
|
16925
|
+
forceMount: void 0
|
|
16926
|
+
});
|
|
16927
|
+
var MenuPortal$1 = (props) => {
|
|
16928
|
+
const { __scopeMenu, forceMount, children, container } = props;
|
|
16929
|
+
const context = useMenuContext(PORTAL_NAME$3, __scopeMenu);
|
|
16930
|
+
return /* @__PURE__ */ jsx(PortalProvider$1, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$6, { asChild: true, container, children }) }) });
|
|
16931
|
+
};
|
|
16932
|
+
MenuPortal$1.displayName = PORTAL_NAME$3;
|
|
16933
|
+
var CONTENT_NAME$3 = "MenuContent";
|
|
16934
|
+
var [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME$3);
|
|
16935
|
+
var MenuContent$1 = React.forwardRef(
|
|
16936
|
+
(props, forwardedRef) => {
|
|
16937
|
+
const portalContext = usePortalContext$1(CONTENT_NAME$3, props.__scopeMenu);
|
|
16938
|
+
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
16939
|
+
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
16940
|
+
const rootContext = useMenuRootContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
16941
|
+
return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });
|
|
16942
|
+
}
|
|
16943
|
+
);
|
|
16944
|
+
var MenuRootContentModal = React.forwardRef(
|
|
16945
|
+
(props, forwardedRef) => {
|
|
16946
|
+
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
16947
|
+
const ref = React.useRef(null);
|
|
16948
|
+
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
16949
|
+
React.useEffect(() => {
|
|
16950
|
+
const content = ref.current;
|
|
16951
|
+
if (content) return hideOthers(content);
|
|
16952
|
+
}, []);
|
|
16953
|
+
return /* @__PURE__ */ jsx(
|
|
16954
|
+
MenuContentImpl,
|
|
16955
|
+
{
|
|
16956
|
+
...props,
|
|
16957
|
+
ref: composedRefs,
|
|
16958
|
+
trapFocus: context.open,
|
|
16959
|
+
disableOutsidePointerEvents: context.open,
|
|
16960
|
+
disableOutsideScroll: true,
|
|
16961
|
+
onFocusOutside: composeEventHandlers$1(
|
|
16962
|
+
props.onFocusOutside,
|
|
16963
|
+
(event) => event.preventDefault(),
|
|
16964
|
+
{ checkForDefaultPrevented: false }
|
|
16965
|
+
),
|
|
16966
|
+
onDismiss: () => context.onOpenChange(false)
|
|
16967
|
+
}
|
|
16968
|
+
);
|
|
16969
|
+
}
|
|
16970
|
+
);
|
|
16971
|
+
var MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {
|
|
16972
|
+
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
16973
|
+
return /* @__PURE__ */ jsx(
|
|
16974
|
+
MenuContentImpl,
|
|
16975
|
+
{
|
|
16976
|
+
...props,
|
|
16977
|
+
ref: forwardedRef,
|
|
16978
|
+
trapFocus: false,
|
|
16979
|
+
disableOutsidePointerEvents: false,
|
|
16980
|
+
disableOutsideScroll: false,
|
|
16981
|
+
onDismiss: () => context.onOpenChange(false)
|
|
16982
|
+
}
|
|
16983
|
+
);
|
|
16984
|
+
});
|
|
16985
|
+
var MenuContentImpl = React.forwardRef(
|
|
16986
|
+
(props, forwardedRef) => {
|
|
16987
|
+
const {
|
|
16988
|
+
__scopeMenu,
|
|
16989
|
+
loop = false,
|
|
16990
|
+
trapFocus,
|
|
16991
|
+
onOpenAutoFocus,
|
|
16992
|
+
onCloseAutoFocus,
|
|
16993
|
+
disableOutsidePointerEvents,
|
|
16994
|
+
onEntryFocus,
|
|
16995
|
+
onEscapeKeyDown,
|
|
16996
|
+
onPointerDownOutside,
|
|
16997
|
+
onFocusOutside,
|
|
16998
|
+
onInteractOutside,
|
|
16999
|
+
onDismiss,
|
|
17000
|
+
disableOutsideScroll,
|
|
17001
|
+
...contentProps
|
|
17002
|
+
} = props;
|
|
17003
|
+
const context = useMenuContext(CONTENT_NAME$3, __scopeMenu);
|
|
17004
|
+
const rootContext = useMenuRootContext(CONTENT_NAME$3, __scopeMenu);
|
|
17005
|
+
const popperScope = usePopperScope$1(__scopeMenu);
|
|
17006
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
|
|
17007
|
+
const getItems = useCollection(__scopeMenu);
|
|
17008
|
+
const [currentItemId, setCurrentItemId] = React.useState(null);
|
|
17009
|
+
const contentRef = React.useRef(null);
|
|
17010
|
+
const composedRefs = useComposedRefs$1(forwardedRef, contentRef, context.onContentChange);
|
|
17011
|
+
const timerRef = React.useRef(0);
|
|
17012
|
+
const searchRef = React.useRef("");
|
|
17013
|
+
const pointerGraceTimerRef = React.useRef(0);
|
|
17014
|
+
const pointerGraceIntentRef = React.useRef(null);
|
|
17015
|
+
const pointerDirRef = React.useRef("right");
|
|
17016
|
+
const lastPointerXRef = React.useRef(0);
|
|
17017
|
+
const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll : React.Fragment;
|
|
17018
|
+
const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot$1, allowPinchZoom: true } : void 0;
|
|
17019
|
+
const handleTypeaheadSearch = (key) => {
|
|
17020
|
+
const search = searchRef.current + key;
|
|
17021
|
+
const items = getItems().filter((item) => !item.disabled);
|
|
17022
|
+
const currentItem = document.activeElement;
|
|
17023
|
+
const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;
|
|
17024
|
+
const values = items.map((item) => item.textValue);
|
|
17025
|
+
const nextMatch = getNextMatch(values, search, currentMatch);
|
|
17026
|
+
const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;
|
|
17027
|
+
(function updateSearch(value) {
|
|
17028
|
+
searchRef.current = value;
|
|
17029
|
+
window.clearTimeout(timerRef.current);
|
|
17030
|
+
if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
|
|
17031
|
+
})(search);
|
|
17032
|
+
if (newItem) {
|
|
17033
|
+
setTimeout(() => newItem.focus());
|
|
17034
|
+
}
|
|
17035
|
+
};
|
|
17036
|
+
React.useEffect(() => {
|
|
17037
|
+
return () => window.clearTimeout(timerRef.current);
|
|
17038
|
+
}, []);
|
|
17039
|
+
useFocusGuards();
|
|
17040
|
+
const isPointerMovingToSubmenu = React.useCallback((event) => {
|
|
17041
|
+
const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;
|
|
17042
|
+
return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);
|
|
17043
|
+
}, []);
|
|
17044
|
+
return /* @__PURE__ */ jsx(
|
|
17045
|
+
MenuContentProvider,
|
|
17046
|
+
{
|
|
17047
|
+
scope: __scopeMenu,
|
|
17048
|
+
searchRef,
|
|
17049
|
+
onItemEnter: React.useCallback(
|
|
17050
|
+
(event) => {
|
|
17051
|
+
if (isPointerMovingToSubmenu(event)) event.preventDefault();
|
|
17052
|
+
},
|
|
17053
|
+
[isPointerMovingToSubmenu]
|
|
17054
|
+
),
|
|
17055
|
+
onItemLeave: React.useCallback(
|
|
17056
|
+
(event) => {
|
|
17057
|
+
if (isPointerMovingToSubmenu(event)) return;
|
|
17058
|
+
contentRef.current?.focus();
|
|
17059
|
+
setCurrentItemId(null);
|
|
17060
|
+
},
|
|
17061
|
+
[isPointerMovingToSubmenu]
|
|
17062
|
+
),
|
|
17063
|
+
onTriggerLeave: React.useCallback(
|
|
17064
|
+
(event) => {
|
|
17065
|
+
if (isPointerMovingToSubmenu(event)) event.preventDefault();
|
|
17066
|
+
},
|
|
17067
|
+
[isPointerMovingToSubmenu]
|
|
17068
|
+
),
|
|
17069
|
+
pointerGraceTimerRef,
|
|
17070
|
+
onPointerGraceIntentChange: React.useCallback((intent) => {
|
|
17071
|
+
pointerGraceIntentRef.current = intent;
|
|
17072
|
+
}, []),
|
|
17073
|
+
children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(
|
|
17074
|
+
FocusScope,
|
|
17075
|
+
{
|
|
17076
|
+
asChild: true,
|
|
17077
|
+
trapped: trapFocus,
|
|
17078
|
+
onMountAutoFocus: composeEventHandlers$1(onOpenAutoFocus, (event) => {
|
|
17079
|
+
event.preventDefault();
|
|
17080
|
+
contentRef.current?.focus({ preventScroll: true });
|
|
17081
|
+
}),
|
|
17082
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
17083
|
+
children: /* @__PURE__ */ jsx(
|
|
17084
|
+
DismissableLayer$1,
|
|
17085
|
+
{
|
|
17086
|
+
asChild: true,
|
|
17087
|
+
disableOutsidePointerEvents,
|
|
17088
|
+
onEscapeKeyDown,
|
|
17089
|
+
onPointerDownOutside,
|
|
17090
|
+
onFocusOutside,
|
|
17091
|
+
onInteractOutside,
|
|
17092
|
+
onDismiss,
|
|
17093
|
+
children: /* @__PURE__ */ jsx(
|
|
17094
|
+
Root$2,
|
|
17095
|
+
{
|
|
17096
|
+
asChild: true,
|
|
17097
|
+
...rovingFocusGroupScope,
|
|
17098
|
+
dir: rootContext.dir,
|
|
17099
|
+
orientation: "vertical",
|
|
17100
|
+
loop,
|
|
17101
|
+
currentTabStopId: currentItemId,
|
|
17102
|
+
onCurrentTabStopIdChange: setCurrentItemId,
|
|
17103
|
+
onEntryFocus: composeEventHandlers$1(onEntryFocus, (event) => {
|
|
17104
|
+
if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
|
|
17105
|
+
}),
|
|
17106
|
+
preventScrollOnEntryFocus: true,
|
|
17107
|
+
children: /* @__PURE__ */ jsx(
|
|
17108
|
+
Content$2,
|
|
17109
|
+
{
|
|
17110
|
+
role: "menu",
|
|
17111
|
+
"aria-orientation": "vertical",
|
|
17112
|
+
"data-state": getOpenState(context.open),
|
|
17113
|
+
"data-radix-menu-content": "",
|
|
17114
|
+
dir: rootContext.dir,
|
|
17115
|
+
...popperScope,
|
|
17116
|
+
...contentProps,
|
|
17117
|
+
ref: composedRefs,
|
|
17118
|
+
style: { outline: "none", ...contentProps.style },
|
|
17119
|
+
onKeyDown: composeEventHandlers$1(contentProps.onKeyDown, (event) => {
|
|
17120
|
+
const target = event.target;
|
|
17121
|
+
const isKeyDownInside = target.closest("[data-radix-menu-content]") === event.currentTarget;
|
|
17122
|
+
const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
|
|
17123
|
+
const isCharacterKey = event.key.length === 1;
|
|
17124
|
+
if (isKeyDownInside) {
|
|
17125
|
+
if (event.key === "Tab") event.preventDefault();
|
|
17126
|
+
if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);
|
|
17127
|
+
}
|
|
17128
|
+
const content = contentRef.current;
|
|
17129
|
+
if (event.target !== content) return;
|
|
17130
|
+
if (!FIRST_LAST_KEYS.includes(event.key)) return;
|
|
17131
|
+
event.preventDefault();
|
|
17132
|
+
const items = getItems().filter((item) => !item.disabled);
|
|
17133
|
+
const candidateNodes = items.map((item) => item.ref.current);
|
|
17134
|
+
if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();
|
|
17135
|
+
focusFirst(candidateNodes);
|
|
17136
|
+
}),
|
|
17137
|
+
onBlur: composeEventHandlers$1(props.onBlur, (event) => {
|
|
17138
|
+
if (!event.currentTarget.contains(event.target)) {
|
|
17139
|
+
window.clearTimeout(timerRef.current);
|
|
17140
|
+
searchRef.current = "";
|
|
17141
|
+
}
|
|
17142
|
+
}),
|
|
17143
|
+
onPointerMove: composeEventHandlers$1(
|
|
17144
|
+
props.onPointerMove,
|
|
17145
|
+
whenMouse((event) => {
|
|
17146
|
+
const target = event.target;
|
|
17147
|
+
const pointerXHasChanged = lastPointerXRef.current !== event.clientX;
|
|
17148
|
+
if (event.currentTarget.contains(target) && pointerXHasChanged) {
|
|
17149
|
+
const newDir = event.clientX > lastPointerXRef.current ? "right" : "left";
|
|
17150
|
+
pointerDirRef.current = newDir;
|
|
17151
|
+
lastPointerXRef.current = event.clientX;
|
|
17152
|
+
}
|
|
17153
|
+
})
|
|
17154
|
+
)
|
|
17155
|
+
}
|
|
17156
|
+
)
|
|
17157
|
+
}
|
|
17158
|
+
)
|
|
17159
|
+
}
|
|
17160
|
+
)
|
|
17161
|
+
}
|
|
17162
|
+
) })
|
|
17163
|
+
}
|
|
17164
|
+
);
|
|
17165
|
+
}
|
|
17166
|
+
);
|
|
17167
|
+
MenuContent$1.displayName = CONTENT_NAME$3;
|
|
17168
|
+
var GROUP_NAME$1 = "MenuGroup";
|
|
17169
|
+
var MenuGroup$1 = React.forwardRef(
|
|
17170
|
+
(props, forwardedRef) => {
|
|
17171
|
+
const { __scopeMenu, ...groupProps } = props;
|
|
17172
|
+
return /* @__PURE__ */ jsx(Primitive$1.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
17173
|
+
}
|
|
17174
|
+
);
|
|
17175
|
+
MenuGroup$1.displayName = GROUP_NAME$1;
|
|
17176
|
+
var LABEL_NAME$1 = "MenuLabel";
|
|
17177
|
+
var MenuLabel$1 = React.forwardRef(
|
|
17178
|
+
(props, forwardedRef) => {
|
|
17179
|
+
const { __scopeMenu, ...labelProps } = props;
|
|
17180
|
+
return /* @__PURE__ */ jsx(Primitive$1.div, { ...labelProps, ref: forwardedRef });
|
|
17181
|
+
}
|
|
17182
|
+
);
|
|
17183
|
+
MenuLabel$1.displayName = LABEL_NAME$1;
|
|
17184
|
+
var ITEM_NAME$1 = "MenuItem";
|
|
17185
|
+
var ITEM_SELECT = "menu.itemSelect";
|
|
17186
|
+
var MenuItem$1 = React.forwardRef(
|
|
17187
|
+
(props, forwardedRef) => {
|
|
17188
|
+
const { disabled = false, onSelect, ...itemProps } = props;
|
|
17189
|
+
const ref = React.useRef(null);
|
|
17190
|
+
const rootContext = useMenuRootContext(ITEM_NAME$1, props.__scopeMenu);
|
|
17191
|
+
const contentContext = useMenuContentContext(ITEM_NAME$1, props.__scopeMenu);
|
|
17192
|
+
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
17193
|
+
const isPointerDownRef = React.useRef(false);
|
|
17194
|
+
const handleSelect = () => {
|
|
17195
|
+
const menuItem = ref.current;
|
|
17196
|
+
if (!disabled && menuItem) {
|
|
17197
|
+
const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });
|
|
17198
|
+
menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });
|
|
17199
|
+
dispatchDiscreteCustomEvent$1(menuItem, itemSelectEvent);
|
|
17200
|
+
if (itemSelectEvent.defaultPrevented) {
|
|
17201
|
+
isPointerDownRef.current = false;
|
|
17202
|
+
} else {
|
|
17203
|
+
rootContext.onClose();
|
|
17204
|
+
}
|
|
17205
|
+
}
|
|
17206
|
+
};
|
|
17207
|
+
return /* @__PURE__ */ jsx(
|
|
17208
|
+
MenuItemImpl,
|
|
17209
|
+
{
|
|
17210
|
+
...itemProps,
|
|
17211
|
+
ref: composedRefs,
|
|
17212
|
+
disabled,
|
|
17213
|
+
onClick: composeEventHandlers$1(props.onClick, handleSelect),
|
|
17214
|
+
onPointerDown: (event) => {
|
|
17215
|
+
props.onPointerDown?.(event);
|
|
17216
|
+
isPointerDownRef.current = true;
|
|
17217
|
+
},
|
|
17218
|
+
onPointerUp: composeEventHandlers$1(props.onPointerUp, (event) => {
|
|
17219
|
+
if (!isPointerDownRef.current) event.currentTarget?.click();
|
|
17220
|
+
}),
|
|
17221
|
+
onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
|
|
17222
|
+
const isTypingAhead = contentContext.searchRef.current !== "";
|
|
17223
|
+
if (disabled || isTypingAhead && event.key === " ") return;
|
|
17224
|
+
if (SELECTION_KEYS.includes(event.key)) {
|
|
17225
|
+
event.currentTarget.click();
|
|
17226
|
+
event.preventDefault();
|
|
17227
|
+
}
|
|
17228
|
+
})
|
|
17229
|
+
}
|
|
17230
|
+
);
|
|
17231
|
+
}
|
|
17232
|
+
);
|
|
17233
|
+
MenuItem$1.displayName = ITEM_NAME$1;
|
|
17234
|
+
var MenuItemImpl = React.forwardRef(
|
|
17235
|
+
(props, forwardedRef) => {
|
|
17236
|
+
const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;
|
|
17237
|
+
const contentContext = useMenuContentContext(ITEM_NAME$1, __scopeMenu);
|
|
17238
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
|
|
17239
|
+
const ref = React.useRef(null);
|
|
17240
|
+
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
17241
|
+
const [isFocused, setIsFocused] = React.useState(false);
|
|
17242
|
+
const [textContent, setTextContent] = React.useState("");
|
|
17243
|
+
React.useEffect(() => {
|
|
17244
|
+
const menuItem = ref.current;
|
|
17245
|
+
if (menuItem) {
|
|
17246
|
+
setTextContent((menuItem.textContent ?? "").trim());
|
|
17247
|
+
}
|
|
17248
|
+
}, [itemProps.children]);
|
|
17249
|
+
return /* @__PURE__ */ jsx(
|
|
17250
|
+
Collection.ItemSlot,
|
|
17251
|
+
{
|
|
17252
|
+
scope: __scopeMenu,
|
|
17253
|
+
disabled,
|
|
17254
|
+
textValue: textValue ?? textContent,
|
|
17255
|
+
children: /* @__PURE__ */ jsx(Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
|
|
17256
|
+
Primitive$1.div,
|
|
17257
|
+
{
|
|
17258
|
+
role: "menuitem",
|
|
17259
|
+
"data-highlighted": isFocused ? "" : void 0,
|
|
17260
|
+
"aria-disabled": disabled || void 0,
|
|
17261
|
+
"data-disabled": disabled ? "" : void 0,
|
|
17262
|
+
...itemProps,
|
|
17263
|
+
ref: composedRefs,
|
|
17264
|
+
onPointerMove: composeEventHandlers$1(
|
|
17265
|
+
props.onPointerMove,
|
|
17266
|
+
whenMouse((event) => {
|
|
17267
|
+
if (disabled) {
|
|
17268
|
+
contentContext.onItemLeave(event);
|
|
17269
|
+
} else {
|
|
17270
|
+
contentContext.onItemEnter(event);
|
|
17271
|
+
if (!event.defaultPrevented) {
|
|
17272
|
+
const item = event.currentTarget;
|
|
17273
|
+
item.focus({ preventScroll: true });
|
|
17274
|
+
}
|
|
17275
|
+
}
|
|
17276
|
+
})
|
|
17277
|
+
),
|
|
17278
|
+
onPointerLeave: composeEventHandlers$1(
|
|
17279
|
+
props.onPointerLeave,
|
|
17280
|
+
whenMouse((event) => contentContext.onItemLeave(event))
|
|
17281
|
+
),
|
|
17282
|
+
onFocus: composeEventHandlers$1(props.onFocus, () => setIsFocused(true)),
|
|
17283
|
+
onBlur: composeEventHandlers$1(props.onBlur, () => setIsFocused(false))
|
|
17284
|
+
}
|
|
17285
|
+
) })
|
|
17286
|
+
}
|
|
17287
|
+
);
|
|
17288
|
+
}
|
|
17289
|
+
);
|
|
17290
|
+
var CHECKBOX_ITEM_NAME$1 = "MenuCheckboxItem";
|
|
17291
|
+
var MenuCheckboxItem$1 = React.forwardRef(
|
|
17292
|
+
(props, forwardedRef) => {
|
|
17293
|
+
const { checked = false, onCheckedChange, ...checkboxItemProps } = props;
|
|
17294
|
+
return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(
|
|
17295
|
+
MenuItem$1,
|
|
17296
|
+
{
|
|
17297
|
+
role: "menuitemcheckbox",
|
|
17298
|
+
"aria-checked": isIndeterminate(checked) ? "mixed" : checked,
|
|
17299
|
+
...checkboxItemProps,
|
|
17300
|
+
ref: forwardedRef,
|
|
17301
|
+
"data-state": getCheckedState(checked),
|
|
17302
|
+
onSelect: composeEventHandlers$1(
|
|
17303
|
+
checkboxItemProps.onSelect,
|
|
17304
|
+
() => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),
|
|
17305
|
+
{ checkForDefaultPrevented: false }
|
|
17306
|
+
)
|
|
17307
|
+
}
|
|
17308
|
+
) });
|
|
17309
|
+
}
|
|
17310
|
+
);
|
|
17311
|
+
MenuCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME$1;
|
|
17312
|
+
var RADIO_GROUP_NAME$1 = "MenuRadioGroup";
|
|
17313
|
+
var [RadioGroupProvider, useRadioGroupContext] = createMenuContext(
|
|
17314
|
+
RADIO_GROUP_NAME$1,
|
|
17315
|
+
{ value: void 0, onValueChange: () => {
|
|
17316
|
+
} }
|
|
17317
|
+
);
|
|
17318
|
+
var MenuRadioGroup$1 = React.forwardRef(
|
|
17319
|
+
(props, forwardedRef) => {
|
|
17320
|
+
const { value, onValueChange, ...groupProps } = props;
|
|
17321
|
+
const handleValueChange = useCallbackRef$1(onValueChange);
|
|
17322
|
+
return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup$1, { ...groupProps, ref: forwardedRef }) });
|
|
17323
|
+
}
|
|
17324
|
+
);
|
|
17325
|
+
MenuRadioGroup$1.displayName = RADIO_GROUP_NAME$1;
|
|
17326
|
+
var RADIO_ITEM_NAME$1 = "MenuRadioItem";
|
|
17327
|
+
var MenuRadioItem$1 = React.forwardRef(
|
|
17328
|
+
(props, forwardedRef) => {
|
|
17329
|
+
const { value, ...radioItemProps } = props;
|
|
17330
|
+
const context = useRadioGroupContext(RADIO_ITEM_NAME$1, props.__scopeMenu);
|
|
17331
|
+
const checked = value === context.value;
|
|
17332
|
+
return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(
|
|
17333
|
+
MenuItem$1,
|
|
17334
|
+
{
|
|
17335
|
+
role: "menuitemradio",
|
|
17336
|
+
"aria-checked": checked,
|
|
17337
|
+
...radioItemProps,
|
|
17338
|
+
ref: forwardedRef,
|
|
17339
|
+
"data-state": getCheckedState(checked),
|
|
17340
|
+
onSelect: composeEventHandlers$1(
|
|
17341
|
+
radioItemProps.onSelect,
|
|
17342
|
+
() => context.onValueChange?.(value),
|
|
17343
|
+
{ checkForDefaultPrevented: false }
|
|
17344
|
+
)
|
|
17345
|
+
}
|
|
17346
|
+
) });
|
|
17347
|
+
}
|
|
17348
|
+
);
|
|
17349
|
+
MenuRadioItem$1.displayName = RADIO_ITEM_NAME$1;
|
|
17350
|
+
var ITEM_INDICATOR_NAME = "MenuItemIndicator";
|
|
17351
|
+
var [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(
|
|
17352
|
+
ITEM_INDICATOR_NAME,
|
|
17353
|
+
{ checked: false }
|
|
17354
|
+
);
|
|
17355
|
+
var MenuItemIndicator = React.forwardRef(
|
|
17356
|
+
(props, forwardedRef) => {
|
|
17357
|
+
const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;
|
|
17358
|
+
const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);
|
|
17359
|
+
return /* @__PURE__ */ jsx(
|
|
17360
|
+
Presence$1,
|
|
17361
|
+
{
|
|
17362
|
+
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
17363
|
+
children: /* @__PURE__ */ jsx(
|
|
17364
|
+
Primitive$1.span,
|
|
17365
|
+
{
|
|
17366
|
+
...itemIndicatorProps,
|
|
17367
|
+
ref: forwardedRef,
|
|
17368
|
+
"data-state": getCheckedState(indicatorContext.checked)
|
|
17369
|
+
}
|
|
17370
|
+
)
|
|
17371
|
+
}
|
|
17372
|
+
);
|
|
17373
|
+
}
|
|
17374
|
+
);
|
|
17375
|
+
MenuItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
17376
|
+
var SEPARATOR_NAME$1 = "MenuSeparator";
|
|
17377
|
+
var MenuSeparator$1 = React.forwardRef(
|
|
17378
|
+
(props, forwardedRef) => {
|
|
17379
|
+
const { __scopeMenu, ...separatorProps } = props;
|
|
17380
|
+
return /* @__PURE__ */ jsx(
|
|
17381
|
+
Primitive$1.div,
|
|
17382
|
+
{
|
|
17383
|
+
role: "separator",
|
|
17384
|
+
"aria-orientation": "horizontal",
|
|
17385
|
+
...separatorProps,
|
|
17386
|
+
ref: forwardedRef
|
|
17387
|
+
}
|
|
17388
|
+
);
|
|
17389
|
+
}
|
|
17390
|
+
);
|
|
17391
|
+
MenuSeparator$1.displayName = SEPARATOR_NAME$1;
|
|
17392
|
+
var ARROW_NAME$3 = "MenuArrow";
|
|
17393
|
+
var MenuArrow = React.forwardRef(
|
|
17394
|
+
(props, forwardedRef) => {
|
|
17395
|
+
const { __scopeMenu, ...arrowProps } = props;
|
|
17396
|
+
const popperScope = usePopperScope$1(__scopeMenu);
|
|
17397
|
+
return /* @__PURE__ */ jsx(Arrow$2, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
17398
|
+
}
|
|
17399
|
+
);
|
|
17400
|
+
MenuArrow.displayName = ARROW_NAME$3;
|
|
17401
|
+
var SUB_NAME = "MenuSub";
|
|
17402
|
+
var [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);
|
|
17403
|
+
var MenuSub$1 = (props) => {
|
|
17404
|
+
const { __scopeMenu, children, open = false, onOpenChange } = props;
|
|
17405
|
+
const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);
|
|
17406
|
+
const popperScope = usePopperScope$1(__scopeMenu);
|
|
17407
|
+
const [trigger, setTrigger] = React.useState(null);
|
|
17408
|
+
const [content, setContent] = React.useState(null);
|
|
17409
|
+
const handleOpenChange = useCallbackRef$1(onOpenChange);
|
|
17410
|
+
React.useEffect(() => {
|
|
17411
|
+
if (parentMenuContext.open === false) handleOpenChange(false);
|
|
17412
|
+
return () => handleOpenChange(false);
|
|
17413
|
+
}, [parentMenuContext.open, handleOpenChange]);
|
|
17414
|
+
return /* @__PURE__ */ jsx(Root2$4, { ...popperScope, children: /* @__PURE__ */ jsx(
|
|
17415
|
+
MenuProvider,
|
|
17416
|
+
{
|
|
17417
|
+
scope: __scopeMenu,
|
|
17418
|
+
open,
|
|
17419
|
+
onOpenChange: handleOpenChange,
|
|
17420
|
+
content,
|
|
17421
|
+
onContentChange: setContent,
|
|
17422
|
+
children: /* @__PURE__ */ jsx(
|
|
17423
|
+
MenuSubProvider,
|
|
17424
|
+
{
|
|
17425
|
+
scope: __scopeMenu,
|
|
17426
|
+
contentId: useId(),
|
|
17427
|
+
triggerId: useId(),
|
|
17428
|
+
trigger,
|
|
17429
|
+
onTriggerChange: setTrigger,
|
|
17430
|
+
children
|
|
17431
|
+
}
|
|
17432
|
+
)
|
|
17433
|
+
}
|
|
17434
|
+
) });
|
|
17435
|
+
};
|
|
17436
|
+
MenuSub$1.displayName = SUB_NAME;
|
|
17437
|
+
var SUB_TRIGGER_NAME$1 = "MenuSubTrigger";
|
|
17438
|
+
var MenuSubTrigger$1 = React.forwardRef(
|
|
17439
|
+
(props, forwardedRef) => {
|
|
17440
|
+
const context = useMenuContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
|
|
17441
|
+
const rootContext = useMenuRootContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
|
|
17442
|
+
const subContext = useMenuSubContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
|
|
17443
|
+
const contentContext = useMenuContentContext(SUB_TRIGGER_NAME$1, props.__scopeMenu);
|
|
17444
|
+
const openTimerRef = React.useRef(null);
|
|
17445
|
+
const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;
|
|
17446
|
+
const scope = { __scopeMenu: props.__scopeMenu };
|
|
17447
|
+
const clearOpenTimer = React.useCallback(() => {
|
|
17448
|
+
if (openTimerRef.current) window.clearTimeout(openTimerRef.current);
|
|
17449
|
+
openTimerRef.current = null;
|
|
17450
|
+
}, []);
|
|
17451
|
+
React.useEffect(() => clearOpenTimer, [clearOpenTimer]);
|
|
17452
|
+
React.useEffect(() => {
|
|
17453
|
+
const pointerGraceTimer = pointerGraceTimerRef.current;
|
|
17454
|
+
return () => {
|
|
17455
|
+
window.clearTimeout(pointerGraceTimer);
|
|
17456
|
+
onPointerGraceIntentChange(null);
|
|
17457
|
+
};
|
|
17458
|
+
}, [pointerGraceTimerRef, onPointerGraceIntentChange]);
|
|
17459
|
+
return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(
|
|
17460
|
+
MenuItemImpl,
|
|
17461
|
+
{
|
|
17462
|
+
id: subContext.triggerId,
|
|
17463
|
+
"aria-haspopup": "menu",
|
|
17464
|
+
"aria-expanded": context.open,
|
|
17465
|
+
"aria-controls": subContext.contentId,
|
|
17466
|
+
"data-state": getOpenState(context.open),
|
|
17467
|
+
...props,
|
|
17468
|
+
ref: composeRefs$1(forwardedRef, subContext.onTriggerChange),
|
|
17469
|
+
onClick: (event) => {
|
|
17470
|
+
props.onClick?.(event);
|
|
17471
|
+
if (props.disabled || event.defaultPrevented) return;
|
|
17472
|
+
event.currentTarget.focus();
|
|
17473
|
+
if (!context.open) context.onOpenChange(true);
|
|
17474
|
+
},
|
|
17475
|
+
onPointerMove: composeEventHandlers$1(
|
|
17476
|
+
props.onPointerMove,
|
|
17477
|
+
whenMouse((event) => {
|
|
17478
|
+
contentContext.onItemEnter(event);
|
|
17479
|
+
if (event.defaultPrevented) return;
|
|
17480
|
+
if (!props.disabled && !context.open && !openTimerRef.current) {
|
|
17481
|
+
contentContext.onPointerGraceIntentChange(null);
|
|
17482
|
+
openTimerRef.current = window.setTimeout(() => {
|
|
17483
|
+
context.onOpenChange(true);
|
|
17484
|
+
clearOpenTimer();
|
|
17485
|
+
}, 100);
|
|
17486
|
+
}
|
|
17487
|
+
})
|
|
17488
|
+
),
|
|
17489
|
+
onPointerLeave: composeEventHandlers$1(
|
|
17490
|
+
props.onPointerLeave,
|
|
17491
|
+
whenMouse((event) => {
|
|
17492
|
+
clearOpenTimer();
|
|
17493
|
+
const contentRect = context.content?.getBoundingClientRect();
|
|
17494
|
+
if (contentRect) {
|
|
17495
|
+
const side = context.content?.dataset.side;
|
|
17496
|
+
const rightSide = side === "right";
|
|
17497
|
+
const bleed = rightSide ? -5 : 5;
|
|
17498
|
+
const contentNearEdge = contentRect[rightSide ? "left" : "right"];
|
|
17499
|
+
const contentFarEdge = contentRect[rightSide ? "right" : "left"];
|
|
17500
|
+
contentContext.onPointerGraceIntentChange({
|
|
17501
|
+
area: [
|
|
17502
|
+
// Apply a bleed on clientX to ensure that our exit point is
|
|
17503
|
+
// consistently within polygon bounds
|
|
17504
|
+
{ x: event.clientX + bleed, y: event.clientY },
|
|
17505
|
+
{ x: contentNearEdge, y: contentRect.top },
|
|
17506
|
+
{ x: contentFarEdge, y: contentRect.top },
|
|
17507
|
+
{ x: contentFarEdge, y: contentRect.bottom },
|
|
17508
|
+
{ x: contentNearEdge, y: contentRect.bottom }
|
|
17509
|
+
],
|
|
17510
|
+
side
|
|
17511
|
+
});
|
|
17512
|
+
window.clearTimeout(pointerGraceTimerRef.current);
|
|
17513
|
+
pointerGraceTimerRef.current = window.setTimeout(
|
|
17514
|
+
() => contentContext.onPointerGraceIntentChange(null),
|
|
17515
|
+
300
|
|
17516
|
+
);
|
|
17517
|
+
} else {
|
|
17518
|
+
contentContext.onTriggerLeave(event);
|
|
17519
|
+
if (event.defaultPrevented) return;
|
|
17520
|
+
contentContext.onPointerGraceIntentChange(null);
|
|
17521
|
+
}
|
|
17522
|
+
})
|
|
17523
|
+
),
|
|
17524
|
+
onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
|
|
17525
|
+
const isTypingAhead = contentContext.searchRef.current !== "";
|
|
17526
|
+
if (props.disabled || isTypingAhead && event.key === " ") return;
|
|
17527
|
+
if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {
|
|
17528
|
+
context.onOpenChange(true);
|
|
17529
|
+
context.content?.focus();
|
|
17530
|
+
event.preventDefault();
|
|
17531
|
+
}
|
|
17532
|
+
})
|
|
17533
|
+
}
|
|
17534
|
+
) });
|
|
17535
|
+
}
|
|
17536
|
+
);
|
|
17537
|
+
MenuSubTrigger$1.displayName = SUB_TRIGGER_NAME$1;
|
|
17538
|
+
var SUB_CONTENT_NAME$1 = "MenuSubContent";
|
|
17539
|
+
var MenuSubContent$1 = React.forwardRef(
|
|
17540
|
+
(props, forwardedRef) => {
|
|
17541
|
+
const portalContext = usePortalContext$1(CONTENT_NAME$3, props.__scopeMenu);
|
|
17542
|
+
const { forceMount = portalContext.forceMount, ...subContentProps } = props;
|
|
17543
|
+
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
17544
|
+
const rootContext = useMenuRootContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
17545
|
+
const subContext = useMenuSubContext(SUB_CONTENT_NAME$1, props.__scopeMenu);
|
|
17546
|
+
const ref = React.useRef(null);
|
|
17547
|
+
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
17548
|
+
return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence$1, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(
|
|
17549
|
+
MenuContentImpl,
|
|
17550
|
+
{
|
|
17551
|
+
id: subContext.contentId,
|
|
17552
|
+
"aria-labelledby": subContext.triggerId,
|
|
17553
|
+
...subContentProps,
|
|
17554
|
+
ref: composedRefs,
|
|
17555
|
+
align: "start",
|
|
17556
|
+
side: rootContext.dir === "rtl" ? "left" : "right",
|
|
17557
|
+
disableOutsidePointerEvents: false,
|
|
17558
|
+
disableOutsideScroll: false,
|
|
17559
|
+
trapFocus: false,
|
|
17560
|
+
onOpenAutoFocus: (event) => {
|
|
17561
|
+
if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();
|
|
17562
|
+
event.preventDefault();
|
|
17563
|
+
},
|
|
17564
|
+
onCloseAutoFocus: (event) => event.preventDefault(),
|
|
17565
|
+
onFocusOutside: composeEventHandlers$1(props.onFocusOutside, (event) => {
|
|
17566
|
+
if (event.target !== subContext.trigger) context.onOpenChange(false);
|
|
17567
|
+
}),
|
|
17568
|
+
onEscapeKeyDown: composeEventHandlers$1(props.onEscapeKeyDown, (event) => {
|
|
17569
|
+
rootContext.onClose();
|
|
17570
|
+
event.preventDefault();
|
|
17571
|
+
}),
|
|
17572
|
+
onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
|
|
17573
|
+
const isKeyDownInside = event.currentTarget.contains(event.target);
|
|
17574
|
+
const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);
|
|
17575
|
+
if (isKeyDownInside && isCloseKey) {
|
|
17576
|
+
context.onOpenChange(false);
|
|
17577
|
+
subContext.trigger?.focus();
|
|
17578
|
+
event.preventDefault();
|
|
17579
|
+
}
|
|
17580
|
+
})
|
|
17581
|
+
}
|
|
17582
|
+
) }) }) });
|
|
17583
|
+
}
|
|
17584
|
+
);
|
|
17585
|
+
MenuSubContent$1.displayName = SUB_CONTENT_NAME$1;
|
|
17586
|
+
function getOpenState(open) {
|
|
17587
|
+
return open ? "open" : "closed";
|
|
17588
|
+
}
|
|
17589
|
+
function isIndeterminate(checked) {
|
|
17590
|
+
return checked === "indeterminate";
|
|
17591
|
+
}
|
|
17592
|
+
function getCheckedState(checked) {
|
|
17593
|
+
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
17594
|
+
}
|
|
17595
|
+
function focusFirst(candidates) {
|
|
17596
|
+
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
17597
|
+
for (const candidate of candidates) {
|
|
17598
|
+
if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
17599
|
+
candidate.focus();
|
|
17600
|
+
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
17601
|
+
}
|
|
17602
|
+
}
|
|
17603
|
+
function wrapArray(array, startIndex) {
|
|
17604
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
17605
|
+
}
|
|
17606
|
+
function getNextMatch(values, search, currentMatch) {
|
|
17607
|
+
const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
|
|
17608
|
+
const normalizedSearch = isRepeated ? search[0] : search;
|
|
17609
|
+
const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
|
|
17610
|
+
let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));
|
|
17611
|
+
const excludeCurrentMatch = normalizedSearch.length === 1;
|
|
17612
|
+
if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);
|
|
17613
|
+
const nextMatch = wrappedValues.find(
|
|
17614
|
+
(value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())
|
|
17615
|
+
);
|
|
17616
|
+
return nextMatch !== currentMatch ? nextMatch : void 0;
|
|
17617
|
+
}
|
|
17618
|
+
function isPointInPolygon$1(point, polygon) {
|
|
17619
|
+
const { x, y } = point;
|
|
17620
|
+
let inside = false;
|
|
17621
|
+
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
17622
|
+
const xi = polygon[i].x;
|
|
17623
|
+
const yi = polygon[i].y;
|
|
17624
|
+
const xj = polygon[j].x;
|
|
17625
|
+
const yj = polygon[j].y;
|
|
17626
|
+
const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;
|
|
17627
|
+
if (intersect) inside = !inside;
|
|
17628
|
+
}
|
|
17629
|
+
return inside;
|
|
17630
|
+
}
|
|
17631
|
+
function isPointerInGraceArea(event, area) {
|
|
17632
|
+
if (!area) return false;
|
|
17633
|
+
const cursorPos = { x: event.clientX, y: event.clientY };
|
|
17634
|
+
return isPointInPolygon$1(cursorPos, area);
|
|
17635
|
+
}
|
|
17636
|
+
function whenMouse(handler) {
|
|
17637
|
+
return (event) => event.pointerType === "mouse" ? handler(event) : void 0;
|
|
17638
|
+
}
|
|
17639
|
+
var Root3$1 = Menu$1;
|
|
17640
|
+
var Anchor2 = MenuAnchor;
|
|
17641
|
+
var Portal$2 = MenuPortal$1;
|
|
17642
|
+
var Content2$2 = MenuContent$1;
|
|
17643
|
+
var Group = MenuGroup$1;
|
|
17644
|
+
var Label = MenuLabel$1;
|
|
17645
|
+
var Item2$1 = MenuItem$1;
|
|
17646
|
+
var CheckboxItem = MenuCheckboxItem$1;
|
|
17647
|
+
var RadioGroup$1 = MenuRadioGroup$1;
|
|
17648
|
+
var RadioItem = MenuRadioItem$1;
|
|
17649
|
+
var ItemIndicator = MenuItemIndicator;
|
|
17650
|
+
var Separator = MenuSeparator$1;
|
|
17651
|
+
var Arrow2$1 = MenuArrow;
|
|
17652
|
+
var Sub = MenuSub$1;
|
|
17653
|
+
var SubTrigger = MenuSubTrigger$1;
|
|
17654
|
+
var SubContent = MenuSubContent$1;
|
|
17655
|
+
|
|
17656
|
+
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
17657
|
+
var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope$1(
|
|
17658
|
+
DROPDOWN_MENU_NAME,
|
|
17659
|
+
[createMenuScope]
|
|
17660
|
+
);
|
|
17661
|
+
var useMenuScope = createMenuScope();
|
|
17662
|
+
var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);
|
|
17663
|
+
var DropdownMenu = (props) => {
|
|
17664
|
+
const {
|
|
17665
|
+
__scopeDropdownMenu,
|
|
17666
|
+
children,
|
|
17667
|
+
dir,
|
|
17668
|
+
open: openProp,
|
|
17669
|
+
defaultOpen,
|
|
17670
|
+
onOpenChange,
|
|
17671
|
+
modal = true
|
|
17672
|
+
} = props;
|
|
17673
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17674
|
+
const triggerRef = React.useRef(null);
|
|
17675
|
+
const [open = false, setOpen] = useControllableState({
|
|
17676
|
+
prop: openProp,
|
|
17677
|
+
defaultProp: defaultOpen,
|
|
17678
|
+
onChange: onOpenChange
|
|
17679
|
+
});
|
|
17680
|
+
return /* @__PURE__ */ jsx(
|
|
17681
|
+
DropdownMenuProvider,
|
|
17682
|
+
{
|
|
17683
|
+
scope: __scopeDropdownMenu,
|
|
17684
|
+
triggerId: useId(),
|
|
17685
|
+
triggerRef,
|
|
17686
|
+
contentId: useId(),
|
|
17687
|
+
open,
|
|
17688
|
+
onOpenChange: setOpen,
|
|
17689
|
+
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
17690
|
+
modal,
|
|
17691
|
+
children: /* @__PURE__ */ jsx(Root3$1, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })
|
|
17692
|
+
}
|
|
17693
|
+
);
|
|
17694
|
+
};
|
|
17695
|
+
DropdownMenu.displayName = DROPDOWN_MENU_NAME;
|
|
17696
|
+
var TRIGGER_NAME$1 = "DropdownMenuTrigger";
|
|
17697
|
+
var DropdownMenuTrigger = React.forwardRef(
|
|
17698
|
+
(props, forwardedRef) => {
|
|
17699
|
+
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
|
17700
|
+
const context = useDropdownMenuContext(TRIGGER_NAME$1, __scopeDropdownMenu);
|
|
17701
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17702
|
+
return /* @__PURE__ */ jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
|
17703
|
+
Primitive$1.button,
|
|
17704
|
+
{
|
|
17705
|
+
type: "button",
|
|
17706
|
+
id: context.triggerId,
|
|
17707
|
+
"aria-haspopup": "menu",
|
|
17708
|
+
"aria-expanded": context.open,
|
|
17709
|
+
"aria-controls": context.open ? context.contentId : void 0,
|
|
17710
|
+
"data-state": context.open ? "open" : "closed",
|
|
17711
|
+
"data-disabled": disabled ? "" : void 0,
|
|
17712
|
+
disabled,
|
|
17713
|
+
...triggerProps,
|
|
17714
|
+
ref: composeRefs$1(forwardedRef, context.triggerRef),
|
|
17715
|
+
onPointerDown: composeEventHandlers$1(props.onPointerDown, (event) => {
|
|
17716
|
+
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
|
17717
|
+
context.onOpenToggle();
|
|
17718
|
+
if (!context.open) event.preventDefault();
|
|
17719
|
+
}
|
|
17720
|
+
}),
|
|
17721
|
+
onKeyDown: composeEventHandlers$1(props.onKeyDown, (event) => {
|
|
17722
|
+
if (disabled) return;
|
|
17723
|
+
if (["Enter", " "].includes(event.key)) context.onOpenToggle();
|
|
17724
|
+
if (event.key === "ArrowDown") context.onOpenChange(true);
|
|
17725
|
+
if (["Enter", " ", "ArrowDown"].includes(event.key)) event.preventDefault();
|
|
17726
|
+
})
|
|
17727
|
+
}
|
|
17728
|
+
) });
|
|
17729
|
+
}
|
|
17730
|
+
);
|
|
17731
|
+
DropdownMenuTrigger.displayName = TRIGGER_NAME$1;
|
|
17732
|
+
var PORTAL_NAME$2 = "DropdownMenuPortal";
|
|
17733
|
+
var DropdownMenuPortal = (props) => {
|
|
17734
|
+
const { __scopeDropdownMenu, ...portalProps } = props;
|
|
17735
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17736
|
+
return /* @__PURE__ */ jsx(Portal$2, { ...menuScope, ...portalProps });
|
|
17737
|
+
};
|
|
17738
|
+
DropdownMenuPortal.displayName = PORTAL_NAME$2;
|
|
17739
|
+
var CONTENT_NAME$2 = "DropdownMenuContent";
|
|
17740
|
+
var DropdownMenuContent = React.forwardRef(
|
|
17741
|
+
(props, forwardedRef) => {
|
|
17742
|
+
const { __scopeDropdownMenu, ...contentProps } = props;
|
|
17743
|
+
const context = useDropdownMenuContext(CONTENT_NAME$2, __scopeDropdownMenu);
|
|
17744
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17745
|
+
const hasInteractedOutsideRef = React.useRef(false);
|
|
17746
|
+
return /* @__PURE__ */ jsx(
|
|
17747
|
+
Content2$2,
|
|
17748
|
+
{
|
|
17749
|
+
id: context.contentId,
|
|
17750
|
+
"aria-labelledby": context.triggerId,
|
|
17751
|
+
...menuScope,
|
|
17752
|
+
...contentProps,
|
|
17753
|
+
ref: forwardedRef,
|
|
17754
|
+
onCloseAutoFocus: composeEventHandlers$1(props.onCloseAutoFocus, (event) => {
|
|
17755
|
+
if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
|
|
17756
|
+
hasInteractedOutsideRef.current = false;
|
|
17757
|
+
event.preventDefault();
|
|
17758
|
+
}),
|
|
17759
|
+
onInteractOutside: composeEventHandlers$1(props.onInteractOutside, (event) => {
|
|
17760
|
+
const originalEvent = event.detail.originalEvent;
|
|
17761
|
+
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
17762
|
+
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
17763
|
+
if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;
|
|
17764
|
+
}),
|
|
17765
|
+
style: {
|
|
17766
|
+
...props.style,
|
|
17767
|
+
// re-namespace exposed content custom properties
|
|
17768
|
+
...{
|
|
17769
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
17770
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
17771
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
17772
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
17773
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
17774
|
+
}
|
|
17775
|
+
}
|
|
17776
|
+
}
|
|
17777
|
+
);
|
|
17778
|
+
}
|
|
17779
|
+
);
|
|
17780
|
+
DropdownMenuContent.displayName = CONTENT_NAME$2;
|
|
17781
|
+
var GROUP_NAME = "DropdownMenuGroup";
|
|
17782
|
+
var DropdownMenuGroup = React.forwardRef(
|
|
17783
|
+
(props, forwardedRef) => {
|
|
17784
|
+
const { __scopeDropdownMenu, ...groupProps } = props;
|
|
17785
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17786
|
+
return /* @__PURE__ */ jsx(Group, { ...menuScope, ...groupProps, ref: forwardedRef });
|
|
17787
|
+
}
|
|
17788
|
+
);
|
|
17789
|
+
DropdownMenuGroup.displayName = GROUP_NAME;
|
|
17790
|
+
var LABEL_NAME = "DropdownMenuLabel";
|
|
17791
|
+
var DropdownMenuLabel = React.forwardRef(
|
|
17792
|
+
(props, forwardedRef) => {
|
|
17793
|
+
const { __scopeDropdownMenu, ...labelProps } = props;
|
|
17794
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17795
|
+
return /* @__PURE__ */ jsx(Label, { ...menuScope, ...labelProps, ref: forwardedRef });
|
|
17796
|
+
}
|
|
17797
|
+
);
|
|
17798
|
+
DropdownMenuLabel.displayName = LABEL_NAME;
|
|
17799
|
+
var ITEM_NAME = "DropdownMenuItem";
|
|
17800
|
+
var DropdownMenuItem = React.forwardRef(
|
|
17801
|
+
(props, forwardedRef) => {
|
|
17802
|
+
const { __scopeDropdownMenu, ...itemProps } = props;
|
|
17803
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17804
|
+
return /* @__PURE__ */ jsx(Item2$1, { ...menuScope, ...itemProps, ref: forwardedRef });
|
|
17805
|
+
}
|
|
17806
|
+
);
|
|
17807
|
+
DropdownMenuItem.displayName = ITEM_NAME;
|
|
17808
|
+
var CHECKBOX_ITEM_NAME = "DropdownMenuCheckboxItem";
|
|
17809
|
+
var DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {
|
|
17810
|
+
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
|
17811
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17812
|
+
return /* @__PURE__ */ jsx(CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
|
|
17813
|
+
});
|
|
17814
|
+
DropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;
|
|
17815
|
+
var RADIO_GROUP_NAME = "DropdownMenuRadioGroup";
|
|
17816
|
+
var DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {
|
|
17817
|
+
const { __scopeDropdownMenu, ...radioGroupProps } = props;
|
|
17818
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17819
|
+
return /* @__PURE__ */ jsx(RadioGroup$1, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
|
|
17820
|
+
});
|
|
17821
|
+
DropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;
|
|
17822
|
+
var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
|
|
17823
|
+
var DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {
|
|
17824
|
+
const { __scopeDropdownMenu, ...radioItemProps } = props;
|
|
17825
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17826
|
+
return /* @__PURE__ */ jsx(RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
|
|
17827
|
+
});
|
|
17828
|
+
DropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;
|
|
17829
|
+
var INDICATOR_NAME = "DropdownMenuItemIndicator";
|
|
17830
|
+
var DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {
|
|
17831
|
+
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
|
17832
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17833
|
+
return /* @__PURE__ */ jsx(ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
|
|
17834
|
+
});
|
|
17835
|
+
DropdownMenuItemIndicator.displayName = INDICATOR_NAME;
|
|
17836
|
+
var SEPARATOR_NAME = "DropdownMenuSeparator";
|
|
17837
|
+
var DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {
|
|
17838
|
+
const { __scopeDropdownMenu, ...separatorProps } = props;
|
|
17839
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17840
|
+
return /* @__PURE__ */ jsx(Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
|
|
17841
|
+
});
|
|
17842
|
+
DropdownMenuSeparator.displayName = SEPARATOR_NAME;
|
|
17843
|
+
var ARROW_NAME$2 = "DropdownMenuArrow";
|
|
17844
|
+
var DropdownMenuArrow = React.forwardRef(
|
|
17845
|
+
(props, forwardedRef) => {
|
|
17846
|
+
const { __scopeDropdownMenu, ...arrowProps } = props;
|
|
17847
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17848
|
+
return /* @__PURE__ */ jsx(Arrow2$1, { ...menuScope, ...arrowProps, ref: forwardedRef });
|
|
17849
|
+
}
|
|
17850
|
+
);
|
|
17851
|
+
DropdownMenuArrow.displayName = ARROW_NAME$2;
|
|
17852
|
+
var DropdownMenuSub = (props) => {
|
|
17853
|
+
const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;
|
|
17854
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17855
|
+
const [open = false, setOpen] = useControllableState({
|
|
17856
|
+
prop: openProp,
|
|
17857
|
+
defaultProp: defaultOpen,
|
|
17858
|
+
onChange: onOpenChange
|
|
17859
|
+
});
|
|
17860
|
+
return /* @__PURE__ */ jsx(Sub, { ...menuScope, open, onOpenChange: setOpen, children });
|
|
17861
|
+
};
|
|
17862
|
+
var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
|
|
17863
|
+
var DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {
|
|
17864
|
+
const { __scopeDropdownMenu, ...subTriggerProps } = props;
|
|
17865
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17866
|
+
return /* @__PURE__ */ jsx(SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });
|
|
17867
|
+
});
|
|
17868
|
+
DropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;
|
|
17869
|
+
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
|
17870
|
+
var DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {
|
|
17871
|
+
const { __scopeDropdownMenu, ...subContentProps } = props;
|
|
17872
|
+
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
17873
|
+
return /* @__PURE__ */ jsx(
|
|
17874
|
+
SubContent,
|
|
17875
|
+
{
|
|
17876
|
+
...menuScope,
|
|
17877
|
+
...subContentProps,
|
|
17878
|
+
ref: forwardedRef,
|
|
17879
|
+
style: {
|
|
17880
|
+
...props.style,
|
|
17881
|
+
// re-namespace exposed content custom properties
|
|
17882
|
+
...{
|
|
17883
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
17884
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
17885
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
17886
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
17887
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
17888
|
+
}
|
|
17889
|
+
}
|
|
17890
|
+
}
|
|
17891
|
+
);
|
|
17892
|
+
});
|
|
17893
|
+
DropdownMenuSubContent.displayName = SUB_CONTENT_NAME;
|
|
17894
|
+
var Root2$1 = DropdownMenu;
|
|
17895
|
+
var Trigger$1 = DropdownMenuTrigger;
|
|
17896
|
+
var Portal2 = DropdownMenuPortal;
|
|
17897
|
+
var Content2$1 = DropdownMenuContent;
|
|
17898
|
+
var Group2 = DropdownMenuGroup;
|
|
17899
|
+
var Label2 = DropdownMenuLabel;
|
|
17900
|
+
var Item2 = DropdownMenuItem;
|
|
17901
|
+
var CheckboxItem2 = DropdownMenuCheckboxItem;
|
|
17902
|
+
var RadioGroup2 = DropdownMenuRadioGroup;
|
|
17903
|
+
var RadioItem2 = DropdownMenuRadioItem;
|
|
17904
|
+
var Separator2 = DropdownMenuSeparator;
|
|
17905
|
+
var Sub2 = DropdownMenuSub;
|
|
17906
|
+
var SubTrigger2 = DropdownMenuSubTrigger;
|
|
17907
|
+
var SubContent2 = DropdownMenuSubContent;
|
|
17908
|
+
|
|
17909
|
+
/**
|
|
17910
|
+
* Contains all the parts of a dropdown menu.
|
|
17911
|
+
*/
|
|
17912
|
+
var Menu = function (_a) {
|
|
17913
|
+
var defaultOpen = _a.defaultOpen, open = _a.open, onOpenChange = _a.onOpenChange, _b = _a.modal, modal = _b === void 0 ? false : _b, children = _a.children, props = __rest(_a, ["defaultOpen", "open", "onOpenChange", "modal", "children"]);
|
|
17914
|
+
return (React__default.createElement(Root2$1, __assign({ defaultOpen: defaultOpen, open: open, onOpenChange: onOpenChange, modal: modal }, filterAttrs(props)), children));
|
|
17915
|
+
};
|
|
17916
|
+
|
|
17917
|
+
var MenuItemContentTemplate = function (_a) {
|
|
17918
|
+
var leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, trailingIcon = _a.trailingIcon, children = _a.children;
|
|
17919
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
17920
|
+
React__default.createElement("div", { className: "arc-MenuItem-content" },
|
|
17921
|
+
leadingIcon && (React__default.createElement("div", { className: "arc-MenuItem-leadingIcon" },
|
|
17922
|
+
React__default.createElement(Icon$1, { icon: leadingIcon, size: 24 }))),
|
|
17923
|
+
React__default.createElement("div", { className: "arc-MenuItem-text" },
|
|
17924
|
+
React__default.createElement(Text, { size: "m" }, children),
|
|
17925
|
+
supportingText && React__default.createElement(Text, { size: "xs" }, supportingText))),
|
|
17926
|
+
keyCommands || trailingIcon ? (React__default.createElement("div", { className: "arc-MenuItem-actions" },
|
|
17927
|
+
keyCommands && (React__default.createElement("div", { className: "arc-MenuItem-keyCommands" }, keyCommands)),
|
|
17928
|
+
trailingIcon && (React__default.createElement("div", { className: "arc-MenuItem-trailingIcon" },
|
|
17929
|
+
React__default.createElement(Icon$1, { icon: trailingIcon, size: 24 }))))) : null));
|
|
17930
|
+
};
|
|
17931
|
+
|
|
17932
|
+
var MenuCheckboxItem = function (_a) {
|
|
17933
|
+
var children = _a.children, checked = _a.checked, onCheckedChange = _a.onCheckedChange, isDisabled = _a.isDisabled, onSelect = _a.onSelect, id = _a.id, _b = _a.shouldKeepOpen, shouldKeepOpen = _b === void 0 ? true : _b, props = __rest(_a, ["children", "checked", "onCheckedChange", "isDisabled", "onSelect", "id", "shouldKeepOpen"]);
|
|
17934
|
+
return (React__default.createElement(CheckboxItem2, __assign({ className: "arc-MenuItem arc-MenuCheckboxItem", checked: checked, onCheckedChange: onCheckedChange, disabled: isDisabled, onSelect: function (event) {
|
|
17935
|
+
if (shouldKeepOpen) {
|
|
17936
|
+
event.preventDefault();
|
|
17937
|
+
onCheckedChange === null || onCheckedChange === void 0 ? void 0 : onCheckedChange(!checked);
|
|
17938
|
+
}
|
|
17939
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(event);
|
|
17940
|
+
}, id: id }, filterAttrs(props)),
|
|
17941
|
+
React__default.createElement("div", { className: classNames("arc-MenuCheckboxItem-box", {
|
|
17942
|
+
"arc-MenuCheckboxItem-box--checked": checked,
|
|
17943
|
+
}) }, checked && (React__default.createElement("svg", { style: { width: 14, height: 11 }, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
17944
|
+
React__default.createElement("path", { d: "M5.99459 14L0.350576 8.23277C0.126079 8.00285 0 7.69132 0 7.36653C0 7.04173 0.126079 6.7302 0.350576 6.50028C0.578979 6.27752 0.88258 6.15324 1.19832 6.15324C1.51405 6.15324 1.81765 6.27752 2.04606 6.50028L5.99459 10.535L15.9385 0.374054C16.0491 0.25703 16.1814 0.163688 16.3277 0.0994738C16.474 0.0352599 16.6313 0.00145997 16.7905 4.626e-05C16.9497 -0.00136745 17.1076 0.0296342 17.255 0.0912406C17.4023 0.152847 17.5362 0.243825 17.6488 0.358867C17.7614 0.473908 17.8504 0.610709 17.9107 0.761287C17.971 0.911865 18.0013 1.0732 18 1.23589C17.9986 1.39858 17.9655 1.55936 17.9026 1.70884C17.8398 1.85833 17.7485 1.99352 17.6339 2.10655L5.99459 14Z", fill: "currentColor" })))),
|
|
17945
|
+
React__default.createElement(MenuItemContentTemplate, null, children)));
|
|
17946
|
+
};
|
|
17947
|
+
|
|
17948
|
+
/**
|
|
17949
|
+
* The component that pops out when the dropdown menu is open.
|
|
17950
|
+
*/
|
|
17951
|
+
var MenuContent = React__default.forwardRef(function (_a, ref) {
|
|
17952
|
+
var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, _b = _a.align, align = _b === void 0 ? "start" : _b, alignOffset = _a.alignOffset, side = _a.side, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "align", "alignOffset", "side"]);
|
|
17953
|
+
return (React__default.createElement(Content2$1, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 12, loop: true, collisionPadding: 12, forceMount: true, align: align, alignOffset: alignOffset, side: side }, filterAttrs(props)), children));
|
|
17954
|
+
});
|
|
17955
|
+
|
|
17956
|
+
/**
|
|
17957
|
+
* Use `Rule` to display a horizontal or vertical rule.
|
|
17958
|
+
*/
|
|
17959
|
+
var Rule = function (_a, props) {
|
|
17960
|
+
var _b;
|
|
17961
|
+
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
17962
|
+
var surface = useContext(Context$3).surface;
|
|
17963
|
+
return (React__default.createElement("hr", __assign({ className: classNames((_b = {
|
|
17964
|
+
"arc-Rule": true
|
|
17965
|
+
},
|
|
17966
|
+
_b["arc-Rule--".concat(orientation)] = true,
|
|
17967
|
+
_b["arc-Rule--onDarkSurface"] = surface === "dark",
|
|
17968
|
+
_b)) }, filterAttrs(props))));
|
|
17969
|
+
};
|
|
17970
|
+
|
|
17971
|
+
/**
|
|
17972
|
+
* Displays footer content at the bottom of the menu.
|
|
17973
|
+
*/
|
|
17974
|
+
var MenuFooter = function (_a) {
|
|
17975
|
+
var leadingIcon = _a.leadingIcon, trailingIcon = _a.trailingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, children = _a.children, onClick = _a.onClick, isDisabled = _a.isDisabled, ariaLabel = _a.ariaLabel;
|
|
17976
|
+
return (React__default.createElement("div", { className: "arc-MenuFooter", style: {
|
|
17977
|
+
position: "relative",
|
|
17978
|
+
} },
|
|
17979
|
+
React__default.createElement("div", { style: {
|
|
17980
|
+
height: "12px",
|
|
17981
|
+
background: "linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))",
|
|
17982
|
+
position: "absolute",
|
|
17983
|
+
width: "100%",
|
|
17984
|
+
zIndex: 3,
|
|
17985
|
+
top: -12,
|
|
17986
|
+
} }),
|
|
17987
|
+
React__default.createElement("div", { className: "arc-MenuSeparator", style: { paddingTop: 0 } },
|
|
17988
|
+
React__default.createElement(Rule, null)),
|
|
17989
|
+
React__default.createElement(Item2, { className: "arc-MenuItem", "aria-label": ariaLabel, onClick: onClick, disabled: isDisabled },
|
|
17990
|
+
React__default.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, trailingIcon: trailingIcon, supportingText: supportingText, keyCommands: keyCommands }, children))));
|
|
17991
|
+
};
|
|
17992
|
+
|
|
17993
|
+
/**
|
|
17994
|
+
* Groups related menu items together within a dropdown menu.
|
|
17995
|
+
*/
|
|
17996
|
+
var MenuGroup = function (_a) {
|
|
17997
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
17998
|
+
return (React__default.createElement(Group2, __assign({ className: "arc-MenuGroup" }, filterAttrs(props)), children));
|
|
17999
|
+
};
|
|
18000
|
+
|
|
18001
|
+
/**
|
|
18002
|
+
* Displays a header within the dropdown menu.
|
|
18003
|
+
*/
|
|
18004
|
+
var MenuHeader = function (_a) {
|
|
18005
|
+
var leadingIcon = _a.leadingIcon, trailingIcon = _a.trailingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, children = _a.children, onClick = _a.onClick, isDisabled = _a.isDisabled, ariaLabel = _a.ariaLabel;
|
|
18006
|
+
return (React__default.createElement("div", { className: "arc-MenuHeader" },
|
|
18007
|
+
React__default.createElement(Item2, { className: "arc-MenuItem ", style: { marginBottom: 0 }, "aria-label": ariaLabel, onClick: onClick, disabled: isDisabled },
|
|
18008
|
+
React__default.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, trailingIcon: trailingIcon, supportingText: supportingText, keyCommands: keyCommands }, children)),
|
|
18009
|
+
React__default.createElement("div", { className: "arc-MenuSeparator", style: {
|
|
18010
|
+
paddingBottom: 0,
|
|
18011
|
+
} },
|
|
18012
|
+
React__default.createElement(Rule, null),
|
|
18013
|
+
React__default.createElement("div", { style: {
|
|
18014
|
+
height: "12px",
|
|
18015
|
+
background: "linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))",
|
|
18016
|
+
position: "absolute",
|
|
18017
|
+
width: "100%",
|
|
18018
|
+
zIndex: 3,
|
|
18019
|
+
} }))));
|
|
18020
|
+
};
|
|
18021
|
+
|
|
18022
|
+
/**
|
|
18023
|
+
* Renders a menu item, optionally as a link if `href` is provided.
|
|
18024
|
+
*/
|
|
18025
|
+
var MenuItem = function (_a) {
|
|
18026
|
+
var leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, trailingIcon = _a.trailingIcon, children = _a.children, onClick = _a.onClick, _b = _a.shouldKeepOpen, shouldKeepOpen = _b === void 0 ? true : _b, isDisabled = _a.isDisabled, href = _a.href, ariaLabel = _a.ariaLabel, props = __rest(_a, ["leadingIcon", "supportingText", "keyCommands", "trailingIcon", "children", "onClick", "shouldKeepOpen", "isDisabled", "href", "ariaLabel"]);
|
|
18027
|
+
var Component = href ? "a" : "div";
|
|
18028
|
+
return (React__default.createElement(Item2, __assign({ className: "arc-MenuItem", asChild: true, "aria-label": ariaLabel, onClick: onClick, onSelect: function (event) {
|
|
18029
|
+
if (shouldKeepOpen) {
|
|
18030
|
+
event.preventDefault();
|
|
18031
|
+
}
|
|
18032
|
+
}, disabled: isDisabled }, filterAttrs(props)),
|
|
18033
|
+
React__default.createElement(Component, __assign({ className: href && "arc-MenuItem--link", href: href }, props),
|
|
18034
|
+
React__default.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, trailingIcon: trailingIcon, supportingText: supportingText, keyCommands: keyCommands }, children))));
|
|
18035
|
+
};
|
|
18036
|
+
|
|
18037
|
+
/**
|
|
18038
|
+
* Provides a label to group related menu items.
|
|
18039
|
+
*/
|
|
18040
|
+
var MenuLabel = function (_a) {
|
|
18041
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
18042
|
+
return (React__default.createElement(Label2, __assign({ className: "arc-MenuLabel" }, filterAttrs(props)), children));
|
|
18043
|
+
};
|
|
18044
|
+
|
|
18045
|
+
/**
|
|
18046
|
+
* When used, portals the content part into the body. By default it's arc's theme element
|
|
18047
|
+
*/
|
|
18048
|
+
var MenuPortal = function (_a) {
|
|
18049
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
18050
|
+
var _b = useThemeElement(), themeElement = _b[0], setThemeElement = _b[1];
|
|
18051
|
+
return (React__default.createElement("span", { ref: setThemeElement, style: { display: "none" } },
|
|
18052
|
+
React__default.createElement(Portal2, __assign({ container: themeElement }, filterAttrs(props)), children)));
|
|
18053
|
+
};
|
|
18054
|
+
|
|
18055
|
+
/**
|
|
18056
|
+
* Groups menu items allowing single selection from multiple options.
|
|
18057
|
+
*/
|
|
18058
|
+
var MenuRadioGroup = function (_a) {
|
|
18059
|
+
var children = _a.children, value = _a.value, onValueChange = _a.onValueChange, props = __rest(_a, ["children", "value", "onValueChange"]);
|
|
18060
|
+
return (React__default.createElement(RadioGroup2, __assign({ className: "arc-MenuRadioGroup", value: value, onValueChange: onValueChange }, filterAttrs(props)), children));
|
|
18061
|
+
};
|
|
18062
|
+
|
|
18063
|
+
/**
|
|
18064
|
+
* Do not edit directly
|
|
18065
|
+
* Generated file
|
|
18066
|
+
*/
|
|
18067
|
+
|
|
18068
|
+
const BtIconArrowAltUp =
|
|
18069
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M20.354 13.146 16 8.793l-4.354 4.354a.5.5 0 0 0 .707.707l3.147-3.147V22.5a.5.5 0 0 0 1 0V10.707l3.146 3.146a.5.5 0 0 0 .707-.707'/%3e%3c/svg%3e";
|
|
18070
|
+
|
|
18071
|
+
/**
|
|
18072
|
+
* Do not edit directly
|
|
18073
|
+
* Generated file
|
|
18074
|
+
*/
|
|
18075
|
+
|
|
18076
|
+
const BtIconCross =
|
|
18077
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 27a13 13 0 1 1 13-13 13.015 13.015 0 0 1-13 13'/%3e%3cpath d='M20.854 11.146a.5.5 0 0 0-.707 0L16 15.293l-4.146-4.146a.5.5 0 0 0-.707.707L15.293 16l-4.146 4.146a.5.5 0 1 0 .707.707L16 16.707l4.146 4.146a.5.5 0 0 0 .707-.707L16.707 16l4.146-4.146a.5.5 0 0 0 0-.708'/%3e%3c/svg%3e";
|
|
18078
|
+
|
|
18079
|
+
/**
|
|
18080
|
+
* Do not edit directly
|
|
18081
|
+
* Generated file
|
|
18082
|
+
*/
|
|
18083
|
+
|
|
18084
|
+
const BtIconCrossFill =
|
|
18085
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.854 18.146a.5.5 0 1 1-.707.707L16 16.707l-4.146 4.146a.5.5 0 0 1-.707-.707L15.293 16l-4.146-4.146a.5.5 0 0 1 .707-.707L16 15.293l4.146-4.146a.5.5 0 0 1 .707.707L16.707 16Z'/%3e%3c/svg%3e";
|
|
18086
|
+
|
|
18087
|
+
/**
|
|
18088
|
+
* Do not edit directly
|
|
18089
|
+
* Generated file
|
|
18090
|
+
*/
|
|
18091
|
+
|
|
18092
|
+
const BtIconFirstMid =
|
|
18093
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='M4.675 4.005c.373 0 .675.303.675.675v6.64a.675.675 0 1 1-1.35 0V4.68c0-.372.302-.675.675-.675M7.973 8l2.848 2.852a.673.673 0 0 1-.731 1.097.7.7 0 0 1-.218-.145L6.548 8.476a.673.673 0 0 1 0-.951l3.324-3.328a.671.671 0 1 1 .95.951z' clip-rule='evenodd'/%3e%3c/svg%3e";
|
|
18094
|
+
|
|
18095
|
+
/**
|
|
18096
|
+
* Do not edit directly
|
|
18097
|
+
* Generated file
|
|
18098
|
+
*/
|
|
18099
|
+
|
|
18100
|
+
const BtIconLastMid =
|
|
18101
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' fill-rule='evenodd' d='M10.34 11.995a.675.675 0 0 1-.674-.675V4.68a.675.675 0 1 1 1.35 0v6.64a.675.675 0 0 1-.675.675M7.043 8 4.194 5.148a.673.673 0 0 1 .732-1.097.7.7 0 0 1 .218.146l3.324 3.328a.673.673 0 0 1 0 .95l-3.324 3.329a.671.671 0 1 1-.95-.952z' clip-rule='evenodd'/%3e%3c/svg%3e";
|
|
18102
|
+
|
|
18103
|
+
/**
|
|
18104
|
+
* Do not edit directly
|
|
18105
|
+
* Generated file
|
|
18106
|
+
*/
|
|
18107
|
+
|
|
18108
|
+
const BtIconPlayFill =
|
|
18109
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M13.161 11.762a.1.1 0 0 0-.107 0 .1.1 0 0 0-.054.092v8.288a.1.1 0 0 0 .054.093.1.1 0 0 0 .107 0l7.178-4.144a.1.1 0 0 0 .054-.092.1.1 0 0 0-.054-.094Z'/%3e%3cpath d='M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m4.839 14.957-7.178 4.145a1.108 1.108 0 0 1-1.661-.96v-8.288a1.107 1.107 0 0 1 1.661-.958l7.178 4.144a1.107 1.107 0 0 1 0 1.917'/%3e%3c/svg%3e";
|
|
18110
|
+
|
|
18111
|
+
/**
|
|
18112
|
+
* Do not edit directly
|
|
18113
|
+
* Generated file
|
|
18114
|
+
*/
|
|
18115
|
+
|
|
18116
|
+
const BtIconTickAlt2Px =
|
|
18117
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m13.5 21.914-4.707-4.707a1 1 0 0 1 0-1.414 1.024 1.024 0 0 1 1.414 0l3.293 3.293 8.293-8.293a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
|
|
18118
|
+
|
|
18119
|
+
/**
|
|
18120
|
+
* A selectable menu item used within a radio group.
|
|
18121
|
+
*/
|
|
18122
|
+
var MenuRadioItem = function (_a) {
|
|
18123
|
+
var children = _a.children, value = _a.value, _b = _a.disabled, disabled = _b === void 0 ? false : _b, onSelect = _a.onSelect, leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, _c = _a.shouldKeepOpen, shouldKeepOpen = _c === void 0 ? true : _c, props = __rest(_a, ["children", "value", "disabled", "onSelect", "leadingIcon", "supportingText", "shouldKeepOpen"]);
|
|
18124
|
+
return (React__default.createElement(RadioItem2, __assign({ className: "arc-MenuItem arc-MenuRadioItem", value: value, disabled: disabled, onSelect: function (event) {
|
|
18125
|
+
if (shouldKeepOpen) {
|
|
18126
|
+
event.preventDefault();
|
|
16620
18127
|
}
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
useEffect(function () {
|
|
16625
|
-
checkMinHeight();
|
|
16626
|
-
window.addEventListener("resize", checkMinHeight);
|
|
16627
|
-
return function () {
|
|
16628
|
-
window.removeEventListener("resize", checkMinHeight);
|
|
16629
|
-
};
|
|
16630
|
-
}, [minHeights, ArcBreakpoints]);
|
|
16631
|
-
return (React__default.createElement("div", __assign({ style: { minHeight: minHeight ? minHeight : minimumHeight }, className: classNames("arc-InformationCard", {
|
|
16632
|
-
"arc-InformationCard--isALink": cardUrl,
|
|
16633
|
-
"arc-InformationCard--outlined": cardUrl && showHoverState,
|
|
16634
|
-
"arc-InformationCard--onDarkSurface": surface === "dark",
|
|
16635
|
-
}) }, filterAttrs(props)),
|
|
16636
|
-
React__default.createElement(Surface, { growVertically: true, background: "light-white" },
|
|
16637
|
-
React__default.createElement("div", { className: "arc-InformationCard-innerContainer" },
|
|
16638
|
-
image && (React__default.createElement("div", { className: "arc-InformationCard-img" },
|
|
16639
|
-
React__default.createElement(Image, __assign({ alt: "" }, image)))),
|
|
16640
|
-
icon && (React__default.createElement(React__default.Fragment, null,
|
|
16641
|
-
React__default.createElement("div", { className: "arc-InformationCard-icon" },
|
|
16642
|
-
React__default.createElement(Icon$1, { testId: "information-card-icon", icon: icon })))),
|
|
16643
|
-
React__default.createElement("div", { className: "arc-InformationCard-contentContainer" },
|
|
16644
|
-
label && (React__default.createElement(React__default.Fragment, null,
|
|
16645
|
-
React__default.createElement("div", { className: "arc-InformationCard-label" }, label.toUpperCase()))),
|
|
16646
|
-
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
16647
|
-
text && React__default.createElement(Text, null, text)),
|
|
16648
|
-
(button || badges || footerLogo) && (React__default.createElement("div", { className: "arc-InformationCard-footer" },
|
|
16649
|
-
badges && (React__default.createElement(React__default.Fragment, null,
|
|
16650
|
-
React__default.createElement("div", { className: "arc-InformationCard-badgeContainer" }, badges.map(function (_a, i) {
|
|
16651
|
-
var text = _a.text, badgeProps = __rest(_a, ["text"]);
|
|
16652
|
-
return (React__default.createElement("div", { className: "arc-InformationCard-badge", key: "information-card-badge-".concat(i) },
|
|
16653
|
-
React__default.createElement(Badge, __assign({}, badgeProps), text)));
|
|
16654
|
-
})))),
|
|
16655
|
-
React__default.createElement("div", { className: "arc-InformationCard-footerItems" },
|
|
16656
|
-
button && !cardUrl && (React__default.createElement("div", { className: "arc-InformationCard-footerButtonContainer" },
|
|
16657
|
-
React__default.createElement(ButtonV2, __assign({}, button, { size: "m", iconPosition: "beforeText", buttonStyle: "compact", icon: BtIconArrowRight })))),
|
|
16658
|
-
footerLogo && (React__default.createElement("div", { className: "arc-InformationCard-footerLogoContainer" },
|
|
16659
|
-
React__default.createElement(Image, __assign({}, footerLogo)))))))))));
|
|
18128
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
18129
|
+
} }, filterAttrs(props)),
|
|
18130
|
+
React__default.createElement(MenuItemContentTemplate, { leadingIcon: leadingIcon, supportingText: supportingText, trailingIcon: BtIconTickAlt2Px }, children)));
|
|
16660
18131
|
};
|
|
16661
18132
|
|
|
16662
|
-
const BtIconNewWindow = (props) =>
|
|
16663
|
-
/*#__PURE__*/ React__default.createElement(
|
|
16664
|
-
"svg",
|
|
16665
|
-
Object.assign(
|
|
16666
|
-
{
|
|
16667
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16668
|
-
viewBox: "0 0 32 32",
|
|
16669
|
-
},
|
|
16670
|
-
props,
|
|
16671
|
-
),
|
|
16672
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
16673
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16674
|
-
d: "M24.70166,7.01794a.49968.49968,0,0,0-.19092-.03845H17.50586a.5.5,0,0,0,0,1h5.79785l-8.15918,8.15918a.49995.49995,0,1,0,.707.707l8.15918-8.15918v5.77393a.5.5,0,1,0,1,0v-6.981a.50171.50171,0,0,0-.30908-.46155Z",
|
|
16675
|
-
fill: "currentColor",
|
|
16676
|
-
}),
|
|
16677
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16678
|
-
d: "M26.85156,3.99072H5.18359A1.20156,1.20156,0,0,0,3.9834,5.19141V26.89062a1.10362,1.10362,0,0,0,1.10254,1.103H26.85156a1.17979,1.17979,0,0,0,1.17871-1.17871V5.16943A1.17979,1.17979,0,0,0,26.85156,3.99072Zm.17871,22.82422a.17891.17891,0,0,1-.17871.17871H5.08594a.10419.10419,0,0,1-.10254-.103V5.19141a.20069.20069,0,0,1,.20019-.20069h21.668a.17888.17888,0,0,1,.17871.17871Z",
|
|
16679
|
-
fill: "currentColor",
|
|
16680
|
-
}),
|
|
16681
|
-
);
|
|
16682
|
-
|
|
16683
18133
|
/**
|
|
16684
|
-
*
|
|
18134
|
+
* Scrollable container that adjusts height based on surrounding menu content.
|
|
16685
18135
|
*/
|
|
16686
|
-
var
|
|
16687
|
-
var
|
|
16688
|
-
var
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
a: __assign(__assign({}, commonProps), { href: href, title: title, target: target, rel: rel }),
|
|
16704
|
-
button: __assign({}, commonProps),
|
|
16705
|
-
span: __assign({}, commonProps),
|
|
18136
|
+
var MenuScrollable = function (_a) {
|
|
18137
|
+
var children = _a.children;
|
|
18138
|
+
var scrollableRefFunc = function (el) {
|
|
18139
|
+
var totalSiblingHeight = 0;
|
|
18140
|
+
// get the closest Menu.Content element this will always exist within the menu component
|
|
18141
|
+
var contentContainer = el === null || el === void 0 ? void 0 : el.closest(".arc-MenuContent");
|
|
18142
|
+
if (!contentContainer || !el)
|
|
18143
|
+
return;
|
|
18144
|
+
// loop over all children in Menu.Content children to get height of each non scrollable element (excluding the scroll element itself)
|
|
18145
|
+
Array.from(contentContainer.children).forEach(function (child) {
|
|
18146
|
+
if (child !== el) {
|
|
18147
|
+
totalSiblingHeight += child.offsetHeight + 6;
|
|
18148
|
+
}
|
|
18149
|
+
});
|
|
18150
|
+
var availableHeight = "calc(var(--radix-dropdown-menu-content-available-height) - ".concat(totalSiblingHeight, "px - 25px)");
|
|
18151
|
+
el.style.height = "".concat(el.scrollHeight, "px");
|
|
18152
|
+
el.style.maxHeight = availableHeight;
|
|
16706
18153
|
};
|
|
16707
|
-
|
|
16708
|
-
return (React__default.createElement(LinkElement, __assign({}, elementProps[LinkElement], filterAttrs(props)),
|
|
16709
|
-
React__default.createElement("div", { className: "arc-Link-wrapper" },
|
|
16710
|
-
React__default.createElement(VisuallyHidden$2, null,
|
|
16711
|
-
screenReaderText || children,
|
|
16712
|
-
isExternalLink && " (Opens in new window)"),
|
|
16713
|
-
firstText && (React__default.createElement("span", { "aria-hidden": true, className: "arc-Link-text" },
|
|
16714
|
-
firstText,
|
|
16715
|
-
"\u00A0")),
|
|
16716
|
-
React__default.createElement("span", { className: "arc-Link-iconWrapper" },
|
|
16717
|
-
React__default.createElement("span", { "aria-hidden": true, className: "arc-Link-text" }, lastWord),
|
|
16718
|
-
isExternalLink && (React__default.createElement(Icon$1, { isPresentationIcon: true, icon: BtIconNewWindow, size: size === "s" ? 20 : 24 }))))));
|
|
18154
|
+
return (React__default.createElement("div", { ref: scrollableRefFunc, className: "arc-MenuScrollable" }, children));
|
|
16719
18155
|
};
|
|
16720
18156
|
|
|
16721
18157
|
/**
|
|
16722
|
-
*
|
|
18158
|
+
* Visual separator used to divide groups of menu items.
|
|
16723
18159
|
*/
|
|
16724
|
-
var
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
return (React__default.createElement("div", __assign({ className: classNames({
|
|
16728
|
-
"arc-Markup": true,
|
|
16729
|
-
"arc-Markup--measured": isMeasured,
|
|
16730
|
-
"arc-Markup--onDarkSurface": surface === "dark",
|
|
16731
|
-
}) }, filterAttrs(props)), children));
|
|
18160
|
+
var MenuSeparator = function (props) {
|
|
18161
|
+
return (React__default.createElement(Separator2, __assign({ className: "arc-MenuSeparator" }, filterAttrs(props)),
|
|
18162
|
+
React__default.createElement(Rule, null)));
|
|
16732
18163
|
};
|
|
16733
18164
|
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
16738
|
-
|
|
16739
|
-
|
|
16740
|
-
|
|
18165
|
+
/**
|
|
18166
|
+
* Container for submenu content within a dropdown menu.
|
|
18167
|
+
*/
|
|
18168
|
+
var MenuSub = function (_a) {
|
|
18169
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
18170
|
+
return React__default.createElement(Sub2, __assign({}, filterAttrs(props)),
|
|
18171
|
+
" ",
|
|
18172
|
+
children);
|
|
18173
|
+
};
|
|
18174
|
+
|
|
18175
|
+
/**
|
|
18176
|
+
* The submenu content that pops out when a menu item with children is hovered or clicked.
|
|
18177
|
+
*/
|
|
18178
|
+
var MenuSubContent = React__default.forwardRef(function (_a, ref) {
|
|
18179
|
+
var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "alignOffset"]);
|
|
18180
|
+
return (React__default.createElement(SubContent2, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent arc-MenuSubContent", sideOffset: 24, collisionPadding: 12, avoidCollisions: true, alignOffset: alignOffset }, filterAttrs(props)), children));
|
|
16741
18181
|
});
|
|
18182
|
+
|
|
16742
18183
|
/**
|
|
16743
|
-
*
|
|
18184
|
+
* Trigger element that opens a submenu when selected.
|
|
16744
18185
|
*/
|
|
16745
|
-
var
|
|
16746
|
-
var
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
|
|
16751
|
-
|
|
16752
|
-
|
|
16753
|
-
|
|
16754
|
-
|
|
16755
|
-
|
|
16756
|
-
|
|
16757
|
-
|
|
16758
|
-
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16766
|
-
React__default.createElement("div", { className: "arc-MediaCard-content" },
|
|
16767
|
-
label && (React__default.createElement(React__default.Fragment, null,
|
|
16768
|
-
React__default.createElement(Heading, { size: "xxs" }, label.toUpperCase()),
|
|
16769
|
-
React__default.createElement(VerticalSpace, { size: headingSpacing }))),
|
|
16770
|
-
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: media.type !== "video" ? url : undefined, onClick: media.type !== "video" ? onClick : undefined, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
16771
|
-
React__default.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React__default.createElement(React__default.Fragment, null,
|
|
16772
|
-
React__default.createElement(VerticalSpace, { size: headingSpacing }),
|
|
16773
|
-
React__default.createElement(Text, null, text),
|
|
16774
|
-
(url || metaText) && React__default.createElement(VerticalSpace, { size: "24" })))),
|
|
16775
|
-
React__default.createElement(CardFooter, { buttonIcon: buttonIcon, metaText: metaText, showButton: Boolean(url) && media.type !== "video", isHovered: showHoverState })))));
|
|
18186
|
+
var MenuSubTrigger = function (_a) {
|
|
18187
|
+
var children = _a.children, isDisabled = _a.isDisabled, leadingIcon = _a.leadingIcon, supportingText = _a.supportingText, keyCommands = _a.keyCommands, ariaLabel = _a.ariaLabel, props = __rest(_a, ["children", "isDisabled", "leadingIcon", "supportingText", "keyCommands", "ariaLabel"]);
|
|
18188
|
+
return (React__default.createElement(SubTrigger2, __assign({ className: "arc-MenuItem arc-MenuItem--trigger", disabled: isDisabled, "aria-label": ariaLabel }, filterAttrs(props)),
|
|
18189
|
+
React__default.createElement("div", { className: "arc-MenuItem-content" },
|
|
18190
|
+
leadingIcon && (React__default.createElement("div", { className: "arc-MenuItem-leadingIcon" },
|
|
18191
|
+
React__default.createElement(Icon$1, { icon: leadingIcon, size: 24 }))),
|
|
18192
|
+
React__default.createElement("div", { className: "arc-MenuItem-text" },
|
|
18193
|
+
React__default.createElement(Text, { size: "m" }, children),
|
|
18194
|
+
supportingText && React__default.createElement(Text, { size: "xs" }, supportingText))),
|
|
18195
|
+
React__default.createElement("div", { className: "arc-MenuItem-actions" },
|
|
18196
|
+
keyCommands && (React__default.createElement("div", { className: "arc-MenuItem-keyCommands" }, keyCommands)),
|
|
18197
|
+
React__default.createElement("div", { className: "arc-MenuItem-trailingIcon" },
|
|
18198
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRightMid, size: 24 })))));
|
|
18199
|
+
};
|
|
18200
|
+
|
|
18201
|
+
/**
|
|
18202
|
+
* The element that toggles the menu.
|
|
18203
|
+
*/
|
|
18204
|
+
var MenuTrigger = function (_a) {
|
|
18205
|
+
var children = _a.children, asChild = _a.asChild, props = __rest(_a, ["children", "asChild"]);
|
|
18206
|
+
return (React__default.createElement(Trigger$1, __assign({ className: ".arc-MenuItem arc-MenuTrigger", asChild: asChild }, filterAttrs(props)), children));
|
|
16776
18207
|
};
|
|
16777
18208
|
|
|
16778
18209
|
/** Use `Modal` to display information that needs immediate action from a user. */
|
|
16779
18210
|
var Modal = function (_a) {
|
|
16780
|
-
var
|
|
16781
|
-
var _g =
|
|
18211
|
+
var _b;
|
|
18212
|
+
var title = _a.title, description = _a.description, ariaDescribedBy = _a.ariaDescribedBy, isOpen = _a.isOpen, actions = _a.actions, onRequestClose = _a.onRequestClose, children = _a.children, _c = _a.role, role = _c === void 0 ? "dialog" : _c, _d = _a.shouldReturnFocus, shouldReturnFocus = _d === void 0 ? true : _d, _e = _a.isContentScrollable, isContentScrollable = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "l" : _f, _g = _a.fullBleed, fullBleed = _g === void 0 ? false : _g, customWidths = _a.customWidths, props = __rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size", "fullBleed", "customWidths"]);
|
|
18213
|
+
var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
|
|
16782
18214
|
var triggerRef = useRef(null);
|
|
16783
18215
|
var setTriggerElement = function () {
|
|
16784
18216
|
return shouldReturnFocus &&
|
|
@@ -16797,13 +18229,18 @@ var Modal = function (_a) {
|
|
|
16797
18229
|
}
|
|
16798
18230
|
};
|
|
16799
18231
|
return (React__default.createElement("div", { ref: setThemeElement },
|
|
16800
|
-
React__default.createElement(Root$
|
|
16801
|
-
React__default.createElement(Portal$
|
|
18232
|
+
React__default.createElement(Root$3, { open: isOpen },
|
|
18233
|
+
React__default.createElement(Portal$3, { container: themeElement },
|
|
16802
18234
|
React__default.createElement(Overlay, { className: "arc-Modal-overlay" },
|
|
16803
|
-
React__default.createElement(Content$1, __assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: classNames("arc-Modal-dialog",
|
|
16804
|
-
"arc-Modal-dialog--
|
|
16805
|
-
"arc-Modal-dialog--
|
|
16806
|
-
|
|
18235
|
+
React__default.createElement(Content$1, __assign({}, ariaProps, { role: role, onOpenAutoFocus: setTriggerElement, onCloseAutoFocus: focusTriggerElement, onEscapeKeyDown: closeModal, onInteractOutside: closeModal, "aria-modal": "true", className: classNames("arc-Modal-dialog", (_b = {},
|
|
18236
|
+
_b["arc-Modal-dialog--".concat(size)] = !customWidths,
|
|
18237
|
+
_b["arc-Modal-dialog--xs-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.xs)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.xs,
|
|
18238
|
+
_b["arc-Modal-dialog--s-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.s)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.s,
|
|
18239
|
+
_b["arc-Modal-dialog--m-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.m)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.m,
|
|
18240
|
+
_b["arc-Modal-dialog--l-span-".concat(customWidths === null || customWidths === void 0 ? void 0 : customWidths.l)] = customWidths === null || customWidths === void 0 ? void 0 : customWidths.l,
|
|
18241
|
+
_b["arc-Modal-dialog--maxHeightWindow"] = isContentScrollable,
|
|
18242
|
+
_b["arc-Modal-dialog--fullBleed"] = fullBleed,
|
|
18243
|
+
_b)) }, filterAttrs(props)),
|
|
16807
18244
|
React__default.createElement(React__default.Fragment, null,
|
|
16808
18245
|
title && (React__default.createElement(React__default.Fragment, null,
|
|
16809
18246
|
React__default.createElement("div", { className: "arc-Modal-section" },
|
|
@@ -16866,56 +18303,6 @@ var Pagination = function (_a) {
|
|
|
16866
18303
|
React__default.createElement(ThemeIcon, { size: 32, icon: "paginationNext" })))));
|
|
16867
18304
|
};
|
|
16868
18305
|
|
|
16869
|
-
const BtIconFirstMid = (props) =>
|
|
16870
|
-
/*#__PURE__*/ React__default.createElement(
|
|
16871
|
-
"svg",
|
|
16872
|
-
Object.assign(
|
|
16873
|
-
{
|
|
16874
|
-
viewBox: "0 0 16 16",
|
|
16875
|
-
fill: "none",
|
|
16876
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16877
|
-
},
|
|
16878
|
-
props,
|
|
16879
|
-
),
|
|
16880
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16881
|
-
fillRule: "evenodd",
|
|
16882
|
-
clipRule: "evenodd",
|
|
16883
|
-
d: "M4.675 4.00537C5.04779 4.00537 5.35 4.30758 5.35 4.68037V11.3204C5.35 11.6932 5.04779 11.9954 4.675 11.9954C4.30221 11.9954 4 11.6932 4 11.3204V4.68037C4 4.30758 4.30221 4.00537 4.675 4.00537Z",
|
|
16884
|
-
fill: "currentColor",
|
|
16885
|
-
}),
|
|
16886
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16887
|
-
fillRule: "evenodd",
|
|
16888
|
-
clipRule: "evenodd",
|
|
16889
|
-
d: "M7.97265 8.0002L10.8213 10.8522C10.9473 10.9785 11.0181 11.1495 11.0181 11.3279C11.0181 11.5063 10.9473 11.6773 10.8213 11.8036C10.759 11.866 10.6851 11.9155 10.6036 11.9493C10.5222 11.983 10.4349 12.0004 10.3467 12.0004C10.2585 12.0004 10.1712 11.983 10.0897 11.9493C10.0083 11.9155 9.93428 11.866 9.87199 11.8036L6.54799 8.47553C6.42219 8.34932 6.35156 8.17839 6.35156 8.0002C6.35156 7.822 6.42219 7.65107 6.54799 7.52486L9.87199 4.19686C9.93428 4.13446 10.0083 4.08495 10.0897 4.05117C10.1712 4.01738 10.2585 4 10.3467 4C10.4348 4 10.5222 4.01738 10.6036 4.05117C10.6851 4.08495 10.759 4.13446 10.8213 4.19686C10.9473 4.3231 11.0181 4.49417 11.0181 4.67253C11.0181 4.85089 10.9473 5.02196 10.8213 5.1482L7.97265 8.0002Z",
|
|
16890
|
-
fill: "currentColor",
|
|
16891
|
-
}),
|
|
16892
|
-
);
|
|
16893
|
-
|
|
16894
|
-
const BtIconLastMid = (props) =>
|
|
16895
|
-
/*#__PURE__*/ React__default.createElement(
|
|
16896
|
-
"svg",
|
|
16897
|
-
Object.assign(
|
|
16898
|
-
{
|
|
16899
|
-
viewBox: "0 0 16 16",
|
|
16900
|
-
fill: "none",
|
|
16901
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16902
|
-
},
|
|
16903
|
-
props,
|
|
16904
|
-
),
|
|
16905
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16906
|
-
fillRule: "evenodd",
|
|
16907
|
-
clipRule: "evenodd",
|
|
16908
|
-
d: "M10.3406 11.9951C9.96783 11.9951 9.66562 11.6929 9.66562 11.3201V4.68012C9.66562 4.30732 9.96783 4.00512 10.3406 4.00512C10.7134 4.00512 11.0156 4.30732 11.0156 4.68012L11.0156 11.3201C11.0156 11.6929 10.7134 11.9951 10.3406 11.9951Z",
|
|
16909
|
-
fill: "currentColor",
|
|
16910
|
-
}),
|
|
16911
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
16912
|
-
fillRule: "evenodd",
|
|
16913
|
-
clipRule: "evenodd",
|
|
16914
|
-
d: "M7.04297 8.00029L4.19434 5.14832C4.06834 5.02202 3.99754 4.85102 3.99754 4.67262C3.99754 4.49422 4.06834 4.32322 4.19434 4.19692C4.25664 4.13452 4.33054 4.08502 4.41204 4.05122C4.49344 4.01752 4.58074 4.00012 4.66897 4.00012C4.75714 4.00012 4.84445 4.01752 4.9259 4.05122C5.00735 4.08502 5.08134 4.13452 5.14363 4.19692L8.46763 7.52496C8.59343 7.65117 8.66406 7.8221 8.66406 8.00029C8.66406 8.17849 8.59343 8.34942 8.46763 8.47563L5.14363 11.8036C5.08134 11.866 5.00735 11.9155 4.9259 11.9493C4.84445 11.9831 4.75714 12.0005 4.66897 12.0005C4.58084 12.0005 4.49344 11.9831 4.41204 11.9493C4.33054 11.9155 4.25664 11.866 4.19434 11.8036C4.06834 11.6774 3.99754 11.5063 3.99754 11.328C3.99754 11.1496 4.06834 10.9785 4.19434 10.8523L7.04297 8.00029Z",
|
|
16915
|
-
fill: "currentColor",
|
|
16916
|
-
}),
|
|
16917
|
-
);
|
|
16918
|
-
|
|
16919
18306
|
/**
|
|
16920
18307
|
* TODO! Revise method of aligning svg's
|
|
16921
18308
|
*/
|
|
@@ -16965,18 +18352,18 @@ var Popover = function (_a) {
|
|
|
16965
18352
|
var align = _a.align, _b = _a.arrow, arrow = _b === void 0 ? true : _b, _c = _a.background, background = _c === void 0 ? "light" : _c, children = _a.children, content = _a.content, _d = _a.asChild, asChild = _d === void 0 ? false : _d, _e = _a.maxWidth, maxWidth = _e === void 0 ? 452 : _e, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, side = _a.side, _f = _a.sideOffset, sideOffset = _f === void 0 ? 0 : _f, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, props = __rest(_a, ["align", "arrow", "background", "children", "content", "asChild", "maxWidth", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "side", "sideOffset", "zIndex"]);
|
|
16966
18353
|
var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
|
|
16967
18354
|
return (React__default.createElement("div", __assign({ className: "arc-Popover" }, filterAttrs(props)),
|
|
16968
|
-
React__default.createElement(Root2$
|
|
16969
|
-
React__default.createElement(Trigger$
|
|
18355
|
+
React__default.createElement(Root2$3, { open: open, onOpenChange: onOpenChange },
|
|
18356
|
+
React__default.createElement(Trigger$3, { asChild: asChild, className: "arc-Popover-trigger" }, children),
|
|
16970
18357
|
React__default.createElement("div", { ref: setThemeElement },
|
|
16971
|
-
React__default.createElement(Portal$
|
|
18358
|
+
React__default.createElement(Portal$5, { container: themeElement },
|
|
16972
18359
|
React__default.createElement("div", { "data-cy": "z-index", style: { position: "absolute", zIndex: zIndex } },
|
|
16973
|
-
React__default.createElement(Content2$
|
|
18360
|
+
React__default.createElement(Content2$4, { side: side, sideOffset: sideOffset, align: align, alignOffset: align === "start" ? -16 : align === "end" ? -16 : undefined, onOpenAutoFocus: onOpenAutoFocus, onCloseAutoFocus: onCloseAutoFocus, onEscapeKeyDown: onEscapeKeyDown, onPointerDownOutside: onPointerDownOutside, onFocusOutside: onFocusOutside, onInteractOutside: onInteractOutside },
|
|
16974
18361
|
React__default.createElement(Surface, { isTransparent: true, background: background === "light" ? "light-white" : "dark-black" },
|
|
16975
18362
|
React__default.createElement("div", { className: classNames("arc-Popover-content", {
|
|
16976
18363
|
"arc-Popover-content--dark": background === "dark",
|
|
16977
18364
|
"arc-Popover-content--brand": background === "brand",
|
|
16978
|
-
}), style: { maxWidth: maxWidth } },
|
|
16979
|
-
content && (React__default.createElement("div", { className: "arc-Popover-contentNodeItem" }, content)),
|
|
18365
|
+
}), style: { maxWidth: maxWidth }, "aria-labelledby": "popover-content" },
|
|
18366
|
+
content && (React__default.createElement("div", { className: "arc-Popover-contentNodeItem", id: "popover-content" }, content)),
|
|
16980
18367
|
arrow && (React__default.createElement(PopoverArrow, { className: "arc-Popover-arrow" })))))))))));
|
|
16981
18368
|
};
|
|
16982
18369
|
|
|
@@ -17061,36 +18448,151 @@ var ProgressBar = function (_a) {
|
|
|
17061
18448
|
React__default.createElement(ThemeIcon, { icon: PROGRESS_BAR_ICON_MAP[action.icon], size: 24 }))))))))));
|
|
17062
18449
|
};
|
|
17063
18450
|
|
|
18451
|
+
var shorterCssColorNames;
|
|
18452
|
+
var hasRequiredShorterCssColorNames;
|
|
18453
|
+
|
|
18454
|
+
function requireShorterCssColorNames () {
|
|
18455
|
+
if (hasRequiredShorterCssColorNames) return shorterCssColorNames;
|
|
18456
|
+
hasRequiredShorterCssColorNames = 1;
|
|
18457
|
+
shorterCssColorNames = {
|
|
18458
|
+
aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
18459
|
+
azure: /#f0ffff(ff)?(?!\w)/gi,
|
|
18460
|
+
beige: /#f5f5dc(ff)?(?!\w)/gi,
|
|
18461
|
+
bisque: /#ffe4c4(ff)?(?!\w)/gi,
|
|
18462
|
+
black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
|
|
18463
|
+
blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
|
|
18464
|
+
brown: /#a52a2a(ff)?(?!\w)/gi,
|
|
18465
|
+
coral: /#ff7f50(ff)?(?!\w)/gi,
|
|
18466
|
+
cornsilk: /#fff8dc(ff)?(?!\w)/gi,
|
|
18467
|
+
crimson: /#dc143c(ff)?(?!\w)/gi,
|
|
18468
|
+
cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
18469
|
+
darkblue: /#00008b(ff)?(?!\w)/gi,
|
|
18470
|
+
darkcyan: /#008b8b(ff)?(?!\w)/gi,
|
|
18471
|
+
darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
|
|
18472
|
+
darkred: /#8b0000(ff)?(?!\w)/gi,
|
|
18473
|
+
deeppink: /#ff1493(ff)?(?!\w)/gi,
|
|
18474
|
+
dimgrey: /#696969(ff)?(?!\w)/gi,
|
|
18475
|
+
gold: /#ffd700(ff)?(?!\w)/gi,
|
|
18476
|
+
green: /#008000(ff)?(?!\w)/gi,
|
|
18477
|
+
grey: /#808080(ff)?(?!\w)/gi,
|
|
18478
|
+
honeydew: /#f0fff0(ff)?(?!\w)/gi,
|
|
18479
|
+
hotpink: /#ff69b4(ff)?(?!\w)/gi,
|
|
18480
|
+
indigo: /#4b0082(ff)?(?!\w)/gi,
|
|
18481
|
+
ivory: /#fffff0(ff)?(?!\w)/gi,
|
|
18482
|
+
khaki: /#f0e68c(ff)?(?!\w)/gi,
|
|
18483
|
+
lavender: /#e6e6fa(ff)?(?!\w)/gi,
|
|
18484
|
+
lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
|
|
18485
|
+
linen: /#faf0e6(ff)?(?!\w)/gi,
|
|
18486
|
+
maroon: /#800000(ff)?(?!\w)/gi,
|
|
18487
|
+
moccasin: /#ffe4b5(ff)?(?!\w)/gi,
|
|
18488
|
+
navy: /#000080(ff)?(?!\w)/gi,
|
|
18489
|
+
oldlace: /#fdf5e6(ff)?(?!\w)/gi,
|
|
18490
|
+
olive: /#808000(ff)?(?!\w)/gi,
|
|
18491
|
+
orange: /#ffa500(ff)?(?!\w)/gi,
|
|
18492
|
+
orchid: /#da70d6(ff)?(?!\w)/gi,
|
|
18493
|
+
peru: /#cd853f(ff)?(?!\w)/gi,
|
|
18494
|
+
pink: /#ffc0cb(ff)?(?!\w)/gi,
|
|
18495
|
+
plum: /#dda0dd(ff)?(?!\w)/gi,
|
|
18496
|
+
purple: /#800080(ff)?(?!\w)/gi,
|
|
18497
|
+
red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
|
|
18498
|
+
salmon: /#fa8072(ff)?(?!\w)/gi,
|
|
18499
|
+
seagreen: /#2e8b57(ff)?(?!\w)/gi,
|
|
18500
|
+
seashell: /#fff5ee(ff)?(?!\w)/gi,
|
|
18501
|
+
sienna: /#a0522d(ff)?(?!\w)/gi,
|
|
18502
|
+
silver: /#c0c0c0(ff)?(?!\w)/gi,
|
|
18503
|
+
skyblue: /#87ceeb(ff)?(?!\w)/gi,
|
|
18504
|
+
snow: /#fffafa(ff)?(?!\w)/gi,
|
|
18505
|
+
tan: /#d2b48c(ff)?(?!\w)/gi,
|
|
18506
|
+
teal: /#008080(ff)?(?!\w)/gi,
|
|
18507
|
+
thistle: /#d8bfd8(ff)?(?!\w)/gi,
|
|
18508
|
+
tomato: /#ff6347(ff)?(?!\w)/gi,
|
|
18509
|
+
violet: /#ee82ee(ff)?(?!\w)/gi,
|
|
18510
|
+
wheat: /#f5deb3(ff)?(?!\w)/gi,
|
|
18511
|
+
white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi,
|
|
18512
|
+
};
|
|
18513
|
+
return shorterCssColorNames;
|
|
18514
|
+
}
|
|
18515
|
+
|
|
18516
|
+
var miniSvgDataUri;
|
|
18517
|
+
var hasRequiredMiniSvgDataUri;
|
|
18518
|
+
|
|
18519
|
+
function requireMiniSvgDataUri () {
|
|
18520
|
+
if (hasRequiredMiniSvgDataUri) return miniSvgDataUri;
|
|
18521
|
+
hasRequiredMiniSvgDataUri = 1;
|
|
18522
|
+
var shorterNames = requireShorterCssColorNames();
|
|
18523
|
+
var REGEX = {
|
|
18524
|
+
whitespace: /\s+/g,
|
|
18525
|
+
urlHexPairs: /%[\dA-F]{2}/g,
|
|
18526
|
+
quotes: /"/g,
|
|
18527
|
+
};
|
|
18528
|
+
|
|
18529
|
+
function collapseWhitespace(str) {
|
|
18530
|
+
return str.trim().replace(REGEX.whitespace, ' ');
|
|
18531
|
+
}
|
|
18532
|
+
|
|
18533
|
+
function dataURIPayload(string) {
|
|
18534
|
+
return encodeURIComponent(string)
|
|
18535
|
+
.replace(REGEX.urlHexPairs, specialHexEncode);
|
|
18536
|
+
}
|
|
18537
|
+
|
|
18538
|
+
// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than
|
|
18539
|
+
// their equivalent URL-encoded hex codes.
|
|
18540
|
+
function colorCodeToShorterNames(string) {
|
|
18541
|
+
Object.keys(shorterNames).forEach(function(key) {
|
|
18542
|
+
if (shorterNames[key].test(string)) {
|
|
18543
|
+
string = string.replace(shorterNames[key], key);
|
|
18544
|
+
}
|
|
18545
|
+
});
|
|
18546
|
+
|
|
18547
|
+
return string;
|
|
18548
|
+
}
|
|
18549
|
+
|
|
18550
|
+
function specialHexEncode(match) {
|
|
18551
|
+
switch (match) { // Browsers tolerate these characters, and they're frequent
|
|
18552
|
+
case '%20': return ' ';
|
|
18553
|
+
case '%3D': return '=';
|
|
18554
|
+
case '%3A': return ':';
|
|
18555
|
+
case '%2F': return '/';
|
|
18556
|
+
default: return match.toLowerCase(); // compresses better
|
|
18557
|
+
}
|
|
18558
|
+
}
|
|
18559
|
+
|
|
18560
|
+
function svgToTinyDataUri(svgString) {
|
|
18561
|
+
if (typeof svgString !== 'string') {
|
|
18562
|
+
throw new TypeError('Expected a string, but received ' + typeof svgString);
|
|
18563
|
+
}
|
|
18564
|
+
// Strip the Byte-Order Mark if the SVG has one
|
|
18565
|
+
if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1); }
|
|
18566
|
+
|
|
18567
|
+
var body = colorCodeToShorterNames(collapseWhitespace(svgString))
|
|
18568
|
+
.replace(REGEX.quotes, "'");
|
|
18569
|
+
return 'data:image/svg+xml,' + dataURIPayload(body);
|
|
18570
|
+
}
|
|
18571
|
+
|
|
18572
|
+
svgToTinyDataUri.toSrcset = function toSrcset(svgString) {
|
|
18573
|
+
return svgToTinyDataUri(svgString).replace(/ /g, '%20');
|
|
18574
|
+
};
|
|
18575
|
+
|
|
18576
|
+
miniSvgDataUri = svgToTinyDataUri;
|
|
18577
|
+
return miniSvgDataUri;
|
|
18578
|
+
}
|
|
18579
|
+
|
|
18580
|
+
var miniSvgDataUriExports = requireMiniSvgDataUri();
|
|
18581
|
+
var svgToMiniDataURI = /*@__PURE__*/getDefaultExportFromCjs(miniSvgDataUriExports);
|
|
18582
|
+
|
|
17064
18583
|
// src/capitalise-first-letter/capitalise-first-letter.ts
|
|
17065
18584
|
var capitaliseFirstLetter = (word) => {
|
|
17066
18585
|
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
17067
18586
|
};
|
|
17068
18587
|
|
|
17069
|
-
var Error$1 =
|
|
17070
|
-
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
17071
|
-
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" })),
|
|
17072
|
-
React__default.createElement("defs", null,
|
|
17073
|
-
React__default.createElement("clipPath", { id: "a" },
|
|
17074
|
-
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
18588
|
+
var Error$1 = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <g clipPath=\"url(#a)\">\n <path\n 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\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <rect width=\"24\" height=\"24\" rx=\"12\" />\n </clipPath>\n </defs>\n </svg>\n ";
|
|
17075
18589
|
|
|
17076
|
-
var Warning =
|
|
17077
|
-
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" }))); };
|
|
18590
|
+
var Warning = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path\n 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\"\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\".3\"\n />\n </svg>\n";
|
|
17078
18591
|
|
|
17079
|
-
var Complete =
|
|
17080
|
-
React__default.createElement("g", { clipPath: "url(#a)" },
|
|
17081
|
-
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" })),
|
|
17082
|
-
React__default.createElement("defs", null,
|
|
17083
|
-
React__default.createElement("clipPath", null,
|
|
17084
|
-
React__default.createElement("rect", { width: "24", height: "24", rx: "12" }))))); };
|
|
18592
|
+
var Complete = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <g clipPath=\"url(#a)\">\n <path\n 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\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath>\n <rect width=\"24\" height=\"24\" rx=\"12\" />\n </clipPath>\n </defs>\n </svg>\n ";
|
|
17085
18593
|
|
|
17086
|
-
var Current =
|
|
17087
|
-
React__default.createElement("circle", { cx: "12", cy: "12", r: "7", fill: "currentColor" }),
|
|
17088
|
-
React__default.createElement("defs", null,
|
|
17089
|
-
React__default.createElement("linearGradient", { id: "paint0_linear_1_1050", x1: "36.6036", y1: "-4.31391e-07", x2: "-12.6036", y2: "24", gradientUnits: "userSpaceOnUse" },
|
|
17090
|
-
React__default.createElement("stop", { stopColor: "#F200F5" }),
|
|
17091
|
-
React__default.createElement("stop", { offset: "1", stopColor: "#1EC8E6" }))))); };
|
|
18594
|
+
var Current = "\n <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"currentColor\" />\n <defs>\n <linearGradient\n id=\"paint0_linear_1_1050\"\n x1=\"36.6036\"\n y1=\"-4.31391e-07\"\n x2=\"-12.6036\"\n y2=\"24\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#F200F5\" />\n <stop offset=\"1\" stopColor=\"#1EC8E6\" />\n </linearGradient>\n </defs>\n </svg>\n ";
|
|
17092
18595
|
|
|
17093
|
-
// export current step as an icon
|
|
17094
18596
|
var ProgressStepperItem = function (_a) {
|
|
17095
18597
|
var _b;
|
|
17096
18598
|
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, invertLabelPosition = _a.invertLabelPosition, 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", "invertLabelPosition", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden"]);
|
|
@@ -17105,6 +18607,7 @@ var ProgressStepperItem = function (_a) {
|
|
|
17105
18607
|
event.preventDefault();
|
|
17106
18608
|
onClick && onClick();
|
|
17107
18609
|
};
|
|
18610
|
+
var statusIcon = statusIcons[status];
|
|
17108
18611
|
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
|
|
17109
18612
|
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
17110
18613
|
"arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
|
|
@@ -17117,7 +18620,7 @@ var ProgressStepperItem = function (_a) {
|
|
|
17117
18620
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
|
|
17118
18621
|
React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
|
|
17119
18622
|
"arc-ProgressStepperItem-statusIcon--small": size === "small",
|
|
17120
|
-
}) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon$1, { icon:
|
|
18623
|
+
}) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon$1, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))))),
|
|
17121
18624
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
17122
18625
|
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 },
|
|
17123
18626
|
title,
|
|
@@ -17271,38 +18774,6 @@ var RadioGroupInput = forwardRef(function (_a, ref) {
|
|
|
17271
18774
|
return (React__default.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, labelSize: labelSize, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value }, props)));
|
|
17272
18775
|
});
|
|
17273
18776
|
|
|
17274
|
-
/**
|
|
17275
|
-
* Use `Rule` to display a horizontal or vertical rule.
|
|
17276
|
-
*/
|
|
17277
|
-
var Rule = function (_a, props) {
|
|
17278
|
-
var _b;
|
|
17279
|
-
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
17280
|
-
var surface = useContext(Context$3).surface;
|
|
17281
|
-
return (React__default.createElement("hr", __assign({ className: classNames((_b = {
|
|
17282
|
-
"arc-Rule": true
|
|
17283
|
-
},
|
|
17284
|
-
_b["arc-Rule--".concat(orientation)] = true,
|
|
17285
|
-
_b["arc-Rule--onDarkSurface"] = surface === "dark",
|
|
17286
|
-
_b)) }, filterAttrs(props))));
|
|
17287
|
-
};
|
|
17288
|
-
|
|
17289
|
-
const BtIconArrowAltUp = (props) =>
|
|
17290
|
-
/*#__PURE__*/ React__default.createElement(
|
|
17291
|
-
"svg",
|
|
17292
|
-
Object.assign(
|
|
17293
|
-
{
|
|
17294
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17295
|
-
viewBox: "0 0 32 32",
|
|
17296
|
-
},
|
|
17297
|
-
props,
|
|
17298
|
-
),
|
|
17299
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
17300
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
17301
|
-
d: "M20.35352,13.14648,16,8.793l-4.35352,4.35352a.49995.49995,0,0,0,.707.707L15.5,10.707V22.5a.5.5,0,0,0,1,0V10.707l3.14648,3.14648a.49995.49995,0,0,0,.707-.707Z",
|
|
17302
|
-
fill: "currentColor",
|
|
17303
|
-
}),
|
|
17304
|
-
);
|
|
17305
|
-
|
|
17306
18777
|
/**
|
|
17307
18778
|
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
17308
18779
|
*/
|
|
@@ -17379,9 +18850,9 @@ var Select = function (_a) {
|
|
|
17379
18850
|
}
|
|
17380
18851
|
};
|
|
17381
18852
|
return (React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", isDisabled: isDisabled, disclosureText: disclosureText, disclosureTitle: disclosureTitle, onClickDisclosure: onClickDisclosure },
|
|
17382
|
-
React__default.createElement(Root2$
|
|
18853
|
+
React__default.createElement(Root2$2, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectValue, open: open, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
|
|
17383
18854
|
React__default.createElement("div", { ref: setThemeElement, className: "arc-Select-wrapper" },
|
|
17384
|
-
React__default.createElement(Trigger$
|
|
18855
|
+
React__default.createElement(Trigger$2, __assign({ id: id, name: name, onBlur: onBlur, onFocus: onFocus, "aria-label": ariaLabel, style: { width: width, marginTop: hideLabel ? 0 : undefined }, className: classNames("arc-Select-trigger", (_b = {
|
|
17385
18856
|
"arc-Select-trigger--constrained": !isFluid,
|
|
17386
18857
|
"arc-Select-trigger--onDarkSurface": surface === "dark",
|
|
17387
18858
|
"arc-Select-trigger--invalid": errorMessage
|
|
@@ -17391,19 +18862,19 @@ var Select = function (_a) {
|
|
|
17391
18862
|
React__default.createElement(Value, { className: "arc-Select-triggerText", placeholder: placeholder, "aria-label": getSelectedValueName(uncontrolledValue) }),
|
|
17392
18863
|
React__default.createElement(Icon, { className: "arc-Select-triggerIcon" },
|
|
17393
18864
|
React__default.createElement(ThemeIcon, { size: getIconSize(selectSize), icon: "selectTrigger" }))),
|
|
17394
|
-
React__default.createElement(Portal$
|
|
17395
|
-
React__default.createElement(Content2$
|
|
18865
|
+
React__default.createElement(Portal$4, { container: themeElement },
|
|
18866
|
+
React__default.createElement(Content2$3, { sideOffset: 5, position: "popper", className: classNames("arc-Select-content", {
|
|
17396
18867
|
"arc-Select-content--onDarkSurface": surface === "dark",
|
|
17397
18868
|
}) },
|
|
17398
18869
|
React__default.createElement(ScrollUpButton, { className: "arc-Select-scrollButton" },
|
|
17399
18870
|
React__default.createElement(ThemeIcon, { size: 16, icon: "selectScrollUp" })),
|
|
17400
18871
|
React__default.createElement(Viewport, null, options.map(function (_a, i) {
|
|
17401
18872
|
var name = _a.name, value = _a.value;
|
|
17402
|
-
return (React__default.createElement(Item, { className: "arc-Select-item", key: "select-item-".concat(i), value: value },
|
|
18873
|
+
return (React__default.createElement(Item$1, { className: "arc-Select-item", key: "select-item-".concat(i), value: value },
|
|
17403
18874
|
React__default.createElement("div", { className: "arc-Select-itemTextWrapper" },
|
|
17404
18875
|
React__default.createElement(ItemText, { asChild: true },
|
|
17405
18876
|
React__default.createElement("span", { className: "arc-Select-itemText" }, name))),
|
|
17406
|
-
React__default.createElement(ItemIndicator, null,
|
|
18877
|
+
React__default.createElement(ItemIndicator$1, null,
|
|
17407
18878
|
React__default.createElement(ThemeIcon, { size: 20, icon: "selectIndicator" }))));
|
|
17408
18879
|
})),
|
|
17409
18880
|
React__default.createElement(ScrollDownButton, { className: "arc-Select-scrollButton" },
|
|
@@ -17438,13 +18909,95 @@ var SiteFooterItemGroup = function (_a) {
|
|
|
17438
18909
|
React__default.createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
17439
18910
|
React__default.createElement("span", { className: "arc-SiteFooter-icon" },
|
|
17440
18911
|
React__default.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
|
|
17441
|
-
React__default.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
|
|
17442
|
-
React__default.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
|
|
18912
|
+
React__default.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
|
|
18913
|
+
React__default.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
|
|
18914
|
+
};
|
|
18915
|
+
var SiteFooterItem = function (_a) {
|
|
18916
|
+
var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
|
|
18917
|
+
return (React__default.createElement("li", __assign({ className: "arc-SiteFooter-item" }, filterAttrs(props)),
|
|
18918
|
+
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooter-link", href: href }, children)));
|
|
18919
|
+
};
|
|
18920
|
+
|
|
18921
|
+
/**
|
|
18922
|
+
* Use `SiteFooterV2` to display information at the bottom of a page.
|
|
18923
|
+
*/
|
|
18924
|
+
var SiteFooterV2 = function (_a) {
|
|
18925
|
+
var children = _a.children, slogan = _a.slogan, _b = _a.hideTopBorder, hideTopBorder = _b === void 0 ? false : _b, props = __rest(_a, ["children", "slogan", "hideTopBorder"]);
|
|
18926
|
+
var surface = useContext(Context$3).surface;
|
|
18927
|
+
return (React__default.createElement("footer", __assign({ className: classNames("arc-SiteFooterV2", {
|
|
18928
|
+
"arc-SiteFooterV2--onDarkSurface": surface === "dark",
|
|
18929
|
+
}) }, filterAttrs(props)),
|
|
18930
|
+
!hideTopBorder && React__default.createElement(Rule, null),
|
|
18931
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
18932
|
+
React__default.createElement(Section, null,
|
|
18933
|
+
slogan && (React__default.createElement(React__default.Fragment, null,
|
|
18934
|
+
React__default.createElement("h2", { className: "arc-SiteFooterV2-slogan" }, slogan),
|
|
18935
|
+
React__default.createElement(VerticalSpace, { size: "32" }))),
|
|
18936
|
+
React__default.createElement("div", { className: "arc-SiteFooterV2-main-utility" }, children)),
|
|
18937
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
18938
|
+
" "));
|
|
18939
|
+
};
|
|
18940
|
+
|
|
18941
|
+
/**
|
|
18942
|
+
* Do not edit directly
|
|
18943
|
+
* Generated on Mon, 19 May 2025 14:54:16 GMT
|
|
18944
|
+
*/
|
|
18945
|
+
var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
|
|
18946
|
+
|
|
18947
|
+
var SiteFooterV2Main = function (_a) {
|
|
18948
|
+
var children = _a.children, _b = _a.columns, columns = _b === void 0 ? 4 : _b, props = __rest(_a, ["children", "columns"]);
|
|
18949
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
18950
|
+
return (React__default.createElement("nav", __assign({ className: "arc-SiteFooterV2-main ".concat(isMinWidthArcBreakpointL &&
|
|
18951
|
+
columns === 3 &&
|
|
18952
|
+
"arc-SiteFooterV2-main-3Columns"), "aria-label": "Footer navigation links" }, filterAttrs(props)), children));
|
|
18953
|
+
};
|
|
18954
|
+
var SiteFooterV2ItemGroup = function (_a) {
|
|
18955
|
+
var children = _a.children, title = _a.title, _b = _a.hideDisclosure, hideDisclosure = _b === void 0 ? false : _b, props = __rest(_a, ["children", "title", "hideDisclosure"]);
|
|
18956
|
+
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsM, ")"));
|
|
18957
|
+
return (React__default.createElement("details", __assign({ open: isMinWidthArcBreakpointM, className: classNames("arc-SiteFooterV2-disclosure", {
|
|
18958
|
+
"arc-SiteFooterV2-disclosure--hidden": !isMinWidthArcBreakpointM && hideDisclosure,
|
|
18959
|
+
}), "aria-label": title }, filterAttrs(props)),
|
|
18960
|
+
React__default.createElement("summary", { className: "arc-SiteFooterV2-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
18961
|
+
React__default.createElement("span", { className: "arc-SiteFooterV2-icon" },
|
|
18962
|
+
React__default.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
|
|
18963
|
+
React__default.createElement("h2", { className: "arc-SiteFooterV2-itemGroupTitle" }, title)),
|
|
18964
|
+
React__default.createElement("ul", { className: "arc-SiteFooterV2-itemGroup" }, children)));
|
|
17443
18965
|
};
|
|
17444
|
-
var
|
|
18966
|
+
var SiteFooterV2Item = function (_a) {
|
|
17445
18967
|
var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
|
|
17446
|
-
return (React__default.createElement("li", __assign({ className: "arc-
|
|
17447
|
-
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-
|
|
18968
|
+
return (React__default.createElement("li", __assign({ className: "arc-SiteFooterV2-item" }, filterAttrs(props)),
|
|
18969
|
+
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooterV2-link", href: href }, children)));
|
|
18970
|
+
};
|
|
18971
|
+
|
|
18972
|
+
/**
|
|
18973
|
+
* Use `SiteFooterV2.Utility` to display information at the bottom of a page.
|
|
18974
|
+
*/
|
|
18975
|
+
var SiteFooterV2Utility = function (_a) {
|
|
18976
|
+
var copyrightYear = _a.copyrightYear, children = _a.children, socialLinks = _a.socialLinks, _b = _a.brand, brand = _b === void 0 ? {
|
|
18977
|
+
logoLabel: "BT",
|
|
18978
|
+
} : _b, contentSlot = _a.contentSlot, props = __rest(_a, ["copyrightYear", "children", "socialLinks", "brand", "contentSlot"]);
|
|
18979
|
+
return (React__default.createElement("div", __assign({ className: "arc-SiteFooterV2-utility", "aria-label": "Footer utility bar" }, filterAttrs(props)),
|
|
18980
|
+
React__default.createElement("div", { className: "arc-SiteFooterV2-brand" },
|
|
18981
|
+
!contentSlot && (React__default.createElement(React__default.Fragment, null,
|
|
18982
|
+
React__default.createElement("a", { className: "arc-SiteFooterV2-brandLogo", onClick: handleLinkClick({ handler: brand.onClick }) },
|
|
18983
|
+
React__default.createElement(BrandLogo, { label: brand.logoLabel, "aria-label": brand.logoLabel, color: "brand", subBrand: brand.subBrand })),
|
|
18984
|
+
React__default.createElement("div", { className: "arc-SiteFooterV2-copyright" },
|
|
18985
|
+
React__default.createElement("span", { className: "arc-SiteFooterV2-copyrightSymbol" }, "\u00A9"),
|
|
18986
|
+
" ",
|
|
18987
|
+
brand.logoLabel,
|
|
18988
|
+
" ",
|
|
18989
|
+
isDate(copyrightYear) ? (React__default.createElement("time", { dateTime: format(copyrightYear, "yyyy") }, format(copyrightYear, "yyyy"))) : (React__default.createElement("span", null, copyrightYear)),
|
|
18990
|
+
!copyrightYear && "".concat(new Date().getFullYear())))),
|
|
18991
|
+
contentSlot && (React__default.createElement("div", { className: "arc-SiteFooterV2-contentSlot" }, contentSlot))),
|
|
18992
|
+
children && (React__default.createElement("nav", { "aria-label": "Footer utility links" },
|
|
18993
|
+
React__default.createElement("ul", { className: "arc-SiteFooterV2-utilityItems" }, children))),
|
|
18994
|
+
socialLinks && (React__default.createElement("ul", { className: "arc-SiteFooterV2-utilitySocials", "aria-label": "Footer social media links" }, socialLinks.map(function (_a, index) {
|
|
18995
|
+
var href = _a.href, icon = _a.icon, ariaLabel = _a.ariaLabel;
|
|
18996
|
+
return (React__default.createElement("li", { key: index, tabIndex: 0, className: "arc-SiteFooterV2-utilitySocialsLink", "aria-label": ariaLabel },
|
|
18997
|
+
React__default.createElement("a", { className: "arc-SiteFooterV2-link", href: href, tabIndex: -1 },
|
|
18998
|
+
React__default.createElement(Icon$1, { icon: icon, size: 16 }),
|
|
18999
|
+
" ")));
|
|
19000
|
+
})))));
|
|
17448
19001
|
};
|
|
17449
19002
|
|
|
17450
19003
|
var SiteHeaderV2MenuButton = function (_a) {
|
|
@@ -17538,11 +19091,11 @@ var SiteHeaderV2 = function (_a) {
|
|
|
17538
19091
|
React__default.createElement("button", { className: "arc-SiteHeaderV2-mobileLogin", onClick: loginOnClick },
|
|
17539
19092
|
loginTitle,
|
|
17540
19093
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
17541
|
-
React__default.createElement(
|
|
19094
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRight2Px }))))) : (React__default.createElement("div", { className: "arc-SiteHeaderV2-mobileButtonContainer" },
|
|
17542
19095
|
React__default.createElement("a", { className: "arc-SiteHeaderV2-mobileLogin", href: loginHref },
|
|
17543
19096
|
loginTitle,
|
|
17544
19097
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
17545
|
-
React__default.createElement(
|
|
19098
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRight2Px })))))))))),
|
|
17546
19099
|
(basket || hasLogin || search) && (React__default.createElement("div", { className: "arc-SiteHeaderV2-secondary" },
|
|
17547
19100
|
search ? (React__default.createElement("div", { className: "arc-SiteHeaderV2-search" }, search)) : null,
|
|
17548
19101
|
basket ? (React__default.createElement("div", { className: "arc-SiteHeaderV2-basket" }, basket)) : null,
|
|
@@ -17568,7 +19121,7 @@ var SiteHeaderV2Item = function (_a) {
|
|
|
17568
19121
|
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteHeaderV2Item-link", href: href, role: "menuitem" },
|
|
17569
19122
|
children,
|
|
17570
19123
|
React__default.createElement("span", { className: "arc-SiteHeaderV2Item-linkIcon" },
|
|
17571
|
-
React__default.createElement(
|
|
19124
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRightMid })))));
|
|
17572
19125
|
};
|
|
17573
19126
|
|
|
17574
19127
|
var SiteHeaderV2ItemGroup = function (_a) {
|
|
@@ -17583,7 +19136,7 @@ var SiteHeaderV2ItemGroup = function (_a) {
|
|
|
17583
19136
|
handler: onClick,
|
|
17584
19137
|
}), className: "arc-SiteHeaderV2ItemGroup-title", href: href }, children)); }, fallback: function (children) { return (React__default.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-title" }, children)); } }, title),
|
|
17585
19138
|
React__default.createElement("span", { className: "arc-SiteHeaderV2ItemGroup-titleIcon" },
|
|
17586
|
-
React__default.createElement(
|
|
19139
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRightMid })))) : (React__default.createElement("div", { className: "arc-SiteHeaderV2ItemGroup-title" }, title))),
|
|
17587
19140
|
React__default.createElement("span", { className: "arc-SiteHeaderV2ItemGroup-subtitle" }, subtitle))) : null,
|
|
17588
19141
|
React__default.createElement("ul", { className: "arc-SiteHeaderV2ItemGroup-items", role: "menubar" },
|
|
17589
19142
|
children,
|
|
@@ -17600,7 +19153,7 @@ var SiteHeaderV2BackButton = function (_a) {
|
|
|
17600
19153
|
setOpenPanelOnFirstClick(false);
|
|
17601
19154
|
} },
|
|
17602
19155
|
React__default.createElement("span", { className: "arc-SiteHeaderV2BackButton-icon" },
|
|
17603
|
-
React__default.createElement(
|
|
19156
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronLeft2Px })),
|
|
17604
19157
|
React__default.createElement("span", { className: "arc-SiteHeaderV2BackButton-text" }, "Back")));
|
|
17605
19158
|
};
|
|
17606
19159
|
|
|
@@ -17788,7 +19341,7 @@ var SiteHeaderV2NavItem = function (_a) {
|
|
|
17788
19341
|
_d["arc-SiteHeaderV2NavItem-link--itemHasChildren-hasFirstPanel"] = opensFirstWithPanel,
|
|
17789
19342
|
_d)) }, title),
|
|
17790
19343
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
17791
|
-
React__default.createElement(
|
|
19344
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRight2Px })),
|
|
17792
19345
|
subTitle && !isPrimary && isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: classNames((_e = {},
|
|
17793
19346
|
_e["arc-SiteHeaderV2NavItemWithSubNav-text"] = !isPrimary,
|
|
17794
19347
|
_e["arc-SiteHeaderV2NavItem-link--itemHasChildren-closeFirstPanel"] = !isPrimary && !opensFirstWithPanel,
|
|
@@ -17932,7 +19485,7 @@ var SiteHeaderV2NavItemWithSubNav = function (_a) {
|
|
|
17932
19485
|
_d["arc-SiteHeaderV2NavItem-link--itemHasChildren-primary"] = isPrimary,
|
|
17933
19486
|
_d)) }, title),
|
|
17934
19487
|
React__default.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
17935
|
-
React__default.createElement(
|
|
19488
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRight2Px })),
|
|
17936
19489
|
subTitle && !isPrimary && isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: classNames((_e = {},
|
|
17937
19490
|
_e["arc-SiteHeaderV2NavItemWithSubNav-text"] = !isPrimary,
|
|
17938
19491
|
_e["arc-SiteHeaderV2NavItem-link--itemHasChildren-closeFirstPanel"] = !isPrimary && !opensFirstWithPanel,
|
|
@@ -17989,9 +19542,9 @@ var SiteHeaderV2SubNavItem = function (_a) {
|
|
|
17989
19542
|
var linkTitle = (React__default.createElement(React__default.Fragment, null,
|
|
17990
19543
|
React__default.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkTitle" }, title),
|
|
17991
19544
|
children && panelOpen && (React__default.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkIcon" },
|
|
17992
|
-
React__default.createElement(
|
|
19545
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRight2Px }))),
|
|
17993
19546
|
children && !isMinWidthArcBreakpointL && (React__default.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkIcon" },
|
|
17994
|
-
React__default.createElement(
|
|
19547
|
+
React__default.createElement(Icon$1, { icon: BtIconChevronRight2Px }))),
|
|
17995
19548
|
subTitle ? (React__default.createElement("span", { className: "arc-SiteHeaderV2SubNavItem-linkSubTitle" }, subTitle)) : null));
|
|
17996
19549
|
return (React__default.createElement("li", __assign({ className: classNames((_b = {},
|
|
17997
19550
|
_b["arc-SiteHeaderV2SubNavItem"] = true,
|
|
@@ -18224,7 +19777,7 @@ const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07b
|
|
|
18224
19777
|
|
|
18225
19778
|
/** Use `Switch` to allow users to immediately toggle between two states. */
|
|
18226
19779
|
var Switch = function (_a) {
|
|
18227
|
-
var defaultChecked = _a.defaultChecked
|
|
19780
|
+
var defaultChecked = _a.defaultChecked, onCheckedChange = _a.onCheckedChange, label = _a.label, _b = _a.labelPosition, labelPosition = _b === void 0 ? "top" : _b, name = _a.name, onBlur = _a.onBlur, value = _a.value, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, errorMessage = _a.errorMessage, id = _a.id, _d = _a.labelSize, labelSize = _d === void 0 ? "s" : _d, onStatusText = _a.onStatusText, offStatusText = _a.offStatusText, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, ariaLabel = _a.ariaLabel, props = __rest(_a, ["defaultChecked", "onCheckedChange", "label", "labelPosition", "name", "onBlur", "value", "isDisabled", "errorMessage", "id", "labelSize", "onStatusText", "offStatusText", "hideLabel", "ariaLabel"]);
|
|
18228
19781
|
var _f = useState(defaultChecked), switchState = _f[0], setSwitchState = _f[1];
|
|
18229
19782
|
var surface = useContext(Context$3).surface;
|
|
18230
19783
|
if (!onStatusText) {
|
|
@@ -18233,8 +19786,9 @@ var Switch = function (_a) {
|
|
|
18233
19786
|
if (!offStatusText) {
|
|
18234
19787
|
offStatusText = onStatusText;
|
|
18235
19788
|
}
|
|
18236
|
-
var onCheckedHandler = function () {
|
|
19789
|
+
var onCheckedHandler = function (checked) {
|
|
18237
19790
|
setSwitchState(function (previous) { return !previous; });
|
|
19791
|
+
onCheckedChange && onCheckedChange(checked);
|
|
18238
19792
|
};
|
|
18239
19793
|
return (React__default.createElement(FormControl, { errorMessage: errorMessage, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, labelPosition: labelPosition, requirementStatus: "not-applicable" },
|
|
18240
19794
|
!hideLabel && React__default.createElement(VerticalSpace, { size: "8" }),
|
|
@@ -18256,6 +19810,39 @@ var Switch = function (_a) {
|
|
|
18256
19810
|
React__default.createElement(Text, { size: labelSize, "aria-hidden": true }, switchState ? onStatusText : offStatusText))))));
|
|
18257
19811
|
};
|
|
18258
19812
|
|
|
19813
|
+
var TabbedBanner = function (_a) {
|
|
19814
|
+
var _b;
|
|
19815
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
19816
|
+
var initialTab = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value;
|
|
19817
|
+
var _c = useState(initialTab), selectedTab = _c[0], setSelectedTab = _c[1];
|
|
19818
|
+
var _d = useState(window.innerWidth < parseInt(ArcSizeBreakpointsM)), isBelowArcSizeBreakpointsM = _d[0], SetIsBelowArcSizeBreakpointsM = _d[1];
|
|
19819
|
+
var handleResize = debounce(function () {
|
|
19820
|
+
SetIsBelowArcSizeBreakpointsM(window.innerWidth < parseInt(ArcSizeBreakpointsM));
|
|
19821
|
+
}, 100);
|
|
19822
|
+
useEffect(function () {
|
|
19823
|
+
handleResize();
|
|
19824
|
+
window.addEventListener("resize", handleResize);
|
|
19825
|
+
return function () { return window.removeEventListener("resize", handleResize); };
|
|
19826
|
+
}, [isBelowArcSizeBreakpointsM]);
|
|
19827
|
+
return (React__default.createElement("div", { className: "arc-TabbedBanner" }, !isBelowArcSizeBreakpointsM ? (React__default.createElement("div", null,
|
|
19828
|
+
React__default.createElement(ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
19829
|
+
React__default.createElement(ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
|
|
19830
|
+
var label = _a.label, value = _a.value;
|
|
19831
|
+
return (React__default.createElement(ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
19832
|
+
})),
|
|
19833
|
+
tabs.map(function (_a, index) {
|
|
19834
|
+
var value = _a.value, content = _a.content;
|
|
19835
|
+
return (React__default.createElement(ContentSwitcherContent, { value: value, key: index },
|
|
19836
|
+
React__default.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: true, minHeight: minHeight }, content))));
|
|
19837
|
+
})))) : (React__default.createElement("div", null,
|
|
19838
|
+
React__default.createElement(ContentSwitcherDropdown, { value: selectedTab, tabs: tabs, isInset: true, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
19839
|
+
var value = _a.value, content = _a.content;
|
|
19840
|
+
return (React__default.createElement(ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
|
|
19841
|
+
React__default.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: !(window.innerHeight < parseInt(ArcSizeBreakpointsM) &&
|
|
19842
|
+
content.type === "contained"), minHeight: minHeightM }, content))));
|
|
19843
|
+
}))))));
|
|
19844
|
+
};
|
|
19845
|
+
|
|
18259
19846
|
/** Use `Tabs` to allow users to navigate between different sections of relevant content. */
|
|
18260
19847
|
var Tabs = function (_a) {
|
|
18261
19848
|
var children = _a.children, defaultValue = _a.defaultValue, onValueChange = _a.onValueChange, activationMode = _a.activationMode, props = __rest(_a, ["children", "defaultValue", "onValueChange", "activationMode"]);
|
|
@@ -18329,77 +19916,6 @@ var TabsList = function (_a) {
|
|
|
18329
19916
|
}), ref: tabsRef, "aria-label": ariaLabel }, filterAttrs(props)), children)));
|
|
18330
19917
|
};
|
|
18331
19918
|
|
|
18332
|
-
var TabbedBanner = function (_a) {
|
|
18333
|
-
var _b;
|
|
18334
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
18335
|
-
var initialTab = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value;
|
|
18336
|
-
var _c = useState(initialTab), selectedTab = _c[0], setSelectedTab = _c[1];
|
|
18337
|
-
var _d = useState(window.innerWidth < parseInt(ArcSizeBreakpointsM)), isBelowArcSizeBreakpointsM = _d[0], SetIsBelowArcSizeBreakpointsM = _d[1];
|
|
18338
|
-
var handleResize = debounce(function () {
|
|
18339
|
-
SetIsBelowArcSizeBreakpointsM(window.innerWidth < parseInt(ArcSizeBreakpointsM));
|
|
18340
|
-
}, 100);
|
|
18341
|
-
useEffect(function () {
|
|
18342
|
-
handleResize();
|
|
18343
|
-
window.addEventListener("resize", handleResize);
|
|
18344
|
-
return function () { return window.removeEventListener("resize", handleResize); };
|
|
18345
|
-
}, [isBelowArcSizeBreakpointsM]);
|
|
18346
|
-
return (React__default.createElement("div", { className: "arc-TabbedBanner" }, !isBelowArcSizeBreakpointsM ? (React__default.createElement("div", null,
|
|
18347
|
-
React__default.createElement(ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
18348
|
-
React__default.createElement(ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
|
|
18349
|
-
var label = _a.label, value = _a.value;
|
|
18350
|
-
return (React__default.createElement(ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
18351
|
-
})),
|
|
18352
|
-
tabs.map(function (_a, index) {
|
|
18353
|
-
var value = _a.value, content = _a.content;
|
|
18354
|
-
return (React__default.createElement(ContentSwitcherContent, { value: value, key: index },
|
|
18355
|
-
React__default.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: true, minHeight: minHeight }, content))));
|
|
18356
|
-
})))) : (React__default.createElement("div", null,
|
|
18357
|
-
React__default.createElement(ContentSwitcherDropdown, { value: selectedTab, tabs: tabs, isInset: true, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
18358
|
-
var value = _a.value, content = _a.content;
|
|
18359
|
-
return (React__default.createElement(ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
|
|
18360
|
-
React__default.createElement(TemplateBanner, __assign({ alignment: "start", headingSize: "m", additionalTopMargin: !(window.innerHeight < parseInt(ArcSizeBreakpointsM) &&
|
|
18361
|
-
content.type === "contained"), minHeight: minHeightM }, content))));
|
|
18362
|
-
}))))));
|
|
18363
|
-
};
|
|
18364
|
-
|
|
18365
|
-
const BtIconCross = (props) =>
|
|
18366
|
-
/*#__PURE__*/ React__default.createElement(
|
|
18367
|
-
"svg",
|
|
18368
|
-
Object.assign(
|
|
18369
|
-
{
|
|
18370
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18371
|
-
viewBox: "0 0 32 32",
|
|
18372
|
-
},
|
|
18373
|
-
props,
|
|
18374
|
-
),
|
|
18375
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
18376
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
18377
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
18378
|
-
fill: "currentColor",
|
|
18379
|
-
}),
|
|
18380
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
18381
|
-
d: "M20.85352,11.14648a.49983.49983,0,0,0-.707,0L16,15.293l-4.14648-4.14649a.5.5,0,0,0-.707.707L15.293,16l-4.14649,4.14648a.5.5,0,1,0,.707.707L16,16.707l4.14648,4.14649a.5.5,0,0,0,.707-.707L16.707,16l4.14649-4.14648A.49983.49983,0,0,0,20.85352,11.14648Z",
|
|
18382
|
-
fill: "currentColor",
|
|
18383
|
-
}),
|
|
18384
|
-
);
|
|
18385
|
-
|
|
18386
|
-
const BtIconCrossFill = (props) =>
|
|
18387
|
-
/*#__PURE__*/ React__default.createElement(
|
|
18388
|
-
"svg",
|
|
18389
|
-
Object.assign(
|
|
18390
|
-
{
|
|
18391
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18392
|
-
viewBox: "0 0 32 32",
|
|
18393
|
-
},
|
|
18394
|
-
props,
|
|
18395
|
-
),
|
|
18396
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
18397
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
18398
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.85352,18.14648a.5.5,0,1,1-.707.707L16,16.707l-4.14648,4.14649a.5.5,0,0,1-.707-.707L15.293,16l-4.14649-4.14648a.5.5,0,0,1,.707-.707L16,15.293l4.14648-4.14649a.5.5,0,0,1,.707.707L16.707,16Z",
|
|
18399
|
-
fill: "currentColor",
|
|
18400
|
-
}),
|
|
18401
|
-
);
|
|
18402
|
-
|
|
18403
19919
|
/**
|
|
18404
19920
|
* Use `Tag` to promote features and manage filtering.
|
|
18405
19921
|
*/
|
|
@@ -18456,6 +19972,13 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
18456
19972
|
onChange && onChange(e);
|
|
18457
19973
|
setCharacterCount(e.target.value.length);
|
|
18458
19974
|
};
|
|
19975
|
+
// Although this is used within FormControlWrapper, it's deterministic so we can call it here too
|
|
19976
|
+
var ariaDescribedby = useAriaDescribedby({
|
|
19977
|
+
errorMessage: errorMessage,
|
|
19978
|
+
id: id,
|
|
19979
|
+
helper: helper,
|
|
19980
|
+
disclosureText: disclosureText,
|
|
19981
|
+
}).ariaDescribedby;
|
|
18459
19982
|
return (React__default.createElement(FormControl, __assign({ errorMessage: errorMessage, helper: helper, htmlFor: id, isDisabled: isDisabled, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", disclosureTitle: disclosureTitle, disclosureText: disclosureText, onClickDisclosure: onClickDisclosure, supplementaryInfo: maxLength &&
|
|
18460
19983
|
showCharacterCount && (React__default.createElement(React__default.Fragment, null,
|
|
18461
19984
|
React__default.createElement(Text, { tone: isDisabled ? "muted" : "default" },
|
|
@@ -18465,7 +19988,7 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
18465
19988
|
maxLength,
|
|
18466
19989
|
" characters",
|
|
18467
19990
|
characterCount === maxLength && (React__default.createElement(VisuallyHidden$2, null, "Maximum characters reached")))))) }, filterAttrs(props)),
|
|
18468
|
-
React__default.createElement("textarea",
|
|
19991
|
+
React__default.createElement("textarea", { id: id, className: classNames("arc-TextArea", {
|
|
18469
19992
|
"arc-TextArea--noResize": resize !== "manual",
|
|
18470
19993
|
"arc-TextArea--onDarkSurface": surface === "dark",
|
|
18471
19994
|
"arc-TextArea--invalid": errorMessage,
|
|
@@ -18474,14 +19997,14 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
18474
19997
|
maxHeight: maxHeight,
|
|
18475
19998
|
minHeight: minHeight,
|
|
18476
19999
|
marginTop: hideLabel ? 0 : undefined,
|
|
18477
|
-
}, "aria-describedby":
|
|
20000
|
+
}, "aria-describedby": ariaDescribedby, autoComplete: autoComplete })));
|
|
18478
20001
|
});
|
|
18479
20002
|
|
|
18480
20003
|
// package.json
|
|
18481
20004
|
var package_default = {
|
|
18482
20005
|
name: "@arc-ui/helpers",
|
|
18483
20006
|
private: true,
|
|
18484
|
-
version: "12.0.0-beta.
|
|
20007
|
+
version: "12.0.0-beta.18",
|
|
18485
20008
|
type: "module",
|
|
18486
20009
|
homepage: "https://ui.digital-ent-int.bt.com",
|
|
18487
20010
|
author: "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
@@ -18544,6 +20067,19 @@ var Theme = function (_a) {
|
|
|
18544
20067
|
};
|
|
18545
20068
|
var themes = ["bt-enterprise", "bt-business", "ee"];
|
|
18546
20069
|
|
|
20070
|
+
var ThumbnailSignpost = function (_a) {
|
|
20071
|
+
var text = _a.text, title = _a.title, img = _a.img, button = _a.button, props = __rest(_a, ["text", "title", "img", "button"]);
|
|
20072
|
+
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
20073
|
+
return (React__default.createElement("div", __assign({ className: "arc-ThumbnailSignpost" }, filterAttrs(props)),
|
|
20074
|
+
(img === null || img === void 0 ? void 0 : img.src) && (React__default.createElement("div", { className: "arc-ThumbnailSignpost-image" },
|
|
20075
|
+
React__default.createElement(Image, __assign({}, img)))),
|
|
20076
|
+
React__default.createElement("div", { className: "arc-ThumbnailSignpost-content" },
|
|
20077
|
+
React__default.createElement(Heading, { size: isMinWidthArcBreakpointS ? "s" : "xs" }, title),
|
|
20078
|
+
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
20079
|
+
text,
|
|
20080
|
+
React__default.createElement(ButtonV2, __assign({ buttonStyle: "compact", icon: BtIconArrowRight }, button)))));
|
|
20081
|
+
};
|
|
20082
|
+
|
|
18547
20083
|
/**
|
|
18548
20084
|
* Listens for when the escape key is down
|
|
18549
20085
|
*/ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
|
|
@@ -24050,7 +25586,7 @@ var VideoPlayer = function (_a) {
|
|
|
24050
25586
|
onError: onError,
|
|
24051
25587
|
onEnded: onEnded,
|
|
24052
25588
|
playIcon: (React__default.createElement("div", { className: "arc-VideoPlayer-icon" },
|
|
24053
|
-
React__default.createElement(Icon$1, {
|
|
25589
|
+
React__default.createElement(Icon$1, { icon: BtIconPlayFill }))),
|
|
24054
25590
|
playing: Boolean(light),
|
|
24055
25591
|
controls: true,
|
|
24056
25592
|
className: "arc-VideoPlayer",
|
|
@@ -24104,119 +25640,6 @@ var Visible = function (_a) {
|
|
|
24104
25640
|
}) }, filterAttrs(props)), children));
|
|
24105
25641
|
};
|
|
24106
25642
|
|
|
24107
|
-
var ThumbnailSignpost = function (_a) {
|
|
24108
|
-
var text = _a.text, title = _a.title, img = _a.img, button = _a.button, props = __rest(_a, ["text", "title", "img", "button"]);
|
|
24109
|
-
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
24110
|
-
return (React__default.createElement("div", __assign({ className: "arc-ThumbnailSignpost" }, filterAttrs(props)),
|
|
24111
|
-
(img === null || img === void 0 ? void 0 : img.src) && (React__default.createElement("div", { className: "arc-ThumbnailSignpost-image" },
|
|
24112
|
-
React__default.createElement(Image, __assign({}, img)))),
|
|
24113
|
-
React__default.createElement("div", { className: "arc-ThumbnailSignpost-content" },
|
|
24114
|
-
React__default.createElement(Heading, { size: isMinWidthArcBreakpointS ? "s" : "xs" }, title),
|
|
24115
|
-
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
24116
|
-
text,
|
|
24117
|
-
React__default.createElement(ButtonV2, __assign({ buttonStyle: "compact", icon: BtIconArrowRight }, button)))));
|
|
24118
|
-
};
|
|
24119
|
-
|
|
24120
|
-
var HorizontalCard = function (_a) {
|
|
24121
|
-
var text = _a.text, heading = _a.heading, headingLevel = _a.headingLevel, img = _a.img, metaText = _a.metaText, url = _a.url, onClick = _a.onClick, props = __rest(_a, ["text", "heading", "headingLevel", "img", "metaText", "url", "onClick"]);
|
|
24122
|
-
var _b = useState(false), showHoverState = _b[0], setShowHoverState = _b[1];
|
|
24123
|
-
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
24124
|
-
return (React__default.createElement("div", __assign({ className: classNames("arc-HorizontalCard", {
|
|
24125
|
-
"arc-HorizontalCard--outlined": (url || onclick) && showHoverState,
|
|
24126
|
-
}) }, filterAttrs(props)),
|
|
24127
|
-
(img === null || img === void 0 ? void 0 : img.src) && (React__default.createElement("div", { className: "arc-HorizontalCard-image" },
|
|
24128
|
-
React__default.createElement(Image, __assign({ fit: "cover", anchor: "C" }, img)))),
|
|
24129
|
-
React__default.createElement("div", { className: "arc-HorizontalCard-content" },
|
|
24130
|
-
React__default.createElement(VerticalSpace, { size: "12" }),
|
|
24131
|
-
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
24132
|
-
React__default.createElement(VerticalSpace, { size: "12" }),
|
|
24133
|
-
React__default.createElement(Text, null, text),
|
|
24134
|
-
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
24135
|
-
React__default.createElement(CardFooter, { metaText: metaText, buttonIcon: "arrow", isHovered: showHoverState, buttonSize: "s" }))));
|
|
24136
|
-
};
|
|
24137
|
-
|
|
24138
|
-
/**
|
|
24139
|
-
* Use `SiteFooterV2` to display information at the bottom of a page.
|
|
24140
|
-
*/
|
|
24141
|
-
var SiteFooterV2 = function (_a) {
|
|
24142
|
-
var children = _a.children, slogan = _a.slogan, props = __rest(_a, ["children", "slogan"]);
|
|
24143
|
-
var surface = useContext(Context$3).surface;
|
|
24144
|
-
return (React__default.createElement("footer", __assign({ className: classNames("arc-SiteFooterV2", {
|
|
24145
|
-
"arc-SiteFooterV2--onDarkSurface": surface === "dark",
|
|
24146
|
-
}) }, filterAttrs(props)),
|
|
24147
|
-
React__default.createElement(Rule, null),
|
|
24148
|
-
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
24149
|
-
React__default.createElement(Section, null,
|
|
24150
|
-
slogan && (React__default.createElement(React__default.Fragment, null,
|
|
24151
|
-
React__default.createElement("h2", { className: "arc-SiteFooterV2-slogan" }, slogan),
|
|
24152
|
-
React__default.createElement(VerticalSpace, { size: "32" }))),
|
|
24153
|
-
React__default.createElement("div", { className: "arc-SiteFooterV2-main-utility" }, children)),
|
|
24154
|
-
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
24155
|
-
" "));
|
|
24156
|
-
};
|
|
24157
|
-
|
|
24158
|
-
/**
|
|
24159
|
-
* Do not edit directly
|
|
24160
|
-
* Generated on Thu, 06 Mar 2025 14:17:53 GMT
|
|
24161
|
-
*/
|
|
24162
|
-
var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
|
|
24163
|
-
|
|
24164
|
-
var SiteFooterV2Main = function (_a) {
|
|
24165
|
-
var children = _a.children, _b = _a.columns, columns = _b === void 0 ? 4 : _b, props = __rest(_a, ["children", "columns"]);
|
|
24166
|
-
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
24167
|
-
return (React__default.createElement("nav", __assign({ className: "arc-SiteFooterV2-main ".concat(isMinWidthArcBreakpointL &&
|
|
24168
|
-
columns === 3 &&
|
|
24169
|
-
"arc-SiteFooterV2-main-3Columns"), "aria-label": "Footer navigation links" }, filterAttrs(props)), children));
|
|
24170
|
-
};
|
|
24171
|
-
var SiteFooterV2ItemGroup = function (_a) {
|
|
24172
|
-
var children = _a.children, title = _a.title, _b = _a.hideDisclosure, hideDisclosure = _b === void 0 ? false : _b, props = __rest(_a, ["children", "title", "hideDisclosure"]);
|
|
24173
|
-
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(SemSizeBreakpointsM, ")"));
|
|
24174
|
-
return (React__default.createElement("details", __assign({ open: isMinWidthArcBreakpointM, className: classNames("arc-SiteFooterV2-disclosure", {
|
|
24175
|
-
"arc-SiteFooterV2-disclosure--hidden": !isMinWidthArcBreakpointM && hideDisclosure,
|
|
24176
|
-
}), "aria-label": title }, filterAttrs(props)),
|
|
24177
|
-
React__default.createElement("summary", { className: "arc-SiteFooterV2-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
24178
|
-
React__default.createElement("span", { className: "arc-SiteFooterV2-icon" },
|
|
24179
|
-
React__default.createElement(ThemeIcon, { icon: "siteFooterExpand" })),
|
|
24180
|
-
React__default.createElement("h2", { className: "arc-SiteFooterV2-itemGroupTitle" }, title)),
|
|
24181
|
-
React__default.createElement("ul", { className: "arc-SiteFooterV2-itemGroup" }, children)));
|
|
24182
|
-
};
|
|
24183
|
-
var SiteFooterV2Item = function (_a) {
|
|
24184
|
-
var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
|
|
24185
|
-
return (React__default.createElement("li", __assign({ className: "arc-SiteFooterV2-item" }, filterAttrs(props)),
|
|
24186
|
-
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooterV2-link", href: href }, children)));
|
|
24187
|
-
};
|
|
24188
|
-
|
|
24189
|
-
/**
|
|
24190
|
-
* Use `SiteFooterV2.Utility` to display information at the bottom of a page.
|
|
24191
|
-
*/
|
|
24192
|
-
var SiteFooterV2Utility = function (_a) {
|
|
24193
|
-
var copyrightYear = _a.copyrightYear, children = _a.children, socialLinks = _a.socialLinks, _b = _a.brand, brand = _b === void 0 ? {
|
|
24194
|
-
logoLabel: "BT",
|
|
24195
|
-
} : _b, contentSlot = _a.contentSlot, props = __rest(_a, ["copyrightYear", "children", "socialLinks", "brand", "contentSlot"]);
|
|
24196
|
-
return (React__default.createElement("div", __assign({ className: "arc-SiteFooterV2-utility", "aria-label": "Footer utility bar" }, filterAttrs(props)),
|
|
24197
|
-
React__default.createElement("div", { className: "arc-SiteFooterV2-brand" },
|
|
24198
|
-
!contentSlot && (React__default.createElement(React__default.Fragment, null,
|
|
24199
|
-
React__default.createElement("a", { className: "arc-SiteFooterV2-brandLogo", onClick: handleLinkClick({ handler: brand.onClick }) },
|
|
24200
|
-
React__default.createElement(BrandLogo, { label: brand.logoLabel, "aria-label": brand.logoLabel, color: "brand", subBrand: brand.subBrand })),
|
|
24201
|
-
React__default.createElement("div", { className: "arc-SiteFooterV2-copyright" },
|
|
24202
|
-
React__default.createElement("span", { className: "arc-SiteFooterV2-copyrightSymbol" }, "\u00A9"),
|
|
24203
|
-
" ",
|
|
24204
|
-
brand.logoLabel,
|
|
24205
|
-
" ",
|
|
24206
|
-
isDate(copyrightYear) ? (React__default.createElement("time", { dateTime: format(copyrightYear, "yyyy") }, format(copyrightYear, "yyyy"))) : (React__default.createElement("span", null, copyrightYear)),
|
|
24207
|
-
!copyrightYear && "".concat(new Date().getFullYear())))),
|
|
24208
|
-
contentSlot && (React__default.createElement("div", { className: "arc-SiteFooterV2-contentSlot" }, contentSlot))),
|
|
24209
|
-
children && (React__default.createElement("nav", { "aria-label": "Footer utility links" },
|
|
24210
|
-
React__default.createElement("ul", { className: "arc-SiteFooterV2-utilityItems" }, children))),
|
|
24211
|
-
socialLinks && (React__default.createElement("ul", { className: "arc-SiteFooterV2-utilitySocials", "aria-label": "Footer social media links" }, socialLinks.map(function (_a, index) {
|
|
24212
|
-
var href = _a.href, icon = _a.icon, ariaLabel = _a.ariaLabel;
|
|
24213
|
-
return (React__default.createElement("li", { key: index, tabIndex: 0, className: "arc-SiteFooterV2-utilitySocialsLink", "aria-label": ariaLabel },
|
|
24214
|
-
React__default.createElement("a", { className: "arc-SiteFooterV2-link", href: href, tabIndex: -1 },
|
|
24215
|
-
React__default.createElement(Icon$1, { icon: icon, size: 16 }),
|
|
24216
|
-
" ")));
|
|
24217
|
-
})))));
|
|
24218
|
-
};
|
|
24219
|
-
|
|
24220
25643
|
var Preview_1;
|
|
24221
25644
|
var hasRequiredPreview;
|
|
24222
25645
|
|
|
@@ -24371,5 +25794,5 @@ var Preview$1 = /*#__PURE__*/_mergeNamespaces({
|
|
|
24371
25794
|
default: Preview
|
|
24372
25795
|
}, [PreviewExports]);
|
|
24373
25796
|
|
|
24374
|
-
export { Alert, Align, AppButton, Avatar, AvatarGroup, Badge, Banner, Box, BrandLogo, colors as BrandLogoColors, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, Button, ButtonGroup, ButtonV2, Calendar, Carousel, Checkbox, Columns, ColumnsCol, ComboBox, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, ContentSwitcherList, ContentSwitcherTab, DATE_FORMAT, DatePicker, Disclosure, DisclosureMini, Download, Drawer, Elevation, Filter, FilterControl, FilterControls, FilterItem, FilterItems, FormControl, Context$2 as FormControlContext, Grid, GridCol, GridRow, Group, GroupItem, Heading, HeroBanner, HeroButton, Hidden, HorizontalCard, Icon$1 as Icon, colors$1 as IconColors, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, ImageSource, ImpactCard, InformationCard, Link, Markup, MediaCard, Modal, Pagination, PaginationSimple, Popover, Poster, PosterImage, PosterVideo, ProgressBar, ProgressStepper, ProgressStepperItem, RadioCardGroup, RadioCardGroupInput, RadioGroup, RadioGroupButton, RadioGroupInput, Rule, ScrollToTop, Section, Select, SiteFooter, SiteFooterItem, SiteFooterItemGroup, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, SkipLink, SkipLinkItem, Spinner, Surface, Context$3 as SurfaceContext, Switch, TabbedBanner, Tabs, TabsContent, TabsItem, TabsList, Tag, TemplateBanner, Text, TextArea, TextInput, Theme, ThemeIcon, ThumbnailSignpost, Toast, ToastNotification, Tooltip, Truncate, TypographyCard, UniversalHeader, UniversalHeaderItem, VerticalSpace, VideoPlayer, Visible, VisuallyHidden$2 as VisuallyHidden, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery };
|
|
25797
|
+
export { Alert, Align, AppButton, Avatar, AvatarGroup, Badge, Banner, Box, BrandLogo, colors as BrandLogoColors, Breadcrumbs, BreadcrumbsItem, BreadcrumbsLink, Button, ButtonGroup, ButtonV2, Calendar, Carousel, Checkbox, Columns, ColumnsCol, ComboBox, ContentSwitcher, ContentSwitcherContent, ContentSwitcherDropdown, ContentSwitcherDropdownContent, ContentSwitcherList, ContentSwitcherTab, DATE_FORMAT, DatePicker, Disclosure, DisclosureMini, Download, Drawer, Elevation, Filter, FilterControl, FilterControls, FilterItem, FilterItems, FormControl, Context$2 as FormControlContext, GhostedHeroBanner, GradientBackground, Grid, GridCol, GridRow, Group$1 as Group, GroupItem, Heading, HeroBanner, HeroButton, Hidden, HorizontalCard, Icon$1 as Icon, colors$1 as IconColors, Image, fitOptions as ImageFitOptions, overlayOptions as ImageOverlayOptions, ImageSource, ImpactCard, InformationCard, Link, Markup, MediaCard, Menu, MenuCheckboxItem, MenuContent, MenuFooter, MenuGroup, MenuHeader, MenuItem, MenuItemContentTemplate, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuScrollable, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, MenuTrigger, Modal, Pagination, PaginationSimple, Popover, Poster, PosterImage, PosterVideo, ProgressBar, ProgressStepper, ProgressStepperItem, RadioCardGroup, RadioCardGroupInput, RadioGroup, RadioGroupButton, RadioGroupInput, Rule, ScrollToTop, Section, Select, SiteFooter, SiteFooterItem, SiteFooterItemGroup, SiteFooterV2, SiteFooterV2Item, SiteFooterV2ItemGroup, SiteFooterV2Main, SiteFooterV2Utility, SiteHeaderV2, SiteHeaderV2Column, SiteHeaderV2Item, SiteHeaderV2ItemGroup, SiteHeaderV2NavItem, SiteHeaderV2NavItemWithSubNav, SiteHeaderV2NodeItem, SiteHeaderV2SubNavItem, SiteHeaderV2VerticalDivider, Skeleton, SkipLink, SkipLinkItem, Spinner, Surface, Context$3 as SurfaceContext, Switch, TabbedBanner, Tabs, TabsContent, TabsItem, TabsList, Tag, TemplateBanner, Text, TextArea, TextInput, Theme, ThemeIcon, ThumbnailSignpost, Toast, ToastNotification, Tooltip, Truncate, TypographyCard, UniversalHeader, UniversalHeaderItem, VerticalSpace, VideoPlayer, Visible, VisuallyHidden$2 as VisuallyHidden, backgrounds, backgroundsBT, isDateValid, isRangeValid, loadingOptions, parseDateString, parseRangeString, themes, useMediaQuery };
|
|
24375
25798
|
//# sourceMappingURL=index.mjs.map
|