@customafk/lunas-ui 0.0.0-p → 0.0.0-q
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/Atoms/index.d.ts
CHANGED
|
@@ -6,9 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
6
6
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
7
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
8
|
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
9
|
-
import * as
|
|
10
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
11
|
-
export { FormProvider as Form } from 'react-hook-form';
|
|
9
|
+
import * as RHF from 'react-hook-form';
|
|
12
10
|
|
|
13
11
|
declare const buttonVariants: (props?: ({
|
|
14
12
|
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "destructive-outline" | "destructive-ghost" | "accept" | "accept-outline" | "normal" | null | undefined;
|
|
@@ -72,13 +70,14 @@ declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
|
72
70
|
|
|
73
71
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_dist_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
74
72
|
|
|
75
|
-
declare const
|
|
73
|
+
declare const Form: <TFieldValues extends RHF.FieldValues, TContext = any, TTransformedValues extends RHF.FieldValues | undefined = undefined>(props: RHF.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
74
|
+
declare const FormField: <TFieldValues extends RHF.FieldValues = RHF.FieldValues, TName extends RHF.FieldPath<TFieldValues> = RHF.FieldPath<TFieldValues>>({ ...props }: RHF.ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
76
75
|
declare const useFormField: () => {
|
|
77
76
|
invalid: boolean;
|
|
78
77
|
isDirty: boolean;
|
|
79
78
|
isTouched: boolean;
|
|
80
79
|
isValidating: boolean;
|
|
81
|
-
error?:
|
|
80
|
+
error?: RHF.FieldError;
|
|
82
81
|
id: string;
|
|
83
82
|
name: string;
|
|
84
83
|
formItemId: string;
|
|
@@ -91,4 +90,4 @@ declare const FormControl: React.ForwardRefExoticComponent<Omit<_radix_ui_react_
|
|
|
91
90
|
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
92
91
|
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
93
92
|
|
|
94
|
-
export { Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Label, Toaster, UserAvatar, useFormField };
|
|
93
|
+
export { Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Label, Toaster, UserAvatar, useFormField };
|
package/dist/Atoms/index.js
CHANGED
|
@@ -2274,22 +2274,19 @@ Label2.displayName = LabelPrimitive.Root.displayName;
|
|
|
2274
2274
|
// packages/Atoms/Form/index.tsx
|
|
2275
2275
|
import * as React14 from "react";
|
|
2276
2276
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
2277
|
-
import
|
|
2278
|
-
Controller,
|
|
2279
|
-
FormProvider as Form,
|
|
2280
|
-
useFormContext
|
|
2281
|
-
} from "react-hook-form";
|
|
2277
|
+
import * as RHF from "react-hook-form";
|
|
2282
2278
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2279
|
+
var Form = RHF.FormProvider;
|
|
2283
2280
|
var FormFieldContext = React14.createContext({});
|
|
2284
2281
|
var FormField = ({
|
|
2285
2282
|
...props
|
|
2286
2283
|
}) => {
|
|
2287
|
-
return /* @__PURE__ */ jsx41(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx41(Controller, { ...props }) });
|
|
2284
|
+
return /* @__PURE__ */ jsx41(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx41(RHF.Controller, { ...props }) });
|
|
2288
2285
|
};
|
|
2289
2286
|
var useFormField = () => {
|
|
2290
2287
|
const fieldContext = React14.useContext(FormFieldContext);
|
|
2291
2288
|
const itemContext = React14.useContext(FormItemContext);
|
|
2292
|
-
const { getFieldState, formState } = useFormContext();
|
|
2289
|
+
const { getFieldState, formState } = RHF.useFormContext();
|
|
2293
2290
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2294
2291
|
if (!fieldContext) {
|
|
2295
2292
|
throw new Error("useFormField should be used within <FormField>");
|
package/dist/Molecules/index.js
CHANGED
|
@@ -2161,22 +2161,19 @@ Label2.displayName = LabelPrimitive.Root.displayName;
|
|
|
2161
2161
|
// packages/Atoms/Form/index.tsx
|
|
2162
2162
|
import * as React14 from "react";
|
|
2163
2163
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
2164
|
-
import
|
|
2165
|
-
Controller,
|
|
2166
|
-
FormProvider as Form,
|
|
2167
|
-
useFormContext
|
|
2168
|
-
} from "react-hook-form";
|
|
2164
|
+
import * as RHF from "react-hook-form";
|
|
2169
2165
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2166
|
+
var Form = RHF.FormProvider;
|
|
2170
2167
|
var FormFieldContext = React14.createContext({});
|
|
2171
2168
|
var FormField = ({
|
|
2172
2169
|
...props
|
|
2173
2170
|
}) => {
|
|
2174
|
-
return /* @__PURE__ */ jsx41(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx41(Controller, { ...props }) });
|
|
2171
|
+
return /* @__PURE__ */ jsx41(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx41(RHF.Controller, { ...props }) });
|
|
2175
2172
|
};
|
|
2176
2173
|
var useFormField = () => {
|
|
2177
2174
|
const fieldContext = React14.useContext(FormFieldContext);
|
|
2178
2175
|
const itemContext = React14.useContext(FormItemContext);
|
|
2179
|
-
const { getFieldState, formState } = useFormContext();
|
|
2176
|
+
const { getFieldState, formState } = RHF.useFormContext();
|
|
2180
2177
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2181
2178
|
if (!fieldContext) {
|
|
2182
2179
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -3,8 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
4
|
import { T as TUser, a as TUserSettingSelect } from '../types-DdUenP1k.js';
|
|
5
5
|
|
|
6
|
-
declare const Footer: () => react_jsx_runtime.JSX.Element;
|
|
7
|
-
|
|
8
6
|
type THeaderNav = 'CATEGORY' | 'SERIES' | 'GUIDE' | 'NEWS' | null;
|
|
9
7
|
interface IHeaderProps extends HTMLAttributes<HTMLHeadElement> {
|
|
10
8
|
user?: TUser;
|
|
@@ -15,4 +13,6 @@ interface IHeaderProps extends HTMLAttributes<HTMLHeadElement> {
|
|
|
15
13
|
}
|
|
16
14
|
declare const Header: React.MemoExoticComponent<React.ForwardRefExoticComponent<IHeaderProps & React.RefAttributes<HTMLHeadElement>>>;
|
|
17
15
|
|
|
16
|
+
declare const Footer: () => react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
18
|
export { Footer, Header };
|
package/dist/Organisms/index.js
CHANGED
|
@@ -2229,22 +2229,19 @@ Label2.displayName = LabelPrimitive.Root.displayName;
|
|
|
2229
2229
|
// packages/Atoms/Form/index.tsx
|
|
2230
2230
|
import * as React14 from "react";
|
|
2231
2231
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
2232
|
-
import
|
|
2233
|
-
Controller,
|
|
2234
|
-
FormProvider as Form,
|
|
2235
|
-
useFormContext
|
|
2236
|
-
} from "react-hook-form";
|
|
2232
|
+
import * as RHF from "react-hook-form";
|
|
2237
2233
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2234
|
+
var Form = RHF.FormProvider;
|
|
2238
2235
|
var FormFieldContext = React14.createContext({});
|
|
2239
2236
|
var FormField = ({
|
|
2240
2237
|
...props
|
|
2241
2238
|
}) => {
|
|
2242
|
-
return /* @__PURE__ */ jsx42(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx42(Controller, { ...props }) });
|
|
2239
|
+
return /* @__PURE__ */ jsx42(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx42(RHF.Controller, { ...props }) });
|
|
2243
2240
|
};
|
|
2244
2241
|
var useFormField = () => {
|
|
2245
2242
|
const fieldContext = React14.useContext(FormFieldContext);
|
|
2246
2243
|
const itemContext = React14.useContext(FormItemContext);
|
|
2247
|
-
const { getFieldState, formState } = useFormContext();
|
|
2244
|
+
const { getFieldState, formState } = RHF.useFormContext();
|
|
2248
2245
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2249
2246
|
if (!fieldContext) {
|
|
2250
2247
|
throw new Error("useFormField should be used within <FormField>");
|