@up42/up-components 0.0.1 → 0.0.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/dist/cjs/index.js +38 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/{index.d.ts → Button.d.ts} +2 -1
- package/dist/cjs/types/components/Button/Button.stories.d.ts +2 -1
- package/dist/cjs/types/components/Button/Button.test.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/global/overrides/index.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +38 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/{index.d.ts → Button.d.ts} +2 -1
- package/dist/esm/types/components/Button/Button.stories.d.ts +2 -1
- package/dist/esm/types/components/Button/Button.test.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/global/overrides/index.d.ts +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +8 -4
- package/package.json +14 -3
|
@@ -3,4 +3,5 @@ import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
|
3
3
|
export declare type ButtonProps = {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
} & Omit<MUIButtonProps, 'classes' | 'disabledElevation' | 'disableFocusRipple' | 'tabIndex' | 'action' | 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'foucsRipple' | 'focusVisibleClassName' | 'LinkComponent' | 'onFocusVisible' | 'TouchRippleProps'>;
|
|
6
|
-
|
|
6
|
+
declare const Button: ({ color, variant, size, loading, children, ...props }: ButtonProps) => JSX.Element;
|
|
7
|
+
export default Button;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/react';
|
|
2
|
-
import { ButtonProps } from '
|
|
2
|
+
import { ButtonProps } from './Button';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: Story<ButtonProps>;
|
|
6
6
|
export declare const Color: Story;
|
|
7
7
|
export declare const Variant: Story;
|
|
8
8
|
export declare const Size: Story;
|
|
9
|
+
export declare const Loading: Story<ButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Button } from './Button';
|
|
1
|
+
export { default as Button } from './Button/Button';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './avatar';
|
|
2
|
-
export * from '../../components/Button/overrides';
|
|
3
2
|
export * from './container';
|
|
4
3
|
export * from './menuItem';
|
|
5
4
|
export * from './tab';
|
|
@@ -11,3 +10,4 @@ export * from './form/input';
|
|
|
11
10
|
export * from './form/label';
|
|
12
11
|
export * from './form/radio';
|
|
13
12
|
export * from './form/switch';
|
|
13
|
+
export * from '../../components/Button/overrides';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
|
|
3
|
+
import * as _mui_material from '@mui/material';
|
|
4
4
|
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
5
5
|
|
|
6
|
+
declare const UpComponentsProvider: (props: ThemeProviderProps) => JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare const theme: _mui_material.Theme;
|
|
9
|
+
|
|
6
10
|
declare type ButtonProps = {
|
|
7
11
|
loading?: boolean;
|
|
8
12
|
} & Omit<ButtonProps$1, 'classes' | 'disabledElevation' | 'disableFocusRipple' | 'tabIndex' | 'action' | 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'foucsRipple' | 'focusVisibleClassName' | 'LinkComponent' | 'onFocusVisible' | 'TouchRippleProps'>;
|
|
9
|
-
declare
|
|
13
|
+
declare const Button: ({ color, variant, size, loading, children, ...props }: ButtonProps) => JSX.Element;
|
|
10
14
|
|
|
11
|
-
export { Button };
|
|
15
|
+
export { Button, UpComponentsProvider as default, theme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -15,13 +15,16 @@
|
|
|
15
15
|
"build:watch": "rollup -c -w",
|
|
16
16
|
"test": "jest --watch",
|
|
17
17
|
"storybook": "start-storybook -p 6006",
|
|
18
|
-
"storybook:build": "build-storybook"
|
|
18
|
+
"storybook:build": "build-storybook",
|
|
19
|
+
"lint": "eslint src/. --fix",
|
|
20
|
+
"prepare": "husky install"
|
|
19
21
|
},
|
|
20
22
|
"devDependencies": {
|
|
21
23
|
"@babel/core": "^7.16.10",
|
|
22
24
|
"@babel/preset-env": "^7.16.10",
|
|
23
25
|
"@babel/preset-react": "^7.16.7",
|
|
24
26
|
"@babel/preset-typescript": "^7.16.7",
|
|
27
|
+
"@emotion/jest": "^11.7.1",
|
|
25
28
|
"@emotion/react": "^11.7.1",
|
|
26
29
|
"@emotion/styled": "^11.6.0",
|
|
27
30
|
"@mui/icons-material": "^5.3.0",
|
|
@@ -34,7 +37,6 @@
|
|
|
34
37
|
"@storybook/addon-actions": "^6.4.13",
|
|
35
38
|
"@storybook/addon-essentials": "^6.4.13",
|
|
36
39
|
"@storybook/addon-links": "^6.4.13",
|
|
37
|
-
"@storybook/addon-storyshots": "^6.4.13",
|
|
38
40
|
"@storybook/builder-webpack5": "^6.4.13",
|
|
39
41
|
"@storybook/manager-webpack5": "^6.4.13",
|
|
40
42
|
"@storybook/react": "^6.4.13",
|
|
@@ -48,9 +50,15 @@
|
|
|
48
50
|
"babel-loader": "^8.2.3",
|
|
49
51
|
"eslint": "^8.7.0",
|
|
50
52
|
"eslint-config-prettier": "^8.3.0",
|
|
53
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
54
|
+
"eslint-plugin-import": "^2.25.4",
|
|
55
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
51
56
|
"eslint-plugin-prettier": "^4.0.0",
|
|
52
57
|
"eslint-plugin-react": "^7.28.0",
|
|
58
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
59
|
+
"husky": "^7.0.4",
|
|
53
60
|
"jest": "^27.4.7",
|
|
61
|
+
"lint-staged": "^12.3.1",
|
|
54
62
|
"prettier": "^2.5.1",
|
|
55
63
|
"react": "^17.0.2",
|
|
56
64
|
"rollup": "^2.64.0",
|
|
@@ -62,5 +70,8 @@
|
|
|
62
70
|
},
|
|
63
71
|
"peerDependencies": {
|
|
64
72
|
"react": "^17.0.2"
|
|
73
|
+
},
|
|
74
|
+
"lint-staged": {
|
|
75
|
+
"*.{js,tsx,ts}": "eslint --cache --fix"
|
|
65
76
|
}
|
|
66
77
|
}
|