@groupeactual/ui-kit 0.2.7 → 0.2.9

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.
@@ -1,12 +1,13 @@
1
1
  import { PropsWithChildren } from 'react';
2
+ declare type Theme = 'Default' | 'Ep';
2
3
  export interface DesignSystemContextValues {
3
4
  isDarkTheme: boolean;
4
- themeName: string;
5
+ themeName: Theme;
5
6
  toggleDarkTheme: () => void;
6
7
  }
7
8
  export declare const DesignSystemContext: import("react").Context<DesignSystemContextValues>;
8
9
  interface Props {
9
- name?: DesignSystemContextValues['themeName'];
10
+ name?: Theme;
10
11
  }
11
12
  declare const DesignSystemProvider: ({ children, name }: PropsWithChildren<Props>) => JSX.Element;
12
13
  export default DesignSystemProvider;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { TypographyProps } from '@mui/material/Typography';
3
3
  interface Props extends Omit<TypographyProps, 'paragraph'> {
4
- variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2';
4
+ variant?: 'h1' | 'h2' | 'h3' | 'h4';
5
5
  component?: string;
6
6
  }
7
- declare const ActHeading: (props: Props) => JSX.Element;
8
- export default ActHeading;
7
+ declare const Heading: (props: Props) => JSX.Element;
8
+ export default Heading;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { TypographyProps } from '@mui/material';
3
+ interface Props extends Omit<TypographyProps, 'variant'> {
4
+ variant?: 'link1' | 'link2';
5
+ component?: string;
6
+ }
7
+ declare const Link: (props: Props) => JSX.Element;
8
+ export default Link;
@@ -0,0 +1 @@
1
+ export { default } from './Link';
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { TypographyProps } from '@mui/material';
3
- interface Props extends TypographyProps {
4
- variant?: 'body1' | 'body2' | 'caption';
5
- component?: string;
3
+ interface Props extends Omit<TypographyProps, 'variant'> {
4
+ variant?: 'big_number' | 'body1_regular' | 'body1_medium' | 'body1_bold' | 'body2_regular' | 'body2_medium' | 'body2_bold' | 'caption' | 'button_notif';
5
+ component?: any;
6
6
  }
7
- declare const ActText: (props: Props) => JSX.Element;
8
- export default ActText;
7
+ declare const Text: (props: Props) => JSX.Element;
8
+ export default Text;
@@ -1,7 +1,8 @@
1
- export { default as ActText } from './Text';
2
- export { default as ActHeading } from './Heading';
3
- export { default as ActButton } from './Button';
1
+ export { default as Text } from './Text';
2
+ export { default as Link } from './Link';
3
+ export { default as Heading } from './Heading';
4
+ export { default as Button } from './Button';
4
5
  export { default as TextField } from './Form/TextField';
5
- export { default as ActCheckbox } from './Form/Checkbox';
6
- export { default as ActAccordion } from './Accordion';
6
+ export { default as Checkbox } from './Form/Checkbox';
7
+ export { default as Accordion } from './Accordion';
7
8
  export { default as IconProvider } from './Icon/IconProvider';