gov-ui-core 0.2.6-beta.9 → 0.2.6

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.
Files changed (114) hide show
  1. package/.storybook/main.ts +36 -37
  2. package/.storybook/preview.tsx +27 -27
  3. package/@types/custom.d.ts +43 -43
  4. package/@types/styles.d.ts +3 -86
  5. package/README.md +46 -46
  6. package/build/App.d.ts +3 -3
  7. package/build/Main.d.ts +5 -5
  8. package/build/components/Button/DropdownButton.d.ts +15 -15
  9. package/build/components/Button/SwitchButton.d.ts +7 -7
  10. package/build/components/Button/index.d.ts +11 -11
  11. package/build/components/Button/styled.d.ts +10 -11
  12. package/build/components/Calendar/CalendarNavigation.d.ts +9 -9
  13. package/build/components/Calendar/constants.d.ts +2 -2
  14. package/build/components/Calendar/index.d.ts +11 -11
  15. package/build/components/Calendar/styled.d.ts +2 -2
  16. package/build/components/Carousel/ArrowButton.d.ts +7 -7
  17. package/build/components/Carousel/index.d.ts +14 -14
  18. package/build/components/Carousel/styled.d.ts +2 -2
  19. package/build/components/Directory/index.d.ts +32 -32
  20. package/build/components/Directory/styled.d.ts +6 -6
  21. package/build/components/EmptyBox/index.d.ts +8 -8
  22. package/build/components/EmptyBox/styled.d.ts +4 -4
  23. package/build/components/Form/Form.d.ts +21 -21
  24. package/build/components/Form/Group.d.ts +6 -6
  25. package/build/components/Form/Item.d.ts +22 -22
  26. package/build/components/Form/index.d.ts +14 -14
  27. package/build/components/Form/styled.d.ts +7 -7
  28. package/build/components/Header/ContentHeader.d.ts +15 -15
  29. package/build/components/Header/styled.d.ts +5 -5
  30. package/build/components/Icons/index.d.ts +14 -14
  31. package/build/components/Input/Checkbox.d.ts +19 -19
  32. package/build/components/Input/ErrorMessage.d.ts +8 -8
  33. package/build/components/Input/Input.d.ts +23 -23
  34. package/build/components/Input/InputNumber.d.ts +8 -8
  35. package/build/components/Input/Radio.d.ts +16 -16
  36. package/build/components/Input/Search.d.ts +13 -13
  37. package/build/components/Input/Select.d.ts +39 -40
  38. package/build/components/Input/TextArea.d.ts +15 -15
  39. package/build/components/Input/index.d.ts +19 -19
  40. package/build/components/Input/styled.d.ts +25 -25
  41. package/build/components/IntlText/index.d.ts +5 -5
  42. package/build/components/Loading/OverlayLoading.d.ts +10 -10
  43. package/build/components/Loading/Spinner.d.ts +9 -9
  44. package/build/components/Loading/styled.d.ts +10 -10
  45. package/build/components/Styled/mixins.d.ts +13 -13
  46. package/build/components/Styled/variable.d.ts +6 -6
  47. package/build/components/Table/AppendTable.d.ts +26 -26
  48. package/build/components/Table/AutoTooltip.d.ts +8 -8
  49. package/build/components/Table/TableBase.d.ts +16 -16
  50. package/build/components/Table/TableLoading.d.ts +9 -9
  51. package/build/components/Table/components/Pagination.d.ts +18 -18
  52. package/build/components/Table/components/PaginationItem.d.ts +9 -9
  53. package/build/components/Table/index.d.ts +27 -27
  54. package/build/components/Table/styled.d.ts +25 -25
  55. package/build/components/ThemeProvider.d.ts +16 -16
  56. package/build/globalStyle.d.ts +5 -5
  57. package/build/index.d.ts +1 -1
  58. package/build/index.js +1 -1
  59. package/build/modules.d.ts +23 -24
  60. package/build/pages/CreateTable.d.ts +20 -20
  61. package/build/pages/FormSample.d.ts +5 -5
  62. package/build/pages/Sample.d.ts +5 -5
  63. package/build/pages/Sample2.d.ts +5 -5
  64. package/build/pages/Sample3.d.ts +5 -5
  65. package/build/pages/Sample4.d.ts +5 -5
  66. package/build/pages/TableSample.d.ts +5 -5
  67. package/build/pages/sampleData.d.ts +59 -59
  68. package/build/reportWebVitals.d.ts +3 -3
  69. package/build/theme.d.ts +45 -3
  70. package/build/utils/customState.d.ts +28 -28
  71. package/build/utils/hookUtils.d.ts +16 -16
  72. package/build/utils/index.d.ts +35 -35
  73. package/config/env.js +104 -104
  74. package/config/getHttpsConfig.js +66 -66
  75. package/config/jest/babelTransform.js +29 -29
  76. package/config/jest/cssTransform.js +14 -14
  77. package/config/jest/fileTransform.js +40 -40
  78. package/config/modules.js +134 -134
  79. package/config/paths.js +77 -77
  80. package/config/webpack/persistentCache/createEnvironmentHash.js +9 -9
  81. package/config/webpack.config.js +756 -756
  82. package/config/webpack.prod.config.js +91 -91
  83. package/config/webpackDevServer.config.js +127 -127
  84. package/doctor-storybook.log +18 -0
  85. package/migration-storybook.log +98 -0
  86. package/package.json +215 -247
  87. package/public/index.html +43 -43
  88. package/public/manifest.json +25 -25
  89. package/public/robots.txt +3 -3
  90. package/scripts/build.js +217 -217
  91. package/scripts/start.js +154 -154
  92. package/scripts/test.js +52 -52
  93. package/tsconfig.json +34 -34
  94. package/.eslintrc.json +0 -54
  95. package/.husky/pre-commit +0 -4
  96. package/.prettierrc +0 -12
  97. package/.stylelintrc.json +0 -16
  98. package/build/20d0d451f31ed3b5c15f.woff +0 -1
  99. package/build/39285e8af490890e2df4.otf +0 -0
  100. package/build/3965b6176d1ce958b445.woff +0 -1
  101. package/build/508d69efb37042551458.woff +0 -1
  102. package/build/72ba455576ce8174ffa8.otf +0 -0
  103. package/build/a9ba4978d441af03cd27.woff +0 -1
  104. package/build/components/Button/constants.d.ts +0 -19
  105. package/build/components/Chip/constants.d.ts +0 -9
  106. package/build/components/Chip/index.d.ts +0 -12
  107. package/build/e65c7edcd47e3e9f5c99.otf +0 -0
  108. package/build/f7a8dce8dfc249d7e12b.otf +0 -0
  109. package/build/pages/ButtonSample.d.ts +0 -6
  110. package/build/pages/ChipSample.d.ts +0 -6
  111. package/build/pages/InputSample.d.ts +0 -6
  112. package/build/pages/TailwindSample.d.ts +0 -1
  113. package/postcss.config.js +0 -8
  114. package/tailwind.config.js +0 -185
