@elliemae/ds-pills 2.2.0 → 2.3.0-alpha.3

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.
Files changed (125) hide show
  1. package/cjs/components/Pill.js +56 -49
  2. package/cjs/components/Pill.js.map +7 -0
  3. package/cjs/components/PillButton.js +54 -52
  4. package/cjs/components/PillButton.js.map +7 -0
  5. package/cjs/components/PillGroup.js +61 -53
  6. package/cjs/components/PillGroup.js.map +7 -0
  7. package/cjs/components/index.js +30 -17
  8. package/cjs/components/index.js.map +7 -0
  9. package/cjs/components/styled.js +228 -78
  10. package/cjs/components/styled.js.map +7 -0
  11. package/cjs/components/types/DropdownPill.js +79 -77
  12. package/cjs/components/types/DropdownPill.js.map +7 -0
  13. package/cjs/components/types/InputPill.js +58 -48
  14. package/cjs/components/types/InputPill.js.map +7 -0
  15. package/cjs/components/types/LabelPill.js +44 -38
  16. package/cjs/components/types/LabelPill.js.map +7 -0
  17. package/cjs/components/types/ReadOnlyPill.js +48 -43
  18. package/cjs/components/types/ReadOnlyPill.js.map +7 -0
  19. package/cjs/components/types/RemovablePill.js +60 -53
  20. package/cjs/components/types/RemovablePill.js.map +7 -0
  21. package/cjs/components/types/ValuePill.js +48 -43
  22. package/cjs/components/types/ValuePill.js.map +7 -0
  23. package/cjs/components/types/index.js +33 -19
  24. package/cjs/components/types/index.js.map +7 -0
  25. package/cjs/deprecated/DropdownPill.js +80 -101
  26. package/cjs/deprecated/DropdownPill.js.map +7 -0
  27. package/cjs/deprecated/InputPill.js +67 -69
  28. package/cjs/deprecated/InputPill.js.map +7 -0
  29. package/cjs/deprecated/LabeledDropdownPills.js +92 -96
  30. package/cjs/deprecated/LabeledDropdownPills.js.map +7 -0
  31. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js +91 -94
  32. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js.map +7 -0
  33. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js +106 -114
  34. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js.map +7 -0
  35. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js +119 -127
  36. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js.map +7 -0
  37. package/cjs/deprecated/LabeledDropdownPillsTypes/utils.js +39 -15
  38. package/cjs/deprecated/LabeledDropdownPillsTypes/utils.js.map +7 -0
  39. package/cjs/deprecated/LabeledPills.js +65 -52
  40. package/cjs/deprecated/LabeledPills.js.map +7 -0
  41. package/cjs/deprecated/OverflowPill.js +59 -53
  42. package/cjs/deprecated/OverflowPill.js.map +7 -0
  43. package/cjs/deprecated/Pill.js +67 -82
  44. package/cjs/deprecated/Pill.js.map +7 -0
  45. package/cjs/deprecated/PillGroup.js +68 -68
  46. package/cjs/deprecated/PillGroup.js.map +7 -0
  47. package/cjs/deprecated/ReadOnlyPill.js +93 -94
  48. package/cjs/deprecated/ReadOnlyPill.js.map +7 -0
  49. package/cjs/deprecated/RemovablePill.js +61 -57
  50. package/cjs/deprecated/RemovablePill.js.map +7 -0
  51. package/cjs/deprecated/index.js +43 -33
  52. package/cjs/deprecated/index.js.map +7 -0
  53. package/cjs/index.d.js +27 -2
  54. package/cjs/index.d.js.map +7 -0
  55. package/cjs/index.js +37 -43
  56. package/cjs/index.js.map +7 -0
  57. package/cjs/props.js +72 -46
  58. package/cjs/props.js.map +7 -0
  59. package/cjs/utils.js +43 -25
  60. package/cjs/utils.js.map +7 -0
  61. package/esm/components/Pill.js +18 -31
  62. package/esm/components/Pill.js.map +7 -0
  63. package/esm/components/PillButton.js +22 -39
  64. package/esm/components/PillButton.js.map +7 -0
  65. package/esm/components/PillGroup.js +28 -38
  66. package/esm/components/PillGroup.js.map +7 -0
  67. package/esm/components/index.js +5 -3
  68. package/esm/components/index.js.map +7 -0
  69. package/esm/components/styled.js +205 -66
  70. package/esm/components/styled.js.map +7 -0
  71. package/esm/components/types/DropdownPill.js +50 -67
  72. package/esm/components/types/DropdownPill.js.map +7 -0
  73. package/esm/components/types/InputPill.js +25 -35
  74. package/esm/components/types/InputPill.js.map +7 -0
  75. package/esm/components/types/LabelPill.js +15 -29
  76. package/esm/components/types/LabelPill.js.map +7 -0
  77. package/esm/components/types/ReadOnlyPill.js +19 -34
  78. package/esm/components/types/ReadOnlyPill.js.map +7 -0
  79. package/esm/components/types/RemovablePill.js +31 -44
  80. package/esm/components/types/RemovablePill.js.map +7 -0
  81. package/esm/components/types/ValuePill.js +19 -34
  82. package/esm/components/types/ValuePill.js.map +7 -0
  83. package/esm/components/types/index.js +8 -6
  84. package/esm/components/types/index.js.map +7 -0
  85. package/esm/deprecated/DropdownPill.js +49 -86
  86. package/esm/deprecated/DropdownPill.js.map +7 -0
  87. package/esm/deprecated/InputPill.js +38 -59
  88. package/esm/deprecated/InputPill.js.map +7 -0
  89. package/esm/deprecated/LabeledDropdownPills.js +59 -81
  90. package/esm/deprecated/LabeledDropdownPills.js.map +7 -0
  91. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js +60 -84
  92. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js.map +7 -0
  93. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js +65 -94
  94. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js.map +7 -0
  95. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js +79 -108
  96. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js.map +7 -0
  97. package/esm/deprecated/LabeledDropdownPillsTypes/utils.js +9 -10
  98. package/esm/deprecated/LabeledDropdownPillsTypes/utils.js.map +7 -0
  99. package/esm/deprecated/LabeledPills.js +34 -41
  100. package/esm/deprecated/LabeledPills.js.map +7 -0
  101. package/esm/deprecated/OverflowPill.js +25 -37
  102. package/esm/deprecated/OverflowPill.js.map +7 -0
  103. package/esm/deprecated/Pill.js +39 -71
  104. package/esm/deprecated/Pill.js.map +7 -0
  105. package/esm/deprecated/PillGroup.js +39 -56
  106. package/esm/deprecated/PillGroup.js.map +7 -0
  107. package/esm/deprecated/ReadOnlyPill.js +60 -79
  108. package/esm/deprecated/ReadOnlyPill.js.map +7 -0
  109. package/esm/deprecated/RemovablePill.js +30 -45
  110. package/esm/deprecated/RemovablePill.js.map +7 -0
  111. package/esm/deprecated/index.js +14 -8
  112. package/esm/deprecated/index.js.map +7 -0
  113. package/esm/index.d.js +2 -1
  114. package/esm/index.d.js.map +7 -0
  115. package/esm/index.js +8 -11
  116. package/esm/index.js.map +7 -0
  117. package/esm/props.js +42 -36
  118. package/esm/props.js.map +7 -0
  119. package/esm/utils.js +16 -23
  120. package/esm/utils.js.map +7 -0
  121. package/package.json +15 -15
  122. package/types/deprecated/LabeledDropdownPills.d.ts +1 -1
  123. package/types/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.d.ts +3 -1
  124. package/types/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.d.ts +3 -1
  125. package/types/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.d.ts +1 -0
