@progress/kendo-themes-html 4.42.1-dev.0 → 4.42.1-dev.4

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 (40) hide show
  1. package/lib/jsx-runtime.js +5 -0
  2. package/package.json +8 -8
  3. package/src/autocomplete/README.md +15 -9
  4. package/src/autocomplete/autocomplete.jsx +12 -7
  5. package/src/button/README.md +8 -8
  6. package/src/checkbox/README.md +8 -8
  7. package/src/colorpicker/colorpicker.jsx +3 -4
  8. package/src/combobox/README.md +15 -9
  9. package/src/combobox/combobox.jsx +11 -6
  10. package/src/dateinput/README.md +48 -0
  11. package/src/dateinput/dateinput.jsx +170 -0
  12. package/src/dateinput/index.js +1 -0
  13. package/src/datepicker/README.md +36 -0
  14. package/src/datepicker/datepicker.jsx +170 -0
  15. package/src/datepicker/index.js +1 -0
  16. package/src/datetimepicker/README.md +36 -0
  17. package/src/datetimepicker/datetimepicker.jsx +170 -0
  18. package/src/datetimepicker/index.js +1 -0
  19. package/src/dropdownlist/README.md +23 -14
  20. package/src/dropdownlist/dropdownlist.jsx +13 -6
  21. package/src/index.js +4 -1
  22. package/src/input/index.js +3 -0
  23. package/src/input/input-clear-value.jsx +31 -0
  24. package/src/input/input-inner-span.jsx +9 -8
  25. package/src/input/input-loading-icon.jsx +28 -0
  26. package/src/input/input-validation-icon.jsx +37 -0
  27. package/src/input/input.jsx +2 -0
  28. package/src/maskedtextbox/README.md +15 -9
  29. package/src/maskedtextbox/maskedtextbox.jsx +18 -5
  30. package/src/numerictextbox/README.md +15 -9
  31. package/src/numerictextbox/numerictextbox.jsx +16 -5
  32. package/src/radio/README.md +7 -7
  33. package/src/searchbox/README.md +16 -12
  34. package/src/searchbox/searchbox.jsx +19 -10
  35. package/src/textarea/README.md +17 -11
  36. package/src/textbox/README.md +15 -9
  37. package/src/textbox/textbox.jsx +17 -0
  38. package/src/timepicker/README.md +36 -0
  39. package/src/timepicker/index.js +1 -0
  40. package/src/timepicker/timepicker.jsx +170 -0
@@ -0,0 +1,170 @@
1
+ import { globalDefaultProps } from '../component';
2
+ import { Input, InputStatic, InputInnerInputStatic } from '../input/index';
3
+ import { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
4
+ import { ButtonStatic } from '../button/index';
5
+ import { IconStatic } from '../icon/index';
6
+
7
+ class TimePicker extends Input {
8
+ render() {
9
+ return <TimePickerStatic {...this.props} />;
10
+ }
11
+ }
12
+
13
+ function TimePickerStatic(props) {
14
+
15
+ const {
16
+ className: ownClassName,
17
+
18
+ type,
19
+ value,
20
+ placeholder,
21
+ autocomplete,
22
+
23
+ prefix,
24
+ suffix,
25
+
26
+ size,
27
+ rounded,
28
+
29
+ fillMode,
30
+
31
+ hover,
32
+ focus,
33
+ valid,
34
+ invalid,
35
+ required,
36
+ disabled,
37
+
38
+ aria,
39
+ legacy,
40
+
41
+ ...htmlAttributes
42
+ } = props;
43
+
44
+ htmlAttributes.size = size;
45
+ htmlAttributes.rounded = rounded;
46
+ htmlAttributes.fillMode = fillMode;
47
+ htmlAttributes.hover = hover;
48
+ htmlAttributes.focus = focus;
49
+ htmlAttributes.valid = valid;
50
+ htmlAttributes.invalid = invalid;
51
+ htmlAttributes.required = required;
52
+ htmlAttributes.disabled = disabled;
53
+
54
+ const inputAttributes = {
55
+ type,
56
+ value,
57
+ placeholder,
58
+ autocomplete,
59
+
60
+ disabled
61
+ };
62
+
63
+ let timePickerClasses = [
64
+ ownClassName,
65
+ 'k-timepicker'
66
+ ];
67
+
68
+ let ariaAttr = aria
69
+ ? {}
70
+ : {};
71
+
72
+ if (legacy) {
73
+
74
+ let legacyClasses = [
75
+ ownClassName,
76
+ 'k-widget',
77
+ 'k-timepicker',
78
+ {
79
+ 'k-state-disabled': disabled === true
80
+ }
81
+ ];
82
+
83
+ let legacyWrapClasses = [
84
+ 'k-picker-wrap',
85
+ {
86
+ 'k-state-hover': hover === true,
87
+ 'k-state-focused': focus === true,
88
+ 'k-state-invalid': invalid === true
89
+ }
90
+ ];
91
+
92
+ return (
93
+ <InputStatic className={legacyClasses} {...htmlAttributes}>
94
+ <span className={legacyWrapClasses}>
95
+ <input type={type} className="k-input" {...inputAttributes} />
96
+ <InputValidationIconStatic {...props} />
97
+ <InputLoadingIconStatic {...props} />
98
+ <InputClearValueStatic {...props} />
99
+ <span className="k-select"><IconStatic name="clock" /></span>
100
+ </span>
101
+ </InputStatic>
102
+ );
103
+ }
104
+
105
+ return (
106
+ <InputStatic className={timePickerClasses} {...ariaAttr} {...htmlAttributes}>
107
+ {prefix}
108
+ <InputInnerInputStatic {...inputAttributes} />
109
+ {suffix}
110
+ <InputValidationIconStatic {...props} />
111
+ <InputLoadingIconStatic {...props} />
112
+ <InputClearValueStatic {...props} />
113
+ <ButtonStatic className="k-input-button" icon="clock" rounded="none" size={size} fillMode={fillMode}></ButtonStatic>
114
+ </InputStatic>
115
+ );
116
+ }
117
+
118
+ TimePickerStatic.defaultProps = {
119
+ ...globalDefaultProps,
120
+
121
+ type: 'text',
122
+ value: '',
123
+ placeholder: '',
124
+ autocomplete: 'off',
125
+
126
+ showValidationIcon: true,
127
+ showLoadingIcon: true,
128
+ showClearButton: true,
129
+
130
+ size: 'medium',
131
+ rounded: 'medium',
132
+
133
+ fillMode: 'solid'
134
+ };
135
+
136
+ TimePickerStatic.propTypes = {
137
+ children: typeof [],
138
+ className: typeof '',
139
+
140
+ type: typeof [ 'text', 'password' ],
141
+ value: typeof '',
142
+ placeholder: typeof '',
143
+ autocomplete: typeof [ 'on', 'off' ],
144
+
145
+ showValidationIcon: typeof true,
146
+ showLoadingIcon: typeof true,
147
+ showClearButton: typeof true,
148
+
149
+ prefix: typeof '#fragment',
150
+ suffix: typeof '#fragment',
151
+
152
+ size: typeof [ 'none', 'small', 'medium', 'large' ],
153
+ rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
154
+
155
+ fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
156
+
157
+ hover: typeof false,
158
+ focus: typeof false,
159
+ valid: typeof false,
160
+ invalid: typeof false,
161
+ required: typeof false,
162
+ disabled: typeof false,
163
+
164
+ aria: typeof false,
165
+ legacy: typeof false,
166
+
167
+ htmlAttributes: typeof []
168
+ };
169
+
170
+ export { TimePicker, TimePickerStatic };