@@ -1,24 +1,23 @@
1
- import Button from './components/Button';
2
- import Carousel from './components/Carousel';
3
- import ContentHeader from './components/Header/ContentHeader';
4
- import Directory from './components/Directory';
5
- import DropdownButton from './components/Button/DropdownButton';
6
- import EmptyBox from './components/EmptyBox';
7
- import Form from './components/Form';
8
- import Icons from './components/Icons';
9
- import Input from './components/Input';
10
- import ErrorMessage from './components/Input/ErrorMessage';
11
- import AutoTooltip from './components/Table/AutoTooltip';
12
- import OverlayLoading from './components/Loading/OverlayLoading';
13
- import SwitchButton from './components/Button/SwitchButton';
14
- import Table from './components/Table';
15
- import TableBase from './components/Table/TableBase';
16
- import Calendar from './components/Calendar';
17
- import IntlText from './components/IntlText';
18
- import AppendTable from './components/Table/AppendTable';
19
- import ThemeProvider from './components/ThemeProvider';
20
- import { Methods } from './components/Form';
21
- import defaultTheme from './theme';
22
- import './index.scss';
23
- export { AppendTable, Button, Calendar, Carousel, ContentHeader, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, SwitchButton, Table, TableBase, ThemeProvider, AutoTooltip, IntlText, defaultTheme, };
24
- export type { Methods };
1
+ import Button from './components/Button';
2
+ import Carousel from './components/Carousel';
3
+ import ContentHeader from './components/Header/ContentHeader';
4
+ import Directory from './components/Directory';
5
+ import DropdownButton from './components/Button/DropdownButton';
6
+ import EmptyBox from './components/EmptyBox';
7
+ import Form from './components/Form';
8
+ import Icons from './components/Icons';
9
+ import Input from './components/Input';
10
+ import ErrorMessage from './components/Input/ErrorMessage';
11
+ import AutoTooltip from './components/Table/AutoTooltip';
12
+ import OverlayLoading from './components/Loading/OverlayLoading';
13
+ import SwitchButton from './components/Button/SwitchButton';
14
+ import Table from './components/Table';
15
+ import TableBase from './components/Table/TableBase';
16
+ import Calendar from './components/Calendar';
17
+ import IntlText from './components/IntlText';
18
+ import AppendTable from './components/Table/AppendTable';
19
+ import ThemeProvider from './components/ThemeProvider';
20
+ import { Methods } from './components/Form';
21
+ import defaultTheme from './theme';
22
+ export { AppendTable, Button, Calendar, Carousel, ContentHeader, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, SwitchButton, Table, TableBase, ThemeProvider, AutoTooltip, IntlText, defaultTheme, };
23
+ export type { Methods, };
@@ -1,20 +1,20 @@
1
- import React from 'react';
2
- interface ICreateTableProps {
3
- }
4
- export declare const FormItemBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
- width?: number | undefined;
6
- gap?: number | undefined;
7
- fullHeight?: boolean | undefined;
8
- }, never>;
9
- export declare const DATASOURCE_TYPE: {
10
- ICEBERG: string;
11
- JDBC: string;
12
- ORC: string;
13
- PARQUET: string;
14
- };
15
- export declare const DATASOURCE_TYPE_OPTIONS: {
16
- label: string;
17
- value: string;
18
- }[];
19
- declare const CreateTable: React.FC<ICreateTableProps>;
20
- export default CreateTable;
1
+ import React from 'react';
2
+ interface ICreateTableProps {
3
+ }
4
+ export declare const FormItemBox: import("styled-components").StyledComponent<"div", any, {
5
+ width?: number | undefined;
6
+ gap?: number | undefined;
7
+ fullHeight?: boolean | undefined;
8
+ }, never>;
9
+ export declare const DATASOURCE_TYPE: {
10
+ ICEBERG: string;
11
+ JDBC: string;
12
+ ORC: string;
13
+ PARQUET: string;
14
+ };
15
+ export declare const DATASOURCE_TYPE_OPTIONS: {
16
+ label: string;
17
+ value: string;
18
+ }[];
19
+ declare const CreateTable: React.FC<ICreateTableProps>;
20
+ export default CreateTable;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- interface IFormSampleProps {
3
- }
4
- declare const FormSample: React.FC<IFormSampleProps>;
5
- export default FormSample;
1
+ import React from 'react';
2
+ interface IFormSampleProps {
3
+ }
4
+ declare const FormSample: React.FC<IFormSampleProps>;
5
+ export default FormSample;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- interface ISampleProps {
3
- }
4
- declare const Sample: React.FC<ISampleProps>;
5
- export default Sample;
1
+ import React from 'react';
2
+ interface ISampleProps {
3
+ }
4
+ declare const Sample: React.FC<ISampleProps>;
5
+ export default Sample;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- interface ISample2Props {
3
- }
4
- declare const Sample2: React.FC<ISample2Props>;
5
- export default Sample2;
1
+ import React from 'react';
2
+ interface ISample2Props {
3
+ }
4
+ declare const Sample2: React.FC<ISample2Props>;
5
+ export default Sample2;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- interface ISample3Props {
3
- }
4
- declare const Sample3: React.FC<ISample3Props>;
5
- export default Sample3;
1
+ import React from 'react';
2
+ interface ISample3Props {
3
+ }
4
+ declare const Sample3: React.FC<ISample3Props>;
5
+ export default Sample3;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- interface ISample4Props {
3
- }
4
- declare const Sample4: React.FC<ISample4Props>;
5
- export default Sample4;
1
+ import React from 'react';
2
+ interface ISample4Props {
3
+ }
4
+ declare const Sample4: React.FC<ISample4Props>;
5
+ export default Sample4;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- interface ITableSampleProps {
3
- }
4
- declare const TableSample: React.FC<ITableSampleProps>;
5
- export default TableSample;
1
+ import React from 'react';
2
+ interface ITableSampleProps {
3
+ }
4
+ declare const TableSample: React.FC<ITableSampleProps>;
5
+ export default TableSample;
@@ -1,59 +1,59 @@
1
- export declare const treeData: {
2
- title: string;
3
- key: string;
4
- isLeaf: boolean;
5
- customType: string;
6
- children: ({
7
- title: string;
8
- key: string;
9
- customType: string;
10
- isLeaf: boolean;
11
- children?: undefined;
12
- } | {
13
- title: string;
14
- key: string;
15
- isLeaf: boolean;
16
- children: ({
17
- title: string;
18
- key: string;
19
- isLeaf: boolean;
20
- children: {
21
- title: string;
22
- key: string;
23
- isLeaf: boolean;
24
- children: ({
25
- title: string;
26
- key: string;
27
- isLeaf: boolean;
28
- children: {
29
- title: string;
30
- key: string;
31
- isLeaf: boolean;
32
- children: {
33
- title: string;
34
- key: string;
35
- isLeaf: boolean;
36
- }[];
37
- }[];
38
- } | {
39
- title: string;
40
- key: string;
41
- isLeaf: boolean;
42
- children?: undefined;
43
- })[];
44
- }[];
45
- } | {
46
- title: string;
47
- key: string;
48
- isLeaf: boolean;
49
- children?: undefined;
50
- })[];
51
- customType?: undefined;
52
- } | {
53
- title: string;
54
- key: string;
55
- isLeaf: boolean;
56
- customType?: undefined;
57
- children?: undefined;
58
- })[];
59
- }[];
1
+ export declare const treeData: {
2
+ title: string;
3
+ key: string;
4
+ isLeaf: boolean;
5
+ customType: string;
6
+ children: ({
7
+ title: string;
8
+ key: string;
9
+ customType: string;
10
+ isLeaf: boolean;
11
+ children?: undefined;
12
+ } | {
13
+ title: string;
14
+ key: string;
15
+ isLeaf: boolean;
16
+ children: ({
17
+ title: string;
18
+ key: string;
19
+ isLeaf: boolean;
20
+ children: {
21
+ title: string;
22
+ key: string;
23
+ isLeaf: boolean;
24
+ children: ({
25
+ title: string;
26
+ key: string;
27
+ isLeaf: boolean;
28
+ children: {
29
+ title: string;
30
+ key: string;
31
+ isLeaf: boolean;
32
+ children: {
33
+ title: string;
34
+ key: string;
35
+ isLeaf: boolean;
36
+ }[];
37
+ }[];
38
+ } | {
39
+ title: string;
40
+ key: string;
41
+ isLeaf: boolean;
42
+ children?: undefined;
43
+ })[];
44
+ }[];
45
+ } | {
46
+ title: string;
47
+ key: string;
48
+ isLeaf: boolean;
49
+ children?: undefined;
50
+ })[];
51
+ customType?: undefined;
52
+ } | {
53
+ title: string;
54
+ key: string;
55
+ isLeaf: boolean;
56
+ customType?: undefined;
57
+ children?: undefined;
58
+ })[];
59
+ }[];
@@ -1,3 +1,3 @@
1
- import { ReportHandler } from 'web-vitals';
2
- declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
- export default reportWebVitals;
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
+ export default reportWebVitals;
package/build/theme.d.ts CHANGED
@@ -1,3 +1,45 @@
1
- import { DefaultTheme } from 'styled-components';
2
- declare const theme: DefaultTheme;
3
- export default theme;
1
+ export type ThemeType = {
2
+ info?: string;
3
+ info10?: string;
4
+ info20?: string;
5
+ success?: string;
6
+ warning?: string;
7
+ error?: string;
8
+ errortooltip?: string;
9
+ transparent?: string;
10
+ black100?: string;
11
+ black80?: string;
12
+ black70?: string;
13
+ black60?: string;
14
+ black50?: string;
15
+ black40?: string;
16
+ black30?: string;
17
+ black20?: string;
18
+ black15?: string;
19
+ black10?: string;
20
+ black05?: string;
21
+ black03?: string;
22
+ white?: string;
23
+ white90?: string;
24
+ white80?: string;
25
+ white70?: string;
26
+ white60?: string;
27
+ white50?: string;
28
+ white40?: string;
29
+ white30?: string;
30
+ white20?: string;
31
+ white10?: string;
32
+ line?: string;
33
+ primary?: string;
34
+ primary90?: string;
35
+ primary60?: string;
36
+ primary50?: string;
37
+ primary40?: string;
38
+ primary20?: string;
39
+ primary10?: string;
40
+ primarystop1?: string;
41
+ primarystop2?: string;
42
+ emptyLogo?: string;
43
+ };
44
+ declare const theme: ThemeType;
45
+ export default theme;
@@ -1,28 +1,28 @@
1
- type ModalState = {
2
- open: boolean;
3
- data?: any;
4
- };
5
- /**
6
- * modal state
7
- * @param defaultValue
8
- */
9
- export declare function useModalState(defaultValue?: ModalState): readonly [ModalState, (value?: ModalState) => void];
10
- /**
11
- * pagination state
12
- * @param defaultValue
13
- */
14
- export declare function usePaginationState(defaultValue?: PaginationType): readonly [PaginationType | undefined, (value?: PaginationType) => void];
15
- export declare const useDebounce: (obj?: any, wait?: number) => any[];
16
- export type DataInfoState = {
17
- dataSource?: Record<string, any>[];
18
- totalSize?: number;
19
- };
20
- /**
21
- * Table datasource loading 처리를 위한 state
22
- * @param defaultValue
23
- */
24
- export declare function useDataInfoState(defaultValue?: {
25
- dataSource: undefined;
26
- totalSize: number;
27
- }): readonly [DataInfoState, (value?: DataInfoState) => void];
28
- export {};
1
+ type ModalState = {
2
+ open: boolean;
3
+ data?: any;
4
+ };
5
+ /**
6
+ * modal state
7
+ * @param defaultValue
8
+ */
9
+ export declare function useModalState(defaultValue?: ModalState): readonly [ModalState, (value?: ModalState) => void];
10
+ /**
11
+ * pagination state
12
+ * @param defaultValue
13
+ */
14
+ export declare function usePaginationState(defaultValue?: PaginationType): readonly [PaginationType | undefined, (value?: PaginationType) => void];
15
+ export declare const useDebounce: (obj?: any, wait?: number) => any[];
16
+ export type DataInfoState = {
17
+ dataSource?: Record<string, any>[];
18
+ totalSize?: number;
19
+ };
20
+ /**
21
+ * Table datasource loading 처리를 위한 state
22
+ * @param defaultValue
23
+ */
24
+ export declare function useDataInfoState(defaultValue?: {
25
+ dataSource: undefined;
26
+ totalSize: number;
27
+ }): readonly [DataInfoState, (value?: DataInfoState) => void];
28
+ export {};
@@ -1,16 +1,16 @@
1
- /// <reference types="react" />
2
- /**
3
- * 컴포넌트를 로드할 때 해당 값을 감지하지 않기 위한 용도의 기능
4
- * @param fn
5
- * @param values
6
- * @constructor
7
- */
8
- export declare const useSubscribe: (fn: any, values: any[]) => void;
9
- /**
10
- * prev value를 반환해주는 함수
11
- * @param fn callback function
12
- * @param values observable array
13
- * @constructor
14
- */
15
- export declare const usePrevious: (fn: any, values: any[]) => void;
16
- export declare function useOutsideClick(callback: () => void): import("react").MutableRefObject<any>;
1
+ /// <reference types="react" />
2
+ /**
3
+ * 컴포넌트를 로드할 때 해당 값을 감지하지 않기 위한 용도의 기능
4
+ * @param fn
5
+ * @param values
6
+ * @constructor
7
+ */
8
+ export declare const useSubscribe: (fn: any, values: any[]) => void;
9
+ /**
10
+ * prev value를 반환해주는 함수
11
+ * @param fn callback function
12
+ * @param values observable array
13
+ * @constructor
14
+ */
15
+ export declare const usePrevious: (fn: any, values: any[]) => void;
16
+ export declare function useOutsideClick(callback: () => void): import("react").MutableRefObject<any>;
@@ -1,35 +1,35 @@
1
- import queryString from 'query-string';
2
- import { ColumnsType } from 'antd/lib/table/interface';
3
- export declare const getOption: (options: any, value: any) => any;
4
- /**
5
- * 페이지네이션 계산 함수
6
- * 현재값을 기준으로 앞뒤 페이지 range를 생성한다.
7
- * @param current
8
- * @param min
9
- * @param total
10
- * @param length
11
- */
12
- export declare const getPagingRange: (current: any, { min, total, length }?: {
13
- min?: number | undefined;
14
- total?: number | undefined;
15
- length?: number | undefined;
16
- }) => number[];
17
- export declare const getSortOption: (option: any) => string | undefined;
18
- export declare function escapeRegExp(string: any): any;
19
- export declare const getPageQuery: () => queryString.ParsedQuery<string>;
20
- export declare const getQuery: (key: any) => string | (string | null)[] | null;
21
- export declare const getStringAttribute: (titleNode: any) => string | undefined;
22
- /**
23
- * object 공백 요소를 삭제하기 위한 용도
24
- * @param obj 기본 object
25
- * @param values values
26
- * @param prefixTID prefix id
27
- */
28
- export declare const cleanEmptyObj: (obj: any, values: Record<string, any>[], prefixTID?: any) => any;
29
- /**
30
- * column option 기본 셋팅
31
- * @param columns
32
- * @param options
33
- * @param padding
34
- */
35
- export declare const setColumnOption: <RecordType = Record<string, any>>(columns: ColumnsType<RecordType>, options?: Record<string, any>, padding?: number) => ColumnsType<RecordType>;
1
+ import queryString from 'query-string';
2
+ import { ColumnsType } from 'antd/lib/table/interface';
3
+ export declare const getOption: (options: any, value: any) => any;
4
+ /**
5
+ * 페이지네이션 계산 함수
6
+ * 현재값을 기준으로 앞뒤 페이지 range를 생성한다.
7
+ * @param current
8
+ * @param min
9
+ * @param total
10
+ * @param length
11
+ */
12
+ export declare const getPagingRange: (current: any, { min, total, length }?: {
13
+ min?: number | undefined;
14
+ total?: number | undefined;
15
+ length?: number | undefined;
16
+ }) => number[];
17
+ export declare const getSortOption: (option: any) => string | undefined;
18
+ export declare function escapeRegExp(string: any): any;
19
+ export declare const getPageQuery: () => queryString.ParsedQuery<string>;
20
+ export declare const getQuery: (key: any) => string | (string | null)[] | null;
21
+ export declare const getStringAttribute: (titleNode: any) => string | undefined;
22
+ /**
23
+ * object 공백 요소를 삭제하기 위한 용도
24
+ * @param obj 기본 object
25
+ * @param values values
26
+ * @param prefixTID prefix id
27
+ */
28
+ export declare const cleanEmptyObj: (obj: any, values: Record<string, any>[], prefixTID?: any) => any;
29
+ /**
30
+ * column option 기본 셋팅
31
+ * @param columns
32
+ * @param options
33
+ * @param padding
34
+ */
35
+ export declare const setColumnOption: <RecordType = Record<string, any>>(columns: ColumnsType<RecordType>, options?: Record<string, any>, padding?: number) => ColumnsType<RecordType>;