@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
package/dist/index.mjs CHANGED
@@ -93,12 +93,12 @@ const ComponentAlertLightWarningOutlinedForeground = "#3e2410";
93
93
  const ComponentAlertLightWarningOutlinedBorder = "#dfa00a";
94
94
  const ComponentAlertLightWarningStandardBackground = "#fff4e5";
95
95
  const ComponentAlertLightWarningStandardForeground = "#3e2410";
96
- const ComponentAlertLightInfoFilledBackground = "#125c87";
96
+ const ComponentAlertLightInfoFilledBackground = "#2481b8";
97
97
  const ComponentAlertLightInfoFilledForeground = "#ffffff";
98
- const ComponentAlertLightInfoOutlinedBackground = "#e5f6fd";
98
+ const ComponentAlertLightInfoOutlinedBackground = "#bad7e9";
99
99
  const ComponentAlertLightInfoOutlinedForeground = "#014361";
100
- const ComponentAlertLightInfoOutlinedBorder = "#125c87";
101
- const ComponentAlertLightInfoStandardBackground = "#e5f6fd";
100
+ const ComponentAlertLightInfoOutlinedBorder = "#2481b8";
101
+ const ComponentAlertLightInfoStandardBackground = "#bad7e9";
102
102
  const ComponentAlertLightInfoStandardForeground = "#014361";
103
103
  const ComponentAlertLightSuccessFilledBackground = "#2e7d32";
104
104
  const ComponentAlertLightSuccessFilledForeground = "#ffffff";
@@ -150,6 +150,7 @@ const ComponentChipDefaultEnabledBorder = "#bdbdbd";
150
150
  const ComponentAvatarBorderRadius = "9999px";
151
151
  const ComponentAvatarSmall = "24px";
152
152
  const ComponentAvatarMedium = "40px";
153
+ const ComponentAvatarLarge = "56px";
153
154
  const ComponentInputLightStandardEnabledBorder = "#0000006b";
154
155
  const ComponentInputLightFilledEnabledFill = "#0000000a";
155
156
  const ComponentInputLightOutlinedEnabledBorder = "#0000003b";
@@ -160,16 +161,6 @@ const ComponentInputDarkFilledEnabledFill = "#ffffff14";
160
161
  const ComponentInputDarkOutlinedEnabledBorder = "#ffffff3b";
161
162
  const ComponentRatingActiveFill = "#ffb400";
162
163
  const ComponentRatingEnabledBorder = "#0000003b";
163
- const ComponentSidenavWidthCollapsed = "64px";
164
- const ComponentSidenavWidthExpanded = "240px";
165
- const ComponentSidenavLightItemHoverBackground = "#00000014";
166
- const ComponentSidenavLightItemSelectedBackground = "#0099991f";
167
- const ComponentSidenavLightItemSelectedForeground = "#00686f";
168
- const ComponentSidenavLightBorderRadius = "8px";
169
- const ComponentSidenavDarkItemHoverBackground = "#ffffff14";
170
- const ComponentSidenavDarkItemSelectedBackground = "#0099993d";
171
- const ComponentSidenavDarkItemSelectedForeground = "#66b2b2";
172
- const ComponentSidenavDarkBorderRadius = "8px";
173
164
  const ComponentPaperLightElevation0 = "#ffffff";
174
165
  const ComponentPaperLightElevation1 = "#ffffff";
175
166
  const ComponentPaperLightElevation2 = "#ffffff";
@@ -188,9 +179,69 @@ const ComponentTableDarkBorder = "#ffffff1f";
188
179
  const ComponentTableDarkHeaderBackground = "#1e1e1e";
189
180
  const ComponentCardLightBorderRadius = "12px";
190
181
  const ComponentCardDarkBorderRadius = "12px";
182
+ const PrimitivesColorsBrandVerones = "#00686f";
183
+ const PrimitivesColorsBrandLima = "#99cc00";
191
184
  const PrimitivesColorsNeutralWhite = "#ffffff";
185
+ const PrimitivesColorsNeutralBlack = "#000000";
186
+ const PrimitivesColorsNeutralGray50 = "#fafafa";
187
+ const PrimitivesColorsNeutralGray100 = "#f5f5f5";
188
+ const PrimitivesColorsNeutralGray200 = "#eeeeee";
189
+ const PrimitivesColorsNeutralGray300 = "#e0e0e0";
190
+ const PrimitivesColorsNeutralGray400 = "#bdbdbd";
191
+ const PrimitivesColorsNeutralGray500 = "#9e9e9e";
192
192
  const PrimitivesColorsNeutralGray600 = "#757575";
