maru_design2 2.28.0 → 2.28.2
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/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +273 -909
- package/dist/components/atoms/button/Button.d.ts +33 -33
- package/dist/components/atoms/button/index.d.ts +1 -1
- package/dist/components/atoms/checkbox/Checkbox.d.ts +21 -21
- package/dist/components/atoms/checkbox/index.d.ts +1 -1
- package/dist/components/atoms/chip/Chip.d.ts +29 -29
- package/dist/components/atoms/chip/index.d.ts +1 -1
- package/dist/components/atoms/code/Code.d.ts +7 -7
- package/dist/components/atoms/code/index.d.ts +1 -1
- package/dist/components/atoms/icon/Icon.d.ts +16 -16
- package/dist/components/atoms/icon/iconmap.d.ts +422 -418
- package/dist/components/atoms/icon/index.d.ts +2 -2
- package/dist/components/atoms/input/Input.d.ts +43 -43
- package/dist/components/atoms/input/index.d.ts +1 -1
- package/dist/components/atoms/popover/Popover.d.ts +19 -19
- package/dist/components/atoms/popover/index.d.ts +1 -1
- package/dist/components/atoms/radio/Radio.d.ts +14 -14
- package/dist/components/atoms/radio/index.d.ts +1 -1
- package/dist/components/atoms/skeleton/Contents.d.ts +1 -1
- package/dist/components/atoms/skeleton/Skeleton.d.ts +6 -6
- package/dist/components/atoms/skeleton/index.d.ts +1 -1
- package/dist/components/atoms/slider/Slider.d.ts +31 -31
- package/dist/components/atoms/slider/index.d.ts +1 -1
- package/dist/components/atoms/textarea/Textarea.d.ts +38 -38
- package/dist/components/atoms/textarea/index.d.ts +1 -1
- package/dist/components/atoms/toggle/Toggle.d.ts +20 -20
- package/dist/components/atoms/toggle/index.d.ts +1 -1
- package/dist/components/atoms/tooltip/Tooltip.d.ts +29 -29
- package/dist/components/atoms/tooltip/index.d.ts +1 -1
- package/dist/components/molecules/calendar/Calendar.d.ts +27 -27
- package/dist/components/molecules/calendar/DatePickerHeader.d.ts +3 -3
- package/dist/components/molecules/calendar/DatePickerWrapper.d.ts +9 -9
- package/dist/components/molecules/calendar/index.d.ts +1 -1
- package/dist/components/molecules/dropdown/Dropdown.d.ts +90 -90
- package/dist/components/molecules/dropdown/index.d.ts +1 -1
- package/dist/components/molecules/dropdown/menu/MenuItem.d.ts +16 -16
- package/dist/components/molecules/dropdown/menu/index.d.ts +31 -31
- package/dist/components/molecules/dropdown/toggleButton/Arrow.d.ts +9 -9
- package/dist/components/molecules/dropdown/toggleButton/Clear.d.ts +6 -6
- package/dist/components/molecules/dropdown/toggleButton/index.d.ts +19 -19
- package/dist/components/molecules/modal/Modal.d.ts +48 -48
- package/dist/components/molecules/modal/index.d.ts +1 -1
- package/dist/components/molecules/multiSelectDropdown/MultiSelectDropdown.d.ts +76 -76
- package/dist/components/molecules/multiSelectDropdown/index.d.ts +1 -1
- package/dist/components/molecules/multiSelectDropdown/menu/MenuItem.d.ts +12 -12
- package/dist/components/molecules/multiSelectDropdown/menu/index.d.ts +21 -21
- package/dist/components/molecules/multiSelectDropdown/toggleButton/Arrow.d.ts +9 -9
- package/dist/components/molecules/multiSelectDropdown/toggleButton/Clear.d.ts +6 -6
- package/dist/components/molecules/multiSelectDropdown/toggleButton/index.d.ts +17 -17
- package/dist/components/molecules/pagination/Pagination.d.ts +22 -22
- package/dist/components/molecules/pagination/index.d.ts +1 -1
- package/dist/components/molecules/searchInput/SearchInput.d.ts +34 -34
- package/dist/components/molecules/searchInput/filter/FilterPopover.d.ts +16 -16
- package/dist/components/molecules/searchInput/filter/index.d.ts +17 -17
- package/dist/components/molecules/searchInput/index.d.ts +1 -1
- package/dist/components/molecules/table/Colgroup.d.ts +9 -9
- package/dist/components/molecules/table/Table.d.ts +3 -3
- package/dist/components/molecules/table/body/BinButtonTd.d.ts +7 -7
- package/dist/components/molecules/table/body/ChartButtonTd.d.ts +8 -8
- package/dist/components/molecules/table/body/CheckboxTd.d.ts +6 -6
- package/dist/components/molecules/table/body/EmptyTr.d.ts +8 -8
- package/dist/components/molecules/table/body/KebabMenuTd.d.ts +7 -7
- package/dist/components/molecules/table/body/RadioTd.d.ts +6 -6
- package/dist/components/molecules/table/body/Tr.d.ts +7 -7
- package/dist/components/molecules/table/body/index.d.ts +7 -7
- package/dist/components/molecules/table/header/FilterButtonsTh.d.ts +7 -7
- package/dist/components/molecules/table/header/FilterTh.d.ts +8 -8
- package/dist/components/molecules/table/header/SortableColumn.d.ts +15 -15
- package/dist/components/molecules/table/header/index.d.ts +17 -17
- package/dist/components/molecules/table/index.d.ts +1 -1
- package/dist/components/molecules/table/types.d.ts +125 -125
- package/dist/components/molecules/toast/Details.d.ts +6 -6
- package/dist/components/molecules/toast/Toast.d.ts +31 -31
- package/dist/components/molecules/toast/ToastContext.d.ts +15 -15
- package/dist/components/molecules/toast/ToastStyle.d.ts +18 -18
- package/dist/components/molecules/toast/index.d.ts +1 -1
- package/dist/components/molecules/toast/types.d.ts +4 -4
- package/dist/components/styleProvider/StyleProvider.d.ts +10 -10
- package/dist/components/styleProvider/index.d.ts +1 -1
- package/dist/enums/color.d.ts +14 -14
- package/dist/enums/direction.d.ts +2 -2
- package/dist/enums/gap.d.ts +4 -4
- package/dist/enums/size.d.ts +8 -8
- package/dist/enums/type.d.ts +4 -4
- package/dist/enums/variant.d.ts +8 -8
- package/dist/hooks/useButtonState.d.ts +16 -16
- package/dist/hooks/useColor.d.ts +4 -4
- package/dist/hooks/useCombineRef.d.ts +11 -11
- package/dist/hooks/useCreatePortal.d.ts +7 -7
- package/dist/hooks/useId.d.ts +7 -7
- package/dist/index.d.ts +22 -22
- package/dist/index.js +320 -250
- package/dist/utils/copy.d.ts +6 -6
- package/dist/utils/format.d.ts +2 -2
- package/dist/utils/highlight.d.ts +1 -1
- package/package.json +74 -74
- package/release-please-config.json +8 -0
- package/.idea/MaruDesign2.iml +0 -13
- package/.idea/codeStyles/Project.xml +0 -77
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -94
- package/.idea/jsLinters/eslint.xml +0 -6
- package/.idea/material_theme_project_new.xml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/watcherTasks.xml +0 -4
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { TColor } from '../../../../enums/color';
|
|
2
|
-
interface Props<T extends Record<string, any>> {
|
|
3
|
-
data: T[];
|
|
4
|
-
selectedIds: string[];
|
|
5
|
-
onSelect: (ids: string[]) => void;
|
|
6
|
-
idKey: string;
|
|
7
|
-
displayKey: string;
|
|
8
|
-
searchPlaceholder?: string;
|
|
9
|
-
allCheckLabel?: string;
|
|
10
|
-
color?: TColor;
|
|
11
|
-
noDataMessage?: string;
|
|
12
|
-
noResultMessage?: string;
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
isSearch: boolean;
|
|
16
|
-
parent: HTMLElement;
|
|
17
|
-
open: boolean;
|
|
18
|
-
onClose: () => void;
|
|
19
|
-
}
|
|
20
|
-
declare function DropdownMenu<T extends Record<string, any>>({ data, selectedIds, onSelect, idKey, displayKey, searchPlaceholder, allCheckLabel, color, noDataMessage, noResultMessage, width, height, isSearch, parent, open, onClose, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export default DropdownMenu;
|
|
1
|
+
import { TColor } from '../../../../enums/color';
|
|
2
|
+
interface Props<T extends Record<string, any>> {
|
|
3
|
+
data: T[];
|
|
4
|
+
selectedIds: string[];
|
|
5
|
+
onSelect: (ids: string[]) => void;
|
|
6
|
+
idKey: string;
|
|
7
|
+
displayKey: string;
|
|
8
|
+
searchPlaceholder?: string;
|
|
9
|
+
allCheckLabel?: string;
|
|
10
|
+
color?: TColor;
|
|
11
|
+
noDataMessage?: string;
|
|
12
|
+
noResultMessage?: string;
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
isSearch: boolean;
|
|
16
|
+
parent: HTMLElement;
|
|
17
|
+
open: boolean;
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare function DropdownMenu<T extends Record<string, any>>({ data, selectedIds, onSelect, idKey, displayKey, searchPlaceholder, allCheckLabel, color, noDataMessage, noResultMessage, width, height, isSearch, parent, open, onClose, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default DropdownMenu;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TColor } from '../../../../enums/color';
|
|
2
|
-
interface Props {
|
|
3
|
-
open: boolean;
|
|
4
|
-
focus: boolean;
|
|
5
|
-
color: TColor;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function Arrow({ open, focus, color, disabled }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default Arrow;
|
|
1
|
+
import { TColor } from '../../../../enums/color';
|
|
2
|
+
interface Props {
|
|
3
|
+
open: boolean;
|
|
4
|
+
focus: boolean;
|
|
5
|
+
color: TColor;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function Arrow({ open, focus, color, disabled }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Arrow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
focus: boolean;
|
|
3
|
-
onClear: () => void;
|
|
4
|
-
}
|
|
5
|
-
declare function Clear({ focus, onClear }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default Clear;
|
|
1
|
+
interface Props {
|
|
2
|
+
focus: boolean;
|
|
3
|
+
onClear: () => void;
|
|
4
|
+
}
|
|
5
|
+
declare function Clear({ focus, onClear }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Clear;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { TColor } from '../../../../enums/color';
|
|
2
|
-
interface Props {
|
|
3
|
-
content: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
color: TColor;
|
|
7
|
-
stopPropagation?: boolean;
|
|
8
|
-
width?: number;
|
|
9
|
-
open: boolean;
|
|
10
|
-
selected: boolean;
|
|
11
|
-
errored?: boolean;
|
|
12
|
-
hasClearBtn: boolean;
|
|
13
|
-
onClear: () => void;
|
|
14
|
-
onClick: () => void;
|
|
15
|
-
}
|
|
16
|
-
declare function DropdownToggleButton({ content, placeholder, disabled, color, stopPropagation, width, open, selected, errored, hasClearBtn, onClear, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default DropdownToggleButton;
|
|
1
|
+
import { TColor } from '../../../../enums/color';
|
|
2
|
+
interface Props {
|
|
3
|
+
content: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
color: TColor;
|
|
7
|
+
stopPropagation?: boolean;
|
|
8
|
+
width?: number;
|
|
9
|
+
open: boolean;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
errored?: boolean;
|
|
12
|
+
hasClearBtn: boolean;
|
|
13
|
+
onClear: () => void;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare function DropdownToggleButton({ content, placeholder, disabled, color, stopPropagation, width, open, selected, errored, hasClearBtn, onClear, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default DropdownToggleButton;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import './pagination.scss';
|
|
2
|
-
export interface PaginationProps {
|
|
3
|
-
/**
|
|
4
|
-
* 현재 페이지. (@v1 page.curPage)
|
|
5
|
-
*/
|
|
6
|
-
page: number;
|
|
7
|
-
/**
|
|
8
|
-
* 현재 페이지 설정 함수. (@v1 page.setPage)
|
|
9
|
-
*/
|
|
10
|
-
onPageChange: (page: number) => void;
|
|
11
|
-
/**
|
|
12
|
-
* 총 페이지
|
|
13
|
-
*/
|
|
14
|
-
totalPage: number;
|
|
15
|
-
className?: string;
|
|
16
|
-
/**
|
|
17
|
-
* prev, next 버튼 공간 차지 여부
|
|
18
|
-
*/
|
|
19
|
-
buttonVisibility?: 'visible' | 'hidden';
|
|
20
|
-
label: string;
|
|
21
|
-
}
|
|
22
|
-
export declare function Pagination({ page, onPageChange, totalPage, className, buttonVisibility, label, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import './pagination.scss';
|
|
2
|
+
export interface PaginationProps {
|
|
3
|
+
/**
|
|
4
|
+
* 현재 페이지. (@v1 page.curPage)
|
|
5
|
+
*/
|
|
6
|
+
page: number;
|
|
7
|
+
/**
|
|
8
|
+
* 현재 페이지 설정 함수. (@v1 page.setPage)
|
|
9
|
+
*/
|
|
10
|
+
onPageChange: (page: number) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 총 페이지
|
|
13
|
+
*/
|
|
14
|
+
totalPage: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* prev, next 버튼 공간 차지 여부
|
|
18
|
+
*/
|
|
19
|
+
buttonVisibility?: 'visible' | 'hidden';
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function Pagination({ page, onPageChange, totalPage, className, buttonVisibility, label, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Pagination';
|
|
1
|
+
export * from './Pagination';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './search-input.scss';
|
|
3
|
-
export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'className'> {
|
|
4
|
-
/**
|
|
5
|
-
* 초기화 함수 (@v1 hasClearBtn, onClear)
|
|
6
|
-
*/
|
|
7
|
-
onClear?: () => void;
|
|
8
|
-
/**
|
|
9
|
-
* 초기화 버튼 숨기기
|
|
10
|
-
*/
|
|
11
|
-
hiddenClearButton?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* input을 감싸고 있는 div의 ref, input은 일반 ref 사용
|
|
14
|
-
*/
|
|
15
|
-
wrapperRef?: React.RefObject<HTMLDivElement>;
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 검색 필터
|
|
19
|
-
*/
|
|
20
|
-
filter?: {
|
|
21
|
-
on: boolean;
|
|
22
|
-
formats: {
|
|
23
|
-
columnIdKey: string;
|
|
24
|
-
columnName?: string;
|
|
25
|
-
filter?: React.ReactNode;
|
|
26
|
-
}[];
|
|
27
|
-
hoverContent?: string;
|
|
28
|
-
onReset: () => void;
|
|
29
|
-
resetButtonContent?: string;
|
|
30
|
-
onSearch: () => void;
|
|
31
|
-
searchButtonContent?: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export declare function SearchInput({ hiddenClearButton, className, filter, ...props }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './search-input.scss';
|
|
3
|
+
export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'className'> {
|
|
4
|
+
/**
|
|
5
|
+
* 초기화 함수 (@v1 hasClearBtn, onClear)
|
|
6
|
+
*/
|
|
7
|
+
onClear?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* 초기화 버튼 숨기기
|
|
10
|
+
*/
|
|
11
|
+
hiddenClearButton?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* input을 감싸고 있는 div의 ref, input은 일반 ref 사용
|
|
14
|
+
*/
|
|
15
|
+
wrapperRef?: React.RefObject<HTMLDivElement>;
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 검색 필터
|
|
19
|
+
*/
|
|
20
|
+
filter?: {
|
|
21
|
+
on: boolean;
|
|
22
|
+
formats: {
|
|
23
|
+
columnIdKey: string;
|
|
24
|
+
columnName?: string;
|
|
25
|
+
filter?: React.ReactNode;
|
|
26
|
+
}[];
|
|
27
|
+
hoverContent?: string;
|
|
28
|
+
onReset: () => void;
|
|
29
|
+
resetButtonContent?: string;
|
|
30
|
+
onSearch: () => void;
|
|
31
|
+
searchButtonContent?: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare function SearchInput({ hiddenClearButton, className, filter, ...props }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
parent: HTMLElement;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
formats: {
|
|
6
|
-
columnIdKey: string;
|
|
7
|
-
columnName?: string;
|
|
8
|
-
filter?: React.ReactNode;
|
|
9
|
-
}[];
|
|
10
|
-
resetButtonContent?: string;
|
|
11
|
-
onReset: () => void;
|
|
12
|
-
searchButtonContent?: string;
|
|
13
|
-
onSearch: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare function FilterPopover({ parent, onClose, formats, resetButtonContent, onReset, searchButtonContent, onSearch, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default FilterPopover;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
parent: HTMLElement;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
formats: {
|
|
6
|
+
columnIdKey: string;
|
|
7
|
+
columnName?: string;
|
|
8
|
+
filter?: React.ReactNode;
|
|
9
|
+
}[];
|
|
10
|
+
resetButtonContent?: string;
|
|
11
|
+
onReset: () => void;
|
|
12
|
+
searchButtonContent?: string;
|
|
13
|
+
onSearch: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare function FilterPopover({ parent, onClose, formats, resetButtonContent, onReset, searchButtonContent, onSearch, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default FilterPopover;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
on: boolean;
|
|
4
|
-
formats: {
|
|
5
|
-
columnIdKey: string;
|
|
6
|
-
columnName?: string;
|
|
7
|
-
filter?: React.ReactNode;
|
|
8
|
-
}[];
|
|
9
|
-
hoverContent?: string;
|
|
10
|
-
resetButtonContent?: string;
|
|
11
|
-
onReset: () => void;
|
|
12
|
-
searchButtonContent?: string;
|
|
13
|
-
onSearch: () => void;
|
|
14
|
-
inputWrapperRef: React.RefObject<HTMLDivElement>;
|
|
15
|
-
}
|
|
16
|
-
declare function Filter({ on, formats, hoverContent, resetButtonContent, onReset, searchButtonContent, onSearch, inputWrapperRef, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default Filter;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
on: boolean;
|
|
4
|
+
formats: {
|
|
5
|
+
columnIdKey: string;
|
|
6
|
+
columnName?: string;
|
|
7
|
+
filter?: React.ReactNode;
|
|
8
|
+
}[];
|
|
9
|
+
hoverContent?: string;
|
|
10
|
+
resetButtonContent?: string;
|
|
11
|
+
onReset: () => void;
|
|
12
|
+
searchButtonContent?: string;
|
|
13
|
+
onSearch: () => void;
|
|
14
|
+
inputWrapperRef: React.RefObject<HTMLDivElement>;
|
|
15
|
+
}
|
|
16
|
+
declare function Filter({ on, formats, hoverContent, resetButtonContent, onReset, searchButtonContent, onSearch, inputWrapperRef, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Filter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './SearchInput';
|
|
1
|
+
export * from './SearchInput';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IColumnFormats } from './types';
|
|
2
|
-
interface Props {
|
|
3
|
-
hasCheckbox?: boolean;
|
|
4
|
-
hasRadio?: boolean;
|
|
5
|
-
formats: IColumnFormats[];
|
|
6
|
-
hasActionCol: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function Colgroup({ hasCheckbox, hasRadio, formats, hasActionCol }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default Colgroup;
|
|
1
|
+
import { IColumnFormats } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
hasCheckbox?: boolean;
|
|
4
|
+
hasRadio?: boolean;
|
|
5
|
+
formats: IColumnFormats[];
|
|
6
|
+
hasActionCol: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function Colgroup({ hasCheckbox, hasRadio, formats, hasActionCol }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Colgroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableProps } from './types';
|
|
2
|
-
import './table.scss';
|
|
3
|
-
export declare function Table({ rowIdKey, data, formats, maxHeight, sort, onSort, checkedIds, onCheck, radioCheckedId, onRadioCheck, filter, kebabMenu, binButton, chartButton, onRowClick, selectedRow, highlightRows, className, id, noData, loading, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { TableProps } from './types';
|
|
2
|
+
import './table.scss';
|
|
3
|
+
export declare function Table({ rowIdKey, data, formats, maxHeight, sort, onSort, checkedIds, onCheck, radioCheckedId, onRadioCheck, filter, kebabMenu, binButton, chartButton, onRowClick, selectedRow, highlightRows, className, id, noData, loading, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
rowId: string;
|
|
3
|
-
hovered: boolean;
|
|
4
|
-
onClick: (rowId: string) => void;
|
|
5
|
-
}
|
|
6
|
-
declare function BinButtonTd({ rowId, hovered, onClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default BinButtonTd;
|
|
1
|
+
interface Props {
|
|
2
|
+
rowId: string;
|
|
3
|
+
hovered: boolean;
|
|
4
|
+
onClick: (rowId: string) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function BinButtonTd({ rowId, hovered, onClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BinButtonTd;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
rowId: string;
|
|
3
|
-
hovered: boolean;
|
|
4
|
-
selected?: boolean;
|
|
5
|
-
onClick: (rowId: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare function ChartButtonTd({ rowId, hovered, selected, onClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ChartButtonTd;
|
|
1
|
+
interface Props {
|
|
2
|
+
rowId: string;
|
|
3
|
+
hovered: boolean;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
onClick: (rowId: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare function ChartButtonTd({ rowId, hovered, selected, onClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ChartButtonTd;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
checked: boolean;
|
|
3
|
-
onCheck: (checked: boolean) => void;
|
|
4
|
-
}
|
|
5
|
-
declare function CheckboxTd({ checked, onCheck }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default CheckboxTd;
|
|
1
|
+
interface Props {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
onCheck: (checked: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
declare function CheckboxTd({ checked, onCheck }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CheckboxTd;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
noDataMessage?: string;
|
|
4
|
-
loadingContent?: React.ReactNode;
|
|
5
|
-
emptyBodyHeight: number;
|
|
6
|
-
}
|
|
7
|
-
declare function EmptyTr({ noDataMessage, loadingContent, emptyBodyHeight }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default EmptyTr;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
noDataMessage?: string;
|
|
4
|
+
loadingContent?: React.ReactNode;
|
|
5
|
+
emptyBodyHeight: number;
|
|
6
|
+
}
|
|
7
|
+
declare function EmptyTr({ noDataMessage, loadingContent, emptyBodyHeight }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default EmptyTr;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
rowId: string;
|
|
4
|
-
kebabContent?: (rowId: string, onClose: () => void) => React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare function KebabMenuTd({ rowId, kebabContent }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default KebabMenuTd;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
rowId: string;
|
|
4
|
+
kebabContent?: (rowId: string, onClose: () => void) => React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare function KebabMenuTd({ rowId, kebabContent }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default KebabMenuTd;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
checked: boolean;
|
|
3
|
-
onCheck: (checked: boolean) => void;
|
|
4
|
-
}
|
|
5
|
-
declare function RadioTd({ checked, onCheck }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default RadioTd;
|
|
1
|
+
interface Props {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
onCheck: (checked: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
declare function RadioTd({ checked, onCheck }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default RadioTd;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TableProps } from '../types';
|
|
2
|
-
interface Props extends TableProps {
|
|
3
|
-
row: Record<string, any>;
|
|
4
|
-
hasActionCol: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function Tr({ row, rowIdKey, formats, checkedIds, onCheck, radioCheckedId, onRadioCheck, hasActionCol, kebabMenu, binButton, chartButton, onRowClick, selectedRow, highlightRows, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default Tr;
|
|
1
|
+
import { TableProps } from '../types';
|
|
2
|
+
interface Props extends TableProps {
|
|
3
|
+
row: Record<string, any>;
|
|
4
|
+
hasActionCol: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function Tr({ row, rowIdKey, formats, checkedIds, onCheck, radioCheckedId, onRadioCheck, hasActionCol, kebabMenu, binButton, chartButton, onRowClick, selectedRow, highlightRows, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Tr;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TableProps } from '../types';
|
|
2
|
-
interface Props extends TableProps {
|
|
3
|
-
hasActionCol: boolean;
|
|
4
|
-
emptyBodyHeight: number;
|
|
5
|
-
}
|
|
6
|
-
declare function TBody({ rowIdKey, formats, data, checkedIds, onCheck, radioCheckedId, onRadioCheck, hasActionCol, kebabMenu, binButton, chartButton, onRowClick, selectedRow, highlightRows, noData, loading, emptyBodyHeight, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default TBody;
|
|
1
|
+
import { TableProps } from '../types';
|
|
2
|
+
interface Props extends TableProps {
|
|
3
|
+
hasActionCol: boolean;
|
|
4
|
+
emptyBodyHeight: number;
|
|
5
|
+
}
|
|
6
|
+
declare function TBody({ rowIdKey, formats, data, checkedIds, onCheck, radioCheckedId, onRadioCheck, hasActionCol, kebabMenu, binButton, chartButton, onRowClick, selectedRow, highlightRows, noData, loading, emptyBodyHeight, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TBody;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
toggle: boolean;
|
|
3
|
-
onToggle: () => void;
|
|
4
|
-
onReset?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare function FilterButtonsTh({ toggle, onToggle, onReset }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default FilterButtonsTh;
|
|
1
|
+
interface Props {
|
|
2
|
+
toggle: boolean;
|
|
3
|
+
onToggle: () => void;
|
|
4
|
+
onReset?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare function FilterButtonsTh({ toggle, onToggle, onReset }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FilterButtonsTh;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactElement;
|
|
4
|
-
toggle: boolean;
|
|
5
|
-
filter?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare function FilterTh({ children, toggle, filter }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default FilterTh;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: React.ReactElement;
|
|
4
|
+
toggle: boolean;
|
|
5
|
+
filter?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function FilterTh({ children, toggle, filter }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default FilterTh;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IColumnFormats, ISort } from '../types';
|
|
2
|
-
interface Props {
|
|
3
|
-
format: IColumnFormats;
|
|
4
|
-
sort?: ISort;
|
|
5
|
-
onSortClick: (columnName: string) => () => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 정렬 아닌거 마우스오버하면 쌍방 화살표
|
|
9
|
-
* 내림차순 정렬이면 아래 화살표
|
|
10
|
-
* 오름차순 정렬이면 위 화살표
|
|
11
|
-
* 색깔은 언제나 b500 #5c5c5c
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
declare function SortableColumn({ format, sort, onSortClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default SortableColumn;
|
|
1
|
+
import { IColumnFormats, ISort } from '../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
format: IColumnFormats;
|
|
4
|
+
sort?: ISort;
|
|
5
|
+
onSortClick: (columnName: string) => () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 정렬 아닌거 마우스오버하면 쌍방 화살표
|
|
9
|
+
* 내림차순 정렬이면 아래 화살표
|
|
10
|
+
* 오름차순 정렬이면 위 화살표
|
|
11
|
+
* 색깔은 언제나 b500 #5c5c5c
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
declare function SortableColumn({ format, sort, onSortClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default SortableColumn;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IColumnFormats, IFilter, ISort } from '../types';
|
|
3
|
-
interface Props {
|
|
4
|
-
formats: IColumnFormats[];
|
|
5
|
-
sort?: ISort;
|
|
6
|
-
onSortClick: (columnName: string) => () => void;
|
|
7
|
-
hasCheckbox?: boolean;
|
|
8
|
-
allCheckbox: boolean;
|
|
9
|
-
onAllCheck: (checked: boolean) => void;
|
|
10
|
-
hasRadio?: boolean;
|
|
11
|
-
filter?: IFilter;
|
|
12
|
-
filterToggle: boolean;
|
|
13
|
-
setFilterToggle: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
-
hasActionCol: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare function THead({ formats, sort, onSortClick, hasCheckbox, allCheckbox, onAllCheck, hasRadio, filter, filterToggle, setFilterToggle, hasActionCol, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default THead;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IColumnFormats, IFilter, ISort } from '../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
formats: IColumnFormats[];
|
|
5
|
+
sort?: ISort;
|
|
6
|
+
onSortClick: (columnName: string) => () => void;
|
|
7
|
+
hasCheckbox?: boolean;
|
|
8
|
+
allCheckbox: boolean;
|
|
9
|
+
onAllCheck: (checked: boolean) => void;
|
|
10
|
+
hasRadio?: boolean;
|
|
11
|
+
filter?: IFilter;
|
|
12
|
+
filterToggle: boolean;
|
|
13
|
+
setFilterToggle: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
+
hasActionCol: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function THead({ formats, sort, onSortClick, hasCheckbox, allCheckbox, onAllCheck, hasRadio, filter, filterToggle, setFilterToggle, hasActionCol, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default THead;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Table';
|
|
1
|
+
export * from './Table';
|