@deepnoid/ui 0.1.97 → 0.1.99

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 (103) hide show
  1. package/.turbo/turbo-build.log +189 -189
  2. package/dist/{chunk-BQTFCLWG.mjs → chunk-4PVQ6EHW.mjs} +4 -4
  3. package/dist/{chunk-35D6XC62.mjs → chunk-DRK7NMLJ.mjs} +7 -7
  4. package/dist/{chunk-45BNDZHL.mjs → chunk-DUO76TCX.mjs} +2 -2
  5. package/dist/{chunk-WV77476I.mjs → chunk-KNLCEVJX.mjs} +4 -4
  6. package/dist/{chunk-QDQBFAE2.mjs → chunk-NDZ7LM6I.mjs} +29 -14
  7. package/dist/{chunk-45N5ZAIJ.mjs → chunk-OQ3M3RMJ.mjs} +4 -4
  8. package/dist/{chunk-4GDJLALM.mjs → chunk-PEDGYELZ.mjs} +1 -1
  9. package/dist/{chunk-VFFLJN5N.mjs → chunk-Q44DM7T3.mjs} +33 -9
  10. package/dist/{chunk-VIEBF2WH.mjs → chunk-RHRYHA6L.mjs} +5 -5
  11. package/dist/{chunk-TBSG4HY5.mjs → chunk-VMB75PEM.mjs} +1 -1
  12. package/dist/components/accordion/accordion.mjs +2 -2
  13. package/dist/components/accordion/accordionItem.mjs +2 -2
  14. package/dist/components/accordion/index.mjs +3 -3
  15. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  16. package/dist/components/breadcrumb/index.mjs +5 -5
  17. package/dist/components/button/button.mjs +2 -2
  18. package/dist/components/button/icon-button.js +1 -1
  19. package/dist/components/button/icon-button.mjs +2 -2
  20. package/dist/components/button/index.js +1 -1
  21. package/dist/components/button/index.mjs +6 -6
  22. package/dist/components/button/text-button.mjs +2 -2
  23. package/dist/components/charts/areaChart.mjs +2 -2
  24. package/dist/components/charts/barChart.mjs +2 -2
  25. package/dist/components/charts/circularProgress.mjs +2 -2
  26. package/dist/components/charts/index.mjs +4 -4
  27. package/dist/components/checkbox/checkbox.mjs +2 -2
  28. package/dist/components/checkbox/index.mjs +2 -2
  29. package/dist/components/chip/chip.mjs +2 -2
  30. package/dist/components/chip/index.mjs +2 -2
  31. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  32. package/dist/components/dateTimePicker/dateTimePicker.mjs +6 -6
  33. package/dist/components/dateTimePicker/index.mjs +6 -6
  34. package/dist/components/dateTimePicker/timePicker.mjs +4 -4
  35. package/dist/components/drawer/drawer.mjs +2 -2
  36. package/dist/components/drawer/index.mjs +2 -2
  37. package/dist/components/fileUpload/fileUpload.d.mts +2 -13
  38. package/dist/components/fileUpload/fileUpload.d.ts +2 -13
  39. package/dist/components/fileUpload/fileUpload.js +217 -33
  40. package/dist/components/fileUpload/fileUpload.mjs +9 -6
  41. package/dist/components/fileUpload/index.js +217 -33
  42. package/dist/components/fileUpload/index.mjs +9 -6
  43. package/dist/components/input/index.js +30 -6
  44. package/dist/components/input/index.mjs +2 -2
  45. package/dist/components/input/input.d.mts +21 -0
  46. package/dist/components/input/input.d.ts +21 -0
  47. package/dist/components/input/input.js +30 -6
  48. package/dist/components/input/input.mjs +2 -2
  49. package/dist/components/list/index.mjs +3 -3
  50. package/dist/components/list/list.mjs +2 -2
  51. package/dist/components/list/listItem.mjs +2 -2
  52. package/dist/components/modal/index.mjs +5 -5
  53. package/dist/components/modal/modal.mjs +5 -5
  54. package/dist/components/pagination/index.js +30 -6
  55. package/dist/components/pagination/index.mjs +3 -3
  56. package/dist/components/pagination/pagination.js +30 -6
  57. package/dist/components/pagination/pagination.mjs +3 -3
  58. package/dist/components/progress/index.mjs +3 -3
  59. package/dist/components/progress/progress.mjs +3 -3
  60. package/dist/components/radio/index.mjs +2 -2
  61. package/dist/components/radio/radio.mjs +2 -2
  62. package/dist/components/select/index.mjs +2 -2
  63. package/dist/components/select/select.mjs +2 -2
  64. package/dist/components/table/index.js +30 -6
  65. package/dist/components/table/index.mjs +8 -8
  66. package/dist/components/table/table-body.js +30 -6
  67. package/dist/components/table/table-body.mjs +5 -5
  68. package/dist/components/table/table-head.js +30 -6
  69. package/dist/components/table/table-head.mjs +5 -5
  70. package/dist/components/table/table.js +30 -6
  71. package/dist/components/table/table.mjs +5 -5
  72. package/dist/components/tabs/index.mjs +2 -2
  73. package/dist/components/tabs/tabs.mjs +2 -2
  74. package/dist/components/textarea/index.mjs +2 -2
  75. package/dist/components/textarea/textarea.mjs +2 -2
  76. package/dist/components/toast/index.mjs +3 -3
  77. package/dist/components/toast/toast.mjs +2 -2
  78. package/dist/components/toast/use-toast.mjs +3 -3
  79. package/dist/components/tooltip/index.mjs +2 -2
  80. package/dist/components/tooltip/tooltip.mjs +2 -2
  81. package/dist/index.js +272 -234
  82. package/dist/index.mjs +62 -62
  83. package/package.json +1 -1
  84. package/dist/{chunk-I3ADJOUT.mjs → chunk-2NKKPM4H.mjs} +3 -3
  85. package/dist/{chunk-3IILPVRA.mjs → chunk-2Q3V5U7K.mjs} +3 -3
  86. package/dist/{chunk-6Q2BXHJL.mjs → chunk-4EIGHKUO.mjs} +3 -3
  87. package/dist/{chunk-IW57F7WZ.mjs → chunk-4VIQED4M.mjs} +3 -3
  88. package/dist/{chunk-BHSZP2XF.mjs → chunk-7KVNCGIG.mjs} +3 -3
  89. package/dist/{chunk-WG2EL5JF.mjs → chunk-CBGWCZVX.mjs} +3 -3
  90. package/dist/{chunk-K7JLUER5.mjs → chunk-DR2LJSLB.mjs} +3 -3
  91. package/dist/{chunk-23WOW2NZ.mjs → chunk-EXQG2GHG.mjs} +3 -3
  92. package/dist/{chunk-JBSV7GCL.mjs → chunk-G5CNDGIE.mjs} +3 -3
  93. package/dist/{chunk-PZSIYVDW.mjs → chunk-HZMGNGQN.mjs} +3 -3
  94. package/dist/{chunk-WIZDHK4O.mjs → chunk-K6X36ITU.mjs} +3 -3
  95. package/dist/{chunk-GH4EPD35.mjs → chunk-M5CS7I7F.mjs} +3 -3
  96. package/dist/{chunk-4LP3QDAE.mjs → chunk-OBPDLL66.mjs} +3 -3
  97. package/dist/{chunk-GAZ472ZU.mjs → chunk-OSKY2V2A.mjs} +3 -3
  98. package/dist/{chunk-5FFTHFBX.mjs → chunk-T46JIGEU.mjs} +4 -4
  99. package/dist/{chunk-6KH2UQRM.mjs → chunk-TWSYSAE7.mjs} +3 -3
  100. package/dist/{chunk-S7Y7XUBL.mjs → chunk-UDVA3BUM.mjs} +3 -3
  101. package/dist/{chunk-XZ5DXOJQ.mjs → chunk-UELN23A4.mjs} +3 -3
  102. package/dist/{chunk-EKLA6ZR4.mjs → chunk-VAZKSQN6.mjs} +3 -3
  103. package/dist/{chunk-7VS6YXNB.mjs → chunk-ZFHBOZEE.mjs} +3 -3
