@arc-ui/components 11.18.0 → 11.20.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/dist/Alert/Alert.cjs.js +1 -1
- package/dist/Alert/Alert.esm.js +1 -1
- package/dist/Avatar/Avatar.cjs.js +18 -0
- package/dist/Avatar/Avatar.esm.js +10 -0
- package/dist/Avatar/package.json +7 -0
- package/dist/AvatarGroup/AvatarGroup.cjs.js +37 -0
- package/dist/AvatarGroup/AvatarGroup.esm.js +29 -0
- package/dist/AvatarGroup/package.json +7 -0
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +2 -2
- package/dist/Button/Button.cjs.js +2 -2
- package/dist/Button/Button.esm.js +2 -2
- package/dist/Calendar/Calendar.cjs.js +2 -2
- package/dist/Calendar/Calendar.esm.js +2 -2
- package/dist/Card/Card.cjs.js +2 -2
- package/dist/Card/Card.esm.js +2 -2
- package/dist/Checkbox/Checkbox.cjs.js +2 -2
- package/dist/Checkbox/Checkbox.esm.js +2 -2
- package/dist/DatePicker/DatePicker.cjs.js +5 -5
- package/dist/DatePicker/DatePicker.esm.js +5 -5
- package/dist/Disclosure/Disclosure.cjs.js +5 -1
- package/dist/Disclosure/Disclosure.esm.js +6 -2
- package/dist/FormControl/FormControl.cjs.js +1 -1
- package/dist/FormControl/FormControl.esm.js +1 -1
- package/dist/Icon/Icon.cjs.js +1 -1
- package/dist/Icon/Icon.esm.js +1 -1
- package/dist/InformationCard/InformationCard.cjs.js +8 -8
- package/dist/InformationCard/InformationCard.esm.js +5 -5
- package/dist/MediaCard/MediaCard.cjs.js +7 -11
- package/dist/MediaCard/MediaCard.esm.js +4 -8
- package/dist/Modal/Modal.cjs.js +2 -2
- package/dist/Modal/Modal.esm.js +2 -2
- package/dist/Pagination/Pagination.cjs.js +1 -1
- package/dist/Pagination/Pagination.esm.js +1 -1
- package/dist/PaginationSimple/PaginationSimple.cjs.js +1 -1
- package/dist/PaginationSimple/PaginationSimple.esm.js +1 -1
- package/dist/ProgressBar/ProgressBar.cjs.js +1 -1
- package/dist/ProgressBar/ProgressBar.esm.js +1 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +2 -2
- package/dist/ProgressStepper/ProgressStepper.esm.js +2 -2
- package/dist/RadioGroup/RadioGroup.cjs.js +2 -2
- package/dist/RadioGroup/RadioGroup.esm.js +2 -2
- package/dist/Rule/Rule.cjs.js +11 -7
- package/dist/Rule/Rule.esm.js +11 -7
- package/dist/ScrollToTop/ScrollToTop.cjs.js +2 -2
- package/dist/ScrollToTop/ScrollToTop.esm.js +2 -2
- package/dist/Select/Select.cjs.js +9 -7
- package/dist/Select/Select.esm.js +9 -7
- package/dist/SiteHeader/SiteHeader.cjs.js +3 -3
- package/dist/SiteHeader/SiteHeader.esm.js +3 -3
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +3 -3
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +3 -3
- package/dist/SkipLink/SkipLink.cjs.js +23 -0
- package/dist/SkipLink/SkipLink.esm.js +15 -0
- package/dist/SkipLink/package.json +7 -0
- package/dist/Switch/Switch.cjs.js +2 -2
- package/dist/Switch/Switch.esm.js +2 -2
- package/dist/Tabs/Tabs.cjs.js +2 -2
- package/dist/Tabs/Tabs.esm.js +2 -2
- package/dist/Tag/Tag.cjs.js +2 -2
- package/dist/Tag/Tag.esm.js +2 -2
- package/dist/TextArea/TextArea.cjs.js +14 -14
- package/dist/TextArea/TextArea.esm.js +14 -14
- package/dist/TextInput/TextInput.cjs.js +3 -3
- package/dist/TextInput/TextInput.esm.js +3 -3
- package/dist/Toast/Toast.cjs.js +2 -2
- package/dist/Toast/Toast.esm.js +2 -2
- package/dist/TypographyCard/TypographyCard.cjs.js +5 -5
- package/dist/TypographyCard/TypographyCard.esm.js +3 -3
- package/dist/_shared/cjs/Avatar-12ece0dd.js +65 -0
- package/dist/_shared/cjs/{Breadcrumbs-ef659d2b.js → Breadcrumbs-c6eaf5c4.js} +1 -1
- package/dist/_shared/cjs/{Button-4fed080a.js → Button-84533dc8.js} +1 -1
- package/dist/_shared/cjs/{Calendar-18e255f8.js → Calendar-c6ed5f2c.js} +1 -1
- package/dist/_shared/cjs/{Card-17dcc171.js → Card-5b19cabc.js} +1 -1
- package/dist/_shared/cjs/{CardFooter-43c32239.js → CardFooter-4a68a862.js} +3 -3
- package/dist/_shared/cjs/{Checkbox-4d4b432f.js → Checkbox-8915fcd9.js} +1 -1
- package/dist/_shared/cjs/ConditionalWrapper-be3b2625.js +14 -0
- package/dist/_shared/cjs/{FormControl-b26ad353.js → FormControl-5f3b6ce4.js} +9 -4
- package/dist/_shared/cjs/{Icon-a9801f05.js → Icon-b46897a3.js} +6 -2
- package/dist/_shared/cjs/{ProgressStepper-9cdc0afe.js → ProgressStepper-3af8a210.js} +1 -1
- package/dist/_shared/cjs/{RadioGroup-23c964ae.js → RadioGroup-07bb155e.js} +11 -6
- package/dist/_shared/cjs/{SiteHeader.rehydrator-df053a52.js → SiteHeader.rehydrator-ea49f8d5.js} +2 -2
- package/dist/_shared/cjs/{SiteHeaderV2-79930632.js → SiteHeaderV2-301c765c.js} +11 -27
- package/dist/_shared/cjs/{Tabs-34db6bc1.js → Tabs-24e6f45b.js} +1 -1
- package/dist/_shared/cjs/{Tag-42ddca45.js → Tag-8723b324.js} +1 -1
- package/dist/_shared/cjs/{TextInput-d0370fa8.js → TextInput-5da70ec2.js} +6 -3
- package/dist/_shared/cjs/{Toast-392b1d60.js → Toast-7a20d1b9.js} +1 -1
- package/dist/_shared/esm/Avatar-d01e2b7b.js +59 -0
- package/dist/_shared/esm/{Breadcrumbs-36edfb3d.js → Breadcrumbs-7d55e1a6.js} +1 -1
- package/dist/_shared/esm/{Button-a453e8e4.js → Button-3f294e64.js} +1 -1
- package/dist/_shared/esm/{Calendar-4033fa48.js → Calendar-753ef6f1.js} +1 -1
- package/dist/_shared/esm/{Card-201e9f28.js → Card-7fc6c9b4.js} +1 -1
- package/dist/_shared/esm/{CardFooter-dd8d4000.js → CardFooter-a08b70ee.js} +2 -2
- package/dist/_shared/esm/{Checkbox-720b074d.js → Checkbox-0e051546.js} +1 -1
- package/dist/_shared/esm/ConditionalWrapper-59be8f35.js +8 -0
- package/dist/_shared/esm/{FormControl-f0b8fe91.js → FormControl-cc99cde0.js} +9 -4
- package/dist/_shared/esm/{Icon-abd0d990.js → Icon-15799695.js} +6 -2
- package/dist/_shared/esm/{ProgressStepper-f51f86c3.js → ProgressStepper-d4c5b6d9.js} +1 -1
- package/dist/_shared/esm/{RadioGroup-37fdb06b.js → RadioGroup-362be63f.js} +11 -6
- package/dist/_shared/esm/{SiteHeader.rehydrator-32bdcd88.js → SiteHeader.rehydrator-65c8cf71.js} +2 -2
- package/dist/_shared/esm/{SiteHeaderV2-9e7e7d3b.js → SiteHeaderV2-0096e25b.js} +11 -27
- package/dist/_shared/esm/{Tabs-df9965dd.js → Tabs-a85af483.js} +1 -1
- package/dist/_shared/esm/{Tag-92c088a9.js → Tag-664b85c8.js} +1 -1
- package/dist/_shared/esm/{TextInput-abbab56b.js → TextInput-1d1c5fd6.js} +6 -4
- package/dist/_shared/esm/{Toast-5d66e13f.js → Toast-7a232e15.js} +1 -1
- package/dist/index.es.js +291 -215
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +291 -213
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -4
- package/dist/types/components/Avatar/Avatar.d.ts +13 -0
- package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +9 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +1 -0
- package/dist/types/components/Avatar/types/avatar-image.d.ts +2 -0
- package/dist/types/components/Avatar/types/avatar-size.d.ts +1 -0
- package/dist/types/components/Avatar/types/avatar-text-size.d.ts +2 -0
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +13 -0
- package/dist/types/components/AvatarGroup/index.d.ts +1 -0
- package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +2 -0
- package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +2 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/types/components/Icon/Icon.d.ts +4 -0
- package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +5 -0
- package/dist/types/components/Rule/Rule.d.ts +2 -1
- package/dist/types/components/Select/Select.d.ts +4 -0
- package/dist/types/components/SkipLink/SkipLink.d.ts +11 -0
- package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +16 -0
- package/dist/types/components/SkipLink/index.d.ts +1 -0
- package/dist/types/components/TextInput/TextInput.d.ts +4 -4
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/private-components/ConditionalWrapper/ConditionalWrapper.d.ts +1 -0
- package/dist/types/styles.d.ts +3 -0
- package/package.json +2 -2
- package/dist/_shared/cjs/{CardLabel-768abf20.js → BtIconArrowRight.esm-50d96943.js} +20 -20
- package/dist/_shared/esm/{CardLabel-d6d71407.js → BtIconArrowRight.esm-9b181878.js} +20 -20
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { createContext, useContext, useState,
|
|
2
|
+
import React__default, { createContext, useContext, useState, useEffect, useId, useRef, forwardRef, useCallback, useMemo, createElement, useLayoutEffect, Children, isValidElement, cloneElement, Fragment, useReducer } from 'react';
|
|
3
3
|
|
|
4
4
|
/******************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
@@ -381,9 +381,13 @@ const ArcIconArc = (props) =>
|
|
|
381
381
|
*/
|
|
382
382
|
var Icon = function (_a) {
|
|
383
383
|
var _b;
|
|
384
|
-
var testId = _a.testId, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.icon, icon = _d === void 0 ? ArcIconArc : _d, _e = _a.isInline, isInline = _e === void 0 ? false : _e, label = _a.label, size = _a.size, props = __rest(_a, ["testId", "color", "icon", "isInline", "label", "size"]);
|
|
384
|
+
var testId = _a.testId, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.icon, icon = _d === void 0 ? ArcIconArc : _d, _e = _a.isInline, isInline = _e === void 0 ? false : _e, _f = _a.isPresentationIcon, isPresentationIcon = _f === void 0 ? false : _f, label = _a.label, size = _a.size, props = __rest(_a, ["testId", "color", "icon", "isInline", "isPresentationIcon", "label", "size"]);
|
|
385
385
|
var surface = useContext(Context$5).surface;
|
|
386
386
|
var Icon = icon;
|
|
387
|
+
var presentationIconProps = {
|
|
388
|
+
role: "presentation",
|
|
389
|
+
"aria-hidden": true
|
|
390
|
+
};
|
|
387
391
|
return (React__default.createElement("span", __assign({ "data-testid": testId, "aria-label": label, className: classNames((_b = {},
|
|
388
392
|
_b["arc-Icon"] = true,
|
|
389
393
|
_b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
|
|
@@ -393,7 +397,7 @@ var Icon = function (_a) {
|
|
|
393
397
|
height: size,
|
|
394
398
|
width: size
|
|
395
399
|
} }, filterDataAttrs(props)),
|
|
396
|
-
React__default.createElement(Icon,
|
|
400
|
+
React__default.createElement(Icon, __assign({}, (isPresentationIcon ? presentationIconProps : {})))));
|
|
397
401
|
};
|
|
398
402
|
|
|
399
403
|
/**
|
|
@@ -595,6 +599,233 @@ var Alert = function (_a) {
|
|
|
595
599
|
React__default.createElement(Icon, { icon: BtIconCrossAlt2Px, size: 24 }))))));
|
|
596
600
|
};
|
|
597
601
|
|
|
602
|
+
var CardHeading = function (_a) {
|
|
603
|
+
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 ? "s" : _b, _c = _a.isDarkPathway, isDarkPathway = _c === void 0 ? false : _c, _d = _a.linkData, linkData = _d === void 0 ? {} : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e;
|
|
604
|
+
var HeadingElement = "h".concat(headingLevel);
|
|
605
|
+
return (React__default.createElement(HeadingElement, { className: classNames("arc-CardHeading", "arc-CardHeading--".concat(size), {
|
|
606
|
+
"arc-CardHeading--darkPathway": isDarkPathway
|
|
607
|
+
}) }, href ? (React__default.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterDataAttrs(linkData)), heading)) : (heading)));
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
var CardLabel = function (_a) {
|
|
611
|
+
var _b;
|
|
612
|
+
var text = _a.text, _c = _a.color, color = _c === void 0 ? "muted" : _c, _d = _a.isBold, isBold = _d === void 0 ? true : _d, _e = _a.isDarkPathway, isDarkPathway = _e === void 0 ? false : _e;
|
|
613
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
614
|
+
React__default.createElement("span", { className: classNames("arc-CardLabel", (_b = {},
|
|
615
|
+
_b[suffixModifier("arc-CardLabel--color", color)] = !isDarkPathway,
|
|
616
|
+
_b["arc-CardLabel--bold"] = isBold,
|
|
617
|
+
_b["arc-CardLabel--darkPathway"] = isDarkPathway,
|
|
618
|
+
_b)) }, text)));
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
const BtIconArrowRight = (props) =>
|
|
622
|
+
/*#__PURE__*/ React__default.createElement(
|
|
623
|
+
"svg",
|
|
624
|
+
Object.assign(
|
|
625
|
+
{
|
|
626
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
627
|
+
viewBox: "0 0 32 32",
|
|
628
|
+
},
|
|
629
|
+
props,
|
|
630
|
+
),
|
|
631
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
632
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
633
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
634
|
+
fill: "currentColor",
|
|
635
|
+
}),
|
|
636
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
637
|
+
d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
|
|
638
|
+
fill: "currentColor",
|
|
639
|
+
}),
|
|
640
|
+
);
|
|
641
|
+
|
|
642
|
+
const BtIconPlay = (props) =>
|
|
643
|
+
/*#__PURE__*/ React__default.createElement(
|
|
644
|
+
"svg",
|
|
645
|
+
Object.assign(
|
|
646
|
+
{
|
|
647
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
648
|
+
viewBox: "0 0 32 32",
|
|
649
|
+
},
|
|
650
|
+
props,
|
|
651
|
+
),
|
|
652
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
653
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
654
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
655
|
+
fill: "currentColor",
|
|
656
|
+
}),
|
|
657
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
658
|
+
d: "M20.83887,15.03955,13.66113,10.896A1.107,1.107,0,0,0,12,11.85449v8.2876a1.10534,1.10534,0,0,0,1.66113.95947L20.83887,16.957a1.10688,1.10688,0,0,0,0-1.91748Zm-.5,1.05176-7.17774,4.14453a.10437.10437,0,0,1-.10742-.00049A.10314.10314,0,0,1,13,20.14209v-8.2876a.10229.10229,0,0,1,.05371-.09277.10284.10284,0,0,1,.10742,0l7.17774,4.14307a.10421.10421,0,0,1,.05371.09375A.10285.10285,0,0,1,20.33887,16.09131Z",
|
|
659
|
+
fill: "currentColor",
|
|
660
|
+
}),
|
|
661
|
+
);
|
|
662
|
+
|
|
663
|
+
const BtIconArrowRightFill = (props) =>
|
|
664
|
+
/*#__PURE__*/ React__default.createElement(
|
|
665
|
+
"svg",
|
|
666
|
+
Object.assign(
|
|
667
|
+
{
|
|
668
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
669
|
+
viewBox: "0 0 32 32",
|
|
670
|
+
},
|
|
671
|
+
props,
|
|
672
|
+
),
|
|
673
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
674
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
675
|
+
d: "M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm16.85352-4.35352L23.207,16l-4.35351,4.35352a.5.5,0,0,1-.707-.707L21.293,16.5H9.5a.5.5,0,0,1,0-1H21.293l-3.14649-3.14648a.5.5,0,0,1,.707-.707Z",
|
|
676
|
+
fill: "currentColor",
|
|
677
|
+
}),
|
|
678
|
+
);
|
|
679
|
+
|
|
680
|
+
const BtIconPlayFill = (props) =>
|
|
681
|
+
/*#__PURE__*/ React__default.createElement(
|
|
682
|
+
"svg",
|
|
683
|
+
Object.assign(
|
|
684
|
+
{
|
|
685
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
686
|
+
viewBox: "0 0 32 32",
|
|
687
|
+
},
|
|
688
|
+
props,
|
|
689
|
+
),
|
|
690
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
691
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
692
|
+
d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
|
|
693
|
+
fill: "currentColor",
|
|
694
|
+
}),
|
|
695
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
696
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
|
|
697
|
+
fill: "currentColor",
|
|
698
|
+
}),
|
|
699
|
+
);
|
|
700
|
+
|
|
701
|
+
var CardFooter = function (_a) {
|
|
702
|
+
var metaText = _a.metaText, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.isDarkPathway, isDarkPathway = _c === void 0 ? false : _c, _d = _a.showButton, showButton = _d === void 0 ? true : _d, _e = _a.showFilledIcon, showFilledIcon = _e === void 0 ? false : _e;
|
|
703
|
+
var icons = {
|
|
704
|
+
arrow: {
|
|
705
|
+
regular: BtIconArrowRight,
|
|
706
|
+
filled: BtIconArrowRightFill
|
|
707
|
+
},
|
|
708
|
+
play: {
|
|
709
|
+
regular: BtIconPlay,
|
|
710
|
+
filled: BtIconPlayFill
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
return (React__default.createElement("div", { className: classNames("arc-CardFooter", {
|
|
714
|
+
"arc-CardFooter--darkPathway": isDarkPathway,
|
|
715
|
+
"arc-CardFooter--showFilledIcon": showFilledIcon
|
|
716
|
+
}) },
|
|
717
|
+
React__default.createElement("div", { className: "arc-CardFooter-metaTextContainer" }, metaText && (React__default.createElement("span", { className: "arc-CardFooter-metaText" }, metaText))),
|
|
718
|
+
showButton && (React__default.createElement("div", null,
|
|
719
|
+
React__default.createElement("div", { className: "arc-CardFooter-button" },
|
|
720
|
+
React__default.createElement("div", { className: classNames("arc-CardFooter-buttonIcon", "arc-CardFooter-buttonIcon--regular") },
|
|
721
|
+
React__default.createElement(Icon, { icon: icons[buttonIcon].regular, size: 40 })),
|
|
722
|
+
React__default.createElement("div", { className: "arc-CardFooter-buttonIcon arc-CardFooter-buttonIcon--filled" },
|
|
723
|
+
React__default.createElement(Icon, { icon: icons[buttonIcon].filled, size: 40 })))))));
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
var ConditionalWrapper = function (_a) {
|
|
727
|
+
var condition = _a.condition, wrapper = _a.wrapper, fallback = _a.fallback, children = _a.children;
|
|
728
|
+
return (React__default.createElement(React__default.Fragment, null, condition ? wrapper(children) : fallback ? fallback(children) : children));
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
const BtIconUser = (props) =>
|
|
732
|
+
/*#__PURE__*/ React__default.createElement(
|
|
733
|
+
"svg",
|
|
734
|
+
Object.assign(
|
|
735
|
+
{
|
|
736
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
737
|
+
viewBox: "0 0 32 32",
|
|
738
|
+
},
|
|
739
|
+
props,
|
|
740
|
+
),
|
|
741
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
742
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
743
|
+
d: "M20.87579,16.014a6.99843,6.99843,0,1,0-9.75378.00091C6.725,17.77887,4,21.452,4,25.66113V27a1.001,1.001,0,0,0,1,1H27a1.001,1.001,0,0,0,1-1V25.66113C28,21.45129,25.27423,17.77765,20.87579,16.014ZM10,11a5.998,5.998,0,1,1,6,6A6.0068,6.0068,0,0,1,10,11ZM27,27H5V25.66113c0-4.61181,3.46484-7.57324,6.707-8.80761l.29492-.11206a6.97581,6.97581,0,0,0,7.99457-.00062l.29645.11268C23.53516,18.08789,27,21.04932,27,25.66113Z",
|
|
744
|
+
fill: "currentColor",
|
|
745
|
+
}),
|
|
746
|
+
);
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Use `Image` to render a single image, or set of images, with support for
|
|
750
|
+
* image fitting and art direction.
|
|
751
|
+
*/
|
|
752
|
+
var Image = function (_a) {
|
|
753
|
+
var _b;
|
|
754
|
+
var alt = _a.alt, _c = _a.anchor, anchor = _c === void 0 ? "C" : _c, children = _a.children, fillColor = _a.fillColor, fit = _a.fit, height = _a.height, loading = _a.loading, overlay = _a.overlay, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet, width = _a.width, props = __rest(_a, ["alt", "anchor", "children", "fillColor", "fit", "height", "loading", "overlay", "sizes", "src", "srcSet", "width"]);
|
|
755
|
+
useEffect(function () {
|
|
756
|
+
React__default.Children.map(children, function (item) {
|
|
757
|
+
if (item && item.type !== ImageSource) {
|
|
758
|
+
throw new Error("Illegal child passed to <Image />. Ensure to only use <Image.Source />.");
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}, [children]);
|
|
762
|
+
var img = (React__default.createElement("img", { className: "arc-Image-img", alt: alt, height: fit === "cover" ? undefined : height, loading: loading, sizes: children ? undefined : sizes, src: src, srcSet: children ? undefined : srcSet, width: fit === "cover" ? undefined : width }));
|
|
763
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {
|
|
764
|
+
"arc-Image": true,
|
|
765
|
+
"arc-Image--cover": fit === "cover"
|
|
766
|
+
},
|
|
767
|
+
_b["arc-Image--anchor".concat(anchor)] = fit === "cover",
|
|
768
|
+
_b[suffixModifier("arc-Image--overlay", overlay || "")] = overlay,
|
|
769
|
+
_b)), style: __assign(__assign(__assign({}, (fillColor && { backgroundColor: fillColor })), (fit === "cover" && height ? { height: "".concat(height, "px") } : null)), (fit === "cover" && width ? { width: "".concat(width, "px") } : null)) }, filterDataAttrs(props)), children ? (React__default.createElement("picture", null,
|
|
770
|
+
children,
|
|
771
|
+
" ",
|
|
772
|
+
img)) : (React__default.createElement(React__default.Fragment, null, img))));
|
|
773
|
+
};
|
|
774
|
+
var ImageSource = function (_a) {
|
|
775
|
+
var height = _a.height, media = _a.media, srcSet = _a.srcSet, sizes = _a.sizes, type = _a.type; _a.width; var props = __rest(_a, ["height", "media", "srcSet", "sizes", "type", "width"]);
|
|
776
|
+
return (React__default.createElement("source", __assign({ height: height, media: media, sizes: sizes, srcSet: srcSet, type: type }, filterDataAttrs(props))));
|
|
777
|
+
};
|
|
778
|
+
Image.Source = ImageSource;
|
|
779
|
+
|
|
780
|
+
var AvatarContent = function (_a) {
|
|
781
|
+
var img = _a.img, initials = _a.initials, _b = _a.size, size = _b === void 0 ? "xl" : _b;
|
|
782
|
+
var textSize = {
|
|
783
|
+
s: "xxxs",
|
|
784
|
+
m: "xxs",
|
|
785
|
+
l: "xs",
|
|
786
|
+
xl: "s"
|
|
787
|
+
};
|
|
788
|
+
var iconSize = {
|
|
789
|
+
s: 16,
|
|
790
|
+
m: 24,
|
|
791
|
+
l: 32,
|
|
792
|
+
xl: 40
|
|
793
|
+
};
|
|
794
|
+
if (img) {
|
|
795
|
+
return React__default.createElement(Image, __assign({ fit: "cover" }, img));
|
|
796
|
+
}
|
|
797
|
+
if (initials) {
|
|
798
|
+
return (React__default.createElement(Heading, { size: textSize[size] }, initials.substring(0, 3).toUpperCase()));
|
|
799
|
+
}
|
|
800
|
+
return React__default.createElement(Icon, { size: iconSize[size], icon: BtIconUser });
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
var Avatar = function (_a) {
|
|
804
|
+
var img = _a.img, initials = _a.initials, href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel, onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? "xl" : _b, props = __rest(_a, ["img", "initials", "href", "title", "ariaLabel", "onClick", "size"]);
|
|
805
|
+
var wrapperAttrs = __assign({ className: classNames("arc-Avatar", "arc-Avatar--".concat(size), {
|
|
806
|
+
"arc-Avatar--img": Boolean(img)
|
|
807
|
+
}) }, filterDataAttrs(props));
|
|
808
|
+
return (React__default.createElement(ConditionalWrapper, { condition: Boolean(href), wrapper: function (children) { return (React__default.createElement("a", __assign({ href: href, "aria-label": ariaLabel, onClick: onClick, title: title }, wrapperAttrs), children)); }, fallback: function (children) { return React__default.createElement("div", __assign({}, wrapperAttrs), children); } },
|
|
809
|
+
React__default.createElement(AvatarContent, { size: size, img: img, initials: initials })));
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
var getAvatars = function (avatars, max) {
|
|
813
|
+
var maxAvatars = avatars.slice(0, max);
|
|
814
|
+
var hasHiddenAvatars = maxAvatars.length < avatars.length;
|
|
815
|
+
return __spreadArray(__spreadArray([], maxAvatars, true), (hasHiddenAvatars && max
|
|
816
|
+
? [{ initials: "+".concat(avatars.length - max) }]
|
|
817
|
+
: []), true);
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
var AvatarGroup = function (_a) {
|
|
821
|
+
var title = _a.title, ariaLabel = _a.ariaLabel, href = _a.href, avatars = _a.avatars, onClick = _a.onClick, max = _a.max, _b = _a.size, size = _b === void 0 ? "xl" : _b, props = __rest(_a, ["title", "ariaLabel", "href", "avatars", "onClick", "max", "size"]);
|
|
822
|
+
var id = useId();
|
|
823
|
+
var wrapperAttrs = __assign({ className: "arc-AvatarGroup" }, filterDataAttrs(props));
|
|
824
|
+
return (React__default.createElement(ConditionalWrapper, { condition: Boolean(href), wrapper: function (children) { return (React__default.createElement("a", __assign({ href: href, "aria-label": ariaLabel, onClick: onClick, title: title }, wrapperAttrs), children)); }, fallback: function (children) { return React__default.createElement("div", __assign({}, wrapperAttrs), children); } },
|
|
825
|
+
React__default.createElement("div", { className: "arc-AvatarGroup-avatarContainer" }, getAvatars(avatars, max).map(function (props, i) { return (React__default.createElement("div", { key: "".concat(id, "-avatar-").concat(i), className: classNames("arc-AvatarGroup-avatar", "arc-AvatarGroup-avatar--".concat(size)) },
|
|
826
|
+
React__default.createElement(Avatar, __assign({ size: size }, props)))); }))));
|
|
827
|
+
};
|
|
828
|
+
|
|
598
829
|
/** Use `Badge` component to visually display a small amount of information, such as notification counts or status indicators. */
|
|
599
830
|
var Badge = function (_a) {
|
|
600
831
|
var _b, _c;
|
|
@@ -1415,38 +1646,6 @@ var ButtonIcon = function (_a) {
|
|
|
1415
1646
|
return (React__default.createElement("span", { className: "arc-Button-icon" }, isChevron ? (React__default.createElement(Icon, { icon: isBeforeText ? BtIconChevronLeftMid : BtIconChevronRightMid })) : (React__default.createElement(Icon, { icon: icon }))));
|
|
1416
1647
|
};
|
|
1417
1648
|
|
|
1418
|
-
/**
|
|
1419
|
-
* Use `Image` to render a single image, or set of images, with support for
|
|
1420
|
-
* image fitting and art direction.
|
|
1421
|
-
*/
|
|
1422
|
-
var Image = function (_a) {
|
|
1423
|
-
var _b;
|
|
1424
|
-
var alt = _a.alt, _c = _a.anchor, anchor = _c === void 0 ? "C" : _c, children = _a.children, fillColor = _a.fillColor, fit = _a.fit, height = _a.height, loading = _a.loading, overlay = _a.overlay, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet, width = _a.width, props = __rest(_a, ["alt", "anchor", "children", "fillColor", "fit", "height", "loading", "overlay", "sizes", "src", "srcSet", "width"]);
|
|
1425
|
-
useEffect(function () {
|
|
1426
|
-
React__default.Children.map(children, function (item) {
|
|
1427
|
-
if (item && item.type !== ImageSource) {
|
|
1428
|
-
throw new Error("Illegal child passed to <Image />. Ensure to only use <Image.Source />.");
|
|
1429
|
-
}
|
|
1430
|
-
});
|
|
1431
|
-
}, [children]);
|
|
1432
|
-
var img = (React__default.createElement("img", { className: "arc-Image-img", alt: alt, height: fit === "cover" ? undefined : height, loading: loading, sizes: children ? undefined : sizes, src: src, srcSet: children ? undefined : srcSet, width: fit === "cover" ? undefined : width }));
|
|
1433
|
-
return (React__default.createElement("div", __assign({ className: classNames((_b = {
|
|
1434
|
-
"arc-Image": true,
|
|
1435
|
-
"arc-Image--cover": fit === "cover"
|
|
1436
|
-
},
|
|
1437
|
-
_b["arc-Image--anchor".concat(anchor)] = fit === "cover",
|
|
1438
|
-
_b[suffixModifier("arc-Image--overlay", overlay || "")] = overlay,
|
|
1439
|
-
_b)), style: __assign(__assign(__assign({}, (fillColor && { backgroundColor: fillColor })), (fit === "cover" && height ? { height: "".concat(height, "px") } : null)), (fit === "cover" && width ? { width: "".concat(width, "px") } : null)) }, filterDataAttrs(props)), children ? (React__default.createElement("picture", null,
|
|
1440
|
-
children,
|
|
1441
|
-
" ",
|
|
1442
|
-
img)) : (React__default.createElement(React__default.Fragment, null, img))));
|
|
1443
|
-
};
|
|
1444
|
-
var ImageSource = function (_a) {
|
|
1445
|
-
var height = _a.height, media = _a.media, srcSet = _a.srcSet, sizes = _a.sizes, type = _a.type; _a.width; var props = __rest(_a, ["height", "media", "srcSet", "sizes", "type", "width"]);
|
|
1446
|
-
return (React__default.createElement("source", __assign({ height: height, media: media, sizes: sizes, srcSet: srcSet, type: type }, filterDataAttrs(props))));
|
|
1447
|
-
};
|
|
1448
|
-
Image.Source = ImageSource;
|
|
1449
|
-
|
|
1450
1649
|
/**
|
|
1451
1650
|
* Optionally define ariaDescribedBy if errorMessage or helper exist.
|
|
1452
1651
|
*/
|
|
@@ -1754,11 +1953,16 @@ var FormControl = function (_a) {
|
|
|
1754
1953
|
"arc-FormControl--smallLabel": labelSize === "s",
|
|
1755
1954
|
"arc-FormControl--onDarkSurface": surface === "dark"
|
|
1756
1955
|
}), id: id }, elementProps, filterDataAttrs(props)),
|
|
1757
|
-
|
|
1758
|
-
label,
|
|
1759
|
-
|
|
1956
|
+
hideLabel === true ? (React__default.createElement(VisuallyHidden, null,
|
|
1957
|
+
React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
|
|
1958
|
+
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper
|
|
1959
|
+
}) }, labelProps),
|
|
1960
|
+
label,
|
|
1961
|
+
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))) : (React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
|
|
1962
|
+
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper
|
|
1963
|
+
}) }, labelProps),
|
|
1760
1964
|
label,
|
|
1761
|
-
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))
|
|
1965
|
+
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)")))),
|
|
1762
1966
|
helperUnderLabel && (React__default.createElement(React__default.Fragment, null, helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)))),
|
|
1763
1967
|
children,
|
|
1764
1968
|
React__default.createElement("div", { className: classNames("arc-FormControl-info", {
|
|
@@ -1921,12 +2125,16 @@ var Curve = function (_a) {
|
|
|
1921
2125
|
var Disclosure = function (_a) {
|
|
1922
2126
|
var children = _a.children, headingLevel = _a.headingLevel, _b = _a.indentDetails, indentDetails = _b === void 0 ? false : _b, _c = _a.isOpen, isOpen = _c === void 0 ? false : _c, summary = _a.summary, props = __rest(_a, ["children", "headingLevel", "indentDetails", "isOpen", "summary"]);
|
|
1923
2127
|
var surface = useContext(Context$5).surface;
|
|
2128
|
+
var _d = useState(false), disclousreState = _d[0], setDisclosureState = _d[1];
|
|
2129
|
+
var handleOnClick = function () {
|
|
2130
|
+
setDisclosureState(function (prevState) { return !prevState; });
|
|
2131
|
+
};
|
|
1924
2132
|
return (React__default.createElement("details", __assign({ className: classNames({
|
|
1925
2133
|
"arc-Disclosure": true,
|
|
1926
2134
|
"arc-Disclosure--indentDetails": indentDetails,
|
|
1927
2135
|
"arc-Disclosure--onDarkSurface": surface === "dark"
|
|
1928
2136
|
}), open: isOpen }, filterDataAttrs(props)),
|
|
1929
|
-
React__default.createElement("summary", { className: "arc-Disclosure-summary" },
|
|
2137
|
+
React__default.createElement("summary", { "aria-expanded": disclousreState, onClick: handleOnClick, className: "arc-Disclosure-summary" },
|
|
1930
2138
|
React__default.createElement("span", { className: "arc-Disclosure-summary-icon" },
|
|
1931
2139
|
React__default.createElement(BtIconChevronDown2Px, null)),
|
|
1932
2140
|
React__default.createElement(Heading, { level: headingLevel, size: "s" }, summary)),
|
|
@@ -2095,27 +2303,6 @@ var ArcBreakpointS = 636;
|
|
|
2095
2303
|
var ArcBreakpointM = 768;
|
|
2096
2304
|
var ArcBreakpointL = 1024;
|
|
2097
2305
|
|
|
2098
|
-
const BtIconArrowRight = (props) =>
|
|
2099
|
-
/*#__PURE__*/ React__default.createElement(
|
|
2100
|
-
"svg",
|
|
2101
|
-
Object.assign(
|
|
2102
|
-
{
|
|
2103
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2104
|
-
viewBox: "0 0 32 32",
|
|
2105
|
-
},
|
|
2106
|
-
props,
|
|
2107
|
-
),
|
|
2108
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
2109
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2110
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
2111
|
-
fill: "currentColor",
|
|
2112
|
-
}),
|
|
2113
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2114
|
-
d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
|
|
2115
|
-
fill: "currentColor",
|
|
2116
|
-
}),
|
|
2117
|
-
);
|
|
2118
|
-
|
|
2119
2306
|
const BtIconCross = (props) =>
|
|
2120
2307
|
/*#__PURE__*/ React__default.createElement(
|
|
2121
2308
|
"svg",
|
|
@@ -2205,114 +2392,6 @@ var VerticalSpace = function (_a) {
|
|
|
2205
2392
|
_b)) }, filterDataAttrs(props))));
|
|
2206
2393
|
};
|
|
2207
2394
|
|
|
2208
|
-
var CardHeading = function (_a) {
|
|
2209
|
-
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 ? "s" : _b, _c = _a.isDarkPathway, isDarkPathway = _c === void 0 ? false : _c, _d = _a.linkData, linkData = _d === void 0 ? {} : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e;
|
|
2210
|
-
var HeadingElement = "h".concat(headingLevel);
|
|
2211
|
-
return (React__default.createElement(HeadingElement, { className: classNames("arc-CardHeading", "arc-CardHeading--".concat(size), {
|
|
2212
|
-
"arc-CardHeading--darkPathway": isDarkPathway
|
|
2213
|
-
}) }, href ? (React__default.createElement("a", __assign({ className: "arc-CardHeading-link", href: href, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onFocus: onFocus, onBlur: onBlur }, filterDataAttrs(linkData)), heading)) : (heading)));
|
|
2214
|
-
};
|
|
2215
|
-
|
|
2216
|
-
var CardLabel = function (_a) {
|
|
2217
|
-
var _b;
|
|
2218
|
-
var text = _a.text, _c = _a.color, color = _c === void 0 ? "muted" : _c, _d = _a.isBold, isBold = _d === void 0 ? true : _d, _e = _a.isDarkPathway, isDarkPathway = _e === void 0 ? false : _e;
|
|
2219
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
2220
|
-
React__default.createElement("span", { className: classNames("arc-CardLabel", (_b = {},
|
|
2221
|
-
_b[suffixModifier("arc-CardLabel--color", color)] = !isDarkPathway,
|
|
2222
|
-
_b["arc-CardLabel--bold"] = isBold,
|
|
2223
|
-
_b["arc-CardLabel--darkPathway"] = isDarkPathway,
|
|
2224
|
-
_b)) }, text)));
|
|
2225
|
-
};
|
|
2226
|
-
|
|
2227
|
-
const BtIconPlay = (props) =>
|
|
2228
|
-
/*#__PURE__*/ React__default.createElement(
|
|
2229
|
-
"svg",
|
|
2230
|
-
Object.assign(
|
|
2231
|
-
{
|
|
2232
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2233
|
-
viewBox: "0 0 32 32",
|
|
2234
|
-
},
|
|
2235
|
-
props,
|
|
2236
|
-
),
|
|
2237
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
2238
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2239
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
|
|
2240
|
-
fill: "currentColor",
|
|
2241
|
-
}),
|
|
2242
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2243
|
-
d: "M20.83887,15.03955,13.66113,10.896A1.107,1.107,0,0,0,12,11.85449v8.2876a1.10534,1.10534,0,0,0,1.66113.95947L20.83887,16.957a1.10688,1.10688,0,0,0,0-1.91748Zm-.5,1.05176-7.17774,4.14453a.10437.10437,0,0,1-.10742-.00049A.10314.10314,0,0,1,13,20.14209v-8.2876a.10229.10229,0,0,1,.05371-.09277.10284.10284,0,0,1,.10742,0l7.17774,4.14307a.10421.10421,0,0,1,.05371.09375A.10285.10285,0,0,1,20.33887,16.09131Z",
|
|
2244
|
-
fill: "currentColor",
|
|
2245
|
-
}),
|
|
2246
|
-
);
|
|
2247
|
-
|
|
2248
|
-
const BtIconArrowRightFill = (props) =>
|
|
2249
|
-
/*#__PURE__*/ React__default.createElement(
|
|
2250
|
-
"svg",
|
|
2251
|
-
Object.assign(
|
|
2252
|
-
{
|
|
2253
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2254
|
-
viewBox: "0 0 32 32",
|
|
2255
|
-
},
|
|
2256
|
-
props,
|
|
2257
|
-
),
|
|
2258
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
2259
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2260
|
-
d: "M2,16A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm16.85352-4.35352L23.207,16l-4.35351,4.35352a.5.5,0,0,1-.707-.707L21.293,16.5H9.5a.5.5,0,0,1,0-1H21.293l-3.14649-3.14648a.5.5,0,0,1,.707-.707Z",
|
|
2261
|
-
fill: "currentColor",
|
|
2262
|
-
}),
|
|
2263
|
-
);
|
|
2264
|
-
|
|
2265
|
-
const BtIconPlayFill = (props) =>
|
|
2266
|
-
/*#__PURE__*/ React__default.createElement(
|
|
2267
|
-
"svg",
|
|
2268
|
-
Object.assign(
|
|
2269
|
-
{
|
|
2270
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2271
|
-
viewBox: "0 0 32 32",
|
|
2272
|
-
},
|
|
2273
|
-
props,
|
|
2274
|
-
),
|
|
2275
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
2276
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2277
|
-
d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
|
|
2278
|
-
fill: "currentColor",
|
|
2279
|
-
}),
|
|
2280
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
2281
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
|
|
2282
|
-
fill: "currentColor",
|
|
2283
|
-
}),
|
|
2284
|
-
);
|
|
2285
|
-
|
|
2286
|
-
var CardFooter = function (_a) {
|
|
2287
|
-
var metaText = _a.metaText, _b = _a.buttonIcon, buttonIcon = _b === void 0 ? "arrow" : _b, _c = _a.isDarkPathway, isDarkPathway = _c === void 0 ? false : _c, _d = _a.showButton, showButton = _d === void 0 ? true : _d, _e = _a.showFilledIcon, showFilledIcon = _e === void 0 ? false : _e;
|
|
2288
|
-
var icons = {
|
|
2289
|
-
arrow: {
|
|
2290
|
-
regular: BtIconArrowRight,
|
|
2291
|
-
filled: BtIconArrowRightFill
|
|
2292
|
-
},
|
|
2293
|
-
play: {
|
|
2294
|
-
regular: BtIconPlay,
|
|
2295
|
-
filled: BtIconPlayFill
|
|
2296
|
-
}
|
|
2297
|
-
};
|
|
2298
|
-
return (React__default.createElement("div", { className: classNames("arc-CardFooter", {
|
|
2299
|
-
"arc-CardFooter--darkPathway": isDarkPathway,
|
|
2300
|
-
"arc-CardFooter--showFilledIcon": showFilledIcon
|
|
2301
|
-
}) },
|
|
2302
|
-
React__default.createElement("div", { className: "arc-CardFooter-metaTextContainer" }, metaText && (React__default.createElement("span", { className: "arc-CardFooter-metaText" }, metaText))),
|
|
2303
|
-
showButton && (React__default.createElement("div", null,
|
|
2304
|
-
React__default.createElement("div", { className: "arc-CardFooter-button" },
|
|
2305
|
-
React__default.createElement("div", { className: classNames("arc-CardFooter-buttonIcon", "arc-CardFooter-buttonIcon--regular") },
|
|
2306
|
-
React__default.createElement(Icon, { icon: icons[buttonIcon].regular, size: 40 })),
|
|
2307
|
-
React__default.createElement("div", { className: "arc-CardFooter-buttonIcon arc-CardFooter-buttonIcon--filled" },
|
|
2308
|
-
React__default.createElement(Icon, { icon: icons[buttonIcon].filled, size: 40 })))))));
|
|
2309
|
-
};
|
|
2310
|
-
|
|
2311
|
-
var ConditionalWrapper = function (_a) {
|
|
2312
|
-
var condition = _a.condition, wrapper = _a.wrapper, children = _a.children;
|
|
2313
|
-
return (React__default.createElement(React__default.Fragment, null, condition ? wrapper(children) : children));
|
|
2314
|
-
};
|
|
2315
|
-
|
|
2316
2395
|
var InformationCard = function (_a) {
|
|
2317
2396
|
var cardUrl = _a.cardUrl, onClick = _a.onClick, heading = _a.heading, text = _a.text, label = _a.label, footerLogo = _a.footerLogo, button = _a.button, image = _a.image, tags = _a.tags, icon = _a.icon, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, props = __rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "tags", "icon", "headingLevel"]);
|
|
2318
2397
|
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcBreakpointS, "px)"));
|
|
@@ -2328,7 +2407,7 @@ var InformationCard = function (_a) {
|
|
|
2328
2407
|
React__default.createElement(Surface, { growVertically: true, padding: containerSpacing, background: "white" },
|
|
2329
2408
|
React__default.createElement("div", null,
|
|
2330
2409
|
image && (React__default.createElement("div", { className: "arc-InformationCard-img" },
|
|
2331
|
-
React__default.createElement(Image, __assign({}, image)),
|
|
2410
|
+
React__default.createElement(Image, __assign({ alt: "" }, image)),
|
|
2332
2411
|
React__default.createElement(VerticalSpace, { size: assetSpacing }))),
|
|
2333
2412
|
icon && (React__default.createElement(React__default.Fragment, null,
|
|
2334
2413
|
React__default.createElement(Icon, { testId: "information-card-icon", icon: icon, size: 96 }),
|
|
@@ -35683,8 +35762,8 @@ var useRadioContext = function () {
|
|
|
35683
35762
|
* Radio Button component.
|
|
35684
35763
|
*/
|
|
35685
35764
|
var RadioButton = forwardRef(function (_a, ref) {
|
|
35686
|
-
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = __rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
|
|
35687
|
-
var
|
|
35765
|
+
var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, _b = _a.radioButtonAlignment, radioButtonAlignment = _b === void 0 ? "center" : _b, value = _a.value, props = __rest(_a, ["helper", "id", "isDisabled", "label", "radioButtonAlignment", "value"]);
|
|
35766
|
+
var _c = useRadioContext(), blurEvent = _c.blurEvent, changeEvent = _c.changeEvent, groupDisabled = _c.groupDisabled, checkedValue = _c.checkedValue, labelSize = _c.labelSize, name = _c.name, size = _c.size;
|
|
35688
35767
|
var surface = useContext(Context$5).surface;
|
|
35689
35768
|
var idLabel = "".concat(id, "-label");
|
|
35690
35769
|
var checked = checkedValue === value ? true : false;
|
|
@@ -35695,9 +35774,13 @@ var RadioButton = forwardRef(function (_a, ref) {
|
|
|
35695
35774
|
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
35696
35775
|
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
35697
35776
|
}) }, filterDataAttrs(props)),
|
|
35698
|
-
React__default.createElement("label", { className: "arc-RadioButton-label",
|
|
35777
|
+
React__default.createElement("label", { className: classNames("arc-RadioButton-label", {
|
|
35778
|
+
"arc-RadioButton-label--alignTop": radioButtonAlignment === "top"
|
|
35779
|
+
}), htmlFor: id, id: idLabel },
|
|
35699
35780
|
React__default.createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
|
|
35700
|
-
React__default.createElement("span",
|
|
35781
|
+
React__default.createElement("span", { className: classNames({
|
|
35782
|
+
"arc-RadioButton-label--marginTop": radioButtonAlignment === "top"
|
|
35783
|
+
}) },
|
|
35701
35784
|
label,
|
|
35702
35785
|
helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
35703
35786
|
});
|
|
@@ -35724,19 +35807,24 @@ var RadioGroup = function (_a) {
|
|
|
35724
35807
|
size: size
|
|
35725
35808
|
} },
|
|
35726
35809
|
React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
|
|
35727
|
-
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
35810
|
+
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
35811
|
+
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
35728
35812
|
};
|
|
35729
35813
|
RadioGroup.RadioButton = RadioButton;
|
|
35730
35814
|
|
|
35731
35815
|
/**
|
|
35732
|
-
* Use `Rule` to display a horizontal rule.
|
|
35816
|
+
* Use `Rule` to display a horizontal or vertical rule.
|
|
35733
35817
|
*/
|
|
35734
|
-
var Rule = function (props) {
|
|
35818
|
+
var Rule = function (_a, props) {
|
|
35819
|
+
var _b;
|
|
35820
|
+
var _c = _a.orientation, orientation = _c === void 0 ? "horizontal" : _c;
|
|
35735
35821
|
var surface = useContext(Context$5).surface;
|
|
35736
|
-
return (React__default.createElement("hr", __assign({ className: classNames({
|
|
35737
|
-
|
|
35738
|
-
|
|
35739
|
-
|
|
35822
|
+
return (React__default.createElement("hr", __assign({ className: classNames((_b = {
|
|
35823
|
+
"arc-Rule": true
|
|
35824
|
+
},
|
|
35825
|
+
_b["arc-Rule--".concat(orientation)] = true,
|
|
35826
|
+
_b["arc-Rule--onDarkSurface"] = surface === "dark",
|
|
35827
|
+
_b)) }, filterDataAttrs(props))));
|
|
35740
35828
|
};
|
|
35741
35829
|
|
|
35742
35830
|
const BtIconArrowAltUp = (props) =>
|
|
@@ -35782,7 +35870,7 @@ var ScrollToTop = function (_a) {
|
|
|
35782
35870
|
"arc-ScrollToTop--visible": appear === "always" || (appear === "afterScroll" && hasScrolled)
|
|
35783
35871
|
}) }, filterDataAttrs(props)),
|
|
35784
35872
|
React__default.createElement("div", { className: "arc-ScrollToTop-textWrapper" },
|
|
35785
|
-
React__default.createElement("span", { className: "arc-ScrollToTop-text" }, "
|
|
35873
|
+
React__default.createElement("span", { className: "arc-ScrollToTop-text" }, "Back to top")),
|
|
35786
35874
|
React__default.createElement("span", { className: "arc-ScrollToTop-iconContainer" },
|
|
35787
35875
|
React__default.createElement(Icon, { icon: BtIconArrowAltUp, size: 44 }))));
|
|
35788
35876
|
};
|
|
@@ -39196,14 +39284,16 @@ const BtIconChevronUp2Px = (props) =>
|
|
|
39196
39284
|
/** Use `Select` to choose from a dropdown list of options. */
|
|
39197
39285
|
var Select = function (_a) {
|
|
39198
39286
|
var _b;
|
|
39199
|
-
var isRequired = _a.isRequired, isDisabled = _a.isDisabled, placeholder = _a.placeholder, label = _a.label, _c = _a.ariaLabel, ariaLabel = _c === void 0 ? label : _c, options = _a.options, onOpenChange = _a.onOpenChange, isDefaultOpen = _a.isDefaultOpen, defaultValue = _a.defaultValue, errorMessage = _a.errorMessage, labelSize = _a.labelSize, helper = _a.helper, hideLabel = _a.hideLabel, name = _a.name, width = _a.width, isFluid = _a.isFluid, onBlur = _a.onBlur, onChange = _a.onChange, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, _d = _a.selectSize, selectSize = _d === void 0 ? "m" : _d, props = __rest(_a, ["isRequired", "isDisabled", "placeholder", "label", "ariaLabel", "options", "onOpenChange", "isDefaultOpen", "defaultValue", "errorMessage", "labelSize", "helper", "hideLabel", "name", "width", "isFluid", "onBlur", "onChange", "disclosureTitle", "disclosureText", "onClickDisclosure", "selectSize"]);
|
|
39287
|
+
var isRequired = _a.isRequired, isDisabled = _a.isDisabled, placeholder = _a.placeholder, label = _a.label, value = _a.value, _c = _a.ariaLabel, ariaLabel = _c === void 0 ? label : _c, options = _a.options, onOpenChange = _a.onOpenChange, isDefaultOpen = _a.isDefaultOpen, defaultValue = _a.defaultValue, errorMessage = _a.errorMessage, labelSize = _a.labelSize, helper = _a.helper, hideLabel = _a.hideLabel, name = _a.name, width = _a.width, isFluid = _a.isFluid, onBlur = _a.onBlur, onChange = _a.onChange, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, _d = _a.selectSize, selectSize = _d === void 0 ? "m" : _d, props = __rest(_a, ["isRequired", "isDisabled", "placeholder", "label", "value", "ariaLabel", "options", "onOpenChange", "isDefaultOpen", "defaultValue", "errorMessage", "labelSize", "helper", "hideLabel", "name", "width", "isFluid", "onBlur", "onChange", "disclosureTitle", "disclosureText", "onClickDisclosure", "selectSize"]);
|
|
39200
39288
|
var id = useId();
|
|
39201
39289
|
var arcRootElement = useContext(ArcRootElementContext);
|
|
39202
39290
|
var surface = useContext(Context$5).surface;
|
|
39203
|
-
var _e = useState(defaultValue),
|
|
39291
|
+
var _e = useState(defaultValue), uncontrolledValue = _e[0], setUncontrolledValue = _e[1];
|
|
39292
|
+
var isControlled = typeof value !== "undefined";
|
|
39293
|
+
var selectValue = isControlled ? value : uncontrolledValue;
|
|
39204
39294
|
var onValueChange = function (value) {
|
|
39205
39295
|
onChange && onChange(value);
|
|
39206
|
-
|
|
39296
|
+
setUncontrolledValue(value);
|
|
39207
39297
|
};
|
|
39208
39298
|
var getSelectedValueName = function (value) {
|
|
39209
39299
|
var _a;
|
|
@@ -39220,7 +39310,7 @@ var Select = function (_a) {
|
|
|
39220
39310
|
}
|
|
39221
39311
|
};
|
|
39222
39312
|
return (React__default.createElement(FormControl, { errorMessage: errorMessage, helper: helper, htmlFor: id, label: label, hideLabel: hideLabel, labelSize: labelSize, requirementStatus: isRequired ? "required" : "optional", isDisabled: isDisabled, disclosureText: disclosureText, disclosureTitle: disclosureTitle, onClickDisclosure: onClickDisclosure },
|
|
39223
|
-
React__default.createElement($cc7e05a45900e73f$export$be92b6f5f03c0fe9, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value:
|
|
39313
|
+
React__default.createElement($cc7e05a45900e73f$export$be92b6f5f03c0fe9, { name: name, required: isRequired, disabled: isDisabled, defaultOpen: isDefaultOpen, value: selectValue, onOpenChange: onOpenChange, onValueChange: function (value) { return onValueChange(value); } },
|
|
39224
39314
|
React__default.createElement("div", { className: "arc-Select-wrapper" },
|
|
39225
39315
|
React__default.createElement($cc7e05a45900e73f$export$41fb9f06171c75f4, __assign({ id: id, name: name, onBlur: onBlur, "aria-label": ariaLabel, style: { width: width }, className: classNames("arc-Select-trigger", (_b = {
|
|
39226
39316
|
"arc-Select-trigger--constrained": !isFluid,
|
|
@@ -39229,7 +39319,7 @@ var Select = function (_a) {
|
|
|
39229
39319
|
},
|
|
39230
39320
|
_b["arc-Select-trigger--size".concat(selectSize && selectSize.toUpperCase())] = selectSize && selectSize !== "m",
|
|
39231
39321
|
_b)) }, filterDataAttrs(props)),
|
|
39232
|
-
React__default.createElement($cc7e05a45900e73f$export$4c8d1a57a761ef94, { className: "arc-Select-triggerText", placeholder: placeholder, "aria-label": getSelectedValueName(
|
|
39322
|
+
React__default.createElement($cc7e05a45900e73f$export$4c8d1a57a761ef94, { className: "arc-Select-triggerText", placeholder: placeholder, "aria-label": getSelectedValueName(uncontrolledValue) }),
|
|
39233
39323
|
React__default.createElement($cc7e05a45900e73f$export$f04a61298a47a40f, { className: "arc-Select-triggerIcon" },
|
|
39234
39324
|
React__default.createElement(Icon, { icon: BtIconChevronDown2Px, size: getIconSize(selectSize) }))),
|
|
39235
39325
|
React__default.createElement($cc7e05a45900e73f$export$602eac185826482c, { container: arcRootElement || undefined },
|
|
@@ -39895,7 +39985,7 @@ var SiteHeader = function (_a) {
|
|
|
39895
39985
|
React__default.createElement("a", { className: "arc-SiteHeader-brand", onClick: handleLinkClick({
|
|
39896
39986
|
handler: logoOnClick
|
|
39897
39987
|
}), href: logoHref },
|
|
39898
|
-
React__default.createElement(BrandLogo, { label: logoLabel, subBrand: subBrand
|
|
39988
|
+
React__default.createElement(BrandLogo, { label: logoLabel, subBrand: subBrand })),
|
|
39899
39989
|
children && (React__default.createElement("nav", { className: "arc-SiteHeader-nav" },
|
|
39900
39990
|
React__default.createElement("div", { className: "arc-SiteHeader-menuButton" },
|
|
39901
39991
|
React__default.createElement(MenuButton$1, { menuOpen: menuOpen, setMenuOpen: setMenuOpen })),
|
|
@@ -39978,9 +40068,9 @@ var Item = function (_a) {
|
|
|
39978
40068
|
_b["arc-SiteHeaderV2Item--emphasised"] = true,
|
|
39979
40069
|
_b)) }, filterDataAttrs(props)),
|
|
39980
40070
|
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteHeaderV2Item-link", href: href },
|
|
40071
|
+
children,
|
|
39981
40072
|
React__default.createElement("span", { className: "arc-SiteHeaderV2Item-linkIcon" },
|
|
39982
|
-
React__default.createElement(BtIconChevronRightMid, null))
|
|
39983
|
-
children)));
|
|
40073
|
+
React__default.createElement(BtIconChevronRightMid, null)))));
|
|
39984
40074
|
};
|
|
39985
40075
|
|
|
39986
40076
|
var ItemGroup = function (_a) {
|
|
@@ -40082,6 +40172,7 @@ var Panel = function (_a) {
|
|
|
40082
40172
|
}
|
|
40083
40173
|
// Close the panel.
|
|
40084
40174
|
setOpen(false);
|
|
40175
|
+
setOpenPanelOnFirstClick(false);
|
|
40085
40176
|
};
|
|
40086
40177
|
document.addEventListener("click", handleClick);
|
|
40087
40178
|
return function () {
|
|
@@ -40259,32 +40350,15 @@ var HorizontalPanel = function (_a) {
|
|
|
40259
40350
|
// Where appropriate, close the Panel when clicking outside of it,
|
|
40260
40351
|
// by listening to clicks on the entire document and acting accordingly.
|
|
40261
40352
|
var handleClick = function (e) {
|
|
40262
|
-
var _a
|
|
40263
|
-
//
|
|
40353
|
+
var _a;
|
|
40354
|
+
// Close the Horizontal Panel…
|
|
40264
40355
|
if (
|
|
40265
|
-
// The click is inside the current
|
|
40266
|
-
((_a =
|
|
40267
|
-
|
|
40268
|
-
|
|
40269
|
-
// and the target is not a link
|
|
40270
|
-
(((_b = navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current) === null || _b === void 0 ? void 0 : _b.contains(e.target)) &&
|
|
40271
|
-
!subNavItemRef &&
|
|
40272
|
-
!e.target.getAttribute("href")) ||
|
|
40273
|
-
// The Panel is inside a SubNavItem
|
|
40274
|
-
// and the click is not on a SubNavItem-link.
|
|
40275
|
-
// This ensures that one SubNavItem Panel per NavItem always remains open.
|
|
40276
|
-
(subNavItemRef &&
|
|
40277
|
-
!e.target.classList.contains(subNavLink) &&
|
|
40278
|
-
!e.target.classList.contains("".concat(subNavLink, "Title")) &&
|
|
40279
|
-
!e.target.classList.contains("".concat(subNavLink, "SubTitle"))) ||
|
|
40280
|
-
// Panel is inside a SubNavItem
|
|
40281
|
-
// and the click is not inside the Panel's NavItem parent.
|
|
40282
|
-
// This prevents SubNavItem Panels in sibling NavItems from being closed.
|
|
40283
|
-
(subNavItemRef && !(navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current.contains(e.target)))) {
|
|
40356
|
+
// The click is not inside the current NavItem
|
|
40357
|
+
!((_a = navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) ||
|
|
40358
|
+
e.target.classList.contains("arc-SiteHeaderV2HorizontalPanel--open")) {
|
|
40359
|
+
setOpen(false);
|
|
40284
40360
|
return;
|
|
40285
40361
|
}
|
|
40286
|
-
// Close the panel.
|
|
40287
|
-
setOpen(false);
|
|
40288
40362
|
};
|
|
40289
40363
|
document.addEventListener("click", handleClick);
|
|
40290
40364
|
return function () {
|
|
@@ -41628,7 +41702,7 @@ var TextArea = forwardRef(function (_a, ref) {
|
|
|
41628
41702
|
/**
|
|
41629
41703
|
* Use `TextInput` to allow custom user text entry with a keyboard.
|
|
41630
41704
|
*/
|
|
41631
|
-
var
|
|
41705
|
+
var TextInputComponent = forwardRef(function (_a, ref) {
|
|
41632
41706
|
var _b;
|
|
41633
41707
|
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, _g = _a.labelSize, labelSize = _g === void 0 ? "l" : _g, maxLength = _a.maxLength, minLength = _a.minLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, placeholder = _a.placeholder, onClickDisclosure = _a.onClickDisclosure, pattern = _a.pattern, _h = _a.type, type = _h === void 0 ? "text" : _h, _j = _a.showPassword, showPassword = _j === void 0 ? false : _j, value = _a.value, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, _k = _a.inputSize, inputSize = _k === void 0 ? "m" : _k, iconButton = _a.iconButton, prefix = _a.prefix, suffix = _a.suffix, _l = _a.inputAlignment, inputAlignment = _l === void 0 ? "left" : _l, width = _a.width, props = __rest(_a, ["defaultValue", "errorMessage", "helper", "hideLabel", "id", "inputMode", "isDisabled", "isReadOnly", "isRequired", "label", "labelSize", "maxLength", "minLength", "name", "onBlur", "onChange", "placeholder", "onClickDisclosure", "pattern", "type", "showPassword", "value", "disclosureTitle", "disclosureText", "inputSize", "iconButton", "prefix", "suffix", "inputAlignment", "width"]);
|
|
41634
41708
|
var surface = useContext(Context$5).surface;
|
|
@@ -41682,6 +41756,8 @@ var TextInput = forwardRef(function (_a, ref) {
|
|
|
41682
41756
|
? "Your password is shown"
|
|
41683
41757
|
: "Your password is hidden")))))))));
|
|
41684
41758
|
});
|
|
41759
|
+
var TextInput = forwardRef(function (props, ref) { return React__default.createElement(TextInputComponent, __assign({ ref: ref }, props)); });
|
|
41760
|
+
forwardRef(function (props, ref) { return React__default.createElement(TextInputComponent, __assign({ ref: ref }, props)); });
|
|
41685
41761
|
|
|
41686
41762
|
const $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';
|
|
41687
41763
|
const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';
|
|
@@ -42678,5 +42754,5 @@ var UniversalHeaderItem = function (_a) {
|
|
|
42678
42754
|
};
|
|
42679
42755
|
UniversalHeader.Item = UniversalHeaderItem;
|
|
42680
42756
|
|
|
42681
|
-
export { Alert, Align, Badge, Base, Box, BrandLogo, Breadcrumbs, Button, Card, Checkbox, Clock, Clock_rehydrator as ClockRehydrator, Columns, Curve, Disclosure, DisclosureMini, Elevation, Filter, FormControl, Group, Heading, Icon, Image, InformationCard, Markup, MediaCard, Modal, Pagination, PaginationSimple, Poster, ProgressBar, ProgressStepper, RadioGroup, Rule, ScrollToTop, Section, Select, SiteFooter, SiteFooter_rehydrator as SiteFooterRehydrator, SiteHeader, SiteHeaderRehydrator, SiteHeaderV2, Surface, Context$5 as SurfaceContext, Switch, Tabs, Tag, Text, TextArea, TextInput, Toast, Truncate, TypographyCard, UniversalHeader, VerticalSpace, VisuallyHidden };
|
|
42757
|
+
export { Alert, Align, Avatar, AvatarGroup, Badge, Base, Box, BrandLogo, Breadcrumbs, Button, Card, Checkbox, Clock, Clock_rehydrator as ClockRehydrator, Columns, Curve, Disclosure, DisclosureMini, Elevation, Filter, FormControl, Group, Heading, Icon, Image, InformationCard, Markup, MediaCard, Modal, Pagination, PaginationSimple, Poster, ProgressBar, ProgressStepper, RadioGroup, Rule, ScrollToTop, Section, Select, SiteFooter, SiteFooter_rehydrator as SiteFooterRehydrator, SiteHeader, SiteHeaderRehydrator, SiteHeaderV2, Surface, Context$5 as SurfaceContext, Switch, Tabs, Tag, Text, TextArea, TextInput, Toast, Truncate, TypographyCard, UniversalHeader, VerticalSpace, VisuallyHidden };
|
|
42682
42758
|
//# sourceMappingURL=index.es.js.map
|