@elliemae/ds-pills 2.3.0-next.3 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/cjs/components/Pill.js +60 -0
  2. package/dist/cjs/components/Pill.js.map +7 -0
  3. package/dist/cjs/components/PillButton.js +58 -0
  4. package/dist/cjs/components/PillButton.js.map +7 -0
  5. package/dist/cjs/components/PillGroup.js +72 -0
  6. package/dist/cjs/components/PillGroup.js.map +7 -0
  7. package/dist/cjs/components/index.js +30 -0
  8. package/dist/cjs/components/index.js.map +7 -0
  9. package/dist/cjs/components/styled.js +235 -0
  10. package/dist/cjs/components/styled.js.map +7 -0
  11. package/dist/cjs/components/types/DropdownPill.js +88 -0
  12. package/dist/cjs/components/types/DropdownPill.js.map +7 -0
  13. package/dist/cjs/components/types/InputPill.js +84 -0
  14. package/dist/cjs/components/types/InputPill.js.map +7 -0
  15. package/dist/cjs/components/types/LabelPill.js +52 -0
  16. package/dist/cjs/components/types/LabelPill.js.map +7 -0
  17. package/dist/cjs/components/types/ReadOnlyPill.js +55 -0
  18. package/dist/cjs/components/types/ReadOnlyPill.js.map +7 -0
  19. package/dist/cjs/components/types/RemovablePill.js +79 -0
  20. package/dist/cjs/components/types/RemovablePill.js.map +7 -0
  21. package/dist/cjs/components/types/ValuePill.js +59 -0
  22. package/dist/cjs/components/types/ValuePill.js.map +7 -0
  23. package/dist/cjs/components/types/index.js +33 -0
  24. package/dist/cjs/components/types/index.js.map +7 -0
  25. package/dist/cjs/deprecated/DropdownPill.js +92 -0
  26. package/dist/cjs/deprecated/DropdownPill.js.map +7 -0
  27. package/dist/cjs/deprecated/InputPill.js +82 -0
  28. package/dist/cjs/deprecated/InputPill.js.map +7 -0
  29. package/dist/cjs/deprecated/LabeledDropdownPills.js +102 -0
  30. package/dist/cjs/deprecated/LabeledDropdownPills.js.map +7 -0
  31. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js +131 -0
  32. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js.map +7 -0
  33. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js +145 -0
  34. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js.map +7 -0
  35. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js +154 -0
  36. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js.map +7 -0
  37. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/utils.js +44 -0
  38. package/dist/cjs/deprecated/LabeledDropdownPillsTypes/utils.js.map +7 -0
  39. package/dist/cjs/deprecated/LabeledPills.js +75 -0
  40. package/dist/cjs/deprecated/LabeledPills.js.map +7 -0
  41. package/dist/cjs/deprecated/OverflowPill.js +79 -0
  42. package/dist/cjs/deprecated/OverflowPill.js.map +7 -0
  43. package/dist/cjs/deprecated/Pill.js +73 -0
  44. package/dist/cjs/deprecated/Pill.js.map +7 -0
  45. package/dist/cjs/deprecated/PillGroup.js +72 -0
  46. package/dist/cjs/deprecated/PillGroup.js.map +7 -0
  47. package/dist/cjs/deprecated/ReadOnlyPill.js +100 -0
  48. package/dist/cjs/deprecated/ReadOnlyPill.js.map +7 -0
  49. package/dist/cjs/deprecated/RemovablePill.js +78 -0
  50. package/dist/cjs/deprecated/RemovablePill.js.map +7 -0
  51. package/dist/cjs/deprecated/index.js +43 -0
  52. package/dist/cjs/deprecated/index.js.map +7 -0
  53. package/dist/cjs/index.d.js +27 -0
  54. package/dist/cjs/index.d.js.map +7 -0
  55. package/dist/cjs/index.js +37 -0
  56. package/dist/cjs/index.js.map +7 -0
  57. package/dist/cjs/props.js +95 -0
  58. package/dist/cjs/props.js.map +7 -0
  59. package/dist/cjs/utils.js +46 -0
  60. package/dist/cjs/utils.js.map +7 -0
  61. package/dist/esm/components/Pill.js +31 -0
  62. package/dist/esm/components/Pill.js.map +7 -0
  63. package/dist/esm/components/PillButton.js +29 -0
  64. package/dist/esm/components/PillButton.js.map +7 -0
  65. package/dist/esm/components/PillGroup.js +43 -0
  66. package/dist/esm/components/PillGroup.js.map +7 -0
  67. package/dist/esm/components/index.js +5 -0
  68. package/dist/esm/components/index.js.map +7 -0
  69. package/dist/esm/components/styled.js +206 -0
  70. package/dist/esm/components/styled.js.map +7 -0
  71. package/dist/esm/components/types/DropdownPill.js +59 -0
  72. package/dist/esm/components/types/DropdownPill.js.map +7 -0
  73. package/dist/esm/components/types/InputPill.js +55 -0
  74. package/dist/esm/components/types/InputPill.js.map +7 -0
  75. package/dist/esm/components/types/LabelPill.js +23 -0
  76. package/dist/esm/components/types/LabelPill.js.map +7 -0
  77. package/dist/esm/components/types/ReadOnlyPill.js +26 -0
  78. package/dist/esm/components/types/ReadOnlyPill.js.map +7 -0
  79. package/dist/esm/components/types/RemovablePill.js +50 -0
  80. package/dist/esm/components/types/RemovablePill.js.map +7 -0
  81. package/dist/esm/components/types/ValuePill.js +30 -0
  82. package/dist/esm/components/types/ValuePill.js.map +7 -0
  83. package/dist/esm/components/types/index.js +8 -0
  84. package/dist/esm/components/types/index.js.map +7 -0
  85. package/dist/esm/deprecated/DropdownPill.js +63 -0
  86. package/dist/esm/deprecated/DropdownPill.js.map +7 -0
  87. package/dist/esm/deprecated/InputPill.js +53 -0
  88. package/dist/esm/deprecated/InputPill.js.map +7 -0
  89. package/dist/esm/deprecated/LabeledDropdownPills.js +73 -0
  90. package/dist/esm/deprecated/LabeledDropdownPills.js.map +7 -0
  91. package/dist/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js +102 -0
  92. package/dist/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js.map +7 -0
  93. package/dist/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js +116 -0
  94. package/dist/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js.map +7 -0
  95. package/dist/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js +125 -0
  96. package/dist/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js.map +7 -0
  97. package/dist/esm/deprecated/LabeledDropdownPillsTypes/utils.js +15 -0
  98. package/dist/esm/deprecated/LabeledDropdownPillsTypes/utils.js.map +7 -0
  99. package/dist/esm/deprecated/LabeledPills.js +46 -0
  100. package/dist/esm/deprecated/LabeledPills.js.map +7 -0
  101. package/dist/esm/deprecated/OverflowPill.js +50 -0
  102. package/dist/esm/deprecated/OverflowPill.js.map +7 -0
  103. package/dist/esm/deprecated/Pill.js +44 -0
  104. package/dist/esm/deprecated/Pill.js.map +7 -0
  105. package/dist/esm/deprecated/PillGroup.js +43 -0
  106. package/dist/esm/deprecated/PillGroup.js.map +7 -0
  107. package/dist/esm/deprecated/ReadOnlyPill.js +71 -0
  108. package/dist/esm/deprecated/ReadOnlyPill.js.map +7 -0
  109. package/dist/esm/deprecated/RemovablePill.js +49 -0
  110. package/dist/esm/deprecated/RemovablePill.js.map +7 -0
  111. package/dist/esm/deprecated/index.js +14 -0
  112. package/dist/esm/deprecated/index.js.map +7 -0
  113. package/dist/esm/index.d.js +2 -0
  114. package/dist/esm/index.d.js.map +7 -0
  115. package/dist/esm/index.js +8 -0
  116. package/dist/esm/index.js.map +7 -0
  117. package/dist/esm/props.js +66 -0
  118. package/dist/esm/props.js.map +7 -0
  119. package/dist/esm/utils.js +17 -0
  120. package/dist/esm/utils.js.map +7 -0
  121. package/{types → dist/types}/components/Pill.d.ts +0 -0
  122. package/{types → dist/types}/components/PillButton.d.ts +0 -0
  123. package/{types → dist/types}/components/PillGroup.d.ts +0 -0
  124. package/{types → dist/types}/components/index.d.ts +0 -0
  125. package/{types → dist/types}/components/styled.d.ts +8 -8
  126. package/{types → dist/types}/components/types/DropdownPill.d.ts +0 -0
  127. package/{types → dist/types}/components/types/InputPill.d.ts +0 -0
  128. package/{types → dist/types}/components/types/LabelPill.d.ts +0 -0
  129. package/{types → dist/types}/components/types/ReadOnlyPill.d.ts +0 -0
  130. package/{types → dist/types}/components/types/RemovablePill.d.ts +0 -0
  131. package/{types → dist/types}/components/types/ValuePill.d.ts +0 -0
  132. package/{types → dist/types}/components/types/index.d.ts +0 -0
  133. package/{types → dist/types}/deprecated/DropdownPill.d.ts +0 -0
  134. package/{types → dist/types}/deprecated/InputPill.d.ts +0 -0
  135. package/{types → dist/types}/deprecated/LabeledDropdownPills.d.ts +1 -1
  136. package/{types → dist/types}/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.d.ts +3 -1
  137. package/{types → dist/types}/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.d.ts +3 -1
  138. package/{types → dist/types}/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.d.ts +1 -0
  139. package/{types → dist/types}/deprecated/LabeledDropdownPillsTypes/utils.d.ts +0 -0
  140. package/{types → dist/types}/deprecated/LabeledPills.d.ts +0 -0
  141. package/{types → dist/types}/deprecated/OverflowPill.d.ts +0 -0
  142. package/{types → dist/types}/deprecated/Pill.d.ts +0 -0
  143. package/{types → dist/types}/deprecated/PillGroup.d.ts +0 -0
  144. package/{types → dist/types}/deprecated/ReadOnlyPill.d.ts +0 -0
  145. package/{types → dist/types}/deprecated/RemovablePill.d.ts +0 -0
  146. package/{types → dist/types}/deprecated/index.d.ts +0 -0
  147. package/{types → dist/types}/index.d.ts +0 -0
  148. package/{types → dist/types}/props.d.ts +0 -0
  149. package/{types → dist/types}/tests/DSPill.test.d.ts +0 -0
  150. package/{types → dist/types}/tests/DSPillGroup.test.d.ts +0 -0
  151. package/{types → dist/types}/tests/events/DSPill.events.keyboard.test.d.ts +0 -0
  152. package/{types → dist/types}/tests/events/DSPill.events.test.d.ts +0 -0
  153. package/{types → dist/types}/tests/events/DSPillGroup.events.keyboard.test.d.ts +0 -0
  154. package/{types → dist/types}/tests/events/DSPillGroup.events.test.d.ts +0 -0
  155. package/{types → dist/types}/utils.d.ts +0 -0
  156. package/package.json +93 -85
  157. package/cjs/components/Pill.js +0 -53
  158. package/cjs/components/PillButton.js +0 -56
  159. package/cjs/components/PillGroup.js +0 -64
  160. package/cjs/components/index.js +0 -17
  161. package/cjs/components/styled.js +0 -85
  162. package/cjs/components/types/DropdownPill.js +0 -86
  163. package/cjs/components/types/InputPill.js +0 -74
  164. package/cjs/components/types/LabelPill.js +0 -46
  165. package/cjs/components/types/ReadOnlyPill.js +0 -50
  166. package/cjs/components/types/RemovablePill.js +0 -72
  167. package/cjs/components/types/ValuePill.js +0 -54
  168. package/cjs/components/types/index.js +0 -19
  169. package/cjs/deprecated/DropdownPill.js +0 -113
  170. package/cjs/deprecated/InputPill.js +0 -84
  171. package/cjs/deprecated/LabeledDropdownPills.js +0 -106
  172. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js +0 -134
  173. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js +0 -153
  174. package/cjs/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js +0 -162
  175. package/cjs/deprecated/LabeledDropdownPillsTypes/utils.js +0 -20
  176. package/cjs/deprecated/LabeledPills.js +0 -62
  177. package/cjs/deprecated/OverflowPill.js +0 -73
  178. package/cjs/deprecated/Pill.js +0 -88
  179. package/cjs/deprecated/PillGroup.js +0 -72
  180. package/cjs/deprecated/ReadOnlyPill.js +0 -101
  181. package/cjs/deprecated/RemovablePill.js +0 -74
  182. package/cjs/deprecated/index.js +0 -33
  183. package/cjs/index.d.js +0 -2
  184. package/cjs/index.js +0 -43
  185. package/cjs/props.js +0 -69
  186. package/cjs/utils.js +0 -28
  187. package/esm/components/Pill.js +0 -44
  188. package/esm/components/PillButton.js +0 -46
  189. package/esm/components/PillGroup.js +0 -53
  190. package/esm/components/index.js +0 -3
  191. package/esm/components/styled.js +0 -67
  192. package/esm/components/types/DropdownPill.js +0 -76
  193. package/esm/components/types/InputPill.js +0 -65
  194. package/esm/components/types/LabelPill.js +0 -37
  195. package/esm/components/types/ReadOnlyPill.js +0 -41
  196. package/esm/components/types/RemovablePill.js +0 -63
  197. package/esm/components/types/ValuePill.js +0 -45
  198. package/esm/components/types/index.js +0 -6
  199. package/esm/deprecated/DropdownPill.js +0 -100
  200. package/esm/deprecated/InputPill.js +0 -74
  201. package/esm/deprecated/LabeledDropdownPills.js +0 -95
  202. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownCascadeMenuPill.js +0 -126
  203. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownMultiPill.js +0 -145
  204. package/esm/deprecated/LabeledDropdownPillsTypes/LabeledDropdownSinglePill.js +0 -154
  205. package/esm/deprecated/LabeledDropdownPillsTypes/utils.js +0 -16
  206. package/esm/deprecated/LabeledPills.js +0 -53
  207. package/esm/deprecated/OverflowPill.js +0 -62
  208. package/esm/deprecated/Pill.js +0 -76
  209. package/esm/deprecated/PillGroup.js +0 -60
  210. package/esm/deprecated/ReadOnlyPill.js +0 -90
  211. package/esm/deprecated/RemovablePill.js +0 -64
  212. package/esm/deprecated/index.js +0 -8
  213. package/esm/index.d.js +0 -1
  214. package/esm/index.js +0 -11
  215. package/esm/props.js +0 -60
  216. package/esm/utils.js +0 -24
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/LabeledPills.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { PillGroup } from './PillGroup';\nimport { RemovablePill } from './RemovablePill';\nimport { Pill } from './Pill';\n\nfunction LabeledPills({\n children,\n label = '',\n leftAddon,\n onFocusGroupSet,\n onFocusNextGroup,\n onFocusPreviousGroup,\n}) {\n return (\n <PillGroup\n onFocusGroupSet={onFocusGroupSet}\n onFocusNextGroup={onFocusNextGroup}\n onFocusPreviousGroup={onFocusPreviousGroup}\n >\n <Pill\n label={label}\n leftAddon={leftAddon}\n variant=\"title\"\n data-testid=\"pill-title\"\n />\n {children}\n </PillGroup>\n );\n}\n\nconst props = {\n /** labeled pill text label */\n label: PropTypes.string.isRequired.description('pill text label'),\n /** pill to add the label to */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([\n PropTypes.instanceOf(Pill),\n PropTypes.instanceOf(RemovablePill),\n ]),\n }),\n ).isRequired.description('pill to add the label to'),\n /** addon component to left */\n leftAddon: PropTypes.node.description('addon component to left'),\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};\n\nLabeledPills.propTypes = props;\n\nconst DSLabeledPillsWithSchema = describe(LabeledPills);\nDSLabeledPillsWithSchema.propTypes = props;\n\nexport { LabeledPills, DSLabeledPillsWithSchema };\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,sBAAsB;AAAA,EACpB;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,GACC;AACD,SACE,qCAAC,WAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,KAEA,qCAAC,MAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA,SAAQ;AAAA,IACR,eAAY;AAAA,MAEb;AAAA;AAKP,MAAM,QAAQ;AAAA,EAEZ,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,UAAU,UAAU,QAClB,UAAU,MAAM;AAAA,IACd,MAAM,UAAU,MAAM;AAAA,MACpB,UAAU,WAAW;AAAA,MACrB,UAAU,WAAW;AAAA;AAAA,MAGzB,WAAW,YAAY;AAAA,EAEzB,WAAW,UAAU,KAAK,YAAY;AAAA,EAEtC,kBAAkB,UAAU,KAAK,YAAY;AAAA,EAE7C,sBAAsB,UAAU,KAAK,YAAY;AAAA,EAEjD,iBAAiB,UAAU,KAAK,YAAY;AAAA;AAG9C,aAAa,YAAY;AAEzB,MAAM,2BAA2B,SAAS;AAC1C,yBAAyB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ import React2, { useRef, useState, useEffect } from "react";
3
+ import { PropTypes, describe } from "react-desc";
4
+ import { useFocusGroupItem } from "@elliemae/ds-shared/FocusGroup/useFocusGroupItem";
5
+ import { DSTooltip } from "@elliemae/ds-tooltip";
6
+ import { Pill } from "./Pill";
7
+ function OverflowPill({ containerProps = {}, label = "", options = [] }) {
8
+ const ref = useRef(null);
9
+ const [tooltipIsOpen, setTooltipIsOpen] = useState(false);
10
+ const [tooltipText, setTooltipText] = useState("");
11
+ useEffect(() => {
12
+ let text = "";
13
+ options.forEach((option) => {
14
+ if (!tooltipText || option === options[0]) {
15
+ text = `${option.label}`;
16
+ } else {
17
+ text = text.concat(`, ${option.label}`);
18
+ }
19
+ });
20
+ setTooltipText(text);
21
+ }, [options]);
22
+ useFocusGroupItem(ref);
23
+ return /* @__PURE__ */ React2.createElement(DSTooltip, {
24
+ isOpen: tooltipIsOpen,
25
+ title: tooltipText,
26
+ zIndex: 11,
27
+ triggerComponent: /* @__PURE__ */ React2.createElement(Pill, {
28
+ className: "overflow-pill",
29
+ containerProps,
30
+ innerRef: ref,
31
+ label,
32
+ tabIndex: -1,
33
+ onMouseEnter: () => setTooltipIsOpen(true),
34
+ onMouseLeave: () => setTooltipIsOpen(false)
35
+ })
36
+ });
37
+ }
38
+ const props = {
39
+ containerProps: PropTypes.object.description("props to inject to pill wrapper"),
40
+ label: PropTypes.string.isRequired.description("pill text label"),
41
+ options: PropTypes.array.description("overflow pills options")
42
+ };
43
+ OverflowPill.propTypes = props;
44
+ const DSOverflowPillWithSchema = describe(OverflowPill);
45
+ DSOverflowPillWithSchema.propTypes = props;
46
+ export {
47
+ DSOverflowPillWithSchema,
48
+ OverflowPill
49
+ };
50
+ //# sourceMappingURL=OverflowPill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/OverflowPill.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useRef, useState, useEffect } from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { useFocusGroupItem } from '@elliemae/ds-shared/FocusGroup/useFocusGroupItem';\nimport { DSTooltip } from '@elliemae/ds-tooltip';\nimport { Pill } from './Pill';\n\nfunction OverflowPill({ containerProps = {}, label = '', options = [] }) {\n const ref = useRef(null);\n const [tooltipIsOpen, setTooltipIsOpen] = useState(false);\n const [tooltipText, setTooltipText] = useState('');\n\n useEffect(() => {\n let text = '';\n options.forEach((option) => {\n if (!tooltipText || option === options[0]) {\n text = `${option.label}`;\n } else {\n text = text.concat(`, ${option.label}`);\n }\n });\n setTooltipText(text);\n }, [options]);\n\n useFocusGroupItem(ref);\n\n return (\n <DSTooltip\n isOpen={tooltipIsOpen}\n title={tooltipText}\n zIndex={11}\n triggerComponent={\n <Pill\n className=\"overflow-pill\"\n containerProps={containerProps}\n innerRef={ref}\n label={label}\n tabIndex={-1}\n onMouseEnter={() => setTooltipIsOpen(true)}\n onMouseLeave={() => setTooltipIsOpen(false)}\n />\n }\n />\n );\n}\n\nconst props = {\n /** props to inject to pill wrapper */\n containerProps: PropTypes.object.description(\n 'props to inject to pill wrapper',\n ),\n /** pill text label */\n label: PropTypes.string.isRequired.description('pill text label'),\n /** overflow pills options */\n options: PropTypes.array.description('overflow pills options'),\n};\n\nOverflowPill.propTypes = props;\nconst DSOverflowPillWithSchema = describe(OverflowPill);\nDSOverflowPillWithSchema.propTypes = props;\n\nexport { OverflowPill, DSOverflowPillWithSchema };\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,sBAAsB,EAAE,iBAAiB,IAAI,QAAQ,IAAI,UAAU,MAAM;AACvE,QAAM,MAAM,OAAO;AACnB,QAAM,CAAC,eAAe,oBAAoB,SAAS;AACnD,QAAM,CAAC,aAAa,kBAAkB,SAAS;AAE/C,YAAU,MAAM;AACd,QAAI,OAAO;AACX,YAAQ,QAAQ,CAAC,WAAW;AAC1B,UAAI,CAAC,eAAe,WAAW,QAAQ,IAAI;AACzC,eAAO,GAAG,OAAO;AAAA,aACZ;AACL,eAAO,KAAK,OAAO,KAAK,OAAO;AAAA;AAAA;AAGnC,mBAAe;AAAA,KACd,CAAC;AAEJ,oBAAkB;AAElB,SACE,qCAAC,WAAD;AAAA,IACE,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,kBACE,qCAAC,MAAD;AAAA,MACE,WAAU;AAAA,MACV;AAAA,MACA,UAAU;AAAA,MACV;AAAA,MACA,UAAU;AAAA,MACV,cAAc,MAAM,iBAAiB;AAAA,MACrC,cAAc,MAAM,iBAAiB;AAAA;AAAA;AAAA;AAO/C,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAGF,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,SAAS,UAAU,MAAM,YAAY;AAAA;AAGvC,aAAa,YAAY;AACzB,MAAM,2BAA2B,SAAS;AAC1C,yBAAyB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,44 @@
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { PropTypes, describe } from "react-desc";
4
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
+ const pillBlockName = "pill";
6
+ const PillWrapper = aggregatedClasses("div")(pillBlockName, null, ({ size, variant }) => ({
7
+ [variant]: !!variant,
8
+ [size]: !!size
9
+ }));
10
+ const PillLabel = aggregatedClasses("span")(pillBlockName, "label");
11
+ const PillAddon = aggregatedClasses("div")(pillBlockName, "addon");
12
+ function Pill({
13
+ containerProps = {},
14
+ label = "",
15
+ leftAddon,
16
+ rightAddon,
17
+ variant = "value",
18
+ size = "m",
19
+ ...otherProps
20
+ }) {
21
+ return /* @__PURE__ */ React2.createElement(PillWrapper, {
22
+ ...containerProps,
23
+ classProps: { variant, size },
24
+ ...otherProps
25
+ }, leftAddon && /* @__PURE__ */ React2.createElement(PillAddon, null, leftAddon), /* @__PURE__ */ React2.createElement(PillLabel, null, label), rightAddon && /* @__PURE__ */ React2.createElement(PillAddon, null, rightAddon));
26
+ }
27
+ const props = {
28
+ containerProps: PropTypes.object.description("props to inject to pill wrapper"),
29
+ label: PropTypes.string.isRequired.description("pill text label"),
30
+ size: PropTypes.oneOf(["m", "l"]).description("pill size"),
31
+ variant: PropTypes.oneOf(["value", "title"]).description("pill variant"),
32
+ leftAddon: PropTypes.node.description("addon component to left"),
33
+ rightAddon: PropTypes.node.description("addon component to right")
34
+ };
35
+ Pill.propTypes = props;
36
+ const DSPillWithSchema = describe(Pill);
37
+ DSPillWithSchema.propTypes = props;
38
+ var Pill_default = Pill;
39
+ export {
40
+ DSPillWithSchema,
41
+ Pill,
42
+ Pill_default as default
43
+ };
44
+ //# sourceMappingURL=Pill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/Pill.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst pillBlockName = 'pill';\n\nconst PillWrapper = aggregatedClasses('div')(\n pillBlockName,\n null,\n ({ size, variant }) => ({\n [variant]: !!variant,\n [size]: !!size,\n }),\n);\nconst PillLabel = aggregatedClasses('span')(pillBlockName, 'label');\nconst PillAddon = aggregatedClasses('div')(pillBlockName, 'addon');\n\nfunction Pill({\n containerProps = {},\n label = '',\n leftAddon,\n rightAddon,\n variant = 'value',\n size = 'm',\n ...otherProps\n}) {\n return (\n <PillWrapper\n {...containerProps}\n classProps={{ variant, size }}\n {...otherProps}\n >\n {leftAddon && <PillAddon>{leftAddon}</PillAddon>}\n <PillLabel>{label}</PillLabel>\n {rightAddon && <PillAddon>{rightAddon}</PillAddon>}\n </PillWrapper>\n );\n}\n\nconst props = {\n /** props to inject to pill wrapper */\n containerProps: PropTypes.object.description(\n 'props to inject to pill wrapper',\n ),\n /** pill text label */\n label: PropTypes.string.isRequired.description('pill text label'),\n /** pill size */\n size: PropTypes.oneOf(['m', 'l']).description('pill size'),\n /** pill variant */\n variant: PropTypes.oneOf(['value', 'title']).description('pill variant'),\n /** addon component to left */\n leftAddon: PropTypes.node.description('addon component to left'),\n /** addon component to right */\n rightAddon: PropTypes.node.description('addon component to right'),\n};\n\nPill.propTypes = props;\nconst DSPillWithSchema = describe(Pill);\nDSPillWithSchema.propTypes = props;\n\nexport { Pill, DSPillWithSchema };\nexport default Pill;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AAEA,MAAM,gBAAgB;AAEtB,MAAM,cAAc,kBAAkB,OACpC,eACA,MACA,CAAC,EAAE,MAAM,cAAe;AAAA,GACrB,UAAU,CAAC,CAAC;AAAA,GACZ,OAAO,CAAC,CAAC;AAAA;AAGd,MAAM,YAAY,kBAAkB,QAAQ,eAAe;AAC3D,MAAM,YAAY,kBAAkB,OAAO,eAAe;AAE1D,cAAc;AAAA,EACZ,iBAAiB;AAAA,EACjB,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,KACJ;AAAA,GACF;AACD,SACE,qCAAC,aAAD;AAAA,OACM;AAAA,IACJ,YAAY,EAAE,SAAS;AAAA,OACnB;AAAA,KAEH,aAAa,qCAAC,WAAD,MAAY,YAC1B,qCAAC,WAAD,MAAY,QACX,cAAc,qCAAC,WAAD,MAAY;AAAA;AAKjC,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAGF,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,MAAM,UAAU,MAAM,CAAC,KAAK,MAAM,YAAY;AAAA,EAE9C,SAAS,UAAU,MAAM,CAAC,SAAS,UAAU,YAAY;AAAA,EAEzD,WAAW,UAAU,KAAK,YAAY;AAAA,EAEtC,YAAY,UAAU,KAAK,YAAY;AAAA;AAGzC,KAAK,YAAY;AACjB,MAAM,mBAAmB,SAAS;AAClC,iBAAiB,YAAY;AAG7B,IAAO,eAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,43 @@
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { describe, PropTypes } from "react-desc";
4
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
+ import { FocusGroupProvider } from "@elliemae/ds-shared/FocusGroup/FocusGroupManager";
6
+ const pillGroupBlockName = "pill-group";
7
+ const Container = aggregatedClasses("div")(pillGroupBlockName);
8
+ const PillGroup = ({
9
+ containerProps = {},
10
+ onFocusNextGroup,
11
+ onFocusPreviousGroup,
12
+ onFocusGroupSet,
13
+ children
14
+ }) => /* @__PURE__ */ React2.createElement(FocusGroupProvider, {
15
+ keyBindings: {
16
+ Tab: "next"
17
+ },
18
+ onFocusGroupSet,
19
+ onFocusNextGroup,
20
+ onFocusPreviousGroup,
21
+ orientation: "horizontal"
22
+ }, /* @__PURE__ */ React2.createElement(Container, {
23
+ ...containerProps
24
+ }, children));
25
+ const props = {
26
+ containerProps: PropTypes.object.description("props injected to component wrapper"),
27
+ onFocusNextGroup: PropTypes.func.description("focus next group callback"),
28
+ onFocusPreviousGroup: PropTypes.func.description("focus prev group callback"),
29
+ onFocusGroupSet: PropTypes.func.description("focus group set callback"),
30
+ children: PropTypes.oneOfType([
31
+ PropTypes.arrayOf(PropTypes.node),
32
+ PropTypes.node
33
+ ]).isRequired.description("pill components")
34
+ };
35
+ PillGroup.propTypes = props;
36
+ const DSPillGroupWithSchema = describe(PillGroup);
37
+ DSPillGroupWithSchema.propTypes = props;
38
+ export {
39
+ Container,
40
+ DSPillGroupWithSchema,
41
+ PillGroup
42
+ };
43
+ //# sourceMappingURL=PillGroup.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/PillGroup.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,qBAAqB;AAEpB,MAAM,YAAY,kBAAkB,OAAO;AAElD,MAAM,YAAY,CAAC;AAAA,EACjB,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MAEA,qCAAC,oBAAD;AAAA,EACE,aAAa;AAAA,IACX,KAAK;AAAA;AAAA,EAEP;AAAA,EACA;AAAA,EACA;AAAA,EACA,aAAY;AAAA,GAEZ,qCAAC,WAAD;AAAA,KAAe;AAAA,GAAiB;AAIpC,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAGF,kBAAkB,UAAU,KAAK,YAAY;AAAA,EAE7C,sBAAsB,UAAU,KAAK,YAAY;AAAA,EAEjD,iBAAiB,UAAU,KAAK,YAAY;AAAA,EAE5C,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU,QAAQ,UAAU;AAAA,IAC5B,UAAU;AAAA,KACT,WAAW,YAAY;AAAA;AAG5B,UAAU,YAAY;AAEtB,MAAM,wBAAwB,SAAS;AACvC,sBAAsB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,71 @@
1
+ import * as React from "react";
2
+ import React2, { useRef, useState } from "react";
3
+ import { PropTypes, describe } from "react-desc";
4
+ import { InfoCircleSmall } from "@elliemae/ds-icons";
5
+ import { DSModal, MODAL_TYPE_V2 } from "@elliemae/ds-modal";
6
+ import { DSPopover } from "@elliemae/ds-popover";
7
+ import { Pill } from "./Pill";
8
+ const ReadOnlyPill = ({
9
+ containerProps = {},
10
+ modalContent = "",
11
+ label = "",
12
+ leftAddon,
13
+ modalTitle = "",
14
+ tooltipText = ""
15
+ }) => {
16
+ const ref = useRef(null);
17
+ const [isModalOpen, setIsModalOpen] = useState(false);
18
+ const [isTooltipOpen, setIsTooltipOpen] = useState(false);
19
+ const toggle = () => {
20
+ setIsModalOpen(!isModalOpen);
21
+ };
22
+ return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Pill, {
23
+ "data-testid": "read-only-pill",
24
+ className: "removable-pill",
25
+ containerProps,
26
+ innerRef: ref,
27
+ label,
28
+ leftAddon,
29
+ rightAddon: /* @__PURE__ */ React2.createElement(DSPopover, {
30
+ isOpen: tooltipText && isTooltipOpen,
31
+ content: tooltipText,
32
+ placement: "top",
33
+ showArrow: true,
34
+ renderTrigger: ({ ref: ref2 }) => /* @__PURE__ */ React2.createElement(InfoCircleSmall, {
35
+ role: "button",
36
+ "data-testid": "read-only-info-btn",
37
+ className: "remove-pill-button",
38
+ onClick: toggle,
39
+ onMouseEnter: () => setIsTooltipOpen(true),
40
+ onMouseLeave: () => setIsTooltipOpen(false),
41
+ color: ["brand-primary", "600"],
42
+ innerRef: ref2
43
+ })
44
+ }),
45
+ tabIndex: -1
46
+ }), /* @__PURE__ */ React2.createElement(DSModal, {
47
+ isOpen: isModalOpen,
48
+ showClose: true,
49
+ shouldCloseOnOverlayClick: true,
50
+ modalTitle,
51
+ modalType: MODAL_TYPE_V2.INFORMATION,
52
+ onClose: toggle,
53
+ version: 2
54
+ }, modalContent));
55
+ };
56
+ const props = {
57
+ containerProps: PropTypes.object.description("props injected to component wrapper"),
58
+ label: PropTypes.string.isRequired.description("pill text label"),
59
+ leftAddon: PropTypes.node.description("addon component to left"),
60
+ modalContent: PropTypes.string.description("read only pill modal content"),
61
+ modalTitle: PropTypes.string.description("read only pill modal title"),
62
+ tooltipText: PropTypes.string.description("text to display in tooltip")
63
+ };
64
+ ReadOnlyPill.propTypes = props;
65
+ const DSReadOnlyPillWithSchema = describe(ReadOnlyPill);
66
+ DSReadOnlyPillWithSchema.propTypes = props;
67
+ export {
68
+ DSReadOnlyPillWithSchema,
69
+ ReadOnlyPill
70
+ };
71
+ //# sourceMappingURL=ReadOnlyPill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/ReadOnlyPill.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,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,OAAO;AACnB,QAAM,CAAC,aAAa,kBAAkB,SAAS;AAC/C,QAAM,CAAC,eAAe,oBAAoB,SAAS;AAEnD,QAAM,SAAS,MAAM;AACnB,mBAAe,CAAC;AAAA;AAGlB,SACE,4DACE,qCAAC,MAAD;AAAA,IACE,eAAY;AAAA,IACZ,WAAU;AAAA,IACV;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA,YACE,qCAAC,WAAD;AAAA,MACE,QAAQ,eAAe;AAAA,MACvB,SAAS;AAAA,MACT,WAAU;AAAA,MACV,WAAS;AAAA,MACT,eAAe,CAAC,EAAE,gBAChB,qCAAC,iBAAD;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,qCAAC,SAAD;AAAA,IACE,QAAQ;AAAA,IACR,WAAS;AAAA,IACT,2BAAyB;AAAA,IACzB;AAAA,IACA,WAAW,cAAc;AAAA,IACzB,SAAS;AAAA,IACT,SAAS;AAAA,KAER;AAAA;AAMT,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAE7C,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,WAAW,UAAU,KAAK,YAAY;AAAA,EAEtC,cAAc,UAAU,OAAO,YAAY;AAAA,EAE3C,YAAY,UAAU,OAAO,YAAY;AAAA,EACzC,aAAa,UAAU,OAAO,YAAY;AAAA;AAG5C,aAAa,YAAY;AAEzB,MAAM,2BAA2B,SAAS;AAC1C,yBAAyB,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,49 @@
1
+ import * as React from "react";
2
+ import React2, { useRef } from "react";
3
+ import { PropTypes, describe } from "react-desc";
4
+ import { isFunction } from "@elliemae/ds-utilities";
5
+ import { CloseXsmall } from "@elliemae/ds-icons";
6
+ import { useFocusGroupItem } from "@elliemae/ds-shared/FocusGroup/useFocusGroupItem";
7
+ import { Pill } from "./Pill";
8
+ function RemovablePill({ containerProps = {}, label = "", onRemove, size = "m", leftAddon }) {
9
+ const ref = useRef(null);
10
+ const { focusPrevious } = useFocusGroupItem(ref);
11
+ return /* @__PURE__ */ React2.createElement(Pill, {
12
+ className: "removable-pill",
13
+ "data-testid": "removable-pill",
14
+ containerProps,
15
+ innerRef: ref,
16
+ size,
17
+ label,
18
+ leftAddon,
19
+ onKeyDown: (e) => {
20
+ if (e.key === "Backspace" && isFunction(onRemove)) {
21
+ onRemove();
22
+ if (isFunction(focusPrevious))
23
+ focusPrevious();
24
+ }
25
+ },
26
+ rightAddon: /* @__PURE__ */ React2.createElement(CloseXsmall, {
27
+ role: "button",
28
+ "data-testid": "remove-pill-button",
29
+ className: "remove-pill-button",
30
+ onClick: onRemove
31
+ }),
32
+ tabIndex: -1
33
+ });
34
+ }
35
+ const props = {
36
+ containerProps: PropTypes.object.description("props injected to component wrapper"),
37
+ label: PropTypes.string.isRequired.description("pill text label"),
38
+ onRemove: PropTypes.func.description("remove click callback"),
39
+ size: PropTypes.oneOf(["m", "l"]).description("pill size"),
40
+ leftAddon: PropTypes.node.description("addon component to left")
41
+ };
42
+ RemovablePill.propTypes = props;
43
+ const DSRemovablePillWithSchema = describe(RemovablePill);
44
+ DSRemovablePillWithSchema.propTypes = props;
45
+ export {
46
+ DSRemovablePillWithSchema,
47
+ RemovablePill
48
+ };
49
+ //# sourceMappingURL=RemovablePill.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/RemovablePill.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,uBAAuB,EAAE,iBAAiB,IAAI,QAAQ,IAAI,UAAU,OAAO,KAAK,aAAa;AAC3F,QAAM,MAAM,OAAO;AACnB,QAAM,EAAE,kBAAkB,kBAAkB;AAC5C,SACE,qCAAC,MAAD;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,WAAW,WAAW;AACjD;AACA,YAAI,WAAW;AAAgB;AAAA;AAAA;AAAA,IAGnC,YACE,qCAAC,aAAD;AAAA,MAAa,MAAK;AAAA,MAAS,eAAY;AAAA,MAAqB,WAAU;AAAA,MAAqB,SAAS;AAAA;AAAA,IAEtG,UAAU;AAAA;AAAA;AAKhB,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAE7C,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAE/C,UAAU,UAAU,KAAK,YAAY;AAAA,EAErC,MAAM,UAAU,MAAM,CAAC,KAAK,MAAM,YAAY;AAAA,EAE9C,WAAW,UAAU,KAAK,YAAY;AAAA;AAGxC,cAAc,YAAY;AAC1B,MAAM,4BAA4B,SAAS;AAC3C,0BAA0B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ export * from "./Pill";
3
+ export * from "./PillGroup";
4
+ export * from "./LabeledDropdownPills";
5
+ export * from "./LabeledPills";
6
+ export * from "./DropdownPill";
7
+ export * from "./RemovablePill";
8
+ export * from "./ReadOnlyPill";
9
+ export * from "./OverflowPill";
10
+ import { default as default2 } from "./Pill";
11
+ export {
12
+ default2 as default
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": "AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export * from "./deprecated";
3
+ export * from "./components";
4
+ import { default as default2 } from "./deprecated";
5
+ export {
6
+ default2 as default
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './deprecated';\nexport * from './components';\nexport { default } from './deprecated';\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,66 @@
1
+ import * as React from "react";
2
+ import { PropTypes } from "react-desc";
3
+ import { DSInput } from "@elliemae/ds-form";
4
+ const pillTypes = PropTypes.oneOf(["label", "value", "input", "dropdown", "removable", "readonly"]);
5
+ const DSPillV2PropTypes = {
6
+ label: PropTypes.string.description("Label to show in the pill").isRequired,
7
+ type: pillTypes.description("The type of pill that you want to render").isRequired,
8
+ innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description("Reference to the focuseable internal element of each pill (remove icons, inputs, dropdown, etc.)").defaultValue(() => null),
9
+ size: PropTypes.oneOf(["s", "m"]).description("Vertical pill size").defaultValue("m"),
10
+ ariaLabel: PropTypes.string.description("Aria label for the pill. If not provided we will use the label").defaultValue(""),
11
+ labelTruncated: PropTypes.bool.description("Whether to truncate the pills label").defaultValue(true),
12
+ tooltipValue: PropTypes.string.description("String to show as a tooltip in the value pill").defaultValue(""),
13
+ iconLeft: PropTypes.node.description("A component to show int the left of a readonly pill").defaultValue(null),
14
+ iconRight: PropTypes.node.description("A component to show in the right of a readonly pill").defaultValue(null),
15
+ onRemove: PropTypes.func.description("Callback triggered when removing a pill with the close icon").defaultValue(() => null),
16
+ inputPlaceholder: PropTypes.string.description("Placeholder for the input pill").defaultValue(""),
17
+ onInputChange: PropTypes.func.description("Callback triggered when user provides input to the input pill").defaultValue(() => null),
18
+ onInputClear: PropTypes.func.description("Callback triggered when the user clears an input pill").defaultValue(() => null),
19
+ inputWidth: PropTypes.number.description("Width in pixels for the input tag in the input pill").defaultValue(150),
20
+ dropdownProps: PropTypes.object.description("Properties that will be used for the dropdown-menu").defaultValue({}),
21
+ onDropdownClick: PropTypes.func.description("Callback when dropdown button is clicked or pressed").defaultValue(() => null)
22
+ };
23
+ const DSPillButtonPropTypes = {
24
+ type: PropTypes.oneOf(["only", "left", "right"]).description("The position in which this button will be placed. Only used for css styling internally").defaultValue("right"),
25
+ width: PropTypes.string.description("Width of the button").defaultValue("100%"),
26
+ height: PropTypes.string.description("Height of the button").defaultValue("100%")
27
+ };
28
+ const DSPillGroupPropTypes = {
29
+ width: PropTypes.string.description("Width of the group").defaultValue("fit-content"),
30
+ innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description("Reference to the pill group wrapper").defaultValue(() => null)
31
+ };
32
+ const DSPillV2DefaultProps = {
33
+ innerRef: () => null,
34
+ ariaLabel: "",
35
+ size: "m",
36
+ labelTruncated: true,
37
+ tooltipValue: "",
38
+ iconLeft: null,
39
+ iconRight: null,
40
+ onRemove: () => null,
41
+ inputPlaceholder: "",
42
+ onInputChange: () => null,
43
+ onInputClear: () => null,
44
+ inputWidth: 72,
45
+ inputRender: DSInput,
46
+ dropdownProps: {},
47
+ onDropdownClick: () => null
48
+ };
49
+ const DSPillButtonDefaultProps = {
50
+ type: "right",
51
+ width: "100%",
52
+ height: "100%"
53
+ };
54
+ const DSPillGroupDefaultProps = {
55
+ width: "fit-content",
56
+ innerRef: () => null
57
+ };
58
+ export {
59
+ DSPillButtonDefaultProps,
60
+ DSPillButtonPropTypes,
61
+ DSPillGroupDefaultProps,
62
+ DSPillGroupPropTypes,
63
+ DSPillV2DefaultProps,
64
+ DSPillV2PropTypes
65
+ };
66
+ //# sourceMappingURL=props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/props.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { PropTypes } from 'react-desc';\nimport { DSInput } from '@elliemae/ds-form';\n\nconst pillTypes = PropTypes.oneOf(['label', 'value', 'input', 'dropdown', 'removable', 'readonly']);\n\nexport const DSPillV2PropTypes = {\n label: PropTypes.string.description('Label to show in the pill').isRequired,\n type: pillTypes.description('The type of pill that you want to render').isRequired,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func])\n .description('Reference to the focuseable internal element of each pill (remove icons, inputs, dropdown, etc.)')\n .defaultValue(() => null),\n size: PropTypes.oneOf(['s', 'm']).description('Vertical pill size').defaultValue('m'),\n ariaLabel: PropTypes.string\n .description('Aria label for the pill. If not provided we will use the label')\n .defaultValue(''),\n labelTruncated: PropTypes.bool.description('Whether to truncate the pills label').defaultValue(true),\n tooltipValue: PropTypes.string.description('String to show as a tooltip in the value pill').defaultValue(''),\n iconLeft: PropTypes.node.description('A component to show int the left of a readonly pill').defaultValue(null),\n iconRight: PropTypes.node.description('A component to show in the right of a readonly pill').defaultValue(null),\n onRemove: PropTypes.func\n .description('Callback triggered when removing a pill with the close icon')\n .defaultValue(() => null),\n inputPlaceholder: PropTypes.string.description('Placeholder for the input pill').defaultValue(''),\n onInputChange: PropTypes.func\n .description('Callback triggered when user provides input to the input pill')\n .defaultValue(() => null),\n onInputClear: PropTypes.func\n .description('Callback triggered when the user clears an input pill')\n .defaultValue(() => null),\n inputWidth: PropTypes.number.description('Width in pixels for the input tag in the input pill').defaultValue(150),\n dropdownProps: PropTypes.object.description('Properties that will be used for the dropdown-menu').defaultValue({}),\n onDropdownClick: PropTypes.func\n .description('Callback when dropdown button is clicked or pressed')\n .defaultValue(() => null),\n};\n\nexport const DSPillButtonPropTypes = {\n type: PropTypes.oneOf(['only', 'left', 'right'])\n .description('The position in which this button will be placed. Only used for css styling internally')\n .defaultValue('right'),\n width: PropTypes.string.description('Width of the button').defaultValue('100%'),\n height: PropTypes.string.description('Height of the button').defaultValue('100%'),\n};\n\nexport const DSPillGroupPropTypes = {\n width: PropTypes.string.description('Width of the group').defaultValue('fit-content'),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func])\n .description('Reference to the pill group wrapper')\n .defaultValue(() => null),\n};\n\nexport const DSPillV2DefaultProps = {\n innerRef: () => null,\n ariaLabel: '',\n size: 'm',\n labelTruncated: true,\n tooltipValue: '',\n iconLeft: null,\n iconRight: null,\n onRemove: () => null,\n inputPlaceholder: '',\n onInputChange: () => null,\n onInputClear: () => null,\n inputWidth: 72,\n inputRender: DSInput,\n dropdownProps: {},\n onDropdownClick: () => null,\n};\n\nexport const DSPillButtonDefaultProps = {\n type: 'right',\n width: '100%',\n height: '100%',\n};\n\nexport const DSPillGroupDefaultProps = {\n width: 'fit-content',\n innerRef: () => null,\n};\n"],
5
+ "mappings": "AAAA;ACCA;AACA;AAEA,MAAM,YAAY,UAAU,MAAM,CAAC,SAAS,SAAS,SAAS,YAAY,aAAa;AAEhF,MAAM,oBAAoB;AAAA,EAC/B,OAAO,UAAU,OAAO,YAAY,6BAA6B;AAAA,EACjE,MAAM,UAAU,YAAY,4CAA4C;AAAA,EACxE,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OACxD,YAAY,oGACZ,aAAa,MAAM;AAAA,EACtB,MAAM,UAAU,MAAM,CAAC,KAAK,MAAM,YAAY,sBAAsB,aAAa;AAAA,EACjF,WAAW,UAAU,OAClB,YAAY,kEACZ,aAAa;AAAA,EAChB,gBAAgB,UAAU,KAAK,YAAY,uCAAuC,aAAa;AAAA,EAC/F,cAAc,UAAU,OAAO,YAAY,iDAAiD,aAAa;AAAA,EACzG,UAAU,UAAU,KAAK,YAAY,uDAAuD,aAAa;AAAA,EACzG,WAAW,UAAU,KAAK,YAAY,uDAAuD,aAAa;AAAA,EAC1G,UAAU,UAAU,KACjB,YAAY,+DACZ,aAAa,MAAM;AAAA,EACtB,kBAAkB,UAAU,OAAO,YAAY,kCAAkC,aAAa;AAAA,EAC9F,eAAe,UAAU,KACtB,YAAY,iEACZ,aAAa,MAAM;AAAA,EACtB,cAAc,UAAU,KACrB,YAAY,yDACZ,aAAa,MAAM;AAAA,EACtB,YAAY,UAAU,OAAO,YAAY,uDAAuD,aAAa;AAAA,EAC7G,eAAe,UAAU,OAAO,YAAY,sDAAsD,aAAa;AAAA,EAC/G,iBAAiB,UAAU,KACxB,YAAY,uDACZ,aAAa,MAAM;AAAA;AAGjB,MAAM,wBAAwB;AAAA,EACnC,MAAM,UAAU,MAAM,CAAC,QAAQ,QAAQ,UACpC,YAAY,0FACZ,aAAa;AAAA,EAChB,OAAO,UAAU,OAAO,YAAY,uBAAuB,aAAa;AAAA,EACxE,QAAQ,UAAU,OAAO,YAAY,wBAAwB,aAAa;AAAA;AAGrE,MAAM,uBAAuB;AAAA,EAClC,OAAO,UAAU,OAAO,YAAY,sBAAsB,aAAa;AAAA,EACvE,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OACxD,YAAY,uCACZ,aAAa,MAAM;AAAA;AAGjB,MAAM,uBAAuB;AAAA,EAClC,UAAU,MAAM;AAAA,EAChB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,UAAU;AAAA,EACV,WAAW;AAAA,EACX,UAAU,MAAM;AAAA,EAChB,kBAAkB;AAAA,EAClB,eAAe,MAAM;AAAA,EACrB,cAAc,MAAM;AAAA,EACpB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,eAAe;AAAA,EACf,iBAAiB,MAAM;AAAA;AAGlB,MAAM,2BAA2B;AAAA,EACtC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA;AAGH,MAAM,0BAA0B;AAAA,EACrC,OAAO;AAAA,EACP,UAAU,MAAM;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ const setMultipleRefs = (...refs) => (_ref) => {
3
+ refs.forEach((ref) => {
4
+ if (!ref || !_ref)
5
+ return;
6
+ if (typeof ref === "function") {
7
+ ref(_ref);
8
+ return;
9
+ }
10
+ if (ref)
11
+ ref.current = _ref;
12
+ });
13
+ };
14
+ export {
15
+ setMultipleRefs
16
+ };
17
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/utils.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "type refInterfaceType = React.MutableRefObject<HTMLElement> | ((_ref: HTMLElement) => void);\n\nexport const setMultipleRefs =\n (...refs: refInterfaceType[]) =>\n (_ref: HTMLElement): void => {\n refs.forEach((ref) => {\n if (!ref || !_ref) return;\n if (typeof ref === 'function') {\n ref(_ref);\n return;\n }\n if (ref) ref.current = _ref;\n });\n };\n"],
5
+ "mappings": "AAAA;ACEO,MAAM,kBACX,IAAI,SACJ,CAAC,SAA4B;AAC3B,OAAK,QAAQ,CAAC,QAAQ;AACpB,QAAI,CAAC,OAAO,CAAC;AAAM;AACnB,QAAI,OAAO,QAAQ,YAAY;AAC7B,UAAI;AACJ;AAAA;AAEF,QAAI;AAAK,UAAI,UAAU;AAAA;AAAA;",
6
+ "names": []
7
+ }
File without changes
File without changes
File without changes
File without changes
@@ -1,22 +1,22 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledLabelPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
2
+ export declare const StyledLabelPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
3
3
  size: 'm' | 's';
