@elliemae/ds-group-box 2.3.1 → 3.0.0-alpha.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.
Files changed (65) hide show
  1. package/dist/cjs/ActionItem.js +55 -0
  2. package/dist/cjs/ActionItem.js.map +7 -0
  3. package/dist/cjs/Actions.js +64 -0
  4. package/dist/cjs/Actions.js.map +7 -0
  5. package/dist/cjs/DSGroupBox.js +121 -0
  6. package/dist/cjs/DSGroupBox.js.map +7 -0
  7. package/dist/cjs/GroupBoxLabel.js +83 -0
  8. package/dist/cjs/GroupBoxLabel.js.map +7 -0
  9. package/dist/cjs/LabelElement.js +52 -0
  10. package/dist/cjs/LabelElement.js.map +7 -0
  11. package/dist/cjs/components/GroupHeader.js +69 -0
  12. package/dist/cjs/components/GroupHeader.js.map +7 -0
  13. package/dist/cjs/components/blocks.js +58 -0
  14. package/dist/cjs/components/blocks.js.map +7 -0
  15. package/dist/cjs/constants.js +40 -0
  16. package/dist/cjs/constants.js.map +7 -0
  17. package/dist/cjs/index.js +37 -0
  18. package/dist/cjs/index.js.map +7 -0
  19. package/dist/esm/ActionItem.js +26 -0
  20. package/dist/esm/ActionItem.js.map +7 -0
  21. package/dist/esm/Actions.js +35 -0
  22. package/dist/esm/Actions.js.map +7 -0
  23. package/dist/esm/DSGroupBox.js +94 -0
  24. package/dist/esm/DSGroupBox.js.map +7 -0
  25. package/dist/esm/GroupBoxLabel.js +54 -0
  26. package/dist/esm/GroupBoxLabel.js.map +7 -0
  27. package/dist/esm/LabelElement.js +23 -0
  28. package/dist/esm/LabelElement.js.map +7 -0
  29. package/dist/esm/components/GroupHeader.js +40 -0
  30. package/dist/esm/components/GroupHeader.js.map +7 -0
  31. package/dist/esm/components/blocks.js +29 -0
  32. package/dist/esm/components/blocks.js.map +7 -0
  33. package/dist/esm/constants.js +11 -0
  34. package/dist/esm/constants.js.map +7 -0
  35. package/dist/esm/index.js +8 -0
  36. package/dist/esm/index.js.map +7 -0
  37. package/package.json +49 -38
  38. package/cjs/ActionItem.js +0 -24
  39. package/cjs/Actions.js +0 -37
  40. package/cjs/DSGroupBox.js +0 -140
  41. package/cjs/GroupBoxLabel.js +0 -40
  42. package/cjs/LabelElement.js +0 -24
  43. package/cjs/components/GroupHeader.js +0 -53
  44. package/cjs/components/blocks.js +0 -56
  45. package/cjs/constants.js +0 -12
  46. package/cjs/index.js +0 -14
  47. package/esm/ActionItem.js +0 -17
  48. package/esm/Actions.js +0 -27
  49. package/esm/DSGroupBox.js +0 -128
  50. package/esm/GroupBoxLabel.js +0 -33
  51. package/esm/LabelElement.js +0 -17
  52. package/esm/components/GroupHeader.js +0 -44
  53. package/esm/components/blocks.js +0 -50
  54. package/esm/constants.js +0 -7
  55. package/esm/index.js +0 -2
  56. package/types/ActionItem.d.ts +0 -11
  57. package/types/Actions.d.ts +0 -16
  58. package/types/DSGroupBox.d.ts +0 -113
  59. package/types/GroupBoxLabel.d.ts +0 -21
  60. package/types/LabelElement.d.ts +0 -11
  61. package/types/components/GroupHeader.d.ts +0 -13
  62. package/types/components/blocks.d.ts +0 -4
  63. package/types/constants.d.ts +0 -5
  64. package/types/index.d.ts +0 -3
  65. package/types/tests/DSGroupBox.test.d.ts +0 -1