@@ -2,12 +2,12 @@
2
2
  import "../../chunk-MGEWSREV.mjs";
3
3
  import {
4
4
  chip_default
5
- } from "../../chunk-PZSIYVDW.mjs";
5
+ } from "../../chunk-HZMGNGQN.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-SCZB4QC7.mjs";
8
- import "../../chunk-E3G5QXSH.mjs";
9
8
  import "../../chunk-6XFKID3T.mjs";
10
9
  import "../../chunk-CDXBML6O.mjs";
10
+ import "../../chunk-E3G5QXSH.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  chip_default as Chip
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  calendarStyle,
4
4
  calendar_default
5
- } from "../../chunk-BHSZP2XF.mjs";
5
+ } from "../../chunk-7KVNCGIG.mjs";
6
6
  import "../../chunk-P732YGHO.mjs";
7
7
  import "../../chunk-ZYIIXWVY.mjs";
8
8
  import "../../chunk-SCZB4QC7.mjs";
9
- import "../../chunk-E3G5QXSH.mjs";
10
9
  import "../../chunk-6XFKID3T.mjs";
11
10
  import "../../chunk-CDXBML6O.mjs";
11
+ import "../../chunk-E3G5QXSH.mjs";
12
12
  import "../../chunk-AC6TWLRT.mjs";
