@yimingliao/cms 0.0.116 → 0.0.117
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/{chunk-WU47KNJR.js → chunk-7YMYPMIB.js} +1069 -813
- package/dist/client/index.d.ts +30 -16
- package/dist/client/index.js +549 -350
- package/dist/client/shadcn/index.d.ts +62 -37
- package/dist/client/shadcn/index.js +1 -1
- package/dist/{sidebar-BlYl83Yl.d.ts → sidebar-CBC8_O5A.d.ts} +1 -1
- package/package.json +2 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ import * as _tanstack_query_core from '@tanstack/query-core';
|
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
8
8
|
import * as React$1 from 'react';
|
|
9
|
-
import { HTMLAttributes, ReactNode, JSX,
|
|
9
|
+
import { HTMLAttributes, ReactNode, JSX, Dispatch, SetStateAction, ComponentProps, InputHTMLAttributes } from 'react';
|
|
10
10
|
import { c as createVerifyAction, a as createSignOutAction, b as createSignInAction, d as createVerifyEmailAction, e as createEmailUnverifiedAction, f as createForgotPasswordAction, g as createResetPasswordAction, h as createChangePasswordAction } from '../create-reset-password-action-C-B3uh5m.js';
|
|
11
11
|
import { LucideIcon } from 'lucide-react';
|
|
12
|
-
import { B as ButtonProps$1, L as LabelProps } from '../sidebar-
|
|
13
|
-
export { S as Sidebar, a as SidebarContent, b as SidebarInset, c as SidebarProvider, u as useSidebar } from '../sidebar-
|
|
12
|
+
import { B as ButtonProps$1, L as LabelProps } from '../sidebar-CBC8_O5A.js';
|
|
13
|
+
export { S as Sidebar, a as SidebarContent, b as SidebarInset, c as SidebarProvider, u as useSidebar } from '../sidebar-CBC8_O5A.js';
|
|
14
14
|
import { U as UIStates, F as FormData, a as FormFieldController } from '../types-BUmWwzpD.js';
|
|
15
15
|
import { ClassValue } from 'clsx';
|
|
16
16
|
import 'zod';
|
|
@@ -428,6 +428,20 @@ interface PageHeaderProps {
|
|
|
428
428
|
}
|
|
429
429
|
declare function PageHeader(props: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
430
430
|
|
|
431
|
+
interface ListCardsContainerProps {
|
|
432
|
+
page: number;
|
|
433
|
+
setPage: Dispatch<SetStateAction<number>>;
|
|
434
|
+
pageSize: number;
|
|
435
|
+
setPageSize: Dispatch<SetStateAction<number>>;
|
|
436
|
+
total: number;
|
|
437
|
+
searchString: string;
|
|
438
|
+
setSearchString: Dispatch<SetStateAction<string>>;
|
|
439
|
+
isFetching: boolean;
|
|
440
|
+
children: ReactNode;
|
|
441
|
+
headerChildren?: ReactNode;
|
|
442
|
+
}
|
|
443
|
+
declare function ListCardsContainer({ page, setPage, pageSize, setPageSize, total, searchString, setSearchString, isFetching, children, headerChildren, }: ListCardsContainerProps): react_jsx_runtime.JSX.Element;
|
|
444
|
+
|
|
431
445
|
declare function Form({ onSubmit, className, ...props }: ComponentProps<"form">): react_jsx_runtime.JSX.Element;
|
|
432
446
|
|
|
433
447
|
interface FieldProps extends LabelProps {
|
|
@@ -483,27 +497,23 @@ interface ControlFieldsProps<T extends FormData> extends FormFieldController<T>
|
|
|
483
497
|
}
|
|
484
498
|
declare function ControlFields<T extends FormData>({ fields, controlMeta, formData, setFormData, isLoading, isDisabled, isDisplay, errors, ...props }: ControlFieldsProps<T>): react_jsx_runtime.JSX.Element | null;
|
|
485
499
|
|
|
486
|
-
interface
|
|
487
|
-
|
|
500
|
+
interface ArrayInputProps<T extends FormData = FormData> extends ComponentProps<"textarea">, FormFieldController<T> {
|
|
501
|
+
isResizable?: boolean;
|
|
502
|
+
errors: string[];
|
|
488
503
|
}
|
|
489
|
-
declare function
|
|
490
|
-
|
|
491
|
-
declare function PasswordInput<T extends FormData = FormData>({ ...props }: InputProps<T>): react_jsx_runtime.JSX.Element;
|
|
504
|
+
declare function ArrayInput<T extends FormData = FormData>({ formData, fieldName, setFormData, isLoading, isDisabled, isResizable, errors, placeholder, ...props }: ArrayInputProps<T>): react_jsx_runtime.JSX.Element;
|
|
492
505
|
|
|
493
506
|
interface CheckboxProps<T extends FormData = FormData> extends InputHTMLAttributes<HTMLInputElement>, FormFieldController<T> {
|
|
494
507
|
isDisplay?: boolean;
|
|
495
508
|
}
|
|
496
509
|
declare function Checkbox<T extends FormData = FormData>({ fieldName, formData, setFormData, isLoading, isDisabled, isDisplay, className, ...props }: CheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
497
510
|
|
|
498
|
-
interface
|
|
511
|
+
interface InputProps<T extends FormData = FormData> extends ComponentProps<"input">, FormFieldController<T> {
|
|
512
|
+
inputGroupClassName?: string;
|
|
499
513
|
}
|
|
500
|
-
declare function
|
|
514
|
+
declare function Input<T extends FormData = FormData>({ fieldName, setFormData, isLoading, isDisabled, isError, className, inputGroupClassName, children, ...props }: InputProps<T>): react_jsx_runtime.JSX.Element;
|
|
501
515
|
|
|
502
|
-
|
|
503
|
-
isResizable?: boolean;
|
|
504
|
-
errors: string[];
|
|
505
|
-
}
|
|
506
|
-
declare function ArrayInput<T extends FormData = FormData>({ formData, fieldName, setFormData, isLoading, isDisabled, isResizable, errors, placeholder, ...props }: ArrayInputProps<T>): react_jsx_runtime.JSX.Element;
|
|
516
|
+
declare function PasswordInput<T extends FormData = FormData>({ ...props }: InputProps<T>): react_jsx_runtime.JSX.Element;
|
|
507
517
|
|
|
508
518
|
interface SearchInputProps extends InputProps {
|
|
509
519
|
searchString: string;
|
|
@@ -511,6 +521,10 @@ interface SearchInputProps extends InputProps {
|
|
|
511
521
|
}
|
|
512
522
|
declare function SearchInput({ searchString, setSearchString, isLoading, isDisabled, ...props }: SearchInputProps): react_jsx_runtime.JSX.Element;
|
|
513
523
|
|
|
524
|
+
interface TextareaProps<T extends FormData = FormData> extends ComponentProps<"textarea">, FormFieldController<T> {
|
|
525
|
+
}
|
|
526
|
+
declare function Textarea<T extends FormData = FormData>({ fieldName, setFormData, isLoading, isDisabled, isError, ...props }: TextareaProps<T>): react_jsx_runtime.JSX.Element;
|
|
527
|
+
|
|
514
528
|
/**
|
|
515
529
|
* [Auth] sign-in
|
|
516
530
|
*
|
|
@@ -591,4 +605,4 @@ declare const cn: (...inputs: ClassValue[]) => string;
|
|
|
591
605
|
|
|
592
606
|
declare function useDeviceInfo(): DeviceInfo | null;
|
|
593
607
|
|
|
594
|
-
export { AdminProvider, ArrayInput, Button, type ButtonProps, Checkbox, ContentContainer, ControlFields, type ControlMeta, Field, FieldBody, FieldsContainer, Form, IndexField, Input, type InputProps, LayoutSkeleton, MainFields, NAVBAR_HEIGHT, type NavItem, NavMain, PAGE_HEADER_HEIGHT, PageHeader, PasswordInput, ReturnButton, SIDEBAR_WIDTH, SearchInput, type ShowToastOption, SideFields, SlugField, Textarea, ThemeProvider, cn, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin, useDeviceInfo };
|
|
608
|
+
export { AdminProvider, ArrayInput, Button, type ButtonProps, Checkbox, ContentContainer, ControlFields, type ControlMeta, Field, FieldBody, FieldsContainer, Form, IndexField, Input, type InputProps, LayoutSkeleton, ListCardsContainer, MainFields, NAVBAR_HEIGHT, type NavItem, NavMain, PAGE_HEADER_HEIGHT, PageHeader, PasswordInput, ReturnButton, SIDEBAR_WIDTH, SearchInput, type ShowToastOption, SideFields, SlugField, Textarea, ThemeProvider, cn, createAdminInitializer, createChangePasswordPage, createEmailUnverifiedPage, createForgotPasswordPage, createI18nSelector, createNavbar, createRequestInterceptor, createResetPasswordPage, createResponseInterceptor, createSignInPage, createSignOutButton, createSmartFetch, createUseCommand, createUseQuery, createVerifyEmailPage, handleToast, useAdmin, useDeviceInfo };
|