@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,13 +1,13 @@
|
|
|
1
1
|
import { u as n } from "../../useRender-C3vlzS3t.js";
|
|
2
|
-
import { m as
|
|
3
|
-
import '../../anchor.css';const
|
|
4
|
-
anchor:
|
|
2
|
+
import { m as t } from "../../useRenderElement-DngNDu_P.js";
|
|
3
|
+
import '../../anchor.css';const a = "_anchor_1mbt9_3", s = {
|
|
4
|
+
anchor: a
|
|
5
5
|
};
|
|
6
|
-
function
|
|
6
|
+
function p({ external: e, render: r, ...o }) {
|
|
7
7
|
return n({
|
|
8
8
|
defaultTagName: "a",
|
|
9
9
|
render: r,
|
|
10
|
-
props:
|
|
10
|
+
props: t(o, {
|
|
11
11
|
className: s.anchor,
|
|
12
12
|
...e ? {
|
|
13
13
|
target: "_blank",
|
|
@@ -17,5 +17,5 @@ function h({ external: e, render: r, ...o }) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
p as Anchor
|
|
21
21
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as v, jsxs as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as v, jsxs as E } from "react/jsx-runtime";
|
|
2
|
+
import { c as L } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { u as f, N as
|
|
5
|
-
import { f as
|
|
6
|
-
import { u as
|
|
4
|
+
import { u as f, N as R } from "../../useRenderElement-DngNDu_P.js";
|
|
5
|
+
import { f as h } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
6
|
+
import { u as k } from "../../useStableCallback-DKZHlUAT.js";
|
|
7
7
|
import { u as N } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as C } from "../../useTimeout-BNni6aw5.js";
|
|
9
9
|
import '../../avatar.css';const g = /* @__PURE__ */ o.createContext(void 0);
|
|
10
10
|
process.env.NODE_ENV !== "production" && (g.displayName = "AvatarRootContext");
|
|
11
11
|
function b() {
|
|
12
12
|
const e = o.useContext(g);
|
|
13
13
|
if (e === void 0)
|
|
14
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." :
|
|
14
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : h(13));
|
|
15
15
|
return e;
|
|
16
16
|
}
|
|
17
17
|
const p = {
|
|
@@ -38,14 +38,14 @@ const p = {
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
process.env.NODE_ENV !== "production" && (z.displayName = "AvatarRoot");
|
|
41
|
-
function
|
|
41
|
+
function M(e, {
|
|
42
42
|
referrerPolicy: a,
|
|
43
43
|
crossOrigin: s
|
|
44
44
|
}) {
|
|
45
45
|
const [l, i] = o.useState("idle");
|
|
46
46
|
return N(() => {
|
|
47
47
|
if (!e)
|
|
48
|
-
return i("error"),
|
|
48
|
+
return i("error"), R;
|
|
49
49
|
let r = !0;
|
|
50
50
|
const t = new window.Image(), c = (_) => () => {
|
|
51
51
|
r && i(_);
|
|
@@ -55,7 +55,7 @@ function w(e, {
|
|
|
55
55
|
};
|
|
56
56
|
}, [e, s, a]), l;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const y = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
59
59
|
const {
|
|
60
60
|
className: l,
|
|
61
61
|
render: i,
|
|
@@ -63,10 +63,10 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
63
63
|
referrerPolicy: t,
|
|
64
64
|
crossOrigin: c,
|
|
65
65
|
..._
|
|
66
|
-
} = a, u = b(), n =
|
|
66
|
+
} = a, u = b(), n = M(a.src, {
|
|
67
67
|
referrerPolicy: t,
|
|
68
68
|
crossOrigin: c
|
|
69
|
-
}), d =
|
|
69
|
+
}), d = k((x) => {
|
|
70
70
|
r?.(x), u.setImageLoadingStatus(x);
|
|
71
71
|
});
|
|
72
72
|
N(() => {
|
|
@@ -83,8 +83,8 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
83
83
|
enabled: n === "loaded"
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
process.env.NODE_ENV !== "production" && (
|
|
87
|
-
const
|
|
86
|
+
process.env.NODE_ENV !== "production" && (y.displayName = "AvatarImage");
|
|
87
|
+
const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
88
88
|
const {
|
|
89
89
|
className: l,
|
|
90
90
|
render: i,
|
|
@@ -92,7 +92,7 @@ const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
92
92
|
...t
|
|
93
93
|
} = a, {
|
|
94
94
|
imageLoadingStatus: c
|
|
95
|
-
} = b(), [_, u] = o.useState(r === void 0), n =
|
|
95
|
+
} = b(), [_, u] = o.useState(r === void 0), n = C();
|
|
96
96
|
o.useEffect(() => (r !== void 0 && n.start(r, () => u(!0)), n.clear), [n, r]);
|
|
97
97
|
const d = o.useMemo(() => ({
|
|
98
98
|
imageLoadingStatus: c
|
|
@@ -105,9 +105,9 @@ const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
105
105
|
enabled: c !== "loaded" && _
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
process.env.NODE_ENV !== "production" && (
|
|
109
|
-
const
|
|
110
|
-
avatar:
|
|
108
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "AvatarFallback");
|
|
109
|
+
const w = "_avatar_l5yco_3", I = "_avatar__image_l5yco_17", O = "_avatar__fallback_l5yco_23", D = "_avatar_size_sm_l5yco_36", V = "_avatar_size_md_l5yco_40", F = "_avatar_size_lg_l5yco_44", P = "_avatar_size_xl_l5yco_48", j = "_avatar_size_2xl_l5yco_52", U = "_avatar_size_3xl_l5yco_56", m = {
|
|
110
|
+
avatar: w,
|
|
111
111
|
avatar__image: I,
|
|
112
112
|
avatar__fallback: O,
|
|
113
113
|
avatar_size_sm: D,
|
|
@@ -126,10 +126,10 @@ function W({
|
|
|
126
126
|
...r
|
|
127
127
|
}) {
|
|
128
128
|
const t = B(a, s);
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ E(
|
|
130
130
|
z,
|
|
131
131
|
{
|
|
132
|
-
className:
|
|
132
|
+
className: L(
|
|
133
133
|
m.avatar,
|
|
134
134
|
m[`avatar_size_${l}`],
|
|
135
135
|
i
|
|
@@ -137,13 +137,13 @@ function W({
|
|
|
137
137
|
...r,
|
|
138
138
|
children: [
|
|
139
139
|
e ? /* @__PURE__ */ v(
|
|
140
|
-
|
|
140
|
+
y,
|
|
141
141
|
{
|
|
142
142
|
src: e,
|
|
143
143
|
className: m.avatar__image
|
|
144
144
|
}
|
|
145
145
|
) : null,
|
|
146
|
-
/* @__PURE__ */ v(
|
|
146
|
+
/* @__PURE__ */ v(S, { className: m.avatar__fallback, children: t })
|
|
147
147
|
]
|
|
148
148
|
}
|
|
149
149
|
);
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { jsx as e, jsxs as p, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { T as _ } from "../../tooltip-
|
|
3
|
+
import { T as _ } from "../../tooltip-JPnUwFFR.js";
|
|
4
4
|
import { Text as b } from "../text/text.js";
|
|
5
5
|
import { View as h } from "../view/view.js";
|
|
6
6
|
import { Icon as u } from "../icon/icon.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { m as
|
|
9
|
-
import '../../badge.css';const T = "
|
|
7
|
+
import { u as y } from "../../useRender-C3vlzS3t.js";
|
|
8
|
+
import { m as x } from "../../useRenderElement-DngNDu_P.js";
|
|
9
|
+
import '../../badge.css';const T = "_badge_1m3yi_3", j = "_badge_shiny_1m3yi_18", s = {
|
|
10
10
|
badge: T,
|
|
11
11
|
badge_shiny: j
|
|
12
12
|
};
|
|
13
13
|
function V({
|
|
14
14
|
icon: r,
|
|
15
|
-
name:
|
|
16
|
-
color:
|
|
17
|
-
shiny:
|
|
18
|
-
tagline:
|
|
19
|
-
render:
|
|
15
|
+
name: i,
|
|
16
|
+
color: t,
|
|
17
|
+
shiny: n,
|
|
18
|
+
tagline: m,
|
|
19
|
+
render: a,
|
|
20
20
|
className: d,
|
|
21
21
|
...l
|
|
22
22
|
}) {
|
|
23
|
-
const c =
|
|
23
|
+
const c = y({
|
|
24
24
|
defaultTagName: "span",
|
|
25
|
-
render:
|
|
26
|
-
props:
|
|
25
|
+
render: a,
|
|
26
|
+
props: x(l, {
|
|
27
27
|
className: f(
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
s.badge,
|
|
29
|
+
n && s.badge_shiny,
|
|
30
30
|
d
|
|
31
31
|
),
|
|
32
32
|
children: /* @__PURE__ */ p(g, { children: [
|
|
33
33
|
r ? /* @__PURE__ */ e(u, { name: r }) : null,
|
|
34
|
-
|
|
34
|
+
i
|
|
35
35
|
] })
|
|
36
36
|
})
|
|
37
|
-
}),
|
|
38
|
-
return
|
|
37
|
+
}), o = /* @__PURE__ */ e(h, { color: t, children: c });
|
|
38
|
+
return m ? /* @__PURE__ */ e(_, { trigger: o, children: /* @__PURE__ */ e(b, { size: "sm", multiline: !0, children: m }) }) : o;
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
41
|
V as Badge
|
|
@@ -4,14 +4,14 @@ import { textify as m } from "../../-utils.js";
|
|
|
4
4
|
import { View as r } from "../view/view.js";
|
|
5
5
|
import { Icon as e } from "../icon/icon.js";
|
|
6
6
|
import { B as s } from "../../Button-BmcVHRRW.js";
|
|
7
|
-
import '../../button.css';const c = "
|
|
7
|
+
import '../../button.css';const c = "_button_17tw0_3", x = "_button_height_sm_17tw0_16", a = "_button_height_md_17tw0_21", d = "_button_height_lg_17tw0_26", f = "_button_height_xl_17tw0_31", w = "_button_height_2xl_17tw0_36", p = "_button_height_3xl_17tw0_41", i = {
|
|
8
8
|
button: c,
|
|
9
|
-
button_height_sm:
|
|
10
|
-
button_height_md:
|
|
11
|
-
button_height_lg:
|
|
12
|
-
button_height_xl:
|
|
13
|
-
button_height_2xl:
|
|
14
|
-
button_height_3xl:
|
|
9
|
+
button_height_sm: x,
|
|
10
|
+
button_height_md: a,
|
|
11
|
+
button_height_lg: d,
|
|
12
|
+
button_height_xl: f,
|
|
13
|
+
button_height_2xl: w,
|
|
14
|
+
button_height_3xl: p
|
|
15
15
|
};
|
|
16
16
|
function N({
|
|
17
17
|
size: t = "md",
|
|
@@ -4,7 +4,7 @@ import { Icon as Fe } from "../icon/icon.js";
|
|
|
4
4
|
import { Text as Te } from "../text/text.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { f as ee } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
7
|
-
import { N as
|
|
7
|
+
import { N as je, d as qe, m as Ue, E as De, u as te } from "../../useRenderElement-DngNDu_P.js";
|
|
8
8
|
import { f as ne, c as He, a as Le, u as $e, b as ze } from "../../LabelableContext-Be1u-eFg.js";
|
|
9
9
|
import { u as Je, t as Ke } from "../../useOpenChangeComplete-BHd-N7Ig.js";
|
|
10
10
|
import { u as We } from "../../useTransitionStatus-CmMyUh74.js";
|
|
@@ -40,10 +40,10 @@ function ot(e = !0) {
|
|
|
40
40
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>." : ee(3));
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
process.env.NODE_ENV !== "production" && (
|
|
43
|
+
const q = /* @__PURE__ */ r.createContext(void 0);
|
|
44
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "CheckboxRootContext");
|
|
45
45
|
function rt() {
|
|
46
|
-
const e = r.useContext(
|
|
46
|
+
const e = r.useContext(q);
|
|
47
47
|
if (e === void 0)
|
|
48
48
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." : ee(14));
|
|
49
49
|
return e;
|
|
@@ -61,7 +61,7 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
|
|
|
61
61
|
onCheckedChange: E,
|
|
62
62
|
parent: i = !1,
|
|
63
63
|
readOnly: l = !1,
|
|
64
|
-
render:
|
|
64
|
+
render: U,
|
|
65
65
|
required: f = !1,
|
|
66
66
|
uncheckedValue: N,
|
|
67
67
|
value: P,
|
|
@@ -109,7 +109,7 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
|
|
|
109
109
|
state: "checked"
|
|
110
110
|
});
|
|
111
111
|
Y(() => {
|
|
112
|
-
if (V !==
|
|
112
|
+
if (V !== je)
|
|
113
113
|
return V(g), () => {
|
|
114
114
|
V(void 0);
|
|
115
115
|
};
|
|
@@ -122,13 +122,13 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
|
|
|
122
122
|
name: h,
|
|
123
123
|
getValue: () => o
|
|
124
124
|
});
|
|
125
|
-
const v = r.useRef(null), Re =
|
|
125
|
+
const v = r.useRef(null), Re = qe(_, v, d.inputRef);
|
|
126
126
|
Y(() => {
|
|
127
127
|
v.current && (v.current.indeterminate = I, o && S(!0));
|
|
128
128
|
}, [o, I, S]), nt(o, () => {
|
|
129
129
|
t && !i || (ue(h), S(o), pe(o !== Ce.initialValue), ke() ? d.commit(o) : d.commit(o, !0));
|
|
130
130
|
});
|
|
131
|
-
const Me =
|
|
131
|
+
const Me = Ue(
|
|
132
132
|
{
|
|
133
133
|
checked: o,
|
|
134
134
|
disabled: p,
|
|
@@ -197,7 +197,7 @@ const at = "data-parent", ae = /* @__PURE__ */ r.forwardRef(function(n, k) {
|
|
|
197
197
|
}, L, d.getValidationProps, de, Pe, Ve],
|
|
198
198
|
stateAttributesMapping: Oe
|
|
199
199
|
});
|
|
200
|
-
return /* @__PURE__ */ A(
|
|
200
|
+
return /* @__PURE__ */ A(q.Provider, {
|
|
201
201
|
value: T,
|
|
202
202
|
children: [Be, !o && !t && h && !i && N !== void 0 && /* @__PURE__ */ m("input", {
|
|
203
203
|
type: "hidden",
|
|
@@ -229,7 +229,7 @@ const ie = /* @__PURE__ */ r.forwardRef(function(n, k) {
|
|
|
229
229
|
c || G(!1);
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
|
-
const l = oe(s),
|
|
232
|
+
const l = oe(s), U = r.useMemo(() => ({
|
|
233
233
|
...l,
|
|
234
234
|
...Ke,
|
|
235
235
|
...ne
|
|
@@ -237,13 +237,13 @@ const ie = /* @__PURE__ */ r.forwardRef(function(n, k) {
|
|
|
237
237
|
enabled: f,
|
|
238
238
|
ref: [k, E],
|
|
239
239
|
state: i,
|
|
240
|
-
stateAttributesMapping:
|
|
240
|
+
stateAttributesMapping: U,
|
|
241
241
|
props: B
|
|
242
242
|
});
|
|
243
243
|
return f ? N : null;
|
|
244
244
|
});
|
|
245
245
|
process.env.NODE_ENV !== "production" && (ie.displayName = "CheckboxIndicator");
|
|
246
|
-
const it = "
|
|
246
|
+
const it = "_checkbox__label_1o5lj_3", st = "_checkbox_1o5lj_3", ct = "_checkbox__indicator_1o5lj_31", j = {
|
|
247
247
|
checkbox__label: it,
|
|
248
248
|
checkbox: st,
|
|
249
249
|
checkbox__indicator: ct
|
|
@@ -255,11 +255,11 @@ function yt({ color: e, label: n, ...k }) {
|
|
|
255
255
|
color: e,
|
|
256
256
|
interactive: "fill-outline",
|
|
257
257
|
render: /* @__PURE__ */ m(ae, { "aria-label": n, ...k }),
|
|
258
|
-
className:
|
|
259
|
-
children: /* @__PURE__ */ m(ie, { className:
|
|
258
|
+
className: j.checkbox,
|
|
259
|
+
children: /* @__PURE__ */ m(ie, { className: j.checkbox__indicator, children: /* @__PURE__ */ m(Fe, { name: "check-line", size: "sm" }) })
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
|
-
return n ? /* @__PURE__ */ A("label", { className:
|
|
262
|
+
return n ? /* @__PURE__ */ A("label", { className: j.checkbox__label, children: [
|
|
263
263
|
x,
|
|
264
264
|
/* @__PURE__ */ m(Te, { children: n })
|
|
265
265
|
] }) : x;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as re, jsx as
|
|
1
|
+
import { jsxs as re, jsx as P } from "react/jsx-runtime";
|
|
2
2
|
import { c as J } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useMemo as ie } from "react";
|
|
4
4
|
import { View as se } from "../view/view.js";
|
|
@@ -11,9 +11,9 @@ function le(b) {
|
|
|
11
11
|
var Z = { exports: {} }, Q;
|
|
12
12
|
function oe() {
|
|
13
13
|
return Q || (Q = 1, (function(b) {
|
|
14
|
-
var
|
|
14
|
+
var j = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
15
15
|
var i = (function(g) {
|
|
16
|
-
var f = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, F = 0,
|
|
16
|
+
var f = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, F = 0, w = {}, s = {
|
|
17
17
|
/**
|
|
18
18
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
19
19
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -232,10 +232,10 @@ function oe() {
|
|
|
232
232
|
/**
|
|
233
233
|
* The grammar for plain, unformatted text.
|
|
234
234
|
*/
|
|
235
|
-
plain:
|
|
236
|
-
plaintext:
|
|
237
|
-
text:
|
|
238
|
-
txt:
|
|
235
|
+
plain: w,
|
|
236
|
+
plaintext: w,
|
|
237
|
+
text: w,
|
|
238
|
+
txt: w,
|
|
239
239
|
/**
|
|
240
240
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
241
241
|
*
|
|
@@ -357,8 +357,8 @@ function oe() {
|
|
|
357
357
|
a.hasOwnProperty(o) || (l[o] = r[o]);
|
|
358
358
|
}
|
|
359
359
|
var d = n[t];
|
|
360
|
-
return n[t] = l, s.languages.DFS(s.languages, function(
|
|
361
|
-
_ === d &&
|
|
360
|
+
return n[t] = l, s.languages.DFS(s.languages, function(v, _) {
|
|
361
|
+
_ === d && v != t && (this[v] = l);
|
|
362
362
|
}), l;
|
|
363
363
|
},
|
|
364
364
|
// Traverse a language definition with Depth First Search
|
|
@@ -465,10 +465,10 @@ function oe() {
|
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
467
|
if (e && g.Worker) {
|
|
468
|
-
var
|
|
469
|
-
|
|
468
|
+
var v = new Worker(s.filename);
|
|
469
|
+
v.onmessage = function(_) {
|
|
470
470
|
d(_.data);
|
|
471
|
-
},
|
|
471
|
+
}, v.postMessage(JSON.stringify({
|
|
472
472
|
language: u.language,
|
|
473
473
|
code: u.code,
|
|
474
474
|
immediateClose: !0
|
|
@@ -625,41 +625,41 @@ function oe() {
|
|
|
625
625
|
for (var d = 0; d < u.length; ++d) {
|
|
626
626
|
if (l && l.cause == o + "," + d)
|
|
627
627
|
return;
|
|
628
|
-
var
|
|
629
|
-
if (N && !
|
|
630
|
-
var te =
|
|
631
|
-
|
|
628
|
+
var v = u[d], _ = v.inside, W = !!v.lookbehind, N = !!v.greedy, ee = v.alias;
|
|
629
|
+
if (N && !v.pattern.global) {
|
|
630
|
+
var te = v.pattern.toString().match(/[imsuy]*$/)[0];
|
|
631
|
+
v.pattern = RegExp(v.pattern.source, te + "g");
|
|
632
632
|
}
|
|
633
|
-
for (var X =
|
|
634
|
-
var E =
|
|
633
|
+
for (var X = v.pattern || v, m = n.next, A = r; m !== e.tail && !(l && A >= l.reach); A += m.value.length, m = m.next) {
|
|
634
|
+
var E = m.value;
|
|
635
635
|
if (e.length > t.length)
|
|
636
636
|
return;
|
|
637
637
|
if (!(E instanceof y)) {
|
|
638
638
|
var z = 1, x;
|
|
639
639
|
if (N) {
|
|
640
|
-
if (x = $(X,
|
|
640
|
+
if (x = $(X, A, t, W), !x || x.index >= t.length)
|
|
641
641
|
break;
|
|
642
|
-
var D = x.index, ae = x.index + x[0].length, k =
|
|
643
|
-
for (k +=
|
|
644
|
-
|
|
645
|
-
if (k -=
|
|
642
|
+
var D = x.index, ae = x.index + x[0].length, k = A;
|
|
643
|
+
for (k += m.value.length; D >= k; )
|
|
644
|
+
m = m.next, k += m.value.length;
|
|
645
|
+
if (k -= m.value.length, A = k, m.value instanceof y)
|
|
646
646
|
continue;
|
|
647
|
-
for (var C =
|
|
647
|
+
for (var C = m; C !== e.tail && (k < ae || typeof C.value == "string"); C = C.next)
|
|
648
648
|
z++, k += C.value.length;
|
|
649
|
-
z--, E = t.slice(
|
|
649
|
+
z--, E = t.slice(A, k), x.index -= A;
|
|
650
650
|
} else if (x = $(X, 0, E, W), !x)
|
|
651
651
|
continue;
|
|
652
|
-
var D = x.index, O = x[0], q = E.slice(0, D), Y = E.slice(D + O.length), G =
|
|
652
|
+
var D = x.index, O = x[0], q = E.slice(0, D), Y = E.slice(D + O.length), G = A + E.length;
|
|
653
653
|
l && G > l.reach && (l.reach = G);
|
|
654
|
-
var R =
|
|
655
|
-
q && (R = S(e, R, q),
|
|
654
|
+
var R = m.prev;
|
|
655
|
+
q && (R = S(e, R, q), A += q.length), H(e, R, z);
|
|
656
656
|
var ne = new y(o, _ ? s.tokenize(O, _) : O, ee, O);
|
|
657
|
-
if (
|
|
657
|
+
if (m = S(e, R, ne), Y && S(e, m, Y), z > 1) {
|
|
658
658
|
var U = {
|
|
659
659
|
cause: o + "," + d,
|
|
660
660
|
reach: G
|
|
661
661
|
};
|
|
662
|
-
I(t, e, a,
|
|
662
|
+
I(t, e, a, m.prev, A, U), l && U.reach > l.reach && (l.reach = U.reach);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -699,7 +699,7 @@ function oe() {
|
|
|
699
699
|
h === "loading" || h === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
|
|
700
700
|
}
|
|
701
701
|
return s;
|
|
702
|
-
})(
|
|
702
|
+
})(j);
|
|
703
703
|
b.exports && (b.exports = i), typeof K < "u" && (K.Prism = i), i.languages.markup = {
|
|
704
704
|
comment: {
|
|
705
705
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
@@ -792,16 +792,16 @@ function oe() {
|
|
|
792
792
|
* addInlined('style', 'css');
|
|
793
793
|
*/
|
|
794
794
|
value: function(f, F) {
|
|
795
|
-
var
|
|
796
|
-
|
|
795
|
+
var w = {};
|
|
796
|
+
w["language-" + F] = {
|
|
797
797
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
798
798
|
lookbehind: !0,
|
|
799
799
|
inside: i.languages[F]
|
|
800
|
-
},
|
|
800
|
+
}, w.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
801
801
|
var s = {
|
|
802
802
|
"included-cdata": {
|
|
803
803
|
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
804
|
-
inside:
|
|
804
|
+
inside: w
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
807
|
s["language-" + F] = {
|
|
@@ -1080,7 +1080,7 @@ function oe() {
|
|
|
1080
1080
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1081
1081
|
var g = "Loading…", f = function(p, c) {
|
|
1082
1082
|
return "✖ Error " + p + " while fetching file: " + c;
|
|
1083
|
-
}, F = "✖ Error: File does not exist or is empty",
|
|
1083
|
+
}, F = "✖ Error: File does not exist or is empty", w = {
|
|
1084
1084
|
js: "javascript",
|
|
1085
1085
|
py: "python",
|
|
1086
1086
|
rb: "ruby",
|
|
@@ -1118,7 +1118,7 @@ function oe() {
|
|
|
1118
1118
|
var t = c.getAttribute("data-src"), e = p.language;
|
|
1119
1119
|
if (e === "none") {
|
|
1120
1120
|
var a = (/\.(\w+)$/.exec(t) || [, "none"])[1];
|
|
1121
|
-
e =
|
|
1121
|
+
e = w[a] || a;
|
|
1122
1122
|
}
|
|
1123
1123
|
i.util.setLanguage(h, e), i.util.setLanguage(c, e);
|
|
1124
1124
|
var n = i.plugins.autoloader;
|
|
@@ -1160,38 +1160,38 @@ function oe() {
|
|
|
1160
1160
|
})(Z)), Z.exports;
|
|
1161
1161
|
}
|
|
1162
1162
|
var ge = oe();
|
|
1163
|
-
const B = /* @__PURE__ */ le(ge), ce = "
|
|
1163
|
+
const B = /* @__PURE__ */ le(ge), ce = "_code__root_1w9hs_3", de = "_code_1w9hs_3", fe = "_code_title_1w9hs_14", pe = "_code__value_1w9hs_18", he = "_code__title_1w9hs_23", L = {
|
|
1164
1164
|
code__root: ce,
|
|
1165
1165
|
code: de,
|
|
1166
1166
|
code_title: fe,
|
|
1167
1167
|
code__value: pe,
|
|
1168
1168
|
code__title: he
|
|
1169
1169
|
};
|
|
1170
|
-
function
|
|
1170
|
+
function we({
|
|
1171
1171
|
language: b = "javascript",
|
|
1172
|
-
children:
|
|
1172
|
+
children: j = "",
|
|
1173
1173
|
title: i,
|
|
1174
1174
|
className: g
|
|
1175
1175
|
}) {
|
|
1176
1176
|
const f = ie(
|
|
1177
1177
|
() => B.highlight(
|
|
1178
|
-
|
|
1178
|
+
j,
|
|
1179
1179
|
B.languages[b] ?? B.languages.javascript,
|
|
1180
1180
|
b
|
|
1181
1181
|
),
|
|
1182
|
-
[
|
|
1182
|
+
[j, b]
|
|
1183
1183
|
);
|
|
1184
|
-
return /* @__PURE__ */ re(se, { className: J(
|
|
1185
|
-
i ? /* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1184
|
+
return /* @__PURE__ */ re(se, { className: J(L.code__root, g), children: [
|
|
1185
|
+
i ? /* @__PURE__ */ P(V, { elevated: !0, className: L.code__title, children: /* @__PURE__ */ P(ue, { size: "sm", color: "dimmer", children: i }) }) : null,
|
|
1186
|
+
/* @__PURE__ */ P(
|
|
1187
1187
|
V,
|
|
1188
1188
|
{
|
|
1189
1189
|
elevated: !0,
|
|
1190
|
-
className: J(
|
|
1191
|
-
children: /* @__PURE__ */
|
|
1190
|
+
className: J(L.code, i && L.code_title),
|
|
1191
|
+
children: /* @__PURE__ */ P("pre", { children: /* @__PURE__ */ P(
|
|
1192
1192
|
"code",
|
|
1193
1193
|
{
|
|
1194
|
-
className:
|
|
1194
|
+
className: L.code__value,
|
|
1195
1195
|
dangerouslySetInnerHTML: {
|
|
1196
1196
|
__html: f
|
|
1197
1197
|
}
|
|
@@ -1202,5 +1202,5 @@ function Ae({
|
|
|
1202
1202
|
] });
|
|
1203
1203
|
}
|
|
1204
1204
|
export {
|
|
1205
|
-
|
|
1205
|
+
we as Code
|
|
1206
1206
|
};
|
|
@@ -2,12 +2,12 @@ import { c as p } from "../../clsx-OuTLNxxd.js";
|
|
|
2
2
|
import { useRef as d, useState as i, useLayoutEffect as m } from "react";
|
|
3
3
|
import { u } from "../../useRender-C3vlzS3t.js";
|
|
4
4
|
import { m as _ } from "../../useRenderElement-DngNDu_P.js";
|
|
5
|
-
import '../../collapse.css';const f = "
|
|
5
|
+
import '../../collapse.css';const f = "_collapse_k1eaa_3", h = "_collapse_expand_k1eaa_14", x = "_collapse_hidden_k1eaa_19", o = {
|
|
6
6
|
collapse: f,
|
|
7
7
|
collapse_expand: h,
|
|
8
8
|
collapse_hidden: x
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function R({
|
|
11
11
|
expand: s = !0,
|
|
12
12
|
render: l,
|
|
13
13
|
recalculate: a,
|
|
@@ -31,5 +31,5 @@ function b({
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
R as Collapse
|
|
35
35
|
};
|