@progress/kendo-themes-html 6.2.1-dev.154 → 6.2.1-dev.170

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 (133) hide show
  1. package/dist/context-menu/tests/context-menu-in-window.js +1 -4
  2. package/dist/context-menu/tests/context-menu-in-window.js.map +2 -2
  3. package/dist/datetime-selector/datetime-selector.spec.js +2 -2
  4. package/dist/datetime-selector/datetime-selector.spec.js.map +2 -2
  5. package/dist/datetime-selector/tests/datetime-selector.js +2 -2
  6. package/dist/datetime-selector/tests/datetime-selector.js.map +2 -2
  7. package/dist/datetimepicker/datetimepicker.spec.js +2 -2
  8. package/dist/datetimepicker/datetimepicker.spec.js.map +2 -2
  9. package/dist/datetimepicker/tests/datetimepicker-opened.js +2 -2
  10. package/dist/datetimepicker/tests/datetimepicker-opened.js.map +2 -2
  11. package/dist/datetimepicker/tests/datetimepicker.js +2 -2
  12. package/dist/datetimepicker/tests/datetimepicker.js.map +2 -2
  13. package/dist/dialog/dialog.spec.js +1 -4
  14. package/dist/dialog/dialog.spec.js.map +2 -2
  15. package/dist/dialog/tests/dialog-action-buttons.js +82 -73
  16. package/dist/dialog/tests/dialog-action-buttons.js.map +3 -3
  17. package/dist/dialog/tests/dialog-in-window.js +2 -8
  18. package/dist/dialog/tests/dialog-in-window.js.map +2 -2
  19. package/dist/dialog/tests/dialog-modal.js +70 -70
  20. package/dist/dialog/tests/dialog-modal.js.map +3 -3
  21. package/dist/dialog/tests/dialog-theme-colors.js +82 -73
  22. package/dist/dialog/tests/dialog-theme-colors.js.map +3 -3
  23. package/dist/dialog/tests/dialog.js +86 -74
  24. package/dist/dialog/tests/dialog.js.map +3 -3
  25. package/dist/editor/tests/editor-find-replace.js +1 -4
  26. package/dist/editor/tests/editor-find-replace.js.map +2 -2
  27. package/dist/editor/tests/editor-image-editor.js +276 -276
  28. package/dist/editor/tests/editor-image-editor.js.map +4 -4
  29. package/dist/editor/tests/editor-table-wizard-accessibility.js +5 -5
  30. package/dist/editor/tests/editor-table-wizard-accessibility.js.map +2 -2
  31. package/dist/editor/tests/editor-view-source.js +5 -5
  32. package/dist/editor/tests/editor-view-source.js.map +2 -2
  33. package/dist/filemanager/tests/filemanager-dialogs.js +79 -73
  34. package/dist/filemanager/tests/filemanager-dialogs.js.map +3 -3
  35. package/dist/form/tests/form-field-dateinputs.js +4 -4
  36. package/dist/form/tests/form-field-dateinputs.js.map +2 -2
  37. package/dist/gantt/tests/gantt-editing-popup-general.js +2300 -0
  38. package/dist/gantt/tests/gantt-editing-popup-general.js.map +7 -0
  39. package/dist/gantt/tests/gantt-editing-popup-other.js +2035 -0
  40. package/dist/gantt/tests/gantt-editing-popup-other.js.map +7 -0
  41. package/dist/gantt/tests/gantt-editing-popup-predecessors.js +1895 -0
  42. package/dist/gantt/tests/gantt-editing-popup-predecessors.js.map +7 -0
  43. package/dist/gantt/tests/gantt-editing-popup-resources.js +2195 -0
  44. package/dist/gantt/tests/gantt-editing-popup-resources.js.map +7 -0
  45. package/dist/gantt/tests/gantt-editing-popup-successors.js +1895 -0
  46. package/dist/gantt/tests/gantt-editing-popup-successors.js.map +7 -0
  47. package/dist/grid/tests/grid-column-menu-rtl.js +8 -8
  48. package/dist/grid/tests/grid-column-menu-rtl.js.map +2 -2
  49. package/dist/grid/tests/grid-column-menu-tabbed.js +1331 -0
  50. package/dist/grid/tests/grid-column-menu-tabbed.js.map +7 -0
  51. package/dist/grid/tests/grid-column-menu.js +8 -8
  52. package/dist/grid/tests/grid-column-menu.js.map +2 -2
  53. package/dist/grid/tests/grid-editing-custom-editor.js +4 -4
  54. package/dist/grid/tests/grid-editing-custom-editor.js.map +2 -2
  55. package/dist/grid/tests/grid-editing-popup.js +724 -338
  56. package/dist/grid/tests/grid-editing-popup.js.map +4 -4
  57. package/dist/grid/tests/grid-filter-menu-multi-checkbox.js +8 -8
  58. package/dist/grid/tests/grid-filter-menu-multi-checkbox.js.map +2 -2
  59. package/dist/grid/tests/grid-filter-menu.js +2 -2
  60. package/dist/grid/tests/grid-filter-menu.js.map +2 -2
  61. package/dist/grid/tests/grid-filter-row.js +4 -4
  62. package/dist/grid/tests/grid-filter-row.js.map +2 -2
  63. package/dist/grid/tests/grid-rows-resizing.js +2 -2
  64. package/dist/grid/tests/grid-rows-resizing.js.map +2 -2
  65. package/dist/grid/tests/grid-selection-aggregates.js +1348 -0
  66. package/dist/grid/tests/grid-selection-aggregates.js.map +7 -0
  67. package/dist/imageeditor/tests/imageeditor-crop-pane.js +48 -32
  68. package/dist/imageeditor/tests/imageeditor-crop-pane.js.map +2 -2
  69. package/dist/imageeditor/tests/imageeditor-resize-pane.js +45 -22
  70. package/dist/imageeditor/tests/imageeditor-resize-pane.js.map +2 -2
  71. package/dist/index.js +6 -12
  72. package/dist/index.js.map +2 -2
  73. package/dist/scheduler/tests/scheduler-edit-dialog.js +1394 -882
  74. package/dist/scheduler/tests/scheduler-edit-dialog.js.map +4 -4
  75. package/dist/scheduler/tests/scheduler-editing-weekly.js +2964 -0
  76. package/dist/scheduler/tests/scheduler-editing-weekly.js.map +7 -0
  77. package/dist/spreadsheet/tests/spreadsheet-dialog.js +10 -7
  78. package/dist/spreadsheet/tests/spreadsheet-dialog.js.map +2 -2
  79. package/dist/timepicker/tests/timepicker-flat.js +2 -2
  80. package/dist/timepicker/tests/timepicker-flat.js.map +2 -2
  81. package/dist/timepicker/tests/timepicker-opened.js +2 -2
  82. package/dist/timepicker/tests/timepicker-opened.js.map +2 -2
  83. package/dist/timepicker/tests/timepicker-outline.js +2 -2
  84. package/dist/timepicker/tests/timepicker-outline.js.map +2 -2
  85. package/dist/timepicker/tests/timepicker.js +2 -2
  86. package/dist/timepicker/tests/timepicker.js.map +2 -2
  87. package/dist/timepicker/timepicker.spec.js +2 -2
  88. package/dist/timepicker/timepicker.spec.js.map +2 -2
  89. package/dist/treelist/tests/treelist-editing-popup.js +1939 -0
  90. package/dist/treelist/tests/treelist-editing-popup.js.map +7 -0
  91. package/dist/window/tests/window-action-buttons.js +82 -73
  92. package/dist/window/tests/window-action-buttons.js.map +3 -3
  93. package/dist/window/tests/window-rtl.js +1 -4
  94. package/dist/window/tests/window-rtl.js.map +2 -2
  95. package/dist/window/tests/window-theme-colors.js +1 -4
  96. package/dist/window/tests/window-theme-colors.js.map +2 -2
  97. package/dist/window/tests/window.js +1 -4
  98. package/dist/window/tests/window.js.map +2 -2
  99. package/dist/window/window.spec.js +1 -4
  100. package/dist/window/window.spec.js.map +2 -2
  101. package/package.json +2 -2
  102. package/src/datetime-selector/datetime-selector.spec.tsx +1 -1
  103. package/src/dialog/dialog.spec.tsx +2 -3
  104. package/src/dialog/tests/dialog-action-buttons.tsx +25 -4
  105. package/src/dialog/tests/dialog-modal.tsx +7 -1
  106. package/src/dialog/tests/dialog-theme-colors.tsx +25 -4
  107. package/src/dialog/tests/dialog.tsx +31 -5
  108. package/src/editor/tests/editor-image-editor.tsx +8 -2
  109. package/src/editor/tests/editor-table-wizard-accessibility.tsx +7 -1
  110. package/src/editor/tests/editor-view-source.tsx +7 -1
  111. package/src/filemanager/tests/filemanager-dialogs.tsx +19 -3
  112. package/src/gantt/tests/gantt-editing-popup-general.tsx +97 -0
  113. package/src/gantt/tests/gantt-editing-popup-other.tsx +92 -0
  114. package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +113 -0
  115. package/src/gantt/tests/gantt-editing-popup-resources.tsx +180 -0
  116. package/src/gantt/tests/gantt-editing-popup-successors.tsx +113 -0
  117. package/src/grid/tests/grid-column-menu-rtl.tsx +4 -4
  118. package/src/grid/tests/grid-column-menu-tabbed.tsx +337 -0
  119. package/src/grid/tests/grid-column-menu.tsx +4 -4
  120. package/src/grid/tests/grid-editing-popup.tsx +18 -30
  121. package/src/grid/tests/grid-filter-menu-multi-checkbox.tsx +4 -4
  122. package/src/grid/tests/grid-filter-menu.tsx +1 -1
  123. package/src/grid/tests/grid-rows-resizing.tsx +6 -3
  124. package/src/grid/tests/grid-selection-aggregates.tsx +192 -0
  125. package/src/imageeditor/tests/imageeditor-crop-pane.tsx +35 -20
  126. package/src/imageeditor/tests/imageeditor-resize-pane.tsx +31 -16
  127. package/src/scheduler/tests/scheduler-edit-dialog.tsx +32 -34
  128. package/src/scheduler/tests/scheduler-editing-weekly.tsx +137 -0
  129. package/src/spreadsheet/tests/spreadsheet-dialog.tsx +15 -4
  130. package/src/timepicker/timepicker.spec.tsx +1 -1
  131. package/src/treelist/tests/treelist-editing-popup.tsx +66 -0
  132. package/src/window/tests/window-action-buttons.tsx +25 -4
  133. package/src/window/window.spec.tsx +2 -3
