@elliemae/ds-pills-v2 3.60.0-next.1 → 3.60.0-next.11

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 (142) hide show
  1. package/dist/cjs/components/Pill.js +3 -3
  2. package/dist/cjs/components/Pill.js.map +2 -2
  3. package/dist/cjs/components/index.js +0 -2
  4. package/dist/cjs/components/index.js.map +2 -2
  5. package/dist/cjs/components/styled.js +29 -10
  6. package/dist/cjs/components/styled.js.map +3 -3
  7. package/dist/cjs/components/types/DropdownPill.js +2 -2
  8. package/dist/cjs/components/types/DropdownPill.js.map +2 -2
  9. package/dist/cjs/components/types/InputPill.js +2 -2
  10. package/dist/cjs/components/types/InputPill.js.map +2 -2
  11. package/dist/cjs/components/types/LabelOnlyPill.js +8 -4
  12. package/dist/cjs/components/types/LabelOnlyPill.js.map +2 -2
  13. package/dist/cjs/components/types/LabelPill.js +8 -4
  14. package/dist/cjs/components/types/LabelPill.js.map +2 -2
  15. package/dist/cjs/components/types/MenuButtonPill.js +60 -57
  16. package/dist/cjs/components/types/MenuButtonPill.js.map +3 -3
  17. package/dist/cjs/components/types/ReadOnlyPill.js +31 -29
  18. package/dist/cjs/components/types/ReadOnlyPill.js.map +2 -2
  19. package/dist/cjs/components/types/RemovablePill.js +78 -76
  20. package/dist/cjs/components/types/RemovablePill.js.map +2 -2
  21. package/dist/cjs/components/types/ValuePill.js +9 -5
  22. package/dist/cjs/components/types/ValuePill.js.map +2 -2
  23. package/dist/cjs/constants/index.js +51 -0
  24. package/dist/cjs/constants/index.js.map +7 -0
  25. package/dist/cjs/index.js +14 -9
  26. package/dist/cjs/index.js.map +2 -2
  27. package/dist/cjs/{components/PillButton.js → parts/DSPillButton/DSPillButton.js} +15 -16
  28. package/dist/cjs/parts/DSPillButton/DSPillButton.js.map +7 -0
  29. package/dist/cjs/parts/DSPillButton/config/usePillButton.js +53 -0
  30. package/dist/cjs/parts/DSPillButton/config/usePillButton.js.map +7 -0
  31. package/dist/cjs/parts/DSPillButton/config/useValidateProps.js +40 -0
  32. package/dist/cjs/parts/DSPillButton/config/useValidateProps.js.map +7 -0
  33. package/dist/cjs/parts/DSPillButton/constants/index.js +48 -0
  34. package/dist/cjs/parts/DSPillButton/constants/index.js.map +7 -0
  35. package/dist/cjs/parts/DSPillButton/index.js +40 -0
  36. package/dist/cjs/parts/DSPillButton/index.js.map +7 -0
  37. package/dist/cjs/parts/DSPillButton/react-desc-prop-types.js +58 -0
  38. package/dist/cjs/parts/DSPillButton/react-desc-prop-types.js.map +7 -0
  39. package/dist/cjs/parts/DSPillGroup/DSPillGroup.js +69 -0
  40. package/dist/cjs/parts/DSPillGroup/DSPillGroup.js.map +7 -0
  41. package/dist/cjs/{DSPillDefinitions.js → parts/DSPillGroup/PillGroupCTX.js} +10 -10
  42. package/dist/cjs/parts/DSPillGroup/PillGroupCTX.js.map +7 -0
  43. package/dist/cjs/{components/PillGroup.js → parts/DSPillGroup/config/usePillGroup.js} +35 -37
  44. package/dist/cjs/parts/DSPillGroup/config/usePillGroup.js.map +7 -0
  45. package/dist/cjs/parts/DSPillGroup/config/useValidateProps.js +40 -0
  46. package/dist/cjs/parts/DSPillGroup/config/useValidateProps.js.map +7 -0
  47. package/dist/cjs/parts/DSPillGroup/constants/index.js +45 -0
  48. package/dist/cjs/parts/DSPillGroup/constants/index.js.map +7 -0
  49. package/dist/cjs/parts/DSPillGroup/index.js +42 -0
  50. package/dist/cjs/parts/DSPillGroup/index.js.map +7 -0
  51. package/dist/cjs/parts/DSPillGroup/react-desc-prop-types.js +52 -0
  52. package/dist/cjs/parts/DSPillGroup/react-desc-prop-types.js.map +7 -0
  53. package/dist/cjs/react-desc-prop-types.js +2 -35
  54. package/dist/cjs/react-desc-prop-types.js.map +2 -2
  55. package/dist/cjs/typescript-testing/typescript-pills-v2-valid.js.map +2 -2
  56. package/dist/esm/components/Pill.js +1 -1
  57. package/dist/esm/components/Pill.js.map +1 -1
  58. package/dist/esm/components/index.js +0 -2
  59. package/dist/esm/components/index.js.map +2 -2
  60. package/dist/esm/components/styled.js +29 -10
  61. package/dist/esm/components/styled.js.map +2 -2
  62. package/dist/esm/components/types/DropdownPill.js +1 -1
  63. package/dist/esm/components/types/DropdownPill.js.map +1 -1
  64. package/dist/esm/components/types/InputPill.js +1 -1
  65. package/dist/esm/components/types/InputPill.js.map +1 -1
  66. package/dist/esm/components/types/LabelOnlyPill.js +8 -4
  67. package/dist/esm/components/types/LabelOnlyPill.js.map +2 -2
  68. package/dist/esm/components/types/LabelPill.js +8 -4
  69. package/dist/esm/components/types/LabelPill.js.map +2 -2
  70. package/dist/esm/components/types/MenuButtonPill.js +60 -57
  71. package/dist/esm/components/types/MenuButtonPill.js.map +2 -2
  72. package/dist/esm/components/types/ReadOnlyPill.js +31 -29
  73. package/dist/esm/components/types/ReadOnlyPill.js.map +2 -2
  74. package/dist/esm/components/types/RemovablePill.js +78 -76
  75. package/dist/esm/components/types/RemovablePill.js.map +2 -2
  76. package/dist/esm/components/types/ValuePill.js +9 -5
  77. package/dist/esm/components/types/ValuePill.js.map +2 -2
  78. package/dist/esm/constants/index.js +21 -0
  79. package/dist/esm/constants/index.js.map +7 -0
  80. package/dist/esm/index.js +8 -10
  81. package/dist/esm/index.js.map +2 -2
  82. package/dist/esm/{components/PillButton.js → parts/DSPillButton/DSPillButton.js} +12 -13
  83. package/dist/esm/parts/DSPillButton/DSPillButton.js.map +7 -0
  84. package/dist/esm/parts/DSPillButton/config/usePillButton.js +23 -0
  85. package/dist/esm/parts/DSPillButton/config/usePillButton.js.map +7 -0
  86. package/dist/esm/parts/DSPillButton/config/useValidateProps.js +10 -0
  87. package/dist/esm/parts/DSPillButton/config/useValidateProps.js.map +7 -0
  88. package/dist/esm/parts/DSPillButton/constants/index.js +18 -0
  89. package/dist/esm/parts/DSPillButton/constants/index.js.map +7 -0
  90. package/dist/esm/parts/DSPillButton/index.js +10 -0
  91. package/dist/esm/parts/DSPillButton/index.js.map +7 -0
  92. package/dist/esm/parts/DSPillButton/react-desc-prop-types.js +33 -0
  93. package/dist/esm/parts/DSPillButton/react-desc-prop-types.js.map +7 -0
  94. package/dist/esm/parts/DSPillGroup/DSPillGroup.js +39 -0
  95. package/dist/esm/parts/DSPillGroup/DSPillGroup.js.map +7 -0
  96. package/dist/esm/parts/DSPillGroup/PillGroupCTX.js +10 -0
  97. package/dist/esm/parts/DSPillGroup/PillGroupCTX.js.map +7 -0
  98. package/dist/esm/parts/DSPillGroup/config/usePillGroup.js +74 -0
  99. package/dist/esm/parts/DSPillGroup/config/usePillGroup.js.map +7 -0
  100. package/dist/esm/parts/DSPillGroup/config/useValidateProps.js +10 -0
  101. package/dist/esm/parts/DSPillGroup/config/useValidateProps.js.map +7 -0
  102. package/dist/esm/parts/DSPillGroup/constants/index.js +15 -0
  103. package/dist/esm/parts/DSPillGroup/constants/index.js.map +7 -0
  104. package/dist/esm/parts/DSPillGroup/index.js +12 -0
  105. package/dist/esm/parts/DSPillGroup/index.js.map +7 -0
  106. package/dist/esm/parts/DSPillGroup/react-desc-prop-types.js +27 -0
  107. package/dist/esm/parts/DSPillGroup/react-desc-prop-types.js.map +7 -0
  108. package/dist/esm/react-desc-prop-types.js +8 -36
  109. package/dist/esm/react-desc-prop-types.js.map +2 -2
  110. package/dist/esm/typescript-testing/typescript-pills-v2-valid.js.map +2 -2
  111. package/dist/types/components/index.d.ts +0 -2
  112. package/dist/types/constants/index.d.ts +14 -0
  113. package/dist/types/index.d.ts +4 -2
  114. package/dist/types/{components/PillButton.d.ts → parts/DSPillButton/DSPillButton.d.ts} +3 -3
  115. package/dist/types/parts/DSPillButton/config/usePillButton.d.ts +9 -0
  116. package/dist/types/parts/DSPillButton/config/useValidateProps.d.ts +3 -0
  117. package/dist/types/parts/DSPillButton/constants/index.d.ts +9 -0
  118. package/dist/types/parts/DSPillButton/index.d.ts +2 -0
  119. package/dist/types/parts/DSPillButton/react-desc-prop-types.d.ts +24 -0
  120. package/dist/types/parts/DSPillButton/tests/DSPillButton.test.d.ts +1 -0
  121. package/dist/types/parts/DSPillGroup/DSPillGroup.d.ts +5 -0
  122. package/dist/types/parts/DSPillGroup/PillGroupCTX.d.ts +4 -0
  123. package/dist/types/parts/DSPillGroup/config/usePillGroup.d.ts +386 -0
  124. package/dist/types/parts/DSPillGroup/config/useValidateProps.d.ts +3 -0
  125. package/dist/types/parts/DSPillGroup/constants/index.d.ts +9 -0
  126. package/dist/types/parts/DSPillGroup/index.d.ts +3 -0
  127. package/dist/types/parts/DSPillGroup/react-desc-prop-types.d.ts +21 -0
  128. package/dist/types/parts/DSPillGroup/tests/DSPillGroup.test.d.ts +1 -0
  129. package/dist/types/react-desc-prop-types.d.ts +2 -7
  130. package/dist/types/tests/DSPill.exports.test.d.ts +1 -0
  131. package/dist/types/tests/DSPill.get-owner-props.test.d.ts +1 -0
  132. package/package.json +15 -15
  133. package/dist/cjs/DSPillDefinitions.js.map +0 -7
  134. package/dist/cjs/components/PillButton.js.map +0 -7
  135. package/dist/cjs/components/PillGroup.js.map +0 -7
  136. package/dist/esm/DSPillDefinitions.js +0 -10
  137. package/dist/esm/DSPillDefinitions.js.map +0 -7
  138. package/dist/esm/components/PillButton.js.map +0 -7
  139. package/dist/esm/components/PillGroup.js +0 -76
  140. package/dist/esm/components/PillGroup.js.map +0 -7
  141. package/dist/types/DSPillDefinitions.d.ts +0 -3
  142. package/dist/types/components/PillGroup.d.ts +0 -9
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(Pill_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
- var import_DSPillDefinitions = require("../DSPillDefinitions.js");
38
+ var import_constants = require("../constants/index.js");
39
39
  var import_react_desc_prop_types = require("../react-desc-prop-types.js");
40
40
  var import_types = require("./types/index.js");
41
41
  const pillComponentGetter = {
@@ -50,12 +50,12 @@ const pillComponentGetter = {
50
50
  };
51
51
  const DSPillV2 = (props) => {
52
52
  const propsWithDefaults = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.DSPillV2DefaultProps);
53
- (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefaults, import_react_desc_prop_types.DSPillV2PropTypesSchema, import_DSPillDefinitions.DSPillName);
53
+ (0, import_ds_props_helpers.useValidateTypescriptPropTypes)(propsWithDefaults, import_react_desc_prop_types.DSPillV2PropTypesSchema, import_constants.DSPillName);
54
54
  const { type } = propsWithDefaults;
55
55
  const PillComponent = pillComponentGetter[type];
56
56
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PillComponent, { ...propsWithDefaults });
57
57
  };
