@elliemae/ds-accordion 2.3.2-next.0 → 2.4.0-rc.0

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.
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx2 = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
- var reactDesc = require('react-desc');
7
+ var dsPropsHelpers = require('@elliemae/ds-props-helpers');
8
8
  var AccordionContent = require('./parts/accordionContent/AccordionContent.js');
9
9
  var useAccordion = require('./config/useAccordion.js');
10
10
  var DSAccordionCTX = require('./DSAccordionCTX.js');
@@ -23,7 +23,7 @@ const DSAccordion = props => {
23
23
  }, void 0, _AccordionContent || (_AccordionContent = /*#__PURE__*/_jsx2__default["default"](AccordionContent.AccordionContent, {})));
24
24
  };
25
25
 
26
- const DSAccordionWithSchema = reactDesc.describe(DSAccordion);
26
+ const DSAccordionWithSchema = dsPropsHelpers.describe(DSAccordion);
27
27
  DSAccordionWithSchema.propTypes = propTypes.accordionPropTypes;
28
28
 
29
29
  exports.DSAccordion = DSAccordion;
@@ -14,7 +14,6 @@ require('core-js/modules/esnext.iterator.filter.js');
14
14
  require('core-js/modules/esnext.async-iterator.for-each.js');
15
15
  require('core-js/modules/esnext.iterator.for-each.js');
16
16
  var React = require('react');
17
- var reactDesc = require('react-desc');
18
17
  var dsPropsHelpers = require('@elliemae/ds-props-helpers');
19
18
  var DSButton = require('@elliemae/ds-button');
20
19
  var dsPopperjs = require('@elliemae/ds-popperjs');
@@ -198,7 +197,7 @@ const DSAccordionItem = props => {
198
197
  }, void 0, children));
199
198
  };
200
199
 
201
- const DSAccordionItemWithSchema = reactDesc.describe(DSAccordionItem);
200
+ const DSAccordionItemWithSchema = dsPropsHelpers.describe(DSAccordionItem);
202
201
  DSAccordionItemWithSchema.propTypes = propTypes.accordionItemPropTypes;
203
202
 
204
203
  exports.DSAccordionItem = DSAccordionItem;
package/cjs/propTypes.js CHANGED
@@ -2,24 +2,28 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactDesc = require('react-desc');
5
+ var dsPropsHelpers = require('@elliemae/ds-props-helpers');
6
6
 
7
7
  const accordionItemPropTypes = {
8
- children: reactDesc.PropTypes.node.description('Dimsum AccordionItem content.').isRequired,
9
- title: reactDesc.PropTypes.string.description('Set a primary title.'),
10
- value: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('Dimsum AccordionItem value, this value should be unique.').isRequired,
11
- iconClosed: reactDesc.PropTypes.node.description('Custom Dimsum Icon when it is closed.'),
12
- iconOpened: reactDesc.PropTypes.node.description('Custom Dimsum Icon when it is open.'),
13
- secondaryTitle: reactDesc.PropTypes.string.description('Set a secondary title'),
14
- customActions: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.object).description('Set Dimsum AccordionItem custom actions.'),
15
- renderCustomActions: reactDesc.PropTypes.func.description('This property will render any JSX in the custom actions area. You can access to all references and active values within the props.')
8
+ children: dsPropsHelpers.PropTypes.node.description('Dimsum AccordionItem content.').isRequired,
9
+ title: dsPropsHelpers.PropTypes.string.description('Set a primary title.'),
10
+ value: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number]).description('Dimsum AccordionItem value, this value should be unique.').isRequired,
11
+ iconClosed: dsPropsHelpers.PropTypes.node.description('Custom Dimsum Icon when it is closed.'),
12
+ iconOpened: dsPropsHelpers.PropTypes.node.description('Custom Dimsum Icon when it is open.'),
13
+ secondaryTitle: dsPropsHelpers.PropTypes.string.description('Set a secondary title'),
14
+ customActions: dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.object).description('Set Dimsum AccordionItem custom actions.').deprecated({
15
+ version: '3.x'
16
+ }),
17
+ renderCustomActions: dsPropsHelpers.PropTypes.func.description('This property will render any JSX in the custom actions area. You can access to all references and active values within the props.').deprecated({
18
+ version: '3.x'
19
+ })
16
20
  };