193
+ const PrimitivesColorsNeutralGray700 = "#616161";
194
+ const PrimitivesColorsNeutralGray800 = "#424242";
195
+ const PrimitivesColorsNeutralGray900 = "#212121";
196
+ const PrimitivesColorsStatusError50 = "#fdeded";
197
+ const PrimitivesColorsStatusError100 = "#f8b8b8";
198
+ const PrimitivesColorsStatusError500 = "#ab1a1a";
199
+ const PrimitivesColorsStatusError600 = "#8b1515";
200
+ const PrimitivesColorsStatusError700 = "#5f2120";
201
+ const PrimitivesColorsStatusWarning50 = "#fff4e5";
202
+ const PrimitivesColorsStatusWarning500 = "#dfa00a";
203
+ const PrimitivesColorsStatusWarning600 = "#b88308";
204
+ const PrimitivesColorsStatusWarning700 = "#3e2410";
205
+ const PrimitivesColorsStatusInfo50 = "#bad7e9";
206
+ const PrimitivesColorsStatusInfo100 = "#d1daf0";
207
+ const PrimitivesColorsStatusInfo500 = "#2481b8";
208
+ const PrimitivesColorsStatusInfo600 = "#125c87";
209
+ const PrimitivesColorsStatusInfo700 = "#014361";
210
+ const PrimitivesColorsStatusInfo800 = "#0c225a";
211
+ const PrimitivesColorsStatusSuccess50 = "#edf7ed";
212
+ const PrimitivesColorsStatusSuccess100 = "#b3d1c7";
213
+ const PrimitivesColorsStatusSuccess500 = "#2e7d32";
214
+ const PrimitivesColorsStatusSuccess600 = "#036642";
215
+ const PrimitivesColorsStatusSuccess700 = "#1e4620";
216
+ const PrimitivesColorsStatusSuccess800 = "#023321";
217
+ const PrimitivesColorsAlphaBlack4 = "#0000000a";
218
+ const PrimitivesColorsAlphaBlack8 = "#00000014";
219
+ const PrimitivesColorsAlphaBlack12 = "#0000001f";
220
+ const PrimitivesColorsAlphaBlack23 = "#0000003b";
221
+ const PrimitivesColorsAlphaBlack26 = "#00000042";
222
+ const PrimitivesColorsAlphaBlack38 = "#00000061";
223
+ const PrimitivesColorsAlphaBlack42 = "#0000006b";
224
+ const PrimitivesColorsAlphaBlack56 = "#0000008f";
225
+ const PrimitivesColorsAlphaBlack60 = "#00000099";
226
+ const PrimitivesColorsAlphaBlack87 = "#000000de";
227
+ const PrimitivesColorsAlphaWhite8 = "#ffffff14";
228
+ const PrimitivesColorsAlphaWhite12 = "#ffffff1f";
229
+ const PrimitivesColorsAlphaWhite16 = "#ffffff29";
230
+ const PrimitivesColorsAlphaWhite23 = "#ffffff3b";
231
+ const PrimitivesColorsAlphaWhite26 = "#ffffff42";
193
232
  const PrimitivesColorsAlphaWhite30 = "#ffffff4d";
233
+ const PrimitivesColorsAlphaWhite42 = "#ffffff6b";
234
+ const PrimitivesColorsAlphaWhite50 = "#ffffff80";
235
+ const PrimitivesColorsAlphaWhite70 = "#ffffffb3";
236
+ const PrimitivesColorsAlphaWhite100 = "#ffffff";
237
+ const PrimitivesColorsAlphaPrimary8 = "#00999914";
238
+ const PrimitivesColorsAlphaPrimary12 = "#0099991f";
239
+ const PrimitivesColorsAlphaPrimary16 = "#00999929";
240
+ const PrimitivesColorsAlphaPrimary25 = "#00999940";
241
+ const PrimitivesColorsAlphaPrimary24Dark = "#0099993d";
242
+ const PrimitivesColorsAlphaPrimary32Dark = "#00999952";
243
+ const PrimitivesColorsAlphaPrimary40Dark = "#00999966";
244
+ const PrimitivesColorsSpecialRating = "#ffb400";
194
245
  const PrimitivesMotionDurationFast = "100ms";
195
246
  const PrimitivesMotionDurationBase = "200ms";
196
247
  const PrimitivesMotionDurationModerate = "300ms";
@@ -233,7 +284,7 @@ const SemanticColorLightWarningMain = "#dfa00a";
233
284
  const SemanticColorLightWarningDark = "#b88308";
234
285
  const SemanticColorLightWarningLight = "#f5b642";
235
286
  const SemanticColorLightWarningContrastText = "#000000de";
236
- const SemanticColorLightInfoMain = "#143996";
287
+ const SemanticColorLightInfoMain = "#125c87";
237
288
  const SemanticColorLightInfoDark = "#0c225a";
238
289
  const SemanticColorLightInfoLight = "#d1daf0";
239
290
  const SemanticColorLightInfoContrastText = "#ffffff";
@@ -269,8 +320,8 @@ const SemanticColorDarkWarningDark = "#dfa00a";
269
320
  const SemanticColorDarkWarningLight = "#fff4e5";
270
321
  const SemanticColorDarkWarningContrastText = "#000000";
271
322
  const SemanticColorDarkInfoMain = "#64b5f6";
