@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
@@ -168,10 +168,186 @@
168
168
  "readonly": "readonly"
169
169
  };
170
170
 
171
- // src/input/input.spec.tsx
171
+ // src/icon/icon.spec.tsx
172
172
  var import_jsx_runtime = __require("react/jsx-runtime");
173
+ var ICON_CLASSNAME = `k-icon`;
174
+ var states = [];
175
+ var options = {
176
+ size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
177
+ themeColor: [
178
+ ThemeColor.base,
179
+ ThemeColor.primary,
180
+ ThemeColor.secondary,
181
+ ThemeColor.tertiary,
182
+ ThemeColor.success,
183
+ ThemeColor.warning,
184
+ ThemeColor.error,
185
+ ThemeColor.info,
186
+ ThemeColor.light,
187
+ ThemeColor.dark
188
+ ]
189
+ };
190
+ var defaultProps = {};
191
+ var Icon = (props) => {
192
+ const _a = props, {
193
+ size,
194
+ themeColor,
195
+ name,
196
+ rotate,
197
+ flip
198
+ } = _a, other = __objRest(_a, [
199
+ "size",
200
+ "themeColor",
201
+ "name",
202
+ "rotate",
203
+ "flip"
204
+ ]);
205
+ if (!name) {
206
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
207
+ }
208
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
209
+ "span",
210
+ __spreadProps(__spreadValues({}, other), {
211
+ className: classNames(
212
+ props.className,
213
+ ICON_CLASSNAME,
214
+ optionClassNames(ICON_CLASSNAME, {
215
+ size,
216
+ themeColor
217
+ }),
218
+ {
219
+ [`k-i-${name}`]: name,
220
+ [`k-rotate-${rotate}`]: rotate,
221
+ [`k-flip-${flip}`]: flip
222
+ }
223
+ )
224
+ })
225
+ );
226
+ };
227
+ Icon.states = states;
228
+ Icon.options = options;
229
+ Icon.className = ICON_CLASSNAME;
230
+ Icon.defaultProps = defaultProps;
231
+
232
+ // src/button/button.spec.tsx
233
+ var import_jsx_runtime2 = __require("react/jsx-runtime");
234
+ var BUTTON_CLASSNAME = `k-button`;
235
+ var states2 = [
236
+ States.hover,
237
+ States.focus,
238
+ States.active,
239
+ States.selected,
240
+ States.disabled
241
+ ];
242
+ var options2 = {
243
+ size: [Size.small, Size.medium, Size.large],
244
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
245
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
246
+ themeColor: [
247
+ ThemeColor.base,
248
+ ThemeColor.primary,
249
+ ThemeColor.secondary,
250
+ ThemeColor.tertiary,
251
+ ThemeColor.success,
252
+ ThemeColor.warning,
253
+ ThemeColor.error,
254
+ ThemeColor.info,
255
+ ThemeColor.light,
256
+ ThemeColor.dark,
257
+ ThemeColor.inverse
258
+ ]
259
+ };
260
+ var defaultProps2 = {
261
+ size: Size.medium,
262
+ rounded: Roundness.medium,
263
+ fillMode: FillMode.solid,
264
+ themeColor: ThemeColor.base,
265
+ showArrow: false,
266
+ arrowIconName: "arrow-s"
267
+ };
268
+ var Button = (props) => {
269
+ const _a = props, {
270
+ size = defaultProps2.size,
271
+ rounded = defaultProps2.rounded,
272
+ fillMode = defaultProps2.fillMode,
273
+ themeColor = defaultProps2.themeColor,
274
+ hover,
275
+ focus,
276
+ active,
277
+ selected,
278
+ disabled,
279
+ icon,
280
+ text,
281
+ iconClassName,
282
+ showArrow = defaultProps2.showArrow,
283
+ arrowIconName = defaultProps2.arrowIconName
284
+ } = _a, other = __objRest(_a, [
285
+ "size",
286
+ "rounded",
287
+ "fillMode",
288
+ "themeColor",
289
+ "hover",
290
+ "focus",
291
+ "active",
292
+ "selected",
293
+ "disabled",
294
+ "icon",
295
+ "text",
296
+ "iconClassName",
297
+ "showArrow",
298
+ "arrowIconName"
299
+ ]);
300
+ const hasIcon = icon !== void 0;
301
+ const hasChildren = props.children !== void 0;
302
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
303
+ "button",
304
+ __spreadProps(__spreadValues({}, other), {
305
+ className: classNames(
306
+ props.className,
307
+ BUTTON_CLASSNAME,
308
+ optionClassNames(BUTTON_CLASSNAME, {
309
+ size,
310
+ rounded,
311
+ fillMode,
312
+ themeColor
313
+ }),
314
+ stateClassNames(BUTTON_CLASSNAME, {
315
+ hover,
316
+ focus,
317
+ active,
318
+ disabled,
319
+ selected
320
+ }),
321
+ {
322
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
323
+ }
324
+ ),
325
+ children: [
326
+ icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
327
+ Icon,
328
+ {
329
+ className: classNames(iconClassName, "k-button-icon"),
330
+ name: icon
331
+ }
332
+ ),
333
+ text ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
334
+ text && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-button-text", children: text }),
335
+ props.children
336
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-button-text", children: props.children }),
337
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { name: arrowIconName }) })
338
+ ]
339
+ })
340
+ );
341
+ };
342
+ Button.states = states2;
343
+ Button.options = options2;
344
+ Button.className = BUTTON_CLASSNAME;
345
+ Button.defaultProps = defaultProps2;
346
+
347
+ // src/input/input.spec.tsx
348
+ var import_jsx_runtime3 = __require("react/jsx-runtime");
173
349
  var INPUT_CLASSNAME = `k-input`;
