@devalok/shilp-sutra 0.8.4 → 0.9.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 (218) 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-client.js +1835 -0
  15. package/dist/_chunks/vendor-utils.js +3995 -0
  16. package/dist/composed/avatar-group.js +20 -20
  17. package/dist/composed/command-palette.js +1 -1
  18. package/dist/composed/confirm-dialog.js +5 -5
  19. package/dist/composed/content-card.d.ts +1 -1
  20. package/dist/composed/content-card.js +2 -2
  21. package/dist/composed/date-picker/index.js +13 -0
  22. package/dist/composed/empty-state.js +10 -10
  23. package/dist/composed/error-boundary.js +2 -2
  24. package/dist/composed/global-loading.js +4 -4
  25. package/dist/composed/index.js +45 -53
  26. package/dist/composed/loading-skeleton.js +2 -2
  27. package/dist/composed/member-picker.js +5 -5
  28. package/dist/composed/page-header.js +4 -4
  29. package/dist/composed/page-skeletons.js +1 -1
  30. package/dist/composed/priority-indicator.js +6 -6
  31. package/dist/composed/rich-text-editor.js +422 -209
  32. package/dist/composed/schedule-view.js +1 -1
  33. package/dist/composed/simple-tooltip.js +6 -6
  34. package/dist/composed/status-badge.d.ts +1 -1
  35. package/dist/composed/status-badge.js +2 -2
  36. package/dist/shell/bottom-navbar.js +1 -1
  37. package/dist/shell/notification-center.js +2 -2
  38. package/dist/shell/notification-preferences.js +32 -33
  39. package/dist/shell/sidebar.js +24 -24
  40. package/dist/shell/top-bar.js +22 -22
  41. package/dist/ui/accordion.js +17 -17
  42. package/dist/ui/alert-dialog.js +29 -29
  43. package/dist/ui/alert.d.ts +2 -2
  44. package/dist/ui/alert.js +65 -44
  45. package/dist/ui/aspect-ratio.js +1 -1
  46. package/dist/ui/autocomplete.js +11 -11
  47. package/dist/ui/avatar.d.ts +1 -1
  48. package/dist/ui/avatar.js +67 -25
  49. package/dist/ui/badge.d.ts +2 -2
  50. package/dist/ui/badge.js +115 -91
  51. package/dist/ui/banner.d.ts +1 -1
  52. package/dist/ui/banner.js +2 -2
  53. package/dist/ui/breadcrumb.js +14 -14
  54. package/dist/ui/button-group.js +30 -15
  55. package/dist/ui/button.d.ts +2 -2
  56. package/dist/ui/button.js +114 -71
  57. package/dist/ui/card.js +66 -22
  58. package/dist/ui/charts/index.js +1221 -18
  59. package/dist/ui/checkbox.js +25 -5
  60. package/dist/ui/chip.d.ts +4 -4
  61. package/dist/ui/chip.js +2 -2
  62. package/dist/ui/code.js +1 -1
  63. package/dist/ui/collapsible.js +5 -5
  64. package/dist/ui/color-input.js +11 -11
  65. package/dist/ui/combobox.js +12 -12
  66. package/dist/ui/container.js +4 -4
  67. package/dist/ui/context-menu.js +37 -37
  68. package/dist/ui/data-table-toolbar.js +18 -18
  69. package/dist/ui/data-table.js +2 -2
  70. package/dist/ui/dialog.js +33 -33
  71. package/dist/ui/dropdown-menu.js +60 -60
  72. package/dist/ui/file-upload.js +1 -1
  73. package/dist/ui/form.js +36 -15
  74. package/dist/ui/hover-card.js +7 -7
  75. package/dist/ui/icon-button.js +9 -9
  76. package/dist/ui/index.js +523 -325
  77. package/dist/ui/input-otp.d.ts +2 -2
  78. package/dist/ui/input-otp.js +14 -14
  79. package/dist/ui/input.js +56 -28
  80. package/dist/ui/label.js +18 -4
  81. package/dist/ui/lib/utils.js +4 -5
  82. package/dist/ui/link.js +9 -9
  83. package/dist/ui/menubar.js +81 -81
  84. package/dist/ui/navigation-menu.js +42 -42
  85. package/dist/ui/number-input.js +13 -13
  86. package/dist/ui/pagination.js +5 -5
  87. package/dist/ui/popover.js +9 -9
  88. package/dist/ui/progress.d.ts +1 -1
  89. package/dist/ui/progress.js +15 -15
  90. package/dist/ui/radio.js +10 -10
  91. package/dist/ui/search-input.js +5 -5
  92. package/dist/ui/segmented-control.js +91 -83
  93. package/dist/ui/select.js +52 -52
  94. package/dist/ui/separator.js +20 -5
  95. package/dist/ui/sheet.js +28 -28
  96. package/dist/ui/sidebar.js +36 -560
  97. package/dist/ui/skeleton.d.ts +1 -1
  98. package/dist/ui/skeleton.js +7 -7
  99. package/dist/ui/slider.js +11 -11
  100. package/dist/ui/spinner.js +37 -2
  101. package/dist/ui/stack.js +1 -1
  102. package/dist/ui/stat-card.js +1 -1
  103. package/dist/ui/stepper.js +15 -15
  104. package/dist/ui/switch.js +22 -3
  105. package/dist/ui/table.js +1 -1
  106. package/dist/ui/tabs.js +59 -32
  107. package/dist/ui/text.js +2 -2
  108. package/dist/ui/textarea.js +7 -7
  109. package/dist/ui/toast.d.ts +1 -1
  110. package/dist/ui/toast.js +28 -28
  111. package/dist/ui/toggle-group.js +11 -11
  112. package/dist/ui/toggle.js +7 -7
  113. package/dist/ui/tooltip.js +17 -6
  114. package/dist/ui/transitions.js +68 -58
  115. package/dist/ui/tree-view/index.js +7 -0
  116. package/dist/ui/visually-hidden.js +3 -3
  117. package/llms-full.txt +1 -1
  118. package/llms.txt +7 -0
  119. package/package.json +656 -706
  120. package/dist/_virtual/client.js +0 -5
  121. package/dist/_virtual/index.js +0 -5
  122. package/dist/_virtual/react-dom-client.development.js +0 -5
  123. package/dist/_virtual/react-dom-client.production.js +0 -5
  124. package/dist/_virtual/scheduler.development.js +0 -5
  125. package/dist/_virtual/scheduler.production.js +0 -5
  126. package/dist/composed/date-picker/calendar-grid.js +0 -194
  127. package/dist/composed/date-picker/date-picker.js +0 -124
  128. package/dist/composed/date-picker/date-range-picker.js +0 -167
  129. package/dist/composed/date-picker/date-time-picker.js +0 -193
  130. package/dist/composed/date-picker/month-picker.js +0 -53
  131. package/dist/composed/date-picker/presets.js +0 -84
  132. package/dist/composed/date-picker/time-picker.js +0 -181
  133. package/dist/composed/date-picker/use-calendar.js +0 -17
  134. package/dist/composed/date-picker/year-picker.js +0 -45
  135. package/dist/composed/extensions/emoji-suggestion.js +0 -119
  136. package/dist/composed/extensions/file-attachment.js +0 -55
  137. package/dist/composed/extensions/mention-suggestion.js +0 -79
  138. package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
  139. 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
  140. package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
  141. 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
  142. 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
  143. package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
  144. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
  145. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
  146. package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
  147. package/dist/primitives/_internal/number.js +0 -6
  148. package/dist/primitives/_internal/primitive.js +0 -9
  149. package/dist/primitives/_internal/react-arrow.js +0 -13
  150. package/dist/primitives/_internal/react-collection.js +0 -48
  151. package/dist/primitives/_internal/react-compose-refs.js +0 -29
  152. package/dist/primitives/_internal/react-context.js +0 -76
  153. package/dist/primitives/_internal/react-direction.js +0 -10
  154. package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
  155. package/dist/primitives/_internal/react-focus-guards.js +0 -17
  156. package/dist/primitives/_internal/react-focus-scope.js +0 -137
  157. package/dist/primitives/_internal/react-id.js +0 -14
  158. package/dist/primitives/_internal/react-popper.js +0 -137
  159. package/dist/primitives/_internal/react-portal.js +0 -16
  160. package/dist/primitives/_internal/react-presence.js +0 -71
  161. package/dist/primitives/_internal/react-primitive.js +0 -36
  162. package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
  163. package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
  164. package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
  165. package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
  166. package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
  167. package/dist/primitives/_internal/react-use-previous.js +0 -8
  168. package/dist/primitives/_internal/react-use-size.js +0 -27
  169. package/dist/primitives/react-accordion.js +0 -239
  170. package/dist/primitives/react-alert-dialog.js +0 -127
  171. package/dist/primitives/react-aspect-ratio.js +0 -43
  172. package/dist/primitives/react-avatar.js +0 -75
  173. package/dist/primitives/react-checkbox.js +0 -251
  174. package/dist/primitives/react-collapsible.js +0 -120
  175. package/dist/primitives/react-context-menu.js +0 -240
  176. package/dist/primitives/react-dialog.js +0 -262
  177. package/dist/primitives/react-dropdown-menu.js +0 -227
  178. package/dist/primitives/react-hover-card.js +0 -187
  179. package/dist/primitives/react-label.js +0 -20
  180. package/dist/primitives/react-menu.js +0 -652
  181. package/dist/primitives/react-menubar.js +0 -355
  182. package/dist/primitives/react-navigation-menu.js +0 -607
  183. package/dist/primitives/react-popover.js +0 -243
  184. package/dist/primitives/react-progress.js +0 -84
  185. package/dist/primitives/react-radio-group.js +0 -238
  186. package/dist/primitives/react-roving-focus.js +0 -183
  187. package/dist/primitives/react-select.js +0 -862
  188. package/dist/primitives/react-separator.js +0 -24
  189. package/dist/primitives/react-slider.js +0 -437
  190. package/dist/primitives/react-slot.js +0 -70
  191. package/dist/primitives/react-switch.js +0 -132
  192. package/dist/primitives/react-tabs.js +0 -163
  193. package/dist/primitives/react-toast.js +0 -446
  194. package/dist/primitives/react-toggle-group.js +0 -137
  195. package/dist/primitives/react-toggle.js +0 -33
  196. package/dist/primitives/react-tooltip.js +0 -338
  197. package/dist/primitives/react-visually-hidden.js +0 -32
  198. package/dist/ui/charts/_internal/animation.js +0 -18
  199. package/dist/ui/charts/_internal/axes.js +0 -42
  200. package/dist/ui/charts/_internal/colors.js +0 -21
  201. package/dist/ui/charts/_internal/grid-lines.js +0 -43
  202. package/dist/ui/charts/_internal/legend.js +0 -29
  203. package/dist/ui/charts/_internal/tooltip.js +0 -39
  204. package/dist/ui/charts/_internal/types.js +0 -10
  205. package/dist/ui/charts/area-chart.js +0 -245
  206. package/dist/ui/charts/bar-chart.js +0 -153
  207. package/dist/ui/charts/chart-container.js +0 -27
  208. package/dist/ui/charts/gauge-chart.js +0 -72
  209. package/dist/ui/charts/line-chart.js +0 -163
  210. package/dist/ui/charts/pie-chart.js +0 -132
  211. package/dist/ui/charts/radar-chart.js +0 -223
  212. package/dist/ui/charts/sparkline.js +0 -124
  213. package/dist/ui/lib/motion.js +0 -32
  214. package/dist/ui/lib/use-reduced-motion.js +0 -15
  215. package/dist/ui/lib/use-ripple.js +0 -14
  216. package/dist/ui/tree-view/tree-item.js +0 -139
  217. package/dist/ui/tree-view/tree-view.js +0 -140
  218. package/dist/ui/tree-view/use-tree.js +0 -38
