@yimingliao/cms 0.0.101 → 0.0.103

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.
@@ -1,14 +1,14 @@
1
- import { z as Translation, R as Result, S as SuccessResult, d as ErrorResult, g as AdminFull, D as DeviceInfo } from '../types-BGsFazJr.js';
1
+ import { R as Result, S as SuccessResult, d as ErrorResult, g as AdminFull, D as DeviceInfo } from '../types-BGsFazJr.js';
2
2
  import { Logger } from 'logry';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { QueryClient, UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
5
5
  import * as _tanstack_query_core from '@tanstack/query-core';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { c as createVerifyAction, a as createSignInAction, b as createVerifyEmailAction, d as createEmailUnverifiedAction, e as createForgotPasswordAction, f as createResetPasswordAction, g as createChangePasswordAction } from '../create-reset-password-action-D6aTuuqO.js';
8
- import * as React$1 from 'react';
9
- import { ReactNode, ComponentProps, HTMLAttributes, InputHTMLAttributes, Dispatch, SetStateAction } from 'react';
8
+ import { U as UIStates, F as FormData, a as FormFieldController } from '../types-BUmWwzpD.js';
10
9
  import { LucideIcon } from 'lucide-react';
11
10
  import { B as ButtonProps$1, L as LabelProps } from '../label-BF4qxS03.js';
11
+ import { ReactNode, ComponentProps, HTMLAttributes, InputHTMLAttributes, Dispatch, SetStateAction } from 'react';
12
12
  import { ClassValue } from 'clsx';
13
13
  import 'zod';
14
14
  import 'zod/v4/core';
@@ -25,24 +25,6 @@ import 'class-variance-authority/types';
25
25
  import 'class-variance-authority';
26
26
  import '@radix-ui/react-label';
27
27
 
28
- interface UIStates {
29
- isLoading?: boolean | undefined;
30
- isDisabled?: boolean | undefined;
31
- isError?: boolean | undefined;
32
- }
33
- type FormData = Record<string, unknown>;
34
- interface FormContext<T extends FormData = FormData> {
35
- formData?: T | undefined;
36
- setFormData?: React$1.Dispatch<React$1.SetStateAction<T>> | undefined;
37
- }
38
- interface FieldContext {
39
- fieldName?: string | undefined;
40
- translations?: Translation[] | undefined;
41
- errors?: string[] | undefined;
42
- }
43
- interface FormFieldController<T extends FormData = FormData> extends UIStates, FormContext<T>, FieldContext {
44
- }
45
-
46
28
  interface FetchContext {
47
29
  input: string;
48
30
  init: RequestInit;
@@ -797,8 +797,7 @@ function Checkbox({
797
797
  isChecked && "translate-x-6",
798
798
  isLoading && "opacity-0",
799
799
  !isDisabled && "group-hover:scale-95 group-active:scale-90",
800
- "will-change-transform",
801
- "transition-transform duration-200 ease-out"
800
+ "transition"
802
801
  )
803
802
  }
804
803
  ),
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ export { A as ADMIN_ROLES, e as Admin, f as AdminCard, g as AdminFull, h as Admi
3
3
  export { B as BlobFile } from './types-0oS1A2K5.js';
4
4
  import { Robots } from 'next/dist/lib/metadata/types/metadata-types';
5
5
  import { Metadata } from 'next';
6
+ export { F as FormData, a as FormFieldController, U as UIStates } from './types-BUmWwzpD.js';
7
+ import 'react';
6
8
 
7
9
  declare const isFolderLocked: (folder?: FolderFull | Folder) => boolean;
8
10
 
@@ -0,0 +1,22 @@
1
+ import { z as Translation } from './types-BGsFazJr.js';
2
+ import * as React from 'react';
3
+
4
+ interface UIStates {
5
+ isLoading?: boolean | undefined;
6
+ isDisabled?: boolean | undefined;
7
+ isError?: boolean | undefined;
8
+ }
9
+ type FormData = Record<string, unknown>;
10
+ interface FormContext<T extends FormData = FormData> {
11
+ formData?: T | undefined;
12
+ setFormData?: React.Dispatch<React.SetStateAction<T>> | undefined;
13
+ }
14
+ interface FieldContext {
15
+ fieldName?: string | undefined;
16
+ translations?: Translation[] | undefined;
17
+ errors?: string[] | undefined;
18
+ }
19
+ interface FormFieldController<T extends FormData = FormData> extends UIStates, FormContext<T>, FieldContext {
20
+ }
21
+
22
+ export type { FormData as F, UIStates as U, FormFieldController as a };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",