@deepnoid/ui 0.1.157 → 0.1.159

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 (117) hide show
  1. package/.turbo/turbo-build.log +168 -158
  2. package/dist/{chunk-DQ3ZRNX4.mjs → chunk-3QE57PU3.mjs} +1 -1
  3. package/dist/{chunk-5KOTQEFC.mjs → chunk-3X376ACN.mjs} +1 -1
  4. package/dist/{chunk-IN6M25YL.mjs → chunk-46EIW6MN.mjs} +2 -2
  5. package/dist/{chunk-MGGBCCZL.mjs → chunk-7QL54JRV.mjs} +2 -2
  6. package/dist/{chunk-ACFDUCPL.mjs → chunk-CSG6FDBX.mjs} +2 -2
  7. package/dist/{chunk-VUMESK5D.mjs → chunk-DDFJMHBC.mjs} +37 -2
  8. package/dist/{chunk-NB45YSED.mjs → chunk-ITFEV25U.mjs} +1 -1
  9. package/dist/{chunk-DSEF7GGB.mjs → chunk-JKYLYL3A.mjs} +1 -1
  10. package/dist/{chunk-QJUPHJN6.mjs → chunk-KLBA5J2H.mjs} +1 -1
  11. package/dist/chunk-L5FRTUM6.mjs +100 -0
  12. package/dist/{chunk-T7IJB3N4.mjs → chunk-OBOPDVVM.mjs} +4 -4
  13. package/dist/chunk-OLQOLLKG.mjs +1 -0
  14. package/dist/{chunk-JJAPJQUD.mjs → chunk-OY5W6JCO.mjs} +1 -1
  15. package/dist/{chunk-PO4H65C3.mjs → chunk-PXAJEOZS.mjs} +1 -1
  16. package/dist/{chunk-T6V6BJOT.mjs → chunk-QHETCLHO.mjs} +2 -2
  17. package/dist/{chunk-BFC4VP3B.mjs → chunk-QR5CKZLL.mjs} +57 -62
  18. package/dist/{chunk-LBJN5TAP.mjs → chunk-R7KUEH3N.mjs} +1 -1
  19. package/dist/{chunk-ZUAOUHWS.mjs → chunk-SFA2DEUD.mjs} +3 -3
  20. package/dist/{chunk-HLWNJLRZ.mjs → chunk-XHCPYYMC.mjs} +1 -1
  21. package/dist/{chunk-73NBUI4Y.mjs → chunk-YQYO5RLZ.mjs} +1 -1
  22. package/dist/{chunk-SHI7P4DQ.mjs → chunk-Z7CLJYRF.mjs} +1 -1
  23. package/dist/components/avatar/avatar.js +37 -2
  24. package/dist/components/avatar/avatar.mjs +2 -2
  25. package/dist/components/avatar/index.js +37 -2
  26. package/dist/components/avatar/index.mjs +2 -2
  27. package/dist/components/breadcrumb/breadcrumb.js +37 -2
  28. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  29. package/dist/components/breadcrumb/index.js +37 -2
  30. package/dist/components/breadcrumb/index.mjs +5 -5
  31. package/dist/components/button/button.js +37 -2
  32. package/dist/components/button/button.mjs +3 -3
  33. package/dist/components/button/icon-button.js +37 -2
  34. package/dist/components/button/icon-button.mjs +3 -3
  35. package/dist/components/button/index.js +37 -2
  36. package/dist/components/button/index.mjs +4 -4
  37. package/dist/components/chip/chip.js +37 -2
  38. package/dist/components/chip/chip.mjs +3 -3
  39. package/dist/components/chip/index.js +37 -2
  40. package/dist/components/chip/index.mjs +3 -3
  41. package/dist/components/fileUpload/fileUpload.js +93 -63
  42. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  43. package/dist/components/fileUpload/index.js +93 -63
  44. package/dist/components/fileUpload/index.mjs +6 -6
  45. package/dist/components/icon/Icon.d.mts +4 -0
  46. package/dist/components/icon/Icon.d.ts +4 -0
  47. package/dist/components/icon/Icon.js +37 -2
  48. package/dist/components/icon/Icon.mjs +2 -2
  49. package/dist/components/icon/index.js +37 -2
  50. package/dist/components/icon/index.mjs +2 -2
  51. package/dist/components/icon/template.d.mts +1 -0
  52. package/dist/components/icon/template.d.ts +1 -0
  53. package/dist/components/icon/template.js +37 -2
  54. package/dist/components/icon/template.mjs +1 -1
  55. package/dist/components/input/index.js +93 -63
  56. package/dist/components/input/index.mjs +3 -3
  57. package/dist/components/input/input.d.mts +6 -3
  58. package/dist/components/input/input.d.ts +6 -3
  59. package/dist/components/input/input.js +93 -63
  60. package/dist/components/input/input.mjs +3 -3
  61. package/dist/components/list/index.js +37 -2
  62. package/dist/components/list/index.mjs +4 -4
  63. package/dist/components/list/listItem.js +37 -2
  64. package/dist/components/list/listItem.mjs +4 -4
  65. package/dist/components/modal/index.js +37 -2
  66. package/dist/components/modal/index.mjs +5 -5
  67. package/dist/components/modal/modal.js +37 -2
  68. package/dist/components/modal/modal.mjs +5 -5
  69. package/dist/components/pagination/index.js +93 -63
  70. package/dist/components/pagination/index.mjs +4 -4
  71. package/dist/components/pagination/pagination.js +93 -63
  72. package/dist/components/pagination/pagination.mjs +4 -4
  73. package/dist/components/picker/datePicker.js +93 -63
  74. package/dist/components/picker/datePicker.mjs +6 -6
  75. package/dist/components/picker/day.d.mts +2 -2
  76. package/dist/components/picker/day.d.ts +2 -2
  77. package/dist/components/picker/index.js +93 -63
  78. package/dist/components/picker/index.mjs +8 -8
  79. package/dist/components/picker/timePicker.js +37 -2
  80. package/dist/components/picker/timePicker.mjs +4 -4
  81. package/dist/components/select/index.js +37 -2
  82. package/dist/components/select/index.mjs +3 -3
  83. package/dist/components/select/select.js +37 -2
  84. package/dist/components/select/select.mjs +3 -3
  85. package/dist/components/starRating/index.d.mts +4 -0
  86. package/dist/components/starRating/index.d.ts +4 -0
  87. package/dist/components/starRating/index.js +5279 -0
  88. package/dist/components/starRating/index.mjs +14 -0
  89. package/dist/components/starRating/starRating.d.mts +60 -0
  90. package/dist/components/starRating/starRating.d.ts +60 -0
  91. package/dist/components/starRating/starRating.js +5278 -0
  92. package/dist/components/starRating/starRating.mjs +15 -0
  93. package/dist/components/table/index.js +93 -63
  94. package/dist/components/table/index.mjs +7 -7
  95. package/dist/components/table/table-body.js +93 -63
  96. package/dist/components/table/table-body.mjs +5 -5
  97. package/dist/components/table/table-head.js +93 -63
  98. package/dist/components/table/table-head.mjs +5 -5
  99. package/dist/components/table/table.js +93 -63
  100. package/dist/components/table/table.mjs +5 -5
  101. package/dist/components/timePicker/calendar.js +37 -2
  102. package/dist/components/timePicker/calendar.mjs +2 -2
  103. package/dist/components/toast/index.js +37 -2
  104. package/dist/components/toast/index.mjs +4 -4
  105. package/dist/components/toast/toast.js +37 -2
  106. package/dist/components/toast/toast.mjs +3 -3
  107. package/dist/components/toast/use-toast.js +37 -2
  108. package/dist/components/toast/use-toast.mjs +4 -4
  109. package/dist/components/tree/index.js +37 -2
  110. package/dist/components/tree/index.mjs +3 -3
  111. package/dist/components/tree/tree.js +37 -2
  112. package/dist/components/tree/tree.mjs +3 -3
  113. package/dist/index.d.mts +1 -0
  114. package/dist/index.d.ts +1 -0
  115. package/dist/index.js +180 -63
  116. package/dist/index.mjs +37 -32
  117. package/package.json +1 -1
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-F3HENRVM.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-BFC4VP3B.mjs";
7
+ } from "./chunk-QR5CKZLL.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-LBJN5TAP.mjs";
10
+ } from "./chunk-R7KUEH3N.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-LBJN5TAP.mjs";
4
+ } from "./chunk-R7KUEH3N.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
8
8
  import {
9
9
  avatar_default
10
- } from "./chunk-NB45YSED.mjs";
10
+ } from "./chunk-ITFEV25U.mjs";
11
11
  import {
12
12
  tv
13
13
  } from "./chunk-CDXBML6O.mjs";
