@taicode/common-web 3.0.1 → 3.2.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 (406) hide show
  1. package/output/components/alert-dialog.d.ts +20 -0
  2. package/output/components/alert-dialog.d.ts.map +1 -0
  3. package/output/components/alert-dialog.js +65 -0
  4. package/output/components/alert.d.ts +11 -0
  5. package/output/components/alert.d.ts.map +1 -0
  6. package/output/components/alert.js +38 -0
  7. package/output/components/avatar.d.ts +13 -0
  8. package/output/components/avatar.d.ts.map +1 -0
  9. package/output/components/avatar.js +40 -0
  10. package/output/components/badge.d.ts +10 -0
  11. package/output/components/badge.d.ts.map +1 -0
  12. package/output/components/badge.js +31 -0
  13. package/output/components/button.d.ts +12 -0
  14. package/output/components/button.d.ts.map +1 -0
  15. package/output/components/button.js +44 -0
  16. package/output/components/card.d.ts +8 -0
  17. package/output/components/card.d.ts.map +1 -0
  18. package/output/components/card.js +38 -0
  19. package/output/components/checkbox.d.ts +5 -0
  20. package/output/components/checkbox.d.ts.map +1 -0
  21. package/output/components/checkbox.js +21 -0
  22. package/output/components/command.d.ts +20 -0
  23. package/output/components/command.d.ts.map +1 -0
  24. package/output/components/command.js +55 -0
  25. package/output/components/dialog.d.ts +20 -0
  26. package/output/components/dialog.d.ts.map +1 -0
  27. package/output/components/dialog.js +58 -0
  28. package/output/components/direction.d.ts +9 -0
  29. package/output/components/direction.d.ts.map +1 -0
  30. package/output/components/direction.js +10 -0
  31. package/output/components/dropdown-menu.d.ts +29 -0
  32. package/output/components/dropdown-menu.d.ts.map +1 -0
  33. package/output/components/dropdown-menu.js +78 -0
  34. package/output/components/field.d.ts +39 -0
  35. package/output/components/field.d.ts.map +1 -0
  36. package/output/components/field.js +102 -0
  37. package/output/components/index.d.ts +36 -0
  38. package/output/components/index.d.ts.map +1 -0
  39. package/output/components/index.js +35 -0
  40. package/output/components/input-group.d.ts +17 -0
  41. package/output/components/input-group.d.ts.map +1 -0
  42. package/output/components/input-group.js +75 -0
  43. package/output/components/input.d.ts +3 -0
  44. package/output/components/input.d.ts.map +1 -0
  45. package/output/components/input.js +19 -0
  46. package/output/components/item.d.ts +25 -0
  47. package/output/components/item.d.ts.map +1 -0
  48. package/output/components/item.js +89 -0
  49. package/output/components/json-view/index.d.ts +11 -0
  50. package/output/components/json-view/index.d.ts.map +1 -0
  51. package/output/components/json-view/index.js +52 -0
  52. package/output/components/kbd.d.ts +4 -0
  53. package/output/components/kbd.d.ts.map +1 -0
  54. package/output/components/kbd.js +22 -0
  55. package/output/components/label.d.ts +5 -0
  56. package/output/components/label.d.ts.map +1 -0
  57. package/output/components/label.js +20 -0
  58. package/output/{loading-button → components/loading-button}/index.d.ts +1 -1
  59. package/output/components/loading-button/index.d.ts.map +1 -0
  60. package/output/{loading-button → components/loading-button}/index.js +3 -7
  61. package/output/components/loading-button/index.test.d.ts.map +1 -0
  62. package/output/{loading-button → components/loading-button}/index.test.js +4 -4
  63. package/output/components/native-select.d.ts +9 -0
  64. package/output/components/native-select.d.ts.map +1 -0
  65. package/output/components/native-select.js +28 -0
  66. package/output/components/page-state.d.ts +19 -0
  67. package/output/components/page-state.d.ts.map +1 -0
  68. package/output/components/page-state.js +13 -0
  69. package/output/components/popover.d.ts +11 -0
  70. package/output/components/popover.d.ts.map +1 -0
  71. package/output/components/popover.js +44 -0
  72. package/output/components/progress.d.ts +5 -0
  73. package/output/components/progress.d.ts.map +1 -0
  74. package/output/components/progress.js +21 -0
  75. package/output/components/radio-group.d.ts +6 -0
  76. package/output/components/radio-group.d.ts.map +1 -0
  77. package/output/components/radio-group.js +25 -0
  78. package/output/components/scroll-area.d.ts +6 -0
  79. package/output/components/scroll-area.d.ts.map +1 -0
  80. package/output/components/scroll-area.js +24 -0
  81. package/output/components/select.d.ts +17 -0
  82. package/output/components/select.d.ts.map +1 -0
  83. package/output/components/select.js +58 -0
  84. package/output/components/separator.d.ts +6 -0
  85. package/output/components/separator.d.ts.map +1 -0
  86. package/output/components/separator.js +19 -0
  87. package/output/components/sheet.d.ts +16 -0
  88. package/output/components/sheet.d.ts.map +1 -0
  89. package/output/components/sheet.js +58 -0
  90. package/output/components/size-provider/index.d.ts +2 -0
  91. package/output/components/size-provider/index.d.ts.map +1 -0
  92. package/output/components/size-provider/index.js +1 -0
  93. package/output/{size-provider → components/size-provider}/size-provider.d.ts +1 -1
  94. package/output/components/size-provider/size-provider.d.ts.map +1 -0
  95. package/output/{size-provider → components/size-provider}/size-provider.js +1 -1
  96. package/output/components/skeleton.d.ts +3 -0
  97. package/output/components/skeleton.d.ts.map +1 -0
  98. package/output/{catalyst/divider.js → components/skeleton.js} +4 -4
  99. package/output/components/sonner.d.ts +8 -0
  100. package/output/components/sonner.d.ts.map +1 -0
  101. package/output/components/sonner.js +34 -0
  102. package/output/components/spinner.d.ts +3 -0
  103. package/output/components/spinner.d.ts.map +1 -0
  104. package/output/{catalyst/divider.jsx → components/spinner.js} +7 -4
  105. package/output/components/switch.d.ts +8 -0
  106. package/output/components/switch.d.ts.map +1 -0
  107. package/output/components/switch.js +20 -0
  108. package/output/components/table.d.ts +11 -0
  109. package/output/components/table.d.ts.map +1 -0
  110. package/output/components/table.js +47 -0
  111. package/output/components/tabs.d.ts +12 -0
  112. package/output/components/tabs.d.ts.map +1 -0
  113. package/output/components/tabs.js +45 -0
  114. package/output/components/textarea.d.ts +4 -0
  115. package/output/components/textarea.d.ts.map +1 -0
  116. package/output/components/textarea.js +19 -0
  117. package/output/components/theme-switcher.d.ts +6 -0
  118. package/output/components/theme-switcher.d.ts.map +1 -0
  119. package/output/components/theme-switcher.js +19 -0
  120. package/output/{toaster → components/toaster}/index.d.ts +1 -1
  121. package/output/components/toaster/index.d.ts.map +1 -0
  122. package/output/{toaster → components/toaster}/index.js +1 -1
  123. package/output/components/tooltip.d.ts +8 -0
  124. package/output/components/tooltip.d.ts.map +1 -0
  125. package/output/components/tooltip.js +33 -0
  126. package/output/features/confirm-dialog/index.d.ts +39 -0
  127. package/output/features/confirm-dialog/index.d.ts.map +1 -0
  128. package/output/features/confirm-dialog/index.js +19 -0
  129. package/output/features/input-confirm/index.d.ts +26 -0
  130. package/output/features/input-confirm/index.d.ts.map +1 -0
  131. package/output/features/input-confirm/index.js +59 -0
  132. package/output/{signin → features/signin}/context.d.ts +1 -2
  133. package/output/features/signin/context.d.ts.map +1 -0
  134. package/output/{signin → features/signin}/context.js +3 -3
  135. package/output/{signin → features/signin}/index.d.ts +4 -4
  136. package/output/features/signin/index.d.ts.map +1 -0
  137. package/output/{signin → features/signin}/index.js +9 -9
  138. package/output/{signin → features/signin}/service.d.ts +1 -1
  139. package/output/features/signin/service.d.ts.map +1 -0
  140. package/output/{signin → features/signin}/service.js +1 -4
  141. package/output/features/signin/service.test.d.ts.map +1 -0
  142. package/output/{signin → features/signin}/service.test.js +1 -1
  143. package/output/features/signin/types.d.ts.map +1 -0
  144. package/output/hooks/use-loading/index.d.ts +6 -0
  145. package/output/hooks/use-loading/index.d.ts.map +1 -0
  146. package/output/hooks/use-loading/index.js +14 -0
  147. package/output/hooks/use-loading/index.test.d.ts +2 -0
  148. package/output/hooks/use-loading/index.test.d.ts.map +1 -0
  149. package/output/hooks/use-loading/index.test.js +24 -0
  150. package/output/hooks/use-mobile/index.d.ts +2 -0
  151. package/output/hooks/use-mobile/index.d.ts.map +1 -0
  152. package/output/hooks/use-mobile/index.js +16 -0
  153. package/output/hooks/use-observer/index.d.ts +2 -0
  154. package/output/hooks/use-observer/index.d.ts.map +1 -0
  155. package/output/hooks/use-observer/index.js +1 -0
  156. package/output/hooks/use-observer/use-observer.d.ts.map +1 -0
  157. package/output/{helpers → hooks}/use-observer/use-observer.js +2 -2
  158. package/output/hooks/use-observer/use-observer.test.d.ts.map +1 -0
  159. package/output/{use-observer → hooks/use-observer}/use-observer.test.js +2 -2
  160. package/output/hooks/use-offline/index.d.ts +6 -0
  161. package/output/hooks/use-offline/index.d.ts.map +1 -0
  162. package/output/hooks/use-offline/index.js +19 -0
  163. package/output/layout/app/index.d.ts +34 -0
  164. package/output/layout/app/index.d.ts.map +1 -0
  165. package/output/layout/app/index.js +34 -0
  166. package/output/layout/dashboard/index.d.ts +58 -0
  167. package/output/layout/dashboard/index.d.ts.map +1 -0
  168. package/output/layout/dashboard/index.js +71 -0
  169. package/output/layout/index.d.ts +3 -0
  170. package/output/layout/index.d.ts.map +1 -0
  171. package/output/layout/index.js +2 -0
  172. package/output/services/cache-api/cache-api.d.ts.map +1 -0
  173. package/output/{cache-api → services/cache-api}/cache-api.js +1 -1
  174. package/output/services/cache-api/cache-api.test.d.ts.map +1 -0
  175. package/output/{cache-api → services/cache-api}/cache-api.test.js +1 -1
  176. package/output/services/cache-api/index.d.ts +2 -0
  177. package/output/services/cache-api/index.d.ts.map +1 -0
  178. package/output/services/cache-api/index.js +1 -0
  179. package/output/{service → services/service}/index.d.ts +1 -1
  180. package/output/services/service/index.d.ts.map +1 -0
  181. package/output/{service → services/service}/index.js +1 -1
  182. package/output/services/service/service.d.ts +135 -0
  183. package/output/services/service/service.d.ts.map +1 -0
  184. package/output/services/service/service.js +276 -0
  185. package/output/services/service/service.test.d.ts.map +1 -0
  186. package/output/{service → services/service}/service.test.js +1 -1
  187. package/output/services/side-cache/index.d.ts +2 -0
  188. package/output/services/side-cache/index.d.ts.map +1 -0
  189. package/output/services/side-cache/index.js +1 -0
  190. package/output/services/side-cache/side-cache.d.ts.map +1 -0
  191. package/output/services/side-cache/side-cache.test.d.ts.map +1 -0
  192. package/output/{side-cache → services/side-cache}/side-cache.test.js +1 -1
  193. package/output/utils/avatar/index.d.ts +28 -0
  194. package/output/utils/avatar/index.d.ts.map +1 -0
  195. package/output/utils/avatar/index.js +35 -0
  196. package/output/utils/cn/index.d.ts +3 -0
  197. package/output/utils/cn/index.d.ts.map +1 -0
  198. package/output/utils/cn/index.js +5 -0
  199. package/output/utils/cn/index.test.d.ts +2 -0
  200. package/output/utils/cn/index.test.d.ts.map +1 -0
  201. package/output/utils/cn/index.test.js +7 -0
  202. package/output/utils/delay/index.d.ts +2 -0
  203. package/output/utils/delay/index.d.ts.map +1 -0
  204. package/output/utils/delay/index.js +5 -0
  205. package/output/utils/form/index.d.ts +3 -0
  206. package/output/utils/form/index.d.ts.map +1 -0
  207. package/output/utils/form/index.js +1 -0
  208. package/output/utils/performance/index.d.ts +82 -0
  209. package/output/utils/performance/index.d.ts.map +1 -0
  210. package/output/utils/performance/index.js +129 -0
  211. package/output/utils/redirect/index.d.ts +6 -0
  212. package/output/utils/redirect/index.d.ts.map +1 -0
  213. package/output/utils/redirect/index.js +32 -0
  214. package/package.json +117 -28
  215. package/styles.css +123 -0
  216. package/output/cache-api/cache-api.d.ts.map +0 -1
  217. package/output/cache-api/cache-api.test.d.ts.map +0 -1
  218. package/output/cache-api/index.d.ts +0 -2
  219. package/output/cache-api/index.d.ts.map +0 -1
  220. package/output/cache-api/index.js +0 -1
  221. package/output/catalyst/alert.d.ts +0 -29
  222. package/output/catalyst/alert.d.ts.map +0 -1
  223. package/output/catalyst/alert.js +0 -46
  224. package/output/catalyst/alert.jsx +0 -55
  225. package/output/catalyst/auth-layout.d.ts +0 -5
  226. package/output/catalyst/auth-layout.d.ts.map +0 -1
  227. package/output/catalyst/auth-layout.js +0 -4
  228. package/output/catalyst/auth-layout.jsx +0 -7
  229. package/output/catalyst/avatar.d.ts +0 -16
  230. package/output/catalyst/avatar.d.ts.map +0 -1
  231. package/output/catalyst/avatar.js +0 -30
  232. package/output/catalyst/avatar.jsx +0 -45
  233. package/output/catalyst/badge.d.ts +0 -35
  234. package/output/catalyst/badge.d.ts.map +0 -1
  235. package/output/catalyst/badge.js +0 -46
  236. package/output/catalyst/badge.jsx +0 -53
  237. package/output/catalyst/button.d.ts +0 -59
  238. package/output/catalyst/button.d.ts.map +0 -1
  239. package/output/catalyst/button.js +0 -181
  240. package/output/catalyst/button.jsx +0 -187
  241. package/output/catalyst/checkbox.d.ts +0 -37
  242. package/output/catalyst/checkbox.d.ts.map +0 -1
  243. package/output/catalyst/checkbox.js +0 -97
  244. package/output/catalyst/checkbox.jsx +0 -105
  245. package/output/catalyst/combobox.d.ts +0 -20
  246. package/output/catalyst/combobox.d.ts.map +0 -1
  247. package/output/catalyst/combobox.js +0 -101
  248. package/output/catalyst/combobox.jsx +0 -120
  249. package/output/catalyst/description-list.d.ts +0 -4
  250. package/output/catalyst/description-list.d.ts.map +0 -1
  251. package/output/catalyst/description-list.js +0 -25
  252. package/output/catalyst/description-list.jsx +0 -24
  253. package/output/catalyst/dialog.d.ts +0 -29
  254. package/output/catalyst/dialog.d.ts.map +0 -1
  255. package/output/catalyst/dialog.js +0 -46
  256. package/output/catalyst/dialog.jsx +0 -55
  257. package/output/catalyst/divider.d.ts +0 -4
  258. package/output/catalyst/divider.d.ts.map +0 -1
  259. package/output/catalyst/dropdown.d.ts +0 -33
  260. package/output/catalyst/dropdown.d.ts.map +0 -1
  261. package/output/catalyst/dropdown.js +0 -99
  262. package/output/catalyst/dropdown.jsx +0 -102
  263. package/output/catalyst/fieldset.d.ts +0 -22
  264. package/output/catalyst/fieldset.d.ts.map +0 -1
  265. package/output/catalyst/fieldset.js +0 -42
  266. package/output/catalyst/fieldset.jsx +0 -41
  267. package/output/catalyst/heading.d.ts +0 -7
  268. package/output/catalyst/heading.d.ts.map +0 -1
  269. package/output/catalyst/heading.js +0 -23
  270. package/output/catalyst/heading.jsx +0 -22
  271. package/output/catalyst/input.d.ts +0 -11
  272. package/output/catalyst/input.d.ts.map +0 -1
  273. package/output/catalyst/input.js +0 -70
  274. package/output/catalyst/input.jsx +0 -73
  275. package/output/catalyst/link.d.ts +0 -13
  276. package/output/catalyst/link.d.ts.map +0 -1
  277. package/output/catalyst/link.js +0 -37
  278. package/output/catalyst/link.jsx +0 -14
  279. package/output/catalyst/listbox.d.ts +0 -16
  280. package/output/catalyst/listbox.d.ts.map +0 -1
  281. package/output/catalyst/listbox.js +0 -99
  282. package/output/catalyst/listbox.jsx +0 -120
  283. package/output/catalyst/navbar.d.ts +0 -16
  284. package/output/catalyst/navbar.d.ts.map +0 -1
  285. package/output/catalyst/navbar.js +0 -59
  286. package/output/catalyst/navbar.jsx +0 -67
  287. package/output/catalyst/pagination.d.ts +0 -18
  288. package/output/catalyst/pagination.d.ts.map +0 -1
  289. package/output/catalyst/pagination.js +0 -35
  290. package/output/catalyst/pagination.jsx +0 -52
  291. package/output/catalyst/radio.d.ts +0 -38
  292. package/output/catalyst/radio.d.ts.map +0 -1
  293. package/output/catalyst/radio.js +0 -100
  294. package/output/catalyst/radio.jsx +0 -103
  295. package/output/catalyst/select.d.ts +0 -6
  296. package/output/catalyst/select.d.ts.map +0 -1
  297. package/output/catalyst/select.js +0 -52
  298. package/output/catalyst/select.jsx +0 -59
  299. package/output/catalyst/sidebar-layout.d.ts +0 -6
  300. package/output/catalyst/sidebar-layout.d.ts.map +0 -1
  301. package/output/catalyst/sidebar-layout.js +0 -18
  302. package/output/catalyst/sidebar-layout.jsx +0 -58
  303. package/output/catalyst/sidebar.d.ts +0 -20
  304. package/output/catalyst/sidebar.d.ts.map +0 -1
  305. package/output/catalyst/sidebar.js +0 -77
  306. package/output/catalyst/sidebar.jsx +0 -85
  307. package/output/catalyst/stacked-layout.d.ts +0 -6
  308. package/output/catalyst/stacked-layout.d.ts.map +0 -1
  309. package/output/catalyst/stacked-layout.js +0 -18
  310. package/output/catalyst/stacked-layout.jsx +0 -55
  311. package/output/catalyst/switch.d.ts +0 -37
  312. package/output/catalyst/switch.d.ts.map +0 -1
  313. package/output/catalyst/switch.js +0 -160
  314. package/output/catalyst/switch.jsx +0 -161
  315. package/output/catalyst/table.d.ts +0 -17
  316. package/output/catalyst/table.d.ts.map +0 -1
  317. package/output/catalyst/table.js +0 -56
  318. package/output/catalyst/table.jsx +0 -68
  319. package/output/catalyst/text.d.ts +0 -6
  320. package/output/catalyst/text.d.ts.map +0 -1
  321. package/output/catalyst/text.js +0 -30
  322. package/output/catalyst/text.jsx +0 -29
  323. package/output/catalyst/textarea.d.ts +0 -7
  324. package/output/catalyst/textarea.d.ts.map +0 -1
  325. package/output/catalyst/textarea.js +0 -48
  326. package/output/catalyst/textarea.jsx +0 -49
  327. package/output/catalyst-config/catalyst-config.d.ts +0 -14
  328. package/output/catalyst-config/catalyst-config.d.ts.map +0 -1
  329. package/output/catalyst-config/catalyst-config.js +0 -14
  330. package/output/catalyst-config/index.d.ts +0 -3
  331. package/output/catalyst-config/index.d.ts.map +0 -1
  332. package/output/catalyst-config/index.js +0 -1
  333. package/output/helpers/cache-api/cache-api.d.ts +0 -13
  334. package/output/helpers/cache-api/cache-api.d.ts.map +0 -1
  335. package/output/helpers/cache-api/cache-api.js +0 -114
  336. package/output/helpers/cache-api/cache-api.test.d.ts +0 -2
  337. package/output/helpers/cache-api/cache-api.test.d.ts.map +0 -1
  338. package/output/helpers/cache-api/cache-api.test.js +0 -348
  339. package/output/helpers/cache-api/index.d.ts +0 -2
  340. package/output/helpers/cache-api/index.d.ts.map +0 -1
  341. package/output/helpers/cache-api/index.js +0 -1
  342. package/output/helpers/service/index.d.ts +0 -1
  343. package/output/helpers/service/index.d.ts.map +0 -1
  344. package/output/helpers/service/index.js +0 -1
  345. package/output/helpers/service/service.d.ts +0 -5
  346. package/output/helpers/service/service.d.ts.map +0 -1
  347. package/output/helpers/service/service.js +0 -2
  348. package/output/helpers/side-cache/index.d.ts +0 -2
  349. package/output/helpers/side-cache/index.d.ts.map +0 -1
  350. package/output/helpers/side-cache/index.js +0 -1
  351. package/output/helpers/side-cache/side-cache.d.ts +0 -10
  352. package/output/helpers/side-cache/side-cache.d.ts.map +0 -1
  353. package/output/helpers/side-cache/side-cache.js +0 -137
  354. package/output/helpers/side-cache/side-cache.test.d.ts.map +0 -1
  355. package/output/helpers/side-cache/side-cache.test.js +0 -179
  356. package/output/helpers/use-observer/index.d.ts +0 -2
  357. package/output/helpers/use-observer/index.d.ts.map +0 -1
  358. package/output/helpers/use-observer/index.js +0 -1
  359. package/output/helpers/use-observer/use-observer.d.ts.map +0 -1
  360. package/output/helpers/use-observer/use-observer.test.d.ts.map +0 -1
  361. package/output/helpers/use-observer/use-observer.test.jsx +0 -134
  362. package/output/loading-button/index.d.ts.map +0 -1
  363. package/output/loading-button/index.test.d.ts.map +0 -1
  364. package/output/service/index.d.ts.map +0 -1
  365. package/output/service/service.d.ts +0 -286
  366. package/output/service/service.d.ts.map +0 -1
  367. package/output/service/service.js +0 -351
  368. package/output/service/service.test.d.ts.map +0 -1
  369. package/output/service/service.test.jsx +0 -367
  370. package/output/side-cache/index.d.ts +0 -2
  371. package/output/side-cache/index.d.ts.map +0 -1
  372. package/output/side-cache/index.js +0 -1
  373. package/output/side-cache/side-cache.d.ts.map +0 -1
  374. package/output/side-cache/side-cache.test.d.ts +0 -2
  375. package/output/side-cache/side-cache.test.d.ts.map +0 -1
  376. package/output/signin/context.d.ts.map +0 -1
  377. package/output/signin/index.d.ts.map +0 -1
  378. package/output/signin/service.d.ts.map +0 -1
  379. package/output/signin/service.test.d.ts.map +0 -1
  380. package/output/signin/types.d.ts.map +0 -1
  381. package/output/size-provider/index.d.ts +0 -2
  382. package/output/size-provider/index.d.ts.map +0 -1
  383. package/output/size-provider/index.js +0 -1
  384. package/output/size-provider/size-provider.d.ts.map +0 -1
  385. package/output/toaster/index.d.ts.map +0 -1
  386. package/output/use-observer/index.d.ts +0 -2
  387. package/output/use-observer/index.d.ts.map +0 -1
  388. package/output/use-observer/index.js +0 -1
  389. package/output/use-observer/use-observer.d.ts +0 -3
  390. package/output/use-observer/use-observer.d.ts.map +0 -1
  391. package/output/use-observer/use-observer.js +0 -16
  392. package/output/use-observer/use-observer.test.d.ts +0 -2
  393. package/output/use-observer/use-observer.test.d.ts.map +0 -1
  394. package/output/use-observer/use-observer.test.jsx +0 -134
  395. /package/output/{loading-button → components/loading-button}/index.test.d.ts +0 -0
  396. /package/output/{service → features/signin}/service.test.d.ts +0 -0
  397. /package/output/{signin → features/signin}/types.d.ts +0 -0
  398. /package/output/{signin → features/signin}/types.js +0 -0
  399. /package/output/{helpers → hooks}/use-observer/use-observer.d.ts +0 -0
  400. /package/output/{helpers → hooks}/use-observer/use-observer.test.d.ts +0 -0
  401. /package/output/{cache-api → services/cache-api}/cache-api.d.ts +0 -0
  402. /package/output/{cache-api → services/cache-api}/cache-api.test.d.ts +0 -0
  403. /package/output/{signin → services/service}/service.test.d.ts +0 -0
  404. /package/output/{side-cache → services/side-cache}/side-cache.d.ts +0 -0
  405. /package/output/{side-cache → services/side-cache}/side-cache.js +0 -0
  406. /package/output/{helpers → services}/side-cache/side-cache.test.d.ts +0 -0
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Direction } from "radix-ui";
5
+ function DirectionProvider(params) {
6
+ const { dir, direction, children, } = params;
7
+ return (_jsx(Direction.DirectionProvider, { dir: direction !== null && direction !== void 0 ? direction : dir, children: children }));
8
+ }
9
+ const useDirection = Direction.useDirection;
10
+ export { DirectionProvider, useDirection };
@@ -0,0 +1,29 @@
1
+ import * as React from "react";
2
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
3
+ type DropdownMenuItemParams = {
4
+ inset?: boolean;
5
+ variant?: "default" | "destructive";
6
+ };
7
+ type DropdownMenuLabelParams = {
8
+ inset?: boolean;
9
+ };
10
+ type DropdownMenuSubTriggerParams = {
11
+ inset?: boolean;
12
+ };
13
+ declare function DropdownMenu(params: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
14
+ declare function DropdownMenuPortal(params: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
15
+ declare function DropdownMenuTrigger(params: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
16
+ declare function DropdownMenuContent(params: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
17
+ declare function DropdownMenuGroup(params: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
18
+ declare function DropdownMenuItem(params: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemParams): React.JSX.Element;
19
+ declare function DropdownMenuCheckboxItem(params: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
20
+ declare function DropdownMenuRadioGroup(params: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
21
+ declare function DropdownMenuRadioItem(params: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
22
+ declare function DropdownMenuLabel(params: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelParams): React.JSX.Element;
23
+ declare function DropdownMenuSeparator(params: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
24
+ declare function DropdownMenuShortcut(params: React.ComponentProps<"span">): React.JSX.Element;
25
+ declare function DropdownMenuSub(params: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
26
+ declare function DropdownMenuSubTrigger(params: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerParams): React.JSX.Element;
27
+ declare function DropdownMenuSubContent(params: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
28
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
29
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../source/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAKhE,KAAK,sBAAsB,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAA;CACpC,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,KAAK,4BAA4B,GAAG;IAClC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,qBAKpF;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,qBAO5F;AAED,iBAAS,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,qBAU9F;AAED,iBAAS,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,qBAkB9F;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,qBAO1F;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,GAAG,sBAAsB,qBAmBjH;AAED,iBAAS,wBAAwB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,YAAY,CAAC,qBA6BxG;AAED,iBAAS,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,qBAUpG;AAED,iBAAS,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,SAAS,CAAC,qBA2BlG;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,GAAG,uBAAuB,qBAcpH;AAED,iBAAS,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,SAAS,CAAC,qBAYlG;AAED,iBAAS,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAYjE;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,qBAKtF;AAED,iBAAS,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,GAAG,4BAA4B,qBAqBnI;AAED,iBAAS,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,qBAYpG;AAED,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,CAAA"}
@@ -0,0 +1,78 @@
1
+ "use client";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ import * as React from "react";
15
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
16
+ import { cn } from "../utils/cn/index.js";
17
+ import { CheckIcon, ChevronRightIcon } from "lucide-react";
18
+ function DropdownMenu(params) {
19
+ const props = __rest(params, []);
20
+ return _jsx(DropdownMenuPrimitive.Root, Object.assign({ "data-slot": "dropdown-menu" }, props));
21
+ }
22
+ function DropdownMenuPortal(params) {
23
+ const props = __rest(params, []);
24
+ return (_jsx(DropdownMenuPrimitive.Portal, Object.assign({ "data-slot": "dropdown-menu-portal" }, props)));
25
+ }
26
+ function DropdownMenuTrigger(params) {
27
+ const props = __rest(params, []);
28
+ return (_jsx(DropdownMenuPrimitive.Trigger, Object.assign({ "data-slot": "dropdown-menu-trigger" }, props)));
29
+ }
30
+ function DropdownMenuContent(params) {
31
+ const { className, align = "start", sideOffset = 4 } = params, props = __rest(params, ["className", "align", "sideOffset"]);
32
+ return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, Object.assign({ "data-slot": "dropdown-menu-content", sideOffset: sideOffset, align: align, className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-md p-1 shadow-md ring-1 duration-100 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden", className) }, props)) }));
33
+ }
34
+ function DropdownMenuGroup(params) {
35
+ const props = __rest(params, []);
36
+ return (_jsx(DropdownMenuPrimitive.Group, Object.assign({ "data-slot": "dropdown-menu-group" }, props)));
37
+ }
38
+ function DropdownMenuItem(params) {
39
+ const { className, inset, variant = "default" } = params, props = __rest(params, ["className", "inset", "variant"]);
40
+ return (_jsx(DropdownMenuPrimitive.Item, Object.assign({ "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className) }, props)));
41
+ }
42
+ function DropdownMenuCheckboxItem(params) {
43
+ const { className, children, checked } = params, props = __rest(params, ["className", "children", "checked"]);
44
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, Object.assign({ "data-slot": "dropdown-menu-checkbox-item", className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), checked: checked }, props, { children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none", "data-slot": "dropdown-menu-checkbox-item-indicator", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] })));
45
+ }
46
+ function DropdownMenuRadioGroup(params) {
47
+ const props = __rest(params, []);
48
+ return (_jsx(DropdownMenuPrimitive.RadioGroup, Object.assign({ "data-slot": "dropdown-menu-radio-group" }, props)));
49
+ }
50
+ function DropdownMenuRadioItem(params) {
51
+ const { className, children } = params, props = __rest(params, ["className", "children"]);
52
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, Object.assign({ "data-slot": "dropdown-menu-radio-item", className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className) }, props, { children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none", "data-slot": "dropdown-menu-radio-item-indicator", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] })));
53
+ }
54
+ function DropdownMenuLabel(params) {
55
+ const { className, inset } = params, props = __rest(params, ["className", "inset"]);
56
+ return (_jsx(DropdownMenuPrimitive.Label, Object.assign({ "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("text-muted-foreground px-2 py-1.5 text-xs font-medium data-[inset]:pl-8", className) }, props)));
57
+ }
58
+ function DropdownMenuSeparator(params) {
59
+ const { className } = params, props = __rest(params, ["className"]);
60
+ return (_jsx(DropdownMenuPrimitive.Separator, Object.assign({ "data-slot": "dropdown-menu-separator", className: cn("bg-border -mx-1 my-1 h-px", className) }, props)));
61
+ }
62
+ function DropdownMenuShortcut(params) {
63
+ const { className } = params, props = __rest(params, ["className"]);
64
+ return (_jsx("span", Object.assign({ "data-slot": "dropdown-menu-shortcut", className: cn("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest", className) }, props)));
65
+ }
66
+ function DropdownMenuSub(params) {
67
+ const props = __rest(params, []);
68
+ return _jsx(DropdownMenuPrimitive.Sub, Object.assign({ "data-slot": "dropdown-menu-sub" }, props));
69
+ }
70
+ function DropdownMenuSubTrigger(params) {
71
+ const { className, inset, children } = params, props = __rest(params, ["className", "inset", "children"]);
72
+ return (_jsxs(DropdownMenuPrimitive.SubTrigger, Object.assign({ "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className) }, props, { children: [children, _jsx(ChevronRightIcon, { className: "ml-auto" })] })));
73
+ }
74
+ function DropdownMenuSubContent(params) {
75
+ const { className } = params, props = __rest(params, ["className"]);
76
+ return (_jsx(DropdownMenuPrimitive.SubContent, Object.assign({ "data-slot": "dropdown-menu-sub-content", className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 z-50 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden", className) }, props)));
77
+ }
78
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -0,0 +1,39 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { Label } from "./label.js";
3
+ type FieldErrorParams = {
4
+ errors?: Array<{
5
+ message?: string;
6
+ } | undefined>;
7
+ };
8
+ type FieldLegendParams = {
9
+ variant?: "legend" | "label";
10
+ };
11
+ type FieldSeparatorParams = {
12
+ children?: React.ReactNode;
13
+ };
14
+ declare function FieldSet(params: React.ComponentProps<"fieldset">): import("react").JSX.Element;
15
+ declare function FieldLegend(params: React.ComponentProps<"legend"> & FieldLegendParams): import("react").JSX.Element;
16
+ declare function FieldGroup(params: React.ComponentProps<"div">): import("react").JSX.Element;
17
+ declare const fieldVariants: (props?: ({
18
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
19
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
+ declare function Field(params: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react").JSX.Element;
21
+ declare function FieldContent(params: React.ComponentProps<"div">): import("react").JSX.Element;
22
+ declare function FieldLabel(params: React.ComponentProps<typeof Label>): import("react").JSX.Element;
23
+ declare function FieldTitle(params: React.ComponentProps<"div">): import("react").JSX.Element;
24
+ declare function FieldDescription(params: React.ComponentProps<"p">): import("react").JSX.Element;
25
+ declare function FieldSeparator(params: React.ComponentProps<"div"> & FieldSeparatorParams): import("react").JSX.Element;
26
+ declare function FieldError(params: React.ComponentProps<"div"> & FieldErrorParams): import("react").JSX.Element | null;
27
+ declare const FieldNamespace: typeof Field & {
28
+ Label: typeof FieldLabel;
29
+ Description: typeof FieldDescription;
30
+ Error: typeof FieldError;
31
+ Group: typeof FieldGroup;
32
+ Legend: typeof FieldLegend;
33
+ Separator: typeof FieldSeparator;
34
+ Set: typeof FieldSet;
35
+ Content: typeof FieldContent;
36
+ Title: typeof FieldTitle;
37
+ };
38
+ export { FieldNamespace as Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
39
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../source/components/field.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAGlC,KAAK,gBAAgB,GAAG;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAA;CACjD,CAAA;AAED,KAAK,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE,CAAA;AAEzD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,iBAAS,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,+BASzD;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,iBAAiB,+BAc9E;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAYtD;AAED,QAAA,MAAM,aAAa;;8EAcjB,CAAA;AAEF,iBAAS,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,+BAetF;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAYxD;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,+BAgB7D;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+BAYtD;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+BAc1D;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,oBAAoB,+BAwBjF;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,gBAAgB,sCAgDzE;AAGD,QAAA,MAAM,cAAc;;;;;;;;;;CAUlB,CAAA;AAEF,OAAO,EACL,cAAc,IAAI,KAAK,EACvB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,CAAA"}
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ import { useMemo } from "react";
15
+ import { cva } from "class-variance-authority";
16
+ import { cn } from "../utils/cn/index.js";
17
+ import { Label } from "./label.js";
18
+ import { Separator } from "./separator.js";
19
+ function FieldSet(params) {
20
+ const { className } = params, props = __rest(params, ["className"]);
21
+ return (_jsx("fieldset", Object.assign({ "data-slot": "field-set", className: cn("gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className) }, props)));
22
+ }
23
+ function FieldLegend(params) {
24
+ const { className, variant = "legend" } = params, props = __rest(params, ["className", "variant"]);
25
+ return (_jsx("legend", Object.assign({ "data-slot": "field-legend", "data-variant": variant, className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className) }, props)));
26
+ }
27
+ function FieldGroup(params) {
28
+ const { className } = params, props = __rest(params, ["className"]);
29
+ return (_jsx("div", Object.assign({ "data-slot": "field-group", className: cn("gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col", className) }, props)));
30
+ }
31
+ const fieldVariants = cva("data-[invalid=true]:text-destructive gap-3 group/field flex w-full", {
32
+ variants: {
33
+ orientation: {
34
+ vertical: "flex-col [&>*]:w-full [&>.sr-only]:w-auto",
35
+ horizontal: "flex-row items-center [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
36
+ responsive: "flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
37
+ },
38
+ },
39
+ defaultVariants: {
40
+ orientation: "vertical",
41
+ },
42
+ });
43
+ function Field(params) {
44
+ const { className, orientation = "vertical" } = params, props = __rest(params, ["className", "orientation"]);
45
+ return (_jsx("div", Object.assign({ role: "group", "data-slot": "field", "data-orientation": orientation, className: cn(fieldVariants({ orientation }), className) }, props)));
46
+ }
47
+ function FieldContent(params) {
48
+ const { className } = params, props = __rest(params, ["className"]);
49
+ return (_jsx("div", Object.assign({ "data-slot": "field-content", className: cn("gap-1 group/field-content flex flex-1 flex-col leading-snug", className) }, props)));
50
+ }
51
+ function FieldLabel(params) {
52
+ const { className } = params, props = __rest(params, ["className"]);
53
+ return (_jsx(Label, Object.assign({ "data-slot": "field-label", className: cn("has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-3 group/field-label peer/field-label flex w-fit leading-snug", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className) }, props)));
54
+ }
55
+ function FieldTitle(params) {
56
+ const { className } = params, props = __rest(params, ["className"]);
57
+ return (_jsx("div", Object.assign({ "data-slot": "field-label", className: cn("gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug", className) }, props)));
58
+ }
59
+ function FieldDescription(params) {
60
+ const { className } = params, props = __rest(params, ["className"]);
61
+ return (_jsx("p", Object.assign({ "data-slot": "field-description", className: cn("text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className) }, props)));
62
+ }
63
+ function FieldSeparator(params) {
64
+ const { children, className } = params, props = __rest(params, ["children", "className"]);
65
+ return (_jsxs("div", Object.assign({ "data-slot": "field-separator", "data-content": !!children, className: cn("-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative", className) }, props, { children: [_jsx(Separator, { className: "absolute inset-0 top-1/2" }), children && (_jsx("span", { className: "text-muted-foreground px-2 bg-background relative mx-auto block w-fit", "data-slot": "field-separator-content", children: children }))] })));
66
+ }
67
+ function FieldError(params) {
68
+ const { className, children, errors } = params, props = __rest(params, ["className", "children", "errors"]);
69
+ const content = useMemo(() => {
70
+ var _a;
71
+ if (children) {
72
+ return children;
73
+ }
74
+ if (!(errors === null || errors === void 0 ? void 0 : errors.length)) {
75
+ return null;
76
+ }
77
+ const uniqueErrors = [
78
+ ...new Map(errors.map((error) => [error === null || error === void 0 ? void 0 : error.message, error])).values(),
79
+ ];
80
+ if ((uniqueErrors === null || uniqueErrors === void 0 ? void 0 : uniqueErrors.length) == 1) {
81
+ return (_a = uniqueErrors[0]) === null || _a === void 0 ? void 0 : _a.message;
82
+ }
83
+ return (_jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => (error === null || error === void 0 ? void 0 : error.message) && _jsx("li", { children: error.message }, index)) }));
84
+ }, [children, errors]);
85
+ if (!content) {
86
+ return null;
87
+ }
88
+ return (_jsx("div", Object.assign({ role: "alert", "data-slot": "field-error", className: cn("text-destructive text-sm font-normal", className) }, props, { children: content })));
89
+ }
90
+ // 命名空间导出
91
+ const FieldNamespace = Object.assign(Field, {
92
+ Label: FieldLabel,
93
+ Description: FieldDescription,
94
+ Error: FieldError,
95
+ Group: FieldGroup,
96
+ Legend: FieldLegend,
97
+ Separator: FieldSeparator,
98
+ Set: FieldSet,
99
+ Content: FieldContent,
100
+ Title: FieldTitle,
101
+ });
102
+ export { FieldNamespace as Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
@@ -0,0 +1,36 @@
1
+ export * from './alert.js';
2
+ export * from './alert-dialog.js';
3
+ export * from './avatar.js';
4
+ export * from './badge.js';
5
+ export * from './button.js';
6
+ export * from './card.js';
7
+ export * from './checkbox.js';
8
+ export * from './command.js';
9
+ export * from './dialog.js';
10
+ export * from './direction.js';
11
+ export * from './dropdown-menu.js';
12
+ export * from './field.js';
13
+ export * from './input-group.js';
14
+ export * from './input.js';
15
+ export * from './item.js';
16
+ export * from './kbd.js';
17
+ export * from './label.js';
18
+ export * from './native-select.js';
19
+ export * from './page-state.js';
20
+ export * from './popover.js';
21
+ export * from './progress.js';
22
+ export * from './radio-group.js';
23
+ export * from './scroll-area.js';
24
+ export * from './select.js';
25
+ export * from './separator.js';
26
+ export * from './sheet.js';
27
+ export * from './skeleton.js';
28
+ export * from './sonner.js';
29
+ export * from './spinner.js';
30
+ export * from './switch.js';
31
+ export * from './table.js';
32
+ export * from './tabs.js';
33
+ export * from './textarea.js';
34
+ export * from './theme-switcher.js';
35
+ export * from './tooltip.js';
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,35 @@
1
+ export * from './alert.js';
2
+ export * from './alert-dialog.js';
3
+ export * from './avatar.js';
4
+ export * from './badge.js';
5
+ export * from './button.js';
6
+ export * from './card.js';
7
+ export * from './checkbox.js';
8
+ export * from './command.js';
9
+ export * from './dialog.js';
10
+ export * from './direction.js';
11
+ export * from './dropdown-menu.js';
12
+ export * from './field.js';
13
+ export * from './input-group.js';
14
+ export * from './input.js';
15
+ export * from './item.js';
16
+ export * from './kbd.js';
17
+ export * from './label.js';
18
+ export * from './native-select.js';
19
+ export * from './page-state.js';
20
+ export * from './popover.js';
21
+ export * from './progress.js';
22
+ export * from './radio-group.js';
23
+ export * from './scroll-area.js';
24
+ export * from './select.js';
25
+ export * from './separator.js';
26
+ export * from './sheet.js';
27
+ export * from './skeleton.js';
28
+ export * from './sonner.js';
29
+ export * from './spinner.js';
30
+ export * from './switch.js';
31
+ export * from './table.js';
32
+ export * from './tabs.js';
33
+ export * from './textarea.js';
34
+ export * from './theme-switcher.js';
35
+ export * from './tooltip.js';
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import { Button } from "./button.js";
4
+ declare function InputGroup(params: React.ComponentProps<"div">): React.JSX.Element;
5
+ declare const inputGroupAddonVariants: (props?: ({
6
+ align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ declare function InputGroupAddon(params: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
9
+ declare const inputGroupButtonVariants: (props?: ({
10
+ size?: "sm" | "icon-sm" | "icon-xs" | "xs" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ declare function InputGroupButton(params: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): React.JSX.Element;
13
+ declare function InputGroupText(params: React.ComponentProps<"span">): React.JSX.Element;
14
+ declare function InputGroupInput(params: React.ComponentProps<"input">): React.JSX.Element;
15
+ declare function InputGroupTextarea(params: React.ComponentProps<"textarea">): React.JSX.Element;
16
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
17
+ //# sourceMappingURL=input-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../source/components/input-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAIpC,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAatD;AAED,QAAA,MAAM,uBAAuB;;8EAiB5B,CAAA;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,qBAqB1G;AAED,QAAA,MAAM,wBAAwB;;8EAe7B,CAAA;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACjF,YAAY,CAAC,OAAO,wBAAwB,CAAC,qBAiB9C;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW3D;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,qBAY7D;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,qBAYnE;AAED,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,CAAA"}
@@ -0,0 +1,75 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from "react";
14
+ import { cva } from "class-variance-authority";
15
+ import { cn } from "../utils/cn/index.js";
16
+ import { Button } from "./button.js";
17
+ import { Input } from "./input.js";
18
+ import { Textarea } from "./textarea.js";
19
+ function InputGroup(params) {
20
+ const { className } = params, props = __rest(params, ["className"]);
21
+ return (_jsx("div", Object.assign({ "data-slot": "input-group", role: "group", className: cn("border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-9 rounded-md border shadow-xs transition-[color,box-shadow] has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto", className) }, props)));
22
+ }
23
+ const inputGroupAddonVariants = cva("text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none", {
24
+ variants: {
25
+ align: {
26
+ "inline-start": "pl-2 has-[>button]:ml-[-0.25rem] has-[>kbd]:ml-[-0.15rem] order-first",
27
+ "inline-end": "pr-2 has-[>button]:mr-[-0.25rem] has-[>kbd]:mr-[-0.15rem] order-last",
28
+ "block-start": "px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start",
29
+ "block-end": "px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start",
30
+ },
31
+ },
32
+ defaultVariants: {
33
+ align: "inline-start",
34
+ },
35
+ });
36
+ function InputGroupAddon(params) {
37
+ const { className, align = "inline-start" } = params, props = __rest(params, ["className", "align"]);
38
+ return (_jsx("div", Object.assign({ role: "group", "data-slot": "input-group-addon", "data-align": align, className: cn(inputGroupAddonVariants({ align }), className), onClick: (e) => {
39
+ var _a, _b;
40
+ if (e.target.closest("button")) {
41
+ return;
42
+ }
43
+ (_b = (_a = e.currentTarget.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector("input")) === null || _b === void 0 ? void 0 : _b.focus();
44
+ } }, props)));
45
+ }
46
+ const inputGroupButtonVariants = cva("gap-2 text-sm shadow-none flex items-center", {
47
+ variants: {
48
+ size: {
49
+ xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
50
+ sm: "",
51
+ "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
52
+ "icon-sm": "size-8 p-0 has-[>svg]:p-0",
53
+ },
54
+ },
55
+ defaultVariants: {
56
+ size: "xs",
57
+ },
58
+ });
59
+ function InputGroupButton(params) {
60
+ const { className, type = "button", variant = "ghost", size = "xs" } = params, props = __rest(params, ["className", "type", "variant", "size"]);
61
+ return (_jsx(Button, Object.assign({ type: type, "data-size": size, variant: variant, className: cn(inputGroupButtonVariants({ size }), className) }, props)));
62
+ }
63
+ function InputGroupText(params) {
64
+ const { className } = params, props = __rest(params, ["className"]);
65
+ return (_jsx("span", Object.assign({ className: cn("text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", className) }, props)));
66
+ }
67
+ function InputGroupInput(params) {
68
+ const { className } = params, props = __rest(params, ["className"]);
69
+ return (_jsx(Input, Object.assign({ "data-slot": "input-group-control", className: cn("rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className) }, props)));
70
+ }
71
+ function InputGroupTextarea(params) {
72
+ const { className } = params, props = __rest(params, ["className"]);
73
+ return (_jsx(Textarea, Object.assign({ "data-slot": "input-group-control", className: cn("rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none", className) }, props)));
74
+ }
75
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
@@ -0,0 +1,3 @@
1
+ import { type InputHTMLAttributes } from 'react';
2
+ export declare const Input: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
3
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../source/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAI5D,eAAO,MAAM,KAAK,oIAehB,CAAA"}
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ import { cn } from '../utils/cn/index.js';
15
+ export const Input = forwardRef(function Input(_a, ref) {
16
+ var { className, type = 'text' } = _a, props = __rest(_a, ["className", "type"]);
17
+ return (_jsx("input", Object.assign({ ref: ref, type: type, className: cn('flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-xs outline-none transition-colors placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', className) }, props)));
18
+ });
19
+ Input.displayName = 'Input';
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import { Separator } from "./separator.js";
4
+ type ItemParams = {
5
+ asChild?: boolean;
6
+ };
7
+ declare function ItemGroup(params: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function ItemSeparator(params: React.ComponentProps<typeof Separator>): React.JSX.Element;
9
+ declare const itemVariants: (props?: ({
10
+ variant?: "default" | "outline" | "muted" | null | undefined;
11
+ size?: "default" | "sm" | "xs" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ declare function Item(params: React.ComponentProps<"div"> & VariantProps<typeof itemVariants> & ItemParams): React.JSX.Element;
14
+ declare const itemMediaVariants: (props?: ({
15
+ variant?: "default" | "icon" | "image" | null | undefined;
16
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
+ declare function ItemMedia(params: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
18
+ declare function ItemContent(params: React.ComponentProps<"div">): React.JSX.Element;
19
+ declare function ItemTitle(params: React.ComponentProps<"div">): React.JSX.Element;
20
+ declare function ItemDescription(params: React.ComponentProps<"p">): React.JSX.Element;
21
+ declare function ItemActions(params: React.ComponentProps<"div">): React.JSX.Element;
22
+ declare function ItemHeader(params: React.ComponentProps<"div">): React.JSX.Element;
23
+ declare function ItemFooter(params: React.ComponentProps<"div">): React.JSX.Element;
24
+ export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
25
+ //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../source/components/item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,KAAK,UAAU,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAEvC,iBAAS,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAarD;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,qBAapE;AAED,QAAA,MAAM,YAAY;;;8EAoBjB,CAAA;AAED,iBAAS,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC/C,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG,UAAU,qBAkB/C;AAED,QAAA,MAAM,iBAAiB;;8EActB,CAAA;AAED,iBAAS,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,qBAc9F;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYvD;AAED,iBAAS,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYrD;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAYzD;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBASvD;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYtD;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYtD;AAED,OAAO,EACL,IAAI,EACJ,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,GACX,CAAA"}
@@ -0,0 +1,89 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from "react";
14
+ import { cva } from "class-variance-authority";
15
+ import { Slot } from "radix-ui";
16
+ import { cn } from "../utils/cn/index.js";
17
+ import { Separator } from "./separator.js";
18
+ function ItemGroup(params) {
19
+ const { className } = params, props = __rest(params, ["className"]);
20
+ return (_jsx("div", Object.assign({ role: "list", "data-slot": "item-group", className: cn("gap-4 has-[[data-size=sm]]:gap-2.5 has-[[data-size=xs]]:gap-2 group/item-group flex w-full flex-col", className) }, props)));
21
+ }
22
+ function ItemSeparator(params) {
23
+ const { className } = params, props = __rest(params, ["className"]);
24
+ return (_jsx(Separator, Object.assign({ "data-slot": "item-separator", orientation: "horizontal", className: cn("my-2", className) }, props)));
25
+ }
26
+ const itemVariants = cva("[a]:hover:bg-muted rounded-md border text-sm w-full group/item focus-visible:border-ring focus-visible:ring-ring/50 flex items-center flex-wrap outline-none transition-colors duration-100 focus-visible:ring-[3px] [a]:transition-colors", {
27
+ variants: {
28
+ variant: {
29
+ default: "border-transparent",
30
+ outline: "border-border",
31
+ muted: "bg-muted/50 border-transparent",
32
+ },
33
+ size: {
34
+ default: "gap-3.5 px-4 py-3.5",
35
+ sm: "gap-2.5 px-3 py-2.5",
36
+ xs: "gap-2 px-2.5 py-2 [[data-slot=dropdown-menu-content]_&]:p-0",
37
+ },
38
+ },
39
+ defaultVariants: {
40
+ variant: "default",
41
+ size: "default",
42
+ },
43
+ });
44
+ function Item(params) {
45
+ const { className, variant = "default", size = "default", asChild = false } = params, props = __rest(params, ["className", "variant", "size", "asChild"]);
46
+ const Comp = asChild ? Slot.Root : "div";
47
+ return (_jsx(Comp, Object.assign({ "data-slot": "item", "data-variant": variant, "data-size": size, className: cn(itemVariants({ variant, size, className })) }, props)));
48
+ }
49
+ const itemMediaVariants = cva("gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start flex shrink-0 items-center justify-center [&_svg]:pointer-events-none", {
50
+ variants: {
51
+ variant: {
52
+ default: "bg-transparent",
53
+ icon: "[&_svg:not([class*='size-'])]:size-4",
54
+ image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
55
+ },
56
+ },
57
+ defaultVariants: {
58
+ variant: "default",
59
+ },
60
+ });
61
+ function ItemMedia(params) {
62
+ const { className, variant = "default" } = params, props = __rest(params, ["className", "variant"]);
63
+ return (_jsx("div", Object.assign({ "data-slot": "item-media", "data-variant": variant, className: cn(itemMediaVariants({ variant, className })) }, props)));
64
+ }
65
+ function ItemContent(params) {
66
+ const { className } = params, props = __rest(params, ["className"]);
67
+ return (_jsx("div", Object.assign({ "data-slot": "item-content", className: cn("gap-1 group-data-[size=xs]/item:gap-0 flex flex-1 flex-col [&+[data-slot=item-content]]:flex-none", className) }, props)));
68
+ }
69
+ function ItemTitle(params) {
70
+ const { className } = params, props = __rest(params, ["className"]);
71
+ return (_jsx("div", Object.assign({ "data-slot": "item-title", className: cn("gap-2 text-sm leading-snug font-medium underline-offset-4 line-clamp-1 flex w-fit items-center", className) }, props)));
72
+ }
73
+ function ItemDescription(params) {
74
+ const { className } = params, props = __rest(params, ["className"]);
75
+ return (_jsx("p", Object.assign({ "data-slot": "item-description", className: cn("text-muted-foreground text-left text-sm leading-normal group-data-[size=xs]/item:text-xs [&>a:hover]:text-primary line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4", className) }, props)));
76
+ }
77
+ function ItemActions(params) {
78
+ const { className } = params, props = __rest(params, ["className"]);
79
+ return (_jsx("div", Object.assign({ "data-slot": "item-actions", className: cn("gap-2 flex items-center", className) }, props)));
80
+ }
81
+ function ItemHeader(params) {
82
+ const { className } = params, props = __rest(params, ["className"]);
83
+ return (_jsx("div", Object.assign({ "data-slot": "item-header", className: cn("gap-2 flex basis-full items-center justify-between", className) }, props)));
84
+ }
85
+ function ItemFooter(params) {
86
+ const { className } = params, props = __rest(params, ["className"]);
87
+ return (_jsx("div", Object.assign({ "data-slot": "item-footer", className: cn("gap-2 flex basis-full items-center justify-between", className) }, props)));
88
+ }
89
+ export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };