@sinco/react 1.2.5-rc.16 → 1.2.5-rc.18

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/index.esm.js CHANGED
@@ -8075,6 +8075,67 @@ var components = {
8075
8075
  }
8076
8076
  }
8077
8077
  };
8078
+ var cosmosConfig = _objectSpread2(_objectSpread2({}, components), {}, {
8079
+ MuiCard: {
8080
+ styleOverrides: {
8081
+ root: {
8082
+ borderRadius: "6px",
8083
+ overflow: "initial",
8084
+ boxShadow: "0px 2px 1px -2px rgba(24, 39, 75, 0.20), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 1px 3px 0px rgba(24, 39, 75, 0.12)"
8085
+ }
8086
+ }
8087
+ },
8088
+ MuiMenu: {
8089
+ styleOverrides: {
8090
+ root: {
8091
+ borderRadius: "6px"
8092
+ }
8093
+ }
8094
+ },
8095
+ MuiMenuItem: {
8096
+ styleOverrides: {
8097
+ dense: {
8098
+ height: 30,
8099
+ minHeight: 30,
8100
+ ".MuiListItemText-root > .MuiTypography-root": {
8101
+ lineHeight: "14.3px",
8102
+ letterSpacing: 0.15
8103
+ }
8104
+ },
8105
+ root: {
8106
+ borderRadius: "6px",
8107
+ padding: "7px 16px 7px 16px",
8108
+ ".MuiMenuList-root": {
8109
+ height: 34,
8110
+ minHeight: 34
8111
+ },
8112
+ ".MuiListItemText-root > .MuiTypography-root": {
8113
+ lineHeight: "20px",
8114
+ letterSpacing: 0.17
8115
+ },
8116
+ ".MuiListItemIcon-root": {
8117
+ minWidth: 32
8118
+ }
8119
+ }
8120
+ }
8121
+ },
8122
+ MuiPaper: {
8123
+ styleOverrides: {
8124
+ root: {
8125
+ borderRadius: "6px"
8126
+ }
8127
+ }
8128
+ },
8129
+ MuiPopper: {
8130
+ styleOverrides: {
8131
+ root: {
8132
+ ".MuiBox-root": {
8133
+ borderRadius: "6px"
8134
+ }
8135
+ }
8136
+ }
8137
+ }
8138
+ });
8078
8139
 
