@devalok/shilp-sutra 0.12.0 → 0.14.0

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 (45) hide show
  1. package/dist/_chunks/button.js +5 -5
  2. package/dist/_chunks/card.js +5 -5
  3. package/dist/_chunks/checkbox.js +3 -3
  4. package/dist/composed/empty-state.d.ts +3 -1
  5. package/dist/composed/empty-state.d.ts.map +1 -1
  6. package/dist/composed/empty-state.js +38 -39
  7. package/dist/shell/bottom-navbar.js +22 -22
  8. package/dist/shell/notification-center.d.ts +10 -0
  9. package/dist/shell/notification-center.d.ts.map +1 -1
  10. package/dist/shell/notification-center.js +107 -92
  11. package/dist/shell/sidebar.d.ts +21 -2
  12. package/dist/shell/sidebar.d.ts.map +1 -1
  13. package/dist/shell/sidebar.js +200 -141
  14. package/dist/tailwind/index.cjs +128 -1
  15. package/dist/tailwind/preset.d.ts.map +1 -1
  16. package/dist/tailwind/preset.js +128 -1
  17. package/dist/ui/alert.d.ts.map +1 -1
  18. package/dist/ui/alert.js +28 -26
  19. package/dist/ui/autocomplete.js +15 -15
  20. package/dist/ui/badge.js +2 -2
  21. package/dist/ui/banner.d.ts.map +1 -1
  22. package/dist/ui/banner.js +23 -21
  23. package/dist/ui/button.js +9 -9
  24. package/dist/ui/card.js +4 -4
  25. package/dist/ui/checkbox.js +4 -4
  26. package/dist/ui/chip.js +2 -2
  27. package/dist/ui/collapsible.js +12 -12
  28. package/dist/ui/combobox.js +20 -20
  29. package/dist/ui/context-menu.js +5 -5
  30. package/dist/ui/dropdown-menu.js +4 -4
  31. package/dist/ui/hover-card.js +9 -9
  32. package/dist/ui/index.js +352 -350
  33. package/dist/ui/menubar.js +26 -26
  34. package/dist/ui/progress.js +22 -22
  35. package/dist/ui/select.js +1 -1
  36. package/dist/ui/slider.js +8 -8
  37. package/dist/ui/stat-card.d.ts.map +1 -1
  38. package/dist/ui/stat-card.js +14 -14
  39. package/dist/ui/stepper.js +2 -2
  40. package/dist/ui/switch.js +1 -1
  41. package/dist/ui/tabs.js +15 -15
  42. package/dist/ui/toggle.js +1 -1
  43. package/llms-full.txt +15 -5
  44. package/llms.txt +17 -3
  45. package/package.json +1 -1
