@progress/kendo-react-inputs 5.7.0-sig.202208281415 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (793) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +111 -0
  3. package/README.md +4 -4
  4. package/about.md +1 -1
  5. package/dist/cdn/js/kendo-react-inputs.js +1 -1
  6. package/dist/es/checkbox/Checkbox.js +1 -0
  7. package/dist/es/colors/ColorInput.js +1 -1
  8. package/dist/es/colors/ColorPalette.d.ts +1 -1
  9. package/dist/es/colors/ColorPicker.js +1 -1
  10. package/dist/es/colors/FlatColorPicker.js +1 -1
  11. package/dist/es/input/InputClearValue.d.ts +15 -0
  12. package/dist/es/input/InputClearValue.js +24 -0
  13. package/dist/es/input/InputPrefix.d.ts +15 -0
  14. package/dist/es/input/InputPrefix.js +24 -0
  15. package/dist/es/input/InputSeparator.d.ts +15 -0
  16. package/dist/es/input/InputSeparator.js +24 -0
  17. package/dist/es/input/InputSuffix.d.ts +15 -0
  18. package/dist/es/input/InputSuffix.js +24 -0
  19. package/dist/es/input/InputValidationIcon.d.ts +14 -0
  20. package/dist/es/input/InputValidationIcon.js +20 -0
  21. package/dist/es/main.d.ts +6 -0
  22. package/dist/es/main.js +6 -0
  23. package/dist/es/maskedtextbox/MaskedTextBox.d.ts +1 -1
  24. package/dist/es/numerictextbox/NumericTextBox.js +2 -2
  25. package/dist/es/package-metadata.js +1 -1
  26. package/dist/es/rating/Rating.js +1 -1
  27. package/dist/es/signature/Signature.js +5 -5
  28. package/dist/es/signature/interfaces/SignatureProps.d.ts +4 -0
  29. package/dist/es/slider/Slider.js +2 -6
  30. package/dist/es/slider/SliderLabel.js +1 -2
  31. package/dist/es/switch/Switch.js +5 -5
  32. package/dist/es/textbox/Textbox.d.ts +69 -0
  33. package/dist/es/textbox/Textbox.js +111 -0
  34. package/dist/npm/checkbox/Checkbox.js +1 -0
  35. package/dist/npm/colors/ColorInput.js +1 -1
  36. package/dist/npm/colors/ColorPalette.d.ts +1 -1
  37. package/dist/npm/colors/ColorPicker.js +1 -1
  38. package/dist/npm/colors/FlatColorPicker.js +1 -1
  39. package/dist/npm/input/InputClearValue.d.ts +15 -0
  40. package/dist/npm/input/InputClearValue.js +27 -0
  41. package/dist/npm/input/InputPrefix.d.ts +15 -0
  42. package/dist/npm/input/InputPrefix.js +27 -0
  43. package/dist/npm/input/InputSeparator.d.ts +15 -0
  44. package/dist/npm/input/InputSeparator.js +27 -0
  45. package/dist/npm/input/InputSuffix.d.ts +15 -0
  46. package/dist/npm/input/InputSuffix.js +27 -0
  47. package/dist/npm/input/InputValidationIcon.d.ts +14 -0
  48. package/dist/npm/input/InputValidationIcon.js +23 -0
  49. package/dist/npm/main.d.ts +6 -0
  50. package/dist/npm/main.js +13 -1
  51. package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +1 -1
  52. package/dist/npm/numerictextbox/NumericTextBox.js +2 -2
  53. package/dist/npm/package-metadata.js +1 -1
  54. package/dist/npm/rating/Rating.js +1 -1
  55. package/dist/npm/signature/Signature.js +5 -5
  56. package/dist/npm/signature/interfaces/SignatureProps.d.ts +4 -0
  57. package/dist/npm/slider/Slider.js +2 -6
  58. package/dist/npm/slider/SliderLabel.js +1 -2
  59. package/dist/npm/switch/Switch.js +5 -5
  60. package/dist/npm/textbox/Textbox.d.ts +69 -0
  61. package/dist/npm/textbox/Textbox.js +114 -0
  62. package/dist/systemjs/kendo-react-inputs.js +1 -1
  63. package/package.json +19 -17
  64. package/api.json +0 -71211
  65. package/dist/npm/signature/interfaces/SignatureState.d.ts +0 -15
  66. package/dist/npm/signature/interfaces/SignatureState.js +0 -2
  67. package/docs/_meta.yml +0 -3
  68. package/docs/api/Checkbox.md +0 -23
  69. package/docs/api/CheckboxBlurEvent.md +0 -132
  70. package/docs/api/CheckboxChangeEvent.md +0 -167
  71. package/docs/api/CheckboxFocusEvent.md +0 -132
  72. package/docs/api/CheckboxHandle.md +0 -167
  73. package/docs/api/CheckboxProps.md +0 -1068
  74. package/docs/api/CheckboxPropsContext.md +0 -17
  75. package/docs/api/ColorGradient.md +0 -27
  76. package/docs/api/ColorGradientChangeEvent.md +0 -167
  77. package/docs/api/ColorGradientHandle.md +0 -99
  78. package/docs/api/ColorGradientProps.md +0 -538
  79. package/docs/api/ColorGradientPropsContext.md +0 -17
  80. package/docs/api/ColorPalette.md +0 -26
  81. package/docs/api/ColorPaletteChangeEvent.md +0 -202
  82. package/docs/api/ColorPaletteHandle.md +0 -64
  83. package/docs/api/ColorPaletteProps.md +0 -542
  84. package/docs/api/ColorPalettePropsContext.md +0 -17
  85. package/docs/api/ColorPicker.md +0 -23
  86. package/docs/api/ColorPickerActiveColorClick.md +0 -132
  87. package/docs/api/ColorPickerBlurEvent.md +0 -97
  88. package/docs/api/ColorPickerChangeEvent.md +0 -132
  89. package/docs/api/ColorPickerFocusEvent.md +0 -97
  90. package/docs/api/ColorPickerGradientSettings.md +0 -102
  91. package/docs/api/ColorPickerPaletteSettings.md +0 -148
  92. package/docs/api/ColorPickerPopupSettings.md +0 -97
  93. package/docs/api/ColorPickerProps.md +0 -1078
  94. package/docs/api/ColorPickerPropsContext.md +0 -17
  95. package/docs/api/ColorPickerView.md +0 -19
  96. package/docs/api/Direction.md +0 -12
  97. package/docs/api/FlatColorPicker.md +0 -13
  98. package/docs/api/FlatColorPickerHandle.md +0 -127
  99. package/docs/api/FlatColorPickerProps.md +0 -412
  100. package/docs/api/FormComponentValidity.md +0 -428
  101. package/docs/api/Input.md +0 -17
  102. package/docs/api/InputChangeEvent.md +0 -167
  103. package/docs/api/InputHandle.md +0 -204
  104. package/docs/api/InputProps.md +0 -428
  105. package/docs/api/InputPropsContext.md +0 -17
  106. package/docs/api/MaskedTextBox.md +0 -17
  107. package/docs/api/MaskedTextBoxChangeEvent.md +0 -237
  108. package/docs/api/MaskedTextBoxEvent.md +0 -132
  109. package/docs/api/MaskedTextBoxHandle.md +0 -265
  110. package/docs/api/MaskedTextBoxProps.md +0 -1395
  111. package/docs/api/MaskedTextBoxPropsContext.md +0 -17
  112. package/docs/api/NumericTextBox.md +0 -13
  113. package/docs/api/NumericTextBoxBlurEvent.md +0 -132
  114. package/docs/api/NumericTextBoxChangeEvent.md +0 -167
  115. package/docs/api/NumericTextBoxFocusEvent.md +0 -132
  116. package/docs/api/NumericTextBoxHandle.md +0 -197
  117. package/docs/api/NumericTextBoxProps.md +0 -1471
  118. package/docs/api/NumericTextBoxPropsContext.md +0 -17
  119. package/docs/api/RadioButton.md +0 -17
  120. package/docs/api/RadioButtonBlurEvent.md +0 -132
  121. package/docs/api/RadioButtonChangeEvent.md +0 -167
  122. package/docs/api/RadioButtonFocusEvent.md +0 -132
  123. package/docs/api/RadioButtonHandle.md +0 -97
  124. package/docs/api/RadioButtonProps.md +0 -791
  125. package/docs/api/RadioButtonPropsContext.md +0 -17
  126. package/docs/api/RadioGroup.md +0 -17
  127. package/docs/api/RadioGroupChangeEvent.md +0 -167
  128. package/docs/api/RadioGroupFocusEvent.md +0 -132
  129. package/docs/api/RadioGroupHandle.md +0 -97
  130. package/docs/api/RadioGroupProps.md +0 -707
  131. package/docs/api/RadioGroupPropsContext.md +0 -17
  132. package/docs/api/Range.md +0 -13
  133. package/docs/api/RangeSlider.md +0 -17
  134. package/docs/api/RangeSliderChangeEvent.md +0 -132
  135. package/docs/api/RangeSliderHandle.md +0 -127
  136. package/docs/api/RangeSliderProps.md +0 -853
  137. package/docs/api/RangeSliderPropsContext.md +0 -17
  138. package/docs/api/Rating.md +0 -17
  139. package/docs/api/RatingChangeEvent.md +0 -132
  140. package/docs/api/RatingFocusEvent.md +0 -97
  141. package/docs/api/RatingHandle.md +0 -97
  142. package/docs/api/RatingItem.md +0 -13
  143. package/docs/api/RatingItemFocusEvent.md +0 -97
  144. package/docs/api/RatingItemHandle.md +0 -132
  145. package/docs/api/RatingItemKeyboardEvent.md +0 -97
  146. package/docs/api/RatingItemMouseEvent.md +0 -97
  147. package/docs/api/RatingItemProps.md +0 -941
  148. package/docs/api/RatingKeyboardEvent.md +0 -97
  149. package/docs/api/RatingMouseEvent.md +0 -97
  150. package/docs/api/RatingProps.md +0 -1308
  151. package/docs/api/RatingPropsContext.md +0 -17
  152. package/docs/api/Signature.md +0 -13
  153. package/docs/api/SignatureBlurEvent.md +0 -132
  154. package/docs/api/SignatureChangeEvent.md +0 -167
  155. package/docs/api/SignatureCloseEvent.md +0 -132
  156. package/docs/api/SignatureFocusEvent.md +0 -132
  157. package/docs/api/SignatureHandle.md +0 -162
  158. package/docs/api/SignatureOpenEvent.md +0 -132
  159. package/docs/api/SignatureProps.md +0 -1592
  160. package/docs/api/SignaturePropsContext.md +0 -17
  161. package/docs/api/Slider.md +0 -17
  162. package/docs/api/SliderChangeEvent.md +0 -167
  163. package/docs/api/SliderHandle.md +0 -99
  164. package/docs/api/SliderLabel.md +0 -62
  165. package/docs/api/SliderLabelProps.md +0 -171
  166. package/docs/api/SliderProps.md +0 -902
  167. package/docs/api/SliderPropsContext.md +0 -17
  168. package/docs/api/Switch.md +0 -17
  169. package/docs/api/SwitchChangeEvent.md +0 -167
  170. package/docs/api/SwitchHandle.md +0 -239
  171. package/docs/api/SwitchProps.md +0 -1081
  172. package/docs/api/SwitchPropsContext.md +0 -17
  173. package/docs/api/TextArea.md +0 -27
  174. package/docs/api/TextAreaBlurEvent.md +0 -132
  175. package/docs/api/TextAreaChangeEvent.md +0 -167
  176. package/docs/api/TextAreaFocusEvent.md +0 -132
  177. package/docs/api/TextAreaProps.md +0 -1082
  178. package/docs/api/TextAreaPropsContext.md +0 -17
  179. package/docs/api/TileSize.md +0 -18
  180. package/docs/api/ToggleBaseProps.md +0 -132
  181. package/docs/api/_meta.yml +0 -3
  182. package/docs/api/index.md +0 -425
  183. package/docs/auto-imports.js +0 -40
  184. package/docs/checkbox/_meta.yml +0 -3
  185. package/docs/checkbox/accessibility.md +0 -26
  186. package/docs/checkbox/appearance.md +0 -28
  187. package/docs/checkbox/controlled.md +0 -57
  188. package/docs/checkbox/default-state.md +0 -24
  189. package/docs/checkbox/disabled.md +0 -23
  190. package/docs/checkbox/forms-support.md +0 -90
  191. package/docs/checkbox/index.md +0 -46
  192. package/docs/checkbox/keyboard-navigation.md +0 -36
  193. package/docs/checkbox/labels.md +0 -36
  194. package/docs/colorgradient/_meta.yml +0 -3
  195. package/docs/colorgradient/color-contrast.md +0 -34
  196. package/docs/colorgradient/controlled.md +0 -32
  197. package/docs/colorgradient/disabled.md +0 -23
  198. package/docs/colorgradient/index.md +0 -42
  199. package/docs/colorgradient/noopacity.md +0 -28
  200. package/docs/colorpalette/_meta.yml +0 -3
  201. package/docs/colorpalette/assets/demo-img.png +0 -0
  202. package/docs/colorpalette/controlled.md +0 -32
  203. package/docs/colorpalette/custom.md +0 -23
  204. package/docs/colorpalette/disabled.md +0 -23
  205. package/docs/colorpalette/events.md +0 -27
  206. package/docs/colorpalette/index.md +0 -47
  207. package/docs/colorpalette/keyboard-navigation.md +0 -36
  208. package/docs/colorpalette/presets.md +0 -23
  209. package/docs/colorpicker/_meta.yml +0 -3
  210. package/docs/colorpicker/appearance.md +0 -30
  211. package/docs/colorpicker/color-contrast.md +0 -33
  212. package/docs/colorpicker/combined-views.md +0 -46
  213. package/docs/colorpicker/controlled.md +0 -57
  214. package/docs/colorpicker/custom.md +0 -67
  215. package/docs/colorpicker/default-value.md +0 -20
  216. package/docs/colorpicker/disabled.md +0 -20
  217. package/docs/colorpicker/index.md +0 -41
  218. package/docs/colorpicker/keyboard-navigation.md +0 -39
  219. package/docs/custom-attributes.md +0 -27
  220. package/docs/examples/attribute/class/main.tsx +0 -44
  221. package/docs/examples/attribute/func/main.tsx +0 -58
  222. package/docs/examples/checkbox/appearance/func/main.tsx +0 -33
  223. package/docs/examples/checkbox/controlled/checked/class/main.tsx +0 -32
  224. package/docs/examples/checkbox/controlled/checked/func/main.tsx +0 -29
  225. package/docs/examples/checkbox/controlled/value/class/main.tsx +0 -32
  226. package/docs/examples/checkbox/controlled/value/func/main.tsx +0 -28
  227. package/docs/examples/checkbox/default/func/main.tsx +0 -15
  228. package/docs/examples/checkbox/disabled/func/main.tsx +0 -19
  229. package/docs/examples/checkbox/forms/basic/class/main.tsx +0 -79
  230. package/docs/examples/checkbox/forms/basic/func/main.tsx +0 -71
  231. package/docs/examples/checkbox/forms/custom-message/class/main.tsx +0 -117
  232. package/docs/examples/checkbox/forms/custom-message/func/main.tsx +0 -124
  233. package/docs/examples/checkbox/forms/disable-styles/class/main.tsx +0 -126
  234. package/docs/examples/checkbox/forms/disable-styles/func/main.tsx +0 -125
  235. package/docs/examples/checkbox/forms/kendo-react-form/func/main.tsx +0 -137
  236. package/docs/examples/checkbox/keyboard/class/main.tsx +0 -32
  237. package/docs/examples/checkbox/keyboard/func/main.tsx +0 -27
  238. package/docs/examples/checkbox/labels/custom/func/main.tsx +0 -20
  239. package/docs/examples/checkbox/labels/setup/func/main.tsx +0 -20
  240. package/docs/examples/checkbox/main/func/main.tsx +0 -22
  241. package/docs/examples/colorgradient/colorcontrast/class/main.tsx +0 -48
  242. package/docs/examples/colorgradient/colorcontrast/func/main.tsx +0 -43
  243. package/docs/examples/colorgradient/controlled/class/main.tsx +0 -29
  244. package/docs/examples/colorgradient/controlled/func/main.tsx +0 -21
  245. package/docs/examples/colorgradient/disabled/func/main.tsx +0 -17
  246. package/docs/examples/colorgradient/opacity/class/main.tsx +0 -32
  247. package/docs/examples/colorgradient/opacity/func/main.tsx +0 -24
  248. package/docs/examples/colorgradient/overview/class/main.tsx +0 -42
  249. package/docs/examples/colorgradient/overview/func/main.tsx +0 -34
  250. package/docs/examples/colorpalette/controlled/class/main.tsx +0 -25
  251. package/docs/examples/colorpalette/controlled/func/main.tsx +0 -17
  252. package/docs/examples/colorpalette/custom/func/main.tsx +0 -13
  253. package/docs/examples/colorpalette/disabled/func/main.tsx +0 -13
  254. package/docs/examples/colorpalette/keyboard/class/main.tsx +0 -30
  255. package/docs/examples/colorpalette/keyboard/func/main.tsx +0 -30
  256. package/docs/examples/colorpalette/overview/basic/class/main.tsx +0 -55
  257. package/docs/examples/colorpalette/overview/basic/class/styles.css +0 -50
  258. package/docs/examples/colorpalette/overview/basic/func/main.tsx +0 -47
  259. package/docs/examples/colorpalette/overview/basic/func/styles.css +0 -50
  260. package/docs/examples/colorpalette/overview/events/class/main.tsx +0 -48
  261. package/docs/examples/colorpalette/overview/events/func/main.tsx +0 -40
  262. package/docs/examples/colorpalette/presets/func/main.tsx +0 -70
  263. package/docs/examples/colorpicker/appearance/func/main.tsx +0 -37
  264. package/docs/examples/colorpicker/colorcontrast/class/main.tsx +0 -50
  265. package/docs/examples/colorpicker/colorcontrast/func/main.tsx +0 -44
  266. package/docs/examples/colorpicker/controlled/popup/class/main.tsx +0 -39
  267. package/docs/examples/colorpicker/controlled/popup/func/main.tsx +0 -31
  268. package/docs/examples/colorpicker/controlled/value/class/main.tsx +0 -25
  269. package/docs/examples/colorpicker/controlled/value/func/main.tsx +0 -17
  270. package/docs/examples/colorpicker/custom/custom-icons/func/main.tsx +0 -18
  271. package/docs/examples/colorpicker/custom/gradient/func/main.tsx +0 -24
  272. package/docs/examples/colorpicker/custom/kendo-icons/func/main.tsx +0 -18
  273. package/docs/examples/colorpicker/custom/palette/func/main.tsx +0 -28
  274. package/docs/examples/colorpicker/default/func/main.tsx +0 -24
  275. package/docs/examples/colorpicker/disabled/func/main.tsx +0 -17
  276. package/docs/examples/colorpicker/keyboard/class/main.tsx +0 -30
  277. package/docs/examples/colorpicker/keyboard/func/main.tsx +0 -29
  278. package/docs/examples/colorpicker/overview/func/main.tsx +0 -24
  279. package/docs/examples/colorpicker/view/combined/class/main.tsx +0 -37
  280. package/docs/examples/colorpicker/view/combined/func/main.tsx +0 -27
  281. package/docs/examples/colorpicker/view/popup/class/main.tsx +0 -66
  282. package/docs/examples/colorpicker/view/popup/func/main.tsx +0 -55
  283. package/docs/examples/flatcolorpicker/basic/func/main.tsx +0 -13
  284. package/docs/examples/flatcolorpicker/customization/footer/func/main.tsx +0 -13
  285. package/docs/examples/flatcolorpicker/customization/header/func/main.tsx +0 -13
  286. package/docs/examples/flatcolorpicker/disabled/func/main.tsx +0 -13
  287. package/docs/examples/get-started/func/main.tsx +0 -14
  288. package/docs/examples/globalization/func/main.tsx +0 -47
  289. package/docs/examples/input/counter/main.tsx +0 -30
  290. package/docs/examples/input/forms/basic/class/main.tsx +0 -87
  291. package/docs/examples/input/forms/basic/func/main.tsx +0 -79
  292. package/docs/examples/input/forms/custom-message/class/main.tsx +0 -94
  293. package/docs/examples/input/forms/custom-message/func/main.tsx +0 -86
  294. package/docs/examples/input/forms/disable-styles/class/main.tsx +0 -115
  295. package/docs/examples/input/forms/disable-styles/func/main.tsx +0 -106
  296. package/docs/examples/input/forms/override/class/main.tsx +0 -111
  297. package/docs/examples/input/forms/override/func/main.tsx +0 -102
  298. package/docs/examples/input/main/main.jsx +0 -17
  299. package/docs/examples/input/overview/func/main.tsx +0 -88
  300. package/docs/examples/label/class/main.tsx +0 -69
  301. package/docs/examples/label/func/main.tsx +0 -65
  302. package/docs/examples/maskedtextbox/appearance/func/main.tsx +0 -41
  303. package/docs/examples/maskedtextbox/disabled/func/main.tsx +0 -24
  304. package/docs/examples/maskedtextbox/forms/basic/class/main.tsx +0 -78
  305. package/docs/examples/maskedtextbox/forms/basic/func/main.tsx +0 -70
  306. package/docs/examples/maskedtextbox/forms/custom-message/class/main.tsx +0 -81
  307. package/docs/examples/maskedtextbox/forms/custom-message/func/main.tsx +0 -73
  308. package/docs/examples/maskedtextbox/forms/disable-styles/class/main.tsx +0 -75
  309. package/docs/examples/maskedtextbox/forms/disable-styles/func/main.tsx +0 -67
  310. package/docs/examples/maskedtextbox/forms/override/class/main.tsx +0 -85
  311. package/docs/examples/maskedtextbox/forms/override/func/main.tsx +0 -75
  312. package/docs/examples/maskedtextbox/mask/basic/func/main.tsx +0 -19
  313. package/docs/examples/maskedtextbox/mask/extend/func/main.tsx +0 -35
  314. package/docs/examples/maskedtextbox/overview/basic/func/main.tsx +0 -18
  315. package/docs/examples/maskedtextbox/readonly/func/main.tsx +0 -20
  316. package/docs/examples/maskedtextbox/valid/class/main.tsx +0 -59
  317. package/docs/examples/maskedtextbox/valid/func/main.tsx +0 -51
  318. package/docs/examples/maskedtextbox/value/class/main.tsx +0 -37
  319. package/docs/examples/maskedtextbox/value/func/main.tsx +0 -29
  320. package/docs/examples/numerictextbox/appearance/func/main.tsx +0 -39
  321. package/docs/examples/numerictextbox/formats/func/main.tsx +0 -53
  322. package/docs/examples/numerictextbox/forms/basic/class/main.tsx +0 -75
  323. package/docs/examples/numerictextbox/forms/basic/func/main.tsx +0 -67
  324. package/docs/examples/numerictextbox/forms/custom-message/class/main.tsx +0 -82
  325. package/docs/examples/numerictextbox/forms/custom-message/func/main.tsx +0 -74
  326. package/docs/examples/numerictextbox/forms/disable-styles/class/main.tsx +0 -98
  327. package/docs/examples/numerictextbox/forms/disable-styles/func/main.tsx +0 -85
  328. package/docs/examples/numerictextbox/forms/override/class/main.tsx +0 -96
  329. package/docs/examples/numerictextbox/forms/override/func/main.tsx +0 -87
  330. package/docs/examples/numerictextbox/forms/ref/class/main.tsx +0 -44
  331. package/docs/examples/numerictextbox/forms/ref/func/main.tsx +0 -34
  332. package/docs/examples/numerictextbox/keyboard/func/main.tsx +0 -20
  333. package/docs/examples/numerictextbox/overview/class/main.tsx +0 -55
  334. package/docs/examples/numerictextbox/overview/func/main.tsx +0 -43
  335. package/docs/examples/numerictextbox/spin/func/main.tsx +0 -22
  336. package/docs/examples/numerictextbox/step/func/main.tsx +0 -21
  337. package/docs/examples/overview/func/main.tsx +0 -102
  338. package/docs/examples/props-context/overview/class/grid-with-filtering.tsx +0 -32
  339. package/docs/examples/props-context/overview/class/main.tsx +0 -26
  340. package/docs/examples/props-context/overview/class/sample-products.ts +0 -182
  341. package/docs/examples/props-context/overview/func/grid-with-filtering.tsx +0 -32
  342. package/docs/examples/props-context/overview/func/main.tsx +0 -24
  343. package/docs/examples/props-context/overview/func/sample-products.ts +0 -182
  344. package/docs/examples/radiobutton/appearance/func/main.tsx +0 -28
  345. package/docs/examples/radiobutton/custom-labels/func/main.tsx +0 -28
  346. package/docs/examples/radiobutton/disabled/func/main.tsx +0 -20
  347. package/docs/examples/radiobutton/labels/func/main.tsx +0 -20
  348. package/docs/examples/radiobutton/overview/class/main.tsx +0 -35
  349. package/docs/examples/radiobutton/overview/func/main.tsx +0 -30
  350. package/docs/examples/radiogroup/controlled/class/main.tsx +0 -49
  351. package/docs/examples/radiogroup/controlled/func/main.tsx +0 -40
  352. package/docs/examples/radiogroup/default-state/func/main.tsx +0 -19
  353. package/docs/examples/radiogroup/forms/class/main.tsx +0 -150
  354. package/docs/examples/radiogroup/forms/func/main.tsx +0 -146
  355. package/docs/examples/radiogroup/keyboard/class/main.tsx +0 -37
  356. package/docs/examples/radiogroup/keyboard/func/main.tsx +0 -31
  357. package/docs/examples/radiogroup/layout/class/main.tsx +0 -49
  358. package/docs/examples/radiogroup/layout/func/main.tsx +0 -43
  359. package/docs/examples/radiogroup/overview/func/main.tsx +0 -18
  360. package/docs/examples/rangeslider/controlled/class/main.tsx +0 -45
  361. package/docs/examples/rangeslider/controlled/func/main.tsx +0 -37
  362. package/docs/examples/rangeslider/disabled/func/main.tsx +0 -27
  363. package/docs/examples/rangeslider/labels/func/main.tsx +0 -26
  364. package/docs/examples/rangeslider/orientation/func/main.tsx +0 -27
  365. package/docs/examples/rangeslider/overview/func/main.tsx +0 -26
  366. package/docs/examples/rating/controlled/class/main.tsx +0 -29
  367. package/docs/examples/rating/controlled/func/main.tsx +0 -21
  368. package/docs/examples/rating/disabled/func/main.tsx +0 -18
  369. package/docs/examples/rating/forms/class/main.tsx +0 -85
  370. package/docs/examples/rating/forms/func/main.tsx +0 -79
  371. package/docs/examples/rating/icon/func/main.tsx +0 -15
  372. package/docs/examples/rating/items/func/main.tsx +0 -15
  373. package/docs/examples/rating/label/class/main.tsx +0 -33
  374. package/docs/examples/rating/label/func/main.tsx +0 -26
  375. package/docs/examples/rating/navigation/func/main.tsx +0 -15
  376. package/docs/examples/rating/overview/func/main.tsx +0 -12
  377. package/docs/examples/rating/precision/func/main.tsx +0 -27
  378. package/docs/examples/rating/rating-item/advanced/class/main.tsx +0 -82
  379. package/docs/examples/rating/rating-item/advanced/func/main.tsx +0 -76
  380. package/docs/examples/rating/rating-item/overview/func/main.tsx +0 -75
  381. package/docs/examples/rating/readonly/func/main.tsx +0 -18
  382. package/docs/examples/rating/selection/func/main.tsx +0 -25
  383. package/docs/examples/rtl/func/main.tsx +0 -99
  384. package/docs/examples/shared/checkbox-style-configurator.tsx +0 -69
  385. package/docs/examples/shared/es.json +0 -6
  386. package/docs/examples/shared/radiobutton-style-configurator.tsx +0 -47
  387. package/docs/examples/shared/sample-signature.ts +0 -2
  388. package/docs/examples/shared/style-configurator.tsx +0 -93
  389. package/docs/examples/shared/switch-style-configurator.tsx +0 -91
  390. package/docs/examples/signature/appearance/all-options/func/main.tsx +0 -89
  391. package/docs/examples/signature/appearance/color/func/main.tsx +0 -17
  392. package/docs/examples/signature/appearance/stroke-width/func/main.tsx +0 -16
  393. package/docs/examples/signature/controlled/export-scale/func/main.tsx +0 -34
  394. package/docs/examples/signature/controlled/popup/func/main.tsx +0 -28
  395. package/docs/examples/signature/controlled/value/func/main.tsx +0 -19
  396. package/docs/examples/signature/disabled/func/main.tsx +0 -17
  397. package/docs/examples/signature/events/func/main.tsx +0 -66
  398. package/docs/examples/signature/forms/kendo/func/main.tsx +0 -148
  399. package/docs/examples/signature/overview/func/main.tsx +0 -239
  400. package/docs/examples/signature/overview/func/styles.css +0 -56
  401. package/docs/examples/signature/popup/disabled/func/main.tsx +0 -14
  402. package/docs/examples/signature/popup/scale/func/main.tsx +0 -14
  403. package/docs/examples/signature/readonly/func/main.tsx +0 -17
  404. package/docs/examples/signature/smooth/func/main.tsx +0 -14
  405. package/docs/examples/slider/buttons/func/main.tsx +0 -18
  406. package/docs/examples/slider/controlled/class/main.tsx +0 -45
  407. package/docs/examples/slider/controlled/func/main.tsx +0 -36
  408. package/docs/examples/slider/labels/class/main.tsx +0 -44
  409. package/docs/examples/slider/labels/func/main.tsx +0 -35
  410. package/docs/examples/slider/orientation/func/main.tsx +0 -25
  411. package/docs/examples/slider/overview/func/main.tsx +0 -24
  412. package/docs/examples/switch/appearance/func/main.tsx +0 -38
  413. package/docs/examples/switch/controlled/manual/class/main.tsx +0 -40
  414. package/docs/examples/switch/controlled/manual/func/main.tsx +0 -33
  415. package/docs/examples/switch/controlled/readonly/func/main.tsx +0 -15
  416. package/docs/examples/switch/default/func/main.tsx +0 -15
  417. package/docs/examples/switch/disabled/func/main.tsx +0 -15
  418. package/docs/examples/switch/forms/basic/class/main.tsx +0 -81
  419. package/docs/examples/switch/forms/basic/func/main.tsx +0 -72
  420. package/docs/examples/switch/forms/custom-message/class/main.tsx +0 -108
  421. package/docs/examples/switch/forms/custom-message/func/main.tsx +0 -100
  422. package/docs/examples/switch/forms/disable-styles/class/main.tsx +0 -129
  423. package/docs/examples/switch/forms/disable-styles/func/main.tsx +0 -118
  424. package/docs/examples/switch/forms/kendo-react-form/class/main.tsx +0 -104
  425. package/docs/examples/switch/forms/kendo-react-form/func/main.tsx +0 -106
  426. package/docs/examples/switch/keyboard/class/main.tsx +0 -22
  427. package/docs/examples/switch/keyboard/func/main.tsx +0 -23
  428. package/docs/examples/switch/labels/func/main.tsx +0 -15
  429. package/docs/examples/switch/overview/basic/func/main.tsx +0 -15
  430. package/docs/examples/textarea/appearance/func/main.tsx +0 -39
  431. package/docs/examples/textarea/auto-sizing/func/main.tsx +0 -18
  432. package/docs/examples/textarea/controlled/class/main.tsx +0 -32
  433. package/docs/examples/textarea/controlled/func/main.tsx +0 -26
  434. package/docs/examples/textarea/counter/class/main.tsx +0 -38
  435. package/docs/examples/textarea/counter/func/main.tsx +0 -32
  436. package/docs/examples/textarea/default-state/func/main.tsx +0 -18
  437. package/docs/examples/textarea/disabled/func/main.tsx +0 -20
  438. package/docs/examples/textarea/forms/kendo-react-form/class/main.tsx +0 -152
  439. package/docs/examples/textarea/forms/kendo-react-form/func/main.tsx +0 -140
  440. package/docs/examples/textarea/main/func/main.tsx +0 -15
  441. package/docs/examples/textarea/overview/class/main.tsx +0 -103
  442. package/docs/examples/textarea/overview/func/main.tsx +0 -90
  443. package/docs/examples/textarea/sizing/func/main.tsx +0 -15
  444. package/docs/examples/tsconfig.json +0 -29
  445. package/docs/flatcolorpicker/_meta.yml +0 -3
  446. package/docs/flatcolorpicker/customization.md +0 -33
  447. package/docs/flatcolorpicker/disabled.md +0 -22
  448. package/docs/flatcolorpicker/index.md +0 -30
  449. package/docs/floating-labels.md +0 -35
  450. package/docs/get-started.md +0 -153
  451. package/docs/globalization.md +0 -67
  452. package/docs/index.md +0 -212
  453. package/docs/input/_meta.yml +0 -3
  454. package/docs/input/counter.md +0 -20
  455. package/docs/input/forms.md +0 -87
  456. package/docs/input/index.md +0 -40
  457. package/docs/maskedtextbox/_meta.yml +0 -3
  458. package/docs/maskedtextbox/accessibility.md +0 -22
  459. package/docs/maskedtextbox/appearance.md +0 -30
  460. package/docs/maskedtextbox/disabled-state.md +0 -20
  461. package/docs/maskedtextbox/forms.md +0 -87
  462. package/docs/maskedtextbox/index.md +0 -40
  463. package/docs/maskedtextbox/masks.md +0 -44
  464. package/docs/maskedtextbox/readonly-state.md +0 -20
  465. package/docs/maskedtextbox/valid-state.md +0 -25
  466. package/docs/maskedtextbox/value.md +0 -23
  467. package/docs/numerictextbox/_meta.yml +0 -3
  468. package/docs/numerictextbox/accessibility.md +0 -25
  469. package/docs/numerictextbox/appearance.md +0 -30
  470. package/docs/numerictextbox/formats.md +0 -25
  471. package/docs/numerictextbox/forms.md +0 -87
  472. package/docs/numerictextbox/index.md +0 -49
  473. package/docs/numerictextbox/keyboard-navigation.md +0 -26
  474. package/docs/numerictextbox/predefined-step.md +0 -20
  475. package/docs/numerictextbox/ref.md +0 -28
  476. package/docs/numerictextbox/spin-buttons.md +0 -20
  477. package/docs/props-context.md +0 -65
  478. package/docs/radiobutton/_meta.yml +0 -3
  479. package/docs/radiobutton/appearance.md +0 -26
  480. package/docs/radiobutton/disabled.md +0 -23
  481. package/docs/radiobutton/index.md +0 -47
  482. package/docs/radiobutton/labels.md +0 -36
  483. package/docs/radiogroup/_meta.yml +0 -3
  484. package/docs/radiogroup/accessibility.md +0 -25
  485. package/docs/radiogroup/controlled_mode.md +0 -34
  486. package/docs/radiogroup/default_state.md +0 -24
  487. package/docs/radiogroup/forms_support.md +0 -37
  488. package/docs/radiogroup/index.md +0 -41
  489. package/docs/radiogroup/keyboard_navigation.md +0 -37
  490. package/docs/radiogroup/layout.md +0 -29
  491. package/docs/rangeslider/_meta.yml +0 -3
  492. package/docs/rangeslider/accessibility.md +0 -26
  493. package/docs/rangeslider/controlled.md +0 -32
  494. package/docs/rangeslider/disabled.md +0 -23
  495. package/docs/rangeslider/index.md +0 -41
  496. package/docs/rangeslider/keyboard-navigation.md +0 -33
  497. package/docs/rangeslider/orientation.md +0 -24
  498. package/docs/rangeslider/ticks.md +0 -26
  499. package/docs/rating/_meta.yml +0 -3
  500. package/docs/rating/accessibility.md +0 -26
  501. package/docs/rating/forms_support.md +0 -39
  502. package/docs/rating/functionality-and-features/_meta.yml +0 -2
  503. package/docs/rating/functionality-and-features/controlled.md +0 -34
  504. package/docs/rating/functionality-and-features/disabled.md +0 -23
  505. package/docs/rating/functionality-and-features/icon.md +0 -27
  506. package/docs/rating/functionality-and-features/items.md +0 -24
  507. package/docs/rating/functionality-and-features/label.md +0 -28
  508. package/docs/rating/functionality-and-features/precision.md +0 -51
  509. package/docs/rating/functionality-and-features/readonly.md +0 -23
  510. package/docs/rating/functionality-and-features/selection.md +0 -23
  511. package/docs/rating/index.md +0 -45
  512. package/docs/rating/item_custamization.md +0 -45
  513. package/docs/rating/keyboard-navigation.md +0 -33
  514. package/docs/signature/_meta.yml +0 -3
  515. package/docs/signature/appearance.md +0 -96
  516. package/docs/signature/controlled.md +0 -60
  517. package/docs/signature/disabled.md +0 -21
  518. package/docs/signature/events.md +0 -20
  519. package/docs/signature/forms.md +0 -28
  520. package/docs/signature/index.md +0 -34
  521. package/docs/signature/line-smoothing.md +0 -16
  522. package/docs/signature/popup.md +0 -34
  523. package/docs/signature/readonly.md +0 -21
  524. package/docs/slider/_meta.yml +0 -3
  525. package/docs/slider/accessibility.md +0 -26
  526. package/docs/slider/controlled.md +0 -32
  527. package/docs/slider/index.md +0 -41
  528. package/docs/slider/keyboard-navigation.md +0 -33
  529. package/docs/slider/orientation.md +0 -24
  530. package/docs/slider/side-buttons.md +0 -24
  531. package/docs/slider/ticks.md +0 -31
  532. package/docs/switch/_meta.yml +0 -3
  533. package/docs/switch/accessibility.md +0 -17
  534. package/docs/switch/appearance.md +0 -30
  535. package/docs/switch/controlled-switch.md +0 -44
  536. package/docs/switch/default-state.md +0 -20
  537. package/docs/switch/disabled-state.md +0 -20
  538. package/docs/switch/forms-support.md +0 -78
  539. package/docs/switch/index.md +0 -44
  540. package/docs/switch/keyboard-navigation.md +0 -31
  541. package/docs/switch/labels.md +0 -29
  542. package/docs/textarea/_meta.yml +0 -3
  543. package/docs/textarea/appearance.md +0 -30
  544. package/docs/textarea/controlled_mode.md +0 -37
  545. package/docs/textarea/counter.md +0 -28
  546. package/docs/textarea/default_state.md +0 -25
  547. package/docs/textarea/disabled.md +0 -24
  548. package/docs/textarea/forms_support.md +0 -39
  549. package/docs/textarea/index.md +0 -51
  550. package/docs/textarea/sizing.md +0 -38
  551. package/e2e/a11y.tests.ts +0 -154
  552. package/e2e/input.tests.ts +0 -143
  553. package/e2e/numeric.tests.ts +0 -134
  554. package/e2e/switch.tests.ts +0 -122
  555. package/examples/checkbox/checkbox.html +0 -9
  556. package/examples/checkbox/checkbox.tsx +0 -292
  557. package/examples/checkbox/checkboxForm.html +0 -9
  558. package/examples/checkbox/checkboxForm.tsx +0 -81
  559. package/examples/checkbox/checked-n-value.html +0 -9
  560. package/examples/checkbox/checked-n-value.tsx +0 -115
  561. package/examples/checkbox/controlled-mode.html +0 -9
  562. package/examples/checkbox/controlled-mode.tsx +0 -69
  563. package/examples/checkbox/form.html +0 -9
  564. package/examples/checkbox/form.tsx +0 -78
  565. package/examples/checkbox/formik.html +0 -9
  566. package/examples/checkbox/formik.tsx +0 -89
  567. package/examples/colors/colorContrast.html +0 -12
  568. package/examples/colors/colorContrast.tsx +0 -52
  569. package/examples/colors/colorGradient.html +0 -9
  570. package/examples/colors/colorGradient.tsx +0 -37
  571. package/examples/colors/colorPalette.html +0 -9
  572. package/examples/colors/colorPalette.tsx +0 -29
  573. package/examples/colors/colorPicker.html +0 -22
  574. package/examples/colors/colorPicker.tsx +0 -58
  575. package/examples/colors/colorPickerLocalization.html +0 -9
  576. package/examples/colors/colorPickerLocalization.tsx +0 -31
  577. package/examples/colors/flatColorPicker.html +0 -12
  578. package/examples/colors/flatColorPicker.tsx +0 -21
  579. package/examples/context/class/grid-with-filtering.tsx +0 -32
  580. package/examples/context/class/index.html +0 -9
  581. package/examples/context/class/index.tsx +0 -28
  582. package/examples/context/class/sample-products.tsx +0 -182
  583. package/examples/context/func/grid-with-filtering.tsx +0 -32
  584. package/examples/context/func/index.html +0 -9
  585. package/examples/context/func/index.tsx +0 -26
  586. package/examples/context/func/sample-products.tsx +0 -182
  587. package/examples/e2e/accessibility/CheckboxExample.tsx +0 -26
  588. package/examples/e2e/accessibility/ColorGradientExample.tsx +0 -28
  589. package/examples/e2e/accessibility/ColorPaletteExample.tsx +0 -33
  590. package/examples/e2e/accessibility/ColorPickerExample.tsx +0 -21
  591. package/examples/e2e/accessibility/InputExample.tsx +0 -49
  592. package/examples/e2e/accessibility/MaskedTextBoxExample.tsx +0 -29
  593. package/examples/e2e/accessibility/NumericTextBoxExample.tsx +0 -24
  594. package/examples/e2e/accessibility/RadioButtonExample.tsx +0 -29
  595. package/examples/e2e/accessibility/RangeSliderExample.tsx +0 -26
  596. package/examples/e2e/accessibility/RatingExample.tsx +0 -13
  597. package/examples/e2e/accessibility/SliderExample.tsx +0 -19
  598. package/examples/e2e/accessibility/SwitchExample.tsx +0 -26
  599. package/examples/e2e/accessibility/TextAreaExample.tsx +0 -70
  600. package/examples/e2e/accessibility/main.html +0 -14
  601. package/examples/e2e/accessibility/main.tsx +0 -104
  602. package/examples/e2e/input/input.html +0 -9
  603. package/examples/e2e/input/input.tsx +0 -58
  604. package/examples/e2e/numerictextbox/numericLabel.html +0 -9
  605. package/examples/e2e/numerictextbox/numericLabel.tsx +0 -38
  606. package/examples/e2e/switch/switch.html +0 -16
  607. package/examples/e2e/switch/switch.tsx +0 -74
  608. package/examples/focus/focus.html +0 -9
  609. package/examples/focus/focus.tsx +0 -81
  610. package/examples/input/inputFloatingLabels.html +0 -9
  611. package/examples/input/inputFloatingLabels.tsx +0 -26
  612. package/examples/input/inputForm.html +0 -9
  613. package/examples/input/inputForm.tsx +0 -151
  614. package/examples/maskedtextbox/basic.html +0 -9
  615. package/examples/maskedtextbox/basic.tsx +0 -54
  616. package/examples/maskedtextbox/ipmask.html +0 -9
  617. package/examples/maskedtextbox/ipmask.tsx +0 -79
  618. package/examples/messages/index.ts +0 -4
  619. package/examples/numerictextbox/newNumeric.html +0 -9
  620. package/examples/numerictextbox/newNumeric.tsx +0 -149
  621. package/examples/numerictextbox/numeric.html +0 -9
  622. package/examples/numerictextbox/numeric.tsx +0 -247
  623. package/examples/numerictextbox/numericApiExample.html +0 -9
  624. package/examples/numerictextbox/numericApiExample.tsx +0 -25
  625. package/examples/numerictextbox/numericForm.html +0 -9
  626. package/examples/numerictextbox/numericForm.tsx +0 -89
  627. package/examples/numerictextbox/roundingIssues.html +0 -9
  628. package/examples/numerictextbox/roundingIssues.tsx +0 -51
  629. package/examples/numerictextbox/test.html +0 -9
  630. package/examples/numerictextbox/test.tsx +0 -165
  631. package/examples/numerictextbox/testingBlurDisabled.html +0 -9
  632. package/examples/numerictextbox/testingBlurDisabled.tsx +0 -167
  633. package/examples/radio-group/customization/index.html +0 -12
  634. package/examples/radio-group/customization/index.tsx +0 -32
  635. package/examples/radioButton/accessibility.html +0 -12
  636. package/examples/radioButton/accessibility.tsx +0 -81
  637. package/examples/radioButton/html-forms.html +0 -9
  638. package/examples/radioButton/html-forms.tsx +0 -63
  639. package/examples/radioButton/kendo-react-form.html +0 -12
  640. package/examples/radioButton/kendo-react-form.tsx +0 -80
  641. package/examples/radioButton/radio.html +0 -9
  642. package/examples/radioButton/radio.tsx +0 -45
  643. package/examples/radioButton/standalone-radio.html +0 -9
  644. package/examples/radioButton/standalone-radio.tsx +0 -76
  645. package/examples/range-slider/form/index.html +0 -9
  646. package/examples/range-slider/form/index.tsx +0 -57
  647. package/examples/range-slider/index.html +0 -9
  648. package/examples/range-slider/index.tsx +0 -147
  649. package/examples/rating/index.html +0 -9
  650. package/examples/rating/index.tsx +0 -158
  651. package/examples/rtl/index.html +0 -12
  652. package/examples/rtl/index.tsx +0 -29
  653. package/examples/signature/basic.html +0 -9
  654. package/examples/signature/basic.tsx +0 -72
  655. package/examples/signature/forms-basic.html +0 -9
  656. package/examples/signature/forms-basic.tsx +0 -72
  657. package/examples/signature/forms.html +0 -9
  658. package/examples/signature/forms.tsx +0 -90
  659. package/examples/slider/slider.html +0 -15
  660. package/examples/slider/slider.tsx +0 -99
  661. package/examples/slider/vertical.html +0 -15
  662. package/examples/slider/vertical.tsx +0 -28
  663. package/examples/switch/switch.html +0 -9
  664. package/examples/switch/switch.tsx +0 -44
  665. package/examples/switch/switchDoubleEvent.html +0 -9
  666. package/examples/switch/switchDoubleEvent.tsx +0 -25
  667. package/examples/switch/switchForm.html +0 -9
  668. package/examples/switch/switchForm.tsx +0 -138
  669. package/examples/textarea/formik.html +0 -12
  670. package/examples/textarea/formik.tsx +0 -84
  671. package/examples/textarea/textarea.html +0 -12
  672. package/examples/textarea/textarea.tsx +0 -96
  673. package/gulpfile.js +0 -7
  674. package/src/checkbox/Checkbox.tsx +0 -352
  675. package/src/checkbox/interfaces/CheckboxBlurEvent.ts +0 -7
  676. package/src/checkbox/interfaces/CheckboxChangeEvent.ts +0 -12
  677. package/src/checkbox/interfaces/CheckboxFocusEvent.ts +0 -7
  678. package/src/checkbox/interfaces/CheckboxProps.ts +0 -122
  679. package/src/colors/ColorContrastLabels.tsx +0 -83
  680. package/src/colors/ColorContrastSvg.tsx +0 -88
  681. package/src/colors/ColorGradient.tsx +0 -450
  682. package/src/colors/ColorInput.tsx +0 -192
  683. package/src/colors/ColorPalette.tsx +0 -329
  684. package/src/colors/ColorPicker.tsx +0 -387
  685. package/src/colors/FlatColorPicker.tsx +0 -258
  686. package/src/colors/HexInput.tsx +0 -67
  687. package/src/colors/Picker.tsx +0 -56
  688. package/src/colors/interfaces/ColorGradientChangeEvent.ts +0 -12
  689. package/src/colors/interfaces/ColorGradientProps.ts +0 -77
  690. package/src/colors/interfaces/ColorPaletteChangeEvent.ts +0 -16
  691. package/src/colors/interfaces/ColorPaletteProps.ts +0 -78
  692. package/src/colors/interfaces/ColorPickerActiveColorClick.ts +0 -17
  693. package/src/colors/interfaces/ColorPickerBlurEvent.ts +0 -13
  694. package/src/colors/interfaces/ColorPickerChangeEvent.ts +0 -17
  695. package/src/colors/interfaces/ColorPickerFocusEvent.ts +0 -13
  696. package/src/colors/interfaces/ColorPickerGradientSettings.ts +0 -19
  697. package/src/colors/interfaces/ColorPickerPaletteSettings.ts +0 -35
  698. package/src/colors/interfaces/ColorPickerPopupSettings.ts +0 -16
  699. package/src/colors/interfaces/ColorPickerProps.ts +0 -170
  700. package/src/colors/interfaces/ColorPickerView.ts +0 -10
  701. package/src/colors/interfaces/PickerPopupSettings.ts +0 -21
  702. package/src/colors/interfaces/PickerProps.ts +0 -51
  703. package/src/colors/models/hsva.ts +0 -9
  704. package/src/colors/models/output-format.ts +0 -4
  705. package/src/colors/models/palette-presets.ts +0 -54
  706. package/src/colors/models/rgb.ts +0 -8
  707. package/src/colors/models/rgba.ts +0 -9
  708. package/src/colors/models/table-cell.ts +0 -7
  709. package/src/colors/models/tile-size.ts +0 -8
  710. package/src/colors/utils/color-cache.ts +0 -71
  711. package/src/colors/utils/color-palette.service.ts +0 -79
  712. package/src/colors/utils/color-parser.ts +0 -158
  713. package/src/colors/utils/misc.ts +0 -23
  714. package/src/colors/utils/svg-calc.ts +0 -115
  715. package/src/common/SliderTooltip.tsx +0 -83
  716. package/src/common/SwitchController.ts +0 -130
  717. package/src/common/SwitchModel.ts +0 -12
  718. package/src/input/Input.tsx +0 -346
  719. package/src/input/interfaces/InputChangeEvent.tsx +0 -12
  720. package/src/interfaces/Direction.ts +0 -1
  721. package/src/interfaces/ToggleBaseProps.ts +0 -8
  722. package/src/main.ts +0 -57
  723. package/src/maskedtextbox/MaskedTextBox.tsx +0 -541
  724. package/src/maskedtextbox/MaskedTextBoxProps.ts +0 -215
  725. package/src/maskedtextbox/masking.service.ts +0 -230
  726. package/src/maskedtextbox/parsing/combinators.ts +0 -30
  727. package/src/maskedtextbox/parsing/parsers.ts +0 -179
  728. package/src/maskedtextbox/parsing/result.ts +0 -39
  729. package/src/maskedtextbox/parsing/stream.ts +0 -41
  730. package/src/maskedtextbox/utils.ts +0 -70
  731. package/src/messages/index.ts +0 -151
  732. package/src/numerictextbox/NumericTextBox.tsx +0 -626
  733. package/src/numerictextbox/interfaces/NumericTextBoxBlurEvent.tsx +0 -7
  734. package/src/numerictextbox/interfaces/NumericTextBoxChangeEvent.tsx +0 -12
  735. package/src/numerictextbox/interfaces/NumericTextBoxFocusEvent.tsx +0 -7
  736. package/src/numerictextbox/interfaces/NumericTextBoxHandle.tsx +0 -40
  737. package/src/numerictextbox/interfaces/NumericTextBoxProps.tsx +0 -180
  738. package/src/numerictextbox/interfaces/NumericTextBoxState.tsx +0 -15
  739. package/src/numerictextbox/utils/index.tsx +0 -744
  740. package/src/package-metadata.ts +0 -13
  741. package/src/radiobutton/RadioButton.tsx +0 -194
  742. package/src/radiobutton/RadioGroup.tsx +0 -190
  743. package/src/radiobutton/interfaces/RadioButtonBlurEvent.ts +0 -7
  744. package/src/radiobutton/interfaces/RadioButtonChangeEvent.ts +0 -12
  745. package/src/radiobutton/interfaces/RadioButtonFocusEvent.ts +0 -7
  746. package/src/radiobutton/interfaces/RadioButtonProps.ts +0 -102
  747. package/src/radiobutton/interfaces/RadioGroupChangeEvent.ts +0 -12
  748. package/src/radiobutton/interfaces/RadioGroupFocusEvent.ts +0 -7
  749. package/src/radiobutton/interfaces/RadioGroupProps.ts +0 -89
  750. package/src/range-slider/RangeSlider.tsx +0 -644
  751. package/src/range-slider/range-raducer.tsx +0 -153
  752. package/src/rating/Rating.tsx +0 -633
  753. package/src/rating/RatingItem.tsx +0 -268
  754. package/src/rating/models/index.tsx +0 -91
  755. package/src/rating/rating-reducer.tsx +0 -70
  756. package/src/rating/utils/index.tsx +0 -65
  757. package/src/signature/Signature.tsx +0 -488
  758. package/src/signature/interfaces/SignatureBlurEvent.tsx +0 -7
  759. package/src/signature/interfaces/SignatureChangeEvent.tsx +0 -12
  760. package/src/signature/interfaces/SignatureCloseEvent.tsx +0 -7
  761. package/src/signature/interfaces/SignatureFocusEvent.tsx +0 -7
  762. package/src/signature/interfaces/SignatureHandle.tsx +0 -35
  763. package/src/signature/interfaces/SignatureOpenEvent.tsx +0 -7
  764. package/src/signature/interfaces/SignatureProps.tsx +0 -227
  765. package/src/signature/interfaces/index.ts +0 -7
  766. package/src/signature/utils/index.ts +0 -11
  767. package/src/slider/Slider.tsx +0 -470
  768. package/src/slider/SliderLabel.tsx +0 -69
  769. package/src/switch/Switch.tsx +0 -559
  770. package/src/textarea/TextArea.tsx +0 -263
  771. package/src/textarea/interfaces/TextAreaBlurEvent.ts +0 -7
  772. package/src/textarea/interfaces/TextAreaChangeEvent.ts +0 -12
  773. package/src/textarea/interfaces/TextAreaFocusEvent.ts +0 -7
  774. package/src/textarea/interfaces/TextAreaProps.tsx +0 -131
  775. package/src/utils.ts +0 -16
  776. package/test/Checkbox.tsx +0 -252
  777. package/test/ColorGradient.tsx +0 -260
  778. package/test/ColorPalette.tsx +0 -440
  779. package/test/ColorPicker.tsx +0 -74
  780. package/test/Input.tsx +0 -255
  781. package/test/NumericTextBox.tsx +0 -984
  782. package/test/RadioButton.tsx +0 -176
  783. package/test/RangeSlider.tsx +0 -502
  784. package/test/Rating.tsx +0 -227
  785. package/test/Slider.tsx +0 -198
  786. package/test/Switch.tsx +0 -154
  787. package/test/TextArea.tsx +0 -216
  788. package/test/maskedtextbox/component.tsx +0 -424
  789. package/test/maskedtextbox/masking.service.tsx +0 -1345
  790. package/test/maskedtextbox/parser.tsx +0 -364
  791. package/tsconfig.es.json +0 -25
  792. package/tsconfig.json +0 -26
  793. package/tsconfig.npm.json +0 -25
