@lazar-ui/kit 0.6.0 → 0.6.1

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 (70) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Actions-Cii4AnwJ.mjs +12 -0
  3. package/dist/Actions.css +1 -1
  4. package/dist/Content-1kg0isb_.mjs +12 -0
  5. package/dist/Content.css +1 -1
  6. package/dist/Context-BjkJbHVo.mjs +6 -0
  7. package/dist/Item-CBYGbEHN.mjs +47 -0
  8. package/dist/Item.css +1 -1
  9. package/dist/Panel-B-LZtrGB.mjs +11 -0
  10. package/dist/{Row-C-3TXoDz.mjs → Row-BfI8268z.mjs} +1 -1
  11. package/dist/Separator-FETQ3gHZ.mjs +9 -0
  12. package/dist/Separator.css +1 -0
  13. package/dist/{Tab-CR0KvVaA.mjs → Tab-BfpR10OT.mjs} +10 -11
  14. package/dist/Text-DQPy-DZ5.mjs +46 -0
  15. package/dist/Title-xHMuJWGl.mjs +12 -0
  16. package/dist/accordion.css +1 -1
  17. package/dist/accordion.js +23 -62
  18. package/dist/actions.d.ts +7 -7
  19. package/dist/actions.js +1 -1
  20. package/dist/breadcrumbs.js +1 -1
  21. package/dist/checkbox.css +1 -0
  22. package/dist/checkbox.d.ts +35 -10
  23. package/dist/checkbox.js +40 -2
  24. package/dist/content.d.ts +2 -2
  25. package/dist/content.js +1 -1
  26. package/dist/context.d.ts +7 -34
  27. package/dist/context.js +3 -5
  28. package/dist/dialog.css +1 -1
  29. package/dist/dialog.js +45 -56
  30. package/dist/drawer.js +2 -2
  31. package/dist/empty-state.css +1 -1
  32. package/dist/empty-state.js +48 -29
  33. package/dist/enums-DfSzOa3x.mjs +4 -0
  34. package/dist/enums-OoI2Qgqq.mjs +14 -0
  35. package/dist/{getComponentSlots-DD4iju8N.mjs → getComponentSlots-DwAYUFNk.mjs} +1 -1
  36. package/dist/getDecorationStyle-BCBONKEl.mjs +7 -0
  37. package/dist/isValidReactNode-CmYwTWCE.mjs +18 -0
  38. package/dist/item.d.ts +35 -9
  39. package/dist/item.js +1 -1
  40. package/dist/menu.css +1 -1
  41. package/dist/menu.js +83 -44
  42. package/dist/pagination.js +60 -48
  43. package/dist/panel.js +1 -1
  44. package/dist/radio.css +1 -1
  45. package/dist/radio.js +98 -42
  46. package/dist/row.js +1 -1
  47. package/dist/separator.d.ts +1 -21
  48. package/dist/separator.js +2 -22
  49. package/dist/tab.js +1 -1
  50. package/dist/table.js +2 -2
  51. package/dist/tabs.js +34 -31
  52. package/dist/text.js +1 -1
  53. package/dist/title.js +1 -1
  54. package/dist/typography.js +1 -1
  55. package/dist/utils.d.ts +75 -2
  56. package/dist/utils.js +17 -14
  57. package/package.json +1 -1
  58. package/dist/Actions-CEIXfLKN.mjs +0 -26
  59. package/dist/Checkbox-Chfzm1Z9.mjs +0 -46
  60. package/dist/Checkbox.css +0 -1
  61. package/dist/Content-ru2X8iBx.mjs +0 -13
  62. package/dist/Item-JbyvZy05.mjs +0 -66
  63. package/dist/Panel-Q06TIYep.mjs +0 -12
  64. package/dist/Provider-CBfZpO45.mjs +0 -12
  65. package/dist/Text-DiOqZt8E.mjs +0 -49
  66. package/dist/Title-aOeFD24v.mjs +0 -13
  67. package/dist/enums-CiPhZomh.mjs +0 -6
  68. package/dist/isValidReactNode-D1buElhX.mjs +0 -17
  69. package/dist/separator.css +0 -1
  70. package/dist/useTabsContext-DdF09jQq.mjs +0 -11
