@pathscale/ui 0.0.12 → 0.0.14

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 (341) hide show
  1. package/README.md +44 -39
  2. package/dist/components/accordion/index.html +7 -0
  3. package/dist/components/accordion/index.html.br +2 -0
  4. package/dist/components/accordion/index.js +7690 -1
  5. package/dist/components/accordion/index.js.br +0 -0
  6. package/dist/components/alert/index.html +7 -0
  7. package/dist/components/alert/index.html.br +0 -0
  8. package/dist/components/alert/index.js +7426 -0
  9. package/dist/components/alert/index.js.br +0 -0
  10. package/dist/components/autocomplete/index.html +7 -0
  11. package/dist/components/autocomplete/index.html.br +1 -0
  12. package/dist/components/autocomplete/index.js +5438 -1
  13. package/dist/components/autocomplete/index.js.br +0 -0
  14. package/dist/components/avatar/index.html +7 -0
  15. package/dist/components/avatar/index.html.br +0 -0
  16. package/dist/components/avatar/index.js +8795 -1
  17. package/dist/components/avatar/index.js.br +0 -0
  18. package/dist/components/badge/index.html +7 -0
  19. package/dist/components/badge/index.html.br +1 -0
  20. package/dist/components/badge/index.js +7435 -1
  21. package/dist/components/badge/index.js.br +0 -0
  22. package/dist/components/breadcrumbs/index.html +7 -0
  23. package/dist/components/breadcrumbs/index.html.br +0 -0
  24. package/dist/components/breadcrumbs/index.js +7434 -1
  25. package/dist/components/breadcrumbs/index.js.br +0 -0
  26. package/dist/components/button/index.html +7 -0
  27. package/dist/components/button/index.html.br +0 -0
  28. package/dist/components/button/index.js +8771 -1
  29. package/dist/components/button/index.js.br +0 -0
  30. package/dist/components/card/index.html +7 -0
  31. package/dist/components/card/index.html.br +2 -0
  32. package/dist/components/card/index.js +7536 -0
  33. package/dist/components/card/index.js.br +0 -0
  34. package/dist/components/chatbubble/index.html +7 -0
  35. package/dist/components/chatbubble/index.html.br +0 -0
  36. package/dist/components/chatbubble/index.js +8991 -0
  37. package/dist/components/chatbubble/index.js.br +0 -0
  38. package/dist/components/checkbox/index.html +7 -0
  39. package/dist/components/checkbox/index.html.br +0 -0
  40. package/dist/components/checkbox/index.js +7436 -1
  41. package/dist/components/checkbox/index.js.br +0 -0
  42. package/dist/components/collapse/index.html +7 -0
  43. package/dist/components/collapse/index.html.br +0 -0
  44. package/dist/components/collapse/index.js +7621 -1
  45. package/dist/components/collapse/index.js.br +0 -0
  46. package/dist/components/countdown/index.html +7 -0
  47. package/dist/components/countdown/index.html.br +0 -0
  48. package/dist/components/countdown/index.js +7378 -0
  49. package/dist/components/countdown/index.js.br +0 -0
  50. package/dist/components/diff/index.html +7 -0
  51. package/dist/components/diff/index.html.br +0 -0
  52. package/dist/components/diff/index.js +7408 -0
  53. package/dist/components/diff/index.js.br +0 -0
  54. package/dist/components/divider/index.html +7 -0
  55. package/dist/components/divider/index.html.br +0 -0
  56. package/dist/components/divider/index.js +9852 -0
  57. package/dist/components/divider/index.js.br +0 -0
  58. package/dist/components/dock/index.html +7 -0
  59. package/dist/components/dock/index.html.br +0 -0
  60. package/dist/components/dock/index.js +7503 -0
  61. package/dist/components/dock/index.js.br +0 -0
  62. package/dist/components/dropdown/index.html +7 -0
  63. package/dist/components/dropdown/index.html.br +0 -0
  64. package/dist/components/dropdown/index.js +9073 -1
  65. package/dist/components/dropdown/index.js.br +0 -0
  66. package/dist/components/field/index.html +7 -0
  67. package/dist/components/field/index.html.br +2 -0
  68. package/dist/components/field/index.js +5356 -1
  69. package/dist/components/field/index.js.br +0 -0
  70. package/dist/components/fileinput/index.html +7 -0
  71. package/dist/components/fileinput/index.html.br +2 -0
  72. package/dist/components/fileinput/index.js +7431 -1
  73. package/dist/components/fileinput/index.js.br +0 -0
  74. package/dist/components/indicator/index.html +7 -0
  75. package/dist/components/indicator/index.html.br +2 -0
  76. package/dist/components/indicator/index.js +9219 -0
  77. package/dist/components/indicator/index.js.br +0 -0
  78. package/dist/components/input/index.html +7 -0
  79. package/dist/components/input/index.html.br +2 -0
  80. package/dist/components/input/index.js +7425 -1
  81. package/dist/components/input/index.js.br +0 -0
  82. package/dist/components/join/index.html +7 -0
  83. package/dist/components/join/index.html.br +2 -0
  84. package/dist/components/join/index.js +7418 -1
  85. package/dist/components/join/index.js.br +0 -0
  86. package/dist/components/kbd/index.html +7 -0
  87. package/dist/components/kbd/index.html.br +2 -0
  88. package/dist/components/kbd/index.js +7399 -0
  89. package/dist/components/kbd/index.js.br +0 -0
  90. package/dist/components/link/index.html +7 -0
  91. package/dist/components/link/index.html.br +2 -0
  92. package/dist/components/link/index.js +7422 -0
  93. package/dist/components/link/index.js.br +0 -0
  94. package/dist/components/loading/index.html +7 -0
  95. package/dist/components/loading/index.html.br +0 -0
  96. package/dist/components/loading/index.js +7432 -0
  97. package/dist/components/loading/index.js.br +0 -0
  98. package/dist/components/mask/index.html +7 -0
  99. package/dist/components/mask/index.html.br +0 -0
  100. package/dist/components/mask/index.js +7440 -1
  101. package/dist/components/mask/index.js.br +0 -0
  102. package/dist/components/menu/index.html +7 -0
  103. package/dist/components/menu/index.html.br +2 -0
  104. package/dist/components/menu/index.js +7618 -1
  105. package/dist/components/menu/index.js.br +0 -0
  106. package/dist/components/modal/index.html +7 -0
  107. package/dist/components/modal/index.html.br +3 -0
  108. package/dist/components/modal/index.js +7599 -0
  109. package/dist/components/modal/index.js.br +0 -0
  110. package/dist/components/navbar/index.html +7 -0
  111. package/dist/components/navbar/index.html.br +2 -0
  112. package/dist/components/navbar/index.js +7475 -1
  113. package/dist/components/navbar/index.js.br +0 -0
  114. package/dist/components/pagination/index.html +7 -0
  115. package/dist/components/pagination/index.html.br +2 -0
  116. package/dist/components/pagination/index.js +7426 -1
  117. package/dist/components/pagination/index.js.br +0 -0
  118. package/dist/components/polymorphic/index.html +7 -0
  119. package/dist/components/polymorphic/index.html.br +0 -0
  120. package/dist/components/polymorphic/index.js +3031 -1
  121. package/dist/components/polymorphic/index.js.br +0 -0
  122. package/dist/components/progress/index.html +7 -0
  123. package/dist/components/progress/index.html.br +0 -0
  124. package/dist/components/progress/index.js +7413 -0
  125. package/dist/components/progress/index.js.br +0 -0
  126. package/dist/components/radialprogress/index.html +7 -0
  127. package/dist/components/radialprogress/index.html.br +0 -0
  128. package/dist/components/radialprogress/index.js +7430 -0
  129. package/dist/components/radialprogress/index.js.br +0 -0
  130. package/dist/components/radio/index.html +7 -0
  131. package/dist/components/radio/index.html.br +2 -0
  132. package/dist/components/radio/index.js +7423 -0
  133. package/dist/components/radio/index.js.br +0 -0
  134. package/dist/components/range/index.html +7 -0
  135. package/dist/components/range/index.html.br +0 -0
  136. package/dist/components/range/index.js +7462 -0
  137. package/dist/components/range/index.js.br +0 -0
  138. package/dist/components/rating/index.html +7 -0
  139. package/dist/components/rating/index.html.br +0 -0
  140. package/dist/components/rating/index.js +8858 -0
  141. package/dist/components/rating/index.js.br +0 -0
  142. package/dist/components/select/index.html +7 -0
  143. package/dist/components/select/index.html.br +0 -0
  144. package/dist/components/select/index.js +7427 -1
  145. package/dist/components/select/index.js.br +0 -0
  146. package/dist/components/skeleton/index.html +7 -0
  147. package/dist/components/skeleton/index.html.br +0 -0
  148. package/dist/components/skeleton/index.js +7381 -0
  149. package/dist/components/skeleton/index.js.br +0 -0
  150. package/dist/components/stack/index.html +7 -0
  151. package/dist/components/stack/index.html.br +0 -0
  152. package/dist/components/stack/index.js +8972 -0
  153. package/dist/components/stack/index.js.br +0 -0
  154. package/dist/components/stats/index.html +7 -0
  155. package/dist/components/stats/index.html.br +0 -0
  156. package/dist/components/stats/index.js +7508 -0
  157. package/dist/components/stats/index.js.br +0 -0
  158. package/dist/components/steps/index.html +7 -0
  159. package/dist/components/steps/index.html.br +0 -0
  160. package/dist/components/steps/index.js +8732 -1
  161. package/dist/components/steps/index.js.br +0 -0
  162. package/dist/components/swap/index.html +7 -0
  163. package/dist/components/swap/index.html.br +2 -0
  164. package/dist/components/swap/index.js +7467 -0
  165. package/dist/components/swap/index.js.br +0 -0
  166. package/dist/components/table/index.html +7 -0
  167. package/dist/components/table/index.html.br +2 -0
  168. package/dist/components/table/index.js +9493 -1
  169. package/dist/components/table/index.js.br +0 -0
  170. package/dist/components/tabs/index.html +7 -0
  171. package/dist/components/tabs/index.html.br +3 -0
  172. package/dist/components/tabs/index.js +5399 -1
  173. package/dist/components/tabs/index.js.br +0 -0
  174. package/dist/components/textarea/index.html +7 -0
  175. package/dist/components/textarea/index.html.br +0 -0
  176. package/dist/components/textarea/index.js +7425 -1
  177. package/dist/components/textarea/index.js.br +0 -0
  178. package/dist/components/timeline/index.html +7 -0
  179. package/dist/components/timeline/index.html.br +1 -0
  180. package/dist/components/timeline/index.js +7600 -1
  181. package/dist/components/timeline/index.js.br +0 -0
  182. package/dist/components/toast/index.html +7 -0
  183. package/dist/components/toast/index.html.br +0 -0
  184. package/dist/components/toast/index.js +8793 -1
  185. package/dist/components/toast/index.js.br +0 -0
  186. package/dist/components/toggle/index.html +7 -0
  187. package/dist/components/toggle/index.html.br +0 -0
  188. package/dist/components/toggle/index.js +7426 -1
  189. package/dist/components/toggle/index.js.br +0 -0
  190. package/dist/components/tooltip/index.html +7 -0
  191. package/dist/components/tooltip/index.html.br +0 -0
  192. package/dist/components/tooltip/index.js +7432 -1
  193. package/dist/components/tooltip/index.js.br +0 -0
  194. package/dist/index.css.css +176 -0
  195. package/dist/index.css.css.br +0 -0
  196. package/dist/index.css.html +7 -0
  197. package/dist/index.css.html.br +0 -0
  198. package/dist/index.css.js +126 -0
  199. package/dist/index.css.js.br +0 -0
  200. package/dist/index.html +7 -0
  201. package/dist/index.html.br +0 -0
  202. package/dist/index.js +16127 -28
  203. package/dist/index.js.br +0 -0
  204. package/package.json +38 -43
  205. package/dist/Autocomplete-gLkjMHrc.d.ts +0 -28
  206. package/dist/Avatar-Dkd_kPlV.d.ts +0 -40
  207. package/dist/CollapseTitle-BNxog3is.d.ts +0 -12
  208. package/dist/Field-DI2PA30N.d.ts +0 -49
  209. package/dist/Mask-CPb596Mg.d.ts +0 -16
  210. package/dist/Menu-DgO4SHmA.d.ts +0 -45
  211. package/dist/Progress-ChF4ior8.d.ts +0 -64
  212. package/dist/Steps-Dk-UPL6r.d.ts +0 -38
  213. package/dist/Table-CGa6Nop3.d.ts +0 -39
  214. package/dist/Tabs-WiUU0xsM.d.ts +0 -42
  215. package/dist/Timeline-Bd4SxHMT.d.ts +0 -14
  216. package/dist/chunk/2OJYONJ3.js +0 -40
  217. package/dist/chunk/2VQ2762Z.js +0 -80
  218. package/dist/chunk/2XPPNBYK.js +0 -164
  219. package/dist/chunk/3FBDYV4P.js +0 -143
  220. package/dist/chunk/3I23P4TJ.js +0 -33
  221. package/dist/chunk/55B7Q4NT.jsx +0 -258
  222. package/dist/chunk/5HG7XWVC.jsx +0 -2956
  223. package/dist/chunk/5IJ7WEIF.js +0 -43
  224. package/dist/chunk/5O6WC3OB.jsx +0 -67
  225. package/dist/chunk/6P5JIKPF.jsx +0 -51
  226. package/dist/chunk/BHLLVOVR.js +0 -46
  227. package/dist/chunk/C4YO33NN.jsx +0 -179
  228. package/dist/chunk/DJI5XKAV.js +0 -31
  229. package/dist/chunk/DN3P54J2.jsx +0 -43
  230. package/dist/chunk/DSTUGZW6.jsx +0 -81
  231. package/dist/chunk/DVFQAAZR.js +0 -43
  232. package/dist/chunk/EDDBK4J6.js +0 -42
  233. package/dist/chunk/FKSQPGOD.jsx +0 -170
  234. package/dist/chunk/FZRQDGPD.jsx +0 -54
  235. package/dist/chunk/G5UEZ2VC.js +0 -49
  236. package/dist/chunk/GL7JG772.js +0 -114
  237. package/dist/chunk/GMIXRYN3.js +0 -138
  238. package/dist/chunk/HEOKGP5U.js +0 -55
  239. package/dist/chunk/HKS7ET6T.js +0 -56
  240. package/dist/chunk/HUHXQCKK.js +0 -16
  241. package/dist/chunk/HWAGW5N4.jsx +0 -118
  242. package/dist/chunk/I36LHZUY.jsx +0 -31
  243. package/dist/chunk/IG323YKF.jsx +0 -50
  244. package/dist/chunk/JQ4HSRDP.js +0 -142
  245. package/dist/chunk/JSQBKK7L.jsx +0 -50
  246. package/dist/chunk/JWRGKHDO.js +0 -172
  247. package/dist/chunk/K3WO7SRD.js +0 -1
  248. package/dist/chunk/KQ3RAWCE.jsx +0 -57
  249. package/dist/chunk/KV6LTJHI.jsx +0 -175
  250. package/dist/chunk/KXJZKDJX.jsx +0 -0
  251. package/dist/chunk/L4A67X7S.js +0 -7
  252. package/dist/chunk/LGDDR242.jsx +0 -159
  253. package/dist/chunk/MAX47D6F.js +0 -99
  254. package/dist/chunk/MM2DZQL3.js +0 -46
  255. package/dist/chunk/MYERRMTM.js +0 -200
  256. package/dist/chunk/MZWBWFDD.js +0 -151
  257. package/dist/chunk/O7LDJCQS.jsx +0 -18
  258. package/dist/chunk/OJRG4ZAB.jsx +0 -143
  259. package/dist/chunk/P653OZ5D.js +0 -224
  260. package/dist/chunk/P7WPLZNA.jsx +0 -59
  261. package/dist/chunk/Q4442PU4.js +0 -42
  262. package/dist/chunk/QYEMOKUG.js +0 -125
  263. package/dist/chunk/R5G3PODL.jsx +0 -11
  264. package/dist/chunk/R6ZBT7CY.jsx +0 -55
  265. package/dist/chunk/RHEFVSMJ.jsx +0 -52
  266. package/dist/chunk/SPEY5RMB.js +0 -84
  267. package/dist/chunk/STFCLC5R.js +0 -2954
  268. package/dist/chunk/STKRVQR6.jsx +0 -130
  269. package/dist/chunk/SVJIYMYJ.jsx +0 -156
  270. package/dist/chunk/SYWB4UN3.jsx +0 -64
  271. package/dist/chunk/T2LDLYWV.jsx +0 -101
  272. package/dist/chunk/UNKDNDT3.js +0 -62
  273. package/dist/chunk/VN5BKHA2.jsx +0 -97
  274. package/dist/chunk/WOT36Q7O.js +0 -166
  275. package/dist/chunk/WUZETUQR.js +0 -92
  276. package/dist/chunk/XM3KF5LV.jsx +0 -179
  277. package/dist/chunk/XQCSYRVP.jsx +0 -168
  278. package/dist/chunk/YWIT2MRI.jsx +0 -43
  279. package/dist/chunk/ZYEP35R3.jsx +0 -60
  280. package/dist/classes-B_S9K-9I.d.ts +0 -13
  281. package/dist/components/Progress/index.d.ts +0 -7
  282. package/dist/components/Progress/index.js +0 -1
  283. package/dist/components/Progress/index.jsx +0 -7
  284. package/dist/components/accordion/index.d.ts +0 -20
  285. package/dist/components/accordion/index.jsx +0 -9
  286. package/dist/components/autocomplete/index.d.ts +0 -8
  287. package/dist/components/autocomplete/index.jsx +0 -7
  288. package/dist/components/avatar/index.d.ts +0 -8
  289. package/dist/components/avatar/index.jsx +0 -8
  290. package/dist/components/badge/index.d.ts +0 -17
  291. package/dist/components/badge/index.jsx +0 -8
  292. package/dist/components/breadcrumbs/index.d.ts +0 -9
  293. package/dist/components/breadcrumbs/index.jsx +0 -7
  294. package/dist/components/button/index.d.ts +0 -31
  295. package/dist/components/button/index.jsx +0 -8
  296. package/dist/components/checkbox/index.d.ts +0 -16
  297. package/dist/components/checkbox/index.jsx +0 -8
  298. package/dist/components/collapse/index.d.ts +0 -15
  299. package/dist/components/collapse/index.jsx +0 -14
  300. package/dist/components/dropdown/index.d.ts +0 -27
  301. package/dist/components/dropdown/index.jsx +0 -13
  302. package/dist/components/field/index.d.ts +0 -7
  303. package/dist/components/field/index.jsx +0 -7
  304. package/dist/components/fileinput/index.d.ts +0 -16
  305. package/dist/components/fileinput/index.jsx +0 -8
  306. package/dist/components/input/index.d.ts +0 -15
  307. package/dist/components/input/index.jsx +0 -8
  308. package/dist/components/join/index.d.ts +0 -11
  309. package/dist/components/join/index.jsx +0 -9
  310. package/dist/components/mask/index.d.ts +0 -7
  311. package/dist/components/mask/index.jsx +0 -8
  312. package/dist/components/menu/index.d.ts +0 -8
  313. package/dist/components/menu/index.jsx +0 -8
  314. package/dist/components/navbar/index.d.ts +0 -36
  315. package/dist/components/navbar/index.jsx +0 -11
  316. package/dist/components/pagination/index.d.ts +0 -8
  317. package/dist/components/pagination/index.jsx +0 -9
  318. package/dist/components/polymorphic/index.d.ts +0 -34
  319. package/dist/components/polymorphic/index.jsx +0 -8
  320. package/dist/components/select/index.d.ts +0 -15
  321. package/dist/components/select/index.jsx +0 -8
  322. package/dist/components/steps/index.d.ts +0 -7
  323. package/dist/components/steps/index.jsx +0 -8
  324. package/dist/components/table/index.d.ts +0 -8
  325. package/dist/components/table/index.jsx +0 -7
  326. package/dist/components/tabs/index.d.ts +0 -8
  327. package/dist/components/tabs/index.jsx +0 -7
  328. package/dist/components/textarea/index.d.ts +0 -15
  329. package/dist/components/textarea/index.jsx +0 -8
  330. package/dist/components/timeline/index.d.ts +0 -7
  331. package/dist/components/timeline/index.jsx +0 -7
  332. package/dist/components/toast/index.d.ts +0 -24
  333. package/dist/components/toast/index.jsx +0 -11
  334. package/dist/components/toggle/index.d.ts +0 -15
  335. package/dist/components/toggle/index.jsx +0 -8
  336. package/dist/components/tooltip/index.d.ts +0 -17
  337. package/dist/components/tooltip/index.jsx +0 -8
  338. package/dist/index.css +0 -73
  339. package/dist/index.d.ts +0 -32
  340. package/dist/index.jsx +0 -138
  341. package/dist/types-CUG9pToa.d.ts +0 -15
