@farmzone/fz-react-ui 1.1.2 → 1.1.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 +491 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +491 -174
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -970,6 +970,8 @@ interface BaseOption<P> {
|
|
|
970
970
|
type InputOption<P> = BaseOption<P> & {
|
|
971
971
|
type: "input";
|
|
972
972
|
placeholder?: string;
|
|
973
|
+
/** 입력창 왼쪽에 돋보기 아이콘을 보여줄지 여부. 기본값 true. */
|
|
974
|
+
leftIcon?: boolean;
|
|
973
975
|
};
|
|
974
976
|
type SelectOption<P> = BaseOption<P> & {
|
|
975
977
|
type: "select";
|
|
@@ -1012,6 +1014,8 @@ interface PageFilterProps<P> {
|
|
|
1012
1014
|
colGap?: number;
|
|
1013
1015
|
submitButtonText?: string;
|
|
1014
1016
|
resetButtonText?: string;
|
|
1017
|
+
showSubmitButton?: boolean;
|
|
1018
|
+
showResetButton?: boolean;
|
|
1015
1019
|
values: P;
|
|
1016
1020
|
primaryColor?: string;
|
|
1017
1021
|
}
|
|
@@ -1062,6 +1066,12 @@ declare const useMultiTabStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Mult
|
|
|
1062
1066
|
}>;
|
|
1063
1067
|
|
|
1064
1068
|
type MultiTabVariant = "light" | "dark" | "system-light" | "system-dark";
|
|
1069
|
+
interface MultiTabGroupInfo {
|
|
1070
|
+
/** 그룹을 식별하는 고유 키. 같은 key를 가진 "연속된" 탭들이 하나의 그룹으로 묶입니다. */
|
|
1071
|
+
key: string;
|
|
1072
|
+
/** 그룹 칩에 표시할 라벨 (예: 프로젝트명). */
|
|
1073
|
+
label: string;
|
|
1074
|
+
}
|
|
1065
1075
|
interface MultiTabBarProps {
|
|
1066
1076
|
tabs: Array<MultiTab>;
|
|
1067
1077
|
activeTabId: string | null;
|
|
@@ -1071,6 +1081,25 @@ interface MultiTabBarProps {
|
|
|
1071
1081
|
onTabsReorder?: (tabs: Array<MultiTab>) => void;
|
|
1072
1082
|
variant?: MultiTabVariant;
|
|
1073
1083
|
primaryColor?: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* 탭을 그룹으로 묶고 싶을 때만 전달하세요. 각 탭에 대해 그룹의 {key, label}을 반환하거나,
|
|
1086
|
+
* 그룹에 속하지 않는 탭이면 null/undefined를 반환하면 됩니다.
|
|
1087
|
+
*
|
|
1088
|
+
* 전달하지 않으면(undefined) 기존과 완전히 동일한 평면(flat) 탭 목록으로 렌더링됩니다.
|
|
1089
|
+
*
|
|
1090
|
+
* 전달하면: 같은 key를 가진 탭들이 배열 안에서 서로 떨어져 있어도(다른 그룹 탭 사이에 끼어
|
|
1091
|
+
* 있어도) 항상 그 그룹이 처음 등장한 위치의 칩 하나로 합쳐져서 색상 칩(그룹 헤더) + 그 아래
|
|
1092
|
+
* 탭들로 렌더링됩니다 — 지금 fizza 프로젝트가 쓰던 커스텀 그룹 탭바와 동일한 형태이고, 이미
|
|
1093
|
+
* 열려 있는 그룹에 새 탭이 추가될 때 중복 칩이 생기지 않습니다.
|
|
1094
|
+
* 그룹 색상은 고정된 팔레트(파랑/주황/빨강/초록 + 보조 6색)에서 등장 순서대로 할당되고,
|
|
1095
|
+
* 배경은 12% 투명도 틴트, 테두리는 40% 투명도로 렌더링됩니다 — fizza 프로젝트가 쓰던
|
|
1096
|
+
* GroupedTabBar와 동일한 색상 스펙입니다.
|
|
1097
|
+
*
|
|
1098
|
+
* onTabsReorder를 같이 전달하면 그룹 모드에서도 드래그 앤 드롭 재정렬이 됩니다. 탭이 어느
|
|
1099
|
+
* 그룹에 속하는지는 getTabGroup이 반환하는 값으로만 정해지고 배열 위치와는 무관하므로,
|
|
1100
|
+
* 자유롭게 순서를 바꿔도 그룹 소속은 항상 그대로 유지됩니다.
|
|
1101
|
+
*/
|
|
1102
|
+
getTabGroup?: (tab: MultiTab) => MultiTabGroupInfo | null | undefined;
|
|
1074
1103
|
}
|
|
1075
1104
|
declare function MultiTabBar(props: MultiTabBarProps): react.JSX.Element | null;
|
|
1076
1105
|
|
|
@@ -1572,4 +1601,4 @@ declare const Z_INDEX: {
|
|
|
1572
1601
|
};
|
|
1573
1602
|
type ZIndexKey = keyof typeof Z_INDEX;
|
|
1574
1603
|
|
|
1575
|
-
export { ArrowIcon, Badge, type BadgeProps, type BaseParams, BaseUploader, type BaseUploaderProps, BreadCrumb, type BreadCrumbItem, type BreadCrumbMenuItem, type BreadCrumbProps, type BreadCrumbRoot, Button, type ButtonProps, type ButtonSize, type ButtonVariant, type CalendarYearRange, Carousel, type CarouselProps, type CarouselRef, Checkbox, type CheckboxProps, type Column, type ConfirmOptions, DatePicker, DebouncedButton, type DebouncedButtonProps, DetailContent, type DetailContentProps, type DetailField, type DetailFieldOrSection, DetailModalFrame, type DetailMode, DetailPageFrame, Empty, ExcelUploader, FilePreviewViewer, FileUploader, type FilterRow, type FormFieldConfig, Input, type InputProps, Loading, LoadingOverlay, type LoadingOverlayProps, type LoadingProps, type MentionItem, type MenuChild, type MenuGrandchild, type MenuItem, type MenuSection, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalIconHeader, type ModalIconHeaderProps, ModalOverlay, type ModalProps, type ModalType, MultiTabBar as MultiTab, type MultiTab as MultiTabItem, PageFilter, type PageParams, Pagination, type PaginationProps, Popover, type PopoverAlign, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverFooter, PopoverHeader, type PopoverPosition, PopoverTitle, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioOptionType, type RadioProps, RichEditor, RichEditorContent, type RichEditorContentProps, type RichEditorHeadingLevel, type RichEditorProps, type RichEditorThemeOverride, RichEditorToolbar, type RichEditorToolbarConfig, type RichEditorToolbarProps, ScrollArea, ScrollBar, SearchAddress, type SearchAddressProps, SearchBar, type SearchBarProps, Select, Select$1 as SelectBase, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOptionType, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, type SidebarHeaderRenderProps, type SidebarProps, SimplePopover, type SimplePopoverProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SortOption, type SortOrder, type SortParams, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, SubmitForm, Switch, type SwitchProps, Tab, type TabItem, type TabProps, Table, Textarea, type TextareaProps, type ToastPosition, type ToastProps, ToastProvider, type ToastType, ToggleSwitch, Tooltip, type TooltipProps, type UseParams, type UseRichEditorOptions, type UseRichEditorReturn, type YmdDateString, type ZIndexKey, Z_INDEX, buildBreadCrumbItems, buttonVariants, cn, confirmModal, findParentMenuItem, findParentMenuName, formatDate, getFileLabel, getPreviewFileType, isCalendarDayAfterMax, isDateInRange, switchTrackSizes, textVariants, toast, useBlockModalConfirm, useBreadCrumbItems, useCustomBlocker, useDetailController, useFilePreviewViewer, useModal, useMultiTabStore, useParams, useRichEditor, useScrollToTop, useStableImageSrc, useToast, validateAndFormatInput };
|
|
1604
|
+
export { ArrowIcon, Badge, type BadgeProps, type BaseParams, BaseUploader, type BaseUploaderProps, BreadCrumb, type BreadCrumbItem, type BreadCrumbMenuItem, type BreadCrumbProps, type BreadCrumbRoot, Button, type ButtonProps, type ButtonSize, type ButtonVariant, type CalendarYearRange, Carousel, type CarouselProps, type CarouselRef, Checkbox, type CheckboxProps, type Column, type ConfirmOptions, DatePicker, DebouncedButton, type DebouncedButtonProps, DetailContent, type DetailContentProps, type DetailField, type DetailFieldOrSection, DetailModalFrame, type DetailMode, DetailPageFrame, Empty, ExcelUploader, FilePreviewViewer, FileUploader, type FilterRow, type FormFieldConfig, Input, type InputProps, Loading, LoadingOverlay, type LoadingOverlayProps, type LoadingProps, type MentionItem, type MenuChild, type MenuGrandchild, type MenuItem, type MenuSection, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalIconHeader, type ModalIconHeaderProps, ModalOverlay, type ModalProps, type ModalType, MultiTabBar as MultiTab, type MultiTabGroupInfo, type MultiTab as MultiTabItem, PageFilter, type PageParams, Pagination, type PaginationProps, Popover, type PopoverAlign, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverFooter, PopoverHeader, type PopoverPosition, PopoverTitle, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioOptionType, type RadioProps, RichEditor, RichEditorContent, type RichEditorContentProps, type RichEditorHeadingLevel, type RichEditorProps, type RichEditorThemeOverride, RichEditorToolbar, type RichEditorToolbarConfig, type RichEditorToolbarProps, ScrollArea, ScrollBar, SearchAddress, type SearchAddressProps, SearchBar, type SearchBarProps, Select, Select$1 as SelectBase, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOptionType, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, type SidebarHeaderRenderProps, type SidebarProps, SimplePopover, type SimplePopoverProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SortOption, type SortOrder, type SortParams, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, SubmitForm, Switch, type SwitchProps, Tab, type TabItem, type TabProps, Table, Textarea, type TextareaProps, type ToastPosition, type ToastProps, ToastProvider, type ToastType, ToggleSwitch, Tooltip, type TooltipProps, type UseParams, type UseRichEditorOptions, type UseRichEditorReturn, type YmdDateString, type ZIndexKey, Z_INDEX, buildBreadCrumbItems, buttonVariants, cn, confirmModal, findParentMenuItem, findParentMenuName, formatDate, getFileLabel, getPreviewFileType, isCalendarDayAfterMax, isDateInRange, switchTrackSizes, textVariants, toast, useBlockModalConfirm, useBreadCrumbItems, useCustomBlocker, useDetailController, useFilePreviewViewer, useModal, useMultiTabStore, useParams, useRichEditor, useScrollToTop, useStableImageSrc, useToast, validateAndFormatInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -970,6 +970,8 @@ interface BaseOption<P> {
|
|
|
970
970
|
type InputOption<P> = BaseOption<P> & {
|
|
971
971
|
type: "input";
|
|
972
972
|
placeholder?: string;
|
|
973
|
+
/** 입력창 왼쪽에 돋보기 아이콘을 보여줄지 여부. 기본값 true. */
|
|
974
|
+
leftIcon?: boolean;
|
|
973
975
|
};
|
|
974
976
|
type SelectOption<P> = BaseOption<P> & {
|
|
975
977
|
type: "select";
|
|
@@ -1012,6 +1014,8 @@ interface PageFilterProps<P> {
|
|
|
1012
1014
|
colGap?: number;
|
|
1013
1015
|
submitButtonText?: string;
|
|
1014
1016
|
resetButtonText?: string;
|
|
1017
|
+
showSubmitButton?: boolean;
|
|
1018
|
+
showResetButton?: boolean;
|
|
1015
1019
|
values: P;
|
|
1016
1020
|
primaryColor?: string;
|
|
1017
1021
|
}
|
|
@@ -1062,6 +1066,12 @@ declare const useMultiTabStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Mult
|
|
|
1062
1066
|
}>;
|
|
1063
1067
|
|
|
1064
1068
|
type MultiTabVariant = "light" | "dark" | "system-light" | "system-dark";
|
|
1069
|
+
interface MultiTabGroupInfo {
|
|
1070
|
+
/** 그룹을 식별하는 고유 키. 같은 key를 가진 "연속된" 탭들이 하나의 그룹으로 묶입니다. */
|
|
1071
|
+
key: string;
|
|
1072
|
+
/** 그룹 칩에 표시할 라벨 (예: 프로젝트명). */
|
|
1073
|
+
label: string;
|
|
1074
|
+
}
|
|
1065
1075
|
interface MultiTabBarProps {
|
|
1066
1076
|
tabs: Array<MultiTab>;
|
|
1067
1077
|
activeTabId: string | null;
|
|
@@ -1071,6 +1081,25 @@ interface MultiTabBarProps {
|
|
|
1071
1081
|
onTabsReorder?: (tabs: Array<MultiTab>) => void;
|
|
1072
1082
|
variant?: MultiTabVariant;
|
|
1073
1083
|
primaryColor?: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* 탭을 그룹으로 묶고 싶을 때만 전달하세요. 각 탭에 대해 그룹의 {key, label}을 반환하거나,
|
|
1086
|
+
* 그룹에 속하지 않는 탭이면 null/undefined를 반환하면 됩니다.
|
|
1087
|
+
*
|
|
1088
|
+
* 전달하지 않으면(undefined) 기존과 완전히 동일한 평면(flat) 탭 목록으로 렌더링됩니다.
|
|
1089
|
+
*
|
|
1090
|
+
* 전달하면: 같은 key를 가진 탭들이 배열 안에서 서로 떨어져 있어도(다른 그룹 탭 사이에 끼어
|
|
1091
|
+
* 있어도) 항상 그 그룹이 처음 등장한 위치의 칩 하나로 합쳐져서 색상 칩(그룹 헤더) + 그 아래
|
|
1092
|
+
* 탭들로 렌더링됩니다 — 지금 fizza 프로젝트가 쓰던 커스텀 그룹 탭바와 동일한 형태이고, 이미
|
|
1093
|
+
* 열려 있는 그룹에 새 탭이 추가될 때 중복 칩이 생기지 않습니다.
|
|
1094
|
+
* 그룹 색상은 고정된 팔레트(파랑/주황/빨강/초록 + 보조 6색)에서 등장 순서대로 할당되고,
|
|
1095
|
+
* 배경은 12% 투명도 틴트, 테두리는 40% 투명도로 렌더링됩니다 — fizza 프로젝트가 쓰던
|
|
1096
|
+
* GroupedTabBar와 동일한 색상 스펙입니다.
|
|
1097
|
+
*
|
|
1098
|
+
* onTabsReorder를 같이 전달하면 그룹 모드에서도 드래그 앤 드롭 재정렬이 됩니다. 탭이 어느
|
|
1099
|
+
* 그룹에 속하는지는 getTabGroup이 반환하는 값으로만 정해지고 배열 위치와는 무관하므로,
|
|
1100
|
+
* 자유롭게 순서를 바꿔도 그룹 소속은 항상 그대로 유지됩니다.
|
|
1101
|
+
*/
|
|
1102
|
+
getTabGroup?: (tab: MultiTab) => MultiTabGroupInfo | null | undefined;
|
|
1074
1103
|
}
|
|
1075
1104
|
declare function MultiTabBar(props: MultiTabBarProps): react.JSX.Element | null;
|
|
1076
1105
|
|
|
@@ -1572,4 +1601,4 @@ declare const Z_INDEX: {
|
|
|
1572
1601
|
};
|
|
1573
1602
|
type ZIndexKey = keyof typeof Z_INDEX;
|
|
1574
1603
|
|
|
1575
|
-
export { ArrowIcon, Badge, type BadgeProps, type BaseParams, BaseUploader, type BaseUploaderProps, BreadCrumb, type BreadCrumbItem, type BreadCrumbMenuItem, type BreadCrumbProps, type BreadCrumbRoot, Button, type ButtonProps, type ButtonSize, type ButtonVariant, type CalendarYearRange, Carousel, type CarouselProps, type CarouselRef, Checkbox, type CheckboxProps, type Column, type ConfirmOptions, DatePicker, DebouncedButton, type DebouncedButtonProps, DetailContent, type DetailContentProps, type DetailField, type DetailFieldOrSection, DetailModalFrame, type DetailMode, DetailPageFrame, Empty, ExcelUploader, FilePreviewViewer, FileUploader, type FilterRow, type FormFieldConfig, Input, type InputProps, Loading, LoadingOverlay, type LoadingOverlayProps, type LoadingProps, type MentionItem, type MenuChild, type MenuGrandchild, type MenuItem, type MenuSection, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalIconHeader, type ModalIconHeaderProps, ModalOverlay, type ModalProps, type ModalType, MultiTabBar as MultiTab, type MultiTab as MultiTabItem, PageFilter, type PageParams, Pagination, type PaginationProps, Popover, type PopoverAlign, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverFooter, PopoverHeader, type PopoverPosition, PopoverTitle, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioOptionType, type RadioProps, RichEditor, RichEditorContent, type RichEditorContentProps, type RichEditorHeadingLevel, type RichEditorProps, type RichEditorThemeOverride, RichEditorToolbar, type RichEditorToolbarConfig, type RichEditorToolbarProps, ScrollArea, ScrollBar, SearchAddress, type SearchAddressProps, SearchBar, type SearchBarProps, Select, Select$1 as SelectBase, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOptionType, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, type SidebarHeaderRenderProps, type SidebarProps, SimplePopover, type SimplePopoverProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SortOption, type SortOrder, type SortParams, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, SubmitForm, Switch, type SwitchProps, Tab, type TabItem, type TabProps, Table, Textarea, type TextareaProps, type ToastPosition, type ToastProps, ToastProvider, type ToastType, ToggleSwitch, Tooltip, type TooltipProps, type UseParams, type UseRichEditorOptions, type UseRichEditorReturn, type YmdDateString, type ZIndexKey, Z_INDEX, buildBreadCrumbItems, buttonVariants, cn, confirmModal, findParentMenuItem, findParentMenuName, formatDate, getFileLabel, getPreviewFileType, isCalendarDayAfterMax, isDateInRange, switchTrackSizes, textVariants, toast, useBlockModalConfirm, useBreadCrumbItems, useCustomBlocker, useDetailController, useFilePreviewViewer, useModal, useMultiTabStore, useParams, useRichEditor, useScrollToTop, useStableImageSrc, useToast, validateAndFormatInput };
|
|
1604
|
+
export { ArrowIcon, Badge, type BadgeProps, type BaseParams, BaseUploader, type BaseUploaderProps, BreadCrumb, type BreadCrumbItem, type BreadCrumbMenuItem, type BreadCrumbProps, type BreadCrumbRoot, Button, type ButtonProps, type ButtonSize, type ButtonVariant, type CalendarYearRange, Carousel, type CarouselProps, type CarouselRef, Checkbox, type CheckboxProps, type Column, type ConfirmOptions, DatePicker, DebouncedButton, type DebouncedButtonProps, DetailContent, type DetailContentProps, type DetailField, type DetailFieldOrSection, DetailModalFrame, type DetailMode, DetailPageFrame, Empty, ExcelUploader, FilePreviewViewer, FileUploader, type FilterRow, type FormFieldConfig, Input, type InputProps, Loading, LoadingOverlay, type LoadingOverlayProps, type LoadingProps, type MentionItem, type MenuChild, type MenuGrandchild, type MenuItem, type MenuSection, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalIconHeader, type ModalIconHeaderProps, ModalOverlay, type ModalProps, type ModalType, MultiTabBar as MultiTab, type MultiTabGroupInfo, type MultiTab as MultiTabItem, PageFilter, type PageParams, Pagination, type PaginationProps, Popover, type PopoverAlign, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverFooter, PopoverHeader, type PopoverPosition, PopoverTitle, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioOptionType, type RadioProps, RichEditor, RichEditorContent, type RichEditorContentProps, type RichEditorHeadingLevel, type RichEditorProps, type RichEditorThemeOverride, RichEditorToolbar, type RichEditorToolbarConfig, type RichEditorToolbarProps, ScrollArea, ScrollBar, SearchAddress, type SearchAddressProps, SearchBar, type SearchBarProps, Select, Select$1 as SelectBase, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOptionType, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, type SidebarHeaderRenderProps, type SidebarProps, SimplePopover, type SimplePopoverProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SortOption, type SortOrder, type SortParams, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, SubmitForm, Switch, type SwitchProps, Tab, type TabItem, type TabProps, Table, Textarea, type TextareaProps, type ToastPosition, type ToastProps, ToastProvider, type ToastType, ToggleSwitch, Tooltip, type TooltipProps, type UseParams, type UseRichEditorOptions, type UseRichEditorReturn, type YmdDateString, type ZIndexKey, Z_INDEX, buildBreadCrumbItems, buttonVariants, cn, confirmModal, findParentMenuItem, findParentMenuName, formatDate, getFileLabel, getPreviewFileType, isCalendarDayAfterMax, isDateInRange, switchTrackSizes, textVariants, toast, useBlockModalConfirm, useBreadCrumbItems, useCustomBlocker, useDetailController, useFilePreviewViewer, useModal, useMultiTabStore, useParams, useRichEditor, useScrollToTop, useStableImageSrc, useToast, validateAndFormatInput };
|