@xyo-network/react-card 2.82.0 → 2.83.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/index.d.ts +52 -2
- package/package.json +9 -25
- package/xy.config.ts +12 -0
- package/dist/browser/components/CardContentEx.d.cts +0 -11
- package/dist/browser/components/CardContentEx.d.cts.map +0 -1
- package/dist/browser/components/CardContentEx.d.mts +0 -11
- package/dist/browser/components/CardContentEx.d.mts.map +0 -1
- package/dist/browser/components/CardContentEx.d.ts +0 -11
- package/dist/browser/components/CardContentEx.d.ts.map +0 -1
- package/dist/browser/components/CardEx.d.cts +0 -8
- package/dist/browser/components/CardEx.d.cts.map +0 -1
- package/dist/browser/components/CardEx.d.mts +0 -8
- package/dist/browser/components/CardEx.d.mts.map +0 -1
- package/dist/browser/components/CardEx.d.ts +0 -8
- package/dist/browser/components/CardEx.d.ts.map +0 -1
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.cts +0 -15
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts +0 -15
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts +0 -15
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
- package/dist/browser/components/FullWidthCard/index.d.cts +0 -2
- package/dist/browser/components/FullWidthCard/index.d.cts.map +0 -1
- package/dist/browser/components/FullWidthCard/index.d.mts +0 -2
- package/dist/browser/components/FullWidthCard/index.d.mts.map +0 -1
- package/dist/browser/components/FullWidthCard/index.d.ts +0 -2
- package/dist/browser/components/FullWidthCard/index.d.ts.map +0 -1
- package/dist/browser/components/PageCard.d.cts +0 -10
- package/dist/browser/components/PageCard.d.cts.map +0 -1
- package/dist/browser/components/PageCard.d.mts +0 -10
- package/dist/browser/components/PageCard.d.mts.map +0 -1
- package/dist/browser/components/PageCard.d.ts +0 -10
- package/dist/browser/components/PageCard.d.ts.map +0 -1
- package/dist/browser/components/SimpleCard/SimpleCard.d.cts +0 -16
- package/dist/browser/components/SimpleCard/SimpleCard.d.cts.map +0 -1
- package/dist/browser/components/SimpleCard/SimpleCard.d.mts +0 -16
- package/dist/browser/components/SimpleCard/SimpleCard.d.mts.map +0 -1
- package/dist/browser/components/SimpleCard/SimpleCard.d.ts +0 -16
- package/dist/browser/components/SimpleCard/SimpleCard.d.ts.map +0 -1
- package/dist/browser/components/SimpleCard/index.d.cts +0 -2
- package/dist/browser/components/SimpleCard/index.d.cts.map +0 -1
- package/dist/browser/components/SimpleCard/index.d.mts +0 -2
- package/dist/browser/components/SimpleCard/index.d.mts.map +0 -1
- package/dist/browser/components/SimpleCard/index.d.ts +0 -2
- package/dist/browser/components/SimpleCard/index.d.ts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -8
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -8
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/index.d.cts +0 -2
- package/dist/browser/components/SimpleCardGrid/index.d.cts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/index.d.mts +0 -2
- package/dist/browser/components/SimpleCardGrid/index.d.mts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/index.d.ts +0 -2
- package/dist/browser/components/SimpleCardGrid/index.d.ts.map +0 -1
- package/dist/browser/components/index.d.cts +0 -6
- package/dist/browser/components/index.d.cts.map +0 -1
- package/dist/browser/components/index.d.mts +0 -6
- package/dist/browser/components/index.d.mts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -6
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/index.cjs +0 -309
- package/dist/browser/index.cjs.map +0 -1
- package/dist/browser/index.d.cts +0 -2
- package/dist/browser/index.d.cts.map +0 -1
- package/dist/browser/index.d.mts +0 -2
- package/dist/browser/index.d.mts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/neutral/components/CardContentEx.d.cts +0 -11
- package/dist/neutral/components/CardContentEx.d.cts.map +0 -1
- package/dist/neutral/components/CardContentEx.d.mts +0 -11
- package/dist/neutral/components/CardContentEx.d.mts.map +0 -1
- package/dist/neutral/components/CardContentEx.d.ts +0 -11
- package/dist/neutral/components/CardContentEx.d.ts.map +0 -1
- package/dist/neutral/components/CardEx.d.cts +0 -8
- package/dist/neutral/components/CardEx.d.cts.map +0 -1
- package/dist/neutral/components/CardEx.d.mts +0 -8
- package/dist/neutral/components/CardEx.d.mts.map +0 -1
- package/dist/neutral/components/CardEx.d.ts +0 -8
- package/dist/neutral/components/CardEx.d.ts.map +0 -1
- package/dist/neutral/components/FullWidthCard/FullWidthCard.d.cts +0 -15
- package/dist/neutral/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
- package/dist/neutral/components/FullWidthCard/FullWidthCard.d.mts +0 -15
- package/dist/neutral/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
- package/dist/neutral/components/FullWidthCard/FullWidthCard.d.ts +0 -15
- package/dist/neutral/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
- package/dist/neutral/components/FullWidthCard/index.d.cts +0 -2
- package/dist/neutral/components/FullWidthCard/index.d.cts.map +0 -1
- package/dist/neutral/components/FullWidthCard/index.d.mts +0 -2
- package/dist/neutral/components/FullWidthCard/index.d.mts.map +0 -1
- package/dist/neutral/components/FullWidthCard/index.d.ts +0 -2
- package/dist/neutral/components/FullWidthCard/index.d.ts.map +0 -1
- package/dist/neutral/components/PageCard.d.cts +0 -10
- package/dist/neutral/components/PageCard.d.cts.map +0 -1
- package/dist/neutral/components/PageCard.d.mts +0 -10
- package/dist/neutral/components/PageCard.d.mts.map +0 -1
- package/dist/neutral/components/PageCard.d.ts +0 -10
- package/dist/neutral/components/PageCard.d.ts.map +0 -1
- package/dist/neutral/components/SimpleCard/SimpleCard.d.cts +0 -16
- package/dist/neutral/components/SimpleCard/SimpleCard.d.cts.map +0 -1
- package/dist/neutral/components/SimpleCard/SimpleCard.d.mts +0 -16
- package/dist/neutral/components/SimpleCard/SimpleCard.d.mts.map +0 -1
- package/dist/neutral/components/SimpleCard/SimpleCard.d.ts +0 -16
- package/dist/neutral/components/SimpleCard/SimpleCard.d.ts.map +0 -1
- package/dist/neutral/components/SimpleCard/index.d.cts +0 -2
- package/dist/neutral/components/SimpleCard/index.d.cts.map +0 -1
- package/dist/neutral/components/SimpleCard/index.d.mts +0 -2
- package/dist/neutral/components/SimpleCard/index.d.mts.map +0 -1
- package/dist/neutral/components/SimpleCard/index.d.ts +0 -2
- package/dist/neutral/components/SimpleCard/index.d.ts.map +0 -1
- package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -8
- package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
- package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -8
- package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
- package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
- package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
- package/dist/neutral/components/SimpleCardGrid/index.d.cts +0 -2
- package/dist/neutral/components/SimpleCardGrid/index.d.cts.map +0 -1
- package/dist/neutral/components/SimpleCardGrid/index.d.mts +0 -2
- package/dist/neutral/components/SimpleCardGrid/index.d.mts.map +0 -1
- package/dist/neutral/components/SimpleCardGrid/index.d.ts +0 -2
- package/dist/neutral/components/SimpleCardGrid/index.d.ts.map +0 -1
- package/dist/neutral/components/index.d.cts +0 -6
- package/dist/neutral/components/index.d.cts.map +0 -1
- package/dist/neutral/components/index.d.mts +0 -6
- package/dist/neutral/components/index.d.mts.map +0 -1
- package/dist/neutral/components/index.d.ts +0 -6
- package/dist/neutral/components/index.d.ts.map +0 -1
- package/dist/neutral/index.cjs +0 -309
- package/dist/neutral/index.cjs.map +0 -1
- package/dist/neutral/index.d.cts +0 -2
- package/dist/neutral/index.d.cts.map +0 -1
- package/dist/neutral/index.d.mts +0 -2
- package/dist/neutral/index.d.mts.map +0 -1
- package/dist/neutral/index.d.ts +0 -2
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/index.mjs +0 -278
- package/dist/neutral/index.mjs.map +0 -1
- package/dist/node/components/CardContentEx.d.cts +0 -11
- package/dist/node/components/CardContentEx.d.cts.map +0 -1
- package/dist/node/components/CardContentEx.d.mts +0 -11
- package/dist/node/components/CardContentEx.d.mts.map +0 -1
- package/dist/node/components/CardContentEx.d.ts +0 -11
- package/dist/node/components/CardContentEx.d.ts.map +0 -1
- package/dist/node/components/CardEx.d.cts +0 -8
- package/dist/node/components/CardEx.d.cts.map +0 -1
- package/dist/node/components/CardEx.d.mts +0 -8
- package/dist/node/components/CardEx.d.mts.map +0 -1
- package/dist/node/components/CardEx.d.ts +0 -8
- package/dist/node/components/CardEx.d.ts.map +0 -1
- package/dist/node/components/FullWidthCard/FullWidthCard.d.cts +0 -15
- package/dist/node/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
- package/dist/node/components/FullWidthCard/FullWidthCard.d.mts +0 -15
- package/dist/node/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
- package/dist/node/components/FullWidthCard/FullWidthCard.d.ts +0 -15
- package/dist/node/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
- package/dist/node/components/FullWidthCard/index.d.cts +0 -2
- package/dist/node/components/FullWidthCard/index.d.cts.map +0 -1
- package/dist/node/components/FullWidthCard/index.d.mts +0 -2
- package/dist/node/components/FullWidthCard/index.d.mts.map +0 -1
- package/dist/node/components/FullWidthCard/index.d.ts +0 -2
- package/dist/node/components/FullWidthCard/index.d.ts.map +0 -1
- package/dist/node/components/PageCard.d.cts +0 -10
- package/dist/node/components/PageCard.d.cts.map +0 -1
- package/dist/node/components/PageCard.d.mts +0 -10
- package/dist/node/components/PageCard.d.mts.map +0 -1
- package/dist/node/components/PageCard.d.ts +0 -10
- package/dist/node/components/PageCard.d.ts.map +0 -1
- package/dist/node/components/SimpleCard/SimpleCard.d.cts +0 -16
- package/dist/node/components/SimpleCard/SimpleCard.d.cts.map +0 -1
- package/dist/node/components/SimpleCard/SimpleCard.d.mts +0 -16
- package/dist/node/components/SimpleCard/SimpleCard.d.mts.map +0 -1
- package/dist/node/components/SimpleCard/SimpleCard.d.ts +0 -16
- package/dist/node/components/SimpleCard/SimpleCard.d.ts.map +0 -1
- package/dist/node/components/SimpleCard/index.d.cts +0 -2
- package/dist/node/components/SimpleCard/index.d.cts.map +0 -1
- package/dist/node/components/SimpleCard/index.d.mts +0 -2
- package/dist/node/components/SimpleCard/index.d.mts.map +0 -1
- package/dist/node/components/SimpleCard/index.d.ts +0 -2
- package/dist/node/components/SimpleCard/index.d.ts.map +0 -1
- package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -8
- package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
- package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -8
- package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
- package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
- package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
- package/dist/node/components/SimpleCardGrid/index.d.cts +0 -2
- package/dist/node/components/SimpleCardGrid/index.d.cts.map +0 -1
- package/dist/node/components/SimpleCardGrid/index.d.mts +0 -2
- package/dist/node/components/SimpleCardGrid/index.d.mts.map +0 -1
- package/dist/node/components/SimpleCardGrid/index.d.ts +0 -2
- package/dist/node/components/SimpleCardGrid/index.d.ts.map +0 -1
- package/dist/node/components/index.d.cts +0 -6
- package/dist/node/components/index.d.cts.map +0 -1
- package/dist/node/components/index.d.mts +0 -6
- package/dist/node/components/index.d.mts.map +0 -1
- package/dist/node/components/index.d.ts +0 -6
- package/dist/node/components/index.d.ts.map +0 -1
- package/dist/node/index.cjs +0 -320
- package/dist/node/index.cjs.map +0 -1
- package/dist/node/index.d.cts +0 -2
- package/dist/node/index.d.cts.map +0 -1
- package/dist/node/index.d.mts +0 -2
- package/dist/node/index.d.mts.map +0 -1
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.mjs +0 -279
- package/dist/node/index.mjs.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { GridProps } from '@mui/material';
|
2
|
-
import React from 'react';
|
3
|
-
import { SimpleCardProps } from '../SimpleCard/index.ts';
|
4
|
-
export interface SimpleCardGridProps extends GridProps {
|
5
|
-
cards?: SimpleCardProps[];
|
6
|
-
}
|
7
|
-
export declare const SimpleCardGrid: React.FC<SimpleCardGridProps>;
|
8
|
-
//# sourceMappingURL=SimpleCardGrid.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAc,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAEpE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { GridProps } from '@mui/material';
|
2
|
-
import React from 'react';
|
3
|
-
import { SimpleCardProps } from '../SimpleCard/index.ts';
|
4
|
-
export interface SimpleCardGridProps extends GridProps {
|
5
|
-
cards?: SimpleCardProps[];
|
6
|
-
}
|
7
|
-
export declare const SimpleCardGrid: React.FC<SimpleCardGridProps>;
|
8
|
-
//# sourceMappingURL=SimpleCardGrid.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAc,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAEpE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { GridProps } from '@mui/material';
|
2
|
-
import React from 'react';
|
3
|
-
import { SimpleCardProps } from '../SimpleCard/index.ts';
|
4
|
-
export interface SimpleCardGridProps extends GridProps {
|
5
|
-
cards?: SimpleCardProps[];
|
6
|
-
}
|
7
|
-
export declare const SimpleCardGrid: React.FC<SimpleCardGridProps>;
|
8
|
-
//# sourceMappingURL=SimpleCardGrid.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAc,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAEpE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA"}
|
package/dist/node/index.cjs
DELETED
@@ -1,320 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
9
|
-
var __export = (target, all) => {
|
10
|
-
for (var name in all)
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
12
|
-
};
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
15
|
-
for (let key of __getOwnPropNames(from))
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
18
|
-
}
|
19
|
-
return to;
|
20
|
-
};
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
27
|
-
mod
|
28
|
-
));
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
30
|
-
|
31
|
-
// src/index.ts
|
32
|
-
var src_exports = {};
|
33
|
-
__export(src_exports, {
|
34
|
-
CardContentEx: () => CardContentEx,
|
35
|
-
CardContentExWithRef: () => CardContentExWithRef,
|
36
|
-
CardEx: () => CardEx,
|
37
|
-
CardExWithRef: () => CardExWithRef,
|
38
|
-
FullWidthCard: () => FullWidthCard,
|
39
|
-
PageCard: () => PageCard,
|
40
|
-
SimpleCard: () => SimpleCard
|
41
|
-
});
|
42
|
-
module.exports = __toCommonJS(src_exports);
|
43
|
-
|
44
|
-
// src/components/CardContentEx.tsx
|
45
|
-
var import_material = require("@mui/material");
|
46
|
-
var import_react_shared = require("@xyo-network/react-shared");
|
47
|
-
var import_react = __toESM(require("react"), 1);
|
48
|
-
var CardContentExRoot = (0, import_material.styled)(import_material.CardContent, {
|
49
|
-
name: "CardContentEx",
|
50
|
-
shouldForwardProp: /* @__PURE__ */ __name((prop) => ![
|
51
|
-
"variant",
|
52
|
-
"removePadding"
|
53
|
-
].includes(prop), "shouldForwardProp"),
|
54
|
-
slot: "Root"
|
55
|
-
})(({ variant, removePadding }) => ({
|
56
|
-
...(variant === "scrollable" || removePadding) && {
|
57
|
-
[":last-child"]: {
|
58
|
-
paddingBottom: 0
|
59
|
-
},
|
60
|
-
overflow: "auto",
|
61
|
-
paddingTop: 0,
|
62
|
-
...removePadding && {
|
63
|
-
padding: 0
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}));
|
67
|
-
var CardContentExWithRef = /* @__PURE__ */ (0, import_react.forwardRef)(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {
|
68
|
-
const sharedRef = (0, import_react_shared.useShareForwardedRef)(ref, refreshRef);
|
69
|
-
(0, import_react.useEffect)(() => {
|
70
|
-
var _a;
|
71
|
-
if (sharedRef && scrollToTop) {
|
72
|
-
(_a = sharedRef.current) == null ? void 0 : _a.scroll({
|
73
|
-
behavior: "smooth",
|
74
|
-
top: 0
|
75
|
-
});
|
76
|
-
}
|
77
|
-
}, [
|
78
|
-
sharedRef,
|
79
|
-
scrollToTop
|
80
|
-
]);
|
81
|
-
return /* @__PURE__ */ import_react.default.createElement(CardContentExRoot, {
|
82
|
-
ref: sharedRef,
|
83
|
-
...props
|
84
|
-
});
|
85
|
-
});
|
86
|
-
CardContentExWithRef.displayName = "CardContentEx";
|
87
|
-
var CardContentEx = CardContentExWithRef;
|
88
|
-
|
89
|
-
// src/components/CardEx.tsx
|
90
|
-
var import_material2 = require("@mui/material");
|
91
|
-
var import_react_shared2 = require("@xyo-network/react-shared");
|
92
|
-
var import_react2 = __toESM(require("react"), 1);
|
93
|
-
var CardExWithRef = /* @__PURE__ */ (0, import_react2.forwardRef)(({ style, gradient, ...props }, ref) => {
|
94
|
-
const { styles } = (0, import_react_shared2.useGradientStyles)();
|
95
|
-
const gradientStyle = gradient === "border" ? styles.border : gradient === "background" ? styles.background : {};
|
96
|
-
return /* @__PURE__ */ import_react2.default.createElement(import_material2.Card, {
|
97
|
-
style: {
|
98
|
-
...gradientStyle,
|
99
|
-
...style
|
100
|
-
},
|
101
|
-
ref,
|
102
|
-
...props
|
103
|
-
});
|
104
|
-
});
|
105
|
-
CardExWithRef.displayName = "CardEx";
|
106
|
-
var CardEx = CardExWithRef;
|
107
|
-
|
108
|
-
// src/components/FullWidthCard/FullWidthCard.tsx
|
109
|
-
var import_icons_material = require("@mui/icons-material");
|
110
|
-
var import_material3 = require("@mui/material");
|
111
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
112
|
-
var import_react_shared3 = require("@xyo-network/react-shared");
|
113
|
-
var import_react3 = __toESM(require("react"), 1);
|
114
|
-
var import_react_router_dom = require("react-router-dom");
|
115
|
-
var FullWidthCard = /* @__PURE__ */ __name(({ cardIsButton, desc, href, media, name, small, to, ...props }) => {
|
116
|
-
const theme = (0, import_material3.useTheme)();
|
117
|
-
const [raised, setRaised] = (0, import_react3.useState)(false);
|
118
|
-
const navigate = (0, import_react_router_dom.useNavigate)();
|
119
|
-
const isMobile = (0, import_react_shared3.useIsMobile)();
|
120
|
-
const localRouteChange = /* @__PURE__ */ __name((to2) => {
|
121
|
-
to2 ? navigate(to2) : navigate("/404");
|
122
|
-
}, "localRouteChange");
|
123
|
-
const externalRouteChange = /* @__PURE__ */ __name((href2) => {
|
124
|
-
href2 ? window.open(href2) : navigate("/404");
|
125
|
-
}, "externalRouteChange");
|
126
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_material3.Card, {
|
127
|
-
elevation: raised ? 3 : 0,
|
128
|
-
style: {
|
129
|
-
height: "100%",
|
130
|
-
width: "100%"
|
131
|
-
},
|
132
|
-
...props,
|
133
|
-
sx: {
|
134
|
-
"&:hover": {
|
135
|
-
cursor: "pointer"
|
136
|
-
},
|
137
|
-
"backgroundColor": (0, import_material3.alpha)(theme.palette.primary.light, 0.05)
|
138
|
-
},
|
139
|
-
onMouseEnter: /* @__PURE__ */ __name(() => isMobile ? null : cardIsButton ? setRaised(true) : null, "onMouseEnter"),
|
140
|
-
onMouseLeave: /* @__PURE__ */ __name(() => isMobile ? null : cardIsButton ? setRaised(false) : null, "onMouseLeave"),
|
141
|
-
onClick: /* @__PURE__ */ __name(() => cardIsButton ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null, "onClick")
|
142
|
-
}, media ? /* @__PURE__ */ import_react3.default.createElement(import_material3.CardMedia, {
|
143
|
-
component: "img",
|
144
|
-
height: "100",
|
145
|
-
image: media,
|
146
|
-
alt: ""
|
147
|
-
}) : null, /* @__PURE__ */ import_react3.default.createElement(import_material3.CardContent, null, /* @__PURE__ */ import_react3.default.createElement(import_material3.Grid, {
|
148
|
-
container: true,
|
149
|
-
alignItems: "center",
|
150
|
-
paddingY: 2,
|
151
|
-
paddingX: 2
|
152
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_material3.Grid, {
|
153
|
-
item: true,
|
154
|
-
xs: 12,
|
155
|
-
md: 6
|
156
|
-
}, typeof name === "string" ? /* @__PURE__ */ import_react3.default.createElement(import_material3.Typography, {
|
157
|
-
fontWeight: 700,
|
158
|
-
variant: "h2",
|
159
|
-
textAlign: "left",
|
160
|
-
paddingBottom: 1
|
161
|
-
}, name) : name), /* @__PURE__ */ import_react3.default.createElement(import_material3.Grid, {
|
162
|
-
item: true,
|
163
|
-
xs: 12,
|
164
|
-
md: 5
|
165
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_material3.Typography, {
|
166
|
-
variant: "body1",
|
167
|
-
fontWeight: 400,
|
168
|
-
textAlign: "left"
|
169
|
-
}, desc)), /* @__PURE__ */ import_react3.default.createElement(import_material3.Grid, {
|
170
|
-
item: true,
|
171
|
-
xs: 1,
|
172
|
-
display: isMobile ? "none" : "flex",
|
173
|
-
justifyContent: "center"
|
174
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_material3.Zoom, {
|
175
|
-
in: raised
|
176
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_material3.IconButton, {
|
177
|
-
color: "primary",
|
178
|
-
size: small ? "small" : "medium",
|
179
|
-
onClick: /* @__PURE__ */ __name(() => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"), "onClick"),
|
180
|
-
disableFocusRipple: true,
|
181
|
-
disableRipple: true,
|
182
|
-
disableTouchRipple: true
|
183
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_icons_material.ArrowForwardRounded, {
|
184
|
-
fontSize: small ? "small" : "medium"
|
185
|
-
})))))), /* @__PURE__ */ import_react3.default.createElement(import_material3.CardActions, {
|
186
|
-
sx: {
|
187
|
-
display: {
|
188
|
-
md: isMobile ? "flex" : "none"
|
189
|
-
}
|
190
|
-
}
|
191
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_react_flexbox.FlexGrowCol, {
|
192
|
-
alignItems: "flex-end"
|
193
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_material3.IconButton, {
|
194
|
-
color: "primary",
|
195
|
-
size: small ? "small" : "medium",
|
196
|
-
onClick: /* @__PURE__ */ __name(() => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"), "onClick"),
|
197
|
-
disableFocusRipple: true,
|
198
|
-
disableRipple: true,
|
199
|
-
disableTouchRipple: true
|
200
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_icons_material.ArrowForwardRounded, {
|
201
|
-
fontSize: small ? "small" : "medium"
|
202
|
-
})))));
|
203
|
-
}, "FullWidthCard");
|
204
|
-
|
205
|
-
// src/components/PageCard.tsx
|
206
|
-
var import_icons_material2 = require("@mui/icons-material");
|
207
|
-
var import_material4 = require("@mui/material");
|
208
|
-
var import_react_shared4 = require("@xyo-network/react-shared");
|
209
|
-
var import_react4 = __toESM(require("react"), 1);
|
210
|
-
var PageCardWithRef = /* @__PURE__ */ (0, import_react4.forwardRef)(({ subheader, title, onRefresh, children, action, style, ...props }, ref) => {
|
211
|
-
return /* @__PURE__ */ import_react4.default.createElement(CardEx, {
|
212
|
-
style: {
|
213
|
-
backgroundColor: "transparent",
|
214
|
-
position: "relative",
|
215
|
-
...style
|
216
|
-
},
|
217
|
-
elevation: 0,
|
218
|
-
ref,
|
219
|
-
...props
|
220
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_material4.CardHeader, {
|
221
|
-
title: /* @__PURE__ */ import_react4.default.createElement(import_react_shared4.TypographyEx, {
|
222
|
-
variant: "h5",
|
223
|
-
gutterBottom: true
|
224
|
-
}, title),
|
225
|
-
subheader: /* @__PURE__ */ import_react4.default.createElement(import_react_shared4.TypographyEx, {
|
226
|
-
variant: "subtitle1"
|
227
|
-
}, subheader),
|
228
|
-
action: action ?? /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, onRefresh ? /* @__PURE__ */ import_react4.default.createElement(import_material4.IconButton, {
|
229
|
-
onClick: /* @__PURE__ */ __name(() => onRefresh == null ? void 0 : onRefresh(), "onClick")
|
230
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_icons_material2.Refresh, null)) : null)
|
231
|
-
}), children);
|
232
|
-
});
|
233
|
-
PageCardWithRef.displayName = "PageCard";
|
234
|
-
var PageCard = PageCardWithRef;
|
235
|
-
|
236
|
-
// src/components/SimpleCard/SimpleCard.tsx
|
237
|
-
var import_icons_material3 = require("@mui/icons-material");
|
238
|
-
var import_material5 = require("@mui/material");
|
239
|
-
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
240
|
-
var import_react_shared5 = require("@xyo-network/react-shared");
|
241
|
-
var import_react5 = __toESM(require("react"), 1);
|
242
|
-
var import_react_router_dom2 = require("react-router-dom");
|
243
|
-
var SimpleCard = /* @__PURE__ */ __name(({ desc, iconImage, interactionVariant = "card", headline, href, media, small, subtitle, sx, to, ...props }) => {
|
244
|
-
const theme = (0, import_material5.useTheme)();
|
245
|
-
const [raised, setRaised] = (0, import_react5.useState)(false);
|
246
|
-
const navigate = (0, import_react_router_dom2.useNavigate)();
|
247
|
-
const isMobile = (0, import_react_shared5.useIsMobile)();
|
248
|
-
const localRouteChange = /* @__PURE__ */ __name((to2) => {
|
249
|
-
to2 ? navigate(to2) : navigate("/404");
|
250
|
-
}, "localRouteChange");
|
251
|
-
const externalRouteChange = /* @__PURE__ */ __name((href2) => {
|
252
|
-
href2 ? window.open(href2) : navigate("/404");
|
253
|
-
}, "externalRouteChange");
|
254
|
-
return /* @__PURE__ */ import_react5.default.createElement(CardEx, {
|
255
|
-
elevation: raised ? 3 : 0,
|
256
|
-
sx: {
|
257
|
-
"&:hover": {
|
258
|
-
cursor: interactionVariant == "button" ? "pointer" : null
|
259
|
-
},
|
260
|
-
"backgroundColor": (0, import_material5.alpha)(theme.palette.primary.light, 0.05),
|
261
|
-
...sx
|
262
|
-
},
|
263
|
-
onMouseEnter: /* @__PURE__ */ __name(() => isMobile ? null : interactionVariant == "button" ? setRaised(true) : null, "onMouseEnter"),
|
264
|
-
onMouseLeave: /* @__PURE__ */ __name(() => isMobile ? null : interactionVariant == "button" ? setRaised(false) : null, "onMouseLeave"),
|
265
|
-
onClick: /* @__PURE__ */ __name(() => interactionVariant == "button" ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null, "onClick"),
|
266
|
-
...props
|
267
|
-
}, media ? /* @__PURE__ */ import_react5.default.createElement(import_material5.CardMedia, {
|
268
|
-
component: "img",
|
269
|
-
height: "100",
|
270
|
-
image: media,
|
271
|
-
alt: ""
|
272
|
-
}) : null, /* @__PURE__ */ import_react5.default.createElement(import_material5.CardContent, {
|
273
|
-
sx: {
|
274
|
-
height: "100%"
|
275
|
-
}
|
276
|
-
}, /* @__PURE__ */ import_react5.default.createElement(import_react_flexbox2.FlexCol, {
|
277
|
-
width: "100%",
|
278
|
-
alignItems: "flex-start"
|
279
|
-
}, iconImage ? /* @__PURE__ */ import_react5.default.createElement("img", {
|
280
|
-
src: iconImage,
|
281
|
-
height: "40px",
|
282
|
-
style: {
|
283
|
-
paddingBottom: "8px"
|
284
|
-
}
|
285
|
-
}) : null, typeof headline === "string" ? /* @__PURE__ */ import_react5.default.createElement(import_material5.Typography, {
|
286
|
-
variant: small ? "body1" : "h6",
|
287
|
-
textAlign: "left",
|
288
|
-
gutterBottom: true
|
289
|
-
}, headline) : headline, subtitle ? /* @__PURE__ */ import_react5.default.createElement(import_material5.Typography, {
|
290
|
-
variant: "subtitle2",
|
291
|
-
textAlign: "left",
|
292
|
-
gutterBottom: true
|
293
|
-
}, subtitle) : null, /* @__PURE__ */ import_react5.default.createElement(import_material5.Typography, {
|
294
|
-
variant: small ? "caption" : "body1",
|
295
|
-
textAlign: "left",
|
296
|
-
gutterBottom: true
|
297
|
-
}, desc))), interactionVariant == "button" ? /* @__PURE__ */ import_react5.default.createElement(import_material5.CardActions, null, /* @__PURE__ */ import_react5.default.createElement(import_react_flexbox2.FlexGrowCol, {
|
298
|
-
alignItems: "flex-end"
|
299
|
-
}, /* @__PURE__ */ import_react5.default.createElement(import_material5.IconButton, {
|
300
|
-
color: raised ? "secondary" : "primary",
|
301
|
-
size: small ? "small" : "medium",
|
302
|
-
onClick: /* @__PURE__ */ __name(() => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"), "onClick"),
|
303
|
-
disableFocusRipple: true,
|
304
|
-
disableRipple: true,
|
305
|
-
disableTouchRipple: true
|
306
|
-
}, /* @__PURE__ */ import_react5.default.createElement(import_icons_material3.ArrowForwardRounded, {
|
307
|
-
fontSize: small ? "small" : "medium"
|
308
|
-
})))) : null);
|
309
|
-
}, "SimpleCard");
|
310
|
-
// Annotate the CommonJS export names for ESM import in node:
|
311
|
-
0 && (module.exports = {
|
312
|
-
CardContentEx,
|
313
|
-
CardContentExWithRef,
|
314
|
-
CardEx,
|
315
|
-
CardExWithRef,
|
316
|
-
FullWidthCard,
|
317
|
-
PageCard,
|
318
|
-
SimpleCard
|
319
|
-
});
|
320
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/components/CardContentEx.tsx","../../src/components/CardEx.tsx","../../src/components/FullWidthCard/FullWidthCard.tsx","../../src/components/PageCard.tsx","../../src/components/SimpleCard/SimpleCard.tsx"],"sourcesContent":["export * from './components/index.ts'\n","import { CardContent, CardContentProps, styled } from '@mui/material'\nimport { useShareForwardedRef } from '@xyo-network/react-shared'\nimport React, { forwardRef, useEffect } from 'react'\n\nconst CardContentExRoot = styled(CardContent, {\n name: 'CardContentEx',\n shouldForwardProp: (prop: string) => !['variant', 'removePadding'].includes(prop),\n slot: 'Root',\n})<CardContentExProps>(({ variant, removePadding }) => ({\n ...((variant === 'scrollable' || removePadding) && {\n [':last-child']: {\n paddingBottom: 0,\n },\n overflow: 'auto',\n paddingTop: 0,\n ...(removePadding && { padding: 0 }),\n }),\n}))\n\nexport type CardContentExProps = CardContentProps & {\n refreshRef?: number\n removePadding?: boolean\n scrollToTop?: number\n variant?: 'scrollable' | 'normal'\n}\n\nexport const CardContentExWithRef = forwardRef<HTMLDivElement | null, CardContentExProps>(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {\n const sharedRef = useShareForwardedRef<HTMLDivElement>(ref, refreshRef)\n\n useEffect(() => {\n if (sharedRef && scrollToTop) {\n sharedRef.current?.scroll({ behavior: 'smooth', top: 0 })\n }\n }, [sharedRef, scrollToTop])\n\n return <CardContentExRoot ref={sharedRef} {...props} />\n})\n\nCardContentExWithRef.displayName = 'CardContentEx'\n\nexport const CardContentEx = CardContentExWithRef\n","import { Card, CardProps } from '@mui/material'\nimport { useGradientStyles } from '@xyo-network/react-shared'\nimport React, { forwardRef } from 'react'\n\nexport interface CardExProps extends CardProps {\n gradient?: 'border' | 'background'\n}\n\nexport const CardExWithRef = forwardRef<HTMLDivElement, CardExProps>(({ style, gradient, ...props }, ref) => {\n const { styles } = useGradientStyles()\n const gradientStyle\n = gradient === 'border'\n ? styles.border\n : gradient === 'background'\n ? styles.background\n : {}\n return (\n <Card\n style={{\n ...gradientStyle,\n ...style,\n }}\n ref={ref}\n {...props}\n />\n )\n})\n\nCardExWithRef.displayName = 'CardEx'\n\nexport const CardEx = CardExWithRef\n","import { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-material'\nimport { alpha, Card, CardActions, CardContent, CardMedia, CardProps, Grid, IconButton, Typography, useTheme, Zoom } from '@mui/material'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useIsMobile } from '@xyo-network/react-shared'\nimport React, { ReactNode, useState } from 'react'\nimport { To, useNavigate } from 'react-router-dom'\n\nexport interface FullWidthCardProps extends CardProps {\n cardIsButton?: boolean\n desc?: ReactNode\n href?: string\n linkText?: string\n media?: string\n name: ReactNode\n small?: boolean\n to?: To\n}\n\nexport const FullWidthCard: React.FC<FullWidthCardProps> = ({ cardIsButton, desc, href, media, name, small, to, ...props }) => {\n const theme = useTheme()\n const [raised, setRaised] = useState(false)\n const navigate = useNavigate()\n const isMobile = useIsMobile()\n\n const localRouteChange = (to: To | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n to ? navigate(to) : navigate('/404')\n }\n const externalRouteChange = (href: string | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n href ? window.open(href) : navigate('/404')\n }\n\n return (\n <Card\n elevation={raised ? 3 : 0}\n style={{ height: '100%', width: '100%' }}\n {...props}\n sx={{\n '&:hover': {\n cursor: 'pointer',\n },\n 'backgroundColor': alpha(theme.palette.primary.light, 0.05),\n }}\n onMouseEnter={() =>\n isMobile\n ? null\n : cardIsButton\n ? setRaised(true)\n : null}\n onMouseLeave={() =>\n isMobile\n ? null\n : cardIsButton\n ? setRaised(false)\n : null}\n onClick={() =>\n cardIsButton\n ? href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')\n : null}\n >\n {media\n ? <CardMedia component=\"img\" height=\"100\" image={media} alt=\"\" />\n : null}\n\n <CardContent>\n <Grid container alignItems=\"center\" paddingY={2} paddingX={2}>\n <Grid item xs={12} md={6}>\n {typeof name === 'string'\n ? (\n <Typography fontWeight={700} variant=\"h2\" textAlign=\"left\" paddingBottom={1}>\n {name}\n </Typography>\n )\n : name}\n </Grid>\n <Grid item xs={12} md={5}>\n <Typography variant=\"body1\" fontWeight={400} textAlign=\"left\">\n {desc}\n </Typography>\n </Grid>\n <Grid item xs={1} display={isMobile ? 'none' : 'flex'} justifyContent=\"center\">\n <Zoom in={raised}>\n <IconButton\n color=\"primary\"\n size={small ? 'small' : 'medium'}\n onClick={() =>\n href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n >\n <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />\n </IconButton>\n </Zoom>\n </Grid>\n </Grid>\n </CardContent>\n <CardActions sx={{ display: { md: isMobile ? 'flex' : 'none' } }}>\n <FlexGrowCol alignItems=\"flex-end\">\n <IconButton\n color=\"primary\"\n size={small ? 'small' : 'medium'}\n onClick={() =>\n href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n >\n <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />\n </IconButton>\n </FlexGrowCol>\n </CardActions>\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { CardHeader, CardHeaderProps, IconButton } from '@mui/material'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport React, { forwardRef, ReactNode } from 'react'\n\nimport { CardEx, CardExProps } from './CardEx.tsx'\n\nexport interface PageCardProps extends CardExProps {\n action?: ReactNode\n onRefresh?: () => void\n subheader?: CardHeaderProps['subheader']\n}\n\nconst PageCardWithRef = forwardRef<HTMLDivElement, PageCardProps>(({ subheader, title, onRefresh, children, action, style, ...props }, ref) => {\n return (\n <CardEx style={{ backgroundColor: 'transparent', position: 'relative', ...style }} elevation={0} ref={ref} {...props}>\n <CardHeader\n title={(\n <TypographyEx variant=\"h5\" gutterBottom>\n {title}\n </TypographyEx>\n )}\n subheader={<TypographyEx variant=\"subtitle1\">{subheader}</TypographyEx>}\n action={\n action ?? (\n <>\n {onRefresh\n ? (\n <IconButton onClick={() => onRefresh?.()}>\n <RefreshIcon />\n </IconButton>\n )\n : null}\n </>\n )\n }\n />\n {children}\n </CardEx>\n )\n})\n\nPageCardWithRef.displayName = 'PageCard'\n\nexport const PageCard = PageCardWithRef\n","import { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-material'\nimport { alpha, CardActions, CardContent, CardMedia, IconButton, Typography, useTheme } from '@mui/material'\nimport { FlexCol, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useIsMobile } from '@xyo-network/react-shared'\nimport React, { ReactNode, useState } from 'react'\nimport { To, useNavigate } from 'react-router-dom'\n\nimport { CardEx, CardExProps } from '../CardEx.tsx'\n\nexport interface SimpleCardProps extends CardExProps {\n desc?: ReactNode\n headline?: ReactNode\n href?: string\n iconImage?: string\n interactionVariant?: 'button' | 'card'\n media?: string\n small?: boolean\n subtitle?: string\n to?: To\n}\n\nexport const SimpleCard: React.FC<SimpleCardProps> = ({\n desc,\n iconImage,\n interactionVariant = 'card',\n headline,\n href,\n media,\n small,\n subtitle,\n sx,\n to,\n ...props\n}) => {\n const theme = useTheme()\n const [raised, setRaised] = useState(false)\n const navigate = useNavigate()\n const isMobile = useIsMobile()\n const localRouteChange = (to: To | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n to ? navigate(to) : navigate('/404')\n }\n const externalRouteChange = (href: string | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n href ? window.open(href) : navigate('/404')\n }\n return (\n <CardEx\n elevation={raised ? 3 : 0}\n sx={{\n '&:hover': {\n cursor: interactionVariant == 'button' ? 'pointer' : null,\n },\n 'backgroundColor': alpha(theme.palette.primary.light, 0.05),\n ...sx,\n }}\n onMouseEnter={() =>\n isMobile\n ? null\n : interactionVariant == 'button'\n ? setRaised(true)\n : null}\n onMouseLeave={() =>\n isMobile\n ? null\n : interactionVariant == 'button'\n ? setRaised(false)\n : null}\n onClick={() =>\n interactionVariant == 'button'\n ? href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')\n : null}\n {...props}\n >\n {media\n ? <CardMedia component=\"img\" height=\"100\" image={media} alt=\"\" />\n : null}\n\n <CardContent sx={{ height: '100%' }}>\n <FlexCol width=\"100%\" alignItems=\"flex-start\">\n {iconImage\n ? <img src={iconImage} height=\"40px\" style={{ paddingBottom: '8px' }} />\n : null}\n {typeof headline === 'string'\n ? (\n <Typography variant={small ? 'body1' : 'h6'} textAlign=\"left\" gutterBottom>\n {headline}\n </Typography>\n )\n : headline}\n {subtitle\n ? (\n <Typography variant=\"subtitle2\" textAlign=\"left\" gutterBottom>\n {subtitle}\n </Typography>\n )\n : null}\n <Typography variant={small ? 'caption' : 'body1'} textAlign=\"left\" gutterBottom>\n {desc}\n </Typography>\n </FlexCol>\n </CardContent>\n {interactionVariant == 'button'\n ? (\n <CardActions>\n <FlexGrowCol alignItems=\"flex-end\">\n <IconButton\n color={raised ? 'secondary' : 'primary'}\n size={small ? 'small' : 'medium'}\n onClick={() =>\n href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n >\n <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />\n </IconButton>\n </FlexGrowCol>\n </CardActions>\n )\n : null}\n </CardEx>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,sBAAsD;AACtD,0BAAqC;AACrC,mBAA6C;AAE7C,IAAMA,wBAAoBC,wBAAOC,6BAAa;EAC5CC,MAAM;EACNC,mBAAmB,wBAACC,SAAiB,CAAC;IAAC;IAAW;IAAiBC,SAASD,IAAAA,GAAzD;EACnBE,MAAM;AACR,CAAA,EAAuB,CAAC,EAAEC,SAASC,cAAa,OAAQ;EACtD,IAAKD,YAAY,gBAAgBC,kBAAkB;IACjD,CAAC,aAAA,GAAgB;MACfC,eAAe;IACjB;IACAC,UAAU;IACVC,YAAY;IACZ,GAAIH,iBAAiB;MAAEI,SAAS;IAAE;EACpC;AACF,EAAA;AASO,IAAMC,uBAAuBC,6CAAsD,CAAC,EAAEC,cAAc,GAAGC,aAAa,GAAG,GAAGC,MAAAA,GAASC,QAAAA;AACxI,QAAMC,gBAAYC,0CAAqCF,KAAKF,UAAAA;AAE5DK,8BAAU,MAAA;AA7BZ;AA8BI,QAAIF,aAAaJ,aAAa;AAC5BI,sBAAUG,YAAVH,mBAAmBI,OAAO;QAAEC,UAAU;QAAUC,KAAK;MAAE;IACzD;EACF,GAAG;IAACN;IAAWJ;GAAY;AAE3B,SAAO,6BAAAW,QAAA,cAAC3B,m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AAAnC,QAAA,cAACoC,uBAAAA,qBAAAA;IAAwBC,UAAUvD,QAAQ,UAAU;UAK7D,IAAA;AAGV,GA9GqD;","names":["CardContentExRoot","styled","CardContent","name","shouldForwardProp","prop","includes","slot","variant","removePadding","paddingBottom","overflow","paddingTop","padding","CardContentExWithRef","forwardRef","scrollToTop","refreshRef","props","ref","sharedRef","useShareForwardedRef","useEffect","current","scroll","behavior","top","React","displayName","CardContentEx","import_material","import_react_shared","import_react","CardExWithRef","forwardRef","style","gradient","props","ref","styles","useGradientStyles","gradientStyle","border","background","React","Card","displayName","CardEx","import_material","import_react_shared","import_react","FullWidthCard","cardIsButton","desc","href","media","name","small","to","props","theme","useTheme","raised","setRaised","useState","navigate","useNavigate","isMobile","useIsMobile","localRouteChange","externalRouteChange","window","open","React","Card","elevation","style","height","width","sx","cursor","alpha","palette","primary","light","onMouseEnter","onMouseLeave","onClick","CardMedia","component","image","alt","CardContent","Grid","container","alignItems","paddingY","paddingX","item","xs","md","Typography","fontWeight","variant","textAlign","paddingBottom","display","justifyContent","Zoom","in","IconButton","color","size","disableFocusRipple","disableRipple","disableTouchRipple","ArrowForwardRoundedIcon","fontSize","CardActions","FlexGrowCol","import_icons_material","import_material","import_react_shared","import_react","PageCardWithRef","forwardRef","subheader","title","onRefresh","children","action","style","props","ref","React","CardEx","backgroundColor","position","elevation","CardHeader","TypographyEx","variant","gutterBottom","IconButton","onClick","RefreshIcon","displayName","PageCard","import_icons_material","import_material","import_react_flexbox","import_react_shared","import_react","import_react_router_dom","SimpleCard","desc","iconImage","interactionVariant","headline","href","media","small","subtitle","sx","to","props","theme","useTheme","raised","setRaised","useState","navigate","useNavigate","isMobile","useIsMobile","localRouteChange","externalRouteChange","window","open","React","CardEx","elevation","cursor","alpha","palette","primary","light","onMouseEnter","onMouseLeave","onClick","CardMedia","component","height","image","alt","CardContent","FlexCol","width","alignItems","img","src","style","paddingBottom","Typography","variant","textAlign","gutterBottom","CardActions","FlexGrowCol","IconButton","color","size","disableFocusRipple","disableRipple","disableTouchRipple","ArrowForwardRoundedIcon","fontSize"]}
|
package/dist/node/index.d.cts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/node/index.d.mts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
package/dist/node/index.d.ts
DELETED
package/dist/node/index.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|