@@ -1,43 +0,0 @@
1
- import { clsx } from './HUHXQCKK.js';
2
- import { twMerge } from './STFCLC5R.js';
3
- import { template, spread, mergeProps, insert } from 'solid-js/web';
4
- import { splitProps } from 'solid-js';
5
-
6
- var _tmpl$ = /* @__PURE__ */ template(`<select>`);
7
- var Select = (props) => {
8
- const [local, others] = splitProps(props, ["color", "size", "dataTheme", "class", "className", "style"]);
9
- const classes = () => twMerge("select", local.class, local.className, clsx({
10
- "select-xl": local.size === "xl",
11
- "select-lg": local.size === "lg",
12
- "select-md": local.size === "md",
13
- "select-sm": local.size === "sm",
14
- "select-xs": local.size === "xs",
15
- "select-primary": local.color === "primary",
16
- "select-secondary": local.color === "secondary",
17
- "select-accent": local.color === "accent",
18
- "select-ghost": local.color === "ghost",
19
- "select-info": local.color === "info",
20
- "select-success": local.color === "success",
21
- "select-warning": local.color === "warning",
22
- "select-error": local.color === "error"
23
- }));
24
- return (() => {
25
- var _el$ = _tmpl$();
26
- spread(_el$, mergeProps(others, {
27
- get ["data-theme"]() {
28
- return local.dataTheme;
29
- },
30
- get ["class"]() {
31
- return classes();
32
- },
33
- get style() {
34
- return local.style;
35
- }
36
- }), false, true);
37
- insert(_el$, () => props.children);
38
- return _el$;
39
- })();
40
- };
41
- var Select_default = Select;
42
-
43
- export { Select_default };
@@ -1,67 +0,0 @@
1
- import {
2
- clsx
3
- } from "./O7LDJCQS.jsx";
4
- import {
5
- twMerge
6
- } from "./5HG7XWVC.jsx";
7
-
8
- // src/components/mask/Mask.tsx
9
- import { splitProps } from "solid-js";
10
- function maskClassName({
11
- className,
12
- variant
13
- } = {}) {
14
- return twMerge(
15
- "mask",
16
- className,
17
- clsx({
18
- "mask-squircle": variant === "squircle",
19
- "mask-heart": variant === "heart",
20
- "mask-hexagon": variant === "hexagon",
21
- "mask-hexagon-2": variant === "hexagon-2",
22
- "mask-decagon": variant === "decagon",
23
- "mask-pentagon": variant === "pentagon",
24
- "mask-diamond": variant === "diamond",
25
- "mask-square": variant === "square",
26
- "mask-circle": variant === "circle",
27
- "mask-star": variant === "star",
28
- "mask-star-2": variant === "star-2",
29
- "mask-triangle": variant === "triangle",
30
- "mask-triangle-2": variant === "triangle-2",
31
- "mask-triangle-3": variant === "triangle-3",
32
- "mask-triangle-4": variant === "triangle-4",
33
- "mask-half-1": variant === "half-1",
34
- "mask-half-2": variant === "half-2"
35
- })
36
- );
37
- }
38
- var Mask = (props) => {
39
- const [local, others] = splitProps(props, [
40
- "src",
41
- "variant",
42
- "dataTheme",
43
- "class",
44
- "className",
45
- "style"
46
- ]);
47
- const classes = () => maskClassName({
48
- className: local.class ?? local.className,
49
- variant: local.variant
50
- });
51
- return <img
52
- {...others}
53
- src={local.src}
54
- data-theme={local.dataTheme}
55
- class={classes()}
56
- style={local.style}
57
- />;
58
- };
59
- Mask.className = maskClassName;
60
- var Mask_default = Mask;
61
-
62
- // src/components/mask/index.ts
63
- var mask_default = Mask_default;
64
-
65
- export {
66
- mask_default
67
- };
@@ -1,51 +0,0 @@
1
- import {
2
- clsx
3
- } from "./O7LDJCQS.jsx";
4
- import {
5
- twMerge
6
- } from "./5HG7XWVC.jsx";
7
-
8
- // src/components/toggle/Toggle.tsx
9
- import { splitProps } from "solid-js";
10
- var Toggle = (props) => {
11
- const [local, others] = splitProps(props, [
12
- "color",
13
- "size",
14
- "dataTheme",
15
- "class",
16
- "className",
17
- "style"
18
- ]);
19
- const classes = () => twMerge(
20
- "toggle",
21
- local.class,
22
- local.className,
23
- clsx({
24
- "toggle-xl": local.size === "xl",
25
- "toggle-lg": local.size === "lg",
26
- "toggle-md": local.size === "md",
27
- "toggle-sm": local.size === "sm",
28
- "toggle-xs": local.size === "xs",
29
- "toggle-neutral": local.color === "neutral",
30
- "toggle-primary": local.color === "primary",
31
- "toggle-secondary": local.color === "secondary",
32
- "toggle-accent": local.color === "accent",
33
- "toggle-info": local.color === "info",
34
- "toggle-success": local.color === "success",
35
- "toggle-warning": local.color === "warning",
36
- "toggle-error": local.color === "error"
37
- })
38
- );
39
- return <input
40
- {...others}
41
- type="checkbox"
42
- data-theme={local.dataTheme}
43
- class={classes()}
44
- style={local.style}
45
- />;
46
- };
47
- var Toggle_default = Toggle;
48
-
49
- export {
50
- Toggle_default
51
- };
@@ -1,46 +0,0 @@
1
- import { clsx } from './HUHXQCKK.js';
2
- import { twMerge } from './STFCLC5R.js';
3
- import { template, use, spread, mergeProps } from 'solid-js/web';
4
- import { splitProps } from 'solid-js';
5
-
6
- var _tmpl$ = /* @__PURE__ */ template(`<input>`);
7
- var FileInput = (props) => {
8
- const [local, others] = splitProps(props, ["size", "color", "bordered", "dataTheme", "class", "className", "style"]);
9
- const classes = () => twMerge("file-input", local.class, local.className, clsx({
10
- "file-input-xl": local.size === "xl",
11
- "file-input-lg": local.size === "lg",
12
- "file-input-md": local.size === "md",
13
- "file-input-sm": local.size === "sm",
14
- "file-input-xs": local.size === "xs",
15
- "file-input-primary": local.color === "primary",
16
- "file-input-secondary": local.color === "secondary",
17
- "file-input-accent": local.color === "accent",
18
- "file-input-ghost": local.color === "ghost",
19
- "file-input-info": local.color === "info",
20
- "file-input-success": local.color === "success",
21
- "file-input-warning": local.color === "warning",
22
- "file-input-error": local.color === "error",
23
- "file-input-bordered": local.bordered
24
- }));
25
- return (() => {
26
- var _el$ = _tmpl$();
27
- var _ref$ = others.ref;
28
- typeof _ref$ === "function" ? use(_ref$, _el$) : others.ref = _el$;
29
- spread(_el$, mergeProps(others, {
30
- "type": "file",
31
- get ["data-theme"]() {
32
- return local.dataTheme;
33
- },
34
- get ["class"]() {
35
- return classes();
36
- },
37
- get style() {
38
- return local.style;
39
- }
40
- }), false, false);
41
- return _el$;
42
- })();
43
- };
44
- var FileInput_default = FileInput;
45
-
46
- export { FileInput_default };
@@ -1,179 +0,0 @@
1
- import {
2
- cva
3
- } from "./P7WPLZNA.jsx";
4
-
5
- // src/components/autocomplete/Autocomplete.tsx
6
- import {
7
- createSignal,
8
- createEffect,
9
- For,
10
- Show,
11
- onCleanup
12
- } from "solid-js";
13
-
14
- // src/components/autocomplete/Autocomplete.styles.ts
15
- var autocompleteWrapperClass = "relative w-full";
16
- var inputBoxClass = cva(
17
- "w-full rounded-md border border-gray-300 px-4 py-2 text-sm outline-none transition-colors",
18
- {
19
- variants: {
20
- state: {
21
- default: "bg-white text-gray-800 hover:border-gray-400 focus:border-blue-500 focus:ring-1 focus:ring-blue-500",
22
- disabled: "bg-gray-100 text-gray-400 cursor-not-allowed"
23
- },
24
- size: {
25
- sm: "text-sm py-1 px-2",
26
- md: "text-sm py-2 px-4",
27
- lg: "text-base py-3 px-4"
28
- }
29
- },
30
- defaultVariants: {
31
- state: "default",
32
- size: "md"
33
- }
34
- }
35
- );
36
- var dropdownMenuClass = cva(
37
- "absolute left-0 right-0 z-10 mt-1 rounded-md border border-gray-200 bg-white shadow-md max-h-60 overflow-auto text-sm",
38
- {
39
- variants: {
40
- isOpen: {
41
- true: "block",
42
- false: "hidden"
43
- }
44
- },
45
- defaultVariants: {
46
- isOpen: true
47
- }
48
- }
49
- );
50
- var dropdownItemClass = cva(
51
- "w-full text-left px-4 py-2 cursor-pointer transition-colors",
52
- {
53
- variants: {
54
- active: {
55
- true: "bg-blue-500 text-white",
56
- false: "hover:bg-gray-100 text-gray-800"
57
- }
58
- },
59
- defaultVariants: {
60
- active: false
61
- }
62
- }
63
- );
64
- var dropdownEmptyClass = "px-4 py-2 text-sm text-gray-500";
65
- var labelClass = "block text-sm font-medium text-gray-700 mb-1";
66
-
67
- // src/components/autocomplete/Autocomplete.tsx
68
- var Autocomplete = (props) => {
69
- const [search, setSearch] = createSignal(props.value?.toString() || "");
70
- const [isOpen, setIsOpen] = createSignal(false);
71
- const [filtered, setFiltered] = createSignal(
72
- props.items
73
- );
74
- const [highlightIndex, setHighlightIndex] = createSignal(-1);
75
- let wrapperRef;
76
- const filterItems = (val) => {
77
- const lower = val.toLowerCase();
78
- setFiltered(
79
- props.items.filter(
80
- (item) => item.toString().toLowerCase().includes(lower)
81
- )
82
- );
83
- };
84
- const handleInput = (e) => {
85
- const val = e.target.value;
86
- setSearch(val);
87
- filterItems(val);
88
- setIsOpen(true);
89
- setHighlightIndex(-1);
90
- };
91
- const handleKeyDown = (e) => {
92
- if (!isOpen()) return;
93
- if (e.key === "ArrowDown") {
94
- setHighlightIndex((prev) => Math.min(prev + 1, filtered().length - 1));
95
- e.preventDefault();
96
- }
97
- if (e.key === "ArrowUp") {
98
- setHighlightIndex((prev) => Math.max(prev - 1, 0));
99
- e.preventDefault();
100
- }
101
- if (e.key === "Enter" && filtered()[highlightIndex()]) {
102
- const selected = filtered()[highlightIndex()];
103
- setSearch(selected?.toString() ?? "");
104
- props.onChange?.(selected);
105
- setIsOpen(false);
106
- }
107
- if (e.key === "Escape") {
108
- setIsOpen(false);
109
- }
110
- };
111
- const handleSelect = (item) => {
112
- setSearch(item.toString());
113
- props.onChange?.(item);
114
- setIsOpen(false);
115
- };
116
- const handleClickOutside = (e) => {
117
- if (!wrapperRef?.contains(e.target)) {
118
- setIsOpen(false);
119
- }
120
- };
121
- createEffect(() => {
122
- if (props.value !== void 0) {
123
- setSearch(props.value.toString());
124
- }
125
- });
126
- createEffect(() => {
127
- document.addEventListener("click", handleClickOutside);
128
- onCleanup(() => {
129
- document.removeEventListener("click", handleClickOutside);
130
- });
131
- });
132
- return <div class={autocompleteWrapperClass} ref={wrapperRef}>
133
- <Show when={props.label}>
134
- <label class={labelClass}>{props.label}</label>
135
- </Show>
136
-
137
- <input
138
- type="text"
139
- value={search()}
140
- onInput={handleInput}
141
- onKeyDown={handleKeyDown}
142
- onFocus={() => setIsOpen(true)}
143
- disabled={props.disabled}
144
- autocomplete="off"
145
- class={inputBoxClass({
146
- size: props.size,
147
- state: props.state ?? (props.disabled ? "disabled" : "default")
148
- })}
149
- />
150
-
151
- <Show when={isOpen()}>
152
- <div class={dropdownMenuClass()}>
153
- <Show
154
- when={filtered().length > 0}
155
- fallback={<div class={dropdownEmptyClass}>No data available</div>}
156
- >
157
- <For each={filtered()}>
158
- {(item, i) => <div
159
- class={dropdownItemClass({
160
- active: i() === highlightIndex()
161
- })}
162
- onMouseDown={() => handleSelect(item)}
163
- >
164
- {item}
165
- </div>}
166
- </For>
167
- </Show>
168
- </div>
169
- </Show>
170
- </div>;
171
- };
172
- var Autocomplete_default = Autocomplete;
173
-
174
- // src/components/autocomplete/index.ts
175
- var autocomplete_default = Autocomplete_default;
176
-
177
- export {
178
- autocomplete_default
179
- };
@@ -1,31 +0,0 @@
1
- import { twMerge } from './STFCLC5R.js';
2
- import { template, spread, mergeProps, insert } from 'solid-js/web';
3
- import { splitProps } from 'solid-js';
4
-
5
- var _tmpl$ = /* @__PURE__ */ template(`<div><ul>`);
6
- var Breadcrumbs = (props) => {
7
- const [local, others] = splitProps(props, ["dataTheme", "class", "className", "style", "innerProps"]);
8
- const classes = () => twMerge("breadcrumbs text-sm", local.class, local.className);
9
- return (() => {
10
- var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
11
- spread(_el$, mergeProps(others, {
12
- "role": "navigation",
13
- "aria-label": "Breadcrumbs",
14
- get ["data-theme"]() {
15
- return local.dataTheme;
16
- },
17
- get ["class"]() {
18
- return classes();
19
- },
20
- get style() {
21
- return local.style;
22
- }
23
- }), false, true);
24
- spread(_el$2, mergeProps(() => local.innerProps), false, true);
25
- insert(_el$2, () => props.children);
26
- return _el$;
27
- })();
28
- };
29
- var Breadcrumbs_default = Breadcrumbs;
30
-
31
- export { Breadcrumbs_default };
@@ -1,43 +0,0 @@
1
- import {
2
- clsx
3
- } from "./O7LDJCQS.jsx";
4
- import {
5
- twMerge
6
- } from "./5HG7XWVC.jsx";
7
-
8
- // src/components/join/Join.tsx
9
- import { splitProps } from "solid-js";
10
- var Join = (props) => {
11
- const [local, others] = splitProps(props, [
12
- "responsive",
13
- "vertical",
14
- "horizontal",
15
- "class",
16
- "className",
17
- "dataTheme",
18
- "style"
19
- ]);
20
- const classes = () => twMerge(
21
- "join",
22
- clsx({
23
- "join-vertical": !local.responsive && local.vertical,
24
- "join-horizontal": !local.responsive && local.horizontal,
25
- "join-vertical lg:join-horizontal": local.responsive
26
- }),
27
- local.class,
28
- local.className
29
- );
30
- return <div
31
- {...others}
32
- class={classes()}
33
- data-theme={local.dataTheme}
34
- style={local.style}
35
- >
36
- {props.children}
37
- </div>;
38
- };
39
- var Join_default = Join;
40
-
41
- export {
42
- Join_default
43
- };
@@ -1,81 +0,0 @@
1
- import {
2
- classes,
3
- cva
4
- } from "./P7WPLZNA.jsx";
5
-
6
- // src/components/timeline/Timeline.tsx
7
- import { For } from "solid-js";
8
-
9
- // src/components/timeline/Timeline.styles.ts
10
- var timelineWrapperClass = "relative";
11
- var timelineItemClass = cva(
12
- "relative flex items-center gap-3 min-h-[48px]",
13
- {
14
- variants: {
15
- state: {
16
- default: "text-gray-500",
17
- active: "text-green-500 font-medium",
18
- error: "text-red-500 font-medium"
19
- }
20
- },
21
- defaultVariants: {
22
- state: "default"
23
- }
24
- }
25
- );
26
- var timelineMarkerWrapperClass = "relative w-6 min-h-[48px] flex items-center justify-center";
27
- var timelineLineClass = "absolute top-0 bottom-0 left-1/2 -translate-x-1/2 w-px bg-gray-300 dark:bg-gray-600";
28
- var timelineMarkerClass = "absolute w-3 h-3 rounded-full border-2 border-white bg-gray-400 z-10";
29
- var timelineNumberClass = cva(
30
- "absolute -left-4 top-1/2 -translate-y-1/2 text-xs font-semibold",
31
- {
32
- variants: {
33
- state: {
34
- default: "text-gray-500",
35
- active: "text-green-500",
36
- error: "text-red-500"
37
- }
38
- },
39
- defaultVariants: {
40
- state: "default"
41
- }
42
- }
43
- );
44
- var timelineContentClass = "pt-0.5 text-sm";
45
-
46
- // src/components/timeline/Timeline.tsx
47
- var Timeline = (props) => {
48
- return <ol class={timelineWrapperClass}>
49
- <For each={props.stages}>
50
- {(stage, index) => {
51
- const state = stage.error === true ? "error" : stage.active === true ? "active" : "default";
52
- return <li class={timelineItemClass({ state })}>
53
- <div class={timelineMarkerWrapperClass}>
54
- <div class={timelineLineClass} />
55
- <span
56
- class={classes(
57
- timelineMarkerClass,
58
- state === "active" && "bg-green-500",
59
- state === "error" && "bg-red-500"
60
- )}
61
- />
62
- <span class={timelineNumberClass({ state })}>
63
- {index() + 1}.
64
- </span>
65
- </div>
66
- <div class={timelineContentClass}>
67
- {props.renderStage ? props.renderStage(stage, index()) : stage.title}
68
- </div>
69
- </li>;
70
- }}
71
- </For>
72
- </ol>;
73
- };
74
- var Timeline_default = Timeline;
75
-
76
- // src/components/timeline/index.ts
77
- var timeline_default = Timeline_default;
78
-
79
- export {
80
- timeline_default
81
- };
@@ -1,43 +0,0 @@
1
- import { clsx } from './HUHXQCKK.js';
2
- import { twMerge } from './STFCLC5R.js';
3
- import { template, spread, mergeProps } from 'solid-js/web';
4
- import { splitProps } from 'solid-js';
5
-
6
- var _tmpl$ = /* @__PURE__ */ template(`<input>`);
7
- var Toggle = (props) => {
8
- const [local, others] = splitProps(props, ["color", "size", "dataTheme", "class", "className", "style"]);
9
- const classes = () => twMerge("toggle", local.class, local.className, clsx({
10
- "toggle-xl": local.size === "xl",
11
- "toggle-lg": local.size === "lg",
12
- "toggle-md": local.size === "md",
13
- "toggle-sm": local.size === "sm",
14
- "toggle-xs": local.size === "xs",
15
- "toggle-neutral": local.color === "neutral",
16
- "toggle-primary": local.color === "primary",
17
- "toggle-secondary": local.color === "secondary",
18
- "toggle-accent": local.color === "accent",
19
- "toggle-info": local.color === "info",
20
- "toggle-success": local.color === "success",
21
- "toggle-warning": local.color === "warning",
22
- "toggle-error": local.color === "error"
23
- }));
24
- return (() => {
25
- var _el$ = _tmpl$();
26
- spread(_el$, mergeProps(others, {
27
- "type": "checkbox",
28
- get ["data-theme"]() {
29
- return local.dataTheme;
30
- },
31
- get ["class"]() {
32
- return classes();
33
- },
34
- get style() {
35
- return local.style;
36
- }
37
- }), false, false);
38
- return _el$;
39
- })();
40
- };
41
- var Toggle_default = Toggle;
42
-
43
- export { Toggle_default };
@@ -1,42 +0,0 @@
1
- import { clsx } from './HUHXQCKK.js';
2
- import { twMerge } from './STFCLC5R.js';
3
- import { template, spread, mergeProps } from 'solid-js/web';
4
- import { splitProps } from 'solid-js';
5
-
6
- var _tmpl$ = /* @__PURE__ */ template(`<input>`);
7
- var Input = (props) => {
8
- const [local, others] = splitProps(props, ["size", "color", "dataTheme", "class", "className", "style"]);
9
- const classes = () => twMerge("input", local.class, local.className, clsx({
10
- "input-xl": local.size === "xl",
11
- "input-lg": local.size === "lg",
12
- "input-md": local.size === "md",
13
- "input-sm": local.size === "sm",
14
- "input-xs": local.size === "xs",
15
- "input-primary": local.color === "primary",
16
- "input-secondary": local.color === "secondary",
17
- "input-accent": local.color === "accent",
18
- "input-ghost": local.color === "ghost",
19
- "input-info": local.color === "info",
20
- "input-success": local.color === "success",
21
- "input-warning": local.color === "warning",
22
- "input-error": local.color === "error"
23
- }));
24
- return (() => {
25
- var _el$ = _tmpl$();
26
- spread(_el$, mergeProps(others, {
27
- get ["data-theme"]() {
28
- return local.dataTheme;
29
- },
30
- get ["class"]() {
31
- return classes();
32
- },
33
- get style() {
34
- return local.style;
35
- }
36
- }), false, false);
37
- return _el$;
38
- })();
39
- };
40
- var Input_default = Input;
41
-
42
- export { Input_default };