@wavv/ui 2.2.7 → 2.3.0-alpha.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.
Files changed (33) hide show
  1. package/build/components/Checkbox.d.ts +5 -2
  2. package/build/components/Checkbox.js +14 -9
  3. package/build/components/Form.d.ts +8 -4
  4. package/build/components/FormControl.d.ts +2 -0
  5. package/build/components/FormControl.js +4 -4
  6. package/build/components/Inputs/TextArea.d.ts +2 -2
  7. package/build/components/Inputs/TextArea.js +2 -2
  8. package/build/components/Inputs/helpers/InputContainerStyles.js +7 -7
  9. package/build/components/ListHelpers/ListItemStyles.js +4 -6
  10. package/build/components/Menu.js +4 -6
  11. package/build/components/Modal.d.ts +2 -5
  12. package/build/components/Modal.js +12 -26
  13. package/build/components/OptionHelpers/Item.js +4 -6
  14. package/build/components/Radio.js +1 -0
  15. package/build/components/Table/contentStyles.js +3 -6
  16. package/build/components/Toggle.d.ts +16 -6
  17. package/build/components/Toggle.js +68 -51
  18. package/build/components/helpers/getFlexPosition.d.ts +3 -0
  19. package/build/components/helpers/getFlexPosition.js +6 -0
  20. package/build/tailwind/theme.css +117 -0
  21. package/build/theme/index.d.ts +5 -2
  22. package/build/theme/index.js +23 -2
  23. package/build/theme/mono/colors.d.ts +224 -0
  24. package/build/theme/mono/colors.js +85 -0
  25. package/build/theme/mono/dark/dark.d.ts +3 -0
  26. package/build/theme/mono/dark/dark.js +562 -0
  27. package/build/theme/mono/dark/darkScale.d.ts +22 -0
  28. package/build/theme/mono/dark/darkScale.js +36 -0
  29. package/build/theme/mono/light/light.d.ts +3 -0
  30. package/build/theme/mono/light/light.js +561 -0
  31. package/build/theme/mono/light/lightScale.d.ts +22 -0
  32. package/build/theme/mono/light/lightScale.js +35 -0
  33. package/package.json +19 -19
@@ -115,6 +115,123 @@
115
115
  --color-background5: #596A74;
116
116
  }
117
117
 
