@elliemae/ds-form 2.3.0-alpha.8 → 2.3.0-alpha.9

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 (261) hide show
  1. package/dist/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +4 -4
  2. package/dist/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +2 -2
  3. package/dist/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +1 -1
  4. package/dist/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js.map +1 -1
  5. package/dist/types/Checkbox/DSCheckbox.d.ts +102 -0
  6. package/dist/types/Checkbox/defaultProps.d.ts +11 -0
  7. package/dist/types/Checkbox/elements/CheckMark.d.ts +2 -0
  8. package/dist/types/Checkbox/index.d.ts +1 -0
  9. package/dist/types/Checkbox/props.d.ts +60 -0
  10. package/dist/types/Checkbox/tests/DSCheckbox.events.test.d.ts +1 -0
  11. package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +72 -0
  12. package/dist/types/CheckboxGroup/defaultProps.d.ts +14 -0
  13. package/dist/types/CheckboxGroup/index.d.ts +1 -0
  14. package/dist/types/CheckboxGroup/props.d.ts +57 -0
  15. package/dist/types/CheckboxGroup/tests/DSCheckboxGroup.events.test.d.ts +1 -0
  16. package/dist/types/ComboBox/DSComboBox.d.ts +3 -0
  17. package/dist/types/ComboBox/index.d.ts +2 -0
  18. package/dist/types/ComboBox/v1/DSComboBox.d.ts +67 -0
  19. package/dist/types/ComboBox/v1/components/AllOption.d.ts +6 -0
  20. package/dist/types/ComboBox/v1/components/ClearIndicator.d.ts +4 -0
  21. package/dist/types/ComboBox/v1/components/Control.d.ts +4 -0
  22. package/dist/types/ComboBox/v1/components/CustomOption.d.ts +9 -0
  23. package/dist/types/ComboBox/v1/components/CustomOptionMulti.d.ts +9 -0
  24. package/dist/types/ComboBox/v1/components/DropdownIndicator.d.ts +21 -0
  25. package/dist/types/ComboBox/v1/components/MenuList.d.ts +4 -0
  26. package/dist/types/ComboBox/v1/components/MultiSelectHeader.d.ts +4 -0
  27. package/dist/types/ComboBox/v1/components/MultiValueLabel.d.ts +6 -0
  28. package/dist/types/ComboBox/v1/components/MultiValueRemove.d.ts +4 -0
  29. package/dist/types/ComboBox/v1/components/SelectMenu.d.ts +4 -0
  30. package/dist/types/ComboBox/v1/components/SingleValueLabel.d.ts +12 -0
  31. package/dist/types/ComboBox/v1/components/ValueContainer.d.ts +6 -0
  32. package/dist/types/ComboBox/v1/components/calculateWidth.d.ts +1 -0
  33. package/dist/types/ComboBox/v1/components/getoptions.d.ts +6 -0
  34. package/dist/types/ComboBox/v1/index.d.ts +2 -0
  35. package/dist/types/ComboBox/v1/withSelectStringValueConverter.d.ts +64 -0
  36. package/dist/types/ComboBox/v2/Combobox.d.ts +70 -0
  37. package/dist/types/ComboBox/v2/components/AllOption.d.ts +6 -0
  38. package/dist/types/ComboBox/v2/components/ClearIndicator.d.ts +4 -0
  39. package/dist/types/ComboBox/v2/components/Content.d.ts +15 -0
  40. package/dist/types/ComboBox/v2/components/Control.d.ts +4 -0
  41. package/dist/types/ComboBox/v2/components/CustomOption.d.ts +9 -0
  42. package/dist/types/ComboBox/v2/components/CustomOptionMulti.d.ts +9 -0
  43. package/dist/types/ComboBox/v2/components/DropdownIndicator.d.ts +24 -0
  44. package/dist/types/ComboBox/v2/components/GroupHeading.d.ts +4 -0
  45. package/dist/types/ComboBox/v2/components/IndicatorSeparator.d.ts +5 -0
  46. package/dist/types/ComboBox/v2/components/LoadingIndicator.d.ts +4 -0
  47. package/dist/types/ComboBox/v2/components/MenuList.d.ts +4 -0
  48. package/dist/types/ComboBox/v2/components/MultiSelectHeader.d.ts +10 -0
  49. package/dist/types/ComboBox/v2/components/MultiValueLabel.d.ts +6 -0
  50. package/dist/types/ComboBox/v2/components/MultiValueRemove.d.ts +7 -0
  51. package/dist/types/ComboBox/v2/components/SelectMenu.d.ts +4 -0
  52. package/dist/types/ComboBox/v2/components/SingleValueLabel.d.ts +12 -0
  53. package/dist/types/ComboBox/v2/components/ValueContainer.d.ts +6 -0
  54. package/dist/types/ComboBox/v2/components/calculateWidth.d.ts +1 -0
  55. package/dist/types/ComboBox/v2/components/getoptions.d.ts +6 -0
  56. package/dist/types/ComboBox/v2/components/tests/ClearIndicator.test.d.ts +1 -0
  57. package/dist/types/ComboBox/v2/components/useMenuListHeight.d.ts +1 -0
  58. package/dist/types/ComboBox/v2/components/utils.d.ts +1 -0
  59. package/dist/types/ComboBox/v2/context.d.ts +2 -0
  60. package/dist/types/ComboBox/v2/index.d.ts +2 -0
  61. package/dist/types/ComboBox/v2/mockOptions.d.ts +5 -0
  62. package/dist/types/ComboBox/v2/tests/Combobox.test.d.ts +1 -0
  63. package/dist/types/ComboBox/v3/ComboBox.d.ts +62 -0
  64. package/dist/types/ComboBox/v3/ComboBoxCTX.d.ts +6 -0
  65. package/dist/types/ComboBox/v3/ComboboxDataTestids.d.ts +11 -0
  66. package/dist/types/ComboBox/v3/config/constants.d.ts +8 -0
  67. package/dist/types/ComboBox/v3/config/useComboBox.d.ts +2 -0
  68. package/dist/types/ComboBox/v3/config/useGetPropsWithDefault.d.ts +2 -0
  69. package/dist/types/ComboBox/v3/index.d.ts +1 -0
  70. package/dist/types/ComboBox/v3/parts/a11y-messages/MultiAllyMessages.d.ts +3 -0
  71. package/dist/types/ComboBox/v3/parts/a11y-messages/SingleAllyMessages.d.ts +3 -0
  72. package/dist/types/ComboBox/v3/parts/a11y-messages/index.d.ts +2 -0
  73. package/dist/types/ComboBox/v3/parts/a11y-messages/styled.d.ts +1 -0
  74. package/dist/types/ComboBox/v3/parts/container/Container.d.ts +3 -0
  75. package/dist/types/ComboBox/v3/parts/container/index.d.ts +1 -0
  76. package/dist/types/ComboBox/v3/parts/container/styled.d.ts +3 -0
  77. package/dist/types/ComboBox/v3/parts/controls/Controls.d.ts +3 -0
  78. package/dist/types/ComboBox/v3/parts/controls/index.d.ts +1 -0
  79. package/dist/types/ComboBox/v3/parts/controls/styled.d.ts +7 -0
  80. package/dist/types/ComboBox/v3/parts/controls-input/ControlsInput.d.ts +3 -0
  81. package/dist/types/ComboBox/v3/parts/controls-input/styled.d.ts +4 -0
  82. package/dist/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +12 -0
  83. package/dist/types/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.d.ts +3 -0
  84. package/dist/types/ComboBox/v3/parts/dropdown-indicator/index.d.ts +0 -0
  85. package/dist/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -0
  86. package/dist/types/ComboBox/v3/parts/empty-state/index.d.ts +3 -0
  87. package/dist/types/ComboBox/v3/parts/empty-state/styled.d.ts +2 -0
  88. package/dist/types/ComboBox/v3/parts/header-list/HeaderList.d.ts +3 -0
  89. package/dist/types/ComboBox/v3/parts/header-list/index.d.ts +1 -0
  90. package/dist/types/ComboBox/v3/parts/header-list/styled.d.ts +7 -0
  91. package/dist/types/ComboBox/v3/parts/header-list/useHeaderListHandlers.d.ts +12 -0
  92. package/dist/types/ComboBox/v3/parts/menu-list/MenuList.d.ts +3 -0
  93. package/dist/types/ComboBox/v3/parts/menu-list/index.d.ts +1 -0
  94. package/dist/types/ComboBox/v3/parts/menu-list/styled.d.ts +10 -0
  95. package/dist/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +2 -0
  96. package/dist/types/ComboBox/v3/parts/menu-list/useMenuList.d.ts +2 -0
  97. package/dist/types/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.d.ts +3 -0
  98. package/dist/types/ComboBox/v3/parts/multi-selected-values-container/index.d.ts +1 -0
  99. package/dist/types/ComboBox/v3/parts/multi-selected-values-container/styled.d.ts +3 -0
  100. package/dist/types/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.d.ts +2 -0
  101. package/dist/types/ComboBox/v3/parts/single-selected-value-container/SingleSelectedValueContainer.d.ts +3 -0
  102. package/dist/types/ComboBox/v3/parts/single-selected-value-container/index.d.ts +1 -0
  103. package/dist/types/ComboBox/v3/parts/single-selected-value-container/styled.d.ts +1 -0
  104. package/dist/types/ComboBox/v3/propTypes.d.ts +51 -0
  105. package/dist/types/ComboBox/v3/tests/combobox-general.test.d.ts +1 -0
  106. package/dist/types/ComboBox/v3/tests/combobox-multi-select.test.d.ts +1 -0
  107. package/dist/types/ComboBox/v3/tests/combobox-single-select.test.d.ts +1 -0
  108. package/dist/types/ComboBox/v3/tests/combobox-special-keys.test.d.ts +1 -0
  109. package/dist/types/ComboBox/v3/tests/utils.d.ts +22 -0
  110. package/dist/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +4 -0
  111. package/dist/types/ComboBox/v3/utils/hooks/useOnElementResize.d.ts +3 -0
  112. package/dist/types/ComboBox/v3/utils/listHelper.d.ts +7 -0
  113. package/dist/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +78 -0
  114. package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +6 -0
  115. package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +6 -0
  116. package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +3 -0
  117. package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +6 -0
  118. package/dist/types/ComboBoxFreeSolo/index.d.ts +1 -0
  119. package/dist/types/DateInput/DSDateInput.d.ts +143 -0
  120. package/dist/types/DateInput/components/DateInputImpl.d.ts +41 -0
  121. package/dist/types/DateInput/components/DateInputs.d.ts +41 -0
  122. package/dist/types/DateInput/components/utils.d.ts +40 -0
  123. package/dist/types/DateInput/defaultProps.d.ts +18 -0
  124. package/dist/types/DateInput/index.d.ts +1 -0
  125. package/dist/types/DateInput/props.d.ts +173 -0
  126. package/dist/types/DateInput/tests/DSDateInput.events.test.d.ts +1 -0
  127. package/dist/types/DateInputV2/components/DSDateInput.d.ts +97 -0
  128. package/dist/types/DateInputV2/components/DateInputs.d.ts +33 -0
  129. package/dist/types/DateInputV2/components/helpers.d.ts +1 -0
  130. package/dist/types/DateInputV2/components/props.d.ts +104 -0
  131. package/dist/types/DateInputV2/components/propsTypes.d.ts +21 -0
  132. package/dist/types/DateInputV2/components/styled.d.ts +5 -0
  133. package/dist/types/DateInputV2/components/utils.d.ts +42 -0
  134. package/dist/types/DateInputV2/index.d.ts +2 -0
  135. package/dist/types/DateInputV2/tests/DateInput.test.d.ts +1 -0
  136. package/dist/types/ExpandableInput/DSExpandableInput.d.ts +16 -0
  137. package/dist/types/ExpandableInput/ExpandableInputImpl.d.ts +7 -0
  138. package/dist/types/ExpandableInput/index.d.ts +1 -0
  139. package/dist/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +193 -0
  140. package/dist/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +27 -0
  141. package/dist/types/FloatingLabelInput/getSvgPath.d.ts +10 -0
  142. package/dist/types/FloatingLabelInput/index.d.ts +1 -0
  143. package/dist/types/FormItem/DSFormItemLayout.d.ts +479 -0
  144. package/dist/types/FormItem/Error/DSError.d.ts +31 -0
  145. package/dist/types/FormItem/Feedback.d.ts +7 -0
  146. package/dist/types/FormItem/Label/DSLabel.d.ts +24 -0
  147. package/dist/types/FormItem/Suffix/Suffix.d.ts +4 -0
  148. package/dist/types/FormItem/ValidationFieldWrapper.d.ts +19 -0
  149. package/dist/types/FormItem/defaultProps.d.ts +197 -0
  150. package/dist/types/FormItem/index.d.ts +2 -0
  151. package/dist/types/FormItem/props.d.ts +270 -0
  152. package/dist/types/FormItem/tests/DSFormItem.events.test.d.ts +1 -0
  153. package/dist/types/FormItem/variants.d.ts +8 -0
  154. package/dist/types/Input/DSInput.d.ts +32 -0
  155. package/dist/types/Input/InputAddonWrapper.d.ts +15 -0
  156. package/dist/types/Input/InputImpl.d.ts +74 -0
  157. package/dist/types/Input/index.d.ts +1 -0
  158. package/dist/types/Input/tests/Input.test.d.ts +1 -0
  159. package/dist/types/InputGroup/AddonWrapper.d.ts +8 -0
  160. package/dist/types/InputGroup/DSInputGroup.d.ts +72 -0
  161. package/dist/types/InputGroup/defaultProps.d.ts +8 -0
  162. package/dist/types/InputGroup/index.d.ts +1 -0
  163. package/dist/types/InputGroup/props.d.ts +60 -0
  164. package/dist/types/InputGroup/tests/DSInputGroup.events.test.d.ts +1 -0
  165. package/dist/types/InputMask/DSInputMask.d.ts +218 -0
  166. package/dist/types/InputMask/DSInputMaskDeprecated.d.ts +18 -0
  167. package/dist/types/InputMask/InputMaskContext.d.ts +18 -0
  168. package/dist/types/InputMask/MaskPipes.d.ts +18 -0
  169. package/dist/types/InputMask/MaskTypes.d.ts +15 -0
  170. package/dist/types/InputMask/addons/AutoCorrectedDatePipe.d.ts +8 -0
  171. package/dist/types/InputMask/defaultProps.d.ts +28 -0
  172. package/dist/types/InputMask/index.d.ts +1 -0
  173. package/dist/types/InputMask/mask_types/DateInputMask.d.ts +75 -0
  174. package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +75 -0
  175. package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +81 -0
  176. package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +99 -0
  177. package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +75 -0
  178. package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +75 -0
  179. package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +75 -0
  180. package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +75 -0
  181. package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +75 -0
  182. package/dist/types/InputMask/mask_types/index.d.ts +42 -0
  183. package/dist/types/InputMask/props.d.ts +254 -0
  184. package/dist/types/InputMask/tests/DSInputMask.test.d.ts +1 -0
  185. package/dist/types/InputMask/tests/NumberInputMask.test.d.ts +1 -0
  186. package/dist/types/InputMask/tests/events/DateInputMask.events.test.d.ts +1 -0
  187. package/dist/types/InputMask/tests/events/DateTimeInputMask.events.test.d.ts +1 -0
  188. package/dist/types/InputMask/tests/events/NumberInputMask.events.test.d.ts +1 -0
  189. package/dist/types/InputMask/tests/events/PercentInputMask.events.test.d.ts +1 -0
  190. package/dist/types/InputMask/tests/events/PhoneInputMask.events.test.d.ts +1 -0
  191. package/dist/types/InputMask/tests/events/PhoneInternationalInputMask.events.test.d.ts +1 -0
  192. package/dist/types/InputMask/tests/events/SsnInputMask.events.test.d.ts +1 -0
  193. package/dist/types/InputMask/tests/events/UsZipCodeInputMask.events.test.d.ts +1 -0
  194. package/dist/types/InputMask/tests/events/ZipCodeSearchInputMask.events.test.d.ts +1 -0
  195. package/dist/types/InputMask/types/index.d.ts +5 -0
  196. package/dist/types/InputMask/utils/setCaretPosition.d.ts +3 -0
  197. package/dist/types/InputProtected/DSInputProtected.d.ts +70 -0
  198. package/dist/types/InputProtected/defaultProps.d.ts +4 -0
  199. package/dist/types/InputProtected/index.d.ts +2 -0
  200. package/dist/types/InputProtected/options.d.ts +8 -0
  201. package/dist/types/InputProtected/props.d.ts +49 -0
  202. package/dist/types/InputProtected/tests/DSInputProtected.events.test.d.ts +1 -0
  203. package/dist/types/InputProtected/tests/DSInputProtected.test.d.ts +1 -0
  204. package/dist/types/LargeInputText/DSLargeInputText.d.ts +233 -0
  205. package/dist/types/LargeInputText/defaultProps.d.ts +31 -0
  206. package/dist/types/LargeInputText/index.d.ts +1 -0
  207. package/dist/types/LargeInputText/props.d.ts +231 -0
  208. package/dist/types/LargeInputText/tests/DSLargeInputText.events.test.d.ts +1 -0
  209. package/dist/types/LargeInputText/tests/DSLargeInputText.test.d.ts +1 -0
  210. package/dist/types/MenuItem/components/MenuItem/index.d.ts +20 -0
  211. package/dist/types/MenuItem/components/MenuItem/styled.d.ts +1 -0
  212. package/dist/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +21 -0
  213. package/dist/types/MenuItem/components/MultiMenuItem/styled.d.ts +1 -0
  214. package/dist/types/MenuItem/components/Section/index.d.ts +12 -0
  215. package/dist/types/MenuItem/components/Section/props.d.ts +14 -0
  216. package/dist/types/MenuItem/components/Section/styled.d.ts +2 -0
  217. package/dist/types/MenuItem/components/Separator/index.d.ts +8 -0
  218. package/dist/types/MenuItem/components/Separator/styled.d.ts +2 -0
  219. package/dist/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +16 -0
  220. package/dist/types/MenuItem/components/SubmenuItem/index.d.ts +20 -0
  221. package/dist/types/MenuItem/components/index.d.ts +6 -0
  222. package/dist/types/MenuItem/index.d.ts +1 -0
  223. package/dist/types/MenuItem/props.d.ts +38 -0
  224. package/dist/types/Radio/Circle.d.ts +8 -0
  225. package/dist/types/Radio/DSRadio.d.ts +157 -0
  226. package/dist/types/Radio/index.d.ts +1 -0
  227. package/dist/types/RadioGroup/DSRadioGroup.d.ts +72 -0
  228. package/dist/types/RadioGroup/defaultProps.d.ts +12 -0
  229. package/dist/types/RadioGroup/index.d.ts +1 -0
  230. package/dist/types/RadioGroup/props.d.ts +56 -0
  231. package/dist/types/RadioGroup/tests/DSRadioGroup.events.test.d.ts +1 -0
  232. package/dist/types/RequiredMark/RequiredMark.d.ts +7 -0
  233. package/dist/types/RequiredMark/index.d.ts +1 -0
  234. package/dist/types/SearchBox/DSSearchBox.d.ts +176 -0
  235. package/dist/types/SearchBox/NavSearchBox.d.ts +53 -0
  236. package/dist/types/SearchBox/SButton.d.ts +30 -0
  237. package/dist/types/SearchBox/SearchBoxToggle.d.ts +13 -0
  238. package/dist/types/SearchBox/defaultProps.d.ts +26 -0
  239. package/dist/types/SearchBox/index.d.ts +3 -0
  240. package/dist/types/SearchBox/props.d.ts +173 -0
  241. package/dist/types/SearchBox/styled.d.ts +1 -0
  242. package/dist/types/SearchBox/tests/DSNavSearchBox.events.test.d.ts +1 -0
  243. package/dist/types/SearchBox/tests/DSSearchBox.events.test.d.ts +1 -0
  244. package/dist/types/SearchBox/tests/DSSearchBox.test.d.ts +1 -0
  245. package/dist/types/SearchBox/useSearch.d.ts +9 -0
  246. package/dist/types/TextBox/DSTextBox.d.ts +207 -0
  247. package/dist/types/TextBox/index.d.ts +1 -0
  248. package/dist/types/TextBox/tests/DSTextBox.test.d.ts +1 -0
  249. package/dist/types/TimeInput/DSTimeInput.d.ts +122 -0
  250. package/dist/types/TimeInput/TimeInputImpl.d.ts +56 -0
  251. package/dist/types/TimeInput/TimeInputs.d.ts +18 -0
  252. package/dist/types/TimeInput/index.d.ts +1 -0
  253. package/dist/types/TimeInput/utils.d.ts +39 -0
  254. package/dist/types/Toggle/DSToggle.d.ts +134 -0
  255. package/dist/types/Toggle/DSToggleImpl.d.ts +57 -0
  256. package/dist/types/Toggle/DSToggleRender.d.ts +33 -0
  257. package/dist/types/Toggle/index.d.ts +1 -0
  258. package/dist/types/Toggle/props.d.ts +47 -0
  259. package/dist/types/Toggle/toggleHelper.d.ts +24 -0
  260. package/dist/types/index.d.ts +22 -0
  261. package/package.json +23 -23
@@ -31,7 +31,7 @@ __export(useItemRenderer_exports, {
31
31
  });
32
32
  var React = __toESM(require("react"));
33
33
  var import_react = __toESM(require("react"));
34
- var import_ds_form = require("@elliemae/ds-form");
34
+ var import_MenuItem = require("../../../../MenuItem");
35
35
  var import_ComboBoxCTX = __toESM(require("../../ComboBoxCTX"));
36
36
  var import_listHelper = require("../../utils/listHelper");
37
37
  var import_ComboboxDataTestids = require("../../ComboboxDataTestids");
@@ -45,7 +45,7 @@ const useItemRenderer = () => {
45
45
  } = (0, import_react.useContext)(import_ComboBoxCTX.default);
46
46
  const { virtualItems } = virtualListHelpers;
47
47
  const multiple = Array.isArray(selectedValues);
48
- const CBItem = multiple ? import_ds_form.MultiMenuItem : import_ds_form.SingleMenuItem;
48
+ const CBItem = multiple ? import_MenuItem.MultiMenuItem : import_MenuItem.SingleMenuItem;
49
49
  const handleClick = (0, import_react.useCallback)((option, e) => {
50
50
  if (!multiple) {
51
51
  setShowPopover(false);
@@ -70,13 +70,13 @@ const useItemRenderer = () => {
70
70
  innerRef: vItem.measureRef
71
71
  };
72
72
  if (option.type === "section") {
73
- return /* @__PURE__ */ import_react.default.createElement(import_ds_form.Section, {
73
+ return /* @__PURE__ */ import_react.default.createElement(import_MenuItem.Section, {
74
74
  label: option.label,
75
75
  ...generalProps
76
76
  });
77
77
  }
78
78
  if (option.type === "separator") {
79
- return /* @__PURE__ */ import_react.default.createElement(import_ds_form.Separator, {
79
+ return /* @__PURE__ */ import_react.default.createElement(import_MenuItem.Separator, {
80
80
  ...generalProps
81
81
  });
82
82
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/ComboBox/v3/parts/menu-list/useItemRenderer.tsx", "../../../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react-hooks/exhaustive-deps */\nimport React, { useMemo, useContext, useCallback } from 'react';\nimport { VirtualItem } from 'react-virtual';\n\nimport { SingleMenuItem, MultiMenuItem, Section, Separator } from '@elliemae/ds-form';\nimport ComboBoxContext from '../../ComboBoxCTX';\nimport { isSelected } from '../../utils/listHelper';\nimport { ComboboxDataTestid } from '../../ComboboxDataTestids';\n\nconst useItemRenderer = (): unknown => {\n const {\n props: { options, onChange, selectedValues, onFilter },\n inputRef,\n setShowPopover,\n focusOptionIdx,\n virtualListHelpers,\n } = useContext(ComboBoxContext);\n\n const { virtualItems }: { virtualItems: VirtualItem[] } = virtualListHelpers;\n const multiple = Array.isArray(selectedValues);\n const CBItem = multiple ? MultiMenuItem : SingleMenuItem;\n\n const handleClick = useCallback(\n (option, e: Event) => {\n if (!multiple) {\n setShowPopover(false);\n if (inputRef.current) inputRef.current.value = '';\n } else if (inputRef.current) {\n onFilter(inputRef.current.value);\n }\n onChange(option);\n inputRef.current?.focus();\n e.stopPropagation();\n e.preventDefault();\n },\n [onFilter, onChange, setShowPopover, multiple, inputRef],\n );\n\n const handleOnMouseDown = useCallback((e: Event) => {\n e.preventDefault();\n }, []);\n\n const ItemRenderer = useMemo(\n () =>\n virtualItems.map((vItem) => {\n const option = options[vItem.index];\n const generalProps = {\n wrapperStyles: { position: 'absolute', top: vItem.start, left: 0, width: '100%' },\n key: `${option.dsId}`,\n innerRef: vItem.measureRef,\n };\n if (option.type === 'section') {\n return <Section label={option.label} {...generalProps} />;\n }\n if (option.type === 'separator') {\n return <Separator {...generalProps} />;\n }\n if (option.type === 'option') {\n return (\n <CBItem\n {...generalProps}\n value={option.value}\n label={option.label}\n dataTestid={ComboboxDataTestid.OPTION}\n disabled={option.disabled}\n onClick={(e: Event) => handleClick(option, e)}\n onMouseDown={handleOnMouseDown}\n isActive={option.dsId === focusOptionIdx}\n isSelected={isSelected(selectedValues, option)}\n />\n );\n }\n return <></>;\n }),\n [options, focusOptionIdx, selectedValues, inputRef, virtualItems],\n ) as unknown;\n\n return ItemRenderer;\n};\n\nexport { useItemRenderer };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAwD;AAGxD,qBAAkE;AAClE,yBAA4B;AAC5B,wBAA2B;AAC3B,iCAAmC;AAEnC,MAAM,kBAAkB,MAAe;AACrC,QAAM;AAAA,IACJ,OAAO,EAAE,SAAS,UAAU,gBAAgB;AAAA,IAC5C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,6BAAW;AAEf,QAAM,EAAE,iBAAkD;AAC1D,QAAM,WAAW,MAAM,QAAQ;AAC/B,QAAM,SAAS,WAAW,+BAAgB;AAE1C,QAAM,cAAc,8BAClB,CAAC,QAAQ,MAAa;AACpB,QAAI,CAAC,UAAU;AACb,qBAAe;AACf,UAAI,SAAS;AAAS,iBAAS,QAAQ,QAAQ;AAAA,eACtC,SAAS,SAAS;AAC3B,eAAS,SAAS,QAAQ;AAAA;AAE5B,aAAS;AACT,aAAS,SAAS;AAClB,MAAE;AACF,MAAE;AAAA,KAEJ,CAAC,UAAU,UAAU,gBAAgB,UAAU;AAGjD,QAAM,oBAAoB,8BAAY,CAAC,MAAa;AAClD,MAAE;AAAA,KACD;AAEH,QAAM,eAAe,0BACnB,MACE,aAAa,IAAI,CAAC,UAAU;AAC1B,UAAM,SAAS,QAAQ,MAAM;AAC7B,UAAM,eAAe;AAAA,MACnB,eAAe,EAAE,UAAU,YAAY,KAAK,MAAM,OAAO,MAAM,GAAG,OAAO;AAAA,MACzE,KAAK,GAAG,OAAO;AAAA,MACf,UAAU,MAAM;AAAA;AAElB,QAAI,OAAO,SAAS,WAAW;AAC7B,aAAO,mDAAC,wBAAD;AAAA,QAAS,OAAO,OAAO;AAAA,WAAW;AAAA;AAAA;AAE3C,QAAI,OAAO,SAAS,aAAa;AAC/B,aAAO,mDAAC,0BAAD;AAAA,WAAe;AAAA;AAAA;AAExB,QAAI,OAAO,SAAS,UAAU;AAC5B,aACE,mDAAC,QAAD;AAAA,WACM;AAAA,QACJ,OAAO,OAAO;AAAA,QACd,OAAO,OAAO;AAAA,QACd,YAAY,8CAAmB;AAAA,QAC/B,UAAU,OAAO;AAAA,QACjB,SAAS,CAAC,MAAa,YAAY,QAAQ;AAAA,QAC3C,aAAa;AAAA,QACb,UAAU,OAAO,SAAS;AAAA,QAC1B,YAAY,kCAAW,gBAAgB;AAAA;AAAA;AAI7C,WAAO;AAAA,MAEX,CAAC,SAAS,gBAAgB,gBAAgB,UAAU;AAGtD,SAAO;AAAA;",
4
+ "sourcesContent": ["/* eslint-disable react-hooks/exhaustive-deps */\nimport React, { useMemo, useContext, useCallback } from 'react';\nimport { VirtualItem } from 'react-virtual';\n\nimport { SingleMenuItem, MultiMenuItem, Section, Separator } from '../../../../MenuItem';\nimport ComboBoxContext from '../../ComboBoxCTX';\nimport { isSelected } from '../../utils/listHelper';\nimport { ComboboxDataTestid } from '../../ComboboxDataTestids';\n\nconst useItemRenderer = (): unknown => {\n const {\n props: { options, onChange, selectedValues, onFilter },\n inputRef,\n setShowPopover,\n focusOptionIdx,\n virtualListHelpers,\n } = useContext(ComboBoxContext);\n\n const { virtualItems }: { virtualItems: VirtualItem[] } = virtualListHelpers;\n const multiple = Array.isArray(selectedValues);\n const CBItem = multiple ? MultiMenuItem : SingleMenuItem;\n\n const handleClick = useCallback(\n (option, e: Event) => {\n if (!multiple) {\n setShowPopover(false);\n if (inputRef.current) inputRef.current.value = '';\n } else if (inputRef.current) {\n onFilter(inputRef.current.value);\n }\n onChange(option);\n inputRef.current?.focus();\n e.stopPropagation();\n e.preventDefault();\n },\n [onFilter, onChange, setShowPopover, multiple, inputRef],\n );\n\n const handleOnMouseDown = useCallback((e: Event) => {\n e.preventDefault();\n }, []);\n\n const ItemRenderer = useMemo(\n () =>\n virtualItems.map((vItem) => {\n const option = options[vItem.index];\n const generalProps = {\n wrapperStyles: { position: 'absolute', top: vItem.start, left: 0, width: '100%' },\n key: `${option.dsId}`,\n innerRef: vItem.measureRef,\n };\n if (option.type === 'section') {\n return <Section label={option.label} {...generalProps} />;\n }\n if (option.type === 'separator') {\n return <Separator {...generalProps} />;\n }\n if (option.type === 'option') {\n return (\n <CBItem\n {...generalProps}\n value={option.value}\n label={option.label}\n dataTestid={ComboboxDataTestid.OPTION}\n disabled={option.disabled}\n onClick={(e: Event) => handleClick(option, e)}\n onMouseDown={handleOnMouseDown}\n isActive={option.dsId === focusOptionIdx}\n isSelected={isSelected(selectedValues, option)}\n />\n );\n }\n return <></>;\n }),\n [options, focusOptionIdx, selectedValues, inputRef, virtualItems],\n ) as unknown;\n\n return ItemRenderer;\n};\n\nexport { useItemRenderer };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAwD;AAGxD,sBAAkE;AAClE,yBAA4B;AAC5B,wBAA2B;AAC3B,iCAAmC;AAEnC,MAAM,kBAAkB,MAAe;AACrC,QAAM;AAAA,IACJ,OAAO,EAAE,SAAS,UAAU,gBAAgB;AAAA,IAC5C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,6BAAW;AAEf,QAAM,EAAE,iBAAkD;AAC1D,QAAM,WAAW,MAAM,QAAQ;AAC/B,QAAM,SAAS,WAAW,gCAAgB;AAE1C,QAAM,cAAc,8BAClB,CAAC,QAAQ,MAAa;AACpB,QAAI,CAAC,UAAU;AACb,qBAAe;AACf,UAAI,SAAS;AAAS,iBAAS,QAAQ,QAAQ;AAAA,eACtC,SAAS,SAAS;AAC3B,eAAS,SAAS,QAAQ;AAAA;AAE5B,aAAS;AACT,aAAS,SAAS;AAClB,MAAE;AACF,MAAE;AAAA,KAEJ,CAAC,UAAU,UAAU,gBAAgB,UAAU;AAGjD,QAAM,oBAAoB,8BAAY,CAAC,MAAa;AAClD,MAAE;AAAA,KACD;AAEH,QAAM,eAAe,0BACnB,MACE,aAAa,IAAI,CAAC,UAAU;AAC1B,UAAM,SAAS,QAAQ,MAAM;AAC7B,UAAM,eAAe;AAAA,MACnB,eAAe,EAAE,UAAU,YAAY,KAAK,MAAM,OAAO,MAAM,GAAG,OAAO;AAAA,MACzE,KAAK,GAAG,OAAO;AAAA,MACf,UAAU,MAAM;AAAA;AAElB,QAAI,OAAO,SAAS,WAAW;AAC7B,aAAO,mDAAC,yBAAD;AAAA,QAAS,OAAO,OAAO;AAAA,WAAW;AAAA;AAAA;AAE3C,QAAI,OAAO,SAAS,aAAa;AAC/B,aAAO,mDAAC,2BAAD;AAAA,WAAe;AAAA;AAAA;AAExB,QAAI,OAAO,SAAS,UAAU;AAC5B,aACE,mDAAC,QAAD;AAAA,WACM;AAAA,QACJ,OAAO,OAAO;AAAA,QACd,OAAO,OAAO;AAAA,QACd,YAAY,8CAAmB;AAAA,QAC/B,UAAU,OAAO;AAAA,QACjB,SAAS,CAAC,MAAa,YAAY,QAAQ;AAAA,QAC3C,aAAa;AAAA,QACb,UAAU,OAAO,SAAS;AAAA,QAC1B,YAAY,kCAAW,gBAAgB;AAAA;AAAA;AAI7C,WAAO;AAAA,MAEX,CAAC,SAAS,gBAAgB,gBAAgB,UAAU;AAGtD,SAAO;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React2, { useMemo, useContext, useCallback } from "react";
3
- import { SingleMenuItem, MultiMenuItem, Section, Separator } from "@elliemae/ds-form";
3
+ import { SingleMenuItem, MultiMenuItem, Section, Separator } from "../../../../MenuItem";
4
4
  import ComboBoxContext from "../../ComboBoxCTX";
5
5
  import { isSelected } from "../../utils/listHelper";
6
6
  import { ComboboxDataTestid } from "../../ComboboxDataTestids";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../../src/ComboBox/v3/parts/menu-list/useItemRenderer.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react-hooks/exhaustive-deps */\nimport React, { useMemo, useContext, useCallback } from 'react';\nimport { VirtualItem } from 'react-virtual';\n\nimport { SingleMenuItem, MultiMenuItem, Section, Separator } from '@elliemae/ds-form';\nimport ComboBoxContext from '../../ComboBoxCTX';\nimport { isSelected } from '../../utils/listHelper';\nimport { ComboboxDataTestid } from '../../ComboboxDataTestids';\n\nconst useItemRenderer = (): unknown => {\n const {\n props: { options, onChange, selectedValues, onFilter },\n inputRef,\n setShowPopover,\n focusOptionIdx,\n virtualListHelpers,\n } = useContext(ComboBoxContext);\n\n const { virtualItems }: { virtualItems: VirtualItem[] } = virtualListHelpers;\n const multiple = Array.isArray(selectedValues);\n const CBItem = multiple ? MultiMenuItem : SingleMenuItem;\n\n const handleClick = useCallback(\n (option, e: Event) => {\n if (!multiple) {\n setShowPopover(false);\n if (inputRef.current) inputRef.current.value = '';\n } else if (inputRef.current) {\n onFilter(inputRef.current.value);\n }\n onChange(option);\n inputRef.current?.focus();\n e.stopPropagation();\n e.preventDefault();\n },\n [onFilter, onChange, setShowPopover, multiple, inputRef],\n );\n\n const handleOnMouseDown = useCallback((e: Event) => {\n e.preventDefault();\n }, []);\n\n const ItemRenderer = useMemo(\n () =>\n virtualItems.map((vItem) => {\n const option = options[vItem.index];\n const generalProps = {\n wrapperStyles: { position: 'absolute', top: vItem.start, left: 0, width: '100%' },\n key: `${option.dsId}`,\n innerRef: vItem.measureRef,\n };\n if (option.type === 'section') {\n return <Section label={option.label} {...generalProps} />;\n }\n if (option.type === 'separator') {\n return <Separator {...generalProps} />;\n }\n if (option.type === 'option') {\n return (\n <CBItem\n {...generalProps}\n value={option.value}\n label={option.label}\n dataTestid={ComboboxDataTestid.OPTION}\n disabled={option.disabled}\n onClick={(e: Event) => handleClick(option, e)}\n onMouseDown={handleOnMouseDown}\n isActive={option.dsId === focusOptionIdx}\n isSelected={isSelected(selectedValues, option)}\n />\n );\n }\n return <></>;\n }),\n [options, focusOptionIdx, selectedValues, inputRef, virtualItems],\n ) as unknown;\n\n return ItemRenderer;\n};\n\nexport { useItemRenderer };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react-hooks/exhaustive-deps */\nimport React, { useMemo, useContext, useCallback } from 'react';\nimport { VirtualItem } from 'react-virtual';\n\nimport { SingleMenuItem, MultiMenuItem, Section, Separator } from '../../../../MenuItem';\nimport ComboBoxContext from '../../ComboBoxCTX';\nimport { isSelected } from '../../utils/listHelper';\nimport { ComboboxDataTestid } from '../../ComboboxDataTestids';\n\nconst useItemRenderer = (): unknown => {\n const {\n props: { options, onChange, selectedValues, onFilter },\n inputRef,\n setShowPopover,\n focusOptionIdx,\n virtualListHelpers,\n } = useContext(ComboBoxContext);\n\n const { virtualItems }: { virtualItems: VirtualItem[] } = virtualListHelpers;\n const multiple = Array.isArray(selectedValues);\n const CBItem = multiple ? MultiMenuItem : SingleMenuItem;\n\n const handleClick = useCallback(\n (option, e: Event) => {\n if (!multiple) {\n setShowPopover(false);\n if (inputRef.current) inputRef.current.value = '';\n } else if (inputRef.current) {\n onFilter(inputRef.current.value);\n }\n onChange(option);\n inputRef.current?.focus();\n e.stopPropagation();\n e.preventDefault();\n },\n [onFilter, onChange, setShowPopover, multiple, inputRef],\n );\n\n const handleOnMouseDown = useCallback((e: Event) => {\n e.preventDefault();\n }, []);\n\n const ItemRenderer = useMemo(\n () =>\n virtualItems.map((vItem) => {\n const option = options[vItem.index];\n const generalProps = {\n wrapperStyles: { position: 'absolute', top: vItem.start, left: 0, width: '100%' },\n key: `${option.dsId}`,\n innerRef: vItem.measureRef,\n };\n if (option.type === 'section') {\n return <Section label={option.label} {...generalProps} />;\n }\n if (option.type === 'separator') {\n return <Separator {...generalProps} />;\n }\n if (option.type === 'option') {\n return (\n <CBItem\n {...generalProps}\n value={option.value}\n label={option.label}\n dataTestid={ComboboxDataTestid.OPTION}\n disabled={option.disabled}\n onClick={(e: Event) => handleClick(option, e)}\n onMouseDown={handleOnMouseDown}\n isActive={option.dsId === focusOptionIdx}\n isSelected={isSelected(selectedValues, option)}\n />\n );\n }\n return <></>;\n }),\n [options, focusOptionIdx, selectedValues, inputRef, virtualItems],\n ) as unknown;\n\n return ItemRenderer;\n};\n\nexport { useItemRenderer };\n"],
5
5
  "mappings": "AAAA;ACCA;AAGA;AACA;AACA;AACA;AAEA,MAAM,kBAAkB,MAAe;AACrC,QAAM;AAAA,IACJ,OAAO,EAAE,SAAS,UAAU,gBAAgB;AAAA,IAC5C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,WAAW;AAEf,QAAM,EAAE,iBAAkD;AAC1D,QAAM,WAAW,MAAM,QAAQ;AAC/B,QAAM,SAAS,WAAW,gBAAgB;AAE1C,QAAM,cAAc,YAClB,CAAC,QAAQ,MAAa;AACpB,QAAI,CAAC,UAAU;AACb,qBAAe;AACf,UAAI,SAAS;AAAS,iBAAS,QAAQ,QAAQ;AAAA,eACtC,SAAS,SAAS;AAC3B,eAAS,SAAS,QAAQ;AAAA;AAE5B,aAAS;AACT,aAAS,SAAS;AAClB,MAAE;AACF,MAAE;AAAA,KAEJ,CAAC,UAAU,UAAU,gBAAgB,UAAU;AAGjD,QAAM,oBAAoB,YAAY,CAAC,MAAa;AAClD,MAAE;AAAA,KACD;AAEH,QAAM,eAAe,QACnB,MACE,aAAa,IAAI,CAAC,UAAU;AAC1B,UAAM,SAAS,QAAQ,MAAM;AAC7B,UAAM,eAAe;AAAA,MACnB,eAAe,EAAE,UAAU,YAAY,KAAK,MAAM,OAAO,MAAM,GAAG,OAAO;AAAA,MACzE,KAAK,GAAG,OAAO;AAAA,MACf,UAAU,MAAM;AAAA;AAElB,QAAI,OAAO,SAAS,WAAW;AAC7B,aAAO,qCAAC,SAAD;AAAA,QAAS,OAAO,OAAO;AAAA,WAAW;AAAA;AAAA;AAE3C,QAAI,OAAO,SAAS,aAAa;AAC/B,aAAO,qCAAC,WAAD;AAAA,WAAe;AAAA;AAAA;AAExB,QAAI,OAAO,SAAS,UAAU;AAC5B,aACE,qCAAC,QAAD;AAAA,WACM;AAAA,QACJ,OAAO,OAAO;AAAA,QACd,OAAO,OAAO;AAAA,QACd,YAAY,mBAAmB;AAAA,QAC/B,UAAU,OAAO;AAAA,QACjB,SAAS,CAAC,MAAa,YAAY,QAAQ;AAAA,QAC3C,aAAa;AAAA,QACb,UAAU,OAAO,SAAS;AAAA,QAC1B,YAAY,WAAW,gBAAgB;AAAA;AAAA;AAI7C,WAAO;AAAA,MAEX,CAAC,SAAS,gBAAgB,gBAAgB,UAAU;AAGtD,SAAO;AAAA;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,102 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
+ import React from 'react';
3
+ import { CHECKBOX_VARIANT } from '@elliemae/ds-shared/prop-types';
4
+ interface DSCheckboxPropsT {
5
+ [x: string]: unknown;
6
+ labelText?: string;
7
+ className?: string;
8
+ htmlFor?: string;
9
+ name?: string;
10
+ value?: string | number;
11
+ hasError?: boolean;
12
+ readOnly?: boolean;
13
+ disabled?: boolean;
14
+ checked?: boolean | 'mixed';
15
+ onChange?: () => void;
16
+ onMouseEnter?: React.MouseEventHandler<HTMLSpanElement>;
17
+ onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
18
+ variant?: typeof CHECKBOX_VARIANT;
19
+ children?: React.ReactNode | React.ReactNode[];
20
+ containerProps?: unknown;
21
+ innerRef?: unknown;
22
+ }
23
+ declare const DSCheckbox: {
24
+ ({ labelText, className, htmlFor, hasError, readOnly, disabled, checked, onChange, variant, children, containerProps, innerRef, name, ...otherProps }: DSCheckboxPropsT): JSX.Element;
25
+ propTypes: {
26
+ containerProps: {
27
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
28
+ deprecated: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ isRequired: import("react-desc").PropTypesDescValue;
31
+ };
32
+ labelText: {
33
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
34
+ deprecated: import("react-desc").PropTypesDescValidator;
35
+ };
36
+ isRequired: import("react-desc").PropTypesDescValue;
37
+ };
38
+ htmlFor: {
39
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
40
+ deprecated: import("react-desc").PropTypesDescValidator;
41
+ };
42
+ isRequired: import("react-desc").PropTypesDescValue;
43
+ };
44
+ hasError: {
45
+ deprecated: import("react-desc").PropTypesDescValidator;
46
+ };
47
+ readOnly: {
48
+ deprecated: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ disabled: {
51
+ deprecated: import("react-desc").PropTypesDescValidator;
52
+ };
53
+ checked: {
54
+ deprecated: import("react-desc").PropTypesDescValidator;
55
+ };
56
+ value: {
57
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
58
+ deprecated: import("react-desc").PropTypesDescValidator;
59
+ };
60
+ isRequired: import("react-desc").PropTypesDescValue;
61
+ };
62
+ variant: {
63
+ deprecated: import("react-desc").PropTypesDescValidator;
64
+ };
65
+ children: {
66
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
67
+ deprecated: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ isRequired: import("react-desc").PropTypesDescValue;
70
+ };
71
+ onChange: {
72
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
73
+ deprecated: import("react-desc").PropTypesDescValidator;
74
+ };
75
+ isRequired: import("react-desc").PropTypesDescValue;
76
+ };
77
+ name: {
78
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
79
+ deprecated: import("react-desc").PropTypesDescValidator;
80
+ };
81
+ isRequired: import("react-desc").PropTypesDescValue;
82
+ };
83
+ };
84
+ defaultProps: {
85
+ hasError: boolean;
86
+ readOnly: boolean;
87
+ disabled: boolean;
88
+ checked: boolean;
89
+ onChange: () => null;
90
+ variant: any;
91
+ children: null;
92
+ containerProps: {};
93
+ name: string;
94
+ };
95
+ };
96
+ declare const CheckboxWithSchema: {
97
+ (props?: unknown): JSX.Element;
98
+ propTypes: unknown;
99
+ toTypescript: () => import("react-desc").TypescriptSchema;
100
+ };
101
+ export { DSCheckbox, CHECKBOX_VARIANT, CheckboxWithSchema };
102
+ export default DSCheckbox;
@@ -0,0 +1,11 @@
1
+ export declare const defaultProps: {
2
+ hasError: boolean;
3
+ readOnly: boolean;
4
+ disabled: boolean;
5
+ checked: boolean;
6
+ onChange: () => null;
7
+ variant: any;
8
+ children: null;
9
+ containerProps: {};
10
+ name: string;
11
+ };
@@ -0,0 +1,2 @@
1
+ export declare const CheckMark: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
2
+ export default CheckMark;
@@ -0,0 +1 @@
1
+ export { DSCheckbox, CheckboxWithSchema, CHECKBOX_VARIANT } from './DSCheckbox';
@@ -0,0 +1,60 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
+ export declare const checkboxProps: {
3
+ containerProps: {
4
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
5
+ deprecated: import("react-desc").PropTypesDescValidator;
6
+ };
7
+ isRequired: import("react-desc").PropTypesDescValue;
8
+ };
9
+ labelText: {
10
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
11
+ deprecated: import("react-desc").PropTypesDescValidator;
12
+ };
13
+ isRequired: import("react-desc").PropTypesDescValue;
14
+ };
15
+ htmlFor: {
16
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ isRequired: import("react-desc").PropTypesDescValue;
20
+ };
21
+ hasError: {
22
+ deprecated: import("react-desc").PropTypesDescValidator;
23
+ };
24
+ readOnly: {
25
+ deprecated: import("react-desc").PropTypesDescValidator;
26
+ };
27
+ disabled: {
28
+ deprecated: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ checked: {
31
+ deprecated: import("react-desc").PropTypesDescValidator;
32
+ };
33
+ value: {
34
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ isRequired: import("react-desc").PropTypesDescValue;
38
+ };
39
+ variant: {
40
+ deprecated: import("react-desc").PropTypesDescValidator;
41
+ };
42
+ children: {
43
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
44
+ deprecated: import("react-desc").PropTypesDescValidator;
45
+ };
46
+ isRequired: import("react-desc").PropTypesDescValue;
47
+ };
48
+ onChange: {
49
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
50
+ deprecated: import("react-desc").PropTypesDescValidator;
51
+ };
52
+ isRequired: import("react-desc").PropTypesDescValue;
53
+ };
54
+ name: {
55
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
56
+ deprecated: import("react-desc").PropTypesDescValidator;
57
+ };
58
+ isRequired: import("react-desc").PropTypesDescValue;
59
+ };
60
+ };
@@ -0,0 +1,72 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
+ /// <reference types="react" />
3
+ declare const DSCheckboxGroup: {
4
+ ({ onChange, activeValue, children, disabled, orientation, truncateText, labelProps, containerProps, }: {
5
+ onChange: any;
6
+ activeValue: any;
7
+ children: any;
8
+ disabled: any;
9
+ orientation: any;
10
+ truncateText: any;
11
+ labelProps: any;
12
+ containerProps: any;
13
+ }): JSX.Element;
14
+ propTypes: {
15
+ onChange: {
16
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ isRequired: import("react-desc").PropTypesDescValue;
20
+ };
21
+ activeValue: {
22
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValue;
26
+ };
27
+ children: {
28
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
29
+ deprecated: import("react-desc").PropTypesDescValidator;
30
+ };
31
+ isRequired: import("react-desc").PropTypesDescValue;
32
+ };
33
+ disabled: {
34
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ isRequired: import("react-desc").PropTypesDescValue;
38
+ };
39
+ orientation: {
40
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
41
+ deprecated: import("react-desc").PropTypesDescValidator;
42
+ };
43
+ isRequired: import("react-desc").PropTypesDescValue;
44
+ };
45
+ labelProps: {
46
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
47
+ deprecated: import("react-desc").PropTypesDescValidator;
48
+ };
49
+ isRequired: import("react-desc").PropTypesDescValue;
50
+ };
51
+ };
52
+ defaultProps: {
53
+ onChange: () => null;
54
+ activeValue: never[];
55
+ children: never[];
56
+ disabled: boolean;
57
+ orientation: string;
58
+ truncateText: boolean;
59
+ labelProps: {
60
+ feedbackMessage: string;
61
+ labelText: string;
62
+ required: boolean;
63
+ };
64
+ containerProps: {};
65
+ };
66
+ };
67
+ declare const DSCheckboxGroupWithSchema: {
68
+ (props?: unknown): JSX.Element;
69
+ propTypes: unknown;
70
+ toTypescript: () => import("react-desc").TypescriptSchema;
71
+ };
72
+ export { DSCheckboxGroup, DSCheckboxGroupWithSchema };
@@ -0,0 +1,14 @@
1
+ export declare const defaultProps: {
2
+ onChange: () => null;
3
+ activeValue: never[];
4
+ children: never[];
5
+ disabled: boolean;
6
+ orientation: string;
7
+ truncateText: boolean;
8
+ labelProps: {
9
+ feedbackMessage: string;
10
+ labelText: string;
11
+ required: boolean;
12
+ };
13
+ containerProps: {};
14
+ };
@@ -0,0 +1 @@
1
+ export * from './DSCheckboxGroup';
@@ -0,0 +1,57 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
+ export declare const props: {
3
+ /**
4
+ * Allows a function that is triggered once the checkbox group changes
5
+ */
6
+ onChange: {
7
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
8
+ deprecated: import("react-desc").PropTypesDescValidator;
9
+ };
10
+ isRequired: import("react-desc").PropTypesDescValue;
11
+ };
12
+ /**
13
+ * Default active value
14
+ */
15
+ activeValue: {
16
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ isRequired: import("react-desc").PropTypesDescValue;
20
+ };
21
+ /**
22
+ * Checkbox group items to show of type DSCheckbox
23
+ */
24
+ children: {
25
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ isRequired: import("react-desc").PropTypesDescValue;
29
+ };
30
+ /**
31
+ * Whether the checkbox group is disabled or not
32
+ */
33
+ disabled: {
34
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ isRequired: import("react-desc").PropTypesDescValue;
38
+ };
39
+ /**
40
+ * ['horizontal', 'vertical']
41
+ */
42
+ orientation: {
43
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
44
+ deprecated: import("react-desc").PropTypesDescValidator;
45
+ };
46
+ isRequired: import("react-desc").PropTypesDescValue;
47
+ };
48
+ /**
49
+ * label props
50
+ */
51
+ labelProps: {
52
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
53
+ deprecated: import("react-desc").PropTypesDescValidator;
54
+ };
55
+ isRequired: import("react-desc").PropTypesDescValue;
56
+ };
57
+ };
@@ -0,0 +1,3 @@
1
+ export * from './v1/DSComboBox';
2
+ export { default } from './v2/Combobox';
3
+ export { default as DSComboBox2 } from './v2/Combobox';
@@ -0,0 +1,2 @@
1
+ export { components, COMBOBOX_VARIANT, DSComboBoxV1 } from './v1/DSComboBox';
2
+ export { DSComboBox2, DSComboBox2 as DSComboBox, ComboBoxWithSchema } from './v2';
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import { COMBOBOX_VARIANT } from '@elliemae/ds-shared/prop-types';
3
+ export { components } from 'react-select';
4
+ export { COMBOBOX_VARIANT };
5
+ declare const DSComboBoxHOC: {
6
+ new (props: {} | Readonly<{}>): {
7
+ state: {};
8
+ render(): JSX.Element;
9
+ context: any;
10
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
11
+ forceUpdate(callback?: (() => void) | undefined): void;
12
+ readonly props: Readonly<{}> & Readonly<{
13
+ children?: React.ReactNode;
14
+ }>;
15
+ refs: {
16
+ [key: string]: React.ReactInstance;
17
+ };
18
+ componentDidMount?(): void;
19
+ shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
20
+ componentWillUnmount?(): void;
21
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
22
+ getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
23
+ componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
24
+ componentWillMount?(): void;
25
+ UNSAFE_componentWillMount?(): void;
26
+ componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
27
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
28
+ componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
29
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
30
+ };
31
+ new (props: {}, context: any): {
32
+ state: {};
33
+ render(): JSX.Element;
34
+ context: any;
35
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
+ forceUpdate(callback?: (() => void) | undefined): void;
37
+ readonly props: Readonly<{}> & Readonly<{
38
+ children?: React.ReactNode;
39
+ }>;
40
+ refs: {
41
+ [key: string]: React.ReactInstance;
42
+ };
43
+ componentDidMount?(): void;
44
+ shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
45
+ componentWillUnmount?(): void;
46
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
47
+ getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
48
+ componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
49
+ componentWillMount?(): void;
50
+ UNSAFE_componentWillMount?(): void;
51
+ componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
52
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
53
+ componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
54
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
55
+ };
56
+ defaultProps: {
57
+ valueProperty: string;
58
+ labelProperty: string;
59
+ };
60
+ getDerivedStateFromProps(nextProps: any, prevState: any): {
61
+ prevPropValue: any;
62
+ value: any;
63
+ } | null;
64
+ contextType?: React.Context<any> | undefined;
65
+ };
66
+ export { DSComboBoxHOC as DSComboBoxV1 };
67
+ export default DSComboBoxHOC;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const MultiSelectHeader: ({ children, ...rest }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ }) => JSX.Element;
6
+ export default MultiSelectHeader;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const ClearIndicator: (props: any) => JSX.Element;
3
+ export { ClearIndicator };
4
+ export default ClearIndicator;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const Control: (props: any) => JSX.Element;
3
+ export { Control };
4
+ export default Control;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const CustomOption: ({ index, data, style, isScrolling }: {
3
+ index: any;
4
+ data: any;
5
+ style: any;
6
+ isScrolling: any;
7
+ }) => React.DetailedReactHTMLElement<any, HTMLElement>;
8
+ export { CustomOption };
9
+ export default CustomOption;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const CustomOptionMulti: ({ index, data, style, isScrolling }: {
3
+ index: any;
4
+ data: any;
5
+ style: any;
6
+ isScrolling: any;
7
+ }) => React.DetailedReactHTMLElement<any, HTMLElement>;
8
+ export { CustomOptionMulti };
9
+ export default CustomOptionMulti;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ declare const DropdownIndicator: ({ innerRef, onKeyDown, clearValue, getStyles, getValue, setValue, hasStyle, hasValue, isMulti, isRtl, isDisabled, isFocused, selectOption, selectProps, innerProps, ...rest }: {
3
+ [x: string]: any;
4
+ innerRef: any;
5
+ onKeyDown: any;
6
+ clearValue: any;
7
+ getStyles: any;
8
+ getValue: any;
9
+ setValue: any;
10
+ hasStyle: any;
11
+ hasValue: any;
12
+ isMulti: any;
13
+ isRtl: any;
14
+ isDisabled: any;
15
+ isFocused: any;
16
+ selectOption: any;
17
+ selectProps: any;
18
+ innerProps: any;
19
+ }) => JSX.Element;
20
+ export { DropdownIndicator };
21
+ export default DropdownIndicator;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const MenuList: (props: any) => JSX.Element;
3
+ export { MenuList };
4
+ export default MenuList;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare const MultiSelectHeader: (props: any) => JSX.Element;
3
+ export { MultiSelectHeader };
4
+ export default MultiSelectHeader;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare function MultiValueLabel({ children }: {
3
+ children: any;
4
+ }): JSX.Element;
5
+ export { MultiValueLabel };
6
+ export default MultiValueLabel;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ declare function MultiValueRemove(props: any): JSX.Element;
3
+ export { MultiValueRemove };
4
+ export default MultiValueRemove;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const SelectMenu: React.NamedExoticComponent<object>;
3
+ export { SelectMenu };
4
+ export default SelectMenu;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ declare function SingleValueLabel({ children }: {
4
+ children: any;
5
+ }): JSX.Element;
6
+ declare namespace SingleValueLabel {
7
+ var propTypes: {
8
+ children: PropTypes.Validator<string>;
9
+ };
10
+ }
11
+ export { SingleValueLabel };
12
+ export default SingleValueLabel;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare function ValueContainer({ children, ...rest }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ }): JSX.Element;
6
+ export default ValueContainer;
@@ -0,0 +1 @@
1
+ export declare function calculateWidth(options: any): number;
@@ -0,0 +1,6 @@
1
+ export declare const getOptions: ({ showAllOption, isMulti, allOption, options }: {
2
+ showAllOption: any;
3
+ isMulti: any;
4
+ allOption: any;
5
+ options: any;
6
+ }) => any;
@@ -0,0 +1,2 @@
1
+ export * from './DSComboBox';
2
+ export { default } from './DSComboBox';