@elliemae/ds-group-box 3.4.2 → 3.4.3
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/ActionItem.js +8 -3
- package/dist/cjs/ActionItem.js.map +2 -2
- package/dist/cjs/Actions.js +11 -7
- package/dist/cjs/Actions.js.map +2 -2
- package/dist/cjs/DSGroupBox.js +51 -28
- package/dist/cjs/DSGroupBox.js.map +2 -2
- package/dist/cjs/GroupBoxLabel.js +9 -5
- package/dist/cjs/GroupBoxLabel.js.map +2 -2
- package/dist/cjs/LabelElement.js +8 -3
- package/dist/cjs/LabelElement.js.map +2 -2
- package/dist/cjs/components/GroupHeader.js +23 -13
- package/dist/cjs/components/GroupHeader.js.map +2 -2
- package/dist/cjs/components/blocks.js +36 -21
- package/dist/cjs/components/blocks.js.map +1 -1
- package/dist/cjs/constants.js +4 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/ActionItem.js +4 -2
- package/dist/esm/ActionItem.js.map +1 -1
- package/dist/esm/Actions.js +7 -6
- package/dist/esm/Actions.js.map +1 -1
- package/dist/esm/DSGroupBox.js +47 -27
- package/dist/esm/DSGroupBox.js.map +2 -2
- package/dist/esm/GroupBoxLabel.js +5 -4
- package/dist/esm/GroupBoxLabel.js.map +1 -1
- package/dist/esm/LabelElement.js +4 -2
- package/dist/esm/LabelElement.js.map +1 -1
- package/dist/esm/components/GroupHeader.js +19 -12
- package/dist/esm/components/GroupHeader.js.map +1 -1
- package/dist/esm/components/blocks.js +32 -20
- package/dist/esm/components/blocks.js.map +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.js.map +2 -2
- package/package.json +5 -5
package/dist/cjs/ActionItem.js
CHANGED
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var ActionItem_exports = {};
|
|
23
26
|
__export(ActionItem_exports, {
|
|
@@ -25,7 +28,7 @@ __export(ActionItem_exports, {
|
|
|
25
28
|
});
|
|
26
29
|
module.exports = __toCommonJS(ActionItem_exports);
|
|
27
30
|
var React = __toESM(require("react"));
|
|
28
|
-
var
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
32
|
var import_ds_system = require("@elliemae/ds-system");
|
|
30
33
|
var import_ds_system2 = require("@elliemae/ds-system");
|
|
31
34
|
var import_prop_types = __toESM(require("prop-types"));
|
|
@@ -40,7 +43,9 @@ const ActionItemNode = import_ds_system.styled.div`
|
|
|
40
43
|
}
|
|
41
44
|
`;
|
|
42
45
|
function ActionItem({ children }) {
|
|
43
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ActionItemNode, {
|
|
47
|
+
children
|
|
48
|
+
});
|
|
44
49
|
}
|
|
45
50
|
ActionItem.propTypes = {
|
|
46
51
|
children: import_prop_types.default.node.isRequired
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ActionItem.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';\nimport PropTypes from 'prop-types';\n\nconst ActionItemNode = styled.div`\n padding-right: ${props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};\n font-weight: 300;\n overflow: hidden;\n align-items: center;\n display: flex;\n &:last-child {\n padding-right: 0;\n }\n`;\n\nfunction ActionItem({ children }) {\n return <ActionItemNode>{children}</ActionItemNode>;\n}\n\nActionItem.propTypes = {\n children: PropTypes.node.isRequired,\n};\n\nexport default ActionItem;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,uBAAuB;AACvB,IAAAA,oBAAyC;AACzC,wBAAsB;AAEtB,MAAM,iBAAiB,wBAAO;AAAA,mBACX,eAAS,4CAAyB,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUzE,SAAS,WAAW,EAAE,SAAS,GAAG;AAChC,SAAO,4CAAC;AAAA,IAAgB;AAAA,GAAS;AACnC;AAEA,WAAW,YAAY;AAAA,EACrB,UAAU,kBAAAC,QAAU,KAAK;AAC3B;AAEA,IAAO,qBAAQ;",
|
|
6
|
+
"names": ["import_ds_system", "PropTypes"]
|
|
7
7
|
}
|
package/dist/cjs/Actions.js
CHANGED
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var Actions_exports = {};
|
|
23
26
|
__export(Actions_exports, {
|
|
@@ -26,7 +29,7 @@ __export(Actions_exports, {
|
|
|
26
29
|
});
|
|
27
30
|
module.exports = __toCommonJS(Actions_exports);
|
|
28
31
|
var React = __toESM(require("react"));
|
|
29
|
-
var
|
|
32
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
33
|
var import_prop_types = __toESM(require("prop-types"));
|
|
31
34
|
var import_ds_system = require("@elliemae/ds-system");
|
|
32
35
|
var import_ActionItem = __toESM(require("./ActionItem"));
|
|
@@ -40,12 +43,13 @@ const ActionsNode = import_ds_system.styled.div`
|
|
|
40
43
|
const Actions = ({ actions = [], centerActions, rightActions }) => {
|
|
41
44
|
if (actions.length < 1)
|
|
42
45
|
return null;
|
|
43
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ActionsNode, {
|
|
44
47
|
marginLeft: !!rightActions && "auto",
|
|
45
|
-
marginRight: !!centerActions && "auto"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
marginRight: !!centerActions && "auto",
|
|
49
|
+
children: actions.map((action, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionItem.default, {
|
|
50
|
+
children: action
|
|
51
|
+
}, key))
|
|
52
|
+
});
|
|
49
53
|
};
|
|
50
54
|
Actions.propTypes = {
|
|
51
55
|
actions: import_prop_types.default.array,
|
package/dist/cjs/Actions.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Actions.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable react/forbid-prop-types */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled, space, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';\nimport ActionItem from './ActionItem';\n\nconst ActionsNode = styled.div`\n display: flex;\n flex-direction: row;\n padding-left: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)};\n overflow: hidden;\n ${space}\n`;\n\nconst Actions = ({ actions = [], centerActions, rightActions }) => {\n if (actions.length < 1) return null;\n return (\n <ActionsNode marginLeft={!!rightActions && 'auto'} marginRight={!!centerActions && 'auto'}>\n {actions.map((action, key) => (\n <ActionItem key={key}>{action}</ActionItem>\n ))}\n </ActionsNode>\n );\n};\n\nActions.propTypes = {\n actions: PropTypes.array,\n centerActions: PropTypes.bool,\n rightActions: PropTypes.bool,\n};\n\nexport { Actions };\nexport default Actions;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AAEA,wBAAsB;AACtB,uBAAwD;AACxD,wBAAuB;AAEvB,MAAM,cAAc,wBAAO;AAAA;AAAA;AAAA,kBAGT,CAAC,cAAU,2CAAyB,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA,IAErE;AAAA;AAGJ,MAAM,UAAU,CAAC,EAAE,UAAU,CAAC,GAAG,eAAe,aAAa,MAAM;AACjE,MAAI,QAAQ,SAAS;AAAG,WAAO;AAC/B,SACE,4CAAC;AAAA,IAAY,YAAY,CAAC,CAAC,gBAAgB;AAAA,IAAQ,aAAa,CAAC,CAAC,iBAAiB;AAAA,IAChF,kBAAQ,IAAI,CAAC,QAAQ,QACpB,4CAAC,kBAAAA,SAAA;AAAA,MAAsB;AAAA,OAAN,GAAa,CAC/B;AAAA,GACH;AAEJ;AAEA,QAAQ,YAAY;AAAA,EAClB,SAAS,kBAAAC,QAAU;AAAA,EACnB,eAAe,kBAAAA,QAAU;AAAA,EACzB,cAAc,kBAAAA,QAAU;AAC1B;AAGA,IAAO,kBAAQ;",
|
|
6
|
+
"names": ["ActionItem", "PropTypes"]
|
|
7
7
|
}
|
package/dist/cjs/DSGroupBox.js
CHANGED
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var DSGroupBox_exports = {};
|
|
23
26
|
__export(DSGroupBox_exports, {
|
|
@@ -27,6 +30,7 @@ __export(DSGroupBox_exports, {
|
|
|
27
30
|
});
|
|
28
31
|
module.exports = __toCommonJS(DSGroupBox_exports);
|
|
29
32
|
var React = __toESM(require("react"));
|
|
33
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
34
|
var import_react = __toESM(require("react"));
|
|
31
35
|
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
32
36
|
var import_blocks = require("./components/blocks");
|
|
@@ -50,29 +54,38 @@ const DSGroupBox = ({
|
|
|
50
54
|
isMain = true
|
|
51
55
|
}) => {
|
|
52
56
|
const { labelText } = labelProps;
|
|
53
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.GroupBoxWrapper, {
|
|
54
58
|
...containerProps,
|
|
55
|
-
classProps: { onlyHeader, noBorder, type, isMain }
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
59
|
+
classProps: { onlyHeader, noBorder, type, isMain },
|
|
60
|
+
children: [
|
|
61
|
+
labelText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GroupHeader.DSGroupBoxHeader, {
|
|
62
|
+
centerActions,
|
|
63
|
+
isMain,
|
|
64
|
+
labelProps,
|
|
65
|
+
noBorder,
|
|
66
|
+
rightActions,
|
|
67
|
+
type
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.GroupBoxContent, {
|
|
70
|
+
classProps: {
|
|
71
|
+
type,
|
|
72
|
+
asRow,
|
|
73
|
+
onlyHeader,
|
|
74
|
+
noPadding,
|
|
75
|
+
noBorder,
|
|
76
|
+
noBorderTop: !!labelText
|
|
77
|
+
},
|
|
78
|
+
children: components && components.props ? import_react.default.Children.map(
|
|
79
|
+
components,
|
|
80
|
+
(component) => import_react.default.cloneElement(component, {
|
|
81
|
+
...component.props,
|
|
82
|
+
isMain: false
|
|
83
|
+
}),
|
|
84
|
+
null
|
|
85
|
+
) : components
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
});
|
|
76
89
|
};
|
|
77
90
|
const props = {
|
|
78
91
|
containerProps: import_ds_utilities.PropTypes.object.description("props to inject to wrapper"),
|
|
@@ -81,17 +94,27 @@ const props = {
|
|
|
81
94
|
borderBottom: import_ds_utilities.PropTypes.bool,
|
|
82
95
|
id: import_ds_utilities.PropTypes.string
|
|
83
96
|
}).description("Label attributes to be rendered"),
|
|
84
|
-
type: import_ds_utilities.PropTypes.oneOf(import_constants.BOX_TYPES_ARRAY).description(
|
|
97
|
+
type: import_ds_utilities.PropTypes.oneOf(import_constants.BOX_TYPES_ARRAY).description(
|
|
98
|
+
import_constants.BOX_TYPES_ARRAY.toString()
|
|
99
|
+
),
|
|
85
100
|
children: import_ds_utilities.PropTypes.oneOfType([
|
|
86
101
|
import_ds_utilities.PropTypes.element,
|
|
87
102
|
import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.element)
|
|
88
103
|
]).isRequired.description("Components to be rendered inside the box"),
|
|
89
|
-
rightActions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.element).description(
|
|
90
|
-
|
|
91
|
-
|
|
104
|
+
rightActions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.element).description(
|
|
105
|
+
"Actions on the right side of the label"
|
|
106
|
+
),
|
|
107
|
+
centerActions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.element).description(
|
|
108
|
+
"Actions on the next to the label"
|
|
109
|
+
),
|
|
110
|
+
asRow: import_ds_utilities.PropTypes.bool.description(
|
|
111
|
+
"Display the content of the group box with flex direction row"
|
|
112
|
+
),
|
|
92
113
|
onlyHeader: import_ds_utilities.PropTypes.bool.description("Show border only on the header"),
|
|
93
114
|
noBorder: import_ds_utilities.PropTypes.bool.description("Remove the wrapper border"),
|
|
94
|
-
noPadding: import_ds_utilities.PropTypes.bool.description(
|
|
115
|
+
noPadding: import_ds_utilities.PropTypes.bool.description(
|
|
116
|
+
"Remove the top and bottom padding from the content"
|
|
117
|
+
)
|
|
95
118
|
};
|
|
96
119
|
DSGroupBox.propTypes = props;
|
|
97
120
|
DSGroupBox.displayName = "DSGroupBox";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSGroupBox.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { GroupBoxWrapper, GroupBoxContent } from './components/blocks';\nimport { DSGroupBoxHeader } from './components/GroupHeader';\nimport { BOX_TYPES, BOX_TYPES_ARRAY } from './constants';\n\nconst DSGroupBox = ({\n containerProps = {},\n labelProps = {\n labelText: '',\n borderBottom: false,\n id: 'ds-group-box__header',\n },\n rightActions = [],\n centerActions = [],\n type = BOX_TYPES.CATEGORY,\n asRow = false,\n onlyHeader = false,\n noBorder = true,\n noPadding = false,\n children: components = [],\n // eslint-disable-next-line react/prop-types\n isMain = true,\n}) => {\n const { labelText } = labelProps;\n return (\n <GroupBoxWrapper\n {...containerProps}\n classProps={{ onlyHeader, noBorder, type, isMain }}\n >\n {labelText && (\n <DSGroupBoxHeader\n centerActions={centerActions}\n isMain={isMain}\n labelProps={labelProps}\n noBorder={noBorder}\n rightActions={rightActions}\n type={type}\n />\n )}\n\n <GroupBoxContent\n classProps={{\n type,\n asRow,\n onlyHeader,\n noPadding,\n noBorder,\n noBorderTop: !!labelText,\n }}\n >\n {components && components.props\n ? React.Children.map(\n components,\n (component) =>\n React.cloneElement(component, {\n ...component.props,\n isMain: false,\n }),\n null,\n )\n : components}\n </GroupBoxContent>\n </GroupBoxWrapper>\n );\n};\n\nconst props = {\n /** props to inject to wrapper */\n containerProps: PropTypes.object.description('props to inject to wrapper'),\n /**\n * Label attributes to be rendered\n */\n labelProps: PropTypes.shape({\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n borderBottom: PropTypes.bool,\n id: PropTypes.string,\n }).description('Label attributes to be rendered'),\n /**\n * ['category-box', 'group-box']\n */\n type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(\n BOX_TYPES_ARRAY.toString(),\n ),\n /**\n * Components to be rendered inside the box\n */\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.arrayOf(PropTypes.element),\n ]).isRequired.description('Components to be rendered inside the box'),\n /**\n * Actions on the right side of the label\n */\n rightActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the right side of the label',\n ),\n /**\n * Actions on the next to the label\n */\n centerActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the next to the label',\n ),\n /**\n * Display the content of the group box with flex direction row\n */\n asRow: PropTypes.bool.description(\n 'Display the content of the group box with flex direction row',\n ),\n /**\n * Show border only on the header\n */\n onlyHeader: PropTypes.bool.description('Show border only on the header'),\n /**\n * Remove the wrapper border\n */\n noBorder: PropTypes.bool.description('Remove the wrapper border'),\n /**\n * Remove the top and bottom padding from the content\n */\n noPadding: PropTypes.bool.description(\n 'Remove the top and bottom padding from the content',\n ),\n};\n\nDSGroupBox.propTypes = props;\nDSGroupBox.displayName = 'DSGroupBox';\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\n\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\nexport default DSGroupBox;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AAAA,mBAAkB;AAClB,0BAAoC;AACpC,oBAAiD;AACjD,yBAAiC;AACjC,uBAA2C;AAE3C,MAAM,aAAa,CAAC;AAAA,EAClB,iBAAiB,CAAC;AAAA,EAClB,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA,EACN;AAAA,EACA,eAAe,CAAC;AAAA,EAChB,gBAAgB,CAAC;AAAA,EACjB,OAAO,2BAAU;AAAA,EACjB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU,aAAa,CAAC;AAAA,EAExB,SAAS;AACX,MAAM;AACJ,QAAM,EAAE,UAAU,IAAI;AACtB,SACE,6CAAC;AAAA,IACE,GAAG;AAAA,IACJ,YAAY,EAAE,YAAY,UAAU,MAAM,OAAO;AAAA,IAEhD;AAAA,mBACC,4CAAC;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,OACF;AAAA,MAGF,4CAAC;AAAA,QACC,YAAY;AAAA,UACV;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,aAAa,CAAC,CAAC;AAAA,QACjB;AAAA,QAEC,wBAAc,WAAW,QACtB,aAAAA,QAAM,SAAS;AAAA,UACb;AAAA,UACA,CAAC,cACC,aAAAA,QAAM,aAAa,WAAW;AAAA,YAC5B,GAAG,UAAU;AAAA,YACb,QAAQ;AAAA,UACV,CAAC;AAAA,UACH;AAAA,QACF,IACA;AAAA,OACN;AAAA;AAAA,GACF;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,8BAAU,OAAO,YAAY,4BAA4B;AAAA,EAIzE,YAAY,8BAAU,MAAM;AAAA,IAC1B,WAAW,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,OAAO,CAAC;AAAA,IACpE,cAAc,8BAAU;AAAA,IACxB,IAAI,8BAAU;AAAA,EAChB,CAAC,EAAE,YAAY,iCAAiC;AAAA,EAIhD,MAAM,8BAAU,MAAM,gCAAe,EAAE;AAAA,IACrC,iCAAgB,SAAS;AAAA,EAC3B;AAAA,EAIA,UAAU,8BAAU,UAAU;AAAA,IAC5B,8BAAU;AAAA,IACV,8BAAU,QAAQ,8BAAU,OAAO;AAAA,EACrC,CAAC,EAAE,WAAW,YAAY,0CAA0C;AAAA,EAIpE,cAAc,8BAAU,QAAQ,8BAAU,OAAO,EAAE;AAAA,IACjD;AAAA,EACF;AAAA,EAIA,eAAe,8BAAU,QAAQ,8BAAU,OAAO,EAAE;AAAA,IAClD;AAAA,EACF;AAAA,EAIA,OAAO,8BAAU,KAAK;AAAA,IACpB;AAAA,EACF;AAAA,EAIA,YAAY,8BAAU,KAAK,YAAY,gCAAgC;AAAA,EAIvE,UAAU,8BAAU,KAAK,YAAY,2BAA2B;AAAA,EAIhE,WAAW,8BAAU,KAAK;AAAA,IACxB;AAAA,EACF;AACF;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,2BAAuB,8BAAS,UAAU;AAEhD,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
|
+
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var GroupBoxLabel_exports = {};
|
|
23
26
|
__export(GroupBoxLabel_exports, {
|
|
@@ -25,7 +28,7 @@ __export(GroupBoxLabel_exports, {
|
|
|
25
28
|
});
|
|
26
29
|
module.exports = __toCommonJS(GroupBoxLabel_exports);
|
|
27
30
|
var React = __toESM(require("react"));
|
|
28
|
-
var
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
32
|
var import_prop_types = __toESM(require("prop-types"));
|
|
30
33
|
var import_ds_system = require("@elliemae/ds-system");
|
|
31
34
|
var import_ds_system2 = require("@elliemae/ds-system");
|
|
@@ -53,14 +56,15 @@ const GroupBoxLabelNode = import_ds_system.styled.div`
|
|
|
53
56
|
${(props) => props.isMain ? `padding-right: ${(0, import_ds_system2.__UNSAFE_SPACE_TO_DIMSUM)(props.theme.space.xs)};` : ""}
|
|
54
57
|
`;
|
|
55
58
|
function GroupBoxLabel({ borderBottom, children, noBorder, isMain, type, id }) {
|
|
56
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupBoxLabelNode, {
|
|
57
60
|
borderBottom,
|
|
58
61
|
"data-testid": "ds-group-box__header",
|
|
59
62
|
isMain,
|
|
60
63
|
noBorder,
|
|
61
64
|
nodeType: type,
|
|
62
|
-
id
|
|
63
|
-
|
|
65
|
+
id,
|
|
66
|
+
children
|
|
67
|
+
});
|
|
64
68
|
}
|
|
65
69
|
GroupBoxLabel.propTypes = {
|
|
66
70
|
children: import_prop_types.default.oneOfType([
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/GroupBoxLabel.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@elliemae/ds-system';\nimport { __UNSAFE_SPACE_TO_DIMSUM, toMobile } from '@elliemae/ds-system';\nimport { BOX_TYPES_ARRAY } from './constants';\n\nconst borderBase200 = (props) =>\n `1px solid ${props.theme.colors.neutral[200]};`;\n\nconst categoryBoxStyles = `\n width: 100%;\n height: 36px;\n padding:0 0;\n color: ${(props) => props.theme.colors.neutral[800]};\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: ${borderBase200}\n`;\n\nconst groupBoxStyles = `\n border: unset;\n font-size: ${(props) => toMobile(props.theme.fontSizes.title[500])};\n padding: 12px 0;\n`;\n\nconst GroupBoxLabelNode = styled.div`\n ${(props) =>\n props.nodeType === 'category-box' ? categoryBoxStyles : groupBoxStyles}\n ${(props) => (props.noBorder ? 'border: none;' : '')}\n ${(props) =>\n props.borderBottom ? `border-bottom: ${borderBase200(props)}` : ''}\n ${(props) =>\n props.isMain\n ? `padding-right: ${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};`\n : ''}\n`;\nfunction GroupBoxLabel({ borderBottom, children, noBorder, isMain, type, id }) {\n return (\n <GroupBoxLabelNode\n borderBottom={borderBottom}\n data-testid=\"ds-group-box__header\"\n isMain={isMain}\n noBorder={noBorder}\n nodeType={type}\n id={id}\n >\n {children}\n </GroupBoxLabelNode>\n );\n}\n\nGroupBoxLabel.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n type: PropTypes.oneOf(BOX_TYPES_ARRAY),\n borderBottom: PropTypes.bool,\n isMain: PropTypes.bool.isRequired,\n noBorder: PropTypes.bool,\n id: PropTypes.string,\n};\n\nexport default GroupBoxLabel;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,wBAAsB;AACtB,uBAAuB;AACvB,IAAAA,oBAAmD;AACnD,uBAAgC;AAEhC,MAAM,gBAAgB,CAAC,UACrB,aAAa,MAAM,MAAM,OAAO,QAAQ;AAE1C,MAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA,WAIf,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA,mBAI9B;AAAA;AAGnB,MAAM,iBAAiB;AAAA;AAAA,eAER,CAAC,cAAU,4BAAS,MAAM,MAAM,UAAU,MAAM,IAAI;AAAA;AAAA;AAInE,MAAM,oBAAoB,wBAAO;AAAA,IAC7B,CAAC,UACD,MAAM,aAAa,iBAAiB,oBAAoB;AAAA,IACxD,CAAC,UAAW,MAAM,WAAW,kBAAkB;AAAA,IAC/C,CAAC,UACD,MAAM,eAAe,kBAAkB,cAAc,KAAK,MAAM;AAAA,IAChE,CAAC,UACD,MAAM,SACF,sBAAkB,4CAAyB,MAAM,MAAM,MAAM,EAAE,OAC/D;AAAA;AAER,SAAS,cAAc,EAAE,cAAc,UAAU,UAAU,QAAQ,MAAM,GAAG,GAAG;AAC7E,SACE,4CAAC;AAAA,IACC;AAAA,IACA,eAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IAEC;AAAA,GACH;AAEJ;AAEA,cAAc,YAAY;AAAA,EACxB,UAAU,kBAAAC,QAAU,UAAU;AAAA,IAC5B,kBAAAA,QAAU,QAAQ,kBAAAA,QAAU,IAAI;AAAA,IAChC,kBAAAA,QAAU;AAAA,EACZ,CAAC,EAAE;AAAA,EACH,MAAM,kBAAAA,QAAU,MAAM,gCAAe;AAAA,EACrC,cAAc,kBAAAA,QAAU;AAAA,EACxB,QAAQ,kBAAAA,QAAU,KAAK;AAAA,EACvB,UAAU,kBAAAA,QAAU;AAAA,EACpB,IAAI,kBAAAA,QAAU;AAChB;AAEA,IAAO,wBAAQ;",
|
|
6
|
+
"names": ["import_ds_system", "PropTypes"]
|
|
7
7
|
}
|
package/dist/cjs/LabelElement.js
CHANGED
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var LabelElement_exports = {};
|
|
23
26
|
__export(LabelElement_exports, {
|
|
@@ -25,7 +28,7 @@ __export(LabelElement_exports, {
|
|
|
25
28
|
});
|
|
26
29
|
module.exports = __toCommonJS(LabelElement_exports);
|
|
27
30
|
var React = __toESM(require("react"));
|
|
28
|
-
var
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
32
|
var import_prop_types = __toESM(require("prop-types"));
|
|
30
33
|
var import_ds_system = require("@elliemae/ds-system");
|
|
31
34
|
var import_ds_system2 = require("@elliemae/ds-system");
|
|
@@ -37,7 +40,9 @@ const LabelElementNode = import_ds_system.styled.div`
|
|
|
37
40
|
font-weight: 400;
|
|
38
41
|
`;
|
|
39
42
|
function LabelElement({ children }) {
|
|
40
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LabelElementNode, {
|
|
44
|
+
children
|
|
45
|
+
});
|
|
41
46
|
}
|
|
42
47
|
LabelElement.propTypes = {
|
|
43
48
|
children: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.node]).isRequired
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LabelElement.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@elliemae/ds-system';\nimport { toMobile } from '@elliemae/ds-system';\n\nconst LabelElementNode = styled.div`\n overflow: hidden;\n display: flex;\n align-items: center;\n font-size: ${(props) => toMobile(props.theme.fontSizes.title[700])};\n font-weight: 400;\n`;\n\nfunction LabelElement({ children }) {\n return <LabelElementNode>{children}</LabelElementNode>;\n}\n\nLabelElement.propTypes = {\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,\n};\n\nexport default LabelElement;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,wBAAsB;AACtB,uBAAuB;AACvB,IAAAA,oBAAyB;AAEzB,MAAM,mBAAmB,wBAAO;AAAA;AAAA;AAAA;AAAA,eAIjB,CAAC,cAAU,4BAAS,MAAM,MAAM,UAAU,MAAM,IAAI;AAAA;AAAA;AAInE,SAAS,aAAa,EAAE,SAAS,GAAG;AAClC,SAAO,4CAAC;AAAA,IAAkB;AAAA,GAAS;AACrC;AAEA,aAAa,YAAY;AAAA,EACvB,UAAU,kBAAAC,QAAU,UAAU,CAAC,kBAAAA,QAAU,QAAQ,kBAAAA,QAAU,IAAI,CAAC,EAAE;AACpE;AAEA,IAAO,uBAAQ;",
|
|
6
|
+
"names": ["import_ds_system", "PropTypes"]
|
|
7
7
|
}
|
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var GroupHeader_exports = {};
|
|
23
26
|
__export(GroupHeader_exports, {
|
|
@@ -25,7 +28,7 @@ __export(GroupHeader_exports, {
|
|
|
25
28
|
});
|
|
26
29
|
module.exports = __toCommonJS(GroupHeader_exports);
|
|
27
30
|
var React = __toESM(require("react"));
|
|
28
|
-
var
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
32
|
var import_ds_truncated_tooltip_text = __toESM(require("@elliemae/ds-truncated-tooltip-text"));
|
|
30
33
|
var import_constants = require("../constants");
|
|
31
34
|
var import_Actions = __toESM(require("../Actions"));
|
|
@@ -44,20 +47,27 @@ const DSGroupBoxHeader = ({
|
|
|
44
47
|
isMain
|
|
45
48
|
}) => {
|
|
46
49
|
const { labelText, borderBottom, id } = labelProps;
|
|
47
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_GroupBoxLabel.default, {
|
|
48
51
|
borderBottom,
|
|
49
52
|
isMain,
|
|
50
53
|
noBorder,
|
|
51
54
|
type,
|
|
52
|
-
id
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
id,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LabelElement.default, {
|
|
58
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.default, {
|
|
59
|
+
value: labelText
|
|
60
|
+
})
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Actions.default, {
|
|
63
|
+
actions: centerActions,
|
|
64
|
+
centerActions: centerActions.length > 0
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Actions.default, {
|
|
67
|
+
actions: rightActions,
|
|
68
|
+
rightActions: rightActions.length > 0
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
});
|
|
62
72
|
};
|
|
63
73
|
//# sourceMappingURL=GroupHeader.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/GroupHeader.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';\nimport { BOX_TYPES } from '../constants';\nimport Actions from '../Actions';\nimport LabelElement from '../LabelElement';\nimport Label from '../GroupBoxLabel';\n\nexport const DSGroupBoxHeader = ({\n labelProps = {\n labelText: '',\n borderBottom: false,\n id: 'ds-group-box__header',\n },\n rightActions = [],\n centerActions = [],\n type = BOX_TYPES.CATEGORY,\n noBorder,\n isMain,\n}) => {\n const { labelText, borderBottom, id } = labelProps;\n return (\n <Label\n borderBottom={borderBottom}\n isMain={isMain}\n noBorder={noBorder}\n type={type}\n id={id}\n >\n <LabelElement>\n <DSTruncatedTooltipText value={labelText} />\n </LabelElement>\n <Actions\n actions={centerActions}\n centerActions={centerActions.length > 0}\n />\n <Actions actions={rightActions} rightActions={rightActions.length > 0} />\n </Label>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,uCAAmC;AACnC,uBAA0B;AAC1B,qBAAoB;AACpB,0BAAyB;AACzB,2BAAkB;AAEX,MAAM,mBAAmB,CAAC;AAAA,EAC/B,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA,EACN;AAAA,EACA,eAAe,CAAC;AAAA,EAChB,gBAAgB,CAAC;AAAA,EACjB,OAAO,2BAAU;AAAA,EACjB;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,WAAW,cAAc,GAAG,IAAI;AACxC,SACE,6CAAC,qBAAAA,SAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEA;AAAA,kDAAC,oBAAAC,SAAA;AAAA,QACC,sDAAC,iCAAAC,SAAA;AAAA,UAAuB,OAAO;AAAA,SAAW;AAAA,OAC5C;AAAA,MACA,4CAAC,eAAAC,SAAA;AAAA,QACC,SAAS;AAAA,QACT,eAAe,cAAc,SAAS;AAAA,OACxC;AAAA,MACA,4CAAC,eAAAA,SAAA;AAAA,QAAQ,SAAS;AAAA,QAAc,cAAc,aAAa,SAAS;AAAA,OAAG;AAAA;AAAA,GACzE;AAEJ;",
|
|
6
|
+
"names": ["Label", "LabelElement", "DSTruncatedTooltipText", "Actions"]
|
|
7
7
|
}
|
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var blocks_exports = {};
|
|
23
26
|
__export(blocks_exports, {
|
|
@@ -29,24 +32,36 @@ module.exports = __toCommonJS(blocks_exports);
|
|
|
29
32
|
var React = __toESM(require("react"));
|
|
30
33
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
31
34
|
const blockName = "group-box";
|
|
32
|
-
const GroupBoxWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
const GroupBoxWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(
|
|
36
|
+
blockName,
|
|
37
|
+
"wrapper",
|
|
38
|
+
({ onlyHeader, noBorder, type, isMain }) => ({
|
|
39
|
+
"only-header": onlyHeader,
|
|
40
|
+
"no-border": noBorder,
|
|
41
|
+
[type]: type,
|
|
42
|
+
"main-box": isMain,
|
|
43
|
+
"nested-box": !isMain
|
|
44
|
+
})
|
|
45
|
+
);
|
|
46
|
+
const GroupBoxContent = (0, import_ds_classnames.aggregatedClasses)("div")(
|
|
47
|
+
blockName,
|
|
48
|
+
"content",
|
|
49
|
+
({ type, asRow, onlyHeader, noPadding, noBorder, noBorderTop }) => ({
|
|
50
|
+
[type]: type,
|
|
51
|
+
"as-row": asRow,
|
|
52
|
+
"only-header": onlyHeader,
|
|
53
|
+
"no-padding": noPadding,
|
|
54
|
+
"no-border": noBorder,
|
|
55
|
+
"no-border-top": noBorderTop
|
|
56
|
+
})
|
|
57
|
+
);
|
|
58
|
+
const Label = (0, import_ds_classnames.aggregatedClasses)("div")(
|
|
59
|
+
blockName,
|
|
60
|
+
"label",
|
|
61
|
+
({ borderBottom, type, noBorder }) => ({
|
|
62
|
+
"border-bottom": borderBottom,
|
|
63
|
+
[type]: type,
|
|
64
|
+
"no-border": noBorder
|
|
65
|
+
})
|
|
66
|
+
);
|
|
52
67
|
//# sourceMappingURL=blocks.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/blocks.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'group-box';\n\nexport const GroupBoxWrapper = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ onlyHeader, noBorder, type, isMain }) => ({\n 'only-header': onlyHeader,\n 'no-border': noBorder,\n [type]: type,\n 'main-box': isMain,\n 'nested-box': !isMain,\n }),\n);\n\nexport const GroupBoxContent = aggregatedClasses('div')(\n blockName,\n 'content',\n ({ type, asRow, onlyHeader, noPadding, noBorder, noBorderTop }) => ({\n [type]: type,\n 'as-row': asRow,\n 'only-header': onlyHeader,\n 'no-padding': noPadding,\n 'no-border': noBorder,\n 'no-border-top': noBorderTop,\n }),\n);\n\nexport const Label = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ borderBottom, type, noBorder }) => ({\n 'border-bottom': borderBottom,\n [type]: type,\n 'no-border': noBorder,\n }),\n);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAkC;AAElC,MAAM,YAAY;AAEX,MAAM,sBAAkB,wCAAkB,KAAK;AAAA,EACpD;AAAA,EACA;AAAA,EACA,CAAC,EAAE,YAAY,UAAU,MAAM,OAAO,OAAO;AAAA,IAC3C,eAAe;AAAA,IACf,aAAa;AAAA,IACb,CAAC,OAAO;AAAA,IACR,YAAY;AAAA,IACZ,cAAc,CAAC;AAAA,EACjB;AACF;AAEO,MAAM,sBAAkB,wCAAkB,KAAK;AAAA,EACpD;AAAA,EACA;AAAA,EACA,CAAC,EAAE,MAAM,OAAO,YAAY,WAAW,UAAU,YAAY,OAAO;AAAA,IAClE,CAAC,OAAO;AAAA,IACR,UAAU;AAAA,IACV,eAAe;AAAA,IACf,cAAc;AAAA,IACd,aAAa;AAAA,IACb,iBAAiB;AAAA,EACnB;AACF;AAEO,MAAM,YAAQ,wCAAkB,KAAK;AAAA,EAC1C;AAAA,EACA;AAAA,EACA,CAAC,EAAE,cAAc,MAAM,SAAS,OAAO;AAAA,IACrC,iBAAiB;AAAA,IACjB,CAAC,OAAO;AAAA,IACR,aAAa;AAAA,EACf;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/constants.js
CHANGED
|
@@ -17,7 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
21
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
25
|
var constants_exports = {};
|
|
23
26
|
__export(constants_exports, {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["export const BOX_TYPES = {\n CATEGORY: 'category-box',\n GROUP: 'group-box',\n};\nexport const BOX_TYPES_ARRAY = [BOX_TYPES.CATEGORY, BOX_TYPES.GROUP];\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,YAAY;AAAA,EACvB,UAAU;AAAA,EACV,OAAO;AACT;AACO,MAAM,kBAAkB,CAAC,UAAU,UAAU,UAAU,KAAK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -18,7 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
+
mod
|
|
24
|
+
));
|
|
22
25
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
26
|
var src_exports = {};
|
|
24
27
|
__export(src_exports, {
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["export * from './DSGroupBox';\nexport * from './constants';\nexport { default } from './DSGroupBox';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,yBAAd;AACA,wBAAc,wBADd;AAEA,wBAAwB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/ActionItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { styled } from "@elliemae/ds-system";
|
|
4
4
|
import { __UNSAFE_SPACE_TO_DIMSUM } from "@elliemae/ds-system";
|
|
5
5
|
import PropTypes from "prop-types";
|
|
@@ -14,7 +14,9 @@ const ActionItemNode = styled.div`
|
|
|
14
14
|
}
|
|
15
15
|
`;
|
|
16
16
|
function ActionItem({ children }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ jsx(ActionItemNode, {
|
|
18
|
+
children
|
|
19
|
+
});
|
|
18
20
|
}
|
|
19
21
|
ActionItem.propTypes = {
|
|
20
22
|
children: PropTypes.node.isRequired
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ActionItem.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';\nimport PropTypes from 'prop-types';\n\nconst ActionItemNode = styled.div`\n padding-right: ${props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};\n font-weight: 300;\n overflow: hidden;\n align-items: center;\n display: flex;\n &:last-child {\n padding-right: 0;\n }\n`;\n\nfunction ActionItem({ children }) {\n return <ActionItemNode>{children}</ActionItemNode>;\n}\n\nActionItem.propTypes = {\n children: PropTypes.node.isRequired,\n};\n\nexport default ActionItem;\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,SAAS,cAAc;AACvB,SAAS,gCAAgC;AACzC,OAAO,eAAe;AAEtB,MAAM,iBAAiB,OAAO;AAAA,mBACX,WAAS,yBAAyB,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUzE,SAAS,WAAW,EAAE,SAAS,GAAG;AAChC,SAAO,oBAAC;AAAA,IAAgB;AAAA,GAAS;AACnC;AAEA,WAAW,YAAY;AAAA,EACrB,UAAU,UAAU,KAAK;AAC3B;AAEA,IAAO,qBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Actions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { styled, space, __UNSAFE_SPACE_TO_DIMSUM } from "@elliemae/ds-system";
|
|
5
5
|
import ActionItem from "./ActionItem";
|
|
@@ -13,12 +13,13 @@ const ActionsNode = styled.div`
|
|
|
13
13
|
const Actions = ({ actions = [], centerActions, rightActions }) => {
|
|
14
14
|
if (actions.length < 1)
|
|
15
15
|
return null;
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx(ActionsNode, {
|
|
17
17
|
marginLeft: !!rightActions && "auto",
|
|
18
|
-
marginRight: !!centerActions && "auto"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
marginRight: !!centerActions && "auto",
|
|
19
|
+
children: actions.map((action, key) => /* @__PURE__ */ jsx(ActionItem, {
|
|
20
|
+
children: action
|
|
21
|
+
}, key))
|
|
22
|
+
});
|
|
22
23
|
};
|
|
23
24
|
Actions.propTypes = {
|
|
24
25
|
actions: PropTypes.array,
|
package/dist/esm/Actions.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/Actions.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/forbid-prop-types */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled, space, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';\nimport ActionItem from './ActionItem';\n\nconst ActionsNode = styled.div`\n display: flex;\n flex-direction: row;\n padding-left: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)};\n overflow: hidden;\n ${space}\n`;\n\nconst Actions = ({ actions = [], centerActions, rightActions }) => {\n if (actions.length < 1) return null;\n return (\n <ActionsNode marginLeft={!!rightActions && 'auto'} marginRight={!!centerActions && 'auto'}>\n {actions.map((action, key) => (\n <ActionItem key={key}>{action}</ActionItem>\n ))}\n </ActionsNode>\n );\n};\n\nActions.propTypes = {\n actions: PropTypes.array,\n centerActions: PropTypes.bool,\n rightActions: PropTypes.bool,\n};\n\nexport { Actions };\nexport default Actions;\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAEA,OAAO,eAAe;AACtB,SAAS,QAAQ,OAAO,gCAAgC;AACxD,OAAO,gBAAgB;AAEvB,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA,kBAGT,CAAC,UAAU,yBAAyB,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA,IAErE;AAAA;AAGJ,MAAM,UAAU,CAAC,EAAE,UAAU,CAAC,GAAG,eAAe,aAAa,MAAM;AACjE,MAAI,QAAQ,SAAS;AAAG,WAAO;AAC/B,SACE,oBAAC;AAAA,IAAY,YAAY,CAAC,CAAC,gBAAgB;AAAA,IAAQ,aAAa,CAAC,CAAC,iBAAiB;AAAA,IAChF,kBAAQ,IAAI,CAAC,QAAQ,QACpB,oBAAC;AAAA,MAAsB;AAAA,OAAN,GAAa,CAC/B;AAAA,GACH;AAEJ;AAEA,QAAQ,YAAY;AAAA,EAClB,SAAS,UAAU;AAAA,EACnB,eAAe,UAAU;AAAA,EACzB,cAAc,UAAU;AAC1B;AAGA,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/DSGroupBox.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React2 from "react";
|
|
3
4
|
import { PropTypes, describe } from "@elliemae/ds-utilities";
|
|
4
5
|
import { GroupBoxWrapper, GroupBoxContent } from "./components/blocks";
|
|
@@ -22,29 +23,38 @@ const DSGroupBox = ({
|
|
|
22
23
|
isMain = true
|
|
23
24
|
}) => {
|
|
24
25
|
const { labelText } = labelProps;
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ jsxs(GroupBoxWrapper, {
|
|
26
27
|
...containerProps,
|
|
27
|
-
classProps: { onlyHeader, noBorder, type, isMain }
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
28
|
+
classProps: { onlyHeader, noBorder, type, isMain },
|
|
29
|
+
children: [
|
|
30
|
+
labelText && /* @__PURE__ */ jsx(DSGroupBoxHeader, {
|
|
31
|
+
centerActions,
|
|
32
|
+
isMain,
|
|
33
|
+
labelProps,
|
|
34
|
+
noBorder,
|
|
35
|
+
rightActions,
|
|
36
|
+
type
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsx(GroupBoxContent, {
|
|
39
|
+
classProps: {
|
|
40
|
+
type,
|
|
41
|
+
asRow,
|
|
42
|
+
onlyHeader,
|
|
43
|
+
noPadding,
|
|
44
|
+
noBorder,
|
|
45
|
+
noBorderTop: !!labelText
|
|
46
|
+
},
|
|
47
|
+
children: components && components.props ? React2.Children.map(
|
|
48
|
+
components,
|
|
49
|
+
(component) => React2.cloneElement(component, {
|
|
50
|
+
...component.props,
|
|
51
|
+
isMain: false
|
|
52
|
+
}),
|
|
53
|
+
null
|
|
54
|
+
) : components
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
});
|
|
48
58
|
};
|
|
49
59
|
const props = {
|
|
50
60
|
containerProps: PropTypes.object.description("props to inject to wrapper"),
|
|
@@ -53,17 +63,27 @@ const props = {
|
|
|
53
63
|
borderBottom: PropTypes.bool,
|
|
54
64
|
id: PropTypes.string
|
|
55
65
|
}).description("Label attributes to be rendered"),
|
|
56
|
-
type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(
|
|
66
|
+
type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(
|
|
67
|
+
BOX_TYPES_ARRAY.toString()
|
|
68
|
+
),
|
|
57
69
|
children: PropTypes.oneOfType([
|
|
58
70
|
PropTypes.element,
|
|
59
71
|
PropTypes.arrayOf(PropTypes.element)
|
|
60
72
|
]).isRequired.description("Components to be rendered inside the box"),
|
|
61
|
-
rightActions: PropTypes.arrayOf(PropTypes.element).description(
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
rightActions: PropTypes.arrayOf(PropTypes.element).description(
|
|
74
|
+
"Actions on the right side of the label"
|
|
75
|
+
),
|
|
76
|
+
centerActions: PropTypes.arrayOf(PropTypes.element).description(
|
|
77
|
+
"Actions on the next to the label"
|
|
78
|
+
),
|
|
79
|
+
asRow: PropTypes.bool.description(
|
|
80
|
+
"Display the content of the group box with flex direction row"
|
|
81
|
+
),
|
|
64
82
|
onlyHeader: PropTypes.bool.description("Show border only on the header"),
|
|
65
83
|
noBorder: PropTypes.bool.description("Remove the wrapper border"),
|
|
66
|
-
noPadding: PropTypes.bool.description(
|
|
84
|
+
noPadding: PropTypes.bool.description(
|
|
85
|
+
"Remove the top and bottom padding from the content"
|
|
86
|
+
)
|
|
67
87
|
};
|
|
68
88
|
DSGroupBox.propTypes = props;
|
|
69
89
|
DSGroupBox.displayName = "DSGroupBox";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSGroupBox.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { GroupBoxWrapper, GroupBoxContent } from './components/blocks';\nimport { DSGroupBoxHeader } from './components/GroupHeader';\nimport { BOX_TYPES, BOX_TYPES_ARRAY } from './constants';\n\nconst DSGroupBox = ({\n containerProps = {},\n labelProps = {\n labelText: '',\n borderBottom: false,\n id: 'ds-group-box__header',\n },\n rightActions = [],\n centerActions = [],\n type = BOX_TYPES.CATEGORY,\n asRow = false,\n onlyHeader = false,\n noBorder = true,\n noPadding = false,\n children: components = [],\n // eslint-disable-next-line react/prop-types\n isMain = true,\n}) => {\n const { labelText } = labelProps;\n return (\n <GroupBoxWrapper\n {...containerProps}\n classProps={{ onlyHeader, noBorder, type, isMain }}\n >\n {labelText && (\n <DSGroupBoxHeader\n centerActions={centerActions}\n isMain={isMain}\n labelProps={labelProps}\n noBorder={noBorder}\n rightActions={rightActions}\n type={type}\n />\n )}\n\n <GroupBoxContent\n classProps={{\n type,\n asRow,\n onlyHeader,\n noPadding,\n noBorder,\n noBorderTop: !!labelText,\n }}\n >\n {components && components.props\n ? React.Children.map(\n components,\n (component) =>\n React.cloneElement(component, {\n ...component.props,\n isMain: false,\n }),\n null,\n )\n : components}\n </GroupBoxContent>\n </GroupBoxWrapper>\n );\n};\n\nconst props = {\n /** props to inject to wrapper */\n containerProps: PropTypes.object.description('props to inject to wrapper'),\n /**\n * Label attributes to be rendered\n */\n labelProps: PropTypes.shape({\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n borderBottom: PropTypes.bool,\n id: PropTypes.string,\n }).description('Label attributes to be rendered'),\n /**\n * ['category-box', 'group-box']\n */\n type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(\n BOX_TYPES_ARRAY.toString(),\n ),\n /**\n * Components to be rendered inside the box\n */\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.arrayOf(PropTypes.element),\n ]).isRequired.description('Components to be rendered inside the box'),\n /**\n * Actions on the right side of the label\n */\n rightActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the right side of the label',\n ),\n /**\n * Actions on the next to the label\n */\n centerActions: PropTypes.arrayOf(PropTypes.element).description(\n 'Actions on the next to the label',\n ),\n /**\n * Display the content of the group box with flex direction row\n */\n asRow: PropTypes.bool.description(\n 'Display the content of the group box with flex direction row',\n ),\n /**\n * Show border only on the header\n */\n onlyHeader: PropTypes.bool.description('Show border only on the header'),\n /**\n * Remove the wrapper border\n */\n noBorder: PropTypes.bool.description('Remove the wrapper border'),\n /**\n * Remove the top and bottom padding from the content\n */\n noPadding: PropTypes.bool.description(\n 'Remove the top and bottom padding from the content',\n ),\n};\n\nDSGroupBox.propTypes = props;\nDSGroupBox.displayName = 'DSGroupBox';\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\n\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\nexport default DSGroupBox;\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,OAAOA,YAAW;AAClB,SAAS,WAAW,gBAAgB;AACpC,SAAS,iBAAiB,uBAAuB;AACjD,SAAS,wBAAwB;AACjC,SAAS,WAAW,uBAAuB;AAE3C,MAAM,aAAa,CAAC;AAAA,EAClB,iBAAiB,CAAC;AAAA,EAClB,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA,EACN;AAAA,EACA,eAAe,CAAC;AAAA,EAChB,gBAAgB,CAAC;AAAA,EACjB,OAAO,UAAU;AAAA,EACjB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU,aAAa,CAAC;AAAA,EAExB,SAAS;AACX,MAAM;AACJ,QAAM,EAAE,UAAU,IAAI;AACtB,SACE,qBAAC;AAAA,IACE,GAAG;AAAA,IACJ,YAAY,EAAE,YAAY,UAAU,MAAM,OAAO;AAAA,IAEhD;AAAA,mBACC,oBAAC;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,OACF;AAAA,MAGF,oBAAC;AAAA,QACC,YAAY;AAAA,UACV;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,aAAa,CAAC,CAAC;AAAA,QACjB;AAAA,QAEC,wBAAc,WAAW,QACtBA,OAAM,SAAS;AAAA,UACb;AAAA,UACA,CAAC,cACCA,OAAM,aAAa,WAAW;AAAA,YAC5B,GAAG,UAAU;AAAA,YACb,QAAQ;AAAA,UACV,CAAC;AAAA,UACH;AAAA,QACF,IACA;AAAA,OACN;AAAA;AAAA,GACF;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY,4BAA4B;AAAA,EAIzE,YAAY,UAAU,MAAM;AAAA,IAC1B,WAAW,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC;AAAA,IACpE,cAAc,UAAU;AAAA,IACxB,IAAI,UAAU;AAAA,EAChB,CAAC,EAAE,YAAY,iCAAiC;AAAA,EAIhD,MAAM,UAAU,MAAM,eAAe,EAAE;AAAA,IACrC,gBAAgB,SAAS;AAAA,EAC3B;AAAA,EAIA,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU;AAAA,IACV,UAAU,QAAQ,UAAU,OAAO;AAAA,EACrC,CAAC,EAAE,WAAW,YAAY,0CAA0C;AAAA,EAIpE,cAAc,UAAU,QAAQ,UAAU,OAAO,EAAE;AAAA,IACjD;AAAA,EACF;AAAA,EAIA,eAAe,UAAU,QAAQ,UAAU,OAAO,EAAE;AAAA,IAClD;AAAA,EACF;AAAA,EAIA,OAAO,UAAU,KAAK;AAAA,IACpB;AAAA,EACF;AAAA,EAIA,YAAY,UAAU,KAAK,YAAY,gCAAgC;AAAA,EAIvE,UAAU,UAAU,KAAK,YAAY,2BAA2B;AAAA,EAIhE,WAAW,UAAU,KAAK;AAAA,IACxB;AAAA,EACF;AACF;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAEhD,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
|
+
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { styled } from "@elliemae/ds-system";
|
|
5
5
|
import { __UNSAFE_SPACE_TO_DIMSUM, toMobile } from "@elliemae/ds-system";
|
|
@@ -27,14 +27,15 @@ const GroupBoxLabelNode = styled.div`
|
|
|
27
27
|
${(props) => props.isMain ? `padding-right: ${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};` : ""}
|
|
28
28
|
`;
|
|
29
29
|
function GroupBoxLabel({ borderBottom, children, noBorder, isMain, type, id }) {
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ jsx(GroupBoxLabelNode, {
|
|
31
31
|
borderBottom,
|
|
32
32
|
"data-testid": "ds-group-box__header",
|
|
33
33
|
isMain,
|
|
34
34
|
noBorder,
|
|
35
35
|
nodeType: type,
|
|
36
|
-
id
|
|
37
|
-
|
|
36
|
+
id,
|
|
37
|
+
children
|
|
38
|
+
});
|
|
38
39
|
}
|
|
39
40
|
GroupBoxLabel.propTypes = {
|
|
40
41
|
children: PropTypes.oneOfType([
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/GroupBoxLabel.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@elliemae/ds-system';\nimport { __UNSAFE_SPACE_TO_DIMSUM, toMobile } from '@elliemae/ds-system';\nimport { BOX_TYPES_ARRAY } from './constants';\n\nconst borderBase200 = (props) =>\n `1px solid ${props.theme.colors.neutral[200]};`;\n\nconst categoryBoxStyles = `\n width: 100%;\n height: 36px;\n padding:0 0;\n color: ${(props) => props.theme.colors.neutral[800]};\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: ${borderBase200}\n`;\n\nconst groupBoxStyles = `\n border: unset;\n font-size: ${(props) => toMobile(props.theme.fontSizes.title[500])};\n padding: 12px 0;\n`;\n\nconst GroupBoxLabelNode = styled.div`\n ${(props) =>\n props.nodeType === 'category-box' ? categoryBoxStyles : groupBoxStyles}\n ${(props) => (props.noBorder ? 'border: none;' : '')}\n ${(props) =>\n props.borderBottom ? `border-bottom: ${borderBase200(props)}` : ''}\n ${(props) =>\n props.isMain\n ? `padding-right: ${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};`\n : ''}\n`;\nfunction GroupBoxLabel({ borderBottom, children, noBorder, isMain, type, id }) {\n return (\n <GroupBoxLabelNode\n borderBottom={borderBottom}\n data-testid=\"ds-group-box__header\"\n isMain={isMain}\n noBorder={noBorder}\n nodeType={type}\n id={id}\n >\n {children}\n </GroupBoxLabelNode>\n );\n}\n\nGroupBoxLabel.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired,\n type: PropTypes.oneOf(BOX_TYPES_ARRAY),\n borderBottom: PropTypes.bool,\n isMain: PropTypes.bool.isRequired,\n noBorder: PropTypes.bool,\n id: PropTypes.string,\n};\n\nexport default GroupBoxLabel;\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,OAAO,eAAe;AACtB,SAAS,cAAc;AACvB,SAAS,0BAA0B,gBAAgB;AACnD,SAAS,uBAAuB;AAEhC,MAAM,gBAAgB,CAAC,UACrB,aAAa,MAAM,MAAM,OAAO,QAAQ;AAE1C,MAAM,oBAAoB;AAAA;AAAA;AAAA;AAAA,WAIf,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA,mBAI9B;AAAA;AAGnB,MAAM,iBAAiB;AAAA;AAAA,eAER,CAAC,UAAU,SAAS,MAAM,MAAM,UAAU,MAAM,IAAI;AAAA;AAAA;AAInE,MAAM,oBAAoB,OAAO;AAAA,IAC7B,CAAC,UACD,MAAM,aAAa,iBAAiB,oBAAoB;AAAA,IACxD,CAAC,UAAW,MAAM,WAAW,kBAAkB;AAAA,IAC/C,CAAC,UACD,MAAM,eAAe,kBAAkB,cAAc,KAAK,MAAM;AAAA,IAChE,CAAC,UACD,MAAM,SACF,kBAAkB,yBAAyB,MAAM,MAAM,MAAM,EAAE,OAC/D;AAAA;AAER,SAAS,cAAc,EAAE,cAAc,UAAU,UAAU,QAAQ,MAAM,GAAG,GAAG;AAC7E,SACE,oBAAC;AAAA,IACC;AAAA,IACA,eAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IAEC;AAAA,GACH;AAEJ;AAEA,cAAc,YAAY;AAAA,EACxB,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU,QAAQ,UAAU,IAAI;AAAA,IAChC,UAAU;AAAA,EACZ,CAAC,EAAE;AAAA,EACH,MAAM,UAAU,MAAM,eAAe;AAAA,EACrC,cAAc,UAAU;AAAA,EACxB,QAAQ,UAAU,KAAK;AAAA,EACvB,UAAU,UAAU;AAAA,EACpB,IAAI,UAAU;AAChB;AAEA,IAAO,wBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/LabelElement.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { styled } from "@elliemae/ds-system";
|
|
5
5
|
import { toMobile } from "@elliemae/ds-system";
|
|
@@ -11,7 +11,9 @@ const LabelElementNode = styled.div`
|
|
|
11
11
|
font-weight: 400;
|
|
12
12
|
`;
|
|
13
13
|
function LabelElement({ children }) {
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsx(LabelElementNode, {
|
|
15
|
+
children
|
|
16
|
+
});
|
|
15
17
|
}
|
|
16
18
|
LabelElement.propTypes = {
|
|
17
19
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/LabelElement.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@elliemae/ds-system';\nimport { toMobile } from '@elliemae/ds-system';\n\nconst LabelElementNode = styled.div`\n overflow: hidden;\n display: flex;\n align-items: center;\n font-size: ${(props) => toMobile(props.theme.fontSizes.title[700])};\n font-weight: 400;\n`;\n\nfunction LabelElement({ children }) {\n return <LabelElementNode>{children}</LabelElementNode>;\n}\n\nLabelElement.propTypes = {\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,\n};\n\nexport default LabelElement;\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,OAAO,eAAe;AACtB,SAAS,cAAc;AACvB,SAAS,gBAAgB;AAEzB,MAAM,mBAAmB,OAAO;AAAA;AAAA;AAAA;AAAA,eAIjB,CAAC,UAAU,SAAS,MAAM,MAAM,UAAU,MAAM,IAAI;AAAA;AAAA;AAInE,SAAS,aAAa,EAAE,SAAS,GAAG;AAClC,SAAO,oBAAC;AAAA,IAAkB;AAAA,GAAS;AACrC;AAEA,aAAa,YAAY;AAAA,EACvB,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,IAAI,CAAC,EAAE;AACpE;AAEA,IAAO,uBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import DSTruncatedTooltipText from "@elliemae/ds-truncated-tooltip-text";
|
|
4
4
|
import { BOX_TYPES } from "../constants";
|
|
5
5
|
import Actions from "../Actions";
|
|
@@ -18,21 +18,28 @@ const DSGroupBoxHeader = ({
|
|
|
18
18
|
isMain
|
|
19
19
|
}) => {
|
|
20
20
|
const { labelText, borderBottom, id } = labelProps;
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsxs(Label, {
|
|
22
22
|
borderBottom,
|
|
23
23
|
isMain,
|
|
24
24
|
noBorder,
|
|
25
25
|
type,
|
|
26
|
-
id
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
id,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsx(LabelElement, {
|
|
29
|
+
children: /* @__PURE__ */ jsx(DSTruncatedTooltipText, {
|
|
30
|
+
value: labelText
|
|
31
|
+
})
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ jsx(Actions, {
|
|
34
|
+
actions: centerActions,
|
|
35
|
+
centerActions: centerActions.length > 0
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx(Actions, {
|
|
38
|
+
actions: rightActions,
|
|
39
|
+
rightActions: rightActions.length > 0
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
});
|
|
36
43
|
};
|
|
37
44
|
export {
|
|
38
45
|
DSGroupBoxHeader
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/GroupHeader.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';\nimport { BOX_TYPES } from '../constants';\nimport Actions from '../Actions';\nimport LabelElement from '../LabelElement';\nimport Label from '../GroupBoxLabel';\n\nexport const DSGroupBoxHeader = ({\n labelProps = {\n labelText: '',\n borderBottom: false,\n id: 'ds-group-box__header',\n },\n rightActions = [],\n centerActions = [],\n type = BOX_TYPES.CATEGORY,\n noBorder,\n isMain,\n}) => {\n const { labelText, borderBottom, id } = labelProps;\n return (\n <Label\n borderBottom={borderBottom}\n isMain={isMain}\n noBorder={noBorder}\n type={type}\n id={id}\n >\n <LabelElement>\n <DSTruncatedTooltipText value={labelText} />\n </LabelElement>\n <Actions\n actions={centerActions}\n centerActions={centerActions.length > 0}\n />\n <Actions actions={rightActions} rightActions={rightActions.length > 0} />\n </Label>\n );\n};\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,OAAO,4BAA4B;AACnC,SAAS,iBAAiB;AAC1B,OAAO,aAAa;AACpB,OAAO,kBAAkB;AACzB,OAAO,WAAW;AAEX,MAAM,mBAAmB,CAAC;AAAA,EAC/B,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA,EACN;AAAA,EACA,eAAe,CAAC;AAAA,EAChB,gBAAgB,CAAC;AAAA,EACjB,OAAO,UAAU;AAAA,EACjB;AAAA,EACA;AACF,MAAM;AACJ,QAAM,EAAE,WAAW,cAAc,GAAG,IAAI;AACxC,SACE,qBAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEA;AAAA,0BAAC;AAAA,QACC,8BAAC;AAAA,UAAuB,OAAO;AAAA,SAAW;AAAA,OAC5C;AAAA,MACA,oBAAC;AAAA,QACC,SAAS;AAAA,QACT,eAAe,cAAc,SAAS;AAAA,OACxC;AAAA,MACA,oBAAC;AAAA,QAAQ,SAAS;AAAA,QAAc,cAAc,aAAa,SAAS;AAAA,OAAG;AAAA;AAAA,GACzE;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
3
3
|
const blockName = "group-box";
|
|
4
|
-
const GroupBoxWrapper = aggregatedClasses("div")(
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
const GroupBoxWrapper = aggregatedClasses("div")(
|
|
5
|
+
blockName,
|
|
6
|
+
"wrapper",
|
|
7
|
+
({ onlyHeader, noBorder, type, isMain }) => ({
|
|
8
|
+
"only-header": onlyHeader,
|
|
9
|
+
"no-border": noBorder,
|
|
10
|
+
[type]: type,
|
|
11
|
+
"main-box": isMain,
|
|
12
|
+
"nested-box": !isMain
|
|
13
|
+
})
|
|
14
|
+
);
|
|
15
|
+
const GroupBoxContent = aggregatedClasses("div")(
|
|
16
|
+
blockName,
|
|
17
|
+
"content",
|
|
18
|
+
({ type, asRow, onlyHeader, noPadding, noBorder, noBorderTop }) => ({
|
|
19
|
+
[type]: type,
|
|
20
|
+
"as-row": asRow,
|
|
21
|
+
"only-header": onlyHeader,
|
|
22
|
+
"no-padding": noPadding,
|
|
23
|
+
"no-border": noBorder,
|
|
24
|
+
"no-border-top": noBorderTop
|
|
25
|
+
})
|
|
26
|
+
);
|
|
27
|
+
const Label = aggregatedClasses("div")(
|
|
28
|
+
blockName,
|
|
29
|
+
"label",
|
|
30
|
+
({ borderBottom, type, noBorder }) => ({
|
|
31
|
+
"border-bottom": borderBottom,
|
|
32
|
+
[type]: type,
|
|
33
|
+
"no-border": noBorder
|
|
34
|
+
})
|
|
35
|
+
);
|
|
24
36
|
export {
|
|
25
37
|
GroupBoxContent,
|
|
26
38
|
GroupBoxWrapper,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/blocks.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'group-box';\n\nexport const GroupBoxWrapper = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ onlyHeader, noBorder, type, isMain }) => ({\n 'only-header': onlyHeader,\n 'no-border': noBorder,\n [type]: type,\n 'main-box': isMain,\n 'nested-box': !isMain,\n }),\n);\n\nexport const GroupBoxContent = aggregatedClasses('div')(\n blockName,\n 'content',\n ({ type, asRow, onlyHeader, noPadding, noBorder, noBorderTop }) => ({\n [type]: type,\n 'as-row': asRow,\n 'only-header': onlyHeader,\n 'no-padding': noPadding,\n 'no-border': noBorder,\n 'no-border-top': noBorderTop,\n }),\n);\n\nexport const Label = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ borderBottom, type, noBorder }) => ({\n 'border-bottom': borderBottom,\n [type]: type,\n 'no-border': noBorder,\n }),\n);\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,yBAAyB;AAElC,MAAM,YAAY;AAEX,MAAM,kBAAkB,kBAAkB,KAAK;AAAA,EACpD;AAAA,EACA;AAAA,EACA,CAAC,EAAE,YAAY,UAAU,MAAM,OAAO,OAAO;AAAA,IAC3C,eAAe;AAAA,IACf,aAAa;AAAA,IACb,CAAC,OAAO;AAAA,IACR,YAAY;AAAA,IACZ,cAAc,CAAC;AAAA,EACjB;AACF;AAEO,MAAM,kBAAkB,kBAAkB,KAAK;AAAA,EACpD;AAAA,EACA;AAAA,EACA,CAAC,EAAE,MAAM,OAAO,YAAY,WAAW,UAAU,YAAY,OAAO;AAAA,IAClE,CAAC,OAAO;AAAA,IACR,UAAU;AAAA,IACV,eAAe;AAAA,IACf,cAAc;AAAA,IACd,aAAa;AAAA,IACb,iBAAiB;AAAA,EACnB;AACF;AAEO,MAAM,QAAQ,kBAAkB,KAAK;AAAA,EAC1C;AAAA,EACA;AAAA,EACA,CAAC,EAAE,cAAc,MAAM,SAAS,OAAO;AAAA,IACrC,iBAAiB;AAAA,IACjB,CAAC,OAAO;AAAA,IACR,aAAa;AAAA,EACf;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/constants.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const BOX_TYPES = {\n CATEGORY: 'category-box',\n GROUP: 'group-box',\n};\nexport const BOX_TYPES_ARRAY = [BOX_TYPES.CATEGORY, BOX_TYPES.GROUP];\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,YAAY;AAAA,EACvB,UAAU;AAAA,EACV,OAAO;AACT;AACO,MAAM,kBAAkB,CAAC,UAAU,UAAU,UAAU,KAAK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSGroupBox';\nexport * from './constants';\nexport { default } from './DSGroupBox';\n"],
|
|
5
|
-
"mappings": "AAAA;
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;AACd,SAAS,WAAAA,gBAAe;",
|
|
6
|
+
"names": ["default"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-group-box",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Group Box",
|
|
6
6
|
"files": [
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"indent": 4
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@elliemae/ds-classnames": "3.4.
|
|
71
|
-
"@elliemae/ds-system": "3.4.
|
|
72
|
-
"@elliemae/ds-truncated-tooltip-text": "3.4.
|
|
73
|
-
"@elliemae/ds-utilities": "3.4.
|
|
70
|
+
"@elliemae/ds-classnames": "3.4.3",
|
|
71
|
+
"@elliemae/ds-system": "3.4.3",
|
|
72
|
+
"@elliemae/ds-truncated-tooltip-text": "3.4.3",
|
|
73
|
+
"@elliemae/ds-utilities": "3.4.3",
|
|
74
74
|
"prop-types": "~15.8.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|