118
+ .mono {
119
+ --color-logo1: #0074F4;
120
+ --color-logo2: #00A9E2;
121
+ --color-logo3: #67C728;
122
+ --color-brand: #0074F4;
123
+ --color-brandShade1: #0068DC;
124
+ --color-brandShade2: #005DC3;
125
+ --color-brandDark: #4C9EF7;
126
+ --color-brandDarkShade1: #5EA8F8;
127
+ --color-brandTint0: rgba(0,116,244,0.05);
128
+ --color-brandTint1: rgba(0,116,244,0.1);
129
+ --color-brandTint2: rgba(0,116,244,0.2);
130
+ --color-brandTint3: rgba(0,116,244,0.3);
131
+ --color-brandTint4: rgba(0,116,244,0.4);
132
+ --color-brandBackground0: #121212;
133
+ --color-brandBackground1: #1e1e1e;
134
+ --color-brandBackground2: #292929;
135
+ --color-brandBackground3: #3a3a3a;
136
+ --color-brandBackground4: #4b4b4b;
137
+ --color-brandBackground5: #5c5c5c;
138
+ --color-error: #FF6068;
139
+ --color-errorShade1: #E6565E;
140
+ --color-errorShade2: #CC4D53;
141
+ --color-errorTint0: rgba(255,96,104,0.05);
142
+ --color-errorTint1: rgba(255,96,104,0.1);
143
+ --color-errorTint2: rgba(255,96,104,0.2);
144
+ --color-errorTint3: rgba(255,96,104,0.3);
145
+ --color-errorTint4: rgba(255,96,104,0.4);
146
+ --color-warning: #FF9900;
147
+ --color-warningShade1: #E68A00;
148
+ --color-warningShade2: #CC7A00;
149
+ --color-warningTint0: rgba(255,153,0,0.05);
150
+ --color-warningTint1: rgba(255,153,0,0.1);
151
+ --color-warningTint2: rgba(255,153,0,0.2);
152
+ --color-warningTint3: rgba(255,153,0,0.3);
153
+ --color-warningTint4: rgba(255,153,0,0.4);
154
+ --color-alert: #F0BB00;
155
+ --color-alertShade1: #E4B200;
156
+ --color-alertShade2: #C09600;
157
+ --color-alertTint0: rgba(240,187,0,0.05);
158
+ --color-alertTint1: rgba(240,187,0,0.1);
159
+ --color-alertTint2: rgba(240,187,0,0.2);
160
+ --color-alertTint3: rgba(240,187,0,0.3);
161
+ --color-alertTint4: rgba(240,187,0,0.4);
162
+ --color-success: #00E284;
163
+ --color-successShade1: #00AF3B;
164
+ --color-successShade2: #009B35;
165
+ --color-successTint0: rgba(0,226,132,0.05);
166
+ --color-successTint1: rgba(0,226,132,0.1);
167
+ --color-successTint2: rgba(0,226,132,0.2);
168
+ --color-successTint3: rgba(0,226,132,0.3);
169
+ --color-successTint4: rgba(0,226,132,0.4);
170
+ --color-grayscale0: rgba(18,18,18,0.05);
171
+ --color-grayscale1: rgba(18,18,18,0.1);
172
+ --color-grayscale2: rgba(18,18,18,0.2);
173
+ --color-grayscale3: rgba(18,18,18,0.3);
174
+ --color-grayscale4: rgba(18,18,18,0.4);
175
+ --color-grayscale5: rgba(18,18,18,0.5);
176
+ --color-grayscale6: rgba(18,18,18,0.6);
177
+ --color-grayscale7: rgba(18,18,18,0.7);
178
+ --color-grayscale8: rgba(18,18,18,0.8);
179
+ --color-grayscale9: rgba(18,18,18,0.9);
180
+ --color-grayscale10: #121212;
181
+ --color-contrast0: rgba(255,255,255,0.05);
182
+ --color-contrast1: rgba(255,255,255,0.1);
183
+ --color-contrast2: rgba(255,255,255,0.2);
184
+ --color-contrast3: rgba(255,255,255,0.3);
185
+ --color-contrast4: rgba(255,255,255,0.4);
186
+ --color-contrast5: rgba(255,255,255,0.5);
187
+ --color-contrast6: rgba(255,255,255,0.6);
188
+ --color-contrast7: rgba(255,255,255,0.7);
189
+ --color-contrast8: rgba(255,255,255,0.8);
190
+ --color-contrast9: rgba(255,255,255,0.9);
191
+ --color-contrast10: #FFFFFF;
192
+ --color-scale0: rgba(18,18,18,0.05);
193
+ --color-scale1: rgba(18,18,18,0.1);
194
+ --color-scale2: rgba(18,18,18,0.2);
195
+ --color-scale3: rgba(18,18,18,0.3);
196
+ --color-scale4: rgba(18,18,18,0.4);
197
+ --color-scale5: rgba(18,18,18,0.5);
198
+ --color-scale6: rgba(18,18,18,0.6);
199
+ --color-scale7: rgba(18,18,18,0.7);
200
+ --color-scale8: rgba(18,18,18,0.8);
201
+ --color-scale9: rgba(18,18,18,0.9);
202
+ --color-scale10: #121212;
203
+ --color-accent: #0074F4;
204
+ --color-accentShade: #0068DC;
205
+ --color-background0: #FFFFFF;
206
+ --color-background1: #F2F3F4;
207
+ --color-background2: #E6E9EB;
208
+ --color-background3: #CCD2D6;
209
+ --color-background4: #B3BCC2;
210
+ --color-background5: #99A5AD;
211
+ }
212
+
213
+ .mono.dark {
214
+ --color-scale0: rgba(255,255,255,0.05);
215
+ --color-scale1: rgba(255,255,255,0.1);
216
+ --color-scale2: rgba(255,255,255,0.2);
217
+ --color-scale3: rgba(255,255,255,0.3);
218
+ --color-scale4: rgba(255,255,255,0.4);
219
+ --color-scale5: rgba(255,255,255,0.5);
220
+ --color-scale6: rgba(255,255,255,0.6);
221
+ --color-scale7: rgba(255,255,255,0.7);
222
+ --color-scale8: rgba(255,255,255,0.8);
223
+ --color-scale9: rgba(255,255,255,0.9);
224
+ --color-scale10: #FFFFFF;
225
+ --color-accent: #4C9EF7;
226
+ --color-accentShade: #5EA8F8;
227
+ --color-background0: #121212;
228
+ --color-background1: #1e1e1e;
229
+ --color-background2: #292929;
230
+ --color-background3: #3a3a3a;
231
+ --color-background4: #4b4b4b;
232
+ --color-background5: #5c5c5c;
233
+ }
234
+
118
235
  @utility head-1 {
119
236
  font-size: 28px;
120
237
  font-weight: 500;
@@ -2,14 +2,17 @@ import type { ITheme } from './ThemeTypes';
2
2
  type Theme = {
3
3
  light: ITheme;
4
4
  dark: ITheme;
5
+ monoDark: ITheme;
6
+ monoLight: ITheme;
5
7
  };
6
8
  declare const theme: Theme;
7
9
  export default theme;
8
10
  export type { ButtonState, ITheme, ThemeProp } from './ThemeTypes';
9
- export type ThemeClasses = 'light' | 'dark';
11
+ export type ThemeClasses = 'light' | 'dark' | 'mono';
12
+ export type ThemeOptionId = 'light' | 'dark' | 'monoDark' | 'monoLight';
10
13
  export declare const themeClasses: ThemeClasses[];
11
14
  export type ThemeOption = {
12
- id: 'light' | 'dark';
15
+ id: ThemeOptionId;
13
16
  value: string;
14
17
  classes: ThemeClasses[];
15
18
  };
@@ -1,13 +1,18 @@
1
1
  import dark from "./core/dark/dark.js";
2
2
  import light from "./core/light/light.js";
3
+ import dark_dark from "./mono/dark/dark.js";
4
+ import light_light from "./mono/light/light.js";
3
5
  const theme = {
4
6
  light: light,
5
- dark: dark
7
+ dark: dark,
8
+ monoDark: dark_dark,
9
+ monoLight: light_light
6
10
  };
7
11
  const lib_theme = theme;
8
12
  const themeClasses = [
9
13
  'light',
10
- 'dark'
14
+ 'dark',
15
+ 'mono'
11
16
  ];
12
17
  const themeOptions = [
13
18
  {
@@ -23,6 +28,22 @@ const themeOptions = [
23
28
  classes: [
24
29
  'dark'
25
30
  ]
31
+ },
32
+ {
33
+ id: 'monoDark',
34
+ value: 'Mono Dark',
35
+ classes: [
36
+ 'mono',
37
+ 'dark'
38
+ ]
39
+ },
40
+ {
41
+ id: 'monoLight',
42
+ value: 'Mono Light',
43
+ classes: [
44
+ 'mono',
45
+ 'light'
46
+ ]
26
47
  }
27
48
  ];
28
49
  export { lib_theme as default, themeClasses, themeOptions };
@@ -0,0 +1,224 @@
1
+ declare const colors: {
2
+ logo1: string;
3
+ logo2: string;
4
+ logo3: string;
5
+ brand: string;
6
+ brandShade1: string;
7
+ brandShade2: string;
8
+ brandDark: string;
9
+ brandDarkShade1: string;
10
+ brandTint0: string;
11
+ brandTint1: string;
12
+ brandTint2: string;
13
+ brandTint3: string;
14
+ brandTint4: string;
15
+ brandBackground0: string;
16
+ brandBackground1: string;
17
+ brandBackground2: string;
18
+ brandBackground3: string;
19
+ brandBackground4: string;
20
+ brandBackground5: string;
21
+ error: string;
22
+ errorShade1: string;
23
+ errorShade2: string;
24
+ errorTint0: string;
25
+ errorTint1: string;
26
+ errorTint2: string;
27
+ errorTint3: string;
28
+ errorTint4: string;
29
+ warning: string;
30
+ warningShade1: string;
31
+ warningShade2: string;
32
+ warningTint0: string;
33
+ warningTint1: string;
34
+ warningTint2: string;
35
+ warningTint3: string;
36
+ warningTint4: string;
37
+ alert: string;
38
+ alertShade1: string;
39
+ alertShade2: string;
40
+ alertTint0: string;
41
+ alertTint1: string;
42
+ alertTint2: string;
43
+ alertTint3: string;
44
+ alertTint4: string;
45
+ success: string;
46
+ successShade1: string;
47
+ successShade2: string;
48
+ successTint0: string;
49
+ successTint1: string;
50
+ successTint2: string;
51
+ successTint3: string;
52
+ successTint4: string;
53
+ grayscale0: string;
54
+ grayscale1: string;
55
+ grayscale2: string;
56
+ grayscale3: string;
57
+ grayscale4: string;
58
+ grayscale5: string;
59
+ grayscale6: string;
60
+ grayscale7: string;
61
+ grayscale8: string;
62
+ grayscale9: string;
63
+ grayscale10: string;
64
+ contrast0: string;
65
+ contrast1: string;
66
+ contrast2: string;
67
+ contrast3: string;
68
+ contrast4: string;
69
+ contrast5: string;
70
+ contrast6: string;
71
+ contrast7: string;
72
+ contrast8: string;
73
+ contrast9: string;
74
+ contrast10: string;
75
+ };
76
+ export default colors;
77
+ export interface IColors {
78
+ /** #0074F4 */
79
+ logo1: string;
80
+ /** #00A9E2 */
81
+ logo2: string;
82
+ /** #67C728 */
83
+ logo3: string;
84
+ /** #0074F4 */
85
+ brand: string;
86
+ /** #0068DC */
87
+ brandShade1: string;
88
+ /** #005DC3 */
89
+ brandShade2: string;
90
+ /** #4C9EF7 */
91
+ brandDark: string;
92
+ /** #5EA8F8 */
93
+ brandDarkShade1: string;
94
+ /** 5% of #0074F4 */
95
+ brandTint0: string;
96
+ /** 10% of #0074F4 */
97
+ brandTint1: string;
98
+ /** 20% of #0074F4 */
99
+ brandTint2: string;
100
+ /** 30% of #0074F4 */
101
+ brandTint3: string;
102
+ /** 40% of #0074F4 */
103
+ brandTint4: string;
104
+ /** #001828 */
105
+ brandBackground0: string;
106
+ /** #0D2433 */
107
+ brandBackground1: string;
108
+ /** #192F3D */
109
+ brandBackground2: string;
110
+ /** #334653 */
111
+ brandBackground3: string;
112
+ /** #475964 */
113
+ brandBackground4: string;
114
+ /** #596A74 */
115
+ brandBackground5: string;
116
+ /** #FF6068 */
117
+ error: string;
118
+ /** #E6565E */
119
+ errorShade1: string;
120
+ /** #CC4D53 */
121
+ errorShade2: string;
122
+ /** 5% of #FF6068 */
123
+ errorTint0: string;
124
+ /** 10% of #FF6068 */
125
+ errorTint1: string;
126
+ /** 20% of #FF6068 */
127
+ errorTint2: string;
128
+ /** 30% of #FF6068 */
129
+ errorTint3: string;
130
+ /** 40% of #FF6068 */
131
+ errorTint4: string;
132
+ /** #FF9900 */
133
+ warning: string;
134
+ /** #E68A00 */
135
+ warningShade1: string;
136
+ /** #CC7A00 */
137
+ warningShade2: string;
138
+ /** 5% of #FF9900 */
139
+ warningTint0: string;
140
+ /** 10% of #FF9900 */
141
+ warningTint1: string;
142
+ /** 20% of #FF9900 */
143
+ warningTint2: string;
144
+ /** 30% of #FF9900 */
145
+ warningTint3: string;
146
+ /** 40% of #FF9900 */
147
+ warningTint4: string;
148
+ /** #F0BB00 */
149
+ alert: string;
150
+ /** #E4B200 */
151
+ alertShade1: string;
152
+ /** #C09600 */
153
+ alertShade2: string;
154
+ /** 5% of #F0BB00 */
155
+ alertTint0: string;
156
+ /** 10% of #F0BB00 */
157
+ alertTint1: string;
158
+ /** 20% of #F0BB00 */
159
+ alertTint2: string;
160
+ /** 30% of #F0BB00 */
161
+ alertTint3: string;
162
+ /** 40% of #F0BB00 */
163
+ alertTint4: string;
164
+ /** #00C242 */
165
+ success: string;
166
+ /** #00AF3B */
167
+ successShade1: string;
168
+ /** #009B35 */
169
+ successShade2: string;
170
+ /** 5% of #00C242 */
171
+ successTint0: string;
172
+ /** 10% of #00C242 */ successTint1: string;
173
+ /** 20% of #00C242 */
174
+ successTint2: string;
175
+ /** 30% of #00C242 */
176
+ successTint3: string;
177
+ /** 40% of #00C242 */
178
+ successTint4: string;
179
+ /** 5% of #001D32 */
180
+ grayscale0: string;
181
+ /** 10% of #001D32 */
182
+ grayscale1: string;
183
+ /** 20% of #001D32 */
184
+ grayscale2: string;
185
+ /** 30% of #001D32 */
186
+ grayscale3: string;
187
+ /** 40% of #001D32 */
188
+ grayscale4: string;
189
+ /** 50% of #001D32 */
190
+ grayscale5: string;
191
+ /** 60% of #001D32 */
192
+ grayscale6: string;
193
+ /** 70% of #001D32 */
194
+ grayscale7: string;
195
+ /** 80% of #001D32 */
196
+ grayscale8: string;
197
+ /** 90% of #001D32 */
198
+ grayscale9: string;
199
+ /** #001D32 */
200
+ grayscale10: string;
201
+ /** 5% of #FFFFFF */
202
+ contrast0: string;
203
+ /** 10% of #FFFFFF */
204
+ contrast1: string;
205
+ /** 20% of #FFFFFF */
206
+ contrast2: string;
207
+ /** 30% of #FFFFFF */
208
+ contrast3: string;
209
+ /** 40% of #FFFFFF */
210
+ contrast4: string;
211
+ /** 50% of #FFFFFF */
212
+ contrast5: string;
213
+ /** 60% of #FFFFFF */
214
+ contrast6: string;
215
+ /** 70% of #FFFFFF */
216
+ contrast7: string;
217
+ /** 80% of #FFFFFF */
218
+ contrast8: string;
219
+ /** 90% of #FFFFFF */
220
+ contrast9: string;
221
+ /** #FFFFFF */
222
+ contrast10: string;
223
+ }
224
+ export type ColorNames = keyof typeof colors;
@@ -0,0 +1,85 @@
1
+ import { transparentize } from "polished";
2
+ const brand = '#0074F4';
3
+ const error = '#FF6068';
4
+ const warning = '#FF9900';
5
+ const alertColor = '#F0BB00';
6
+ const success = '#00E284';
7
+ const grayVal = '#121212';
8
+ const white = '#FFFFFF';
9
+ const colors = {
10
+ logo1: brand,
11
+ logo2: '#00A9E2',
12
+ logo3: '#67C728',
13
+ brand,
14
+ brandShade1: '#0068DC',
15
+ brandShade2: '#005DC3',
16
+ brandDark: '#4C9EF7',
17
+ brandDarkShade1: '#5EA8F8',
18
+ brandTint0: transparentize(0.95, brand),
19
+ brandTint1: transparentize(0.9, brand),
20
+ brandTint2: transparentize(0.8, brand),
21
+ brandTint3: transparentize(0.7, brand),
22
+ brandTint4: transparentize(0.6, brand),
23
+ brandBackground0: '#121212',
24
+ brandBackground1: '#1e1e1e',
25
+ brandBackground2: '#292929',
26
+ brandBackground3: '#3a3a3a',
27
+ brandBackground4: '#4b4b4b',
28
+ brandBackground5: '#5c5c5c',
29
+ error,
30
+ errorShade1: '#E6565E',
31
+ errorShade2: '#CC4D53',
32
+ errorTint0: transparentize(0.95, error),
33
+ errorTint1: transparentize(0.9, error),
34
+ errorTint2: transparentize(0.8, error),
35
+ errorTint3: transparentize(0.7, error),
36
+ errorTint4: transparentize(0.6, error),
37
+ warning,
38
+ warningShade1: '#E68A00',
39
+ warningShade2: '#CC7A00',
40
+ warningTint0: transparentize(0.95, warning),
41
+ warningTint1: transparentize(0.9, warning),
42
+ warningTint2: transparentize(0.8, warning),
43
+ warningTint3: transparentize(0.7, warning),
44
+ warningTint4: transparentize(0.6, warning),
45
+ alert: alertColor,
46
+ alertShade1: '#E4B200',
47
+ alertShade2: '#C09600',
48
+ alertTint0: transparentize(0.95, alertColor),
49
+ alertTint1: transparentize(0.9, alertColor),
50
+ alertTint2: transparentize(0.8, alertColor),
51
+ alertTint3: transparentize(0.7, alertColor),
52
+ alertTint4: transparentize(0.6, alertColor),
53
+ success,
54
+ successShade1: '#00AF3B',
55
+ successShade2: '#009B35',
56
+ successTint0: transparentize(0.95, success),
57
+ successTint1: transparentize(0.9, success),
58
+ successTint2: transparentize(0.8, success),
59
+ successTint3: transparentize(0.7, success),
60
+ successTint4: transparentize(0.6, success),
61
+ grayscale0: transparentize(0.95, grayVal),
62
+ grayscale1: transparentize(0.9, grayVal),
63
+ grayscale2: transparentize(0.8, grayVal),
64
+ grayscale3: transparentize(0.7, grayVal),
65
+ grayscale4: transparentize(0.6, grayVal),
66
+ grayscale5: transparentize(0.5, grayVal),
67
+ grayscale6: transparentize(0.4, grayVal),
68
+ grayscale7: transparentize(0.3, grayVal),
69
+ grayscale8: transparentize(0.2, grayVal),
70
+ grayscale9: transparentize(0.1, grayVal),
71
+ grayscale10: grayVal,
72
+ contrast0: transparentize(0.95, white),
73
+ contrast1: transparentize(0.9, white),
74
+ contrast2: transparentize(0.8, white),
75
+ contrast3: transparentize(0.7, white),
76
+ contrast4: transparentize(0.6, white),
77
+ contrast5: transparentize(0.5, white),
78
+ contrast6: transparentize(0.4, white),
79
+ contrast7: transparentize(0.3, white),
80
+ contrast8: transparentize(0.2, white),
81
+ contrast9: transparentize(0.1, white),
82
+ contrast10: white
83
+ };
84
+ const mono_colors = colors;
85
+ export { mono_colors as default };
@@ -0,0 +1,3 @@
1
+ import type { ITheme } from '../../ThemeTypes';
2
+ declare const dark: ITheme;
3
+ export default dark;