@xyo-network/react-shared 2.26.3 → 2.26.6

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CardProps } from '@mui/material';
3
- export interface CardExProps extends CardProps {
3
+ export declare type CardExProps = CardProps & {
4
4
  gradient?: 'border' | 'background';
5
- }
5
+ };
6
6
  export declare const CardEx: React.FC<CardExProps>;
@@ -6,20 +6,10 @@ const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const material_1 = require("@mui/material");
7
7
  const hooks_1 = require("../hooks");
8
8
  const CardEx = (_a) => {
9
- var { display = 'flex', flexDirection = 'column', flexGrow, alignItems = 'stretch', alignContent, alignSelf, justifyItems = 'flex-start', justifyContent = 'flex-start', justifySelf, style, gap, rowGap, columnGap, padding, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginTop, marginBottom, marginLeft, marginRight, gradient } = _a, props = tslib_1.__rest(_a, ["display", "flexDirection", "flexGrow", "alignItems", "alignContent", "alignSelf", "justifyItems", "justifyContent", "justifySelf", "style", "gap", "rowGap", "columnGap", "padding", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "gradient"]);
9
+ var { style, gradient } = _a, props = tslib_1.__rest(_a, ["style", "gradient"]);
10
10
  const { styles } = (0, hooks_1.useGradientStyles)();
11
- const theme = (0, material_1.useTheme)();
12
- const applySpacing = (value) => {
13
- return value === undefined ? value : typeof value === 'string' ? value : theme.spacing(value);
14
- };
15
11
  const gradientStyle = gradient === 'border' ? styles.border : gradient === 'background' ? styles.background : {};
16
- return ((0, jsx_runtime_1.jsx)(material_1.Card, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, gradientStyle), { alignContent,
17
- alignItems,
18
- alignSelf, columnGap: applySpacing(columnGap), display,
19
- flexDirection,
20
- flexGrow, gap: applySpacing(gap), justifyContent,
21
- justifyItems,
22
- justifySelf, margin: applySpacing(margin), marginBottom: applySpacing(marginBottom !== null && marginBottom !== void 0 ? marginBottom : margin), marginLeft: applySpacing(marginLeft !== null && marginLeft !== void 0 ? marginLeft : margin), marginRight: applySpacing(marginRight !== null && marginRight !== void 0 ? marginRight : margin), marginTop: applySpacing(marginTop !== null && marginTop !== void 0 ? marginTop : margin), padding: applySpacing(padding), paddingBottom: applySpacing(paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : padding), paddingLeft: applySpacing(paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : padding), paddingRight: applySpacing(paddingRight !== null && paddingRight !== void 0 ? paddingRight : padding), paddingTop: applySpacing(paddingTop !== null && paddingTop !== void 0 ? paddingTop : padding), rowGap: applySpacing(rowGap) }), style) }, props)));
12
+ return ((0, jsx_runtime_1.jsx)(material_1.Card, Object.assign({ style: Object.assign(Object.assign({}, gradientStyle), style) }, props)));
23
13
  };
24
14
  exports.CardEx = CardEx;
25
15
  //# sourceMappingURL=CardEx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardEx.js","sourceRoot":"","sources":["../../../src/components/CardEx.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAyD;AAGzD,oCAA4C;AAOrC,MAAM,MAAM,GAA0B,CAAC,EA0B7C,EAAE,EAAE;QA1ByC,EAC5C,OAAO,GAAG,MAAM,EAChB,aAAa,GAAG,QAAQ,EACxB,QAAQ,EACR,UAAU,GAAG,SAAS,EACtB,YAAY,EACZ,SAAS,EACT,YAAY,GAAG,YAAY,EAC3B,cAAc,GAAG,YAAY,EAC7B,WAAW,EACX,KAAK,EACL,GAAG,EACH,MAAM,EACN,SAAS,EACT,OAAO,EACP,WAAW,EACX,YAAY,EACZ,UAAU,EACV,aAAa,EACb,MAAM,EACN,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,QAAQ,OAET,EADI,KAAK,sBAzBoC,oUA0B7C,CADS;IAER,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,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,WAAW,EAAE,YAAY,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,OAAO,CAAC,EACjD,YAAY,EAAE,YAAY,CAAC,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,OAAO,CAAC,EACnD,UAAU,EAAE,YAAY,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,OAAO,CAAC,EAC/C,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,KACzB,KAAK,KAEN,KAAK,EACT,CACH,CAAA;AACH,CAAC,CAAA;AAhEY,QAAA,MAAM,UAgElB"}
1
+ {"version":3,"file":"CardEx.js","sourceRoot":"","sources":["../../../src/components/CardEx.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA+C;AAE/C,oCAA4C;AAMrC,MAAM,MAAM,GAA0B,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA3B,qBAA6B,CAAF;IACvE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAiB,GAAE,CAAA;IACtC,MAAM,aAAa,GAAG,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAA;IAChH,OAAO,CACL,uBAAC,eAAI,kBACH,KAAK,kCACA,aAAa,GACb,KAAK,KAEN,KAAK,EACT,CACH,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,MAAM,UAYlB"}
package/package.json CHANGED
@@ -13,16 +13,16 @@
13
13
  "@emotion/react": "^11.9.3",
14
14
  "@emotion/styled": "^11.9.3",
15
15
  "@mui/icons-material": "^5.8.4",
16
- "@mui/material": "^5.8.5",
17
- "@mui/styles": "^5.8.4",
16
+ "@mui/material": "^5.8.6",
17
+ "@mui/styles": "^5.8.6",
18
18
  "@xylabs/pixel": "^1.3.9",
19
19
  "@xylabs/react-button": "^2.14.4",
20
20
  "@xylabs/react-common": "^2.14.4",
21
21
  "@xylabs/react-flexbox": "^2.14.4",
22
22
  "@xylabs/react-shared": "^2.14.4",
23
23
  "@xylabs/sdk-js": "^2.5.9",
24
- "@xyo-network/api": "^2.20.45",
25
- "@xyo-network/network": "^2.20.45",
24
+ "@xyo-network/api": "^2.21.13",
25
+ "@xyo-network/network": "^2.21.13",
26
26
  "axios": "^0.27.2",
27
27
  "react": "^18.2.0",
28
28
  "react-dom": "^18.2.0",
@@ -88,6 +88,6 @@
88
88
  },
89
89
  "sideEffects": false,
90
90
  "types": "dist/esm/index.d.ts",
91
- "version": "2.26.3",
91
+ "version": "2.26.6",
92
92
  "packageManager": "yarn@3.1.1"
93
93
  }