@wordrhyme/auto-crud 1.4.3 → 1.4.4

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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
  import { z } from "zod";
3
3
  import { JsonSchemaFormScope } from "@wordrhyme/formily-shadcn";
4
4
  import * as _tanstack_react_table0 from "@tanstack/react-table";
@@ -411,7 +411,7 @@ declare function AutoTableActionBar<TData>({
411
411
  extraActions,
412
412
  actions,
413
413
  deleteConfirmation
414
- }: AutoTableActionBarProps<TData>): react_jsx_runtime2.JSX.Element;
414
+ }: AutoTableActionBarProps<TData>): react_jsx_runtime4.JSX.Element;
415
415
  //#endregion
416
416
  //#region src/lib/schema-bridge/types.d.ts
417
417
  /**
@@ -587,7 +587,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
587
587
  onSelectedCountChange,
588
588
  onSelectedRowsChange,
589
589
  getSelectedRows
590
- }: AutoTableProps<T>): react_jsx_runtime2.JSX.Element;
590
+ }: AutoTableProps<T>): react_jsx_runtime4.JSX.Element;
591
591
  //#endregion
592
592
  //#region src/i18n/locale.d.ts
593
593
  /**
@@ -1079,7 +1079,7 @@ declare function AutoCrudTable<TSchema extends z.ZodObject<z.ZodRawShape>>({
1079
1079
  toolbarActions,
1080
1080
  locale: localeProp,
1081
1081
  onCreate
1082
- }: AutoCrudTableProps<TSchema>): react_jsx_runtime2.JSX.Element;
1082
+ }: AutoCrudTableProps<TSchema>): react_jsx_runtime4.JSX.Element;
1083
1083
  //#endregion
1084
1084
  //#region src/components/auto-crud/auto-form.d.ts
1085
1085
  interface AutoFormProps<T extends z.ZodObject<z.ZodRawShape>> {
@@ -1118,7 +1118,7 @@ declare function AutoFormInner<T extends z.ZodObject<z.ZodRawShape>>({
1118
1118
  labelAlign,
1119
1119
  labelWidth,
1120
1120
  showSubmitButton
1121
- }: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime2.JSX.Element;
1121
+ }: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime4.JSX.Element;
1122
1122
  declare const AutoForm: <T extends z.ZodObject<z.ZodRawShape>>(props: AutoFormProps<T> & {
1123
1123
  ref?: React.Ref<AutoFormRef>;
1124
1124
  }) => ReturnType<typeof AutoFormInner>;
@@ -1434,7 +1434,7 @@ declare function AutoTableSimpleFilters<TData>({
1434
1434
  filters: externalFilters,
1435
1435
  onFiltersChange,
1436
1436
  leading
1437
- }: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime2.JSX.Element | null;
1437
+ }: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime4.JSX.Element | null;
1438
1438
  //#endregion
1439
1439
  //#region src/components/auto-crud/form-modal.d.ts
1440
1440
  type ModalVariant = 'dialog' | 'sheet';
@@ -1478,7 +1478,7 @@ declare function CrudFormModal<T extends z.ZodObject<z.ZodRawShape>>({
1478
1478
  labelAlign,
1479
1479
  labelWidth,
1480
1480
  className
1481
- }: CrudFormModalProps<T>): react_jsx_runtime2.JSX.Element;
1481
+ }: CrudFormModalProps<T>): react_jsx_runtime4.JSX.Element;
1482
1482
  //#endregion
1483
1483
  //#region src/components/auto-crud/import-dialog.d.ts
1484
1484
  interface ImportDialogProps {
@@ -1500,7 +1500,7 @@ declare function ImportDialog({
1500
1500
  columns,
1501
1501
  title,
1502
1502
  locale
1503
- }: ImportDialogProps): react_jsx_runtime2.JSX.Element;
1503
+ }: ImportDialogProps): react_jsx_runtime4.JSX.Element;
1504
1504
  //#endregion
1505
1505
  //#region src/components/auto-crud/export-dialog.d.ts
1506
1506
  type ExportMode = 'selected' | 'filtered';
@@ -1520,7 +1520,7 @@ declare function ExportDialog({
1520
1520
  selectedCount,
1521
1521
  onExport,
1522
1522
  canExportFiltered
1523
- }: ExportDialogProps): react_jsx_runtime2.JSX.Element;
1523
+ }: ExportDialogProps): react_jsx_runtime4.JSX.Element;
1524
1524
  //#endregion
1525
1525
  //#region src/components/data-table/data-table.d.ts
1526
1526
  interface DataTableProps<TData> extends React$1.ComponentProps<'div'> {
@@ -1533,7 +1533,7 @@ declare function DataTable<TData>({
1533
1533
  children,
1534
1534
  className,
1535
1535
  ...props
1536
- }: DataTableProps<TData>): react_jsx_runtime2.JSX.Element;
1536
+ }: DataTableProps<TData>): react_jsx_runtime4.JSX.Element;
1537
1537
  //#endregion
1538
1538
  //#region src/components/data-table/data-table-advanced-toolbar.d.ts
1539
1539
  interface DataTableAdvancedToolbarProps<TData> extends React$1.ComponentProps<'div'> {
@@ -1544,7 +1544,7 @@ declare function DataTableAdvancedToolbar<TData>({
1544
1544
  children,
1545
1545
  className,
1546
1546
  ...props
1547
- }: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime2.JSX.Element;
1547
+ }: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime4.JSX.Element;
1548
1548
  //#endregion
1549
1549
  //#region src/components/data-table/data-table-column-header.d.ts
1550
1550
  interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
@@ -1556,7 +1556,7 @@ declare function DataTableColumnHeader<TData, TValue>({
1556
1556
  label,
1557
1557
  className,
1558
1558
  ...props
1559
- }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime2.JSX.Element;
1559
+ }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime4.JSX.Element;
1560
1560
  //#endregion
1561
1561
  //#region src/components/data-table/data-table-faceted-filter.d.ts
1562
1562
  interface DataTableFacetedFilterProps<TData, TValue> {
@@ -1570,7 +1570,7 @@ declare function DataTableFacetedFilter<TData, TValue>({
1570
1570
  title,
1571
1571
  options,
1572
1572
  multiple
1573
- }: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime2.JSX.Element;
1573
+ }: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime4.JSX.Element;
1574
1574
  //#endregion
1575
1575
  //#region src/components/data-table/data-table-pagination.d.ts
1576
1576
  interface DataTablePaginationProps<TData> extends React.ComponentProps<'div'> {
@@ -1582,7 +1582,7 @@ declare function DataTablePagination<TData>({
1582
1582
  pageSizeOptions,
1583
1583
  className,
1584
1584
  ...props
1585
- }: DataTablePaginationProps<TData>): react_jsx_runtime2.JSX.Element;
1585
+ }: DataTablePaginationProps<TData>): react_jsx_runtime4.JSX.Element;
1586
1586
  //#endregion
1587
1587
  //#region src/components/data-table/data-table-toolbar.d.ts
1588
1588
  interface DataTableToolbarProps<TData> extends React$1.ComponentProps<'div'> {
@@ -1593,7 +1593,7 @@ declare function DataTableToolbar<TData>({
1593
1593
  children,
1594
1594
  className,
1595
1595
  ...props
1596
- }: DataTableToolbarProps<TData>): react_jsx_runtime2.JSX.Element;
1596
+ }: DataTableToolbarProps<TData>): react_jsx_runtime4.JSX.Element;
1597
1597
  //#endregion
1598
1598
  //#region src/components/data-table/data-table-view-options.d.ts
1599
1599
  interface DataTableViewOptionsProps<TData> extends React$1.ComponentProps<typeof PopoverContent> {
@@ -1604,7 +1604,7 @@ declare function DataTableViewOptions<TData>({
1604
1604
  table,
1605
1605
  disabled,
1606
1606
  ...props
1607
- }: DataTableViewOptionsProps<TData>): react_jsx_runtime2.JSX.Element;
1607
+ }: DataTableViewOptionsProps<TData>): react_jsx_runtime4.JSX.Element;
1608
1608
  //#endregion
1609
1609
  //#region src/lib/crud-actions.d.ts
1610
1610
  type CrudActionZone = 'toolbar' | 'row' | 'batch';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as _tanstack_react_table0 from "@tanstack/react-table";
3
3
  import { Column, ColumnDef, ColumnSort, Row, RowData, Table, TableOptions, TableState } from "@tanstack/react-table";
4
4
  import { DropdownMenuTrigger, PopoverContent } from "@wordrhyme/shadcn";
5
5
  import { ClassValue } from "clsx";
6
- import * as react_jsx_runtime3 from "react/jsx-runtime";
6
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
7
7
  import { MultiCombobox, MultiComboboxOption, MultiComboboxProps, MultiComboboxTriggerRenderProps, Select, SelectMode, SelectOption, SelectProps, SelectSearchableDynamicProps, SelectSearchableMultipleProps, SelectSearchableProps, SelectSearchableSingleProps, SelectSimpleProps, SelectTriggerRenderProps } from "@wordrhyme/shadcn-ui";
8
8
  import { z } from "zod";
9
9
  import { JsonSchemaFormScope } from "@wordrhyme/formily-shadcn";
@@ -411,7 +411,7 @@ declare function AutoTableActionBar<TData>({
411
411
  extraActions,
412
412
  actions,
413
413
  deleteConfirmation
414
- }: AutoTableActionBarProps<TData>): react_jsx_runtime3.JSX.Element;
414
+ }: AutoTableActionBarProps<TData>): react_jsx_runtime2.JSX.Element;
415
415
  //#endregion
416
416
  //#region src/lib/schema-bridge/types.d.ts
417
417
  /**
@@ -587,7 +587,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
587
587
  onSelectedCountChange,
588
588
  onSelectedRowsChange,
589
589
  getSelectedRows
590
- }: AutoTableProps<T>): react_jsx_runtime3.JSX.Element;
590
+ }: AutoTableProps<T>): react_jsx_runtime2.JSX.Element;
591
591
  //#endregion
592
592
  //#region src/i18n/locale.d.ts
593
593
  /**
@@ -1079,7 +1079,7 @@ declare function AutoCrudTable<TSchema extends z.ZodObject<z.ZodRawShape>>({
1079
1079
  toolbarActions,
1080
1080
  locale: localeProp,
1081
1081
  onCreate
1082
- }: AutoCrudTableProps<TSchema>): react_jsx_runtime3.JSX.Element;
1082
+ }: AutoCrudTableProps<TSchema>): react_jsx_runtime2.JSX.Element;
1083
1083
  //#endregion
1084
1084
  //#region src/components/auto-crud/auto-form.d.ts
1085
1085
  interface AutoFormProps<T extends z.ZodObject<z.ZodRawShape>> {
@@ -1118,7 +1118,7 @@ declare function AutoFormInner<T extends z.ZodObject<z.ZodRawShape>>({
1118
1118
  labelAlign,
1119
1119
  labelWidth,
1120
1120
  showSubmitButton
1121
- }: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime3.JSX.Element;
1121
+ }: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime2.JSX.Element;
1122
1122
  declare const AutoForm: <T extends z.ZodObject<z.ZodRawShape>>(props: AutoFormProps<T> & {
1123
1123
  ref?: React.Ref<AutoFormRef>;
1124
1124
  }) => ReturnType<typeof AutoFormInner>;
@@ -1434,7 +1434,7 @@ declare function AutoTableSimpleFilters<TData>({
1434
1434
  filters: externalFilters,
1435
1435
  onFiltersChange,
1436
1436
  leading
1437
- }: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime3.JSX.Element | null;
1437
+ }: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime2.JSX.Element | null;
1438
1438
  //#endregion
1439
1439
  //#region src/components/auto-crud/form-modal.d.ts
1440
1440
  type ModalVariant = 'dialog' | 'sheet';
@@ -1478,7 +1478,7 @@ declare function CrudFormModal<T extends z.ZodObject<z.ZodRawShape>>({
1478
1478
  labelAlign,
1479
1479
  labelWidth,
1480
1480
  className
1481
- }: CrudFormModalProps<T>): react_jsx_runtime3.JSX.Element;
1481
+ }: CrudFormModalProps<T>): react_jsx_runtime2.JSX.Element;
1482
1482
  //#endregion
1483
1483
  //#region src/components/auto-crud/import-dialog.d.ts
1484
1484
  interface ImportDialogProps {
@@ -1500,7 +1500,7 @@ declare function ImportDialog({
1500
1500
  columns,
1501
1501
  title,
1502
1502
  locale
1503
- }: ImportDialogProps): react_jsx_runtime3.JSX.Element;
1503
+ }: ImportDialogProps): react_jsx_runtime2.JSX.Element;
1504
1504
  //#endregion
1505
1505
  //#region src/components/auto-crud/export-dialog.d.ts
1506
1506
  type ExportMode = 'selected' | 'filtered';
@@ -1520,7 +1520,7 @@ declare function ExportDialog({
1520
1520
  selectedCount,
1521
1521
  onExport,
1522
1522
  canExportFiltered
1523
- }: ExportDialogProps): react_jsx_runtime3.JSX.Element;
1523
+ }: ExportDialogProps): react_jsx_runtime2.JSX.Element;
1524
1524
  //#endregion
1525
1525
  //#region src/components/data-table/data-table.d.ts
1526
1526
  interface DataTableProps<TData> extends React$1.ComponentProps<'div'> {
@@ -1533,7 +1533,7 @@ declare function DataTable<TData>({
1533
1533
  children,
1534
1534
  className,
1535
1535
  ...props
1536
- }: DataTableProps<TData>): react_jsx_runtime3.JSX.Element;
1536
+ }: DataTableProps<TData>): react_jsx_runtime2.JSX.Element;
1537
1537
  //#endregion
1538
1538
  //#region src/components/data-table/data-table-advanced-toolbar.d.ts
1539
1539
  interface DataTableAdvancedToolbarProps<TData> extends React$1.ComponentProps<'div'> {
@@ -1544,7 +1544,7 @@ declare function DataTableAdvancedToolbar<TData>({
1544
1544
  children,
1545
1545
  className,
1546
1546
  ...props
1547
- }: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime3.JSX.Element;
1547
+ }: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime2.JSX.Element;
1548
1548
  //#endregion
1549
1549
  //#region src/components/data-table/data-table-column-header.d.ts
1550
1550
  interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
@@ -1556,7 +1556,7 @@ declare function DataTableColumnHeader<TData, TValue>({
1556
1556
  label,
1557
1557
  className,
1558
1558
  ...props
1559
- }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime3.JSX.Element;
1559
+ }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime2.JSX.Element;
1560
1560
  //#endregion
1561
1561
  //#region src/components/data-table/data-table-faceted-filter.d.ts
1562
1562
  interface DataTableFacetedFilterProps<TData, TValue> {
@@ -1570,7 +1570,7 @@ declare function DataTableFacetedFilter<TData, TValue>({
1570
1570
  title,
1571
1571
  options,
1572
1572
  multiple
1573
- }: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime3.JSX.Element;
1573
+ }: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime2.JSX.Element;
1574
1574
  //#endregion
1575
1575
  //#region src/components/data-table/data-table-pagination.d.ts
1576
1576
  interface DataTablePaginationProps<TData> extends React.ComponentProps<'div'> {
@@ -1582,7 +1582,7 @@ declare function DataTablePagination<TData>({
1582
1582
  pageSizeOptions,
1583
1583
  className,
1584
1584
  ...props
1585
- }: DataTablePaginationProps<TData>): react_jsx_runtime3.JSX.Element;
1585
+ }: DataTablePaginationProps<TData>): react_jsx_runtime2.JSX.Element;
1586
1586
  //#endregion
1587
1587
  //#region src/components/data-table/data-table-toolbar.d.ts
1588
1588
  interface DataTableToolbarProps<TData> extends React$1.ComponentProps<'div'> {
@@ -1593,7 +1593,7 @@ declare function DataTableToolbar<TData>({
1593
1593
  children,
1594
1594
  className,
1595
1595
  ...props
1596
- }: DataTableToolbarProps<TData>): react_jsx_runtime3.JSX.Element;
1596
+ }: DataTableToolbarProps<TData>): react_jsx_runtime2.JSX.Element;
1597
1597
  //#endregion
1598
1598
  //#region src/components/data-table/data-table-view-options.d.ts
1599
1599
  interface DataTableViewOptionsProps<TData> extends React$1.ComponentProps<typeof PopoverContent> {
@@ -1604,7 +1604,7 @@ declare function DataTableViewOptions<TData>({
1604
1604
  table,
1605
1605
  disabled,
1606
1606
  ...props
1607
- }: DataTableViewOptionsProps<TData>): react_jsx_runtime3.JSX.Element;
1607
+ }: DataTableViewOptionsProps<TData>): react_jsx_runtime2.JSX.Element;
1608
1608
  //#endregion
1609
1609
  //#region src/lib/crud-actions.d.ts
1610
1610
  type CrudActionZone = 'toolbar' | 'row' | 'batch';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wordrhyme/auto-crud",
3
3
  "type": "module",
4
- "version": "1.4.3",
4
+ "version": "1.4.4",
5
5
  "description": "Schema-first CRUD components with auto-generated tables and forms",
6
6
  "author": "wordrhyme",
7
7
  "license": "MIT",
@@ -62,9 +62,9 @@
62
62
  "nanoid": "^5.1.6",
63
63
  "tailwind-merge": "^3.5.0",
64
64
  "vaul": "^1.1.2",
65
- "@wordrhyme/formily-shadcn": "1.13.1",
65
+ "@wordrhyme/formily-shadcn": "1.13.2",
66
66
  "@wordrhyme/shadcn": "1.3.2",
67
- "@wordrhyme/shadcn-ui": "1.32.6"
67
+ "@wordrhyme/shadcn-ui": "1.32.7"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@storybook/react": "^8.6.18",