@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
|
|
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 {
|
|
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(
|
|
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,
|
|
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.
|
|
17
|
-
"@mui/styles": "^5.8.
|
|
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.
|
|
25
|
-
"@xyo-network/network": "^2.
|
|
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.
|
|
91
|
+
"version": "2.26.6",
|
|
92
92
|
"packageManager": "yarn@3.1.1"
|
|
93
93
|
}
|