@elliemae/ds-card 3.12.0-rc.2 → 3.12.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DSCard.js +1 -8
- package/dist/cjs/DSCard.js.map +1 -1
- package/dist/cjs/DSCardBody.js +1 -5
- package/dist/cjs/DSCardBody.js.map +1 -1
- package/dist/cjs/DSCardHeader.js +4 -15
- package/dist/cjs/DSCardHeader.js.map +1 -1
- package/dist/cjs/detail/DetailCard.js +43 -99
- package/dist/cjs/detail/DetailCard.js.map +1 -1
- package/dist/cjs/v2/ActionAddon.js +4 -11
- package/dist/cjs/v2/ActionAddon.js.map +1 -1
- package/dist/cjs/v2/Card.js +31 -50
- package/dist/cjs/v2/Card.js.map +1 -1
- package/dist/cjs/v2/Group.js +7 -16
- package/dist/cjs/v2/Group.js.map +1 -1
- package/dist/esm/DSCard.js +1 -8
- package/dist/esm/DSCard.js.map +1 -1
- package/dist/esm/DSCardBody.js +1 -5
- package/dist/esm/DSCardBody.js.map +1 -1
- package/dist/esm/DSCardHeader.js +4 -15
- package/dist/esm/DSCardHeader.js.map +1 -1
- package/dist/esm/detail/DetailCard.js +43 -99
- package/dist/esm/detail/DetailCard.js.map +1 -1
- package/dist/esm/v2/ActionAddon.js +4 -11
- package/dist/esm/v2/ActionAddon.js.map +1 -1
- package/dist/esm/v2/Card.js +31 -50
- package/dist/esm/v2/Card.js.map +1 -1
- package/dist/esm/v2/Group.js +7 -16
- package/dist/esm/v2/Group.js.map +1 -1
- package/package.json +11 -11
package/dist/cjs/DSCard.js
CHANGED
|
@@ -37,14 +37,7 @@ var import_DSCardBody = __toESM(require("./DSCardBody"));
|
|
|
37
37
|
var import_DSCardHeader = __toESM(require("./DSCardHeader"));
|
|
38
38
|
const DSCard = ({ innerRef = void 0, children = null, containerProps = {}, ...otherProps }) => {
|
|
39
39
|
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("card");
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
41
|
-
"data-testid": "card",
|
|
42
|
-
...containerProps,
|
|
43
|
-
ref: innerRef,
|
|
44
|
-
className: cssClassName,
|
|
45
|
-
...otherProps,
|
|
46
|
-
children
|
|
47
|
-
});
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-testid": "card", ...containerProps, ref: innerRef, className: cssClassName, ...otherProps, children });
|
|
48
41
|
};
|
|
49
42
|
const cardProps = {
|
|
50
43
|
containerProps: import_ds_utilities.PropTypes.object.description("inject props to component wrapper"),
|
package/dist/cjs/DSCard.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSCard.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody';\nimport DSCardHeader from './DSCardHeader';\n\nconst DSCard = ({ innerRef = undefined, children = null, containerProps = {}, ...otherProps }) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div data-testid=\"card\" {...containerProps} ref={innerRef} className={cssClassName} {...otherProps}>\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description('inject props to component wrapper'),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nDSCard.displayName = 'DSCard';\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n", "import * as React from 'react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
|
@@ -32,11 +32,7 @@ module.exports = __toCommonJS(DSCardBody_exports);
|
|
|
32
32
|
var React = __toESM(require("react"));
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
34
|
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
35
|
-
const DSCardBody = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
36
|
-
className: "em-ds-card-body",
|
|
37
|
-
"data-testid": "card-body",
|
|
38
|
-
children
|
|
39
|
-
});
|
|
35
|
+
const DSCardBody = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "em-ds-card-body", "data-testid": "card-body", children });
|
|
40
36
|
const bodyProps = {
|
|
41
37
|
children: import_ds_utilities.PropTypes.element.description("children")
|
|
42
38
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSCardBody.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\n\nconst DSCardBody = ({ children }) => (\n <div className=\"em-ds-card-body\" data-testid=\"card-body\">\n {children}\n </div>\n);\n\nconst bodyProps = {\n /** children */\n children: PropTypes.element.description('children'),\n};\n\nDSCardBody.propTypes = bodyProps;\nDSCardBody.displayName = 'DSCardBody';\nconst DSCardBodyWithSchema = describe(DSCardBody);\nDSCardBodyWithSchema.propTypes = bodyProps;\n\nexport { DSCardBody, DSCardBodyWithSchema };\nexport default DSCardBody;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIrB;AAHF,0BAAoC;AAEpC,MAAM,aAAa,CAAC,EAAE,SAAS,MAC7B,4CAAC
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIrB;AAHF,0BAAoC;AAEpC,MAAM,aAAa,CAAC,EAAE,SAAS,MAC7B,4CAAC,SAAI,WAAU,mBAAkB,eAAY,aAC1C,UACH;AAGF,MAAM,YAAY;AAAA,EAEhB,UAAU,8BAAU,QAAQ,YAAY,UAAU;AACpD;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,2BAAuB,8BAAS,UAAU;AAChD,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/DSCardHeader.js
CHANGED
|
@@ -35,21 +35,10 @@ var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
|
35
35
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
36
36
|
const DSCardHeader = ({ title, action }) => {
|
|
37
37
|
const { cssClassName, classNameElement } = (0, import_ds_classnames.convertPropToCssClassName)("card-header");
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
39
|
-
className:
|
|
40
|
-
"data-testid": "
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
43
|
-
className: classNameElement("heading"),
|
|
44
|
-
children: title
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
47
|
-
className: classNameElement("pull-right"),
|
|
48
|
-
"data-testid": "ds-card_header-action",
|
|
49
|
-
children: action
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
});
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: cssClassName, "data-testid": "card-header", children: [
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: classNameElement("heading"), children: title }),
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: classNameElement("pull-right"), "data-testid": "ds-card_header-action", children: action })
|
|
41
|
+
] });
|
|
53
42
|
};
|
|
54
43
|
const cardHeader = {
|
|
55
44
|
title: import_ds_utilities.PropTypes.string.description("card header title"),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSCardHeader.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst DSCardHeader = ({ title, action }) => {\n const { cssClassName, classNameElement } = convertPropToCssClassName('card-header');\n return (\n <div className={cssClassName} data-testid=\"card-header\">\n <span className={classNameElement('heading')}>{title}</span>\n <div className={classNameElement('pull-right')} data-testid=\"ds-card_header-action\">\n {action}\n </div>\n </div>\n );\n};\n\nconst cardHeader = {\n /** card header title */\n title: PropTypes.string.description('card header title'),\n /** action */\n action: PropTypes.node.description('action'),\n};\n\nDSCardHeader.propTypes = cardHeader;\nDSCardHeader.displayName = 'DSCardHeader';\nconst DSCardHeaderWithSchema = describe(DSCardHeader);\nDSCardHeaderWithSchema.propTypes = cardHeader;\n\nexport { DSCardHeader, DSCardHeaderWithSchema };\nexport default DSCardHeader;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADOnB;AANJ,0BAAoC;AACpC,2BAA0C;AAE1C,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO,MAAM;AAC1C,QAAM,EAAE,cAAc,iBAAiB,QAAI,gDAA0B,aAAa;AAClF,SACE,6CAAC
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADOnB;AANJ,0BAAoC;AACpC,2BAA0C;AAE1C,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO,MAAM;AAC1C,QAAM,EAAE,cAAc,iBAAiB,QAAI,gDAA0B,aAAa;AAClF,SACE,6CAAC,SAAI,WAAW,cAAc,eAAY,eACxC;AAAA,gDAAC,UAAK,WAAW,iBAAiB,SAAS,GAAI,iBAAM;AAAA,IACrD,4CAAC,SAAI,WAAW,iBAAiB,YAAY,GAAG,eAAY,yBACzD,kBACH;AAAA,KACF;AAEJ;AAEA,MAAM,aAAa;AAAA,EAEjB,OAAO,8BAAU,OAAO,YAAY,mBAAmB;AAAA,EAEvD,QAAQ,8BAAU,KAAK,YAAY,QAAQ;AAC7C;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,6BAAyB,8BAAS,YAAY;AACpD,uBAAuB,YAAY;AAGnC,IAAO,uBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -67,105 +67,49 @@ const DetailCard = ({
|
|
|
67
67
|
topWrapperCols.unshift("20px");
|
|
68
68
|
if (selectable)
|
|
69
69
|
topWrapperCols.unshift(theme.space.s);
|
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Title, {
|
|
115
|
-
children: title
|
|
116
|
-
}),
|
|
117
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Description, {
|
|
118
|
-
descriptionColor,
|
|
119
|
-
children: description
|
|
120
|
-
})
|
|
121
|
-
]
|
|
122
|
-
}),
|
|
123
|
-
hasRightPosition && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
|
|
124
|
-
cols: (0, import_lodash.compact)([hasRightPosition && "auto", rightAddon && "auto"]),
|
|
125
|
-
children: [
|
|
126
|
-
hasRightLegend && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
|
|
127
|
-
pr: "24px",
|
|
128
|
-
rows: ["auto", "auto", 1],
|
|
129
|
-
children: [
|
|
130
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightDescription, {
|
|
131
|
-
justifyContent: "flex-end",
|
|
132
|
-
children: rightDescription
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightValue, {
|
|
135
|
-
justifyContent: "flex-end",
|
|
136
|
-
children: rightValue
|
|
137
|
-
}),
|
|
138
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {})
|
|
139
|
-
]
|
|
140
|
-
}),
|
|
141
|
-
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightAddon, {
|
|
142
|
-
cols: ["auto", "auto"],
|
|
143
|
-
gutter: "2px",
|
|
144
|
-
children: rightAddon
|
|
145
|
-
})
|
|
146
|
-
]
|
|
147
|
-
})
|
|
148
|
-
]
|
|
149
|
-
}),
|
|
150
|
-
expandContent && isExpanded && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
|
|
151
|
-
ml: selectable && "s",
|
|
152
|
-
mr: rightAddon && "xs",
|
|
153
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_separator.default, {
|
|
155
|
-
dashed: true,
|
|
156
|
-
position: "initial",
|
|
157
|
-
margin: "none"
|
|
158
|
-
}),
|
|
159
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {
|
|
160
|
-
pt: "xxs",
|
|
161
|
-
"data-testid": "detail-card-expanded-content",
|
|
162
|
-
children: expandContent
|
|
163
|
-
})
|
|
164
|
-
]
|
|
165
|
-
})
|
|
166
|
-
]
|
|
167
|
-
})
|
|
168
|
-
});
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Container, { disabled: disabled || readOnly, active: selectable && isSelected, "data-testid": "card-detail-container", children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { cols: topWrapperCols, alignItems: !description ? "center" : void 0, children: [
|
|
72
|
+
selectable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { pt: description && "9px", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
73
|
+
import_ds_form.DSCheckbox,
|
|
74
|
+
{
|
|
75
|
+
checked: isSelected,
|
|
76
|
+
onChange: onSelect,
|
|
77
|
+
readOnly,
|
|
78
|
+
disabled,
|
|
79
|
+
"data-testid": "card-checkbox"
|
|
80
|
+
}
|
|
81
|
+
) }),
|
|
82
|
+
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)(
|
|
83
|
+
import_ds_button.default,
|
|
84
|
+
{
|
|
85
|
+
size: "s",
|
|
86
|
+
buttonType: "text",
|
|
87
|
+
containerProps: {
|
|
88
|
+
"data-testid": "expand-button"
|
|
89
|
+
},
|
|
90
|
+
onClick: onExpand,
|
|
91
|
+
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" }),
|
|
92
|
+
disabled
|
|
93
|
+
}
|
|
94
|
+
) }),
|
|
95
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { pr: "24px", children: [
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Title, { children: title }),
|
|
97
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Description, { descriptionColor, children: description })
|
|
98
|
+
] }),
|
|
99
|
+
hasRightPosition && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { cols: (0, import_lodash.compact)([hasRightPosition && "auto", rightAddon && "auto"]), children: [
|
|
100
|
+
hasRightLegend && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { pr: "24px", rows: ["auto", "auto", 1], children: [
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightDescription, { justifyContent: "flex-end", children: rightDescription }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightValue, { justifyContent: "flex-end", children: rightValue }),
|
|
103
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {})
|
|
104
|
+
] }),
|
|
105
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.RightAddon, { cols: ["auto", "auto"], gutter: "2px", children: rightAddon })
|
|
106
|
+
] })
|
|
107
|
+
] }),
|
|
108
|
+
expandContent && isExpanded && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { ml: selectable && "s", mr: rightAddon && "xs", children: [
|
|
109
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_separator.default, { dashed: true, position: "initial", margin: "none" }),
|
|
110
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { pt: "xxs", "data-testid": "detail-card-expanded-content", children: expandContent })
|
|
111
|
+
] })
|
|
112
|
+
] }) });
|
|
169
113
|
};
|
|
170
114
|
const detailProps = {
|
|
171
115
|
title: import_ds_utilities.PropTypes.string.isRequired.description("Title of the card."),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/detail/DetailCard.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable max-lines */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable complexity */\nimport React from 'react';\nimport { compact, noop } from 'lodash';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';\nimport { useTheme } from '@elliemae/ds-system';\nimport DSButton from '@elliemae/ds-button';\nimport DSSeparator from '@elliemae/ds-separator';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSCheckbox } from '@elliemae/ds-form';\nimport { Container, Title, Description, RightAddon, RightDescription, RightValue } from './styled';\n\nconst DetailCard = ({\n title,\n description,\n descriptionColor = 'neutral',\n rightValue,\n rightDescription,\n rightAddon,\n // select props\n selectable = false,\n isSelected = false,\n onSelect = noop,\n // expand props\n expandable = false,\n isExpanded = false,\n onExpand = noop,\n expandContent,\n // state props\n readOnly = false,\n disabled = false,\n}) => {\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 disabled={disabled || readOnly} active={selectable && isSelected} data-testid=\"card-detail-container\">\n <Grid cols={topWrapperCols} alignItems={!description ? 'center' : undefined}>\n {selectable && (\n <Grid pt={description && '9px'}>\n <DSCheckbox\n checked={isSelected}\n onChange={onSelect}\n readOnly={readOnly}\n disabled={disabled}\n data-testid=\"card-checkbox\"\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\nconst detailProps = {\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.'),\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'),\n /**\n * Whether if the card is selected or not\n */\n isSelected: PropTypes.bool.description('Whether if the card is selected or not'),\n /**\n * Callback on selection\n */\n onSelect: PropTypes.func.description('Callback on selection'),\n /**\n * Whether if the card is expandable or not\n */\n expandable: PropTypes.bool.description('Whether if the card is expandable or not'),\n /**\n * Whether if the card is expanded or not\n */\n isExpanded: PropTypes.bool.description('Whether if the card is expanded or not'),\n /**\n * Callback on expand\n */\n onExpand: PropTypes.func.description('Callback on expand'),\n /**\n * Content\n */\n expandContent: PropTypes.element.description('Content'),\n /**\n * Read only\n */\n readOnly: PropTypes.bool.description('Read only'),\n /**\n * Disabled\n */\n disabled: PropTypes.bool.description('Disabled'),\n};\n\nDetailCard.propTypes = detailProps;\nDetailCard.displayName = 'DetailCard';\nconst DSCardDetailWithSchema = describe(DetailCard);\nDSCardDetailWithSchema.propTypes = detailProps;\n\nexport { DetailCard, DSCardDetailWithSchema };\nexport default DetailCard;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD0CnB;AAtCJ,oBAA8B;AAC9B,0BAAoC;AACpC,sBAA8C;AAC9C,uBAAyB;AACzB,uBAAqB;AACrB,0BAAwB;AACxB,qBAAqB;AACrB,qBAA2B;AAC3B,oBAAwF;AAExF,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA,mBAAmB;AAAA,EACnB;AAAA,EACA;AA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cAAc,MAC7C;AAAA,kDAAC,oBAAAC,SAAA,EAAY,QAAM,MAAC,UAAS,WAAU,QAAO,QAAO;AAAA,MACrD,4CAAC,uBAAK,IAAG,OAAM,eAAY,gCACxB,yBACH;AAAA,OACF;AAAA,KAEJ,GACF;AAEJ;AAEA,MAAM,cAAc;AAAA,EAIlB,OAAO,8BAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA,EAInE,aAAa,8BAAU,OAAO,YAAY,0BAA0B;AAAA,EAIpE,kBAAkB,8BAAU,MAAM,CAAC,WAAW,SAAS,CAAC,EAAE,YAAY,oBAAoB;AAAA,EAI1F,YAAY,8BAAU,OAAO,YAAY,sDAAsD;AAAA,EAI/F,kBAAkB,8BAAU,OAAO,YAAY,sDAAsD;AAAA,EAIrG,YAAY,8BAAU,QAAQ,YAAY,oCAAoC;AAAA,EAI9E,YAAY,8BAAU,KAAK,YAAY,0CAA0C;AAAA,EAIjF,YAAY,8BAAU,KAAK,YAAY,wCAAwC;AAAA,EAI/E,UAAU,8BAAU,KAAK,YAAY,uBAAuB;AAAA,EAI5D,YAAY,8BAAU,KAAK,YAAY,0CAA0C;AAAA,EAIjF,YAAY,8BAAU,KAAK,YAAY,wCAAwC;AAAA,EAI/E,UAAU,8BAAU,KAAK,YAAY,oBAAoB;AAAA,EAIzD,eAAe,8BAAU,QAAQ,YAAY,SAAS;AAAA,EAItD,UAAU,8BAAU,KAAK,YAAY,WAAW;AAAA,EAIhD,UAAU,8BAAU,KAAK,YAAY,UAAU;AACjD;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,6BAAyB,8BAAS,UAAU;AAClD,uBAAuB,YAAY;AAGnC,IAAO,qBAAQ;",
|
|
6
6
|
"names": ["DSButton", "DSSeparator"]
|
|
7
7
|
}
|
|
@@ -45,17 +45,10 @@ const Addon = (0, import_ds_system.styled)(import_ds_button.DSButtonV2)`
|
|
|
45
45
|
color: ${(props) => props.theme.colors.brand["700"]};
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
`;
|
|
48
|
-
const ActionAddon = ({ innerRef, label, onClick, icon }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Addon, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
children: [
|
|
53
|
-
label,
|
|
54
|
-
icon || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronSmallDown, {
|
|
55
|
-
color: ["brand-primary", 700]
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
});
|
|
48
|
+
const ActionAddon = ({ innerRef, label, onClick, icon }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Addon, { innerRef, onClick, buttonType: "icon", children: [
|
|
49
|
+
label,
|
|
50
|
+
icon || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronSmallDown, { color: ["brand-primary", 700] })
|
|
51
|
+
] });
|
|
59
52
|
const actionProps = {
|
|
60
53
|
label: import_ds_utilities.PropTypes.string.description("Addon label"),
|
|
61
54
|
onClick: import_ds_utilities.PropTypes.func.description("On click callback"),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/v2/ActionAddon.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport { DSButtonV2 } from '@elliemae/ds-button';\n\nconst Addon = styled(DSButtonV2)`\n background-color: transparent;\n padding: 4px;\n height: 100%;\n border: none;\n font-size: 13px;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n color: ${(props) => props.theme.colors.brand['700']};\n cursor: pointer;\n`;\n\nconst ActionAddon = ({ innerRef, label, onClick, icon }) => (\n <Addon innerRef={innerRef} onClick={onClick} buttonType=\"icon\">\n {label}\n {icon || <ChevronSmallDown color={['brand-primary', 700]} />}\n </Addon>\n);\n\nconst actionProps = {\n /**\n * Addon label\n */\n label: PropTypes.string.description('Addon label'),\n /**\n * On click callback\n */\n onClick: PropTypes.func.description('On click callback'),\n /**\n * Icon to display after the label\n */\n icon: PropTypes.element.description('Icon to display after the label'),\n innerRef: PropTypes.func.description('Ref to the action button'),\n};\n\nActionAddon.propTypes = actionProps;\nActionAddon.displayName = 'ActionAddon';\nconst DSCardActionAddonWithSchema = describe(ActionAddon);\nDSCardActionAddonWithSchema.propTypes = actionProps;\n\nexport { ActionAddon, DSCardActionAddonWithSchema };\nexport default ActionAddon;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBrB;AAjBF,0BAAoC;AACpC,uBAAuB;AACvB,sBAAiC;AACjC,uBAA2B;AAE3B,MAAM,YAAQ,yBAAO,2BAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAMd,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAI/C,MAAM,cAAc,CAAC,EAAE,UAAU,OAAO,SAAS,KAAK,MACpD,6CAAC
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBrB;AAjBF,0BAAoC;AACpC,uBAAuB;AACvB,sBAAiC;AACjC,uBAA2B;AAE3B,MAAM,YAAQ,yBAAO,2BAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAMd,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAI/C,MAAM,cAAc,CAAC,EAAE,UAAU,OAAO,SAAS,KAAK,MACpD,6CAAC,SAAM,UAAoB,SAAkB,YAAW,QACrD;AAAA;AAAA,EACA,QAAQ,4CAAC,oCAAiB,OAAO,CAAC,iBAAiB,GAAG,GAAG;AAAA,GAC5D;AAGF,MAAM,cAAc;AAAA,EAIlB,OAAO,8BAAU,OAAO,YAAY,aAAa;AAAA,EAIjD,SAAS,8BAAU,KAAK,YAAY,mBAAmB;AAAA,EAIvD,MAAM,8BAAU,QAAQ,YAAY,iCAAiC;AAAA,EACrE,UAAU,8BAAU,KAAK,YAAY,0BAA0B;AACjE;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,kCAA8B,8BAAS,WAAW;AACxD,4BAA4B,YAAY;AAGxC,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/v2/Card.js
CHANGED
|
@@ -46,58 +46,39 @@ const CustomCard = ({
|
|
|
46
46
|
leftAddon,
|
|
47
47
|
rightAddon,
|
|
48
48
|
hasBorder = false
|
|
49
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.CardContainer, { hasBorder, cols: getCol(rightAddon), "data-testid": "em-ds-card", children: [
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.LeftSection, { children: [
|
|
51
|
+
leftAddon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.LeftAddon, { children: leftAddon }),
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
53
|
+
import_components.MainSection,
|
|
54
|
+
{
|
|
55
|
+
style: {
|
|
56
|
+
maxWidth: leftAddon ? "calc(100% - 40px)" : "100%"
|
|
57
|
+
},
|
|
56
58
|
children: [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
fontWeight: "regular",
|
|
69
|
-
color: "neutral.800",
|
|
70
|
-
text: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.default, {
|
|
71
|
-
value: title
|
|
72
|
-
})
|
|
73
|
-
}),
|
|
74
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Description, {
|
|
75
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.default, {
|
|
76
|
-
value: description
|
|
77
|
-
})
|
|
78
|
-
})
|
|
79
|
-
]
|
|
80
|
-
})
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
|
+
import_ds_header.DSHeader,
|
|
61
|
+
{
|
|
62
|
+
fontSize: "16px",
|
|
63
|
+
"data-testid": "em-ds-card-header",
|
|
64
|
+
fontWeight: "regular",
|
|
65
|
+
color: "neutral.800",
|
|
66
|
+
text: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.default, { value: title })
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Description, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.default, { value: description }) })
|
|
81
70
|
]
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
})
|
|
94
|
-
]
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
})
|
|
100
|
-
});
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] }),
|
|
74
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.RightAddonSection, { children: [
|
|
75
|
+
rightAddon[0] && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.RightAddon, { children: rightAddon[0] }),
|
|
76
|
+
rightAddon[1] && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
77
|
+
rightAddon.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Separator, {}),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.RightAddon, { children: rightAddon[1] })
|
|
79
|
+
] })
|
|
80
|
+
] })
|
|
81
|
+
] }) });
|
|
101
82
|
const cardProps = {
|
|
102
83
|
title: import_ds_utilities.PropTypes.string.isRequired.description("Title of the card. requiered"),
|
|
103
84
|
description: import_ds_utilities.PropTypes.string.description("Description of the card. not requiered"),
|
package/dist/cjs/v2/Card.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/v2/Card.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { DSHeader } from '@elliemae/ds-header';\nimport DSTruncatedTooltipText, { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n CardContainer,\n LeftSection,\n LeftAddon,\n RightAddonSection,\n RightAddon,\n Separator,\n MainSection,\n Description,\n} from './components';\n\nconst getCol = (rightAddon) => {\n if (!rightAddon) return [1];\n return [1, 'auto'];\n};\n\nconst CustomCard = ({\n title,\n description,\n leftAddon,\n rightAddon, // array. max 2 elements\n hasBorder = false,\n}) => (\n <TooltipTextProvider>\n <CardContainer hasBorder={hasBorder} cols={getCol(rightAddon)} data-testid=\"em-ds-card\">\n <LeftSection>\n {leftAddon && <LeftAddon>{leftAddon}</LeftAddon>}\n <MainSection\n style={{\n maxWidth: leftAddon ? 'calc(100% - 40px)' : '100%',\n }}\n >\n <DSHeader\n fontSize=\"16px\"\n data-testid=\"em-ds-card-header\"\n fontWeight=\"regular\"\n color=\"neutral.800\"\n text={<DSTruncatedTooltipText value={title} />}\n />\n {description && (\n <Description>\n <DSTruncatedTooltipText value={description} />\n </Description>\n )}\n </MainSection>\n </LeftSection>\n {rightAddon && (\n <RightAddonSection>\n {rightAddon[0] && <RightAddon>{rightAddon[0]}</RightAddon>}\n {rightAddon[1] && (\n <>\n {rightAddon.length > 1 && <Separator />}\n <RightAddon>{rightAddon[1]}</RightAddon>\n </>\n )}\n </RightAddonSection>\n )}\n </CardContainer>\n </TooltipTextProvider>\n);\n\nconst cardProps = {\n /**\n * Title of the card. requiered\n */\n title: PropTypes.string.isRequired.description('Title of the card. requiered'),\n /**\n * Description of the card. not requiered\n */\n description: PropTypes.string.description('Description of the card. not requiered'),\n /**\n * Left Addon\n */\n leftAddon: PropTypes.element.description('Left Addon'),\n /**\n * Right addon array, max elements: 2\n */\n rightAddon: PropTypes.array.description('Right addon array, max elements: 2'),\n /**\n * Wheter if the card has border or not\n */\n hasBorder: PropTypes.bool.description('Wheter if the card has border or not'),\n};\n\nCustomCard.propTypes = cardProps;\nCustomCard.displayName = 'CustomCard';\nconst DSCardCustomWithSchema = describe(CustomCard);\nDSCardCustomWithSchema.propTypes = cardProps;\n\nexport { CustomCard, DSCardCustomWithSchema };\nexport default CustomCard;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD8BD;AA7BtB,0BAAoC;AACpC,uBAAyB;AACzB,uCAA4D;AAC5D,wBASO;AAEP,MAAM,SAAS,CAAC,eAAe;AAC7B,MAAI,CAAC;AAAY,WAAO,CAAC,CAAC;AAC1B,SA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,GAEJ,GACF;AAGF,MAAM,YAAY;AAAA,EAIhB,OAAO,8BAAU,OAAO,WAAW,YAAY,8BAA8B;AAAA,EAI7E,aAAa,8BAAU,OAAO,YAAY,wCAAwC;AAAA,EAIlF,WAAW,8BAAU,QAAQ,YAAY,YAAY;AAAA,EAIrD,YAAY,8BAAU,MAAM,YAAY,oCAAoC;AAAA,EAI5E,WAAW,8BAAU,KAAK,YAAY,sCAAsC;AAC9E;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,6BAAyB,8BAAS,UAAU;AAClD,uBAAuB,YAAY;AAGnC,IAAO,eAAQ;",
|
|
6
6
|
"names": ["DSTruncatedTooltipText"]
|
|
7
7
|
}
|
package/dist/cjs/v2/Group.js
CHANGED
|
@@ -62,22 +62,13 @@ const Items = import_ds_system.styled.div`
|
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
`;
|
|
65
|
-
const CardGroup = ({ children, title, action }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Group, {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
action
|
|
74
|
-
]
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Items, {
|
|
77
|
-
children
|
|
78
|
-
})
|
|
79
|
-
]
|
|
80
|
-
});
|
|
65
|
+
const CardGroup = ({ children, title, action }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Group, { withTopBorder: !title, children: [
|
|
66
|
+
!!title && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TitleWrapper, { children: [
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupTitle, { children: title }),
|
|
68
|
+
action
|
|
69
|
+
] }),
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Items, { children })
|
|
71
|
+
] });
|
|
81
72
|
const cardgroupProps = {
|
|
82
73
|
children: import_ds_utilities.PropTypes.element.isRequired.description("Card items"),
|
|
83
74
|
title: import_ds_utilities.PropTypes.string.isRequired.description("Title of the group"),
|
package/dist/cjs/v2/Group.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/v2/Group.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { color, border, truncate, styled } from '@elliemae/ds-system';\nimport Card from './Card';\n\nconst Group = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 100%;\n ${Card} {\n border-top: none;\n }\n ${({ theme, withTopBorder }) => (withTopBorder ? `border-top: ${theme.colors.neutral['100']}` : '')}\n`;\n\nconst GroupTitle = styled.span`\n ${truncate()}\n`;\n\nconst TitleWrapper = styled.div`\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`\n display: flex;\n flex-direction: column;\n`;\n\nconst CardGroup = ({ children, title, action }) => (\n <Group withTopBorder={!title}>\n {!!title && (\n <TitleWrapper>\n <GroupTitle>{title}</GroupTitle>\n {action}\n </TitleWrapper>\n )}\n <Items>{children}</Items>\n </Group>\n);\n\nconst cardgroupProps = {\n /**\n * Card items\n */\n children: PropTypes.element.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\nCardGroup.propTypes = cardgroupProps;\nCardGroup.displayName = 'CardGroup';\nconst DSCardGroupWithSchema = describe(CardGroup);\nDSCardGroupWithSchema.propTypes = cardgroupProps;\n\nexport { CardGroup, DSCardGroupWithSchema };\nexport default CardGroup;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwCjB;AAvCN,0BAAoC;AACpC,uBAAgD;AAChD,kBAAiB;AAEjB,MAAM,QAAQ,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKjB,YAAAA;AAAA;AAAA;AAAA,IAGA,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,WAAW;AAAA;AAGlG,MAAM,aAAa,wBAAO;AAAA,QACtB,2BAAS;AAAA;AAGb,MAAM,eAAe,wBAAO;AAAA;AAAA;AAAA,eAGb,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,QAExC,wBAAM,WAAW,KAAK;AAAA,iBACT,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,sBAC9B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,gBAC5C,CAAC,cAAU,yBAAO,MAAM,MAAM,OAAO,QAAQ,MAAM;AAAA;AAAA;AAInE,MAAM,QAAQ,wBAAO;AAAA;AAAA;AAAA;AAKrB,MAAM,YAAY,CAAC,EAAE,UAAU,OAAO,OAAO,MAC3C,6CAAC
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwCjB;AAvCN,0BAAoC;AACpC,uBAAgD;AAChD,kBAAiB;AAEjB,MAAM,QAAQ,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKjB,YAAAA;AAAA;AAAA;AAAA,IAGA,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,WAAW;AAAA;AAGlG,MAAM,aAAa,wBAAO;AAAA,QACtB,2BAAS;AAAA;AAGb,MAAM,eAAe,wBAAO;AAAA;AAAA;AAAA,eAGb,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,QAExC,wBAAM,WAAW,KAAK;AAAA,iBACT,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,sBAC9B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,gBAC5C,CAAC,cAAU,yBAAO,MAAM,MAAM,OAAO,QAAQ,MAAM;AAAA;AAAA;AAInE,MAAM,QAAQ,wBAAO;AAAA;AAAA;AAAA;AAKrB,MAAM,YAAY,CAAC,EAAE,UAAU,OAAO,OAAO,MAC3C,6CAAC,SAAM,eAAe,CAAC,OACpB;AAAA,GAAC,CAAC,SACD,6CAAC,gBACC;AAAA,gDAAC,cAAY,iBAAM;AAAA,IAClB;AAAA,KACH;AAAA,EAEF,4CAAC,SAAO,UAAS;AAAA,GACnB;AAGF,MAAM,iBAAiB;AAAA,EAIrB,UAAU,8BAAU,QAAQ,WAAW,YAAY,YAAY;AAAA,EAI/D,OAAO,8BAAU,OAAO,WAAW,YAAY,oBAAoB;AAAA,EAInE,QAAQ,8BAAU,QAAQ,YAAY,oBAAoB;AAC5D;AAEA,UAAU,YAAY;AACtB,UAAU,cAAc;AACxB,MAAM,4BAAwB,8BAAS,SAAS;AAChD,sBAAsB,YAAY;AAGlC,IAAO,gBAAQ;",
|
|
6
6
|
"names": ["Card"]
|
|
7
7
|
}
|
package/dist/esm/DSCard.js
CHANGED
|
@@ -6,14 +6,7 @@ import DSCardBody from "./DSCardBody";
|
|
|
6
6
|
import DSCardHeader from "./DSCardHeader";
|
|
7
7
|
const DSCard = ({ innerRef = void 0, children = null, containerProps = {}, ...otherProps }) => {
|
|
8
8
|
const { cssClassName } = convertPropToCssClassName("card");
|
|
9
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10
|
-
"data-testid": "card",
|
|
11
|
-
...containerProps,
|
|
12
|
-
ref: innerRef,
|
|
13
|
-
className: cssClassName,
|
|
14
|
-
...otherProps,
|
|
15
|
-
children
|
|
16
|
-
});
|
|
9
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": "card", ...containerProps, ref: innerRef, className: cssClassName, ...otherProps, children });
|
|
17
10
|
};
|
|
18
11
|
const cardProps = {
|
|
19
12
|
containerProps: PropTypes.object.description("inject props to component wrapper"),
|
package/dist/esm/DSCard.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCard.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody';\nimport DSCardHeader from './DSCardHeader';\n\nconst DSCard = ({ innerRef = undefined, children = null, containerProps = {}, ...otherProps }) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div data-testid=\"card\" {...containerProps} ref={innerRef} className={cssClassName} {...otherProps}>\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description('inject props to component wrapper'),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nDSCard.displayName = 'DSCard';\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACUnB;AATJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAC1C,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AAEzB,MAAM,SAAS,CAAC,EAAE,WAAW,QAAW,WAAW,MAAM,iBAAiB,CAAC,MAAM,WAAW,MAAM;AAChG,QAAM,EAAE,aAAa,IAAI,0BAA0B,MAAM;AAEzD,SACE,oBAAC
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACUnB;AATJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAC1C,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AAEzB,MAAM,SAAS,CAAC,EAAE,WAAW,QAAW,WAAW,MAAM,iBAAiB,CAAC,MAAM,WAAW,MAAM;AAChG,QAAM,EAAE,aAAa,IAAI,0BAA0B,MAAM;AAEzD,SACE,oBAAC,SAAI,eAAY,QAAQ,GAAG,gBAAgB,KAAK,UAAU,WAAW,cAAe,GAAG,YACrF,UACH;AAEJ;AAEA,MAAM,YAAY;AAAA,EAEhB,gBAAgB,UAAU,OAAO,YAAY,mCAAmC;AAAA,EAIhF,UAAU,UAAU,OAAO,YAAY,8BAA8B;AAAA,EAIrE,UAAU,UAAU;AAAA,IAClB,UAAU,MAAM;AAAA,MACd,MAAM,UAAU,MAAM,CAAC,cAAc,UAAU,CAAC;AAAA,IAClD,CAAC;AAAA,EACH,EAAE,YAAY,6BAA6B;AAC7C;AAEA,OAAO,YAAY;AACnB,OAAO,cAAc;AACrB,MAAM,mBAAmB,SAAS,MAAM;AACxC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/DSCardBody.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { PropTypes, describe } from "@elliemae/ds-utilities";
|
|
4
|
-
const DSCardBody = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
5
|
-
className: "em-ds-card-body",
|
|
6
|
-
"data-testid": "card-body",
|
|
7
|
-
children
|
|
8
|
-
});
|
|
4
|
+
const DSCardBody = ({ children }) => /* @__PURE__ */ jsx("div", { className: "em-ds-card-body", "data-testid": "card-body", children });
|
|
9
5
|
const bodyProps = {
|
|
10
6
|
children: PropTypes.element.description("children")
|
|
11
7
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardBody.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\n\nconst DSCardBody = ({ children }) => (\n <div className=\"em-ds-card-body\" data-testid=\"card-body\">\n {children}\n </div>\n);\n\nconst bodyProps = {\n /** children */\n children: PropTypes.element.description('children'),\n};\n\nDSCardBody.propTypes = bodyProps;\nDSCardBody.displayName = 'DSCardBody';\nconst DSCardBodyWithSchema = describe(DSCardBody);\nDSCardBodyWithSchema.propTypes = bodyProps;\n\nexport { DSCardBody, DSCardBodyWithSchema };\nexport default DSCardBody;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACIrB;AAHF,SAAS,WAAW,gBAAgB;AAEpC,MAAM,aAAa,CAAC,EAAE,SAAS,MAC7B,oBAAC
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACIrB;AAHF,SAAS,WAAW,gBAAgB;AAEpC,MAAM,aAAa,CAAC,EAAE,SAAS,MAC7B,oBAAC,SAAI,WAAU,mBAAkB,eAAY,aAC1C,UACH;AAGF,MAAM,YAAY;AAAA,EAEhB,UAAU,UAAU,QAAQ,YAAY,UAAU;AACpD;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAChD,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/DSCardHeader.js
CHANGED
|
@@ -4,21 +4,10 @@ import { PropTypes, describe } from "@elliemae/ds-utilities";
|
|
|
4
4
|
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
5
|
const DSCardHeader = ({ title, action }) => {
|
|
6
6
|
const { cssClassName, classNameElement } = convertPropToCssClassName("card-header");
|
|
7
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
8
|
-
className:
|
|
9
|
-
"data-testid": "
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ jsx("span", {
|
|
12
|
-
className: classNameElement("heading"),
|
|
13
|
-
children: title
|
|
14
|
-
}),
|
|
15
|
-
/* @__PURE__ */ jsx("div", {
|
|
16
|
-
className: classNameElement("pull-right"),
|
|
17
|
-
"data-testid": "ds-card_header-action",
|
|
18
|
-
children: action
|
|
19
|
-
})
|
|
20
|
-
]
|
|
21
|
-
});
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: cssClassName, "data-testid": "card-header", children: [
|
|
8
|
+
/* @__PURE__ */ jsx("span", { className: classNameElement("heading"), children: title }),
|
|
9
|
+
/* @__PURE__ */ jsx("div", { className: classNameElement("pull-right"), "data-testid": "ds-card_header-action", children: action })
|
|
10
|
+
] });
|
|
22
11
|
};
|
|
23
12
|
const cardHeader = {
|
|
24
13
|
title: PropTypes.string.description("card header title"),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardHeader.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\n\nconst DSCardHeader = ({ title, action }) => {\n const { cssClassName, classNameElement } = convertPropToCssClassName('card-header');\n return (\n <div className={cssClassName} data-testid=\"card-header\">\n <span className={classNameElement('heading')}>{title}</span>\n <div className={classNameElement('pull-right')} data-testid=\"ds-card_header-action\">\n {action}\n </div>\n </div>\n );\n};\n\nconst cardHeader = {\n /** card header title */\n title: PropTypes.string.description('card header title'),\n /** action */\n action: PropTypes.node.description('action'),\n};\n\nDSCardHeader.propTypes = cardHeader;\nDSCardHeader.displayName = 'DSCardHeader';\nconst DSCardHeaderWithSchema = describe(DSCardHeader);\nDSCardHeaderWithSchema.propTypes = cardHeader;\n\nexport { DSCardHeader, DSCardHeaderWithSchema };\nexport default DSCardHeader;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACOnB,SACE,KADF;AANJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAE1C,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO,MAAM;AAC1C,QAAM,EAAE,cAAc,iBAAiB,IAAI,0BAA0B,aAAa;AAClF,SACE,qBAAC
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACOnB,SACE,KADF;AANJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,iCAAiC;AAE1C,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO,MAAM;AAC1C,QAAM,EAAE,cAAc,iBAAiB,IAAI,0BAA0B,aAAa;AAClF,SACE,qBAAC,SAAI,WAAW,cAAc,eAAY,eACxC;AAAA,wBAAC,UAAK,WAAW,iBAAiB,SAAS,GAAI,iBAAM;AAAA,IACrD,oBAAC,SAAI,WAAW,iBAAiB,YAAY,GAAG,eAAY,yBACzD,kBACH;AAAA,KACF;AAEJ;AAEA,MAAM,aAAa;AAAA,EAEjB,OAAO,UAAU,OAAO,YAAY,mBAAmB;AAAA,EAEvD,QAAQ,UAAU,KAAK,YAAY,QAAQ;AAC7C;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;AAGnC,IAAO,uBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -36,105 +36,49 @@ const DetailCard = ({
|
|
|
36
36
|
topWrapperCols.unshift("20px");
|
|
37
37
|
if (selectable)
|
|
38
38
|
topWrapperCols.unshift(theme.space.s);
|
|
39
|
-
return /* @__PURE__ */ jsx(Fragment, {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsx(Title, {
|
|
84
|
-
children: title
|
|
85
|
-
}),
|
|
86
|
-
description && /* @__PURE__ */ jsx(Description, {
|
|
87
|
-
descriptionColor,
|
|
88
|
-
children: description
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
}),
|
|
92
|
-
hasRightPosition && /* @__PURE__ */ jsxs(Grid, {
|
|
93
|
-
cols: compact([hasRightPosition && "auto", rightAddon && "auto"]),
|
|
94
|
-
children: [
|
|
95
|
-
hasRightLegend && /* @__PURE__ */ jsxs(Grid, {
|
|
96
|
-
pr: "24px",
|
|
97
|
-
rows: ["auto", "auto", 1],
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ jsx(RightDescription, {
|
|
100
|
-
justifyContent: "flex-end",
|
|
101
|
-
children: rightDescription
|
|
102
|
-
}),
|
|
103
|
-
/* @__PURE__ */ jsx(RightValue, {
|
|
104
|
-
justifyContent: "flex-end",
|
|
105
|
-
children: rightValue
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ jsx(Grid, {})
|
|
108
|
-
]
|
|
109
|
-
}),
|
|
110
|
-
rightAddon && /* @__PURE__ */ jsx(RightAddon, {
|
|
111
|
-
cols: ["auto", "auto"],
|
|
112
|
-
gutter: "2px",
|
|
113
|
-
children: rightAddon
|
|
114
|
-
})
|
|
115
|
-
]
|
|
116
|
-
})
|
|
117
|
-
]
|
|
118
|
-
}),
|
|
119
|
-
expandContent && isExpanded && /* @__PURE__ */ jsxs(Grid, {
|
|
120
|
-
ml: selectable && "s",
|
|
121
|
-
mr: rightAddon && "xs",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ jsx(DSSeparator, {
|
|
124
|
-
dashed: true,
|
|
125
|
-
position: "initial",
|
|
126
|
-
margin: "none"
|
|
127
|
-
}),
|
|
128
|
-
/* @__PURE__ */ jsx(Grid, {
|
|
129
|
-
pt: "xxs",
|
|
130
|
-
"data-testid": "detail-card-expanded-content",
|
|
131
|
-
children: expandContent
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
})
|
|
137
|
-
});
|
|
39
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Container, { disabled: disabled || readOnly, active: selectable && isSelected, "data-testid": "card-detail-container", children: [
|
|
40
|
+
/* @__PURE__ */ jsxs(Grid, { cols: topWrapperCols, alignItems: !description ? "center" : void 0, children: [
|
|
41
|
+
selectable && /* @__PURE__ */ jsx(Grid, { pt: description && "9px", children: /* @__PURE__ */ jsx(
|
|
42
|
+
DSCheckbox,
|
|
43
|
+
{
|
|
44
|
+
checked: isSelected,
|
|
45
|
+
onChange: onSelect,
|
|
46
|
+
readOnly,
|
|
47
|
+
disabled,
|
|
48
|
+
"data-testid": "card-checkbox"
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
expandable && /* @__PURE__ */ jsx(Grid, { height: "16px", pt: description && "xxs", mt: !description && "-5px", children: /* @__PURE__ */ jsx(
|
|
52
|
+
DSButton,
|
|
53
|
+
{
|
|
54
|
+
size: "s",
|
|
55
|
+
buttonType: "text",
|
|
56
|
+
containerProps: {
|
|
57
|
+
"data-testid": "expand-button"
|
|
58
|
+
},
|
|
59
|
+
onClick: onExpand,
|
|
60
|
+
icon: isExpanded ? /* @__PURE__ */ jsx(ArrowheadDown, { color: ["neutral", "500"], size: "s" }) : /* @__PURE__ */ jsx(ArrowheadRight, { color: ["neutral", "500"], size: "s" }),
|
|
61
|
+
disabled
|
|
62
|
+
}
|
|
63
|
+
) }),
|
|
64
|
+
/* @__PURE__ */ jsxs(Grid, { pr: "24px", children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Title, { children: title }),
|
|
66
|
+
description && /* @__PURE__ */ jsx(Description, { descriptionColor, children: description })
|
|
67
|
+
] }),
|
|
68
|
+
hasRightPosition && /* @__PURE__ */ jsxs(Grid, { cols: compact([hasRightPosition && "auto", rightAddon && "auto"]), children: [
|
|
69
|
+
hasRightLegend && /* @__PURE__ */ jsxs(Grid, { pr: "24px", rows: ["auto", "auto", 1], children: [
|
|
70
|
+
/* @__PURE__ */ jsx(RightDescription, { justifyContent: "flex-end", children: rightDescription }),
|
|
71
|
+
/* @__PURE__ */ jsx(RightValue, { justifyContent: "flex-end", children: rightValue }),
|
|
72
|
+
/* @__PURE__ */ jsx(Grid, {})
|
|
73
|
+
] }),
|
|
74
|
+
rightAddon && /* @__PURE__ */ jsx(RightAddon, { cols: ["auto", "auto"], gutter: "2px", children: rightAddon })
|
|
75
|
+
] })
|
|
76
|
+
] }),
|
|
77
|
+
expandContent && isExpanded && /* @__PURE__ */ jsxs(Grid, { ml: selectable && "s", mr: rightAddon && "xs", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(DSSeparator, { dashed: true, position: "initial", margin: "none" }),
|
|
79
|
+
/* @__PURE__ */ jsx(Grid, { pt: "xxs", "data-testid": "detail-card-expanded-content", children: expandContent })
|
|
80
|
+
] })
|
|
81
|
+
] }) });
|
|
138
82
|
};
|
|
139
83
|
const detailProps = {
|
|
140
84
|
title: PropTypes.string.isRequired.description("Title of the card."),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/detail/DetailCard.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable complexity */\nimport React from 'react';\nimport { compact, noop } from 'lodash';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';\nimport { useTheme } from '@elliemae/ds-system';\nimport DSButton from '@elliemae/ds-button';\nimport DSSeparator from '@elliemae/ds-separator';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSCheckbox } from '@elliemae/ds-form';\nimport { Container, Title, Description, RightAddon, RightDescription, RightValue } from './styled';\n\nconst DetailCard = ({\n title,\n description,\n descriptionColor = 'neutral',\n rightValue,\n rightDescription,\n rightAddon,\n // select props\n selectable = false,\n isSelected = false,\n onSelect = noop,\n // expand props\n expandable = false,\n isExpanded = false,\n onExpand = noop,\n expandContent,\n // state props\n readOnly = false,\n disabled = false,\n}) => {\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 disabled={disabled || readOnly} active={selectable && isSelected} data-testid=\"card-detail-container\">\n <Grid cols={topWrapperCols} alignItems={!description ? 'center' : undefined}>\n {selectable && (\n <Grid pt={description && '9px'}>\n <DSCheckbox\n checked={isSelected}\n onChange={onSelect}\n readOnly={readOnly}\n disabled={disabled}\n data-testid=\"card-checkbox\"\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\nconst detailProps = {\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.'),\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'),\n /**\n * Whether if the card is selected or not\n */\n isSelected: PropTypes.bool.description('Whether if the card is selected or not'),\n /**\n * Callback on selection\n */\n onSelect: PropTypes.func.description('Callback on selection'),\n /**\n * Whether if the card is expandable or not\n */\n expandable: PropTypes.bool.description('Whether if the card is expandable or not'),\n /**\n * Whether if the card is expanded or not\n */\n isExpanded: PropTypes.bool.description('Whether if the card is expanded or not'),\n /**\n * Callback on expand\n */\n onExpand: PropTypes.func.description('Callback on expand'),\n /**\n * Content\n */\n expandContent: PropTypes.element.description('Content'),\n /**\n * Read only\n */\n readOnly: PropTypes.bool.description('Read only'),\n /**\n * Disabled\n */\n disabled: PropTypes.bool.description('Disabled'),\n};\n\nDetailCard.propTypes = detailProps;\nDetailCard.displayName = 'DetailCard';\nconst DSCardDetailWithSchema = describe(DetailCard);\nDSCardDetailWithSchema.propTypes = detailProps;\n\nexport { DetailCard, DSCardDetailWithSchema };\nexport default DetailCard;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;AC0CnB,mBAKU,KA6BJ,YAlCN;AAtCJ,SAAS,SAAS,YAAY;AAC9B,SAAS,WAAW,gBAAgB;AACpC,SAAS,eAAe,sBAAsB;AAC9C,SAAS,gBAAgB;AACzB,OAAO,cAAc;AACrB,OAAO,iBAAiB;AACxB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,WAAW,OAAO,aAAa,YAAY,kBAAkB,kBAAkB;AAExF,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA,mBAAmB;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EAEA,aAAa;AAAA,EACb,aAAa;AAAA,EACb,WAAW;AAAA,EAEX,aAAa;AAAA,EACb,aAAa;AAAA,EACb,WAAW;AAAA,EACX;AAAA,EAEA,WAAW;AAAA,EACX,WAAW;AACb,MAAM;AACJ,QAAM,QAAQ,SAAS;AACvB,QAAM,iBAAiB,cAAc;AACrC,QAAM,mBAAmB,kBAAkB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oB;AAAA,EAInE,aAAa,UAAU,OAAO,YAAY,0BAA0B;AAAA,EAIpE,kBAAkB,UAAU,MAAM,CAAC,WAAW,SAAS,CAAC,EAAE,YAAY,oBAAoB;AAAA,EAI1F,YAAY,UAAU,OAAO,YAAY,sDAAsD;AAAA,EAI/F,kBAAkB,UAAU,OAAO,YAAY,sDAAsD;AAAA,EAIrG,YAAY,UAAU,QAAQ,YAAY,oCAAoC;AAAA,EAI9E,YAAY,UAAU,KAAK,YAAY,0CAA0C;AAAA,EAIjF,YAAY,UAAU,KAAK,YAAY,wCAAwC;AAAA,EAI/E,UAAU,UAAU,KAAK,YAAY,uBAAuB;AAAA,EAI5D,YAAY,UAAU,KAAK,YAAY,0CAA0C;AAAA,EAIjF,YAAY,UAAU,KAAK,YAAY,wCAAwC;AAAA,EAI/E,UAAU,UAAU,KAAK,YAAY,oBAAoB;AAAA,EAIzD,eAAe,UAAU,QAAQ,YAAY,SAAS;AAAA,EAItD,UAAU,UAAU,KAAK,YAAY,WAAW;AAAA,EAIhD,UAAU,UAAU,KAAK,YAAY,UAAU;AACjD;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,yBAAyB,SAAS,UAAU;AAClD,uBAAuB,YAAY;AAGnC,IAAO,qBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -14,17 +14,10 @@ const Addon = styled(DSButtonV2)`
|
|
|
14
14
|
color: ${(props) => props.theme.colors.brand["700"]};
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
`;
|
|
17
|
-
const ActionAddon = ({ innerRef, label, onClick, icon }) => /* @__PURE__ */ jsxs(Addon, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children: [
|
|
22
|
-
label,
|
|
23
|
-
icon || /* @__PURE__ */ jsx(ChevronSmallDown, {
|
|
24
|
-
color: ["brand-primary", 700]
|
|
25
|
-
})
|
|
26
|
-
]
|
|
27
|
-
});
|
|
17
|
+
const ActionAddon = ({ innerRef, label, onClick, icon }) => /* @__PURE__ */ jsxs(Addon, { innerRef, onClick, buttonType: "icon", children: [
|
|
18
|
+
label,
|
|
19
|
+
icon || /* @__PURE__ */ jsx(ChevronSmallDown, { color: ["brand-primary", 700] })
|
|
20
|
+
] });
|
|
28
21
|
const actionProps = {
|
|
29
22
|
label: PropTypes.string.description("Addon label"),
|
|
30
23
|
onClick: PropTypes.func.description("On click callback"),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/ActionAddon.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport { DSButtonV2 } from '@elliemae/ds-button';\n\nconst Addon = styled(DSButtonV2)`\n background-color: transparent;\n padding: 4px;\n height: 100%;\n border: none;\n font-size: 13px;\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n color: ${(props) => props.theme.colors.brand['700']};\n cursor: pointer;\n`;\n\nconst ActionAddon = ({ innerRef, label, onClick, icon }) => (\n <Addon innerRef={innerRef} onClick={onClick} buttonType=\"icon\">\n {label}\n {icon || <ChevronSmallDown color={['brand-primary', 700]} />}\n </Addon>\n);\n\nconst actionProps = {\n /**\n * Addon label\n */\n label: PropTypes.string.description('Addon label'),\n /**\n * On click callback\n */\n onClick: PropTypes.func.description('On click callback'),\n /**\n * Icon to display after the label\n */\n icon: PropTypes.element.description('Icon to display after the label'),\n innerRef: PropTypes.func.description('Ref to the action button'),\n};\n\nActionAddon.propTypes = actionProps;\nActionAddon.displayName = 'ActionAddon';\nconst DSCardActionAddonWithSchema = describe(ActionAddon);\nDSCardActionAddonWithSchema.propTypes = actionProps;\n\nexport { ActionAddon, DSCardActionAddonWithSchema };\nexport default ActionAddon;\n"],
|
|
5
|
-
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card.js
CHANGED
|
@@ -24,58 +24,39 @@ const CustomCard = ({
|
|
|
24
24
|
leftAddon,
|
|
25
25
|
rightAddon,
|
|
26
26
|
hasBorder = false
|
|
27
|
-
}) => /* @__PURE__ */ jsx(TooltipTextProvider, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
}) => /* @__PURE__ */ jsx(TooltipTextProvider, { children: /* @__PURE__ */ jsxs(CardContainer, { hasBorder, cols: getCol(rightAddon), "data-testid": "em-ds-card", children: [
|
|
28
|
+
/* @__PURE__ */ jsxs(LeftSection, { children: [
|
|
29
|
+
leftAddon && /* @__PURE__ */ jsx(LeftAddon, { children: leftAddon }),
|
|
30
|
+
/* @__PURE__ */ jsxs(
|
|
31
|
+
MainSection,
|
|
32
|
+
{
|
|
33
|
+
style: {
|
|
34
|
+
maxWidth: leftAddon ? "calc(100% - 40px)" : "100%"
|
|
35
|
+
},
|
|
34
36
|
children: [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
fontWeight: "regular",
|
|
47
|
-
color: "neutral.800",
|
|
48
|
-
text: /* @__PURE__ */ jsx(DSTruncatedTooltipText, {
|
|
49
|
-
value: title
|
|
50
|
-
})
|
|
51
|
-
}),
|
|
52
|
-
description && /* @__PURE__ */ jsx(Description, {
|
|
53
|
-
children: /* @__PURE__ */ jsx(DSTruncatedTooltipText, {
|
|
54
|
-
value: description
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
})
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
DSHeader,
|
|
39
|
+
{
|
|
40
|
+
fontSize: "16px",
|
|
41
|
+
"data-testid": "em-ds-card-header",
|
|
42
|
+
fontWeight: "regular",
|
|
43
|
+
color: "neutral.800",
|
|
44
|
+
text: /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value: title })
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
description && /* @__PURE__ */ jsx(Description, { children: /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value: description }) })
|
|
59
48
|
]
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
})
|
|
72
|
-
]
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
]
|
|
77
|
-
})
|
|
78
|
-
});
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] }),
|
|
52
|
+
rightAddon && /* @__PURE__ */ jsxs(RightAddonSection, { children: [
|
|
53
|
+
rightAddon[0] && /* @__PURE__ */ jsx(RightAddon, { children: rightAddon[0] }),
|
|
54
|
+
rightAddon[1] && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
55
|
+
rightAddon.length > 1 && /* @__PURE__ */ jsx(Separator, {}),
|
|
56
|
+
/* @__PURE__ */ jsx(RightAddon, { children: rightAddon[1] })
|
|
57
|
+
] })
|
|
58
|
+
] })
|
|
59
|
+
] }) });
|
|
79
60
|
const cardProps = {
|
|
80
61
|
title: PropTypes.string.isRequired.description("Title of the card. requiered"),
|
|
81
62
|
description: PropTypes.string.description("Description of the card. not requiered"),
|
package/dist/esm/v2/Card.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/Card.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { DSHeader } from '@elliemae/ds-header';\nimport DSTruncatedTooltipText, { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n CardContainer,\n LeftSection,\n LeftAddon,\n RightAddonSection,\n RightAddon,\n Separator,\n MainSection,\n Description,\n} from './components';\n\nconst getCol = (rightAddon) => {\n if (!rightAddon) return [1];\n return [1, 'auto'];\n};\n\nconst CustomCard = ({\n title,\n description,\n leftAddon,\n rightAddon, // array. max 2 elements\n hasBorder = false,\n}) => (\n <TooltipTextProvider>\n <CardContainer hasBorder={hasBorder} cols={getCol(rightAddon)} data-testid=\"em-ds-card\">\n <LeftSection>\n {leftAddon && <LeftAddon>{leftAddon}</LeftAddon>}\n <MainSection\n style={{\n maxWidth: leftAddon ? 'calc(100% - 40px)' : '100%',\n }}\n >\n <DSHeader\n fontSize=\"16px\"\n data-testid=\"em-ds-card-header\"\n fontWeight=\"regular\"\n color=\"neutral.800\"\n text={<DSTruncatedTooltipText value={title} />}\n />\n {description && (\n <Description>\n <DSTruncatedTooltipText value={description} />\n </Description>\n )}\n </MainSection>\n </LeftSection>\n {rightAddon && (\n <RightAddonSection>\n {rightAddon[0] && <RightAddon>{rightAddon[0]}</RightAddon>}\n {rightAddon[1] && (\n <>\n {rightAddon.length > 1 && <Separator />}\n <RightAddon>{rightAddon[1]}</RightAddon>\n </>\n )}\n </RightAddonSection>\n )}\n </CardContainer>\n </TooltipTextProvider>\n);\n\nconst cardProps = {\n /**\n * Title of the card. requiered\n */\n title: PropTypes.string.isRequired.description('Title of the card. requiered'),\n /**\n * Description of the card. not requiered\n */\n description: PropTypes.string.description('Description of the card. not requiered'),\n /**\n * Left Addon\n */\n leftAddon: PropTypes.element.description('Left Addon'),\n /**\n * Right addon array, max elements: 2\n */\n rightAddon: PropTypes.array.description('Right addon array, max elements: 2'),\n /**\n * Wheter if the card has border or not\n */\n hasBorder: PropTypes.bool.description('Wheter if the card has border or not'),\n};\n\nCustomCard.propTypes = cardProps;\nCustomCard.displayName = 'CustomCard';\nconst DSCardCustomWithSchema = describe(CustomCard);\nDSCardCustomWithSchema.propTypes = cardProps;\n\nexport { CustomCard, DSCardCustomWithSchema };\nexport default CustomCard;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;AC8BD,SAwBV,UAxBU,KACd,YADc;AA7BtB,SAAS,WAAW,gBAAgB;AACpC,SAAS,gBAAgB;AACzB,OAAO,0BAA0B,2BAA2B;AAC5D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,SAAS,CAAC,eAAe;AAC7B,MAAI,CAAC;AAAY,WAAO,CAAC,CAAC;AAC1B,SAAO,CAAC,GAAG,MAAM;AACnB;AAEA,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AACd,MACE,oBAAC
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;AC8BD,SAwBV,UAxBU,KACd,YADc;AA7BtB,SAAS,WAAW,gBAAgB;AACpC,SAAS,gBAAgB;AACzB,OAAO,0BAA0B,2BAA2B;AAC5D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,SAAS,CAAC,eAAe;AAC7B,MAAI,CAAC;AAAY,WAAO,CAAC,CAAC;AAC1B,SAAO,CAAC,GAAG,MAAM;AACnB;AAEA,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AACd,MACE,oBAAC,uBACC,+BAAC,iBAAc,WAAsB,MAAM,OAAO,UAAU,GAAG,eAAY,cACzE;AAAA,uBAAC,eACE;AAAA,iBAAa,oBAAC,aAAW,qBAAU;AAAA,IACpC;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,UACL,UAAU,YAAY,sBAAsB;AAAA,QAC9C;AAAA,QAEA;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,UAAS;AAAA,cACT,eAAY;AAAA,cACZ,YAAW;AAAA,cACX,OAAM;AAAA,cACN,MAAM,oBAAC,0BAAuB,OAAO,OAAO;AAAA;AAAA,UAC9C;AAAA,UACC,eACC,oBAAC,eACC,8BAAC,0BAAuB,OAAO,aAAa,GAC9C;AAAA;AAAA;AAAA,IAEJ;AAAA,KACF;AAAA,EACC,cACC,qBAAC,qBACE;AAAA,eAAW,MAAM,oBAAC,cAAY,qBAAW,IAAG;AAAA,IAC5C,WAAW,MACV,iCACG;AAAA,iBAAW,SAAS,KAAK,oBAAC,aAAU;AAAA,MACrC,oBAAC,cAAY,qBAAW,IAAG;AAAA,OAC7B;AAAA,KAEJ;AAAA,GAEJ,GACF;AAGF,MAAM,YAAY;AAAA,EAIhB,OAAO,UAAU,OAAO,WAAW,YAAY,8BAA8B;AAAA,EAI7E,aAAa,UAAU,OAAO,YAAY,wCAAwC;AAAA,EAIlF,WAAW,UAAU,QAAQ,YAAY,YAAY;AAAA,EAIrD,YAAY,UAAU,MAAM,YAAY,oCAAoC;AAAA,EAI5E,WAAW,UAAU,KAAK,YAAY,sCAAsC;AAC9E;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,yBAAyB,SAAS,UAAU;AAClD,uBAAuB,YAAY;AAGnC,IAAO,eAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/v2/Group.js
CHANGED
|
@@ -31,22 +31,13 @@ const Items = styled.div`
|
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
`;
|
|
34
|
-
const CardGroup = ({ children, title, action }) => /* @__PURE__ */ jsxs(Group, {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
action
|
|
43
|
-
]
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ jsx(Items, {
|
|
46
|
-
children
|
|
47
|
-
})
|
|
48
|
-
]
|
|
49
|
-
});
|
|
34
|
+
const CardGroup = ({ children, title, action }) => /* @__PURE__ */ jsxs(Group, { withTopBorder: !title, children: [
|
|
35
|
+
!!title && /* @__PURE__ */ jsxs(TitleWrapper, { children: [
|
|
36
|
+
/* @__PURE__ */ jsx(GroupTitle, { children: title }),
|
|
37
|
+
action
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ jsx(Items, { children })
|
|
40
|
+
] });
|
|
50
41
|
const cardgroupProps = {
|
|
51
42
|
children: PropTypes.element.isRequired.description("Card items"),
|
|
52
43
|
title: PropTypes.string.isRequired.description("Title of the group"),
|
package/dist/esm/v2/Group.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/Group.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { color, border, truncate, styled } from '@elliemae/ds-system';\nimport Card from './Card';\n\nconst Group = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 100%;\n ${Card} {\n border-top: none;\n }\n ${({ theme, withTopBorder }) => (withTopBorder ? `border-top: ${theme.colors.neutral['100']}` : '')}\n`;\n\nconst GroupTitle = styled.span`\n ${truncate()}\n`;\n\nconst TitleWrapper = styled.div`\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`\n display: flex;\n flex-direction: column;\n`;\n\nconst CardGroup = ({ children, title, action }) => (\n <Group withTopBorder={!title}>\n {!!title && (\n <TitleWrapper>\n <GroupTitle>{title}</GroupTitle>\n {action}\n </TitleWrapper>\n )}\n <Items>{children}</Items>\n </Group>\n);\n\nconst cardgroupProps = {\n /**\n * Card items\n */\n children: PropTypes.element.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\nCardGroup.propTypes = cardgroupProps;\nCardGroup.displayName = 'CardGroup';\nconst DSCardGroupWithSchema = describe(CardGroup);\nDSCardGroupWithSchema.propTypes = cardgroupProps;\n\nexport { CardGroup, DSCardGroupWithSchema };\nexport default CardGroup;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACwCjB,SACE,KADF;AAvCN,SAAS,WAAW,gBAAgB;AACpC,SAAS,OAAO,QAAQ,UAAU,cAAc;AAChD,OAAO,UAAU;AAEjB,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKjB;AAAA;AAAA;AAAA,IAGA,CAAC,EAAE,OAAO,cAAc,MAAO,gBAAgB,eAAe,MAAM,OAAO,QAAQ,WAAW;AAAA;AAGlG,MAAM,aAAa,OAAO;AAAA,IACtB,SAAS;AAAA;AAGb,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA,eAGb,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,IAExC,MAAM,WAAW,KAAK;AAAA,iBACT,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,sBAC9B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA,gBAC5C,CAAC,UAAU,OAAO,MAAM,MAAM,OAAO,QAAQ,MAAM;AAAA;AAAA;AAInE,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA;AAKrB,MAAM,YAAY,CAAC,EAAE,UAAU,OAAO,OAAO,MAC3C,qBAAC
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACwCjB,SACE,KADF;AAvCN,SAAS,WAAW,gBAAgB;AACpC,SAAS,OAAO,QAAQ,UAAU,cAAc;AAChD,OA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4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card",
|
|
6
6
|
"files": [
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
"indent": 4
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@elliemae/ds-button": "3.12.0-rc.
|
|
75
|
-
"@elliemae/ds-classnames": "3.12.0-rc.
|
|
76
|
-
"@elliemae/ds-form": "3.12.0-rc.
|
|
77
|
-
"@elliemae/ds-grid": "3.12.0-rc.
|
|
78
|
-
"@elliemae/ds-header": "3.12.0-rc.
|
|
79
|
-
"@elliemae/ds-icons": "3.12.0-rc.
|
|
80
|
-
"@elliemae/ds-separator": "3.12.0-rc.
|
|
81
|
-
"@elliemae/ds-system": "3.12.0-rc.
|
|
82
|
-
"@elliemae/ds-truncated-tooltip-text": "3.12.0-rc.
|
|
83
|
-
"@elliemae/ds-utilities": "3.12.0-rc.
|
|
74
|
+
"@elliemae/ds-button": "3.12.0-rc.4",
|
|
75
|
+
"@elliemae/ds-classnames": "3.12.0-rc.4",
|
|
76
|
+
"@elliemae/ds-form": "3.12.0-rc.4",
|
|
77
|
+
"@elliemae/ds-grid": "3.12.0-rc.4",
|
|
78
|
+
"@elliemae/ds-header": "3.12.0-rc.4",
|
|
79
|
+
"@elliemae/ds-icons": "3.12.0-rc.4",
|
|
80
|
+
"@elliemae/ds-separator": "3.12.0-rc.4",
|
|
81
|
+
"@elliemae/ds-system": "3.12.0-rc.4",
|
|
82
|
+
"@elliemae/ds-truncated-tooltip-text": "3.12.0-rc.4",
|
|
83
|
+
"@elliemae/ds-utilities": "3.12.0-rc.4"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@testing-library/jest-dom": "~5.16.4",
|