174
- var states = [
350
+ var states3 = [
175
351
  States.hover,
176
352
  States.focus,
177
353
  States.valid,
@@ -181,12 +357,12 @@
181
357
  States.loading,
182
358
  States.readonly
183
359
  ];
184
- var options = {
360
+ var options3 = {
185
361
  size: [Size.small, Size.medium, Size.large],
186
362
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
187
363
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
188
364
  };
189
- var defaultProps = {
365
+ var defaultProps3 = {
190
366
  size: Size.medium,
191
367
  rounded: Size.medium,
192
368
  fillMode: FillMode.solid
@@ -200,9 +376,9 @@
200
376
  valid,
201
377
  loading,
202
378
  readonly,
203
- size = defaultProps.size,
204
- rounded = defaultProps.rounded,
205
- fillMode = defaultProps.fillMode
379
+ size = defaultProps3.size,
380
+ rounded = defaultProps3.rounded,
381
+ fillMode = defaultProps3.fillMode
206
382
  } = _a, other = __objRest(_a, [
207
383
  "hover",
208
384
  "focus",
@@ -215,7 +391,7 @@
215
391
  "rounded",
216
392
  "fillMode"
217
393
  ]);
218
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
394
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
219
395
  "span",
220
396
  __spreadProps(__spreadValues({}, other), {
221
397
  className: classNames(
@@ -227,13 +403,13 @@
227
403
  })
228
404
  );
229
405
  };
230
- Input.states = states;
231
- Input.options = options;
406
+ Input.states = states3;
407
+ Input.options = options3;
232
408
  Input.className = INPUT_CLASSNAME;
233
- Input.defaultProps = defaultProps;
409
+ Input.defaultProps = defaultProps3;
234
410
 
235
411
  // src/input/picker.spec.tsx
236
- var import_jsx_runtime2 = __require("react/jsx-runtime");
412
+ var import_jsx_runtime4 = __require("react/jsx-runtime");
237
413
  var PICKER_CLASSNAME = `k-picker`;
238
414
  var pickerStates = [
239
415
  States.hover,
@@ -250,7 +426,7 @@
250
426
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
251
427
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
252
428
  };
253
- var defaultProps2 = {
429
+ var defaultProps4 = {
254
430
  size: Size.medium,
255
431
  rounded: Roundness.medium,
256
432
  fillMode: FillMode.solid
@@ -264,9 +440,9 @@
264
440
  valid,
265
441
  loading,
266
442
  readonly,
267
- size = defaultProps2.size,
268
- rounded = defaultProps2.rounded,
269
- fillMode = defaultProps2.fillMode
443
+ size = defaultProps4.size,
444
+ rounded = defaultProps4.rounded,
445
+ fillMode = defaultProps4.fillMode
270
446
  } = _a, other = __objRest(_a, [
271
447
  "hover",
272
448
  "focus",
@@ -279,7 +455,7 @@
279
455
  "rounded",
280
456
  "fillMode"
281
457
  ]);
282
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
458
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
283
459
  "span",
284
460
  __spreadProps(__spreadValues({}, other), {
285
461
  className: classNames(
@@ -295,78 +471,17 @@
295
471
  Picker.states = pickerStates;
296
472
  Picker.options = pickerOptions;
297
473
  Picker.className = PICKER_CLASSNAME;
298
- Picker.defaultProps = defaultProps2;
299
-
300
- // src/icon/icon.spec.tsx
301
- var import_jsx_runtime3 = __require("react/jsx-runtime");
302
- var ICON_CLASSNAME = `k-icon`;
303
- var states2 = [];
304
- var options2 = {
305
- size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
306
- themeColor: [
307
- ThemeColor.base,
308
- ThemeColor.primary,
309
- ThemeColor.secondary,
310
- ThemeColor.tertiary,
311
- ThemeColor.success,
312
- ThemeColor.warning,
313
- ThemeColor.error,
314
- ThemeColor.info,
315
- ThemeColor.light,
316
- ThemeColor.dark
317
- ]
318
- };
319
- var defaultProps3 = {};
320
- var Icon = (props) => {
321
- const _a = props, {
322
- size,
323
- themeColor,
324
- name,
325
- rotate,
326
- flip
327
- } = _a, other = __objRest(_a, [
328
- "size",
329
- "themeColor",
330
- "name",
331
- "rotate",
332
- "flip"
333
- ]);
334
- if (!name) {
335
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
336
- }
337
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
338
- "span",
339
- __spreadProps(__spreadValues({}, other), {
340
- className: classNames(
341
- props.className,
342
- ICON_CLASSNAME,
343
- optionClassNames(ICON_CLASSNAME, {
344
- size,
345
- themeColor
346
- }),
347
- {
348
- [`k-i-${name}`]: name,
349
- [`k-rotate-${rotate}`]: rotate,
350
- [`k-flip-${flip}`]: flip
351
- }
352
- )
353
- })
354
- );
355
- };
356
- Icon.states = states2;
357
- Icon.options = options2;
358
- Icon.className = ICON_CLASSNAME;
359
- Icon.defaultProps = defaultProps3;
474
+ Picker.defaultProps = defaultProps4;
360
475
 
361
476
  // src/input/input-clear-value.tsx
362
- var import_jsx_runtime4 = __require("react/jsx-runtime");
477
+ var import_jsx_runtime5 = __require("react/jsx-runtime");
363
478
  var className = `k-clear-value`;
364
- var states3 = [
479
+ var states4 = [
365
480
  States.disabled,
366
481
  States.loading,
367
482
  States.readonly
368
483
  ];
369
- var options3 = {};
484
+ var options4 = {};
370
485
  var InputClearValue = (props) => {
371
486
  const {
372
487
  disabled,
@@ -375,20 +490,20 @@
375
490
  value
376
491
  } = props;
377
492
  if (disabled || readonly || loading || !value) {
378
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
493
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
379
494
  }
380
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "x" }) });
495
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "x" }) });
381
496
  };