package/dist/ui/dialog.js CHANGED
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
+ import { jsx as o, jsxs as d } from "react/jsx-runtime";
3
3
  import * as s from "react";
4
- import { Root as g, Close as r, Portal as x, Trigger as y, Content as i, Description as n, Overlay as c, Title as m } from "../primitives/react-dialog.js";
4
+ import { aa as r, ab as g, ac as i, ad as n, ae as c, af as m, ag as x, ah as y } from "../_chunks/primitives.js";
5
5
  import { IconX as N } from "@tabler/icons-react";
6
- import { cn as l } from "./lib/utils.js";
7
- const F = g, H = y, u = x, O = r, f = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
8
- c,
6
+ import { c as l } from "../_chunks/utils.js";
7
+ const F = x, H = y, u = g, O = n, f = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
8
+ r,
9
9
  {
10
10
  ref: t,
11
11
  className: l(
12
12
  "fixed inset-0 z-overlay bg-overlay duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
13
- e
13
+ a
14
14
  ),
15
- ...a
15
+ ...e
16
16
  }
17
17
  ));
18
- f.displayName = c.displayName;
19
- const D = s.forwardRef(({ className: e, children: a, ...t }, p) => /* @__PURE__ */ d(u, { children: [
18
+ f.displayName = r.displayName;
19
+ const D = s.forwardRef(({ className: a, children: e, ...t }, p) => /* @__PURE__ */ d(u, { children: [
20
20
  /* @__PURE__ */ o(f, {}),
21
21
  /* @__PURE__ */ d(
22
22
  i,
@@ -24,12 +24,12 @@ const D = s.forwardRef(({ className: e, children: a, ...t }, p) => /* @__PURE__
24
24
  ref: p,
25
25
  className: l(
26
26
  "fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-ds-05 border border-border bg-layer-01 p-ds-06 shadow-04 rounded-ds-xl duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
27
- e
27
+ a
28
28
  ),
29
29
  ...t,
30
30
  children: [
31
- a,
32
- /* @__PURE__ */ d(r, { className: "absolute right-ds-05 top-ds-05 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 disabled:pointer-events-none", children: [
31
+ e,
32
+ /* @__PURE__ */ d(n, { className: "absolute right-ds-05 top-ds-05 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 disabled:pointer-events-none", children: [
33
33
  /* @__PURE__ */ o(N, { className: "h-ico-lg w-ico-lg" }),
34
34
  /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
35
35
  ] })
@@ -38,74 +38,74 @@ const D = s.forwardRef(({ className: e, children: a, ...t }, p) => /* @__PURE__
38
38
  )
39
39
  ] }));
40
40
  D.displayName = i.displayName;
41
- const w = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
41
+ const w = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
42
42
  i,
43
43
  {
44
44
  ref: t,
45
- className: l(e),
46
- ...a
45
+ className: l(a),
46
+ ...e
47
47
  }
48
48
  ));
49
49
  w.displayName = "DialogContentRaw";
50
50
  const b = s.forwardRef(
51
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
51
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
52
52
  "div",
53
53
  {
54
54
  ref: t,
55
55
  className: l(
56
56
  "flex flex-col space-y-ds-02b text-center sm:text-left",
57
- e
57
+ a
58
58
  ),
59
- ...a
59
+ ...e
60
60
  }
61
61
  )
62
62
  );
63
63
  b.displayName = "DialogHeader";
64
64
  const v = s.forwardRef(
65
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
65
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
66
66
  "div",
67
67
  {
68
68
  ref: t,
69
69
  className: l(
70
70
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
71
- e
71
+ a
72
72
  ),
73
- ...a
73
+ ...e
74
74
  }
75
75
  )
76
76
  );
77
77
  v.displayName = "DialogFooter";
78
- const R = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
79
- m,
78
+ const h = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
79
+ c,
80
80
  {
81
81
  ref: t,
82
82
  className: l(
83
83
  "text-ds-lg font-semibold",
84
- e
84
+ a
85
85
  ),
86
- ...a
86
+ ...e
87
87
  }
88
88
  ));
89
- R.displayName = m.displayName;
90
- const h = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
91
- n,
89
+ h.displayName = c.displayName;
90
+ const R = s.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
91
+ m,
92
92
  {
93
93
  ref: t,
94
- className: l("text-ds-md text-text-secondary", e),
95
- ...a
94
+ className: l("text-ds-md text-text-secondary", a),
95
+ ...e
96
96
  }
97
97
  ));
98
- h.displayName = n.displayName;
98
+ R.displayName = m.displayName;
99
99
  export {
100
100
  F as Dialog,
101
101
  O as DialogClose,
102
102
  D as DialogContent,
103
103
  w as DialogContentRaw,
104
- h as DialogDescription,
104
+ R as DialogDescription,
105
105
  v as DialogFooter,
106
106
  b as DialogHeader,
107
107
  f as DialogOverlay,
108
108
  u as DialogPortal,
109
- R as DialogTitle,
109
+ h as DialogTitle,
110
110
  H as DialogTrigger
111
111
  };
@@ -1,145 +1,145 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
- import { Root as g, Group as h, Portal as l, RadioGroup as N, Sub as R, Trigger as v, CheckboxItem as m, ItemIndicator as c, Content as p, Item as u, Label as f, RadioItem as b, Separator as y, SubContent as w, SubTrigger as x } from "../primitives/react-dropdown-menu.js";
5
- import { IconCheck as D, IconCircle as I, IconChevronRight as M } from "@tabler/icons-react";
6
- import { cn as d } from "./lib/utils.js";
7
- const E = g, F = v, H = h, J = l, K = R, O = N, S = r.forwardRef(({ className: e, inset: t, children: o, ...s }, n) => /* @__PURE__ */ i(
8
- x,
4
+ import { X as l, Y as m, Z as c, _ as p, $ as u, a0 as f, a1 as b, a2 as y, a3 as w, a4 as x, a5 as h, a6 as g, a7 as N, a8 as v, a9 as D } from "../_chunks/primitives.js";
5
+ import { IconChevronRight as M, IconCheck as R, IconCircle as I } from "@tabler/icons-react";
6
+ import { c as d } from "../_chunks/utils.js";
7
+ const $ = h, q = g, A = N, B = c, E = D, F = v, S = r.forwardRef(({ className: e, inset: a, children: t, ...s }, n) => /* @__PURE__ */ i(
8
+ l,
9
9
  {
10
10
  ref: n,
11
11
  className: d(
12
12
  "flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-layer-02 data-[state=open]:bg-layer-02 [&_svg]:pointer-events-none [&_svg]:h-ico-sm [&_svg]:w-ico-sm [&_svg]:shrink-0",
13
- t && "pl-ds-07",
13
+ a && "pl-ds-07",
14
14
  e
15
15
  ),
16
16
  ...s,
17
17
  children: [
18
- o,
19
- /* @__PURE__ */ a(M, { className: "ml-auto" })
18
+ t,
19
+ /* @__PURE__ */ o(M, { className: "ml-auto" })
20
20
  ]
21
21
  }
22
22
  ));
23
- S.displayName = x.displayName;
24
- const C = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
25
- w,
23
+ S.displayName = l.displayName;
24
+ const C = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
25
+ m,
26
26
  {
27
- ref: o,
27
+ ref: t,
28
28
  className: d(
29
29
  "z-dropdown min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
30
30
  e
31
31
  ),
32
- ...t
32
+ ...a
33
33
  }
34
34
  ));
35
- C.displayName = w.displayName;
36
- const k = r.forwardRef(({ className: e, sideOffset: t = 4, ...o }, s) => /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(
35
+ C.displayName = m.displayName;
36
+ const z = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, s) => /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(
37
37
  p,
38
38
  {
39
39
  ref: s,
40
- sideOffset: t,
40
+ sideOffset: a,
41
41
  className: d(
42
42
  "z-dropdown min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03",
43
43
  "duration-moderate-01 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
44
44
  e
45
45
  ),
46
- ...o
46
+ ...t
47
47
  }
48
48
  ) }));
49
- k.displayName = p.displayName;
50
- const z = r.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */ a(
49
+ z.displayName = p.displayName;
50
+ const k = r.forwardRef(({ className: e, inset: a, ...t }, s) => /* @__PURE__ */ o(
51
51
  u,
52
52
  {
53
53
  ref: s,
54
54
  className: d(
55
55
  "relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38] [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
56
- t && "pl-ds-07",
56
+ a && "pl-ds-07",
57
57
  e
58
58
  ),
59
- ...o
59
+ ...t
60
60
  }
61
61
  ));
62
- z.displayName = u.displayName;
63
- const G = r.forwardRef(({ className: e, children: t, checked: o, ...s }, n) => /* @__PURE__ */ i(
64
- m,
62
+ k.displayName = u.displayName;
63
+ const _ = r.forwardRef(({ className: e, children: a, checked: t, ...s }, n) => /* @__PURE__ */ i(
64
+ f,
65
65
  {
66
66
  ref: n,
67
67
  className: d(
68
68
  "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
69
69
  e
70
70
  ),
71
- checked: o,
71
+ checked: t,
72
72
  ...s,
73
73
  children: [
74
- /* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ a(c, { children: /* @__PURE__ */ a(D, { className: "h-ico-sm w-ico-sm" }) }) }),
75
- t
74
+ /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(R, { className: "h-ico-sm w-ico-sm" }) }) }),
75
+ a
76
76
  ]
77
77
  }
78
78
  ));
79
- G.displayName = m.displayName;
80
- const T = r.forwardRef(({ className: e, children: t, ...o }, s) => /* @__PURE__ */ i(
81
- b,
79
+ _.displayName = f.displayName;
80
+ const j = r.forwardRef(({ className: e, children: a, ...t }, s) => /* @__PURE__ */ i(
81
+ y,
82
82
  {
83
83
  ref: s,
84
84
  className: d(
85
85
  "relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
86
86
  e
87
87
  ),
88
- ...o,
88
+ ...t,
89
89
  children: [
90
- /* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ a(c, { children: /* @__PURE__ */ a(I, { className: "h-2 w-2 fill-current" }) }) }),
91
- t
90
+ /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ o(b, { children: /* @__PURE__ */ o(I, { className: "h-2 w-2 fill-current" }) }) }),
91
+ a
92
92
  ]
93
93
  }
94
94
  ));
95
- T.displayName = b.displayName;
96
- const j = r.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */ a(
97
- f,
95
+ j.displayName = y.displayName;
96
+ const G = r.forwardRef(({ className: e, inset: a, ...t }, s) => /* @__PURE__ */ o(
97
+ w,
98
98
  {
99
99
  ref: s,
100
100
  className: d(
101
101
  "px-ds-03 py-ds-02b text-ds-md font-semibold",
102
- t && "pl-ds-07",
102
+ a && "pl-ds-07",
103
103
  e
104
104
  ),
105
- ...o
105
+ ...t
106
106
  }
107
107
  ));
108
- j.displayName = f.displayName;
109
- const _ = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
110
- y,
108
+ G.displayName = w.displayName;
109
+ const T = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
110
+ x,
111
111
  {
112
- ref: o,
112
+ ref: t,
113
113
  className: d("-mx-ds-01 my-ds-02 h-px bg-border-subtle", e),
114
- ...t
114
+ ...a
115
115
  }
116
116
  ));
117
- _.displayName = y.displayName;
117
+ T.displayName = x.displayName;
118
118
  const L = ({
119
119
  className: e,
120
- ...t
121
- }) => /* @__PURE__ */ a(
120
+ ...a
121
+ }) => /* @__PURE__ */ o(
122
122
  "span",
123
123
  {
124
124
  className: d("ml-auto text-ds-sm text-text-placeholder", e),
125
- ...t
125
+ ...a
126
126
  }
127
127
  );