8079
8140
  var BasicPalette = {
8080
8141
  chipInfo: {
@@ -8214,6 +8275,20 @@ var BasicPalette = {
8214
8275
  contrastText: "#5A5E73"
8215
8276
  }
8216
8277
  };
8278
+ var paletteCosmos = _objectSpread2({
8279
+ primary: {
8280
+ 50: "#f3f3ff",
8281
+ 100: "#f3f3ff",
8282
+ 200: "#d6d5ff",
8283
+ 300: "#b9b3ff",
8284
+ light: "#9588fd",
8285
+ main: "#5323de",
8286
+ 500: "#7358fa",
8287
+ 600: "#6135f2",
8288
+ 800: "#451dba",
8289
+ dark: "#3a1a98"
8290
+ }
8291
+ }, BasicPalette);
8217
8292
  var paletteERP = _objectSpread2({
8218
8293
  primary: {
8219
8294
  50: "#E4ECF4",
@@ -12339,27 +12414,154 @@ var typography = {
12339
12414
  lineHeight: "48px"
12340
12415
  }
12341
12416
  };
12417
+ var cosmosTypography = {
12418
+ fontSize: 13,
12419
+ body1: {
12420
+ fontFamily: "IBM Plex Sans",
12421
+ fontSize: 14,
12422
+ fontWeight: 400,
12423
+ lineHeight: "16px",
12424
+ letterSpacing: "0.15px",
12425
+ '@media(max-width: 885px)': {
12426
+ fontSize: 15
12427
+ }
12428
+ },
12429
+ body2: {
12430
+ fontFamily: "IBM Plex Sans",
12431
+ fontSize: 13,
12432
+ fontWeight: 400,
12433
+ lineHeight: "16px",
12434
+ letterSpacing: "0.17px",
12435
+ '@media(max-width: 885px)': {
12436
+ fontSize: 14
12437
+ }
12438
+ },
12439
+ body3: _defineProperty({
12440
+ fontFamily: "IBM Plex Sans",
12441
+ fontWeight: 300,
12442
+ fontSize: 12,
12443
+ lineHeight: "16px",
12444
+ letterSpacing: "0.17px"
12445
+ }, breakpoints.down('md'), {
12446
+ fontSize: 11
12447
+ }),
12448
+ subtitle1: {
12449
+ fontFamily: "IBM Plex Sans",
12450
+ fontSize: 14,
12451
+ fontWeight: 500,
12452
+ lineHeight: "16px",
12453
+ letterSpacing: "0.15px",
12454
+ '@media(max-width: 885px)': {
12455
+ fontSize: 15
12456
+ }
12457
+ },
12458
+ subtitle2: {
12459
+ fontFamily: "IBM Plex Sans",
12460
+ fontSize: 13,
12461
+ fontWeight: 500,
12462
+ lineHeight: "16px",
12463
+ letterSpacing: "0.10px",
12464
+ '@media(max-width: 885px)': {
12465
+ fontSize: 14
12466
+ }
12467
+ },
12468
+ caption: {
12469
+ fontFamily: "IBM Plex Sans",
12470
+ fontSize: 11,
12471
+ fontWeight: 400,
12472
+ lineHeight: "14px",
12473
+ letterSpacing: "0.40px",
12474
+ '@media(max-width: 885px)': {
12475
+ fontSize: 12
12476
+ }
12477
+ },
12478
+ overline: {
12479
+ fontFamily: "IBM Plex Sans",
12480
+ fontSize: 11,
12481
+ fontWeight: 400,
12482
+ lineHeight: "24px",
12483
+ letterSpacing: "1px",
12484
+ '@media(max-width: 885px)': {
12485
+ fontSize: 12
12486
+ }
12487
+ },
12488
+ h6: {
12489
+ fontFamily: "IBM Plex Sans",
12490
+ fontSize: 16,
12491
+ fontWeight: 600,
12492
+ lineHeight: "16px",
12493
+ letterSpacing: "0.15px",
12494
+ '@media(max-width: 885px)': {
12495
+ fontSize: 17
12496
+ }
12497
+ },
12498
+ h5: {
12499
+ fontFamily: "IBM Plex Sans",
12500
+ fontSize: 18,
12501
+ fontWeight: 400,
12502
+ letterSpacing: 0,
12503
+ lineHeight: "24px"
12504
+ },
12505
+ h4: {
12506
+ fontFamily: "IBM Plex Sans",
12507
+ fontSize: 22,
12508
+ fontWeight: 600,
12509
+ lineHeight: "24px",
12510
+ letterSpacing: "0.25px"
12511
+ },
12512
+ h3: {
12513
+ fontFamily: "IBM Plex Sans",
12514
+ fontSize: 28,
12515
+ fontWeight: 400,
12516
+ lineHeight: "32px",
12517
+ letterSpacing: 0
12518
+ },
12519
+ h2: {
12520
+ fontFamily: "IBM Plex Sans",
12521
+ fontSize: 32,
12522
+ fontWeight: 400,
12523
+ lineHeight: "40px",
12524
+ letterSpacing: -0.5
12525
+ },
12526
+ h1: {
12527
+ fontFamily: "IBM Plex Sans",
12528
+ fontSize: 40,
12529
+ fontWeight: 300,
12530
+ letterSpacing: -1.5,
12531
+ lineHeight: "48px"
12532
+ }
12533
+ };
12342
12534
 
12343
12535
  var shadows = ["none", "0px 1px 3px rgba(24, 39, 75, 0.12), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 2px 1px -2px rgba(24, 39, 75, 0.2)", "0px 1px 5px rgba(24, 39, 75, 0.12), 0px 2px 2px rgba(24, 39, 75, 0.14), 0px 3px 1px -2px rgba(24, 39, 75, 0.2)", "0px 1px 8px rgba(24, 39, 75, 0.12), 0px 3px 4px rgba(24, 39, 75, 0.14), 0px 3px 3px -2px rgba(24, 39, 75, 0.2)", "0px 2px 4px -1px rgba(24, 39, 75, 0.2), 0px 4px 5px rgba(24, 39, 75, 0.14), 0px 1px 10px rgba(24, 39, 75, 0.12)", "0px 3px 5px -1px rgba(24, 39, 75, 0.2), 0px 5px 8px rgba(24, 39, 75, 0.14), 0px 1px 14px rgba(24, 39, 75, 0.12)", "0px 3px 5px -1px rgba(24, 39, 75, 0.2), 0px 6px 10px rgba(24, 39, 75, 0.14), 0px 1px 18px rgba(24, 39, 75, 0.12)", "0px 4px 5px -2px rgba(24, 39, 75, 0.2), 0px 7px 10px 1px rgba(24, 39, 75, 0.14), 0px 2px 16px 1px rgba(24, 39, 75, 0.12)", "0px 5px 5px -3px rgba(24, 39, 75, 0.2), 0px 8px 10px 1px rgba(24, 39, 75, 0.14), 0px 3px 14px 2px rgba(24, 39, 75, 0.12)", "0px 5px 6px -3px rgba(24, 39, 75, 0.2), 0px 9px 12px 1px rgba(24, 39, 75, 0.14), 0px 3px 16px 2px rgba(24, 39, 75, 0.12)", "0px 6px 6px -3px rgba(24, 39, 75, 0.2), 0px 10px 14px 1px rgba(24, 39, 75, 0.14), 0px 4px 18px 3px rgba(24, 39, 75, 0.12)", "0px 6px 7px -4px rgba(24, 39, 75, 0.2), 0px 11px 15px 1px rgba(24, 39, 75, 0.14), 0px 4px 20px 3px rgba(24, 39, 75, 0.12)", "0px 7px 8px -4px rgba(24, 39, 75, 0.2), 0px 12px 17px 2px rgba(24, 39, 75, 0.14), 0px 5px 22px 4px rgba(24, 39, 75, 0.12)", "0px 7px 8px -4px rgba(24, 39, 75, 0.2), 0px 13px 19px 2px rgba(24, 39, 75, 0.14), 0px 5px 24px 4px rgba(24, 39, 75, 0.12)", "0px 7px 9px -4px rgba(24, 39, 75, 0.2), 0px 14px 21px 2px rgba(24, 39, 75, 0.14), 0px 5px 26px 4px rgba(24, 39, 75, 0.12)", "0px 8px 9px -5px rgba(24, 39, 75, 0.2), 0px 15px 22px 2px rgba(24, 39, 75, 0.14), 0px 6px 28px 5px rgba(24, 39, 75, 0.12)", "0px 8px 10px -5px rgba(24, 39, 75, 0.2), 0px 16px 24px 2px rgba(24, 39, 75, 0.14), 0px 6px 30px 5px rgba(24, 39, 75, 0.12)", "0px 8px 11px -5px rgba(24, 39, 75, 0.2), 0px 17px 26px 2px rgba(24, 39, 75, 0.14), 0px 6px 32px 5px rgba(24, 39, 75, 0.12)", "0px 9px 11px -5px rgba(24, 39, 75, 0.2), 0px 18px 28px 2px rgba(24, 39, 75, 0.14), 0px 7px 34px 6px rgba(24, 39, 75, 0.12)", "0px 9px 12px -6px rgba(24, 39, 75, 0.2), 0px 19px 29px 2px rgba(24, 39, 75, 0.14), 0px 7px 36px 6px rgba(24, 39, 75, 0.12)", "0px 10px 13px -6px rgba(24, 39, 75, 0.2), 0px 20px 31px 3px rgba(24, 39, 75, 0.14), 0px 8px 38px 7px rgba(24, 39, 75, 0.12)", "0px 10px 13px -6px rgba(24, 39, 75, 0.2), 0px 21px 33px 3px rgba(24, 39, 75, 0.14), 0px 8px 40px 7px rgba(24, 39, 75, 0.12)", "0px 10px 14px -6px rgba(24, 39, 75, 0.2), 0px 22px 35px 3px rgba(24, 39, 75, 0.14), 0px 8px 42px 7px rgba(24, 39, 75, 0.12)", "0px 11px 14px -7px rgba(24, 39, 75, 0.2), 0px 23px 36px 3px rgba(24, 39, 75, 0.14), 0px 9px 44px 8px rgba(24, 39, 75, 0.12)", "0px 11px 15px -7px rgba(24, 39, 75, 0.2), 0px 24px 38px 3px rgba(24, 39, 75, 0.14), 0px 9px 46px 8px rgba(24, 39, 75, 0.12)"];
12344
12536
 
12345
12537
  var BasicTheme = {
12346
- components: components,
12347
- typography: typography,
12348
12538
  spacing: 8,
12349
12539
  mixins: mixins,
12350
12540
  breakpoints: breakpoints,
12351
12541
  shadows: shadows
12352
12542
  };
12543
+ var CosmoTheme = _objectSpread2({
12544
+ palette: paletteCosmos,
12545
+ components: cosmosConfig,
12546
+ typography: cosmosTypography
12547
+ }, BasicTheme);
12353
12548
  var ERPTheme = _objectSpread2({
12354
- palette: paletteERP
12549
+ palette: paletteERP,
12550
+ components: components,
12551
+ typography: typography
12355
12552
  }, BasicTheme);
12356
12553
  var ADPROTheme = _objectSpread2({
12357
- palette: paletteADPRO
12554
+ palette: paletteADPRO,
12555
+ components: components,
12556
+ typography: typography
12358
12557
  }, BasicTheme);
12359
12558
  var ADCTheme = _objectSpread2({
12360
- palette: paletteADC
12559
+ palette: paletteADC,
12560
+ components: components,
12561
+ typography: typography
12361
12562
  }, BasicTheme);
12362
12563
 
12564
+ var CosmosTheme = createTheme(_objectSpread2({}, CosmoTheme));
12363
12565
  var SincoTheme = createTheme(_objectSpread2({}, ERPTheme));
12364
12566
  var AdproSincoTheme = createTheme(_objectSpread2({}, ADPROTheme));
12365
12567
  var ADCSincoTheme = createTheme(_objectSpread2({}, ADCTheme));
@@ -25413,4 +25615,4 @@ var useDynamicColor = function useDynamicColor(url) {
25413
25615
  };
25414
25616
  };
25415
25617
 
25416
- export { ADCSincoTheme, AddCalendar, AdproSincoTheme, Ai, BarChart, BarChartHorizontal, BasicCalendar, Books, Box$1 as Box, BoxReceived, Boxes, Brick, Building, BussinesTarget, CalendarUserEvents, Call, CardRadio, Cement, Chat, CheckBill, CheckBillSearch, CheckDocSearch, CheckedCalendar, CircularChart, Click, ClipBoard, ClipBoardUser, Clock, Cloud, Coin, Config, ContactMails, Contacts, Conversation, Coupon, Crane, DaysCalendar, Develop, Diagram, Discount, Doc, DonutChart, DownloadDoc, DrawerComponent as Drawer, DrawerComponent, Drill, DuplicateTemplate, DynamicColor, EmailAddress, EmptyState, Engine, ErrorCalendar, ErrorDoc, EventsCalendar, Excavator, ExclamationBox, ExclamationCalendar, Flag, Flow, FooterAction, Gasoline, General, Hammer, Img, Law, Lego, Lift, Location, LockedFolder, Mail, Megaphone, Microphone, ModalSinco, MoneyBill, MoneyBillSearch, MoneyDoc, MoneyDocSearch, MountainFlag, Notification, OpenBox, OpenFolder, Padlock, PageHeaderComponent as PageHeader, PageHeaderComponent, PaintRoller, Pdf, PintPot, Ppt, ProgressSinco, Puzzle, QuestionBill, QuestionBillSearch, QuestionBox, QuestionDocSearch, Rar, ReceivedMail, ReloadDoc, SealedBox, SearchCountry, SearchHome, SearchMoney, SearchUser, ShippingBox, Sholve, SincoTheme, Speedometer, StackedChart, StarChart, StartPennant, Support, TextDoc, TextFolder, ToastNotification, ToolBox, TrafficCone, TrendChart, Trolly, TrollyBox, Truck, Txt, UnlockedCalendar, Upload, UploadDoc, UserConfig, UserFolder, Users, WhatsApp, Xls, Zip, stateConfig, useDynamicColor };
25618
+ export { ADCSincoTheme, AddCalendar, AdproSincoTheme, Ai, BarChart, BarChartHorizontal, BasicCalendar, Books, Box$1 as Box, BoxReceived, Boxes, Brick, Building, BussinesTarget, CalendarUserEvents, Call, CardRadio, Cement, Chat, CheckBill, CheckBillSearch, CheckDocSearch, CheckedCalendar, CircularChart, Click, ClipBoard, ClipBoardUser, Clock, Cloud, Coin, Config, ContactMails, Contacts, Conversation, CosmosTheme, Coupon, Crane, DaysCalendar, Develop, Diagram, Discount, Doc, DonutChart, DownloadDoc, DrawerComponent as Drawer, DrawerComponent, Drill, DuplicateTemplate, DynamicColor, EmailAddress, EmptyState, Engine, ErrorCalendar, ErrorDoc, EventsCalendar, Excavator, ExclamationBox, ExclamationCalendar, Flag, Flow, FooterAction, Gasoline, General, Hammer, Img, Law, Lego, Lift, Location, LockedFolder, Mail, Megaphone, Microphone, ModalSinco, MoneyBill, MoneyBillSearch, MoneyDoc, MoneyDocSearch, MountainFlag, Notification, OpenBox, OpenFolder, Padlock, PageHeaderComponent as PageHeader, PageHeaderComponent, PaintRoller, Pdf, PintPot, Ppt, ProgressSinco, Puzzle, QuestionBill, QuestionBillSearch, QuestionBox, QuestionDocSearch, Rar, ReceivedMail, ReloadDoc, SealedBox, SearchCountry, SearchHome, SearchMoney, SearchUser, ShippingBox, Sholve, SincoTheme, Speedometer, StackedChart, StarChart, StartPennant, Support, TextDoc, TextFolder, ToastNotification, ToolBox, TrafficCone, TrendChart, Trolly, TrollyBox, Truck, Txt, UnlockedCalendar, Upload, UploadDoc, UserConfig, UserFolder, Users, WhatsApp, Xls, Zip, stateConfig, useDynamicColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.5-rc.16",
3
+ "version": "1.2.5-rc.18",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,2 +1,3 @@
1
1
  import { Components, Theme } from "@mui/material";
2
2
  export declare const components: Components<Theme>;
3
+ export declare const cosmosConfig: Components<Theme>;
@@ -1,3 +1,4 @@
1
+ export declare let CosmosTheme: import("@mui/material/styles").Theme;
1
2
  export declare const SincoTheme: import("@mui/material/styles").Theme;
2
3
  export declare let AdproSincoTheme: import("@mui/material/styles").Theme;
3
4
  export declare let ADCSincoTheme: import("@mui/material/styles").Theme;
@@ -1,5 +1,6 @@
1
1
  import { PaletteOptions } from "@mui/material";
2
2
  export declare const BasicPalette: Partial<PaletteOptions>;
3
+ export declare const paletteCosmos: PaletteOptions;
3
4
  export declare const paletteERP: PaletteOptions;
4
5
  export declare const paletteADPRO: PaletteOptions;
5
6
  export declare const paletteADC: PaletteOptions;
@@ -1,4 +1,5 @@
1
1
  import { ThemeOptions } from "@mui/material/styles";
2
+ export declare const CosmoTheme: ThemeOptions;
2
3
  export declare const ERPTheme: ThemeOptions;
3
4
  export declare const ADPROTheme: ThemeOptions;
4
5
  export declare const ADCTheme: ThemeOptions;
@@ -1,3 +1,4 @@
1
1
  import { TypographyVariantsOptions } from '@mui/material/styles/createTypography';
2
2
  import "./module";
3
3
  export declare const typography: TypographyVariantsOptions;
4
+ export declare const cosmosTypography: TypographyVariantsOptions;