@arc-ui/components 12.1.0 → 13.0.0
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/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 +3 -3
- package/lib/Banner/Banner.mjs +3 -3
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +6 -6
- package/lib/Breadcrumbs/Breadcrumbs.mjs +6 -6
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/Button.cjs +1 -1
- package/lib/Button/Button.mjs +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/ButtonGroup.cjs +6 -3
- package/lib/ButtonGroup/ButtonGroup.mjs +6 -3
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/ButtonV2.cjs +1 -1
- package/lib/ButtonV2/ButtonV2.mjs +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +5 -5
- package/lib/Calendar/Calendar.mjs +5 -5
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/CardHeading.cjs +1 -1
- package/lib/CardHeading/CardHeading.mjs +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/Checkbox.cjs +7 -7
- package/lib/Checkbox/Checkbox.mjs +8 -8
- package/lib/Checkbox/styles.css +1 -1
- package/lib/CheckboxIcon/CheckboxIcon.cjs +1 -1
- package/lib/CheckboxIcon/CheckboxIcon.mjs +1 -1
- package/lib/CheckboxIcon/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +13 -13
- package/lib/ComboBox/ComboBox.mjs +14 -14
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.mjs +4 -4
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +7 -7
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +7 -7
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +16 -16
- package/lib/DatePicker/DatePicker.mjs +17 -17
- 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 +36 -28
- package/lib/Drawer/Drawer.mjs +36 -28
- 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 +2 -2
- package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +2 -2
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +2 -2
- package/lib/GradientPageBackground/GradientPageBackground.mjs +2 -2
- package/lib/GradientPageBackground/styles.css +1 -1
- 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 +3 -3
- package/lib/HeroBanner/HeroBanner.mjs +3 -3
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +3 -3
- package/lib/HeroButton/HeroButton.mjs +4 -4
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/HorizontalCard.cjs +1 -1
- package/lib/HorizontalCard/HorizontalCard.mjs +1 -1
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/ImpactCard.cjs +4 -4
- package/lib/ImpactCard/ImpactCard.mjs +4 -4
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +6 -6
- package/lib/InformationCard/InformationCard.mjs +6 -6
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +5 -5
- package/lib/MediaCard/MediaCard.mjs +5 -5
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +17 -16
- package/lib/Menu/Menu.mjs +17 -16
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/Modal.cjs +7 -7
- package/lib/Modal/Modal.mjs +7 -7
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +17 -17
- package/lib/NavigationHeader/NavigationHeader.mjs +18 -18
- package/lib/NavigationHeader/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- 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/ProgressBar.cjs +2 -2
- package/lib/ProgressBar/ProgressBar.mjs +2 -2
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +1 -1
- package/lib/ProgressStepper/ProgressStepper.mjs +1 -1
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +4 -4
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +5 -5
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +6 -6
- package/lib/RadioCardGroup/RadioCardGroup.mjs +7 -7
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/RadioGroup.cjs +6 -6
- package/lib/RadioGroup/RadioGroup.mjs +7 -7
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/Rule.cjs +1 -1
- package/lib/Rule/Rule.mjs +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +1 -1
- package/lib/ScrollToTop/ScrollToTop.mjs +1 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/Select.cjs +6 -6
- package/lib/Select/Select.mjs +6 -6
- package/lib/Select/styles.css +1 -1
- package/lib/SemanticHeading/styles.css +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.mjs +1 -1
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +9 -6
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +9 -6
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/SkipLink.cjs +2 -2
- package/lib/SkipLink/SkipLink.mjs +3 -3
- 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.mjs +1 -1
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +9 -9
- package/lib/TabbedBanner/TabbedBanner.mjs +12 -12
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.mjs +3 -3
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +1 -1
- package/lib/TemplateBanner/TemplateBanner.mjs +1 -1
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +3 -3
- package/lib/TextArea/TextArea.mjs +4 -4
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/TextInput.cjs +4 -4
- package/lib/TextInput/TextInput.mjs +4 -4
- 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 +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/Toast.mjs +2 -2
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +3 -3
- package/lib/Tooltip/Tooltip.mjs +3 -3
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +4 -4
- package/lib/TypographyCard/TypographyCard.mjs +4 -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 +3 -3
- package/lib/VideoPlayer/VideoPlayer.mjs +3 -3
- 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/{Button-BN4jUsg5.cjs → Button-CrevzrTg.cjs} +3 -3
- package/lib/_shared/cjs/{ButtonV2-bUu36xW8.cjs → ButtonV2-CxyploaQ.cjs} +3 -3
- package/lib/_shared/cjs/{Calendar-D_jZ0cgf.cjs → Calendar-CdLn9iv6.cjs} +6 -6
- package/lib/_shared/cjs/{CardHeading-lGy1u6eD.cjs → CardHeading-C84m67_F.cjs} +2 -2
- package/lib/_shared/cjs/{CheckboxIcon-BTkdXfpp.cjs → CheckboxIcon-BzY1S_ud.cjs} +6 -5
- package/lib/_shared/cjs/{Combination-6m6aOXZq.cjs → Combination-Cm62lfyr.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherDropdown-BLXyhXVS.cjs → ContentSwitcherDropdown-6IGRpV54.cjs} +2 -2
- package/lib/_shared/cjs/{ContentSwitcherList-DgychllS.cjs → ContentSwitcherList-Di7RS8ue.cjs} +20 -9
- package/lib/_shared/cjs/{Popover-CYcqjefw.cjs → Popover-BtvRErpC.cjs} +7 -4
- package/lib/_shared/cjs/{ProgressStepper-mTgKZYEl.cjs → ProgressStepper-Cs6vX7Th.cjs} +3 -3
- package/lib/_shared/cjs/{Rule-jmvOpci7.cjs → Rule-essaguo_.cjs} +2 -2
- package/lib/_shared/cjs/{TemplateBanner-CzDAL0lq.cjs → TemplateBanner-DyXBKuMw.cjs} +2 -2
- package/lib/_shared/cjs/{TextInput-BHzuoI7E.cjs → TextInput-C_K2PLf5.cjs} +6 -6
- package/lib/_shared/cjs/{Tooltip-CEb7YEP2.cjs → Tooltip-CdmWvrnr.cjs} +2 -2
- package/lib/_shared/cjs/{arc-breakpoints-DFPoWNR4.cjs → arc-breakpoints-uADxN-b4.cjs} +1 -1
- package/lib/_shared/cjs/{index-BGGFOAAx.cjs → index-BBDa9gnQ.cjs} +2 -2
- package/lib/_shared/cjs/{index-D9onmVh5.cjs → index-BDUrOKEW.cjs} +3 -3
- package/lib/_shared/cjs/{index-CklPiHsS.cjs → index-B_WZUATb.cjs} +2 -2
- package/lib/_shared/cjs/{index-B11wQrRa.cjs → index-BdJeAKfz.cjs} +1 -1
- package/lib/_shared/cjs/{index-CDVpHNP8.cjs → index-Dgn0408w.cjs} +4 -4
- package/lib/_shared/cjs/{index-DXNM3D1d.cjs → index-DlWZZNwu.cjs} +2 -2
- package/lib/_shared/cjs/{index-BWfgSvRQ.cjs → index-DsqYRMfM.cjs} +4 -4
- package/lib/_shared/cjs/{index-KrMgv4q_.cjs → index-WO7l1Mfx.cjs} +3 -3
- package/lib/_shared/cjs/{index.es-B2ZfX2D7.cjs → index.es-BAsay4oe.cjs} +1 -1
- package/lib/_shared/esm/{Button-DTiOFT9M.mjs → Button-Benn9Qop.mjs} +4 -4
- package/lib/_shared/esm/{ButtonV2-ByW5P8Hq.mjs → ButtonV2-CgjYgfZA.mjs} +4 -4
- package/lib/_shared/esm/{Calendar-wG6UVDgO.mjs → Calendar-CzFIMyD1.mjs} +7 -7
- package/lib/_shared/esm/{CardHeading-CfPEEmBO.mjs → CardHeading-CV14vmox.mjs} +2 -2
- package/lib/_shared/esm/{CheckboxIcon-BcVQe6mC.mjs → CheckboxIcon-CzRn1j8X.mjs} +6 -5
- package/lib/_shared/esm/{Combination-BQ4XBtF-.mjs → Combination-BW0YAEZD.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherDropdown-ckPG4pry.mjs → ContentSwitcherDropdown-CwoMd63a.mjs} +2 -2
- package/lib/_shared/esm/{ContentSwitcherList-CWZcMblg.mjs → ContentSwitcherList-Bvp9Zl85.mjs} +22 -11
- package/lib/_shared/esm/{Popover-BHCEpLSa.mjs → Popover-DRQSgAog.mjs} +7 -4
- package/lib/_shared/esm/{ProgressStepper-DxZrJR0q.mjs → ProgressStepper-DTPHHVFe.mjs} +4 -4
- package/lib/_shared/esm/{Rule-I1w3EaZi.mjs → Rule-Bz3QPezk.mjs} +3 -3
- package/lib/_shared/esm/{TemplateBanner-CZSTdma0.mjs → TemplateBanner-BPzuH5bz.mjs} +2 -2
- package/lib/_shared/esm/{TextInput-CZaNXVHl.mjs → TextInput-BCvKXfM_.mjs} +8 -8
- package/lib/_shared/esm/{Tooltip-BpSzN3Tx.mjs → Tooltip-DY8nS1to.mjs} +2 -2
- package/lib/_shared/esm/{arc-breakpoints-TEKN0W5t.mjs → arc-breakpoints-ChQgbftE.mjs} +1 -1
- package/lib/_shared/esm/{index-u47CK8Y0.mjs → index-B3ewsmrD.mjs} +2 -2
- package/lib/_shared/esm/{index-GCEHSsY8.mjs → index-BMmvMegf.mjs} +2 -2
- package/lib/_shared/esm/{index-DXHprNQ6.mjs → index-C_mwuZg6.mjs} +1 -1
- package/lib/_shared/esm/{index-BWkI4Dwz.mjs → index-CfXVJXLq.mjs} +3 -3
- package/lib/_shared/esm/{index-CWHcEz3_.mjs → index-Cgsjp3NL.mjs} +1 -1
- package/lib/_shared/esm/{index-CN4hP3Wu.mjs → index-CjeQnMcn.mjs} +3 -3
- package/lib/_shared/esm/{index-BFKdmv_g.mjs → index-DNvlT7G_.mjs} +3 -3
- package/lib/_shared/esm/{index-Do2wfP-X.mjs → index-Dd3yZ_Kk.mjs} +4 -4
- package/lib/_shared/esm/{index-vnVJe9rH.mjs → index-Dfz5UgHo.mjs} +4 -4
- package/lib/_shared/esm/{index-Bz2JQq34.mjs → index-DkAfUbDx.mjs} +2 -2
- package/lib/_shared/esm/{index-6HtUz28p.mjs → index-Drb5ngQr.mjs} +1 -1
- package/lib/_shared/esm/{index.es-Co1d96HB.mjs → index.es-99J0r2va.mjs} +1 -1
- package/lib/index.cjs +185 -156
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +938 -247
- package/lib/index.d.mts +938 -247
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +186 -157
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +2 -2
- package/package.json +12 -12
package/lib/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { createContext, useContext, useId as useId$1, useRef, useState, useEffect,
|
|
3
|
+
import React__default, { createContext, useContext, useId as useId$1, useRef, useState, useEffect, isValidElement, cloneElement, useMemo, useCallback, useReducer, useLayoutEffect, createElement, forwardRef, Children, Fragment as Fragment$1, Suspense } from 'react';
|
|
4
4
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import * as ReactDOM from 'react-dom';
|
|
6
6
|
import ReactDOM__default, { flushSync, createPortal } from 'react-dom';
|
|
@@ -847,7 +847,7 @@ var BannerRow = function (_a) {
|
|
|
847
847
|
|
|
848
848
|
/** Use `TemplateBanner` as a base structure for banner components; other banner variants extend or consume this template. */
|
|
849
849
|
var TemplateBanner = function (_a) {
|
|
850
|
-
var heading = _a.heading, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, label = _a.label, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, text = _a.text, img = _a.img, _d = _a.contentRatio, contentRatio = _d === void 0 ? "1/1" : _d, children = _a.children, _e = _a.alignment, alignment = _e === void 0 ? "center" : _e, additionalTopMargin = _a.additionalTopMargin, _f = _a.minHeight, minHeight = _f === void 0 ? 454 : _f, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _g = _a.headingSize, headingSize = _g === void 0 ? "xl" : _g, _h = _a.isReversed, isReversed = _h === void 0 ? false : _h, _j = _a.isElevated, isElevated = _j === void 0 ? false : _j, _k = _a.headingLevel, headingLevel = _k === void 0 ? "2" : _k, _l = _a.type, type =
|
|
850
|
+
var heading = _a.heading, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, label = _a.label, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, text = _a.text, img = _a.img, _d = _a.contentRatio, contentRatio = _d === void 0 ? "1/1" : _d, children = _a.children, _e = _a.alignment, alignment = _e === void 0 ? "center" : _e, additionalTopMargin = _a.additionalTopMargin, _f = _a.minHeight, minHeight = _f === void 0 ? 454 : _f, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _g = _a.headingSize, headingSize = _g === void 0 ? "xl" : _g, _h = _a.isReversed, isReversed = _h === void 0 ? false : _h, _j = _a.isElevated, isElevated = _j === void 0 ? false : _j, _k = _a.headingLevel, headingLevel = _k === void 0 ? "2" : _k, _l = _a.headingWordWrap, headingWordWrap = _l === void 0 ? false : _l, _m = _a.type, type = _m === void 0 ? "light" : _m, props = __rest(_a, ["heading", "fontStyle", "label", "labelLevel", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "minHeightM", "minHeightL", "minHeightXL", "headingSize", "isReversed", "isElevated", "headingLevel", "headingWordWrap", "type"]);
|
|
851
851
|
var backgrounds = {
|
|
852
852
|
dark: "dark-brand-02",
|
|
853
853
|
light: "light-white",
|
|
@@ -892,7 +892,7 @@ var TemplateBanner = function (_a) {
|
|
|
892
892
|
label && (React__default.createElement(React__default.Fragment, null,
|
|
893
893
|
React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline", isWordWrap: false }, label),
|
|
894
894
|
React__default.createElement(VerticalSpace, { size: "8" }))),
|
|
895
|
-
React__default.createElement(Heading, { level: headingLevel, size: headingSize, fontStyle: fontStyle, isWordWrap:
|
|
895
|
+
React__default.createElement(Heading, { level: headingLevel, size: headingSize, fontStyle: fontStyle, isWordWrap: headingWordWrap }, heading),
|
|
896
896
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
897
897
|
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
898
898
|
React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
@@ -907,8 +907,8 @@ var TemplateBanner = function (_a) {
|
|
|
907
907
|
|
|
908
908
|
/** Use `Banner` to promote key content or products with bold visuals and messaging. */
|
|
909
909
|
var Banner = function (_a) {
|
|
910
|
-
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.type, type = _f === void 0 ? "light" : _f, _g = _a.alignment, alignment = _g === void 0 ? "center" : _g, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "type", "alignment"]);
|
|
911
|
-
return (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: "m", alignment: alignment }, filterAttrs(props)), children));
|
|
910
|
+
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.type, type = _f === void 0 ? "light" : _f, _g = _a.alignment, alignment = _g === void 0 ? "center" : _g, _h = _a.headingWordWrap, headingWordWrap = _h === void 0 ? false : _h, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "type", "alignment", "headingWordWrap"]);
|
|
911
|
+
return (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: "m", alignment: alignment, headingWordWrap: headingWordWrap }, filterAttrs(props)), children));
|
|
912
912
|
};
|
|
913
913
|
|
|
914
914
|
/**
|
|
@@ -1684,22 +1684,22 @@ var handleLinkClick = function (_a) {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
};
|
|
1686
1686
|
|
|
1687
|
-
var BreadcrumbsLink =
|
|
1688
|
-
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children;
|
|
1689
|
-
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", { onClick: onClick, className: classNames({
|
|
1687
|
+
var BreadcrumbsLink = function (_a) {
|
|
1688
|
+
var onClick = _a.onClick, href = _a.href, isActive = _a.isActive, children = _a.children, ref = _a.ref, props = __rest(_a, ["onClick", "href", "isActive", "children", "ref"]);
|
|
1689
|
+
return (React__default.createElement(React__default.Fragment, null, isActive || href === undefined ? (React__default.createElement("span", __assign({ onClick: onClick, className: classNames({
|
|
1690
1690
|
"arc-Breadcrumbs-text": true,
|
|
1691
1691
|
"arc-Breadcrumbs-text--active": isActive,
|
|
1692
|
-
}) }, children)) : (React__default.createElement("a", __assign({}, (onClick && ref
|
|
1692
|
+
}) }, filterAttrs(props)), children)) : (React__default.createElement("a", __assign({}, (onClick && ref
|
|
1693
1693
|
? { onClick: onClick }
|
|
1694
|
-
: { onClick: handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }), children))));
|
|
1695
|
-
}
|
|
1694
|
+
: { onClick: handleLinkClick({ handler: onClick }) }), { className: "arc-Breadcrumbs-text", ref: ref, href: href }, filterAttrs(props)), children))));
|
|
1695
|
+
};
|
|
1696
1696
|
|
|
1697
1697
|
/**
|
|
1698
1698
|
* Use `Button` to let a user complete an action like ‘Log in’ or ‘Register’.
|
|
1699
1699
|
*/
|
|
1700
|
-
var Button =
|
|
1700
|
+
var Button = function (_a) {
|
|
1701
1701
|
var _b;
|
|
1702
|
-
var ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, _h = _a.size, size = _h === void 0 ? "m" : _h, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "size", "supportingText", "target", "type", "form"]);
|
|
1702
|
+
var ariaLabel = _a.ariaLabel, ariaControls = _a.ariaControls, ariaExpanded = _a.ariaExpanded, ariaHasPopup = _a.ariaHasPopup, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, _h = _a.size, size = _h === void 0 ? "m" : _h, supportingText = _a.supportingText, target = _a.target, type = _a.type, form = _a.form, ref = _a.ref, props = __rest(_a, ["ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "size", "supportingText", "target", "type", "form", "ref"]);
|
|
1703
1703
|
var surface = useContext(Context$3).surface;
|
|
1704
1704
|
var buttonClasses = classNames((_b = {
|
|
1705
1705
|
"arc-Button": true,
|
|
@@ -1727,7 +1727,7 @@ var Button = forwardRef(function (_a, ref) {
|
|
|
1727
1727
|
React__default.createElement("span", { className: "arc-Button-inner" },
|
|
1728
1728
|
buttonText,
|
|
1729
1729
|
buttonIcon)));
|
|
1730
|
-
}
|
|
1730
|
+
};
|
|
1731
1731
|
var ButtonIcon = function (_a) {
|
|
1732
1732
|
var icon = _a.icon, isChevron = _a.isChevron, isBeforeText = _a.isBeforeText;
|
|
1733
1733
|
return (React__default.createElement("span", { className: "arc-Button-icon" }, isChevron ? (React__default.createElement(ThemeIcon, { icon: isBeforeText ? "buttonLeft" : "buttonRight" })) : (React__default.createElement(Icon$1, { icon: icon }))));
|
|
@@ -1745,8 +1745,8 @@ var Spinner = function (_a) {
|
|
|
1745
1745
|
/**
|
|
1746
1746
|
* Use `ButtonV2` for our most up to date Call To Action button, offering Primary, Secondary, Tertiary, Compact and Error states.
|
|
1747
1747
|
*/
|
|
1748
|
-
var ButtonV2 =
|
|
1749
|
-
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, iconActive = _a.iconActive, _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", "iconActive", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form"]);
|
|
1748
|
+
var ButtonV2 = function (_a) {
|
|
1749
|
+
var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, iconActive = _a.iconActive, _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, ref = _a.ref, props = __rest(_a, ["label", "buttonStyle", "icon", "iconActive", "iconPosition", "size", "ariaLabel", "ariaControls", "ariaExpanded", "ariaHasPopup", "isFullWidth", "isLoading", "isSpan", "onClick", "href", "id", "rel", "target", "type", "form", "ref"]);
|
|
1750
1750
|
var surface = useContext(Context$3).surface;
|
|
1751
1751
|
var ButtonElement = isSpan ? "span" : "button";
|
|
1752
1752
|
var iconSizes = {
|
|
@@ -1790,7 +1790,7 @@ var ButtonV2 = forwardRef(function (_a, ref) {
|
|
|
1790
1790
|
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 }), renderButtonContent()));
|
|
1791
1791
|
}
|
|
1792
1792
|
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 }), renderButtonContent()));
|
|
1793
|
-
}
|
|
1793
|
+
};
|
|
1794
1794
|
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Use `ButtonGroup` to group multiple buttons together, ensuring consistent sizing, spacing,
|
|
@@ -1808,7 +1808,10 @@ var ButtonGroup = function (_a) {
|
|
|
1808
1808
|
"arc-ButtonGroup--vertical": orientation === "vertical",
|
|
1809
1809
|
}), role: "group", "aria-label": ariaLabel }, filterAttrs(props)), React__default.Children.map(children, function (child) {
|
|
1810
1810
|
if (isValidElement(child) && isArcButton(child.type)) {
|
|
1811
|
-
return cloneElement(child,
|
|
1811
|
+
return cloneElement(child, {
|
|
1812
|
+
size: size,
|
|
1813
|
+
isFullWidth: isFullWidth,
|
|
1814
|
+
});
|
|
1812
1815
|
}
|
|
1813
1816
|
return null;
|
|
1814
1817
|
})));
|
|
@@ -2003,7 +2006,7 @@ function startOfMonth(dirtyDate) {
|
|
|
2003
2006
|
|
|
2004
2007
|
/**
|
|
2005
2008
|
* Do not edit directly
|
|
2006
|
-
* Generated on
|
|
2009
|
+
* Generated on Tue, 23 Dec 2025 14:36:38 GMT
|
|
2007
2010
|
*/
|
|
2008
2011
|
var ArcSizeBreakpointsXs = "320px";
|
|
2009
2012
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -5248,8 +5251,8 @@ function cleanEscapedString(input) {
|
|
|
5248
5251
|
|
|
5249
5252
|
var ArcCalendarContext = createContext(null);
|
|
5250
5253
|
|
|
5251
|
-
var CalendarDayNumber =
|
|
5252
|
-
var date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
|
|
5254
|
+
var CalendarDayNumber = function (_a) {
|
|
5255
|
+
var autoFocusRef = _a.ref, date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
|
|
5253
5256
|
var context = useContext(ArcCalendarContext);
|
|
5254
5257
|
var isFocusDate = context && isEqual$1(date, context.focusDate);
|
|
5255
5258
|
var tableCellRef = useCallback(function (el) {
|
|
@@ -5310,7 +5313,7 @@ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
|
|
|
5310
5313
|
React__default.createElement("div", { className: "arc-CalendarDayNumber-buttonInner" },
|
|
5311
5314
|
React__default.createElement(Text, { size: "s" },
|
|
5312
5315
|
React__default.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
|
|
5313
|
-
}
|
|
5316
|
+
};
|
|
5314
5317
|
|
|
5315
5318
|
/**
|
|
5316
5319
|
* Do not edit directly
|
|
@@ -8415,15 +8418,16 @@ var FormControl = function (_a) {
|
|
|
8415
8418
|
|
|
8416
8419
|
/** Use `CheckboxIcon` to display a visual checkbox indicator that reflects a checked, unchecked, or indeterminate state. */
|
|
8417
8420
|
var CheckboxIcon = function (_a) {
|
|
8418
|
-
var id = _a.id, name = _a.name, checked = _a.checked, _b = _a.indeterminate, indeterminate = _b === void 0 ? false : _b, isDisabled = _a.isDisabled, isRequired = _a.isRequired, _c = _a.size, size = _c === void 0 ? "m" : _c, value = _a.value, error = _a.error, ariaDescribedBy = _a.ariaDescribedBy, onBlur = _a.onBlur, onChange = _a.onChange, props = __rest(_a, ["id", "name", "checked", "indeterminate", "isDisabled", "isRequired", "size", "value", "error", "ariaDescribedBy", "onBlur", "onChange"]);
|
|
8421
|
+
var id = _a.id, name = _a.name, checked = _a.checked, _b = _a.indeterminate, indeterminate = _b === void 0 ? false : _b, isDisabled = _a.isDisabled, isRequired = _a.isRequired, _c = _a.size, size = _c === void 0 ? "m" : _c, value = _a.value, error = _a.error, ariaDescribedBy = _a.ariaDescribedBy, onBlur = _a.onBlur, onChange = _a.onChange, ref = _a.ref, props = __rest(_a, ["id", "name", "checked", "indeterminate", "isDisabled", "isRequired", "size", "value", "error", "ariaDescribedBy", "onBlur", "onChange", "ref"]);
|
|
8419
8422
|
var requirementStatus = useContext(Context$2).requirementStatus;
|
|
8420
8423
|
var internalRef = useRef(null);
|
|
8421
8424
|
var surface = useContext(Context$3).surface;
|
|
8425
|
+
var inputRef = (ref || internalRef);
|
|
8422
8426
|
useEffect(function () {
|
|
8423
|
-
if (
|
|
8424
|
-
|
|
8427
|
+
if (inputRef.current) {
|
|
8428
|
+
inputRef.current.indeterminate = indeterminate;
|
|
8425
8429
|
}
|
|
8426
|
-
}, [indeterminate, checked]);
|
|
8430
|
+
}, [indeterminate, checked, inputRef]);
|
|
8427
8431
|
var tickSize = {
|
|
8428
8432
|
s: 14,
|
|
8429
8433
|
m: 18,
|
|
@@ -8451,7 +8455,7 @@ var CheckboxIcon = function (_a) {
|
|
|
8451
8455
|
? true
|
|
8452
8456
|
: indeterminate && checked
|
|
8453
8457
|
? "mixed"
|
|
8454
|
-
: false, className: classNames("arc-CheckboxIcon-input"), disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref:
|
|
8458
|
+
: false, className: classNames("arc-CheckboxIcon-input"), disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: inputRef, required: isRequired, type: "checkbox", value: value }, checkedProps, props)),
|
|
8455
8459
|
React__default.createElement("span", { className: classNames("arc-CheckboxIcon-box") }, indeterminate ? (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "none" },
|
|
8456
8460
|
React__default.createElement("rect", { x: "4", y: "8", width: "7.51", height: "1", rx: "0.5", fill: "currentColor" }))) : (React__default.createElement(ThemeIcon, { icon: "checkboxChecked", size: tickSize[size] })))));
|
|
8457
8461
|
};
|
|
@@ -8459,8 +8463,8 @@ var CheckboxIcon = function (_a) {
|
|
|
8459
8463
|
/**
|
|
8460
8464
|
* Use `Checkbox` to allow users to select individual options.
|
|
8461
8465
|
*/
|
|
8462
|
-
var Checkbox =
|
|
8463
|
-
var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _f = _a.size, size = _f === void 0 ? "m" : _f, value = _a.value, _g = _a.checkboxAlignment, checkboxAlignment = _g === void 0 ? "center" : _g, _h = _a.indeterminate, indeterminate = _h === void 0 ? false : _h, _j = _a.isError, isError = _j === void 0 ? false : _j, _k = _a.isErrorAlert, isErrorAlert = _k === void 0 ? false : _k, props = __rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "hideLabel", "name", "onBlur", "onChange", "size", "value", "checkboxAlignment", "indeterminate", "isError", "isErrorAlert"]);
|
|
8466
|
+
var Checkbox = function (_a) {
|
|
8467
|
+
var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, _e = _a.hideLabel, hideLabel = _e === void 0 ? false : _e, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _f = _a.size, size = _f === void 0 ? "m" : _f, value = _a.value, _g = _a.checkboxAlignment, checkboxAlignment = _g === void 0 ? "center" : _g, _h = _a.indeterminate, indeterminate = _h === void 0 ? false : _h, _j = _a.isError, isError = _j === void 0 ? false : _j, _k = _a.isErrorAlert, isErrorAlert = _k === void 0 ? false : _k, ref = _a.ref, props = __rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "hideLabel", "name", "onBlur", "onChange", "size", "value", "checkboxAlignment", "indeterminate", "isError", "isErrorAlert", "ref"]);
|
|
8464
8468
|
var requirementStatus = useContext(Context$2).requirementStatus;
|
|
8465
8469
|
var surface = useContext(Context$3).surface;
|
|
8466
8470
|
var idError = useAriaDescribedby({
|
|
@@ -8478,7 +8482,7 @@ var Checkbox = forwardRef(function (_a) {
|
|
|
8478
8482
|
"arc-Checkbox--invalid": errorMessage || isError,
|
|
8479
8483
|
"arc-Checkbox--small": size === "s",
|
|
8480
8484
|
"arc-Checkbox--onDarkSurface": surface === "dark",
|
|
8481
|
-
}) }, filterAttrs(props)),
|
|
8485
|
+
}), ref: ref }, filterAttrs(props)),
|
|
8482
8486
|
React__default.createElement("label", { id: idLabel, htmlFor: id, className: classNames("arc-Checkbox-label", {
|
|
8483
8487
|
"arc-Checkbox-label--top": checkboxAlignment === "top",
|
|
8484
8488
|
}) },
|
|
@@ -8488,15 +8492,15 @@ var Checkbox = forwardRef(function (_a) {
|
|
|
8488
8492
|
})), hideLabel ? (React__default.createElement(VisuallyHidden$2, null,
|
|
8489
8493
|
label,
|
|
8490
8494
|
!isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
8491
|
-
helper &&
|
|
8495
|
+
helper && React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper))) : (React__default.createElement(React__default.Fragment, null,
|
|
8492
8496
|
label,
|
|
8493
8497
|
!isRequired && requirementStatus !== "optional" ? (React__default.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
8494
|
-
helper &&
|
|
8498
|
+
helper && React__default.createElement("span", { className: "arc-Checkbox-helper" }, helper))))),
|
|
8495
8499
|
errorMessage && (React__default.createElement("div", { id: idError, className: "arc-Checkbox-error", role: isErrorAlert ? "alert" : undefined },
|
|
8496
8500
|
React__default.createElement("span", { className: "arc-Checkbox-error--icon", "aria-label": "Error. " },
|
|
8497
8501
|
React__default.createElement(ThemeIcon, { icon: "checkboxError" })),
|
|
8498
8502
|
errorMessage))));
|
|
8499
|
-
}
|
|
8503
|
+
};
|
|
8500
8504
|
|
|
8501
8505
|
/**
|
|
8502
8506
|
* Use `Columns` to compose layouts on a 12-column grid. Place within `Section` components to align with any sibling `Grid` components.
|
|
@@ -9229,9 +9233,9 @@ var count = 0;
|
|
|
9229
9233
|
function useId(deterministicId) {
|
|
9230
9234
|
const [id, setId] = React.useState(useReactId());
|
|
9231
9235
|
useLayoutEffect2(() => {
|
|
9232
|
-
|
|
9236
|
+
setId((reactId) => reactId ?? String(count++));
|
|
9233
9237
|
}, [deterministicId]);
|
|
9234
|
-
return
|
|
9238
|
+
return (id ? `radix-${id}` : "");
|
|
9235
9239
|
}
|
|
9236
9240
|
|
|
9237
9241
|
/**
|
|
@@ -13083,8 +13087,8 @@ var reducer = function (initialOptions) {
|
|
|
13083
13087
|
};
|
|
13084
13088
|
|
|
13085
13089
|
/** Use `ComboBox` to provide a searchable dropdown list that allows users to select from or filter through multiple options. */
|
|
13086
|
-
var ComboBox =
|
|
13087
|
-
var name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, label = _a.label, helper = _a.helper, id = _a.id, initialOptions = _a.options, hideLabel = _a.hideLabel, isFluid = _a.isFluid, errorMessage = _a.errorMessage, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, listBoxAriaLabel = _a.listBoxAriaLabel, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.isMultiSelectable, isMultiSelectable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.isAutocomplete, isAutocomplete = _g === void 0 ? false : _g, props = __rest(_a, ["name", "onBlur", "onFocus", "label", "helper", "id", "options", "hideLabel", "isFluid", "errorMessage", "disclosureTitle", "disclosureText", "onClickDisclosure", "listBoxAriaLabel", "defaultValue", "labelSize", "isMultiSelectable", "isDisabled", "isRequired", "isAutocomplete"]);
|
|
13090
|
+
var ComboBox = function (_a) {
|
|
13091
|
+
var ref = _a.ref, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, label = _a.label, helper = _a.helper, id = _a.id, initialOptions = _a.options, hideLabel = _a.hideLabel, isFluid = _a.isFluid, errorMessage = _a.errorMessage, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, listBoxAriaLabel = _a.listBoxAriaLabel, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.isMultiSelectable, isMultiSelectable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.isAutocomplete, isAutocomplete = _g === void 0 ? false : _g, props = __rest(_a, ["ref", "name", "onBlur", "onFocus", "label", "helper", "id", "options", "hideLabel", "isFluid", "errorMessage", "disclosureTitle", "disclosureText", "onClickDisclosure", "listBoxAriaLabel", "defaultValue", "labelSize", "isMultiSelectable", "isDisabled", "isRequired", "isAutocomplete"]);
|
|
13088
13092
|
var listBoxId = useId$1();
|
|
13089
13093
|
var listItemRefs = useRef([]);
|
|
13090
13094
|
var containerRef = useRef(null);
|
|
@@ -13120,9 +13124,7 @@ var ComboBox = forwardRef(function (_a, ref) {
|
|
|
13120
13124
|
var selectedOptionIsAboveOverFlow = listItemEl.offsetTop < listEl.scrollTop;
|
|
13121
13125
|
if (selectedOptionIsBelowOverFlow) {
|
|
13122
13126
|
listEl.scrollTop =
|
|
13123
|
-
listItemEl.offsetTop +
|
|
13124
|
-
listItemEl.offsetHeight -
|
|
13125
|
-
listEl.offsetHeight;
|
|
13127
|
+
listItemEl.offsetTop + listItemEl.offsetHeight - listEl.offsetHeight;
|
|
13126
13128
|
}
|
|
13127
13129
|
if (selectedOptionIsAboveOverFlow) {
|
|
13128
13130
|
listEl.scrollTop = listItemEl.offsetTop;
|
|
@@ -13235,7 +13237,9 @@ var ComboBox = forwardRef(function (_a, ref) {
|
|
|
13235
13237
|
React__default.createElement(Content2$4, { align: "start", sideOffset: 5, onInteractOutside: onInteractOutside, onOpenAutoFocus: onOpenAutoFocus },
|
|
13236
13238
|
React__default.createElement("div", { className: "arc-ComboBox-listboxContainer" },
|
|
13237
13239
|
React__default.createElement(Box, { elevationLevel: "1" },
|
|
13238
|
-
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) {
|
|
13240
|
+
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) {
|
|
13241
|
+
listItemRefs.current[i] = el;
|
|
13242
|
+
}, key: option, className: classNames("arc-ComboBox-listItem", {
|
|
13239
13243
|
"arc-ComboBox-listItem--highlighted": i === highlightedOptionIndex,
|
|
13240
13244
|
}), onMouseDown: onItemClick(option), role: "option", "aria-selected": isSelected(option, selectedOptions) },
|
|
13241
13245
|
React__default.createElement("div", { className: "arc-ComboBox-listItemText" }, option),
|
|
@@ -13243,7 +13247,7 @@ var ComboBox = forwardRef(function (_a, ref) {
|
|
|
13243
13247
|
"arc-ComboBox-listItemIcon--visible": isSelected(option, selectedOptions),
|
|
13244
13248
|
}) },
|
|
13245
13249
|
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")))))))))));
|
|
13246
|
-
}
|
|
13250
|
+
};
|
|
13247
13251
|
|
|
13248
13252
|
function _extends() {
|
|
13249
13253
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -14210,11 +14214,12 @@ var ContentSwitcher = function (_a) {
|
|
|
14210
14214
|
React__default.createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, __assign({ className: "arc-ContentSwitcher-root", defaultValue: defaultValue, onValueChange: onValueChange, activationMode: activationMode, value: value }, filterAttrs(props)), children)));
|
|
14211
14215
|
};
|
|
14212
14216
|
|
|
14213
|
-
var ContentSwitcherTab =
|
|
14214
|
-
var label = _a.label, value = _a.value, onClick = _a.onClick, onFocus = _a.onFocus, props = __rest(_a, ["label", "value", "onClick", "onFocus"]);
|
|
14215
|
-
return (React__default.createElement(
|
|
14216
|
-
React__default.createElement(
|
|
14217
|
-
});
|
|
14217
|
+
var ContentSwitcherTab = function (_a) {
|
|
14218
|
+
var label = _a.label, value = _a.value, onClick = _a.onClick, onFocus = _a.onFocus, ref = _a.ref, props = __rest(_a, ["label", "value", "onClick", "onFocus", "ref"]);
|
|
14219
|
+
return (React__default.createElement(Surface, { isTransparent: true },
|
|
14220
|
+
React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, __assign({ className: "arc-ContentSwitcherTab", value: value, ref: ref, onClick: onClick, onFocus: onFocus }, filterAttrs(props)),
|
|
14221
|
+
React__default.createElement(Text, { size: "m" }, label))));
|
|
14222
|
+
};
|
|
14218
14223
|
|
|
14219
14224
|
var ContentSwitcherContent = function (_a) {
|
|
14220
14225
|
var children = _a.children, value = _a.value, _b = _a.hidden, hidden = _b === void 0 ? undefined : _b, _c = _a.forceMount, forceMount = _c === void 0 ? true : _c, props = __rest(_a, ["children", "value", "hidden", "forceMount"]);
|
|
@@ -14280,14 +14285,23 @@ var ContentSwitcherList = function (_a) {
|
|
|
14280
14285
|
"arc-ContentSwitcherList--isJustified": isJustified,
|
|
14281
14286
|
}), ref: listRef, "aria-label": ariaLabel }, filterAttrs(props)),
|
|
14282
14287
|
React__default.createElement("div", { className: "arc-ContentSwitcherList-inner" }, React__default.Children.map(children, function (child, index) {
|
|
14283
|
-
if (
|
|
14288
|
+
if (!React__default.isValidElement(child)) {
|
|
14289
|
+
return null;
|
|
14290
|
+
}
|
|
14291
|
+
if (tabRefs.current[index] !== null) {
|
|
14284
14292
|
return React__default.cloneElement(child, {
|
|
14285
|
-
ref: function (el) {
|
|
14293
|
+
ref: function (el) {
|
|
14294
|
+
tabRefs.current[index] = el;
|
|
14295
|
+
},
|
|
14286
14296
|
onClick: function () {
|
|
14287
|
-
|
|
14297
|
+
var el = tabRefs.current[index];
|
|
14298
|
+
if (el)
|
|
14299
|
+
scrollTabIntoView({ current: el });
|
|
14288
14300
|
},
|
|
14289
14301
|
onFocus: function () {
|
|
14290
|
-
|
|
14302
|
+
var el = tabRefs.current[index];
|
|
14303
|
+
if (el)
|
|
14304
|
+
scrollTabIntoView({ current: el });
|
|
14291
14305
|
},
|
|
14292
14306
|
});
|
|
14293
14307
|
}
|
|
@@ -17063,9 +17077,9 @@ var TrailingSlot = function (_a) {
|
|
|
17063
17077
|
};
|
|
17064
17078
|
|
|
17065
17079
|
/** Use `TextInput` as a single-line field that allows users to enter short text, such as names, email, search queries or passwords. */
|
|
17066
|
-
var TextInputComponent =
|
|
17080
|
+
var TextInputComponent = function (_a) {
|
|
17067
17081
|
var _b;
|
|
17068
|
-
var _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _g = _a.type, type = _g === void 0 ? "text" : _g, _h = _a.showPassword, showPassword = _h === void 0 ? false : _h, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _j = _a.size, size = _j === void 0 ? "m" : _j, leadingSlot = _a.leadingSlot, trailingSlot = _a.trailingSlot, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, isErrorAlert = _a.isErrorAlert, prefix = _a.prefix, suffix = _a.suffix, clearButton = _a.clearButton, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "size", "leadingSlot", "trailingSlot", "inputAlignment", "width", "autoComplete", "isLoading", "isErrorAlert", "prefix", "suffix", "clearButton"]);
|
|
17082
|
+
var ref = _a.ref, _c = _a.defaultValue, defaultValue = _c === void 0 ? "" : _c, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, inputMode = _a.inputMode, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, label = _a.label, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _g = _a.type, type = _g === void 0 ? "text" : _g, _h = _a.showPassword, showPassword = _h === void 0 ? false : _h, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _j = _a.size, size = _j === void 0 ? "m" : _j, leadingSlot = _a.leadingSlot, trailingSlot = _a.trailingSlot, _k = _a.inputAlignment, inputAlignment = _k === void 0 ? "left" : _k, width = _a.width, autoComplete = _a.autoComplete, isLoading = _a.isLoading, isErrorAlert = _a.isErrorAlert, prefix = _a.prefix, suffix = _a.suffix, clearButton = _a.clearButton, props = __rest(_a, ["ref", "defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "maxLength", "minLength", "name", "onBlur", "onFocus", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "size", "leadingSlot", "trailingSlot", "inputAlignment", "width", "autoComplete", "isLoading", "isErrorAlert", "prefix", "suffix", "clearButton"]);
|
|
17069
17083
|
var _l = useState(false), showPasswordToggle = _l[0], setShowPasswordToggle = _l[1];
|
|
17070
17084
|
var inferredInputProps = useNumericInput({
|
|
17071
17085
|
inputMode: inputMode,
|
|
@@ -17104,12 +17118,12 @@ var TextInputComponent = forwardRef(function (_a, ref) {
|
|
|
17104
17118
|
isLoading ||
|
|
17105
17119
|
(clearButton === null || clearButton === void 0 ? void 0 : clearButton.onClick)) && (React__default.createElement(TrailingSlot, { showPassword: showPassword, isReadOnly: isReadOnly, isLoading: isLoading, clearButton: clearButton, trailingSlot: trailingSlot, isPasswordVisible: showPasswordToggle, onTogglePassword: function () { return setShowPasswordToggle(function (prev) { return !prev; }); }, size: size, isDisabled: isDisabled })),
|
|
17106
17120
|
suffix && (React__default.createElement("span", { className: "arc-TextInput-suffix arc-TextInput-affixes", "aria-hidden": true }, suffix))))));
|
|
17107
|
-
}
|
|
17121
|
+
};
|
|
17108
17122
|
/**
|
|
17109
17123
|
* Use `TextInput` to allow users to enter short form text.
|
|
17110
17124
|
*/
|
|
17111
|
-
var TextInput =
|
|
17112
|
-
var TextInputWithPlaceHolder =
|
|
17125
|
+
var TextInput = function (props) { return (React__default.createElement(TextInputComponent, __assign({}, props))); };
|
|
17126
|
+
var TextInputWithPlaceHolder = function (props) { return React__default.createElement(TextInputComponent, __assign({}, props)); };
|
|
17113
17127
|
|
|
17114
17128
|
var formatDate = function (value) {
|
|
17115
17129
|
return format(value, DATE_FORMAT);
|
|
@@ -17244,8 +17258,8 @@ function validateRangeOnBlur(_a) {
|
|
|
17244
17258
|
/**
|
|
17245
17259
|
* Use `DatePicker` to clearly present available dates and allow users to choose a way to enter information.
|
|
17246
17260
|
*/
|
|
17247
|
-
var DatePicker =
|
|
17248
|
-
var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.value, value = _c === void 0 ? "" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, onClickDisclosure = _a.onClickDisclosure, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, type = _a.type, _d = _a.isFluid, isFluid = _d === void 0 ? false : _d, _e = _a.selectionType, selectionType = _e === void 0 ? "single" : _e, disabledDates = _a.disabledDates, minDate = _a.minDate, maxDate = _a.maxDate, props = __rest(_a, ["errorMessage", "helper", "id", "label", "isDisabled", "isReadOnly", "isRequired", "size", "value", "name", "onBlur", "onChange", "onDateSelect", "onRangeSelect", "onClickDisclosure", "disclosureTitle", "disclosureText", "type", "isFluid", "selectionType", "disabledDates", "minDate", "maxDate"]);
|
|
17261
|
+
var DatePicker = function (_a) {
|
|
17262
|
+
var errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, label = _a.label, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, isRequired = _a.isRequired, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.value, value = _c === void 0 ? "" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, onClickDisclosure = _a.onClickDisclosure, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, type = _a.type, _d = _a.isFluid, isFluid = _d === void 0 ? false : _d, _e = _a.selectionType, selectionType = _e === void 0 ? "single" : _e, disabledDates = _a.disabledDates, minDate = _a.minDate, maxDate = _a.maxDate, ref = _a.ref, props = __rest(_a, ["errorMessage", "helper", "id", "label", "isDisabled", "isReadOnly", "isRequired", "size", "value", "name", "onBlur", "onChange", "onDateSelect", "onRangeSelect", "onClickDisclosure", "disclosureTitle", "disclosureText", "type", "isFluid", "selectionType", "disabledDates", "minDate", "maxDate", "ref"]);
|
|
17249
17263
|
var _f = useThemeElement(), themeElement = _f[0], setThemeElement = _f[1];
|
|
17250
17264
|
var _g = useState("Choose date"), ariaLabel = _g[0], setAriaLabel = _g[1];
|
|
17251
17265
|
var _h = useState(false), showCalendar = _h[0], setShowCalendar = _h[1];
|
|
@@ -17389,7 +17403,7 @@ var DatePicker = forwardRef(function (_a, ref) {
|
|
|
17389
17403
|
React__default.createElement(Portal$5, { container: themeElement },
|
|
17390
17404
|
React__default.createElement(Content2$4, { align: "start", "aria-modal": "true", "aria-label": "Choose Date", className: "arc-DatePicker-modal", onOpenAutoFocus: handleAutoFocus, onCloseAutoFocus: handleCalendarClose },
|
|
17391
17405
|
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 }))))));
|
|
17392
|
-
}
|
|
17406
|
+
};
|
|
17393
17407
|
|
|
17394
17408
|
var lowerCaseDateFormat = DATE_FORMAT.toLowerCase();
|
|
17395
17409
|
var DatePickerRange = function (_a) {
|
|
@@ -17954,6 +17968,17 @@ var Drawer = function (_a) {
|
|
|
17954
17968
|
var newHeight = dragRef.current.startH - dragRef.current.deltaY;
|
|
17955
17969
|
setDrawerHeight(Math.round(newHeight));
|
|
17956
17970
|
};
|
|
17971
|
+
var onHandleDown = function (e) {
|
|
17972
|
+
if (!contentRef.current)
|
|
17973
|
+
return;
|
|
17974
|
+
dragRef.current.active = true;
|
|
17975
|
+
// record where the pointer was when dragging started
|
|
17976
|
+
dragRef.current.startY = e.clientY;
|
|
17977
|
+
// record inital height of drawer
|
|
17978
|
+
dragRef.current.startH = contentRef.current.clientHeight;
|
|
17979
|
+
// keep moving drawer even if cursor has left pill
|
|
17980
|
+
e.target.setPointerCapture(e.pointerId);
|
|
17981
|
+
};
|
|
17957
17982
|
var resolveToPx = function (input) {
|
|
17958
17983
|
// if already a number, assume px
|
|
17959
17984
|
if (typeof input === "number")
|
|
@@ -17970,19 +17995,24 @@ var Drawer = function (_a) {
|
|
|
17970
17995
|
var numericValue = Number(str);
|
|
17971
17996
|
return Number.isFinite(numericValue) ? numericValue : undefined;
|
|
17972
17997
|
};
|
|
17973
|
-
var onHandleUpCore = function (e) {
|
|
17974
|
-
if (!
|
|
17998
|
+
var onHandleUpCore = function (e, keyboardDeltaY) {
|
|
17999
|
+
if (!contentRef.current)
|
|
17975
18000
|
return;
|
|
18001
|
+
// if the user scrolls down
|
|
17976
18002
|
if (dragDownToDismiss && contentRef.current.clientHeight < 100) {
|
|
17977
18003
|
dragRef.current.active = false;
|
|
17978
18004
|
dragRef.current.deltaY = 0;
|
|
17979
|
-
e
|
|
18005
|
+
if (e instanceof PointerEvent && (e === null || e === void 0 ? void 0 : e.currentTarget)) {
|
|
18006
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
18007
|
+
}
|
|
17980
18008
|
setDrawerHeight(undefined);
|
|
17981
18009
|
onRequestClose();
|
|
17982
18010
|
return;
|
|
17983
18011
|
}
|
|
17984
18012
|
dragRef.current.active = false;
|
|
17985
|
-
e
|
|
18013
|
+
if (e instanceof PointerEvent && (e === null || e === void 0 ? void 0 : e.currentTarget)) {
|
|
18014
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
18015
|
+
}
|
|
17986
18016
|
var currentHeight = contentRef.current.clientHeight;
|
|
17987
18017
|
// turn all snapPoints into px values. Order the values.
|
|
17988
18018
|
var snapsPx = (normalisedSnapPoints !== null && normalisedSnapPoints !== void 0 ? normalisedSnapPoints : [])
|
|
@@ -17990,9 +18020,9 @@ var Drawer = function (_a) {
|
|
|
17990
18020
|
.filter(function (value) { return value !== undefined; }) // remove undefined values
|
|
17991
18021
|
.sort(function (a, b) { return a - b; });
|
|
17992
18022
|
var targetSnap = undefined;
|
|
18023
|
+
var deltaY = Math.sign(dragRef.current.deltaY);
|
|
17993
18024
|
if (snapBehaviour === "next") {
|
|
17994
|
-
|
|
17995
|
-
if (deltaY === -1) {
|
|
18025
|
+
if (deltaY <= -1) {
|
|
17996
18026
|
// User scrolled up
|
|
17997
18027
|
for (var i = 0; i < snapsPx.length; i++) {
|
|
17998
18028
|
if (snapsPx[i] > currentHeight) {
|
|
@@ -18004,7 +18034,7 @@ var Drawer = function (_a) {
|
|
|
18004
18034
|
}
|
|
18005
18035
|
}
|
|
18006
18036
|
}
|
|
18007
|
-
else if (deltaY
|
|
18037
|
+
else if (deltaY >= 1) {
|
|
18008
18038
|
// User scrolled down
|
|
18009
18039
|
for (var i = 0; i < snapsPx.length; i++) {
|
|
18010
18040
|
if (snapsPx[i] < currentHeight) {
|
|
@@ -18045,17 +18075,6 @@ var Drawer = function (_a) {
|
|
|
18045
18075
|
}
|
|
18046
18076
|
setDrawerHeight(targetSnap);
|
|
18047
18077
|
};
|
|
18048
|
-
var onHandleDown = function (e) {
|
|
18049
|
-
if (!contentRef.current)
|
|
18050
|
-
return;
|
|
18051
|
-
dragRef.current.active = true;
|
|
18052
|
-
// record where the pointer was when dragging started
|
|
18053
|
-
dragRef.current.startY = e.clientY;
|
|
18054
|
-
// record inital height of drawer
|
|
18055
|
-
dragRef.current.startH = contentRef.current.clientHeight;
|
|
18056
|
-
// keep moving drawer even if cursor has left pill
|
|
18057
|
-
e.target.setPointerCapture(e.pointerId);
|
|
18058
|
-
};
|
|
18059
18078
|
return (React__default.createElement("div", { ref: setThemeElement },
|
|
18060
18079
|
React__default.createElement(Root$1, { open: isOpen },
|
|
18061
18080
|
React__default.createElement(Portal$1, { container: themeElement },
|
|
@@ -18072,16 +18091,16 @@ var Drawer = function (_a) {
|
|
|
18072
18091
|
React__default.createElement("button", { "aria-label": "close", onClick: onRequestClose, className: "arc-Drawer-closeButton" },
|
|
18073
18092
|
React__default.createElement(ThemeIcon, { size: 32, icon: "drawerClose" })),
|
|
18074
18093
|
draggable && position === "bottom" && (React__default.createElement("div", { className: "arc-Drawer-dragHandle", onPointerDown: onHandleDown, onPointerUp: onHandleUp, onPointerMove: onHandleMove, onClick: onHandleClick, role: "separator", "aria-label": "Drag to resize the drawer" },
|
|
18075
|
-
React__default.createElement("div", { className: "arc-Drawer-dragHandlePill", "data-testid": "arc-Drawer-dragHandlePill" })))),
|
|
18094
|
+
React__default.createElement("div", { className: "arc-Drawer-dragHandlePill", tabIndex: -1, "data-testid": "arc-Drawer-dragHandlePill" })))),
|
|
18076
18095
|
children)))))));
|
|
18077
18096
|
};
|
|
18078
18097
|
|
|
18079
18098
|
/**
|
|
18080
18099
|
* Use `Rule` to display a horizontal or vertical rule.
|
|
18081
18100
|
*/
|
|
18082
|
-
var Rule = function (_a
|
|
18101
|
+
var Rule = function (_a) {
|
|
18083
18102
|
var _b;
|
|
18084
|
-
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
18103
|
+
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c, props = __rest(_a, ["orientation"]);
|
|
18085
18104
|
var surface = useContext(Context$3).surface;
|
|
18086
18105
|
return (React__default.createElement("hr", __assign({ className: classNames((_b = {
|
|
18087
18106
|
"arc-Rule": true
|
|
@@ -18092,24 +18111,27 @@ var Rule = function (_a, props) {
|
|
|
18092
18111
|
};
|
|
18093
18112
|
|
|
18094
18113
|
var DrawerHeader = function (_a) {
|
|
18095
|
-
var title = _a.title, _b = _a.isFixed, isFixed = _b === void 0 ? false : _b, isResponsive = _a.isResponsive, props = __rest(_a, ["title", "isFixed", "isResponsive"]);
|
|
18114
|
+
var title = _a.title, _b = _a.isFixed, isFixed = _b === void 0 ? false : _b, isResponsive = _a.isResponsive, children = _a.children, _c = _a.isFullBleed, isFullBleed = _c === void 0 ? false : _c, _d = _a.titleWordWrap, titleWordWrap = _d === void 0 ? false : _d, props = __rest(_a, ["title", "isFixed", "isResponsive", "children", "isFullBleed", "titleWordWrap"]);
|
|
18096
18115
|
return (React__default.createElement(React__default.Fragment, null,
|
|
18097
18116
|
React__default.createElement("div", __assign({ className: classNames("arc-DrawerHeader", {
|
|
18098
18117
|
"arc-DrawerHeader--isFixed": isFixed,
|
|
18118
|
+
"arc-DrawerHeader--isFullBleed": isFullBleed,
|
|
18099
18119
|
}) }, filterAttrs(props)),
|
|
18100
18120
|
React__default.createElement("div", { className: "arc-DrawerHeader-content" },
|
|
18101
|
-
React__default.createElement("div", { className: "arc-DrawerHeader-titleContainer" },
|
|
18121
|
+
title && !children && (React__default.createElement("div", { className: "arc-DrawerHeader-titleContainer" },
|
|
18102
18122
|
React__default.createElement(Title, { asChild: true },
|
|
18103
|
-
React__default.createElement(Heading, { isResponsive: isResponsive, size: "m" }, title)))),
|
|
18123
|
+
React__default.createElement(Heading, { isResponsive: isResponsive, size: "m", isWordWrap: titleWordWrap }, title)))),
|
|
18124
|
+
children && !title && children),
|
|
18104
18125
|
isFixed && (React__default.createElement("div", { className: "arc-DrawerHeader-divider" },
|
|
18105
18126
|
React__default.createElement(Rule, null))))));
|
|
18106
18127
|
};
|
|
18107
18128
|
|
|
18108
18129
|
var DrawerFooter = function (_a) {
|
|
18109
|
-
var isFixed = _a.isFixed, children = _a.children;
|
|
18130
|
+
var isFixed = _a.isFixed, _b = _a.isFullBleed, isFullBleed = _b === void 0 ? false : _b, children = _a.children;
|
|
18110
18131
|
return (React__default.createElement(React__default.Fragment, null,
|
|
18111
18132
|
React__default.createElement("div", { className: classNames("arc-DrawerFooter", {
|
|
18112
18133
|
"arc-DrawerFooter--isFixed": isFixed,
|
|
18134
|
+
"arc-DrawerFooter--isFullBleed": isFullBleed,
|
|
18113
18135
|
}) },
|
|
18114
18136
|
isFixed && (React__default.createElement("div", { className: "arc-DrawerFooter-divider" },
|
|
18115
18137
|
React__default.createElement(Rule, null))),
|
|
@@ -18238,13 +18260,13 @@ var FilterItem = function (_a) {
|
|
|
18238
18260
|
* Use `GhostedHeroBanner` to grab attention and convey the main message or purpose of a webpage
|
|
18239
18261
|
*/
|
|
18240
18262
|
var GhostedHeroBanner = function (_a) {
|
|
18241
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, label = _a.label, text = _a.text, img = _a.img, children = _a.children, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, props = __rest(_a, ["heading", "headingLevel", "label", "text", "img", "children", "fontStyle"]);
|
|
18263
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, label = _a.label, text = _a.text, img = _a.img, children = _a.children, _b = _a.fontStyle, fontStyle = _b === void 0 ? "default" : _b, _c = _a.headingWordWrap, headingWordWrap = _c === void 0 ? false : _c, props = __rest(_a, ["heading", "headingLevel", "label", "text", "img", "children", "fontStyle", "headingWordWrap"]);
|
|
18242
18264
|
return (React__default.createElement("div", __assign({ className: "arc-GhostedHeroBanner" }, filterAttrs(props)),
|
|
18243
18265
|
React__default.createElement("div", { className: "arc-GhostedHeroBanner-content" },
|
|
18244
18266
|
label && (React__default.createElement(React__default.Fragment, null,
|
|
18245
18267
|
React__default.createElement(Heading, { fontStyle: "overline" }, label),
|
|
18246
18268
|
React__default.createElement(VerticalSpace, { size: "8" }))),
|
|
18247
|
-
React__default.createElement(Heading, { level: headingLevel, size: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle }, heading),
|
|
18269
|
+
React__default.createElement(Heading, { level: headingLevel, size: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle, isWordWrap: headingWordWrap }, heading),
|
|
18248
18270
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
18249
18271
|
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
18250
18272
|
React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
@@ -18445,11 +18467,11 @@ var GroupItem = function (_a) {
|
|
|
18445
18467
|
|
|
18446
18468
|
/** Use `HeroBanner` to promote key content or products with bold visuals and messaging. */
|
|
18447
18469
|
var HeroBanner = function (_a) {
|
|
18448
|
-
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.extendBeyondContainer, extendBeyondContainer = _f === void 0 ? false : _f, _g = _a.type, type = _g === void 0 ? "light" : _g, _h = _a.fontStyle, fontStyle = _h === void 0 ? "default" : _h, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "extendBeyondContainer", "type", "fontStyle"]);
|
|
18470
|
+
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, minHeight = _a.minHeight, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, _d = _a.isElevated, isElevated = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.extendBeyondContainer, extendBeyondContainer = _f === void 0 ? false : _f, _g = _a.type, type = _g === void 0 ? "light" : _g, _h = _a.fontStyle, fontStyle = _h === void 0 ? "default" : _h, _j = _a.headingWordWrap, headingWordWrap = _j === void 0 ? false : _j, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "minHeight", "isReversed", "isElevated", "headingLevel", "extendBeyondContainer", "type", "fontStyle", "headingWordWrap"]);
|
|
18449
18471
|
return (React__default.createElement(ConditionalWrapper, { condition: extendBeyondContainer, wrapper: function (children) { return (React__default.createElement("div", { className: classNames({
|
|
18450
18472
|
"arc-HeroBanner--expanded": extendBeyondContainer,
|
|
18451
18473
|
}) }, children)); } },
|
|
18452
|
-
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: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle, alignment: "center" }, filterAttrs(props)), children)));
|
|
18474
|
+
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: fontStyle === "default" ? "xl" : "xxl", fontStyle: fontStyle, alignment: "center", headingWordWrap: headingWordWrap }, filterAttrs(props)), children)));
|
|
18453
18475
|
};
|
|
18454
18476
|
|
|
18455
18477
|
/**
|
|
@@ -18487,8 +18509,8 @@ const ArcIconWarn =
|
|
|
18487
18509
|
/**
|
|
18488
18510
|
* Use `HeroButton` as the most prominent call-to-action. It should be used sparingly at the most important parts of a user journey only.
|
|
18489
18511
|
*/
|
|
18490
|
-
var HeroButton =
|
|
18491
|
-
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"]);
|
|
18512
|
+
var HeroButton = function (_a) {
|
|
18513
|
+
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, ref = _a.ref, props = __rest(_a, ["label", "buttonStyle", "icon", "ariaLabel", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form", "ref"]);
|
|
18492
18514
|
var surface = useContext(Context$3).surface;
|
|
18493
18515
|
var HeroButtonClasses = classNames("arc-HeroButton", ["arc-HeroButton--".concat(camelcase(buttonStyle))], {
|
|
18494
18516
|
"arc-HeroButton--onDarkSurface": surface === "dark",
|
|
@@ -18524,7 +18546,7 @@ var HeroButton = forwardRef(function (_a, ref) {
|
|
|
18524
18546
|
: HeroButtonIcons[icon] }))),
|
|
18525
18547
|
isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
|
|
18526
18548
|
React__default.createElement(Spinner, { size: "xxl" }))))));
|
|
18527
|
-
}
|
|
18549
|
+
};
|
|
18528
18550
|
|
|
18529
18551
|
/** Use `Hidden` to hide it's children at specific breakpoints */
|
|
18530
18552
|
var Hidden = function (_a) {
|
|
@@ -18565,8 +18587,8 @@ var CardFooter = function (_a) {
|
|
|
18565
18587
|
|
|
18566
18588
|
/** Use `CardHeading` internally within card components to display a title, icon, or leading content at the top of a card. */
|
|
18567
18589
|
var CardHeading = function (_a) {
|
|
18568
|
-
var onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onBlur = _a.onBlur, onFocus = _a.onFocus, href = _a.href, heading = _a.heading, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d;
|
|
18569
|
-
return (React__default.createElement(Heading, { level: headingLevel, size: size, isWordWrap:
|
|
18590
|
+
var onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onBlur = _a.onBlur, onFocus = _a.onFocus, href = _a.href, heading = _a.heading, _b = _a.size, size = _b === void 0 ? "m" : _b, _c = _a.linkData, linkData = _c === void 0 ? {} : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, _e = _a.headingWordWrap, headingWordWrap = _e === void 0 ? false : _e;
|
|
18591
|
+
return (React__default.createElement(Heading, { level: headingLevel, size: size, isWordWrap: headingWordWrap }, 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)));
|
|
18570
18592
|
};
|
|
18571
18593
|
|
|
18572
18594
|
/** Use `HorizontalCard` to display card content in a horizontal layout. */
|
|
@@ -18590,8 +18612,8 @@ var HorizontalCard = function (_a) {
|
|
|
18590
18612
|
|
|
18591
18613
|
/** Use `ImpactCard` for important content that needs additional hierarchy and prominence. */
|
|
18592
18614
|
var ImpactCard = function (_a) {
|
|
18593
|
-
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 =
|
|
18594
|
-
var
|
|
18615
|
+
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.headingWordWrap, headingWordWrap = _c === void 0 ? false : _c, _d = _a.linkData, linkData = _d === void 0 ? {} : _d, _e = _a.pathway, pathway = _e === void 0 ? "light" : _e, _f = _a.headingLevel, headingLevel = _f === void 0 ? "2" : _f, _g = _a.buttonIcon, buttonIcon = _g === void 0 ? "arrow" : _g, _h = _a.labelLevel, labelLevel = _h === void 0 ? "3" : _h, props = __rest(_a, ["url", "onClick", "heading", "img", "label", "minHeight", "headingSize", "headingWordWrap", "linkData", "pathway", "headingLevel", "buttonIcon", "labelLevel"]);
|
|
18616
|
+
var _j = useState(false), showHoverState = _j[0], setShowHoverState = _j[1];
|
|
18595
18617
|
var surface = useContext(Context$3).surface;
|
|
18596
18618
|
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
18597
18619
|
var isDarkPathway = pathway === "dark";
|
|
@@ -18607,7 +18629,7 @@ var ImpactCard = function (_a) {
|
|
|
18607
18629
|
label && (React__default.createElement("div", { className: "arc-ImpactCard-label" },
|
|
18608
18630
|
React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label),
|
|
18609
18631
|
React__default.createElement(VerticalSpace, { size: "16" }))),
|
|
18610
|
-
React__default.createElement(CardHeading, { heading: heading, size: headingSize, headingLevel: headingLevel, linkData: linkData, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) })),
|
|
18632
|
+
React__default.createElement(CardHeading, { heading: heading, size: headingSize, headingLevel: headingLevel, linkData: linkData, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap })),
|
|
18611
18633
|
React__default.createElement(CardFooter, { buttonIcon: buttonIcon, showButton: true, isDarkPathway: isDarkPathway, isHovered: showHoverState })));
|
|
18612
18634
|
};
|
|
18613
18635
|
|
|
@@ -18629,7 +18651,7 @@ const BtIconArrowRightFill =
|
|
|
18629
18651
|
|
|
18630
18652
|
/** Use `InformationCard` for flexibility and the ability to focus and highlight product specific content. */
|
|
18631
18653
|
var InformationCard = function (_a) {
|
|
18632
|
-
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, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel", "labelLevel"]);
|
|
18654
|
+
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, _c = _a.labelLevel, labelLevel = _c === void 0 ? "3" : _c, headingWordWrap = _a.headingWordWrap, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "badges", "icon", "minHeight", "minHeights", "headingLevel", "labelLevel", "headingWordWrap"]);
|
|
18633
18655
|
var surface = useContext(Context$3).surface;
|
|
18634
18656
|
var _d = useState(false), showHoverState = _d[0], setShowHoverState = _d[1];
|
|
18635
18657
|
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
@@ -18668,7 +18690,7 @@ var InformationCard = function (_a) {
|
|
|
18668
18690
|
label && (React__default.createElement(React__default.Fragment, null,
|
|
18669
18691
|
React__default.createElement("div", { className: "arc-InformationCard-label" },
|
|
18670
18692
|
React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label)))),
|
|
18671
|
-
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) }),
|
|
18693
|
+
React__default.createElement(CardHeading, { heading: heading, headingLevel: headingLevel, href: cardUrl, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap }),
|
|
18672
18694
|
text && React__default.createElement(Text, null, text)),
|
|
18673
18695
|
(button || badges || footerLogo) && (React__default.createElement("div", { className: "arc-InformationCard-footer" },
|
|
18674
18696
|
badges && (React__default.createElement(React__default.Fragment, null,
|
|
@@ -18709,10 +18731,10 @@ var VideoPlayer$1 = React__default.lazy(function () {
|
|
|
18709
18731
|
* Use `MediaCard` to contain content and an image about a single subject.
|
|
18710
18732
|
*/
|
|
18711
18733
|
var MediaCard = function (_a) {
|
|
18712
|
-
var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, _b = _a.labelLevel, labelLevel = _b === void 0 ? "3" : _b, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _c = _a.buttonIcon, buttonIcon = _c === void 0 ? "arrow" : _c, _d = _a.isContained, isContained = _d === void 0 ? true : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "labelLevel", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel"]);
|
|
18734
|
+
var media = _a.media, url = _a.url, onClick = _a.onClick, heading = _a.heading, label = _a.label, _b = _a.labelLevel, labelLevel = _b === void 0 ? "3" : _b, text = _a.text, metaText = _a.metaText, minHeight = _a.minHeight, _c = _a.buttonIcon, buttonIcon = _c === void 0 ? "arrow" : _c, _d = _a.isContained, isContained = _d === void 0 ? true : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.headingWordWrap, headingWordWrap = _f === void 0 ? false : _f, props = __rest(_a, ["media", "url", "onClick", "heading", "label", "labelLevel", "text", "metaText", "minHeight", "buttonIcon", "isContained", "headingLevel", "headingWordWrap"]);
|
|
18713
18735
|
var surface = useContext(Context$3).surface;
|
|
18714
|
-
var
|
|
18715
|
-
var
|
|
18736
|
+
var _g = useState(false), isClient = _g[0], setIsClient = _g[1];
|
|
18737
|
+
var _h = useState(false), showHoverState = _h[0], setShowHoverState = _h[1];
|
|
18716
18738
|
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
18717
18739
|
useEffect(function () {
|
|
18718
18740
|
setIsClient(true);
|
|
@@ -18731,7 +18753,7 @@ var MediaCard = function (_a) {
|
|
|
18731
18753
|
label && (React__default.createElement("div", { className: "arc-MediaCard-label" },
|
|
18732
18754
|
React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label),
|
|
18733
18755
|
React__default.createElement(VerticalSpace, { size: "16" }))),
|
|
18734
|
-
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) }),
|
|
18756
|
+
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), headingWordWrap: headingWordWrap }),
|
|
18735
18757
|
React__default.createElement("div", { className: "arc-MediaCard-textContainer" }, text && (React__default.createElement(React__default.Fragment, null,
|
|
18736
18758
|
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
18737
18759
|
React__default.createElement(Text, null, text),
|
|
@@ -20179,7 +20201,8 @@ var MenuItem = function (_a) {
|
|
|
20179
20201
|
/**
|
|
20180
20202
|
* Visual separator used to divide groups of menu items.
|
|
20181
20203
|
*/
|
|
20182
|
-
var MenuSeparator = function (
|
|
20204
|
+
var MenuSeparator = function (_a) {
|
|
20205
|
+
var props = __rest(_a, []);
|
|
20183
20206
|
return (React__default.createElement(Separator2, __assign({ className: "arc-MenuSeparator" }, filterAttrs(props)),
|
|
20184
20207
|
React__default.createElement(Rule, null)));
|
|
20185
20208
|
};
|
|
@@ -20187,8 +20210,8 @@ var MenuSeparator = function (props) {
|
|
|
20187
20210
|
/**
|
|
20188
20211
|
* The component that pops out when the dropdown menu is open.
|
|
20189
20212
|
*/
|
|
20190
|
-
var MenuContent =
|
|
20191
|
-
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, initalTitle = _a.initalTitle, isFluidToViewport = _a.isFluidToViewport, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "align", "alignOffset", "side", "initalTitle", "isFluidToViewport"]);
|
|
20213
|
+
var MenuContent = function (_a) {
|
|
20214
|
+
var ref = _a.ref, 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, initalTitle = _a.initalTitle, isFluidToViewport = _a.isFluidToViewport, props = __rest(_a, ["ref", "children", "width", "minWidth", "maxWidth", "align", "alignOffset", "side", "initalTitle", "isFluidToViewport"]);
|
|
20192
20215
|
var _c = useMenuContext(), isMobileMenu = _c.isMobileMenu, stack = _c.stack, goBack = _c.goBack, defaultWidth = _c.defaultWidth, reset = _c.reset;
|
|
20193
20216
|
if (!isMobileMenu) {
|
|
20194
20217
|
return (React__default.createElement(Content2, __assign({ ref: ref, style: { width: width !== null && width !== void 0 ? width : defaultWidth, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 12, loop: true, collisionPadding: 0, forceMount: true, align: align, alignOffset: alignOffset, side: side }, filterAttrs(props)),
|
|
@@ -20209,7 +20232,7 @@ var MenuContent = React__default.forwardRef(function (_a, ref) {
|
|
|
20209
20232
|
React__default.createElement(MenuItem, { onClick: goBack, leadingIcon: BtIconChevronLeftMid }, prevTitle),
|
|
20210
20233
|
React__default.createElement(MenuSeparator, null))),
|
|
20211
20234
|
React__default.createElement("div", { key: stack.length, className: "arc-MenuContent-content arc-MenuContent-fade" }, active)));
|
|
20212
|
-
}
|
|
20235
|
+
};
|
|
20213
20236
|
|
|
20214
20237
|
/**
|
|
20215
20238
|
* Displays footer content at the bottom of the menu.
|
|
@@ -20334,21 +20357,21 @@ var MenuItemMultiLevel = function (_a) {
|
|
|
20334
20357
|
if (!trigger || !pairedContent) {
|
|
20335
20358
|
console.warn("MenuItemMultiLevel requires both a Trigger and Portal");
|
|
20336
20359
|
}
|
|
20337
|
-
// Inject content into the trigger,
|
|
20360
|
+
// Inject content into the trigger, skip rendering the portal in mobile
|
|
20338
20361
|
return React__default.cloneElement(trigger, { pairedContent: pairedContent });
|
|
20339
20362
|
};
|
|
20340
20363
|
|
|
20341
20364
|
/**
|
|
20342
20365
|
* The multi-level menu content that pops out when a menu item with children is hovered or clicked.
|
|
20343
20366
|
*/
|
|
20344
|
-
var MenuItemMultiLevelContent =
|
|
20345
|
-
var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "alignOffset"]);
|
|
20367
|
+
var MenuItemMultiLevelContent = function (_a) {
|
|
20368
|
+
var ref = _a.ref, children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["ref", "children", "width", "minWidth", "maxWidth", "alignOffset"]);
|
|
20346
20369
|
var _b = useMenuContext(), isMobileMenu = _b.isMobileMenu, defaultWidth = _b.defaultWidth;
|
|
20347
20370
|
if (isMobileMenu) {
|
|
20348
20371
|
return React__default.createElement(React__default.Fragment, null, children);
|
|
20349
20372
|
}
|
|
20350
20373
|
return (React__default.createElement(SubContent2, __assign({ ref: ref, style: { width: width !== null && width !== void 0 ? width : defaultWidth, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 24, collisionPadding: 12, avoidCollisions: true, alignOffset: alignOffset }, filterAttrs(props)), children));
|
|
20351
|
-
}
|
|
20374
|
+
};
|
|
20352
20375
|
MenuItemMultiLevelContent.displayName = "MenuItemMultiLevelContent";
|
|
20353
20376
|
|
|
20354
20377
|
/**
|
|
@@ -20405,7 +20428,7 @@ var MenuTrigger = function (_a) {
|
|
|
20405
20428
|
/** Use `Modal` to display information that needs immediate action from a user. */
|
|
20406
20429
|
var Modal = function (_a) {
|
|
20407
20430
|
var _b;
|
|
20408
|
-
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"]);
|
|
20431
|
+
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, titleWordWrap = _a.titleWordWrap, props = __rest(_a, ["title", "description", "ariaDescribedBy", "isOpen", "actions", "onRequestClose", "children", "role", "shouldReturnFocus", "isContentScrollable", "size", "fullBleed", "customWidths", "titleWordWrap"]);
|
|
20409
20432
|
var _h = useThemeElement(), themeElement = _h[0], setThemeElement = _h[1];
|
|
20410
20433
|
var triggerRef = useRef(null);
|
|
20411
20434
|
var setTriggerElement = function () {
|
|
@@ -20446,7 +20469,7 @@ var Modal = function (_a) {
|
|
|
20446
20469
|
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
20447
20470
|
React__default.createElement(Surface, null,
|
|
20448
20471
|
React__default.createElement(Title, { asChild: true },
|
|
20449
|
-
React__default.createElement(Heading, { level: "1", size: "m" }, title))),
|
|
20472
|
+
React__default.createElement(Heading, { level: "1", size: "m", isWordWrap: titleWordWrap }, title))),
|
|
20450
20473
|
React__default.createElement(VerticalSpace, { size: "12" })))),
|
|
20451
20474
|
React__default.createElement("div", { className: "arc-Modal-content" },
|
|
20452
20475
|
title && description && (React__default.createElement("div", { className: "arc-Modal-section" },
|
|
@@ -20547,8 +20570,8 @@ var PaginationSimple = function (_a) {
|
|
|
20547
20570
|
* Use `Popover` to display content in a portal, triggered by a button.
|
|
20548
20571
|
*/
|
|
20549
20572
|
var Popover = function (_a) {
|
|
20550
|
-
var align = _a.align, ariaLabel = _a.ariaLabel, alignOffset = _a.alignOffset, _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, minHeight = _a.minHeight, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, _f = _a.constrainToViewport, constrainToViewport = _f === void 0 ? true : _f, side = _a.side, _g = _a.sideOffset, sideOffset = _g === void 0 ? 0 : _g, _h = _a.zIndex, zIndex = _h === void 0 ? 100 : _h, _j = _a.hideWhenDetached, hideWhenDetached = _j === void 0 ? false : _j, _k = _a.useBespokeTrigger, useBespokeTrigger = _k === void 0 ? false : _k, props = __rest(_a, ["align", "ariaLabel", "alignOffset", "arrow", "background", "children", "content", "asChild", "maxWidth", "minHeight", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "constrainToViewport", "side", "sideOffset", "zIndex", "hideWhenDetached", "useBespokeTrigger"]);
|
|
20551
|
-
var
|
|
20573
|
+
var align = _a.align, ariaLabel = _a.ariaLabel, alignOffset = _a.alignOffset, _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, minHeight = _a.minHeight, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, _f = _a.constrainToViewport, constrainToViewport = _f === void 0 ? true : _f, side = _a.side, _g = _a.sideOffset, sideOffset = _g === void 0 ? 0 : _g, _h = _a.zIndex, zIndex = _h === void 0 ? 100 : _h, _j = _a.hideWhenDetached, hideWhenDetached = _j === void 0 ? false : _j, _k = _a.useBespokeTrigger, useBespokeTrigger = _k === void 0 ? false : _k, _l = _a.isFluidToViewport, isFluidToViewport = _l === void 0 ? false : _l, _m = _a.contentMargin, contentMargin = _m === void 0 ? false : _m, _o = _a.isFullBleed, isFullBleed = _o === void 0 ? false : _o, props = __rest(_a, ["align", "ariaLabel", "alignOffset", "arrow", "background", "children", "content", "asChild", "maxWidth", "minHeight", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "constrainToViewport", "side", "sideOffset", "zIndex", "hideWhenDetached", "useBespokeTrigger", "isFluidToViewport", "contentMargin", "isFullBleed"]);
|
|
20574
|
+
var _p = useThemeElement(), themeElement = _p[0], setThemeElement = _p[1];
|
|
20552
20575
|
var alignOffsetDefault = align === "center" ? 0 : -16;
|
|
20553
20576
|
return (React__default.createElement("div", __assign({ className: "arc-Popover" }, filterAttrs(props)),
|
|
20554
20577
|
React__default.createElement(Root2$3, { open: open, onOpenChange: onOpenChange },
|
|
@@ -20562,6 +20585,9 @@ var Popover = function (_a) {
|
|
|
20562
20585
|
"arc-Popover-content--dark": background === "dark",
|
|
20563
20586
|
"arc-Popover-content--brand": background === "brand",
|
|
20564
20587
|
"arc-Popover-content--constrainToViewport": constrainToViewport,
|
|
20588
|
+
"arc-Popover-content--isFluidToViewport": isFluidToViewport,
|
|
20589
|
+
"arc-Popover-content--contentMargin": contentMargin,
|
|
20590
|
+
"arc-Popover-content--isFullBleed": isFullBleed,
|
|
20565
20591
|
}), style: { maxWidth: maxWidth, minHeight: minHeight }, "aria-labelledby": "popover-content" },
|
|
20566
20592
|
content && React__default.createElement("div", { id: "popover-content" }, content),
|
|
20567
20593
|
arrow && (React__default.createElement(PopoverArrow, { className: "arc-Popover-arrow" })))))))))));
|
|
@@ -20621,7 +20647,7 @@ var getProgressBarProps = function (isIndeterminate, progressValue, ariaLabel) {
|
|
|
20621
20647
|
* Use `ProgressBar` to show the progress of a specific task within a page.
|
|
20622
20648
|
*/
|
|
20623
20649
|
var ProgressBar = function (_a) {
|
|
20624
|
-
var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, props = __rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue"]);
|
|
20650
|
+
var _b = _a.state, state = _b === void 0 ? "loading" : _b, _c = _a.value, value = _c === void 0 ? 0 : _c, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, headline = _a.headline, ariaLabel = _a.ariaLabel, action = _a.action, title = _a.title, description = _a.description, displayValue = _a.displayValue, _e = _a.headlineWordWrap, headlineWordWrap = _e === void 0 ? false : _e, props = __rest(_a, ["state", "value", "isIndeterminate", "headline", "ariaLabel", "action", "title", "description", "displayValue", "headlineWordWrap"]);
|
|
20625
20651
|
var progressValue = Math.min(100, Math.max(0, value));
|
|
20626
20652
|
var autoFocusRef = function (canFocus) { return function (el) {
|
|
20627
20653
|
canFocus && el && el.focus();
|
|
@@ -20629,7 +20655,7 @@ var ProgressBar = function (_a) {
|
|
|
20629
20655
|
return (React__default.createElement("div", __assign({ "data-testid": "progress", className: classNames("arc-ProgressBar", "arc-ProgressBar--".concat(state)) }, filterAttrs(props)),
|
|
20630
20656
|
React__default.createElement("div", { className: "arc-ProgressBar-titleDisplayValueContainer" },
|
|
20631
20657
|
React__default.createElement("div", { className: "arc-ProgressBar-titleContainer" },
|
|
20632
|
-
headline && React__default.createElement(Heading, { size: "s" }, headline),
|
|
20658
|
+
headline && (React__default.createElement(Heading, { size: "s", isWordWrap: headlineWordWrap }, headline)),
|
|
20633
20659
|
headline && title && React__default.createElement(VerticalSpace, { size: "4" }),
|
|
20634
20660
|
title && React__default.createElement(Text, null, title)),
|
|
20635
20661
|
displayValue && (React__default.createElement("div", { "data-testid": "display-value", className: "arc-ProgressBar-displayValueContainer" },
|
|
@@ -20833,8 +20859,8 @@ var ProgressStepperItem = function (_a) {
|
|
|
20833
20859
|
};
|
|
20834
20860
|
|
|
20835
20861
|
/** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
|
|
20836
|
-
var ProgressStepper =
|
|
20837
|
-
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition, currentStep = _a.currentStep, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable", "invertLabelPosition", "currentStep"]);
|
|
20862
|
+
var ProgressStepper = function (_a) {
|
|
20863
|
+
var ref = _a.ref, children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition, currentStep = _a.currentStep, props = __rest(_a, ["ref", "children", "size", "isFluid", "direction", "isExpandable", "invertLabelPosition", "currentStep"]);
|
|
20838
20864
|
var items = React__default.Children.toArray(children);
|
|
20839
20865
|
var getStepStatus = function (item) {
|
|
20840
20866
|
var _a;
|
|
@@ -20844,14 +20870,14 @@ var ProgressStepper = forwardRef(function (_a, ref) {
|
|
|
20844
20870
|
"arc-ProgressStepper--vertical": direction === "vertical",
|
|
20845
20871
|
}) }, filterAttrs(props)), items.map(function (item, index) { return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
|
|
20846
20872
|
React__default.createElement(ProgressStepperItem, __assign({ title: item.props.title, titleHref: item.props.titleHref, subTitle: item.props.subTitle, status: item.props.status, stepContent: item.props.stepContent, ariaLabel: item.props.ariaLabel, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, invertLabelPosition: invertLabelPosition, direction: direction, isExpandable: isExpandable, size: size, isViewing: currentStep !== undefined ? currentStep === index : undefined, previousStep: getStepStatus(items[index - 1]) }, filterAttrs(item.props))))); })));
|
|
20847
|
-
}
|
|
20873
|
+
};
|
|
20848
20874
|
|
|
20849
20875
|
/** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
|
|
20850
|
-
var ProgressStepperOverflow =
|
|
20851
|
-
var children = _a.children, size = _a.size, invertLabelPosition = _a.invertLabelPosition, _b = _a.offsetLeft, offsetLeft = _b === void 0 ? 24 : _b, props = __rest(_a, ["children", "size", "invertLabelPosition", "offsetLeft"]);
|
|
20876
|
+
var ProgressStepperOverflow = function (_a) {
|
|
20877
|
+
var ref = _a.ref, children = _a.children, size = _a.size, invertLabelPosition = _a.invertLabelPosition, _b = _a.offsetLeft, offsetLeft = _b === void 0 ? 24 : _b, props = __rest(_a, ["ref", "children", "size", "invertLabelPosition", "offsetLeft"]);
|
|
20852
20878
|
return (React__default.createElement("div", __assign({ className: "arc-ProgressStepperOverflow", style: { paddingLeft: offsetLeft } }, filterAttrs(props)),
|
|
20853
20879
|
React__default.createElement(ProgressStepper, { ref: ref, size: size, invertLabelPosition: invertLabelPosition, isFluid: false }, children)));
|
|
20854
|
-
}
|
|
20880
|
+
};
|
|
20855
20881
|
|
|
20856
20882
|
var useProgressStepperOverflow = function (_a) {
|
|
20857
20883
|
var _b = _a === void 0 ? {} : _a, onLoadStep = _b.onLoadStep, _c = _b.increment, increment = _c === void 0 ? 1 : _c, _d = _b.offsetLeft, offsetLeft = _d === void 0 ? 24 : _d;
|
|
@@ -20968,8 +20994,8 @@ var capitaliseFirstLetter = (word) => {
|
|
|
20968
20994
|
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
20969
20995
|
};
|
|
20970
20996
|
|
|
20971
|
-
var RadioCard =
|
|
20972
|
-
var id = _a.id, icon = _a.icon, label = _a.label, support = _a.support, isDisabled = _a.isDisabled, checked = _a.checked, defaultChecked = _a.defaultChecked, changeEvent = _a.changeEvent, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, children = _a.children, _b = _a.controlLocation, controlLocation = _b === void 0 ? "right" : _b, _c = _a.hideButton, hideButton = _c === void 0 ? false : _c;
|
|
20997
|
+
var RadioCard = function (_a) {
|
|
20998
|
+
var ref = _a.ref, id = _a.id, icon = _a.icon, label = _a.label, support = _a.support, isDisabled = _a.isDisabled, checked = _a.checked, defaultChecked = _a.defaultChecked, changeEvent = _a.changeEvent, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, children = _a.children, _b = _a.controlLocation, controlLocation = _b === void 0 ? "right" : _b, _c = _a.hideButton, hideButton = _c === void 0 ? false : _c;
|
|
20973
20999
|
var surface = useContext(Context$3).surface;
|
|
20974
21000
|
var idLabel = "".concat(id, "-label");
|
|
20975
21001
|
return (React__default.createElement("div", { className: classNames("arc-RadioCard", {
|
|
@@ -20989,19 +21015,19 @@ var RadioCard = forwardRef(function (_a, ref) {
|
|
|
20989
21015
|
!hideButton && (React__default.createElement("div", { className: classNames("arc-RadioCard-radioIcon", {
|
|
20990
21016
|
"arc-RadioCard-radioIcon--isSelected": checked,
|
|
20991
21017
|
}) }))))));
|
|
20992
|
-
}
|
|
21018
|
+
};
|
|
20993
21019
|
|
|
20994
21020
|
/**
|
|
20995
21021
|
* Radio Card component.
|
|
20996
21022
|
*/
|
|
20997
|
-
var RadioCardGroupInput =
|
|
20998
|
-
var icon = _a.icon, support = _a.support, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, children = _a.children, controlLocation = _a.controlLocation, hideButton = _a.hideButton, props = __rest(_a, ["icon", "support", "id", "isDisabled", "label", "value", "children", "controlLocation", "hideButton"]);
|
|
21023
|
+
var RadioCardGroupInput = function (_a) {
|
|
21024
|
+
var ref = _a.ref, icon = _a.icon, support = _a.support, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, children = _a.children, controlLocation = _a.controlLocation, hideButton = _a.hideButton, props = __rest(_a, ["ref", "icon", "support", "id", "isDisabled", "label", "value", "children", "controlLocation", "hideButton"]);
|
|
20999
21025
|
var _b = useRadioContext$1(), name = _b.name, changeEvent = _b.changeEvent, checkedValue = _b.checkedValue, groupDisabled = _b.groupDisabled;
|
|
21000
21026
|
var isChecked = checkedValue === value ? true : false;
|
|
21001
21027
|
var checked = typeof changeEvent !== "function" ? undefined : isChecked;
|
|
21002
21028
|
var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
|
|
21003
21029
|
return (React__default.createElement(RadioCard, __assign({ icon: icon, ref: ref, id: id, support: support, label: label, name: name, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, value: value, isDisabled: isDisabled || groupDisabled, controlLocation: controlLocation, hideButton: hideButton }, props), children));
|
|
21004
|
-
}
|
|
21030
|
+
};
|
|
21005
21031
|
|
|
21006
21032
|
var RadioContext = createContext({});
|
|
21007
21033
|
var Provider$2 = RadioContext.Provider;
|
|
@@ -21028,8 +21054,8 @@ var RadioGroup = function (_a) {
|
|
|
21028
21054
|
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
21029
21055
|
};
|
|
21030
21056
|
|
|
21031
|
-
var RadioGroupButton =
|
|
21032
|
-
var id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin, isError = _a.isError;
|
|
21057
|
+
var RadioGroupButton = function (_a) {
|
|
21058
|
+
var ref = _a.ref, id = _a.id, changeEvent = _a.changeEvent, isDisabled = _a.isDisabled, size = _a.size, labelSize = _a.labelSize, checked = _a.checked, defaultChecked = _a.defaultChecked, radioButtonAlignment = _a.radioButtonAlignment, name = _a.name, blurEvent = _a.blurEvent, value = _a.value, label = _a.label, helper = _a.helper, hideLabel = _a.hideLabel, withMargin = _a.withMargin, isError = _a.isError;
|
|
21033
21059
|
var surface = useContext(Context$3).surface;
|
|
21034
21060
|
var idLabel = "".concat(id, "-label");
|
|
21035
21061
|
return (React__default.createElement("div", { className: classNames({
|
|
@@ -21051,25 +21077,25 @@ var RadioGroupButton = forwardRef(function (_a, ref) {
|
|
|
21051
21077
|
}) },
|
|
21052
21078
|
hideLabel ? React__default.createElement(VisuallyHidden$2, null, label) : label,
|
|
21053
21079
|
helper && (React__default.createElement("span", { className: "arc-RadioGroupButton-helper" }, helper))))));
|
|
21054
|
-
}
|
|
21080
|
+
};
|
|
21055
21081
|
|
|
21056
21082
|
/**
|
|
21057
21083
|
* Radio Button component.
|
|
21058
21084
|
*/
|
|
21059
|
-
var RadioGroupInput =
|
|
21060
|
-
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, isError = _a.isError, props = __rest(_a, ["helper", "id", "isDisabled", "label", "radioButtonAlignment", "value", "isError"]);
|
|
21085
|
+
var RadioGroupInput = function (_a) {
|
|
21086
|
+
var ref = _a.ref, helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, isError = _a.isError, props = __rest(_a, ["ref", "helper", "id", "isDisabled", "label", "radioButtonAlignment", "value", "isError"]);
|
|
21061
21087
|
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, name = _c.name, size = _c.size;
|
|
21062
21088
|
var isChecked = checkedValue === value ? true : false;
|
|
21063
21089
|
var checked = typeof changeEvent !== "function" ? undefined : isChecked;
|
|
21064
21090
|
var defaultChecked = typeof changeEvent !== "function" ? isChecked : undefined;
|
|
21065
21091
|
return (React__default.createElement(RadioGroupButton, __assign({ withMargin: true, ref: ref, id: id, name: name, helper: helper, isDisabled: isDisabled || groupDisabled, size: size, radioButtonAlignment: radioButtonAlignment, label: label, defaultChecked: defaultChecked, checked: checked, changeEvent: changeEvent, blurEvent: blurEvent, value: value, isError: isError }, props)));
|
|
21066
|
-
}
|
|
21092
|
+
};
|
|
21067
21093
|
|
|
21068
21094
|
/**
|
|
21069
21095
|
* Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
|
|
21070
21096
|
*/
|
|
21071
21097
|
var ScrollToTop = function (_a) {
|
|
21072
|
-
var _b = _a.appear, appear = _b === void 0 ? "always" : _b, _c = _a.isFixed, isFixed = _c === void 0 ? true : _c, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, _e = _a.zIndex, zIndex = _e === void 0 ? 100 : _e, _f = _a.focusColor, focusColor = _f === void 0 ? "
|
|
21098
|
+
var _b = _a.appear, appear = _b === void 0 ? "always" : _b, _c = _a.isFixed, isFixed = _c === void 0 ? true : _c, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, _e = _a.zIndex, zIndex = _e === void 0 ? 100 : _e, _f = _a.focusColor, focusColor = _f === void 0 ? "primary" : _f, props = __rest(_a, ["appear", "isFixed", "fill", "zIndex", "focusColor"]);
|
|
21073
21099
|
var _g = useState(false), hasScrolled = _g[0], setHasScrolled = _g[1];
|
|
21074
21100
|
useEffect(function () {
|
|
21075
21101
|
var handleScroll = debounce(function () {
|
|
@@ -21326,7 +21352,7 @@ var SiteHeaderV2 = function (_a) {
|
|
|
21326
21352
|
var _j = useState(false), hasClientSideJavaScript = _j[0], setHasClientSideJavaScript = _j[1];
|
|
21327
21353
|
var _k = useState(false), menuOpen = _k[0], setMenuOpen = _k[1];
|
|
21328
21354
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
21329
|
-
var menubarRef = useRef();
|
|
21355
|
+
var menubarRef = useRef(null);
|
|
21330
21356
|
useEffect(function () {
|
|
21331
21357
|
if (!isMinWidthArcBreakpointL && menuOpen) {
|
|
21332
21358
|
document.body.classList.add("arc-body--overflowHidden");
|
|
@@ -21468,6 +21494,9 @@ var SiteHeaderV2Panel = function (_a) {
|
|
|
21468
21494
|
// by listening to clicks on the entire document and acting accordingly.
|
|
21469
21495
|
var handleClick = function (e) {
|
|
21470
21496
|
var _a, _b, _c, _d;
|
|
21497
|
+
// null check for navItemRef
|
|
21498
|
+
if (!(navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current))
|
|
21499
|
+
return;
|
|
21471
21500
|
(_b = (_a = menubarRef === null || menubarRef === void 0 ? void 0 : menubarRef.current) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.add("noFocus");
|
|
21472
21501
|
// Don't close the Panel…
|
|
21473
21502
|
if (
|
|
@@ -21610,7 +21639,7 @@ var SiteHeaderV2ViewAll = function (_a) {
|
|
|
21610
21639
|
var SiteHeaderV2NavItem = function (_a) {
|
|
21611
21640
|
var _b, _c, _d, _e, _f;
|
|
21612
21641
|
var children = _a.children, href = _a.href, isCurrent = _a.isCurrent, onClick = _a.onClick, title = _a.title, isPrimary = _a.isPrimary, opensFirstWithPanel = _a.opensFirstWithPanel, subTitle = _a.subTitle, props = __rest(_a, ["children", "href", "isCurrent", "onClick", "title", "isPrimary", "opensFirstWithPanel", "subTitle"]);
|
|
21613
|
-
var navItem = useRef();
|
|
21642
|
+
var navItem = useRef(null);
|
|
21614
21643
|
var _g = useState(false), panelOpen = _g[0], setPanelOpen = _g[1];
|
|
21615
21644
|
var _h = useState(true), openSecondaryWithSubNav = _h[0], setOpenSecondaryWithSubNav = _h[1];
|
|
21616
21645
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
@@ -21721,7 +21750,7 @@ var Provider = Context.Provider;
|
|
|
21721
21750
|
var SiteHeaderV2NavItemWithSubNav = function (_a) {
|
|
21722
21751
|
var _b, _c, _d, _e, _f;
|
|
21723
21752
|
var href = _a.href, slot1 = _a.slot1, slot2 = _a.slot2, slot3 = _a.slot3, slot4 = _a.slot4, slot5 = _a.slot5, slot6 = _a.slot6, _g = _a.subTitle, subTitle = _g === void 0 ? null : _g, title = _a.title, onViewAllClick = _a.onViewAllClick, isPrimary = _a.isPrimary, opensFirstWithPanel = _a.opensFirstWithPanel, viewAllTitle = _a.viewAllTitle, props = __rest(_a, ["href", "slot1", "slot2", "slot3", "slot4", "slot5", "slot6", "subTitle", "title", "onViewAllClick", "isPrimary", "opensFirstWithPanel", "viewAllTitle"]);
|
|
21724
|
-
var navItem = useRef();
|
|
21753
|
+
var navItem = useRef(null);
|
|
21725
21754
|
var _h = useState(true), defaultItem = _h[0], setDefaultItem = _h[1];
|
|
21726
21755
|
var _j = useState(false), panelOpen = _j[0], setPanelOpen = _j[1];
|
|
21727
21756
|
var _k = useState(false), horizontalPanelOpen = _k[0], setHorizontalPanelOpen = _k[1];
|
|
@@ -21829,7 +21858,7 @@ var SiteHeaderV2SubNavItem = function (_a) {
|
|
|
21829
21858
|
var _b, _c;
|
|
21830
21859
|
var children = _a.children, _d = _a.isDefaultItem, isDefaultItem = _d === void 0 ? false : _d, href = _a.href, onClick = _a.onClick, offsetXL = _a.offsetXL, subTitle = _a.subTitle, title = _a.title, viewAllTitle = _a.viewAllTitle, icon = _a.icon, props = __rest(_a, ["children", "isDefaultItem", "href", "onClick", "offsetXL", "subTitle", "title", "viewAllTitle", "icon"]);
|
|
21831
21860
|
var navItem = useContext(Context).navItem;
|
|
21832
|
-
var subNavItem = useRef();
|
|
21861
|
+
var subNavItem = useRef(null);
|
|
21833
21862
|
var _e = useState(false), panelOpen = _e[0], setPanelOpen = _e[1];
|
|
21834
21863
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
21835
21864
|
useEffect(function () {
|
|
@@ -21887,8 +21916,8 @@ var Skeleton = function (_a) {
|
|
|
21887
21916
|
};
|
|
21888
21917
|
|
|
21889
21918
|
/** Use `SkipLink` to help keyboard-only users skip to the main content on a page. */
|
|
21890
|
-
var SkipLink = function (_a
|
|
21891
|
-
var children = _a.children;
|
|
21919
|
+
var SkipLink = function (_a) {
|
|
21920
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
21892
21921
|
return (React__default.createElement("div", __assign({ className: "arc-SkipLink" }, filterAttrs(props)), children));
|
|
21893
21922
|
};
|
|
21894
21923
|
|
|
@@ -22247,8 +22276,8 @@ var Tag = function (_a) {
|
|
|
22247
22276
|
};
|
|
22248
22277
|
|
|
22249
22278
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
22250
|
-
var TextArea =
|
|
22251
|
-
var _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, width = _a.width, autoComplete = _a.autoComplete, _j = _a.minHeight, minHeight = _j === void 0 ? "116px" : _j, maxHeight = _a.maxHeight, isErrorAlert = _a.isErrorAlert, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onFocus", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete", "minHeight", "maxHeight", "isErrorAlert"]);
|
|
22279
|
+
var TextArea = function (_a) {
|
|
22280
|
+
var ref = _a.ref, _b = _a.defaultValue, defaultValue = _b === void 0 ? "" : _b, errorMessage = _a.errorMessage, helper = _a.helper, hideLabel = _a.hideLabel, id = _a.id, _c = _a.resize, resize = _c === void 0 ? "manual" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isReadOnly, isReadOnly = _e === void 0 ? false : _e, _f = _a.isRequired, isRequired = _f === void 0 ? false : _f, _g = _a.showCharacterCount, showCharacterCount = _g === void 0 ? true : _g, label = _a.label, _h = _a.labelSize, labelSize = _h === void 0 ? "l" : _h, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onFocus = _a.onFocus, onChange = _a.onChange, onClickDisclosure = _a.onClickDisclosure, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, width = _a.width, autoComplete = _a.autoComplete, _j = _a.minHeight, minHeight = _j === void 0 ? "116px" : _j, maxHeight = _a.maxHeight, isErrorAlert = _a.isErrorAlert, props = __rest(_a, ["ref", "defaultValue", "errorMessage", "helper", "hideLabel", "id", "resize", "isDisabled", "isReadOnly", "isRequired", "showCharacterCount", "label", "labelSize", "maxLength", "name", "onBlur", "onFocus", "onChange", "onClickDisclosure", "value", "disclosureTitle", "disclosureText", "width", "autoComplete", "minHeight", "maxHeight", "isErrorAlert"]);
|
|
22252
22281
|
var surface = useContext(Context$3).surface;
|
|
22253
22282
|
var ourRef = useRef(null);
|
|
22254
22283
|
var _k = useState((value && value.length) || (defaultValue && defaultValue.length) || 0), characterCount = _k[0], setCharacterCount = _k[1];
|
|
@@ -22297,13 +22326,13 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
22297
22326
|
minHeight: minHeight,
|
|
22298
22327
|
marginTop: hideLabel ? 0 : undefined,
|
|
22299
22328
|
}, "aria-describedby": ariaDescribedby, autoComplete: autoComplete })));
|
|
22300
|
-
}
|
|
22329
|
+
};
|
|
22301
22330
|
|
|
22302
22331
|
// package.json
|
|
22303
22332
|
var package_default = {
|
|
22304
22333
|
name: "@arc-ui/helpers",
|
|
22305
22334
|
private: true,
|
|
22306
|
-
version: "
|
|
22335
|
+
version: "13.0.0",
|
|
22307
22336
|
type: "module",
|
|
22308
22337
|
homepage: "https://ui.digital-ent-int.bt.com",
|
|
22309
22338
|
author: "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
@@ -23373,9 +23402,9 @@ var Truncate = function (_a) {
|
|
|
23373
23402
|
|
|
23374
23403
|
/** Use `TypographyCard` for content that benefits from larger and energetic typography. */
|
|
23375
23404
|
var TypographyCard = function (_a) {
|
|
23376
|
-
var url = _a.url, onClick = _a.onClick, heading = _a.heading, metaText = _a.metaText, 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.buttonIcon, buttonIcon = _e === void 0 ? "arrow" : _e, _f = _a.headingLevel, headingLevel = _f === void 0 ? "2" : _f, _g = _a.labelLevel, labelLevel = _g === void 0 ? "3" : _g, props = __rest(_a, ["url", "onClick", "heading", "metaText", "label", "minHeight", "headingSize", "linkData", "pathway", "buttonIcon", "headingLevel", "labelLevel"]);
|
|
23405
|
+
var url = _a.url, onClick = _a.onClick, heading = _a.heading, metaText = _a.metaText, 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.buttonIcon, buttonIcon = _e === void 0 ? "arrow" : _e, _f = _a.headingLevel, headingLevel = _f === void 0 ? "2" : _f, _g = _a.labelLevel, labelLevel = _g === void 0 ? "3" : _g, _h = _a.headingWordWrap, headingWordWrap = _h === void 0 ? false : _h, props = __rest(_a, ["url", "onClick", "heading", "metaText", "label", "minHeight", "headingSize", "linkData", "pathway", "buttonIcon", "headingLevel", "labelLevel", "headingWordWrap"]);
|
|
23377
23406
|
var surface = useContext(Context$3).surface;
|
|
23378
|
-
var
|
|
23407
|
+
var _j = useState(false), showHoverState = _j[0], setShowHoverState = _j[1];
|
|
23379
23408
|
var handleShowHoverState = function (show) { return function () { return setShowHoverState(show); }; };
|
|
23380
23409
|
var isDarkPathway = pathway === "dark";
|
|
23381
23410
|
return (React__default.createElement("div", __assign({ style: { minHeight: minHeight }, className: classNames("arc-TypographyCard", {
|
|
@@ -23388,7 +23417,7 @@ var TypographyCard = function (_a) {
|
|
|
23388
23417
|
label && (React__default.createElement("div", { className: "arc-TypographyCard-label" },
|
|
23389
23418
|
React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline" }, label),
|
|
23390
23419
|
React__default.createElement(VerticalSpace, { size: "16" }))),
|
|
23391
|
-
React__default.createElement(CardHeading, { size: headingSize, linkData: linkData, heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) })),
|
|
23420
|
+
React__default.createElement(CardHeading, { size: headingSize, linkData: linkData, heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false), headingWordWrap: headingWordWrap })),
|
|
23392
23421
|
React__default.createElement(CardFooter, { showButton: true, isDarkPathway: isDarkPathway, buttonIcon: buttonIcon, metaText: metaText, isHovered: showHoverState })));
|
|
23393
23422
|
};
|
|
23394
23423
|
|
|
@@ -26542,10 +26571,10 @@ var ReactPlayerVimeo = /*@__PURE__*/getDefaultExportFromCjs(vimeoExports);
|
|
|
26542
26571
|
* Use `VideoPlayer` to embed videos from YouTube or Vimeo.
|
|
26543
26572
|
*/
|
|
26544
26573
|
var VideoPlayer = function (_a) {
|
|
26545
|
-
var title = _a.title, description = _a.description, transcriptLink = _a.transcriptLink, transcriptContent = _a.transcriptContent, light = _a.light, url = _a.url, onReady = _a.onReady, onPlay = _a.onPlay, onStart = _a.onStart, onPause = _a.onPause, onError = _a.onError, onEnded = _a.onEnded, _b = _a.isBorderRadius, isBorderRadius = _b === void 0 ? false : _b, _c = _a.isSupportingTextHidden, isSupportingTextHidden = _c === void 0 ? false : _c, props = __rest(_a, ["title", "description", "transcriptLink", "transcriptContent", "light", "url", "onReady", "onPlay", "onStart", "onPause", "onError", "onEnded", "isBorderRadius", "isSupportingTextHidden"]);
|
|
26574
|
+
var title = _a.title, description = _a.description, transcriptLink = _a.transcriptLink, transcriptContent = _a.transcriptContent, light = _a.light, url = _a.url, onReady = _a.onReady, onPlay = _a.onPlay, onStart = _a.onStart, onPause = _a.onPause, onError = _a.onError, onEnded = _a.onEnded, _b = _a.isBorderRadius, isBorderRadius = _b === void 0 ? false : _b, _c = _a.isSupportingTextHidden, isSupportingTextHidden = _c === void 0 ? false : _c, _d = _a.titleWordWrap, titleWordWrap = _d === void 0 ? false : _d, props = __rest(_a, ["title", "description", "transcriptLink", "transcriptContent", "light", "url", "onReady", "onPlay", "onStart", "onPause", "onError", "onEnded", "isBorderRadius", "isSupportingTextHidden", "titleWordWrap"]);
|
|
26546
26575
|
var TextWrapper = isSupportingTextHidden ? VisuallyHidden$2 : "div";
|
|
26547
26576
|
var isVimeo = new URL(url).hostname.includes("vimeo");
|
|
26548
|
-
var
|
|
26577
|
+
var _e = useState(false), isClient = _e[0], setIsClient = _e[1];
|
|
26549
26578
|
// https://nextjs.org/docs/messages/react-hydration-error#solution-1-using-useeffect-to-run-on-the-client-only
|
|
26550
26579
|
useEffect(function () {
|
|
26551
26580
|
setIsClient(true);
|
|
@@ -26576,7 +26605,7 @@ var VideoPlayer = function (_a) {
|
|
|
26576
26605
|
: isClient && React__default.createElement(ReactPlayerYoutube, __assign({}, playerProps))),
|
|
26577
26606
|
React__default.createElement(TextWrapper, null,
|
|
26578
26607
|
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
26579
|
-
React__default.createElement(Heading, { level: "3", size: "s" }, title),
|
|
26608
|
+
React__default.createElement(Heading, { level: "3", size: "s", isWordWrap: titleWordWrap }, title),
|
|
26580
26609
|
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
26581
26610
|
React__default.createElement(Text, null, description)),
|
|
26582
26611
|
transcriptLink && (React__default.createElement(React__default.Fragment, null,
|
|
@@ -26657,14 +26686,14 @@ var NavigationHeaderInlineAction = function (_a) {
|
|
|
26657
26686
|
React__default.createElement(Text, { size: "l" }, text))));
|
|
26658
26687
|
};
|
|
26659
26688
|
|
|
26660
|
-
var NavigationHeaderButton =
|
|
26661
|
-
var isActive = _a.isActive, children = _a.children, onClick = _a.onClick, _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, props = __rest(_a, ["isActive", "children", "onClick", "isPadded"]);
|
|
26689
|
+
var NavigationHeaderButton = function (_a) {
|
|
26690
|
+
var ref = _a.ref, isActive = _a.isActive, children = _a.children, onClick = _a.onClick, _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, props = __rest(_a, ["ref", "isActive", "children", "onClick", "isPadded"]);
|
|
26662
26691
|
var surface = useContext(Context$3).surface;
|
|
26663
26692
|
return (React__default.createElement("button", __assign({}, props, { ref: ref, onClick: onClick, className: classNames("arc-NavigationHeaderButton", suffixModifier("arc-NavigationHeaderButton--on", surface), {
|
|
26664
26693
|
"arc-NavigationHeaderButton--active": isActive,
|
|
26665
26694
|
"arc-NavigationHeaderButton--padded": isPadded,
|
|
26666
26695
|
}) }), children));
|
|
26667
|
-
}
|
|
26696
|
+
};
|
|
26668
26697
|
|
|
26669
26698
|
var NavigationHeaderDisclosure = function (_a) {
|
|
26670
26699
|
var heading = _a.heading, children = _a.children;
|
|
@@ -26710,12 +26739,12 @@ var NavigationHeaderMenuLink = function (_a) {
|
|
|
26710
26739
|
React__default.createElement(ThemeIcon, { size: 28, icon: "navigationHeaderMenuLinkLarge" })))))));
|
|
26711
26740
|
};
|
|
26712
26741
|
|
|
26713
|
-
var NavigationHeaderCloseButton =
|
|
26714
|
-
var onClick = _a.onClick, props = __rest(_a, ["onClick"]);
|
|
26742
|
+
var NavigationHeaderCloseButton = function (_a) {
|
|
26743
|
+
var ref = _a.ref, onClick = _a.onClick, props = __rest(_a, ["ref", "onClick"]);
|
|
26715
26744
|
var surface = useContext(Context$3).surface;
|
|
26716
26745
|
return (React__default.createElement("button", __assign({}, props, { ref: ref, "aria-label": "close", onClick: onClick, className: classNames("arc-NavigationHeaderCloseButton", suffixModifier("arc-NavigationHeaderCloseButton--on", surface)) }),
|
|
26717
26746
|
React__default.createElement(ThemeIcon, { size: 32, icon: "navigationHeaderClose" })));
|
|
26718
|
-
}
|
|
26747
|
+
};
|
|
26719
26748
|
|
|
26720
26749
|
var NavigationHeaderBurgerMenu = function (_a) {
|
|
26721
26750
|
var navItems = _a.navItems, actions = _a.actions, header = _a.header, footer = _a.footer, logo = _a.logo, background = _a.background, onOpenChange = _a.onOpenChange, _b = _a.pathway, pathway = _b === void 0 ? "invert" : _b;
|