13
13
  export {
14
14
  calendarStyle,
@@ -2,20 +2,20 @@
2
2
  import {
3
3
  dateTimePickerStyle,
4
4
  dateTimePicker_default
5
- } from "../../chunk-35D6XC62.mjs";
6
- import "../../chunk-45BNDZHL.mjs";
5
+ } from "../../chunk-DRK7NMLJ.mjs";
6
+ import "../../chunk-7KVNCGIG.mjs";
7
+ import "../../chunk-DUO76TCX.mjs";
7
8
  import "../../chunk-7MVEAQ7Z.mjs";
8
- import "../../chunk-3IILPVRA.mjs";
9
- import "../../chunk-23WOW2NZ.mjs";
9
+ import "../../chunk-2Q3V5U7K.mjs";
10
+ import "../../chunk-EXQG2GHG.mjs";
10
11
  import "../../chunk-FWJ2ZKH6.mjs";
11
- import "../../chunk-BHSZP2XF.mjs";
12
12
  import "../../chunk-P732YGHO.mjs";
13
13
  import "../../chunk-ZYIIXWVY.mjs";
14
14
  import "../../chunk-SCZB4QC7.mjs";
15
- import "../../chunk-E3G5QXSH.mjs";
16
15
  import "../../chunk-ANBGNXIU.mjs";
17
16
  import "../../chunk-6XFKID3T.mjs";
18
17
  import "../../chunk-CDXBML6O.mjs";
18
+ import "../../chunk-E3G5QXSH.mjs";
19
19
  import "../../chunk-AC6TWLRT.mjs";
20
20
  export {
21
21
  dateTimePickerStyle,
@@ -2,20 +2,20 @@
2
2
  import "../../chunk-75HLCORR.mjs";
3
3
  import {
4
4
  dateTimePicker_default
5
- } from "../../chunk-35D6XC62.mjs";
6
- import "../../chunk-45BNDZHL.mjs";
5
+ } from "../../chunk-DRK7NMLJ.mjs";
6
+ import "../../chunk-7KVNCGIG.mjs";
7
+ import "../../chunk-DUO76TCX.mjs";
7
8
  import "../../chunk-7MVEAQ7Z.mjs";
8
- import "../../chunk-3IILPVRA.mjs";
9
- import "../../chunk-23WOW2NZ.mjs";
9
+ import "../../chunk-2Q3V5U7K.mjs";
10
+ import "../../chunk-EXQG2GHG.mjs";
10
11
  import "../../chunk-FWJ2ZKH6.mjs";
11
- import "../../chunk-BHSZP2XF.mjs";
12
12
  import "../../chunk-P732YGHO.mjs";
13
13
  import "../../chunk-ZYIIXWVY.mjs";
14
14
  import "../../chunk-SCZB4QC7.mjs";
15
- import "../../chunk-E3G5QXSH.mjs";
16
15
  import "../../chunk-ANBGNXIU.mjs";
17
16
  import "../../chunk-6XFKID3T.mjs";
18
17
  import "../../chunk-CDXBML6O.mjs";
18
+ import "../../chunk-E3G5QXSH.mjs";
19
19
  import "../../chunk-AC6TWLRT.mjs";
20
20
  export {
21
21
  dateTimePicker_default as DateTimePicker
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  timePicker_default
4
- } from "../../chunk-45BNDZHL.mjs";
4
+ } from "../../chunk-DUO76TCX.mjs";
5
5
  import "../../chunk-7MVEAQ7Z.mjs";
6
- import "../../chunk-3IILPVRA.mjs";
7
- import "../../chunk-23WOW2NZ.mjs";
6
+ import "../../chunk-2Q3V5U7K.mjs";
7
+ import "../../chunk-EXQG2GHG.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-SCZB4QC7.mjs";
10
- import "../../chunk-E3G5QXSH.mjs";
11
10
  import "../../chunk-ANBGNXIU.mjs";
12
11
  import "../../chunk-6XFKID3T.mjs";
13
12
  import "../../chunk-CDXBML6O.mjs";
13
+ import "../../chunk-E3G5QXSH.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
15
15
  export {
16
16
  timePicker_default as default
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  drawer_default
4
- } from "../../chunk-S7Y7XUBL.mjs";
5
- import "../../chunk-E3G5QXSH.mjs";
4
+ } from "../../chunk-UDVA3BUM.mjs";
6
5
  import "../../chunk-CDXBML6O.mjs";
7
6
  import "../../chunk-27Y6K5NK.mjs";
7
+ import "../../chunk-E3G5QXSH.mjs";
8
8
  import "../../chunk-AC6TWLRT.mjs";
9
9
  export {
10
10
  drawer_default as default
@@ -2,10 +2,10 @@
2
2
  import "../../chunk-32GA3YW4.mjs";
3
3
  import {
4
4
  drawer_default
5
- } from "../../chunk-S7Y7XUBL.mjs";
6
- import "../../chunk-E3G5QXSH.mjs";
5
+ } from "../../chunk-UDVA3BUM.mjs";
7
6
  import "../../chunk-CDXBML6O.mjs";