17
21
  const accordionPropTypes = {
18
- containerProps: reactDesc.PropTypes.object.description('Adds props to the container.'),
19
- activeValue: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number])), reactDesc.PropTypes.string, reactDesc.PropTypes.number]).description('Selected active value. This property makes the component a controlled one.'),
20
- children: reactDesc.PropTypes.node.description('Dimsum AccordionItems to show.'),
21
- allowMultipleOpen: reactDesc.PropTypes.bool.description('Allows multiple Dimsum AccordionItems to be open at the same time.'),
22
- onChange: reactDesc.PropTypes.func.description('Callback function once the Dimsum Accordion changes.')
22
+ containerProps: dsPropsHelpers.PropTypes.object.description('Adds props to the container.'),
23
+ activeValue: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.arrayOf(dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number])), dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number]).description('Selected active value. This property makes the component a controlled one.'),
24
+ children: dsPropsHelpers.PropTypes.node.description('Dimsum AccordionItems to show.'),
25
+ allowMultipleOpen: dsPropsHelpers.PropTypes.bool.description('Allows multiple Dimsum AccordionItems to be open at the same time.'),
26
+ onChange: dsPropsHelpers.PropTypes.func.description('Callback function once the Dimsum Accordion changes.')
23
27
  };
24
28
 
25
29
  exports.accordionItemPropTypes = accordionItemPropTypes;
@@ -1,6 +1,6 @@
1
1
  import _jsx2 from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import { describe } from 'react-desc';
3
+ import { describe } from '@elliemae/ds-props-helpers';
4
4
  import { AccordionContent } from './parts/accordionContent/AccordionContent.js';
5
5
  import { useAccordion } from './config/useAccordion.js';
6
6
  import { DSAccordionContext } from './DSAccordionCTX.js';
@@ -10,8 +10,7 @@ import 'core-js/modules/esnext.iterator.filter.js';
10
10
  import 'core-js/modules/esnext.async-iterator.for-each.js';
11
11
  import 'core-js/modules/esnext.iterator.for-each.js';
12
12
  import { useContext, useCallback, useState, useMemo } from 'react';
