@groupeactual/ui-kit 0.1.1
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/DesignSystemProvider.d.ts +6 -0
- package/dist/cjs/from-scratch-components/Tag/Tag.d.ts +8 -0
- package/dist/cjs/from-scratch-components/Tag/index.d.ts +1 -0
- package/dist/cjs/from-scratch-components/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +49641 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/material-ui-components/Heading/Heading.d.ts +7 -0
- package/dist/cjs/material-ui-components/Heading/index.d.ts +1 -0
- package/dist/cjs/material-ui-components/TextField/TextField.d.ts +4 -0
- package/dist/cjs/material-ui-components/TextField/index.d.ts +1 -0
- package/dist/cjs/material-ui-components/index.d.ts +2 -0
- package/dist/cjs/mui-base-components/Button/Button.d.ts +6 -0
- package/dist/cjs/mui-base-components/Button/index.d.ts +1 -0
- package/dist/cjs/mui-base-components/index.d.ts +1 -0
- package/dist/esm/DesignSystemProvider.d.ts +6 -0
- package/dist/esm/from-scratch-components/Tag/Tag.d.ts +8 -0
- package/dist/esm/from-scratch-components/Tag/index.d.ts +1 -0
- package/dist/esm/from-scratch-components/index.d.ts +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +49611 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/material-ui-components/Heading/Heading.d.ts +7 -0
- package/dist/esm/material-ui-components/Heading/index.d.ts +1 -0
- package/dist/esm/material-ui-components/TextField/TextField.d.ts +4 -0
- package/dist/esm/material-ui-components/TextField/index.d.ts +1 -0
- package/dist/esm/material-ui-components/index.d.ts +2 -0
- package/dist/esm/mui-base-components/Button/Button.d.ts +6 -0
- package/dist/esm/mui-base-components/Button/index.d.ts +1 -0
- package/dist/esm/mui-base-components/index.d.ts +1 -0
- package/dist/index.d.ts +29 -0
- package/package.json +58 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { TypographyProps } from "@mui/material";
|
|
3
|
+
interface Props extends TypographyProps {
|
|
4
|
+
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
|
+
}
|
|
6
|
+
declare const ActHeading: ({ children, ...props }: PropsWithChildren<Props>) => JSX.Element;
|
|
7
|
+
export default ActHeading;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Heading";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./TextField";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Button";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ActButton } from "./Button";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
import React, { PropsWithChildren } from 'react';
|
|
4
|
+
import { TypographyProps } from '@mui/material';
|
|
5
|
+
|
|
6
|
+
interface ActTagProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
color?: 'red' | 'green' | 'blue';
|
|
9
|
+
}
|
|
10
|
+
declare const ActTag: (props: ActTagProps) => JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare const ActTextField: (props: TextFieldProps) => JSX.Element;
|
|
13
|
+
|
|
14
|
+
interface Props$1 extends TypographyProps {
|
|
15
|
+
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
16
|
+
}
|
|
17
|
+
declare const ActHeading: ({ children, ...props }: PropsWithChildren<Props$1>) => JSX.Element;
|
|
18
|
+
|
|
19
|
+
interface ActButtonProps {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const ActButton: ({ children, ...props }: ActButtonProps) => JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface Props {
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
declare const DesignSystemProvider: ({ children, name: themeName }: PropsWithChildren<Props>) => JSX.Element;
|
|
28
|
+
|
|
29
|
+
export { ActButton, ActHeading, ActTag, ActTextField, DesignSystemProvider };
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@groupeactual/ui-kit",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A simple template for a custom React component library",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "rollup -c",
|
|
7
|
+
"build:watch": "rollup -c -w",
|
|
8
|
+
"dev": "npm run build:watch"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@babel/core": "^7.18.10",
|
|
12
|
+
"@babel/preset-env": "^7.18.10",
|
|
13
|
+
"@babel/preset-react": "^7.18.6",
|
|
14
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
15
|
+
"@mdx-js/react": "^2.1.2",
|
|
16
|
+
"@rollup/plugin-commonjs": "^21.1.0",
|
|
17
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
18
|
+
"@rollup/plugin-typescript": "^8.3.4",
|
|
19
|
+
"@types/react": "^18.0.15",
|
|
20
|
+
"babel-loader": "^8.2.5",
|
|
21
|
+
"clsx": "^1.2.1",
|
|
22
|
+
"css-loader": "^6.7.1",
|
|
23
|
+
"html-webpack-plugin": "^5.5.0",
|
|
24
|
+
"identity-obj-proxy": "^3.0.0",
|
|
25
|
+
"rollup": "^2.77.2",
|
|
26
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
27
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
28
|
+
"sass": "^1.54.1",
|
|
29
|
+
"sass-loader": "^12.6.0",
|
|
30
|
+
"style-loader": "^3.3.1",
|
|
31
|
+
"typescript": "^4.7.4"
|
|
32
|
+
},
|
|
33
|
+
"main": "dist/cjs/index.js",
|
|
34
|
+
"module": "dist/esm/index.js",
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"types": "dist/index.d.ts",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@groupeactual/design-tokens": "^0.1.0",
|
|
41
|
+
"@emotion/is-prop-valid": "^1.2.0",
|
|
42
|
+
"@emotion/react": "^11.10.0",
|
|
43
|
+
"@emotion/styled": "^11.10.0",
|
|
44
|
+
"@mui/base": "^5.0.0-alpha.92",
|
|
45
|
+
"@mui/material": "^5.10.0",
|
|
46
|
+
"@mui/system": "^5.9.3",
|
|
47
|
+
"@types/styled-components": "^5.1.25",
|
|
48
|
+
"framer-motion": "^6.5.1",
|
|
49
|
+
"postcss": "^8.4.14",
|
|
50
|
+
"styled-components": "^5.3.5",
|
|
51
|
+
"tslib": "^2.4.0",
|
|
52
|
+
"webpack": "^5.74.0"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0"
|
|
57
|
+
}
|
|
58
|
+
}
|