@balena/ui-shared-components 0.0.4 → 0.1.0

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/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export { theme } from './theme';
2
- export type { Theme } from './theme.d';
3
2
  export type { AnimatedTextProps } from './components/AnimatedText';
4
3
  export { AnimatedText } from './components/AnimatedText';
5
4
  export type { ButtonWithTrackingProps } from './components/ButtonWithTracking';
@@ -21,3 +20,5 @@ export { Map } from './components/Map';
21
20
  export { Markdown } from './components/Markdown';
22
21
  export { Truncate } from './components/Truncate';
23
22
  export { AnalyticsContextProvider, useAnalyticsContext, } from './contexts/AnalyticsContext';
23
+ export * as Material from '@mui/material';
24
+ export * as IconsMaterial from '@mui/icons-material';
package/dist/index.js CHANGED
@@ -12,3 +12,5 @@ export { Map } from './components/Map';
12
12
  export { Markdown } from './components/Markdown';
13
13
  export { Truncate } from './components/Truncate';
14
14
  export { AnalyticsContextProvider, useAnalyticsContext, } from './contexts/AnalyticsContext';
15
+ export * as Material from '@mui/material';
16
+ export * as IconsMaterial from '@mui/icons-material';
package/dist/theme.d.ts CHANGED
@@ -1,2 +1,137 @@
1
- import { Theme } from './theme.d';
2
- export declare const theme: Theme;
1
+ import { PaletteColor, PaletteColorOptions, TypographyStyle } from '@mui/material';
2
+ import { TypographyStyleOptions } from '@mui/material/styles/createTypography';
3
+ type CustomPaletteColor = PaletteColor & {
4
+ xlight: string;
5
+ };
6
+ type CustomPaletteColorOptions = PaletteColorOptions & {
7
+ xlight: string;
8
+ };
9
+ declare module '@mui/material/styles' {
10
+ interface Palette {
11
+ customBlue: CustomPaletteColor;
12
+ customYellow: CustomPaletteColor;
13
+ customGreen: CustomPaletteColor;
14
+ customPurple: CustomPaletteColor;
15
+ customGrey: CustomPaletteColor;
16
+ }
17
+ interface PaletteOptions {
18
+ customBlue: CustomPaletteColorOptions;
19
+ customYellow: CustomPaletteColorOptions;
20
+ customGreen: CustomPaletteColorOptions;
21
+ customPurple: CustomPaletteColorOptions;
22
+ customGrey: CustomPaletteColorOptions;
23
+ }
24
+ interface PaletteColor {
25
+ xlight?: string;
26
+ light: string;
27
+ main: string;
28
+ dark: string;
29
+ contrastText: string;
30
+ }
31
+ interface TypographyVariants {
32
+ bodyLarge: TypographyStyle;
33
+ smallText: TypographyStyle;
34
+ link: TypographyStyle;
35
+ }
36
+ interface TypographyVariantsOptions {
37
+ bodyLarge: TypographyStyleOptions | undefined;
38
+ smallText: TypographyStyleOptions | undefined;
39
+ link: TypographyStyleOptions | undefined;
40
+ }
41
+ interface TypeText {
42
+ primary: string;
43
+ secondary: string;
44
+ tertiary: string;
45
+ disabled: string;
46
+ }
47
+ }
48
+ declare module '@mui/material/Typography' {
49
+ interface TypographyPropsVariantOverrides {
50
+ bodyLarge: true;
51
+ smallText: true;
52
+ link: true;
53
+ }
54
+ }
55
+ declare module '@mui/material/Button' {
56
+ interface ButtonPropsColorOverrides {
57
+ customBlue: true;
58
+ customYellow: true;
59
+ customGreen: true;
60
+ customPurple: true;
61
+ customGrey: true;
62
+ }
63
+ }
64
+ declare module '@mui/material/ButtonGroup' {
65
+ interface ButtonGroupPropsColorOverrides {
66
+ customBlue: true;
67
+ customYellow: true;
68
+ customGreen: true;
69
+ customPurple: true;
70
+ customGrey: true;
71
+ }
72
+ }
73
+ declare module '@mui/material/Badge' {
74
+ interface BadgePropsColorOverrides {
75
+ customBlue: true;
76
+ customYellow: true;
77
+ customGreen: true;
78
+ customPurple: true;
79
+ customGrey: true;
80
+ }
81
+ }
82
+ declare module '@mui/material/Chip' {
83
+ interface ChipPropsColorOverrides {
84
+ customBlue: true;
85
+ customYellow: true;
86
+ customGreen: true;
87
+ customPurple: true;
88
+ customGrey: true;
89
+ }
90
+ }
91
+ declare module '@mui/material/Icon' {
92
+ interface IconPropsColorOverrides {
93
+ customBlue: true;
94
+ customYellow: true;
95
+ customGreen: true;
96
+ customPurple: true;
97
+ customGrey: true;
98
+ }
99
+ }
100
+ declare module '@mui/material/IconButton' {
101
+ interface IconButtonPropsColorOverrides {
102
+ customBlue: true;
103
+ customYellow: true;
104
+ customGreen: true;
105
+ customPurple: true;
106
+ customGrey: true;
107
+ }
108
+ }
109
+ declare module '@mui/material/Tab' {
110
+ interface TabPropsColorOverrides {
111
+ customBlue: true;
112
+ customYellow: true;
113
+ customGreen: true;
114
+ customPurple: true;
115
+ customGrey: true;
116
+ }
117
+ }
118
+ declare module '@mui/material/TextField' {
119
+ interface TextFieldPropsColorOverrides {
120
+ customBlue: true;
121
+ customYellow: true;
122
+ customGreen: true;
123
+ customPurple: true;
124
+ customGrey: true;
125
+ }
126
+ }
127
+ declare module '@mui/material/SvgIcon' {
128
+ interface SvgIconPropsColorOverrides {
129
+ customBlue: true;
130
+ customYellow: true;
131
+ customGreen: true;
132
+ customPurple: true;
133
+ customGrey: true;
134
+ }
135
+ }
136
+ export declare const theme: import("@mui/material").Theme;
137
+ export {};
package/dist/theme.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createTheme } from '@mui/material/styles';
1
+ import { createTheme, } from '@mui/material';
2
2
  export var theme = createTheme({
3
3
  typography: {
4
4
  fontFamily: '"Source Sans Pro", Helvetica, sans-serif',
@@ -77,6 +77,7 @@ export var theme = createTheme({
77
77
  dark: '#2A506F',
78
78
  },
79
79
  customYellow: {
80
+ xlight: '#F8DD88',
80
81
  main: '#FFC100',
81
82
  contrastText: '#FFFFFF',
82
83
  },
@@ -1,5 +1,4 @@
1
1
  export { theme } from './theme';
2
- export type { Theme } from './theme.d';
3
2
  export type { AnimatedTextProps } from './components/AnimatedText';
4
3
  export { AnimatedText } from './components/AnimatedText';
5
4
  export type { ButtonWithTrackingProps } from './components/ButtonWithTracking';
@@ -21,3 +20,5 @@ export { Map } from './components/Map';
21
20
  export { Markdown } from './components/Markdown';
22
21
  export { Truncate } from './components/Truncate';
23
22
  export { AnalyticsContextProvider, useAnalyticsContext, } from './contexts/AnalyticsContext';
23
+ export * as Material from '@mui/material';
24
+ export * as IconsMaterial from '@mui/icons-material';
@@ -12,3 +12,7 @@ export { Map } from './components/Map';
12
12
  export { Markdown } from './components/Markdown';
13
13
  export { Truncate } from './components/Truncate';
14
14
  export { AnalyticsContextProvider, useAnalyticsContext, } from './contexts/AnalyticsContext';
15
+ import * as Material_1 from '@mui/material';
16
+ export { Material_1 as Material };
17
+ import * as IconsMaterial_1 from '@mui/icons-material';
18
+ export { IconsMaterial_1 as IconsMaterial };
@@ -1,2 +1,137 @@
1
- import { Theme } from './theme.d';
2
- export declare const theme: Theme;
1
+ import { PaletteColor, PaletteColorOptions, TypographyStyle } from '@mui/material';
2
+ import { TypographyStyleOptions } from '@mui/material/styles/createTypography';
3
+ type CustomPaletteColor = PaletteColor & {
4
+ xlight: string;
5
+ };
6
+ type CustomPaletteColorOptions = PaletteColorOptions & {
7
+ xlight: string;
8
+ };
9
+ declare module '@mui/material/styles' {
10
+ interface Palette {
11
+ customBlue: CustomPaletteColor;
12
+ customYellow: CustomPaletteColor;
13
+ customGreen: CustomPaletteColor;
14
+ customPurple: CustomPaletteColor;
15
+ customGrey: CustomPaletteColor;
16
+ }
17
+ interface PaletteOptions {
18
+ customBlue: CustomPaletteColorOptions;
19
+ customYellow: CustomPaletteColorOptions;
20
+ customGreen: CustomPaletteColorOptions;
21
+ customPurple: CustomPaletteColorOptions;
22
+ customGrey: CustomPaletteColorOptions;
23
+ }
24
+ interface PaletteColor {
25
+ xlight?: string;
26
+ light: string;
27
+ main: string;
28
+ dark: string;
29
+ contrastText: string;
30
+ }
31
+ interface TypographyVariants {
32
+ bodyLarge: TypographyStyle;
33
+ smallText: TypographyStyle;
34
+ link: TypographyStyle;
35
+ }
36
+ interface TypographyVariantsOptions {
37
+ bodyLarge: TypographyStyleOptions | undefined;
38
+ smallText: TypographyStyleOptions | undefined;
39
+ link: TypographyStyleOptions | undefined;
40
+ }
41
+ interface TypeText {
42
+ primary: string;
43
+ secondary: string;
44
+ tertiary: string;
45
+ disabled: string;
46
+ }
47
+ }
48
+ declare module '@mui/material/Typography' {
49
+ interface TypographyPropsVariantOverrides {
50
+ bodyLarge: true;
51
+ smallText: true;
52
+ link: true;
53
+ }
54
+ }
55
+ declare module '@mui/material/Button' {
56
+ interface ButtonPropsColorOverrides {
57
+ customBlue: true;
58
+ customYellow: true;
59
+ customGreen: true;
60
+ customPurple: true;
61
+ customGrey: true;
62
+ }
63
+ }
64
+ declare module '@mui/material/ButtonGroup' {
65
+ interface ButtonGroupPropsColorOverrides {
66
+ customBlue: true;
67
+ customYellow: true;
68
+ customGreen: true;
69
+ customPurple: true;
70
+ customGrey: true;
71
+ }
72
+ }
73
+ declare module '@mui/material/Badge' {
74
+ interface BadgePropsColorOverrides {
75
+ customBlue: true;
76
+ customYellow: true;
77
+ customGreen: true;
78
+ customPurple: true;
79
+ customGrey: true;
80
+ }
81
+ }
82
+ declare module '@mui/material/Chip' {
83
+ interface ChipPropsColorOverrides {
84
+ customBlue: true;
85
+ customYellow: true;
86
+ customGreen: true;
87
+ customPurple: true;
88
+ customGrey: true;
89
+ }
90
+ }
91
+ declare module '@mui/material/Icon' {
92
+ interface IconPropsColorOverrides {
93
+ customBlue: true;
94
+ customYellow: true;
95
+ customGreen: true;
96
+ customPurple: true;
97
+ customGrey: true;
98
+ }
99
+ }
100
+ declare module '@mui/material/IconButton' {
101
+ interface IconButtonPropsColorOverrides {
102
+ customBlue: true;
103
+ customYellow: true;
104
+ customGreen: true;
105
+ customPurple: true;
106
+ customGrey: true;
107
+ }
108
+ }
109
+ declare module '@mui/material/Tab' {
110
+ interface TabPropsColorOverrides {
111
+ customBlue: true;
112
+ customYellow: true;
113
+ customGreen: true;
114
+ customPurple: true;
115
+ customGrey: true;
116
+ }
117
+ }
118
+ declare module '@mui/material/TextField' {
119
+ interface TextFieldPropsColorOverrides {
120
+ customBlue: true;
121
+ customYellow: true;
122
+ customGreen: true;
123
+ customPurple: true;
124
+ customGrey: true;
125
+ }
126
+ }
127
+ declare module '@mui/material/SvgIcon' {
128
+ interface SvgIconPropsColorOverrides {
129
+ customBlue: true;
130
+ customYellow: true;
131
+ customGreen: true;
132
+ customPurple: true;
133
+ customGrey: true;
134
+ }
135
+ }
136
+ export declare const theme: import("@mui/material").Theme;
137
+ export {};
@@ -1,4 +1,4 @@
1
- import { createTheme } from '@mui/material/styles';
1
+ import { createTheme, } from '@mui/material';
2
2
  export var theme = createTheme({
3
3
  typography: {
4
4
  fontFamily: '"Source Sans Pro", Helvetica, sans-serif',
@@ -77,6 +77,7 @@ export var theme = createTheme({
77
77
  dark: '#2A506F',
78
78
  },
79
79
  customYellow: {
80
+ xlight: '#F8DD88',
80
81
  main: '#FFC100',
81
82
  contrastText: '#FFFFFF',
82
83
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist_esm5/index.js",
6
6
  "sideEffects": false,
@@ -13,12 +13,12 @@
13
13
  "dependencies": {
14
14
  "@emotion/react": "^11.10.6",
15
15
  "@emotion/styled": "^11.10.6",
16
- "@mui/icons-material": "^5.11.11",
17
- "@mui/material": "^5.11.14",
18
- "@mui/styled-engine-sc": "^5.11.11",
16
+ "@mui/icons-material": "^5.11.16",
17
+ "@mui/material": "^5.12.0",
18
+ "@mui/styled-engine-sc": "^5.12.0",
19
19
  "@react-google-maps/api": "^2.18.1",
20
- "@types/node": "^16.18.14",
21
- "@types/react": "^18.0.28",
20
+ "@types/node": "^18.15.11",
21
+ "@types/react": "^18.0.35",
22
22
  "@types/react-dom": "^18.0.11",
23
23
  "@types/react-helmet": "^6.1.6",
24
24
  "analytics-client": "^2.0.1",
@@ -26,12 +26,12 @@
26
26
  "react": "^18.2.0",
27
27
  "react-dom": "^18.2.0",
28
28
  "react-helmet": "^6.1.0",
29
- "react-markdown": "^8.0.5",
30
- "react-router-dom": "^6.9.0",
29
+ "react-markdown": "^8.0.7",
30
+ "react-router-dom": "^6.10.0",
31
31
  "react-scripts": "5.0.1",
32
32
  "rehype-raw": "^6.1.1",
33
33
  "remark-gfm": "^3.0.1",
34
- "rimraf": "^4.4.1",
34
+ "rimraf": "^5.0.0",
35
35
  "typescript": "^4.9.5"
36
36
  },
37
37
  "devDependencies": {
@@ -82,6 +82,6 @@
82
82
  },
83
83
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
84
84
  "versionist": {
85
- "publishedAt": "2023-04-07T11:36:31.201Z"
85
+ "publishedAt": "2023-04-17T08:19:43.003Z"
86
86
  }
87
87
  }
@@ -1 +0,0 @@
1
- export * from 'react-router-dom';
@@ -1 +0,0 @@
1
- export * from 'react-router-dom';
@@ -1 +0,0 @@
1
- export * from 'react-router-dom';
@@ -1 +0,0 @@
1
- export * from 'react-router-dom';