@prediktif/ui 0.1.21 → 0.1.23

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.mts CHANGED
@@ -3,6 +3,7 @@ import { ReactNode, ComponentProps } from 'react';
3
3
  import * as _tanstack_react_table from '@tanstack/react-table';
4
4
  import { RowData, Table, ColumnDef, ColumnFiltersState, Row, SortingState, ColumnVisibilityState } from '@tanstack/react-table';
5
5
  export { ColumnDef, ColumnFiltersState, ColumnVisibilityState, FilterFn, Row, RowData, SortingState, Table, flexRender, useTable } from '@tanstack/react-table';
6
+ import { z } from 'zod';
6
7
  import * as class_variance_authority_types from 'class-variance-authority/types';
7
8
  import { Button as Button$1 } from '@base-ui/react/button';
8
9
  import { VariantProps } from 'class-variance-authority';
@@ -41,6 +42,38 @@ interface AppSidebarProps {
41
42
  }
42
43
  declare const AppSidebar: react.NamedExoticComponent<AppSidebarProps>;
43
44
 
45
+ interface AvatarUserProps {
46
+ name?: string | null;
47
+ image?: string | null;
48
+ }
49
+ declare const AvatarUser: react.NamedExoticComponent<AvatarUserProps>;
50
+
51
+ interface EmailLabelProps {
52
+ email?: string | null;
53
+ }
54
+ declare const EmailLabel: react.NamedExoticComponent<EmailLabelProps>;
55
+
56
+ interface EmailVerifiedProps {
57
+ verified: boolean;
58
+ }
59
+ declare const EmailVerified: react.NamedExoticComponent<EmailVerifiedProps>;
60
+
61
+ interface JoinedLabelProps {
62
+ joined?: Date | string | null;
63
+ locale?: string;
64
+ }
65
+ declare const JoinedLabel: react.NamedExoticComponent<JoinedLabelProps>;
66
+
67
+ interface UserRoleProps {
68
+ role?: string | null;
69
+ }
70
+ declare const UserRole: react.NamedExoticComponent<UserRoleProps>;
71
+
72
+ interface UserStatusProps {
73
+ status?: boolean | null;
74
+ }
75
+ declare const UserStatus: react.NamedExoticComponent<UserStatusProps>;
76
+
44
77
  /**
45
78
  * Configure TanStack Table features used by DataTable.
46
79
  * Enables column/global filtering, visibility toggling, pagination, row selection, and sorting.
@@ -302,6 +335,24 @@ interface HeaderTitleProps {
302
335
  }
303
336
  declare const HeaderTitle: react.NamedExoticComponent<HeaderTitleProps>;
304
337
 
338
+ type GoogleIconProps = ComponentProps<"svg">;
339
+ declare function GoogleIcon({ className, ...props }: GoogleIconProps): react.JSX.Element;
340
+
341
+ declare const loginSchema: z.ZodObject<{
342
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
343
+ password: z.ZodString;
344
+ }, z.core.$strip>;
345
+ type LoginValues = z.infer<typeof loginSchema>;
346
+ type LoginSubmitResult = {
347
+ error?: string;
348
+ } | undefined;
349
+ interface LoginServerProps {
350
+ onSubmit?: (values: LoginValues) => Promise<LoginSubmitResult> | LoginSubmitResult;
351
+ onGoogleSignIn?: () => Promise<void> | void;
352
+ isSubmitting?: boolean;
353
+ }
354
+ declare function LoginServer({ onSubmit, onGoogleSignIn, isSubmitting: externalIsSubmitting, }: LoginServerProps): react.JSX.Element;
355
+
305
356
  declare const buttonVariants: (props?: ({
306
357
  variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
307
358
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
@@ -321,4 +372,4 @@ interface StateEmptyProps {
321
372
  }
322
373
  declare const StateEmpty: react.NamedExoticComponent<StateEmptyProps>;
323
374
 
324
- export { AppSidebar, type AppSidebarProps, type ColumnMetaCustom, DataTable, DataTableContentBody, type DataTableContentBodyProps, DataTableContentHeader, type DataTableContentHeaderProps, type DataTableFeatures, DataTableFooterEntries, type DataTableFooterEntriesProps, DataTableFooterPagination, type DataTableFooterPaginationProps, DataTableHeaderAdd, type DataTableHeaderAddProps, DataTableHeaderDownload, type DataTableHeaderDownloadProps, DataTableHeaderFilter, type DataTableHeaderFilterProps, DataTableHeaderRefresh, DataTableHeaderSearch, type DataTableHeaderSearchProps, DataTableHeaderSort, type DataTableHeaderSortProps, DataTableHeaderToggle, type DataTableHeaderToggleProps, type DataTableProps, type FilterSelectOption, type FilterVariant, type HeaderTabItem, HeaderTabs, type HeaderTabsProps, HeaderTitle, type HeaderTitleProps, type NavItem, type OrganizationItem, type RowActionItem, RowActions, type RowActionsProps, StateEmpty, type StateEmptyProps, exportToCSV, exportToPDF, exportToXLSX, features, getTableExportData, printTable, smartFilterFn };
375
+ export { AppSidebar, type AppSidebarProps, AvatarUser, type AvatarUserProps, type ColumnMetaCustom, DataTable, DataTableContentBody, type DataTableContentBodyProps, DataTableContentHeader, type DataTableContentHeaderProps, type DataTableFeatures, DataTableFooterEntries, type DataTableFooterEntriesProps, DataTableFooterPagination, type DataTableFooterPaginationProps, DataTableHeaderAdd, type DataTableHeaderAddProps, DataTableHeaderDownload, type DataTableHeaderDownloadProps, DataTableHeaderFilter, type DataTableHeaderFilterProps, DataTableHeaderRefresh, DataTableHeaderSearch, type DataTableHeaderSearchProps, DataTableHeaderSort, type DataTableHeaderSortProps, DataTableHeaderToggle, type DataTableHeaderToggleProps, type DataTableProps, EmailLabel, type EmailLabelProps, EmailVerified, type EmailVerifiedProps, type FilterSelectOption, type FilterVariant, GoogleIcon, type GoogleIconProps, type HeaderTabItem, HeaderTabs, type HeaderTabsProps, HeaderTitle, type HeaderTitleProps, JoinedLabel, type JoinedLabelProps, LoginServer, type LoginServerProps, type LoginSubmitResult, type LoginValues, type NavItem, type OrganizationItem, type RowActionItem, RowActions, type RowActionsProps, StateEmpty, type StateEmptyProps, UserRole, type UserRoleProps, UserStatus, type UserStatusProps, exportToCSV, exportToPDF, exportToXLSX, features, getTableExportData, loginSchema, printTable, smartFilterFn };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { ReactNode, ComponentProps } from 'react';
3
3
  import * as _tanstack_react_table from '@tanstack/react-table';
4
4
  import { RowData, Table, ColumnDef, ColumnFiltersState, Row, SortingState, ColumnVisibilityState } from '@tanstack/react-table';
5
5
  export { ColumnDef, ColumnFiltersState, ColumnVisibilityState, FilterFn, Row, RowData, SortingState, Table, flexRender, useTable } from '@tanstack/react-table';
6
+ import { z } from 'zod';
6
7
  import * as class_variance_authority_types from 'class-variance-authority/types';
7
8
  import { Button as Button$1 } from '@base-ui/react/button';
8
9
  import { VariantProps } from 'class-variance-authority';
@@ -41,6 +42,38 @@ interface AppSidebarProps {
41
42
  }
42
43
  declare const AppSidebar: react.NamedExoticComponent<AppSidebarProps>;
43
44
 
45
+ interface AvatarUserProps {
46
+ name?: string | null;
47
+ image?: string | null;
48
+ }
49
+ declare const AvatarUser: react.NamedExoticComponent<AvatarUserProps>;
50
+
51
+ interface EmailLabelProps {
52
+ email?: string | null;
53
+ }
54
+ declare const EmailLabel: react.NamedExoticComponent<EmailLabelProps>;
55
+
56
+ interface EmailVerifiedProps {
57
+ verified: boolean;
58
+ }
59
+ declare const EmailVerified: react.NamedExoticComponent<EmailVerifiedProps>;
60
+
61
+ interface JoinedLabelProps {
62
+ joined?: Date | string | null;
63
+ locale?: string;
64
+ }
65
+ declare const JoinedLabel: react.NamedExoticComponent<JoinedLabelProps>;
66
+
67
+ interface UserRoleProps {
68
+ role?: string | null;
69
+ }
70
+ declare const UserRole: react.NamedExoticComponent<UserRoleProps>;
71
+
72
+ interface UserStatusProps {
73
+ status?: boolean | null;
74
+ }
75
+ declare const UserStatus: react.NamedExoticComponent<UserStatusProps>;
76
+
44
77
  /**
45
78
  * Configure TanStack Table features used by DataTable.
46
79
  * Enables column/global filtering, visibility toggling, pagination, row selection, and sorting.
@@ -302,6 +335,24 @@ interface HeaderTitleProps {
302
335
  }
303
336
  declare const HeaderTitle: react.NamedExoticComponent<HeaderTitleProps>;
304
337
 
338
+ type GoogleIconProps = ComponentProps<"svg">;
339
+ declare function GoogleIcon({ className, ...props }: GoogleIconProps): react.JSX.Element;
340
+
341
+ declare const loginSchema: z.ZodObject<{
342
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
343
+ password: z.ZodString;
344
+ }, z.core.$strip>;
345
+ type LoginValues = z.infer<typeof loginSchema>;
346
+ type LoginSubmitResult = {
347
+ error?: string;
348
+ } | undefined;
349
+ interface LoginServerProps {
350
+ onSubmit?: (values: LoginValues) => Promise<LoginSubmitResult> | LoginSubmitResult;
351
+ onGoogleSignIn?: () => Promise<void> | void;
352
+ isSubmitting?: boolean;
353
+ }
354
+ declare function LoginServer({ onSubmit, onGoogleSignIn, isSubmitting: externalIsSubmitting, }: LoginServerProps): react.JSX.Element;
355
+
305
356
  declare const buttonVariants: (props?: ({
306
357
  variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
307
358
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
@@ -321,4 +372,4 @@ interface StateEmptyProps {
321
372
  }
322
373
  declare const StateEmpty: react.NamedExoticComponent<StateEmptyProps>;
323
374
 
324
- export { AppSidebar, type AppSidebarProps, type ColumnMetaCustom, DataTable, DataTableContentBody, type DataTableContentBodyProps, DataTableContentHeader, type DataTableContentHeaderProps, type DataTableFeatures, DataTableFooterEntries, type DataTableFooterEntriesProps, DataTableFooterPagination, type DataTableFooterPaginationProps, DataTableHeaderAdd, type DataTableHeaderAddProps, DataTableHeaderDownload, type DataTableHeaderDownloadProps, DataTableHeaderFilter, type DataTableHeaderFilterProps, DataTableHeaderRefresh, DataTableHeaderSearch, type DataTableHeaderSearchProps, DataTableHeaderSort, type DataTableHeaderSortProps, DataTableHeaderToggle, type DataTableHeaderToggleProps, type DataTableProps, type FilterSelectOption, type FilterVariant, type HeaderTabItem, HeaderTabs, type HeaderTabsProps, HeaderTitle, type HeaderTitleProps, type NavItem, type OrganizationItem, type RowActionItem, RowActions, type RowActionsProps, StateEmpty, type StateEmptyProps, exportToCSV, exportToPDF, exportToXLSX, features, getTableExportData, printTable, smartFilterFn };
375
+ export { AppSidebar, type AppSidebarProps, AvatarUser, type AvatarUserProps, type ColumnMetaCustom, DataTable, DataTableContentBody, type DataTableContentBodyProps, DataTableContentHeader, type DataTableContentHeaderProps, type DataTableFeatures, DataTableFooterEntries, type DataTableFooterEntriesProps, DataTableFooterPagination, type DataTableFooterPaginationProps, DataTableHeaderAdd, type DataTableHeaderAddProps, DataTableHeaderDownload, type DataTableHeaderDownloadProps, DataTableHeaderFilter, type DataTableHeaderFilterProps, DataTableHeaderRefresh, DataTableHeaderSearch, type DataTableHeaderSearchProps, DataTableHeaderSort, type DataTableHeaderSortProps, DataTableHeaderToggle, type DataTableHeaderToggleProps, type DataTableProps, EmailLabel, type EmailLabelProps, EmailVerified, type EmailVerifiedProps, type FilterSelectOption, type FilterVariant, GoogleIcon, type GoogleIconProps, type HeaderTabItem, HeaderTabs, type HeaderTabsProps, HeaderTitle, type HeaderTitleProps, JoinedLabel, type JoinedLabelProps, LoginServer, type LoginServerProps, type LoginSubmitResult, type LoginValues, type NavItem, type OrganizationItem, type RowActionItem, RowActions, type RowActionsProps, StateEmpty, type StateEmptyProps, UserRole, type UserRoleProps, UserStatus, type UserStatusProps, exportToCSV, exportToPDF, exportToXLSX, features, getTableExportData, loginSchema, printTable, smartFilterFn };