@devalok/shilp-sutra 0.33.2 → 0.34.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 (175) hide show
  1. package/dist/_chunks/badge-group.js +306 -246
  2. package/dist/_chunks/chat.js +513 -0
  3. package/dist/_chunks/date-picker.js +748 -0
  4. package/dist/_chunks/document-preview.js +109 -90
  5. package/dist/_chunks/file-preview.js +492 -504
  6. package/dist/_chunks/framer.js +5564 -5613
  7. package/dist/_chunks/image-preview.js +127 -88
  8. package/dist/_chunks/keybinding.js +12 -14
  9. package/dist/_chunks/link-context.js +19 -16
  10. package/dist/_chunks/mention-suggestion.js +353 -350
  11. package/dist/_chunks/motion-provider.js +26 -20
  12. package/dist/_chunks/popover.js +127 -0
  13. package/dist/_chunks/primitives.js +7584 -6425
  14. package/dist/_chunks/rich-chat-input.js +2070 -0
  15. package/dist/_chunks/rolldown-runtime.js +21 -0
  16. package/dist/_chunks/shared.js +126 -0
  17. package/dist/_chunks/sonner.js +605 -734
  18. package/dist/_chunks/stat-row.js +418 -440
  19. package/dist/_chunks/tiptap.js +15850 -19964
  20. package/dist/_chunks/tree-view.js +231 -290
  21. package/dist/_chunks/use-calendar.js +161 -208
  22. package/dist/_chunks/vendor-client.js +314 -2199
  23. package/dist/_chunks/vendor-utils.js +1721 -2978
  24. package/dist/ai/ai-command-provider.js +23 -17
  25. package/dist/ai/block-renderer.js +68 -51
  26. package/dist/ai/blocks/index.js +2 -12
  27. package/dist/ai/command-bar.js +470 -519
  28. package/dist/ai/conversation.js +241 -227
  29. package/dist/ai/index.js +181 -167
  30. package/dist/ai/types.js +0 -1
  31. package/dist/composed/activity-feed.js +232 -202
  32. package/dist/composed/avatar-group.js +164 -222
  33. package/dist/composed/bulk-action-bar.js +174 -165
  34. package/dist/composed/command-palette.js +290 -308
  35. package/dist/composed/confirm-dialog.js +28 -48
  36. package/dist/composed/content-card.js +69 -108
  37. package/dist/composed/date-picker/index.js +3 -13
  38. package/dist/composed/deadline-indicator.js +68 -74
  39. package/dist/composed/emoji-picker.js +83 -110
  40. package/dist/composed/empty-state.js +64 -103
  41. package/dist/composed/error-boundary.js +129 -127
  42. package/dist/composed/file-preview.js +2 -12
  43. package/dist/composed/filter-bar.js +98 -130
  44. package/dist/composed/form-section.js +61 -45
  45. package/dist/composed/global-loading.js +34 -47
  46. package/dist/composed/index.js +34 -92
  47. package/dist/composed/inline-edit.js +92 -107
  48. package/dist/composed/lib/string-utils.js +8 -8
  49. package/dist/composed/loading-skeleton.js +103 -171
  50. package/dist/composed/markdown-viewer.js +187 -139
  51. package/dist/composed/master-detail.js +147 -156
  52. package/dist/composed/member-picker.js +46 -49
  53. package/dist/composed/multi-select-popover.js +181 -179
  54. package/dist/composed/page-header.js +54 -76
  55. package/dist/composed/page-skeletons.js +143 -127
  56. package/dist/composed/priority-indicator.js +105 -111
  57. package/dist/composed/responsive-overlay.js +36 -41
  58. package/dist/composed/rich-chat-input.js +2 -1860
  59. package/dist/composed/rich-text-editor.js +561 -424
  60. package/dist/composed/schedule-view.js +134 -185
  61. package/dist/composed/simple-tooltip.js +21 -21
  62. package/dist/composed/status-badge.js +133 -137
  63. package/dist/hooks/index.js +7 -12
  64. package/dist/hooks/use-color-mode.js +28 -25
  65. package/dist/hooks/use-mobile.js +13 -13
  66. package/dist/hooks/use-toast.js +2 -4
  67. package/dist/hooks/use-touch-device.js +9 -11
  68. package/dist/hooks/use-viewport-height.js +14 -14
  69. package/dist/motion/index.js +3 -11
  70. package/dist/motion/primitives-index.js +226 -186
  71. package/dist/shell/app-command-palette.js +203 -234
  72. package/dist/shell/bottom-navbar.js +150 -190
  73. package/dist/shell/command-registry.js +13 -14
  74. package/dist/shell/index.js +10 -20
  75. package/dist/shell/link-context.js +2 -5
  76. package/dist/shell/notification-center.js +238 -259
  77. package/dist/shell/notification-preferences.js +241 -184
  78. package/dist/shell/sidebar.js +251 -281
  79. package/dist/shell/top-bar.js +203 -237
  80. package/dist/tailwind/index.cjs +426 -451
  81. package/dist/tailwind/index.js +2 -4
  82. package/dist/tailwind/preset.d.ts.map +1 -1
  83. package/dist/tailwind/preset.js +443 -468
  84. package/dist/ui/accordion.js +52 -60
  85. package/dist/ui/alert-dialog.js +111 -156
  86. package/dist/ui/alert.js +177 -99
  87. package/dist/ui/aspect-ratio.js +13 -16
  88. package/dist/ui/autocomplete.js +112 -148
  89. package/dist/ui/avatar.js +196 -169
  90. package/dist/ui/badge-group.js +2 -7
  91. package/dist/ui/badge-indicator.js +42 -51
  92. package/dist/ui/badge.js +2 -15
  93. package/dist/ui/banner.js +76 -68
  94. package/dist/ui/breadcrumb.js +65 -84
  95. package/dist/ui/button-group.js +109 -102
  96. package/dist/ui/button-processing.js +69 -73
  97. package/dist/ui/button.js +393 -279
  98. package/dist/ui/card.js +151 -157
  99. package/dist/ui/charts/index.js +1002 -1319
  100. package/dist/ui/chat/index.js +2 -11
  101. package/dist/ui/checkbox.js +77 -100
  102. package/dist/ui/code.js +18 -32
  103. package/dist/ui/collapsible.js +21 -29
  104. package/dist/ui/color-input.js +453 -372
  105. package/dist/ui/color-swatch.js +60 -90
  106. package/dist/ui/combobox.js +244 -293
  107. package/dist/ui/container.js +18 -24
  108. package/dist/ui/context-menu.js +154 -203
  109. package/dist/ui/data-table-body.js +116 -213
  110. package/dist/ui/data-table-bulk-actions.js +43 -59
  111. package/dist/ui/data-table-card.js +84 -71
  112. package/dist/ui/data-table-context.js +39 -42
  113. package/dist/ui/data-table-header.js +98 -139
  114. package/dist/ui/data-table-pagination.js +69 -82
  115. package/dist/ui/data-table-toolbar.js +104 -130
  116. package/dist/ui/data-table.js +278 -354
  117. package/dist/ui/devalok-grain.js +77 -66
  118. package/dist/ui/dialog.js +122 -151
  119. package/dist/ui/dropdown-menu.js +152 -203
  120. package/dist/ui/file-upload.js +242 -266
  121. package/dist/ui/form.js +60 -56
  122. package/dist/ui/hover-card.js +54 -54
  123. package/dist/ui/icon-button.js +21 -26
  124. package/dist/ui/icon-context.js +17 -17
  125. package/dist/ui/icon-group.js +22 -29
  126. package/dist/ui/icon.js +201 -121
  127. package/dist/ui/index.js +74 -350
  128. package/dist/ui/input-otp.d.ts.map +1 -1
  129. package/dist/ui/input-otp.js +44 -48
  130. package/dist/ui/input.js +92 -169
  131. package/dist/ui/label.js +17 -22
  132. package/dist/ui/lib/date-utils.js +14 -11
  133. package/dist/ui/lib/motion.js +77 -36
  134. package/dist/ui/lib/utils.js +39 -16
  135. package/dist/ui/link.js +13 -24
  136. package/dist/ui/menubar.js +132 -210
  137. package/dist/ui/navigation-menu.js +164 -194
  138. package/dist/ui/number-input.js +72 -95
  139. package/dist/ui/pagination.js +122 -159
  140. package/dist/ui/popover.js +2 -131
  141. package/dist/ui/progress-ring.js +133 -143
  142. package/dist/ui/progress.js +51 -95
  143. package/dist/ui/radio.js +41 -50
  144. package/dist/ui/search-input.js +51 -53
  145. package/dist/ui/segmented-control.js +93 -114
  146. package/dist/ui/select.js +131 -157
  147. package/dist/ui/separator.js +15 -25
  148. package/dist/ui/sheet.js +135 -163
  149. package/dist/ui/sidebar.js +357 -600
  150. package/dist/ui/skeleton.js +179 -231
  151. package/dist/ui/slider.js +24 -34
  152. package/dist/ui/spinner.js +226 -205
  153. package/dist/ui/split-button.js +227 -276
  154. package/dist/ui/stack.js +56 -70
  155. package/dist/ui/stat-card.js +259 -251
  156. package/dist/ui/status-dot.js +67 -63
  157. package/dist/ui/stepper.js +119 -168
  158. package/dist/ui/switch.js +51 -54
  159. package/dist/ui/table.js +57 -90
  160. package/dist/ui/tabs.js +139 -156
  161. package/dist/ui/text.js +52 -59
  162. package/dist/ui/textarea.js +40 -57
  163. package/dist/ui/toast-types.js +0 -1
  164. package/dist/ui/toast.js +554 -536
  165. package/dist/ui/toaster.js +23 -33
  166. package/dist/ui/toggle-group.js +37 -41
  167. package/dist/ui/toggle.js +36 -40
  168. package/dist/ui/tooltip.js +80 -65
  169. package/dist/ui/tree-view/index.js +2 -6
  170. package/dist/ui/visually-hidden.js +12 -10
  171. package/llms-full.txt +1 -1
  172. package/llms.txt +12 -0
  173. package/package.json +3 -3
  174. package/dist/_chunks/date-time-picker.js +0 -851
  175. package/dist/_chunks/typing-indicator.js +0 -565
