@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
|
@@ -4,12 +4,12 @@ import * as t from "react";
|
|
|
4
4
|
import { createContext as Wt, useContext as Xt } from "react";
|
|
5
5
|
import { textify as Ce } from "../../-utils.js";
|
|
6
6
|
import { tokens as st } from "../../styles/tokens.js";
|
|
7
|
-
import { p as it, k as jt, R as $t, P as qt, c as U, m as zt, j as Jt, u as Qt, d as Zt, e as at, h as en, f as tn, i as nn, t as ut } from "../../transitions.module-
|
|
7
|
+
import { p as it, k as jt, R as $t, P as qt, c as U, m as zt, j as Jt, u as Qt, d as Zt, e as at, h as en, f as tn, i as nn, t as ut } from "../../transitions.module-SSNmQfsR.js";
|
|
8
8
|
import { Surface as ct } from "../surface/surface.js";
|
|
9
9
|
import { View as Re } from "../view/view.js";
|
|
10
10
|
import { Icon as ce } from "../icon/icon.js";
|
|
11
11
|
import { Text as lt } from "../text/text.js";
|
|
12
|
-
import { S as on, a as rn } from "../../separator-
|
|
12
|
+
import { S as on, a as rn } from "../../separator-Or-BDQYZ.js";
|
|
13
13
|
import { u as dt } from "../../useControlled-Du4sJyMj.js";
|
|
14
14
|
import { u as le } from "../../useStableCallback-DKZHlUAT.js";
|
|
15
15
|
import { f as J } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
@@ -19,24 +19,24 @@ import * as ln from "react-dom";
|
|
|
19
19
|
import { u as Me } from "../../useTimeout-BNni6aw5.js";
|
|
20
20
|
import { u as Te } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
21
21
|
import { u as dn } from "../../useAnimationFrame-DvK1s63A.js";
|
|
22
|
-
import { F as pn, I as fn, u as mn, a as gn, b as hn } from "../../InternalBackdrop-
|
|
22
|
+
import { F as pn, I as fn, u as mn, a as gn, b as hn } from "../../InternalBackdrop-DDLgWc7D.js";
|
|
23
23
|
import { h as xn, m as Mn, P as Cn, T as Rn } from "../../FloatingPortal-BQsQhvIr.js";
|
|
24
24
|
import { u as bn } from "../../DirectionContext-C2o_MF_i.js";
|
|
25
25
|
import { x as be, c as z, o as vn, t as xe, y as ue, b as et, a as ft, f as En, l as In, e as yn, i as Nn, v as Pn } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
|
|
26
|
-
import { p as Sn, c as Tn, u as On, a as kn, b as _n, e as wn } from "../../useSyncedFloatingRootContext-
|
|
27
|
-
import { u as Dn } from "../../useRole-
|
|
28
|
-
import { u as Vn, a as An } from "../../useTypeahead-
|
|
26
|
+
import { p as Sn, c as Tn, u as On, a as kn, b as _n, e as wn } from "../../useSyncedFloatingRootContext-CaohymZI.js";
|
|
27
|
+
import { u as Dn } from "../../useRole-D1k7CnHQ.js";
|
|
28
|
+
import { u as Vn, a as An } from "../../useTypeahead-CSZtonjF.js";
|
|
29
29
|
import { o as tt } from "../../owner-rKN292Q9.js";
|
|
30
30
|
import { i as Un, o as Ln, n as Fn } from "../../floating-ui.utils.dom-cbi420Pg.js";
|
|
31
31
|
import { h as nt, f as he } from "../../element-u5WgOZX1.js";
|
|
32
32
|
import { s as Gn } from "../../event-B89-Ng5h.js";
|
|
33
33
|
import { i as Bn } from "../../inertValue-BTpPjX30.js";
|
|
34
|
-
import { g as Hn, a as Yn } from "../../getDisabledMountTransitionStyles-
|
|
34
|
+
import { g as Hn, a as Yn } from "../../getDisabledMountTransitionStyles-CyEI2117.js";
|
|
35
35
|
import { u as ve, C as Kn } from "../../useCompositeListItem-CZp9WTnF.js";
|
|
36
36
|
import { t as mt, u as Oe } from "../../useOpenChangeComplete-BHd-N7Ig.js";
|
|
37
37
|
import { u as Wn } from "../../ToolbarRootContext-CvvL0Tk1.js";
|
|
38
38
|
import { C as Xn } from "../../composite-BwEK5cWH.js";
|
|
39
|
-
import { b as jn, a as $n, s as qn } from "../../safePolygon-
|
|
39
|
+
import { b as jn, a as $n, s as qn } from "../../safePolygon-lAEp2rci.js";
|
|
40
40
|
import { u as pe } from "../../useBaseUiId-B7WyxtIE.js";
|
|
41
41
|
import { u as zn } from "../../useButton-d3_JgBNr.js";
|
|
42
42
|
import { u as gt } from "../../useTransitionStatus-CmMyUh74.js";
|
|
@@ -1257,11 +1257,11 @@ const rt = 500, Tt = /* @__PURE__ */ t.forwardRef(function(o, i) {
|
|
|
1257
1257
|
});
|
|
1258
1258
|
process.env.NODE_ENV !== "production" && (Tt.displayName = "ContextMenuTrigger");
|
|
1259
1259
|
const H = {
|
|
1260
|
-
"context-menu": "_context-
|
|
1261
|
-
"context-menu__item": "_context-
|
|
1262
|
-
"context-menu__item-icon": "_context-menu__item-
|
|
1263
|
-
"context-menu__item-shortcut": "_context-menu__item-
|
|
1264
|
-
"context-menu__label": "_context-
|
|
1260
|
+
"context-menu": "_context-menu_1x98f_3",
|
|
1261
|
+
"context-menu__item": "_context-menu__item_1x98f_12",
|
|
1262
|
+
"context-menu__item-icon": "_context-menu__item-icon_1x98f_24",
|
|
1263
|
+
"context-menu__item-shortcut": "_context-menu__item-shortcut_1x98f_31",
|
|
1264
|
+
"context-menu__label": "_context-menu__label_1x98f_36"
|
|
1265
1265
|
}, Ot = Wt("root");
|
|
1266
1266
|
function uo({
|
|
1267
1267
|
trigger: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { t as h } from "../../transitions.module-
|
|
4
|
-
import { u as y, D as T, a as b, b as O, c as k, d as v, e as N, s as n, f as S, g as w, h as B, i as P } from "../../dialog.module-
|
|
3
|
+
import { t as h } from "../../transitions.module-SSNmQfsR.js";
|
|
4
|
+
import { u as y, D as T, a as b, b as O, c as k, d as v, e as N, s as n, f as S, g as w, h as B, i as P } from "../../dialog.module-CRiRBcbM.js";
|
|
5
5
|
import { Surface as j } from "../surface/surface.js";
|
|
6
6
|
import { View as V } from "../view/view.js";
|
|
7
7
|
import { Text as x } from "../text/text.js";
|
|
@@ -3,9 +3,9 @@ import { createContext as i, useContext as x } from "react";
|
|
|
3
3
|
import { Text as c } from "../text/text.js";
|
|
4
4
|
import { u as d } from "../../useRender-C3vlzS3t.js";
|
|
5
5
|
import { m as p } from "../../useRenderElement-DngNDu_P.js";
|
|
6
|
-
import '../../heading.css';const
|
|
7
|
-
heading:
|
|
8
|
-
},
|
|
6
|
+
import '../../heading.css';const u = "_heading_u1xze_3", f = {
|
|
7
|
+
heading: u
|
|
8
|
+
}, g = i(0), h = {
|
|
9
9
|
1: "3xl",
|
|
10
10
|
2: "2xl",
|
|
11
11
|
3: "xl",
|
|
@@ -17,10 +17,10 @@ function v(e = 1) {
|
|
|
17
17
|
return Math.max(Math.min(e, 6), 1);
|
|
18
18
|
}
|
|
19
19
|
function _({ level: e, size: o, color: n, render: r, ...m }) {
|
|
20
|
-
const s = x(
|
|
20
|
+
const s = x(g), t = v(e || s), a = d({
|
|
21
21
|
defaultTagName: `h${t}`,
|
|
22
22
|
render: r,
|
|
23
|
-
props: p(m, { className:
|
|
23
|
+
props: p(m, { className: f.heading })
|
|
24
24
|
});
|
|
25
25
|
return /* @__PURE__ */ l(
|
|
26
26
|
c,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
1
|
+
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { c as z } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import x from "remixicon/fonts/remixicon.symbol.svg";
|
|
5
|
-
import '../../icon.css';const
|
|
6
|
-
icon:
|
|
7
|
-
icon_size_sm:
|
|
8
|
-
icon_size_md:
|
|
5
|
+
import '../../icon.css';const f = "_icon_15q8f_3", m = "_icon_size_sm_15q8f_15", d = "_icon_size_md_15q8f_20", p = "_icon_size_lg_15q8f_24", g = "_icon_size_xl_15q8f_28", q = "_icon_size_2xl_15q8f_32", a = "_icon_size_3xl_15q8f_36", o = {
|
|
6
|
+
icon: f,
|
|
7
|
+
icon_size_sm: m,
|
|
8
|
+
icon_size_md: d,
|
|
9
9
|
icon_size_lg: p,
|
|
10
|
-
icon_size_xl:
|
|
11
|
-
icon_size_2xl:
|
|
10
|
+
icon_size_xl: g,
|
|
11
|
+
icon_size_2xl: q,
|
|
12
12
|
icon_size_3xl: a
|
|
13
13
|
};
|
|
14
14
|
function $({
|
|
@@ -29,11 +29,11 @@ function $({
|
|
|
29
29
|
focusable: !1,
|
|
30
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
31
|
fill: e || "currentColor",
|
|
32
|
-
className: z(
|
|
32
|
+
className: z(o.icon, o[`icon_size_${n}`], l),
|
|
33
33
|
...r,
|
|
34
34
|
children: [
|
|
35
|
-
i ? /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
i ? /* @__PURE__ */ s("title", { children: i }) : null,
|
|
36
|
+
/* @__PURE__ */ s("use", { xlinkHref: _, href: _ })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
39
|
);
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as u } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { View as b } from "../view/view.js";
|
|
4
4
|
import { Icon as m } from "../icon/icon.js";
|
|
5
5
|
import { B as r } from "../../Button-BmcVHRRW.js";
|
|
6
6
|
import '../../icon-button.css';const n = {
|
|
7
|
-
"icon-button": "_icon-
|
|
8
|
-
"icon-button_size_sm": "_icon-
|
|
9
|
-
"icon-button_size_md": "_icon-
|
|
10
|
-
"icon-button_size_lg": "_icon-
|
|
11
|
-
"icon-button_size_xl": "_icon-
|
|
12
|
-
"icon-button_size_2xl": "_icon-
|
|
13
|
-
"icon-button_size_3xl": "_icon-
|
|
7
|
+
"icon-button": "_icon-button_qkt95_3",
|
|
8
|
+
"icon-button_size_sm": "_icon-button_size_sm_qkt95_13",
|
|
9
|
+
"icon-button_size_md": "_icon-button_size_md_qkt95_17",
|
|
10
|
+
"icon-button_size_lg": "_icon-button_size_lg_qkt95_21",
|
|
11
|
+
"icon-button_size_xl": "_icon-button_size_xl_qkt95_25",
|
|
12
|
+
"icon-button_size_2xl": "_icon-button_size_2xl_qkt95_29",
|
|
13
|
+
"icon-button_size_3xl": "_icon-button_size_3xl_qkt95_33"
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function f({
|
|
16
16
|
icon: i,
|
|
17
17
|
alt: e,
|
|
18
|
-
size:
|
|
18
|
+
size: o = "md",
|
|
19
19
|
render: c,
|
|
20
20
|
className: s,
|
|
21
21
|
..._
|
|
22
22
|
}) {
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ t(
|
|
24
24
|
b,
|
|
25
25
|
{
|
|
26
26
|
interactive: !0,
|
|
27
|
-
render: /* @__PURE__ */
|
|
27
|
+
render: /* @__PURE__ */ t(
|
|
28
28
|
r,
|
|
29
29
|
{
|
|
30
30
|
className: u(
|
|
31
31
|
n["icon-button"],
|
|
32
|
-
n[`icon-button_size_${
|
|
32
|
+
n[`icon-button_size_${o}`],
|
|
33
33
|
s
|
|
34
34
|
),
|
|
35
35
|
focusableWhenDisabled: !!_.loading,
|
|
@@ -37,10 +37,10 @@ function d({
|
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
39
|
..._,
|
|
40
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ t(m, { name: i, size: o, alt: e })
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
f as IconButton
|
|
46
46
|
};
|
|
@@ -2,20 +2,20 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as r } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { Surface as c } from "../surface/surface.js";
|
|
4
4
|
import { Text as l } from "../text/text.js";
|
|
5
|
-
import '../../inline-code.css';const
|
|
6
|
-
"inline-code": "_inline-
|
|
7
|
-
"inline-code_colorway": "_inline-
|
|
5
|
+
import '../../inline-code.css';const o = {
|
|
6
|
+
"inline-code": "_inline-code_1595i_3",
|
|
7
|
+
"inline-code_colorway": "_inline-code_colorway_1595i_13"
|
|
8
8
|
};
|
|
9
|
-
function _({ color:
|
|
9
|
+
function _({ color: i, ...n }) {
|
|
10
10
|
return /* @__PURE__ */ e(
|
|
11
11
|
c,
|
|
12
12
|
{
|
|
13
13
|
elevated: !0,
|
|
14
14
|
className: r(
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
o["inline-code"],
|
|
16
|
+
i && o["inline-code_colorway"]
|
|
17
17
|
),
|
|
18
|
-
color:
|
|
18
|
+
color: i,
|
|
19
19
|
children: /* @__PURE__ */ e(l, { size: "sm", color: "inherit", children: /* @__PURE__ */ e("code", { ...n }) })
|
|
20
20
|
}
|
|
21
21
|
);
|
|
@@ -2,7 +2,7 @@ import { jsx as u, jsxs as S } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as U } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { useId as A } from "react";
|
|
5
|
-
import { s as I } from "../../input.module-
|
|
5
|
+
import { s as I } from "../../input.module-CYcyDtrO.js";
|
|
6
6
|
import { View as K } from "../view/view.js";
|
|
7
7
|
import { u as $ } from "../../useStableCallback-DKZHlUAT.js";
|
|
8
8
|
import { u as q } from "../../useControlled-Du4sJyMj.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l, jsxs as M, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { c as C } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { View as L } from "../view/view.js";
|
|
4
|
-
import { Text as
|
|
4
|
+
import { Text as x } from "../text/text.js";
|
|
5
5
|
import * as i from "react";
|
|
6
6
|
import { f as T } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
7
|
-
import { f as
|
|
7
|
+
import { f as E } from "../../formatNumber-1UNwjeqf.js";
|
|
8
8
|
import { u } from "../../useRenderElement-DngNDu_P.js";
|
|
9
9
|
import { u as P } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
10
10
|
import { u as j } from "../../useBaseUiId-B7WyxtIE.js";
|
|
@@ -18,14 +18,14 @@ function N() {
|
|
|
18
18
|
return t;
|
|
19
19
|
}
|
|
20
20
|
function S(t, e, r) {
|
|
21
|
-
return r ?
|
|
21
|
+
return r ? E(t, e, r) : E(t / 100, e, {
|
|
22
22
|
style: "percent"
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const V = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
26
26
|
const {
|
|
27
27
|
format: c,
|
|
28
|
-
getAriaValueText:
|
|
28
|
+
getAriaValueText: m,
|
|
29
29
|
locale: s,
|
|
30
30
|
max: n = 100,
|
|
31
31
|
min: a = 0,
|
|
@@ -35,7 +35,7 @@ const E = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
35
35
|
...I
|
|
36
36
|
} = e, [b, v] = i.useState(), d = S(o, s, c);
|
|
37
37
|
let p = `${o}%`;
|
|
38
|
-
|
|
38
|
+
m ? p = m(d, o) : c && (p = d);
|
|
39
39
|
const k = {
|
|
40
40
|
"aria-labelledby": b,
|
|
41
41
|
"aria-valuemax": n,
|
|
@@ -53,16 +53,16 @@ const E = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
53
53
|
ref: r,
|
|
54
54
|
props: [k, I]
|
|
55
55
|
});
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ l(_.Provider, {
|
|
57
57
|
value: D,
|
|
58
58
|
children: O
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
process.env.NODE_ENV !== "production" && (
|
|
62
|
-
const
|
|
61
|
+
process.env.NODE_ENV !== "production" && (V.displayName = "MeterRoot");
|
|
62
|
+
const h = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
63
63
|
const {
|
|
64
64
|
render: c,
|
|
65
|
-
className:
|
|
65
|
+
className: m,
|
|
66
66
|
...s
|
|
67
67
|
} = e;
|
|
68
68
|
return u("div", e, {
|
|
@@ -70,11 +70,11 @@ const V = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
70
70
|
props: s
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
process.env.NODE_ENV !== "production" && (
|
|
74
|
-
const
|
|
73
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "MeterTrack");
|
|
74
|
+
const w = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
75
75
|
const {
|
|
76
76
|
render: c,
|
|
77
|
-
className:
|
|
77
|
+
className: m,
|
|
78
78
|
...s
|
|
79
79
|
} = e, n = N(), a = B(n.value, n.min, n.max);
|
|
80
80
|
return u("div", e, {
|
|
@@ -88,11 +88,11 @@ const R = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
88
88
|
}, s]
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
|
-
process.env.NODE_ENV !== "production" && (
|
|
92
|
-
const
|
|
91
|
+
process.env.NODE_ENV !== "production" && (w.displayName = "MeterIndicator");
|
|
92
|
+
const R = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
93
93
|
const {
|
|
94
94
|
className: c,
|
|
95
|
-
render:
|
|
95
|
+
render: m,
|
|
96
96
|
children: s,
|
|
97
97
|
...n
|
|
98
98
|
} = e, {
|
|
@@ -107,11 +107,11 @@ const y = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
107
107
|
}, n]
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
process.env.NODE_ENV !== "production" && (
|
|
111
|
-
const
|
|
110
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "MeterValue");
|
|
111
|
+
const y = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
112
112
|
const {
|
|
113
113
|
render: c,
|
|
114
|
-
className:
|
|
114
|
+
className: m,
|
|
115
115
|
id: s,
|
|
116
116
|
...n
|
|
117
117
|
} = e, a = j(s), {
|
|
@@ -124,8 +124,8 @@ const w = /* @__PURE__ */ i.forwardRef(function(e, r) {
|
|
|
124
124
|
}, n]
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
|
-
process.env.NODE_ENV !== "production" && (
|
|
128
|
-
const U = "
|
|
127
|
+
process.env.NODE_ENV !== "production" && (y.displayName = "MeterLabel");
|
|
128
|
+
const U = "_meter_scpmw_3", $ = "_meter__value_scpmw_9", A = "_meter__track_scpmw_15", F = "_meter__indicator_scpmw_22", f = {
|
|
129
129
|
meter: U,
|
|
130
130
|
meter__value: $,
|
|
131
131
|
meter__track: A,
|
|
@@ -136,26 +136,26 @@ function re({
|
|
|
136
136
|
color: e = "primary",
|
|
137
137
|
className: r,
|
|
138
138
|
children: c,
|
|
139
|
-
...
|
|
139
|
+
...m
|
|
140
140
|
}) {
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
|
|
141
|
+
return /* @__PURE__ */ l(L, { color: e, children: /* @__PURE__ */ M(
|
|
142
|
+
V,
|
|
143
143
|
{
|
|
144
144
|
className: C(f.meter, r),
|
|
145
|
-
...
|
|
145
|
+
...m,
|
|
146
146
|
children: [
|
|
147
|
-
t ? /* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
|
|
147
|
+
t ? /* @__PURE__ */ M(g, { children: [
|
|
148
|
+
/* @__PURE__ */ l(x, { render: /* @__PURE__ */ l(y, {}), children: t }),
|
|
149
|
+
/* @__PURE__ */ l(
|
|
150
|
+
x,
|
|
151
151
|
{
|
|
152
152
|
className: f.meter__value,
|
|
153
|
-
render: /* @__PURE__ */
|
|
153
|
+
render: /* @__PURE__ */ l(R, {})
|
|
154
154
|
}
|
|
155
155
|
)
|
|
156
156
|
] }) : null,
|
|
157
157
|
c,
|
|
158
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ l(h, { className: f.meter__track, children: /* @__PURE__ */ l(w, { className: f.meter__indicator }) })
|
|
159
159
|
]
|
|
160
160
|
}
|
|
161
161
|
) });
|
|
@@ -2,7 +2,7 @@ import { jsx as T } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as R } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useRef as W, useEffect as Y } from "react";
|
|
4
4
|
import { mergeRefs as B } from "../../-utils.js";
|
|
5
|
-
import { s as b } from "../../input.module-
|
|
5
|
+
import { s as b } from "../../input.module-CYcyDtrO.js";
|
|
6
6
|
import { View as X } from "../view/view.js";
|
|
7
7
|
var c = /* @__PURE__ */ new Map();
|
|
8
8
|
function j(t) {
|