@deepnoid/ui 0.1.81 → 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 (168) hide show
  1. package/.turbo/turbo-build.log +212 -197
  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-LNVDBHVI.mjs → chunk-AI4YKKH4.mjs} +7 -7
  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-OKO3XRJS.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-PDY7UYKZ.mjs → chunk-P6CRHHI3.mjs} +3 -3
  29. package/dist/{chunk-RN76ARTS.mjs → chunk-PKUJTOVJ.mjs} +3 -3
  30. package/dist/{chunk-3WBUF37A.mjs → chunk-S7Y7XUBL.mjs} +4 -4
  31. package/dist/{chunk-7Q2WQJ6U.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 +7 -7
  47. package/dist/components/breadcrumb/index.js +17 -2
  48. package/dist/components/breadcrumb/index.mjs +7 -7
  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 +3 -3
  53. package/dist/components/button/icon-button.js +17 -2
  54. package/dist/components/button/icon-button.mjs +3 -3
  55. package/dist/components/button/index.js +17 -2
  56. package/dist/components/button/index.mjs +6 -6
  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 +8 -8
  89. package/dist/components/fileUpload/index.js +17 -2
  90. package/dist/components/fileUpload/index.mjs +8 -8
  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 +8 -8
  103. package/dist/components/modal/modal.js +17 -2
  104. package/dist/components/modal/modal.mjs +8 -8
  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/select/index.js +17 -2
  122. package/dist/components/select/index.mjs +3 -3
  123. package/dist/components/select/select.js +17 -2
  124. package/dist/components/select/select.mjs +3 -3
  125. package/dist/components/table/definition-table.js +17 -2
  126. package/dist/components/table/definition-table.mjs +2 -2
  127. package/dist/components/table/form-table.js +17 -2
  128. package/dist/components/table/form-table.mjs +1 -1
  129. package/dist/components/table/index.js +17 -2
  130. package/dist/components/table/index.mjs +9 -9
  131. package/dist/components/table/table-body.js +17 -2
  132. package/dist/components/table/table-body.mjs +8 -8
  133. package/dist/components/table/table-head.js +17 -2
  134. package/dist/components/table/table-head.mjs +8 -8
  135. package/dist/components/table/table.js +17 -2
  136. package/dist/components/table/table.mjs +8 -8
  137. package/dist/components/tabs/index.js +17 -2
  138. package/dist/components/tabs/index.mjs +2 -2
  139. package/dist/components/tabs/tabs.js +17 -2
  140. package/dist/components/tabs/tabs.mjs +2 -2
  141. package/dist/components/textarea/index.mjs +2 -2
  142. package/dist/components/textarea/textarea.mjs +2 -2
  143. package/dist/components/toast/index.js +17 -2
  144. package/dist/components/toast/index.mjs +4 -4
  145. package/dist/components/toast/toast.js +17 -2
  146. package/dist/components/toast/toast.mjs +3 -3
  147. package/dist/components/toast/use-toast.js +17 -2
  148. package/dist/components/toast/use-toast.mjs +4 -4
  149. package/dist/components/tooltip/index.js +17 -2
  150. package/dist/components/tooltip/index.mjs +2 -2
  151. package/dist/components/tooltip/tooltip.js +17 -2
  152. package/dist/components/tooltip/tooltip.mjs +2 -2
  153. package/dist/components/tree/index.js +17 -2
  154. package/dist/components/tree/index.mjs +2 -2
  155. package/dist/components/tree/tree.js +17 -2
  156. package/dist/components/tree/tree.mjs +2 -2
  157. package/dist/hooks/useIsMounted.d.mts +8 -0
  158. package/dist/hooks/useIsMounted.d.ts +8 -0
  159. package/dist/hooks/useIsMounted.js +59 -0
  160. package/dist/hooks/useIsMounted.mjs +8 -0
  161. package/dist/index.d.mts +1 -0
  162. package/dist/index.d.ts +1 -0
  163. package/dist/index.js +167 -2
  164. package/dist/index.mjs +63 -57
  165. package/dist/utils/tailwind-variants.js +17 -2
  166. package/dist/utils/tailwind-variants.mjs +1 -1
  167. package/package.json +1 -1
  168. package/dist/{chunk-4EIGHKUO.mjs → chunk-6Q2BXHJL.mjs} +3 -3
@@ -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,16 +2,16 @@
2
2
  import {
3
3
  paginationStyle,
4
4
  pagination_default
5
- } from "../../chunk-CC2F5HQX.mjs";
5
+ } from "../../chunk-LMHSWLH2.mjs";
6
6
  import "../../chunk-F3HENRVM.mjs";
