@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
@@ -1,10 +1,18 @@
1
1
  "use client";
2
- import { jsx as u, jsxs as C } from "react/jsx-runtime";
3
- import w, { useState as D, useRef as M } from "react";
4
- import { cva as S } from "class-variance-authority";
5
- import { cn as N } from "./lib/utils.js";
6
- import { useRipple as I } from "./lib/use-ripple.js";
7
- const z = S(
2
+ import { jsx as h, jsxs as C } from "react/jsx-runtime";
3
+ import w, { useState as D, useCallback as M, useRef as S } from "react";
4
+ import { e as I } from "../_chunks/vendor-utils.js";
5
+ import { c as N } from "../_chunks/utils.js";
6
+ function z(i = 600) {
7
+ const [v, d] = D([]), n = M((a) => {
8
+ const s = a.currentTarget.getBoundingClientRect(), r = Math.max(s.width, s.height) * 2, t = a.clientX - s.left - r / 2, o = a.clientY - s.top - r / 2, m = Date.now();
9
+ d((l) => [...l, { id: m, x: t, y: o, size: r }]), setTimeout(() => {
10
+ d((l) => l.filter((c) => c.id !== m));
11
+ }, i);
12
+ }, [i]);
13
+ return { ripples: v, createRipple: n };
14
+ }
15
+ const R = I(
8
16
  [
9
17
  "inline-flex items-center gap-ds-03 rounded-ds-full border-none outline-none cursor-pointer",
10
18
  "transition-[color,background-color,border-color,box-shadow] duration-moderate-02 ease-productive-standard",
@@ -109,53 +117,53 @@ const z = S(
109
117
  ), H = {
110
118
  filled: "bg-surface-overlay-light",
111
119
  tonal: "bg-surface-overlay-dark"
112
- }, R = {
120
+ }, j = {
113
121
  small: "sm",
114
122
  medium: "md",
115
123
  big: "lg"
116
124
  };
117
- function j(p) {
118
- return R[p] ?? p;
125
+ function E(i) {
126
+ return j[i] ?? i;
119
127
  }
120
- const E = w.forwardRef(
128
+ const L = w.forwardRef(
121
129
  function({
122
- size: g,
123
- variant: x,
124
- options: s,
125
- selectedId: m,
126
- onSelect: i,
127
- disabled: f = !1,
130
+ size: v,
131
+ variant: d,
132
+ options: n,
133
+ selectedId: a,
134
+ onSelect: s,
135
+ disabled: r = !1,
128
136
  className: t = ""
129
- }, n) {
130
- const h = j(g), [v, d] = D(null), b = M(null), l = w.useCallback((e) => {
131
- b.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
132
- }, [n]), y = (e) => {
133
- if (f) return;
134
- const o = s.findIndex((_) => _.id === v);
135
- let a = o;
137
+ }, o) {
138
+ const m = E(v), [l, c] = D(null), b = S(null), f = w.useCallback((e) => {
139
+ b.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
140
+ }, [o]), y = (e) => {
141
+ if (r) return;
142
+ const u = n.findIndex((_) => _.id === l);
143
+ let p = u;
136
144
  switch (e.key) {
137
145
  case "ArrowLeft":
138
- e.preventDefault(), a = o > 0 ? o - 1 : s.length - 1;
146
+ e.preventDefault(), p = u > 0 ? u - 1 : n.length - 1;
139
147
  break;
140
148
  case "ArrowRight":
141
- e.preventDefault(), a = o < s.length - 1 ? o + 1 : 0;
149
+ e.preventDefault(), p = u < n.length - 1 ? u + 1 : 0;
142
150
  break;
143
151
  case "Home":
144
- e.preventDefault(), a = 0;
152
+ e.preventDefault(), p = 0;
145
153
  break;
146
154
  case "End":
147
- e.preventDefault(), a = s.length - 1;
155
+ e.preventDefault(), p = n.length - 1;
148
156
  break;
149
157
  default:
150
158
  return;
151
159
  }
152
- const c = s[a];
153
- d(c.id), i(c.id);
160
+ const g = n[p];
161
+ c(g.id), s(g.id);
154
162
  };
155
- return /* @__PURE__ */ u(
163
+ return /* @__PURE__ */ h(
156
164
  "div",
157
165
  {
158
- ref: l,
166
+ ref: f,
159
167
  className: N(
160
168
  "inline-flex gap-0 p-0 rounded-ds-full",
161
169
  "bg-layer-02",
@@ -166,19 +174,19 @@ const E = w.forwardRef(
166
174
  onKeyDown: y,
167
175
  tabIndex: -1,
168
176
  "aria-label": "Segmented control options",
169
- children: s.map((e) => /* @__PURE__ */ u(
177
+ children: n.map((e) => /* @__PURE__ */ h(
170
178
  k,
171
179
  {
172
- size: h,
173
- variant: x,
180
+ size: m,
181
+ variant: d,
174
182
  text: e.text,
175
183
  icon: e.icon,
176
- isSelected: e.id === m,
177
- onClick: () => i(e.id),
178
- disabled: f,
179
- isFocused: e.id === v,
180
- onFocus: () => d(e.id),
181
- onBlur: () => d(null)
184
+ isSelected: e.id === a,
185
+ onClick: () => s(e.id),
186
+ disabled: r,
187
+ isFocused: e.id === l,
188
+ onFocus: () => c(e.id),
189
+ onBlur: () => c(null)
182
190
  },
183
191
  e.id
184
192
  ))
@@ -186,77 +194,77 @@ const E = w.forwardRef(
186
194
  );
187
195
  }
188
196
  );
189
- E.displayName = "SegmentedControl";
197
+ L.displayName = "SegmentedControl";
190
198
  const k = w.forwardRef(
191
199
  function({
192
- size: g,
193
- variant: x,
194
- text: s,
195
- icon: m,
196
- isSelected: i,
197
- onClick: f,
200
+ size: v,
201
+ variant: d,
202
+ text: n,
203
+ icon: a,
204
+ isSelected: s,
205
+ onClick: r,
198
206
  disabled: t = !1,
199
- isFocused: n,
200
- onFocus: h,
201
- onBlur: v
202
- }, d) {
203
- const [b, l] = D("default"), { ripples: y, createRipple: e } = I(), o = () => {
204
- !t && !n && l("hover");
205
- }, a = () => {
206
- t || l("default");
207
- }, c = () => {
208
- t || l("pressed");
207
+ isFocused: o,
208
+ onFocus: m,
209
+ onBlur: l
210
+ }, c) {
211
+ const [b, f] = D("default"), { ripples: y, createRipple: e } = z(), u = () => {
212
+ !t && !o && f("hover");
213
+ }, p = () => {
214
+ t || f("default");
215
+ }, g = () => {
216
+ t || f("pressed");
209
217
  }, _ = () => {
210
- t || l("hover");
218
+ t || f("hover");
211
219
  };
212
220
  return /* @__PURE__ */ C(
213
221
  "button",
214
222
  {
215
- ref: d,
223
+ ref: c,
216
224
  className: N(
217
- z({
218
- size: g,
219
- variant: x,
220
- selected: i,
225
+ R({
226
+ size: v,
227
+ variant: d,
228
+ selected: s,
221
229
  isHovered: b === "hover",
222
230
  isDisabled: t
223
231
  })
224
232
  ),
225
- onClick: (r) => {
226
- e(r), f();
233
+ onClick: (x) => {
234
+ e(x), r();
227
235
  },
228
236
  disabled: t,
229
237
  type: "button",
230
238
  role: "tab",
231
- "aria-selected": i,
239
+ "aria-selected": s,
232
240
  "aria-disabled": t,
233
- onMouseEnter: o,
234
- onMouseLeave: a,
235
- onMouseDown: c,
241
+ onMouseEnter: u,
242
+ onMouseLeave: p,
243
+ onMouseDown: g,
236
244
  onMouseUp: _,
237
- onTouchStart: c,
245
+ onTouchStart: g,
238
246
  onTouchEnd: _,
239
- onFocus: h,
240
- onBlur: v,
247
+ onFocus: m,
248
+ onBlur: l,
241
249
  children: [
242
- y.map((r) => /* @__PURE__ */ u(
250
+ y.map((x) => /* @__PURE__ */ h(
243
251
  "span",
244
252
  {
245
253
  className: N(
246
254
  "absolute rounded-ds-full -translate-x-1/2 -translate-y-1/2 scale-0 animate-ripple pointer-events-none",
247
- H[x]
255
+ H[d]
248
256
  ),
249
257
  style: {
250
- left: r.x,
251
- top: r.y,
252
- width: r.size,
253
- height: r.size
258
+ left: x.x,
259
+ top: x.y,
260
+ width: x.size,
261
+ height: x.size
254
262
  }
255
263
  },
256
- r.id
264
+ x.id
257
265
  )),
258
- m && /* @__PURE__ */ u(m, { className: "h-ico-sm w-ico-sm shrink-0" }),
259
- /* @__PURE__ */ u("span", { className: "font-accent leading-none", children: s })
266
+ a && /* @__PURE__ */ h(a, { className: "h-ico-sm w-ico-sm shrink-0" }),
267
+ /* @__PURE__ */ h("span", { className: "font-accent leading-none", children: n })
260
268
  ]
261
269
  }
262
270
  );
@@ -264,7 +272,7 @@ const k = w.forwardRef(
264
272
  );
265
273
  k.displayName = "SegmentedControlItem";
266
274
  export {
267
- E as SegmentedControl,
275
+ L as SegmentedControl,
268
276
  k as SegmentedControlItem,
269
- z as segmentedControlItemVariants
277
+ R as segmentedControlItemVariants
270
278
  };
package/dist/ui/select.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
- import { Root as w, Group as N, Value as g, Portal as v, Content as c, Viewport as S, Item as n, ItemIndicator as R, ItemText as I, Label as m, ScrollDownButton as p, ScrollUpButton as f, Separator as u, Trigger as h, Icon as C } from "../primitives/react-select.js";
5
- import { IconCheck as j, IconChevronDown as b, IconChevronUp as z } from "@tabler/icons-react";
6
- import { cva as V } from "class-variance-authority";
7
- import { cn as o } from "./lib/utils.js";
8
- const F = w, H = N, J = g, B = V(
4
+ import { al as c, am as w, an as n, ao as m, ap as N, aq as p, ar as g, as as f, at as u, au as v, av as S, aw as h, ax as I, ay as R, az as j } from "../_chunks/primitives.js";
5
+ import { IconChevronDown as b, IconChevronUp as z, IconCheck as C } from "@tabler/icons-react";
6
+ import { e as V } from "../_chunks/vendor-utils.js";
7
+ import { c as o } from "../_chunks/utils.js";
8
+ const F = I, H = R, J = j, B = V(
9
9
  "flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-border bg-field placeholder:text-text-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:border-border-interactive disabled:cursor-not-allowed disabled:opacity-[0.38] [&>span]:line-clamp-1",
10
10
  {
11
11
  variants: {
@@ -17,107 +17,107 @@ const F = w, H = N, J = g, B = V(
17
17
  },
18
18
  defaultVariants: { size: "md" }
19
19
  }
20
- ), T = r.forwardRef(({ className: a, children: s, size: t, ...d }, l) => /* @__PURE__ */ i(
21
- h,
20
+ ), T = r.forwardRef(({ className: s, children: t, size: a, ...d }, l) => /* @__PURE__ */ i(
21
+ c,
22
22
  {
23
23
  ref: l,
24
- className: o(B({ size: t }), a),
24
+ className: o(B({ size: a }), s),
25
25
  ...d,
26
26
  children: [
27
- s,
28
- /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm opacity-[0.5]" }) })
27
+ t,
28
+ /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm opacity-[0.5]" }) })
29
29
  ]
30
30
  }
31
31
  ));
32
- T.displayName = h.displayName;
33
- const y = r.forwardRef(({ className: a, ...s }, t) => /* @__PURE__ */ e(
34
- f,
32
+ T.displayName = c.displayName;
33
+ const y = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
34
+ n,
35
35
  {
36
- ref: t,
36
+ ref: a,
37
37
  className: o(
38
38
  "flex cursor-default items-center justify-center py-ds-02",
39
- a
39
+ s
40
40
  ),
41
- ...s,
41
+ ...t,
42
42
  children: /* @__PURE__ */ e(z, { className: "h-ico-sm w-ico-sm" })
43
43
  }
44
44
  ));
45
- y.displayName = f.displayName;
46
- const x = r.forwardRef(({ className: a, ...s }, t) => /* @__PURE__ */ e(
47
- p,
45
+ y.displayName = n.displayName;
46
+ const x = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
47
+ m,
48
48
  {
49
- ref: t,
49
+ ref: a,
50
50
  className: o(
51
51
  "flex cursor-default items-center justify-center py-ds-02",
52
- a
52
+ s
53
53
  ),
54
- ...s,
54
+ ...t,
55
55
  children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm" })
56
56
  }
57
57
  ));
58
- x.displayName = p.displayName;
59
- const D = r.forwardRef(({ className: a, children: s, position: t = "popper", ...d }, l) => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ i(
60
- c,
58
+ x.displayName = m.displayName;
59
+ const D = r.forwardRef(({ className: s, children: t, position: a = "popper", ...d }, l) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
60
+ p,
61
61
  {
62
62
  ref: l,
63
63
  className: o(
64
64
  "relative z-dropdown max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 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",
65
- t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
66
- a
65
+ a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
66
+ s
67
67
  ),
68
- position: t,
68
+ position: a,
69
69
  ...d,
70
70
  children: [
71
71
  /* @__PURE__ */ e(y, {}),
72
72
  /* @__PURE__ */ e(
73
- S,
73
+ g,
74
74
  {
75
75
  className: o(
76
76
  "p-ds-02",
77
- t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
77
+ a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
78
78
  ),
79
- children: s
79
+ children: t
80
80
  }
81
81
  ),
82
82
  /* @__PURE__ */ e(x, {})
83
83
  ]
84
84
  }
85
85
  ) }));
86
- D.displayName = c.displayName;
87
- const U = r.forwardRef(({ className: a, ...s }, t) => /* @__PURE__ */ e(
88
- m,
86
+ D.displayName = p.displayName;
87
+ const U = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
88
+ f,
89
89
  {
90
- ref: t,
91
- className: o("px-ds-03 py-ds-02b text-ds-md font-semibold", a),
92
- ...s
90
+ ref: a,
91
+ className: o("px-ds-03 py-ds-02b text-ds-md font-semibold", s),
92
+ ...t
93
93
  }
94
94
  ));
95
- U.displayName = m.displayName;
96
- const G = r.forwardRef(({ className: a, children: s, ...t }, d) => /* @__PURE__ */ i(
97
- n,
95
+ U.displayName = f.displayName;
96
+ const G = r.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ i(
97
+ u,
98
98
  {
99
99
  ref: d,
100
100
  className: o(
101
101
  "relative flex w-full cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-03 pr-ds-07 text-ds-md outline-none focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
102
- a
102
+ s
103
103
  ),
104
- ...t,
104
+ ...a,
105
105
  children: [
106
- /* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(j, { className: "h-ico-sm w-ico-sm" }) }) }),
107
- /* @__PURE__ */ e(I, { children: s })
106
+ /* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm" }) }) }),
107
+ /* @__PURE__ */ e(S, { children: t })
108
108
  ]
109
109
  }
110
110
  ));
111
- G.displayName = n.displayName;
112
- const L = r.forwardRef(({ className: a, ...s }, t) => /* @__PURE__ */ e(
113
- u,
111
+ G.displayName = u.displayName;
112
+ const L = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
113
+ h,
114
114
  {
115
- ref: t,
116
- className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle", a),
117
- ...s
115
+ ref: a,
116
+ className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle", s),
117
+ ...t
118
118
  }
119
119
  ));
120
- L.displayName = u.displayName;
120
+ L.displayName = h.displayName;
121
121
  export {
122
122
  F as Select,
123
123
  D as SelectContent,
@@ -1,9 +1,24 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import * as l from "react";
4
- import { Root as o } from "../primitives/react-separator.js";
5
- import { cn as p } from "./lib/utils.js";
6
- const f = l.forwardRef(({ className: a, orientation: r = "horizontal", decorative: t = !0, ...e }, m) => i(o, { ref: m, decorative: t, orientation: r, className: p("shrink-0 bg-border-subtle", r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", a), ...e }));
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import * as p from "react";
4
+ import { bi as o } from "../_chunks/primitives.js";
5
+ import { c as e } from "../_chunks/utils.js";
6
+ const f = p.forwardRef(
7
+ ({ className: a, orientation: r = "horizontal", decorative: m = !0, ...s }, t) => /* @__PURE__ */ l(
8
+ o,
9
+ {
10
+ ref: t,
11
+ decorative: m,
12
+ orientation: r,
13
+ className: e(
14
+ "shrink-0 bg-border-subtle",
15
+ r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
16
+ a
17
+ ),
18
+ ...s
19
+ }
20
+ )
21
+ );
7
22
  f.displayName = o.displayName;
8
23
  export {
9
24
  f as Separator
package/dist/ui/sheet.js CHANGED
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
+ import { jsx as s, jsxs as d } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { Root as x, Close as i, Portal as b, Trigger as y, Content as l, Description as n, Overlay as m, Title as c } from "../primitives/react-dialog.js";
5
- import { cva as u } from "class-variance-authority";
6
- import { IconX as N } from "@tabler/icons-react";
7
- import { cn as r } from "./lib/utils.js";
8
- const O = x, P = y, V = i, g = b, f = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
9
- m,
4
+ import { aa as i, ab as x, ac as l, ad as n, ae as m, af as c, ag as b, ah as y } from "../_chunks/primitives.js";
5
+ import { e as u } from "../_chunks/vendor-utils.js";
6
+ import { IconX as g } from "@tabler/icons-react";
7
+ import { c as r } from "../_chunks/utils.js";
8
+ const O = b, P = y, V = n, N = x, f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
9
+ i,
10
10
  {
11
11
  className: r(
12
12
  "fixed inset-0 z-modal 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
13
  e
14
14
  ),
15
15
  ...t,
16
- ref: s
16
+ ref: a
17
17
  }
18
18
  ));
19
- f.displayName = m.displayName;
19
+ f.displayName = i.displayName;
20
20
  const v = u(
21
21
  "fixed z-modal gap-ds-05 bg-layer-01 p-ds-06 shadow-05 transition ease-productive-standard duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out",
22
22
  {
@@ -32,8 +32,8 @@ const v = u(
32
32
  side: "right"
33
33
  }
34
34
  }
35
- ), w = o.forwardRef(({ side: e = "right", className: t, children: s, ...p }, h) => /* @__PURE__ */ d(g, { children: [
36
- /* @__PURE__ */ a(f, {}),
35
+ ), w = o.forwardRef(({ side: e = "right", className: t, children: a, ...p }, h) => /* @__PURE__ */ d(N, { children: [
36
+ /* @__PURE__ */ s(f, {}),
37
37
  /* @__PURE__ */ d(
38
38
  l,
39
39
  {
@@ -41,21 +41,21 @@ const v = u(
41
41
  className: r(v({ side: e }), t),
42
42
  ...p,
43
43
  children: [
44
- /* @__PURE__ */ d(i, { 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: [
45
- /* @__PURE__ */ a(N, { className: "h-ico-sm w-ico-sm" }),
46
- /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
44
+ /* @__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: [
45
+ /* @__PURE__ */ s(g, { className: "h-ico-sm w-ico-sm" }),
46
+ /* @__PURE__ */ s("span", { className: "sr-only", children: "Close" })
47
47
  ] }),
48
- s
48
+ a
49
49
  ]
50
50
  }
51
51
  )
52
52
  ] }));
53
53
  w.displayName = l.displayName;
54
54
  const S = o.forwardRef(
55
- ({ className: e, ...t }, s) => /* @__PURE__ */ a(
55
+ ({ className: e, ...t }, a) => /* @__PURE__ */ s(
56
56
  "div",
57
57
  {
58
- ref: s,
58
+ ref: a,
59
59
  className: r(
60
60
  "flex flex-col space-y-ds-03 text-center sm:text-left",
61
61
  e
@@ -66,10 +66,10 @@ const S = o.forwardRef(
66
66
  );
67
67
  S.displayName = "SheetHeader";
68
68
  const R = o.forwardRef(
69
- ({ className: e, ...t }, s) => /* @__PURE__ */ a(
69
+ ({ className: e, ...t }, a) => /* @__PURE__ */ s(
70
70
  "div",
71
71
  {
72
- ref: s,
72
+ ref: a,
73
73
  className: r(
74
74
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
75
75
  e
@@ -79,24 +79,24 @@ const R = o.forwardRef(
79
79
  )
80
80
  );
81
81
  R.displayName = "SheetFooter";
82
- const C = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
83
- c,
82
+ const C = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
83
+ m,
84
84
  {
85
- ref: s,
85
+ ref: a,
86
86
  className: r("text-ds-lg font-semibold text-text-primary", e),
87
87
  ...t
88
88
  }
89
89
  ));
90
- C.displayName = c.displayName;
91
- const j = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
92
- n,
90
+ C.displayName = m.displayName;
91
+ const j = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
92
+ c,
93
93
  {
94
- ref: s,
94
+ ref: a,
95
95
  className: r("text-ds-md text-text-secondary", e),
96
96
  ...t
97
97
  }
98
98
  ));
99
- j.displayName = n.displayName;
99
+ j.displayName = c.displayName;
100
100
  export {
101
101
  O as Sheet,
102
102
  V as SheetClose,
@@ -105,7 +105,7 @@ export {
105
105
  R as SheetFooter,
106
106
  S as SheetHeader,
107
107
  f as SheetOverlay,
108
- g as SheetPortal,
108
+ N as SheetPortal,
109
109
  C as SheetTitle,
110
110
  P as SheetTrigger
111
111
  };