maru_design2 2.27.2 → 2.27.3
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/.idea/MaruDesign2.iml +13 -0
- package/.idea/codeStyles/Project.xml +77 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +94 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/material_theme_project_new.xml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +4 -0
- package/CHANGELOG.md +901 -894
- 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 +412 -412
- 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 +72 -72
- 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/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './components/styleProvider';
|
|
2
|
-
export * from './components/atoms/button';
|
|
3
|
-
export * from './components/atoms/checkbox';
|
|
4
|
-
export * from './components/atoms/chip';
|
|
5
|
-
export * from './components/atoms/code';
|
|
6
|
-
export * from './components/atoms/icon';
|
|
7
|
-
export * from './components/atoms/input';
|
|
8
|
-
export * from './components/atoms/popover';
|
|
9
|
-
export * from './components/atoms/radio';
|
|
10
|
-
export * from './components/atoms/skeleton';
|
|
11
|
-
export * from './components/atoms/slider';
|
|
12
|
-
export * from './components/atoms/textarea';
|
|
13
|
-
export * from './components/atoms/toggle';
|
|
14
|
-
export * from './components/atoms/tooltip';
|
|
15
|
-
export * from './components/molecules/calendar';
|
|
16
|
-
export * from './components/molecules/dropdown';
|
|
17
|
-
export * from './components/molecules/modal';
|
|
18
|
-
export * from './components/molecules/multiSelectDropdown';
|
|
19
|
-
export * from './components/molecules/pagination';
|
|
20
|
-
export * from './components/molecules/searchInput';
|
|
21
|
-
export * from './components/molecules/table';
|
|
22
|
-
export * from './components/molecules/toast';
|
|
1
|
+
export * from './components/styleProvider';
|
|
2
|
+
export * from './components/atoms/button';
|
|
3
|
+
export * from './components/atoms/checkbox';
|
|
4
|
+
export * from './components/atoms/chip';
|
|
5
|
+
export * from './components/atoms/code';
|
|
6
|
+
export * from './components/atoms/icon';
|
|
7
|
+
export * from './components/atoms/input';
|
|
8
|
+
export * from './components/atoms/popover';
|
|
9
|
+
export * from './components/atoms/radio';
|
|
10
|
+
export * from './components/atoms/skeleton';
|
|
11
|
+
export * from './components/atoms/slider';
|
|
12
|
+
export * from './components/atoms/textarea';
|
|
13
|
+
export * from './components/atoms/toggle';
|
|
14
|
+
export * from './components/atoms/tooltip';
|
|
15
|
+
export * from './components/molecules/calendar';
|
|
16
|
+
export * from './components/molecules/dropdown';
|
|
17
|
+
export * from './components/molecules/modal';
|
|
18
|
+
export * from './components/molecules/multiSelectDropdown';
|
|
19
|
+
export * from './components/molecules/pagination';
|
|
20
|
+
export * from './components/molecules/searchInput';
|
|
21
|
+
export * from './components/molecules/table';
|
|
22
|
+
export * from './components/molecules/toast';
|
package/dist/index.js
CHANGED
|
@@ -7355,9 +7355,9 @@ function Icon(_a) {
|
|
|
7355
7355
|
var _d = useState(false),
|
|
7356
7356
|
hover = _d[0],
|
|
7357
7357
|
setHover = _d[1];
|
|
7358
|
-
/**
|
|
7359
|
-
* 아이콘 최종 색깔
|
|
7360
|
-
* hoverColor를 설정해줬을때만 hoverColor가 적용되도록
|
|
7358
|
+
/**
|
|
7359
|
+
* 아이콘 최종 색깔
|
|
7360
|
+
* hoverColor를 설정해줬을때만 hoverColor가 적용되도록
|
|
7361
7361
|
*/
|
|
7362
7362
|
var iconColor = useMemo(function () {
|
|
7363
7363
|
if (hoverColor && hover) {
|
|
@@ -7365,28 +7365,28 @@ function Icon(_a) {
|
|
|
7365
7365
|
}
|
|
7366
7366
|
return keyColor;
|
|
7367
7367
|
}, [hoverColor, hover, keyColor, hoverKeyColor]);
|
|
7368
|
-
/**
|
|
7369
|
-
* circle.fill를 svg에 있는대로 두고 싶으면 true
|
|
7370
|
-
* circle.fill은 지정 색이 아니라 white로 고정시켜야함
|
|
7368
|
+
/**
|
|
7369
|
+
* circle.fill를 svg에 있는대로 두고 싶으면 true
|
|
7370
|
+
* circle.fill은 지정 색이 아니라 white로 고정시켜야함
|
|
7371
7371
|
*/
|
|
7372
7372
|
var staticCircleFill = useMemo(function () {
|
|
7373
7373
|
return name === ICONS.QuestionCircleBg_s1610;
|
|
7374
7374
|
}, [name]);
|
|
7375
|
-
/**
|
|
7376
|
-
* circle.fill을 transparent로 두고 싶으면 true
|
|
7375
|
+
/**
|
|
7376
|
+
* circle.fill을 transparent로 두고 싶으면 true
|
|
7377
7377
|
*/
|
|
7378
7378
|
var transparentCircleFill = useMemo(function () {
|
|
7379
7379
|
return name === ICONS.AlertCircle_s1610;
|
|
7380
7380
|
}, [name]);
|
|
7381
|
-
/**
|
|
7382
|
-
* 마지막 path.stroke를 svg에 있는대로 두고 싶으면 true
|
|
7383
|
-
* 마지막 path.stroke은 지정 색이 아니라 white로 고정시켜야함
|
|
7381
|
+
/**
|
|
7382
|
+
* 마지막 path.stroke를 svg에 있는대로 두고 싶으면 true
|
|
7383
|
+
* 마지막 path.stroke은 지정 색이 아니라 white로 고정시켜야함
|
|
7384
7384
|
*/
|
|
7385
7385
|
var staticPathStorke = useMemo(function () {
|
|
7386
7386
|
return name === ICONS.ChevronLeftCircleBg_s2415 || name === ICONS.ChevronRightCircleBg_s2415 || name === ICONS.CheckCircleBg_s1612 || name === ICONS.XCircleBg_s1612 || name === ICONS.XDiamondBg_s2415 || name === ICONS.XDiamondBg_s2015 || name === ICONS.UserCircleBg_s2415 || name === ICONS.BarChartSquare01Bg_s1810;
|
|
7387
7387
|
}, [name]);
|
|
7388
|
-
/**
|
|
7389
|
-
* path.fill를 svg에 있는대로 두고 싶으면 true
|
|
7388
|
+
/**
|
|
7389
|
+
* path.fill를 svg에 있는대로 두고 싶으면 true
|
|
7390
7390
|
*/
|
|
7391
7391
|
var staticPathFill = useMemo(function () {
|
|
7392
7392
|
return name === ICONS.StopCircleBg_s1513;
|
|
@@ -7556,13 +7556,13 @@ Button.defaultProps = {
|
|
|
7556
7556
|
};
|
|
7557
7557
|
Button.displayName = 'Button';
|
|
7558
7558
|
|
|
7559
|
-
/**
|
|
7560
|
-
* 파라미터로 들어온 ref들을 generic type을 가진 ref로 바꾸는 hook
|
|
7561
|
-
* ex. refs(주로 부모 refs)가 HTMLInputElement인 RefObject일 때,
|
|
7562
|
-
* combineRef를 선언한 컴포넌트의 ref<T>로 바꿀때 사용.
|
|
7563
|
-
* 참고 : RefObejct는 default로 null을 가지고, MutableRefObject는 그 외 다른 값을 가짐
|
|
7564
|
-
* @param refs RefObject or function
|
|
7565
|
-
* @returns RefObject
|
|
7559
|
+
/**
|
|
7560
|
+
* 파라미터로 들어온 ref들을 generic type을 가진 ref로 바꾸는 hook
|
|
7561
|
+
* ex. refs(주로 부모 refs)가 HTMLInputElement인 RefObject일 때,
|
|
7562
|
+
* combineRef를 선언한 컴포넌트의 ref<T>로 바꿀때 사용.
|
|
7563
|
+
* 참고 : RefObejct는 default로 null을 가지고, MutableRefObject는 그 외 다른 값을 가짐
|
|
7564
|
+
* @param refs RefObject or function
|
|
7565
|
+
* @returns RefObject
|
|
7566
7566
|
*/
|
|
7567
7567
|
var useCombineRef = function useCombineRef() {
|
|
7568
7568
|
var refs = [];
|
|
@@ -7586,10 +7586,10 @@ var useCombineRef = function useCombineRef() {
|
|
|
7586
7586
|
};
|
|
7587
7587
|
|
|
7588
7588
|
/* eslint-disable no-bitwise */
|
|
7589
|
-
/**
|
|
7590
|
-
* 최대 32자리의 uuid를 생성합니다.
|
|
7591
|
-
* @param length 1 <= lenght <= 32 or undefined
|
|
7592
|
-
* @returns uuid
|
|
7589
|
+
/**
|
|
7590
|
+
* 최대 32자리의 uuid를 생성합니다.
|
|
7591
|
+
* @param length 1 <= lenght <= 32 or undefined
|
|
7592
|
+
* @returns uuid
|
|
7593
7593
|
*/
|
|
7594
7594
|
function uuidv4(length) {
|
|
7595
7595
|
try {
|
|
@@ -69622,10 +69622,10 @@ hljs.HighlightJS = hljs;
|
|
|
69622
69622
|
hljs.default = hljs;
|
|
69623
69623
|
var lib = hljs;
|
|
69624
69624
|
|
|
69625
|
-
/**
|
|
69626
|
-
* 복사해주는 함수 성공하면 'complete'를, 실패하면 'undefined'를 리턴
|
|
69627
|
-
* @param text
|
|
69628
|
-
* @returns
|
|
69625
|
+
/**
|
|
69626
|
+
* 복사해주는 함수 성공하면 'complete'를, 실패하면 'undefined'를 리턴
|
|
69627
|
+
* @param text
|
|
69628
|
+
* @returns
|
|
69629
69629
|
*/
|
|
69630
69630
|
// eslint-disable-next-line import/prefer-default-export
|
|
69631
69631
|
var textCopy = function textCopy(text) {
|
|
@@ -69740,8 +69740,8 @@ var Input = /*#__PURE__*/forwardRef(function (_a, inputRef) {
|
|
|
69740
69740
|
setShowClearButton(!hiddenClearButton);
|
|
69741
69741
|
}
|
|
69742
69742
|
}, [props.defaultValue, hiddenClearButton]);
|
|
69743
|
-
/**
|
|
69744
|
-
* persistentPlaceholder = true일때 보여줄 placeholder 세팅
|
|
69743
|
+
/**
|
|
69744
|
+
* persistentPlaceholder = true일때 보여줄 placeholder 세팅
|
|
69745
69745
|
*/
|
|
69746
69746
|
useEffect(function () {
|
|
69747
69747
|
if (persistentPlaceholder && props.placeholder) {
|
|
@@ -71773,9 +71773,9 @@ function Popover(_a) {
|
|
|
71773
71773
|
var popoverRef = useRef(null);
|
|
71774
71774
|
useEffect(function () {
|
|
71775
71775
|
if (anchorEl && popoverRef.current && open) {
|
|
71776
|
-
/**
|
|
71777
|
-
* instance를 useMemo로 선언하면 레퍼런스의 DOM을 찾지 못 하고,
|
|
71778
|
-
* useCallback으로 선언하면 함수라서 호출 될 때 마다 새로운 객체가 생성되어 .update가 동작하지 않음
|
|
71776
|
+
/**
|
|
71777
|
+
* instance를 useMemo로 선언하면 레퍼런스의 DOM을 찾지 못 하고,
|
|
71778
|
+
* useCallback으로 선언하면 함수라서 호출 될 때 마다 새로운 객체가 생성되어 .update가 동작하지 않음
|
|
71779
71779
|
*/
|
|
71780
71780
|
var instance = createPopper(anchorEl, popoverRef.current, {
|
|
71781
71781
|
placement: direction,
|
|
@@ -72004,10 +72004,10 @@ var Textarea = /*#__PURE__*/forwardRef(function (_a, textareaRef) {
|
|
|
72004
72004
|
var maxHeight = useCallback(function (lineHeight) {
|
|
72005
72005
|
return maxRows ? maxRows * lineHeight : Infinity;
|
|
72006
72006
|
}, [maxRows]);
|
|
72007
|
-
/**
|
|
72008
|
-
* textarea의 높이를 조절하는 함수
|
|
72009
|
-
* - rows는 기본적으로 초기 높이 설정하는데에만 쓰임
|
|
72010
|
-
* - 동적 높이 조정은 css height 속성 변경으로 조정해야함
|
|
72007
|
+
/**
|
|
72008
|
+
* textarea의 높이를 조절하는 함수
|
|
72009
|
+
* - rows는 기본적으로 초기 높이 설정하는데에만 쓰임
|
|
72010
|
+
* - 동적 높이 조정은 css height 속성 변경으로 조정해야함
|
|
72011
72011
|
*/
|
|
72012
72012
|
var resizeHeight = function resizeHeight() {
|
|
72013
72013
|
if (combineRef.current) {
|
|
@@ -72254,9 +72254,9 @@ function Tooltip(_a) {
|
|
|
72254
72254
|
var show = open && !hidden;
|
|
72255
72255
|
useEffect(function () {
|
|
72256
72256
|
if (wrapperRef.current && tooltipRef.current && show) {
|
|
72257
|
-
/**
|
|
72258
|
-
* instance를 useMemo로 선언하면 레퍼런스의 DOM을 찾지 못 하고,
|
|
72259
|
-
* useCallback으로 선언하면 함수라서 호출 될 때 마다 새로운 객체가 생성되어 .update가 동작하지 않음
|
|
72257
|
+
/**
|
|
72258
|
+
* instance를 useMemo로 선언하면 레퍼런스의 DOM을 찾지 못 하고,
|
|
72259
|
+
* useCallback으로 선언하면 함수라서 호출 될 때 마다 새로운 객체가 생성되어 .update가 동작하지 않음
|
|
72260
72260
|
*/
|
|
72261
72261
|
var instance = createPopper(wrapperRef.current, tooltipRef.current, {
|
|
72262
72262
|
placement: direction,
|
|
@@ -89126,16 +89126,16 @@ function DropdownMenu$1(_a) {
|
|
|
89126
89126
|
var initFilteredData = function initFilteredData() {
|
|
89127
89127
|
return setFilteredData(data);
|
|
89128
89128
|
};
|
|
89129
|
-
/**
|
|
89130
|
-
* init filtered data
|
|
89129
|
+
/**
|
|
89130
|
+
* init filtered data
|
|
89131
89131
|
*/
|
|
89132
89132
|
useEffect(function () {
|
|
89133
89133
|
if (open) {
|
|
89134
89134
|
initFilteredData();
|
|
89135
89135
|
}
|
|
89136
89136
|
}, [open]);
|
|
89137
|
-
/**
|
|
89138
|
-
* 메뉴의 사이즈와 위치 설정
|
|
89137
|
+
/**
|
|
89138
|
+
* 메뉴의 사이즈와 위치 설정
|
|
89139
89139
|
*/
|
|
89140
89140
|
useEffect(function () {
|
|
89141
89141
|
var menu = menuRef.current;
|
|
@@ -89733,16 +89733,16 @@ function DropdownMenu(_a) {
|
|
|
89733
89733
|
var initFilteredData = function initFilteredData() {
|
|
89734
89734
|
return setFilteredData(data);
|
|
89735
89735
|
};
|
|
89736
|
-
/**
|
|
89737
|
-
* init filtered data
|
|
89736
|
+
/**
|
|
89737
|
+
* init filtered data
|
|
89738
89738
|
*/
|
|
89739
89739
|
useEffect(function () {
|
|
89740
89740
|
if (open) {
|
|
89741
89741
|
initFilteredData();
|
|
89742
89742
|
}
|
|
89743
89743
|
}, [open]);
|
|
89744
|
-
/**
|
|
89745
|
-
* 메뉴의 사이즈와 위치 설정
|
|
89744
|
+
/**
|
|
89745
|
+
* 메뉴의 사이즈와 위치 설정
|
|
89746
89746
|
*/
|
|
89747
89747
|
useEffect(function () {
|
|
89748
89748
|
var menu = menuRef.current;
|
|
@@ -89766,8 +89766,8 @@ function DropdownMenu(_a) {
|
|
|
89766
89766
|
}
|
|
89767
89767
|
}
|
|
89768
89768
|
}, [width]);
|
|
89769
|
-
/**
|
|
89770
|
-
* setting all checkbox
|
|
89769
|
+
/**
|
|
89770
|
+
* setting all checkbox
|
|
89771
89771
|
*/
|
|
89772
89772
|
useEffect(function () {
|
|
89773
89773
|
if (!filteredData.length) {
|
|
@@ -90393,8 +90393,8 @@ function FilterPopover(_a) {
|
|
|
90393
90393
|
onSearch = _a.onSearch;
|
|
90394
90394
|
var wrapperRef = useRef(null);
|
|
90395
90395
|
var ref = useRef(null);
|
|
90396
|
-
/**
|
|
90397
|
-
* 팝오버 위치 설정
|
|
90396
|
+
/**
|
|
90397
|
+
* 팝오버 위치 설정
|
|
90398
90398
|
*/
|
|
90399
90399
|
useEffect(function () {
|
|
90400
90400
|
var popover = ref.current;
|
|
@@ -90953,12 +90953,12 @@ function FilterTh(_a) {
|
|
|
90953
90953
|
}));
|
|
90954
90954
|
}
|
|
90955
90955
|
|
|
90956
|
-
/**
|
|
90957
|
-
* 정렬 아닌거 마우스오버하면 쌍방 화살표
|
|
90958
|
-
* 내림차순 정렬이면 아래 화살표
|
|
90959
|
-
* 오름차순 정렬이면 위 화살표
|
|
90960
|
-
* 색깔은 언제나 b500 #5c5c5c
|
|
90961
|
-
* @returns
|
|
90956
|
+
/**
|
|
90957
|
+
* 정렬 아닌거 마우스오버하면 쌍방 화살표
|
|
90958
|
+
* 내림차순 정렬이면 아래 화살표
|
|
90959
|
+
* 오름차순 정렬이면 위 화살표
|
|
90960
|
+
* 색깔은 언제나 b500 #5c5c5c
|
|
90961
|
+
* @returns
|
|
90962
90962
|
*/
|
|
90963
90963
|
function SortableColumn(_a) {
|
|
90964
90964
|
var format = _a.format,
|
|
@@ -91154,17 +91154,17 @@ function Table(_a) {
|
|
|
91154
91154
|
var _d = useState(0),
|
|
91155
91155
|
emptyBodyHeight = _d[0],
|
|
91156
91156
|
setEmptyBodyHeight = _d[1];
|
|
91157
|
-
/**
|
|
91158
|
-
* 최우측 컬럼(=액션 컬럼)에 자리를 차지 하는지 여부
|
|
91159
|
-
* 헤더에는 filter 가 올 수 있고,
|
|
91160
|
-
* 바디에는 kebabMenu, binButton, chartButton 중 하나가 올 수 있다.
|
|
91157
|
+
/**
|
|
91158
|
+
* 최우측 컬럼(=액션 컬럼)에 자리를 차지 하는지 여부
|
|
91159
|
+
* 헤더에는 filter 가 올 수 있고,
|
|
91160
|
+
* 바디에는 kebabMenu, binButton, chartButton 중 하나가 올 수 있다.
|
|
91161
91161
|
*/
|
|
91162
91162
|
var hasActionCol = filter != null || kebabMenu != null || binButton != null || chartButton != null;
|
|
91163
|
-
/**
|
|
91164
|
-
* 테이블 바디 높이 조정
|
|
91165
|
-
* 1. maxHeight가 헤더 높이보다 클때만 조정 (참고로 헤더 높이는 최소 55 최대 105)
|
|
91166
|
-
* 2. 필터가 열려있건 닫혀있건 테이블 바디의 maxHeight 고정으로 조정
|
|
91167
|
-
* 3. data가 바뀌면 다시 조정
|
|
91163
|
+
/**
|
|
91164
|
+
* 테이블 바디 높이 조정
|
|
91165
|
+
* 1. maxHeight가 헤더 높이보다 클때만 조정 (참고로 헤더 높이는 최소 55 최대 105)
|
|
91166
|
+
* 2. 필터가 열려있건 닫혀있건 테이블 바디의 maxHeight 고정으로 조정
|
|
91167
|
+
* 3. data가 바뀌면 다시 조정
|
|
91168
91168
|
*/
|
|
91169
91169
|
useEffect(function () {
|
|
91170
91170
|
var headerWrapper = tableHeaderWrapperRef === null || tableHeaderWrapperRef === void 0 ? void 0 : tableHeaderWrapperRef.current;
|
|
@@ -91178,9 +91178,9 @@ function Table(_a) {
|
|
|
91178
91178
|
}
|
|
91179
91179
|
}
|
|
91180
91180
|
}, [maxHeight, filterToggle, data]);
|
|
91181
|
-
/**
|
|
91182
|
-
* 테이블 헤더의 너비 조정
|
|
91183
|
-
* 1. data가 바뀌면 테이블 바디에 스크롤이 있다 없다 하니까 그에 따라 조정
|
|
91181
|
+
/**
|
|
91182
|
+
* 테이블 헤더의 너비 조정
|
|
91183
|
+
* 1. data가 바뀌면 테이블 바디에 스크롤이 있다 없다 하니까 그에 따라 조정
|
|
91184
91184
|
*/
|
|
91185
91185
|
useEffect(function () {
|
|
91186
91186
|
var headerWrapper = tableHeaderWrapperRef === null || tableHeaderWrapperRef === void 0 ? void 0 : tableHeaderWrapperRef.current;
|
|
@@ -91196,8 +91196,8 @@ function Table(_a) {
|
|
|
91196
91196
|
}
|
|
91197
91197
|
}
|
|
91198
91198
|
}, [data]);
|
|
91199
|
-
/**
|
|
91200
|
-
* setting all checkbox
|
|
91199
|
+
/**
|
|
91200
|
+
* setting all checkbox
|
|
91201
91201
|
*/
|
|
91202
91202
|
useEffect(function () {
|
|
91203
91203
|
if (checkedIds != null) {
|
package/dist/utils/copy.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 복사해주는 함수 성공하면 'complete'를, 실패하면 'undefined'를 리턴
|
|
3
|
-
* @param text
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
6
|
-
export declare const textCopy: (text: string) => Promise<'complete' | undefined>;
|
|
1
|
+
/**
|
|
2
|
+
* 복사해주는 함수 성공하면 'complete'를, 실패하면 'undefined'를 리턴
|
|
3
|
+
* @param text
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare const textCopy: (text: string) => Promise<'complete' | undefined>;
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const noSpace: (text: string) => string;
|
|
2
|
-
export { noSpace };
|
|
1
|
+
declare const noSpace: (text: string) => string;
|
|
2
|
+
export { noSpace };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const searchData: <T>(data: T[], displayKey: string, query: string) => typeof data;
|
|
1
|
+
export declare const searchData: <T>(data: T[], displayKey: string, query: string) => typeof data;
|
package/package.json
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "maru_design2",
|
|
3
|
-
"version": "2.27.
|
|
4
|
-
"main": "./dist/index.js",
|
|
5
|
-
"author": "zena-42maru",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"peerDependencies": {
|
|
8
|
-
"react": "^18.3.1",
|
|
9
|
-
"react-dom": "^18.3.1"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@babel/core": "^7.18.10",
|
|
13
|
-
"@babel/preset-env": "^7.24.4",
|
|
14
|
-
"@babel/preset-react": "^7.24.1",
|
|
15
|
-
"@babel/preset-typescript": "^7.24.1",
|
|
16
|
-
"@chromatic-com/storybook": "^1",
|
|
17
|
-
"@popperjs/core": "^2.11.6",
|
|
18
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
19
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
20
|
-
"@rollup/plugin-image": "^2.1.1",
|
|
21
|
-
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
22
|
-
"@rollup/plugin-typescript": "^8.3.4",
|
|
23
|
-
"@storybook/addon-actions": "^8.0.9",
|
|
24
|
-
"@storybook/addon-essentials": "^8.0.9",
|
|
25
|
-
"@storybook/addon-interactions": "^8.0.9",
|
|
26
|
-
"@storybook/addon-links": "^8.0.9",
|
|
27
|
-
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
28
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
29
|
-
"@storybook/react": "^8.0.9",
|
|
30
|
-
"@storybook/react-webpack5": "^8.0.9",
|
|
31
|
-
"@storybook/test": "^8.0.9",
|
|
32
|
-
"@types/react": "^17.0.11",
|
|
33
|
-
"@types/react-datepicker": "^6.2.0",
|
|
34
|
-
"@types/react-dom": "^17.0.8",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
36
|
-
"@typescript-eslint/parser": "^5.31.0",
|
|
37
|
-
"chromatic": "^11.3.0",
|
|
38
|
-
"classnames": "^2.5.1",
|
|
39
|
-
"css-loader": "^6.7.1",
|
|
40
|
-
"date-fns": "^3.6.0",
|
|
41
|
-
"eslint": "^8.20.0",
|
|
42
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
43
|
-
"eslint-config-prettier": "^8.5.0",
|
|
44
|
-
"eslint-plugin-import": "^2.26.0",
|
|
45
|
-
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
46
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
47
|
-
"eslint-plugin-react": "^7.30.1",
|
|
48
|
-
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
49
|
-
"highlight.js": "^11.11.1",
|
|
50
|
-
"postcss": "^8.4.16",
|
|
51
|
-
"postcss-url": "^10.1.3",
|
|
52
|
-
"prettier": "^3.2.5",
|
|
53
|
-
"rollup": "^2.77.3",
|
|
54
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
56
|
-
"sass": "^1.54.4",
|
|
57
|
-
"sass-loader": "^13.0.2",
|
|
58
|
-
"storybook": "^8.0.9",
|
|
59
|
-
"style-loader": "^3.3.1",
|
|
60
|
-
"typescript": "^4.7.4"
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"react": "^17.0.2",
|
|
64
|
-
"react-datepicker": "^6.9.0",
|
|
65
|
-
"react-dom": "^17.0.2"
|
|
66
|
-
},
|
|
67
|
-
"scripts": {
|
|
68
|
-
"storybook": "storybook dev -p 6006",
|
|
69
|
-
"build-storybook": "storybook build",
|
|
70
|
-
"build": "rollup -c",
|
|
71
|
-
"release": "rm -rf dist && yarn build && mv README.md temp.md && yarn publish && mv temp.md README.md",
|
|
72
|
-
"svg": "node ./scripts/svg-parser.mjs"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "maru_design2",
|
|
3
|
+
"version": "2.27.3",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"author": "zena-42maru",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"react": "^18.3.1",
|
|
9
|
+
"react-dom": "^18.3.1"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@babel/core": "^7.18.10",
|
|
13
|
+
"@babel/preset-env": "^7.24.4",
|
|
14
|
+
"@babel/preset-react": "^7.24.1",
|
|
15
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
16
|
+
"@chromatic-com/storybook": "^1",
|
|
17
|
+
"@popperjs/core": "^2.11.6",
|
|
18
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
19
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
20
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
21
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
22
|
+
"@rollup/plugin-typescript": "^8.3.4",
|
|
23
|
+
"@storybook/addon-actions": "^8.0.9",
|
|
24
|
+
"@storybook/addon-essentials": "^8.0.9",
|
|
25
|
+
"@storybook/addon-interactions": "^8.0.9",
|
|
26
|
+
"@storybook/addon-links": "^8.0.9",
|
|
27
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
28
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
29
|
+
"@storybook/react": "^8.0.9",
|
|
30
|
+
"@storybook/react-webpack5": "^8.0.9",
|
|
31
|
+
"@storybook/test": "^8.0.9",
|
|
32
|
+
"@types/react": "^17.0.11",
|
|
33
|
+
"@types/react-datepicker": "^6.2.0",
|
|
34
|
+
"@types/react-dom": "^17.0.8",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
36
|
+
"@typescript-eslint/parser": "^5.31.0",
|
|
37
|
+
"chromatic": "^11.3.0",
|
|
38
|
+
"classnames": "^2.5.1",
|
|
39
|
+
"css-loader": "^6.7.1",
|
|
40
|
+
"date-fns": "^3.6.0",
|
|
41
|
+
"eslint": "^8.20.0",
|
|
42
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
43
|
+
"eslint-config-prettier": "^8.5.0",
|
|
44
|
+
"eslint-plugin-import": "^2.26.0",
|
|
45
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
46
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
47
|
+
"eslint-plugin-react": "^7.30.1",
|
|
48
|
+
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
49
|
+
"highlight.js": "^11.11.1",
|
|
50
|
+
"postcss": "^8.4.16",
|
|
51
|
+
"postcss-url": "^10.1.3",
|
|
52
|
+
"prettier": "^3.2.5",
|
|
53
|
+
"rollup": "^2.77.3",
|
|
54
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
56
|
+
"sass": "^1.54.4",
|
|
57
|
+
"sass-loader": "^13.0.2",
|
|
58
|
+
"storybook": "^8.0.9",
|
|
59
|
+
"style-loader": "^3.3.1",
|
|
60
|
+
"typescript": "^4.7.4"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"react": "^17.0.2",
|
|
64
|
+
"react-datepicker": "^6.9.0",
|
|
65
|
+
"react-dom": "^17.0.2"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"storybook": "storybook dev -p 6006",
|
|
69
|
+
"build-storybook": "storybook build",
|
|
70
|
+
"build": "rollup -c",
|
|
71
|
+
"release": "rm -rf dist && yarn build && mv README.md temp.md && yarn publish && mv temp.md README.md",
|
|
72
|
+
"svg": "node ./scripts/svg-parser.mjs"
|
|
73
|
+
}
|
|
74
|
+
}
|