@zidsa/zidmui 3.0.7 → 3.0.8

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,5 +1,7 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var propTypes = { exports: {} };
4
- exports.__module = propTypes;
2
+ const _commonjsHelpers = require("./_commonjsHelpers.js");
3
+ const index = require("../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
4
+ var propTypesExports = /* @__PURE__ */ index.__require();
5
+ const PropTypes = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(propTypesExports);
6
+ module.exports = PropTypes;
5
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- const _commonjsHelpers = require("./_commonjsHelpers.js");
3
- const index = require("../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js");
4
- var propTypesExports = /* @__PURE__ */ index.__require();
5
- const PropTypes = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(propTypesExports);
6
- module.exports = PropTypes;
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var propTypes = { exports: {} };
4
+ exports.__module = propTypes;
7
5
  //# sourceMappingURL=index2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -30,7 +30,7 @@ const AppCard = ({
30
30
  /* @__PURE__ */ jsxRuntime.jsxs(CardHead, { ...headerProps, children: [
31
31
  titlePrefix,
32
32
  (!!title || !!description) && /* @__PURE__ */ jsxRuntime.jsxs(stackColumn.StackColumn, { gap: 0.25, width: "100%", ...titleContainerProps, children: [
33
- typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsxs(appTypography.AppTypography, { variant: "subtitle1", color: "text.primary", gap: 1, ...titleProps, children: [
33
+ typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsxs(appTypography.AppTypography, { variant: "h6", color: "text.primary", gap: 1, ...titleProps, children: [
34
34
  title,
35
35
  " ",
36
36
  titleSuffix ? titleSuffix : null
@@ -1 +1 @@
1
- {"version":3,"file":"app-card.js","sources":["../../../../src/components/app-card.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AppTypography, type AppTypographyProps } from './app-typography';\n\nimport { type Theme, SxProps, Card, CardContent, Divider } from '@mui/material';\nimport { StackRow, StackRowProps } from './stack-row';\nimport { StackColumn, StackColumnProps } from './stack-column';\nimport { styled } from '@mui/material/styles';\n\n//\n//\n\nexport type AppCardColor = 'primary' | 'success' | 'error' | 'warning' | 'info' | 'neutral';\n\nexport type AppCardCorners = 'grouped' | 'all';\n\nexport type AppCardProps = {\n children?: React.ReactNode;\n color?: AppCardColor;\n roundedCorners?: AppCardCorners;\n title?: string | React.ReactNode;\n headerProps?: StackRowProps;\n titleContainerProps?: StackColumnProps;\n titleProps?: AppTypographyProps;\n titlePrefix?: React.ReactNode;\n titleSuffix?: React.ReactNode;\n titleAction?: React.ReactNode;\n titleDivider?: boolean;\n description?: React.ReactNode;\n descriptionProps?: AppTypographyProps;\n sx?: SxProps<Theme>;\n loading?: boolean;\n actions?: React.ReactElement | null | (React.ReactElement | null)[];\n actionsProps?: StackRowProps;\n};\n\nexport const AppCard: React.FC<AppCardProps> = ({\n color,\n title,\n description,\n descriptionProps,\n headerProps,\n titleContainerProps,\n titleProps,\n titleSuffix,\n titleAction,\n titleDivider,\n titlePrefix,\n children,\n actions,\n actionsProps,\n loading,\n ...props\n}) => {\n const hasActions = Boolean(actions && React.Children.toArray(actions)?.length > 0);\n\n return (\n <Card color={color} {...props}>\n <CardHead {...headerProps}>\n {titlePrefix}\n {(!!title || !!description) && (\n <StackColumn gap={0.25} width=\"100%\" {...titleContainerProps}>\n {typeof title === 'string' ? (\n <AppTypography variant=\"subtitle1\" color=\"text.primary\" gap={1} {...titleProps}>\n {title} {titleSuffix ? titleSuffix : null}\n </AppTypography>\n ) : (\n title\n )}\n\n {titleDivider && <Divider />}\n\n {description && (\n <AppTypography\n variant=\"body2\"\n color=\"text.primary\"\n whiteSpace=\"pre-line\"\n {...descriptionProps}\n >\n {description}\n </AppTypography>\n )}\n </StackColumn>\n )}\n {titleAction && <StackRow>{titleAction}</StackRow>}\n </CardHead>\n\n <CardContent>\n {children}\n\n {hasActions && !loading && (\n <StackRow justifyContent=\"end\" {...actionsProps}>\n {actions}\n </StackRow>\n )}\n </CardContent>\n </Card>\n );\n};\n\nconst CardHead = styled(StackRow)(({ theme }) => {\n return {\n gap: theme.spacing(1),\n padding: theme.spacing(1.5),\n paddingBottom: 0,\n width: '100%',\n ':empty': {\n display: 'none',\n },\n };\n});\n"],"names":["jsxs","Card","StackColumn","AppTypography","Divider","jsx","StackRow","CardContent","styled"],"mappings":";;;;;;;;;AAoCO,MAAM,UAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,aAAa,QAAQ,WAAW,MAAM,SAAS,QAAQ,OAAO,GAAG,SAAS,CAAC;AAEjF,SACEA,2BAAAA,KAACC,SAAAA,MAAA,EAAK,OAAe,GAAG,OACtB,UAAA;AAAA,IAAAD,2BAAAA,KAAC,UAAA,EAAU,GAAG,aACX,UAAA;AAAA,MAAA;AAAA,OACC,CAAC,CAAC,SAAS,CAAC,CAAC,gBACbA,2BAAAA,KAACE,YAAAA,aAAA,EAAY,KAAK,MAAM,OAAM,QAAQ,GAAG,qBACtC,UAAA;AAAA,QAAA,OAAO,UAAU,WAChBF,2BAAAA,KAACG,cAAAA,eAAA,EAAc,SAAQ,aAAY,OAAM,gBAAe,KAAK,GAAI,GAAG,YACjE,UAAA;AAAA,UAAA;AAAA,UAAM;AAAA,UAAE,cAAc,cAAc;AAAA,QAAA,EAAA,CACvC,IAEA;AAAA,QAGD,+CAAiBC,SAAAA,SAAA,EAAQ;AAAA,QAEzB,eACCC,2BAAAA;AAAAA,UAACF,cAAAA;AAAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,YAAW;AAAA,YACV,GAAG;AAAA,YAEH,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH,GAEJ;AAAA,MAED,eAAeE,2BAAAA,IAACC,SAAAA,UAAA,EAAU,UAAA,YAAA,CAAY;AAAA,IAAA,GACzC;AAAA,oCAECC,SAAAA,aAAA,EACE,UAAA;AAAA,MAAA;AAAA,MAEA,cAAc,CAAC,WACdF,2BAAAA,IAACC,qBAAS,gBAAe,OAAO,GAAG,cAChC,UAAA,QAAA,CACH;AAAA,IAAA,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;AAEA,MAAM,WAAWE,OAAAA,QAAOF,SAAAA,QAAQ,EAAE,CAAC,EAAE,YAAY;AAC/C,SAAO;AAAA,IACL,KAAK,MAAM,QAAQ,CAAC;AAAA,IACpB,SAAS,MAAM,QAAQ,GAAG;AAAA,IAC1B,eAAe;AAAA,IACf,OAAO;AAAA,IACP,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,CAAC;;"}
1
+ {"version":3,"file":"app-card.js","sources":["../../../../src/components/app-card.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AppTypography, type AppTypographyProps } from './app-typography';\n\nimport { type Theme, SxProps, Card, CardContent, Divider } from '@mui/material';\nimport { StackRow, StackRowProps } from './stack-row';\nimport { StackColumn, StackColumnProps } from './stack-column';\nimport { styled } from '@mui/material/styles';\n\n//\n//\n\nexport type AppCardColor = 'primary' | 'success' | 'error' | 'warning' | 'info' | 'neutral';\n\nexport type AppCardCorners = 'grouped' | 'all';\n\nexport type AppCardProps = {\n children?: React.ReactNode;\n color?: AppCardColor;\n roundedCorners?: AppCardCorners;\n title?: string | React.ReactNode;\n headerProps?: StackRowProps;\n titleContainerProps?: StackColumnProps;\n titleProps?: AppTypographyProps;\n titlePrefix?: React.ReactNode;\n titleSuffix?: React.ReactNode;\n titleAction?: React.ReactNode;\n titleDivider?: boolean;\n description?: React.ReactNode;\n descriptionProps?: AppTypographyProps;\n sx?: SxProps<Theme>;\n loading?: boolean;\n actions?: React.ReactElement | null | (React.ReactElement | null)[];\n actionsProps?: StackRowProps;\n};\n\nexport const AppCard: React.FC<AppCardProps> = ({\n color,\n title,\n description,\n descriptionProps,\n headerProps,\n titleContainerProps,\n titleProps,\n titleSuffix,\n titleAction,\n titleDivider,\n titlePrefix,\n children,\n actions,\n actionsProps,\n loading,\n ...props\n}) => {\n const hasActions = Boolean(actions && React.Children.toArray(actions)?.length > 0);\n\n return (\n <Card color={color} {...props}>\n <CardHead {...headerProps}>\n {titlePrefix}\n {(!!title || !!description) && (\n <StackColumn gap={0.25} width=\"100%\" {...titleContainerProps}>\n {typeof title === 'string' ? (\n <AppTypography variant=\"h6\" color=\"text.primary\" gap={1} {...titleProps}>\n {title} {titleSuffix ? titleSuffix : null}\n </AppTypography>\n ) : (\n title\n )}\n\n {titleDivider && <Divider />}\n\n {description && (\n <AppTypography\n variant=\"body2\"\n color=\"text.primary\"\n whiteSpace=\"pre-line\"\n {...descriptionProps}\n >\n {description}\n </AppTypography>\n )}\n </StackColumn>\n )}\n {titleAction && <StackRow>{titleAction}</StackRow>}\n </CardHead>\n\n <CardContent>\n {children}\n\n {hasActions && !loading && (\n <StackRow justifyContent=\"end\" {...actionsProps}>\n {actions}\n </StackRow>\n )}\n </CardContent>\n </Card>\n );\n};\n\nconst CardHead = styled(StackRow)(({ theme }) => {\n return {\n gap: theme.spacing(1),\n padding: theme.spacing(1.5),\n paddingBottom: 0,\n width: '100%',\n ':empty': {\n display: 'none',\n },\n };\n});\n"],"names":["jsxs","Card","StackColumn","AppTypography","Divider","jsx","StackRow","CardContent","styled"],"mappings":";;;;;;;;;AAoCO,MAAM,UAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,aAAa,QAAQ,WAAW,MAAM,SAAS,QAAQ,OAAO,GAAG,SAAS,CAAC;AAEjF,SACEA,2BAAAA,KAACC,SAAAA,MAAA,EAAK,OAAe,GAAG,OACtB,UAAA;AAAA,IAAAD,2BAAAA,KAAC,UAAA,EAAU,GAAG,aACX,UAAA;AAAA,MAAA;AAAA,OACC,CAAC,CAAC,SAAS,CAAC,CAAC,gBACbA,2BAAAA,KAACE,YAAAA,aAAA,EAAY,KAAK,MAAM,OAAM,QAAQ,GAAG,qBACtC,UAAA;AAAA,QAAA,OAAO,UAAU,WAChBF,2BAAAA,KAACG,cAAAA,eAAA,EAAc,SAAQ,MAAK,OAAM,gBAAe,KAAK,GAAI,GAAG,YAC1D,UAAA;AAAA,UAAA;AAAA,UAAM;AAAA,UAAE,cAAc,cAAc;AAAA,QAAA,EAAA,CACvC,IAEA;AAAA,QAGD,+CAAiBC,SAAAA,SAAA,EAAQ;AAAA,QAEzB,eACCC,2BAAAA;AAAAA,UAACF,cAAAA;AAAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,YAAW;AAAA,YACV,GAAG;AAAA,YAEH,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH,GAEJ;AAAA,MAED,eAAeE,2BAAAA,IAACC,SAAAA,UAAA,EAAU,UAAA,YAAA,CAAY;AAAA,IAAA,GACzC;AAAA,oCAECC,SAAAA,aAAA,EACE,UAAA;AAAA,MAAA;AAAA,MAEA,cAAc,CAAC,WACdF,2BAAAA,IAACC,qBAAS,gBAAe,OAAO,GAAG,cAChC,UAAA,QAAA,CACH;AAAA,IAAA,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;AAEA,MAAM,WAAWE,OAAAA,QAAOF,SAAAA,QAAQ,EAAE,CAAC,EAAE,YAAY;AAC/C,SAAO;AAAA,IACL,KAAK,MAAM,QAAQ,CAAC;AAAA,IACpB,SAAS,MAAM,QAAQ,GAAG;AAAA,IAC1B,eAAe;AAAA,IACf,OAAO;AAAA,IACP,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,CAAC;;"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../../../../../../../../_virtual/index2.js");
2
+ const index = require("../../../../../../../../_virtual/index.js");
3
3
  const responsivePropType = process.env.NODE_ENV !== "production" ? index.oneOfType([index.number, index.string, index.object, index.array]) : {};
4
4
  module.exports = responsivePropType;
5
5
  //# sourceMappingURL=responsivePropType.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index$1 = require("../../../../../_virtual/index.js");
3
+ const index$1 = require("../../../../../_virtual/index2.js");
4
4
  const index = require("../../../react-is@16.13.1/node_modules/react-is/index.js");
5
5
  const factoryWithTypeCheckers = require("./factoryWithTypeCheckers.js");
6
6
  const factoryWithThrowingShims = require("./factoryWithThrowingShims.js");
@@ -1,5 +1,8 @@
1
- var propTypes = { exports: {} };
1
+ import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
2
+ import { __require as requirePropTypes } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
+ var propTypesExports = /* @__PURE__ */ requirePropTypes();
4
+ const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
2
5
  export {
3
- propTypes as __module
6
+ PropTypes as default
4
7
  };
5
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,8 +1,5 @@
1
- import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
2
- import { __require as requirePropTypes } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
- var propTypesExports = /* @__PURE__ */ requirePropTypes();
4
- const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
1
+ var propTypes = { exports: {} };
5
2
  export {
6
- PropTypes as default
3
+ propTypes as __module
7
4
  };
8
5
  //# sourceMappingURL=index2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -28,7 +28,7 @@ const AppCard = ({
28
28
  /* @__PURE__ */ jsxs(CardHead, { ...headerProps, children: [
29
29
  titlePrefix,
30
30
  (!!title || !!description) && /* @__PURE__ */ jsxs(StackColumn, { gap: 0.25, width: "100%", ...titleContainerProps, children: [
31
- typeof title === "string" ? /* @__PURE__ */ jsxs(AppTypography, { variant: "subtitle1", color: "text.primary", gap: 1, ...titleProps, children: [
31
+ typeof title === "string" ? /* @__PURE__ */ jsxs(AppTypography, { variant: "h6", color: "text.primary", gap: 1, ...titleProps, children: [
32
32
  title,
33
33
  " ",
34
34
  titleSuffix ? titleSuffix : null
@@ -1 +1 @@
1
- {"version":3,"file":"app-card.js","sources":["../../../../src/components/app-card.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AppTypography, type AppTypographyProps } from './app-typography';\n\nimport { type Theme, SxProps, Card, CardContent, Divider } from '@mui/material';\nimport { StackRow, StackRowProps } from './stack-row';\nimport { StackColumn, StackColumnProps } from './stack-column';\nimport { styled } from '@mui/material/styles';\n\n//\n//\n\nexport type AppCardColor = 'primary' | 'success' | 'error' | 'warning' | 'info' | 'neutral';\n\nexport type AppCardCorners = 'grouped' | 'all';\n\nexport type AppCardProps = {\n children?: React.ReactNode;\n color?: AppCardColor;\n roundedCorners?: AppCardCorners;\n title?: string | React.ReactNode;\n headerProps?: StackRowProps;\n titleContainerProps?: StackColumnProps;\n titleProps?: AppTypographyProps;\n titlePrefix?: React.ReactNode;\n titleSuffix?: React.ReactNode;\n titleAction?: React.ReactNode;\n titleDivider?: boolean;\n description?: React.ReactNode;\n descriptionProps?: AppTypographyProps;\n sx?: SxProps<Theme>;\n loading?: boolean;\n actions?: React.ReactElement | null | (React.ReactElement | null)[];\n actionsProps?: StackRowProps;\n};\n\nexport const AppCard: React.FC<AppCardProps> = ({\n color,\n title,\n description,\n descriptionProps,\n headerProps,\n titleContainerProps,\n titleProps,\n titleSuffix,\n titleAction,\n titleDivider,\n titlePrefix,\n children,\n actions,\n actionsProps,\n loading,\n ...props\n}) => {\n const hasActions = Boolean(actions && React.Children.toArray(actions)?.length > 0);\n\n return (\n <Card color={color} {...props}>\n <CardHead {...headerProps}>\n {titlePrefix}\n {(!!title || !!description) && (\n <StackColumn gap={0.25} width=\"100%\" {...titleContainerProps}>\n {typeof title === 'string' ? (\n <AppTypography variant=\"subtitle1\" color=\"text.primary\" gap={1} {...titleProps}>\n {title} {titleSuffix ? titleSuffix : null}\n </AppTypography>\n ) : (\n title\n )}\n\n {titleDivider && <Divider />}\n\n {description && (\n <AppTypography\n variant=\"body2\"\n color=\"text.primary\"\n whiteSpace=\"pre-line\"\n {...descriptionProps}\n >\n {description}\n </AppTypography>\n )}\n </StackColumn>\n )}\n {titleAction && <StackRow>{titleAction}</StackRow>}\n </CardHead>\n\n <CardContent>\n {children}\n\n {hasActions && !loading && (\n <StackRow justifyContent=\"end\" {...actionsProps}>\n {actions}\n </StackRow>\n )}\n </CardContent>\n </Card>\n );\n};\n\nconst CardHead = styled(StackRow)(({ theme }) => {\n return {\n gap: theme.spacing(1),\n padding: theme.spacing(1.5),\n paddingBottom: 0,\n width: '100%',\n ':empty': {\n display: 'none',\n },\n };\n});\n"],"names":["React"],"mappings":";;;;;;;AAoCO,MAAM,UAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,aAAa,QAAQ,WAAWA,eAAM,SAAS,QAAQ,OAAO,GAAG,SAAS,CAAC;AAEjF,SACE,qBAAC,MAAA,EAAK,OAAe,GAAG,OACtB,UAAA;AAAA,IAAA,qBAAC,UAAA,EAAU,GAAG,aACX,UAAA;AAAA,MAAA;AAAA,OACC,CAAC,CAAC,SAAS,CAAC,CAAC,gBACb,qBAAC,aAAA,EAAY,KAAK,MAAM,OAAM,QAAQ,GAAG,qBACtC,UAAA;AAAA,QAAA,OAAO,UAAU,WAChB,qBAAC,eAAA,EAAc,SAAQ,aAAY,OAAM,gBAAe,KAAK,GAAI,GAAG,YACjE,UAAA;AAAA,UAAA;AAAA,UAAM;AAAA,UAAE,cAAc,cAAc;AAAA,QAAA,EAAA,CACvC,IAEA;AAAA,QAGD,oCAAiB,SAAA,EAAQ;AAAA,QAEzB,eACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,YAAW;AAAA,YACV,GAAG;AAAA,YAEH,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH,GAEJ;AAAA,MAED,eAAe,oBAAC,UAAA,EAAU,UAAA,YAAA,CAAY;AAAA,IAAA,GACzC;AAAA,yBAEC,aAAA,EACE,UAAA;AAAA,MAAA;AAAA,MAEA,cAAc,CAAC,WACd,oBAAC,YAAS,gBAAe,OAAO,GAAG,cAChC,UAAA,QAAA,CACH;AAAA,IAAA,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;AAEA,MAAM,WAAW,OAAO,QAAQ,EAAE,CAAC,EAAE,YAAY;AAC/C,SAAO;AAAA,IACL,KAAK,MAAM,QAAQ,CAAC;AAAA,IACpB,SAAS,MAAM,QAAQ,GAAG;AAAA,IAC1B,eAAe;AAAA,IACf,OAAO;AAAA,IACP,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,CAAC;"}
1
+ {"version":3,"file":"app-card.js","sources":["../../../../src/components/app-card.tsx"],"sourcesContent":["import React from 'react';\n\nimport { AppTypography, type AppTypographyProps } from './app-typography';\n\nimport { type Theme, SxProps, Card, CardContent, Divider } from '@mui/material';\nimport { StackRow, StackRowProps } from './stack-row';\nimport { StackColumn, StackColumnProps } from './stack-column';\nimport { styled } from '@mui/material/styles';\n\n//\n//\n\nexport type AppCardColor = 'primary' | 'success' | 'error' | 'warning' | 'info' | 'neutral';\n\nexport type AppCardCorners = 'grouped' | 'all';\n\nexport type AppCardProps = {\n children?: React.ReactNode;\n color?: AppCardColor;\n roundedCorners?: AppCardCorners;\n title?: string | React.ReactNode;\n headerProps?: StackRowProps;\n titleContainerProps?: StackColumnProps;\n titleProps?: AppTypographyProps;\n titlePrefix?: React.ReactNode;\n titleSuffix?: React.ReactNode;\n titleAction?: React.ReactNode;\n titleDivider?: boolean;\n description?: React.ReactNode;\n descriptionProps?: AppTypographyProps;\n sx?: SxProps<Theme>;\n loading?: boolean;\n actions?: React.ReactElement | null | (React.ReactElement | null)[];\n actionsProps?: StackRowProps;\n};\n\nexport const AppCard: React.FC<AppCardProps> = ({\n color,\n title,\n description,\n descriptionProps,\n headerProps,\n titleContainerProps,\n titleProps,\n titleSuffix,\n titleAction,\n titleDivider,\n titlePrefix,\n children,\n actions,\n actionsProps,\n loading,\n ...props\n}) => {\n const hasActions = Boolean(actions && React.Children.toArray(actions)?.length > 0);\n\n return (\n <Card color={color} {...props}>\n <CardHead {...headerProps}>\n {titlePrefix}\n {(!!title || !!description) && (\n <StackColumn gap={0.25} width=\"100%\" {...titleContainerProps}>\n {typeof title === 'string' ? (\n <AppTypography variant=\"h6\" color=\"text.primary\" gap={1} {...titleProps}>\n {title} {titleSuffix ? titleSuffix : null}\n </AppTypography>\n ) : (\n title\n )}\n\n {titleDivider && <Divider />}\n\n {description && (\n <AppTypography\n variant=\"body2\"\n color=\"text.primary\"\n whiteSpace=\"pre-line\"\n {...descriptionProps}\n >\n {description}\n </AppTypography>\n )}\n </StackColumn>\n )}\n {titleAction && <StackRow>{titleAction}</StackRow>}\n </CardHead>\n\n <CardContent>\n {children}\n\n {hasActions && !loading && (\n <StackRow justifyContent=\"end\" {...actionsProps}>\n {actions}\n </StackRow>\n )}\n </CardContent>\n </Card>\n );\n};\n\nconst CardHead = styled(StackRow)(({ theme }) => {\n return {\n gap: theme.spacing(1),\n padding: theme.spacing(1.5),\n paddingBottom: 0,\n width: '100%',\n ':empty': {\n display: 'none',\n },\n };\n});\n"],"names":["React"],"mappings":";;;;;;;AAoCO,MAAM,UAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,aAAa,QAAQ,WAAWA,eAAM,SAAS,QAAQ,OAAO,GAAG,SAAS,CAAC;AAEjF,SACE,qBAAC,MAAA,EAAK,OAAe,GAAG,OACtB,UAAA;AAAA,IAAA,qBAAC,UAAA,EAAU,GAAG,aACX,UAAA;AAAA,MAAA;AAAA,OACC,CAAC,CAAC,SAAS,CAAC,CAAC,gBACb,qBAAC,aAAA,EAAY,KAAK,MAAM,OAAM,QAAQ,GAAG,qBACtC,UAAA;AAAA,QAAA,OAAO,UAAU,WAChB,qBAAC,eAAA,EAAc,SAAQ,MAAK,OAAM,gBAAe,KAAK,GAAI,GAAG,YAC1D,UAAA;AAAA,UAAA;AAAA,UAAM;AAAA,UAAE,cAAc,cAAc;AAAA,QAAA,EAAA,CACvC,IAEA;AAAA,QAGD,oCAAiB,SAAA,EAAQ;AAAA,QAEzB,eACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,YAAW;AAAA,YACV,GAAG;AAAA,YAEH,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACH,GAEJ;AAAA,MAED,eAAe,oBAAC,UAAA,EAAU,UAAA,YAAA,CAAY;AAAA,IAAA,GACzC;AAAA,yBAEC,aAAA,EACE,UAAA;AAAA,MAAA;AAAA,MAEA,cAAc,CAAC,WACd,oBAAC,YAAS,gBAAe,OAAO,GAAG,cAChC,UAAA,QAAA,CACH;AAAA,IAAA,EAAA,CAEJ;AAAA,EAAA,GACF;AAEJ;AAEA,MAAM,WAAW,OAAO,QAAQ,EAAE,CAAC,EAAE,YAAY;AAC/C,SAAO;AAAA,IACL,KAAK,MAAM,QAAQ,CAAC;AAAA,IACpB,SAAS,MAAM,QAAQ,GAAG;AAAA,IAC1B,eAAe;AAAA,IACf,OAAO;AAAA,IACP,UAAU;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,CAAC;"}
@@ -1,4 +1,4 @@
1
- import PropTypes from "../../../../../../../../_virtual/index2.js";
1
+ import PropTypes from "../../../../../../../../_virtual/index.js";
2
2
  const responsivePropType = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
3
3
  export {
4
4
  responsivePropType as default
@@ -1,4 +1,4 @@
1
- import { __module as propTypes } from "../../../../../_virtual/index.js";
1
+ import { __module as propTypes } from "../../../../../_virtual/index2.js";
2
2
  import { __require as requireReactIs } from "../../../react-is@16.13.1/node_modules/react-is/index.js";
3
3
  import { __require as requireFactoryWithTypeCheckers } from "./factoryWithTypeCheckers.js";
4
4
  import { __require as requireFactoryWithThrowingShims } from "./factoryWithThrowingShims.js";