@@ -1,72 +1,72 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
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');
10
- var _jsx = require('@babel/runtime/helpers/jsx');
11
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
12
- require('react');
13
- var reactDesc = require('react-desc');
14
- var dsClassnames = require('@elliemae/ds-classnames');
15
- var FocusGroupProvider = require('@elliemae/ds-shared/FocusGroup/FocusGroupManager');
16
- var jsxRuntime = require('react/jsx-runtime');
17
-
18
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
19
-
20
- var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
21
- var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
22
- var FocusGroupProvider__default = /*#__PURE__*/_interopDefaultLegacy(FocusGroupProvider);
23
-
24
- 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; }
25
-
26
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
- const pillGroupBlockName = 'pill-group';
28
- const Container = dsClassnames.aggregatedClasses('div')(pillGroupBlockName);
29
-
30
- const PillGroup = _ref => {
31
- let {
32
- containerProps = {},
33
- onFocusNextGroup,
34
- onFocusPreviousGroup,
35
- onFocusGroupSet,
36
- children
37
- } = _ref;
38
- return /*#__PURE__*/_jsx__default["default"](FocusGroupProvider__default["default"], {
39
- keyBindings: {
40
- Tab: 'next'
41
- },
42
- onFocusGroupSet: onFocusGroupSet,
43
- onFocusNextGroup: onFocusNextGroup,
44
- onFocusPreviousGroup: onFocusPreviousGroup,
45
- orientation: "horizontal"
46
- }, void 0, /*#__PURE__*/jsxRuntime.jsx(Container, _objectSpread(_objectSpread({}, containerProps), {}, {
47
- children: children
48
- })));
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
49
11
  };