382
- InputClearValue.states = states3;
383
- InputClearValue.options = options3;
497
+ InputClearValue.states = states4;
498
+ InputClearValue.options = options4;
384
499
  InputClearValue.className = className;
385
500
 
386
501
  // src/input/input-inner-input.tsx
387
- var import_jsx_runtime5 = __require("react/jsx-runtime");
502
+ var import_jsx_runtime6 = __require("react/jsx-runtime");
388
503
  var className2 = `k-input-inner`;
389
- var states4 = [];
390
- var options4 = {};
391
- var defaultProps4 = {
504
+ var states5 = [];
505
+ var options5 = {};
506
+ var defaultProps5 = {
392
507
  type: "text",
393
508
  autocomplete: "off",
394
509
  value: "",
@@ -396,17 +511,17 @@
396
511
  };
397
512
  var InputInnerInput = (props) => {
398
513
  const _a = props, {
399
- value = defaultProps4.value,
400
- type = defaultProps4.type,
401
- placeholder = defaultProps4.placeholder,
402
- autocomplete = defaultProps4.autocomplete
514
+ value = defaultProps5.value,
515
+ type = defaultProps5.type,
516
+ placeholder = defaultProps5.placeholder,
517
+ autocomplete = defaultProps5.autocomplete
403
518
  } = _a, other = __objRest(_a, [
404
519
  "value",
405
520
  "type",
406
521
  "placeholder",
407
522
  "autocomplete"
408
523
  ]);
409
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
524
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
410
525
  "input",
411
526
  __spreadProps(__spreadValues({}, other), {
412
527
  type,
@@ -417,15 +532,15 @@
417
532
  })
418
533
  );
419
534
  };
