@iamsaroj/smart-ui 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (853) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE +21 -0
  3. package/README.md +49 -0
  4. package/dist/calendar-engine/agenda-view.d.ts +8 -0
  5. package/dist/calendar-engine/agenda-view.d.ts.map +1 -0
  6. package/dist/calendar-engine/agenda-view.js +26 -0
  7. package/dist/calendar-engine/agenda-view.js.map +1 -0
  8. package/dist/calendar-engine/booking.d.ts +13 -0
  9. package/dist/calendar-engine/booking.d.ts.map +1 -0
  10. package/dist/calendar-engine/booking.js +45 -0
  11. package/dist/calendar-engine/booking.js.map +1 -0
  12. package/dist/calendar-engine/calendar-utils.d.ts +74 -0
  13. package/dist/calendar-engine/calendar-utils.d.ts.map +1 -0
  14. package/dist/calendar-engine/calendar-utils.js +221 -0
  15. package/dist/calendar-engine/calendar-utils.js.map +1 -0
  16. package/dist/calendar-engine/calendar.d.ts +62 -0
  17. package/dist/calendar-engine/calendar.d.ts.map +1 -0
  18. package/dist/calendar-engine/calendar.js +81 -0
  19. package/dist/calendar-engine/calendar.js.map +1 -0
  20. package/dist/calendar-engine/event-color.d.ts +20 -0
  21. package/dist/calendar-engine/event-color.d.ts.map +1 -0
  22. package/dist/calendar-engine/event-color.js +59 -0
  23. package/dist/calendar-engine/event-color.js.map +1 -0
  24. package/dist/calendar-engine/index.d.ts +11 -0
  25. package/dist/calendar-engine/index.d.ts.map +1 -0
  26. package/dist/calendar-engine/index.js +6 -0
  27. package/dist/calendar-engine/index.js.map +1 -0
  28. package/dist/calendar-engine/month-view.d.ts +10 -0
  29. package/dist/calendar-engine/month-view.d.ts.map +1 -0
  30. package/dist/calendar-engine/month-view.js +72 -0
  31. package/dist/calendar-engine/month-view.js.map +1 -0
  32. package/dist/calendar-engine/recurrence.d.ts +47 -0
  33. package/dist/calendar-engine/recurrence.d.ts.map +1 -0
  34. package/dist/calendar-engine/recurrence.js +209 -0
  35. package/dist/calendar-engine/recurrence.js.map +1 -0
  36. package/dist/calendar-engine/shared.d.ts +72 -0
  37. package/dist/calendar-engine/shared.d.ts.map +1 -0
  38. package/dist/calendar-engine/shared.js +34 -0
  39. package/dist/calendar-engine/shared.js.map +1 -0
  40. package/dist/calendar-engine/time-grid-view.d.ts +13 -0
  41. package/dist/calendar-engine/time-grid-view.d.ts.map +1 -0
  42. package/dist/calendar-engine/time-grid-view.js +203 -0
  43. package/dist/calendar-engine/time-grid-view.js.map +1 -0
  44. package/dist/calendar-engine/types.d.ts +138 -0
  45. package/dist/calendar-engine/types.d.ts.map +1 -0
  46. package/dist/calendar-engine/types.js +2 -0
  47. package/dist/calendar-engine/types.js.map +1 -0
  48. package/dist/calendar-engine/use-calendar.d.ts +7 -0
  49. package/dist/calendar-engine/use-calendar.d.ts.map +1 -0
  50. package/dist/calendar-engine/use-calendar.js +25 -0
  51. package/dist/calendar-engine/use-calendar.js.map +1 -0
  52. package/dist/components/accordion.d.ts +7 -0
  53. package/dist/components/accordion.d.ts.map +1 -0
  54. package/dist/components/accordion.js +10 -0
  55. package/dist/components/accordion.js.map +1 -0
  56. package/dist/components/alert-dialog.d.ts +19 -0
  57. package/dist/components/alert-dialog.d.ts.map +1 -0
  58. package/dist/components/alert-dialog.js +18 -0
  59. package/dist/components/alert-dialog.js.map +1 -0
  60. package/dist/components/alert.d.ts +11 -0
  61. package/dist/components/alert.d.ts.map +1 -0
  62. package/dist/components/alert.js +20 -0
  63. package/dist/components/alert.js.map +1 -0
  64. package/dist/components/aspect-ratio.d.ts +5 -0
  65. package/dist/components/aspect-ratio.d.ts.map +1 -0
  66. package/dist/components/aspect-ratio.js +7 -0
  67. package/dist/components/aspect-ratio.js.map +1 -0
  68. package/dist/components/avatar.d.ts +12 -0
  69. package/dist/components/avatar.d.ts.map +1 -0
  70. package/dist/components/avatar.js +11 -0
  71. package/dist/components/avatar.js.map +1 -0
  72. package/dist/components/badge.d.ts +8 -0
  73. package/dist/components/badge.d.ts.map +1 -0
  74. package/dist/components/badge.js +33 -0
  75. package/dist/components/badge.js.map +1 -0
  76. package/dist/components/breadcrumb.d.ts +11 -0
  77. package/dist/components/breadcrumb.d.ts.map +1 -0
  78. package/dist/components/breadcrumb.js +23 -0
  79. package/dist/components/breadcrumb.js.map +1 -0
  80. package/dist/components/button.d.ts +9 -0
  81. package/dist/components/button.d.ts.map +1 -0
  82. package/dist/components/button.js +34 -0
  83. package/dist/components/button.js.map +1 -0
  84. package/dist/components/calendar.d.ts +11 -0
  85. package/dist/components/calendar.d.ts.map +1 -0
  86. package/dist/components/calendar.js +77 -0
  87. package/dist/components/calendar.js.map +1 -0
  88. package/dist/components/card.d.ts +12 -0
  89. package/dist/components/card.d.ts.map +1 -0
  90. package/dist/components/card.js +11 -0
  91. package/dist/components/card.js.map +1 -0
  92. package/dist/components/carousel.d.ts +29 -0
  93. package/dist/components/carousel.d.ts.map +1 -0
  94. package/dist/components/carousel.js +94 -0
  95. package/dist/components/carousel.js.map +1 -0
  96. package/dist/components/chart.d.ts +45 -0
  97. package/dist/components/chart.d.ts.map +1 -0
  98. package/dist/components/chart.js +133 -0
  99. package/dist/components/chart.js.map +1 -0
  100. package/dist/components/checkbox.d.ts +4 -0
  101. package/dist/components/checkbox.d.ts.map +1 -0
  102. package/dist/components/checkbox.js +8 -0
  103. package/dist/components/checkbox.js.map +1 -0
  104. package/dist/components/collapsible.d.ts +6 -0
  105. package/dist/components/collapsible.d.ts.map +1 -0
  106. package/dist/components/collapsible.js +7 -0
  107. package/dist/components/collapsible.js.map +1 -0
  108. package/dist/components/combobox.d.ts +35 -0
  109. package/dist/components/combobox.d.ts.map +1 -0
  110. package/dist/components/combobox.js +45 -0
  111. package/dist/components/combobox.js.map +1 -0
  112. package/dist/components/command.d.ts +20 -0
  113. package/dist/components/command.d.ts.map +1 -0
  114. package/dist/components/command.js +18 -0
  115. package/dist/components/command.js.map +1 -0
  116. package/dist/components/context-menu.d.ts +30 -0
  117. package/dist/components/context-menu.d.ts.map +1 -0
  118. package/dist/components/context-menu.js +22 -0
  119. package/dist/components/context-menu.js.map +1 -0
  120. package/dist/components/data-table.d.ts +12 -0
  121. package/dist/components/data-table.d.ts.map +1 -0
  122. package/dist/components/data-table.js +44 -0
  123. package/dist/components/data-table.js.map +1 -0
  124. package/dist/components/date-picker.d.ts +33 -0
  125. package/dist/components/date-picker.d.ts.map +1 -0
  126. package/dist/components/date-picker.js +29 -0
  127. package/dist/components/date-picker.js.map +1 -0
  128. package/dist/components/dialog.d.ts +18 -0
  129. package/dist/components/dialog.d.ts.map +1 -0
  130. package/dist/components/dialog.js +18 -0
  131. package/dist/components/dialog.js.map +1 -0
  132. package/dist/components/drawer.d.ts +14 -0
  133. package/dist/components/drawer.d.ts.map +1 -0
  134. package/dist/components/drawer.js +15 -0
  135. package/dist/components/drawer.js.map +1 -0
  136. package/dist/components/dropdown-menu.d.ts +30 -0
  137. package/dist/components/dropdown-menu.d.ts.map +1 -0
  138. package/dist/components/dropdown-menu.js +22 -0
  139. package/dist/components/dropdown-menu.js.map +1 -0
  140. package/dist/components/hover-card.d.ts +6 -0
  141. package/dist/components/hover-card.d.ts.map +1 -0
  142. package/dist/components/hover-card.js +8 -0
  143. package/dist/components/hover-card.js.map +1 -0
  144. package/dist/components/input-group.d.ts +19 -0
  145. package/dist/components/input-group.d.ts.map +1 -0
  146. package/dist/components/input-group.js +46 -0
  147. package/dist/components/input-group.js.map +1 -0
  148. package/dist/components/input-otp.d.ts +12 -0
  149. package/dist/components/input-otp.d.ts.map +1 -0
  150. package/dist/components/input-otp.js +16 -0
  151. package/dist/components/input-otp.js.map +1 -0
  152. package/dist/components/input.d.ts +4 -0
  153. package/dist/components/input.d.ts.map +1 -0
  154. package/dist/components/input.js +6 -0
  155. package/dist/components/input.js.map +1 -0
  156. package/dist/components/kbd.d.ts +5 -0
  157. package/dist/components/kbd.d.ts.map +1 -0
  158. package/dist/components/kbd.js +6 -0
  159. package/dist/components/kbd.js.map +1 -0
  160. package/dist/components/label.d.ts +4 -0
  161. package/dist/components/label.d.ts.map +1 -0
  162. package/dist/components/label.js +5 -0
  163. package/dist/components/label.js.map +1 -0
  164. package/dist/components/menubar.d.ts +30 -0
  165. package/dist/components/menubar.d.ts.map +1 -0
  166. package/dist/components/menubar.js +24 -0
  167. package/dist/components/menubar.js.map +1 -0
  168. package/dist/components/navigation-menu.d.ts +12 -0
  169. package/dist/components/navigation-menu.d.ts.map +1 -0
  170. package/dist/components/navigation-menu.js +18 -0
  171. package/dist/components/navigation-menu.js.map +1 -0
  172. package/dist/components/pagination.d.ts +18 -0
  173. package/dist/components/pagination.d.ts.map +1 -0
  174. package/dist/components/pagination.js +13 -0
  175. package/dist/components/pagination.js.map +1 -0
  176. package/dist/components/popover.d.ts +10 -0
  177. package/dist/components/popover.d.ts.map +1 -0
  178. package/dist/components/popover.js +12 -0
  179. package/dist/components/popover.js.map +1 -0
  180. package/dist/components/progress.d.ts +8 -0
  181. package/dist/components/progress.d.ts.map +1 -0
  182. package/dist/components/progress.js +10 -0
  183. package/dist/components/progress.js.map +1 -0
  184. package/dist/components/radio-group.d.ts +6 -0
  185. package/dist/components/radio-group.d.ts.map +1 -0
  186. package/dist/components/radio-group.js +9 -0
  187. package/dist/components/radio-group.js.map +1 -0
  188. package/dist/components/scroll-area.d.ts +5 -0
  189. package/dist/components/scroll-area.d.ts.map +1 -0
  190. package/dist/components/scroll-area.js +8 -0
  191. package/dist/components/scroll-area.js.map +1 -0
  192. package/dist/components/select.d.ts +16 -0
  193. package/dist/components/select.d.ts.map +1 -0
  194. package/dist/components/select.js +16 -0
  195. package/dist/components/select.js.map +1 -0
  196. package/dist/components/separator.d.ts +4 -0
  197. package/dist/components/separator.d.ts.map +1 -0
  198. package/dist/components/separator.js +6 -0
  199. package/dist/components/separator.js.map +1 -0
  200. package/dist/components/sheet.d.ts +15 -0
  201. package/dist/components/sheet.d.ts.map +1 -0
  202. package/dist/components/sheet.js +18 -0
  203. package/dist/components/sheet.js.map +1 -0
  204. package/dist/components/sidebar.d.ts +64 -0
  205. package/dist/components/sidebar.d.ts.map +1 -0
  206. package/dist/components/sidebar.js +224 -0
  207. package/dist/components/sidebar.js.map +1 -0
  208. package/dist/components/skeleton.d.ts +3 -0
  209. package/dist/components/skeleton.d.ts.map +1 -0
  210. package/dist/components/skeleton.js +5 -0
  211. package/dist/components/skeleton.js.map +1 -0
  212. package/dist/components/slider.d.ts +4 -0
  213. package/dist/components/slider.d.ts.map +1 -0
  214. package/dist/components/slider.js +13 -0
  215. package/dist/components/slider.js.map +1 -0
  216. package/dist/components/sonner.d.ts +4 -0
  217. package/dist/components/sonner.d.ts.map +1 -0
  218. package/dist/components/sonner.js +25 -0
  219. package/dist/components/sonner.js.map +1 -0
  220. package/dist/components/switch.d.ts +6 -0
  221. package/dist/components/switch.d.ts.map +1 -0
  222. package/dist/components/switch.js +7 -0
  223. package/dist/components/switch.js.map +1 -0
  224. package/dist/components/table.d.ts +11 -0
  225. package/dist/components/table.d.ts.map +1 -0
  226. package/dist/components/table.js +12 -0
  227. package/dist/components/table.js.map +1 -0
  228. package/dist/components/tabs.d.ts +11 -0
  229. package/dist/components/tabs.d.ts.map +1 -0
  230. package/dist/components/tabs.js +23 -0
  231. package/dist/components/tabs.js.map +1 -0
  232. package/dist/components/textarea.d.ts +4 -0
  233. package/dist/components/textarea.d.ts.map +1 -0
  234. package/dist/components/textarea.js +5 -0
  235. package/dist/components/textarea.js.map +1 -0
  236. package/dist/components/toggle-group.d.ts +11 -0
  237. package/dist/components/toggle-group.d.ts.map +1 -0
  238. package/dist/components/toggle-group.js +22 -0
  239. package/dist/components/toggle-group.js.map +1 -0
  240. package/dist/components/toggle.d.ts +9 -0
  241. package/dist/components/toggle.d.ts.map +1 -0
  242. package/dist/components/toggle.js +25 -0
  243. package/dist/components/toggle.js.map +1 -0
  244. package/dist/components/tooltip.d.ts +7 -0
  245. package/dist/components/tooltip.d.ts.map +1 -0
  246. package/dist/components/tooltip.js +10 -0
  247. package/dist/components/tooltip.js.map +1 -0
  248. package/dist/data-grid/action-column-cell.d.ts +41 -0
  249. package/dist/data-grid/action-column-cell.d.ts.map +1 -0
  250. package/dist/data-grid/action-column-cell.js +114 -0
  251. package/dist/data-grid/action-column-cell.js.map +1 -0
  252. package/dist/data-grid/action-column.d.ts +144 -0
  253. package/dist/data-grid/action-column.d.ts.map +1 -0
  254. package/dist/data-grid/action-column.js +156 -0
  255. package/dist/data-grid/action-column.js.map +1 -0
  256. package/dist/data-grid/create-page-fetcher.d.ts +57 -0
  257. package/dist/data-grid/create-page-fetcher.d.ts.map +1 -0
  258. package/dist/data-grid/create-page-fetcher.js +41 -0
  259. package/dist/data-grid/create-page-fetcher.js.map +1 -0
  260. package/dist/data-grid/data-grid.d.ts +65 -0
  261. package/dist/data-grid/data-grid.d.ts.map +1 -0
  262. package/dist/data-grid/data-grid.js +95 -0
  263. package/dist/data-grid/data-grid.js.map +1 -0
  264. package/dist/data-grid/empty-state.d.ts +13 -0
  265. package/dist/data-grid/empty-state.d.ts.map +1 -0
  266. package/dist/data-grid/empty-state.js +6 -0
  267. package/dist/data-grid/empty-state.js.map +1 -0
  268. package/dist/data-grid/formula-guard.d.ts +22 -0
  269. package/dist/data-grid/formula-guard.d.ts.map +1 -0
  270. package/dist/data-grid/formula-guard.js +28 -0
  271. package/dist/data-grid/formula-guard.js.map +1 -0
  272. package/dist/data-grid/grid-internals.d.ts +16 -0
  273. package/dist/data-grid/grid-internals.d.ts.map +1 -0
  274. package/dist/data-grid/grid-internals.js +73 -0
  275. package/dist/data-grid/grid-internals.js.map +1 -0
  276. package/dist/data-grid/grid-theme.d.ts +8 -0
  277. package/dist/data-grid/grid-theme.d.ts.map +1 -0
  278. package/dist/data-grid/grid-theme.js +23 -0
  279. package/dist/data-grid/grid-theme.js.map +1 -0
  280. package/dist/data-grid/grid-toolbar.d.ts +40 -0
  281. package/dist/data-grid/grid-toolbar.d.ts.map +1 -0
  282. package/dist/data-grid/grid-toolbar.js +13 -0
  283. package/dist/data-grid/grid-toolbar.js.map +1 -0
  284. package/dist/data-grid/index.d.ts +10 -0
  285. package/dist/data-grid/index.d.ts.map +1 -0
  286. package/dist/data-grid/index.js +9 -0
  287. package/dist/data-grid/index.js.map +1 -0
  288. package/dist/data-grid/pagination.d.ts +146 -0
  289. package/dist/data-grid/pagination.d.ts.map +1 -0
  290. package/dist/data-grid/pagination.js +128 -0
  291. package/dist/data-grid/pagination.js.map +1 -0
  292. package/dist/data-grid/server-data-grid.d.ts +109 -0
  293. package/dist/data-grid/server-data-grid.d.ts.map +1 -0
  294. package/dist/data-grid/server-data-grid.js +240 -0
  295. package/dist/data-grid/server-data-grid.js.map +1 -0
  296. package/dist/data-grid/server-grid-internals.d.ts +79 -0
  297. package/dist/data-grid/server-grid-internals.d.ts.map +1 -0
  298. package/dist/data-grid/server-grid-internals.js +137 -0
  299. package/dist/data-grid/server-grid-internals.js.map +1 -0
  300. package/dist/data-grid/use-action-column.d.ts +22 -0
  301. package/dist/data-grid/use-action-column.d.ts.map +1 -0
  302. package/dist/data-grid/use-action-column.js +63 -0
  303. package/dist/data-grid/use-action-column.js.map +1 -0
  304. package/dist/data-grid/use-server-grid-selection.d.ts +35 -0
  305. package/dist/data-grid/use-server-grid-selection.d.ts.map +1 -0
  306. package/dist/data-grid/use-server-grid-selection.js +81 -0
  307. package/dist/data-grid/use-server-grid-selection.js.map +1 -0
  308. package/dist/form-engine/base.d.ts +19 -0
  309. package/dist/form-engine/base.d.ts.map +1 -0
  310. package/dist/form-engine/base.js +2 -0
  311. package/dist/form-engine/base.js.map +1 -0
  312. package/dist/form-engine/field-registry.d.ts +285 -0
  313. package/dist/form-engine/field-registry.d.ts.map +1 -0
  314. package/dist/form-engine/field-registry.js +306 -0
  315. package/dist/form-engine/field-registry.js.map +1 -0
  316. package/dist/form-engine/field-types.d.ts +201 -0
  317. package/dist/form-engine/field-types.d.ts.map +1 -0
  318. package/dist/form-engine/field-types.js +14 -0
  319. package/dist/form-engine/field-types.js.map +1 -0
  320. package/dist/form-engine/index.d.ts +20 -0
  321. package/dist/form-engine/index.d.ts.map +1 -0
  322. package/dist/form-engine/index.js +21 -0
  323. package/dist/form-engine/index.js.map +1 -0
  324. package/dist/form-engine/smart-checkbox-field.d.ts +5 -0
  325. package/dist/form-engine/smart-checkbox-field.d.ts.map +1 -0
  326. package/dist/form-engine/smart-checkbox-field.js +9 -0
  327. package/dist/form-engine/smart-checkbox-field.js.map +1 -0
  328. package/dist/form-engine/smart-checkbox-group-field.d.ts +10 -0
  329. package/dist/form-engine/smart-checkbox-group-field.d.ts.map +1 -0
  330. package/dist/form-engine/smart-checkbox-group-field.js +5 -0
  331. package/dist/form-engine/smart-checkbox-group-field.js.map +1 -0
  332. package/dist/form-engine/smart-combobox-field.d.ts +11 -0
  333. package/dist/form-engine/smart-combobox-field.d.ts.map +1 -0
  334. package/dist/form-engine/smart-combobox-field.js +5 -0
  335. package/dist/form-engine/smart-combobox-field.js.map +1 -0
  336. package/dist/form-engine/smart-date-field.d.ts +8 -0
  337. package/dist/form-engine/smart-date-field.d.ts.map +1 -0
  338. package/dist/form-engine/smart-date-field.js +17 -0
  339. package/dist/form-engine/smart-date-field.js.map +1 -0
  340. package/dist/form-engine/smart-date-range-field.d.ts +15 -0
  341. package/dist/form-engine/smart-date-range-field.d.ts.map +1 -0
  342. package/dist/form-engine/smart-date-range-field.js +25 -0
  343. package/dist/form-engine/smart-date-range-field.js.map +1 -0
  344. package/dist/form-engine/smart-datetime-field.d.ts +12 -0
  345. package/dist/form-engine/smart-datetime-field.d.ts.map +1 -0
  346. package/dist/form-engine/smart-datetime-field.js +12 -0
  347. package/dist/form-engine/smart-datetime-field.js.map +1 -0
  348. package/dist/form-engine/smart-form-internals.d.ts +14 -0
  349. package/dist/form-engine/smart-form-internals.d.ts.map +1 -0
  350. package/dist/form-engine/smart-form-internals.js +64 -0
  351. package/dist/form-engine/smart-form-internals.js.map +1 -0
  352. package/dist/form-engine/smart-form.d.ts +55 -0
  353. package/dist/form-engine/smart-form.d.ts.map +1 -0
  354. package/dist/form-engine/smart-form.js +229 -0
  355. package/dist/form-engine/smart-form.js.map +1 -0
  356. package/dist/form-engine/smart-input-field.d.ts +9 -0
  357. package/dist/form-engine/smart-input-field.d.ts.map +1 -0
  358. package/dist/form-engine/smart-input-field.js +5 -0
  359. package/dist/form-engine/smart-input-field.js.map +1 -0
  360. package/dist/form-engine/smart-month-field.d.ts +8 -0
  361. package/dist/form-engine/smart-month-field.d.ts.map +1 -0
  362. package/dist/form-engine/smart-month-field.js +12 -0
  363. package/dist/form-engine/smart-month-field.js.map +1 -0
  364. package/dist/form-engine/smart-multi-select-field.d.ts +11 -0
  365. package/dist/form-engine/smart-multi-select-field.d.ts.map +1 -0
  366. package/dist/form-engine/smart-multi-select-field.js +5 -0
  367. package/dist/form-engine/smart-multi-select-field.js.map +1 -0
  368. package/dist/form-engine/smart-number-field.d.ts +22 -0
  369. package/dist/form-engine/smart-number-field.d.ts.map +1 -0
  370. package/dist/form-engine/smart-number-field.js +115 -0
  371. package/dist/form-engine/smart-number-field.js.map +1 -0
  372. package/dist/form-engine/smart-password-field.d.ts +7 -0
  373. package/dist/form-engine/smart-password-field.d.ts.map +1 -0
  374. package/dist/form-engine/smart-password-field.js +5 -0
  375. package/dist/form-engine/smart-password-field.js.map +1 -0
  376. package/dist/form-engine/smart-radio-group-field.d.ts +10 -0
  377. package/dist/form-engine/smart-radio-group-field.d.ts.map +1 -0
  378. package/dist/form-engine/smart-radio-group-field.js +5 -0
  379. package/dist/form-engine/smart-radio-group-field.js.map +1 -0
  380. package/dist/form-engine/smart-segmented-field.d.ts +9 -0
  381. package/dist/form-engine/smart-segmented-field.d.ts.map +1 -0
  382. package/dist/form-engine/smart-segmented-field.js +5 -0
  383. package/dist/form-engine/smart-segmented-field.js.map +1 -0
  384. package/dist/form-engine/smart-select-field.d.ts +10 -0
  385. package/dist/form-engine/smart-select-field.d.ts.map +1 -0
  386. package/dist/form-engine/smart-select-field.js +5 -0
  387. package/dist/form-engine/smart-select-field.js.map +1 -0
  388. package/dist/form-engine/smart-slug-field.d.ts +12 -0
  389. package/dist/form-engine/smart-slug-field.d.ts.map +1 -0
  390. package/dist/form-engine/smart-slug-field.js +14 -0
  391. package/dist/form-engine/smart-slug-field.js.map +1 -0
  392. package/dist/form-engine/smart-switch-field.d.ts +5 -0
  393. package/dist/form-engine/smart-switch-field.d.ts.map +1 -0
  394. package/dist/form-engine/smart-switch-field.js +9 -0
  395. package/dist/form-engine/smart-switch-field.js.map +1 -0
  396. package/dist/form-engine/smart-tel-field.d.ts +7 -0
  397. package/dist/form-engine/smart-tel-field.d.ts.map +1 -0
  398. package/dist/form-engine/smart-tel-field.js +6 -0
  399. package/dist/form-engine/smart-tel-field.js.map +1 -0
  400. package/dist/form-engine/smart-text-editor-field.d.ts +15 -0
  401. package/dist/form-engine/smart-text-editor-field.d.ts.map +1 -0
  402. package/dist/form-engine/smart-text-editor-field.js +5 -0
  403. package/dist/form-engine/smart-text-editor-field.js.map +1 -0
  404. package/dist/form-engine/smart-textarea-field.d.ts +8 -0
  405. package/dist/form-engine/smart-textarea-field.d.ts.map +1 -0
  406. package/dist/form-engine/smart-textarea-field.js +5 -0
  407. package/dist/form-engine/smart-textarea-field.js.map +1 -0
  408. package/dist/form-engine/smart-time-field.d.ts +10 -0
  409. package/dist/form-engine/smart-time-field.d.ts.map +1 -0
  410. package/dist/form-engine/smart-time-field.js +5 -0
  411. package/dist/form-engine/smart-time-field.js.map +1 -0
  412. package/dist/form-engine/smart-time-range-field.d.ts +13 -0
  413. package/dist/form-engine/smart-time-range-field.d.ts.map +1 -0
  414. package/dist/form-engine/smart-time-range-field.js +5 -0
  415. package/dist/form-engine/smart-time-range-field.js.map +1 -0
  416. package/dist/form-engine/smart-year-field.d.ts +8 -0
  417. package/dist/form-engine/smart-year-field.d.ts.map +1 -0
  418. package/dist/form-engine/smart-year-field.js +5 -0
  419. package/dist/form-engine/smart-year-field.js.map +1 -0
  420. package/dist/form-engine/smart-yesno-field.d.ts +12 -0
  421. package/dist/form-engine/smart-yesno-field.d.ts.map +1 -0
  422. package/dist/form-engine/smart-yesno-field.js +14 -0
  423. package/dist/form-engine/smart-yesno-field.js.map +1 -0
  424. package/dist/hooks/use-mobile.d.ts +2 -0
  425. package/dist/hooks/use-mobile.d.ts.map +1 -0
  426. package/dist/hooks/use-mobile.js +17 -0
  427. package/dist/hooks/use-mobile.js.map +1 -0
  428. package/dist/lexical-text-editor/SmartTextEditor.d.ts +61 -0
  429. package/dist/lexical-text-editor/SmartTextEditor.d.ts.map +1 -0
  430. package/dist/lexical-text-editor/SmartTextEditor.js +145 -0
  431. package/dist/lexical-text-editor/SmartTextEditor.js.map +1 -0
  432. package/dist/lexical-text-editor/editor-nodes.d.ts +3 -0
  433. package/dist/lexical-text-editor/editor-nodes.d.ts.map +1 -0
  434. package/dist/lexical-text-editor/editor-nodes.js +25 -0
  435. package/dist/lexical-text-editor/editor-nodes.js.map +1 -0
  436. package/dist/lexical-text-editor/editor-theme.d.ts +3 -0
  437. package/dist/lexical-text-editor/editor-theme.d.ts.map +1 -0
  438. package/dist/lexical-text-editor/editor-theme.js +78 -0
  439. package/dist/lexical-text-editor/editor-theme.js.map +1 -0
  440. package/dist/lexical-text-editor/index.d.ts +8 -0
  441. package/dist/lexical-text-editor/index.d.ts.map +1 -0
  442. package/dist/lexical-text-editor/index.js +6 -0
  443. package/dist/lexical-text-editor/index.js.map +1 -0
  444. package/dist/lexical-text-editor/nodes/image-node.d.ts +41 -0
  445. package/dist/lexical-text-editor/nodes/image-node.d.ts.map +1 -0
  446. package/dist/lexical-text-editor/nodes/image-node.js +89 -0
  447. package/dist/lexical-text-editor/nodes/image-node.js.map +1 -0
  448. package/dist/lexical-text-editor/nodes/page-break-node.d.ts +25 -0
  449. package/dist/lexical-text-editor/nodes/page-break-node.d.ts.map +1 -0
  450. package/dist/lexical-text-editor/nodes/page-break-node.js +84 -0
  451. package/dist/lexical-text-editor/nodes/page-break-node.js.map +1 -0
  452. package/dist/lexical-text-editor/plugins/auto-link-plugin.d.ts +3 -0
  453. package/dist/lexical-text-editor/plugins/auto-link-plugin.d.ts.map +1 -0
  454. package/dist/lexical-text-editor/plugins/auto-link-plugin.js +12 -0
  455. package/dist/lexical-text-editor/plugins/auto-link-plugin.js.map +1 -0
  456. package/dist/lexical-text-editor/plugins/code-highlight-plugin.d.ts +6 -0
  457. package/dist/lexical-text-editor/plugins/code-highlight-plugin.d.ts.map +1 -0
  458. package/dist/lexical-text-editor/plugins/code-highlight-plugin.js +14 -0
  459. package/dist/lexical-text-editor/plugins/code-highlight-plugin.js.map +1 -0
  460. package/dist/lexical-text-editor/plugins/toolbar/align-menu.d.ts +7 -0
  461. package/dist/lexical-text-editor/plugins/toolbar/align-menu.d.ts.map +1 -0
  462. package/dist/lexical-text-editor/plugins/toolbar/align-menu.js +8 -0
  463. package/dist/lexical-text-editor/plugins/toolbar/align-menu.js.map +1 -0
  464. package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.d.ts +20 -0
  465. package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.d.ts.map +1 -0
  466. package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.js +78 -0
  467. package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.js.map +1 -0
  468. package/dist/lexical-text-editor/plugins/toolbar/constants.d.ts +36 -0
  469. package/dist/lexical-text-editor/plugins/toolbar/constants.d.ts.map +1 -0
  470. package/dist/lexical-text-editor/plugins/toolbar/constants.js +67 -0
  471. package/dist/lexical-text-editor/plugins/toolbar/constants.js.map +1 -0
  472. package/dist/lexical-text-editor/plugins/toolbar/inline-marks.d.ts +14 -0
  473. package/dist/lexical-text-editor/plugins/toolbar/inline-marks.d.ts.map +1 -0
  474. package/dist/lexical-text-editor/plugins/toolbar/inline-marks.js +129 -0
  475. package/dist/lexical-text-editor/plugins/toolbar/inline-marks.js.map +1 -0
  476. package/dist/lexical-text-editor/plugins/toolbar/insert-menu.d.ts +8 -0
  477. package/dist/lexical-text-editor/plugins/toolbar/insert-menu.d.ts.map +1 -0
  478. package/dist/lexical-text-editor/plugins/toolbar/insert-menu.js +87 -0
  479. package/dist/lexical-text-editor/plugins/toolbar/insert-menu.js.map +1 -0
  480. package/dist/lexical-text-editor/plugins/toolbar/link-editor.d.ts +11 -0
  481. package/dist/lexical-text-editor/plugins/toolbar/link-editor.d.ts.map +1 -0
  482. package/dist/lexical-text-editor/plugins/toolbar/link-editor.js +51 -0
  483. package/dist/lexical-text-editor/plugins/toolbar/link-editor.js.map +1 -0
  484. package/dist/lexical-text-editor/plugins/toolbar/primitives.d.ts +39 -0
  485. package/dist/lexical-text-editor/plugins/toolbar/primitives.d.ts.map +1 -0
  486. package/dist/lexical-text-editor/plugins/toolbar/primitives.js +47 -0
  487. package/dist/lexical-text-editor/plugins/toolbar/primitives.js.map +1 -0
  488. package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.d.ts +9 -0
  489. package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.d.ts.map +1 -0
  490. package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.js +29 -0
  491. package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.js.map +1 -0
  492. package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.d.ts +30 -0
  493. package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.d.ts.map +1 -0
  494. package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.js +128 -0
  495. package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.js.map +1 -0
  496. package/dist/lexical-text-editor/plugins/toolbar-plugin.d.ts +8 -0
  497. package/dist/lexical-text-editor/plugins/toolbar-plugin.d.ts.map +1 -0
  498. package/dist/lexical-text-editor/plugins/toolbar-plugin.js +51 -0
  499. package/dist/lexical-text-editor/plugins/toolbar-plugin.js.map +1 -0
  500. package/dist/lexical-text-editor/sanitize.d.ts +24 -0
  501. package/dist/lexical-text-editor/sanitize.d.ts.map +1 -0
  502. package/dist/lexical-text-editor/sanitize.js +140 -0
  503. package/dist/lexical-text-editor/sanitize.js.map +1 -0
  504. package/dist/lib/format.d.ts +17 -0
  505. package/dist/lib/format.d.ts.map +1 -0
  506. package/dist/lib/format.js +40 -0
  507. package/dist/lib/format.js.map +1 -0
  508. package/dist/lib/leading-space.d.ts +28 -0
  509. package/dist/lib/leading-space.d.ts.map +1 -0
  510. package/dist/lib/leading-space.js +34 -0
  511. package/dist/lib/leading-space.js.map +1 -0
  512. package/dist/lib/utils.d.ts +3 -0
  513. package/dist/lib/utils.d.ts.map +1 -0
  514. package/dist/lib/utils.js +4 -0
  515. package/dist/lib/utils.js.map +1 -0
  516. package/dist/lib/xlsx.d.ts +80 -0
  517. package/dist/lib/xlsx.d.ts.map +1 -0
  518. package/dist/lib/xlsx.js +377 -0
  519. package/dist/lib/xlsx.js.map +1 -0
  520. package/dist/search-engine/build-query.d.ts +29 -0
  521. package/dist/search-engine/build-query.d.ts.map +1 -0
  522. package/dist/search-engine/build-query.js +51 -0
  523. package/dist/search-engine/build-query.js.map +1 -0
  524. package/dist/search-engine/index.d.ts +15 -0
  525. package/dist/search-engine/index.d.ts.map +1 -0
  526. package/dist/search-engine/index.js +13 -0
  527. package/dist/search-engine/index.js.map +1 -0
  528. package/dist/search-engine/smart-search-form.d.ts +92 -0
  529. package/dist/search-engine/smart-search-form.d.ts.map +1 -0
  530. package/dist/search-engine/smart-search-form.js +136 -0
  531. package/dist/search-engine/smart-search-form.js.map +1 -0
  532. package/dist/search-engine/types.d.ts +40 -0
  533. package/dist/search-engine/types.d.ts.map +1 -0
  534. package/dist/search-engine/types.js +11 -0
  535. package/dist/search-engine/types.js.map +1 -0
  536. package/dist/smart-components/buttons/action-button.d.ts +66 -0
  537. package/dist/smart-components/buttons/action-button.d.ts.map +1 -0
  538. package/dist/smart-components/buttons/action-button.js +79 -0
  539. package/dist/smart-components/buttons/action-button.js.map +1 -0
  540. package/dist/smart-components/buttons/action-buttons.d.ts +122 -0
  541. package/dist/smart-components/buttons/action-buttons.d.ts.map +1 -0
  542. package/dist/smart-components/buttons/action-buttons.js +42 -0
  543. package/dist/smart-components/buttons/action-buttons.js.map +1 -0
  544. package/dist/smart-components/buttons/action-config.d.ts +181 -0
  545. package/dist/smart-components/buttons/action-config.d.ts.map +1 -0
  546. package/dist/smart-components/buttons/action-config.js +128 -0
  547. package/dist/smart-components/buttons/action-config.js.map +1 -0
  548. package/dist/smart-components/buttons/index.d.ts +4 -0
  549. package/dist/smart-components/buttons/index.d.ts.map +1 -0
  550. package/dist/smart-components/buttons/index.js +7 -0
  551. package/dist/smart-components/buttons/index.js.map +1 -0
  552. package/dist/smart-components/loading-overlay.d.ts +16 -0
  553. package/dist/smart-components/loading-overlay.d.ts.map +1 -0
  554. package/dist/smart-components/loading-overlay.js +13 -0
  555. package/dist/smart-components/loading-overlay.js.map +1 -0
  556. package/dist/smart-components/page/index.d.ts +19 -0
  557. package/dist/smart-components/page/index.d.ts.map +1 -0
  558. package/dist/smart-components/page/index.js +33 -0
  559. package/dist/smart-components/page/index.js.map +1 -0
  560. package/dist/smart-components/page/layouts/page-states.d.ts +17 -0
  561. package/dist/smart-components/page/layouts/page-states.d.ts.map +1 -0
  562. package/dist/smart-components/page/layouts/page-states.js +12 -0
  563. package/dist/smart-components/page/layouts/page-states.js.map +1 -0
  564. package/dist/smart-components/page/layouts/slot-buckets.d.ts +21 -0
  565. package/dist/smart-components/page/layouts/slot-buckets.d.ts.map +1 -0
  566. package/dist/smart-components/page/layouts/slot-buckets.js +2 -0
  567. package/dist/smart-components/page/layouts/slot-buckets.js.map +1 -0
  568. package/dist/smart-components/page/layouts/split-layout.d.ts +13 -0
  569. package/dist/smart-components/page/layouts/split-layout.d.ts.map +1 -0
  570. package/dist/smart-components/page/layouts/split-layout.js +14 -0
  571. package/dist/smart-components/page/layouts/split-layout.js.map +1 -0
  572. package/dist/smart-components/page/layouts/standard-layout.d.ts +18 -0
  573. package/dist/smart-components/page/layouts/standard-layout.d.ts.map +1 -0
  574. package/dist/smart-components/page/layouts/standard-layout.js +61 -0
  575. package/dist/smart-components/page/layouts/standard-layout.js.map +1 -0
  576. package/dist/smart-components/page/page-context.d.ts +51 -0
  577. package/dist/smart-components/page/page-context.d.ts.map +1 -0
  578. package/dist/smart-components/page/page-context.js +21 -0
  579. package/dist/smart-components/page/page-context.js.map +1 -0
  580. package/dist/smart-components/page/slot.d.ts +19 -0
  581. package/dist/smart-components/page/slot.d.ts.map +1 -0
  582. package/dist/smart-components/page/slot.js +18 -0
  583. package/dist/smart-components/page/slot.js.map +1 -0
  584. package/dist/smart-components/page/smart-grid-area.d.ts +75 -0
  585. package/dist/smart-components/page/smart-grid-area.d.ts.map +1 -0
  586. package/dist/smart-components/page/smart-grid-area.js +61 -0
  587. package/dist/smart-components/page/smart-grid-area.js.map +1 -0
  588. package/dist/smart-components/page/smart-page-container.d.ts +66 -0
  589. package/dist/smart-components/page/smart-page-container.d.ts.map +1 -0
  590. package/dist/smart-components/page/smart-page-container.js +93 -0
  591. package/dist/smart-components/page/smart-page-container.js.map +1 -0
  592. package/dist/smart-components/page/smart-page-content.d.ts +70 -0
  593. package/dist/smart-components/page/smart-page-content.d.ts.map +1 -0
  594. package/dist/smart-components/page/smart-page-content.js +78 -0
  595. package/dist/smart-components/page/smart-page-content.js.map +1 -0
  596. package/dist/smart-components/page/smart-page-empty.d.ts +47 -0
  597. package/dist/smart-components/page/smart-page-empty.d.ts.map +1 -0
  598. package/dist/smart-components/page/smart-page-empty.js +37 -0
  599. package/dist/smart-components/page/smart-page-empty.js.map +1 -0
  600. package/dist/smart-components/page/smart-page-error.d.ts +59 -0
  601. package/dist/smart-components/page/smart-page-error.d.ts.map +1 -0
  602. package/dist/smart-components/page/smart-page-error.js +45 -0
  603. package/dist/smart-components/page/smart-page-error.js.map +1 -0
  604. package/dist/smart-components/page/smart-page-filters.d.ts +38 -0
  605. package/dist/smart-components/page/smart-page-filters.d.ts.map +1 -0
  606. package/dist/smart-components/page/smart-page-filters.js +33 -0
  607. package/dist/smart-components/page/smart-page-filters.js.map +1 -0
  608. package/dist/smart-components/page/smart-page-footer.d.ts +49 -0
  609. package/dist/smart-components/page/smart-page-footer.d.ts.map +1 -0
  610. package/dist/smart-components/page/smart-page-footer.js +49 -0
  611. package/dist/smart-components/page/smart-page-footer.js.map +1 -0
  612. package/dist/smart-components/page/smart-page-header.d.ts +145 -0
  613. package/dist/smart-components/page/smart-page-header.d.ts.map +1 -0
  614. package/dist/smart-components/page/smart-page-header.js +129 -0
  615. package/dist/smart-components/page/smart-page-header.js.map +1 -0
  616. package/dist/smart-components/page/smart-page-hero.d.ts +43 -0
  617. package/dist/smart-components/page/smart-page-hero.d.ts.map +1 -0
  618. package/dist/smart-components/page/smart-page-hero.js +42 -0
  619. package/dist/smart-components/page/smart-page-hero.js.map +1 -0
  620. package/dist/smart-components/page/smart-page-loading.d.ts +31 -0
  621. package/dist/smart-components/page/smart-page-loading.d.ts.map +1 -0
  622. package/dist/smart-components/page/smart-page-loading.js +29 -0
  623. package/dist/smart-components/page/smart-page-loading.js.map +1 -0
  624. package/dist/smart-components/page/smart-page-search.d.ts +39 -0
  625. package/dist/smart-components/page/smart-page-search.d.ts.map +1 -0
  626. package/dist/smart-components/page/smart-page-search.js +38 -0
  627. package/dist/smart-components/page/smart-page-search.js.map +1 -0
  628. package/dist/smart-components/page/smart-page-section.d.ts +55 -0
  629. package/dist/smart-components/page/smart-page-section.d.ts.map +1 -0
  630. package/dist/smart-components/page/smart-page-section.js +41 -0
  631. package/dist/smart-components/page/smart-page-section.js.map +1 -0
  632. package/dist/smart-components/page/smart-page-status-bar.d.ts +34 -0
  633. package/dist/smart-components/page/smart-page-status-bar.d.ts.map +1 -0
  634. package/dist/smart-components/page/smart-page-status-bar.js +33 -0
  635. package/dist/smart-components/page/smart-page-status-bar.js.map +1 -0
  636. package/dist/smart-components/page/smart-page-tabs.d.ts +93 -0
  637. package/dist/smart-components/page/smart-page-tabs.d.ts.map +1 -0
  638. package/dist/smart-components/page/smart-page-tabs.js +87 -0
  639. package/dist/smart-components/page/smart-page-tabs.js.map +1 -0
  640. package/dist/smart-components/page/smart-page.d.ts +141 -0
  641. package/dist/smart-components/page/smart-page.d.ts.map +1 -0
  642. package/dist/smart-components/page/smart-page.js +295 -0
  643. package/dist/smart-components/page/smart-page.js.map +1 -0
  644. package/dist/smart-components/page/smart-sidebar.d.ts +70 -0
  645. package/dist/smart-components/page/smart-sidebar.d.ts.map +1 -0
  646. package/dist/smart-components/page/smart-sidebar.js +54 -0
  647. package/dist/smart-components/page/smart-sidebar.js.map +1 -0
  648. package/dist/smart-components/page/smart-toolbar.d.ts +40 -0
  649. package/dist/smart-components/page/smart-toolbar.d.ts.map +1 -0
  650. package/dist/smart-components/page/smart-toolbar.js +39 -0
  651. package/dist/smart-components/page/smart-toolbar.js.map +1 -0
  652. package/dist/smart-components/search-input.d.ts +20 -0
  653. package/dist/smart-components/search-input.d.ts.map +1 -0
  654. package/dist/smart-components/search-input.js +12 -0
  655. package/dist/smart-components/search-input.js.map +1 -0
  656. package/dist/smart-components/smart-accordion.d.ts +53 -0
  657. package/dist/smart-components/smart-accordion.d.ts.map +1 -0
  658. package/dist/smart-components/smart-accordion.js +33 -0
  659. package/dist/smart-components/smart-accordion.js.map +1 -0
  660. package/dist/smart-components/smart-alert.d.ts +44 -0
  661. package/dist/smart-components/smart-alert.d.ts.map +1 -0
  662. package/dist/smart-components/smart-alert.js +27 -0
  663. package/dist/smart-components/smart-alert.js.map +1 -0
  664. package/dist/smart-components/smart-avatar.d.ts +3 -0
  665. package/dist/smart-components/smart-avatar.d.ts.map +1 -0
  666. package/dist/smart-components/smart-avatar.js +4 -0
  667. package/dist/smart-components/smart-avatar.js.map +1 -0
  668. package/dist/smart-components/smart-badge.d.ts +28 -0
  669. package/dist/smart-components/smart-badge.d.ts.map +1 -0
  670. package/dist/smart-components/smart-badge.js +24 -0
  671. package/dist/smart-components/smart-badge.js.map +1 -0
  672. package/dist/smart-components/smart-breadcrumb.d.ts +43 -0
  673. package/dist/smart-components/smart-breadcrumb.d.ts.map +1 -0
  674. package/dist/smart-components/smart-breadcrumb.js +37 -0
  675. package/dist/smart-components/smart-breadcrumb.js.map +1 -0
  676. package/dist/smart-components/smart-button.d.ts +22 -0
  677. package/dist/smart-components/smart-button.d.ts.map +1 -0
  678. package/dist/smart-components/smart-button.js +15 -0
  679. package/dist/smart-components/smart-button.js.map +1 -0
  680. package/dist/smart-components/smart-calendar.d.ts +78 -0
  681. package/dist/smart-components/smart-calendar.d.ts.map +1 -0
  682. package/dist/smart-components/smart-calendar.js +45 -0
  683. package/dist/smart-components/smart-calendar.js.map +1 -0
  684. package/dist/smart-components/smart-card.d.ts +55 -0
  685. package/dist/smart-components/smart-card.d.ts.map +1 -0
  686. package/dist/smart-components/smart-card.js +37 -0
  687. package/dist/smart-components/smart-card.js.map +1 -0
  688. package/dist/smart-components/smart-checkbox-group.d.ts +48 -0
  689. package/dist/smart-components/smart-checkbox-group.d.ts.map +1 -0
  690. package/dist/smart-components/smart-checkbox-group.js +48 -0
  691. package/dist/smart-components/smart-checkbox-group.js.map +1 -0
  692. package/dist/smart-components/smart-checkbox.d.ts +34 -0
  693. package/dist/smart-components/smart-checkbox.d.ts.map +1 -0
  694. package/dist/smart-components/smart-checkbox.js +34 -0
  695. package/dist/smart-components/smart-checkbox.js.map +1 -0
  696. package/dist/smart-components/smart-combobox.d.ts +36 -0
  697. package/dist/smart-components/smart-combobox.d.ts.map +1 -0
  698. package/dist/smart-components/smart-combobox.js +32 -0
  699. package/dist/smart-components/smart-combobox.js.map +1 -0
  700. package/dist/smart-components/smart-confirm-dialog.d.ts +63 -0
  701. package/dist/smart-components/smart-confirm-dialog.d.ts.map +1 -0
  702. package/dist/smart-components/smart-confirm-dialog.js +45 -0
  703. package/dist/smart-components/smart-confirm-dialog.js.map +1 -0
  704. package/dist/smart-components/smart-context-menu.d.ts +58 -0
  705. package/dist/smart-components/smart-context-menu.d.ts.map +1 -0
  706. package/dist/smart-components/smart-context-menu.js +38 -0
  707. package/dist/smart-components/smart-context-menu.js.map +1 -0
  708. package/dist/smart-components/smart-date-picker.d.ts +99 -0
  709. package/dist/smart-components/smart-date-picker.d.ts.map +1 -0
  710. package/dist/smart-components/smart-date-picker.js +78 -0
  711. package/dist/smart-components/smart-date-picker.js.map +1 -0
  712. package/dist/smart-components/smart-date-range-picker.d.ts +37 -0
  713. package/dist/smart-components/smart-date-range-picker.d.ts.map +1 -0
  714. package/dist/smart-components/smart-date-range-picker.js +38 -0
  715. package/dist/smart-components/smart-date-range-picker.js.map +1 -0
  716. package/dist/smart-components/smart-dialog.d.ts +75 -0
  717. package/dist/smart-components/smart-dialog.d.ts.map +1 -0
  718. package/dist/smart-components/smart-dialog.js +61 -0
  719. package/dist/smart-components/smart-dialog.js.map +1 -0
  720. package/dist/smart-components/smart-drawer.d.ts +48 -0
  721. package/dist/smart-components/smart-drawer.d.ts.map +1 -0
  722. package/dist/smart-components/smart-drawer.js +32 -0
  723. package/dist/smart-components/smart-drawer.js.map +1 -0
  724. package/dist/smart-components/smart-field.d.ts +47 -0
  725. package/dist/smart-components/smart-field.d.ts.map +1 -0
  726. package/dist/smart-components/smart-field.js +44 -0
  727. package/dist/smart-components/smart-field.js.map +1 -0
  728. package/dist/smart-components/smart-input-group.d.ts +60 -0
  729. package/dist/smart-components/smart-input-group.d.ts.map +1 -0
  730. package/dist/smart-components/smart-input-group.js +40 -0
  731. package/dist/smart-components/smart-input-group.js.map +1 -0
  732. package/dist/smart-components/smart-input.d.ts +46 -0
  733. package/dist/smart-components/smart-input.d.ts.map +1 -0
  734. package/dist/smart-components/smart-input.js +36 -0
  735. package/dist/smart-components/smart-input.js.map +1 -0
  736. package/dist/smart-components/smart-label.d.ts +22 -0
  737. package/dist/smart-components/smart-label.d.ts.map +1 -0
  738. package/dist/smart-components/smart-label.js +17 -0
  739. package/dist/smart-components/smart-label.js.map +1 -0
  740. package/dist/smart-components/smart-month-picker.d.ts +30 -0
  741. package/dist/smart-components/smart-month-picker.d.ts.map +1 -0
  742. package/dist/smart-components/smart-month-picker.js +53 -0
  743. package/dist/smart-components/smart-month-picker.js.map +1 -0
  744. package/dist/smart-components/smart-multi-select.d.ts +38 -0
  745. package/dist/smart-components/smart-multi-select.d.ts.map +1 -0
  746. package/dist/smart-components/smart-multi-select.js +56 -0
  747. package/dist/smart-components/smart-multi-select.js.map +1 -0
  748. package/dist/smart-components/smart-native-select.d.ts +45 -0
  749. package/dist/smart-components/smart-native-select.d.ts.map +1 -0
  750. package/dist/smart-components/smart-native-select.js +33 -0
  751. package/dist/smart-components/smart-native-select.js.map +1 -0
  752. package/dist/smart-components/smart-nav-sidebar.d.ts +47 -0
  753. package/dist/smart-components/smart-nav-sidebar.d.ts.map +1 -0
  754. package/dist/smart-components/smart-nav-sidebar.js +37 -0
  755. package/dist/smart-components/smart-nav-sidebar.js.map +1 -0
  756. package/dist/smart-components/smart-password-input.d.ts +31 -0
  757. package/dist/smart-components/smart-password-input.d.ts.map +1 -0
  758. package/dist/smart-components/smart-password-input.js +30 -0
  759. package/dist/smart-components/smart-password-input.js.map +1 -0
  760. package/dist/smart-components/smart-radio-group.d.ts +58 -0
  761. package/dist/smart-components/smart-radio-group.d.ts.map +1 -0
  762. package/dist/smart-components/smart-radio-group.js +49 -0
  763. package/dist/smart-components/smart-radio-group.js.map +1 -0
  764. package/dist/smart-components/smart-segmented.d.ts +33 -0
  765. package/dist/smart-components/smart-segmented.d.ts.map +1 -0
  766. package/dist/smart-components/smart-segmented.js +25 -0
  767. package/dist/smart-components/smart-segmented.js.map +1 -0
  768. package/dist/smart-components/smart-select.d.ts +71 -0
  769. package/dist/smart-components/smart-select.d.ts.map +1 -0
  770. package/dist/smart-components/smart-select.js +44 -0
  771. package/dist/smart-components/smart-select.js.map +1 -0
  772. package/dist/smart-components/smart-separator.d.ts +3 -0
  773. package/dist/smart-components/smart-separator.d.ts.map +1 -0
  774. package/dist/smart-components/smart-separator.js +4 -0
  775. package/dist/smart-components/smart-separator.js.map +1 -0
  776. package/dist/smart-components/smart-sheet.d.ts +79 -0
  777. package/dist/smart-components/smart-sheet.d.ts.map +1 -0
  778. package/dist/smart-components/smart-sheet.js +47 -0
  779. package/dist/smart-components/smart-sheet.js.map +1 -0
  780. package/dist/smart-components/smart-stat-card.d.ts +47 -0
  781. package/dist/smart-components/smart-stat-card.d.ts.map +1 -0
  782. package/dist/smart-components/smart-stat-card.js +35 -0
  783. package/dist/smart-components/smart-stat-card.js.map +1 -0
  784. package/dist/smart-components/smart-stepper.d.ts +24 -0
  785. package/dist/smart-components/smart-stepper.d.ts.map +1 -0
  786. package/dist/smart-components/smart-stepper.js +24 -0
  787. package/dist/smart-components/smart-stepper.js.map +1 -0
  788. package/dist/smart-components/smart-switch.d.ts +34 -0
  789. package/dist/smart-components/smart-switch.d.ts.map +1 -0
  790. package/dist/smart-components/smart-switch.js +34 -0
  791. package/dist/smart-components/smart-switch.js.map +1 -0
  792. package/dist/smart-components/smart-textarea.d.ts +38 -0
  793. package/dist/smart-components/smart-textarea.d.ts.map +1 -0
  794. package/dist/smart-components/smart-textarea.js +28 -0
  795. package/dist/smart-components/smart-textarea.js.map +1 -0
  796. package/dist/smart-components/smart-time-picker.d.ts +59 -0
  797. package/dist/smart-components/smart-time-picker.d.ts.map +1 -0
  798. package/dist/smart-components/smart-time-picker.js +129 -0
  799. package/dist/smart-components/smart-time-picker.js.map +1 -0
  800. package/dist/smart-components/smart-time-range-picker.d.ts +39 -0
  801. package/dist/smart-components/smart-time-range-picker.d.ts.map +1 -0
  802. package/dist/smart-components/smart-time-range-picker.js +26 -0
  803. package/dist/smart-components/smart-time-range-picker.js.map +1 -0
  804. package/dist/smart-components/smart-toaster.d.ts +10 -0
  805. package/dist/smart-components/smart-toaster.d.ts.map +1 -0
  806. package/dist/smart-components/smart-toaster.js +21 -0
  807. package/dist/smart-components/smart-toaster.js.map +1 -0
  808. package/dist/smart-components/smart-year-picker.d.ts +29 -0
  809. package/dist/smart-components/smart-year-picker.d.ts.map +1 -0
  810. package/dist/smart-components/smart-year-picker.js +43 -0
  811. package/dist/smart-components/smart-year-picker.js.map +1 -0
  812. package/dist/smart-components/spinner.d.ts +10 -0
  813. package/dist/smart-components/spinner.d.ts.map +1 -0
  814. package/dist/smart-components/spinner.js +5 -0
  815. package/dist/smart-components/spinner.js.map +1 -0
  816. package/dist/transfer-list-engine/index.d.ts +5 -0
  817. package/dist/transfer-list-engine/index.d.ts.map +1 -0
  818. package/dist/transfer-list-engine/index.js +3 -0
  819. package/dist/transfer-list-engine/index.js.map +1 -0
  820. package/dist/transfer-list-engine/transfer-list.d.ts +53 -0
  821. package/dist/transfer-list-engine/transfer-list.d.ts.map +1 -0
  822. package/dist/transfer-list-engine/transfer-list.js +190 -0
  823. package/dist/transfer-list-engine/transfer-list.js.map +1 -0
  824. package/dist/transfer-list-engine/transfer-utils.d.ts +30 -0
  825. package/dist/transfer-list-engine/transfer-utils.d.ts.map +1 -0
  826. package/dist/transfer-list-engine/transfer-utils.js +69 -0
  827. package/dist/transfer-list-engine/transfer-utils.js.map +1 -0
  828. package/dist/transfer-list-engine/types.d.ts +51 -0
  829. package/dist/transfer-list-engine/types.d.ts.map +1 -0
  830. package/dist/transfer-list-engine/types.js +2 -0
  831. package/dist/transfer-list-engine/types.js.map +1 -0
  832. package/dist/tree-engine/index.d.ts +6 -0
  833. package/dist/tree-engine/index.d.ts.map +1 -0
  834. package/dist/tree-engine/index.js +3 -0
  835. package/dist/tree-engine/index.js.map +1 -0
  836. package/dist/tree-engine/tree-utils.d.ts +84 -0
  837. package/dist/tree-engine/tree-utils.d.ts.map +1 -0
  838. package/dist/tree-engine/tree-utils.js +271 -0
  839. package/dist/tree-engine/tree-utils.js.map +1 -0
  840. package/dist/tree-engine/tree.d.ts +98 -0
  841. package/dist/tree-engine/tree.d.ts.map +1 -0
  842. package/dist/tree-engine/tree.js +430 -0
  843. package/dist/tree-engine/tree.js.map +1 -0
  844. package/dist/tree-engine/types.d.ts +85 -0
  845. package/dist/tree-engine/types.d.ts.map +1 -0
  846. package/dist/tree-engine/types.js +2 -0
  847. package/dist/tree-engine/types.js.map +1 -0
  848. package/dist/tree-engine/use-tree.d.ts +12 -0
  849. package/dist/tree-engine/use-tree.d.ts.map +1 -0
  850. package/dist/tree-engine/use-tree.js +34 -0
  851. package/dist/tree-engine/use-tree.js.map +1 -0
  852. package/package.json +158 -0
  853. package/src/styles/globals.css +161 -0
