@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.
Files changed (37) hide show
  1. package/README.md +4 -1
  2. package/dist/collapse.css +1 -1
  3. package/dist/components/alert-dialog/alert-dialog.js +1 -1
  4. package/dist/components/badge/badge.js +1 -1
  5. package/dist/components/collapse/collapse.js +11 -11
  6. package/dist/components/command/command.js +1 -1
  7. package/dist/components/context-menu/context-menu.js +1 -1
  8. package/dist/components/dialog/dialog.js +1 -1
  9. package/dist/components/number-input/number-input.js +1 -1
  10. package/dist/components/popover/popover.js +1 -1
  11. package/dist/components/preview-card/preview-card.js +1 -1
  12. package/dist/components/separator/index.js +1 -1
  13. package/dist/components/separator/separator.js +1 -1
  14. package/dist/components/stacked-avatars/stacked-avatars.js +1 -1
  15. package/dist/components/surface/surface.js +17 -17
  16. package/dist/components/tabs/tabs.js +1 -1
  17. package/dist/components/text/text.js +21 -21
  18. package/dist/components/timestamp/timestamp.js +1 -1
  19. package/dist/components/tooltip/index.js +1 -1
  20. package/dist/components/tooltip/tooltip.js +1 -1
  21. package/dist/components/view/view.js +48 -48
  22. package/dist/dialog.css +1 -1
  23. package/dist/{dialog.module-DsbQRp-d.js → dialog.module-1PAL873u.js} +50 -50
  24. package/dist/index.js +2 -2
  25. package/dist/integrations/react-markdown/index.js +1 -1
  26. package/dist/{separator-fh_wDZNf.js → separator-DgY7BjjO.js} +13 -13
  27. package/dist/separator.css +1 -1
  28. package/dist/styles/core.css +1 -1
  29. package/dist/surface.css +1 -1
  30. package/dist/text.css +1 -1
  31. package/dist/{tooltip-oCp-elli.js → tooltip-BJQPwudf.js} +63 -63
  32. package/dist/tooltip.css +1 -1
  33. package/dist/view.css +1 -1
  34. package/dist/view.module-CjopAf_0.js +6 -0
  35. package/dist/view2.css +1 -1
  36. package/package.json +19 -16
  37. 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 base{._collapse_1x5eo_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_1x5eo_13{opacity:1;height:var(--collapse-height)}._collapse_hidden_1x5eo_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
+ @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-DsbQRp-d.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-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-oCp-elli.js";
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 = "_collapse_1x5eo_2", h = "_collapse_expand_1x5eo_13", x = "_collapse_hidden_1x5eo_18", t = {
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: c,
14
- ...a
13
+ recalculate: a,
14
+ ...c
15
15
  }) {
16
- const o = d(null), [n, r] = i(0);
16
+ const t = d(null), [n, r] = i(0);
17
17
  return m(() => {
18
- if (!o.current)
18
+ if (!t.current)
19
19
  return;
20
- const e = o.current.cloneNode(!0);
21
- e.removeAttribute("style"), e.style.width = `${o.current.offsetWidth}px`, e.className = t.collapse_hidden, document.body.appendChild(e), r(e.offsetHeight), e.remove();
22
- }, [c]), u({
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: o,
26
- props: _(a, {
25
+ ref: t,
26
+ props: _(c, {
27
27
  "aria-hidden": !s,
28
- className: p(t.collapse, s && t.collapse_expand),
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-fh_wDZNf.js";
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-fh_wDZNf.js";
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-DsbQRp-d.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-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-fh_wDZNf.js";
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-oCp-elli.js";
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-oCp-elli.js";
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,5 +1,5 @@
1
1
  "use client";
2
- import { S as a } from "../../separator-fh_wDZNf.js";
2
+ import { S as a } from "../../separator-DgY7BjjO.js";
3
3
  export {
4
4
  a as Separator
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
- import { S as a } from "../../separator-fh_wDZNf.js";
3
+ import { S as a } from "../../separator-DgY7BjjO.js";
4
4
  export {
5
5
  a as Separator
6
6
  };
@@ -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-oCp-elli.js";
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 u } from "../../clsx-OuTLNxxd.js";
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 _ = "_surface_38ylh_2", s = {
5
+ import '../../surface.css';const _ = "_surface_1ju4v_2", u = {
6
6
  surface: _,
7
- "surface--root": "_surface--root_38ylh_6",
8
- "surface--default": "_surface--default_38ylh_14",
9
- "surface--higher": "_surface--higher_38ylh_22",
10
- "surface--highest": "_surface--highest_38ylh_30"
11
- }, c = i(0);
12
- function p({ background: e, elevated: r, className: n, ...f }) {
13
- let t = h(c);
14
- return e ? t = m(e) : r && t++, /* @__PURE__ */ a(c.Provider, { value: t, children: /* @__PURE__ */ a(
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: u(
18
- s.surface,
19
- s[`surface--${g(t)}`],
20
- n
17
+ className: f(
18
+ u.surface,
19
+ u[`surface--${m(t)}`],
20
+ c
21
21
  ),
22
- ...f
22
+ ...n
23
23
  }
24
24
  ) });
25
25
  }
26
26
  const o = ["root", "default", "higher", "highest"];
27
- function m(e = "root") {
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 g(e = 0) {
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-fh_wDZNf.js";
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 l } from "../../clsx-OuTLNxxd.js";
2
- import { s as r } from "../../view.module-Dj7wj0kk.js";
3
- import { u as i } from "../../useRender-C3vlzS3t.js";
4
- import { m as c } from "../../useRenderElement-DngNDu_P.js";
5
- import '../../text.css';const n = "_text_9ru3m_2", u = "_text_color_inherit_9ru3m_26", a = "_text_color_default_9ru3m_30", z = "_text_color_dimmer_9ru3m_34", d = "_text_color_dimmest_9ru3m_38", p = "_text_size_sm_9ru3m_43", f = "_text_size_md_9ru3m_49", g = "_text_size_lg_9ru3m_55", h = "_text_size_xl_9ru3m_61", y = "_text_size_2xl_9ru3m_67", $ = "_text_size_3xl_9ru3m_73", t = {
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-line_9ru3m_9",
8
- "text_clamp-lines": "_text_clamp-lines_9ru3m_16",
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: d,
13
- text_size_sm: p,
14
- text_size_md: f,
15
- text_size_lg: g,
16
- text_size_xl: h,
17
- text_size_2xl: y,
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 P({
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
- ...m
26
+ ...l
27
27
  }) {
28
- return i({
28
+ return m({
29
29
  defaultTagName: "span",
30
30
  render: o,
31
- props: c(m, {
32
- className: l(
33
- r.view,
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
- P as Text
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-oCp-elli.js";
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: {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { T as t } from "../../tooltip-oCp-elli.js";
2
+ import { T as t } from "../../tooltip-BJQPwudf.js";
3
3
  export {
4
4
  t as Tooltip
5
5
  };
@@ -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-oCp-elli.js";
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 n } from "../../view.module-Dj7wj0kk.js";
3
- import { u as v } from "../../useRender-C3vlzS3t.js";
4
- import { m as s } from "../../useRenderElement-DngNDu_P.js";
5
- import '../../view2.css';const y = "_view_colorway_ms6zs_2", g = "_view_colorway_static_ms6zs_20", m = "_view_colorway_outline_ms6zs_28", d = "_view_colorway_fill_ms6zs_98", l = {
6
- view_colorway: y,
7
- view_colorway_static: g,
8
- view_colorway_outline: m,
9
- "view_colorway_outline-static": "_view_colorway_outline-static_ms6zs_60",
10
- "view_colorway_mute-static": "_view_colorway_mute-static_ms6zs_67",
11
- "view_colorway_no-fill": "_view_colorway_no-fill_ms6zs_73",
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-static_ms6zs_123",
14
- "view_colorway_fill-outline": "_view_colorway_fill-outline_ms6zs_129",
15
- "view_colorway_color-primary": "_view_colorway_color-primary_ms6zs_163",
16
- "view_colorway_color-positive": "_view_colorway_color-positive_ms6zs_171",
17
- "view_colorway_color-negative": "_view_colorway_color-negative_ms6zs_179",
18
- "view_colorway_color-warning": "_view_colorway_color-warning_ms6zs_187",
19
- "view_colorway_color-red": "_view_colorway_color-red_ms6zs_195",
20
- "view_colorway_color-orange": "_view_colorway_color-orange_ms6zs_203",
21
- "view_colorway_color-yellow": "_view_colorway_color-yellow_ms6zs_211",
22
- "view_colorway_color-green": "_view_colorway_color-green_ms6zs_219",
23
- "view_colorway_color-teal": "_view_colorway_color-teal_ms6zs_227",
24
- "view_colorway_color-blue": "_view_colorway_color-blue_ms6zs_235",
25
- "view_colorway_color-blurple": "_view_colorway_color-blurple_ms6zs_243",
26
- "view_colorway_color-purple": "_view_colorway_color-purple_ms6zs_251",
27
- "view_colorway_color-magenta": "_view_colorway_color-magenta_ms6zs_259",
28
- "view_colorway_color-pink": "_view_colorway_color-pink_ms6zs_267",
29
- "view_colorway_color-grey": "_view_colorway_color-grey_ms6zs_275"
30
- }, u = "_view_interactive_1dhgl_2", f = "_view_interactive_fill_1dhgl_30", z = "_view_interactive_outline_1dhgl_69", c = {
31
- view_interactive: u,
32
- view_interactive_fill: f,
33
- "view_interactive_no-fill": "_view_interactive_no-fill_1dhgl_50",
34
- view_interactive_outline: z,
35
- "view_interactive_fill-outline": "_view_interactive_fill-outline_1dhgl_89",
36
- "view_interactive_list-item": "_view_interactive_list-item_1dhgl_110"
37
- }, h = "_view_loading_p1qhr_7", p = "_view_loading_foreground_p1qhr_12", b = "_loading_p1qhr_1", k = "_view_loading_background_p1qhr_25", w = {
38
- view_loading: h,
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: r,
48
- ...a
47
+ render: a,
48
+ ...w
49
49
  }) {
50
50
  const _ = $({ interactive: o, loading: i });
51
- return v({
51
+ return n({
52
52
  defaultTagName: "div",
53
- render: r,
54
- props: s(a, {
53
+ render: a,
54
+ props: y(w, {
55
55
  className: t(
56
- n.view,
56
+ v.view,
57
57
  e && l[`view_colorway_color-${e}`],
58
58
  _.interactive && [
59
- c.view_interactive,
60
- c[`view_interactive_${_.interactive}`]
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
- w.view_loading,
69
- w[`view_loading_${_.loading}`]
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 r = null;
79
- return o.loading && (r = typeof o.loading == "boolean" ? "foreground" : o.loading), { interactive: i, colorway: e, loading: r };
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 base{._dialog__backdrop_3490s_2{position:fixed;z-index:50;inset:0;background-color:var(--background-overlay)}@supports (-webkit-touch-callout: none){._dialog__backdrop_3490s_2{position:absolute}}._dialog__popup_3490s_14{display:block;position:fixed;z-index:51;inset:0;isolation:isolate;padding:var(--space-16);height:100%;overflow:auto}._dialog__popup_centered_3490s_25{display:flex;place-items:center}@media screen and (min-width:512px){._dialog__popup_centered_3490s_25{padding:var(--space-32);padding-top:var(--space-64);padding-bottom:var(--space-64)}}._dialog__content_3490s_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_3490s_52{max-width:384px}._dialog__content_width_md_3490s_56{max-width:512px}._dialog__content_width_lg_3490s_60{max-width:872px}._dialog__header_3490s_64{gap:var(--space-4)}._dialog__close_3490s_68{position:absolute;top:var(--space-8);right:var(--space-8)}}
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)}}