@elliemae/ds-group-box 2.0.0-alpha.3 → 2.0.0-alpha.7

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 CHANGED
@@ -10,14 +10,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const ActionItemNode = /*#__PURE__*/styled__default['default'].div.withConfig({
13
+ const ActionItemNode = /*#__PURE__*/styled__default["default"].div.withConfig({
14
14
  componentId: "sc-1ysc0gb-0"
15
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
16
 
17
17
  function ActionItem({
18
18
  children
19
19
  }) {
20
- return /*#__PURE__*/_jsx__default['default'](ActionItemNode, {}, void 0, children);
20
+ return /*#__PURE__*/_jsx__default["default"](ActionItemNode, {}, void 0, children);
21
21
  }
22
22
 
23
23
  module.exports = ActionItem;
package/cjs/Actions.js CHANGED
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
15
15
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
16
16
 
17
- const ActionsNode = /*#__PURE__*/styled__default['default'].div.withConfig({
17
+ const ActionsNode = /*#__PURE__*/styled__default["default"].div.withConfig({
18
18
  componentId: "sc-1umfb8g-0"
19
19
  })(["display:flex;flex-direction:row;padding-left:", ";overflow:hidden;", ""], props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), styledSystem.margin);
20
20
 
@@ -24,11 +24,11 @@ function Actions({
24
24
  rightActions
25
25
  }) {
26
26
  if (actions.length < 1) return null;
27
- return /*#__PURE__*/_jsx__default['default'](ActionsNode, {
27
+ return /*#__PURE__*/_jsx__default["default"](ActionsNode, {
28
28
  marginLeft: !!rightActions && 'auto',
29
29
  marginRight: !!centerActions && 'auto'
30
- }, void 0, actions.map((action, key) => /*#__PURE__*/_jsx__default['default'](ActionItem, {}, key, action)));
30
+ }, void 0, actions.map((action, key) => /*#__PURE__*/_jsx__default["default"](ActionItem, {}, key, action)));
31
31
  }
32
32
 
33
33
  exports.Actions = Actions;
34
- exports['default'] = Actions;
34
+ exports["default"] = Actions;
package/cjs/DSGroupBox.js CHANGED
@@ -19,7 +19,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
19
 
20
20
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
21
21
 
22
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
23
23
 
24
24
  const DSGroupBox = ({
25
25
  containerProps = {},
@@ -49,14 +49,14 @@ const DSGroupBox = ({
49
49
  type,
50
50
  isMain
51
51
  },
52
- children: [labelText && /*#__PURE__*/_jsx__default['default'](GroupHeader.DSGroupBoxHeader, {
52
+ children: [labelText && /*#__PURE__*/_jsx__default["default"](GroupHeader.DSGroupBoxHeader, {
53
53
  centerActions: centerActions,
54
54
  isMain: isMain,
55
55
  labelProps: labelProps,
56
56
  noBorder: noBorder,
57
57
  rightActions: rightActions,
58
58
  type: type
59
- }), /*#__PURE__*/_jsx__default['default'](blocks.GroupBoxContent, {
59
+ }), /*#__PURE__*/_jsx__default["default"](blocks.GroupBoxContent, {
60
60
  classProps: {
61
61
  type,
62
62
  asRow,
@@ -65,7 +65,7 @@ const DSGroupBox = ({
65
65
  noBorder,
66
66
  noBorderTop: !!labelText
67
67
  }
68
- }, void 0, components && components.props ? React__default['default'].Children.map(components, component => /*#__PURE__*/React__default['default'].cloneElement(component, _objectSpread(_objectSpread({}, component.props), {}, {
68
+ }, void 0, components && components.props ? React__default["default"].Children.map(components, component => /*#__PURE__*/React__default["default"].cloneElement(component, _objectSpread(_objectSpread({}, component.props), {}, {
69
69
  isMain: false
70
70
  })), null) : components)]
71
71
  }));
@@ -129,4 +129,4 @@ DSGroupBoxWithSchema.propTypes = props;
129
129
 
130
130
  exports.DSGroupBox = DSGroupBox;
131
131
  exports.DSGroupBoxWithSchema = DSGroupBoxWithSchema;
132
- exports['default'] = DSGroupBox;
132
+ exports["default"] = DSGroupBox;
@@ -27,7 +27,7 @@ const groupBoxStyles = `
27
27
  font-size: ${props => dsSystem.toMobile(props.theme.fontSizes.title[500])};
28
28
  padding: 12px 0;
29
29
  `;
30
- const GroupBoxLabelNode = /*#__PURE__*/styled__default['default'].div.withConfig({
30
+ const GroupBoxLabelNode = /*#__PURE__*/styled__default["default"].div.withConfig({
31
31
  componentId: "sc-141ikkh-0"
32
32
  })(["", " ", " ", " ", ""], props => props.nodeType === 'category-box' ? categoryBoxStyles : groupBoxStyles, props => props.noBorder ? 'border: none;' : '', props => props.borderBottom ? `border-bottom: ${borderBase200(props)}` : '', props => props.isMain ? `padding-right: ${dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)};` : '');
33
33
 
@@ -39,7 +39,7 @@ function GroupBoxLabel({
39
39
  type,
40
40
  id
41
41
  }) {
42
- return /*#__PURE__*/_jsx__default['default'](GroupBoxLabelNode, {
42
+ return /*#__PURE__*/_jsx__default["default"](GroupBoxLabelNode, {
43
43
  borderBottom: borderBottom,
44
44
  "data-testid": "ds-group-box__header",
45
45
  isMain: isMain,
@@ -10,14 +10,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const LabelElementNode = /*#__PURE__*/styled__default['default'].div.withConfig({
13
+ const LabelElementNode = /*#__PURE__*/styled__default["default"].div.withConfig({
14
14
  componentId: "sc-nu03bl-0"
15
15
  })(["overflow:hidden;display:flex;align-items:center;font-size:", ";font-weight:400;"], props => dsSystem.toMobile(props.theme.fontSizes.title[700]));
16
16
 
17
17
  function LabelElement({
18
18
  children
19
19
  }) {
20
- return /*#__PURE__*/_jsx__default['default'](LabelElementNode, {}, void 0, children);
20
+ return /*#__PURE__*/_jsx__default["default"](LabelElementNode, {}, void 0, children);
21
21
  }
22
22
 
23
23
  module.exports = LabelElement;
@@ -32,18 +32,18 @@ const DSGroupBoxHeader = ({
32
32
  borderBottom,
33
33
  id
34
34
  } = labelProps;
35
- return /*#__PURE__*/_jsx__default['default'](GroupBoxLabel, {
35
+ return /*#__PURE__*/_jsx__default["default"](GroupBoxLabel, {
36
36
  borderBottom: borderBottom,
37
37
  isMain: isMain,
38
38
  noBorder: noBorder,
39
39
  type: type,
40
40
  id: id
41
- }, void 0, /*#__PURE__*/_jsx__default['default'](LabelElement, {}, void 0, /*#__PURE__*/_jsx__default['default'](DSTruncatedTooltipText__default['default'], {
41
+ }, void 0, /*#__PURE__*/_jsx__default["default"](LabelElement, {}, void 0, /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
42
42
  value: labelText
43
- })), /*#__PURE__*/_jsx__default['default'](Actions.Actions, {
43
+ })), /*#__PURE__*/_jsx__default["default"](Actions.Actions, {
44
44
  actions: centerActions,
45
45
  centerActions: centerActions.length > 0
46
- }), /*#__PURE__*/_jsx__default['default'](Actions.Actions, {
46
+ }), /*#__PURE__*/_jsx__default["default"](Actions.Actions, {
47
47
  actions: rightActions,
48
48
  rightActions: rightActions.length > 0
49
49
  }));
package/cjs/index.js CHANGED
@@ -9,6 +9,6 @@ var constants = require('./constants.js');
9
9
 
10
10
  exports.DSGroupBox = DSGroupBox.DSGroupBox;
11
11
  exports.DSGroupBoxWithSchema = DSGroupBox.DSGroupBoxWithSchema;
12
- exports.default = DSGroupBox.DSGroupBox;
12
+ exports["default"] = DSGroupBox.DSGroupBox;
13
13
  exports.BOX_TYPES = constants.BOX_TYPES;
14
14
  exports.BOX_TYPES_ARRAY = constants.BOX_TYPES_ARRAY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-group-box",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Group Box",
6
6
  "module": "./esm/index.js",
@@ -64,9 +64,9 @@
64
64
  "build": "node ../../scripts/build/build.js"
65
65
  },
66
66
  "dependencies": {
67
- "@elliemae/ds-classnames": "2.0.0-alpha.3",
68
- "@elliemae/ds-system": "2.0.0-alpha.3",
69
- "@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.3",
67
+ "@elliemae/ds-classnames": "2.0.0-alpha.7",
68
+ "@elliemae/ds-system": "2.0.0-alpha.7",
69
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.7",
70
70
  "prop-types": "~15.7.2",
71
71
  "react-desc": "~4.1.3"
72
72
  },