58
- DSPillV2.displayName = import_DSPillDefinitions.DSPillName;
58
+ DSPillV2.displayName = import_constants.DSPillName;
59
59
  const DSPillV2WithSchema = (0, import_ds_props_helpers.describe)(DSPillV2).description("Pill");
60
60
  DSPillV2WithSchema.propTypes = import_react_desc_prop_types.DSPillV2PropTypesSchema;
61
61
  //# sourceMappingURL=Pill.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/Pill.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { DSPillName } from '../DSPillDefinitions.js';\nimport { DSPillV2DefaultProps, DSPillV2PropTypesSchema, type DSPillT } from '../react-desc-prop-types.js';\nimport {\n DropdownPill,\n InputPill,\n LabelPill,\n LabelOnlyPill,\n MenuButtonPill,\n ReadOnlyPill,\n RemovablePill,\n ValuePill,\n} from './types/index.js';\n\nconst pillComponentGetter: Record<string, React.ComponentType<DSPillT.InternalProps>> = {\n dropdown: DropdownPill,\n menubutton: MenuButtonPill,\n input: InputPill,\n label: LabelPill,\n labelOnly: LabelOnlyPill,\n readonly: ReadOnlyPill,\n removable: RemovablePill,\n value: ValuePill,\n};\n\nconst DSPillV2: React.ComponentType<DSPillT.Props> = (props) => {\n const propsWithDefaults = useMemoMergePropsWithDefault<DSPillT.InternalProps>(props, DSPillV2DefaultProps);\n useValidateTypescriptPropTypes(propsWithDefaults, DSPillV2PropTypesSchema, DSPillName);\n const { type } = propsWithDefaults;\n const PillComponent = pillComponentGetter[type];\n\n return <PillComponent {...propsWithDefaults} />;\n};\n\nDSPillV2.displayName = DSPillName;\nconst DSPillV2WithSchema = describe(DSPillV2).description('Pill');\nDSPillV2WithSchema.propTypes = DSPillV2PropTypesSchema;\n\nexport { DSPillV2, DSPillV2WithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCd;AAhCT,8BAAuF;AAEvF,+BAA2B;AAC3B,mCAA4E;AAC5E,mBASO;AAEP,MAAM,sBAAkF;AAAA,EACtF,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AACT;AAEA,MAAM,WAA+C,CAAC,UAAU;AAC9D,QAAM,wBAAoB,sDAAoD,OAAO,iDAAoB;AACzG,8DAA+B,mBAAmB,sDAAyB,mCAAU;AACrF,QAAM,EAAE,KAAK,IAAI;AACjB,QAAM,gBAAgB,oBAAoB,IAAI;AAE9C,SAAO,4CAAC,iBAAe,GAAG,mBAAmB;AAC/C;AAEA,SAAS,cAAc;AACvB,MAAM,yBAAqB,kCAAS,QAAQ,EAAE,YAAY,MAAM;AAChE,mBAAmB,YAAY;",
4
+ "sourcesContent": ["import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { DSPillName } from '../constants/index.js';\nimport { DSPillV2DefaultProps, DSPillV2PropTypesSchema, type DSPillT } from '../react-desc-prop-types.js';\nimport {\n DropdownPill,\n InputPill,\n LabelPill,\n LabelOnlyPill,\n MenuButtonPill,\n ReadOnlyPill,\n RemovablePill,\n ValuePill,\n} from './types/index.js';\n\nconst pillComponentGetter: Record<string, React.ComponentType<DSPillT.InternalProps>> = {\n dropdown: DropdownPill,\n menubutton: MenuButtonPill,\n input: InputPill,\n label: LabelPill,\n labelOnly: LabelOnlyPill,\n readonly: ReadOnlyPill,\n removable: RemovablePill,\n value: ValuePill,\n};\n\nconst DSPillV2: React.ComponentType<DSPillT.Props> = (props) => {\n const propsWithDefaults = useMemoMergePropsWithDefault<DSPillT.InternalProps>(props, DSPillV2DefaultProps);\n useValidateTypescriptPropTypes(propsWithDefaults, DSPillV2PropTypesSchema, DSPillName);\n const { type } = propsWithDefaults;\n const PillComponent = pillComponentGetter[type];\n\n return <PillComponent {...propsWithDefaults} />;\n};\n\nDSPillV2.displayName = DSPillName;\nconst DSPillV2WithSchema = describe(DSPillV2).description('Pill');\nDSPillV2WithSchema.propTypes = DSPillV2PropTypesSchema;\n\nexport { DSPillV2, DSPillV2WithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCd;AAhCT,8BAAuF;AAEvF,uBAA2B;AAC3B,mCAA4E;AAC5E,mBASO;AAEP,MAAM,sBAAkF;AAAA,EACtF,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AACT;AAEA,MAAM,WAA+C,CAAC,UAAU;AAC9D,QAAM,wBAAoB,sDAAoD,OAAO,iDAAoB;AACzG,8DAA+B,mBAAmB,sDAAyB,2BAAU;AACrF,QAAM,EAAE,KAAK,IAAI;AACjB,QAAM,gBAAgB,oBAAoB,IAAI;AAE9C,SAAO,4CAAC,iBAAe,GAAG,mBAAmB;AAC/C;AAEA,SAAS,cAAc;AACvB,MAAM,yBAAqB,kCAAS,QAAQ,EAAE,YAAY,MAAM;AAChE,mBAAmB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -27,6 +27,4 @@ var components_exports = {};
27
27
  module.exports = __toCommonJS(components_exports);
28
28
  var React = __toESM(require("react"));
29
29
  __reExport(components_exports, require("./Pill.js"), module.exports);
30
- __reExport(components_exports, require("./PillGroup.js"), module.exports);
31
- __reExport(components_exports, require("./PillButton.js"), module.exports);
32
30
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/index.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export * from './Pill.js';\nexport * from './PillGroup.js';\nexport * from './PillButton.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAc,sBAAd;AACA,+BAAc,2BADd;AAEA,+BAAc,4BAFd;",
4
+ "sourcesContent": ["export * from './Pill.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAc,sBAAd;",
6
6
  "names": []
7
7
  }
@@ -47,6 +47,9 @@ var import_ds_button_v2 = require("@elliemae/ds-button-v2");
47
47
  var import_ds_grid = require("@elliemae/ds-grid");
48
48
  var import_ds_menu_button = require("@elliemae/ds-menu-button");
49
49
  var import_ds_system = require("@elliemae/ds-system");
50
+ var import_constants = require("../constants/index.js");
51
+ var import_constants2 = require("../parts/DSPillButton/constants/index.js");
52
+ var import_constants3 = require("../parts/DSPillGroup/constants/index.js");
50
53
  const borderOutside = ({
51
54
  color,
52
55
  size = 1,
@@ -98,25 +101,31 @@ const commonPillWrapperCss = import_ds_system.css`
98
101
  cursor: ${({ disabled, applyAriaDisabled }) => disabled || applyAriaDisabled ? "not-allowed" : "default"};
99
102
  color: ${({ theme, disabled, applyAriaDisabled, readOnly }) => disabled || applyAriaDisabled || readOnly ? "#616b7f" : theme.colors.brand["800"]};
100
103
  `;
101
- const StyledLabelPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
104
+ const StyledLabelPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSPillV2Name, slot: import_constants.PILL_V2_SLOTS.WRAPPER })`
102
105
  ${commonPillWrapperCss}
103
106
 
104
107
  font-weight: ${(props) => props.theme.fontWeights.semibold};
105
108
  padding-left: ${(props) => props.hasIcon || props.applyAriaDisabled || props.readOnly ? "0px !important" : "12px"};
106
109
  `;
107
- const StyledLabelOnlyPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
110
+ const StyledLabelOnlyPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSPillV2Name, slot: import_constants.PILL_V2_SLOTS.WRAPPER })`
108
111
  ${commonPillWrapperCss}
109
112
 
110
113
  font-weight: ${(props) => props.theme.fontWeights.regular};
111
114
  padding-left: ${(props) => props.hasIcon || props.applyAriaDisabled ? "0px !important" : "12px"};
112
115
  `;
