@lazar-ui/kit 0.2.0 → 0.2.2
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/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- package/README.md +64 -23
- package/dist/Icon-flib0kme.mjs +684 -0
- package/dist/Icon.css +1 -0
- package/dist/accordion.css +1 -1
- package/dist/accordion.d.ts +59 -9
- package/dist/accordion.js +59 -41
- package/dist/alert.css +1 -1
- package/dist/alert.js +12 -12
- package/dist/avatar.css +1 -1
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.js +18 -18
- package/dist/badge.css +1 -1
- package/dist/badge.d.ts +3 -3
- package/dist/badge.js +8 -8
- package/dist/breadcrumbs.css +1 -1
- package/dist/breadcrumbs.js +35 -35
- package/dist/button.css +1 -1
- package/dist/button.d.ts +2 -0
- package/dist/button.js +41 -35
- package/dist/card.css +1 -1
- package/dist/card.js +15 -15
- package/dist/checkbox.css +1 -1
- package/dist/checkbox.js +25 -25
- package/dist/css/palettes/indigo.css +75 -75
- package/dist/css/palettes/monochrome.css +75 -75
- package/dist/css/semantic.css +67 -67
- package/dist/dialog.css +1 -1
- package/dist/dialog.js +49 -48
- package/dist/drawer.css +1 -1
- package/dist/drawer.js +65 -64
- package/dist/empty-state.css +1 -1
- package/dist/empty-state.d.ts +1 -1
- package/dist/empty-state.js +27 -26
- package/dist/error-boundary.css +1 -1
- package/dist/error-boundary.js +9 -9
- package/dist/flex.js +6 -6
- package/dist/form-field.css +1 -1
- package/dist/form-field.js +10 -10
- package/dist/icon.d.ts +30 -0
- package/dist/icon.js +4 -0
- package/dist/input.css +1 -1
- package/dist/input.js +76 -103
- package/dist/{config-provider.d.ts → lazar-ui-provider.d.ts} +33 -33
- package/dist/lazar-ui-provider.js +14 -0
- package/dist/menu.css +1 -1
- package/dist/menu.d.ts +3 -3
- package/dist/menu.js +73 -91
- package/dist/pagination.css +1 -1
- package/dist/pagination.js +49 -48
- package/dist/popover.css +1 -1
- package/dist/popover.js +18 -18
- package/dist/select.css +1 -1
- package/dist/select.js +81 -119
- package/dist/separator.css +1 -1
- package/dist/separator.d.ts +2 -2
- package/dist/separator.js +9 -9
- package/dist/skeleton.css +1 -1
- package/dist/skeleton.js +13 -13
- package/dist/spinner.css +1 -1
- package/dist/spinner.d.ts +2 -2
- package/dist/spinner.js +7 -7
- package/dist/switch.css +1 -1
- package/dist/switch.js +15 -15
- package/dist/table.css +1 -1
- package/dist/table.js +23 -23
- package/dist/tabs.css +1 -1
- package/dist/tabs.js +48 -48
- package/dist/textarea.css +1 -1
- package/dist/textarea.js +17 -17
- package/dist/tooltip.css +1 -1
- package/dist/tooltip.js +10 -10
- package/dist/typography.css +1 -0
- package/dist/typography.d.ts +76 -0
- package/dist/typography.js +40 -0
- package/dist/{useLocale-D2Z0JH0l.mjs → useLocale-DdHNhmvT.mjs} +24 -24
- package/package.json +14 -2
- package/dist/config-provider.js +0 -14
package/dist/select.js
CHANGED
|
@@ -1,159 +1,121 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as P, useCallback as h } from "react";
|
|
3
|
+
import { c as p } from "./clsx-OuTLNxxd.mjs";
|
|
4
|
+
import { I as m } from "./Icon-flib0kme.mjs";
|
|
5
|
+
import { Popover as b } from "./popover.js";
|
|
6
|
+
import { u as O } from "./useLocale-DdHNhmvT.mjs";
|
|
7
|
+
import { g as D } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
8
|
+
import './select.css';const I = "Select", M = "bottom start", A = "_root_t7wta_7", B = "_disabled_t7wta_28", E = "_invalid_t7wta_35", j = "_sizeSm_t7wta_39", F = "_sizeMd_t7wta_45", U = "_sizeLg_t7wta_51", V = "_displayText_t7wta_57", W = "_displayTextPlaceholder_t7wta_64", Y = "_indicators_t7wta_68", q = "_clearButton_t7wta_74", G = "_chevron_t7wta_92", H = "_optionsList_t7wta_103", J = "_noOptions_t7wta_112", K = "_option_t7wta_103", Q = "_optionSelected_t7wta_132", R = "_optionDisabled_t7wta_138", X = "_optionLabel_t7wta_146", Z = "_checkbox_t7wta_153", $ = "_checkboxChecked_t7wta_165", t = {
|
|
9
|
+
root: A,
|
|
10
|
+
disabled: B,
|
|
11
|
+
invalid: E,
|
|
12
|
+
sizeSm: j,
|
|
13
|
+
sizeMd: F,
|
|
14
|
+
sizeLg: U,
|
|
15
|
+
displayText: V,
|
|
16
|
+
displayTextPlaceholder: W,
|
|
17
|
+
indicators: Y,
|
|
18
|
+
clearButton: q,
|
|
19
|
+
chevron: G,
|
|
20
|
+
optionsList: H,
|
|
21
|
+
noOptions: J,
|
|
22
|
+
option: K,
|
|
23
|
+
optionSelected: Q,
|
|
24
|
+
optionDisabled: R,
|
|
25
|
+
optionLabel: X,
|
|
26
|
+
checkbox: Z,
|
|
27
|
+
checkboxChecked: $
|
|
28
|
+
}, ee = (v) => {
|
|
28
29
|
const {
|
|
29
|
-
clearable:
|
|
30
|
-
disabled:
|
|
31
|
-
invalid:
|
|
32
|
-
multiple:
|
|
33
|
-
onChange:
|
|
34
|
-
options:
|
|
30
|
+
clearable: w = !1,
|
|
31
|
+
disabled: i = !1,
|
|
32
|
+
invalid: u = !1,
|
|
33
|
+
multiple: a = !1,
|
|
34
|
+
onChange: o,
|
|
35
|
+
options: d,
|
|
35
36
|
placeholder: k,
|
|
36
|
-
size:
|
|
37
|
+
size: C = "md",
|
|
37
38
|
value: n
|
|
38
|
-
} = v, [
|
|
39
|
+
} = v, [g, x] = P(!1), _ = O(), r = a ? d.filter((e) => n?.includes(e.value)) : d.filter((e) => e.value === n), f = r.length > 0 ? r.map((e) => e.label).join(", ") : k ?? _.select.placeholder, L = h(
|
|
39
40
|
(e) => {
|
|
40
|
-
if (!e.disabled &&
|
|
41
|
-
if (
|
|
41
|
+
if (!e.disabled && o)
|
|
42
|
+
if (a) {
|
|
42
43
|
const l = n ?? [], y = l.includes(e.value) ? l.filter((T) => T !== e.value) : [...l, e.value];
|
|
43
|
-
|
|
44
|
+
o(y);
|
|
44
45
|
} else
|
|
45
|
-
|
|
46
|
+
o(e.value), x(!1);
|
|
46
47
|
},
|
|
47
|
-
[
|
|
48
|
-
),
|
|
48
|
+
[a, o, n]
|
|
49
|
+
), N = h(
|
|
49
50
|
(e) => {
|
|
50
|
-
e.stopPropagation(),
|
|
51
|
+
e.stopPropagation(), o && o(a ? [] : "");
|
|
51
52
|
},
|
|
52
|
-
[
|
|
53
|
-
), N = _(
|
|
54
|
-
(e) => s ? n?.includes(e) ?? !1 : n === e,
|
|
55
|
-
[s, n]
|
|
53
|
+
[a, o]
|
|
56
54
|
), S = h(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
(e) => a ? n?.includes(e) ?? !1 : n === e,
|
|
56
|
+
[a, n]
|
|
57
|
+
), z = p(
|
|
58
|
+
t.root,
|
|
59
|
+
D("size", C, t),
|
|
60
|
+
i && t.disabled,
|
|
61
|
+
u && t.invalid
|
|
61
62
|
);
|
|
62
|
-
return /* @__PURE__ */ c(
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ c(b, { onOpenChange: x, open: g, placement: M, children: [
|
|
64
|
+
/* @__PURE__ */ s(b.Trigger, { children: /* @__PURE__ */ c(
|
|
64
65
|
"div",
|
|
65
66
|
{
|
|
66
|
-
"aria-disabled":
|
|
67
|
-
"aria-invalid":
|
|
68
|
-
className:
|
|
67
|
+
"aria-disabled": i,
|
|
68
|
+
"aria-invalid": u,
|
|
69
|
+
className: z,
|
|
69
70
|
role: "combobox",
|
|
70
|
-
tabIndex:
|
|
71
|
-
onClick:
|
|
71
|
+
tabIndex: i ? -1 : 0,
|
|
72
|
+
onClick: i ? (e) => e.stopPropagation() : void 0,
|
|
72
73
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */ c("span", { className:
|
|
75
|
-
|
|
74
|
+
/* @__PURE__ */ s("span", { className: p(t.displayText, !r.length && t.displayTextPlaceholder), children: f }),
|
|
75
|
+
/* @__PURE__ */ c("span", { className: t.indicators, children: [
|
|
76
|
+
w && r.length > 0 && !i && /* @__PURE__ */ s(
|
|
76
77
|
"button",
|
|
77
78
|
{
|
|
78
|
-
"aria-label":
|
|
79
|
-
className:
|
|
80
|
-
onClick:
|
|
79
|
+
"aria-label": _.select.clear,
|
|
80
|
+
className: t.clearButton,
|
|
81
|
+
onClick: N,
|
|
81
82
|
tabIndex: -1,
|
|
82
83
|
type: "button",
|
|
83
|
-
children: "
|
|
84
|
+
children: /* @__PURE__ */ s(m, { name: "x", size: 14 })
|
|
84
85
|
}
|
|
85
86
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
"svg",
|
|
88
|
-
{
|
|
89
|
-
"aria-hidden": "true",
|
|
90
|
-
className: o.chevron,
|
|
91
|
-
height: "16",
|
|
92
|
-
viewBox: "0 0 16 16",
|
|
93
|
-
width: "16",
|
|
94
|
-
children: /* @__PURE__ */ i(
|
|
95
|
-
"path",
|
|
96
|
-
{
|
|
97
|
-
d: "M4 6 L8 10 L12 6",
|
|
98
|
-
fill: "none",
|
|
99
|
-
stroke: "currentColor",
|
|
100
|
-
strokeLinecap: "round",
|
|
101
|
-
strokeLinejoin: "round",
|
|
102
|
-
strokeWidth: "1.5"
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
}
|
|
106
|
-
)
|
|
87
|
+
/* @__PURE__ */ s("span", { className: t.chevron, children: /* @__PURE__ */ s(m, { name: "chevronDown", size: 16 }) })
|
|
107
88
|
] })
|
|
108
89
|
]
|
|
109
90
|
}
|
|
110
91
|
) }),
|
|
111
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ s(b.Content, { padding: !1, children: /* @__PURE__ */ c(
|
|
112
93
|
"ul",
|
|
113
94
|
{
|
|
114
|
-
"aria-label":
|
|
115
|
-
className:
|
|
95
|
+
"aria-label": f,
|
|
96
|
+
className: t.optionsList,
|
|
116
97
|
role: "listbox",
|
|
117
98
|
children: [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
const l =
|
|
99
|
+
d.length === 0 && /* @__PURE__ */ s("li", { className: t.noOptions, children: _.select.noOptions }),
|
|
100
|
+
d.map((e) => {
|
|
101
|
+
const l = S(e.value);
|
|
121
102
|
return /* @__PURE__ */ c(
|
|
122
103
|
"li",
|
|
123
104
|
{
|
|
124
105
|
"aria-disabled": e.disabled,
|
|
125
106
|
"aria-selected": l,
|
|
126
|
-
className:
|
|
127
|
-
|
|
128
|
-
l &&
|
|
129
|
-
e.disabled &&
|
|
107
|
+
className: p(
|
|
108
|
+
t.option,
|
|
109
|
+
l && t.optionSelected,
|
|
110
|
+
e.disabled && t.optionDisabled
|
|
130
111
|
),
|
|
131
112
|
onClick: () => {
|
|
132
|
-
|
|
113
|
+
L(e);
|
|
133
114
|
},
|
|
134
115
|
role: "option",
|
|
135
116
|
children: [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
{
|
|
139
|
-
"aria-hidden": "true",
|
|
140
|
-
height: "12",
|
|
141
|
-
viewBox: "0 0 12 12",
|
|
142
|
-
width: "12",
|
|
143
|
-
children: /* @__PURE__ */ i(
|
|
144
|
-
"path",
|
|
145
|
-
{
|
|
146
|
-
d: "M2 6 L5 9 L10 3",
|
|
147
|
-
fill: "none",
|
|
148
|
-
stroke: "currentColor",
|
|
149
|
-
strokeLinecap: "round",
|
|
150
|
-
strokeLinejoin: "round",
|
|
151
|
-
strokeWidth: "2"
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
}
|
|
155
|
-
) }),
|
|
156
|
-
/* @__PURE__ */ i("span", { className: o.optionLabel, children: e.label })
|
|
117
|
+
a && /* @__PURE__ */ s("span", { className: p(t.checkbox, l && t.checkboxChecked), children: l && /* @__PURE__ */ s(m, { name: "check", size: 12, strokeWidth: 3 }) }),
|
|
118
|
+
/* @__PURE__ */ s("span", { className: t.optionLabel, children: e.label })
|
|
157
119
|
]
|
|
158
120
|
},
|
|
159
121
|
e.value
|
|
@@ -164,7 +126,7 @@ import './select.css';const M = "Select", B = "bottom start", D = "_root_1howi_7
|
|
|
164
126
|
) })
|
|
165
127
|
] });
|
|
166
128
|
};
|
|
167
|
-
|
|
129
|
+
ee.displayName = I;
|
|
168
130
|
export {
|
|
169
|
-
|
|
131
|
+
ee as Select
|
|
170
132
|
};
|
package/dist/separator.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--separator-color: var(--color-border-primary)}.
|
|
1
|
+
:root{--separator-color: var(--lui-color-border-primary)}._root_kvseh_5{background:var(--separator-color);border:none;height:1px;margin:0;padding-inline:var(--lui-space-4);width:100%}._vertical_kvseh_14{height:100%;padding-block:var(--lui-space-4);padding-inline:0;width:1px}._bleed_kvseh_21{padding:0}
|
package/dist/separator.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { default as default_2 } from 'react';
|
|
|
3
3
|
declare interface IProps {
|
|
4
4
|
/** Vertical orientation. Default: `false`. */
|
|
5
5
|
vertical?: boolean;
|
|
6
|
-
/** CSS colour of the line. Default: `var(--color-border-primary)`. */
|
|
6
|
+
/** CSS colour of the line. Default: `var(--lui-color-border-primary)`. */
|
|
7
7
|
color?: string;
|
|
8
8
|
/** Removes padding around the line. Default: `false`. */
|
|
9
9
|
bleed?: boolean;
|
|
@@ -17,7 +17,7 @@ declare interface IProps {
|
|
|
17
17
|
* <Separator />
|
|
18
18
|
* <Separator vertical />
|
|
19
19
|
* <Separator bleed />
|
|
20
|
-
* <Separator vertical bleed color="var(--color-text-success)" />
|
|
20
|
+
* <Separator vertical bleed color="var(--lui-color-text-success)" />
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
export declare const Separator: default_2.FC<IProps>;
|
package/dist/separator.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "./clsx-OuTLNxxd.mjs";
|
|
3
|
-
import './separator.css';const
|
|
4
|
-
root:
|
|
5
|
-
vertical:
|
|
6
|
-
bleed:
|
|
3
|
+
import './separator.css';const i = "Separator", _ = "_root_kvseh_5", n = "_vertical_kvseh_14", v = "_bleed_kvseh_21", o = {
|
|
4
|
+
root: _,
|
|
5
|
+
vertical: n,
|
|
6
|
+
bleed: v
|
|
7
7
|
}, m = (r) => {
|
|
8
|
-
const { vertical: e = !1, color: t, bleed:
|
|
8
|
+
const { vertical: e = !1, color: t, bleed: s = !1 } = r, a = c(
|
|
9
9
|
o.root,
|
|
10
10
|
e && o.vertical,
|
|
11
|
-
|
|
11
|
+
s && o.bleed
|
|
12
12
|
);
|
|
13
13
|
return /* @__PURE__ */ l(
|
|
14
14
|
"hr",
|
|
15
15
|
{
|
|
16
|
-
className:
|
|
17
|
-
style: { "--separator-color": t ?? "var(--color-border-primary)" }
|
|
16
|
+
className: a,
|
|
17
|
+
style: { "--separator-color": t ?? "var(--lui-color-border-primary)" }
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
};
|
|
21
|
-
m.displayName =
|
|
21
|
+
m.displayName = i;
|
|
22
22
|
export {
|
|
23
23
|
m as Separator
|
|
24
24
|
};
|
package/dist/skeleton.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--skeleton-animation-duration: 1.8s}.
|
|
1
|
+
:root{--skeleton-animation-duration: 1.8s}._root_15r0q_5{animation:_skeleton-pulse_15r0q_1 var(--skeleton-animation-duration) ease-in-out infinite;background:var(--lui-color-background-tertiary);display:block;width:100%}._variantText_15r0q_12{border-radius:var(--lui-radius-1);height:1em}._variantCircular_15r0q_17{border-radius:50%;height:40px;width:40px}._variantRectangular_15r0q_23{border-radius:var(--lui-radius-2);height:100px}@keyframes _skeleton-pulse_15r0q_1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}
|
package/dist/skeleton.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "./clsx-OuTLNxxd.mjs";
|
|
3
|
-
import { g as
|
|
4
|
-
import './skeleton.css';const
|
|
5
|
-
root:
|
|
6
|
-
"skeleton-pulse": "_skeleton-
|
|
7
|
-
variantText:
|
|
3
|
+
import { g as _ } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
4
|
+
import './skeleton.css';const v = "Skeleton", u = "_root_15r0q_5", d = "_variantText_15r0q_12", m = "_variantCircular_15r0q_17", p = "_variantRectangular_15r0q_23", e = {
|
|
5
|
+
root: u,
|
|
6
|
+
"skeleton-pulse": "_skeleton-pulse_15r0q_1",
|
|
7
|
+
variantText: d,
|
|
8
8
|
variantCircular: m,
|
|
9
9
|
variantRectangular: p
|
|
10
|
-
}, x = (
|
|
11
|
-
const { borderRadius: o, height: t, variant:
|
|
10
|
+
}, x = (i) => {
|
|
11
|
+
const { borderRadius: o, height: t, variant: n = "text", width: r } = i, s = l(
|
|
12
12
|
e.root,
|
|
13
|
-
|
|
14
|
-
),
|
|
15
|
-
return
|
|
13
|
+
_("variant", n, e)
|
|
14
|
+
), a = {};
|
|
15
|
+
return r !== void 0 && (a.width = typeof r == "number" ? `${r}px` : r), t !== void 0 && (a.height = typeof t == "number" ? `${t}px` : t), o !== void 0 && (a.borderRadius = o), /* @__PURE__ */ c(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
|
-
className:
|
|
19
|
-
style:
|
|
18
|
+
className: s,
|
|
19
|
+
style: a,
|
|
20
20
|
"aria-hidden": "true"
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
|
-
x.displayName =
|
|
24
|
+
x.displayName = v;
|
|
25
25
|
export {
|
|
26
26
|
x as Skeleton
|
|
27
27
|
};
|
package/dist/spinner.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--spinner-speed: .8s;--spinner-color: var(--color-text-secondary)}.
|
|
1
|
+
:root{--spinner-speed: .8s;--spinner-color: var(--lui-color-text-secondary)}._root_1nbe0_6{animation:_spinner-rotate_1nbe0_1 var(--spinner-speed) linear infinite;border-color:var(--spinner-color);border-radius:50%;border-style:solid;border-top-color:transparent;border-width:2px;display:inline-block;flex-shrink:0}._sizeSm_1nbe0_17{height:16px;width:16px}._sizeMd_1nbe0_22{height:24px;width:24px}._sizeLg_1nbe0_27{height:32px;width:32px}._sizeXl_1nbe0_32{height:40px;width:40px}@keyframes _spinner-rotate_1nbe0_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
package/dist/spinner.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare enum ESpinnerSize {
|
|
|
10
10
|
export declare interface ISpinnerProps {
|
|
11
11
|
/** Size. Default: 'md'. */
|
|
12
12
|
size?: TSpinnerSize;
|
|
13
|
-
/** CSS color value for the spinner arc. Default: 'var(--color-text-secondary)'. */
|
|
13
|
+
/** CSS color value for the spinner arc. Default: 'var(--lui-color-text-secondary)'. */
|
|
14
14
|
color?: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -21,7 +21,7 @@ export declare interface ISpinnerProps {
|
|
|
21
21
|
* ```tsx
|
|
22
22
|
* <Spinner />
|
|
23
23
|
* <Spinner size="lg" />
|
|
24
|
-
* <Spinner color="var(--palette-brand)" />
|
|
24
|
+
* <Spinner color="var(--lui-palette-brand)" />
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export declare const Spinner: default_2.FC<ISpinnerProps>;
|
package/dist/spinner.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "./clsx-OuTLNxxd.mjs";
|
|
3
3
|
import { g as a } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
4
|
-
import './spinner.css';const _ = "Spinner", c = "
|
|
4
|
+
import './spinner.css';const _ = "Spinner", c = "_root_1nbe0_6", l = "_sizeSm_1nbe0_17", m = "_sizeMd_1nbe0_22", z = "_sizeLg_1nbe0_27", p = "_sizeXl_1nbe0_32", s = {
|
|
5
5
|
root: c,
|
|
6
|
-
"spinner-rotate": "_spinner-
|
|
6
|
+
"spinner-rotate": "_spinner-rotate_1nbe0_1",
|
|
7
7
|
sizeSm: l,
|
|
8
8
|
sizeMd: m,
|
|
9
9
|
sizeLg: z,
|
|
10
10
|
sizeXl: p
|
|
11
|
-
},
|
|
12
|
-
const { color:
|
|
11
|
+
}, b = (e) => {
|
|
12
|
+
const { color: o, size: t = "md" } = e, n = i(
|
|
13
13
|
s.root,
|
|
14
14
|
a("size", t, s)
|
|
15
15
|
);
|
|
@@ -19,11 +19,11 @@ import './spinner.css';const _ = "Spinner", c = "_root_1n8x7_6", l = "_sizeSm_1n
|
|
|
19
19
|
className: n,
|
|
20
20
|
role: "status",
|
|
21
21
|
"aria-label": "Loading",
|
|
22
|
-
style: { "--spinner-color":
|
|
22
|
+
style: { "--spinner-color": o ?? "var(--lui-color-text-secondary)" }
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
b.displayName = _;
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
b as Spinner
|
|
29
29
|
};
|
package/dist/switch.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--switch-track-width: 36px;--switch-track-height: 20px;--switch-track-radius: var(--radius-full);--switch-track-background: var(--palette-gray-300);--switch-track-background-checked: var(--palette-brand);--switch-track-background-disabled: var(--palette-gray-200);--switch-thumb-size: 16px;--switch-thumb-background: var(--palette-white);--switch-thumb-shadow: var(--shadow-xs);--switch-thumb-offset: 2px;--switch-label-font-size: var(--font-size-md);--switch-label-line-height: var(--line-height-md);--switch-label-color: var(--color-text-primary);--switch-label-gap: var(--space-2);--switch-transition-duration: .2s;--switch-transition-timing: cubic-bezier(.4, 0, .2, 1)}.
|
|
1
|
+
:root{--switch-track-width: 36px;--switch-track-height: 20px;--switch-track-radius: var(--lui-radius-full);--switch-track-background: var(--lui-palette-gray-300);--switch-track-background-checked: var(--lui-palette-brand);--switch-track-background-disabled: var(--lui-palette-gray-200);--switch-thumb-size: 16px;--switch-thumb-background: var(--lui-palette-white);--switch-thumb-shadow: var(--lui-shadow-xs);--switch-thumb-offset: 2px;--switch-label-font-size: var(--lui-font-size-md);--switch-label-line-height: var(--line-height-md);--switch-label-color: var(--lui-color-text-primary);--switch-label-gap: var(--lui-space-2);--switch-transition-duration: .2s;--switch-transition-timing: cubic-bezier(.4, 0, .2, 1)}._root_1v9jq_24{align-items:center;cursor:pointer;display:inline-flex;flex-shrink:0;gap:var(--switch-label-gap);vertical-align:middle}._root_1v9jq_24._disabled_1v9jq_33{cursor:not-allowed;opacity:.5}._input_1v9jq_39{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}._track_1v9jq_52{align-items:center;background:var(--switch-track-background);border-radius:var(--switch-track-radius);display:inline-flex;flex-shrink:0;height:var(--switch-track-height);position:relative;transition:background var(--switch-transition-duration) var(--switch-transition-timing);width:var(--switch-track-width)}._thumb_1v9jq_64{background:var(--switch-thumb-background);border-radius:50%;box-shadow:var(--switch-thumb-shadow);height:var(--switch-thumb-size);left:var(--switch-thumb-offset);position:absolute;transition:transform var(--switch-transition-duration) var(--switch-transition-timing),left var(--switch-transition-duration) var(--switch-transition-timing);width:var(--switch-thumb-size)}._label_1v9jq_75{color:var(--switch-label-color);font-size:var(--switch-label-font-size);line-height:var(--switch-label-line-height);-webkit-user-select:none;user-select:none}._input_1v9jq_39:checked+._track_1v9jq_52{background:var(--switch-track-background-checked)}._input_1v9jq_39:checked+._track_1v9jq_52 ._thumb_1v9jq_64{left:calc(var(--switch-track-width) - var(--switch-thumb-size) - var(--switch-thumb-offset))}._input_1v9jq_39:focus-visible+._track_1v9jq_52{box-shadow:0 0 0 2px var(--lui-color-border-focus)}._input_1v9jq_39:disabled+._track_1v9jq_52{background:var(--switch-track-background-disabled)}._sizeSm_1v9jq_102{--switch-track-width: 28px;--switch-track-height: 16px;--switch-thumb-size: 12px;--switch-thumb-offset: 2px;--switch-label-font-size: var(--lui-font-size-sm);--switch-label-line-height: var(--line-height-sm)}._sizeMd_1v9jq_112{--switch-track-width: 36px;--switch-track-height: 20px;--switch-thumb-size: 16px;--switch-thumb-offset: 2px;--switch-label-font-size: var(--lui-font-size-md);--switch-label-line-height: var(--line-height-md)}._sizeLg_1v9jq_122{--switch-track-width: 44px;--switch-track-height: 24px;--switch-thumb-size: 20px;--switch-thumb-offset: 2px;--switch-label-font-size: var(--lui-font-size-lg);--switch-label-line-height: var(--line-height-lg)}
|
package/dist/switch.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c as m } from "./clsx-OuTLNxxd.mjs";
|
|
3
|
-
import { g as
|
|
4
|
-
import './switch.css';const
|
|
5
|
-
root:
|
|
6
|
-
disabled:
|
|
7
|
-
input:
|
|
8
|
-
track:
|
|
9
|
-
thumb:
|
|
10
|
-
label:
|
|
11
|
-
sizeSm:
|
|
12
|
-
sizeMd:
|
|
13
|
-
sizeLg:
|
|
14
|
-
},
|
|
15
|
-
const { children: t, checked: i, defaultChecked: o, disabled: a = !1, onChange: l, size: n = "md", ..._ } = c, r = m(s.root,
|
|
3
|
+
import { g as b } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
4
|
+
import './switch.css';const h = "Switch", p = "_root_1v9jq_24", u = "_disabled_1v9jq_33", j = "_input_1v9jq_39", z = "_track_1v9jq_52", q = "_thumb_1v9jq_64", v = "_label_1v9jq_75", N = "_sizeSm_1v9jq_102", k = "_sizeMd_1v9jq_112", g = "_sizeLg_1v9jq_122", s = {
|
|
5
|
+
root: p,
|
|
6
|
+
disabled: u,
|
|
7
|
+
input: j,
|
|
8
|
+
track: z,
|
|
9
|
+
thumb: q,
|
|
10
|
+
label: v,
|
|
11
|
+
sizeSm: N,
|
|
12
|
+
sizeMd: k,
|
|
13
|
+
sizeLg: g
|
|
14
|
+
}, S = (c) => {
|
|
15
|
+
const { children: t, checked: i, defaultChecked: o, disabled: a = !1, onChange: l, size: n = "md", ..._ } = c, r = m(s.root, b("size", n, s), a && s.disabled);
|
|
16
16
|
return /* @__PURE__ */ d("label", { className: r, children: [
|
|
17
17
|
/* @__PURE__ */ e(
|
|
18
18
|
"input",
|
|
@@ -31,7 +31,7 @@ import './switch.css';const b = "Switch", h = "_root_84xww_24", p = "_disabled_8
|
|
|
31
31
|
t && /* @__PURE__ */ e("span", { className: s.label, children: t })
|
|
32
32
|
] });
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
S.displayName = h;
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
S as Switch
|
|
37
37
|
};
|
package/dist/table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--cell-bg-header: var(--color-background-tertiary);--cell-border-header: var(--color-border-secondary);--cell-padding: var(--space-3) var(--space-4);--cell-max-width: 200px}.
|
|
1
|
+
:root{--cell-bg-header: var(--lui-color-background-tertiary);--cell-border-header: var(--lui-color-border-secondary);--cell-padding: var(--lui-space-3) var(--lui-space-4);--cell-max-width: 200px}._root_lmxwt_8{background-color:transparent;border-bottom:1px solid var(--lui-color-border-primary);max-width:var(--cell-max-width);overflow:hidden;padding:var(--cell-padding);text-overflow:ellipsis;white-space:nowrap}._root_lmxwt_8._header_lmxwt_17{background-color:var(--cell-bg-header);border-bottom:2px solid var(--cell-border-header)}._root_lmxwt_8._alignLeft_lmxwt_21{text-align:left}._root_lmxwt_8._alignRight_lmxwt_24{text-align:right}._root_lmxwt_8._alignCenter_lmxwt_27{text-align:center}:root{--table-bg-stripe: var(--lui-color-background-secondary)}._root_t4731_5{background-color:var(--lui-color-background-primary);border-bottom:1px solid var(--lui-color-border-primary);transition:background-color .2s}._root_t4731_5:nth-child(odd){background-color:var(--table-bg-stripe)}._root_t4731_5:hover{background-color:var(--lui-color-background-brand-secondary)}:root{--table-font-size: var(--lui-font-size-md)}._root_k8vfx_5{border-collapse:collapse;font-size:var(--table-font-size);table-layout:fixed;width:100%}
|
package/dist/table.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "./clsx-OuTLNxxd.mjs";
|
|
3
3
|
import s from "react";
|
|
4
4
|
import { g as f } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
5
5
|
import { i } from "./isValidReactNode-CmYwTWCE.mjs";
|
|
6
6
|
import "./camelCase-PtIYufW8.mjs";
|
|
7
7
|
import './table.css';var n = /* @__PURE__ */ ((t) => (t.CELL = "Table.Cell", t.ROW = "Table.Row", t))(n || {});
|
|
8
|
-
const u = "
|
|
8
|
+
const u = "_root_lmxwt_8", L = "_header_lmxwt_17", N = "_alignLeft_lmxwt_21", R = "_alignRight_lmxwt_24", w = "_alignCenter_lmxwt_27", a = {
|
|
9
9
|
root: u,
|
|
10
10
|
header: L,
|
|
11
11
|
alignLeft: N,
|
|
12
12
|
alignRight: R,
|
|
13
|
-
alignCenter:
|
|
13
|
+
alignCenter: w
|
|
14
14
|
}, c = (t) => {
|
|
15
|
-
const { align: r = "left", as:
|
|
16
|
-
[
|
|
15
|
+
const { align: r = "left", as: e = "td", children: o, title: g, width: h } = t, C = p(a.root, f("align", r, a), {
|
|
16
|
+
[a.header]: e === "th"
|
|
17
17
|
});
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ l(e, { className: C, title: g, width: h, children: o });
|
|
19
19
|
};
|
|
20
20
|
c.displayName = n.CELL;
|
|
21
|
-
const
|
|
22
|
-
root:
|
|
23
|
-
},
|
|
24
|
-
const { children: r } = t,
|
|
25
|
-
return /* @__PURE__ */
|
|
21
|
+
const x = "_root_t4731_5", T = {
|
|
22
|
+
root: x
|
|
23
|
+
}, m = (t) => {
|
|
24
|
+
const { children: r } = t, e = (o) => i(n.CELL, o) ? o : null;
|
|
25
|
+
return /* @__PURE__ */ l("tr", { className: T.root, children: s.Children.map(r, e) });
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
root:
|
|
30
|
-
},
|
|
31
|
-
const { children: r } = t,
|
|
32
|
-
return /* @__PURE__ */
|
|
27
|
+
m.displayName = n.ROW;
|
|
28
|
+
const b = "Table", y = "_root_k8vfx_5", $ = {
|
|
29
|
+
root: y
|
|
30
|
+
}, d = (t) => {
|
|
31
|
+
const { children: r } = t, e = (o) => i(n.ROW, o) ? o : null;
|
|
32
|
+
return /* @__PURE__ */ l("table", { className: $.root, children: /* @__PURE__ */ l("tbody", { children: s.Children.map(r, e) }) });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
d.displayName = b;
|
|
35
|
+
const _ = d;
|
|
36
|
+
_.Cell = c;
|
|
37
|
+
_.Row = m;
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
_ as Table
|
|
40
40
|
};
|
package/dist/tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_11zii_1{position:relative;-webkit-user-select:none;user-select:none}._root_11zii_1._disabled_11zii_5{color:var(--tab-text-disabled);cursor:not-allowed}._root_11zii_1._variantDefault_11zii_9{border-bottom:2px solid transparent;color:var(--tab-text);font-size:var(--lui-font-size-md);font-weight:var(--lui-font-weight-medium);line-height:var(--line-height-md);padding:var(--lui-space-3) var(--lui-space-5);transition:border-color .3s,color .3s;white-space:nowrap}._root_11zii_1._variantDefault_11zii_9:focus{border-color:var(--tab-text-active)}._root_11zii_1._variantDefault_11zii_9._active_11zii_22{border-color:var(--tab-border-active);color:var(--tab-text-active)}._root_11zii_1._variantButtons_11zii_26{align-items:center;background:var(--tab-bg-buttons);border-radius:var(--tab-radius-buttons);color:var(--tab-text-buttons);display:flex;flex:1;flex-direction:column;font-size:var(--tab-font-buttons);font-weight:var(--lui-font-weight-medium);gap:var(--tab-gap-buttons);height:64px;justify-content:center;line-height:var(--line-height-md);max-width:320px;padding:var(--tab-padding-y-buttons) var(--tab-padding-x-buttons)}._root_11zii_1._variantButtons_11zii_26:focus{box-shadow:0 0 0 2px #98a2b324}._root_11zii_1._variantButtons_11zii_26._active_11zii_22{background:var(--tab-bg-buttons-active);color:var(--tab-text-buttons-active)}@media only screen and (max-width:1023px){._root_11zii_1._variantButtons_11zii_26{gap:var(--tab-gap-buttons);height:40px;justify-content:center;padding:var(--lui-space-2) var(--lui-space-5);white-space:nowrap}}:root{--tabs-padding: var(--lui-space-8);--tabs-panel-padding-top: var(--lui-space-10);--tab-text: var(--lui-color-text-secondary);--tab-text-active: var(--lui-color-text-primary);--tab-text-disabled: var(--lui-color-text-disabled);--tab-border-active: var(--lui-palette-gray-900);--tab-bg-buttons: var(--lui-color-background-tertiary);--tab-bg-buttons-active: var(--lui-color-background-brand-secondary);--tab-text-buttons: var(--lui-color-text-quaternary);--tab-text-buttons-active: var(--lui-color-text-primary);--tab-radius-buttons: var(--lui-radius-1);--tab-font-buttons: var(--lui-font-size-md);--tab-gap-buttons: var(--lui-space-3);--tab-padding-y-buttons: var(--lui-space-2);--tab-padding-x-buttons: var(--lui-space-3);--tab-list-gap: var(--lui-space-4)}._root_ndfzg_20{width:auto}._root_ndfzg_20._variantDefault_ndfzg_23 ._list_ndfzg_23:before{border-bottom:1px solid var(--lui-color-border-primary);bottom:0;content:"";left:0;position:absolute;right:0;z-index:0}._root_ndfzg_20._variantButtons_ndfzg_32 ._list_ndfzg_23{align-items:center;gap:var(--tab-list-gap);justify-content:flex-start;padding:var(--tabs-padding)}._list_ndfzg_23{display:flex;overflow-x:auto;position:relative}._panel_ndfzg_45{padding-top:var(--tabs-panel-padding-top);position:relative}@media only screen and (max-width:1023px){._root_ndfzg_20._variantButtons_ndfzg_32{justify-content:start}}
|