7
7
  import "../../chunk-2GCSFWHD.mjs";
8
- import "../../chunk-5M7UDEMG.mjs";
8
+ import "../../chunk-MVL7HJSH.mjs";
9
9
  import "../../chunk-ZYIIXWVY.mjs";
10
10
  import "../../chunk-JP4TEWP7.mjs";
11
+ import "../../chunk-E3G5QXSH.mjs";
11
12
  import "../../chunk-RRONV7YA.mjs";
12
- import "../../chunk-XOPCRI7Z.mjs";
13
+ import "../../chunk-CDXBML6O.mjs";
13
14
  import "../../chunk-27Y6K5NK.mjs";
14
- import "../../chunk-E3G5QXSH.mjs";
15
15
  import "../../chunk-AC6TWLRT.mjs";
16
16
  export {
17
17
  pagination_default as default,
@@ -0,0 +1,4 @@
1
+ export { default as Progress } from './progress.mjs';
2
+ import 'tailwind-variants';
3
+ import 'react/jsx-runtime';
4
+ import '../../utils/types.mjs';
@@ -0,0 +1,4 @@
1
+ export { default as Progress } from './progress.js';
2
+ import 'tailwind-variants';
3
+ import 'react/jsx-runtime';
4
+ import '../../utils/types.js';
@@ -0,0 +1,519 @@
1
+ "use client";
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJS = (cb, mod) => function __require() {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ };
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
+ mod
31
+ ));
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
+
34
+ // ../../node_modules/tailwindcss/lib/util/createPlugin.js
35
+ var require_createPlugin = __commonJS({
36
+ "../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
37
+ "use strict";
38
+ Object.defineProperty(exports2, "__esModule", {
39
+ value: true
40
+ });
41
+ Object.defineProperty(exports2, "default", {
42
+ enumerable: true,
43
+ get: function() {
44
+ return _default;
45
+ }
46
+ });
47
+ function createPlugin(plugin2, config) {
48
+ return {
49
+ handler: plugin2,
50
+ config
51
+ };
52
+ }
53
+ createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
54
+ const optionsFunction = function(options) {
55
+ return {
56
+ __options: options,
57
+ handler: pluginFunction(options),
58
+ config: configFunction(options)
59
+ };
60
+ };
61
+ optionsFunction.__isOptionsFunction = true;
62
+ optionsFunction.__pluginFunction = pluginFunction;
63
+ optionsFunction.__configFunction = configFunction;
64
+ return optionsFunction;
65
+ };
66
+ var _default = createPlugin;
67
+ }
68
+ });
69
+
70
+ // ../../node_modules/tailwindcss/lib/public/create-plugin.js
71
+ var require_create_plugin = __commonJS({
72
+ "../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
73
+ "use strict";
74
+ Object.defineProperty(exports2, "__esModule", {
75
+ value: true
76
+ });
77
+ Object.defineProperty(exports2, "default", {
78
+ enumerable: true,
79
+ get: function() {
80
+ return _default;
81
+ }
82
+ });
83
+ var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
84
+ function _interop_require_default(obj) {
85
+ return obj && obj.__esModule ? obj : {
86
+ default: obj
87
+ };
88
+ }
89
+ var _default = _createPlugin.default;
90
+ }
91
+ });
92
+
93
+ // ../../node_modules/tailwindcss/plugin.js
94
+ var require_plugin = __commonJS({
95
+ "../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
96
+ "use strict";
97
+ var createPlugin = require_create_plugin();
98
+ module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
99
+ }
100
+ });
101
+
102
+ // src/components/progress/index.ts
103
+ var progress_exports = {};
104
+ __export(progress_exports, {
105
+ Progress: () => progress_default
106
+ });
107
+ module.exports = __toCommonJS(progress_exports);
108
+
109
+ // src/components/progress/progress.tsx
110
+ var import_react2 = require("react");
111
+
112
+ // src/utils/tailwind-variants.ts
113
+ var import_tailwind_variants = require("tailwind-variants");
114
+
115
+ // ../tailwind-config/src/plugin.ts
116
+ var import_plugin = __toESM(require_plugin());
117
+
118
+ // ../tailwind-config/src/typography/font.ts
119
+ var fontSize = {
120
+ h1: [
121
+ "40px",
122
+ {
123
+ fontWeight: "700"
124
+ }
125
+ ],
126
+ h2: [
127
+ "34px",
128
+ {
129
+ fontWeight: "700"
130
+ }
131
+ ],
132
+ h3: [
133
+ "28px",
134
+ {
135
+ fontWeight: "700"
136
+ }
137
+ ],
138
+ h4: [
139
+ "24px",
140
+ {
141
+ fontWeight: "700"
142
+ }
143
+ ],
144
+ h5: [
145
+ "20px",
146
+ {
147
+ fontWeight: "600"
148
+ }
149
+ ],
150
+ sm: [
151
+ "12px",
152
+ {
153
+ lineHeight: "18px",
154
+ fontWeight: "400"
155
+ }
156
+ ],
157
+ md: [
158
+ "14px",
159
+ {
160
+ lineHeight: "21px",
161
+ fontWeight: "400"
162
+ }
163
+ ],
164
+ lg: [
165
+ "16px",
166
+ {
167
+ lineHeight: "24px",
168
+ fontWeight: "400"
169
+ }
170
+ ],
171
+ xl: [
172
+ "18px",
173
+ {
174
+ lineHeight: "27px",
175
+ fontWeight: "400"
176
+ }
177
+ ]
178
+ };
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
+
195
+ // ../tailwind-config/src/animation/slide.ts
196
+ var sliceAnimation = {
197
+ slideInFromTop: "slideInFromTop 0.5s ease-out",
198
+ slideInFromBottom: "slideInFromBottom 0.5s ease-out",
199
+ slideInFromLeft: "slideInFromLeft 0.5s ease-out",
200
+ slideInFromRight: "slideInFromRight 0.5s ease-out",
201
+ slideOutToTop: "slideOutToTop 0.5s ease-in",
202
+ slideOutToBottom: "slideOutToBottom 0.5s ease-in",
203
+ slideOutToLeft: "slideOutToLeft 0.5s ease-in",
204
+ slideOutToRight: "slideOutToRight 0.5s ease-in"
205
+ };
206
+ var sliceKeyframe = {
207
+ slideInFromTop: {
208
+ "0%": {
209
+ transform: "translateY(-10px)",
210
+ opacity: "0"
211
+ },
212
+ "100%": {
213
+ transform: "translateY(0)",
214
+ opacity: "1"
215
+ }
216
+ },
217
+ slideInFromBottom: {
218
+ "0%": {
219
+ transform: "translateY(10px)",
220
+ opacity: "0"
221
+ },
222
+ "100%": {
223
+ transform: "translateY(0)",
224
+ opacity: "1"
225
+ }
226
+ },
227
+ slideInFromLeft: {
228
+ "0%": {
229
+ transform: "translateX(-10px)",
230
+ opacity: "0"
231
+ },
232
+ "100%": {
233
+ transform: "translateX(0)",
234
+ opacity: "1"
235
+ }
236
+ },
237
+ slideInFromRight: {
238
+ "0%": {
239
+ transform: "translateX(10px)",
240
+ opacity: "0"
241
+ },
242
+ "100%": {
243
+ transform: "translateX(0)",
244
+ opacity: "1"
245
+ }
246
+ },
247
+ slideOutToTop: {
248
+ "0%": {
249
+ transform: "translateY(0)",
250
+ opacity: "1"
251
+ },
252
+ "100%": {
253
+ transform: "translateY(-10px)",
254
+ opacity: "0"
255
+ }
256
+ },
257
+ slideOutToBottom: {
258
+ "0%": {
259
+ transform: "translateY(0)",
260
+ opacity: "1"
261
+ },
262
+ "100%": {
263
+ transform: "translateY(10px)",
264
+ opacity: "0"
265
+ }
266
+ },
267
+ slideOutToLeft: {
268
+ "0%": {
269
+ transform: "translateX(0)",
270
+ opacity: "1"
271
+ },
272
+ "100%": {
273
+ transform: "translateX(-10px)",
274
+ opacity: "0"
275
+ }
276
+ },
277
+ slideOutToRight: {
278
+ "0%": {
279
+ transform: "translateX(0)",
280
+ opacity: "1"
281
+ },
282
+ "100%": {
283
+ transform: "translateX(10px)",
284
+ opacity: "0"
285
+ }
286
+ }
287
+ };
288
+
289
+ // ../tailwind-config/src/animation/index.ts
290
+ var animation = { ...sliceAnimation, ...barAnimation };
291
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
292
+
293
+ // ../tailwind-config/src/shadow/index.ts
294
+ var boxShadow = {
295
+ "border-1": "inner 0 0 0 1px inset",
296
+ "border-2": "inner 0 0 0 2px inset",
297
+ "border-3": "inner 0 0 0 3px inset",
298
+ "border-4": "inner 0 0 0 4px inset",
299
+ "border-5": "inner 0 0 0 5px inset",
300
+ "border-6": "inner 0 0 0 6px inset",
301
+ "border-7": "inner 0 0 0 7px inset",
302
+ "border-8": "inner 0 0 0 8px inset",
303
+ "border-9": "inner 0 0 0 9px inset",
304
+ "border-10": "inner 0 0 0 10px inset",
305
+ inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
306
+ "inner-sm": "inset 0 4px 8px 0 rgba(0, 0, 0, 0.2)",
307
+ "inner-md": "inset 0 6px 12px 0 rgba(0, 0, 0, 0.2)",
308
+ "inner-lg": "inset 0 8px 16px 0 rgba(0, 0, 0, 0.2)",
309
+ "inner-xl": "inset 0 10px 20px 0 rgba(0, 0, 0, 0.2)",
310
+ drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)",
311
+ "drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
312
+ "drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
313
+ "drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
314
+ "drop-xl": "0 10px 30px 0 rgba(0, 0, 0, 0.1)"
315
+ };
316
+
317
+ // ../tailwind-config/src/border/radius.ts
318
+ var borderRadius = {
319
+ sm: "4px",
320
+ md: "6px",
321
+ lg: "8px",
322
+ xl: "10px",
323
+ none: "0",
324
+ full: "9999px"
325
+ };
326
+
327
+ // ../tailwind-config/src/space/gap.ts
328
+ var gap = {
329
+ sm: "4px",
330
+ md: "6px",
331
+ lg: "8px",
332
+ xl: "10px"
333
+ };
334
+
335
+ // src/utils/tailwind-variants.ts
336
+ function typedKeys(obj) {
337
+ return Object.keys(obj);
338
+ }
339
+ var COMMON_SIZE = ["sm", "md", "lg", "xl"];
340
+ var tv = (0, import_tailwind_variants.createTV)({
341
+ twMergeConfig: {
342
+ classGroups: {
343
+ fontSize: [{ text: [...typedKeys(fontSize)] }],
344
+ borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
345
+ boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
346
+ padding: [{ p: [...COMMON_SIZE] }],
347
+ gap: [{ gap: [...typedKeys(gap)] }]
348
+ }
349
+ }
350
+ });
351
+
352
+ // src/utils/props.ts
353
+ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
354
+ if (!variantKeys) {
355
+ return [props, {}];
356
+ }
357
+ const picked = variantKeys.reduce((acc, key) => {
358
+ if (key in props) {
359
+ return { ...acc, [key]: props[key] };
360
+ } else {
361
+ return acc;
362
+ }
363
+ }, {});
364
+ if (removeVariantProps) {
365
+ const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
366
+ return [omitted, picked];
367
+ } else {
368
+ return [props, picked];
369
+ }
370
+ };
371
+
372
+ // src/hooks/useIsMounted.ts
373
+ var import_react = require("react");
374
+ function useIsMounted(props = {}) {
375
+ const { rerender = false, delay = 0 } = props;
376
+ const isMountedRef = (0, import_react.useRef)(false);
377
+ const [isMounted, setIsMounted] = (0, import_react.useState)(false);
378
+ (0, import_react.useEffect)(() => {
379
+ isMountedRef.current = true;
380
+ let timer = null;
381
+ if (rerender) {
382
+ if (delay > 0) {
383
+ timer = setTimeout(() => {
384
+ setIsMounted(true);
385
+ }, delay);
386
+ } else {
387
+ setIsMounted(true);
388
+ }
389
+ }
390
+ return () => {
391
+ isMountedRef.current = false;
392
+ if (rerender) {
393
+ setIsMounted(false);
394
+ }
395
+ if (timer) {
396
+ clearTimeout(timer);
397
+ }
398
+ };
399
+ }, [rerender]);
400
+ return [(0, import_react.useCallback)(() => isMountedRef.current, []), isMounted];
401
+ }
402
+
403
+ // src/components/progress/progress.tsx
404
+ var import_jsx_runtime = require("react/jsx-runtime");
405
+ var Progress = (originalProps) => {
406
+ const [props, variantProps] = mapPropsVariants(originalProps, progressStyle.variantKeys);
407
+ const { children, classNames, value = 0, minValue = 0, maxValue = 100, ...progressProps } = props;
408
+ const isIndeterminate = originalProps.isIndeterminate;
409
+ const [, isMounted] = useIsMounted({
410
+ rerender: true,
411
+ delay: 100
412
+ });
413
+ const selfMounted = variantProps.disableAnimation ? true : isMounted;
414
+ const percentage = (0, import_react2.useMemo)(
415
+ () => isIndeterminate || !selfMounted ? void 0 : clampPercentage((value - minValue) / (maxValue - minValue) * 100),
416
+ [selfMounted, isIndeterminate, value, minValue, maxValue]
417
+ );
418
+ const slots = (0, import_react2.useMemo)(() => progressStyle({ ...variantProps }), [variantProps]);
419
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
420
+ "div",
421
+ {
422
+ className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
423
+ style: {
424
+ transform: `translateX(-${100 - (percentage || 0)}%)`
425
+ }
426
+ }
427
+ ) }) });
428
+ };
429
+ var progress_default = Progress;
430
+ var progressStyle = tv({
431
+ slots: {
432
+ base: ["flex flex-col gap-2 w-full"],
433
+ track: ["z-0", "relative", "bg-neutral-soft", "overflow-hidden", "rtl:rotate-180"],
434
+ indicator: ["h-full"],
435
+ value: ""
436
+ },
437
+ variants: {
438
+ color: {
439
+ primary: {
440
+ indicator: ["bg-gradient-to-r from-primary-light via-primary-light to-primary-main"]
441
+ },
442
+ secondary: {
443
+ indicator: ["bg-gradient-to-r from-secondary-light via-secondary-light to-secondary-main"]
444
+ },
445
+ neutral: {
446
+ indicator: ["bg-gradient-to-r from-neutral-light via-neutral-light to-neutral-main"]
447
+ },
448
+ info: {
449
+ indicator: ["bg-gradient-to-r from-info-light via-info-light to-info-main"]
450
+ },
451
+ success: {
452
+ indicator: ["bg-gradient-to-r from-success-light via-success-light to-success-main"]
453
+ },
454
+ warning: {
455
+ indicator: ["bg-gradient-to-r from-warning-light via-warning-light to-warning-main"]
456
+ },
457
+ danger: {
458
+ indicator: ["bg-gradient-to-r from-danger-light via-danger-light to-danger-main"]
459
+ }
460
+ },
461
+ size: {
462
+ sm: {
463
+ track: ["h-[4px]", "rounded-sm"],
464
+ indicator: "rounded-sm"
465
+ },
466
+ md: {
467
+ track: ["h-[6px]", "rounded-md"],
468
+ indicator: "rounded-md"
469
+ },
470
+ lg: {
471
+ track: ["h-[8px]", "rounded-lg"],
472
+ indicator: "rounded-lg"
473
+ },
474
+ xl: {
475
+ track: ["h-[10px]", "rounded-xl"],
476
+ indicator: "rounded-xl"
477
+ }
478
+ },
479
+ isDisabled: {
480
+ true: {
481
+ base: "opacity-disabled cursor-not-allowed"
482
+ }
483
+ },
484
+ disableAnimation: {
485
+ true: {},
486
+ false: {
487
+ indicator: "transition-transform !duration-500"
488
+ }
489
+ },
490
+ isIndeterminate: {
491
+ true: {
492
+ indicator: ["absolute", "w-full", "origin-left", "animate-indeterminate-bar"]
493
+ }
494
+ }
495
+ },
496
+ defaultVariants: {
497
+ color: "primary",
498
+ size: "md",
499
+ isDisabled: false,
500
+ disableAnimation: false,
501
+ isIndeterminate: false
502
+ },
503
+ compoundVariants: [
504
+ {
505
+ isIndeterminate: true,
506
+ disableAnimation: false,
507
+ className: {
508
+ indicator: "!transition-none motion-reduce:transition-none"
509
+ }
510
+ }
511
+ ]
512
+ });
513
+ var clampPercentage = (value) => {
514
+ return Math.min(100, Math.max(0, value));
515
+ };
516
+ // Annotate the CommonJS export names for ESM import in node:
517
+ 0 && (module.exports = {
518
+ Progress
519
+ });
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import "../../chunk-7VOQKIIK.mjs";
3
+ import {
4
+ progress_default
5
+ } from "../../chunk-5FFTHFBX.mjs";
6
+ import "../../chunk-E3G5QXSH.mjs";
7
+ import "../../chunk-CDXBML6O.mjs";
8
+ import "../../chunk-3V4HT2K5.mjs";
9
+ import "../../chunk-AC6TWLRT.mjs";
10
+ export {
11
+ progress_default as Progress
12
+ };