@deepnoid/ui 0.1.157 → 0.1.158

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 (115) hide show
  1. package/.turbo/turbo-build.log +185 -175
  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-T7IJB3N4.mjs → chunk-7YMXOYES.mjs} +4 -4
  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-JJAPJQUD.mjs → chunk-HKHVSCER.mjs} +1 -1
  9. package/dist/{chunk-MGGBCCZL.mjs → chunk-IRJP6BF3.mjs} +2 -2
  10. package/dist/{chunk-NB45YSED.mjs → chunk-ITFEV25U.mjs} +1 -1
  11. package/dist/{chunk-DSEF7GGB.mjs → chunk-JKYLYL3A.mjs} +1 -1
  12. package/dist/{chunk-QJUPHJN6.mjs → chunk-KLBA5J2H.mjs} +1 -1
  13. package/dist/chunk-L5FRTUM6.mjs +100 -0
  14. package/dist/chunk-OLQOLLKG.mjs +1 -0
  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-LBJN5TAP.mjs → chunk-R7KUEH3N.mjs} +1 -1
  18. package/dist/{chunk-BFC4VP3B.mjs → chunk-SFGFRMWL.mjs} +1 -1
  19. package/dist/{chunk-ZUAOUHWS.mjs → chunk-V64PCWVW.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 +37 -2
  42. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  43. package/dist/components/fileUpload/index.js +37 -2
  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 +37 -2
  56. package/dist/components/input/index.mjs +3 -3
  57. package/dist/components/input/input.js +37 -2
  58. package/dist/components/input/input.mjs +3 -3
  59. package/dist/components/list/index.js +37 -2
  60. package/dist/components/list/index.mjs +4 -4
  61. package/dist/components/list/listItem.js +37 -2
  62. package/dist/components/list/listItem.mjs +4 -4
  63. package/dist/components/modal/index.js +37 -2
  64. package/dist/components/modal/index.mjs +5 -5
  65. package/dist/components/modal/modal.js +37 -2
  66. package/dist/components/modal/modal.mjs +5 -5
  67. package/dist/components/pagination/index.js +37 -2
  68. package/dist/components/pagination/index.mjs +4 -4
  69. package/dist/components/pagination/pagination.js +37 -2
  70. package/dist/components/pagination/pagination.mjs +4 -4
  71. package/dist/components/picker/datePicker.js +37 -2
  72. package/dist/components/picker/datePicker.mjs +6 -6
  73. package/dist/components/picker/day.d.mts +2 -2
  74. package/dist/components/picker/day.d.ts +2 -2
  75. package/dist/components/picker/index.js +37 -2
  76. package/dist/components/picker/index.mjs +8 -8
  77. package/dist/components/picker/timePicker.js +37 -2
  78. package/dist/components/picker/timePicker.mjs +4 -4
  79. package/dist/components/select/index.js +37 -2
  80. package/dist/components/select/index.mjs +3 -3
  81. package/dist/components/select/select.js +37 -2
  82. package/dist/components/select/select.mjs +3 -3
  83. package/dist/components/starRating/index.d.mts +4 -0
  84. package/dist/components/starRating/index.d.ts +4 -0
  85. package/dist/components/starRating/index.js +5279 -0
  86. package/dist/components/starRating/index.mjs +14 -0
  87. package/dist/components/starRating/starRating.d.mts +60 -0
  88. package/dist/components/starRating/starRating.d.ts +60 -0
  89. package/dist/components/starRating/starRating.js +5278 -0
  90. package/dist/components/starRating/starRating.mjs +15 -0
  91. package/dist/components/table/index.js +37 -2
  92. package/dist/components/table/index.mjs +7 -7
  93. package/dist/components/table/table-body.js +37 -2
  94. package/dist/components/table/table-body.mjs +5 -5
  95. package/dist/components/table/table-head.js +37 -2
  96. package/dist/components/table/table-head.mjs +5 -5
  97. package/dist/components/table/table.js +37 -2
  98. package/dist/components/table/table.mjs +5 -5
  99. package/dist/components/timePicker/calendar.js +37 -2
  100. package/dist/components/timePicker/calendar.mjs +2 -2
  101. package/dist/components/toast/index.js +37 -2
  102. package/dist/components/toast/index.mjs +4 -4
  103. package/dist/components/toast/toast.js +37 -2
  104. package/dist/components/toast/toast.mjs +3 -3
  105. package/dist/components/toast/use-toast.js +37 -2
  106. package/dist/components/toast/use-toast.mjs +4 -4
  107. package/dist/components/tree/index.js +37 -2
  108. package/dist/components/tree/index.mjs +3 -3
  109. package/dist/components/tree/tree.js +37 -2
  110. package/dist/components/tree/tree.mjs +3 -3
  111. package/dist/index.d.mts +1 -0
  112. package/dist/index.d.ts +1 -0
  113. package/dist/index.js +124 -2
  114. package/dist/index.mjs +37 -32
  115. package/package.json +1 -1
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-QJUPHJN6.mjs";
5
+ } from "../../chunk-KLBA5J2H.mjs";
6
6
  import "../../chunk-ZOTHPHXA.mjs";
7
- import "../../chunk-DQ3ZRNX4.mjs";
7
+ import "../../chunk-3QE57PU3.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
- import "../../chunk-LBJN5TAP.mjs";
9
+ import "../../chunk-R7KUEH3N.mjs";
10
10
  import "../../chunk-E3G5QXSH.mjs";
11
- import "../../chunk-VUMESK5D.mjs";
11
+ import "../../chunk-DDFJMHBC.mjs";
12
12
  import "../../chunk-CDXBML6O.mjs";
13
13
  import "../../chunk-27Y6K5NK.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
@@ -439,8 +439,8 @@ var template = {
439
439
  {
440
440
  fillRule: "evenodd",
441
441
  clipRule: "evenodd",
442
- fill: "currentColor",
443
- 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"
442
+ 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",
443
+ fill: "currentColor"
444
444
  }
445
445
  ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
446
446
  "path",
@@ -454,6 +454,41 @@ var template = {
454
454
  }
455
455
  );
456
456
  },
457
+ halfStar: ({ className }) => {
458
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
459
+ "svg",
460
+ {
461
+ xmlns: "http://www.w3.org/2000/svg",
462
+ width: "18",
463
+ height: "18",
464
+ viewBox: "0 0 18 18",
465
+ fill: "none",
466
+ className,
467
+ children: [
468
+ /* @__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" }) }) }),
469
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
470
+ "path",
471
+ {
472
+ fillRule: "evenodd",
473
+ clipRule: "evenodd",
474
+ fill: "currentColor",
475
+ 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",
476
+ clipPath: "url(#half-clip)"
477
+ }
478
+ ),
479
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
480
+ "path",
481
+ {
482
+ 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",
483
+ stroke: "currentColor",
484
+ strokeLinecap: "round",
485
+ strokeLinejoin: "round"
486
+ }
487
+ )
488
+ ]
489
+ }
490
+ );
491
+ },
457
492
  avatar: ({ className }) => {
458
493
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
459
494
  "svg",
@@ -2,10 +2,10 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-HLWNJLRZ.mjs";
5
+ } from "../../chunk-XHCPYYMC.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-LBJN5TAP.mjs";
8
- import "../../chunk-VUMESK5D.mjs";
7
+ import "../../chunk-R7KUEH3N.mjs";
8
+ import "../../chunk-DDFJMHBC.mjs";
9
9
  import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
@@ -438,8 +438,8 @@ var template = {
438
438
  {
439
439
  fillRule: "evenodd",
440
440
  clipRule: "evenodd",
441
- fill: "currentColor",
442
- 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"
441
+ 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",
442
+ fill: "currentColor"
443
443
  }
444
444
  ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
445
445
  "path",
@@ -453,6 +453,41 @@ var template = {
453
453
  }
454
454
  );
455
455
  },
456
+ halfStar: ({ className }) => {
457
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
458
+ "svg",
459
+ {
460
+ xmlns: "http://www.w3.org/2000/svg",
461
+ width: "18",
462
+ height: "18",
463
+ viewBox: "0 0 18 18",
464
+ fill: "none",
465
+ className,
466
+ children: [
467
+ /* @__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" }) }) }),
468
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
469
+ "path",
470
+ {
471
+ fillRule: "evenodd",
472
+ clipRule: "evenodd",
473
+ fill: "currentColor",
474
+ 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",
475
+ clipPath: "url(#half-clip)"
476
+ }
477
+ ),
478
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
479
+ "path",
480
+ {
481
+ 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",
482
+ stroke: "currentColor",
483
+ strokeLinecap: "round",
484
+ strokeLinejoin: "round"
485
+ }
486
+ )
487
+ ]
488
+ }
489
+ );
490
+ },
456
491
  avatar: ({ className }) => {
457
492
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
458
493
  "svg",
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  Tree,
4
4
  tree_default
5
- } from "../../chunk-HLWNJLRZ.mjs";
5
+ } from "../../chunk-XHCPYYMC.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-LBJN5TAP.mjs";
8
- import "../../chunk-VUMESK5D.mjs";
7
+ import "../../chunk-R7KUEH3N.mjs";
8
+ import "../../chunk-DDFJMHBC.mjs";
9
9
  import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
package/dist/index.d.mts CHANGED
@@ -38,6 +38,7 @@ export { default as AreaChart } from './components/charts/areaChart.mjs';
38
38
  export { default as BarChart } from './components/charts/barChart.mjs';
39
39
  export { default as RadarChart } from './components/charts/radarChart.mjs';
40
40
  export { default as Progress } from './components/progress/progress.mjs';
41
+ export { default as StarRating, StarRatingProps } from './components/starRating/starRating.mjs';
41
42
  export { tv } from './utils/tailwind-variants.mjs';
42
43
  export { deepnoidUi } from '@deepnoid/tailwind-config';
43
44
  export { VariantProps } from 'tailwind-variants';
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export { default as AreaChart } from './components/charts/areaChart.js';
38
38
  export { default as BarChart } from './components/charts/barChart.js';
39
39
  export { default as RadarChart } from './components/charts/radarChart.js';
40
40
  export { default as Progress } from './components/progress/progress.js';
41
+ export { default as StarRating, StarRatingProps } from './components/starRating/starRating.js';
41
42
  export { tv } from './utils/tailwind-variants.js';
42
43
  export { deepnoidUi } from '@deepnoid/tailwind-config';
43
44
  export { VariantProps } from 'tailwind-variants';
package/dist/index.js CHANGED
@@ -132,6 +132,7 @@ __export(index_exports, {
132
132
  ScrollArea: () => scrollArea_default,
133
133
  Select: () => select_default,
134
134
  Skeleton: () => skeleton_default,
135
+ StarRating: () => starRating_default,
135
136
  Switch: () => switch_default,
136
137
  Table: () => table_default,
137
138
  Tabs: () => tabs_default,
@@ -1135,8 +1136,8 @@ var template = {
1135
1136
  {
1136
1137
  fillRule: "evenodd",
1137
1138
  clipRule: "evenodd",
1138
- fill: "currentColor",
1139
- 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"
1139
+ 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",
1140
+ fill: "currentColor"
1140
1141
  }
1141
1142
  ) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1142
1143
  "path",
@@ -1150,6 +1151,41 @@ var template = {
1150
1151
  }
1151
1152
  );
1152
1153
  },
1154
+ halfStar: ({ className }) => {
1155
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1156
+ "svg",
1157
+ {
1158
+ xmlns: "http://www.w3.org/2000/svg",
1159
+ width: "18",
1160
+ height: "18",
1161
+ viewBox: "0 0 18 18",
1162
+ fill: "none",
1163
+ className,
1164
+ children: [
1165
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("clipPath", { id: "half-clip", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { x: "0", y: "0", width: "9", height: "18" }) }) }),
1166
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1167
+ "path",
1168
+ {
1169
+ fillRule: "evenodd",
1170
+ clipRule: "evenodd",
1171
+ fill: "currentColor",
1172
+ 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",
1173
+ clipPath: "url(#half-clip)"
1174
+ }
1175
+ ),
1176
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1177
+ "path",
1178
+ {
1179
+ 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",
1180
+ stroke: "currentColor",
1181
+ strokeLinecap: "round",
1182
+ strokeLinejoin: "round"
1183
+ }
1184
+ )
1185
+ ]
1186
+ }
1187
+ );
1188
+ },
1153
1189
  avatar: ({ className }) => {
1154
1190
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1155
1191
  "svg",
@@ -13099,6 +13135,91 @@ var radarChartStyle = tv({
13099
13135
  color: "primary"
13100
13136
  }
13101
13137
  });
13138
+
13139
+ // src/components/starRating/starRating.tsx
13140
+ var import_react42 = require("react");
13141
+ var import_jsx_runtime45 = require("react/jsx-runtime");
13142
+ var StarRating = (0, import_react42.forwardRef)((originalProps, ref) => {
13143
+ const [props, variantProps] = mapPropsVariants(originalProps, starRatingStyle.variantKeys);
13144
+ const {
13145
+ stars,
13146
+ size,
13147
+ value,
13148
+ onChange,
13149
+ readOnly = false,
13150
+ allowHalf = false,
13151
+ classNames,
13152
+ filledColor = "text-primary-main",
13153
+ emptyColor = "text-neutral-light"
13154
+ } = { ...props, ...variantProps };
13155
+ const slots = (0, import_react42.useMemo)(() => starRatingStyle({ ...variantProps }), [variantProps]);
13156
+ const [hoverRating, setHoverRating] = (0, import_react42.useState)(0);
13157
+ const handleStarClick = (starIndex, isHalf = false) => {
13158
+ if (readOnly || !onChange) return;
13159
+ const newRating = allowHalf && isHalf ? starIndex - 0.5 : starIndex;
13160
+ onChange(newRating);
13161
+ };
13162
+ const handleStarHover = (starIndex, isHalf = false) => {
13163
+ if (readOnly) return;
13164
+ const newHoverRating = allowHalf && isHalf ? starIndex - 0.5 : starIndex;
13165
+ setHoverRating(newHoverRating);
13166
+ };
13167
+ const handleMouseLeave = () => {
13168
+ if (readOnly) return;
13169
+ setHoverRating(0);
13170
+ };
13171
+ const createRange = (n) => {
13172
+ return Array.from({ length: n }, (_, i) => i + 1);
13173
+ };
13174
+ const renderStar = (starIndex) => {
13175
+ const currentRating = readOnly ? value : hoverRating || value;
13176
+ const isFull = currentRating >= starIndex;
13177
+ const isHalf = allowHalf && currentRating >= starIndex - 0.5 && currentRating < starIndex;
13178
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: slots.starWrapper({ class: classNames == null ? void 0 : classNames.starWrapper }), children: [
13179
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
13180
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
13181
+ "div",
13182
+ {
13183
+ className: slots.star({ class: classNames == null ? void 0 : classNames.star }),
13184
+ onClick: () => handleStarClick(starIndex),
13185
+ onMouseEnter: () => handleStarHover(starIndex)
13186
+ }
13187
+ ),
13188
+ allowHalf && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
13189
+ "div",
13190
+ {
13191
+ className: slots.starHalf({ class: classNames == null ? void 0 : classNames.starHalf }),
13192
+ onClick: () => handleStarClick(starIndex, true),
13193
+ onMouseEnter: () => handleStarHover(starIndex, true)
13194
+ }
13195
+ )
13196
+ ] }),
13197
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children: isHalf ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon_default, { name: "halfStar", className: filledColor, size }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon_default, { name: "star", fill: isFull, className: isFull ? filledColor : emptyColor, size }) })
13198
+ ] }, starIndex);
13199
+ };
13200
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: createRange(stars).map(renderStar) });
13201
+ });
13202
+ StarRating.displayName = "StarRating";
13203
+ var starRating_default = StarRating;
13204
+ var starRatingStyle = tv({
13205
+ slots: {
13206
+ base: ["flex", "items-center"],
13207
+ starWrapper: ["relative", "inline-block"],
13208
+ star: ["absolute", "inset-0", "z-10", "h-full", "w-full", "cursor-pointer"],
13209
+ starHalf: ["absolute", "left-0", "top-0", "z-20", "h-full", "w-1/2", "cursor-pointer"]
13210
+ },
13211
+ variants: {
13212
+ size: {
13213
+ sm: {},
13214
+ md: {},
13215
+ lg: {},
13216
+ xl: {}
13217
+ }
13218
+ },
13219
+ defaultVariants: {
13220
+ size: "xl"
13221
+ }
13222
+ });
13102
13223
  // Annotate the CommonJS export names for ESM import in node:
13103
13224
  0 && (module.exports = {
13104
13225
  Accordion,
@@ -13131,6 +13252,7 @@ var radarChartStyle = tv({
13131
13252
  ScrollArea,
13132
13253
  Select,
13133
13254
  Skeleton,
13255
+ StarRating,
13134
13256
  Switch,
13135
13257
  Table,
13136
13258
  Tabs,
package/dist/index.mjs CHANGED
@@ -1,46 +1,50 @@
1
1
  "use client";
2
+ import "./chunk-HIE2YRGA.mjs";
3
+ import {
4
+ tooltip_default
5
+ } from "./chunk-YBVJFHH6.mjs";
6
+ import "./chunk-ZMOAFSYE.mjs";
7
+ import "./chunk-WSIADHVC.mjs";
2
8
  import "./chunk-MBLZYQCN.mjs";
3
9
  import {
4
10
  tree_default
5
- } from "./chunk-HLWNJLRZ.mjs";
11
+ } from "./chunk-XHCPYYMC.mjs";
12
+ import "./chunk-RRAZM5D3.mjs";
13
+ import {
14
+ textarea_default
15
+ } from "./chunk-3CRSSRCH.mjs";
6
16
  import "./chunk-LUWGOKLG.mjs";
7
17
  import {
8
18
  ToastProvider,
9
19
  useToast
10
- } from "./chunk-QJUPHJN6.mjs";
20
+ } from "./chunk-KLBA5J2H.mjs";
11
21
  import "./chunk-ZOTHPHXA.mjs";
12
22
  import {
13
23
  toast_default
14
- } from "./chunk-DQ3ZRNX4.mjs";
15
- import "./chunk-HIE2YRGA.mjs";
16
- import {
17
- tooltip_default
18
- } from "./chunk-YBVJFHH6.mjs";
19
- import "./chunk-ZMOAFSYE.mjs";
20
- import "./chunk-WSIADHVC.mjs";
24
+ } from "./chunk-3QE57PU3.mjs";
21
25
  import "./chunk-DX3KXNP6.mjs";
26
+ import {
27
+ definition_table_default
28
+ } from "./chunk-JZMJ5UMR.mjs";
22
29
  import {
23
30
  table_default
24
- } from "./chunk-JJAPJQUD.mjs";
31
+ } from "./chunk-HKHVSCER.mjs";
25
32
  import "./chunk-3MY6LO7N.mjs";
26
33
  import {
27
34
  tabs_default
28
35
  } from "./chunk-NBJHZ4X2.mjs";
29
- import "./chunk-RRAZM5D3.mjs";
30
- import {
31
- textarea_default
32
- } from "./chunk-3CRSSRCH.mjs";
33
36
  import "./chunk-MZ76AA76.mjs";
34
37
  import {
35
38
  skeleton_default
36
39
  } from "./chunk-6PN3DGOE.mjs";
40
+ import "./chunk-OLQOLLKG.mjs";
41
+ import {
42
+ starRating_default
43
+ } from "./chunk-L5FRTUM6.mjs";
37
44
  import "./chunk-LVFI2NOH.mjs";
38
45
  import {
39
46
  switch_default
40
47
  } from "./chunk-AGE57VDD.mjs";
41
- import {
42
- definition_table_default
43
- } from "./chunk-JZMJ5UMR.mjs";
44
48
  import "./chunk-TPFN22HR.mjs";
45
49
  import {
46
50
  radio_default
@@ -48,22 +52,22 @@ import {
48
52
  import "./chunk-7B7LRG5J.mjs";
49
53
  import {
50
54
  pagination_default
51
- } from "./chunk-MGGBCCZL.mjs";
55
+ } from "./chunk-IRJP6BF3.mjs";
52
56
  import "./chunk-F3HENRVM.mjs";
53
57
  import "./chunk-4VWG4726.mjs";
54
58
  import {
55
59
  datePicker_default
56
- } from "./chunk-T7IJB3N4.mjs";
60
+ } from "./chunk-7YMXOYES.mjs";
57
61
  import {
58
62
  day_default
59
63
  } from "./chunk-4DESGO3D.mjs";
60
64
  import {
61
65
  timePicker_default
62
- } from "./chunk-T6V6BJOT.mjs";
66
+ } from "./chunk-QHETCLHO.mjs";
63
67
  import "./chunk-QCEKPS7U.mjs";
64
68
  import {
65
69
  select_default
66
- } from "./chunk-SHI7P4DQ.mjs";
70
+ } from "./chunk-Z7CLJYRF.mjs";
67
71
  import "./chunk-FWFEKWWD.mjs";
68
72
  import "./chunk-7MVEAQ7Z.mjs";
69
73
  import {
@@ -71,15 +75,15 @@ import {
71
75
  } from "./chunk-3IILPVRA.mjs";
72
76
  import {
73
77
  listItem_default
74
- } from "./chunk-ACFDUCPL.mjs";
78
+ } from "./chunk-CSG6FDBX.mjs";
75
79
  import "./chunk-DJOG6Z35.mjs";
76
80
  import {
77
81
  modal_default
78
- } from "./chunk-IN6M25YL.mjs";
82
+ } from "./chunk-46EIW6MN.mjs";
79
83
  import "./chunk-MGEWSREV.mjs";
80
84
  import {
81
85
  chip_default
82
- } from "./chunk-5KOTQEFC.mjs";
86
+ } from "./chunk-3X376ACN.mjs";
83
87
  import "./chunk-32GA3YW4.mjs";
84
88
  import {
85
89
  drawer_default
@@ -87,7 +91,7 @@ import {
87
91
  import "./chunk-RLXOHILK.mjs";
88
92
  import {
89
93
  fileUpload_default
90
- } from "./chunk-ZUAOUHWS.mjs";
94
+ } from "./chunk-V64PCWVW.mjs";
91
95
  import "./chunk-7VOQKIIK.mjs";
92
96
  import {
93
97
  progress_default
@@ -95,7 +99,7 @@ import {
95
99
  import "./chunk-2GCSFWHD.mjs";
96
100
  import {
97
101
  input_default
98
- } from "./chunk-BFC4VP3B.mjs";
102
+ } from "./chunk-SFGFRMWL.mjs";
99
103
  import "./chunk-VYNBJBXD.mjs";
100
104
  import {
101
105
  areaChart_default
@@ -124,7 +128,7 @@ import {
124
128
  import "./chunk-KYIODWXL.mjs";
125
129
  import {
126
130
  breadcrumb_default
127
- } from "./chunk-PO4H65C3.mjs";
131
+ } from "./chunk-PXAJEOZS.mjs";
128
132
  import "./chunk-MY5U63QO.mjs";
129
133
  import {
130
134
  text_button_default
@@ -134,10 +138,10 @@ import {
134
138
  } from "./chunk-ITWKPTSD.mjs";
135
139
  import {
136
140
  button_default
137
- } from "./chunk-73NBUI4Y.mjs";
141
+ } from "./chunk-YQYO5RLZ.mjs";
138
142
  import {
139
143
  icon_button_default
140
- } from "./chunk-DSEF7GGB.mjs";
144
+ } from "./chunk-JKYLYL3A.mjs";
141
145
  import "./chunk-6WSACUIB.mjs";
142
146
  import "./chunk-LXHUO6VM.mjs";
143
147
  import "./chunk-SZL743JC.mjs";
@@ -145,7 +149,7 @@ import "./chunk-ZYIIXWVY.mjs";
145
149
  import {
146
150
  Icon_default,
147
151
  iconTemplate
148
- } from "./chunk-LBJN5TAP.mjs";
152
+ } from "./chunk-R7KUEH3N.mjs";
149
153
  import "./chunk-NMSDSEBD.mjs";
150
154
  import {
151
155
  accordion_default
@@ -157,8 +161,8 @@ import "./chunk-E3G5QXSH.mjs";
157
161
  import "./chunk-7DLOYKVC.mjs";
158
162
  import {
159
163
  avatar_default
160
- } from "./chunk-NB45YSED.mjs";
161
- import "./chunk-VUMESK5D.mjs";
164
+ } from "./chunk-ITFEV25U.mjs";
165
+ import "./chunk-DDFJMHBC.mjs";
162
166
  import {
163
167
  deepnoidUi,
164
168
  tv
@@ -197,6 +201,7 @@ export {
197
201
  scrollArea_default as ScrollArea,
198
202
  select_default as Select,
199
203
  skeleton_default as Skeleton,
204
+ starRating_default as StarRating,
200
205
  switch_default as Switch,
201
206
  table_default as Table,
202
207
  tabs_default as Tabs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.157",
3
+ "version": "0.1.158",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {