@devalok/shilp-sutra 0.21.0 → 0.22.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 (96) hide show
  1. package/dist/_chunks/use-calendar.js +115 -115
  2. package/dist/_chunks/vendor-utils.js +1230 -1178
  3. package/dist/composed/activity-feed.d.ts.map +1 -1
  4. package/dist/composed/activity-feed.js +78 -78
  5. package/dist/composed/avatar-group.d.ts +2 -2
  6. package/dist/composed/avatar-group.d.ts.map +1 -1
  7. package/dist/composed/avatar-group.js +82 -107
  8. package/dist/composed/command-palette.js +50 -50
  9. package/dist/composed/content-card.js +10 -10
  10. package/dist/composed/empty-state.d.ts.map +1 -1
  11. package/dist/composed/empty-state.js +58 -48
  12. package/dist/composed/global-loading.d.ts.map +1 -1
  13. package/dist/composed/global-loading.js +11 -10
  14. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  15. package/dist/composed/loading-skeleton.js +32 -29
  16. package/dist/composed/member-picker.d.ts.map +1 -1
  17. package/dist/composed/member-picker.js +28 -17
  18. package/dist/composed/page-header.js +25 -25
  19. package/dist/composed/priority-indicator.d.ts.map +1 -1
  20. package/dist/composed/priority-indicator.js +60 -36
  21. package/dist/composed/rich-text-editor.js +104 -104
  22. package/dist/composed/schedule-view.d.ts.map +1 -1
  23. package/dist/composed/schedule-view.js +52 -44
  24. package/dist/composed/status-badge.js +16 -16
  25. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  26. package/dist/shell/bottom-navbar.js +35 -31
  27. package/dist/shell/notification-center.d.ts.map +1 -1
  28. package/dist/shell/notification-center.js +119 -111
  29. package/dist/shell/sidebar.js +2 -2
  30. package/dist/shell/top-bar.js +9 -9
  31. package/dist/tailwind/index.cjs +30 -3
  32. package/dist/tailwind/preset.d.ts.map +1 -1
  33. package/dist/tailwind/preset.js +30 -3
  34. package/dist/tokens/semantic.css +10 -10
  35. package/dist/tokens/typography-semantic.css +3 -3
  36. package/dist/ui/accordion.js +22 -22
  37. package/dist/ui/alert.js +8 -8
  38. package/dist/ui/avatar.d.ts.map +1 -1
  39. package/dist/ui/avatar.js +72 -86
  40. package/dist/ui/badge.js +5 -5
  41. package/dist/ui/banner.js +18 -18
  42. package/dist/ui/breadcrumb.js +23 -23
  43. package/dist/ui/button.js +22 -22
  44. package/dist/ui/card.js +16 -16
  45. package/dist/ui/checkbox.d.ts.map +1 -1
  46. package/dist/ui/checkbox.js +72 -25
  47. package/dist/ui/chip.js +14 -14
  48. package/dist/ui/code.js +9 -9
  49. package/dist/ui/combobox.d.ts.map +1 -1
  50. package/dist/ui/combobox.js +46 -45
  51. package/dist/ui/dialog.js +17 -17
  52. package/dist/ui/dropdown-menu.js +22 -22
  53. package/dist/ui/form.d.ts.map +1 -1
  54. package/dist/ui/form.js +35 -29
  55. package/dist/ui/input.js +20 -20
  56. package/dist/ui/label.js +15 -15
  57. package/dist/ui/lib/motion.d.ts.map +1 -1
  58. package/dist/ui/lib/motion.js +2 -2
  59. package/dist/ui/link.js +14 -14
  60. package/dist/ui/number-input.js +36 -36
  61. package/dist/ui/pagination.js +14 -14
  62. package/dist/ui/progress.js +6 -6
  63. package/dist/ui/radio.d.ts.map +1 -1
  64. package/dist/ui/radio.js +24 -12
  65. package/dist/ui/search-input.d.ts.map +1 -1
  66. package/dist/ui/search-input.js +25 -19
  67. package/dist/ui/select.js +15 -15
  68. package/dist/ui/separator.d.ts +10 -2
  69. package/dist/ui/separator.d.ts.map +1 -1
  70. package/dist/ui/separator.js +16 -15
  71. package/dist/ui/sheet.js +7 -7
  72. package/dist/ui/sidebar.d.ts +1 -1
  73. package/dist/ui/sidebar.d.ts.map +1 -1
  74. package/dist/ui/sidebar.js +22 -22
  75. package/dist/ui/skeleton.js +5 -5
  76. package/dist/ui/slider.js +7 -7
  77. package/dist/ui/stat-card.js +19 -19
  78. package/dist/ui/switch.d.ts.map +1 -1
  79. package/dist/ui/switch.js +14 -13
  80. package/dist/ui/tabs.d.ts.map +1 -1
  81. package/dist/ui/tabs.js +60 -51
  82. package/dist/ui/textarea.js +15 -15
  83. package/dist/ui/toast.js +1 -1
  84. package/dist/ui/toggle.js +5 -5
  85. package/dist/ui/tooltip.d.ts +0 -4
  86. package/dist/ui/tooltip.d.ts.map +1 -1
  87. package/dist/ui/tooltip.js +24 -24
  88. package/docs/components/ui/avatar.md +3 -0
  89. package/docs/components/ui/button.md +5 -0
  90. package/docs/components/ui/checkbox.md +5 -0
  91. package/docs/components/ui/dropdown-menu.md +3 -0
  92. package/docs/components/ui/separator.md +3 -0
  93. package/docs/components/ui/tooltip.md +5 -0
  94. package/llms-full.txt +25 -1
  95. package/llms.txt +20 -0
  96. package/package.json +1 -1