@@ -0,0 +1,2964 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b ||= {})
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
26
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
27
+ }) : x)(function(x) {
28
+ if (typeof require !== "undefined")
29
+ return require.apply(this, arguments);
30
+ throw new Error('Dynamic require of "' + x + '" is not supported');
31
+ });
32
+ var __objRest = (source, exclude) => {
33
+ var target = {};
34
+ for (var prop in source)
35
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
36
+ target[prop] = source[prop];
37
+ if (source != null && __getOwnPropSymbols)
38
+ for (var prop of __getOwnPropSymbols(source)) {
39
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
40
+ target[prop] = source[prop];
41
+ }
42
+ return target;
43
+ };
44
+ var __copyProps = (to, from, except, desc) => {
45
+ if (from && typeof from === "object" || typeof from === "function") {
46
+ for (let key of __getOwnPropNames(from))
47
+ if (!__hasOwnProp.call(to, key) && key !== except)
48
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ }
50
+ return to;
51
+ };
52
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
53
+ // If the importer is in node compatibility mode or this is not an ESM
54
+ // file that has been converted to a CommonJS file using a Babel-
55
+ // compatible transform (i.e. "__esModule" has not been set), then set
56
+ // "default" to the CommonJS "module.exports" for node compatibility.
57
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
58
+ mod
59
+ ));
60
+
61
+ // src/scheduler/tests/scheduler-editing-weekly.tsx
62
+ var import_client = __toESM(__require("react-dom/client"));
63
+
64
+ // src/utils/class-names.ts
65
+ var classNames = (...args) => {
66
+ return args.filter((arg) => arg !== true && Boolean(arg)).map((arg) => {
67
+ return Array.isArray(arg) ? classNames(...arg) : typeof arg === "object" ? Object.keys(arg).map((key, idx) => arg[idx] || arg[key] && key || null).filter((el) => el !== null).join(" ") : arg;
68
+ }).filter((arg) => Boolean(arg)).join(" ");
69
+ };
70
+
71
+ // src/utils/component-class-names.ts
72
+ var optionClassNames = (componentClassName, props) => {
73
+ return classNames(
74
+ {
75
+ [`${componentClassName}-xs`]: props.size === "xsmall",
76
+ [`${componentClassName}-sm`]: props.size === "small",
77
+ [`${componentClassName}-md`]: props.size === "medium",
78
+ [`${componentClassName}-lg`]: props.size === "large",
79
+ [`${componentClassName}-xl`]: props.size === "xlarge",
80
+ [`${componentClassName}-xxl`]: props.size === "xxlarge",
81
+ [`${componentClassName}-xxxl`]: props.size === "xxxlarge"
82
+ },
83
+ {
84
+ [`${componentClassName}-${props.fillMode}`]: props.fillMode
85
+ },
86
+ {
87
+ [`${componentClassName}-${props.fillMode}-${props.themeColor}`]: props.fillMode && props.themeColor
88
+ },
89
+ {
90
+ [`${componentClassName}-${props.themeColor}`]: props.themeColor && props.fillMode === void 0
91
+ },
92
+ {
93
+ "k-rounded-sm": props.rounded === "small",
94
+ "k-rounded-md": props.rounded === "medium",
95
+ "k-rounded-lg": props.rounded === "large",
96
+ "k-rounded-full": props.rounded === "full"
97
+ }
98
+ );
99
+ };
100
+ var stateClassNames = (_componentClassName, props) => {
101
+ return classNames({
102
+ "k-valid": props.valid,
103
+ "k-invalid": props.invalid,
104
+ "k-hover": props.hover,
105
+ "k-focus": props.focus,
106
+ "k-checked": props.checked,
107
+ "k-active": props.active,
108
+ "k-selected": props.selected,
109
+ "k-disabled": props.disabled,
110
+ "k-indeterminate": props.indeterminate && !props.checked,
111
+ "k-loading": props.loading,
112
+ "k-empty": props.empty,
113
+ "k-readonly": props.readonly
114
+ });
115
+ };
116
+
117
+ // src/utils/theme.ts
118
+ var Size = {
119
+ "xsmall": "xsmall",
120
+ "small": "small",
121
+ "medium": "medium",
122
+ "large": "large",
123
+ "xlarge": "xlarge",
124
+ "xxlarge": "xxlarge",
125
+ "xxxlarge": "xxxlarge"
126
+ };
127
+ var Roundness = {
128
+ "small": "small",
129
+ "medium": "medium",
130
+ "large": "large",
131
+ "full": "full"
132
+ };
133
+ var FillMode = {
134
+ "solid": "solid",
135
+ "flat": "flat",
136
+ "outline": "outline",
137
+ "clear": "clear",
138
+ "link": "link"
139
+ };
140
+ var ThemeColor = {
141
+ "inherit": "inherit",
142
+ "base": "base",
143
+ "primary": "primary",
144
+ "secondary": "secondary",
145
+ "tertiary": "tertiary",
146
+ "info": "info",
147
+ "success": "success",
148
+ "warning": "warning",
149
+ "error": "error",
150
+ "dark": "dark",
151
+ "light": "light",
152
+ "inverse": "inverse"
153
+ };
154
+ var States = {
155
+ "open": "open",
156
+ "hover": "hover",
157
+ "focus": "focus",
158
+ "active": "active",
159
+ "selected": "selected",
160
+ "disabled": "disabled",
161
+ "valid": "valid",
162
+ "invalid": "invalid",
163
+ "loading": "loading",
164
+ "required": "required",
165
+ "empty": "empty",
166
+ "indeterminate": "indeterminate",
167
+ "checked": "checked",
168
+ "readonly": "readonly"
169
+ };
170
+
171
+ // src/action-buttons/action-buttons.spec.tsx
172
+ var import_jsx_runtime = __require("react/jsx-runtime");
173
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
174
+ var states = [];
175
+ var options = {};
176
+ var defaultProps = {
177
+ alignment: "start",
178
+ orientation: "horizontal"
179
+ };
180
+ var ActionButtons = (props) => {
181
+ const _a = props, {
182
+ alignment = defaultProps.alignment,
183
+ orientation = defaultProps.orientation
184
+ } = _a, other = __objRest(_a, [
185
+ "alignment",
186
+ "orientation"
187
+ ]);
188
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
189
+ "div",
190
+ __spreadProps(__spreadValues({}, other), {
191
+ className: classNames(
192
+ ACTIONBUTTONS_CLASSNAME,
193
+ {
194
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
195
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
196
+ },
197
+ props.className
198
+ ),
199
+ children: props.children
200
+ })
201
+ );
202
+ };
203
+ ActionButtons.states = states;
204
+ ActionButtons.options = options;
205
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
206
+ ActionButtons.defaultProps = defaultProps;
207
+
208
+ // src/icon/icon.spec.tsx
209
+ var import_jsx_runtime2 = __require("react/jsx-runtime");
210
+ var ICON_CLASSNAME = `k-icon`;
211
+ var states2 = [];
212
+ var options2 = {
213
+ size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
214
+ themeColor: [
215
+ ThemeColor.base,
216
+ ThemeColor.primary,
217
+ ThemeColor.secondary,
218
+ ThemeColor.tertiary,
219
+ ThemeColor.success,
220
+ ThemeColor.warning,
221
+ ThemeColor.error,
222
+ ThemeColor.info,
223
+ ThemeColor.light,
224
+ ThemeColor.dark
225
+ ]
226
+ };
227
+ var defaultProps2 = {};
228
+ var Icon = (props) => {
229
+ const _a = props, {
230
+ size,
231
+ themeColor,
232
+ name,
233
+ rotate,
234
+ flip
235
+ } = _a, other = __objRest(_a, [
236
+ "size",
237
+ "themeColor",
238
+ "name",
239
+ "rotate",
240
+ "flip"
241
+ ]);
242
+ if (!name) {
243
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
244
+ }
245
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
246
+ "span",
247
+ __spreadProps(__spreadValues({}, other), {
248
+ className: classNames(
249
+ props.className,
250
+ ICON_CLASSNAME,
251
+ optionClassNames(ICON_CLASSNAME, {
252
+ size,
253
+ themeColor
254
+ }),
255
+ {
256
+ [`k-i-${name}`]: name,
257
+ [`k-rotate-${rotate}`]: rotate,
258
+ [`k-flip-${flip}`]: flip
259
+ }
260
+ )
261
+ })
262
+ );
263
+ };
264
+ Icon.states = states2;
265
+ Icon.options = options2;
266
+ Icon.className = ICON_CLASSNAME;
267
+ Icon.defaultProps = defaultProps2;
268
+
269
+ // src/button/button.spec.tsx
270
+ var import_jsx_runtime3 = __require("react/jsx-runtime");
271
+ var BUTTON_CLASSNAME = `k-button`;
272
+ var states3 = [
273
+ States.hover,
274
+ States.focus,
275
+ States.active,
276
+ States.selected,
277
+ States.disabled
278
+ ];
279
+ var options3 = {
280
+ size: [Size.small, Size.medium, Size.large],
281
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
282
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
283
+ themeColor: [
284
+ ThemeColor.base,
285
+ ThemeColor.primary,
286
+ ThemeColor.secondary,
287
+ ThemeColor.tertiary,
288
+ ThemeColor.success,
289
+ ThemeColor.warning,
290
+ ThemeColor.error,
291
+ ThemeColor.info,
292
+ ThemeColor.light,
293
+ ThemeColor.dark,
294
+ ThemeColor.inverse
295
+ ]
296
+ };
297
+ var defaultProps3 = {
298
+ size: Size.medium,
299
+ rounded: Roundness.medium,
300
+ fillMode: FillMode.solid,
301
+ themeColor: ThemeColor.base,
302
+ showArrow: false,
303
+ arrowIconName: "arrow-s"
304
+ };
305
+ var Button = (props) => {
306
+ const _a = props, {
307
+ size = defaultProps3.size,
308
+ rounded = defaultProps3.rounded,
309
+ fillMode = defaultProps3.fillMode,
310
+ themeColor = defaultProps3.themeColor,
311
+ hover,
312
+ focus,
313
+ active,
314
+ selected,
315
+ disabled,
316
+ icon,
317
+ text,
318
+ iconClassName,
319
+ showArrow = defaultProps3.showArrow,
320
+ arrowIconName = defaultProps3.arrowIconName
321
+ } = _a, other = __objRest(_a, [
322
+ "size",
323
+ "rounded",
324
+ "fillMode",
325
+ "themeColor",
326
+ "hover",
327
+ "focus",
328
+ "active",
329
+ "selected",
330
+ "disabled",
331
+ "icon",
332
+ "text",
333
+ "iconClassName",
334
+ "showArrow",
335
+ "arrowIconName"
336
+ ]);
337
+ const hasIcon = icon !== void 0;
338
+ const hasChildren = props.children !== void 0;
339
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
340
+ "button",
341
+ __spreadProps(__spreadValues({}, other), {
342
+ className: classNames(
343
+ props.className,
344
+ BUTTON_CLASSNAME,
345
+ optionClassNames(BUTTON_CLASSNAME, {
346
+ size,
347
+ rounded,
348
+ fillMode,
349
+ themeColor
350
+ }),
351
+ stateClassNames(BUTTON_CLASSNAME, {
352
+ hover,
353
+ focus,
354
+ active,
355
+ disabled,
356
+ selected
357
+ }),
358
+ {
359
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
360
+ }
361
+ ),
362
+ children: [
363
+ icon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
364
+ Icon,
365
+ {
366
+ className: classNames(iconClassName, "k-button-icon"),
367
+ name: icon
368
+ }
369
+ ),
370
+ text ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
371
+ text && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "k-button-text", children: text }),
372
+ props.children
373
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "k-button-text", children: props.children }),
374
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: arrowIconName }) })
375
+ ]
376
+ })
377
+ );
378
+ };
379
+ Button.states = states3;
380
+ Button.options = options3;
381
+ Button.className = BUTTON_CLASSNAME;
382
+ Button.defaultProps = defaultProps3;
383
+
384
+ // src/window/window.spec.tsx
385
+ var import_jsx_runtime4 = __require("react/jsx-runtime");
386
+ var WINDOW_CLASSNAME = `k-window`;
387
+ var states4 = [];
388
+ var options4 = {
389
+ themeColor: [
390
+ ThemeColor.primary,
391
+ ThemeColor.light,
392
+ ThemeColor.dark
393
+ ]
394
+ };
395
+ var defaultProps4 = {};
396
+ var Window = (props) => {
397
+ const _a = props, {
398
+ title,
399
+ actions,
400
+ minimized,
401
+ themeColor,
402
+ actionButtons,
403
+ actionButtonsAlign
404
+ } = _a, other = __objRest(_a, [
405
+ "title",
406
+ "actions",
407
+ "minimized",
408
+ "themeColor",
409
+ "actionButtons",
410
+ "actionButtonsAlign"
411
+ ]);
412
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
413
+ "div",
414
+ __spreadProps(__spreadValues({}, other), {
415
+ className: classNames(
416
+ props.className,
417
+ WINDOW_CLASSNAME,
418
+ optionClassNames(WINDOW_CLASSNAME, { themeColor }),
419
+ {
420
+ [`${WINDOW_CLASSNAME}-minimized`]: minimized
421
+ }
422
+ ),
423
+ children: [
424
+ (title !== void 0 || actions) && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "k-window-titlebar", children: [
425
+ title !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-window-title", children: title }),
426
+ actions && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-window-titlebar-actions", children: actions.map(
427
+ (actionName) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { icon: actionName, fillMode: "flat", className: "k-window-titlebar-action" }, actionName)
428
+ ) }) })
429
+ ] }),
430
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: classNames(
431
+ "k-window-content",
432
+ {
433
+ "k-hidden": minimized
434
+ }
435
+ ), children: props.children }),
436
+ actionButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
437
+ ]
438
+ })
439
+ );
440
+ };
441
+ Window.states = states4;
442
+ Window.options = options4;
443
+ Window.className = WINDOW_CLASSNAME;
444
+ Window.defaultProps = defaultProps4;
445
+
446
+ // src/checkbox/checkbox.spec.tsx
447
+ var import_jsx_runtime5 = __require("react/jsx-runtime");
448
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
449
+ var states5 = [
450
+ States.hover,
451
+ States.focus,
452
+ States.valid,
453
+ States.invalid,
454
+ States.required,
455
+ States.disabled,
456
+ States.checked,
457
+ States.indeterminate
458
+ ];
459
+ var options5 = {
460
+ size: [Size.small, Size.medium, Size.large],
461
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
462
+ };
463
+ var defaultProps5 = {
464
+ size: Size.medium,
465
+ rounded: Roundness.medium
466
+ };
467
+ var Checkbox = (props) => {
468
+ const _a = props, {
469
+ id,
470
+ checked,
471
+ indeterminate,
472
+ hover,
473
+ focus,
474
+ disabled,
475
+ invalid,
476
+ valid,
477
+ required,
478
+ size = defaultProps5.size,
479
+ rounded = defaultProps5.rounded
480
+ } = _a, other = __objRest(_a, [
481
+ "id",
482
+ "checked",
483
+ "indeterminate",
484
+ "hover",
485
+ "focus",
486
+ "disabled",
487
+ "invalid",
488
+ "valid",
489
+ "required",
490
+ "size",
491
+ "rounded"
492
+ ]);
493
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
494
+ "input",
495
+ __spreadProps(__spreadValues({}, other), {
496
+ id,
497
+ type: "checkbox",
498
+ checked,
499
+ required,
500
+ className: classNames(
501
+ props.className,
502
+ CHECKBOX_CLASSNAME,
503
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
504
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
505
+ )
506
+ })
507
+ ) });
508
+ };
509
+ Checkbox.states = states5;
510
+ Checkbox.options = options5;
511
+ Checkbox.className = CHECKBOX_CLASSNAME;
512
+ Checkbox.defaultProps = defaultProps5;
513
+
514
+ // src/input/input.spec.tsx
515
+ var import_jsx_runtime6 = __require("react/jsx-runtime");
516
+ var INPUT_CLASSNAME = `k-input`;
517
+ var states6 = [
518
+ States.hover,
519
+ States.focus,
520
+ States.valid,
521
+ States.invalid,
522
+ States.required,
523
+ States.disabled,
524
+ States.loading,
525
+ States.readonly
526
+ ];
527
+ var options6 = {
528
+ size: [Size.small, Size.medium, Size.large],
529
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
530
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
531
+ };
532
+ var defaultProps6 = {
533
+ size: Size.medium,
534
+ rounded: Size.medium,
535
+ fillMode: FillMode.solid
536
+ };
537
+ var Input = (props) => {
538
+ const _a = props, {
539
+ hover,
540
+ focus,
541
+ disabled,
542
+ invalid,
543
+ valid,
544
+ loading,
545
+ readonly,
546
+ size = defaultProps6.size,
547
+ rounded = defaultProps6.rounded,
548
+ fillMode = defaultProps6.fillMode
549
+ } = _a, other = __objRest(_a, [
550
+ "hover",
551
+ "focus",
552
+ "disabled",
553
+ "invalid",
554
+ "valid",
555
+ "loading",
556
+ "readonly",
557
+ "size",
558
+ "rounded",
559
+ "fillMode"
560
+ ]);
561
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
562
+ "span",
563
+ __spreadProps(__spreadValues({}, other), {
564
+ className: classNames(
565
+ props.className,
566
+ INPUT_CLASSNAME,
567
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
568
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
569
+ )
570
+ })
571
+ );
572
+ };
573
+ Input.states = states6;
574
+ Input.options = options6;
575
+ Input.className = INPUT_CLASSNAME;
576
+ Input.defaultProps = defaultProps6;
577
+
578
+ // src/input/picker.spec.tsx
579
+ var import_jsx_runtime7 = __require("react/jsx-runtime");
580
+ var PICKER_CLASSNAME = `k-picker`;
581
+ var pickerStates = [
582
+ States.hover,
583
+ States.focus,
584
+ States.valid,
585
+ States.invalid,
586
+ States.required,
587
+ States.disabled,
588
+ States.loading,
589
+ States.readonly
590
+ ];
591
+ var pickerOptions = {
592
+ size: [Size.small, Size.medium, Size.large],
593
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
594
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
595
+ };
596
+ var defaultProps7 = {
597
+ size: Size.medium,
598
+ rounded: Roundness.medium,
599
+ fillMode: FillMode.solid
600
+ };
601
+ var Picker = (props) => {
602
+ const _a = props, {
603
+ hover,
604
+ focus,
605
+ disabled,
606
+ invalid,
607
+ valid,
608
+ loading,
609
+ readonly,
610
+ size = defaultProps7.size,
611
+ rounded = defaultProps7.rounded,
612
+ fillMode = defaultProps7.fillMode
613
+ } = _a, other = __objRest(_a, [
614
+ "hover",
615
+ "focus",
616
+ "disabled",
617
+ "invalid",
618
+ "valid",
619
+ "loading",
620
+ "readonly",
621
+ "size",
622
+ "rounded",
623
+ "fillMode"
624
+ ]);
625
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
626
+ "span",
627
+ __spreadProps(__spreadValues({}, other), {
628
+ className: classNames(
629
+ props.className,
630
+ PICKER_CLASSNAME,
631
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
632
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
633
+ ),
634
+ children: props.children
635
+ })
636
+ );
637
+ };
638
+ Picker.states = pickerStates;
639
+ Picker.options = pickerOptions;
640
+ Picker.className = PICKER_CLASSNAME;
641
+ Picker.defaultProps = defaultProps7;
642
+
643
+ // src/input/input-clear-value.tsx
644
+ var import_jsx_runtime8 = __require("react/jsx-runtime");
645
+ var className = `k-clear-value`;
646
+ var states7 = [
647
+ States.disabled,
648
+ States.loading,
649
+ States.readonly
650
+ ];
651
+ var options7 = {};
652
+ var InputClearValue = (props) => {
653
+ const {
654
+ disabled,
655
+ loading,
656
+ readonly,
657
+ value
658
+ } = props;
659
+ if (disabled || readonly || loading || !value) {
660
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {});
661
+ }
662
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "x" }) });
663
+ };
664
+ InputClearValue.states = states7;
665
+ InputClearValue.options = options7;
666
+ InputClearValue.className = className;
667
+
668
+ // src/input/input-inner-input.tsx
669
+ var import_jsx_runtime9 = __require("react/jsx-runtime");
670
+ var className2 = `k-input-inner`;
671
+ var states8 = [];
672
+ var options8 = {};
673
+ var defaultProps8 = {
674
+ type: "text",
675
+ autocomplete: "off",
676
+ value: "",
677
+ placeholder: ""
678
+ };
679
+ var InputInnerInput = (props) => {
680
+ const _a = props, {
681
+ value = defaultProps8.value,
682
+ type = defaultProps8.type,
683
+ placeholder = defaultProps8.placeholder,
684
+ autocomplete = defaultProps8.autocomplete
685
+ } = _a, other = __objRest(_a, [
686
+ "value",
687
+ "type",
688
+ "placeholder",
689
+ "autocomplete"
690
+ ]);
691
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
692
+ "input",
693
+ __spreadProps(__spreadValues({}, other), {
694
+ type,
695
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
696
+ placeholder,
697
+ autoComplete: autocomplete,
698
+ defaultValue: value
699
+ })
700
+ );
701
+ };
702
+ InputInnerInput.states = states8;
703
+ InputInnerInput.options = options8;
704
+ InputInnerInput.className = className2;
705
+
706
+ // src/input/input-inner-span.tsx
707
+ var import_jsx_runtime10 = __require("react/jsx-runtime");
708
+ var className3 = `k-input-inner`;
709
+ var states9 = [];
710
+ var options9 = {};
711
+ var InputInnerSpan = (props) => {
712
+ const _a = props, {
713
+ value,
714
+ placeholder,
715
+ showValue,
716
+ valueIcon,
717
+ valueIconName
718
+ } = _a, other = __objRest(_a, [
719
+ "value",
720
+ "placeholder",
721
+ "showValue",
722
+ "valueIcon",
723
+ "valueIconName"
724
+ ]);
725
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
726
+ "span",
727
+ __spreadProps(__spreadValues({}, other), {
728
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
729
+ children: [
730
+ valueIcon,
731
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { className: "k-input-value-icon", name: valueIconName }),
732
+ showValue && !value && placeholder,
733
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "k-input-value-text", children: value })
734
+ ]
735
+ })
736
+ );
737
+ };
738
+ InputInnerSpan.states = states9;
739
+ InputInnerSpan.options = options9;
740
+ InputInnerSpan.className = className3;
741
+
742
+ // src/input/input-inner-textarea.tsx
743
+ var import_jsx_runtime11 = __require("react/jsx-runtime");
744
+ var defaultProps9 = {
745
+ value: "",
746
+ placeholder: ""
747
+ };
748
+ var className4 = `k-input-inner`;
749
+ var states10 = [];
750
+ var options10 = {};
751
+ var InputInnerTextarea = (props) => {
752
+ const _a = props, {
753
+ value = defaultProps9.value,
754
+ placeholder = defaultProps9.placeholder,
755
+ rows
756
+ } = _a, other = __objRest(_a, [
757
+ "value",
758
+ "placeholder",
759
+ "rows"
760
+ ]);
761
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
762
+ "textarea",
763
+ __spreadProps(__spreadValues({}, other), {
764
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
765
+ placeholder,
766
+ rows,
767
+ children: value
768
+ })
769
+ );
770
+ };
771
+ InputInnerTextarea.states = states10;
772
+ InputInnerTextarea.options = options10;
773
+ InputInnerTextarea.className = className4;
774
+
775
+ // src/input/input-loading-icon.tsx
776
+ var import_jsx_runtime12 = __require("react/jsx-runtime");
777
+ var className5 = `k-input-loading-icon`;
778
+ var states11 = [
779
+ States.disabled,
780
+ States.loading
781
+ ];
782
+ var InputLoadingIcon = (props) => {
783
+ const {
784
+ disabled,
785
+ loading
786
+ } = props;
787
+ if (disabled || !loading) {
788
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
789
+ }
790
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: classNames(props.className, className5), name: "loading" });
791
+ };
792
+
793
+ // src/input/input-validation-icon.tsx
794
+ var import_jsx_runtime13 = __require("react/jsx-runtime");
795
+ var className6 = `k-input-validation-icon`;
796
+ var states12 = [
797
+ States.valid,
798
+ States.invalid,
799
+ States.disabled,
800
+ States.loading
801
+ ];
802
+ var options11 = {};
803
+ var InputValidationIcon = (props) => {
804
+ const {
805
+ valid,
806
+ invalid,
807
+ disabled,
808
+ loading
809
+ } = props;
810
+ const iconName = invalid ? "warning" : "check";
811
+ const renderValidationIcon = Boolean(valid || invalid);
812
+ if (disabled || loading || !renderValidationIcon) {
813
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {});
814
+ }
815
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { className: classNames(className6), name: iconName });
816
+ };
817
+ InputValidationIcon.states = states12;
818
+ InputValidationIcon.options = options11;
819
+ InputValidationIcon.className = className6;
820
+
821
+ // src/input/input-prefix.tsx
822
+ var import_jsx_runtime14 = __require("react/jsx-runtime");
823
+ var className7 = `k-input-prefix`;
824
+ var InputPrefix = (props) => {
825
+ if (!props.children) {
826
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {});
827
+ }
828
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classNames(className7, props.className), children: props.children });
829
+ };
830
+
831
+ // src/input/input-suffix.tsx
832
+ var import_jsx_runtime15 = __require("react/jsx-runtime");
833
+ var className8 = `k-input-suffix`;
834
+ var InputSuffix = (props) => {
835
+ if (!props.children) {
836
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {});
837
+ }
838
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: classNames(className8, props.className), children: props.children });
839
+ };
840
+
841
+ // src/textarea/textarea.spec.tsx
842
+ var import_jsx_runtime16 = __require("react/jsx-runtime");
843
+ var TEXTAREA_CLASSNAME = `k-textarea`;
844
+ var states13 = [
845
+ States.hover,
846
+ States.focus,
847
+ States.valid,
848
+ States.invalid,
849
+ States.required,
850
+ States.disabled,
851
+ States.loading
852
+ ];
853
+ var options12 = {
854
+ size: [Size.small, Size.medium, Size.large],
855
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
856
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
857
+ };
858
+ var defaultProps10 = {
859
+ size: Input.defaultProps.size,
860
+ rounded: Input.defaultProps.rounded,
861
+ fillMode: Input.defaultProps.fillMode
862
+ };
863
+ var Textarea = (props) => {
864
+ const _a = props, {
865
+ rows,
866
+ value,
867
+ placeholder,
868
+ size,
869
+ rounded,
870
+ fillMode,
871
+ hover,
872
+ focus,
873
+ valid,
874
+ invalid,
875
+ required,
876
+ loading,
877
+ disabled
878
+ } = _a, other = __objRest(_a, [
879
+ "rows",
880
+ "value",
881
+ "placeholder",
882
+ "size",
883
+ "rounded",
884
+ "fillMode",
885
+ "hover",
886
+ "focus",
887
+ "valid",
888
+ "invalid",
889
+ "required",
890
+ "loading",
891
+ "disabled"
892
+ ]);
893
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
894
+ Input,
895
+ __spreadProps(__spreadValues({}, other), {
896
+ size,
897
+ rounded,
898
+ fillMode,
899
+ hover,
900
+ focus,
901
+ valid,
902
+ invalid,
903
+ required,
904
+ loading,
905
+ disabled,
906
+ className: classNames(props.className, TEXTAREA_CLASSNAME),
907
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
908
+ InputInnerTextarea,
909
+ {
910
+ className: "!k-overflow-auto",
911
+ value,
912
+ placeholder,
913
+ rows
914
+ }
915
+ )
916
+ })
917
+ );
918
+ };
919
+ Textarea.states = states13;
920
+ Textarea.options = options12;
921
+ Textarea.className = TEXTAREA_CLASSNAME;
922
+ Textarea.defaultProps = defaultProps10;
923
+
924
+ // src/textbox/textbox.spec.tsx
925
+ var import_jsx_runtime17 = __require("react/jsx-runtime");
926
+ var TEXTBOX_CLASSNAME = `k-textbox`;
927
+ var states14 = [
928
+ States.hover,
929
+ States.focus,
930
+ States.valid,
931
+ States.invalid,
932
+ States.required,
933
+ States.disabled,
934
+ States.loading,
935
+ States.readonly
936
+ ];
937
+ var options13 = {
938
+ size: [Size.small, Size.medium, Size.large],
939
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
940
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
941
+ };
942
+ var defaultProps11 = {
943
+ showClearButton: true,
944
+ size: Input.defaultProps.size,
945
+ rounded: Input.defaultProps.rounded,
946
+ fillMode: Input.defaultProps.fillMode
947
+ };
948
+ var Textbox = (props) => {
949
+ const _a = props, {
950
+ prefix,
951
+ suffix,
952
+ value,
953
+ placeholder,
954
+ size,
955
+ rounded,
956
+ fillMode,
957
+ hover,
958
+ focus,
959
+ valid,
960
+ invalid,
961
+ required,
962
+ loading,
963
+ disabled,
964
+ readonly,
965
+ showClearButton = defaultProps11.showClearButton
966
+ } = _a, other = __objRest(_a, [
967
+ "prefix",
968
+ "suffix",
969
+ "value",
970
+ "placeholder",
971
+ "size",
972
+ "rounded",
973
+ "fillMode",
974
+ "hover",
975
+ "focus",
976
+ "valid",
977
+ "invalid",
978
+ "required",
979
+ "loading",
980
+ "disabled",
981
+ "readonly",
982
+ "showClearButton"
983
+ ]);
984
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
985
+ Input,
986
+ __spreadProps(__spreadValues({}, other), {
987
+ size,
988
+ rounded,
989
+ fillMode,
990
+ hover,
991
+ focus,
992
+ valid,
993
+ invalid,
994
+ required,
995
+ loading,
996
+ disabled,
997
+ readonly,
998
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
999
+ children: [
1000
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputPrefix, { children: prefix }),
1001
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputInnerInput, { placeholder, value }),
1002
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1003
+ InputValidationIcon,
1004
+ {
1005
+ valid,
1006
+ invalid,
1007
+ loading,
1008
+ disabled
1009
+ }
1010
+ ),
1011
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1012
+ InputLoadingIcon,
1013
+ {
1014
+ loading,
1015
+ disabled
1016
+ }
1017
+ ),
1018
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1019
+ InputClearValue,
1020
+ {
1021
+ loading,
1022
+ disabled,
1023
+ readonly,
1024
+ value
1025
+ }
1026
+ ),
1027
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputSuffix, { children: suffix })
1028
+ ]
1029
+ })
1030
+ );
1031
+ };
1032
+ Textbox.states = states14;
1033
+ Textbox.options = options13;
1034
+ Textbox.className = TEXTBOX_CLASSNAME;
1035
+ Textbox.defaultProps = defaultProps11;
1036
+
1037
+ // src/popup/popup.spec.tsx
1038
+ var import_jsx_runtime18 = __require("react/jsx-runtime");
1039
+ var POPUP_CLASSNAME = `k-popup`;
1040
+ var states15 = [];
1041
+ var options14 = {};
1042
+ var defaultProps12 = {};
1043
+ var Popup = (props) => {
1044
+ const other = __objRest(props, []);
1045
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
1046
+ };
1047
+ Popup.states = states15;
1048
+ Popup.options = options14;
1049
+ Popup.className = POPUP_CLASSNAME;
1050
+ Popup.defaultProps = defaultProps12;
1051
+
1052
+ // src/button-group/button-group.spec.tsx
1053
+ var import_jsx_runtime19 = __require("react/jsx-runtime");
1054
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
1055
+ var states16 = [
1056
+ States.disabled
1057
+ ];
1058
+ var options15 = {
1059
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
1060
+ };
1061
+ var defaultProps13 = {
1062
+ fillMode: FillMode.solid
1063
+ };
1064
+ var ButtonGroup = (props) => {
1065
+ const _a = props, {
1066
+ fillMode = defaultProps13.fillMode,
1067
+ disabled,
1068
+ stretched
1069
+ } = _a, other = __objRest(_a, [
1070
+ "fillMode",
1071
+ "disabled",
1072
+ "stretched"
1073
+ ]);
1074
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1075
+ "div",
1076
+ __spreadProps(__spreadValues({}, other), {
1077
+ className: classNames(
1078
+ props.className,
1079
+ BUTTONGROUP_CLASSNAME,
1080
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
1081
+ fillMode
1082
+ }),
1083
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
1084
+ disabled
1085
+ }),
1086
+ {
1087
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
1088
+ }
1089
+ ),
1090
+ children: props.children
1091
+ })
1092
+ );
1093
+ };
1094
+ ButtonGroup.states = states16;
1095
+ ButtonGroup.options = options15;
1096
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
1097
+ ButtonGroup.defaultProps = defaultProps13;
1098
+
1099
+ // src/calendar/calendar.spec.tsx
1100
+ var import_jsx_runtime20 = __require("react/jsx-runtime");
1101
+ var CALENDAR_CLASSNAME = `k-calendar`;
1102
+ var states17 = [];
1103
+ var options16 = {
1104
+ size: [Size.small, Size.medium, Size.large]
1105
+ };
1106
+ var defaultProps14 = {
1107
+ size: Size.medium,
1108
+ viewsCount: 1,
1109
+ orientation: "horizontal",
1110
+ calendarView: "month",
1111
+ calendarHeaderText: "October 2021"
1112
+ };
1113
+ var Calendar = (props) => {
1114
+ const _a = props, {
1115
+ size = defaultProps14.size,
1116
+ orientation = defaultProps14.orientation,
1117
+ calendarView = defaultProps14.calendarView,
1118
+ calendarHeaderText = defaultProps14.calendarHeaderText,
1119
+ viewsCount = defaultProps14.viewsCount,
1120
+ showWeek,
1121
+ showOtherMonth,
1122
+ showCalendarCaption,
1123
+ showCalendarFooter,
1124
+ selectedRange
1125
+ } = _a, other = __objRest(_a, [
1126
+ "size",
1127
+ "orientation",
1128
+ "calendarView",
1129
+ "calendarHeaderText",
1130
+ "viewsCount",
1131
+ "showWeek",
1132
+ "showOtherMonth",
1133
+ "showCalendarCaption",
1134
+ "showCalendarFooter",
1135
+ "selectedRange"
1136
+ ]);
1137
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1138
+ "div",
1139
+ __spreadProps(__spreadValues({}, other), {
1140
+ className: classNames(
1141
+ props.className,
1142
+ CALENDAR_CLASSNAME,
1143
+ optionClassNames(CALENDAR_CLASSNAME, {
1144
+ size
1145
+ }),
1146
+ {
1147
+ "k-week-number": showWeek
1148
+ }
1149
+ ),
1150
+ children: [
1151
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1152
+ CalendarHeader,
1153
+ {
1154
+ showToday: showCalendarFooter ? false : true,
1155
+ calendarHeaderText,
1156
+ orientation,
1157
+ size
1158
+ }
1159
+ ),
1160
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1161
+ CalendarView,
1162
+ {
1163
+ calendarView,
1164
+ viewsCount,
1165
+ orientation,
1166
+ showWeek,
1167
+ showOtherMonth,
1168
+ showCalendarCaption,
1169
+ selectedRange
1170
+ }
1171
+ ),
1172
+ showCalendarFooter && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CalendarFooter, {})
1173
+ ]
1174
+ })
1175
+ );
1176
+ };
1177
+ Calendar.states = states17;
1178
+ Calendar.options = options16;
1179
+ Calendar.className = CALENDAR_CLASSNAME;
1180
+ Calendar.defaultProps = defaultProps14;
1181
+
1182
+ // src/calendar/calendar-cell.tsx
1183
+ var import_jsx_runtime21 = __require("react/jsx-runtime");
1184
+ var states18 = [
1185
+ States.hover,
1186
+ States.focus,
1187
+ States.active,
1188
+ States.selected,
1189
+ States.disabled
1190
+ ];
1191
+ var CalendarCell = (props) => {
1192
+ const _a = props, {
1193
+ text,
1194
+ headerCell,
1195
+ today,
1196
+ weekend,
1197
+ otherMonth,
1198
+ showOtherMonth,
1199
+ weekCell,
1200
+ rangeStart,
1201
+ rangeMid,
1202
+ rangeEnd,
1203
+ hover,
1204
+ focus,
1205
+ active,
1206
+ selected,
1207
+ disabled
1208
+ } = _a, other = __objRest(_a, [
1209
+ "text",
1210
+ "headerCell",
1211
+ "today",
1212
+ "weekend",
1213
+ "otherMonth",
1214
+ "showOtherMonth",
1215
+ "weekCell",
1216
+ "rangeStart",
1217
+ "rangeMid",
1218
+ "rangeEnd",
1219
+ "hover",
1220
+ "focus",
1221
+ "active",
1222
+ "selected",
1223
+ "disabled"
1224
+ ]);
1225
+ const cellType = headerCell ? "th" : "td";
1226
+ const CALENDARCELL_CLASSNAME = `k-calendar-${cellType}`;
1227
+ const calendarCellClasses = [
1228
+ props.className,
1229
+ CALENDARCELL_CLASSNAME,
1230
+ stateClassNames(CALENDARCELL_CLASSNAME, {
1231
+ hover,
1232
+ focus,
1233
+ active,
1234
+ selected,
1235
+ disabled
1236
+ }),
1237
+ {
1238
+ "k-today": today,
1239
+ "k-weekend": weekend,
1240
+ "k-other-month": otherMonth,
1241
+ "k-alt": weekCell,
1242
+ "k-range-start": rangeStart,
1243
+ "k-range-mid": rangeMid,
1244
+ "k-range-end": rangeEnd
1245
+ }
1246
+ ];
1247
+ if (headerCell) {
1248
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("th", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1249
+ }
1250
+ if (weekCell) {
1251
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1252
+ }
1253
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: otherMonth && !showOtherMonth ? "" : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "k-link", children: text }) }));
1254
+ };
1255
+
1256
+ // src/calendar/calendar-header.tsx
1257
+ var import_jsx_runtime22 = __require("react/jsx-runtime");
1258
+ var className9 = `k-calendar-header`;
1259
+ var options17 = {
1260
+ size: [Size.small, Size.medium, Size.large]
1261
+ };
1262
+ var defaultProps15 = {
1263
+ calendarHeaderText: "October 2021",
1264
+ showToday: true,
1265
+ orientation: "horizontal",
1266
+ size: Size.medium
1267
+ };
1268
+ var CalendarHeader = (props) => {
1269
+ const _a = props, {
1270
+ calendarHeaderText = defaultProps15.calendarHeaderText,
1271
+ showToday = defaultProps15.showToday,
1272
+ orientation = defaultProps15.orientation,
1273
+ size = defaultProps15.size
1274
+ } = _a, other = __objRest(_a, [
1275
+ "calendarHeaderText",
1276
+ "showToday",
1277
+ "orientation",
1278
+ "size"
1279
+ ]);
1280
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1281
+ "div",
1282
+ __spreadProps(__spreadValues({}, other), {
1283
+ className: classNames(
1284
+ props.className,
1285
+ className9,
1286
+ {
1287
+ "k-vstack": orientation === "vertical"
1288
+ }
1289
+ ),
1290
+ children: [
1291
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { className: "k-calendar-title", text: calendarHeaderText, size, fillMode: "flat" }),
1292
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "k-spacer" }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "k-calendar-nav", children: [
1294
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { className: "k-calendar-nav-prev", icon: "arrow-chevron-left", size, fillMode: "flat" }),
1295
+ showToday && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { size, fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Today" }),
1296
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { className: "k-calendar-nav-next", icon: "arrow-chevron-right", size, fillMode: "flat" })
1297
+ ] })
1298
+ ]
1299
+ })
1300
+ );
1301
+ };
1302
+
1303
+ // src/calendar/calendar-footer.tsx
1304
+ var import_jsx_runtime23 = __require("react/jsx-runtime");
1305
+ var className10 = `k-calendar-footer`;
1306
+ var CalendarFooter = (props) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", __spreadProps(__spreadValues({}, props), { className: classNames(props.className, className10), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Monday, October 29, 2021" }) }));
1307
+
1308
+ // src/calendar/calendar-table.tsx
1309
+ var import_jsx_runtime24 = __require("react/jsx-runtime");
1310
+ var CALENDARTABLE_CLASSNAME = `k-calendar-table`;
1311
+ var CalendarTable = (props) => {
1312
+ const _a = props, {
1313
+ calendarView,
1314
+ showOtherMonth,
1315
+ showWeek,
1316
+ showCalendarCaption,
1317
+ selectedRange
1318
+ } = _a, other = __objRest(_a, [
1319
+ "calendarView",
1320
+ "showOtherMonth",
1321
+ "showWeek",
1322
+ "showCalendarCaption",
1323
+ "selectedRange"
1324
+ ]);
1325
+ if (calendarView === "year") {
1326
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1327
+ "table",
1328
+ __spreadProps(__spreadValues({}, other), {
1329
+ className: classNames(
1330
+ props.className,
1331
+ CALENDARTABLE_CLASSNAME
1332
+ ),
1333
+ children: [
1334
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "2022" }),
1335
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1336
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1337
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Jan" }),
1338
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Feb" }),
1339
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Mar" }),
1340
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Apr" })
1341
+ ] }),
1342
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1343
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "May" }),
1344
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Jun", hover: true }),
1345
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Jul", focus: true }),
1346
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Au", selected: true })
1347
+ ] }),
1348
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1349
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Sep" }),
1350
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Oct", today: true }),
1351
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Nov" }),
1352
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "Dec" })
1353
+ ] })
1354
+ ] })
1355
+ ]
1356
+ })
1357
+ );
1358
+ }
1359
+ if (calendarView === "decade") {
1360
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1361
+ "table",
1362
+ __spreadProps(__spreadValues({}, other), {
1363
+ className: classNames(
1364
+ props.className,
1365
+ CALENDARTABLE_CLASSNAME
1366
+ ),
1367
+ children: [
1368
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "2020 - 2029" }),
1369
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1370
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1371
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { className: "k-out-of-range" }),
1372
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2020" }),
1373
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2021", today: true }),
1374
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2022" })
1375
+ ] }),
1376
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1377
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2023" }),
1378
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2024", hover: true }),
1379
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2025", focus: true }),
1380
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2026", selected: true })
1381
+ ] }),
1382
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1383
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2027" }),
1384
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2028" }),
1385
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2029" }),
1386
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { className: "k-out-of-range" })
1387
+ ] })
1388
+ ] })
1389
+ ]
1390
+ })
1391
+ );
1392
+ }
1393
+ if (calendarView === "century") {
1394
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1395
+ "table",
1396
+ __spreadProps(__spreadValues({}, other), {
1397
+ className: classNames(
1398
+ props.className,
1399
+ CALENDARTABLE_CLASSNAME
1400
+ ),
1401
+ children: [
1402
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "2000 - 2099" }),
1403
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1404
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1405
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "1990 - 1999" }),
1406
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2000 - 2009" }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2010 - 2019", today: true }),
1408
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2020 - 2029" })
1409
+ ] }),
1410
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1411
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2030 - 2039" }),
1412
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2040 - 2049", hover: true }),
1413
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2050 - 2059", focus: true }),
1414
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2060 - 2069", selected: true })
1415
+ ] }),
1416
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1417
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2070 - 2079" }),
1418
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2080 - 2089" }),
1419
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2090 - 2099" }),
1420
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { className: "k-out-of-range" })
1421
+ ] })
1422
+ ] })
1423
+ ]
1424
+ })
1425
+ );
1426
+ }
1427
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1428
+ "table",
1429
+ __spreadProps(__spreadValues({}, other), {
1430
+ className: classNames(
1431
+ props.className,
1432
+ CALENDARTABLE_CLASSNAME
1433
+ ),
1434
+ children: [
1435
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("caption", { className: "k-calendar-caption", children: "October 2021" }),
1436
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarTableHead, { showWeek }),
1437
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1438
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1439
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "39", weekCell: true }),
1440
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "30", otherMonth: true, showOtherMonth }),
1441
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "1" }),
1442
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2" }),
1443
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "3" }),
1444
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "4" }),
1445
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "5" }),
1446
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "6", weekend: true })
1447
+ ] }),
1448
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1449
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "40", weekCell: true }),
1450
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "7", weekend: true }),
1451
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "8", hover: true }),
1452
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "9", focus: true }),
1453
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "10", selected: true }),
1454
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "11", hover: true, focus: true }),
1455
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "12", hover: true, selected: true }),
1456
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "13", weekend: true })
1457
+ ] }),
1458
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1459
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "41", weekCell: true }),
1460
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "14", weekend: true }),
1461
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "15" }),
1462
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "16", today: true }),
1463
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "17" }),
1464
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "18" }),
1465
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "19" }),
1466
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "20", weekend: true })
1467
+ ] }),
1468
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1469
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "42", weekCell: true }),
1470
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "21", weekend: true }),
1471
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "22" }),
1472
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "23" }),
1473
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "24" }),
1474
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "25", rangeStart: selectedRange, selected: selectedRange }),
1475
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "26", rangeMid: selectedRange }),
1476
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "27", weekend: true, rangeMid: selectedRange })
1477
+ ] }),
1478
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1479
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "43", weekCell: true }),
1480
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "28", weekend: true, rangeMid: selectedRange }),
1481
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "29", rangeEnd: selectedRange, focus: selectedRange, selected: selectedRange }),
1482
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "30" }),
1483
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "31" }),
1484
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "1", otherMonth: true, showOtherMonth }),
1485
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "2", otherMonth: true, showOtherMonth }),
1486
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "3", otherMonth: true, weekend: true, showOtherMonth })
1487
+ ] }),
1488
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("tr", { className: "k-calendar-tr", children: [
1489
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "44", weekCell: true }),
1490
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "4", otherMonth: true, weekend: true, showOtherMonth }),
1491
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "5", otherMonth: true, showOtherMonth }),
1492
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "6", otherMonth: true, showOtherMonth }),
1493
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "7", otherMonth: true, showOtherMonth }),
1494
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "8", otherMonth: true, showOtherMonth }),
1495
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "9", otherMonth: true, showOtherMonth }),
1496
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CalendarCell, { text: "10", otherMonth: true, weekend: true, showOtherMonth })
1497
+ ] })
1498
+ ] })
1499
+ ]
1500
+ })
1501
+ );
1502
+ };
1503
+
1504
+ // src/calendar/calendar-table-head.tsx
1505
+ var import_jsx_runtime25 = __require("react/jsx-runtime");
1506
+ var className11 = `k-calendar-thead`;
1507
+ var CalendarTableHead = (props) => {
1508
+ const _a = props, {
1509
+ showWeek
1510
+ } = _a, other = __objRest(_a, [
1511
+ "showWeek"
1512
+ ]);
1513
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1514
+ "thead",
1515
+ __spreadProps(__spreadValues({}, other), {
1516
+ className: classNames(props.className, className11),
1517
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1518
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { weekCell: true, headerCell: true }),
1519
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Su", headerCell: true }),
1520
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Mo", headerCell: true }),
1521
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Tu", headerCell: true }),
1522
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "We", headerCell: true }),
1523
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Th", headerCell: true }),
1524
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Fr", headerCell: true }),
1525
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Sa", headerCell: true })
1526
+ ] })
1527
+ })
1528
+ );
1529
+ };
1530
+
1531
+ // src/calendar/calendar-view.tsx
1532
+ var import_jsx_runtime26 = __require("react/jsx-runtime");
1533
+ var className12 = `k-calendar-view`;
1534
+ var defaultProps16 = {
1535
+ viewsCount: 1,
1536
+ orientation: "horizontal",
1537
+ calendarView: "month"
1538
+ };
1539
+ var CalendarView = (props) => {
1540
+ const _a = props, {
1541
+ orientation = defaultProps16.orientation,
1542
+ calendarView = defaultProps16.calendarView,
1543
+ viewsCount = defaultProps16.viewsCount,
1544
+ showWeek,
1545
+ showOtherMonth,
1546
+ showCalendarCaption,
1547
+ selectedRange
1548
+ } = _a, other = __objRest(_a, [
1549
+ "orientation",
1550
+ "calendarView",
1551
+ "viewsCount",
1552
+ "showWeek",
1553
+ "showOtherMonth",
1554
+ "showCalendarCaption",
1555
+ "selectedRange"
1556
+ ]);
1557
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1558
+ "div",
1559
+ __spreadProps(__spreadValues({}, other), {
1560
+ className: classNames(
1561
+ props.className,
1562
+ className12,
1563
+ `k-calendar-${calendarView}view`,
1564
+ "k-align-items-start",
1565
+ "k-justify-content-center",
1566
+ {
1567
+ "k-hstack": orientation === "horizontal",
1568
+ "k-vstack": orientation === "vertical"
1569
+ }
1570
+ ),
1571
+ children: [...Array(viewsCount)].map(
1572
+ (_e, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1573
+ CalendarTable,
1574
+ {
1575
+ calendarView,
1576
+ showWeek,
1577
+ showOtherMonth,
1578
+ showCalendarCaption,
1579
+ selectedRange
1580
+ },
1581
+ i
1582
+ )
1583
+ )
1584
+ })
1585
+ );
1586
+ };
1587
+
1588
+ // src/time-selector/time-selector.spec.tsx
1589
+ var import_jsx_runtime27 = __require("react/jsx-runtime");
1590
+ var TIMESELECTOR_CLASSNAME = `k-timeselector`;
1591
+ var states19 = [];
1592
+ var options18 = {
1593
+ size: [Size.small, Size.medium, Size.large]
1594
+ };
1595
+ var defaultProps17 = {
1596
+ size: Size.medium
1597
+ };
1598
+ var TimeSelector = (props) => {
1599
+ const _a = props, {
1600
+ size = defaultProps17.size,
1601
+ header,
1602
+ fastSelection,
1603
+ columns,
1604
+ focusedColumn
1605
+ } = _a, other = __objRest(_a, [
1606
+ "size",
1607
+ "header",
1608
+ "fastSelection",
1609
+ "columns",
1610
+ "focusedColumn"
1611
+ ]);
1612
+ const columnsDom = columns.map(function(columnType, index) {
1613
+ let focus = false;
1614
+ let separator = true;
1615
+ if (columnType === focusedColumn) {
1616
+ focus = true;
1617
+ }
1618
+ if (index === 0 || columnType === "tt") {
1619
+ separator = false;
1620
+ }
1621
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TimeSelectorColumn, { type: columnType, focus, separator }) });
1622
+ });
1623
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1624
+ "div",
1625
+ __spreadProps(__spreadValues({}, other), {
1626
+ className: classNames(
1627
+ props.className,
1628
+ TIMESELECTOR_CLASSNAME,
1629
+ optionClassNames(TIMESELECTOR_CLASSNAME, {
1630
+ size
1631
+ })
1632
+ ),
1633
+ children: [
1634
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: header }),
1635
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: fastSelection }),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "k-time-list-container", children: [
1637
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-time-highlight" }),
1638
+ columnsDom
1639
+ ] })
1640
+ ]
1641
+ })
1642
+ );
1643
+ };
1644
+ TimeSelector.states = states19;
1645
+ TimeSelector.options = options18;
1646
+ TimeSelector.className = TIMESELECTOR_CLASSNAME;
1647
+ TimeSelector.defaultProps = defaultProps17;
1648
+
1649
+ // src/time-selector/time-selector-column.tsx
1650
+ var import_jsx_runtime28 = __require("react/jsx-runtime");
1651
+ var states20 = [
1652
+ States.focus
1653
+ ];
1654
+ var TimeSelectorColumn = (props) => {
1655
+ const _a = props, {
1656
+ type,
1657
+ focus,
1658
+ separator
1659
+ } = _a, other = __objRest(_a, [
1660
+ "type",
1661
+ "focus",
1662
+ "separator"
1663
+ ]);
1664
+ let text;
1665
+ let columnData = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
1666
+ switch (type) {
1667
+ case "dd":
1668
+ text = "Day";
1669
+ break;
1670
+ case "HH":
1671
+ text = "Hour";
1672
+ break;
1673
+ case "mm":
1674
+ text = "Minute";
1675
+ break;
1676
+ case "ss":
1677
+ text = "Second";
1678
+ break;
1679
+ case "SSS":
1680
+ text = "Millisecond";
1681
+ columnData = ["000", "001", "002", "003", "004", "005", "006", "007", "008", "009"];
1682
+ break;
1683
+ case "tt":
1684
+ text = "AM/PM";
1685
+ columnData = ["AM", "PM"];
1686
+ break;
1687
+ default:
1688
+ text = "Column Name";
1689
+ break;
1690
+ }
1691
+ const items = columnData.map(
1692
+ (data) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: data }) }) })
1693
+ );
1694
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1695
+ separator && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-time-separator", children: ":" }),
1696
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1697
+ "div",
1698
+ __spreadProps(__spreadValues({}, other), {
1699
+ className: classNames(
1700
+ props.className,
1701
+ "k-time-list-wrapper",
1702
+ stateClassNames("k-time-list-wrapper", {
1703
+ focus
1704
+ })
1705
+ ),
1706
+ children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-title", children: text }),
1708
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-time-list", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "k-content k-scrollable k-time-container", children: [
1709
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "k-reset", style: { transform: "translateY(97px)" }, children: items }),
1710
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-scrollable-placeholder" })
1711
+ ] }) })
1712
+ ]
1713
+ })
1714
+ )
1715
+ ] });
1716
+ };
1717
+
1718
+ // src/time-selector/time-selector-header.tsx
1719
+ var import_jsx_runtime29 = __require("react/jsx-runtime");
1720
+ var className13 = `k-time-header`;
1721
+ var TimeSelectorHeader = (props) => {
1722
+ const _a = props, {
1723
+ title
1724
+ } = _a, other = __objRest(_a, [
1725
+ "title"
1726
+ ]);
1727
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1728
+ "div",
1729
+ __spreadProps(__spreadValues({}, other), {
1730
+ className: classNames(
1731
+ props.className,
1732
+ className13
1733
+ ),
1734
+ children: [
1735
+ title != null && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "k-title", children: title }),
1736
+ props.children
1737
+ ]
1738
+ })
1739
+ );
1740
+ };
1741
+
1742
+ // src/time-selector/time-selector-fast-selection.tsx
1743
+ var import_jsx_runtime30 = __require("react/jsx-runtime");
1744
+
1745
+ // src/datetime-selector/datetime-selector.spec.tsx
1746
+ var import_jsx_runtime31 = __require("react/jsx-runtime");
1747
+ var DATETIMESELECTOR_CLASSNAME = `k-datetime-wrap`;
1748
+ var states21 = [];
1749
+ var options19 = {};
1750
+ var defaultProps18 = {
1751
+ tab: "date"
1752
+ };
1753
+ var DateTimeSelector = (props) => {
1754
+ const _a = props, {
1755
+ tab = defaultProps18.tab
1756
+ } = _a, other = __objRest(_a, [
1757
+ "tab"
1758
+ ]);
1759
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1760
+ "div",
1761
+ __spreadProps(__spreadValues({}, other), {
1762
+ className: classNames(
1763
+ props.className,
1764
+ DATETIMESELECTOR_CLASSNAME,
1765
+ {
1766
+ "k-date-tab": tab === "date",
1767
+ "k-time-tab": tab === "time"
1768
+ }
1769
+ ),
1770
+ children: [
1771
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-buttongroup", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ButtonGroup, { stretched: true, children: [
1772
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: "k-group-start", selected: tab === "date", children: "Date" }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: "k-group-end", selected: tab === "time", children: "Time" })
1774
+ ] }) }),
1775
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-selector", children: tab === "time" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1776
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-calendar-wrap" }),
1777
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-time-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimeSelector, { columns: ["HH", "mm", "ss", "tt"], focusedColumn: "mm", header: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TimeSelectorHeader, { title: "10:00:00 AM", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { fillMode: "flat", className: "k-time-now", children: "Now" }) }) }) })
1778
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
1779
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-calendar-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Calendar, { showOtherMonth: true }) }),
1780
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-datetime-time-wrap" })
1781
+ ] }) }),
1782
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ActionButtons, { className: "k-datetime-footer", alignment: "stretched", children: [
1783
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { themeColor: "primary", className: "k-time-accept", children: "Set" }),
1784
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { className: "k-time-cancel", children: "Cancel" })
1785
+ ] })
1786
+ ]
1787
+ })
1788
+ );
1789
+ };
1790
+ DateTimeSelector.states = states21;
1791
+ DateTimeSelector.options = options19;
1792
+ DateTimeSelector.className = DATETIMESELECTOR_CLASSNAME;
1793
+ DateTimeSelector.defaultProps = defaultProps18;
1794
+
1795
+ // src/datetimepicker/datetimepicker.spec.tsx
1796
+ var import_jsx_runtime32 = __require("react/jsx-runtime");
1797
+ var DATETIMEPICKER_CLASSNAME = `k-datetimepicker`;
1798
+ var states22 = [
1799
+ States.hover,
1800
+ States.focus,
1801
+ States.valid,
1802
+ States.invalid,
1803
+ States.required,
1804
+ States.disabled,
1805
+ States.loading,
1806
+ States.readonly
1807
+ ];
1808
+ var options20 = {
1809
+ size: [Size.small, Size.medium, Size.large],
1810
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1811
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1812
+ };
1813
+ var defaultProps19 = {
1814
+ tab: "date",
1815
+ size: Input.defaultProps.size,
1816
+ rounded: Input.defaultProps.rounded,
1817
+ fillMode: Input.defaultProps.fillMode
1818
+ };
1819
+ var DateTimePicker = (props) => {
1820
+ const _a = props, {
1821
+ prefix,
1822
+ suffix,
1823
+ value,
1824
+ placeholder,
1825
+ size,
1826
+ rounded,
1827
+ fillMode,
1828
+ hover,
1829
+ focus,
1830
+ valid,
1831
+ invalid,
1832
+ required,
1833
+ loading,
1834
+ disabled,
1835
+ readonly,
1836
+ opened,
1837
+ tab = defaultProps19.tab
1838
+ } = _a, other = __objRest(_a, [
1839
+ "prefix",
1840
+ "suffix",
1841
+ "value",
1842
+ "placeholder",
1843
+ "size",
1844
+ "rounded",
1845
+ "fillMode",
1846
+ "hover",
1847
+ "focus",
1848
+ "valid",
1849
+ "invalid",
1850
+ "required",
1851
+ "loading",
1852
+ "disabled",
1853
+ "readonly",
1854
+ "opened",
1855
+ "tab"
1856
+ ]);
1857
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1858
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1859
+ Input,
1860
+ __spreadProps(__spreadValues({}, other), {
1861
+ size,
1862
+ rounded,
1863
+ fillMode,
1864
+ hover,
1865
+ focus,
1866
+ valid,
1867
+ invalid,
1868
+ required,
1869
+ loading,
1870
+ disabled,
1871
+ readonly,
1872
+ className: classNames(props.className, DATETIMEPICKER_CLASSNAME),
1873
+ children: [
1874
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputPrefix, { children: prefix }),
1875
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputInnerInput, { placeholder, value }),
1876
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1877
+ InputValidationIcon,
1878
+ {
1879
+ valid,
1880
+ invalid,
1881
+ loading,
1882
+ disabled
1883
+ }
1884
+ ),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1886
+ InputLoadingIcon,
1887
+ {
1888
+ loading,
1889
+ disabled
1890
+ }
1891
+ ),
1892
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1893
+ InputClearValue,
1894
+ {
1895
+ loading,
1896
+ disabled,
1897
+ readonly,
1898
+ value
1899
+ }
1900
+ ),
1901
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputSuffix, { children: suffix }),
1902
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1903
+ Button,
1904
+ {
1905
+ className: "k-input-button",
1906
+ icon: tab === "time" ? "clock" : "calendar",
1907
+ rounded: null,
1908
+ size,
1909
+ fillMode
1910
+ }
1911
+ )
1912
+ ]
1913
+ })
1914
+ ),
1915
+ opened && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popup, { className: "k-datetimepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DateTimeSelector, { tab }) })
1916
+ ] });
1917
+ };
1918
+ DateTimePicker.states = states22;
1919
+ DateTimePicker.options = options20;
1920
+ DateTimePicker.className = DATETIMEPICKER_CLASSNAME;
1921
+ DateTimePicker.defaultProps = defaultProps19;
1922
+
1923
+ // src/combobox/combobox.spec.tsx
1924
+ var import_jsx_runtime33 = __require("react/jsx-runtime");
1925
+ var COMBOBOX_CLASSNAME = `k-combobox`;
1926
+ var states23 = [
1927
+ States.hover,
1928
+ States.focus,
1929
+ States.valid,
1930
+ States.invalid,
1931
+ States.loading,
1932
+ States.required,
1933
+ States.disabled,
1934
+ States.readonly
1935
+ ];
1936
+ var defaultProps20 = {
1937
+ size: Input.defaultProps.size,
1938
+ rounded: Input.defaultProps.rounded,
1939
+ fillMode: Input.defaultProps.fillMode
1940
+ };
1941
+ var options21 = {
1942
+ size: [Size.small, Size.medium, Size.large],
1943
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1944
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1945
+ };
1946
+ var Combobox = (props) => {
1947
+ const _a = props, {
1948
+ prefix,
1949
+ suffix,
1950
+ value,
1951
+ placeholder,
1952
+ size,
1953
+ rounded,
1954
+ fillMode,
1955
+ hover,
1956
+ focus,
1957
+ valid,
1958
+ invalid,
1959
+ required,
1960
+ loading,
1961
+ disabled,
1962
+ popup,
1963
+ opened,
1964
+ readonly
1965
+ } = _a, other = __objRest(_a, [
1966
+ "prefix",
1967
+ "suffix",
1968
+ "value",
1969
+ "placeholder",
1970
+ "size",
1971
+ "rounded",
1972
+ "fillMode",
1973
+ "hover",
1974
+ "focus",
1975
+ "valid",
1976
+ "invalid",
1977
+ "required",
1978
+ "loading",
1979
+ "disabled",
1980
+ "popup",
1981
+ "opened",
1982
+ "readonly"
1983
+ ]);
1984
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
1985
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1986
+ Input,
1987
+ __spreadProps(__spreadValues({}, other), {
1988
+ size,
1989
+ rounded,
1990
+ fillMode,
1991
+ hover,
1992
+ focus,
1993
+ valid,
1994
+ invalid,
1995
+ required,
1996
+ loading,
1997
+ disabled,
1998
+ readonly,
1999
+ className: classNames(props.className, COMBOBOX_CLASSNAME),
2000
+ children: [
2001
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputPrefix, { children: prefix }),
2002
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputInnerInput, { placeholder, value }),
2003
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2004
+ InputValidationIcon,
2005
+ {
2006
+ valid,
2007
+ invalid,
2008
+ loading,
2009
+ disabled
2010
+ }
2011
+ ),
2012
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2013
+ InputLoadingIcon,
2014
+ {
2015
+ loading,
2016
+ disabled
2017
+ }
2018
+ ),
2019
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2020
+ InputClearValue,
2021
+ {
2022
+ loading,
2023
+ disabled,
2024
+ readonly,
2025
+ value
2026
+ }
2027
+ ),
2028
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputSuffix, { children: suffix }),
2029
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2030
+ Button,
2031
+ {
2032
+ className: "k-input-button",
2033
+ icon: "caret-alt-down",
2034
+ rounded: null,
2035
+ size,
2036
+ fillMode
2037
+ }
2038
+ )
2039
+ ]
2040
+ })
2041
+ ),
2042
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Popup, { className: "k-combobox-popup", children: popup })
2043
+ ] });
2044
+ };
2045
+ Combobox.states = states23;
2046
+ Combobox.options = options21;
2047
+ Combobox.className = COMBOBOX_CLASSNAME;
2048
+ Combobox.defaultProps = defaultProps20;
2049
+
2050
+ // src/chip/chip-action.tsx
2051
+ var import_jsx_runtime34 = __require("react/jsx-runtime");
2052
+
2053
+ // src/avatar/avatar.spec.tsx
2054
+ var import_jsx_runtime35 = __require("react/jsx-runtime");
2055
+ var AVATAR_CLASSNAME = `k-avatar`;
2056
+ var states24 = [
2057
+ States.hover,
2058
+ States.focus,
2059
+ States.active,
2060
+ States.selected,
2061
+ States.disabled
2062
+ ];
2063
+ var options22 = {
2064
+ size: [Size.small, Size.medium, Size.large],
2065
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2066
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
2067
+ themeColor: [
2068
+ ThemeColor.base,
2069
+ ThemeColor.primary,
2070
+ ThemeColor.secondary,
2071
+ ThemeColor.tertiary,
2072
+ ThemeColor.success,
2073
+ ThemeColor.warning,
2074
+ ThemeColor.error,
2075
+ ThemeColor.info,
2076
+ ThemeColor.light,
2077
+ ThemeColor.dark
2078
+ ]
2079
+ };
2080
+ var defaultProps21 = {
2081
+ type: "text" /* TEXT */,
2082
+ size: Size.medium,
2083
+ rounded: Roundness.full,
2084
+ fillMode: FillMode.solid,
2085
+ themeColor: ThemeColor.primary,
2086
+ border: false
2087
+ };
2088
+ var Avatar = (props) => {
2089
+ const _a = props, {
2090
+ size = defaultProps21.size,
2091
+ rounded = defaultProps21.rounded,
2092
+ fillMode = defaultProps21.fillMode,
2093
+ themeColor = defaultProps21.themeColor,
2094
+ type = defaultProps21.type,
2095
+ border = defaultProps21.border
2096
+ } = _a, other = __objRest(_a, [
2097
+ "size",
2098
+ "rounded",
2099
+ "fillMode",
2100
+ "themeColor",
2101
+ "type",
2102
+ "border"
2103
+ ]);
2104
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2105
+ "div",
2106
+ __spreadProps(__spreadValues({}, other), {
2107
+ className: classNames(
2108
+ props.className,
2109
+ AVATAR_CLASSNAME,
2110
+ optionClassNames(AVATAR_CLASSNAME, {
2111
+ size,
2112
+ rounded,
2113
+ fillMode,
2114
+ themeColor
2115
+ }),
2116
+ {
2117
+ [`${AVATAR_CLASSNAME}-bordered`]: border
2118
+ }
2119
+ ),
2120
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
2121
+ })
2122
+ );
2123
+ };
2124
+ Avatar.states = states24;
2125
+ Avatar.options = options22;
2126
+ Avatar.className = AVATAR_CLASSNAME;
2127
+ Avatar.defaultProps = defaultProps21;
2128
+
2129
+ // src/chip/chip.spec.tsx
2130
+ var import_jsx_runtime36 = __require("react/jsx-runtime");
2131
+ var CHIP_CLASSNAME = `k-chip`;
2132
+ var states25 = [
2133
+ States.hover,
2134
+ States.focus,
2135
+ States.active,
2136
+ States.selected,
2137
+ States.disabled
2138
+ ];
2139
+ var options23 = {
2140
+ size: [Size.small, Size.medium, Size.large],
2141
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2142
+ fillMode: [FillMode.solid, FillMode.outline],
2143
+ themeColor: [
2144
+ ThemeColor.base,
2145
+ ThemeColor.success,
2146
+ ThemeColor.warning,
2147
+ ThemeColor.error,
2148
+ ThemeColor.info
2149
+ ]
2150
+ };
2151
+ var defaultProps22 = {
2152
+ size: Size.medium,
2153
+ rounded: Roundness.medium,
2154
+ fillMode: FillMode.solid,
2155
+ themeColor: ThemeColor.base
2156
+ };
2157
+ var Chip = (props) => {
2158
+ const _a = props, {
2159
+ size = defaultProps22.size,
2160
+ rounded = defaultProps22.rounded,
2161
+ fillMode = defaultProps22.fillMode,
2162
+ themeColor = defaultProps22.themeColor,
2163
+ text,
2164
+ icon,
2165
+ actions,
2166
+ showAvatar,
2167
+ hover,
2168
+ focus,
2169
+ active,
2170
+ selected,
2171
+ disabled
2172
+ } = _a, other = __objRest(_a, [
2173
+ "size",
2174
+ "rounded",
2175
+ "fillMode",
2176
+ "themeColor",
2177
+ "text",
2178
+ "icon",
2179
+ "actions",
2180
+ "showAvatar",
2181
+ "hover",
2182
+ "focus",
2183
+ "active",
2184
+ "selected",
2185
+ "disabled"
2186
+ ]);
2187
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2188
+ "div",
2189
+ __spreadProps(__spreadValues({}, other), {
2190
+ className: classNames(
2191
+ props.className,
2192
+ CHIP_CLASSNAME,
2193
+ optionClassNames(CHIP_CLASSNAME, {
2194
+ size,
2195
+ rounded,
2196
+ fillMode,
2197
+ themeColor
2198
+ }),
2199
+ stateClassNames(CHIP_CLASSNAME, {
2200
+ hover,
2201
+ focus,
2202
+ active,
2203
+ disabled,
2204
+ selected
2205
+ })
2206
+ ),
2207
+ children: [
2208
+ icon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { className: "k-chip-icon", name: icon }),
2209
+ showAvatar && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("img", { src: "/packages/html/assets/avatar.jpg" }) }),
2210
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
2211
+ actions && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-chip-actions", children: actions })
2212
+ ]
2213
+ })
2214
+ );
2215
+ };
2216
+ Chip.states = states25;
2217
+ Chip.options = options23;
2218
+ Chip.className = CHIP_CLASSNAME;
2219
+ Chip.defaultProps = defaultProps22;
2220
+
2221
+ // src/chip/chip-list.spec.tsx
2222
+ var import_jsx_runtime37 = __require("react/jsx-runtime");
2223
+ var CHIPLIST_CLASSNAME = `k-chip-list`;
2224
+ var states26 = [];
2225
+ var options24 = {
2226
+ size: [Size.small, Size.medium, Size.large]
2227
+ };
2228
+ var defaultProps23 = {
2229
+ size: Size.medium
2230
+ };
2231
+ var ChipList = (props) => {
2232
+ const _a = props, {
2233
+ size = defaultProps23.size
2234
+ } = _a, other = __objRest(_a, [
2235
+ "size"
2236
+ ]);
2237
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2238
+ "div",
2239
+ __spreadProps(__spreadValues({}, other), {
2240
+ className: classNames(
2241
+ props.className,
2242
+ CHIPLIST_CLASSNAME,
2243
+ optionClassNames(CHIPLIST_CLASSNAME, {
2244
+ size
2245
+ })
2246
+ ),
2247
+ children: props.children
2248
+ })
2249
+ );
2250
+ };
2251
+ ChipList.states = states26;
2252
+ ChipList.options = options24;
2253
+ ChipList.className = CHIPLIST_CLASSNAME;
2254
+ ChipList.defaultProps = defaultProps23;
2255
+
2256
+ // src/multiselect/multiselect.spec.tsx
2257
+ var import_jsx_runtime38 = __require("react/jsx-runtime");
2258
+ var MULTISELECT_CLASSNAME = `k-multiselect`;
2259
+ var states27 = [
2260
+ States.hover,
2261
+ States.focus,
2262
+ States.valid,
2263
+ States.invalid,
2264
+ States.required,
2265
+ States.disabled,
2266
+ States.loading,
2267
+ States.readonly
2268
+ ];
2269
+ var options25 = {
2270
+ size: [Size.small, Size.medium, Size.large],
2271
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2272
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
2273
+ };
2274
+ var defaultProps24 = {
2275
+ size: Input.defaultProps.size,
2276
+ rounded: Input.defaultProps.rounded,
2277
+ fillMode: Input.defaultProps.fillMode
2278
+ };
2279
+ var MultiSelect = (props) => {
2280
+ const _a = props, {
2281
+ prefix,
2282
+ suffix,
2283
+ value,
2284
+ placeholder,
2285
+ tags,
2286
+ popup,
2287
+ size,
2288
+ rounded,
2289
+ fillMode,
2290
+ showArrowButton,
2291
+ hover,
2292
+ focus,
2293
+ valid,
2294
+ invalid,
2295
+ required,
2296
+ loading,
2297
+ disabled,
2298
+ readonly,
2299
+ opened
2300
+ } = _a, other = __objRest(_a, [
2301
+ "prefix",
2302
+ "suffix",
2303
+ "value",
2304
+ "placeholder",
2305
+ "tags",
2306
+ "popup",
2307
+ "size",
2308
+ "rounded",
2309
+ "fillMode",
2310
+ "showArrowButton",
2311
+ "hover",
2312
+ "focus",
2313
+ "valid",
2314
+ "invalid",
2315
+ "required",
2316
+ "loading",
2317
+ "disabled",
2318
+ "readonly",
2319
+ "opened"
2320
+ ]);
2321
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
2322
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2323
+ Input,
2324
+ __spreadProps(__spreadValues({}, other), {
2325
+ size,
2326
+ rounded,
2327
+ fillMode,
2328
+ hover,
2329
+ focus,
2330
+ valid,
2331
+ invalid,
2332
+ required,
2333
+ loading,
2334
+ disabled,
2335
+ readonly,
2336
+ className: classNames(props.className, MULTISELECT_CLASSNAME),
2337
+ children: [
2338
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputPrefix, { children: prefix }),
2339
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "k-input-values", children: [
2340
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChipList, { size, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: tags }) }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputInnerInput, { placeholder, value })
2342
+ ] }),
2343
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2344
+ InputValidationIcon,
2345
+ {
2346
+ valid,
2347
+ invalid,
2348
+ loading,
2349
+ disabled
2350
+ }
2351
+ ),
2352
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2353
+ InputLoadingIcon,
2354
+ {
2355
+ loading,
2356
+ disabled
2357
+ }
2358
+ ),
2359
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2360
+ InputClearValue,
2361
+ {
2362
+ loading,
2363
+ disabled,
2364
+ readonly,
2365
+ value: tags ? "value" : ""
2366
+ }
2367
+ ),
2368
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InputSuffix, { children: suffix }),
2369
+ showArrowButton && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2370
+ Button,
2371
+ {
2372
+ className: "k-input-button",
2373
+ icon: "arrow-s",
2374
+ rounded: null,
2375
+ size,
2376
+ fillMode
2377
+ }
2378
+ )
2379
+ ]
2380
+ })
2381
+ ),
2382
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popup, { className: "k-multiselect-popup", children: popup })
2383
+ ] });
2384
+ };
2385
+ MultiSelect.states = states27;
2386
+ MultiSelect.options = options25;
2387
+ MultiSelect.className = MULTISELECT_CLASSNAME;
2388
+ MultiSelect.defaultProps = defaultProps24;
2389
+
2390
+ // src/form/fieldset.tsx
2391
+ var import_jsx_runtime39 = __require("react/jsx-runtime");
2392
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
2393
+ var Fieldset = (props) => {
2394
+ const {
2395
+ legend
2396
+ } = props;
2397
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
2398
+ legend && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("legend", { className: "k-form-legend", children: legend }),
2399
+ props.children
2400
+ ] });
2401
+ };
2402
+ Fieldset.className = FIELDSET_CLASSNAME;
2403
+
2404
+ // src/form/form.spec.tsx
2405
+ var import_jsx_runtime40 = __require("react/jsx-runtime");
2406
+ var FORM_CLASSNAME = "k-form";
2407
+ var states28 = [];
2408
+ var options26 = {
2409
+ size: [Size.small, Size.medium, Size.large]
2410
+ };
2411
+ var defaultProps25 = {
2412
+ size: Size.medium,
2413
+ layout: "basic",
2414
+ tag: "form"
2415
+ };
2416
+ var Form = (props) => {
2417
+ const {
2418
+ size = defaultProps25.size,
2419
+ orientation,
2420
+ layout = defaultProps25.layout,
2421
+ formButtons,
2422
+ legend,
2423
+ cols,
2424
+ gapX,
2425
+ gapY,
2426
+ tag = defaultProps25.tag
2427
+ } = props;
2428
+ const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
2429
+ const Parent = ({ tag: tag2, className: className14, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("form", { className: className14, children }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: className14, children });
2430
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Parent, { tag, className: classNames(
2431
+ props.className,
2432
+ FORM_CLASSNAME,
2433
+ optionClassNames(FORM_CLASSNAME, {
2434
+ size
2435
+ }),
2436
+ {
2437
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
2438
+ }
2439
+ ), children: [
2440
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2441
+ ConditionalWrapper,
2442
+ {
2443
+ condition: layout === "grid",
2444
+ wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: classNames(
2445
+ "k-form-layout",
2446
+ "k-d-grid",
2447
+ {
2448
+ [`k-grid-cols-${cols}`]: cols,
2449
+ [`k-gap-x-${gapX}`]: gapX,
2450
+ [`k-gap-y-${gapY}`]: gapY
2451
+ }
2452
+ ), children }) }),
2453
+ children: props.children
2454
+ }
2455
+ ),
2456
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-form-buttons", children: formButtons })
2457
+ ] });
2458
+ };
2459
+ Form.states = states28;
2460
+ Form.options = options26;
2461
+ Form.className = FORM_CLASSNAME;
2462
+ Form.defaultProps = defaultProps25;
2463
+
2464
+ // src/form/form-field.tsx
2465
+ var import_jsx_runtime41 = __require("react/jsx-runtime");
2466
+ var FORMFIELD_CLASSNAME = "k-form-field";
2467
+ var states29 = [
2468
+ States.disabled
2469
+ ];
2470
+ var FormField = (props) => {
2471
+ const {
2472
+ label,
2473
+ optional,
2474
+ editor,
2475
+ hint,
2476
+ error,
2477
+ info,
2478
+ disabled,
2479
+ dir
2480
+ } = props;
2481
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
2482
+ "div",
2483
+ {
2484
+ className: classNames(
2485
+ FORMFIELD_CLASSNAME,
2486
+ props.className,
2487
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled })
2488
+ ),
2489
+ dir,
2490
+ children: [
2491
+ label && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: classNames(
2492
+ "k-label",
2493
+ "k-form-label",
2494
+ {
2495
+ "k-label-empty": label === " "
2496
+ }
2497
+ ), children: [
2498
+ label,
2499
+ optional && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
2500
+ info && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "k-field-info", children: "(field info)" })
2501
+ ] }),
2502
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "k-form-field-wrap", children: [
2503
+ editor,
2504
+ hint && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "k-form-hint", children: hint }),
2505
+ error && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "k-form-error", children: error })
2506
+ ] })
2507
+ ]
2508
+ }
2509
+ );
2510
+ };
2511
+ FormField.className = FORMFIELD_CLASSNAME;
2512
+
2513
+ // src/spinbutton/spinbutton.spec.tsx
2514
+ var import_jsx_runtime42 = __require("react/jsx-runtime");
2515
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
2516
+ var states30 = [];
2517
+ var options27 = {
2518
+ size: [Size.small, Size.medium, Size.large],
2519
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
2520
+ };
2521
+ var defaultProps26 = {
2522
+ size: Size.medium,
2523
+ fillMode: FillMode.solid
2524
+ };
2525
+ var SpinButton = (props) => {
2526
+ const _a = props, {
2527
+ size = defaultProps26.size,
2528
+ fillMode = defaultProps26.fillMode
2529
+ } = _a, other = __objRest(_a, [
2530
+ "size",
2531
+ "fillMode"
2532
+ ]);
2533
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2534
+ "span",
2535
+ __spreadProps(__spreadValues({}, other), {
2536
+ className: classNames(
2537
+ SPINBUTTON_CLASSNAME,
2538
+ props.className
2539
+ ),
2540
+ children: [
2541
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2542
+ Button,
2543
+ {
2544
+ className: "k-spinner-increase",
2545
+ icon: "arrow-n",
2546
+ rounded: null,
2547
+ size,
2548
+ fillMode
2549
+ }
2550
+ ),
2551
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2552
+ Button,
2553
+ {
2554
+ className: "k-spinner-decrease",
2555
+ icon: "arrow-s",
2556
+ rounded: null,
2557
+ size,
2558
+ fillMode
2559
+ }
2560
+ )
2561
+ ]
2562
+ })
2563
+ );
2564
+ };
2565
+ SpinButton.states = states30;
2566
+ SpinButton.options = options27;
2567
+ SpinButton.className = SPINBUTTON_CLASSNAME;
2568
+ SpinButton.defaultProps = defaultProps26;
2569
+
2570
+ // src/numerictextbox/numerictextbox.spec.tsx
2571
+ var import_jsx_runtime43 = __require("react/jsx-runtime");
2572
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
2573
+ var states31 = [
2574
+ States.hover,
2575
+ States.focus,
2576
+ States.valid,
2577
+ States.invalid,
2578
+ States.loading,
2579
+ States.required,
2580
+ States.disabled,
2581
+ States.readonly
2582
+ ];
2583
+ var options28 = {
2584
+ size: [Size.small, Size.medium, Size.large],
2585
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2586
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
2587
+ };
2588
+ var defaultProps27 = {
2589
+ showSpinButton: true,
2590
+ showClearButton: true,
2591
+ size: Input.defaultProps.size,
2592
+ rounded: Input.defaultProps.rounded,
2593
+ fillMode: Input.defaultProps.fillMode
2594
+ };
2595
+ var NumericTextbox = (props) => {
2596
+ const _a = props, {
2597
+ value,
2598
+ placeholder,
2599
+ size,
2600
+ rounded,
2601
+ fillMode,
2602
+ hover,
2603
+ focus,
2604
+ valid,
2605
+ invalid,
2606
+ required,
2607
+ loading,
2608
+ disabled,
2609
+ readonly,
2610
+ showClearButton = defaultProps27.showClearButton,
2611
+ showSpinButton = defaultProps27.showSpinButton
2612
+ } = _a, other = __objRest(_a, [
2613
+ "value",
2614
+ "placeholder",
2615
+ "size",
2616
+ "rounded",
2617
+ "fillMode",
2618
+ "hover",
2619
+ "focus",
2620
+ "valid",
2621
+ "invalid",
2622
+ "required",
2623
+ "loading",
2624
+ "disabled",
2625
+ "readonly",
2626
+ "showClearButton",
2627
+ "showSpinButton"
2628
+ ]);
2629
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2630
+ Input,
2631
+ __spreadProps(__spreadValues({}, other), {
2632
+ size,
2633
+ rounded,
2634
+ fillMode,
2635
+ hover,
2636
+ focus,
2637
+ valid,
2638
+ invalid,
2639
+ required,
2640
+ loading,
2641
+ disabled,
2642
+ readonly,
2643
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
2644
+ children: [
2645
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(InputInnerInput, { placeholder, value }),
2646
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2647
+ InputValidationIcon,
2648
+ {
2649
+ valid,
2650
+ invalid,
2651
+ loading,
2652
+ disabled
2653
+ }
2654
+ ),
2655
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2656
+ InputLoadingIcon,
2657
+ {
2658
+ loading,
2659
+ disabled
2660
+ }
2661
+ ),
2662
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2663
+ InputClearValue,
2664
+ {
2665
+ loading,
2666
+ disabled,
2667
+ readonly,
2668
+ value
2669
+ }
2670
+ ),
2671
+ showSpinButton && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2672
+ SpinButton,
2673
+ {
2674
+ className: "k-input-spinner",
2675
+ size,
2676
+ fillMode
2677
+ }
2678
+ )
2679
+ ]
2680
+ })
2681
+ );
2682
+ };
2683
+ NumericTextbox.states = states31;
2684
+ NumericTextbox.options = options28;
2685
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
2686
+ NumericTextbox.defaultProps = defaultProps27;
2687
+
2688
+ // src/radio/radio.spec.tsx
2689
+ var import_jsx_runtime44 = __require("react/jsx-runtime");
2690
+ var RADIOBUTTON_CLASSNAME = `k-radio`;
2691
+ var states32 = [
2692
+ States.hover,
2693
+ States.focus,
2694
+ States.valid,
2695
+ States.invalid,
2696
+ States.required,
2697
+ States.disabled,
2698
+ States.checked
2699
+ ];
2700
+ var options29 = {
2701
+ size: [Size.small, Size.medium, Size.large]
2702
+ };
2703
+ var defaultProps28 = {
2704
+ size: Size.medium
2705
+ };
2706
+ var RadioButton = (props) => {
2707
+ const _a = props, {
2708
+ id,
2709
+ checked,
2710
+ hover,
2711
+ focus,
2712
+ disabled,
2713
+ invalid,
2714
+ valid,
2715
+ required,
2716
+ size = defaultProps28.size
2717
+ } = _a, other = __objRest(_a, [
2718
+ "id",
2719
+ "checked",
2720
+ "hover",
2721
+ "focus",
2722
+ "disabled",
2723
+ "invalid",
2724
+ "valid",
2725
+ "required",
2726
+ "size"
2727
+ ]);
2728
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "k-radio-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2729
+ "input",
2730
+ __spreadProps(__spreadValues({}, other), {
2731
+ id,
2732
+ type: "radio",
2733
+ checked,
2734
+ required,
2735
+ className: classNames(
2736
+ props.className,
2737
+ RADIOBUTTON_CLASSNAME,
2738
+ optionClassNames(RADIOBUTTON_CLASSNAME, { size }),
2739
+ stateClassNames(RADIOBUTTON_CLASSNAME, { hover, focus, disabled, invalid, valid, checked })
2740
+ )
2741
+ })
2742
+ ) });
2743
+ };
2744
+ RadioButton.states = states32;
2745
+ RadioButton.options = options29;
2746
+ RadioButton.className = RADIOBUTTON_CLASSNAME;
2747
+ RadioButton.defaultProps = defaultProps28;
2748
+
2749
+ // src/datepicker/datepicker.spec.tsx
2750
+ var import_jsx_runtime45 = __require("react/jsx-runtime");
2751
+ var DATEPICKER_CLASSNAME = `k-datepicker`;
2752
+ var states33 = [
2753
+ States.hover,
2754
+ States.focus,
2755
+ States.valid,
2756
+ States.invalid,
2757
+ States.required,
2758
+ States.disabled,
2759
+ States.loading,
2760
+ States.readonly
2761
+ ];
2762
+ var options30 = {
2763
+ size: [Size.small, Size.medium, Size.large],
2764
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
2765
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
2766
+ };
2767
+ var defaultProps29 = {
2768
+ size: Input.defaultProps.size,
2769
+ rounded: Input.defaultProps.rounded,
2770
+ fillMode: Input.defaultProps.fillMode
2771
+ };
2772
+ var DatePicker = (props) => {
2773
+ const _a = props, {
2774
+ prefix,
2775
+ suffix,
2776
+ value,
2777
+ placeholder,
2778
+ size,
2779
+ rounded,
2780
+ fillMode,
2781
+ hover,
2782
+ focus,
2783
+ valid,
2784
+ invalid,
2785
+ required,
2786
+ loading,
2787
+ disabled,
2788
+ readonly,
2789
+ opened
2790
+ } = _a, other = __objRest(_a, [
2791
+ "prefix",
2792
+ "suffix",
2793
+ "value",
2794
+ "placeholder",
2795
+ "size",
2796
+ "rounded",
2797
+ "fillMode",
2798
+ "hover",
2799
+ "focus",
2800
+ "valid",
2801
+ "invalid",
2802
+ "required",
2803
+ "loading",
2804
+ "disabled",
2805
+ "readonly",
2806
+ "opened"
2807
+ ]);
2808
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
2809
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2810
+ Input,
2811
+ __spreadProps(__spreadValues({}, other), {
2812
+ size,
2813
+ rounded,
2814
+ fillMode,
2815
+ hover,
2816
+ focus,
2817
+ valid,
2818
+ invalid,
2819
+ required,
2820
+ loading,
2821
+ disabled,
2822
+ readonly,
2823
+ className: classNames(props.className, DATEPICKER_CLASSNAME),
2824
+ children: [
2825
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputPrefix, { children: prefix }),
2826
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputInnerInput, { placeholder, value }),
2827
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2828
+ InputValidationIcon,
2829
+ {
2830
+ valid,
2831
+ invalid,
2832
+ loading,
2833
+ disabled
2834
+ }
2835
+ ),
2836
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2837
+ InputLoadingIcon,
2838
+ {
2839
+ loading,
2840
+ disabled
2841
+ }
2842
+ ),
2843
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2844
+ InputClearValue,
2845
+ {
2846
+ loading,
2847
+ disabled,
2848
+ readonly,
2849
+ value
2850
+ }
2851
+ ),
2852
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(InputSuffix, { children: suffix }),
2853
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2854
+ Button,
2855
+ {
2856
+ className: "k-input-button",
2857
+ icon: "calendar",
2858
+ rounded: null,
2859
+ size,
2860
+ fillMode
2861
+ }
2862
+ )
2863
+ ]
2864
+ })
2865
+ ),
2866
+ opened && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Popup, { className: "k-datepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Calendar, {}) })
2867
+ ] });
2868
+ };
2869
+ DatePicker.states = states33;
2870
+ DatePicker.options = options30;
2871
+ DatePicker.className = DATEPICKER_CLASSNAME;
2872
+ DatePicker.defaultProps = defaultProps29;
2873
+
2874
+ // src/scheduler/tests/scheduler-editing-weekly.tsx
2875
+ var import_jsx_runtime46 = __require("react/jsx-runtime");
2876
+ var root = import_client.default.createRoot(
2877
+ document.getElementById("app")
2878
+ );
2879
+ var style = `
2880
+ #test-area {
2881
+ width: 700px;
2882
+ }
2883
+ .k-window {
2884
+ min-width: 400px;
2885
+ position: relative;
2886
+ }
2887
+ `;
2888
+ root.render(
2889
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2890
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("style", { children: style }),
2891
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Window, { title: "Edit event", actions: ["minimize", "maximize", "close"], actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2892
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { themeColor: "primary", icon: "save", children: "Save" }),
2893
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { icon: "cancel", children: "Cancel" }),
2894
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "k-spacer" }),
2895
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { fillMode: "flat", themeColor: "primary", icon: "delete", children: "Delete" })
2896
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Form, { tag: "div", className: "k-scheduler-edit-form", orientation: "vertical", children: [
2897
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { className: "k-form-field-error", label: "Title", error: "Error", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Textbox, { invalid: true, value: "Invalid" }) }),
2898
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Start", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" }) }),
2899
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2900
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Checkbox, { checked: true }),
2901
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-checkbox-label", children: "Specify Time Zone" })
2902
+ ] }) }),
2903
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Start Time Zone", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Combobox, { placeholder: "Eastern European Summer Time (Sofia-Bulgaria)" }) }),
2904
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "End", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" }) }),
2905
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2906
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Checkbox, { checked: true }),
2907
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-checkbox-label", children: "End in different Time Zone" })
2908
+ ] }) }),
2909
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "End Time Zone", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Combobox, { placeholder: "Select Time Zone, Country, City" }) }),
2910
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2911
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Checkbox, {}),
2912
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-checkbox-label", children: "All Day Event" })
2913
+ ] }) }),
2914
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Repeat", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "k-recurrence-editor", children: [
2915
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(ButtonGroup, { stretched: true, className: "k-scheduler-recurrence-repeat", children: [
2916
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Never" }),
2917
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Daily" }),
2918
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { selected: true, children: "Weekly" }),
2919
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Monthly" }),
2920
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Yearly" })
2921
+ ] }),
2922
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "k-recur-view", children: [
2923
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "k-scheduler-recurrence-interval-editor", children: [
2924
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Repeat every:", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
2925
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NumericTextbox, { className: "k-recur-interval" }),
2926
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: " weeks(s)" })
2927
+ ] }) }),
2928
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Repeat on:", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(ButtonGroup, { stretched: true, children: [
2929
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Sun" }),
2930
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { selected: true, children: "Mon" }),
2931
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Tue" }),
2932
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Wed" }),
2933
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Thu" }),
2934
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Fri" }),
2935
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { children: "Sat" })
2936
+ ] }) })
2937
+ ] }),
2938
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "k-scheduler-recurrence-end-rule-editor", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "End", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("ul", { className: "k-radio-list", children: [
2939
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { className: "k-radio-list-item", children: [
2940
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioButton, { id: "k-endrule-never" }),
2941
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-never", children: "Never" })
2942
+ ] }),
2943
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { className: "k-radio-list-item", children: [
2944
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioButton, { id: "k-endrule-count" }),
2945
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-count", children: "After" }),
2946
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NumericTextbox, { className: "k-recur-count" }),
2947
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: "occurrence(s)" })
2948
+ ] }),
2949
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("li", { className: "k-radio-list-item", children: [
2950
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(RadioButton, { id: "k-endrule-until" }),
2951
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "k-radio-label", htmlFor: "k-endrule-until", children: "On" }),
2952
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DatePicker, { className: "k-recur-until", disabled: true })
2953
+ ] })
2954
+ ] }) }) })
2955
+ ] })
2956
+ ] }) }),
2957
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Description", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Textarea, {}) }),
2958
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Owner", editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Combobox, { placeholder: "Select owner" }) }),
2959
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(FormField, { label: "Atendee", optional: true, editor: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(MultiSelect, { placeholder: "Invite people" }) })
2960
+ ] }) }) }) })
2961
+ ] })
2962
+ );
2963
+ })();
2964
+ //# sourceMappingURL=scheduler-editing-weekly.js.map