@sinco/react 1.2.5-rc.15 → 1.2.5-rc.17

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
@@ -6,10 +6,9 @@ import WarningRounded from '@mui/icons-material/WarningRounded';
6
6
  import ErrorRounded from '@mui/icons-material/ErrorRounded';
7
7
  import { withEmotionCache, ThemeContext, keyframes, css } from '@emotion/react';
8
8
  import { jsx, jsxs } from 'react/jsx-runtime';
9
- import Close from '@mui/icons-material';
9
+ import Close from '@mui/icons-material/Close';
10
10
  import * as ReactDOM from 'react-dom';
11
11
  import ReactDOM__default from 'react-dom';
12
- import Close$1 from '@mui/icons-material/Close';
13
12
  import KeyboardArrowDown from '@mui/icons-material/KeyboardArrowDown';
14
13
  import KeyboardArrowUp from '@mui/icons-material/KeyboardArrowUp';
15
14
  import Info from '@mui/icons-material/Info';
@@ -8076,6 +8075,67 @@ var components = {
8076
8075
  }
8077
8076
  }
8078
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
+ });
8079
8139
 
8080
8140
  var BasicPalette = {
8081
8141
  chipInfo: {
@@ -8215,6 +8275,20 @@ var BasicPalette = {
8215
8275
  contrastText: "#5A5E73"
8216
8276
  }
8217
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);
8218
8292
  var paletteERP = _objectSpread2({
8219
8293
  primary: {
8220
8294
  50: "#E4ECF4",
@@ -12344,23 +12418,30 @@ var typography = {
12344
12418
  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)"];
12345
12419
 
12346
12420
  var BasicTheme = {
12347
- components: components,
12348
12421
  typography: typography,
12349
12422
  spacing: 8,
12350
12423
  mixins: mixins,
12351
12424
  breakpoints: breakpoints,
12352
12425
  shadows: shadows
12353
12426
  };
12427
+ var CosmoTheme = _objectSpread2({
12428
+ palette: paletteCosmos,
12429
+ components: cosmosConfig
12430
+ }, BasicTheme);
12354
12431
  var ERPTheme = _objectSpread2({
12355
- palette: paletteERP
12432
+ palette: paletteERP,
12433
+ components: components
12356
12434
  }, BasicTheme);
12357
12435
  var ADPROTheme = _objectSpread2({
12358
- palette: paletteADPRO
12436
+ palette: paletteADPRO,
12437
+ components: components
12359
12438
  }, BasicTheme);
12360
12439
  var ADCTheme = _objectSpread2({
12361
- palette: paletteADC
12440
+ palette: paletteADC,
12441
+ components: components
12362
12442
  }, BasicTheme);
12363
12443
 
12444
+ var CosmosTheme = createTheme(_objectSpread2({}, CosmoTheme));
12364
12445
  var SincoTheme = createTheme(_objectSpread2({}, ERPTheme));
12365
12446
  var AdproSincoTheme = createTheme(_objectSpread2({}, ADPROTheme));
12366
12447
  var ADCSincoTheme = createTheme(_objectSpread2({}, ADCTheme));
@@ -17737,7 +17818,7 @@ var ToastNotification = function ToastNotification(toast) {
17737
17818
  size: "small",
17738
17819
  "data-testid": "close-icon",
17739
17820
  onClick: closeToast
17740
- }, React__default.createElement(Close$1, {
17821
+ }, React__default.createElement(Close, {
17741
17822
  fontSize: "small"
17742
17823
  }))), React__default.createElement(Stack, {
17743
17824
  gap: 0.5
@@ -18079,7 +18160,7 @@ var ModalSinco = function ModalSinco(_ref) {
18079
18160
  color: "text.primary"
18080
18161
  }, title)), React__default.createElement(IconButton, {
18081
18162
  onClick: handleModal
18082
- }, React__default.createElement(Close$1, {
18163
+ }, React__default.createElement(Close, {
18083
18164
  color: 'action'
18084
18165
  }))), React__default.createElement(Stack, {
18085
18166
  py: 1,
@@ -25414,4 +25495,4 @@ var useDynamicColor = function useDynamicColor(url) {
25414
25495
  };
25415
25496
  };
25416
25497
 
25417
- 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 };
25498
+ 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.15",
3
+ "version": "1.2.5-rc.17",
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;