@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
package/README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# 🔧 Beam Shared
|
|
2
|
+
|
|
3
|
+
Shared utilities, component definitions, and constants for the Beam Design System. This package provides framework-agnostic code used across `@viasat/beam-react` and `@viasat/beam-web-components`.
|
|
4
|
+
|
|
5
|
+
## 🔖 Table of Contents
|
|
6
|
+
|
|
7
|
+
1. [📋 Overview](#overview)
|
|
8
|
+
2. [💻 Installation](#installation)
|
|
9
|
+
3. [🛠️ Usage](#usage)
|
|
10
|
+
4. [📁 Package Structure](#package-structure)
|
|
11
|
+
5. [📤 Exports](#exports)
|
|
12
|
+
6. [🎯 When to Use](#when-to-use)
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
`@viasat/beam-shared` contains common code that is shared between React and Web Components implementations, including:
|
|
17
|
+
|
|
18
|
+
- **Component Definitions** - Shared interfaces, types, and constants for all Beam components
|
|
19
|
+
- **Utility Functions** - Helper functions for class names, DOM manipulation, and styling
|
|
20
|
+
- **Constants** - Design system constants (themes, sizes, appearances, etc.)
|
|
21
|
+
- **Type Definitions** - TypeScript types shared across packages
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install @viasat/beam-shared
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
> **Note**: This package is typically installed automatically as a dependency of `@viasat/beam-react` or `@viasat/beam-web-components`.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
### Importing Component Definitions
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
import {
|
|
37
|
+
ButtonKind,
|
|
38
|
+
ButtonAppearance,
|
|
39
|
+
ButtonSize,
|
|
40
|
+
} from '@viasat/beam-shared/components/button';
|
|
41
|
+
|
|
42
|
+
import { AlertAppearance } from '@viasat/beam-shared/components/alert';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Importing Utilities
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import {
|
|
49
|
+
getBEMClassNames,
|
|
50
|
+
generateSpacingClasses,
|
|
51
|
+
} from '@viasat/beam-shared/utils/classNames';
|
|
52
|
+
|
|
53
|
+
import { ThemeTypes, ProductType } from '@viasat/beam-shared/utils/constants';
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Package Structure
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
@viasat/beam-shared/
|
|
60
|
+
├── components/ # Component-specific definitions
|
|
61
|
+
│ ├── button.ts
|
|
62
|
+
│ ├── alert.ts
|
|
63
|
+
│ ├── badge.ts
|
|
64
|
+
│ └── ...
|
|
65
|
+
└── utils/ # Shared utilities
|
|
66
|
+
├── classNames.ts
|
|
67
|
+
├── constants.ts
|
|
68
|
+
├── dom.ts
|
|
69
|
+
├── helpers.ts
|
|
70
|
+
└── types.ts
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Exports
|
|
74
|
+
|
|
75
|
+
### Component Exports
|
|
76
|
+
|
|
77
|
+
Access component definitions using the pattern:
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
import { ... } from '@viasat/beam-shared/components/<component-name>';
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Utility Exports
|
|
84
|
+
|
|
85
|
+
Access utilities using the pattern:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { ... } from '@viasat/beam-shared/utils/<utility-name>';
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## When to Use
|
|
92
|
+
|
|
93
|
+
This package is intended for:
|
|
94
|
+
|
|
95
|
+
- ✅ Building custom Beam components
|
|
96
|
+
- ✅ Extending Beam functionality
|
|
97
|
+
- ✅ Integrating Beam with custom frameworks
|
|
98
|
+
- ✅ Sharing code between React and Web Components
|
|
99
|
+
|
|
100
|
+
This package is **not needed** if you're simply using `@viasat/beam-react` or `@viasat/beam-web-components` in your application.
|
|
101
|
+
|
|
102
|
+
## TypeScript
|
|
103
|
+
|
|
104
|
+
All exports are fully typed with TypeScript definitions included.
|
|
105
|
+
|
|
106
|
+
## License
|
|
107
|
+
|
|
108
|
+
MIT © Viasat
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { allSizes as e } from "../lib/utils/constants.es.js";
|
|
2
|
+
const o = [e.sm, e.md, e.lg], l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
SegmentedControlSizes: o
|
|
5
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6
|
+
export {
|
|
7
|
+
l as S,
|
|
8
|
+
o as a
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),t=[e.allSizes.sm,e.allSizes.md,e.allSizes.lg],l=Object.freeze(Object.defineProperty({__proto__:null,SegmentedControlSizes:t},Symbol.toStringTag,{value:"Module"}));exports.SegmentedControl=l;exports.SegmentedControlSizes=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),s=[e.allSizes.sm,e.allSizes.md,e.allSizes.lg],l=e.allSizes.md,o=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ACCORDION_SIZE:l,sizes:s},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_ACCORDION_SIZE=l;exports.accordion=o;exports.sizes=s;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { allSizes as o } from "../lib/utils/constants.es.js";
|
|
2
|
+
const e = [o.sm, o.md, o.lg], s = o.md, r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
DEFAULT_ACCORDION_SIZE: s,
|
|
5
|
+
sizes: e
|
|
6
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
7
|
+
export {
|
|
8
|
+
s as D,
|
|
9
|
+
r as a,
|
|
10
|
+
e as s
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t="action",c="destructive",i="flyout",e="singleCheckMark",o="multiCheckMark",s="checkbox",n="radio",a="switch",k=[t,c,i],r=[e,o,s,n,a],l=[...k,...r],d=h=>r.includes(h),u=Object.freeze(Object.defineProperty({__proto__:null,action:t,actionListItemKinds:l,checkbox:s,destructive:c,flyout:i,isChoiceKind:d,multiCheckMark:o,radio:n,singleCheckMark:e,singleSwitch:a},Symbol.toStringTag,{value:"Module"}));exports.action=t;exports.actionList=u;exports.actionListItemKinds=l;exports.checkbox=s;exports.destructive=c;exports.flyout=i;exports.isChoiceKind=d;exports.multiCheckMark=o;exports.radio=n;exports.singleCheckMark=e;exports.singleSwitch=a;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const s = "action", t = "destructive", c = "flyout", o = "singleCheckMark", e = "multiCheckMark", i = "checkbox", n = "radio", a = "switch", d = [s, t, c], r = [o, e, i, n, a], h = [...d, ...r], k = (l) => r.includes(l), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2
|
+
__proto__: null,
|
|
3
|
+
action: s,
|
|
4
|
+
actionListItemKinds: h,
|
|
5
|
+
checkbox: i,
|
|
6
|
+
destructive: t,
|
|
7
|
+
flyout: c,
|
|
8
|
+
isChoiceKind: k,
|
|
9
|
+
multiCheckMark: e,
|
|
10
|
+
radio: n,
|
|
11
|
+
singleCheckMark: o,
|
|
12
|
+
singleSwitch: a
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
14
|
+
export {
|
|
15
|
+
u as a,
|
|
16
|
+
s as b,
|
|
17
|
+
i as c,
|
|
18
|
+
t as d,
|
|
19
|
+
a as e,
|
|
20
|
+
c as f,
|
|
21
|
+
h as g,
|
|
22
|
+
k as i,
|
|
23
|
+
e as m,
|
|
24
|
+
n as r,
|
|
25
|
+
o as s
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),c=require("../lib/utils/CSSLookup.cjs.js"),a=[e.allSizes.sm,e.allSizes.md],n=[e.appearances.infoPrimary,e.appearances.infoSecondary,e.appearances.positive,e.appearances.warning,e.appearances.negative],t={alert:"alert",alertDialog:"alertdialog"},s=i=>{const l=i==="sm"?2.625:3.125;return c.convertRemToPixels(l)},o={positive:"Success",warning:"Warning",negative:"Error",infoPrimary:"Information",infoSecondary:"Information"},r="Dismiss Alert",p=Object.freeze(Object.defineProperty({__proto__:null,appearances:n,closeButtonAriaLabel:r,getContentDefaultHeight:s,iconAriaLabels:o,roles:t,sizes:a},Symbol.toStringTag,{value:"Module"}));exports.alert=p;exports.appearances=n;exports.closeButtonAriaLabel=r;exports.getContentDefaultHeight=s;exports.iconAriaLabels=o;exports.roles=t;exports.sizes=a;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { allSizes as a, appearances as e } from "../lib/utils/constants.es.js";
|
|
2
|
+
import { convertRemToPixels as n } from "../lib/utils/CSSLookup.es.js";
|
|
3
|
+
const s = [a.sm, a.md], r = [
|
|
4
|
+
e.infoPrimary,
|
|
5
|
+
e.infoSecondary,
|
|
6
|
+
e.positive,
|
|
7
|
+
e.warning,
|
|
8
|
+
e.negative
|
|
9
|
+
], t = { alert: "alert", alertDialog: "alertdialog" }, i = (o) => n(o === "sm" ? 2.625 : 3.125), c = {
|
|
10
|
+
positive: "Success",
|
|
11
|
+
warning: "Warning",
|
|
12
|
+
negative: "Error",
|
|
13
|
+
infoPrimary: "Information",
|
|
14
|
+
infoSecondary: "Information"
|
|
15
|
+
}, l = "Dismiss Alert", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
appearances: r,
|
|
18
|
+
closeButtonAriaLabel: l,
|
|
19
|
+
getContentDefaultHeight: i,
|
|
20
|
+
iconAriaLabels: c,
|
|
21
|
+
roles: t,
|
|
22
|
+
sizes: s
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
+
export {
|
|
25
|
+
u as a,
|
|
26
|
+
r as b,
|
|
27
|
+
l as c,
|
|
28
|
+
i as g,
|
|
29
|
+
c as i,
|
|
30
|
+
t as r,
|
|
31
|
+
s
|
|
32
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { getBEMClassNames as i } from "../lib/utils/classNames.es.js";
|
|
2
|
+
import { allSizes as t } from "../lib/utils/constants.es.js";
|
|
3
|
+
import { convertRemToPixels as u } from "../lib/utils/CSSLookup.es.js";
|
|
4
|
+
const { baseClassNamePrefix: g, subElementClassPrefix: S, classModifierPrefix: v } = i("avatar"), M = ["circle", "square"], P = ["neutral", "accent"], b = "neutral", C = [
|
|
5
|
+
t.xs,
|
|
6
|
+
t.sm,
|
|
7
|
+
t.md,
|
|
8
|
+
t.lg,
|
|
9
|
+
t.xl
|
|
10
|
+
], _ = {
|
|
11
|
+
xs: 1.25,
|
|
12
|
+
sm: 1.5,
|
|
13
|
+
md: 2,
|
|
14
|
+
lg: 2.5,
|
|
15
|
+
xl: 3
|
|
16
|
+
}, N = (s, a) => {
|
|
17
|
+
var r, o, n;
|
|
18
|
+
const e = s.split(" "), p = e.length > 1, f = a !== "xs" && p, d = (r = e.at(0)) != null && r.startsWith("+") ? e.at(0) : void 0, x = `${((o = e.at(0)) == null ? void 0 : o[0]) || ""}${f && ((n = e.at(-1)) == null ? void 0 : n[0]) || ""}`.toUpperCase();
|
|
19
|
+
return d || x;
|
|
20
|
+
}, c = 0.25, l = 0.5, m = (s, a) => (["xs", "sm", "md"].includes(s) ? c : l) * (a === "stacked" ? 1 : -1), h = (s, a) => u(m(s, a)) * (a === "stacked" ? 1 : -1), z = ["stacked", "spaced"], {
|
|
21
|
+
baseClassNamePrefix: E,
|
|
22
|
+
subElementClassPrefix: A,
|
|
23
|
+
classModifierPrefix: I
|
|
24
|
+
} = i("avatar-group"), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
MARGIN_SIZE_LG: l,
|
|
27
|
+
MARGIN_SIZE_SM: c,
|
|
28
|
+
avatarAppearances: P,
|
|
29
|
+
avatarGroupLayouts: z,
|
|
30
|
+
avatarShapes: M,
|
|
31
|
+
avatarSizeRem: _,
|
|
32
|
+
avatarSizes: C,
|
|
33
|
+
baseClassNamePrefix: g,
|
|
34
|
+
classModifierPrefix: v,
|
|
35
|
+
defaultBadgeAppearance: b,
|
|
36
|
+
getAvatarText: N,
|
|
37
|
+
getMarginSizePx: h,
|
|
38
|
+
getMarginSizeRem: m,
|
|
39
|
+
groupBaseClassNamePrefix: E,
|
|
40
|
+
groupClassModifierPrefix: I,
|
|
41
|
+
groupSubElementClassPrefix: A,
|
|
42
|
+
subElementClassPrefix: S
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
44
|
+
export {
|
|
45
|
+
c as M,
|
|
46
|
+
T as a,
|
|
47
|
+
g as b,
|
|
48
|
+
v as c,
|
|
49
|
+
M as d,
|
|
50
|
+
P as e,
|
|
51
|
+
b as f,
|
|
52
|
+
C as g,
|
|
53
|
+
_ as h,
|
|
54
|
+
N as i,
|
|
55
|
+
l as j,
|
|
56
|
+
m as k,
|
|
57
|
+
h as l,
|
|
58
|
+
z as m,
|
|
59
|
+
E as n,
|
|
60
|
+
A as o,
|
|
61
|
+
I as p,
|
|
62
|
+
S as s
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("../lib/utils/classNames.cjs.js"),t=require("../lib/utils/constants.cjs.js"),R=require("../lib/utils/CSSLookup.cjs.js"),{baseClassNamePrefix:S,subElementClassPrefix:m,classModifierPrefix:p}=u.getBEMClassNames("avatar"),g=["circle","square"],x=["neutral","accent"],f="neutral",d=[t.allSizes.xs,t.allSizes.sm,t.allSizes.md,t.allSizes.lg,t.allSizes.xl],v={xs:1.25,sm:1.5,md:2,lg:2.5,xl:3},M=(a,e)=>{var o,n,c;const s=a.split(" "),N=s.length>1,E=e!=="xs"&&N,A=(o=s.at(0))!=null&&o.startsWith("+")?s.at(0):void 0,I=`${((n=s.at(0))==null?void 0:n[0])||""}${E&&((c=s.at(-1))==null?void 0:c[0])||""}`.toUpperCase();return A||I},r=.25,i=.5,l=(a,e)=>(["xs","sm","md"].includes(a)?r:i)*(e==="stacked"?1:-1),P=(a,e)=>R.convertRemToPixels(l(a,e))*(e==="stacked"?1:-1),_=["stacked","spaced"],{baseClassNamePrefix:C,subElementClassPrefix:b,classModifierPrefix:z}=u.getBEMClassNames("avatar-group"),G=Object.freeze(Object.defineProperty({__proto__:null,MARGIN_SIZE_LG:i,MARGIN_SIZE_SM:r,avatarAppearances:x,avatarGroupLayouts:_,avatarShapes:g,avatarSizeRem:v,avatarSizes:d,baseClassNamePrefix:S,classModifierPrefix:p,defaultBadgeAppearance:f,getAvatarText:M,getMarginSizePx:P,getMarginSizeRem:l,groupBaseClassNamePrefix:C,groupClassModifierPrefix:z,groupSubElementClassPrefix:b,subElementClassPrefix:m},Symbol.toStringTag,{value:"Module"}));exports.MARGIN_SIZE_LG=i;exports.MARGIN_SIZE_SM=r;exports.avatar=G;exports.avatarAppearances=x;exports.avatarGroupLayouts=_;exports.avatarShapes=g;exports.avatarSizeRem=v;exports.avatarSizes=d;exports.baseClassNamePrefix=S;exports.classModifierPrefix=p;exports.defaultBadgeAppearance=f;exports.getAvatarText=M;exports.getMarginSizePx=P;exports.getMarginSizeRem=l;exports.groupBaseClassNamePrefix=C;exports.groupClassModifierPrefix=z;exports.groupSubElementClassPrefix=b;exports.subElementClassPrefix=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const m=require("../lib/utils/classNames.cjs.js"),e=require("../lib/utils/constants.cjs.js"),a=[e.infoPrimary,e.infoSecondary,e.positive,e.warning,e.negative],s="badge",{baseClassNamePrefix:i,subElementClassPrefix:n,classModifierPrefix:r}=m.getBEMClassNames(s),t=[e.allSizes.sm,e.allSizes.md],o=[e.emphases.strong,e.emphases.medium,e.emphases.subtle],l=e.infoPrimary,c=e.emphases.strong,d={positive:"Success",warning:"Warning",negative:"Error",infoPrimary:"Information",infoSecondary:"Information"},f=Object.freeze(Object.defineProperty({__proto__:null,badgeAppearances:a,badgeEmphases:o,badgeSizes:t,baseClassNamePrefix:i,classModifierPrefix:r,classNameBase:s,defaultBadgeAppearance:l,defaultBadgeEmphasis:c,defaultIconsAriaLabels:d,subElementClassPrefix:n},Symbol.toStringTag,{value:"Module"}));exports.badge=f;exports.badgeAppearances=a;exports.badgeEmphases=o;exports.badgeSizes=t;exports.baseClassNamePrefix=i;exports.classModifierPrefix=r;exports.classNameBase=s;exports.defaultBadgeAppearance=l;exports.defaultBadgeEmphasis=c;exports.defaultIconsAriaLabels=d;exports.subElementClassPrefix=n;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { getBEMClassNames as n } from "../lib/utils/classNames.es.js";
|
|
2
|
+
import { infoPrimary as s, infoSecondary as r, positive as i, warning as t, negative as c, allSizes as e, emphases as a } from "../lib/utils/constants.es.js";
|
|
3
|
+
const m = [
|
|
4
|
+
s,
|
|
5
|
+
r,
|
|
6
|
+
i,
|
|
7
|
+
t,
|
|
8
|
+
c
|
|
9
|
+
], o = "badge", { baseClassNamePrefix: d, subElementClassPrefix: f, classModifierPrefix: g } = n(o), l = [e.sm, e.md], p = [
|
|
10
|
+
a.strong,
|
|
11
|
+
a.medium,
|
|
12
|
+
a.subtle
|
|
13
|
+
], b = s, u = a.strong, S = {
|
|
14
|
+
positive: "Success",
|
|
15
|
+
warning: "Warning",
|
|
16
|
+
negative: "Error",
|
|
17
|
+
infoPrimary: "Information",
|
|
18
|
+
infoSecondary: "Information"
|
|
19
|
+
}, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
|
+
__proto__: null,
|
|
21
|
+
badgeAppearances: m,
|
|
22
|
+
badgeEmphases: p,
|
|
23
|
+
badgeSizes: l,
|
|
24
|
+
baseClassNamePrefix: d,
|
|
25
|
+
classModifierPrefix: g,
|
|
26
|
+
classNameBase: o,
|
|
27
|
+
defaultBadgeAppearance: b,
|
|
28
|
+
defaultBadgeEmphasis: u,
|
|
29
|
+
defaultIconsAriaLabels: S,
|
|
30
|
+
subElementClassPrefix: f
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
|
+
export {
|
|
33
|
+
m as a,
|
|
34
|
+
v as b,
|
|
35
|
+
o as c,
|
|
36
|
+
d,
|
|
37
|
+
g as e,
|
|
38
|
+
l as f,
|
|
39
|
+
p as g,
|
|
40
|
+
b as h,
|
|
41
|
+
u as i,
|
|
42
|
+
S as j,
|
|
43
|
+
f as s
|
|
44
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { appearances as e, emphases as a } from "../lib/utils/constants.es.js";
|
|
2
|
+
const o = [
|
|
3
|
+
e.infoPrimary,
|
|
4
|
+
e.infoSecondary,
|
|
5
|
+
e.positive,
|
|
6
|
+
e.warning,
|
|
7
|
+
e.negative
|
|
8
|
+
], n = [a.strong, a.subtle], r = {
|
|
9
|
+
infoPrimary: "Primary Info",
|
|
10
|
+
infoSecondary: "Secondary Info",
|
|
11
|
+
positive: "Positive",
|
|
12
|
+
warning: "Warning",
|
|
13
|
+
negative: "Error"
|
|
14
|
+
}, t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
|
+
__proto__: null,
|
|
16
|
+
appearanceToAriaLabel: r,
|
|
17
|
+
badgeDotAppearance: o,
|
|
18
|
+
badgeDotEmphasis: n
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
export {
|
|
21
|
+
o as a,
|
|
22
|
+
t as b,
|
|
23
|
+
n as c,
|
|
24
|
+
r as d
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),a=[e.appearances.infoPrimary,e.appearances.infoSecondary,e.appearances.positive,e.appearances.warning,e.appearances.negative],n=[e.emphases.strong,e.emphases.subtle],r={infoPrimary:"Primary Info",infoSecondary:"Secondary Info",positive:"Positive",warning:"Warning",negative:"Error"},o=Object.freeze(Object.defineProperty({__proto__:null,appearanceToAriaLabel:r,badgeDotAppearance:a,badgeDotEmphasis:n},Symbol.toStringTag,{value:"Module"}));exports.appearanceToAriaLabel=r;exports.badgeDot=o;exports.badgeDotAppearance=a;exports.badgeDotEmphasis=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const S={NONE:"none",MD:"md",LG:"lg",XL:"xl",DIVIDER:"divider"},E={"00":"00","00_ALT":"00-alt","01":"01","02":"02","03":"03",POSITIVE:"positive",WARNING:"warning",NEGATIVE:"negative",INFO_PRIMARY:"info-primary",INFO_SECONDARY:"info-secondary",POSITIVE_STRONG:"positive-strong",WARNING_STRONG:"warning-strong",NEGATIVE_STRONG:"negative-strong",INFO_PRIMARY_STRONG:"info-primary-strong",INFO_SECONDARY_STRONG:"info-secondary-strong",SELECTED:"selected",SELECTED_SUBTLE:"selected-subtle",HIGHLIGHT:"highlight",TRANSPARENT:"transparent",INVERSE:"inverse",EXPRESSIVE:"expressive",EXPRESSIVE_STRONG:"expressive-stronger",EXPRESSIVE_INVERSE:"expressive-inverse"},e={"00":"00","00_ALT":"00-alt","01":"01","02":"02","03":"03",STRONG:"strong",POSITIVE:"positive",WARNING:"warning",NEGATIVE:"negative",INFO_PRIMARY:"info-primary",INFO_SECONDARY:"info-secondary",POSITIVE_STRONG:"positive-strong",WARNING_STRONG:"warning-strong",NEGATIVE_STRONG:"negative-strong",INFO_PRIMARY_STRONG:"info-primary-strong",INFO_SECONDARY_STRONG:"info-secondary-strong",SELECTED:"selected",FOCUS:"focus",INVERSE:"inverse",EXPRESSIVE:"expressive",EXPRESSIVE_STRONGER:"expressive-stronger",TRANSPARENT:"transparent"},R={NONE:"none",XS:"xs",SM:"sm",MD:"md",LG:"lg",ROUND:"round"},N={NONE:"none",SM:"sm",MD:"md",LG:"lg",OVERLAY:"overlay"},n=Object.freeze(Object.defineProperty({__proto__:null,BACKGROUND_COLORS_CLASS_NAMES:E,BORDER_COLORS_CLASS_NAMES:e,BORDER_RADIUS_CLASS_NAMES:R,BORDER_WIDTH_CLASS_NAMES:S,SHADOWS_CLASS_NAMES:N},Symbol.toStringTag,{value:"Module"}));exports.BACKGROUND_COLORS_CLASS_NAMES=E;exports.BORDER_COLORS_CLASS_NAMES=e;exports.BORDER_RADIUS_CLASS_NAMES=R;exports.BORDER_WIDTH_CLASS_NAMES=S;exports.SHADOWS_CLASS_NAMES=N;exports.box=n;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
NONE: "none",
|
|
3
|
+
MD: "md",
|
|
4
|
+
LG: "lg",
|
|
5
|
+
XL: "xl",
|
|
6
|
+
DIVIDER: "divider"
|
|
7
|
+
}, S = {
|
|
8
|
+
"00": "00",
|
|
9
|
+
"00_ALT": "00-alt",
|
|
10
|
+
"01": "01",
|
|
11
|
+
"02": "02",
|
|
12
|
+
"03": "03",
|
|
13
|
+
POSITIVE: "positive",
|
|
14
|
+
WARNING: "warning",
|
|
15
|
+
NEGATIVE: "negative",
|
|
16
|
+
INFO_PRIMARY: "info-primary",
|
|
17
|
+
INFO_SECONDARY: "info-secondary",
|
|
18
|
+
POSITIVE_STRONG: "positive-strong",
|
|
19
|
+
WARNING_STRONG: "warning-strong",
|
|
20
|
+
NEGATIVE_STRONG: "negative-strong",
|
|
21
|
+
INFO_PRIMARY_STRONG: "info-primary-strong",
|
|
22
|
+
INFO_SECONDARY_STRONG: "info-secondary-strong",
|
|
23
|
+
SELECTED: "selected",
|
|
24
|
+
SELECTED_SUBTLE: "selected-subtle",
|
|
25
|
+
HIGHLIGHT: "highlight",
|
|
26
|
+
TRANSPARENT: "transparent",
|
|
27
|
+
INVERSE: "inverse",
|
|
28
|
+
EXPRESSIVE: "expressive",
|
|
29
|
+
EXPRESSIVE_STRONG: "expressive-stronger",
|
|
30
|
+
EXPRESSIVE_INVERSE: "expressive-inverse"
|
|
31
|
+
}, E = {
|
|
32
|
+
"00": "00",
|
|
33
|
+
"00_ALT": "00-alt",
|
|
34
|
+
"01": "01",
|
|
35
|
+
"02": "02",
|
|
36
|
+
"03": "03",
|
|
37
|
+
STRONG: "strong",
|
|
38
|
+
POSITIVE: "positive",
|
|
39
|
+
WARNING: "warning",
|
|
40
|
+
NEGATIVE: "negative",
|
|
41
|
+
INFO_PRIMARY: "info-primary",
|
|
42
|
+
INFO_SECONDARY: "info-secondary",
|
|
43
|
+
POSITIVE_STRONG: "positive-strong",
|
|
44
|
+
WARNING_STRONG: "warning-strong",
|
|
45
|
+
NEGATIVE_STRONG: "negative-strong",
|
|
46
|
+
INFO_PRIMARY_STRONG: "info-primary-strong",
|
|
47
|
+
INFO_SECONDARY_STRONG: "info-secondary-strong",
|
|
48
|
+
SELECTED: "selected",
|
|
49
|
+
FOCUS: "focus",
|
|
50
|
+
INVERSE: "inverse",
|
|
51
|
+
EXPRESSIVE: "expressive",
|
|
52
|
+
EXPRESSIVE_STRONGER: "expressive-stronger",
|
|
53
|
+
TRANSPARENT: "transparent"
|
|
54
|
+
}, n = {
|
|
55
|
+
NONE: "none",
|
|
56
|
+
XS: "xs",
|
|
57
|
+
SM: "sm",
|
|
58
|
+
MD: "md",
|
|
59
|
+
LG: "lg",
|
|
60
|
+
ROUND: "round"
|
|
61
|
+
}, N = {
|
|
62
|
+
NONE: "none",
|
|
63
|
+
SM: "sm",
|
|
64
|
+
MD: "md",
|
|
65
|
+
LG: "lg",
|
|
66
|
+
OVERLAY: "overlay"
|
|
67
|
+
}, s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
68
|
+
__proto__: null,
|
|
69
|
+
BACKGROUND_COLORS_CLASS_NAMES: S,
|
|
70
|
+
BORDER_COLORS_CLASS_NAMES: E,
|
|
71
|
+
BORDER_RADIUS_CLASS_NAMES: n,
|
|
72
|
+
BORDER_WIDTH_CLASS_NAMES: e,
|
|
73
|
+
SHADOWS_CLASS_NAMES: N
|
|
74
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
75
|
+
export {
|
|
76
|
+
e as B,
|
|
77
|
+
N as S,
|
|
78
|
+
S as a,
|
|
79
|
+
s as b,
|
|
80
|
+
E as c,
|
|
81
|
+
n as d
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const T=require("../lib/utils/classNames.cjs.js"),e=require("../lib/utils/constants.cjs.js"),l={ACCENT:"accent",NEUTRAL:"neutral",NEUTRAL_SUBTLE:"neutral-subtle",DESTRUCTIVE:"destructive"},n=l.ACCENT,a={FILLED:"filled",OUTLINE:"outline",GHOST:"ghost",BARE:"bare"},i=a.FILLED,o={[e.allSizes.sm]:e.allSizes.sm,[e.allSizes.md]:e.allSizes.md,[e.allSizes.lg]:e.allSizes.lg},c=e.allSizes.md,E="button",{baseClassNamePrefix:u,classModifierPrefix:t,subElementClassPrefix:s}=T.getBEMClassNames(E),r={label:`${s}label`,iconWrap:`${s}icon-wrap`,loading:`${t}loading`,fluid:`${t}fluid`,iconOnly:`${t}icon-only`,loadingSpinner:`${s}loading-spinner`},d=(N,S)=>`${t}${S}-${N}`,f=Object.freeze(Object.defineProperty({__proto__:null,BUTTON_APPEARANCES:l,BUTTON_KINDS:a,BUTTON_SIZES:o,baseClassNamePrefix:u,classModifierPrefix:t,defaultButtonAppearance:n,defaultButtonKind:i,defaultButtonSize:c,getKindAppearanceClassName:d,staticButtonClassNames:r,subElementClassPrefix:s},Symbol.toStringTag,{value:"Module"}));exports.BUTTON_APPEARANCES=l;exports.BUTTON_KINDS=a;exports.BUTTON_SIZES=o;exports.baseClassNamePrefix=u;exports.button=f;exports.classModifierPrefix=t;exports.defaultButtonAppearance=n;exports.defaultButtonKind=i;exports.defaultButtonSize=c;exports.getKindAppearanceClassName=d;exports.staticButtonClassNames=r;exports.subElementClassPrefix=s;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { getBEMClassNames as i } from "../lib/utils/classNames.es.js";
|
|
2
|
+
import { allSizes as s } from "../lib/utils/constants.es.js";
|
|
3
|
+
const t = {
|
|
4
|
+
ACCENT: "accent",
|
|
5
|
+
NEUTRAL: "neutral",
|
|
6
|
+
NEUTRAL_SUBTLE: "neutral-subtle",
|
|
7
|
+
DESTRUCTIVE: "destructive"
|
|
8
|
+
}, c = t.ACCENT, n = {
|
|
9
|
+
FILLED: "filled",
|
|
10
|
+
OUTLINE: "outline",
|
|
11
|
+
GHOST: "ghost",
|
|
12
|
+
BARE: "bare"
|
|
13
|
+
}, r = n.FILLED, d = {
|
|
14
|
+
[s.sm]: s.sm,
|
|
15
|
+
[s.md]: s.md,
|
|
16
|
+
[s.lg]: s.lg
|
|
17
|
+
}, u = s.md, m = "button", { baseClassNamePrefix: E, classModifierPrefix: a, subElementClassPrefix: e } = i(m), T = {
|
|
18
|
+
label: `${e}label`,
|
|
19
|
+
iconWrap: `${e}icon-wrap`,
|
|
20
|
+
loading: `${a}loading`,
|
|
21
|
+
fluid: `${a}fluid`,
|
|
22
|
+
iconOnly: `${a}icon-only`,
|
|
23
|
+
loadingSpinner: `${e}loading-spinner`
|
|
24
|
+
}, f = (o, l) => `${a}${l}-${o}`, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
BUTTON_APPEARANCES: t,
|
|
27
|
+
BUTTON_KINDS: n,
|
|
28
|
+
BUTTON_SIZES: d,
|
|
29
|
+
baseClassNamePrefix: E,
|
|
30
|
+
classModifierPrefix: a,
|
|
31
|
+
defaultButtonAppearance: c,
|
|
32
|
+
defaultButtonKind: r,
|
|
33
|
+
defaultButtonSize: u,
|
|
34
|
+
getKindAppearanceClassName: f,
|
|
35
|
+
staticButtonClassNames: T,
|
|
36
|
+
subElementClassPrefix: e
|
|
37
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
38
|
+
export {
|
|
39
|
+
t as B,
|
|
40
|
+
n as a,
|
|
41
|
+
b,
|
|
42
|
+
r as c,
|
|
43
|
+
c as d,
|
|
44
|
+
d as e,
|
|
45
|
+
u as f,
|
|
46
|
+
E as g,
|
|
47
|
+
a as h,
|
|
48
|
+
T as i,
|
|
49
|
+
f as j,
|
|
50
|
+
e as s
|
|
51
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { allSizes as e } from "../lib/utils/constants.es.js";
|
|
2
|
+
const t = [e.sm, e.md, e.lg], a = {
|
|
3
|
+
start: "start",
|
|
4
|
+
end: "end",
|
|
5
|
+
spaceBetween: "spaceBetween",
|
|
6
|
+
stacked: "stacked"
|
|
7
|
+
}, c = {
|
|
8
|
+
BLACK_10: "black-10",
|
|
9
|
+
BLACK_20: "black-20",
|
|
10
|
+
BLACK_30: "black-30",
|
|
11
|
+
BLACK_40: "black-40",
|
|
12
|
+
WHITE_10: "white-10",
|
|
13
|
+
WHITE_20: "white-20",
|
|
14
|
+
WHITE_30: "white-30",
|
|
15
|
+
WHITE_40: "white-40"
|
|
16
|
+
}, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
CARD_BACKDROP_VALUES: c,
|
|
19
|
+
FOOTER_ACTION_ALIGNMENT: a,
|
|
20
|
+
cardDensity: t
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
22
|
+
export {
|
|
23
|
+
c as C,
|
|
24
|
+
a as F,
|
|
25
|
+
t as a,
|
|
26
|
+
_ as c
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),t=[e.allSizes.sm,e.allSizes.md,e.allSizes.lg],s={start:"start",end:"end",spaceBetween:"spaceBetween",stacked:"stacked"},_={BLACK_10:"black-10",BLACK_20:"black-20",BLACK_30:"black-30",BLACK_40:"black-40",WHITE_10:"white-10",WHITE_20:"white-20",WHITE_30:"white-30",WHITE_40:"white-40"},c=Object.freeze(Object.defineProperty({__proto__:null,CARD_BACKDROP_VALUES:_,FOOTER_ACTION_ALIGNMENT:s,cardDensity:t},Symbol.toStringTag,{value:"Module"}));exports.CARD_BACKDROP_VALUES=_;exports.FOOTER_ACTION_ALIGNMENT=s;exports.card=c;exports.cardDensity=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),t=[e.sm,e.md,e.lg],n=[e.enterprise,e.consumer],o=s=>s==="sm"?"xs":s==="lg"?"md":"sm",r=Object.freeze(Object.defineProperty({__proto__:null,closeButtonSize:o,shapes:n,sizes:t},Symbol.toStringTag,{value:"Module"}));exports.chips=r;exports.closeButtonSize=o;exports.shapes=n;exports.sizes=t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { sm as s, md as t, lg as r, enterprise as o, consumer as n } from "../lib/utils/constants.es.js";
|
|
2
|
+
const c = [s, t, r], m = [o, n], a = (e) => e === "sm" ? "xs" : e === "lg" ? "md" : "sm", l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
closeButtonSize: a,
|
|
5
|
+
shapes: m,
|
|
6
|
+
sizes: c
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
8
|
+
export {
|
|
9
|
+
m as a,
|
|
10
|
+
a as b,
|
|
11
|
+
l as c,
|
|
12
|
+
c as s
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),l=[e.allSizes.xs,e.allSizes.sm,e.allSizes.md,e.allSizes.lg,e.allSizes.xl],s=Object.freeze(Object.defineProperty({__proto__:null,sizes:l},Symbol.toStringTag,{value:"Module"}));exports.closeButton=s;exports.sizes=l;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { allSizes as e } from "../lib/utils/constants.es.js";
|
|
2
|
+
const o = [
|
|
3
|
+
e.xs,
|
|
4
|
+
e.sm,
|
|
5
|
+
e.md,
|
|
6
|
+
e.lg,
|
|
7
|
+
e.xl
|
|
8
|
+
], s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
|
+
__proto__: null,
|
|
10
|
+
sizes: o
|
|
11
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
12
|
+
export {
|
|
13
|
+
s as c,
|
|
14
|
+
o as s
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { appearances as a, allSizes as o } from "../lib/utils/constants.es.js";
|
|
2
|
+
const e = [
|
|
3
|
+
a.information,
|
|
4
|
+
a.positive,
|
|
5
|
+
a.negative,
|
|
6
|
+
a.warning
|
|
7
|
+
], i = {
|
|
8
|
+
positive: "Success",
|
|
9
|
+
warning: "Warning",
|
|
10
|
+
negative: "Error",
|
|
11
|
+
information: "Information"
|
|
12
|
+
}, n = [
|
|
13
|
+
o.sm,
|
|
14
|
+
o.md,
|
|
15
|
+
o.lg,
|
|
16
|
+
o.xl
|
|
17
|
+
], t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
DialogAppearances: e,
|
|
20
|
+
DialogSizes: n,
|
|
21
|
+
dialogIconAriaLabels: i
|
|
22
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
23
|
+
export {
|
|
24
|
+
e as D,
|
|
25
|
+
i as a,
|
|
26
|
+
n as b,
|
|
27
|
+
t as d
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("../lib/utils/constants.cjs.js"),e=[a.appearances.information,a.appearances.positive,a.appearances.negative,a.appearances.warning],i={positive:"Success",warning:"Warning",negative:"Error",information:"Information"},n=[a.allSizes.sm,a.allSizes.md,a.allSizes.lg,a.allSizes.xl],o=Object.freeze(Object.defineProperty({__proto__:null,DialogAppearances:e,DialogSizes:n,dialogIconAriaLabels:i},Symbol.toStringTag,{value:"Module"}));exports.DialogAppearances=e;exports.DialogSizes=n;exports.dialog=o;exports.dialogIconAriaLabels=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("../lib/utils/constants.cjs.js"),e={"00":"00","00_ALT":"00-alt","01":"01","02":"02","03":"03",STRONG:"strong",POSITIVE:"positive",WARNING:"warning",NEGATIVE:"negative",INFO_PRIMARY:"info-primary",INFO_SECONDARY:"info-secondary",POSITIVE_STRONG:"positive-strong",WARNING_STRONG:"warning-strong",NEGATIVE_STRONG:"negative-strong",INFO_PRIMARY_STRONG:"info-primary-strong",INFO_SECONDARY_STRONG:"info-secondary-strong",INVERSE:"inverse"},n=[t.allSizes.md,t.allSizes.lg,t.allSizes.xl],o=["solid","dashed","dotted"],O=["start","end","center"],S=["horizontal","vertical"],i=Object.freeze(Object.defineProperty({__proto__:null,ALIGN_CONTENT:O,BORDER_COLORS_CLASS_NAMES:e,BORDER_STYLES:o,BORDER_WIDTHS:n,ORIENTATIONS:S},Symbol.toStringTag,{value:"Module"}));exports.ALIGN_CONTENT=O;exports.BORDER_COLORS_CLASS_NAMES=e;exports.BORDER_STYLES=o;exports.BORDER_WIDTHS=n;exports.ORIENTATIONS=S;exports.divider=i;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { allSizes as o } from "../lib/utils/constants.es.js";
|
|
2
|
+
const t = {
|
|
3
|
+
"00": "00",
|
|
4
|
+
"00_ALT": "00-alt",
|
|
5
|
+
"01": "01",
|
|
6
|
+
"02": "02",
|
|
7
|
+
"03": "03",
|
|
8
|
+
STRONG: "strong",
|
|
9
|
+
POSITIVE: "positive",
|
|
10
|
+
WARNING: "warning",
|
|
11
|
+
NEGATIVE: "negative",
|
|
12
|
+
INFO_PRIMARY: "info-primary",
|
|
13
|
+
INFO_SECONDARY: "info-secondary",
|
|
14
|
+
POSITIVE_STRONG: "positive-strong",
|
|
15
|
+
WARNING_STRONG: "warning-strong",
|
|
16
|
+
NEGATIVE_STRONG: "negative-strong",
|
|
17
|
+
INFO_PRIMARY_STRONG: "info-primary-strong",
|
|
18
|
+
INFO_SECONDARY_STRONG: "info-secondary-strong",
|
|
19
|
+
INVERSE: "inverse"
|
|
20
|
+
}, n = [o.md, o.lg, o.xl], e = ["solid", "dashed", "dotted"], r = ["start", "end", "center"], s = ["horizontal", "vertical"], O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
ALIGN_CONTENT: r,
|
|
23
|
+
BORDER_COLORS_CLASS_NAMES: t,
|
|
24
|
+
BORDER_STYLES: e,
|
|
25
|
+
BORDER_WIDTHS: n,
|
|
26
|
+
ORIENTATIONS: s
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
28
|
+
export {
|
|
29
|
+
r as A,
|
|
30
|
+
t as B,
|
|
31
|
+
s as O,
|
|
32
|
+
n as a,
|
|
33
|
+
e as b,
|
|
34
|
+
O as d
|
|
35
|
+
};
|