@sinco/react 1.0.7-rc.19 → 1.0.7-rc.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +20 -77
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5022,7 +5022,7 @@ const internal_processStyles = (tag, processor) => {
5022
5022
  }
5023
5023
  };
5024
5024
 
5025
- const _excluded$f = ["values", "unit", "step"];
5025
+ const _excluded$e = ["values", "unit", "step"];
5026
5026
  const sortBreakpointsValues = values => {
5027
5027
  const breakpointsAsArray = Object.keys(values).map(key => ({
5028
5028
  key,
@@ -5057,7 +5057,7 @@ function createBreakpoints(breakpoints) {
5057
5057
  unit = 'px',
5058
5058
  step = 5
5059
5059
  } = breakpoints,
5060
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$f);
5060
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$e);
5061
5061
  const sortedValues = sortBreakpointsValues(values);
5062
5062
  const keys = Object.keys(sortedValues);
5063
5063
  function up(key) {
@@ -6141,7 +6141,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
6141
6141
  styleFunctionSx.filterProps = ['sx'];
6142
6142
  var styleFunctionSx$1 = styleFunctionSx;
6143
6143
 
6144
- const _excluded$e = ["breakpoints", "palette", "spacing", "shape"];
6144
+ const _excluded$d = ["breakpoints", "palette", "spacing", "shape"];
6145
6145
  function createTheme$1(options = {}, ...args) {
6146
6146
  const {
6147
6147
  breakpoints: breakpointsInput = {},
@@ -6149,7 +6149,7 @@ function createTheme$1(options = {}, ...args) {
6149
6149
  spacing: spacingInput,
6150
6150
  shape: shapeInput = {}
6151
6151
  } = options,
6152
- other = _objectWithoutPropertiesLoose(options, _excluded$e);
6152
+ other = _objectWithoutPropertiesLoose(options, _excluded$d);
6153
6153
  const breakpoints = createBreakpoints(breakpointsInput);
6154
6154
  const spacing = createSpacing(spacingInput);
6155
6155
  let muiTheme = deepmerge({
@@ -6187,7 +6187,7 @@ function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6187
6187
  return useTheme$2(defaultTheme);
6188
6188
  }
6189
6189
 
6190
- const _excluded$d = ["sx"];
6190
+ const _excluded$c = ["sx"];
6191
6191
  const splitProps = props => {
6192
6192
  var _props$theme$unstable, _props$theme;
6193
6193
  const result = {
@@ -6208,7 +6208,7 @@ function extendSxProp(props) {
6208
6208
  const {
6209
6209
  sx: inSx
6210
6210
  } = props,
6211
- other = _objectWithoutPropertiesLoose(props, _excluded$d);
6211
+ other = _objectWithoutPropertiesLoose(props, _excluded$c);
6212
6212
  const {
6213
6213
  systemProps,
6214
6214
  otherProps
@@ -6234,35 +6234,6 @@ function extendSxProp(props) {
6234
6234
 
6235
6235
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
6236
6236
 
6237
- const _excluded$c = ["className", "component"];
6238
- function createBox(options = {}) {
6239
- const {
6240
- themeId,
6241
- defaultTheme,
6242
- defaultClassName = 'MuiBox-root',
6243
- generateClassName
6244
- } = options;
6245
- const BoxRoot = styled$3('div', {
6246
- shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
6247
- })(styleFunctionSx$1);
6248
- const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
6249
- const theme = useTheme$1(defaultTheme);
6250
- const _extendSxProp = extendSxProp(inProps),
6251
- {
6252
- className,
6253
- component = 'div'
6254
- } = _extendSxProp,
6255
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$c);
6256
- return /*#__PURE__*/jsx(BoxRoot, _extends({
6257
- as: component,
6258
- ref: ref,
6259
- className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
6260
- theme: themeId ? theme[themeId] || theme : theme
6261
- }, other));
6262
- });
6263
- return Box;
6264
- }
6265
-
6266
6237
  const _excluded$b = ["variant"];
6267
6238
  function isEmpty$1(string) {
6268
6239
  return string.length === 0;
@@ -6765,7 +6736,7 @@ function lighten(color, coefficient) {
6765
6736
  }
6766
6737
 
6767
6738
  const _excluded$9 = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
6768
- const defaultTheme$3 = createTheme$1();
6739
+ const defaultTheme$2 = createTheme$1();
6769
6740
  // widening Theme to any so that the consumer can own the theme structure.
6770
6741
  const defaultCreateStyledComponent = systemStyled('div', {
6771
6742
  name: 'MuiStack',
@@ -6776,7 +6747,7 @@ function useThemePropsDefault(props) {
6776
6747
  return useThemeProps$1({
6777
6748
  props,
6778
6749
  name: 'MuiStack',
6779
- defaultTheme: defaultTheme$3
6750
+ defaultTheme: defaultTheme$2
6780
6751
  });
6781
6752
  }
6782
6753
 
@@ -7622,11 +7593,11 @@ Please use another name.` : formatMuiErrorMessage(18));
7622
7593
  return muiTheme;
7623
7594
  }
7624
7595
 
7625
- const defaultTheme$1 = createTheme();
7626
- var defaultTheme$2 = defaultTheme$1;
7596
+ const defaultTheme = createTheme();
7597
+ var defaultTheme$1 = defaultTheme;
7627
7598
 
7628
7599
  function useTheme() {
7629
- const theme = useTheme$1(defaultTheme$2);
7600
+ const theme = useTheme$1(defaultTheme$1);
7630
7601
  if (process.env.NODE_ENV !== 'production') {
7631
7602
  // eslint-disable-next-line react-hooks/rules-of-hooks
7632
7603
  React.useDebugValue(theme);
@@ -7641,7 +7612,7 @@ function useThemeProps({
7641
7612
  return useThemeProps$1({
7642
7613
  props,
7643
7614
  name,
7644
- defaultTheme: defaultTheme$2,
7615
+ defaultTheme: defaultTheme$1,
7645
7616
  themeId: THEME_ID
7646
7617
  });
7647
7618
  }
@@ -7649,7 +7620,7 @@ function useThemeProps({
7649
7620
  const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
7650
7621
  const styled = createStyled({
7651
7622
  themeId: THEME_ID,
7652
- defaultTheme: defaultTheme$2,
7623
+ defaultTheme: defaultTheme$1,
7653
7624
  rootShouldForwardProp
7654
7625
  });
7655
7626
  var styled$1 = styled;
@@ -9378,34 +9349,6 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes
9378
9349
  } : void 0;
9379
9350
  var Typography$1 = Typography;
9380
9351
 
9381
- const defaultTheme = createTheme();
9382
- const Box = createBox({
9383
- themeId: THEME_ID,
9384
- defaultTheme,
9385
- defaultClassName: 'MuiBox-root',
9386
- generateClassName: ClassNameGenerator$1.generate
9387
- });
9388
- process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
9389
- // ----------------------------- Warning --------------------------------
9390
- // | These PropTypes are generated from the TypeScript type definitions |
9391
- // | To update them edit the d.ts file and run "yarn proptypes" |
9392
- // ----------------------------------------------------------------------
9393
- /**
9394
- * @ignore
9395
- */
9396
- children: PropTypes.node,
9397
- /**
9398
- * The component used for the root node.
9399
- * Either a string to use a HTML element or a component.
9400
- */
9401
- component: PropTypes.elementType,
9402
- /**
9403
- * The system prop that allows defining system overrides as well as additional CSS styles.
9404
- */
9405
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
9406
- } : void 0;
9407
- var Box$1 = Box;
9408
-
9409
9352
  function getCardUtilityClass(slot) {
9410
9353
  return generateUtilityClass('MuiCard', slot);
9411
9354
  }
@@ -9645,13 +9588,13 @@ const EmptyState = ({
9645
9588
  flexDirection: 'column',
9646
9589
  gap: 4
9647
9590
  },
9648
- children: [jsx(Box$1, {
9649
- width: 206,
9650
- height: 187,
9651
- children: jsx("svg", {
9652
- children: jsx("use", {
9653
- xlinkHref: `${sincoIconos}#${UrlImage[_state]}`
9654
- })
9591
+ children: [jsx("svg", {
9592
+ style: {
9593
+ width: 206,
9594
+ height: 187
9595
+ },
9596
+ children: jsx("use", {
9597
+ xlinkHref: `${sincoIconos}#${UrlImage[_state]}`
9655
9598
  })
9656
9599
  }), jsxs(Stack$1, {
9657
9600
  direction: "column",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.7-rc.19",
3
+ "version": "1.0.7-rc.20",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",