@elliemae/ds-dialog 2.2.0-next.6 → 2.2.0-next.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/DSDialog.js CHANGED
@@ -13,7 +13,6 @@ require('core-js/modules/esnext.async-iterator.for-each.js');
13
13
  require('core-js/modules/esnext.iterator.for-each.js');
14
14
  var ReactDOM = require('react-dom');
15
15
  var react = require('react');
16
- var reactDesc = require('react-desc');
17
16
  var dsPropsHelpers = require('@elliemae/ds-props-helpers');
18
17
  var styles = require('./styles.js');
19
18
  var propTypes = require('./propTypes.js');
@@ -105,7 +104,7 @@ const DSDialog = props => {
105
104
  return null;
106
105
  };
107
106
 
108
- const DSDialogWithSchema = reactDesc.describe(DSDialog);
107
+ const DSDialogWithSchema = dsPropsHelpers.describe(DSDialog);
109
108
  DSDialogWithSchema.propTypes = propTypes.propTypes;
110
109
 
111
110
  exports.DSDialog = DSDialog;
package/cjs/propTypes.js CHANGED
@@ -8,7 +8,6 @@ require('core-js/modules/esnext.iterator.filter.js');
8
8
  require('core-js/modules/esnext.async-iterator.for-each.js');
9
9
  require('core-js/modules/esnext.iterator.for-each.js');
10
10
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
11
- var reactDesc = require('react-desc');
12
11
  var dsPropsHelpers = require('@elliemae/ds-props-helpers');
13
12
  var utils = require('./utils.js');
14
13
 
@@ -19,13 +18,14 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
19
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
19
 
21
20
  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; }
22
- const propTypes = _objectSpread({
23
- isOpen: reactDesc.PropTypes.bool.description('Whether the Dialog is open or not.').defaultValue(false),
24
- children: reactDesc.PropTypes.node.description('Nested components.').isRequired,
25
- centered: reactDesc.PropTypes.bool.description('Centers the Dialog.').defaultValue(false),
26
- size: reactDesc.PropTypes.oneOf(utils.DSDialogSizesArrayValues).description("Dialog's width size.").defaultValue(utils.DSDialogSizes.DEFAULT),
27
- removeAutoFocus: reactDesc.PropTypes.bool.description('Removes focus in the Dialog container when is open. If you want to focus an specific element in the Dialog, it should be set to true.').defaultValue(false),
28
- onClickOutside: reactDesc.PropTypes.func.description('Callback that should be used to close the modal when the user clicks outside. Cb also triggers when the user press ESC key for accessibility purposes.').defaultValue(() => {})
29
- }, dsPropsHelpers.globalAttributesPropTypes);
21
+ const propTypes = _objectSpread(_objectSpread({
22
+ isOpen: dsPropsHelpers.PropTypes.bool.description('Whether the Dialog is open or not.').defaultValue(false),
23
+ children: dsPropsHelpers.PropTypes.node.description('Nested components.').isRequired,
24
+ centered: dsPropsHelpers.PropTypes.bool.description('Centers the Dialog.').defaultValue(false),
25
+ removeAutoFocus: dsPropsHelpers.PropTypes.bool.description('Removes focus in the Dialog container when is open. If you want to focus an specific element in the Dialog, it should be set to true.').defaultValue(false),
26
+ onClickOutside: dsPropsHelpers.PropTypes.func.description('Callback that should be used to close the modal when the user clicks outside. Cb also triggers when the user press ESC key for accessibility purposes.').defaultValue(() => {})
27
+ }, dsPropsHelpers.globalAttributesPropTypes), {}, {
28
+ size: dsPropsHelpers.PropTypes.oneOf(utils.DSDialogSizesArrayValues).description("Dialog's width size.").defaultValue(utils.DSDialogSizes.DEFAULT)
29
+ });
30
30
 
31
31
  exports.propTypes = propTypes;
package/esm/DSDialog.js CHANGED
@@ -9,8 +9,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutPr
9
9
  import 'core-js/modules/web.dom-collections.iterator.js';
10
10
  import ReactDOM from 'react-dom';
11
11
  import { useState, useRef, useCallback, useEffect } from 'react';
12
- import { describe } from 'react-desc';
13
- import { useMemoMergePropsWithDefault, useValidateTypescriptPropTypes, useGetGlobalAttributes } from '@elliemae/ds-props-helpers';
12
+ import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes, useGetGlobalAttributes } from '@elliemae/ds-props-helpers';
14
13
  import { StyledDialogBackground, FixedBody, StyledDialogContainer } from './styles.js';
15
14
  import { propTypes } from './propTypes.js';
16
15
  import { defaultProps } from './defaultProps.js';
package/esm/propTypes.js CHANGED
@@ -4,20 +4,20 @@ import 'core-js/modules/esnext.iterator.filter.js';
4
4
  import 'core-js/modules/esnext.async-iterator.for-each.js';
5
5
  import 'core-js/modules/esnext.iterator.for-each.js';
6
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
- import { PropTypes } from 'react-desc';
8
- import { globalAttributesPropTypes } from '@elliemae/ds-props-helpers';
7
+ import { PropTypes, globalAttributesPropTypes } from '@elliemae/ds-props-helpers';
9
8
  import { DSDialogSizesArrayValues, DSDialogSizes } from './utils.js';
10
9
 
11
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
11
 
13
12
  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; }
14
- const propTypes = _objectSpread({
13
+ const propTypes = _objectSpread(_objectSpread({
15
14
  isOpen: PropTypes.bool.description('Whether the Dialog is open or not.').defaultValue(false),
16
15
  children: PropTypes.node.description('Nested components.').isRequired,
17
16
  centered: PropTypes.bool.description('Centers the Dialog.').defaultValue(false),
18
- size: PropTypes.oneOf(DSDialogSizesArrayValues).description("Dialog's width size.").defaultValue(DSDialogSizes.DEFAULT),
19
17
  removeAutoFocus: PropTypes.bool.description('Removes focus in the Dialog container when is open. If you want to focus an specific element in the Dialog, it should be set to true.').defaultValue(false),
20
18
  onClickOutside: PropTypes.func.description('Callback that should be used to close the modal when the user clicks outside. Cb also triggers when the user press ESC key for accessibility purposes.').defaultValue(() => {})
21
- }, globalAttributesPropTypes);
19
+ }, globalAttributesPropTypes), {}, {
20
+ size: PropTypes.oneOf(DSDialogSizesArrayValues).description("Dialog's width size.").defaultValue(DSDialogSizes.DEFAULT)
21
+ });
22
22
 
23
23
  export { propTypes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-dialog",
3
- "version": "2.2.0-next.6",
3
+ "version": "2.2.0-next.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Dialog",
6
6
  "module": "./esm/index.js",
@@ -64,8 +64,8 @@
64
64
  "build": "node ../../scripts/build/build.js"
65
65
  },
66
66
  "dependencies": {
67
- "@elliemae/ds-props-helpers": "2.2.0-next.6",
68
- "@elliemae/ds-system": "2.2.0-next.6",
67
+ "@elliemae/ds-props-helpers": "2.2.0-next.7",
68
+ "@elliemae/ds-system": "2.2.0-next.7",
69
69
  "@xstyled/styled-components": "~3.1.1",
70
70
  "react-desc": "~4.1.3"
71
71
  },