@@ -326,6 +326,110 @@ const a = {
326
326
  lift: {
327
327
  "0%": { transform: "scale(1) translateY(0)" },
328
328
  "100%": { transform: "scale(1.03) translateY(-2px)" }
329
+ },
330
+ "slide-down": {
331
+ "0%": { opacity: "0", transform: "translateY(-8px)" },
332
+ "100%": { opacity: "1", transform: "translateY(0)" }
333
+ },
334
+ "slide-left": {
335
+ "0%": { opacity: "0", transform: "translateX(20px)" },
336
+ "100%": { opacity: "1", transform: "translateX(0)" }
337
+ },
338
+ "slide-out-up": {
339
+ "0%": { opacity: "1", transform: "translateY(0)" },
340
+ "100%": { opacity: "0", transform: "translateY(-8px)" }
341
+ },
342
+ "slide-out-down": {
343
+ "0%": { opacity: "1", transform: "translateY(0)" },
344
+ "100%": { opacity: "0", transform: "translateY(8px)" }
345
+ },
346
+ "check-pop": {
347
+ "0%": { transform: "scale(0)" },
348
+ "60%": { transform: "scale(1.2)" },
349
+ "100%": { transform: "scale(1)" }
350
+ },
351
+ "tab-indicator": {
352
+ "0%": { transform: "scaleX(0)", transformOrigin: "left" },
353
+ "100%": { transform: "scaleX(1)", transformOrigin: "left" }
354
+ },
355
+ "count-up": {
356
+ "0%": { opacity: "0", transform: "translateY(100%)" },
357
+ "100%": { opacity: "1", transform: "translateY(0)" }
358
+ },
359
+ wiggle: {
360
+ "0%, 100%": { transform: "rotate(0deg)" },
361
+ "20%": { transform: "rotate(-3deg)" },
362
+ "40%": { transform: "rotate(3deg)" },
363
+ "60%": { transform: "rotate(-1deg)" },
364
+ "80%": { transform: "rotate(1deg)" }
365
+ },
366
+ "pulse-ring": {
367
+ "0%": { boxShadow: "0 0 0 0 currentColor", opacity: "0.4" },
368
+ "100%": { boxShadow: "0 0 0 6px currentColor", opacity: "0" }
369
+ },
370
+ "rubber-band": {
371
+ "0%": { transform: "scaleX(1)" },
372
+ "20%": { transform: "scaleX(1.15)" },
373
+ "40%": { transform: "scaleX(0.9)" },
374
+ "60%": { transform: "scaleX(1.05)" },
375
+ "80%": { transform: "scaleX(0.98)" },
376
+ "100%": { transform: "scaleX(1)" }
377
+ },
378
+ "collapse-out": {
379
+ "0%": { gridTemplateRows: "1fr", opacity: "1" },
380
+ "100%": { gridTemplateRows: "0fr", opacity: "0" }
381
+ },
382
+ "expand-in": {
383
+ "0%": { gridTemplateRows: "0fr", opacity: "0" },
384
+ "100%": { gridTemplateRows: "1fr", opacity: "1" }
385
+ },
386
+ "accordion-down": {
387
+ "0%": { height: "0", opacity: "0" },
388
+ "100%": { height: "var(--radix-accordion-content-height)", opacity: "1" }
389
+ },
390
+ "accordion-up": {
391
+ "0%": { height: "var(--radix-accordion-content-height)", opacity: "1" },
392
+ "100%": { height: "0", opacity: "0" }
393
+ },
394
+ "collapsible-down": {
395
+ "0%": { height: "0", opacity: "0" },
396
+ "100%": { height: "var(--radix-collapsible-content-height)", opacity: "1" }
397
+ },
398
+ "collapsible-up": {
399
+ "0%": { height: "var(--radix-collapsible-content-height)", opacity: "1" },
400
+ "100%": { height: "0", opacity: "0" }
401
+ },
402
+ "shimmer-sweep": {
403
+ "0%": { backgroundPosition: "-200% 0" },
404
+ "100%": { backgroundPosition: "200% 0" }
405
+ },
406
+ "swing-in": {
407
+ "0%": { opacity: "0", transform: "perspective(800px) rotateX(-60deg)" },
408
+ "70%": { opacity: "1", transform: "perspective(800px) rotateX(5deg)" },
409
+ "100%": { opacity: "1", transform: "perspective(800px) rotateX(0deg)" }
410
+ },
411
+ "pop-in": {
412
+ "0%": { opacity: "0", transform: "scale(0.5)" },
413
+ "70%": { opacity: "1", transform: "scale(1.05)" },
414
+ "100%": { opacity: "1", transform: "scale(1)" }
415
+ },
416
+ float: {
417
+ "0%, 100%": { transform: "translateY(0)" },
418
+ "50%": { transform: "translateY(-4px)" }
419
+ },
420
+ "subtle-bounce": {
421
+ "0%": { transform: "translateY(0)" },
422
+ "40%": { transform: "translateY(-2px)" },
423
+ "100%": { transform: "translateY(0)" }
424
+ },
425
+ "spin-in": {
426
+ "0%": { opacity: "0", transform: "rotate(0deg) scale(0)" },
427
+ "100%": { opacity: "1", transform: "rotate(360deg) scale(1)" }
428
+ },
429
+ stamp: {
430
+ "0%": { opacity: "0.5", transform: "scale(1.4)" },
431
+ "60%": { opacity: "1", transform: "scale(0.95)" },
432
+ "100%": { opacity: "1", transform: "scale(1)" }
329
433
  }
330
434
  },