@@ -0,0 +1,37 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var src_exports = {};
29
+ __export(src_exports, {
30
+ default: () => import_DSGroupBox.default
31
+ });
32
+ var React = __toESM(require("react"));
33
+ __reExport(src_exports, require("./DSGroupBox"));
34
+ __reExport(src_exports, require("./constants"));
35
+ var import_DSGroupBox = __toESM(require("./DSGroupBox"));
36
+ module.exports = __toCommonJS(src_exports);
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export * from './DSGroupBox';\nexport * from './constants';\nexport { default } from './DSGroupBox';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc;AACd,wBAAc;AACd,wBAAwB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import styled from "styled-components";
4
+ import { __UNSAFE_SPACE_TO_DIMSUM } from "@elliemae/ds-system";
5
+ import PropTypes from "prop-types";
6
+ const ActionItemNode = styled.div`
7
+ padding-right: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};
8
+ font-weight: 300;
9
+ overflow: hidden;
10
+ align-items: center;
11
+ display: flex;
12
+ &:last-child {
13
+ padding-right: 0;
14
+ }
15
+ `;
16
+ function ActionItem({ children }) {
17
+ return /* @__PURE__ */ React2.createElement(ActionItemNode, null, children);
18
+ }
19
+ ActionItem.propTypes = {
20
+ children: PropTypes.node.isRequired
21
+ };
22
+ var ActionItem_default = ActionItem;
23
+ export {
24
+ ActionItem_default as default
25
+ };
26
+ //# sourceMappingURL=ActionItem.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ActionItem.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport styled from 'styled-components';\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;ACAA;AACA;AACA;AACA;AAEA,MAAM,iBAAiB,OAAO;AAAA,mBACX,WAAS,yBAAyB,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUvE,oBAAoB,EAAE,YAAY;AAChC,SAAO,qCAAC,gBAAD,MAAiB;AAAA;AAG1B,WAAW,YAAY;AAAA,EACrB,UAAU,UAAU,KAAK;AAAA;AAG3B,IAAO,qBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,35 @@
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 { space } from "@xstyled/styled-components";
6
+ import { __UNSAFE_SPACE_TO_DIMSUM } from "@elliemae/ds-system";
7
+ import ActionItem from "./ActionItem";
8
+ const ActionsNode = styled.div`
9
+ display: flex;
10
+ flex-direction: row;
11
+ padding-left: ${(props) => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)};
12
+ overflow: hidden;
13
+ ${space}
14
+ `;
15
+ function Actions({ actions = [], centerActions, rightActions }) {
16
+ if (actions.length < 1)
17
+ return null;
18
+ return /* @__PURE__ */ React2.createElement(ActionsNode, {
19
+ marginLeft: !!rightActions && "auto",
20
+ marginRight: !!centerActions && "auto"
21
+ }, actions.map((action, key) => /* @__PURE__ */ React2.createElement(ActionItem, {
22
+ key
23
+ }, action)));
24
+ }
25
+ Actions.propTypes = {
26
+ actions: PropTypes.array,
27
+ centerActions: PropTypes.bool,
28
+ rightActions: PropTypes.bool
29
+ };
30
+ var Actions_default = Actions;
31
+ export {
32
+ Actions,
33
+ Actions_default as default
34
+ };
35
+ //# sourceMappingURL=Actions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/Actions.tsx"],
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 from 'styled-components';\nimport { space } from '@xstyled/styled-components';\nimport { __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\nfunction Actions({ actions = [], centerActions, rightActions }) {\n if (actions.length < 1) return null;\n return (\n <ActionsNode\n marginLeft={!!rightActions && 'auto'}\n marginRight={!!centerActions && 'auto'}\n >\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;ACCA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA,kBAGT,CAAC,UAAU,yBAAyB,MAAM,MAAM,MAAM;AAAA;AAAA,IAEpE;AAAA;AAGJ,iBAAiB,EAAE,UAAU,IAAI,eAAe,gBAAgB;AAC9D,MAAI,QAAQ,SAAS;AAAG,WAAO;AAC/B,SACE,qCAAC,aAAD;AAAA,IACE,YAAY,CAAC,CAAC,gBAAgB;AAAA,IAC9B,aAAa,CAAC,CAAC,iBAAiB;AAAA,KAE/B,QAAQ,IAAI,CAAC,QAAQ,QACpB,qCAAC,YAAD;AAAA,IAAY;AAAA,KAAW;AAAA;AAM/B,QAAQ,YAAY;AAAA,EAClB,SAAS,UAAU;AAAA,EACnB,eAAe,UAAU;AAAA,EACzB,cAAc,UAAU;AAAA;AAI1B,IAAO,kBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,94 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import * as React from "react";
21
+ import React2 from "react";
22
+ import { PropTypes, describe } from "react-desc";
23
+ import { GroupBoxWrapper, GroupBoxContent } from "./components/blocks";
24
+ import { DSGroupBoxHeader } from "./components/GroupHeader";
25
+ import { BOX_TYPES, BOX_TYPES_ARRAY } from "./constants";
26
+ const DSGroupBox = ({
27
+ containerProps = {},
28
+ labelProps = {
29
+ labelText: "",
30
+ borderBottom: false,
31
+ id: "ds-group-box__header"
32
+ },
33
+ rightActions = [],
34
+ centerActions = [],
35
+ type = BOX_TYPES.CATEGORY,
36
+ asRow = false,
37
+ onlyHeader = false,
38
+ noBorder = true,
39
+ noPadding = false,
40
+ children: components = [],
41
+ isMain = true
42
+ }) => {
43
+ const { labelText } = labelProps;
44
+ return /* @__PURE__ */ React2.createElement(GroupBoxWrapper, __spreadProps(__spreadValues({}, containerProps), {
45
+ classProps: { onlyHeader, noBorder, type, isMain }
46
+ }), labelText && /* @__PURE__ */ React2.createElement(DSGroupBoxHeader, {
47
+ centerActions,
48
+ isMain,
49
+ labelProps,
50
+ noBorder,
51
+ rightActions,
52
+ type
53
+ }), /* @__PURE__ */ React2.createElement(GroupBoxContent, {
54
+ classProps: {
55
+ type,
56
+ asRow,
57
+ onlyHeader,
58
+ noPadding,
59
+ noBorder,
60
+ noBorderTop: !!labelText
61
+ }
62
+ }, components && components.props ? React2.Children.map(components, (component) => React2.cloneElement(component, __spreadProps(__spreadValues({}, component.props), {
63
+ isMain: false
64
+ })), null) : components));
65
+ };
66
+ const props = {
67
+ containerProps: PropTypes.object.description("props to inject to wrapper"),
68
+ labelProps: PropTypes.shape({
69
+ labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
70
+ borderBottom: PropTypes.bool,
71
+ id: PropTypes.string
72
+ }).description("Label attributes to be rendered"),
73
+ type: PropTypes.oneOf(BOX_TYPES_ARRAY).description(BOX_TYPES_ARRAY.toString()),
74
+ children: PropTypes.oneOfType([
75
+ PropTypes.element,
76
+ PropTypes.arrayOf(PropTypes.element)
77
+ ]).isRequired.description("Components to be rendered inside the box"),
78
+ rightActions: PropTypes.arrayOf(PropTypes.element).description("Actions on the right side of the label"),
79
+ centerActions: PropTypes.arrayOf(PropTypes.element).description("Actions on the next to the label"),
80
+ asRow: PropTypes.bool.description("Display the content of the group box with flex direction row"),
81
+ onlyHeader: PropTypes.bool.description("Show border only on the header"),
82
+ noBorder: PropTypes.bool.description("Remove the wrapper border"),
83
+ noPadding: PropTypes.bool.description("Remove the top and bottom padding from the content")
84
+ };
85
+ DSGroupBox.propTypes = props;
86
+ const DSGroupBoxWithSchema = describe(DSGroupBox);
87
+ DSGroupBoxWithSchema.propTypes = props;
88
+ var DSGroupBox_default = DSGroupBox;
89
+ export {
90
+ DSGroupBox,
91
+ DSGroupBoxWithSchema,
92
+ DSGroupBox_default as default
93
+ };
94
+ //# sourceMappingURL=DSGroupBox.js.map
@@ -0,0 +1,7 @@
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,iCACM,iBADN;AAAA,IAEE,YAAY,EAAE,YAAY,UAAU,MAAM;AAAA,MAEzC,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,iCACzB,UAAU,QADe;AAAA,IAE5B,QAAQ;AAAA,OAEZ,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
+ }
@@ -0,0 +1,54 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,23 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,40 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,29 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,11 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export * from "./DSGroupBox";
3
+ export * from "./constants";
4
+ import { default as default2 } from "./DSGroupBox";
5
+ export {
6
+ default2 as default
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
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
+ }
package/package.json CHANGED
@@ -1,47 +1,50 @@
1
1
  {
2
2
  "name": "@elliemae/ds-group-box",
3
- "version": "2.3.1",
3
+ "version": "3.0.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Group Box",
6
- "module": "./esm/index.js",
7
- "main": "./cjs/index.js",
8
- "types": "./types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./esm/index.js",
12
- "require": "./cjs/index.js"
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
13
16
  },
14
17
  "./LabelElement": {
15
- "import": "./esm/LabelElement.js",
16
- "require": "./cjs/LabelElement.js"
18
+ "import": "./dist/esm/LabelElement.js",
19
+ "require": "./dist/cjs/LabelElement.js"
17
20
  },
18
21
  "./GroupBoxLabel": {
19
- "import": "./esm/GroupBoxLabel.js",
20
- "require": "./cjs/GroupBoxLabel.js"
22
+ "import": "./dist/esm/GroupBoxLabel.js",
23
+ "require": "./dist/cjs/GroupBoxLabel.js"
21
24
  },
22
25
  "./DSGroupBox": {
23
- "import": "./esm/DSGroupBox.js",
24
- "require": "./cjs/DSGroupBox.js"
26
+ "import": "./dist/esm/DSGroupBox.js",
27
+ "require": "./dist/cjs/DSGroupBox.js"
25
28
  },
26
29
  "./constants": {
27
- "import": "./esm/constants.js",
28
- "require": "./cjs/constants.js"
30
+ "import": "./dist/esm/constants.js",
31
+ "require": "./dist/cjs/constants.js"
29
32
  },
30
33
  "./components/GroupHeader": {
31
- "import": "./esm/components/GroupHeader.js",
32
- "require": "./cjs/components/GroupHeader.js"
34
+ "import": "./dist/esm/components/GroupHeader.js",
35
+ "require": "./dist/cjs/components/GroupHeader.js"
33
36
  },
34
37
  "./components/blocks": {
35
- "import": "./esm/components/blocks.js",
36
- "require": "./cjs/components/blocks.js"
38
+ "import": "./dist/esm/components/blocks.js",
39
+ "require": "./dist/cjs/components/blocks.js"
37
40
  },
38
41
  "./Actions": {
39
- "import": "./esm/Actions.js",
40
- "require": "./cjs/Actions.js"
42
+ "import": "./dist/esm/Actions.js",
43
+ "require": "./dist/cjs/Actions.js"
41
44
  },
42
45
  "./ActionItem": {
43
- "import": "./esm/ActionItem.js",
44
- "require": "./cjs/ActionItem.js"
46
+ "import": "./dist/esm/ActionItem.js",
47
+ "require": "./dist/cjs/ActionItem.js"
45
48
  }
46
49
  },
47
50
  "sideEffects": [
@@ -53,37 +56,45 @@
53
56
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
54
57
  },
55
58
  "engines": {
56
- "npm": ">=7",
57
- "node": ">=14"
59
+ "pnpm": ">=6",
60
+ "node": ">=16"
58
61
  },
59
62
  "author": "ICE MT",
60
- "scripts": {
61
- "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
62
- "prebuild": "exit 0",
63
- "predev": "exit 0",
64
- "build": "node ../../scripts/build/build.js"
63
+ "jestSonar": {
64
+ "sonar56x": true,
65
+ "reportPath": "reports",
66
+ "reportFile": "tests.xml",
67
+ "indent": 4
65
68
  },
66
69
  "dependencies": {
67
- "@elliemae/ds-classnames": "2.3.1",
68
- "@elliemae/ds-system": "2.3.1",
69
- "@elliemae/ds-truncated-tooltip-text": "2.3.1",
70
- "@xstyled/styled-components": "~3.1.1",
70
+ "@elliemae/ds-classnames": "3.0.0-alpha.3",
71
+ "@elliemae/ds-system": "3.0.0-alpha.3",
72
+ "@elliemae/ds-truncated-tooltip-text": "3.0.0-alpha.3",
73
+ "@xstyled/styled-components": "~3.1.2",
71
74
  "prop-types": "~15.7.2",
72
75
  "react-desc": "~4.1.3"
73
76
  },
74
77
  "devDependencies": {
75
- "@testing-library/jest-dom": "~5.15.0",
78
+ "@testing-library/jest-dom": "~5.15.1",
76
79
  "@testing-library/react": "~12.1.2",
77
- "styled-components": "~5.3.3"
80
+ "styled-components": "~5.3.3",
81
+ "styled-system": "~5.1.5"
78
82
  },
79
83
  "peerDependencies": {
80
84
  "react": "^17.0.2",
81
85
  "react-dom": "^17.0.2",
82
- "styled-components": "^5.3.3"
86
+ "styled-components": "^5.3.3",
87
+ "styled-system": "^5.1.5"
83
88
  },
84
89
  "publishConfig": {
85
90
  "access": "public",
86
- "directory": "dist",
87
- "generateSubmodules": true
91
+ "typeSafety": false
92
+ },
93
+ "scripts": {
94
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
95
+ "test": "node ../../scripts/testing/test.mjs",
96
+ "lint": "node ../../scripts/lint.mjs",
97
+ "dts": "node ../../scripts/dts.mjs",
98
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
88
99
  }
89
100
  }
package/cjs/ActionItem.js DELETED
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- var _jsx = require('@babel/runtime/helpers/jsx');
4
- require('react');
5
- var styled = require('styled-components');
6
- var dsSystem = require('@elliemae/ds-system');
7
-
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
-
10
- var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
11
- var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
-
13
- const ActionItemNode = /*#__PURE__*/styled__default["default"].div.withConfig({
14
- componentId: "sc-1ysc0gb-0"
15
- })(["padding-right:", ";font-weight:300;overflow:hidden;align-items:center;display:flex;&:last-child{padding-right:0;}"], props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs));
16
-
17
- function ActionItem(_ref) {
18
- let {
19
- children
20
- } = _ref;
21
- return /*#__PURE__*/_jsx__default["default"](ActionItemNode, {}, void 0, children);
22
- }
23
-
24
- module.exports = ActionItem;