@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,206 +1,227 @@
1
1
  "use client";
2
- import { jsxs as M, jsx as e } from "react/jsx-runtime";
3
- import * as y from "react";
4
- import { cn as $ } from "./lib/utils.js";
5
- import { u as v, m as c, A as g } from "../_chunks/framer.js";
6
- const N = {
7
- sm: "h-ico-sm w-ico-sm",
8
- md: "h-ico-md w-ico-md",
9
- lg: "h-ico-lg w-ico-lg"
10
- }, S = { sm: 3, md: 3, lg: 4 }, K = { sm: 1.8, md: 2, lg: 2.5 }, n = 10, o = 2 * Math.PI * n, T = {
11
- spinning: "Loading...",
12
- success: "Complete",
13
- error: "Error"
14
- }, b = {
15
- spinning: "var(--color-accent-9)",
16
- success: "var(--color-success-9)",
17
- error: "var(--color-error-9)"
18
- }, F = "M7 12.5l3 3 7-7", P = "M8 8l8 8M16 8l-8 8", j = "M5 12.5l4 4 10-10", U = "M6 6l12 12M18 6l-12 12", B = y.forwardRef(
19
- ({ size: k = "md", state: r = "spinning", variant: L = "filled", delay: l = 0, onComplete: C, className: O }, E) => {
20
- const s = v(), [I, x] = y.useState(l === 0);
21
- if (y.useEffect(() => {
22
- if (l <= 0) {
23
- x(!0);
24
- return;
25
- }
26
- const W = setTimeout(() => x(!0), l);
27
- return () => clearTimeout(W);
28
- }, [l]), !I) return null;
29
- const i = S[k], d = K[k], p = r === "spinning", a = r === "success" || r === "error", t = L === "filled", u = L === "bare" && r === "spinning" ? "currentColor" : b[r], h = t ? "white" : "currentColor", A = t ? F : j, R = t ? P : U, f = 0.4, _ = 0.3, w = 0.25, m = t ? 0.5 : 0.35, D = 0.35;
30
- return /* @__PURE__ */ M("span", { ref: E, role: "status", className: $("inline-flex", O), children: [
31
- /* @__PURE__ */ M(
32
- "svg",
33
- {
34
- className: N[k],
35
- viewBox: "0 0 24 24",
36
- fill: "none",
37
- xmlns: "http://www.w3.org/2000/svg",
38
- children: [
39
- s ? !(a && !t) && /* @__PURE__ */ e(
40
- "circle",
41
- {
42
- cx: "12",
43
- cy: "12",
44
- r: n,
45
- stroke: "var(--color-surface-border)",
46
- strokeWidth: i,
47
- fill: "none"
48
- }
49
- ) : /* @__PURE__ */ e(
50
- c.circle,
51
- {
52
- cx: "12",
53
- cy: "12",
54
- r: n,
55
- stroke: "var(--color-surface-border)",
56
- strokeWidth: i,
57
- fill: "none",
58
- animate: { opacity: a && !t ? 0 : 1 },
59
- transition: { duration: 0.2, delay: a && !t ? f : 0 }
60
- }
61
- ),
62
- s ? /* @__PURE__ */ e(
63
- "circle",
64
- {
65
- cx: "12",
66
- cy: "12",
67
- r: n,
68
- stroke: u,
69
- strokeWidth: i,
70
- fill: "none",
71
- strokeLinecap: "round",
72
- strokeDasharray: p ? `${o * 0.75} ${o * 0.25}` : `${o} 0`,
73
- style: {
74
- transformOrigin: "center",
75
- transform: p ? "rotate(-90deg)" : void 0,
76
- opacity: a && !t ? 0 : 1
77
- }
78
- }
79
- ) : /* @__PURE__ */ e(
80
- c.circle,
81
- {
82
- cx: "12",
83
- cy: "12",
84
- r: n,
85
- stroke: u,
86
- strokeWidth: i,
87
- fill: "none",
88
- strokeLinecap: "round",
89
- style: { transformOrigin: "center" },
90
- animate: p ? {
91
- rotate: [0, 360],
92
- strokeDasharray: [
93
- `${o * 0.1} ${o * 0.9}`,
94
- `${o * 0.75} ${o * 0.25}`,
95
- `${o * 0.1} ${o * 0.9}`
96
- ]
97
- } : {
98
- rotate: 0,
99
- strokeDasharray: `${o} 0`,
100
- // In bare mode, fade out the arc after it completes
101
- ...!t && { opacity: 0 }
102
- },
103
- transition: p ? {
104
- rotate: { duration: 1, repeat: 1 / 0, ease: "linear" },
105
- strokeDasharray: { duration: 1.5, repeat: 1 / 0, ease: "easeInOut" }
106
- } : {
107
- rotate: { duration: 0.3, ease: "easeOut" },
108
- strokeDasharray: { duration: f, ease: "easeInOut" },
109
- ...!t && { opacity: { duration: 0.2, delay: f } }
110
- }
111
- }
112
- ),
113
- /* @__PURE__ */ e(g, { children: a && t && (s ? /* @__PURE__ */ e(
114
- "circle",
115
- {
116
- cx: "12",
117
- cy: "12",
118
- r: n + i / 2,
119
- fill: u,
120
- stroke: "none"
121
- },
122
- "fill-static"
123
- ) : /* @__PURE__ */ e(
124
- c.circle,
125
- {
126
- cx: "12",
127
- cy: "12",
128
- r: n + i / 2,
129
- fill: u,
130
- stroke: "none",
131
- initial: { opacity: 0 },
132
- animate: { opacity: 1 },
133
- transition: { duration: w, delay: _, ease: "easeOut" },
134
- style: { transformOrigin: "center" }
135
- },
136
- "fill"
137
- )) }),
138
- /* @__PURE__ */ e(g, { children: r === "success" && (s ? /* @__PURE__ */ e(
139
- "path",
140
- {
141
- d: A,
142
- stroke: h,
143
- strokeWidth: d,
144
- strokeLinecap: "round",
145
- strokeLinejoin: "round",
146
- fill: "none"
147
- },
148
- "check-static"
149
- ) : /* @__PURE__ */ e(
150
- c.path,
151
- {
152
- d: A,
153
- stroke: h,
154
- strokeWidth: d,
155
- strokeLinecap: "round",
156
- strokeLinejoin: "round",
157
- fill: "none",
158
- initial: { pathLength: 0, opacity: 0 },
159
- animate: { pathLength: 1, opacity: 1 },
160
- transition: {
161
- pathLength: { duration: D, ease: "easeOut", delay: m },
162
- opacity: { duration: 0.1, delay: m }
163
- },
164
- onAnimationComplete: () => C?.()
165
- },
166
- "check"
167
- )) }),
168
- /* @__PURE__ */ e(g, { children: r === "error" && (s ? /* @__PURE__ */ e(
169
- "path",
170
- {
171
- d: R,
172
- stroke: h,
173
- strokeWidth: d,
174
- strokeLinecap: "round",
175
- fill: "none"
176
- },
177
- "x-static"
178
- ) : /* @__PURE__ */ e(
179
- c.path,
180
- {
181
- d: R,
182
- stroke: h,
183
- strokeWidth: d,
184
- strokeLinecap: "round",
185
- fill: "none",
186
- initial: { pathLength: 0, opacity: 0 },
187
- animate: { pathLength: 1, opacity: 1 },
188
- transition: {
189
- pathLength: { duration: D, ease: "easeOut", delay: m },
190
- opacity: { duration: 0.1, delay: m }
191
- },
192
- onAnimationComplete: () => C?.()
193
- },
194
- "x"
195
- )) })
196
- ]
197
- }
198
- ),
199
- /* @__PURE__ */ e("span", { className: "sr-only", children: T[r] })
200
- ] });
201
- }
202
- );
203
- B.displayName = "Spinner";
204
- export {
205
- B as Spinner
206
- };
2
+ import { a as e, c as t, n } from "../_chunks/framer.js";
3
+ import { cn as r } from "./lib/utils.js";
4
+ import * as i from "react";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ //#region src/ui/spinner.tsx
7
+ var s = {
8
+ sm: "h-ico-sm w-ico-sm",
9
+ md: "h-ico-md w-ico-md",
10
+ lg: "h-ico-lg w-ico-lg"
11
+ }, c = {
12
+ sm: 3,
13
+ md: 3,
14
+ lg: 4
15
+ }, l = {
16
+ sm: 1.8,
17
+ md: 2,
18
+ lg: 2.5
19
+ }, u = 10, d = 2 * Math.PI * u, f = {
20
+ spinning: "Loading...",
21
+ success: "Complete",
22
+ error: "Error"
23
+ }, p = {
24
+ spinning: "var(--color-accent-9)",
25
+ success: "var(--color-success-9)",
26
+ error: "var(--color-error-9)"
27
+ }, m = "M7 12.5l3 3 7-7", h = "M8 8l8 8M16 8l-8 8", g = "M5 12.5l4 4 10-10", _ = "M6 6l12 12M18 6l-12 12", v = i.forwardRef(({ size: v = "md", state: y = "spinning", variant: b = "filled", delay: x = 0, onComplete: S, className: C }, w) => {
28
+ let T = n(), [E, D] = i.useState(x === 0);
29
+ if (i.useEffect(() => {
30
+ if (x <= 0) {
31
+ D(!0);
32
+ return;
33
+ }
34
+ let e = setTimeout(() => D(!0), x);
35
+ return () => clearTimeout(e);
36
+ }, [x]), !E) return null;
37
+ let O = c[v], k = l[v], A = y === "spinning", j = y === "success" || y === "error", M = b === "filled", N = b === "bare" && y === "spinning" ? "currentColor" : p[y], P = M ? "white" : "currentColor", F = M ? m : g, I = M ? h : _, L = .4, R = M ? .5 : .35, z = .35;
38
+ return /* @__PURE__ */ o("span", {
39
+ ref: w,
40
+ role: "status",
41
+ className: r("inline-flex", C),
42
+ children: [/* @__PURE__ */ o("svg", {
43
+ className: s[v],
44
+ viewBox: "0 0 24 24",
45
+ fill: "none",
46
+ xmlns: "http://www.w3.org/2000/svg",
47
+ children: [
48
+ T ? !(j && !M) && /* @__PURE__ */ a("circle", {
49
+ cx: "12",
50
+ cy: "12",
51
+ r: u,
52
+ stroke: "var(--color-surface-border)",
53
+ strokeWidth: O,
54
+ fill: "none"
55
+ }) : /* @__PURE__ */ a(e.circle, {
56
+ cx: "12",
57
+ cy: "12",
58
+ r: u,
59
+ stroke: "var(--color-surface-border)",
60
+ strokeWidth: O,
61
+ fill: "none",
62
+ animate: { opacity: j && !M ? 0 : 1 },
63
+ transition: {
64
+ duration: .2,
65
+ delay: j && !M ? L : 0
66
+ }
67
+ }),
68
+ T ? /* @__PURE__ */ a("circle", {
69
+ cx: "12",
70
+ cy: "12",
71
+ r: u,
72
+ stroke: N,
73
+ strokeWidth: O,
74
+ fill: "none",
75
+ strokeLinecap: "round",
76
+ strokeDasharray: A ? `${d * .75} ${d * .25}` : `${d} 0`,
77
+ style: {
78
+ transformOrigin: "center",
79
+ transform: A ? "rotate(-90deg)" : void 0,
80
+ opacity: j && !M ? 0 : 1
81
+ }
82
+ }) : /* @__PURE__ */ a(e.circle, {
83
+ cx: "12",
84
+ cy: "12",
85
+ r: u,
86
+ stroke: N,
87
+ strokeWidth: O,
88
+ fill: "none",
89
+ strokeLinecap: "round",
90
+ style: { transformOrigin: "center" },
91
+ animate: A ? {
92
+ rotate: [0, 360],
93
+ strokeDasharray: [
94
+ `${d * .1} ${d * .9}`,
95
+ `${d * .75} ${d * .25}`,
96
+ `${d * .1} ${d * .9}`
97
+ ]
98
+ } : {
99
+ rotate: 0,
100
+ strokeDasharray: `${d} 0`,
101
+ ...!M && { opacity: 0 }
102
+ },
103
+ transition: A ? {
104
+ rotate: {
105
+ duration: 1,
106
+ repeat: Infinity,
107
+ ease: "linear"
108
+ },
109
+ strokeDasharray: {
110
+ duration: 1.5,
111
+ repeat: Infinity,
112
+ ease: "easeInOut"
113
+ }
114
+ } : {
115
+ rotate: {
116
+ duration: .3,
117
+ ease: "easeOut"
118
+ },
119
+ strokeDasharray: {
120
+ duration: L,
121
+ ease: "easeInOut"
122
+ },
123
+ ...!M && { opacity: {
124
+ duration: .2,
125
+ delay: L
126
+ } }
127
+ }
128
+ }),
129
+ /* @__PURE__ */ a(t, { children: j && M && (T ? /* @__PURE__ */ a("circle", {
130
+ cx: "12",
131
+ cy: "12",
132
+ r: u + O / 2,
133
+ fill: N,
134
+ stroke: "none"
135
+ }, "fill-static") : /* @__PURE__ */ a(e.circle, {
136
+ cx: "12",
137
+ cy: "12",
138
+ r: u + O / 2,
139
+ fill: N,
140
+ stroke: "none",
141
+ initial: { opacity: 0 },
142
+ animate: { opacity: 1 },
143
+ transition: {
144
+ duration: .25,
145
+ delay: .3,
146
+ ease: "easeOut"
147
+ },
148
+ style: { transformOrigin: "center" }
149
+ }, "fill")) }),
150
+ /* @__PURE__ */ a(t, { children: y === "success" && (T ? /* @__PURE__ */ a("path", {
151
+ d: F,
152
+ stroke: P,
153
+ strokeWidth: k,
154
+ strokeLinecap: "round",
155
+ strokeLinejoin: "round",
156
+ fill: "none"
157
+ }, "check-static") : /* @__PURE__ */ a(e.path, {
158
+ d: F,
159
+ stroke: P,
160
+ strokeWidth: k,
161
+ strokeLinecap: "round",
162
+ strokeLinejoin: "round",
163
+ fill: "none",
164
+ initial: {
165
+ pathLength: 0,
166
+ opacity: 0
167
+ },
168
+ animate: {
169
+ pathLength: 1,
170
+ opacity: 1
171
+ },
172
+ transition: {
173
+ pathLength: {
174
+ duration: z,
175
+ ease: "easeOut",
176
+ delay: R
177
+ },
178
+ opacity: {
179
+ duration: .1,
180
+ delay: R
181
+ }
182
+ },
183
+ onAnimationComplete: () => S?.()
184
+ }, "check")) }),
185
+ /* @__PURE__ */ a(t, { children: y === "error" && (T ? /* @__PURE__ */ a("path", {
186
+ d: I,
187
+ stroke: P,
188
+ strokeWidth: k,
189
+ strokeLinecap: "round",
190
+ fill: "none"
191
+ }, "x-static") : /* @__PURE__ */ a(e.path, {
192
+ d: I,
193
+ stroke: P,
194
+ strokeWidth: k,
195
+ strokeLinecap: "round",
196
+ fill: "none",
197
+ initial: {
198
+ pathLength: 0,
199
+ opacity: 0
200
+ },
201
+ animate: {
202
+ pathLength: 1,
203
+ opacity: 1
204
+ },
205
+ transition: {
206
+ pathLength: {
207
+ duration: z,
208
+ ease: "easeOut",
209
+ delay: R
210
+ },
211
+ opacity: {
212
+ duration: .1,
213
+ delay: R
214
+ }
215
+ },
216
+ onAnimationComplete: () => S?.()
217
+ }, "x")) })
218
+ ]
219
+ }), /* @__PURE__ */ a("span", {
220
+ className: "sr-only",
221
+ children: f[y]
222
+ })]
223
+ });
224
+ });
225
+ v.displayName = "Spinner";
226
+ //#endregion
227
+ export { v as Spinner };