13
- import { describe } from 'react-desc';
14
- import { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';
13
+ import { describe, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';
15
14
  import DSButton, { BUTTON_TYPE } from '@elliemae/ds-button';
16
15
  import { DSPopperJS } from '@elliemae/ds-popperjs';
17
16
  import { useIsShowingEllipsis } from '@elliemae/ds-utilities';
package/esm/propTypes.js CHANGED
@@ -1,4 +1,4 @@
1
- import { PropTypes } from 'react-desc';
1
+ import { PropTypes } from '@elliemae/ds-props-helpers';
2
2
 
3
3
  const accordionItemPropTypes = {
4
4
  children: PropTypes.node.description('Dimsum AccordionItem content.').isRequired,
@@ -7,8 +7,12 @@ const accordionItemPropTypes = {
7
7
  iconClosed: PropTypes.node.description('Custom Dimsum Icon when it is closed.'),
8
8
  iconOpened: PropTypes.node.description('Custom Dimsum Icon when it is open.'),
9
9
  secondaryTitle: PropTypes.string.description('Set a secondary title'),
10
- customActions: PropTypes.arrayOf(PropTypes.object).description('Set Dimsum AccordionItem custom actions.'),
11
- renderCustomActions: PropTypes.func.description('This property will render any JSX in the custom actions area. You can access to all references and active values within the props.')
10
+ customActions: PropTypes.arrayOf(PropTypes.object).description('Set Dimsum AccordionItem custom actions.').deprecated({
11
+ version: '3.x'
12
+ }),
13
+ renderCustomActions: PropTypes.func.description('This property will render any JSX in the custom actions area. You can access to all references and active values within the props.').deprecated({
14
+ version: '3.x'
15
+ })
12
16
  };
13
17
  const accordionPropTypes = {
14
18
  containerProps: PropTypes.object.description('Adds props to the container.'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-accordion",
3
- "version": "2.3.2-next.0",
3
+ "version": "2.4.0-rc.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Accordion",
6
6
  "module": "./esm/index.js",
@@ -80,12 +80,12 @@
80
80
  "build": "node ../../scripts/build/build.js"
81
81
  },
82
82
  "dependencies": {
83
- "@elliemae/ds-button": "2.3.2-next.0",
84
- "@elliemae/ds-icons": "2.3.2-next.0",
85
- "@elliemae/ds-popperjs": "2.3.2-next.0",
86
- "@elliemae/ds-props-helpers": "2.3.2-next.0",
87
- "@elliemae/ds-system": "2.3.2-next.0",
88
- "@elliemae/ds-utilities": "2.3.2-next.0",
83
+ "@elliemae/ds-button": "2.4.0-rc.0",
84
+ "@elliemae/ds-icons": "2.4.0-rc.0",
85
+ "@elliemae/ds-popperjs": "2.4.0-rc.0",
86
+ "@elliemae/ds-props-helpers": "2.4.0-rc.0",
87
+ "@elliemae/ds-system": "2.4.0-rc.0",
88
+ "@elliemae/ds-utilities": "2.4.0-rc.0",
89
89
  "react-desc": "^4.1.3"
90
90
  },
91
91
  "devDependencies": {
@@ -1,45 +1,15 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
1
  /// <reference types="react" />
3
2
  import type { DSAccordionPropsT } from './DSAccordionTypes';
4
3
  declare const DSAccordion: {
5
4
  (props: DSAccordionPropsT): JSX.Element;
6
5
  propTypes: {
7
- containerProps: {
8
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
9
- deprecated: import("react-desc").PropTypesDescValidator;
10
- };
11
- isRequired: import("react-desc").PropTypesDescValue;
12
- };
13
- activeValue: {
14
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
15
- deprecated: import("react-desc").PropTypesDescValidator;
16
- };
17
- isRequired: import("react-desc").PropTypesDescValue;
18
- };
19
- children: {
20
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
21
- deprecated: import("react-desc").PropTypesDescValidator;
22
- };
23
- isRequired: import("react-desc").PropTypesDescValue;
24
- };
25
- allowMultipleOpen: {
26
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
27
- deprecated: import("react-desc").PropTypesDescValidator;
28
- };
29
- isRequired: import("react-desc").PropTypesDescValue;
30
- };
31
- onChange: {
32
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
33
- deprecated: import("react-desc").PropTypesDescValidator;
34
- };
35
- isRequired: import("react-desc").PropTypesDescValue;
36
- };
6
+ containerProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
7
+ activeValue: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
8
+ children: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ allowMultipleOpen: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
10
+ onChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
37
11
  };
38
12
  };
39
- declare const DSAccordionWithSchema: {
40
- (props?: unknown): JSX.Element;
41
- propTypes: unknown;
42
- toTypescript: () => import("react-desc").TypescriptSchema;
43
- };
13
+ declare const DSAccordionWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<DSAccordionPropsT>;
44
14
  export { DSAccordion, DSAccordionWithSchema };
45
15
  export default DSAccordion;
@@ -1,53 +1,18 @@
1
- /// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
2
1
  /// <reference types="react" />
3
2
  import type { DSAccordionItemPropsT } from '../../DSAccordionTypes';