128
128
  L.displayName = "DropdownMenuShortcut";
129
129
  export {
130
- E as DropdownMenu,
131
- G as DropdownMenuCheckboxItem,
132
- k as DropdownMenuContent,
133
- H as DropdownMenuGroup,
134
- z as DropdownMenuItem,
135
- j as DropdownMenuLabel,
136
- J as DropdownMenuPortal,
137
- O as DropdownMenuRadioGroup,
138
- T as DropdownMenuRadioItem,
139
- _ as DropdownMenuSeparator,
130
+ $ as DropdownMenu,
131
+ _ as DropdownMenuCheckboxItem,
132
+ z as DropdownMenuContent,
133
+ A as DropdownMenuGroup,
134
+ k as DropdownMenuItem,
135
+ G as DropdownMenuLabel,
136
+ B as DropdownMenuPortal,
137
+ F as DropdownMenuRadioGroup,
138
+ j as DropdownMenuRadioItem,
139
+ T as DropdownMenuSeparator,
140
140
  L as DropdownMenuShortcut,
141
- K as DropdownMenuSub,
141
+ E as DropdownMenuSub,
142
142
  C as DropdownMenuSubContent,
143
143
  S as DropdownMenuSubTrigger,
144
- F as DropdownMenuTrigger
144
+ q as DropdownMenuTrigger
145
145
  };
