@movable/ui 0.1.1 → 0.2.0-alpha.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/lib/theme.d.ts DELETED
@@ -1,57 +0,0 @@
1
- declare module '@mui/material/styles' {
2
- interface PaletteColor {
3
- selected?: string;
4
- }
5
- interface Palette {
6
- focusVisible: string;
7
- neutral50: string;
8
- neutral100: string;
9
- neutral200: string;
10
- neutral300: string;
11
- neutral400: string;
12
- neutral500: string;
13
- neutral600: string;
14
- neutral700: string;
15
- neutral800: string;
16
- neutral900: string;
17
- neutralA100: string;
18
- neutralA200: string;
19
- neutralA400: string;
20
- neutralA700: string;
21
- blue50: string;
22
- blue100: string;
23
- blue200: string;
24
- blue300: string;
25
- blue400: string;
26
- blue500: string;
27
- blue600: string;
28
- blue700: string;
29
- blue800: string;
30
- blue900: string;
31
- }
32
- interface PalletteOptions {
33
- focusVisible: string;
34
- neutral50: string;
35
- neutral100: string;
36
- neutral200: string;
37
- neutral300: string;
38
- neutral400: string;
39
- neutral500: string;
40
- neutral600: string;
41
- neutral700: string;
42
- neutral800: string;
43
- neutral900: string;
44
- neutralA100: string;
45
- neutralA200: string;
46
- neutralA400: string;
47
- neutralA700: string;
48
- blue50: string;
49
- blue100: string;
50
- blue200: string;
51
- blue300: string;
52
- blue400: string;
53
- blue500: string;
54
- }
55
- }
56
- declare const theme: import("@mui/material/styles").Theme;
57
- export default theme;
package/rollup.config.mjs DELETED
@@ -1,44 +0,0 @@
1
- import peerDepsExternal from "rollup-plugin-peer-deps-external";
2
- import resolve from "@rollup/plugin-node-resolve";
3
- import commonjs from "@rollup/plugin-commonjs";
4
- import typescript from "@rollup/plugin-typescript";
5
- import postcss from "rollup-plugin-postcss";
6
- import dts from "rollup-plugin-dts";
7
-
8
- // This is required to read package.json file when
9
- // using Native ES modules in Node.js
10
- // https://rollupjs.org/command-line-interface/#importing-package-json
11
- import { createRequire } from 'node:module';
12
- const requireFile = createRequire(import.meta.url);
13
- const packageJson = requireFile('./package.json');
14
-
15
-
16
- export default [{
17
- input: "src/index.ts",
18
- output: [
19
- {
20
- file: packageJson.main,
21
- format: "cjs",
22
- sourcemap: true
23
- },
24
- {
25
- file: packageJson.module,
26
- format: "esm",
27
- sourcemap: true
28
- }
29
- ],
30
- plugins: [
31
- peerDepsExternal(),
32
- resolve(),
33
- commonjs(),
34
- typescript(),
35
- postcss({
36
- extensions: ['.css']
37
- })
38
- ]
39
- }, {
40
- input: 'lib/index.d.ts',
41
- output: [{ file: 'lib/index.d.ts', format: 'es' }],
42
- plugins: [dts()],
43
- external: [/\.css$/]
44
- }];
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- import MovableUITheme from "./theme";
2
-
3
- export { MovableUITheme };
package/src/theme.ts DELETED
@@ -1,409 +0,0 @@
1
- import {
2
- blue,
3
- green,
4
- grey,
5
- indigo,
6
- lightBlue,
7
- lightGreen,
8
- orange,
9
- purple,
10
- red,
11
- yellow,
12
- } from '@mui/material/colors';
13
- import { ThemeOptions, alpha, createTheme } from '@mui/material/styles';
14
-
15
- declare module '@mui/material/styles' {
16
- interface PaletteColor {
17
- selected?: string;
18
- }
19
- interface Palette {
20
- focusVisible: string;
21
- blue50: string;
22
- blue100: string;
23
- blue200: string;
24
- blue300: string;
25
- blue400: string;
26
- blue500: string;
27
- blue600: string;
28
- blue700: string;
29
- blue800: string;
30
- blue900: string;
31
- indigo50: string;
32
- indigo100: string;
33
- indigo200: string;
34
- indigo300: string;
35
- indigo400: string;
36
- indigo500: string;
37
- indigo600: string;
38
- indigo700: string;
39
- indigo800: string;
40
- indigo900: string;
41
- green50: string;
42
- green100: string;
43
- green200: string;
44
- green300: string;
45
- green400: string;
46
- green500: string;
47
- green600: string;
48
- green700: string;
49
- green800: string;
50
- green900: string;
51
- lightBlue50: string;
52
- lightBlue100: string;
53
- lightBlue200: string;
54
- lightBlue300: string;
55
- lightBlue400: string;
56
- lightBlue500: string;
57
- lightBlue600: string;
58
- lightBlue700: string;
59
- lightBlue800: string;
60
- lightBlue900: string;
61
- lightGreen50: string;
62
- lightGreen100: string;
63
- lightGreen200: string;
64
- lightGreen300: string;
65
- lightGreen400: string;
66
- lightGreen500: string;
67
- lightGreen600: string;
68
- lightGreen700: string;
69
- lightGreen800: string;
70
- lightGreen900: string;
71
- neutral50: string;
72
- neutral100: string;
73
- neutral200: string;
74
- neutral300: string;
75
- neutral400: string;
76
- neutral500: string;
77
- neutral600: string;
78
- neutral700: string;
79
- neutral800: string;
80
- neutral900: string;
81
- neutralA100: string;
82
- neutralA200: string;
83
- neutralA400: string;
84
- neutralA700: string;
85
- orange50: string;
86
- orange100: string;
87
- orange200: string;
88
- orange300: string;
89
- orange400: string;
90
- orange500: string;
91
- orange600: string;
92
- orange700: string;
93
- orange800: string;
94
- orange900: string;
95
- purple50: string;
96
- purple100: string;
97
- purple200: string;
98
- purple300: string;
99
- purple400: string;
100
- purple500: string;
101
- purple600: string;
102
- purple700: string;
103
- purple800: string;
104
- purple900: string;
105
- yellow50: string;
106
- yellow100: string;
107
- yellow200: string;
108
- yellow300: string;
109
- yellow400: string;
110
- yellow500: string;
111
- yellow600: string;
112
- yellow700: string;
113
- yellow800: string;
114
- yellow900: string;
115
- }
116
- interface PalletteOptions {
117
- focusVisible: string;
118
- neutral50: string;
119
- neutral100: string;
120
- neutral200: string;
121
- neutral300: string;
122
- neutral400: string;
123
- neutral500: string;
124
- neutral600: string;
125
- neutral700: string;
126
- neutral800: string;
127
- neutral900: string;
128
- neutralA100: string;
129
- neutralA200: string;
130
- neutralA400: string;
131
- neutralA700: string;
132
- blue50: string;
133
- blue100: string;
134
- blue200: string;
135
- blue300: string;
136
- blue400: string;
137
- blue500: string;
138
- }
139
- }
140
-
141
- // TODO [Low]: put in /shared folder
142
- const theme = createTheme({
143
- typography: {
144
- fontFamily: ['Inter', 'Roboto', 'sans-serif'].join(','),
145
- },
146
-
147
- components: {
148
- MuiButton: {
149
- styleOverrides: {
150
- root: {
151
- textTransform: 'capitalize',
152
- },
153
- textPrimary: {
154
- color: blue[400],
155
- },
156
- outlinedInherit: {
157
- borderColor: alpha(grey[900], 0.03),
158
- },
159
- },
160
- },
161
-
162
- MuiChip: {
163
- styleOverrides: {
164
- filledPrimary: {
165
- backgroundColor: blue[50],
166
- color: blue[900],
167
- '.MuiChip-deleteIcon': {
168
- color: blue[800],
169
- '&:hover': {
170
- color: blue[900],
171
- },
172
- '&:active': {
173
- color: blue[900],
174
- },
175
- },
176
- },
177
- filledSuccess: {
178
- backgroundColor: green[50],
179
- color: green[900],
180
- },
181
- filledError: {
182
- backgroundColor: red[50],
183
- color: blue[900],
184
- },
185
- },
186
- },
187
-
188
- MuiDataGrid: {
189
- styleOverrides: {
190
- root: {
191
- border: 'none',
192
- '.MuiDataGrid-toolbarContainer .MuiTextField-root': {
193
- backgroundColor: grey[100],
194
- padding: '8px',
195
- borderRadius: '8px',
196
- },
197
- '.MuiInput-underline:before': {
198
- borderBottom: 'none !important',
199
- color: 'red',
200
- },
201
- '.MuiDataGrid-toolbarContainer button': {
202
- backgroundColor: grey[100],
203
- color: grey[900],
204
- padding: '4px 10px',
205
- },
206
- '.MuiDataGrid-toolbarContainer svg': {
207
- color: grey[700],
208
- },
209
- '.MuiDataGrid-cell:focus': {
210
- outline: 'none',
211
- },
212
- },
213
- },
214
- },
215
-
216
- MuiLink: {
217
- styleOverrides: {
218
- root: {
219
- color: blue[400],
220
- textDecoration: 'none',
221
- },
222
- },
223
- },
224
-
225
- MuiSelect: {
226
- defaultProps: {
227
- size: 'small',
228
- },
229
- styleOverrides: {
230
- root: {
231
- backgroundColor: grey[100],
232
- },
233
- },
234
- },
235
-
236
- MuiTextField: {
237
- defaultProps: {
238
- size: 'small',
239
- },
240
- styleOverrides: {
241
- root: {
242
- backgroundColor: grey[100],
243
- },
244
- },
245
- },
246
- },
247
-
248
- palette: {
249
- text: {
250
- primary: grey[900],
251
- secondary: grey[700],
252
- disabled: grey[700],
253
- },
254
-
255
- focusVisible: alpha(blue[700], 0.3),
256
-
257
- blue50: blue[50],
258
- blue100: blue[100],
259
- blue200: blue[200],
260
- blue300: blue[300],
261
- blue400: blue[400],
262
- blue500: blue[500],
263
- blue600: blue[600],
264
- blue700: blue[700],
265
- blue800: blue[800],
266
- blue900: blue[900],
267
-
268
- indigo50: indigo[50],
269
- indigo100: indigo[100],
270
- indigo200: indigo[200],
271
- indigo300: indigo[300],
272
- indigo400: indigo[400],
273
- indigo500: indigo[500],
274
- indigo600: indigo[600],
275
- indigo700: indigo[700],
276
- indigo800: indigo[800],
277
- indigo900: indigo[900],
278
-
279
- green50: green[50],
280
- green100: green[100],
281
- green200: green[200],
282
- green300: green[300],
283
- green400: green[400],
284
- green500: green[500],
285
- green600: green[600],
286
- green700: green[700],
287
- green800: green[800],
288
- green900: green[900],
289
-
290
- lightBlue50: lightBlue[50],
291
- lightBlue100: lightBlue[100],
292
- lightBlue200: lightBlue[200],
293
- lightBlue300: lightBlue[300],
294
- lightBlue400: lightBlue[400],
295
- lightBlue500: lightBlue[500],
296
- lightBlue600: lightBlue[600],
297
- lightBlue700: lightBlue[700],
298
- lightBlue800: lightBlue[800],
299
- lightBlue900: lightBlue[900],
300
-
301
- lightGreen50: lightGreen[50],
302
- lightGreen100: lightGreen[100],
303
- lightGreen200: lightGreen[200],
304
- lightGreen300: lightGreen[300],
305
- lightGreen400: lightGreen[400],
306
- lightGreen500: lightGreen[500],
307
- lightGreen600: lightGreen[600],
308
- lightGreen700: lightGreen[700],
309
- lightGreen800: lightGreen[800],
310
- lightGreen900: lightGreen[900],
311
-
312
- neutral50: grey[50],
313
- neutral100: grey[100],
314
- neutral200: grey[200],
315
- neutral300: grey[300],
316
- neutral400: grey[400],
317
- neutral500: grey[500],
318
- neutral600: grey[600],
319
- neutral700: grey[700],
320
- neutral800: grey[800],
321
- neutral900: grey[900],
322
- neutralA100: grey['A100'],
323
- neutralA200: grey['A200'],
324
- neutralA400: grey['A400'],
325
- neutralA700: grey['A700'],
326
-
327
- orange50: orange[50],
328
- orange100: orange[100],
329
- orange200: orange[200],
330
- orange300: orange[300],
331
- orange400: orange[400],
332
- orange500: orange[500],
333
- orange600: orange[600],
334
- orange700: orange[700],
335
- orange800: orange[800],
336
- orange900: orange[900],
337
-
338
- purple50: purple[50],
339
- purple100: purple[100],
340
- purple200: purple[200],
341
- purple300: purple[300],
342
- purple400: purple[400],
343
- purple500: purple[500],
344
- purple600: purple[600],
345
- purple700: purple[700],
346
- purple800: purple[800],
347
- purple900: purple[900],
348
-
349
- yellow50: yellow[50],
350
- yellow100: yellow[100],
351
- yellow200: yellow[200],
352
- yellow300: yellow[300],
353
- yellow400: yellow[400],
354
- yellow500: yellow[500],
355
- yellow600: yellow[600],
356
- yellow700: yellow[700],
357
- yellow800: yellow[800],
358
- yellow900: yellow[900],
359
- // todo: add rest of colors. see https://www.figma.com/file/9yr8neepsdgLbiFADaR6M2/MI----Library-Base?type=design&node-id=477-93017&t=wf27RohUWMM0z3UH-0
360
-
361
- primary: {
362
- main: blue[700],
363
- dark: blue[800],
364
- light: blue[600],
365
- contrastText: '#FFFFFF',
366
- selected: alpha(blue[700], 0.08),
367
- },
368
- secondary: {
369
- main: purple[500],
370
- dark: purple[700],
371
- light: purple[300],
372
- contrastText: '#FFFFFF',
373
- },
374
- error: {
375
- main: red[700],
376
- dark: red[800],
377
- light: red[400],
378
- contrastText: '#FFFFFF',
379
- },
380
- warning: {
381
- main: orange[800],
382
- dark: orange[900],
383
- light: orange[500],
384
- contrastText: '#FFFFFF',
385
- },
386
- info: {
387
- main: lightBlue[800],
388
- dark: lightBlue[900],
389
- light: orange[700],
390
- contrastText: '#FFFFFF',
391
- },
392
- success: {
393
- main: green[800],
394
- dark: green[900],
395
- light: green[500],
396
- contrastText: '#FFFFFF',
397
- },
398
- action: {
399
- active: grey[700],
400
- hover: alpha(grey[700], 0.04),
401
- selected: alpha(grey[700], 0.08),
402
- focus: alpha(grey[700], 0.12),
403
- disabledBackground: grey[200],
404
- disabled: grey[700],
405
- },
406
- },
407
- } as ThemeOptions);
408
-
409
- export default theme;
package/tsconfig.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "outDir": "lib",
5
- "lib": ["dom", "dom.iterable", "esnext"],
6
- "declaration": true,
7
- "declarationDir": "lib",
8
- "allowJs": true,
9
- "skipLibCheck": true,
10
- "esModuleInterop": true,
11
- "allowSyntheticDefaultImports": true,
12
- "strict": true,
13
- "forceConsistentCasingInFileNames": true,
14
- "module": "esnext",
15
- "moduleResolution": "node",
16
- "resolveJsonModule": true,
17
- "isolatedModules": true,
18
- "noEmit": true,
19
- "jsx": "react"
20
- },
21
- "include": ["src"],
22
- "exclude": ["node_modules", "lib"]
23
- }