@arc-ui/components 11.0.0 → 11.1.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/Align/Align.esm.js +4 -4
- package/dist/Badge/Badge.cjs.d.ts +26 -0
- package/dist/Badge/Badge.cjs.js +37 -0
- package/dist/Badge/Badge.esm.d.ts +26 -0
- package/dist/Badge/Badge.esm.js +29 -0
- package/dist/Badge/package.json +7 -0
- package/dist/Base/Base.cjs.d.ts +1 -16
- package/dist/Base/Base.cjs.js +4 -16
- package/dist/Base/Base.esm.d.ts +1 -16
- package/dist/Base/Base.esm.js +3 -15
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.esm.js +2 -2
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +27 -27
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +4 -4
- package/dist/Card/Card.esm.js +27 -27
- package/dist/Checkbox/Checkbox.cjs.js +4 -1
- package/dist/Checkbox/Checkbox.esm.js +18 -15
- package/dist/Clock/Clock.esm.js +3 -3
- package/dist/Columns/Columns.esm.js +5 -5
- package/dist/Curve/Curve.esm.d.ts +1 -1
- package/dist/Curve/Curve.esm.js +1 -1
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +10 -10
- package/dist/Elevation/Elevation.esm.js +2 -2
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +4 -1
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +5 -2
- package/dist/Group/Group.esm.js +6 -6
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +2 -2
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +2 -2
- package/dist/Image/Image.esm.d.ts +1 -1
- package/dist/Image/Image.esm.js +1 -1
- package/dist/Markup/Markup.esm.js +3 -3
- package/dist/Poster/Poster.esm.d.ts +1 -1
- package/dist/Poster/Poster.esm.js +9 -9
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +4 -1
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.esm.js +15 -12
- package/dist/Rule/Rule.esm.js +3 -3
- package/dist/Section/Section.esm.d.ts +1 -1
- package/dist/Section/Section.esm.js +1 -1
- package/dist/Select/Select.cjs.d.ts +25 -0
- package/dist/Select/Select.cjs.js +3010 -0
- package/dist/Select/Select.esm.d.ts +25 -0
- package/dist/Select/Select.esm.js +2983 -0
- package/dist/Select/package.json +7 -0
- package/dist/SiteFooter/SiteFooter.esm.js +33 -33
- package/dist/SiteHeader/SiteHeader.esm.d.ts +1 -1
- package/dist/SiteHeader/SiteHeader.esm.js +98 -98
- package/dist/Surface/Surface.esm.d.ts +1 -1
- package/dist/Surface/Surface.esm.js +1 -1
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +2 -2
- package/dist/TextInput/TextInput.cjs.d.ts +5 -1
- package/dist/TextInput/TextInput.cjs.js +25 -6
- package/dist/TextInput/TextInput.esm.d.ts +5 -1
- package/dist/TextInput/TextInput.esm.js +28 -9
- package/dist/Truncate/Truncate.cjs.d.ts +18 -0
- package/dist/Truncate/Truncate.cjs.js +17 -0
- package/dist/Truncate/Truncate.esm.d.ts +18 -0
- package/dist/Truncate/Truncate.esm.js +9 -0
- package/dist/Truncate/package.json +7 -0
- package/dist/UniversalHeader/UniversalHeader.esm.js +8 -8
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/VisuallyHidden/VisuallyHidden.cjs.d.ts +1 -12
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +3 -12
- package/dist/VisuallyHidden/VisuallyHidden.esm.d.ts +1 -12
- package/dist/VisuallyHidden/VisuallyHidden.esm.js +2 -11
- package/dist/_shared/cjs/Base-e2b846fe.d.ts +19 -0
- package/dist/_shared/cjs/Base-e2b846fe.js +22 -0
- package/dist/_shared/cjs/{FormControl-a1b7421b.d.ts → FormControl-e6b7d7c5.d.ts} +51 -3
- package/dist/_shared/cjs/{FormControl-a1b7421b.js → FormControl-e6b7d7c5.js} +40 -8
- package/dist/_shared/cjs/VisuallyHidden-e2c8b291.d.ts +12 -0
- package/dist/_shared/cjs/VisuallyHidden-e2c8b291.js +17 -0
- package/dist/_shared/cjs/index-c81c9401.d.ts +1 -1
- package/dist/_shared/esm/Base-c235dc45.d.ts +19 -0
- package/dist/_shared/esm/Base-c235dc45.js +15 -0
- package/dist/_shared/esm/{BrandLogo-ea3dd0e6.js → BrandLogo-4f13fe85.js} +4 -4
- package/dist/_shared/esm/{BtIconChevronDown2Px-4abd079b.js → BtIconChevronDown2Px-782876e2.js} +2 -2
- package/dist/_shared/esm/{BtIconChevronRight2Px-a5cc1d05.js → BtIconChevronRight2Px-b8e7b4ad.js} +3 -3
- package/dist/_shared/esm/{BtIconChevronRightMid-386cf272.js → BtIconChevronRightMid-d9b11761.js} +2 -2
- package/dist/_shared/esm/{Button-5ff56a7b.js → Button-69439f8f.js} +15 -15
- package/dist/_shared/esm/{Curve-cfdca379.js → Curve-50697f7e.js} +2 -2
- package/dist/_shared/esm/{FormControl-feedc495.d.ts → FormControl-84c9ace6.d.ts} +51 -3
- package/dist/_shared/esm/FormControl-84c9ace6.js +138 -0
- package/dist/_shared/esm/{Heading-183be76c.js → Heading-eb1e42db.js} +4 -4
- package/dist/_shared/esm/{Icon-76d0d8c0.js → Icon-61f7237a.js} +5 -5
- package/dist/_shared/esm/{Image-7e4948f6.js → Image-c0f3d42f.js} +7 -7
- package/dist/_shared/esm/{Section-f1256c87.js → Section-7bc71e26.js} +2 -2
- package/dist/_shared/esm/{Surface-d515d212.js → Surface-bf201530.js} +3 -3
- package/dist/_shared/esm/{Text-d8988620.js → Text-6b958ad8.js} +3 -3
- package/dist/_shared/esm/VisuallyHidden-b9eebf71.d.ts +12 -0
- package/dist/_shared/esm/VisuallyHidden-b9eebf71.js +11 -0
- package/dist/_shared/esm/index-c81c9401.d.ts +1 -1
- package/dist/index.es.js +34424 -522
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +34329 -406
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Badge/Badge.d.ts +25 -0
- package/dist/types/components/Badge/index.d.ts +1 -0
- package/dist/types/components/FormControl/FormControl.d.ts +17 -0
- package/dist/types/components/FormControl/FormControlDisclosure/FormControlDisclosure.d.ts +28 -0
- package/dist/types/components/FormControl/FormControlDisclosure/index.d.ts +1 -0
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/types/components/Truncate/Truncate.d.ts +17 -0
- package/dist/types/components/Truncate/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/hooks/use-aria-describedby.d.ts +5 -1
- package/dist/types/styles.d.ts +4 -0
- package/package.json +4 -4
- package/dist/_shared/esm/FormControl-feedc495.js +0 -106
- /package/dist/_shared/esm/{BrandLogo-ea3dd0e6.d.ts → BrandLogo-4f13fe85.d.ts} +0 -0
- /package/dist/_shared/esm/{Button-5ff56a7b.d.ts → Button-69439f8f.d.ts} +0 -0
- /package/dist/_shared/esm/{Curve-cfdca379.d.ts → Curve-50697f7e.d.ts} +0 -0
- /package/dist/_shared/esm/{Heading-183be76c.d.ts → Heading-eb1e42db.d.ts} +0 -0
- /package/dist/_shared/esm/{Icon-76d0d8c0.d.ts → Icon-61f7237a.d.ts} +0 -0
- /package/dist/_shared/esm/{Image-7e4948f6.d.ts → Image-c0f3d42f.d.ts} +0 -0
- /package/dist/_shared/esm/{Section-f1256c87.d.ts → Section-7bc71e26.d.ts} +0 -0
- /package/dist/_shared/esm/{Surface-d515d212.d.ts → Surface-bf201530.d.ts} +0 -0
- /package/dist/_shared/esm/{Text-d8988620.d.ts → Text-6b958ad8.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import
|
|
3
|
+
import React__default, { useEffect } from 'react';
|
|
4
4
|
import { s as suffixModifier } from '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -9,22 +9,22 @@ import { s as suffixModifier } from '../_shared/esm/suffix-modifier-f5e28822.js'
|
|
|
9
9
|
var Columns = function (_a) {
|
|
10
10
|
var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isGutterless"]);
|
|
11
11
|
useEffect(function () {
|
|
12
|
-
|
|
12
|
+
React__default.Children.map(children, function (item) {
|
|
13
13
|
if (item && item.type !== Col) {
|
|
14
14
|
throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}, [children]);
|
|
18
|
-
return (
|
|
18
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
19
19
|
"arc-Columns": true,
|
|
20
20
|
"arc-Columns--gutterless": isGutterless
|
|
21
21
|
}) }, filterDataAttrs(props)),
|
|
22
|
-
|
|
22
|
+
React__default.createElement("div", { className: "arc-Columns-inner" }, children)));
|
|
23
23
|
};
|
|
24
24
|
var Col = function (_a) {
|
|
25
25
|
var _b;
|
|
26
26
|
var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
|
|
27
|
-
return (
|
|
27
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
28
28
|
_b["arc-Columns-col"] = true,
|
|
29
29
|
_b[suffixModifier("arc-Columns-col--align", align || "")] = align,
|
|
30
30
|
_b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Curve } from "../_shared/esm/Curve-
|
|
1
|
+
export { Curve } from "../_shared/esm/Curve-50697f7e";
|
package/dist/Curve/Curve.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
import { HeadingLevel } from "../_shared/esm/Heading-
|
|
2
|
+
import { HeadingLevel } from "../_shared/esm/Heading-eb1e42db";
|
|
3
3
|
/**
|
|
4
4
|
* Use `Disclosure` to display content that is only visible when toggled into
|
|
5
5
|
* an "open" state.
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
import
|
|
4
|
-
import { H as Heading } from '../_shared/esm/Heading-
|
|
5
|
-
import { B as BtIconChevronDown2Px_2 } from '../_shared/esm/BtIconChevronDown2Px-
|
|
6
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
3
|
+
import React__default, { useContext } from 'react';
|
|
4
|
+
import { H as Heading } from '../_shared/esm/Heading-eb1e42db.js';
|
|
5
|
+
import { B as BtIconChevronDown2Px_2 } from '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
|
|
6
|
+
import { C as Context } from '../_shared/esm/Surface-bf201530.js';
|
|
7
7
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -13,16 +13,16 @@ import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
|
13
13
|
var Disclosure = function (_a) {
|
|
14
14
|
var children = _a.children, headingLevel = _a.headingLevel, _b = _a.indentDetails, indentDetails = _b === void 0 ? false : _b, _c = _a.isOpen, isOpen = _c === void 0 ? false : _c, summary = _a.summary, props = __rest(_a, ["children", "headingLevel", "indentDetails", "isOpen", "summary"]);
|
|
15
15
|
var surface = useContext(Context).surface;
|
|
16
|
-
return (
|
|
16
|
+
return (React__default.createElement("details", __assign({ className: classNames({
|
|
17
17
|
"arc-Disclosure": true,
|
|
18
18
|
"arc-Disclosure--indentDetails": indentDetails,
|
|
19
19
|
"arc-Disclosure--onDarkSurface": surface === "dark"
|
|
20
20
|
}), open: isOpen }, filterDataAttrs(props)),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
React__default.createElement("summary", { className: "arc-Disclosure-summary" },
|
|
22
|
+
React__default.createElement("span", { className: "arc-Disclosure-summary-icon" },
|
|
23
|
+
React__default.createElement(BtIconChevronDown2Px_2, null)),
|
|
24
|
+
React__default.createElement(Heading, { level: headingLevel, size: "s" }, summary)),
|
|
25
|
+
React__default.createElement("div", { className: "arc-Disclosure-details" }, children)));
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export { Disclosure };
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import
|
|
3
|
+
import React__default from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use `Elevation` to elevate what matters.
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
var Elevation = function (_a) {
|
|
9
9
|
var _b;
|
|
10
10
|
var children = _a.children, _c = _a.isFullWidth, isFullWidth = _c === void 0 ? false : _c, props = __rest(_a, ["children", "isFullWidth"]);
|
|
11
|
-
return (
|
|
11
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
12
12
|
_b["arc-Elevation"] = true,
|
|
13
13
|
_b["arc-Elevation--fullWidth"] = isFullWidth,
|
|
14
14
|
_b)) }, filterDataAttrs(props)), children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormControl, FormControlContext } from "../_shared/cjs/FormControl-
|
|
1
|
+
export { FormControl, FormControlContext } from "../_shared/cjs/FormControl-e6b7d7c5";
|
|
@@ -2,11 +2,14 @@
|
|
|
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-e6b7d7c5.js');
|
|
6
6
|
require('../_shared/cjs/index-78b35bc1.js');
|
|
7
7
|
require('../_shared/cjs/index-45bfb67b.js');
|
|
8
8
|
require('react');
|
|
9
9
|
require('../_shared/cjs/Surface-d6b8010e.js');
|
|
10
|
+
require('../_shared/cjs/Text-1d3844be.js');
|
|
11
|
+
require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
12
|
+
require('../_shared/cjs/BtIconChevronRightMid-5a38d855.js');
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormControl, FormControlContext } from "../_shared/esm/FormControl-
|
|
1
|
+
export { FormControl, FormControlContext } from "../_shared/esm/FormControl-84c9ace6";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export { F as FormControl, C as FormControlContext } from '../_shared/esm/FormControl-
|
|
1
|
+
export { F as FormControl, C as FormControlContext } from '../_shared/esm/FormControl-84c9ace6.js';
|
|
2
2
|
import '../_shared/esm/index-229fc864.js';
|
|
3
3
|
import '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../_shared/esm/Surface-
|
|
5
|
+
import '../_shared/esm/Surface-bf201530.js';
|
|
6
|
+
import '../_shared/esm/Text-6b958ad8.js';
|
|
7
|
+
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
8
|
+
import '../_shared/esm/BtIconChevronRightMid-d9b11761.js';
|
package/dist/Group/Group.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import
|
|
4
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
3
|
+
import React__default, { useContext, useEffect } from 'react';
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-bf201530.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Group` to arrange flexible items in a row.
|
|
@@ -11,13 +11,13 @@ var Group = function (_a) {
|
|
|
11
11
|
var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.growEqual, growEqual = _d === void 0 ? false : _d, _e = _a.gutterBorder, gutterBorder = _e === void 0 ? false : _e, _f = _a.noWrap, noWrap = _f === void 0 ? false : _f, props = __rest(_a, ["children", "grow", "growEqual", "gutterBorder", "noWrap"]);
|
|
12
12
|
var surface = useContext(Context).surface;
|
|
13
13
|
useEffect(function () {
|
|
14
|
-
|
|
14
|
+
React__default.Children.map(children, function (item) {
|
|
15
15
|
if (item && item.type !== GroupItem) {
|
|
16
16
|
throw new Error("Illegal child passed to <Group />. Ensure to only use <Group.Item />.");
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}, [children]);
|
|
20
|
-
return (
|
|
20
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
21
21
|
_b["arc-Group"] = true,
|
|
22
22
|
_b["arc-Group--grow"] = grow,
|
|
23
23
|
_b["arc-Group--growEqual"] = growEqual,
|
|
@@ -25,12 +25,12 @@ var Group = function (_a) {
|
|
|
25
25
|
_b["arc-Group--noWrap"] = noWrap,
|
|
26
26
|
_b["arc-Group--onDarkSurface"] = surface === "dark",
|
|
27
27
|
_b)) }, filterDataAttrs(props)),
|
|
28
|
-
|
|
28
|
+
React__default.createElement("div", { className: "arc-Group-inner" }, children)));
|
|
29
29
|
};
|
|
30
30
|
var GroupItem = function (_a) {
|
|
31
31
|
var _b;
|
|
32
32
|
var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.isDebugVisible, isDebugVisible = _d === void 0 ? false : _d, props = __rest(_a, ["children", "grow", "isDebugVisible"]);
|
|
33
|
-
return (
|
|
33
|
+
return (React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
34
34
|
_b["arc-Group-item"] = true,
|
|
35
35
|
_b["arc-Group-item--grow"] = grow,
|
|
36
36
|
_b["arc-Group-item--debugVisible"] = isDebugVisible,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Heading } from "../_shared/esm/Heading-
|
|
1
|
+
export { Heading } from "../_shared/esm/Heading-eb1e42db";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { H as Heading } from '../_shared/esm/Heading-
|
|
1
|
+
export { H as Heading } from '../_shared/esm/Heading-eb1e42db.js';
|
|
2
2
|
import '../_shared/esm/index-229fc864.js';
|
|
3
3
|
import '../_shared/esm/index-2ae58626.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
6
|
-
import '../_shared/esm/Surface-
|
|
6
|
+
import '../_shared/esm/Surface-bf201530.js';
|
package/dist/Icon/Icon.esm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Icon } from "../_shared/esm/Icon-
|
|
1
|
+
export { Icon } from "../_shared/esm/Icon-61f7237a";
|
package/dist/Icon/Icon.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { I as Icon } from '../_shared/esm/Icon-
|
|
1
|
+
export { I as Icon } from '../_shared/esm/Icon-61f7237a.js';
|
|
2
2
|
import '../_shared/esm/index-229fc864.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-2ae58626.js';
|
|
5
5
|
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
6
|
-
import '../_shared/esm/Surface-
|
|
6
|
+
import '../_shared/esm/Surface-bf201530.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Image } from "../_shared/esm/Image-
|
|
1
|
+
export { Image } from "../_shared/esm/Image-c0f3d42f";
|
package/dist/Image/Image.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import
|
|
4
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
3
|
+
import React__default, { useContext } from 'react';
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-bf201530.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Markup` to display HTML-formatted text.
|
|
@@ -9,7 +9,7 @@ import { C as Context } from '../_shared/esm/Surface-d515d212.js';
|
|
|
9
9
|
var Markup = function (_a) {
|
|
10
10
|
var children = _a.children, _b = _a.isMeasured, isMeasured = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isMeasured"]);
|
|
11
11
|
var surface = useContext(Context).surface;
|
|
12
|
-
return (
|
|
12
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
13
13
|
"arc-Markup": true,
|
|
14
14
|
"arc-Markup--measured": isMeasured,
|
|
15
15
|
"arc-Markup--onDarkSurface": surface === "dark"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FC, ReactNode } from "react";
|
|
3
3
|
import { anchorPoints } from "../_shared/esm/index-9483ad5f";
|
|
4
|
-
import { loadingOptions } from "../_shared/esm/Image-
|
|
4
|
+
import { loadingOptions } from "../_shared/esm/Image-c0f3d42f";
|
|
5
5
|
declare const PosterImage: FC<PosterImageProps>;
|
|
6
6
|
interface PosterImageProps {
|
|
7
7
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
-
import
|
|
4
|
-
import { S as Surface } from '../_shared/esm/Surface-
|
|
5
|
-
import { I as Image } from '../_shared/esm/Image-
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { S as Surface } from '../_shared/esm/Surface-bf201530.js';
|
|
5
|
+
import { I as Image } from '../_shared/esm/Image-c0f3d42f.js';
|
|
6
6
|
import { s as suffixModifier } from '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
7
7
|
|
|
8
8
|
var PosterImage = function (_a) {
|
|
9
9
|
var alt = _a.alt, _b = _a.anchor, anchor = _b === void 0 ? "C" : _b, loading = _a.loading, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet, props = __rest(_a, ["alt", "anchor", "loading", "sizes", "src", "srcSet"]);
|
|
10
|
-
return (
|
|
10
|
+
return (React__default.createElement(Image, __assign({ alt: alt, anchor: anchor, fit: "cover", loading: loading, sizes: sizes, src: src, srcSet: srcSet }, props)));
|
|
11
11
|
};
|
|
12
12
|
PosterImage.displayName = "Poster.Image";
|
|
13
13
|
|
|
14
14
|
var PosterVideo = function (_a) {
|
|
15
15
|
var _b;
|
|
16
16
|
var _c = _a.anchor, anchor = _c === void 0 ? "C" : _c, _d = _a.autoPlay, autoPlay = _d === void 0 ? true : _d, children = _a.children, _e = _a.loop, loop = _e === void 0 ? true : _e, props = __rest(_a, ["anchor", "autoPlay", "children", "loop"]);
|
|
17
|
-
return (
|
|
17
|
+
return (React__default.createElement("video", __assign({ className: classNames((_b = {
|
|
18
18
|
"arc-PosterVideo": true
|
|
19
19
|
},
|
|
20
20
|
_b[suffixModifier("arc-PosterVideo--anchor", anchor)] = anchor,
|
|
@@ -27,14 +27,14 @@ PosterVideo.displayName = "Poster.Video";
|
|
|
27
27
|
*/
|
|
28
28
|
var Poster = function (_a) {
|
|
29
29
|
var background = _a.background, children = _a.children, _b = _a.overlay, overlay = _b === void 0 ? true : _b, _c = _a.surface, surface = _c === void 0 ? "darker" : _c, props = __rest(_a, ["background", "children", "overlay", "surface"]);
|
|
30
|
-
return (
|
|
31
|
-
|
|
30
|
+
return (React__default.createElement(Surface, { background: surface },
|
|
31
|
+
React__default.createElement("div", __assign({ className: classNames({
|
|
32
32
|
"arc-Poster": true,
|
|
33
33
|
"arc-Poster--overlay": overlay,
|
|
34
34
|
"arc-Poster--overlayLight": surface === "lighter"
|
|
35
35
|
}) }, filterDataAttrs(props)),
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
React__default.createElement("div", { className: "arc-Poster-backgroundWrapper" }, background),
|
|
37
|
+
React__default.createElement("div", { className: "arc-Poster-body" }, children))));
|
|
38
38
|
};
|
|
39
39
|
PosterImage.displayName = "Poster.Image";
|
|
40
40
|
Poster.Image = PosterImage;
|
|
@@ -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-e6b7d7c5";
|
|
5
5
|
/**
|
|
6
6
|
* Radio Button component.
|
|
7
7
|
*/
|
|
@@ -4,9 +4,12 @@ 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-e6b7d7c5.js');
|
|
8
8
|
var index$1 = require('../_shared/cjs/index-45bfb67b.js');
|
|
9
9
|
var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
|
|
10
|
+
require('../_shared/cjs/Text-1d3844be.js');
|
|
11
|
+
require('../_shared/cjs/suffix-modifier-edf7851e.js');
|
|
12
|
+
require('../_shared/cjs/BtIconChevronRightMid-5a38d855.js');
|
|
10
13
|
|
|
11
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
15
|
|
|
@@ -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-84c9ace6";
|
|
5
5
|
/**
|
|
6
6
|
* Radio Button component.
|
|
7
7
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
|
|
2
|
-
import
|
|
3
|
-
import { F as FormControl } from '../_shared/esm/FormControl-
|
|
2
|
+
import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
|
|
3
|
+
import { F as FormControl } from '../_shared/esm/FormControl-84c9ace6.js';
|
|
4
4
|
import { c as classNames } from '../_shared/esm/index-2ae58626.js';
|
|
5
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
5
|
+
import { C as Context } from '../_shared/esm/Surface-bf201530.js';
|
|
6
|
+
import '../_shared/esm/Text-6b958ad8.js';
|
|
7
|
+
import '../_shared/esm/suffix-modifier-f5e28822.js';
|
|
8
|
+
import '../_shared/esm/BtIconChevronRightMid-d9b11761.js';
|
|
6
9
|
|
|
7
10
|
var RadioContext = createContext({});
|
|
8
11
|
var Provider = RadioContext.Provider;
|
|
@@ -20,18 +23,18 @@ var RadioButton = forwardRef(function (_a, ref) {
|
|
|
20
23
|
var surface = useContext(Context).surface;
|
|
21
24
|
var idLabel = "".concat(id, "-label");
|
|
22
25
|
var checked = checkedValue === value ? true : false;
|
|
23
|
-
return (
|
|
26
|
+
return (React__default.createElement("div", __assign({ className: classNames({
|
|
24
27
|
"arc-RadioButton": true,
|
|
25
28
|
"arc-RadioButton--disabled": isDisabled || groupDisabled,
|
|
26
29
|
"arc-RadioButton--small": size === "s",
|
|
27
30
|
"arc-RadioButton--smallLabel": labelSize === "s",
|
|
28
31
|
"arc-RadioButton--onDarkSurface": surface === "dark"
|
|
29
32
|
}) }, filterDataAttrs(props)),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
React__default.createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
|
|
34
|
+
React__default.createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
|
|
35
|
+
React__default.createElement("span", null,
|
|
33
36
|
label,
|
|
34
|
-
helper &&
|
|
37
|
+
helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
|
|
35
38
|
});
|
|
36
39
|
|
|
37
40
|
/**
|
|
@@ -40,13 +43,13 @@ var RadioButton = forwardRef(function (_a, ref) {
|
|
|
40
43
|
var RadioGroup = function (_a) {
|
|
41
44
|
var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
|
|
42
45
|
useEffect(function () {
|
|
43
|
-
|
|
46
|
+
React__default.Children.map(children, function (item) {
|
|
44
47
|
if (item && item.type !== RadioButton) {
|
|
45
48
|
throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
51
|
}, [children]);
|
|
49
|
-
return (
|
|
52
|
+
return (React__default.createElement(Provider, { value: {
|
|
50
53
|
blurEvent: onBlur,
|
|
51
54
|
changeEvent: onChange,
|
|
52
55
|
groupDisabled: isDisabled,
|
|
@@ -55,8 +58,8 @@ var RadioGroup = function (_a) {
|
|
|
55
58
|
name: name,
|
|
56
59
|
size: size
|
|
57
60
|
} },
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
|
|
62
|
+
React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable" }, children))));
|
|
60
63
|
};
|
|
61
64
|
RadioButton.displayName = "RadioGroup.RadioButton";
|
|
62
65
|
RadioGroup.RadioButton = RadioButton;
|
package/dist/Rule/Rule.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { 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
|
-
import
|
|
4
|
-
import { C as Context } from '../_shared/esm/Surface-
|
|
3
|
+
import React__default, { useContext } from 'react';
|
|
4
|
+
import { C as Context } from '../_shared/esm/Surface-bf201530.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Rule` to display a horizontal rule.
|
|
8
8
|
*/
|
|
9
9
|
var Rule = function (props) {
|
|
10
10
|
var surface = useContext(Context).surface;
|
|
11
|
-
return (
|
|
11
|
+
return (React__default.createElement("hr", __assign({ className: classNames({
|
|
12
12
|
"arc-Rule": true,
|
|
13
13
|
"arc-Rule--onDarkSurface": surface === "dark"
|
|
14
14
|
}) }, filterDataAttrs(props))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Section } from "../_shared/esm/Section-
|
|
1
|
+
export { Section } from "../_shared/esm/Section-7bc71e26";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FocusEvent } from "react";
|
|
4
|
+
import { FormControlProps } from "../_shared/cjs/FormControl-e6b7d7c5";
|
|
5
|
+
/** Use `Select` to choose from a dropdown list of options. */
|
|
6
|
+
declare const Select: React.FC<SelectProps>;
|
|
7
|
+
interface SelectProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "id"> {
|
|
8
|
+
name: string;
|
|
9
|
+
label: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
options: {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
defaultValue?: string;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
onBlur?: (e: FocusEvent) => void;
|
|
19
|
+
onOpenChange?: () => void;
|
|
20
|
+
isFluid?: boolean;
|
|
21
|
+
isDisabled?: boolean;
|
|
22
|
+
isDefaultOpen?: boolean;
|
|
23
|
+
isRequired?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export { Select };
|