@lattice-php/lattice 0.1.0 → 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 (367) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +8 -0
  2. package/dist/action/components/action-form.d.ts +24 -0
  3. package/dist/action/components/action-form.js +270 -0
  4. package/dist/action/components/action-form.js.map +1 -0
  5. package/dist/action/components/action-group.d.ts +1 -8
  6. package/dist/action/components/action-group.js +24 -66
  7. package/dist/action/components/action-group.js.map +1 -1
  8. package/dist/action/components/action.d.ts +1 -24
  9. package/dist/action/components/action.js +61 -46
  10. package/dist/action/components/action.js.map +1 -1
  11. package/dist/action/effects.d.ts +6 -25
  12. package/dist/action/effects.js +2 -2
  13. package/dist/action/effects.js.map +1 -1
  14. package/dist/action/index.d.ts +1 -1
  15. package/dist/core/components/badge.d.ts +1 -8
  16. package/dist/core/components/badge.js +2 -3
  17. package/dist/core/components/badge.js.map +1 -1
  18. package/dist/core/components/button.d.ts +4 -12
  19. package/dist/core/components/button.js +6 -9
  20. package/dist/core/components/button.js.map +1 -1
  21. package/dist/core/components/card.d.ts +1 -9
  22. package/dist/core/components/card.js +1 -3
  23. package/dist/core/components/card.js.map +1 -1
  24. package/dist/core/components/confirm-dialog.d.ts +2 -3
  25. package/dist/core/components/confirm-dialog.js +19 -13
  26. package/dist/core/components/confirm-dialog.js.map +1 -1
  27. package/dist/core/components/fragment.d.ts +1 -10
  28. package/dist/core/components/fragment.js +5 -6
  29. package/dist/core/components/fragment.js.map +1 -1
  30. package/dist/core/components/grid.d.ts +1 -8
  31. package/dist/core/components/grid.js +1 -2
  32. package/dist/core/components/grid.js.map +1 -1
  33. package/dist/core/components/heading.d.ts +1 -9
  34. package/dist/core/components/heading.js +2 -3
  35. package/dist/core/components/heading.js.map +1 -1
  36. package/dist/core/components/icon.d.ts +3 -0
  37. package/dist/core/components/icon.js +30 -0
  38. package/dist/core/components/icon.js.map +1 -0
  39. package/dist/core/components/index.d.ts +1 -1
  40. package/dist/core/components/index.js +4 -0
  41. package/dist/core/components/index.js.map +1 -1
  42. package/dist/core/components/link.d.ts +1 -12
  43. package/dist/core/components/link.js +4 -9
  44. package/dist/core/components/link.js.map +1 -1
  45. package/dist/core/components/modal.d.ts +1 -11
  46. package/dist/core/components/modal.js +27 -31
  47. package/dist/core/components/modal.js.map +1 -1
  48. package/dist/core/components/section.d.ts +3 -0
  49. package/dist/core/components/section.js +79 -0
  50. package/dist/core/components/section.js.map +1 -0
  51. package/dist/core/components/segmented-control.d.ts +1 -14
  52. package/dist/core/components/segmented-control.js +4 -7
  53. package/dist/core/components/segmented-control.js.map +1 -1
  54. package/dist/core/components/segmented-pills.d.ts +4 -2
  55. package/dist/core/components/segmented-pills.js +10 -1
  56. package/dist/core/components/segmented-pills.js.map +1 -1
  57. package/dist/core/components/spinner.js +8 -4
  58. package/dist/core/components/spinner.js.map +1 -1
  59. package/dist/core/components/stack.d.ts +1 -11
  60. package/dist/core/components/stack.js +5 -5
  61. package/dist/core/components/stack.js.map +1 -1
  62. package/dist/core/components/tabs.d.ts +1 -19
  63. package/dist/core/components/tabs.js +45 -21
  64. package/dist/core/components/tabs.js.map +1 -1
  65. package/dist/core/components/text.d.ts +1 -9
  66. package/dist/core/components/text.js +2 -3
  67. package/dist/core/components/text.js.map +1 -1
  68. package/dist/core/registry.d.ts +9 -3
  69. package/dist/core/registry.js +21 -5
  70. package/dist/core/registry.js.map +1 -1
  71. package/dist/core/renderer.js +7 -13
  72. package/dist/core/renderer.js.map +1 -1
  73. package/dist/core/types.d.ts +54 -26
  74. package/dist/form/components/base/checkbox.js +5 -2
  75. package/dist/form/components/base/checkbox.js.map +1 -1
  76. package/dist/form/components/base/field.d.ts +2 -1
  77. package/dist/form/components/base/field.js +5 -1
  78. package/dist/form/components/base/field.js.map +1 -1
  79. package/dist/form/components/base/password-input.js +9 -2
  80. package/dist/form/components/base/password-input.js.map +1 -1
  81. package/dist/form/components/base/submit-button.d.ts +4 -4
  82. package/dist/form/components/base/submit-button.js +2 -2
  83. package/dist/form/components/base/submit-button.js.map +1 -1
  84. package/dist/form/components/conditions.d.ts +6 -9
  85. package/dist/form/components/conditions.js +10 -2
  86. package/dist/form/components/conditions.js.map +1 -1
  87. package/dist/form/components/context.d.ts +0 -4
  88. package/dist/form/components/context.js +1 -5
  89. package/dist/form/components/context.js.map +1 -1
  90. package/dist/form/components/field-props.d.ts +24 -0
  91. package/dist/form/components/field-props.js +15 -0
  92. package/dist/form/components/field-props.js.map +1 -0
  93. package/dist/form/components/fields/checkbox.d.ts +1 -15
  94. package/dist/form/components/fields/checkbox.js +16 -21
  95. package/dist/form/components/fields/checkbox.js.map +1 -1
  96. package/dist/form/components/fields/choice.d.ts +1 -13
  97. package/dist/form/components/fields/choice.js +13 -20
  98. package/dist/form/components/fields/choice.js.map +1 -1
  99. package/dist/form/components/fields/date-input.d.ts +1 -19
  100. package/dist/form/components/fields/date-input.js +11 -16
  101. package/dist/form/components/fields/date-input.js.map +1 -1
  102. package/dist/form/components/fields/hidden-input.d.ts +1 -9
  103. package/dist/form/components/fields/hidden-input.js +2 -3
  104. package/dist/form/components/fields/hidden-input.js.map +1 -1
  105. package/dist/form/components/fields/number-input.d.ts +1 -22
  106. package/dist/form/components/fields/number-input.js +38 -41
  107. package/dist/form/components/fields/number-input.js.map +1 -1
  108. package/dist/form/components/fields/password-input.d.ts +1 -28
  109. package/dist/form/components/fields/password-input.js +15 -24
  110. package/dist/form/components/fields/password-input.js.map +1 -1
  111. package/dist/form/components/fields/rich-editor.d.ts +1 -16
  112. package/dist/form/components/fields/rich-editor.js +57 -47
  113. package/dist/form/components/fields/rich-editor.js.map +1 -1
  114. package/dist/form/components/fields/select.d.ts +1 -22
  115. package/dist/form/components/fields/select.js +85 -74
  116. package/dist/form/components/fields/select.js.map +1 -1
  117. package/dist/form/components/fields/simple-field.d.ts +9 -0
  118. package/dist/form/components/fields/simple-field.js +22 -0
  119. package/dist/form/components/fields/simple-field.js.map +1 -0
  120. package/dist/form/components/fields/text-input.d.ts +1 -20
  121. package/dist/form/components/fields/text-input.js +12 -17
  122. package/dist/form/components/fields/text-input.js.map +1 -1
  123. package/dist/form/components/fields/textarea.d.ts +1 -19
  124. package/dist/form/components/fields/textarea.js +11 -16
  125. package/dist/form/components/fields/textarea.js.map +1 -1
  126. package/dist/form/components/form.d.ts +1 -20
  127. package/dist/form/components/form.js +29 -36
  128. package/dist/form/components/form.js.map +1 -1
  129. package/dist/form/components/index.d.ts +0 -1
  130. package/dist/form/components/index.js +1 -2
  131. package/dist/form/components/resolved-nodes.d.ts +1 -1
  132. package/dist/form/components/resolved-nodes.js +2 -2
  133. package/dist/form/components/resolved-nodes.js.map +1 -1
  134. package/dist/form/components/types.d.ts +1 -0
  135. package/dist/form/components/use-controlled-field.d.ts +3 -9
  136. package/dist/form/components/use-controlled-field.js +5 -9
  137. package/dist/form/components/use-controlled-field.js.map +1 -1
  138. package/dist/form/components/use-dependent-field.d.ts +1 -1
  139. package/dist/form/components/use-dependent-field.js +8 -8
  140. package/dist/form/components/use-dependent-field.js.map +1 -1
  141. package/dist/form/components/use-form-resolver.d.ts +1 -1
  142. package/dist/form/components/use-form-resolver.js +8 -13
  143. package/dist/form/components/use-form-resolver.js.map +1 -1
  144. package/dist/form/components/use-seed-default.d.ts +5 -0
  145. package/dist/form/components/use-seed-default.js +23 -0
  146. package/dist/form/components/use-seed-default.js.map +1 -0
  147. package/dist/form/index.d.ts +1 -1
  148. package/dist/form/index.js +0 -1
  149. package/dist/form/index.js.map +1 -1
  150. package/dist/form/skeleton.d.ts +1 -1
  151. package/dist/form/skeleton.js +1 -1
  152. package/dist/form/skeleton.js.map +1 -1
  153. package/dist/i18n/backend.d.ts +24 -0
  154. package/dist/i18n/backend.js +39 -0
  155. package/dist/i18n/backend.js.map +1 -0
  156. package/dist/i18n/index.d.ts +3 -0
  157. package/dist/i18n/index.js +3 -0
  158. package/dist/i18n/instance.js +48 -0
  159. package/dist/i18n/instance.js.map +1 -0
  160. package/dist/icons/icon-renderer.js +30 -5
  161. package/dist/icons/icon-renderer.js.map +1 -1
  162. package/dist/icons/index.d.ts +2 -0
  163. package/dist/icons/index.js +2 -1
  164. package/dist/icons/sprite.d.ts +30 -0
  165. package/dist/icons/sprite.js +40 -0
  166. package/dist/icons/sprite.js.map +1 -0
  167. package/dist/index.d.ts +9 -5
  168. package/dist/index.js +7 -3
  169. package/dist/inertia.d.ts +1 -6
  170. package/dist/inertia.js +4 -8
  171. package/dist/inertia.js.map +1 -1
  172. package/dist/lattice.css +129 -5
  173. package/dist/layout/components.d.ts +1 -0
  174. package/dist/layout/components.js +19 -0
  175. package/dist/layout/components.js.map +1 -0
  176. package/dist/layout/context.d.ts +12 -0
  177. package/dist/layout/context.js +19 -0
  178. package/dist/layout/context.js.map +1 -0
  179. package/dist/layout/index.d.ts +3 -0
  180. package/dist/layout/index.js +4 -0
  181. package/dist/layout/menu-item.d.ts +3 -0
  182. package/dist/layout/menu-item.js +130 -0
  183. package/dist/layout/menu-item.js.map +1 -0
  184. package/dist/layout/menu.d.ts +3 -0
  185. package/dist/layout/menu.js +13 -0
  186. package/dist/layout/menu.js.map +1 -0
  187. package/dist/layout/outlet.d.ts +6 -0
  188. package/dist/layout/outlet.js +14 -0
  189. package/dist/layout/outlet.js.map +1 -0
  190. package/dist/layout/schema-layout.d.ts +10 -0
  191. package/dist/layout/schema-layout.js +30 -0
  192. package/dist/layout/schema-layout.js.map +1 -0
  193. package/dist/layout/sidebar.d.ts +3 -0
  194. package/dist/layout/sidebar.js +48 -0
  195. package/dist/layout/sidebar.js.map +1 -0
  196. package/dist/lib/utils.d.ts +0 -2
  197. package/dist/lib/utils.js +1 -4
  198. package/dist/lib/utils.js.map +1 -1
  199. package/dist/node_modules/i18next/dist/esm/i18next.js +1982 -0
  200. package/dist/node_modules/i18next/dist/esm/i18next.js.map +1 -0
  201. package/dist/node_modules/i18next-http-backend/esm/index.js +352 -0
  202. package/dist/node_modules/i18next-http-backend/esm/index.js.map +1 -0
  203. package/dist/node_modules/react-i18next/dist/es/context.js +23 -0
  204. package/dist/node_modules/react-i18next/dist/es/context.js.map +1 -0
  205. package/dist/node_modules/react-i18next/dist/es/defaults.js +29 -0
  206. package/dist/node_modules/react-i18next/dist/es/defaults.js.map +1 -0
  207. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +10 -0
  208. package/dist/node_modules/react-i18next/dist/es/i18nInstance.js.map +1 -0
  209. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +14 -0
  210. package/dist/node_modules/react-i18next/dist/es/initReactI18next.js.map +1 -0
  211. package/dist/node_modules/react-i18next/dist/es/unescape.js +30 -0
  212. package/dist/node_modules/react-i18next/dist/es/unescape.js.map +1 -0
  213. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +157 -0
  214. package/dist/node_modules/react-i18next/dist/es/useTranslation.js.map +1 -0
  215. package/dist/node_modules/react-i18next/dist/es/utils.js +58 -0
  216. package/dist/node_modules/react-i18next/dist/es/utils.js.map +1 -0
  217. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +70 -0
  218. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  219. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +61 -0
  220. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  221. package/dist/node_modules/use-sync-external-store/shim/index.js +13 -0
  222. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  223. package/dist/page.d.ts +1 -1
  224. package/dist/page.js +2 -2
  225. package/dist/page.js.map +1 -1
  226. package/dist/provider.d.ts +8 -3
  227. package/dist/provider.js +17 -9
  228. package/dist/provider.js.map +1 -1
  229. package/dist/registry.d.ts +1 -1
  230. package/dist/registry.js +2 -1
  231. package/dist/registry.js.map +1 -1
  232. package/dist/table/bulk.d.ts +6 -10
  233. package/dist/table/bulk.js +13 -35
  234. package/dist/table/bulk.js.map +1 -1
  235. package/dist/table/column-registry.d.ts +9 -0
  236. package/dist/table/components/bulk-bar.js +34 -3
  237. package/dist/table/components/bulk-bar.js.map +1 -1
  238. package/dist/table/components/cells/badge-cell.d.ts +5 -0
  239. package/dist/table/components/cells/badge-cell.js +16 -0
  240. package/dist/table/components/cells/badge-cell.js.map +1 -0
  241. package/dist/table/components/cells/icon-cell.d.ts +5 -0
  242. package/dist/table/components/cells/icon-cell.js +22 -0
  243. package/dist/table/components/cells/icon-cell.js.map +1 -0
  244. package/dist/table/components/cells/image-cell.d.ts +5 -0
  245. package/dist/table/components/cells/image-cell.js +24 -0
  246. package/dist/table/components/cells/image-cell.js.map +1 -0
  247. package/dist/table/components/cells/text-cell.d.ts +6 -0
  248. package/dist/table/components/cells/text-cell.js +50 -0
  249. package/dist/table/components/cells/text-cell.js.map +1 -0
  250. package/dist/table/components/column-filter-control.js +59 -96
  251. package/dist/table/components/column-filter-control.js.map +1 -1
  252. package/dist/table/components/column-header.js +22 -11
  253. package/dist/table/components/column-header.js.map +1 -1
  254. package/dist/table/components/filter-stack-bar.d.ts +2 -2
  255. package/dist/table/components/filter-stack-bar.js +10 -8
  256. package/dist/table/components/filter-stack-bar.js.map +1 -1
  257. package/dist/table/components/filter-value-input.d.ts +5 -3
  258. package/dist/table/components/filter-value-input.js +25 -16
  259. package/dist/table/components/filter-value-input.js.map +1 -1
  260. package/dist/table/components/pagination.d.ts +1 -1
  261. package/dist/table/components/pagination.js +20 -8
  262. package/dist/table/components/pagination.js.map +1 -1
  263. package/dist/table/components/sort-bar.d.ts +2 -2
  264. package/dist/table/components/sort-bar.js +12 -10
  265. package/dist/table/components/sort-bar.js.map +1 -1
  266. package/dist/table/components/table-action-node.d.ts +1 -1
  267. package/dist/table/components/table-action-node.js +1 -1
  268. package/dist/table/components/table-action-node.js.map +1 -1
  269. package/dist/table/components/table-cell.d.ts +1 -1
  270. package/dist/table/components/table-cell.js +24 -43
  271. package/dist/table/components/table-cell.js.map +1 -1
  272. package/dist/table/components/table.d.ts +6 -2
  273. package/dist/table/components/table.js +40 -17
  274. package/dist/table/components/table.js.map +1 -1
  275. package/dist/table/format.js +5 -3
  276. package/dist/table/format.js.map +1 -1
  277. package/dist/table/index.d.ts +1 -1
  278. package/dist/table/index.js.map +1 -1
  279. package/dist/table/payload.d.ts +1 -1
  280. package/dist/table/query.d.ts +0 -1
  281. package/dist/table/query.js +8 -9
  282. package/dist/table/query.js.map +1 -1
  283. package/dist/table/types.d.ts +38 -42
  284. package/dist/table/use-table.d.ts +3 -4
  285. package/dist/table/use-table.js +12 -23
  286. package/dist/table/use-table.js.map +1 -1
  287. package/dist/test-support.d.ts +14 -0
  288. package/dist/test-support.js +14 -0
  289. package/dist/test-support.js.map +1 -0
  290. package/dist/toast/index.d.ts +1 -0
  291. package/dist/toast/index.js +2 -0
  292. package/dist/toast/toaster.d.ts +3 -0
  293. package/dist/toast/toaster.js +126 -0
  294. package/dist/toast/toaster.js.map +1 -0
  295. package/dist/types/generated.d.ts +677 -0
  296. package/dist/types/generated.js +0 -0
  297. package/dist/types/index.d.ts +1 -1
  298. package/package.json +18 -3
  299. package/resources/icons/align-center.svg +17 -0
  300. package/resources/icons/align-justify.svg +17 -0
  301. package/resources/icons/align-left.svg +17 -0
  302. package/resources/icons/align-right.svg +17 -0
  303. package/resources/icons/arrow-down.svg +16 -0
  304. package/resources/icons/arrow-up.svg +16 -0
  305. package/resources/icons/bold.svg +15 -0
  306. package/resources/icons/check.svg +15 -0
  307. package/resources/icons/chevron-down.svg +15 -0
  308. package/resources/icons/chevron-right.svg +15 -0
  309. package/resources/icons/chevrons-up-down.svg +16 -0
  310. package/resources/icons/circle-alert.svg +17 -0
  311. package/resources/icons/circle-check.svg +16 -0
  312. package/resources/icons/circle-help.svg +17 -0
  313. package/resources/icons/circle-x.svg +17 -0
  314. package/resources/icons/code.svg +16 -0
  315. package/resources/icons/columns-3.svg +17 -0
  316. package/resources/icons/copy.svg +16 -0
  317. package/resources/icons/external-link.svg +17 -0
  318. package/resources/icons/eye-off.svg +18 -0
  319. package/resources/icons/eye.svg +16 -0
  320. package/resources/icons/filter.svg +15 -0
  321. package/resources/icons/heading-1.svg +18 -0
  322. package/resources/icons/heading-2.svg +18 -0
  323. package/resources/icons/heading-3.svg +19 -0
  324. package/resources/icons/highlighter.svg +16 -0
  325. package/resources/icons/info.svg +17 -0
  326. package/resources/icons/italic.svg +17 -0
  327. package/resources/icons/layout-dashboard.svg +18 -0
  328. package/resources/icons/link.svg +16 -0
  329. package/resources/icons/list-ordered.svg +20 -0
  330. package/resources/icons/list.svg +20 -0
  331. package/resources/icons/loader-2.svg +15 -0
  332. package/resources/icons/minus.svg +15 -0
  333. package/resources/icons/more-horizontal.svg +17 -0
  334. package/resources/icons/panel-left.svg +16 -0
  335. package/resources/icons/pencil-line.svg +17 -0
  336. package/resources/icons/pencil.svg +16 -0
  337. package/resources/icons/plus.svg +16 -0
  338. package/resources/icons/quote.svg +16 -0
  339. package/resources/icons/rows-3.svg +17 -0
  340. package/resources/icons/search.svg +16 -0
  341. package/resources/icons/send.svg +16 -0
  342. package/resources/icons/settings.svg +16 -0
  343. package/resources/icons/smile.svg +18 -0
  344. package/resources/icons/strikethrough.svg +17 -0
  345. package/resources/icons/table.svg +18 -0
  346. package/resources/icons/trash-2.svg +19 -0
  347. package/resources/icons/underline.svg +16 -0
  348. package/resources/icons/x.svg +16 -0
  349. package/dist/core/props.d.ts +0 -14
  350. package/dist/core/props.js +0 -30
  351. package/dist/core/props.js.map +0 -1
  352. package/dist/form/components/fields/submit-button.d.ts +0 -10
  353. package/dist/form/components/fields/submit-button.js +0 -14
  354. package/dist/form/components/fields/submit-button.js.map +0 -1
  355. package/dist/generated/types.d.ts +0 -17
  356. package/dist/icons/default-icons.d.ts +0 -3
  357. package/dist/icons/default-icons.js +0 -44
  358. package/dist/icons/default-icons.js.map +0 -1
  359. package/dist/icons/dynamic-lucide-renderer.d.ts +0 -2
  360. package/dist/icons/dynamic-lucide-renderer.js +0 -18
  361. package/dist/icons/dynamic-lucide-renderer.js.map +0 -1
  362. package/dist/menu/index.d.ts +0 -1
  363. package/dist/menu/index.js +0 -2
  364. package/dist/menu/use-menu.d.ts +0 -2
  365. package/dist/menu/use-menu.js +0 -9
  366. package/dist/menu/use-menu.js.map +0 -1
  367. /package/dist/{generated/types.js → table/column-registry.js} +0 -0
