@arc-ui/components 12.0.0-beta.19 → 12.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Alert/Alert.cjs +1 -1
- package/lib/Alert/Alert.mjs +1 -1
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/Avatar.cjs +2 -1
- package/lib/Avatar/Avatar.mjs +2 -1
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/AvatarGroup.cjs +2 -1
- package/lib/AvatarGroup/AvatarGroup.mjs +2 -1
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +2 -3
- package/lib/Banner/Banner.mjs +2 -3
- 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/Button.cjs +2 -2
- package/lib/Button/Button.mjs +2 -2
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/ButtonGroup.cjs +3 -3
- package/lib/ButtonGroup/ButtonGroup.mjs +3 -3
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/ButtonV2.cjs +2 -2
- package/lib/ButtonV2/ButtonV2.mjs +2 -2
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +3 -3
- package/lib/Calendar/Calendar.mjs +3 -3
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/CardFooter.cjs +2 -2
- package/lib/CardFooter/CardFooter.mjs +2 -2
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +1 -1
- package/lib/Carousel/Carousel.mjs +1 -1
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +2 -2
- package/lib/ComboBox/ComboBox.mjs +2 -2
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.cjs +1 -1
- package/lib/ContentSwitcher/ContentSwitcher.mjs +1 -1
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +1 -1
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +196 -17
- package/lib/DatePicker/DatePicker.mjs +200 -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 +46 -323
- package/lib/Drawer/Drawer.mjs +44 -306
- 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 +1 -1
- package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +1 -1
- package/lib/GhostedHeroBanner/styles.css +1 -1
- package/lib/GradientPageBackground/GradientPageBackground.cjs +257 -0
- package/lib/GradientPageBackground/GradientPageBackground.mjs +237 -0
- package/lib/GradientPageBackground/styles.css +1 -0
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +2 -3
- package/lib/HeroBanner/HeroBanner.mjs +2 -3
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +2 -2
- package/lib/HeroButton/HeroButton.mjs +2 -2
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/HorizontalCard.cjs +3 -2
- package/lib/HorizontalCard/HorizontalCard.mjs +3 -2
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/Icon.cjs +1 -1
- package/lib/Icon/Icon.mjs +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/ImpactCard.cjs +7 -4
- package/lib/ImpactCard/ImpactCard.mjs +7 -4
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +7 -5
- package/lib/InformationCard/InformationCard.mjs +7 -5
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +1 -1
- package/lib/Link/Link.mjs +1 -1
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +3 -5
- package/lib/MediaCard/MediaCard.mjs +3 -5
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +33 -32
- package/lib/Menu/Menu.mjs +17 -16
- package/lib/Menu/styles.css +1 -1
- package/lib/Modal/Modal.cjs +2 -2
- package/lib/Modal/Modal.mjs +2 -2
- package/lib/Modal/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/PaginationSimple.cjs +1 -1
- package/lib/PaginationSimple/PaginationSimple.mjs +1 -1
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +10 -72
- package/lib/ProgressStepper/ProgressStepper.mjs +8 -74
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +20 -0
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +14 -0
- package/lib/ProgressStepperOverflow/styles.css +1 -0
- package/lib/RadioCardGroup/RadioCardGroup.cjs +2 -2
- package/lib/RadioCardGroup/RadioCardGroup.mjs +3 -3
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +5 -2
- package/lib/ScrollToTop/ScrollToTop.mjs +5 -2
- 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 +10 -7
- package/lib/SiteFooter/SiteFooter.mjs +10 -7
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +19 -22
- package/lib/SiteFooterV2/SiteFooterV2.mjs +19 -22
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +4 -4
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +5 -5
- 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 +9 -6
- package/lib/TabbedBanner/TabbedBanner.mjs +9 -6
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +1 -1
- package/lib/Tabs/Tabs.mjs +1 -1
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/Tag.cjs +1 -1
- package/lib/Tag/Tag.mjs +1 -1
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +2 -3
- package/lib/TemplateBanner/TemplateBanner.mjs +2 -3
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +16 -14
- package/lib/TextArea/TextArea.mjs +16 -14
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +5 -8
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +5 -8
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +1 -1
- package/lib/Tooltip/Tooltip.mjs +1 -1
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +7 -4
- package/lib/TypographyCard/TypographyCard.mjs +7 -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 +1 -1
- package/lib/VideoPlayer/VideoPlayer.mjs +1 -1
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/Visible.cjs +6 -14
- package/lib/Visible/Visible.mjs +4 -16
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/{Avatar-CxbjOB_b.cjs → Avatar-CrUioj_6.cjs} +4 -1
- package/lib/_shared/cjs/{Button-CKTa6bQL.cjs → Button-uD9mR8w-.cjs} +1 -1
- package/lib/_shared/cjs/{ButtonV2-CRNNZ_nd.cjs → ButtonV2-Bta5SVVY.cjs} +2 -2
- package/lib/_shared/cjs/{Calendar-BwjsVOaO.cjs → Calendar-D4ZSaHHU.cjs} +2 -2
- package/lib/_shared/cjs/{CardFooter-DwE-u0Om.cjs → CardFooter-ChphRFHe.cjs} +1 -1
- package/lib/_shared/cjs/{ComboBox-CY_JTHWB.cjs → ComboBox-BGUhlqx1.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherDropdown-CAWaAMZN.cjs → ContentSwitcherDropdown-U5ZTbJTe.cjs} +1 -1
- package/lib/_shared/cjs/{ContentSwitcherList-I7jCZn8C.cjs → ContentSwitcherList-nlxMHXs-.cjs} +3 -2
- package/lib/_shared/cjs/{DatePicker-PiPFgOL6.cjs → DatePicker-DS6fAvxD.cjs} +45 -27
- package/lib/_shared/cjs/{HeroButton-CiIygZ16.cjs → HeroButton-CrzkTUwP.cjs} +1 -1
- package/lib/_shared/cjs/{Icon-KMACQ1i3.cjs → Icon-CzhyKqMd.cjs} +1 -1
- package/lib/_shared/cjs/{MediaCard-4SvlAL3w.cjs → MediaCard-BEZFbiYO.cjs} +5 -9
- package/lib/_shared/cjs/{MenuSubContent-B7-PVHJ6.cjs → MenuItemMultiLevelContent-vLr6hSBm.cjs} +7 -7
- package/lib/_shared/cjs/ProgressStepper-BL9Y5c4X.cjs +77 -0
- package/lib/_shared/cjs/ProgressStepperOverflow-v-TyS5Sp.cjs +142 -0
- package/lib/_shared/cjs/{RadioCardGroupInput-BmntgyWB.cjs → RadioCardGroupInput-CeUM3yPS.cjs} +1 -1
- package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-CX1WAHv8.cjs → SiteHeaderV2NavItemWithSubNav-fQPk0gZU.cjs} +3 -3
- package/lib/_shared/cjs/{TemplateBanner-Dn_6CJqe.cjs → TemplateBanner-CGtTUy81.cjs} +13 -6
- package/lib/_shared/cjs/Visible-Dx__9oZG.cjs +18 -0
- package/lib/_shared/cjs/{index.es-i8i9xWYf.cjs → index.es-DBEGtWPg.cjs} +1 -1
- package/lib/_shared/esm/{Avatar-B8aoUhmE.mjs → Avatar-Fb1E5MA9.mjs} +4 -1
- package/lib/_shared/esm/{Button-9L4AksQP.mjs → Button-BxuM3_gz.mjs} +1 -1
- package/lib/_shared/esm/{ButtonV2-2U4PvnpS.mjs → ButtonV2-DwYBAojW.mjs} +2 -2
- package/lib/_shared/esm/{Calendar-Di_PdK9o.mjs → Calendar-CjqPM7ta.mjs} +2 -2
- package/lib/_shared/esm/{CardFooter-CgDDDI7Z.mjs → CardFooter-fsAY4cc6.mjs} +1 -1
- package/lib/_shared/esm/{ComboBox-Cga1icqB.mjs → ComboBox-CRlJjeev.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherDropdown-dktkyAjY.mjs → ContentSwitcherDropdown-BCkuAfwC.mjs} +1 -1
- package/lib/_shared/esm/{ContentSwitcherList-OnZoE86O.mjs → ContentSwitcherList-DKPD9GfN.mjs} +3 -2
- package/lib/_shared/esm/{DatePicker-DyPo-u9K.mjs → DatePicker-3sYJ3wGn.mjs} +43 -28
- package/lib/_shared/esm/{HeroButton-HYskwyvn.mjs → HeroButton-jdjjV_Gf.mjs} +1 -1
- package/lib/_shared/esm/{Icon-MZfaoOo9.mjs → Icon-CcPOJcQm.mjs} +1 -1
- package/lib/_shared/esm/{MediaCard-tYOu7gv8.mjs → MediaCard-DqMaNWsE.mjs} +5 -9
- package/lib/_shared/esm/{MenuSubContent-DCfTtJpf.mjs → MenuItemMultiLevelContent-JTOHqpzg.mjs} +7 -7
- package/lib/_shared/esm/ProgressStepper-CLBtBNy2.mjs +74 -0
- package/lib/_shared/esm/ProgressStepperOverflow-B9ba8ljs.mjs +140 -0
- package/lib/_shared/esm/{RadioCardGroupInput-Cy1r7M8l.mjs → RadioCardGroupInput-D7W28geB.mjs} +1 -1
- package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-B9hz5IKd.mjs → SiteHeaderV2NavItemWithSubNav-BMoBdUxK.mjs} +3 -3
- package/lib/_shared/esm/{TemplateBanner-CS95cxio.mjs → TemplateBanner-Up6cR-3_.mjs} +14 -7
- package/lib/_shared/esm/Visible-C-jVXUWp.mjs +16 -0
- package/lib/_shared/esm/{index.es-DZ9WSYOo.mjs → index.es-DCvYtQfu.mjs} +2 -2
- package/lib/index.cjs +1117 -806
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +177 -50
- package/lib/index.d.mts +177 -50
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1107 -801
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +8 -22
- package/package.json +8 -8
- package/lib/GradientBackground/GradientBackground.cjs +0 -19
- package/lib/GradientBackground/GradientBackground.mjs +0 -17
- package/lib/GradientBackground/styles.css +0 -1
package/lib/_shared/esm/{MenuSubContent-DCfTtJpf.mjs → MenuItemMultiLevelContent-JTOHqpzg.mjs}
RENAMED
|
@@ -908,7 +908,7 @@ var MenuSubTrigger = React.forwardRef(
|
|
|
908
908
|
);
|
|
909
909
|
MenuSubTrigger.displayName = SUB_TRIGGER_NAME$1;
|
|
910
910
|
var SUB_CONTENT_NAME$1 = "MenuSubContent";
|
|
911
|
-
var MenuSubContent
|
|
911
|
+
var MenuSubContent = React.forwardRef(
|
|
912
912
|
(props, forwardedRef) => {
|
|
913
913
|
const portalContext = usePortalContext(CONTENT_NAME$1, props.__scopeMenu);
|
|
914
914
|
const { forceMount = portalContext.forceMount, ...subContentProps } = props;
|
|
@@ -954,7 +954,7 @@ var MenuSubContent$1 = React.forwardRef(
|
|
|
954
954
|
) }) }) });
|
|
955
955
|
}
|
|
956
956
|
);
|
|
957
|
-
MenuSubContent
|
|
957
|
+
MenuSubContent.displayName = SUB_CONTENT_NAME$1;
|
|
958
958
|
function getOpenState(open) {
|
|
959
959
|
return open ? "open" : "closed";
|
|
960
960
|
}
|
|
@@ -1023,7 +1023,7 @@ var Separator = MenuSeparator;
|
|
|
1023
1023
|
var Arrow2 = MenuArrow;
|
|
1024
1024
|
var Sub = MenuSub;
|
|
1025
1025
|
var SubTrigger = MenuSubTrigger;
|
|
1026
|
-
var SubContent = MenuSubContent
|
|
1026
|
+
var SubContent = MenuSubContent;
|
|
1027
1027
|
|
|
1028
1028
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
1029
1029
|
var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
@@ -1286,11 +1286,11 @@ var MenuContent = React__default.forwardRef(function (_a, ref) {
|
|
|
1286
1286
|
});
|
|
1287
1287
|
|
|
1288
1288
|
/**
|
|
1289
|
-
* The
|
|
1289
|
+
* The multi-level menu content that pops out when a menu item with children is hovered or clicked.
|
|
1290
1290
|
*/
|
|
1291
|
-
var
|
|
1291
|
+
var MenuItemMultiLevelContent = React__default.forwardRef(function (_a, ref) {
|
|
1292
1292
|
var children = _a.children, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, alignOffset = _a.alignOffset, props = __rest(_a, ["children", "width", "minWidth", "maxWidth", "alignOffset"]);
|
|
1293
|
-
return (React__default.createElement(SubContent2, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent
|
|
1293
|
+
return (React__default.createElement(SubContent2, __assign({ ref: ref, style: { width: width, minWidth: minWidth, maxWidth: maxWidth }, className: "arc-MenuContent", sideOffset: 24, collisionPadding: 12, avoidCollisions: true, alignOffset: alignOffset }, filterAttrs(props)), children));
|
|
1294
1294
|
});
|
|
1295
1295
|
|
|
1296
|
-
export { CheckboxItem2 as C, Group2 as G, Item2 as I, MenuContent as M, Portal2 as P, Root2 as R, Separator2 as S, Trigger as T, RadioGroup2 as a, RadioItem2 as b, Sub2 as c, SubTrigger2 as d,
|
|
1296
|
+
export { CheckboxItem2 as C, Group2 as G, Item2 as I, MenuContent as M, Portal2 as P, Root2 as R, Separator2 as S, Trigger as T, RadioGroup2 as a, RadioItem2 as b, Sub2 as c, SubTrigger2 as d, MenuItemMultiLevelContent as e };
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { s as svgToMiniDataURI } from './index-CL6dwOYV.mjs';
|
|
5
|
+
import { c as capitaliseFirstLetter } from './capitalise-first-letter-Cubg2CS1.mjs';
|
|
6
|
+
import { V as VisuallyHidden } from './VisuallyHidden-DqAgoqJo.mjs';
|
|
7
|
+
import { I as Icon } from './Icon-CcPOJcQm.mjs';
|
|
8
|
+
|
|
9
|
+
var Error = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <g clipPath=\"url(#a)\">\n <path\n d=\"m13.06 12 2.845-2.845a.75.75 0 0 0-1.06-1.06L12 10.94 9.155 8.095a.75.75 0 0 0-1.06 1.06L10.939 12l-2.844 2.845a.75.75 0 1 0 1.06 1.06L12 13.061l2.845 2.844a.75.75 0 0 0 1.06-1.06L13.06 12Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <rect width=\"24\" height=\"24\" rx=\"12\" />\n </clipPath>\n </defs>\n </svg>\n ";
|
|
10
|
+
|
|
11
|
+
var Warning = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path\n d=\"M12 15.747a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm.004-1.487a.375.375 0 0 0 .375-.375l.001-6.757a.375.375 0 1 0-.75 0l-.001 6.757a.375.375 0 0 0 .375.375Z\"\n fill=\"currentColor\"\n stroke=\"currentColor\"\n strokeWidth=\".3\"\n />\n </svg>\n";
|
|
12
|
+
|
|
13
|
+
var Complete = "\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <g clipPath=\"url(#a)\">\n <path\n d=\"m10.125 16.435-3.53-3.53a.75.75 0 0 1 0-1.06.768.768 0 0 1 1.06 0l2.47 2.47 6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.28 7.28Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath>\n <rect width=\"24\" height=\"24\" rx=\"12\" />\n </clipPath>\n </defs>\n </svg>\n ";
|
|
14
|
+
|
|
15
|
+
var Current = "\n <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"currentColor\" />\n <defs>\n <linearGradient\n id=\"paint0_linear_1_1050\"\n x1=\"36.6036\"\n y1=\"-4.31391e-07\"\n x2=\"-12.6036\"\n y2=\"24\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#F200F5\" />\n <stop offset=\"1\" stopColor=\"#1EC8E6\" />\n </linearGradient>\n </defs>\n </svg>\n ";
|
|
16
|
+
|
|
17
|
+
var ProgressStepperItem = function (_a) {
|
|
18
|
+
var _b;
|
|
19
|
+
var title = _a.title, titleHref = _a.titleHref, subTitle = _a.subTitle, _c = _a.direction, direction = _c === void 0 ? "horizontal" : _c, _d = _a.status, status = _d === void 0 ? "todo" : _d, _e = _a.size, size = _e === void 0 ? "large" : _e, isFluid = _a.isFluid, invertLabelPosition = _a.invertLabelPosition, ariaLabel = _a.ariaLabel, onClick = _a.onClick, previousStep = _a.previousStep, stepContent = _a.stepContent, isStepContentHidden = _a.isStepContentHidden, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "isFluid", "invertLabelPosition", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden"]);
|
|
20
|
+
var statusIcons = {
|
|
21
|
+
todo: undefined,
|
|
22
|
+
completed: Complete,
|
|
23
|
+
current: Current,
|
|
24
|
+
warning: Warning,
|
|
25
|
+
error: Error,
|
|
26
|
+
};
|
|
27
|
+
var onClickHandler = function (event) {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
onClick && onClick();
|
|
30
|
+
};
|
|
31
|
+
var statusIcon = statusIcons[status];
|
|
32
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
|
|
33
|
+
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
34
|
+
"arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
|
|
35
|
+
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
36
|
+
},
|
|
37
|
+
_b["arc-ProgressStepperItem--hasInteractiveStatus"] = status !== "todo",
|
|
38
|
+
_b["arc-ProgressStepperItem--invertLabelPosition"] = direction !== "vertical" && invertLabelPosition,
|
|
39
|
+
_b)) }, filterAttrs(props)),
|
|
40
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSection" },
|
|
41
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
|
|
42
|
+
React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
|
|
43
|
+
"arc-ProgressStepperItem-statusIcon--small": size === "small",
|
|
44
|
+
}) }, status === "todo" ? null : status === "current" ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (React__default.createElement(Icon, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))))),
|
|
45
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
46
|
+
titleHref || onClick ? (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, "aria-label": ariaLabel, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler },
|
|
47
|
+
title,
|
|
48
|
+
status !== "todo" ? (React__default.createElement(VisuallyHidden, null,
|
|
49
|
+
":",
|
|
50
|
+
capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))) : (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" },
|
|
51
|
+
title,
|
|
52
|
+
status !== "todo" ? (React__default.createElement(VisuallyHidden, null,
|
|
53
|
+
":",
|
|
54
|
+
capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))),
|
|
55
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
56
|
+
stepContent && !isStepContentHidden && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
|
|
57
|
+
React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" }, stepContent))))));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
|
|
61
|
+
var ProgressStepper = function (_a) {
|
|
62
|
+
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition, ref = _a.ref, props = __rest(_a, ["children", "size", "isFluid", "direction", "isExpandable", "invertLabelPosition", "ref"]);
|
|
63
|
+
var items = React__default.Children.toArray(children);
|
|
64
|
+
var getStepStatus = function (item) {
|
|
65
|
+
var _a;
|
|
66
|
+
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
67
|
+
};
|
|
68
|
+
return (React__default.createElement("div", __assign({ ref: ref, className: classNames("arc-ProgressStepper", {
|
|
69
|
+
"arc-ProgressStepper--vertical": direction === "vertical",
|
|
70
|
+
}) }, filterAttrs(props)), items.map(function (item, index) { return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
|
|
71
|
+
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, isStepContentHidden: item.props.isStepContentHidden, onClick: item.props.onClick, isFluid: isFluid, invertLabelPosition: invertLabelPosition, direction: direction, isExpandable: isExpandable, size: size, previousStep: getStepStatus(items[index - 1]) }, filterAttrs(item.props))))); })));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export { ProgressStepper as P, ProgressStepperItem as a };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
|
+
import React__default, { forwardRef, useState, useRef, useImperativeHandle, useEffect } from 'react';
|
|
3
|
+
import { d as debounce } from './debounce-mCD9-ufA.mjs';
|
|
4
|
+
import { P as ProgressStepper } from './ProgressStepper-CLBtBNy2.mjs';
|
|
5
|
+
|
|
6
|
+
/** Use `ProgressStepperOverflow` to wrap `ProgressStepperItem`s and allow overflow behaviour. */
|
|
7
|
+
var ProgressStepperOverflow = forwardRef(function (_a, stepperRef) {
|
|
8
|
+
var children = _a.children, onIndexChange = _a.onIndexChange, onLoadStep = _a.onLoadStep, size = _a.size, invertLabelPosition = _a.invertLabelPosition, _b = _a.offsetLeft, offsetLeft = _b === void 0 ? 24 : _b, props = __rest(_a, ["children", "onIndexChange", "onLoadStep", "size", "invertLabelPosition", "offsetLeft"]);
|
|
9
|
+
var _c = useState(onLoadStep ? onLoadStep : 0), activeIndex = _c[0], setActiveIndex = _c[1];
|
|
10
|
+
var _d = useState(0), closestScrolledIndex = _d[0], setClosestScrolledIndex = _d[1];
|
|
11
|
+
var _e = useState(true), lastStepVisible = _e[0], setLastStepVisible = _e[1];
|
|
12
|
+
var containerRef = useRef(null);
|
|
13
|
+
useImperativeHandle(stepperRef, function () { return ({
|
|
14
|
+
handleStepScroll: handleStepScroll,
|
|
15
|
+
scrollToStep: scrollToStep,
|
|
16
|
+
handleViewScroll: handleViewScroll,
|
|
17
|
+
isLastChildVisible: isLastChildVisible,
|
|
18
|
+
}); });
|
|
19
|
+
// Add Horizontal Scroll Event Listener
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
var checkClosest = debounce(function () {
|
|
23
|
+
var closestIndex = findClosestIndex();
|
|
24
|
+
setClosestScrolledIndex(closestIndex);
|
|
25
|
+
}, 100);
|
|
26
|
+
var checkLastChild = debounce(function () {
|
|
27
|
+
var lastVisible = isLastChildVisible();
|
|
28
|
+
if (lastVisible) {
|
|
29
|
+
setLastStepVisible(true);
|
|
30
|
+
}
|
|
31
|
+
else
|
|
32
|
+
setLastStepVisible(false);
|
|
33
|
+
}, 100);
|
|
34
|
+
(_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener("scroll", checkLastChild);
|
|
35
|
+
(_b = containerRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener("scroll", checkClosest);
|
|
36
|
+
return function () {
|
|
37
|
+
var _a;
|
|
38
|
+
(_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", checkClosest);
|
|
39
|
+
checkLastChild.cancel();
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
42
|
+
// Scroll to activeIndex
|
|
43
|
+
useEffect(function () {
|
|
44
|
+
scrollTo();
|
|
45
|
+
}, [activeIndex]);
|
|
46
|
+
// Exposing changes in activeIndex outside of component
|
|
47
|
+
useEffect(function () {
|
|
48
|
+
onIndexChange === null || onIndexChange === void 0 ? void 0 : onIndexChange(closestScrolledIndex);
|
|
49
|
+
isLastChildVisible();
|
|
50
|
+
}, [closestScrolledIndex, onIndexChange, lastStepVisible]);
|
|
51
|
+
// helper functions - start
|
|
52
|
+
var getProgressStepper = function () { var _a; return (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.firstChild; };
|
|
53
|
+
var getStepChildren = function () {
|
|
54
|
+
var _a;
|
|
55
|
+
return Array.from(((_a = getProgressStepper()) === null || _a === void 0 ? void 0 : _a.children) || []);
|
|
56
|
+
};
|
|
57
|
+
var getLeftRects = function (children) {
|
|
58
|
+
var container = getProgressStepper();
|
|
59
|
+
if (!container)
|
|
60
|
+
return [];
|
|
61
|
+
var parentRect = container.getBoundingClientRect();
|
|
62
|
+
return children.map(function (child) {
|
|
63
|
+
var childRect = child.getBoundingClientRect();
|
|
64
|
+
return {
|
|
65
|
+
left: childRect.left - parentRect.left,
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
var indexOfClosest = function (values) {
|
|
70
|
+
return values.indexOf(Math.min.apply(Math, values));
|
|
71
|
+
};
|
|
72
|
+
// helper functions - end
|
|
73
|
+
var isLastChildVisible = function () {
|
|
74
|
+
var _a;
|
|
75
|
+
var steps = getStepChildren();
|
|
76
|
+
var lastStep = steps[steps.length - 1];
|
|
77
|
+
var rect = lastStep.getBoundingClientRect();
|
|
78
|
+
var containerRect = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
79
|
+
return rect.right <= containerRect.right;
|
|
80
|
+
};
|
|
81
|
+
// Used for onScroll function of scrolling without buttons
|
|
82
|
+
var findClosestIndex = function () {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
var children = getStepChildren();
|
|
85
|
+
var scrolledAmount = (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.scrollLeft) !== null && _b !== void 0 ? _b : 0;
|
|
86
|
+
// compare the scrolled amount to the intial left edge distance for each step
|
|
87
|
+
var getScrollDistances = function (children, scrolledAmount) {
|
|
88
|
+
return getLeftRects(children).map(function (rect) {
|
|
89
|
+
return Math.abs(scrolledAmount - rect.left);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
var closestIndex = indexOfClosest(getScrollDistances(children, scrolledAmount));
|
|
93
|
+
return closestIndex;
|
|
94
|
+
};
|
|
95
|
+
// Scroll active step to the far left of the page
|
|
96
|
+
var scrollTo = function () {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
var activeStep = (_a = getProgressStepper()) === null || _a === void 0 ? void 0 : _a.children[activeIndex];
|
|
99
|
+
if (activeStep) {
|
|
100
|
+
(_b = containerRef.current) === null || _b === void 0 ? void 0 : _b.scrollTo({
|
|
101
|
+
left: activeStep.offsetLeft - offsetLeft,
|
|
102
|
+
behavior: "smooth",
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
var handleStepScroll = function (increment) {
|
|
107
|
+
// Account for any manual scrolling set closest index to active index
|
|
108
|
+
setActiveIndex(closestScrolledIndex);
|
|
109
|
+
var newIndex = closestScrolledIndex + increment;
|
|
110
|
+
setActiveIndex(newIndex);
|
|
111
|
+
// If clicking backwards to include half visible step
|
|
112
|
+
if (closestScrolledIndex + increment === activeIndex) {
|
|
113
|
+
scrollTo();
|
|
114
|
+
}
|
|
115
|
+
if (closestScrolledIndex + increment < 0) {
|
|
116
|
+
setActiveIndex(0);
|
|
117
|
+
scrollTo();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
// Used to scroll by Parent width
|
|
121
|
+
var handleViewScroll = function (direction) {
|
|
122
|
+
var _a;
|
|
123
|
+
var clientWidth = ((_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) || 0;
|
|
124
|
+
var stepper = containerRef.current;
|
|
125
|
+
if (!stepper)
|
|
126
|
+
return;
|
|
127
|
+
stepper.scrollBy({
|
|
128
|
+
left: direction ? clientWidth : -clientWidth,
|
|
129
|
+
behavior: "smooth",
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
// Used to set a specific step to jump to on a button click
|
|
133
|
+
var scrollToStep = function (step) {
|
|
134
|
+
setActiveIndex(step);
|
|
135
|
+
};
|
|
136
|
+
return (React__default.createElement("div", __assign({ ref: containerRef, className: "arc-ProgressStepperOverflow", style: { paddingLeft: offsetLeft } }, filterAttrs(props)),
|
|
137
|
+
React__default.createElement(ProgressStepper, { size: size, invertLabelPosition: invertLabelPosition, isFluid: false }, children)));
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
export { ProgressStepperOverflow as P };
|
package/lib/_shared/esm/{RadioCardGroupInput-Cy1r7M8l.mjs → RadioCardGroupInput-D7W28geB.mjs}
RENAMED
|
@@ -3,7 +3,7 @@ import React__default, { createContext, useContext, forwardRef } from 'react';
|
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
4
|
import { c as capitaliseFirstLetter } from './capitalise-first-letter-Cubg2CS1.mjs';
|
|
5
5
|
import { C as Context } from './Surface-Colbp3Zx.mjs';
|
|
6
|
-
import { I as Icon } from './Icon-
|
|
6
|
+
import { I as Icon } from './Icon-CcPOJcQm.mjs';
|
|
7
7
|
|
|
8
8
|
var RadioContext = createContext({});
|
|
9
9
|
var Provider = RadioContext.Provider;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default, { createContext, useState, useRef, useEffect, useContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { c as ArcSizeBreakpointsL } from './index.es-DCvYtQfu.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
|
-
import { I as Icon } from './Icon-
|
|
7
|
+
import { I as Icon } from './Icon-CcPOJcQm.mjs';
|
|
8
8
|
import { S as Surface } from './Surface-Colbp3Zx.mjs';
|
|
9
|
-
import { B as ButtonV2 } from './ButtonV2-
|
|
9
|
+
import { B as ButtonV2 } from './ButtonV2-DwYBAojW.mjs';
|
|
10
10
|
import { h as handleLinkClick } from './handle-link-click-CIgZ7pa0.mjs';
|
|
11
11
|
import { B as BrandLogo } from './BrandLogo-_2Z_8I2Y.mjs';
|
|
12
12
|
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import { A as ArcSizeBreakpointsM } from './index.es-DZ9WSYOo.mjs';
|
|
5
|
-
import { u as useMediaQuery } from './use-media-query-DmKuIDEM.mjs';
|
|
6
4
|
import { V as VerticalSpace } from './VerticalSpace-Duhm0zXP.mjs';
|
|
7
5
|
import { B as Box } from './Box-BYm_GTct.mjs';
|
|
8
6
|
import { H as Heading } from './Heading-CxHWefi7.mjs';
|
|
9
|
-
import {
|
|
7
|
+
import { b as GridRow, G as Grid, a as GridCol } from './GridRow-Ddt5CtFn.mjs';
|
|
8
|
+
import './index-Spae4j7j.mjs';
|
|
10
9
|
import { B as BannerImage } from './BannerImage-BTsixvUH.mjs';
|
|
10
|
+
import { V as Visible } from './Visible-C-jVXUWp.mjs';
|
|
11
|
+
|
|
12
|
+
var BannerRow = function (_a) {
|
|
13
|
+
var isReversed = _a.isReversed, children = _a.children;
|
|
14
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
15
|
+
React__default.createElement(Visible, { xs: true, s: true },
|
|
16
|
+
React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow-mobile" }, children)),
|
|
17
|
+
React__default.createElement(Visible, { m: true, l: true, xl: true },
|
|
18
|
+
React__default.createElement(GridRow, { "data-testid": "arc-TemplateBanner-gridRow-desktop", direction: isReversed ? "row-reverse" : "row" }, children))));
|
|
19
|
+
};
|
|
11
20
|
|
|
12
21
|
var TemplateBanner = function (_a) {
|
|
13
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"]);
|
|
14
|
-
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
15
23
|
var backgrounds = {
|
|
16
24
|
dark: "dark-brand-02",
|
|
17
25
|
light: "light-white",
|
|
@@ -24,7 +32,6 @@ var TemplateBanner = function (_a) {
|
|
|
24
32
|
};
|
|
25
33
|
var isContained = type === "contained";
|
|
26
34
|
var borderWidth = isContained && !isElevated ? "thin" : undefined;
|
|
27
|
-
var direction = isReversed && isMinWidthArcBreakpointM ? "row-reverse" : "row";
|
|
28
35
|
var columnWithImgWidths = {
|
|
29
36
|
"1/0": 12,
|
|
30
37
|
"2/3": 8,
|
|
@@ -35,7 +42,7 @@ var TemplateBanner = function (_a) {
|
|
|
35
42
|
}) }, filterAttrs(props)),
|
|
36
43
|
React__default.createElement(Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
|
|
37
44
|
React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
38
|
-
React__default.createElement(
|
|
45
|
+
React__default.createElement(BannerRow, { "data-testid": "arc-TemplateBanner-gridRow", isReversed: isReversed },
|
|
39
46
|
React__default.createElement(GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
|
|
40
47
|
m: alignment === "start" ? "start" : "center",
|
|
41
48
|
xs: !img || contentRatio === "1/0" ? "center" : "start",
|
|
@@ -44,7 +51,7 @@ var TemplateBanner = function (_a) {
|
|
|
44
51
|
"arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
|
|
45
52
|
}) },
|
|
46
53
|
label && (React__default.createElement(React__default.Fragment, null,
|
|
47
|
-
React__default.createElement(Heading, {
|
|
54
|
+
React__default.createElement(Heading, { level: "3", fontStyle: "overline" }, label),
|
|
48
55
|
React__default.createElement(VerticalSpace, { size: "8" }))),
|
|
49
56
|
React__default.createElement(Heading, { level: headingLevel, size: headingSize }, heading),
|
|
50
57
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Visible = function (_a) {
|
|
6
|
+
var children = _a.children, xs = _a.xs, s = _a.s, m = _a.m, l = _a.l, xl = _a.xl, props = __rest(_a, ["children", "xs", "s", "m", "l", "xl"]);
|
|
7
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-Visible", {
|
|
8
|
+
"arc-Visible--xs": xs,
|
|
9
|
+
"arc-Visible--s": s,
|
|
10
|
+
"arc-Visible--m": m,
|
|
11
|
+
"arc-Visible--l": l,
|
|
12
|
+
"arc-Visible--xl": xl,
|
|
13
|
+
}) }, filterAttrs(props)), children));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Visible as V };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 21 Jul 2025 12:02:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
var ArcSizeBreakpointsXs = "320px";
|
|
6
6
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -9,4 +9,4 @@ var ArcSizeBreakpointsL = "1024px";
|
|
|
9
9
|
var ArcSizeBreakpointsXl = "1280px";
|
|
10
10
|
var ArcSizeBreakpointsXxl = "1440px";
|
|
11
11
|
|
|
12
|
-
export { ArcSizeBreakpointsM as A,
|
|
12
|
+
export { ArcSizeBreakpointsM as A, ArcSizeBreakpointsXxl as a, ArcSizeBreakpointsXl as b, ArcSizeBreakpointsL as c, ArcSizeBreakpointsS as d, ArcSizeBreakpointsXs as e };
|