@devalok/shilp-sutra 0.8.3 → 0.9.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 (217) hide show
  1. package/dist/_chunks/avatar.js +50 -0
  2. package/dist/_chunks/button.js +95 -0
  3. package/dist/_chunks/card.js +40 -0
  4. package/dist/_chunks/checkbox.js +14 -0
  5. package/dist/_chunks/form.js +27 -0
  6. package/dist/_chunks/primitives.js +6965 -0
  7. package/dist/_chunks/sidebar.js +592 -0
  8. package/dist/_chunks/spinner.js +34 -0
  9. package/dist/_chunks/tiptap.js +15254 -0
  10. package/dist/_chunks/tooltip.js +13 -0
  11. package/dist/_chunks/tree-view.js +304 -0
  12. package/dist/_chunks/use-calendar.js +990 -0
  13. package/dist/_chunks/utils.js +15 -0
  14. package/dist/_chunks/vendor.js +5823 -0
  15. package/dist/composed/avatar-group.js +20 -20
  16. package/dist/composed/command-palette.js +1 -1
  17. package/dist/composed/confirm-dialog.js +5 -5
  18. package/dist/composed/content-card.d.ts +1 -1
  19. package/dist/composed/content-card.js +6 -6
  20. package/dist/composed/date-picker/index.js +13 -0
  21. package/dist/composed/empty-state.js +10 -10
  22. package/dist/composed/error-boundary.js +2 -2
  23. package/dist/composed/global-loading.js +4 -4
  24. package/dist/composed/index.js +45 -53
  25. package/dist/composed/loading-skeleton.js +2 -2
  26. package/dist/composed/member-picker.js +5 -5
  27. package/dist/composed/page-header.js +4 -4
  28. package/dist/composed/page-skeletons.js +1 -1
  29. package/dist/composed/priority-indicator.js +6 -6
  30. package/dist/composed/rich-text-editor.js +422 -209
  31. package/dist/composed/schedule-view.js +1 -1
  32. package/dist/composed/simple-tooltip.js +6 -6
  33. package/dist/composed/status-badge.d.ts +1 -1
  34. package/dist/composed/status-badge.js +2 -2
  35. package/dist/shell/bottom-navbar.js +1 -1
  36. package/dist/shell/notification-center.js +2 -2
  37. package/dist/shell/notification-preferences.js +32 -33
  38. package/dist/shell/sidebar.js +24 -24
  39. package/dist/shell/top-bar.js +22 -22
  40. package/dist/ui/accordion.js +17 -17
  41. package/dist/ui/alert-dialog.js +29 -29
  42. package/dist/ui/alert.d.ts +2 -2
  43. package/dist/ui/alert.js +65 -44
  44. package/dist/ui/aspect-ratio.js +1 -1
  45. package/dist/ui/autocomplete.js +11 -11
  46. package/dist/ui/avatar.d.ts +1 -1
  47. package/dist/ui/avatar.js +67 -25
  48. package/dist/ui/badge.d.ts +2 -2
  49. package/dist/ui/badge.js +115 -91
  50. package/dist/ui/banner.d.ts +1 -1
  51. package/dist/ui/banner.js +5 -5
  52. package/dist/ui/breadcrumb.js +14 -14
  53. package/dist/ui/button-group.js +30 -15
  54. package/dist/ui/button.d.ts +2 -2
  55. package/dist/ui/button.js +114 -71
  56. package/dist/ui/card.js +66 -22
  57. package/dist/ui/charts/index.js +1221 -18
  58. package/dist/ui/checkbox.js +25 -5
  59. package/dist/ui/chip.d.ts +4 -4
  60. package/dist/ui/chip.js +2 -2
  61. package/dist/ui/code.js +1 -1
  62. package/dist/ui/collapsible.js +5 -5
  63. package/dist/ui/color-input.js +11 -11
  64. package/dist/ui/combobox.js +12 -12
  65. package/dist/ui/container.js +4 -4
  66. package/dist/ui/context-menu.js +37 -37
  67. package/dist/ui/data-table-toolbar.js +18 -18
  68. package/dist/ui/data-table.js +2 -2
  69. package/dist/ui/dialog.js +33 -33
  70. package/dist/ui/dropdown-menu.js +60 -60
  71. package/dist/ui/file-upload.js +1 -1
  72. package/dist/ui/form.js +36 -15
  73. package/dist/ui/hover-card.js +7 -7
  74. package/dist/ui/icon-button.js +9 -9
  75. package/dist/ui/index.js +523 -325
  76. package/dist/ui/input-otp.d.ts +2 -2
  77. package/dist/ui/input-otp.js +14 -14
  78. package/dist/ui/input.js +56 -28
  79. package/dist/ui/label.js +18 -4
  80. package/dist/ui/lib/utils.js +4 -5
  81. package/dist/ui/link.js +9 -9
  82. package/dist/ui/menubar.js +81 -81
  83. package/dist/ui/navigation-menu.js +42 -42
  84. package/dist/ui/number-input.js +13 -13
  85. package/dist/ui/pagination.js +5 -5
  86. package/dist/ui/popover.js +9 -9
  87. package/dist/ui/progress.d.ts +1 -1
  88. package/dist/ui/progress.js +15 -15
  89. package/dist/ui/radio.js +10 -10
  90. package/dist/ui/search-input.js +5 -5
  91. package/dist/ui/segmented-control.js +91 -83
  92. package/dist/ui/select.js +52 -52
  93. package/dist/ui/separator.js +20 -5
  94. package/dist/ui/sheet.js +28 -28
  95. package/dist/ui/sidebar.js +36 -560
  96. package/dist/ui/skeleton.d.ts +1 -1
  97. package/dist/ui/skeleton.js +9 -9
  98. package/dist/ui/slider.js +11 -11
  99. package/dist/ui/spinner.js +37 -2
  100. package/dist/ui/stack.js +1 -1
  101. package/dist/ui/stat-card.js +1 -1
  102. package/dist/ui/stepper.js +15 -15
  103. package/dist/ui/switch.js +22 -3
  104. package/dist/ui/table.js +1 -1
  105. package/dist/ui/tabs.js +59 -32
  106. package/dist/ui/text.js +2 -2
  107. package/dist/ui/textarea.js +7 -7
  108. package/dist/ui/toast.d.ts +1 -1
  109. package/dist/ui/toast.js +28 -28
  110. package/dist/ui/toggle-group.js +11 -11
  111. package/dist/ui/toggle.js +9 -9
  112. package/dist/ui/tooltip.js +17 -6
  113. package/dist/ui/transitions.js +68 -58
  114. package/dist/ui/tree-view/index.js +7 -0
  115. package/dist/ui/visually-hidden.js +3 -3
  116. package/llms-full.txt +1 -1
  117. package/llms.txt +7 -0
  118. package/package.json +656 -701
  119. package/dist/_virtual/client.js +0 -5
  120. package/dist/_virtual/index.js +0 -5
  121. package/dist/_virtual/react-dom-client.development.js +0 -5
  122. package/dist/_virtual/react-dom-client.production.js +0 -5
  123. package/dist/_virtual/scheduler.development.js +0 -5
  124. package/dist/_virtual/scheduler.production.js +0 -5
  125. package/dist/composed/date-picker/calendar-grid.js +0 -194
  126. package/dist/composed/date-picker/date-picker.js +0 -124
  127. package/dist/composed/date-picker/date-range-picker.js +0 -167
  128. package/dist/composed/date-picker/date-time-picker.js +0 -193
  129. package/dist/composed/date-picker/month-picker.js +0 -53
  130. package/dist/composed/date-picker/presets.js +0 -84
  131. package/dist/composed/date-picker/time-picker.js +0 -181
  132. package/dist/composed/date-picker/use-calendar.js +0 -17
  133. package/dist/composed/date-picker/year-picker.js +0 -45
  134. package/dist/composed/extensions/emoji-suggestion.js +0 -119
  135. package/dist/composed/extensions/file-attachment.js +0 -55
  136. package/dist/composed/extensions/mention-suggestion.js +0 -79
  137. package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
  138. package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +0 -17
  139. package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
  140. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
  141. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
  142. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
  143. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
  144. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
  145. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
  146. package/dist/primitives/_internal/number.js +0 -6
  147. package/dist/primitives/_internal/primitive.js +0 -9
  148. package/dist/primitives/_internal/react-arrow.js +0 -13
  149. package/dist/primitives/_internal/react-collection.js +0 -48
  150. package/dist/primitives/_internal/react-compose-refs.js +0 -29
  151. package/dist/primitives/_internal/react-context.js +0 -76
  152. package/dist/primitives/_internal/react-direction.js +0 -10
  153. package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
  154. package/dist/primitives/_internal/react-focus-guards.js +0 -17
  155. package/dist/primitives/_internal/react-focus-scope.js +0 -137
  156. package/dist/primitives/_internal/react-id.js +0 -14
  157. package/dist/primitives/_internal/react-popper.js +0 -137
  158. package/dist/primitives/_internal/react-portal.js +0 -16
  159. package/dist/primitives/_internal/react-presence.js +0 -71
  160. package/dist/primitives/_internal/react-primitive.js +0 -36
  161. package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
  162. package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
  163. package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
  164. package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
  165. package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
  166. package/dist/primitives/_internal/react-use-previous.js +0 -8
  167. package/dist/primitives/_internal/react-use-size.js +0 -27
  168. package/dist/primitives/react-accordion.js +0 -239
  169. package/dist/primitives/react-alert-dialog.js +0 -127
  170. package/dist/primitives/react-aspect-ratio.js +0 -43
  171. package/dist/primitives/react-avatar.js +0 -75
  172. package/dist/primitives/react-checkbox.js +0 -251
  173. package/dist/primitives/react-collapsible.js +0 -120
  174. package/dist/primitives/react-context-menu.js +0 -240
  175. package/dist/primitives/react-dialog.js +0 -262
  176. package/dist/primitives/react-dropdown-menu.js +0 -227
  177. package/dist/primitives/react-hover-card.js +0 -187
  178. package/dist/primitives/react-label.js +0 -20
  179. package/dist/primitives/react-menu.js +0 -652
  180. package/dist/primitives/react-menubar.js +0 -355
  181. package/dist/primitives/react-navigation-menu.js +0 -607
  182. package/dist/primitives/react-popover.js +0 -243
  183. package/dist/primitives/react-progress.js +0 -84
  184. package/dist/primitives/react-radio-group.js +0 -238
  185. package/dist/primitives/react-roving-focus.js +0 -183
  186. package/dist/primitives/react-select.js +0 -862
  187. package/dist/primitives/react-separator.js +0 -24
  188. package/dist/primitives/react-slider.js +0 -437
  189. package/dist/primitives/react-slot.js +0 -70
  190. package/dist/primitives/react-switch.js +0 -132
  191. package/dist/primitives/react-tabs.js +0 -163
  192. package/dist/primitives/react-toast.js +0 -446
  193. package/dist/primitives/react-toggle-group.js +0 -137
  194. package/dist/primitives/react-toggle.js +0 -33
  195. package/dist/primitives/react-tooltip.js +0 -338
  196. package/dist/primitives/react-visually-hidden.js +0 -32
  197. package/dist/ui/charts/_internal/animation.js +0 -18
  198. package/dist/ui/charts/_internal/axes.js +0 -42
  199. package/dist/ui/charts/_internal/colors.js +0 -21
  200. package/dist/ui/charts/_internal/grid-lines.js +0 -43
  201. package/dist/ui/charts/_internal/legend.js +0 -29
  202. package/dist/ui/charts/_internal/tooltip.js +0 -39
  203. package/dist/ui/charts/_internal/types.js +0 -10
  204. package/dist/ui/charts/area-chart.js +0 -245
  205. package/dist/ui/charts/bar-chart.js +0 -153
  206. package/dist/ui/charts/chart-container.js +0 -27
  207. package/dist/ui/charts/gauge-chart.js +0 -72
  208. package/dist/ui/charts/line-chart.js +0 -163
  209. package/dist/ui/charts/pie-chart.js +0 -132
  210. package/dist/ui/charts/radar-chart.js +0 -223
  211. package/dist/ui/charts/sparkline.js +0 -124
  212. package/dist/ui/lib/motion.js +0 -32
  213. package/dist/ui/lib/use-reduced-motion.js +0 -15
  214. package/dist/ui/lib/use-ripple.js +0 -14
  215. package/dist/ui/tree-view/tree-item.js +0 -139
  216. package/dist/ui/tree-view/tree-view.js +0 -140
  217. package/dist/ui/tree-view/use-tree.js +0 -38
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as p } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { Root as g, Portal as x, Trigger as y, Action as l, Cancel as r, Content as d, Description as n, Overlay as c, Title as f } from "../primitives/react-alert-dialog.js";
5
- import { cn as i } from "./lib/utils.js";
6
- const C = g, z = y, b = x, m = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
7
- c,
2
+ import { jsx as s, jsxs as p } from "react/jsx-runtime";
3
+ import * as o from "react";
4
+ import { O as l, J as g, K as d, M as r, N as n, Q as c, U as f, V as x, W as b } from "../_chunks/primitives.js";
5
+ import { c as i } from "../_chunks/utils.js";
6
+ const C = x, T = b, y = g, m = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
7
+ l,
8
8
  {
9
9
  ref: a,
10
10
  className: i(
@@ -14,10 +14,10 @@ const C = g, z = y, b = x, m = s.forwardRef(({ className: e, ...t }, a) => /* @_
14
14
  ...t
15
15
  }
16
16
  ));
17
- m.displayName = c.displayName;
18
- const u = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ p(b, { children: [
19
- /* @__PURE__ */ o(m, {}),
20
- /* @__PURE__ */ o(
17
+ m.displayName = l.displayName;
18
+ const u = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ p(y, { children: [
19
+ /* @__PURE__ */ s(m, {}),
20
+ /* @__PURE__ */ s(
21
21
  d,
22
22
  {
23
23
  ref: a,
@@ -30,8 +30,8 @@ const u = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ p(b, { chi
30
30
  )
31
31
  ] }));
32
32
  u.displayName = d.displayName;
33
- const v = s.forwardRef(
34
- ({ className: e, ...t }, a) => /* @__PURE__ */ o(
33
+ const v = o.forwardRef(
34
+ ({ className: e, ...t }, a) => /* @__PURE__ */ s(
35
35
  "div",
36
36
  {
37
37
  ref: a,
@@ -44,8 +44,8 @@ const v = s.forwardRef(
44
44
  )
45
45
  );
46
46
  v.displayName = "AlertDialogHeader";
47
- const N = s.forwardRef(
48
- ({ className: e, ...t }, a) => /* @__PURE__ */ o(
47
+ const N = o.forwardRef(
48
+ ({ className: e, ...t }, a) => /* @__PURE__ */ s(
49
49
  "div",
50
50
  {
51
51
  ref: a,
@@ -58,8 +58,8 @@ const N = s.forwardRef(
58
58
  )
59
59
  );
60
60
  N.displayName = "AlertDialogFooter";
61
- const D = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
62
- f,
61
+ const A = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
62
+ r,
63
63
  {
64
64
  ref: a,
65
65
  className: i(
@@ -69,8 +69,8 @@ const D = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
69
69
  ...t
70
70
  }
71
71
  ));
72
- D.displayName = f.displayName;
73
- const A = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
72
+ A.displayName = r.displayName;
73
+ const D = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
74
74
  n,
75
75
  {
76
76
  ref: a,
@@ -78,9 +78,9 @@ const A = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
78
78
  ...t
79
79
  }
80
80
  ));
81
- A.displayName = n.displayName;
82
- const w = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
83
- l,
81
+ D.displayName = n.displayName;
82
+ const w = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
83
+ c,
84
84
  {
85
85
  ref: a,
86
86
  className: i(
@@ -90,9 +90,9 @@ const w = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
90
90
  ...t
91
91
  }
92
92
  ));
93
- w.displayName = l.displayName;
94
- const R = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
95
- r,
93
+ w.displayName = c.displayName;
94
+ const R = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
95
+ f,
96
96
  {
97
97
  ref: a,
98
98
  className: i(
@@ -102,17 +102,17 @@ const R = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
102
102
  ...t
103
103
  }
104
104
  ));
105
- R.displayName = r.displayName;
105
+ R.displayName = f.displayName;
106
106
  export {
107
107
  C as AlertDialog,
108
108
  w as AlertDialogAction,
109
109
  R as AlertDialogCancel,
110
110
  u as AlertDialogContent,
111
- A as AlertDialogDescription,
111
+ D as AlertDialogDescription,
112
112
  N as AlertDialogFooter,
113
113
  v as AlertDialogHeader,
114
114
  m as AlertDialogOverlay,
115
- b as AlertDialogPortal,
116
- D as AlertDialogTitle,
117
- z as AlertDialogTrigger
115
+ y as AlertDialogPortal,
116
+ A as AlertDialogTitle,
117
+ T as AlertDialogTrigger
118
118
  };
@@ -2,8 +2,8 @@
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const alertVariants: (props?: ({
5
- variant?: "outline" | "filled" | "subtle" | null | undefined;
6
- color?: "error" | "warning" | "success" | "neutral" | "info" | null | undefined;
5
+ variant?: "filled" | "subtle" | "outline" | null | undefined;
6
+ color?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  /**
9
9
  * Props for Alert — an inline message block with a colored icon, optional title, optional body,
package/dist/ui/alert.js CHANGED
@@ -2,56 +2,77 @@
2
2
  import { jsxs as a, jsx as r } from "react/jsx-runtime";
3
3
  import { IconInfoCircle as s, IconAlertCircle as x, IconAlertTriangle as m, IconCircleCheck as u, IconX as f } from "@tabler/icons-react";
4
4
  import * as g from "react";
5
- import { cva as v } from "class-variance-authority";
6
- import { cn as p } from "./lib/utils.js";
7
- const N = v("relative flex gap-ds-04 rounded-ds-lg border p-ds-05", {
8
- variants: {
9
- variant: {
10
- subtle: "",
11
- filled: "",
12
- outline: ""
5
+ import { m as v } from "../_chunks/vendor.js";
6
+ import { c as p } from "../_chunks/utils.js";
7
+ const N = v(
8
+ "relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ subtle: "",
13
+ filled: "",
14
+ outline: ""
15
+ },
16
+ color: {
17
+ info: "",
18
+ success: "",
19
+ warning: "",
20
+ error: "",
21
+ neutral: ""
22
+ }
13
23
  },
14
- color: {
15
- info: "",
16
- success: "",
17
- warning: "",
18
- error: "",
19
- neutral: ""
20
- }
21
- },
22
- compoundVariants: [
23
- // subtle (surface bg) default, matches previous behavior
24
- { variant: "subtle", color: "info", className: "bg-info-surface border-info-border text-info-text" },
25
- { variant: "subtle", color: "success", className: "bg-success-surface border-success-border text-success-text" },
26
- { variant: "subtle", color: "warning", className: "bg-warning-surface border-warning-border text-warning-text" },
27
- { variant: "subtle", color: "error", className: "bg-error-surface border-error-border text-error-text" },
28
- { variant: "subtle", color: "neutral", className: "bg-layer-02 border-border text-text-primary [&>svg]:text-text-secondary" },
29
- // filled (solid bg, white text)
30
- { variant: "filled", color: "info", className: "bg-info text-text-on-color border-transparent [&>svg]:text-text-on-color" },
31
- { variant: "filled", color: "success", className: "bg-success text-text-on-color border-transparent [&>svg]:text-text-on-color" },
32
- { variant: "filled", color: "warning", className: "bg-warning text-text-on-color border-transparent [&>svg]:text-text-on-color" },
33
- { variant: "filled", color: "error", className: "bg-error text-text-on-color border-transparent [&>svg]:text-text-on-color" },
34
- { variant: "filled", color: "neutral", className: "bg-layer-03 text-text-primary border-transparent [&>svg]:text-text-secondary" },
35
- // outline (transparent bg, colored border)
36
- { variant: "outline", color: "info", className: "bg-transparent border-info-border text-info-text" },
37
- { variant: "outline", color: "success", className: "bg-transparent border-success-border text-success-text" },
38
- { variant: "outline", color: "warning", className: "bg-transparent border-warning-border text-warning-text" },
39
- { variant: "outline", color: "error", className: "bg-transparent border-error-border text-error-text" },
40
- { variant: "outline", color: "neutral", className: "bg-transparent border-border text-text-primary [&>svg]:text-text-secondary" }
41
- ],
42
- defaultVariants: { variant: "subtle", color: "info" }
43
- }), w = {
24
+ compoundVariants: [
25
+ // subtle (surface bg) — default, matches previous behavior
26
+ { variant: "subtle", color: "info", className: "bg-info-surface border-info-border text-info-text" },
27
+ { variant: "subtle", color: "success", className: "bg-success-surface border-success-border text-success-text" },
28
+ { variant: "subtle", color: "warning", className: "bg-warning-surface border-warning-border text-warning-text" },
29
+ { variant: "subtle", color: "error", className: "bg-error-surface border-error-border text-error-text" },
30
+ { variant: "subtle", color: "neutral", className: "bg-layer-02 border-border text-text-primary [&>svg]:text-text-secondary" },
31
+ // filled (solid bg, white text)
32
+ { variant: "filled", color: "info", className: "bg-info text-text-on-color border-transparent [&>svg]:text-text-on-color" },
33
+ { variant: "filled", color: "success", className: "bg-success text-text-on-color border-transparent [&>svg]:text-text-on-color" },
34
+ { variant: "filled", color: "warning", className: "bg-warning text-text-on-color border-transparent [&>svg]:text-text-on-color" },
35
+ { variant: "filled", color: "error", className: "bg-error text-text-on-color border-transparent [&>svg]:text-text-on-color" },
36
+ { variant: "filled", color: "neutral", className: "bg-layer-03 text-text-primary border-transparent [&>svg]:text-text-secondary" },
37
+ // outline (transparent bg, colored border)
38
+ { variant: "outline", color: "info", className: "bg-transparent border-info-border text-info-text" },
39
+ { variant: "outline", color: "success", className: "bg-transparent border-success-border text-success-text" },
40
+ { variant: "outline", color: "warning", className: "bg-transparent border-warning-border text-warning-text" },
41
+ { variant: "outline", color: "error", className: "bg-transparent border-error-border text-error-text" },
42
+ { variant: "outline", color: "neutral", className: "bg-transparent border-border text-text-primary [&>svg]:text-text-secondary" }
43
+ ],
44
+ defaultVariants: { variant: "subtle", color: "info" }
45
+ }
46
+ ), w = {
44
47
  info: s,
45
48
  success: u,
46
49
  warning: m,
47
50
  error: x,
48
51
  neutral: s
49
- }, h = g.forwardRef(({ className: n, variant: c = "subtle", color: e = "info", title: t, onDismiss: o, children: i, ...l }, d) => {
50
- const b = w[e ?? "info"];
51
- return a("div", { ref: d, className: p(N({ variant: c, color: e }), n), role: "alert", ...l, children: [r(b, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }), a("div", { className: "flex-1 min-w-0", children: [t && r("p", { className: "text-ds-md font-semibold mb-ds-01", children: t }), r("div", { className: "text-ds-md opacity-[0.9]", children: i })] }), o && r("button", { type: "button", onClick: o, 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", "aria-label": "Dismiss", children: r(f, { className: "h-ico-sm w-ico-sm" }) })] });
52
- });
53
- h.displayName = "Alert";
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 })
60
+ ] }),
61
+ o && /* @__PURE__ */ r(
62
+ "button",
63
+ {
64
+ type: "button",
65
+ onClick: o,
66
+ 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
+ "aria-label": "Dismiss",
68
+ children: /* @__PURE__ */ r(f, { className: "h-ico-sm w-ico-sm" })
69
+ }
70
+ )
71
+ ] });
72
+ }
73
+ );
74
+ y.displayName = "Alert";
54
75
  export {
55
- h as Alert,
76
+ y as Alert,
56
77
  N as alertVariants
57
78
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Root as o } from "../primitives/react-aspect-ratio.js";
2
+ import { f as o } from "../_chunks/primitives.js";
3
3
  const t = o;
4
4
  t.displayName = "AspectRatio";
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as O, jsx as p } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
- import { cn as b } from "./lib/utils.js";
4
+ import { c as b } from "../_chunks/utils.js";
5
5
  const T = t.forwardRef(
6
6
  ({
7
7
  options: x,
@@ -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, l] = t.useState(!1), [r, a] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), y = t.useRef(), M = t.useCallback(
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(
17
17
  (e) => {
18
18
  $.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
19
19
  },
@@ -27,27 +27,27 @@ const T = t.forwardRef(
27
27
  [x, f]
28
28
  ), m = t.useCallback(
29
29
  (e) => {
30
- g(e.label), l(!1), a(-1), u == null || u(e);
30
+ g(e.label), a(!1), l(-1), u == null || u(e);
31
31
  },
32
32
  [u]
33
33
  ), S = t.useCallback(
34
34
  (e) => {
35
35
  if (!c) {
36
- (e.key === "ArrowDown" || e.key === "Enter") && l(!0);
36
+ (e.key === "ArrowDown" || e.key === "Enter") && a(!0);
37
37
  return;
38
38
  }
39
39
  switch (e.key) {
40
40
  case "ArrowDown":
41
- e.preventDefault(), a((s) => Math.min(s + 1, n.length - 1));
41
+ e.preventDefault(), l((s) => Math.min(s + 1, n.length - 1));
42
42
  break;
43
43
  case "ArrowUp":
44
- e.preventDefault(), a((s) => Math.max(s - 1, 0));
44
+ e.preventDefault(), l((s) => Math.max(s - 1, 0));
45
45
  break;
46
46
  case "Enter":
47
47
  e.preventDefault(), r >= 0 && n[r] && m(n[r]);
48
48
  break;
49
49
  case "Escape":
50
- l(!1), a(-1);
50
+ a(!1), l(-1);
51
51
  break;
52
52
  }
53
53
  },
@@ -74,11 +74,11 @@ const T = t.forwardRef(
74
74
  h && "opacity-[var(--action-disabled-opacity,0.38)] cursor-not-allowed"
75
75
  ),
76
76
  onChange: (e) => {
77
- g(e.target.value), l(!0), a(-1);
77
+ g(e.target.value), a(!0), l(-1);
78
78
  },
79
- onFocus: () => l(!0),
79
+ onFocus: () => a(!0),
80
80
  onBlur: () => {
81
- y.current = setTimeout(() => l(!1), 150);
81
+ y.current = setTimeout(() => a(!1), 150);
82
82
  },
83
83
  onKeyDown: S
84
84
  }
@@ -109,7 +109,7 @@ const T = t.forwardRef(
109
109
  onKeyDown: (d) => {
110
110
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), m(e));
111
111
  },
112
- onMouseEnter: () => a(s),
112
+ onMouseEnter: () => l(s),
113
113
  children: e.label
114
114
  },
115
115
  e.value
@@ -4,7 +4,7 @@ import * as React from "react";
4
4
  import * as AvatarPrimitive from "../primitives/react-avatar";
5
5
  export declare const avatarVariants: (props?: ({
6
6
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
7
- shape?: "rounded" | "square" | "circle" | null | undefined;
7
+ shape?: "circle" | "square" | "rounded" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
10
10
  /**
package/dist/ui/avatar.js CHANGED
@@ -1,26 +1,29 @@
1
1
  "use client";
2
2
  import { jsxs as p, jsx as l } from "react/jsx-runtime";
3
3
  import * as i from "react";
4
- import { Root as n, Fallback as o, Image as t } from "../primitives/react-avatar.js";
5
- import { cva as u } from "class-variance-authority";
6
- import { cn as r } from "./lib/utils.js";
7
- const h = u("relative flex shrink-0 overflow-hidden", {
8
- variants: {
9
- size: {
10
- xs: "h-ds-xs w-ds-xs",
11
- sm: "h-ds-sm w-ds-sm",
12
- md: "h-ds-md w-ds-md",
13
- lg: "h-ds-lg w-ds-lg",
14
- xl: "h-ds-xl w-ds-xl"
4
+ import { R as n, I as o, F as t } from "../_chunks/primitives.js";
5
+ import { m as u } from "../_chunks/vendor.js";
6
+ import { c as r } from "../_chunks/utils.js";
7
+ const w = u(
8
+ "relative flex shrink-0 overflow-hidden",
9
+ {
10
+ variants: {
11
+ size: {
12
+ xs: "h-ds-xs w-ds-xs",
13
+ sm: "h-ds-sm w-ds-sm",
14
+ md: "h-ds-md w-ds-md",
15
+ lg: "h-ds-lg w-ds-lg",
16
+ xl: "h-ds-xl w-ds-xl"
17
+ },
18
+ shape: {
19
+ circle: "rounded-ds-full",
20
+ square: "rounded-ds-none",
21
+ rounded: "rounded-ds-md"
22
+ }
15
23
  },
16
- shape: {
17
- circle: "rounded-ds-full",
18
- square: "rounded-ds-none",
19
- rounded: "rounded-ds-md"
20
- }
21
- },
22
- defaultVariants: { size: "md", shape: "circle" }
23
- }), w = {
24
+ defaultVariants: { size: "md", shape: "circle" }
25
+ }
26
+ ), h = {
24
27
  online: "bg-success",
25
28
  offline: "bg-layer-03",
26
29
  busy: "bg-error",
@@ -36,15 +39,54 @@ const h = u("relative flex shrink-0 overflow-hidden", {
36
39
  md: "h-ds-03 w-ds-03",
37
40
  lg: "h-[12px] w-[12px]",
38
41
  xl: "h-ds-04 w-ds-04"
39
- }, g = i.forwardRef(({ className: a, size: s, shape: e, status: d, children: m, ...f }, c) => p("span", { className: "relative inline-flex shrink-0", children: [l(n, { ref: c, className: r(h({ size: s, shape: e }), a), ...f, children: m }), d && l("span", { className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-layer-01", w[d], b[s ?? "md"]), role: "img", "aria-label": x[d] })] }));
42
+ }, g = i.forwardRef(({ className: a, size: s, shape: e, status: d, children: m, ...c }, f) => /* @__PURE__ */ p("span", { className: "relative inline-flex shrink-0", children: [
43
+ /* @__PURE__ */ l(
44
+ n,
45
+ {
46
+ ref: f,
47
+ className: r(w({ size: s, shape: e }), a),
48
+ ...c,
49
+ children: m
50
+ }
51
+ ),
52
+ d && /* @__PURE__ */ l(
53
+ "span",
54
+ {
55
+ className: r(
56
+ "absolute bottom-0 right-0 rounded-ds-full ring-2 ring-layer-01",
57
+ h[d],
58
+ b[s ?? "md"]
59
+ ),
60
+ role: "img",
61
+ "aria-label": x[d]
62
+ }
63
+ )
64
+ ] }));
40
65
  g.displayName = n.displayName;
41
- const y = i.forwardRef(({ className: a, ...s }, e) => l(t, { ref: e, className: r("aspect-square h-full w-full", a), ...s }));
42
- y.displayName = t.displayName;
43
- const v = i.forwardRef(({ className: a, ...s }, e) => l(o, { ref: e, className: r("flex h-full w-full items-center justify-center rounded-ds-full bg-interactive-subtle text-interactive", a), ...s }));
44
- v.displayName = o.displayName;
66
+ const y = i.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ l(
67
+ o,
68
+ {
69
+ ref: e,
70
+ className: r("aspect-square h-full w-full", a),
71
+ ...s
72
+ }
73
+ ));
74
+ y.displayName = o.displayName;
75
+ const v = i.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ l(
76
+ t,
77
+ {
78
+ ref: e,
79
+ className: r(
80
+ "flex h-full w-full items-center justify-center rounded-ds-full bg-interactive-subtle text-interactive",
81
+ a
82
+ ),
83
+ ...s
84
+ }
85
+ ));
86
+ v.displayName = t.displayName;
45
87
  export {
46
88
  g as Avatar,
47
89
  v as AvatarFallback,
48
90
  y as AvatarImage,
49
- h as avatarVariants
91
+ w as avatarVariants
50
92
  };
@@ -2,8 +2,8 @@
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "solid" | "outline" | "destructive" | "subtle" | "secondary" | null | undefined;
6
- color?: "accent" | "default" | "error" | "warning" | "success" | "cyan" | "indigo" | "orange" | "teal" | "info" | "brand" | "amber" | "slate" | "emerald" | null | undefined;
5
+ variant?: "solid" | "subtle" | "outline" | "secondary" | "destructive" | null | undefined;
6
+ color?: "accent" | "default" | "error" | "cyan" | "indigo" | "orange" | "teal" | "info" | "success" | "warning" | "brand" | "amber" | "slate" | "emerald" | null | undefined;
7
7
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
9
  /**