8
7
  import "../../chunk-27Y6K5NK.mjs";
8
+ import "../../chunk-E3G5QXSH.mjs";
9
9
  import "../../chunk-AC6TWLRT.mjs";
10
10
  export {
11
11
  drawer_default as Drawer
@@ -7,6 +7,7 @@ type FileUploadProps = {
7
7
  buttonText: string;
8
8
  maxSizeMB?: number;
9
9
  placeholder?: string;
10
+ errorMessage?: string;
10
11
  accept?: string[];
11
12
  acceptErrorMessage?: string;
12
13
  sizeErrorMessage?: string;
@@ -16,7 +17,7 @@ type FileUploadProps = {
16
17
  name?: string;
17
18
  classNames?: SlotsToClasses<FileUploadSlots>;
18
19
  };
19
- declare function FileUpload({ buttonText, maxSizeMB, placeholder, accept, acceptErrorMessage, sizeErrorMessage, onFileUpload, helperMessage, showProgress, name, classNames, }: FileUploadProps): react_jsx_runtime.JSX.Element;
20
+ declare function FileUpload({ buttonText, maxSizeMB, placeholder, errorMessage, accept, acceptErrorMessage, sizeErrorMessage, onFileUpload, helperMessage, showProgress, name, classNames, }: FileUploadProps): react_jsx_runtime.JSX.Element;
20
21
  declare namespace FileUpload {
21
22
  var displayName: string;
22
23
  }
@@ -30,8 +31,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
30
31
  errorMessage?: tailwind_merge.ClassNameValue;
31
32
  inputWrapper?: tailwind_merge.ClassNameValue;
32
33
  cancelButton?: tailwind_merge.ClassNameValue;
33
- progressBarContainer?: tailwind_merge.ClassNameValue;
34
- progressBar?: tailwind_merge.ClassNameValue;
35
34
  };
36
35
  };
37
36
  } | {
@@ -43,8 +42,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
43
42
  errorMessage?: tailwind_merge.ClassNameValue;
44
43
  inputWrapper?: tailwind_merge.ClassNameValue;
45
44
  cancelButton?: tailwind_merge.ClassNameValue;
46
- progressBarContainer?: tailwind_merge.ClassNameValue;
47
- progressBar?: tailwind_merge.ClassNameValue;
48
45
  };
49
46
  };
50
47
  } | {}, {
@@ -52,8 +49,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
52
49
  container: string[];
53
50
  inputWrapper: string[];
54
51
  cancelButton: string[];
55
- progressBarContainer: string[];
56
- progressBar: string[];
57
52
  errorMessage: string[];
58
53
  helperMessage: string[];
59
54
  }, undefined, {
@@ -65,8 +60,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
65
60
  errorMessage?: tailwind_merge.ClassNameValue;
66
61
  inputWrapper?: tailwind_merge.ClassNameValue;
67
62
  cancelButton?: tailwind_merge.ClassNameValue;
68
- progressBarContainer?: tailwind_merge.ClassNameValue;
69
- progressBar?: tailwind_merge.ClassNameValue;
70
63
  };
71
64
  };
72
65
  } | {}, {
@@ -74,8 +67,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
74
67
  container: string[];
75
68
  inputWrapper: string[];
76
69
  cancelButton: string[];
77
- progressBarContainer: string[];
78
- progressBar: string[];
79
70
  errorMessage: string[];
80
71
  helperMessage: string[];
81
72
  }, tailwind_variants.TVReturnType<unknown, {
@@ -83,8 +74,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
83
74
  container: string[];
84
75
  inputWrapper: string[];
85
76
  cancelButton: string[];
86
- progressBarContainer: string[];
87
- progressBar: string[];
88
77
  errorMessage: string[];
89
78
  helperMessage: string[];
90
79
  }, undefined, unknown, unknown, undefined>>;
@@ -7,6 +7,7 @@ type FileUploadProps = {
7
7
  buttonText: string;
8
8
  maxSizeMB?: number;
9
9
  placeholder?: string;
10
+ errorMessage?: string;
10
11
  accept?: string[];
11
12
  acceptErrorMessage?: string;
12
13
  sizeErrorMessage?: string;
@@ -16,7 +17,7 @@ type FileUploadProps = {
16
17
  name?: string;
17
18
  classNames?: SlotsToClasses<FileUploadSlots>;
18
19
  };
19
- declare function FileUpload({ buttonText, maxSizeMB, placeholder, accept, acceptErrorMessage, sizeErrorMessage, onFileUpload, helperMessage, showProgress, name, classNames, }: FileUploadProps): react_jsx_runtime.JSX.Element;
20
+ declare function FileUpload({ buttonText, maxSizeMB, placeholder, errorMessage, accept, acceptErrorMessage, sizeErrorMessage, onFileUpload, helperMessage, showProgress, name, classNames, }: FileUploadProps): react_jsx_runtime.JSX.Element;
20
21
  declare namespace FileUpload {
21
22
  var displayName: string;
22
23
  }
@@ -30,8 +31,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
30
31
  errorMessage?: tailwind_merge.ClassNameValue;
31
32
  inputWrapper?: tailwind_merge.ClassNameValue;
32
33
  cancelButton?: tailwind_merge.ClassNameValue;
33
- progressBarContainer?: tailwind_merge.ClassNameValue;
34
- progressBar?: tailwind_merge.ClassNameValue;
35
34
  };
