@arc-ui/components 10.8.1 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +4 -4
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +4 -4
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +4 -4
- package/dist/Card/Card.cjs.js +3 -3
- package/dist/Card/Card.esm.js +3 -3
- package/dist/Checkbox/Checkbox.cjs.js +32 -8
- package/dist/Checkbox/Checkbox.esm.js +34 -10
- package/dist/Disclosure/Disclosure.cjs.js +3 -0
- package/dist/Disclosure/Disclosure.esm.js +3 -0
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +1 -1
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +1 -1
- package/dist/Icon/Icon.cjs.d.ts +1 -1
- package/dist/Icon/Icon.cjs.js +2 -3
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +2 -3
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +1 -1
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.esm.js +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +5 -3
- package/dist/SiteFooter/SiteFooter.esm.js +4 -2
- package/dist/SiteHeader/SiteHeader.cjs.js +35 -13
- package/dist/SiteHeader/SiteHeader.esm.js +32 -10
- package/dist/TextInput/TextInput.cjs.d.ts +1 -1
- package/dist/TextInput/TextInput.cjs.js +1 -1
- package/dist/TextInput/TextInput.esm.d.ts +1 -1
- package/dist/TextInput/TextInput.esm.js +1 -1
- package/dist/_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js +29 -0
- package/dist/_shared/cjs/BtIconChevronRight2Px-a8e40136.js +50 -0
- package/dist/_shared/cjs/BtIconChevronRightMid-5a38d855.js +31 -0
- package/dist/_shared/cjs/{Button-1743b3ec.d.ts → Button-b3a69953.d.ts} +3 -3
- package/dist/_shared/cjs/{Button-1743b3ec.js → Button-b3a69953.js} +29 -6
- package/dist/_shared/cjs/{FormControl-7d8e10fa.d.ts → FormControl-a1b7421b.d.ts} +0 -0
- package/dist/_shared/cjs/{FormControl-7d8e10fa.js → FormControl-a1b7421b.js} +38 -5
- package/dist/_shared/cjs/{Icon-bb5a5fd1.d.ts → Icon-719d13d4.d.ts} +6 -6
- package/dist/_shared/cjs/Icon-719d13d4.js +52 -0
- package/dist/_shared/cjs/arc-icon-17594b2f.d.ts +4 -0
- package/dist/_shared/cjs/index-c81c9401.d.ts +2 -2
- package/dist/_shared/cjs/{use-media-query-75d1bbae.d.ts → index.es-77def0c9.d.ts} +0 -0
- package/dist/_shared/cjs/{use-media-query-75d1bbae.js → index.es-77def0c9.js} +9 -0
- package/dist/_shared/esm/BtIconChevronDown2Px-4abd079b.js +23 -0
- package/dist/_shared/esm/BtIconChevronRight2Px-a5cc1d05.js +43 -0
- package/dist/_shared/esm/BtIconChevronRightMid-386cf272.js +25 -0
- package/dist/_shared/esm/{Button-d59c31a2.d.ts → Button-5ff56a7b.d.ts} +3 -3
- package/dist/_shared/esm/Button-5ff56a7b.js +74 -0
- package/dist/_shared/esm/{FormControl-33194106.d.ts → FormControl-feedc495.d.ts} +0 -0
- package/dist/_shared/esm/{FormControl-33194106.js → FormControl-feedc495.js} +40 -8
- package/dist/_shared/esm/{Icon-2fd92daa.d.ts → Icon-76d0d8c0.d.ts} +6 -6
- package/dist/_shared/esm/Icon-76d0d8c0.js +46 -0
- package/dist/_shared/esm/arc-icon-17594b2f.d.ts +4 -0
- package/dist/_shared/esm/index-c81c9401.d.ts +2 -2
- package/dist/_shared/esm/{use-media-query-38faed7f.d.ts → index.es-00cb3bcb.d.ts} +0 -0
- package/dist/_shared/esm/{use-media-query-38faed7f.js → index.es-00cb3bcb.js} +8 -1
- package/dist/index.es.js +454 -528
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +311 -385
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Icon/Icon.d.ts +6 -6
- package/dist/types/types/arc-icon.d.ts +2 -0
- package/package.json +4 -3
- package/dist/_shared/cjs/Icon-bb5a5fd1.js +0 -33
- package/dist/_shared/cjs/index.es-f590caaf.js +0 -290
- package/dist/_shared/esm/Button-d59c31a2.js +0 -51
- package/dist/_shared/esm/Icon-2fd92daa.js +0 -27
- package/dist/_shared/esm/index.es-42f84e2d.js +0 -286
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var BtIconChevronRight2Px = require('../_shared/cjs/BtIconChevronRight2Px-a8e40136.js');
|
|
7
|
+
var Icon = require('../_shared/cjs/Icon-719d13d4.js');
|
|
7
8
|
var index = require('../_shared/cjs/index-78b35bc1.js');
|
|
8
9
|
var index$1 = require('../_shared/cjs/index-45bfb67b.js');
|
|
9
10
|
var handleLinkClick = require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
10
|
-
require('../_shared/cjs/index.es-f590caaf.js');
|
|
11
11
|
require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
12
12
|
require('../_shared/cjs/Surface-d6b8010e.js');
|
|
13
13
|
|
|
@@ -560,10 +560,10 @@ var BreadcrumbsItem = function (_a) {
|
|
|
560
560
|
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children;
|
|
561
561
|
return (React__default["default"].createElement("li", { className: "arc-Breadcrumbs-item" },
|
|
562
562
|
spacerIconBefore && (React__default["default"].createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px" },
|
|
563
|
-
React__default["default"].createElement(Icon.Icon, { icon:
|
|
563
|
+
React__default["default"].createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronLeft2Px_2 }))),
|
|
564
564
|
children,
|
|
565
565
|
spacerIconAfter && (React__default["default"].createElement("div", { className: "arc-Breadcrumbs-spacerIcon" },
|
|
566
|
-
React__default["default"].createElement(Icon.Icon, { icon:
|
|
566
|
+
React__default["default"].createElement(Icon.Icon, { icon: BtIconChevronRight2Px.BtIconChevronRight2Px_2 })))));
|
|
567
567
|
};
|
|
568
568
|
|
|
569
569
|
var BreadcrumbsLink = React__default["default"].forwardRef(function (_a, ref) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { B as BtIconChevronLeft2Px_2, a as BtIconChevronRight2Px_2 } from '../_shared/esm/BtIconChevronRight2Px-a5cc1d05.js';
|
|
3
|
+
import { I as Icon } from '../_shared/esm/Icon-76d0d8c0.js';
|
|
3
4
|
import { a as __assign } from '../_shared/esm/index-229fc864.js';
|
|
4
5
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
5
6
|
import { h as handleLinkClick } from '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
6
|
-
import '../_shared/esm/index.es-42f84e2d.js';
|
|
7
7
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
8
8
|
import '../_shared/esm/Surface-d515d212.js';
|
|
9
9
|
|
|
@@ -552,10 +552,10 @@ var BreadcrumbsItem = function (_a) {
|
|
|
552
552
|
var spacerIconAfter = _a.spacerIconAfter, spacerIconBefore = _a.spacerIconBefore, children = _a.children;
|
|
553
553
|
return (React.createElement("li", { className: "arc-Breadcrumbs-item" },
|
|
554
554
|
spacerIconBefore && (React.createElement("div", { className: "arc-Breadcrumbs-spacerIcon", "data-testid": "arc-chevron-left-2px" },
|
|
555
|
-
React.createElement(Icon, { icon:
|
|
555
|
+
React.createElement(Icon, { icon: BtIconChevronLeft2Px_2 }))),
|
|
556
556
|
children,
|
|
557
557
|
spacerIconAfter && (React.createElement("div", { className: "arc-Breadcrumbs-spacerIcon" },
|
|
558
|
-
React.createElement(Icon, { icon:
|
|
558
|
+
React.createElement(Icon, { icon: BtIconChevronRight2Px_2 })))));
|
|
559
559
|
};
|
|
560
560
|
|
|
561
561
|
var BreadcrumbsLink = React.forwardRef(function (_a, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Button } from "../_shared/cjs/Button-
|
|
1
|
+
export { Button } from "../_shared/cjs/Button-b3a69953";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Button = require('../_shared/cjs/Button-
|
|
5
|
+
var Button = require('../_shared/cjs/Button-b3a69953.js');
|
|
6
6
|
require('../_shared/cjs/index-78b35bc1.js');
|
|
7
|
-
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
7
|
require('react');
|
|
8
|
+
require('../_shared/cjs/BtIconChevronRightMid-5a38d855.js');
|
|
9
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
9
10
|
require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
10
|
-
require('../_shared/cjs/Icon-
|
|
11
|
-
require('../_shared/cjs/index.es-f590caaf.js');
|
|
11
|
+
require('../_shared/cjs/Icon-719d13d4.js');
|
|
12
12
|
require('../_shared/cjs/Surface-d6b8010e.js');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Button } from "../_shared/esm/Button-
|
|
1
|
+
export { Button } from "../_shared/esm/Button-5ff56a7b";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { B as Button } from '../_shared/esm/Button-
|
|
1
|
+
export { B as Button } from '../_shared/esm/Button-5ff56a7b.js';
|
|
2
2
|
import '../_shared/esm/index-229fc864.js';
|
|
3
|
-
import '../_shared/esm/index-2ae58626.js';
|
|
4
3
|
import 'react';
|
|
4
|
+
import '../_shared/esm/BtIconChevronRightMid-386cf272.js';
|
|
5
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
5
6
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
6
|
-
import '../_shared/esm/Icon-
|
|
7
|
-
import '../_shared/esm/index.es-42f84e2d.js';
|
|
7
|
+
import '../_shared/esm/Icon-76d0d8c0.js';
|
|
8
8
|
import '../_shared/esm/Surface-d515d212.js';
|
package/dist/Card/Card.cjs.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var index = require('../_shared/cjs/index-78b35bc1.js');
|
|
6
6
|
var index$1 = require('../_shared/cjs/index-45bfb67b.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var
|
|
8
|
+
var BtIconChevronRightMid = require('../_shared/cjs/BtIconChevronRightMid-5a38d855.js');
|
|
9
|
+
var Icon = require('../_shared/cjs/Icon-719d13d4.js');
|
|
9
10
|
var Image = require('../_shared/cjs/Image-fe760a06.js');
|
|
10
11
|
var Heading = require('../_shared/cjs/Heading-cc38c3ec.js');
|
|
11
12
|
var suffixModifier = require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
12
13
|
var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
|
|
13
14
|
var handleLinkClick = require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
14
|
-
require('../_shared/cjs/index.es-f590caaf.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -120,7 +120,7 @@ var CardLink = function (_a) {
|
|
|
120
120
|
}), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target }, index.filterDataAttrs(linkData)),
|
|
121
121
|
React__default["default"].createElement("span", { className: "arc-Card-linkText" }, children),
|
|
122
122
|
isButton && (React__default["default"].createElement("span", { className: "arc-Card-linkIcon" },
|
|
123
|
-
React__default["default"].createElement(Icon.Icon, {
|
|
123
|
+
React__default["default"].createElement(Icon.Icon, { testId: "cardIcon", icon: BtIconChevronRightMid.BtIconChevronRightMid_2, size: 16 })))));
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
exports.Card = Card;
|
package/dist/Card/Card.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
3
|
import React, { useState, useEffect, useContext } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { B as BtIconChevronRightMid_2 } from '../_shared/esm/BtIconChevronRightMid-386cf272.js';
|
|
5
|
+
import { I as Icon } from '../_shared/esm/Icon-76d0d8c0.js';
|
|
5
6
|
import { I as Image } from '../_shared/esm/Image-7e4948f6.js';
|
|
6
7
|
import { H as Heading } from '../_shared/esm/Heading-183be76c.js';
|
|
7
8
|
import { s as suffixModifier } from '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
8
9
|
import { C as Context, S as Surface } from '../_shared/esm/Surface-d515d212.js';
|
|
9
10
|
import { h as handleLinkClick } from '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
10
|
-
import '../_shared/esm/index.es-42f84e2d.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Detect interaction mode
|
|
@@ -112,7 +112,7 @@ var CardLink = function (_a) {
|
|
|
112
112
|
}), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target }, filterDataAttrs(linkData)),
|
|
113
113
|
React.createElement("span", { className: "arc-Card-linkText" }, children),
|
|
114
114
|
isButton && (React.createElement("span", { className: "arc-Card-linkIcon" },
|
|
115
|
-
React.createElement(Icon, {
|
|
115
|
+
React.createElement(Icon, { testId: "cardIcon", icon: BtIconChevronRightMid_2, size: 16 })))));
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
export { Card };
|
|
@@ -3,22 +3,42 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var index = require('../_shared/cjs/index-78b35bc1.js');
|
|
6
|
-
var React = require('react');
|
|
6
|
+
var React$1 = require('react');
|
|
7
|
+
var FormControl = require('../_shared/cjs/FormControl-a1b7421b.js');
|
|
7
8
|
var index$1 = require('../_shared/cjs/index-45bfb67b.js');
|
|
8
|
-
var FormControl = require('../_shared/cjs/FormControl-7d8e10fa.js');
|
|
9
9
|
var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
14
|
+
|
|
15
|
+
const React = React__default["default"];
|
|
16
|
+
const BtIconTickVariant = props =>
|
|
17
|
+
/*#__PURE__*/ React.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.createElement("defs", null),
|
|
27
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
28
|
+
d:
|
|
29
|
+
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
30
|
+
fill: "currentColor"
|
|
31
|
+
})
|
|
32
|
+
);
|
|
33
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
14
34
|
|
|
15
35
|
/**
|
|
16
36
|
* Use `Checkbox` to allow users to select individual options.
|
|
17
37
|
*/
|
|
18
|
-
var Checkbox = React.forwardRef(function (_a, ref) {
|
|
38
|
+
var Checkbox = React$1.forwardRef(function (_a, ref) {
|
|
19
39
|
var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _e = _a.size, size = _e === void 0 ? "l" : _e, value = _a.value, props = index.__rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "name", "onBlur", "onChange", "size", "value"]);
|
|
20
|
-
var requirementStatus = React.useContext(FormControl.Context).requirementStatus;
|
|
21
|
-
var surface = React.useContext(Surface.Context).surface;
|
|
40
|
+
var requirementStatus = React$1.useContext(FormControl.Context).requirementStatus;
|
|
41
|
+
var surface = React$1.useContext(Surface.Context).surface;
|
|
22
42
|
var _f = FormControl.useAriaDescribedby({
|
|
23
43
|
id: id,
|
|
24
44
|
errorMessage: errorMessage
|
|
@@ -43,12 +63,16 @@ var Checkbox = React.forwardRef(function (_a, ref) {
|
|
|
43
63
|
}) },
|
|
44
64
|
React__default["default"].createElement("label", { id: idLabel, htmlFor: id, className: "arc-Checkbox-label" },
|
|
45
65
|
React__default["default"].createElement("input", index.__assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, index.filterDataAttrs(props))),
|
|
46
|
-
React__default["default"].createElement("span", { className: "arc-Checkbox-box" }
|
|
66
|
+
React__default["default"].createElement("span", { className: "arc-Checkbox-box" },
|
|
67
|
+
React__default["default"].createElement(BtIconTickVariant_2, null)),
|
|
47
68
|
React__default["default"].createElement("span", null,
|
|
48
69
|
label,
|
|
49
70
|
!isRequired && requirementStatus !== "optional" ? (React__default["default"].createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
50
71
|
helper && React__default["default"].createElement("span", { className: "arc-Checkbox-helper" }, helper))),
|
|
51
|
-
errorMessage && (React__default["default"].createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
72
|
+
errorMessage && (React__default["default"].createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
73
|
+
React__default["default"].createElement("span", { className: "arc-Checkbox-error--icon" },
|
|
74
|
+
React__default["default"].createElement(FormControl.BtIconAlert_2, null)),
|
|
75
|
+
errorMessage))));
|
|
52
76
|
});
|
|
53
77
|
|
|
54
78
|
exports.Checkbox = Checkbox;
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
|
|
2
|
-
import React, { forwardRef, useContext } from 'react';
|
|
2
|
+
import React$1, { forwardRef, useContext } from 'react';
|
|
3
|
+
import { C as Context, u as useAriaDescribedby, B as BtIconAlert_2 } from '../_shared/esm/FormControl-feedc495.js';
|
|
3
4
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
4
|
-
import { C as Context, u as useAriaDescribedby } from '../_shared/esm/FormControl-33194106.js';
|
|
5
5
|
import { C as Context$1 } from '../_shared/esm/Surface-d515d212.js';
|
|
6
6
|
|
|
7
|
+
const React = React$1;
|
|
8
|
+
const BtIconTickVariant = props =>
|
|
9
|
+
/*#__PURE__*/ React.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.createElement("defs", null),
|
|
19
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
20
|
+
d:
|
|
21
|
+
"M13.5,21.207,9.14648,16.85352a.5.5,0,0,1,.707-.707L13.5,19.793l8.64648-8.64649a.5.5,0,0,1,.707.707Z",
|
|
22
|
+
fill: "currentColor"
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
var BtIconTickVariant_2 = BtIconTickVariant;
|
|
26
|
+
|
|
7
27
|
/**
|
|
8
28
|
* Use `Checkbox` to allow users to select individual options.
|
|
9
29
|
*/
|
|
@@ -26,21 +46,25 @@ var Checkbox = forwardRef(function (_a, ref) {
|
|
|
26
46
|
if (requirementStatus === "required") {
|
|
27
47
|
isRequired = true;
|
|
28
48
|
}
|
|
29
|
-
return (React.createElement("div", { className: classNames({
|
|
49
|
+
return (React$1.createElement("div", { className: classNames({
|
|
30
50
|
"arc-Checkbox": true,
|
|
31
51
|
"arc-Checkbox--disabled": isDisabled,
|
|
32
52
|
"arc-Checkbox--invalid": errorMessage,
|
|
33
53
|
"arc-Checkbox--small": size === "s",
|
|
34
54
|
"arc-Checkbox--onDarkSurface": surface === "dark"
|
|
35
55
|
}) },
|
|
36
|
-
React.createElement("label", { id: idLabel, htmlFor: id, className: "arc-Checkbox-label" },
|
|
37
|
-
React.createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
|
|
38
|
-
React.createElement("span", { className: "arc-Checkbox-box" }
|
|
39
|
-
|
|
56
|
+
React$1.createElement("label", { id: idLabel, htmlFor: id, className: "arc-Checkbox-label" },
|
|
57
|
+
React$1.createElement("input", __assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs(props))),
|
|
58
|
+
React$1.createElement("span", { className: "arc-Checkbox-box" },
|
|
59
|
+
React$1.createElement(BtIconTickVariant_2, null)),
|
|
60
|
+
React$1.createElement("span", null,
|
|
40
61
|
label,
|
|
41
|
-
!isRequired && requirementStatus !== "optional" ? (React.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
42
|
-
helper && React.createElement("span", { className: "arc-Checkbox-helper" }, helper))),
|
|
43
|
-
errorMessage && (React.createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
62
|
+
!isRequired && requirementStatus !== "optional" ? (React$1.createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
|
|
63
|
+
helper && React$1.createElement("span", { className: "arc-Checkbox-helper" }, helper))),
|
|
64
|
+
errorMessage && (React$1.createElement("div", { id: idError, className: "arc-Checkbox-error" },
|
|
65
|
+
React$1.createElement("span", { className: "arc-Checkbox-error--icon" },
|
|
66
|
+
React$1.createElement(BtIconAlert_2, null)),
|
|
67
|
+
errorMessage))));
|
|
44
68
|
});
|
|
45
69
|
|
|
46
70
|
export { Checkbox };
|
|
@@ -6,6 +6,7 @@ var index = require('../_shared/cjs/index-78b35bc1.js');
|
|
|
6
6
|
var index$1 = require('../_shared/cjs/index-45bfb67b.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var Heading = require('../_shared/cjs/Heading-cc38c3ec.js');
|
|
9
|
+
var BtIconChevronDown2Px = require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
9
10
|
var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
|
|
10
11
|
require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
11
12
|
|
|
@@ -26,6 +27,8 @@ var Disclosure = function (_a) {
|
|
|
26
27
|
"arc-Disclosure--onDarkSurface": surface === "dark"
|
|
27
28
|
}), open: isOpen }, index.filterDataAttrs(props)),
|
|
28
29
|
React__default["default"].createElement("summary", { className: "arc-Disclosure-summary" },
|
|
30
|
+
React__default["default"].createElement("span", { className: "arc-Disclosure-summary-icon" },
|
|
31
|
+
React__default["default"].createElement(BtIconChevronDown2Px.BtIconChevronDown2Px_2, null)),
|
|
29
32
|
React__default["default"].createElement(Heading.Heading, { level: headingLevel, size: "s" }, summary)),
|
|
30
33
|
React__default["default"].createElement("div", { className: "arc-Disclosure-details" }, children)));
|
|
31
34
|
};
|
|
@@ -2,6 +2,7 @@ import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm
|
|
|
2
2
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import { H as Heading } from '../_shared/esm/Heading-183be76c.js';
|
|
5
|
+
import { B as BtIconChevronDown2Px_2 } from '../_shared/esm/BtIconChevronDown2Px-4abd079b.js';
|
|
5
6
|
import { C as Context } from '../_shared/esm/Surface-d515d212.js';
|
|
6
7
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
7
8
|
|
|
@@ -18,6 +19,8 @@ var Disclosure = function (_a) {
|
|
|
18
19
|
"arc-Disclosure--onDarkSurface": surface === "dark"
|
|
19
20
|
}), open: isOpen }, filterDataAttrs(props)),
|
|
20
21
|
React.createElement("summary", { className: "arc-Disclosure-summary" },
|
|
22
|
+
React.createElement("span", { className: "arc-Disclosure-summary-icon" },
|
|
23
|
+
React.createElement(BtIconChevronDown2Px_2, null)),
|
|
21
24
|
React.createElement(Heading, { level: headingLevel, size: "s" }, summary)),
|
|
22
25
|
React.createElement("div", { className: "arc-Disclosure-details" }, children)));
|
|
23
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormControl, FormControlContext } from "../_shared/cjs/FormControl-
|
|
1
|
+
export { FormControl, FormControlContext } from "../_shared/cjs/FormControl-a1b7421b";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var FormControl = require('../_shared/cjs/FormControl-
|
|
5
|
+
var FormControl = require('../_shared/cjs/FormControl-a1b7421b.js');
|
|
6
6
|
require('../_shared/cjs/index-78b35bc1.js');
|
|
7
7
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
require('react');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormControl, FormControlContext } from "../_shared/esm/FormControl-
|
|
1
|
+
export { FormControl, FormControlContext } from "../_shared/esm/FormControl-feedc495";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FormControl, C as FormControlContext } from '../_shared/esm/FormControl-
|
|
1
|
+
export { F as FormControl, C as FormControlContext } from '../_shared/esm/FormControl-feedc495.js';
|
|
2
2
|
import '../_shared/esm/index-229fc864.js';
|
|
3
3
|
import '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import 'react';
|
package/dist/Icon/Icon.cjs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Icon } from "../_shared/cjs/Icon-
|
|
1
|
+
export { Icon } from "../_shared/cjs/Icon-719d13d4";
|
package/dist/Icon/Icon.cjs.js
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Icon = require('../_shared/cjs/Icon-
|
|
5
|
+
var Icon = require('../_shared/cjs/Icon-719d13d4.js');
|
|
6
6
|
require('../_shared/cjs/index-78b35bc1.js');
|
|
7
|
-
require('../_shared/cjs/index.es-f590caaf.js');
|
|
8
|
-
require('../_shared/cjs/index-45bfb67b.js');
|
|
9
7
|
require('react');
|
|
8
|
+
require('../_shared/cjs/index-45bfb67b.js');
|
|
10
9
|
require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
11
10
|
require('../_shared/cjs/Surface-d6b8010e.js');
|
|
12
11
|
|
package/dist/Icon/Icon.esm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Icon } from "../_shared/esm/Icon-
|
|
1
|
+
export { Icon } from "../_shared/esm/Icon-76d0d8c0";
|
package/dist/Icon/Icon.esm.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { I as Icon } from '../_shared/esm/Icon-
|
|
1
|
+
export { I as Icon } from '../_shared/esm/Icon-76d0d8c0.js';
|
|
2
2
|
import '../_shared/esm/index-229fc864.js';
|
|
3
|
-
import '../_shared/esm/index.es-42f84e2d.js';
|
|
4
|
-
import '../_shared/esm/index-2ae58626.js';
|
|
5
3
|
import 'react';
|
|
4
|
+
import '../_shared/esm/index-2ae58626.js';
|
|
6
5
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
7
6
|
import '../_shared/esm/Surface-d515d212.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
import { FormControlProps } from "../_shared/cjs/FormControl-
|
|
4
|
+
import { FormControlProps } from "../_shared/cjs/FormControl-a1b7421b";
|
|
5
5
|
/**
|
|
6
6
|
* Radio Button component.
|
|
7
7
|
*/
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var index = require('../_shared/cjs/index-78b35bc1.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var FormControl = require('../_shared/cjs/FormControl-
|
|
7
|
+
var FormControl = require('../_shared/cjs/FormControl-a1b7421b.js');
|
|
8
8
|
var index$1 = require('../_shared/cjs/index-45bfb67b.js');
|
|
9
9
|
var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
import { FormControlProps } from "../_shared/esm/FormControl-
|
|
4
|
+
import { FormControlProps } from "../_shared/esm/FormControl-feedc495";
|
|
5
5
|
/**
|
|
6
6
|
* Radio Button component.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
|
|
2
2
|
import React, { createContext, useContext, forwardRef, useEffect } from 'react';
|
|
3
|
-
import { F as FormControl } from '../_shared/esm/FormControl-
|
|
3
|
+
import { F as FormControl } from '../_shared/esm/FormControl-feedc495.js';
|
|
4
4
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
5
5
|
import { C as Context } from '../_shared/esm/Surface-d515d212.js';
|
|
6
6
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var index = require('../_shared/cjs/index-78b35bc1.js');
|
|
6
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-77def0c9.js');
|
|
7
|
+
var BtIconChevronDown2Px = require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
|
|
7
8
|
var React = require('react');
|
|
8
9
|
var BrandLogo = require('../_shared/cjs/BrandLogo-3c6102ef.js');
|
|
9
10
|
var Curve = require('../_shared/cjs/Curve-e72ce25b.js');
|
|
10
|
-
var useMediaQuery = require('../_shared/cjs/use-media-query-75d1bbae.js');
|
|
11
11
|
var Section = require('../_shared/cjs/Section-780f2377.js');
|
|
12
12
|
var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
|
|
13
13
|
var handleLinkClick = require('../_shared/cjs/handle-link-click-17a44cf4.js');
|
|
@@ -49,7 +49,7 @@ var SiteFooter = function (_a) {
|
|
|
49
49
|
};
|
|
50
50
|
var SiteFooterItemGroup = function (_a) {
|
|
51
51
|
var children = _a.children, title = _a.title;
|
|
52
|
-
var isMinWidthArcBreakpointM =
|
|
52
|
+
var isMinWidthArcBreakpointM = index_es.useMediaQuery("(min-width: ".concat(index_es.ArcBreakpointM, "px)"));
|
|
53
53
|
React.useEffect(function () {
|
|
54
54
|
React__default["default"].Children.map(children, function (item) {
|
|
55
55
|
if (item && item.type !== SiteFooterItem && item.type !== React.Fragment) {
|
|
@@ -59,6 +59,8 @@ var SiteFooterItemGroup = function (_a) {
|
|
|
59
59
|
}, [children]);
|
|
60
60
|
return (React__default["default"].createElement("details", { className: "arc-SiteFooter-disclosure", open: isMinWidthArcBreakpointM },
|
|
61
61
|
React__default["default"].createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
62
|
+
React__default["default"].createElement("span", { className: "arc-SiteFooter-icon" },
|
|
63
|
+
React__default["default"].createElement(BtIconChevronDown2Px.BtIconChevronDown2Px_2, null)),
|
|
62
64
|
React__default["default"].createElement("h2", { className: "arc-SiteFooter-title" }, title)),
|
|
63
65
|
React__default["default"].createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
|
|
64
66
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs, d as __awaiter, e as __generator } from '../_shared/esm/index-229fc864.js';
|
|
2
|
-
import { A as ArcBreakpointM } from '../_shared/esm/index.es-
|
|
2
|
+
import { u as useMediaQuery, A as ArcBreakpointM } from '../_shared/esm/index.es-00cb3bcb.js';
|
|
3
|
+
import { B as BtIconChevronDown2Px_2 } from '../_shared/esm/BtIconChevronDown2Px-4abd079b.js';
|
|
3
4
|
import React, { useEffect, Fragment } from 'react';
|
|
4
5
|
import { B as BrandLogo } from '../_shared/esm/BrandLogo-ea3dd0e6.js';
|
|
5
6
|
import { C as Curve } from '../_shared/esm/Curve-cfdca379.js';
|
|
6
|
-
import { u as useMediaQuery } from '../_shared/esm/use-media-query-38faed7f.js';
|
|
7
7
|
import { S as Section } from '../_shared/esm/Section-f1256c87.js';
|
|
8
8
|
import { S as Surface } from '../_shared/esm/Surface-d515d212.js';
|
|
9
9
|
import { h as handleLinkClick } from '../_shared/esm/handle-link-click-f64f55a2.js';
|
|
@@ -51,6 +51,8 @@ var SiteFooterItemGroup = function (_a) {
|
|
|
51
51
|
}, [children]);
|
|
52
52
|
return (React.createElement("details", { className: "arc-SiteFooter-disclosure", open: isMinWidthArcBreakpointM },
|
|
53
53
|
React.createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
|
|
54
|
+
React.createElement("span", { className: "arc-SiteFooter-icon" },
|
|
55
|
+
React.createElement(BtIconChevronDown2Px_2, null)),
|
|
54
56
|
React.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
|
|
55
57
|
React.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
|
|
56
58
|
};
|