420
- InputInnerInput.states = states4;
421
- InputInnerInput.options = options4;
535
+ InputInnerInput.states = states5;
536
+ InputInnerInput.options = options5;
422
537
  InputInnerInput.className = className2;
423
538
 
424
539
  // src/input/input-inner-span.tsx
425
- var import_jsx_runtime6 = __require("react/jsx-runtime");
540
+ var import_jsx_runtime7 = __require("react/jsx-runtime");
426
541
  var className3 = `k-input-inner`;
427
- var states5 = [];
428
- var options5 = {};
542
+ var states6 = [];
543
+ var options6 = {};
429
544
  var InputInnerSpan = (props) => {
430
545
  const _a = props, {
431
546
  value,
@@ -440,43 +555,43 @@
440
555
  "valueIcon",
441
556
  "valueIconName"
442
557
  ]);
443
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
558
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
444
559
  "span",
445
560
  __spreadProps(__spreadValues({}, other), {
446
561
  className: classNames(props.className, className3, optionClassNames(className3, props)),
447
562
  children: [
448
563
  valueIcon,
449
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { className: "k-input-value-icon", name: valueIconName }),
564
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { className: "k-input-value-icon", name: valueIconName }),
450
565
  showValue && !value && placeholder,
451
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "k-input-value-text", children: value })
566
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "k-input-value-text", children: value })
452
567
  ]
453
568
  })
454
569
  );
455
570
  };
456
- InputInnerSpan.states = states5;
457
- InputInnerSpan.options = options5;
571
+ InputInnerSpan.states = states6;
572
+ InputInnerSpan.options = options6;
458
573
  InputInnerSpan.className = className3;
459
574
 
460
575
  // src/input/input-inner-textarea.tsx
461
- var import_jsx_runtime7 = __require("react/jsx-runtime");
462
- var defaultProps5 = {
576
+ var import_jsx_runtime8 = __require("react/jsx-runtime");
577
+ var defaultProps6 = {
463
578
  value: "",
464
579
  placeholder: ""
465
580
  };
466
581
  var className4 = `k-input-inner`;
467
- var states6 = [];
468
- var options6 = {};
582
+ var states7 = [];
583
+ var options7 = {};
469
584
  var InputInnerTextarea = (props) => {
470
585
  const _a = props, {
471
- value = defaultProps5.value,
472
- placeholder = defaultProps5.placeholder,
586
+ value = defaultProps6.value,
587
+ placeholder = defaultProps6.placeholder,
473
588
  rows
474
589
  } = _a, other = __objRest(_a, [
475
590
  "value",
476
591
  "placeholder",
477
592
  "rows"
478
593
  ]);
479
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
594
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
480
595
  "textarea",
481
596
  __spreadProps(__spreadValues({}, other), {
482
597
  className: classNames(props.className, className4, optionClassNames(className4, props)),
@@ -486,14 +601,14 @@
486
601
  })
487
602
  );
488
603
  };