272
- const SemanticColorDarkInfoDark = "#125c87";
273
- const SemanticColorDarkInfoLight = "#e5f6fd";
323
+ const SemanticColorDarkInfoDark = "#2481b8";
324
+ const SemanticColorDarkInfoLight = "#bad7e9";
274
325
  const SemanticColorDarkInfoContrastText = "#000000";
275
326
  const SemanticColorDarkSuccessMain = "#81c784";
276
327
  const SemanticColorDarkSuccessDark = "#2e7d32";
@@ -421,7 +472,7 @@ const shapeTokens = {
421
472
  sm: 4,
422
473
  md: 8,
423
474
  lg: 12,
424
- xl: 24,
475
+ xl: 20,
425
476
  rounded: 9999
426
477
  // pill shape
427
478
  };
@@ -480,7 +531,153 @@ const lightTokens = {
480
531
  disabled: SemanticColorLightActionDisabled,
481
532
  disabledBackground: SemanticColorLightActionDisabledBackground
482
533
  },
483
- divider: SemanticColorLightDivider
534
+ divider: SemanticColorLightDivider,
535
+ primitives: {
536
+ brand: {
537
+ veronesMain: PrimitivesColorsBrandVerones,
538
+ lima: PrimitivesColorsBrandLima
539
+ },
540
+ neutral: {
541
+ white: PrimitivesColorsNeutralWhite,
542
+ black: PrimitivesColorsNeutralBlack,
543
+ gray: {
544
+ 50: PrimitivesColorsNeutralGray50,
545
+ 100: PrimitivesColorsNeutralGray100,
546
+ 200: PrimitivesColorsNeutralGray200,
547
+ 300: PrimitivesColorsNeutralGray300,
548
+ 400: PrimitivesColorsNeutralGray400,
549
+ 500: PrimitivesColorsNeutralGray500,
550
+ 600: PrimitivesColorsNeutralGray600,
551
+ 700: PrimitivesColorsNeutralGray700,
552
+ 800: PrimitivesColorsNeutralGray800,
553
+ 900: PrimitivesColorsNeutralGray900
554
+ }
555
+ },
556
+ status: {
557
+ error: {
558
+ 50: PrimitivesColorsStatusError50,
559
+ 100: PrimitivesColorsStatusError100,
560
+ 500: PrimitivesColorsStatusError500,
561
+ 600: PrimitivesColorsStatusError600,
562
+ 700: PrimitivesColorsStatusError700
563
+ },
564
+ warning: {
565
+ 50: PrimitivesColorsStatusWarning50,
566
+ 500: PrimitivesColorsStatusWarning500,
567
+ 600: PrimitivesColorsStatusWarning600,
568
+ 700: PrimitivesColorsStatusWarning700
569
+ },
570
+ info: {
571
+ 50: PrimitivesColorsStatusInfo50,
572
+ 100: PrimitivesColorsStatusInfo100,
573
+ 500: PrimitivesColorsStatusInfo500,
574
+ 600: PrimitivesColorsStatusInfo600,
575
+ 700: PrimitivesColorsStatusInfo700,
576
+ 800: PrimitivesColorsStatusInfo800
577
+ },
578
+ success: {
579
+ 50: PrimitivesColorsStatusSuccess50,
580
+ 100: PrimitivesColorsStatusSuccess100,
581
+ 500: PrimitivesColorsStatusSuccess500,
582
+ 600: PrimitivesColorsStatusSuccess600,
583
+ 700: PrimitivesColorsStatusSuccess700,
584
+ 800: PrimitivesColorsStatusSuccess800
585
+ }
586
+ },
587
+ alpha: {
588
+ black: {
589
+ 4: PrimitivesColorsAlphaBlack4,
590
+ 8: PrimitivesColorsAlphaBlack8,
591
+ 12: PrimitivesColorsAlphaBlack12,
592
+ 23: PrimitivesColorsAlphaBlack23,
593
+ 26: PrimitivesColorsAlphaBlack26,
594
+ 38: PrimitivesColorsAlphaBlack38,
595
+ 42: PrimitivesColorsAlphaBlack42,
596
+ 56: PrimitivesColorsAlphaBlack56,
597
+ 60: PrimitivesColorsAlphaBlack60,
598
+ 87: PrimitivesColorsAlphaBlack87
599
+ },
600
+ white: {
601
+ 8: PrimitivesColorsAlphaWhite8,
602
+ 12: PrimitivesColorsAlphaWhite12,
603
+ 16: PrimitivesColorsAlphaWhite16,
604
+ 23: PrimitivesColorsAlphaWhite23,
605
+ 26: PrimitivesColorsAlphaWhite26,
606
+ 30: PrimitivesColorsAlphaWhite30,
607
+ 42: PrimitivesColorsAlphaWhite42,
608
+ 50: PrimitivesColorsAlphaWhite50,
609
+ 70: PrimitivesColorsAlphaWhite70,
610
+ 100: PrimitivesColorsAlphaWhite100
611
+ },
612
+ primary: {
613
+ 8: PrimitivesColorsAlphaPrimary8,
614
+ 12: PrimitivesColorsAlphaPrimary12,
615
+ 16: PrimitivesColorsAlphaPrimary16,
616
+ 25: PrimitivesColorsAlphaPrimary25,
617
+ "24-dark": PrimitivesColorsAlphaPrimary24Dark,
618
+ "32-dark": PrimitivesColorsAlphaPrimary32Dark,
619
+ "40-dark": PrimitivesColorsAlphaPrimary40Dark
620
+ }
621
+ },
622
+ special: {
623
+ rating: PrimitivesColorsSpecialRating
624
+ }
625
+ },
626
+ semantic: {
627
+ primary: {
628
+ main: SemanticColorLightPrimaryMain,
629
+ dark: SemanticColorLightPrimaryDark,
630
+ light: SemanticColorLightPrimaryLight,
631
+ contrastText: SemanticColorLightPrimaryContrastText
632
+ },
633
+ secondary: {
634
+ main: SemanticColorLightSecondaryMain,
635
+ dark: SemanticColorLightSecondaryDark,
636
+ light: SemanticColorLightSecondaryLight,
637
+ contrastText: SemanticColorLightSecondaryContrastText
638
+ },
639
+ error: {
640
+ main: SemanticColorLightErrorMain,
641
+ dark: SemanticColorLightErrorDark,
642
+ light: SemanticColorLightErrorLight,
643
+ contrastText: SemanticColorLightErrorContrastText
644
+ },
645
+ warning: {
646
+ main: SemanticColorLightWarningMain,
647
+ dark: SemanticColorLightWarningDark,
648
+ light: SemanticColorLightWarningLight,
649
+ contrastText: SemanticColorLightWarningContrastText
650
+ },
651
+ info: {
652
+ main: SemanticColorLightInfoMain,
653
+ dark: SemanticColorLightInfoDark,
654
+ light: SemanticColorLightInfoLight,
655
+ contrastText: SemanticColorLightInfoContrastText
656
+ },
657
+ success: {
658
+ main: SemanticColorLightSuccessMain,
659
+ dark: SemanticColorLightSuccessDark,
660
+ light: SemanticColorLightSuccessLight,
661
+ contrastText: SemanticColorLightSuccessContrastText
662
+ },
663
+ background: {
664
+ default: SemanticColorLightBackgroundDefault,
665
+ paper: SemanticColorLightBackgroundPaper
666
+ },
667
+ text: {
668
+ primary: SemanticColorLightTextPrimary,
669
+ secondary: SemanticColorLightTextSecondary,
670
+ disabled: SemanticColorLightTextDisabled
671
+ },
672
+ action: {
673
+ active: SemanticColorLightActionActive,
674
+ hover: SemanticColorLightActionHover,
675
+ selected: SemanticColorLightActionSelected,
676
+ disabled: SemanticColorLightActionDisabled,
677
+ disabledBackground: SemanticColorLightActionDisabledBackground
678
+ },
679
+ divider: SemanticColorLightDivider
680
+ }
484
681
  },