113
- const StyledValuePillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
116
+ const StyledValuePillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, {
117
+ name: import_constants.DSPillV2Name,
118
+ slot: import_constants.PILL_V2_SLOTS.WRAPPER
119
+ })`
114
120
  ${commonPillWrapperCss}
115
121
 
116
122
  font-weight: ${(props) => props.theme.fontWeights.regular};
117
123
  padding-left: ${(props) => props.hasIcon || props.disabled ? "0px !important" : "12px"};
118
124
  `;
119
- const StyledInputPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
125
+ const StyledInputPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, {
126
+ name: import_constants.DSPillV2Name,
127
+ slot: import_constants.PILL_V2_SLOTS.WRAPPER
128
+ })`
120
129
  ${commonPillWrapperCss}
121
130
 
122
131
  background: ${(props) => props.theme.colors.neutral["000"]};
@@ -151,19 +160,25 @@ const StyledInputPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)
151
160
  height: 100%;
152
161
  }
153
162
  `;
154
- const StyledDropdownPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
163
+ const StyledDropdownPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSPillV2Name, slot: import_constants.PILL_V2_SLOTS.WRAPPER })`
155
164
  ${commonPillWrapperCss}
156
165
  font-weight: ${(props) => props.theme.fontWeights.semibold};
157
166
 
158
167
  padding: 0 0 0 12px;
159
168
  `;
160
- const StyledReadonlyPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
169
+ const StyledReadonlyPillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, {
170
+ name: import_constants.DSPillV2Name,
171
+ slot: import_constants.PILL_V2_SLOTS.WRAPPER
172
+ })`
161
173
  ${commonPillWrapperCss}
162
174
  font-weight: ${(props) => props.theme.fontWeights.semibold};
163
175
  padding-right: ${(props) => props.hasIconRight ? "0 !important" : "12px"};
164
176
  padding-left: ${(props) => props.hasIconLeft ? "0 !important" : "12px"};
165
177
  `;
166
- const StyledRemovablePillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
178
+ const StyledRemovablePillWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, {
179
+ name: import_constants.DSPillV2Name,
180
+ slot: import_constants.PILL_V2_SLOTS.WRAPPER
181
+ })`
167
182
  ${commonPillWrapperCss}
168
183
  font-weight: ${(props) => props.theme.fontWeights.regular};
169
184
  padding: 0 0 0 12px;
@@ -173,7 +188,7 @@ const StyledRemovablePillWrapper = (0, import_ds_system.styled)(import_ds_grid.G
173
188
  line-height: 1rem;
174
189
  }
175
190
  `;
176
- const StyledPillGroup = (0, import_ds_system.styled)(import_ds_grid.Grid)`
191
+ const StyledPillGroup = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSPillV2Name, slot: import_constants3.PILL_GROUP_SLOTS.PILL_GROUP })`
177
192
  width: ${({ width }) => width};
178
193
 
179
194
  // Pill edges
@@ -245,7 +260,11 @@ const StyledSpanWithTooltip = import_ds_system.styled.span`
245
260
  ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 3 })}
246
261
  }
247
262
  `;
248
- const StyledPillButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV2)`
263
+ const StyledPillButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV2, {
264
+ name: import_constants.DSPillV2Name,
265
+ slot: import_constants2.PILL_BUTTON_SLOTS.PILL_BUTTON,
266
+ preserveLegacyDataTestId: true
267
+ })`
249
268
  display: grid;
250
269
  place-items: center;
251
270
 
@@ -276,7 +295,7 @@ const StyledPillButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButt
276
295
 
277
296
  cursor: pointer;
