@atipicus/mrs-ui 1.1.0 → 2.0.2

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 (97) hide show
  1. package/LICENSE +63 -3
  2. package/README.md +15 -3
  3. package/dist/Table-BWJUQgDY.js.map +1 -1
  4. package/dist/Table-BrEk_oGh.mjs.map +1 -1
  5. package/dist/components/atoms/Avatar/Avatar.d.ts.map +1 -1
  6. package/dist/components/atoms/Avatar/Avatar.types.d.ts +1 -1
  7. package/dist/components/atoms/Avatar/Avatar.types.d.ts.map +1 -1
  8. package/dist/components/atoms/Select/Select.d.ts.map +1 -1
  9. package/dist/components/molecules/Sidenav/Sidenav.d.ts.map +1 -1
  10. package/dist/index-9xINu3Y6.mjs +11 -0
  11. package/dist/index-9xINu3Y6.mjs.map +1 -0
  12. package/dist/{index-C4a5SkEO.js → index-B3fSNHE_.js} +1 -2
  13. package/dist/index-B3fSNHE_.js.map +1 -0
  14. package/dist/{index-DgpKiomn.js → index-B6HAPXbT.js} +1 -2
  15. package/dist/index-B6HAPXbT.js.map +1 -0
  16. package/dist/{index-DQLiGYRv.js → index-CrukcVHf.js} +1 -2
  17. package/dist/index-CrukcVHf.js.map +1 -0
  18. package/dist/index-CzgRXVhq.mjs +5 -0
  19. package/dist/index-CzgRXVhq.mjs.map +1 -0
  20. package/dist/{index-Bp_39Kmf.js → index-D19iZMBT.js} +1 -2
  21. package/dist/index-D19iZMBT.js.map +1 -0
  22. package/dist/{index-xewrdUFS.js → index-D2dZ1ELl.js} +1 -2
  23. package/dist/index-D2dZ1ELl.js.map +1 -0
  24. package/dist/index-DpuDQuvl.mjs +5 -0
  25. package/dist/index-DpuDQuvl.mjs.map +1 -0
  26. package/dist/index-DzuUedva.mjs +5 -0
  27. package/dist/index-DzuUedva.mjs.map +1 -0
  28. package/dist/{index-C4N6hqG7.mjs → index-MEnqUL_H.mjs} +8 -5
  29. package/dist/index-MEnqUL_H.mjs.map +1 -0
  30. package/dist/{index-DrHcCXwi.js → index-ZqM4dIOj.js} +1 -2
  31. package/dist/index-ZqM4dIOj.js.map +1 -0
  32. package/dist/index-mOLOagan.mjs +5 -0
  33. package/dist/index-mOLOagan.mjs.map +1 -0
  34. package/dist/index.js +401 -150
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +401 -150
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/lazy.js +16 -16
  39. package/dist/lazy.js.map +1 -1
  40. package/dist/lazy.mjs +16 -16
  41. package/dist/lazy.mjs.map +1 -1
  42. package/dist/theme/styleCompositions.d.ts +281 -0
  43. package/dist/theme/styleCompositions.d.ts.map +1 -0
  44. package/dist/theme/theme.d.ts.map +1 -1
  45. package/dist/theme/tokens-import.d.ts +164 -0
  46. package/dist/theme/tokens-import.d.ts.map +1 -1
  47. package/dist/theme/tokens.d.ts +292 -0
  48. package/dist/theme/tokens.d.ts.map +1 -1
  49. package/dist/theme/types.d.ts +292 -0
  50. package/dist/theme/types.d.ts.map +1 -1
  51. package/dist/theme-editor/ThemeEditorApp.d.ts +14 -0
  52. package/dist/theme-editor/ThemeEditorApp.d.ts.map +1 -0
  53. package/dist/theme-editor/components/ColorEditor.d.ts +10 -0
  54. package/dist/theme-editor/components/ColorEditor.d.ts.map +1 -0
  55. package/dist/theme-editor/components/ComponentPreview.d.ts +8 -0
  56. package/dist/theme-editor/components/ComponentPreview.d.ts.map +1 -0
  57. package/dist/theme-editor/components/SaveDialog.d.ts +13 -0
  58. package/dist/theme-editor/components/SaveDialog.d.ts.map +1 -0
  59. package/dist/theme-editor/components/SpacingEditor.d.ts +11 -0
  60. package/dist/theme-editor/components/SpacingEditor.d.ts.map +1 -0
  61. package/dist/theme-editor/components/SyncDialog.d.ts +12 -0
  62. package/dist/theme-editor/components/SyncDialog.d.ts.map +1 -0
  63. package/dist/theme-editor/components/TypographyEditor.d.ts +10 -0
  64. package/dist/theme-editor/components/TypographyEditor.d.ts.map +1 -0
  65. package/dist/theme-editor/components/UndoButton.d.ts +9 -0
  66. package/dist/theme-editor/components/UndoButton.d.ts.map +1 -0
  67. package/dist/theme-editor/hooks/useFileSystem.d.ts +18 -0
  68. package/dist/theme-editor/hooks/useFileSystem.d.ts.map +1 -0
  69. package/dist/theme-editor/hooks/useGitIntegration.d.ts +41 -0
  70. package/dist/theme-editor/hooks/useGitIntegration.d.ts.map +1 -0
  71. package/dist/theme-editor/hooks/useThemeParser.d.ts +65 -0
  72. package/dist/theme-editor/hooks/useThemeParser.d.ts.map +1 -0
  73. package/dist/theme-editor/hooks/useThemeSave.d.ts +21 -0
  74. package/dist/theme-editor/hooks/useThemeSave.d.ts.map +1 -0
  75. package/dist/theme-editor/hooks/useThemeSync.d.ts +20 -0
  76. package/dist/theme-editor/hooks/useThemeSync.d.ts.map +1 -0
  77. package/dist/theme-editor/index.d.ts +18 -0
  78. package/dist/theme-editor/index.d.ts.map +1 -0
  79. package/package.json +14 -12
  80. package/README.npm.md +0 -132
  81. package/dist/index-B4_KKxHQ.mjs +0 -6
  82. package/dist/index-B4_KKxHQ.mjs.map +0 -1
  83. package/dist/index-Bp_39Kmf.js.map +0 -1
  84. package/dist/index-C4N6hqG7.mjs.map +0 -1
  85. package/dist/index-C4a5SkEO.js.map +0 -1
  86. package/dist/index-CLLVDdFI.mjs +0 -12
  87. package/dist/index-CLLVDdFI.mjs.map +0 -1
  88. package/dist/index-CxB9Lb7L.mjs +0 -6
  89. package/dist/index-CxB9Lb7L.mjs.map +0 -1
  90. package/dist/index-DGbzI3ul.mjs +0 -6
  91. package/dist/index-DGbzI3ul.mjs.map +0 -1
  92. package/dist/index-DQLiGYRv.js.map +0 -1
  93. package/dist/index-DgpKiomn.js.map +0 -1
  94. package/dist/index-DrHcCXwi.js.map +0 -1
  95. package/dist/index-xewrdUFS.js.map +0 -1
  96. package/dist/index-zqX2ktfd.mjs +0 -6
  97. package/dist/index-zqX2ktfd.mjs.map +0 -1
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Theme Editor Application
3
+ * Interactive visual editor for theme.ts
4
+ *
5
+ * Allows users to:
6
+ * - Visualize and edit theme tokens
7
+ * - See changes in real-time
8
+ * - Sync changes back to theme.ts
9
+ * - Save with automatic backups
10
+ * - Commit to git and undo within 5 minutes
11
+ */
12
+ export { ThemeEditorApp } from './ThemeEditorApp';
13
+ export { useThemeParser } from './hooks/useThemeParser';
14
+ export { useThemeSync } from './hooks/useThemeSync';
15
+ export { useThemeSave } from './hooks/useThemeSave';
16
+ export { useGitIntegration } from './hooks/useGitIntegration';
17
+ export { useFileSystem } from './hooks/useFileSystem';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme-editor/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atipicus/mrs-ui",
3
- "version": "1.1.0",
3
+ "version": "2.0.2",
4
4
  "description": "A cromprehensive design system Based on Material UI, with 53 production ready React components and TypeScript support...",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -44,7 +44,7 @@