4
3
  declare const DSAccordionItem: {
5
4
  (props: DSAccordionItemPropsT): JSX.Element;
6
5
  propTypes: {
7
- children: import("react-desc").PropTypesDescValue;
8
- title: {
9
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
10
- deprecated: import("react-desc").PropTypesDescValidator;
11
- };
12
- isRequired: import("react-desc").PropTypesDescValue;
13
- };
14
- value: import("react-desc").PropTypesDescValue;
15
- iconClosed: {
16
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
17
- deprecated: import("react-desc").PropTypesDescValidator;
18
- };
19
- isRequired: import("react-desc").PropTypesDescValue;
20
- };
21
- iconOpened: {
22
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
- deprecated: import("react-desc").PropTypesDescValidator;
24
- };
25
- isRequired: import("react-desc").PropTypesDescValue;
26
- };
27
- secondaryTitle: {
28
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
29
- deprecated: import("react-desc").PropTypesDescValidator;
30
- };
31
- isRequired: import("react-desc").PropTypesDescValue;
32
- };
33
- customActions: {
34
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
35
- deprecated: import("react-desc").PropTypesDescValidator;
36
- };
37
- isRequired: import("react-desc").PropTypesDescValue;
38
- };
39
- renderCustomActions: {
40
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
41
- deprecated: import("react-desc").PropTypesDescValidator;
42
- };
43
- isRequired: import("react-desc").PropTypesDescValue;
44
- };
6
+ children: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
7
+ title: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
8
+ value: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ iconClosed: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
10
+ iconOpened: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
11
+ secondaryTitle: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
12
+ customActions: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
13
+ renderCustomActions: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
45
14
  };
46
15
  };
47
- declare const DSAccordionItemWithSchema: {
48
- (props?: unknown): JSX.Element;
49
- propTypes: unknown;
50
- toTypescript: () => import("react-desc").TypescriptSchema;
51
- };
16
+ declare const DSAccordionItemWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<DSAccordionItemPropsT>;
52
17
  export { DSAccordionItem, DSAccordionItemWithSchema };
53
18
  export default DSAccordionItem;
@@ -1,73 +1,17 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
1
  export declare const accordionItemPropTypes: {
3
- children: import("react-desc").PropTypesDescValue;
4
- title: {
5
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
6
- deprecated: import("react-desc").PropTypesDescValidator;
7
- };
8
- isRequired: import("react-desc").PropTypesDescValue;
9
- };
10
- value: import("react-desc").PropTypesDescValue;
11
- iconClosed: {
12
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
13
- deprecated: import("react-desc").PropTypesDescValidator;
14
- };
15
- isRequired: import("react-desc").PropTypesDescValue;
16
- };
17
- iconOpened: {
18
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
19
- deprecated: import("react-desc").PropTypesDescValidator;
20
- };
21
- isRequired: import("react-desc").PropTypesDescValue;
22
- };
23
- secondaryTitle: {
24
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
25
- deprecated: import("react-desc").PropTypesDescValidator;
26
- };
27
- isRequired: import("react-desc").PropTypesDescValue;
28
- };
29
- customActions: {
30
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
31
- deprecated: import("react-desc").PropTypesDescValidator;
32
- };
33
- isRequired: import("react-desc").PropTypesDescValue;
34
- };
35
- renderCustomActions: {
36
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
37
- deprecated: import("react-desc").PropTypesDescValidator;
38
- };
39
- isRequired: import("react-desc").PropTypesDescValue;
40
- };
2
+ children: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
3
+ title: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
4
+ value: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
5
+ iconClosed: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
6
+ iconOpened: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
7
+ secondaryTitle: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
8
+ customActions: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ renderCustomActions: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
41
10
  };
42
11
  export declare const accordionPropTypes: {
43
- containerProps: {
44
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
45
- deprecated: import("react-desc").PropTypesDescValidator;
46
- };
47
- isRequired: import("react-desc").PropTypesDescValue;
48
- };
49
- activeValue: {
50
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
51
- deprecated: import("react-desc").PropTypesDescValidator;
52
- };
53
- isRequired: import("react-desc").PropTypesDescValue;
54
- };
55
- children: {
56
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
57
- deprecated: import("react-desc").PropTypesDescValidator;
58
- };
59
- isRequired: import("react-desc").PropTypesDescValue;
60
- };
61
- allowMultipleOpen: {
62
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
63
- deprecated: import("react-desc").PropTypesDescValidator;
64
- };
65
- isRequired: import("react-desc").PropTypesDescValue;
66
- };
67
- onChange: {
68
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
69
- deprecated: import("react-desc").PropTypesDescValidator;
70
- };
71
- isRequired: import("react-desc").PropTypesDescValue;
72
- };
12
+ containerProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
13
+ activeValue: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
14
+ children: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
15
+ allowMultipleOpen: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
16
+ onChange: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
73
17
  };