@arc-ui/components 12.0.0-beta.16 → 12.0.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Alert/Alert.cjs +1 -1
- package/lib/Alert/Alert.mjs +1 -1
- package/lib/Alert/styles.css +1 -1
- package/lib/Align/styles.css +1 -1
- package/lib/AppButton/styles.css +1 -1
- package/lib/Avatar/styles.css +1 -1
- package/lib/AvatarGroup/styles.css +1 -1
- package/lib/Badge/styles.css +1 -1
- package/lib/Banner/Banner.cjs +6 -6
- package/lib/Banner/Banner.mjs +6 -6
- package/lib/Box/styles.css +1 -1
- package/lib/BrandLogo/styles.css +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -2
- package/lib/Breadcrumbs/styles.css +1 -1
- package/lib/Button/Button.cjs +2 -2
- package/lib/Button/Button.mjs +2 -2
- package/lib/Button/styles.css +1 -1
- package/lib/ButtonGroup/ButtonGroup.cjs +3 -3
- package/lib/ButtonGroup/ButtonGroup.mjs +3 -3
- package/lib/ButtonGroup/styles.css +1 -1
- package/lib/ButtonV2/ButtonV2.cjs +2 -2
- package/lib/ButtonV2/ButtonV2.mjs +2 -2
- package/lib/ButtonV2/styles.css +1 -1
- package/lib/Calendar/Calendar.cjs +4 -4
- package/lib/Calendar/Calendar.mjs +4 -4
- package/lib/Calendar/styles.css +1 -1
- package/lib/CardFooter/CardFooter.cjs +2 -4
- package/lib/CardFooter/CardFooter.mjs +2 -4
- package/lib/CardFooter/styles.css +1 -1
- package/lib/CardHeading/styles.css +1 -1
- package/lib/Carousel/Carousel.cjs +1 -1
- package/lib/Carousel/Carousel.mjs +1 -1
- package/lib/Carousel/styles.css +1 -1
- package/lib/Checkbox/styles.css +1 -1
- package/lib/Columns/styles.css +1 -1
- package/lib/ComboBox/ComboBox.cjs +6 -6
- package/lib/ComboBox/ComboBox.mjs +6 -6
- package/lib/ComboBox/styles.css +1 -1
- package/lib/ContentSwitcher/styles.css +1 -1
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +6 -4
- package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +6 -4
- package/lib/ContentSwitcherDropdown/styles.css +1 -1
- package/lib/DatePicker/DatePicker.cjs +9 -9
- package/lib/DatePicker/DatePicker.mjs +9 -9
- package/lib/DatePicker/styles.css +1 -1
- package/lib/Disclosure/styles.css +1 -1
- package/lib/DisclosureMini/styles.css +1 -1
- package/lib/Download/styles.css +1 -1
- package/lib/Drawer/Drawer.cjs +3 -3
- package/lib/Drawer/Drawer.mjs +3 -3
- package/lib/Drawer/styles.css +1 -1
- package/lib/Elevation/styles.css +1 -1
- package/lib/Filter/styles.css +1 -1
- package/lib/FormControl/styles.css +1 -1
- package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +31 -0
- package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +29 -0
- package/lib/GhostedHeroBanner/styles.css +1 -0
- package/lib/GradientBackground/GradientBackground.cjs +19 -0
- package/lib/GradientBackground/GradientBackground.mjs +17 -0
- package/lib/GradientBackground/styles.css +1 -0
- package/lib/Grid/styles.css +1 -1
- package/lib/Group/styles.css +1 -1
- package/lib/Heading/styles.css +1 -1
- package/lib/HeroBanner/HeroBanner.cjs +6 -6
- package/lib/HeroBanner/HeroBanner.mjs +6 -6
- package/lib/HeroBanner/styles.css +1 -1
- package/lib/HeroButton/HeroButton.cjs +2 -2
- package/lib/HeroButton/HeroButton.mjs +2 -2
- package/lib/HeroButton/styles.css +1 -1
- package/lib/Hidden/styles.css +1 -1
- package/lib/HorizontalCard/HorizontalCard.cjs +2 -4
- package/lib/HorizontalCard/HorizontalCard.mjs +2 -4
- package/lib/HorizontalCard/styles.css +1 -1
- package/lib/Icon/Icon.cjs +1 -1
- package/lib/Icon/Icon.mjs +1 -1
- package/lib/Icon/styles.css +1 -1
- package/lib/Image/styles.css +1 -1
- package/lib/ImpactCard/ImpactCard.cjs +2 -4
- package/lib/ImpactCard/ImpactCard.mjs +2 -4
- package/lib/ImpactCard/styles.css +1 -1
- package/lib/InformationCard/InformationCard.cjs +4 -4
- package/lib/InformationCard/InformationCard.mjs +4 -4
- package/lib/InformationCard/styles.css +1 -1
- package/lib/Link/Link.cjs +9 -22
- package/lib/Link/Link.mjs +9 -22
- package/lib/Link/styles.css +1 -1
- package/lib/Markup/styles.css +1 -1
- package/lib/MediaCard/MediaCard.cjs +4 -6
- package/lib/MediaCard/MediaCard.mjs +4 -6
- package/lib/MediaCard/styles.css +1 -1
- package/lib/Menu/Menu.cjs +261 -0
- package/lib/Menu/Menu.mjs +243 -0
- package/lib/Menu/styles.css +1 -0
- package/lib/Modal/Modal.cjs +18 -12
- package/lib/Modal/Modal.mjs +18 -12
- package/lib/Modal/styles.css +1 -1
- package/lib/Pagination/styles.css +1 -1
- package/lib/PaginationSimple/PaginationSimple.cjs +15 -49
- package/lib/PaginationSimple/PaginationSimple.mjs +15 -49
- package/lib/PaginationSimple/styles.css +1 -1
- package/lib/Popover/Popover.cjs +7 -7
- package/lib/Popover/Popover.mjs +7 -7
- package/lib/Popover/styles.css +1 -1
- package/lib/Poster/styles.css +1 -1
- package/lib/ProgressBar/styles.css +1 -1
- package/lib/ProgressStepper/ProgressStepper.cjs +8 -23
- package/lib/ProgressStepper/ProgressStepper.mjs +8 -23
- package/lib/ProgressStepper/styles.css +1 -1
- package/lib/RadioCardGroup/RadioCardGroup.cjs +2 -2
- package/lib/RadioCardGroup/RadioCardGroup.mjs +3 -3
- package/lib/RadioCardGroup/styles.css +1 -1
- package/lib/RadioGroup/styles.css +1 -1
- package/lib/Rule/styles.css +1 -1
- package/lib/ScrollToTop/ScrollToTop.cjs +8 -17
- package/lib/ScrollToTop/ScrollToTop.mjs +8 -17
- package/lib/ScrollToTop/styles.css +1 -1
- package/lib/Section/styles.css +1 -1
- package/lib/Select/Select.cjs +4 -3
- package/lib/Select/Select.mjs +4 -3
- package/lib/Select/styles.css +1 -1
- package/lib/SiteFooter/SiteFooter.cjs +1 -1
- package/lib/SiteFooter/SiteFooter.mjs +1 -1
- package/lib/SiteFooter/styles.css +1 -1
- package/lib/SiteFooterV2/SiteFooterV2.cjs +5 -5
- package/lib/SiteFooterV2/SiteFooterV2.mjs +5 -5
- package/lib/SiteFooterV2/styles.css +1 -1
- package/lib/SiteHeaderV2/SiteHeaderV2.cjs +11 -11
- package/lib/SiteHeaderV2/SiteHeaderV2.mjs +12 -12
- package/lib/SiteHeaderV2/styles.css +1 -1
- package/lib/Skeleton/styles.css +1 -1
- package/lib/SkipLink/styles.css +1 -1
- package/lib/Spinner/styles.css +1 -1
- package/lib/Surface/styles.css +1 -1
- package/lib/Switch/Switch.cjs +3 -2
- package/lib/Switch/Switch.mjs +3 -2
- package/lib/Switch/styles.css +1 -1
- package/lib/TabbedBanner/TabbedBanner.cjs +13 -10
- package/lib/TabbedBanner/TabbedBanner.mjs +13 -10
- package/lib/TabbedBanner/styles.css +1 -1
- package/lib/Tabs/Tabs.cjs +1 -1
- package/lib/Tabs/Tabs.mjs +1 -1
- package/lib/Tabs/styles.css +1 -1
- package/lib/Tag/Tag.cjs +15 -37
- package/lib/Tag/Tag.mjs +15 -37
- package/lib/Tag/styles.css +1 -1
- package/lib/TemplateBanner/TemplateBanner.cjs +6 -6
- package/lib/TemplateBanner/TemplateBanner.mjs +6 -6
- package/lib/TemplateBanner/styles.css +1 -1
- package/lib/Text/styles.css +1 -1
- package/lib/TextArea/TextArea.cjs +34 -26
- package/lib/TextArea/TextArea.mjs +34 -26
- package/lib/TextArea/styles.css +1 -1
- package/lib/TextInput/styles.css +1 -1
- package/lib/Theme/Theme.cjs +1 -1
- package/lib/Theme/Theme.mjs +1 -1
- package/lib/Theme/styles.css +1 -1
- package/lib/ThemeIcon/styles.css +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +4 -4
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +4 -4
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/Toast/styles.css +1 -1
- package/lib/Tooltip/Tooltip.cjs +1 -1
- package/lib/Tooltip/Tooltip.mjs +1 -1
- package/lib/Tooltip/styles.css +1 -1
- package/lib/Truncate/styles.css +1 -1
- package/lib/TypographyCard/TypographyCard.cjs +2 -4
- package/lib/TypographyCard/TypographyCard.mjs +2 -4
- package/lib/TypographyCard/styles.css +1 -1
- package/lib/UniversalHeader/styles.css +1 -1
- package/lib/VerticalSpace/styles.css +1 -1
- package/lib/VideoPlayer/VideoPlayer.cjs +12 -5
- package/lib/VideoPlayer/VideoPlayer.mjs +12 -5
- package/lib/VideoPlayer/styles.css +1 -1
- package/lib/Visible/styles.css +1 -1
- package/lib/VisuallyHidden/styles.css +1 -1
- package/lib/_shared/cjs/BannerImage-kdAKagG-.cjs +13 -0
- package/lib/_shared/cjs/BtIconArrowRight-Bm5PIn_6.cjs +11 -0
- package/lib/_shared/cjs/BtIconChevronRight2Px-CIRaur2B.cjs +20 -0
- package/lib/_shared/cjs/BtIconChevronRightMid-eGxk3ae6.cjs +11 -0
- package/lib/_shared/cjs/{Button-b36K7-Cf.cjs → Button-CKTa6bQL.cjs} +1 -1
- package/lib/_shared/cjs/{ButtonV2-s8OF4enU.cjs → ButtonV2-CRNNZ_nd.cjs} +15 -4
- package/lib/_shared/cjs/{Calendar-D58QIWQz.cjs → Calendar-C5C0evEy.cjs} +17 -40
- package/lib/_shared/cjs/{CardFooter-B2ljCf25.cjs → CardFooter-DwE-u0Om.cjs} +9 -45
- package/lib/_shared/cjs/{Combination-iNPq-pNP.cjs → Combination-B-rSVLfT.cjs} +2 -0
- package/lib/_shared/cjs/{ComboBox-CmVMpsxn.cjs → ComboBox-BIMxZhJp.cjs} +10 -20
- package/lib/_shared/cjs/{ContentSwitcherDropdown-CWP2-zun.cjs → ContentSwitcherDropdown-CAWaAMZN.cjs} +4 -2
- package/lib/_shared/cjs/{DatePicker-Cx5VZpwJ.cjs → DatePicker-BgU6iidG.cjs} +2 -2
- package/lib/_shared/cjs/HeroButton-CiIygZ16.cjs +82 -0
- package/lib/_shared/cjs/Icon-KMACQ1i3.cjs +39 -0
- package/lib/_shared/cjs/{MediaCard-DkTTTQNz.cjs → MediaCard-kcqfmeue.cjs} +2 -2
- package/lib/_shared/cjs/MenuSubContent-Bs2_ebS3.cjs +1330 -0
- package/lib/_shared/cjs/{RadioCardGroupInput-DT0Xce4L.cjs → RadioCardGroupInput-BmntgyWB.cjs} +1 -1
- package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-XnnzUfOs.cjs → SiteHeaderV2NavItemWithSubNav-DgoCW2W3.cjs} +8 -7
- package/lib/_shared/cjs/{TemplateBanner-BCbI7NLb.cjs → TemplateBanner-BMi77IGK.cjs} +10 -18
- package/lib/_shared/cjs/{index-DbQ2PCr3.cjs → index-Bt7hfZBc.cjs} +1 -1
- package/lib/_shared/cjs/{index-BcWpGxUd.cjs → index-C_Rl7v2g.cjs} +27 -94
- package/lib/_shared/cjs/{index-Cn7XSNle.cjs → index-CaO6cOF0.cjs} +3 -3
- package/lib/_shared/cjs/index-CqYNiqix.cjs +137 -0
- package/lib/_shared/cjs/{index-BMs6MHwq.cjs → index-DAr_oO4-.cjs} +2 -2
- package/lib/_shared/cjs/{index-DNgUhsBO.cjs → index-Dv1xvB_E.cjs} +1 -1
- package/lib/_shared/cjs/index-EFXw1jWg.cjs +97 -0
- package/lib/_shared/cjs/{index.es-CY6h69at.cjs → index.es-sqSQUWYg.cjs} +1 -1
- package/lib/_shared/esm/BannerImage-BTsixvUH.mjs +11 -0
- package/lib/_shared/esm/BtIconArrowRight-DpUmY3g3.mjs +9 -0
- package/lib/_shared/esm/BtIconChevronRight2Px-DzWb16fR.mjs +17 -0
- package/lib/_shared/esm/BtIconChevronRightMid-DE4lmVaG.mjs +9 -0
- package/lib/_shared/esm/{Button-DtmI3xYm.mjs → Button-9L4AksQP.mjs} +1 -1
- package/lib/_shared/esm/{ButtonV2-CkFdHviV.mjs → ButtonV2-2U4PvnpS.mjs} +15 -4
- package/lib/_shared/esm/{Calendar-C_b271wl.mjs → Calendar-L6u3D8xb.mjs} +17 -40
- package/lib/_shared/esm/{CardFooter-6APGUbK4.mjs → CardFooter-CgDDDI7Z.mjs} +9 -45
- package/lib/_shared/esm/{Combination-CFD0IA8r.mjs → Combination-BpO6XTeS.mjs} +1 -1
- package/lib/_shared/esm/{ComboBox-CTx_umV_.mjs → ComboBox-DUTrEu0N.mjs} +10 -20
- package/lib/_shared/esm/{ContentSwitcherDropdown-DuN_n1jh.mjs → ContentSwitcherDropdown-dktkyAjY.mjs} +4 -2
- package/lib/_shared/esm/{DatePicker-CIdfpUqM.mjs → DatePicker-CccSfg17.mjs} +2 -2
- package/lib/_shared/esm/HeroButton-HYskwyvn.mjs +80 -0
- package/lib/_shared/esm/Icon-MZfaoOo9.mjs +36 -0
- package/lib/_shared/esm/{MediaCard-_6xVVmiF.mjs → MediaCard-CjTDOvmx.mjs} +2 -2
- package/lib/_shared/esm/MenuSubContent-Cv9mSn58.mjs +1297 -0
- package/lib/_shared/esm/{RadioCardGroupInput-CwYJBtmO.mjs → RadioCardGroupInput-Cy1r7M8l.mjs} +1 -1
- package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-C_rohQhn.mjs → SiteHeaderV2NavItemWithSubNav-BLqiSeEC.mjs} +8 -7
- package/lib/_shared/esm/{TemplateBanner-Cckao4N8.mjs → TemplateBanner-zc4VmeeW.mjs} +10 -18
- package/lib/_shared/esm/index-BbAu4d3T.mjs +76 -0
- package/lib/_shared/esm/index-CL6dwOYV.mjs +135 -0
- package/lib/_shared/esm/{index-CpOcAL8k.mjs → index-CYUcQl4W.mjs} +3 -71
- package/lib/_shared/esm/{index-ZYyu0Vjh.mjs → index-CxrL7jIX.mjs} +3 -3
- package/lib/_shared/esm/{index-DNxTGgc1.mjs → index-DLovItWo.mjs} +1 -1
- package/lib/_shared/esm/{index-BUp5JjoD.mjs → index-DXTwueLZ.mjs} +1 -1
- package/lib/_shared/esm/{index-pkbjTTz_.mjs → index-J5IHetgg.mjs} +2 -2
- package/lib/_shared/esm/{index.es-JItYKukj.mjs → index.es-C3WGtwrW.mjs} +2 -2
- package/lib/index.cjs +2457 -1014
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +800 -431
- package/lib/index.d.mts +800 -431
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2437 -1014
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +22 -8
- package/package.json +11 -8
- package/lib/_shared/cjs/BtIconArrowRight-BX-bj8Y6.cjs +0 -27
- package/lib/_shared/cjs/BtIconChevronRight2Px-CnplmEFZ.cjs +0 -41
- package/lib/_shared/cjs/BtIconChevronRightMid-C6zjDEMv.cjs +0 -25
- package/lib/_shared/cjs/BtIconPlayFill-WUt-9eLl.cjs +0 -27
- package/lib/_shared/cjs/HeroButton-CrsC6Q7A.cjs +0 -124
- package/lib/_shared/cjs/Icon-DdqFr6bT.cjs +0 -52
- package/lib/_shared/esm/BtIconArrowRight-CTjAzV9X.mjs +0 -25
- package/lib/_shared/esm/BtIconChevronRight2Px-CWIIvs1E.mjs +0 -38
- package/lib/_shared/esm/BtIconChevronRightMid-DB68JQ0u.mjs +0 -23
- package/lib/_shared/esm/BtIconPlayFill-DEoVOrOQ.mjs +0 -25
- package/lib/_shared/esm/HeroButton-x7krReay.mjs +0 -122
- package/lib/_shared/esm/Icon-B626JGP1.mjs +0 -49
package/lib/_shared/cjs/{RadioCardGroupInput-DT0Xce4L.cjs → RadioCardGroupInput-BmntgyWB.cjs}
RENAMED
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
6
|
var capitaliseFirstLetter = require('./capitalise-first-letter-CdhexpSx.cjs');
|
|
7
7
|
var Surface = require('./Surface-BFx1yNsq.cjs');
|
|
8
|
-
var Icon = require('./Icon-
|
|
8
|
+
var Icon = require('./Icon-KMACQ1i3.cjs');
|
|
9
9
|
|
|
10
10
|
var RadioContext = React.createContext({});
|
|
11
11
|
var Provider = RadioContext.Provider;
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
var index_es = require('./index.es-
|
|
7
|
-
var BtIconChevronRight2Px = require('./BtIconChevronRight2Px-
|
|
6
|
+
var index_es = require('./index.es-sqSQUWYg.cjs');
|
|
7
|
+
var BtIconChevronRight2Px = require('./BtIconChevronRight2Px-CIRaur2B.cjs');
|
|
8
8
|
var useMediaQuery = require('./use-media-query-BsUfHjPZ.cjs');
|
|
9
|
+
var Icon = require('./Icon-KMACQ1i3.cjs');
|
|
9
10
|
var Surface = require('./Surface-BFx1yNsq.cjs');
|
|
10
|
-
var ButtonV2 = require('./ButtonV2-
|
|
11
|
+
var ButtonV2 = require('./ButtonV2-CRNNZ_nd.cjs');
|
|
11
12
|
var handleLinkClick = require('./handle-link-click-C7BvOIYa.cjs');
|
|
12
13
|
var BrandLogo = require('./BrandLogo-D5wlIFmm.cjs');
|
|
13
14
|
|
|
@@ -102,11 +103,11 @@ var SiteHeaderV2 = function (_a) {
|
|
|
102
103
|
React.createElement("button", { className: "arc-SiteHeaderV2-mobileLogin", onClick: loginOnClick },
|
|
103
104
|
loginTitle,
|
|
104
105
|
React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
105
|
-
React.createElement(BtIconChevronRight2Px.BtIconChevronRight2Px
|
|
106
|
+
React.createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronRight2Px }))))) : (React.createElement("div", { className: "arc-SiteHeaderV2-mobileButtonContainer" },
|
|
106
107
|
React.createElement("a", { className: "arc-SiteHeaderV2-mobileLogin", href: loginHref },
|
|
107
108
|
loginTitle,
|
|
108
109
|
React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
109
|
-
React.createElement(BtIconChevronRight2Px.BtIconChevronRight2Px
|
|
110
|
+
React.createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronRight2Px })))))))))),
|
|
110
111
|
(basket || hasLogin || search) && (React.createElement("div", { className: "arc-SiteHeaderV2-secondary" },
|
|
111
112
|
search ? (React.createElement("div", { className: "arc-SiteHeaderV2-search" }, search)) : null,
|
|
112
113
|
basket ? (React.createElement("div", { className: "arc-SiteHeaderV2-basket" }, basket)) : null,
|
|
@@ -123,7 +124,7 @@ var SiteHeaderV2BackButton = function (_a) {
|
|
|
123
124
|
setOpenPanelOnFirstClick(false);
|
|
124
125
|
} },
|
|
125
126
|
React.createElement("span", { className: "arc-SiteHeaderV2BackButton-icon" },
|
|
126
|
-
React.createElement(BtIconChevronRight2Px.BtIconChevronLeft2Px
|
|
127
|
+
React.createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronLeft2Px })),
|
|
127
128
|
React.createElement("span", { className: "arc-SiteHeaderV2BackButton-text" }, "Back")));
|
|
128
129
|
};
|
|
129
130
|
|
|
@@ -403,7 +404,7 @@ var SiteHeaderV2NavItemWithSubNav = function (_a) {
|
|
|
403
404
|
_d["arc-SiteHeaderV2NavItem-link--itemHasChildren-primary"] = isPrimary,
|
|
404
405
|
_d)) }, title),
|
|
405
406
|
React.createElement("span", { className: "arc-SiteHeaderV2-mobileChevron" },
|
|
406
|
-
React.createElement(BtIconChevronRight2Px.BtIconChevronRight2Px
|
|
407
|
+
React.createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronRight2Px })),
|
|
407
408
|
subTitle && !isPrimary && isMinWidthArcBreakpointL ? (React.createElement("div", { className: index.classNames((_e = {},
|
|
408
409
|
_e["arc-SiteHeaderV2NavItemWithSubNav-text"] = !isPrimary,
|
|
409
410
|
_e["arc-SiteHeaderV2NavItem-link--itemHasChildren-closeFirstPanel"] = !isPrimary && !opensFirstWithPanel,
|
|
@@ -3,20 +3,13 @@
|
|
|
3
3
|
var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-CTlXMLug.cjs');
|
|
6
|
-
var index_es = require('./index.es-
|
|
6
|
+
var index_es = require('./index.es-sqSQUWYg.cjs');
|
|
7
7
|
var useMediaQuery = require('./use-media-query-BsUfHjPZ.cjs');
|
|
8
8
|
var VerticalSpace = require('./VerticalSpace-BJvST6WP.cjs');
|
|
9
|
-
var Text = require('./Text-Cr5nmYmx.cjs');
|
|
10
9
|
var Box = require('./Box-COPXU1Jf.cjs');
|
|
11
10
|
var Heading = require('./Heading-BEMSkLYR.cjs');
|
|
12
11
|
var GridRow = require('./GridRow-BW2ZGtND.cjs');
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var BannerImage = function (_a) {
|
|
16
|
-
var sources = _a.sources, props = filterAttrs.__rest(_a, ["sources"]);
|
|
17
|
-
return (React.createElement(Image.Image, filterAttrs.__assign({ fadeOnLoad: true }, props), sources &&
|
|
18
|
-
sources.map(function (source) { return React.createElement("source", filterAttrs.__assign({ key: source.srcSet }, source)); })));
|
|
19
|
-
};
|
|
12
|
+
var BannerImage = require('./BannerImage-kdAKagG-.cjs');
|
|
20
13
|
|
|
21
14
|
var TemplateBanner = function (_a) {
|
|
22
15
|
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 = filterAttrs.__rest(_a, ["heading", "label", "text", "img", "contentRatio", "children", "alignment", "additionalTopMargin", "minHeight", "headingSize", "isReversed", "isElevated", "headingLevel", "type"]);
|
|
@@ -33,7 +26,7 @@ var TemplateBanner = function (_a) {
|
|
|
33
26
|
};
|
|
34
27
|
var isContained = type === "contained";
|
|
35
28
|
var borderWidth = isContained && !isElevated ? "thin" : undefined;
|
|
36
|
-
var direction = isReversed && isMinWidthArcBreakpointM ? "row" : "row
|
|
29
|
+
var direction = isReversed && isMinWidthArcBreakpointM ? "row-reverse" : "row";
|
|
37
30
|
var columnWithImgWidths = {
|
|
38
31
|
"1/0": 12,
|
|
39
32
|
"2/3": 8,
|
|
@@ -45,14 +38,10 @@ var TemplateBanner = function (_a) {
|
|
|
45
38
|
React.createElement(Box.Box, { isBorderRadius: true, "data-testid": "arc-TemplateBanner-box", borderWidth: borderWidth, surface: backgrounds[type], isSurfaceTransparent: !isContained },
|
|
46
39
|
React.createElement(GridRow.Grid, { isGutterless: true, isFluid: true },
|
|
47
40
|
React.createElement(GridRow.GridRow, { "data-testid": "arc-TemplateBanner-gridRow", direction: direction },
|
|
48
|
-
img && contentRatio !== "1/0" && (React.createElement(GridRow.GridCol, filterAttrs.__assign({ "data-coltype": "img", "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
|
|
49
|
-
? { m: imageAlignment[img.alignment || "center"] }
|
|
50
|
-
: undefined, xs: 12, order: { xs: isContained && isReversed ? 0 : 1, m: 0 } }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
|
|
51
|
-
React.createElement(BannerImage, filterAttrs.__assign({}, img)))),
|
|
52
41
|
React.createElement(GridRow.GridCol, { "data-testid": "arc-TemplateBanner-contentCol", align: {
|
|
53
42
|
m: alignment === "start" ? "start" : "center",
|
|
54
43
|
xs: !img || contentRatio === "1/0" ? "center" : "start",
|
|
55
|
-
}, xs: 12, m: img ? columnWithImgWidths[contentRatio] : 12 },
|
|
44
|
+
}, xs: 12, order: { xs: isContained && isReversed ? 1 : 0, m: 0 }, m: img ? columnWithImgWidths[contentRatio] : 12 },
|
|
56
45
|
React.createElement("div", { className: index.classNames("arc-TemplateBanner-content", {
|
|
57
46
|
"arc-TemplateBanner-content--additionalTopMargin": additionalTopMargin && alignment === "start",
|
|
58
47
|
}) },
|
|
@@ -62,11 +51,14 @@ var TemplateBanner = function (_a) {
|
|
|
62
51
|
React.createElement(Heading.Heading, { level: headingLevel, size: headingSize }, heading),
|
|
63
52
|
text && (React.createElement(React.Fragment, null,
|
|
64
53
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
65
|
-
React.createElement("
|
|
66
|
-
React.createElement(Text.Text, null, text)))),
|
|
54
|
+
React.createElement("span", { className: "arc-TemplateBanner-text" }, text))),
|
|
67
55
|
children && (React.createElement(React.Fragment, null,
|
|
68
56
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
69
|
-
children))))
|
|
57
|
+
children)))),
|
|
58
|
+
img && contentRatio !== "1/0" && (React.createElement(GridRow.GridCol, filterAttrs.__assign({ "data-testid": "arc-TemplateBanner-imageCol", align: img.fit !== "cover"
|
|
59
|
+
? { m: imageAlignment[img.alignment || "center"] }
|
|
60
|
+
: undefined, xs: 12 }, (contentRatio === "2/3" && img ? { m: 4 } : { m: 6 })),
|
|
61
|
+
React.createElement(BannerImage.BannerImage, filterAttrs.__assign({ ariaHidden: true }, img)))))))));
|
|
70
62
|
};
|
|
71
63
|
|
|
72
64
|
exports.TemplateBanner = TemplateBanner;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index$1 = require('./index-B11wQrRa.cjs');
|
|
6
|
-
var Combination = require('./Combination-
|
|
6
|
+
var Combination = require('./Combination-B-rSVLfT.cjs');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var index = require('./index-DXNM3D1d.cjs');
|
|
9
9
|
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
|
-
var Combination = require('./Combination-
|
|
7
|
-
var index = require('./index-
|
|
6
|
+
var Combination = require('./Combination-B-rSVLfT.cjs');
|
|
7
|
+
var index = require('./index-EFXw1jWg.cjs');
|
|
8
|
+
var index$1 = require('./index-DXNM3D1d.cjs');
|
|
9
|
+
var index$2 = require('./index-Bt7hfZBc.cjs');
|
|
8
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
var index$1 = require('./index-DbQ2PCr3.cjs');
|
|
10
11
|
|
|
11
12
|
function _interopNamespaceDefault(e) {
|
|
12
13
|
var n = Object.create(null);
|
|
@@ -33,74 +34,6 @@ function clamp(value, [min, max]) {
|
|
|
33
34
|
return Math.min(max, Math.max(min, value));
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
function createCollection(name) {
|
|
37
|
-
const PROVIDER_NAME = name + "CollectionProvider";
|
|
38
|
-
const [createCollectionContext, createCollectionScope] = index.createContextScope(PROVIDER_NAME);
|
|
39
|
-
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
40
|
-
PROVIDER_NAME,
|
|
41
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
42
|
-
);
|
|
43
|
-
const CollectionProvider = (props) => {
|
|
44
|
-
const { scope, children } = props;
|
|
45
|
-
const ref = React.useRef(null);
|
|
46
|
-
const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
|
|
47
|
-
return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
48
|
-
};
|
|
49
|
-
CollectionProvider.displayName = PROVIDER_NAME;
|
|
50
|
-
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
51
|
-
const CollectionSlot = React.forwardRef(
|
|
52
|
-
(props, forwardedRef) => {
|
|
53
|
-
const { scope, children } = props;
|
|
54
|
-
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
55
|
-
const composedRefs = Combination.useComposedRefs(forwardedRef, context.collectionRef);
|
|
56
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Combination.Slot, { ref: composedRefs, children });
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
60
|
-
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
61
|
-
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
62
|
-
const CollectionItemSlot = React.forwardRef(
|
|
63
|
-
(props, forwardedRef) => {
|
|
64
|
-
const { scope, children, ...itemData } = props;
|
|
65
|
-
const ref = React.useRef(null);
|
|
66
|
-
const composedRefs = Combination.useComposedRefs(forwardedRef, ref);
|
|
67
|
-
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
68
|
-
React.useEffect(() => {
|
|
69
|
-
context.itemMap.set(ref, { ref, ...itemData });
|
|
70
|
-
return () => void context.itemMap.delete(ref);
|
|
71
|
-
});
|
|
72
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Combination.Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
76
|
-
function useCollection(scope) {
|
|
77
|
-
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
78
|
-
const getItems = React.useCallback(() => {
|
|
79
|
-
const collectionNode = context.collectionRef.current;
|
|
80
|
-
if (!collectionNode) return [];
|
|
81
|
-
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
82
|
-
const items = Array.from(context.itemMap.values());
|
|
83
|
-
const orderedItems = items.sort(
|
|
84
|
-
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
85
|
-
);
|
|
86
|
-
return orderedItems;
|
|
87
|
-
}, [context.collectionRef, context.itemMap]);
|
|
88
|
-
return getItems;
|
|
89
|
-
}
|
|
90
|
-
return [
|
|
91
|
-
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
92
|
-
useCollection,
|
|
93
|
-
createCollectionScope
|
|
94
|
-
];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// packages/react/direction/src/Direction.tsx
|
|
98
|
-
var DirectionContext = React__namespace.createContext(void 0);
|
|
99
|
-
function useDirection(localDir) {
|
|
100
|
-
const globalDir = React__namespace.useContext(DirectionContext);
|
|
101
|
-
return localDir || globalDir || "ltr";
|
|
102
|
-
}
|
|
103
|
-
|
|
104
37
|
// packages/react/use-previous/src/usePrevious.tsx
|
|
105
38
|
function usePrevious(value) {
|
|
106
39
|
const ref = React__namespace.useRef({ value, previous: value });
|
|
@@ -145,12 +78,12 @@ VisuallyHidden.displayName = NAME;
|
|
|
145
78
|
var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
146
79
|
var SELECTION_KEYS = [" ", "Enter"];
|
|
147
80
|
var SELECT_NAME = "Select";
|
|
148
|
-
var [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);
|
|
149
|
-
var [createSelectContext, createSelectScope] = index.createContextScope(SELECT_NAME, [
|
|
81
|
+
var [Collection, useCollection, createCollectionScope] = index.createCollection(SELECT_NAME);
|
|
82
|
+
var [createSelectContext, createSelectScope] = index$1.createContextScope(SELECT_NAME, [
|
|
150
83
|
createCollectionScope,
|
|
151
|
-
index$
|
|
84
|
+
index$2.createPopperScope
|
|
152
85
|
]);
|
|
153
|
-
var usePopperScope = index$
|
|
86
|
+
var usePopperScope = index$2.createPopperScope();
|
|
154
87
|
var [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);
|
|
155
88
|
var [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);
|
|
156
89
|
var Select = (props) => {
|
|
@@ -174,13 +107,13 @@ var Select = (props) => {
|
|
|
174
107
|
const [trigger, setTrigger] = React__namespace.useState(null);
|
|
175
108
|
const [valueNode, setValueNode] = React__namespace.useState(null);
|
|
176
109
|
const [valueNodeHasChildren, setValueNodeHasChildren] = React__namespace.useState(false);
|
|
177
|
-
const direction = useDirection(dir);
|
|
178
|
-
const [open = false, setOpen] = index.useControllableState({
|
|
110
|
+
const direction = index.useDirection(dir);
|
|
111
|
+
const [open = false, setOpen] = index$1.useControllableState({
|
|
179
112
|
prop: openProp,
|
|
180
113
|
defaultProp: defaultOpen,
|
|
181
114
|
onChange: onOpenChange
|
|
182
115
|
});
|
|
183
|
-
const [value, setValue] = index.useControllableState({
|
|
116
|
+
const [value, setValue] = index$1.useControllableState({
|
|
184
117
|
prop: valueProp,
|
|
185
118
|
defaultProp: defaultValue,
|
|
186
119
|
onChange: onValueChange
|
|
@@ -189,7 +122,7 @@ var Select = (props) => {
|
|
|
189
122
|
const isFormControl = trigger ? form || !!trigger.closest("form") : true;
|
|
190
123
|
const [nativeOptionsSet, setNativeOptionsSet] = React__namespace.useState(/* @__PURE__ */ new Set());
|
|
191
124
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
|
192
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index$
|
|
125
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$2.Root2, { ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
193
126
|
SelectProvider,
|
|
194
127
|
{
|
|
195
128
|
required,
|
|
@@ -200,7 +133,7 @@ var Select = (props) => {
|
|
|
200
133
|
onValueNodeChange: setValueNode,
|
|
201
134
|
valueNodeHasChildren,
|
|
202
135
|
onValueNodeHasChildrenChange: setValueNodeHasChildren,
|
|
203
|
-
contentId: index.useId(),
|
|
136
|
+
contentId: index$1.useId(),
|
|
204
137
|
value,
|
|
205
138
|
onValueChange: setValue,
|
|
206
139
|
open,
|
|
@@ -280,7 +213,7 @@ var SelectTrigger = React__namespace.forwardRef(
|
|
|
280
213
|
};
|
|
281
214
|
}
|
|
282
215
|
};
|
|
283
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index$
|
|
216
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$2.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
284
217
|
Combination.Primitive.button,
|
|
285
218
|
{
|
|
286
219
|
type: "button",
|
|
@@ -336,7 +269,7 @@ var SelectValue = React__namespace.forwardRef(
|
|
|
336
269
|
const { onValueNodeHasChildrenChange } = context;
|
|
337
270
|
const hasChildren = children !== void 0;
|
|
338
271
|
const composedRefs = Combination.useComposedRefs(forwardedRef, context.onValueNodeChange);
|
|
339
|
-
index.useLayoutEffect2(() => {
|
|
272
|
+
index$1.useLayoutEffect2(() => {
|
|
340
273
|
onValueNodeHasChildrenChange(hasChildren);
|
|
341
274
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
342
275
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -369,7 +302,7 @@ var SelectContent = React__namespace.forwardRef(
|
|
|
369
302
|
(props, forwardedRef) => {
|
|
370
303
|
const context = useSelectContext(CONTENT_NAME, props.__scopeSelect);
|
|
371
304
|
const [fragment, setFragment] = React__namespace.useState();
|
|
372
|
-
index.useLayoutEffect2(() => {
|
|
305
|
+
index$1.useLayoutEffect2(() => {
|
|
373
306
|
setFragment(new DocumentFragment());
|
|
374
307
|
}, []);
|
|
375
308
|
if (!context.open) {
|
|
@@ -730,9 +663,9 @@ var SelectItemAlignedPosition = React__namespace.forwardRef((props, forwardedRef
|
|
|
730
663
|
context.dir,
|
|
731
664
|
onPlaced
|
|
732
665
|
]);
|
|
733
|
-
index.useLayoutEffect2(() => position(), [position]);
|
|
666
|
+
index$1.useLayoutEffect2(() => position(), [position]);
|
|
734
667
|
const [contentZIndex, setContentZIndex] = React__namespace.useState();
|
|
735
|
-
index.useLayoutEffect2(() => {
|
|
668
|
+
index$1.useLayoutEffect2(() => {
|
|
736
669
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
737
670
|
}, [content]);
|
|
738
671
|
const handleScrollButtonChange = React__namespace.useCallback(
|
|
@@ -793,7 +726,7 @@ var SelectPopperPosition = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
793
726
|
} = props;
|
|
794
727
|
const popperScope = usePopperScope(__scopeSelect);
|
|
795
728
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
796
|
-
index$
|
|
729
|
+
index$2.Content,
|
|
797
730
|
{
|
|
798
731
|
...popperScope,
|
|
799
732
|
...popperProps,
|
|
@@ -891,7 +824,7 @@ var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GR
|
|
|
891
824
|
var SelectGroup = React__namespace.forwardRef(
|
|
892
825
|
(props, forwardedRef) => {
|
|
893
826
|
const { __scopeSelect, ...groupProps } = props;
|
|
894
|
-
const groupId = index.useId();
|
|
827
|
+
const groupId = index$1.useId();
|
|
895
828
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsxRuntime.jsx(Combination.Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
|
896
829
|
}
|
|
897
830
|
);
|
|
@@ -925,7 +858,7 @@ var SelectItem = React__namespace.forwardRef(
|
|
|
925
858
|
forwardedRef,
|
|
926
859
|
(node) => contentContext.itemRefCallback?.(node, value, disabled)
|
|
927
860
|
);
|
|
928
|
-
const textId = index.useId();
|
|
861
|
+
const textId = index$1.useId();
|
|
929
862
|
const pointerTypeRef = React__namespace.useRef("touch");
|
|
930
863
|
const handleSelect = () => {
|
|
931
864
|
if (!disabled) {
|
|
@@ -1029,7 +962,7 @@ var SelectItemText = React__namespace.forwardRef(
|
|
|
1029
962
|
[itemContext.disabled, itemContext.value, textContent]
|
|
1030
963
|
);
|
|
1031
964
|
const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
|
|
1032
|
-
index.useLayoutEffect2(() => {
|
|
965
|
+
index$1.useLayoutEffect2(() => {
|
|
1033
966
|
onNativeOptionAdd(nativeOption);
|
|
1034
967
|
return () => onNativeOptionRemove(nativeOption);
|
|
1035
968
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
@@ -1055,7 +988,7 @@ var SelectScrollUpButton = React__namespace.forwardRef((props, forwardedRef) =>
|
|
|
1055
988
|
const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
1056
989
|
const [canScrollUp, setCanScrollUp] = React__namespace.useState(false);
|
|
1057
990
|
const composedRefs = Combination.useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
|
|
1058
|
-
index.useLayoutEffect2(() => {
|
|
991
|
+
index$1.useLayoutEffect2(() => {
|
|
1059
992
|
if (contentContext.viewport && contentContext.isPositioned) {
|
|
1060
993
|
let handleScroll2 = function() {
|
|
1061
994
|
const canScrollUp2 = viewport.scrollTop > 0;
|
|
@@ -1088,7 +1021,7 @@ var SelectScrollDownButton = React__namespace.forwardRef((props, forwardedRef) =
|
|
|
1088
1021
|
const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
1089
1022
|
const [canScrollDown, setCanScrollDown] = React__namespace.useState(false);
|
|
1090
1023
|
const composedRefs = Combination.useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
|
|
1091
|
-
index.useLayoutEffect2(() => {
|
|
1024
|
+
index$1.useLayoutEffect2(() => {
|
|
1092
1025
|
if (contentContext.viewport && contentContext.isPositioned) {
|
|
1093
1026
|
let handleScroll2 = function() {
|
|
1094
1027
|
const maxScroll = viewport.scrollHeight - viewport.clientHeight;
|
|
@@ -1130,7 +1063,7 @@ var SelectScrollButtonImpl = React__namespace.forwardRef((props, forwardedRef) =
|
|
|
1130
1063
|
React__namespace.useEffect(() => {
|
|
1131
1064
|
return () => clearAutoScrollTimer();
|
|
1132
1065
|
}, [clearAutoScrollTimer]);
|
|
1133
|
-
index.useLayoutEffect2(() => {
|
|
1066
|
+
index$1.useLayoutEffect2(() => {
|
|
1134
1067
|
const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
|
|
1135
1068
|
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
1136
1069
|
}, [getItems]);
|
|
@@ -1173,7 +1106,7 @@ var SelectArrow = React__namespace.forwardRef(
|
|
|
1173
1106
|
const popperScope = usePopperScope(__scopeSelect);
|
|
1174
1107
|
const context = useSelectContext(ARROW_NAME, __scopeSelect);
|
|
1175
1108
|
const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);
|
|
1176
|
-
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsxRuntime.jsx(index$
|
|
1109
|
+
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
|
|
1177
1110
|
}
|
|
1178
1111
|
);
|
|
1179
1112
|
SelectArrow.displayName = ARROW_NAME;
|
|
@@ -1205,7 +1138,7 @@ var BubbleSelect = React__namespace.forwardRef(
|
|
|
1205
1138
|
);
|
|
1206
1139
|
BubbleSelect.displayName = "BubbleSelect";
|
|
1207
1140
|
function useTypeaheadSearch(onSearchChange) {
|
|
1208
|
-
const handleSearchChange = index.useCallbackRef(onSearchChange);
|
|
1141
|
+
const handleSearchChange = index$1.useCallbackRef(onSearchChange);
|
|
1209
1142
|
const searchRef = React__namespace.useRef("");
|
|
1210
1143
|
const timerRef = React__namespace.useRef(0);
|
|
1211
1144
|
const handleTypeaheadSearch = React__namespace.useCallback(
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var Combination = require('./Combination-
|
|
5
|
+
var Combination = require('./Combination-B-rSVLfT.cjs');
|
|
6
6
|
var index = require('./index-DXNM3D1d.cjs');
|
|
7
|
-
var index$1 = require('./index-
|
|
8
|
-
var index$2 = require('./index-
|
|
7
|
+
var index$1 = require('./index-Bt7hfZBc.cjs');
|
|
8
|
+
var index$2 = require('./index-Dv1xvB_E.cjs');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CTlXMLug.cjs');
|
|
4
|
+
|
|
5
|
+
var shorterCssColorNames;
|
|
6
|
+
var hasRequiredShorterCssColorNames;
|
|
7
|
+
|
|
8
|
+
function requireShorterCssColorNames () {
|
|
9
|
+
if (hasRequiredShorterCssColorNames) return shorterCssColorNames;
|
|
10
|
+
hasRequiredShorterCssColorNames = 1;
|
|
11
|
+
shorterCssColorNames = {
|
|
12
|
+
aqua: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
13
|
+
azure: /#f0ffff(ff)?(?!\w)/gi,
|
|
14
|
+
beige: /#f5f5dc(ff)?(?!\w)/gi,
|
|
15
|
+
bisque: /#ffe4c4(ff)?(?!\w)/gi,
|
|
16
|
+
black: /#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,
|
|
17
|
+
blue: /#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,
|
|
18
|
+
brown: /#a52a2a(ff)?(?!\w)/gi,
|
|
19
|
+
coral: /#ff7f50(ff)?(?!\w)/gi,
|
|
20
|
+
cornsilk: /#fff8dc(ff)?(?!\w)/gi,
|
|
21
|
+
crimson: /#dc143c(ff)?(?!\w)/gi,
|
|
22
|
+
cyan: /#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,
|
|
23
|
+
darkblue: /#00008b(ff)?(?!\w)/gi,
|
|
24
|
+
darkcyan: /#008b8b(ff)?(?!\w)/gi,
|
|
25
|
+
darkgrey: /#a9a9a9(ff)?(?!\w)/gi,
|
|
26
|
+
darkred: /#8b0000(ff)?(?!\w)/gi,
|
|
27
|
+
deeppink: /#ff1493(ff)?(?!\w)/gi,
|
|
28
|
+
dimgrey: /#696969(ff)?(?!\w)/gi,
|
|
29
|
+
gold: /#ffd700(ff)?(?!\w)/gi,
|
|
30
|
+
green: /#008000(ff)?(?!\w)/gi,
|
|
31
|
+
grey: /#808080(ff)?(?!\w)/gi,
|
|
32
|
+
honeydew: /#f0fff0(ff)?(?!\w)/gi,
|
|
33
|
+
hotpink: /#ff69b4(ff)?(?!\w)/gi,
|
|
34
|
+
indigo: /#4b0082(ff)?(?!\w)/gi,
|
|
35
|
+
ivory: /#fffff0(ff)?(?!\w)/gi,
|
|
36
|
+
khaki: /#f0e68c(ff)?(?!\w)/gi,
|
|
37
|
+
lavender: /#e6e6fa(ff)?(?!\w)/gi,
|
|
38
|
+
lime: /#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,
|
|
39
|
+
linen: /#faf0e6(ff)?(?!\w)/gi,
|
|
40
|
+
maroon: /#800000(ff)?(?!\w)/gi,
|
|
41
|
+
moccasin: /#ffe4b5(ff)?(?!\w)/gi,
|
|
42
|
+
navy: /#000080(ff)?(?!\w)/gi,
|
|
43
|
+
oldlace: /#fdf5e6(ff)?(?!\w)/gi,
|
|
44
|
+
olive: /#808000(ff)?(?!\w)/gi,
|
|
45
|
+
orange: /#ffa500(ff)?(?!\w)/gi,
|
|
46
|
+
orchid: /#da70d6(ff)?(?!\w)/gi,
|
|
47
|
+
peru: /#cd853f(ff)?(?!\w)/gi,
|
|
48
|
+
pink: /#ffc0cb(ff)?(?!\w)/gi,
|
|
49
|
+
plum: /#dda0dd(ff)?(?!\w)/gi,
|
|
50
|
+
purple: /#800080(ff)?(?!\w)/gi,
|
|
51
|
+
red: /#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,
|
|
52
|
+
salmon: /#fa8072(ff)?(?!\w)/gi,
|
|
53
|
+
seagreen: /#2e8b57(ff)?(?!\w)/gi,
|
|
54
|
+
seashell: /#fff5ee(ff)?(?!\w)/gi,
|
|
55
|
+
sienna: /#a0522d(ff)?(?!\w)/gi,
|
|
56
|
+
silver: /#c0c0c0(ff)?(?!\w)/gi,
|
|
57
|
+
skyblue: /#87ceeb(ff)?(?!\w)/gi,
|
|
58
|
+
snow: /#fffafa(ff)?(?!\w)/gi,
|
|
59
|
+
tan: /#d2b48c(ff)?(?!\w)/gi,
|
|
60
|
+
teal: /#008080(ff)?(?!\w)/gi,
|
|
61
|
+
thistle: /#d8bfd8(ff)?(?!\w)/gi,
|
|
62
|
+
tomato: /#ff6347(ff)?(?!\w)/gi,
|
|
63
|
+
violet: /#ee82ee(ff)?(?!\w)/gi,
|
|
64
|
+
wheat: /#f5deb3(ff)?(?!\w)/gi,
|
|
65
|
+
white: /#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi,
|
|
66
|
+
};
|
|
67
|
+
return shorterCssColorNames;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var miniSvgDataUri;
|
|
71
|
+
var hasRequiredMiniSvgDataUri;
|
|
72
|
+
|
|
73
|
+
function requireMiniSvgDataUri () {
|
|
74
|
+
if (hasRequiredMiniSvgDataUri) return miniSvgDataUri;
|
|
75
|
+
hasRequiredMiniSvgDataUri = 1;
|
|
76
|
+
var shorterNames = requireShorterCssColorNames();
|
|
77
|
+
var REGEX = {
|
|
78
|
+
whitespace: /\s+/g,
|
|
79
|
+
urlHexPairs: /%[\dA-F]{2}/g,
|
|
80
|
+
quotes: /"/g,
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
function collapseWhitespace(str) {
|
|
84
|
+
return str.trim().replace(REGEX.whitespace, ' ');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function dataURIPayload(string) {
|
|
88
|
+
return encodeURIComponent(string)
|
|
89
|
+
.replace(REGEX.urlHexPairs, specialHexEncode);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// `#` gets converted to `%23`, so quite a few CSS named colors are shorter than
|
|
93
|
+
// their equivalent URL-encoded hex codes.
|
|
94
|
+
function colorCodeToShorterNames(string) {
|
|
95
|
+
Object.keys(shorterNames).forEach(function(key) {
|
|
96
|
+
if (shorterNames[key].test(string)) {
|
|
97
|
+
string = string.replace(shorterNames[key], key);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
return string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function specialHexEncode(match) {
|
|
105
|
+
switch (match) { // Browsers tolerate these characters, and they're frequent
|
|
106
|
+
case '%20': return ' ';
|
|
107
|
+
case '%3D': return '=';
|
|
108
|
+
case '%3A': return ':';
|
|
109
|
+
case '%2F': return '/';
|
|
110
|
+
default: return match.toLowerCase(); // compresses better
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function svgToTinyDataUri(svgString) {
|
|
115
|
+
if (typeof svgString !== 'string') {
|
|
116
|
+
throw new TypeError('Expected a string, but received ' + typeof svgString);
|
|
117
|
+
}
|
|
118
|
+
// Strip the Byte-Order Mark if the SVG has one
|
|
119
|
+
if (svgString.charCodeAt(0) === 0xfeff) { svgString = svgString.slice(1); }
|
|
120
|
+
|
|
121
|
+
var body = colorCodeToShorterNames(collapseWhitespace(svgString))
|
|
122
|
+
.replace(REGEX.quotes, "'");
|
|
123
|
+
return 'data:image/svg+xml,' + dataURIPayload(body);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
svgToTinyDataUri.toSrcset = function toSrcset(svgString) {
|
|
127
|
+
return svgToTinyDataUri(svgString).replace(/ /g, '%20');
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
miniSvgDataUri = svgToTinyDataUri;
|
|
131
|
+
return miniSvgDataUri;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
var miniSvgDataUriExports = requireMiniSvgDataUri();
|
|
135
|
+
var svgToMiniDataURI = /*@__PURE__*/index.getDefaultExportFromCjs(miniSvgDataUriExports);
|
|
136
|
+
|
|
137
|
+
exports.svgToMiniDataURI = svgToMiniDataURI;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var Combination = require('./Combination-
|
|
5
|
+
var Combination = require('./Combination-B-rSVLfT.cjs');
|
|
6
6
|
var index = require('./index-DXNM3D1d.cjs');
|
|
7
|
-
var index$1 = require('./index-
|
|
7
|
+
var index$1 = require('./index-Dv1xvB_E.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|