@@ -1,12 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { u as a } from "./useTabsContext-DdF09jQq.mjs";
3
- import "react";
4
- import { E as i } from "./enums-CiPhZomh.mjs";
5
- const m = (t) => {
6
- const { panels: e } = t, { activeIndex: o, getPanelId: n } = a(), s = n(o);
7
- return /* @__PURE__ */ r("div", { id: s, children: e[o] });
8
- };
9
- m.displayName = `${i.PANEL}`;
10
- export {
11
- m as P
12
- };
@@ -1,12 +0,0 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { useState as u, useId as b } from "react";
3
- import { C as f } from "./useTabsContext-DdF09jQq.mjs";
4
- const c = (e, n, a) => `${e}-${a}-${n}`, x = (e) => {
5
- const { defaultActiveIndex: n = 0, children: a, onTabChange: r, variant: d } = e, [s, i] = u(n), o = b(), v = (t) => {
6
- t !== s && (i(t), r && r(t));
7
- }, I = (t) => c(o, t, "panel"), l = (t) => c(o, t, "tab");
8
- return /* @__PURE__ */ m(f.Provider, { value: { activeIndex: s, baseId: o, getPanelId: I, getTabId: l, setActiveTab: v, variant: d }, children: a });
9
- };
10
- export {
11
- x as P
12
- };
@@ -1,49 +0,0 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import u from "react";
3
- import j from "clsx";
4
- import { g as r } from "./getVariantClassName-DoCNtwBw.mjs";
5
- import './Text.css';function v(t) {
6
- const o = [];
7
- return t.underline && o.push("underline"), t.underline === "dotted" && o.push("dotted"), t.strikethrough && o.push("line-through"), o.length > 0 ? { textDecoration: o.join(" ") } : void 0;
8
- }
9
- const w = "Text", y = "sm", z = "normal", S = "p", f = "_root_1vl2j_1", T = "_truncate_1vl2j_5", D = "_sizeXs_1vl2j_12", N = "_sizeSm_1vl2j_18", p = "_sizeMd_1vl2j_24", L = "_sizeLg_1vl2j_30", M = "_weightNormal_1vl2j_37", b = "_weightMedium_1vl2j_41", x = "_weightSemibold_1vl2j_45", A = "_weightBold_1vl2j_49", B = "_colorPrimary_1vl2j_54", E = "_colorSecondary_1vl2j_58", P = "_colorTertiary_1vl2j_62", C = "_colorDisabled_1vl2j_66", F = "_colorBrand_1vl2j_70", e = {
10
- root: f,
11
- truncate: T,
12
- sizeXs: D,
13
- sizeSm: N,
14
- sizeMd: p,
15
- sizeLg: L,
16
- weightNormal: M,
17
- weightMedium: b,
18
- weightSemibold: x,
19
- weightBold: A,
20
- colorPrimary: B,
21
- colorSecondary: E,
22
- colorTertiary: P,
23
- colorDisabled: C,
24
- colorBrand: F
25
- }, I = u.forwardRef((t, o) => {
26
- const {
27
- as: s = S,
28
- children: l,
29
- color: i,
30
- size: n = y,
31
- weight: c = z,
32
- truncate: _ = !1,
33
- underline: a,
34
- strikethrough: d
35
- } = t, m = v({ strikethrough: d, underline: a }), h = j(
36
- e.root,
37
- r("size", n, e),
38
- r("weight", c, e),
39
- i && r("color", i, e),
40
- {
41
- [e.truncate]: _
42
- }
43
- );
44
- return /* @__PURE__ */ g(s, { className: h, ref: o, style: m, children: l });
45
- });
46
- I.displayName = w;
47
- export {
48
- I as T
49
- };
@@ -1,13 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import './Title.css';var t = /* @__PURE__ */ ((o) => (o.ACTIONS = "Dialog.Actions", o.CONTENT = "Dialog.Content", o.TITLE = "Dialog.Title", o))(t || {});
3
- const a = "_root_1ae0y_1", i = {
4
- root: a
5
- }, T = (o) => {
6
- const { children: r } = o;
7
- return /* @__PURE__ */ s("div", { className: i.root, children: r });
8
- };
9
- T.displayName = t.TITLE;
10
- export {
11
- t as E,
12
- T
13
- };
@@ -1,6 +0,0 @@
1
- const r = "Tabs";
2
- var t = ((a) => (a.PANEL = `${r}.Panel`, a.TAB = `${r}.Tab`, a))(t || {}), A = /* @__PURE__ */ ((a) => (a.BUTTONS = "buttons", a.DEFAULT = "default", a))(A || {});
3
- export {
4
- t as E,
5
- A as a
6
- };
@@ -1,17 +0,0 @@
1
- import { isValidElement as y } from "react";
2
- const c = (t) => t.type ? typeof t.type == "string" ? t.type : "displayName" in t.type ? t.type.displayName : t.type.name : "", r = (t, i) => t === i, n = (t, i, o = !0) => {
3
- const s = Array.isArray(t);
4
- let a = !1;
5
- if (y(i)) {
6
- const e = c(i);
7
- s ? a = t.some((p) => r(p, e)) : a = r(t, e);
8
- }
9
- if (!a && o) {
10
- let e = t;
11
- s && (e = t.join(", ")), console.warn("Invalid React node. Node should be an instance of %s", e);
12
- }
13
- return a;
14
- };
15
- export {
16
- n as i
17
- };
@@ -1 +0,0 @@
1
- :root{--separator-color: var(--lui-color-border-primary)}._root_kvseh_5{background:var(--separator-color);border:none;height:1px;margin:0;padding-inline:var(--lui-space-4);width:100%}._vertical_kvseh_14{height:100%;padding-block:var(--lui-space-4);padding-inline:0;width:1px}._bleed_kvseh_21{padding:0}
@@ -1,11 +0,0 @@
1
- import { createContext as e, useContext as o } from "react";
2
- const n = e(null), r = () => {
3
- const t = o(n);
4
- if (!t)
5
- throw new Error("useTabsContext should be used inside Tabs component");
6
- return t;
7
- };
8
- export {
9
- n as C,
10
- r as u
11
- };