@elliemae/ds-card-v2-group 3.37.0-rc.4 → 3.37.0

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.
@@ -34,7 +34,7 @@ __export(DSCardV2Group_exports, {
34
34
  module.exports = __toCommonJS(DSCardV2Group_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
- var import_ds_utilities = require("@elliemae/ds-utilities");
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
38
  var import_react_desc_prop_types = require("./react-desc-prop-types.js");
39
39
  var import_useCardV2Group = require("./config/useCardV2Group.js");
40
40
  var import_styles = require("./styles.js");
@@ -61,6 +61,6 @@ const DSCardV2Group = (props) => {
61
61
  );
62
62
  };
63
63
  DSCardV2Group.displayName = import_constants.DSCardV2GroupName;
64
- const DSCardV2GroupWithSchema = (0, import_ds_utilities.describe)(DSCardV2Group);
64
+ const DSCardV2GroupWithSchema = (0, import_ds_props_helpers.describe)(DSCardV2Group);
65
65
  DSCardV2GroupWithSchema.propTypes = import_react_desc_prop_types.DSCardV2GroupPropTypesSchema;
66
66
  //# sourceMappingURL=DSCardV2Group.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSCardV2Group.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2Group } from './config/useCardV2Group.js';\nimport { Group, TitleWrapper, GroupTitle, Items } from './styles.js';\nimport { DSCardV2GroupName } from './constants/index.js';\n\nconst DSCardV2Group: React.ComponentType<DSCardV2GroupT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2Group(props);\n const { children, title, action } = propsWithDefault;\n return (\n <Group\n withTopBorder={!title}\n getOwnerProps={() => propsWithDefault}\n getOwnerPropsArguments={() => ({})}\n {...globalProps}\n {...xstyledProps}\n >\n {!!title && (\n <TitleWrapper>\n <GroupTitle>{title}</GroupTitle>\n {action}\n </TitleWrapper>\n )}\n <Items>{children}</Items>\n </Group>\n );\n};\n\nDSCardV2Group.displayName = DSCardV2GroupName;\nconst DSCardV2GroupWithSchema = describe(DSCardV2Group);\nDSCardV2GroupWithSchema.propTypes = DSCardV2GroupPropTypesSchema;\n\nexport { DSCardV2Group, DSCardV2GroupWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmBf;AAlBR,0BAAyB;AACzB,mCAAkE;AAClE,4BAA+B;AAC/B,oBAAuD;AACvD,uBAAkC;AAElC,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,aAAa,aAAa,QAAI,sCAAe,KAAK;AAC5E,QAAM,EAAE,UAAU,OAAO,OAAO,IAAI;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAe,CAAC;AAAA,MAChB,eAAe,MAAM;AAAA,MACrB,wBAAwB,OAAO,CAAC;AAAA,MAC/B,GAAG;AAAA,MACH,GAAG;AAAA,MAEH;AAAA,SAAC,CAAC,SACD,6CAAC,8BACC;AAAA,sDAAC,4BAAY,iBAAM;AAAA,UAClB;AAAA,WACH;AAAA,QAEF,4CAAC,uBAAO,UAAS;AAAA;AAAA;AAAA,EACnB;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,8BAA0B,8BAAS,aAAa;AACtD,wBAAwB,YAAY;",
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2Group } from './config/useCardV2Group.js';\nimport { Group, TitleWrapper, GroupTitle, Items } from './styles.js';\nimport { DSCardV2GroupName } from './constants/index.js';\n\nconst DSCardV2Group: React.ComponentType<DSCardV2GroupT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2Group(props);\n const { children, title, action } = propsWithDefault;\n return (\n <Group\n withTopBorder={!title}\n getOwnerProps={() => propsWithDefault}\n getOwnerPropsArguments={() => ({})}\n {...globalProps}\n {...xstyledProps}\n >\n {!!title && (\n <TitleWrapper>\n <GroupTitle>{title}</GroupTitle>\n {action}\n </TitleWrapper>\n )}\n <Items>{children}</Items>\n </Group>\n );\n};\n\nDSCardV2Group.displayName = DSCardV2GroupName;\nconst DSCardV2GroupWithSchema = describe(DSCardV2Group);\nDSCardV2GroupWithSchema.propTypes = DSCardV2GroupPropTypesSchema;\n\nexport { DSCardV2Group, DSCardV2GroupWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmBf;AAlBR,8BAAyB;AACzB,mCAAkE;AAClE,4BAA+B;AAC/B,oBAAuD;AACvD,uBAAkC;AAElC,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,aAAa,aAAa,QAAI,sCAAe,KAAK;AAC5E,QAAM,EAAE,UAAU,OAAO,OAAO,IAAI;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAe,CAAC;AAAA,MAChB,eAAe,MAAM;AAAA,MACrB,wBAAwB,OAAO,CAAC;AAAA,MAC/B,GAAG;AAAA,MACH,GAAG;AAAA,MAEH;AAAA,SAAC,CAAC,SACD,6CAAC,8BACC;AAAA,sDAAC,4BAAY,iBAAM;AAAA,UAClB;AAAA,WACH;AAAA,QAEF,4CAAC,uBAAO,UAAS;AAAA;AAAA;AAAA,EACnB;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,8BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -33,17 +33,17 @@ __export(useCardV2Group_exports, {
33
33
  module.exports = __toCommonJS(useCardV2Group_exports);
34
34
  var React = __toESM(require("react"));
35
35
  var import_react = __toESM(require("react"));
36
- var import_ds_utilities = require("@elliemae/ds-utilities");
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
37
  var import_uid = require("uid");
38
38
  var import_react_desc_prop_types = require("../react-desc-prop-types.js");
39
39
  var import_useValidateProps = require("./useValidateProps.js");
40
40
  const useCardV2Group = (propsFromUser) => {
41
- const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
41
+ const propsWithDefault = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
42
42
  (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSCardV2GroupPropTypes);
43
- const globalProps = (0, import_ds_utilities.useGetGlobalAttributes)(
43
+ const globalProps = (0, import_ds_props_helpers.useGetGlobalAttributes)(
44
44
  propsWithDefault
45
45
  );
46
- const xstyledProps = (0, import_ds_utilities.useGetXstyledProps)(propsWithDefault);
46
+ const xstyledProps = (0, import_ds_props_helpers.useGetXstyledProps)(propsWithDefault);
47
47
  const { id } = propsWithDefault;
48
48
  const instanceUid = import_react.default.useMemo(() => id || (0, import_uid.uid)(5), [id]);
49
49
  return import_react.default.useMemo(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/config/useCardV2Group.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { uid } from 'uid';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\nexport interface CardV2GroupCTX {\n propsWithDefault: DSCardV2GroupT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useCardV2Group = (propsFromUser: DSCardV2GroupT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardV2GroupT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardV2GroupPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = useGetGlobalAttributes<DSCardV2GroupT.InternalProps, HTMLDivElement, DSGridT.Props>(\n propsWithDefault,\n );\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const { id } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // ...eventHandlers,\n }),\n [\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // eventHandlers,\n ],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAyF;AACzF,iBAAoB;AACpB,mCAA0E;AAC1E,8BAAiC;AAU1B,MAAM,iBAAiB,CAAC,kBAAwC;AAIrE,QAAM,uBAAmB,kDAA2D,eAAe,yCAAY;AAC/G,gDAAiB,kBAAkB,mDAAsB;AAIzD,QAAM,kBAAc;AAAA,IAClB;AAAA,EACF;AACA,QAAM,mBAAe,wCAAmB,gBAAgB;AAKxD,QAAM,EAAE,GAAG,IAAI;AACf,QAAM,cAAc,aAAAA,QAAM,QAAQ,MAAM,UAAM,gBAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAM1D,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import React from 'react';\nimport { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { uid } from 'uid';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\nexport interface CardV2GroupCTX {\n propsWithDefault: DSCardV2GroupT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useCardV2Group = (propsFromUser: DSCardV2GroupT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardV2GroupT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardV2GroupPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = useGetGlobalAttributes<DSCardV2GroupT.InternalProps, HTMLDivElement, DSGridT.Props>(\n propsWithDefault,\n );\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const { id } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // ...eventHandlers,\n }),\n [\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // eventHandlers,\n ],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,8BAAyF;AACzF,iBAAoB;AACpB,mCAA0E;AAC1E,8BAAiC;AAU1B,MAAM,iBAAiB,CAAC,kBAAwC;AAIrE,QAAM,uBAAmB,sDAA2D,eAAe,yCAAY;AAC/G,gDAAiB,kBAAkB,mDAAsB;AAIzD,QAAM,kBAAc;AAAA,IAClB;AAAA,EACF;AACA,QAAM,mBAAe,4CAAmB,gBAAgB;AAKxD,QAAM,EAAE,GAAG,IAAI;AACf,QAAM,cAAc,aAAAA,QAAM,QAAQ,MAAM,UAAM,gBAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAM1D,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,EACF;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -32,9 +32,9 @@ __export(useValidateProps_exports, {
32
32
  });
33
33
  module.exports = __toCommonJS(useValidateProps_exports);
34
34
  var React = __toESM(require("react"));
35
- var import_ds_utilities = require("@elliemae/ds-utilities");
35
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
36
  var import_constants = require("../constants/index.js");
37
37
  const useValidateProps = (props, propTypes) => {
38
- (0, import_ds_utilities.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSCardV2GroupName);
38
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSCardV2GroupName);
39
39
  };
40
40
  //# sourceMappingURL=useValidateProps.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/config/useValidateProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-utilities';\nimport type { WeakValidationMap } from 'react';\nimport { type DSCardV2GroupT } from '../react-desc-prop-types.js';\nimport { DSCardV2GroupName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSCardV2GroupT.InternalProps, propTypes: WeakValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSCardV2GroupName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA+C;AAG/C,uBAAkC;AAE3B,MAAM,mBAAmB,CAAC,OAAqC,cAAgD;AAEpH,0DAA+B,OAAO,WAAW,kCAAiB;AACpE;",
4
+ "sourcesContent": ["import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { type DSCardV2GroupT } from '../react-desc-prop-types.js';\nimport { DSCardV2GroupName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSCardV2GroupT.InternalProps, propTypes: WeakValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSCardV2GroupName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA+C;AAG/C,uBAAkC;AAE3B,MAAM,mBAAmB,CAAC,OAAqC,cAAgD;AAEpH,8DAA+B,OAAO,WAAW,kCAAiB;AACpE;",
6
6
  "names": []
7
7
  }
@@ -34,23 +34,23 @@ __export(react_desc_prop_types_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(react_desc_prop_types_exports);
36
36
  var React = __toESM(require("react"));
37
- var import_ds_utilities = require("@elliemae/ds-utilities");
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
38
  const defaultProps = {};
39
39
  const DSCardV2GroupPropTypes = {
40
- ...import_ds_utilities.globalAttributesPropTypes,
41
- ...import_ds_utilities.xstyledPropTypes,
40
+ ...import_ds_props_helpers.globalAttributesPropTypes,
41
+ ...import_ds_props_helpers.xstyledPropTypes,
42
42
  /**
43
43
  * Card items
44
44
  */
45
- children: import_ds_utilities.PropTypes.node.isRequired.description("Card items"),
45
+ children: import_ds_props_helpers.PropTypes.node.isRequired.description("Card items"),
46
46
  /**
47
47
  * Title of the group
48
48
  */
49
- title: import_ds_utilities.PropTypes.string.isRequired.description("Title of the group"),
49
+ title: import_ds_props_helpers.PropTypes.string.isRequired.description("Title of the group"),
50
50
  /**
51
51
  * Right addon action
52
52
  */
53
- action: import_ds_utilities.PropTypes.element.description("Right addon action")
53
+ action: import_ds_props_helpers.PropTypes.element.description("Right addon action")
54
54
  };
55
55
  const DSCardV2GroupPropTypesSchema = DSCardV2GroupPropTypes;
56
56
  //# sourceMappingURL=react-desc-prop-types.js.map
@@ -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 { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-utilities';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSCardV2GroupT {\n export interface RequiredProps {\n children: React.ReactElement<[]>;\n title: string;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps {\n action: React.ReactElement<[]>;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n >,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n >,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCardV2GroupT.DefaultProps = {};\n\nexport const DSCardV2GroupPropTypes: DSPropTypesSchema<DSCardV2GroupT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * Card items\n */\n children: PropTypes.node.isRequired.description('Card items'),\n /**\n * Title of the group\n */\n title: PropTypes.string.isRequired.description('Title of the group'),\n /**\n * Right addon action\n */\n action: PropTypes.element.description('Right addon action'),\n};\n\nexport const DSCardV2GroupPropTypesSchema =\n DSCardV2GroupPropTypes as unknown as WeakValidationMap<DSCardV2GroupT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,0BAAuE;AAmChE,MAAM,eAA4C,CAAC;AAEnD,MAAM,yBAAkE;AAAA,EAC7E,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,UAAU,8BAAU,KAAK,WAAW,YAAY,YAAY;AAAA;AAAA;AAAA;AAAA,EAI5D,OAAO,8BAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA;AAAA;AAAA;AAAA,EAInE,QAAQ,8BAAU,QAAQ,YAAY,oBAAoB;AAC5D;AAEO,MAAM,+BACX;",
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSCardV2GroupT {\n export interface RequiredProps {\n children: React.ReactNode;\n title: string;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps {\n action: React.ReactElement<[]>;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCardV2GroupT.DefaultProps = {};\n\nexport const DSCardV2GroupPropTypes: DSPropTypesSchema<DSCardV2GroupT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * Card items\n */\n children: PropTypes.node.isRequired.description('Card items'),\n /**\n * Title of the group\n */\n title: PropTypes.string.isRequired.description('Title of the group'),\n /**\n * Right addon action\n */\n action: PropTypes.element.description('Right addon action'),\n};\n\nexport const DSCardV2GroupPropTypesSchema =\n DSCardV2GroupPropTypes as unknown as WeakValidationMap<DSCardV2GroupT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AA6BhE,MAAM,eAA4C,CAAC;AAEnD,MAAM,yBAAkE;AAAA,EAC7E,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,UAAU,kCAAU,KAAK,WAAW,YAAY,YAAY;AAAA;AAAA;AAAA;AAAA,EAI5D,OAAO,kCAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA;AAAA;AAAA;AAAA,EAInE,QAAQ,kCAAU,QAAQ,YAAY,oBAAoB;AAC5D;AAEO,MAAM,+BACX;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/styles.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { color, border, truncate, styled } from '@elliemae/ds-system';\nimport { DSCardV2 } from '@elliemae/ds-card-v2';\nimport { CARD_V2_GROUP_SLOTS, DSCardV2GroupName } from './constants/index.js';\nimport type { DSCardV2GroupT } from './react-desc-prop-types.js';\n\nconst Group = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP })<\n DSCardV2GroupT.Props & { withTopBorder: boolean }\n>`\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 100%;\n ${DSCardV2} {\n border-top: none;\n }\n ${({ theme, withTopBorder }) => (withTopBorder ? `border-top: ${theme.colors.neutral['100']}` : '')}\n`;\n\nconst GroupTitle = styled('span', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP_TITLE })`\n ${truncate()}\n`;\n\nconst TitleWrapper = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.TITLE_WRAPPER })`\n display: flex;\n justify-content: space-between;\n padding: 0 ${(props) => props.theme.space.xs};\n font-size: 12px;\n ${color('neutral', '700')};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n background-color: ${(props) => props.theme.colors.neutral['080']};\n border-top: ${(props) => border(props.theme.colors.neutral['080'])};\n line-height: 24px;\n`;\n\nconst Items = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.ITEMS })`\n display: flex;\n flex-direction: column;\n`;\n\nexport { Group, GroupTitle, TitleWrapper, Items };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAgD;AAChD,wBAAyB;AACzB,uBAAuD;AAGvD,MAAM,YAAQ,yBAAO,OAAO,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,IAOpF,0BAAQ;AAAA;AAAA;AAAA,IAGR,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,KAAK,CAAC,KAAK,EAAG;AAAA;AAGrG,MAAM,iBAAa,yBAAO,QAAQ,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,YAAY,CAAC;AAAA,QAChG,2BAAS,CAAC;AAAA;AAGd,MAAM,mBAAe,yBAAO,OAAO,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,cAAc,CAAC;AAAA;AAAA;AAAA,eAGxF,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA,QAE1C,wBAAM,WAAW,KAAK,CAAC;AAAA,iBACV,CAAC,UAAU,MAAM,MAAM,YAAY,QAAQ;AAAA,sBACtC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,gBAClD,CAAC,cAAU,yBAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC,CAAC;AAAA;AAAA;AAIpE,MAAM,YAAQ,yBAAO,OAAO,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;",
4
+ "sourcesContent": ["import { color, border, truncate, styled } from '@elliemae/ds-system';\nimport { DSCardV2 } from '@elliemae/ds-card-v2';\nimport { CARD_V2_GROUP_SLOTS, DSCardV2GroupName } from './constants/index.js';\n\nconst Group = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP })<{ withTopBorder: boolean }>`\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 100%;\n ${DSCardV2} {\n border-top: none;\n }\n ${({ theme, withTopBorder }) => (withTopBorder ? `border-top: ${theme.colors.neutral['100']}` : '')}\n`;\n\nconst GroupTitle = styled('span', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP_TITLE })`\n ${truncate()}\n`;\n\nconst TitleWrapper = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.TITLE_WRAPPER })`\n display: flex;\n justify-content: space-between;\n padding: 0 ${(props) => props.theme.space.xs};\n font-size: 12px;\n ${color('neutral', '700')};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n background-color: ${(props) => props.theme.colors.neutral['080']};\n border-top: ${(props) => border(props.theme.colors.neutral['080'])};\n line-height: 24px;\n`;\n\nconst Items = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.ITEMS })`\n display: flex;\n flex-direction: column;\n`;\n\nexport { Group, GroupTitle, TitleWrapper, Items };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAgD;AAChD,wBAAyB;AACzB,uBAAuD;AAEvD,MAAM,YAAQ,yBAAO,OAAO,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKpF,0BAAQ;AAAA;AAAA;AAAA,IAGR,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,KAAK,CAAC,KAAK,EAAG;AAAA;AAGrG,MAAM,iBAAa,yBAAO,QAAQ,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,YAAY,CAAC;AAAA,QAChG,2BAAS,CAAC;AAAA;AAGd,MAAM,mBAAe,yBAAO,OAAO,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,cAAc,CAAC;AAAA;AAAA;AAAA,eAGxF,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA,QAE1C,wBAAM,WAAW,KAAK,CAAC;AAAA,iBACV,CAAC,UAAU,MAAM,MAAM,YAAY,QAAQ;AAAA,sBACtC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,gBAClD,CAAC,cAAU,yBAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC,CAAC;AAAA;AAAA;AAIpE,MAAM,YAAQ,yBAAO,OAAO,EAAE,MAAM,oCAAmB,MAAM,qCAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { describe } from "@elliemae/ds-utilities";
3
+ import { describe } from "@elliemae/ds-props-helpers";
4
4
  import { DSCardV2GroupPropTypesSchema } from "./react-desc-prop-types.js";
5
5
  import { useCardV2Group } from "./config/useCardV2Group.js";
6
6
  import { Group, TitleWrapper, GroupTitle, Items } from "./styles.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardV2Group.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2Group } from './config/useCardV2Group.js';\nimport { Group, TitleWrapper, GroupTitle, Items } from './styles.js';\nimport { DSCardV2GroupName } from './constants/index.js';\n\nconst DSCardV2Group: React.ComponentType<DSCardV2GroupT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2Group(props);\n const { children, title, action } = propsWithDefault;\n return (\n <Group\n withTopBorder={!title}\n getOwnerProps={() => propsWithDefault}\n getOwnerPropsArguments={() => ({})}\n {...globalProps}\n {...xstyledProps}\n >\n {!!title && (\n <TitleWrapper>\n <GroupTitle>{title}</GroupTitle>\n {action}\n </TitleWrapper>\n )}\n <Items>{children}</Items>\n </Group>\n );\n};\n\nDSCardV2Group.displayName = DSCardV2GroupName;\nconst DSCardV2GroupWithSchema = describe(DSCardV2Group);\nDSCardV2GroupWithSchema.propTypes = DSCardV2GroupPropTypesSchema;\n\nexport { DSCardV2Group, DSCardV2GroupWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2Group } from './config/useCardV2Group.js';\nimport { Group, TitleWrapper, GroupTitle, Items } from './styles.js';\nimport { DSCardV2GroupName } from './constants/index.js';\n\nconst DSCardV2Group: React.ComponentType<DSCardV2GroupT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2Group(props);\n const { children, title, action } = propsWithDefault;\n return (\n <Group\n withTopBorder={!title}\n getOwnerProps={() => propsWithDefault}\n getOwnerPropsArguments={() => ({})}\n {...globalProps}\n {...xstyledProps}\n >\n {!!title && (\n <TitleWrapper>\n <GroupTitle>{title}</GroupTitle>\n {action}\n </TitleWrapper>\n )}\n <Items>{children}</Items>\n </Group>\n );\n};\n\nDSCardV2Group.displayName = DSCardV2GroupName;\nconst DSCardV2GroupWithSchema = describe(DSCardV2Group);\nDSCardV2GroupWithSchema.propTypes = DSCardV2GroupPropTypesSchema;\n\nexport { DSCardV2Group, DSCardV2GroupWithSchema };\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACmBf,SACE,KADF;AAlBR,SAAS,gBAAgB;AACzB,SAA8B,oCAAoC;AAClE,SAAS,sBAAsB;AAC/B,SAAS,OAAO,cAAc,YAAY,aAAa;AACvD,SAAS,yBAAyB;AAElC,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,aAAa,aAAa,IAAI,eAAe,KAAK;AAC5E,QAAM,EAAE,UAAU,OAAO,OAAO,IAAI;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAe,CAAC;AAAA,MAChB,eAAe,MAAM;AAAA,MACrB,wBAAwB,OAAO,CAAC;AAAA,MAC/B,GAAG;AAAA,MACH,GAAG;AAAA,MAEH;AAAA,SAAC,CAAC,SACD,qBAAC,gBACC;AAAA,8BAAC,cAAY,iBAAM;AAAA,UAClB;AAAA,WACH;AAAA,QAEF,oBAAC,SAAO,UAAS;AAAA;AAAA;AAAA,EACnB;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React2 from "react";
3
- import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
3
+ import { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
4
4
  import { uid } from "uid";
5
5
  import { DSCardV2GroupPropTypes, defaultProps } from "../react-desc-prop-types.js";
6
6
  import { useValidateProps } from "./useValidateProps.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useCardV2Group.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { uid } from 'uid';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\nexport interface CardV2GroupCTX {\n propsWithDefault: DSCardV2GroupT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useCardV2Group = (propsFromUser: DSCardV2GroupT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardV2GroupT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardV2GroupPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = useGetGlobalAttributes<DSCardV2GroupT.InternalProps, HTMLDivElement, DSGridT.Props>(\n propsWithDefault,\n );\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const { id } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // ...eventHandlers,\n }),\n [\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // eventHandlers,\n ],\n );\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { uid } from 'uid';\nimport { type DSCardV2GroupT, DSCardV2GroupPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\nexport interface CardV2GroupCTX {\n propsWithDefault: DSCardV2GroupT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useCardV2Group = (propsFromUser: DSCardV2GroupT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardV2GroupT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardV2GroupPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = useGetGlobalAttributes<DSCardV2GroupT.InternalProps, HTMLDivElement, DSGridT.Props>(\n propsWithDefault,\n );\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const { id } = propsWithDefault;\n const instanceUid = React.useMemo(() => id || uid(5), [id]);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // ...eventHandlers,\n }),\n [\n propsWithDefault,\n globalProps,\n xstyledProps,\n instanceUid,\n // eventHandlers,\n ],\n );\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,wBAAwB,oBAAoB,oCAAoC;AACzF,SAAS,WAAW;AACpB,SAA8B,wBAAwB,oBAAoB;AAC1E,SAAS,wBAAwB;AAU1B,MAAM,iBAAiB,CAAC,kBAAwC;AAIrE,QAAM,mBAAmB,6BAA2D,eAAe,YAAY;AAC/G,mBAAiB,kBAAkB,sBAAsB;AAIzD,QAAM,cAAc;AAAA,IAClB;AAAA,EACF;AACA,QAAM,eAAe,mBAAmB,gBAAgB;AAKxD,QAAM,EAAE,GAAG,IAAI;AACf,QAAM,cAAcA,OAAM,QAAQ,MAAM,MAAM,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAM1D,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,EACF;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { useValidateTypescriptPropTypes } from "@elliemae/ds-utilities";
2
+ import { useValidateTypescriptPropTypes } from "@elliemae/ds-props-helpers";
3
3
  import { DSCardV2GroupName } from "../constants/index.js";
4
4
  const useValidateProps = (props, propTypes) => {
5
5
  useValidateTypescriptPropTypes(props, propTypes, DSCardV2GroupName);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useValidateProps.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes } from '@elliemae/ds-utilities';\nimport type { WeakValidationMap } from 'react';\nimport { type DSCardV2GroupT } from '../react-desc-prop-types.js';\nimport { DSCardV2GroupName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSCardV2GroupT.InternalProps, propTypes: WeakValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSCardV2GroupName);\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport type { WeakValidationMap } from 'react';\nimport { type DSCardV2GroupT } from '../react-desc-prop-types.js';\nimport { DSCardV2GroupName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSCardV2GroupT.InternalProps, propTypes: WeakValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSCardV2GroupName);\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sCAAsC;AAG/C,SAAS,yBAAyB;AAE3B,MAAM,mBAAmB,CAAC,OAAqC,cAAgD;AAEpH,iCAA+B,OAAO,WAAW,iBAAiB;AACpE;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-utilities";
2
+ import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
3
3
  const defaultProps = {};
4
4
  const DSCardV2GroupPropTypes = {
5
5
  ...globalAttributesPropTypes,
@@ -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 { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-utilities';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSCardV2GroupT {\n export interface RequiredProps {\n children: React.ReactElement<[]>;\n title: string;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps {\n action: React.ReactElement<[]>;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n >,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<\n GlobalAttributesT<HTMLButtonElement>,\n keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps\n >,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCardV2GroupT.DefaultProps = {};\n\nexport const DSCardV2GroupPropTypes: DSPropTypesSchema<DSCardV2GroupT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * Card items\n */\n children: PropTypes.node.isRequired.description('Card items'),\n /**\n * Title of the group\n */\n title: PropTypes.string.isRequired.description('Title of the group'),\n /**\n * Right addon action\n */\n action: PropTypes.element.description('Right addon action'),\n};\n\nexport const DSCardV2GroupPropTypesSchema =\n DSCardV2GroupPropTypes as unknown as WeakValidationMap<DSCardV2GroupT.Props>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AAmChE,MAAM,eAA4C,CAAC;AAEnD,MAAM,yBAAkE;AAAA,EAC7E,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,UAAU,UAAU,KAAK,WAAW,YAAY,YAAY;AAAA;AAAA;AAAA;AAAA,EAI5D,OAAO,UAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA;AAAA;AAAA;AAAA,EAInE,QAAQ,UAAU,QAAQ,YAAY,oBAAoB;AAC5D;AAEO,MAAM,+BACX;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { WeakValidationMap } from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSCardV2GroupT {\n export interface RequiredProps {\n children: React.ReactNode;\n title: string;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps {\n action: React.ReactElement<[]>;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCardV2GroupT.DefaultProps = {};\n\nexport const DSCardV2GroupPropTypes: DSPropTypesSchema<DSCardV2GroupT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * Card items\n */\n children: PropTypes.node.isRequired.description('Card items'),\n /**\n * Title of the group\n */\n title: PropTypes.string.isRequired.description('Title of the group'),\n /**\n * Right addon action\n */\n action: PropTypes.element.description('Right addon action'),\n};\n\nexport const DSCardV2GroupPropTypesSchema =\n DSCardV2GroupPropTypes as unknown as WeakValidationMap<DSCardV2GroupT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AA6BhE,MAAM,eAA4C,CAAC;AAEnD,MAAM,yBAAkE;AAAA,EAC7E,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,UAAU,UAAU,KAAK,WAAW,YAAY,YAAY;AAAA;AAAA;AAAA;AAAA,EAI5D,OAAO,UAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA;AAAA;AAAA;AAAA,EAInE,QAAQ,UAAU,QAAQ,YAAY,oBAAoB;AAC5D;AAEO,MAAM,+BACX;",
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/styles.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { color, border, truncate, styled } from '@elliemae/ds-system';\nimport { DSCardV2 } from '@elliemae/ds-card-v2';\nimport { CARD_V2_GROUP_SLOTS, DSCardV2GroupName } from './constants/index.js';\nimport type { DSCardV2GroupT } from './react-desc-prop-types.js';\n\nconst Group = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP })<\n DSCardV2GroupT.Props & { withTopBorder: boolean }\n>`\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 100%;\n ${DSCardV2} {\n border-top: none;\n }\n ${({ theme, withTopBorder }) => (withTopBorder ? `border-top: ${theme.colors.neutral['100']}` : '')}\n`;\n\nconst GroupTitle = styled('span', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP_TITLE })`\n ${truncate()}\n`;\n\nconst TitleWrapper = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.TITLE_WRAPPER })`\n display: flex;\n justify-content: space-between;\n padding: 0 ${(props) => props.theme.space.xs};\n font-size: 12px;\n ${color('neutral', '700')};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n background-color: ${(props) => props.theme.colors.neutral['080']};\n border-top: ${(props) => border(props.theme.colors.neutral['080'])};\n line-height: 24px;\n`;\n\nconst Items = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.ITEMS })`\n display: flex;\n flex-direction: column;\n`;\n\nexport { Group, GroupTitle, TitleWrapper, Items };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,OAAO,QAAQ,UAAU,cAAc;AAChD,SAAS,gBAAgB;AACzB,SAAS,qBAAqB,yBAAyB;AAGvD,MAAM,QAAQ,OAAO,OAAO,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,IAOpF,QAAQ;AAAA;AAAA;AAAA,IAGR,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,KAAK,CAAC,KAAK,EAAG;AAAA;AAGrG,MAAM,aAAa,OAAO,QAAQ,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,YAAY,CAAC;AAAA,IAChG,SAAS,CAAC;AAAA;AAGd,MAAM,eAAe,OAAO,OAAO,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,cAAc,CAAC;AAAA;AAAA;AAAA,eAGxF,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA,IAE1C,MAAM,WAAW,KAAK,CAAC;AAAA,iBACV,CAAC,UAAU,MAAM,MAAM,YAAY,QAAQ;AAAA,sBACtC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,gBAClD,CAAC,UAAU,OAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC,CAAC;AAAA;AAAA;AAIpE,MAAM,QAAQ,OAAO,OAAO,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { color, border, truncate, styled } from '@elliemae/ds-system';\nimport { DSCardV2 } from '@elliemae/ds-card-v2';\nimport { CARD_V2_GROUP_SLOTS, DSCardV2GroupName } from './constants/index.js';\n\nconst Group = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP })<{ withTopBorder: boolean }>`\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 100%;\n ${DSCardV2} {\n border-top: none;\n }\n ${({ theme, withTopBorder }) => (withTopBorder ? `border-top: ${theme.colors.neutral['100']}` : '')}\n`;\n\nconst GroupTitle = styled('span', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.GROUP_TITLE })`\n ${truncate()}\n`;\n\nconst TitleWrapper = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.TITLE_WRAPPER })`\n display: flex;\n justify-content: space-between;\n padding: 0 ${(props) => props.theme.space.xs};\n font-size: 12px;\n ${color('neutral', '700')};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n background-color: ${(props) => props.theme.colors.neutral['080']};\n border-top: ${(props) => border(props.theme.colors.neutral['080'])};\n line-height: 24px;\n`;\n\nconst Items = styled('div', { name: DSCardV2GroupName, slot: CARD_V2_GROUP_SLOTS.ITEMS })`\n display: flex;\n flex-direction: column;\n`;\n\nexport { Group, GroupTitle, TitleWrapper, Items };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,OAAO,QAAQ,UAAU,cAAc;AAChD,SAAS,gBAAgB;AACzB,SAAS,qBAAqB,yBAAyB;AAEvD,MAAM,QAAQ,OAAO,OAAO,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKpF,QAAQ;AAAA;AAAA;AAAA,IAGR,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,KAAK,CAAC,KAAK,EAAG;AAAA;AAGrG,MAAM,aAAa,OAAO,QAAQ,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,YAAY,CAAC;AAAA,IAChG,SAAS,CAAC;AAAA;AAGd,MAAM,eAAe,OAAO,OAAO,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,cAAc,CAAC;AAAA;AAAA;AAAA,eAGxF,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA,IAE1C,MAAM,WAAW,KAAK,CAAC;AAAA,iBACV,CAAC,UAAU,MAAM,MAAM,YAAY,QAAQ;AAAA,sBACtC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,gBAClD,CAAC,UAAU,OAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC,CAAC;AAAA;AAAA;AAIpE,MAAM,QAAQ,OAAO,OAAO,EAAE,MAAM,mBAAmB,MAAM,oBAAoB,MAAM,CAAC;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type DSCardV2GroupT } from './react-desc-prop-types.js';
3
+ declare const DSCardV2Group: React.ComponentType<DSCardV2GroupT.Props>;
4
+ declare const DSCardV2GroupWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSCardV2GroupT.Props>;
5
+ export { DSCardV2Group, DSCardV2GroupWithSchema };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-utilities';
2
+ import { useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-props-helpers';
3
3
  import { type DSCardV2GroupT } from '../react-desc-prop-types.js';
4
4
  import type { DSGridT } from '@elliemae/ds-grid';
5
5
  export interface CardV2GroupCTX {
@@ -375,6 +375,6 @@ export declare const useCardV2Group: (propsFromUser: DSCardV2GroupT.Props) => {
375
375
  wmode?: string | undefined;
376
376
  wrap?: string | undefined;
377
377
  }, keyof DSGridT.Props>>;
378
- xstyledProps: import("@elliemae/ds-utilities").XstyledProps;
378
+ xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
379
379
  instanceUid: string;
380
380
  };
@@ -1,8 +1,8 @@
1
1
  import type { WeakValidationMap } from 'react';
2
- import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-utilities';
2
+ import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
3
3
  export declare namespace DSCardV2GroupT {
4
4
  interface RequiredProps {
5
- children: React.ReactElement<[]>;
5
+ children: React.ReactNode;
6
6
  title: string;
7
7
  }
8
8
  interface DefaultProps {
@@ -10,9 +10,9 @@ export declare namespace DSCardV2GroupT {
10
10
  interface OptionalProps {
11
11
  action: React.ReactElement<[]>;
12
12
  }
13
- interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>, XstyledProps, RequiredProps {
13
+ interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>, XstyledProps, RequiredProps {
14
14
  }
15
- interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>, XstyledProps, RequiredProps {
15
+ interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof OptionalProps | keyof RequiredProps | keyof XstyledProps>, XstyledProps, RequiredProps {
16
16
  }
17
17
  }
18
18
  export declare const defaultProps: DSCardV2GroupT.DefaultProps;
@@ -1,5 +1,4 @@
1
- import type { DSCardV2GroupT } from './react-desc-prop-types.js';
2
- declare const Group: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, DSCardV2GroupT.Props & {
1
+ declare const Group: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
3
2
  withTopBorder: boolean;
4
3
  } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
5
4
  declare const GroupTitle: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card-v2-group",
3
- "version": "3.37.0-rc.4",
3
+ "version": "3.37.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card V2 Group",
6
6
  "files": [
@@ -50,18 +50,18 @@
50
50
  "dependencies": {
51
51
  "lodash": "~4.17.21",
52
52
  "uid": "^2.0.2",
53
- "@elliemae/ds-button": "3.37.0-rc.4",
54
- "@elliemae/ds-card-v2": "3.37.0-rc.4",
55
- "@elliemae/ds-grid": "3.37.0-rc.4",
56
- "@elliemae/ds-system": "3.37.0-rc.4",
57
- "@elliemae/ds-utilities": "3.37.0-rc.4"
53
+ "@elliemae/ds-button": "3.37.0",
54
+ "@elliemae/ds-grid": "3.37.0",
55
+ "@elliemae/ds-props-helpers": "3.37.0",
56
+ "@elliemae/ds-system": "3.37.0",
57
+ "@elliemae/ds-card-v2": "3.37.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@elliemae/pui-cli": "9.0.0-next.50",
61
61
  "@elliemae/pui-theme": "~2.9.3",
62
62
  "@xstyled/system": "3.7.0",
63
63
  "styled-components": "~5.3.9",
64
- "@elliemae/ds-monorepo-devops": "3.37.0-rc.4"
64
+ "@elliemae/ds-monorepo-devops": "3.37.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@elliemae/pui-theme": "~2.9.3",