@@ -90,8 +90,8 @@ var template = {
90
90
  {
91
91
  fillRule: "evenodd",
92
92
  clipRule: "evenodd",
93
- fill: "currentColor",
94
- d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z"
93
+ d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
94
+ fill: "currentColor"
95
95
  }
96
96
  ) : /* @__PURE__ */ jsx(
97
97
  "path",
@@ -105,6 +105,41 @@ var template = {
105
105
  }
106
106
  );
107
107
  },
108
+ halfStar: ({ className }) => {
109
+ return /* @__PURE__ */ jsxs(
110
+ "svg",
111
+ {
112
+ xmlns: "http://www.w3.org/2000/svg",
113
+ width: "18",
114
+ height: "18",
115
+ viewBox: "0 0 18 18",
116
+ fill: "none",
117
+ className,
118
+ children: [
119
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "half-clip", children: /* @__PURE__ */ jsx("rect", { x: "0", y: "0", width: "9", height: "18" }) }) }),
120
+ /* @__PURE__ */ jsx(
121
+ "path",
122
+ {
123
+ fillRule: "evenodd",
124
+ clipRule: "evenodd",
125
+ fill: "currentColor",
126
+ d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
127
+ clipPath: "url(#half-clip)"
128
+ }
129
+ ),
130
+ /* @__PURE__ */ jsx(
131
+ "path",
132
+ {
133
+ d: "M8.65925 3.23957C8.68697 3.16871 8.73417 3.1081 8.79484 3.06544C8.85552 3.02278 8.92693 3 9 3C9.07306 3 9.14448 3.02278 9.20515 3.06544C9.26583 3.1081 9.31303 3.16871 9.34074 3.23957L10.7332 6.74977C10.7593 6.81546 10.8021 6.87233 10.857 6.91413C10.912 6.95594 10.9768 6.98105 11.0445 6.98672L14.6603 7.29028C14.9873 7.31775 15.1196 7.74563 14.8706 7.96883L12.1158 10.4427C12.0644 10.4888 12.026 10.5489 12.005 10.6164C11.984 10.6839 11.981 10.7561 11.9966 10.8252L12.8386 14.5236C12.8555 14.5978 12.8511 14.6756 12.8259 14.7471C12.8006 14.8187 12.7557 14.8808 12.6968 14.9257C12.6379 14.9705 12.5677 14.996 12.495 14.999C12.4222 15.002 12.3503 14.9824 12.2882 14.9425L9.19199 12.9611C9.13418 12.9241 9.06775 12.9045 9 12.9045C8.93225 12.9045 8.86581 12.9241 8.808 12.9611L5.71181 14.9432C5.64973 14.9831 5.57778 15.0027 5.50504 14.9997C5.43231 14.9967 5.36206 14.9712 5.30316 14.9263C5.24426 14.8815 5.19936 14.8194 5.17412 14.7478C5.14889 14.6763 5.14445 14.5985 5.16138 14.5243L6.00341 10.8252C6.01903 10.7561 6.01616 10.6838 5.99511 10.6164C5.97407 10.5489 5.93568 10.4888 5.88415 10.4427L3.12936 7.96883C3.07389 7.91927 3.03369 7.85357 3.01387 7.78005C2.99405 7.70652 2.9955 7.62849 3.01802 7.55583C3.04055 7.48317 3.08314 7.41915 3.1404 7.37188C3.19767 7.3246 3.26703 7.29621 3.33971 7.29028L6.95553 6.98672C7.02319 6.98105 7.08804 6.95594 7.14296 6.91413C7.19787 6.87233 7.24072 6.81546 7.26679 6.74977L8.65925 3.23957Z",
134
+ stroke: "currentColor",
135
+ strokeLinecap: "round",
136
+ strokeLinejoin: "round"
137
+ }
138
+ )
139
+ ]
140
+ }
141
+ );
142
+ },
108
143
  avatar: ({ className }) => {
109
144
  return /* @__PURE__ */ jsxs(
110
145
  "svg",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-VUMESK5D.mjs";
4
+ } from "./chunk-DDFJMHBC.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-CDXBML6O.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-LBJN5TAP.mjs";
10
+ } from "./chunk-R7KUEH3N.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZOTHPHXA.mjs";
5
5
  import {
6
6
  toast_default
7
- } from "./chunk-DQ3ZRNX4.mjs";
7
+ } from "./chunk-3QE57PU3.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import {
3
+ Icon_default
4
+ } from "./chunk-R7KUEH3N.mjs";
5
+ import {
6
+ mapPropsVariants
7
+ } from "./chunk-E3G5QXSH.mjs";
8
+ import {
9
+ tv
10
+ } from "./chunk-CDXBML6O.mjs";
11
+
12
+ // src/components/starRating/starRating.tsx
13
+ import { forwardRef, useMemo, useState } from "react";
14
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
+ var StarRating = forwardRef((originalProps, ref) => {
16
+ const [props, variantProps] = mapPropsVariants(originalProps, starRatingStyle.variantKeys);
17
+ const {
18
+ stars,
19
+ size,
20
+ value,
21
+ onChange,
22
+ readOnly = false,
23
+ allowHalf = false,
24
+ classNames,
25
+ filledColor = "text-primary-main",
26
+ emptyColor = "text-neutral-light"
27
+ } = { ...props, ...variantProps };
28
+ const slots = useMemo(() => starRatingStyle({ ...variantProps }), [variantProps]);
29
+ const [hoverRating, setHoverRating] = useState(0);
30
+ const handleStarClick = (starIndex, isHalf = false) => {
31
+ if (readOnly || !onChange) return;
32
+ const newRating = allowHalf && isHalf ? starIndex - 0.5 : starIndex;
33
+ onChange(newRating);
34
+ };
35
+ const handleStarHover = (starIndex, isHalf = false) => {
36
+ if (readOnly) return;
37
+ const newHoverRating = allowHalf && isHalf ? starIndex - 0.5 : starIndex;
38
+ setHoverRating(newHoverRating);
39
+ };
40
+ const handleMouseLeave = () => {
41
+ if (readOnly) return;
42
+ setHoverRating(0);
43
+ };
44
+ const createRange = (n) => {
45
+ return Array.from({ length: n }, (_, i) => i + 1);
46
+ };
47
+ const renderStar = (starIndex) => {
48
+ const currentRating = readOnly ? value : hoverRating || value;
49
+ const isFull = currentRating >= starIndex;
50
+ const isHalf = allowHalf && currentRating >= starIndex - 0.5 && currentRating < starIndex;
51
+ return /* @__PURE__ */ jsxs("div", { className: slots.starWrapper({ class: classNames == null ? void 0 : classNames.starWrapper }), children: [
52
+ !readOnly && /* @__PURE__ */ jsxs(Fragment, { children: [
53
+ /* @__PURE__ */ jsx(
54
+ "div",
55
+ {
56
+ className: slots.star({ class: classNames == null ? void 0 : classNames.star }),
57
+ onClick: () => handleStarClick(starIndex),
58
+ onMouseEnter: () => handleStarHover(starIndex)
59
+ }
60
+ ),
61
+ allowHalf && /* @__PURE__ */ jsx(
62
+ "div",
63
+ {
64
+ className: slots.starHalf({ class: classNames == null ? void 0 : classNames.starHalf }),
65
+ onClick: () => handleStarClick(starIndex, true),
66
+ onMouseEnter: () => handleStarHover(starIndex, true)
67
+ }
68
+ )
69
+ ] }),
70
+ /* @__PURE__ */ jsx("div", { children: isHalf ? /* @__PURE__ */ jsx(Icon_default, { name: "halfStar", className: filledColor, size }) : /* @__PURE__ */ jsx(Icon_default, { name: "star", fill: isFull, className: isFull ? filledColor : emptyColor, size }) })
71
+ ] }, starIndex);
72
+ };
73
+ return /* @__PURE__ */ jsx("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: createRange(stars).map(renderStar) });
74
+ });
75
+ StarRating.displayName = "StarRating";
76
+ var starRating_default = StarRating;
77
+ var starRatingStyle = tv({
78
+ slots: {
79
+ base: ["flex", "items-center"],
80
+ starWrapper: ["relative", "inline-block"],
81
+ star: ["absolute", "inset-0", "z-10", "h-full", "w-full", "cursor-pointer"],
82
+ starHalf: ["absolute", "left-0", "top-0", "z-20", "h-full", "w-1/2", "cursor-pointer"]
83
+ },
84
+ variants: {
85
+ size: {
86
+ sm: {},
87
+ md: {},
88
+ lg: {},
89
+ xl: {}
90
+ }
91
+ },
92
+ defaultVariants: {
93
+ size: "xl"
94
+ }
95
+ });
96
+
97
+ export {
98
+ starRating_default,
99
+ starRatingStyle
100
+ };
@@ -8,19 +8,19 @@ import {
8
8
  } from "./chunk-FWFEKWWD.mjs";
9
9
  import {
10
10
  input_default
11
- } from "./chunk-BFC4VP3B.mjs";
11
+ } from "./chunk-QR5CKZLL.mjs";
12
12
  import {
13
13
  text_button_default
14
14
  } from "./chunk-Q364C3FI.mjs";