489
- InputInnerTextarea.states = states6;
490
- InputInnerTextarea.options = options6;
604
+ InputInnerTextarea.states = states7;
605
+ InputInnerTextarea.options = options7;
491
606
  InputInnerTextarea.className = className4;
492
607
 
493
608
  // src/input/input-loading-icon.tsx
494
- var import_jsx_runtime8 = __require("react/jsx-runtime");
609
+ var import_jsx_runtime9 = __require("react/jsx-runtime");
495
610
  var className5 = `k-input-loading-icon`;
496
- var states7 = [
611
+ var states8 = [
497
612
  States.disabled,
498
613
  States.loading
499
614
  ];
@@ -503,21 +618,21 @@
503
618
  loading
504
619
  } = props;
505
620
  if (disabled || !loading) {
506
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {});
621
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {});
507
622
  }
508
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { className: classNames(props.className, className5), name: "loading" });
623
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: classNames(props.className, className5), name: "loading" });
509
624
  };
510
625
 
511
626
  // src/input/input-validation-icon.tsx
512
- var import_jsx_runtime9 = __require("react/jsx-runtime");
627
+ var import_jsx_runtime10 = __require("react/jsx-runtime");
513
628
  var className6 = `k-input-validation-icon`;
514
- var states8 = [
629
+ var states9 = [
515
630
  States.valid,
516
631
  States.invalid,
517
632
  States.disabled,
518
633
  States.loading
519
634
  ];
520
- var options7 = {};
635
+ var options8 = {};
521
636
  var InputValidationIcon = (props) => {
522
637
  const {
523
638
  valid,
@@ -528,38 +643,38 @@
528
643
  const iconName = invalid ? "warning" : "check";
529
644
  const renderValidationIcon = Boolean(valid || invalid);
530
645
  if (disabled || loading || !renderValidationIcon) {
531
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {});
646
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
532
647
  }
533
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: classNames(className6), name: iconName });
648
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { className: classNames(className6), name: iconName });
534
649
  };
535
- InputValidationIcon.states = states8;
536
- InputValidationIcon.options = options7;
650
+ InputValidationIcon.states = states9;
651
+ InputValidationIcon.options = options8;
537
652
  InputValidationIcon.className = className6;
538
653
 
539
654
  // src/input/input-prefix.tsx
540
- var import_jsx_runtime10 = __require("react/jsx-runtime");
655
+ var import_jsx_runtime11 = __require("react/jsx-runtime");
541
656
  var className7 = `k-input-prefix`;
542
657
  var InputPrefix = (props) => {
543
658
  if (!props.children) {
544
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
659
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
545
660
  }
546
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: classNames(className7, props.className), children: props.children });
661
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: classNames(className7, props.className), children: props.children });
547
662
  };
548
663
 
549
664
  // src/input/input-suffix.tsx
550
- var import_jsx_runtime11 = __require("react/jsx-runtime");
665
+ var import_jsx_runtime12 = __require("react/jsx-runtime");
551
666
  var className8 = `k-input-suffix`;
552
667
  var InputSuffix = (props) => {
553
668
  if (!props.children) {
554
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
669
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
555
670
  }
556
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: classNames(className8, props.className), children: props.children });
671
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: classNames(className8, props.className), children: props.children });
557
672
  };
558
673
 
559
674
  // src/textbox/textbox.spec.tsx
560
- var import_jsx_runtime12 = __require("react/jsx-runtime");
675
+ var import_jsx_runtime13 = __require("react/jsx-runtime");
561
676
  var TEXTBOX_CLASSNAME = `k-textbox`;
