@koide-labs/ui 0.1.1 → 0.1.3
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 +4 -1
- package/dist/collapse.css +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/collapse/collapse.js +11 -11
- package/dist/components/command/command.js +1 -1
- package/dist/components/context-menu/context-menu.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/number-input/number-input.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/preview-card/preview-card.js +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/stacked-avatars/stacked-avatars.js +1 -1
- package/dist/components/surface/surface.js +17 -17
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/text/text.js +21 -21
- package/dist/components/timestamp/timestamp.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/view/view.js +48 -48
- package/dist/dialog.css +1 -1
- package/dist/{dialog.module-DsbQRp-d.js → dialog.module-1PAL873u.js} +50 -50
- package/dist/index.js +2 -2
- package/dist/integrations/react-markdown/index.js +1 -1
- package/dist/{separator-fh_wDZNf.js → separator-DgY7BjjO.js} +13 -13
- package/dist/separator.css +1 -1
- package/dist/styles/core.css +1 -1
- package/dist/surface.css +1 -1
- package/dist/text.css +1 -1
- package/dist/{tooltip-oCp-elli.js → tooltip-BJQPwudf.js} +63 -63
- package/dist/tooltip.css +1 -1
- package/dist/view.css +1 -1
- package/dist/view.module-CjopAf_0.js +6 -0
- package/dist/view2.css +1 -1
- package/package.json +19 -16
- package/dist/view.module-Dj7wj0kk.js +0 -6
package/README.md
CHANGED
|
@@ -50,9 +50,12 @@ Then, include the necessary fonts.
|
|
|
50
50
|
I highly recommend using TailwindCSS.
|
|
51
51
|
|
|
52
52
|
```css
|
|
53
|
-
@import "tailwindcss" important;
|
|
54
53
|
@import "@koide-labs/ui/integrations/tailwind.css";
|
|
55
54
|
@import "@koide-labs/ui/styles/core.css";
|
|
55
|
+
|
|
56
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
57
|
+
@import "tailwindcss/preflight.css" layer(base);
|
|
58
|
+
@import "tailwindcss/utilities.css" layer(utilities) important;
|
|
56
59
|
```
|
|
57
60
|
|
|
58
61
|
## Development
|
package/dist/collapse.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer atom{._collapse_m77a0_2{opacity:0;transition:height var(--transition-duration-chill) var(--transition-timing-function-chill),opacity var(--transition-duration-chill) var(--transition-timing-function-chill);height:0;overflow-y:hidden}._collapse_expand_m77a0_13{opacity:1;height:var(--collapse-height)}._collapse_hidden_m77a0_18{position:fixed;top:0;left:0;visibility:hidden;opacity:0;z-index:0;height:-moz-fit-content;height:fit-content;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { t as h } from "../../transitions.module-D9mMAtfI.js";
|
|
4
|
-
import { u as v, D as y, a as I, b as T, c as b, d as O, e as w, s as n, f as N, g as S, h as k, i as A } from "../../dialog.module-
|
|
4
|
+
import { u as v, D as y, a as I, b as T, c as b, d as O, e as w, s as n, f as N, g as S, h as k, i as A } from "../../dialog.module-1PAL873u.js";
|
|
5
5
|
import { Surface as B } from "../surface/surface.js";
|
|
6
6
|
import { View as C } from "../view/view.js";
|
|
7
7
|
import { Text as D } from "../text/text.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-BJQPwudf.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";
|
|
@@ -2,7 +2,7 @@ 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_m77a0_2", h = "_collapse_expand_m77a0_13", x = "_collapse_hidden_m77a0_18", o = {
|
|
6
6
|
collapse: f,
|
|
7
7
|
collapse_expand: h,
|
|
8
8
|
collapse_hidden: x
|
|
@@ -10,22 +10,22 @@ import '../../collapse.css';const f = "_collapse_1x5eo_2", h = "_collapse_expand
|
|
|
10
10
|
function b({
|
|
11
11
|
expand: s = !0,
|
|
12
12
|
render: l,
|
|
13
|
-
recalculate:
|
|
14
|
-
...
|
|
13
|
+
recalculate: a,
|
|
14
|
+
...c
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const t = d(null), [n, r] = i(0);
|
|
17
17
|
return m(() => {
|
|
18
|
-
if (!
|
|
18
|
+
if (!t.current)
|
|
19
19
|
return;
|
|
20
|
-
const e =
|
|
21
|
-
e.removeAttribute("style"), e.style.width = `${
|
|
22
|
-
}, [
|
|
20
|
+
const e = t.current.cloneNode(!0);
|
|
21
|
+
e.removeAttribute("style"), e.style.width = `${t.current.offsetWidth}px`, e.className = o.collapse_hidden, document.body.appendChild(e), r(e.offsetHeight), e.remove();
|
|
22
|
+
}, [a]), u({
|
|
23
23
|
defaultTagName: "div",
|
|
24
24
|
render: l,
|
|
25
|
-
ref:
|
|
26
|
-
props: _(
|
|
25
|
+
ref: t,
|
|
26
|
+
props: _(c, {
|
|
27
27
|
"aria-hidden": !s,
|
|
28
|
-
className: p(
|
|
28
|
+
className: p(o.collapse, s && o.collapse_expand),
|
|
29
29
|
style: { "--collapse-height": `${n}px` }
|
|
30
30
|
})
|
|
31
31
|
});
|
|
@@ -10,7 +10,7 @@ import { Dialog as nn } from "../dialog/dialog.js";
|
|
|
10
10
|
import { View as ye } from "../view/view.js";
|
|
11
11
|
import { Icon as vt } from "../icon/icon.js";
|
|
12
12
|
import { Text as pt } from "../text/text.js";
|
|
13
|
-
import { S as rn } from "../../separator-
|
|
13
|
+
import { S as rn } from "../../separator-DgY7BjjO.js";
|
|
14
14
|
import '../../command.css';var Je = 1, on = 0.9, an = 0.8, cn = 0.17, Ne = 0.1, Oe = 0.999, un = 0.9999, sn = 0.99, ln = /[\\\/_+.#"@\[\(\{&]/, dn = /[\\\/_+.#"@\[\(\{&]/g, fn = /[\s-]/, ht = /[\s-]/g;
|
|
15
15
|
function Be(e, t, n, r, o, i, u) {
|
|
16
16
|
if (i === t.length) return o === e.length ? Je : sn;
|
|
@@ -9,7 +9,7 @@ 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-DgY7BjjO.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";
|
|
@@ -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
3
|
import { t as h } from "../../transitions.module-D9mMAtfI.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-
|
|
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-1PAL873u.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";
|
|
@@ -6,7 +6,7 @@ import { Text as kt } from "../text/text.js";
|
|
|
6
6
|
import { Input as Wt } from "../input/input.js";
|
|
7
7
|
import { View as Ht } from "../view/view.js";
|
|
8
8
|
import { IconButton as tt } from "../icon-button/icon-button.js";
|
|
9
|
-
import { S as Gt } from "../../separator-
|
|
9
|
+
import { S as Gt } from "../../separator-DgY7BjjO.js";
|
|
10
10
|
import { u as Bt } from "../../useControlled-Du4sJyMj.js";
|
|
11
11
|
import { u as de } from "../../useStableCallback-DKZHlUAT.js";
|
|
12
12
|
import { T as $t, u as Ke } from "../../useTimeout-BNni6aw5.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u, jsxs as Y } from "react/jsx-runtime";
|
|
2
2
|
import { c as Re } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { u as be, t as ae, T as Se } from "../../tooltip-
|
|
3
|
+
import { u as be, t as ae, T as Se } from "../../tooltip-BJQPwudf.js";
|
|
4
4
|
import { R as ye, P as Oe, c as x, h as Ie, d as xe, e as de, u as Ne, i as Me, f as Fe, j as ke, k as _e, p as ee, t as we } from "../../transitions.module-D9mMAtfI.js";
|
|
5
5
|
import { View as Ae } from "../view/view.js";
|
|
6
6
|
import { Heading as De } from "../heading/heading.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as P, jsxs as q } from "react/jsx-runtime";
|
|
2
2
|
import { c as pe } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { t as z, T as fe } from "../../tooltip-
|
|
3
|
+
import { t as z, T as fe } from "../../tooltip-BJQPwudf.js";
|
|
4
4
|
import { d as me, e as Pe, f as Ce, p as U, t as ge } from "../../transitions.module-D9mMAtfI.js";
|
|
5
5
|
import { Surface as we } from "../surface/surface.js";
|
|
6
6
|
import * as e from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as v } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { T as x } from "../../tooltip-
|
|
3
|
+
import { T as x } from "../../tooltip-BJQPwudf.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";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as f } 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 _ = "
|
|
5
|
+
import '../../surface.css';const _ = "_surface_1ju4v_2", u = {
|
|
6
6
|
surface: _,
|
|
7
|
-
"surface--root": "_surface--
|
|
8
|
-
"surface--default": "_surface--
|
|
9
|
-
"surface--higher": "_surface--
|
|
10
|
-
"surface--highest": "_surface--
|
|
11
|
-
},
|
|
12
|
-
function p({ background: e, elevated: r, className:
|
|
13
|
-
let t = h(
|
|
14
|
-
return e ? t =
|
|
7
|
+
"surface--root": "_surface--root_1ju4v_6",
|
|
8
|
+
"surface--default": "_surface--default_1ju4v_14",
|
|
9
|
+
"surface--higher": "_surface--higher_1ju4v_22",
|
|
10
|
+
"surface--highest": "_surface--highest_1ju4v_30"
|
|
11
|
+
}, s = i(0);
|
|
12
|
+
function p({ background: e, elevated: r, className: c, ...n }) {
|
|
13
|
+
let t = h(s);
|
|
14
|
+
return e ? t = v(e) : r && t++, /* @__PURE__ */ a(s.Provider, { value: t, children: /* @__PURE__ */ a(
|
|
15
15
|
l,
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
className: f(
|
|
18
|
+
u.surface,
|
|
19
|
+
u[`surface--${m(t)}`],
|
|
20
|
+
c
|
|
21
21
|
),
|
|
22
|
-
...
|
|
22
|
+
...n
|
|
23
23
|
}
|
|
24
24
|
) });
|
|
25
25
|
}
|
|
26
26
|
const o = ["root", "default", "higher", "highest"];
|
|
27
|
-
function
|
|
27
|
+
function v(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 m(e = 0) {
|
|
32
32
|
return o[e] || "root";
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
@@ -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-DgY7BjjO.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";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { s as
|
|
3
|
-
import { u as
|
|
4
|
-
import { m as
|
|
5
|
-
import '../../text.css';const n = "
|
|
1
|
+
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
2
|
+
import { s as c } from "../../view.module-CjopAf_0.js";
|
|
3
|
+
import { u as m } from "../../useRender-C3vlzS3t.js";
|
|
4
|
+
import { m as r } from "../../useRenderElement-DngNDu_P.js";
|
|
5
|
+
import '../../text.css';const n = "_text_b8h0u_2", u = "_text_color_inherit_b8h0u_26", a = "_text_color_default_b8h0u_30", z = "_text_color_dimmer_b8h0u_34", h = "_text_color_dimmest_b8h0u_38", d = "_text_size_sm_b8h0u_43", p = "_text_size_md_b8h0u_49", b = "_text_size_lg_b8h0u_55", f = "_text_size_xl_b8h0u_61", g = "_text_size_2xl_b8h0u_67", y = "_text_size_3xl_b8h0u_73", t = {
|
|
6
6
|
text: n,
|
|
7
|
-
"text_clip-line": "_text_clip-
|
|
8
|
-
"text_clamp-lines": "_text_clamp-
|
|
7
|
+
"text_clip-line": "_text_clip-line_b8h0u_9",
|
|
8
|
+
"text_clamp-lines": "_text_clamp-lines_b8h0u_16",
|
|
9
9
|
text_color_inherit: u,
|
|
10
10
|
text_color_default: a,
|
|
11
11
|
text_color_dimmer: z,
|
|
12
|
-
text_color_dimmest:
|
|
13
|
-
text_size_sm:
|
|
14
|
-
text_size_md:
|
|
15
|
-
text_size_lg:
|
|
16
|
-
text_size_xl:
|
|
17
|
-
text_size_2xl:
|
|
18
|
-
text_size_3xl:
|
|
12
|
+
text_color_dimmest: h,
|
|
13
|
+
text_size_sm: d,
|
|
14
|
+
text_size_md: p,
|
|
15
|
+
text_size_lg: b,
|
|
16
|
+
text_size_xl: f,
|
|
17
|
+
text_size_2xl: g,
|
|
18
|
+
text_size_3xl: y
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function M({
|
|
21
21
|
color: s = "default",
|
|
22
22
|
size: x = "md",
|
|
23
23
|
maxLines: _ = 1,
|
|
24
24
|
multiline: e,
|
|
25
25
|
render: o,
|
|
26
|
-
...
|
|
26
|
+
...l
|
|
27
27
|
}) {
|
|
28
|
-
return
|
|
28
|
+
return m({
|
|
29
29
|
defaultTagName: "span",
|
|
30
30
|
render: o,
|
|
31
|
-
props:
|
|
32
|
-
className:
|
|
33
|
-
|
|
31
|
+
props: r(l, {
|
|
32
|
+
className: i(
|
|
33
|
+
c.view,
|
|
34
34
|
t.text,
|
|
35
35
|
t[`text_color_${s}`],
|
|
36
36
|
t[`text_size_${x}`],
|
|
@@ -44,5 +44,5 @@ function P({
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
M as Text
|
|
48
48
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as B } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { useState as V } from "react";
|
|
4
4
|
import { Text as J } from "../text/text.js";
|
|
5
|
-
import { T as $ } from "../../tooltip-
|
|
5
|
+
import { T as $ } from "../../tooltip-BJQPwudf.js";
|
|
6
6
|
import { View as z } from "../view/view.js";
|
|
7
7
|
import '../../timestamp.css';const U = {
|
|
8
8
|
lessThanXSeconds: {
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import "../../-utils.js";
|
|
4
4
|
import "../../transitions.module-D9mMAtfI.js";
|
|
5
|
-
import { T as a } from "../../tooltip-
|
|
5
|
+
import { T as a } from "../../tooltip-BJQPwudf.js";
|
|
6
6
|
import "../surface/surface.js";
|
|
7
7
|
export {
|
|
8
8
|
a as Tooltip
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
2
|
-
import { s as
|
|
3
|
-
import { u as
|
|
4
|
-
import { m as
|
|
5
|
-
import '../../view2.css';const
|
|
6
|
-
view_colorway:
|
|
7
|
-
view_colorway_static:
|
|
8
|
-
view_colorway_outline:
|
|
9
|
-
"view_colorway_outline-static": "_view_colorway_outline-
|
|
10
|
-
"view_colorway_mute-static": "_view_colorway_mute-
|
|
11
|
-
"view_colorway_no-fill": "_view_colorway_no-
|
|
2
|
+
import { s as v } from "../../view.module-CjopAf_0.js";
|
|
3
|
+
import { u as n } from "../../useRender-C3vlzS3t.js";
|
|
4
|
+
import { m as y } from "../../useRenderElement-DngNDu_P.js";
|
|
5
|
+
import '../../view2.css';const u = "_view_colorway_qhua6_2", s = "_view_colorway_static_qhua6_20", g = "_view_colorway_outline_qhua6_28", d = "_view_colorway_fill_qhua6_98", l = {
|
|
6
|
+
view_colorway: u,
|
|
7
|
+
view_colorway_static: s,
|
|
8
|
+
view_colorway_outline: g,
|
|
9
|
+
"view_colorway_outline-static": "_view_colorway_outline-static_qhua6_60",
|
|
10
|
+
"view_colorway_mute-static": "_view_colorway_mute-static_qhua6_67",
|
|
11
|
+
"view_colorway_no-fill": "_view_colorway_no-fill_qhua6_73",
|
|
12
12
|
view_colorway_fill: d,
|
|
13
|
-
"view_colorway_fill-static": "_view_colorway_fill-
|
|
14
|
-
"view_colorway_fill-outline": "_view_colorway_fill-
|
|
15
|
-
"view_colorway_color-primary": "_view_colorway_color-
|
|
16
|
-
"view_colorway_color-positive": "_view_colorway_color-
|
|
17
|
-
"view_colorway_color-negative": "_view_colorway_color-
|
|
18
|
-
"view_colorway_color-warning": "_view_colorway_color-
|
|
19
|
-
"view_colorway_color-red": "_view_colorway_color-
|
|
20
|
-
"view_colorway_color-orange": "_view_colorway_color-
|
|
21
|
-
"view_colorway_color-yellow": "_view_colorway_color-
|
|
22
|
-
"view_colorway_color-green": "_view_colorway_color-
|
|
23
|
-
"view_colorway_color-teal": "_view_colorway_color-
|
|
24
|
-
"view_colorway_color-blue": "_view_colorway_color-
|
|
25
|
-
"view_colorway_color-blurple": "_view_colorway_color-
|
|
26
|
-
"view_colorway_color-purple": "_view_colorway_color-
|
|
27
|
-
"view_colorway_color-magenta": "_view_colorway_color-
|
|
28
|
-
"view_colorway_color-pink": "_view_colorway_color-
|
|
29
|
-
"view_colorway_color-grey": "_view_colorway_color-
|
|
30
|
-
},
|
|
31
|
-
view_interactive:
|
|
32
|
-
view_interactive_fill:
|
|
33
|
-
"view_interactive_no-fill": "_view_interactive_no-
|
|
34
|
-
view_interactive_outline:
|
|
35
|
-
"view_interactive_fill-outline": "_view_interactive_fill-
|
|
36
|
-
"view_interactive_list-item": "_view_interactive_list-
|
|
37
|
-
},
|
|
38
|
-
view_loading:
|
|
13
|
+
"view_colorway_fill-static": "_view_colorway_fill-static_qhua6_123",
|
|
14
|
+
"view_colorway_fill-outline": "_view_colorway_fill-outline_qhua6_129",
|
|
15
|
+
"view_colorway_color-primary": "_view_colorway_color-primary_qhua6_163",
|
|
16
|
+
"view_colorway_color-positive": "_view_colorway_color-positive_qhua6_171",
|
|
17
|
+
"view_colorway_color-negative": "_view_colorway_color-negative_qhua6_179",
|
|
18
|
+
"view_colorway_color-warning": "_view_colorway_color-warning_qhua6_187",
|
|
19
|
+
"view_colorway_color-red": "_view_colorway_color-red_qhua6_195",
|
|
20
|
+
"view_colorway_color-orange": "_view_colorway_color-orange_qhua6_203",
|
|
21
|
+
"view_colorway_color-yellow": "_view_colorway_color-yellow_qhua6_211",
|
|
22
|
+
"view_colorway_color-green": "_view_colorway_color-green_qhua6_219",
|
|
23
|
+
"view_colorway_color-teal": "_view_colorway_color-teal_qhua6_227",
|
|
24
|
+
"view_colorway_color-blue": "_view_colorway_color-blue_qhua6_235",
|
|
25
|
+
"view_colorway_color-blurple": "_view_colorway_color-blurple_qhua6_243",
|
|
26
|
+
"view_colorway_color-purple": "_view_colorway_color-purple_qhua6_251",
|
|
27
|
+
"view_colorway_color-magenta": "_view_colorway_color-magenta_qhua6_259",
|
|
28
|
+
"view_colorway_color-pink": "_view_colorway_color-pink_qhua6_267",
|
|
29
|
+
"view_colorway_color-grey": "_view_colorway_color-grey_qhua6_275"
|
|
30
|
+
}, f = "_view_interactive_r2alv_2", h = "_view_interactive_fill_r2alv_30", q = "_view_interactive_outline_r2alv_69", r = {
|
|
31
|
+
view_interactive: f,
|
|
32
|
+
view_interactive_fill: h,
|
|
33
|
+
"view_interactive_no-fill": "_view_interactive_no-fill_r2alv_50",
|
|
34
|
+
view_interactive_outline: q,
|
|
35
|
+
"view_interactive_fill-outline": "_view_interactive_fill-outline_r2alv_89",
|
|
36
|
+
"view_interactive_list-item": "_view_interactive_list-item_r2alv_110"
|
|
37
|
+
}, m = "_view_loading_p1qhr_7", p = "_view_loading_foreground_p1qhr_12", b = "_loading_p1qhr_1", k = "_view_loading_background_p1qhr_25", c = {
|
|
38
|
+
view_loading: m,
|
|
39
39
|
view_loading_foreground: p,
|
|
40
40
|
loading: b,
|
|
41
41
|
view_loading_background: k
|
|
@@ -44,20 +44,20 @@ function R({
|
|
|
44
44
|
interactive: o,
|
|
45
45
|
loading: i,
|
|
46
46
|
color: e,
|
|
47
|
-
render:
|
|
48
|
-
...
|
|
47
|
+
render: a,
|
|
48
|
+
...w
|
|
49
49
|
}) {
|
|
50
50
|
const _ = $({ interactive: o, loading: i });
|
|
51
|
-
return
|
|
51
|
+
return n({
|
|
52
52
|
defaultTagName: "div",
|
|
53
|
-
render:
|
|
54
|
-
props:
|
|
53
|
+
render: a,
|
|
54
|
+
props: y(w, {
|
|
55
55
|
className: t(
|
|
56
|
-
|
|
56
|
+
v.view,
|
|
57
57
|
e && l[`view_colorway_color-${e}`],
|
|
58
58
|
_.interactive && [
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
r.view_interactive,
|
|
60
|
+
r[`view_interactive_${_.interactive}`]
|
|
61
61
|
],
|
|
62
62
|
_.colorway && [
|
|
63
63
|
_.colorway[1].endsWith("static") ? l.view_colorway_static : l.view_colorway,
|
|
@@ -65,8 +65,8 @@ function R({
|
|
|
65
65
|
l[`view_colorway_color-${_.colorway[0]}`]
|
|
66
66
|
],
|
|
67
67
|
_.loading && [
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
c.view_loading,
|
|
69
|
+
c[`view_loading_${_.loading}`]
|
|
70
70
|
]
|
|
71
71
|
)
|
|
72
72
|
})
|
|
@@ -75,8 +75,8 @@ function R({
|
|
|
75
75
|
function $(o) {
|
|
76
76
|
let i = null, e = null;
|
|
77
77
|
o.interactive && typeof o.interactive == "boolean" ? i = "fill" : typeof o.interactive == "string" && (typeof o.interactive == "string" && o.interactive.includes("_") ? e = o.interactive.split("_") : i = o.interactive);
|
|
78
|
-
let
|
|
79
|
-
return o.loading && (
|
|
78
|
+
let a = null;
|
|
79
|
+
return o.loading && (a = typeof o.loading == "boolean" ? "foreground" : o.loading), { interactive: i, colorway: e, loading: a };
|
|
80
80
|
}
|
|
81
81
|
export {
|
|
82
82
|
R as View
|
package/dist/dialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer atom{._dialog__backdrop_1wc77_2{position:fixed;z-index:50;inset:0;background-color:var(--background-overlay)}@supports (-webkit-touch-callout: none){._dialog__backdrop_1wc77_2{position:absolute}}._dialog__popup_1wc77_14{display:block;position:fixed;z-index:51;inset:0;isolation:isolate;padding:var(--space-16);height:100%;overflow:auto}._dialog__popup_centered_1wc77_25{display:flex;place-items:center}@media screen and (min-width:512px){._dialog__popup_centered_1wc77_25{padding:var(--space-32);padding-top:var(--space-64);padding-bottom:var(--space-64)}}._dialog__content_1wc77_36{position:relative;flex-grow:1;flex-shrink:1;gap:var(--space-16);margin:0 auto;outline:none;box-shadow:var(--shadow-2);border:1px solid var(--outline-dimmest);border-radius:var(--border-radius-default);padding:var(--space-16);width:100%;height:auto;overflow:hidden}._dialog__content_width_sm_1wc77_52{max-width:384px}._dialog__content_width_md_1wc77_56{max-width:512px}._dialog__content_width_lg_1wc77_60{max-width:872px}._dialog__header_1wc77_64{gap:var(--space-4)}._dialog__close_1wc77_68{position:absolute;top:var(--space-8);right:var(--space-8)}}
|