36
35
  };
37
36
  } | {
@@ -43,8 +42,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
43
42
  errorMessage?: tailwind_merge.ClassNameValue;
44
43
  inputWrapper?: tailwind_merge.ClassNameValue;
45
44
  cancelButton?: tailwind_merge.ClassNameValue;
46
- progressBarContainer?: tailwind_merge.ClassNameValue;
47
- progressBar?: tailwind_merge.ClassNameValue;
48
45
  };
49
46
  };
50
47
  } | {}, {
@@ -52,8 +49,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
52
49
  container: string[];
53
50
  inputWrapper: string[];
54
51
  cancelButton: string[];
55
- progressBarContainer: string[];
56
- progressBar: string[];
57
52
  errorMessage: string[];
58
53
  helperMessage: string[];
59
54
  }, undefined, {
@@ -65,8 +60,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
65
60
  errorMessage?: tailwind_merge.ClassNameValue;
66
61
  inputWrapper?: tailwind_merge.ClassNameValue;
67
62
  cancelButton?: tailwind_merge.ClassNameValue;
68
- progressBarContainer?: tailwind_merge.ClassNameValue;
69
- progressBar?: tailwind_merge.ClassNameValue;
70
63
  };
71
64
  };
72
65
  } | {}, {
@@ -74,8 +67,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
74
67
  container: string[];
75
68
  inputWrapper: string[];
76
69
  cancelButton: string[];
77
- progressBarContainer: string[];
78
- progressBar: string[];
79
70
  errorMessage: string[];
80
71
  helperMessage: string[];
81
72
  }, tailwind_variants.TVReturnType<unknown, {
@@ -83,8 +74,6 @@ declare const fileUploadStyle: tailwind_variants.TVReturnType<{
83
74
  container: string[];
84
75
  inputWrapper: string[];
85
76
  cancelButton: string[];
86
- progressBarContainer: string[];
87
- progressBar: string[];
88
77
  errorMessage: string[];
89
78
  helperMessage: string[];
90
79
  }, undefined, unknown, unknown, undefined>>;
@@ -107,8 +107,8 @@ __export(fileUpload_exports, {
107
107
  fileUploadStyle: () => fileUploadStyle
108
108
  });
109
109
  module.exports = __toCommonJS(fileUpload_exports);
110
- var import_react5 = require("react");
111
- var import_tailwind_variants5 = require("tailwind-variants");
110
+ var import_react7 = require("react");
111
+ var import_tailwind_variants6 = require("tailwind-variants");
112
112
 
113
113
  // src/components/input/input.tsx
114
114
  var import_react = require("react");
@@ -5198,12 +5198,10 @@ var inputStyle = tv(
5198
5198
  errorMessage: ["text-danger-main"],
5199
5199
  readonlyWrapper: [
5200
5200
  "pointer-events-none",
5201
- "!text-body-foreground",
5202
- "placeholder:!text-body-foreground",
5203
- "group-has-[p.error]/input:!text-danger-main",
5204
- "group-has-[p.error]/input:placeholder:!text-danger-main",
5205
- "[&>input]:!text-body-foreground",
5206
- "[&>input]:placeholder:!text-body-foreground"
5201
+ "text-body-foreground",
5202
+ "placeholder:text-body-foreground",
5203
+ "[&>input]:text-body-foreground",
5204
+ "[&>input]:placeholder:text-body-foreground"
5207
5205
  ],
5208
5206
  readonly: []
5209
5207
  },
@@ -5312,6 +5310,16 @@ var inputStyle = tv(
5312
5310
  helperMessage: ["!text-neutral-light"],
5313
5311
  errorMessage: ["!text-danger-light"]
5314
5312
  }
5313
+ },
5314
+ readonly: {
5315
+ true: {
5316
+ readonlyWrapper: ["pointer-events-none"],
5317
+ input: [
5318
+ "group-has-[p.error]/input:!text-danger-main",
5319
+ "group-has-[p.error]/input:placeholder:!text-danger-main"
5320
+ ],
5321
+ content: ["group-has-[p.error]/input:!text-danger-main"]
5322
+ }
5315
5323
  }
5316
5324
  },
5317
5325
  compoundVariants: [
@@ -5381,6 +5389,22 @@ var inputStyle = tv(
5381
5389
  "group-has-[p.error]/input:placeholder:!text-danger-light"
5382
5390
  ]
5383
5391
  }
