@koide-labs/ui 0.0.3 → 0.0.5

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 (55) hide show
  1. package/README.md +12 -12
  2. package/dist/components/accordion/index.js +1 -0
  3. package/dist/components/alert-dialog/index.js +2 -1
  4. package/dist/components/anchor/index.d.ts +1 -1
  5. package/dist/components/anchor/index.js +14 -27
  6. package/dist/components/avatar/index.js +1 -0
  7. package/dist/components/badge/index.js +14 -13
  8. package/dist/components/button/index.js +1 -0
  9. package/dist/components/checkbox/index.js +1 -0
  10. package/dist/components/code/index.js +3 -2
  11. package/dist/components/collapse/index.js +6 -5
  12. package/dist/components/command/index.js +1 -0
  13. package/dist/components/context-menu/index.js +1 -0
  14. package/dist/components/dialog/index.js +1 -0
  15. package/dist/components/heading/index.js +11 -10
  16. package/dist/components/icon/index.js +27 -26
  17. package/dist/components/icon-button/index.js +9 -9
  18. package/dist/components/inline-code/index.js +10 -9
  19. package/dist/components/input/index.js +7 -6
  20. package/dist/components/meter/index.js +1 -0
  21. package/dist/components/multiline-input/index.js +1 -0
  22. package/dist/components/number-input/index.js +1 -0
  23. package/dist/components/password-input/index.js +4 -3
  24. package/dist/components/pill/index.js +11 -10
  25. package/dist/components/popover/index.js +1 -0
  26. package/dist/components/preview-card/index.js +70 -69
  27. package/dist/components/radio/index.js +39 -38
  28. package/dist/components/search-bar/index.js +1 -0
  29. package/dist/components/select/index.js +1 -0
  30. package/dist/components/separator/index.js +3 -2
  31. package/dist/components/slider/index.js +1 -0
  32. package/dist/components/spinner/index.js +5 -4
  33. package/dist/components/stacked-avatars/index.js +1 -0
  34. package/dist/components/status-banner/index.js +1 -0
  35. package/dist/components/surface/index.js +14 -13
  36. package/dist/components/switch/index.js +1 -0
  37. package/dist/components/tabs/index.js +1 -0
  38. package/dist/components/text/index.js +2 -1
  39. package/dist/components/theme-provider/index.js +3 -2
  40. package/dist/components/timestamp/index.js +1 -0
  41. package/dist/components/toast/index.js +4 -3
  42. package/dist/components/tooltip/index.js +1 -0
  43. package/dist/components/view/index.js +1 -0
  44. package/dist/components/visually-hidden/index.js +3 -2
  45. package/dist/index.js +16 -16
  46. package/dist/index11.css +1 -1
  47. package/dist/index12.css +1 -1
  48. package/dist/index13.css +1 -1
  49. package/dist/index14.css +1 -1
  50. package/dist/index15.css +1 -1
  51. package/dist/index16.css +1 -1
  52. package/dist/index17.css +1 -1
  53. package/dist/index18.css +1 -1
  54. package/dist/index6.css +1 -1
  55. package/package.json +8 -4
@@ -1,11 +1,12 @@
1
- import { jsxs as re, jsx as p } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsxs as ne, jsx as p } from "react/jsx-runtime";
2
3
  import { c as ue } from "../../clsx-OuTLNxxd.js";
3
4
  import * as o from "react";
4
5
  import { createContext as Ee, useContext as Ne } from "react";
5
6
  import { Text as Ve } from "../text/index.js";
6
7
  import { View as Pe } from "../view/index.js";
7
8
  import { u as Ie } from "../../useControlled-Du4sJyMj.js";
8
- import { E as ce, b as de, u as ne, N as F, c as fe, m as ke } from "../../useRenderElement-DwToLA61.js";
9
+ import { E as ce, b as de, u as re, N as F, c as fe, m as ke } from "../../useRenderElement-DwToLA61.js";
9
10
  import { u as G } from "../../useStableCallback-CkTrVkNX.js";
10
11
  import { v as pe } from "../../visuallyHidden-CpJ-mhai.js";
11
12
  import { u as me } from "../../useBaseUiId-B7WyxtIE.js";
@@ -24,12 +25,12 @@ import { u as Ye } from "../../useLabelableId-Ci_jDvmv.js";
24
25
  import { u as He } from "../../useButton-DfIwsdb8.js";