4
4
  }, never>;
5
- export declare const StyledValuePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
5
+ export declare const StyledValuePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
6
6
  size: 'm' | 's';
7
7
  }, never>;
8
- export declare const StyledInputPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
9
- export declare const StyledDropdownPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
8
+ export declare const StyledInputPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const StyledDropdownPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
10
10
  size: 'm' | 's';
11
11
  }, never>;
12
- export declare const StyledReadonlyPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
13
- export declare const StyledRemovablePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
12
+ export declare const StyledReadonlyPillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const StyledRemovablePillWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
14
14
  size: 'm' | 's';
15
15
  }, never>;
16
- export declare const StyledPillGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const StyledPillGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
17
17
  export declare const StyledSpanWithTooltip: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
18
18
  export declare const StyledPillButton: import("styled-components").StyledComponent<{
19
- (props: import("@elliemae/ds-button/types/v2/propTypes").DSButtonPropsT): JSX.Element;
19
+ (props: import("@elliemae/ds-button/dist/types/v2/propTypes").DSButtonPropsT): JSX.Element;
20
20
  propTypes: import("react").WeakValidationMap<unknown>;
21
21
  }, import("styled-components").DefaultTheme, {
22
22
  width: string;
File without changes
@@ -77,6 +77,6 @@ declare namespace LabeledDropdownPills {
77
77
  declare const DSLabeledDropdownPillsWithSchema: {
78
78
  (props?: unknown): JSX.Element;
79
79
  propTypes: unknown;
80
- toTypescript: () => import("react-desc").TypescriptSchema;
80
+ toTypescript: () => import("react-desc").TypescriptSchema; /** fixed pill */
81
81
  };
82
82
  export { LabeledDropdownPills, DSLabeledDropdownPillsWithSchema };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export default function LabeledDropdownCascadeMenuPill({ label, options, value: optionValue, onChange, onRemove, value: selection, placeholder, onFocusNextGroup, onFocusPreviousGroup, onFocusGroupSet, maxWidth, minWidth, ...menuProps }: {
2
+ declare function LabeledDropdownCascadeMenuPill({ label, options, value: optionValue, onChange, onRemove, value: selection, placeholder, onFocusNextGroup, onFocusPreviousGroup, onFocusGroupSet, maxWidth, minWidth, ...menuProps }: {
3
3
  [x: string]: any;
4
4
  label: any;
5
5
  options: any;
@@ -13,3 +13,5 @@ export default function LabeledDropdownCascadeMenuPill({ label, options, value:
13
13
  maxWidth: any;
14
14
  minWidth: any;
15
15
  }): JSX.Element;
16
+ export { LabeledDropdownCascadeMenuPill };
17
+ export default LabeledDropdownCascadeMenuPill;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export default function LabeledDropdownMultiPills({ label, options, value, onSelect, onRemove, onChange, // if this is defined, then it's calculating the next result onSelect or onRemove
2
+ declare function LabeledDropdownMultiPills({ label, options, value, onSelect, onRemove, onChange, // if this is defined, then it's calculating the next result onSelect or onRemove
3
3
  maxWidth, minWidth, ...menuProps }: {
4
4
  [x: string]: any;
5
5
  label: any;
@@ -11,3 +11,5 @@ maxWidth, minWidth, ...menuProps }: {
11
11
  maxWidth: any;
12
12
  minWidth: any;
13
13
  }): JSX.Element;
14
+ export { LabeledDropdownMultiPills };
15
+ export default LabeledDropdownMultiPills;