15
15
  import {
16
16
  button_default
17
- } from "./chunk-73NBUI4Y.mjs";
17
+ } from "./chunk-YQYO5RLZ.mjs";
18
18
  import {
19
19
  icon_button_default
20
- } from "./chunk-DSEF7GGB.mjs";
20
+ } from "./chunk-JKYLYL3A.mjs";
21
21
  import {
22
22
  Icon_default
23
- } from "./chunk-LBJN5TAP.mjs";
23
+ } from "./chunk-R7KUEH3N.mjs";
24
24
  import {
25
25
  mapPropsVariants
26
26
  } from "./chunk-E3G5QXSH.mjs";
@@ -0,0 +1 @@
1
+ "use client";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  pagination_default
4
- } from "./chunk-MGGBCCZL.mjs";
4
+ } from "./chunk-7QL54JRV.mjs";
5
5
  import {
6
6
  scrollArea_default
7
7
  } from "./chunk-EWS3FESG.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-Q364C3FI.mjs";
5
5
  import {
6
6
  Icon_default
7
- } from "./chunk-LBJN5TAP.mjs";
7
+ } from "./chunk-R7KUEH3N.mjs";
8
8
  import {
9
9
  tv
10
10
  } from "./chunk-CDXBML6O.mjs";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  select_default