@@ -0,0 +1,78 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "@iamsaroj/smart-ui/lib/utils";
5
+ import { usePageContext } from "./page-context";
6
+ import { SMART_PAGE_SLOT } from "./smart-page";
7
+ const PADDING_CLASSES = {
8
+ none: "",
9
+ sm: "p-3",
10
+ // Trim the top padding so content sits close to the page header (whose own
11
+ // py-4 already contributes ~16px). Sides/bottom keep the full padding.
12
+ md: "p-4 pt-2 md:px-6 md:pt-2 md:pb-6",
13
+ lg: "p-6 pt-3 md:px-8 md:pt-3 md:pb-8",
14
+ };
15
+ const MAX_WIDTH_CLASSES = {
16
+ sm: "max-w-sm",
17
+ md: "max-w-2xl",
18
+ lg: "max-w-4xl",
19
+ xl: "max-w-6xl",
20
+ "2xl": "max-w-7xl",
21
+ full: "w-full max-w-none",
22
+ };
23
+ /**
24
+ * Main content area of the page.
25
+ *
26
+ * SmartPageContent adapts its behaviour based on the scroll mode set by
27
+ * the parent {@link SmartPage}:
28
+ *
29
+ * | Scroll mode | Behaviour |
30
+ * |-------------|--------------------------------------------------------|
31
+ * | `"page"` | Grows to fill remaining space; page scrolls naturally |
32
+ * | `"content"` | Becomes the scroll container (`flex-1 overflow-y-auto`) |
33
+ * | `"grid"` | Grows; no scroll (grid manages its own) |
34
+ * | `"none"` | Grows; no scroll at all |
35
+ *
36
+ * The `"content"` mode is the critical one: the outer container is
37
+ * `overflow-hidden` (preventing page scroll) while SmartPageContent
38
+ * has `overflow-y-auto`, creating exactly one scrollbar on the inner area.
39
+ *
40
+ * ## max-width and centering
41
+ * For document and settings pages, pass `maxWidth` to constrain the reading
42
+ * width and `centered` to horizontally centre the content block.
43
+ *
44
+ * @example Document page with centred content
45
+ * ```tsx
46
+ * <SmartPage layout="document">
47
+ * <SmartPageHeader>…</SmartPageHeader>
48
+ * <SmartPageContent maxWidth="2xl" centered>
49
+ * <SmartPageSection title="Profile">…</SmartPageSection>
50
+ * </SmartPageContent>
51
+ * </SmartPage>
52
+ * ```
53
+ *
54
+ * @example Settings page (detail layout, scrollable body)
55
+ * ```tsx
56
+ * <SmartPage layout="detail">
57
+ * <SmartPageHeader>…</SmartPageHeader>
58
+ * <SmartPageContent maxWidth="xl" centered>
59
+ * <SettingsForm />
60
+ * </SmartPageContent>
61
+ * </SmartPage>
62
+ * ```
63
+ */
64
+ export const SmartPageContent = React.forwardRef(({ padding: localPadding, maxWidth, centered = false, className, children, ...props }, ref) => {
65
+ const { scroll, padding: ctxPadding, fullWidth } = usePageContext();
66
+ const resolvedPadding = localPadding === true
67
+ ? "md"
68
+ : localPadding === false
69
+ ? "none"
70
+ : (localPadding ?? ctxPadding);
71
+ const isScrollContainer = scroll === "content";
72
+ const outerClasses = cn("flex-1", isScrollContainer && "min-h-0 overflow-y-auto", className);
73
+ const innerClasses = cn(PADDING_CLASSES[resolvedPadding], !fullWidth && maxWidth && MAX_WIDTH_CLASSES[maxWidth], (centered || (!fullWidth && maxWidth)) && "mx-auto");
74
+ return (_jsx("div", { ref: ref, "data-slot": "page-content", className: outerClasses, ...props, children: innerClasses ? (_jsx("div", { className: innerClasses, children: children })) : (children) }));
75
+ });
76
+ SmartPageContent[SMART_PAGE_SLOT] =
77
+ "content";
78
+ //# sourceMappingURL=smart-page-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-content.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-content.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAoB,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,eAAe,GAAgC;IACnD,IAAI,EAAE,EAAE;IACR,EAAE,EAAE,KAAK;IACT,2EAA2E;IAC3E,uEAAuE;IACvE,EAAE,EAAE,kCAAkC;IACtC,EAAE,EAAE,kCAAkC;CACvC,CAAA;AAED,MAAM,iBAAiB,GAAG;IACxB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,mBAAmB;CACjB,CAAA;AAmBV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAI9C,CACE,EACE,OAAO,EAAE,YAAY,EACrB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAA;IAEnE,MAAM,eAAe,GACnB,YAAY,KAAK,IAAI;QACnB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,YAAY,KAAK,KAAK;YACtB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,CAAC,CAAA;IAEpC,MAAM,iBAAiB,GAAG,MAAM,KAAK,SAAS,CAAA;IAE9C,MAAM,YAAY,GAAG,EAAE,CACrB,QAAQ,EACR,iBAAiB,IAAI,yBAAyB,EAC9C,SAAS,CACV,CAAA;IAED,MAAM,YAAY,GAAG,EAAE,CACrB,eAAe,CAAC,eAAe,CAAC,EAChC,CAAC,SAAS,IAAI,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,EACrD,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,IAAI,SAAS,CACpD,CAAA;IAED,OAAO,CACL,cACE,GAAG,EAAE,GAAG,eACE,cAAc,EACxB,SAAS,EAAE,YAAY,KACnB,KAAK,YAER,YAAY,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAE,YAAY,YAAG,QAAQ,GAAO,CAC/C,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACG,CACP,CAAA;AACH,CAAC,CACF,CACA;AAAC,gBAAuD,CAAC,eAAe,CAAC;IACxE,SAAS,CAAA"}
@@ -0,0 +1,47 @@
1
+ import * as React from "react";
2
+ export interface SmartPageEmptyProps {
3
+ /** Illustrative icon rendered above the title. */
4
+ icon?: React.ReactNode;
5
+ /** Short headline (required). */
6
+ title: string;
7
+ /** Supporting sentence that explains the empty state. */
8
+ description?: React.ReactNode;
9
+ /** Call-to-action (e.g. a Button to create the first item). */
10
+ action?: React.ReactNode;
11
+ /** Additional class names on the root element. */
12
+ className?: string;
13
+ }
14
+ /**
15
+ * Full-page empty state.
16
+ *
17
+ * Used when a page's primary data set returns no results — whether because
18
+ * the user has no items yet, a search/filter found nothing, or the view is
19
+ * genuinely empty.
20
+ *
21
+ * Render it inside {@link SmartPageContent} or pass it to SmartPage's `empty`
22
+ * prop for automatic placement:
23
+ *
24
+ * ```tsx
25
+ * <SmartPage empty={data.length === 0 ? <SmartPageEmpty title="No users" … /> : undefined}>
26
+ * …
27
+ * </SmartPage>
28
+ * ```
29
+ *
30
+ * ## Standalone usage (inside SmartPageContent)
31
+ * ```tsx
32
+ * <SmartPageContent>
33
+ * {data.length === 0 ? (
34
+ * <SmartPageEmpty
35
+ * icon={<Users />}
36
+ * title="No team members yet"
37
+ * description="Invite your first team member to get started."
38
+ * action={<Button><UserPlus /> Invite member</Button>}
39
+ * />
40
+ * ) : (
41
+ * <MemberList data={data} />
42
+ * )}
43
+ * </SmartPageContent>
44
+ * ```
45
+ */
46
+ export declare const SmartPageEmpty: ({ icon, title, description, action, className, }: SmartPageEmptyProps) => import("react/jsx-runtime").JSX.Element;
47
+ //# sourceMappingURL=smart-page-empty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-empty.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-empty.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,cAAc,GAAI,kDAM5B,mBAAmB,4CAuBrB,CAAA"}
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@iamsaroj/smart-ui/lib/utils";
4
+ /**
5
+ * Full-page empty state.
6
+ *
7
+ * Used when a page's primary data set returns no results — whether because
8
+ * the user has no items yet, a search/filter found nothing, or the view is
9
+ * genuinely empty.
10
+ *
11
+ * Render it inside {@link SmartPageContent} or pass it to SmartPage's `empty`
12
+ * prop for automatic placement:
13
+ *
14
+ * ```tsx
15
+ * <SmartPage empty={data.length === 0 ? <SmartPageEmpty title="No users" … /> : undefined}>
16
+ * …
17
+ * </SmartPage>
18
+ * ```
19
+ *
20
+ * ## Standalone usage (inside SmartPageContent)
21
+ * ```tsx
22
+ * <SmartPageContent>
23
+ * {data.length === 0 ? (
24
+ * <SmartPageEmpty
25
+ * icon={<Users />}
26
+ * title="No team members yet"
27
+ * description="Invite your first team member to get started."
28
+ * action={<Button><UserPlus /> Invite member</Button>}
29
+ * />
30
+ * ) : (
31
+ * <MemberList data={data} />
32
+ * )}
33
+ * </SmartPageContent>
34
+ * ```
35
+ */
36
+ export const SmartPageEmpty = ({ icon, title, description, action, className, }) => (_jsxs("div", { role: "status", className: cn("flex h-full min-h-60 flex-col items-center justify-center gap-4 rounded-lg border border-dashed p-10 text-center", className), children: [icon && (_jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground [&>svg]:size-6", children: icon })), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("h3", { className: "text-sm font-semibold", children: title }), description && (_jsx("p", { className: "mx-auto max-w-sm text-xs text-muted-foreground", children: description }))] }), action && _jsx("div", { className: "pt-1", children: action })] }));
37
+ //# sourceMappingURL=smart-page-empty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-empty.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-empty.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AAejD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,GACW,EAAE,EAAE,CAAC,CACzB,eACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,EAAE,CACX,kHAAkH,EAClH,SAAS,CACV,aAEA,IAAI,IAAI,CACP,cAAK,SAAS,EAAC,qGAAqG,YACjH,IAAI,GACD,CACP,EACD,eAAK,SAAS,EAAC,qBAAqB,aAClC,aAAI,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAM,EACjD,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,gDAAgD,YAC1D,WAAW,GACV,CACL,IACG,EACL,MAAM,IAAI,cAAK,SAAS,EAAC,MAAM,YAAE,MAAM,GAAO,IAC3C,CACP,CAAA"}
@@ -0,0 +1,59 @@
1
+ import * as React from "react";
2
+ export interface SmartPageErrorProps {
3
+ /** Short headline describing the error. @default "Something went wrong" */
4
+ title?: string;
5
+ /** Detailed message or guidance. */
6
+ description?: React.ReactNode;
7
+ /**
8
+ * Called when the user clicks the "Try again" button.
9
+ * When omitted, the retry button is not rendered.
10
+ */
11
+ onRetry?: () => void;
12
+ /** Label for the retry button. @default "Try again" */
13
+ retryLabel?: string;
14
+ /**
15
+ * Visual treatment:
16
+ * - `"page"` (default) — a full-height dashed panel for a page's primary
17
+ * error slot.
18
+ * - `"overlay"` — an absolutely-positioned, backdrop-blurred card that covers
19
+ * its (relatively-positioned) parent. Use over content that failed to
20
+ * refresh, e.g. inside a data grid.
21
+ * @default "page"
22
+ */
23
+ variant?: "page" | "overlay";
24
+ /** Additional class names on the root element. */
25
+ className?: string;
26
+ }
27
+ /**
28
+ * Full-page error state.
29
+ *
30
+ * Shown when a page fails to load its primary data set — network errors,
31
+ * server errors, or permission denied. Offers an optional retry callback
32
+ * and a consistent visual treatment across all page types.
33
+ *
34
+ * ## Usage
35
+ * Pass to SmartPage's `error` prop for automatic placement:
36
+ *
37
+ * ```tsx
38
+ * <SmartPage
39
+ * error={isError ? (
40
+ * <SmartPageError
41
+ * title="Failed to load users"
42
+ * description={error.message}
43
+ * onRetry={refetch}
44
+ * />
45
+ * ) : undefined}
46
+ * >
47
+ * …children…
48
+ * </SmartPage>
49
+ * ```
50
+ *
51
+ * Or render it directly:
52
+ * ```tsx
53
+ * <SmartPageContent>
54
+ * {isError ? <SmartPageError onRetry={refetch} /> : <DataView />}
55
+ * </SmartPageContent>
56
+ * ```
57
+ */
58
+ export declare const SmartPageError: ({ title, description, onRetry, retryLabel, variant, className, }: SmartPageErrorProps) => import("react/jsx-runtime").JSX.Element;
59
+ //# sourceMappingURL=smart-page-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-error.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-error.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,mBAAmB;IAClC,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oCAAoC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,cAAc,GAAI,kEAO5B,mBAAmB,4CAqCrB,CAAA"}
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { AlertCircle, RefreshCw } from "lucide-react";
4
+ import { cn } from "@iamsaroj/smart-ui/lib/utils";
5
+ import { Button } from "@iamsaroj/smart-ui/components/button";
6
+ /**
7
+ * Full-page error state.
8
+ *
9
+ * Shown when a page fails to load its primary data set — network errors,
10
+ * server errors, or permission denied. Offers an optional retry callback
11
+ * and a consistent visual treatment across all page types.
12
+ *
13
+ * ## Usage
14
+ * Pass to SmartPage's `error` prop for automatic placement:
15
+ *
16
+ * ```tsx
17
+ * <SmartPage
18
+ * error={isError ? (
19
+ * <SmartPageError
20
+ * title="Failed to load users"
21
+ * description={error.message}
22
+ * onRetry={refetch}
23
+ * />
24
+ * ) : undefined}
25
+ * >
26
+ * …children…
27
+ * </SmartPage>
28
+ * ```
29
+ *
30
+ * Or render it directly:
31
+ * ```tsx
32
+ * <SmartPageContent>
33
+ * {isError ? <SmartPageError onRetry={refetch} /> : <DataView />}
34
+ * </SmartPageContent>
35
+ * ```
36
+ */
37
+ export const SmartPageError = ({ title = "Something went wrong", description = "An unexpected error occurred while loading this page.", onRetry, retryLabel = "Try again", variant = "page", className, }) => {
38
+ const overlay = variant === "overlay";
39
+ return (_jsx("div", { role: "alert", className: cn(overlay
40
+ ? "absolute inset-0 z-10 flex items-center justify-center bg-background/80 p-6 backdrop-blur-sm"
41
+ : "flex h-full min-h-60 flex-col items-center justify-center gap-4 rounded-lg border border-dashed border-destructive/30 bg-destructive/5 p-10 text-center", className), children: _jsxs("div", { className: cn(overlay
42
+ ? "flex max-w-sm flex-col items-center gap-3 rounded-md border border-border bg-card p-6 text-center shadow-sm"
43
+ : "contents"), children: [_jsx("div", { className: "flex size-12 items-center justify-center rounded-full bg-destructive/10 text-destructive", children: _jsx(AlertCircle, { className: "size-6" }) }), _jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("h3", { className: "text-sm font-semibold", children: title }), _jsx("p", { className: "mx-auto max-w-sm text-xs text-muted-foreground", children: description })] }), onRetry && (_jsxs(Button, { variant: "outline", size: "sm", onClick: onRetry, children: [_jsx(RefreshCw, {}), retryLabel] }))] }) }));
44
+ };
45
+ //# sourceMappingURL=smart-page-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-error.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-error.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;AA4B7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,KAAK,GAAG,sBAAsB,EAC9B,WAAW,GAAG,uDAAuD,EACrE,OAAO,EACP,UAAU,GAAG,WAAW,EACxB,OAAO,GAAG,MAAM,EAChB,SAAS,GACW,EAAE,EAAE;IACxB,MAAM,OAAO,GAAG,OAAO,KAAK,SAAS,CAAA;IACrC,OAAO,CACL,cACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,EAAE,CACX,OAAO;YACL,CAAC,CAAC,8FAA8F;YAChG,CAAC,CAAC,yJAAyJ,EAC7J,SAAS,CACV,YAED,eACE,SAAS,EAAE,EAAE,CACX,OAAO;gBACL,CAAC,CAAC,6GAA6G;gBAC/G,CAAC,CAAC,UAAU,CACf,aAED,cAAK,SAAS,EAAC,0FAA0F,YACvG,KAAC,WAAW,IAAC,SAAS,EAAC,QAAQ,GAAG,GAC9B,EACN,eAAK,SAAS,EAAC,qBAAqB,aAClC,aAAI,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAM,EAClD,YAAG,SAAS,EAAC,gDAAgD,YAC1D,WAAW,GACV,IACA,EACL,OAAO,IAAI,CACV,MAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,aAClD,KAAC,SAAS,KAAG,EACZ,UAAU,IACJ,CACV,IACG,GACF,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,38 @@
1
+ import * as React from "react";
2
+ export interface SmartPageFiltersProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Optional label shown on the leading edge (e.g. "Filters:").
5
+ */
6
+ label?: React.ReactNode;
7
+ /**
8
+ * Render a bottom border separating the filter bar from content.
9
+ * @default true
10
+ */
11
+ border?: boolean;
12
+ }
13
+ /**
14
+ * Filter chip / tag bar rendered below the search input.
15
+ *
16
+ * Hosts active filter indicators, quick-filter toggles (status, assignee,
17
+ * date range), and a "Clear all" action. Children are laid out in a wrapping
18
+ * flex row so that many active filters expand gracefully.
19
+ *
20
+ * ## Stickiness
21
+ * Controlled by `stickyFilters` on {@link SmartPage} (default `true` for
22
+ * `"grid"` layout). Sits in the same sticky band as header/toolbar/search.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <SmartPageFilters label="Filters:">
27
+ * <Badge variant="secondary" className="gap-1">
28
+ * Status: Active <X className="size-3 cursor-pointer" onClick={clearStatus} />
29
+ * </Badge>
30
+ * <Badge variant="secondary" className="gap-1">
31
+ * Role: Admin <X className="size-3 cursor-pointer" onClick={clearRole} />
32
+ * </Badge>
33
+ * <Button variant="ghost" size="xs" onClick={clearAll}>Clear all</Button>
34
+ * </SmartPageFilters>
35
+ * ```
36
+ */
37
+ export declare const SmartPageFilters: React.ForwardRefExoticComponent<SmartPageFiltersProps & React.RefAttributes<HTMLDivElement>>;
38
+ //# sourceMappingURL=smart-page-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-filters.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-filters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gBAAgB,8FAqB3B,CACD"}
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "@iamsaroj/smart-ui/lib/utils";
5
+ import { SMART_PAGE_SLOT } from "./smart-page";
6
+ /**
7
+ * Filter chip / tag bar rendered below the search input.
8
+ *
9
+ * Hosts active filter indicators, quick-filter toggles (status, assignee,
10
+ * date range), and a "Clear all" action. Children are laid out in a wrapping
11
+ * flex row so that many active filters expand gracefully.
12
+ *
13
+ * ## Stickiness
14
+ * Controlled by `stickyFilters` on {@link SmartPage} (default `true` for
15
+ * `"grid"` layout). Sits in the same sticky band as header/toolbar/search.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <SmartPageFilters label="Filters:">
20
+ * <Badge variant="secondary" className="gap-1">
21
+ * Status: Active <X className="size-3 cursor-pointer" onClick={clearStatus} />
22
+ * </Badge>
23
+ * <Badge variant="secondary" className="gap-1">
24
+ * Role: Admin <X className="size-3 cursor-pointer" onClick={clearRole} />
25
+ * </Badge>
26
+ * <Button variant="ghost" size="xs" onClick={clearAll}>Clear all</Button>
27
+ * </SmartPageFilters>
28
+ * ```
29
+ */
30
+ export const SmartPageFilters = React.forwardRef(({ label, border = true, className, children, ...props }, ref) => (_jsxs("div", { ref: ref, "data-slot": "page-filters", className: cn("flex shrink-0 flex-wrap items-center gap-2 px-4 py-2", border && "border-b", className), ...props, children: [label && (_jsx("span", { className: "shrink-0 text-xs font-medium text-muted-foreground", children: label })), children] })));
31
+ SmartPageFilters[SMART_PAGE_SLOT] =
32
+ "filters";
33
+ //# sourceMappingURL=smart-page-filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-filters.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-filters.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAc9C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAG9C,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClE,eACE,GAAG,EAAE,GAAG,eACE,cAAc,EACxB,SAAS,EAAE,EAAE,CACX,sDAAsD,EACtD,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,aAER,KAAK,IAAI,CACR,eAAM,SAAS,EAAC,oDAAoD,YACjE,KAAK,GACD,CACR,EACA,QAAQ,IACL,CACP,CAAC,CACD;AAAC,gBAAuD,CAAC,eAAe,CAAC;IACxE,SAAS,CAAA"}
@@ -0,0 +1,49 @@
1
+ import * as React from "react";
2
+ export interface SmartPageFooterProps extends React.HTMLAttributes<HTMLElement> {
3
+ /**
4
+ * Render a top border separating the footer from the content / status bar.
5
+ * @default true
6
+ */
7
+ border?: boolean;
8
+ /**
9
+ * Horizontal alignment of footer children.
10
+ * @default "end"
11
+ */
12
+ justify?: "start" | "center" | "end" | "between";
13
+ }
14
+ /**
15
+ * Footer action bar pinned at the bottom of the page.
16
+ *
17
+ * Hosts primary and secondary actions that apply to the page as a whole:
18
+ * form submit / cancel buttons, wizard navigation controls, bulk-action
19
+ * buttons, or pagination controls.
20
+ *
21
+ * ## Stickiness
22
+ * Controlled by `stickyFooter` on SmartPage (default `true` for `"grid"` and
23
+ * `"wizard"` layouts). In `"grid"` scroll mode the footer sits below the scroll
24
+ * container, making it always visible without `position: sticky`.
25
+ *
26
+ * ## Layout
27
+ * Uses `justify` to align children. Common patterns:
28
+ * - `"end"` — submit/cancel buttons (default)
29
+ * - `"between"` — back/next buttons in wizard steps
30
+ * - `"start"` — status text + trailing actions
31
+ *
32
+ * @example Wizard footer
33
+ * ```tsx
34
+ * <SmartPageFooter justify="between">
35
+ * <Button variant="outline" onClick={prev}>Back</Button>
36
+ * <Button onClick={next}>Next</Button>
37
+ * </SmartPageFooter>
38
+ * ```
39
+ *
40
+ * @example Form footer
41
+ * ```tsx
42
+ * <SmartPageFooter>
43
+ * <Button variant="ghost" onClick={cancel}>Cancel</Button>
44
+ * <Button type="submit" form="settings-form">Save changes</Button>
45
+ * </SmartPageFooter>
46
+ * ```
47
+ */
48
+ export declare const SmartPageFooter: React.ForwardRefExoticComponent<SmartPageFooterProps & React.RefAttributes<HTMLElement>>;
49
+ //# sourceMappingURL=smart-page-footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-footer.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC7E;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAA;CACjD;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,eAAe,0FAiB1B,CACD"}
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "@iamsaroj/smart-ui/lib/utils";
5
+ import { SMART_PAGE_SLOT } from "./smart-page";
6
+ const JUSTIFY_CLASSES = {
7
+ start: "justify-start",
8
+ center: "justify-center",
9
+ end: "justify-end",
10
+ between: "justify-between",
11
+ };
12
+ /**
13
+ * Footer action bar pinned at the bottom of the page.
14
+ *
15
+ * Hosts primary and secondary actions that apply to the page as a whole:
16
+ * form submit / cancel buttons, wizard navigation controls, bulk-action
17
+ * buttons, or pagination controls.
18
+ *
19
+ * ## Stickiness
20
+ * Controlled by `stickyFooter` on SmartPage (default `true` for `"grid"` and
21
+ * `"wizard"` layouts). In `"grid"` scroll mode the footer sits below the scroll
22
+ * container, making it always visible without `position: sticky`.
23
+ *
24
+ * ## Layout
25
+ * Uses `justify` to align children. Common patterns:
26
+ * - `"end"` — submit/cancel buttons (default)
27
+ * - `"between"` — back/next buttons in wizard steps
28
+ * - `"start"` — status text + trailing actions
29
+ *
30
+ * @example Wizard footer
31
+ * ```tsx
32
+ * <SmartPageFooter justify="between">
33
+ * <Button variant="outline" onClick={prev}>Back</Button>
34
+ * <Button onClick={next}>Next</Button>
35
+ * </SmartPageFooter>
36
+ * ```
37
+ *
38
+ * @example Form footer
39
+ * ```tsx
40
+ * <SmartPageFooter>
41
+ * <Button variant="ghost" onClick={cancel}>Cancel</Button>
42
+ * <Button type="submit" form="settings-form">Save changes</Button>
43
+ * </SmartPageFooter>
44
+ * ```
45
+ */
46
+ export const SmartPageFooter = React.forwardRef(({ border = true, justify = "end", className, children, ...props }, ref) => (_jsx("footer", { ref: ref, "data-slot": "page-footer", className: cn("flex shrink-0 items-center gap-2 px-6 py-3", JUSTIFY_CLASSES[justify], border && "border-t", className), ...props, children: children })));
47
+ SmartPageFooter[SMART_PAGE_SLOT] =
48
+ "footer";
49
+ //# sourceMappingURL=smart-page-footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-footer.js","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-footer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAe9C,MAAM,eAAe,GAGjB;IACF,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,GAAG,EAAE,aAAa;IAClB,OAAO,EAAE,iBAAiB;CAC3B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAG7C,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5E,iBACE,GAAG,EAAE,GAAG,eACE,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,4CAA4C,EAC5C,eAAe,CAAC,OAAO,CAAC,EACxB,MAAM,IAAI,UAAU,EACpB,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACF,CACV,CAAC,CACD;AAAC,eAAsD,CAAC,eAAe,CAAC;IACvE,QAAQ,CAAA"}
@@ -0,0 +1,145 @@
1
+ import * as React from "react";
2
+ export interface SmartPageHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
3
+ /**
4
+ * Renders a bottom border beneath the header.
5
+ * @default true
6
+ */
7
+ border?: boolean;
8
+ /**
9
+ * Uses tighter internal padding — useful when the header sits inside a
10
+ * compact shell that already provides spacing.
11
+ * @default false
12
+ */
13
+ compact?: boolean;
14
+ /** Breadcrumb trail rendered above the title. */
15
+ breadcrumb?: SmartPageBreadcrumbItem[];
16
+ /** Page title. A string is wrapped in {@link SmartPageTitle}; pass a node for custom title rows (e.g. a badge beside it). */
17
+ title?: React.ReactNode;
18
+ /** Supporting description rendered below the title (always wrapped in {@link SmartPageDescription}; inline nodes like `<code>` are fine). */
19
+ description?: React.ReactNode;
20
+ /** Right-aligned action group, laid out on the same row as the title. */
21
+ actions?: React.ReactNode;
22
+ }
23
+ /**
24
+ * Top-level header zone for a page.
25
+ *
26
+ * Hosts breadcrumbs, title, description, and actions in a consistent
27
+ * horizontal layout. Stickiness and border-bottom are controlled by context
28
+ * (SmartPage props) and the `border` / `compact` props respectively.
29
+ *
30
+ * ## Layout
31
+ * Renders as a flex row: left side for title group, right side for actions.
32
+ * Children are laid out via natural flex flow — compose
33
+ * {@link SmartPageTitle}, {@link SmartPageDescription}, and
34
+ * {@link SmartPageActions} inside.
35
+ *
36
+ * ## Stickiness
37
+ * In `"page"` scroll mode SmartPage wraps the header in a `sticky top-0`
38
+ * container when `stickyHeader` is enabled. In `"content"` / `"grid"` modes
39
+ * the header sits above the scroll container so it's always visible.
40
+ *
41
+ * ## Flat props vs. composition
42
+ * For the common case, pass `breadcrumb` / `title` / `description` / `actions`
43
+ * and the header lays them out for you. Composition is still the escape hatch:
44
+ * any `children` render *below* the flat block, so you can mix both.
45
+ *
46
+ * @example Flat props (the common case)
47
+ * ```tsx
48
+ * <SmartPageHeader
49
+ * breadcrumb={[{ label: "Users", href: "/users" }, { label: "New" }]}
50
+ * title="New User"
51
+ * description="Fill in the details below."
52
+ * actions={
53
+ * <>
54
+ * <Button variant="outline">Cancel</Button>
55
+ * <Button>Save</Button>
56
+ * </>
57
+ * }
58
+ * />
59
+ * ```
60
+ *
61
+ * @example Composition escape hatch (full control)
62
+ * ```tsx
63
+ * <SmartPageHeader>
64
+ * <SmartPageBreadcrumb items={[{ label: "Users", href: "/users" }, { label: "New" }]} />
65
+ * <div className="flex items-center justify-between">
66
+ * <div>
67
+ * <SmartPageTitle>New User</SmartPageTitle>
68
+ * <SmartPageDescription>Fill in the details below.</SmartPageDescription>
69
+ * </div>
70
+ * <SmartPageActions>
71
+ * <Button>Save</Button>
72
+ * </SmartPageActions>
73
+ * </div>
74
+ * </SmartPageHeader>
75
+ * ```
76
+ */
77
+ export declare const SmartPageHeader: React.ForwardRefExoticComponent<SmartPageHeaderProps & React.RefAttributes<HTMLElement>>;
78
+ export interface SmartPageTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
79
+ /** Override the heading level. @default "h1" */
80
+ as?: "h1" | "h2" | "h3";
81
+ }
82
+ /**
83
+ * Page-level heading. Always renders as `<h1>` by default for correct
84
+ * document outline; override with `as` when the page title is nested inside
85
+ * a section hierarchy.
86
+ *
87
+ * @example
88
+ * ```tsx
89
+ * <SmartPageTitle>Users</SmartPageTitle>
90
+ * ```
91
+ */
92
+ export declare const SmartPageTitle: React.ForwardRefExoticComponent<SmartPageTitleProps & React.RefAttributes<HTMLHeadingElement>>;
93
+ /**
94
+ * Supporting description rendered below the page title.
95
+ * Automatically muted and limited to a comfortable reading width.
96
+ *
97
+ * @example
98
+ * ```tsx
99
+ * <SmartPageDescription>Manage your organisation's members and roles.</SmartPageDescription>
100
+ * ```
101
+ */
102
+ export declare const SmartPageDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
103
+ /**
104
+ * Right-aligned action group inside a page header.
105
+ * Lay out buttons, dropdowns, or any controls inside. Items are spaced
106
+ * with a consistent gap and aligned vertically to the centre.
107
+ *
108
+ * @example
109
+ * ```tsx
110
+ * <SmartPageActions>
111
+ * <Button variant="outline"><Download /> Export</Button>
112
+ * <Button><Plus /> New User</Button>
113
+ * </SmartPageActions>
114
+ * ```
115
+ */
116
+ export declare const SmartPageActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
117
+ export interface SmartPageBreadcrumbItem {
118
+ /** Display label for this crumb. */
119
+ label: string;
120
+ /** When provided, renders as a link. The last item ignores this. */
121
+ href?: string;
122
+ }
123
+ export interface SmartPageBreadcrumbProps {
124
+ /** Ordered list of crumbs from root to current page. */
125
+ items: SmartPageBreadcrumbItem[];
126
+ className?: string;
127
+ }
128
+ /**
129
+ * Breadcrumb trail rendered above the page title.
130
+ * The last item is always rendered as the current page (non-link).
131
+ * All preceding items are rendered as links when `href` is provided.
132
+ *
133
+ * @example
134
+ * ```tsx
135
+ * <SmartPageBreadcrumb
136
+ * items={[
137
+ * { label: "Settings", href: "/settings" },
138
+ * { label: "Team", href: "/settings/team" },
139
+ * { label: "Members" },
140
+ * ]}
141
+ * />
142
+ * ```
143
+ */
144
+ export declare const SmartPageBreadcrumb: ({ items, className, }: SmartPageBreadcrumbProps) => import("react/jsx-runtime").JSX.Element | null;
145
+ //# sourceMappingURL=smart-page-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-page-header.d.ts","sourceRoot":"","sources":["../../../src/smart-components/page/smart-page-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAChD,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,OAAO,CACR;IACC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAOjB,iDAAiD;IACjD,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACtC,6HAA6H;IAC7H,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,6IAA6I;IAC7I,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,yEAAyE;IACzE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,eAAO,MAAM,eAAe,0FA2D3B,CACA;AAKD,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF,gDAAgD;IAChD,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CACxB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,gGAazB,CAAA;AAIF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,yHAU/B,CAAA;AAIF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,6GAU3B,CAAA;AAIF,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,wDAAwD;IACxD,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAAI,uBAGjC,wBAAwB,mDAyB1B,CAAA"}