5392
+ },
5393
+ {
5394
+ readonly: true,
5395
+ color: "primary",
5396
+ class: {
5397
+ input: ["!text-primary-main", "placeholder:!text-primary-main"],
5398
+ content: ["!text-primary-main"]
5399
+ }
5400
+ },
5401
+ {
5402
+ readonly: true,
5403
+ color: "secondary",
5404
+ class: {
5405
+ input: ["!text-secondary-main", "placeholder:!text-secondary-main"],
5406
+ content: ["!text-secondary-main"]
5407
+ }
5384
5408
  }
5385
5409
  ],
5386
5410
  defaultVariants: {
@@ -6111,7 +6135,7 @@ var iconButtonStyle = tv({
6111
6135
  variant: "outline",
6112
6136
  color: "neutral",
6113
6137
  class: {
6114
- base: ["bg-body-background", "!border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
6138
+ base: ["bg-body-background", "!border-neutral-light", "text-neutral-main", "hover:bg-neutral-soft"]
6115
6139
  }
6116
6140
  },
6117
6141
  {
@@ -6248,12 +6272,161 @@ var iconButtonStyle = tv({
6248
6272
  }
6249
6273
  });
6250
6274
 
6251
- // src/components/fileUpload/fileUpload.tsx
6275
+ // src/components/progress/progress.tsx
6276
+ var import_react6 = require("react");
6277
+
6278
+ // src/hooks/useIsMounted.ts
6279
+ var import_react5 = require("react");
6280
+ function useIsMounted(props = {}) {
6281
+ const { rerender = false, delay = 0 } = props;
6282
+ const isMountedRef = (0, import_react5.useRef)(false);
6283
+ const [isMounted, setIsMounted] = (0, import_react5.useState)(false);
6284
+ (0, import_react5.useEffect)(() => {
6285
+ isMountedRef.current = true;
6286
+ let timer = null;
6287
+ if (rerender) {
6288
+ if (delay > 0) {
6289
+ timer = setTimeout(() => {
6290
+ setIsMounted(true);
6291
+ }, delay);
6292
+ } else {
6293
+ setIsMounted(true);
6294
+ }
6295
+ }
6296
+ return () => {
6297
+ isMountedRef.current = false;
6298
+ if (rerender) {
6299
+ setIsMounted(false);
6300
+ }
6301
+ if (timer) {
6302
+ clearTimeout(timer);
6303
+ }
6304
+ };
6305
+ }, [rerender]);
6306
+ return [(0, import_react5.useCallback)(() => isMountedRef.current, []), isMounted];
6307
+ }
6308
+
6309
+ // src/components/progress/progress.tsx
6252
6310
  var import_jsx_runtime7 = require("react/jsx-runtime");
6311
+ var Progress = (originalProps) => {
6312
+ const [props, variantProps] = mapPropsVariants(originalProps, progressStyle.variantKeys);
6313
+ const { children, classNames, value = 0, minValue = 0, maxValue = 100, ...progressProps } = props;
6314
+ const isIndeterminate = originalProps.isIndeterminate;
6315
+ const [, isMounted] = useIsMounted({
6316
+ rerender: true,
6317
+ delay: 100
6318
+ });
6319
+ const selfMounted = variantProps.disableAnimation ? true : isMounted;
6320
+ const percentage = (0, import_react6.useMemo)(
6321
+ () => isIndeterminate || !selfMounted ? void 0 : clampPercentage((value - minValue) / (maxValue - minValue) * 100),
6322
+ [selfMounted, isIndeterminate, value, minValue, maxValue]
6323
+ );
6324
+ const slots = (0, import_react6.useMemo)(() => progressStyle({ ...variantProps }), [variantProps]);
6325
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
6326
+ "div",
6327
+ {
6328
+ className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
6329
+ style: {
6330
+ transform: `translateX(-${100 - (percentage || 0)}%)`
6331
+ }
6332
+ }
6333
+ ) }) });
6334
+ };
6335
+ var progress_default = Progress;
6336
+ var progressStyle = tv({
6337
+ slots: {
6338
+ base: ["flex flex-col gap-2 w-full"],
6339
+ track: ["z-0", "relative", "bg-neutral-soft", "overflow-hidden", "rtl:rotate-180"],
6340
+ indicator: ["h-full"],
6341
+ value: ""
6342
+ },
6343
+ variants: {
6344
+ color: {
6345
+ primary: {
6346
+ indicator: ["bg-gradient-to-r from-primary-light via-primary-light to-primary-main"]
6347
+ },
6348
+ secondary: {
6349
+ indicator: ["bg-gradient-to-r from-secondary-light via-secondary-light to-secondary-main"]
6350
+ },
6351
+ neutral: {
6352
+ indicator: ["bg-gradient-to-r from-neutral-light via-neutral-light to-neutral-main"]
6353
+ },
6354
+ info: {
6355
+ indicator: ["bg-gradient-to-r from-info-light via-info-light to-info-main"]
6356
+ },
6357
+ success: {
6358
+ indicator: ["bg-gradient-to-r from-success-light via-success-light to-success-main"]
6359
+ },
6360
+ warning: {
6361
+ indicator: ["bg-gradient-to-r from-warning-light via-warning-light to-warning-main"]
6362
+ },
6363
+ danger: {
6364
+ indicator: ["bg-gradient-to-r from-danger-light via-danger-light to-danger-main"]
6365
+ }
6366
+ },
6367
+ size: {
6368
+ sm: {
6369
+ track: ["h-[4px]", "rounded-sm"],
6370
+ indicator: "rounded-sm"
6371
+ },
6372
+ md: {
6373
+ track: ["h-[6px]", "rounded-md"],
6374
+ indicator: "rounded-md"
6375
+ },
6376
+ lg: {
6377
+ track: ["h-[8px]", "rounded-lg"],
6378
+ indicator: "rounded-lg"
6379
+ },
6380
+ xl: {
6381
+ track: ["h-[10px]", "rounded-xl"],
6382
+ indicator: "rounded-xl"
6383
+ }
6384
+ },
6385
+ isDisabled: {
6386
+ true: {
6387
+ base: "opacity-disabled cursor-not-allowed"
6388
+ }
6389
+ },
6390
+ disableAnimation: {
6391
+ true: {},
6392
+ false: {
6393
+ indicator: "transition-transform !duration-500"
6394
+ }
6395
+ },
6396
+ isIndeterminate: {
6397
+ true: {
6398
+ indicator: ["absolute", "w-full", "origin-left", "animate-indeterminate-bar"]
6399
+ }
6400
+ }
6401
+ },
6402
+ defaultVariants: {
6403
+ color: "primary",
6404
+ size: "md",
6405
+ isDisabled: false,
6406
+ disableAnimation: false,
6407
+ isIndeterminate: false
6408
+ },
6409
+ compoundVariants: [
6410
+ {
6411
+ isIndeterminate: true,
6412
+ disableAnimation: false,
6413
+ className: {
6414
+ indicator: "!transition-none motion-reduce:transition-none"
6415
+ }
6416
+ }
6417
+ ]
6418
+ });
6419
+ var clampPercentage = (value) => {
6420
+ return Math.min(100, Math.max(0, value));
6421
+ };
6422
+
6423
+ // src/components/fileUpload/fileUpload.tsx
6424
+ var import_jsx_runtime8 = require("react/jsx-runtime");
6253
6425
  function FileUpload({
6254
6426
  buttonText,
6255
6427
  maxSizeMB = 10,
6256
6428
  placeholder,
6429
+ errorMessage,
6257
6430
  accept = [],
6258
6431
  acceptErrorMessage = "The file type is not allowed.",
6259
6432
  sizeErrorMessage = `File is too large.`,
@@ -6263,11 +6436,11 @@ function FileUpload({
6263
6436
  name,
6264
6437
  classNames
6265
6438
  }) {
6266
- const fileInputRef = (0, import_react5.useRef)(null);
6267
- const uploadIntervalRef = (0, import_react5.useRef)(null);
6268
- const [file, setFile] = (0, import_react5.useState)(null);
6269
- const [uploadProgress, setUploadProgress] = (0, import_react5.useState)(0);
6270
- const [errorMessage, setErrorMessage] = (0, import_react5.useState)("");
6439
+ const fileInputRef = (0, import_react7.useRef)(null);
6440
+ const uploadIntervalRef = (0, import_react7.useRef)(null);
6441
+ const [file, setFile] = (0, import_react7.useState)(null);
6442
+ const [uploadProgress, setUploadProgress] = (0, import_react7.useState)(0);
6443
+ const [message, setMessage] = (0, import_react7.useState)(errorMessage);
6271
6444
  const slots = fileUploadStyle();
6272
6445
  const handleButtonClick = () => {
6273
6446
  var _a;
@@ -6301,12 +6474,12 @@ function FileUpload({
6301
6474
  if (!selectedFile) return;
6302
6475
  const error = validateFile(selectedFile);
6303
6476
  if (error) {
6304
- setErrorMessage(error);
6477
+ setMessage(error);
6305
6478
  setFile(null);
6306
6479
  return;
6307
6480
  }
6308
6481
  setFile(selectedFile);
6309
- setErrorMessage("");
6482
+ setMessage("");
6310
6483
  startUploadSimulation(selectedFile);
6311
6484
  };
6312
6485
  const handleCancelUpload = () => {
@@ -6315,20 +6488,34 @@ function FileUpload({
6315
6488
  }
6316
6489
  setFile(null);
6317
6490
  setUploadProgress(0);
6318
- setErrorMessage("");
6491
+ setMessage("");
6319
6492
  };
6320
- (0, import_react5.useEffect)(() => {
6493
+ (0, import_react7.useEffect)(() => {
6321
6494
  return () => {
6322
6495
  if (uploadIntervalRef.current) {
6323
6496
  clearInterval(uploadIntervalRef.current);
6324
6497
  }
6325
6498
  };
6326
6499
  }, []);
6327
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
6328
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
6329
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: slots.inputWrapper(), children: [
6330
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(input_default, { name, readOnly: true, variant: "outline", full: true, placeholder, defaultValue: file == null ? void 0 : file.name }),
6331
- file && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
6500
+ (0, import_react7.useEffect)(() => {
6501
+ setMessage(errorMessage);
6502
+ }, [setMessage, errorMessage]);
6503
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
6504
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
6505
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.inputWrapper(), children: [
6506
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
6507
+ input_default,
6508
+ {
6509
+ name,
6510
+ readOnly: true,
6511
+ variant: "outline",
6512
+ full: true,
6513
+ placeholder,
6514
+ defaultValue: file == null ? void 0 : file.name,
6515
+ errorMessage: message
6516
+ }
6517
+ ),
6518
+ file && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
6332
6519
  icon_button_default,
6333
6520
  {
6334
6521
  name: "close",
@@ -6340,24 +6527,21 @@ function FileUpload({
6340
6527
  }
6341
6528
  )
6342
6529
  ] }),
6343
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
6344
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
6530
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
6531
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
6345
6532
  ] }),
6346
- showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.progressBarContainer(), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.progressBar(), style: { width: `${uploadProgress}%` } }) }),
6347
- !errorMessage && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: slots.helperMessage(), children: helperMessage }),
6348
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: slots.errorMessage(), children: errorMessage })
6533
+ showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(progress_default, { value: uploadProgress }),
6534
+ !message && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: slots.helperMessage(), children: helperMessage })
6349
6535
  ] });
