@movable/ui 0.1.2 → 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,417 +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
- '.MuiInputBase-root': {
243
- backgroundColor: grey[100],
244
- },
245
- '.MuiInputBase-input': {
246
- backgroundColor: grey[100],
247
- },
248
- '.MuiFormHelperText-root': {
249
- marginLeft: 0,
250
- },
251
- },
252
- },
253
- },
254
- },
255
-
256
- palette: {
257
- text: {
258
- primary: grey[900],
259
- secondary: grey[700],
260
- disabled: grey[700],
261
- },
262
-
263
- focusVisible: alpha(blue[700], 0.3),
264
-
265
- blue50: blue[50],
266
- blue100: blue[100],
267
- blue200: blue[200],
268
- blue300: blue[300],
269
- blue400: blue[400],
270
- blue500: blue[500],
271
- blue600: blue[600],
272
- blue700: blue[700],
273
- blue800: blue[800],
274
- blue900: blue[900],
275
-
276
- indigo50: indigo[50],
277
- indigo100: indigo[100],
278
- indigo200: indigo[200],
279
- indigo300: indigo[300],
280
- indigo400: indigo[400],
281
- indigo500: indigo[500],
282
- indigo600: indigo[600],
283
- indigo700: indigo[700],
284
- indigo800: indigo[800],
285
- indigo900: indigo[900],
286
-
287
- green50: green[50],
288
- green100: green[100],
289
- green200: green[200],
290
- green300: green[300],
291
- green400: green[400],
292
- green500: green[500],
293
- green600: green[600],
294
- green700: green[700],
295
- green800: green[800],
296
- green900: green[900],
297
-
298
- lightBlue50: lightBlue[50],
299
- lightBlue100: lightBlue[100],
300
- lightBlue200: lightBlue[200],
301
- lightBlue300: lightBlue[300],
302
- lightBlue400: lightBlue[400],
303
- lightBlue500: lightBlue[500],
304
- lightBlue600: lightBlue[600],
305
- lightBlue700: lightBlue[700],
306
- lightBlue800: lightBlue[800],
307
- lightBlue900: lightBlue[900],
308
-
309
- lightGreen50: lightGreen[50],
310
- lightGreen100: lightGreen[100],
311
- lightGreen200: lightGreen[200],
312
- lightGreen300: lightGreen[300],
313
- lightGreen400: lightGreen[400],
314
- lightGreen500: lightGreen[500],
315
- lightGreen600: lightGreen[600],
316
- lightGreen700: lightGreen[700],
317
- lightGreen800: lightGreen[800],
318
- lightGreen900: lightGreen[900],
319
-
320
- neutral50: grey[50],
321
- neutral100: grey[100],
322
- neutral200: grey[200],
323
- neutral300: grey[300],
324
- neutral400: grey[400],
325
- neutral500: grey[500],
326
- neutral600: grey[600],
327
- neutral700: grey[700],
328
- neutral800: grey[800],
329
- neutral900: grey[900],
330
- neutralA100: grey['A100'],
331
- neutralA200: grey['A200'],
332
- neutralA400: grey['A400'],
333
- neutralA700: grey['A700'],
334
-
335
- orange50: orange[50],
336
- orange100: orange[100],
337
- orange200: orange[200],
338
- orange300: orange[300],
339
- orange400: orange[400],
340
- orange500: orange[500],
341
- orange600: orange[600],
342
- orange700: orange[700],
343
- orange800: orange[800],
344
- orange900: orange[900],
345
-
346
- purple50: purple[50],
347
- purple100: purple[100],
348
- purple200: purple[200],
349
- purple300: purple[300],
350
- purple400: purple[400],
351
- purple500: purple[500],
352
- purple600: purple[600],
353
- purple700: purple[700],
354
- purple800: purple[800],
355
- purple900: purple[900],
356
-
357
- yellow50: yellow[50],
358
- yellow100: yellow[100],
359
- yellow200: yellow[200],
360
- yellow300: yellow[300],
361
- yellow400: yellow[400],
362
- yellow500: yellow[500],
363
- yellow600: yellow[600],
364
- yellow700: yellow[700],
365
- yellow800: yellow[800],
366
- yellow900: yellow[900],
367
- // todo: add rest of colors. see https://www.figma.com/file/9yr8neepsdgLbiFADaR6M2/MI----Library-Base?type=design&node-id=477-93017&t=wf27RohUWMM0z3UH-0
368
-
369
- primary: {
370
- main: blue[700],
371
- dark: blue[800],
372
- light: blue[600],
373
- contrastText: '#FFFFFF',
374
- selected: alpha(blue[700], 0.08),
375
- },
376
- secondary: {
377
- main: purple[500],
378
- dark: purple[700],
379
- light: purple[300],
380
- contrastText: '#FFFFFF',
381
- },
382
- error: {
383
- main: red[700],
384
- dark: red[800],
385
- light: red[400],
386
- contrastText: '#FFFFFF',
387
- },
388
- warning: {
389
- main: orange[800],
390
- dark: orange[900],
391
- light: orange[500],
392
- contrastText: '#FFFFFF',
393
- },
394
- info: {
395
- main: lightBlue[800],
396
- dark: lightBlue[900],
397
- light: orange[700],
398
- contrastText: '#FFFFFF',
399
- },
400
- success: {
401
- main: green[800],
402
- dark: green[900],
403
- light: green[500],
404
- contrastText: '#FFFFFF',
405
- },
406
- action: {
407
- active: grey[700],
408
- hover: alpha(grey[700], 0.04),
409
- selected: alpha(grey[700], 0.08),
410
- focus: alpha(grey[700], 0.12),
411
- disabledBackground: grey[200],
412
- disabled: grey[700],
413
- },
414
- },
415
- } as ThemeOptions);
416
-
417
- 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
- }