331
435
  animation: {
@@ -343,7 +447,30 @@ const a = {
343
447
  "scale-out": "scale-out var(--duration-moderate-01) var(--ease-expressive-exit) both",
344
448
  "glow-pulse": "glow-pulse var(--duration-slow-01) var(--ease-expressive-standard) 1",
345
449
  "scale-bounce": "scale-bounce var(--duration-moderate-02) var(--ease-bounce) both",
346
- lift: "lift var(--duration-moderate-02) var(--ease-expressive-entrance) both"
450
+ lift: "lift var(--duration-moderate-02) var(--ease-expressive-entrance) both",
451
+ "slide-down": "slide-down var(--duration-moderate-02) var(--ease-expressive-entrance) both",
452
+ "slide-left": "slide-left var(--duration-moderate-02) var(--ease-expressive-entrance) both",
453
+ "slide-out-up": "slide-out-up var(--duration-moderate-01) var(--ease-expressive-exit) both",
454
+ "slide-out-down": "slide-out-down var(--duration-moderate-01) var(--ease-expressive-exit) both",
455
+ "check-pop": "check-pop var(--duration-moderate-02) var(--ease-bounce) both",
456
+ "tab-indicator": "tab-indicator var(--duration-moderate-01) var(--ease-expressive-entrance) both",
457
+ "count-up": "count-up var(--duration-moderate-02) var(--ease-expressive-entrance) both",
458
+ wiggle: "wiggle var(--duration-moderate-02) var(--ease-productive-standard) both",
459
+ "pulse-ring": "pulse-ring var(--duration-slow-01) var(--ease-expressive-standard) infinite",
460
+ "rubber-band": "rubber-band var(--duration-moderate-02) var(--ease-productive-standard) both",
461
+ "collapse-out": "collapse-out var(--duration-moderate-01) var(--ease-productive-exit) both",
462
+ "expand-in": "expand-in var(--duration-moderate-02) var(--ease-expressive-entrance) both",
463
+ "accordion-down": "accordion-down var(--duration-moderate-02) var(--ease-expressive-entrance) both",
464
+ "accordion-up": "accordion-up var(--duration-moderate-01) var(--ease-productive-exit) both",
465
+ "collapsible-down": "collapsible-down var(--duration-moderate-02) var(--ease-expressive-entrance) both",
466
+ "collapsible-up": "collapsible-up var(--duration-moderate-01) var(--ease-productive-exit) both",
467
+ "shimmer-sweep": "shimmer-sweep var(--duration-slow-02) var(--ease-linear) infinite",
468
+ "swing-in": "swing-in var(--duration-moderate-02) var(--ease-expressive-entrance) both",
469
+ "pop-in": "pop-in var(--duration-moderate-02) var(--ease-bounce) both",
470
+ float: "float 3s var(--ease-expressive-standard) infinite",
471
+ "subtle-bounce": "subtle-bounce var(--duration-fast-02) var(--ease-bounce) both",
472
+ "spin-in": "spin-in var(--duration-moderate-02) var(--ease-expressive-entrance) both",
473
+ stamp: "stamp var(--duration-moderate-02) var(--ease-bounce) both"
347
474
  },
348
475
  backgroundImage: {
349
476
  "gradient-brand": "var(--gradient-brand-light)",
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;;8EAuClB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,KAAK,mFAwBV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,aAAa;;;8EAuClB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,KAAK,mFA8BV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
package/dist/ui/alert.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
3
- import { IconInfoCircle as s, IconAlertCircle as x, IconAlertTriangle as m, IconCircleCheck as u, IconX as f } from "@tabler/icons-react";
4
- import * as g from "react";
5
- import { e as v } from "../_chunks/vendor-utils.js";
6
- import { c as p } from "../_chunks/utils.js";
7
- const N = v(
2
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
+ import { IconInfoCircle as n, IconAlertCircle as g, IconAlertTriangle as v, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
4
+ import * as t from "react";
5
+ import { e as w } from "../_chunks/vendor-utils.js";
6
+ import { c as h } from "../_chunks/utils.js";
7
+ const y = w(
8
8
  "relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
9
9
  {
10
10
  variants: {
@@ -43,36 +43,38 @@ const N = v(
43
43
  ],
44
44
  defaultVariants: { variant: "subtle", color: "info" }
45
45
  }
46
- ), w = {
47
- info: s,
48
- success: u,
49
- warning: m,
50
- error: x,
51
- neutral: s
52
- }, y = g.forwardRef(
53
- ({ className: n, variant: c = "subtle", color: e = "info", title: t, onDismiss: o, children: i, ...l }, d) => {
54
- const b = w[e ?? "info"];
55
- return /* @__PURE__ */ a("div", { ref: d, className: p(N({ variant: c, color: e }), n), role: "alert", ...l, children: [
56
- /* @__PURE__ */ r(b, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
57
- /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: [
58
- t && /* @__PURE__ */ r("p", { className: "text-ds-md font-semibold mb-ds-01", children: t }),
59
- /* @__PURE__ */ r("div", { className: "text-ds-md opacity-[0.9]", children: i })
46
+ ), I = {
47
+ info: n,
48
+ success: p,
49
+ warning: v,
50
+ error: g,
51
+ neutral: n
52
+ }, C = t.forwardRef(
53
+ ({ className: c, variant: l = "subtle", color: o = "info", title: a, onDismiss: r, children: i, ...d }, b) => {
54
+ const x = I[o ?? "info"], [u, m] = t.useState(!1), f = t.useCallback(() => {
55
+ m(!0), setTimeout(() => r == null ? void 0 : r(), 150);
56
+ }, [r]);
57
+ return /* @__PURE__ */ s("div", { ref: b, className: h(y({ variant: l, color: o }), u && "animate-slide-out-up", c), role: "alert", ...d, children: [
58
+ /* @__PURE__ */ e(x, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
59
+ /* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
60
+ a && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: a }),
61
+ /* @__PURE__ */ e("div", { className: "text-ds-md opacity-[0.9]", children: i })
60
62
  ] }),
61
- o && /* @__PURE__ */ r(
63
+ r && /* @__PURE__ */ e(
62
64
  "button",
63
65
  {
64
66
  type: "button",
65
- onClick: o,
67
+ onClick: f,
66
68
  className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
67
69
  "aria-label": "Dismiss",
68
- children: /* @__PURE__ */ r(f, { className: "h-ico-sm w-ico-sm" })
70
+ children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm" })
69
71
  }
70
72
  )
71
73
  ] });
72
74
  }
73
75
  );
74
- y.displayName = "Alert";
76
+ C.displayName = "Alert";
75
77
  export {
76
- y as Alert,
77
- N as alertVariants
78
+ C as Alert,
79
+ y as alertVariants
78
80
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as O, jsx as p } from "react/jsx-runtime";
2
+ import { jsxs as O, jsx as m } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
4
  import { c as b } from "../_chunks/utils.js";
5
5
  const T = t.forwardRef(
@@ -13,7 +13,7 @@ const T = t.forwardRef(
13
13
  className: R,
14
14
  id: N
15
15
  }, i) => {
16
- const E = t.useId(), w = N || E, k = `${w}-listbox`, v = `${w}-option`, [f, g] = t.useState((o == null ? void 0 : o.label) ?? ""), [c, a] = t.useState(!1), [r, l] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), y = t.useRef(), M = t.useCallback(
16
+ const E = t.useId(), w = N || E, v = `${w}-listbox`, k = `${w}-option`, [f, g] = t.useState((o == null ? void 0 : o.label) ?? ""), [c, a] = t.useState(!1), [r, l] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), y = t.useRef(), M = t.useCallback(
17
17
  (e) => {
18
18
  $.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
19
19
  },
@@ -25,7 +25,7 @@ const T = t.forwardRef(
25
25
  const n = t.useMemo(
26
26
  () => f ? x.filter((e) => e.label.toLowerCase().includes(f.toLowerCase())) : x,
27
27
  [x, f]
28
- ), m = t.useCallback(
28
+ ), p = t.useCallback(
29
29
  (e) => {
30
30
  g(e.label), a(!1), l(-1), u == null || u(e);
31
31
  },
@@ -44,17 +44,17 @@ const T = t.forwardRef(
44
44
  e.preventDefault(), l((s) => Math.max(s - 1, 0));
45
45
  break;
46
46
  case "Enter":
47
- e.preventDefault(), r >= 0 && n[r] && m(n[r]);
47
+ e.preventDefault(), r >= 0 && n[r] && p(n[r]);
48
48
  break;
49
49
  case "Escape":
50
50
  a(!1), l(-1);
51
51
  break;
52
52
  }
53
53
  },
54
- [c, n, r, m]
55
- ), K = r >= 0 ? `${v}-${r}` : void 0;
54
+ [c, n, r, p]
55
+ ), K = r >= 0 ? `${k}-${r}` : void 0;
56
56
  return /* @__PURE__ */ O("div", { className: b("relative", R), children: [
57
- /* @__PURE__ */ p(
57
+ /* @__PURE__ */ m(
58
58
  "input",
59
59
  {
60
60
  ref: M,
@@ -62,7 +62,7 @@ const T = t.forwardRef(
62
62
  role: "combobox",
63
63
  "aria-expanded": c,
64
64
  "aria-autocomplete": "list",
65
- "aria-controls": c ? k : void 0,
65
+ "aria-controls": c ? v : void 0,
66
66
  "aria-activedescendant": K,
67
67
  value: f,
68
68
  placeholder: D,
@@ -83,20 +83,20 @@ const T = t.forwardRef(
83
83
  onKeyDown: S
84
84
  }
85
85
  ),
86
- c && /* @__PURE__ */ p(
86
+ c && /* @__PURE__ */ m(
87
87
  "ul",
88
88
  {
89
- id: k,
89
+ id: v,
90
90
  ref: A,
91
91
  role: "listbox",
92
92
  className: b(
93
- "absolute z-dropdown mt-ds-02 w-full overflow-auto rounded-ds-md border border-border bg-layer-01 shadow-02",
93
+ "absolute z-popover mt-ds-02 w-full overflow-auto rounded-ds-md border border-border bg-layer-01 shadow-02",
94
94
  "max-h-60"
95
95
  ),
96
- children: n.length === 0 ? /* @__PURE__ */ p("li", { className: "px-ds-04 py-ds-03 text-ds-md text-text-secondary", children: I }) : n.map((e, s) => /* @__PURE__ */ p(
96
+ children: n.length === 0 ? /* @__PURE__ */ m("li", { className: "px-ds-04 py-ds-03 text-ds-md text-text-secondary", children: I }) : n.map((e, s) => /* @__PURE__ */ m(
97
97
  "li",
98
98
  {
99
- id: `${v}-${s}`,
99
+ id: `${k}-${s}`,
100
100
  role: "option",
101
101
  "aria-selected": r === s,
102
102
  className: b(
@@ -105,9 +105,9 @@ const T = t.forwardRef(
105
105
  (o == null ? void 0 : o.value) === e.value && "font-semibold"
106
106
  ),
107
107
  onMouseDown: (d) => d.preventDefault(),
108
- onClick: () => m(e),
108
+ onClick: () => p(e),
109
109
  onKeyDown: (d) => {
110
- (d.key === "Enter" || d.key === " ") && (d.preventDefault(), m(e));
110
+ (d.key === "Enter" || d.key === " ") && (d.preventDefault(), p(e));
111
111
  },
112
112
  onMouseEnter: () => l(s),
113
113
  children: e.label
package/dist/ui/badge.js CHANGED
@@ -103,7 +103,7 @@ const u = x(
103
103
  n && /* @__PURE__ */ r(
104
104
  "span",
105
105
  {
106
- className: "h-ds-02b w-ds-02b rounded-ds-full bg-current opacity-[0.7] shrink-0",
106
+ className: "h-ds-02b w-ds-02b rounded-ds-full bg-current opacity-[0.7] shrink-0 animate-pulse-ring",
107
107
  "aria-hidden": "true"
108
108
  }
109
109
  ),
@@ -113,7 +113,7 @@ const u = x(
113
113
  {
114
114
  type: "button",
115
115
  onClick: e,
116
- className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
116
+ className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-icon-secondary hover:rotate-90 transition-[color,transform] duration-fast-02 hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
117
117
  "aria-label": "Remove",
118
118
  children: /* @__PURE__ */ r(b, { className: "h-ico-sm w-ico-sm" })
119
119
  }
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/ui/banner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,cAAc;;8EAmBnB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,MAAM,oFAsBX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/ui/banner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,cAAc;;8EAmBnB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,MAAM,oFA4BX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
package/dist/ui/banner.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
3
- import { IconInfoCircle as n, IconAlertCircle as f, IconAlertTriangle as m, IconCircleCheck as b, IconX as u } from "@tabler/icons-react";
4
- import * as x from "react";
5
- import { e as g } from "../_chunks/vendor-utils.js";
6
- import { c as p } from "../_chunks/utils.js";
7
- const h = g(
2
+ import { jsxs as b, jsx as r } from "react/jsx-runtime";
3
+ import { IconInfoCircle as n, IconAlertCircle as x, IconAlertTriangle as g, IconCircleCheck as p, IconX as h } from "@tabler/icons-react";
4
+ import * as s from "react";
5
+ import { e as v } from "../_chunks/vendor-utils.js";
6
+ import { c as w } from "../_chunks/utils.js";
7
+ const N = v(
8
8
  "flex items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
9
9
  {
10
10
  variants: {
@@ -18,34 +18,36 @@ const h = g(
18
18
  },
19
19
  defaultVariants: { color: "info" }
20
20
  }
21
- ), N = {
21
+ ), y = {
22
22
  info: n,
23
- success: b,
24
- warning: m,
25
- error: f,
23
+ success: p,
24
+ warning: g,
25
+ error: x,
26
26
  neutral: n
27
- }, v = x.forwardRef(
28
- ({ className: t, color: e = "info", action: s, onDismiss: o, children: i, ...c }, a) => {
29
- const d = N[e ?? "info"];
30
- return /* @__PURE__ */ l("div", { ref: a, className: p(h({ color: e }), t), role: "alert", ...c, children: [
27
+ }, I = s.forwardRef(
28
+ ({ className: a, color: t = "info", action: o, onDismiss: e, children: i, ...c }, l) => {
29
+ const d = y[t ?? "info"], [f, m] = s.useState(!1), u = s.useCallback(() => {
30
+ m(!0), setTimeout(() => e == null ? void 0 : e(), 150);
31
+ }, [e]);
32
+ return /* @__PURE__ */ b("div", { ref: l, className: w(N({ color: t }), f && "animate-collapse-out overflow-hidden", a), role: "alert", ...c, children: [
31
33
  /* @__PURE__ */ r(d, { className: "h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
32
34
  /* @__PURE__ */ r("span", { className: "flex-1", children: i }),
33
- s && /* @__PURE__ */ r("span", { className: "shrink-0", children: s }),
34
- o && /* @__PURE__ */ r(
35
+ o && /* @__PURE__ */ r("span", { className: "shrink-0", children: o }),
36
+ e && /* @__PURE__ */ r(
35
37
  "button",
36
38
  {
37
39
  type: "button",
38
- onClick: o,
40
+ onClick: u,
39
41
  className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
40
42
  "aria-label": "Dismiss",
41
- children: /* @__PURE__ */ r(u, { className: "h-ico-sm w-ico-sm" })
43
+ children: /* @__PURE__ */ r(h, { className: "h-ico-sm w-ico-sm" })
42
44
  }
43
45
  )
44
46
  ] });
45
47
  }
46
48
  );
47
- v.displayName = "Banner";
49
+ I.displayName = "Banner";
48
50
  export {
49
- v as Banner,
50
- h as bannerVariants
51
+ I as Banner,
52
+ N as bannerVariants
51
53
  };
package/dist/ui/button.js CHANGED
@@ -6,7 +6,7 @@ import * as G from "react";
6
6
  import { u as M, S as q } from "../_chunks/spinner.js";
7
7
  import { c as s } from "../_chunks/utils.js";
8
8
  const p = B(
9
- "inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent transition-[color,background-color,border-color,box-shadow] duration-fast-01 ease-productive-standard focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38]",
9
+ "inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent transition-[color,background-color,border-color,box-shadow,transform] duration-fast-01 ease-productive-standard active:translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38]",
10
10
  {
11
11
  variants: {
12
12
  variant: {
@@ -89,14 +89,14 @@ const p = B(
89
89
  loadingPosition: t = "start",
90
90
  fullWidth: m = !1,
91
91
  disabled: v,
92
- children: i,
92
+ children: a,
93
93
  ...u
94
94
  }, h) => {
95
- const a = M(), b = w ?? a.variant, g = N ?? a.color, o = y ?? a.size ?? "md", f = A[o], z = D[o], n = e ? /* @__PURE__ */ r(q, { size: z }) : null;
95
+ const i = M(), b = w ?? i.variant, f = N ?? i.color, o = y ?? i.size ?? "md", g = A[o], z = D[o], n = e ? /* @__PURE__ */ r(q, { size: z }) : null;
96
96
  if (S) {
97
97
  const V = {
98
98
  className: s(
99
- p({ variant: b, color: g, size: o }),
99
+ p({ variant: b, color: f, size: o }),
100
100
  m && "w-full",
101
101
  c
102
102
  ),
@@ -105,17 +105,17 @@ const p = B(
105
105
  "aria-busy": e || void 0,
106
106
  ...u
107
107
  };
108
- return /* @__PURE__ */ r(R, { ...V, children: /* @__PURE__ */ r(E, { children: i }) });
108
+ return /* @__PURE__ */ r(R, { ...V, children: /* @__PURE__ */ r(E, { children: a }) });
109
109
  }
110
- const j = () => e && t === "start" ? n : d ? /* @__PURE__ */ r("span", { className: s("inline-flex shrink-0 items-center justify-center", f), children: d }) : null, k = () => e && t === "end" ? n : l ? /* @__PURE__ */ r("span", { className: s("inline-flex shrink-0 items-center justify-center", f), children: l }) : null, C = () => e && t === "center" ? /* @__PURE__ */ x("span", { className: "relative inline-flex items-center justify-center", children: [
111
- /* @__PURE__ */ r("span", { className: "invisible", children: i }),
110
+ const j = () => e && t === "start" ? n : d ? /* @__PURE__ */ r("span", { className: s("inline-flex shrink-0 items-center justify-center", g), children: d }) : null, k = () => e && t === "end" ? n : l ? /* @__PURE__ */ r("span", { className: s("inline-flex shrink-0 items-center justify-center", g), children: l }) : null, C = () => e && t === "center" ? /* @__PURE__ */ x("span", { className: "relative inline-flex items-center justify-center", children: [
111
+ /* @__PURE__ */ r("span", { className: "invisible", children: a }),
112
112
  /* @__PURE__ */ r("span", { className: "absolute inset-0 flex items-center justify-center", children: n })
113
- ] }) : i;
113
+ ] }) : a;
114
114
  return /* @__PURE__ */ x(
115
115
  "button",
116
116
  {
117
117
  className: s(
118
- p({ variant: b, color: g, size: o }),
118
+ p({ variant: b, color: f, size: o }),
119
119
  m && "w-full",
120
120
  c
121
121
  ),
package/dist/ui/card.js CHANGED
@@ -23,7 +23,7 @@ const l = i(
23
23
  ref: n,
24
24
  className: o(
25
25
  l({ variant: a }),
26
- e && "hover:shadow-02 hover:border-border-strong cursor-pointer transition-shadow duration-fast-01",
26
+ e && "hover:shadow-02 hover:border-border-strong hover:-translate-y-px active:scale-[0.98] cursor-pointer transition-all duration-fast-02 ease-productive-standard",
27
27
  r
28
28
  ),
29
29
  ...s
@@ -60,7 +60,7 @@ const p = t.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ d(
60
60
  p.displayName = "CardDescription";
61
61
  const b = t.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ d("div", { ref: e, className: o("p-ds-06 pt-0", r), ...a }));
62
62
  b.displayName = "CardContent";
63
- const C = t.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ d(
63
+ const v = t.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ d(
64
64
  "div",
65
65
  {
66
66
  ref: e,
@@ -68,12 +68,12 @@ const C = t.forwardRef(({ className: r, ...a }, e) => /* @__PURE__ */ d(
68
68
  ...a
69
69
  }
70
70
  ));
71
- C.displayName = "CardFooter";
71
+ v.displayName = "CardFooter";
72
72
  export {
73
73
  c as Card,
74
74
  b as CardContent,
75
75
  p as CardDescription,
76
- C as CardFooter,
76
+ v as CardFooter,
77
77
  f as CardHeader,
78
78
  m as CardTitle,
79
79
  l as cardVariants
@@ -4,8 +4,8 @@ import { C as r, b as d } from "../_chunks/primitives.js";
4
4
  import { IconMinus as m, IconCheck as l } from "@tabler/icons-react";
5
5
  import * as b from "react";
6
6
  import { c as f } from "../_chunks/utils.js";
7
- const h = b.forwardRef(({ className: i, error: o, indeterminate: a, checked: s, ...c }, n) => {
8
- const t = a ? "indeterminate" : s;
7
+ const h = b.forwardRef(({ className: i, error: o, indeterminate: a, checked: c, ...s }, n) => {
8
+ const t = a ? "indeterminate" : c;
9
9
  return /* @__PURE__ */ e(
10
10
  r,
11
11
  {
@@ -23,8 +23,8 @@ const h = b.forwardRef(({ className: i, error: o, indeterminate: a, checked: s,
23
23
  o && "border-border-error",
24
24
  i
25
25
  ),
26
- ...c,
27
- children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center text-current", children: t === "indeterminate" ? /* @__PURE__ */ e(m, { className: "h-ico-sm w-ico-sm" }) : /* @__PURE__ */ e(l, { className: "h-3 w-3" }) })
26
+ ...s,
27
+ children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center text-current animate-check-pop", children: t === "indeterminate" ? /* @__PURE__ */ e(m, { className: "h-ico-sm w-ico-sm" }) : /* @__PURE__ */ e(l, { className: "h-3 w-3" }) })
28
28
  }
29
29
  );
30
30
  });
package/dist/ui/chip.js CHANGED
@@ -67,7 +67,7 @@ const w = N(
67
67
  }
68
68
  ), C = f.forwardRef(
69
69
  ({ label: a, variant: n, size: l, color: i, icon: o, onClick: s, onDismiss: c, disabled: t, className: d, ...b }, g) => {
70
- const e = !!s, m = e ? "button" : "span", x = e && !t ? "cursor-pointer hover:bg-field-hover" : "", u = t ? "opacity-action-disabled cursor-not-allowed" : "";
70
+ const e = !!s, m = e ? "button" : "span", x = e && !t ? "cursor-pointer hover:bg-field-hover active:scale-95" : "", u = t ? "opacity-action-disabled cursor-not-allowed" : "";
71
71
  return /* @__PURE__ */ v(
72
72
  m,
73
73
  {
@@ -85,7 +85,7 @@ const w = N(
85
85
  {
86
86
  type: "button",
87
87
  "aria-label": `Remove ${a}`,
88
- className: "flex-shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full p-ds-01 hover:bg-layer-03 transition-colors duration-fast-01 [&>svg]:w-ico-sm [&>svg]:h-ico-sm",
88
+ className: "flex-shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full p-ds-01 hover:bg-layer-03 hover:rotate-90 transition-[color,transform] duration-fast-02 [&>svg]:w-ico-sm [&>svg]:h-ico-sm",
89
89
  onClick: (y) => {
90
90
  y.stopPropagation(), c();
91
91
  },
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
- import * as i from "react";
4
- import { U as a, V as l, W as n } from "../_chunks/primitives.js";
5
- import { c as r } from "../_chunks/utils.js";
6
- const f = l, C = n, d = i.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ s(
3
+ import * as l from "react";
4
+ import { U as a, V as i, W as r } from "../_chunks/primitives.js";
5
+ import { c as p } from "../_chunks/utils.js";
6
+ const f = i, b = r, m = l.forwardRef(({ className: o, ...e }, t) => /* @__PURE__ */ s(
7
7
  a,
8
8
  {
9
- ref: e,
10
- className: r(
11
- "overflow-hidden transition-all data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
12
- t
9
+ ref: t,
10
+ className: p(
11
+ "overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",
12
+ o
13
13
  ),
14
- ...o
14
+ ...e
15
15
  }
16
16
  ));
17
- d.displayName = a.displayName;
17
+ m.displayName = a.displayName;
18
18
  export {
19
19
  f as Collapsible,
20
- d as CollapsibleContent,
21
- C as CollapsibleTrigger
20
+ m as CollapsibleContent,
21
+ b as CollapsibleTrigger
22
22
  };