@noraent/nora-datagrid 0.0.84 → 0.0.85
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/buildPackage.json +1 -1
- package/dist/common/constants/useEventCallback.d.ts +3 -0
- package/dist/common/constants/utils.d.ts +19 -0
- package/dist/common/styled/index.d.ts +10 -0
- package/dist/hooks/useGridApiMethod.d.ts +5 -0
- package/dist/hooks/useGridApiRef.d.ts +4 -0
- package/dist/nora_datagrid.cjs.js +2 -2
- package/dist/nora_datagrid.es.js +199 -322
- package/dist/types/classes/styled.d.ts +3 -0
- package/dist/types/dataGridCoreProps.d.ts +41 -0
- package/dist/types/dataGridProps.d.ts +126 -0
- package/package.json +1 -1
package/dist/buildPackage.json
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 항상 최신 상태를 유지 해야할떄 사용
|
|
3
|
+
*/
|
|
1
4
|
declare function useEventCallback<Fn extends (...args: any[]) => any = (...args: unknown[]) => unknown>(fn: Fn): Fn;
|
|
2
5
|
declare function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
|
|
3
6
|
export default useEventCallback;
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 첫 마운트시 실행 되지 않습니다.
|
|
4
|
+
* 업데이트시 실행하고 싶다면 사용해주세요.
|
|
5
|
+
* @param callback
|
|
6
|
+
* @param deps
|
|
7
|
+
*/
|
|
2
8
|
declare function useUpdateEffect(callback: React.EffectCallback, deps: React.DependencyList): void;
|
|
9
|
+
/**
|
|
10
|
+
* Array<Object> 경우 변경 감지하기 힘들기 때문에 별도 hook 구성함
|
|
11
|
+
* 깊은 비교를 통해 종속성 배열의 변경을 감지하는 커스텀 훅
|
|
12
|
+
* @param callback 실행할 효과 함수
|
|
13
|
+
* @param dependencies 종속성 배열
|
|
14
|
+
*/
|
|
3
15
|
export declare function useDeepCompareEffect<T>(callback: () => void | (() => void), dependencies: T[]): void;
|
|
16
|
+
/**
|
|
17
|
+
* Array<Object> 경우 변경 감지하기 힘들기 때문에 별도 hook 구성함
|
|
18
|
+
* 깊은 비교와 팩토리 함수를 사용하는 메모이제이션 훅
|
|
19
|
+
* @param factory 계산을 수행하는 팩토리 함수
|
|
20
|
+
* @param deps 의존성 배열
|
|
21
|
+
* @returns 메모이제이션된 계산 결과
|
|
22
|
+
*/
|
|
4
23
|
export declare function useDeepCompareMemo<T>(factory: () => T, deps: any[]): T;
|
|
5
24
|
export default useUpdateEffect;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { foundation } from '../foundation';
|
|
2
|
+
/**
|
|
3
|
+
* 💡 알림
|
|
4
|
+
* 본 섹션은 가이드의 가독성을 높이기 위해 추가되었습니다.
|
|
5
|
+
* 기능 개발에만 집중할 수 있도록 작성된 문서이며, UI 관련 가이드는 따로 제공되지 않습니다.
|
|
6
|
+
* 가이드가 아니므로 참고용으로만 활용해 주세요.
|
|
7
|
+
* 디자인 시스템을 개발할경우 색상이나 사이즈 처리 등 가이드로 사용하기에는 다소 부족한 부분이 있을 수 있습니다. 부득이하게 개발이 필요한 경우 해당부분을 고려하여 개발 해주세요.
|
|
8
|
+
*/
|
|
2
9
|
export declare const StyledButton: import('@emotion/styled').StyledComponent<{
|
|
3
10
|
theme?: import('@emotion/react').Theme;
|
|
4
11
|
as?: React.ElementType;
|
|
@@ -20,6 +27,9 @@ interface TypographyProps {
|
|
|
20
27
|
color?: colorType;
|
|
21
28
|
}
|
|
22
29
|
type colorType = keyof typeof foundation.$scale.color;
|
|
30
|
+
/**
|
|
31
|
+
* 정리 필요
|
|
32
|
+
*/
|
|
23
33
|
type variantType = keyof typeof variantMapping;
|
|
24
34
|
declare const variantMapping: {
|
|
25
35
|
KR_TITLE_H1: {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DataGridPrivateApi, DataGridPublicApi, GirdApiCommon, Visibility } from '../types/dataGridProps';
|
|
3
|
+
/**
|
|
4
|
+
* 객체나 함수를 등록하고 나중에 호출하거나 참조할 때 사용합니다.
|
|
5
|
+
* @private
|
|
6
|
+
* @namespace NoraDataGrid.init.useGridApiMethod
|
|
7
|
+
*/
|
|
3
8
|
export declare function useGridApiMethod(apiRef: React.MutableRefObject<GirdApiCommon<DataGridPrivateApi>>, apiMethods: Partial<DataGridPublicApi | DataGridPrivateApi>, visibility: Visibility): void;
|