485
682
  components: {
486
683
  alert: {
@@ -756,6 +953,135 @@ const darkTokens = {
756
953
  }
757
954
  }
758
955
  };
956
+ const styleCompositions = {
957
+ /**
958
+ * Button style compositions
959
+ * Used by: MuiButton, MuiFab, MuiToggleButton
960
+ */
961
+ button: {
962
+ /**
963
+ * Base button styles
964
+ */
965
+ base: () => ({
966
+ fontWeight: typographyTokens.fontWeightSemiBold,
967
+ textTransform: "none",
968
+ borderRadius: shapeTokens.md,
969
+ transition: "all 0.2s ease"
970
+ }),
971
+ /**
972
+ * Button size variants
973
+ */
974
+ sizes: {
975
+ small: {
976
+ fontSize: "0.8125rem",
977
+ padding: "4px 10px"
978
+ },
979
+ medium: {
980
+ fontSize: "0.875rem",
981
+ padding: "6px 16px"
982
+ },
983
+ large: {
984
+ fontSize: "1rem",
985
+ padding: "8px 22px"
986
+ }
987
+ },
988
+ /**
989
+ * Button state styles
990
+ */
991
+ states: {
992
+ disabled: () => ({
993
+ opacity: 0.5,
994
+ cursor: "not-allowed",
995
+ pointerEvents: "none"
996
+ })
997
+ }
998
+ },
999
+ /**
1000
+ * List item style compositions
1001
+ * Used by: MuiListItem, MuiListItemButton
1002
+ */
1003
+ listItem: {
1004
+ /**
1005
+ * Base list item styles
1006
+ */
1007
+ base: () => ({
1008
+ borderRadius: shapeTokens.sm,
1009
+ transition: "all 0.2s ease"
1010
+ }),
1011
+ /**
1012
+ * List item state styles
1013
+ */
1014
+ states: {
1015
+ selected: (theme2) => ({
1016
+ backgroundColor: theme2.palette.action.selected,
1017
+ fontWeight: typographyTokens.fontWeightSemiBold
1018
+ }),
1019
+ hover: (theme2) => ({
1020
+ backgroundColor: theme2.palette.action.hover
1021
+ }),
1022
+ disabled: () => ({
1023
+ opacity: 0.5,
1024
+ cursor: "not-allowed",
1025
+ pointerEvents: "none"
1026
+ })
1027
+ }
1028
+ },
1029
+ /**
1030
+ * Chip style compositions
1031
+ * Used by: MuiChip
1032
+ */
1033
+ chip: {
1034
+ /**
1035
+ * Base chip styles
1036
+ */
1037
+ base: () => ({
1038
+ borderRadius: shapeTokens.rounded,
1039
+ fontWeight: typographyTokens.fontWeightMedium,
1040
+ transition: "all 0.2s ease"
1041
+ }),
1042
+ /**
1043
+ * Chip size variants
1044
+ */
1045
+ sizes: {
1046
+ small: {
1047
+ fontSize: "0.75rem",
1048
+ padding: "4px 8px"
1049
+ },
1050
+ medium: {
1051
+ fontSize: "0.875rem",
1052
+ padding: "6px 12px"
1053
+ }
1054
+ },
1055
+ /**
1056
+ * Chip state styles
1057
+ */
1058
+ states: {
1059
+ disabled: () => ({
1060
+ opacity: 0.5,
1061
+ cursor: "not-allowed"
1062
+ })
1063
+ }
1064
+ },
1065
+ /**
1066
+ * Typography weight shortcuts
1067
+ */
1068
+ typography: {
1069
+ bold: { fontWeight: typographyTokens.fontWeightBold },
1070
+ semiBold: { fontWeight: typographyTokens.fontWeightSemiBold },
1071
+ medium: { fontWeight: typographyTokens.fontWeightMedium },
1072
+ regular: { fontWeight: typographyTokens.fontWeightRegular },
1073
+ light: { fontWeight: typographyTokens.fontWeightLight }
1074
+ },
1075
+ /**
1076
+ * Border radius shortcuts
1077
+ */
1078
+ borderRadius: {
1079
+ small: { borderRadius: shapeTokens.sm },
1080
+ medium: { borderRadius: shapeTokens.md },
1081
+ large: { borderRadius: shapeTokens.lg },
1082
+ rounded: { borderRadius: shapeTokens.rounded }
1083
+ }
1084
+ };
759
1085
  const spacing$1 = (factor) => {
760
1086
  const baseUnit = 8;
761
1087
  return baseUnit * factor;
@@ -770,9 +1096,7 @@ const getComponentOverrides = (mode) => {
770
1096
  // =========================================================================
771
1097
  MuiCssBaseline: {
772
1098
  styleOverrides: {
773
- body: {
774
- fontFamily: typography2.fontFamily
775
- },
1099
+ body: {},
776
1100
  // Apply Nunito font globally
777
1101
  "*": {
778
1102
  fontFamily: "inherit"
@@ -788,36 +1112,22 @@ const getComponentOverrides = (mode) => {
788
1112
  },
789
1113
  styleOverrides: {
790
1114
  root: {
791
- borderRadius: shape2.md,
792
- textTransform: "none",
793
- fontWeight: typography2.fontWeightSemiBold,
794
- fontFamily: typography2.fontFamily
795
- },
796
- sizeSmall: {
797
- fontSize: "0.8125rem",
798
- padding: "4px 10px"
799
- },
800
- sizeMedium: {
801
- fontSize: "0.875rem",
802
- padding: "6px 16px"
1115
+ ...styleCompositions.button.base(),
1116
+ textTransform: "none"
803
1117
  },
804
- sizeLarge: {
805
- fontSize: "1rem",
806
- padding: "8px 22px"
807
- }
1118
+ sizeSmall: styleCompositions.button.sizes.small,
1119
+ sizeMedium: styleCompositions.button.sizes.medium,
1120
+ sizeLarge: styleCompositions.button.sizes.large
808
1121
  }
809
1122
  },
810
1123
  MuiIconButton: {
811
1124
  styleOverrides: {
812
- root: {
813
- fontFamily: typography2.fontFamily
814
- }
1125
+ root: {}
815
1126
  }
816
1127
  },
817
1128
  MuiToggleButton: {
818
1129
  styleOverrides: {
819
1130
  root: {
820
- fontFamily: typography2.fontFamily,
821
1131
  textTransform: "none"
822
1132
  }
823
1133
  }
@@ -848,16 +1158,13 @@ const getComponentOverrides = (mode) => {
848
1158
  variant: "outlined"
849
1159
  },
850
1160
  styleOverrides: {
851
- root: {
852
- fontFamily: typography2.fontFamily
853
- }
1161
+ root: {}
854
1162
  }
855
1163
  },
856
1164
  MuiOutlinedInput: {
857
1165
  styleOverrides: {
858
1166
  root: {
859
- fontFamily: typography2.fontFamily,
860
- borderRadius: shape2.sm
1167
+ borderRadius: shape2.md
861
1168
  },
862
1169
  notchedOutline: {
863
1170
  borderColor: modeTokens.components.input.outlined.enabledBorder
@@ -867,17 +1174,14 @@ const getComponentOverrides = (mode) => {
867
1174
  MuiFilledInput: {
868
1175
  styleOverrides: {
869
1176
  root: {
870
- fontFamily: typography2.fontFamily,
871
1177
  backgroundColor: modeTokens.components.input.filled.enabledFill,
872
- borderRadius: `${shape2.sm}px ${shape2.sm}px 0 0`
1178
+ borderRadius: `${shape2.md}px ${shape2.md}px 0 0`
873
1179
  }
874
1180
  }
875
1181
  },
876
1182
  MuiInput: {
877
1183
  styleOverrides: {
878
- root: {
879
- fontFamily: typography2.fontFamily
880
- },
1184
+ root: {},
881
1185
  underline: {
882
1186
  "&:before": {
883
1187
  borderBottomColor: modeTokens.components.input.standard.enabledBorder
@@ -887,23 +1191,17 @@ const getComponentOverrides = (mode) => {
887
1191
  },
888
1192
  MuiInputLabel: {
889
1193
  styleOverrides: {
890
- root: {
891
- fontFamily: typography2.fontFamily
892
- }
1194
+ root: {}
893
1195
  }
894
1196
  },
895
1197
  MuiSelect: {
896
1198
  styleOverrides: {
897
- root: {
898
- fontFamily: typography2.fontFamily
899
- }
1199
+ root: {}
900
1200
  }
901
1201
  },
902
1202
  MuiAutocomplete: {
903
1203
  styleOverrides: {
904
- root: {
905
- fontFamily: typography2.fontFamily
906
- }
1204
+ root: {}
907
1205
  }
908
1206
  },
909
1207
  // =========================================================================
@@ -945,8 +1243,7 @@ const getComponentOverrides = (mode) => {
945
1243
  MuiChip: {
946
1244
  styleOverrides: {
947
1245
  root: {
948
- fontFamily: typography2.fontFamily,
949
- borderRadius: shape2.rounded
1246
+ ...styleCompositions.chip.base()
950
1247
  },
951
1248
  outlined: {
952
1249
  borderColor: modeTokens.components.chip.defaultEnabledBorder
@@ -962,7 +1259,6 @@ const getComponentOverrides = (mode) => {
962
1259
  MuiAlert: {
963
1260
  styleOverrides: {
964
1261
  root: {
965
- fontFamily: typography2.fontFamily,
966
1262
  borderRadius: `${shape2.md}px`
967
1263
  },
968
1264
  // Filled variants
@@ -1024,9 +1320,7 @@ const getComponentOverrides = (mode) => {
1024
1320
  },
1025
1321
  MuiSnackbar: {
1026
1322
  styleOverrides: {
1027
- root: {
1028
- fontFamily: typography2.fontFamily
1029
- }
1323
+ root: {}
1030
1324
  }
1031
1325
  },
1032
1326
  // =========================================================================
@@ -1034,9 +1328,7 @@ const getComponentOverrides = (mode) => {
1034
1328
  // =========================================================================
1035
1329
  MuiPaper: {
1036
1330
  styleOverrides: {
1037
- root: {
1038
- fontFamily: typography2.fontFamily
1039
- },
1331
+ root: {},
1040
1332
  rounded: {
1041
1333
  borderRadius: shape2.md
1042
1334
  },
@@ -1054,31 +1346,25 @@ const getComponentOverrides = (mode) => {
1054
1346
  MuiCard: {
1055
1347
  styleOverrides: {
1056
1348
  root: {
1057
- borderRadius: shape2.lg,
1058
- fontFamily: typography2.fontFamily
1349
+ borderRadius: shape2.lg
1059
1350
  }
1060
1351
  }
1061
1352
  },
1062
1353
  MuiDialog: {
1063
1354
  styleOverrides: {
1064
1355
  paper: {
1065
- borderRadius: shape2.lg,
1066
- fontFamily: typography2.fontFamily
1356
+ borderRadius: shape2.lg
1067
1357
  }
1068
1358
  }
1069
1359
  },
1070
1360
  MuiDrawer: {
1071
1361
  styleOverrides: {
1072
- paper: {
1073
- fontFamily: typography2.fontFamily
1074
- }
1362
+ paper: {}
1075
1363
  }
1076
1364
  },
1077
1365
  MuiAppBar: {
1078
1366
  styleOverrides: {
1079
- root: {
1080
- fontFamily: typography2.fontFamily
1081
- }
1367
+ root: {}
1082
1368
  }
1083
1369
  },
1084
1370
  // =========================================================================
@@ -1086,15 +1372,12 @@ const getComponentOverrides = (mode) => {
1086
1372
  // =========================================================================
1087
1373
  MuiTable: {
1088
1374
  styleOverrides: {
1089
- root: {
1090
- fontFamily: typography2.fontFamily
1091
- }
1375
+ root: {}
1092
1376
  }
1093
1377
  },
1094
1378
  MuiTableCell: {
1095
1379
  styleOverrides: {
1096
1380
  root: {
1097
- fontFamily: typography2.fontFamily,
1098
1381
  borderBottomColor: modeTokens.components.table.border
1099
1382
  },
1100
1383
  head: {
@@ -1107,40 +1390,35 @@ const getComponentOverrides = (mode) => {
1107
1390
  // =========================================================================
1108
1391
  MuiList: {
1109
1392
  styleOverrides: {
1110
- root: {
1111
- fontFamily: typography2.fontFamily
1112
- }
1393
+ root: {}
1113
1394
  }
1114
1395
  },
1115
1396
  MuiListItem: {
1116
1397
  styleOverrides: {
1117
- root: {
1118
- fontFamily: typography2.fontFamily
1119
- }
1398
+ root: {}
1120
1399
  }
1121
1400
  },
1122
1401
  MuiListItemButton: {
1123
1402
  styleOverrides: {
1124
1403
  root: {
1125
- fontFamily: typography2.fontFamily,
1126
- borderRadius: shape2.sm,
1404
+ ...styleCompositions.listItem.base(),
1127
1405
  "&.Mui-selected": {
1128
- backgroundColor: modeTokens.colors.action.selected
1406
+ backgroundColor: modeTokens.colors.action.selected,
1407
+ fontWeight: typography2.fontWeightSemiBold
1129
1408
  },
1130
1409
  "&.Mui-selected:hover": {
1131
1410
  backgroundColor: modeTokens.colors.action.hover
1411
+ },
1412
+ "&:hover": {
1413
+ backgroundColor: modeTokens.colors.action.hover
1132
1414
  }
1133
1415
  }
1134
1416
  }
1135
1417
  },
1136
1418
  MuiListItemText: {
1137
1419
  styleOverrides: {
1138
- primary: {
1139
- fontFamily: typography2.fontFamily
1140
- },
1141
- secondary: {
1142
- fontFamily: typography2.fontFamily
1143
- }
1420
+ primary: {},
1421
+ secondary: {}
1144
1422
  }
1145
1423
  },
1146
1424
  MuiMenu: {
@@ -1152,9 +1430,7 @@ const getComponentOverrides = (mode) => {
1152
1430
  },
1153
1431
  MuiMenuItem: {
1154
1432
  styleOverrides: {
1155
- root: {
1156
- fontFamily: typography2.fontFamily
1157
- }
1433
+ root: {}
1158
1434
  }
1159
1435
  },
1160
1436
  // =========================================================================
@@ -1162,38 +1438,29 @@ const getComponentOverrides = (mode) => {
1162
1438
  // =========================================================================
1163
1439
  MuiTabs: {
1164
1440
  styleOverrides: {
1165
- root: {
1166
- fontFamily: typography2.fontFamily
1167
- }
1441
+ root: {}
1168
1442
  }
1169
1443
  },
1170
1444
  MuiTab: {
1171
1445
  styleOverrides: {
1172
1446
  root: {
1173
- fontFamily: typography2.fontFamily,
1174
1447
  textTransform: "none"
1175
1448
  }
1176
1449
  }
1177
1450
  },
1178
1451
  MuiBreadcrumbs: {
1179
1452
  styleOverrides: {
1180
- root: {
1181
- fontFamily: typography2.fontFamily
1182
- }
1453
+ root: {}
1183
1454
  }
1184
1455
  },
1185
1456
  MuiPagination: {
1186
1457
  styleOverrides: {
1187
- root: {
1188
- fontFamily: typography2.fontFamily
1189
- }
1458
+ root: {}
1190
1459
  }
1191
1460
  },
1192
1461
  MuiStepper: {
1193
1462
  styleOverrides: {
1194
- root: {
1195
- fontFamily: typography2.fontFamily
1196
- }
1463
+ root: {}
1197
1464
  }
1198
1465
  },
1199
1466
  // =========================================================================
@@ -1201,16 +1468,12 @@ const getComponentOverrides = (mode) => {
1201
1468
  // =========================================================================
1202
1469
  MuiTypography: {
1203
1470
  styleOverrides: {
1204
- root: {
1205
- fontFamily: typography2.fontFamily
1206
- }
1471
+ root: {}
1207
1472
  }
1208
1473
  },
1209
1474
  MuiLink: {
1210
1475
  styleOverrides: {
1211
- root: {
1212
- fontFamily: typography2.fontFamily
1213
- }
1476
+ root: {}
1214
1477
  }
1215
1478
  },
1216
1479
  // =========================================================================
@@ -1218,23 +1481,17 @@ const getComponentOverrides = (mode) => {
1218
1481
  // =========================================================================
1219
1482
  MuiAvatar: {
1220
1483
  styleOverrides: {
1221
- root: {
1222
- fontFamily: typography2.fontFamily
1223
- }
1484
+ root: {}
1224
1485
  }
1225
1486
  },
1226
1487
  MuiBadge: {
1227
1488
  styleOverrides: {
1228
- badge: {
1229
- fontFamily: typography2.fontFamily
1230
- }
1489
+ badge: {}
1231
1490
  }
1232
1491
  },
1233
1492
  MuiTooltip: {
1234
1493
  styleOverrides: {
1235
- tooltip: {
1236
- fontFamily: typography2.fontFamily
1237
- }
1494
+ tooltip: {}
1238
1495
  }
1239
1496
  },
1240
1497
  MuiDivider: {
@@ -1249,23 +1506,17 @@ const getComponentOverrides = (mode) => {
1249
1506
  // =========================================================================
1250
1507
  MuiFormControlLabel: {
1251
1508
  styleOverrides: {
1252
- label: {
1253
- fontFamily: typography2.fontFamily
1254
- }
1509
+ label: {}
1255
1510
  }
1256
1511
  },
1257
1512
  MuiFormHelperText: {
1258
1513
  styleOverrides: {
1259
- root: {
1260
- fontFamily: typography2.fontFamily
1261
- }
1514
+ root: {}
1262
1515
  }
1263
1516
  },
1264
1517
  MuiFormLabel: {
1265
1518
  styleOverrides: {
1266
- root: {
1267
- fontFamily: typography2.fontFamily
1268
- }
1519
+ root: {}
1269
1520
  }
1270
1521
  },
1271
1522
  // =========================================================================
@@ -1293,6 +1544,8 @@ const lightTheme = createTheme({
1293
1544
  text: lightTokens.colors.text,
1294
1545
  action: lightTokens.colors.action,
1295
1546
  divider: lightTokens.colors.divider,
1547
+ primitives: lightTokens.colors.primitives,
1548
+ semantic: lightTokens.colors.semantic,
1296
1549
  _components: lightTokens.components
1297
1550
  },
1298
1551
  typography: {
@@ -1371,6 +1624,7 @@ const Avatar = React.forwardRef(
1371
1624
  const getSizeToken = () => {
1372
1625
  if (size === 24) return ComponentAvatarSmall;
1373
1626
  if (size === 40) return ComponentAvatarMedium;
1627
+ if (size === 56) return ComponentAvatarLarge;
1374
1628
  return `${size}px`;
1375
1629
  };
1376
1630
  const getFontSize = () => {
@@ -2078,8 +2332,12 @@ const Select = React.forwardRef(
2078
2332
  fullWidth,
2079
2333
  sx: {
2080
2334
  fontFamily: (theme2) => theme2.typography.fontFamily,
2335
+ borderRadius: shapeTokens.lg,
2081
2336
  // Outlined variant specific styles
2082
2337
  ...variant === "outlined" && {
2338
+ "& .MuiOutlinedInput-root": {
2339
+ borderRadius: shapeTokens.lg
2340
+ },
2083
2341
  "& .MuiOutlinedInput-notchedOutline": {
2084
2342
  borderColor: (theme2) => theme2.palette._components?.input?.outlined?.enabledBorder || theme2.palette.divider
2085
2343
  },
@@ -3383,8 +3641,7 @@ const Sidenav = React.forwardRef(
3383
3641
  listSx
3384
3642
  }, ref) => {
3385
3643
  const theme2 = useTheme();
3386
- const mode = theme2.palette.mode;
3387
- const sidenavWidth = width ?? (variant === "slim" ? ComponentSidenavWidthCollapsed : ComponentSidenavWidthExpanded);
3644
+ const sidenavWidth = width ?? (variant === "slim" ? 72 : 256);
3388
3645
  const handleItemClick = (item) => {
3389
3646
  if (item.onClick) {
3390
3647
  item.onClick();
@@ -3400,18 +3657,12 @@ const Sidenav = React.forwardRef(
3400
3657
  selected: item.selected,
3401
3658
  onClick: () => handleItemClick(item),
3402
3659
  sx: {
3403
- borderRadius: mode === "light" ? ComponentSidenavLightBorderRadius : ComponentSidenavDarkBorderRadius,
3660
+ // Note: borderRadius and colors are now defined in theme.ts
3661
+ // MuiListItemButton override via sidenavTokens
3404
3662
  mx: 1,
3405
3663
  px: variant === "slim" ? 1.5 : 2,
3406
3664
  justifyContent: variant === "slim" ? "center" : "flex-start",
3407
- minHeight: 48,
3408
- "&.Mui-selected": {
3409
- backgroundColor: mode === "light" ? ComponentSidenavLightItemSelectedBackground : ComponentSidenavDarkItemSelectedBackground,
3410
- color: mode === "light" ? ComponentSidenavLightItemSelectedForeground : ComponentSidenavDarkItemSelectedForeground,
3411
- "&:hover": {
3412
- backgroundColor: mode === "light" ? ComponentSidenavLightItemHoverBackground : ComponentSidenavDarkItemHoverBackground
3413
- }
3414
- }
3665
+ minHeight: 48
3415
3666
  },
3416
3667
  children: [
3417
3668
  item.icon && /* @__PURE__ */ jsx(