@elliemae/ds-pills 2.0.0-alpha.1 → 2.0.0-alpha.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/Pill.js +48 -0
- package/cjs/components/PillButton.js +51 -0
- package/cjs/components/PillGroup.js +50 -0
- package/cjs/components/index.js +17 -0
- package/cjs/components/styled.js +69 -0
- package/cjs/components/types/DropdownPill.js +66 -0
- package/cjs/components/types/InputPill.js +71 -0
- package/cjs/components/types/LabelPill.js +31 -0
- package/cjs/components/types/ReadOnlyPill.js +37 -0
- package/cjs/components/types/RemovablePill.js +62 -0
- package/cjs/components/types/ValuePill.js +39 -0
- package/cjs/components/types/index.js +19 -0
- package/cjs/{DropdownPill.js → deprecated/DropdownPill.js} +9 -9
- package/cjs/{InputPill.js → deprecated/InputPill.js} +9 -9
- package/cjs/{LabeledDropdownPills.js → deprecated/LabeledDropdownPills.js} +3 -3
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownCascadeMenuPill.js +7 -7
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownMultiPill.js +15 -15
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownSinglePill.js +13 -13
- package/cjs/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/utils.js +0 -0
- package/cjs/{LabeledPills.js → deprecated/LabeledPills.js} +2 -2
- package/cjs/{OverflowPill.js → deprecated/OverflowPill.js} +8 -8
- package/cjs/{Pill.js → deprecated/Pill.js} +4 -4
- package/cjs/{PillGroup.js → deprecated/PillGroup.js} +2 -2
- package/cjs/{ReadOnlyPill.js → deprecated/ReadOnlyPill.js} +8 -8
- package/cjs/{RemovablePill.js → deprecated/RemovablePill.js} +7 -7
- package/cjs/deprecated/index.js +32 -0
- package/cjs/index.d.js +2 -0
- package/cjs/index.js +19 -9
- package/cjs/props.js +57 -0
- package/cjs/utils.js +18 -0
- package/esm/components/Pill.js +39 -0
- package/esm/components/PillButton.js +41 -0
- package/esm/components/PillGroup.js +39 -0
- package/esm/components/index.js +3 -0
- package/esm/components/styled.js +52 -0
- package/esm/components/types/DropdownPill.js +54 -0
- package/esm/components/types/InputPill.js +61 -0
- package/esm/components/types/LabelPill.js +22 -0
- package/esm/components/types/ReadOnlyPill.js +28 -0
- package/esm/components/types/RemovablePill.js +52 -0
- package/esm/components/types/ValuePill.js +30 -0
- package/esm/components/types/index.js +6 -0
- package/esm/{DropdownPill.js → deprecated/DropdownPill.js} +0 -0
- package/esm/{InputPill.js → deprecated/InputPill.js} +2 -2
- package/esm/{LabeledDropdownPills.js → deprecated/LabeledDropdownPills.js} +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownCascadeMenuPill.js +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownMultiPill.js +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownSinglePill.js +0 -0
- package/esm/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/utils.js +0 -0
- package/esm/{LabeledPills.js → deprecated/LabeledPills.js} +0 -0
- package/esm/{OverflowPill.js → deprecated/OverflowPill.js} +0 -0
- package/esm/{Pill.js → deprecated/Pill.js} +0 -0
- package/esm/{PillGroup.js → deprecated/PillGroup.js} +0 -0
- package/esm/{ReadOnlyPill.js → deprecated/ReadOnlyPill.js} +0 -0
- package/esm/{RemovablePill.js → deprecated/RemovablePill.js} +2 -2
- package/esm/deprecated/index.js +8 -0
- package/esm/index.d.js +1 -0
- package/esm/index.js +11 -8
- package/esm/props.js +46 -0
- package/esm/utils.js +14 -0
- package/package.json +108 -48
- package/types/components/Pill.d.ts +5 -0
- package/types/components/PillButton.d.ts +5 -0
- package/types/components/PillGroup.d.ts +7 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/styled.d.ts +40 -0
- package/types/components/types/DropdownPill.d.ts +3 -0
- package/types/components/types/InputPill.d.ts +3 -0
- package/types/components/types/LabelPill.d.ts +3 -0
- package/types/components/types/ReadOnlyPill.d.ts +3 -0
- package/types/components/types/RemovablePill.d.ts +3 -0
- package/types/components/types/ValuePill.d.ts +3 -0
- package/types/components/types/index.d.ts +6 -0
- package/types/{DropdownPill.d.ts → deprecated/DropdownPill.d.ts} +0 -0
- package/types/{InputPill.d.ts → deprecated/InputPill.d.ts} +0 -0
- package/types/{LabeledDropdownPills.d.ts → deprecated/LabeledDropdownPills.d.ts} +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownCascadeMenuPill.d.ts +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownMultiPill.d.ts +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/LabeledDropdownSinglePill.d.ts +0 -0
- package/types/{LabeledDropdownPillsTypes → deprecated/LabeledDropdownPillsTypes}/utils.d.ts +0 -0
- package/types/{LabeledPills.d.ts → deprecated/LabeledPills.d.ts} +0 -0
- package/types/{OverflowPill.d.ts → deprecated/OverflowPill.d.ts} +0 -0
- package/types/{Pill.d.ts → deprecated/Pill.d.ts} +0 -0
- package/types/{PillGroup.d.ts → deprecated/PillGroup.d.ts} +0 -0
- package/types/{ReadOnlyPill.d.ts → deprecated/ReadOnlyPill.d.ts} +0 -0
- package/types/{RemovablePill.d.ts → deprecated/RemovablePill.d.ts} +0 -0
- package/types/deprecated/index.d.ts +8 -0
- package/types/index.d.ts +3 -9
- package/types/props.d.ts +39 -0
- package/types/tests/DSPill.test.d.ts +1 -0
- package/types/tests/DSPillGroup.test.d.ts +1 -0
- package/types/tests/events/DSPill.events.keyboard.test.d.ts +1 -0
- package/types/tests/events/DSPill.events.test.d.ts +1 -0
- package/types/tests/events/DSPillGroup.events.keyboard.test.d.ts +1 -0
- package/types/tests/events/DSPillGroup.events.test.d.ts +1 -0
- package/types/utils.d.ts +4 -0
|
@@ -6,7 +6,7 @@ var _jsx = require('@babel/runtime/helpers/jsx');
|
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
8
8
|
require('react');
|
|
9
|
-
var
|
|
9
|
+
var CloseIcon = require('@elliemae/ds-icons/CloseXsmall');
|
|
10
10
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
11
11
|
var DSInputMask = require('@elliemae/ds-form/InputMask');
|
|
12
12
|
var DSInput = require('@elliemae/ds-form/Input');
|
|
@@ -18,7 +18,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
19
19
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
20
20
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
21
|
-
var
|
|
21
|
+
var CloseIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseIcon);
|
|
22
22
|
var DSInputMask__default = /*#__PURE__*/_interopDefaultLegacy(DSInputMask);
|
|
23
23
|
var DSInput__default = /*#__PURE__*/_interopDefaultLegacy(DSInput);
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ const _excluded = ["containerProps", "placeholder", "onChange", "onRemove", "val
|
|
|
26
26
|
|
|
27
27
|
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; }
|
|
28
28
|
|
|
29
|
-
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[
|
|
29
|
+
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; }
|
|
30
30
|
const StyledInputPill = dsClassnames.aggregatedClasses(Pill.Pill)('input-pill', null, ({
|
|
31
31
|
value
|
|
32
32
|
}) => ({
|
|
@@ -41,22 +41,22 @@ function InputPill(_ref) {
|
|
|
41
41
|
value,
|
|
42
42
|
type
|
|
43
43
|
} = _ref,
|
|
44
|
-
otherProps = _objectWithoutProperties__default[
|
|
44
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
45
45
|
|
|
46
|
-
let TypeOfInput = DSInput__default[
|
|
46
|
+
let TypeOfInput = DSInput__default["default"]; // TODO: implement the DSTimeInput, see how because it returns a moment()
|
|
47
47
|
// TODO: implement the DSDateInput
|
|
48
48
|
|
|
49
49
|
switch (type) {
|
|
50
50
|
case 'inputText':
|
|
51
|
-
TypeOfInput = DSInput__default[
|
|
51
|
+
TypeOfInput = DSInput__default["default"];
|
|
52
52
|
break;
|
|
53
53
|
|
|
54
54
|
case 'inputMask':
|
|
55
|
-
TypeOfInput = DSInputMask__default[
|
|
55
|
+
TypeOfInput = DSInputMask__default["default"];
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
return /*#__PURE__*/_jsx__default[
|
|
59
|
+
return /*#__PURE__*/_jsx__default["default"](StyledInputPill, {
|
|
60
60
|
className: "input-pill",
|
|
61
61
|
classProps: {
|
|
62
62
|
value
|
|
@@ -68,7 +68,7 @@ function InputPill(_ref) {
|
|
|
68
68
|
placeholder: placeholder,
|
|
69
69
|
value: value
|
|
70
70
|
}, otherProps)),
|
|
71
|
-
rightAddon: value && /*#__PURE__*/_jsx__default[
|
|
71
|
+
rightAddon: value && /*#__PURE__*/_jsx__default["default"](CloseIcon__default["default"], {
|
|
72
72
|
className: "remove-pill-button",
|
|
73
73
|
"data-testid": "remove-pill-button",
|
|
74
74
|
onClick: onRemove
|
|
@@ -23,7 +23,7 @@ const _excluded = ["label", "value", "type", "onFocusNextGroup", "onFocusPreviou
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
|
-
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[
|
|
26
|
+
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; }
|
|
27
27
|
const DropdownPills = {
|
|
28
28
|
single: LabeledDropdownSinglePill,
|
|
29
29
|
multi: LabeledDropdownMultiPill,
|
|
@@ -44,10 +44,10 @@ function LabeledDropdownPills(_ref) {
|
|
|
44
44
|
minWidth,
|
|
45
45
|
fixed
|
|
46
46
|
} = _ref,
|
|
47
|
-
menuProps = _objectWithoutProperties__default[
|
|
47
|
+
menuProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
48
48
|
|
|
49
49
|
const Component = createDropdownPill(type);
|
|
50
|
-
return /*#__PURE__*/_jsx__default[
|
|
50
|
+
return /*#__PURE__*/_jsx__default["default"](PillGroup.PillGroup, {
|
|
51
51
|
onFocusGroupSet: onFocusGroupSet,
|
|
52
52
|
onFocusNextGroup: onFocusNextGroup,
|
|
53
53
|
onFocusPreviousGroup: onFocusPreviousGroup
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
4
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var utils = require('@elliemae/ds-utilities/utils');
|
|
8
8
|
var PillGroup = require('../PillGroup.js');
|
|
9
9
|
var RemovablePill = require('../RemovablePill.js');
|
|
@@ -20,7 +20,7 @@ const _excluded = ["label", "options", "value", "onChange", "onRemove", "value",
|
|
|
20
20
|
|
|
21
21
|
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; }
|
|
22
22
|
|
|
23
|
-
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[
|
|
23
|
+
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; }
|
|
24
24
|
|
|
25
25
|
function renderMenuItems(options, factory) {
|
|
26
26
|
return options.map((option, index) => {
|
|
@@ -29,7 +29,7 @@ function renderMenuItems(options, factory) {
|
|
|
29
29
|
if (option.type === 'submenu') {
|
|
30
30
|
const SubmenuComponent = factory('submenu');
|
|
31
31
|
const ChildComponent = factory('selection-group');
|
|
32
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/React.createElement(SubmenuComponent, _objectSpread(_objectSpread({}, option), {}, {
|
|
33
33
|
key: option.id,
|
|
34
34
|
item: option
|
|
35
35
|
}), /*#__PURE__*/jsxRuntime.jsx(ChildComponent, _objectSpread(_objectSpread({}, option), {}, {
|
|
@@ -41,7 +41,7 @@ function renderMenuItems(options, factory) {
|
|
|
41
41
|
})));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
return /*#__PURE__*/
|
|
44
|
+
return /*#__PURE__*/React.createElement(ItemComponent, _objectSpread(_objectSpread({}, option), {}, {
|
|
45
45
|
key: option.id || index,
|
|
46
46
|
item: option
|
|
47
47
|
}));
|
|
@@ -68,7 +68,7 @@ function LabeledDropdownCascadeMenuPill(_ref) {
|
|
|
68
68
|
maxWidth,
|
|
69
69
|
minWidth
|
|
70
70
|
} = _ref,
|
|
71
|
-
menuProps = _objectWithoutProperties__default[
|
|
71
|
+
menuProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
72
72
|
|
|
73
73
|
const selectionId = Object.keys(selection)[0];
|
|
74
74
|
const selectionValues = selection[selectionId] || '';
|
|
@@ -99,7 +99,7 @@ function LabeledDropdownCascadeMenuPill(_ref) {
|
|
|
99
99
|
onRemove(option);
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
return /*#__PURE__*/_jsx__default[
|
|
102
|
+
return /*#__PURE__*/_jsx__default["default"](PillGroup.PillGroup, {
|
|
103
103
|
onFocusGroupSet: onFocusGroupSet,
|
|
104
104
|
onFocusNextGroup: onFocusNextGroup,
|
|
105
105
|
onFocusPreviousGroup: onFocusPreviousGroup
|
|
@@ -115,7 +115,7 @@ function LabeledDropdownCascadeMenuPill(_ref) {
|
|
|
115
115
|
},
|
|
116
116
|
singleGroupSelection: true,
|
|
117
117
|
variant: "title"
|
|
118
|
-
})), Array.isArray(selectionValues) && selectionValues.map(option => /*#__PURE__*/_jsx__default[
|
|
118
|
+
})), Array.isArray(selectionValues) && selectionValues.map(option => /*#__PURE__*/_jsx__default["default"](RemovablePill.RemovablePill, {
|
|
119
119
|
label: option.label,
|
|
120
120
|
onRemove: () => removeOption(option)
|
|
121
121
|
}, option.id)));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
4
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var lodash = require('lodash');
|
|
8
8
|
var utils = require('@elliemae/ds-utilities/utils');
|
|
9
9
|
var RemovablePill = require('../RemovablePill.js');
|
|
@@ -22,7 +22,7 @@ const _excluded = ["label", "options", "value", "onSelect", "onRemove", "onChang
|
|
|
22
22
|
|
|
23
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; }
|
|
24
24
|
|
|
25
|
-
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[
|
|
25
|
+
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; }
|
|
26
26
|
function LabeledDropdownMultiPills(_ref) {
|
|
27
27
|
let {
|
|
28
28
|
label,
|
|
@@ -35,15 +35,15 @@ function LabeledDropdownMultiPills(_ref) {
|
|
|
35
35
|
maxWidth,
|
|
36
36
|
minWidth
|
|
37
37
|
} = _ref,
|
|
38
|
-
menuProps = _objectWithoutProperties__default[
|
|
38
|
+
menuProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
39
39
|
|
|
40
|
-
const [totalDefaultOptions, setTotalDefaultOptions] =
|
|
41
|
-
const [selectedOptions, setSelectedOptions] =
|
|
42
|
-
const [allOptions, setAllOptions] =
|
|
43
|
-
const [overflowOptions, setOverflowOptions] =
|
|
40
|
+
const [totalDefaultOptions, setTotalDefaultOptions] = React.useState(0);
|
|
41
|
+
const [selectedOptions, setSelectedOptions] = React.useState(value);
|
|
42
|
+
const [allOptions, setAllOptions] = React.useState(options);
|
|
43
|
+
const [overflowOptions, setOverflowOptions] = React.useState([]);
|
|
44
44
|
const overflowQuantity = 3;
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
React.useEffect(() => setSelectedOptions(value), [value]);
|
|
46
|
+
React.useEffect(() => {
|
|
47
47
|
const newOptions = allOptions.filter(option => option.fixedItem);
|
|
48
48
|
|
|
49
49
|
if (newOptions.length > 0) {
|
|
@@ -52,7 +52,7 @@ function LabeledDropdownMultiPills(_ref) {
|
|
|
52
52
|
|
|
53
53
|
setTotalDefaultOptions(newOptions.length);
|
|
54
54
|
}, []);
|
|
55
|
-
|
|
55
|
+
React.useEffect(() => {
|
|
56
56
|
if (totalDefaultOptions) {
|
|
57
57
|
const newOptions = allOptions.map(opt => {
|
|
58
58
|
if (selectedOptions.length <= totalDefaultOptions && lodash.find(selectedOptions, {
|
|
@@ -70,13 +70,13 @@ function LabeledDropdownMultiPills(_ref) {
|
|
|
70
70
|
setAllOptions(newOptions);
|
|
71
71
|
}
|
|
72
72
|
}, [onSelect, onRemove, selectedOptions]);
|
|
73
|
-
|
|
73
|
+
React.useEffect(() => {
|
|
74
74
|
if (selectedOptions.length > overflowQuantity) {
|
|
75
75
|
const overflow = selectedOptions.filter((val, index) => index >= overflowQuantity);
|
|
76
76
|
setOverflowOptions(overflow);
|
|
77
77
|
}
|
|
78
78
|
}, [selectedOptions]);
|
|
79
|
-
const selectOption =
|
|
79
|
+
const selectOption = React.useCallback(option => {
|
|
80
80
|
if (!option.fixedItem) {
|
|
81
81
|
if (utils.isFunction(onChange)) {
|
|
82
82
|
const nextValue = utils.addOrRemove(selectedOptions, option, item => item.id);
|
|
@@ -87,7 +87,7 @@ function LabeledDropdownMultiPills(_ref) {
|
|
|
87
87
|
onSelect(option);
|
|
88
88
|
}
|
|
89
89
|
}, [selectedOptions]);
|
|
90
|
-
const removeOption =
|
|
90
|
+
const removeOption = React.useCallback(option => {
|
|
91
91
|
if (!option.fixedItem || selectedOptions.length > totalDefaultOptions) {
|
|
92
92
|
if (utils.isFunction(onChange)) {
|
|
93
93
|
const nextValue = selectedOptions.filter(val => option.id !== val.id);
|
|
@@ -128,14 +128,14 @@ function LabeledDropdownMultiPills(_ref) {
|
|
|
128
128
|
const TypeOfPill = typeOfPill();
|
|
129
129
|
|
|
130
130
|
if (index < overflowQuantity) {
|
|
131
|
-
return /*#__PURE__*/_jsx__default[
|
|
131
|
+
return /*#__PURE__*/_jsx__default["default"](TypeOfPill, {
|
|
132
132
|
label: option.label,
|
|
133
133
|
onRemove: () => removeOption(option)
|
|
134
134
|
}, option.id);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
return null;
|
|
138
|
-
}), selectedOptions && selectedOptions.length > overflowQuantity && /*#__PURE__*/_jsx__default[
|
|
138
|
+
}), selectedOptions && selectedOptions.length > overflowQuantity && /*#__PURE__*/_jsx__default["default"](OverflowPill.OverflowPill, {
|
|
139
139
|
label: `+ ${selectedOptions.length - overflowQuantity}`,
|
|
140
140
|
options: overflowOptions
|
|
141
141
|
})]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
4
4
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var usePrevious = require('@elliemae/ds-utilities/hooks/usePrevious');
|
|
8
8
|
var useShouldRecalculate = require('@elliemae/ds-utilities/hooks/useShouldRecalculate');
|
|
9
9
|
var utils$1 = require('@elliemae/ds-utilities/utils');
|
|
@@ -29,7 +29,7 @@ const _excluded = ["label", "labelIsValue", "options", "value", "onSelect", "onC
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
-
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[
|
|
32
|
+
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; }
|
|
33
33
|
function LabeledDropdownSinglePill(_ref) {
|
|
34
34
|
let {
|
|
35
35
|
label,
|
|
@@ -42,13 +42,13 @@ function LabeledDropdownSinglePill(_ref) {
|
|
|
42
42
|
minWidth,
|
|
43
43
|
fixed = false
|
|
44
44
|
} = _ref,
|
|
45
|
-
menuProps = _objectWithoutProperties__default[
|
|
45
|
+
menuProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
46
46
|
|
|
47
|
-
const [optionValue, setOptionValue] =
|
|
48
|
-
const prevOptions = usePrevious__default[
|
|
49
|
-
const areOptionsEqual = useShouldRecalculate__default[
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
const [optionValue, setOptionValue] = React.useState(value);
|
|
48
|
+
const prevOptions = usePrevious__default["default"](options);
|
|
49
|
+
const areOptionsEqual = useShouldRecalculate__default["default"](utils.hasOptionChanged(prevOptions, options));
|
|
50
|
+
React.useEffect(() => setOptionValue(value), [value]);
|
|
51
|
+
React.useEffect(() => {
|
|
52
52
|
const selectedValue = options.find(option => option.selected);
|
|
53
53
|
|
|
54
54
|
if (selectedValue) {
|
|
@@ -57,13 +57,13 @@ function LabeledDropdownSinglePill(_ref) {
|
|
|
57
57
|
setOptionValue(options[0]);
|
|
58
58
|
}
|
|
59
59
|
}, [areOptionsEqual]);
|
|
60
|
-
|
|
60
|
+
React.useLayoutEffect(() => {
|
|
61
61
|
if (optionValue) {
|
|
62
62
|
const selectedValue = options.find(option => option.id === optionValue.id);
|
|
63
63
|
setOptionValue(selectedValue);
|
|
64
64
|
}
|
|
65
65
|
}, [options]);
|
|
66
|
-
const selectOption =
|
|
66
|
+
const selectOption = React.useCallback(option => {
|
|
67
67
|
if (utils$1.isFunction(onChange)) {
|
|
68
68
|
onChange(option);
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ function LabeledDropdownSinglePill(_ref) {
|
|
|
71
71
|
setOptionValue(option);
|
|
72
72
|
onSelect(option);
|
|
73
73
|
}, [onChange, onSelect]);
|
|
74
|
-
const onChangeInputValue =
|
|
74
|
+
const onChangeInputValue = React.useCallback(({
|
|
75
75
|
target: {
|
|
76
76
|
value: inputValue
|
|
77
77
|
}
|
|
@@ -104,7 +104,7 @@ function LabeledDropdownSinglePill(_ref) {
|
|
|
104
104
|
input,
|
|
105
105
|
onChangeInput
|
|
106
106
|
} = option,
|
|
107
|
-
otherProps = _objectWithoutProperties__default[
|
|
107
|
+
otherProps = _objectWithoutProperties__default["default"](option, _excluded2);
|
|
108
108
|
|
|
109
109
|
let SelectedPill;
|
|
110
110
|
|
|
@@ -127,7 +127,7 @@ function LabeledDropdownSinglePill(_ref) {
|
|
|
127
127
|
const renderSelection = () => {
|
|
128
128
|
if (!labelIsValue) {
|
|
129
129
|
if (optionValue) return renderPill(optionValue, fixed);
|
|
130
|
-
return _Pill || (_Pill = /*#__PURE__*/_jsx__default[
|
|
130
|
+
return _Pill || (_Pill = /*#__PURE__*/_jsx__default["default"](Pill.Pill, {
|
|
131
131
|
label: "-"
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
File without changes
|
|
@@ -21,11 +21,11 @@ function LabeledPills({
|
|
|
21
21
|
onFocusNextGroup,
|
|
22
22
|
onFocusPreviousGroup
|
|
23
23
|
}) {
|
|
24
|
-
return /*#__PURE__*/_jsx__default[
|
|
24
|
+
return /*#__PURE__*/_jsx__default["default"](PillGroup.PillGroup, {
|
|
25
25
|
onFocusGroupSet: onFocusGroupSet,
|
|
26
26
|
onFocusNextGroup: onFocusNextGroup,
|
|
27
27
|
onFocusPreviousGroup: onFocusPreviousGroup
|
|
28
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
28
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Pill.Pill, {
|
|
29
29
|
label: label,
|
|
30
30
|
leftAddon: leftAddon,
|
|
31
31
|
variant: "title",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactDesc = require('react-desc');
|
|
8
8
|
var useFocusGroupItem = require('@elliemae/ds-shared/FocusGroup/useFocusGroupItem');
|
|
9
9
|
var DSTooltip = require('@elliemae/ds-tooltip');
|
|
@@ -20,10 +20,10 @@ function OverflowPill({
|
|
|
20
20
|
label = '',
|
|
21
21
|
options = []
|
|
22
22
|
}) {
|
|
23
|
-
const ref =
|
|
24
|
-
const [tooltipIsOpen, setTooltipIsOpen] =
|
|
25
|
-
const [tooltipText, setTooltipText] =
|
|
26
|
-
|
|
23
|
+
const ref = React.useRef(null);
|
|
24
|
+
const [tooltipIsOpen, setTooltipIsOpen] = React.useState(false);
|
|
25
|
+
const [tooltipText, setTooltipText] = React.useState('');
|
|
26
|
+
React.useEffect(() => {
|
|
27
27
|
let text = '';
|
|
28
28
|
options.forEach(option => {
|
|
29
29
|
if (!tooltipText || option === options[0]) {
|
|
@@ -34,12 +34,12 @@ function OverflowPill({
|
|
|
34
34
|
});
|
|
35
35
|
setTooltipText(text);
|
|
36
36
|
}, [options]);
|
|
37
|
-
useFocusGroupItem__default[
|
|
38
|
-
return /*#__PURE__*/_jsx__default[
|
|
37
|
+
useFocusGroupItem__default["default"](ref);
|
|
38
|
+
return /*#__PURE__*/_jsx__default["default"](DSTooltip__default["default"], {
|
|
39
39
|
isOpen: tooltipIsOpen,
|
|
40
40
|
title: tooltipText,
|
|
41
41
|
zIndex: 11,
|
|
42
|
-
triggerComponent: /*#__PURE__*/_jsx__default[
|
|
42
|
+
triggerComponent: /*#__PURE__*/_jsx__default["default"](Pill.Pill, {
|
|
43
43
|
className: "overflow-pill",
|
|
44
44
|
containerProps: containerProps,
|
|
45
45
|
innerRef: ref,
|
|
@@ -20,7 +20,7 @@ const _excluded = ["containerProps", "label", "leftAddon", "rightAddon", "varian
|
|
|
20
20
|
|
|
21
21
|
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; }
|
|
22
22
|
|
|
23
|
-
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[
|
|
23
|
+
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; }
|
|
24
24
|
const pillBlockName = 'pill';
|
|
25
25
|
const PillWrapper = dsClassnames.aggregatedClasses('div')(pillBlockName, null, ({
|
|
26
26
|
size,
|
|
@@ -41,7 +41,7 @@ function Pill(_ref) {
|
|
|
41
41
|
variant = 'value',
|
|
42
42
|
size = 'm'
|
|
43
43
|
} = _ref,
|
|
44
|
-
otherProps = _objectWithoutProperties__default[
|
|
44
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
45
45
|
|
|
46
46
|
return /*#__PURE__*/jsxRuntime.jsxs(PillWrapper, _objectSpread(_objectSpread(_objectSpread({}, containerProps), {}, {
|
|
47
47
|
classProps: {
|
|
@@ -49,7 +49,7 @@ function Pill(_ref) {
|
|
|
49
49
|
size
|
|
50
50
|
}
|
|
51
51
|
}, otherProps), {}, {
|
|
52
|
-
children: [leftAddon && /*#__PURE__*/_jsx__default[
|
|
52
|
+
children: [leftAddon && /*#__PURE__*/_jsx__default["default"](PillAddon, {}, void 0, leftAddon), /*#__PURE__*/_jsx__default["default"](PillLabel, {}, void 0, label), rightAddon && /*#__PURE__*/_jsx__default["default"](PillAddon, {}, void 0, rightAddon)]
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -77,4 +77,4 @@ DSPillWithSchema.propTypes = props;
|
|
|
77
77
|
|
|
78
78
|
exports.DSPillWithSchema = DSPillWithSchema;
|
|
79
79
|
exports.Pill = Pill;
|
|
80
|
-
exports[
|
|
80
|
+
exports["default"] = Pill;
|
|
@@ -18,7 +18,7 @@ var FocusGroupProvider__default = /*#__PURE__*/_interopDefaultLegacy(FocusGroupP
|
|
|
18
18
|
|
|
19
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; }
|
|
20
20
|
|
|
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[
|
|
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; }
|
|
22
22
|
const pillGroupBlockName = 'pill-group';
|
|
23
23
|
const Container = dsClassnames.aggregatedClasses('div')(pillGroupBlockName);
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ const PillGroup = ({
|
|
|
28
28
|
onFocusPreviousGroup,
|
|
29
29
|
onFocusGroupSet,
|
|
30
30
|
children
|
|
31
|
-
}) => /*#__PURE__*/_jsx__default[
|
|
31
|
+
}) => /*#__PURE__*/_jsx__default["default"](FocusGroupProvider__default["default"], {
|
|
32
32
|
keyBindings: {
|
|
33
33
|
Tab: 'next'
|
|
34
34
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactDesc = require('react-desc');
|
|
8
8
|
var InfoCircleSmall = require('@elliemae/ds-icons/InfoCircleSmall');
|
|
9
9
|
var DSModal = require('@elliemae/ds-modal');
|
|
@@ -26,30 +26,30 @@ const ReadOnlyPill = ({
|
|
|
26
26
|
modalTitle = '',
|
|
27
27
|
tooltipText = ''
|
|
28
28
|
}) => {
|
|
29
|
-
const ref =
|
|
30
|
-
const [isModalOpen, setIsModalOpen] =
|
|
31
|
-
const [isTooltipOpen, setIsTooltipOpen] =
|
|
29
|
+
const ref = React.useRef(null);
|
|
30
|
+
const [isModalOpen, setIsModalOpen] = React.useState(false);
|
|
31
|
+
const [isTooltipOpen, setIsTooltipOpen] = React.useState(false);
|
|
32
32
|
|
|
33
33
|
const toggle = () => {
|
|
34
34
|
setIsModalOpen(!isModalOpen);
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
38
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
38
|
+
children: [/*#__PURE__*/_jsx__default["default"](Pill.Pill, {
|
|
39
39
|
"data-testid": "read-only-pill",
|
|
40
40
|
className: "removable-pill",
|
|
41
41
|
containerProps: containerProps,
|
|
42
42
|
innerRef: ref,
|
|
43
43
|
label: label,
|
|
44
44
|
leftAddon: leftAddon,
|
|
45
|
-
rightAddon: /*#__PURE__*/_jsx__default[
|
|
45
|
+
rightAddon: /*#__PURE__*/_jsx__default["default"](Popover__default["default"], {
|
|
46
46
|
isOpen: tooltipText && isTooltipOpen,
|
|
47
47
|
content: tooltipText,
|
|
48
48
|
placement: "top",
|
|
49
49
|
showArrow: true,
|
|
50
50
|
renderTrigger: ({
|
|
51
51
|
ref
|
|
52
|
-
}) => /*#__PURE__*/_jsx__default[
|
|
52
|
+
}) => /*#__PURE__*/_jsx__default["default"](InfoCircleSmall__default["default"], {
|
|
53
53
|
role: "button",
|
|
54
54
|
"data-testid": "read-only-info-btn",
|
|
55
55
|
className: "remove-pill-button",
|
|
@@ -61,7 +61,7 @@ const ReadOnlyPill = ({
|
|
|
61
61
|
})
|
|
62
62
|
}),
|
|
63
63
|
tabIndex: -1
|
|
64
|
-
}), /*#__PURE__*/_jsx__default[
|
|
64
|
+
}), /*#__PURE__*/_jsx__default["default"](DSModal__default["default"], {
|
|
65
65
|
isOpen: isModalOpen,
|
|
66
66
|
showClose: true,
|
|
67
67
|
shouldCloseOnOverlayClick: true,
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactDesc = require('react-desc');
|
|
8
8
|
var utils = require('@elliemae/ds-utilities/utils');
|
|
9
|
-
var
|
|
9
|
+
var CloseIcon = require('@elliemae/ds-icons/CloseXsmall');
|
|
10
10
|
var useFocusGroupItem = require('@elliemae/ds-shared/FocusGroup/useFocusGroupItem');
|
|
11
11
|
var Pill = require('./Pill.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
15
15
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
16
|
-
var
|
|
16
|
+
var CloseIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseIcon);
|
|
17
17
|
var useFocusGroupItem__default = /*#__PURE__*/_interopDefaultLegacy(useFocusGroupItem);
|
|
18
18
|
|
|
19
19
|
function RemovablePill({
|
|
@@ -23,11 +23,11 @@ function RemovablePill({
|
|
|
23
23
|
size = 'm',
|
|
24
24
|
leftAddon
|
|
25
25
|
}) {
|
|
26
|
-
const ref =
|
|
26
|
+
const ref = React.useRef(null);
|
|
27
27
|
const {
|
|
28
28
|
focusPrevious
|
|
29
|
-
} = useFocusGroupItem__default[
|
|
30
|
-
return /*#__PURE__*/_jsx__default[
|
|
29
|
+
} = useFocusGroupItem__default["default"](ref);
|
|
30
|
+
return /*#__PURE__*/_jsx__default["default"](Pill.Pill, {
|
|
31
31
|
className: "removable-pill",
|
|
32
32
|
"data-testid": "removable-pill",
|
|
33
33
|
containerProps: containerProps,
|
|
@@ -41,7 +41,7 @@ function RemovablePill({
|
|
|
41
41
|
if (utils.isFunction(focusPrevious)) focusPrevious();
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
rightAddon: /*#__PURE__*/_jsx__default[
|
|
44
|
+
rightAddon: /*#__PURE__*/_jsx__default["default"](CloseIcon__default["default"], {
|
|
45
45
|
role: "button",
|
|
46
46
|
"data-testid": "remove-pill-button",
|
|
47
47
|
className: "remove-pill-button",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Pill = require('./Pill.js');
|
|
6
|
+
var PillGroup = require('./PillGroup.js');
|
|
7
|
+
var LabeledDropdownPills = require('./LabeledDropdownPills.js');
|
|
8
|
+
var LabeledPills = require('./LabeledPills.js');
|
|
9
|
+
var DropdownPill = require('./DropdownPill.js');
|
|
10
|
+
var RemovablePill = require('./RemovablePill.js');
|
|
11
|
+
var ReadOnlyPill = require('./ReadOnlyPill.js');
|
|
12
|
+
var OverflowPill = require('./OverflowPill.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.DSPillWithSchema = Pill.DSPillWithSchema;
|
|
17
|
+
exports.Pill = Pill.Pill;
|
|
18
|
+
exports.Container = PillGroup.Container;
|
|
19
|
+
exports.DSPillGroupWithSchema = PillGroup.DSPillGroupWithSchema;
|
|
20
|
+
exports.PillGroup = PillGroup.PillGroup;
|
|
21
|
+
exports.DSLabeledDropdownPillsWithSchema = LabeledDropdownPills.DSLabeledDropdownPillsWithSchema;
|
|
22
|
+
exports.LabeledDropdownPills = LabeledDropdownPills.LabeledDropdownPills;
|
|
23
|
+
exports.DSLabeledPillsWithSchema = LabeledPills.DSLabeledPillsWithSchema;
|
|
24
|
+
exports.LabeledPills = LabeledPills.LabeledPills;
|
|
25
|
+
exports.DSDropdownPillWithSchema = DropdownPill.DSDropdownPillWithSchema;
|
|
26
|
+
exports.DropdownPill = DropdownPill.DropdownPill;
|
|
27
|
+
exports.DSRemovablePillWithSchema = RemovablePill.DSRemovablePillWithSchema;
|
|
28
|
+
exports.RemovablePill = RemovablePill.RemovablePill;
|
|
29
|
+
exports.DSReadOnlyPillWithSchema = ReadOnlyPill.DSReadOnlyPillWithSchema;
|
|
30
|
+
exports.ReadOnlyPill = ReadOnlyPill.ReadOnlyPill;
|
|
31
|
+
exports.DSOverflowPillWithSchema = OverflowPill.DSOverflowPillWithSchema;
|
|
32
|
+
exports.OverflowPill = OverflowPill.OverflowPill;
|
package/cjs/index.d.js
ADDED
package/cjs/index.js
CHANGED
|
@@ -2,20 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Pill = require('./Pill.js');
|
|
6
|
-
var PillGroup = require('./PillGroup.js');
|
|
7
|
-
var LabeledDropdownPills = require('./LabeledDropdownPills.js');
|
|
8
|
-
var LabeledPills = require('./LabeledPills.js');
|
|
9
|
-
var DropdownPill = require('./DropdownPill.js');
|
|
10
|
-
var RemovablePill = require('./RemovablePill.js');
|
|
11
|
-
var ReadOnlyPill = require('./ReadOnlyPill.js');
|
|
12
|
-
var OverflowPill = require('./OverflowPill.js');
|
|
5
|
+
var Pill = require('./deprecated/Pill.js');
|
|
6
|
+
var PillGroup = require('./deprecated/PillGroup.js');
|
|
7
|
+
var LabeledDropdownPills = require('./deprecated/LabeledDropdownPills.js');
|
|
8
|
+
var LabeledPills = require('./deprecated/LabeledPills.js');
|
|
9
|
+
var DropdownPill = require('./deprecated/DropdownPill.js');
|
|
10
|
+
var RemovablePill = require('./deprecated/RemovablePill.js');
|
|
11
|
+
var ReadOnlyPill = require('./deprecated/ReadOnlyPill.js');
|
|
12
|
+
var OverflowPill = require('./deprecated/OverflowPill.js');
|
|
13
|
+
var Pill$1 = require('./components/Pill.js');
|
|
14
|
+
var PillGroup$1 = require('./components/PillGroup.js');
|
|
15
|
+
var PillButton = require('./components/PillButton.js');
|
|
13
16
|
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
exports.DSPillWithSchema = Pill.DSPillWithSchema;
|
|
17
20
|
exports.Pill = Pill.Pill;
|
|
18
|
-
exports
|
|
21
|
+
exports["default"] = Pill.Pill;
|
|
19
22
|
exports.Container = PillGroup.Container;
|
|
20
23
|
exports.DSPillGroupWithSchema = PillGroup.DSPillGroupWithSchema;
|
|
21
24
|
exports.PillGroup = PillGroup.PillGroup;
|
|
@@ -31,3 +34,10 @@ exports.DSReadOnlyPillWithSchema = ReadOnlyPill.DSReadOnlyPillWithSchema;
|
|
|
31
34
|
exports.ReadOnlyPill = ReadOnlyPill.ReadOnlyPill;
|
|
32
35
|
exports.DSOverflowPillWithSchema = OverflowPill.DSOverflowPillWithSchema;
|
|
33
36
|
exports.OverflowPill = OverflowPill.OverflowPill;
|
|
37
|
+
exports.DSPillV2 = Pill$1.DSPillV2;
|
|
38
|
+
exports.DSPillV2WithSchema = Pill$1.DSPillV2WithSchema;
|
|
39
|
+
exports.DSPillGroupV2 = PillGroup$1.DSPillGroupV2;
|
|
40
|
+
exports.DSPillGroupV2Context = PillGroup$1.DSPillGroupV2Context;
|
|
41
|
+
exports.DSPillGroupV2WithSchema = PillGroup$1.DSPillGroupV2WithSchema;
|
|
42
|
+
exports.DSPillButton = PillButton.DSPillButton;
|
|
43
|
+
exports.DSPillButtonWithSchema = PillButton.DSPillButtonWithSchema;
|