44
44
  "test": "jest",
45
45
  "test:clean": "jest --clearCache && jest",
46
46
  "test:watch": "jest --watch",
47
- "type-check": "tsc --noEmit",
47
+ "type-check": "npm run tokens:build && tsc --noEmit",
48
48
  "lint": "eslint src --ext .ts,.tsx --ignore-pattern 'src/tokens/scripts/**' --ignore-pattern '**/*.mdx'",
49
49
  "lint:fix": "eslint src --ext .ts,.tsx --ignore-pattern 'src/tokens/scripts/**' --ignore-pattern '**/*.mdx' --fix",
50
50
  "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
@@ -97,16 +97,18 @@
97
97
  "react-dom": "^18.3.1"
98
98
  },
99
99
  "devDependencies": {
100
- "@chromatic-com/storybook": "^4.1.3",
100
+ "@chromatic-com/storybook": "^5.0.1",
101
101
  "@emotion/react": "^11.14.0",
102
102
  "@emotion/styled": "^11.14.1",
103
103
  "@mui/icons-material": "^6.5.0",
104
104
  "@mui/material": "^6.5.0",
105
- "@storybook/addon-a11y": "^10.1.10",
106
- "@storybook/addon-docs": "^10.1.10",
107
- "@storybook/addon-themes": "^10.1.10",
108
- "@storybook/addon-vitest": "^10.1.10",
109
- "@storybook/react-vite": "^10.1.10",
105
+ "@storybook/addon-a11y": "^10.2.3",
106
+ "@storybook/addon-docs": "^10.2.3",
107
+ "@storybook/addon-themes": "^10.2.3",
108
+ "@storybook/addon-vitest": "^10.2.3",
109
+ "@storybook/react-vite": "^10.2.3",
110
+ "@swc/core": "^1.13.5",
111
+ "@swc/jest": "^0.2.38",
110
112
  "@testing-library/dom": "^10.4.1",
111
113
  "@testing-library/jest-dom": "^6.0.0",
112
114
  "@testing-library/react": "^16.3.1",
@@ -119,7 +121,8 @@
119
121
  "@vitejs/plugin-react": "^4.2.0",
120
122
  "@vitest/browser-playwright": "^4.0.16",
121
123
  "@vitest/coverage-v8": "^4.0.16",
122
- "chromatic": "^13.3.4",
124
+ "chromatic": "^15.2.0",
125
+ "dotenv-cli": "^11.0.0",
123
126
  "eslint": "^9.39.2",
124
127
  "eslint-plugin-react": "^7.37.5",
125
128
  "eslint-plugin-react-hooks": "^7.0.1",
@@ -130,16 +133,15 @@
130
133
  "playwright": "^1.57.0",
131
134
  "prettier": "^3.7.4",
132
135
  "rimraf": "^6.0.1",
133
- "storybook": "^10.1.10",
136
+ "storybook": "^10.2.3",
134
137
  "style-dictionary": "^4.4.0",
135
- "@swc/core": "^1.13.5",
136
- "@swc/jest": "^0.2.38",
137
138
  "typescript": "^5.3.0",
138
139
  "vite": "^7.3.0",
139
140
  "vite-plugin-dts": "^4.5.4",
140
141
  "vitest": "^4.0.16"
141
142
  },
