@elliemae/ds-form 3.15.0 → 3.16.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js +6 -6
  2. package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js.map +2 -2
  3. package/dist/cjs/CheckboxGroup/index.js +1 -1
  4. package/dist/cjs/CheckboxGroup/index.js.map +2 -2
  5. package/dist/cjs/CheckboxGroup/props.js +13 -13
  6. package/dist/cjs/CheckboxGroup/props.js.map +2 -2
  7. package/dist/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js +5 -5
  8. package/dist/cjs/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +1 -1
  9. package/dist/cjs/ComboBoxFreeSolo/components/SingleValue.js +2 -2
  10. package/dist/cjs/ComboBoxFreeSolo/components/SingleValue.js.map +1 -1
  11. package/dist/cjs/ComboBoxFreeSolo/index.js +1 -1
  12. package/dist/cjs/ComboBoxFreeSolo/index.js.map +2 -2
  13. package/dist/cjs/DateInput/DSDateInput.js +6 -5
  14. package/dist/cjs/DateInput/DSDateInput.js.map +2 -2
  15. package/dist/cjs/DateInput/components/DateInputImpl.js +1 -1
  16. package/dist/cjs/DateInput/components/DateInputImpl.js.map +1 -1
  17. package/dist/cjs/DateInput/components/DateInputs.js +1 -1
  18. package/dist/cjs/DateInput/components/DateInputs.js.map +1 -1
  19. package/dist/cjs/DateInput/index.js +1 -1
  20. package/dist/cjs/DateInput/index.js.map +2 -2
  21. package/dist/cjs/DateInput/props.js +17 -17
  22. package/dist/cjs/DateInput/props.js.map +2 -2
  23. package/dist/cjs/DateInputV2/components/DSDateInput.js +5 -5
  24. package/dist/cjs/DateInputV2/components/DSDateInput.js.map +2 -2
  25. package/dist/cjs/DateInputV2/components/DateInputs.js +6 -4
  26. package/dist/cjs/DateInputV2/components/DateInputs.js.map +2 -2
  27. package/dist/cjs/DateInputV2/components/helpers.js +1 -1
  28. package/dist/cjs/DateInputV2/components/helpers.js.map +1 -1
  29. package/dist/cjs/DateInputV2/components/props.js +11 -11
  30. package/dist/cjs/DateInputV2/components/props.js.map +2 -2
  31. package/dist/cjs/DateInputV2/index.js +2 -2
  32. package/dist/cjs/DateInputV2/index.js.map +2 -2
  33. package/dist/cjs/ExpandableInput/DSExpandableInput.js +1 -1
  34. package/dist/cjs/ExpandableInput/DSExpandableInput.js.map +1 -1
  35. package/dist/cjs/ExpandableInput/ExpandableInputImpl.js +1 -1
  36. package/dist/cjs/ExpandableInput/ExpandableInputImpl.js.map +1 -1
  37. package/dist/cjs/ExpandableInput/index.js +1 -1
  38. package/dist/cjs/ExpandableInput/index.js.map +2 -2
  39. package/dist/cjs/FloatingLabelInput/DSFloatingLabelInput.js +3 -3
  40. package/dist/cjs/FloatingLabelInput/DSFloatingLabelInput.js.map +1 -1
  41. package/dist/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +2 -2
  42. package/dist/cjs/FloatingLabelInput/FloatingLabelInputImpl.js.map +1 -1
  43. package/dist/cjs/FloatingLabelInput/index.js +1 -1
  44. package/dist/cjs/FloatingLabelInput/index.js.map +2 -2
  45. package/dist/cjs/FormItem/DSFormItemLayout.js +10 -8
  46. package/dist/cjs/FormItem/DSFormItemLayout.js.map +2 -2
  47. package/dist/cjs/FormItem/Error/DSError.js +4 -4
  48. package/dist/cjs/FormItem/Error/DSError.js.map +2 -2
  49. package/dist/cjs/FormItem/Label/DSLabel.js +1 -1
  50. package/dist/cjs/FormItem/Label/DSLabel.js.map +1 -1
  51. package/dist/cjs/FormItem/defaultProps.js +4 -4
  52. package/dist/cjs/FormItem/defaultProps.js.map +1 -1
  53. package/dist/cjs/FormItem/index.js +2 -2
  54. package/dist/cjs/FormItem/index.js.map +1 -1
  55. package/dist/cjs/FormItem/props.js +45 -45
  56. package/dist/cjs/FormItem/props.js.map +2 -2
  57. package/dist/cjs/InputGroup/DSInputGroup.js +20 -16
  58. package/dist/cjs/InputGroup/DSInputGroup.js.map +2 -2
  59. package/dist/cjs/InputGroup/index.js +1 -1
  60. package/dist/cjs/InputGroup/index.js.map +1 -1
  61. package/dist/cjs/InputGroup/props.js +8 -8
  62. package/dist/cjs/InputGroup/props.js.map +2 -2
  63. package/dist/cjs/InputMask/DSInputMask.js +9 -7
  64. package/dist/cjs/InputMask/DSInputMask.js.map +2 -2
  65. package/dist/cjs/InputMask/DSInputMaskDeprecated.js +2 -2
  66. package/dist/cjs/InputMask/DSInputMaskDeprecated.js.map +1 -1
  67. package/dist/cjs/InputMask/InputMaskContext.js.map +1 -1
  68. package/dist/cjs/InputMask/MaskPipes.js +1 -1
  69. package/dist/cjs/InputMask/MaskPipes.js.map +1 -1
  70. package/dist/cjs/InputMask/defaultProps.js +1 -1
  71. package/dist/cjs/InputMask/defaultProps.js.map +1 -1
  72. package/dist/cjs/InputMask/index.js +1 -1
  73. package/dist/cjs/InputMask/index.js.map +2 -2
  74. package/dist/cjs/InputMask/mask_types/DateInputMask.js +2 -2
  75. package/dist/cjs/InputMask/mask_types/DateInputMask.js.map +1 -1
  76. package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js +2 -2
  77. package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
  78. package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js +2 -2
  79. package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
  80. package/dist/cjs/InputMask/mask_types/NumberInputMask.js +2 -2
  81. package/dist/cjs/InputMask/mask_types/NumberInputMask.js.map +1 -1
  82. package/dist/cjs/InputMask/mask_types/PhoneInputMask.js +2 -2
  83. package/dist/cjs/InputMask/mask_types/PhoneInputMask.js.map +2 -2
  84. package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +2 -2
  85. package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
  86. package/dist/cjs/InputMask/mask_types/SsnInputMask.js +2 -2
  87. package/dist/cjs/InputMask/mask_types/SsnInputMask.js.map +1 -1
  88. package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js +2 -2
  89. package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
  90. package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +2 -2
  91. package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
  92. package/dist/cjs/InputMask/mask_types/index.js +9 -9
  93. package/dist/cjs/InputMask/mask_types/index.js.map +1 -1
  94. package/dist/cjs/InputMask/props.js +31 -31
  95. package/dist/cjs/InputMask/props.js.map +2 -2
  96. package/dist/cjs/InputProtected/DSInputProtected.js +8 -6
  97. package/dist/cjs/InputProtected/DSInputProtected.js.map +2 -2
  98. package/dist/cjs/InputProtected/defaultProps.js +1 -1
  99. package/dist/cjs/InputProtected/defaultProps.js.map +1 -1
  100. package/dist/cjs/InputProtected/index.js +2 -2
  101. package/dist/cjs/InputProtected/index.js.map +2 -2
  102. package/dist/cjs/InputProtected/props.js +10 -10
  103. package/dist/cjs/InputProtected/props.js.map +2 -2
  104. package/dist/cjs/LargeInputText/DSLargeInputText.js +5 -3
  105. package/dist/cjs/LargeInputText/DSLargeInputText.js.map +2 -2
  106. package/dist/cjs/LargeInputText/index.js +1 -1
  107. package/dist/cjs/LargeInputText/index.js.map +1 -1
  108. package/dist/cjs/LargeInputText/props.js +28 -28
  109. package/dist/cjs/LargeInputText/props.js.map +2 -2
  110. package/dist/cjs/Radio/DSRadio.js +18 -16
  111. package/dist/cjs/Radio/DSRadio.js.map +2 -2
  112. package/dist/cjs/Radio/index.js +1 -1
  113. package/dist/cjs/Radio/index.js.map +2 -2
  114. package/dist/cjs/RadioGroup/DSRadioGroup.js +6 -6
  115. package/dist/cjs/RadioGroup/DSRadioGroup.js.map +2 -2
  116. package/dist/cjs/RadioGroup/index.js +1 -1
  117. package/dist/cjs/RadioGroup/index.js.map +2 -2
  118. package/dist/cjs/RadioGroup/props.js +11 -11
  119. package/dist/cjs/RadioGroup/props.js.map +2 -2
  120. package/dist/cjs/RequiredMark/index.js +1 -1
  121. package/dist/cjs/RequiredMark/index.js.map +2 -2
  122. package/dist/cjs/TimeInput/DSTimeInput.js +15 -15
  123. package/dist/cjs/TimeInput/DSTimeInput.js.map +2 -2
  124. package/dist/cjs/TimeInput/TimeInputImpl.js +1 -1
  125. package/dist/cjs/TimeInput/TimeInputImpl.js.map +1 -1
  126. package/dist/cjs/TimeInput/TimeInputs.js +1 -1
  127. package/dist/cjs/TimeInput/TimeInputs.js.map +1 -1
  128. package/dist/cjs/TimeInput/index.js +1 -1
  129. package/dist/cjs/TimeInput/index.js.map +2 -2
  130. package/dist/cjs/Toggle/DSToggle.js +33 -29
  131. package/dist/cjs/Toggle/DSToggle.js.map +2 -2
  132. package/dist/cjs/Toggle/DSToggleImpl.js +3 -3
  133. package/dist/cjs/Toggle/DSToggleImpl.js.map +1 -1
  134. package/dist/cjs/Toggle/index.js +1 -1
  135. package/dist/cjs/Toggle/index.js.map +1 -1
  136. package/dist/cjs/index.js +21 -21
  137. package/dist/cjs/index.js.map +2 -2
  138. package/dist/cjs/package.json +7 -0
  139. package/dist/esm/CheckboxGroup/DSCheckboxGroup.js +5 -5
  140. package/dist/esm/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
  141. package/dist/esm/CheckboxGroup/index.js +1 -1
  142. package/dist/esm/CheckboxGroup/index.js.map +1 -1
  143. package/dist/esm/CheckboxGroup/props.js +2 -2
  144. package/dist/esm/CheckboxGroup/props.js.map +1 -1
  145. package/dist/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js +5 -5
  146. package/dist/esm/ComboBoxFreeSolo/ComboBoxFreeSolo.js.map +1 -1
  147. package/dist/esm/ComboBoxFreeSolo/components/SingleValue.js +2 -2
  148. package/dist/esm/ComboBoxFreeSolo/components/SingleValue.js.map +1 -1
  149. package/dist/esm/ComboBoxFreeSolo/index.js +1 -1
  150. package/dist/esm/ComboBoxFreeSolo/index.js.map +1 -1
  151. package/dist/esm/DateInput/DSDateInput.js +6 -5
  152. package/dist/esm/DateInput/DSDateInput.js.map +2 -2
  153. package/dist/esm/DateInput/components/DateInputImpl.js +1 -1
  154. package/dist/esm/DateInput/components/DateInputImpl.js.map +1 -1
  155. package/dist/esm/DateInput/components/DateInputs.js +1 -1
  156. package/dist/esm/DateInput/components/DateInputs.js.map +1 -1
  157. package/dist/esm/DateInput/index.js +1 -1
  158. package/dist/esm/DateInput/index.js.map +1 -1
  159. package/dist/esm/DateInput/props.js +1 -1
  160. package/dist/esm/DateInput/props.js.map +1 -1
  161. package/dist/esm/DateInputV2/components/DSDateInput.js +4 -4
  162. package/dist/esm/DateInputV2/components/DSDateInput.js.map +1 -1
  163. package/dist/esm/DateInputV2/components/DateInputs.js +6 -4
  164. package/dist/esm/DateInputV2/components/DateInputs.js.map +2 -2
  165. package/dist/esm/DateInputV2/components/helpers.js +1 -1
  166. package/dist/esm/DateInputV2/components/helpers.js.map +1 -1
  167. package/dist/esm/DateInputV2/components/props.js +1 -1
  168. package/dist/esm/DateInputV2/components/props.js.map +1 -1
  169. package/dist/esm/DateInputV2/index.js +2 -2
  170. package/dist/esm/DateInputV2/index.js.map +1 -1
  171. package/dist/esm/ExpandableInput/DSExpandableInput.js +1 -1
  172. package/dist/esm/ExpandableInput/DSExpandableInput.js.map +1 -1
  173. package/dist/esm/ExpandableInput/ExpandableInputImpl.js +1 -1
  174. package/dist/esm/ExpandableInput/ExpandableInputImpl.js.map +1 -1
  175. package/dist/esm/ExpandableInput/index.js +1 -1
  176. package/dist/esm/ExpandableInput/index.js.map +1 -1
  177. package/dist/esm/FloatingLabelInput/DSFloatingLabelInput.js +3 -3
  178. package/dist/esm/FloatingLabelInput/DSFloatingLabelInput.js.map +1 -1
  179. package/dist/esm/FloatingLabelInput/FloatingLabelInputImpl.js +2 -2
  180. package/dist/esm/FloatingLabelInput/FloatingLabelInputImpl.js.map +1 -1
  181. package/dist/esm/FloatingLabelInput/index.js +1 -1
  182. package/dist/esm/FloatingLabelInput/index.js.map +1 -1
  183. package/dist/esm/FormItem/DSFormItemLayout.js +10 -8
  184. package/dist/esm/FormItem/DSFormItemLayout.js.map +2 -2
  185. package/dist/esm/FormItem/Error/DSError.js +1 -1
  186. package/dist/esm/FormItem/Error/DSError.js.map +1 -1
  187. package/dist/esm/FormItem/Label/DSLabel.js +1 -1
  188. package/dist/esm/FormItem/Label/DSLabel.js.map +1 -1
  189. package/dist/esm/FormItem/defaultProps.js +4 -4
  190. package/dist/esm/FormItem/defaultProps.js.map +1 -1
  191. package/dist/esm/FormItem/index.js +2 -2
  192. package/dist/esm/FormItem/index.js.map +1 -1
  193. package/dist/esm/FormItem/props.js +2 -2
  194. package/dist/esm/FormItem/props.js.map +1 -1
  195. package/dist/esm/InputGroup/DSInputGroup.js +20 -16
  196. package/dist/esm/InputGroup/DSInputGroup.js.map +2 -2
  197. package/dist/esm/InputGroup/index.js +1 -1
  198. package/dist/esm/InputGroup/index.js.map +1 -1
  199. package/dist/esm/InputGroup/props.js +1 -1
  200. package/dist/esm/InputGroup/props.js.map +1 -1
  201. package/dist/esm/InputMask/DSInputMask.js +9 -7
  202. package/dist/esm/InputMask/DSInputMask.js.map +2 -2
  203. package/dist/esm/InputMask/DSInputMaskDeprecated.js +2 -2
  204. package/dist/esm/InputMask/DSInputMaskDeprecated.js.map +1 -1
  205. package/dist/esm/InputMask/InputMaskContext.js.map +1 -1
  206. package/dist/esm/InputMask/MaskPipes.js +1 -1
  207. package/dist/esm/InputMask/MaskPipes.js.map +1 -1
  208. package/dist/esm/InputMask/defaultProps.js +1 -1
  209. package/dist/esm/InputMask/defaultProps.js.map +1 -1
  210. package/dist/esm/InputMask/index.js +1 -1
  211. package/dist/esm/InputMask/index.js.map +1 -1
  212. package/dist/esm/InputMask/mask_types/DateInputMask.js +2 -2
  213. package/dist/esm/InputMask/mask_types/DateInputMask.js.map +1 -1
  214. package/dist/esm/InputMask/mask_types/DateTimeInputMask.js +2 -2
  215. package/dist/esm/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
  216. package/dist/esm/InputMask/mask_types/DictionaryInputMask.js +2 -2
  217. package/dist/esm/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
  218. package/dist/esm/InputMask/mask_types/NumberInputMask.js +2 -2
  219. package/dist/esm/InputMask/mask_types/NumberInputMask.js.map +1 -1
  220. package/dist/esm/InputMask/mask_types/PhoneInputMask.js +2 -2
  221. package/dist/esm/InputMask/mask_types/PhoneInputMask.js.map +2 -2
  222. package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js +2 -2
  223. package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
  224. package/dist/esm/InputMask/mask_types/SsnInputMask.js +2 -2
  225. package/dist/esm/InputMask/mask_types/SsnInputMask.js.map +1 -1
  226. package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js +2 -2
  227. package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
  228. package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +2 -2
  229. package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
  230. package/dist/esm/InputMask/mask_types/index.js +9 -9
  231. package/dist/esm/InputMask/mask_types/index.js.map +1 -1
  232. package/dist/esm/InputMask/props.js +1 -1
  233. package/dist/esm/InputMask/props.js.map +1 -1
  234. package/dist/esm/InputProtected/DSInputProtected.js +8 -6
  235. package/dist/esm/InputProtected/DSInputProtected.js.map +2 -2
  236. package/dist/esm/InputProtected/defaultProps.js +1 -1
  237. package/dist/esm/InputProtected/defaultProps.js.map +1 -1
  238. package/dist/esm/InputProtected/index.js +2 -2
  239. package/dist/esm/InputProtected/index.js.map +1 -1
  240. package/dist/esm/InputProtected/props.js +2 -2
  241. package/dist/esm/InputProtected/props.js.map +1 -1
  242. package/dist/esm/LargeInputText/DSLargeInputText.js +5 -3
  243. package/dist/esm/LargeInputText/DSLargeInputText.js.map +2 -2
  244. package/dist/esm/LargeInputText/index.js +1 -1
  245. package/dist/esm/LargeInputText/index.js.map +1 -1
  246. package/dist/esm/LargeInputText/props.js +1 -1
  247. package/dist/esm/LargeInputText/props.js.map +1 -1
  248. package/dist/esm/Radio/DSRadio.js +4 -2
  249. package/dist/esm/Radio/DSRadio.js.map +2 -2
  250. package/dist/esm/Radio/index.js +1 -1
  251. package/dist/esm/Radio/index.js.map +1 -1
  252. package/dist/esm/RadioGroup/DSRadioGroup.js +5 -5
  253. package/dist/esm/RadioGroup/DSRadioGroup.js.map +1 -1
  254. package/dist/esm/RadioGroup/index.js +1 -1
  255. package/dist/esm/RadioGroup/index.js.map +1 -1
  256. package/dist/esm/RadioGroup/props.js +1 -1
  257. package/dist/esm/RadioGroup/props.js.map +1 -1
  258. package/dist/esm/RequiredMark/index.js +1 -1
  259. package/dist/esm/RequiredMark/index.js.map +1 -1
  260. package/dist/esm/TimeInput/DSTimeInput.js +3 -3
  261. package/dist/esm/TimeInput/DSTimeInput.js.map +1 -1
  262. package/dist/esm/TimeInput/TimeInputImpl.js +1 -1
  263. package/dist/esm/TimeInput/TimeInputImpl.js.map +1 -1
  264. package/dist/esm/TimeInput/TimeInputs.js +1 -1
  265. package/dist/esm/TimeInput/TimeInputs.js.map +1 -1
  266. package/dist/esm/TimeInput/index.js +1 -1
  267. package/dist/esm/TimeInput/index.js.map +1 -1
  268. package/dist/esm/Toggle/DSToggle.js +22 -18
  269. package/dist/esm/Toggle/DSToggle.js.map +2 -2
  270. package/dist/esm/Toggle/DSToggleImpl.js +3 -3
  271. package/dist/esm/Toggle/DSToggleImpl.js.map +1 -1
  272. package/dist/esm/Toggle/index.js +1 -1
  273. package/dist/esm/Toggle/index.js.map +1 -1
  274. package/dist/esm/index.js +21 -21
  275. package/dist/esm/index.js.map +1 -1
  276. package/dist/esm/package.json +7 -0
  277. package/package.json +16 -15
  278. package/dist/types/Checkbox/index.d.ts +0 -1
  279. package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +0 -46
  280. package/dist/types/CheckboxGroup/defaultProps.d.ts +0 -14
  281. package/dist/types/CheckboxGroup/index.d.ts +0 -1
  282. package/dist/types/CheckboxGroup/props.d.ts +0 -26
  283. package/dist/types/CheckboxGroup/tests/DSCheckboxGroup.events.test.d.ts +0 -1
  284. package/dist/types/ComboBox/index.d.ts +0 -1
  285. package/dist/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +0 -78
  286. package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +0 -5
  287. package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +0 -5
  288. package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +0 -2
  289. package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +0 -5
  290. package/dist/types/ComboBoxFreeSolo/index.d.ts +0 -1
  291. package/dist/types/DateInput/DSDateInput.d.ts +0 -62
  292. package/dist/types/DateInput/components/DateInputImpl.d.ts +0 -40
  293. package/dist/types/DateInput/components/DateInputs.d.ts +0 -40
  294. package/dist/types/DateInput/components/utils.d.ts +0 -40
  295. package/dist/types/DateInput/defaultProps.d.ts +0 -18
  296. package/dist/types/DateInput/index.d.ts +0 -1
  297. package/dist/types/DateInput/props.d.ts +0 -60
  298. package/dist/types/DateInput/tests/DSDateInput.events.test.d.ts +0 -1
  299. package/dist/types/DateInputV2/components/DSDateInput.d.ts +0 -54
  300. package/dist/types/DateInputV2/components/DateInputs.d.ts +0 -32
  301. package/dist/types/DateInputV2/components/helpers.d.ts +0 -1
  302. package/dist/types/DateInputV2/components/props.d.ts +0 -53
  303. package/dist/types/DateInputV2/components/propsTypes.d.ts +0 -21
  304. package/dist/types/DateInputV2/components/styled.d.ts +0 -5
  305. package/dist/types/DateInputV2/components/utils.d.ts +0 -42
  306. package/dist/types/DateInputV2/index.d.ts +0 -2
  307. package/dist/types/DateInputV2/tests/DateInput.test.d.ts +0 -1
  308. package/dist/types/ExpandableInput/DSExpandableInput.d.ts +0 -15
  309. package/dist/types/ExpandableInput/ExpandableInputImpl.d.ts +0 -7
  310. package/dist/types/ExpandableInput/index.d.ts +0 -1
  311. package/dist/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +0 -47
  312. package/dist/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +0 -27
  313. package/dist/types/FloatingLabelInput/getSvgPath.d.ts +0 -10
  314. package/dist/types/FloatingLabelInput/index.d.ts +0 -1
  315. package/dist/types/FormItem/DSFormItemLayout.d.ts +0 -180
  316. package/dist/types/FormItem/Error/DSError.d.ts +0 -19
  317. package/dist/types/FormItem/Feedback.d.ts +0 -6
  318. package/dist/types/FormItem/Label/DSLabel.d.ts +0 -23
  319. package/dist/types/FormItem/Suffix/Suffix.d.ts +0 -4
  320. package/dist/types/FormItem/ValidationFieldWrapper.d.ts +0 -19
  321. package/dist/types/FormItem/defaultProps.d.ts +0 -51
  322. package/dist/types/FormItem/index.d.ts +0 -2
  323. package/dist/types/FormItem/props.d.ts +0 -80
  324. package/dist/types/FormItem/tests/DSFormItem.events.test.d.ts +0 -1
  325. package/dist/types/FormItem/variants.d.ts +0 -8
  326. package/dist/types/Input/DSInput.d.ts +0 -0
  327. package/dist/types/Input/InputAddonWrapper.d.ts +0 -0
  328. package/dist/types/Input/InputImpl.d.ts +0 -0
  329. package/dist/types/Input/index.d.ts +0 -1
  330. package/dist/types/Input/tests/Input.test.d.ts +0 -0
  331. package/dist/types/InputGroup/AddonWrapper.d.ts +0 -8
  332. package/dist/types/InputGroup/DSInputGroup.d.ts +0 -40
  333. package/dist/types/InputGroup/defaultProps.d.ts +0 -8
  334. package/dist/types/InputGroup/index.d.ts +0 -1
  335. package/dist/types/InputGroup/props.d.ts +0 -24
  336. package/dist/types/InputGroup/tests/DSInputGroup.events.test.d.ts +0 -1
  337. package/dist/types/InputMask/DSInputMask.d.ts +0 -85
  338. package/dist/types/InputMask/DSInputMaskDeprecated.d.ts +0 -18
  339. package/dist/types/InputMask/InputMaskContext.d.ts +0 -18
  340. package/dist/types/InputMask/MaskPipes.d.ts +0 -18
  341. package/dist/types/InputMask/MaskTypes.d.ts +0 -15
  342. package/dist/types/InputMask/addons/AutoCorrectedDatePipe.d.ts +0 -8
  343. package/dist/types/InputMask/defaultProps.d.ts +0 -28
  344. package/dist/types/InputMask/index.d.ts +0 -1
  345. package/dist/types/InputMask/mask_types/DateInputMask.d.ts +0 -36
  346. package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +0 -36
  347. package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +0 -39
  348. package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +0 -48
  349. package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +0 -36
  350. package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +0 -36
  351. package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +0 -36
  352. package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +0 -36
  353. package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +0 -36
  354. package/dist/types/InputMask/mask_types/index.d.ts +0 -41
  355. package/dist/types/InputMask/props.d.ts +0 -112
  356. package/dist/types/InputMask/tests/DSInputMask.test.d.ts +0 -1
  357. package/dist/types/InputMask/tests/NumberInputMask.test.d.ts +0 -1
  358. package/dist/types/InputMask/tests/events/DateInputMask.events.test.d.ts +0 -1
  359. package/dist/types/InputMask/tests/events/DateTimeInputMask.events.test.d.ts +0 -1
  360. package/dist/types/InputMask/tests/events/NumberInputMask.events.test.d.ts +0 -1
  361. package/dist/types/InputMask/tests/events/PercentInputMask.events.test.d.ts +0 -1
  362. package/dist/types/InputMask/tests/events/PhoneInputMask.events.test.d.ts +0 -1
  363. package/dist/types/InputMask/tests/events/PhoneInternationalInputMask.events.test.d.ts +0 -1
  364. package/dist/types/InputMask/tests/events/SsnInputMask.events.test.d.ts +0 -1
  365. package/dist/types/InputMask/tests/events/UsZipCodeInputMask.events.test.d.ts +0 -1
  366. package/dist/types/InputMask/tests/events/ZipCodeSearchInputMask.events.test.d.ts +0 -1
  367. package/dist/types/InputMask/types/index.d.ts +0 -5
  368. package/dist/types/InputMask/utils/setCaretPosition.d.ts +0 -3
  369. package/dist/types/InputProtected/DSInputProtected.d.ts +0 -41
  370. package/dist/types/InputProtected/defaultProps.d.ts +0 -4
  371. package/dist/types/InputProtected/index.d.ts +0 -2
  372. package/dist/types/InputProtected/options.d.ts +0 -8
  373. package/dist/types/InputProtected/props.d.ts +0 -14
  374. package/dist/types/InputProtected/tests/DSInputProtected.events.test.d.ts +0 -1
  375. package/dist/types/InputProtected/tests/DSInputProtected.test.d.ts +0 -1
  376. package/dist/types/LargeInputText/DSLargeInputText.d.ts +0 -127
  377. package/dist/types/LargeInputText/defaultProps.d.ts +0 -31
  378. package/dist/types/LargeInputText/index.d.ts +0 -1
  379. package/dist/types/LargeInputText/props.d.ts +0 -95
  380. package/dist/types/LargeInputText/tests/DSLargeInputText.events.test.d.ts +0 -1
  381. package/dist/types/LargeInputText/tests/DSLargeInputText.test.d.ts +0 -1
  382. package/dist/types/MenuItem/components/MenuItem/index.d.ts +0 -0
  383. package/dist/types/MenuItem/components/MenuItem/styled.d.ts +0 -0
  384. package/dist/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +0 -0
  385. package/dist/types/MenuItem/components/MultiMenuItem/styled.d.ts +0 -0
  386. package/dist/types/MenuItem/components/Section/index.d.ts +0 -0
  387. package/dist/types/MenuItem/components/Section/props.d.ts +0 -0
  388. package/dist/types/MenuItem/components/Section/styled.d.ts +0 -0
  389. package/dist/types/MenuItem/components/Separator/index.d.ts +0 -0
  390. package/dist/types/MenuItem/components/Separator/styled.d.ts +0 -0
  391. package/dist/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +0 -0
  392. package/dist/types/MenuItem/components/SubmenuItem/index.d.ts +0 -0
  393. package/dist/types/MenuItem/components/SubmenuItem/styled.d.ts +0 -0
  394. package/dist/types/MenuItem/components/index.d.ts +0 -0
  395. package/dist/types/MenuItem/components/styled.d.ts +0 -0
  396. package/dist/types/MenuItem/index.d.ts +0 -0
  397. package/dist/types/MenuItem/props.d.ts +0 -0
  398. package/dist/types/Radio/Circle.d.ts +0 -8
  399. package/dist/types/Radio/DSRadio.d.ts +0 -87
  400. package/dist/types/Radio/index.d.ts +0 -1
  401. package/dist/types/RadioGroup/DSRadioGroup.d.ts +0 -46
  402. package/dist/types/RadioGroup/defaultProps.d.ts +0 -12
  403. package/dist/types/RadioGroup/index.d.ts +0 -1
  404. package/dist/types/RadioGroup/props.d.ts +0 -25
  405. package/dist/types/RadioGroup/tests/DSRadioGroup.events.test.d.ts +0 -1
  406. package/dist/types/RequiredMark/RequiredMark.d.ts +0 -6
  407. package/dist/types/RequiredMark/index.d.ts +0 -1
  408. package/dist/types/SearchBox/index.d.ts +0 -1
  409. package/dist/types/TextBox/index.d.ts +0 -1
  410. package/dist/types/TimeInput/DSTimeInput.d.ts +0 -71
  411. package/dist/types/TimeInput/TimeInputImpl.d.ts +0 -55
  412. package/dist/types/TimeInput/TimeInputs.d.ts +0 -17
  413. package/dist/types/TimeInput/index.d.ts +0 -1
  414. package/dist/types/TimeInput/utils.d.ts +0 -39
  415. package/dist/types/Toggle/DSToggle.d.ts +0 -86
  416. package/dist/types/Toggle/DSToggleImpl.d.ts +0 -61
  417. package/dist/types/Toggle/DSToggleRender.d.ts +0 -32
  418. package/dist/types/Toggle/index.d.ts +0 -1
  419. package/dist/types/Toggle/props.d.ts +0 -47
  420. package/dist/types/Toggle/toggleHelper.d.ts +0 -24
  421. package/dist/types/index.d.ts +0 -21
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/DateInputV2/components/DateInputs.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\n/* eslint-disable max-lines */\n/* eslint-disable complexity */\nimport React, { useState, useEffect } from 'react';\nimport moment from 'moment';\nimport {\n commonInputProps,\n triggerOnBlur,\n focusNextInput,\n getFormattedDay,\n getShouldShortcircuitDay,\n getFormattedMonth,\n getShouldShortcircuitMonth,\n getFormattedYear,\n} from './utils';\nimport { onKeyDownHelper } from './helpers';\nimport { DateInputDivider, DateInputWrapper, DateInputInput, DateInputFluidContainer } from './styled';\nimport { DateInputsPropTypes } from './propsTypes';\n\nconst FORMAT = 'MMDDYYYY';\n\nexport const DateInputs = ({ onBlur, onChange, onDateChange, disabled, onCustomKeyDown, time, tabIndex, innerRef }) => {\n const [month, setMonth] = useState('');\n const [day, setDay] = useState('');\n const [year, setYear] = useState('');\n const [onChangeDateTrigger, setOnChangeDateTrigger] = useState({});\n const dayRef = React.useRef<HTMLInputElement>();\n const [haveInputsOnChangeTriggered, setHaveInputsOnChangeTriggered] = useState(false);\n\n let digits = 2;\n let placeholder = '';\n\n const handleFluidClick = React.useCallback(\n (e: React.MouseEvent<Element, MouseEvent>) => {\n if (!(e.target as HTMLInputElement).type && dayRef.current) {\n dayRef.current.focus();\n }\n },\n [dayRef.current],\n );\n\n const triggerOnDateChange = React.useCallback(() => {\n if (month && day && year && haveInputsOnChangeTriggered) {\n const momentValue = moment(`${month}${day}${year}`, 'MMDDYYYY', true);\n if (momentValue.isValid()) {\n onDateChange(momentValue);\n }\n setHaveInputsOnChangeTriggered(false);\n }\n }, [day, month, year, haveInputsOnChangeTriggered]);\n\n // isArrowChange is coming from the onKeyDown handler in helpers\n const onMonthChange = React.useCallback((e, isArrowChange) => {\n const value = getFormattedMonth(e.target.value);\n const shouldAdvance = getShouldShortcircuitMonth(e.target.value);\n setMonth(value);\n setHaveInputsOnChangeTriggered(true);\n if (e.target.value.length > 1 || shouldAdvance) {\n if (!isArrowChange) focusNextInput(e.target);\n setOnChangeDateTrigger({});\n }\n }, []);\n\n // isArrowChange is coming from the onKeyDown handler in helpers\n const onDayChange = React.useCallback((e, isArrowChange) => {\n const value = getFormattedDay(e.target.value);\n const shouldAdvance = getShouldShortcircuitDay(e.target.value);\n setDay(value);\n setHaveInputsOnChangeTriggered(true);\n if (e.target.value.length > 1 || shouldAdvance) {\n if (!isArrowChange) focusNextInput(e.target);\n setOnChangeDateTrigger({});\n }\n }, []);\n\n const onYearChange = React.useCallback((e) => {\n const value = getFormattedYear(e.target.value);\n setYear(value);\n setHaveInputsOnChangeTriggered(true);\n setOnChangeDateTrigger({});\n }, []);\n\n useEffect(() => {\n // When component mounts haveInputsOnChangeTriggered is set to false\n // so this is not triggered on mount but is triggered with all other changes\n if (haveInputsOnChangeTriggered) {\n const momentValue = moment(`${month}${day}${year}`, FORMAT, true);\n onChange(`${month}${day}${year}`, momentValue.isValid() ? momentValue : null);\n }\n }, [day, month, year]);\n\n useEffect(() => {\n triggerOnDateChange();\n }, [onChangeDateTrigger]);\n\n useEffect(() => {\n if (time && time !== `${month}${day}${year}` && moment(time, 'MMDDYYYY').isValid()) {\n const values = String(time || '');\n if (values.slice(0, 2)) setMonth(values.slice(0, 2));\n if (values.slice(2, 4)) setDay(values.slice(2, 4));\n if (values.slice(4, 8)) setYear(values.slice(4, 8));\n } else if (!time && (month || day || year)) {\n setMonth('');\n setDay('');\n setYear('');\n }\n }, [time]);\n\n const onKeyDown = (event) =>\n onKeyDownHelper(event, {\n onDayChange,\n onMonthChange,\n onYearChange,\n });\n\n const renderMonthInput = () => {\n placeholder = 'MM';\n const onMonthInputBlur = (e) => {\n setOnChangeDateTrigger({});\n triggerOnBlur(e, onBlur);\n };\n return (\n <DateInputInput\n {...commonInputProps(digits, onKeyDown, placeholder)}\n autoComplete=\"off\"\n key=\"month-input\"\n data-testid=\"month\"\n disabled={disabled}\n name=\"month\"\n onBlur={onMonthInputBlur}\n onChange={onMonthChange}\n value={month}\n tabIndex={tabIndex}\n ref={dayRef}\n />\n );\n };\n const renderDayInput = () => {\n placeholder = 'DD';\n const onDayInputBlur = (e) => {\n setOnChangeDateTrigger({});\n triggerOnBlur(e, onBlur);\n };\n return (\n <DateInputInput\n {...commonInputProps(digits, onKeyDown, placeholder)}\n autoComplete=\"off\"\n key=\"day-input\"\n data-testid=\"day\"\n disabled={disabled}\n name=\"day\"\n onBlur={onDayInputBlur}\n onChange={onDayChange}\n value={day}\n tabIndex={tabIndex}\n />\n );\n };\n const renderYearInput = () => {\n placeholder = 'YY';\n digits = 4;\n const onYearInputBlur = (e) => {\n triggerOnBlur(e, onBlur);\n };\n return (\n <DateInputInput\n {...commonInputProps(digits, onKeyDown, placeholder)}\n autoComplete=\"off\"\n key=\"year-input\"\n data-testid=\"year\"\n disabled={disabled}\n name=\"year\"\n onBlur={onYearInputBlur}\n onChange={onYearChange}\n value={year}\n size=\"l\"\n tabIndex={tabIndex}\n />\n );\n };\n\n const renderDateInputs = () => {\n const inputs = [renderMonthInput(), renderDayInput(), renderYearInput()];\n const inputsWithDividers = inputs.reduce(\n (acc, input, index) => (input ? acc.concat([index ? <DateInputDivider>/</DateInputDivider> : null, input]) : acc),\n [],\n );\n\n return [\n inputsWithDividers,\n React.createElement('span', { key: 'span' }), // hack for next/prev focus\n ];\n };\n\n return (\n <DateInputFluidContainer onClick={handleFluidClick} data-testid=\"date-input-fluidContainer\">\n <DateInputWrapper\n disabled={disabled}\n ref={innerRef}\n onKeyDown={onCustomKeyDown}\n tabIndex={-1}\n cols={['auto', '6px', 'auto', '6px', 'auto']}\n >\n {renderDateInputs()}\n </DateInputWrapper>\n </DateInputFluidContainer>\n );\n};\n\nDateInputs.propTypes = DateInputsPropTypes;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACwLmC;AA9DpD;AAvHN,OAAOA,UAAS,UAAU,iBAAiB;AAC3C,OAAO,YAAY;AACnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,kBAAkB,kBAAkB,gBAAgB,+BAA+B;AAC5F,SAAS,2BAA2B;AAEpC,MAAM,SAAS;AAER,MAAM,aAAa,CAAC,EAAE,QAAQ,UAAU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,eAAY;AAAA,QACZ;AAAA,QACA,MAAK;AAAA,QACL,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,OAAO;AAAA,QACP,MAAK;AAAA,QACL;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,QAAM,mBAAmB,MAAM;AAC7B,UAAM,SAAS,CAAC,iBAAiB,GAAG,eAAe,GAAG,gBAAgB,CAAC;AACvE,UAAM,qBAAqB,OAAO;AAAA,MAChC,CAAC,KAAK,OAAO,UAAW,QAAQ,IAAI,OAAO,CAAC,QAAQ,oBAAC,oBAAiB,eAAC,IAAsB,MAAM,KAAK,CAAC,IAAI;AAAA,MAC7G,CAAC;AAAA,IACH;AAEA,WAAO;AAAA,MACL;AAAA,MACAA,OAAM,cAAc,QAAQ,EAAE,KAAK,OAAO,CAAC;AAAA,IAC7C;AAAA,EACF;AAEA,SACE,oBAAC,2BAAwB,SAAS,kBAAkB,eAAY,6BAC9D;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,KAAK;AAAA,MACL,WAAW;AAAA,MACX,UAAU;AAAA,MACV,MAAM,CAAC,QAAQ,OAAO,QAAQ,OAAO,MAAM;AAAA,MAE1C,2BAAiB;AAAA;AAAA,EACpB,GACF;AAEJ;AAEA,WAAW,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable indent */\n/* eslint-disable max-lines */\n/* eslint-disable complexity */\n/* eslint-disable max-statements */\nimport React, { useState, useEffect } from 'react';\nimport moment from 'moment';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\n\nimport {\n commonInputProps,\n triggerOnBlur,\n focusNextInput,\n getFormattedDay,\n getShouldShortcircuitDay,\n getFormattedMonth,\n getShouldShortcircuitMonth,\n getFormattedYear,\n} from './utils.js';\nimport { onKeyDownHelper } from './helpers.js';\nimport { DateInputDivider, DateInputWrapper, DateInputInput, DateInputFluidContainer } from './styled.js';\nimport { DateInputsPropTypes } from './propsTypes.js';\n\nconst FORMAT = 'MMDDYYYY';\n\nexport const DateInputs = ({ onBlur, onChange, onDateChange, disabled, onCustomKeyDown, time, tabIndex, innerRef }) => {\n useDeprecateComponent({ componentName: 'ds-form/DateInputV2', version: '3.x Date: 2023 Q1' });\n\n const [month, setMonth] = useState('');\n const [day, setDay] = useState('');\n const [year, setYear] = useState('');\n const [onChangeDateTrigger, setOnChangeDateTrigger] = useState({});\n const dayRef = React.useRef<HTMLInputElement>();\n const [haveInputsOnChangeTriggered, setHaveInputsOnChangeTriggered] = useState(false);\n\n let digits = 2;\n let placeholder = '';\n\n const handleFluidClick = React.useCallback(\n (e: React.MouseEvent<Element, MouseEvent>) => {\n if (!(e.target as HTMLInputElement).type && dayRef.current) {\n dayRef.current.focus();\n }\n },\n [dayRef.current],\n );\n\n const triggerOnDateChange = React.useCallback(() => {\n if (month && day && year && haveInputsOnChangeTriggered) {\n const momentValue = moment(`${month}${day}${year}`, 'MMDDYYYY', true);\n if (momentValue.isValid()) {\n onDateChange(momentValue);\n }\n setHaveInputsOnChangeTriggered(false);\n }\n }, [day, month, year, haveInputsOnChangeTriggered]);\n\n // isArrowChange is coming from the onKeyDown handler in helpers\n const onMonthChange = React.useCallback((e, isArrowChange) => {\n const value = getFormattedMonth(e.target.value);\n const shouldAdvance = getShouldShortcircuitMonth(e.target.value);\n setMonth(value);\n setHaveInputsOnChangeTriggered(true);\n if (e.target.value.length > 1 || shouldAdvance) {\n if (!isArrowChange) focusNextInput(e.target);\n setOnChangeDateTrigger({});\n }\n }, []);\n\n // isArrowChange is coming from the onKeyDown handler in helpers\n const onDayChange = React.useCallback((e, isArrowChange) => {\n const value = getFormattedDay(e.target.value);\n const shouldAdvance = getShouldShortcircuitDay(e.target.value);\n setDay(value);\n setHaveInputsOnChangeTriggered(true);\n if (e.target.value.length > 1 || shouldAdvance) {\n if (!isArrowChange) focusNextInput(e.target);\n setOnChangeDateTrigger({});\n }\n }, []);\n\n const onYearChange = React.useCallback((e) => {\n const value = getFormattedYear(e.target.value);\n setYear(value);\n setHaveInputsOnChangeTriggered(true);\n setOnChangeDateTrigger({});\n }, []);\n\n useEffect(() => {\n // When component mounts haveInputsOnChangeTriggered is set to false\n // so this is not triggered on mount but is triggered with all other changes\n if (haveInputsOnChangeTriggered) {\n const momentValue = moment(`${month}${day}${year}`, FORMAT, true);\n onChange(`${month}${day}${year}`, momentValue.isValid() ? momentValue : null);\n }\n }, [day, month, year]);\n\n useEffect(() => {\n triggerOnDateChange();\n }, [onChangeDateTrigger]);\n\n useEffect(() => {\n if (time && time !== `${month}${day}${year}` && moment(time, 'MMDDYYYY').isValid()) {\n const values = String(time || '');\n if (values.slice(0, 2)) setMonth(values.slice(0, 2));\n if (values.slice(2, 4)) setDay(values.slice(2, 4));\n if (values.slice(4, 8)) setYear(values.slice(4, 8));\n } else if (!time && (month || day || year)) {\n setMonth('');\n setDay('');\n setYear('');\n }\n }, [time]);\n\n const onKeyDown = (event) =>\n onKeyDownHelper(event, {\n onDayChange,\n onMonthChange,\n onYearChange,\n });\n\n const renderMonthInput = () => {\n placeholder = 'MM';\n const onMonthInputBlur = (e) => {\n setOnChangeDateTrigger({});\n triggerOnBlur(e, onBlur);\n };\n return (\n <DateInputInput\n {...commonInputProps(digits, onKeyDown, placeholder)}\n autoComplete=\"off\"\n key=\"month-input\"\n data-testid=\"month\"\n disabled={disabled}\n name=\"month\"\n onBlur={onMonthInputBlur}\n onChange={onMonthChange}\n value={month}\n tabIndex={tabIndex}\n ref={dayRef}\n />\n );\n };\n const renderDayInput = () => {\n placeholder = 'DD';\n const onDayInputBlur = (e) => {\n setOnChangeDateTrigger({});\n triggerOnBlur(e, onBlur);\n };\n return (\n <DateInputInput\n {...commonInputProps(digits, onKeyDown, placeholder)}\n autoComplete=\"off\"\n key=\"day-input\"\n data-testid=\"day\"\n disabled={disabled}\n name=\"day\"\n onBlur={onDayInputBlur}\n onChange={onDayChange}\n value={day}\n tabIndex={tabIndex}\n />\n );\n };\n const renderYearInput = () => {\n placeholder = 'YY';\n digits = 4;\n const onYearInputBlur = (e) => {\n triggerOnBlur(e, onBlur);\n };\n return (\n <DateInputInput\n {...commonInputProps(digits, onKeyDown, placeholder)}\n autoComplete=\"off\"\n key=\"year-input\"\n data-testid=\"year\"\n disabled={disabled}\n name=\"year\"\n onBlur={onYearInputBlur}\n onChange={onYearChange}\n value={year}\n size=\"l\"\n tabIndex={tabIndex}\n />\n );\n };\n\n const renderDateInputs = () => {\n const inputs = [renderMonthInput(), renderDayInput(), renderYearInput()];\n const inputsWithDividers = inputs.reduce(\n (acc, input, index) => (input ? acc.concat([index ? <DateInputDivider>/</DateInputDivider> : null, input]) : acc),\n [],\n );\n\n return [\n inputsWithDividers,\n React.createElement('span', { key: 'span' }), // hack for next/prev focus\n ];\n };\n\n return (\n <DateInputFluidContainer onClick={handleFluidClick} data-testid=\"date-input-fluidContainer\">\n <DateInputWrapper\n disabled={disabled}\n ref={innerRef}\n onKeyDown={onCustomKeyDown}\n tabIndex={-1}\n cols={['auto', '6px', 'auto', '6px', 'auto']}\n >\n {renderDateInputs()}\n </DateInputWrapper>\n </DateInputFluidContainer>\n );\n};\n\nDateInputs.propTypes = DateInputsPropTypes;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;AC6LmC;AA9DpD;AA3HN,OAAOA,UAAS,UAAU,iBAAiB;AAC3C,OAAO,YAAY;AACnB,SAAS,6BAA6B;AAEtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,kBAAkB,kBAAkB,gBAAgB,+BAA+B;AAC5F,SAAS,2BAA2B;AAEpC,MAAM,SAAS;AAER,MAAM,aAAa,CAAC,EAAE,QAAQ,UAAU,cAAc,UAAU,iBAAiB,MAAM,UAAU,SAAS,MAAM;AACrH,wBAAsB,EAAE,eAAe,uBAAuB,SAAS,oBAAoB,CAAC;AAE5F,QAAM,CAAC,OAAO,QAAQ,IAAI,SAA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;AAAA,QACP,MAAK;AAAA,QACL;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,QAAM,mBAAmB,MAAM;AAC7B,UAAM,SAAS,CAAC,iBAAiB,GAAG,eAAe,GAAG,gBAAgB,CAAC;AACvE,UAAM,qBAAqB,OAAO;AAAA,MAChC,CAAC,KAAK,OAAO,UAAW,QAAQ,IAAI,OAAO,CAAC,QAAQ,oBAAC,oBAAiB,eAAC,IAAsB,MAAM,KAAK,CAAC,IAAI;AAAA,MAC7G,CAAC;AAAA,IACH;AAEA,WAAO;AAAA,MACL;AAAA,MACAA,OAAM,cAAc,QAAQ,EAAE,KAAK,OAAO,CAAC;AAAA,IAC7C;AAAA,EACF;AAEA,SACE,oBAAC,2BAAwB,SAAS,kBAAkB,eAAY,6BAC9D;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,KAAK;AAAA,MACL,WAAW;AAAA,MACX,UAAU;AAAA,MACV,MAAM,CAAC,QAAQ,OAAO,QAAQ,OAAO,MAAM;AAAA,MAE1C,2BAAiB;AAAA;AAAA,EACpB,GACF;AAEJ;AAEA,WAAW,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { cloneDeep } from "lodash";
3
- import { focusNextInput, focusPreviousInput } from "./utils";
3
+ import { focusNextInput, focusPreviousInput } from "./utils.js";
4
4
  const callChange = (event, handlers, isArrowChange) => {
5
5
  if (event.target.name === "day")
6
6
  handlers.onDayChange(event, isArrowChange);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/DateInputV2/components/helpers.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { cloneDeep } from 'lodash';\nimport { focusNextInput, focusPreviousInput } from './utils';\n\nconst callChange = (event, handlers, isArrowChange) => {\n if (event.target.name === 'day') handlers.onDayChange(event, isArrowChange);\n if (event.target.name === 'month') handlers.onMonthChange(event, isArrowChange);\n if (event.target.name === 'year') handlers.onYearChange(event, isArrowChange);\n};\n\nconst setTarget = (event, v) => {\n const n = cloneDeep(event);\n let newValue = parseInt(n.target.value || 0, 10) + v;\n if (newValue < 1) newValue = '01';\n if (event.target.name === 'day' && newValue > 31) newValue = 31;\n if (event.target.name === 'month' && newValue > 12) newValue = 12;\n n.target.value = newValue;\n return n;\n};\n\n// eslint-disable-next-line max-statements, complexity\nexport const onKeyDownHelper = (event, handlers) => {\n switch (event.key) {\n case 'ArrowLeft': {\n event.preventDefault();\n focusPreviousInput(event.target);\n break;\n }\n case 'ArrowUp': {\n event.preventDefault();\n const n = setTarget(event, 1);\n callChange(n, handlers, true);\n break;\n }\n case 'ArrowDown': {\n event.preventDefault();\n const n = setTarget(event, -1);\n callChange(n, handlers, true);\n break;\n }\n case 'ArrowRight': {\n event.preventDefault();\n focusNextInput(event.target);\n break;\n }\n case 'Tab': {\n if (event.shiftKey) break;\n if (event.target.value.length > 0 && event.target.name !== 'year') event.preventDefault();\n callChange(event, handlers);\n break;\n }\n case 'Backspace': {\n // HTML Date input behavior, clear everything when deleting\n event.preventDefault();\n const n = cloneDeep(event);\n n.target.value = '';\n callChange(n, handlers, true);\n break;\n }\n case 'Enter': {\n break;\n }\n default:\n break;\n }\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { cloneDeep } from 'lodash';\nimport { focusNextInput, focusPreviousInput } from './utils.js';\n\nconst callChange = (event, handlers, isArrowChange) => {\n if (event.target.name === 'day') handlers.onDayChange(event, isArrowChange);\n if (event.target.name === 'month') handlers.onMonthChange(event, isArrowChange);\n if (event.target.name === 'year') handlers.onYearChange(event, isArrowChange);\n};\n\nconst setTarget = (event, v) => {\n const n = cloneDeep(event);\n let newValue = parseInt(n.target.value || 0, 10) + v;\n if (newValue < 1) newValue = '01';\n if (event.target.name === 'day' && newValue > 31) newValue = 31;\n if (event.target.name === 'month' && newValue > 12) newValue = 12;\n n.target.value = newValue;\n return n;\n};\n\n// eslint-disable-next-line max-statements, complexity\nexport const onKeyDownHelper = (event, handlers) => {\n switch (event.key) {\n case 'ArrowLeft': {\n event.preventDefault();\n focusPreviousInput(event.target);\n break;\n }\n case 'ArrowUp': {\n event.preventDefault();\n const n = setTarget(event, 1);\n callChange(n, handlers, true);\n break;\n }\n case 'ArrowDown': {\n event.preventDefault();\n const n = setTarget(event, -1);\n callChange(n, handlers, true);\n break;\n }\n case 'ArrowRight': {\n event.preventDefault();\n focusNextInput(event.target);\n break;\n }\n case 'Tab': {\n if (event.shiftKey) break;\n if (event.target.value.length > 0 && event.target.name !== 'year') event.preventDefault();\n callChange(event, handlers);\n break;\n }\n case 'Backspace': {\n // HTML Date input behavior, clear everything when deleting\n event.preventDefault();\n const n = cloneDeep(event);\n n.target.value = '';\n callChange(n, handlers, true);\n break;\n }\n case 'Enter': {\n break;\n }\n default:\n break;\n }\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB,0BAA0B;AAEnD,MAAM,aAAa,CAAC,OAAO,UAAU,kBAAkB;AACrD,MAAI,MAAM,OAAO,SAAS;AAAO,aAAS,YAAY,OAAO,aAAa;AAC1E,MAAI,MAAM,OAAO,SAAS;AAAS,aAAS,cAAc,OAAO,aAAa;AAC9E,MAAI,MAAM,OAAO,SAAS;AAAQ,aAAS,aAAa,OAAO,aAAa;AAC9E;AAEA,MAAM,YAAY,CAAC,OAAO,MAAM;AAC9B,QAAM,IAAI,UAAU,KAAK;AACzB,MAAI,WAAW,SAAS,EAAE,OAAO,SAAS,GAAG,EAAE,IAAI;AACnD,MAAI,WAAW;AAAG,eAAW;AAC7B,MAAI,MAAM,OAAO,SAAS,SAAS,WAAW;AAAI,eAAW;AAC7D,MAAI,MAAM,OAAO,SAAS,WAAW,WAAW;AAAI,eAAW;AAC/D,IAAE,OAAO,QAAQ;AACjB,SAAO;AACT;AAGO,MAAM,kBAAkB,CAAC,OAAO,aAAa;AAClD,UAAQ,MAAM,KAAK;AAAA,IACjB,KAAK,aAAa;AAChB,YAAM,eAAe;AACrB,yBAAmB,MAAM,MAAM;AAC/B;AAAA,IACF;AAAA,IACA,KAAK,WAAW;AACd,YAAM,eAAe;AACrB,YAAM,IAAI,UAAU,OAAO,CAAC;AAC5B,iBAAW,GAAG,UAAU,IAAI;AAC5B;AAAA,IACF;AAAA,IACA,KAAK,aAAa;AAChB,YAAM,eAAe;AACrB,YAAM,IAAI,UAAU,OAAO,EAAE;AAC7B,iBAAW,GAAG,UAAU,IAAI;AAC5B;AAAA,IACF;AAAA,IACA,KAAK,cAAc;AACjB,YAAM,eAAe;AACrB,qBAAe,MAAM,MAAM;AAC3B;AAAA,IACF;AAAA,IACA,KAAK,OAAO;AACV,UAAI,MAAM;AAAU;AACpB,UAAI,MAAM,OAAO,MAAM,SAAS,KAAK,MAAM,OAAO,SAAS;AAAQ,cAAM,eAAe;AACxF,iBAAW,OAAO,QAAQ;AAC1B;AAAA,IACF;AAAA,IACA,KAAK,aAAa;AAEhB,YAAM,eAAe;AACrB,YAAM,IAAI,UAAU,KAAK;AACzB,QAAE,OAAO,QAAQ;AACjB,iBAAW,GAAG,UAAU,IAAI;AAC5B;AAAA,IACF;AAAA,IACA,KAAK,SAAS;AACZ;AAAA,IACF;AAAA,IACA;AACE;AAAA,EACJ;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { PropTypes } from "@elliemae/ds-utilities";
2
+ import { PropTypes } from "@elliemae/ds-props-helpers";
3
3
  import { noop } from "lodash";
4
4
  const props = {
5
5
  containerProps: PropTypes.object.description("Props to inject to date input wrapper"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/DateInputV2/components/props.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-utilities';\nimport { noop } from 'lodash';\n\nexport const props = {\n /** Props to inject to date input wrapper */\n containerProps: PropTypes.object.description('Props to inject to date input wrapper'),\n /**\n * Triggers the onBlur when focus moves out of date input\n */\n onBlur: PropTypes.func.description('Triggers the onBlur when focus moves out of date input'),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description('Triggers the onFocus when the component gets the focus'),\n /**\n * Triggers the onKeyDown\n */\n onKeyDown: PropTypes.func.description('Triggers the onKeyDown'),\n /**\n * Allows a function that is triggered once the date input changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the date input changes'),\n /**\n * Triggers when the date is completely set and only once you have blurred the\n * corresponding input. For example if you are editing the day and the year and month\n * are already set, once you completely set the day it will trigger.\n */\n onDateChange: PropTypes.func.description(\n ' Triggers when the date is completely set and only once you have blurred the corresponding input. For example if you are editing the day and the year and month are already set, once you completely set the day it will trigger.',\n ),\n /**\n * Triggers the onError once one input date is wrong\n */\n onError: PropTypes.func.description('Triggers the onError once one input date is wrong'),\n /**\n * Default value once the component is initialized MMDDYYYY\n */\n value: PropTypes.string.description('Default value once the component is initialized MMDDYYYY'),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the date input is disabled or not'),\n /**\n * tab index\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).description('tab index'),\n};\n\nexport const defaultProps = {\n onFocus: noop,\n onBlur: noop,\n onChange: noop,\n onDateChange: noop,\n onKeyDown: noop,\n onError: noop,\n value: '',\n disabled: false,\n containerProps: {},\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { noop } from 'lodash';\n\nexport const props = {\n /** Props to inject to date input wrapper */\n containerProps: PropTypes.object.description('Props to inject to date input wrapper'),\n /**\n * Triggers the onBlur when focus moves out of date input\n */\n onBlur: PropTypes.func.description('Triggers the onBlur when focus moves out of date input'),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description('Triggers the onFocus when the component gets the focus'),\n /**\n * Triggers the onKeyDown\n */\n onKeyDown: PropTypes.func.description('Triggers the onKeyDown'),\n /**\n * Allows a function that is triggered once the date input changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the date input changes'),\n /**\n * Triggers when the date is completely set and only once you have blurred the\n * corresponding input. For example if you are editing the day and the year and month\n * are already set, once you completely set the day it will trigger.\n */\n onDateChange: PropTypes.func.description(\n ' Triggers when the date is completely set and only once you have blurred the corresponding input. For example if you are editing the day and the year and month are already set, once you completely set the day it will trigger.',\n ),\n /**\n * Triggers the onError once one input date is wrong\n */\n onError: PropTypes.func.description('Triggers the onError once one input date is wrong'),\n /**\n * Default value once the component is initialized MMDDYYYY\n */\n value: PropTypes.string.description('Default value once the component is initialized MMDDYYYY'),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the date input is disabled or not'),\n /**\n * tab index\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).description('tab index'),\n};\n\nexport const defaultProps = {\n onFocus: noop,\n onBlur: noop,\n onChange: noop,\n onDateChange: noop,\n onKeyDown: noop,\n onError: noop,\n value: '',\n disabled: false,\n containerProps: {},\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAEd,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,UAAU,OAAO,YAAY,uCAAuC;AAAA,EAIpF,QAAQ,UAAU,KAAK,YAAY,wDAAwD;AAAA,EAI3F,SAAS,UAAU,KAAK,YAAY,wDAAwD;AAAA,EAI5F,WAAW,UAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAMtG,cAAc,UAAU,KAAK;AAAA,IAC3B;AAAA,EACF;AAAA,EAIA,SAAS,UAAU,KAAK,YAAY,mDAAmD;AAAA,EAIvF,OAAO,UAAU,OAAO,YAAY,0DAA0D;AAAA,EAI9F,UAAU,UAAU,KAAK,YAAY,2CAA2C;AAAA,EAIhF,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,WAAW;AAC7F;AAEO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AAAA,EACV,gBAAgB,CAAC;AACnB;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { DateInputs } from "./components/DateInputs";
3
- export * from "./components/DSDateInput";
2
+ import { DateInputs } from "./components/DateInputs.js";
3
+ export * from "./components/DSDateInput.js";
4
4
  export {
5
5
  DateInputs as DateInputsV2Impl
6
6
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/DateInputV2/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DateInputs as DateInputsV2Impl } from './components/DateInputs';\nexport * from './components/DSDateInput';\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DateInputs as DateInputsV2Impl } from './components/DateInputs.js';\nexport * from './components/DSDateInput.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAuB,kBAAwB;AAC/C,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { ExpandableInputImpl } from "./ExpandableInputImpl";
3
+ import { ExpandableInputImpl } from "./ExpandableInputImpl.js";
4
4
  const DSExpandableInput = ({
5
5
  containerProps = {},
6
6
  innerRef,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/ExpandableInput/DSExpandableInput.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { ExpandableInputImpl } from './ExpandableInputImpl';\n\nconst DSExpandableInput = ({\n containerProps = {},\n innerRef,\n className = '',\n style = {},\n triggerComponent = undefined,\n children,\n isOpen = false,\n onOpen = () => null,\n onClose = () => null,\n onBlur = () => null,\n width = undefined,\n}) => (\n <ExpandableInputImpl\n className={className}\n containerProps={containerProps}\n innerRef={innerRef}\n isOpen={isOpen}\n onBlur={onBlur}\n onClose={onClose}\n onOpen={onOpen}\n style={style}\n triggerComponent={triggerComponent}\n width={width}\n >\n {children}\n </ExpandableInputImpl>\n);\n\nexport { DSExpandableInput };\nexport default DSExpandableInput;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { ExpandableInputImpl } from './ExpandableInputImpl.js';\n\nconst DSExpandableInput = ({\n containerProps = {},\n innerRef,\n className = '',\n style = {},\n triggerComponent = undefined,\n children,\n isOpen = false,\n onOpen = () => null,\n onClose = () => null,\n onBlur = () => null,\n width = undefined,\n}) => (\n <ExpandableInputImpl\n className={className}\n containerProps={containerProps}\n innerRef={innerRef}\n isOpen={isOpen}\n onBlur={onBlur}\n onClose={onClose}\n onOpen={onOpen}\n style={style}\n triggerComponent={triggerComponent}\n width={width}\n >\n {children}\n </ExpandableInputImpl>\n);\n\nexport { DSExpandableInput };\nexport default DSExpandableInput;\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACgBrB;AAfF,SAAS,2BAA2B;AAEpC,MAAM,oBAAoB,CAAC;AAAA,EACzB,iBAAiB,CAAC;AAAA,EAClB;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ,CAAC;AAAA,EACT,mBAAmB;AAAA,EACnB;AAAA,EACA,SAAS;AAAA,EACT,SAAS,MAAM;AAAA,EACf,UAAU,MAAM;AAAA,EAChB,SAAS,MAAM;AAAA,EACf,QAAQ;AACV,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAEC;AAAA;AACH;AAIF,IAAO,4BAAQ;",
6
6
  "names": []
7
7
  }
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import React2, { Component, cloneElement } from "react";
4
4
  import { aggregatedClasses } from "@elliemae/ds-classnames";
5
5
  import { isFunction } from "@elliemae/ds-shared";
6
- import { InputAddonWrapper } from "../Input";
6
+ import { InputAddonWrapper } from "../Input/index.js";
7
7
  const blockName = "expandable-input";
8
8
  const ExpandableInput = aggregatedClasses("div")(blockName, null, ({ isOpen }) => ({ opened: isOpen }));
9
9
  const InputWrapper = aggregatedClasses(InputAddonWrapper)(blockName, "wrapper", ({ isOpen }) => ({ opened: isOpen }));
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/ExpandableInput/ExpandableInputImpl.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { Component, cloneElement } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { isFunction } from '@elliemae/ds-shared';\nimport { InputAddonWrapper } from '../Input';\n\nconst blockName = 'expandable-input';\n\nconst ExpandableInput = aggregatedClasses('div')(blockName, null, ({ isOpen }) => ({ opened: isOpen }));\nconst InputWrapper = aggregatedClasses(InputAddonWrapper)(blockName, 'wrapper', ({ isOpen }) => ({ opened: isOpen }));\n\nclass ExpandableInputImpl extends Component {\n componentDidUpdate(prevProps) {\n const { isOpen } = this.props;\n if (isOpen && isOpen !== prevProps.isOpen) this.input.focus();\n }\n\n render() {\n const { innerRef, triggerComponent, children, width, isOpen, onOpen, onClose, onBlur, containerProps } = this.props;\n const InputComponent = React.Children.only(children);\n const handleTriggerClick = (e) => {\n if (isFunction(triggerComponent.onClick)) triggerComponent.onClick(e);\n if (isOpen) {\n onClose();\n } else {\n onOpen();\n }\n };\n\n return (\n <ExpandableInput\n {...containerProps}\n classProps={{ isOpen }}\n innerRef={innerRef}\n style={{ width: isOpen && width }}\n >\n <InputWrapper\n rightComponents={[\n cloneElement(triggerComponent, {\n key: 'handler',\n onClick: handleTriggerClick,\n }),\n ]}\n >\n {cloneElement(InputComponent, {\n className: 'expandable-input__input',\n innerRef: (node) => (this.input = node),\n onBlur,\n })}\n </InputWrapper>\n </ExpandableInput>\n );\n }\n}\n\nexport { ExpandableInputImpl };\nexport default ExpandableInputImpl;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { Component, cloneElement } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { isFunction } from '@elliemae/ds-shared';\nimport { InputAddonWrapper } from '../Input/index.js';\n\nconst blockName = 'expandable-input';\n\nconst ExpandableInput = aggregatedClasses('div')(blockName, null, ({ isOpen }) => ({ opened: isOpen }));\nconst InputWrapper = aggregatedClasses(InputAddonWrapper)(blockName, 'wrapper', ({ isOpen }) => ({ opened: isOpen }));\n\nclass ExpandableInputImpl extends Component {\n componentDidUpdate(prevProps) {\n const { isOpen } = this.props;\n if (isOpen && isOpen !== prevProps.isOpen) this.input.focus();\n }\n\n render() {\n const { innerRef, triggerComponent, children, width, isOpen, onOpen, onClose, onBlur, containerProps } = this.props;\n const InputComponent = React.Children.only(children);\n const handleTriggerClick = (e) => {\n if (isFunction(triggerComponent.onClick)) triggerComponent.onClick(e);\n if (isOpen) {\n onClose();\n } else {\n onOpen();\n }\n };\n\n return (\n <ExpandableInput\n {...containerProps}\n classProps={{ isOpen }}\n innerRef={innerRef}\n style={{ width: isOpen && width }}\n >\n <InputWrapper\n rightComponents={[\n cloneElement(triggerComponent, {\n key: 'handler',\n onClick: handleTriggerClick,\n }),\n ]}\n >\n {cloneElement(InputComponent, {\n className: 'expandable-input__input',\n innerRef: (node) => (this.input = node),\n onBlur,\n })}\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AAA,cAC5B,WAAW;AAAA,cACX,UAAU,CAAC,SAAU,KAAK,QAAQ;AAAA,cAClC;AAAA,YACF,CAAC;AAAA;AAAA,QACH;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAGA,IAAO,8BAAQ;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,3 +1,3 @@
1
1
  import * as React from "react";
2
- export * from "./DSExpandableInput";
2
+ export * from "./DSExpandableInput.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/ExpandableInput/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSExpandableInput';\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSExpandableInput.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { FloatingLabelInputImpl } from "./FloatingLabelInputImpl";
4
- import { DSLabel } from "../FormItem/Label/DSLabel";
5
- import { DSTextBox } from "../TextBox";
3
+ import { FloatingLabelInputImpl } from "./FloatingLabelInputImpl.js";
4
+ import { DSLabel } from "../FormItem/Label/DSLabel.js";
5
+ import { DSTextBox } from "../TextBox/index.js";
6
6
  const noop = () => {
7
7
  };
8
8
  const DSFloatingLabelInput = ({
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FloatingLabelInput/DSFloatingLabelInput.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { FloatingLabelInputImpl } from './FloatingLabelInputImpl';\nimport { DSLabel } from '../FormItem/Label/DSLabel';\nimport { DSTextBox } from '../TextBox';\n\nconst noop = () => {};\nconst DSFloatingLabelInput = ({\n containerProps = {},\n arialLabel = '',\n /**\n * Gets the reference for the input controller\n *\n * @param {HTMLElement} node\n */\n innerRef = noop,\n /**\n * Custom className for floatingLabelInput\n */\n className = '',\n /**\n * Props injected to the input component\n *\n * @type Object\n */\n extraInputProps = {},\n /**\n * Input controller\n *\n * @type {element}\n */\n inputComponent = DSTextBox,\n /**\n * Input value\n *\n * @type {string}\n */\n value = '',\n /**\n * Label component\n *\n * @type {element}\n */\n labelComponent = DSLabel,\n /**\n * Label text\n *\n * @type {string | element}\n */\n labelText = null,\n /**\n * Callback when input controller has changed\n *\n * @param event\n */\n onChange = noop,\n onBlur = noop,\n onFocus = noop,\n /**\n * Whether the label is floating or not\n *\n * @type {boolean}\n */\n isOpen = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n hasError = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n readOnly = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n disabled = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n required = false,\n optional = false,\n mask = null,\n useSubfix = '',\n}) => (\n <FloatingLabelInputImpl\n arialLabel={arialLabel}\n className={className}\n disabled={disabled}\n extraInputProps={extraInputProps}\n hasError={hasError}\n innerRef={innerRef}\n inputComponent={inputComponent}\n isOpen={isOpen}\n labelComponent={labelComponent}\n labelText={labelText}\n mask={mask}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n optional={optional}\n readOnly={readOnly}\n required={required}\n useSubfix={useSubfix}\n value={value}\n />\n);\n\nexport { DSFloatingLabelInput };\nexport default DSFloatingLabelInput;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { FloatingLabelInputImpl } from './FloatingLabelInputImpl.js';\nimport { DSLabel } from '../FormItem/Label/DSLabel.js';\nimport { DSTextBox } from '../TextBox/index.js';\n\nconst noop = () => {};\nconst DSFloatingLabelInput = ({\n containerProps = {},\n arialLabel = '',\n /**\n * Gets the reference for the input controller\n *\n * @param {HTMLElement} node\n */\n innerRef = noop,\n /**\n * Custom className for floatingLabelInput\n */\n className = '',\n /**\n * Props injected to the input component\n *\n * @type Object\n */\n extraInputProps = {},\n /**\n * Input controller\n *\n * @type {element}\n */\n inputComponent = DSTextBox,\n /**\n * Input value\n *\n * @type {string}\n */\n value = '',\n /**\n * Label component\n *\n * @type {element}\n */\n labelComponent = DSLabel,\n /**\n * Label text\n *\n * @type {string | element}\n */\n labelText = null,\n /**\n * Callback when input controller has changed\n *\n * @param event\n */\n onChange = noop,\n onBlur = noop,\n onFocus = noop,\n /**\n * Whether the label is floating or not\n *\n * @type {boolean}\n */\n isOpen = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n hasError = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n readOnly = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n disabled = false,\n /**\n * Whether ...\n *\n * @type {boolean}\n */\n required = false,\n optional = false,\n mask = null,\n useSubfix = '',\n}) => (\n <FloatingLabelInputImpl\n arialLabel={arialLabel}\n className={className}\n disabled={disabled}\n extraInputProps={extraInputProps}\n hasError={hasError}\n innerRef={innerRef}\n inputComponent={inputComponent}\n isOpen={isOpen}\n labelComponent={labelComponent}\n labelText={labelText}\n mask={mask}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n optional={optional}\n readOnly={readOnly}\n required={required}\n useSubfix={useSubfix}\n value={value}\n />\n);\n\nexport { DSFloatingLabelInput };\nexport default DSFloatingLabelInput;\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;AC2FrB;AA1FF,SAAS,8BAA8B;AACvC,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAE1B,MAAM,OAAO,MAAM;AAAC;AACpB,MAAM,uBAAuB,CAAC;AAAA,EAC5B,iBAAiB,CAAC;AAAA,EAClB,aAAa;AAAA,EAMb,WAAW;AAAA,EAIX,YAAY;AAAA,EAMZ,kBAAkB,CAAC;AAAA,EAMnB,iBAAiB;AAAA,EAMjB,QAAQ;AAAA,EAMR,iBAAiB;AAAA,EAMjB,YAAY;AAAA,EAMZ,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EAMV,SAAS;AAAA,EAMT,WAAW;AAAA,EAMX,WAAW;AAAA,EAMX,WAAW;AAAA,EAMX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY;AACd,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AACF;AAIF,IAAO,+BAAQ;",
6
6
  "names": []
7
7
  }
@@ -5,8 +5,8 @@ import { aggregatedClasses } from "@elliemae/ds-classnames";
5
5
  import { getComponentFromProps } from "@elliemae/ds-utilities";
6
6
  import { DSTextWrapper } from "@elliemae/ds-text-wrapper";
7
7
  import { ResizeObserver } from "resize-observer";
8
- import { getSvgPath } from "./getSvgPath";
9
- import { RequiredMark } from "../RequiredMark/RequiredMark";
8
+ import { getSvgPath } from "./getSvgPath.js";
9
+ import { RequiredMark } from "../RequiredMark/RequiredMark.js";
10
10
  const blockName = "labeled-outline";
11
11
  const Wrapper = aggregatedClasses("div")(blockName, null, ({ isOpen }) => ({
12
12
  "has-value": isOpen
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FloatingLabelInput/FloatingLabelInputImpl.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/no-unused-state */\nimport React, { Component } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { getComponentFromProps } from '@elliemae/ds-utilities';\nimport { DSTextWrapper } from '@elliemae/ds-text-wrapper';\nimport { ResizeObserver } from 'resize-observer';\nimport { getSvgPath } from './getSvgPath';\nimport { RequiredMark } from '../RequiredMark/RequiredMark';\n\nconst blockName = 'labeled-outline';\n\nconst Wrapper = aggregatedClasses('div')(blockName, null, ({ isOpen }) => ({\n 'has-value': isOpen,\n}));\nconst FloatingLabel = aggregatedClasses('label')(blockName, 'label');\nconst OutlineIdle = aggregatedClasses('div')(blockName, 'idle');\nconst Outline = aggregatedClasses('div')(blockName, 'outline');\nconst OutlinePath = aggregatedClasses('path')(blockName, 'outline__path');\n\nconst shouldUpdateSvgPath = ({ width, height, labelWidth }, prevSizes) => {\n if (width !== prevSizes.width) return true;\n if (height !== prevSizes.height) return true;\n return labelWidth !== prevSizes.labelWidth;\n};\n\nclass FloatingLabelInputImpl extends Component {\n resizeObserver = new ResizeObserver(() => this.updatePath());\n\n prevSizes = {};\n\n static defaultProps = { onChange: () => null };\n\n constructor(props) {\n super(props);\n this.wrapperRef = React.createRef();\n this.outlinePathRef = React.createRef();\n this.outlineIdleRef = React.createRef();\n this.labelRef = React.createRef();\n\n this.sizes = this.sizes.bind(this);\n this.isOpened = this.isOpened.bind(this);\n this.getValue = this.getValue.bind(this);\n this.updatePath = this.updatePath.bind(this);\n }\n\n componentDidMount() {\n this.resizeObserver.observe(this.wrapperRef.current);\n }\n\n componentDidUpdate() {\n if (!shouldUpdateSvgPath(this.sizes, this.prevSizes)) return;\n this.updatePath();\n }\n\n componentWillUnmount() {\n this.resizeObserver.unobserve(this.wrapperRef.current);\n }\n\n get sizes() {\n const { current: labelEl } = this.labelRef;\n const { current: wrapperEl } = this.wrapperRef;\n const { current: outlineIdleEl } = this.outlineIdleRef;\n const elStyles = window.getComputedStyle(outlineIdleEl);\n const leftRadius = elStyles.getPropertyValue('border-top-left-radius');\n const rightRadius = elStyles.getPropertyValue('border-top-right-radius');\n const hasLeftRadius = parseFloat(leftRadius) !== 0;\n const hasRightRadius = parseFloat(rightRadius) !== 0;\n return {\n labelWidth: labelEl.offsetWidth * 0.9,\n width: wrapperEl.offsetWidth,\n height: wrapperEl.offsetHeight,\n radiusStyle: leftRadius,\n hasLeftRadius,\n hasRightRadius,\n };\n }\n\n get isOpened() {\n const { focused, isOpen, value } = this.props;\n return focused || (Array.isArray(value) ? !!value.length : !!value) || isOpen;\n }\n\n getValue(value) {\n const { valueAccessor } = this.props;\n if (valueAccessor) return valueAccessor(value);\n // is an event\n if (value && value.target) return value.target.value;\n\n return value;\n }\n\n updatePath() {\n const path = getSvgPath(this.sizes);\n this.prevSizes = this.sizes;\n this.outlinePathRef.current.setAttribute('d', path);\n }\n\n render() {\n const {\n ariaLabel,\n hasError,\n readOnly,\n disabled,\n inputComponent,\n labelText,\n onBlur,\n onFocus,\n innerRef,\n extraInputProps,\n required,\n value,\n onChange,\n mask,\n useSubfix,\n optional,\n } = this.props;\n\n const inputProps = {\n ariaLabel,\n className: 'floating-label-input-controller',\n disabled,\n hasError,\n onBlur,\n onChange,\n onFocus,\n readOnly,\n value,\n innerRef,\n mask,\n useSubfix,\n ...extraInputProps,\n };\n const InputComponent = getComponentFromProps(inputComponent, inputProps);\n const isOpen = this.isOpened;\n\n return (\n <Wrapper\n classProps={{\n hasError,\n isOpen,\n readOnly,\n disabled,\n }}\n innerRef={this.wrapperRef}\n onBlur={() => null}\n onFocus={() => null}\n onMouseOut={this.handleMouseOut}\n onMouseOver={this.handleMouseOver}\n >\n {InputComponent}\n <FloatingLabel classProps={{ isOpen }} innerRef={this.labelRef}>\n <DSTextWrapper maxWidth=\"100%\" text={labelText} />\n <RequiredMark optional={optional} required={required} />\n </FloatingLabel>\n <Outline>\n <svg>\n <OutlinePath innerRef={this.outlinePathRef} />\n </svg>\n </Outline>\n <OutlineIdle innerRef={this.outlineIdleRef} />\n </Wrapper>\n );\n }\n}\n\nexport { FloatingLabelInputImpl };\nexport default FloatingLabelInputImpl;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/no-unused-state */\nimport React, { Component } from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { getComponentFromProps } from '@elliemae/ds-utilities';\nimport { DSTextWrapper } from '@elliemae/ds-text-wrapper';\nimport { ResizeObserver } from 'resize-observer';\nimport { getSvgPath } from './getSvgPath.js';\nimport { RequiredMark } from '../RequiredMark/RequiredMark.js';\n\nconst blockName = 'labeled-outline';\n\nconst Wrapper = aggregatedClasses('div')(blockName, null, ({ isOpen }) => ({\n 'has-value': isOpen,\n}));\nconst FloatingLabel = aggregatedClasses('label')(blockName, 'label');\nconst OutlineIdle = aggregatedClasses('div')(blockName, 'idle');\nconst Outline = aggregatedClasses('div')(blockName, 'outline');\nconst OutlinePath = aggregatedClasses('path')(blockName, 'outline__path');\n\nconst shouldUpdateSvgPath = ({ width, height, labelWidth }, prevSizes) => {\n if (width !== prevSizes.width) return true;\n if (height !== prevSizes.height) return true;\n return labelWidth !== prevSizes.labelWidth;\n};\n\nclass FloatingLabelInputImpl extends Component {\n resizeObserver = new ResizeObserver(() => this.updatePath());\n\n prevSizes = {};\n\n static defaultProps = { onChange: () => null };\n\n constructor(props) {\n super(props);\n this.wrapperRef = React.createRef();\n this.outlinePathRef = React.createRef();\n this.outlineIdleRef = React.createRef();\n this.labelRef = React.createRef();\n\n this.sizes = this.sizes.bind(this);\n this.isOpened = this.isOpened.bind(this);\n this.getValue = this.getValue.bind(this);\n this.updatePath = this.updatePath.bind(this);\n }\n\n componentDidMount() {\n this.resizeObserver.observe(this.wrapperRef.current);\n }\n\n componentDidUpdate() {\n if (!shouldUpdateSvgPath(this.sizes, this.prevSizes)) return;\n this.updatePath();\n }\n\n componentWillUnmount() {\n this.resizeObserver.unobserve(this.wrapperRef.current);\n }\n\n get sizes() {\n const { current: labelEl } = this.labelRef;\n const { current: wrapperEl } = this.wrapperRef;\n const { current: outlineIdleEl } = this.outlineIdleRef;\n const elStyles = window.getComputedStyle(outlineIdleEl);\n const leftRadius = elStyles.getPropertyValue('border-top-left-radius');\n const rightRadius = elStyles.getPropertyValue('border-top-right-radius');\n const hasLeftRadius = parseFloat(leftRadius) !== 0;\n const hasRightRadius = parseFloat(rightRadius) !== 0;\n return {\n labelWidth: labelEl.offsetWidth * 0.9,\n width: wrapperEl.offsetWidth,\n height: wrapperEl.offsetHeight,\n radiusStyle: leftRadius,\n hasLeftRadius,\n hasRightRadius,\n };\n }\n\n get isOpened() {\n const { focused, isOpen, value } = this.props;\n return focused || (Array.isArray(value) ? !!value.length : !!value) || isOpen;\n }\n\n getValue(value) {\n const { valueAccessor } = this.props;\n if (valueAccessor) return valueAccessor(value);\n // is an event\n if (value && value.target) return value.target.value;\n\n return value;\n }\n\n updatePath() {\n const path = getSvgPath(this.sizes);\n this.prevSizes = this.sizes;\n this.outlinePathRef.current.setAttribute('d', path);\n }\n\n render() {\n const {\n ariaLabel,\n hasError,\n readOnly,\n disabled,\n inputComponent,\n labelText,\n onBlur,\n onFocus,\n innerRef,\n extraInputProps,\n required,\n value,\n onChange,\n mask,\n useSubfix,\n optional,\n } = this.props;\n\n const inputProps = {\n ariaLabel,\n className: 'floating-label-input-controller',\n disabled,\n hasError,\n onBlur,\n onChange,\n onFocus,\n readOnly,\n value,\n innerRef,\n mask,\n useSubfix,\n ...extraInputProps,\n };\n const InputComponent = getComponentFromProps(inputComponent, inputProps);\n const isOpen = this.isOpened;\n\n return (\n <Wrapper\n classProps={{\n hasError,\n isOpen,\n readOnly,\n disabled,\n }}\n innerRef={this.wrapperRef}\n onBlur={() => null}\n onFocus={() => null}\n onMouseOut={this.handleMouseOut}\n onMouseOver={this.handleMouseOver}\n >\n {InputComponent}\n <FloatingLabel classProps={{ isOpen }} innerRef={this.labelRef}>\n <DSTextWrapper maxWidth=\"100%\" text={labelText} />\n <RequiredMark optional={optional} required={required} />\n </FloatingLabel>\n <Outline>\n <svg>\n <OutlinePath innerRef={this.outlinePathRef} />\n </svg>\n </Outline>\n <OutlineIdle innerRef={this.outlineIdleRef} />\n </Wrapper>\n );\n }\n}\n\nexport { FloatingL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AAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI,KAAK;AAET,UAAM,aAAa;AAAA,MACjB;AAAA,MACA,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL;AACA,UAAM,iBAAiB,sBAAsB,gBAAgB,UAAU;AACvE,UAAM,SAAS,KAAK;AAEpB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAY;AAAA,UACV;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,UAAU,KAAK;AAAA,QACf,QAAQ,MAAM;AAAA,QACd,SAAS,MAAM;AAAA,QACf,YAAY,KAAK;AAAA,QACjB,aAAa,KAAK;AAAA,QAEjB;AAAA;AAAA,UACD,qBAAC,iBAAc,YAAY,EAAE,OAAO,GAAG,UAAU,KAAK,UACpD;AAAA,gCAAC,iBAAc,UAAS,QAAO,MAAM,WAAW;AAAA,YAChD,oBAAC,gBAAa,UAAoB,UAAoB;AAAA,aACxD;AAAA,UACA,oBAAC,WACC,8BAAC,SACC,8BAAC,eAAY,UAAU,KAAK,gBAAgB,GAC9C,GACF;AAAA,UACA,oBAAC,eAAY,UAAU,KAAK,gBAAgB;AAAA;AAAA;AAAA,IAC9C;AAAA,EAEJ;AACF;AA1IM,uBAKG,eAAe,EAAE,UAAU,MAAM,KAAK;AAwI/C,IAAO,iCAAQ;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,3 +1,3 @@
1
1
  import * as React from "react";
2
- export * from "./DSFloatingLabelInput";
2
+ export * from "./DSFloatingLabelInput.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FloatingLabelInput/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSFloatingLabelInput';\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSFloatingLabelInput.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,15 +1,16 @@
1
1
  import * as React from "react";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { aggregatedClasses } from "@elliemae/ds-classnames";
4
- import { describe, getComponentFromProps } from "@elliemae/ds-utilities";
4
+ import { getComponentFromProps, useDeprecateComponent } from "@elliemae/ds-utilities";
5
+ import { describe } from "@elliemae/ds-props-helpers";
5
6
  import { Group } from "@elliemae/ds-shared";
6
- import { DSInputGroup } from "../InputGroup";
7
- import { DSFloatingLabelInput } from "../FloatingLabelInput";
8
- import { DSError } from "./Error/DSError";
9
- import { props } from "./props";
10
- import { defaultProps } from "./defaultProps";
11
- import { FORMITEM_LAYOUT_VARIANTS } from "./variants";
12
- import { Suffix, SuffixInputWrapper, SuffixWrapper } from "./Suffix/Suffix";
7
+ import { DSInputGroup } from "../InputGroup/index.js";
8
+ import { DSFloatingLabelInput } from "../FloatingLabelInput/index.js";
9
+ import { DSError } from "./Error/DSError.js";
10
+ import { props } from "./props.js";
11
+ import { defaultProps } from "./defaultProps.js";
12
+ import { FORMITEM_LAYOUT_VARIANTS } from "./variants.js";
13
+ import { Suffix, SuffixInputWrapper, SuffixWrapper } from "./Suffix/Suffix.js";
13
14
  const blockName = "form-item";
14
15
  const Wrapper = aggregatedClasses("div")(blockName, null, ({ leftLabel, variant, fitContent, withHighlight }) => ({
15
16
  "with-left-label": leftLabel,
@@ -59,6 +60,7 @@ const DSFormItemLayout = ({
59
60
  containerProps,
60
61
  ...rest
61
62
  }) => {
63
+ useDeprecateComponent({ componentName: "ds-form/FormItemLayout", version: "3.x Date: 2023 Q1" });
62
64
  const isGroup = InputComponent.type === (/* @__PURE__ */ jsx(Group, {})).type;
63
65
  const floatingLabelOverride = floatingLabel === "UNSAFE";
64
66
  const WrapperContentComp = !isGroup ? WrapperContent : WrapperContentGroup;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FormItem/DSFormItemLayout.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { describe, getComponentFromProps } from '@elliemae/ds-utilities';\nimport { Group } from '@elliemae/ds-shared';\nimport { DSInputGroup } from '../InputGroup';\nimport { DSFloatingLabelInput } from '../FloatingLabelInput';\nimport { DSError } from './Error/DSError';\nimport { props } from './props';\nimport { defaultProps } from './defaultProps';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants';\nimport { Suffix, SuffixInputWrapper, SuffixWrapper } from './Suffix/Suffix';\n// import { maskTypes } from '../InputMask/MaskTypes';\n\nexport { DSError, FORMITEM_LAYOUT_VARIANTS };\n\nconst blockName = 'form-item';\n\nconst Wrapper = aggregatedClasses('div')(blockName, null, ({ leftLabel, variant, fitContent, withHighlight }) => ({\n 'with-left-label': leftLabel,\n 'fit-content': fitContent,\n [variant]: variant,\n 'with-highlight': withHighlight,\n}));\n\nconst WrapperContent = aggregatedClasses('div')(`${blockName}-content`);\nconst WrapperContentGroup = aggregatedClasses('fieldset')(`${blockName}-content`);\n\nconst DSFormItemLayout = ({\n leftLabel,\n floatingLabel,\n name,\n id,\n value,\n inputComponent: InputComponent,\n labelComponent: LabelComponent,\n feedbackComponent: FeedbackComponent,\n labelText,\n truncateText,\n hasError,\n // orientation = 'vertical', // one of [ vertical, horizontal ]\n validationState, // one of [ success, error, warning ]\n validationMessage,\n feedbackMessage,\n readOnly,\n focused,\n type,\n autoFocus,\n disabled,\n onChange,\n onBlur,\n onFocus,\n onPaste,\n onKeyUp,\n extraInputProps,\n extraContent,\n leftAddon,\n rightAddon,\n required,\n optional,\n mask,\n useSubfix,\n suffix,\n variant,\n fitContent,\n withHighlight,\n containerProps,\n ...rest\n}) => {\n const isGroup = InputComponent.type === (<Group />).type;\n const floatingLabelOverride = floatingLabel === 'UNSAFE';\n const WrapperContentComp = !isGroup ? WrapperContent : WrapperContentGroup;\n\n // group the input props to not duplicate it inside the specific inputComponent (floating or not)\n const inputProps = {\n ...extraInputProps,\n disabled,\n hasError: hasError || validationState === 'error',\n id,\n name,\n type,\n autoFocus,\n onBlur,\n onChange,\n onFocus,\n onPaste,\n onKeyUp,\n readOnly,\n value,\n mask,\n useSubfix,\n variant,\n required,\n ...rest,\n };\n\n const renderInput = (Input) =>\n leftAddon || rightAddon ? (\n <DSInputGroup leftAddon={leftAddon} rightAddon={rightAddon} variant={variant}>\n {Input}\n </DSInputGroup>\n ) : (\n Input\n );\n\n const renderFloating = (\n <DSFloatingLabelInput\n {...inputProps}\n extraInputProps={extraInputProps}\n focused={focused}\n inputComponent={InputComponent}\n labelComponent={LabelComponent}\n labelText={labelText}\n optional={optional}\n required={required}\n variant={variant}\n />\n );\n\n const InputWithLabel = floatingLabelOverride ? (\n renderInput(renderFloating)\n ) : (\n <>\n <LabelComponent\n htmlFor={id || name}\n label={labelText}\n optional={optional}\n required={required}\n isGroup={isGroup}\n truncateText={truncateText}\n />\n {renderInput(getComponentFromProps(InputComponent, inputProps))}\n </>\n );\n\n if (suffix) {\n return (\n <Wrapper\n classProps={{\n disabled,\n readOnly,\n hasError,\n leftLabel,\n variant,\n fitContent,\n withHighlight,\n }}\n {...containerProps}\n >\n <SuffixWrapper className=\"suffix-wrapper\">\n <SuffixInputWrapper className=\"suffix-input-wrapper\">\n <WrapperContentComp>\n {InputWithLabel}\n {extraContent}\n </WrapperContentComp>\n <FeedbackComponent\n hasError={hasError}\n text={validationState || hasError ? validationMessage : feedbackMessage}\n />\n </SuffixInputWrapper>\n <Suffix\n className=\"suffix-label\"\n label={!!labelText}\n withFeedback={Boolean(validationMessage || feedbackMessage)}\n >\n {suffix}\n </Suffix>\n </SuffixWrapper>\n </Wrapper>\n );\n }\n\n return (\n <Wrapper\n classProps={{\n disabled,\n readOnly,\n hasError,\n leftLabel,\n variant,\n fitContent,\n withHighlight,\n }}\n {...containerProps}\n >\n <WrapperContentComp>\n {InputWithLabel}\n {extraContent}\n </WrapperContentComp>\n <FeedbackComponent hasError={hasError} text={validationState || hasError ? validationMessage : feedbackMessage} />\n </Wrapper>\n );\n};\n\nDSFormItemLayout.propTypes = props;\nDSFormItemLayout.defaultProps = defaultProps;\nDSFormItemLayout.displayName = 'DSFormItemLayout';\nconst DSFormItemLayoutWithSchema = describe(DSFormItemLayout);\nDSFormItemLayoutWithSchema.propTypes = props;\n\nexport default DSFormItemLayout;\nexport { DSFormItemLayoutWithSchema, DSFormItemLayout };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACsEoB,SAqDvC,UArDuC,KAqDvC,YArDuC;AAnE3C,SAAS,yBAAyB;AAClC,SAAS,UAAU,6BAA6B;AAChD,SAAS,aAAa;AACtB,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,oBAAoB;AAC7B,SAAS,gCAAgC;AACzC,SAAS,QAAQ,oBAAoB,qBAAqB;AAK1D,MAAM,YAAY;AAElB,MAAM,UAAU,kBAAkB,KAAK,EAAE,WAAW,MAAM,CAAC,EAAE,WAAW,SAAS,YAAY,cAAc,OAAO;AAAA,EAChH,mBAAmB;AAAA,EACnB,eAAe;AAAA,EACf,CAAC,UAAU;AAAA,EACX,kBAAkB;AACpB,EAAE;AAEF,MAAM,iBAAiB,kBAAkB,KAAK,EAAE,GAAG,mBAAmB;AACtE,MAAM,sBAAsB,kBAAkB,UAAU,EAAE,GAAG,mBAAmB;AA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able complexity */\n/* eslint-disable max-lines */\nimport React from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { getComponentFromProps, useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Group } from '@elliemae/ds-shared';\nimport { DSInputGroup } from '../InputGroup/index.js';\nimport { DSFloatingLabelInput } from '../FloatingLabelInput/index.js';\nimport { DSError } from './Error/DSError.js';\nimport { props } from './props.js';\nimport { defaultProps } from './defaultProps.js';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants.js';\nimport { Suffix, SuffixInputWrapper, SuffixWrapper } from './Suffix/Suffix.js';\n// import { maskTypes } from '../InputMask/MaskTypes';\n\nexport { DSError, FORMITEM_LAYOUT_VARIANTS };\n\nconst blockName = 'form-item';\n\nconst Wrapper = aggregatedClasses('div')(blockName, null, ({ leftLabel, variant, fitContent, withHighlight }) => ({\n 'with-left-label': leftLabel,\n 'fit-content': fitContent,\n [variant]: variant,\n 'with-highlight': withHighlight,\n}));\n\nconst WrapperContent = aggregatedClasses('div')(`${blockName}-content`);\nconst WrapperContentGroup = aggregatedClasses('fieldset')(`${blockName}-content`);\n\nconst DSFormItemLayout = ({\n leftLabel,\n floatingLabel,\n name,\n id,\n value,\n inputComponent: InputComponent,\n labelComponent: LabelComponent,\n feedbackComponent: FeedbackComponent,\n labelText,\n truncateText,\n hasError,\n // orientation = 'vertical', // one of [ vertical, horizontal ]\n validationState, // one of [ success, error, warning ]\n validationMessage,\n feedbackMessage,\n readOnly,\n focused,\n type,\n autoFocus,\n disabled,\n onChange,\n onBlur,\n onFocus,\n onPaste,\n onKeyUp,\n extraInputProps,\n extraContent,\n leftAddon,\n rightAddon,\n required,\n optional,\n mask,\n useSubfix,\n suffix,\n variant,\n fitContent,\n withHighlight,\n containerProps,\n ...rest\n}) => {\n useDeprecateComponent({ componentName: 'ds-form/FormItemLayout', version: '3.x Date: 2023 Q1' });\n\n const isGroup = InputComponent.type === (<Group />).type;\n const floatingLabelOverride = floatingLabel === 'UNSAFE';\n const WrapperContentComp = !isGroup ? WrapperContent : WrapperContentGroup;\n\n // group the input props to not duplicate it inside the specific inputComponent (floating or not)\n const inputProps = {\n ...extraInputProps,\n disabled,\n hasError: hasError || validationState === 'error',\n id,\n name,\n type,\n autoFocus,\n onBlur,\n onChange,\n onFocus,\n onPaste,\n onKeyUp,\n readOnly,\n value,\n mask,\n useSubfix,\n variant,\n required,\n ...rest,\n };\n\n const renderInput = (Input) =>\n leftAddon || rightAddon ? (\n <DSInputGroup leftAddon={leftAddon} rightAddon={rightAddon} variant={variant}>\n {Input}\n </DSInputGroup>\n ) : (\n Input\n );\n\n const renderFloating = (\n <DSFloatingLabelInput\n {...inputProps}\n extraInputProps={extraInputProps}\n focused={focused}\n inputComponent={InputComponent}\n labelComponent={LabelComponent}\n labelText={labelText}\n optional={optional}\n required={required}\n variant={variant}\n />\n );\n\n const InputWithLabel = floatingLabelOverride ? (\n renderInput(renderFloating)\n ) : (\n <>\n <LabelComponent\n htmlFor={id || name}\n label={labelText}\n optional={optional}\n required={required}\n isGroup={isGroup}\n truncateText={truncateText}\n />\n {renderInput(getComponentFromProps(InputComponent, inputProps))}\n </>\n );\n\n if (suffix) {\n return (\n <Wrapper\n classProps={{\n disabled,\n readOnly,\n hasError,\n leftLabel,\n variant,\n fitContent,\n withHighlight,\n }}\n {...containerProps}\n >\n <SuffixWrapper className=\"suffix-wrapper\">\n <SuffixInputWrapper className=\"suffix-input-wrapper\">\n <WrapperContentComp>\n {InputWithLabel}\n {extraContent}\n </WrapperContentComp>\n <FeedbackComponent\n hasError={hasError}\n text={validationState || hasError ? validationMessage : feedbackMessage}\n />\n </SuffixInputWrapper>\n <Suffix\n className=\"suffix-label\"\n label={!!labelText}\n withFeedback={Boolean(validationMessage || feedbackMessage)}\n >\n {suffix}\n </Suffix>\n </SuffixWrapper>\n </Wrapper>\n );\n }\n\n return (\n <Wrapper\n classProps={{\n disabled,\n readOnly,\n hasError,\n leftLabel,\n variant,\n fitContent,\n withHighlight,\n }}\n {...containerProps}\n >\n <WrapperContentComp>\n {InputWithLabel}\n {extraContent}\n </WrapperContentComp>\n <FeedbackComponent hasError={hasError} text={validationState || hasError ? validationMessage : feedbackMessage} />\n </Wrapper>\n );\n};\n\nDSFormItemLayout.propTypes = props;\nDSFormItemLayout.defaultProps = defaultProps;\nDSFormItemLayout.displayName = 'DSFormItemLayout';\nconst DSFormItemLayoutWithSchema = describe(DSFormItemLayout);\nDSFormItemLayoutWithSchema.propTypes = props;\n\nexport default DSFormItemLayout;\nexport { DSFormItemLayoutWithSchema, DSFormItemLayout };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACyEoB,SAqDvC,UArDuC,KAqDvC,YArDuC;AAtE3C,SAAS,yBAAyB;AAClC,SAAS,uBAAuB,6BAA6B;AAC7D,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,oBAAoB;AAC7B,SAAS,gCAAgC;AACzC,SAAS,QAAQ,oBAAoB,qBAAqB;AAK1D,MAAM,YAAY;AAElB,MAAM,UAAU,kBAAkB,KAAK,EAAE,WAAW,MAAM,CAAC,EAAE,WAAW,SAAS,YAAY,cAAc,OAAO;AAAA,EAChH,mBAAmB;AAAA,EACnB,eAAe;AAAA,EACf,CAAC,UAAU;AAAA,EACX,kBAAkB;AACpB,EAAE;AAEF,MAAM,iBAAiB,kBAAkB,KAAK,EAAE,GAAG,mBAAmB;AACtE,MAAM,sBAAsB,kBAAkB,UAAU,EAAE,GAAG,mBAAmB;AAEhF,MAAM,mBAAmB,CAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EAC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I,QAAQ;AACV,WACE;AAAA,MAAC;AAAA;AAAA,QACC,YAAY;AAAA,UACV;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEJ,+BAAC,iBAAc,WAAU,kBACvB;AAAA,+BAAC,sBAAmB,WAAU,wBAC5B;AAAA,iCAAC,sBACE;AAAA;AAAA,cACA;AAAA,eACH;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC;AAAA,gBACA,MAAM,mBAAmB,WAAW,oBAAoB;AAAA;AAAA,YAC1D;AAAA,aACF;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,OAAO,CAAC,CAAC;AAAA,cACT,cAAc,QAAQ,qBAAqB,eAAe;AAAA,cAEzD;AAAA;AAAA,UACH;AAAA,WACF;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,QACV;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,6BAAC,sBACE;AAAA;AAAA,UACA;AAAA,WACH;AAAA,QACA,oBAAC,qBAAkB,UAAoB,MAAM,mBAAmB,WAAW,oBAAoB,iBAAiB;AAAA;AAAA;AAAA,EAClH;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,eAAe;AAChC,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAEvC,IAAO,2BAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { PropTypes, describe } from "@elliemae/ds-utilities";
3
+ import { PropTypes, describe } from "@elliemae/ds-props-helpers";
4
4
  const DSError = ({ hasError = false, errorText = "Error" }) => {
5
5
  if (!hasError)
6
6
  return null;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/FormItem/Error/DSError.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\n\nconst DSError = ({ hasError = false, errorText = 'Error' }) => {\n if (!hasError) return null;\n return <div className=\"em-ds-error\">{errorText}</div>;\n};\n\nconst props = {\n /** error state */\n hasError: PropTypes.bool.description('error state'),\n /** error label text */\n errorText: PropTypes.string.description('error label text'),\n};\n\nDSError.propTypes = props;\nDSError.displayName = 'DSError';\nconst DSErrorWithSchema = describe(DSError);\n\nDSErrorWithSchema.propTypes = props;\n\nexport default DSError;\nexport { DSErrorWithSchema, DSError };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\n\nconst DSError = ({ hasError = false, errorText = 'Error' }) => {\n if (!hasError) return null;\n return <div className=\"em-ds-error\">{errorText}</div>;\n};\n\nconst props = {\n /** error state */\n hasError: PropTypes.bool.description('error state'),\n /** error label text */\n errorText: PropTypes.string.description('error label text'),\n};\n\nDSError.propTypes = props;\nDSError.displayName = 'DSError';\nconst DSErrorWithSchema = describe(DSError);\n\nDSErrorWithSchema.propTypes = props;\n\nexport default DSError;\nexport { DSErrorWithSchema, DSError };\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACKd;AAJT,SAAS,WAAW,gBAAgB;AAEpC,MAAM,UAAU,CAAC,EAAE,WAAW,OAAO,YAAY,QAAQ,MAAM;AAC7D,MAAI,CAAC;AAAU,WAAO;AACtB,SAAO,oBAAC,SAAI,WAAU,eAAe,qBAAU;AACjD;AAEA,MAAM,QAAQ;AAAA,EAEZ,UAAU,UAAU,KAAK,YAAY,aAAa;AAAA,EAElD,WAAW,UAAU,OAAO,YAAY,kBAAkB;AAC5D;AAEA,QAAQ,YAAY;AACpB,QAAQ,cAAc;AACtB,MAAM,oBAAoB,SAAS,OAAO;AAE1C,kBAAkB,YAAY;AAE9B,IAAO,kBAAQ;",
6
6
  "names": []
7
7
  }
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import PropTypes from "prop-types";
4
4
  import { aggregatedClasses } from "@elliemae/ds-classnames";
5
5
  import { DSTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
6
- import { RequiredMark } from "../../RequiredMark";
6
+ import { RequiredMark } from "../../RequiredMark/index.js";
7
7
  const blockName = "em-ds-label";
8
8
  const Text = aggregatedClasses("span")(blockName, "text");
9
9
  const DSLabel = ({ children, label, htmlFor, required, optional, truncateText = true, isGroup = false }) => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/FormItem/Label/DSLabel.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable jsx-a11y/label-has-associated-control */\n/* eslint-disable react/no-unknown-property, jsx-a11y/label-has-for */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { RequiredMark } from '../../RequiredMark';\n\nconst blockName = 'em-ds-label';\n\nconst Text = aggregatedClasses('span')(blockName, 'text');\n\nconst DSLabel = ({ children, label, htmlFor, required, optional, truncateText = true, isGroup = false }) => {\n const Tag = isGroup ? 'legend' : 'label';\n\n return (\n <Tag className={`${blockName}${isGroup ? ` ${blockName}--group` : ''}`} htmlFor={htmlFor}>\n {truncateText ? <DSTruncatedTooltipText value={children || label} /> : <Text>{label}</Text>}\n <RequiredMark optional={optional} required={required} />\n </Tag>\n );\n};\n\nDSLabel.propTypes = {\n children: PropTypes.string,\n label: PropTypes.string,\n htmlFor: PropTypes.string,\n required: PropTypes.bool,\n optional: PropTypes.bool,\n truncateText: PropTypes.bool,\n isGroup: PropTypes.bool,\n};\n\nexport { DSLabel };\nexport default DSLabel;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable jsx-a11y/label-has-associated-control */\n/* eslint-disable react/no-unknown-property, jsx-a11y/label-has-for */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { RequiredMark } from '../../RequiredMark/index.js';\n\nconst blockName = 'em-ds-label';\n\nconst Text = aggregatedClasses('span')(blockName, 'text');\n\nconst DSLabel = ({ children, label, htmlFor, required, optional, truncateText = true, isGroup = false }) => {\n const Tag = isGroup ? 'legend' : 'label';\n\n return (\n <Tag className={`${blockName}${isGroup ? ` ${blockName}--group` : ''}`} htmlFor={htmlFor}>\n {truncateText ? <DSTruncatedTooltipText value={children || label} /> : <Text>{label}</Text>}\n <RequiredMark optional={optional} required={required} />\n </Tag>\n );\n};\n\nDSLabel.propTypes = {\n children: PropTypes.string,\n label: PropTypes.string,\n htmlFor: PropTypes.string,\n required: PropTypes.bool,\n optional: PropTypes.bool,\n truncateText: PropTypes.bool,\n isGroup: PropTypes.bool,\n};\n\nexport { DSLabel };\nexport default DSLabel;\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACgBnB,SACkB,KADlB;AAbJ,OAAO,eAAe;AACtB,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAE7B,MAAM,YAAY;AAElB,MAAM,OAAO,kBAAkB,MAAM,EAAE,WAAW,MAAM;AAExD,MAAM,UAAU,CAAC,EAAE,UAAU,OAAO,SAAS,UAAU,UAAU,eAAe,MAAM,UAAU,MAAM,MAAM;AAC1G,QAAM,MAAM,UAAU,WAAW;AAEjC,SACE,qBAAC,OAAI,WAAW,GAAG,YAAY,UAAU,IAAI,qBAAqB,MAAM,SACrE;AAAA,mBAAe,oBAAC,0BAAuB,OAAO,YAAY,OAAO,IAAK,oBAAC,QAAM,iBAAM;AAAA,IACpF,oBAAC,gBAAa,UAAoB,UAAoB;AAAA,KACxD;AAEJ;AAEA,QAAQ,YAAY;AAAA,EAClB,UAAU,UAAU;AAAA,EACpB,OAAO,UAAU;AAAA,EACjB,SAAS,UAAU;AAAA,EACnB,UAAU,UAAU;AAAA,EACpB,UAAU,UAAU;AAAA,EACpB,cAAc,UAAU;AAAA,EACxB,SAAS,UAAU;AACrB;AAGA,IAAO,kBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
- import { DSTextBox } from "../TextBox";
3
- import { DSLabel } from "./Label/DSLabel";
4
- import { Feedback } from "./Feedback";
5
- import { FORMITEM_LAYOUT_VARIANTS } from "./variants";
2
+ import { DSTextBox } from "../TextBox/index.js";
3
+ import { DSLabel } from "./Label/DSLabel.js";
4
+ import { Feedback } from "./Feedback.js";
5
+ import { FORMITEM_LAYOUT_VARIANTS } from "./variants.js";
6
6
  const defaultProps = {
7
7
  leftLabel: false,
8
8
  floatingLabel: false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FormItem/defaultProps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { DSTextBox } from '../TextBox';\nimport { DSLabel } from './Label/DSLabel';\nimport { Feedback } from './Feedback';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants';\n\nexport const defaultProps = {\n leftLabel: false,\n floatingLabel: false,\n inputComponent: DSTextBox,\n labelComponent: DSLabel,\n feedbackComponent: Feedback,\n hasError: false,\n validationMessage: '',\n feedbackMessage: '',\n focused: false,\n autoFocus: false,\n disabled: false,\n onChange: () => {},\n onBlur: () => {},\n onFocus: () => {},\n onPaste: () => {},\n onKeyUp: () => {},\n extraInputProps: {},\n leftAddon: null,\n rightAddon: null,\n required: false,\n optional: false,\n useSubfix: '',\n suffix: '',\n variant: FORMITEM_LAYOUT_VARIANTS.DEFAULT,\n containerProps: {},\n fitContent: false,\n withHighlight: false,\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { DSTextBox } from '../TextBox/index.js';\nimport { DSLabel } from './Label/DSLabel.js';\nimport { Feedback } from './Feedback.js';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants.js';\n\nexport const defaultProps = {\n leftLabel: false,\n floatingLabel: false,\n inputComponent: DSTextBox,\n labelComponent: DSLabel,\n feedbackComponent: Feedback,\n hasError: false,\n validationMessage: '',\n feedbackMessage: '',\n focused: false,\n autoFocus: false,\n disabled: false,\n onChange: () => {},\n onBlur: () => {},\n onFocus: () => {},\n onPaste: () => {},\n onKeyUp: () => {},\n extraInputProps: {},\n leftAddon: null,\n rightAddon: null,\n required: false,\n optional: false,\n useSubfix: '',\n suffix: '',\n variant: FORMITEM_LAYOUT_VARIANTS.DEFAULT,\n containerProps: {},\n fitContent: false,\n withHighlight: false,\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,gCAAgC;AAElC,MAAM,eAAe;AAAA,EAC1B,WAAW;AAAA,EACX,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,QAAQ,MAAM;AAAA,EAAC;AAAA,EACf,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,iBAAiB,CAAC;AAAA,EAClB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS,yBAAyB;AAAA,EAClC,gBAAgB,CAAC;AAAA,EACjB,YAAY;AAAA,EACZ,eAAe;AACjB;",
6
6
  "names": []
7
7
  }
@@ -5,8 +5,8 @@ import {
5
5
  FORMITEM_LAYOUT_VARIANTS,
6
6
  DSError,
7
7
  DSFormItemLayoutWithSchema
8
- } from "./DSFormItemLayout";
9
- import { DSErrorWithSchema } from "./Error/DSError";
8
+ } from "./DSFormItemLayout.js";
9
+ import { DSErrorWithSchema } from "./Error/DSError.js";
10
10
  export {
11
11
  DSError,
12
12
  DSErrorWithSchema,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FormItem/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n default,\n DSFormItemLayout,\n FORMITEM_LAYOUT_VARIANTS,\n DSError,\n DSFormItemLayoutWithSchema,\n} from './DSFormItemLayout';\nexport { DSErrorWithSchema } from './Error/DSError';\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n default,\n DSFormItemLayout,\n FORMITEM_LAYOUT_VARIANTS,\n DSError,\n DSFormItemLayoutWithSchema,\n} from './DSFormItemLayout.js';\nexport { DSErrorWithSchema } from './Error/DSError.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,EACE,WAAAA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,yBAAyB;",
6
6
  "names": ["default"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { PropTypes } from "@elliemae/ds-utilities";
3
- import { FORMITEM_LAYOUT_VARIANTS } from "./variants";
2
+ import { PropTypes } from "@elliemae/ds-props-helpers";
3
+ import { FORMITEM_LAYOUT_VARIANTS } from "./variants.js";
4
4
  const props = {
5
5
  containerProps: PropTypes.object.description("props to inject to form item layout wrapper"),
6
6
  disableTooltip: PropTypes.bool.description("Whether to show a tooltip or not when text does not fit").defaultValue(true),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/FormItem/props.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-utilities';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants';\n\nexport const props = {\n /** props to inject to form item layout wrapper */\n containerProps: PropTypes.object.description('props to inject to form item layout wrapper'),\n /** disableTooltip */\n disableTooltip: PropTypes.bool\n .description('Whether to show a tooltip or not when text does not fit')\n .defaultValue(true),\n /** position label on the left */\n leftLabel: PropTypes.bool.description('position label on the left'),\n /** turn on floating label */\n floatingLabel: PropTypes.bool.description('turn on floating label'),\n /** id for form item layout */\n id: PropTypes.string.description('id for form item layout'),\n /** html name prop for form tags */\n name: PropTypes.string.description('html name prop for form tags'),\n /** form item layout element value */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description(\n 'form item layout element value',\n ),\n /** Any input component */\n inputComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description('Any input component'),\n /** isShowElipsisActive */\n /** isShowElipsisActive */\n isShowElipsisActive: PropTypes.bool\n .description('Wheter to enable the ellipsis and tooltip functionality or not')\n .defaultValue(true),\n /** Label component */\n labelComponent: PropTypes.func.description('Label component'),\n /** feedback component to embed on form item */\n feedbackComponent: PropTypes.func.description('feedback component to embed on form item'),\n /** label text */\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description('label text'),\n /** error state */\n hasError: PropTypes.bool.description('error state'),\n /** add fit content to form container */\n fitContent: PropTypes.bool.description(\n 'Adds fit content css property to the main container, making the layout width adapt to the input component',\n ),\n /** validation state */\n validationState: PropTypes.oneOf(['success', 'error', 'warning']).description('validation state'),\n /** validation message */\n validationMessage: PropTypes.string.description('validation message'),\n /** feedback message */\n feedbackMessage: PropTypes.string.description('feedback message'),\n /** read only form item */\n readOnly: PropTypes.bool.description('read only form item'),\n /** focused state */\n focused: PropTypes.bool.description('focused state'),\n /** input type */\n type: PropTypes.string.description('input type'),\n /** auto focus input */\n autoFocus: PropTypes.bool.description('auto focus input'),\n /** disabled state */\n disabled: PropTypes.bool.description('disabled state'),\n /** on change handler */\n onChange: PropTypes.func.description('on change handler'),\n /** on blur handler */\n onBlur: PropTypes.func.description('on blur handler'),\n /** extra input props to inject */\n extraInputProps: PropTypes.object.description('extra input props to inject'),\n /** extra content */\n extraContent: PropTypes.element.description('extra content'),\n /** left addon for form item */\n leftAddon: PropTypes.element.description('left addon for form item'),\n /** right addon for form item */\n rightAddon: PropTypes.element.description('right addon for form item'),\n /** add required mark */\n required: PropTypes.bool.description('add required mark'),\n /** add optional mark */\n optional: PropTypes.bool.description('add optional mark'),\n /** on focus handler */\n onFocus: PropTypes.func.description('on focus handler'),\n /** on paste handler */\n onPaste: PropTypes.func.description('on paste handler'),\n /** add truncation and ellipsis */\n truncateText: PropTypes.bool.description('add truncation and ellipsis'),\n /** on key up event handler */\n onKeyUp: PropTypes.func.description('on key up event handler'),\n /** mask for input mask component */\n mask: PropTypes.oneOfType([\n // PropTypes.oneOf(maskTypes),\n PropTypes.string,\n PropTypes.func,\n PropTypes.object,\n PropTypes.array,\n ]).description('mask for input mask component'),\n /** add suffix to input */\n useSubfix: PropTypes.string.description('add suffix to input'),\n /** suffix for input */\n suffix: PropTypes.string.description('suffix for input'),\n /** form item layout type */\n variant: PropTypes.oneOf([\n FORMITEM_LAYOUT_VARIANTS.DEFAULT,\n FORMITEM_LAYOUT_VARIANTS.FOCUS,\n FORMITEM_LAYOUT_VARIANTS.ACTIVE,\n FORMITEM_LAYOUT_VARIANTS.DISABLED,\n FORMITEM_LAYOUT_VARIANTS.READ_ONLY,\n FORMITEM_LAYOUT_VARIANTS.OPTIONAL,\n ]).description('form item layout type'),\n withHighlight: PropTypes.bool.description('adds highlight style to the input component'),\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants.js';\n\nexport const props = {\n /** props to inject to form item layout wrapper */\n containerProps: PropTypes.object.description('props to inject to form item layout wrapper'),\n /** disableTooltip */\n disableTooltip: PropTypes.bool\n .description('Whether to show a tooltip or not when text does not fit')\n .defaultValue(true),\n /** position label on the left */\n leftLabel: PropTypes.bool.description('position label on the left'),\n /** turn on floating label */\n floatingLabel: PropTypes.bool.description('turn on floating label'),\n /** id for form item layout */\n id: PropTypes.string.description('id for form item layout'),\n /** html name prop for form tags */\n name: PropTypes.string.description('html name prop for form tags'),\n /** form item layout element value */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description(\n 'form item layout element value',\n ),\n /** Any input component */\n inputComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]).description('Any input component'),\n /** isShowElipsisActive */\n /** isShowElipsisActive */\n isShowElipsisActive: PropTypes.bool\n .description('Wheter to enable the ellipsis and tooltip functionality or not')\n .defaultValue(true),\n /** Label component */\n labelComponent: PropTypes.func.description('Label component'),\n /** feedback component to embed on form item */\n feedbackComponent: PropTypes.func.description('feedback component to embed on form item'),\n /** label text */\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description('label text'),\n /** error state */\n hasError: PropTypes.bool.description('error state'),\n /** add fit content to form container */\n fitContent: PropTypes.bool.description(\n 'Adds fit content css property to the main container, making the layout width adapt to the input component',\n ),\n /** validation state */\n validationState: PropTypes.oneOf(['success', 'error', 'warning']).description('validation state'),\n /** validation message */\n validationMessage: PropTypes.string.description('validation message'),\n /** feedback message */\n feedbackMessage: PropTypes.string.description('feedback message'),\n /** read only form item */\n readOnly: PropTypes.bool.description('read only form item'),\n /** focused state */\n focused: PropTypes.bool.description('focused state'),\n /** input type */\n type: PropTypes.string.description('input type'),\n /** auto focus input */\n autoFocus: PropTypes.bool.description('auto focus input'),\n /** disabled state */\n disabled: PropTypes.bool.description('disabled state'),\n /** on change handler */\n onChange: PropTypes.func.description('on change handler'),\n /** on blur handler */\n onBlur: PropTypes.func.description('on blur handler'),\n /** extra input props to inject */\n extraInputProps: PropTypes.object.description('extra input props to inject'),\n /** extra content */\n extraContent: PropTypes.element.description('extra content'),\n /** left addon for form item */\n leftAddon: PropTypes.element.description('left addon for form item'),\n /** right addon for form item */\n rightAddon: PropTypes.element.description('right addon for form item'),\n /** add required mark */\n required: PropTypes.bool.description('add required mark'),\n /** add optional mark */\n optional: PropTypes.bool.description('add optional mark'),\n /** on focus handler */\n onFocus: PropTypes.func.description('on focus handler'),\n /** on paste handler */\n onPaste: PropTypes.func.description('on paste handler'),\n /** add truncation and ellipsis */\n truncateText: PropTypes.bool.description('add truncation and ellipsis'),\n /** on key up event handler */\n onKeyUp: PropTypes.func.description('on key up event handler'),\n /** mask for input mask component */\n mask: PropTypes.oneOfType([\n // PropTypes.oneOf(maskTypes),\n PropTypes.string,\n PropTypes.func,\n PropTypes.object,\n PropTypes.array,\n ]).description('mask for input mask component'),\n /** add suffix to input */\n useSubfix: PropTypes.string.description('add suffix to input'),\n /** suffix for input */\n suffix: PropTypes.string.description('suffix for input'),\n /** form item layout type */\n variant: PropTypes.oneOf([\n FORMITEM_LAYOUT_VARIANTS.DEFAULT,\n FORMITEM_LAYOUT_VARIANTS.FOCUS,\n FORMITEM_LAYOUT_VARIANTS.ACTIVE,\n FORMITEM_LAYOUT_VARIANTS.DISABLED,\n FORMITEM_LAYOUT_VARIANTS.READ_ONLY,\n FORMITEM_LAYOUT_VARIANTS.OPTIONAL,\n ]).description('form item layout type'),\n withHighlight: PropTypes.bool.description('adds highlight style to the input component'),\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,gCAAgC;AAElC,MAAM,QAAQ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