@arc-ui/components 12.0.0-beta.20 → 12.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Alert/Alert.cjs +40 -14
- package/lib/Alert/Alert.mjs +41 -15
- 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 +2 -2
- package/lib/Banner/Banner.mjs +2 -2
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -1
- package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -1
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +2 -2
- package/lib/Calendar/Calendar.mjs +2 -2
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +1 -1
- package/lib/Carousel/Carousel.mjs +1 -1
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +3 -2
- package/lib/ContentSwitcher/ContentSwitcher.mjs +3 -2
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +3 -3
- package/lib/DatePicker/DatePicker.mjs +4 -4
- 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 +2 -18
- package/lib/Drawer/Drawer.mjs +3 -19
- 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/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.mjs +1 -1
- 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 +2 -2
- package/lib/HeroBanner/HeroBanner.mjs +2 -2
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/Hidden.cjs +6 -14
- package/lib/Hidden/Hidden.mjs +4 -16
- package/lib/Hidden/styles.css +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/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +6 -22
- package/lib/InformationCard/InformationCard.mjs +4 -20
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +8 -51
- package/lib/Link/Link.mjs +7 -54
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +1 -1
- package/lib/Menu/Menu.mjs +1 -1
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/styles.css +1 -1
- package/lib/NavigationHeader/NavigationHeader.cjs +687 -0
- package/lib/NavigationHeader/NavigationHeader.mjs +682 -0
- package/lib/NavigationHeader/styles.css +1 -0
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/Popover.cjs +9 -26
- package/lib/Popover/Popover.mjs +7 -28
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +3 -2
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +3 -2
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +2 -1
- package/lib/ScrollToTop/ScrollToTop.mjs +2 -1
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/styles.css +1 -1
- package/lib/SiteFooter/SiteFooter.cjs +2 -2
- package/lib/SiteFooter/SiteFooter.mjs +2 -2
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +2 -2
- package/lib/SiteFooterV2/SiteFooterV2.mjs +2 -2
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +2 -2
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +3 -3
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +23 -34
- package/lib/TabbedBanner/TabbedBanner.mjs +25 -36
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +2 -2
- package/lib/Tabs/Tabs.mjs +2 -2
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +2 -2
- package/lib/TemplateBanner/TemplateBanner.mjs +2 -2
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +9 -7
- package/lib/TextArea/TextArea.mjs +9 -7
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +11 -1363
- package/lib/Tooltip/Tooltip.mjs +10 -1348
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/Visible.cjs +1 -1
- package/lib/Visible/Visible.mjs +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Calendar-D4ZSaHHU.cjs → Calendar-B-va25n2.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherList-nlxMHXs-.cjs → ContentSwitcherList-bCEzIPN2.cjs} +3 -3
- package/lib/_shared/cjs/{DatePicker-DS6fAvxD.cjs → DatePicker-Dt4faA_N.cjs} +1 -1
- package/lib/_shared/cjs/Hidden-Vsv1-xWO.cjs +19 -0
- package/lib/_shared/cjs/Link-7xUgVf1I.cjs +48 -0
- package/lib/_shared/cjs/Popover-C5mmMkYU.cjs +31 -0
- package/lib/_shared/cjs/{ProgressStepperOverflow-v-TyS5Sp.cjs → ProgressStepperOverflow-BAGZNC26.cjs} +1 -1
- package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-fQPk0gZU.cjs → SiteHeaderV2NavItemWithSubNav-CagFKPEa.cjs} +1 -1
- package/lib/_shared/cjs/{TemplateBanner-CGtTUy81.cjs → TemplateBanner-CImrJ9ON.cjs} +15 -4
- package/lib/_shared/cjs/Tooltip-BPHL0ELI.cjs +1378 -0
- package/lib/_shared/cjs/{Visible-Dx__9oZG.cjs → Visible-vchtZSfm.cjs} +2 -1
- package/lib/_shared/cjs/arc-breakpoints-DWUgmeLA.cjs +23 -0
- package/lib/_shared/cjs/{debounce-BeIT3oyF.cjs → debounce-uPMetQ6J.cjs} +4 -251
- package/lib/_shared/cjs/{index.es-DBEGtWPg.cjs → index.es-DlNskPlN.cjs} +1 -1
- package/lib/_shared/cjs/isSymbol-BGrHFUbV.cjs +255 -0
- package/lib/_shared/cjs/kebabCase-D5yA6u-V.cjs +743 -0
- package/lib/_shared/esm/{Calendar-CjqPM7ta.mjs → Calendar-Bd2_eT1Y.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherList-DKPD9GfN.mjs → ContentSwitcherList-bCQz0qkU.mjs} +3 -3
- package/lib/_shared/esm/{DatePicker-3sYJ3wGn.mjs → DatePicker-DT4OEzxP.mjs} +1 -1
- package/lib/_shared/esm/Hidden-DsrAaC0z.mjs +17 -0
- package/lib/_shared/esm/Link-Biyg9qBH.mjs +46 -0
- package/lib/_shared/esm/Popover-8FfvgL4c.mjs +29 -0
- package/lib/_shared/esm/{ProgressStepperOverflow-B9ba8ljs.mjs → ProgressStepperOverflow-fPkLltVO.mjs} +1 -1
- package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-BMoBdUxK.mjs → SiteHeaderV2NavItemWithSubNav-CxGwdV6u.mjs} +1 -1
- package/lib/_shared/esm/{TemplateBanner-Up6cR-3_.mjs → TemplateBanner-DeHjliNP.mjs} +15 -4
- package/lib/_shared/esm/Tooltip-Dc82Ht7G.mjs +1358 -0
- package/lib/_shared/esm/{Visible-C-jVXUWp.mjs → Visible-B13QJn7R.mjs} +2 -1
- package/lib/_shared/esm/arc-breakpoints-D5hR5m3t.mjs +21 -0
- package/lib/_shared/esm/{debounce-mCD9-ufA.mjs → debounce-D_Nx5go6.mjs} +2 -249
- package/lib/_shared/esm/{index.es-DCvYtQfu.mjs → index.es-C3WqfFKH.mjs} +1 -1
- package/lib/_shared/esm/isSymbol-DgWNE2Tm.mjs +251 -0
- package/lib/_shared/esm/kebabCase-CCEMRBfd.mjs +737 -0
- package/lib/index.cjs +2183 -792
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +393 -131
- package/lib/index.d.mts +393 -131
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2181 -794
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +12 -8
- package/package.json +10 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as __spreadArray, a as __assign, _ as __rest, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default, { createContext, forwardRef, useContext, useCallback, useRef, useState, useReducer, useEffect } from 'react';
|
|
3
3
|
import { r as requiredArgs, t as toDate, b as toInteger, _ as _typeof, g as getDefaultOptions, f as format } from './index-Cr6KeQLU.mjs';
|
|
4
|
-
import { A as ArcSizeBreakpointsM } from './index.es-
|
|
4
|
+
import { A as ArcSizeBreakpointsM } from './index.es-C3WqfFKH.mjs';
|
|
5
5
|
import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
|
|
6
6
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
7
7
|
import { T as Text } from './Text-CBlnm5CT.mjs';
|
package/lib/_shared/esm/{ContentSwitcherList-DKPD9GfN.mjs → ContentSwitcherList-bCQz0qkU.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { a as $69cb30bb0017df05$export$be92b6f5f03c0fe9, b as $69cb30bb0017df05$export$7c6e2c02157bb7d2, c as $69cb30bb0017df05$export$54c2e3dc7acea9f5 } from './index-BDWwJ5x2.mjs';
|
|
4
|
-
import { d as debounce } from './debounce-
|
|
4
|
+
import { d as debounce } from './debounce-D_Nx5go6.mjs';
|
|
5
5
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
6
6
|
|
|
7
7
|
/** Use `ContentSwitcher` to allow users to navigate between different sections of relevant content. */
|
|
@@ -12,8 +12,8 @@ var ContentSwitcher = function (_a) {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
var ContentSwitcherContent = function (_a) {
|
|
15
|
-
var children = _a.children, value = _a.value;
|
|
16
|
-
return (React__default.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2, { className: "arc-ContentSwitcherContent", value: value, tabIndex: -1 },
|
|
15
|
+
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"]);
|
|
16
|
+
return (React__default.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2, __assign({ className: "arc-ContentSwitcherContent", value: value, tabIndex: -1, forceMount: forceMount ? true : undefined, hidden: hidden }, filterAttrs(props)),
|
|
17
17
|
React__default.createElement("div", { className: "arc-ContentSwitcherContent-wrapper" }, children)));
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -2,7 +2,7 @@ import { b as __spreadArray, _ as __rest, a as __assign, f as filterAttrs } from
|
|
|
2
2
|
import React__default, { forwardRef, useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
4
|
import { R as Root2, A as Anchor2, P as Portal, C as Content2 } from './index-CxrL7jIX.mjs';
|
|
5
|
-
import { i as isBefore, a as isAfter, c as compareAsc, C as Calendar } from './Calendar-
|
|
5
|
+
import { i as isBefore, a as isAfter, c as compareAsc, C as Calendar } from './Calendar-Bd2_eT1Y.mjs';
|
|
6
6
|
import { r as requiredArgs, t as toDate, a as isValid, f as format } from './index-Cr6KeQLU.mjs';
|
|
7
7
|
import { e as useThemeElement } from './index-Bz2JQq34.mjs';
|
|
8
8
|
import { a as TextInputWithPlaceHolder } from './TextInput-Dk7qNGoh.mjs';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
+
|
|
5
|
+
var Hidden = function (_a) {
|
|
6
|
+
var children = _a.children, xs = _a.xs, s = _a.s, m = _a.m, l = _a.l, xl = _a.xl, xxl = _a.xxl, props = __rest(_a, ["children", "xs", "s", "m", "l", "xl", "xxl"]);
|
|
7
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
8
|
+
"arc-Hidden--xs": xs,
|
|
9
|
+
"arc-Hidden--s": s,
|
|
10
|
+
"arc-Hidden--m": m,
|
|
11
|
+
"arc-Hidden--l": l,
|
|
12
|
+
"arc-Hidden--xl": xl,
|
|
13
|
+
"arc-Hidden--xxl": xxl,
|
|
14
|
+
}) }, filterAttrs(props)), children));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { Hidden as H };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
|
+
import React__default, { useContext } from 'react';
|
|
3
|
+
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
+
import { C as Context } from './Surface-Colbp3Zx.mjs';
|
|
5
|
+
import { V as VisuallyHidden } from './VisuallyHidden-DqAgoqJo.mjs';
|
|
6
|
+
import { T as ThemeIcon } from './ThemeIcon-CN_Ed5b1.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Use `Link` to direct users to a new page or piece of information.
|
|
10
|
+
*/
|
|
11
|
+
var Link = function (_a) {
|
|
12
|
+
var id = _a.id, href = _a.href, title = _a.title, rel = _a.rel, target = _a.target, children = _a.children, onClick = _a.onClick, screenReaderText = _a.screenReaderText, _b = _a.isButton, isButton = _b === void 0 ? false : _b, _c = _a.isImplied, isImplied = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? "m" : _d, props = __rest(_a, ["id", "href", "title", "rel", "target", "children", "onClick", "screenReaderText", "isButton", "isImplied", "size"]);
|
|
13
|
+
var surface = useContext(Context).surface;
|
|
14
|
+
var isExternalLink = target === "_blank";
|
|
15
|
+
var textArray = children.split(" ");
|
|
16
|
+
var firstText = textArray.slice(0, -1).join(" ");
|
|
17
|
+
var lastWord = textArray[textArray.length - 1];
|
|
18
|
+
var commonProps = {
|
|
19
|
+
id: id,
|
|
20
|
+
onClick: onClick,
|
|
21
|
+
className: classNames("arc-Link", "arc-Link--".concat(size), {
|
|
22
|
+
"arc-Link--onDarkSurface": surface === "dark",
|
|
23
|
+
"arc-Link--onLightSurface": surface !== "dark",
|
|
24
|
+
"arc-Link--isImplied": isImplied,
|
|
25
|
+
}),
|
|
26
|
+
};
|
|
27
|
+
var elementProps = {
|
|
28
|
+
a: __assign(__assign({}, commonProps), { href: href, title: title, target: target, rel: rel }),
|
|
29
|
+
button: __assign({}, commonProps),
|
|
30
|
+
span: __assign({}, commonProps),
|
|
31
|
+
};
|
|
32
|
+
var LinkElement = isButton ? "button" : href ? "a" : "span";
|
|
33
|
+
return (React__default.createElement(LinkElement, __assign({}, elementProps[LinkElement], filterAttrs(props)),
|
|
34
|
+
React__default.createElement("div", { className: "arc-Link-wrapper" },
|
|
35
|
+
React__default.createElement(VisuallyHidden, null,
|
|
36
|
+
screenReaderText || children,
|
|
37
|
+
isExternalLink && " (Opens in new window)"),
|
|
38
|
+
firstText && (React__default.createElement("span", { "aria-hidden": true, className: "arc-Link-text" },
|
|
39
|
+
firstText,
|
|
40
|
+
"\u00A0")),
|
|
41
|
+
React__default.createElement("span", { className: "arc-Link-iconWrapper" },
|
|
42
|
+
React__default.createElement("span", { "aria-hidden": true, className: "arc-Link-text" }, lastWord),
|
|
43
|
+
isExternalLink && (React__default.createElement(ThemeIcon, { icon: "linkExternal", size: size === "s" ? 20 : 24 }))))));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { Link as L };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
+
import { R as Root2, A as Anchor2, T as Trigger, P as Portal, C as Content2, a as PopoverArrow } from './index-CxrL7jIX.mjs';
|
|
5
|
+
import { e as useThemeElement } from './index-Bz2JQq34.mjs';
|
|
6
|
+
import { S as Surface } from './Surface-Colbp3Zx.mjs';
|
|
7
|
+
|
|
8
|
+
/** Use `Popover` to display content in a portal, triggered by a button. */
|
|
9
|
+
var Popover = function (_a) {
|
|
10
|
+
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, onCloseAutoFocus = _a.onCloseAutoFocus, onEscapeKeyDown = _a.onEscapeKeyDown, onFocusOutside = _a.onFocusOutside, onInteractOutside = _a.onInteractOutside, onOpenAutoFocus = _a.onOpenAutoFocus, onPointerDownOutside = _a.onPointerDownOutside, onOpenChange = _a.onOpenChange, open = _a.open, side = _a.side, _f = _a.sideOffset, sideOffset = _f === void 0 ? 0 : _f, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, _h = _a.hideWhenDetached, hideWhenDetached = _h === void 0 ? false : _h, _j = _a.useBespokeTrigger, useBespokeTrigger = _j === void 0 ? false : _j, props = __rest(_a, ["align", "ariaLabel", "alignOffset", "arrow", "background", "children", "content", "asChild", "maxWidth", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onInteractOutside", "onOpenAutoFocus", "onPointerDownOutside", "onOpenChange", "open", "side", "sideOffset", "zIndex", "hideWhenDetached", "useBespokeTrigger"]);
|
|
11
|
+
var _k = useThemeElement(), themeElement = _k[0], setThemeElement = _k[1];
|
|
12
|
+
var alignOffsetDefault = align === "center" ? 0 : -16;
|
|
13
|
+
return (React__default.createElement("div", __assign({ className: "arc-Popover" }, filterAttrs(props)),
|
|
14
|
+
React__default.createElement(Root2, { open: open, onOpenChange: onOpenChange },
|
|
15
|
+
useBespokeTrigger ? (React__default.createElement(Anchor2, { className: "arc-Popover-anchor" }, children)) : (React__default.createElement(Trigger, { "aria-label": ariaLabel, asChild: asChild, className: "arc-Popover-trigger" }, children)),
|
|
16
|
+
React__default.createElement("div", { ref: setThemeElement },
|
|
17
|
+
React__default.createElement(Portal, { container: themeElement },
|
|
18
|
+
React__default.createElement("div", { "data-cy": "z-index", style: { position: "absolute", zIndex: zIndex } },
|
|
19
|
+
React__default.createElement(Content2, { side: side, sideOffset: sideOffset, align: align, hideWhenDetached: hideWhenDetached, alignOffset: alignOffset !== null && alignOffset !== void 0 ? alignOffset : alignOffsetDefault, onOpenAutoFocus: onOpenAutoFocus, onCloseAutoFocus: onCloseAutoFocus, onEscapeKeyDown: onEscapeKeyDown, onPointerDownOutside: onPointerDownOutside, onFocusOutside: onFocusOutside, onInteractOutside: onInteractOutside },
|
|
20
|
+
React__default.createElement(Surface, { isTransparent: true, background: background === "light" ? "light-white" : "dark-black" },
|
|
21
|
+
React__default.createElement("div", { className: classNames("arc-Popover-content", {
|
|
22
|
+
"arc-Popover-content--dark": background === "dark",
|
|
23
|
+
"arc-Popover-content--brand": background === "brand",
|
|
24
|
+
}), style: { maxWidth: maxWidth }, "aria-labelledby": "popover-content" },
|
|
25
|
+
content && React__default.createElement("div", { id: "popover-content" }, content),
|
|
26
|
+
arrow && (React__default.createElement(PopoverArrow, { className: "arc-Popover-arrow" })))))))))));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { Popover as P };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default, { forwardRef, useState, useRef, useImperativeHandle, useEffect } from 'react';
|
|
3
|
-
import { d as debounce } from './debounce-
|
|
3
|
+
import { d as debounce } from './debounce-D_Nx5go6.mjs';
|
|
4
4
|
import { P as ProgressStepper } from './ProgressStepper-CLBtBNy2.mjs';
|
|
5
5
|
|
|
6
6
|
/** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default, { createContext, useState, useRef, useEffect, useContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import { c as ArcSizeBreakpointsL } from './index.es-
|
|
4
|
+
import { c as ArcSizeBreakpointsL } from './index.es-C3WqfFKH.mjs';
|
|
5
5
|
import { a as BtIconChevronRight2Px, B as BtIconChevronLeft2Px } from './BtIconChevronRight2Px-DzWb16fR.mjs';
|
|
6
6
|
import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
|
|
7
7
|
import { I as Icon } from './Icon-CcPOJcQm.mjs';
|
|
@@ -7,19 +7,19 @@ import { H as Heading } from './Heading-CxHWefi7.mjs';
|
|
|
7
7
|
import { b as GridRow, G as Grid, a as GridCol } from './GridRow-Ddt5CtFn.mjs';
|
|
8
8
|
import './index-Spae4j7j.mjs';
|
|
9
9
|
import { B as BannerImage } from './BannerImage-BTsixvUH.mjs';
|
|
10
|
-
import { V as Visible } from './Visible-
|
|
10
|
+
import { V as Visible } from './Visible-B13QJn7R.mjs';
|
|
11
11
|
|
|
12
12
|
var BannerRow = function (_a) {
|
|
13
13
|
var isReversed = _a.isReversed, children = _a.children;
|
|
14
14
|
return (React__default.createElement(React__default.Fragment, null,
|
|
15
15
|
React__default.createElement(Visible, { xs: true, s: true },
|
|
16
16
|
React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow-mobile" }, children)),
|
|
17
|
-
React__default.createElement(Visible, { m: true, l: true, xl: true },
|
|
17
|
+
React__default.createElement(Visible, { m: true, l: true, xl: true, xxl: true },
|
|
18
18
|
React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow-desktop", direction: isReversed ? "row-reverse" : "row" }, children))));
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
var TemplateBanner = function (_a) {
|
|
22
|
-
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, _c = _a.alignment, alignment = _c === void 0 ? "center" : _c, additionalTopMargin = _a.additionalTopMargin, _d = _a.minHeight, minHeight = _d === void 0 ? 454 : _d, _e = _a.headingSize, headingSize = _e === void 0 ? "xl" : _e, _f = _a.isReversed, isReversed = _f === void 0 ? false : _f, _g = _a.isElevated, isElevated = _g === void 0 ? false : _g, _h = _a.headingLevel, headingLevel = _h === void 0 ? "2" : _h, _j = _a.type, type = _j === void 0 ? "light" : _j, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "headingSize", "isReversed", "isElevated", "headingLevel", "type"]);
|
|
22
|
+
var heading = _a.heading, label = _a.label, text = _a.text, img = _a.img, _b = _a.contentRatio, contentRatio = _b === void 0 ? "1/1" : _b, children = _a.children, _c = _a.alignment, alignment = _c === void 0 ? "center" : _c, additionalTopMargin = _a.additionalTopMargin, _d = _a.minHeight, minHeight = _d === void 0 ? 454 : _d, minHeightM = _a.minHeightM, minHeightL = _a.minHeightL, minHeightXL = _a.minHeightXL, _e = _a.headingSize, headingSize = _e === void 0 ? "xl" : _e, _f = _a.isReversed, isReversed = _f === void 0 ? false : _f, _g = _a.isElevated, isElevated = _g === void 0 ? false : _g, _h = _a.headingLevel, headingLevel = _h === void 0 ? "2" : _h, _j = _a.type, type = _j === void 0 ? "light" : _j, props = __rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "minHeightM", "minHeightL", "minHeightXL", "headingSize", "isReversed", "isElevated", "headingLevel", "type"]);
|
|
23
23
|
var backgrounds = {
|
|
24
24
|
dark: "dark-brand-02",
|
|
25
25
|
light: "light-white",
|
|
@@ -37,8 +37,19 @@ var TemplateBanner = function (_a) {
|
|
|
37
37
|
"2/3": 8,
|
|
38
38
|
"1/1": 6,
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
var templateBannerStyles = {
|
|
41
|
+
"--template-banner-min-height": "".concat(minHeight, "px"),
|
|
42
|
+
"--template-banner-min-height-m": minHeightM ? "".concat(minHeightM, "px") : "auto",
|
|
43
|
+
"--template-banner-min-height-l": minHeightL ? "".concat(minHeightL, "px") : "auto",
|
|
44
|
+
"--template-banner-min-height-xl": minHeightXL
|
|
45
|
+
? "".concat(minHeightXL, "px")
|
|
46
|
+
: "auto",
|
|
47
|
+
};
|
|
48
|
+
return (React__default.createElement("div", __assign({ style: templateBannerStyles, className: classNames("arc-TemplateBanner arc-TemplateBanner-background--".concat(type), {
|
|
41
49
|
"arc-TemplateBanner--elevation": isElevated,
|
|
50
|
+
"arc-TemplateBanner--minHeightM": minHeightM,
|
|
51
|
+
"arc-TemplateBanner--minHeightL": minHeightL,
|
|
52
|
+
"arc-TemplateBanner--minHeightXL": minHeightXL,
|
|
42
53
|
}) }, filterAttrs(props)),
|
|
43
54
|
React__default.createElement(Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
|
|
44
55
|
React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|