@koide-labs/ui 0.1.3 → 0.1.4
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 +1 -4
- package/dist/{InternalBackdrop-BSMKU-hc.js → InternalBackdrop-DDLgWc7D.js} +1 -1
- package/dist/accordion.css +1 -1
- package/dist/alert-dialog.css +1 -1
- package/dist/anchor.css +1 -1
- package/dist/avatar.css +1 -1
- package/dist/badge.css +1 -1
- package/dist/button.css +1 -1
- package/dist/checkbox.css +1 -1
- package/dist/code.css +1 -1
- package/dist/collapse.css +1 -1
- package/dist/command.css +1 -1
- package/dist/components/accordion/accordion.js +88 -88
- package/dist/components/alert-dialog/alert-dialog.js +7 -7
- package/dist/components/anchor/anchor.js +6 -6
- package/dist/components/avatar/avatar.js +22 -22
- package/dist/components/badge/badge.js +17 -17
- package/dist/components/button/button.js +7 -7
- package/dist/components/checkbox/checkbox.js +15 -15
- package/dist/components/code/code.js +49 -49
- package/dist/components/collapse/collapse.js +3 -3
- package/dist/components/command/command.js +121 -121
- package/dist/components/context-menu/context-menu.js +13 -13
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/heading/heading.js +5 -5
- package/dist/components/icon/icon.js +10 -10
- package/dist/components/icon-button/icon-button.js +15 -15
- package/dist/components/inline-code/inline-code.js +7 -7
- package/dist/components/input/input.js +1 -1
- package/dist/components/meter/meter.js +32 -32
- package/dist/components/multiline-input/multiline-input.js +1 -1
- package/dist/components/number-input/number-input.js +60 -60
- package/dist/components/password-input/password-input.js +6 -6
- package/dist/components/pill/pill.js +10 -10
- package/dist/components/popover/popover.js +22 -22
- package/dist/components/preview-card/preview-card.js +5 -5
- package/dist/components/radio-group/radio-group.js +99 -99
- package/dist/components/search-bar/search-bar.js +10 -10
- package/dist/components/select/select.js +76 -76
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/slider/slider.js +146 -146
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/stacked-avatars/stacked-avatars.js +25 -25
- package/dist/components/status-banner/status-banner.js +20 -20
- package/dist/components/surface/surface.js +19 -19
- package/dist/components/switch/switch.js +2 -2
- package/dist/components/tabs/tabs.js +34 -34
- package/dist/components/text/text.js +22 -22
- package/dist/components/timestamp/timestamp.js +73 -73
- package/dist/components/toaster/toaster.js +58 -58
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/view/view.js +44 -44
- package/dist/context-menu.css +1 -1
- package/dist/dialog.css +1 -1
- package/dist/{dialog.module-1PAL873u.js → dialog.module-CRiRBcbM.js} +37 -37
- package/dist/{getDisabledMountTransitionStyles-E2x-_lte.js → getDisabledMountTransitionStyles-CyEI2117.js} +1 -1
- package/dist/heading.css +1 -1
- package/dist/icon-button.css +1 -1
- package/dist/icon.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index2.css +1 -1
- package/dist/inline-code.css +1 -1
- package/dist/input.css +1 -1
- package/dist/input.module-CYcyDtrO.js +8 -0
- package/dist/integrations/react-markdown/index.js +26 -26
- package/dist/integrations/twemoji/index.js +1 -1
- package/dist/meter.css +1 -1
- package/dist/number-input.css +1 -1
- package/dist/password-input.css +1 -1
- package/dist/pill.css +1 -1
- package/dist/popover.css +1 -1
- package/dist/preview-card.css +1 -1
- package/dist/radio-group.css +1 -1
- package/dist/{safePolygon-DnkzOIur.js → safePolygon-lAEp2rci.js} +1 -1
- package/dist/search-bar.css +1 -1
- package/dist/select.css +1 -1
- package/dist/{separator-DgY7BjjO.js → separator-Or-BDQYZ.js} +14 -14
- package/dist/separator.css +1 -1
- package/dist/slider.css +1 -1
- package/dist/spinner.css +1 -1
- package/dist/stacked-avatars.css +1 -1
- package/dist/status-banner.css +1 -1
- package/dist/styles/core.css +1 -1
- package/dist/surface.css +1 -1
- package/dist/switch.css +1 -1
- package/dist/tabs.css +1 -1
- package/dist/text.css +1 -1
- package/dist/timestamp.css +1 -1
- package/dist/toaster.css +1 -1
- package/dist/{tooltip-BJQPwudf.js → tooltip-JPnUwFFR.js} +6 -6
- package/dist/tooltip.css +1 -1
- package/dist/transitions.css +1 -1
- package/dist/{transitions.module-D9mMAtfI.js → transitions.module-SSNmQfsR.js} +43 -43
- package/dist/{useRole-BD3OL1rr.js → useRole-D1k7CnHQ.js} +1 -1
- package/dist/{useSyncedFloatingRootContext-BB1vwkV-.js → useSyncedFloatingRootContext-CaohymZI.js} +1 -1
- package/dist/{useTypeahead-BiL5IAVb.js → useTypeahead-CSZtonjF.js} +2 -2
- package/dist/view.css +1 -1
- package/dist/view.module-j3ylJCCE.js +6 -0
- package/dist/view2.css +1 -1
- package/package.json +17 -19
- package/dist/components/dialog/dialog.types.js +0 -1
- package/dist/components/icon/icon.types.js +0 -1
- package/dist/components/surface/surface.types.js +0 -1
- package/dist/components/view/view.types.js +0 -1
- package/dist/input.module-CtE19OH8.js +0 -8
- package/dist/view.module-CjopAf_0.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { View as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import '../../spinner.css';const m = "
|
|
2
|
+
import { c as e } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { View as s } from "../view/view.js";
|
|
4
|
+
import { Icon as i } from "../icon/icon.js";
|
|
5
|
+
import '../../spinner.css';const m = "_spinner_s5ov8_3", p = {
|
|
6
6
|
spinner: m
|
|
7
7
|
};
|
|
8
|
-
function f({ className: r, ...
|
|
9
|
-
return /* @__PURE__ */ n(
|
|
8
|
+
function f({ className: r, ...o }) {
|
|
9
|
+
return /* @__PURE__ */ n(s, { className: e(p.spinner, r), ...o, children: /* @__PURE__ */ n(i, { name: "loader-2-line" }) });
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
f as Spinner
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as v } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { T as
|
|
3
|
+
import { T as b } from "../../tooltip-JPnUwFFR.js";
|
|
4
4
|
import { View as r } from "../view/view.js";
|
|
5
5
|
import { Avatar as o } from "../avatar/avatar.js";
|
|
6
6
|
import { Text as k } from "../text/text.js";
|
|
7
7
|
import '../../stacked-avatars.css';const a = {
|
|
8
|
-
"stacked-avatars": "_stacked-
|
|
9
|
-
"stacked-avatars__avatar": "_stacked-
|
|
10
|
-
"stacked-avatars__avatar_color": "_stacked-
|
|
11
|
-
"stacked-avatars__visible": "_stacked-
|
|
12
|
-
"stacked-avatars__visible_size_sm": "_stacked-
|
|
13
|
-
"stacked-avatars__visible_size_md": "_stacked-
|
|
14
|
-
"stacked-avatars__visible_size_lg": "_stacked-
|
|
15
|
-
"stacked-avatars__visible_size_xl": "_stacked-
|
|
16
|
-
"stacked-avatars__visible_size_2xl": "_stacked-
|
|
17
|
-
"stacked-avatars__visible_size_3xl": "_stacked-
|
|
18
|
-
"stacked-avatars__tooltip-content": "_stacked-avatars__tooltip-
|
|
19
|
-
"stacked-avatars__tooltip-user": "_stacked-avatars__tooltip-
|
|
20
|
-
"stacked-avatars__tooltip-text": "_stacked-avatars__tooltip-
|
|
8
|
+
"stacked-avatars": "_stacked-avatars_1bugq_3",
|
|
9
|
+
"stacked-avatars__avatar": "_stacked-avatars__avatar_1bugq_9",
|
|
10
|
+
"stacked-avatars__avatar_color": "_stacked-avatars__avatar_color_1bugq_14",
|
|
11
|
+
"stacked-avatars__visible": "_stacked-avatars__visible_1bugq_18",
|
|
12
|
+
"stacked-avatars__visible_size_sm": "_stacked-avatars__visible_size_sm_1bugq_36",
|
|
13
|
+
"stacked-avatars__visible_size_md": "_stacked-avatars__visible_size_md_1bugq_40",
|
|
14
|
+
"stacked-avatars__visible_size_lg": "_stacked-avatars__visible_size_lg_1bugq_44",
|
|
15
|
+
"stacked-avatars__visible_size_xl": "_stacked-avatars__visible_size_xl_1bugq_48",
|
|
16
|
+
"stacked-avatars__visible_size_2xl": "_stacked-avatars__visible_size_2xl_1bugq_52",
|
|
17
|
+
"stacked-avatars__visible_size_3xl": "_stacked-avatars__visible_size_3xl_1bugq_56",
|
|
18
|
+
"stacked-avatars__tooltip-content": "_stacked-avatars__tooltip-content_1bugq_61",
|
|
19
|
+
"stacked-avatars__tooltip-user": "_stacked-avatars__tooltip-user_1bugq_71",
|
|
20
|
+
"stacked-avatars__tooltip-text": "_stacked-avatars__tooltip-text_1bugq_79"
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function q({
|
|
23
23
|
users: s,
|
|
24
24
|
visibleUsers: e = 3,
|
|
25
25
|
size: d = "md"
|
|
26
26
|
}) {
|
|
27
27
|
return /* @__PURE__ */ t(
|
|
28
|
-
|
|
28
|
+
b,
|
|
29
29
|
{
|
|
30
30
|
className: a["stacked-avatars__tooltip-content"],
|
|
31
|
-
trigger: /* @__PURE__ */
|
|
32
|
-
s.slice(0, e).map(({ color:
|
|
31
|
+
trigger: /* @__PURE__ */ l(r, { className: a["stacked-avatars"], children: [
|
|
32
|
+
s.slice(0, e).map(({ color: i, className: c, ..._ }, m) => /* @__PURE__ */ t(r, { color: i, children: /* @__PURE__ */ t(
|
|
33
33
|
o,
|
|
34
34
|
{
|
|
35
35
|
size: d,
|
|
36
36
|
className: v(
|
|
37
37
|
a["stacked-avatars__avatar"],
|
|
38
38
|
a["stacked-avatars__avatar_color"],
|
|
39
|
-
|
|
39
|
+
c
|
|
40
40
|
),
|
|
41
41
|
style: { zIndex: m },
|
|
42
42
|
..._
|
|
@@ -50,23 +50,23 @@ function f({
|
|
|
50
50
|
a[`stacked-avatars__visible_size_${d}`]
|
|
51
51
|
),
|
|
52
52
|
style: { zIndex: e + 1 },
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ l(k, { size: "sm", children: [
|
|
54
54
|
"+",
|
|
55
55
|
s.length - e
|
|
56
56
|
] })
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] }),
|
|
60
|
-
children: s.map(({ color:
|
|
60
|
+
children: s.map(({ color: i, className: c, ..._ }) => /* @__PURE__ */ l(
|
|
61
61
|
r,
|
|
62
62
|
{
|
|
63
|
-
color:
|
|
63
|
+
color: i,
|
|
64
64
|
className: a["stacked-avatars__tooltip-user"],
|
|
65
65
|
children: [
|
|
66
66
|
/* @__PURE__ */ t(
|
|
67
67
|
o,
|
|
68
68
|
{
|
|
69
|
-
className: v(a["stacked-avatars__avatar_color"],
|
|
69
|
+
className: v(a["stacked-avatars__avatar_color"], c),
|
|
70
70
|
..._,
|
|
71
71
|
size: "sm"
|
|
72
72
|
},
|
|
@@ -88,5 +88,5 @@ function f({
|
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
q as StackedAvatars
|
|
92
92
|
};
|
|
@@ -3,16 +3,16 @@ import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
|
3
3
|
import { View as i } from "../view/view.js";
|
|
4
4
|
import { Icon as d } from "../icon/icon.js";
|
|
5
5
|
import { Heading as p } from "../heading/heading.js";
|
|
6
|
-
import { Text as
|
|
6
|
+
import { Text as x } from "../text/text.js";
|
|
7
7
|
import '../../status-banner.css';const t = {
|
|
8
|
-
"status-banner": "_status-
|
|
9
|
-
"status-banner_variant_neutral": "_status-
|
|
10
|
-
"status-banner_variant_colorway": "_status-
|
|
11
|
-
"status-banner_size_md": "_status-
|
|
12
|
-
"status-banner_size_lg": "_status-
|
|
13
|
-
"status-banner__content": "_status-
|
|
14
|
-
"status-banner__description": "_status-
|
|
15
|
-
"status-banner__close": "_status-
|
|
8
|
+
"status-banner": "_status-banner_x87er_3",
|
|
9
|
+
"status-banner_variant_neutral": "_status-banner_variant_neutral_x87er_16",
|
|
10
|
+
"status-banner_variant_colorway": "_status-banner_variant_colorway_x87er_22",
|
|
11
|
+
"status-banner_size_md": "_status-banner_size_md_x87er_28",
|
|
12
|
+
"status-banner_size_lg": "_status-banner_size_lg_x87er_34",
|
|
13
|
+
"status-banner__content": "_status-banner__content_x87er_40",
|
|
14
|
+
"status-banner__description": "_status-banner__description_x87er_46",
|
|
15
|
+
"status-banner__close": "_status-banner__close_x87er_51"
|
|
16
16
|
}, a = {
|
|
17
17
|
md: {
|
|
18
18
|
icon: "md",
|
|
@@ -25,40 +25,40 @@ import '../../status-banner.css';const t = {
|
|
|
25
25
|
description: "md"
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function y({
|
|
29
29
|
color: e,
|
|
30
30
|
icon: r,
|
|
31
|
-
title:
|
|
32
|
-
description:
|
|
31
|
+
title: o,
|
|
32
|
+
description: l,
|
|
33
33
|
size: n = "lg",
|
|
34
|
-
render:
|
|
35
|
-
className:
|
|
34
|
+
render: u,
|
|
35
|
+
className: c,
|
|
36
36
|
...m
|
|
37
37
|
}) {
|
|
38
38
|
return /* @__PURE__ */ _(
|
|
39
39
|
i,
|
|
40
40
|
{
|
|
41
|
-
render:
|
|
41
|
+
render: u,
|
|
42
42
|
...m,
|
|
43
43
|
color: e,
|
|
44
44
|
className: b(
|
|
45
45
|
t["status-banner"],
|
|
46
46
|
t[`status-banner_size_${n}`],
|
|
47
47
|
e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"],
|
|
48
|
-
|
|
48
|
+
c
|
|
49
49
|
),
|
|
50
50
|
children: [
|
|
51
51
|
r ? /* @__PURE__ */ s(d, { name: r, size: a[n].icon }) : null,
|
|
52
52
|
/* @__PURE__ */ _(i, { className: t["status-banner__content"], children: [
|
|
53
|
-
/* @__PURE__ */ s(p, { level: 1, size: a[n].title, color: "inherit", children:
|
|
53
|
+
/* @__PURE__ */ s(p, { level: 1, size: a[n].title, color: "inherit", children: o }),
|
|
54
54
|
/* @__PURE__ */ s(
|
|
55
|
-
|
|
55
|
+
x,
|
|
56
56
|
{
|
|
57
57
|
className: t["status-banner__description"],
|
|
58
58
|
multiline: !0,
|
|
59
59
|
size: a[n].description,
|
|
60
60
|
color: "inherit",
|
|
61
|
-
children:
|
|
61
|
+
children: l
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
] })
|
|
@@ -67,5 +67,5 @@ function w({
|
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
y as StatusBanner
|
|
71
71
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { createContext as i, useContext as h } from "react";
|
|
4
4
|
import { View as l } from "../view/view.js";
|
|
5
|
-
import '../../surface.css';const
|
|
6
|
-
surface:
|
|
7
|
-
"surface--root": "_surface--
|
|
8
|
-
"surface--default": "_surface--
|
|
9
|
-
"surface--higher": "_surface--
|
|
10
|
-
"surface--highest": "_surface--
|
|
11
|
-
},
|
|
12
|
-
function
|
|
13
|
-
let t = h(
|
|
14
|
-
return e ? t =
|
|
5
|
+
import '../../surface.css';const m = "_surface_4hgme_3", s = {
|
|
6
|
+
surface: m,
|
|
7
|
+
"surface--root": "_surface--root_4hgme_7",
|
|
8
|
+
"surface--default": "_surface--default_4hgme_15",
|
|
9
|
+
"surface--higher": "_surface--higher_4hgme_23",
|
|
10
|
+
"surface--highest": "_surface--highest_4hgme_31"
|
|
11
|
+
}, c = i(0);
|
|
12
|
+
function C({ background: e, elevated: r, className: n, ...f }) {
|
|
13
|
+
let t = h(c);
|
|
14
|
+
return e ? t = _(e) : r && t++, /* @__PURE__ */ a(c.Provider, { value: t, children: /* @__PURE__ */ a(
|
|
15
15
|
l,
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
className: u(
|
|
18
|
+
s.surface,
|
|
19
|
+
s[`surface--${g(t)}`],
|
|
20
|
+
n
|
|
21
21
|
),
|
|
22
|
-
...
|
|
22
|
+
...f
|
|
23
23
|
}
|
|
24
24
|
) });
|
|
25
25
|
}
|
|
26
26
|
const o = ["root", "default", "higher", "highest"];
|
|
27
|
-
function
|
|
27
|
+
function _(e = "root") {
|
|
28
28
|
const r = o.indexOf(e);
|
|
29
29
|
return Math.min(Math.max(r, 0), o.length - 1);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function g(e = 0) {
|
|
32
32
|
return o[e] || "root";
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
C as Surface
|
|
36
36
|
};
|
|
@@ -172,8 +172,8 @@ const L = /* @__PURE__ */ s.forwardRef(function(i, m) {
|
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
process.env.NODE_ENV !== "production" && (L.displayName = "SwitchThumb");
|
|
175
|
-
const _e = "
|
|
176
|
-
switch: "
|
|
175
|
+
const _e = "_switch__thumb_ap37s_26", F = {
|
|
176
|
+
switch: "_switch_ap37s_3",
|
|
177
177
|
switch__thumb: _e
|
|
178
178
|
};
|
|
179
179
|
function Ue({ color: e = "primary", ...i }) {
|
|
@@ -6,7 +6,7 @@ import { tokens as it } from "../../styles/tokens.js";
|
|
|
6
6
|
import { View as U } from "../view/view.js";
|
|
7
7
|
import { Button as ut } from "../button/button.js";
|
|
8
8
|
import { Icon as ct } from "../icon/icon.js";
|
|
9
|
-
import { S as lt } from "../../separator-
|
|
9
|
+
import { S as lt } from "../../separator-Or-BDQYZ.js";
|
|
10
10
|
import { u as dt } from "../../useControlled-Du4sJyMj.js";
|
|
11
11
|
import { u as F } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
12
12
|
import { u as k } from "../../useStableCallback-DKZHlUAT.js";
|
|
@@ -18,8 +18,8 @@ import { u as et } from "../../useBaseUiId-B7WyxtIE.js";
|
|
|
18
18
|
import { u as _t, A as gt, C as vt } from "../../CompositeRoot-CCgh2M64.js";
|
|
19
19
|
import { o as J } from "../../owner-rKN292Q9.js";
|
|
20
20
|
import { c as Q, n as X } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
|
|
21
|
-
import { u as
|
|
22
|
-
import { d as
|
|
21
|
+
import { u as Tt } from "../../useButton-d3_JgBNr.js";
|
|
22
|
+
import { d as ht, f as Ct } from "../../element-u5WgOZX1.js";
|
|
23
23
|
import '../../tabs.css';const K = /* @__PURE__ */ n.createContext(void 0);
|
|
24
24
|
process.env.NODE_ENV !== "production" && (K.displayName = "TabsRootContext");
|
|
25
25
|
function Y() {
|
|
@@ -44,13 +44,13 @@ const W = {
|
|
|
44
44
|
render: _,
|
|
45
45
|
value: b,
|
|
46
46
|
...v
|
|
47
|
-
} = o,
|
|
47
|
+
} = o, T = mt(), E = Object.hasOwn(o, "defaultValue"), R = n.useRef([]), [x, l] = n.useState(() => /* @__PURE__ */ new Map()), [d, h] = dt({
|
|
48
48
|
controlled: b,
|
|
49
49
|
default: e,
|
|
50
50
|
name: "Tabs",
|
|
51
51
|
state: "value"
|
|
52
52
|
}), N = b !== void 0, [i, P] = n.useState(() => /* @__PURE__ */ new Map()), [D, I] = n.useState("none"), M = k((s, m) => {
|
|
53
|
-
c?.(s, m), !m.isCanceled && (
|
|
53
|
+
c?.(s, m), !m.isCanceled && (h(s), I(m.activationDirection));
|
|
54
54
|
}), p = k((s, m) => {
|
|
55
55
|
l((r) => {
|
|
56
56
|
if (r.get(s) === m)
|
|
@@ -77,7 +77,7 @@ const W = {
|
|
|
77
77
|
return m;
|
|
78
78
|
return null;
|
|
79
79
|
}, [i]), y = n.useMemo(() => ({
|
|
80
|
-
direction:
|
|
80
|
+
direction: T,
|
|
81
81
|
getTabElementBySelectedValue: w,
|
|
82
82
|
getTabIdByPanelValue: O,
|
|
83
83
|
getTabPanelIdByValue: V,
|
|
@@ -88,7 +88,7 @@ const W = {
|
|
|
88
88
|
unregisterMountedTabPanel: A,
|
|
89
89
|
tabActivationDirection: D,
|
|
90
90
|
value: d
|
|
91
|
-
}), [
|
|
91
|
+
}), [T, w, O, V, M, a, p, P, A, D, d]), S = n.useMemo(() => {
|
|
92
92
|
for (const s of i.values())
|
|
93
93
|
if (s != null && s.value === d)
|
|
94
94
|
return s;
|
|
@@ -104,8 +104,8 @@ const W = {
|
|
|
104
104
|
if (E && s && d === e || !s && !m)
|
|
105
105
|
return;
|
|
106
106
|
const C = L ?? null;
|
|
107
|
-
d !== C && (
|
|
108
|
-
}, [e, L, E, N, S, I,
|
|
107
|
+
d !== C && (h(C), I("none"));
|
|
108
|
+
}, [e, L, E, N, S, I, h, i, d]);
|
|
109
109
|
const H = $("div", o, {
|
|
110
110
|
state: {
|
|
111
111
|
orientation: a,
|
|
@@ -142,14 +142,14 @@ const ot = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
142
142
|
nativeButton: b = !0,
|
|
143
143
|
...v
|
|
144
144
|
} = o, {
|
|
145
|
-
value:
|
|
145
|
+
value: T,
|
|
146
146
|
getTabPanelIdByValue: E,
|
|
147
147
|
orientation: R
|
|
148
148
|
} = Y(), {
|
|
149
149
|
activateOnFocus: x,
|
|
150
150
|
highlightedTabIndex: l,
|
|
151
151
|
onTabActivation: d,
|
|
152
|
-
setHighlightedTabIndex:
|
|
152
|
+
setHighlightedTabIndex: h,
|
|
153
153
|
tabsListElement: N
|
|
154
154
|
} = Mt(), i = et(_), P = n.useMemo(() => ({
|
|
155
155
|
disabled: e,
|
|
@@ -163,7 +163,7 @@ const ot = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
163
163
|
// because the index is needed for Tab internals
|
|
164
164
|
} = _t({
|
|
165
165
|
metadata: P
|
|
166
|
-
}), p = a ===
|
|
166
|
+
}), p = a === T, A = n.useRef(!1);
|
|
167
167
|
F(() => {
|
|
168
168
|
if (A.current) {
|
|
169
169
|
A.current = !1;
|
|
@@ -173,16 +173,16 @@ const ot = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
173
173
|
return;
|
|
174
174
|
const r = N;
|
|
175
175
|
if (r != null) {
|
|
176
|
-
const C =
|
|
176
|
+
const C = ht(J(r));
|
|
177
177
|
if (C && Ct(r, C))
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
|
-
e ||
|
|
181
|
-
}, [p, M, l,
|
|
180
|
+
e || h(M);
|
|
181
|
+
}, [p, M, l, h, e, N]);
|
|
182
182
|
const {
|
|
183
183
|
getButtonProps: V,
|
|
184
184
|
buttonRef: O
|
|
185
|
-
} =
|
|
185
|
+
} = Tt({
|
|
186
186
|
disabled: e,
|
|
187
187
|
native: b,
|
|
188
188
|
focusableWhenDisabled: !0
|
|
@@ -193,7 +193,7 @@ const ot = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
193
193
|
}));
|
|
194
194
|
}
|
|
195
195
|
function G(r) {
|
|
196
|
-
p || (M > -1 && !e &&
|
|
196
|
+
p || (M > -1 && !e && h(M), !e && x && (!y.current || // keyboard or touch focus
|
|
197
197
|
y.current && S.current) && d(a, Q(X, r.nativeEvent, void 0, {
|
|
198
198
|
activationDirection: "none"
|
|
199
199
|
})));
|
|
@@ -246,7 +246,7 @@ const at = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
246
246
|
} = o, {
|
|
247
247
|
value: b,
|
|
248
248
|
getTabIdByPanelValue: v,
|
|
249
|
-
orientation:
|
|
249
|
+
orientation: T,
|
|
250
250
|
tabActivationDirection: E,
|
|
251
251
|
registerMountedTabPanel: R,
|
|
252
252
|
unregisterMountedTabPanel: x
|
|
@@ -254,17 +254,17 @@ const at = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
254
254
|
id: l,
|
|
255
255
|
value: e
|
|
256
256
|
}), [l, e]), {
|
|
257
|
-
ref:
|
|
257
|
+
ref: h,
|
|
258
258
|
index: N
|
|
259
259
|
} = pt({
|
|
260
260
|
metadata: d
|
|
261
261
|
}), i = e !== b, P = v(e), D = n.useMemo(() => ({
|
|
262
262
|
hidden: i,
|
|
263
|
-
orientation:
|
|
263
|
+
orientation: T,
|
|
264
264
|
tabActivationDirection: E
|
|
265
|
-
}), [i,
|
|
265
|
+
}), [i, T, E]), I = $("div", o, {
|
|
266
266
|
state: D,
|
|
267
|
-
ref: [u,
|
|
267
|
+
ref: [u, h],
|
|
268
268
|
props: [{
|
|
269
269
|
"aria-labelledby": P,
|
|
270
270
|
hidden: i,
|
|
@@ -293,15 +293,15 @@ const st = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
293
293
|
} = o, {
|
|
294
294
|
getTabElementBySelectedValue: b,
|
|
295
295
|
onValueChange: v,
|
|
296
|
-
orientation:
|
|
296
|
+
orientation: T,
|
|
297
297
|
value: E,
|
|
298
298
|
setTabMap: R,
|
|
299
299
|
tabActivationDirection: x
|
|
300
|
-
} = Y(), [l, d] = n.useState(0), [
|
|
300
|
+
} = Y(), [l, d] = n.useState(0), [h, N] = n.useState(null), i = Rt(
|
|
301
301
|
E,
|
|
302
302
|
// the old value
|
|
303
|
-
h,
|
|
304
303
|
T,
|
|
304
|
+
h,
|
|
305
305
|
b
|
|
306
306
|
), P = k((p, A) => {
|
|
307
307
|
if (p !== E) {
|
|
@@ -309,19 +309,19 @@ const st = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
309
309
|
A.activationDirection = V, v(p, A);
|
|
310
310
|
}
|
|
311
311
|
}), D = n.useMemo(() => ({
|
|
312
|
-
orientation:
|
|
312
|
+
orientation: T,
|
|
313
313
|
tabActivationDirection: x
|
|
314
|
-
}), [
|
|
315
|
-
"aria-orientation":
|
|
314
|
+
}), [T, x]), I = {
|
|
315
|
+
"aria-orientation": T === "vertical" ? "vertical" : void 0,
|
|
316
316
|
role: "tablist"
|
|
317
317
|
}, M = n.useMemo(() => ({
|
|
318
318
|
activateOnFocus: f,
|
|
319
319
|
highlightedTabIndex: l,
|
|
320
320
|
onTabActivation: P,
|
|
321
321
|
setHighlightedTabIndex: d,
|
|
322
|
-
tabsListElement:
|
|
322
|
+
tabsListElement: h,
|
|
323
323
|
value: E
|
|
324
|
-
}), [f, l, P, d,
|
|
324
|
+
}), [f, l, P, d, h, E]);
|
|
325
325
|
return /* @__PURE__ */ g(q.Provider, {
|
|
326
326
|
value: M,
|
|
327
327
|
children: /* @__PURE__ */ g(vt, {
|
|
@@ -334,7 +334,7 @@ const st = /* @__PURE__ */ n.forwardRef(function(o, u) {
|
|
|
334
334
|
highlightedIndex: l,
|
|
335
335
|
enableHomeAndEndKeys: !0,
|
|
336
336
|
loopFocus: c,
|
|
337
|
-
orientation:
|
|
337
|
+
orientation: T,
|
|
338
338
|
onHighlightedIndexChange: d,
|
|
339
339
|
onMapChange: R,
|
|
340
340
|
disabledIndices: ft
|
|
@@ -402,15 +402,15 @@ function Rt(t, o, u, f) {
|
|
|
402
402
|
return "none";
|
|
403
403
|
}, [f, o, e, u, t]);
|
|
404
404
|
}
|
|
405
|
-
const Nt = "
|
|
405
|
+
const Nt = "_tabs_1t4sr_7", Pt = "_tabs__list_1t4sr_11", Dt = "_tabs_variant_default_1t4sr_18", It = "_tabs__separator_1t4sr_23", At = "_tabs__trigger_1t4sr_27", St = "_tabs_variant_progress_1t4sr_49", B = {
|
|
406
406
|
tabs: Nt,
|
|
407
407
|
tabs__list: Pt,
|
|
408
408
|
tabs_variant_default: Dt,
|
|
409
409
|
tabs__separator: It,
|
|
410
410
|
tabs__trigger: At,
|
|
411
411
|
tabs_variant_progress: St,
|
|
412
|
-
"tabs__trigger-complete": "_tabs__trigger-
|
|
413
|
-
"tabs_variant_button-group": "_tabs_variant_button-
|
|
412
|
+
"tabs__trigger-complete": "_tabs__trigger-complete_1t4sr_73",
|
|
413
|
+
"tabs_variant_button-group": "_tabs_variant_button-group_1t4sr_85"
|
|
414
414
|
}, Vt = /* @__PURE__ */ new Set(["default", "progress"]);
|
|
415
415
|
function yt({
|
|
416
416
|
variant: t = "default",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { s as
|
|
3
|
-
import { u as
|
|
4
|
-
import { m as
|
|
5
|
-
import '../../text.css';const
|
|
6
|
-
text:
|
|
7
|
-
"text_clip-line": "_text_clip-
|
|
8
|
-
"text_clamp-lines": "_text_clamp-
|
|
9
|
-
text_color_inherit:
|
|
10
|
-
text_color_default:
|
|
11
|
-
text_color_dimmer:
|
|
12
|
-
text_color_dimmest:
|
|
13
|
-
text_size_sm:
|
|
14
|
-
text_size_md:
|
|
15
|
-
text_size_lg:
|
|
16
|
-
text_size_xl:
|
|
17
|
-
text_size_2xl:
|
|
1
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
2
|
+
import { s as i } from "../../view.module-j3ylJCCE.js";
|
|
3
|
+
import { u as n } from "../../useRender-C3vlzS3t.js";
|
|
4
|
+
import { m as c } from "../../useRenderElement-DngNDu_P.js";
|
|
5
|
+
import '../../text.css';const r = "_text_1qm2n_3", a = "_text_color_inherit_1qm2n_27", z = "_text_color_default_1qm2n_31", d = "_text_color_dimmer_1qm2n_35", p = "_text_color_dimmest_1qm2n_39", q = "_text_size_sm_1qm2n_44", f = "_text_size_md_1qm2n_50", u = "_text_size_lg_1qm2n_56", g = "_text_size_xl_1qm2n_62", h = "_text_size_2xl_1qm2n_68", y = "_text_size_3xl_1qm2n_74", t = {
|
|
6
|
+
text: r,
|
|
7
|
+
"text_clip-line": "_text_clip-line_1qm2n_10",
|
|
8
|
+
"text_clamp-lines": "_text_clamp-lines_1qm2n_17",
|
|
9
|
+
text_color_inherit: a,
|
|
10
|
+
text_color_default: z,
|
|
11
|
+
text_color_dimmer: d,
|
|
12
|
+
text_color_dimmest: p,
|
|
13
|
+
text_size_sm: q,
|
|
14
|
+
text_size_md: f,
|
|
15
|
+
text_size_lg: u,
|
|
16
|
+
text_size_xl: g,
|
|
17
|
+
text_size_2xl: h,
|
|
18
18
|
text_size_3xl: y
|
|
19
19
|
};
|
|
20
20
|
function M({
|
|
@@ -23,14 +23,14 @@ function M({
|
|
|
23
23
|
maxLines: _ = 1,
|
|
24
24
|
multiline: e,
|
|
25
25
|
render: o,
|
|
26
|
-
...
|
|
26
|
+
...m
|
|
27
27
|
}) {
|
|
28
|
-
return
|
|
28
|
+
return n({
|
|
29
29
|
defaultTagName: "span",
|
|
30
30
|
render: o,
|
|
31
|
-
props:
|
|
32
|
-
className:
|
|
33
|
-
|
|
31
|
+
props: c(m, {
|
|
32
|
+
className: l(
|
|
33
|
+
i.view,
|
|
34
34
|
t.text,
|
|
35
35
|
t[`text_color_${s}`],
|
|
36
36
|
t[`text_size_${x}`],
|