@yimingliao/cms 0.0.116 → 0.0.118
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 +44 -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,12 +6,13 @@ 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
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
15
16
|
import { ClassValue } from 'clsx';
|
|
16
17
|
import 'zod';
|
|
17
18
|
import 'zod/v4/core';
|
|
@@ -428,6 +429,20 @@ interface PageHeaderProps {
|
|
|
428
429
|
}
|
|
429
430
|
declare function PageHeader(props: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
430
431
|
|
|
432
|
+
interface ListCardsContainerProps {
|
|
433
|
+
page: number;
|
|
434
|
+
setPage: Dispatch<SetStateAction<number>>;
|
|
435
|
+
pageSize: number;
|
|
436
|
+
setPageSize: Dispatch<SetStateAction<number>>;
|
|
437
|
+
total: number;
|
|
438
|
+
searchString: string;
|
|
439
|
+
setSearchString: Dispatch<SetStateAction<string>>;
|
|
440
|
+
isFetching: boolean;
|
|
441
|
+
children: ReactNode;
|
|
442
|
+
headerChildren?: ReactNode;
|
|
443
|
+
}
|
|
444
|
+
declare function ListCardsContainer({ page, setPage, pageSize, setPageSize, total, searchString, setSearchString, isFetching, children, headerChildren, }: ListCardsContainerProps): react_jsx_runtime.JSX.Element;
|
|
445
|
+
|
|
431
446
|
declare function Form({ onSubmit, className, ...props }: ComponentProps<"form">): react_jsx_runtime.JSX.Element;
|
|
432
447
|
|
|
433
448
|
interface FieldProps extends LabelProps {
|
|
@@ -483,27 +498,23 @@ interface ControlFieldsProps<T extends FormData> extends FormFieldController<T>
|
|
|
483
498
|
}
|
|
484
499
|
declare function ControlFields<T extends FormData>({ fields, controlMeta, formData, setFormData, isLoading, isDisabled, isDisplay, errors, ...props }: ControlFieldsProps<T>): react_jsx_runtime.JSX.Element | null;
|
|
485
500
|
|
|
486
|
-
interface
|
|
487
|
-
|
|
501
|
+
interface ArrayInputProps<T extends FormData = FormData> extends ComponentProps<"textarea">, FormFieldController<T> {
|
|
502
|
+
isResizable?: boolean;
|
|
503
|
+
errors: string[];
|
|
488
504
|
}
|
|
489
|
-
declare function
|
|
490
|
-
|
|
491
|
-
declare function PasswordInput<T extends FormData = FormData>({ ...props }: InputProps<T>): react_jsx_runtime.JSX.Element;
|
|
505
|
+
declare function ArrayInput<T extends FormData = FormData>({ formData, fieldName, setFormData, isLoading, isDisabled, isResizable, errors, placeholder, ...props }: ArrayInputProps<T>): react_jsx_runtime.JSX.Element;
|
|
492
506
|
|
|
493
507
|
interface CheckboxProps<T extends FormData = FormData> extends InputHTMLAttributes<HTMLInputElement>, FormFieldController<T> {
|
|
494
508
|
isDisplay?: boolean;
|
|
495
509
|
}
|
|
496
510
|
declare function Checkbox<T extends FormData = FormData>({ fieldName, formData, setFormData, isLoading, isDisabled, isDisplay, className, ...props }: CheckboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
497
511
|
|
|
498
|
-
interface
|
|
512
|
+
interface InputProps<T extends FormData = FormData> extends ComponentProps<"input">, FormFieldController<T> {
|
|
513
|
+
inputGroupClassName?: string;
|
|
499
514
|
}
|
|
500
|
-
declare function
|
|
515
|
+
declare function Input<T extends FormData = FormData>({ fieldName, setFormData, isLoading, isDisabled, isError, className, inputGroupClassName, children, ...props }: InputProps<T>): react_jsx_runtime.JSX.Element;
|
|
501
516
|
|
|
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;
|
|
517
|
+
declare function PasswordInput<T extends FormData = FormData>({ ...props }: InputProps<T>): react_jsx_runtime.JSX.Element;
|
|
507
518
|
|
|
508
519
|
interface SearchInputProps extends InputProps {
|
|
509
520
|
searchString: string;
|
|
@@ -511,6 +522,23 @@ interface SearchInputProps extends InputProps {
|
|
|
511
522
|
}
|
|
512
523
|
declare function SearchInput({ searchString, setSearchString, isLoading, isDisabled, ...props }: SearchInputProps): react_jsx_runtime.JSX.Element;
|
|
513
524
|
|
|
525
|
+
interface SelectProps<T extends FormData> extends ComponentProps<typeof SelectPrimitive.Root>, FormFieldController<T> {
|
|
526
|
+
className?: string;
|
|
527
|
+
placeholder?: string;
|
|
528
|
+
label?: string;
|
|
529
|
+
id?: string;
|
|
530
|
+
}
|
|
531
|
+
declare function Select<T extends FormData>({ fieldName, setFormData, isDisabled, isLoading, placeholder, label, className, children, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
532
|
+
declare function Option({ value, isDisabled, children, }: {
|
|
533
|
+
value: string;
|
|
534
|
+
isDisabled?: boolean;
|
|
535
|
+
children: ReactNode;
|
|
536
|
+
}): react_jsx_runtime.JSX.Element;
|
|
537
|
+
|
|
538
|
+
interface TextareaProps<T extends FormData = FormData> extends ComponentProps<"textarea">, FormFieldController<T> {
|
|
539
|
+
}
|
|
540
|
+
declare function Textarea<T extends FormData = FormData>({ fieldName, setFormData, isLoading, isDisabled, isError, ...props }: TextareaProps<T>): react_jsx_runtime.JSX.Element;
|
|
541
|
+
|
|
514
542
|
/**
|
|
515
543
|
* [Auth] sign-in
|
|
516
544
|
*
|
|
@@ -591,4 +619,4 @@ declare const cn: (...inputs: ClassValue[]) => string;
|
|
|
591
619
|
|
|
592
620
|
declare function useDeviceInfo(): DeviceInfo | null;
|
|
593
621
|
|
|
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 };
|
|
622
|
+
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, Option, PAGE_HEADER_HEIGHT, PageHeader, PasswordInput, ReturnButton, SIDEBAR_WIDTH, SearchInput, Select, 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 };
|