50
-
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var PillGroup_exports = {};
29
+ __export(PillGroup_exports, {
30
+ Container: () => Container,
31
+ DSPillGroupWithSchema: () => DSPillGroupWithSchema,
32
+ PillGroup: () => PillGroup
33
+ });
34
+ var React = __toESM(require("react"));
35
+ var import_react = __toESM(require("react"));
36
+ var import_react_desc = require("react-desc");
37
+ var import_ds_classnames = require("@elliemae/ds-classnames");
38
+ var import_FocusGroupManager = require("@elliemae/ds-shared/FocusGroup/FocusGroupManager");
39
+ const pillGroupBlockName = "pill-group";
40
+ const Container = (0, import_ds_classnames.aggregatedClasses)("div")(pillGroupBlockName);
41
+ const PillGroup = ({
42
+ containerProps = {},
43
+ onFocusNextGroup,
44
+ onFocusPreviousGroup,
45
+ onFocusGroupSet,
46
+ children
47
+ }) => /* @__PURE__ */ import_react.default.createElement(import_FocusGroupManager.FocusGroupProvider, {
48
+ keyBindings: {
49
+ Tab: "next"
50
+ },
51
+ onFocusGroupSet,
52
+ onFocusNextGroup,
53
+ onFocusPreviousGroup,
54
+ orientation: "horizontal"
55
+ }, /* @__PURE__ */ import_react.default.createElement(Container, {
56
+ ...containerProps
57
+ }, children));
51
58
  const props = {
52
- /** props injected to component wrapper */
53
- containerProps: reactDesc.PropTypes.object.description('props injected to component wrapper'),
54
-
55
- /** focus next group callback */
56
- onFocusNextGroup: reactDesc.PropTypes.func.description('focus next group callback'),
57
-
58
- /** focus prev group callback */
59
- onFocusPreviousGroup: reactDesc.PropTypes.func.description('focus prev group callback'),
60
-
61
- /** focus group set callback */
62
- onFocusGroupSet: reactDesc.PropTypes.func.description('focus group set callback'),
63
-
64
- /** pill components */
65
- children: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.node), reactDesc.PropTypes.node]).isRequired.description('pill components')
59
+ containerProps: import_react_desc.PropTypes.object.description("props injected to component wrapper"),
60
+ onFocusNextGroup: import_react_desc.PropTypes.func.description("focus next group callback"),
61
+ onFocusPreviousGroup: import_react_desc.PropTypes.func.description("focus prev group callback"),
62
+ onFocusGroupSet: import_react_desc.PropTypes.func.description("focus group set callback"),
63
+ children: import_react_desc.PropTypes.oneOfType([
64
+ import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.node),
65
+ import_react_desc.PropTypes.node
66
+ ]).isRequired.description("pill components")
66
67
  };
67
- const DSPillGroupWithSchema = reactDesc.describe(PillGroup);
68
+ PillGroup.propTypes = props;
69
+ const DSPillGroupWithSchema = (0, import_react_desc.describe)(PillGroup);
68
70
  DSPillGroupWithSchema.propTypes = props;
