@elliemae/ds-mini-toolbar 2.0.0-next.7 → 2.0.0-rc.10
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/Components/MiniToolbar.js +7 -7
- package/cjs/Components/ToolbarShortcut.js +5 -0
- package/cjs/Components/outOfTheBox/Button.js +6 -1
- package/cjs/Components/outOfTheBox/ComboBox.js +7 -3
- package/cjs/Components/outOfTheBox/SearchBox.js +9 -6
- package/cjs/hooks/useGenerateItems.js +9 -3
- package/cjs/styles.js +1 -1
- package/esm/Components/MiniToolbar.js +7 -6
- package/esm/Components/ToolbarShortcut.js +5 -0
- package/esm/Components/outOfTheBox/Button.js +6 -1
- package/esm/Components/outOfTheBox/ComboBox.js +6 -1
- package/esm/Components/outOfTheBox/SearchBox.js +8 -3
- package/esm/hooks/useGenerateItems.js +9 -2
- package/esm/styles.js +1 -1
- package/package.json +11 -5
- package/types/Components/MiniToolbar.d.ts +13 -3
- package/types/propTypes.d.ts +14 -3
- package/types/styles.d.ts +4 -4
- package/types/tests/utils.test.d.ts +8 -8
|
@@ -7,8 +7,8 @@ require('core-js/modules/web.dom-collections.iterator.js');
|
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var reactDesc = require('react-desc');
|
|
9
9
|
var DSDropdownMenu = require('@elliemae/ds-dropdownmenu');
|
|
10
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
10
11
|
var styles = require('../styles.js');
|
|
11
|
-
var VerticalElipsis = require('@elliemae/ds-icons/MoreOptionsVert');
|
|
12
12
|
var propTypes = require('../propTypes.js');
|
|
13
13
|
var useGenerateItems = require('../hooks/useGenerateItems.js');
|
|
14
14
|
|
|
@@ -16,17 +16,17 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
|
|
17
17
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
18
18
|
var DSDropdownMenu__default = /*#__PURE__*/_interopDefaultLegacy(DSDropdownMenu);
|
|
19
|
-
var VerticalElipsis__default = /*#__PURE__*/_interopDefaultLegacy(VerticalElipsis);
|
|
20
19
|
|
|
21
|
-
const Elipsis = /*#__PURE__*/_jsx__default["default"](
|
|
20
|
+
const Elipsis = /*#__PURE__*/_jsx__default["default"](dsIcons.MoreOptionsVert, {
|
|
22
21
|
color: ['brand-primary', '600'],
|
|
23
22
|
size: "m"
|
|
24
23
|
});
|
|
25
24
|
|
|
26
|
-
const MiniToolbar =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
const MiniToolbar = _ref => {
|
|
26
|
+
let {
|
|
27
|
+
items,
|
|
28
|
+
overflowButtonProps
|
|
29
|
+
} = _ref;
|
|
30
30
|
const [shortcutItems, dropdownMenuItems] = useGenerateItems.useGenerateItems(items);
|
|
31
31
|
const [isDropdownMenuOpen, setIsDropdownMenuOpen] = react.useState(false);
|
|
32
32
|
const closeDropdownMenu = react.useCallback(() => setIsDropdownMenuOpen(false), []);
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
11
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
12
|
var react = require('react');
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
require('react');
|
|
7
|
-
var DSButton = require('@elliemae/ds-
|
|
12
|
+
var DSButton = require('@elliemae/ds-button');
|
|
8
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
14
|
|
|
10
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
require('react');
|
|
7
|
-
var
|
|
12
|
+
var dsForm = require('@elliemae/ds-form');
|
|
8
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
14
|
|
|
10
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
16
|
|
|
12
17
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
13
|
-
var DSComboBox2__default = /*#__PURE__*/_interopDefaultLegacy(DSComboBox2);
|
|
14
18
|
|
|
15
19
|
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; }
|
|
16
20
|
|
|
17
21
|
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; }
|
|
18
22
|
|
|
19
|
-
const MiniToolbarComboBox = props => /*#__PURE__*/jsxRuntime.jsx(
|
|
23
|
+
const MiniToolbarComboBox = props => /*#__PURE__*/jsxRuntime.jsx(dsForm.DSComboBox2, _objectSpread({}, props));
|
|
20
24
|
|
|
21
25
|
exports.MiniToolbarComboBox = MiniToolbarComboBox;
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
7
12
|
require('react');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
13
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
14
|
+
var dsForm = require('@elliemae/ds-form');
|
|
10
15
|
var styles = require('../../styles.js');
|
|
11
16
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
17
|
|
|
@@ -14,8 +19,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
19
|
|
|
15
20
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
16
21
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
17
|
-
var SearchIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchIcon);
|
|
18
|
-
var DSSearchBox__default = /*#__PURE__*/_interopDefaultLegacy(DSSearchBox);
|
|
19
22
|
|
|
20
23
|
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
24
|
|
|
@@ -35,7 +38,7 @@ const MiniToolbarSearchButton = props => {
|
|
|
35
38
|
buttonType: buttonType,
|
|
36
39
|
onClick: onClick,
|
|
37
40
|
style: style,
|
|
38
|
-
leftIcon: /*#__PURE__*/_jsx__default["default"](
|
|
41
|
+
leftIcon: /*#__PURE__*/_jsx__default["default"](dsIcons.Search, {
|
|
39
42
|
size: size,
|
|
40
43
|
color: color
|
|
41
44
|
}),
|
|
@@ -43,7 +46,7 @@ const MiniToolbarSearchButton = props => {
|
|
|
43
46
|
});
|
|
44
47
|
};
|
|
45
48
|
|
|
46
|
-
const MiniToolbarSearchBox = props => /*#__PURE__*/jsxRuntime.jsx(
|
|
49
|
+
const MiniToolbarSearchBox = props => /*#__PURE__*/jsxRuntime.jsx(dsForm.DSSearchBox, _objectSpread({
|
|
47
50
|
clearable: true,
|
|
48
51
|
showIcon: false
|
|
49
52
|
}, props));
|
|
@@ -4,9 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
7
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
8
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
9
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
11
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
12
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
13
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
7
14
|
var react = require('react');
|
|
8
15
|
var uid = require('uid');
|
|
9
|
-
var
|
|
16
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
10
17
|
var index = require('../Components/outOfTheBox/index.js');
|
|
11
18
|
var ToolbarShortcut = require('../Components/ToolbarShortcut.js');
|
|
12
19
|
var SearchBox = require('../Components/outOfTheBox/SearchBox.js');
|
|
@@ -19,7 +26,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
26
|
|
|
20
27
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
28
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
22
|
-
var SearchIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchIcon);
|
|
23
29
|
|
|
24
30
|
var _MiniToolbarSeparator;
|
|
25
31
|
|
|
@@ -99,7 +105,7 @@ const useGenerateItems = items => {
|
|
|
99
105
|
color: color
|
|
100
106
|
});
|
|
101
107
|
} else if (component === index.SEARCH_BOX) {
|
|
102
|
-
dropdownItem.leftAddon = /*#__PURE__*/_jsx__default["default"](
|
|
108
|
+
dropdownItem.leftAddon = /*#__PURE__*/_jsx__default["default"](dsIcons.Search, {
|
|
103
109
|
color: color
|
|
104
110
|
});
|
|
105
111
|
} else if (component === index.COMBO_BOX) {
|
package/cjs/styles.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
-
var DSButton = require('@elliemae/ds-
|
|
6
|
+
var DSButton = require('@elliemae/ds-button');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -3,20 +3,21 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
|
3
3
|
import { useState, useCallback } from 'react';
|
|
4
4
|
import { describe } from 'react-desc';
|
|
5
5
|
import DSDropdownMenu from '@elliemae/ds-dropdownmenu';
|
|
6
|
+
import { MoreOptionsVert } from '@elliemae/ds-icons';
|
|
6
7
|
import { Container, StyledButton } from '../styles.js';
|
|
7
|
-
import VerticalElipsis from '@elliemae/ds-icons/MoreOptionsVert';
|
|
8
8
|
import { miniToolbarProps } from '../propTypes.js';
|
|
9
9
|
import { useGenerateItems } from '../hooks/useGenerateItems.js';
|
|
10
10
|
|
|
11
|
-
const Elipsis = /*#__PURE__*/_jsx(
|
|
11
|
+
const Elipsis = /*#__PURE__*/_jsx(MoreOptionsVert, {
|
|
12
12
|
color: ['brand-primary', '600'],
|
|
13
13
|
size: "m"
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
const MiniToolbar =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
const MiniToolbar = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
items,
|
|
19
|
+
overflowButtonProps
|
|
20
|
+
} = _ref;
|
|
20
21
|
const [shortcutItems, dropdownMenuItems] = useGenerateItems(items);
|
|
21
22
|
const [isDropdownMenuOpen, setIsDropdownMenuOpen] = useState(false);
|
|
22
23
|
const closeDropdownMenu = useCallback(() => setIsDropdownMenuOpen(false), []);
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
8
|
import { useRef, useEffect } from 'react';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import 'react';
|
|
3
|
-
import DSButton from '@elliemae/ds-
|
|
8
|
+
import DSButton from '@elliemae/ds-button';
|
|
4
9
|
import { jsx } from 'react/jsx-runtime';
|
|
5
10
|
|
|
6
11
|
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; }
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import 'react';
|
|
3
|
-
import DSComboBox2 from '@elliemae/ds-
|
|
8
|
+
import { DSComboBox2 } from '@elliemae/ds-form';
|
|
4
9
|
import { jsx } from 'react/jsx-runtime';
|
|
5
10
|
|
|
6
11
|
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; }
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
8
|
import 'react';
|
|
4
|
-
import
|
|
5
|
-
import DSSearchBox from '@elliemae/ds-
|
|
9
|
+
import { Search } from '@elliemae/ds-icons';
|
|
10
|
+
import { DSSearchBox } from '@elliemae/ds-form';
|
|
6
11
|
import { StyledButton } from '../../styles.js';
|
|
7
12
|
import { jsx } from 'react/jsx-runtime';
|
|
8
13
|
|
|
@@ -24,7 +29,7 @@ const MiniToolbarSearchButton = props => {
|
|
|
24
29
|
buttonType: buttonType,
|
|
25
30
|
onClick: onClick,
|
|
26
31
|
style: style,
|
|
27
|
-
leftIcon: /*#__PURE__*/_jsx(
|
|
32
|
+
leftIcon: /*#__PURE__*/_jsx(Search, {
|
|
28
33
|
size: size,
|
|
29
34
|
color: color
|
|
30
35
|
}),
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
5
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
9
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
3
10
|
import { useMemo } from 'react';
|
|
4
11
|
import { uid } from 'uid';
|
|
5
|
-
import
|
|
12
|
+
import { Search } from '@elliemae/ds-icons';
|
|
6
13
|
import { SEARCH_BOX, SEPARATOR, BUTTON, ICON_ITEM, COMBO_BOX } from '../Components/outOfTheBox/index.js';
|
|
7
14
|
import { ToolbarShortcut } from '../Components/ToolbarShortcut.js';
|
|
8
15
|
import { MiniToolbarSearchButton, MiniToolbarSearchBox } from '../Components/outOfTheBox/SearchBox.js';
|
|
@@ -89,7 +96,7 @@ const useGenerateItems = items => {
|
|
|
89
96
|
color: color
|
|
90
97
|
});
|
|
91
98
|
} else if (component === SEARCH_BOX) {
|
|
92
|
-
dropdownItem.leftAddon = /*#__PURE__*/_jsx(
|
|
99
|
+
dropdownItem.leftAddon = /*#__PURE__*/_jsx(Search, {
|
|
93
100
|
color: color
|
|
94
101
|
});
|
|
95
102
|
} else if (component === COMBO_BOX) {
|
package/esm/styles.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-mini-toolbar",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - MiniToolbar",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -72,18 +72,24 @@
|
|
|
72
72
|
"build": "node ../../scripts/build/build.js"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@elliemae/ds-
|
|
75
|
+
"@elliemae/ds-button": "2.0.0-rc.10",
|
|
76
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-rc.10",
|
|
77
|
+
"@elliemae/ds-form": "2.0.0-rc.10",
|
|
78
|
+
"@elliemae/ds-icons": "2.0.0-rc.10",
|
|
79
|
+
"@elliemae/ds-system": "2.0.0-rc.10",
|
|
76
80
|
"react-desc": "~4.1.3",
|
|
77
|
-
"
|
|
81
|
+
"uid": "~2.0.0"
|
|
78
82
|
},
|
|
79
83
|
"devDependencies": {
|
|
80
|
-
"
|
|
84
|
+
"@testing-library/react": "~12.1.2",
|
|
85
|
+
"@testing-library/user-event": "~13.5.0",
|
|
86
|
+
"styled-components": "~5.3.3"
|
|
81
87
|
},
|
|
82
88
|
"peerDependencies": {
|
|
83
89
|
"lodash": "^4.17.21",
|
|
84
90
|
"react": "~17.0.2",
|
|
85
91
|
"react-dom": "^17.0.2",
|
|
86
|
-
"styled-components": "^5.3.
|
|
92
|
+
"styled-components": "^5.3.3"
|
|
87
93
|
},
|
|
88
94
|
"publishConfig": {
|
|
89
95
|
"access": "public",
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { MiniToolbarPropsT } from '../index.d';
|
|
3
4
|
declare const MiniToolbar: {
|
|
4
5
|
({ items, overflowButtonProps }: MiniToolbarPropsT): React.ReactElement;
|
|
5
6
|
propTypes: {
|
|
6
|
-
items:
|
|
7
|
-
overflowButtonProps:
|
|
7
|
+
items: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
overflowButtonProps: {
|
|
9
|
+
defaultValue<T = unknown>(arg: T): {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
8
14
|
};
|
|
9
15
|
};
|
|
10
|
-
declare const MiniToolbarWithSchema:
|
|
16
|
+
declare const MiniToolbarWithSchema: {
|
|
17
|
+
(props?: MiniToolbarPropsT | undefined): JSX.Element;
|
|
18
|
+
propTypes: unknown;
|
|
19
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
20
|
+
};
|
|
11
21
|
export { MiniToolbar, MiniToolbarWithSchema };
|
package/types/propTypes.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
declare const miniToolbarProps: {
|
|
2
|
-
items:
|
|
3
|
-
overflowButtonProps:
|
|
4
|
+
items: import("react-desc").PropTypesDescValidator;
|
|
5
|
+
overflowButtonProps: {
|
|
6
|
+
defaultValue<T = unknown>(arg: T): {
|
|
7
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
declare const ToolbarItemWithSchema: {
|
|
13
|
+
(props?: unknown): JSX.Element;
|
|
14
|
+
propTypes: unknown;
|
|
15
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
4
16
|
};
|
|
5
|
-
declare const ToolbarItemWithSchema: any;
|
|
6
17
|
export { ToolbarItemWithSchema, miniToolbarProps };
|
package/types/styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const Container: import("styled-components").StyledComponent<"ul",
|
|
2
|
-
declare const Separator: import("styled-components").StyledComponent<"span",
|
|
3
|
-
declare const Item: import("styled-components").StyledComponent<"li",
|
|
4
|
-
declare const StyledButton: import("styled-components").StyledComponent<any,
|
|
1
|
+
declare const Container: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
declare const Separator: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
declare const Item: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
declare const StyledButton: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
|
|
5
5
|
export { Container, Separator, Item, StyledButton };
|
|
@@ -12,7 +12,7 @@ export const testItems: ({
|
|
|
12
12
|
onClick: jest.Mock<null, []>;
|
|
13
13
|
};
|
|
14
14
|
sharedProps: {
|
|
15
|
-
Icon: any;
|
|
15
|
+
Icon: (rest: any) => JSX.Element;
|
|
16
16
|
color: string[];
|
|
17
17
|
onClick?: undefined;
|
|
18
18
|
};
|
|
@@ -30,7 +30,7 @@ export const testItems: ({
|
|
|
30
30
|
onClick?: undefined;
|
|
31
31
|
};
|
|
32
32
|
sharedProps: {
|
|
33
|
-
Icon: any;
|
|
33
|
+
Icon: (rest: any) => JSX.Element;
|
|
34
34
|
onClick: jest.Mock<null, []>;
|
|
35
35
|
color: string[];
|
|
36
36
|
};
|
|
@@ -48,7 +48,7 @@ export const testItems: ({
|
|
|
48
48
|
onClick: jest.Mock<null, []>;
|
|
49
49
|
};
|
|
50
50
|
sharedProps: {
|
|
51
|
-
Icon: any;
|
|
51
|
+
Icon: (rest: any) => JSX.Element;
|
|
52
52
|
color: string[];
|
|
53
53
|
onClick: jest.Mock<null, []>;
|
|
54
54
|
};
|
|
@@ -72,7 +72,7 @@ export const testItems: ({
|
|
|
72
72
|
onClick?: undefined;
|
|
73
73
|
};
|
|
74
74
|
sharedProps: {
|
|
75
|
-
Icon: any;
|
|
75
|
+
Icon: (rest: any) => JSX.Element;
|
|
76
76
|
color: string[];
|
|
77
77
|
onClick?: undefined;
|
|
78
78
|
};
|
|
@@ -91,7 +91,7 @@ export function addContextualRegionToItems(isOpen: any): ({
|
|
|
91
91
|
onClick: jest.Mock<null, []>;
|
|
92
92
|
};
|
|
93
93
|
sharedProps: {
|
|
94
|
-
Icon: any;
|
|
94
|
+
Icon: (rest: any) => JSX.Element;
|
|
95
95
|
color: string[];
|
|
96
96
|
onClick?: undefined;
|
|
97
97
|
};
|
|
@@ -109,7 +109,7 @@ export function addContextualRegionToItems(isOpen: any): ({
|
|
|
109
109
|
onClick?: undefined;
|
|
110
110
|
};
|
|
111
111
|
sharedProps: {
|
|
112
|
-
Icon: any;
|
|
112
|
+
Icon: (rest: any) => JSX.Element;
|
|
113
113
|
onClick: jest.Mock<null, []>;
|
|
114
114
|
color: string[];
|
|
115
115
|
};
|
|
@@ -127,7 +127,7 @@ export function addContextualRegionToItems(isOpen: any): ({
|
|
|
127
127
|
onClick: jest.Mock<null, []>;
|
|
128
128
|
};
|
|
129
129
|
sharedProps: {
|
|
130
|
-
Icon: any;
|
|
130
|
+
Icon: (rest: any) => JSX.Element;
|
|
131
131
|
color: string[];
|
|
132
132
|
onClick: jest.Mock<null, []>;
|
|
133
133
|
};
|
|
@@ -151,7 +151,7 @@ export function addContextualRegionToItems(isOpen: any): ({
|
|
|
151
151
|
onClick?: undefined;
|
|
152
152
|
};
|
|
153
153
|
sharedProps: {
|
|
154
|
-
Icon: any;
|
|
154
|
+
Icon: (rest: any) => JSX.Element;
|
|
155
155
|
color: string[];
|
|
156
156
|
onClick?: undefined;
|
|
157
157
|
};
|