@nswds/app 6.0.0 → 6.0.2

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
@@ -18,8 +18,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
18
18
  import { Command as Command$1 } from 'cmdk';
19
19
  import * as DialogPrimitive from '@radix-ui/react-dialog';
20
20
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
21
- import { RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
22
- import * as _tanstack_table_core from '@tanstack/table-core';
21
+ import { rowSortingFeature, columnFilteringFeature, globalFilteringFeature, columnVisibilityFeature, rowSelectionFeature, rowPaginationFeature, columnFacetingFeature, Table as Table$1, RowModel, TableFeatures, filterFns, sortFns, RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
23
22
  import { Drawer as Drawer$1 } from 'vaul';
24
23
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
25
24
  import * as react_hook_form from 'react-hook-form';
@@ -940,49 +939,24 @@ declare function ContextMenuLabel({ className, inset, ...props }: react.Componen
940
939
  declare function ContextMenuSeparator({ className, ...props }: react.ComponentProps<typeof ContextMenuPrimitive.Separator>): react.JSX.Element;
941
940
  declare function ContextMenuShortcut({ className, ...props }: react.ComponentProps<'span'>): react.JSX.Element;
942
941
 
943
- declare const dataTableFeatures: {
944
- rowSortingFeature: _tanstack_table_core.TableFeature;
945
- columnFilteringFeature: _tanstack_table_core.TableFeature;
946
- globalFilteringFeature: _tanstack_table_core.TableFeature;
947
- columnVisibilityFeature: _tanstack_table_core.TableFeature;
948
- rowSelectionFeature: _tanstack_table_core.TableFeature;
949
- rowPaginationFeature: _tanstack_table_core.TableFeature;
950
- columnFacetingFeature: _tanstack_table_core.TableFeature;
951
- sortedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
952
- filteredRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
953
- paginatedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
954
- facetedRowModel: (table: _tanstack_table_core.Table<any, any>, columnId: string) => () => _tanstack_table_core.RowModel<any, any>;
955
- facetedUniqueValues: (table: _tanstack_table_core.Table<_tanstack_table_core.TableFeatures, any>, columnId: string) => () => Map<any, number>;
956
- filterFns: {
957
- arrIncludes: _tanstack_table_core.CreatedFilterFn<any, any>;
958
- arrIncludesAll: _tanstack_table_core.CreatedFilterFn<any, any>;
959
- arrHas: _tanstack_table_core.CreatedFilterFn<any, any>;
960
- arrIncludesSome: _tanstack_table_core.CreatedFilterFn<any, any>;
961
- between: _tanstack_table_core.CreatedFilterFn<any, any>;
962
- betweenInclusive: _tanstack_table_core.CreatedFilterFn<any, any>;
963
- empty: _tanstack_table_core.CreatedFilterFn<any, any>;
964
- endsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
965
- equals: _tanstack_table_core.CreatedFilterFn<any, any>;
966
- equalsString: _tanstack_table_core.CreatedFilterFn<any, any>;
967
- equalsStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
968
- inDateRange: _tanstack_table_core.CreatedFilterFn<any, any>;
969
- inNumberRange: _tanstack_table_core.CreatedFilterFn<any, any>;
970
- includesString: _tanstack_table_core.CreatedFilterFn<any, any>;
971
- includesStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
972
- notEmpty: _tanstack_table_core.CreatedFilterFn<any, any>;
973
- startsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
974
- weakEquals: _tanstack_table_core.CreatedFilterFn<any, any>;
975
- };
976
- sortFns: {
977
- alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
978
- alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
979
- basic: _tanstack_table_core.CreatedSortFn<any, any>;
980
- datetime: _tanstack_table_core.CreatedSortFn<any, any>;
981
- text: _tanstack_table_core.CreatedSortFn<any, any>;
982
- textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
983
- };
942
+ type InferredAny = any;
943
+ type DataTableFeatures = {
944
+ rowSortingFeature: typeof rowSortingFeature;
945
+ columnFilteringFeature: typeof columnFilteringFeature;
946
+ globalFilteringFeature: typeof globalFilteringFeature;
947
+ columnVisibilityFeature: typeof columnVisibilityFeature;
948
+ rowSelectionFeature: typeof rowSelectionFeature;
949
+ rowPaginationFeature: typeof rowPaginationFeature;
950
+ columnFacetingFeature: typeof columnFacetingFeature;
951
+ sortedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
952
+ filteredRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
953
+ paginatedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
954
+ facetedRowModel: (table: Table$1<InferredAny, InferredAny>, columnId: string) => () => RowModel<InferredAny, InferredAny>;
955
+ facetedUniqueValues: (table: Table$1<TableFeatures, InferredAny>, columnId: string) => () => Map<InferredAny, number>;
956
+ filterFns: typeof filterFns;
957
+ sortFns: typeof sortFns;
984
958
  };
985
- type DataTableFeatures = typeof dataTableFeatures;
959
+ declare const dataTableFeatures: DataTableFeatures;
986
960
 
987
961
  type ToolbarValue = {
988
962
  value: string;
package/dist/index.d.ts CHANGED
@@ -18,8 +18,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
18
18
  import { Command as Command$1 } from 'cmdk';
19
19
  import * as DialogPrimitive from '@radix-ui/react-dialog';
20
20
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
21
- import { RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
22
- import * as _tanstack_table_core from '@tanstack/table-core';
21
+ import { rowSortingFeature, columnFilteringFeature, globalFilteringFeature, columnVisibilityFeature, rowSelectionFeature, rowPaginationFeature, columnFacetingFeature, Table as Table$1, RowModel, TableFeatures, filterFns, sortFns, RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
23
22
  import { Drawer as Drawer$1 } from 'vaul';
24
23
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
25
24
  import * as react_hook_form from 'react-hook-form';
@@ -940,49 +939,24 @@ declare function ContextMenuLabel({ className, inset, ...props }: react.Componen
940
939
  declare function ContextMenuSeparator({ className, ...props }: react.ComponentProps<typeof ContextMenuPrimitive.Separator>): react.JSX.Element;
941
940
  declare function ContextMenuShortcut({ className, ...props }: react.ComponentProps<'span'>): react.JSX.Element;
942
941
 
943
- declare const dataTableFeatures: {
944
- rowSortingFeature: _tanstack_table_core.TableFeature;
945
- columnFilteringFeature: _tanstack_table_core.TableFeature;
946
- globalFilteringFeature: _tanstack_table_core.TableFeature;
947
- columnVisibilityFeature: _tanstack_table_core.TableFeature;
948
- rowSelectionFeature: _tanstack_table_core.TableFeature;
949
- rowPaginationFeature: _tanstack_table_core.TableFeature;
950
- columnFacetingFeature: _tanstack_table_core.TableFeature;
951
- sortedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
952
- filteredRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
953
- paginatedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
954
- facetedRowModel: (table: _tanstack_table_core.Table<any, any>, columnId: string) => () => _tanstack_table_core.RowModel<any, any>;
955
- facetedUniqueValues: (table: _tanstack_table_core.Table<_tanstack_table_core.TableFeatures, any>, columnId: string) => () => Map<any, number>;
956
- filterFns: {
957
- arrIncludes: _tanstack_table_core.CreatedFilterFn<any, any>;
958
- arrIncludesAll: _tanstack_table_core.CreatedFilterFn<any, any>;
959
- arrHas: _tanstack_table_core.CreatedFilterFn<any, any>;
960
- arrIncludesSome: _tanstack_table_core.CreatedFilterFn<any, any>;
961
- between: _tanstack_table_core.CreatedFilterFn<any, any>;
962
- betweenInclusive: _tanstack_table_core.CreatedFilterFn<any, any>;
963
- empty: _tanstack_table_core.CreatedFilterFn<any, any>;
964
- endsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
965
- equals: _tanstack_table_core.CreatedFilterFn<any, any>;
966
- equalsString: _tanstack_table_core.CreatedFilterFn<any, any>;
967
- equalsStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
968
- inDateRange: _tanstack_table_core.CreatedFilterFn<any, any>;
969
- inNumberRange: _tanstack_table_core.CreatedFilterFn<any, any>;
970
- includesString: _tanstack_table_core.CreatedFilterFn<any, any>;
971
- includesStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
972
- notEmpty: _tanstack_table_core.CreatedFilterFn<any, any>;
973
- startsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
974
- weakEquals: _tanstack_table_core.CreatedFilterFn<any, any>;
975
- };
976
- sortFns: {
977
- alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
978
- alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
979
- basic: _tanstack_table_core.CreatedSortFn<any, any>;
980
- datetime: _tanstack_table_core.CreatedSortFn<any, any>;
981
- text: _tanstack_table_core.CreatedSortFn<any, any>;
982
- textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
983
- };
942
+ type InferredAny = any;
943
+ type DataTableFeatures = {
944
+ rowSortingFeature: typeof rowSortingFeature;
945
+ columnFilteringFeature: typeof columnFilteringFeature;
946
+ globalFilteringFeature: typeof globalFilteringFeature;
947
+ columnVisibilityFeature: typeof columnVisibilityFeature;
948
+ rowSelectionFeature: typeof rowSelectionFeature;
949
+ rowPaginationFeature: typeof rowPaginationFeature;
950
+ columnFacetingFeature: typeof columnFacetingFeature;
951
+ sortedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
952
+ filteredRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
953
+ paginatedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
954
+ facetedRowModel: (table: Table$1<InferredAny, InferredAny>, columnId: string) => () => RowModel<InferredAny, InferredAny>;
955
+ facetedUniqueValues: (table: Table$1<TableFeatures, InferredAny>, columnId: string) => () => Map<InferredAny, number>;
956
+ filterFns: typeof filterFns;
957
+ sortFns: typeof sortFns;
984
958
  };
985
- type DataTableFeatures = typeof dataTableFeatures;
959
+ declare const dataTableFeatures: DataTableFeatures;
986
960
 
987
961
  type ToolbarValue = {
988
962
  value: string;
package/dist/index.js CHANGED
@@ -13213,7 +13213,7 @@ function TableCaption({ className, ...props }) {
13213
13213
  }
13214
13214
  );
13215
13215
  }
13216
- var dataTableFeatures = tableFeatures({
13216
+ var inferredDataTableFeatures = tableFeatures({
13217
13217
  rowSortingFeature,
13218
13218
  columnFilteringFeature,
13219
13219
  globalFilteringFeature,
@@ -13229,6 +13229,7 @@ var dataTableFeatures = tableFeatures({
13229
13229
  filterFns,
13230
13230
  sortFns
13231
13231
  });
13232
+ var dataTableFeatures = inferredDataTableFeatures;
13232
13233
  function DataTable({
13233
13234
  search,
13234
13235
  toolbar,
@@ -14435,7 +14436,7 @@ function FormatToggle({ format, setFormat }) {
14435
14436
 
14436
14437
  // package.json
14437
14438
  var package_default = {
14438
- version: "6.0.0"};
14439
+ version: "6.0.2"};
14439
14440
  var SluggerContext = React5__default.createContext(null);
14440
14441
  function flattenText(nodes) {
14441
14442
  if (nodes == null || typeof nodes === "boolean") return "";