142
143
  "overrides": {
144
+ "minimatch": "^10.2.3",
143
145
  "undici": "^6.23.0",
144
146
  "lodash": "^4.17.21",
145
147
  "test-exclude": "^7.0.1"
package/README.npm.md DELETED
@@ -1,132 +0,0 @@
1
- # MRS UI Design System
2
-
3
- A cromprehensive design system Based on Material UI, with 53 production ready React components and TypeScript support...
4
-
5
- **📚 [View Component Documentation →](https://atipicus.github.io/mrs-ui/)**
6
-
7
- ## 🚀 Features
8
-
9
- - ✅ **53 Production Components** (31 atoms + 22 molecules)
10
- - ✅ **TypeScript Support** - Full type safety with strict mode
11
- - ✅ **Material-UI v6.5** - Latest Material-UI features
12
- - ✅ **Tree-shakeable** - Import only what you need
13
- - ✅ **Comprehensive Testing** - 1,213 tests passing
14
- - ✅ **80%+ Test Coverage** - High quality enforced
15
- - ✅ **Code Splitting** - Optimized for performance
16
- - ✅ **Lazy Loading** - Load components on-demand (70% smaller bundles)
17
- - ✅ **Design Tokens** - Multi-format exports (CSS, SCSS, TypeScript, JSON)
18
- - ✅ **Dual Module Support** - ESM and CommonJS
19
- - ✅ **Responsive** - Mobile-first design
20
- - ✅ **Accessible** - WCAG compliant
21
-
22
- ## 📦 Installation
23
-
24
- ```bash
25
- npm install @atipicus/mrs-ui
26
- ```
27
-
28
- ### Peer Dependencies
29
-
30
- ```bash
31
- npm install @mui/material @emotion/react @emotion/styled react react-dom
32
- ```
33
-
34
- ### Required Fonts
35
-
36
- Add Nunito font to your HTML `<head>`:
37
-
38
- ```html
39
- <link rel="preconnect" href="https://fonts.googleapis.com" />
40
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
41
- <link
42
- href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap"
43
- rel="stylesheet"
44
- />
45
- ```
46
-
47
- ## 🎯 Quick Start
48
-
49
- ```tsx
50
- import { Button, TextField, Container, Stack, ThemeProvider, theme } from '@atipicus/mrs-ui';
51
- import CssBaseline from '@mui/material/CssBaseline';
52
-
53
- function App() {
54
- return (
55
- <ThemeProvider theme={theme}>
56
- <CssBaseline />
57
- <Container maxWidth="lg">
58
- <Stack spacing={2}>
59
- <TextField label="Email" variant="outlined" />
60
- <Button variant="contained" color="primary">
61
- Sign In
62
- </Button>
63
- </Stack>
64
- </Container>
65
- </ThemeProvider>
66
- );
67
- }
68
- ```
69
-
70
- ## ⚡ Lazy Loading (NEW in v0.12.0)
71
-
72
- Optimize bundle size by loading heavy components on-demand:
73
-
74
- ```tsx
75
- import { Suspense } from 'react';
76
- import { CircularProgress } from '@atipicus/mrs-ui';
77
- import { LazyTable, LazyDatePicker } from '@atipicus/mrs-ui/lazy';
78
-
79
- <Suspense fallback={<CircularProgress />}>
80
- <LazyTable /> {/* Saves 70 KB */}
81
- <LazyDatePicker /> {/* Saves 195 KB */}
82
- </Suspense>
83
- ```
84
-
85
- ## 📚 Components
86
-
87
- ### Atoms (31 components)
88
- Avatar, Badge, Box, Button, Checkbox, Chip, CircularProgress, Container, Divider, FormControlLabel, FormGroup, Grid, Icon, IconButton, LinearProgress, Link, MaterialSymbol, MenuItem, Paper, Radio, RadioGroup, Select, Skeleton, Slider, Stack, Switch, TextField, Toolbar, Tooltip, Typography, and more.
89
-
90
- ### Molecules (22 components)
91
- Accordion, Alert, AppBar, Autocomplete, BottomNavigation, ButtonGroup, Card, DatePicker, DateTimePicker, Dialog, Drawer, List, ListItem, Menu, Pagination, Rating, Snackbar, SpeedDial, Stepper, Table, Tabs, TimePicker.
92
-
93
- ## 🎨 Design Tokens
94
-
95
- Access 470+ design tokens in multiple formats:
96
-
97
- ```tsx
98
- // TypeScript
99
- import { colors, shape, typography } from '@atipicus/mrs-ui/theme';
100
-
101
- // CSS Variables
102
- @import '@atipicus/mrs-ui/tokens/generated/css/tokens.css';
103
-
104
- // SCSS Variables
105
- @import '@atipicus/mrs-ui/tokens/generated/scss/tokens';
106
- ```
107
-
108
- ## 📖 Documentation
109
-
110
- - **[Component Documentation](https://atipicus.github.io/mrs-ui/)** - Interactive Storybook
111
- - **[API Reference](https://github.com/Atipicus/mrs-ui/blob/main/docs/API-REFERENCE.md)** - Complete API
112
- - **[Lazy Loading Guide](https://github.com/Atipicus/mrs-ui/blob/main/docs/guides/LazyLoading.md)** - Bundle optimization
113
- - **[Best Practices](https://github.com/Atipicus/mrs-ui/blob/main/docs/BEST-PRACTICES.md)** - Development patterns
114
-
115
- ## 🤝 Contributing
116
-
117
- We welcome contributions! See our [Contributing Guide](https://github.com/Atipicus/mrs-ui/blob/main/CONTRIBUTING.md).
118
-
119
- ## 📝 License
120
-
121
- UNLICENSED - This project is proprietary software.
122
-
123
- ## 🔗 Links
124
-
125
- - [npm Package](https://www.npmjs.com/package/@atipicus/mrs-ui)
126
- - [Storybook Documentation](https://atipicus.github.io/mrs-ui/)
127
- - [GitHub Repository](https://github.com/Atipicus/mrs-ui)
128
-
129
- ---
130
-
131
- **Version**: 0.12.0
132
- **Last Updated**: January 23, 2026
@@ -1,6 +0,0 @@
1
- import { T, T as T2 } from "./TimePicker-Bt5plyjC.mjs";
2
- export {
3
- T as TimePicker,
4
- T2 as default
5
- };
6
- //# sourceMappingURL=index-B4_KKxHQ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-B4_KKxHQ.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Bp_39Kmf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-C4N6hqG7.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-C4a5SkEO.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,12 +0,0 @@
1
- import { T, c, f, a, d, b, e, T as T2 } from "./Table-BrEk_oGh.mjs";
2
- export {
3
- T as Table,
4
- c as TableBody,
5
- f as TableCell,
6
- a as TableContainer,
7
- d as TableFooter,
8
- b as TableHead,
9
- e as TableRow,
10
- T2 as default
11
- };
12
- //# sourceMappingURL=index-CLLVDdFI.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CLLVDdFI.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { D, D as D2 } from "./DateTimePicker-Xho8h3ww.mjs";
2
- export {
3
- D as DateTimePicker,
4
- D2 as default
5
- };
6
- //# sourceMappingURL=index-CxB9Lb7L.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CxB9Lb7L.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- import { D, D as D2 } from "./Drawer-9nL7gecl.mjs";
2
- export {
3
- D as Drawer,
4
- D2 as default
5
- };
6
- //# sourceMappingURL=index-DGbzI3ul.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DGbzI3ul.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DQLiGYRv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DgpKiomn.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DrHcCXwi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-xewrdUFS.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1,6 +0,0 @@
1
- import { D, D as D2 } from "./DatePicker-BKPeAHBW.mjs";
2
- export {
3
- D as DatePicker,
4
- D2 as default
5
- };
6
- //# sourceMappingURL=index-zqX2ktfd.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-zqX2ktfd.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}