69
-
70
- exports.Container = Container;
71
- exports.DSPillGroupWithSchema = DSPillGroupWithSchema;
72
- exports.PillGroup = PillGroup;
71
+ module.exports = __toCommonJS(PillGroup_exports);
72
+ //# sourceMappingURL=PillGroup.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/deprecated/PillGroup.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { FocusGroupProvider } from '@elliemae/ds-shared/FocusGroup/FocusGroupManager';\n\nconst pillGroupBlockName = 'pill-group';\n\nexport const Container = aggregatedClasses('div')(pillGroupBlockName);\n\nconst PillGroup = ({\n containerProps = {},\n onFocusNextGroup,\n onFocusPreviousGroup,\n onFocusGroupSet,\n children,\n}) => (\n <FocusGroupProvider\n keyBindings={{\n Tab: 'next',\n }}\n onFocusGroupSet={onFocusGroupSet}\n onFocusNextGroup={onFocusNextGroup}\n onFocusPreviousGroup={onFocusPreviousGroup}\n orientation=\"horizontal\"\n >\n <Container {...containerProps}>{children}</Container>\n </FocusGroupProvider>\n);\n\nconst props = {\n /** props injected to component wrapper */\n containerProps: PropTypes.object.description(\n 'props injected to component wrapper',\n ),\n /** focus next group callback */\n onFocusNextGroup: PropTypes.func.description('focus next group callback'),\n /** focus prev group callback */\n onFocusPreviousGroup: PropTypes.func.description('focus prev group callback'),\n /** focus group set callback */\n onFocusGroupSet: PropTypes.func.description('focus group set callback'),\n /** pill components */\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]).isRequired.description('pill components'),\n};\n\nPillGroup.propTypes = props;\n\nconst DSPillGroupWithSchema = describe(PillGroup);\nDSPillGroupWithSchema.propTypes = props;\n\nexport { PillGroup, DSPillGroupWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,2BAAkC;AAClC,+BAAmC;AAEnC,MAAM,qBAAqB;AAEpB,MAAM,YAAY,4CAAkB,OAAO;AAElD,MAAM,YAAY,CAAC;AAAA,EACjB,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MAEA,mDAAC,6CAAD;AAAA,EACE,aAAa;AAAA,IACX,KAAK;AAAA;AAAA,EAEP;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAY;AAAA,GAEZ,mDAAC,WAAD;AAAA,KAAe;AAAA,GAAiB;AAIpC,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,4BAAU,OAAO,YAC/B;AAAA,EAGF,kBAAkB,4BAAU,KAAK,YAAY;AAAA,EAE7C,sBAAsB,4BAAU,KAAK,YAAY;AAAA,EAEjD,iBAAiB,4BAAU,KAAK,YAAY;AAAA,EAE5C,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU,QAAQ,4BAAU;AAAA,IAC5B,4BAAU;AAAA,KACT,WAAW,YAAY;AAAA;AAG5B,UAAU,YAAY;AAEtB,MAAM,wBAAwB,gCAAS;AACvC,sBAAsB,YAAY;",
6
+ "names": []
7
+ }
@@ -1,101 +1,100 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _jsx = require('@babel/runtime/helpers/jsx');
6
- require('core-js/modules/web.dom-collections.iterator.js');
7
- var React = require('react');
8
- var reactDesc = require('react-desc');
9
- var dsIcons = require('@elliemae/ds-icons');
10
- var DSModal = require('@elliemae/ds-modal');
11
- var Popover = require('@elliemae/ds-popover');
12
- var Pill = require('./Pill.js');
13
- var jsxRuntime = require('react/jsx-runtime');
14
-
15
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
-
17
- var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
18
- var DSModal__default = /*#__PURE__*/_interopDefaultLegacy(DSModal);
19
- var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
20
-
21
- const ReadOnlyPill = _ref => {
22
- let {
23
- containerProps = {},
24
- modalContent = '',
25
- label = '',
26
- leftAddon,
27
- modalTitle = '',
28
- tooltipText = ''
29
- } = _ref;
30
- const ref = React.useRef(null);
31
- const [isModalOpen, setIsModalOpen] = React.useState(false);
32
- const [isTooltipOpen, setIsTooltipOpen] = React.useState(false);
33
-
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var ReadOnlyPill_exports = {};
29
+ __export(ReadOnlyPill_exports, {
30
+ DSReadOnlyPillWithSchema: () => DSReadOnlyPillWithSchema,
31
+ ReadOnlyPill: () => ReadOnlyPill
32
+ });
33
+ var React = __toESM(require("react"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_react_desc = require("react-desc");
36
+ var import_ds_icons = require("@elliemae/ds-icons");
37
+ var import_ds_modal = require("@elliemae/ds-modal");
38
+ var import_ds_popover = require("@elliemae/ds-popover");
39
+ var import_Pill = require("./Pill");
40
+ const ReadOnlyPill = ({
41
+ containerProps = {},
42
+ modalContent = "",
43
+ label = "",
44
+ leftAddon,
45
+ modalTitle = "",
46
+ tooltipText = ""
47
+ }) => {
48
+ const ref = (0, import_react.useRef)(null);
49
+ const [isModalOpen, setIsModalOpen] = (0, import_react.useState)(false);
50
+ const [isTooltipOpen, setIsTooltipOpen] = (0, import_react.useState)(false);
34
51
  const toggle = () => {
35
52
  setIsModalOpen(!isModalOpen);
36
53
  };
37
-
38
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
39
- children: [/*#__PURE__*/_jsx__default["default"](Pill.Pill, {
40
- "data-testid": "read-only-pill",
41
- className: "removable-pill",
42
- containerProps: containerProps,
43
- innerRef: ref,
44
- label: label,
45
- leftAddon: leftAddon,
46
- rightAddon: /*#__PURE__*/_jsx__default["default"](Popover__default["default"], {
47
- isOpen: tooltipText && isTooltipOpen,
48
- content: tooltipText,
49
- placement: "top",
50
- showArrow: true,
51
- renderTrigger: _ref2 => {
52
- let {
53
- ref
54
- } = _ref2;
55
- return /*#__PURE__*/_jsx__default["default"](dsIcons.InfoCircleSmall, {
56
- role: "button",
57
- "data-testid": "read-only-info-btn",
58
- className: "remove-pill-button",
59
- onClick: toggle,
60
- onMouseEnter: () => setIsTooltipOpen(true),
61
- onMouseLeave: () => setIsTooltipOpen(false),
62
- color: ['brand-primary', '600'],
63
- innerRef: ref
64
- });
65
- }
66
- }),
67
- tabIndex: -1
68
- }), /*#__PURE__*/_jsx__default["default"](DSModal__default["default"], {
69
- isOpen: isModalOpen,
70
- showClose: true,
71
- shouldCloseOnOverlayClick: true,
72
- modalTitle: modalTitle,
73
- modalType: DSModal.MODAL_TYPE_V2.INFORMATION,
74
- onClose: toggle,
75
- version: 2
76
- }, void 0, modalContent)]
77
- });
54
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Pill.Pill, {
55
+ "data-testid": "read-only-pill",
56
+ className: "removable-pill",
57
+ containerProps,
58
+ innerRef: ref,
59
+ label,
60
+ leftAddon,
61
+ rightAddon: /* @__PURE__ */ import_react.default.createElement(import_ds_popover.DSPopover, {
62
+ isOpen: tooltipText && isTooltipOpen,
63
+ content: tooltipText,
64
+ placement: "top",
65
+ showArrow: true,
66
+ renderTrigger: ({ ref: ref2 }) => /* @__PURE__ */ import_react.default.createElement(import_ds_icons.InfoCircleSmall, {
67
+ role: "button",
68
+ "data-testid": "read-only-info-btn",
69
+ className: "remove-pill-button",
70
+ onClick: toggle,
71
+ onMouseEnter: () => setIsTooltipOpen(true),
72
+ onMouseLeave: () => setIsTooltipOpen(false),
73
+ color: ["brand-primary", "600"],
74
+ innerRef: ref2
75
+ })
76
+ }),
77
+ tabIndex: -1
78
+ }), /* @__PURE__ */ import_react.default.createElement(import_ds_modal.DSModal, {
79
+ isOpen: isModalOpen,
80
+ showClose: true,
81
+ shouldCloseOnOverlayClick: true,
82
+ modalTitle,
83
+ modalType: import_ds_modal.MODAL_TYPE_V2.INFORMATION,
84
+ onClose: toggle,
85
+ version: 2
86
+ }, modalContent));
78
87
  };
