@arc-ui/components 11.13.1 → 11.14.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/Box/Box.cjs.js +0 -1
- package/dist/Box/Box.esm.js +0 -1
- package/dist/InformationCard/InformationCard.cjs.js +85 -0
- package/dist/InformationCard/InformationCard.esm.js +77 -0
- package/dist/InformationCard/package.json +7 -0
- package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
- package/dist/SiteFooter/SiteFooter.esm.js +3 -3
- package/dist/SiteHeader/SiteHeader.cjs.js +2 -2
- package/dist/SiteHeader/SiteHeader.esm.js +2 -2
- package/dist/Tag/Tag.cjs.js +7 -79
- package/dist/Tag/Tag.esm.js +6 -78
- package/dist/TextArea/TextArea.cjs.js +3 -3
- package/dist/TextArea/TextArea.esm.js +3 -3
- package/dist/_shared/cjs/{SiteFooter-6381ac4a.js → SiteFooter-97c27b29.js} +1 -1
- package/dist/_shared/cjs/{SiteHeader.rehydrator-a3f07c9e.js → SiteHeader.rehydrator-af3dddef.js} +1 -1
- package/dist/_shared/cjs/Tag-42ddca45.js +84 -0
- package/dist/_shared/cjs/{index.es-77def0c9.js → index.es-26dd8c5d.js} +2 -0
- package/dist/_shared/esm/{SiteFooter-233bb926.js → SiteFooter-94316b8b.js} +1 -1
- package/dist/_shared/esm/{SiteHeader.rehydrator-8f554bfd.js → SiteHeader.rehydrator-1b507253.js} +1 -1
- package/dist/_shared/esm/Tag-92c088a9.js +78 -0
- package/dist/_shared/esm/{index.es-00cb3bcb.js → index.es-c552c0ea.js} +2 -1
- package/dist/index.es.js +159 -98
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +159 -97
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/components/InformationCard/InformationCard.d.ts +57 -0
- package/dist/types/components/InformationCard/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/styles.d.ts +1 -0
- package/package.json +1 -1
package/dist/Box/Box.cjs.js
CHANGED
|
@@ -11,7 +11,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
-
// Do equal height boxes story
|
|
15
14
|
/**
|
|
16
15
|
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
17
16
|
*/
|
package/dist/Box/Box.esm.js
CHANGED
|
@@ -3,7 +3,6 @@ import React__default from 'react';
|
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
4
|
import { S as Surface } from '../_shared/esm/Surface-0ca6817d.js';
|
|
5
5
|
|
|
6
|
-
// Do equal height boxes story
|
|
7
6
|
/**
|
|
8
7
|
* Use `Box` as a simple way to group bespoke content and interactive elements together.
|
|
9
8
|
*/
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var index_es = require('../_shared/cjs/index.es-26dd8c5d.js');
|
|
8
|
+
var Icon = require('../_shared/cjs/Icon-a9801f05.js');
|
|
9
|
+
var Tag = require('../_shared/cjs/Tag-42ddca45.js');
|
|
10
|
+
var Image = require('../_shared/cjs/Image-e873b8fc.js');
|
|
11
|
+
var Text = require('../_shared/cjs/Text-606ca3a2.js');
|
|
12
|
+
var Button = require('../_shared/cjs/Button-4fed080a.js');
|
|
13
|
+
var VerticalSpace = require('../_shared/cjs/VerticalSpace-dc53bb70.js');
|
|
14
|
+
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
15
|
+
var Surface = require('../_shared/cjs/Surface-038db6e1.js');
|
|
16
|
+
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
17
|
+
require('../_shared/cjs/BtIconChevronLeftMid.esm-0aaa6770.js');
|
|
18
|
+
require('../_shared/cjs/BtIconChevronRightMid.esm-d01ebbd4.js');
|
|
19
|
+
|
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
|
+
|
|
22
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
+
|
|
24
|
+
const BtIconArrowRight = (props) =>
|
|
25
|
+
/*#__PURE__*/ React__default["default"].createElement(
|
|
26
|
+
"svg",
|
|
27
|
+
Object.assign(
|
|
28
|
+
{
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
viewBox: "0 0 32 32",
|
|
31
|
+
},
|
|
32
|
+
props,
|
|
33
|
+
),
|
|
34
|
+
/*#__PURE__*/ React__default["default"].createElement("defs", null),
|
|
35
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
36
|
+
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",
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
}),
|
|
39
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
40
|
+
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",
|
|
41
|
+
fill: "currentColor",
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
var InformationCard = function (_a) {
|
|
46
|
+
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 = filterDataAttrs.__rest(_a, ["cardUrl", "onClick", "heading", "text", "label", "footerLogo", "button", "image", "tags", "icon", "headingLevel"]);
|
|
47
|
+
var isMinWidthArcBreakpointS = index_es.useMediaQuery("(min-width: ".concat(index_es.ArcBreakpointS, "px)"));
|
|
48
|
+
var isMinWidthArcBreakpointM = index_es.useMediaQuery("(min-width: ".concat(index_es.ArcBreakpointM, "px)"));
|
|
49
|
+
var headingSpacing = isMinWidthArcBreakpointS ? "16" : "8";
|
|
50
|
+
var assetSpacing = isMinWidthArcBreakpointM ? "24" : "20";
|
|
51
|
+
var containerSpacing = isMinWidthArcBreakpointS ? "32" : "24";
|
|
52
|
+
var HeadingElement = "h".concat(headingLevel);
|
|
53
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-InformationCard", {
|
|
54
|
+
"arc-InformationCard--interactive": cardUrl
|
|
55
|
+
}) }, filterDataAttrs.filterDataAttrs(props)),
|
|
56
|
+
React__default["default"].createElement(Surface.Surface, { growVertically: true, padding: containerSpacing, background: "white" },
|
|
57
|
+
image && (React__default["default"].createElement("div", { className: "arc-InformationCard-img" },
|
|
58
|
+
React__default["default"].createElement(Image.Image, filterDataAttrs.__assign({}, image)),
|
|
59
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: assetSpacing }))),
|
|
60
|
+
icon && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
61
|
+
React__default["default"].createElement(Icon.Icon, { testId: "information-card-icon", icon: icon, size: 96 }),
|
|
62
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: assetSpacing }))),
|
|
63
|
+
label && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
64
|
+
React__default["default"].createElement("span", { className: "arc-InformationCard-label" }, label),
|
|
65
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: headingSpacing }))),
|
|
66
|
+
React__default["default"].createElement(HeadingElement, { className: "arc-InformationCard-heading" }, cardUrl ? (React__default["default"].createElement("a", { className: "arc-InformationCard-headingLink", href: cardUrl, onClick: onClick }, heading)) : (heading)),
|
|
67
|
+
React__default["default"].createElement("div", { className: "arc-InformationCard-textContainer" }, text && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
68
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: headingSpacing }),
|
|
69
|
+
React__default["default"].createElement(Text.Text, null, text),
|
|
70
|
+
(button || tags || footerLogo) && React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" })))),
|
|
71
|
+
tags && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
72
|
+
React__default["default"].createElement("div", { className: "arc-InformationCard-tagContainer" }, tags.map(function (_a, i) {
|
|
73
|
+
var text = _a.text, tagProps = filterDataAttrs.__rest(_a, ["text"]);
|
|
74
|
+
return (React__default["default"].createElement("div", { className: "arc-InformationCard-tag", key: "information-card-tag-".concat(i) },
|
|
75
|
+
React__default["default"].createElement(Tag.Tag, filterDataAttrs.__assign({}, tagProps), text)));
|
|
76
|
+
})),
|
|
77
|
+
(button || footerLogo) && React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }))),
|
|
78
|
+
React__default["default"].createElement("div", { className: "arc-InformationCard-footer" },
|
|
79
|
+
button && !cardUrl && (React__default["default"].createElement("div", { className: "arc-InformationCard-footerButtonContainer" },
|
|
80
|
+
React__default["default"].createElement(Button.Button, filterDataAttrs.__assign({}, button, { iconPosition: "beforeText", fill: "flat", icon: BtIconArrowRight })))),
|
|
81
|
+
footerLogo && (React__default["default"].createElement("div", { className: "arc-InformationCard-footerLogoContainer" },
|
|
82
|
+
React__default["default"].createElement(Image.Image, filterDataAttrs.__assign({}, footerLogo))))))));
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.InformationCard = InformationCard;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { u as useMediaQuery, A as ArcBreakpointS, a as ArcBreakpointM } from '../_shared/esm/index.es-c552c0ea.js';
|
|
4
|
+
import { I as Icon } from '../_shared/esm/Icon-abd0d990.js';
|
|
5
|
+
import { T as Tag } from '../_shared/esm/Tag-92c088a9.js';
|
|
6
|
+
import { I as Image } from '../_shared/esm/Image-12fbd327.js';
|
|
7
|
+
import { T as Text } from '../_shared/esm/Text-14f586ac.js';
|
|
8
|
+
import { B as Button } from '../_shared/esm/Button-a453e8e4.js';
|
|
9
|
+
import { V as VerticalSpace } from '../_shared/esm/VerticalSpace-43cd9138.js';
|
|
10
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
11
|
+
import { S as Surface } from '../_shared/esm/Surface-0ca6817d.js';
|
|
12
|
+
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
13
|
+
import '../_shared/esm/BtIconChevronLeftMid.esm-1ed8330b.js';
|
|
14
|
+
import '../_shared/esm/BtIconChevronRightMid.esm-32268f1a.js';
|
|
15
|
+
|
|
16
|
+
const BtIconArrowRight = (props) =>
|
|
17
|
+
/*#__PURE__*/ React__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.createElement("defs", null),
|
|
27
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
28
|
+
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",
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
}),
|
|
31
|
+
/*#__PURE__*/ React__default.createElement("path", {
|
|
32
|
+
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",
|
|
33
|
+
fill: "currentColor",
|
|
34
|
+
}),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
var InformationCard = function (_a) {
|
|
38
|
+
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"]);
|
|
39
|
+
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcBreakpointS, "px)"));
|
|
40
|
+
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcBreakpointM, "px)"));
|
|
41
|
+
var headingSpacing = isMinWidthArcBreakpointS ? "16" : "8";
|
|
42
|
+
var assetSpacing = isMinWidthArcBreakpointM ? "24" : "20";
|
|
43
|
+
var containerSpacing = isMinWidthArcBreakpointS ? "32" : "24";
|
|
44
|
+
var HeadingElement = "h".concat(headingLevel);
|
|
45
|
+
return (React__default.createElement("div", __assign({ className: classNames("arc-InformationCard", {
|
|
46
|
+
"arc-InformationCard--interactive": cardUrl
|
|
47
|
+
}) }, filterDataAttrs(props)),
|
|
48
|
+
React__default.createElement(Surface, { growVertically: true, padding: containerSpacing, background: "white" },
|
|
49
|
+
image && (React__default.createElement("div", { className: "arc-InformationCard-img" },
|
|
50
|
+
React__default.createElement(Image, __assign({}, image)),
|
|
51
|
+
React__default.createElement(VerticalSpace, { size: assetSpacing }))),
|
|
52
|
+
icon && (React__default.createElement(React__default.Fragment, null,
|
|
53
|
+
React__default.createElement(Icon, { testId: "information-card-icon", icon: icon, size: 96 }),
|
|
54
|
+
React__default.createElement(VerticalSpace, { size: assetSpacing }))),
|
|
55
|
+
label && (React__default.createElement(React__default.Fragment, null,
|
|
56
|
+
React__default.createElement("span", { className: "arc-InformationCard-label" }, label),
|
|
57
|
+
React__default.createElement(VerticalSpace, { size: headingSpacing }))),
|
|
58
|
+
React__default.createElement(HeadingElement, { className: "arc-InformationCard-heading" }, cardUrl ? (React__default.createElement("a", { className: "arc-InformationCard-headingLink", href: cardUrl, onClick: onClick }, heading)) : (heading)),
|
|
59
|
+
React__default.createElement("div", { className: "arc-InformationCard-textContainer" }, text && (React__default.createElement(React__default.Fragment, null,
|
|
60
|
+
React__default.createElement(VerticalSpace, { size: headingSpacing }),
|
|
61
|
+
React__default.createElement(Text, null, text),
|
|
62
|
+
(button || tags || footerLogo) && React__default.createElement(VerticalSpace, { size: "24" })))),
|
|
63
|
+
tags && (React__default.createElement(React__default.Fragment, null,
|
|
64
|
+
React__default.createElement("div", { className: "arc-InformationCard-tagContainer" }, tags.map(function (_a, i) {
|
|
65
|
+
var text = _a.text, tagProps = __rest(_a, ["text"]);
|
|
66
|
+
return (React__default.createElement("div", { className: "arc-InformationCard-tag", key: "information-card-tag-".concat(i) },
|
|
67
|
+
React__default.createElement(Tag, __assign({}, tagProps), text)));
|
|
68
|
+
})),
|
|
69
|
+
(button || footerLogo) && React__default.createElement(VerticalSpace, { size: "24" }))),
|
|
70
|
+
React__default.createElement("div", { className: "arc-InformationCard-footer" },
|
|
71
|
+
button && !cardUrl && (React__default.createElement("div", { className: "arc-InformationCard-footerButtonContainer" },
|
|
72
|
+
React__default.createElement(Button, __assign({}, button, { iconPosition: "beforeText", fill: "flat", icon: BtIconArrowRight })))),
|
|
73
|
+
footerLogo && (React__default.createElement("div", { className: "arc-InformationCard-footerLogoContainer" },
|
|
74
|
+
React__default.createElement(Image, __assign({}, footerLogo))))))));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export { InformationCard };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var SiteFooter = require('../_shared/cjs/SiteFooter-
|
|
5
|
+
var SiteFooter = require('../_shared/cjs/SiteFooter-97c27b29.js');
|
|
6
6
|
var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
require('../_shared/cjs/index.es-
|
|
8
|
+
require('../_shared/cjs/index.es-26dd8c5d.js');
|
|
9
9
|
require('../_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js');
|
|
10
10
|
require('../_shared/cjs/BrandLogo-aea340c8.js');
|
|
11
11
|
require('../_shared/cjs/index-9947ac13.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as SiteFooter } from '../_shared/esm/SiteFooter-
|
|
2
|
-
export { S as SiteFooter } from '../_shared/esm/SiteFooter-
|
|
1
|
+
import { S as SiteFooter } from '../_shared/esm/SiteFooter-94316b8b.js';
|
|
2
|
+
export { S as SiteFooter } from '../_shared/esm/SiteFooter-94316b8b.js';
|
|
3
3
|
import { d as __awaiter, e as __generator, a as __assign } from '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
-
import '../_shared/esm/index.es-
|
|
5
|
+
import '../_shared/esm/index.es-c552c0ea.js';
|
|
6
6
|
import '../_shared/esm/BtIconChevronDown2Px.esm-217276c2.js';
|
|
7
7
|
import '../_shared/esm/BrandLogo-1af78f76.js';
|
|
8
8
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var SiteHeader_rehydrator = require('../_shared/cjs/SiteHeader.rehydrator-
|
|
5
|
+
var SiteHeader_rehydrator = require('../_shared/cjs/SiteHeader.rehydrator-af3dddef.js');
|
|
6
6
|
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('../_shared/cjs/index-9947ac13.js');
|
|
9
|
-
require('../_shared/cjs/index.es-
|
|
9
|
+
require('../_shared/cjs/index.es-26dd8c5d.js');
|
|
10
10
|
require('../_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js');
|
|
11
11
|
require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
12
12
|
require('../_shared/cjs/BtIconChevronRight2Px.esm-dbf8cbee.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { S as SiteHeader, a as SiteHeaderRehydrator } from '../_shared/esm/SiteHeader.rehydrator-
|
|
1
|
+
export { S as SiteHeader, a as SiteHeaderRehydrator } from '../_shared/esm/SiteHeader.rehydrator-1b507253.js';
|
|
2
2
|
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
-
import '../_shared/esm/index.es-
|
|
5
|
+
import '../_shared/esm/index.es-c552c0ea.js';
|
|
6
6
|
import '../_shared/esm/BtIconChevronDown2Px.esm-217276c2.js';
|
|
7
7
|
import '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
8
8
|
import '../_shared/esm/BtIconChevronRight2Px.esm-75e92636.js';
|
package/dist/Tag/Tag.cjs.js
CHANGED
|
@@ -2,86 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
var Tag = require('../_shared/cjs/Tag-42ddca45.js');
|
|
6
|
+
require('../_shared/cjs/filter-data-attrs-1c9a530c.js');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../_shared/cjs/index-9947ac13.js');
|
|
9
|
+
require('../_shared/cjs/Surface-038db6e1.js');
|
|
10
|
+
require('../_shared/cjs/Icon-a9801f05.js');
|
|
10
11
|
require('../_shared/cjs/suffix-modifier-64dcd338.js');
|
|
11
12
|
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
14
|
|
|
16
|
-
|
|
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: "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",
|
|
29
|
-
fill: "currentColor",
|
|
30
|
-
}),
|
|
31
|
-
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
32
|
-
d: "M20.85352,11.14648a.49983.49983,0,0,0-.707,0L16,15.293l-4.14648-4.14649a.5.5,0,0,0-.707.707L15.293,16l-4.14649,4.14648a.5.5,0,1,0,.707.707L16,16.707l4.14648,4.14649a.5.5,0,0,0,.707-.707L16.707,16l4.14649-4.14648A.49983.49983,0,0,0,20.85352,11.14648Z",
|
|
33
|
-
fill: "currentColor",
|
|
34
|
-
}),
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const BtIconCrossFill = (props) =>
|
|
38
|
-
/*#__PURE__*/ React__default["default"].createElement(
|
|
39
|
-
"svg",
|
|
40
|
-
Object.assign(
|
|
41
|
-
{
|
|
42
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
-
viewBox: "0 0 32 32",
|
|
44
|
-
},
|
|
45
|
-
props,
|
|
46
|
-
),
|
|
47
|
-
/*#__PURE__*/ React__default["default"].createElement("defs", null),
|
|
48
|
-
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
49
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.85352,18.14648a.5.5,0,1,1-.707.707L16,16.707l-4.14648,4.14649a.5.5,0,0,1-.707-.707L15.293,16l-4.14649-4.14648a.5.5,0,0,1,.707-.707L16,15.293l4.14648-4.14649a.5.5,0,0,1,.707.707L16.707,16Z",
|
|
50
|
-
fill: "currentColor",
|
|
51
|
-
}),
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* use `Tag` to promote features and manage filtering.
|
|
56
|
-
*/
|
|
57
|
-
var Tag = function (_a) {
|
|
58
|
-
var children = _a.children, isRemovable = _a.isRemovable, link = _a.link, icon = _a.icon, onClick = _a.onClick, onRemove = _a.onRemove, props = filterDataAttrs.__rest(_a, ["children", "isRemovable", "link", "icon", "onClick", "onRemove"]);
|
|
59
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
60
|
-
var _b = React.useState(false), isRemoved = _b[0], setIsRemoved = _b[1];
|
|
61
|
-
var onRemoveHandler = function () {
|
|
62
|
-
setIsRemoved(function (p) { return !p; });
|
|
63
|
-
onRemove && onRemove();
|
|
64
|
-
};
|
|
65
|
-
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-Tag", {
|
|
66
|
-
"arc-Tag--onDarkSurface": surface === "dark",
|
|
67
|
-
"arc-Tag--isRemovable": isRemovable,
|
|
68
|
-
"arc-Tag--hasIcon": icon,
|
|
69
|
-
"arc-Tag--hasLink": link || onClick,
|
|
70
|
-
"arc-Tag--removed": isRemoved
|
|
71
|
-
}) }, (isRemoved && { "aria-hidden": true }), filterDataAttrs.filterDataAttrs(props)),
|
|
72
|
-
link ? (React__default["default"].createElement("a", { className: "arc-Tag-content", href: link, tabIndex: 0 },
|
|
73
|
-
icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
|
|
74
|
-
React__default["default"].createElement(Icon.Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
75
|
-
React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))) : (React__default["default"].createElement(React__default["default"].Fragment, null, onClick ? (React__default["default"].createElement("button", { className: "arc-Tag-content", onClick: onClick, "data-testid": "arc-Tag-content" },
|
|
76
|
-
icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
|
|
77
|
-
React__default["default"].createElement(Icon.Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
78
|
-
React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))) : (React__default["default"].createElement("div", { className: "arc-Tag-content", "data-testid": "arc-Tag-content" },
|
|
79
|
-
icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
|
|
80
|
-
React__default["default"].createElement(Icon.Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
81
|
-
React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))))),
|
|
82
|
-
isRemovable && (React__default["default"].createElement("button", { className: "arc-Tag-icon arc-Tag-icon--removable", onClick: onRemoveHandler, "data-testid": "arc-Tag-icon-removable", "aria-live": "polite", "aria-roledescription": "remove tag" },
|
|
83
|
-
React__default["default"].createElement(Icon.Icon, { icon: BtIconCross, color: "brand", size: 20 }),
|
|
84
|
-
React__default["default"].createElement(Icon.Icon, { icon: BtIconCrossFill, color: "brand", size: 20 })))));
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
exports.Tag = Tag;
|
|
15
|
+
exports.Tag = Tag.Tag;
|
package/dist/Tag/Tag.esm.js
CHANGED
|
@@ -1,79 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
export { T as Tag } from '../_shared/esm/Tag-92c088a9.js';
|
|
2
|
+
import '../_shared/esm/filter-data-attrs-ea8f4ed4.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/index-2e73c2e9.js';
|
|
5
|
+
import '../_shared/esm/Surface-0ca6817d.js';
|
|
6
|
+
import '../_shared/esm/Icon-abd0d990.js';
|
|
6
7
|
import '../_shared/esm/suffix-modifier-3d548e45.js';
|
|
7
|
-
|
|
8
|
-
const BtIconCross = (props) =>
|
|
9
|
-
/*#__PURE__*/ React__default.createElement(
|
|
10
|
-
"svg",
|
|
11
|
-
Object.assign(
|
|
12
|
-
{
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
viewBox: "0 0 32 32",
|
|
15
|
-
},
|
|
16
|
-
props,
|
|
17
|
-
),
|
|
18
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
19
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
20
|
-
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",
|
|
21
|
-
fill: "currentColor",
|
|
22
|
-
}),
|
|
23
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
24
|
-
d: "M20.85352,11.14648a.49983.49983,0,0,0-.707,0L16,15.293l-4.14648-4.14649a.5.5,0,0,0-.707.707L15.293,16l-4.14649,4.14648a.5.5,0,1,0,.707.707L16,16.707l4.14648,4.14649a.5.5,0,0,0,.707-.707L16.707,16l4.14649-4.14648A.49983.49983,0,0,0,20.85352,11.14648Z",
|
|
25
|
-
fill: "currentColor",
|
|
26
|
-
}),
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
const BtIconCrossFill = (props) =>
|
|
30
|
-
/*#__PURE__*/ React__default.createElement(
|
|
31
|
-
"svg",
|
|
32
|
-
Object.assign(
|
|
33
|
-
{
|
|
34
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
-
viewBox: "0 0 32 32",
|
|
36
|
-
},
|
|
37
|
-
props,
|
|
38
|
-
),
|
|
39
|
-
/*#__PURE__*/ React__default.createElement("defs", null),
|
|
40
|
-
/*#__PURE__*/ React__default.createElement("path", {
|
|
41
|
-
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.85352,18.14648a.5.5,0,1,1-.707.707L16,16.707l-4.14648,4.14649a.5.5,0,0,1-.707-.707L15.293,16l-4.14649-4.14648a.5.5,0,0,1,.707-.707L16,15.293l4.14648-4.14649a.5.5,0,0,1,.707.707L16.707,16Z",
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
}),
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* use `Tag` to promote features and manage filtering.
|
|
48
|
-
*/
|
|
49
|
-
var Tag = function (_a) {
|
|
50
|
-
var children = _a.children, isRemovable = _a.isRemovable, link = _a.link, icon = _a.icon, onClick = _a.onClick, onRemove = _a.onRemove, props = __rest(_a, ["children", "isRemovable", "link", "icon", "onClick", "onRemove"]);
|
|
51
|
-
var surface = useContext(Context).surface;
|
|
52
|
-
var _b = useState(false), isRemoved = _b[0], setIsRemoved = _b[1];
|
|
53
|
-
var onRemoveHandler = function () {
|
|
54
|
-
setIsRemoved(function (p) { return !p; });
|
|
55
|
-
onRemove && onRemove();
|
|
56
|
-
};
|
|
57
|
-
return (React__default.createElement("div", __assign({ className: classNames("arc-Tag", {
|
|
58
|
-
"arc-Tag--onDarkSurface": surface === "dark",
|
|
59
|
-
"arc-Tag--isRemovable": isRemovable,
|
|
60
|
-
"arc-Tag--hasIcon": icon,
|
|
61
|
-
"arc-Tag--hasLink": link || onClick,
|
|
62
|
-
"arc-Tag--removed": isRemoved
|
|
63
|
-
}) }, (isRemoved && { "aria-hidden": true }), filterDataAttrs(props)),
|
|
64
|
-
link ? (React__default.createElement("a", { className: "arc-Tag-content", href: link, tabIndex: 0 },
|
|
65
|
-
icon && (React__default.createElement("span", { className: "arc-Tag-icon" },
|
|
66
|
-
React__default.createElement(Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
67
|
-
React__default.createElement("div", { className: "arc-Tag-label" }, children))) : (React__default.createElement(React__default.Fragment, null, onClick ? (React__default.createElement("button", { className: "arc-Tag-content", onClick: onClick, "data-testid": "arc-Tag-content" },
|
|
68
|
-
icon && (React__default.createElement("span", { className: "arc-Tag-icon" },
|
|
69
|
-
React__default.createElement(Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
70
|
-
React__default.createElement("div", { className: "arc-Tag-label" }, children))) : (React__default.createElement("div", { className: "arc-Tag-content", "data-testid": "arc-Tag-content" },
|
|
71
|
-
icon && (React__default.createElement("span", { className: "arc-Tag-icon" },
|
|
72
|
-
React__default.createElement(Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
73
|
-
React__default.createElement("div", { className: "arc-Tag-label" }, children))))),
|
|
74
|
-
isRemovable && (React__default.createElement("button", { className: "arc-Tag-icon arc-Tag-icon--removable", onClick: onRemoveHandler, "data-testid": "arc-Tag-icon-removable", "aria-live": "polite", "aria-roledescription": "remove tag" },
|
|
75
|
-
React__default.createElement(Icon, { icon: BtIconCross, color: "brand", size: 20 }),
|
|
76
|
-
React__default.createElement(Icon, { icon: BtIconCrossFill, color: "brand", size: 20 })))));
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export { Tag };
|
|
@@ -22,8 +22,8 @@ require('../_shared/cjs/Poster-9b48fd61.js');
|
|
|
22
22
|
require('../_shared/cjs/ProgressStepper-9cdc0afe.js');
|
|
23
23
|
require('../_shared/cjs/RadioGroup-56e3b0e5.js');
|
|
24
24
|
require('../_shared/cjs/debounce-123468fb.js');
|
|
25
|
-
require('../_shared/cjs/SiteFooter-
|
|
26
|
-
require('../_shared/cjs/SiteHeader.rehydrator-
|
|
25
|
+
require('../_shared/cjs/SiteFooter-97c27b29.js');
|
|
26
|
+
require('../_shared/cjs/SiteHeader.rehydrator-af3dddef.js');
|
|
27
27
|
require('../_shared/cjs/Tabs-2d2a517d.js');
|
|
28
28
|
require('../_shared/cjs/TextInput-bf1fe052.js');
|
|
29
29
|
require('../_shared/cjs/Toast-69108261.js');
|
|
@@ -40,7 +40,7 @@ require('../_shared/cjs/DisclosureMini-d0eeb6bb.js');
|
|
|
40
40
|
require('../_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js');
|
|
41
41
|
require('../_shared/cjs/VerticalSpace-dc53bb70.js');
|
|
42
42
|
require('../_shared/cjs/VisuallyHidden-e2c8b291.js');
|
|
43
|
-
require('../_shared/cjs/index.es-
|
|
43
|
+
require('../_shared/cjs/index.es-26dd8c5d.js');
|
|
44
44
|
require('../_shared/cjs/BrandLogo-aea340c8.js');
|
|
45
45
|
require('../_shared/cjs/Curve-d038052b.js');
|
|
46
46
|
require('../_shared/cjs/Section-59804166.js');
|
|
@@ -18,8 +18,8 @@ import '../_shared/esm/Poster-4ec2f679.js';
|
|
|
18
18
|
import '../_shared/esm/ProgressStepper-f51f86c3.js';
|
|
19
19
|
import '../_shared/esm/RadioGroup-c838764c.js';
|
|
20
20
|
import '../_shared/esm/debounce-6fed6b84.js';
|
|
21
|
-
import '../_shared/esm/SiteFooter-
|
|
22
|
-
import '../_shared/esm/SiteHeader.rehydrator-
|
|
21
|
+
import '../_shared/esm/SiteFooter-94316b8b.js';
|
|
22
|
+
import '../_shared/esm/SiteHeader.rehydrator-1b507253.js';
|
|
23
23
|
import '../_shared/esm/Tabs-f903187a.js';
|
|
24
24
|
import '../_shared/esm/TextInput-991804b6.js';
|
|
25
25
|
import '../_shared/esm/Toast-37549e68.js';
|
|
@@ -36,7 +36,7 @@ import '../_shared/esm/DisclosureMini-ec17b008.js';
|
|
|
36
36
|
import '../_shared/esm/BtIconChevronDown2Px.esm-217276c2.js';
|
|
37
37
|
import '../_shared/esm/VerticalSpace-43cd9138.js';
|
|
38
38
|
import '../_shared/esm/VisuallyHidden-b9eebf71.js';
|
|
39
|
-
import '../_shared/esm/index.es-
|
|
39
|
+
import '../_shared/esm/index.es-c552c0ea.js';
|
|
40
40
|
import '../_shared/esm/BrandLogo-1af78f76.js';
|
|
41
41
|
import '../_shared/esm/Curve-d8679dde.js';
|
|
42
42
|
import '../_shared/esm/Section-73781b56.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
|
-
var index_es = require('./index.es-
|
|
4
|
+
var index_es = require('./index.es-26dd8c5d.js');
|
|
5
5
|
var BtIconChevronDown2Px_esm = require('./BtIconChevronDown2Px.esm-39030ee0.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BrandLogo = require('./BrandLogo-aea340c8.js');
|
package/dist/_shared/cjs/{SiteHeader.rehydrator-a3f07c9e.js → SiteHeader.rehydrator-af3dddef.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var filterDataAttrs = require('./filter-data-attrs-1c9a530c.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-9947ac13.js');
|
|
6
|
-
var index_es = require('./index.es-
|
|
6
|
+
var index_es = require('./index.es-26dd8c5d.js');
|
|
7
7
|
var BtIconChevronDown2Px_esm = require('./BtIconChevronDown2Px.esm-39030ee0.js');
|
|
8
8
|
var handleLinkClick = require('./handle-link-click-17a44cf4.js');
|
|
9
9
|
var BtIconChevronRight2Px_esm = require('./BtIconChevronRight2Px.esm-dbf8cbee.js');
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
var Surface = require('./Surface-038db6e1.js');
|
|
7
|
+
var Icon = require('./Icon-a9801f05.js');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
|
|
13
|
+
const BtIconCross = (props) =>
|
|
14
|
+
/*#__PURE__*/ React__default["default"].createElement(
|
|
15
|
+
"svg",
|
|
16
|
+
Object.assign(
|
|
17
|
+
{
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
viewBox: "0 0 32 32",
|
|
20
|
+
},
|
|
21
|
+
props,
|
|
22
|
+
),
|
|
23
|
+
/*#__PURE__*/ React__default["default"].createElement("defs", null),
|
|
24
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
25
|
+
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",
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
}),
|
|
28
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
29
|
+
d: "M20.85352,11.14648a.49983.49983,0,0,0-.707,0L16,15.293l-4.14648-4.14649a.5.5,0,0,0-.707.707L15.293,16l-4.14649,4.14648a.5.5,0,1,0,.707.707L16,16.707l4.14648,4.14649a.5.5,0,0,0,.707-.707L16.707,16l4.14649-4.14648A.49983.49983,0,0,0,20.85352,11.14648Z",
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
}),
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const BtIconCrossFill = (props) =>
|
|
35
|
+
/*#__PURE__*/ React__default["default"].createElement(
|
|
36
|
+
"svg",
|
|
37
|
+
Object.assign(
|
|
38
|
+
{
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
+
viewBox: "0 0 32 32",
|
|
41
|
+
},
|
|
42
|
+
props,
|
|
43
|
+
),
|
|
44
|
+
/*#__PURE__*/ React__default["default"].createElement("defs", null),
|
|
45
|
+
/*#__PURE__*/ React__default["default"].createElement("path", {
|
|
46
|
+
d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.85352,18.14648a.5.5,0,1,1-.707.707L16,16.707l-4.14648,4.14649a.5.5,0,0,1-.707-.707L15.293,16l-4.14649-4.14648a.5.5,0,0,1,.707-.707L16,15.293l4.14648-4.14649a.5.5,0,0,1,.707.707L16.707,16Z",
|
|
47
|
+
fill: "currentColor",
|
|
48
|
+
}),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* use `Tag` to promote features and manage filtering.
|
|
53
|
+
*/
|
|
54
|
+
var Tag = function (_a) {
|
|
55
|
+
var children = _a.children, isRemovable = _a.isRemovable, link = _a.link, icon = _a.icon, onClick = _a.onClick, onRemove = _a.onRemove, props = filterDataAttrs.__rest(_a, ["children", "isRemovable", "link", "icon", "onClick", "onRemove"]);
|
|
56
|
+
var surface = React.useContext(Surface.Context).surface;
|
|
57
|
+
var _b = React.useState(false), isRemoved = _b[0], setIsRemoved = _b[1];
|
|
58
|
+
var onRemoveHandler = function () {
|
|
59
|
+
setIsRemoved(function (p) { return !p; });
|
|
60
|
+
onRemove && onRemove();
|
|
61
|
+
};
|
|
62
|
+
return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames("arc-Tag", {
|
|
63
|
+
"arc-Tag--onDarkSurface": surface === "dark",
|
|
64
|
+
"arc-Tag--isRemovable": isRemovable,
|
|
65
|
+
"arc-Tag--hasIcon": icon,
|
|
66
|
+
"arc-Tag--hasLink": link || onClick,
|
|
67
|
+
"arc-Tag--removed": isRemoved
|
|
68
|
+
}) }, (isRemoved && { "aria-hidden": true }), filterDataAttrs.filterDataAttrs(props)),
|
|
69
|
+
link ? (React__default["default"].createElement("a", { className: "arc-Tag-content", href: link, tabIndex: 0 },
|
|
70
|
+
icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
|
|
71
|
+
React__default["default"].createElement(Icon.Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
72
|
+
React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))) : (React__default["default"].createElement(React__default["default"].Fragment, null, onClick ? (React__default["default"].createElement("button", { className: "arc-Tag-content", onClick: onClick, "data-testid": "arc-Tag-content" },
|
|
73
|
+
icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
|
|
74
|
+
React__default["default"].createElement(Icon.Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
75
|
+
React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))) : (React__default["default"].createElement("div", { className: "arc-Tag-content", "data-testid": "arc-Tag-content" },
|
|
76
|
+
icon && (React__default["default"].createElement("span", { className: "arc-Tag-icon" },
|
|
77
|
+
React__default["default"].createElement(Icon.Icon, { "data-testid": "arc-Tag-icon", icon: icon, size: 16 }))),
|
|
78
|
+
React__default["default"].createElement("div", { className: "arc-Tag-label" }, children))))),
|
|
79
|
+
isRemovable && (React__default["default"].createElement("button", { className: "arc-Tag-icon arc-Tag-icon--removable", onClick: onRemoveHandler, "data-testid": "arc-Tag-icon-removable", "aria-live": "polite", "aria-roledescription": "remove tag" },
|
|
80
|
+
React__default["default"].createElement(Icon.Icon, { icon: BtIconCross, color: "brand", size: 20 }),
|
|
81
|
+
React__default["default"].createElement(Icon.Icon, { icon: BtIconCrossFill, color: "brand", size: 20 })))));
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
exports.Tag = Tag;
|
|
@@ -42,9 +42,11 @@ var useMediaQuery = function (mediaQuery) {
|
|
|
42
42
|
* Do not edit directly
|
|
43
43
|
* Generated file
|
|
44
44
|
*/
|
|
45
|
+
var ArcBreakpointS = 636;
|
|
45
46
|
var ArcBreakpointM = 768;
|
|
46
47
|
var ArcBreakpointL = 1024;
|
|
47
48
|
|
|
48
49
|
exports.ArcBreakpointL = ArcBreakpointL;
|
|
49
50
|
exports.ArcBreakpointM = ArcBreakpointM;
|
|
51
|
+
exports.ArcBreakpointS = ArcBreakpointS;
|
|
50
52
|
exports.useMediaQuery = useMediaQuery;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
|
-
import { u as useMediaQuery,
|
|
2
|
+
import { u as useMediaQuery, a as ArcBreakpointM } from './index.es-c552c0ea.js';
|
|
3
3
|
import { B as BtIconChevronDown2Px } from './BtIconChevronDown2Px.esm-217276c2.js';
|
|
4
4
|
import React__default, { useEffect, Fragment } from 'react';
|
|
5
5
|
import { B as BrandLogo } from './BrandLogo-1af78f76.js';
|
package/dist/_shared/esm/{SiteHeader.rehydrator-8f554bfd.js → SiteHeader.rehydrator-1b507253.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs, d as __awaiter, e as __generator } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
2
|
import React__default, { useState, useEffect, Fragment, useContext, useRef, createContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-2e73c2e9.js';
|
|
4
|
-
import { u as useMediaQuery,
|
|
4
|
+
import { u as useMediaQuery, b as ArcBreakpointL } from './index.es-c552c0ea.js';
|
|
5
5
|
import { B as BtIconChevronDown2Px } from './BtIconChevronDown2Px.esm-217276c2.js';
|
|
6
6
|
import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
|
|
7
7
|
import { a as BtIconChevronRight2Px, B as BtIconChevronLeft2Px } from './BtIconChevronRight2Px.esm-75e92636.js';
|