562
- var states9 = [
677
+ var states10 = [
563
678
  States.hover,
564
679
  States.focus,
565
680
  States.valid,
@@ -569,12 +684,12 @@
569
684
  States.loading,
570
685
  States.readonly
571
686
  ];
572
- var options8 = {
687
+ var options9 = {
573
688
  size: [Size.small, Size.medium, Size.large],
574
689
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
575
690
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
576
691
  };
577
- var defaultProps6 = {
692
+ var defaultProps7 = {
578
693
  showClearButton: true,
579
694
  size: Input.defaultProps.size,
580
695
  rounded: Input.defaultProps.rounded,
@@ -597,7 +712,7 @@
597
712
  loading,
598
713
  disabled,
599
714
  readonly,
600
- showClearButton = defaultProps6.showClearButton
715
+ showClearButton = defaultProps7.showClearButton
601
716
  } = _a, other = __objRest(_a, [
602
717
  "prefix",
603
718
  "suffix",
@@ -616,7 +731,7 @@
616
731
  "readonly",
617
732
  "showClearButton"
618
733
  ]);
619
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
734
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
620
735
  Input,
621
736
  __spreadProps(__spreadValues({}, other), {
622
737
  size,
@@ -632,9 +747,9 @@
632
747
  readonly,
633
748
  className: classNames(props.className, TEXTBOX_CLASSNAME),
634
749
  children: [
635
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InputPrefix, { children: prefix }),
636
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InputInnerInput, { placeholder, value }),
637
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
750
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(InputPrefix, { children: prefix }),
751
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(InputInnerInput, { placeholder, value }),
752
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
638
753
  InputValidationIcon,
639
754
  {
640
755
  valid,
@@ -643,14 +758,14 @@
643
758
  disabled
644
759
  }
645
760
  ),
646
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
761
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
647
762
  InputLoadingIcon,
648
763
  {
649
764
  loading,
650
765
  disabled
651
766
  }
652
767
  ),
653
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
768
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
654
769
  InputClearValue,
655
770
  {
656
771
  loading,
@@ -659,34 +774,34 @@
659
774
  value
660
775
  }
661
776
  ),
662
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InputSuffix, { children: suffix })
777
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(InputSuffix, { children: suffix })
663
778
  ]
664
779
  })
665
780
  );
666
781
  };
667
- Textbox.states = states9;
668
- Textbox.options = options8;
782
+ Textbox.states = states10;
783
+ Textbox.options = options9;
669
784
  Textbox.className = TEXTBOX_CLASSNAME;
670
- Textbox.defaultProps = defaultProps6;
785
+ Textbox.defaultProps = defaultProps7;
671
786
 
672
787
  // src/action-buttons/action-buttons.spec.tsx
673
- var import_jsx_runtime13 = __require("react/jsx-runtime");
788
+ var import_jsx_runtime14 = __require("react/jsx-runtime");
674
789
  var ACTIONBUTTONS_CLASSNAME = `k-actions`;