4
- } from "./chunk-SHI7P4DQ.mjs";
4
+ } from "./chunk-Z7CLJYRF.mjs";
5
5
  import {
6
6
  Icon_default
7
- } from "./chunk-LBJN5TAP.mjs";
7
+ } from "./chunk-R7KUEH3N.mjs";
8
8
  import {
9
9
  mapPropsVariants
10
10
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-LBJN5TAP.mjs";
4
+ } from "./chunk-R7KUEH3N.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -35,7 +35,7 @@ var Input = forwardRef((originalProps, ref) => {
35
35
  ),
36
36
  size: originalProps.size
37
37
  }),
38
- [slots, classNames, originalProps.size]
38
+ [slots, classNames, originalProps.size, inputProps.readOnly]
39
39
  );
40
40
  const renderStartContent = () => {
41
41
  if (isValidElement(startContent)) {
@@ -158,31 +158,22 @@ var inputStyle = tv(
158
158
  "placeholder:text-neutral-main",
159
159
  "outline-none",
160
160
  "focus:ring-0",
161
- "group-has-[:hover]/input:text-neutral-dark",
162
- "group-has-[:hover]/input:placeholder:text-neutral-dark",
163
- "group-has-[:focus]/input:text-neutral-dark",
164
- "group-has-[:focus]/input:placeholder:text-neutral-dark",
165
- "group-has-[p.error]/input:text-danger-main",
166
- "group-has-[p.error]/input:placeholder:text-danger-main",
167
- "group-has-[p.error]/input:placeholder:hover:!text-danger-main"
161
+ "group-has-[:hover:not(:read-only):not(:focus)]/input:text-neutral-dark",
162
+ "group-has-[:hover:not(:read-only):not(:focus)]/input:placeholder:text-neutral-dark",
163
+ "group-has-[:focus:not(:read-only)]/input:text-neutral-dark",
164
+ "group-has-[:focus:not(:read-only)]/input:placeholder:text-neutral-dark",
165
+ "read-only:!text-body-foreground",
166
+ "read-only:placeholder:!text-body-foreground"
168
167
  ],
169
168
  content: [
170
169
  "flex",
171
170
  "items-center",
172
171
  "select-none",
173
172
  "text-neutral-main",
174
- "group-has-[:hover]/input:text-neutral-dark",
175
- "group-has-[p.error]/input:text-danger-main",
176
- "group-has-[p.error]/input:hover:text-danger-main",
177
- "group-has-[p.error]/input:focus:text-danger-main"
178
- ],
179
- helperMessage: [
180
- "text-neutral-main",
181
- "group-has-[:hover]/input:text-neutral-dark",
182
- "group-has-[p.error]/input:text-danger-main",
183
- "group-has-[p.error]/input:hover:text-danger-main",
184
- "group-has-[p.error]/input:focus:text-danger-main"
173
+ "group-has-[:hover:not(:read-only):not(:focus)]/input:text-neutral-dark",
174
+ "read-only:!text-body-foreground"
185
175
  ],
176
+ helperMessage: ["text-neutral-main", "group-has-[:hover:not(:read-only):not(:focus)]/input:text-neutral-dark"],
186
177
  errorMessage: ["text-danger-main"],
187
178
  readonlyWrapper: [
188
179
  "pointer-events-none",
@@ -191,7 +182,7 @@ var inputStyle = tv(
191
182
  "[&>input]:text-body-foreground",
192
183
  "[&>input]:placeholder:text-body-foreground"
193
184
  ],
194
- readonly: []
185
+ readonly: ["text-body-foreground"]
195
186
  },
196
187
  variants: {
197
188
  variant: {
@@ -202,8 +193,8 @@ var inputStyle = tv(
202
193
  outline: {
203
194
  inputWrapper: [
204
195
  "border-neutral-light",
205
- "group-has-[:hover]/input:bg-trans-soft",
206
- "group-has-[:focus]/input:bg-body-background",
196
+ "group-has-[:hover:not(:read-only):not(:focus)]/input:bg-trans-soft",
197
+ "group-has-[:focus:not(:read-only)]/input:bg-body-background",
207
198
  "group-has-[p.error]/input:border-danger-main"
208
199
  ],
209
200
  readonlyWrapper: ["!bg-trans-soft"]
@@ -212,8 +203,8 @@ var inputStyle = tv(
212
203
  inputWrapper: [
213
204
  "bg-transparent",
214
205
  "rounded-none",
215
- "group-has-[:hover]/input:bg-trans-soft",
216
- "group-has-[:focus]/input:bg-body-background",
206
+ "group-has-[:hover:not(:read-only):not(:focus)]/input:bg-trans-soft",
207
+ "group-has-[:focus:not(:read-only)]/input:bg-body-background",
217
208
  "group-has-[p.error]/input:border-danger-main"
218
209
  ],
219
210
  readonlyWrapper: ["!bg-trans-soft"]
@@ -221,22 +212,13 @@ var inputStyle = tv(
221
212
  },
222
213
  color: {
223
214
  primary: {
224
- content: ["group-has-[:focus]/input:text-primary-main", "group-has-[:focus]/input:hover:text-primary-main"],
225
- helperMessage: [
226
- "group-has-[:focus]/input:text-primary-main",
227
- "group-has-[:focus]/input:hover:text-primary-main"
228
- ],
215
+ content: ["group-has-[:focus:not(:read-only)]/input:text-primary-main", "read-only:!text-primary-main"],
216
+ helperMessage: ["group-has-[:focus:not(:read-only)]/input:text-primary-main"],
229
217
  readonly: ["text-primary-main"]
230
218
  },
231
219
  secondary: {
232
- content: [
233
- "group-has-[:focus]/input:text-secondary-main",
234
- "group-has-[:focus]/input:hover:text-secondary-main"
235
- ],
236
- helperMessage: [
237
- "group-has-[:focus]/input:text-secondary-main",
238
- "group-has-[:focus]/input:hover:text-secondary-main"
239
- ],
220
+ content: ["group-has-[:focus:not(:read-only)]/input:text-secondary-main", "read-only:!text-secondary-main"],
221
+ helperMessage: ["group-has-[:focus:not(:read-only)]/input:text-secondary-main"],
240
222
  readonly: ["text-secondary-main"]
241
223
  }
242
224
  },
@@ -287,14 +269,9 @@ var inputStyle = tv(
287
269
  },
288
270
  disabled: {
289
271
  true: {
290
- inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "group-has-[p.error]/input:!text-danger-light"],
291
- input: [
292
- "!text-neutral-light",
293
- "placeholder:!text-neutral-light",
294
- "group-has-[p.error]/input:!text-danger-light",
295
- "group-has-[p.error]/input:placeholder:!text-danger-light"
296
- ],
297
- content: ["!text-neutral-light", "group-has-[p.error]/input:!text-danger-light"],
272
+ inputWrapper: ["!bg-neutral-soft", "pointer-events-none"],
273
+ input: ["!text-neutral-light", "placeholder:!text-neutral-light"],
274
+ content: ["!text-neutral-light"],
298
275
  helperMessage: ["!text-neutral-light"],
299
276
  errorMessage: ["!text-danger-light"]
300
277
  }
@@ -302,11 +279,9 @@ var inputStyle = tv(
302
279
  readonly: {
303
280
  true: {
304
281
  readonlyWrapper: ["pointer-events-none"],
305
- input: [
306
- "group-has-[p.error]/input:!text-danger-main",
307
- "group-has-[p.error]/input:placeholder:!text-danger-main"
308
- ],
309
- content: ["group-has-[p.error]/input:!text-danger-main"]
282
+ input: ["!text-body-foreground", "placeholder:!text-body-foreground"],
283
+ content: ["!text-body-foreground"],
284
+ helperMessage: ["!text-body-foreground"]
310
285
  }
311
286
  }
312
287
  },
@@ -367,17 +342,6 @@ var inputStyle = tv(
367
342
  inputWrapper: ["border-b-xl"]
368
343
  }
369
344
  },
370
- {
371
- disabled: true,
372
- variant: ["outline", "underline"],
373
- class: {
374
- inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:!border-danger-light"],
375
- content: [
376
- "group-has-[p.error]/input:!text-danger-light",
377
- "group-has-[p.error]/input:placeholder:!text-danger-light"
378
- ]
379
- }
380
- },
381
345
  {
382
346
  readonly: true,
383
347
  color: "primary",
@@ -393,6 +357,37 @@ var inputStyle = tv(
393
357
  input: ["!text-secondary-main", "placeholder:!text-secondary-main"],
394
358
  content: ["!text-secondary-main"]
395
359
  }
360
+ },
361
+ {
362
+ disabled: true,
363
+ class: {
364
+ input: [
365
+ "group-has-[p.error]/input:!text-danger-light",
366
+ "group-has-[p.error]/input:placeholder:!text-danger-light"
367
+ ],
368
+ content: ["group-has-[p.error]/input:!text-danger-light"],
369
+ helperMessage: ["group-has-[p.error]/input:!text-danger-light"],
370
+ errorMessage: ["!text-danger-light"]
371
+ }
372
+ },
373
+ {
374
+ disabled: true,
375
+ variant: ["outline", "underline"],
376
+ class: {
377
+ inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:!border-danger-light"]
378
+ }
379
+ },
380
+ {
381
+ disabled: false,
382
+ class: {
383
+ input: [
384
+ "group-has-[p.error]/input:!text-danger-main",
385
+ "group-has-[p.error]/input:placeholder:!text-danger-main"
386
+ ],
387
+ content: ["group-has-[p.error]/input:!text-danger-main"],
388
+ helperMessage: ["group-has-[p.error]/input:!text-danger-main"],
389
+ errorMessage: ["!text-danger-main"]
390
+ }
396
391
  }
397
392
  ],
398
393
  defaultVariants: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-VUMESK5D.mjs";
4
+ } from "./chunk-DDFJMHBC.mjs";
5
5
 
6
6
  // src/components/icon/Icon.tsx
7
7
  import { jsx } from "react/jsx-runtime";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-2CLPU5LR.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-BFC4VP3B.mjs";
7
+ } from "./chunk-QR5CKZLL.mjs";
8
8
  import {
9
9
  button_default
10
- } from "./chunk-73NBUI4Y.mjs";
10
+ } from "./chunk-YQYO5RLZ.mjs";
11
11
  import {
12
12
  icon_button_default
13
- } from "./chunk-DSEF7GGB.mjs";
13
+ } from "./chunk-JKYLYL3A.mjs";
14
14
 
15
15
  // src/components/fileUpload/fileUpload.tsx
16
16
  import { useRef, useState, useEffect } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-LBJN5TAP.mjs";
4
+ } from "./chunk-R7KUEH3N.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-CDXBML6O.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-LBJN5TAP.mjs";
10
+ } from "./chunk-R7KUEH3N.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-LBJN5TAP.mjs";
4
+ } from "./chunk-R7KUEH3N.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -197,8 +197,8 @@ var template = {
197
197
  {
198
198
  fillRule: "evenodd",
199
199
  clipRule: "evenodd",
200
- fill: "currentColor",
201
- d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z"
200
+ d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
201
+ fill: "currentColor"
202
202
  }
203
203
  ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
204
204
  "path",
@@ -212,6 +212,41 @@ var template = {
212
212
  }
213
213
  );
214
214
  },
215
+ halfStar: ({ className }) => {
216
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
217
+ "svg",
218
+ {
219
+ xmlns: "http://www.w3.org/2000/svg",
220
+ width: "18",
221
+ height: "18",
222
+ viewBox: "0 0 18 18",
223
+ fill: "none",
224
+ className,
225
+ children: [
226
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", { id: "half-clip", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "0", y: "0", width: "9", height: "18" }) }) }),
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
228
+ "path",
229
+ {
230
+ fillRule: "evenodd",
231
+ clipRule: "evenodd",
232
+ fill: "currentColor",
233
+ d: "M8.26603 3.51086C8.53733 2.82971 9.46267 2.82971 9.73397 3.51086L10.9948 6.67687L14.2674 6.95135C14.9723 7.01017 15.2582 7.92848 14.721 8.40913L12.2278 10.6398L12.989 13.9746C13.1531 14.6931 12.4052 15.2604 11.8021 14.8759L9 13.0886L6.19794 14.8759C5.59478 15.2604 4.84687 14.6925 5.01099 13.9746L5.77221 10.6398L3.27901 8.40913C2.74185 7.92848 3.02769 7.01017 3.73259 6.95135L7.00519 6.67687L8.26603 3.51086Z",
234
+ clipPath: "url(#half-clip)"
235
+ }
236
+ ),
237
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
238
+ "path",
239
+ {
240
+ d: "M8.65925 3.23957C8.68697 3.16871 8.73417 3.1081 8.79484 3.06544C8.85552 3.02278 8.92693 3 9 3C9.07306 3 9.14448 3.02278 9.20515 3.06544C9.26583 3.1081 9.31303 3.16871 9.34074 3.23957L10.7332 6.74977C10.7593 6.81546 10.8021 6.87233 10.857 6.91413C10.912 6.95594 10.9768 6.98105 11.0445 6.98672L14.6603 7.29028C14.9873 7.31775 15.1196 7.74563 14.8706 7.96883L12.1158 10.4427C12.0644 10.4888 12.026 10.5489 12.005 10.6164C11.984 10.6839 11.981 10.7561 11.9966 10.8252L12.8386 14.5236C12.8555 14.5978 12.8511 14.6756 12.8259 14.7471C12.8006 14.8187 12.7557 14.8808 12.6968 14.9257C12.6379 14.9705 12.5677 14.996 12.495 14.999C12.4222 15.002 12.3503 14.9824 12.2882 14.9425L9.19199 12.9611C9.13418 12.9241 9.06775 12.9045 9 12.9045C8.93225 12.9045 8.86581 12.9241 8.808 12.9611L5.71181 14.9432C5.64973 14.9831 5.57778 15.0027 5.50504 14.9997C5.43231 14.9967 5.36206 14.9712 5.30316 14.9263C5.24426 14.8815 5.19936 14.8194 5.17412 14.7478C5.14889 14.6763 5.14445 14.5985 5.16138 14.5243L6.00341 10.8252C6.01903 10.7561 6.01616 10.6838 5.99511 10.6164C5.97407 10.5489 5.93568 10.4888 5.88415 10.4427L3.12936 7.96883C3.07389 7.91927 3.03369 7.85357 3.01387 7.78005C2.99405 7.70652 2.9955 7.62849 3.01802 7.55583C3.04055 7.48317 3.08314 7.41915 3.1404 7.37188C3.19767 7.3246 3.26703 7.29621 3.33971 7.29028L6.95553 6.98672C7.02319 6.98105 7.08804 6.95594 7.14296 6.91413C7.19787 6.87233 7.24072 6.81546 7.26679 6.74977L8.65925 3.23957Z",
241
+ stroke: "currentColor",
242
+ strokeLinecap: "round",
243
+ strokeLinejoin: "round"
244
+ }
245
+ )
246
+ ]
247
+ }
248
+ );
249
+ },
215
250
  avatar: ({ className }) => {
216
251
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
217
252
  "svg",
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  avatar_default
4
- } from "../../chunk-NB45YSED.mjs";
5
- import "../../chunk-VUMESK5D.mjs";
4
+ } from "../../chunk-ITFEV25U.mjs";
5
+ import "../../chunk-DDFJMHBC.mjs";
6
6
  import "../../chunk-CDXBML6O.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
8
8
  export {