25
26
  import '../../index27.css';function Je(e) {
26
27
  const {
27
- render: r,
28
+ render: n,
28
29
  className: u,
29
30
  state: h = ce,
30
31
  props: R = de,
31
32
  refs: m = de,
32
- metadata: n,
33
+ metadata: r,
33
34
  stateAttributesMapping: a,
34
35
  tag: s = "div",
35
36
  ...g
@@ -37,9 +38,9 @@ import '../../index27.css';function Je(e) {
37
38
  compositeProps: b,
38
39
  compositeRef: _
39
40
  } = Me({
40
- metadata: n
41
+ metadata: r
41
42
  });
42
- return ne(s, e, {
43
+ return re(s, e, {
43
44
  state: h,
44
45
  ref: [...m, _],
45
46
  props: [b, ...R, g],
@@ -54,10 +55,10 @@ const ye = /* @__PURE__ */ o.createContext({
54
55
  });
55
56
  process.env.NODE_ENV !== "production" && (ye.displayName = "FieldsetRootContext");
56
57
  function We(e = !1) {
57
- const r = o.useContext(ye);
58
- if (!r && !e)
58
+ const n = o.useContext(ye);
59
+ if (!n && !e)
59
60
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : ge(86));
60
- return r;
61
+ return n;
61
62
  }
62
63
  let le = /* @__PURE__ */ (function(e) {
63
64
  return e.checked = "data-checked", e.unchecked = "data-unchecked", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
@@ -96,19 +97,19 @@ function Ae() {
96
97
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : ge(52));
97
98
  return e;
98
99
  }
99
- const be = /* @__PURE__ */ o.forwardRef(function(r, u) {
100
+ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
100
101
  const {
101
102
  render: h,
102
103
  className: R,
103
104
  disabled: m = !1,
104
- readOnly: n = !1,
105
+ readOnly: r = !1,
105
106
  required: a = !1,
106
107
  value: s,
107
108
  inputRef: g,
108
109
  nativeButton: b = !1,
109
110
  id: _,
110
111
  ...E
111
- } = r, {
112
+ } = n, {
112
113
  disabled: N,
113
114
  readOnly: V,
114
115
  required: q,
@@ -128,7 +129,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(r, u) {
128
129
  } = he(), A = Ue(), {
129
130
  labelId: y,
130
131
  getDescriptionProps: v
131
- } = Re(), i = $ || A.disabled || N || m, t = V || n, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(g, C);
132
+ } = Re(), i = $ || A.disabled || N || m, t = V || r, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(g, C);
132
133
  ze(() => {
133
134
  C.current?.checked && I(!0);
134
135
  }, [I]);
@@ -187,14 +188,14 @@ const be = /* @__PURE__ */ o.forwardRef(function(r, u) {
187
188
  disabled: i,
188
189
  readOnly: t,
189
190
  checked: c
190
- }), [j, i, t, c, x]), ee = o.useMemo(() => M, [M]), L = w !== F, U = [u, P, k, K], d = [Q, v, W?.getValidationProps ?? ce, E, X], Y = ne("span", r, {
191
+ }), [j, i, t, c, x]), ee = o.useMemo(() => M, [M]), L = w !== F, U = [u, P, k, K], d = [Q, v, W?.getValidationProps ?? ce, E, X], Y = re("span", n, {
191
192
  enabled: !L,
192
193
  state: M,
193
194
  ref: U,
194
195
  props: d,
195
196
  stateAttributesMapping: oe
196
197
  });
197
- return /* @__PURE__ */ re(se.Provider, {
198
+ return /* @__PURE__ */ ne(se.Provider, {
198
199
  value: ee,
199
200
  children: [L ? /* @__PURE__ */ p(Je, {
200
201
  tag: "span",
@@ -210,23 +211,23 @@ const be = /* @__PURE__ */ o.forwardRef(function(r, u) {
210
211
  });
211
212
  });
212
213
  process.env.NODE_ENV !== "production" && (be.displayName = "RadioRoot");
213
- const _e = /* @__PURE__ */ o.forwardRef(function(r, u) {
214
+ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
214
215
  const {
215
216
  render: h,
216
217
  className: R,
217
218
  keepMounted: m = !1,
218
- ...n
219
- } = r, a = Ae(), s = a.checked, {
219
+ ...r
220
+ } = n, a = Ae(), s = a.checked, {
220
221
  transitionStatus: g,
221
222
  setMounted: b
222
223
  } = je(s), _ = o.useMemo(() => ({
223
224
  ...a,
224
225
  transitionStatus: g
225
- }), [a, g]), E = o.useRef(null), N = m || s, V = ne("span", r, {
226
+ }), [a, g]), E = o.useRef(null), N = m || s, V = re("span", n, {
226
227
  enabled: N,
227
228
  ref: [u, E],
228
229
  state: _,
229
- props: n,
230
+ props: r,
230
231
  stateAttributesMapping: oe
231
232
  });
232
233
  return Be({
@@ -238,12 +239,12 @@ const _e = /* @__PURE__ */ o.forwardRef(function(r, u) {
238
239
  }), N ? V : null;
239
240
  });
240
241
  process.env.NODE_ENV !== "production" && (_e.displayName = "RadioIndicator");
241
- const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(r, u) {
242
+ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
242
243
  const {
243
244
  render: h,
244
245
  className: R,
245
246
  disabled: m,
246
- readOnly: n,
247
+ readOnly: r,
247
248
  required: a,
248
249
  onValueChange: s,
249
250
  value: g,
@@ -252,7 +253,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(r, u) {
252
253
  inputRef: E,
253
254
  id: N,
254
255
  ...V
255
- } = r, {
256
+ } = n, {
256
257
  setTouched: q,
257
258
  setFocused: T,
258
259
  shouldValidateOnChange: w,
@@ -298,7 +299,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(r, u) {
298
299
  id: i,
299
300
  name: K ? v : void 0,
300
301
  disabled: y,
301
- readOnly: n,
302
+ readOnly: r,
302
303
  required: a,
303
304
  "aria-labelledby": V["aria-labelledby"] ?? A?.legendId,
304
305
  "aria-hidden": !0,
@@ -313,25 +314,25 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(r, u) {
313
314
  ...P,
314
315
  disabled: y ?? !1,
315
316
  required: a ?? !1,
316
- readOnly: n ?? !1
317
- }), [P, y, n, a]), L = o.useMemo(() => ({
317
+ readOnly: r ?? !1
318
+ }), [P, y, r, a]), L = o.useMemo(() => ({
318
319
  ...P,
319
320
  checkedValue: t,
320
321
  disabled: y,
321
322
  validation: l,
322
323
  name: v,
323
324
  onValueChange: c,
324
- readOnly: n,
325
+ readOnly: r,
325
326
  registerControlRef: S,
326
327
  required: a,
327
328
  setCheckedValue: k,
328
329
  setTouched: O,
329
330
  touched: z
330
- }), [t, y, l, P, v, c, n, S, a, k, O, z]), U = {
331
+ }), [t, y, l, P, v, c, r, S, a, k, O, z]), U = {
331
332
  role: "radiogroup",
332
333
  "aria-required": a || void 0,
333
334
  "aria-disabled": y || void 0,
334
- "aria-readonly": n || void 0,
335
+ "aria-readonly": r || void 0,
335
336
  "aria-labelledby": j,
336
337
  onFocus() {
337
338
  T(!0);
@@ -339,7 +340,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(r, u) {
339
340
  onBlur: Q,
340
341
  onKeyDownCapture: X
341
342
  };
342
- return /* @__PURE__ */ re(ae.Provider, {
343
+ return /* @__PURE__ */ ne(ae.Provider, {
343
344
  value: L,
344
345
  children: [/* @__PURE__ */ p(Te, {
345
346
  render: h,
@@ -365,24 +366,24 @@ const Xe = {
365
366
  }, xe = Ee("primary");
366
367
  function Nt({
367
368
  color: e = "primary",
368
- className: r,
369
+ className: n,
369
370
  ...u
370
371
  }) {
371
372
  return /* @__PURE__ */ p(xe.Provider, { value: e, children: /* @__PURE__ */ p(
372
373
  ve,
373
374
  {
374
- className: ue(Xe["radio-group"], r),
375
+ className: ue(Xe["radio-group"], n),
375
376
  ...u
376
377
  }
377
378
  ) });
378
379
  }
379
380
  function Vt({
380
381
  color: e,
381
- label: r,
382
+ label: n,
382
383
  className: u,
383
384
  ...h
384
385
  }) {
385
- const R = Ne(xe), m = e || R || "primary", n = /* @__PURE__ */ p(
386
+ const R = Ne(xe), m = e || R || "primary", r = /* @__PURE__ */ p(
386
387
  Pe,
387
388
  {
388
389
  render: /* @__PURE__ */ p(be, { ...h }),
@@ -392,11 +393,11 @@ function Vt({
392
393
  children: /* @__PURE__ */ p(_e, { className: te.radio__indicator })
393
394
  }
394
395
  );
395
- return r ? /* @__PURE__ */ re("label", { className: te.radio__label, children: [
396
- n,
396
+ return n ? /* @__PURE__ */ ne("label", { className: te.radio__label, children: [
397
+ r,
397
398
  " ",
398
- /* @__PURE__ */ p(Ve, { children: r })
399
- ] }) : n;
399
+ /* @__PURE__ */ p(Ve, { children: n })
400
+ ] }) : r;
400
401
  }
401
402
  export {
402
403
  Vt as Radio,
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
3
  import { c as _ } from "../../clsx-OuTLNxxd.js";
3
4
  import "react";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as C, jsxs as Ae } from "react/jsx-runtime";
2
3
  import { c as jt } from "../../clsx-OuTLNxxd.js";
3
4
  import * as n from "react";
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import "react/jsx-runtime";
2
3
  import "../../clsx-OuTLNxxd.js";
3
- import { S as a } from "../../index-FMoPxlJ2.js";
4
+ import { S as p } from "../../index-FMoPxlJ2.js";
4
5
  export {
5
- a as Separator
6
+ p as Separator
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as be, jsxs as Je } from "react/jsx-runtime";
2
3
  import { c as Ct } from "../../clsx-OuTLNxxd.js";
3
4
  import { View as Pt } from "../view/index.js";
@@ -1,12 +1,13 @@
1
+ "use client";
1
2
  import { jsx as n } from "react/jsx-runtime";
2
- import { c as o } from "../../clsx-OuTLNxxd.js";
3
- import { Icon as i } from "../icon/index.js";
3
+ import { c as i } from "../../clsx-OuTLNxxd.js";
4
+ import { Icon as o } from "../icon/index.js";
4
5
  import { View as s } from "../view/index.js";
5
- import '../../index5.css';const p = "_spinner_98pyn_1", m = {
6
+ import '../../index5.css';const p = "_spinner_98pyn_1", t = {
6
7
  spinner: p
7
8
  };
8
9
  function f({ className: r, ...e }) {
9
- return /* @__PURE__ */ n(s, { className: o(m.spinner, r), ...e, children: /* @__PURE__ */ n(i, { name: "loader-2-line" }) });
10
+ return /* @__PURE__ */ n(s, { className: i(t.spinner, r), ...e, children: /* @__PURE__ */ n(o, { name: "loader-2-line" }) });
10
11
  }
11
12
  export {
12
13
  f as Spinner
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
3
  import { c as v } from "../../clsx-OuTLNxxd.js";
3
4
  import { Avatar as o } from "../avatar/index.js";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as _, jsx as s } from "react/jsx-runtime";
2
3
  import { c as m } from "../../clsx-OuTLNxxd.js";
3
4
  import { Heading as b } from "../heading/index.js";
@@ -1,8 +1,9 @@
1
+ "use client";
1
2
  import { jsx as s } from "react/jsx-runtime";
2
- import { c as u } from "../../clsx-OuTLNxxd.js";
3
+ import { c as f } from "../../clsx-OuTLNxxd.js";
3
4
  import { createContext as i, useContext as l } from "react";
4
5
  import { View as h } from "../view/index.js";
5
- import '../../index15.css';const _ = "_surface_65s6k_1", a = {
6
+ import '../../index16.css';const _ = "_surface_65s6k_1", a = {
6
7
  surface: _,
7
8
  "surface--root": "_surface--root_65s6k_5",
8
9
  "surface--default": "_surface--default_65s6k_13",
@@ -10,28 +11,28 @@ import '../../index15.css';const _ = "_surface_65s6k_1", a = {
10
11
  "surface--highest": "_surface--highest_65s6k_29"
11
12
  }, c = i(0), m = ({
12
13
  background: e,
13
- elevated: t,
14
- className: f,
15
- ...n
14
+ elevated: r,
15
+ className: n,
16
+ ...u
16
17
  }) => {
17
- let r = l(c);
18
- return e ? r = d(e) : t && r++, /* @__PURE__ */ s(c.Provider, { value: r, children: /* @__PURE__ */ s(
18
+ let t = l(c);
19
+ return e ? t = d(e) : r && t++, /* @__PURE__ */ s(c.Provider, { value: t, children: /* @__PURE__ */ s(
19
20
  h,
20
21
  {
21
- className: u(
22
+ className: f(
22
23
  a.surface,
23
- a[`surface--${g(r)}`],
24
- f
24
+ a[`surface--${g(t)}`],
25
+ n
25
26
  ),
26
- ...n
27
+ ...u
27
28
  }
28
29
  ) });
29
30
  };
30
31
  m.displayName = "Surface";
31
32
  const o = ["root", "default", "higher", "highest"];
32
33
  function d(e = "root") {
33
- const t = o.indexOf(e);
34
- return Math.min(Math.max(t, 0), o.length - 1);
34
+ const r = o.indexOf(e);
35
+ return Math.min(Math.max(r, 0), o.length - 1);
35
36
  }
36
37
  function g(e = 0) {
37
38
  return o[e] || "root";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as ae, jsx as d } from "react/jsx-runtime";
2
3
  import { View as se } from "../view/index.js";
3
4
  import * as s from "react";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as g, jsxs as U } from "react/jsx-runtime";
2
3
  import { c as z } from "../../clsx-OuTLNxxd.js";
3
4
  import * as n from "react";
@@ -1,8 +1,9 @@
1
+ "use client";
1
2
  import { c as i } from "../../clsx-OuTLNxxd.js";
2
3
  import { s as c } from "../../view.module-DfDLgJE0.js";
3
4
  import { u as m } from "../../useRender-CLx7dR_1.js";
4
5
  import { m as r } from "../../useRenderElement-DwToLA61.js";
5
- import '../../index16.css';const n = "_text_ghwl6_1", a = "_text_color_inherit_ghwl6_25", z = "_text_color_default_ghwl6_29", g = "_text_color_dimmer_ghwl6_33", h = "_text_color_dimmest_ghwl6_37", d = "_text_size_sm_ghwl6_42", p = "_text_size_md_ghwl6_48", w = "_text_size_lg_ghwl6_54", f = "_text_size_xl_ghwl6_60", u = "_text_size_2xl_ghwl6_66", y = "_text_size_3xl_ghwl6_72", t = {
6
+ import '../../index17.css';const n = "_text_ghwl6_1", a = "_text_color_inherit_ghwl6_25", z = "_text_color_default_ghwl6_29", g = "_text_color_dimmer_ghwl6_33", h = "_text_color_dimmest_ghwl6_37", d = "_text_size_sm_ghwl6_42", p = "_text_size_md_ghwl6_48", w = "_text_size_lg_ghwl6_54", f = "_text_size_xl_ghwl6_60", u = "_text_size_2xl_ghwl6_66", y = "_text_size_3xl_ghwl6_72", t = {
6
7
  text: n,
7
8
  "text_clip-line": "_text_clip-line_ghwl6_8",
8
9
  "text_clamp-lines": "_text_clamp-lines_ghwl6_15",
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { ThemeProvider as r } from "./theme-provider.js";
2
- import { useThemeContext as t } from "./theme-context.js";
3
+ import { useThemeContext as m } from "./theme-context.js";
3
4
  export {
4
5
  r as ThemeProvider,
5
- t as useThemeContext
6
+ m as useThemeContext
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as p } from "react/jsx-runtime";
2
3
  import { c as B } from "../../clsx-OuTLNxxd.js";
3
4
  import { useState as V } from "react";
@@ -1,7 +1,8 @@
1
- import { ToastProvider as a, ToastViewport as e } from "./toast.js";
1
+ "use client";
2
+ import { ToastProvider as r, ToastViewport as t } from "./toast.js";
2
3
  import { u as s } from "../../use-toast-manager-Dq-44AuW.js";
3
4
  export {
4
- a as ToastProvider,
5
- e as ToastViewport,
5
+ r as ToastProvider,
6
+ t as ToastViewport,
6
7
  s as useToastManager
7
8
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as O, jsxs as ne } from "react/jsx-runtime";
2
3
  import { c as Ee } from "../../clsx-OuTLNxxd.js";
3
4
  import { textify as Se } from "../../-utils.js";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { c as t } from "../../clsx-OuTLNxxd.js";
2
3
  import { s as n } from "../../view.module-DfDLgJE0.js";
3
4
  import { u as v } from "../../useRender-CLx7dR_1.js";
@@ -1,4 +1,5 @@
1
- import { V as e } from "../../index-DN9Bn1qm.js";
1
+ "use client";
2
+ import { V as l } from "../../index-DN9Bn1qm.js";
2
3
  export {
3
- e as VisuallyHidden
4
+ l as VisuallyHidden
4
5
  };
package/dist/index.js CHANGED
@@ -34,13 +34,13 @@ import { Surface as Bo } from "./components/surface/index.js";
34
34
  import { Switch as Go } from "./components/switch/index.js";
35
35
  import { Tabs as Vo, TabsPanel as ko } from "./components/tabs/index.js";
36
36
  import { Text as yo } from "./components/text/index.js";
37
- import { ThemeProvider as jo } from "./components/theme-provider/theme-provider.js";
38
- import { useThemeContext as zo } from "./components/theme-provider/theme-context.js";
39
- import { Timestamp as Fo } from "./components/timestamp/index.js";
40
- import { ToastProvider as Ko, ToastViewport as Lo } from "./components/toast/toast.js";
41
- import { u as Qo } from "./use-toast-manager-Dq-44AuW.js";
42
- import { Tooltip as Wo, TooltipProvider as Xo } from "./components/tooltip/index.js";
43
- import { View as Zo } from "./components/view/index.js";
37
+ import { Timestamp as jo } from "./components/timestamp/index.js";
38
+ import { Tooltip as zo, TooltipProvider as Eo } from "./components/tooltip/index.js";
39
+ import { View as Jo } from "./components/view/index.js";
40
+ import { ThemeProvider as Lo } from "./components/theme-provider/theme-provider.js";
41
+ import { useThemeContext as Qo } from "./components/theme-provider/theme-context.js";
42
+ import { ToastProvider as Wo, ToastViewport as Xo } from "./components/toast/toast.js";
43
+ import { u as Zo } from "./use-toast-manager-Dq-44AuW.js";
44
44
  import { V as $o } from "./index-DN9Bn1qm.js";
45
45
  export {
46
46
  e as Accordion,
@@ -95,14 +95,14 @@ export {
95
95
  Vo as Tabs,
96
96
  ko as TabsPanel,
97
97
  yo as Text,
98
- jo as ThemeProvider,
99
- Fo as Timestamp,
100
- Ko as ToastProvider,
101
- Lo as ToastViewport,
102
- Wo as Tooltip,
103
- Xo as TooltipProvider,
104
- Zo as View,
98
+ Lo as ThemeProvider,
99
+ jo as Timestamp,
100
+ Wo as ToastProvider,
101
+ Xo as ToastViewport,
102
+ zo as Tooltip,
103
+ Eo as TooltipProvider,
104
+ Jo as View,
105
105
  $o as VisuallyHidden,
106
- zo as useThemeContext,
107
- Qo as useToastManager
106
+ Qo as useThemeContext,
107
+ Zo as useToastManager
108
108
  };
package/dist/index11.css CHANGED
@@ -1 +1 @@
1
- ._icon-button_1xtat_1{display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-default);aspect-ratio:1 / 1;width:var(--icon-button-size);height:var(--icon-button-size)}._icon-button_size_sm_1xtat_11{--icon-button-size: var(--space-24)}._icon-button_size_md_1xtat_15{--icon-button-size: var(--space-32)}._icon-button_size_lg_1xtat_19{--icon-button-size: var(--space-40)}._icon-button_size_xl_1xtat_23{--icon-button-size: var(--space-48)}._icon-button_size_2xl_1xtat_27{--icon-button-size: var(--space-56)}._icon-button_size_3xl_1xtat_31{--icon-button-size: var(--space-64)}
1
+ ._icon_9rs9y_1{--icon-size: var(--space-16);vertical-align:middle;width:var(--icon-size);min-width:var(--icon-size);height:var(--icon-size);min-height:var(--icon-size);font-size:var(--icon-size)}._icon_size_sm_9rs9y_13,._icon_size_md_9rs9y_18{--icon-size: var(--space-16)}._icon_size_lg_9rs9y_22{--icon-size: var(--space-20)}._icon_size_xl_9rs9y_26{--icon-size: var(--space-24)}._icon_size_2xl_9rs9y_30{--icon-size: var(--space-32)}._icon_size_3xl_9rs9y_34{--icon-size: var(--space-48)}
package/dist/index12.css CHANGED
@@ -1 +1 @@
1
- ._inline-code_ai49m_1{display:inline;border:1px solid var(--surface-interactive-border);border-radius:var(--border-radius-6);padding:0 var(--space-4);line-height:var(--line-height-default);font-family:var(--font-family-code);overflow-wrap:anywhere}._inline-code_colorway_ai49m_11{color:var(--view-colorway-default)}
1
+ ._icon-button_1xtat_1{display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-default);aspect-ratio:1 / 1;width:var(--icon-button-size);height:var(--icon-button-size)}._icon-button_size_sm_1xtat_11{--icon-button-size: var(--space-24)}._icon-button_size_md_1xtat_15{--icon-button-size: var(--space-32)}._icon-button_size_lg_1xtat_19{--icon-button-size: var(--space-40)}._icon-button_size_xl_1xtat_23{--icon-button-size: var(--space-48)}._icon-button_size_2xl_1xtat_27{--icon-button-size: var(--space-56)}._icon-button_size_3xl_1xtat_31{--icon-button-size: var(--space-64)}
package/dist/index13.css CHANGED
@@ -1 +1 @@
1
- ._password-input__root_g27z2_1{position:relative}._password-input__eye_g27z2_5{position:absolute;top:50%;right:var(--space-2);transform:translateY(-50%)}
1
+ ._inline-code_ai49m_1{display:inline;border:1px solid var(--surface-interactive-border);border-radius:var(--border-radius-6);padding:0 var(--space-4);line-height:var(--line-height-default);font-family:var(--font-family-code);overflow-wrap:anywhere}._inline-code_colorway_ai49m_11{color:var(--view-colorway-default)}
package/dist/index14.css CHANGED
@@ -1 +1 @@
1
- ._pill_wezrb_1{flex-shrink:1;flex-direction:row;justify-content:center;align-items:center;gap:var(--space-4);border-radius:var(--border-radius-round)!important;padding-right:var(--space-8);padding-left:var(--space-8);height:var(--space-24);font-size:var(--font-size-small);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}._pill_icon_left_wezrb_16{padding-left:var(--space-4)}._pill_icon_right_wezrb_20{padding-right:var(--space-4)}
1
+ ._password-input__root_g27z2_1{position:relative}._password-input__eye_g27z2_5{position:absolute;top:50%;right:var(--space-2);transform:translateY(-50%)}
package/dist/index15.css CHANGED
@@ -1 +1 @@
1
- ._surface_65s6k_1{background-color:var(--surface-background)}._surface--root_65s6k_5{--surface-background: var(--background-root);--surface-interactive-background: var(--background-default);--surface-interactive-background-active: var(--background-higher);--surface-interactive-border: var(--outline-dimmest);--surface-interactive-border-hover: var(--outline-default)}._surface--default_65s6k_13{--surface-background: var(--background-default);--surface-interactive-background: var(--background-higher);--surface-interactive-background-active: var(--background-highest);--surface-interactive-border: var(--outline-dimmer);--surface-interactive-border-hover: var(--outline-stronger)}._surface--higher_65s6k_21{--surface-background: var(--background-higher);--surface-interactive-background: var(--background-highest);--surface-interactive-background-active: var(--background-default);--surface-interactive-border: var(--outline-default);--surface-interactive-border-hover: var(--outline-strongest)}._surface--highest_65s6k_29{--surface-background: var(--background-highest);--surface-interactive-background: var(--background-higher);--surface-interactive-background-active: var(--background-default);--surface-interactive-border: var(--outline-stronger);--surface-interactive-border-hover: var(--outline-strongest)}
1
+ ._pill_wezrb_1{flex-shrink:1;flex-direction:row;justify-content:center;align-items:center;gap:var(--space-4);border-radius:var(--border-radius-round)!important;padding-right:var(--space-8);padding-left:var(--space-8);height:var(--space-24);font-size:var(--font-size-small);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}._pill_icon_left_wezrb_16{padding-left:var(--space-4)}._pill_icon_right_wezrb_20{padding-right:var(--space-4)}
package/dist/index16.css CHANGED
@@ -1 +1 @@
1
- ._text_ghwl6_1{display:inline;vertical-align:middle;overflow:hidden;overflow-wrap:break-word}._text_clip-line_ghwl6_8{display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap}._text_clamp-lines_ghwl6_15{display:-webkit-box;line-clamp:var(--ui-text-max-lines);-webkit-line-clamp:var(--ui-text-max-lines);-webkit-box-orient:vertical;visibility:visible;white-space:break-spaces}._text_color_inherit_ghwl6_25{color:inherit}._text_color_default_ghwl6_29{color:var(--foreground-default)}._text_color_dimmer_ghwl6_33{color:var(--foreground-dimmer)}._text_color_dimmest_ghwl6_37{color:var(--foreground-dimmest)}._text_size_sm_ghwl6_42{font-weight:var(--font-weight-regular);font-size:var(--font-size-small);line-height:var(--line-height-small)}._text_size_md_ghwl6_48{font-weight:var(--font-weight-regular);font-size:var(--font-size-default);line-height:var(--line-height-default)}._text_size_lg_ghwl6_54{font-weight:var(--font-weight-medium);font-size:var(--font-size-subhead-default);line-height:var(--line-height-subhead-default)}._text_size_xl_ghwl6_60{font-weight:var(--font-weight-medium);font-size:var(--font-size-subhead-big);line-height:var(--line-height-subhead-big)}._text_size_2xl_ghwl6_66{font-weight:var(--font-weight-medium);font-size:var(--font-size-header-default);line-height:var(--line-height-header-default)}._text_size_3xl_ghwl6_72{font-weight:var(--font-weight-medium);font-size:var(--font-size-header-big);line-height:var(--line-height-header-big)}
1
+ ._surface_65s6k_1{background-color:var(--surface-background)}._surface--root_65s6k_5{--surface-background: var(--background-root);--surface-interactive-background: var(--background-default);--surface-interactive-background-active: var(--background-higher);--surface-interactive-border: var(--outline-dimmest);--surface-interactive-border-hover: var(--outline-default)}._surface--default_65s6k_13{--surface-background: var(--background-default);--surface-interactive-background: var(--background-higher);--surface-interactive-background-active: var(--background-highest);--surface-interactive-border: var(--outline-dimmer);--surface-interactive-border-hover: var(--outline-stronger)}._surface--higher_65s6k_21{--surface-background: var(--background-higher);--surface-interactive-background: var(--background-highest);--surface-interactive-background-active: var(--background-default);--surface-interactive-border: var(--outline-default);--surface-interactive-border-hover: var(--outline-strongest)}._surface--highest_65s6k_29{--surface-background: var(--background-highest);--surface-interactive-background: var(--background-higher);--surface-interactive-background-active: var(--background-default);--surface-interactive-border: var(--outline-stronger);--surface-interactive-border-hover: var(--outline-strongest)}
package/dist/index17.css CHANGED
@@ -1 +1 @@
1
- ._alert-dialog__actions_f5jwc_1{flex-direction:row;justify-content:end;gap:var(--space-8)}
1
+ ._text_ghwl6_1{display:inline;vertical-align:middle;overflow:hidden;overflow-wrap:break-word}._text_clip-line_ghwl6_8{display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap}._text_clamp-lines_ghwl6_15{display:-webkit-box;line-clamp:var(--ui-text-max-lines);-webkit-line-clamp:var(--ui-text-max-lines);-webkit-box-orient:vertical;visibility:visible;white-space:break-spaces}._text_color_inherit_ghwl6_25{color:inherit}._text_color_default_ghwl6_29{color:var(--foreground-default)}._text_color_dimmer_ghwl6_33{color:var(--foreground-dimmer)}._text_color_dimmest_ghwl6_37{color:var(--foreground-dimmest)}._text_size_sm_ghwl6_42{font-weight:var(--font-weight-regular);font-size:var(--font-size-small);line-height:var(--line-height-small)}._text_size_md_ghwl6_48{font-weight:var(--font-weight-regular);font-size:var(--font-size-default);line-height:var(--line-height-default)}._text_size_lg_ghwl6_54{font-weight:var(--font-weight-medium);font-size:var(--font-size-subhead-default);line-height:var(--line-height-subhead-default)}._text_size_xl_ghwl6_60{font-weight:var(--font-weight-medium);font-size:var(--font-size-subhead-big);line-height:var(--line-height-subhead-big)}._text_size_2xl_ghwl6_66{font-weight:var(--font-weight-medium);font-size:var(--font-size-header-default);line-height:var(--line-height-header-default)}._text_size_3xl_ghwl6_72{font-weight:var(--font-weight-medium);font-size:var(--font-size-header-big);line-height:var(--line-height-header-big)}
package/dist/index18.css CHANGED
@@ -1 +1 @@
1
- ._icon_9rs9y_1{--icon-size: var(--space-16);vertical-align:middle;width:var(--icon-size);min-width:var(--icon-size);height:var(--icon-size);min-height:var(--icon-size);font-size:var(--icon-size)}._icon_size_sm_9rs9y_13,._icon_size_md_9rs9y_18{--icon-size: var(--space-16)}._icon_size_lg_9rs9y_22{--icon-size: var(--space-20)}._icon_size_xl_9rs9y_26{--icon-size: var(--space-24)}._icon_size_2xl_9rs9y_30{--icon-size: var(--space-32)}._icon_size_3xl_9rs9y_34{--icon-size: var(--space-48)}
1
+ ._alert-dialog__actions_f5jwc_1{flex-direction:row;justify-content:end;gap:var(--space-8)}
package/dist/index6.css CHANGED
@@ -1 +1 @@
1
- ._anchor_71aa4_1{cursor:pointer;color:var(--primary-stronger);font-weight:var(--font-weight-regular);font-size:var(--font-size-default);line-height:var(--line-height-default);text-decoration:underline}._anchor_71aa4_1:visited{color:var(--blurple-stronger)}._anchor__icon_71aa4_14{vertical-align:-5%;margin-left:var(--space-2)}
1
+ ._anchor_zl00p_1{cursor:pointer;color:var(--primary-stronger);font-weight:var(--font-weight-regular);font-size:var(--font-size-default);line-height:var(--line-height-default);text-decoration:underline}._anchor_zl00p_1:visited{color:var(--blurple-stronger)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koide-labs/ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -26,6 +26,9 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
+ "sideEffects": [
30
+ "**/*.css"
31
+ ],
29
32
  "packageManager": "pnpm@10.19.0",
30
33
  "scripts": {
31
34
  "dev": "vite",
@@ -54,11 +57,13 @@
54
57
  "prismjs": "^1.30.0",
55
58
  "react": "^19.2.0",
56
59
  "react-dom": "^19.2.0",
57
- "react-markdown": "^10.1.0"
60
+ "react-markdown": "^10.1.0",
61
+ "remixicon": "^4.8.0"
58
62
  },
59
63
  "peerDependencies": {
60
64
  "react": "^19.2.0",
61
- "react-dom": "^19.2.0"
65
+ "react-dom": "^19.2.0",
66
+ "remixicon": "^4.8.0"
62
67
  },
63
68
  "devDependencies": {
64
69
  "@chromatic-com/storybook": "^4.1.3",
@@ -93,7 +98,6 @@
93
98
  "postcss-nesting": "^13.0.2",
94
99
  "prettier": "^3.7.4",
95
100
  "prettier-plugin-css-order": "^2.1.2",
96
- "remixicon": "^4.8.0",
97
101
  "storybook": "^10.1.11",
98
102
  "stylelint": "^16.26.1",
99
103
  "stylelint-config-standard": "^39.0.1",