@@ -1,57 +1,57 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
3
- import * as i from "react";
4
- import { I as m, H as f, T as n, C as c, R as l } from "../_chunks/primitives.js";
2
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
3
+ import * as s from "react";
4
+ import { I as m, H as f, T as d, C as n, R as l } from "../_chunks/primitives.js";
5
5
  import { IconChevronDown as p } from "@tabler/icons-react";
6
- import { cn as s } from "./lib/utils.js";
6
+ import { cn as i } from "./lib/utils.js";
7
7
  import { tweens as u } from "./lib/motion.js";
8
- import { m as N } from "../_chunks/framer.js";
9
- const I = l, w = i.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
8
+ import { m as b } from "../_chunks/framer.js";
9
+ const I = l, g = s.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
10
10
  m,
11
11
  {
12
12
  ref: t,
13
- className: s("border-b border-surface-border", o),
13
+ className: i("border-b border-surface-border", o),
14
14
  ...a
15
15
  }
16
16
  ));
17
- w.displayName = "AccordionItem";
18
- const x = i.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(f, { className: "flex", children: /* @__PURE__ */ d(
19
- n,
17
+ g.displayName = "AccordionItem";
18
+ const N = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(f, { className: "flex", children: /* @__PURE__ */ c(
19
+ d,
20
20
  {
21
21
  ref: r,
22
- className: s(
23
- "group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
22
+ className: i(
23
+ "group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:bg-surface-2 rounded-ds-md data-[state=open]:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
24
24
  o
25
25
  ),
26
26
  ...t,
27
27
  children: [
28
28
  a,
29
- /* @__PURE__ */ e(p, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-muted transition-transform duration-200 group-data-[state=open]:rotate-180" })
29
+ /* @__PURE__ */ e(p, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-muted transition-transform duration-moderate-02 ease-productive-standard group-data-[state=open]:rotate-180" })
30
30
  ]
31
31
  }
32
32
  ) }));
33
- x.displayName = n.displayName;
34
- const b = i.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(
35
- c,
33
+ N.displayName = d.displayName;
34
+ const w = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(
35
+ n,
36
36
  {
37
37
  ref: r,
38
38
  className: "w-full overflow-hidden text-ds-md data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",
39
39
  ...t,
40
40
  children: /* @__PURE__ */ e(
41
- N.div,
41
+ b.div,
42
42
  {
43
43
  initial: !1,
44
44
  animate: { opacity: 1 },
45
45
  transition: u.fade,
46
- children: /* @__PURE__ */ e("div", { className: s("pb-ds-05 pt-0", o), children: a })
46
+ children: /* @__PURE__ */ e("div", { className: i("pb-ds-05 pt-ds-02", o), children: a })
47
47
  }
48
48
  )
49
49
  }
50
50
  ));
51
- b.displayName = c.displayName;
51
+ w.displayName = n.displayName;
52
52
  export {
53
53
  I as Accordion,
54
- b as AccordionContent,
55
- w as AccordionItem,
56
- x as AccordionTrigger
54
+ w as AccordionContent,
55
+ g as AccordionItem,
56
+ N as AccordionTrigger
57
57
  };
package/dist/ui/alert.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
3
- import { IconInfoCircle as o, IconAlertCircle as x, IconAlertTriangle as v, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
3
+ import { IconInfoCircle as o, IconAlertCircle as v, IconAlertTriangle as x, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
4
4
  import * as r from "react";
5
5
  import { ag as w } from "../_chunks/vendor-utils.js";
6
6
  import { cn as h } from "./lib/utils.js";
@@ -48,15 +48,15 @@ const k = w(
48
48
  ), V = {
49
49
  info: o,
50
50
  success: p,
51
- warning: v,
52
- error: x,
51
+ warning: x,
52
+ error: v,
53
53
  neutral: o
54
54
  }, j = r.forwardRef(
55
55
  ({ className: c, variant: i = "subtle", color: t = "info", title: a, onDismiss: s, children: l, ...f }, u) => {
56
- const m = V[t ?? "info"], [d, g] = r.useState(!0), b = r.useCallback(() => {
56
+ const d = V[t ?? "info"], [m, g] = r.useState(!0), b = r.useCallback(() => {
57
57
  g(!1);
58
58
  }, []);
59
- return /* @__PURE__ */ e(C, { onExitComplete: s, children: d && /* @__PURE__ */ n(
59
+ return /* @__PURE__ */ e(C, { onExitComplete: s, children: m && /* @__PURE__ */ n(
60
60
  A.div,
61
61
  {
62
62
  ref: u,
@@ -68,17 +68,17 @@ const k = w(
68
68
  role: "alert",
69
69
  ...I(f),
70
70
  children: [
71
- /* @__PURE__ */ e(m, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
71
+ /* @__PURE__ */ e(d, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
72
72
  /* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: [
73
73
  a && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: a }),
74
- /* @__PURE__ */ e("div", { className: "text-ds-md opacity-[0.9]", children: l })
74
+ /* @__PURE__ */ e("div", { className: "text-ds-md text-surface-fg-muted", children: l })
75
75
  ] }),
76
76
  s && /* @__PURE__ */ e(
77
77
  "button",
78
78
  {
79
79
  type: "button",
80
80
  onClick: b,
81
- className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
81
+ className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-3 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
82
82
  "aria-label": "Dismiss",
83
83
  children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm" })
84
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAMjE,eAAO,MAAM,cAAc;;;8EAmB1B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAoE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,EACnF,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,SAAS,CAAA;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,MAAM,qFAuFV,CAAA;AAGF,QAAA,MAAM,WAAW,gKAgBf,CAAA;AAGF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,6FA4BlB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAUjE,eAAO,MAAM,cAAc;;;8EAmB1B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAoE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,EACnF,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,SAAS,CAAA;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,MAAM,qFA6EV,CAAA;AAGF,QAAA,MAAM,WAAW,gKAgBf,CAAA;AAGF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,6FAiClB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
package/dist/ui/avatar.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as M } from "react/jsx-runtime";
3
- import * as g from "react";
4
- import { F as y, J as v, K as N } from "../_chunks/primitives.js";
5
- import { ag as R } from "../_chunks/vendor-utils.js";
6
- import { springs as k } from "./lib/motion.js";
7
- import { cn as n } from "./lib/utils.js";
8
- import { m as c } from "../_chunks/framer.js";
9
- const p = R(
2
+ import { jsx as s, jsxs as R } from "react/jsx-runtime";
3
+ import * as i from "react";
4
+ import { F as y, J as N, K as k } from "../_chunks/primitives.js";
5
+ import { ag as F } from "../_chunks/vendor-utils.js";
6
+ import { springs as C } from "./lib/motion.js";
7
+ import { cn as r } from "./lib/utils.js";
8
+ import { m as f } from "../_chunks/framer.js";
9
+ const A = i.createContext("circle"), x = F(
10
10
  "relative flex shrink-0 overflow-hidden",
11
11
  {
12
12
  variants: {
@@ -25,157 +25,143 @@ const p = R(
25
25
  },
26
26
  defaultVariants: { size: "md", shape: "circle" }
27
27
  }
28
- ), x = {
28
+ ), b = {
29
29
  online: "bg-success-9",
30
30
  offline: "bg-surface-3",
31
31
  busy: "bg-error-9",
32
32
  away: "bg-warning-9"
33
- }, b = {
33
+ }, h = {
34
34
  online: "Online",
35
35
  offline: "Offline",
36
36
  busy: "Busy",
37
37
  away: "Away"
38
- }, h = {
38
+ }, w = {
39
39
  xs: "h-ds-02b w-ds-02b",
40
40
  sm: "h-[8px] w-[8px]",
41
41
  md: "h-ds-03 w-ds-03",
42
42
  lg: "h-[12px] w-[12px]",
43
43
  xl: "h-ds-04 w-ds-04"
44
- }, F = {
44
+ }, O = {
45
45
  lead: "ring-accent-7",
46
46
  admin: "ring-warning-7",
47
47
  client: "ring-info-7"
48
- }, O = {
48
+ }, S = {
49
49
  circle: "rounded-ds-full",
50
50
  square: "rounded-ds-none",
51
51
  rounded: "rounded-ds-md"
52
- }, w = [
53
- { bg: "bg-accent-3", text: "text-accent-11" },
54
- { bg: "bg-secondary-3", text: "text-secondary-11" },
55
- { bg: "bg-success-3", text: "text-success-11" },
56
- { bg: "bg-warning-3", text: "text-warning-11" },
57
- { bg: "bg-error-3", text: "text-error-11" },
58
- { bg: "bg-info-3", text: "text-info-11" },
59
- { bg: "bg-category-teal-3", text: "text-category-teal-11" },
60
- { bg: "bg-category-indigo-3", text: "text-category-indigo-11" }
52
+ }, v = [
53
+ { bg: "bg-accent-2", text: "text-accent-11" },
54
+ { bg: "bg-success-2", text: "text-success-11" },
55
+ { bg: "bg-warning-2", text: "text-warning-11" },
56
+ { bg: "bg-error-2", text: "text-error-11" },
57
+ { bg: "bg-info-2", text: "text-info-11" },
58
+ { bg: "bg-cat-purple-2", text: "text-cat-purple-11" },
59
+ { bg: "bg-cat-pink-2", text: "text-cat-pink-11" },
60
+ { bg: "bg-cat-teal-2", text: "text-cat-teal-11" }
61
61
  ];
62
62
  function j(o) {
63
63
  let a = 5381;
64
64
  for (let e = 0; e < o.length; e++)
65
65
  a = (a << 5) + a + o.charCodeAt(e) | 0;
66
- const s = Math.abs(a) % w.length;
67
- return w[s];
66
+ const n = Math.abs(a) % v.length;
67
+ return v[n];
68
68
  }
69
- const I = g.forwardRef(({ className: o, size: a, shape: s, status: e, ring: l, badge: t, loading: m, children: i, ...d }, f) => {
70
- const A = s ?? "circle", u = l && l !== "none" ? n("ring-2 ring-offset-2 ring-offset-surface-2", F[l], O[A]) : void 0;
71
- if (m)
72
- return /* @__PURE__ */ r("span", { ref: f, className: n("relative inline-flex shrink-0", u), children: /* @__PURE__ */ r(
69
+ const q = i.forwardRef(({ className: o, size: a, shape: n, status: e, ring: l, badge: t, loading: g, children: d, ...c }, u) => {
70
+ const m = n ?? "circle", p = l && l !== "none" ? r("ring-2 ring-offset-2 ring-offset-surface-2", O[l], S[m]) : void 0;
71
+ if (g)
72
+ return /* @__PURE__ */ s("span", { ref: u, className: r("relative inline-flex shrink-0", p), children: /* @__PURE__ */ s(
73
73
  "span",
74
74
  {
75
- className: n(p({ size: a, shape: s }), "animate-pulse bg-surface-3"),
75
+ className: r(x({ size: a, shape: n }), "animate-pulse bg-surface-3"),
76
76
  "data-slot": "avatar-skeleton"
77
77
  }
78
78
  ) });
79
- const C = t !== void 0 && t !== 0;
80
- return /* @__PURE__ */ M("span", { className: n("relative inline-flex shrink-0", u), children: [
81
- /* @__PURE__ */ r(
79
+ const M = t !== void 0 && t !== 0;
80
+ return /* @__PURE__ */ s(A.Provider, { value: m, children: /* @__PURE__ */ R("span", { className: r("relative inline-flex shrink-0", p), children: [
81
+ /* @__PURE__ */ s(
82
82
  y,
83
83
  {
84
- ref: f,
85
- className: n(p({ size: a, shape: s }), o),
86
- ...d,
87
- children: i
84
+ ref: u,
85
+ className: r(x({ size: a, shape: n }), o),
86
+ ...c,
87
+ children: d
88
88
  }
89
89
  ),
90
- e && (e === "online" ? /* @__PURE__ */ r(
91
- c.span,
90
+ e && (e === "online" ? /* @__PURE__ */ s(
91
+ f.span,
92
92
  {
93
- className: n(
94
- "absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2",
95
- x[e],
96
- h[a ?? "md"]
97
- ),
93
+ className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2", b[e], w[a ?? "md"]),
98
94
  animate: { opacity: [1, 0.75, 1] },
99
95
  transition: { duration: 2.5, repeat: 1 / 0, ease: "easeInOut" },
100
96
  role: "img",
101
- "aria-label": b[e]
102
- }
103
- ) : /* @__PURE__ */ r(
104
- "span",
105
- {
106
- className: n(
107
- "absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2",
108
- x[e],
109
- h[a ?? "md"]
110
- ),
111
- role: "img",
112
- "aria-label": b[e]
97
+ "aria-label": h[e]
113
98
  }
114
- )),
115
- C && (t === "dot" ? /* @__PURE__ */ r(
99
+ ) : /* @__PURE__ */ s("span", { className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2", b[e], w[a ?? "md"]), role: "img", "aria-label": h[e] })),
100
+ M && (t === "dot" ? /* @__PURE__ */ s(
116
101
  "span",
117
102
  {
118
103
  className: "absolute -right-0.5 -top-0.5 h-[8px] w-[8px] rounded-ds-full bg-error-9 ring-2 ring-surface-2",
119
104
  "data-slot": "avatar-badge-dot",
120
105
  "aria-hidden": "true"
121
106
  }
122
- ) : typeof t == "number" ? /* @__PURE__ */ r(
123
- c.span,
107
+ ) : typeof t == "number" ? /* @__PURE__ */ s(
108
+ f.span,
124
109
  {
125
110
  initial: { scale: 0 },
126
111
  animate: { scale: 1 },
127
- transition: k.bouncy,
112
+ transition: C.bouncy,
128
113
  className: "absolute -right-1 -top-1 flex min-w-[16px] items-center justify-center rounded-ds-full bg-error-9 px-1 text-[10px] font-bold leading-[16px] text-error-fg ring-2 ring-surface-2",
129
114
  "data-slot": "avatar-badge",
130
115
  role: "status",
131
116
  "aria-label": `${t > 99 ? "99+" : t} notifications`,
132
117
  children: t > 99 ? "99+" : t
133
118
  }
134
- ) : /* @__PURE__ */ r("span", { className: "absolute -right-1 -top-1", "data-slot": "avatar-badge-custom", children: t }))
135
- ] });
119
+ ) : /* @__PURE__ */ s("span", { className: "absolute -right-1 -top-1", "data-slot": "avatar-badge-custom", children: t }))
120
+ ] }) });
136
121
  });
137
- I.displayName = y.displayName;
138
- const L = g.forwardRef(({ className: o, ...a }, s) => /* @__PURE__ */ r(
139
- c.span,
122
+ q.displayName = y.displayName;
123
+ const I = i.forwardRef(({ className: o, ...a }, n) => /* @__PURE__ */ s(
124
+ f.span,
140
125
  {
141
126
  initial: { opacity: 0, scale: 0.96 },
142
127
  animate: { opacity: 1, scale: 1 },
143
- transition: k.smooth,
128
+ transition: C.smooth,
144
129
  className: "absolute inset-0 h-full w-full",
145
- children: /* @__PURE__ */ r(
146
- v,
130
+ children: /* @__PURE__ */ s(
131
+ N,
147
132
  {
148
- ref: s,
149
- className: n("aspect-square h-full w-full", o),
133
+ ref: n,
134
+ className: r("aspect-square h-full w-full", o),
150
135
  ...a
151
136
  }
152
137
  )
153
138
  }
154
139
  ));
155
- L.displayName = v.displayName;
156
- const S = g.forwardRef(({ className: o, colorSeed: a, children: s, ...e }, l) => {
157
- const t = typeof s == "string" ? s : "", i = j(a ?? t), d = t.length === 1 ? "tracking-wide" : "tracking-normal";
158
- return /* @__PURE__ */ r(
159
- N,
140
+ I.displayName = N.displayName;
141
+ const L = i.forwardRef(({ className: o, colorSeed: a, children: n, ...e }, l) => {
142
+ const t = typeof n == "string" ? n : "", d = j(a ?? t), c = i.useContext(A), u = c === "square" ? "rounded-ds-none" : c === "rounded" ? "rounded-ds-md" : "rounded-ds-full", m = t.length === 1 ? "tracking-wide" : "tracking-normal";
143
+ return /* @__PURE__ */ s(
144
+ k,
160
145
  {
161
146
  ref: l,
162
147
  "data-slot": "avatar-fallback",
163
- className: n(
164
- "flex h-full w-full items-center justify-center font-semibold",
165
- i.bg,
166
- i.text,
167
- d,
148
+ className: r(
149
+ "flex h-full w-full items-center justify-center",
150
+ u,
151
+ d.bg,
152
+ d.text,
153
+ m,
168
154
  o
169
155
  ),
170
156
  ...e,
171
- children: s
157
+ children: n
172
158
  }
173
159
  );
174
160
  });
175
- S.displayName = N.displayName;
161
+ L.displayName = k.displayName;
176
162
  export {
177
- I as Avatar,
178
- S as AvatarFallback,
179
- L as AvatarImage,
180
- p as avatarVariants
163
+ q as Avatar,
164
+ L as AvatarFallback,
165
+ I as AvatarImage,
166
+ x as avatarVariants
181
167
  };
package/dist/ui/badge.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
3
- import { IconX as d } from "@tabler/icons-react";
3
+ import { IconX as g } from "@tabler/icons-react";
4
4
  import * as b from "react";
5
5
  import { ag as m } from "../_chunks/vendor-utils.js";
6
6
  import { cn as u } from "./lib/utils.js";
7
7
  import { m as f } from "../_chunks/framer.js";
8
8
  const x = m(
9
- "inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border",
9
+ "inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border transition-colors duration-fast-01 ease-productive-standard",
10
10
  {
11
11
  variants: {
12
12
  variant: {
@@ -100,7 +100,7 @@ const x = m(
100
100
  }
101
101
  }
102
102
  ), v = b.forwardRef(
103
- ({ className: o, variant: s, color: n, size: c, dot: l, onDismiss: r, children: e, ...i }, g) => /* @__PURE__ */ t("span", { ref: g, className: u(x({ variant: s, color: n, size: c }), o), ...i, children: [
103
+ ({ className: o, variant: s, color: n, size: c, dot: l, onDismiss: r, children: e, ...i }, d) => /* @__PURE__ */ t("span", { ref: d, className: u(x({ variant: s, color: n, size: c }), o), ...i, children: [
104
104
  l && /* @__PURE__ */ t("span", { className: "relative inline-flex h-ds-02b w-ds-02b shrink-0", "aria-hidden": "true", children: [
105
105
  /* @__PURE__ */ a(
106
106
  f.span,
@@ -118,9 +118,9 @@ const x = m(
118
118
  {
119
119
  type: "button",
120
120
  onClick: r,
121
- className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-surface-fg-subtle hover:rotate-90 transition-[color,transform] duration-fast-02 hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
121
+ className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-current/60 hover:text-current hover:bg-current/10 transition-[color,background-color,transform] duration-fast-02 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
122
122
  "aria-label": `Remove ${typeof e == "string" ? e : ""}`.trim() || "Remove",
123
- children: /* @__PURE__ */ a(d, { className: "h-ico-sm w-ico-sm" })
123
+ children: /* @__PURE__ */ a(g, { className: "h-ico-sm w-ico-sm" })
124
124
  }
125
125
  )
126
126
  ] })
package/dist/ui/banner.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
3
- import { IconInfoCircle as n, IconAlertCircle as p, IconAlertTriangle as x, IconCircleCheck as v, IconX as w } from "@tabler/icons-react";
2
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
3
+ import { IconInfoCircle as n, IconAlertCircle as h, IconAlertTriangle as x, IconCircleCheck as v, IconX as w } from "@tabler/icons-react";
4
4
  import * as r from "react";
5
- import { ag as k } from "../_chunks/vendor-utils.js";
6
- import { cn as N } from "./lib/utils.js";
7
- import { springs as I, motionProps as C } from "./lib/motion.js";
8
- import { A as y, m as A } from "../_chunks/framer.js";
9
- const _ = k(
5
+ import { ag as N } from "../_chunks/vendor-utils.js";
6
+ import { cn as I } from "./lib/utils.js";
7
+ import { springs as C, motionProps as y } from "./lib/motion.js";
8
+ import { A as k, m as A } from "../_chunks/framer.js";
9
+ const _ = N(
10
10
  "flex flex-wrap items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
11
11
  {
12
12
  variants: {
@@ -24,33 +24,33 @@ const _ = k(
24
24
  info: n,
25
25
  success: v,
26
26
  warning: x,
27
- error: p,
27
+ error: h,
28
28
  neutral: n
29
29
  }, j = r.forwardRef(
30
- ({ className: t, color: s = "info", action: a, actions: c, onDismiss: o, children: l, ...d }, m) => {
31
- const i = c ?? a, f = V[s ?? "info"], [u, b] = r.useState(!0), g = r.useCallback(() => {
30
+ ({ className: i, color: s = "info", action: a, actions: c, onDismiss: o, children: d, ...l }, m) => {
31
+ const t = c ?? a, u = V[s ?? "info"], [f, b] = r.useState(!0), g = r.useCallback(() => {
32
32
  b(!1);
33
33
  }, []);
34
- return /* @__PURE__ */ e(y, { onExitComplete: o, children: u && /* @__PURE__ */ h(
34
+ return /* @__PURE__ */ e(k, { onExitComplete: o, children: f && /* @__PURE__ */ p(
35
35
  A.div,
36
36
  {
37
37
  ref: m,
38
38
  initial: { height: "auto", opacity: 1 },
39
39
  exit: { height: 0, opacity: 0 },
40
- transition: I.snappy,
41
- className: N(_({ color: s }), "overflow-hidden", t),
40
+ transition: C.snappy,
41
+ className: I(_({ color: s }), "overflow-hidden", i),
42
42
  role: "alert",
43
- ...C(d),
43
+ ...y(l),
44
44
  children: [
45
- /* @__PURE__ */ e(f, { className: "h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
46
- /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
47
- i && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-ds-02 [&_button]:transition-colors [&_button]:duration-150 [&_button:hover]:bg-black/10 [&_button:hover]:dark:bg-white/10", children: i }),
45
+ /* @__PURE__ */ e(u, { className: "h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
46
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: d }),
47
+ t && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-ds-02 [&_button]:transition-colors [&_button]:duration-moderate-01 [&_button]:ease-productive-standard [&_button:hover]:bg-current/10", children: t }),
48
48
  o && /* @__PURE__ */ e(
49
49
  "button",
50
50
  {
51
51
  type: "button",
52
52
  onClick: g,
53
- className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-150 hover:bg-black/10 dark:hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
53
+ className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-moderate-01 ease-productive-standard hover:bg-current/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
54
54
  "aria-label": "Dismiss",
55
55
  children: /* @__PURE__ */ e(w, { className: "h-ico-sm w-ico-sm" })
56
56
  }
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as s, jsxs as i } from "react/jsx-runtime";
3
- import { S as t } from "../_chunks/primitives.js";
4
- import { IconDots as n, IconChevronRight as d } from "@tabler/icons-react";
5
- import * as o from "react";
2
+ import { jsx as s, jsxs as t } from "react/jsx-runtime";
3
+ import { S as c } from "../_chunks/primitives.js";
4
+ import { IconDots as d, IconChevronRight as n } from "@tabler/icons-react";
5
+ import * as i from "react";
6
6
  import { cn as m } from "./lib/utils.js";
7
- const l = o.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
7
+ const l = i.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
8
8
  l.displayName = "Breadcrumb";
9
- const f = o.forwardRef(
9
+ const u = i.forwardRef(
10
10
  ({ className: e, ...r }, a) => /* @__PURE__ */ s(
11
11
  "ol",
12
12
  {
@@ -19,30 +19,30 @@ const f = o.forwardRef(
19
19
  }
20
20
  )
21
21
  );
22
- f.displayName = "BreadcrumbList";
23
- const p = o.forwardRef(
24
- ({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-02b", e), ...r })
22
+ u.displayName = "BreadcrumbList";
23
+ const f = i.forwardRef(
24
+ ({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-03", e), ...r })
25
25
  );
26
- p.displayName = "BreadcrumbItem";
27
- const u = o.forwardRef(({ className: e, asChild: r = !1, ...a }, c) => /* @__PURE__ */ s(
28
- r ? t : "a",
26
+ f.displayName = "BreadcrumbItem";
27
+ const p = i.forwardRef(({ className: e, asChild: r = !1, ...a }, o) => /* @__PURE__ */ s(
28
+ r ? c : "a",
29
29
  {
30
- ref: c,
30
+ ref: o,
31
31
  className: m(
32
- "transition-colors hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
32
+ "transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
33
33
  e
34
34
  ),
35
35
  ...a
36
36
  }
37
37
  ));
38
- u.displayName = "BreadcrumbLink";
39
- const b = o.forwardRef(
38
+ p.displayName = "BreadcrumbLink";
39
+ const b = i.forwardRef(
40
40
  ({ className: e, ...r }, a) => /* @__PURE__ */ s(
41
41
  "span",
42
42
  {
43
43
  ref: a,
44
44
  "aria-current": "page",
45
- className: m("font-normal text-surface-fg", e),
45
+ className: m("font-medium text-surface-fg", e),
46
46
  ...r
47
47
  }
48
48
  )
@@ -55,11 +55,11 @@ const N = ({ children: e, className: r, ...a }) => /* @__PURE__ */ s(
55
55
  "aria-hidden": "true",
56
56
  className: m("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", r),
57
57
  ...a,
58
- children: e ?? /* @__PURE__ */ s(d, {})
58
+ children: e ?? /* @__PURE__ */ s(n, {})
59
59
  }
60
60
  );
61
61
  N.displayName = "BreadcrumbSeparator";
62
- const g = ({ className: e, ...r }) => /* @__PURE__ */ i(
62
+ const g = ({ className: e, ...r }) => /* @__PURE__ */ t(
63
63
  "span",
64
64
  {
65
65
  role: "presentation",
@@ -67,7 +67,7 @@ const g = ({ className: e, ...r }) => /* @__PURE__ */ i(
67
67
  className: m("flex h-ds-sm-plus w-ds-sm-plus items-center justify-center", e),
68
68
  ...r,
69
69
  children: [
70
- /* @__PURE__ */ s(n, { className: "h-ico-sm w-ico-sm" }),
70
+ /* @__PURE__ */ s(d, { className: "h-ico-sm w-ico-sm" }),
71
71
  /* @__PURE__ */ s("span", { className: "sr-only", children: "More" })
72
72
  ]
73
73
  }
@@ -76,9 +76,9 @@ g.displayName = "BreadcrumbEllipsis";
76
76
  export {
77
77
  l as Breadcrumb,
78
78
  g as BreadcrumbEllipsis,
79
- p as BreadcrumbItem,
80
- u as BreadcrumbLink,
81
- f as BreadcrumbList,
79
+ f as BreadcrumbItem,
80
+ p as BreadcrumbLink,
81
+ u as BreadcrumbList,
82
82
  b as BreadcrumbPage,
83
83
  N as BreadcrumbSeparator
84
84
  };