79
-
80
88
  const props = {
81
- /** props injected to component wrapper */
82
- containerProps: reactDesc.PropTypes.object.description('props injected to component wrapper'),
83
-
84
- /** labeled pill text label */
85
- label: reactDesc.PropTypes.string.isRequired.description('pill text label'),
86
-
87
- /** addon component to left */
88
- leftAddon: reactDesc.PropTypes.node.description('addon component to left'),
89
-
90
- /** read only pill modal content */
91
- modalContent: reactDesc.PropTypes.string.description('read only pill modal content'),
92
-
93
- /** read only pill modal title */
94
- modalTitle: reactDesc.PropTypes.string.description('read only pill modal title'),
95
- tooltipText: reactDesc.PropTypes.string.description('text to display in tooltip')
89
+ containerProps: import_react_desc.PropTypes.object.description("props injected to component wrapper"),
90
+ label: import_react_desc.PropTypes.string.isRequired.description("pill text label"),
91
+ leftAddon: import_react_desc.PropTypes.node.description("addon component to left"),
92
+ modalContent: import_react_desc.PropTypes.string.description("read only pill modal content"),
93
+ modalTitle: import_react_desc.PropTypes.string.description("read only pill modal title"),
94
+ tooltipText: import_react_desc.PropTypes.string.description("text to display in tooltip")
96
95
  };
97
- const DSReadOnlyPillWithSchema = reactDesc.describe(ReadOnlyPill);
96
+ ReadOnlyPill.propTypes = props;
97
+ const DSReadOnlyPillWithSchema = (0, import_react_desc.describe)(ReadOnlyPill);
98
98
  DSReadOnlyPillWithSchema.propTypes = props;