@@ -2,7 +2,7 @@
2
2
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
4
  import { IconLoader2 as R, IconPaperclip as _, IconUpload as S } from "@tabler/icons-react";
5
- import { cn as h } from "./lib/utils.js";
5
+ import { c as h } from "../_chunks/utils.js";
6
6
  const V = 10 * 1024 * 1024;
7
7
  function X(t, l) {
8
8
  return l.split(",").map((o) => o.trim()).some((o) => o.startsWith(".") ? t.name.toLowerCase().endsWith(o.toLowerCase()) : o.endsWith("/*") ? t.type.startsWith(o.slice(0, o.indexOf("/") + 1)) : t.type === o);
package/dist/ui/form.js CHANGED
@@ -1,28 +1,49 @@
1
1
  "use client";
2
- import { jsx as c } from "react/jsx-runtime";
2
+ import { jsx as d } from "react/jsx-runtime";
3
3
  import * as e from "react";
4
- import { cn as i } from "./lib/utils.js";
5
- const x = e.createContext({}), m = e.forwardRef(({ className: o, helperTextId: s, state: l = "helper", required: n, children: d, ...t }, r) => {
6
- const a = e.useId(), p = s || `${a}-helper`;
7
- return c(x.Provider, { value: { state: l, helperTextId: p, required: n }, children: c("div", { ref: r, className: i("flex flex-col gap-ds-02", o), ...t, children: d }) });
8
- });
4
+ import { c as i } from "../_chunks/utils.js";
5
+ const x = e.createContext({}), m = e.forwardRef(
6
+ ({ className: o, helperTextId: s, state: l = "helper", required: a, children: n, ...t }, r) => {
7
+ const c = e.useId(), p = s || `${c}-helper`;
8
+ return /* @__PURE__ */ d(x.Provider, { value: { state: l, helperTextId: p, required: a }, children: /* @__PURE__ */ d(
9
+ "div",
10
+ {
11
+ ref: r,
12
+ className: i("flex flex-col gap-ds-02", o),
13
+ ...t,
14
+ children: n
15
+ }
16
+ ) });
17
+ }
18
+ );
9
19
  m.displayName = "FormField";
10
- const f = {
20
+ const u = {
11
21
  helper: "text-text-helper",
12
22
  error: "text-text-error",
13
23
  warning: "text-text-warning",
14
24
  success: "text-text-success"
15
- }, u = e.forwardRef(({ className: o, id: s, state: l, ...n }, d) => {
16
- const t = e.useContext(x), r = l ?? t.state ?? "helper", a = s ?? t.helperTextId;
17
- return c("p", { ref: d, id: a, role: r === "error" ? "alert" : void 0, className: i("text-ds-sm", f[r], o), ...n });
18
- });
19
- u.displayName = "FormHelperText";
20
- function C() {
25
+ }, f = e.forwardRef(
26
+ ({ className: o, id: s, state: l, ...a }, n) => {
27
+ const t = e.useContext(x), r = l ?? t.state ?? "helper", c = s ?? t.helperTextId;
28
+ return /* @__PURE__ */ d(
29
+ "p",
30
+ {
31
+ ref: n,
32
+ id: c,
33
+ role: r === "error" ? "alert" : void 0,
34
+ className: i("text-ds-sm", u[r], o),
35
+ ...a
36
+ }
37
+ );
38
+ }
39
+ );
40
+ f.displayName = "FormHelperText";
41
+ function v() {
21
42
  return e.useContext(x);
22
43
  }
23
44
  export {
24
45
  m as FormField,
25
46
  x as FormFieldContext,
26
- u as FormHelperText,
27
- C as useFormField
47
+ f as FormHelperText,
48
+ v as useFormField
28
49
  };
@@ -1,24 +1,24 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import * as i from "react";
4
- import { Root as n, Trigger as m, Portal as l, Content as o } from "../primitives/react-hover-card.js";
5
- import { cn as f } from "./lib/utils.js";
6
- const C = n, u = m, p = i.forwardRef(({ className: e, align: a = "center", sideOffset: d = 4, ...r }, s) => /* @__PURE__ */ t(l, { children: /* @__PURE__ */ t(
4
+ import { z as n, A as o, B as m, D as l } from "../_chunks/primitives.js";
5
+ import { c as f } from "../_chunks/utils.js";
6
+ const u = m, C = l, p = i.forwardRef(({ className: a, align: e = "center", sideOffset: d = 4, ...r }, s) => /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
7
7
  o,
8
8
  {
9
9
  ref: s,
10
- align: a,
10
+ align: e,
11
11
  sideOffset: d,
12
12
  className: f(
13
13
  "z-dropdown w-64 rounded-ds-lg border border-border bg-layer-01 p-ds-05 shadow-03 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
14
- e
14
+ a
15
15
  ),
16
16
  ...r
17
17
  }
18
18
  ) }));
19
19
  p.displayName = o.displayName;
20
20
  export {
21
- C as HoverCard,
21
+ u as HoverCard,
22
22
  p as HoverCardContent,
23
- u as HoverCardTrigger
23
+ C as HoverCardTrigger
24
24
  };
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { Button as a } from "./button.js";
5
- import { cn as d } from "./lib/utils.js";
2
+ import { jsx as m } from "react/jsx-runtime";
3
+ import * as e from "react";
4
+ import { B as a } from "../_chunks/button.js";
5
+ import { c as d } from "../_chunks/utils.js";
6
6
  const l = {
7
7
  sm: "icon-sm",
8
8
  md: "icon-md",
9
9
  lg: "icon-lg"
10
- }, f = s.forwardRef(
11
- ({ icon: o, shape: r = "square", size: n = "md", className: t, loading: i, ...m }, c) => /* @__PURE__ */ e(
10
+ }, f = e.forwardRef(
11
+ ({ icon: o, shape: r = "square", size: n = "md", className: t, loading: s, ...c }, i) => /* @__PURE__ */ m(
12
12
  a,
13
13
  {
14
- ref: c,
14
+ ref: i,
15
15
  size: l[n],
16
16
  className: d(r === "circle" && "rounded-ds-full", t),
17
- loading: i,
17
+ loading: s,
18
18
  loadingPosition: "center",
19
- ...m,
19
+ ...c,
20
20
  children: o
21
21
  }
22
22
  )