@elliemae/ds-form 2.4.12 → 2.4.15

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.
@@ -25,7 +25,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
25
25
 
26
26
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
27
 
28
- const isOptionAGroup = option => option && option.type && option.type.name === 'Group';
28
+ const isOptionAGroup = option => option && option.type && option.type.name === 'Group' || option && option.key && option.key.includes('group');
29
29
 
30
30
  const CustomOption = _ref => {
31
31
  let {
@@ -18,7 +18,7 @@ const GROUP_TITLE = 13.44;
18
18
  const SEPARATOR = 17;
19
19
 
20
20
  function isGroup(opts) {
21
- return opts.length && opts[0].type.name === 'Group';
21
+ return opts.length && (opts[0].type.name === 'Group' || opts[0].key && opts[0].key.includes('group'));
22
22
  }
23
23
 
24
24
  function countOptions(opts) {
@@ -16,7 +16,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
16
16
 
17
17
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18
18
 
19
- const isOptionAGroup = option => option && option.type && option.type.name === 'Group';
19
+ const isOptionAGroup = option => option && option.type && option.type.name === 'Group' || option && option.key && option.key.includes('group');
20
20
 
21
21
  const CustomOption = _ref => {
22
22
  let {
@@ -14,7 +14,7 @@ const GROUP_TITLE = 13.44;
14
14
  const SEPARATOR = 17;
15
15
 
16
16
  function isGroup(opts) {
17
- return opts.length && opts[0].type.name === 'Group';
17
+ return opts.length && (opts[0].type.name === 'Group' || opts[0].key && opts[0].key.includes('group'));
18
18
  }
19
19
 
20
20
  function countOptions(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form",
3
- "version": "2.4.12",
3
+ "version": "2.4.15",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Form",
6
6
  "module": "./esm/index.js",
@@ -748,25 +748,25 @@
748
748
  "build": "node ../../scripts/build/build.js"
749
749
  },
750
750
  "dependencies": {
751
- "@elliemae/ds-button": "2.4.12",
752
- "@elliemae/ds-circular-progress-indicator": "2.4.12",
753
- "@elliemae/ds-classnames": "2.4.12",
754
- "@elliemae/ds-controlled-form": "2.4.12",
755
- "@elliemae/ds-dropdownmenu": "2.4.12",
756
- "@elliemae/ds-grid": "2.4.12",
757
- "@elliemae/ds-icon": "2.4.12",
758
- "@elliemae/ds-icons": "2.4.12",
759
- "@elliemae/ds-menu": "2.4.12",
760
- "@elliemae/ds-overlay": "2.4.12",
761
- "@elliemae/ds-popper": "2.4.12",
762
- "@elliemae/ds-props-helpers": "2.4.12",
763
- "@elliemae/ds-separator": "2.4.12",
764
- "@elliemae/ds-shared": "2.4.12",
765
- "@elliemae/ds-system": "2.4.12",
766
- "@elliemae/ds-text-wrapper": "2.4.12",
767
- "@elliemae/ds-tooltip": "2.4.12",
768
- "@elliemae/ds-truncated-tooltip-text": "2.4.12",
769
- "@elliemae/ds-utilities": "2.4.12",
751
+ "@elliemae/ds-button": "2.4.15",
752
+ "@elliemae/ds-circular-progress-indicator": "2.4.15",
753
+ "@elliemae/ds-classnames": "2.4.15",
754
+ "@elliemae/ds-controlled-form": "2.4.15",
755
+ "@elliemae/ds-dropdownmenu": "2.4.15",
756
+ "@elliemae/ds-grid": "2.4.15",
757
+ "@elliemae/ds-icon": "2.4.15",
758
+ "@elliemae/ds-icons": "2.4.15",
759
+ "@elliemae/ds-menu": "2.4.15",
760
+ "@elliemae/ds-overlay": "2.4.15",
761
+ "@elliemae/ds-popper": "2.4.15",
762
+ "@elliemae/ds-props-helpers": "2.4.15",
763
+ "@elliemae/ds-separator": "2.4.15",
764
+ "@elliemae/ds-shared": "2.4.15",
765
+ "@elliemae/ds-system": "2.4.15",
766
+ "@elliemae/ds-text-wrapper": "2.4.15",
767
+ "@elliemae/ds-tooltip": "2.4.15",
768
+ "@elliemae/ds-truncated-tooltip-text": "2.4.15",
769
+ "@elliemae/ds-utilities": "2.4.15",
770
770
  "@elliemae/react-popper": "1.0.2",
771
771
  "@xstyled/styled-components": "~3.1.1",
772
772
  "csstype": "~3.0.9",