278
297
  `;
279
- const StyledPillMenuButton = (0, import_ds_system.styled)(import_ds_menu_button.DSMenuButton)`
298
+ const StyledPillMenuButton = (0, import_ds_system.styled)(import_ds_menu_button.DSMenuButton, { name: import_constants.DSPillV2Name, slot: import_constants.PILL_V2_SLOTS.PILL_MENU_BUTTON })`
280
299
  display: grid;
281
300
  place-items: center;
282
301
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/styled.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSMenuButton } from '@elliemae/ds-menu-button';\nimport { css, styled } from '@elliemae/ds-system';\n// =============================================================================\n// Common CSS\n// =============================================================================\n\nexport const borderOutside = ({\n color,\n size = 1,\n zIndex = 0,\n borderRadius = '12px',\n}: {\n color: string;\n size?: number;\n zIndex?: number;\n borderRadius?: string;\n}) => css<{ disabled?: boolean; applyAriaDisabled?: boolean; readOnly?: boolean }>`\n :after {\n content: ' ';\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n border: ${size}px solid\n ${({ disabled, applyAriaDisabled, readOnly, theme }) =>\n disabled || applyAriaDisabled || readOnly ? theme.colors.neutral[400] : color};\n border-top-left-radius: ${borderRadius};\n border-top-right-radius: ${borderRadius};\n border-bottom-left-radius: ${borderRadius};\n border-bottom-right-radius: ${borderRadius};\n pointer-events: none;\n z-index: ${zIndex || ''};\n }\n`;\n\nconst commonPillWrapperCss = css<{\n pillSize: 'm' | 's';\n disabled?: boolean;\n applyAriaDisabled?: boolean;\n readOnly?: boolean;\n}>`\n height: ${(props) => (props?.pillSize === 'm' ? '1.846rem' : '1.3846rem')};\n @media (max-width: ${(props) => props.theme.breakpoints?.small}) {\n height: ${(props) => (props?.pillSize === 'm' ? '1.5rem' : '1.125rem')};\n }\n position: relative;\n\n width: fit-content;\n\n background-color: ${({ theme, disabled, applyAriaDisabled, readOnly }) => {\n if (disabled) return theme.colors.neutral['080'];\n if (applyAriaDisabled || readOnly) return theme.colors.neutral['050'];\n return theme.colors.brand[250];\n }};\n\n outline: none;\n\n white-space: nowrap;\n\n padding: 0px 12px 0 12px;\n border-radius: 12px;\n\n font-size: 1rem;\n line-height: 1;\n user-select: ${({ disabled, applyAriaDisabled }) => (disabled || applyAriaDisabled ? 'none' : 'auto')};\n cursor: ${({ disabled, applyAriaDisabled }) => (disabled || applyAriaDisabled ? 'not-allowed' : 'default')};\n color: ${({ theme, disabled, applyAriaDisabled, readOnly }) =>\n disabled || applyAriaDisabled || readOnly ? '#616b7f' : theme.colors.brand['800']};\n`;\n\ninterface InputPillWrapperProps {\n value: string;\n inputWidth: number;\n inputHasFocus: boolean;\n hasError: boolean;\n pillSize: 'm' | 's';\n disabled?: boolean;\n}\n\n// =============================================================================\n// Pills wrappers\n// =============================================================================\n\nexport const StyledLabelPillWrapper = styled(Grid)<{\n pillSize: 'm' | 's';\n hasIcon: boolean;\n applyAriaDisabled?: boolean;\n readOnly?: boolean;\n}>`\n ${commonPillWrapperCss}\n\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n padding-left: ${(props) => (props.hasIcon || props.applyAriaDisabled || props.readOnly ? '0px !important' : '12px')};\n`;\n\nexport const StyledLabelOnlyPillWrapper = styled(Grid)<{\n pillSize: 'm' | 's';\n hasIcon: boolean;\n applyAriaDisabled?: boolean;\n}>`\n ${commonPillWrapperCss}\n\n font-weight: ${(props) => props.theme.fontWeights.regular};\n padding-left: ${(props) => (props.hasIcon || props.applyAriaDisabled ? '0px !important' : '12px')};\n`;\n\ntype StyledValuePillWrapperPropsT = {\n pillSize: 'm' | 's';\n hasIcon: boolean;\n applyAriaDisabled: boolean;\n};\n\nexport const StyledValuePillWrapper = styled(Grid)<StyledValuePillWrapperPropsT>`\n ${commonPillWrapperCss}\n\n font-weight: ${(props) => props.theme.fontWeights.regular};\n padding-left: ${(props) => (props.hasIcon || props.disabled ? '0px !important' : '12px')};\n`;\n\nexport const StyledInputPillWrapper = styled(Grid)<InputPillWrapperProps>`\n ${commonPillWrapperCss}\n\n background: ${(props) => props.theme.colors.neutral['000']};\n padding: 0;\n\n ${({ theme, hasError }) => {\n if (hasError) return borderOutside({ color: theme.colors.danger[900] });\n return borderOutside({ color: theme.colors.brand[500] });\n }}\n\n :focus-within {\n ${(props) => (props.inputHasFocus ? borderOutside({ color: props.theme.colors.brand[700], size: 2 }) : '')}\n }\n\n :active {\n ${(props) => (props.inputHasFocus ? borderOutside({ color: props.theme.colors.brand[500] }) : '')}\n }\n\n & .em-ds-input {\n outline: none !important;\n border: none !important;\n box-shadow: none !important;\n border-radius: 0 !important;\n height: 100%;\n background: transparent;\n width: ${(props) => `${props.inputWidth + (props.value === '' ? 24 : 0)}px`};\n padding: 0;\n margin: 0 0 0 8px;\n }\n\n & .em-ds-input__tooltip-ref {\n height: 100%;\n }\n`;\n\nexport const StyledDropdownPillWrapper = styled(Grid)<{ pillSize: 'm' | 's' }>`\n ${commonPillWrapperCss}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n\n padding: 0 0 0 12px;\n`;\n\ntype StyledMenuButtonPillWrapperPropsT = {\n pillSize: 'm' | 's';\n hasIconRight: boolean;\n hasIconLeft: boolean;\n disabled?: boolean;\n};\n\nexport const StyledReadonlyPillWrapper = styled(Grid)<StyledMenuButtonPillWrapperPropsT>`\n ${commonPillWrapperCss}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n padding-right: ${(props) => (props.hasIconRight ? '0 !important' : '12px')};\n padding-left: ${(props) => (props.hasIconLeft ? '0 !important' : '12px')};\n`;\n\ntype StyledRemovablePillWrapperPropsT = {\n pillSize: 'm' | 's';\n disabled: boolean;\n applyAriaDisabled: boolean;\n};\n\nexport const StyledRemovablePillWrapper = styled(Grid)<StyledRemovablePillWrapperPropsT>`\n ${commonPillWrapperCss}\n font-weight: ${(props) => props.theme.fontWeights.regular};\n padding: 0 0 0 12px;\n padding: ${({ disabled, applyAriaDisabled, readOnly }) =>\n disabled || applyAriaDisabled || readOnly ? '0 12px 0 12px' : '0 0 0 12px'};\n line-height: 1.2307rem;\n @media (max-width: ${(props) => props.theme.breakpoints?.small}) {\n line-height: 1rem;\n }\n`;\n\n// =============================================================================\n// Pill group\n// =============================================================================\n\nexport const StyledPillGroup = styled(Grid)`\n width: ${({ width }) => width};\n\n // Pill edges\n & .ds-pill-wrapper {\n &:not(:first-of-type) {\n &,\n :after,\n :before,\n .ds-pill-tooltip-value:after {\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n }\n &:not(:last-of-type) {\n &,\n :after,\n :before,\n .ds-pill-tooltip-value:after {\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n }\n }\n\n // Pill paddings to the left / right\n & .ds-pill-wrapper-label,\n & .ds-pill-wrapper-value,\n & .ds-pill-wrapper-readonly {\n &:not(:first-of-type) {\n padding-left: 8px;\n }\n &:not(:last-of-type) {\n padding-right: 8px;\n }\n }\n\n & .ds-pill-wrapper-removable:not(:first-of-type) {\n padding-left: 8px;\n }\n\n & .ds-pill-wrapper-dropdown:not(:first-of-type) {\n padding-left: 8px;\n }\n\n & .ds-pill-wrapper {\n :not(:first-of-type) {\n .ds-pill-button-left {\n border-radius: 0px;\n }\n .ds-pill-button-only {\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n }\n :not(:last-of-type) {\n .ds-pill-button-right {\n border-radius: 0px;\n }\n .ds-pill-button-only {\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n }\n }\n`;\n\n// =============================================================================\n// Extra stuff\n// =============================================================================\n\nexport const StyledSpanWithTooltip = styled.span`\n outline: none;\n :focus {\n ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 3 })}\n }\n`;\n\nexport const StyledPillButton = styled(DSButtonV2)<{ width: string | number; height: string | number }>`\n display: grid;\n place-items: center;\n\n position: relative;\n\n padding: 0;\n ${({ width, height, theme }) => {\n if (String(width).includes('px') && String(height).includes('px'))\n return `\n width: ${parseInt(width as string, 10) / 13}rem;\n height: ${parseInt(height as string, 10) / 13}rem;\n\n @media (max-width: ${theme.breakpoints?.small}) {\n width: ${parseInt(width as string, 10) / 16}rem;\n height: ${parseInt(height as string, 10) / 16}rem;\n }`;\n\n return `\n width: ${width};\n height: ${height};\n `;\n }}\n\n border-radius: 12px;\n\n :focus {\n ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 1, borderRadius: 'inherit' })}\n }\n\n cursor: pointer;\n`;\n\nexport const StyledPillMenuButton = styled(DSMenuButton)<{ width: string; height: string }>`\n display: grid;\n place-items: center;\n\n position: relative;\n\n padding: 0;\n ${({ width, height, theme }) => {\n if (String(width).includes('px') && String(height).includes('px'))\n return `\n width: ${parseInt(width, 10) / 13}rem;\n height: ${parseInt(height, 10) / 13}rem;\n\n @media (max-width: ${theme.breakpoints?.small}) {\n width: ${parseInt(width, 10) / 16}rem;\n height: ${parseInt(height, 10) / 16}rem;\n }`;\n\n return `\n width: ${width};\n height: ${height};\n `;\n }}\n\n border-radius: 12px;\n\n :focus {\n ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 1, borderRadius: 'inherit' })}\n }\n\n cursor: pointer;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAA2B;AAC3B,qBAAqB;AACrB,4BAA6B;AAC7B,uBAA4B;AAKrB,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA,OAAO;AAAA,EACP,SAAS;AAAA,EACT,eAAe;AACjB,MAKM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAQQ,IAAI;AAAA,QACV,CAAC,EAAE,UAAU,mBAAmB,UAAU,MAAM,MAChD,YAAY,qBAAqB,WAAW,MAAM,OAAO,QAAQ,GAAG,IAAI,KAAK;AAAA,8BACvD,YAAY;AAAA,+BACX,YAAY;AAAA,iCACV,YAAY;AAAA,kCACX,YAAY;AAAA;AAAA,eAE/B,UAAU,EAAE;AAAA;AAAA;AAI3B,MAAM,uBAAuB;AAAA,YAMjB,CAAC,UAAW,OAAO,aAAa,MAAM,aAAa,WAAY;AAAA,uBACpD,CAAC,UAAU,MAAM,MAAM,aAAa,KAAK;AAAA,cAClD,CAAC,UAAW,OAAO,aAAa,MAAM,WAAW,UAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMpD,CAAC,EAAE,OAAO,UAAU,mBAAmB,SAAS,MAAM;AACxE,MAAI,SAAU,QAAO,MAAM,OAAO,QAAQ,KAAK;AAC/C,MAAI,qBAAqB,SAAU,QAAO,MAAM,OAAO,QAAQ,KAAK;A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A;AAAA;AAAA;AAAA;AAAA,IAOnD,CAAC,EAAE,OAAO,QAAQ,MAAM,MAAM;AAC9B,MAAI,OAAO,KAAK,EAAE,SAAS,IAAI,KAAK,OAAO,MAAM,EAAE,SAAS,IAAI;AAC9D,WAAO;AAAA,eACE,SAAS,OAAO,EAAE,IAAI,EAAE;AAAA,cACzB,SAAS,QAAQ,EAAE,IAAI,EAAE;AAAA;AAAA,yBAEd,MAAM,aAAa,KAAK;AAAA,eAClC,SAAS,OAAO,EAAE,IAAI,EAAE;AAAA,gBACvB,SAAS,QAAQ,EAAE,IAAI,EAAE;AAAA;AAGrC,SAAO;AAAA,aACE,KAAK;AAAA,cACJ,MAAM;AAAA;AAElB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,MAKG,CAAC,UAAU,cAAc,EAAE,OAAO,MAAM,MAAM,OAAO,MAAM,GAAG,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,UAAU,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSMenuButton } from '@elliemae/ds-menu-button';\nimport { css, styled } from '@elliemae/ds-system';\nimport { PILL_V2_SLOTS, DSPillV2Name } from '../constants/index.js';\nimport { PILL_BUTTON_SLOTS } from '../parts/DSPillButton/constants/index.js';\nimport { PILL_GROUP_SLOTS } from '../parts/DSPillGroup/constants/index.js';\n\n// =============================================================================\n// Common CSS\n// =============================================================================\n\nexport const borderOutside = ({\n color,\n size = 1,\n zIndex = 0,\n borderRadius = '12px',\n}: {\n color: string;\n size?: number;\n zIndex?: number;\n borderRadius?: string;\n}) => css<{ disabled?: boolean; applyAriaDisabled?: boolean; readOnly?: boolean }>`\n :after {\n content: ' ';\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n border: ${size}px solid\n ${({ disabled, applyAriaDisabled, readOnly, theme }) =>\n disabled || applyAriaDisabled || readOnly ? theme.colors.neutral[400] : color};\n border-top-left-radius: ${borderRadius};\n border-top-right-radius: ${borderRadius};\n border-bottom-left-radius: ${borderRadius};\n border-bottom-right-radius: ${borderRadius};\n pointer-events: none;\n z-index: ${zIndex || ''};\n }\n`;\n\nconst commonPillWrapperCss = css<{\n pillSize: 'm' | 's';\n disabled?: boolean;\n applyAriaDisabled?: boolean;\n readOnly?: boolean;\n}>`\n height: ${(props) => (props?.pillSize === 'm' ? '1.846rem' : '1.3846rem')};\n @media (max-width: ${(props) => props.theme.breakpoints?.small}) {\n height: ${(props) => (props?.pillSize === 'm' ? '1.5rem' : '1.125rem')};\n }\n position: relative;\n\n width: fit-content;\n\n background-color: ${({ theme, disabled, applyAriaDisabled, readOnly }) => {\n if (disabled) return theme.colors.neutral['080'];\n if (applyAriaDisabled || readOnly) return theme.colors.neutral['050'];\n return theme.colors.brand[250];\n }};\n\n outline: none;\n\n white-space: nowrap;\n\n padding: 0px 12px 0 12px;\n border-radius: 12px;\n\n font-size: 1rem;\n line-height: 1;\n user-select: ${({ disabled, applyAriaDisabled }) => (disabled || applyAriaDisabled ? 'none' : 'auto')};\n cursor: ${({ disabled, applyAriaDisabled }) => (disabled || applyAriaDisabled ? 'not-allowed' : 'default')};\n color: ${({ theme, disabled, applyAriaDisabled, readOnly }) =>\n disabled || applyAriaDisabled || readOnly ? '#616b7f' : theme.colors.brand['800']};\n`;\n\ninterface InputPillWrapperProps {\n value: string;\n inputWidth: number;\n inputHasFocus: boolean;\n hasError: boolean;\n pillSize: 'm' | 's';\n disabled?: boolean;\n}\n\n// =============================================================================\n// Pills wrappers\n// =============================================================================\n\nexport const StyledLabelPillWrapper = styled(Grid, { name: DSPillV2Name, slot: PILL_V2_SLOTS.WRAPPER })<{\n pillSize: 'm' | 's';\n hasIcon: boolean;\n applyAriaDisabled?: boolean;\n readOnly?: boolean;\n}>`\n ${commonPillWrapperCss}\n\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n padding-left: ${(props) => (props.hasIcon || props.applyAriaDisabled || props.readOnly ? '0px !important' : '12px')};\n`;\n\nexport const StyledLabelOnlyPillWrapper = styled(Grid, { name: DSPillV2Name, slot: PILL_V2_SLOTS.WRAPPER })<{\n pillSize: 'm' | 's';\n hasIcon: boolean;\n applyAriaDisabled?: boolean;\n}>`\n ${commonPillWrapperCss}\n\n font-weight: ${(props) => props.theme.fontWeights.regular};\n padding-left: ${(props) => (props.hasIcon || props.applyAriaDisabled ? '0px !important' : '12px')};\n`;\n\ntype StyledValuePillWrapperPropsT = {\n pillSize: 'm' | 's';\n hasIcon: boolean;\n applyAriaDisabled: boolean;\n};\n\nexport const StyledValuePillWrapper = styled(Grid, {\n name: DSPillV2Name,\n slot: PILL_V2_SLOTS.WRAPPER,\n})<StyledValuePillWrapperPropsT>`\n ${commonPillWrapperCss}\n\n font-weight: ${(props) => props.theme.fontWeights.regular};\n padding-left: ${(props) => (props.hasIcon || props.disabled ? '0px !important' : '12px')};\n`;\n\nexport const StyledInputPillWrapper = styled(Grid, {\n name: DSPillV2Name,\n slot: PILL_V2_SLOTS.WRAPPER,\n})<InputPillWrapperProps>`\n ${commonPillWrapperCss}\n\n background: ${(props) => props.theme.colors.neutral['000']};\n padding: 0;\n\n ${({ theme, hasError }) => {\n if (hasError) return borderOutside({ color: theme.colors.danger[900] });\n return borderOutside({ color: theme.colors.brand[500] });\n }}\n\n :focus-within {\n ${(props) => (props.inputHasFocus ? borderOutside({ color: props.theme.colors.brand[700], size: 2 }) : '')}\n }\n\n :active {\n ${(props) => (props.inputHasFocus ? borderOutside({ color: props.theme.colors.brand[500] }) : '')}\n }\n\n & .em-ds-input {\n outline: none !important;\n border: none !important;\n box-shadow: none !important;\n border-radius: 0 !important;\n height: 100%;\n background: transparent;\n width: ${(props) => `${props.inputWidth + (props.value === '' ? 24 : 0)}px`};\n padding: 0;\n margin: 0 0 0 8px;\n }\n\n & .em-ds-input__tooltip-ref {\n height: 100%;\n }\n`;\n\nexport const StyledDropdownPillWrapper = styled(Grid, { name: DSPillV2Name, slot: PILL_V2_SLOTS.WRAPPER })<{\n pillSize: 'm' | 's';\n}>`\n ${commonPillWrapperCss}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n\n padding: 0 0 0 12px;\n`;\n\ntype StyledMenuButtonPillWrapperPropsT = {\n pillSize: 'm' | 's';\n hasIconRight: boolean;\n hasIconLeft: boolean;\n disabled?: boolean;\n};\n\nexport const StyledReadonlyPillWrapper = styled(Grid, {\n name: DSPillV2Name,\n slot: PILL_V2_SLOTS.WRAPPER,\n})<StyledMenuButtonPillWrapperPropsT>`\n ${commonPillWrapperCss}\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n padding-right: ${(props) => (props.hasIconRight ? '0 !important' : '12px')};\n padding-left: ${(props) => (props.hasIconLeft ? '0 !important' : '12px')};\n`;\n\ntype StyledRemovablePillWrapperPropsT = {\n pillSize: 'm' | 's';\n disabled: boolean;\n applyAriaDisabled: boolean;\n};\n\nexport const StyledRemovablePillWrapper = styled(Grid, {\n name: DSPillV2Name,\n slot: PILL_V2_SLOTS.WRAPPER,\n})<StyledRemovablePillWrapperPropsT>`\n ${commonPillWrapperCss}\n font-weight: ${(props) => props.theme.fontWeights.regular};\n padding: 0 0 0 12px;\n padding: ${({ disabled, applyAriaDisabled, readOnly }) =>\n disabled || applyAriaDisabled || readOnly ? '0 12px 0 12px' : '0 0 0 12px'};\n line-height: 1.2307rem;\n @media (max-width: ${(props) => props.theme.breakpoints?.small}) {\n line-height: 1rem;\n }\n`;\n\n// =============================================================================\n// Pill group\n// =============================================================================\n\nexport const StyledPillGroup = styled(Grid, { name: DSPillV2Name, slot: PILL_GROUP_SLOTS.PILL_GROUP })`\n width: ${({ width }) => width};\n\n // Pill edges\n & .ds-pill-wrapper {\n &:not(:first-of-type) {\n &,\n :after,\n :before,\n .ds-pill-tooltip-value:after {\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n }\n &:not(:last-of-type) {\n &,\n :after,\n :before,\n .ds-pill-tooltip-value:after {\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n }\n }\n\n // Pill paddings to the left / right\n & .ds-pill-wrapper-label,\n & .ds-pill-wrapper-value,\n & .ds-pill-wrapper-readonly {\n &:not(:first-of-type) {\n padding-left: 8px;\n }\n &:not(:last-of-type) {\n padding-right: 8px;\n }\n }\n\n & .ds-pill-wrapper-removable:not(:first-of-type) {\n padding-left: 8px;\n }\n\n & .ds-pill-wrapper-dropdown:not(:first-of-type) {\n padding-left: 8px;\n }\n\n & .ds-pill-wrapper {\n :not(:first-of-type) {\n .ds-pill-button-left {\n border-radius: 0px;\n }\n .ds-pill-button-only {\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n }\n :not(:last-of-type) {\n .ds-pill-button-right {\n border-radius: 0px;\n }\n .ds-pill-button-only {\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n }\n }\n`;\n\n// =============================================================================\n// Extra stuff\n// =============================================================================\n\nexport const StyledSpanWithTooltip = styled.span`\n outline: none;\n :focus {\n ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 3 })}\n }\n`;\n\nexport const StyledPillButton = styled(DSButtonV2, {\n name: DSPillV2Name,\n slot: PILL_BUTTON_SLOTS.PILL_BUTTON,\n preserveLegacyDataTestId: true,\n})<{\n width: string | number;\n height: string | number;\n}>`\n display: grid;\n place-items: center;\n\n position: relative;\n\n padding: 0;\n ${({ width, height, theme }) => {\n if (String(width).includes('px') && String(height).includes('px'))\n return `\n width: ${parseInt(width as string, 10) / 13}rem;\n height: ${parseInt(height as string, 10) / 13}rem;\n\n @media (max-width: ${theme.breakpoints?.small}) {\n width: ${parseInt(width as string, 10) / 16}rem;\n height: ${parseInt(height as string, 10) / 16}rem;\n }`;\n\n return `\n width: ${width};\n height: ${height};\n `;\n }}\n\n border-radius: 12px;\n\n :focus {\n ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 1, borderRadius: 'inherit' })}\n }\n\n cursor: pointer;\n`;\n\nexport const StyledPillMenuButton = styled(DSMenuButton, { name: DSPillV2Name, slot: PILL_V2_SLOTS.PILL_MENU_BUTTON })<{\n width: string;\n height: string;\n}>`\n display: grid;\n place-items: center;\n\n position: relative;\n\n padding: 0;\n ${({ width, height, theme }) => {\n if (String(width).includes('px') && String(height).includes('px'))\n return `\n width: ${parseInt(width, 10) / 13}rem;\n height: ${parseInt(height, 10) / 13}rem;\n\n @media (max-width: ${theme.breakpoints?.small}) {\n width: ${parseInt(width, 10) / 16}rem;\n height: ${parseInt(height, 10) / 16}rem;\n }`;\n\n return `\n width: ${width};\n height: ${height};\n `;\n }}\n\n border-radius: 12px;\n\n :focus {\n ${(props) => borderOutside({ color: props.theme.colors.brand[700], size: 2, zIndex: 1, borderRadius: 'inherit' })}\n }\n\n cursor: pointer;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAA2B;AAC3B,qBAAqB;AACrB,4BAA6B;AAC7B,uBAA4B;AAC5B,uBAA4C;AAC5C,IAAAA,oBAAkC;AAClC,IAAAA,oBAAiC;AAM1B,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA,OAAO;AAAA,EACP,SAAS;AAAA,EACT,eAAe;AACjB,MAKM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAQQ,IAAI;AAAA,QACV,CAAC,EAAE,UAAU,mBAAmB,UAAU,MAAM,MAChD,YAAY,qBAAqB,WAAW,MAAM,OAAO,QAAQ,GAAG,IAAI,KAAK;AAAA,8BACvD,YAAY;AAAA,+BACX,YAAY;AAAA,iCACV,YAAY;AAAA,kCACX,YAAY;AAAA;AAAA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AAO,EAAE,IAAI,EAAE;AAAA,gBACvB,SAAS,QAAQ,EAAE,IAAI,EAAE;AAAA;AAGrC,SAAO;AAAA,aACE,KAAK;AAAA,cACJ,MAAM;AAAA;AAElB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,MAKG,CAAC,UAAU,cAAc,EAAE,OAAO,MAAM,MAAM,OAAO,MAAM,GAAG,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,UAAU,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;",
6
+ "names": ["import_constants"]
7
7
  }