@@ -1,231 +1,179 @@
1
- import { jsx as l, jsxs as f } from "react/jsx-runtime";
2
- import * as o from "react";
3
- import { a as g } from "../_chunks/vendor-utils.js";
4
- import { cn as r } from "./lib/utils.js";
5
- const k = g("bg-skeleton-base", {
6
- variants: {
7
- variant: {
8
- rectangle: "rounded-ds-md",
9
- circle: "rounded-ds-full aspect-square",
10
- text: "rounded-ds-sm h-4 w-full"
11
- },
12
- animation: {
13
- pulse: "animate-pulse motion-reduce:animate-none",
14
- shimmer: "bg-[length:200%_100%] bg-gradient-to-r from-skeleton-base via-skeleton-shimmer to-skeleton-base animate-skeleton-shimmer [background-attachment:fixed] motion-reduce:animate-none",
15
- none: ""
16
- }
17
- },
18
- defaultVariants: {
19
- variant: "rectangle",
20
- animation: "pulse"
21
- }
22
- }), w = o.forwardRef(
23
- ({ className: e, variant: s, animation: t, ...a }, n) => /* @__PURE__ */ l(
24
- "div",
25
- {
26
- ref: n,
27
- "aria-hidden": "true",
28
- className: r(k({ variant: s, animation: t }), e),
29
- ...a
30
- }
31
- )
32
- );
33
- w.displayName = "Skeleton";
34
- const i = {
35
- pulse: "animate-pulse",
36
- shimmer: "bg-[length:200%_100%] bg-gradient-to-r from-skeleton-base via-skeleton-shimmer to-skeleton-base animate-skeleton-shimmer motion-reduce:animate-none",
37
- none: ""
38
- }, b = {
39
- sm: "h-8 w-8",
40
- md: "h-10 w-10",
41
- lg: "h-12 w-12",
42
- xl: "h-16 w-16"
43
- }, v = o.forwardRef(
44
- ({ className: e, size: s = "md", animation: t = "pulse", ...a }, n) => /* @__PURE__ */ l(
45
- "div",
46
- {
47
- ref: n,
48
- className: r(
49
- "bg-skeleton-base rounded-ds-full",
50
- b[s],
51
- i[t],
52
- e
53
- ),
54
- ...a
55
- }
56
- )
57
- );
58
- v.displayName = "SkeletonAvatar";
59
- const x = {
60
- full: "w-full",
61
- "three-quarter": "w-3/4",
62
- half: "w-1/2"
63
- }, S = {
64
- sm: "gap-ds-02",
65
- md: "gap-ds-03"
66
- }, y = o.forwardRef(
67
- ({
68
- className: e,
69
- lines: s = 3,
70
- lastLineWidth: t = "three-quarter",
71
- spacing: a = "md",
72
- animation: n = "pulse",
73
- ...d
74
- }, m) => {
75
- const c = Math.max(1, s ?? 3);
76
- return /* @__PURE__ */ l(
77
- "div",
78
- {
79
- ref: m,
80
- className: r("flex flex-col", S[a], e),
81
- ...d,
82
- children: Array.from({ length: c }).map((h, u) => /* @__PURE__ */ l(
83
- "div",
84
- {
85
- className: r(
86
- "h-3.5 rounded-ds-sm bg-skeleton-base",
87
- i[n],
88
- u === c - 1 ? x[t] : "w-full"
89
- )
90
- },
91
- u
92
- ))
93
- }
94
- );
95
- }
96
- );
97
- y.displayName = "SkeletonText";
98
- const N = {
99
- sm: "h-ds-sm",
100
- md: "h-ds-md",
101
- lg: "h-ds-lg"
102
- }, C = {
103
- auto: { sm: "w-24", md: "w-28", lg: "w-32" },
104
- full: { sm: "w-full", md: "w-full", lg: "w-full" }
105
- }, R = o.forwardRef(
106
- ({ className: e, size: s = "md", width: t = "auto", animation: a = "pulse", ...n }, d) => {
107
- const m = t === "icon";
108
- return /* @__PURE__ */ l(
109
- "div",
110
- {
111
- ref: d,
112
- className: r(
113
- "bg-skeleton-base rounded-ds-md",
114
- N[s],
115
- m ? "aspect-square" : C[t][s],
116
- i[a],
117
- e
118
- ),
119
- ...n
120
- }
121
- );
122
- }
123
- );
124
- R.displayName = "SkeletonButton";
125
- const I = {
126
- sm: "h-ds-sm",
127
- md: "h-ds-md",
128
- lg: "h-ds-lg"
129
- }, A = o.forwardRef(
130
- ({ className: e, size: s = "md", animation: t = "pulse", ...a }, n) => /* @__PURE__ */ l(
131
- "div",
132
- {
133
- ref: n,
134
- className: r(
135
- "w-full bg-skeleton-base rounded-ds-md border border-skeleton-base/30",
136
- I[s],
137
- i[t],
138
- e
139
- ),
140
- ...a
141
- }
142
- )
143
- );
144
- A.displayName = "SkeletonInput";
145
- const p = [65, 40, 85, 55, 70, 30, 90, 50, 75, 35, 80, 45, 60, 95, 38], B = o.forwardRef(
146
- ({ className: e, bars: s = 7, height: t = "h-40", animation: a = "pulse", ...n }, d) => {
147
- const m = Math.max(1, s ?? 7);
148
- return /* @__PURE__ */ l(
149
- "div",
150
- {
151
- ref: d,
152
- className: r("flex items-end gap-ds-02", t, e),
153
- ...n,
154
- children: Array.from({ length: m }).map((c, h) => {
155
- const u = p[h % p.length];
156
- return /* @__PURE__ */ l(
157
- "div",
158
- {
159
- className: r(
160
- "flex-1 bg-skeleton-base rounded-t-ds-sm",
161
- i[a]
162
- ),
163
- style: { height: `${u}%` }
164
- },
165
- h
166
- );
167
- })
168
- }
169
- );
170
- }
171
- );
172
- B.displayName = "SkeletonChart";
173
- const L = o.forwardRef(
174
- ({ className: e, width: s = "w-full", height: t = "h-40", animation: a = "pulse", ...n }, d) => /* @__PURE__ */ l(
175
- "div",
176
- {
177
- ref: d,
178
- className: r(
179
- "bg-skeleton-base rounded-ds-md relative flex items-center justify-center",
180
- s,
181
- t,
182
- i[a],
183
- e
184
- ),
185
- ...n,
186
- children: /* @__PURE__ */ f(
187
- "svg",
188
- {
189
- xmlns: "http://www.w3.org/2000/svg",
190
- width: "24",
191
- height: "24",
192
- viewBox: "0 0 24 24",
193
- fill: "none",
194
- stroke: "currentColor",
195
- strokeWidth: "1.5",
196
- strokeLinecap: "round",
197
- strokeLinejoin: "round",
198
- className: "text-skeleton-shimmer opacity-40",
199
- "aria-hidden": "true",
200
- children: [
201
- /* @__PURE__ */ l("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", ry: "2" }),
202
- /* @__PURE__ */ l("circle", { cx: "8.5", cy: "8.5", r: "1.5" }),
203
- /* @__PURE__ */ l("polyline", { points: "21 15 16 10 5 21" })
204
- ]
205
- }
206
- )
207
- }
208
- )
209
- );
210
- L.displayName = "SkeletonImage";
211
- const _ = o.forwardRef(
212
- ({ label: e = "Loading", children: s, ...t }, a) => /* @__PURE__ */ f("div", { ref: a, role: "status", "aria-label": e, "aria-busy": "true", ...t, children: [
213
- /* @__PURE__ */ f("span", { className: "sr-only", children: [
214
- e,
215
- "..."
216
- ] }),
217
- s
218
- ] })
219
- );
220
- _.displayName = "SkeletonGroup";
221
- export {
222
- w as Skeleton,
223
- v as SkeletonAvatar,
224
- R as SkeletonButton,
225
- B as SkeletonChart,
226
- _ as SkeletonGroup,
227
- L as SkeletonImage,
228
- A as SkeletonInput,
229
- y as SkeletonText,
230
- k as skeletonVariants
231
- };
1
+ import { t as e } from "../_chunks/vendor-utils.js";
2
+ import { cn as t } from "./lib/utils.js";
3
+ import * as n from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/ui/skeleton.tsx
6
+ var a = e("bg-skeleton-base", {
7
+ variants: {
8
+ variant: {
9
+ rectangle: "rounded-ds-md",
10
+ circle: "rounded-ds-full aspect-square",
11
+ text: "rounded-ds-sm h-4 w-full"
12
+ },
13
+ animation: {
14
+ pulse: "animate-pulse motion-reduce:animate-none",
15
+ shimmer: "bg-[length:200%_100%] bg-gradient-to-r from-skeleton-base via-skeleton-shimmer to-skeleton-base animate-skeleton-shimmer [background-attachment:fixed] motion-reduce:animate-none",
16
+ none: ""
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ variant: "rectangle",
21
+ animation: "pulse"
22
+ }
23
+ }), o = n.forwardRef(({ className: e, variant: n, animation: i, ...o }, s) => /* @__PURE__ */ r("div", {
24
+ ref: s,
25
+ "aria-hidden": "true",
26
+ className: t(a({
27
+ variant: n,
28
+ animation: i
29
+ }), e),
30
+ ...o
31
+ }));
32
+ o.displayName = "Skeleton";
33
+ var s = {
34
+ pulse: "animate-pulse",
35
+ shimmer: "bg-[length:200%_100%] bg-gradient-to-r from-skeleton-base via-skeleton-shimmer to-skeleton-base animate-skeleton-shimmer motion-reduce:animate-none",
36
+ none: ""
37
+ }, c = {
38
+ sm: "h-8 w-8",
39
+ md: "h-10 w-10",
40
+ lg: "h-12 w-12",
41
+ xl: "h-16 w-16"
42
+ }, l = n.forwardRef(({ className: e, size: n = "md", animation: i = "pulse", ...a }, o) => /* @__PURE__ */ r("div", {
43
+ ref: o,
44
+ className: t("bg-skeleton-base rounded-ds-full", c[n], s[i], e),
45
+ ...a
46
+ }));
47
+ l.displayName = "SkeletonAvatar";
48
+ var u = {
49
+ full: "w-full",
50
+ "three-quarter": "w-3/4",
51
+ half: "w-1/2"
52
+ }, d = {
53
+ sm: "gap-ds-02",
54
+ md: "gap-ds-03"
55
+ }, f = n.forwardRef(({ className: e, lines: n = 3, lastLineWidth: i = "three-quarter", spacing: a = "md", animation: o = "pulse", ...c }, l) => {
56
+ let f = Math.max(1, n ?? 3);
57
+ return /* @__PURE__ */ r("div", {
58
+ ref: l,
59
+ className: t("flex flex-col", d[a], e),
60
+ ...c,
61
+ children: Array.from({ length: f }).map((e, n) => /* @__PURE__ */ r("div", { className: t("h-3.5 rounded-ds-sm bg-skeleton-base", s[o], n === f - 1 ? u[i] : "w-full") }, n))
62
+ });
63
+ });
64
+ f.displayName = "SkeletonText";
65
+ var p = {
66
+ sm: "h-ds-sm",
67
+ md: "h-ds-md",
68
+ lg: "h-ds-lg"
69
+ }, m = {
70
+ auto: {
71
+ sm: "w-24",
72
+ md: "w-28",
73
+ lg: "w-32"
74
+ },
75
+ full: {
76
+ sm: "w-full",
77
+ md: "w-full",
78
+ lg: "w-full"
79
+ }
80
+ }, h = n.forwardRef(({ className: e, size: n = "md", width: i = "auto", animation: a = "pulse", ...o }, c) => {
81
+ let l = i === "icon";
82
+ return /* @__PURE__ */ r("div", {
83
+ ref: c,
84
+ className: t("bg-skeleton-base rounded-ds-md", p[n], l ? "aspect-square" : m[i][n], s[a], e),
85
+ ...o
86
+ });
87
+ });
88
+ h.displayName = "SkeletonButton";
89
+ var g = {
90
+ sm: "h-ds-sm",
91
+ md: "h-ds-md",
92
+ lg: "h-ds-lg"
93
+ }, _ = n.forwardRef(({ className: e, size: n = "md", animation: i = "pulse", ...a }, o) => /* @__PURE__ */ r("div", {
94
+ ref: o,
95
+ className: t("w-full bg-skeleton-base rounded-ds-md border border-skeleton-base/30", g[n], s[i], e),
96
+ ...a
97
+ }));
98
+ _.displayName = "SkeletonInput";
99
+ var v = [
100
+ 65,
101
+ 40,
102
+ 85,
103
+ 55,
104
+ 70,
105
+ 30,
106
+ 90,
107
+ 50,
108
+ 75,
109
+ 35,
110
+ 80,
111
+ 45,
112
+ 60,
113
+ 95,
114
+ 38
115
+ ], y = n.forwardRef(({ className: e, bars: n = 7, height: i = "h-40", animation: a = "pulse", ...o }, c) => {
116
+ let l = Math.max(1, n ?? 7);
117
+ return /* @__PURE__ */ r("div", {
118
+ ref: c,
119
+ className: t("flex items-end gap-ds-02", i, e),
120
+ ...o,
121
+ children: Array.from({ length: l }).map((e, n) => {
122
+ let i = v[n % v.length];
123
+ return /* @__PURE__ */ r("div", {
124
+ className: t("flex-1 bg-skeleton-base rounded-t-ds-sm", s[a]),
125
+ style: { height: `${i}%` }
126
+ }, n);
127
+ })
128
+ });
129
+ });
130
+ y.displayName = "SkeletonChart";
131
+ var b = n.forwardRef(({ className: e, width: n = "w-full", height: a = "h-40", animation: o = "pulse", ...c }, l) => /* @__PURE__ */ r("div", {
132
+ ref: l,
133
+ className: t("bg-skeleton-base rounded-ds-md relative flex items-center justify-center", n, a, s[o], e),
134
+ ...c,
135
+ children: /* @__PURE__ */ i("svg", {
136
+ xmlns: "http://www.w3.org/2000/svg",
137
+ width: "24",
138
+ height: "24",
139
+ viewBox: "0 0 24 24",
140
+ fill: "none",
141
+ stroke: "currentColor",
142
+ strokeWidth: "1.5",
143
+ strokeLinecap: "round",
144
+ strokeLinejoin: "round",
145
+ className: "text-skeleton-shimmer opacity-40",
146
+ "aria-hidden": "true",
147
+ children: [
148
+ /* @__PURE__ */ r("rect", {
149
+ x: "3",
150
+ y: "3",
151
+ width: "18",
152
+ height: "18",
153
+ rx: "2",
154
+ ry: "2"
155
+ }),
156
+ /* @__PURE__ */ r("circle", {
157
+ cx: "8.5",
158
+ cy: "8.5",
159
+ r: "1.5"
160
+ }),
161
+ /* @__PURE__ */ r("polyline", { points: "21 15 16 10 5 21" })
162
+ ]
163
+ })
164
+ }));
165
+ b.displayName = "SkeletonImage";
166
+ var x = n.forwardRef(({ label: e = "Loading", children: t, ...n }, r) => /* @__PURE__ */ i("div", {
167
+ ref: r,
168
+ role: "status",
169
+ "aria-label": e,
170
+ "aria-busy": "true",
171
+ ...n,
172
+ children: [/* @__PURE__ */ i("span", {
173
+ className: "sr-only",
174
+ children: [e, "..."]
175
+ }), t]
176
+ }));
177
+ x.displayName = "SkeletonGroup";
178
+ //#endregion
179
+ export { o as Skeleton, l as SkeletonAvatar, h as SkeletonButton, y as SkeletonChart, x as SkeletonGroup, b as SkeletonImage, _ as SkeletonInput, f as SkeletonText, a as skeletonVariants };
package/dist/ui/slider.js CHANGED
@@ -1,36 +1,26 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
3
- import * as f from "react";
4
- import { aD as s, aE as b, aF as u, aG as h } from "../_chunks/primitives.js";
5
- import { cn as m } from "./lib/utils.js";
6
- const v = f.forwardRef(({ className: i, "aria-label": l, value: a, defaultValue: o, ...t }, n) => {
7
- const r = (a ?? o ?? [0]).length;
8
- return /* @__PURE__ */ d(
9
- s,
10
- {
11
- ref: n,
12
- value: a,
13
- defaultValue: o,
14
- className: m(
15
- "relative flex w-full touch-none select-none items-center",
16
- i
17
- ),
18
- ...t,
19
- children: [
20
- /* @__PURE__ */ e(b, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(u, { className: "absolute h-full bg-accent-9" }) }),
21
- Array.from({ length: r }, (g, c) => /* @__PURE__ */ e(
22
- h,
23
- {
24
- "aria-label": r === 1 ? l : void 0,
25
- className: "touch-target block h-6 w-6 rounded-ds-full border-2 border-accent-7 bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:scale-110 hover:shadow-raised-hover active:scale-[1.15] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled"
26
- },
27
- c
28
- ))
29
- ]
30
- }
31
- );
2
+ import { B as e, H as t, V as n, z as r } from "../_chunks/primitives.js";
3
+ import { cn as i } from "./lib/utils.js";
4
+ import * as a from "react";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ //#region src/ui/slider.tsx
7
+ var c = a.forwardRef(({ className: a, "aria-label": c, value: l, defaultValue: u, ...d }, f) => {
8
+ let p = (l ?? u ?? [0]).length;
9
+ return /* @__PURE__ */ s(e, {
10
+ ref: f,
11
+ value: l,
12
+ defaultValue: u,
13
+ className: i("relative flex w-full touch-none select-none items-center", a),
14
+ ...d,
15
+ children: [/* @__PURE__ */ o(t, {
16
+ className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-surface-raised-hover",
17
+ children: /* @__PURE__ */ o(r, { className: "absolute h-full bg-accent-9" })
18
+ }), Array.from({ length: p }, (e, t) => /* @__PURE__ */ o(n, {
19
+ "aria-label": p === 1 ? c : void 0,
20
+ className: "touch-target block h-6 w-6 rounded-ds-full border-2 border-accent-7 bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:scale-110 hover:shadow-raised-hover active:scale-[1.15] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled"
21
+ }, t))]
22
+ });
32
23
  });
33
- v.displayName = s.displayName;
34
- export {
35
- v as Slider
36
- };
24
+ c.displayName = e.displayName;
25
+ //#endregion
26
+ export { c as Slider };