@@ -0,0 +1,20 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-list"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M3 5h.01" />
15
+ <path d="M3 12h.01" />
16
+ <path d="M3 19h.01" />
17
+ <path d="M8 5h13" />
18
+ <path d="M8 12h13" />
19
+ <path d="M8 19h13" />
20
+ </svg>
@@ -0,0 +1,15 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-loader-2"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M21 12a9 9 0 1 1-6.219-8.56" />
15
+ </svg>
@@ -0,0 +1,15 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-minus"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M5 12h14" />
15
+ </svg>
@@ -0,0 +1,17 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-more-horizontal"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <circle cx="12" cy="12" r="1" />
15
+ <circle cx="19" cy="12" r="1" />
16
+ <circle cx="5" cy="12" r="1" />
17
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-panel-left"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <rect width="18" height="18" x="3" y="3" rx="2" />
15
+ <path d="M9 3v18" />
16
+ </svg>
@@ -0,0 +1,17 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-pencil-line"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M13 21h8" />
15
+ <path d="m15 5 4 4" />
16
+ <path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />
17
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-pencil"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />
15
+ <path d="m15 5 4 4" />
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-plus"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M5 12h14" />
15
+ <path d="M12 5v14" />
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-quote"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" />
15
+ <path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" />
16
+ </svg>
@@ -0,0 +1,17 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-rows-3"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <rect width="18" height="18" x="3" y="3" rx="2" />
15
+ <path d="M21 9H3" />
16
+ <path d="M21 15H3" />
17
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-search"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="m21 21-4.34-4.34" />
15
+ <circle cx="11" cy="11" r="8" />
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-send"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" />
15
+ <path d="m21.854 2.147-10.94 10.939" />
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-settings"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" />
15
+ <circle cx="12" cy="12" r="3" />
16
+ </svg>
@@ -0,0 +1,18 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-smile"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <circle cx="12" cy="12" r="10" />
15
+ <path d="M8 14s1.5 2 4 2 4-2 4-2" />
16
+ <line x1="9" x2="9.01" y1="9" y2="9" />
17
+ <line x1="15" x2="15.01" y1="9" y2="9" />
18
+ </svg>
@@ -0,0 +1,17 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-strikethrough"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M16 4H9a3 3 0 0 0-2.83 4" />
15
+ <path d="M14 12a4 4 0 0 1 0 8H6" />
16
+ <line x1="4" x2="20" y1="12" y2="12" />
17
+ </svg>
@@ -0,0 +1,18 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-table"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M12 3v18" />
15
+ <rect width="18" height="18" x="3" y="3" rx="2" />
16
+ <path d="M3 9h18" />
17
+ <path d="M3 15h18" />
18
+ </svg>
@@ -0,0 +1,19 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-trash-2"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M10 11v6" />
15
+ <path d="M14 11v6" />
16
+ <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />
17
+ <path d="M3 6h18" />
18
+ <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
19
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-underline"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M6 4v6a6 6 0 0 0 12 0V4" />
15
+ <line x1="4" x2="20" y1="20" y2="20" />
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <!-- @license lucide-static v1.18.0 - ISC -->
2
+ <svg
3
+ class="lucide lucide-x"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="24"
6
+ height="24"
7
+ viewBox="0 0 24 24"
8
+ fill="none"
9
+ stroke="currentColor"
10
+ stroke-width="2"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ >
14
+ <path d="M18 6 6 18" />
15
+ <path d="m6 6 12 12" />
16
+ </svg>
@@ -1,14 +0,0 @@
1
- import { NodeProps } from './types';
2
- export type Option = {
3
- label: string;
4
- value: string;
5
- };
6
- /**
7
- * Read and validate an `options` prop, keeping only well-formed `{ label, value }`
8
- * entries. Shared by the choice/select form fields and the segmented control.
9
- */
10
- export declare function getOptions(props: NodeProps | undefined): Option[];
11
- export declare function getStringProp(props: NodeProps | undefined, name: string, fallback?: string): string;
12
- export declare function getNumberProp(props: NodeProps | undefined, name: string, fallback: number): number;
13
- export declare function getOptionalNumberProp(props: NodeProps | undefined, name: string): number | undefined;
14
- export declare function getBooleanProp(props: NodeProps | undefined, name: string, fallback?: boolean): boolean;
@@ -1,30 +0,0 @@
1
- //#region resources/js/core/props.ts
2
- /**
3
- * Read and validate an `options` prop, keeping only well-formed `{ label, value }`
4
- * entries. Shared by the choice/select form fields and the segmented control.
5
- */
6
- function getOptions(props) {
7
- const value = props?.options;
8
- if (!Array.isArray(value)) return [];
9
- return value.filter((option) => typeof option === "object" && option !== null && typeof option.label === "string" && typeof option.value === "string");
10
- }
11
- function getStringProp(props, name, fallback = "") {
12
- const value = props?.[name];
13
- return typeof value === "string" ? value : fallback;
14
- }
15
- function getNumberProp(props, name, fallback) {
16
- const value = props?.[name];
17
- return typeof value === "number" ? value : fallback;
18
- }
19
- function getOptionalNumberProp(props, name) {
20
- const value = props?.[name];
21
- return typeof value === "number" ? value : void 0;
22
- }
23
- function getBooleanProp(props, name, fallback = false) {
24
- const value = props?.[name];
25
- return typeof value === "boolean" ? value : fallback;
26
- }
27
- //#endregion
28
- export { getBooleanProp, getNumberProp, getOptionalNumberProp, getOptions, getStringProp };
29
-
30
- //# sourceMappingURL=props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"props.js","names":[],"sources":["../../resources/js/core/props.ts"],"sourcesContent":["import type { NodeProps } from \"./types\";\n\nexport type Option = {\n label: string;\n value: string;\n};\n\n/**\n * Read and validate an `options` prop, keeping only well-formed `{ label, value }`\n * entries. Shared by the choice/select form fields and the segmented control.\n */\nexport function getOptions(props: NodeProps | undefined): Option[] {\n const value = props?.options;\n\n if (!Array.isArray(value)) {\n return [];\n }\n\n return value.filter(\n (option): option is Option =>\n typeof option === \"object\" &&\n option !== null &&\n typeof option.label === \"string\" &&\n typeof option.value === \"string\",\n );\n}\n\nexport function getStringProp(props: NodeProps | undefined, name: string, fallback = \"\") {\n const value = props?.[name];\n\n return typeof value === \"string\" ? value : fallback;\n}\n\nexport function getNumberProp(props: NodeProps | undefined, name: string, fallback: number) {\n const value = props?.[name];\n\n return typeof value === \"number\" ? value : fallback;\n}\n\nexport function getOptionalNumberProp(props: NodeProps | undefined, name: string) {\n const value = props?.[name];\n\n return typeof value === \"number\" ? value : undefined;\n}\n\nexport function getBooleanProp(props: NodeProps | undefined, name: string, fallback = false) {\n const value = props?.[name];\n\n return typeof value === \"boolean\" ? value : fallback;\n}\n"],"mappings":";;;;;AAWA,SAAgB,WAAW,OAAwC;CACjE,MAAM,QAAQ,OAAO;CAErB,IAAI,CAAC,MAAM,QAAQ,KAAK,GACtB,OAAO,CAAC;CAGV,OAAO,MAAM,QACV,WACC,OAAO,WAAW,YAClB,WAAW,QACX,OAAO,OAAO,UAAU,YACxB,OAAO,OAAO,UAAU,QAC5B;AACF;AAEA,SAAgB,cAAc,OAA8B,MAAc,WAAW,IAAI;CACvF,MAAM,QAAQ,QAAQ;CAEtB,OAAO,OAAO,UAAU,WAAW,QAAQ;AAC7C;AAEA,SAAgB,cAAc,OAA8B,MAAc,UAAkB;CAC1F,MAAM,QAAQ,QAAQ;CAEtB,OAAO,OAAO,UAAU,WAAW,QAAQ;AAC7C;AAEA,SAAgB,sBAAsB,OAA8B,MAAc;CAChF,MAAM,QAAQ,QAAQ;CAEtB,OAAO,OAAO,UAAU,WAAW,QAAQ,KAAA;AAC7C;AAEA,SAAgB,eAAe,OAA8B,MAAc,WAAW,OAAO;CAC3F,MAAM,QAAQ,QAAQ;CAEtB,OAAO,OAAO,UAAU,YAAY,QAAQ;AAC9C"}
@@ -1,10 +0,0 @@
1
- import { RendererComponent } from '../../../../../core/types';
2
- declare module '../../../../../core/types' {
3
- interface ComponentProps {
4
- "form.submit-button": {
5
- label?: string;
6
- variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary";
7
- };
8
- }
9
- }
10
- export declare const SubmitButtonComponent: RendererComponent<"form.submit-button">;
@@ -1,14 +0,0 @@
1
- import { getStringProp } from "../../../core/props.js";
2
- import { FormSubmitButton } from "../base/submit-button.js";
3
- import { jsx } from "react/jsx-runtime";
4
- //#region resources/js/form/components/fields/submit-button.tsx
5
- var SubmitButtonComponent = ({ node }) => {
6
- return /* @__PURE__ */ jsx(FormSubmitButton, {
7
- label: getStringProp(node.props, "label", "Submit"),
8
- variant: node.props?.variant ?? "default"
9
- });
10
- };
11
- //#endregion
12
- export { SubmitButtonComponent };
13
-
14
- //# sourceMappingURL=submit-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"submit-button.js","names":[],"sources":["../../../../resources/js/form/components/fields/submit-button.tsx"],"sourcesContent":["import { getStringProp } from \"@lattice/lattice/core/props\";\nimport type { RendererComponent } from \"@lattice/lattice/core/types\";\nimport { FormSubmitButton } from \"../base/submit-button\";\n\ndeclare module \"@lattice/lattice/core/types\" {\n interface ComponentProps {\n \"form.submit-button\": {\n label?: string;\n variant?: \"default\" | \"destructive\" | \"ghost\" | \"link\" | \"outline\" | \"secondary\";\n };\n }\n}\n\nexport const SubmitButtonComponent: RendererComponent<\"form.submit-button\"> = ({ node }) => {\n return (\n <FormSubmitButton\n label={getStringProp(node.props, \"label\", \"Submit\")}\n variant={node.props?.variant ?? \"default\"}\n />\n );\n};\n"],"mappings":";;;;AAaA,IAAa,yBAAkE,EAAE,WAAW;CAC1F,OACE,oBAAC,kBAAD;EACE,OAAO,cAAc,KAAK,OAAO,SAAS,QAAQ;EAClD,SAAS,KAAK,OAAO,WAAW;CACjC,CAAA;AAEL"}
@@ -1,17 +0,0 @@
1
- export type Align = 'center' | 'left' | 'start' | 'stretch';
2
- export type ConditionOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'empty' | 'filled';
3
- export type ControlType = 'text' | 'number' | 'date' | 'boolean';
4
- export type EffectType = 'toast' | 'reloadComponent' | 'reloadPage' | 'redirect' | 'download' | 'openModal' | 'closeModal' | 'resetForm';
5
- export type FilterOperator = 'contains' | 'starts_with' | 'ends_with' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'before' | 'after' | 'empty' | 'filled';
6
- export type Gap = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
- export type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
8
- export type PageContainer = 'centered' | 'default';
9
- export type PageLayout = 'app' | 'auth' | 'none';
10
- export type PaginationType = 'none' | 'simple' | 'table' | 'infinite';
11
- export type SortDirection = 'asc' | 'desc';
12
- export type TableSort = {
13
- readonly key: string;
14
- readonly direction: SortDirection;
15
- };
16
- export type ToastVariant = 'success' | 'info' | 'warning' | 'error';
17
- export type Width = 'full' | 'sm' | 'md' | 'lg';
@@ -1,3 +0,0 @@
1
- import { IconRendererProps } from '../../..';
2
- export declare function renderBundledIcon({ className, icon }: IconRendererProps): import("react").JSX.Element | null;
3
- export declare function renderMissingIcon({ className }: IconRendererProps): import("react").JSX.Element;
@@ -1,44 +0,0 @@
1
- import { cn } from "../lib/utils.js";
2
- import { jsx } from "react/jsx-runtime";
3
- import { ArrowDown, ArrowUp, Check, ChevronsUpDown, CircleHelp, Copy, ExternalLink, EyeOff, LayoutDashboard, Link, MoreHorizontal, Pencil, PencilLine, Send, Settings, Trash2, X } from "lucide-react";
4
- //#region resources/js/icons/default-icons.tsx
5
- var bundledIcons = {
6
- "arrow-down": ArrowDown,
7
- "arrow-up": ArrowUp,
8
- check: Check,
9
- "chevrons-up-down": ChevronsUpDown,
10
- copy: Copy,
11
- delete: Trash2,
12
- edit: PencilLine,
13
- "external-link": ExternalLink,
14
- "eye-off": EyeOff,
15
- "layout-dashboard": LayoutDashboard,
16
- link: Link,
17
- "more-horizontal": MoreHorizontal,
18
- pencil: Pencil,
19
- "pencil-line": PencilLine,
20
- send: Send,
21
- settings: Settings,
22
- trash: Trash2,
23
- "trash-2": Trash2,
24
- x: X
25
- };
26
- function renderBundledIcon({ className, icon }) {
27
- const Icon = bundledIcons[icon];
28
- if (!Icon) return null;
29
- return /* @__PURE__ */ jsx(Icon, {
30
- "aria-hidden": "true",
31
- className: cn("size-4", className)
32
- });
33
- }
34
- function renderMissingIcon({ className }) {
35
- return /* @__PURE__ */ jsx(CircleHelp, {
36
- "aria-hidden": "true",
37
- className: cn("size-4 text-lt-muted-fg", className),
38
- "data-lattice-missing-icon": ""
39
- });
40
- }
41
- //#endregion
42
- export { renderBundledIcon, renderMissingIcon };
43
-
44
- //# sourceMappingURL=default-icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-icons.js","names":[],"sources":["../../resources/js/icons/default-icons.tsx"],"sourcesContent":["import {\n ArrowDown,\n ArrowUp,\n Check,\n ChevronsUpDown,\n CircleHelp,\n Copy,\n ExternalLink,\n EyeOff,\n LayoutDashboard,\n Link,\n MoreHorizontal,\n Pencil,\n PencilLine,\n Send,\n Settings,\n Trash2,\n X,\n} from \"lucide-react\";\nimport { cn } from \"@lattice/lattice/lib/utils\";\nimport type { IconRendererProps } from \"@lattice/lattice\";\n\nconst bundledIcons = {\n \"arrow-down\": ArrowDown,\n \"arrow-up\": ArrowUp,\n check: Check,\n \"chevrons-up-down\": ChevronsUpDown,\n copy: Copy,\n delete: Trash2,\n edit: PencilLine,\n \"external-link\": ExternalLink,\n \"eye-off\": EyeOff,\n \"layout-dashboard\": LayoutDashboard,\n link: Link,\n \"more-horizontal\": MoreHorizontal,\n pencil: Pencil,\n \"pencil-line\": PencilLine,\n send: Send,\n settings: Settings,\n trash: Trash2,\n \"trash-2\": Trash2,\n x: X,\n};\n\nexport function renderBundledIcon({ className, icon }: IconRendererProps) {\n const Icon = bundledIcons[icon as keyof typeof bundledIcons];\n\n if (!Icon) {\n return null;\n }\n\n return <Icon aria-hidden=\"true\" className={cn(\"size-4\", className)} />;\n}\n\nexport function renderMissingIcon({ className }: IconRendererProps) {\n return (\n <CircleHelp\n aria-hidden=\"true\"\n className={cn(\"size-4 text-lt-muted-fg\", className)}\n data-lattice-missing-icon=\"\"\n />\n );\n}\n"],"mappings":";;;;AAsBA,IAAM,eAAe;CACnB,cAAc;CACd,YAAY;CACZ,OAAO;CACP,oBAAoB;CACpB,MAAM;CACN,QAAQ;CACR,MAAM;CACN,iBAAiB;CACjB,WAAW;CACX,oBAAoB;CACpB,MAAM;CACN,mBAAmB;CACnB,QAAQ;CACR,eAAe;CACf,MAAM;CACN,UAAU;CACV,OAAO;CACP,WAAW;CACX,GAAG;AACL;AAEA,SAAgB,kBAAkB,EAAE,WAAW,QAA2B;CACxE,MAAM,OAAO,aAAa;CAE1B,IAAI,CAAC,MACH,OAAO;CAGT,OAAO,oBAAC,MAAD;EAAM,eAAY;EAAO,WAAW,GAAG,UAAU,SAAS;CAAI,CAAA;AACvE;AAEA,SAAgB,kBAAkB,EAAE,aAAgC;CAClE,OACE,oBAAC,YAAD;EACE,eAAY;EACZ,WAAW,GAAG,2BAA2B,SAAS;EAClD,6BAA0B;CAC3B,CAAA;AAEL"}
@@ -1,2 +0,0 @@
1
- import { IconRendererProps } from '../../..';
2
- export declare function renderDynamicLucideIcon({ className, icon }: IconRendererProps): import("react").JSX.Element | null;
@@ -1,18 +0,0 @@
1
- import { cn } from "../lib/utils.js";
2
- import { jsx } from "react/jsx-runtime";
3
- import { DynamicIcon, iconNames } from "lucide-react/dynamic";
4
- //#region resources/js/icons/dynamic-lucide-renderer.tsx
5
- var lucideIconNames = new Set(iconNames);
6
- function renderDynamicLucideIcon({ className, icon }) {
7
- if (!lucideIconNames.has(icon)) return null;
8
- return /* @__PURE__ */ jsx(DynamicIcon, {
9
- "aria-hidden": "true",
10
- className: cn("size-4", className),
11
- fallback: () => null,
12
- name: icon
13
- });
14
- }
15
- //#endregion
16
- export { renderDynamicLucideIcon };
17
-
18
- //# sourceMappingURL=dynamic-lucide-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamic-lucide-renderer.js","names":[],"sources":["../../resources/js/icons/dynamic-lucide-renderer.tsx"],"sourcesContent":["import { DynamicIcon, iconNames } from \"lucide-react/dynamic\";\nimport { cn } from \"@lattice/lattice/lib/utils\";\nimport type { IconRendererProps } from \"@lattice/lattice\";\n\ntype LucideIconName = (typeof iconNames)[number];\n\nconst lucideIconNames = new Set<string>(iconNames);\n\nexport function renderDynamicLucideIcon({ className, icon }: IconRendererProps) {\n if (!lucideIconNames.has(icon)) {\n return null;\n }\n\n return (\n <DynamicIcon\n aria-hidden=\"true\"\n className={cn(\"size-4\", className)}\n fallback={() => null}\n name={icon as LucideIconName}\n />\n );\n}\n"],"mappings":";;;;AAMA,IAAM,kBAAkB,IAAI,IAAY,SAAS;AAEjD,SAAgB,wBAAwB,EAAE,WAAW,QAA2B;CAC9E,IAAI,CAAC,gBAAgB,IAAI,IAAI,GAC3B,OAAO;CAGT,OACE,oBAAC,aAAD;EACE,eAAY;EACZ,WAAW,GAAG,UAAU,SAAS;EACjC,gBAAgB;EAChB,MAAM;CACP,CAAA;AAEL"}
@@ -1 +0,0 @@
1
- export { useMenu } from './use-menu';
@@ -1,2 +0,0 @@
1
- import { useMenu } from "./use-menu.js";
2
- export { useMenu };
@@ -1,2 +0,0 @@
1
- import { MenuPayload } from '../../../core/types';
2
- export declare function useMenu(location: string): MenuPayload | null;
@@ -1,9 +0,0 @@
1
- import { usePage } from "@inertiajs/react";
2
- //#region resources/js/menu/use-menu.ts
3
- function useMenu(location) {
4
- return usePage().props.lattice?.menus[location] ?? null;
5
- }
6
- //#endregion
7
- export { useMenu };
8
-
9
- //# sourceMappingURL=use-menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-menu.js","names":[],"sources":["../../resources/js/menu/use-menu.ts"],"sourcesContent":["import { usePage } from \"@inertiajs/react\";\nimport type { MenuPayload, PagePayload } from \"@lattice/lattice/core/types\";\n\nexport function useMenu(location: string): MenuPayload | null {\n const page = usePage();\n const lattice = page.props.lattice as PagePayload | undefined;\n\n return lattice?.menus[location] ?? null;\n}\n"],"mappings":";;AAGA,SAAgB,QAAQ,UAAsC;CAI5D,OAHa,QACG,EAAK,MAAM,SAEX,MAAM,aAAa;AACrC"}