@elliemae/ds-card-v1-detail 3.21.0-next.1

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.
Files changed (39) hide show
  1. package/dist/cjs/DSCardV1Detail.js +139 -0
  2. package/dist/cjs/DSCardV1Detail.js.map +7 -0
  3. package/dist/cjs/config/useCardV1Detail.js +69 -0
  4. package/dist/cjs/config/useCardV1Detail.js.map +7 -0
  5. package/dist/cjs/config/useValidateProps.js +40 -0
  6. package/dist/cjs/config/useValidateProps.js.map +7 -0
  7. package/dist/cjs/constants/index.js +53 -0
  8. package/dist/cjs/constants/index.js.map +7 -0
  9. package/dist/cjs/index.js +41 -0
  10. package/dist/cjs/index.js.map +7 -0
  11. package/dist/cjs/package.json +7 -0
  12. package/dist/cjs/react-desc-prop-types.js +117 -0
  13. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  14. package/dist/cjs/styled.js +115 -0
  15. package/dist/cjs/styled.js.map +7 -0
  16. package/dist/esm/DSCardV1Detail.js +109 -0
  17. package/dist/esm/DSCardV1Detail.js.map +7 -0
  18. package/dist/esm/config/useCardV1Detail.js +39 -0
  19. package/dist/esm/config/useCardV1Detail.js.map +7 -0
  20. package/dist/esm/config/useValidateProps.js +10 -0
  21. package/dist/esm/config/useValidateProps.js.map +7 -0
  22. package/dist/esm/constants/index.js +23 -0
  23. package/dist/esm/constants/index.js.map +7 -0
  24. package/dist/esm/index.js +15 -0
  25. package/dist/esm/index.js.map +7 -0
  26. package/dist/esm/package.json +7 -0
  27. package/dist/esm/react-desc-prop-types.js +87 -0
  28. package/dist/esm/react-desc-prop-types.js.map +7 -0
  29. package/dist/esm/styled.js +85 -0
  30. package/dist/esm/styled.js.map +7 -0
  31. package/dist/types/config/useCardV1Detail.d.ts +15 -0
  32. package/dist/types/config/useValidateProps.d.ts +3 -0
  33. package/dist/types/constants/index.d.ts +14 -0
  34. package/dist/types/index.d.ts +3 -0
  35. package/dist/types/react-desc-prop-types.d.ts +33 -0
  36. package/dist/types/styled.d.ts +11 -0
  37. package/dist/types/tests/DSCardV1Detail.axe.test.d.ts +1 -0
  38. package/dist/types/tests/DSCardV1Detail.test.d.ts +1 -0
  39. package/package.json +79 -0
