@elliemae/ds-group-box 2.3.0-alpha.8 → 2.3.0-next.2
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/cjs/ActionItem.js +24 -0
- package/cjs/Actions.js +37 -0
- package/cjs/DSGroupBox.js +140 -0
- package/cjs/GroupBoxLabel.js +40 -0
- package/cjs/LabelElement.js +24 -0
- package/cjs/components/GroupHeader.js +53 -0
- package/cjs/components/blocks.js +56 -0
- package/cjs/constants.js +12 -0
- package/cjs/index.js +14 -0
- package/esm/ActionItem.js +17 -0
- package/esm/Actions.js +27 -0
- package/esm/DSGroupBox.js +128 -0
- package/esm/GroupBoxLabel.js +33 -0
- package/esm/LabelElement.js +17 -0
- package/esm/components/GroupHeader.js +44 -0
- package/esm/components/blocks.js +50 -0
- package/esm/constants.js +7 -0
- package/esm/index.js +2 -0
- package/package.json +37 -39
- package/types/ActionItem.d.ts +11 -0
- package/types/Actions.d.ts +16 -0
- package/types/DSGroupBox.d.ts +113 -0
- package/types/GroupBoxLabel.d.ts +21 -0
- package/types/LabelElement.d.ts +11 -0
- package/types/components/GroupHeader.d.ts +13 -0
- package/types/components/blocks.d.ts +4 -0
- package/types/constants.d.ts +5 -0
- package/types/index.d.ts +3 -0
- package/types/tests/DSGroupBox.test.d.ts +1 -0
- package/dist/cjs/ActionItem.js +0 -55
- package/dist/cjs/ActionItem.js.map +0 -7
- package/dist/cjs/Actions.js +0 -64
- package/dist/cjs/Actions.js.map +0 -7
- package/dist/cjs/DSGroupBox.js +0 -106
- package/dist/cjs/DSGroupBox.js.map +0 -7
- package/dist/cjs/GroupBoxLabel.js +0 -83
- package/dist/cjs/GroupBoxLabel.js.map +0 -7
- package/dist/cjs/LabelElement.js +0 -52
- package/dist/cjs/LabelElement.js.map +0 -7
- package/dist/cjs/components/GroupHeader.js +0 -69
- package/dist/cjs/components/GroupHeader.js.map +0 -7
- package/dist/cjs/components/blocks.js +0 -58
- package/dist/cjs/components/blocks.js.map +0 -7
- package/dist/cjs/constants.js +0 -40
- package/dist/cjs/constants.js.map +0 -7
- package/dist/cjs/index.js +0 -37
- package/dist/cjs/index.js.map +0 -7
- package/dist/esm/ActionItem.js +0 -26
- package/dist/esm/ActionItem.js.map +0 -7
- package/dist/esm/Actions.js +0 -35
- package/dist/esm/Actions.js.map +0 -7
- package/dist/esm/DSGroupBox.js +0 -77
- package/dist/esm/DSGroupBox.js.map +0 -7
- package/dist/esm/GroupBoxLabel.js +0 -54
- package/dist/esm/GroupBoxLabel.js.map +0 -7
- package/dist/esm/LabelElement.js +0 -23
- package/dist/esm/LabelElement.js.map +0 -7
- package/dist/esm/components/GroupHeader.js +0 -40
- package/dist/esm/components/GroupHeader.js.map +0 -7
- package/dist/esm/components/blocks.js +0 -29
- package/dist/esm/components/blocks.js.map +0 -7
- package/dist/esm/constants.js +0 -11
- package/dist/esm/constants.js.map +0 -7
- package/dist/esm/index.js +0 -8
- package/dist/esm/index.js.map +0 -7
package/dist/esm/DSGroupBox.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { PropTypes, describe } from "react-desc";
|
|
4
|
-
import { GroupBoxWrapper, GroupBoxContent } from "./components/blocks";
|
|
5
|
-
import { DSGroupBoxHeader } from "./components/GroupHeader";
|
|
6
|
-
import { BOX_TYPES, BOX_TYPES_ARRAY } from "./constants";
|
|
7
|
-
const DSGroupBox = ({
|
|
8
|
-
containerProps = {},
|
|
9
|
-
labelProps = {
|
|
10
|
-
labelText: "",
|
|
11
|
-
borderBottom: false,
|
|
12
|
-
id: "ds-group-box__header"
|
|
13
|
-
},
|
|
14
|
-
rightActions = [],
|
|
15
|
-
centerActions = [],
|
|
16
|
-
type = BOX_TYPES.CATEGORY,
|
|
17
|
-
asRow = false,
|
|
18
|
-
onlyHeader = false,
|
|
19
|
-
noBorder = true,
|
|
20
|
-
noPadding = false,
|
|
21
|
-
children: components = [],
|
|
22
|
-
isMain = true
|
|
23
|
-
}) => {
|
|
24
|
-
const { labelText } = labelProps;
|
|
25
|
-
return /* @__PURE__ */ React2.createElement(GroupBoxWrapper, {
|
|
26
|
-
...containerProps,
|
|
27
|
-
classProps: { onlyHeader, noBorder, type, isMain }
|
|
28
|
-
}, labelText && /* @__PURE__ */ React2.createElement(DSGroupBoxHeader, {
|
|
29
|
-
centerActions,
|
|
30
|
-
isMain,
|
|
31
|
-
labelProps,
|
|
32
|
-
noBorder,
|
|
33
|
-
rightActions,
|
|
34
|
-
type
|
|
35
|
-
}), /* @__PURE__ */ React2.createElement(GroupBoxContent, {
|
|
36
|
-
classProps: {
|
|
37
|
-
type,
|
|
38
|
-
asRow,
|
|
39
|
-
onlyHeader,
|
|
40
|
-
noPadding,
|
|
41
|
-
noBorder,
|
|
42
|
-
noBorderTop: !!labelText
|
|
43
|
-
}
|
|
44
|
-
}, components && components.props ? React2.Children.map(components, (component) => React2.cloneElement(component, {
|
|
45
|
-
...component.props,
|
|
46
|
-
isMain: false
|
|
47
|
-
}), null) : components));
|
|
48
|
-
};
|
|
49
|
-
const props = {
|
|
50
|
-
containerProps: PropTypes.object.description("props to inject to wrapper"),
|
|
51
|
-
labelProps: PropTypes.shape({
|
|
52
|
-
labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
53
|
-
borderBottom: PropTypes.bool,
|
|
54
|
-
id: PropTypes.string
|
|
55
|
-
}).description("Label attributes to be rendered"),
|
|
56
|
-
type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(BOX_TYPES_ARRAY.toString()),
|
|
57
|
-
children: PropTypes.oneOfType([
|
|
58
|
-
PropTypes.element,
|
|
59
|
-
PropTypes.arrayOf(PropTypes.element)
|
|
60
|
-
]).isRequired.description("Components to be rendered inside the box"),
|
|
61
|
-
rightActions: PropTypes.arrayOf(PropTypes.element).description("Actions on the right side of the label"),
|
|
62
|
-
centerActions: PropTypes.arrayOf(PropTypes.element).description("Actions on the next to the label"),
|
|
63
|
-
asRow: PropTypes.bool.description("Display the content of the group box with flex direction row"),
|
|
64
|
-
onlyHeader: PropTypes.bool.description("Show border only on the header"),
|
|
65
|
-
noBorder: PropTypes.bool.description("Remove the wrapper border"),
|
|
66
|
-
noPadding: PropTypes.bool.description("Remove the top and bottom padding from the content")
|
|
67
|
-
};
|
|
68
|
-
DSGroupBox.propTypes = props;
|
|
69
|
-
const DSGroupBoxWithSchema = describe(DSGroupBox);
|
|
70
|
-
DSGroupBoxWithSchema.propTypes = props;
|
|
71
|
-
var DSGroupBox_default = DSGroupBox;
|
|
72
|
-
export {
|
|
73
|
-
DSGroupBox,
|
|
74
|
-
DSGroupBoxWithSchema,
|
|
75
|
-
DSGroupBox_default as default
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=DSGroupBox.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSGroupBox.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\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;\nconst DSGroupBoxWithSchema = describe(DSGroupBox);\n\nDSGroupBoxWithSchema.propTypes = props;\n\nexport { DSGroupBox, DSGroupBoxWithSchema };\nexport default DSGroupBox;\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,aAAa,CAAC;AAAA,EAClB,iBAAiB;AAAA,EACjB,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA;AAAA,EAEN,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,OAAO,UAAU;AAAA,EACjB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU,aAAa;AAAA,EAEvB,SAAS;AAAA,MACL;AACJ,QAAM,EAAE,cAAc;AACtB,SACE,qCAAC,iBAAD;AAAA,OACM;AAAA,IACJ,YAAY,EAAE,YAAY,UAAU,MAAM;AAAA,KAEzC,aACC,qCAAC,kBAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MAIJ,qCAAC,iBAAD;AAAA,IACE,YAAY;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,aAAa,CAAC,CAAC;AAAA;AAAA,KAGhB,cAAc,WAAW,QACtB,OAAM,SAAS,IACb,YACA,CAAC,cACC,OAAM,aAAa,WAAW;AAAA,OACzB,UAAU;AAAA,IACb,QAAQ;AAAA,MAEZ,QAEF;AAAA;AAMZ,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAI7C,YAAY,UAAU,MAAM;AAAA,IAC1B,WAAW,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU;AAAA,IAC5D,cAAc,UAAU;AAAA,IACxB,IAAI,UAAU;AAAA,KACb,YAAY;AAAA,EAIf,MAAM,UAAU,MAAM,iBAAiB,YACrC,gBAAgB;AAAA,EAKlB,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU;AAAA,IACV,UAAU,QAAQ,UAAU;AAAA,KAC3B,WAAW,YAAY;AAAA,EAI1B,cAAc,UAAU,QAAQ,UAAU,SAAS,YACjD;AAAA,EAKF,eAAe,UAAU,QAAQ,UAAU,SAAS,YAClD;AAAA,EAKF,OAAO,UAAU,KAAK,YACpB;AAAA,EAKF,YAAY,UAAU,KAAK,YAAY;AAAA,EAIvC,UAAU,UAAU,KAAK,YAAY;AAAA,EAIrC,WAAW,UAAU,KAAK,YACxB;AAAA;AAIJ,WAAW,YAAY;AACvB,MAAM,uBAAuB,SAAS;AAEtC,qBAAqB,YAAY;AAGjC,IAAO,qBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
import { __UNSAFE_SPACE_TO_DIMSUM, toMobile } from "@elliemae/ds-system";
|
|
6
|
-
import { BOX_TYPES_ARRAY } from "./constants";
|
|
7
|
-
const borderBase200 = (props) => `1px solid ${props.theme.colors.neutral[200]};`;
|
|
8
|
-
const categoryBoxStyles = `
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 36px;
|
|
11
|
-
padding:0 0;
|
|
12
|
-
color: ${(props) => props.theme.colors.neutral[800]};
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
align-items: center;
|
|
16
|
-
border-bottom: ${borderBase200}
|
|
17
|
-
`;
|
|
18
|
-
const groupBoxStyles = `
|
|
19
|
-
border: unset;
|
|
20
|
-
font-size: ${(props) => toMobile(props.theme.fontSizes.title[500])};
|
|
21
|
-
padding: 12px 0;
|
|
22
|
-
`;
|
|
23
|
-
const GroupBoxLabelNode = styled.div`
|
|
24
|
-
${(props) => props.nodeType === "category-box" ? categoryBoxStyles : groupBoxStyles}
|
|
25
|
-
${(props) => props.noBorder ? "border: none;" : ""}
|
|
26
|
-
${(props) => props.borderBottom ? `border-bottom: ${borderBase200(props)}` : ""}
|
|
27
|
-
${(props) => props.isMain ? `padding-right: ${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};` : ""}
|
|
28
|
-
`;
|
|
29
|
-
function GroupBoxLabel({ borderBottom, children, noBorder, isMain, type, id }) {
|
|
30
|
-
return /* @__PURE__ */ React2.createElement(GroupBoxLabelNode, {
|
|
31
|
-
borderBottom,
|
|
32
|
-
"data-testid": "ds-group-box__header",
|
|
33
|
-
isMain,
|
|
34
|
-
noBorder,
|
|
35
|
-
nodeType: type,
|
|
36
|
-
id
|
|
37
|
-
}, children);
|
|
38
|
-
}
|
|
39
|
-
GroupBoxLabel.propTypes = {
|
|
40
|
-
children: PropTypes.oneOfType([
|
|
41
|
-
PropTypes.arrayOf(PropTypes.node),
|
|
42
|
-
PropTypes.node
|
|
43
|
-
]).isRequired,
|
|
44
|
-
type: PropTypes.oneOf(BOX_TYPES_ARRAY),
|
|
45
|
-
borderBottom: PropTypes.bool,
|
|
46
|
-
isMain: PropTypes.bool.isRequired,
|
|
47
|
-
noBorder: PropTypes.bool,
|
|
48
|
-
id: PropTypes.string
|
|
49
|
-
};
|
|
50
|
-
var GroupBoxLabel_default = GroupBoxLabel;
|
|
51
|
-
export {
|
|
52
|
-
GroupBoxLabel_default as default
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=GroupBoxLabel.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/GroupBoxLabel.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\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;ACAA;AACA;AACA;AACA;AACA;AAEA,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;AAAA;AAAA;AAI/D,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,WAAW;AAAA,IAChE,CAAC,UACD,MAAM,SACF,kBAAkB,yBAAyB,MAAM,MAAM,MAAM,SAC7D;AAAA;AAER,uBAAuB,EAAE,cAAc,UAAU,UAAU,QAAQ,MAAM,MAAM;AAC7E,SACE,qCAAC,mBAAD;AAAA,IACE;AAAA,IACA,eAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,KAEC;AAAA;AAKP,cAAc,YAAY;AAAA,EACxB,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU,QAAQ,UAAU;AAAA,IAC5B,UAAU;AAAA,KACT;AAAA,EACH,MAAM,UAAU,MAAM;AAAA,EACtB,cAAc,UAAU;AAAA,EACxB,QAAQ,UAAU,KAAK;AAAA,EACvB,UAAU,UAAU;AAAA,EACpB,IAAI,UAAU;AAAA;AAGhB,IAAO,wBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/LabelElement.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
import { toMobile } from "@elliemae/ds-system";
|
|
6
|
-
const LabelElementNode = styled.div`
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
font-size: ${(props) => toMobile(props.theme.fontSizes.title[700])};
|
|
11
|
-
font-weight: 400;
|
|
12
|
-
`;
|
|
13
|
-
function LabelElement({ children }) {
|
|
14
|
-
return /* @__PURE__ */ React2.createElement(LabelElementNode, null, children);
|
|
15
|
-
}
|
|
16
|
-
LabelElement.propTypes = {
|
|
17
|
-
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired
|
|
18
|
-
};
|
|
19
|
-
var LabelElement_default = LabelElement;
|
|
20
|
-
export {
|
|
21
|
-
LabelElement_default as default
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=LabelElement.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/LabelElement.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\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;ACAA;AACA;AACA;AACA;AAEA,MAAM,mBAAmB,OAAO;AAAA;AAAA;AAAA;AAAA,eAIjB,CAAC,UAAU,SAAS,MAAM,MAAM,UAAU,MAAM;AAAA;AAAA;AAI/D,sBAAsB,EAAE,YAAY;AAClC,SAAO,qCAAC,kBAAD,MAAmB;AAAA;AAG5B,aAAa,YAAY;AAAA,EACvB,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO;AAAA;AAGpE,IAAO,uBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import DSTruncatedTooltipText from "@elliemae/ds-truncated-tooltip-text";
|
|
4
|
-
import { BOX_TYPES } from "../constants";
|
|
5
|
-
import Actions from "../Actions";
|
|
6
|
-
import LabelElement from "../LabelElement";
|
|
7
|
-
import Label from "../GroupBoxLabel";
|
|
8
|
-
const DSGroupBoxHeader = ({
|
|
9
|
-
labelProps = {
|
|
10
|
-
labelText: "",
|
|
11
|
-
borderBottom: false,
|
|
12
|
-
id: "ds-group-box__header"
|
|
13
|
-
},
|
|
14
|
-
rightActions = [],
|
|
15
|
-
centerActions = [],
|
|
16
|
-
type = BOX_TYPES.CATEGORY,
|
|
17
|
-
noBorder,
|
|
18
|
-
isMain
|
|
19
|
-
}) => {
|
|
20
|
-
const { labelText, borderBottom, id } = labelProps;
|
|
21
|
-
return /* @__PURE__ */ React2.createElement(Label, {
|
|
22
|
-
borderBottom,
|
|
23
|
-
isMain,
|
|
24
|
-
noBorder,
|
|
25
|
-
type,
|
|
26
|
-
id
|
|
27
|
-
}, /* @__PURE__ */ React2.createElement(LabelElement, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
|
|
28
|
-
value: labelText
|
|
29
|
-
})), /* @__PURE__ */ React2.createElement(Actions, {
|
|
30
|
-
actions: centerActions,
|
|
31
|
-
centerActions: centerActions.length > 0
|
|
32
|
-
}), /* @__PURE__ */ React2.createElement(Actions, {
|
|
33
|
-
actions: rightActions,
|
|
34
|
-
rightActions: rightActions.length > 0
|
|
35
|
-
}));
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
DSGroupBoxHeader
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=GroupHeader.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/GroupHeader.tsx"],
|
|
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;ACAA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,mBAAmB,CAAC;AAAA,EAC/B,aAAa;AAAA,IACX,WAAW;AAAA,IACX,cAAc;AAAA,IACd,IAAI;AAAA;AAAA,EAEN,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,OAAO,UAAU;AAAA,EACjB;AAAA,EACA;AAAA,MACI;AACJ,QAAM,EAAE,WAAW,cAAc,OAAO;AACxC,SACE,qCAAC,OAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,KAEA,qCAAC,cAAD,MACE,qCAAC,wBAAD;AAAA,IAAwB,OAAO;AAAA,OAEjC,qCAAC,SAAD;AAAA,IACE,SAAS;AAAA,IACT,eAAe,cAAc,SAAS;AAAA,MAExC,qCAAC,SAAD;AAAA,IAAS,SAAS;AAAA,IAAc,cAAc,aAAa,SAAS;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
3
|
-
const blockName = "group-box";
|
|
4
|
-
const GroupBoxWrapper = aggregatedClasses("div")(blockName, "wrapper", ({ onlyHeader, noBorder, type, isMain }) => ({
|
|
5
|
-
"only-header": onlyHeader,
|
|
6
|
-
"no-border": noBorder,
|
|
7
|
-
[type]: type,
|
|
8
|
-
"main-box": isMain,
|
|
9
|
-
"nested-box": !isMain
|
|
10
|
-
}));
|
|
11
|
-
const GroupBoxContent = aggregatedClasses("div")(blockName, "content", ({ type, asRow, onlyHeader, noPadding, noBorder, noBorderTop }) => ({
|
|
12
|
-
[type]: type,
|
|
13
|
-
"as-row": asRow,
|
|
14
|
-
"only-header": onlyHeader,
|
|
15
|
-
"no-padding": noPadding,
|
|
16
|
-
"no-border": noBorder,
|
|
17
|
-
"no-border-top": noBorderTop
|
|
18
|
-
}));
|
|
19
|
-
const Label = aggregatedClasses("div")(blockName, "label", ({ borderBottom, type, noBorder }) => ({
|
|
20
|
-
"border-bottom": borderBottom,
|
|
21
|
-
[type]: type,
|
|
22
|
-
"no-border": noBorder
|
|
23
|
-
}));
|
|
24
|
-
export {
|
|
25
|
-
GroupBoxContent,
|
|
26
|
-
GroupBoxWrapper,
|
|
27
|
-
Label
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=blocks.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/blocks.tsx"],
|
|
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;ACAA;AAEA,MAAM,YAAY;AAEX,MAAM,kBAAkB,kBAAkB,OAC/C,WACA,WACA,CAAC,EAAE,YAAY,UAAU,MAAM,aAAc;AAAA,EAC3C,eAAe;AAAA,EACf,aAAa;AAAA,GACZ,OAAO;AAAA,EACR,YAAY;AAAA,EACZ,cAAc,CAAC;AAAA;AAIZ,MAAM,kBAAkB,kBAAkB,OAC/C,WACA,WACA,CAAC,EAAE,MAAM,OAAO,YAAY,WAAW,UAAU,kBAAmB;AAAA,GACjE,OAAO;AAAA,EACR,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAAA,EACd,aAAa;AAAA,EACb,iBAAiB;AAAA;AAId,MAAM,QAAQ,kBAAkB,OACrC,WACA,SACA,CAAC,EAAE,cAAc,MAAM,eAAgB;AAAA,EACrC,iBAAiB;AAAA,GAChB,OAAO;AAAA,EACR,aAAa;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/constants.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
const BOX_TYPES = {
|
|
3
|
-
CATEGORY: "category-box",
|
|
4
|
-
GROUP: "group-box"
|
|
5
|
-
};
|
|
6
|
-
const BOX_TYPES_ARRAY = [BOX_TYPES.CATEGORY, BOX_TYPES.GROUP];
|
|
7
|
-
export {
|
|
8
|
-
BOX_TYPES,
|
|
9
|
-
BOX_TYPES_ARRAY
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/constants.tsx"],
|
|
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;ACAO,MAAM,YAAY;AAAA,EACvB,UAAU;AAAA,EACV,OAAO;AAAA;AAEF,MAAM,kBAAkB,CAAC,UAAU,UAAU,UAAU;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/index.js
DELETED
package/dist/esm/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSGroupBox';\nexport * from './constants';\nexport { default } from './DSGroupBox';\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|