@groupeactual/ui-kit 0.1.9 → 0.2.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 +1 -1
- package/dist/cjs/components/Accordion/Accordion.d.ts +9 -0
- package/dist/cjs/components/Accordion/index.d.ts +1 -0
- package/dist/cjs/components/Button/Button.d.ts +5 -0
- package/{src/material-ui-components/Button/index.ts → dist/cjs/components/Button/index.d.ts} +0 -0
- package/dist/cjs/components/Form/Checkbox/Checkbox.d.ts +12 -0
- package/{src/material-ui-components/Form/Checkbox/index.ts → dist/cjs/components/Form/Checkbox/index.d.ts} +0 -0
- package/dist/cjs/components/Form/TextField/TextField.d.ts +15 -0
- package/dist/cjs/components/Form/TextField/index.d.ts +1 -0
- package/dist/cjs/components/Heading/Heading.d.ts +8 -0
- package/{src/material-ui-components/Heading/index.ts → dist/cjs/components/Heading/index.d.ts} +0 -0
- package/dist/cjs/components/Icon/IconProvider.d.ts +10 -0
- package/dist/cjs/components/Icon/index.d.ts +1 -0
- package/dist/cjs/components/Text/Text.d.ts +8 -0
- package/{src/material-ui-components/Text/index.ts → dist/cjs/components/Text/index.d.ts} +0 -0
- package/dist/cjs/components/index.d.ts +7 -0
- package/dist/cjs/index.d.ts +1 -3
- package/dist/cjs/index.js +1174 -110
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/DesignSystemProvider.d.ts +1 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +9 -0
- package/dist/esm/components/Accordion/index.d.ts +1 -0
- package/dist/esm/components/Button/Button.d.ts +5 -0
- package/dist/esm/components/Button/index.d.ts +1 -0
- package/dist/esm/components/Form/Checkbox/Checkbox.d.ts +12 -0
- package/dist/esm/components/Form/Checkbox/index.d.ts +1 -0
- package/dist/esm/components/Form/TextField/TextField.d.ts +15 -0
- package/dist/esm/components/Form/TextField/index.d.ts +1 -0
- package/dist/esm/components/Heading/Heading.d.ts +8 -0
- package/dist/esm/components/Heading/index.d.ts +1 -0
- package/dist/esm/components/Icon/IconProvider.d.ts +10 -0
- package/dist/esm/components/Icon/index.d.ts +1 -0
- package/dist/esm/components/Text/Text.d.ts +8 -0
- package/dist/esm/components/Text/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts +7 -0
- package/dist/esm/index.d.ts +1 -3
- package/dist/esm/index.js +1172 -109
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +30 -17
- package/package.json +5 -1
- package/src/DesignSystemProvider.tsx +1 -1
- package/src/components/Accordion/Accordion.tsx +40 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/{material-ui-components → components}/Button/Button.tsx +2 -1
- package/src/components/Button/index.ts +1 -0
- package/src/{material-ui-components → components}/Form/Checkbox/Checkbox.tsx +28 -15
- package/src/components/Form/Checkbox/index.ts +1 -0
- package/src/{material-ui-components/Form/TextInput/TextInput.tsx → components/Form/TextField/TextField.tsx} +7 -7
- package/src/components/Form/TextField/index.ts +1 -0
- package/src/{material-ui-components → components}/Heading/Heading.tsx +2 -1
- package/src/components/Heading/index.ts +1 -0
- package/src/components/Icon/IconProvider.tsx +123 -0
- package/src/components/Icon/index.ts +1 -0
- package/src/{material-ui-components → components}/Text/Text.tsx +0 -0
- package/src/components/Text/index.ts +1 -0
- package/src/{material-ui-components → components}/index.ts +3 -1
- package/src/index.ts +1 -3
- package/src/from-scratch-components/Tag/Tag.scss +0 -23
- package/src/from-scratch-components/Tag/Tag.tsx +0 -19
- package/src/from-scratch-components/Tag/index.ts +0 -1
- package/src/from-scratch-components/index.ts +0 -1
- package/src/material-ui-components/Form/TextInput/index.ts +0 -1
- package/src/mui-base-components/index.ts +0 -1
|
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
export interface DesignSystemContextValues {
|
|
3
3
|
isDarkTheme: boolean;
|
|
4
4
|
themeName: 'default' | 'lucie';
|
|
5
|
-
toggleDarkTheme()
|
|
5
|
+
toggleDarkTheme: () => void;
|
|
6
6
|
}
|
|
7
7
|
export declare const DesignSystemContext: import("react").Context<DesignSystemContextValues>;
|
|
8
8
|
interface Props {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
icon: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
summaryHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const ActAccordion: ({ icon, title, content, summaryHeight }: Props) => JSX.Element;
|
|
9
|
+
export default ActAccordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Accordion';
|
package/{src/material-ui-components/Button/index.ts → dist/cjs/components/Button/index.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
|
+
interface Props {
|
|
4
|
+
error?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
onChange: (field: string, value: any, shouldValidate?: boolean | undefined) => void;
|
|
9
|
+
sx: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
declare const Checkbox: ({ name, value, error, label, onChange, sx }: Props) => JSX.Element;
|
|
12
|
+
export default Checkbox;
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
interface Props {
|
|
4
|
+
error?: string;
|
|
5
|
+
onBlur: FocusEventHandler<unknown>;
|
|
6
|
+
onChange: ChangeEventHandler<unknown>;
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
name: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
endAdornment?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const TextField: ({ name, value, error, onBlur, onChange, label, disabled, endAdornment, placeholder, ...props }: Omit<TextFieldProps, 'error'> & Props) => JSX.Element;
|
|
15
|
+
export default TextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TextField';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
interface Props extends Omit<TypographyProps, 'paragraph'> {
|
|
4
|
+
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2';
|
|
5
|
+
component?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const ActHeading: (props: Props) => JSX.Element;
|
|
8
|
+
export default ActHeading;
|
package/{src/material-ui-components/Heading/index.ts → dist/cjs/components/Heading/index.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
interface Props {
|
|
4
|
+
variant?: 'roundedIcon' | 'smallRoundedIcon';
|
|
5
|
+
icon: IconProp;
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: 'xxs' | 'xs' | 'sm' | 'm' | 'lg' | 'xl' | 'xxl';
|
|
8
|
+
}
|
|
9
|
+
declare const IconProvider: ({ variant, icon, color, size }: Props) => JSX.Element;
|
|
10
|
+
export default IconProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './IconProvider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from '@mui/material';
|
|
3
|
+
interface Props extends TypographyProps {
|
|
4
|
+
variant?: 'body1' | 'body2' | 'caption';
|
|
5
|
+
component?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const ActText: (props: Props) => JSX.Element;
|
|
8
|
+
export default ActText;
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as ActText } from './Text';
|
|
2
|
+
export { default as ActHeading } from './Heading';
|
|
3
|
+
export { default as ActButton } from './Button';
|
|
4
|
+
export { default as TextField } from './Form/TextField';
|
|
5
|
+
export { default as ActCheckbox } from './Form/Checkbox';
|
|
6
|
+
export { default as ActAccordion } from './Accordion';
|
|
7
|
+
export { default as IconProvider } from './Icon/IconProvider';
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './material-ui-components';
|
|
3
|
-
export * from './mui-base-components';
|
|
1
|
+
export * from './components';
|
|
4
2
|
export { default as DesignSystemProvider, DesignSystemContext, type DesignSystemContextValues } from './DesignSystemProvider';
|