@elliemae/ds-card-v3 3.70.0-next.25 → 3.70.0-next.26
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.
- package/dist/cjs/constants/index.js +1 -12
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/parts/DSCardBody/DSCardBody.js +1 -1
- package/dist/cjs/parts/DSCardBody/DSCardBody.js.map +2 -2
- package/dist/cjs/parts/DSCardBody/config/useCardBody.js +2 -2
- package/dist/cjs/parts/DSCardBody/config/useCardBody.js.map +2 -2
- package/dist/cjs/parts/DSCardBody/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/parts/DSCardFooter/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/parts/DSCardHeader/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +38 -0
- package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
- package/dist/esm/constants/index.js +1 -12
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/parts/DSCardBody/DSCardBody.js +2 -2
- package/dist/esm/parts/DSCardBody/DSCardBody.js.map +2 -2
- package/dist/esm/parts/DSCardBody/config/useCardBody.js +2 -2
- package/dist/esm/parts/DSCardBody/config/useCardBody.js.map +2 -2
- package/dist/esm/parts/DSCardBody/react-desc-prop-types.js.map +2 -2
- package/dist/esm/parts/DSCardFooter/react-desc-prop-types.js.map +2 -2
- package/dist/esm/parts/DSCardHeader/react-desc-prop-types.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +15 -0
- package/dist/esm/typescript-testing/slot-props.js.map +7 -0
- package/dist/types/constants/index.d.ts +0 -5
- package/dist/types/parts/DSCardBody/config/useCardBody.d.ts +1 -1
- package/dist/types/parts/DSCardBody/react-desc-prop-types.d.ts +3 -0
- package/dist/types/parts/DSCardFooter/react-desc-prop-types.d.ts +3 -0
- package/dist/types/parts/DSCardHeader/react-desc-prop-types.d.ts +3 -0
- package/dist/types/react-desc-prop-types.d.ts +3 -0
- package/dist/types/tests/DSCardV3.api.test.d.ts +1 -0
- package/dist/types/tests/DSCardV3.data-testid.test.d.ts +1 -0
- package/dist/types/tests/DSCardV3.exports.test.d.ts +1 -0
- package/dist/types/tests/DSCardV3.get-owner-props-arguments.test.d.ts +1 -0
- package/dist/types/tests/DSCardV3.proptype-schema.test.d.ts +1 -0
- package/dist/types/typescript-testing/slot-props.d.ts +1 -0
- package/package.json +7 -7
- /package/dist/types/tests/{DSCardV3.test.d.ts → DSCardV3.a11y.test.d.ts} +0 -0
|
@@ -35,9 +35,7 @@ __export(constants_exports, {
|
|
|
35
35
|
DSCardV3FooterName: () => DSCardV3FooterName,
|
|
36
36
|
DSCardV3HeaderName: () => DSCardV3HeaderName,
|
|
37
37
|
DSCardV3Name: () => DSCardV3Name,
|
|
38
|
-
|
|
39
|
-
Variants: () => Variants,
|
|
40
|
-
omit: () => omit
|
|
38
|
+
Variants: () => Variants
|
|
41
39
|
});
|
|
42
40
|
module.exports = __toCommonJS(constants_exports);
|
|
43
41
|
var React = __toESM(require("react"));
|
|
@@ -50,10 +48,6 @@ const Variants = {
|
|
|
50
48
|
DEFAULT: "default",
|
|
51
49
|
ACCENTED: "accented"
|
|
52
50
|
};
|
|
53
|
-
const EXAMPLE_CONSTANTS = {
|
|
54
|
-
HELLO: "WORLD",
|
|
55
|
-
FOO: "BAR"
|
|
56
|
-
};
|
|
57
51
|
const CARD_V_3_SLOTS_PARTS = {
|
|
58
52
|
ROOT: { ROOT: "root" },
|
|
59
53
|
HEADER: { HEADER: "header" },
|
|
@@ -67,9 +61,4 @@ const CARD_V_3_SLOTS = {
|
|
|
67
61
|
FOOTER: "footer"
|
|
68
62
|
};
|
|
69
63
|
const CARD_V_3_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(DSCardV3Name, CARD_V_3_SLOTS);
|
|
70
|
-
const omit = (obj, ...keys) => {
|
|
71
|
-
const a = { ...obj };
|
|
72
|
-
keys.forEach((key) => delete a[key]);
|
|
73
|
-
return a;
|
|
74
|
-
};
|
|
75
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSCardV3Name = 'DSCardv3';\nexport const DSCardV3HeaderName = 'DSCardv3header';\nexport const DSCardV3FooterName = 'DSCardv3footer';\nexport const DSCardV3BodyName = 'DSCardv3body';\n\nexport const Variants = {\n DEFAULT: 'default',\n ACCENTED: 'accented',\n} as const;\n\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSCardV3Name = 'DSCardv3';\nexport const DSCardV3HeaderName = 'DSCardv3header';\nexport const DSCardV3FooterName = 'DSCardv3footer';\nexport const DSCardV3BodyName = 'DSCardv3body';\n\nexport const Variants = {\n DEFAULT: 'default',\n ACCENTED: 'accented',\n} as const;\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\n\nexport const CARD_V_3_SLOTS_PARTS = {\n ROOT: { ROOT: 'root' },\n HEADER: { HEADER: 'header' },\n BODY: { BODY: 'body' },\n FOOTER: { FOOTER: 'footer' },\n} as const;\n\nexport const CARD_V_3_SLOTS = {\n ROOT: 'root',\n HEADER: 'header',\n BODY: 'body',\n FOOTER: 'footer',\n} as const;\n\n// we are giving \"component_name_data_testid\" to avoid errors on duplicate exports variables in aggregators\nexport const CARD_V_3_DATA_TESTID = slotObjectToDataTestIds(DSCardV3Name, CARD_V_3_SLOTS);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,eAAe;AACrB,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AAEzB,MAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,UAAU;AACZ;AAIO,MAAM,uBAAuB;AAAA,EAClC,MAAM,EAAE,MAAM,OAAO;AAAA,EACrB,QAAQ,EAAE,QAAQ,SAAS;AAAA,EAC3B,MAAM,EAAE,MAAM,OAAO;AAAA,EACrB,QAAQ,EAAE,QAAQ,SAAS;AAC7B;AAEO,MAAM,iBAAiB;AAAA,EAC5B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;AAGO,MAAM,2BAAuB,0CAAwB,cAAc,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -46,7 +46,7 @@ const StyledWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name:
|
|
|
46
46
|
${import_ds_system.xStyledCommonProps}
|
|
47
47
|
`;
|
|
48
48
|
const DSCardBody = (props) => {
|
|
49
|
-
const { propsWithDefault, gridProps } = (0, import_useCardBody.
|
|
49
|
+
const { propsWithDefault, gridProps } = (0, import_useCardBody.useCardBody)(props);
|
|
50
50
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { getOwnerProps: () => propsWithDefault, ...gridProps, children: propsWithDefault.children || "" });
|
|
51
51
|
};
|
|
52
52
|
DSCardBody.displayName = import_constants.DSCardV3BodyName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/parts/DSCardBody/DSCardBody.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSCardBodyT, DSCardBodyPropTypesSchema } from './react-desc-prop-types.js';\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBnB;AAhBJ,8BAAyB;AACzB,uBAA2C;AAC3C,qBAAqB;AACrB,mCAA4D;AAC5D,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSCardBodyT, DSCardBodyPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardBody } from './config/useCardBody.js';\nimport { CARD_V_3_SLOTS, DSCardV3Name, DSCardV3BodyName } from '../../constants/index.js';\n\nconst StyledWrapper = styled(Grid, { name: DSCardV3Name, slot: CARD_V_3_SLOTS.BODY })`\n min-width: 240px;\n padding: 8px 16px;\n ${xStyledCommonProps}\n`;\n\nconst DSCardBody: React.ComponentType<DSCardBodyT.Props> = (props) => {\n const { propsWithDefault, gridProps } = useCardBody(props);\n return (\n <StyledWrapper getOwnerProps={() => propsWithDefault} {...gridProps}>\n {propsWithDefault.children || ''}\n </StyledWrapper>\n );\n};\n\nDSCardBody.displayName = DSCardV3BodyName;\nconst DSCardBodyWithSchema = describe(DSCardBody);\nDSCardBodyWithSchema.propTypes = DSCardBodyPropTypesSchema;\n\nexport { DSCardBody, DSCardBodyWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBnB;AAhBJ,8BAAyB;AACzB,uBAA2C;AAC3C,qBAAqB;AACrB,mCAA4D;AAC5D,yBAA4B;AAC5B,uBAA+D;AAE/D,MAAM,oBAAgB,yBAAO,qBAAM,EAAE,MAAM,+BAAc,MAAM,gCAAe,KAAK,CAAC;AAAA;AAAA;AAAA,IAGhF,mCAAkB;AAAA;AAGtB,MAAM,aAAqD,CAAC,UAAU;AACpE,QAAM,EAAE,kBAAkB,UAAU,QAAI,gCAAY,KAAK;AACzD,SACE,4CAAC,iBAAc,eAAe,MAAM,kBAAmB,GAAG,WACvD,2BAAiB,YAAY,IAChC;AAEJ;AAEA,WAAW,cAAc;AACzB,MAAM,2BAAuB,kCAAS,UAAU;AAChD,qBAAqB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var useCardBody_exports = {};
|
|
30
30
|
__export(useCardBody_exports, {
|
|
31
|
-
|
|
31
|
+
useCardBody: () => useCardBody
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(useCardBody_exports);
|
|
34
34
|
var React = __toESM(require("react"));
|
|
@@ -38,7 +38,7 @@ var import_react = __toESM(require("react"));
|
|
|
38
38
|
var import_uid = require("uid");
|
|
39
39
|
var import_react_desc_prop_types = require("../react-desc-prop-types.js");
|
|
40
40
|
var import_useValidateProps = require("./useValidateProps.js");
|
|
41
|
-
const
|
|
41
|
+
const useCardBody = (propsFromUser) => {
|
|
42
42
|
const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
|
|
43
43
|
(0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSCardBodyPropTypes);
|
|
44
44
|
const gridProps = (0, import_ds_grid.getGridProps)(propsWithDefault);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/parts/DSCardBody/config/useCardBody.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { getGridProps } from '@elliemae/ds-grid';\nimport { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { uid } from 'uid';\nimport { DSCardBodyPropTypes, defaultProps, type DSCardBodyT } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAA6B;AAC7B,8BAA6C;AAC7C,mBAAkB;AAClB,iBAAoB;AACpB,mCAAoE;AACpE,8BAAiC;AAE1B,MAAM,
|
|
4
|
+
"sourcesContent": ["import { getGridProps } from '@elliemae/ds-grid';\nimport { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { uid } from 'uid';\nimport { DSCardBodyPropTypes, defaultProps, type DSCardBodyT } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const useCardBody = (propsFromUser: DSCardBodyT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardBodyT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardBodyPropTypes);\n // =============================================================================\n // WE inherit the global attributes and xstyled props from GRID\n // =============================================================================\n const gridProps = getGridProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n const { id } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n gridProps,\n instanceUid,\n }),\n [propsWithDefault, gridProps, instanceUid],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAA6B;AAC7B,8BAA6C;AAC7C,mBAAkB;AAClB,iBAAoB;AACpB,mCAAoE;AACpE,8BAAiC;AAE1B,MAAM,cAAc,CAAC,kBAAqC;AAI/D,QAAM,uBAAmB,sDAAwD,eAAe,yCAAY;AAC5G,gDAAiB,kBAAkB,gDAAmB;AAItD,QAAM,gBAAY,6BAAa,gBAAgB;AAI/C,QAAM,EAAE,GAAG,IAAI;AACf,QAAM,cAAc,aAAAA,QAAM,QAAQ,MAAM,UAAM,gBAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAE1D,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,WAAW,WAAW;AAAA,EAC3C;AACF;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/parts/DSCardBody/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardBodyT {\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.BODY> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardBodyT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardBodyPropTypes: DSPropTypesSchema<DSCardBodyT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.BODY),\n};\n\nexport const DSCardBodyPropTypesSchema = DSCardBodyPropTypes as unknown as ValidationMap<DSCardBodyT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qBAAgF;AAEhF,8BAAyC;AAEzC,uBAAmD;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardBodyT {\n export type SlotFunctionArguments = {\n dsCardv3Body: () => object;\n };\n\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.BODY> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardBodyT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardBodyPropTypes: DSPropTypesSchema<DSCardBodyT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.BODY),\n};\n\nexport const DSCardBodyPropTypesSchema = DSCardBodyPropTypes as unknown as ValidationMap<DSCardBodyT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qBAAgF;AAEhF,8BAAyC;AAEzC,uBAAmD;AA2C5C,MAAM,eAAyC;AAAA,EACpD,GAAG,eAAAA;AACL;AAEO,MAAM,sBAA4D;AAAA,EACvE,GAAG;AAAA,EACH,OAAG,kDAAyB,+BAAc,sCAAqB,IAAI;AACrE;AAEO,MAAM,4BAA4B;",
|
|
6
6
|
"names": ["gridDefaultProps"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/parts/DSCardFooter/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\n\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardFooterT {\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.FOOTER> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardFooterT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardFooterPropTypes: DSPropTypesSchema<DSCardFooterT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.FOOTER),\n children: PropTypes.any.description('The content of the card'),\n};\n\nexport const DSCardFooterPropTypesSchema = DSCardFooterPropTypes as unknown as WeakValidationMap<DSCardFooterT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,qBAAgF;AAEhF,8BAAoD;AAGpD,uBAAmD;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\n\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardFooterT {\n export type SlotFunctionArguments = {\n dsCardv3Footer: () => object;\n };\n\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.FOOTER> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardFooterT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardFooterPropTypes: DSPropTypesSchema<DSCardFooterT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.FOOTER),\n children: PropTypes.any.description('The content of the card'),\n};\n\nexport const DSCardFooterPropTypesSchema = DSCardFooterPropTypes as unknown as WeakValidationMap<DSCardFooterT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,qBAAgF;AAEhF,8BAAoD;AAGpD,uBAAmD;AA2C5C,MAAM,eAA2C;AAAA,EACtD,GAAG,eAAAA;AACL;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,OAAG,kDAAyB,+BAAc,sCAAqB,MAAM;AAAA,EACrE,UAAU,kCAAU,IAAI,YAAY,yBAAyB;AAC/D;AAEO,MAAM,8BAA8B;",
|
|
6
6
|
"names": ["gridDefaultProps"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/parts/DSCardHeader/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { Theme } from '@elliemae/ds-system';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardHeaderT {\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends DSGridT.OptionalProps,\n TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.HEADER> {\n children?: React.ReactNode;\n showBorder?: boolean;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n theme: Theme;\n }\n}\n\nexport const defaultProps: DSCardHeaderT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardHeaderPropTypes: DSPropTypesSchema<DSCardHeaderT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.HEADER),\n children: PropTypes.any.description('The content of the card'),\n showBorder: PropTypes.bool.description('Show border at the bottom of the card header'),\n};\n\nexport const DSCardHeaderPropTypesSchema = DSCardHeaderPropTypes as unknown as ValidationMap<DSCardHeaderT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qBAAgF;AAEhF,8BAAoD;AAGpD,uBAAmD;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { Theme } from '@elliemae/ds-system';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardHeaderT {\n export type SlotFunctionArguments = {\n dsCardv3Header: () => object;\n };\n\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends DSGridT.OptionalProps,\n TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.HEADER> {\n children?: React.ReactNode;\n showBorder?: boolean;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n theme: Theme;\n }\n}\n\nexport const defaultProps: DSCardHeaderT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardHeaderPropTypes: DSPropTypesSchema<DSCardHeaderT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.HEADER),\n children: PropTypes.any.description('The content of the card'),\n showBorder: PropTypes.bool.description('Show border at the bottom of the card header'),\n};\n\nexport const DSCardHeaderPropTypesSchema = DSCardHeaderPropTypes as unknown as ValidationMap<DSCardHeaderT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qBAAgF;AAEhF,8BAAoD;AAGpD,uBAAmD;AA+C5C,MAAM,eAA2C;AAAA,EACtD,GAAG,eAAAA;AACL;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,OAAG,kDAAyB,+BAAc,sCAAqB,MAAM;AAAA,EACrE,UAAU,kCAAU,IAAI,YAAY,yBAAyB;AAAA,EAC7D,YAAY,kCAAU,KAAK,YAAY,8CAA8C;AACvF;AAEO,MAAM,8BAA8B;",
|
|
6
6
|
"names": ["gridDefaultProps"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { type DSGridT, DSGridPropTypes } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name, Variants } from './constants/index.js';\n\nexport declare namespace DSCardV3T {\n type Keys = keyof typeof Variants;\n export type VariantT = (typeof Variants)[Keys];\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.ROOT> {\n children?: React.ReactNode;\n disabled?: boolean;\n variant?: VariantT;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n\n export interface InternalProps\n extends OptionalProps,\n DefaultProps,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n}\n\nexport const defaultProps: DSCardV3T.DefaultProps = {};\n\nexport const DSCardV3PropTypes: DSPropTypesSchema<Omit<DSCardV3T.Props, 'data-testid'>> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.ROOT),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n variant: PropTypes.oneOf(Object.values(Variants)).description('The variant of the card'),\n children: PropTypes.any.description('The content of the card'),\n disabled: PropTypes.bool.description('If true, the card will be disabled'),\n};\n\nexport const DSCardV3PropTypesSchema = DSCardV3PropTypes as unknown as ValidationMap<DSCardV3T.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qBAA8C;AAE9C,8BAKO;AAEP,uBAA6D;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { type DSGridT, DSGridPropTypes } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name, Variants } from './constants/index.js';\n\nexport declare namespace DSCardV3T {\n type Keys = keyof typeof Variants;\n export type VariantT = (typeof Variants)[Keys];\n\n export type SlotFunctionArguments = {\n dsCardv3Root: () => object;\n };\n\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.ROOT> {\n children?: React.ReactNode;\n disabled?: boolean;\n variant?: VariantT;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n\n export interface InternalProps\n extends OptionalProps,\n DefaultProps,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n}\n\nexport const defaultProps: DSCardV3T.DefaultProps = {};\n\nexport const DSCardV3PropTypes: DSPropTypesSchema<Omit<DSCardV3T.Props, 'data-testid'>> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.ROOT),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n variant: PropTypes.oneOf(Object.values(Variants)).description('The variant of the card'),\n children: PropTypes.any.description('The content of the card'),\n disabled: PropTypes.bool.description('If true, the card will be disabled'),\n};\n\nexport const DSCardV3PropTypesSchema = DSCardV3PropTypes as unknown as ValidationMap<DSCardV3T.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,qBAA8C;AAE9C,8BAKO;AAEP,uBAA6D;AAoDtD,MAAM,eAAuC,CAAC;AAE9C,MAAM,oBAA6E;AAAA,EACxF,GAAG;AAAA,EACH,OAAG,kDAAyB,+BAAc,sCAAqB,IAAI;AAAA,EACnE,GAAG;AAAA,EACH,GAAG;AAAA,EACH,SAAS,kCAAU,MAAM,OAAO,OAAO,yBAAQ,CAAC,EAAE,YAAY,yBAAyB;AAAA,EACvF,UAAU,kCAAU,IAAI,YAAY,yBAAyB;AAAA,EAC7D,UAAU,kCAAU,KAAK,YAAY,oCAAoC;AAC3E;AAEO,MAAM,0BAA0B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var React = __toESM(require("react"));
|
|
25
|
+
const SlotPropsAsObj = {
|
|
26
|
+
dsCardv3Root: { "aria-label": "just a typescript test" },
|
|
27
|
+
dsCardv3Header: { "aria-label": "just a typescript test" },
|
|
28
|
+
dsCardv3Body: { "aria-label": "just a typescript test" },
|
|
29
|
+
dsCardv3Footer: { "aria-label": "just a typescript test" }
|
|
30
|
+
};
|
|
31
|
+
const SlotPropsAsFunctions = {
|
|
32
|
+
dsCardv3Root: () => ({ "aria-label": "just a typescript test" }),
|
|
33
|
+
dsCardv3Header: () => ({ "aria-label": "just a typescript test" }),
|
|
34
|
+
dsCardv3Body: () => ({ "aria-label": "just a typescript test" }),
|
|
35
|
+
dsCardv3Footer: () => ({ "aria-label": "just a typescript test" })
|
|
36
|
+
};
|
|
37
|
+
const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
|
|
38
|
+
//# sourceMappingURL=slot-props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\n\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { DSCardV3Name, CARD_V_3_SLOTS } from '../constants/index.js';\nimport type { DSCardV3T } from '../react-desc-prop-types.js';\nimport type { DSCardHeaderT } from '../parts/DSCardHeader/react-desc-prop-types.js';\nimport type { DSCardBodyT } from '../parts/DSCardBody/react-desc-prop-types.js';\nimport type { DSCardFooterT } from '../parts/DSCardFooter/react-desc-prop-types.js';\n\n// ds-card-v3 uses a flattened-slot pattern: all four slots live under the single\n// `DSCardv3` component name, but the slot props are exposed across the root and the\n// three part components. The combined object below therefore intersects each\n// component's slot prop, and the exhaustiveness check covers all four slots at once.\n\nconst SlotPropsAsObj: Partial<DSCardV3T.Props> &\n Partial<DSCardHeaderT.Props> &\n Partial<DSCardBodyT.Props> &\n Partial<DSCardFooterT.Props> = {\n dsCardv3Root: { 'aria-label': 'just a typescript test' },\n dsCardv3Header: { 'aria-label': 'just a typescript test' },\n dsCardv3Body: { 'aria-label': 'just a typescript test' },\n dsCardv3Footer: { 'aria-label': 'just a typescript test' },\n};\n\nconst SlotPropsAsFunctions: DSCardV3T.SlotFunctionArguments &\n DSCardHeaderT.SlotFunctionArguments &\n DSCardBodyT.SlotFunctionArguments &\n DSCardFooterT.SlotFunctionArguments = {\n dsCardv3Root: () => ({ 'aria-label': 'just a typescript test' }),\n dsCardv3Header: () => ({ 'aria-label': 'just a typescript test' }),\n dsCardv3Body: () => ({ 'aria-label': 'just a typescript test' }),\n dsCardv3Footer: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\n// Exhaustiveness check \u2014 fails compilation if a slot defined in CARD_V_3_SLOTS is\n// missing from the combined SlotFunctionArguments surface above.\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS>\n> = SlotPropsAsFunctions;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACcvB,MAAM,iBAG2B;AAAA,EAC/B,cAAc,EAAE,cAAc,yBAAyB;AAAA,EACvD,gBAAgB,EAAE,cAAc,yBAAyB;AAAA,EACzD,cAAc,EAAE,cAAc,yBAAyB;AAAA,EACvD,gBAAgB,EAAE,cAAc,yBAAyB;AAC3D;AAEA,MAAM,uBAGkC;AAAA,EACtC,cAAc,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9D,gBAAgB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChE,cAAc,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9D,gBAAgB,OAAO,EAAE,cAAc,yBAAyB;AAClE;AAIA,MAAM,6CAEF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -8,10 +8,6 @@ const Variants = {
|
|
|
8
8
|
DEFAULT: "default",
|
|
9
9
|
ACCENTED: "accented"
|
|
10
10
|
};
|
|
11
|
-
const EXAMPLE_CONSTANTS = {
|
|
12
|
-
HELLO: "WORLD",
|
|
13
|
-
FOO: "BAR"
|
|
14
|
-
};
|
|
15
11
|
const CARD_V_3_SLOTS_PARTS = {
|
|
16
12
|
ROOT: { ROOT: "root" },
|
|
17
13
|
HEADER: { HEADER: "header" },
|
|
@@ -25,11 +21,6 @@ const CARD_V_3_SLOTS = {
|
|
|
25
21
|
FOOTER: "footer"
|
|
26
22
|
};
|
|
27
23
|
const CARD_V_3_DATA_TESTID = slotObjectToDataTestIds(DSCardV3Name, CARD_V_3_SLOTS);
|
|
28
|
-
const omit = (obj, ...keys) => {
|
|
29
|
-
const a = { ...obj };
|
|
30
|
-
keys.forEach((key) => delete a[key]);
|
|
31
|
-
return a;
|
|
32
|
-
};
|
|
33
24
|
export {
|
|
34
25
|
CARD_V_3_DATA_TESTID,
|
|
35
26
|
CARD_V_3_SLOTS,
|
|
@@ -38,8 +29,6 @@ export {
|
|
|
38
29
|
DSCardV3FooterName,
|
|
39
30
|
DSCardV3HeaderName,
|
|
40
31
|
DSCardV3Name,
|
|
41
|
-
|
|
42
|
-
Variants,
|
|
43
|
-
omit
|
|
32
|
+
Variants
|
|
44
33
|
};
|
|
45
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSCardV3Name = 'DSCardv3';\nexport const DSCardV3HeaderName = 'DSCardv3header';\nexport const DSCardV3FooterName = 'DSCardv3footer';\nexport const DSCardV3BodyName = 'DSCardv3body';\n\nexport const Variants = {\n DEFAULT: 'default',\n ACCENTED: 'accented',\n} as const;\n\
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,eAAe;AACrB,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AAEzB,MAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,UAAU;AACZ;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSCardV3Name = 'DSCardv3';\nexport const DSCardV3HeaderName = 'DSCardv3header';\nexport const DSCardV3FooterName = 'DSCardv3footer';\nexport const DSCardV3BodyName = 'DSCardv3body';\n\nexport const Variants = {\n DEFAULT: 'default',\n ACCENTED: 'accented',\n} as const;\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\n\nexport const CARD_V_3_SLOTS_PARTS = {\n ROOT: { ROOT: 'root' },\n HEADER: { HEADER: 'header' },\n BODY: { BODY: 'body' },\n FOOTER: { FOOTER: 'footer' },\n} as const;\n\nexport const CARD_V_3_SLOTS = {\n ROOT: 'root',\n HEADER: 'header',\n BODY: 'body',\n FOOTER: 'footer',\n} as const;\n\n// we are giving \"component_name_data_testid\" to avoid errors on duplicate exports variables in aggregators\nexport const CARD_V_3_DATA_TESTID = slotObjectToDataTestIds(DSCardV3Name, CARD_V_3_SLOTS);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,eAAe;AACrB,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AAEzB,MAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,UAAU;AACZ;AAIO,MAAM,uBAAuB;AAAA,EAClC,MAAM,EAAE,MAAM,OAAO;AAAA,EACrB,QAAQ,EAAE,QAAQ,SAAS;AAAA,EAC3B,MAAM,EAAE,MAAM,OAAO;AAAA,EACrB,QAAQ,EAAE,QAAQ,SAAS;AAC7B;AAEO,MAAM,iBAAiB;AAAA,EAC5B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;AAGO,MAAM,uBAAuB,wBAAwB,cAAc,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,7 +4,7 @@ import { describe } from "@elliemae/ds-props-helpers";
|
|
|
4
4
|
import { styled, xStyledCommonProps } from "@elliemae/ds-system";
|
|
5
5
|
import { Grid } from "@elliemae/ds-grid";
|
|
6
6
|
import { DSCardBodyPropTypesSchema } from "./react-desc-prop-types.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useCardBody } from "./config/useCardBody.js";
|
|
8
8
|
import { CARD_V_3_SLOTS, DSCardV3Name, DSCardV3BodyName } from "../../constants/index.js";
|
|
9
9
|
const StyledWrapper = styled(Grid, { name: DSCardV3Name, slot: CARD_V_3_SLOTS.BODY })`
|
|
10
10
|
min-width: 240px;
|
|
@@ -12,7 +12,7 @@ const StyledWrapper = styled(Grid, { name: DSCardV3Name, slot: CARD_V_3_SLOTS.BO
|
|
|
12
12
|
${xStyledCommonProps}
|
|
13
13
|
`;
|
|
14
14
|
const DSCardBody = (props) => {
|
|
15
|
-
const { propsWithDefault, gridProps } =
|
|
15
|
+
const { propsWithDefault, gridProps } = useCardBody(props);
|
|
16
16
|
return /* @__PURE__ */ jsx(StyledWrapper, { getOwnerProps: () => propsWithDefault, ...gridProps, children: propsWithDefault.children || "" });
|
|
17
17
|
};
|
|
18
18
|
DSCardBody.displayName = DSCardV3BodyName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSCardBody/DSCardBody.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSCardBodyT, DSCardBodyPropTypesSchema } from './react-desc-prop-types.js';\nimport {
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACiBnB;AAhBJ,SAAS,gBAAgB;AACzB,SAAS,QAAQ,0BAA0B;AAC3C,SAAS,YAAY;AACrB,SAA2B,iCAAiC;AAC5D,SAAS,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSCardBodyT, DSCardBodyPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardBody } from './config/useCardBody.js';\nimport { CARD_V_3_SLOTS, DSCardV3Name, DSCardV3BodyName } from '../../constants/index.js';\n\nconst StyledWrapper = styled(Grid, { name: DSCardV3Name, slot: CARD_V_3_SLOTS.BODY })`\n min-width: 240px;\n padding: 8px 16px;\n ${xStyledCommonProps}\n`;\n\nconst DSCardBody: React.ComponentType<DSCardBodyT.Props> = (props) => {\n const { propsWithDefault, gridProps } = useCardBody(props);\n return (\n <StyledWrapper getOwnerProps={() => propsWithDefault} {...gridProps}>\n {propsWithDefault.children || ''}\n </StyledWrapper>\n );\n};\n\nDSCardBody.displayName = DSCardV3BodyName;\nconst DSCardBodyWithSchema = describe(DSCardBody);\nDSCardBodyWithSchema.propTypes = DSCardBodyPropTypesSchema;\n\nexport { DSCardBody, DSCardBodyWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACiBnB;AAhBJ,SAAS,gBAAgB;AACzB,SAAS,QAAQ,0BAA0B;AAC3C,SAAS,YAAY;AACrB,SAA2B,iCAAiC;AAC5D,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB,cAAc,wBAAwB;AAE/D,MAAM,gBAAgB,OAAO,MAAM,EAAE,MAAM,cAAc,MAAM,eAAe,KAAK,CAAC;AAAA;AAAA;AAAA,IAGhF,kBAAkB;AAAA;AAGtB,MAAM,aAAqD,CAAC,UAAU;AACpE,QAAM,EAAE,kBAAkB,UAAU,IAAI,YAAY,KAAK;AACzD,SACE,oBAAC,iBAAc,eAAe,MAAM,kBAAmB,GAAG,WACvD,2BAAiB,YAAY,IAChC;AAEJ;AAEA,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAChD,qBAAqB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,7 +5,7 @@ import React2 from "react";
|
|
|
5
5
|
import { uid } from "uid";
|
|
6
6
|
import { DSCardBodyPropTypes, defaultProps } from "../react-desc-prop-types.js";
|
|
7
7
|
import { useValidateProps } from "./useValidateProps.js";
|
|
8
|
-
const
|
|
8
|
+
const useCardBody = (propsFromUser) => {
|
|
9
9
|
const propsWithDefault = useMemoMergePropsWithDefault(propsFromUser, defaultProps);
|
|
10
10
|
useValidateProps(propsWithDefault, DSCardBodyPropTypes);
|
|
11
11
|
const gridProps = getGridProps(propsWithDefault);
|
|
@@ -21,6 +21,6 @@ const useCardHeader = (propsFromUser) => {
|
|
|
21
21
|
);
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
useCardBody
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=useCardBody.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/DSCardBody/config/useCardBody.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { getGridProps } from '@elliemae/ds-grid';\nimport { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { uid } from 'uid';\nimport { DSCardBodyPropTypes, defaultProps, type DSCardBodyT } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB;AAC7B,SAAS,oCAAoC;AAC7C,OAAOA,YAAW;AAClB,SAAS,WAAW;AACpB,SAAS,qBAAqB,oBAAsC;AACpE,SAAS,wBAAwB;AAE1B,MAAM,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { getGridProps } from '@elliemae/ds-grid';\nimport { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { uid } from 'uid';\nimport { DSCardBodyPropTypes, defaultProps, type DSCardBodyT } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport const useCardBody = (propsFromUser: DSCardBodyT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardBodyT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardBodyPropTypes);\n // =============================================================================\n // WE inherit the global attributes and xstyled props from GRID\n // =============================================================================\n const gridProps = getGridProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n const { id } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n gridProps,\n instanceUid,\n }),\n [propsWithDefault, gridProps, instanceUid],\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB;AAC7B,SAAS,oCAAoC;AAC7C,OAAOA,YAAW;AAClB,SAAS,WAAW;AACpB,SAAS,qBAAqB,oBAAsC;AACpE,SAAS,wBAAwB;AAE1B,MAAM,cAAc,CAAC,kBAAqC;AAI/D,QAAM,mBAAmB,6BAAwD,eAAe,YAAY;AAC5G,mBAAiB,kBAAkB,mBAAmB;AAItD,QAAM,YAAY,aAAa,gBAAgB;AAI/C,QAAM,EAAE,GAAG,IAAI;AACf,QAAM,cAAcA,OAAM,QAAQ,MAAM,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAE1D,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,CAAC,kBAAkB,WAAW,WAAW;AAAA,EAC3C;AACF;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSCardBody/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardBodyT {\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.BODY> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardBodyT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardBodyPropTypes: DSPropTypesSchema<DSCardBodyT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.BODY),\n};\n\nexport const DSCardBodyPropTypesSchema = DSCardBodyPropTypes as unknown as ValidationMap<DSCardBodyT.Props>;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB,gBAAgB,wBAAsC;AAEhF,SAAS,gCAAgC;AAEzC,SAAS,sBAAsB,oBAAoB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardBodyT {\n export type SlotFunctionArguments = {\n dsCardv3Body: () => object;\n };\n\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.BODY> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardBodyT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardBodyPropTypes: DSPropTypesSchema<DSCardBodyT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.BODY),\n};\n\nexport const DSCardBodyPropTypesSchema = DSCardBodyPropTypes as unknown as ValidationMap<DSCardBodyT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB,gBAAgB,wBAAsC;AAEhF,SAAS,gCAAgC;AAEzC,SAAS,sBAAsB,oBAAoB;AA2C5C,MAAM,eAAyC;AAAA,EACpD,GAAG;AACL;AAEO,MAAM,sBAA4D;AAAA,EACvE,GAAG;AAAA,EACH,GAAG,yBAAyB,cAAc,qBAAqB,IAAI;AACrE;AAEO,MAAM,4BAA4B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSCardFooter/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\n\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardFooterT {\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.FOOTER> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardFooterT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardFooterPropTypes: DSPropTypesSchema<DSCardFooterT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.FOOTER),\n children: PropTypes.any.description('The content of the card'),\n};\n\nexport const DSCardFooterPropTypesSchema = DSCardFooterPropTypes as unknown as WeakValidationMap<DSCardFooterT.Props>;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,iBAAiB,gBAAgB,wBAAsC;AAEhF,SAAS,WAAW,gCAAgC;AAGpD,SAAS,sBAAsB,oBAAoB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\n\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardFooterT {\n export type SlotFunctionArguments = {\n dsCardv3Footer: () => object;\n };\n\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.FOOTER> {\n children?: React.ReactNode;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n}\n\nexport const defaultProps: DSCardFooterT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardFooterPropTypes: DSPropTypesSchema<DSCardFooterT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.FOOTER),\n children: PropTypes.any.description('The content of the card'),\n};\n\nexport const DSCardFooterPropTypesSchema = DSCardFooterPropTypes as unknown as WeakValidationMap<DSCardFooterT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,iBAAiB,gBAAgB,wBAAsC;AAEhF,SAAS,WAAW,gCAAgC;AAGpD,SAAS,sBAAsB,oBAAoB;AA2C5C,MAAM,eAA2C;AAAA,EACtD,GAAG;AACL;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,GAAG,yBAAyB,cAAc,qBAAqB,MAAM;AAAA,EACrE,UAAU,UAAU,IAAI,YAAY,yBAAyB;AAC/D;AAEO,MAAM,8BAA8B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSCardHeader/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { Theme } from '@elliemae/ds-system';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardHeaderT {\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends DSGridT.OptionalProps,\n TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.HEADER> {\n children?: React.ReactNode;\n showBorder?: boolean;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n theme: Theme;\n }\n}\n\nexport const defaultProps: DSCardHeaderT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardHeaderPropTypes: DSPropTypesSchema<DSCardHeaderT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.HEADER),\n children: PropTypes.any.description('The content of the card'),\n showBorder: PropTypes.bool.description('Show border at the bottom of the card header'),\n};\n\nexport const DSCardHeaderPropTypesSchema = DSCardHeaderPropTypes as unknown as ValidationMap<DSCardHeaderT.Props>;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB,gBAAgB,wBAAsC;AAEhF,SAAS,WAAW,gCAAgC;AAGpD,SAAS,sBAAsB,oBAAoB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { DSGridPropTypes, defaultProps as gridDefaultProps, type DSGridT } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes, getPropsPerSlotPropTypes } from '@elliemae/ds-props-helpers';\nimport type { Theme } from '@elliemae/ds-system';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';\n\nexport declare namespace DSCardHeaderT {\n export type SlotFunctionArguments = {\n dsCardv3Header: () => object;\n };\n\n export interface RequiredProps {}\n\n export type DefaultProps = DSGridT.DefaultProps;\n\n export interface OptionalProps\n extends DSGridT.OptionalProps,\n TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.HEADER> {\n children?: React.ReactNode;\n showBorder?: boolean;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {}\n\n export interface InternalProps\n extends OptionalProps,\n // DefaultProps, //<-- our defaultProps ARE the grid's default props itself\n // we are already extendings DSGridT.Props (which includes XstyledProps, GlobalProps with relevant overrides)\n // so we don't need to extend them again here (which kind of conflicts with DSGridT.Props somehow)\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n theme: Theme;\n }\n}\n\nexport const defaultProps: DSCardHeaderT.DefaultProps = {\n ...gridDefaultProps,\n};\n\nexport const DSCardHeaderPropTypes: DSPropTypesSchema<DSCardHeaderT.Props> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.HEADER),\n children: PropTypes.any.description('The content of the card'),\n showBorder: PropTypes.bool.description('Show border at the bottom of the card header'),\n};\n\nexport const DSCardHeaderPropTypesSchema = DSCardHeaderPropTypes as unknown as ValidationMap<DSCardHeaderT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB,gBAAgB,wBAAsC;AAEhF,SAAS,WAAW,gCAAgC;AAGpD,SAAS,sBAAsB,oBAAoB;AA+C5C,MAAM,eAA2C;AAAA,EACtD,GAAG;AACL;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,GAAG,yBAAyB,cAAc,qBAAqB,MAAM;AAAA,EACrE,UAAU,UAAU,IAAI,YAAY,yBAAyB;AAAA,EAC7D,YAAY,UAAU,KAAK,YAAY,8CAA8C;AACvF;AAEO,MAAM,8BAA8B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { type DSGridT, DSGridPropTypes } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name, Variants } from './constants/index.js';\n\nexport declare namespace DSCardV3T {\n type Keys = keyof typeof Variants;\n export type VariantT = (typeof Variants)[Keys];\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.ROOT> {\n children?: React.ReactNode;\n disabled?: boolean;\n variant?: VariantT;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n\n export interface InternalProps\n extends OptionalProps,\n DefaultProps,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n}\n\nexport const defaultProps: DSCardV3T.DefaultProps = {};\n\nexport const DSCardV3PropTypes: DSPropTypesSchema<Omit<DSCardV3T.Props, 'data-testid'>> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.ROOT),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n variant: PropTypes.oneOf(Object.values(Variants)).description('The variant of the card'),\n children: PropTypes.any.description('The content of the card'),\n disabled: PropTypes.bool.description('If true, the card will be disabled'),\n};\n\nexport const DSCardV3PropTypesSchema = DSCardV3PropTypes as unknown as ValidationMap<DSCardV3T.Props>;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAuB,uBAAuB;AAE9C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,sBAAsB,cAAc,gBAAgB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { type DSGridT, DSGridPropTypes } from '@elliemae/ds-grid';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { CARD_V_3_SLOTS_PARTS, DSCardV3Name, Variants } from './constants/index.js';\n\nexport declare namespace DSCardV3T {\n type Keys = keyof typeof Variants;\n export type VariantT = (typeof Variants)[Keys];\n\n export type SlotFunctionArguments = {\n dsCardv3Root: () => object;\n };\n\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS_PARTS.ROOT> {\n children?: React.ReactNode;\n disabled?: boolean;\n variant?: VariantT;\n }\n\n export interface Props\n extends OptionalProps,\n Partial<DefaultProps>,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n\n export interface InternalProps\n extends OptionalProps,\n DefaultProps,\n Omit<\n GlobalAttributesT<HTMLDivElement>,\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-duplicate-type-constituents\n keyof OptionalProps | keyof DefaultProps | keyof XstyledProps | keyof RequiredProps | keyof DSGridT.Props\n >,\n XstyledProps,\n RequiredProps,\n DSGridT.Props {\n 'data-testid'?: string;\n innerRef?: TypescriptHelpersT.AnyRef<HTMLDivElement>;\n }\n}\n\nexport const defaultProps: DSCardV3T.DefaultProps = {};\n\nexport const DSCardV3PropTypes: DSPropTypesSchema<Omit<DSCardV3T.Props, 'data-testid'>> = {\n ...DSGridPropTypes,\n ...getPropsPerSlotPropTypes(DSCardV3Name, CARD_V_3_SLOTS_PARTS.ROOT),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n variant: PropTypes.oneOf(Object.values(Variants)).description('The variant of the card'),\n children: PropTypes.any.description('The content of the card'),\n disabled: PropTypes.bool.description('If true, the card will be disabled'),\n};\n\nexport const DSCardV3PropTypesSchema = DSCardV3PropTypes as unknown as ValidationMap<DSCardV3T.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAuB,uBAAuB;AAE9C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,sBAAsB,cAAc,gBAAgB;AAoDtD,MAAM,eAAuC,CAAC;AAE9C,MAAM,oBAA6E;AAAA,EACxF,GAAG;AAAA,EACH,GAAG,yBAAyB,cAAc,qBAAqB,IAAI;AAAA,EACnE,GAAG;AAAA,EACH,GAAG;AAAA,EACH,SAAS,UAAU,MAAM,OAAO,OAAO,QAAQ,CAAC,EAAE,YAAY,yBAAyB;AAAA,EACvF,UAAU,UAAU,IAAI,YAAY,yBAAyB;AAAA,EAC7D,UAAU,UAAU,KAAK,YAAY,oCAAoC;AAC3E;AAEO,MAAM,0BAA0B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const SlotPropsAsObj = {
|
|
3
|
+
dsCardv3Root: { "aria-label": "just a typescript test" },
|
|
4
|
+
dsCardv3Header: { "aria-label": "just a typescript test" },
|
|
5
|
+
dsCardv3Body: { "aria-label": "just a typescript test" },
|
|
6
|
+
dsCardv3Footer: { "aria-label": "just a typescript test" }
|
|
7
|
+
};
|
|
8
|
+
const SlotPropsAsFunctions = {
|
|
9
|
+
dsCardv3Root: () => ({ "aria-label": "just a typescript test" }),
|
|
10
|
+
dsCardv3Header: () => ({ "aria-label": "just a typescript test" }),
|
|
11
|
+
dsCardv3Body: () => ({ "aria-label": "just a typescript test" }),
|
|
12
|
+
dsCardv3Footer: () => ({ "aria-label": "just a typescript test" })
|
|
13
|
+
};
|
|
14
|
+
const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
|
|
15
|
+
//# sourceMappingURL=slot-props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\n\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { DSCardV3Name, CARD_V_3_SLOTS } from '../constants/index.js';\nimport type { DSCardV3T } from '../react-desc-prop-types.js';\nimport type { DSCardHeaderT } from '../parts/DSCardHeader/react-desc-prop-types.js';\nimport type { DSCardBodyT } from '../parts/DSCardBody/react-desc-prop-types.js';\nimport type { DSCardFooterT } from '../parts/DSCardFooter/react-desc-prop-types.js';\n\n// ds-card-v3 uses a flattened-slot pattern: all four slots live under the single\n// `DSCardv3` component name, but the slot props are exposed across the root and the\n// three part components. The combined object below therefore intersects each\n// component's slot prop, and the exhaustiveness check covers all four slots at once.\n\nconst SlotPropsAsObj: Partial<DSCardV3T.Props> &\n Partial<DSCardHeaderT.Props> &\n Partial<DSCardBodyT.Props> &\n Partial<DSCardFooterT.Props> = {\n dsCardv3Root: { 'aria-label': 'just a typescript test' },\n dsCardv3Header: { 'aria-label': 'just a typescript test' },\n dsCardv3Body: { 'aria-label': 'just a typescript test' },\n dsCardv3Footer: { 'aria-label': 'just a typescript test' },\n};\n\nconst SlotPropsAsFunctions: DSCardV3T.SlotFunctionArguments &\n DSCardHeaderT.SlotFunctionArguments &\n DSCardBodyT.SlotFunctionArguments &\n DSCardFooterT.SlotFunctionArguments = {\n dsCardv3Root: () => ({ 'aria-label': 'just a typescript test' }),\n dsCardv3Header: () => ({ 'aria-label': 'just a typescript test' }),\n dsCardv3Body: () => ({ 'aria-label': 'just a typescript test' }),\n dsCardv3Footer: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\n// Exhaustiveness check \u2014 fails compilation if a slot defined in CARD_V_3_SLOTS is\n// missing from the combined SlotFunctionArguments surface above.\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSCardV3Name, typeof CARD_V_3_SLOTS>\n> = SlotPropsAsFunctions;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACcvB,MAAM,iBAG2B;AAAA,EAC/B,cAAc,EAAE,cAAc,yBAAyB;AAAA,EACvD,gBAAgB,EAAE,cAAc,yBAAyB;AAAA,EACzD,cAAc,EAAE,cAAc,yBAAyB;AAAA,EACvD,gBAAgB,EAAE,cAAc,yBAAyB;AAC3D;AAEA,MAAM,uBAGkC;AAAA,EACtC,cAAc,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9D,gBAAgB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAChE,cAAc,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC9D,gBAAgB,OAAO,EAAE,cAAc,yBAAyB;AAClE;AAIA,MAAM,6CAEF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -6,10 +6,6 @@ export declare const Variants: {
|
|
|
6
6
|
readonly DEFAULT: "default";
|
|
7
7
|
readonly ACCENTED: "accented";
|
|
8
8
|
};
|
|
9
|
-
export declare const EXAMPLE_CONSTANTS: {
|
|
10
|
-
readonly HELLO: "WORLD";
|
|
11
|
-
readonly FOO: "BAR";
|
|
12
|
-
};
|
|
13
9
|
export declare const CARD_V_3_SLOTS_PARTS: {
|
|
14
10
|
readonly ROOT: {
|
|
15
11
|
readonly ROOT: "root";
|
|
@@ -36,4 +32,3 @@ export declare const CARD_V_3_DATA_TESTID: {
|
|
|
36
32
|
readonly BODY: "ds-cardv3-body";
|
|
37
33
|
readonly FOOTER: "ds-cardv3-footer";
|
|
38
34
|
};
|
|
39
|
-
export declare const omit: <T extends object, K extends keyof T>(obj: T, ...keys: K[]) => Omit<T, K>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DSCardBodyT } from '../react-desc-prop-types.js';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const useCardBody: (propsFromUser: DSCardBodyT.Props) => {
|
|
3
3
|
propsWithDefault: DSCardBodyT.InternalProps;
|
|
4
4
|
gridProps: Partial<import("@elliemae/ds-grid").DSGridT.Props>;
|
|
5
5
|
instanceUid: string;
|
|
@@ -3,6 +3,9 @@ import type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps
|
|
|
3
3
|
import type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
4
4
|
import { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';
|
|
5
5
|
export declare namespace DSCardBodyT {
|
|
6
|
+
type SlotFunctionArguments = {
|
|
7
|
+
dsCardv3Body: () => object;
|
|
8
|
+
};
|
|
6
9
|
interface RequiredProps {
|
|
7
10
|
}
|
|
8
11
|
type DefaultProps = DSGridT.DefaultProps;
|
|
@@ -4,6 +4,9 @@ import type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
|
4
4
|
import type { WeakValidationMap } from 'react';
|
|
5
5
|
import { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';
|
|
6
6
|
export declare namespace DSCardFooterT {
|
|
7
|
+
type SlotFunctionArguments = {
|
|
8
|
+
dsCardv3Footer: () => object;
|
|
9
|
+
};
|
|
7
10
|
interface RequiredProps {
|
|
8
11
|
}
|
|
9
12
|
type DefaultProps = DSGridT.DefaultProps;
|
|
@@ -4,6 +4,9 @@ import type { Theme } from '@elliemae/ds-system';
|
|
|
4
4
|
import type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
5
5
|
import { CARD_V_3_SLOTS_PARTS, DSCardV3Name } from '../../constants/index.js';
|
|
6
6
|
export declare namespace DSCardHeaderT {
|
|
7
|
+
type SlotFunctionArguments = {
|
|
8
|
+
dsCardv3Header: () => object;
|
|
9
|
+
};
|
|
7
10
|
interface RequiredProps {
|
|
8
11
|
}
|
|
9
12
|
type DefaultProps = DSGridT.DefaultProps;
|
|
@@ -5,6 +5,9 @@ import { CARD_V_3_SLOTS_PARTS, DSCardV3Name, Variants } from './constants/index.
|
|
|
5
5
|
export declare namespace DSCardV3T {
|
|
6
6
|
type Keys = keyof typeof Variants;
|
|
7
7
|
type VariantT = (typeof Variants)[Keys];
|
|
8
|
+
type SlotFunctionArguments = {
|
|
9
|
+
dsCardv3Root: () => object;
|
|
10
|
+
};
|
|
8
11
|
interface RequiredProps {
|
|
9
12
|
}
|
|
10
13
|
interface DefaultProps {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-card-v3",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.26",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card V3",
|
|
6
6
|
"files": [
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"uid": "^2.0.2",
|
|
40
|
-
"@elliemae/ds-grid": "3.70.0-next.
|
|
41
|
-
"@elliemae/ds-props-helpers": "3.70.0-next.
|
|
42
|
-
"@elliemae/ds-system": "3.70.0-next.
|
|
40
|
+
"@elliemae/ds-grid": "3.70.0-next.26",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.26",
|
|
42
|
+
"@elliemae/ds-system": "3.70.0-next.26"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@elliemae/pui-theme": "~2.13.0",
|
|
46
46
|
"jest": "^30.0.0",
|
|
47
47
|
"styled-components": "~5.3.9",
|
|
48
48
|
"styled-system": "^5.1.5",
|
|
49
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
50
|
-
"@elliemae/ds-test-utils": "3.70.0-next.
|
|
51
|
-
"@elliemae/ds-typescript-helpers": "3.70.0-next.
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.26",
|
|
50
|
+
"@elliemae/ds-test-utils": "3.70.0-next.26",
|
|
51
|
+
"@elliemae/ds-typescript-helpers": "3.70.0-next.26"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@elliemae/pui-theme": "~2.13.0",
|
|
File without changes
|