@jameskabz/nextcraft-ui 0.6.5 → 0.6.6

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 (357) hide show
  1. package/dist/index.cjs +3448 -103
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +746 -54
  4. package/dist/index.d.ts +746 -54
  5. package/dist/index.js +3388 -50
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -26
  8. package/dist/components/craft-alert.cjs +0 -69
  9. package/dist/components/craft-alert.cjs.map +0 -1
  10. package/dist/components/craft-alert.d.cts +0 -16
  11. package/dist/components/craft-alert.d.ts +0 -16
  12. package/dist/components/craft-alert.js +0 -45
  13. package/dist/components/craft-alert.js.map +0 -1
  14. package/dist/components/craft-badge.cjs +0 -54
  15. package/dist/components/craft-badge.cjs.map +0 -1
  16. package/dist/components/craft-badge.d.cts +0 -12
  17. package/dist/components/craft-badge.d.ts +0 -12
  18. package/dist/components/craft-badge.js +0 -30
  19. package/dist/components/craft-badge.js.map +0 -1
  20. package/dist/components/craft-button.cjs +0 -66
  21. package/dist/components/craft-button.cjs.map +0 -1
  22. package/dist/components/craft-button.d.cts +0 -15
  23. package/dist/components/craft-button.d.ts +0 -15
  24. package/dist/components/craft-button.js +0 -42
  25. package/dist/components/craft-button.js.map +0 -1
  26. package/dist/components/craft-card.cjs +0 -63
  27. package/dist/components/craft-card.cjs.map +0 -1
  28. package/dist/components/craft-card.d.cts +0 -13
  29. package/dist/components/craft-card.d.ts +0 -13
  30. package/dist/components/craft-card.js +0 -39
  31. package/dist/components/craft-card.js.map +0 -1
  32. package/dist/components/craft-checkbox.cjs +0 -103
  33. package/dist/components/craft-checkbox.cjs.map +0 -1
  34. package/dist/components/craft-checkbox.d.cts +0 -16
  35. package/dist/components/craft-checkbox.d.ts +0 -16
  36. package/dist/components/craft-checkbox.js +0 -69
  37. package/dist/components/craft-checkbox.js.map +0 -1
  38. package/dist/components/craft-command-palette.cjs +0 -134
  39. package/dist/components/craft-command-palette.cjs.map +0 -1
  40. package/dist/components/craft-command-palette.d.cts +0 -28
  41. package/dist/components/craft-command-palette.d.ts +0 -28
  42. package/dist/components/craft-command-palette.js +0 -100
  43. package/dist/components/craft-command-palette.js.map +0 -1
  44. package/dist/components/craft-confirm-dialog.cjs +0 -114
  45. package/dist/components/craft-confirm-dialog.cjs.map +0 -1
  46. package/dist/components/craft-confirm-dialog.d.cts +0 -21
  47. package/dist/components/craft-confirm-dialog.d.ts +0 -21
  48. package/dist/components/craft-confirm-dialog.js +0 -80
  49. package/dist/components/craft-confirm-dialog.js.map +0 -1
  50. package/dist/components/craft-create-edit-drawer.cjs +0 -112
  51. package/dist/components/craft-create-edit-drawer.cjs.map +0 -1
  52. package/dist/components/craft-create-edit-drawer.d.cts +0 -28
  53. package/dist/components/craft-create-edit-drawer.d.ts +0 -28
  54. package/dist/components/craft-create-edit-drawer.js +0 -78
  55. package/dist/components/craft-create-edit-drawer.js.map +0 -1
  56. package/dist/components/craft-currency-input.cjs +0 -68
  57. package/dist/components/craft-currency-input.cjs.map +0 -1
  58. package/dist/components/craft-currency-input.d.cts +0 -14
  59. package/dist/components/craft-currency-input.d.ts +0 -14
  60. package/dist/components/craft-currency-input.js +0 -34
  61. package/dist/components/craft-currency-input.js.map +0 -1
  62. package/dist/components/craft-data-table.cjs +0 -407
  63. package/dist/components/craft-data-table.cjs.map +0 -1
  64. package/dist/components/craft-data-table.d.cts +0 -58
  65. package/dist/components/craft-data-table.d.ts +0 -58
  66. package/dist/components/craft-data-table.js +0 -373
  67. package/dist/components/craft-data-table.js.map +0 -1
  68. package/dist/components/craft-date-picker.cjs +0 -226
  69. package/dist/components/craft-date-picker.cjs.map +0 -1
  70. package/dist/components/craft-date-picker.d.cts +0 -17
  71. package/dist/components/craft-date-picker.d.ts +0 -17
  72. package/dist/components/craft-date-picker.js +0 -192
  73. package/dist/components/craft-date-picker.js.map +0 -1
  74. package/dist/components/craft-drawer.cjs +0 -126
  75. package/dist/components/craft-drawer.cjs.map +0 -1
  76. package/dist/components/craft-drawer.d.cts +0 -19
  77. package/dist/components/craft-drawer.d.ts +0 -19
  78. package/dist/components/craft-drawer.js +0 -92
  79. package/dist/components/craft-drawer.js.map +0 -1
  80. package/dist/components/craft-dropdown-menu.cjs +0 -127
  81. package/dist/components/craft-dropdown-menu.cjs.map +0 -1
  82. package/dist/components/craft-dropdown-menu.d.cts +0 -28
  83. package/dist/components/craft-dropdown-menu.d.ts +0 -28
  84. package/dist/components/craft-dropdown-menu.js +0 -93
  85. package/dist/components/craft-dropdown-menu.js.map +0 -1
  86. package/dist/components/craft-empty-state.cjs +0 -58
  87. package/dist/components/craft-empty-state.cjs.map +0 -1
  88. package/dist/components/craft-empty-state.d.cts +0 -14
  89. package/dist/components/craft-empty-state.d.ts +0 -14
  90. package/dist/components/craft-empty-state.js +0 -34
  91. package/dist/components/craft-empty-state.js.map +0 -1
  92. package/dist/components/craft-error-state.cjs +0 -60
  93. package/dist/components/craft-error-state.cjs.map +0 -1
  94. package/dist/components/craft-error-state.d.cts +0 -15
  95. package/dist/components/craft-error-state.d.ts +0 -15
  96. package/dist/components/craft-error-state.js +0 -36
  97. package/dist/components/craft-error-state.js.map +0 -1
  98. package/dist/components/craft-filter-bar.cjs +0 -76
  99. package/dist/components/craft-filter-bar.cjs.map +0 -1
  100. package/dist/components/craft-filter-bar.d.cts +0 -18
  101. package/dist/components/craft-filter-bar.d.ts +0 -18
  102. package/dist/components/craft-filter-bar.js +0 -52
  103. package/dist/components/craft-filter-bar.js.map +0 -1
  104. package/dist/components/craft-form-builder.cjs +0 -330
  105. package/dist/components/craft-form-builder.cjs.map +0 -1
  106. package/dist/components/craft-form-builder.d.cts +0 -57
  107. package/dist/components/craft-form-builder.d.ts +0 -57
  108. package/dist/components/craft-form-builder.js +0 -301
  109. package/dist/components/craft-form-builder.js.map +0 -1
  110. package/dist/components/craft-form-field.cjs +0 -301
  111. package/dist/components/craft-form-field.cjs.map +0 -1
  112. package/dist/components/craft-form-field.d.cts +0 -30
  113. package/dist/components/craft-form-field.d.ts +0 -30
  114. package/dist/components/craft-form-field.js +0 -280
  115. package/dist/components/craft-form-field.js.map +0 -1
  116. package/dist/components/craft-form.cjs +0 -114
  117. package/dist/components/craft-form.cjs.map +0 -1
  118. package/dist/components/craft-form.d.cts +0 -27
  119. package/dist/components/craft-form.d.ts +0 -27
  120. package/dist/components/craft-form.js +0 -80
  121. package/dist/components/craft-form.js.map +0 -1
  122. package/dist/components/craft-icon.cjs +0 -102
  123. package/dist/components/craft-icon.cjs.map +0 -1
  124. package/dist/components/craft-icon.d.cts +0 -19
  125. package/dist/components/craft-icon.d.ts +0 -19
  126. package/dist/components/craft-icon.js +0 -67
  127. package/dist/components/craft-icon.js.map +0 -1
  128. package/dist/components/craft-input.cjs +0 -78
  129. package/dist/components/craft-input.cjs.map +0 -1
  130. package/dist/components/craft-input.d.cts +0 -19
  131. package/dist/components/craft-input.d.ts +0 -19
  132. package/dist/components/craft-input.js +0 -44
  133. package/dist/components/craft-input.js.map +0 -1
  134. package/dist/components/craft-link.cjs +0 -70
  135. package/dist/components/craft-link.cjs.map +0 -1
  136. package/dist/components/craft-link.d.cts +0 -14
  137. package/dist/components/craft-link.d.ts +0 -14
  138. package/dist/components/craft-link.js +0 -36
  139. package/dist/components/craft-link.js.map +0 -1
  140. package/dist/components/craft-loading-state.cjs +0 -64
  141. package/dist/components/craft-loading-state.cjs.map +0 -1
  142. package/dist/components/craft-loading-state.d.cts +0 -13
  143. package/dist/components/craft-loading-state.d.ts +0 -13
  144. package/dist/components/craft-loading-state.js +0 -40
  145. package/dist/components/craft-loading-state.js.map +0 -1
  146. package/dist/components/craft-modal.cjs +0 -174
  147. package/dist/components/craft-modal.cjs.map +0 -1
  148. package/dist/components/craft-modal.d.cts +0 -19
  149. package/dist/components/craft-modal.d.ts +0 -19
  150. package/dist/components/craft-modal.js +0 -140
  151. package/dist/components/craft-modal.js.map +0 -1
  152. package/dist/components/craft-number-input.cjs +0 -63
  153. package/dist/components/craft-number-input.cjs.map +0 -1
  154. package/dist/components/craft-number-input.d.cts +0 -12
  155. package/dist/components/craft-number-input.d.ts +0 -12
  156. package/dist/components/craft-number-input.js +0 -29
  157. package/dist/components/craft-number-input.js.map +0 -1
  158. package/dist/components/craft-pagination.cjs +0 -130
  159. package/dist/components/craft-pagination.cjs.map +0 -1
  160. package/dist/components/craft-pagination.d.cts +0 -19
  161. package/dist/components/craft-pagination.d.ts +0 -19
  162. package/dist/components/craft-pagination.js +0 -106
  163. package/dist/components/craft-pagination.js.map +0 -1
  164. package/dist/components/craft-popover.cjs +0 -123
  165. package/dist/components/craft-popover.cjs.map +0 -1
  166. package/dist/components/craft-popover.d.cts +0 -20
  167. package/dist/components/craft-popover.d.ts +0 -20
  168. package/dist/components/craft-popover.js +0 -89
  169. package/dist/components/craft-popover.js.map +0 -1
  170. package/dist/components/craft-select.cjs +0 -84
  171. package/dist/components/craft-select.cjs.map +0 -1
  172. package/dist/components/craft-select.d.cts +0 -12
  173. package/dist/components/craft-select.d.ts +0 -12
  174. package/dist/components/craft-select.js +0 -50
  175. package/dist/components/craft-select.js.map +0 -1
  176. package/dist/components/craft-skeleton.cjs +0 -45
  177. package/dist/components/craft-skeleton.cjs.map +0 -1
  178. package/dist/components/craft-skeleton.d.cts +0 -10
  179. package/dist/components/craft-skeleton.d.ts +0 -10
  180. package/dist/components/craft-skeleton.js +0 -21
  181. package/dist/components/craft-skeleton.js.map +0 -1
  182. package/dist/components/craft-stat-card.cjs +0 -67
  183. package/dist/components/craft-stat-card.cjs.map +0 -1
  184. package/dist/components/craft-stat-card.d.cts +0 -17
  185. package/dist/components/craft-stat-card.d.ts +0 -17
  186. package/dist/components/craft-stat-card.js +0 -43
  187. package/dist/components/craft-stat-card.js.map +0 -1
  188. package/dist/components/craft-submit-button.cjs +0 -71
  189. package/dist/components/craft-submit-button.cjs.map +0 -1
  190. package/dist/components/craft-submit-button.d.cts +0 -13
  191. package/dist/components/craft-submit-button.d.ts +0 -13
  192. package/dist/components/craft-submit-button.js +0 -47
  193. package/dist/components/craft-submit-button.js.map +0 -1
  194. package/dist/components/craft-switch.cjs +0 -82
  195. package/dist/components/craft-switch.cjs.map +0 -1
  196. package/dist/components/craft-switch.d.cts +0 -14
  197. package/dist/components/craft-switch.d.ts +0 -14
  198. package/dist/components/craft-switch.js +0 -48
  199. package/dist/components/craft-switch.js.map +0 -1
  200. package/dist/components/craft-table-toolbar.cjs +0 -79
  201. package/dist/components/craft-table-toolbar.cjs.map +0 -1
  202. package/dist/components/craft-table-toolbar.d.cts +0 -19
  203. package/dist/components/craft-table-toolbar.d.ts +0 -19
  204. package/dist/components/craft-table-toolbar.js +0 -55
  205. package/dist/components/craft-table-toolbar.js.map +0 -1
  206. package/dist/components/craft-tabs.cjs +0 -105
  207. package/dist/components/craft-tabs.cjs.map +0 -1
  208. package/dist/components/craft-tabs.d.cts +0 -19
  209. package/dist/components/craft-tabs.d.ts +0 -19
  210. package/dist/components/craft-tabs.js +0 -71
  211. package/dist/components/craft-tabs.js.map +0 -1
  212. package/dist/components/craft-textarea.cjs +0 -69
  213. package/dist/components/craft-textarea.cjs.map +0 -1
  214. package/dist/components/craft-textarea.d.cts +0 -12
  215. package/dist/components/craft-textarea.d.ts +0 -12
  216. package/dist/components/craft-textarea.js +0 -35
  217. package/dist/components/craft-textarea.js.map +0 -1
  218. package/dist/components/craft-toast.cjs +0 -98
  219. package/dist/components/craft-toast.cjs.map +0 -1
  220. package/dist/components/craft-toast.d.cts +0 -24
  221. package/dist/components/craft-toast.d.ts +0 -24
  222. package/dist/components/craft-toast.js +0 -63
  223. package/dist/components/craft-toast.js.map +0 -1
  224. package/dist/components/craft-tooltip.cjs +0 -75
  225. package/dist/components/craft-tooltip.cjs.map +0 -1
  226. package/dist/components/craft-tooltip.d.cts +0 -13
  227. package/dist/components/craft-tooltip.d.ts +0 -13
  228. package/dist/components/craft-tooltip.js +0 -41
  229. package/dist/components/craft-tooltip.js.map +0 -1
  230. package/dist/components/forms/types.cjs +0 -17
  231. package/dist/components/forms/types.cjs.map +0 -1
  232. package/dist/components/forms/types.d.cts +0 -7
  233. package/dist/components/forms/types.d.ts +0 -7
  234. package/dist/components/forms/types.js +0 -1
  235. package/dist/components/forms/types.js.map +0 -1
  236. package/dist/components/glass-card.cjs +0 -64
  237. package/dist/components/glass-card.cjs.map +0 -1
  238. package/dist/components/glass-card.d.cts +0 -12
  239. package/dist/components/glass-card.d.ts +0 -12
  240. package/dist/components/glass-card.js +0 -40
  241. package/dist/components/glass-card.js.map +0 -1
  242. package/dist/components/layout/app-shell.cjs +0 -49
  243. package/dist/components/layout/app-shell.cjs.map +0 -1
  244. package/dist/components/layout/app-shell.d.cts +0 -10
  245. package/dist/components/layout/app-shell.d.ts +0 -10
  246. package/dist/components/layout/app-shell.js +0 -25
  247. package/dist/components/layout/app-shell.js.map +0 -1
  248. package/dist/components/layout/app-template.cjs +0 -104
  249. package/dist/components/layout/app-template.cjs.map +0 -1
  250. package/dist/components/layout/app-template.d.cts +0 -19
  251. package/dist/components/layout/app-template.d.ts +0 -19
  252. package/dist/components/layout/app-template.js +0 -70
  253. package/dist/components/layout/app-template.js.map +0 -1
  254. package/dist/components/layout/auth-layout.cjs +0 -65
  255. package/dist/components/layout/auth-layout.cjs.map +0 -1
  256. package/dist/components/layout/auth-layout.d.cts +0 -12
  257. package/dist/components/layout/auth-layout.d.ts +0 -12
  258. package/dist/components/layout/auth-layout.js +0 -41
  259. package/dist/components/layout/auth-layout.js.map +0 -1
  260. package/dist/components/layout/breadcrumbs.cjs +0 -39
  261. package/dist/components/layout/breadcrumbs.cjs.map +0 -1
  262. package/dist/components/layout/breadcrumbs.d.cts +0 -13
  263. package/dist/components/layout/breadcrumbs.d.ts +0 -13
  264. package/dist/components/layout/breadcrumbs.js +0 -15
  265. package/dist/components/layout/breadcrumbs.js.map +0 -1
  266. package/dist/components/layout/container.cjs +0 -45
  267. package/dist/components/layout/container.cjs.map +0 -1
  268. package/dist/components/layout/container.d.cts +0 -9
  269. package/dist/components/layout/container.d.ts +0 -9
  270. package/dist/components/layout/container.js +0 -21
  271. package/dist/components/layout/container.js.map +0 -1
  272. package/dist/components/layout/grid.cjs +0 -47
  273. package/dist/components/layout/grid.cjs.map +0 -1
  274. package/dist/components/layout/grid.d.cts +0 -10
  275. package/dist/components/layout/grid.d.ts +0 -10
  276. package/dist/components/layout/grid.js +0 -23
  277. package/dist/components/layout/grid.js.map +0 -1
  278. package/dist/components/layout/layout-config.cjs +0 -78
  279. package/dist/components/layout/layout-config.cjs.map +0 -1
  280. package/dist/components/layout/layout-config.d.cts +0 -92
  281. package/dist/components/layout/layout-config.d.ts +0 -92
  282. package/dist/components/layout/layout-config.js +0 -54
  283. package/dist/components/layout/layout-config.js.map +0 -1
  284. package/dist/components/layout/page-header.cjs +0 -52
  285. package/dist/components/layout/page-header.cjs.map +0 -1
  286. package/dist/components/layout/page-header.d.cts +0 -11
  287. package/dist/components/layout/page-header.d.ts +0 -11
  288. package/dist/components/layout/page-header.js +0 -28
  289. package/dist/components/layout/page-header.js.map +0 -1
  290. package/dist/components/layout/sidebar.cjs +0 -64
  291. package/dist/components/layout/sidebar.cjs.map +0 -1
  292. package/dist/components/layout/sidebar.d.cts +0 -17
  293. package/dist/components/layout/sidebar.d.ts +0 -17
  294. package/dist/components/layout/sidebar.js +0 -40
  295. package/dist/components/layout/sidebar.js.map +0 -1
  296. package/dist/components/layout/top-nav.cjs +0 -49
  297. package/dist/components/layout/top-nav.cjs.map +0 -1
  298. package/dist/components/layout/top-nav.d.cts +0 -11
  299. package/dist/components/layout/top-nav.d.ts +0 -11
  300. package/dist/components/layout/top-nav.js +0 -25
  301. package/dist/components/layout/top-nav.js.map +0 -1
  302. package/dist/components/layout/types.cjs +0 -29
  303. package/dist/components/layout/types.cjs.map +0 -1
  304. package/dist/components/layout/types.d.cts +0 -12
  305. package/dist/components/layout/types.d.ts +0 -12
  306. package/dist/components/layout/types.js +0 -5
  307. package/dist/components/layout/types.js.map +0 -1
  308. package/dist/components/table/types.cjs +0 -17
  309. package/dist/components/table/types.cjs.map +0 -1
  310. package/dist/components/table/types.d.cts +0 -7
  311. package/dist/components/table/types.d.ts +0 -7
  312. package/dist/components/table/types.js +0 -1
  313. package/dist/components/table/types.js.map +0 -1
  314. package/dist/components/theme-switcher.cjs +0 -72
  315. package/dist/components/theme-switcher.cjs.map +0 -1
  316. package/dist/components/theme-switcher.d.cts +0 -9
  317. package/dist/components/theme-switcher.d.ts +0 -9
  318. package/dist/components/theme-switcher.js +0 -48
  319. package/dist/components/theme-switcher.js.map +0 -1
  320. package/dist/craft/components.cjs +0 -123
  321. package/dist/craft/components.cjs.map +0 -1
  322. package/dist/craft/components.d.cts +0 -36
  323. package/dist/craft/components.d.ts +0 -36
  324. package/dist/craft/components.js +0 -67
  325. package/dist/craft/components.js.map +0 -1
  326. package/dist/craft/forms.cjs +0 -35
  327. package/dist/craft/forms.cjs.map +0 -1
  328. package/dist/craft/forms.d.cts +0 -7
  329. package/dist/craft/forms.d.ts +0 -7
  330. package/dist/craft/forms.js +0 -9
  331. package/dist/craft/forms.js.map +0 -1
  332. package/dist/craft/layout.cjs +0 -56
  333. package/dist/craft/layout.cjs.map +0 -1
  334. package/dist/craft/layout.d.cts +0 -12
  335. package/dist/craft/layout.d.ts +0 -12
  336. package/dist/craft/layout.js +0 -23
  337. package/dist/craft/layout.js.map +0 -1
  338. package/dist/craft/table.cjs +0 -38
  339. package/dist/craft/table.cjs.map +0 -1
  340. package/dist/craft/table.d.cts +0 -7
  341. package/dist/craft/table.d.ts +0 -7
  342. package/dist/craft/table.js +0 -11
  343. package/dist/craft/table.js.map +0 -1
  344. package/dist/craft/theme.cjs +0 -34
  345. package/dist/craft/theme.cjs.map +0 -1
  346. package/dist/craft/theme.d.cts +0 -4
  347. package/dist/craft/theme.d.ts +0 -4
  348. package/dist/craft/theme.js +0 -8
  349. package/dist/craft/theme.js.map +0 -1
  350. package/dist/theme-context-EVI9PfKv.d.cts +0 -22
  351. package/dist/theme-context-EVI9PfKv.d.ts +0 -22
  352. package/dist/utils/cn.cjs +0 -31
  353. package/dist/utils/cn.cjs.map +0 -1
  354. package/dist/utils/cn.d.cts +0 -3
  355. package/dist/utils/cn.d.ts +0 -3
  356. package/dist/utils/cn.js +0 -7
  357. package/dist/utils/cn.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/auth-layout.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type AuthLayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n graphic?: React.ReactNode;\n};\n\nexport function AuthLayout({\n className,\n title,\n description,\n footer,\n graphic,\n children,\n ...props\n}: AuthLayoutProps) {\n return (\n <div\n className={cn(\n \"grid min-h-screen grid-cols-1 bg-background\",\n \"lg:grid-cols-[1.1fr_0.9fr]\",\n className\n )}\n {...props}\n >\n <div className=\"flex flex-col justify-center px-6 py-16 sm:px-12\">\n <div className=\"mx-auto w-full max-w-md space-y-6\">\n {(title || description) && (\n <div className=\"space-y-2\">\n {title && <h1 className=\"text-3xl font-bold text-[rgb(var(--nc-fg))]\">{title}</h1>}\n {description && <p className=\"text-[rgb(var(--nc-fg-muted))]\">{description}</p>}\n </div>\n )}\n {children}\n {footer && <div className=\"text-sm text-[rgb(var(--nc-fg-muted))]\">{footer}</div>}\n </div>\n </div>\n <div className=\"hidden items-center justify-center border-l border-[rgb(var(--nc-border)/0.3)] bg-[rgb(var(--nc-surface)/0.08)] p-12 text-[rgb(var(--nc-fg))] lg:flex\">\n {graphic ?? (\n <div className=\"max-w-sm space-y-4 text-center\">\n <h2 className=\"text-2xl font-semibold\">Crafted experiences</h2>\n <p className=\"text-[rgb(var(--nc-fg-muted))]\">\n Build authentication flows that feel premium and cohesive.\n </p>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":"AAgCY,SACY,KADZ;AA9BZ,SAAS,UAAU;AASZ,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,4BAAC,SAAI,WAAU,oDACb,+BAAC,SAAI,WAAU,qCACX;AAAA,oBAAS,gBACT,qBAAC,SAAI,WAAU,aACZ;AAAA,qBAAS,oBAAC,QAAG,WAAU,+CAA+C,iBAAM;AAAA,YAC5E,eAAe,oBAAC,OAAE,WAAU,kCAAkC,uBAAY;AAAA,aAC7E;AAAA,UAED;AAAA,UACA,UAAU,oBAAC,SAAI,WAAU,0CAA0C,kBAAO;AAAA,WAC7E,GACF;AAAA,QACA,oBAAC,SAAI,WAAU,yJACZ,sCACC,qBAAC,SAAI,WAAU,kCACb;AAAA,8BAAC,QAAG,WAAU,0BAAyB,iCAAmB;AAAA,UAC1D,oBAAC,OAAE,WAAU,kCAAiC,wEAE9C;AAAA,WACF,GAEJ;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var breadcrumbs_exports = {};
20
- __export(breadcrumbs_exports, {
21
- Breadcrumbs: () => Breadcrumbs
22
- });
23
- module.exports = __toCommonJS(breadcrumbs_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
26
- function Breadcrumbs({ className, items, ...props }) {
27
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { className: (0, import_cn.cn)("flex items-center text-sm text-[rgb(var(--nc-fg-muted))]", className), ...props, children: items.map((item, index) => {
28
- const content = item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: item.href, className: "transition hover:text-[rgb(var(--nc-fg))]", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-[rgb(var(--nc-fg))]", children: item.label });
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center", children: [
30
- content,
31
- index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "mx-2 text-[rgb(var(--nc-fg-soft))]", children: "/" })
32
- ] }, `${item.label}-${index}`);
33
- }) });
34
- }
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- Breadcrumbs
38
- });
39
- //# sourceMappingURL=breadcrumbs.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/breadcrumbs.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type BreadcrumbItem = {\n label: React.ReactNode;\n href?: string;\n};\n\nexport type BreadcrumbsProps = React.HTMLAttributes<HTMLElement> & {\n items: BreadcrumbItem[];\n};\n\nexport function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps) {\n return (\n <nav className={cn(\"flex items-center text-sm text-[rgb(var(--nc-fg-muted))]\", className)} {...props}>\n {items.map((item, index) => {\n const content = item.href ? (\n <a href={item.href} className=\"transition hover:text-[rgb(var(--nc-fg))]\">\n {item.label}\n </a>\n ) : (\n <span className=\"text-[rgb(var(--nc-fg))]\">{item.label}</span>\n );\n\n return (\n <span key={`${item.label}-${index}`} className=\"flex items-center\">\n {content}\n {index < items.length - 1 && (\n <span className=\"mx-2 text-[rgb(var(--nc-fg-soft))]\">/</span>\n )}\n </span>\n );\n })}\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBU;AAhBV,gBAAmB;AAWZ,SAAS,YAAY,EAAE,WAAW,OAAO,GAAG,MAAM,GAAqB;AAC5E,SACE,4CAAC,SAAI,eAAW,cAAG,4DAA4D,SAAS,GAAI,GAAG,OAC5F,gBAAM,IAAI,CAAC,MAAM,UAAU;AAC1B,UAAM,UAAU,KAAK,OACnB,4CAAC,OAAE,MAAM,KAAK,MAAM,WAAU,6CAC3B,eAAK,OACR,IAEA,4CAAC,UAAK,WAAU,4BAA4B,eAAK,OAAM;AAGzD,WACE,6CAAC,UAAoC,WAAU,qBAC5C;AAAA;AAAA,MACA,QAAQ,MAAM,SAAS,KACtB,4CAAC,UAAK,WAAU,sCAAqC,eAAC;AAAA,SAH/C,GAAG,KAAK,KAAK,IAAI,KAAK,EAKjC;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":[]}
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type BreadcrumbItem = {
5
- label: React.ReactNode;
6
- href?: string;
7
- };
8
- type BreadcrumbsProps = React.HTMLAttributes<HTMLElement> & {
9
- items: BreadcrumbItem[];
10
- };
11
- declare function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
12
-
13
- export { type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps };
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type BreadcrumbItem = {
5
- label: React.ReactNode;
6
- href?: string;
7
- };
8
- type BreadcrumbsProps = React.HTMLAttributes<HTMLElement> & {
9
- items: BreadcrumbItem[];
10
- };
11
- declare function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
12
-
13
- export { type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps };
@@ -1,15 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
3
- function Breadcrumbs({ className, items, ...props }) {
4
- return /* @__PURE__ */ jsx("nav", { className: cn("flex items-center text-sm text-[rgb(var(--nc-fg-muted))]", className), ...props, children: items.map((item, index) => {
5
- const content = item.href ? /* @__PURE__ */ jsx("a", { href: item.href, className: "transition hover:text-[rgb(var(--nc-fg))]", children: item.label }) : /* @__PURE__ */ jsx("span", { className: "text-[rgb(var(--nc-fg))]", children: item.label });
6
- return /* @__PURE__ */ jsxs("span", { className: "flex items-center", children: [
7
- content,
8
- index < items.length - 1 && /* @__PURE__ */ jsx("span", { className: "mx-2 text-[rgb(var(--nc-fg-soft))]", children: "/" })
9
- ] }, `${item.label}-${index}`);
10
- }) });
11
- }
12
- export {
13
- Breadcrumbs
14
- };
15
- //# sourceMappingURL=breadcrumbs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/breadcrumbs.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type BreadcrumbItem = {\n label: React.ReactNode;\n href?: string;\n};\n\nexport type BreadcrumbsProps = React.HTMLAttributes<HTMLElement> & {\n items: BreadcrumbItem[];\n};\n\nexport function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps) {\n return (\n <nav className={cn(\"flex items-center text-sm text-[rgb(var(--nc-fg-muted))]\", className)} {...props}>\n {items.map((item, index) => {\n const content = item.href ? (\n <a href={item.href} className=\"transition hover:text-[rgb(var(--nc-fg))]\">\n {item.label}\n </a>\n ) : (\n <span className=\"text-[rgb(var(--nc-fg))]\">{item.label}</span>\n );\n\n return (\n <span key={`${item.label}-${index}`} className=\"flex items-center\">\n {content}\n {index < items.length - 1 && (\n <span className=\"mx-2 text-[rgb(var(--nc-fg-soft))]\">/</span>\n )}\n </span>\n );\n })}\n </nav>\n );\n}\n"],"mappings":"AAkBU,cAQA,YARA;AAhBV,SAAS,UAAU;AAWZ,SAAS,YAAY,EAAE,WAAW,OAAO,GAAG,MAAM,GAAqB;AAC5E,SACE,oBAAC,SAAI,WAAW,GAAG,4DAA4D,SAAS,GAAI,GAAG,OAC5F,gBAAM,IAAI,CAAC,MAAM,UAAU;AAC1B,UAAM,UAAU,KAAK,OACnB,oBAAC,OAAE,MAAM,KAAK,MAAM,WAAU,6CAC3B,eAAK,OACR,IAEA,oBAAC,UAAK,WAAU,4BAA4B,eAAK,OAAM;AAGzD,WACE,qBAAC,UAAoC,WAAU,qBAC5C;AAAA;AAAA,MACA,QAAQ,MAAM,SAAS,KACtB,oBAAC,UAAK,WAAU,sCAAqC,eAAC;AAAA,SAH/C,GAAG,KAAK,KAAK,IAAI,KAAK,EAKjC;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":[]}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var container_exports = {};
20
- __export(container_exports, {
21
- Container: () => Container
22
- });
23
- module.exports = __toCommonJS(container_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
26
- const sizeClasses = {
27
- sm: "max-w-3xl",
28
- md: "max-w-5xl",
29
- lg: "max-w-6xl",
30
- xl: "max-w-7xl"
31
- };
32
- function Container({ className, size = "lg", ...props }) {
33
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
34
- "div",
35
- {
36
- className: (0, import_cn.cn)("mx-auto w-full px-4 sm:px-6 lg:px-8", sizeClasses[size], className),
37
- ...props
38
- }
39
- );
40
- }
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- Container
44
- });
45
- //# sourceMappingURL=container.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/container.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n};\n\nconst sizeClasses: Record<NonNullable<ContainerProps[\"size\"]>, string> = {\n sm: \"max-w-3xl\",\n md: \"max-w-5xl\",\n lg: \"max-w-6xl\",\n xl: \"max-w-7xl\",\n};\n\nexport function Container({ className, size = \"lg\", ...props }: ContainerProps) {\n return (\n <div\n className={cn(\"mx-auto w-full px-4 sm:px-6 lg:px-8\", sizeClasses[size], className)}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBI;AAfJ,gBAAmB;AAMnB,MAAM,cAAmE;AAAA,EACvE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,UAAU,EAAE,WAAW,OAAO,MAAM,GAAG,MAAM,GAAmB;AAC9E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW,cAAG,uCAAuC,YAAY,IAAI,GAAG,SAAS;AAAA,MAChF,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,9 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {
5
- size?: "sm" | "md" | "lg" | "xl";
6
- };
7
- declare function Container({ className, size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
8
-
9
- export { Container, type ContainerProps };
@@ -1,9 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {
5
- size?: "sm" | "md" | "lg" | "xl";
6
- };
7
- declare function Container({ className, size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
8
-
9
- export { Container, type ContainerProps };
@@ -1,21 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
3
- const sizeClasses = {
4
- sm: "max-w-3xl",
5
- md: "max-w-5xl",
6
- lg: "max-w-6xl",
7
- xl: "max-w-7xl"
8
- };
9
- function Container({ className, size = "lg", ...props }) {
10
- return /* @__PURE__ */ jsx(
11
- "div",
12
- {
13
- className: cn("mx-auto w-full px-4 sm:px-6 lg:px-8", sizeClasses[size], className),
14
- ...props
15
- }
16
- );
17
- }
18
- export {
19
- Container
20
- };
21
- //# sourceMappingURL=container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/container.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n};\n\nconst sizeClasses: Record<NonNullable<ContainerProps[\"size\"]>, string> = {\n sm: \"max-w-3xl\",\n md: \"max-w-5xl\",\n lg: \"max-w-6xl\",\n xl: \"max-w-7xl\",\n};\n\nexport function Container({ className, size = \"lg\", ...props }: ContainerProps) {\n return (\n <div\n className={cn(\"mx-auto w-full px-4 sm:px-6 lg:px-8\", sizeClasses[size], className)}\n {...props}\n />\n );\n}\n"],"mappings":"AAiBI;AAfJ,SAAS,UAAU;AAMnB,MAAM,cAAmE;AAAA,EACvE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,UAAU,EAAE,WAAW,OAAO,MAAM,GAAG,MAAM,GAAmB;AAC9E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,uCAAuC,YAAY,IAAI,GAAG,SAAS;AAAA,MAChF,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var grid_exports = {};
20
- __export(grid_exports, {
21
- Grid: () => Grid
22
- });
23
- module.exports = __toCommonJS(grid_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
- var import_cn = require("@/utils/cn");
26
- const colClasses = {
27
- 1: "grid-cols-1",
28
- 2: "grid-cols-1 md:grid-cols-2",
29
- 3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
30
- 4: "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
31
- 5: "grid-cols-1 md:grid-cols-2 lg:grid-cols-5",
32
- 6: "grid-cols-1 md:grid-cols-3 lg:grid-cols-6"
33
- };
34
- const gapClasses = {
35
- sm: "gap-4",
36
- md: "gap-6",
37
- lg: "gap-8",
38
- xl: "gap-10"
39
- };
40
- function Grid({ className, columns = 3, gap = "md", ...props }) {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("grid", colClasses[columns], gapClasses[gap], className), ...props });
42
- }
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- Grid
46
- });
47
- //# sourceMappingURL=grid.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/grid.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type GridProps = React.HTMLAttributes<HTMLDivElement> & {\n columns?: 1 | 2 | 3 | 4 | 5 | 6;\n gap?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n};\n\nconst colClasses: Record<NonNullable<GridProps[\"columns\"]>, string> = {\n 1: \"grid-cols-1\",\n 2: \"grid-cols-1 md:grid-cols-2\",\n 3: \"grid-cols-1 md:grid-cols-2 lg:grid-cols-3\",\n 4: \"grid-cols-1 md:grid-cols-2 lg:grid-cols-4\",\n 5: \"grid-cols-1 md:grid-cols-2 lg:grid-cols-5\",\n 6: \"grid-cols-1 md:grid-cols-3 lg:grid-cols-6\",\n};\n\nconst gapClasses: Record<NonNullable<GridProps[\"gap\"]>, string> = {\n sm: \"gap-4\",\n md: \"gap-6\",\n lg: \"gap-8\",\n xl: \"gap-10\",\n};\n\nexport function Grid({ className, columns = 3, gap = \"md\", ...props }: GridProps) {\n return (\n <div className={cn(\"grid\", colClasses[columns], gapClasses[gap], className)} {...props} />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BI;AAzBJ,gBAAmB;AAOnB,MAAM,aAAgE;AAAA,EACpE,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,aAA4D;AAAA,EAChE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,KAAK,EAAE,WAAW,UAAU,GAAG,MAAM,MAAM,GAAG,MAAM,GAAc;AAChF,SACE,4CAAC,SAAI,eAAW,cAAG,QAAQ,WAAW,OAAO,GAAG,WAAW,GAAG,GAAG,SAAS,GAAI,GAAG,OAAO;AAE5F;","names":[]}
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type GridProps = React.HTMLAttributes<HTMLDivElement> & {
5
- columns?: 1 | 2 | 3 | 4 | 5 | 6;
6
- gap?: "sm" | "md" | "lg" | "xl";
7
- };
8
- declare function Grid({ className, columns, gap, ...props }: GridProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { Grid, type GridProps };
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- type GridProps = React.HTMLAttributes<HTMLDivElement> & {
5
- columns?: 1 | 2 | 3 | 4 | 5 | 6;
6
- gap?: "sm" | "md" | "lg" | "xl";
7
- };
8
- declare function Grid({ className, columns, gap, ...props }: GridProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { Grid, type GridProps };
@@ -1,23 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { cn } from "@/utils/cn";
3
- const colClasses = {
4
- 1: "grid-cols-1",
5
- 2: "grid-cols-1 md:grid-cols-2",
6
- 3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
7
- 4: "grid-cols-1 md:grid-cols-2 lg:grid-cols-4",
8
- 5: "grid-cols-1 md:grid-cols-2 lg:grid-cols-5",
9
- 6: "grid-cols-1 md:grid-cols-3 lg:grid-cols-6"
10
- };
11
- const gapClasses = {
12
- sm: "gap-4",
13
- md: "gap-6",
14
- lg: "gap-8",
15
- xl: "gap-10"
16
- };
17
- function Grid({ className, columns = 3, gap = "md", ...props }) {
18
- return /* @__PURE__ */ jsx("div", { className: cn("grid", colClasses[columns], gapClasses[gap], className), ...props });
19
- }
20
- export {
21
- Grid
22
- };
23
- //# sourceMappingURL=grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/grid.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type GridProps = React.HTMLAttributes<HTMLDivElement> & {\n columns?: 1 | 2 | 3 | 4 | 5 | 6;\n gap?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n};\n\nconst colClasses: Record<NonNullable<GridProps[\"columns\"]>, string> = {\n 1: \"grid-cols-1\",\n 2: \"grid-cols-1 md:grid-cols-2\",\n 3: \"grid-cols-1 md:grid-cols-2 lg:grid-cols-3\",\n 4: \"grid-cols-1 md:grid-cols-2 lg:grid-cols-4\",\n 5: \"grid-cols-1 md:grid-cols-2 lg:grid-cols-5\",\n 6: \"grid-cols-1 md:grid-cols-3 lg:grid-cols-6\",\n};\n\nconst gapClasses: Record<NonNullable<GridProps[\"gap\"]>, string> = {\n sm: \"gap-4\",\n md: \"gap-6\",\n lg: \"gap-8\",\n xl: \"gap-10\",\n};\n\nexport function Grid({ className, columns = 3, gap = \"md\", ...props }: GridProps) {\n return (\n <div className={cn(\"grid\", colClasses[columns], gapClasses[gap], className)} {...props} />\n );\n}\n"],"mappings":"AA2BI;AAzBJ,SAAS,UAAU;AAOnB,MAAM,aAAgE;AAAA,EACpE,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,aAA4D;AAAA,EAChE,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,SAAS,KAAK,EAAE,WAAW,UAAU,GAAG,MAAM,MAAM,GAAG,MAAM,GAAc;AAChF,SACE,oBAAC,SAAI,WAAW,GAAG,QAAQ,WAAW,OAAO,GAAG,WAAW,GAAG,GAAG,SAAS,GAAI,GAAG,OAAO;AAE5F;","names":[]}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var layout_config_exports = {};
20
- __export(layout_config_exports, {
21
- layoutConfigSchema: () => layoutConfigSchema
22
- });
23
- module.exports = __toCommonJS(layout_config_exports);
24
- const layoutConfigSchema = {
25
- $schema: "https://json-schema.org/draft/2020-12/schema",
26
- title: "Nextcraft UI Layout Config",
27
- type: "object",
28
- additionalProperties: false,
29
- properties: {
30
- sidebar: {
31
- type: "object",
32
- additionalProperties: false,
33
- properties: {
34
- title: { type: "string" },
35
- footerText: { type: "string" },
36
- items: {
37
- type: "array",
38
- items: {
39
- type: "object",
40
- additionalProperties: false,
41
- properties: {
42
- label: { type: "string" },
43
- href: { type: "string" },
44
- icon: { type: "string" },
45
- active: { type: "boolean" }
46
- },
47
- required: ["label"]
48
- }
49
- }
50
- },
51
- required: ["items"]
52
- },
53
- header: {
54
- type: "object",
55
- additionalProperties: false,
56
- properties: {
57
- title: { type: "string" },
58
- breadcrumb: {
59
- type: "array",
60
- items: {
61
- type: "object",
62
- additionalProperties: false,
63
- properties: {
64
- label: { type: "string" },
65
- href: { type: "string" }
66
- },
67
- required: ["label"]
68
- }
69
- }
70
- }
71
- }
72
- }
73
- };
74
- // Annotate the CommonJS export names for ESM import in node:
75
- 0 && (module.exports = {
76
- layoutConfigSchema
77
- });
78
- //# sourceMappingURL=layout-config.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/layout-config.ts"],"sourcesContent":["export type LayoutIconName = string;\n\nexport type LayoutBreadcrumbItem = {\n label: string;\n href?: string;\n};\n\nexport type LayoutSidebarItem = {\n label: string;\n href?: string;\n icon?: LayoutIconName;\n active?: boolean;\n};\n\nexport type LayoutConfig = {\n sidebar?: {\n title?: string;\n items: LayoutSidebarItem[];\n footerText?: string;\n };\n header?: {\n title?: string;\n breadcrumb?: LayoutBreadcrumbItem[];\n };\n};\n\nexport const layoutConfigSchema = {\n $schema: \"https://json-schema.org/draft/2020-12/schema\",\n title: \"Nextcraft UI Layout Config\",\n type: \"object\",\n additionalProperties: false,\n properties: {\n sidebar: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n title: { type: \"string\" },\n footerText: { type: \"string\" },\n items: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n label: { type: \"string\" },\n href: { type: \"string\" },\n icon: { type: \"string\" },\n active: { type: \"boolean\" },\n },\n required: [\"label\"],\n },\n },\n },\n required: [\"items\"],\n },\n header: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n title: { type: \"string\" },\n breadcrumb: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n label: { type: \"string\" },\n href: { type: \"string\" },\n },\n required: [\"label\"],\n },\n },\n },\n },\n },\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BO,MAAM,qBAAqB;AAAA,EAChC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,OAAO,EAAE,MAAM,SAAS;AAAA,QACxB,YAAY,EAAE,MAAM,SAAS;AAAA,QAC7B,OAAO;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,YACN,sBAAsB;AAAA,YACtB,YAAY;AAAA,cACV,OAAO,EAAE,MAAM,SAAS;AAAA,cACxB,MAAM,EAAE,MAAM,SAAS;AAAA,cACvB,MAAM,EAAE,MAAM,SAAS;AAAA,cACvB,QAAQ,EAAE,MAAM,UAAU;AAAA,YAC5B;AAAA,YACA,UAAU,CAAC,OAAO;AAAA,UACpB;AAAA,QACF;AAAA,MACF;AAAA,MACA,UAAU,CAAC,OAAO;AAAA,IACpB;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,OAAO,EAAE,MAAM,SAAS;AAAA,QACxB,YAAY;AAAA,UACV,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,YACN,sBAAsB;AAAA,YACtB,YAAY;AAAA,cACV,OAAO,EAAE,MAAM,SAAS;AAAA,cACxB,MAAM,EAAE,MAAM,SAAS;AAAA,YACzB;AAAA,YACA,UAAU,CAAC,OAAO;AAAA,UACpB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,92 +0,0 @@
1
- type LayoutIconName = string;
2
- type LayoutBreadcrumbItem = {
3
- label: string;
4
- href?: string;
5
- };
6
- type LayoutSidebarItem = {
7
- label: string;
8
- href?: string;
9
- icon?: LayoutIconName;
10
- active?: boolean;
11
- };
12
- type LayoutConfig = {
13
- sidebar?: {
14
- title?: string;
15
- items: LayoutSidebarItem[];
16
- footerText?: string;
17
- };
18
- header?: {
19
- title?: string;
20
- breadcrumb?: LayoutBreadcrumbItem[];
21
- };
22
- };
23
- declare const layoutConfigSchema: {
24
- readonly $schema: "https://json-schema.org/draft/2020-12/schema";
25
- readonly title: "Nextcraft UI Layout Config";
26
- readonly type: "object";
27
- readonly additionalProperties: false;
28
- readonly properties: {
29
- readonly sidebar: {
30
- readonly type: "object";
31
- readonly additionalProperties: false;
32
- readonly properties: {
33
- readonly title: {
34
- readonly type: "string";
35
- };
36
- readonly footerText: {
37
- readonly type: "string";
38
- };
39
- readonly items: {
40
- readonly type: "array";
41
- readonly items: {
42
- readonly type: "object";
43
- readonly additionalProperties: false;
44
- readonly properties: {
45
- readonly label: {
46
- readonly type: "string";
47
- };
48
- readonly href: {
49
- readonly type: "string";
50
- };
51
- readonly icon: {
52
- readonly type: "string";
53
- };
54
- readonly active: {
55
- readonly type: "boolean";
56
- };
57
- };
58
- readonly required: readonly ["label"];
59
- };
60
- };
61
- };
62
- readonly required: readonly ["items"];
63
- };
64
- readonly header: {
65
- readonly type: "object";
66
- readonly additionalProperties: false;
67
- readonly properties: {
68
- readonly title: {
69
- readonly type: "string";
70
- };
71
- readonly breadcrumb: {
72
- readonly type: "array";
73
- readonly items: {
74
- readonly type: "object";
75
- readonly additionalProperties: false;
76
- readonly properties: {
77
- readonly label: {
78
- readonly type: "string";
79
- };
80
- readonly href: {
81
- readonly type: "string";
82
- };
83
- };
84
- readonly required: readonly ["label"];
85
- };
86
- };
87
- };
88
- };
89
- };
90
- };
91
-
92
- export { type LayoutBreadcrumbItem, type LayoutConfig, type LayoutIconName, type LayoutSidebarItem, layoutConfigSchema };
@@ -1,92 +0,0 @@
1
- type LayoutIconName = string;
2
- type LayoutBreadcrumbItem = {
3
- label: string;
4
- href?: string;
5
- };
6
- type LayoutSidebarItem = {
7
- label: string;
8
- href?: string;
9
- icon?: LayoutIconName;
10
- active?: boolean;
11
- };
12
- type LayoutConfig = {
13
- sidebar?: {
14
- title?: string;
15
- items: LayoutSidebarItem[];
16
- footerText?: string;
17
- };
18
- header?: {
19
- title?: string;
20
- breadcrumb?: LayoutBreadcrumbItem[];
21
- };
22
- };
23
- declare const layoutConfigSchema: {
24
- readonly $schema: "https://json-schema.org/draft/2020-12/schema";
25
- readonly title: "Nextcraft UI Layout Config";
26
- readonly type: "object";
27
- readonly additionalProperties: false;
28
- readonly properties: {
29
- readonly sidebar: {
30
- readonly type: "object";
31
- readonly additionalProperties: false;
32
- readonly properties: {
33
- readonly title: {
34
- readonly type: "string";
35
- };
36
- readonly footerText: {
37
- readonly type: "string";
38
- };
39
- readonly items: {
40
- readonly type: "array";
41
- readonly items: {
42
- readonly type: "object";
43
- readonly additionalProperties: false;
44
- readonly properties: {
45
- readonly label: {
46
- readonly type: "string";
47
- };
48
- readonly href: {
49
- readonly type: "string";
50
- };
51
- readonly icon: {
52
- readonly type: "string";
53
- };
54
- readonly active: {
55
- readonly type: "boolean";
56
- };
57
- };
58
- readonly required: readonly ["label"];
59
- };
60
- };
61
- };
62
- readonly required: readonly ["items"];
63
- };
64
- readonly header: {
65
- readonly type: "object";
66
- readonly additionalProperties: false;
67
- readonly properties: {
68
- readonly title: {
69
- readonly type: "string";
70
- };
71
- readonly breadcrumb: {
72
- readonly type: "array";
73
- readonly items: {
74
- readonly type: "object";
75
- readonly additionalProperties: false;
76
- readonly properties: {
77
- readonly label: {
78
- readonly type: "string";
79
- };
80
- readonly href: {
81
- readonly type: "string";
82
- };
83
- };
84
- readonly required: readonly ["label"];
85
- };
86
- };
87
- };
88
- };
89
- };
90
- };
91
-
92
- export { type LayoutBreadcrumbItem, type LayoutConfig, type LayoutIconName, type LayoutSidebarItem, layoutConfigSchema };
@@ -1,54 +0,0 @@
1
- const layoutConfigSchema = {
2
- $schema: "https://json-schema.org/draft/2020-12/schema",
3
- title: "Nextcraft UI Layout Config",
4
- type: "object",
5
- additionalProperties: false,
6
- properties: {
7
- sidebar: {
8
- type: "object",
9
- additionalProperties: false,
10
- properties: {
11
- title: { type: "string" },
12
- footerText: { type: "string" },
13
- items: {
14
- type: "array",
15
- items: {
16
- type: "object",
17
- additionalProperties: false,
18
- properties: {
19
- label: { type: "string" },
20
- href: { type: "string" },
21
- icon: { type: "string" },
22
- active: { type: "boolean" }
23
- },
24
- required: ["label"]
25
- }
26
- }
27
- },
28
- required: ["items"]
29
- },
30
- header: {
31
- type: "object",
32
- additionalProperties: false,
33
- properties: {
34
- title: { type: "string" },
35
- breadcrumb: {
36
- type: "array",
37
- items: {
38
- type: "object",
39
- additionalProperties: false,
40
- properties: {
41
- label: { type: "string" },
42
- href: { type: "string" }
43
- },
44
- required: ["label"]
45
- }
46
- }
47
- }
48
- }
49
- }
50
- };
51
- export {
52
- layoutConfigSchema
53
- };
54
- //# sourceMappingURL=layout-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/layout/layout-config.ts"],"sourcesContent":["export type LayoutIconName = string;\n\nexport type LayoutBreadcrumbItem = {\n label: string;\n href?: string;\n};\n\nexport type LayoutSidebarItem = {\n label: string;\n href?: string;\n icon?: LayoutIconName;\n active?: boolean;\n};\n\nexport type LayoutConfig = {\n sidebar?: {\n title?: string;\n items: LayoutSidebarItem[];\n footerText?: string;\n };\n header?: {\n title?: string;\n breadcrumb?: LayoutBreadcrumbItem[];\n };\n};\n\nexport const layoutConfigSchema = {\n $schema: \"https://json-schema.org/draft/2020-12/schema\",\n title: \"Nextcraft UI Layout Config\",\n type: \"object\",\n additionalProperties: false,\n properties: {\n sidebar: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n title: { type: \"string\" },\n footerText: { type: \"string\" },\n items: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n label: { type: \"string\" },\n href: { type: \"string\" },\n icon: { type: \"string\" },\n active: { type: \"boolean\" },\n },\n required: [\"label\"],\n },\n },\n },\n required: [\"items\"],\n },\n header: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n title: { type: \"string\" },\n breadcrumb: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n label: { type: \"string\" },\n href: { type: \"string\" },\n },\n required: [\"label\"],\n },\n },\n },\n },\n },\n} as const;\n"],"mappings":"AA0BO,MAAM,qBAAqB;AAAA,EAChC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,OAAO,EAAE,MAAM,SAAS;AAAA,QACxB,YAAY,EAAE,MAAM,SAAS;AAAA,QAC7B,OAAO;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,YACN,sBAAsB;AAAA,YACtB,YAAY;AAAA,cACV,OAAO,EAAE,MAAM,SAAS;AAAA,cACxB,MAAM,EAAE,MAAM,SAAS;AAAA,cACvB,MAAM,EAAE,MAAM,SAAS;AAAA,cACvB,QAAQ,EAAE,MAAM,UAAU;AAAA,YAC5B;AAAA,YACA,UAAU,CAAC,OAAO;AAAA,UACpB;AAAA,QACF;AAAA,MACF;AAAA,MACA,UAAU,CAAC,OAAO;AAAA,IACpB;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,OAAO,EAAE,MAAM,SAAS;AAAA,QACxB,YAAY;AAAA,UACV,MAAM;AAAA,UACN,OAAO;AAAA,YACL,MAAM;AAAA,YACN,sBAAsB;AAAA,YACtB,YAAY;AAAA,cACV,OAAO,EAAE,MAAM,SAAS;AAAA,cACxB,MAAM,EAAE,MAAM,SAAS;AAAA,YACzB;AAAA,YACA,UAAU,CAAC,OAAO;AAAA,UACpB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}