@@ -0,0 +1,139 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSCardV1Detail_exports = {};
30
+ __export(DSCardV1Detail_exports, {
31
+ DSCardV1Detail: () => DSCardV1Detail,
32
+ DSCardV1DetailWithSchema: () => DSCardV1DetailWithSchema
33
+ });
34
+ module.exports = __toCommonJS(DSCardV1Detail_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_ds_utilities = require("@elliemae/ds-utilities");
38
+ var import_lodash = require("lodash");
39
+ var import_ds_system = require("@elliemae/ds-system");
40
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
41
+ var import_useCardV1Detail = require("./config/useCardV1Detail.js");
42
+ var import_constants = require("./constants/index.js");
43
+ var import_ds_icons = require("@elliemae/ds-icons");
44
+ var import_ds_button = __toESM(require("@elliemae/ds-button"));
45
+ var import_ds_separator = __toESM(require("@elliemae/ds-separator"));
46
+ var import_ds_grid = require("@elliemae/ds-grid");
47
+ var import_ds_controlled_form = require("@elliemae/ds-controlled-form");
48
+ var import_styled = require("./styled.js");
49
+ const DSCardV1Detail = (props) => {
50
+ const { propsWithDefault, globalProps, xstyledProps } = (0, import_useCardV1Detail.useCardV1Detail)(props);
51
+ const {
52
+ title,
53
+ onExpand,
54
+ expandContent,
55
+ description,
56
+ descriptionColor,
57
+ rightValue,
58
+ rightDescription,
59
+ rightAddon,
60
+ selectable,
61
+ isSelected,
62
+ onSelect,
63
+ expandable,
64
+ isExpanded,
65
+ readOnly,
66
+ disabled
67
+ } = propsWithDefault;
68
+ const theme = (0, import_ds_system.useTheme)();
69
+ const hasRightLegend = rightValue && rightDescription;
70
+ const hasRightPosition = hasRightLegend || rightAddon;
71
+ const topWrapperCols = ["1fr"];
72
+ if (hasRightPosition)
73
+ topWrapperCols.push("auto");
74
+ if (expandable)
75
+ topWrapperCols.unshift("20px");
76
+ if (selectable)
77
+ topWrapperCols.unshift(theme.space.s);
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
79
+ import_styled.Container,
80
+ {
81
+ disabled: disabled || readOnly,
82
+ active: selectable && isSelected,
83
+ "data-testid": import_constants.CARD_V1_DETAIL_SLOTS.CONTAINER,
84
+ getOwnerProps: () => propsWithDefault,
85
+ getOwnerPropsArguments: () => ({}),
86
+ ...globalProps,
87
+ ...xstyledProps,
88
+ children: [
89
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { cols: topWrapperCols, alignItems: !description ? "center" : void 0, children: [
90
+ selectable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { pt: description && "9px", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
+ import_ds_controlled_form.DSControlledCheckbox,
92
+ {
93
+ "data-testid": "card-checkbox",
94
+ checked: isSelected,
95
+ name: `${description}-checkbox`,
96
+ label: " ",
97
+ disabled,
98
+ onChange: onSelect
99
+ }
100
+ ) }),
101
+ expandable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { height: "16px", pt: description && "xxs", mt: !description && "-5px", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
+ import_ds_button.default,
103
+ {
104
+ size: "s",
105
+ buttonType: "text",
106
+ containerProps: {
107
+ "data-testid": "expand-button"
108
+ },
109
+ onClick: onExpand,
110
+ icon: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ArrowheadDown, { color: ["neutral", "500"], size: "s" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ArrowheadRight, { color: ["neutral", "500"], size: "s" }),
111
+ disabled
112
+ }
113
+ ) }),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { pr: "24px", children: [
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Title, { children: title }),
116
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Description, { descriptionColor, children: description })
117
+ ] }),
118
+ hasRightPosition && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { cols: (0, import_lodash.compact)([hasRightPosition && "auto", rightAddon && "auto"]), children: [
119
+ hasRightLegend && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { pr: "24px", rows: ["auto", "auto", 1], children: [
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightDescription, { justifyContent: "flex-end", children: rightDescription }),
121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightValue, { justifyContent: "flex-end", children: rightValue }),
122
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {})
123
+ ] }),
124
+ rightAddon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightAddon, { cols: ["auto", "auto"], gutter: "2px", children: rightAddon })
125
+ ] })
126
+ ] }),
127
+ expandContent && isExpanded && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { ml: selectable && "s", mr: rightAddon && "xs", children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_separator.default, { dashed: true, position: "initial", margin: "none" }),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { pt: "xxs", "data-testid": "detail-card-expanded-content", children: expandContent })
130
+ ] })
131
+ ]
132
+ }
133
+ ) });
134
+ };
135
+ DSCardV1Detail.propTypes = import_react_desc_prop_types.DSCardV1DetailPropTypesSchema;
136
+ DSCardV1Detail.displayName = import_constants.DSCardV1DetailName;
137
+ const DSCardV1DetailWithSchema = (0, import_ds_utilities.describe)(DSCardV1Detail);
138
+ DSCardV1DetailWithSchema.propTypes = import_react_desc_prop_types.DSCardV1DetailPropTypesSchema;
139
+ //# sourceMappingURL=DSCardV1Detail.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSCardV1Detail.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { compact } from 'lodash';\nimport { useTheme } from '@elliemae/ds-system';\nimport { type DSCardV1DetailT, DSCardV1DetailPropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV1Detail } from './config/useCardV1Detail.js';\nimport { CARD_V1_DETAIL_SLOTS, DSCardV1DetailName } from './constants/index.js';\nimport { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';\nimport DSButton from '@elliemae/ds-button';\nimport DSSeparator from '@elliemae/ds-separator';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSControlledCheckbox } from '@elliemae/ds-controlled-form';\nimport { Container, Title, Description, RightAddon, RightDescription, RightValue } from './styled.js';\n\n// eslint-disable-next-line complexity\nconst DSCardV1Detail: React.ComponentType<DSCardV1DetailT.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV1Detail(props);\n const {\n title,\n onExpand,\n expandContent,\n description,\n descriptionColor,\n rightValue,\n rightDescription,\n rightAddon,\n selectable,\n isSelected,\n onSelect,\n expandable,\n isExpanded,\n readOnly,\n disabled,\n } = propsWithDefault;\n const theme = useTheme();\n const hasRightLegend = rightValue && rightDescription;\n const hasRightPosition = hasRightLegend || rightAddon;\n const topWrapperCols = ['1fr'];\n if (hasRightPosition) topWrapperCols.push('auto');\n if (expandable) topWrapperCols.unshift('20px');\n if (selectable) topWrapperCols.unshift(theme.space.s);\n return (\n <>\n <Container\n disabled={disabled || readOnly}\n active={selectable && isSelected}\n data-testid={CARD_V1_DETAIL_SLOTS.CONTAINER}\n getOwnerProps={() => propsWithDefault}\n getOwnerPropsArguments={() => ({})}\n {...globalProps}\n {...xstyledProps}\n >\n <Grid cols={topWrapperCols} alignItems={!description ? 'center' : undefined}>\n {selectable && (\n <Grid pt={description && '9px'}>\n <DSControlledCheckbox\n data-testid=\"card-checkbox\"\n checked={isSelected}\n name={`${description}-checkbox`}\n label=\" \"\n disabled={disabled}\n onChange={onSelect}\n />\n </Grid>\n )}\n {expandable && (\n <Grid height=\"16px\" pt={description && 'xxs'} mt={!description && '-5px'}>\n <DSButton\n size=\"s\"\n buttonType=\"text\"\n containerProps={{\n 'data-testid': 'expand-button',\n }}\n onClick={onExpand}\n icon={\n isExpanded ? (\n <ArrowheadDown color={['neutral', '500']} size=\"s\" />\n ) : (\n <ArrowheadRight color={['neutral', '500']} size=\"s\" />\n )\n }\n disabled={disabled}\n />\n </Grid>\n )}\n <Grid pr=\"24px\">\n <Title>{title}</Title>\n {description && <Description descriptionColor={descriptionColor}>{description}</Description>}\n </Grid>\n {hasRightPosition && (\n <Grid cols={compact([hasRightPosition && 'auto', rightAddon && 'auto'])}>\n {hasRightLegend && (\n <Grid pr=\"24px\" rows={['auto', 'auto', 1]}>\n <RightDescription justifyContent=\"flex-end\">{rightDescription}</RightDescription>\n <RightValue justifyContent=\"flex-end\">{rightValue}</RightValue>\n <Grid />\n </Grid>\n )}\n {rightAddon && (\n <RightAddon cols={['auto', 'auto']} gutter=\"2px\">\n {rightAddon}\n </RightAddon>\n )}\n </Grid>\n )}\n </Grid>\n {expandContent && isExpanded && (\n <Grid ml={selectable && 's'} mr={rightAddon && 'xs'}>\n <DSSeparator dashed position=\"initial\" margin=\"none\" />\n <Grid pt=\"xxs\" data-testid=\"detail-card-expanded-content\">\n {expandContent}\n </Grid>\n </Grid>\n )}\n </Container>\n </>\n );\n};\n\nDSCardV1Detail.propTypes = DSCardV1DetailPropTypesSchema;\nDSCardV1Detail.displayName = DSCardV1DetailName;\nconst DSCardV1DetailWithSchema = describe(DSCardV1Detail);\nDSCardV1DetailWithSchema.propTypes = DSCardV1DetailPropTypesSchema;\n\nexport { DSCardV1Detail, DSCardV1DetailWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": "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",
6
+ "names": ["DSButton", "DSSeparator"]
7
+ }
@@ -0,0 +1,69 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useCardV1Detail_exports = {};
30
+ __export(useCardV1Detail_exports, {
31
+ useCardV1Detail: () => useCardV1Detail
32
+ });
33
+ module.exports = __toCommonJS(useCardV1Detail_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_react = __toESM(require("react"));
36
+ var import_lodash = require("lodash");
37
+ var import_ds_utilities = require("@elliemae/ds-utilities");
38
+ var import_uid = require("uid");
39
+ var import_react_desc_prop_types = require("../react-desc-prop-types.js");
40
+ var import_useValidateProps = require("./useValidateProps.js");
41
+ const useCardV1Detail = (propsFromUser) => {
42
+ const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(propsFromUser, import_react_desc_prop_types.defaultProps);
43
+ (0, import_useValidateProps.useValidateProps)(propsWithDefault, import_react_desc_prop_types.DSCardV1DetailPropTypes);
44
+ const globalProps = (0, import_lodash.omit)((0, import_ds_utilities.useGetGlobalAttributes)(propsWithDefault), [
45
+ "cols",
46
+ "rows",
47
+ "wrap"
48
+ ]);
49
+ const xstyledProps = (0, import_ds_utilities.useGetXstyledProps)(propsWithDefault);
50
+ const { id } = propsWithDefault;
51
+ const instanceUid = import_react.default.useMemo(() => id || (0, import_uid.uid)(5), [id]);
52
+ return import_react.default.useMemo(
53
+ () => ({
54
+ propsWithDefault,
55
+ globalProps,
56
+ xstyledProps,
57
+ instanceUid
58
+ // ...eventHandlers,
59
+ }),
60
+ [
61
+ propsWithDefault,
62
+ globalProps,
63
+ xstyledProps,
64
+ instanceUid
65
+ // eventHandlers,
66
+ ]
67
+ );
68
+ };
69
+ //# sourceMappingURL=useCardV1Detail.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/config/useCardV1Detail.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { omit } from 'lodash';\nimport { useGetGlobalAttributes, useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { uid } from 'uid';\nimport { type DSCardV1DetailT, DSCardV1DetailPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface CardV1DetailCTX {\n propsWithDefault: DSCardV1DetailT.InternalProps;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useCardV1Detail = (propsFromUser: DSCardV1DetailT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardV1DetailT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardV1DetailPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n const globalProps = omit(useGetGlobalAttributes<DSCardV1DetailT.InternalProps>(propsWithDefault), [\n 'cols',\n 'rows',\n 'wrap',\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,oBAAqB;AACrB,0BAAyF;AACzF,iBAAoB;AACpB,mCAA4E;AAC5E,8BAAiC;AAS1B,MAAM,kBAAkB,CAAC,kBAAyC;AAIvE,QAAM,uBAAmB,kDAA4D,eAAe,yCAAY;AAChH,gDAAiB,kBAAkB,oDAAuB;AAI1D,QAAM,kBAAc,wBAAK,4CAAsD,gBAAgB,GAAG;AAAA,IAChG;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACD,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;",
6
+ "names": ["React"]
7
+ }
@@ -0,0 +1,40 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useValidateProps_exports = {};
30
+ __export(useValidateProps_exports, {
31
+ useValidateProps: () => useValidateProps
32
+ });
33
+ module.exports = __toCommonJS(useValidateProps_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_utilities = require("@elliemae/ds-utilities");
36
+ var import_constants = require("../constants/index.js");
37
+ const useValidateProps = (props, propTypes) => {
38
+ (0, import_ds_utilities.useValidateTypescriptPropTypes)(props, propTypes, import_constants.DSCardV1DetailName);
39
+ };
40
+ //# sourceMappingURL=useValidateProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 DSCardV1DetailT } from '../react-desc-prop-types.js';\nimport { DSCardV1DetailName } from '../constants/index.js';\n\nexport const useValidateProps = (props: DSCardV1DetailT.InternalProps, propTypes: WeakValidationMap<unknown>): void => {\n // we validate the \"required if\" via 'isRequiredIf from our custom PropTypes\n useValidateTypescriptPropTypes(props, propTypes, DSCardV1DetailName);\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA+C;AAG/C,uBAAmC;AAE5B,MAAM,mBAAmB,CAAC,OAAsC,cAAgD;AAErH,0DAA+B,OAAO,WAAW,mCAAkB;AACrE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,53 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var constants_exports = {};
30
+ __export(constants_exports, {
31
+ CARD_V1_DETAIL_DATA_TESTID: () => CARD_V1_DETAIL_DATA_TESTID,
32
+ CARD_V1_DETAIL_SLOTS: () => CARD_V1_DETAIL_SLOTS,
33
+ DSCardV1DetailName: () => DSCardV1DetailName
34
+ });
35
+ module.exports = __toCommonJS(constants_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_system = require("@elliemae/ds-system");
38
+ const DSCardV1DetailName = "DSCardV1Detail";
39
+ const CARD_V1_DETAIL_SLOTS = {
40
+ CONTAINER: "container",
41
+ SEPARATOR: "separator",
42
+ TITTLE: "title",
43
+ DESCRIPTION: "description",
44
+ RIGHT_ADDON: "right-addon",
45
+ RIGHT_DESCRIPTION: "right-description",
46
+ RIGHT_VALUE: "right-value",
47
+ EXPAND_CONTENT: "expand-content"
48
+ };
49
+ const CARD_V1_DETAIL_DATA_TESTID = {
50
+ ...(0, import_ds_system.slotObjectToDataTestIds)(DSCardV1DetailName, CARD_V1_DETAIL_SLOTS),
51
+ CONTAINER: "container"
52
+ };
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSCardV1DetailName = 'DSCardV1Detail';\n\n// we are giving \"component_name_slots\" to avoid errors on duplicate exports variables in aggregators\nexport const CARD_V1_DETAIL_SLOTS = {\n CONTAINER: 'container',\n SEPARATOR: 'separator',\n TITTLE: 'title',\n DESCRIPTION: 'description',\n RIGHT_ADDON: 'right-addon',\n RIGHT_DESCRIPTION: 'right-description',\n RIGHT_VALUE: 'right-value',\n EXPAND_CONTENT: 'expand-content',\n} as const;\n\n// we are giving \"component_name_data_testid\" to avoid errors on duplicate exports variables in aggregators\nexport const CARD_V1_DETAIL_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSCardV1DetailName, CARD_V1_DETAIL_SLOTS),\n CONTAINER: 'container',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,qBAAqB;AAG3B,MAAM,uBAAuB;AAAA,EAClC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,aAAa;AAAA,EACb,gBAAgB;AAClB;AAGO,MAAM,6BAA6B;AAAA,EACxC,OAAG,0CAAwB,oBAAoB,oBAAoB;AAAA,EACnE,WAAW;AACb;",
6
+ "names": []
7
+ }
@@ -0,0 +1,41 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ CARD_V1_DETAIL_DATA_TESTID: () => import_constants.CARD_V1_DETAIL_DATA_TESTID,
32
+ DSCardDetailWithSchema: () => import_DSCardV1Detail.DSCardV1DetailWithSchema,
33
+ DSCardV1Detail: () => import_DSCardV1Detail.DSCardV1Detail,
34
+ DSCardV1DetailWithSchema: () => import_DSCardV1Detail.DSCardV1DetailWithSchema
35
+ });
36
+ module.exports = __toCommonJS(src_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_DSCardV1Detail = require("./DSCardV1Detail.js");
39
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
40
+ var import_constants = require("./constants/index.js");
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport {\n DSCardV1Detail,\n DSCardV1DetailWithSchema,\n DSCardV1DetailWithSchema as DSCardDetailWithSchema,\n} from './DSCardV1Detail.js';\nexport { type DSCardV1DetailT } from './react-desc-prop-types.js';\nexport { CARD_V1_DETAIL_DATA_TESTID } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,4BAIO;AACP,mCAAqC;AACrC,uBAA2C;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,117 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ DSCardV1DetailPropTypes: () => DSCardV1DetailPropTypes,
32
+ DSCardV1DetailPropTypesSchema: () => DSCardV1DetailPropTypesSchema,
33
+ defaultProps: () => defaultProps
34
+ });
35
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_utilities = require("@elliemae/ds-utilities");
38
+ const defaultProps = {
39
+ onExpand: () => {
40
+ },
41
+ onSelect: () => {
42
+ },
43
+ descriptionColor: "neutral",
44
+ selectable: false,
45
+ isSelected: false,
46
+ expandable: false,
47
+ isExpandable: false,
48
+ readonly: false,
49
+ disabled: false,
50
+ isExpanded: false
51
+ };
52
+ const DSCardV1DetailPropTypes = {
53
+ ...import_ds_utilities.globalAttributesPropTypes,
54
+ ...import_ds_utilities.xstyledPropTypes,
55
+ /**
56
+ * Title of the card.
57
+ */
58
+ title: import_ds_utilities.PropTypes.string.isRequired.description("Title of the card."),
59
+ /**
60
+ * Description of the card.
61
+ */
62
+ description: import_ds_utilities.PropTypes.string.description("Description of the card."),
63
+ /**
64
+ * Description color.
65
+ */
66
+ descriptionColor: import_ds_utilities.PropTypes.oneOf(["primary", "neutral"]).description("Description color.").defaultValue("Neutral"),
67
+ /**
68
+ * Right value (should be used with `rightDescription`)
69
+ */
70
+ rightValue: import_ds_utilities.PropTypes.string.description("Right value (should be used with `rightDescription`)"),
71
+ /**
72
+ * Right description (should be used with `rightValue`)
73
+ */
74
+ rightDescription: import_ds_utilities.PropTypes.string.description("Right description (should be used with `rightValue`)"),
75
+ /**
76
+ * Right addon array, max elements: 2
77
+ */
78
+ rightAddon: import_ds_utilities.PropTypes.element.description("Right addon array, max elements: 2"),
79
+ /**
80
+ * Whether if the card is selectable or not
81
+ */
82
+ selectable: import_ds_utilities.PropTypes.bool.description("Whether if the card is selectable or not").defaultValue(false),
83
+ /**
84
+ * Whether if the card is selected or not
85
+ */
86
+ isSelected: import_ds_utilities.PropTypes.bool.description("Whether if the card is selected or not").defaultValue(false),
87
+ /**
88
+ * Callback on selection
89
+ */
90
+ onSelect: import_ds_utilities.PropTypes.func.description("Callback on selection").defaultValue("()=>{}"),
91
+ /**
92
+ * Whether if the card is expandable or not
93
+ */
94
+ expandable: import_ds_utilities.PropTypes.bool.description("Whether if the card is expandable or not").defaultValue(false),
95
+ /**
96
+ * Whether if the card is expanded or not
97
+ */
98
+ isExpanded: import_ds_utilities.PropTypes.bool.description("Whether if the card is expanded or not").defaultValue(false),
99
+ /**
100
+ * Callback on expand
101
+ */
102
+ onExpand: import_ds_utilities.PropTypes.func.description("Callback on expand").defaultValue("()=>{}"),
103
+ /**
104
+ * Content
105
+ */
106
+ expandContent: import_ds_utilities.PropTypes.element.description("Content").defaultValue(false),
107
+ /**
108
+ * Read only
109
+ */
110
+ readOnly: import_ds_utilities.PropTypes.bool.description("Read only").defaultValue(false),
111
+ /**
112
+ * Disabled
113
+ */
114
+ disabled: import_ds_utilities.PropTypes.bool.description("Disabled").defaultValue(false)
115
+ };
116
+ const DSCardV1DetailPropTypesSchema = DSCardV1DetailPropTypes;
117
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import 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 DSCardV1DetailT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface DefaultProps {\n descriptionColor: 'primary' | 'neutral';\n // select props\n selectable: boolean;\n isSelected: boolean;\n onSelect?: () => void;\n // expand props\n expandable: boolean;\n isExpanded: boolean;\n onExpand?: () => void;\n isExpandable: boolean;\n // state props\n readonly: boolean;\n disabled: boolean;\n }\n\n export interface OptionalProps {\n description: string;\n rightValue: string;\n rightDescription: string;\n rightAddon: JSX.Element | JSX.Element[];\n expandContent: JSX.Element;\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: DSCardV1DetailT.DefaultProps = {\n onExpand: () => {},\n onSelect: () => {},\n descriptionColor: 'neutral',\n selectable: false,\n isSelected: false,\n expandable: false,\n isExpandable: false,\n readonly: false,\n disabled: false,\n isExpanded: false,\n};\n\nexport const DSCardV1DetailPropTypes: DSPropTypesSchema<DSCardV1DetailT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * Title of the card.\n */\n title: PropTypes.string.isRequired.description('Title of the card.'),\n /**\n * Description of the card.\n */\n description: PropTypes.string.description('Description of the card.'),\n /**\n * Description color.\n */\n descriptionColor: PropTypes.oneOf(['primary', 'neutral']).description('Description color.').defaultValue('Neutral'),\n /**\n * Right value (should be used with `rightDescription`)\n */\n rightValue: PropTypes.string.description('Right value (should be used with `rightDescription`)'),\n /**\n * Right description (should be used with `rightValue`)\n */\n rightDescription: PropTypes.string.description('Right description (should be used with `rightValue`)'),\n /**\n * Right addon array, max elements: 2\n */\n rightAddon: PropTypes.element.description('Right addon array, max elements: 2'),\n /**\n * Whether if the card is selectable or not\n */\n selectable: PropTypes.bool.description('Whether if the card is selectable or not').defaultValue(false),\n /**\n * Whether if the card is selected or not\n */\n isSelected: PropTypes.bool.description('Whether if the card is selected or not').defaultValue(false),\n /**\n * Callback on selection\n */\n onSelect: PropTypes.func.description('Callback on selection').defaultValue('()=>{}'),\n /**\n * Whether if the card is expandable or not\n */\n expandable: PropTypes.bool.description('Whether if the card is expandable or not').defaultValue(false),\n /**\n * Whether if the card is expanded or not\n */\n isExpanded: PropTypes.bool.description('Whether if the card is expanded or not').defaultValue(false),\n /**\n * Callback on expand\n */\n onExpand: PropTypes.func.description('Callback on expand').defaultValue('()=>{}'),\n /**\n * Content\n */\n expandContent: PropTypes.element.description('Content').defaultValue(false),\n /**\n * Read only\n */\n readOnly: PropTypes.bool.description('Read only').defaultValue(false),\n /**\n * Disabled\n */\n disabled: PropTypes.bool.description('Disabled').defaultValue(false),\n};\n\nexport const DSCardV1DetailPropTypesSchema =\n DSCardV1DetailPropTypes as unknown as WeakValidationMap<DSCardV1DetailT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,0BAAuE;AAoDhE,MAAM,eAA6C;AAAA,EACxD,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AACd;AAEO,MAAM,0BAAoE;AAAA,EAC/E,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,OAAO,8BAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA;AAAA;AAAA;AAAA,EAInE,aAAa,8BAAU,OAAO,YAAY,0BAA0B;AAAA;AAAA;AAAA;AAAA,EAIpE,kBAAkB,8BAAU,MAAM,CAAC,WAAW,SAAS,CAAC,EAAE,YAAY,oBAAoB,EAAE,aAAa,SAAS;AAAA;AAAA;AAAA;AAAA,EAIlH,YAAY,8BAAU,OAAO,YAAY,sDAAsD;AAAA;AAAA;AAAA;AAAA,EAI/F,kBAAkB,8BAAU,OAAO,YAAY,sDAAsD;AAAA;AAAA;AAAA;AAAA,EAIrG,YAAY,8BAAU,QAAQ,YAAY,oCAAoC;AAAA;AAAA;AAAA;AAAA,EAI9E,YAAY,8BAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,KAAK;AAAA;AAAA;AAAA;AAAA,EAIrG,YAAY,8BAAU,KAAK,YAAY,wCAAwC,EAAE,aAAa,KAAK;AAAA;AAAA;AAAA;AAAA,EAInG,UAAU,8BAAU,KAAK,YAAY,uBAAuB,EAAE,aAAa,QAAQ;AAAA;AAAA;AAAA;AAAA,EAInF,YAAY,8BAAU,KAAK,YAAY,0CAA0C,EAAE,aAAa,KAAK;AAAA;AAAA;AAAA;AAAA,EAIrG,YAAY,8BAAU,KAAK,YAAY,wCAAwC,EAAE,aAAa,KAAK;AAAA;AAAA;AAAA;AAAA,EAInG,UAAU,8BAAU,KAAK,YAAY,oBAAoB,EAAE,aAAa,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIhF,eAAe,8BAAU,QAAQ,YAAY,SAAS,EAAE,aAAa,KAAK;AAAA;AAAA;AAAA;AAAA,EAI1E,UAAU,8BAAU,KAAK,YAAY,WAAW,EAAE,aAAa,KAAK;AAAA;AAAA;AAAA;AAAA,EAIpE,UAAU,8BAAU,KAAK,YAAY,UAAU,EAAE,aAAa,KAAK;AACrE;AAEO,MAAM,gCACX;",
6
+ "names": []
7
+ }