@arc-ui/components 12.0.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 +7 -7
- package/lib/Breadcrumbs/Breadcrumbs.mjs +7 -7
- 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 +6 -6
- package/lib/Calendar/Calendar.mjs +6 -6
- 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 +348 -8
- package/lib/Carousel/Carousel.mjs +348 -8
- 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 +18 -18
- package/lib/DatePicker/DatePicker.mjs +19 -19
- 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 +3 -3
- package/lib/GradientPageBackground/GradientPageBackground.mjs +3 -3
- 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 +7 -7
- package/lib/InformationCard/InformationCard.mjs +7 -7
- 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 +38 -50
- package/lib/NavigationHeader/NavigationHeader.mjs +39 -51
- 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 +2 -2
- package/lib/ProgressStepper/ProgressStepper.mjs +2 -2
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +76 -121
- package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +77 -123
- package/lib/ProgressStepperOverflow/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +12 -8
- package/lib/RadioCardGroup/RadioCardGroup.mjs +12 -8
- 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 +13 -9
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +13 -9
- 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-BvPNEvfm.cjs → Calendar-CdLn9iv6.cjs} +7 -7
- 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-BgAW2IhJ.cjs → ContentSwitcherList-Di7RS8ue.cjs} +28 -17
- package/lib/_shared/cjs/{Popover-CYcqjefw.cjs → Popover-BtvRErpC.cjs} +7 -4
- package/lib/_shared/cjs/{ProgressStepper-DTZQabiV.cjs → ProgressStepper-Cs6vX7Th.cjs} +19 -18
- 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-Cl4-g1TC.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-Dbvw_3_e.cjs → index.es-BAsay4oe.cjs} +1 -1
- package/lib/_shared/cjs/{use-media-query-DqZqShGX.cjs → use-media-query-BJV2IbHi.cjs} +4 -4
- 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-DzsQqJlh.mjs → Calendar-CzFIMyD1.mjs} +8 -8
- 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-i4m4nAzP.mjs → ContentSwitcherList-Bvp9Zl85.mjs} +30 -19
- package/lib/_shared/esm/{Popover-BHCEpLSa.mjs → Popover-DRQSgAog.mjs} +7 -4
- package/lib/_shared/esm/{ProgressStepper-CujHLQsm.mjs → ProgressStepper-DTPHHVFe.mjs} +20 -19
- 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-Br78xe-f.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-f0R-yhhl.mjs → index.es-99J0r2va.mjs} +2 -2
- package/lib/_shared/esm/{use-media-query-BmsMeo2M.mjs → use-media-query-l6Sou0dd.mjs} +4 -4
- package/lib/index.cjs +662 -346
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1063 -328
- package/lib/index.d.mts +1063 -328
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +663 -348
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +2 -2
- package/lib/use-media-query/use-media-query.cjs +1 -1
- package/lib/use-media-query/use-media-query.mjs +1 -1
- package/package.json +14 -12
- package/lib/_shared/cjs/capitalise-first-letter-CdhexpSx.cjs +0 -8
- package/lib/_shared/esm/capitalise-first-letter-Cubg2CS1.mjs +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as __spreadArray, a as __assign, _ as __rest } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
|
-
import React__default, { createContext,
|
|
2
|
+
import React__default, { createContext, 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 {
|
|
4
|
+
import { a as ArcSizeBreakpointsM } from './index.es-99J0r2va.mjs';
|
|
5
5
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
6
|
-
import { u as useMediaQuery } from './use-media-query-
|
|
6
|
+
import { u as useMediaQuery } from './use-media-query-l6Sou0dd.mjs';
|
|
7
7
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
8
|
-
import { T as Text } from './Text-BAzOkkzN.mjs';
|
|
9
|
-
import { V as VisuallyHidden } from './VisuallyHidden-aSQ4RA1o.mjs';
|
|
10
8
|
import './index-Spae4j7j.mjs';
|
|
11
9
|
import { S as Surface } from './Surface-C69KVzkY.mjs';
|
|
12
10
|
import { H as Heading } from './Heading-Da-o0d5x.mjs';
|
|
11
|
+
import { T as Text } from './Text-BAzOkkzN.mjs';
|
|
12
|
+
import { V as VisuallyHidden } from './VisuallyHidden-aSQ4RA1o.mjs';
|
|
13
13
|
import { T as ThemeIcon } from './ThemeIcon-B0n6cKRb.mjs';
|
|
14
14
|
import { I as Icon } from './Icon-CCUbr_AO.mjs';
|
|
15
15
|
|
|
@@ -1063,8 +1063,8 @@ function isEqual(dirtyLeftDate, dirtyRightDate) {
|
|
|
1063
1063
|
|
|
1064
1064
|
var ArcCalendarContext = createContext(null);
|
|
1065
1065
|
|
|
1066
|
-
var CalendarDayNumber =
|
|
1067
|
-
var date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
|
|
1066
|
+
var CalendarDayNumber = function (_a) {
|
|
1067
|
+
var autoFocusRef = _a.ref, date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
|
|
1068
1068
|
var context = useContext(ArcCalendarContext);
|
|
1069
1069
|
var isFocusDate = context && isEqual(date, context.focusDate);
|
|
1070
1070
|
var tableCellRef = useCallback(function (el) {
|
|
@@ -1125,7 +1125,7 @@ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
|
|
|
1125
1125
|
React__default.createElement("div", { className: "arc-CalendarDayNumber-buttonInner" },
|
|
1126
1126
|
React__default.createElement(Text, { size: "s" },
|
|
1127
1127
|
React__default.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
|
|
1128
|
-
}
|
|
1128
|
+
};
|
|
1129
1129
|
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Do not edit directly
|
|
@@ -5,8 +5,8 @@ import { H as Heading } from './Heading-Da-o0d5x.mjs';
|
|
|
5
5
|
|
|
6
6
|
/** Use `CardHeading` internally within card components to display a title, icon, or leading content at the top of a card. */
|
|
7
7
|
var CardHeading = function (_a) {
|
|
8
|
-
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;
|
|
9
|
-
return (React__default.createElement(Heading, { level: headingLevel, size: size, isWordWrap:
|
|
8
|
+
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;
|
|
9
|
+
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)));
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { CardHeading as C };
|
|
@@ -7,15 +7,16 @@ import { C as Context } from './FormControl-DopDD_nC.mjs';
|
|
|
7
7
|
|
|
8
8
|
/** Use `CheckboxIcon` to display a visual checkbox indicator that reflects a checked, unchecked, or indeterminate state. */
|
|
9
9
|
var CheckboxIcon = function (_a) {
|
|
10
|
-
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"]);
|
|
10
|
+
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"]);
|
|
11
11
|
var requirementStatus = useContext(Context).requirementStatus;
|
|
12
12
|
var internalRef = useRef(null);
|
|
13
13
|
var surface = useContext(Context$1).surface;
|
|
14
|
+
var inputRef = (ref || internalRef);
|
|
14
15
|
useEffect(function () {
|
|
15
|
-
if (
|
|
16
|
-
|
|
16
|
+
if (inputRef.current) {
|
|
17
|
+
inputRef.current.indeterminate = indeterminate;
|
|
17
18
|
}
|
|
18
|
-
}, [indeterminate, checked]);
|
|
19
|
+
}, [indeterminate, checked, inputRef]);
|
|
19
20
|
var tickSize = {
|
|
20
21
|
s: 14,
|
|
21
22
|
m: 18,
|
|
@@ -43,7 +44,7 @@ var CheckboxIcon = function (_a) {
|
|
|
43
44
|
? true
|
|
44
45
|
: indeterminate && checked
|
|
45
46
|
? "mixed"
|
|
46
|
-
: false, className: classNames("arc-CheckboxIcon-input"), disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref:
|
|
47
|
+
: 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)),
|
|
47
48
|
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" },
|
|
48
49
|
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] })))));
|
|
49
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { g as useEscapeKeydown, f as useCallbackRef$1, b as useLayoutEffect2 } from './index-
|
|
4
|
+
import { g as useEscapeKeydown, f as useCallbackRef$1, b as useLayoutEffect2 } from './index-DkAfUbDx.mjs';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import * as ReactDOM from 'react-dom';
|
|
7
7
|
import ReactDOM__default from 'react-dom';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
2
|
import React__default, { useState, useEffect, isValidElement } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
|
-
import { R as Root2, T as Trigger, V as Value, I as Icon, P as Portal, C as Content2, S as ScrollUpButton, a as Viewport, b as Item, c as ItemText, d as ItemIndicator, e as ScrollDownButton } from './index-
|
|
4
|
+
import { R as Root2, T as Trigger, V as Value, I as Icon, P as Portal, C as Content2, S as ScrollUpButton, a as Viewport, b as Item, c as ItemText, d as ItemIndicator, e as ScrollDownButton } from './index-Dfz5UgHo.mjs';
|
|
5
5
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
6
6
|
import { T as ThemeIcon } from './ThemeIcon-B0n6cKRb.mjs';
|
|
7
|
-
import { e as useThemeElement } from './index-
|
|
7
|
+
import { e as useThemeElement } from './index-DkAfUbDx.mjs';
|
|
8
8
|
import { V as VisuallyHidden } from './VisuallyHidden-aSQ4RA1o.mjs';
|
|
9
9
|
|
|
10
10
|
// src/get-text-width/get-text-width.ts
|
package/lib/_shared/esm/{ContentSwitcherList-i4m4nAzP.mjs → ContentSwitcherList-Bvp9Zl85.mjs}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
|
-
import React__default, {
|
|
3
|
-
import { $ as $69cb30bb0017df05$export$be92b6f5f03c0fe9, a as $69cb30bb0017df05$export$41fb9f06171c75f4, b as $69cb30bb0017df05$export$7c6e2c02157bb7d2, c as $69cb30bb0017df05$export$54c2e3dc7acea9f5 } from './index-
|
|
2
|
+
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import { $ as $69cb30bb0017df05$export$be92b6f5f03c0fe9, a as $69cb30bb0017df05$export$41fb9f06171c75f4, b as $69cb30bb0017df05$export$7c6e2c02157bb7d2, c as $69cb30bb0017df05$export$54c2e3dc7acea9f5 } from './index-CfXVJXLq.mjs';
|
|
4
4
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
5
5
|
import { T as Text } from './Text-BAzOkkzN.mjs';
|
|
6
|
+
import { S as Surface } from './Surface-C69KVzkY.mjs';
|
|
6
7
|
import { d as debounce } from './debounce-D_Nx5go6.mjs';
|
|
7
8
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
8
9
|
|
|
@@ -13,11 +14,12 @@ var ContentSwitcher = function (_a) {
|
|
|
13
14
|
React__default.createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, __assign({ className: "arc-ContentSwitcher-root", defaultValue: defaultValue, onValueChange: onValueChange, activationMode: activationMode, value: value }, filterAttrs(props)), children)));
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
var ContentSwitcherTab =
|
|
17
|
-
var label = _a.label, value = _a.value, onClick = _a.onClick, onFocus = _a.onFocus, props = __rest(_a, ["label", "value", "onClick", "onFocus"]);
|
|
18
|
-
return (React__default.createElement(
|
|
19
|
-
React__default.createElement(
|
|
20
|
-
});
|
|
17
|
+
var ContentSwitcherTab = function (_a) {
|
|
18
|
+
var label = _a.label, value = _a.value, onClick = _a.onClick, onFocus = _a.onFocus, ref = _a.ref, props = __rest(_a, ["label", "value", "onClick", "onFocus", "ref"]);
|
|
19
|
+
return (React__default.createElement(Surface, { isTransparent: true },
|
|
20
|
+
React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, __assign({ className: "arc-ContentSwitcherTab", value: value, ref: ref, onClick: onClick, onFocus: onFocus }, filterAttrs(props)),
|
|
21
|
+
React__default.createElement(Text, { size: "m" }, label))));
|
|
22
|
+
};
|
|
21
23
|
|
|
22
24
|
var ContentSwitcherContent = function (_a) {
|
|
23
25
|
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"]);
|
|
@@ -32,13 +34,6 @@ var ContentSwitcherList = function (_a) {
|
|
|
32
34
|
var _d = useState(0), contentSwitcherListWidth = _d[0], setContentSwitcherListWidth = _d[1];
|
|
33
35
|
var tabRefs = useRef([]);
|
|
34
36
|
var listRef = useRef(null);
|
|
35
|
-
var checkOverflow = function () {
|
|
36
|
-
if (listRef.current) {
|
|
37
|
-
setRightOverflow(listRef.current.scrollLeft + listRef.current.clientWidth <
|
|
38
|
-
listRef.current.scrollWidth - 1);
|
|
39
|
-
setLeftOverflow(listRef.current.scrollLeft > 0);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
37
|
var scrollTabIntoView = function (tabRef) {
|
|
43
38
|
if (tabRef.current && listRef.current) {
|
|
44
39
|
var scrollLeft = tabRef.current.offsetLeft -
|
|
@@ -57,6 +52,13 @@ var ContentSwitcherList = function (_a) {
|
|
|
57
52
|
}, 100);
|
|
58
53
|
useEffect(function () {
|
|
59
54
|
var list = listRef.current;
|
|
55
|
+
var checkOverflow = function () {
|
|
56
|
+
if (listRef.current) {
|
|
57
|
+
setRightOverflow(listRef.current.scrollLeft + listRef.current.clientWidth <
|
|
58
|
+
listRef.current.scrollWidth - 1);
|
|
59
|
+
setLeftOverflow(listRef.current.scrollLeft > 0);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
60
62
|
var updateLayout = function () {
|
|
61
63
|
checkOverflow();
|
|
62
64
|
handleResize();
|
|
@@ -74,7 +76,7 @@ var ContentSwitcherList = function (_a) {
|
|
|
74
76
|
window.removeEventListener("resize", updateLayout);
|
|
75
77
|
handleResize.cancel();
|
|
76
78
|
};
|
|
77
|
-
}, [children,
|
|
79
|
+
}, [children, handleResize]);
|
|
78
80
|
return (React__default.createElement("span", { className: classNames("arc-ContentSwitcherList-wrapper", {
|
|
79
81
|
"arc-ContentSwitcherList-wrapper--isInset": isInset,
|
|
80
82
|
}), tabIndex: -1 },
|
|
@@ -83,14 +85,23 @@ var ContentSwitcherList = function (_a) {
|
|
|
83
85
|
"arc-ContentSwitcherList--isJustified": isJustified,
|
|
84
86
|
}), ref: listRef, "aria-label": ariaLabel }, filterAttrs(props)),
|
|
85
87
|
React__default.createElement("div", { className: "arc-ContentSwitcherList-inner" }, React__default.Children.map(children, function (child, index) {
|
|
86
|
-
if (
|
|
88
|
+
if (!React__default.isValidElement(child)) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
if (tabRefs.current[index] !== null) {
|
|
87
92
|
return React__default.cloneElement(child, {
|
|
88
|
-
ref: function (el) {
|
|
93
|
+
ref: function (el) {
|
|
94
|
+
tabRefs.current[index] = el;
|
|
95
|
+
},
|
|
89
96
|
onClick: function () {
|
|
90
|
-
|
|
97
|
+
var el = tabRefs.current[index];
|
|
98
|
+
if (el)
|
|
99
|
+
scrollTabIntoView({ current: el });
|
|
91
100
|
},
|
|
92
101
|
onFocus: function () {
|
|
93
|
-
|
|
102
|
+
var el = tabRefs.current[index];
|
|
103
|
+
if (el)
|
|
104
|
+
scrollTabIntoView({ current: el });
|
|
94
105
|
},
|
|
95
106
|
});
|
|
96
107
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
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-
|
|
4
|
+
import { R as Root2, A as Anchor2, T as Trigger, P as Portal, C as Content2, a as PopoverArrow } from './index-Dd3yZ_Kk.mjs';
|
|
5
5
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
6
|
-
import { e as useThemeElement } from './index-
|
|
6
|
+
import { e as useThemeElement } from './index-DkAfUbDx.mjs';
|
|
7
7
|
import { S as Surface } from './Surface-C69KVzkY.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Use `Popover` to display content in a portal, triggered by a button.
|
|
11
11
|
*/
|
|
12
12
|
var Popover = function (_a) {
|
|
13
|
-
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"]);
|
|
14
|
-
var
|
|
13
|
+
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"]);
|
|
14
|
+
var _p = useThemeElement(), themeElement = _p[0], setThemeElement = _p[1];
|
|
15
15
|
var alignOffsetDefault = align === "center" ? 0 : -16;
|
|
16
16
|
return (React__default.createElement("div", __assign({ className: "arc-Popover" }, filterAttrs(props)),
|
|
17
17
|
React__default.createElement(Root2, { open: open, onOpenChange: onOpenChange },
|
|
@@ -25,6 +25,9 @@ var Popover = function (_a) {
|
|
|
25
25
|
"arc-Popover-content--dark": background === "dark",
|
|
26
26
|
"arc-Popover-content--brand": background === "brand",
|
|
27
27
|
"arc-Popover-content--constrainToViewport": constrainToViewport,
|
|
28
|
+
"arc-Popover-content--isFluidToViewport": isFluidToViewport,
|
|
29
|
+
"arc-Popover-content--contentMargin": contentMargin,
|
|
30
|
+
"arc-Popover-content--isFullBleed": isFullBleed,
|
|
28
31
|
}), style: { maxWidth: maxWidth, minHeight: minHeight }, "aria-labelledby": "popover-content" },
|
|
29
32
|
content && React__default.createElement("div", { id: "popover-content" }, content),
|
|
30
33
|
arrow && (React__default.createElement(PopoverArrow, { className: "arc-Popover-arrow" })))))))))));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
|
-
import React__default from 'react';
|
|
2
|
+
import React__default, { useId } from 'react';
|
|
3
3
|
import { g as getDefaultExportFromCjs, c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
4
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
5
|
-
import { c as capitaliseFirstLetter } from './capitalise-first-letter-Cubg2CS1.mjs';
|
|
6
5
|
import { V as VisuallyHidden } from './VisuallyHidden-aSQ4RA1o.mjs';
|
|
6
|
+
import { C as ConditionalWrapper } from './ConditionalWrapper-CbEvXHTj.mjs';
|
|
7
7
|
import { I as Icon } from './Icon-CCUbr_AO.mjs';
|
|
8
8
|
|
|
9
9
|
var shorterCssColorNames;
|
|
@@ -148,7 +148,8 @@ var Current = "\n <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w
|
|
|
148
148
|
|
|
149
149
|
var ProgressStepperItem = function (_a) {
|
|
150
150
|
var _b;
|
|
151
|
-
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"]);
|
|
151
|
+
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, isViewing = _a.isViewing, props = __rest(_a, ["title", "titleHref", "subTitle", "direction", "status", "size", "isFluid", "invertLabelPosition", "ariaLabel", "onClick", "previousStep", "stepContent", "isStepContentHidden", "isViewing"]);
|
|
152
|
+
var id = useId();
|
|
152
153
|
var statusIcons = {
|
|
153
154
|
todo: undefined,
|
|
154
155
|
completed: Complete,
|
|
@@ -161,46 +162,46 @@ var ProgressStepperItem = function (_a) {
|
|
|
161
162
|
onClick && onClick();
|
|
162
163
|
};
|
|
163
164
|
var statusIcon = statusIcons[status];
|
|
164
|
-
|
|
165
|
+
var accessibleStatusLabel = "".concat(status === "todo" ? "to do" : status).concat(isViewing ? " - currently viewing" : "");
|
|
166
|
+
return (React__default.createElement("li", __assign({ "data-progress-stepper-item-id": id, className: classNames("arc-ProgressStepperItem", "arc-ProgressStepperItem--".concat(status), "arc-ProgressStepperItem--".concat(size), (_b = {
|
|
165
167
|
"arc-ProgressStepperItem--vertical": direction === "vertical",
|
|
166
168
|
"arc-ProgressStepperItem--isFluid": isFluid && direction !== "vertical",
|
|
167
169
|
"arc-ProgressStepperItem--previousStepCompleted": previousStep === "completed"
|
|
168
170
|
},
|
|
169
|
-
_b["arc-ProgressStepperItem--hasInteractiveStatus"] = status !== "todo",
|
|
171
|
+
_b["arc-ProgressStepperItem--hasInteractiveStatus"] = onClick || titleHref || status !== "todo",
|
|
170
172
|
_b["arc-ProgressStepperItem--invertLabelPosition"] = direction !== "vertical" && invertLabelPosition,
|
|
171
173
|
_b)) }, filterAttrs(props)),
|
|
172
174
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconSection" },
|
|
173
175
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-iconWrapper", "data-testid": "arc-ProgressStepperItem-iconWrapper" },
|
|
174
176
|
React__default.createElement("span", { className: classNames("arc-ProgressStepperItem-statusIcon", {
|
|
175
177
|
"arc-ProgressStepperItem-statusIcon--small": size === "small",
|
|
176
|
-
}) },
|
|
178
|
+
}) },
|
|
179
|
+
status === "todo" && !isViewing ? null : isViewing ? (React__default.createElement("div", { className: "arc-ProgressStepperItem-statusIconInner" })) : (status !== "current" && (React__default.createElement(Icon, { icon: statusIcon && svgToMiniDataURI(statusIcon) }))),
|
|
180
|
+
status === "current" && isViewing === undefined ? (React__default.createElement(Icon, { icon: statusIcon && svgToMiniDataURI(statusIcon) })) : null))),
|
|
177
181
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-textSection" },
|
|
178
|
-
titleHref || onClick
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
":",
|
|
186
|
-
capitaliseFirstLetter(status))) : (React__default.createElement(VisuallyHidden, null, ":To do")))),
|
|
187
|
-
React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle),
|
|
182
|
+
React__default.createElement(ConditionalWrapper, { condition: Boolean(titleHref || onClick), wrapper: function (children) { return (React__default.createElement("a", { role: !titleHref && onClick ? "button" : undefined, href: titleHref, className: classNames("arc-ProgressStepperItem-title", "arc-ProgressStepperItem-title--link"), onClick: onClickHandler, "aria-label": ariaLabel ||
|
|
183
|
+
(status !== "current"
|
|
184
|
+
? "".concat(title, ", ").concat(accessibleStatusLabel)
|
|
185
|
+
: undefined), "aria-current": status === "current" && "step" }, children)); }, fallback: function (children) { return (React__default.createElement("div", { className: "arc-ProgressStepperItem-title" },
|
|
186
|
+
children,
|
|
187
|
+
React__default.createElement(VisuallyHidden, null, " - ".concat(accessibleStatusLabel)))); } }, title),
|
|
188
|
+
subTitle && (React__default.createElement("div", { className: "arc-ProgressStepperItem-subTitle" }, subTitle)),
|
|
188
189
|
stepContent && !isStepContentHidden && direction === "vertical" && (React__default.createElement(React__default.Fragment, null,
|
|
189
190
|
React__default.createElement("div", { className: "arc-ProgressStepperItem-nodeItem" }, stepContent))))));
|
|
190
191
|
};
|
|
191
192
|
|
|
192
193
|
/** Use `ProgressStepper` to provide an overview of a series of steps in a digital journey. */
|
|
193
194
|
var ProgressStepper = function (_a) {
|
|
194
|
-
var children = _a.children, size = _a.size, isFluid = _a.isFluid, direction = _a.direction, isExpandable = _a.isExpandable, invertLabelPosition = _a.invertLabelPosition,
|
|
195
|
+
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"]);
|
|
195
196
|
var items = React__default.Children.toArray(children);
|
|
196
197
|
var getStepStatus = function (item) {
|
|
197
198
|
var _a;
|
|
198
199
|
return (_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.status;
|
|
199
200
|
};
|
|
200
|
-
return (React__default.createElement("
|
|
201
|
+
return (React__default.createElement("ol", __assign({ ref: ref, className: classNames("arc-ProgressStepper", {
|
|
201
202
|
"arc-ProgressStepper--vertical": direction === "vertical",
|
|
202
203
|
}) }, filterAttrs(props)), items.map(function (item, index) { return (React__default.createElement(React__default.Fragment, { key: "StepperItem-".concat(index) },
|
|
203
|
-
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))))); })));
|
|
204
|
+
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))))); })));
|
|
204
205
|
};
|
|
205
206
|
|
|
206
207
|
export { ProgressStepper as P, ProgressStepperItem as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
2
|
import React__default, { useContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
4
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
@@ -7,9 +7,9 @@ import { C as Context } from './Surface-C69KVzkY.mjs';
|
|
|
7
7
|
/**
|
|
8
8
|
* Use `Rule` to display a horizontal or vertical rule.
|
|
9
9
|
*/
|
|
10
|
-
var Rule = function (_a
|
|
10
|
+
var Rule = function (_a) {
|
|
11
11
|
var _b;
|
|
12
|
-
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
12
|
+
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c, props = __rest(_a, ["orientation"]);
|
|
13
13
|
var surface = useContext(Context).surface;
|
|
14
14
|
return (React__default.createElement("hr", __assign({ className: classNames((_b = {
|
|
15
15
|
"arc-Rule": true
|
|
@@ -21,7 +21,7 @@ var BannerRow = function (_a) {
|
|
|
21
21
|
|
|
22
22
|
/** Use `TemplateBanner` as a base structure for banner components; other banner variants extend or consume this template. */
|
|
23
23
|
var TemplateBanner = function (_a) {
|
|
24
|
-
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 =
|
|
24
|
+
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"]);
|
|
25
25
|
var backgrounds = {
|
|
26
26
|
dark: "dark-brand-02",
|
|
27
27
|
light: "light-white",
|
|
@@ -66,7 +66,7 @@ var TemplateBanner = function (_a) {
|
|
|
66
66
|
label && (React__default.createElement(React__default.Fragment, null,
|
|
67
67
|
React__default.createElement(Heading, { level: labelLevel, fontStyle: "overline", isWordWrap: false }, label),
|
|
68
68
|
React__default.createElement(VerticalSpace, { size: "8" }))),
|
|
69
|
-
React__default.createElement(Heading, { level: headingLevel, size: headingSize, fontStyle: fontStyle, isWordWrap:
|
|
69
|
+
React__default.createElement(Heading, { level: headingLevel, size: headingSize, fontStyle: fontStyle, isWordWrap: headingWordWrap }, heading),
|
|
70
70
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
71
71
|
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
72
72
|
React__default.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React__default, {
|
|
1
|
+
import { a as __assign, _ as __rest } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
2
|
+
import React__default, { useState, useContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-5C0-U8cc.mjs';
|
|
4
4
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
5
5
|
import { u as useAriaDescribedby, F as FormControl } from './FormControl-DopDD_nC.mjs';
|
|
@@ -7,7 +7,7 @@ import { C as Context } from './Surface-C69KVzkY.mjs';
|
|
|
7
7
|
import { V as VisuallyHidden } from './VisuallyHidden-aSQ4RA1o.mjs';
|
|
8
8
|
import { S as Spinner } from './Spinner-DvngCIwx.mjs';
|
|
9
9
|
import { I as Icon } from './Icon-CCUbr_AO.mjs';
|
|
10
|
-
import { T as Tooltip } from './Tooltip-
|
|
10
|
+
import { T as Tooltip } from './Tooltip-DY8nS1to.mjs';
|
|
11
11
|
import { T as ThemeIcon } from './ThemeIcon-B0n6cKRb.mjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -108,9 +108,9 @@ var TrailingSlot = function (_a) {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
/** Use `TextInput` as a single-line field that allows users to enter short text, such as names, email, search queries or passwords. */
|
|
111
|
-
var TextInputComponent =
|
|
111
|
+
var TextInputComponent = function (_a) {
|
|
112
112
|
var _b;
|
|
113
|
-
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"]);
|
|
113
|
+
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"]);
|
|
114
114
|
var _l = useState(false), showPasswordToggle = _l[0], setShowPasswordToggle = _l[1];
|
|
115
115
|
var inferredInputProps = useNumericInput({
|
|
116
116
|
inputMode: inputMode,
|
|
@@ -149,11 +149,11 @@ var TextInputComponent = forwardRef(function (_a, ref) {
|
|
|
149
149
|
isLoading ||
|
|
150
150
|
(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 })),
|
|
151
151
|
suffix && (React__default.createElement("span", { className: "arc-TextInput-suffix arc-TextInput-affixes", "aria-hidden": true }, suffix))))));
|
|
152
|
-
}
|
|
152
|
+
};
|
|
153
153
|
/**
|
|
154
154
|
* Use `TextInput` to allow users to enter short form text.
|
|
155
155
|
*/
|
|
156
|
-
var TextInput =
|
|
157
|
-
var TextInputWithPlaceHolder =
|
|
156
|
+
var TextInput = function (props) { return (React__default.createElement(TextInputComponent, __assign({}, props))); };
|
|
157
|
+
var TextInputWithPlaceHolder = function (props) { return React__default.createElement(TextInputComponent, __assign({}, props)); };
|
|
158
158
|
|
|
159
159
|
export { InputIcon as I, TextInput as T, TextInputWithPlaceHolder as a };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { _ as __rest, a as __assign } from './tslib.es6-w7hdJ3oZ.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
-
import { g as useEscapeKeydown, f as useCallbackRef, b as useLayoutEffect2, c as createContextScope$1, a as useId, u as useControllableState, e as useThemeElement } from './index-
|
|
5
|
+
import { g as useEscapeKeydown, f as useCallbackRef, b as useLayoutEffect2, c as createContextScope$1, a as useId, u as useControllableState, e as useThemeElement } from './index-DkAfUbDx.mjs';
|
|
6
6
|
import * as ReactDOM from 'react-dom';
|
|
7
7
|
import ReactDOM__default from 'react-dom';
|
|
8
8
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import { u as useSize, a as useFloating, b as autoUpdate, o as offset, s as shift,
|
|
9
|
+
import { u as useSize, a as useFloating, b as autoUpdate, o as offset, s as shift, f as flip, c as size, d as arrow, h as hide, l as limitShift } from './index-Cgsjp3NL.mjs';
|
|
10
10
|
import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
|
|
11
11
|
import { S as Surface } from './Surface-C69KVzkY.mjs';
|
|
12
12
|
import { I as Icon } from './Icon-CCUbr_AO.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as ArcSizeBreakpointsS, a as ArcSizeBreakpointsM, b as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl, d as ArcSizeBreakpointsXxl, e as ArcSizeBreakpointsXs } from './index.es-99J0r2va.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Provides an object of breakpoints for responsive designs.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { c as createContextScope } from './index-
|
|
5
|
-
import { u as useComposedRefs, S as Slot } from './Combination-
|
|
4
|
+
import { c as createContextScope } from './index-DkAfUbDx.mjs';
|
|
5
|
+
import { u as useComposedRefs, S as Slot } from './Combination-BW0YAEZD.mjs';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function createCollection(name) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useComposedRefs } from './Combination-
|
|
4
|
-
import { b as useLayoutEffect2 } from './index-
|
|
3
|
+
import { u as useComposedRefs } from './Combination-BW0YAEZD.mjs';
|
|
4
|
+
import { b as useLayoutEffect2 } from './index-DkAfUbDx.mjs';
|
|
5
5
|
|
|
6
6
|
function useStateMachine(initialState, machine) {
|
|
7
7
|
return React.useReducer((state, event) => {
|
|
@@ -361,4 +361,4 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp ,
|
|
|
361
361
|
return uncontrolledState;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
export { $c512c27ab02ef895$export$50c7b4e9d9f19c1 as $, _extends as _, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as a, $5e63c961fc1ce211$export$8c6ed5c666ac1360 as b, $9f79659886946c16$export$e5c5a5f917a5871c as c, $
|
|
364
|
+
export { $c512c27ab02ef895$export$50c7b4e9d9f19c1 as $, _extends as _, $6ed0406888f73fc4$export$c7b2cbe3552a0d05 as a, $5e63c961fc1ce211$export$8c6ed5c666ac1360 as b, $9f79659886946c16$export$e5c5a5f917a5871c as c, $71cd76cc60e0454e$export$6f32135080cb4c3 as d, $b1b2314f5f9a1d84$export$25bec8c6f54ee79a as e, $8927f6f2acc4f386$export$250ffa63cdc0d034 as f, $e42e1063c40fb3ef$export$b9ecd428b558ff10 as g, $8927f6f2acc4f386$export$6d1a0317bde7de7f as h };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as $9f79659886946c16$export$e5c5a5f917a5871c, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1,
|
|
1
|
+
import { c as $9f79659886946c16$export$e5c5a5f917a5871c, $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, _ as _extends, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, d as $71cd76cc60e0454e$export$6f32135080cb4c3, e as $b1b2314f5f9a1d84$export$25bec8c6f54ee79a, f as $8927f6f2acc4f386$export$250ffa63cdc0d034, g as $e42e1063c40fb3ef$export$b9ecd428b558ff10 } from './index-C_mwuZg6.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useContext, createContext, forwardRef,
|
|
4
|
-
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2, a as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-
|
|
3
|
+
import { useContext, createContext, forwardRef, createElement, useRef, useState, useEffect, useCallback } from 'react';
|
|
4
|
+
import { $ as $e02a7d9cb1dc128c$export$c74125a8e3af6bb2, a as $921a889cee6df7e8$export$99c2b779aa4e8b8b } from './index-Drb5ngQr.mjs';
|
|
5
5
|
|
|
6
6
|
const $1746a345f3d73bb7$var$useReactId = React['useId'.toString()] || (()=>undefined
|
|
7
7
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useLayoutEffect, useEffect } from 'react';
|
|
3
3
|
import * as ReactDOM from 'react-dom';
|
|
4
|
-
import { b as useLayoutEffect2 } from './index-
|
|
4
|
+
import { b as useLayoutEffect2 } from './index-DkAfUbDx.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Custom positioning reference element.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, R as ReactRemoveScroll, S as Slot, h as hideOthers, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-
|
|
4
|
-
import { c as createContextScope, d as createContext2, u as useControllableState, a as useId } from './index-
|
|
5
|
-
import { P as Presence } from './index-
|
|
3
|
+
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, R as ReactRemoveScroll, S as Slot, h as hideOthers, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-BW0YAEZD.mjs';
|
|
4
|
+
import { c as createContextScope, d as createContext2, u as useControllableState, a as useId } from './index-DkAfUbDx.mjs';
|
|
5
|
+
import { P as Presence } from './index-BMmvMegf.mjs';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var DIALOG_NAME = "Dialog";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useSize, a as useFloating, b as autoUpdate, o as offset, s as shift, f as flip, c as size, d as arrow, h as hide, l as limitShift } from './index-
|
|
4
|
-
import { P as Primitive, u as useComposedRefs } from './Combination-
|
|
3
|
+
import { u as useSize, a as useFloating, b as autoUpdate, o as offset, s as shift, f as flip, c as size, d as arrow, h as hide, l as limitShift } from './index-Cgsjp3NL.mjs';
|
|
4
|
+
import { P as Primitive, u as useComposedRefs } from './Combination-BW0YAEZD.mjs';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
import { c as createContextScope, f as useCallbackRef, b as useLayoutEffect2 } from './index-
|
|
6
|
+
import { c as createContextScope, f as useCallbackRef, b as useLayoutEffect2 } from './index-DkAfUbDx.mjs';
|
|
7
7
|
|
|
8
8
|
// packages/react/arrow/src/arrow.tsx
|
|
9
9
|
var NAME = "Arrow";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, h as hideOthers, R as ReactRemoveScroll, S as Slot, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-
|
|
4
|
-
import { c as createContextScope, u as useControllableState, a as useId } from './index-
|
|
5
|
-
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-
|
|
6
|
-
import { P as Presence } from './index-
|
|
3
|
+
import { u as useComposedRefs, P as Primitive, c as composeEventHandlers, h as hideOthers, R as ReactRemoveScroll, S as Slot, a as useFocusGuards, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-BW0YAEZD.mjs';
|
|
4
|
+
import { c as createContextScope, u as useControllableState, a as useId } from './index-DkAfUbDx.mjs';
|
|
5
|
+
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-DNvlT7G_.mjs';
|
|
6
|
+
import { P as Presence } from './index-BMmvMegf.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var POPOVER_NAME = "Popover";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as ReactDOM from 'react-dom';
|
|
4
|
-
import { P as Primitive, u as useComposedRefs, c as composeEventHandlers, h as hideOthers, a as useFocusGuards, R as ReactRemoveScroll, S as Slot, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-
|
|
5
|
-
import { c as createCollection, u as useDirection } from './index-
|
|
6
|
-
import { c as createContextScope, b as useLayoutEffect2, a as useId, f as useCallbackRef, u as useControllableState } from './index-
|
|
7
|
-
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-
|
|
4
|
+
import { P as Primitive, u as useComposedRefs, c as composeEventHandlers, h as hideOthers, a as useFocusGuards, R as ReactRemoveScroll, S as Slot, F as FocusScope, D as DismissableLayer, b as Portal$1 } from './Combination-BW0YAEZD.mjs';
|
|
5
|
+
import { c as createCollection, u as useDirection } from './index-B3ewsmrD.mjs';
|
|
6
|
+
import { c as createContextScope, b as useLayoutEffect2, a as useId, f as useCallbackRef, u as useControllableState } from './index-DkAfUbDx.mjs';
|
|
7
|
+
import { c as createPopperScope, A as Anchor, C as Content, a as Arrow, R as Root2$1 } from './index-DNvlT7G_.mjs';
|
|
8
8
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// packages/core/number/src/number.ts
|
|
@@ -119,9 +119,9 @@ var count = 0;
|
|
|
119
119
|
function useId(deterministicId) {
|
|
120
120
|
const [id, setId] = React.useState(useReactId());
|
|
121
121
|
useLayoutEffect2(() => {
|
|
122
|
-
|
|
122
|
+
setId((reactId) => reactId ?? String(count++));
|
|
123
123
|
}, [deterministicId]);
|
|
124
|
-
return
|
|
124
|
+
return (id ? `radix-${id}` : "");
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
// packages/react/use-controllable-state/src/useControllableState.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { Children, cloneElement, useState, useRef, useEffect, useCallback, useReducer } from 'react';
|
|
2
|
-
import { $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, b as $5e63c961fc1ce211$export$8c6ed5c666ac1360, c as $9f79659886946c16$export$e5c5a5f917a5871c } from './index-
|
|
2
|
+
import { $ as $c512c27ab02ef895$export$50c7b4e9d9f19c1, a as $6ed0406888f73fc4$export$c7b2cbe3552a0d05, b as $5e63c961fc1ce211$export$8c6ed5c666ac1360, c as $9f79659886946c16$export$e5c5a5f917a5871c } from './index-C_mwuZg6.mjs';
|
|
3
3
|
import { flushSync } from 'react-dom';
|
|
4
4
|
|
|
5
5
|
// We have resorted to returning slots directly rather than exposing primitives that can then
|