675
- var states10 = [];
676
- var options9 = {};
677
- var defaultProps7 = {
790
+ var states11 = [];
791
+ var options10 = {};
792
+ var defaultProps8 = {
678
793
  alignment: "start",
679
794
  orientation: "horizontal"
680
795
  };
681
796
  var ActionButtons = (props) => {
682
797
  const _a = props, {
683
- alignment = defaultProps7.alignment,
684
- orientation = defaultProps7.orientation
798
+ alignment = defaultProps8.alignment,
799
+ orientation = defaultProps8.orientation
685
800
  } = _a, other = __objRest(_a, [
686
801
  "alignment",
687
802
  "orientation"
688
803
  ]);
689
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
804
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
690
805
  "div",
691
806
  __spreadProps(__spreadValues({}, other), {
692
807
  className: classNames(
@@ -701,125 +816,10 @@
701
816
  })
702
817
  );
703
818
  };
704
- ActionButtons.states = states10;
705
- ActionButtons.options = options9;
819
+ ActionButtons.states = states11;
820
+ ActionButtons.options = options10;
706
821
  ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
707
- ActionButtons.defaultProps = defaultProps7;
708
-
709
- // src/button/button.spec.tsx
710
- var import_jsx_runtime14 = __require("react/jsx-runtime");
711
- var BUTTON_CLASSNAME = `k-button`;
712
- var states11 = [
713
- States.hover,
714
- States.focus,
715
- States.active,
716
- States.selected,
717
- States.disabled
718
- ];
719
- var options10 = {
720
- size: [Size.small, Size.medium, Size.large],
721
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
722
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
723
- themeColor: [
724
- ThemeColor.base,
725
- ThemeColor.primary,
726
- ThemeColor.secondary,
727
- ThemeColor.tertiary,
728
- ThemeColor.success,
729
- ThemeColor.warning,
730
- ThemeColor.error,
731
- ThemeColor.info,
732
- ThemeColor.light,
733
- ThemeColor.dark,
734
- ThemeColor.inverse
735
- ]
736
- };
737
- var defaultProps8 = {
738
- size: Size.medium,
739
- rounded: Roundness.medium,
740
- fillMode: FillMode.solid,
741
- themeColor: ThemeColor.base,
742
- showArrow: false,
743
- arrowIconName: "arrow-s"
744
- };
745
- var Button = (props) => {
746
- const _a = props, {
747
- size = defaultProps8.size,
748
- rounded = defaultProps8.rounded,
749
- fillMode = defaultProps8.fillMode,
750
- themeColor = defaultProps8.themeColor,
751
- hover,
752
- focus,
753
- active,
754
- selected,
755
- disabled,
756
- icon,
757
- text,
758
- iconClassName,
759
- showArrow = defaultProps8.showArrow,
760
- arrowIconName = defaultProps8.arrowIconName
761
- } = _a, other = __objRest(_a, [
762
- "size",
763
- "rounded",
764
- "fillMode",
765
- "themeColor",
766
- "hover",
767
- "focus",
768
- "active",
769
- "selected",
770
- "disabled",
771
- "icon",
772
- "text",
773
- "iconClassName",
774
- "showArrow",
775
- "arrowIconName"
776
- ]);
777
- const hasIcon = icon !== void 0;
778
- const hasChildren = props.children !== void 0;
779
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
780
- "button",
781
- __spreadProps(__spreadValues({}, other), {
782
- className: classNames(
783
- props.className,
784
- BUTTON_CLASSNAME,
785
- optionClassNames(BUTTON_CLASSNAME, {
786
- size,
787
- rounded,
788
- fillMode,
789
- themeColor
790
- }),
791
- stateClassNames(BUTTON_CLASSNAME, {
792
- hover,
793
- focus,
794
- active,
795
- disabled,
796
- selected
797
- }),
798
- {
799
- ["k-icon-button"]: !text && !hasChildren && hasIcon
800
- }
801
- ),
802
- children: [
803
- icon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
804
- Icon,
805
- {
806
- className: classNames(iconClassName, "k-button-icon"),
807
- name: icon
808
- }
809
- ),
810
- text ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
811
- text && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "k-button-text", children: text }),
812
- props.children
813
- ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "k-button-text", children: props.children }),
814
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { name: arrowIconName }) })
815
- ]
816
- })
817
- );
818
- };
819
- Button.states = states11;
820
- Button.options = options10;
821
- Button.className = BUTTON_CLASSNAME;
822
- Button.defaultProps = defaultProps8;
822
+ ActionButtons.defaultProps = defaultProps8;
823
823
 
824
824
  // src/window/window.spec.tsx
825
825
  var import_jsx_runtime15 = __require("react/jsx-runtime");
@@ -873,10 +873,7 @@
873
873
  "k-hidden": minimized
874
874
  }
875
875
  ), children: props.children }),
876
- actionButtons && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: [
877
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { children: "Cancel" }),
878
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { themeColor: "primary", children: "Update" })
879
- ] })
876
+ actionButtons && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
880
877
  ]
881
878
  })
882
879
  );
@@ -1026,7 +1023,10 @@
1026
1023
  /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
1027
1024
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Find Window" }),
1028
1025
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", {}),
1029
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Window, { title: "Insert Image", actions: ["close"], actionButtons: true, actionButtonsAlign: "end", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Form, { tag: "div", orientation: "horizontal", children: [
1026
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Window, { title: "Insert Image", actions: ["close"], actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1027
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { themeColor: "primary", children: "Insert" }),
1028
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { children: "Cancel" })
1029
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Form, { tag: "div", orientation: "vertical", children: [
1030
1030
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormField, { label: "Web address:", editor: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Textbox, { showClearButton: false }) }),
1031
1031
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormField, { label: "Alternate text:", editor: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Textbox, { showClearButton: false }) }),
1032
1032
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FormField, { label: "Width:", editor: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Textbox, { showClearButton: false }) }),