@xjur-ui/react 1.0.6 → 2.1.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 (336) hide show
  1. package/.turbo/turbo-build.log +279 -68
  2. package/CHANGELOG.md +114 -0
  3. package/README.md +146 -0
  4. package/dist/chunk-2CM3SFOY.js +2 -0
  5. package/dist/chunk-2CM3SFOY.js.map +1 -0
  6. package/dist/chunk-2CTBH6VI.js +2 -0
  7. package/dist/chunk-2CTBH6VI.js.map +1 -0
  8. package/dist/chunk-4BGTC333.js +2 -0
  9. package/dist/chunk-4BGTC333.js.map +1 -0
  10. package/dist/chunk-5WLIDYZH.js +2 -0
  11. package/dist/chunk-5WLIDYZH.js.map +1 -0
  12. package/dist/chunk-6AD6O6II.js +2 -0
  13. package/dist/chunk-6AD6O6II.js.map +1 -0
  14. package/dist/chunk-AA6V5YEC.js +2 -0
  15. package/dist/chunk-AA6V5YEC.js.map +1 -0
  16. package/dist/chunk-BK6FP63A.js +2 -0
  17. package/dist/chunk-BK6FP63A.js.map +1 -0
  18. package/dist/chunk-BZDGWC5O.js +2 -0
  19. package/dist/chunk-BZDGWC5O.js.map +1 -0
  20. package/dist/chunk-CBFC4QME.js +2 -0
  21. package/dist/chunk-CBFC4QME.js.map +1 -0
  22. package/dist/chunk-CI3ZXWEX.js +2 -0
  23. package/dist/chunk-CI3ZXWEX.js.map +1 -0
  24. package/dist/chunk-DFXHNK5D.js +2 -0
  25. package/dist/chunk-DFXHNK5D.js.map +1 -0
  26. package/dist/chunk-EIG6CBTQ.js +2 -0
  27. package/dist/chunk-EIG6CBTQ.js.map +1 -0
  28. package/dist/chunk-EXC2XOL6.js +2 -0
  29. package/dist/chunk-EXC2XOL6.js.map +1 -0
  30. package/dist/chunk-F4DYKYWJ.js +2 -0
  31. package/dist/chunk-F4DYKYWJ.js.map +1 -0
  32. package/dist/chunk-F5ZLEQGN.js +2 -0
  33. package/dist/chunk-F5ZLEQGN.js.map +1 -0
  34. package/dist/chunk-IKL6PSXU.js +2 -0
  35. package/dist/chunk-IKL6PSXU.js.map +1 -0
  36. package/dist/chunk-IRHU7PDO.js +2 -0
  37. package/dist/chunk-IRHU7PDO.js.map +1 -0
  38. package/dist/chunk-J4X5RQTR.js +2 -0
  39. package/dist/chunk-J4X5RQTR.js.map +1 -0
  40. package/dist/chunk-KIFR5VIE.js +2 -0
  41. package/dist/chunk-KIFR5VIE.js.map +1 -0
  42. package/dist/chunk-KS6WGBHQ.js +2 -0
  43. package/dist/chunk-KS6WGBHQ.js.map +1 -0
  44. package/dist/chunk-L4ET6GIZ.js +2 -0
  45. package/dist/chunk-L4ET6GIZ.js.map +1 -0
  46. package/dist/chunk-MZSV4LNY.js +2 -0
  47. package/dist/chunk-MZSV4LNY.js.map +1 -0
  48. package/dist/chunk-NELCN6E2.js +2 -0
  49. package/dist/chunk-NELCN6E2.js.map +1 -0
  50. package/dist/chunk-OS53BV63.js +3 -0
  51. package/dist/chunk-OS53BV63.js.map +1 -0
  52. package/dist/chunk-PKCW37CJ.js +2 -0
  53. package/dist/chunk-PKCW37CJ.js.map +1 -0
  54. package/dist/chunk-RWMV7APX.js +2 -0
  55. package/dist/chunk-RWMV7APX.js.map +1 -0
  56. package/dist/chunk-SLAAEXWI.js +2 -0
  57. package/dist/chunk-SLAAEXWI.js.map +1 -0
  58. package/dist/chunk-SXGSWVMZ.js +2 -0
  59. package/dist/chunk-SXGSWVMZ.js.map +1 -0
  60. package/dist/chunk-TB6KI6CL.js +2 -0
  61. package/dist/chunk-TB6KI6CL.js.map +1 -0
  62. package/dist/chunk-TSVURBUY.js +2 -0
  63. package/dist/chunk-TSVURBUY.js.map +1 -0
  64. package/dist/chunk-UXIVZWLB.js +2 -0
  65. package/dist/chunk-UXIVZWLB.js.map +1 -0
  66. package/dist/chunk-WEBAXQID.js +2 -0
  67. package/dist/chunk-WEBAXQID.js.map +1 -0
  68. package/dist/chunk-WV7QV2PU.js +2 -0
  69. package/dist/chunk-WV7QV2PU.js.map +1 -0
  70. package/dist/chunk-Z47R2CIM.js +2 -0
  71. package/dist/chunk-Z47R2CIM.js.map +1 -0
  72. package/dist/chunk-ZVVPUP7V.js +2 -0
  73. package/dist/chunk-ZVVPUP7V.js.map +1 -0
  74. package/dist/components/avatar-group.js +2 -179
  75. package/dist/components/avatar-group.js.map +1 -0
  76. package/dist/components/avatar.js +2 -59
  77. package/dist/components/avatar.js.map +1 -0
  78. package/dist/components/badge.js +2 -111
  79. package/dist/components/badge.js.map +1 -0
  80. package/dist/components/breadcrumb.d.ts +20 -0
  81. package/dist/components/breadcrumb.js +2 -0
  82. package/dist/components/breadcrumb.js.map +1 -0
  83. package/dist/components/chip.d.ts +5 -2
  84. package/dist/components/chip.js +2 -256
  85. package/dist/components/chip.js.map +1 -0
  86. package/dist/components/collapsible.js +2 -41
  87. package/dist/components/collapsible.js.map +1 -0
  88. package/dist/components/dialog.d.ts +51 -0
  89. package/dist/components/dialog.js +2 -0
  90. package/dist/components/dialog.js.map +1 -0
  91. package/dist/components/divider.js +2 -29
  92. package/dist/components/divider.js.map +1 -0
  93. package/dist/components/drag-and-drop/drag-handle.d.ts +15 -0
  94. package/dist/components/drag-and-drop/drag-handle.js +2 -0
  95. package/dist/components/drag-and-drop/drag-handle.js.map +1 -0
  96. package/dist/components/drag-and-drop/drag-list-item.d.ts +14 -0
  97. package/dist/components/drag-and-drop/drag-list-item.js +2 -0
  98. package/dist/components/drag-and-drop/drag-list-item.js.map +1 -0
  99. package/dist/components/drag-and-drop/drag-list.d.ts +14 -0
  100. package/dist/components/drag-and-drop/drag-list.js +2 -0
  101. package/dist/components/drag-and-drop/drag-list.js.map +1 -0
  102. package/dist/components/drag-and-drop/drag-root.d.ts +6 -0
  103. package/dist/components/drag-and-drop/drag-root.js +2 -0
  104. package/dist/components/drag-and-drop/drag-root.js.map +1 -0
  105. package/dist/components/drag-and-drop/index.d.ts +10 -0
  106. package/dist/components/drag-and-drop/index.js +2 -0
  107. package/dist/components/drag-and-drop/index.js.map +1 -0
  108. package/dist/components/drag-and-drop/types/drag-item.d.ts +9 -0
  109. package/dist/components/drag-and-drop/types/drag-item.js +2 -0
  110. package/dist/components/drag-and-drop/types/drag-item.js.map +1 -0
  111. package/dist/components/dropdown-menu.js +2 -295
  112. package/dist/components/dropdown-menu.js.map +1 -0
  113. package/dist/components/form/button.js +2 -0
  114. package/dist/components/form/button.js.map +1 -0
  115. package/dist/components/form/calendar.js +2 -0
  116. package/dist/components/form/calendar.js.map +1 -0
  117. package/dist/components/form/checkbox.js +2 -0
  118. package/dist/components/form/checkbox.js.map +1 -0
  119. package/dist/components/form/context/field.context.d.ts +15 -0
  120. package/dist/components/form/context/field.context.js +2 -0
  121. package/dist/components/form/context/field.context.js.map +1 -0
  122. package/dist/components/form/date-picker.d.ts +84 -0
  123. package/dist/components/form/date-picker.js +2 -0
  124. package/dist/components/form/date-picker.js.map +1 -0
  125. package/dist/components/form/floating-label.d.ts +6 -0
  126. package/dist/components/form/floating-label.js +2 -0
  127. package/dist/components/form/floating-label.js.map +1 -0
  128. package/dist/components/form/input.d.ts +95 -0
  129. package/dist/components/form/input.js +2 -0
  130. package/dist/components/form/input.js.map +1 -0
  131. package/dist/components/form/otp-input.js +2 -0
  132. package/dist/components/form/otp-input.js.map +1 -0
  133. package/dist/components/form/radio.js +2 -0
  134. package/dist/components/form/radio.js.map +1 -0
  135. package/dist/components/{rich-editor.d.ts → form/rich-editor.d.ts} +2 -1
  136. package/dist/components/form/rich-editor.js +2 -0
  137. package/dist/components/form/rich-editor.js.map +1 -0
  138. package/dist/components/form/search-input.js +2 -0
  139. package/dist/components/form/search-input.js.map +1 -0
  140. package/dist/components/form/select.d.ts +94 -0
  141. package/dist/components/form/select.js +2 -0
  142. package/dist/components/form/select.js.map +1 -0
  143. package/dist/components/form/switch.js +2 -0
  144. package/dist/components/form/switch.js.map +1 -0
  145. package/dist/components/full-calendar/calendar-add-event.d.ts +9 -0
  146. package/dist/components/full-calendar/calendar-add-event.js +2 -0
  147. package/dist/components/full-calendar/calendar-add-event.js.map +1 -0
  148. package/dist/components/full-calendar/calendar-body.d.ts +6 -0
  149. package/dist/components/full-calendar/calendar-body.js +2 -0
  150. package/dist/components/full-calendar/calendar-body.js.map +1 -0
  151. package/dist/components/full-calendar/calendar-cell.d.ts +11 -0
  152. package/dist/components/full-calendar/calendar-cell.js +2 -0
  153. package/dist/components/full-calendar/calendar-cell.js.map +1 -0
  154. package/dist/components/full-calendar/calendar-day-view.d.ts +5 -0
  155. package/dist/components/full-calendar/calendar-day-view.js +2 -0
  156. package/dist/components/full-calendar/calendar-day-view.js.map +1 -0
  157. package/dist/components/full-calendar/calendar-event.d.ts +18 -0
  158. package/dist/components/full-calendar/calendar-event.js +2 -0
  159. package/dist/components/full-calendar/calendar-event.js.map +1 -0
  160. package/dist/components/full-calendar/calendar-header.d.ts +6 -0
  161. package/dist/components/full-calendar/calendar-header.js +2 -0
  162. package/dist/components/full-calendar/calendar-header.js.map +1 -0
  163. package/dist/components/full-calendar/calendar-month-view.d.ts +5 -0
  164. package/dist/components/full-calendar/calendar-month-view.js +2 -0
  165. package/dist/components/full-calendar/calendar-month-view.js.map +1 -0
  166. package/dist/components/full-calendar/calendar-more-events-dropdown.d.ts +9 -0
  167. package/dist/components/full-calendar/calendar-more-events-dropdown.js +2 -0
  168. package/dist/components/full-calendar/calendar-more-events-dropdown.js.map +1 -0
  169. package/dist/components/full-calendar/calendar-navigator.d.ts +5 -0
  170. package/dist/components/full-calendar/calendar-navigator.js +2 -0
  171. package/dist/components/full-calendar/calendar-navigator.js.map +1 -0
  172. package/dist/components/full-calendar/calendar-root.d.ts +30 -0
  173. package/dist/components/full-calendar/calendar-root.js +2 -0
  174. package/dist/components/full-calendar/calendar-root.js.map +1 -0
  175. package/dist/components/full-calendar/calendar-today-button.d.ts +9 -0
  176. package/dist/components/full-calendar/calendar-today-button.js +2 -0
  177. package/dist/components/full-calendar/calendar-today-button.js.map +1 -0
  178. package/dist/components/full-calendar/calendar-toggle-view.d.ts +5 -0
  179. package/dist/components/full-calendar/calendar-toggle-view.js +2 -0
  180. package/dist/components/full-calendar/calendar-toggle-view.js.map +1 -0
  181. package/dist/components/full-calendar/calendar-view-renderer.d.ts +5 -0
  182. package/dist/components/full-calendar/calendar-view-renderer.js +2 -0
  183. package/dist/components/full-calendar/calendar-view-renderer.js.map +1 -0
  184. package/dist/components/full-calendar/calendar-week-day.d.ts +10 -0
  185. package/dist/components/full-calendar/calendar-week-day.js +2 -0
  186. package/dist/components/full-calendar/calendar-week-day.js.map +1 -0
  187. package/dist/components/full-calendar/calendar-week-view.d.ts +5 -0
  188. package/dist/components/full-calendar/calendar-week-view.js +2 -0
  189. package/dist/components/full-calendar/calendar-week-view.js.map +1 -0
  190. package/dist/components/full-calendar/helpers/calendar.d.ts +25 -0
  191. package/dist/components/full-calendar/helpers/calendar.js +2 -0
  192. package/dist/components/full-calendar/helpers/calendar.js.map +1 -0
  193. package/dist/components/full-calendar/index.d.ts +18 -0
  194. package/dist/components/full-calendar/index.js +2 -0
  195. package/dist/components/full-calendar/index.js.map +1 -0
  196. package/dist/components/full-calendar/types/calendar-cell.d.ts +6 -0
  197. package/dist/components/full-calendar/types/calendar-cell.js +2 -0
  198. package/dist/components/full-calendar/types/calendar-cell.js.map +1 -0
  199. package/dist/components/full-calendar/types/calendar-event.d.ts +8 -0
  200. package/dist/components/full-calendar/types/calendar-event.js +2 -0
  201. package/dist/components/full-calendar/types/calendar-event.js.map +1 -0
  202. package/dist/components/full-calendar/types/calendar-view.d.ts +3 -0
  203. package/dist/components/full-calendar/types/calendar-view.js +2 -0
  204. package/dist/components/full-calendar/types/calendar-view.js.map +1 -0
  205. package/dist/components/full-calendar/types/calendar-week-hour.d.ts +6 -0
  206. package/dist/components/full-calendar/types/calendar-week-hour.js +2 -0
  207. package/dist/components/full-calendar/types/calendar-week-hour.js.map +1 -0
  208. package/dist/components/horizontal-scroll.d.ts +11 -0
  209. package/dist/components/horizontal-scroll.js +2 -0
  210. package/dist/components/horizontal-scroll.js.map +1 -0
  211. package/dist/components/icon.d.ts +3 -4
  212. package/dist/components/icon.js +2 -177
  213. package/dist/components/icon.js.map +1 -0
  214. package/dist/components/list.js +2 -179
  215. package/dist/components/list.js.map +1 -0
  216. package/dist/components/logo.js +2 -324
  217. package/dist/components/logo.js.map +1 -0
  218. package/dist/components/selection-bar.d.ts +57 -0
  219. package/dist/components/selection-bar.js +2 -0
  220. package/dist/components/selection-bar.js.map +1 -0
  221. package/dist/components/sheet.d.ts +8 -8
  222. package/dist/components/sheet.js +2 -251
  223. package/dist/components/sheet.js.map +1 -0
  224. package/dist/components/skeleton.js +2 -16
  225. package/dist/components/skeleton.js.map +1 -0
  226. package/dist/components/status.js +2 -111
  227. package/dist/components/status.js.map +1 -0
  228. package/dist/components/table.js +2 -196
  229. package/dist/components/table.js.map +1 -0
  230. package/dist/components/tabs.d.ts +9 -6
  231. package/dist/components/tabs.js +2 -54
  232. package/dist/components/tabs.js.map +1 -0
  233. package/dist/components/tag.d.ts +5 -2
  234. package/dist/components/tag.js +2 -189
  235. package/dist/components/tag.js.map +1 -0
  236. package/dist/components/tooltip.js +2 -58
  237. package/dist/components/tooltip.js.map +1 -0
  238. package/dist/components/typography.js +2 -78
  239. package/dist/components/typography.js.map +1 -0
  240. package/dist/components/upload.d.ts +74 -0
  241. package/dist/components/upload.js +2 -0
  242. package/dist/components/upload.js.map +1 -0
  243. package/dist/hooks/index.d.ts +7 -0
  244. package/dist/hooks/index.js +2 -0
  245. package/dist/hooks/index.js.map +1 -0
  246. package/dist/icons-CmDuL0gZ.d.ts +4 -0
  247. package/dist/index.css +2 -2322
  248. package/dist/index.css.map +1 -0
  249. package/dist/logo-PQRZORCS.js +3 -0
  250. package/dist/logo-PQRZORCS.js.map +1 -0
  251. package/package.json +60 -18
  252. package/src/components/breadcrumb.tsx +119 -0
  253. package/src/components/chip.tsx +11 -3
  254. package/src/components/dialog.tsx +242 -0
  255. package/src/components/drag-and-drop/drag-handle.tsx +46 -0
  256. package/src/components/drag-and-drop/drag-list-item.tsx +91 -0
  257. package/src/components/drag-and-drop/drag-list.tsx +47 -0
  258. package/src/components/drag-and-drop/drag-root.tsx +30 -0
  259. package/src/components/drag-and-drop/index.ts +39 -0
  260. package/src/components/drag-and-drop/types/drag-item.ts +7 -0
  261. package/src/components/{calendar.tsx → form/calendar.tsx} +9 -8
  262. package/src/components/{checkbox.tsx → form/checkbox.tsx} +2 -2
  263. package/src/components/form/context/field.context.ts +27 -0
  264. package/src/components/form/date-picker.tsx +199 -0
  265. package/src/components/form/floating-label.tsx +60 -0
  266. package/src/components/form/input.tsx +235 -0
  267. package/src/components/{radio.tsx → form/radio.tsx} +1 -1
  268. package/src/components/{rich-editor.tsx → form/rich-editor.tsx} +10 -9
  269. package/src/components/{search-input.tsx → form/search-input.tsx} +2 -2
  270. package/src/components/form/select.tsx +274 -0
  271. package/src/components/full-calendar/calendar-add-event.tsx +15 -0
  272. package/src/components/full-calendar/calendar-body.tsx +12 -0
  273. package/src/components/full-calendar/calendar-cell.tsx +120 -0
  274. package/src/components/full-calendar/calendar-day-view.tsx +76 -0
  275. package/src/components/full-calendar/calendar-event.tsx +178 -0
  276. package/src/components/full-calendar/calendar-header.tsx +14 -0
  277. package/src/components/full-calendar/calendar-month-view.tsx +69 -0
  278. package/src/components/full-calendar/calendar-more-events-dropdown.tsx +39 -0
  279. package/src/components/full-calendar/calendar-navigator.tsx +86 -0
  280. package/src/components/full-calendar/calendar-root.tsx +165 -0
  281. package/src/components/full-calendar/calendar-today-button.tsx +21 -0
  282. package/src/components/full-calendar/calendar-toggle-view.tsx +61 -0
  283. package/src/components/full-calendar/calendar-view-renderer.tsx +19 -0
  284. package/src/components/full-calendar/calendar-week-day.tsx +49 -0
  285. package/src/components/full-calendar/calendar-week-view.tsx +88 -0
  286. package/src/components/full-calendar/helpers/calendar.ts +158 -0
  287. package/src/components/full-calendar/index.ts +16 -0
  288. package/src/components/full-calendar/types/calendar-cell.ts +4 -0
  289. package/src/components/full-calendar/types/calendar-event.ts +7 -0
  290. package/src/components/full-calendar/types/calendar-view.ts +1 -0
  291. package/src/components/full-calendar/types/calendar-week-hour.ts +4 -0
  292. package/src/components/horizontal-scroll.tsx +159 -0
  293. package/src/components/icon.tsx +1 -1
  294. package/src/components/logo.tsx +25 -20
  295. package/src/components/selection-bar.tsx +273 -0
  296. package/src/components/sheet.tsx +2 -2
  297. package/src/components/tabs.tsx +56 -37
  298. package/src/components/tag.tsx +11 -3
  299. package/src/components/upload.tsx +647 -0
  300. package/src/index.css +2 -2
  301. package/src/resources/icons.ts +4 -1
  302. package/src/resources/logo/index.tsx +33 -0
  303. package/tsup.config.ts +23 -5
  304. package/dist/components/button.js +0 -98
  305. package/dist/components/calendar.js +0 -751
  306. package/dist/components/checkbox.js +0 -153
  307. package/dist/components/date-picker.d.ts +0 -20
  308. package/dist/components/date-picker.js +0 -232
  309. package/dist/components/input.d.ts +0 -32
  310. package/dist/components/input.js +0 -315
  311. package/dist/components/otp-input.js +0 -47
  312. package/dist/components/radio.js +0 -156
  313. package/dist/components/rich-editor.js +0 -723
  314. package/dist/components/search-input.js +0 -274
  315. package/dist/components/select.d.ts +0 -33
  316. package/dist/components/select.js +0 -550
  317. package/dist/components/switch.js +0 -36
  318. package/dist/components/test.d.ts +0 -5
  319. package/dist/components/test.js +0 -8
  320. package/dist/index.js +0 -0
  321. package/src/components/date-picker.tsx +0 -160
  322. package/src/components/input.tsx +0 -256
  323. package/src/components/select.tsx +0 -240
  324. package/src/components/test.tsx +0 -3
  325. package/src/index.ts +0 -1
  326. package/src/resources/logo/index.ts +0 -3
  327. /package/dist/components/{button.d.ts → form/button.d.ts} +0 -0
  328. /package/dist/components/{calendar.d.ts → form/calendar.d.ts} +0 -0
  329. /package/dist/components/{checkbox.d.ts → form/checkbox.d.ts} +0 -0
  330. /package/dist/components/{otp-input.d.ts → form/otp-input.d.ts} +0 -0
  331. /package/dist/components/{radio.d.ts → form/radio.d.ts} +0 -0
  332. /package/dist/components/{search-input.d.ts → form/search-input.d.ts} +0 -0
  333. /package/dist/components/{switch.d.ts → form/switch.d.ts} +0 -0
  334. /package/src/components/{button.tsx → form/button.tsx} +0 -0
  335. /package/src/components/{otp-input.tsx → form/otp-input.tsx} +0 -0
  336. /package/src/components/{switch.tsx → form/switch.tsx} +0 -0
