@deepnoid/ui 0.1.80 → 0.1.82

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 (169) hide show
  1. package/.turbo/turbo-build.log +203 -188
  2. package/dist/{chunk-B6XJNGQL.mjs → chunk-3IILPVRA.mjs} +3 -3
  3. package/dist/{chunk-KCAGZUYM.mjs → chunk-3M6VYLOU.mjs} +1 -1
  4. package/dist/chunk-3V4HT2K5.mjs +36 -0
  5. package/dist/{chunk-TKGIYUSB.mjs → chunk-4BJPJ54Q.mjs} +4 -4
  6. package/dist/{chunk-FRKIXGG5.mjs → chunk-4LP3QDAE.mjs} +3 -3
  7. package/dist/{chunk-FZNRCPWF.mjs → chunk-54342D4Z.mjs} +4 -4
  8. package/dist/chunk-5FFTHFBX.mjs +129 -0
  9. package/dist/{chunk-JPFA7PPB.mjs → chunk-6KH2UQRM.mjs} +3 -3
  10. package/dist/{chunk-ZYS4NSXT.mjs → chunk-6PI7MYEV.mjs} +4 -4
  11. package/dist/{chunk-TUXYVNTY.mjs → chunk-6SWMJLOD.mjs} +3 -3
  12. package/dist/chunk-7VOQKIIK.mjs +1 -0
  13. package/dist/{chunk-ORXMPU2C.mjs → chunk-7VS6YXNB.mjs} +3 -3
  14. package/dist/{chunk-FZJ5PLRU.mjs → chunk-AF4I7ZQS.mjs} +1 -1
  15. package/dist/{chunk-UWXCAR5C.mjs → chunk-AI4YKKH4.mjs} +9 -9
  16. package/dist/{chunk-7JVTWM4U.mjs → chunk-BOFOJQMD.mjs} +2 -2
  17. package/dist/{chunk-XOPCRI7Z.mjs → chunk-CDXBML6O.mjs} +17 -2
  18. package/dist/{chunk-B7THOWOI.mjs → chunk-D3HZG3CH.mjs} +1 -1
  19. package/dist/{chunk-I6MFQAQE.mjs → chunk-GAZ472ZU.mjs} +3 -3
  20. package/dist/{chunk-5IESFXPF.mjs → chunk-GH4EPD35.mjs} +4 -4
  21. package/dist/{chunk-EKWUOA5B.mjs → chunk-ITWKPTSD.mjs} +1 -1
  22. package/dist/{chunk-TVTIX7MO.mjs → chunk-JBSV7GCL.mjs} +4 -4
  23. package/dist/{chunk-QFIS6N5R.mjs → chunk-JW2TIJVH.mjs} +4 -4
  24. package/dist/{chunk-SPIJ6ECD.mjs → chunk-KAKSKYMD.mjs} +5 -5
  25. package/dist/{chunk-CC2F5HQX.mjs → chunk-LMHSWLH2.mjs} +5 -5
  26. package/dist/{chunk-5M7UDEMG.mjs → chunk-MVL7HJSH.mjs} +4 -4
  27. package/dist/{chunk-FUPY7MXT.mjs → chunk-NTNIGQGI.mjs} +1 -1
  28. package/dist/{chunk-PQRAYOTJ.mjs → chunk-P6CRHHI3.mjs} +6 -6
  29. package/dist/{chunk-Q7J5FAMH.mjs → chunk-PKUJTOVJ.mjs} +6 -6
  30. package/dist/{chunk-3WBUF37A.mjs → chunk-S7Y7XUBL.mjs} +4 -4
  31. package/dist/{chunk-RSGTFDZ5.mjs → chunk-SDRGT5I7.mjs} +3 -3
  32. package/dist/{chunk-PWWPGVPS.mjs → chunk-TZHEZEJ5.mjs} +3 -3
  33. package/dist/{chunk-L65ETSUY.mjs → chunk-UE5Z7QUS.mjs} +5 -5
  34. package/dist/{chunk-STAE4IPE.mjs → chunk-WIZDHK4O.mjs} +3 -3
  35. package/dist/{chunk-SKOCUCE5.mjs → chunk-XZ5DXOJQ.mjs} +4 -4
  36. package/dist/{chunk-R7VCFJGU.mjs → chunk-Y5QV7T6D.mjs} +1 -1
  37. package/dist/components/avatar/avatar.js +17 -2
  38. package/dist/components/avatar/avatar.mjs +2 -2
  39. package/dist/components/avatar/index.js +17 -2
  40. package/dist/components/avatar/index.mjs +2 -2
  41. package/dist/components/backdrop/backdrop.js +17 -2
  42. package/dist/components/backdrop/backdrop.mjs +2 -2
  43. package/dist/components/backdrop/index.js +17 -2
  44. package/dist/components/backdrop/index.mjs +2 -2
  45. package/dist/components/breadcrumb/breadcrumb.js +17 -2
  46. package/dist/components/breadcrumb/breadcrumb.mjs +8 -8
  47. package/dist/components/breadcrumb/index.js +17 -2
  48. package/dist/components/breadcrumb/index.mjs +8 -8
  49. package/dist/components/button/button-group.js +17 -2
  50. package/dist/components/button/button-group.mjs +2 -2
  51. package/dist/components/button/button.js +17 -2
  52. package/dist/components/button/button.mjs +4 -4
  53. package/dist/components/button/icon-button.js +17 -2
  54. package/dist/components/button/icon-button.mjs +4 -4
  55. package/dist/components/button/index.js +17 -2
  56. package/dist/components/button/index.mjs +7 -7
  57. package/dist/components/button/text-button.js +17 -2
  58. package/dist/components/button/text-button.mjs +3 -3
  59. package/dist/components/charts/areaChart.js +17 -2
  60. package/dist/components/charts/areaChart.mjs +2 -2
  61. package/dist/components/charts/barChart.js +17 -2
  62. package/dist/components/charts/barChart.mjs +2 -2
  63. package/dist/components/charts/circularProgress.js +17 -2
  64. package/dist/components/charts/circularProgress.mjs +2 -2
  65. package/dist/components/charts/index.js +17 -2
  66. package/dist/components/charts/index.mjs +6 -6
  67. package/dist/components/checkbox/checkbox.js +17 -2
  68. package/dist/components/checkbox/checkbox.mjs +3 -3
  69. package/dist/components/checkbox/index.js +17 -2
  70. package/dist/components/checkbox/index.mjs +3 -3
  71. package/dist/components/chip/chip.js +17 -2
  72. package/dist/components/chip/chip.mjs +3 -3
  73. package/dist/components/chip/index.js +17 -2
  74. package/dist/components/chip/index.mjs +3 -3
  75. package/dist/components/dateTimePicker/calendar.js +17 -2
  76. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  77. package/dist/components/dateTimePicker/dateTimePicker.js +17 -2
  78. package/dist/components/dateTimePicker/dateTimePicker.mjs +8 -8
  79. package/dist/components/dateTimePicker/index.js +17 -2
  80. package/dist/components/dateTimePicker/index.mjs +8 -8
  81. package/dist/components/dateTimePicker/timePicker.js +17 -2
  82. package/dist/components/dateTimePicker/timePicker.mjs +6 -6
  83. package/dist/components/drawer/drawer.js +17 -2
  84. package/dist/components/drawer/drawer.mjs +3 -3
  85. package/dist/components/drawer/index.js +17 -2
  86. package/dist/components/drawer/index.mjs +3 -3
  87. package/dist/components/fileUpload/fileUpload.js +17 -2
  88. package/dist/components/fileUpload/fileUpload.mjs +9 -9
  89. package/dist/components/fileUpload/index.js +17 -2
  90. package/dist/components/fileUpload/index.mjs +9 -9
  91. package/dist/components/input/index.js +17 -2
  92. package/dist/components/input/index.mjs +3 -3
  93. package/dist/components/input/input.js +17 -2
  94. package/dist/components/input/input.mjs +3 -3
  95. package/dist/components/list/index.js +17 -2
  96. package/dist/components/list/index.mjs +7 -7
  97. package/dist/components/list/list.js +17 -2
  98. package/dist/components/list/list.mjs +2 -2
  99. package/dist/components/list/listItem.js +17 -2
  100. package/dist/components/list/listItem.mjs +4 -4
  101. package/dist/components/modal/index.js +17 -2
  102. package/dist/components/modal/index.mjs +9 -9
  103. package/dist/components/modal/modal.js +17 -2
  104. package/dist/components/modal/modal.mjs +9 -9
  105. package/dist/components/pagination/index.js +17 -2
  106. package/dist/components/pagination/index.mjs +4 -4
  107. package/dist/components/pagination/pagination.js +17 -2
  108. package/dist/components/pagination/pagination.mjs +4 -4
  109. package/dist/components/progress/index.d.mts +4 -0
  110. package/dist/components/progress/index.d.ts +4 -0
  111. package/dist/components/progress/index.js +519 -0
  112. package/dist/components/progress/index.mjs +12 -0
  113. package/dist/components/progress/progress.d.mts +208 -0
  114. package/dist/components/progress/progress.d.ts +208 -0
  115. package/dist/components/progress/progress.js +513 -0
  116. package/dist/components/progress/progress.mjs +11 -0
  117. package/dist/components/radio/index.js +17 -2
  118. package/dist/components/radio/index.mjs +3 -3
  119. package/dist/components/radio/radio.js +17 -2
  120. package/dist/components/radio/radio.mjs +3 -3
  121. package/dist/components/ripple/index.mjs +3 -3
  122. package/dist/components/select/index.js +17 -2
  123. package/dist/components/select/index.mjs +3 -3
  124. package/dist/components/select/select.js +17 -2
  125. package/dist/components/select/select.mjs +3 -3
  126. package/dist/components/table/definition-table.js +17 -2
  127. package/dist/components/table/definition-table.mjs +2 -2
  128. package/dist/components/table/form-table.js +17 -2
  129. package/dist/components/table/form-table.mjs +1 -1
  130. package/dist/components/table/index.js +18 -3
  131. package/dist/components/table/index.mjs +9 -9
  132. package/dist/components/table/table-body.js +18 -3
  133. package/dist/components/table/table-body.mjs +8 -8
  134. package/dist/components/table/table-head.js +18 -3
  135. package/dist/components/table/table-head.mjs +8 -8
  136. package/dist/components/table/table.js +18 -3
  137. package/dist/components/table/table.mjs +8 -8
  138. package/dist/components/tabs/index.js +17 -2
  139. package/dist/components/tabs/index.mjs +2 -2
  140. package/dist/components/tabs/tabs.js +17 -2
  141. package/dist/components/tabs/tabs.mjs +2 -2
  142. package/dist/components/textarea/index.mjs +2 -2
  143. package/dist/components/textarea/textarea.mjs +2 -2
  144. package/dist/components/toast/index.js +17 -2
  145. package/dist/components/toast/index.mjs +4 -4
  146. package/dist/components/toast/toast.js +17 -2
  147. package/dist/components/toast/toast.mjs +3 -3
  148. package/dist/components/toast/use-toast.js +17 -2
  149. package/dist/components/toast/use-toast.mjs +4 -4
  150. package/dist/components/tooltip/index.js +17 -2
  151. package/dist/components/tooltip/index.mjs +2 -2
  152. package/dist/components/tooltip/tooltip.js +17 -2
  153. package/dist/components/tooltip/tooltip.mjs +2 -2
  154. package/dist/components/tree/index.js +17 -2
  155. package/dist/components/tree/index.mjs +2 -2
  156. package/dist/components/tree/tree.js +17 -2
  157. package/dist/components/tree/tree.mjs +2 -2
  158. package/dist/hooks/useIsMounted.d.mts +8 -0
  159. package/dist/hooks/useIsMounted.d.ts +8 -0
  160. package/dist/hooks/useIsMounted.js +59 -0
  161. package/dist/hooks/useIsMounted.mjs +8 -0
  162. package/dist/index.d.mts +1 -0
  163. package/dist/index.d.ts +1 -0
  164. package/dist/index.js +168 -3
  165. package/dist/index.mjs +65 -59
  166. package/dist/utils/tailwind-variants.js +17 -2
  167. package/dist/utils/tailwind-variants.mjs +1 -1
  168. package/package.json +1 -1
  169. package/dist/{chunk-4EIGHKUO.mjs → chunk-6Q2BXHJL.mjs} +3 -3
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  toast_default
4
- } from "../../chunk-TKGIYUSB.mjs";
4
+ } from "../../chunk-4BJPJ54Q.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
6
  import "../../chunk-JP4TEWP7.mjs";
7
+ import "../../chunk-E3G5QXSH.mjs";
7
8
  import "../../chunk-RRONV7YA.mjs";
8
- import "../../chunk-XOPCRI7Z.mjs";
9
+ import "../../chunk-CDXBML6O.mjs";
9
10
  import "../../chunk-27Y6K5NK.mjs";
10
- import "../../chunk-E3G5QXSH.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  toast_default as default
@@ -215,6 +215,21 @@ var fontSize = {
215
215
  ]
216
216
  };
217
217
 
218
+ // ../tailwind-config/src/animation/bar.ts
219
+ var barAnimation = {
220
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
221
+ };
222
+ var barKeyframe = {
223
+ "indeterminate-bar": {
224
+ "0%": {
225
+ transform: "translateX(-50%) scaleX(0.2)"
226
+ },
227
+ "100%": {
228
+ transform: "translateX(100%) scaleX(1)"
229
+ }
230
+ }
231
+ };
232
+
218
233
  // ../tailwind-config/src/animation/slide.ts
219
234
  var sliceAnimation = {
220
235
  slideInFromTop: "slideInFromTop 0.5s ease-out",
@@ -310,8 +325,8 @@ var sliceKeyframe = {
310
325
  };
311
326
 
312
327
  // ../tailwind-config/src/animation/index.ts
313
- var animation = { ...sliceAnimation };
314
- var keyframes = { ...sliceKeyframe };
328
+ var animation = { ...sliceAnimation, ...barAnimation };
329
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
315
330
 
316
331
  // ../tailwind-config/src/shadow/index.ts
317
332
  var boxShadow = {
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-B7THOWOI.mjs";
5
+ } from "../../chunk-D3HZG3CH.mjs";
6
6
  import "../../chunk-ZOTHPHXA.mjs";
7
- import "../../chunk-TKGIYUSB.mjs";
7
+ import "../../chunk-4BJPJ54Q.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-JP4TEWP7.mjs";
10
+ import "../../chunk-E3G5QXSH.mjs";
10
11
  import "../../chunk-RRONV7YA.mjs";
11
- import "../../chunk-XOPCRI7Z.mjs";
12
+ import "../../chunk-CDXBML6O.mjs";
12
13
  import "../../chunk-27Y6K5NK.mjs";
13
- import "../../chunk-E3G5QXSH.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
15
15
  export {
16
16
  ToastProvider,
@@ -178,6 +178,21 @@ var fontSize = {
178
178
  ]
179
179
  };
180
180
 
181
+ // ../tailwind-config/src/animation/bar.ts
182
+ var barAnimation = {
183
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
184
+ };
185
+ var barKeyframe = {
186
+ "indeterminate-bar": {
187
+ "0%": {
188
+ transform: "translateX(-50%) scaleX(0.2)"
189
+ },
190
+ "100%": {
191
+ transform: "translateX(100%) scaleX(1)"
192
+ }
193
+ }
194
+ };
195
+
181
196
  // ../tailwind-config/src/animation/slide.ts
182
197
  var sliceAnimation = {
183
198
  slideInFromTop: "slideInFromTop 0.5s ease-out",
@@ -273,8 +288,8 @@ var sliceKeyframe = {
273
288
  };
274
289
 
275
290
  // ../tailwind-config/src/animation/index.ts
276
- var animation = { ...sliceAnimation };
277
- var keyframes = { ...sliceKeyframe };
291
+ var animation = { ...sliceAnimation, ...barAnimation };
292
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
278
293
 
279
294
  // ../tailwind-config/src/shadow/index.ts
280
295
  var boxShadow = {
@@ -2,11 +2,11 @@
2
2
  import "../../chunk-HIE2YRGA.mjs";
3
3
  import {
4
4
  tooltip_default
5
- } from "../../chunk-JPFA7PPB.mjs";
5
+ } from "../../chunk-6KH2UQRM.mjs";
6
6
  import "../../chunk-ZMOAFSYE.mjs";
7
7
  import "../../chunk-WSIADHVC.mjs";
8
- import "../../chunk-XOPCRI7Z.mjs";
9
8
  import "../../chunk-E3G5QXSH.mjs";
9
+ import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-AC6TWLRT.mjs";
11
11
  export {
12
12
  tooltip_default as Tooltip
@@ -176,6 +176,21 @@ var fontSize = {
176
176
  ]
177
177
  };
178
178
 
179
+ // ../tailwind-config/src/animation/bar.ts
180
+ var barAnimation = {
181
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
182
+ };
183
+ var barKeyframe = {
184
+ "indeterminate-bar": {
185
+ "0%": {
186
+ transform: "translateX(-50%) scaleX(0.2)"
187
+ },
188
+ "100%": {
189
+ transform: "translateX(100%) scaleX(1)"
190
+ }
191
+ }
192
+ };
193
+
179
194
  // ../tailwind-config/src/animation/slide.ts
180
195
  var sliceAnimation = {
181
196
  slideInFromTop: "slideInFromTop 0.5s ease-out",
@@ -271,8 +286,8 @@ var sliceKeyframe = {
271
286
  };
272
287
 
273
288
  // ../tailwind-config/src/animation/index.ts
274
- var animation = { ...sliceAnimation };
275
- var keyframes = { ...sliceKeyframe };
289
+ var animation = { ...sliceAnimation, ...barAnimation };
290
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
276
291
 
277
292
  // ../tailwind-config/src/shadow/index.ts
278
293
  var boxShadow = {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  tooltip_default
4
- } from "../../chunk-JPFA7PPB.mjs";
4
+ } from "../../chunk-6KH2UQRM.mjs";
5
5
  import "../../chunk-ZMOAFSYE.mjs";
6
6
  import "../../chunk-WSIADHVC.mjs";
7
- import "../../chunk-XOPCRI7Z.mjs";
8
7
  import "../../chunk-E3G5QXSH.mjs";
8
+ import "../../chunk-CDXBML6O.mjs";
9
9
  import "../../chunk-AC6TWLRT.mjs";
10
10
  export {
11
11
  tooltip_default as default
@@ -177,6 +177,21 @@ var fontSize = {
177
177
  ]
178
178
  };
179
179
 
180
+ // ../tailwind-config/src/animation/bar.ts
181
+ var barAnimation = {
182
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
183
+ };
184
+ var barKeyframe = {
185
+ "indeterminate-bar": {
186
+ "0%": {
187
+ transform: "translateX(-50%) scaleX(0.2)"
188
+ },
189
+ "100%": {
190
+ transform: "translateX(100%) scaleX(1)"
191
+ }
192
+ }
193
+ };
194
+
180
195
  // ../tailwind-config/src/animation/slide.ts
181
196
  var sliceAnimation = {
182
197
  slideInFromTop: "slideInFromTop 0.5s ease-out",
@@ -272,8 +287,8 @@ var sliceKeyframe = {
272
287
  };
273
288
 
274
289
  // ../tailwind-config/src/animation/index.ts
275
- var animation = { ...sliceAnimation };
276
- var keyframes = { ...sliceKeyframe };
290
+ var animation = { ...sliceAnimation, ...barAnimation };
291
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
277
292
 
278
293
  // ../tailwind-config/src/shadow/index.ts
279
294
  var boxShadow = {
@@ -2,11 +2,11 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-R7VCFJGU.mjs";
5
+ } from "../../chunk-Y5QV7T6D.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-JP4TEWP7.mjs";
8
8
  import "../../chunk-RRONV7YA.mjs";
9
- import "../../chunk-XOPCRI7Z.mjs";
9
+ import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
@@ -176,6 +176,21 @@ var fontSize = {
176
176
  ]
177
177
  };
178
178
 
179
+ // ../tailwind-config/src/animation/bar.ts
180
+ var barAnimation = {
181
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
182
+ };
183
+ var barKeyframe = {
184
+ "indeterminate-bar": {
185
+ "0%": {
186
+ transform: "translateX(-50%) scaleX(0.2)"
187
+ },
188
+ "100%": {
189
+ transform: "translateX(100%) scaleX(1)"
190
+ }
191
+ }
192
+ };
193
+
179
194
  // ../tailwind-config/src/animation/slide.ts
180
195
  var sliceAnimation = {
181
196
  slideInFromTop: "slideInFromTop 0.5s ease-out",
@@ -271,8 +286,8 @@ var sliceKeyframe = {
271
286
  };
272
287
 
273
288
  // ../tailwind-config/src/animation/index.ts
274
- var animation = { ...sliceAnimation };
275
- var keyframes = { ...sliceKeyframe };
289
+ var animation = { ...sliceAnimation, ...barAnimation };
290
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
276
291
 
277
292
  // ../tailwind-config/src/shadow/index.ts
278
293
  var boxShadow = {
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  Tree,
4
4
  tree_default
5
- } from "../../chunk-R7VCFJGU.mjs";
5
+ } from "../../chunk-Y5QV7T6D.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-JP4TEWP7.mjs";
8
8
  import "../../chunk-RRONV7YA.mjs";
9
- import "../../chunk-XOPCRI7Z.mjs";
9
+ import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
@@ -0,0 +1,8 @@
1
+ type UseIsMountedProps = {
2
+ rerender?: boolean;
3
+ delay?: number;
4
+ };
5
+ declare function useIsMounted(props?: UseIsMountedProps): (boolean | (() => boolean))[];
6
+ type UseIsMountedReturn = ReturnType<typeof useIsMounted>;
7
+
8
+ export { type UseIsMountedProps, type UseIsMountedReturn, useIsMounted };
@@ -0,0 +1,8 @@
1
+ type UseIsMountedProps = {
2
+ rerender?: boolean;
3
+ delay?: number;
4
+ };
5
+ declare function useIsMounted(props?: UseIsMountedProps): (boolean | (() => boolean))[];
6
+ type UseIsMountedReturn = ReturnType<typeof useIsMounted>;
7
+
8
+ export { type UseIsMountedProps, type UseIsMountedReturn, useIsMounted };
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/hooks/useIsMounted.ts
22
+ var useIsMounted_exports = {};
23
+ __export(useIsMounted_exports, {
24
+ useIsMounted: () => useIsMounted
25
+ });
26
+ module.exports = __toCommonJS(useIsMounted_exports);
27
+ var import_react = require("react");
28
+ function useIsMounted(props = {}) {
29
+ const { rerender = false, delay = 0 } = props;
30
+ const isMountedRef = (0, import_react.useRef)(false);
31
+ const [isMounted, setIsMounted] = (0, import_react.useState)(false);
32
+ (0, import_react.useEffect)(() => {
33
+ isMountedRef.current = true;
34
+ let timer = null;
35
+ if (rerender) {
36
+ if (delay > 0) {
37
+ timer = setTimeout(() => {
38
+ setIsMounted(true);
39
+ }, delay);
40
+ } else {
41
+ setIsMounted(true);
42
+ }
43
+ }
44
+ return () => {
45
+ isMountedRef.current = false;
46
+ if (rerender) {
47
+ setIsMounted(false);
48
+ }
49
+ if (timer) {
50
+ clearTimeout(timer);
51
+ }
52
+ };
53
+ }, [rerender]);
54
+ return [(0, import_react.useCallback)(() => isMountedRef.current, []), isMounted];
55
+ }
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ useIsMounted
59
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ useIsMounted
4
+ } from "../chunk-3V4HT2K5.mjs";
5
+ import "../chunk-AC6TWLRT.mjs";
6
+ export {
7
+ useIsMounted
8
+ };
package/dist/index.d.mts CHANGED
@@ -32,6 +32,7 @@ export { default as Skeleton } from './components/skeleton/skeleton.mjs';
32
32
  export { default as CircularProgress } from './components/charts/circularProgress.mjs';
33
33
  export { default as AreaChart } from './components/charts/areaChart.mjs';
34
34
  export { default as BarChart } from './components/charts/barChart.mjs';
35
+ export { default as Progress } from './components/progress/progress.mjs';
35
36
  export { tv } from './utils/tailwind-variants.mjs';
36
37
  export { deepnoidUi } from '@deepnoid/tailwind-config';
37
38
  export { VariantProps } from 'tailwind-variants';
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ export { default as Skeleton } from './components/skeleton/skeleton.js';
32
32
  export { default as CircularProgress } from './components/charts/circularProgress.js';
33
33
  export { default as AreaChart } from './components/charts/areaChart.js';
34
34
  export { default as BarChart } from './components/charts/barChart.js';
35
+ export { default as Progress } from './components/progress/progress.js';
35
36
  export { tv } from './utils/tailwind-variants.js';
36
37
  export { deepnoidUi } from '@deepnoid/tailwind-config';
37
38
  export { VariantProps } from 'tailwind-variants';
package/dist/index.js CHANGED
@@ -123,6 +123,7 @@ __export(index_exports, {
123
123
  ListItem: () => listItem_default,
124
124
  Modal: () => modal_default,
125
125
  Pagination: () => pagination_default,
126
+ Progress: () => progress_default,
126
127
  Radio: () => radio_default,
127
128
  ScrollArea: () => scrollArea_default,
128
129
  Select: () => select_default,
@@ -4961,6 +4962,21 @@ var fontSize = {
4961
4962
  ]
4962
4963
  };
4963
4964
 
4965
+ // ../tailwind-config/src/animation/bar.ts
4966
+ var barAnimation = {
4967
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
4968
+ };
4969
+ var barKeyframe = {
4970
+ "indeterminate-bar": {
4971
+ "0%": {
4972
+ transform: "translateX(-50%) scaleX(0.2)"
4973
+ },
4974
+ "100%": {
4975
+ transform: "translateX(100%) scaleX(1)"
4976
+ }
4977
+ }
4978
+ };
4979
+
4964
4980
  // ../tailwind-config/src/animation/slide.ts
4965
4981
  var sliceAnimation = {
4966
4982
  slideInFromTop: "slideInFromTop 0.5s ease-out",
@@ -5056,8 +5072,8 @@ var sliceKeyframe = {
5056
5072
  };
5057
5073
 
5058
5074
  // ../tailwind-config/src/animation/index.ts
5059
- var animation = { ...sliceAnimation };
5060
- var keyframes = { ...sliceKeyframe };
5075
+ var animation = { ...sliceAnimation, ...barAnimation };
5076
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
5061
5077
 
5062
5078
  // ../tailwind-config/src/shadow/index.ts
5063
5079
  var boxShadow = {
@@ -7725,7 +7741,7 @@ var TableHead = ({
7725
7741
  flexShrink: 0,
7726
7742
  flexGrow: 0,
7727
7743
  boxSizing: "border-box"
7728
- } : column ? getCellStyle(column) : void 0,
7744
+ } : column ? { ...getCellStyle(column), textAlign: "center" } : void 0,
7729
7745
  children: content
7730
7746
  },
7731
7747
  key
@@ -11831,6 +11847,154 @@ var barChartStyle = tv({
11831
11847
  color: "primary"
11832
11848
  }
11833
11849
  });
11850
+
11851
+ // src/components/progress/progress.tsx
11852
+ var import_react39 = require("react");
11853
+
11854
+ // src/hooks/useIsMounted.ts
11855
+ var import_react38 = require("react");
11856
+ function useIsMounted(props = {}) {
11857
+ const { rerender = false, delay = 0 } = props;
11858
+ const isMountedRef = (0, import_react38.useRef)(false);
11859
+ const [isMounted, setIsMounted] = (0, import_react38.useState)(false);
11860
+ (0, import_react38.useEffect)(() => {
11861
+ isMountedRef.current = true;
11862
+ let timer = null;
11863
+ if (rerender) {
11864
+ if (delay > 0) {
11865
+ timer = setTimeout(() => {
11866
+ setIsMounted(true);
11867
+ }, delay);
11868
+ } else {
11869
+ setIsMounted(true);
11870
+ }
11871
+ }
11872
+ return () => {
11873
+ isMountedRef.current = false;
11874
+ if (rerender) {
11875
+ setIsMounted(false);
11876
+ }
11877
+ if (timer) {
11878
+ clearTimeout(timer);
11879
+ }
11880
+ };
11881
+ }, [rerender]);
11882
+ return [(0, import_react38.useCallback)(() => isMountedRef.current, []), isMounted];
11883
+ }
11884
+
11885
+ // src/components/progress/progress.tsx
11886
+ var import_jsx_runtime41 = require("react/jsx-runtime");
11887
+ var Progress = (originalProps) => {
11888
+ const [props, variantProps] = mapPropsVariants(originalProps, progressStyle.variantKeys);
11889
+ const { children, classNames, value = 0, minValue = 0, maxValue = 100, ...progressProps } = props;
11890
+ const isIndeterminate = originalProps.isIndeterminate;
11891
+ const [, isMounted] = useIsMounted({
11892
+ rerender: true,
11893
+ delay: 100
11894
+ });
11895
+ const selfMounted = variantProps.disableAnimation ? true : isMounted;
11896
+ const percentage = (0, import_react39.useMemo)(
11897
+ () => isIndeterminate || !selfMounted ? void 0 : clampPercentage((value - minValue) / (maxValue - minValue) * 100),
11898
+ [selfMounted, isIndeterminate, value, minValue, maxValue]
11899
+ );
11900
+ const slots = (0, import_react39.useMemo)(() => progressStyle({ ...variantProps }), [variantProps]);
11901
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11902
+ "div",
11903
+ {
11904
+ className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
11905
+ style: {
11906
+ transform: `translateX(-${100 - (percentage || 0)}%)`
11907
+ }
11908
+ }
11909
+ ) }) });
11910
+ };
11911
+ var progress_default = Progress;
11912
+ var progressStyle = tv({
11913
+ slots: {
11914
+ base: ["flex flex-col gap-2 w-full"],
11915
+ track: ["z-0", "relative", "bg-neutral-soft", "overflow-hidden", "rtl:rotate-180"],
11916
+ indicator: ["h-full"],
11917
+ value: ""
11918
+ },
11919
+ variants: {
11920
+ color: {
11921
+ primary: {
11922
+ indicator: ["bg-gradient-to-r from-primary-light via-primary-light to-primary-main"]
11923
+ },
11924
+ secondary: {
11925
+ indicator: ["bg-gradient-to-r from-secondary-light via-secondary-light to-secondary-main"]
11926
+ },
11927
+ neutral: {
11928
+ indicator: ["bg-gradient-to-r from-neutral-light via-neutral-light to-neutral-main"]
11929
+ },
11930
+ info: {
11931
+ indicator: ["bg-gradient-to-r from-info-light via-info-light to-info-main"]
11932
+ },
11933
+ success: {
11934
+ indicator: ["bg-gradient-to-r from-success-light via-success-light to-success-main"]
11935
+ },
11936
+ warning: {
11937
+ indicator: ["bg-gradient-to-r from-warning-light via-warning-light to-warning-main"]
11938
+ },
11939
+ danger: {
11940
+ indicator: ["bg-gradient-to-r from-danger-light via-danger-light to-danger-main"]
11941
+ }
11942
+ },
11943
+ size: {
11944
+ sm: {
11945
+ track: ["h-[4px]", "rounded-sm"],
11946
+ indicator: "rounded-sm"
11947
+ },
11948
+ md: {
11949
+ track: ["h-[6px]", "rounded-md"],
11950
+ indicator: "rounded-md"
11951
+ },
11952
+ lg: {
11953
+ track: ["h-[8px]", "rounded-lg"],
11954
+ indicator: "rounded-lg"
11955
+ },
11956
+ xl: {
11957
+ track: ["h-[10px]", "rounded-xl"],
11958
+ indicator: "rounded-xl"
11959
+ }
11960
+ },
11961
+ isDisabled: {
11962
+ true: {
11963
+ base: "opacity-disabled cursor-not-allowed"
11964
+ }
11965
+ },
11966
+ disableAnimation: {
11967
+ true: {},
11968
+ false: {
11969
+ indicator: "transition-transform !duration-500"
11970
+ }
11971
+ },
11972
+ isIndeterminate: {
11973
+ true: {
11974
+ indicator: ["absolute", "w-full", "origin-left", "animate-indeterminate-bar"]
11975
+ }
11976
+ }
11977
+ },
11978
+ defaultVariants: {
11979
+ color: "primary",
11980
+ size: "md",
11981
+ isDisabled: false,
11982
+ disableAnimation: false,
11983
+ isIndeterminate: false
11984
+ },
11985
+ compoundVariants: [
11986
+ {
11987
+ isIndeterminate: true,
11988
+ disableAnimation: false,
11989
+ className: {
11990
+ indicator: "!transition-none motion-reduce:transition-none"
11991
+ }
11992
+ }
11993
+ ]
11994
+ });
11995
+ var clampPercentage = (value) => {
11996
+ return Math.min(100, Math.max(0, value));
11997
+ };
11834
11998
  // Annotate the CommonJS export names for ESM import in node:
11835
11999
  0 && (module.exports = {
11836
12000
  AreaChart,
@@ -11854,6 +12018,7 @@ var barChartStyle = tv({
11854
12018
  ListItem,
11855
12019
  Modal,
11856
12020
  Pagination,
12021
+ Progress,
11857
12022
  Radio,
11858
12023
  ScrollArea,
11859
12024
  Select,