@farmzone/fz-react-ui 1.0.2 → 1.0.4
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.cjs +615 -247
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -4
- package/dist/index.d.ts +16 -4
- package/dist/index.js +615 -247
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tw.css +88 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -26,7 +26,7 @@ interface BadgeProps {
|
|
|
26
26
|
}
|
|
27
27
|
declare function Badge(props: BadgeProps): react.JSX.Element;
|
|
28
28
|
|
|
29
|
-
type ButtonVariant = "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "ghost" | "link";
|
|
29
|
+
type ButtonVariant = "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "ghost" | "link" | "metal";
|
|
30
30
|
type ButtonSize = "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | "link";
|
|
31
31
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
32
32
|
ref?: Ref<HTMLButtonElement>;
|
|
@@ -50,6 +50,7 @@ interface TooltipProps {
|
|
|
50
50
|
arrowClassName?: string;
|
|
51
51
|
contentClassName?: string;
|
|
52
52
|
contentStyle?: CSSProperties;
|
|
53
|
+
containerStyle?: CSSProperties;
|
|
53
54
|
offsetX?: number;
|
|
54
55
|
offsetY?: number;
|
|
55
56
|
delayDuration?: number;
|
|
@@ -570,6 +571,7 @@ interface ModalIconHeaderProps {
|
|
|
570
571
|
declare function ModalIconHeader(props: ModalIconHeaderProps): react.JSX.Element;
|
|
571
572
|
|
|
572
573
|
interface ModalOverlayProps {
|
|
574
|
+
ref?: Ref<HTMLDivElement>;
|
|
573
575
|
isOpen: boolean;
|
|
574
576
|
onClose?: () => void;
|
|
575
577
|
className?: string;
|
|
@@ -889,6 +891,7 @@ interface FormFieldConfig<TFieldValues extends FieldValues = FieldValues> {
|
|
|
889
891
|
selectWithInputClassNames?: SelectWithInputFieldClassNames;
|
|
890
892
|
inputWithButton?: InputWithButtonFieldConfig;
|
|
891
893
|
onClickInputWithButton?: () => void;
|
|
894
|
+
autoComplete?: string;
|
|
892
895
|
}
|
|
893
896
|
interface CustomFieldRenderProps<TFieldValues extends FieldValues = FieldValues> {
|
|
894
897
|
field: ControllerRenderProps<TFieldValues, Path<TFieldValues>>;
|
|
@@ -908,6 +911,7 @@ interface SubmitFormProps<TSchema extends z.ZodTypeAny = z.ZodTypeAny> {
|
|
|
908
911
|
* blur 검증은 FormField가 `trigger`로 수동 실행.
|
|
909
912
|
*/
|
|
910
913
|
mode?: "onBlur" | "onChange" | "onSubmit" | "onTouched" | "all";
|
|
914
|
+
autoComplete?: string;
|
|
911
915
|
}
|
|
912
916
|
|
|
913
917
|
declare function FormTable<TFieldValues extends FieldValues = FieldValues>(props: FormTableProps<TFieldValues>): react.JSX.Element;
|
|
@@ -977,6 +981,7 @@ interface PageFilterProps<P> {
|
|
|
977
981
|
submitButtonText?: string;
|
|
978
982
|
resetButtonText?: string;
|
|
979
983
|
values: P;
|
|
984
|
+
primaryColor?: string;
|
|
980
985
|
}
|
|
981
986
|
declare function PageFilter<P extends Record<keyof P, string>>(props: PageFilterProps<P>): react.JSX.Element;
|
|
982
987
|
|
|
@@ -1024,12 +1029,15 @@ declare const useMultiTabStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Mult
|
|
|
1024
1029
|
};
|
|
1025
1030
|
}>;
|
|
1026
1031
|
|
|
1032
|
+
type MultiTabVariant = "light" | "dark" | "system-light" | "system-dark";
|
|
1027
1033
|
interface MultiTabBarProps {
|
|
1028
1034
|
tabs: Array<MultiTab>;
|
|
1029
1035
|
activeTabId: string | null;
|
|
1030
1036
|
onTabClick: (tabId: string) => void;
|
|
1031
1037
|
onTabClose: (tabId: string) => void;
|
|
1032
1038
|
onTabAdd?: () => void;
|
|
1039
|
+
variant?: MultiTabVariant;
|
|
1040
|
+
primaryColor?: string;
|
|
1033
1041
|
}
|
|
1034
1042
|
declare function MultiTabBar(props: MultiTabBarProps): react.JSX.Element | null;
|
|
1035
1043
|
|
|
@@ -1120,13 +1128,16 @@ interface MenuSection {
|
|
|
1120
1128
|
title?: string;
|
|
1121
1129
|
items: Array<MenuItem>;
|
|
1122
1130
|
}
|
|
1131
|
+
type SidebarVariant = "light" | "dark" | "system-dark" | "system-light";
|
|
1123
1132
|
interface SidebarProps {
|
|
1124
|
-
isOpen: boolean;
|
|
1125
|
-
onClose: () => void;
|
|
1126
1133
|
menuSections: Array<MenuSection>;
|
|
1127
1134
|
header?: ReactNode;
|
|
1135
|
+
footer?: ReactNode;
|
|
1128
1136
|
className?: string;
|
|
1129
1137
|
showCollapseButton?: boolean;
|
|
1138
|
+
onClose?: () => void;
|
|
1139
|
+
variant?: SidebarVariant;
|
|
1140
|
+
primaryColor?: string;
|
|
1130
1141
|
}
|
|
1131
1142
|
declare function Sidebar(props: SidebarProps): react.JSX.Element;
|
|
1132
1143
|
|
|
@@ -1325,7 +1336,7 @@ declare function ArrowIcon(props: ArrowIconProps): react.JSX.Element;
|
|
|
1325
1336
|
|
|
1326
1337
|
declare function cn(...inputs: Array<ClassValue>): string;
|
|
1327
1338
|
declare const buttonVariants: (props?: ({
|
|
1328
|
-
variant?: "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "ghost" | "link" | null | undefined;
|
|
1339
|
+
variant?: "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "metal" | "ghost" | "link" | null | undefined;
|
|
1329
1340
|
size?: "link" | "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1330
1341
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1331
1342
|
declare const textVariants: (props?: ({
|
|
@@ -1355,6 +1366,7 @@ declare const Z_INDEX: {
|
|
|
1355
1366
|
readonly MODAL_OVERLAY: 54;
|
|
1356
1367
|
readonly MODAL: 55;
|
|
1357
1368
|
readonly CALENDAR_PORTAL: 60;
|
|
1369
|
+
readonly TOOLTIP: 70;
|
|
1358
1370
|
readonly SELECT_CONTENT: 100;
|
|
1359
1371
|
readonly TOP: 9999;
|
|
1360
1372
|
readonly MODAL_Z_STEP: 10;
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface BadgeProps {
|
|
|
26
26
|
}
|
|
27
27
|
declare function Badge(props: BadgeProps): react.JSX.Element;
|
|
28
28
|
|
|
29
|
-
type ButtonVariant = "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "ghost" | "link";
|
|
29
|
+
type ButtonVariant = "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "ghost" | "link" | "metal";
|
|
30
30
|
type ButtonSize = "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | "link";
|
|
31
31
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
32
32
|
ref?: Ref<HTMLButtonElement>;
|
|
@@ -50,6 +50,7 @@ interface TooltipProps {
|
|
|
50
50
|
arrowClassName?: string;
|
|
51
51
|
contentClassName?: string;
|
|
52
52
|
contentStyle?: CSSProperties;
|
|
53
|
+
containerStyle?: CSSProperties;
|
|
53
54
|
offsetX?: number;
|
|
54
55
|
offsetY?: number;
|
|
55
56
|
delayDuration?: number;
|
|
@@ -570,6 +571,7 @@ interface ModalIconHeaderProps {
|
|
|
570
571
|
declare function ModalIconHeader(props: ModalIconHeaderProps): react.JSX.Element;
|
|
571
572
|
|
|
572
573
|
interface ModalOverlayProps {
|
|
574
|
+
ref?: Ref<HTMLDivElement>;
|
|
573
575
|
isOpen: boolean;
|
|
574
576
|
onClose?: () => void;
|
|
575
577
|
className?: string;
|
|
@@ -889,6 +891,7 @@ interface FormFieldConfig<TFieldValues extends FieldValues = FieldValues> {
|
|
|
889
891
|
selectWithInputClassNames?: SelectWithInputFieldClassNames;
|
|
890
892
|
inputWithButton?: InputWithButtonFieldConfig;
|
|
891
893
|
onClickInputWithButton?: () => void;
|
|
894
|
+
autoComplete?: string;
|
|
892
895
|
}
|
|
893
896
|
interface CustomFieldRenderProps<TFieldValues extends FieldValues = FieldValues> {
|
|
894
897
|
field: ControllerRenderProps<TFieldValues, Path<TFieldValues>>;
|
|
@@ -908,6 +911,7 @@ interface SubmitFormProps<TSchema extends z.ZodTypeAny = z.ZodTypeAny> {
|
|
|
908
911
|
* blur 검증은 FormField가 `trigger`로 수동 실행.
|
|
909
912
|
*/
|
|
910
913
|
mode?: "onBlur" | "onChange" | "onSubmit" | "onTouched" | "all";
|
|
914
|
+
autoComplete?: string;
|
|
911
915
|
}
|
|
912
916
|
|
|
913
917
|
declare function FormTable<TFieldValues extends FieldValues = FieldValues>(props: FormTableProps<TFieldValues>): react.JSX.Element;
|
|
@@ -977,6 +981,7 @@ interface PageFilterProps<P> {
|
|
|
977
981
|
submitButtonText?: string;
|
|
978
982
|
resetButtonText?: string;
|
|
979
983
|
values: P;
|
|
984
|
+
primaryColor?: string;
|
|
980
985
|
}
|
|
981
986
|
declare function PageFilter<P extends Record<keyof P, string>>(props: PageFilterProps<P>): react.JSX.Element;
|
|
982
987
|
|
|
@@ -1024,12 +1029,15 @@ declare const useMultiTabStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Mult
|
|
|
1024
1029
|
};
|
|
1025
1030
|
}>;
|
|
1026
1031
|
|
|
1032
|
+
type MultiTabVariant = "light" | "dark" | "system-light" | "system-dark";
|
|
1027
1033
|
interface MultiTabBarProps {
|
|
1028
1034
|
tabs: Array<MultiTab>;
|
|
1029
1035
|
activeTabId: string | null;
|
|
1030
1036
|
onTabClick: (tabId: string) => void;
|
|
1031
1037
|
onTabClose: (tabId: string) => void;
|
|
1032
1038
|
onTabAdd?: () => void;
|
|
1039
|
+
variant?: MultiTabVariant;
|
|
1040
|
+
primaryColor?: string;
|
|
1033
1041
|
}
|
|
1034
1042
|
declare function MultiTabBar(props: MultiTabBarProps): react.JSX.Element | null;
|
|
1035
1043
|
|
|
@@ -1120,13 +1128,16 @@ interface MenuSection {
|
|
|
1120
1128
|
title?: string;
|
|
1121
1129
|
items: Array<MenuItem>;
|
|
1122
1130
|
}
|
|
1131
|
+
type SidebarVariant = "light" | "dark" | "system-dark" | "system-light";
|
|
1123
1132
|
interface SidebarProps {
|
|
1124
|
-
isOpen: boolean;
|
|
1125
|
-
onClose: () => void;
|
|
1126
1133
|
menuSections: Array<MenuSection>;
|
|
1127
1134
|
header?: ReactNode;
|
|
1135
|
+
footer?: ReactNode;
|
|
1128
1136
|
className?: string;
|
|
1129
1137
|
showCollapseButton?: boolean;
|
|
1138
|
+
onClose?: () => void;
|
|
1139
|
+
variant?: SidebarVariant;
|
|
1140
|
+
primaryColor?: string;
|
|
1130
1141
|
}
|
|
1131
1142
|
declare function Sidebar(props: SidebarProps): react.JSX.Element;
|
|
1132
1143
|
|
|
@@ -1325,7 +1336,7 @@ declare function ArrowIcon(props: ArrowIconProps): react.JSX.Element;
|
|
|
1325
1336
|
|
|
1326
1337
|
declare function cn(...inputs: Array<ClassValue>): string;
|
|
1327
1338
|
declare const buttonVariants: (props?: ({
|
|
1328
|
-
variant?: "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "ghost" | "link" | null | undefined;
|
|
1339
|
+
variant?: "outline" | "save" | "delete" | "reset" | "search" | "file" | "carousel" | "accent" | "metal" | "ghost" | "link" | null | undefined;
|
|
1329
1340
|
size?: "link" | "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1330
1341
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1331
1342
|
declare const textVariants: (props?: ({
|
|
@@ -1355,6 +1366,7 @@ declare const Z_INDEX: {
|
|
|
1355
1366
|
readonly MODAL_OVERLAY: 54;
|
|
1356
1367
|
readonly MODAL: 55;
|
|
1357
1368
|
readonly CALENDAR_PORTAL: 60;
|
|
1369
|
+
readonly TOOLTIP: 70;
|
|
1358
1370
|
readonly SELECT_CONTENT: 100;
|
|
1359
1371
|
readonly TOP: 9999;
|
|
1360
1372
|
readonly MODAL_Z_STEP: 10;
|