@sinco/react 1.2.3-rc.15 → 1.2.3-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
@@ -7369,9 +7369,6 @@ var components = {
7369
7369
  outlined: {
7370
7370
  paddingBlock: "13px"
7371
7371
  },
7372
- standard: {
7373
- // padding: "2px 0 5px"
7374
- },
7375
7372
  iconStandard: {
7376
7373
  "&.MuiSelect-iconStandard.MuiSvgIcon-root": {
7377
7374
  top: "calc(50% - .4em)"
@@ -8141,15 +8138,66 @@ var components = {
8141
8138
  }
8142
8139
  }],
8143
8140
  styleOverrides: {
8144
- message: {
8145
- padding: "0px 0px",
8146
- minWidth: 0
8141
+ message: function message(_ref8) {
8142
+ var theme = _ref8.theme;
8143
+ return {
8144
+ padding: "0px 4px",
8145
+ minWidth: 0,
8146
+ variants: [{
8147
+ props: {
8148
+ variant: "standard"
8149
+ },
8150
+ style: {
8151
+ color: theme.palette.text.primary
8152
+ }
8153
+ }]
8154
+ };
8147
8155
  },
8148
- icon: {
8149
- padding: "4px",
8150
- marginRight: 0,
8151
- display: "flex",
8152
- alignItems: "center"
8156
+ icon: function icon(_ref9) {
8157
+ var theme = _ref9.theme;
8158
+ return {
8159
+ padding: "4px",
8160
+ marginRight: 0,
8161
+ display: "flex",
8162
+ alignItems: "center",
8163
+ variants: [{
8164
+ props: {
8165
+ variant: "standard",
8166
+ color: "success"
8167
+ },
8168
+ style: {
8169
+ backgroundColor: theme.palette.success[100],
8170
+ borderRadius: 100
8171
+ }
8172
+ }, {
8173
+ props: {
8174
+ variant: "standard",
8175
+ color: "error"
8176
+ },
8177
+ style: {
8178
+ backgroundColor: theme.palette.error[100],
8179
+ borderRadius: 100
8180
+ }
8181
+ }, {
8182
+ props: {
8183
+ variant: "standard",
8184
+ color: "info"
8185
+ },
8186
+ style: {
8187
+ backgroundColor: theme.palette.info[100],
8188
+ borderRadius: 100
8189
+ }
8190
+ }, {
8191
+ props: {
8192
+ variant: "standard",
8193
+ color: "warning"
8194
+ },
8195
+ style: {
8196
+ backgroundColor: theme.palette.warning[100],
8197
+ borderRadius: 100
8198
+ }
8199
+ }]
8200
+ };
8153
8201
  },
8154
8202
  action: {
8155
8203
  display: "flex",
@@ -8418,8 +8466,8 @@ var components = {
8418
8466
  },
8419
8467
  MuiInputLabel: {
8420
8468
  styleOverrides: {
8421
- asterisk: function asterisk(_ref8) {
8422
- var theme = _ref8.theme;
8469
+ asterisk: function asterisk(_ref10) {
8470
+ var theme = _ref10.theme;
8423
8471
  return {
8424
8472
  color: theme.palette.error.main
8425
8473
  };
@@ -8875,7 +8923,7 @@ var paletteADPRO = _objectSpread2({
8875
8923
  contrastText: "#545E73"
8876
8924
  }
8877
8925
  }, BasicPalette);
8878
- _objectSpread2({
8926
+ var paletteADC = _objectSpread2({
8879
8927
  primary: {
8880
8928
  50: "#F8FAFB",
8881
8929
  100: "#E6EFF0",
@@ -12241,10 +12289,14 @@ var ERPTheme = _objectSpread2({
12241
12289
  var ADPROTheme = _objectSpread2({
12242
12290
  palette: paletteADPRO
12243
12291
  }, BasicTheme);
12292
+ var ADCTheme = _objectSpread2({
12293
+ palette: paletteADC
12294
+ }, BasicTheme);
12244
12295
  // END Opcion 2
12245
12296
 
12246
12297
  var SincoTheme = createTheme(_objectSpread2({}, ERPTheme));
12247
12298
  var AdproSincoTheme = createTheme(_objectSpread2({}, ADPROTheme));
12299
+ var ADCSincoTheme = createTheme(_objectSpread2({}, ADCTheme));
12248
12300
 
12249
12301
  const reflow = node => node.scrollTop;
12250
12302
  function getTransitionProps(props, options) {
@@ -17146,7 +17198,8 @@ var CardRadio = function CardRadio(_ref) {
17146
17198
  value = _ref.value,
17147
17199
  onChange = _ref.onChange,
17148
17200
  checked = _ref.checked,
17149
- sx = _ref.sx;
17201
+ sx = _ref.sx,
17202
+ sxContent = _ref.sxContent;
17150
17203
  var _useState = useState((_ref2 = checked || state === 'active') !== null && _ref2 !== void 0 ? _ref2 : false),
17151
17204
  _useState2 = _slicedToArray(_useState, 2),
17152
17205
  isChecked = _useState2[0],
@@ -17188,7 +17241,8 @@ var CardRadio = function CardRadio(_ref) {
17188
17241
  }, React__default.createElement(Stack, {
17189
17242
  justifyContent: 'space-between',
17190
17243
  flexDirection: RadioPosition === 'right' ? 'row' : 'row-reverse',
17191
- gap: RadioPosition === 'left' ? 1 : 0
17244
+ gap: RadioPosition === 'left' ? 1 : 0,
17245
+ sx: _objectSpread2({}, sxContent)
17192
17246
  }, React__default.createElement(Stack, {
17193
17247
  flexDirection: 'row',
17194
17248
  padding: '0px 16px 0 0',
@@ -21901,4 +21955,4 @@ var useDynamicColor = function useDynamicColor(url) {
21901
21955
  };
21902
21956
  };
21903
21957
 
21904
- export { AdjuntarArchivo, AdproSincoTheme, CardRadio, DrawerComponent as Drawer, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, FooterAction, Incognit, IncognitIcon, IncognitIconOutlined, IncognitOutlined, PageHeaderComponent as PageHeader, PageHeaderComponent, ProgressSinco, SincoTheme, ToastNotification, useDynamicColor };
21958
+ export { ADCSincoTheme, AdjuntarArchivo, AdproSincoTheme, CardRadio, DrawerComponent as Drawer, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, FooterAction, Incognit, IncognitIcon, IncognitIconOutlined, IncognitOutlined, PageHeaderComponent as PageHeader, PageHeaderComponent, ProgressSinco, SincoTheme, ToastNotification, useDynamicColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.3-rc.15",
3
+ "version": "1.2.3-rc.18",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -14,7 +14,8 @@ export interface CardRadioProps {
14
14
  onChange: (value: string | number) => void;
15
15
  value: string | number;
16
16
  checked?: boolean;
17
- sx: SxProps;
17
+ sx?: SxProps;
18
+ sxContent?: SxProps;
18
19
  }
19
20
  export declare const CardRadio: FC<CardRadioProps>;
20
21
  export {};
@@ -1,2 +1,3 @@
1
1
  export declare const SincoTheme: import("@mui/material/styles").Theme;
2
2
  export declare let AdproSincoTheme: import("@mui/material/styles").Theme;
3
+ export declare let ADCSincoTheme: import("@mui/material/styles").Theme;
@@ -1,3 +1,4 @@
1
1
  import { ThemeOptions } from "@mui/material/styles";
2
2
  export declare const ERPTheme: ThemeOptions;
3
3
  export declare const ADPROTheme: ThemeOptions;
4
+ export declare const ADCTheme: ThemeOptions;