99
-
100
- exports.DSReadOnlyPillWithSchema = DSReadOnlyPillWithSchema;
101
- exports.ReadOnlyPill = ReadOnlyPill;
99
+ module.exports = __toCommonJS(ReadOnlyPill_exports);
100
+ //# sourceMappingURL=ReadOnlyPill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/deprecated/ReadOnlyPill.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { useRef, useState } from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { InfoCircleSmall } from '@elliemae/ds-icons';\nimport { DSModal, MODAL_TYPE_V2 } from '@elliemae/ds-modal';\nimport { DSPopover } from '@elliemae/ds-popover';\nimport { Pill } from './Pill';\n\nconst ReadOnlyPill = ({\n containerProps = {},\n modalContent = '',\n label = '',\n leftAddon,\n modalTitle = '',\n tooltipText = '',\n}) => {\n const ref = useRef(null);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [isTooltipOpen, setIsTooltipOpen] = useState(false);\n\n const toggle = () => {\n setIsModalOpen(!isModalOpen);\n };\n\n return (\n <>\n <Pill\n data-testid=\"read-only-pill\"\n className=\"removable-pill\"\n containerProps={containerProps}\n innerRef={ref}\n label={label}\n leftAddon={leftAddon}\n rightAddon={\n <DSPopover\n isOpen={tooltipText && isTooltipOpen}\n content={tooltipText}\n placement=\"top\"\n showArrow\n renderTrigger={({ ref }) => (\n <InfoCircleSmall\n role=\"button\"\n data-testid=\"read-only-info-btn\"\n className=\"remove-pill-button\"\n onClick={toggle}\n onMouseEnter={() => setIsTooltipOpen(true)}\n onMouseLeave={() => setIsTooltipOpen(false)}\n color={['brand-primary', '600']}\n innerRef={ref}\n />\n )}\n />\n }\n tabIndex={-1}\n />\n <DSModal\n isOpen={isModalOpen}\n showClose\n shouldCloseOnOverlayClick\n modalTitle={modalTitle}\n modalType={MODAL_TYPE_V2.INFORMATION}\n onClose={toggle}\n version={2}\n >\n {modalContent}\n </DSModal>\n </>\n );\n};\n\nconst props = {\n /** props injected to component wrapper */\n containerProps: PropTypes.object.description('props injected to component wrapper'),\n /** labeled pill text label */\n label: PropTypes.string.isRequired.description('pill text label'),\n /** addon component to left */\n leftAddon: PropTypes.node.description('addon component to left'),\n /** read only pill modal content */\n modalContent: PropTypes.string.description('read only pill modal content'),\n /** read only pill modal title */\n modalTitle: PropTypes.string.description('read only pill modal title'),\n tooltipText: PropTypes.string.description('text to display in tooltip'),\n};\n\nReadOnlyPill.propTypes = props;\n\nconst DSReadOnlyPillWithSchema = describe(ReadOnlyPill);\nDSReadOnlyPillWithSchema.propTypes = props;\n\nexport { ReadOnlyPill, DSReadOnlyPillWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAwC;AACxC,wBAAoC;AACpC,sBAAgC;AAChC,sBAAuC;AACvC,wBAA0B;AAC1B,kBAAqB;AAErB,MAAM,eAAe,CAAC;AAAA,EACpB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,QAAQ;AAAA,EACR;AAAA,EACA,aAAa;AAAA,EACb,cAAc;AAAA,MACV;AACJ,QAAM,MAAM,yBAAO;AACnB,QAAM,CAAC,aAAa,kBAAkB,2BAAS;AAC/C,QAAM,CAAC,eAAe,oBAAoB,2BAAS;AAEnD,QAAM,SAAS,MAAM;AACnB,mBAAe,CAAC;AAAA;AAGlB,SACE,wFACE,mDAAC,kBAAD;AAAA,IACE,eAAY;AAAA,IACZ,WAAU;AAAA,IACV;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA,YACE,mDAAC,6BAAD;AAAA,MACE,QAAQ,eAAe;AAAA,MACvB,SAAS;AAAA,MACT,WAAU;AAAA,MACV,WAAS;AAAA,MACT,eAAe,CAAC,EAAE,gBAChB,mDAAC,iCAAD;AAAA,QACE,MAAK;AAAA,QACL,eAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,cAAc,MAAM,iBAAiB;AAAA,QACrC,cAAc,MAAM,iBAAiB;AAAA,QACrC,OAAO,CAAC,iBAAiB;AAAA,QACzB,UAAU;AAAA;AAAA;AAAA,IAKlB,UAAU;AAAA,MAEZ,mDAAC,yBAAD;AAAA,IACE,QAAQ;AAAA,IACR,WAAS;AAAA,IACT,2BAAyB;AAAA,IACzB;AAAA,IACA,WAAW,8BAAc;AAAA,IACzB,SAAS;AAAA,IACT,SAAS;AAAA,KAER;AAAA;AAMT,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,4BAAU,OAAO,YAAY;AAAA,EAE7C,OAAO,4BAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,WAAW,4BAAU,KAAK,YAAY;AAAA,EAEtC,cAAc,4BAAU,OAAO,YAAY;AAAA,EAE3C,YAAY,4BAAU,OAAO,YAAY;AAAA,EACzC,aAAa,4BAAU,OAAO,YAAY;AAAA;AAG5C,aAAa,YAAY;AAEzB,MAAM,2BAA2B,gCAAS;AAC1C,yBAAyB,YAAY;",
6
+ "names": []
7
+ }
@@ -1,47 +1,61 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _jsx = require('@babel/runtime/helpers/jsx');
6
- var React = require('react');
7
- var reactDesc = require('react-desc');
8
- var dsUtilities = require('@elliemae/ds-utilities');
9
- var dsIcons = require('@elliemae/ds-icons');
10
- var useFocusGroupItem = require('@elliemae/ds-shared/FocusGroup/useFocusGroupItem');
11
- var Pill = require('./Pill.js');
12
-
13
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
-
15
- var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
16
- var useFocusGroupItem__default = /*#__PURE__*/_interopDefaultLegacy(useFocusGroupItem);
17
-
18
- function RemovablePill(_ref) {
19
- let {
20
- containerProps = {},
21
- label = '',
22
- onRemove,
23
- size = 'm',
24
- leftAddon
25
- } = _ref;
26
- const ref = React.useRef(null);
27
- const {
28
- focusPrevious
29
- } = useFocusGroupItem__default["default"](ref);
30
- return /*#__PURE__*/_jsx__default["default"](Pill.Pill, {
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var RemovablePill_exports = {};
29
+ __export(RemovablePill_exports, {
30
+ DSRemovablePillWithSchema: () => DSRemovablePillWithSchema,
31
+ RemovablePill: () => RemovablePill
32
+ });
33
+ var React = __toESM(require("react"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_react_desc = require("react-desc");
36
+ var import_ds_utilities = require("@elliemae/ds-utilities");
37
+ var import_ds_icons = require("@elliemae/ds-icons");
38
+ var import_useFocusGroupItem = require("@elliemae/ds-shared/FocusGroup/useFocusGroupItem");
39
+ var import_Pill = require("./Pill");
40
+ function RemovablePill({ containerProps = {}, label = "", onRemove, size = "m", leftAddon }) {
41
+ const ref = (0, import_react.useRef)(null);
42
+ const { focusPrevious } = (0, import_useFocusGroupItem.useFocusGroupItem)(ref);
43
+ return /* @__PURE__ */ import_react.default.createElement(import_Pill.Pill, {
31
44
  className: "removable-pill",
32
45
  "data-testid": "removable-pill",
33
- containerProps: containerProps,
46
+ containerProps,
34
47
  innerRef: ref,
35
- size: size,
36
- label: label,
37
- leftAddon: leftAddon,
38
- onKeyDown: e => {
39
- if (e.key === 'Backspace' && dsUtilities.isFunction(onRemove)) {
48
+ size,
49
+ label,
50
+ leftAddon,
51
+ onKeyDown: (e) => {
52
+ if (e.key === "Backspace" && (0, import_ds_utilities.isFunction)(onRemove)) {
40
53
  onRemove();
41
- if (dsUtilities.isFunction(focusPrevious)) focusPrevious();
54
+ if ((0, import_ds_utilities.isFunction)(focusPrevious))
55
+ focusPrevious();
42
56
  }
43
57
  },
44
- rightAddon: /*#__PURE__*/_jsx__default["default"](dsIcons.CloseXsmall, {
58
+ rightAddon: /* @__PURE__ */ import_react.default.createElement(import_ds_icons.CloseXsmall, {
45
59
  role: "button",
46
60
  "data-testid": "remove-pill-button",
47
61
  className: "remove-pill-button",
@@ -50,25 +64,15 @@ function RemovablePill(_ref) {
50
64
  tabIndex: -1
51
65
  });
52
66
  }
53
-
54
67
  const props = {
55
- /** props injected to component wrapper */
56
- containerProps: reactDesc.PropTypes.object.description('props injected to component wrapper'),
57
-
58
- /** labeled pill text label */
59
- label: reactDesc.PropTypes.string.isRequired.description('pill text label'),
60
-
61
- /** remove click callback */
62
- onRemove: reactDesc.PropTypes.func.description('remove click callback'),
63
-
64
- /** pill size */
65
- size: reactDesc.PropTypes.oneOf(['m', 'l']).description('pill size'),
66
-
67
- /** addon component to left */
68
- leftAddon: reactDesc.PropTypes.node.description('addon component to left')
68
+ containerProps: import_react_desc.PropTypes.object.description("props injected to component wrapper"),
69
+ label: import_react_desc.PropTypes.string.isRequired.description("pill text label"),
70
+ onRemove: import_react_desc.PropTypes.func.description("remove click callback"),
71
+ size: import_react_desc.PropTypes.oneOf(["m", "l"]).description("pill size"),
72
+ leftAddon: import_react_desc.PropTypes.node.description("addon component to left")
69
73
  };
70
- const DSRemovablePillWithSchema = reactDesc.describe(RemovablePill);
74
+ RemovablePill.propTypes = props;
75
+ const DSRemovablePillWithSchema = (0, import_react_desc.describe)(RemovablePill);
71
76
  DSRemovablePillWithSchema.propTypes = props;
72
-
73
- exports.DSRemovablePillWithSchema = DSRemovablePillWithSchema;
74
- exports.RemovablePill = RemovablePill;
77
+ module.exports = __toCommonJS(RemovablePill_exports);
78
+ //# sourceMappingURL=RemovablePill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/deprecated/RemovablePill.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { useRef } from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { isFunction } from '@elliemae/ds-utilities';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport { useFocusGroupItem } from '@elliemae/ds-shared/FocusGroup/useFocusGroupItem';\nimport { Pill } from './Pill';\n\nfunction RemovablePill({ containerProps = {}, label = '', onRemove, size = 'm', leftAddon }) {\n const ref = useRef(null);\n const { focusPrevious } = useFocusGroupItem(ref);\n return (\n <Pill\n className=\"removable-pill\"\n data-testid=\"removable-pill\"\n containerProps={containerProps}\n innerRef={ref}\n size={size}\n label={label}\n leftAddon={leftAddon}\n onKeyDown={(e) => {\n if (e.key === 'Backspace' && isFunction(onRemove)) {\n onRemove();\n if (isFunction(focusPrevious)) focusPrevious();\n }\n }}\n rightAddon={\n <CloseXsmall role=\"button\" data-testid=\"remove-pill-button\" className=\"remove-pill-button\" onClick={onRemove} />\n }\n tabIndex={-1}\n />\n );\n}\n\nconst props = {\n /** props injected to component wrapper */\n containerProps: PropTypes.object.description('props injected to component wrapper'),\n /** labeled pill text label */\n label: PropTypes.string.isRequired.description('pill text label'),\n /** remove click callback */\n onRemove: PropTypes.func.description('remove click callback'),\n /** pill size */\n size: PropTypes.oneOf(['m', 'l']).description('pill size'),\n /** addon component to left */\n leftAddon: PropTypes.node.description('addon component to left'),\n};\n\nRemovablePill.propTypes = props;\nconst DSRemovablePillWithSchema = describe(RemovablePill);\nDSRemovablePillWithSchema.propTypes = props;\n\nexport { RemovablePill, DSRemovablePillWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA8B;AAC9B,wBAAoC;AACpC,0BAA2B;AAC3B,sBAA4B;AAC5B,+BAAkC;AAClC,kBAAqB;AAErB,uBAAuB,EAAE,iBAAiB,IAAI,QAAQ,IAAI,UAAU,OAAO,KAAK,aAAa;AAC3F,QAAM,MAAM,yBAAO;AACnB,QAAM,EAAE,kBAAkB,gDAAkB;AAC5C,SACE,mDAAC,kBAAD;AAAA,IACE,WAAU;AAAA,IACV,eAAY;AAAA,IACZ;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,CAAC,MAAM;AAChB,UAAI,EAAE,QAAQ,eAAe,oCAAW,WAAW;AACjD;AACA,YAAI,oCAAW;AAAgB;AAAA;AAAA;AAAA,IAGnC,YACE,mDAAC,6BAAD;AAAA,MAAa,MAAK;AAAA,MAAS,eAAY;AAAA,MAAqB,WAAU;AAAA,MAAqB,SAAS;AAAA;AAAA,IAEtG,UAAU;AAAA;AAAA;AAKhB,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,4BAAU,OAAO,YAAY;AAAA,EAE7C,OAAO,4BAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,UAAU,4BAAU,KAAK,YAAY;AAAA,EAErC,MAAM,4BAAU,MAAM,CAAC,KAAK,MAAM,YAAY;AAAA,EAE9C,WAAW,4BAAU,KAAK,YAAY;AAAA;AAGxC,cAAc,YAAY;AAC1B,MAAM,4BAA4B,gCAAS;AAC3C,0BAA0B,YAAY;",
6
+ "names": []
7
+ }
@@ -1,33 +1,43 @@
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["default"] = Pill.Pill;
19
- exports.Container = PillGroup.Container;
20
- exports.DSPillGroupWithSchema = PillGroup.DSPillGroupWithSchema;
21
- exports.PillGroup = PillGroup.PillGroup;
22
- exports.DSLabeledDropdownPillsWithSchema = LabeledDropdownPills.DSLabeledDropdownPillsWithSchema;
23
- exports.LabeledDropdownPills = LabeledDropdownPills.LabeledDropdownPills;
24
- exports.DSLabeledPillsWithSchema = LabeledPills.DSLabeledPillsWithSchema;
25
- exports.LabeledPills = LabeledPills.LabeledPills;
26
- exports.DSDropdownPillWithSchema = DropdownPill.DSDropdownPillWithSchema;
27
- exports.DropdownPill = DropdownPill.DropdownPill;
28
- exports.DSRemovablePillWithSchema = RemovablePill.DSRemovablePillWithSchema;
29
- exports.RemovablePill = RemovablePill.RemovablePill;
30
- exports.DSReadOnlyPillWithSchema = ReadOnlyPill.DSReadOnlyPillWithSchema;
31
- exports.ReadOnlyPill = ReadOnlyPill.ReadOnlyPill;
32
- exports.DSOverflowPillWithSchema = OverflowPill.DSOverflowPillWithSchema;
33
- exports.OverflowPill = OverflowPill.OverflowPill;
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var deprecated_exports = {};
29
+ __export(deprecated_exports, {
30
+ default: () => import_Pill.default
31
+ });
32
+ var React = __toESM(require("react"));
33
+ __reExport(deprecated_exports, require("./Pill"));
34
+ __reExport(deprecated_exports, require("./PillGroup"));
35
+ __reExport(deprecated_exports, require("./LabeledDropdownPills"));
36
+ __reExport(deprecated_exports, require("./LabeledPills"));
37
+ __reExport(deprecated_exports, require("./DropdownPill"));
38
+ __reExport(deprecated_exports, require("./RemovablePill"));
39
+ __reExport(deprecated_exports, require("./ReadOnlyPill"));
40
+ __reExport(deprecated_exports, require("./OverflowPill"));
41
+ var import_Pill = __toESM(require("./Pill"));
42
+ module.exports = __toCommonJS(deprecated_exports);
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/deprecated/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export * from './Pill';\nexport * from './PillGroup';\nexport * from './LabeledDropdownPills';\nexport * from './LabeledPills';\nexport * from './DropdownPill';\nexport * from './RemovablePill';\nexport * from './ReadOnlyPill';\nexport * from './OverflowPill';\n\nexport { default } from './Pill';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAc;AACd,+BAAc;AACd,+BAAc;AACd,+BAAc;AACd,+BAAc;AACd,+BAAc;AACd,+BAAc;AACd,+BAAc;AAEd,kBAAwB;",
6
+ "names": []
7
+ }