6350
6536
  }
6351
6537
  FileUpload.displayName = "FileUpload";
6352
6538
  var fileUpload_default = FileUpload;
6353
- var fileUploadStyle = (0, import_tailwind_variants5.tv)({
6539
+ var fileUploadStyle = (0, import_tailwind_variants6.tv)({
6354
6540
  slots: {
6355
6541
  base: ["flex", "flex-col", "gap-[5px]"],
6356
- container: ["flex", "items-center", "gap-[10px]"],
6542
+ container: ["flex", "gap-[10px]"],
6357
6543
  inputWrapper: ["relative", "flex-1"],
6358
6544
  cancelButton: ["absolute", "top-1/2", "right-0", "-translate-y-1/2"],
6359
- progressBarContainer: ["w-full", "h-[5px]", "bg-neutral-light", "rounded-full", "overflow-hidden"],
6360
- progressBar: ["h-full", "bg-primary-main", "transition-all"],
6361
6545
  errorMessage: ["text-danger-main", "text-sm"],
6362
6546
  helperMessage: ["text-neutral-main", "text-sm"]
6363
6547
  }
@@ -3,23 +3,26 @@ import {
3
3
  FileUpload,
4
4
  fileUploadStyle,
5
5
  fileUpload_default
6
- } from "../../chunk-QDQBFAE2.mjs";
6
+ } from "../../chunk-NDZ7LM6I.mjs";
7
+ import "../../chunk-7VOQKIIK.mjs";
8
+ import "../../chunk-T46JIGEU.mjs";
7
9
  import "../../chunk-2GCSFWHD.mjs";
8
- import "../../chunk-VFFLJN5N.mjs";
10
+ import "../../chunk-Q44DM7T3.mjs";
9
11
  import "../../chunk-MY5U63QO.mjs";
10
- import "../../chunk-JBSV7GCL.mjs";
11
12
  import "../../chunk-ITWKPTSD.mjs";
12
- import "../../chunk-IW57F7WZ.mjs";
13
- import "../../chunk-WV77476I.mjs";
13
+ import "../../chunk-4VIQED4M.mjs";
14
+ import "../../chunk-KNLCEVJX.mjs";
14
15
  import "../../chunk-6WSACUIB.mjs";
15
16
  import "../../chunk-LXHUO6VM.mjs";
16
17
  import "../../chunk-6PNKRBUT.mjs";
18
+ import "../../chunk-G5CNDGIE.mjs";
17
19
  import "../../chunk-ZYIIXWVY.mjs";
18
20
  import "../../chunk-SCZB4QC7.mjs";
19
- import "../../chunk-E3G5QXSH.mjs";
21
+ import "../../chunk-3V4HT2K5.mjs";
20
22
  import "../../chunk-6XFKID3T.mjs";
21
23
  import "../../chunk-CDXBML6O.mjs";
22
24
  import "../../chunk-27Y6K5NK.mjs";
25
+ import "../../chunk-E3G5QXSH.mjs";
23
26
  import "../../chunk-AC6TWLRT.mjs";
24
27
  export {
25
28
  FileUpload,