gov-ui-core 0.2.0 → 0.2.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/.storybook/main.ts +12 -8
- package/.storybook/preview.tsx +6 -1
- package/build/.storybook/main.d.ts +3 -0
- package/build/.storybook/preview.d.ts +3 -0
- package/build/6c2c8e3b071704be7083.eot +1 -0
- package/build/7d8da6ffb7adc47d82b7.ttf +1 -0
- package/build/8c91a6260569de8d1acc.woff +1 -0
- package/build/ceddebb81355ab5fc96e.woff2 +1 -0
- package/build/index.js +1 -1
- package/build/index.js.LICENSE.txt +10 -9
- package/build/src/IntlTest.d.ts +5 -0
- package/build/src/components/Button/Button.stories.d.ts +15 -0
- package/build/{components → src/components}/Button/DropdownButton.d.ts +1 -1
- package/build/{components → src/components}/Button/index.d.ts +1 -1
- package/build/src/components/Calendar/Calendar.stories.d.ts +10 -0
- package/build/{components → src/components}/Carousel/index.d.ts +1 -0
- package/build/src/components/Carousel/index.stories.d.ts +11 -0
- package/build/{components → src/components}/Form/Form.d.ts +3 -0
- package/build/src/components/Form/Form.stories.d.ts +10 -0
- package/build/{components → src/components}/Form/Item.d.ts +1 -1
- package/build/{components → src/components}/Form/index.d.ts +3 -3
- package/build/src/components/Icons/Icons.stories.d.ts +11 -0
- package/build/{components → src/components}/Input/Checkbox.d.ts +1 -1
- package/build/src/components/Input/Checkbox.stories.d.ts +10 -0
- package/build/{components → src/components}/Input/ErrorMessage.d.ts +1 -1
- package/build/{components → src/components}/Input/Input.d.ts +1 -1
- package/build/src/components/Input/Input.stories.d.ts +10 -0
- package/build/{components → src/components}/Input/InputNumber.d.ts +1 -1
- package/build/src/components/Input/InputNumber.stories.d.ts +10 -0
- package/build/{components → src/components}/Input/Radio.d.ts +1 -1
- package/build/src/components/Input/Radio.stories.d.ts +10 -0
- package/build/{components → src/components}/Input/Search.d.ts +1 -1
- package/build/src/components/Input/Search.stories.d.ts +10 -0
- package/build/{components → src/components}/Input/Select.d.ts +1 -1
- package/build/src/components/Input/Select.stories.d.ts +10 -0
- package/build/{components → src/components}/Input/TextArea.d.ts +1 -1
- package/build/src/components/Input/TextArea.stories.d.ts +10 -0
- package/build/src/components/Input/index.d.ts +19 -0
- package/build/src/components/Loading/Loading.stories.d.ts +10 -0
- package/build/src/components/Loading/Spinner.stories.d.ts +12 -0
- package/build/src/components/Loading/index.d.ts +2 -0
- package/build/{components → src/components}/Table/AppendTable.d.ts +1 -1
- package/build/src/components/Table/Table.stories.d.ts +12 -0
- package/build/{components → src/components}/Table/TableBase.d.ts +2 -2
- package/build/src/components/Table/TableBase.stories.d.ts +11 -0
- package/build/src/components/Tag/Tag.stories.d.ts +10 -0
- package/build/src/components/Tag/index.d.ts +2 -0
- package/build/src/components/ThemeProvider.d.ts +17 -0
- package/build/{globalStyle.d.ts → src/globalStyle.d.ts} +1 -1
- package/build/src/index.d.ts +1 -0
- package/build/src/modules.d.ts +23 -0
- package/migration-storybook.log +98 -0
- package/package.json +19 -18
- package/tsconfig.json +2 -1
- package/build/components/Input/index.d.ts +0 -19
- package/build/components/ThemeProvider.d.ts +0 -10
- package/build/modules.d.ts +0 -29
- /package/build/{App.d.ts → src/App.d.ts} +0 -0
- /package/build/{index.d.ts → src/App.test.d.ts} +0 -0
- /package/build/{Main.d.ts → src/Main.d.ts} +0 -0
- /package/build/{components → src/components}/Button/SwitchButton.d.ts +0 -0
- /package/build/{components → src/components}/Button/styled.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/CalendarNavigation.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/constants.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/index.d.ts +0 -0
- /package/build/{components → src/components}/Calendar/styled.d.ts +0 -0
- /package/build/{components → src/components}/Carousel/ArrowButton.d.ts +0 -0
- /package/build/{components → src/components}/Carousel/styled.d.ts +0 -0
- /package/build/{components → src/components}/Directory/index.d.ts +0 -0
- /package/build/{components → src/components}/Directory/styled.d.ts +0 -0
- /package/build/{components → src/components}/EmptyBox/index.d.ts +0 -0
- /package/build/{components → src/components}/EmptyBox/styled.d.ts +0 -0
- /package/build/{components → src/components}/Form/Group.d.ts +0 -0
- /package/build/{components → src/components}/Form/styled.d.ts +0 -0
- /package/build/{components → src/components}/Header/ContentHeader.d.ts +0 -0
- /package/build/{components → src/components}/Header/styled.d.ts +0 -0
- /package/build/{components → src/components}/Icons/index.d.ts +0 -0
- /package/build/{components → src/components}/Input/styled.d.ts +0 -0
- /package/build/{components → src/components}/IntlText/index.d.ts +0 -0
- /package/build/{components → src/components}/Loading/OverlayLoading.d.ts +0 -0
- /package/build/{components → src/components}/Loading/Spinner.d.ts +0 -0
- /package/build/{components → src/components}/Loading/styled.d.ts +0 -0
- /package/build/{components → src/components}/Styled/mixins.d.ts +0 -0
- /package/build/{components → src/components}/Styled/variable.d.ts +0 -0
- /package/build/{components → src/components}/Table/AutoTooltip.d.ts +0 -0
- /package/build/{components → src/components}/Table/TableLoading.d.ts +0 -0
- /package/build/{components → src/components}/Table/components/Pagination.d.ts +0 -0
- /package/build/{components → src/components}/Table/components/PaginationItem.d.ts +0 -0
- /package/build/{components → src/components}/Table/index.d.ts +0 -0
- /package/build/{components → src/components}/Table/styled.d.ts +0 -0
- /package/build/{pages → src/pages}/CreateTable.d.ts +0 -0
- /package/build/{pages → src/pages}/FormSample.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample2.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample3.d.ts +0 -0
- /package/build/{pages → src/pages}/Sample4.d.ts +0 -0
- /package/build/{pages → src/pages}/TableSample.d.ts +0 -0
- /package/build/{pages → src/pages}/sampleData.d.ts +0 -0
- /package/build/{reportWebVitals.d.ts → src/reportWebVitals.d.ts} +0 -0
- /package/build/{theme.d.ts → src/theme.d.ts} +0 -0
- /package/build/{utils → src/utils}/customState.d.ts +0 -0
- /package/build/{utils → src/utils}/hookUtils.d.ts +0 -0
- /package/build/{utils → src/utils}/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gov-ui-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.js",
|
|
6
6
|
"types": "./build/modules.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"@testing-library/jest-dom": "^5.17.0",
|
|
17
17
|
"@testing-library/react": "^13.4.0",
|
|
18
18
|
"@testing-library/user-event": "^13.5.0",
|
|
19
|
-
"@types/jest": "^27.5.2",
|
|
20
19
|
"@types/node": "^16.18.90",
|
|
21
20
|
"@types/react": "^18.2.67",
|
|
22
21
|
"@types/react-date-range": "^1.4.9",
|
|
@@ -89,8 +88,8 @@
|
|
|
89
88
|
"types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build",
|
|
90
89
|
"build": "node scripts/build.js && npm run types",
|
|
91
90
|
"test": "node node scripts/test.js",
|
|
92
|
-
"storybook": "
|
|
93
|
-
"build-storybook": "
|
|
91
|
+
"storybook": "storybook dev -p 6006",
|
|
92
|
+
"build-storybook": "storybook build",
|
|
94
93
|
"deploy-storybook": "gh-pages -d storybook-static -r https://github.com/nexr/neb-ui.git"
|
|
95
94
|
},
|
|
96
95
|
"eslintConfig": {
|
|
@@ -118,29 +117,31 @@
|
|
|
118
117
|
},
|
|
119
118
|
"devDependencies": {
|
|
120
119
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
121
|
-
"@chromatic-com/storybook": "^
|
|
122
|
-
"@storybook/addon-actions": "^8.
|
|
123
|
-
"@storybook/addon-essentials": "^8.
|
|
124
|
-
"@storybook/addon-interactions": "^8.
|
|
125
|
-
"@storybook/addon-knobs": "^
|
|
126
|
-
"@storybook/addon-links": "^8.
|
|
127
|
-
"@storybook/addon-onboarding": "^8.
|
|
128
|
-
"@storybook/
|
|
129
|
-
"@storybook/
|
|
130
|
-
"@storybook/react": "^8.
|
|
131
|
-
"@storybook/react
|
|
132
|
-
"@storybook/
|
|
120
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
121
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
122
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
123
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
124
|
+
"@storybook/addon-knobs": "^8.0.1",
|
|
125
|
+
"@storybook/addon-links": "^8.4.7",
|
|
126
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
127
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
128
|
+
"@storybook/blocks": "^8.4.7",
|
|
129
|
+
"@storybook/preset-create-react-app": "^8.4.7",
|
|
130
|
+
"@storybook/react": "^8.4.7",
|
|
131
|
+
"@storybook/react-webpack5": "^8.4.7",
|
|
132
|
+
"@storybook/test": "^8.4.7",
|
|
133
|
+
"@types/jest": "^29.5.14",
|
|
133
134
|
"@types/lodash": "^4.17.0",
|
|
134
135
|
"@types/ramda": "^0.29.11",
|
|
135
136
|
"@types/react-slick": "^0.23.13",
|
|
136
137
|
"@types/slick-carousel": "^1.6.40",
|
|
137
138
|
"@types/styled-components": "^5.1.34",
|
|
138
139
|
"clean-webpack-plugin": "^4.0.0",
|
|
139
|
-
"eslint-plugin-storybook": "^0.
|
|
140
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
140
141
|
"prop-types": "^15.8.1",
|
|
141
142
|
"sass": "^1.72.0",
|
|
142
143
|
"sass-loader": "^16.0.3",
|
|
143
|
-
"storybook": "^8.
|
|
144
|
+
"storybook": "^8.4.7",
|
|
144
145
|
"ts-loader": "^9.5.1",
|
|
145
146
|
"tscpaths": "^0.0.9",
|
|
146
147
|
"url-loader": "^4.1.1",
|
package/tsconfig.json
CHANGED
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
"@/*": ["./src/*"]
|
|
27
27
|
},
|
|
28
28
|
"typeRoots": ["./@types", "../node_modules/@types"],
|
|
29
|
+
"types": ["@types/jest"],
|
|
29
30
|
"downlevelIteration": true
|
|
30
31
|
},
|
|
31
|
-
"include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts"],
|
|
32
|
+
"include": ["@types", "src/modules.ts", "src/index.tsx", "src/react-app-env.d.ts", ".storybook/*", "src/**/*.tsx"],
|
|
32
33
|
"exclude": ["node_modules"]
|
|
33
34
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import InputBase from './Input';
|
|
2
|
-
import InputNumber from './InputNumber';
|
|
3
|
-
import Search from './Search';
|
|
4
|
-
import Select from './Select';
|
|
5
|
-
import Checkbox from './Checkbox';
|
|
6
|
-
import Radio from './Radio';
|
|
7
|
-
import TextArea from './TextArea';
|
|
8
|
-
type InputType = typeof InputBase;
|
|
9
|
-
interface InputInterface extends InputType {
|
|
10
|
-
Checkbox: typeof Checkbox;
|
|
11
|
-
Number: typeof InputNumber;
|
|
12
|
-
Radio: typeof Radio;
|
|
13
|
-
Search: typeof Search;
|
|
14
|
-
Select: typeof Select;
|
|
15
|
-
TextArea: typeof TextArea;
|
|
16
|
-
}
|
|
17
|
-
declare const Input: InputInterface;
|
|
18
|
-
export default Input;
|
|
19
|
-
export { Checkbox, Input, InputNumber, Radio, Search, Select, TextArea };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ThemeType } from '../theme';
|
|
3
|
-
interface IThemeProviderProps {
|
|
4
|
-
theme?: ThemeType;
|
|
5
|
-
primary?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
language?: 'en' | 'ko';
|
|
8
|
-
}
|
|
9
|
-
declare const ThemeProvider: React.FC<IThemeProviderProps>;
|
|
10
|
-
export default ThemeProvider;
|
package/build/modules.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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 'antd/lib/table/style/index.css';
|
|
23
|
-
import 'antd/lib/dropdown/style/index.css';
|
|
24
|
-
import 'antd/lib/style/index.css';
|
|
25
|
-
import 'antd/lib/switch/style/index.css';
|
|
26
|
-
import 'antd/lib/spin/style/index.css';
|
|
27
|
-
import 'antd/lib/tooltip/style/index.css';
|
|
28
|
-
export { AppendTable, Button, Calendar, Carousel, ContentHeader, Directory, DropdownButton, EmptyBox, Form, Icons, Input, ErrorMessage, OverlayLoading, SwitchButton, Table, TableBase, ThemeProvider, AutoTooltip, IntlText, defaultTheme, };
|
|
29
|
-
export type { Methods, };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|