@arc-ui/components 11.19.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/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/Checkbox/Checkbox.cjs.js +2 -2
- package/dist/Checkbox/Checkbox.esm.js +2 -2
- package/dist/DatePicker/DatePicker.cjs.js +2 -2
- package/dist/DatePicker/DatePicker.esm.js +2 -2
- package/dist/FormControl/FormControl.cjs.js +1 -1
- package/dist/FormControl/FormControl.esm.js +1 -1
- package/dist/InformationCard/InformationCard.cjs.js +4 -4
- package/dist/InformationCard/InformationCard.esm.js +1 -1
- package/dist/MediaCard/MediaCard.cjs.js +6 -10
- package/dist/MediaCard/MediaCard.esm.js +3 -7
- 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 +1 -1
- package/dist/ScrollToTop/ScrollToTop.esm.js +1 -1
- package/dist/Select/Select.cjs.js +8 -6
- package/dist/Select/Select.esm.js +8 -6
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +1 -1
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +1 -1
- 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 +1 -1
- package/dist/Switch/Switch.esm.js +1 -1
- package/dist/TextArea/TextArea.cjs.js +6 -6
- package/dist/TextArea/TextArea.esm.js +6 -6
- package/dist/TextInput/TextInput.cjs.js +2 -2
- package/dist/TextInput/TextInput.esm.js +2 -2
- package/dist/TypographyCard/TypographyCard.cjs.js +4 -4
- package/dist/TypographyCard/TypographyCard.esm.js +2 -2
- package/dist/_shared/cjs/Avatar-12ece0dd.js +65 -0
- package/dist/_shared/cjs/{CardFooter-f6cba651.js → CardFooter-4a68a862.js} +2 -2
- 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/{RadioGroup-60845bb3.js → RadioGroup-07bb155e.js} +3 -2
- package/dist/_shared/cjs/{SiteHeaderV2-8c8f3f5c.js → SiteHeaderV2-301c765c.js} +9 -25
- package/dist/_shared/cjs/{TextInput-acbd8eda.js → TextInput-5da70ec2.js} +1 -1
- package/dist/_shared/esm/Avatar-d01e2b7b.js +59 -0
- package/dist/_shared/esm/{CardFooter-55ae9a37.js → CardFooter-a08b70ee.js} +1 -1
- 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/{RadioGroup-d42dba3a.js → RadioGroup-362be63f.js} +3 -2
- package/dist/_shared/esm/{SiteHeaderV2-6d0ff35b.js → SiteHeaderV2-0096e25b.js} +9 -25
- package/dist/_shared/esm/{TextInput-ddf4cc7a.js → TextInput-1d1c5fd6.js} +1 -1
- package/dist/index.es.js +267 -205
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +267 -203
- 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/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/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
|
@@ -10,7 +10,7 @@ require('react-dom');
|
|
|
10
10
|
var Icon = require('../_shared/cjs/Icon-b46897a3.js');
|
|
11
11
|
var BtIconTickAlt2Px_esm = require('../_shared/cjs/BtIconTickAlt2Px.esm-57c89acc.js');
|
|
12
12
|
var Surface = require('../_shared/cjs/Surface-038db6e1.js');
|
|
13
|
-
var FormControl = require('../_shared/cjs/FormControl-
|
|
13
|
+
var FormControl = require('../_shared/cjs/FormControl-5f3b6ce4.js');
|
|
14
14
|
var VerticalSpace = require('../_shared/cjs/VerticalSpace-dc53bb70.js');
|
|
15
15
|
var Text = require('../_shared/cjs/Text-606ca3a2.js');
|
|
16
16
|
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
@@ -6,7 +6,7 @@ import 'react-dom';
|
|
|
6
6
|
import { I as Icon } from '../_shared/esm/Icon-15799695.js';
|
|
7
7
|
import { B as BtIconTickAlt2Px } from '../_shared/esm/BtIconTickAlt2Px.esm-0bc2ded0.js';
|
|
8
8
|
import { C as Context } from '../_shared/esm/Surface-0ca6817d.js';
|
|
9
|
-
import { F as FormControl } from '../_shared/esm/FormControl-
|
|
9
|
+
import { F as FormControl } from '../_shared/esm/FormControl-cc99cde0.js';
|
|
10
10
|
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-43cd9138.js';
|
|
11
11
|
import { T as Text } from '../_shared/esm/Text-14f586ac.js';
|
|
12
12
|
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
@@ -8,25 +8,25 @@ var index = require('../_shared/cjs/index-9947ac13.js');
|
|
|
8
8
|
var Surface = require('../_shared/cjs/Surface-038db6e1.js');
|
|
9
9
|
require('../_shared/cjs/Heading-27cba320.js');
|
|
10
10
|
var Text = require('../_shared/cjs/Text-606ca3a2.js');
|
|
11
|
+
require('../_shared/cjs/Image-e873b8fc.js');
|
|
11
12
|
require('../_shared/cjs/Base-f5a86eed.js');
|
|
12
13
|
require('../_shared/cjs/Breadcrumbs-c6eaf5c4.js');
|
|
13
14
|
require('../_shared/cjs/Button-84533dc8.js');
|
|
14
15
|
require('../_shared/cjs/Card-5b19cabc.js');
|
|
15
|
-
require('../_shared/cjs/Checkbox-
|
|
16
|
+
require('../_shared/cjs/Checkbox-8915fcd9.js');
|
|
16
17
|
require('../_shared/cjs/Columns-ae4f8cef.js');
|
|
17
18
|
require('../_shared/cjs/Filter-1bde635c.js');
|
|
18
|
-
var FormControl = require('../_shared/cjs/FormControl-
|
|
19
|
+
var FormControl = require('../_shared/cjs/FormControl-5f3b6ce4.js');
|
|
19
20
|
require('../_shared/cjs/Group-0429741a.js');
|
|
20
|
-
require('../_shared/cjs/Image-e873b8fc.js');
|
|
21
21
|
require('../_shared/cjs/Poster-9b48fd61.js');
|
|
22
22
|
require('../_shared/cjs/ProgressStepper-3af8a210.js');
|
|
23
|
-
require('../_shared/cjs/RadioGroup-
|
|
23
|
+
require('../_shared/cjs/RadioGroup-07bb155e.js');
|
|
24
24
|
require('../_shared/cjs/debounce-123468fb.js');
|
|
25
25
|
require('../_shared/cjs/SiteFooter-65b6360c.js');
|
|
26
26
|
require('../_shared/cjs/SiteHeader.rehydrator-ea49f8d5.js');
|
|
27
|
-
require('../_shared/cjs/SiteHeaderV2-
|
|
27
|
+
require('../_shared/cjs/SiteHeaderV2-301c765c.js');
|
|
28
28
|
require('../_shared/cjs/Tabs-24e6f45b.js');
|
|
29
|
-
require('../_shared/cjs/TextInput-
|
|
29
|
+
require('../_shared/cjs/TextInput-5da70ec2.js');
|
|
30
30
|
require('../_shared/cjs/Toast-7a20d1b9.js');
|
|
31
31
|
require('../_shared/cjs/UniversalHeader-b8389447.js');
|
|
32
32
|
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
@@ -4,25 +4,25 @@ import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
|
4
4
|
import { C as Context } from '../_shared/esm/Surface-0ca6817d.js';
|
|
5
5
|
import '../_shared/esm/Heading-d16e0e53.js';
|
|
6
6
|
import { T as Text } from '../_shared/esm/Text-14f586ac.js';
|
|
7
|
+
import '../_shared/esm/Image-12fbd327.js';
|
|
7
8
|
import '../_shared/esm/Base-f200653c.js';
|
|
8
9
|
import '../_shared/esm/Breadcrumbs-7d55e1a6.js';
|
|
9
10
|
import '../_shared/esm/Button-3f294e64.js';
|
|
10
11
|
import '../_shared/esm/Card-7fc6c9b4.js';
|
|
11
|
-
import '../_shared/esm/Checkbox-
|
|
12
|
+
import '../_shared/esm/Checkbox-0e051546.js';
|
|
12
13
|
import '../_shared/esm/Columns-d96b7425.js';
|
|
13
14
|
import '../_shared/esm/Filter-58a42358.js';
|
|
14
|
-
import { F as FormControl } from '../_shared/esm/FormControl-
|
|
15
|
+
import { F as FormControl } from '../_shared/esm/FormControl-cc99cde0.js';
|
|
15
16
|
import '../_shared/esm/Group-73fdb896.js';
|
|
16
|
-
import '../_shared/esm/Image-12fbd327.js';
|
|
17
17
|
import '../_shared/esm/Poster-4ec2f679.js';
|
|
18
18
|
import '../_shared/esm/ProgressStepper-d4c5b6d9.js';
|
|
19
|
-
import '../_shared/esm/RadioGroup-
|
|
19
|
+
import '../_shared/esm/RadioGroup-362be63f.js';
|
|
20
20
|
import '../_shared/esm/debounce-6fed6b84.js';
|
|
21
21
|
import '../_shared/esm/SiteFooter-38ee1536.js';
|
|
22
22
|
import '../_shared/esm/SiteHeader.rehydrator-65c8cf71.js';
|
|
23
|
-
import '../_shared/esm/SiteHeaderV2-
|
|
23
|
+
import '../_shared/esm/SiteHeaderV2-0096e25b.js';
|
|
24
24
|
import '../_shared/esm/Tabs-a85af483.js';
|
|
25
|
-
import '../_shared/esm/TextInput-
|
|
25
|
+
import '../_shared/esm/TextInput-1d1c5fd6.js';
|
|
26
26
|
import '../_shared/esm/Toast-7a232e15.js';
|
|
27
27
|
import '../_shared/esm/UniversalHeader-80c7313f.js';
|
|
28
28
|
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var TextInput = require('../_shared/cjs/TextInput-
|
|
5
|
+
var TextInput = require('../_shared/cjs/TextInput-5da70ec2.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('../_shared/cjs/index-9947ac13.js');
|
|
8
8
|
require('react');
|
|
9
|
-
require('../_shared/cjs/FormControl-
|
|
9
|
+
require('../_shared/cjs/FormControl-5f3b6ce4.js');
|
|
10
10
|
require('../_shared/cjs/BtIconAlert.esm-1a0ff9f0.js');
|
|
11
11
|
require('../_shared/cjs/Surface-038db6e1.js');
|
|
12
12
|
require('../_shared/cjs/DisclosureMini-d0eeb6bb.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { a as TextInput } from '../_shared/esm/TextInput-
|
|
1
|
+
export { a as TextInput } from '../_shared/esm/TextInput-1d1c5fd6.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../_shared/esm/FormControl-
|
|
5
|
+
import '../_shared/esm/FormControl-cc99cde0.js';
|
|
6
6
|
import '../_shared/esm/BtIconAlert.esm-a4608d47.js';
|
|
7
7
|
import '../_shared/esm/Surface-0ca6817d.js';
|
|
8
8
|
import '../_shared/esm/DisclosureMini-ec17b008.js';
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
-
var
|
|
9
|
-
var CardFooter = require('../_shared/cjs/CardFooter-
|
|
8
|
+
var BtIconArrowRight_esm = require('../_shared/cjs/BtIconArrowRight.esm-50d96943.js');
|
|
9
|
+
var CardFooter = require('../_shared/cjs/CardFooter-4a68a862.js');
|
|
10
10
|
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
11
11
|
require('../_shared/cjs/BtIconArrowRightFill.esm-435cf4bd.js');
|
|
12
12
|
require('../_shared/cjs/Icon-b46897a3.js');
|
|
@@ -28,8 +28,8 @@ var TypographyCard = function (_a) {
|
|
|
28
28
|
}) }, filterDataAttrs.filterDataAttrs(props)),
|
|
29
29
|
React__default["default"].createElement("div", { className: "arc-TypographyCard-contentContainer" },
|
|
30
30
|
label && (React__default["default"].createElement("div", { className: "arc-TypographyCard-labelContainer" },
|
|
31
|
-
React__default["default"].createElement(
|
|
32
|
-
React__default["default"].createElement(
|
|
31
|
+
React__default["default"].createElement(BtIconArrowRight_esm.CardLabel, { isDarkPathway: isDarkPathway, isBold: false, text: label }))),
|
|
32
|
+
React__default["default"].createElement(BtIconArrowRight_esm.CardHeading, { size: "m", linkData: linkData, heading: heading, headingLevel: headingLevel, href: url, onClick: onClick, isDarkPathway: isDarkPathway, onMouseEnter: handleShowHoverState(true), onMouseLeave: handleShowHoverState(false), onFocus: handleShowHoverState(true), onBlur: handleShowHoverState(false) })),
|
|
33
33
|
React__default["default"].createElement(CardFooter.CardFooter, { showButton: true, isDarkPathway: isDarkPathway, showFilledIcon: showHoverState, buttonIcon: buttonIcon, metaText: metaText })));
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
-
import { C as CardLabel, a as CardHeading } from '../_shared/esm/
|
|
5
|
-
import { C as CardFooter } from '../_shared/esm/CardFooter-
|
|
4
|
+
import { C as CardLabel, a as CardHeading } from '../_shared/esm/BtIconArrowRight.esm-9b181878.js';
|
|
5
|
+
import { C as CardFooter } from '../_shared/esm/CardFooter-a08b70ee.js';
|
|
6
6
|
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
7
7
|
import '../_shared/esm/BtIconArrowRightFill.esm-99019d1a.js';
|
|
8
8
|
import '../_shared/esm/Icon-15799695.js';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('./index-9947ac13.js');
|
|
6
|
+
require('./Surface-038db6e1.js');
|
|
7
|
+
var ConditionalWrapper = require('./ConditionalWrapper-be3b2625.js');
|
|
8
|
+
var Icon = require('./Icon-b46897a3.js');
|
|
9
|
+
var Image = require('./Image-e873b8fc.js');
|
|
10
|
+
var Heading = require('./Heading-27cba320.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
|
|
16
|
+
const BtIconUser = (props) =>
|
|
17
|
+
/*#__PURE__*/ React__default["default"].createElement(
|
|
18
|
+
"svg",
|
|
19
|
+
Object.assign(
|
|
20
|
+
{
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
viewBox: "0 0 32 32",
|
|
23
|
+
},
|
|
24
|
+
props,
|
|
25
|
+
),
|
|
26
|
+
/*#__PURE__*/ React__default["default"].createElement("defs", null),
|
|
27
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
28
|
+
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",
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
var AvatarContent = function (_a) {
|
|
34
|
+
var img = _a.img, initials = _a.initials, _b = _a.size, size = _b === void 0 ? "xl" : _b;
|
|
35
|
+
var textSize = {
|
|
36
|
+
s: "xxxs",
|
|
37
|
+
m: "xxs",
|
|
38
|
+
l: "xs",
|
|
39
|
+
xl: "s"
|
|
40
|
+
};
|
|
41
|
+
var iconSize = {
|
|
42
|
+
s: 16,
|
|
43
|
+
m: 24,
|
|
44
|
+
l: 32,
|
|
45
|
+
xl: 40
|
|
46
|
+
};
|
|
47
|
+
if (img) {
|
|
48
|
+
return React__default["default"].createElement(Image.Image, filterDataAttrs.__assign({ fit: "cover" }, img));
|
|
49
|
+
}
|
|
50
|
+
if (initials) {
|
|
51
|
+
return (React__default["default"].createElement(Heading.Heading, { size: textSize[size] }, initials.substring(0, 3).toUpperCase()));
|
|
52
|
+
}
|
|
53
|
+
return React__default["default"].createElement(Icon.Icon, { size: iconSize[size], icon: BtIconUser });
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var Avatar = function (_a) {
|
|
57
|
+
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 = filterDataAttrs.__rest(_a, ["img", "initials", "href", "title", "ariaLabel", "onClick", "size"]);
|
|
58
|
+
var wrapperAttrs = filterDataAttrs.__assign({ className: index.classNames("arc-Avatar", "arc-Avatar--".concat(size), {
|
|
59
|
+
"arc-Avatar--img": Boolean(img)
|
|
60
|
+
}) }, filterDataAttrs.filterDataAttrs(props));
|
|
61
|
+
return (React__default["default"].createElement(ConditionalWrapper.ConditionalWrapper, { condition: Boolean(href), wrapper: function (children) { return (React__default["default"].createElement("a", filterDataAttrs.__assign({ href: href, "aria-label": ariaLabel, onClick: onClick, title: title }, wrapperAttrs), children)); }, fallback: function (children) { return React__default["default"].createElement("div", filterDataAttrs.__assign({}, wrapperAttrs), children); } },
|
|
62
|
+
React__default["default"].createElement(AvatarContent, { size: size, img: img, initials: initials })));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.Avatar = Avatar;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var index = require('./index-9947ac13.js');
|
|
5
|
-
var
|
|
5
|
+
var BtIconArrowRight_esm = require('./BtIconArrowRight.esm-50d96943.js');
|
|
6
6
|
var BtIconArrowRightFill_esm = require('./BtIconArrowRightFill.esm-435cf4bd.js');
|
|
7
7
|
var Icon = require('./Icon-b46897a3.js');
|
|
8
8
|
|
|
@@ -56,7 +56,7 @@ var CardFooter = function (_a) {
|
|
|
56
56
|
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;
|
|
57
57
|
var icons = {
|
|
58
58
|
arrow: {
|
|
59
|
-
regular:
|
|
59
|
+
regular: BtIconArrowRight_esm.BtIconArrowRight,
|
|
60
60
|
filled: BtIconArrowRightFill_esm.BtIconArrowRightFill
|
|
61
61
|
},
|
|
62
62
|
play: {
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var BtIconTickAlt2Px_esm = require('./BtIconTickAlt2Px.esm-57c89acc.js');
|
|
6
6
|
var BtIconAlert_esm = require('./BtIconAlert.esm-1a0ff9f0.js');
|
|
7
7
|
var index = require('./index-9947ac13.js');
|
|
8
|
-
var FormControl = require('./FormControl-
|
|
8
|
+
var FormControl = require('./FormControl-5f3b6ce4.js');
|
|
9
9
|
var Surface = require('./Surface-038db6e1.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
8
|
+
|
|
9
|
+
var ConditionalWrapper = function (_a) {
|
|
10
|
+
var condition = _a.condition, wrapper = _a.wrapper, fallback = _a.fallback, children = _a.children;
|
|
11
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null, condition ? wrapper(children) : fallback ? fallback(children) : children));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.ConditionalWrapper = ConditionalWrapper;
|
|
@@ -80,11 +80,16 @@ var FormControl = function (_a) {
|
|
|
80
80
|
"arc-FormControl--smallLabel": labelSize === "s",
|
|
81
81
|
"arc-FormControl--onDarkSurface": surface === "dark"
|
|
82
82
|
}), id: id }, elementProps, filterDataAttrs.filterDataAttrs(props)),
|
|
83
|
-
|
|
83
|
+
hideLabel === true ? (React__default["default"].createElement(VisuallyHidden.VisuallyHidden, null,
|
|
84
|
+
React__default["default"].createElement(LabelType, filterDataAttrs.__assign({ className: index.classNames("arc-FormControl-label", {
|
|
85
|
+
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper
|
|
86
|
+
}) }, labelProps),
|
|
87
|
+
label,
|
|
88
|
+
requirementStatus === "optional" && (React__default["default"].createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))) : (React__default["default"].createElement(LabelType, filterDataAttrs.__assign({ className: index.classNames("arc-FormControl-label", {
|
|
89
|
+
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper
|
|
90
|
+
}) }, labelProps),
|
|
84
91
|
label,
|
|
85
|
-
requirementStatus === "optional" && (React__default["default"].createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))
|
|
86
|
-
label,
|
|
87
|
-
requirementStatus === "optional" && (React__default["default"].createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))),
|
|
92
|
+
requirementStatus === "optional" && (React__default["default"].createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)")))),
|
|
88
93
|
helperUnderLabel && (React__default["default"].createElement(React__default["default"].Fragment, null, helper && (React__default["default"].createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)))),
|
|
89
94
|
children,
|
|
90
95
|
React__default["default"].createElement("div", { className: index.classNames("arc-FormControl-info", {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var FormControl = require('./FormControl-
|
|
5
|
+
var FormControl = require('./FormControl-5f3b6ce4.js');
|
|
6
6
|
var index = require('./index-9947ac13.js');
|
|
7
7
|
var Surface = require('./Surface-038db6e1.js');
|
|
8
8
|
|
|
@@ -66,7 +66,8 @@ var RadioGroup = function (_a) {
|
|
|
66
66
|
size: size
|
|
67
67
|
} },
|
|
68
68
|
React__default["default"].createElement("div", filterDataAttrs.__assign({ className: "arc-RadioGroup" }, filterDataAttrs.filterDataAttrs(props)),
|
|
69
|
-
React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
69
|
+
React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
70
|
+
React__default["default"].createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
70
71
|
};
|
|
71
72
|
RadioGroup.RadioButton = RadioButton;
|
|
72
73
|
|
|
@@ -26,9 +26,9 @@ var Item = function (_a) {
|
|
|
26
26
|
_b["arc-SiteHeaderV2Item--emphasised"] = true,
|
|
27
27
|
_b)) }, filterDataAttrs.filterDataAttrs(props)),
|
|
28
28
|
React__default["default"].createElement("a", { onClick: handleLinkClick.handleLinkClick({ handler: onClick }), className: "arc-SiteHeaderV2Item-link", href: href },
|
|
29
|
+
children,
|
|
29
30
|
React__default["default"].createElement("span", { className: "arc-SiteHeaderV2Item-linkIcon" },
|
|
30
|
-
React__default["default"].createElement(BtIconChevronRightMid_esm.BtIconChevronRightMid, null))
|
|
31
|
-
children)));
|
|
31
|
+
React__default["default"].createElement(BtIconChevronRightMid_esm.BtIconChevronRightMid, null)))));
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
var ItemGroup = function (_a) {
|
|
@@ -130,6 +130,7 @@ var Panel = function (_a) {
|
|
|
130
130
|
}
|
|
131
131
|
// Close the panel.
|
|
132
132
|
setOpen(false);
|
|
133
|
+
setOpenPanelOnFirstClick(false);
|
|
133
134
|
};
|
|
134
135
|
document.addEventListener("click", handleClick);
|
|
135
136
|
return function () {
|
|
@@ -307,32 +308,15 @@ var HorizontalPanel = function (_a) {
|
|
|
307
308
|
// Where appropriate, close the Panel when clicking outside of it,
|
|
308
309
|
// by listening to clicks on the entire document and acting accordingly.
|
|
309
310
|
var handleClick = function (e) {
|
|
310
|
-
var _a
|
|
311
|
-
//
|
|
311
|
+
var _a;
|
|
312
|
+
// Close the Horizontal Panel…
|
|
312
313
|
if (
|
|
313
|
-
// The click is inside the current
|
|
314
|
-
((_a =
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
// and the target is not a link
|
|
318
|
-
(((_b = navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current) === null || _b === void 0 ? void 0 : _b.contains(e.target)) &&
|
|
319
|
-
!subNavItemRef &&
|
|
320
|
-
!e.target.getAttribute("href")) ||
|
|
321
|
-
// The Panel is inside a SubNavItem
|
|
322
|
-
// and the click is not on a SubNavItem-link.
|
|
323
|
-
// This ensures that one SubNavItem Panel per NavItem always remains open.
|
|
324
|
-
(subNavItemRef &&
|
|
325
|
-
!e.target.classList.contains(subNavLink) &&
|
|
326
|
-
!e.target.classList.contains("".concat(subNavLink, "Title")) &&
|
|
327
|
-
!e.target.classList.contains("".concat(subNavLink, "SubTitle"))) ||
|
|
328
|
-
// Panel is inside a SubNavItem
|
|
329
|
-
// and the click is not inside the Panel's NavItem parent.
|
|
330
|
-
// This prevents SubNavItem Panels in sibling NavItems from being closed.
|
|
331
|
-
(subNavItemRef && !(navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current.contains(e.target)))) {
|
|
314
|
+
// The click is not inside the current NavItem
|
|
315
|
+
!((_a = navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) ||
|
|
316
|
+
e.target.classList.contains("arc-SiteHeaderV2HorizontalPanel--open")) {
|
|
317
|
+
setOpen(false);
|
|
332
318
|
return;
|
|
333
319
|
}
|
|
334
|
-
// Close the panel.
|
|
335
|
-
setOpen(false);
|
|
336
320
|
};
|
|
337
321
|
document.addEventListener("click", handleClick);
|
|
338
322
|
return function () {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
4
|
var index = require('./index-9947ac13.js');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var FormControl = require('./FormControl-
|
|
6
|
+
var FormControl = require('./FormControl-5f3b6ce4.js');
|
|
7
7
|
var Surface = require('./Surface-038db6e1.js');
|
|
8
8
|
var VisuallyHidden = require('./VisuallyHidden-e2c8b291.js');
|
|
9
9
|
var Icon = require('./Icon-b46897a3.js');
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { a as __assign, _ as __rest, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
+
import './Surface-0ca6817d.js';
|
|
5
|
+
import { C as ConditionalWrapper } from './ConditionalWrapper-59be8f35.js';
|
|
6
|
+
import { I as Icon } from './Icon-15799695.js';
|
|
7
|
+
import { I as Image } from './Image-12fbd327.js';
|
|
8
|
+
import { H as Heading } from './Heading-d16e0e53.js';
|
|
9
|
+
|
|
10
|
+
const BtIconUser = (props) =>
|
|
11
|
+
/*#__PURE__*/ React__default.createElement(
|
|
12
|
+
"svg",
|
|
13
|
+
Object.assign(
|
|
14
|
+
{
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
viewBox: "0 0 32 32",
|
|
17
|
+
},
|
|
18
|
+
props,
|
|
19
|
+
),
|
|
20
|
+
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
21
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
22
|
+
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",
|
|
23
|
+
fill: "currentColor",
|
|
24
|
+
}),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
var AvatarContent = function (_a) {
|
|
28
|
+
var img = _a.img, initials = _a.initials, _b = _a.size, size = _b === void 0 ? "xl" : _b;
|
|
29
|
+
var textSize = {
|
|
30
|
+
s: "xxxs",
|
|
31
|
+
m: "xxs",
|
|
32
|
+
l: "xs",
|
|
33
|
+
xl: "s"
|
|
34
|
+
};
|
|
35
|
+
var iconSize = {
|
|
36
|
+
s: 16,
|
|
37
|
+
m: 24,
|
|
38
|
+
l: 32,
|
|
39
|
+
xl: 40
|
|
40
|
+
};
|
|
41
|
+
if (img) {
|
|
42
|
+
return React__default.createElement(Image, __assign({ fit: "cover" }, img));
|
|
43
|
+
}
|
|
44
|
+
if (initials) {
|
|
45
|
+
return (React__default.createElement(Heading, { size: textSize[size] }, initials.substring(0, 3).toUpperCase()));
|
|
46
|
+
}
|
|
47
|
+
return React__default.createElement(Icon, { size: iconSize[size], icon: BtIconUser });
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var Avatar = function (_a) {
|
|
51
|
+
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"]);
|
|
52
|
+
var wrapperAttrs = __assign({ className: classNames("arc-Avatar", "arc-Avatar--".concat(size), {
|
|
53
|
+
"arc-Avatar--img": Boolean(img)
|
|
54
|
+
}) }, filterDataAttrs(props));
|
|
55
|
+
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); } },
|
|
56
|
+
React__default.createElement(AvatarContent, { size: size, img: img, initials: initials })));
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { Avatar as A };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
|
-
import { B as BtIconArrowRight } from './
|
|
3
|
+
import { B as BtIconArrowRight } from './BtIconArrowRight.esm-9b181878.js';
|
|
4
4
|
import { B as BtIconArrowRightFill } from './BtIconArrowRightFill.esm-99019d1a.js';
|
|
5
5
|
import { I as Icon } from './Icon-15799695.js';
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useContext } from 'react';
|
|
|
3
3
|
import { B as BtIconTickAlt2Px } from './BtIconTickAlt2Px.esm-0bc2ded0.js';
|
|
4
4
|
import { B as BtIconAlert } from './BtIconAlert.esm-a4608d47.js';
|
|
5
5
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
6
|
-
import { C as Context, u as useAriaDescribedby } from './FormControl-
|
|
6
|
+
import { C as Context, u as useAriaDescribedby } from './FormControl-cc99cde0.js';
|
|
7
7
|
import { C as Context$1 } from './Surface-0ca6817d.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
var ConditionalWrapper = function (_a) {
|
|
4
|
+
var condition = _a.condition, wrapper = _a.wrapper, fallback = _a.fallback, children = _a.children;
|
|
5
|
+
return (React__default.createElement(React__default.Fragment, null, condition ? wrapper(children) : fallback ? fallback(children) : children));
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { ConditionalWrapper as C };
|
|
@@ -74,11 +74,16 @@ var FormControl = function (_a) {
|
|
|
74
74
|
"arc-FormControl--smallLabel": labelSize === "s",
|
|
75
75
|
"arc-FormControl--onDarkSurface": surface === "dark"
|
|
76
76
|
}), id: id }, elementProps, filterDataAttrs(props)),
|
|
77
|
-
|
|
77
|
+
hideLabel === true ? (React__default.createElement(VisuallyHidden, null,
|
|
78
|
+
React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
|
|
79
|
+
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper
|
|
80
|
+
}) }, labelProps),
|
|
81
|
+
label,
|
|
82
|
+
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))) : (React__default.createElement(LabelType, __assign({ className: classNames("arc-FormControl-label", {
|
|
83
|
+
"arc-FormControl-label--withHelperUnderLabel": helperUnderLabel && helper
|
|
84
|
+
}) }, labelProps),
|
|
78
85
|
label,
|
|
79
|
-
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))
|
|
80
|
-
label,
|
|
81
|
-
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))))),
|
|
86
|
+
requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)")))),
|
|
82
87
|
helperUnderLabel && (React__default.createElement(React__default.Fragment, null, helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)))),
|
|
83
88
|
children,
|
|
84
89
|
React__default.createElement("div", { className: classNames("arc-FormControl-info", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
2
|
import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
|
|
3
|
-
import { F as FormControl } from './FormControl-
|
|
3
|
+
import { F as FormControl } from './FormControl-cc99cde0.js';
|
|
4
4
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
5
5
|
import { C as Context } from './Surface-0ca6817d.js';
|
|
6
6
|
|
|
@@ -60,7 +60,8 @@ var RadioGroup = function (_a) {
|
|
|
60
60
|
size: size
|
|
61
61
|
} },
|
|
62
62
|
React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
|
|
63
|
-
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
63
|
+
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true },
|
|
64
|
+
React__default.createElement("span", { className: "arc-RadioGroup-radioButtonContainer" }, children)))));
|
|
64
65
|
};
|
|
65
66
|
RadioGroup.RadioButton = RadioButton;
|
|
66
67
|
|
|
@@ -20,9 +20,9 @@ var Item = function (_a) {
|
|
|
20
20
|
_b["arc-SiteHeaderV2Item--emphasised"] = true,
|
|
21
21
|
_b)) }, filterDataAttrs(props)),
|
|
22
22
|
React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteHeaderV2Item-link", href: href },
|
|
23
|
+
children,
|
|
23
24
|
React__default.createElement("span", { className: "arc-SiteHeaderV2Item-linkIcon" },
|
|
24
|
-
React__default.createElement(BtIconChevronRightMid, null))
|
|
25
|
-
children)));
|
|
25
|
+
React__default.createElement(BtIconChevronRightMid, null)))));
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
var ItemGroup = function (_a) {
|
|
@@ -124,6 +124,7 @@ var Panel = function (_a) {
|
|
|
124
124
|
}
|
|
125
125
|
// Close the panel.
|
|
126
126
|
setOpen(false);
|
|
127
|
+
setOpenPanelOnFirstClick(false);
|
|
127
128
|
};
|
|
128
129
|
document.addEventListener("click", handleClick);
|
|
129
130
|
return function () {
|
|
@@ -301,32 +302,15 @@ var HorizontalPanel = function (_a) {
|
|
|
301
302
|
// Where appropriate, close the Panel when clicking outside of it,
|
|
302
303
|
// by listening to clicks on the entire document and acting accordingly.
|
|
303
304
|
var handleClick = function (e) {
|
|
304
|
-
var _a
|
|
305
|
-
//
|
|
305
|
+
var _a;
|
|
306
|
+
// Close the Horizontal Panel…
|
|
306
307
|
if (
|
|
307
|
-
// The click is inside the current
|
|
308
|
-
((_a =
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
// and the target is not a link
|
|
312
|
-
(((_b = navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current) === null || _b === void 0 ? void 0 : _b.contains(e.target)) &&
|
|
313
|
-
!subNavItemRef &&
|
|
314
|
-
!e.target.getAttribute("href")) ||
|
|
315
|
-
// The Panel is inside a SubNavItem
|
|
316
|
-
// and the click is not on a SubNavItem-link.
|
|
317
|
-
// This ensures that one SubNavItem Panel per NavItem always remains open.
|
|
318
|
-
(subNavItemRef &&
|
|
319
|
-
!e.target.classList.contains(subNavLink) &&
|
|
320
|
-
!e.target.classList.contains("".concat(subNavLink, "Title")) &&
|
|
321
|
-
!e.target.classList.contains("".concat(subNavLink, "SubTitle"))) ||
|
|
322
|
-
// Panel is inside a SubNavItem
|
|
323
|
-
// and the click is not inside the Panel's NavItem parent.
|
|
324
|
-
// This prevents SubNavItem Panels in sibling NavItems from being closed.
|
|
325
|
-
(subNavItemRef && !(navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current.contains(e.target)))) {
|
|
308
|
+
// The click is not inside the current NavItem
|
|
309
|
+
!((_a = navItemRef === null || navItemRef === void 0 ? void 0 : navItemRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) ||
|
|
310
|
+
e.target.classList.contains("arc-SiteHeaderV2HorizontalPanel--open")) {
|
|
311
|
+
setOpen(false);
|
|
326
312
|
return;
|
|
327
313
|
}
|
|
328
|
-
// Close the panel.
|
|
329
|
-
setOpen(false);
|
|
330
314
|
};
|
|
331
315
|
document.addEventListener("click", handleClick);
|
|
332
316
|
return function () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
2
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
3
3
|
import React__default, { forwardRef, useContext, useState } from 'react';
|
|
4
|
-
import { u as useAriaDescribedby, F as FormControl } from './FormControl-
|
|
4
|
+
import { u as useAriaDescribedby, F as FormControl } from './FormControl-cc99cde0.js';
|
|
5
5
|
import { C as Context } from './Surface-0ca6817d.js';
|
|
6
6
|
import { V as VisuallyHidden } from './VisuallyHidden-b9eebf71.js';
|
|
7
7
|
import { I as Icon } from './Icon-15799695.js';
|