@@ -0,0 +1,2 @@
1
+ //# sourceMappingURL=calendar-event.js.map
2
+ //# sourceMappingURL=calendar-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-event.js"}
@@ -0,0 +1,3 @@
1
+ type CalendarView = 'month' | 'week' | 'day';
2
+
3
+ export type { CalendarView };
@@ -0,0 +1,2 @@
1
+ //# sourceMappingURL=calendar-view.js.map
2
+ //# sourceMappingURL=calendar-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-view.js"}
@@ -0,0 +1,6 @@
1
+ interface ICalendarWeekHour {
2
+ hour: number;
3
+ label: string;
4
+ }
5
+
6
+ export type { ICalendarWeekHour };
@@ -0,0 +1,2 @@
1
+ //# sourceMappingURL=calendar-week-hour.js.map
2
+ //# sourceMappingURL=calendar-week-hour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-week-hour.js"}
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps, ReactNode } from 'react';
3
+
4
+ interface HorizontalScrollProps extends ComponentProps<'div'> {
5
+ children: ReactNode;
6
+ gap?: 'small' | 'medium' | 'large';
7
+ scrollAmount?: number;
8
+ }
9
+ declare function HorizontalScroll({ children, className, gap, scrollAmount, ...props }: HorizontalScrollProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { HorizontalScroll, type HorizontalScrollProps };
@@ -0,0 +1,2 @@
1
+ import {b}from'../chunk-PKCW37CJ.js';import {b as b$1}from'../chunk-WV7QV2PU.js';import {useRef,useState,useCallback,useEffect}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function P({children:h,className:u,gap:g="small",scrollAmount:s=200,...b$2}){let l=useRef(null),[S,z]=useState(false),[w,L]=useState(false),[p,a]=useState(false),o=useCallback(()=>{let e=l.current;if(!e)return;let{scrollLeft:n,scrollWidth:i,clientWidth:r}=e;z(n>0),L(n<i-r-1);},[]),R=useCallback(()=>{let e=l.current;e&&(a(true),e.scrollTo({left:e.scrollLeft-s,behavior:"smooth"}),setTimeout(()=>a(false),300));},[s]),x=useCallback(()=>{let e=l.current;e&&(a(true),e.scrollTo({left:e.scrollLeft+s,behavior:"smooth"}),setTimeout(()=>a(false),300));},[s]);useEffect(()=>{let e=l.current;if(!e)return;let n=()=>{o();},i=()=>{o();};o(),e.addEventListener("scroll",n,{passive:true}),window.addEventListener("resize",i);let r=null;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(()=>{o();}),r.observe(e)),()=>{e.removeEventListener("scroll",n),window.removeEventListener("resize",i),r&&r.disconnect();}},[o]);let y={small:"gap-small",medium:"gap-medium",large:"gap-large"}[g];return jsxs("div",{className:cx("relative isolate",u),...b$2,children:[S&&jsx("div",{className:"absolute top-1/2 left-0 z-[3] flex h-full w-[80px] -translate-y-1/2 items-center",style:{background:"linear-gradient(to right, white 40%, transparent)"},children:jsx(b,{appearance:"ghost","aria-label":"Scroll left",className:"ml-0",disabled:p,size:"icon_md",variant:"secondary",onClick:R,children:jsx(b$1,{name:"chevron_left"})})}),w&&jsx("div",{className:"absolute top-1/2 right-0 z-[2] flex h-full w-[80px] -translate-y-1/2 items-center justify-end",style:{background:"linear-gradient(to left, white 40%, transparent)"},children:jsx(b,{appearance:"ghost","aria-label":"Scroll right",className:"mr-0",disabled:p,size:"icon_md",variant:"secondary",onClick:x,children:jsx(b$1,{name:"chevron_right"})})}),jsx("div",{className:cx("scrollbar-hide relative z-1 flex overflow-x-auto overflow-y-visible","min-w-0 [&>*]:flex-none [&>*]:whitespace-nowrap",y,u),ref:l,children:h})]})}export{P as HorizontalScroll};//# sourceMappingURL=horizontal-scroll.js.map
2
+ //# sourceMappingURL=horizontal-scroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/horizontal-scroll.tsx"],"names":["HorizontalScroll","children","className","gap","scrollAmount","props","scrollContainerRef","useRef","canScrollLeft","setCanScrollLeft","useState","canScrollRight","setCanScrollRight","isScrolling","setIsScrolling","checkScrollable","useCallback","container","scrollLeft","scrollWidth","clientWidth","handleScrollLeft","handleScrollRight","useEffect","handleScroll","handleResize","resizeObserver","gapClass","jsxs","cx","jsx","Button","Icon"],"mappings":"mNAYO,SAASA,CAAAA,CAAiB,CAC/B,SAAAC,CAAAA,CACA,SAAA,CAAAC,EACA,GAAA,CAAAC,CAAAA,CAAM,QACN,YAAA,CAAAC,CAAAA,CAAe,IACf,GAAGC,GACL,EAA0B,CACxB,IAAMC,EAAqBC,MAAAA,CAAuB,IAAI,EAChD,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,SAAS,KAAK,CAAA,CAClD,CAACC,CAAAA,CAAgBC,CAAiB,EAAIF,QAAAA,CAAS,KAAK,EACpD,CAACG,CAAAA,CAAaC,CAAc,CAAA,CAAIJ,QAAAA,CAAS,KAAK,CAAA,CAE9CK,CAAAA,CAAkBC,YAAY,IAAM,CACxC,IAAMC,CAAAA,CAAYX,EAAmB,OAAA,CACrC,GAAI,CAACW,CAAAA,CAAW,OAEhB,GAAM,CAAE,UAAA,CAAAC,EAAY,WAAA,CAAAC,CAAAA,CAAa,YAAAC,CAAY,CAAA,CAAIH,EACjDR,CAAAA,CAAiBS,CAAAA,CAAa,CAAC,CAAA,CAC/BN,CAAAA,CAAkBM,CAAAA,CAAaC,CAAAA,CAAcC,EAAc,CAAC,EAC9D,EAAG,EAAE,EAECC,CAAAA,CAAmBL,WAAAA,CAAY,IAAM,CACzC,IAAMC,CAAAA,CAAYX,CAAAA,CAAmB,QAChCW,CAAAA,GAELH,CAAAA,CAAe,IAAI,CAAA,CACnBG,CAAAA,CAAU,QAAA,CAAS,CACjB,KAAMA,CAAAA,CAAU,UAAA,CAAab,EAC7B,QAAA,CAAU,QACZ,CAAC,CAAA,CAED,UAAA,CAAW,IAAMU,CAAAA,CAAe,KAAK,EAAG,GAAG,CAAA,EAC7C,EAAG,CAACV,CAAY,CAAC,CAAA,CAEXkB,CAAAA,CAAoBN,WAAAA,CAAY,IAAM,CAC1C,IAAMC,CAAAA,CAAYX,EAAmB,OAAA,CAChCW,CAAAA,GAELH,EAAe,IAAI,CAAA,CACnBG,EAAU,QAAA,CAAS,CACjB,KAAMA,CAAAA,CAAU,UAAA,CAAab,EAC7B,QAAA,CAAU,QACZ,CAAC,CAAA,CAED,UAAA,CAAW,IAAMU,CAAAA,CAAe,KAAK,CAAA,CAAG,GAAG,GAC7C,CAAA,CAAG,CAACV,CAAY,CAAC,CAAA,CAEjBmB,UAAU,IAAM,CACd,IAAMN,CAAAA,CAAYX,CAAAA,CAAmB,QACrC,GAAI,CAACW,EAAW,OAEhB,IAAMO,CAAAA,CAAe,IAAM,CACzBT,CAAAA,GACF,EAEMU,CAAAA,CAAe,IAAM,CACzBV,CAAAA,GACF,CAAA,CAEAA,CAAAA,GACAE,CAAAA,CAAU,gBAAA,CAAiB,SAAUO,CAAAA,CAAc,CAAE,QAAS,IAAK,CAAC,CAAA,CACpE,MAAA,CAAO,iBAAiB,QAAA,CAAUC,CAAY,EAE9C,IAAIC,CAAAA,CAAwC,KAC5C,OAAI,OAAO,eAAmB,GAAA,GAC5BA,CAAAA,CAAiB,IAAI,cAAA,CAAe,IAAM,CACxCX,CAAAA,GACF,CAAC,CAAA,CACDW,CAAAA,CAAe,OAAA,CAAQT,CAAS,GAG3B,IAAM,CACXA,EAAU,mBAAA,CAAoB,QAAA,CAAUO,CAAY,CAAA,CACpD,MAAA,CAAO,oBAAoB,QAAA,CAAUC,CAAY,EAC7CC,CAAAA,EACFA,CAAAA,CAAe,aAEnB,CACF,EAAG,CAACX,CAAe,CAAC,CAAA,CAEpB,IAAMY,CAAAA,CAAW,CACf,MAAO,WAAA,CACP,MAAA,CAAQ,aACR,KAAA,CAAO,WACT,EAAExB,CAAG,CAAA,CAEL,OACEyB,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAWC,EAAAA,CAAG,kBAAA,CAAoB3B,CAAS,CAAA,CAAI,GAAGG,GAAAA,CAEpD,QAAA,CAAA,CAAAG,GACCsB,GAAAA,CAAC,KAAA,CAAA,CACC,UAAU,kFAAA,CACV,KAAA,CAAO,CACL,UAAA,CAAY,mDACd,EAEA,QAAA,CAAAA,GAAAA,CAACC,EAAA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,aAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,CAAAA,CACV,IAAA,CAAK,UACL,OAAA,CAAQ,WAAA,CACR,QAASQ,CAAAA,CAET,QAAA,CAAAS,IAACE,GAAAA,CAAA,CAAK,KAAK,cAAA,CAAe,CAAA,CAC5B,EACF,CAAA,CAIDrB,CAAAA,EACCmB,IAAC,KAAA,CAAA,CACC,SAAA,CAAU,gGACV,KAAA,CAAO,CACL,UAAA,CAAY,kDACd,EAEA,QAAA,CAAAA,GAAAA,CAACC,EAAA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,cAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,EACV,IAAA,CAAK,SAAA,CACL,QAAQ,WAAA,CACR,OAAA,CAASS,EAET,QAAA,CAAAQ,GAAAA,CAACE,GAAAA,CAAA,CAAK,KAAK,eAAA,CAAgB,CAAA,CAC7B,EACF,CAAA,CAIFF,GAAAA,CAAC,OACC,SAAA,CAAWD,EAAAA,CACT,sEACA,iDAAA,CACAF,CAAAA,CACAzB,CACF,CAAA,CACA,GAAA,CAAKI,EAEJ,QAAA,CAAAL,CAAAA,CACH,GACF,CAEJ","file":"horizontal-scroll.js","sourcesContent":["import type { ComponentProps, ReactNode } from 'react'\nimport { useCallback, useEffect, useRef, useState } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { Button } from './form/button'\nimport { Icon } from './icon'\n\nexport interface HorizontalScrollProps extends ComponentProps<'div'> {\n children: ReactNode\n gap?: 'small' | 'medium' | 'large'\n scrollAmount?: number\n}\n\nexport function HorizontalScroll({\n children,\n className,\n gap = 'small',\n scrollAmount = 200,\n ...props\n}: HorizontalScrollProps) {\n const scrollContainerRef = useRef<HTMLDivElement>(null)\n const [canScrollLeft, setCanScrollLeft] = useState(false)\n const [canScrollRight, setCanScrollRight] = useState(false)\n const [isScrolling, setIsScrolling] = useState(false)\n\n const checkScrollable = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n const { scrollLeft, scrollWidth, clientWidth } = container\n setCanScrollLeft(scrollLeft > 0)\n setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1)\n }, [])\n\n const handleScrollLeft = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n setIsScrolling(true)\n container.scrollTo({\n left: container.scrollLeft - scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [scrollAmount])\n\n const handleScrollRight = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n setIsScrolling(true)\n container.scrollTo({\n left: container.scrollLeft + scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [scrollAmount])\n\n useEffect(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n const handleScroll = () => {\n checkScrollable()\n }\n\n const handleResize = () => {\n checkScrollable()\n }\n\n checkScrollable()\n container.addEventListener('scroll', handleScroll, { passive: true })\n window.addEventListener('resize', handleResize)\n\n let resizeObserver: ResizeObserver | null = null\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(() => {\n checkScrollable()\n })\n resizeObserver.observe(container)\n }\n\n return () => {\n container.removeEventListener('scroll', handleScroll)\n window.removeEventListener('resize', handleResize)\n if (resizeObserver) {\n resizeObserver.disconnect()\n }\n }\n }, [checkScrollable])\n\n const gapClass = {\n small: 'gap-small',\n medium: 'gap-medium',\n large: 'gap-large'\n }[gap]\n\n return (\n <div className={cx('relative isolate', className)} {...props}>\n {/* Left Arrow */}\n {canScrollLeft && (\n <div\n className=\"absolute top-1/2 left-0 z-[3] flex h-full w-[80px] -translate-y-1/2 items-center\"\n style={{\n background: `linear-gradient(to right, white 40%, transparent)`\n }}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll left\"\n className=\"ml-0\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollLeft}\n >\n <Icon name=\"chevron_left\" />\n </Button>\n </div>\n )}\n\n {/* Right Arrow */}\n {canScrollRight && (\n <div\n className=\"absolute top-1/2 right-0 z-[2] flex h-full w-[80px] -translate-y-1/2 items-center justify-end\"\n style={{\n background: `linear-gradient(to left, white 40%, transparent)`\n }}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll right\"\n className=\"mr-0\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollRight}\n >\n <Icon name=\"chevron_right\" />\n </Button>\n </div>\n )}\n\n {/* Scrollable Content */}\n <div\n className={cx(\n 'scrollbar-hide relative z-1 flex overflow-x-auto overflow-y-visible',\n 'min-w-0 [&>*]:flex-none [&>*]:whitespace-nowrap',\n gapClass,\n className\n )}\n ref={scrollContainerRef}\n >\n {children}\n </div>\n </div>\n )\n}\n"]}
@@ -1,8 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ComponentProps } from 'react';
3
-
4
- declare const icons: readonly ["account_balance", "ad_units", "add_a_photo", "add", "adjust", "archive", "arrow_downward_alt", "arrow_downward", "arrow_drop_down", "arrow_drop_up", "arrow_split", "arrow_upward_alt", "arrow_upward", "attach_file", "attach_money", "autorenew", "brightness_1", "calendar_today", "call", "chat_bubble", "check_circle", "check", "chevron_left", "chevron_right", "close", "collapse_all", "contacts", "content_copy", "dangerous", "dashboard", "delete", "download", "draft", "drafts", "drag_handle", "drag_indicator", "edit_document", "edit_square", "edit", "error", "expand_all", "file_export", "filter_alt", "filter_list", "first_page", "flag_2", "folder_open", "folder", "format_bold", "format_italic", "format_italic", "format_size", "format_strikethrough", "gavel", "group", "headphones", "help", "hourglass_bottom", "imagesmode", "import_contacts", "inbox", "info", "inventory_2", "keep", "keep", "keyboard_arrow_down", "keyboard_arrow_up", "keyboard_return", "label_off", "label", "last_page", "left_panel_close", "left_panel_open", "link_off", "link", "linked_services", "list", "location_on", "lock", "logout", "mail", "menu", "mic", "more_vert", "notifications", "numbers", "person_add", "person_off", "person", "play_circle", "progress_activity", "question_mark", "radio_button_unchecked", "refresh", "remove", "reply", "right_panel_close", "right_panel_open", "schedule", "search", "sell", "send", "settings", "share", "smart_display", "star", "star", "swap_vert", "thumb_down", "thumb_up", "tune", "unarchive", "undo", "upload", "verified_user", "videocam", "view_list", "view_module", "view_object_track", "visibility_off", "visibility", "warning", "wifi_2_bar", "wifi_off", "wifi", "work", "workspaces", "article", "id_card", "badge", "home", "save", "code", "favorite", "analytics", "reports", "event", "account_circle", "history", "security", "bar_chart", "category", "format_underlined", "format_list_bulleted", "format_list_numbered", "redo"];
5
- type IconType = (typeof icons)[number];
3
+ import { I as IconType } from '../icons-CmDuL0gZ.js';
4
+ export { i as icons } from '../icons-CmDuL0gZ.js';
6
5
 
