@deepnoid/ui 0.1.223 → 1.0.0

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 (252) hide show
  1. package/.turbo/turbo-build.log +266 -251
  2. package/dist/{chunk-NTNF5T5I.mjs → chunk-23KGTXH2.mjs} +1 -1
  3. package/dist/{chunk-SX3JDFTH.mjs → chunk-2K3HZMC6.mjs} +9 -9
  4. package/dist/{chunk-ZFC5O2V3.mjs → chunk-3JKORA4G.mjs} +1 -1
  5. package/dist/{chunk-HFOHFBZH.mjs → chunk-3N442F6I.mjs} +2 -2
  6. package/dist/{chunk-WA7CSZQ3.mjs → chunk-3QZPVRM5.mjs} +1 -1
  7. package/dist/{chunk-BH3I4LIZ.mjs → chunk-4V5D237Z.mjs} +1 -1
  8. package/dist/chunk-63JRWMWN.mjs +215 -0
  9. package/dist/{chunk-GDHLN463.mjs → chunk-6CNPC722.mjs} +2 -2
  10. package/dist/{chunk-4IEHQI5B.mjs → chunk-7JCCPTBU.mjs} +3 -3
  11. package/dist/chunk-A6UUVHC6.mjs +38 -0
  12. package/dist/{chunk-P5L4YI54.mjs → chunk-AOU4QX7H.mjs} +106 -40
  13. package/dist/{chunk-U7SYKG2C.mjs → chunk-BBCJTXGU.mjs} +1 -1
  14. package/dist/{chunk-4S4AAZFC.mjs → chunk-CBFUVFGI.mjs} +4 -4
  15. package/dist/{chunk-AGE57VDD.mjs → chunk-CBIV6KFQ.mjs} +22 -25
  16. package/dist/{chunk-KWHCUAFU.mjs → chunk-CGJBY53Q.mjs} +3 -3
  17. package/dist/{chunk-XZYQFBCT.mjs → chunk-DI7QXTYZ.mjs} +1 -1
  18. package/dist/{chunk-U4DJHAM5.mjs → chunk-DPWUIAVC.mjs} +413 -149
  19. package/dist/chunk-E4VJDQD5.mjs +142 -0
  20. package/dist/{chunk-TE5JU3WA.mjs → chunk-EAWNUQDB.mjs} +90 -133
  21. package/dist/{chunk-OXJX5G3O.mjs → chunk-EIVSXVP5.mjs} +2 -2
  22. package/dist/{chunk-JGG3ZUNG.mjs → chunk-GSOTTSR4.mjs} +1 -1
  23. package/dist/{chunk-NGRGAY42.mjs → chunk-HKF5BNPX.mjs} +1 -1
  24. package/dist/{chunk-2URJGQFC.mjs → chunk-JUKILR6X.mjs} +2 -2
  25. package/dist/{chunk-DW3BX4M2.mjs → chunk-KPOXK7NN.mjs} +1 -1
  26. package/dist/{chunk-5KC3IFNR.mjs → chunk-LJSGQO4B.mjs} +1 -1
  27. package/dist/{chunk-LH6Z7SDZ.mjs → chunk-M7V5YMM2.mjs} +1 -1
  28. package/dist/{chunk-44FMPRHV.mjs → chunk-MAGZDGUW.mjs} +67 -38
  29. package/dist/chunk-MV2WCFK7.mjs +1 -0
  30. package/dist/{chunk-U52FBRJ3.mjs → chunk-NJWXYTBQ.mjs} +1 -1
  31. package/dist/{chunk-3DCUMRYP.mjs → chunk-NPQBJO6G.mjs} +11 -39
  32. package/dist/chunk-OK34FKBQ.mjs +224 -0
  33. package/dist/{chunk-OC5C42CB.mjs → chunk-OPGGL4CG.mjs} +3 -3
  34. package/dist/{chunk-R2XKPG4K.mjs → chunk-OPSMMRA2.mjs} +1 -1
  35. package/dist/{chunk-4X35QQTI.mjs → chunk-P4GNXDMO.mjs} +1 -1
  36. package/dist/{chunk-MTT24BLX.mjs → chunk-PCWANNZ4.mjs} +3 -3
  37. package/dist/{chunk-V2YH54JQ.mjs → chunk-PXUYPS6M.mjs} +12 -2
  38. package/dist/chunk-RFHWRBAB.mjs +105 -0
  39. package/dist/{chunk-EJ4GDC6K.mjs → chunk-S2T4GHJA.mjs} +27 -27
  40. package/dist/{chunk-5VTYO3RF.mjs → chunk-TBI5O3OL.mjs} +1 -1
  41. package/dist/{chunk-FZYZSMSS.mjs → chunk-TBRF36RK.mjs} +1 -1
  42. package/dist/{chunk-Q3KBMVJS.mjs → chunk-TEERNFIT.mjs} +77 -46
  43. package/dist/{chunk-RH3AHG52.mjs → chunk-V5XX3CGL.mjs} +1 -1
  44. package/dist/{chunk-6WD32ERF.mjs → chunk-VO2ZIGIK.mjs} +1 -1
  45. package/dist/{chunk-H6ZQDMYU.mjs → chunk-VOOEH6OJ.mjs} +24 -38
  46. package/dist/{chunk-ACZ3DQVT.mjs → chunk-VUO5J2OK.mjs} +16 -15
  47. package/dist/{chunk-RY5VVXQ4.mjs → chunk-WYTAGN2P.mjs} +1 -1
  48. package/dist/{chunk-NDNIAALB.mjs → chunk-YBDQSEPV.mjs} +17 -18
  49. package/dist/chunk-Z4NO7SMY.mjs +460 -0
  50. package/dist/components/accordion/accordion.js +366 -4
  51. package/dist/components/accordion/accordion.mjs +2 -2
  52. package/dist/components/accordion/accordionItem.js +366 -4
  53. package/dist/components/accordion/accordionItem.mjs +2 -2
  54. package/dist/components/accordion/index.js +366 -4
  55. package/dist/components/accordion/index.mjs +3 -3
  56. package/dist/components/avatar/avatar.js +472 -44
  57. package/dist/components/avatar/avatar.mjs +3 -3
  58. package/dist/components/avatar/index.js +472 -44
  59. package/dist/components/avatar/index.mjs +3 -3
  60. package/dist/components/backdrop/backdrop.js +366 -4
  61. package/dist/components/backdrop/backdrop.mjs +2 -2
  62. package/dist/components/backdrop/index.js +366 -4
  63. package/dist/components/backdrop/index.mjs +2 -2
  64. package/dist/components/breadcrumb/breadcrumb.js +951 -74
  65. package/dist/components/breadcrumb/breadcrumb.mjs +10 -9
  66. package/dist/components/breadcrumb/index.js +951 -74
  67. package/dist/components/breadcrumb/index.mjs +10 -9
  68. package/dist/components/button/button-group.js +366 -4
  69. package/dist/components/button/button-group.mjs +2 -2
  70. package/dist/components/button/button.d.mts +82 -119
  71. package/dist/components/button/button.d.ts +82 -119
  72. package/dist/components/button/button.js +966 -355
  73. package/dist/components/button/button.mjs +6 -5
  74. package/dist/components/button/button.style.d.mts +89 -0
  75. package/dist/components/button/button.style.d.ts +89 -0
  76. package/dist/components/button/button.style.js +1172 -0
  77. package/dist/components/button/button.style.mjs +9 -0
  78. package/dist/components/button/icon-button.d.mts +45 -46
  79. package/dist/components/button/icon-button.d.ts +45 -46
  80. package/dist/components/button/icon-button.js +1125 -527
  81. package/dist/components/button/icon-button.mjs +6 -5
  82. package/dist/components/button/index.js +1154 -830
  83. package/dist/components/button/index.mjs +9 -8
  84. package/dist/components/button/text-button.d.mts +59 -39
  85. package/dist/components/button/text-button.d.ts +59 -39
  86. package/dist/components/button/text-button.js +831 -21
  87. package/dist/components/button/text-button.mjs +3 -2
  88. package/dist/components/charts/areaChart.js +366 -4
  89. package/dist/components/charts/areaChart.mjs +2 -2
  90. package/dist/components/charts/barChart.js +366 -4
  91. package/dist/components/charts/barChart.mjs +2 -2
  92. package/dist/components/charts/circularProgress.js +366 -4
  93. package/dist/components/charts/circularProgress.mjs +2 -2
  94. package/dist/components/charts/index.js +366 -4
  95. package/dist/components/charts/index.mjs +6 -6
  96. package/dist/components/charts/radarChart.js +366 -4
  97. package/dist/components/charts/radarChart.mjs +2 -2
  98. package/dist/components/charts/simpleBarChart.js +366 -4
  99. package/dist/components/charts/simpleBarChart.mjs +2 -2
  100. package/dist/components/checkbox/checkbox.js +376 -42
  101. package/dist/components/checkbox/checkbox.mjs +2 -2
  102. package/dist/components/checkbox/index.js +376 -42
  103. package/dist/components/checkbox/index.mjs +2 -2
  104. package/dist/components/chip/chip.d.mts +32 -0
  105. package/dist/components/chip/chip.d.ts +32 -0
  106. package/dist/components/chip/chip.js +496 -57
  107. package/dist/components/chip/chip.mjs +4 -4
  108. package/dist/components/chip/index.js +496 -57
  109. package/dist/components/chip/index.mjs +4 -4
  110. package/dist/components/drawer/drawer.js +366 -4
  111. package/dist/components/drawer/drawer.mjs +2 -2
  112. package/dist/components/drawer/index.js +366 -4
  113. package/dist/components/drawer/index.mjs +2 -2
  114. package/dist/components/fileUpload/fileUpload.js +1014 -402
  115. package/dist/components/fileUpload/fileUpload.mjs +12 -11
  116. package/dist/components/fileUpload/index.js +1014 -402
  117. package/dist/components/fileUpload/index.mjs +12 -11
  118. package/dist/components/icon/Icon.d.mts +23 -10
  119. package/dist/components/icon/Icon.d.ts +23 -10
  120. package/dist/components/icon/Icon.js +120 -53
  121. package/dist/components/icon/Icon.mjs +2 -2
  122. package/dist/components/icon/index.js +120 -53
  123. package/dist/components/icon/index.mjs +2 -2
  124. package/dist/components/icon/template.d.mts +5 -2
  125. package/dist/components/icon/template.d.ts +5 -2
  126. package/dist/components/icon/template.js +106 -40
  127. package/dist/components/icon/template.mjs +1 -1
  128. package/dist/components/input/index.js +511 -82
  129. package/dist/components/input/index.mjs +4 -4
  130. package/dist/components/input/input.js +511 -82
  131. package/dist/components/input/input.mjs +4 -4
  132. package/dist/components/list/index.js +486 -57
  133. package/dist/components/list/index.mjs +6 -6
  134. package/dist/components/list/list.js +366 -4
  135. package/dist/components/list/list.mjs +2 -2
  136. package/dist/components/list/listItem.js +486 -57
  137. package/dist/components/list/listItem.mjs +5 -5
  138. package/dist/components/modal/GlobalModalProvider.d.mts +2 -0
  139. package/dist/components/modal/GlobalModalProvider.d.ts +2 -0
  140. package/dist/components/modal/GlobalModalProvider.js +1028 -416
  141. package/dist/components/modal/GlobalModalProvider.mjs +12 -11
  142. package/dist/components/modal/index.d.mts +2 -0
  143. package/dist/components/modal/index.d.ts +2 -0
  144. package/dist/components/modal/index.js +1028 -416
  145. package/dist/components/modal/index.mjs +13 -12
  146. package/dist/components/modal/modal.d.mts +101 -29
  147. package/dist/components/modal/modal.d.ts +101 -29
  148. package/dist/components/modal/modal.js +1028 -416
  149. package/dist/components/modal/modal.mjs +11 -10
  150. package/dist/components/modal/useGlobalModal.d.mts +2 -0
  151. package/dist/components/modal/useGlobalModal.d.ts +2 -0
  152. package/dist/components/modal/useGlobalModal.mjs +13 -12
  153. package/dist/components/pagination/index.js +598 -212
  154. package/dist/components/pagination/index.mjs +5 -5
  155. package/dist/components/pagination/pagination.js +598 -212
  156. package/dist/components/pagination/pagination.mjs +5 -5
  157. package/dist/components/picker/datePicker.js +1029 -705
  158. package/dist/components/picker/datePicker.mjs +12 -11
  159. package/dist/components/picker/day.js +366 -4
  160. package/dist/components/picker/day.mjs +2 -2
  161. package/dist/components/picker/index.js +1027 -703
  162. package/dist/components/picker/index.mjs +15 -14
  163. package/dist/components/picker/timePicker/Panel.js +831 -21
  164. package/dist/components/picker/timePicker/Panel.mjs +10 -9
  165. package/dist/components/picker/timePicker/index.js +976 -99
  166. package/dist/components/picker/timePicker/index.mjs +12 -11
  167. package/dist/components/progress/index.js +381 -18
  168. package/dist/components/progress/index.mjs +2 -2
  169. package/dist/components/progress/progress.d.mts +21 -18
  170. package/dist/components/progress/progress.d.ts +21 -18
  171. package/dist/components/progress/progress.js +381 -18
  172. package/dist/components/progress/progress.mjs +2 -2
  173. package/dist/components/radio/index.js +389 -41
  174. package/dist/components/radio/index.mjs +2 -2
  175. package/dist/components/radio/radio.d.mts +33 -48
  176. package/dist/components/radio/radio.d.ts +33 -48
  177. package/dist/components/radio/radio.js +389 -41
  178. package/dist/components/radio/radio.mjs +2 -2
  179. package/dist/components/ripple/index.mjs +3 -3
  180. package/dist/components/select/index.js +819 -221
  181. package/dist/components/select/index.mjs +10 -9
  182. package/dist/components/select/select.js +819 -221
  183. package/dist/components/select/select.mjs +10 -9
  184. package/dist/components/slider/index.d.mts +4 -0
  185. package/dist/components/slider/index.d.ts +4 -0
  186. package/dist/components/slider/index.js +955 -0
  187. package/dist/components/slider/index.mjs +11 -0
  188. package/dist/components/slider/slider.d.mts +158 -0
  189. package/dist/components/slider/slider.d.ts +158 -0
  190. package/dist/components/slider/slider.js +949 -0
  191. package/dist/components/slider/slider.mjs +10 -0
  192. package/dist/components/starRating/index.js +486 -57
  193. package/dist/components/starRating/index.mjs +4 -4
  194. package/dist/components/starRating/starRating.js +486 -57
  195. package/dist/components/starRating/starRating.mjs +4 -4
  196. package/dist/components/switch/index.js +22 -25
  197. package/dist/components/switch/index.mjs +1 -1
  198. package/dist/components/switch/switch.d.mts +0 -18
  199. package/dist/components/switch/switch.d.ts +0 -18
  200. package/dist/components/switch/switch.js +22 -25
  201. package/dist/components/switch/switch.mjs +1 -1
  202. package/dist/components/table/definition-table.js +366 -4
  203. package/dist/components/table/definition-table.mjs +2 -2
  204. package/dist/components/table/form-table.js +366 -4
  205. package/dist/components/table/form-table.mjs +1 -1
  206. package/dist/components/table/index.js +679 -291
  207. package/dist/components/table/index.mjs +10 -10
  208. package/dist/components/table/table-body.js +679 -291
  209. package/dist/components/table/table-body.mjs +7 -7
  210. package/dist/components/table/table-head.js +679 -291
  211. package/dist/components/table/table-head.mjs +7 -7
  212. package/dist/components/table/table.d.mts +8 -29
  213. package/dist/components/table/table.d.ts +8 -29
  214. package/dist/components/table/table.js +679 -291
  215. package/dist/components/table/table.mjs +7 -7
  216. package/dist/components/tabs/index.js +366 -4
  217. package/dist/components/tabs/index.mjs +2 -2
  218. package/dist/components/tabs/tabs.js +366 -4
  219. package/dist/components/tabs/tabs.mjs +2 -2
  220. package/dist/components/textarea/index.js +67 -38
  221. package/dist/components/textarea/index.mjs +1 -1
  222. package/dist/components/textarea/textarea.d.mts +21 -0
  223. package/dist/components/textarea/textarea.d.ts +21 -0
  224. package/dist/components/textarea/textarea.js +67 -38
  225. package/dist/components/textarea/textarea.mjs +1 -1
  226. package/dist/components/timePicker/calendar.js +486 -57
  227. package/dist/components/timePicker/calendar.mjs +3 -3
  228. package/dist/components/toast/index.js +486 -57
  229. package/dist/components/toast/index.mjs +5 -5
  230. package/dist/components/toast/toast.js +486 -57
  231. package/dist/components/toast/toast.mjs +4 -4
  232. package/dist/components/toast/use-toast.js +486 -57
  233. package/dist/components/toast/use-toast.mjs +5 -5
  234. package/dist/components/tooltip/index.js +366 -4
  235. package/dist/components/tooltip/index.mjs +2 -2
  236. package/dist/components/tooltip/tooltip.js +366 -4
  237. package/dist/components/tooltip/tooltip.mjs +2 -2
  238. package/dist/components/tree/index.js +486 -57
  239. package/dist/components/tree/index.mjs +4 -4
  240. package/dist/components/tree/tree.js +486 -57
  241. package/dist/components/tree/tree.mjs +4 -4
  242. package/dist/index.d.mts +1 -0
  243. package/dist/index.d.ts +1 -0
  244. package/dist/index.js +1705 -1281
  245. package/dist/index.mjs +76 -70
  246. package/dist/utils/tailwind-variants.js +366 -4
  247. package/dist/utils/tailwind-variants.mjs +1 -1
  248. package/package.json +1 -1
  249. package/dist/chunk-6AID2NLT.mjs +0 -37
  250. package/dist/chunk-BBRO35V3.mjs +0 -385
  251. package/dist/chunk-EVJ46M3U.mjs +0 -141
  252. package/dist/chunk-SKX5QPUD.mjs +0 -482