@@ -1,125 +0,0 @@
1
- import * as React from 'react';
2
- import * as ReactDOM from 'react-dom';
3
-
4
- import { Input, Checkbox } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const [password, setPassword] = React.useState<string | undefined>('')
8
- const [confirmPassword, setConfirmPassword] = React.useState<string>('');
9
- const [success, setSuccess] = React.useState<boolean>(false)
10
-
11
- const usernameValidationMessage = React.useMemo<string>(
12
- () => "Your username should contain only letters",
13
- []
14
- );
15
-
16
- const passwordValidationMessage = React.useMemo<string>(
17
- () => "Please enter password between 6 and 16 characters",
18
- []
19
- );
20
-
21
- const confirmPasswordValidationMessage = React.useMemo<string>(
22
- () => "Passwords does not match",
23
- []
24
- );
25
-
26
- const handleChange = (event) => {
27
- if(event.target.name === 'password') {
28
- setPassword(event.target.value)
29
- } else if (event.target.name === 'confirmPassword') {
30
- setConfirmPassword(event.target.value)
31
- }
32
- }
33
-
34
- const handleSubmit = (event) => {
35
- event.preventDefault();
36
- setSuccess(true);
37
- setTimeout(() => { setSuccess(false); }, 3000);
38
- }
39
-
40
- return (
41
- <div className="row example-wrapper">
42
- <div className="col-xs-12 col-sm-6 offset-sm-3 example-col">
43
- <form className="k-form" onSubmit={handleSubmit}>
44
- <fieldset className="k-form-fieldset">
45
- <legend className="k-form-legend">Create new account:</legend>
46
- <div className="mb-3">
47
- <Input
48
- validityStyles={false}
49
- name="username"
50
- style={{ width: "100%" }}
51
- label="First Name"
52
- pattern={"[A-Za-z]+"}
53
- minLength={2}
54
- required={true}
55
- validationMessage={usernameValidationMessage}
56
- />
57
- </div>
58
- <div className="mb-3">
59
- <Input
60
- validityStyles={false}
61
- value={password}
62
- onChange={handleChange}
63
- name="password"
64
- type="password"
65
- style={{ width: '100%' }}
66
- label="Password"
67
- required={true}
68
- minLength={6}
69
- maxLength={18}
70
- validationMessage={passwordValidationMessage}
71
- />
72
- </div>
73
- <div className="mb-3">
74
- <Input
75
- validityStyles={false}
76
- value={confirmPassword}
77
- onChange={handleChange}
78
- name="confirmPassword"
79
- type="password"
80
- style={{ width: '100%' }}
81
- label="Confirm Password"
82
- valid={password === confirmPassword}
83
- minLength={6}
84
- maxLength={18}
85
- validationMessage={confirmPasswordValidationMessage}
86
- />
87
- </div>
88
- <div className="mb-3">
89
- <Input
90
- validityStyles={false}
91
- name="email"
92
- type="email"
93
- style={{ width: '100%' }}
94
- label="Email address"
95
- required={true}
96
- />
97
- </div>
98
- <div className="mb-3">
99
- <Checkbox
100
- validityStyles={false}
101
- id="ch3"
102
- name="checkbox"
103
- required={true}
104
- label={"Sign-up to our newsletter!"}
105
- />
106
- </div>
107
- </fieldset>
108
- <input type="submit" className="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" value="Search" />
109
- </form>
110
- </div>
111
- {success && (
112
- <div
113
- className="alert alert-success"
114
- style={{ position: 'absolute' }}
115
- >
116
- Form submitted!
117
- </div>)}
118
- </div>
119
- );
120
- }
121
-
122
- ReactDOM.render(
123
- <App />,
124
- document.querySelector('my-app')
125
- );
@@ -1,137 +0,0 @@
1
- import * as React from 'react';
2
- import * as ReactDOM from 'react-dom';
3
- import { Form, Field, FormElement, FieldWrapper } from '@progress/kendo-react-form';
4
- import { Label, Hint, Error } from '@progress/kendo-react-labels';
5
- import { Input, Checkbox } from '@progress/kendo-react-inputs';
6
- import { Button } from '@progress/kendo-react-buttons';
7
-
8
- const firstNameValidator: (value: any) => string = (value) => !value ?
9
- "First Name is required" :
10
- value.length < 7 ? "First Name should be at least 7 characters long." : "";
11
-
12
- const lastNameValidator: (value: any) => string = (value) => !value ?
13
- "Last Name is required" :
14
- value.length < 7 ? "Last Name should be at least 7 characters long." : "";
15
-
16
- const checkboxValidator: (value: any) => string = (value) => !value ?
17
- "Terms&Conditions checkbox is required" : "";
18
-
19
- const FormInput = (fieldRenderProps) => {
20
- const { validationMessage, touched, label, id, valid, disabled, hint, type, optional, ...others } = fieldRenderProps;
21
-
22
- const showValidationMessage = touched && validationMessage;
23
- const showHint = !showValidationMessage && hint;
24
- const hindId = showHint ? `${id}_hint` : '';
25
- const errorId = showValidationMessage ? `${id}_error` : '';
26
-
27
- return (
28
- <FieldWrapper>
29
- <Label editorId={id} editorValid={valid} editorDisabled={disabled} optional={optional}>{label}</Label>
30
- <div className={'k-form-field-wrap'}>
31
- <Input
32
- valid={valid}
33
- type={type}
34
- id={id}
35
- disabled={disabled}
36
- ariaDescribedBy={`${hindId} ${errorId}`}
37
- {...others}
38
- />
39
- {
40
- showHint &&
41
- <Hint id={hindId}>{hint}</Hint>
42
- }
43
- {
44
- showValidationMessage &&
45
- <Error id={errorId}>{validationMessage}</Error>
46
- }
47
- </div>
48
- </FieldWrapper>
49
- );
50
- };
51
-
52
- const FormCheckbox = (fieldRenderProps) => {
53
- const { validationMessage, touched, id, valid, disabled, hint, optional, label, ...others } = fieldRenderProps;
54
-
55
- const showValidationMessage = touched && validationMessage;
56
- const showHint = !showValidationMessage && hint;
57
- const fullLabel = <span>{label}{optional ? <span className={'k-label-optional'}>(Optional)</span> : ''}</span>;
58
- const hindId = showHint ? `${id}_hint` : '';
59
- const errorId = showValidationMessage ? `${id}_error` : '';
60
-
61
- return (
62
- <FieldWrapper>
63
- <Checkbox
64
- ariaDescribedBy={`${hindId} ${errorId}`}
65
- label={fullLabel}
66
- valid={valid}
67
- id={id}
68
- disabled={disabled}
69
- {...others}
70
- />
71
- {
72
- showHint &&
73
- <Hint id={hindId}>{hint}</Hint>
74
- }
75
- {
76
- showValidationMessage &&
77
- <Error id={errorId}>{validationMessage}</Error>
78
- }
79
- </FieldWrapper>
80
- );
81
- };
82
-
83
- const App = () => {
84
- const handleSubmit = (dataItem) => alert(JSON.stringify(dataItem, null, 2));
85
- return (
86
- <Form
87
- onSubmit={handleSubmit}
88
- render={(formRenderProps) => (
89
- <FormElement style={{ width: 400 }}>
90
- <fieldset className={'k-form-fieldset'}>
91
- <legend className={'k-form-legend'}>User Details</legend>
92
- <Field
93
- id={'firstName'}
94
- name={'firstName'}
95
- label={'First Name'}
96
- component={FormInput}
97
- validator={firstNameValidator}
98
- />
99
- <Field
100
- id={'lastName'}
101
- name={'lastName'}
102
- label={'Last Name'}
103
- component={FormInput}
104
- validator={lastNameValidator}
105
- />
106
- <Field
107
- id={'terms'}
108
- name={'terms'}
109
- label={'I agree with terms and conditions'}
110
- hint={'Hint: By checking this, you agree to our Terms&Conditions'}
111
- component={FormCheckbox}
112
- validator={checkboxValidator}
113
- />
114
- <div className="k-form-buttons">
115
- <Button
116
- themeColor={'primary'}
117
- type={'submit'}
118
- disabled={!formRenderProps.allowSubmit}
119
- >
120
- Submit
121
- </Button>
122
- <Button onClick={formRenderProps.onFormReset}>
123
- Clear
124
- </Button>
125
- </div>
126
- </fieldset>
127
- </FormElement>
128
- )}
129
- />
130
- );
131
- }
132
-
133
- ReactDOM.render(
134
- <App />,
135
- document.querySelector('my-app')
136
- );
137
-
@@ -1,32 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { Checkbox } from '@progress/kendo-react-inputs';
5
-
6
- interface AppState {
7
- checkbox: any
8
- }
9
-
10
- class App extends React.Component {
11
- state: AppState = {
12
- checkbox: React.createRef()
13
- }
14
-
15
- componentDidMount() {
16
- this.state.checkbox.element.focus();
17
- }
18
-
19
- render() {
20
- return (
21
- <div>
22
- <Checkbox ref={(checkbox) => this.setState({ checkbox })} label="Initially focused" />
23
- <br />
24
- <Checkbox label="Secondary focused" />
25
- </div>
26
- )
27
- }
28
- }
29
- ReactDOM.render(
30
- <App />,
31
- document.querySelector('my-app')
32
- );
@@ -1,27 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { Checkbox } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const checkboxRef = React.useRef<any>(null);
8
-
9
- React.useEffect(() => {
10
- if (checkboxRef.current) {
11
- checkboxRef.current.focus();
12
- }
13
- });
14
-
15
- return (
16
- <div>
17
- <Checkbox ref={checkboxRef} label="Initially focused" />
18
- <br />
19
- <Checkbox label="Secondary focused" />
20
- </div>
21
- )
22
- }
23
-
24
- ReactDOM.render(
25
- <App />,
26
- document.querySelector('my-app')
27
- );
@@ -1,20 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { Checkbox } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- return (
8
- <div>
9
- <Checkbox id={'chb1'}>
10
- <label htmlFor={'chb1'} className={'k-checkbox-label'} style={{ 'display': 'inline-block' }}>
11
- By clicking <a href="#">Sign Up</a>, you agree to our Terms and Conditions.
12
- </label>
13
- </Checkbox>
14
- </div>
15
- )
16
- }
17
- ReactDOM.render(
18
- <App />,
19
- document.querySelector('my-app')
20
- );
@@ -1,20 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { Checkbox } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- return (
8
- <div>
9
- <Checkbox id={'chb1'} label={'Checkbox label'} />
10
- <br />
11
- <br />
12
- <Checkbox id={'chb2'} label={'Checkbox label before'} labelPlacement={'before'} />
13
- </div>
14
- )
15
- }
16
-
17
- ReactDOM.render(
18
- <App />,
19
- document.querySelector('my-app')
20
- );
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import * as ReactDOM from 'react-dom';
3
-
4
- import { Checkbox } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- return (
8
- <div>
9
- <Checkbox label={'Unchecked state'}/>
10
- <br />
11
- <Checkbox defaultChecked={true} label={'Checked state'}/>
12
- <br />
13
- <Checkbox value={null} label={'Indeterminate state'}/>
14
- <br />
15
- </div>
16
- );
17
- }
18
-
19
- ReactDOM.render(
20
- <App />,
21
- document.querySelector('my-app')
22
- );
@@ -1,48 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- interface AppState {
7
- foregroundColor: string,
8
- backgroundColor: string
9
- }
10
-
11
- class App extends React.Component {
12
- state: AppState = {
13
- foregroundColor: 'rgba(49,118,122,1)',
14
- backgroundColor: 'rgba(255,255,255,1)'
15
- }
16
-
17
- render() {
18
- return (
19
- <div className="row">
20
- <div className="col-xs-12 col-md-6 example-col">
21
- <p>Foreground Color</p>
22
- <ColorGradient
23
- value={this.state.foregroundColor}
24
- onChange={this.onForegroundChange}
25
- backgroundColor={this.state.backgroundColor}
26
- />
27
- </div>
28
- <div className="col-xs-12 col-md-6 example-col">
29
- <p>Background Color</p>
30
- <ColorGradient
31
- value={this.state.backgroundColor}
32
- onChange={this.onBackgroundChange}
33
- opacity={false}
34
- />
35
- </div>
36
- </div>
37
- )
38
- }
39
-
40
- onForegroundChange = (event: ColorGradientChangeEvent) => this.setState({ foregroundColor: event.value });
41
-
42
- onBackgroundChange = (event: ColorGradientChangeEvent) => this.setState({ backgroundColor: event.value });
43
- }
44
-
45
- ReactDOM.render(
46
- <App />,
47
- document.querySelector('my-app')
48
- );
@@ -1,43 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const [foregroundColor, setForegroundColor] = React.useState<string>('rgba(49,118,122,1)');
8
- const [backgroundColor, setBackgroundColor] = React.useState<string>('rgba(255,255,255,1)');
9
-
10
- const handleForegroundChange = (event) => {
11
- setForegroundColor(event.value);
12
- };
13
-
14
- const handleBackgroundChange = (event) => {
15
- setBackgroundColor(event.value);
16
- };
17
-
18
- return (
19
- <div className="row">
20
- <div className="col-xs-12 col-md-6 example-col">
21
- <p>Foreground Color</p>
22
- <ColorGradient
23
- value={foregroundColor}
24
- onChange={handleForegroundChange}
25
- backgroundColor={backgroundColor}
26
- />
27
- </div>
28
- <div className="col-xs-12 col-md-6 example-col">
29
- <p>Background Color</p>
30
- <ColorGradient
31
- value={backgroundColor}
32
- onChange={handleBackgroundChange}
33
- opacity={false}
34
- />
35
- </div>
36
- </div>
37
- )
38
- }
39
-
40
- ReactDOM.render(
41
- <App />,
42
- document.querySelector('my-app')
43
- );
@@ -1,29 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- interface AppState {
7
- value: string
8
- }
9
-
10
- class App extends React.Component {
11
- state: AppState = {
12
- value: 'rgba(195, 0, 47, 1)'
13
- };
14
-
15
- render() {
16
- return (
17
- <div>
18
- <ColorGradient value={this.state.value} onChange={this.onChange} />
19
- </div>
20
- );
21
- }
22
-
23
- onChange = (event: ColorGradientChangeEvent) => this.setState({ value: event.value });
24
- }
25
-
26
- ReactDOM.render(
27
- <App />,
28
- document.querySelector('my-app')
29
- );
@@ -1,21 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const [value, setValue] = React.useState<string>('rgba(195, 0, 47, 1)');
8
-
9
- const handleOnChange = (event: ColorGradientChangeEvent) => setValue(event.value);
10
-
11
- return (
12
- <div>
13
- <ColorGradient value={value} onChange={handleOnChange} />
14
- </div>
15
- );
16
- }
17
-
18
- ReactDOM.render(
19
- <App />,
20
- document.querySelector('my-app')
21
- );
@@ -1,17 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const value = 'rgba(195, 0, 47, 1)';
8
-
9
- return (
10
- <ColorGradient disabled={true} defaultValue={value} />
11
- );
12
- }
13
-
14
- ReactDOM.render(
15
- <App />,
16
- document.querySelector('my-app')
17
- );
@@ -1,32 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- interface AppState {
7
- value: string
8
- }
9
-
10
- class App extends React.Component {
11
- state: AppState = {
12
- value: 'rgba(195, 0, 47, 1)'
13
- };
14
-
15
- render() {
16
- return (
17
- <div>
18
- <div className="example-config">
19
- <strong>Selected color: <span>{this.state.value}</span></strong>
20
- </div>
21
- <ColorGradient opacity={false} defaultValue={this.state.value} onChange={this.onChange} />
22
- </div>
23
- );
24
- }
25
-
26
- onChange = (event: ColorGradientChangeEvent) => this.setState({ value: event.value });
27
- }
28
-
29
- ReactDOM.render(
30
- <App />,
31
- document.querySelector('my-app')
32
- );
@@ -1,24 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const [value, setValue] = React.useState<string>('rgba(195, 0, 47, 1)');
8
-
9
- const handleOnChange = (event: ColorGradientChangeEvent) => setValue(event.value);
10
-
11
- return (
12
- <div>
13
- <div className="example-config">
14
- <strong>Selected color: <span>{value}</span></strong>
15
- </div>
16
- <ColorGradient opacity={false} defaultValue={value} onChange={handleOnChange} />
17
- </div>
18
- );
19
- }
20
-
21
- ReactDOM.render(
22
- <App />,
23
- document.querySelector('my-app')
24
- );
@@ -1,42 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- interface AppState {
7
- value: string
8
- }
9
-
10
- class App extends React.Component {
11
- state: AppState = {
12
- value: 'rgba(195, 0, 47, 1)'
13
- };
14
-
15
- render() {
16
- return (
17
- <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
18
- <div style={{
19
- backgroundColor: this.state.value,
20
- width: '490px',
21
- height: '290px',
22
- backgroundImage: 'url("https://demos.telerik.com/kendo-ui/content/web/colorpicker/motor.png")'
23
- }} />
24
- <ColorGradient
25
- defaultValue={this.state.value}
26
- value={this.state.value}
27
- onChange={this.onChange}
28
- style={{ marginTop: '10px' }}
29
- />
30
- </div >
31
- );
32
- }
33
-
34
- onChange = (event: ColorGradientChangeEvent) => {
35
- this.setState({ value: event.value });
36
- }
37
- }
38
-
39
- ReactDOM.render(
40
- <App />,
41
- document.querySelector('my-app')
42
- );
@@ -1,34 +0,0 @@
1
- import * as React from 'react'
2
- import * as ReactDOM from 'react-dom'
3
-
4
- import { ColorGradient, ColorGradientChangeEvent } from '@progress/kendo-react-inputs';
5
-
6
- const App = () => {
7
- const [value, setValue] = React.useState<string>('rgba(195, 0, 47, 1)');
8
-
9
- const handleOnChange = (event: ColorGradientChangeEvent) => {
10
- setValue(event.value);
11
- }
12
-
13
- return (
14
- <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
15
- <div style={{
16
- backgroundColor: value,
17
- width: '490px',
18
- height: '290px',
19
- backgroundImage: 'url("https://demos.telerik.com/kendo-ui/content/web/colorpicker/motor.png")'
20
- }} />
21
- <ColorGradient
22
- defaultValue={value}
23
- value={value}
24
- onChange={handleOnChange}
25
- style={{ marginTop: '10px' }}
26
- />
27
- </div >
28
- );
29
- }
30
-
31
- ReactDOM.render(
32
- <App />,
33
- document.querySelector('my-app')
34
- );