@trafilea/afrodita-components 7.1.1 → 7.1.3

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.
@@ -20,9 +20,7 @@ declare type Theme = {
20
20
  fontWeights: number[];
21
21
  lineHeights: number[];
22
22
  mediaQueries: ThemeBreakpoints;
23
- radius: {
24
- regular: string;
25
- };
23
+ radius: ThemeRadius;
26
24
  zIndex: {
27
25
  modal: number;
28
26
  overlay: number;
@@ -35,11 +33,19 @@ declare type Theme = {
35
33
  label: {
36
34
  member: string;
37
35
  };
36
+ space?: ThemeSpacing;
37
+ shadow?: ThemeElevation;
38
38
  };
39
39
  declare type ThemeBreakpoints = {
40
40
  mobile: number;
41
41
  tablet: number;
42
42
  desktop: number;
43
+ xs: string;
44
+ sm: string;
45
+ md: string;
46
+ lg: string;
47
+ xl: string;
48
+ '2xl': string;
43
49
  };
44
50
  declare type ThemeBasicPallete = {
45
51
  color: string;
@@ -869,15 +875,32 @@ declare type ThemeComponent = {
869
875
  };
870
876
  };
871
877
  };
878
+ declare type SizeConfig = {
879
+ xxs?: string;
880
+ xs: string;
881
+ sm: string;
882
+ md: string;
883
+ lg: string;
884
+ xl: string;
885
+ '2xl': string;
886
+ '3xl': string;
887
+ '4xl': string;
888
+ '5xl': string;
889
+ '6xl': string;
890
+ '7xl'?: string;
891
+ };
872
892
  declare type ThemeTypography = {
873
893
  config: {
874
894
  weight: {
875
895
  heavy: number;
876
896
  bold: number;
877
897
  demi: number;
898
+ medium?: number;
878
899
  regular: number;
879
900
  };
880
901
  };
902
+ size?: SizeConfig;
903
+ lineHeight?: Omit<SizeConfig, 'xxs' | '7xl'>;
881
904
  variants: Record<string, CSSProperties>;
882
905
  };
883
906
  declare type ThemeFonts = {
@@ -954,6 +977,41 @@ declare type ThemeAssets = {
954
977
  };
955
978
  };
956
979
  [key: string]: any;
980
+ };
981
+ declare type ThemeSpacing = {
982
+ 0?: string;
983
+ 25?: string;
984
+ 50: string;
985
+ 75: string;
986
+ 100: string;
987
+ 150: string;
988
+ 200: string;
989
+ 250: string;
990
+ 300: string;
991
+ 400: string;
992
+ 500: string;
993
+ 600: string;
994
+ 800?: string;
995
+ 1000?: string;
996
+ 1200?: string;
997
+ 1600?: string;
998
+ 2000?: string;
999
+ };
1000
+ declare type ThemeRadius = {
1001
+ regular: string;
1002
+ none?: string;
1003
+ md?: string;
1004
+ lg?: string;
1005
+ xl?: string;
1006
+ full?: string;
1007
+ };
1008
+ declare type ThemeElevation = {
1009
+ 100: string;
1010
+ 200: string;
1011
+ 300: string;
1012
+ 400: string;
1013
+ 500: string;
1014
+ 600: string;
957
1015
  };
958
1016
 
959
1017
  declare const truekind: Theme;
@@ -67,6 +67,12 @@ var DEFAULT_BREAKPOINTS = {
67
67
  mobile: 640,
68
68
  tablet: 1024,
69
69
  desktop: 1280,
70
+ xs: '480px',
71
+ sm: '640px',
72
+ md: '768px',
73
+ lg: '1024px',
74
+ xl: '1280px',
75
+ '2xl': '1536px',
70
76
  };
71
77
 
72
78
  var truekind = {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "7.1.1",
6
+ "version": "7.1.3",
7
7
  "private": false,
8
8
  "main": "build/lib/index.js",
9
9
  "style": "build/es/index.css",