@@ -0,0 +1,955 @@
1
+ "use client";
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJS = (cb, mod) => function __require() {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ };
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
+ mod
31
+ ));
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
+
34
+ // ../../node_modules/tailwindcss/lib/util/createPlugin.js
35
+ var require_createPlugin = __commonJS({
36
+ "../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
37
+ "use strict";
38
+ Object.defineProperty(exports2, "__esModule", {
39
+ value: true
40
+ });
41
+ Object.defineProperty(exports2, "default", {
42
+ enumerable: true,
43
+ get: function() {
44
+ return _default;
45
+ }
46
+ });
47
+ function createPlugin(plugin2, config) {
48
+ return {
49
+ handler: plugin2,
50
+ config
51
+ };
52
+ }
53
+ createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
54
+ const optionsFunction = function(options) {
55
+ return {
56
+ __options: options,
57
+ handler: pluginFunction(options),
58
+ config: configFunction(options)
59
+ };
60
+ };
61
+ optionsFunction.__isOptionsFunction = true;
62
+ optionsFunction.__pluginFunction = pluginFunction;
63
+ optionsFunction.__configFunction = configFunction;
64
+ return optionsFunction;
65
+ };
66
+ var _default = createPlugin;
67
+ }
68
+ });
69
+
70
+ // ../../node_modules/tailwindcss/lib/public/create-plugin.js
71
+ var require_create_plugin = __commonJS({
72
+ "../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
73
+ "use strict";
74
+ Object.defineProperty(exports2, "__esModule", {
75
+ value: true
76
+ });
77
+ Object.defineProperty(exports2, "default", {
78
+ enumerable: true,
79
+ get: function() {
80
+ return _default;
81
+ }
82
+ });
83
+ var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
84
+ function _interop_require_default(obj) {
85
+ return obj && obj.__esModule ? obj : {
86
+ default: obj
87
+ };
88
+ }
89
+ var _default = _createPlugin.default;
90
+ }
91
+ });
92
+
93
+ // ../../node_modules/tailwindcss/plugin.js
94
+ var require_plugin = __commonJS({
95
+ "../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
96
+ "use strict";
97
+ var createPlugin = require_create_plugin();
98
+ module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
99
+ }
100
+ });
101
+
102
+ // src/components/slider/index.ts
103
+ var slider_exports = {};
104
+ __export(slider_exports, {
105
+ Slider: () => slider_default
106
+ });
107
+ module.exports = __toCommonJS(slider_exports);
108
+
109
+ // src/components/slider/slider.tsx
110
+ var import_react = require("react");
111
+
112
+ // src/utils/tailwind-variants.ts
113
+ var import_tailwind_variants = require("tailwind-variants");
114
+
115
+ // ../tailwind-config/src/plugin.ts
116
+ var import_plugin = __toESM(require_plugin());
117
+
118
+ // ../tailwind-config/src/colors/primitive-palette.ts
119
+ var primitivePalette = {
120
+ bg: {
121
+ "01": "#040811",
122
+ "02": "#040811",
123
+ "03": "#14161E",
124
+ "04": "#070414",
125
+ "05": "#070C12",
126
+ "06": "#202123"
127
+ },
128
+ gray: {
129
+ cool: {
130
+ 50: "#F7F7F8",
131
+ 100: "#EEEEF0",
132
+ 200: "#D8D9DF",
133
+ 300: "#B6B8C3",
134
+ 400: "#999CA9",
135
+ 500: "#717486",
136
+ 600: "#5B5E6E",
137
+ 700: "#4A4C5A",
138
+ 800: "#40424C",
139
+ 900: "#36373F",
140
+ 950: "#25252C"
141
+ },
142
+ warm: {
143
+ 50: "#F6F6F6",
144
+ 100: "#E7E7E7",
145
+ 200: "#D1D1D1",
146
+ 300: "#B0B0B0",
147
+ 400: "#888888",
148
+ 500: "#6D6D6D",
149
+ 600: "#5D5D5D",
150
+ 700: "#525252",
151
+ 800: "#454545",
152
+ 900: "#3D3D3D",
153
+ 950: "#25252C"
154
+ }
155
+ },
156
+ opacity: {
157
+ white: {
158
+ "0": "#FFFFFF, 0",
159
+ 5: "#FFFFFF, 5",
160
+ 10: "#FFFFFF, 10",
161
+ 20: "#FFFFFF, 20",
162
+ 30: "#FFFFFF, 30",
163
+ 40: "#FFFFFF, 40",
164
+ 50: "#FFFFFF, 50",
165
+ 60: "#FFFFFF, 60",
166
+ 70: "#FFFFFF, 70",
167
+ 80: "#FFFFFF, 80",
168
+ 90: "#FFFFFF, 90"
169
+ },
170
+ black: {
171
+ "0": "#000000, 0",
172
+ 5: "#000000, 5",
173
+ 10: "#000000, 10",
174
+ 20: "#000000, 20",
175
+ 30: "#000000, 30",
176
+ 40: "#000000, 40",
177
+ 50: "#000000, 50",
178
+ 60: "#000000, 60",
179
+ 70: "#000000, 70",
180
+ 80: "#000000, 80",
181
+ 90: "#000000, 90"
182
+ }
183
+ },
184
+ red: {
185
+ 50: "#FEF2F2",
186
+ 100: "#FEE9E9",
187
+ 200: "#FCCFD2",
188
+ 300: "#F9A8AC",
189
+ 400: "#F57780",
190
+ 500: "#EC4757",
191
+ 600: "#D82640",
192
+ 700: "#B71934",
193
+ 800: "#991832",
194
+ 900: "#831831",
195
+ 950: "#831831"
196
+ },
197
+ rose: {
198
+ 50: "#FDF4F6",
199
+ 100: "#F9E9EC",
200
+ 200: "#F4D8DD",
201
+ 300: "#E9B8C2",
202
+ 400: "#DF96A6",
203
+ 500: "#CB6881",
204
+ 600: "#B54969",
205
+ 700: "#973957",
206
+ 800: "#7F324D",
207
+ 900: "#6A2740",
208
+ 950: "#3C1523"
209
+ },
210
+ hotPink: {
211
+ 50: "#FDF2F7",
212
+ 100: "#FDE6F0",
213
+ 200: "#FCCEE3",
214
+ 300: "#FBA6CA",
215
+ 400: "#F76FA6",
216
+ 500: "#F04485",
217
+ 600: "#E2326C",
218
+ 700: "#C21448",
219
+ 800: "#A1133C",
220
+ 900: "#861535",
221
+ 950: "#52051B"
222
+ },
223
+ sepia: {
224
+ 50: "#FCF5F4",
225
+ 100: "#FAE9E9",
226
+ 200: "#F5D6D7",
227
+ 300: "#EDB4B6",
228
+ 400: "#E28A8F",
229
+ 500: "#D45F69",
230
+ 600: "#BE4051",
231
+ 700: "#9F3142",
232
+ 800: "#862B3C",
233
+ 900: "#6B2433",
234
+ 950: "#320E15"
235
+ },
236
+ orange: {
237
+ 50: "#FEF7EE",
238
+ 100: "#FDEDD7",
239
+ 200: "#F9D8AF",
240
+ 300: "#F5BB7C",
241
+ 400: "#F09447",
242
+ 500: "#EC7723",
243
+ 600: "#E15F19",
244
+ 700: "#E15F19",
245
+ 800: "#92391A",
246
+ 900: "#763118",
247
+ 950: "#40160A"
248
+ },
249
+ yellow: {
250
+ 50: "#F9F2E5",
251
+ 100: "#F5E6BC",
252
+ 200: "#FFE9BC",
253
+ 300: "#FFD174",
254
+ 400: "#F8BE4A",
255
+ 500: "#EAAD30",
256
+ 600: "#D77908",
257
+ 700: "#B2550B",
258
+ 800: "#91420F",
259
+ 900: "#773610",
260
+ 950: "#441B04"
261
+ },
262
+ tree: {
263
+ 50: "#F5F3F1",
264
+ 100: "#E5E1DC",
265
+ 200: "#CCC5BC",
266
+ 300: "#AFA395",
267
+ 400: "#978878",
268
+ 500: "#907E6F",
269
+ 600: "#756459",
270
+ 700: "#5F4F49",
271
+ 800: "#524541",
272
+ 900: "#483D3B",
273
+ 950: "#282120"
274
+ },
275
+ brown: {
276
+ 50: "#F6F3F0",
277
+ 100: "#F4EDEC",
278
+ 200: "#EBDFDD",
279
+ 300: "#DCC9C5",
280
+ 400: "#C6A9A3",
281
+ 500: "#B08983",
282
+ 600: "#A27E77",
283
+ 700: "#7F5D56",
284
+ 800: "#6A4F4A",
285
+ 900: "#5B4541",
286
+ 950: "#2C1E1C"
287
+ },
288
+ lime: {
289
+ 50: "#F7FFE5",
290
+ 100: "#ECFFC7",
291
+ 200: "#D9FF95",
292
+ 300: "#BDFE58",
293
+ 400: "#A1F524",
294
+ 500: "#82DC06",
295
+ 600: "#63B000",
296
+ 700: "#4B8506",
297
+ 800: "#3E690B",
298
+ 900: "#34580F",
299
+ 950: "#193102"
300
+ },
301
+ green: {
302
+ 50: "#E7F3EB",
303
+ 100: "#DFF9EA",
304
+ 200: "#CEECDA",
305
+ 300: "#9CD4B3",
306
+ 400: "#6EC092",
307
+ 500: "#3FA46B",
308
+ 600: "#209754",
309
+ 700: "#1E7745",
310
+ 800: "#1D5E3A",
311
+ 900: "#194E32",
312
+ 950: "#082B19"
313
+ },
314
+ timberGreen: {
315
+ 50: "#F1FCF5",
316
+ 100: "#DFF9EA",
317
+ 200: "#B5DACD",
318
+ 300: "#8ABFAF",
319
+ 400: "#60A18F",
320
+ 500: "#468675",
321
+ 600: "#366B5F",
322
+ 700: "#2E574D",
323
+ 800: "#2A4641",
324
+ 900: "#1D2F2B",
325
+ 950: "#11221E"
326
+ },
327
+ teal: {
328
+ 50: "#E2F1F0",
329
+ 100: "#C9EBE8",
330
+ 200: "#C7E8E5",
331
+ 300: "#8AD0D0",
332
+ 400: "#67C4C4",
333
+ 500: "#39A6A7",
334
+ 600: "#258386",
335
+ 700: "#1B666A",
336
+ 800: "#1A5255",
337
+ 900: "#1A4447",
338
+ 950: "#09272A"
339
+ },
340
+ lightBlue: {
341
+ 50: "#F2F8FD",
342
+ 100: "#E3EFFB",
343
+ 200: "#C1E0F6",
344
+ 300: "#8BC6EE",
345
+ 400: "#3DA2E1",
346
+ 500: "#258FD2",
347
+ 600: "#1771B2",
348
+ 700: "#145A90",
349
+ 800: "#154D77",
350
+ 900: "#174163",
351
+ 950: "#062C2D"
352
+ },
353
+ sea: {
354
+ 50: "#F4F6FC",
355
+ 100: "#E8EDF6",
356
+ 200: "#CBD9EB",
357
+ 300: "#9FB9DA",
358
+ 400: "#6A93C5",
359
+ 500: "#446FA4",
360
+ 600: "#375D92",
361
+ 700: "#2D4B77",
362
+ 800: "#294163",
363
+ 900: "#263954",
364
+ 950: "#1A2537"
365
+ },
366
+ blue: {
367
+ 50: "#F0F6FE",
368
+ 100: "#DDEAFC",
369
+ 200: "#C2DBFB",
370
+ 300: "#98C5F8",
371
+ 400: "#68A7F2",
372
+ 500: "#377CEB",
373
+ 600: "#2F68E1",
374
+ 700: "#2754CE",
375
+ 800: "#20429E",
376
+ 900: "#1C2A52",
377
+ 950: "#061132"
378
+ },
379
+ lightPurple: {
380
+ 50: "#F6F5FD",
381
+ 100: "#EEEDFA",
382
+ 200: "#DDDCFD",
383
+ 300: "#BDB9EC",
384
+ 400: "#AAA1E4",
385
+ 500: "#826CE3",
386
+ 600: "#7250D7",
387
+ 700: "#623DC4",
388
+ 800: "#5133A4",
389
+ 900: "#442B87",
390
+ 950: "#291A5B"
391
+ }
392
+ };
393
+
394
+ // ../tailwind-config/src/colors/semantic-palette.ts
395
+ var semanticPalette = {
396
+ primary: {
397
+ soft: { light: primitivePalette.blue[100], dark: primitivePalette.blue[950] },
398
+ light: { light: primitivePalette.blue[200], dark: primitivePalette.blue[900] },
399
+ main: { light: primitivePalette.blue[600], dark: primitivePalette.blue[600] },
400
+ dark: { light: primitivePalette.blue[800], dark: primitivePalette.blue[500] },
401
+ strong: { light: primitivePalette.blue[900], dark: primitivePalette.blue[200] }
402
+ },
403
+ secondary: {
404
+ soft: { light: primitivePalette.lightPurple[100], dark: primitivePalette.lightPurple[950] },
405
+ light: { light: primitivePalette.lightPurple[200], dark: primitivePalette.lightPurple[900] },
406
+ main: { light: primitivePalette.lightPurple[600], dark: primitivePalette.lightPurple[500] },
407
+ dark: { light: primitivePalette.lightPurple[800], dark: primitivePalette.lightPurple[700] },
408
+ strong: { light: primitivePalette.lightPurple[950], dark: primitivePalette.lightPurple[950] }
409
+ },
410
+ body: {
411
+ foreground: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[50] },
412
+ background: { light: primitivePalette.gray.cool[50], dark: primitivePalette.bg["06"] }
413
+ },
414
+ neutral: {
415
+ soft: { light: primitivePalette.gray.cool[100], dark: primitivePalette.gray.cool[900] },
416
+ light: { light: primitivePalette.gray.cool[200], dark: primitivePalette.gray.cool[700] },
417
+ main: { light: primitivePalette.gray.cool[400], dark: primitivePalette.gray.cool[400] },
418
+ dark: { light: primitivePalette.gray.cool[500], dark: primitivePalette.gray.cool[300] },
419
+ strong: { light: primitivePalette.gray.cool[700], dark: primitivePalette.gray.cool[200] }
420
+ },
421
+ trans: {
422
+ soft: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] },
423
+ light: { light: primitivePalette.opacity.black[10], dark: primitivePalette.opacity.white[10] },
424
+ main: { light: primitivePalette.opacity.black[20], dark: primitivePalette.opacity.white[20] },
425
+ dark: { light: primitivePalette.opacity.black[30], dark: primitivePalette.opacity.white[30] },
426
+ strong: { light: primitivePalette.opacity.black[60], dark: primitivePalette.opacity.black[60] }
427
+ },
428
+ common: {
429
+ black: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[950] },
430
+ white: { light: primitivePalette.gray.cool[50], dark: primitivePalette.gray.cool[50] },
431
+ transparent: { light: primitivePalette.opacity.white["0"], dark: primitivePalette.opacity.black["0"] },
432
+ hover: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] }
433
+ },
434
+ info: {
435
+ soft: { light: primitivePalette.teal[50], dark: primitivePalette.teal[950] },
436
+ light: { light: primitivePalette.teal[100], dark: primitivePalette.teal[900] },
437
+ main: { light: primitivePalette.teal[500], dark: primitivePalette.teal[500] },
438
+ dark: { light: primitivePalette.teal[600], dark: primitivePalette.teal[700] },
439
+ strong: { light: "", dark: "" }
440
+ },
441
+ success: {
442
+ soft: { light: primitivePalette.green[50], dark: primitivePalette.green[950] },
443
+ light: { light: primitivePalette.green[200], dark: primitivePalette.green[900] },
444
+ main: { light: primitivePalette.green[500], dark: primitivePalette.green[600] },
445
+ dark: { light: primitivePalette.green[600], dark: primitivePalette.green[700] },
446
+ strong: { light: "", dark: "" }
447
+ },
448
+ warning: {
449
+ soft: { light: primitivePalette.yellow[50], dark: primitivePalette.yellow[950] },
450
+ light: { light: primitivePalette.yellow[100], dark: primitivePalette.yellow[900] },
451
+ main: { light: primitivePalette.yellow[500], dark: primitivePalette.yellow[600] },
452
+ dark: { light: primitivePalette.yellow[600], dark: primitivePalette.yellow[700] },
453
+ strong: { light: "", dark: "" }
454
+ },
455
+ danger: {
456
+ soft: { light: primitivePalette.hotPink[50], dark: primitivePalette.hotPink[950] },
457
+ light: { light: primitivePalette.hotPink[200], dark: primitivePalette.hotPink[900] },
458
+ main: { light: primitivePalette.hotPink[500], dark: primitivePalette.hotPink[500] },
459
+ dark: { light: primitivePalette.hotPink[600], dark: primitivePalette.hotPink[700] },
460
+ strong: { light: "", dark: "" }
461
+ }
462
+ };
463
+
464
+ // ../tailwind-config/src/typography/font.ts
465
+ var fontSize = {
466
+ h1: [
467
+ "40px",
468
+ {
469
+ fontWeight: "700"
470
+ }
471
+ ],
472
+ h2: [
473
+ "34px",
474
+ {
475
+ fontWeight: "700"
476
+ }
477
+ ],
478
+ h3: [
479
+ "28px",
480
+ {
481
+ fontWeight: "700"
482
+ }
483
+ ],
484
+ h4: [
485
+ "24px",
486
+ {
487
+ fontWeight: "700"
488
+ }
489
+ ],
490
+ h5: [
491
+ "20px",
492
+ {
493
+ fontWeight: "600"
494
+ }
495
+ ],
496
+ sm: [
497
+ "12px",
498
+ {
499
+ lineHeight: "18px",
500
+ fontWeight: "400"
501
+ }
502
+ ],
503
+ md: [
504
+ "14px",
505
+ {
506
+ lineHeight: "21px",
507
+ fontWeight: "400"
508
+ }
509
+ ],
510
+ lg: [
511
+ "16px",
512
+ {
513
+ lineHeight: "24px",
514
+ fontWeight: "400"
515
+ }
516
+ ],
517
+ xl: [
518
+ "18px",
519
+ {
520
+ lineHeight: "27px",
521
+ fontWeight: "400"
522
+ }
523
+ ],
524
+ "2xl": [
525
+ "24px",
526
+ {
527
+ lineHeight: "36px",
528
+ fontWeight: "400"
529
+ }
530
+ ]
531
+ };
532
+
533
+ // ../tailwind-config/src/animation/bar.ts
534
+ var barAnimation = {
535
+ "indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
536
+ };
537
+ var barKeyframe = {
538
+ "indeterminate-bar": {
539
+ "0%": {
540
+ transform: "translateX(-50%) scaleX(0.2)"
541
+ },
542
+ "100%": {
543
+ transform: "translateX(100%) scaleX(1)"
544
+ }
545
+ }
546
+ };
547
+
548
+ // ../tailwind-config/src/animation/slide.ts
549
+ var sliceAnimation = {
550
+ slideInFromTop: "slideInFromTop 0.5s ease-out",
551
+ slideInFromBottom: "slideInFromBottom 0.5s ease-out",
552
+ slideInFromLeft: "slideInFromLeft 0.5s ease-out",
553
+ slideInFromRight: "slideInFromRight 0.5s ease-out",
554
+ slideOutToTop: "slideOutToTop 0.5s ease-in",
555
+ slideOutToBottom: "slideOutToBottom 0.5s ease-in",
556
+ slideOutToLeft: "slideOutToLeft 0.5s ease-in",
557
+ slideOutToRight: "slideOutToRight 0.5s ease-in"
558
+ };
559
+ var sliceKeyframe = {
560
+ slideInFromTop: {
561
+ "0%": {
562
+ transform: "translateY(-10px)",
563
+ opacity: "0"
564
+ },
565
+ "100%": {
566
+ transform: "translateY(0)",
567
+ opacity: "1"
568
+ }
569
+ },
570
+ slideInFromBottom: {
571
+ "0%": {
572
+ transform: "translateY(10px)",
573
+ opacity: "0"
574
+ },
575
+ "100%": {
576
+ transform: "translateY(0)",
577
+ opacity: "1"
578
+ }
579
+ },
580
+ slideInFromLeft: {
581
+ "0%": {
582
+ transform: "translateX(-10px)",
583
+ opacity: "0"
584
+ },
585
+ "100%": {
586
+ transform: "translateX(0)",
587
+ opacity: "1"
588
+ }
589
+ },
590
+ slideInFromRight: {
591
+ "0%": {
592
+ transform: "translateX(10px)",
593
+ opacity: "0"
594
+ },
595
+ "100%": {
596
+ transform: "translateX(0)",
597
+ opacity: "1"
598
+ }
599
+ },
600
+ slideOutToTop: {
601
+ "0%": {
602
+ transform: "translateY(0)",
603
+ opacity: "1"
604
+ },
605
+ "100%": {
606
+ transform: "translateY(-10px)",
607
+ opacity: "0"
608
+ }
609
+ },
610
+ slideOutToBottom: {
611
+ "0%": {
612
+ transform: "translateY(0)",
613
+ opacity: "1"
614
+ },
615
+ "100%": {
616
+ transform: "translateY(10px)",
617
+ opacity: "0"
618
+ }
619
+ },
620
+ slideOutToLeft: {
621
+ "0%": {
622
+ transform: "translateX(0)",
623
+ opacity: "1"
624
+ },
625
+ "100%": {
626
+ transform: "translateX(-10px)",
627
+ opacity: "0"
628
+ }
629
+ },
630
+ slideOutToRight: {
631
+ "0%": {
632
+ transform: "translateX(0)",
633
+ opacity: "1"
634
+ },
635
+ "100%": {
636
+ transform: "translateX(10px)",
637
+ opacity: "0"
638
+ }
639
+ }
640
+ };
641
+
642
+ // ../tailwind-config/src/animation/index.ts
643
+ var animation = { ...sliceAnimation, ...barAnimation };
644
+ var keyframes = { ...sliceKeyframe, ...barKeyframe };
645
+
646
+ // ../tailwind-config/src/shadow/index.ts
647
+ var boxShadow = {
648
+ "border-1": "inner 0 0 0 1px inset",
649
+ "border-2": "inner 0 0 0 2px inset",
650
+ "border-3": "inner 0 0 0 3px inset",
651
+ "border-4": "inner 0 0 0 4px inset",
652
+ "border-5": "inner 0 0 0 5px inset",
653
+ "border-6": "inner 0 0 0 6px inset",
654
+ "border-7": "inner 0 0 0 7px inset",
655
+ "border-8": "inner 0 0 0 8px inset",
656
+ "border-9": "inner 0 0 0 9px inset",
657
+ "border-10": "inner 0 0 0 10px inset",
658
+ inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
659
+ "inner-sm": "inset 0 4px 8px 0 rgba(0, 0, 0, 0.2)",
660
+ "inner-md": "inset 0 6px 12px 0 rgba(0, 0, 0, 0.2)",
661
+ "inner-lg": "inset 0 8px 16px 0 rgba(0, 0, 0, 0.2)",
662
+ "inner-xl": "inset 0 10px 20px 0 rgba(0, 0, 0, 0.2)",
663
+ drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)",
664
+ "drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
665
+ "drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
666
+ "drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
667
+ "drop-xl": "0 0px 60px 0 rgba(0, 0, 0, 0.2)"
668
+ };
669
+
670
+ // ../tailwind-config/src/border/radius.ts
671
+ var borderRadius = {
672
+ sm: "4px",
673
+ md: "6px",
674
+ lg: "8px",
675
+ xl: "10px",
676
+ "2xl": "20px",
677
+ none: "0",
678
+ full: "9999px",
679
+ 2: "2px",
680
+ 5: "5px"
681
+ };
682
+
683
+ // ../tailwind-config/src/border/width.ts
684
+ var borderWidth = {
685
+ sm: "1px",
686
+ md: "1.25px",
687
+ lg: "1.5px",
688
+ xl: "1.75px"
689
+ };
690
+
691
+ // ../tailwind-config/src/space/gap.ts
692
+ var gap = {
693
+ sm: "4px",
694
+ md: "6px",
695
+ lg: "8px",
696
+ xl: "10px",
697
+ 5: "5px",
698
+ 10: "10px",
699
+ 20: "20px",
700
+ 30: "30px"
701
+ };
702
+
703
+ // src/utils/tailwind-variants.ts
704
+ function typedKeys(obj) {
705
+ return Object.keys(obj);
706
+ }
707
+ var COMMON_SIZE = ["sm", "md", "lg", "xl"];
708
+ var tv = (0, import_tailwind_variants.createTV)({
709
+ twMergeConfig: {
710
+ classGroups: {
711
+ fontSize: [{ text: [...typedKeys(fontSize)] }],
712
+ borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
713
+ boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
714
+ padding: [{ p: [...COMMON_SIZE] }],
715
+ gap: [{ gap: [...typedKeys(gap)] }],
716
+ borderWidth: [{ border: [...typedKeys(borderWidth)] }]
717
+ }
718
+ }
719
+ });
720
+
721
+ // src/utils/props.ts
722
+ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
723
+ if (!variantKeys) {
724
+ return [props, {}];
725
+ }
726
+ const picked = variantKeys.reduce((acc, key) => {
727
+ if (key in props) {
728
+ return { ...acc, [key]: props[key] };
729
+ } else {
730
+ return acc;
731
+ }
732
+ }, {});
733
+ if (removeVariantProps) {
734
+ const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
735
+ return [omitted, picked];
736
+ } else {
737
+ return [props, picked];
738
+ }
739
+ };
740
+
741
+ // src/components/slider/slider.tsx
742
+ var import_jsx_runtime = require("react/jsx-runtime");
743
+ var clampPercentage = (value) => {
744
+ return Math.min(100, Math.max(0, value));
745
+ };
746
+ var Slider = (0, import_react.forwardRef)((originalProps, ref) => {
747
+ const [props, variantProps] = mapPropsVariants(originalProps, sliderStyle.variantKeys);
748
+ const {
749
+ children,
750
+ classNames,
751
+ value: controlledValue,
752
+ defaultValue = 0,
753
+ minValue = 0,
754
+ maxValue = 100,
755
+ step = 1,
756
+ onChange,
757
+ disabled = false,
758
+ ...restProps
759
+ } = props;
760
+ const [uncontrolledValue, setUncontrolledValue] = (0, import_react.useState)(defaultValue);
761
+ const [isDragging, setIsDragging] = (0, import_react.useState)(false);
762
+ const isControlled = controlledValue !== void 0;
763
+ const value = isControlled ? controlledValue : uncontrolledValue;
764
+ const innerRef = (0, import_react.useRef)(null);
765
+ const calculateValue = (0, import_react.useCallback)(
766
+ (clientX) => {
767
+ if (!innerRef.current) return value;
768
+ const { left, width } = innerRef.current.getBoundingClientRect();
769
+ const percent = Math.min(Math.max((clientX - left) / width, 0), 1);
770
+ const exactValue = percent * (maxValue - minValue) + minValue;
771
+ const stepRoundedValue = Math.round(exactValue / step) * step;
772
+ return Math.min(Math.max(stepRoundedValue, minValue), maxValue);
773
+ },
774
+ [minValue, maxValue, step, value]
775
+ );
776
+ const updateValue = (0, import_react.useCallback)(
777
+ (newValue) => {
778
+ if (!isControlled) {
779
+ setUncontrolledValue(newValue);
780
+ }
781
+ if (onChange && value !== newValue) {
782
+ onChange(newValue);
783
+ }
784
+ },
785
+ [isControlled, onChange, value]
786
+ );
787
+ const handlePointerDown = (e) => {
788
+ var _a;
789
+ if (disabled) return;
790
+ (_a = innerRef.current) == null ? void 0 : _a.focus();
791
+ e.currentTarget.setPointerCapture(e.pointerId);
792
+ setIsDragging(true);
793
+ const newValue = calculateValue(e.clientX);
794
+ updateValue(newValue);
795
+ };
796
+ const handlePointerMove = (e) => {
797
+ if (disabled || e.buttons === 0) return;
798
+ const newValue = calculateValue(e.clientX);
799
+ updateValue(newValue);
800
+ };
801
+ const handlePointerUp = (e) => {
802
+ if (disabled) return;
803
+ e.currentTarget.releasePointerCapture(e.pointerId);
804
+ setIsDragging(false);
805
+ };
806
+ const handleKeyDown = (e) => {
807
+ if (disabled) return;
808
+ let newValue = value;
809
+ if (e.key === "ArrowRight" || e.key === "ArrowUp") {
810
+ newValue = Math.min(value + step, maxValue);
811
+ } else if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
812
+ newValue = Math.max(value - step, minValue);
813
+ } else if (e.key === "Home") {
814
+ newValue = minValue;
815
+ } else if (e.key === "End") {
816
+ newValue = maxValue;
817
+ }
818
+ if (newValue !== value) {
819
+ e.preventDefault();
820
+ updateValue(newValue);
821
+ }
822
+ };
823
+ const setRefs = (0, import_react.useCallback)(
824
+ (node) => {
825
+ innerRef.current = node;
826
+ if (typeof ref === "function") {
827
+ ref(node);
828
+ } else if (ref) {
829
+ ref.current = node;
830
+ }
831
+ },
832
+ [ref]
833
+ );
834
+ const percentage = clampPercentage((value - minValue) / (maxValue - minValue) * 100);
835
+ const slots = (0, import_react.useMemo)(() => sliderStyle({ ...variantProps }), [variantProps]);
836
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
837
+ "div",
838
+ {
839
+ ref: setRefs,
840
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
841
+ onPointerDown: handlePointerDown,
842
+ onPointerMove: handlePointerMove,
843
+ onPointerUp: handlePointerUp,
844
+ onKeyDown: handleKeyDown,
845
+ tabIndex: disabled ? void 0 : 0,
846
+ role: "slider",
847
+ "aria-valuemin": minValue,
848
+ "aria-valuemax": maxValue,
849
+ "aria-valuenow": value,
850
+ ...restProps,
851
+ children: [
852
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
853
+ "div",
854
+ {
855
+ className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
856
+ style: { width: `${percentage}%`, transitionDuration: isDragging ? "0ms" : void 0 }
857
+ }
858
+ ) }),
859
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
860
+ "div",
861
+ {
862
+ className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }),
863
+ style: { left: `${percentage}%`, transitionDuration: isDragging ? "0ms" : void 0 }
864
+ }
865
+ )
866
+ ]
867
+ }
868
+ );
869
+ });
870
+ Slider.displayName = "Slider";
871
+ var slider_default = Slider;
872
+ var sliderStyle = tv({
873
+ slots: {
874
+ base: [
875
+ "relative",
876
+ "flex",
877
+ "flex-col",
878
+ "justify-center",
879
+ "w-full",
880
+ "touch-none",
881
+ "select-none",
882
+ "outline-none",
883
+ "cursor-pointer"
884
+ ],
885
+ track: ["z-0", "relative", "w-full", "bg-neutral-soft"],
886
+ indicator: ["absolute", "h-full", "top-0", "left-0", "border-none", "transition-all"],
887
+ thumb: [
888
+ "z-10",
889
+ "absolute",
890
+ "flex",
891
+ "items-center",
892
+ "justify-center",
893
+ "top-1/2",
894
+ "-translate-y-1/2",
895
+ "-translate-x-1/2",
896
+ "bg-white",
897
+ "shadow-small",
898
+ "rounded-full",
899
+ "transition-all",
900
+ "outline-none",
901
+ "cursor-grab",
902
+ "active:cursor-grabbing"
903
+ ]
904
+ },
905
+ variants: {
906
+ color: {
907
+ primary: {
908
+ indicator: ["bg-primary-light"],
909
+ thumb: ["bg-primary-main", "ring-[color-mix(in_srgb,var(--dn-primary-main)_20%,transparent)]"]
910
+ },
911
+ secondary: {
912
+ indicator: ["bg-secondary-light"],
913
+ thumb: ["bg-secondary-main", "ring-[color-mix(in_srgb,var(--dn-secondary-main)_20%,transparent)]"]
914
+ }
915
+ },
916
+ size: {
917
+ sm: {
918
+ track: ["h-[4px]", "rounded-sm"],
919
+ indicator: ["rounded-sm"],
920
+ thumb: ["w-[8px]", "h-[8px]", "hover:ring-2"]
921
+ },
922
+ md: {
923
+ track: ["h-[6px]", "rounded-md"],
924
+ indicator: ["rounded-md"],
925
+ thumb: ["w-[10px]", "h-[10px]", "hover:ring-3"]
926
+ },
927
+ lg: {
928
+ track: ["h-[8px]", "rounded-lg"],
929
+ indicator: ["rounded-lg"],
930
+ thumb: ["w-[12px]", "h-[12px]", "hover:ring-4"]
931
+ },
932
+ xl: {
933
+ track: ["h-[10px]", "rounded-xl"],
934
+ indicator: ["rounded-xl"],
935
+ thumb: ["w-[14px]", "h-[14px]", "hover:ring-5"]
936
+ }
937
+ },
938
+ disabled: {
939
+ true: {
940
+ base: ["opacity-disabled", "cursor-not-allowed", "!pointer-events-none"],
941
+ indicator: ["bg-neutral-light"],
942
+ thumb: ["bg-neutral-main", "cursor-not-allowed"]
943
+ }
944
+ }
945
+ },
946
+ defaultVariants: {
947
+ color: "primary",
948
+ size: "md",
949
+ disabled: false
950
+ }
951
+ });
952
+ // Annotate the CommonJS export names for ESM import in node:
953
+ 0 && (module.exports = {
954
+ Slider
955
+ });