@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.
- package/dist/_virtual/_rolldown/runtime.js +8 -0
- package/dist/action/components/action-form.d.ts +24 -0
- package/dist/action/components/action-form.js +270 -0
- package/dist/action/components/action-form.js.map +1 -0
- package/dist/action/components/action-group.d.ts +1 -8
- package/dist/action/components/action-group.js +24 -66
- package/dist/action/components/action-group.js.map +1 -1
- package/dist/action/components/action.d.ts +1 -24
- package/dist/action/components/action.js +61 -46
- package/dist/action/components/action.js.map +1 -1
- package/dist/action/effects.d.ts +6 -25
- package/dist/action/effects.js +2 -2
- package/dist/action/effects.js.map +1 -1
- package/dist/action/index.d.ts +1 -1
- package/dist/core/components/badge.d.ts +1 -8
- package/dist/core/components/badge.js +2 -3
- package/dist/core/components/badge.js.map +1 -1
- package/dist/core/components/button.d.ts +4 -12
- package/dist/core/components/button.js +6 -9
- package/dist/core/components/button.js.map +1 -1
- package/dist/core/components/card.d.ts +1 -9
- package/dist/core/components/card.js +1 -3
- package/dist/core/components/card.js.map +1 -1
- package/dist/core/components/confirm-dialog.d.ts +2 -3
- package/dist/core/components/confirm-dialog.js +19 -13
- package/dist/core/components/confirm-dialog.js.map +1 -1
- package/dist/core/components/fragment.d.ts +1 -10
- package/dist/core/components/fragment.js +5 -6
- package/dist/core/components/fragment.js.map +1 -1
- package/dist/core/components/grid.d.ts +1 -8
- package/dist/core/components/grid.js +1 -2
- package/dist/core/components/grid.js.map +1 -1
- package/dist/core/components/heading.d.ts +1 -9
- package/dist/core/components/heading.js +2 -3
- package/dist/core/components/heading.js.map +1 -1
- package/dist/core/components/icon.d.ts +3 -0
- package/dist/core/components/icon.js +30 -0
- package/dist/core/components/icon.js.map +1 -0
- package/dist/core/components/index.d.ts +1 -1
- package/dist/core/components/index.js +4 -0
- package/dist/core/components/index.js.map +1 -1
- package/dist/core/components/link.d.ts +1 -12
- package/dist/core/components/link.js +4 -9
- package/dist/core/components/link.js.map +1 -1
- package/dist/core/components/modal.d.ts +1 -11
- package/dist/core/components/modal.js +27 -31
- package/dist/core/components/modal.js.map +1 -1
- package/dist/core/components/section.d.ts +3 -0
- package/dist/core/components/section.js +79 -0
- package/dist/core/components/section.js.map +1 -0
- package/dist/core/components/segmented-control.d.ts +1 -14
- package/dist/core/components/segmented-control.js +4 -7
- package/dist/core/components/segmented-control.js.map +1 -1
- package/dist/core/components/segmented-pills.d.ts +4 -2
- package/dist/core/components/segmented-pills.js +10 -1
- package/dist/core/components/segmented-pills.js.map +1 -1
- package/dist/core/components/spinner.js +8 -4
- package/dist/core/components/spinner.js.map +1 -1
- package/dist/core/components/stack.d.ts +1 -11
- package/dist/core/components/stack.js +5 -5
- package/dist/core/components/stack.js.map +1 -1
- package/dist/core/components/tabs.d.ts +1 -19
- package/dist/core/components/tabs.js +45 -21
- package/dist/core/components/tabs.js.map +1 -1
- package/dist/core/components/text.d.ts +1 -9
- package/dist/core/components/text.js +2 -3
- package/dist/core/components/text.js.map +1 -1
- package/dist/core/registry.d.ts +9 -3
- package/dist/core/registry.js +21 -5
- package/dist/core/registry.js.map +1 -1
- package/dist/core/renderer.js +7 -13
- package/dist/core/renderer.js.map +1 -1
- package/dist/core/types.d.ts +54 -26
- package/dist/form/components/base/checkbox.js +5 -2
- package/dist/form/components/base/checkbox.js.map +1 -1
- package/dist/form/components/base/field.d.ts +2 -1
- package/dist/form/components/base/field.js +5 -1
- package/dist/form/components/base/field.js.map +1 -1
- package/dist/form/components/base/password-input.js +9 -2
- package/dist/form/components/base/password-input.js.map +1 -1
- package/dist/form/components/base/submit-button.d.ts +4 -4
- package/dist/form/components/base/submit-button.js +2 -2
- package/dist/form/components/base/submit-button.js.map +1 -1
- package/dist/form/components/conditions.d.ts +6 -9
- package/dist/form/components/conditions.js +10 -2
- package/dist/form/components/conditions.js.map +1 -1
- package/dist/form/components/context.d.ts +0 -4
- package/dist/form/components/context.js +1 -5
- package/dist/form/components/context.js.map +1 -1
- package/dist/form/components/field-props.d.ts +24 -0
- package/dist/form/components/field-props.js +15 -0
- package/dist/form/components/field-props.js.map +1 -0
- package/dist/form/components/fields/checkbox.d.ts +1 -15
- package/dist/form/components/fields/checkbox.js +16 -21
- package/dist/form/components/fields/checkbox.js.map +1 -1
- package/dist/form/components/fields/choice.d.ts +1 -13
- package/dist/form/components/fields/choice.js +13 -20
- package/dist/form/components/fields/choice.js.map +1 -1
- package/dist/form/components/fields/date-input.d.ts +1 -19
- package/dist/form/components/fields/date-input.js +11 -16
- package/dist/form/components/fields/date-input.js.map +1 -1
- package/dist/form/components/fields/hidden-input.d.ts +1 -9
- package/dist/form/components/fields/hidden-input.js +2 -3
- package/dist/form/components/fields/hidden-input.js.map +1 -1
- package/dist/form/components/fields/number-input.d.ts +1 -22
- package/dist/form/components/fields/number-input.js +38 -41
- package/dist/form/components/fields/number-input.js.map +1 -1
- package/dist/form/components/fields/password-input.d.ts +1 -28
- package/dist/form/components/fields/password-input.js +15 -24
- package/dist/form/components/fields/password-input.js.map +1 -1
- package/dist/form/components/fields/rich-editor.d.ts +1 -16
- package/dist/form/components/fields/rich-editor.js +57 -47
- package/dist/form/components/fields/rich-editor.js.map +1 -1
- package/dist/form/components/fields/select.d.ts +1 -22
- package/dist/form/components/fields/select.js +85 -74
- package/dist/form/components/fields/select.js.map +1 -1
- package/dist/form/components/fields/simple-field.d.ts +9 -0
- package/dist/form/components/fields/simple-field.js +22 -0
- package/dist/form/components/fields/simple-field.js.map +1 -0
- package/dist/form/components/fields/text-input.d.ts +1 -20
- package/dist/form/components/fields/text-input.js +12 -17
- package/dist/form/components/fields/text-input.js.map +1 -1
- package/dist/form/components/fields/textarea.d.ts +1 -19
- package/dist/form/components/fields/textarea.js +11 -16
- package/dist/form/components/fields/textarea.js.map +1 -1
- package/dist/form/components/form.d.ts +1 -20
- package/dist/form/components/form.js +29 -36
- package/dist/form/components/form.js.map +1 -1
- package/dist/form/components/index.d.ts +0 -1
- package/dist/form/components/index.js +1 -2
- package/dist/form/components/resolved-nodes.d.ts +1 -1
- package/dist/form/components/resolved-nodes.js +2 -2
- package/dist/form/components/resolved-nodes.js.map +1 -1
- package/dist/form/components/types.d.ts +1 -0
- package/dist/form/components/use-controlled-field.d.ts +3 -9
- package/dist/form/components/use-controlled-field.js +5 -9
- package/dist/form/components/use-controlled-field.js.map +1 -1
- package/dist/form/components/use-dependent-field.d.ts +1 -1
- package/dist/form/components/use-dependent-field.js +8 -8
- package/dist/form/components/use-dependent-field.js.map +1 -1
- package/dist/form/components/use-form-resolver.d.ts +1 -1
- package/dist/form/components/use-form-resolver.js +8 -13
- package/dist/form/components/use-form-resolver.js.map +1 -1
- package/dist/form/components/use-seed-default.d.ts +5 -0
- package/dist/form/components/use-seed-default.js +23 -0
- package/dist/form/components/use-seed-default.js.map +1 -0
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +0 -1
- package/dist/form/index.js.map +1 -1
- package/dist/form/skeleton.d.ts +1 -1
- package/dist/form/skeleton.js +1 -1
- package/dist/form/skeleton.js.map +1 -1
- package/dist/i18n/backend.d.ts +24 -0
- package/dist/i18n/backend.js +39 -0
- package/dist/i18n/backend.js.map +1 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/instance.js +48 -0
- package/dist/i18n/instance.js.map +1 -0
- package/dist/icons/icon-renderer.js +30 -5
- package/dist/icons/icon-renderer.js.map +1 -1
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +2 -1
- package/dist/icons/sprite.d.ts +30 -0
- package/dist/icons/sprite.js +40 -0
- package/dist/icons/sprite.js.map +1 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +7 -3
- package/dist/inertia.d.ts +1 -6
- package/dist/inertia.js +4 -8
- package/dist/inertia.js.map +1 -1
- package/dist/lattice.css +129 -5
- package/dist/layout/components.d.ts +1 -0
- package/dist/layout/components.js +19 -0
- package/dist/layout/components.js.map +1 -0
- package/dist/layout/context.d.ts +12 -0
- package/dist/layout/context.js +19 -0
- package/dist/layout/context.js.map +1 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/index.js +4 -0
- package/dist/layout/menu-item.d.ts +3 -0
- package/dist/layout/menu-item.js +130 -0
- package/dist/layout/menu-item.js.map +1 -0
- package/dist/layout/menu.d.ts +3 -0
- package/dist/layout/menu.js +13 -0
- package/dist/layout/menu.js.map +1 -0
- package/dist/layout/outlet.d.ts +6 -0
- package/dist/layout/outlet.js +14 -0
- package/dist/layout/outlet.js.map +1 -0
- package/dist/layout/schema-layout.d.ts +10 -0
- package/dist/layout/schema-layout.js +30 -0
- package/dist/layout/schema-layout.js.map +1 -0
- package/dist/layout/sidebar.d.ts +3 -0
- package/dist/layout/sidebar.js +48 -0
- package/dist/layout/sidebar.js.map +1 -0
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +1 -4
- package/dist/lib/utils.js.map +1 -1
- package/dist/node_modules/i18next/dist/esm/i18next.js +1982 -0
- package/dist/node_modules/i18next/dist/esm/i18next.js.map +1 -0
- package/dist/node_modules/i18next-http-backend/esm/index.js +352 -0
- package/dist/node_modules/i18next-http-backend/esm/index.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/context.js +23 -0
- package/dist/node_modules/react-i18next/dist/es/context.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.js +29 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js +10 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js +14 -0
- package/dist/node_modules/react-i18next/dist/es/initReactI18next.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.js +30 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +157 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js.map +1 -0
- package/dist/node_modules/react-i18next/dist/es/utils.js +58 -0
- package/dist/node_modules/react-i18next/dist/es/utils.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +70 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +61 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +13 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
- package/dist/page.d.ts +1 -1
- package/dist/page.js +2 -2
- package/dist/page.js.map +1 -1
- package/dist/provider.d.ts +8 -3
- package/dist/provider.js +17 -9
- package/dist/provider.js.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +2 -1
- package/dist/registry.js.map +1 -1
- package/dist/table/bulk.d.ts +6 -10
- package/dist/table/bulk.js +13 -35
- package/dist/table/bulk.js.map +1 -1
- package/dist/table/column-registry.d.ts +9 -0
- package/dist/table/components/bulk-bar.js +34 -3
- package/dist/table/components/bulk-bar.js.map +1 -1
- package/dist/table/components/cells/badge-cell.d.ts +5 -0
- package/dist/table/components/cells/badge-cell.js +16 -0
- package/dist/table/components/cells/badge-cell.js.map +1 -0
- package/dist/table/components/cells/icon-cell.d.ts +5 -0
- package/dist/table/components/cells/icon-cell.js +22 -0
- package/dist/table/components/cells/icon-cell.js.map +1 -0
- package/dist/table/components/cells/image-cell.d.ts +5 -0
- package/dist/table/components/cells/image-cell.js +24 -0
- package/dist/table/components/cells/image-cell.js.map +1 -0
- package/dist/table/components/cells/text-cell.d.ts +6 -0
- package/dist/table/components/cells/text-cell.js +50 -0
- package/dist/table/components/cells/text-cell.js.map +1 -0
- package/dist/table/components/column-filter-control.js +59 -96
- package/dist/table/components/column-filter-control.js.map +1 -1
- package/dist/table/components/column-header.js +22 -11
- package/dist/table/components/column-header.js.map +1 -1
- package/dist/table/components/filter-stack-bar.d.ts +2 -2
- package/dist/table/components/filter-stack-bar.js +10 -8
- package/dist/table/components/filter-stack-bar.js.map +1 -1
- package/dist/table/components/filter-value-input.d.ts +5 -3
- package/dist/table/components/filter-value-input.js +25 -16
- package/dist/table/components/filter-value-input.js.map +1 -1
- package/dist/table/components/pagination.d.ts +1 -1
- package/dist/table/components/pagination.js +20 -8
- package/dist/table/components/pagination.js.map +1 -1
- package/dist/table/components/sort-bar.d.ts +2 -2
- package/dist/table/components/sort-bar.js +12 -10
- package/dist/table/components/sort-bar.js.map +1 -1
- package/dist/table/components/table-action-node.d.ts +1 -1
- package/dist/table/components/table-action-node.js +1 -1
- package/dist/table/components/table-action-node.js.map +1 -1
- package/dist/table/components/table-cell.d.ts +1 -1
- package/dist/table/components/table-cell.js +24 -43
- package/dist/table/components/table-cell.js.map +1 -1
- package/dist/table/components/table.d.ts +6 -2
- package/dist/table/components/table.js +40 -17
- package/dist/table/components/table.js.map +1 -1
- package/dist/table/format.js +5 -3
- package/dist/table/format.js.map +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js.map +1 -1
- package/dist/table/payload.d.ts +1 -1
- package/dist/table/query.d.ts +0 -1
- package/dist/table/query.js +8 -9
- package/dist/table/query.js.map +1 -1
- package/dist/table/types.d.ts +38 -42
- package/dist/table/use-table.d.ts +3 -4
- package/dist/table/use-table.js +12 -23
- package/dist/table/use-table.js.map +1 -1
- package/dist/test-support.d.ts +14 -0
- package/dist/test-support.js +14 -0
- package/dist/test-support.js.map +1 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/toaster.d.ts +3 -0
- package/dist/toast/toaster.js +126 -0
- package/dist/toast/toaster.js.map +1 -0
- package/dist/types/generated.d.ts +677 -0
- package/dist/types/generated.js +0 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +18 -3
- package/resources/icons/align-center.svg +17 -0
- package/resources/icons/align-justify.svg +17 -0
- package/resources/icons/align-left.svg +17 -0
- package/resources/icons/align-right.svg +17 -0
- package/resources/icons/arrow-down.svg +16 -0
- package/resources/icons/arrow-up.svg +16 -0
- package/resources/icons/bold.svg +15 -0
- package/resources/icons/check.svg +15 -0
- package/resources/icons/chevron-down.svg +15 -0
- package/resources/icons/chevron-right.svg +15 -0
- package/resources/icons/chevrons-up-down.svg +16 -0
- package/resources/icons/circle-alert.svg +17 -0
- package/resources/icons/circle-check.svg +16 -0
- package/resources/icons/circle-help.svg +17 -0
- package/resources/icons/circle-x.svg +17 -0
- package/resources/icons/code.svg +16 -0
- package/resources/icons/columns-3.svg +17 -0
- package/resources/icons/copy.svg +16 -0
- package/resources/icons/external-link.svg +17 -0
- package/resources/icons/eye-off.svg +18 -0
- package/resources/icons/eye.svg +16 -0
- package/resources/icons/filter.svg +15 -0
- package/resources/icons/heading-1.svg +18 -0
- package/resources/icons/heading-2.svg +18 -0
- package/resources/icons/heading-3.svg +19 -0
- package/resources/icons/highlighter.svg +16 -0
- package/resources/icons/info.svg +17 -0
- package/resources/icons/italic.svg +17 -0
- package/resources/icons/layout-dashboard.svg +18 -0
- package/resources/icons/link.svg +16 -0
- package/resources/icons/list-ordered.svg +20 -0
- package/resources/icons/list.svg +20 -0
- package/resources/icons/loader-2.svg +15 -0
- package/resources/icons/minus.svg +15 -0
- package/resources/icons/more-horizontal.svg +17 -0
- package/resources/icons/panel-left.svg +16 -0
- package/resources/icons/pencil-line.svg +17 -0
- package/resources/icons/pencil.svg +16 -0
- package/resources/icons/plus.svg +16 -0
- package/resources/icons/quote.svg +16 -0
- package/resources/icons/rows-3.svg +17 -0
- package/resources/icons/search.svg +16 -0
- package/resources/icons/send.svg +16 -0
- package/resources/icons/settings.svg +16 -0
- package/resources/icons/smile.svg +18 -0
- package/resources/icons/strikethrough.svg +17 -0
- package/resources/icons/table.svg +18 -0
- package/resources/icons/trash-2.svg +19 -0
- package/resources/icons/underline.svg +16 -0
- package/resources/icons/x.svg +16 -0
- package/dist/core/props.d.ts +0 -14
- package/dist/core/props.js +0 -30
- package/dist/core/props.js.map +0 -1
- package/dist/form/components/fields/submit-button.d.ts +0 -10
- package/dist/form/components/fields/submit-button.js +0 -14
- package/dist/form/components/fields/submit-button.js.map +0 -1
- package/dist/generated/types.d.ts +0 -17
- package/dist/icons/default-icons.d.ts +0 -3
- package/dist/icons/default-icons.js +0 -44
- package/dist/icons/default-icons.js.map +0 -1
- package/dist/icons/dynamic-lucide-renderer.d.ts +0 -2
- package/dist/icons/dynamic-lucide-renderer.js +0 -18
- package/dist/icons/dynamic-lucide-renderer.js.map +0 -1
- package/dist/menu/index.d.ts +0 -1
- package/dist/menu/index.js +0 -2
- package/dist/menu/use-menu.d.ts +0 -2
- package/dist/menu/use-menu.js +0 -9
- package/dist/menu/use-menu.js.map +0 -1
- /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>
|
package/dist/core/props.d.ts
DELETED
|
@@ -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;
|
package/dist/core/props.js
DELETED
|
@@ -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
|
package/dist/core/props.js.map
DELETED
|
@@ -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,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,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"}
|
package/dist/menu/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useMenu } from './use-menu';
|
package/dist/menu/index.js
DELETED
package/dist/menu/use-menu.d.ts
DELETED
package/dist/menu/use-menu.js
DELETED
|
@@ -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"}
|
|
File without changes
|