@@ -38,7 +38,7 @@ var import_ds_icons = require("@elliemae/ds-icons");
38
38
  var import_ds_system = require("@elliemae/ds-system");
39
39
  var import_react = __toESM(require("react"));
40
40
  var import_uid = require("uid");
41
- var import_PillButton = require("../PillButton.js");
41
+ var import_DSPillButton = require("../../parts/DSPillButton/DSPillButton.js");
42
42
  var import_TextComponent = require("../TextComponent.js");
43
43
  var import_styled = require("../styled.js");
44
44
  const DropdownPill = import_react.default.memo(
@@ -77,7 +77,7 @@ const DropdownPill = import_react.default.memo(
77
77
  },
78
78
  wrapperStyles: { w: "100%", h: "100%" },
79
79
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
- import_PillButton.DSPillButton,
80
+ import_DSPillButton.DSPillButton,
81
81
  {
82
82
  className: "ds-pill-focus-point",
83
83
  "data-testid": "ds-pill-dropdown-chevron",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/types/DropdownPill.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\nimport { DSDropdownMenuV2 } from '@elliemae/ds-dropdownmenu-v2';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport { mergeRefs } from '@elliemae/ds-system';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport React, { useMemo, useRef } from 'react';\nimport { uid } from 'uid';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\nimport { DSPillButton } from '../PillButton.js';\nimport { TextComponent } from '../TextComponent.js';\nimport { StyledDropdownPillWrapper } from '../styled.js';\n\nexport const DropdownPill = React.memo<DSPillT.InternalProps>(\n ({ label, size, labelTruncated, dropdownProps, innerRef, ariaLabel, onDropdownClick }) => {\n const chevronRef = useRef<HTMLButtonElement | null>(null);\n\n const pillUid = useMemo(() => `ds-pill-${uid()}`, []);\n\n return (\n <StyledDropdownPillWrapper\n pillSize={size}\n id={pillUid}\n className=\"ds-pill-wrapper ds-pill-wrapper-dropdown\"\n data-testid=\"ds-pill-wrapper\"\n cols={['auto', 'minmax(24px, auto)']}\n gutter=\"2px\"\n alignItems=\"center\"\n justifyItems=\"center\"\n >\n <TextComponent labelTruncated={labelTruncated} label={label} />\n <DSDropdownMenuV2\n placementOrderPreference={[\n 'bottom-start',\n 'bottom',\n 'bottom-end',\n 'right-end',\n 'top-start',\n 'top',\n 'top-end',\n ]}\n {...dropdownProps}\n onClickOutside={(e) => {\n if ('code' in e && e.code === 'Escape') chevronRef.current?.focus();\n if (dropdownProps.onClickOutside) dropdownProps.onClickOutside(e);\n }}\n wrapperStyles={{ w: '100%', h: '100%' }}\n >\n <DSPillButton\n className=\"ds-pill-focus-point\"\n data-testid=\"ds-pill-dropdown-chevron\"\n innerRef={mergeRefs(chevronRef, innerRef as TypescriptHelpersT.AnyRef<HTMLButtonElement>)}\n aria-label={ariaLabel || label}\n type=\"right\"\n onClick={onDropdownClick}\n >\n <ChevronSmallDown color={['brand-primary', '800']} width={20} height={20} />\n </DSPillButton>\n </DSDropdownMenuV2>\n </StyledDropdownPillWrapper>\n );\n },\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmBjB;AAlBN,gCAAiC;AACjC,sBAAiC;AACjC,uBAA0B;AAE1B,mBAAuC;AACvC,iBAAoB;AAEpB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DropdownMenuV2 } from '@elliemae/ds-dropdownmenu-v2';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport { mergeRefs } from '@elliemae/ds-system';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport React, { useMemo, useRef } from 'react';\nimport { uid } from 'uid';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\nimport { DSPillButton } from '../../parts/DSPillButton/DSPillButton.js';\nimport { TextComponent } from '../TextComponent.js';\nimport { StyledDropdownPillWrapper } from '../styled.js';\n\nexport const DropdownPill = React.memo<DSPillT.InternalProps>(\n ({ label, size, labelTruncated, dropdownProps, innerRef, ariaLabel, onDropdownClick }) => {\n const chevronRef = useRef<HTMLButtonElement | null>(null);\n\n const pillUid = useMemo(() => `ds-pill-${uid()}`, []);\n\n return (\n <StyledDropdownPillWrapper\n pillSize={size}\n id={pillUid}\n className=\"ds-pill-wrapper ds-pill-wrapper-dropdown\"\n data-testid=\"ds-pill-wrapper\"\n cols={['auto', 'minmax(24px, auto)']}\n gutter=\"2px\"\n alignItems=\"center\"\n justifyItems=\"center\"\n >\n <TextComponent labelTruncated={labelTruncated} label={label} />\n <DSDropdownMenuV2\n placementOrderPreference={[\n 'bottom-start',\n 'bottom',\n 'bottom-end',\n 'right-end',\n 'top-start',\n 'top',\n 'top-end',\n ]}\n {...dropdownProps}\n onClickOutside={(e) => {\n if ('code' in e && e.code === 'Escape') chevronRef.current?.focus();\n if (dropdownProps.onClickOutside) dropdownProps.onClickOutside(e);\n }}\n wrapperStyles={{ w: '100%', h: '100%' }}\n >\n <DSPillButton\n className=\"ds-pill-focus-point\"\n data-testid=\"ds-pill-dropdown-chevron\"\n innerRef={mergeRefs(chevronRef, innerRef as TypescriptHelpersT.AnyRef<HTMLButtonElement>)}\n aria-label={ariaLabel || label}\n type=\"right\"\n onClick={onDropdownClick}\n >\n <ChevronSmallDown color={['brand-primary', '800']} width={20} height={20} />\n </DSPillButton>\n </DSDropdownMenuV2>\n </StyledDropdownP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AAAA,kBACL,SAAS;AAAA,kBAET,sDAAC,oCAAiB,OAAO,CAAC,iBAAiB,KAAK,GAAG,OAAO,IAAI,QAAQ,IAAI;AAAA;AAAA,cAC5E;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -37,7 +37,7 @@ var import_react = __toESM(require("react"));
37
37
  var import_uid = require("uid");
38
38
  var import_ds_icons = require("@elliemae/ds-icons");
39
39
  var import_styled = require("../styled.js");
40
- var import_PillButton = require("../PillButton.js");
40
+ var import_DSPillButton = require("../../parts/DSPillButton/DSPillButton.js");
41
41
  const InputPill = import_react.default.memo(
42
42
  ({
43
43
  label,
@@ -95,7 +95,7 @@ const InputPill = import_react.default.memo(
95
95
  }
96
96
  ),
97
97
  label !== "" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
98
- import_PillButton.DSPillButton,
98
+ import_DSPillButton.DSPillButton,
99
99
  {
100
100
  id: pillUid,
101
101
  "data-testid": "ds-pill-clear-icon",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/types/InputPill.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { uid } from 'uid';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport { StyledInputPillWrapper } from '../styled.js';\nimport { DSPillButton } from '../PillButton.js';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\n\nexport const InputPill = React.memo<DSPillT.InternalProps>(\n ({\n label,\n size,\n inputPlaceholder,\n inputWidth,\n inputRender,\n onInputChange,\n onInputClear,\n innerRef,\n hasError,\n inputId,\n }) => {\n const ref = useRef<HTMLInputElement | null>(null);\n\n const InputComponent = useMemo(() => inputRender, [inputRender]);\n\n const pillUid = useMemo(() => inputId ?? `ds-pill-${uid()}`, [inputId]);\n\n const onCloseIconClick = useCallback(\n (e: React.KeyboardEvent | React.MouseEvent) => {\n if (('code' in e && ['Enter', 'Space'].includes(e.code)) || !('code' in e)) {\n e.preventDefault();\n onInputClear?.(e);\n ref.current?.focus();\n }\n },\n [onInputClear],\n );\n\n const [inputHasFocus, setInputHasFocus] = useState(false);\n\n return (\n <StyledInputPillWrapper\n pillSize={size}\n className=\"ds-pill-wrapper\"\n data-testid=\"ds-pill-wrapper\"\n cols={label === '' ? ['auto'] : ['auto', '24px']}\n inputWidth={inputWidth}\n value={label ?? ''}\n inputHasFocus={inputHasFocus}\n hasError={hasError}\n >\n <InputComponent\n id={pillUid}\n className=\"ds-pill-focus-point\"\n data-testid=\"ds-pill-input\"\n innerRef={(_ref: HTMLInputElement | null) => {\n ref.current = _ref;\n }}\n value={label}\n onChange={onInputChange}\n placeholder={inputPlaceholder}\n onFocus={() => setInputHasFocus(true)}\n onBlur={() => setInputHasFocus(false)}\n disableTooltip={false}\n />\n {label !== '' && (\n <DSPillButton\n id={pillUid}\n data-testid=\"ds-pill-clear-icon\"\n innerRef={innerRef as TypescriptHelpersT.AnyRef<HTMLButtonElement>}\n onClick={onCloseIconClick}\n // onKeyDown={onCloseIconClick} // button v2 now triggers click on key down already\n aria-label=\"Clear input\"\n type=\"right\"\n >\n <CloseXsmall size=\"s\" color={['brand-primary', '700']} />\n </DSPillButton>\n )}\n </StyledInputPillWrapper>\n );\n },\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD0CjB;AAzCN,mBAA8D;AAE9D,iBAAoB;AACpB,sBAA4B;AAC5B,oBAAuC;AACvC,wBAA6B;AAGtB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;A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AAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG;AAAA;AAAA,UACzD;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;",
4
+ "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { uid } from 'uid';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport { StyledInputPillWrapper } from '../styled.js';\nimport { DSPillButton } from '../../parts/DSPillButton/DSPillButton.js';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\n\nexport const InputPill = React.memo<DSPillT.InternalProps>(\n ({\n label,\n size,\n inputPlaceholder,\n inputWidth,\n inputRender,\n onInputChange,\n onInputClear,\n innerRef,\n hasError,\n inputId,\n }) => {\n const ref = useRef<HTMLInputElement | null>(null);\n\n const InputComponent = useMemo(() => inputRender, [inputRender]);\n\n const pillUid = useMemo(() => inputId ?? `ds-pill-${uid()}`, [inputId]);\n\n const onCloseIconClick = useCallback(\n (e: React.KeyboardEvent | React.MouseEvent) => {\n if (('code' in e && ['Enter', 'Space'].includes(e.code)) || !('code' in e)) {\n e.preventDefault();\n onInputClear?.(e);\n ref.current?.focus();\n }\n },\n [onInputClear],\n );\n\n const [inputHasFocus, setInputHasFocus] = useState(false);\n\n return (\n <StyledInputPillWrapper\n pillSize={size}\n className=\"ds-pill-wrapper\"\n data-testid=\"ds-pill-wrapper\"\n cols={label === '' ? ['auto'] : ['auto', '24px']}\n inputWidth={inputWidth}\n value={label ?? ''}\n inputHasFocus={inputHasFocus}\n hasError={hasError}\n >\n <InputComponent\n id={pillUid}\n className=\"ds-pill-focus-point\"\n data-testid=\"ds-pill-input\"\n innerRef={(_ref: HTMLInputElement | null) => {\n ref.current = _ref;\n }}\n value={label}\n onChange={onInputChange}\n placeholder={inputPlaceholder}\n onFocus={() => setInputHasFocus(true)}\n onBlur={() => setInputHasFocus(false)}\n disableTooltip={false}\n />\n {label !== '' && (\n <DSPillButton\n id={pillUid}\n data-testid=\"ds-pill-clear-icon\"\n innerRef={innerRef as TypescriptHelpersT.AnyRef<HTMLButtonElement>}\n onClick={onCloseIconClick}\n // onKeyDown={onCloseIconClick} // button v2 now triggers click on key down already\n aria-label=\"Clear input\"\n type=\"right\"\n >\n <CloseXsmall size=\"s\" color={['brand-primary', '700']} />\n </DSPillButton>\n )}\n </StyledInputPillWrapper>\n );\n },\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD0CjB;AAzCN,mBAA8D;AAE9D,iBAAoB;AACpB,sBAA4B;AAC5B,oBAAuC;AACvC,0BAA6B;AAGtB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,MAAM;AACJ,UAAM,UAAM,qBAAgC,IAAI;AAEhD,UAAM,qBAAiB,sBAAQ,MAAM,aAAa,CAAC,WAAW,CAAC;AAE/D,UAAM,cAAU,sBAAQ,MAAM,WAAW,eAAW,gBAAI,CAAC,IAAI,CAAC,OAAO,CAAC;AAEtE,UAAM,uBAAmB;AAAA,MACvB,CAAC,MAA8C;AAC7C,YAAK,UAAU,KAAK,CAAC,SAAS,OAAO,EAAE,SAAS,EAAE,IAAI,KAAM,EAAE,UAAU,IAAI;AAC1E,YAAE,eAAe;AACjB,yBAAe,CAAC;AAChB,cAAI,SAAS,MAAM;AAAA,QACrB;AAAA,MACF;AAAA,MACA,CAAC,YAAY;AAAA,IACf;AAEA,UAAM,CAAC,eAAe,gBAAgB,QAAI,uBAAS,KAAK;AAExD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,WAAU;AAAA,QACV,eAAY;AAAA,QACZ,MAAM,UAAU,KAAK,CAAC,MAAM,IAAI,CAAC,QAAQ,MAAM;AAAA,QAC/C;AAAA,QACA,OAAO,SAAS;AAAA,QAChB;AAAA,QACA;AAAA,QAEA;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,IAAI;AAAA,cACJ,WAAU;AAAA,cACV,eAAY;AAAA,cACZ,UAAU,CAAC,SAAkC;AAC3C,oBAAI,UAAU;AAAA,cAChB;AAAA,cACA,OAAO;AAAA,cACP,UAAU;AAAA,cACV,aAAa;AAAA,cACb,SAAS,MAAM,iBAAiB,IAAI;AAAA,cACpC,QAAQ,MAAM,iBAAiB,KAAK;AAAA,cACpC,gBAAgB;AAAA;AAAA,UAClB;AAAA,UACC,UAAU,MACT;AAAA,YAAC;AAAA;AAAA,cACC,IAAI;AAAA,cACJ,eAAY;AAAA,cACZ;AAAA,cACA,SAAS;AAAA,cAET,cAAW;AAAA,cACX,MAAK;AAAA,cAEL,sDAAC,+BAAY,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG;AAAA;AAAA,UACzD;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -33,11 +33,14 @@ __export(LabelOnlyPill_exports, {
33
33
  module.exports = __toCommonJS(LabelOnlyPill_exports);
34
34
  var React = __toESM(require("react"));
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
37
  var import_react = __toESM(require("react"));
37
38
  var import_TextComponent = require("../TextComponent.js");
38
39
  var import_styled = require("../styled.js");
39
- const LabelOnlyPill = import_react.default.memo(
40
- ({ label, size, labelTruncated, iconLeft, IconLeft, ariaLabel, applyAriaDisabled, readOnly, trailingComma }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
40
+ const LabelOnlyPill = import_react.default.memo((props) => {
41
+ const { label, size, labelTruncated, iconLeft, IconLeft, ariaLabel, applyAriaDisabled, readOnly, trailingComma } = props;
42
+ const ownerProps = (0, import_ds_props_helpers.useOwnerProps)(props);
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
41
44
  import_styled.StyledLabelOnlyPillWrapper,
42
45
  {
43
46
  pillSize: size,
@@ -52,11 +55,12 @@ const LabelOnlyPill = import_react.default.memo(
52
55
  "aria-label": label,
53
56
  applyAriaDisabled,
54
57
  readOnly,
58
+ ...ownerProps,
55
59
  children: [
56
60
  IconLeft ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconLeft, { label }) : iconLeft,
57
61
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TextComponent.TextComponent, { labelTruncated, label: `${label}${trailingComma ? "," : ""}` })
58
62
  ]
59
63
  }
60
- )
61
- );
64
+ );
65
+ });
62
66
  //# sourceMappingURL=LabelOnlyPill.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/types/LabelOnlyPill.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\nimport { TextComponent } from '../TextComponent.js';\nimport { StyledLabelOnlyPillWrapper } from '../styled.js';\n\nexport const LabelOnlyPill = React.memo<DSPillT.InternalProps>(\n ({ label, size, labelTruncated, iconLeft, IconLeft, ariaLabel, applyAriaDisabled, readOnly, trailingComma }) => (\n <StyledLabelOnlyPillWrapper\n pillSize={size}\n alignItems=\"center\"\n className=\"ds-pill-wrapper ds-pill-wrapper-label\"\n data-testid=\"ds-pill-wrapper\"\n data-label={ariaLabel || label}\n cols={[(iconLeft || IconLeft) && 'min-content', 'auto'].filter((notFalse) => notFalse) as string[]}\n gutter=\"xxxs\"\n hasIcon={(iconLeft || IconLeft) !== null}\n role=\"group\"\n aria-label={label}\n applyAriaDisabled={applyAriaDisabled}\n readOnly={readOnly}\n >\n {IconLeft ? <IconLeft label={label} /> : iconLeft}\n <TextComponent labelTruncated={labelTruncated} label={`${label}${trailingComma ? ',' : ''}`} />\n </StyledLabelOnlyPillWrapper>\n ),\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQnB;AAPJ,mBAAkB;AAElB,2BAA8B;AAC9B,oBAA2C;AAEpC,MAAM,gBAAgB,aAAAA,QAAM;AAAA,EACjC,CAAC,EAAE,OAAO,MAAM,gBAAgB,UAAU,UAAU,WAAW,mBAAmB,UAAU,cAAc,MACxG;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,cAAY,aAAa;AAAA,MACzB,MAAM,EAAE,YAAY,aAAa,eAAe,MAAM,EAAE,OAAO,CAAC,aAAa,QAAQ;AAAA,MACrF,QAAO;AAAA,MACP,UAAU,YAAY,cAAc;AAAA,MACpC,MAAK;AAAA,MACL,cAAY;AAAA,MACZ;AAAA,MACA;AAAA,MAEC;AAAA,mBAAW,4CAAC,YAAS,OAAc,IAAK;AAAA,QACzC,4CAAC,sCAAc,gBAAgC,OAAO,GAAG,KAAK,GAAG,gBAAgB,MAAM,EAAE,IAAI;AAAA;AAAA;AAAA,EAC/F;AAEJ;",
4
+ "sourcesContent": ["/* eslint-disable react/prop-types */\nimport { useOwnerProps } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\nimport { TextComponent } from '../TextComponent.js';\nimport { StyledLabelOnlyPillWrapper } from '../styled.js';\n\nexport const LabelOnlyPill = React.memo<DSPillT.InternalProps>((props) => {\n const { label, size, labelTruncated, iconLeft, IconLeft, ariaLabel, applyAriaDisabled, readOnly, trailingComma } =\n props;\n const ownerProps = useOwnerProps(props);\n return (\n <StyledLabelOnlyPillWrapper\n pillSize={size}\n alignItems=\"center\"\n className=\"ds-pill-wrapper ds-pill-wrapper-label\"\n data-testid=\"ds-pill-wrapper\"\n data-label={ariaLabel || label}\n cols={[(iconLeft || IconLeft) && 'min-content', 'auto'].filter((notFalse) => notFalse) as string[]}\n gutter=\"xxxs\"\n hasIcon={(iconLeft || IconLeft) !== null}\n role=\"group\"\n aria-label={label}\n applyAriaDisabled={applyAriaDisabled}\n readOnly={readOnly}\n {...ownerProps}\n >\n {IconLeft ? <IconLeft label={label} /> : iconLeft}\n <TextComponent labelTruncated={labelTruncated} label={`${label}${trailingComma ? ',' : ''}`} />\n </StyledLabelOnlyPillWrapper>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYnB;AAXJ,8BAA8B;AAC9B,mBAAkB;AAElB,2BAA8B;AAC9B,oBAA2C;AAEpC,MAAM,gBAAgB,aAAAA,QAAM,KAA4B,CAAC,UAAU;AACxE,QAAM,EAAE,OAAO,MAAM,gBAAgB,UAAU,UAAU,WAAW,mBAAmB,UAAU,cAAc,IAC7G;AACF,QAAM,iBAAa,uCAAc,KAAK;AACtC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,cAAY,aAAa;AAAA,MACzB,MAAM,EAAE,YAAY,aAAa,eAAe,MAAM,EAAE,OAAO,CAAC,aAAa,QAAQ;AAAA,MACrF,QAAO;AAAA,MACP,UAAU,YAAY,cAAc;AAAA,MACpC,MAAK;AAAA,MACL,cAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,mBAAW,4CAAC,YAAS,OAAc,IAAK;AAAA,QACzC,4CAAC,sCAAc,gBAAgC,OAAO,GAAG,KAAK,GAAG,gBAAgB,MAAM,EAAE,IAAI;AAAA;AAAA;AAAA,EAC/F;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -33,11 +33,14 @@ __export(LabelPill_exports, {
33
33
  module.exports = __toCommonJS(LabelPill_exports);
34
34
  var React = __toESM(require("react"));
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
36
37
  var import_react = __toESM(require("react"));
37
38
  var import_TextComponent = require("../TextComponent.js");
38
39
  var import_styled = require("../styled.js");
39
- const LabelPill = import_react.default.memo(
40
- ({ label, size, labelTruncated, iconLeft, IconLeft, ariaLabel }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
40
+ const LabelPill = import_react.default.memo((props) => {
41
+ const { label, size, labelTruncated, iconLeft, IconLeft, ariaLabel } = props;
42
+ const ownerProps = (0, import_ds_props_helpers.useOwnerProps)(props);
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
41
44
  import_styled.StyledLabelPillWrapper,
42
45
  {
43
46
  pillSize: size,
@@ -50,11 +53,12 @@ const LabelPill = import_react.default.memo(
50
53
  hasIcon: (iconLeft || IconLeft) !== null,
51
54
  role: "group",
52
55
  "aria-label": label,
56
+ ...ownerProps,
53
57
  children: [
54
58
  IconLeft ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconLeft, { label }) : iconLeft,
55
59
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TextComponent.TextComponent, { labelTruncated, label })
56
60
  ]
57
61
  }
58
- )
59
- );
62
+ );
63
+ });
60
64
  //# sourceMappingURL=LabelPill.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/types/LabelPill.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\nimport { TextComponent } from '../TextComponent.js';\nimport { StyledLabelPillWrapper } from '../styled.js';\n\nexport const LabelPill = React.memo<DSPillT.InternalProps>(\n ({ label, size, labelTruncated, iconLeft, IconLeft, ariaLabel }) => (\n <StyledLabelPillWrapper\n pillSize={size}\n alignItems=\"center\"\n className=\"ds-pill-wrapper ds-pill-wrapper-label\"\n data-testid=\"ds-pill-wrapper\"\n data-label={ariaLabel || label}\n cols={[(iconLeft || IconLeft) && 'min-content', 'auto'].filter((notFalse) => notFalse) as string[]}\n gutter=\"xxxs\"\n hasIcon={(iconLeft || IconLeft) !== null}\n role=\"group\"\n aria-label={label}\n >\n {IconLeft ? <IconLeft label={label} /> : iconLeft}\n <TextComponent labelTruncated={labelTruncated} label={label} />\n </StyledLabelPillWrapper>\n ),\n);\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQnB;AAPJ,mBAAkB;AAElB,2BAA8B;AAC9B,oBAAuC;AAEhC,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,CAAC,EAAE,OAAO,MAAM,gBAAgB,UAAU,UAAU,UAAU,MAC5D;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,cAAY,aAAa;AAAA,MACzB,MAAM,EAAE,YAAY,aAAa,eAAe,MAAM,EAAE,OAAO,CAAC,aAAa,QAAQ;AAAA,MACrF,QAAO;AAAA,MACP,UAAU,YAAY,cAAc;AAAA,MACpC,MAAK;AAAA,MACL,cAAY;AAAA,MAEX;AAAA,mBAAW,4CAAC,YAAS,OAAc,IAAK;AAAA,QACzC,4CAAC,sCAAc,gBAAgC,OAAc;AAAA;AAAA;AAAA,EAC/D;AAEJ;",
4
+ "sourcesContent": ["/* eslint-disable react/prop-types */\nimport { useOwnerProps } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport type { DSPillT } from '../../react-desc-prop-types.js';\nimport { TextComponent } from '../TextComponent.js';\nimport { StyledLabelPillWrapper } from '../styled.js';\n\nexport const LabelPill = React.memo<DSPillT.InternalProps>((props) => {\n const { label, size, labelTruncated, iconLeft, IconLeft, ariaLabel } = props;\n const ownerProps = useOwnerProps(props);\n return (\n <StyledLabelPillWrapper\n pillSize={size}\n alignItems=\"center\"\n className=\"ds-pill-wrapper ds-pill-wrapper-label\"\n data-testid=\"ds-pill-wrapper\"\n data-label={ariaLabel || label}\n cols={[(iconLeft || IconLeft) && 'min-content', 'auto'].filter((notFalse) => notFalse) as string[]}\n gutter=\"xxxs\"\n hasIcon={(iconLeft || IconLeft) !== null}\n role=\"group\"\n aria-label={label}\n {...ownerProps}\n >\n {IconLeft ? <IconLeft label={label} /> : iconLeft}\n <TextComponent labelTruncated={labelTruncated} label={label} />\n </StyledLabelPillWrapper>\n );\n});\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADWnB;AAVJ,8BAA8B;AAC9B,mBAAkB;AAElB,2BAA8B;AAC9B,oBAAuC;AAEhC,MAAM,YAAY,aAAAA,QAAM,KAA4B,CAAC,UAAU;AACpE,QAAM,EAAE,OAAO,MAAM,gBAAgB,UAAU,UAAU,UAAU,IAAI;AACvE,QAAM,iBAAa,uCAAc,KAAK;AACtC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,cAAY,aAAa;AAAA,MACzB,MAAM,EAAE,YAAY,aAAa,eAAe,MAAM,EAAE,OAAO,CAAC,aAAa,QAAQ;AAAA,MACrF,QAAO;AAAA,MACP,UAAU,YAAY,cAAc;AAAA,MACpC,MAAK;AAAA,MACL,cAAY;AAAA,MACX,GAAG;AAAA,MAEH;AAAA,mBAAW,4CAAC,YAAS,OAAc,IAAK;AAAA,QACzC,4CAAC,sCAAc,gBAAgC,OAAc;AAAA;AAAA;AAAA,EAC/D;AAEJ,CAAC;",
6
6
  "names": ["React"]
7
7
  }
@@ -34,68 +34,71 @@ module.exports = __toCommonJS(MenuButtonPill_exports);
34
34
  var React = __toESM(require("react"));
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_ds_icons = require("@elliemae/ds-icons");
37
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
38
  var import_react = __toESM(require("react"));
38
39
  var import_uid = require("uid");
39
- var import_react_desc_prop_types = require("../../react-desc-prop-types.js");
40
+ var import_react_desc_prop_types = require("../../parts/DSPillButton/react-desc-prop-types.js");
40
41
  var import_TextComponent = require("../TextComponent.js");
41
42
  var import_styled = require("../styled.js");
42
43
  const rowsForDsButtonV3 = (size) => size === "m" ? { small: ["1.5rem"], medium: ["1.846rem"] } : { small: ["1.125rem"], medium: ["1.3846rem"] };
43
44
  const colsForDsButtonV3 = (size) => size === "m" ? { small: ["auto", "minmax(1.5rem, auto)"], medium: ["auto", "minmax(1.846rem, auto)"] } : { small: ["auto", "minmax(1.125rem, auto)"], medium: ["auto", "minmax(1.3846rem, auto)"] };
44
- const MenuButtonPill = import_react.default.memo(
45
- ({ label, size, labelTruncated, innerRef, ariaLabel, menuButtonProps }) => {
46
- const pillUid = (0, import_react.useMemo)(() => `ds-pill-${(0, import_uid.uid)()}`, []);
47
- if (!menuButtonProps) {
48
- console.log("menuButtonProps", menuButtonProps);
49
- throw new Error("menuButtonProps was not provided");
50
- }
51
- if (Object.keys(menuButtonProps).length === 0) {
52
- console.log("menuButtonProps", menuButtonProps);
53
- throw new Error("menuButtonProps is empty");
54
- }
55
- const { width = import_react_desc_prop_types.DSPillButtonDefaultProps.width, height = import_react_desc_prop_types.DSPillButtonDefaultProps.height } = menuButtonProps;
56
- const memoizedRows = (0, import_react.useMemo)(() => rowsForDsButtonV3(size), [size]);
57
- const memoizedCols = (0, import_react.useMemo)(() => colsForDsButtonV3(size), [size]);
58
- const dsMenubuttonRootProps = (0, import_react.useMemo)(
59
- () => ({
60
- width: `${width}`,
61
- height: `${height}`
62
- }),
63
- [height, width]
64
- );
65
- const finalAriaLabel = ariaLabel || label;
66
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
67
- import_styled.StyledDropdownPillWrapper,
68
- {
69
- pillSize: size,
70
- id: pillUid,
71
- className: "ds-pill-wrapper ds-pill-wrapper-dropdown",
72
- "data-testid": "ds-pill-wrapper",
73
- cols: memoizedCols,
74
- rows: memoizedRows,
75
- gutter: "2px",
76
- alignItems: "center",
77
- justifyItems: "center",
78
- children: [
79
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TextComponent.TextComponent, { labelTruncated, label }),
80
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
81
- import_styled.StyledPillMenuButton,
82
- {
83
- innerRef,
84
- "aria-label": finalAriaLabel,
85
- dsMenubuttonRoot: dsMenubuttonRootProps,
86
- ...menuButtonProps,
87
- "data-testid": "ds-pill-menu-button-chevron",
88
- buttonType: "raw",
89
- className: "ds-pill-button-right ds-pill-focus-point",
90
- type: "button",
91
- width: `${width}`,
92
- height: `${height}`,
93
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronSmallDown, { color: ["brand-primary", "800"] })
94
- }
95
- )
96
- ]
97
- }
98
- );
45
+ const MenuButtonPill = import_react.default.memo((props) => {
46
+ const { label, size, labelTruncated, innerRef, ariaLabel, menuButtonProps } = props;
47
+ const ownerProps = (0, import_ds_props_helpers.useOwnerProps)(props);
48
+ const pillUid = (0, import_react.useMemo)(() => `ds-pill-${(0, import_uid.uid)()}`, []);
49
+ if (!menuButtonProps) {
50
+ console.log("menuButtonProps", menuButtonProps);
51
+ throw new Error("menuButtonProps was not provided");
52
+ }
53
+ if (Object.keys(menuButtonProps).length === 0) {
54
+ console.log("menuButtonProps", menuButtonProps);
55
+ throw new Error("menuButtonProps is empty");
99
56
  }
100
- );
57
+ const { width = import_react_desc_prop_types.defaultProps.width, height = import_react_desc_prop_types.defaultProps.height } = menuButtonProps;
58
+ const memoizedRows = (0, import_react.useMemo)(() => rowsForDsButtonV3(size), [size]);
59
+ const memoizedCols = (0, import_react.useMemo)(() => colsForDsButtonV3(size), [size]);
60
+ const dsMenubuttonRootProps = (0, import_react.useMemo)(
61
+ () => ({
62
+ width: `${width}`,
63
+ height: `${height}`
64
+ }),
65
+ [height, width]
66
+ );
67
+ const finalAriaLabel = ariaLabel || label;
68
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
69
+ import_styled.StyledDropdownPillWrapper,
70
+ {
71
+ pillSize: size,
72
+ id: pillUid,
73
+ className: "ds-pill-wrapper ds-pill-wrapper-dropdown",
74
+ "data-testid": "ds-pill-wrapper",
75
+ cols: memoizedCols,
76
+ rows: memoizedRows,
77
+ gutter: "2px",
78
+ alignItems: "center",
79
+ justifyItems: "center",
80
+ ...ownerProps,
81
+ children: [
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TextComponent.TextComponent, { labelTruncated, label }),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
+ import_styled.StyledPillMenuButton,
85
+ {
86
+ innerRef,
87
+ "aria-label": finalAriaLabel,
88
+ dsMenubuttonRoot: dsMenubuttonRootProps,
89
+ ...menuButtonProps,
90
+ "data-testid": "ds-pill-menu-button-chevron",
91
+ buttonType: "raw",
92
+ className: "ds-pill-button-right ds-pill-focus-point",
93
+ type: "button",
94
+ width: `${width}`,
95
+ height: `${height}`,
96
+ ...ownerProps,
97
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronSmallDown, { color: ["brand-primary", "800"] })
98
+ }
99
+ )
100
+ ]
101
+ }
102
+ );
103
+ });
101
104
  //# sourceMappingURL=MenuButtonPill.js.map