@viasat/beam-shared 2.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/README.md +108 -0
- package/chunks/SegmentedControl.B9dLCFSF.js +9 -0
- package/chunks/SegmentedControl.D0l_8a7O.js +1 -0
- package/chunks/accordion.C1LkPYXv.js +1 -0
- package/chunks/accordion.CCM7ddD5.js +11 -0
- package/chunks/actionList.LFHBSlrg.js +1 -0
- package/chunks/actionList.X99uHmXK.js +26 -0
- package/chunks/alert.B4q5-o6H.js +1 -0
- package/chunks/alert.BZ4L-6bC.js +32 -0
- package/chunks/avatar.BbM_sNXk.js +63 -0
- package/chunks/avatar.VNzxbOMa.js +1 -0
- package/chunks/badge.B_k2GBe6.js +1 -0
- package/chunks/badge.DZN0yrZh.js +44 -0
- package/chunks/badgeDot.ClhZtqzd.js +25 -0
- package/chunks/badgeDot.Dkqfk3zg.js +1 -0
- package/chunks/box.CsO__7hu.js +1 -0
- package/chunks/box._mFtvgTp.js +82 -0
- package/chunks/button.Bbz_mfWv.js +1 -0
- package/chunks/button.Dz8Zhr7J.js +51 -0
- package/chunks/card.CG-SDcm1.js +27 -0
- package/chunks/card.CLwQAceo.js +1 -0
- package/chunks/chips.DKEagIsp.js +1 -0
- package/chunks/chips.GU9UVEOU.js +13 -0
- package/chunks/closeButton.C1A3p88y.js +1 -0
- package/chunks/closeButton.g8_iRoUg.js +15 -0
- package/chunks/dialog.BTq-pLBf.js +28 -0
- package/chunks/dialog.DnkeApRr.js +1 -0
- package/chunks/divider.BYMLu6Wp.js +1 -0
- package/chunks/divider.DgP7kpLb.js +35 -0
- package/chunks/fileUpload.BbSIsjJv.js +240 -0
- package/chunks/fileUpload.C-l2YXzO.js +1 -0
- package/chunks/form.BRWIo59c.js +154 -0
- package/chunks/form.CIzlawbr.js +1 -0
- package/chunks/helperText.C-apoW8Z.js +1 -0
- package/chunks/helperText.CS5sun4r.js +16 -0
- package/chunks/icon.SiHuIfL8.js +1 -0
- package/chunks/icon.tCAxaKQh.js +28 -0
- package/chunks/inputChoiceGroup.BSousduj.js +1 -0
- package/chunks/inputChoiceGroup.DkDdA57f.js +10 -0
- package/chunks/link.DxTb3yhm.js +16 -0
- package/chunks/link.VyBRMFxS.js +1 -0
- package/chunks/list.CCq0lIzm.js +29 -0
- package/chunks/list.D6NIx1OS.js +1 -0
- package/chunks/logo.CLQZSaVN.js +1 -0
- package/chunks/logo.Cl29Chxj.js +11 -0
- package/chunks/nativeSelect.D9HZm9uJ.js +28 -0
- package/chunks/nativeSelect.Lz45VyQX.js +1 -0
- package/chunks/pageHeader.CbDGb6ot.js +1 -0
- package/chunks/pageHeader.fsTiHDRc.js +12 -0
- package/chunks/pagination.Br7vTt5b.js +1 -0
- package/chunks/pagination.DinViL55.js +38 -0
- package/chunks/progressBar.84w2qF8R.js +42 -0
- package/chunks/progressBar.DcG-X-RY.js +1 -0
- package/chunks/spinner.B6R6yphw.js +1 -0
- package/chunks/spinner.oNNLX64f.js +105 -0
- package/chunks/stepper.ByKqsxhz.js +1 -0
- package/chunks/stepper.FT6nDHjL.js +18 -0
- package/chunks/switch.Dalf8ccu.js +1 -0
- package/chunks/switch.hUukrKTd.js +11 -0
- package/chunks/tabs.C7SBQq_R.js +1 -0
- package/chunks/tabs.CIfcdjPn.js +13 -0
- package/chunks/text.CW-ftgoP.js +1 -0
- package/chunks/text.DpbJhMDB.js +152 -0
- package/chunks/textArea.CmtmGm_y.js +22 -0
- package/chunks/textArea.DF76BVU5.js +1 -0
- package/chunks/toast.Bs1t4Urq.js +36 -0
- package/chunks/toast.C-h1RUq_.js +1 -0
- package/chunks/tooltip.D1fCHa9d.js +16 -0
- package/chunks/tooltip.DZTJP5dS.js +1 -0
- package/index.cjs.js +1 -0
- package/index.d.ts +3 -0
- package/index.es.js +164 -0
- package/lib/components/SegmentedControl.cjs.js +1 -0
- package/lib/components/SegmentedControl.d.ts +2 -0
- package/lib/components/SegmentedControl.es.js +5 -0
- package/lib/components/accordion.cjs.js +1 -0
- package/lib/components/accordion.d.ts +3 -0
- package/lib/components/accordion.es.js +6 -0
- package/lib/components/actionList.cjs.js +1 -0
- package/lib/components/actionList.d.ts +15 -0
- package/lib/components/actionList.es.js +13 -0
- package/lib/components/alert.cjs.js +1 -0
- package/lib/components/alert.d.ts +17 -0
- package/lib/components/alert.es.js +11 -0
- package/lib/components/aspectRatio.cjs.js +1 -0
- package/lib/components/aspectRatio.d.ts +16 -0
- package/lib/components/aspectRatio.es.js +14 -0
- package/lib/components/avatar.cjs.js +1 -0
- package/lib/components/avatar.d.ts +17 -0
- package/lib/components/avatar.es.js +23 -0
- package/lib/components/badge.cjs.js +1 -0
- package/lib/components/badge.d.ts +17 -0
- package/lib/components/badge.es.js +15 -0
- package/lib/components/badgeDot.cjs.js +1 -0
- package/lib/components/badgeDot.d.ts +6 -0
- package/lib/components/badgeDot.es.js +7 -0
- package/lib/components/box.cjs.js +1 -0
- package/lib/components/box.d.ts +82 -0
- package/lib/components/box.es.js +8 -0
- package/lib/components/button.cjs.js +1 -0
- package/lib/components/button.d.ts +36 -0
- package/lib/components/button.es.js +16 -0
- package/lib/components/card.cjs.js +1 -0
- package/lib/components/card.d.ts +22 -0
- package/lib/components/card.es.js +7 -0
- package/lib/components/chips.cjs.js +1 -0
- package/lib/components/chips.d.ts +5 -0
- package/lib/components/chips.es.js +7 -0
- package/lib/components/closeButton.cjs.js +1 -0
- package/lib/components/closeButton.d.ts +2 -0
- package/lib/components/closeButton.es.js +5 -0
- package/lib/components/dialog.cjs.js +1 -0
- package/lib/components/dialog.d.ts +5 -0
- package/lib/components/dialog.es.js +7 -0
- package/lib/components/divider.cjs.js +1 -0
- package/lib/components/divider.d.ts +30 -0
- package/lib/components/divider.es.js +9 -0
- package/lib/components/fileUpload.cjs.js +1 -0
- package/lib/components/fileUpload.d.ts +90 -0
- package/lib/components/fileUpload.es.js +22 -0
- package/lib/components/floatingui.cjs.js +1 -0
- package/lib/components/floatingui.d.ts +71 -0
- package/lib/components/floatingui.es.js +608 -0
- package/lib/components/form.cjs.js +1 -0
- package/lib/components/form.d.ts +69 -0
- package/lib/components/form.es.js +9 -0
- package/lib/components/helperText.cjs.js +1 -0
- package/lib/components/helperText.d.ts +4 -0
- package/lib/components/helperText.es.js +6 -0
- package/lib/components/icon.cjs.js +1 -0
- package/lib/components/icon.d.ts +6 -0
- package/lib/components/icon.es.js +7 -0
- package/lib/components/index.cjs.js +1 -0
- package/lib/components/index.d.ts +34 -0
- package/lib/components/index.es.js +70 -0
- package/lib/components/inputChoiceGroup.cjs.js +1 -0
- package/lib/components/inputChoiceGroup.d.ts +10 -0
- package/lib/components/inputChoiceGroup.es.js +5 -0
- package/lib/components/link.cjs.js +1 -0
- package/lib/components/link.d.ts +4 -0
- package/lib/components/link.es.js +6 -0
- package/lib/components/list.cjs.js +1 -0
- package/lib/components/list.d.ts +14 -0
- package/lib/components/list.es.js +10 -0
- package/lib/components/logo.cjs.js +1 -0
- package/lib/components/logo.d.ts +5 -0
- package/lib/components/logo.es.js +6 -0
- package/lib/components/nativeSelect.cjs.js +1 -0
- package/lib/components/nativeSelect.d.ts +5 -0
- package/lib/components/nativeSelect.es.js +7 -0
- package/lib/components/pageHeader.cjs.js +1 -0
- package/lib/components/pageHeader.d.ts +5 -0
- package/lib/components/pageHeader.es.js +5 -0
- package/lib/components/pagination.cjs.js +1 -0
- package/lib/components/pagination.d.ts +69 -0
- package/lib/components/pagination.es.js +13 -0
- package/lib/components/progressBar.cjs.js +1 -0
- package/lib/components/progressBar.d.ts +14 -0
- package/lib/components/progressBar.es.js +11 -0
- package/lib/components/spinner.cjs.js +1 -0
- package/lib/components/spinner.d.ts +82 -0
- package/lib/components/spinner.es.js +19 -0
- package/lib/components/stepper.cjs.js +1 -0
- package/lib/components/stepper.d.ts +12 -0
- package/lib/components/stepper.es.js +5 -0
- package/lib/components/switch.cjs.js +1 -0
- package/lib/components/switch.d.ts +3 -0
- package/lib/components/switch.es.js +6 -0
- package/lib/components/tabs.cjs.js +1 -0
- package/lib/components/tabs.d.ts +6 -0
- package/lib/components/tabs.es.js +7 -0
- package/lib/components/text.cjs.js +1 -0
- package/lib/components/text.d.ts +15 -0
- package/lib/components/text.es.js +13 -0
- package/lib/components/textArea.cjs.js +1 -0
- package/lib/components/textArea.d.ts +2 -0
- package/lib/components/textArea.es.js +4 -0
- package/lib/components/toast.cjs.js +1 -0
- package/lib/components/toast.d.ts +14 -0
- package/lib/components/toast.es.js +9 -0
- package/lib/components/tooltip.cjs.js +1 -0
- package/lib/components/tooltip.d.ts +2 -0
- package/lib/components/tooltip.es.js +5 -0
- package/lib/shared.cjs.js +1 -0
- package/lib/shared.d.ts +4 -0
- package/lib/shared.es.js +6 -0
- package/lib/utils/CSSLookup.cjs.js +1 -0
- package/lib/utils/CSSLookup.d.ts +84 -0
- package/lib/utils/CSSLookup.es.js +110 -0
- package/lib/utils/classNames.cjs.js +1 -0
- package/lib/utils/classNames.d.ts +9 -0
- package/lib/utils/classNames.es.js +18 -0
- package/lib/utils/constants.cjs.js +1 -0
- package/lib/utils/constants.d.ts +174 -0
- package/lib/utils/constants.es.js +151 -0
- package/lib/utils/dom.cjs.js +1 -0
- package/lib/utils/dom.d.ts +18 -0
- package/lib/utils/dom.es.js +34 -0
- package/lib/utils/helpers.cjs.js +1 -0
- package/lib/utils/helpers.d.ts +66 -0
- package/lib/utils/helpers.es.js +154 -0
- package/lib/utils/index.cjs.js +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.es.js +94 -0
- package/lib/utils/overflow.cjs.js +1 -0
- package/lib/utils/overflow.d.ts +34 -0
- package/lib/utils/overflow.es.js +34 -0
- package/lib/utils/raf.cjs.js +1 -0
- package/lib/utils/raf.d.ts +8 -0
- package/lib/utils/raf.es.js +14 -0
- package/lib/utils/styles.cjs.js +1 -0
- package/lib/utils/styles.d.ts +1 -0
- package/lib/utils/styles.es.js +5 -0
- package/lib/utils/types.cjs.js +1 -0
- package/lib/utils/types.d.ts +6 -0
- package/lib/utils/types.es.js +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { allSizes as s } from "../lib/utils/constants.es.js";
|
|
2
|
+
const o = [s.sm, s.md, s.lg], t = "active", a = "error", c = "success", n = [t, a, c];
|
|
3
|
+
function i(e, r) {
|
|
4
|
+
if (e === "error")
|
|
5
|
+
return Math.max(4, r ?? 4);
|
|
6
|
+
if (e === "success")
|
|
7
|
+
return 100;
|
|
8
|
+
if (r !== void 0)
|
|
9
|
+
return Math.max(0, Math.min(100, r));
|
|
10
|
+
}
|
|
11
|
+
function u(e) {
|
|
12
|
+
return e === "success" ? {
|
|
13
|
+
appearance: "positive",
|
|
14
|
+
hideIcon: !1
|
|
15
|
+
} : e === "error" ? {
|
|
16
|
+
appearance: "negative",
|
|
17
|
+
hideIcon: !1
|
|
18
|
+
} : {
|
|
19
|
+
appearance: "info",
|
|
20
|
+
hideIcon: !0
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
active: t,
|
|
26
|
+
calculateTrackWidth: i,
|
|
27
|
+
error: a,
|
|
28
|
+
getHelperTextProps: u,
|
|
29
|
+
sizes: o,
|
|
30
|
+
states: n,
|
|
31
|
+
success: c
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
33
|
+
export {
|
|
34
|
+
t as a,
|
|
35
|
+
c as b,
|
|
36
|
+
n as c,
|
|
37
|
+
i as d,
|
|
38
|
+
a as e,
|
|
39
|
+
u as g,
|
|
40
|
+
f as p,
|
|
41
|
+
o as s
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("../lib/utils/constants.cjs.js"),a=[s.allSizes.sm,s.allSizes.md,s.allSizes.lg],t="active",c="error",i="success",n=[t,c,i];function o(e,r){if(e==="error")return Math.max(4,r??4);if(e==="success")return 100;if(r!==void 0)return Math.max(0,Math.min(100,r))}function u(e){return e==="success"?{appearance:"positive",hideIcon:!1}:e==="error"?{appearance:"negative",hideIcon:!1}:{appearance:"info",hideIcon:!0}}const l=Object.freeze(Object.defineProperty({__proto__:null,active:t,calculateTrackWidth:o,error:c,getHelperTextProps:u,sizes:a,states:n,success:i},Symbol.toStringTag,{value:"Module"}));exports.active=t;exports.calculateTrackWidth=o;exports.error=c;exports.getHelperTextProps=u;exports.progressBar=l;exports.sizes=a;exports.states=n;exports.success=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const C=require("../lib/utils/classNames.cjs.js"),a=require("../lib/utils/constants.cjs.js"),o=10,l=[a.allSizes.xxs,a.allSizes.xs,a.allSizes.sm,a.allSizes.md,a.allSizes.lg],c="md",p={xxs:16,xs:20,sm:40,md:64,lg:88},m={xxs:{sideLength:16,strokeWidth:2},xs:{sideLength:20,strokeWidth:2},sm:{sideLength:40,strokeWidth:4},md:{sideLength:64,strokeWidth:6},lg:{sideLength:88,strokeWidth:8}},{baseClassNamePrefix:t,subElementClassPrefix:s,classModifierPrefix:d}=C.getBEMClassNames("spinner"),g=({sideLength:e,strokeWidth:i})=>{const r=e-i,$=r/2,b=Math.PI*r,z=`0 0 ${e} ${e}`;return{sideLength:e,strokeWidth:i,cx:e/2,cy:e/2,diameter:r,circumference:b,r:$,viewBox:z}},n=`${t}-wrap`,S={spinnerWrap:n,spinnerSvgWrap:t,spinnerSvgWrapIndeterminate:`${t}--indeterminate`,spinnerSvgWrapDeterminate:`${t}--determinate`,spinnerContentWrapper:`${s}content-wrapper`,spinnerSvgHeading:`${s}heading`,spinnerSvgLabelPercentageIndicator:`${s}percentage-indicator`,spinnerSvg:`${s}svg`,spinnerSvgCircle:`${s}circle`,spinnerSvgCircleBg:`${s}circle-bg`,spinnerBody:`${s}body`},x={xxs:`${n}--xxs`,xs:`${n}--xs`,sm:`${n}--sm`,md:`${n}--md`,lg:`${n}--lg`},f="--bm-spinner-value",u=({value:e})=>{const i=typeof e=="number"&&Number.isInteger(e)||!1,r=i&&e>=0&&e<=100;return i&&!r&&console.warn("The allowed range for the spinner values is 0 to 100"),i&&r},W=Object.freeze(Object.defineProperty({__proto__:null,baseClassNamePrefix:t,checkIfSpinnerIsDetermined:u,classModifierPrefix:d,classNames:S,getCircleDimensions:g,spinnerDefaultSize:c,spinnerSizeClassModifiers:x,spinnerSizes:l,spinnerSizesToDimensions:m,spinnerValueVar:f,spinnerWidths:p,spinnerWrapClassName:n,strokeMiterlimit:o,subElementClassPrefix:s},Symbol.toStringTag,{value:"Module"}));exports.baseClassNamePrefix=t;exports.checkIfSpinnerIsDetermined=u;exports.classModifierPrefix=d;exports.classNames=S;exports.getCircleDimensions=g;exports.spinner=W;exports.spinnerDefaultSize=c;exports.spinnerSizeClassModifiers=x;exports.spinnerSizes=l;exports.spinnerSizesToDimensions=m;exports.spinnerValueVar=f;exports.spinnerWidths=p;exports.spinnerWrapClassName=n;exports.strokeMiterlimit=o;exports.subElementClassPrefix=s;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { getBEMClassNames as m } from "../lib/utils/classNames.es.js";
|
|
2
|
+
import { allSizes as t } from "../lib/utils/constants.es.js";
|
|
3
|
+
const l = 10, d = [
|
|
4
|
+
t.xxs,
|
|
5
|
+
t.xs,
|
|
6
|
+
t.sm,
|
|
7
|
+
t.md,
|
|
8
|
+
t.lg
|
|
9
|
+
], g = "md", x = {
|
|
10
|
+
xxs: 16,
|
|
11
|
+
xs: 20,
|
|
12
|
+
sm: 40,
|
|
13
|
+
md: 64,
|
|
14
|
+
lg: 88
|
|
15
|
+
}, f = {
|
|
16
|
+
xxs: {
|
|
17
|
+
sideLength: 16,
|
|
18
|
+
strokeWidth: 2
|
|
19
|
+
},
|
|
20
|
+
xs: {
|
|
21
|
+
sideLength: 20,
|
|
22
|
+
strokeWidth: 2
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
sideLength: 40,
|
|
26
|
+
strokeWidth: 4
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
sideLength: 64,
|
|
30
|
+
strokeWidth: 6
|
|
31
|
+
},
|
|
32
|
+
lg: {
|
|
33
|
+
sideLength: 88,
|
|
34
|
+
strokeWidth: 8
|
|
35
|
+
}
|
|
36
|
+
}, { baseClassNamePrefix: a, subElementClassPrefix: s, classModifierPrefix: $ } = m("spinner"), S = ({
|
|
37
|
+
sideLength: e,
|
|
38
|
+
strokeWidth: r
|
|
39
|
+
}) => {
|
|
40
|
+
const i = e - r, o = i / 2, c = Math.PI * i, p = `0 0 ${e} ${e}`;
|
|
41
|
+
return {
|
|
42
|
+
sideLength: e,
|
|
43
|
+
strokeWidth: r,
|
|
44
|
+
cx: e / 2,
|
|
45
|
+
cy: e / 2,
|
|
46
|
+
diameter: i,
|
|
47
|
+
circumference: c,
|
|
48
|
+
r: o,
|
|
49
|
+
viewBox: p
|
|
50
|
+
};
|
|
51
|
+
}, n = `${a}-wrap`, b = {
|
|
52
|
+
spinnerWrap: n,
|
|
53
|
+
spinnerSvgWrap: a,
|
|
54
|
+
spinnerSvgWrapIndeterminate: `${a}--indeterminate`,
|
|
55
|
+
spinnerSvgWrapDeterminate: `${a}--determinate`,
|
|
56
|
+
spinnerContentWrapper: `${s}content-wrapper`,
|
|
57
|
+
spinnerSvgHeading: `${s}heading`,
|
|
58
|
+
spinnerSvgLabelPercentageIndicator: `${s}percentage-indicator`,
|
|
59
|
+
spinnerSvg: `${s}svg`,
|
|
60
|
+
spinnerSvgCircle: `${s}circle`,
|
|
61
|
+
spinnerSvgCircleBg: `${s}circle-bg`,
|
|
62
|
+
spinnerBody: `${s}body`
|
|
63
|
+
}, h = {
|
|
64
|
+
xxs: `${n}--xxs`,
|
|
65
|
+
xs: `${n}--xs`,
|
|
66
|
+
sm: `${n}--sm`,
|
|
67
|
+
md: `${n}--md`,
|
|
68
|
+
lg: `${n}--lg`
|
|
69
|
+
}, W = "--bm-spinner-value", u = ({ value: e }) => {
|
|
70
|
+
const r = typeof e == "number" && Number.isInteger(e) || !1, i = r && e >= 0 && e <= 100;
|
|
71
|
+
return r && !i && console.warn("The allowed range for the spinner values is 0 to 100"), r && i;
|
|
72
|
+
}, k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73
|
+
__proto__: null,
|
|
74
|
+
baseClassNamePrefix: a,
|
|
75
|
+
checkIfSpinnerIsDetermined: u,
|
|
76
|
+
classModifierPrefix: $,
|
|
77
|
+
classNames: b,
|
|
78
|
+
getCircleDimensions: S,
|
|
79
|
+
spinnerDefaultSize: g,
|
|
80
|
+
spinnerSizeClassModifiers: h,
|
|
81
|
+
spinnerSizes: d,
|
|
82
|
+
spinnerSizesToDimensions: f,
|
|
83
|
+
spinnerValueVar: W,
|
|
84
|
+
spinnerWidths: x,
|
|
85
|
+
spinnerWrapClassName: n,
|
|
86
|
+
strokeMiterlimit: l,
|
|
87
|
+
subElementClassPrefix: s
|
|
88
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
89
|
+
export {
|
|
90
|
+
l as a,
|
|
91
|
+
d as b,
|
|
92
|
+
g as c,
|
|
93
|
+
x as d,
|
|
94
|
+
f as e,
|
|
95
|
+
a as f,
|
|
96
|
+
s as g,
|
|
97
|
+
$ as h,
|
|
98
|
+
S as i,
|
|
99
|
+
n as j,
|
|
100
|
+
b as k,
|
|
101
|
+
h as l,
|
|
102
|
+
W as m,
|
|
103
|
+
u as n,
|
|
104
|
+
k as s
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={Horizontal:"horizontal",Vertical:"vertical"},t={Incomplete:"incomplete",Current:"current",Complete:"complete",Error:"error"},r=Object.freeze(Object.defineProperty({__proto__:null,StepperOrientations:e,StepperStatuses:t},Symbol.toStringTag,{value:"Module"}));exports.StepperOrientations=e;exports.StepperStatuses=t;exports.stepper=r;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
Horizontal: "horizontal",
|
|
3
|
+
Vertical: "vertical"
|
|
4
|
+
}, t = {
|
|
5
|
+
Incomplete: "incomplete",
|
|
6
|
+
Current: "current",
|
|
7
|
+
Complete: "complete",
|
|
8
|
+
Error: "error"
|
|
9
|
+
}, r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
StepperOrientations: e,
|
|
12
|
+
StepperStatuses: t
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
14
|
+
export {
|
|
15
|
+
e as S,
|
|
16
|
+
t as a,
|
|
17
|
+
r as s
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("../lib/utils/CSSLookup.cjs.js"),e=["before","after"],_=t.convertRemToPixels(2.5),o=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_SWITCH_HEIGHT_PX:_,TEXT_POSITION_VALUES:e},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_SWITCH_HEIGHT_PX=_;exports.TEXT_POSITION_VALUES=e;exports._switch=o;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { convertRemToPixels as e } from "../lib/utils/CSSLookup.es.js";
|
|
2
|
+
const o = ["before", "after"], t = e(2.5), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
DEFAULT_SWITCH_HEIGHT_PX: t,
|
|
5
|
+
TEXT_POSITION_VALUES: o
|
|
6
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
7
|
+
export {
|
|
8
|
+
t as D,
|
|
9
|
+
o as T,
|
|
10
|
+
_
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("../lib/utils/constants.cjs.js"),t=["horizontal","vertical"],e=[s.allSizes.md,s.allSizes.lg],i=["00","00-alt","01","02","03"],o=Object.freeze(Object.defineProperty({__proto__:null,TabsDividerColors:i,TabsOrientations:t,TabsSizes:e},Symbol.toStringTag,{value:"Module"}));exports.TabsDividerColors=i;exports.TabsOrientations=t;exports.TabsSizes=e;exports.tabs=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { allSizes as t } from "../lib/utils/constants.es.js";
|
|
2
|
+
const o = ["horizontal", "vertical"], a = [t.md, t.lg], e = ["00", "00-alt", "01", "02", "03"], r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
TabsDividerColors: e,
|
|
5
|
+
TabsOrientations: o,
|
|
6
|
+
TabsSizes: a
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
8
|
+
export {
|
|
9
|
+
o as T,
|
|
10
|
+
a,
|
|
11
|
+
e as b,
|
|
12
|
+
r as t
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("../lib/utils/constants.cjs.js"),a=`${l.prefix}sem-typo-`,e="compact-",n=["h1","h2","h3","h4","h5","h6","p","span","strong","div","mark","a","i","u","b","label","address","article","sub","sup","em","small","del","ins","abbr","blockquote","data","pre"],s=["start","center","end"],d=["normal","breakAll","breakWord"],o=["heading-regular","heading-bold","body-regular","body-bold"],i=[l.allColors.primary,l.allColors.secondary,l.allColors.positive,l.allColors.warning,l.allColors.negative,l.allColors.infoPrimary,l.allColors.infoSecondary,l.allColors.selected,l.allColors.disabled,l.allColors.primaryInverse,l.allColors.secondaryInverse,l.allColors.expressive,l.allColors.expressiveStronger,l.allColors.expressiveInverse,l.allColors.expressiveInverseStronger],t=["heading-6xl","heading-5xl","heading-4xl","heading-3xl","heading-2xl","heading-xl","heading-lg","heading-md","heading-sm","heading-xs","heading-alt-6xl","heading-alt-5xl","heading-alt-4xl","heading-alt-3xl","heading-alt-2xl","heading-alt-xl","heading-alt-lg","heading-alt-md","heading-alt-sm","heading-alt-xs","body-2xl","body-xl","body-lg","body-md","body-sm","body-xs","detail-xl","detail-lg","detail-md","detail-sm","detail-xs","label-2xl","label-xl","label-lg","label-md","label-sm","label-xs"],h={"heading-6xl":"h1","heading-5xl":"h2","heading-4xl":"h3","heading-3xl":"h4","heading-2xl":"h5","heading-xl":"h6","heading-lg":"h6","heading-md":"h6","heading-sm":"h6","heading-xs":"h6","heading-alt-6xl":"h1","heading-alt-5xl":"h2","heading-alt-4xl":"h3","heading-alt-3xl":"h4","heading-alt-2xl":"h5","heading-alt-xl":"h6","heading-alt-lg":"h6","heading-alt-md":"h6","heading-alt-sm":"h6","heading-alt-xs":"h6","body-2xl":"span","body-xl":"span","body-lg":"span","body-md":"span","body-sm":"span","body-xs":"span","detail-xl":"span","detail-lg":"span","detail-md":"span","detail-sm":"span","detail-xs":"span","label-2xl":"span","label-xl":"span","label-lg":"span","label-md":"span","label-sm":"span","label-xs":"span"},r=Object.freeze(Object.defineProperty({__proto__:null,COMPACT_CLASS_PREFIX:e,DEFAULT_KIND_TO_ELEMENT_MAP:h,TEXT_ALIGNMENT_VALUES:s,TEXT_COLOR_VALUES:i,TEXT_ELEMENT_VALUES:n,TEXT_KIND_VALUES:t,TEXT_WEIGHT_VALUES:o,TEXT_WORD_BREAK_VALUES:d,TYPOGRAPHY_CLASS_BASE:a},Symbol.toStringTag,{value:"Module"}));exports.COMPACT_CLASS_PREFIX=e;exports.DEFAULT_KIND_TO_ELEMENT_MAP=h;exports.TEXT_ALIGNMENT_VALUES=s;exports.TEXT_COLOR_VALUES=i;exports.TEXT_ELEMENT_VALUES=n;exports.TEXT_KIND_VALUES=t;exports.TEXT_WEIGHT_VALUES=o;exports.TEXT_WORD_BREAK_VALUES=d;exports.TYPOGRAPHY_CLASS_BASE=a;exports.text=r;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { prefix as e, allColors as a } from "../lib/utils/constants.es.js";
|
|
2
|
+
const l = `${e}sem-typo-`, d = "compact-", n = [
|
|
3
|
+
"h1",
|
|
4
|
+
"h2",
|
|
5
|
+
"h3",
|
|
6
|
+
"h4",
|
|
7
|
+
"h5",
|
|
8
|
+
"h6",
|
|
9
|
+
"p",
|
|
10
|
+
"span",
|
|
11
|
+
"strong",
|
|
12
|
+
"div",
|
|
13
|
+
"mark",
|
|
14
|
+
"a",
|
|
15
|
+
"i",
|
|
16
|
+
"u",
|
|
17
|
+
"b",
|
|
18
|
+
"label",
|
|
19
|
+
"address",
|
|
20
|
+
"article",
|
|
21
|
+
"sub",
|
|
22
|
+
"sup",
|
|
23
|
+
"em",
|
|
24
|
+
"small",
|
|
25
|
+
"del",
|
|
26
|
+
"ins",
|
|
27
|
+
"abbr",
|
|
28
|
+
"blockquote",
|
|
29
|
+
"data",
|
|
30
|
+
"pre"
|
|
31
|
+
], s = ["start", "center", "end"], i = ["normal", "breakAll", "breakWord"], h = [
|
|
32
|
+
"heading-regular",
|
|
33
|
+
"heading-bold",
|
|
34
|
+
"body-regular",
|
|
35
|
+
"body-bold"
|
|
36
|
+
], t = [
|
|
37
|
+
a.primary,
|
|
38
|
+
a.secondary,
|
|
39
|
+
a.positive,
|
|
40
|
+
a.warning,
|
|
41
|
+
a.negative,
|
|
42
|
+
a.infoPrimary,
|
|
43
|
+
a.infoSecondary,
|
|
44
|
+
a.selected,
|
|
45
|
+
a.disabled,
|
|
46
|
+
a.primaryInverse,
|
|
47
|
+
a.secondaryInverse,
|
|
48
|
+
a.expressive,
|
|
49
|
+
a.expressiveStronger,
|
|
50
|
+
a.expressiveInverse,
|
|
51
|
+
a.expressiveInverseStronger
|
|
52
|
+
], g = [
|
|
53
|
+
"heading-6xl",
|
|
54
|
+
"heading-5xl",
|
|
55
|
+
"heading-4xl",
|
|
56
|
+
"heading-3xl",
|
|
57
|
+
"heading-2xl",
|
|
58
|
+
"heading-xl",
|
|
59
|
+
"heading-lg",
|
|
60
|
+
"heading-md",
|
|
61
|
+
"heading-sm",
|
|
62
|
+
"heading-xs",
|
|
63
|
+
"heading-alt-6xl",
|
|
64
|
+
"heading-alt-5xl",
|
|
65
|
+
"heading-alt-4xl",
|
|
66
|
+
"heading-alt-3xl",
|
|
67
|
+
"heading-alt-2xl",
|
|
68
|
+
"heading-alt-xl",
|
|
69
|
+
"heading-alt-lg",
|
|
70
|
+
"heading-alt-md",
|
|
71
|
+
"heading-alt-sm",
|
|
72
|
+
"heading-alt-xs",
|
|
73
|
+
"body-2xl",
|
|
74
|
+
"body-xl",
|
|
75
|
+
"body-lg",
|
|
76
|
+
"body-md",
|
|
77
|
+
"body-sm",
|
|
78
|
+
"body-xs",
|
|
79
|
+
"detail-xl",
|
|
80
|
+
"detail-lg",
|
|
81
|
+
"detail-md",
|
|
82
|
+
"detail-sm",
|
|
83
|
+
"detail-xs",
|
|
84
|
+
"label-2xl",
|
|
85
|
+
"label-xl",
|
|
86
|
+
"label-lg",
|
|
87
|
+
"label-md",
|
|
88
|
+
"label-sm",
|
|
89
|
+
"label-xs"
|
|
90
|
+
], o = {
|
|
91
|
+
// defaults
|
|
92
|
+
"heading-6xl": "h1",
|
|
93
|
+
"heading-5xl": "h2",
|
|
94
|
+
"heading-4xl": "h3",
|
|
95
|
+
"heading-3xl": "h4",
|
|
96
|
+
"heading-2xl": "h5",
|
|
97
|
+
"heading-xl": "h6",
|
|
98
|
+
"heading-lg": "h6",
|
|
99
|
+
"heading-md": "h6",
|
|
100
|
+
"heading-sm": "h6",
|
|
101
|
+
"heading-xs": "h6",
|
|
102
|
+
"heading-alt-6xl": "h1",
|
|
103
|
+
"heading-alt-5xl": "h2",
|
|
104
|
+
"heading-alt-4xl": "h3",
|
|
105
|
+
"heading-alt-3xl": "h4",
|
|
106
|
+
"heading-alt-2xl": "h5",
|
|
107
|
+
"heading-alt-xl": "h6",
|
|
108
|
+
"heading-alt-lg": "h6",
|
|
109
|
+
"heading-alt-md": "h6",
|
|
110
|
+
"heading-alt-sm": "h6",
|
|
111
|
+
"heading-alt-xs": "h6",
|
|
112
|
+
"body-2xl": "span",
|
|
113
|
+
"body-xl": "span",
|
|
114
|
+
"body-lg": "span",
|
|
115
|
+
"body-md": "span",
|
|
116
|
+
"body-sm": "span",
|
|
117
|
+
"body-xs": "span",
|
|
118
|
+
"detail-xl": "span",
|
|
119
|
+
"detail-lg": "span",
|
|
120
|
+
"detail-md": "span",
|
|
121
|
+
"detail-sm": "span",
|
|
122
|
+
"detail-xs": "span",
|
|
123
|
+
"label-2xl": "span",
|
|
124
|
+
"label-xl": "span",
|
|
125
|
+
"label-lg": "span",
|
|
126
|
+
"label-md": "span",
|
|
127
|
+
"label-sm": "span",
|
|
128
|
+
"label-xs": "span"
|
|
129
|
+
}, r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
130
|
+
__proto__: null,
|
|
131
|
+
COMPACT_CLASS_PREFIX: d,
|
|
132
|
+
DEFAULT_KIND_TO_ELEMENT_MAP: o,
|
|
133
|
+
TEXT_ALIGNMENT_VALUES: s,
|
|
134
|
+
TEXT_COLOR_VALUES: t,
|
|
135
|
+
TEXT_ELEMENT_VALUES: n,
|
|
136
|
+
TEXT_KIND_VALUES: g,
|
|
137
|
+
TEXT_WEIGHT_VALUES: h,
|
|
138
|
+
TEXT_WORD_BREAK_VALUES: i,
|
|
139
|
+
TYPOGRAPHY_CLASS_BASE: l
|
|
140
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
141
|
+
export {
|
|
142
|
+
d as C,
|
|
143
|
+
o as D,
|
|
144
|
+
l as T,
|
|
145
|
+
n as a,
|
|
146
|
+
s as b,
|
|
147
|
+
i as c,
|
|
148
|
+
h as d,
|
|
149
|
+
t as e,
|
|
150
|
+
g as f,
|
|
151
|
+
r as t
|
|
152
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const s = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
async function l(e) {
|
|
3
|
+
const o = e.offsetHeight, t = e.clientHeight, i = o - t;
|
|
4
|
+
e.style.overflow = "hidden", e.scrollHeight === t && (e.style.height = "0");
|
|
5
|
+
const n = e.scrollHeight;
|
|
6
|
+
e.style.height = `${n + i}px`;
|
|
7
|
+
}
|
|
8
|
+
const c = (e, o) => {
|
|
9
|
+
const t = s.get(e);
|
|
10
|
+
if (s.set(e, o), !o) {
|
|
11
|
+
t && (e.style.height = "unset", e.style.overflow = "visible");
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
l(e);
|
|
15
|
+
}, g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
autoResizeTextArea: c
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
+
export {
|
|
20
|
+
c as a,
|
|
21
|
+
g as t
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=new WeakMap;async function l(e){const t=e.offsetHeight,o=e.clientHeight,n=t-o;e.style.overflow="hidden",e.scrollHeight===o&&(e.style.height="0");const c=e.scrollHeight;e.style.height=`${c+n}px`}const s=(e,t)=>{const o=i.get(e);if(i.set(e,t),!t){o&&(e.style.height="unset",e.style.overflow="visible");return}l(e)},g=Object.freeze(Object.defineProperty({__proto__:null,autoResizeTextArea:s},Symbol.toStringTag,{value:"Module"}));exports.autoResizeTextArea=s;exports.textArea=g;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { appearances as o } from "../lib/utils/constants.es.js";
|
|
2
|
+
const e = 7e3, n = 500, s = "top-left", a = "top-center", r = "top-right", i = "bottom-left", p = "bottom-center", c = "bottom-right", t = {
|
|
3
|
+
topLeft: s,
|
|
4
|
+
topCenter: a,
|
|
5
|
+
topRight: r,
|
|
6
|
+
bottomLeft: i,
|
|
7
|
+
bottomCenter: p,
|
|
8
|
+
bottomRight: c
|
|
9
|
+
}, b = [
|
|
10
|
+
t.bottomLeft,
|
|
11
|
+
t.bottomCenter,
|
|
12
|
+
t.bottomRight,
|
|
13
|
+
t.topLeft,
|
|
14
|
+
t.topCenter,
|
|
15
|
+
t.topRight
|
|
16
|
+
], m = [
|
|
17
|
+
o.information,
|
|
18
|
+
o.positive,
|
|
19
|
+
o.warning,
|
|
20
|
+
o.negative
|
|
21
|
+
], f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
DEFAULT_TOAST_TIMEOUT_DURATION: e,
|
|
24
|
+
TOAST_ANIMATION_DURATION: n,
|
|
25
|
+
positions: t,
|
|
26
|
+
toastAppearances: m,
|
|
27
|
+
toastContainerPositions: b
|
|
28
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
29
|
+
export {
|
|
30
|
+
e as D,
|
|
31
|
+
n as T,
|
|
32
|
+
b as a,
|
|
33
|
+
m as b,
|
|
34
|
+
t as p,
|
|
35
|
+
f as t
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("../lib/utils/constants.cjs.js"),e=7e3,n=500,i="top-left",p="top-center",r="top-right",c="bottom-left",T="bottom-center",A="bottom-right",t={topLeft:i,topCenter:p,topRight:r,bottomLeft:c,bottomCenter:T,bottomRight:A},s=[t.bottomLeft,t.bottomCenter,t.bottomRight,t.topLeft,t.topCenter,t.topRight],a=[o.appearances.information,o.appearances.positive,o.appearances.warning,o.appearances.negative],_=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_TOAST_TIMEOUT_DURATION:e,TOAST_ANIMATION_DURATION:n,positions:t,toastAppearances:a,toastContainerPositions:s},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_TOAST_TIMEOUT_DURATION=e;exports.TOAST_ANIMATION_DURATION=n;exports.positions=t;exports.toast=_;exports.toastAppearances=a;exports.toastContainerPositions=s;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { allSizes as o } from "../lib/utils/constants.es.js";
|
|
2
|
+
const t = [
|
|
3
|
+
o.xs,
|
|
4
|
+
o.sm,
|
|
5
|
+
o.md,
|
|
6
|
+
o.lg,
|
|
7
|
+
o.xl,
|
|
8
|
+
"none"
|
|
9
|
+
], l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
tooltipSizes: t
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
13
|
+
export {
|
|
14
|
+
t as a,
|
|
15
|
+
l as t
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("../lib/utils/constants.cjs.js"),t=[l.allSizes.xs,l.allSizes.sm,l.allSizes.md,l.allSizes.lg,l.allSizes.xl,"none"],e=Object.freeze(Object.defineProperty({__proto__:null,tooltipSizes:t},Symbol.toStringTag,{value:"Module"}));exports.tooltip=e;exports.tooltipSizes=t;
|
package/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunks/accordion.C1LkPYXv.js"),s=require("./chunks/actionList.LFHBSlrg.js"),a=require("./chunks/alert.B4q5-o6H.js"),c=require("./chunks/avatar.VNzxbOMa.js"),l=require("./chunks/badge.B_k2GBe6.js"),p=require("./chunks/badgeDot.Dkqfk3zg.js"),_=require("./chunks/box.CsO__7hu.js"),m=require("./chunks/button.Bbz_mfWv.js"),u=require("./chunks/card.CLwQAceo.js"),d=require("./chunks/chips.DKEagIsp.js"),b=require("./chunks/closeButton.C1A3p88y.js"),E=require("./chunks/dialog.DnkeApRr.js"),g=require("./chunks/divider.BYMLu6Wp.js"),S=require("./chunks/fileUpload.C-l2YXzO.js"),T=require("./chunks/form.CIzlawbr.js"),C=require("./chunks/helperText.C-apoW8Z.js"),q=require("./chunks/icon.SiHuIfL8.js"),h=require("./chunks/inputChoiceGroup.BSousduj.js"),v=require("./chunks/link.VyBRMFxS.js"),A=require("./chunks/list.D6NIx1OS.js"),D=require("./chunks/logo.CLQZSaVN.js"),x=require("./chunks/nativeSelect.Lz45VyQX.js"),f=require("./chunks/pageHeader.CbDGb6ot.js"),P=require("./chunks/pagination.Br7vTt5b.js"),F=require("./chunks/progressBar.DcG-X-RY.js"),y=require("./chunks/SegmentedControl.D0l_8a7O.js"),N=require("./chunks/spinner.B6R6yphw.js"),R=require("./chunks/stepper.ByKqsxhz.js"),L=require("./chunks/switch.Dalf8ccu.js"),M=require("./chunks/tabs.C7SBQq_R.js"),O=require("./chunks/text.CW-ftgoP.js"),B=require("./chunks/textArea.DF76BVU5.js"),U=require("./chunks/toast.C-h1RUq_.js"),I=require("./chunks/tooltip.DZTJP5dS.js"),V=require("./lib/shared.cjs.js"),i=require("./lib/utils/classNames.cjs.js"),e=require("./lib/utils/constants.cjs.js"),t=require("./lib/utils/helpers.cjs.js"),w=require("./lib/utils/styles.cjs.js"),n=require("./lib/utils/dom.cjs.js"),Y=require("./lib/utils/raf.cjs.js"),o=require("./lib/utils/overflow.cjs.js");exports.accordion=r.accordion;exports.actionList=s.actionList;exports.alert=a.alert;exports.avatar=c.avatar;exports.badge=l.badge;exports.badgeDot=p.badgeDot;exports.box=_.box;exports.button=m.button;exports.card=u.card;exports.chips=d.chips;exports.closeButton=b.closeButton;exports.dialog=E.dialog;exports.divider=g.divider;exports.fileUpload=S.fileUpload;exports.form=T.form;exports.helperText=C.helperText;exports.icon=q.icon;exports.inputChoiceGroup=h.inputChoiceGroup;exports.link=v.link;exports.list=A.list;exports.logo=D.logo;exports.nativeSelect=x.nativeSelect;exports.pageHeader=f.pageHeader;exports.pagination=P.pagination;exports.progressBar=F.progressBar;exports.segmentedControl=y.SegmentedControl;exports.spinner=N.spinner;exports.stepper=R.stepper;exports.switch=L._switch;exports.tabs=M.tabs;exports.text=O.text;exports.textArea=B.textArea;exports.toast=U.toast;exports.tooltip=I.tooltip;exports.shared=V.shared;exports.generateSpacingClasses=i.generateSpacingClasses;exports.getBEMClassNames=i.getBEMClassNames;exports.ACCENT=e.ACCENT;exports.ATTRIBUTE=e.ATTRIBUTE;exports.BASE_FONT_SIZE=e.BASE_FONT_SIZE;exports.BEAM_INVERSE=e.BEAM_INVERSE;exports.DEFAULT_ACCENT=e.DEFAULT_ACCENT;exports.DEFAULT_MODE=e.DEFAULT_MODE;exports.DEFAULT_PRODUCT_TYPE=e.DEFAULT_PRODUCT_TYPE;exports.DEFAULT_THEME=e.DEFAULT_THEME;exports.EXPRESSIVE_THEMES=e.EXPRESSIVE_THEMES;exports.FPS_1=e.FPS_1;exports.FPS_120=e.FPS_120;exports.FPS_30=e.FPS_30;exports.FPS_60=e.FPS_60;exports.PRODUCT_TYPE=e.PRODUCT_TYPE;exports.STORAGE_KEY=e.STORAGE_KEY;exports.SYSTEM_MODE_ENABLED_KEY=e.SYSTEM_MODE_ENABLED_KEY;exports.SpacingValues=e.SpacingValues;exports.SpacingValuesAsNumbers=e.SpacingValuesAsNumbers;exports.StaticAppearances=e.StaticAppearances;exports.accentThemeClassName=e.accentThemeClassName;exports.allColors=e.allColors;exports.allSizes=e.allSizes;exports.appearance=e.appearance;exports.appearances=e.appearances;exports.consumer=e.consumer;exports.emphases=e.emphases;exports.enterprise=e.enterprise;exports.expressiveThemeClassName=e.expressiveThemeClassName;exports.info=e.info;exports.infoPrimary=e.infoPrimary;exports.infoSecondary=e.infoSecondary;exports.information=e.information;exports.inverse=e.inverse;exports.lg=e.lg;exports.md=e.md;exports.negative=e.negative;exports.positive=e.positive;exports.prefix=e.prefix;exports.primary=e.primary;exports.productTypeThemeClassName=e.productTypeThemeClassName;exports.secondary=e.secondary;exports.secondaryInverse=e.secondaryInverse;exports.sizes=e.sizes;exports.sm=e.sm;exports.themeClassName=e.themeClassName;exports.themeTypeValues=e.themeTypeValues;exports.warning=e.warning;exports.xl=e.xl;exports.xs=e.xs;exports.xxs=e.xxs;exports.Directions=t.Directions;exports.attributeDecorator=t.attributeDecorator;exports.camelCaseToKebabCase=t.camelCaseToKebabCase;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.debounce=t.debounce;exports.doesEventContainElement=t.doesEventContainElement;exports.doesWebComponentSlotExist=t.doesWebComponentSlotExist;exports.enrichSVGIcon=t.enrichSVGIcon;exports.findFirstFocusableElement=t.findFirstFocusableElement;exports.getDirection=t.getDirection;exports.getRandomArbitrary=t.getRandomArbitrary;exports.getRandomInt=t.getRandomInt;exports.getTypedEntries=t.getTypedEntries;exports.getTypedValues=t.getTypedValues;exports.isAPISupported=t.isAPISupported;exports.isMobileDevice=t.isMobileDevice;exports.nodesHaveContent=t.nodesHaveContent;exports.partitionProps=t.partitionProps;exports.propsChanged=t.propsChanged;exports.throttle=t.throttle;exports.generateCssVarPrefix=w.generateCssVarPrefix;exports.addScrollToRect=n.addScrollToRect;exports.compareDomOrder=n.compareDomOrder;exports.findTopLevelSlottedWrapper=n.findTopLevelSlottedWrapper;exports.getElementScrollBoundingClientRect=n.getElementScrollBoundingClientRect;exports.readStringProp=n.readStringProp;exports.createRafScheduler=Y.createRafScheduler;exports.computeFitCount=o.computeFitCount;exports.hasScrollOverflow=o.hasScrollOverflow;exports.isMultiLineClamped=o.isMultiLineClamped;exports.isOverFlowing=o.isOverFlowing;exports.isSingleLineClamped=o.isSingleLineClamped;exports.isTextWrapping=o.isTextWrapping;
|
package/index.d.ts
ADDED
package/index.es.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { a as o } from "./chunks/accordion.CCM7ddD5.js";
|
|
2
|
+
import { a } from "./chunks/actionList.X99uHmXK.js";
|
|
3
|
+
import { a as p } from "./chunks/alert.BZ4L-6bC.js";
|
|
4
|
+
import { a as m } from "./chunks/avatar.BbM_sNXk.js";
|
|
5
|
+
import { b as l } from "./chunks/badge.DZN0yrZh.js";
|
|
6
|
+
import { b as x } from "./chunks/badgeDot.ClhZtqzd.js";
|
|
7
|
+
import { b as d } from "./chunks/box._mFtvgTp.js";
|
|
8
|
+
import { b as S } from "./chunks/button.Dz8Zhr7J.js";
|
|
9
|
+
import { c as g } from "./chunks/card.CG-SDcm1.js";
|
|
10
|
+
import { c as u } from "./chunks/chips.GU9UVEOU.js";
|
|
11
|
+
import { c as b } from "./chunks/closeButton.g8_iRoUg.js";
|
|
12
|
+
import { d as A } from "./chunks/dialog.BTq-pLBf.js";
|
|
13
|
+
import { d as v } from "./chunks/divider.DgP7kpLb.js";
|
|
14
|
+
import { f as P } from "./chunks/fileUpload.BbSIsjJv.js";
|
|
15
|
+
import { f as R } from "./chunks/form.BRWIo59c.js";
|
|
16
|
+
import { h as L } from "./chunks/helperText.CS5sun4r.js";
|
|
17
|
+
import { i as O } from "./chunks/icon.tCAxaKQh.js";
|
|
18
|
+
import { i as I } from "./chunks/inputChoiceGroup.DkDdA57f.js";
|
|
19
|
+
import { l as V } from "./chunks/link.DxTb3yhm.js";
|
|
20
|
+
import { l as w } from "./chunks/list.CCq0lIzm.js";
|
|
21
|
+
import { l as z } from "./chunks/logo.Cl29Chxj.js";
|
|
22
|
+
import { n as K } from "./chunks/nativeSelect.D9HZm9uJ.js";
|
|
23
|
+
import { p as k } from "./chunks/pageHeader.fsTiHDRc.js";
|
|
24
|
+
import { p as Z } from "./chunks/pagination.DinViL55.js";
|
|
25
|
+
import { p as q } from "./chunks/progressBar.84w2qF8R.js";
|
|
26
|
+
import { S as Q } from "./chunks/SegmentedControl.B9dLCFSF.js";
|
|
27
|
+
import { s as ee } from "./chunks/spinner.oNNLX64f.js";
|
|
28
|
+
import { s as oe } from "./chunks/stepper.FT6nDHjL.js";
|
|
29
|
+
import { _ as ae } from "./chunks/switch.hUukrKTd.js";
|
|
30
|
+
import { t as pe } from "./chunks/tabs.CIfcdjPn.js";
|
|
31
|
+
import { t as me } from "./chunks/text.DpbJhMDB.js";
|
|
32
|
+
import { t as le } from "./chunks/textArea.CmtmGm_y.js";
|
|
33
|
+
import { t as xe } from "./chunks/toast.Bs1t4Urq.js";
|
|
34
|
+
import { t as de } from "./chunks/tooltip.D1fCHa9d.js";
|
|
35
|
+
import { shared as Se } from "./lib/shared.es.js";
|
|
36
|
+
import { generateSpacingClasses as ge, getBEMClassNames as Ce } from "./lib/utils/classNames.es.js";
|
|
37
|
+
import { ACCENT as _e, ATTRIBUTE as be, BASE_FONT_SIZE as he, BEAM_INVERSE as Ae, DEFAULT_ACCENT as De, DEFAULT_MODE as ve, DEFAULT_PRODUCT_TYPE as Fe, DEFAULT_THEME as Pe, EXPRESSIVE_THEMES as Ne, FPS_1 as Re, FPS_120 as ye, FPS_30 as Le, FPS_60 as Me, PRODUCT_TYPE as Oe, STORAGE_KEY as Be, SYSTEM_MODE_ENABLED_KEY as Ie, SpacingValues as Ue, SpacingValuesAsNumbers as Ve, StaticAppearances as Ye, accentThemeClassName as we, allColors as He, allSizes as ze, appearance as Ge, appearances as Ke, consumer as We, emphases as ke, enterprise as Xe, expressiveThemeClassName as Ze, info as je, infoPrimary as qe, infoSecondary as Je, information as Qe, inverse as $e, lg as er, md as rr, negative as or, positive as tr, prefix as ar, primary as sr, productTypeThemeClassName as pr, secondary as ir, secondaryInverse as mr, sizes as nr, sm as lr, themeClassName as fr, themeTypeValues as xr, warning as cr, xl as dr, xs as Er, xxs as Sr } from "./lib/utils/constants.es.js";
|
|
38
|
+
import { Directions as gr, attributeDecorator as Cr, camelCaseToKebabCase as ur, capitalizeFirstLetter as _r, debounce as br, doesEventContainElement as hr, doesWebComponentSlotExist as Ar, enrichSVGIcon as Dr, findFirstFocusableElement as vr, getDirection as Fr, getRandomArbitrary as Pr, getRandomInt as Nr, getTypedEntries as Rr, getTypedValues as yr, isAPISupported as Lr, isMobileDevice as Mr, nodesHaveContent as Or, partitionProps as Br, propsChanged as Ir, throttle as Ur } from "./lib/utils/helpers.es.js";
|
|
39
|
+
import { generateCssVarPrefix as Yr } from "./lib/utils/styles.es.js";
|
|
40
|
+
import { addScrollToRect as Hr, compareDomOrder as zr, findTopLevelSlottedWrapper as Gr, getElementScrollBoundingClientRect as Kr, readStringProp as Wr } from "./lib/utils/dom.es.js";
|
|
41
|
+
import { createRafScheduler as Xr } from "./lib/utils/raf.es.js";
|
|
42
|
+
import { computeFitCount as jr, hasScrollOverflow as qr, isMultiLineClamped as Jr, isOverFlowing as Qr, isSingleLineClamped as $r, isTextWrapping as eo } from "./lib/utils/overflow.es.js";
|
|
43
|
+
export {
|
|
44
|
+
_e as ACCENT,
|
|
45
|
+
be as ATTRIBUTE,
|
|
46
|
+
he as BASE_FONT_SIZE,
|
|
47
|
+
Ae as BEAM_INVERSE,
|
|
48
|
+
De as DEFAULT_ACCENT,
|
|
49
|
+
ve as DEFAULT_MODE,
|
|
50
|
+
Fe as DEFAULT_PRODUCT_TYPE,
|
|
51
|
+
Pe as DEFAULT_THEME,
|
|
52
|
+
gr as Directions,
|
|
53
|
+
Ne as EXPRESSIVE_THEMES,
|
|
54
|
+
Re as FPS_1,
|
|
55
|
+
ye as FPS_120,
|
|
56
|
+
Le as FPS_30,
|
|
57
|
+
Me as FPS_60,
|
|
58
|
+
Oe as PRODUCT_TYPE,
|
|
59
|
+
Be as STORAGE_KEY,
|
|
60
|
+
Ie as SYSTEM_MODE_ENABLED_KEY,
|
|
61
|
+
Ue as SpacingValues,
|
|
62
|
+
Ve as SpacingValuesAsNumbers,
|
|
63
|
+
Ye as StaticAppearances,
|
|
64
|
+
we as accentThemeClassName,
|
|
65
|
+
o as accordion,
|
|
66
|
+
a as actionList,
|
|
67
|
+
Hr as addScrollToRect,
|
|
68
|
+
p as alert,
|
|
69
|
+
He as allColors,
|
|
70
|
+
ze as allSizes,
|
|
71
|
+
Ge as appearance,
|
|
72
|
+
Ke as appearances,
|
|
73
|
+
Cr as attributeDecorator,
|
|
74
|
+
m as avatar,
|
|
75
|
+
l as badge,
|
|
76
|
+
x as badgeDot,
|
|
77
|
+
d as box,
|
|
78
|
+
S as button,
|
|
79
|
+
ur as camelCaseToKebabCase,
|
|
80
|
+
_r as capitalizeFirstLetter,
|
|
81
|
+
g as card,
|
|
82
|
+
u as chips,
|
|
83
|
+
b as closeButton,
|
|
84
|
+
zr as compareDomOrder,
|
|
85
|
+
jr as computeFitCount,
|
|
86
|
+
We as consumer,
|
|
87
|
+
Xr as createRafScheduler,
|
|
88
|
+
br as debounce,
|
|
89
|
+
A as dialog,
|
|
90
|
+
v as divider,
|
|
91
|
+
hr as doesEventContainElement,
|
|
92
|
+
Ar as doesWebComponentSlotExist,
|
|
93
|
+
ke as emphases,
|
|
94
|
+
Dr as enrichSVGIcon,
|
|
95
|
+
Xe as enterprise,
|
|
96
|
+
Ze as expressiveThemeClassName,
|
|
97
|
+
P as fileUpload,
|
|
98
|
+
vr as findFirstFocusableElement,
|
|
99
|
+
Gr as findTopLevelSlottedWrapper,
|
|
100
|
+
R as form,
|
|
101
|
+
Yr as generateCssVarPrefix,
|
|
102
|
+
ge as generateSpacingClasses,
|
|
103
|
+
Ce as getBEMClassNames,
|
|
104
|
+
Fr as getDirection,
|
|
105
|
+
Kr as getElementScrollBoundingClientRect,
|
|
106
|
+
Pr as getRandomArbitrary,
|
|
107
|
+
Nr as getRandomInt,
|
|
108
|
+
Rr as getTypedEntries,
|
|
109
|
+
yr as getTypedValues,
|
|
110
|
+
qr as hasScrollOverflow,
|
|
111
|
+
L as helperText,
|
|
112
|
+
O as icon,
|
|
113
|
+
je as info,
|
|
114
|
+
qe as infoPrimary,
|
|
115
|
+
Je as infoSecondary,
|
|
116
|
+
Qe as information,
|
|
117
|
+
I as inputChoiceGroup,
|
|
118
|
+
$e as inverse,
|
|
119
|
+
Lr as isAPISupported,
|
|
120
|
+
Mr as isMobileDevice,
|
|
121
|
+
Jr as isMultiLineClamped,
|
|
122
|
+
Qr as isOverFlowing,
|
|
123
|
+
$r as isSingleLineClamped,
|
|
124
|
+
eo as isTextWrapping,
|
|
125
|
+
er as lg,
|
|
126
|
+
V as link,
|
|
127
|
+
w as list,
|
|
128
|
+
z as logo,
|
|
129
|
+
rr as md,
|
|
130
|
+
K as nativeSelect,
|
|
131
|
+
or as negative,
|
|
132
|
+
Or as nodesHaveContent,
|
|
133
|
+
k as pageHeader,
|
|
134
|
+
Z as pagination,
|
|
135
|
+
Br as partitionProps,
|
|
136
|
+
tr as positive,
|
|
137
|
+
ar as prefix,
|
|
138
|
+
sr as primary,
|
|
139
|
+
pr as productTypeThemeClassName,
|
|
140
|
+
q as progressBar,
|
|
141
|
+
Ir as propsChanged,
|
|
142
|
+
Wr as readStringProp,
|
|
143
|
+
ir as secondary,
|
|
144
|
+
mr as secondaryInverse,
|
|
145
|
+
Q as segmentedControl,
|
|
146
|
+
Se as shared,
|
|
147
|
+
nr as sizes,
|
|
148
|
+
lr as sm,
|
|
149
|
+
ee as spinner,
|
|
150
|
+
oe as stepper,
|
|
151
|
+
ae as switch,
|
|
152
|
+
pe as tabs,
|
|
153
|
+
me as text,
|
|
154
|
+
le as textArea,
|
|
155
|
+
fr as themeClassName,
|
|
156
|
+
xr as themeTypeValues,
|
|
157
|
+
Ur as throttle,
|
|
158
|
+
xe as toast,
|
|
159
|
+
de as tooltip,
|
|
160
|
+
cr as warning,
|
|
161
|
+
dr as xl,
|
|
162
|
+
Er as xs,
|
|
163
|
+
Sr as xxs
|
|
164
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../utils/constants.cjs.js");const e=require("../../chunks/SegmentedControl.D0l_8a7O.js");exports.SegmentedControlSizes=e.SegmentedControlSizes;
|