7
6
  type IconProps = {
8
7
  name: IconType;
@@ -10,4 +9,4 @@ type IconProps = {
10
9
  } & ComponentProps<'span'>;
11
10
  declare function Icon({ className, filled, name, ...props }: IconProps): react_jsx_runtime.JSX.Element;
12
11
 
13
- export { Icon, type IconProps, type IconType, icons };
12
+ export { Icon, type IconProps, IconType };
@@ -1,177 +1,2 @@
1
- // src/components/icon.tsx
2
- import { cx } from "@xjur-ui/util";
3
-
4
- // src/resources/icons.ts
5
- var icons = [
6
- "account_balance",
7
- "ad_units",
8
- "add_a_photo",
9
- "add",
10
- "adjust",
11
- "archive",
12
- "arrow_downward_alt",
13
- "arrow_downward",
14
- "arrow_drop_down",
15
- "arrow_drop_up",
16
- "arrow_split",
17
- "arrow_upward_alt",
18
- "arrow_upward",
19
- "attach_file",
20
- "attach_money",
21
- "autorenew",
22
- "brightness_1",
23
- "calendar_today",
24
- "call",
25
- "chat_bubble",
26
- "check_circle",
27
- "check",
28
- "chevron_left",
29
- "chevron_right",
30
- "close",
31
- "collapse_all",
32
- "contacts",
33
- "content_copy",
34
- "dangerous",
35
- "dashboard",
36
- "delete",
37
- "download",
38
- "draft",
39
- "drafts",
40
- "drag_handle",
41
- "drag_indicator",
42
- "edit_document",
43
- "edit_square",
44
- "edit",
45
- "error",
46
- "expand_all",
47
- "file_export",
48
- "filter_alt",
49
- "filter_list",
50
- "first_page",
51
- "flag_2",
52
- "folder_open",
53
- "folder",
54
- "format_bold",
55
- "format_italic",
56
- "format_italic",
57
- "format_size",
58
- "format_strikethrough",
59
- "gavel",
60
- "group",
61
- "headphones",
62
- "help",
63
- "hourglass_bottom",
64
- "imagesmode",
65
- "import_contacts",
66
- "inbox",
67
- "info",
68
- "inventory_2",
69
- "keep",
70
- "keep",
71
- "keyboard_arrow_down",
72
- "keyboard_arrow_up",
73
- "keyboard_return",
74
- "label_off",
75
- "label",
76
- "last_page",
77
- "left_panel_close",
78
- "left_panel_open",
79
- "link_off",
80
- "link",
81
- "linked_services",
82
- "list",
83
- "location_on",
84
- "lock",
85
- "logout",
86
- "mail",
87
- "menu",
88
- "mic",
89
- "more_vert",
90
- "notifications",
91
- "numbers",
92
- "person_add",
93
- "person_off",
94
- "person",
95
- "play_circle",
96
- "progress_activity",
97
- "question_mark",
98
- "radio_button_unchecked",
99
- "refresh",
100
- "remove",
101
- "reply",
102
- "right_panel_close",
103
- "right_panel_open",
104
- "schedule",
105
- "search",
106
- "sell",
107
- "send",
108
- "settings",
109
- "share",
110
- "smart_display",
111
- "star",
112
- "star",
113
- "swap_vert",
114
- "thumb_down",
115
- "thumb_up",
116
- "tune",
117
- "unarchive",
118
- "undo",
119
- "upload",
120
- "verified_user",
121
- "videocam",
122
- "view_list",
123
- "view_module",
124
- "view_object_track",
125
- "visibility_off",
126
- "visibility",
127
- "warning",
128
- "wifi_2_bar",
129
- "wifi_off",
130
- "wifi",
131
- "work",
132
- "workspaces",
133
- "article",
134
- "id_card",
135
- "badge",
136
- "home",
137
- "save",
138
- "code",
139
- "favorite",
140
- "analytics",
141
- "reports",
142
- "event",
143
- "account_circle",
144
- "history",
145
- "security",
146
- "bar_chart",
147
- "category",
148
- "format_underlined",
149
- "format_list_bulleted",
150
- "format_list_numbered",
151
- "redo"
152
- ];
153
-
154
- // src/components/icon.tsx
155
- import { jsx } from "react/jsx-runtime";
156
- function Icon({ className, filled = false, name, ...props }) {
157
- return /* @__PURE__ */ jsx(
158
- "span",
159
- {
160
- ...props,
161
- className: cx(
162
- "material-symbols-outlined",
163
- "text-size-body-lg",
164
- className
165
- ),
166
- style: {
167
- fontVariationSettings: `'FILL' ${filled ? 1 : 0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,
168
- ...props.style
169
- },
170
- children: name
171
- }
172
- );
173
- }
174
- export {
175
- Icon,
176
- icons
177
- };
1
+ export{b as Icon,a as icons}from'../chunk-WV7QV2PU.js';//# sourceMappingURL=icon.js.map
2
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"icon.js"}
@@ -1,179 +1,2 @@
1
- // src/components/list.tsx
2
- import { Slot as Slot2 } from "@radix-ui/react-slot";
3
- import { cx, cva as cva2 } from "@xjur-ui/util";
4
-
5
- // src/components/typography.tsx
6
- import { Slot } from "@radix-ui/react-slot";
7
- import { cva } from "@xjur-ui/util";
8
- import { memo } from "react";
9
- import { jsx } from "react/jsx-runtime";
10
- var typographyVariants = cva("", {
11
- variants: {
12
- variant: {
13
- body: "",
14
- label: "",
15
- title: "",
16
- headline: ""
17
- },
18
- size: {
19
- "sm-2x": "",
20
- "sm-1x": "",
21
- sm: "",
22
- md: "",
23
- lg: ""
24
- },
25
- weight: {
26
- thin: "font-thin",
27
- extraLight: "font-extralight",
28
- light: "font-light",
29
- normal: "font-normal",
30
- medium: "font-medium",
31
- semibold: "font-semibold",
32
- bold: "font-bold",
33
- extraBold: "font-extrabold",
34
- black: "font-black"
35
- }
36
- },
37
- compoundVariants: [
38
- { variant: "body", size: "sm-1x", class: "text-size-body-sm-1x" },
39
- { variant: "body", size: "sm", class: "text-size-body-sm" },
40
- { variant: "body", size: "md", class: "text-size-body-md" },
41
- { variant: "body", size: "lg", class: "text-size-body-lg" },
42
- { variant: "label", size: "sm-2x", class: "text-size-label-sm-2x" },
43
- { variant: "label", size: "sm-1x", class: "text-size-label-sm-1x" },
44
- { variant: "label", size: "sm", class: "text-size-label-sm" },
45
- { variant: "label", size: "md", class: "text-size-label-md" },
46
- { variant: "label", size: "lg", class: "text-size-label-lg" },
47
- { variant: "title", size: "sm", class: "text-size-title-sm" },
48
- { variant: "title", size: "md", class: "text-size-title-md" },
49
- { variant: "title", size: "lg", class: "text-size-title-lg" },
50
- { variant: "headline", size: "sm", class: "text-size-headline-sm" },
51
- { variant: "headline", size: "md", class: "text-size-headline-md" },
52
- { variant: "headline", size: "lg", class: "text-size-headline-lg" }
53
- ],
54
- defaultVariants: {
55
- variant: "body",
56
- size: "md",
57
- weight: "normal"
58
- }
59
- });
60
- var Typography = memo(
61
- ({
62
- variant,
63
- size,
64
- weight,
65
- asChild,
66
- className,
67
- ...props
68
- }) => {
69
- const Component = asChild ? Slot : "span";
70
- return /* @__PURE__ */ jsx(
71
- Component,
72
- {
73
- className: typographyVariants({ variant, size, weight, className }),
74
- ...props
75
- }
76
- );
77
- }
78
- );
79
- Typography.displayName = "Typography";
80
-
81
- // src/components/list.tsx
82
- import { jsx as jsx2 } from "react/jsx-runtime";
83
- function ListRoot({
84
- className,
85
- asChild,
86
- ...props
87
- }) {
88
- const Comp = asChild ? Slot2 : "div";
89
- return /* @__PURE__ */ jsx2(
90
- Comp,
91
- {
92
- ...props,
93
- className: cx(
94
- className,
95
- "rounded-small scrollbar-hide bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-10 max-h-[400px] list-none overflow-y-auto border"
96
- )
97
- }
98
- );
99
- }
100
- function ListHeader({
101
- className,
102
- asChild,
103
- ...props
104
- }) {
105
- const Comp = asChild ? Slot2 : "div";
106
- return /* @__PURE__ */ jsx2(Comp, { ...props, className: cx(className, "px-small pt-small-1x") });
107
- }
108
- function ListHeaderTitle({
109
- variant = "label",
110
- size = "sm",
111
- weight = "medium",
112
- className,
113
- ...props
114
- }) {
115
- return /* @__PURE__ */ jsx2(
116
- Typography,
117
- {
118
- className: cx(className, "text-neutral-placeholder"),
119
- size,
120
- variant,
121
- weight,
122
- ...props
123
- }
124
- );
125
- }
126
- function ListContent({
127
- className,
128
- asChild,
129
- ...props
130
- }) {
131
- const Comp = asChild ? Slot2 : "ul";
132
- return /* @__PURE__ */ jsx2(
133
- Comp,
134
- {
135
- ...props,
136
- className: cx("gap-small-1x p-small flex flex-col", className)
137
- }
138
- );
139
- }
140
- var variants = cva2(
141
- [
142
- "py-medium px-small flex items-center gap-small rounded-small-1x",
143
- "bg-layer-2-idle text-neutral-dark",
144
- "hover:bg-layer-2-hover transition-colors duration-100 ease-out",
145
- "active:bg-layer-2-pressed"
146
- ],
147
- {
148
- variants: {
149
- size: {
150
- md: "h-large-4x",
151
- lg: "h-large-7x"
152
- },
153
- isActive: {
154
- true: "bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"
155
- }
156
- },
157
- defaultVariants: {
158
- size: "md",
159
- isActive: false
160
- }
161
- }
162
- );
163
- function ListItem({
164
- className,
165
- size,
166
- isActive,
167
- asChild,
168
- ...props
169
- }) {
170
- const Comp = asChild ? Slot2 : "li";
171
- return /* @__PURE__ */ jsx2(Comp, { ...props, className: cx(variants({ size, isActive }), className) });
172
- }
173
- export {
174
- ListContent,
175
- ListHeader,
176
- ListHeaderTitle,
177
- ListItem,
178
- ListRoot
179
- };
1
+ export{d as ListContent,b as ListHeader,c as ListHeaderTitle,e as ListItem,a as ListRoot}from'../chunk-KIFR5VIE.js';import'../chunk-EIG6CBTQ.js';//# sourceMappingURL=list.js.map
2
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"list.js"}