@progress/kendo-themes-html 6.7.1-dev.1 → 6.8.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/cjs/daterangepicker/daterangepicker.spec.js +206 -203
  2. package/dist/cjs/daterangepicker/templates/daterangepicker-adaptive.js +208 -205
  3. package/dist/cjs/daterangepicker/templates/daterangepicker-normal.js +208 -205
  4. package/dist/cjs/daterangepicker/templates/daterangepicker-popup.js +208 -205
  5. package/dist/cjs/daterangepicker/tests/daterangepicker-adaptive.js +218 -215
  6. package/dist/cjs/daterangepicker/tests/daterangepicker-flat.js +227 -224
  7. package/dist/cjs/daterangepicker/tests/daterangepicker-opened.js +218 -215
  8. package/dist/cjs/daterangepicker/tests/daterangepicker-outline.js +227 -224
  9. package/dist/cjs/daterangepicker/tests/daterangepicker-size-rounded.js +221 -218
  10. package/dist/cjs/daterangepicker/tests/daterangepicker-solid.js +227 -224
  11. package/dist/cjs/floating-label/templates/floating-label-normal.js +115 -0
  12. package/dist/cjs/floating-label/tests/floating-label-flat.js +87 -1136
  13. package/dist/cjs/floating-label/tests/floating-label-outline.js +87 -1136
  14. package/dist/cjs/floating-label/tests/floating-label-solid.js +4929 -0
  15. package/dist/cjs/form/tests/form-field-dateinputs.js +149 -146
  16. package/dist/cjs/form/tests/form-field-inputs-rtl.js +233 -230
  17. package/dist/cjs/form/tests/form-field-inputs.js +234 -231
  18. package/dist/cjs/index.js +2415 -2409
  19. package/dist/cjs/spreadsheet/tests/spreadsheet-cell-contextmenu.js +7103 -0
  20. package/dist/cjs/spreadsheet/tests/spreadsheet-data-validation.js +526 -553
  21. package/dist/cjs/{floating-label/tests/floating-label.js → spreadsheet/tests/spreadsheet-file-dialogs.js} +1113 -922
  22. package/dist/cjs/spreadsheet/tests/spreadsheet-filtering.js +7088 -0
  23. package/dist/cjs/spreadsheet/tests/spreadsheet-find-replace-dialog.js +5858 -0
  24. package/dist/cjs/spreadsheet/tests/spreadsheet-format-dialogs.js +7385 -0
  25. package/dist/cjs/spreadsheet/tests/spreadsheet-formula-dialog.js +5824 -0
  26. package/dist/cjs/spreadsheet/tests/spreadsheet-formula.js +7062 -0
  27. package/dist/cjs/spreadsheet/tests/{spreadsheet-dialog.js → spreadsheet-insert-dialogs.js} +541 -601
  28. package/dist/cjs/spreadsheet/tests/spreadsheet-jquery.js +7133 -0
  29. package/dist/cjs/spreadsheet/tests/spreadsheet-print.js +6285 -0
  30. package/dist/cjs/spreadsheet/tests/{spreadsheet-tools-popup.js → spreadsheet-row-contextmenu.js} +733 -784
  31. package/dist/cjs/spreadsheet/tests/spreadsheet-sheets-bar.js +5518 -0
  32. package/dist/cjs/spreadsheet/tests/spreadsheet-tools.js +6989 -0
  33. package/dist/cjs/spreadsheet/tests/spreadsheet.js +660 -708
  34. package/dist/esm/daterangepicker/daterangepicker.spec.js +170 -167
  35. package/dist/esm/daterangepicker/templates/daterangepicker-adaptive.js +172 -169
  36. package/dist/esm/daterangepicker/templates/daterangepicker-normal.js +172 -169
  37. package/dist/esm/daterangepicker/templates/daterangepicker-popup.js +172 -169
  38. package/dist/esm/daterangepicker/tests/daterangepicker-adaptive.js +180 -177
  39. package/dist/esm/daterangepicker/tests/daterangepicker-flat.js +186 -183
  40. package/dist/esm/daterangepicker/tests/daterangepicker-opened.js +180 -177
  41. package/dist/esm/daterangepicker/tests/daterangepicker-outline.js +186 -183
  42. package/dist/esm/daterangepicker/tests/daterangepicker-size-rounded.js +182 -179
  43. package/dist/esm/daterangepicker/tests/daterangepicker-solid.js +186 -183
  44. package/dist/esm/floating-label/templates/floating-label-normal.js +93 -0
  45. package/dist/esm/floating-label/tests/floating-label-flat.js +84 -1133
  46. package/dist/esm/floating-label/tests/floating-label-outline.js +84 -1133
  47. package/dist/esm/floating-label/tests/floating-label-solid.js +4913 -0
  48. package/dist/esm/form/tests/form-field-dateinputs.js +123 -120
  49. package/dist/esm/form/tests/form-field-inputs-rtl.js +194 -191
  50. package/dist/esm/form/tests/form-field-inputs.js +192 -189
  51. package/dist/esm/index.js +2025 -2019
  52. package/dist/esm/spreadsheet/tests/spreadsheet-cell-contextmenu.js +7087 -0
  53. package/dist/esm/spreadsheet/tests/spreadsheet-data-validation.js +526 -553
  54. package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +6153 -0
  55. package/dist/esm/spreadsheet/tests/spreadsheet-filtering.js +7072 -0
  56. package/dist/esm/{floating-label/tests/floating-label.js → spreadsheet/tests/spreadsheet-find-replace-dialog.js} +849 -969
  57. package/dist/esm/spreadsheet/tests/spreadsheet-format-dialogs.js +7369 -0
  58. package/dist/esm/spreadsheet/tests/spreadsheet-formula-dialog.js +5808 -0
  59. package/dist/esm/spreadsheet/tests/spreadsheet-formula.js +7046 -0
  60. package/dist/esm/spreadsheet/tests/{spreadsheet-dialog.js → spreadsheet-insert-dialogs.js} +541 -601
  61. package/dist/esm/spreadsheet/tests/{spreadsheet-tools-popup.js → spreadsheet-jquery.js} +296 -317
  62. package/dist/esm/spreadsheet/tests/spreadsheet-print.js +6269 -0
  63. package/dist/esm/spreadsheet/tests/spreadsheet-row-contextmenu.js +7087 -0
  64. package/dist/esm/spreadsheet/tests/spreadsheet-sheets-bar.js +5502 -0
  65. package/dist/esm/spreadsheet/tests/spreadsheet-tools.js +6973 -0
  66. package/dist/esm/spreadsheet/tests/spreadsheet.js +661 -709
  67. package/dist/types/floating-label/index.d.ts +1 -0
  68. package/dist/types/floating-label/templates/floating-label-normal.d.ts +4 -0
  69. package/dist/types/spreadsheet/tests/spreadsheet-filtering.d.ts +2 -0
  70. package/dist/types/spreadsheet/tests/spreadsheet-find-replace-dialog.d.ts +2 -0
  71. package/dist/types/spreadsheet/tests/spreadsheet-format-dialogs.d.ts +2 -0
  72. package/dist/types/spreadsheet/tests/spreadsheet-formula-dialog.d.ts +2 -0
  73. package/dist/types/spreadsheet/tests/spreadsheet-formula.d.ts +2 -0
  74. package/dist/types/spreadsheet/tests/spreadsheet-insert-dialogs.d.ts +2 -0
  75. package/dist/types/spreadsheet/tests/spreadsheet-jquery.d.ts +2 -0
  76. package/dist/types/spreadsheet/tests/spreadsheet-print.d.ts +2 -0
  77. package/dist/types/spreadsheet/tests/spreadsheet-row-contextmenu.d.ts +2 -0
  78. package/dist/types/spreadsheet/tests/spreadsheet-sheets-bar.d.ts +2 -0
  79. package/dist/types/spreadsheet/tests/spreadsheet-tools.d.ts +2 -0
  80. package/package.json +2 -2
  81. package/src/floating-label/index.ts +1 -0
  82. package/src/floating-label/templates/floating-label-normal.tsx +7 -0
  83. package/src/floating-label/tests/floating-label-flat.tsx +32 -148
  84. package/src/floating-label/tests/floating-label-outline.tsx +32 -148
  85. package/src/floating-label/tests/floating-label-solid.tsx +64 -0
  86. package/src/spreadsheet/tests/spreadsheet-cell-contextmenu.tsx +538 -0
  87. package/src/spreadsheet/tests/spreadsheet-data-validation.tsx +43 -53
  88. package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +63 -0
  89. package/src/spreadsheet/tests/spreadsheet-filtering.tsx +522 -0
  90. package/src/spreadsheet/tests/spreadsheet-find-replace-dialog.tsx +38 -0
  91. package/src/spreadsheet/tests/spreadsheet-format-dialogs.tsx +76 -0
  92. package/src/spreadsheet/tests/spreadsheet-formula-dialog.tsx +45 -0
  93. package/src/spreadsheet/tests/spreadsheet-formula.tsx +491 -0
  94. package/src/spreadsheet/tests/{spreadsheet-dialog.tsx → spreadsheet-insert-dialogs.tsx} +35 -52
  95. package/src/spreadsheet/tests/{spreadsheet-tools-popup.tsx → spreadsheet-jquery.tsx} +19 -43
  96. package/src/spreadsheet/tests/spreadsheet-print.tsx +179 -0
  97. package/src/spreadsheet/tests/spreadsheet-row-contextmenu.tsx +538 -0
  98. package/src/spreadsheet/tests/spreadsheet-sheets-bar.tsx +123 -0
  99. package/src/spreadsheet/tests/spreadsheet-tools.tsx +315 -0
  100. package/src/spreadsheet/tests/spreadsheet.tsx +372 -435
  101. package/src/floating-label/tests/floating-label.tsx +0 -180
  102. /package/dist/types/floating-label/tests/{floating-label.d.ts → floating-label-solid.d.ts} +0 -0
  103. /package/dist/types/spreadsheet/tests/{spreadsheet-dialog.d.ts → spreadsheet-cell-contextmenu.d.ts} +0 -0
  104. /package/dist/types/spreadsheet/tests/{spreadsheet-tools-popup.d.ts → spreadsheet-file-dialogs.d.ts} +0 -0
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // src/floating-label/tests/floating-label.tsx
20
- var floating_label_exports = {};
21
- __export(floating_label_exports, {
22
- default: () => floating_label_default
19
+ // src/spreadsheet/tests/spreadsheet-file-dialogs.tsx
20
+ var spreadsheet_file_dialogs_exports = {};
21
+ __export(spreadsheet_file_dialogs_exports, {
22
+ default: () => spreadsheet_file_dialogs_default
23
23
  });
24
- module.exports = __toCommonJS(floating_label_exports);
24
+ module.exports = __toCommonJS(spreadsheet_file_dialogs_exports);
25
25
 
26
26
  // src/misc/class-names.ts
27
27
  var classNames = (...args) => {
@@ -130,165 +130,48 @@ var States = {
130
130
  "readonly": "readonly"
131
131
  };
132
132
 
133
- // src/floating-label/floating-label.spec.tsx
133
+ // src/action-buttons/action-buttons.spec.tsx
134
134
  var import_jsx_runtime = require("react/jsx-runtime");
135
- var FLOATINGLABEL_CLASSNAME = `k-floating-label-container`;
136
- var states = [
137
- States.focus,
138
- States.valid,
139
- States.invalid,
140
- States.empty,
141
- States.disabled
142
- ];
135
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
136
+ var states = [];
143
137
  var options = {};
144
- var defaultProps = {};
145
- var FloatingLabel = (props) => {
146
- const {
147
- focus,
148
- disabled,
149
- invalid,
150
- valid,
151
- empty,
152
- label,
153
- ...other
154
- } = props;
155
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
156
- "span",
157
- {
158
- ...other,
159
- className: classNames(
160
- props.className,
161
- FLOATINGLABEL_CLASSNAME,
162
- stateClassNames(FLOATINGLABEL_CLASSNAME, { focus, disabled, empty, valid, invalid })
163
- ),
164
- children: [
165
- props.children,
166
- label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: "k-label", children: label })
167
- ]
168
- }
169
- );
170
- };
171
- FloatingLabel.states = states;
172
- FloatingLabel.options = options;
173
- FloatingLabel.className = FLOATINGLABEL_CLASSNAME;
174
- FloatingLabel.defaultProps = defaultProps;
175
-
176
- // src/input/input.spec.tsx
177
- var import_jsx_runtime2 = require("react/jsx-runtime");
178
- var INPUT_CLASSNAME = `k-input`;
179
- var states2 = [
180
- States.hover,
181
- States.focus,
182
- States.valid,
183
- States.invalid,
184
- States.required,
185
- States.disabled,
186
- States.loading,
187
- States.readonly
188
- ];
189
- var options2 = {
190
- size: [Size.small, Size.medium, Size.large],
191
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
192
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
193
- };
194
- var defaultProps2 = {
195
- size: Size.medium,
196
- rounded: Size.medium,
197
- fillMode: FillMode.solid
198
- };
199
- var Input = (props) => {
200
- const {
201
- hover,
202
- focus,
203
- disabled,
204
- invalid,
205
- valid,
206
- loading,
207
- readonly,
208
- size = defaultProps2.size,
209
- rounded = defaultProps2.rounded,
210
- fillMode = defaultProps2.fillMode,
211
- ...other
212
- } = props;
213
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
214
- "span",
215
- {
216
- ...other,
217
- className: classNames(
218
- props.className,
219
- INPUT_CLASSNAME,
220
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
221
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
222
- )
223
- }
224
- );
225
- };
226
- Input.states = states2;
227
- Input.options = options2;
228
- Input.className = INPUT_CLASSNAME;
229
- Input.defaultProps = defaultProps2;
230
-
231
- // src/input/picker.spec.tsx
232
- var import_jsx_runtime3 = require("react/jsx-runtime");
233
- var PICKER_CLASSNAME = `k-picker`;
234
- var pickerStates = [
235
- States.hover,
236
- States.focus,
237
- States.valid,
238
- States.invalid,
239
- States.required,
240
- States.disabled,
241
- States.loading,
242
- States.readonly
243
- ];
244
- var pickerOptions = {
245
- size: [Size.small, Size.medium, Size.large],
246
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
247
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
248
- };
249
- var defaultProps3 = {
250
- size: Size.medium,
251
- rounded: Roundness.medium,
252
- fillMode: FillMode.solid
138
+ var defaultProps = {
139
+ alignment: "start",
140
+ orientation: "horizontal"
253
141
  };
254
- var Picker = (props) => {
142
+ var ActionButtons = (props) => {
255
143
  const {
256
- hover,
257
- focus,
258
- disabled,
259
- invalid,
260
- valid,
261
- loading,
262
- readonly,
263
- size = defaultProps3.size,
264
- rounded = defaultProps3.rounded,
265
- fillMode = defaultProps3.fillMode,
144
+ alignment = defaultProps.alignment,
145
+ orientation = defaultProps.orientation,
266
146
  ...other
267
147
  } = props;
268
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
269
- "span",
148
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
149
+ "div",
270
150
  {
271
151
  ...other,
272
152
  className: classNames(
273
- props.className,
274
- PICKER_CLASSNAME,
275
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
276
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
153
+ ACTIONBUTTONS_CLASSNAME,
154
+ {
155
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
156
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
157
+ },
158
+ props.className
277
159
  ),
278
160
  children: props.children
279
161
  }
280
162
  );
281
163
  };
282
- Picker.states = pickerStates;
283
- Picker.options = pickerOptions;
284
- Picker.className = PICKER_CLASSNAME;
285
- Picker.defaultProps = defaultProps3;
164
+ ActionButtons.states = states;
165
+ ActionButtons.options = options;
166
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
167
+ ActionButtons.defaultProps = defaultProps;
168
+ var action_buttons_spec_default = ActionButtons;
286
169
 
287
170
  // src/icon/font-icon.spec.tsx
288
- var import_jsx_runtime4 = require("react/jsx-runtime");
171
+ var import_jsx_runtime2 = require("react/jsx-runtime");
289
172
  var FONTICON_CLASSNAME = `k-icon`;
290
- var states3 = [];
291
- var options3 = {
173
+ var states2 = [];
174
+ var options2 = {
292
175
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
293
176
  themeColor: [
294
177
  ThemeColor.base,
@@ -303,7 +186,7 @@ var options3 = {
303
186
  ThemeColor.dark
304
187
  ]
305
188
  };
306
- var defaultProps4 = {};
189
+ var defaultProps2 = {};
307
190
  var FontIcon = (props) => {
308
191
  const {
309
192
  size,
@@ -314,9 +197,9 @@ var FontIcon = (props) => {
314
197
  ...other
315
198
  } = props;
316
199
  if (!icon) {
317
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
200
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
318
201
  }
319
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
202
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
320
203
  "span",
321
204
  {
322
205
  ...other,
@@ -337,17 +220,17 @@ var FontIcon = (props) => {
337
220
  }
338
221
  );
339
222
  };
340
- FontIcon.states = states3;
341
- FontIcon.options = options3;
223
+ FontIcon.states = states2;
224
+ FontIcon.options = options2;
342
225
  FontIcon.className = FONTICON_CLASSNAME;
343
- FontIcon.defaultProps = defaultProps4;
226
+ FontIcon.defaultProps = defaultProps2;
344
227
  var font_icon_spec_default = FontIcon;
345
228
 
346
229
  // src/icon/svg-icon.spec.tsx
347
- var import_jsx_runtime5 = require("react/jsx-runtime");
230
+ var import_jsx_runtime3 = require("react/jsx-runtime");
348
231
  var SVGICON_CLASSNAME = `k-svg-icon`;
349
- var states4 = [];
350
- var options4 = {
232
+ var states3 = [];
233
+ var options3 = {
351
234
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
352
235
  themeColor: [
353
236
  ThemeColor.base,
@@ -362,7 +245,7 @@ var options4 = {
362
245
  ThemeColor.dark
363
246
  ]
364
247
  };
365
- var defaultProps5 = {
248
+ var defaultProps3 = {
366
249
  viewBox: "0 0 24 24"
367
250
  };
368
251
  var SvgIcon = (props) => {
@@ -371,15 +254,15 @@ var SvgIcon = (props) => {
371
254
  themeColor,
372
255
  rotate,
373
256
  flip,
374
- viewBox = defaultProps5.viewBox,
257
+ viewBox = defaultProps3.viewBox,
375
258
  icon,
376
259
  ...other
377
260
  } = props;
378
261
  if (!icon) {
379
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
262
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
380
263
  }
381
264
  if (icon === "none") {
382
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
265
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
383
266
  "span",
384
267
  {
385
268
  ...other,
@@ -392,7 +275,7 @@ var SvgIcon = (props) => {
392
275
  );
393
276
  }
394
277
  const name = typeof icon === "object" && icon.name && icon.name;
395
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
278
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
396
279
  "span",
397
280
  {
398
281
  ...other,
@@ -410,7 +293,7 @@ var SvgIcon = (props) => {
410
293
  "k-flip-v": flip === "v" || flip === "both"
411
294
  }
412
295
  ),
413
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
296
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
414
297
  "svg",
415
298
  {
416
299
  "aria-hidden": true,
@@ -424,10 +307,10 @@ var SvgIcon = (props) => {
424
307
  }
425
308
  );
426
309
  };
427
- SvgIcon.states = states4;
428
- SvgIcon.options = options4;
310
+ SvgIcon.states = states3;
311
+ SvgIcon.options = options3;
429
312
  SvgIcon.className = SVGICON_CLASSNAME;
430
- SvgIcon.defaultProps = defaultProps5;
313
+ SvgIcon.defaultProps = defaultProps3;
431
314
  var svg_icon_spec_default = SvgIcon;
432
315
 
433
316
  // node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4426,13 +4309,13 @@ var chartChoroplethIcon = {
4426
4309
  };
4427
4310
 
4428
4311
  // src/icon/icon.spec.tsx
4429
- var import_jsx_runtime6 = require("react/jsx-runtime");
4312
+ var import_jsx_runtime4 = require("react/jsx-runtime");
4430
4313
  var snakeToCamel = (str) => str.toLowerCase().replace(
4431
4314
  /([-_][a-z])/g,
4432
4315
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4433
4316
  );
4434
- var states5 = [];
4435
- var options5 = {
4317
+ var states4 = [];
4318
+ var options4 = {
4436
4319
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4437
4320
  themeColor: [
4438
4321
  ThemeColor.base,
@@ -4447,7 +4330,7 @@ var options5 = {
4447
4330
  ThemeColor.dark
4448
4331
  ]
4449
4332
  };
4450
- var defaultProps6 = {
4333
+ var defaultProps4 = {
4451
4334
  viewBox: "0 0 24 24",
4452
4335
  type: "svg"
4453
4336
  };
@@ -4456,96 +4339,524 @@ var Icon = (props) => {
4456
4339
  size,
4457
4340
  themeColor,
4458
4341
  icon,
4459
- type = defaultProps6.type,
4342
+ type = defaultProps4.type,
4460
4343
  rotate,
4461
4344
  flip,
4462
- viewBox = defaultProps6.viewBox,
4345
+ viewBox = defaultProps4.viewBox,
4463
4346
  ...other
4464
4347
  } = props;
4465
4348
  if (!icon) {
4466
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
4349
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
4467
4350
  }
4468
4351
  if (type === "svg") {
4469
4352
  if (icon === "none") {
4470
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(svg_icon_spec_default, { ...other, icon, size });
4353
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(svg_icon_spec_default, { ...other, icon, size });
4471
4354
  }
4472
4355
  const iconSVG = snakeToCamel(`${icon}-icon`);
4473
4356
  if (!index_es_exports[iconSVG]) {
4474
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
4357
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
4475
4358
  }
4476
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4359
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4477
4360
  }
4478
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4361
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4479
4362
  };
4480
- Icon.states = states5;
4481
- Icon.options = options5;
4482
- Icon.defaultProps = defaultProps6;
4363
+ Icon.states = states4;
4364
+ Icon.options = options4;
4365
+ Icon.defaultProps = defaultProps4;
4483
4366
 
4484
- // src/input/input-clear-value.tsx
4485
- var import_jsx_runtime7 = require("react/jsx-runtime");
4486
- var className = `k-clear-value`;
4487
- var states6 = [
4488
- States.disabled,
4489
- States.loading,
4490
- States.readonly
4367
+ // src/button/button.spec.tsx
4368
+ var import_jsx_runtime5 = require("react/jsx-runtime");
4369
+ var BUTTON_CLASSNAME = `k-button`;
4370
+ var states5 = [
4371
+ States.hover,
4372
+ States.focus,
4373
+ States.active,
4374
+ States.selected,
4375
+ States.disabled
4491
4376
  ];
4492
- var options6 = {};
4493
- var InputClearValue = (props) => {
4494
- const {
4495
- disabled,
4496
- loading,
4497
- readonly,
4498
- value
4499
- } = props;
4500
- if (disabled || readonly || loading || !value) {
4501
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {});
4502
- }
4503
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { icon: "x" }) });
4377
+ var options5 = {
4378
+ size: [Size.small, Size.medium, Size.large],
4379
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4380
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4381
+ themeColor: [
4382
+ ThemeColor.base,
4383
+ ThemeColor.primary,
4384
+ ThemeColor.secondary,
4385
+ ThemeColor.tertiary,
4386
+ ThemeColor.success,
4387
+ ThemeColor.warning,
4388
+ ThemeColor.error,
4389
+ ThemeColor.info,
4390
+ ThemeColor.light,
4391
+ ThemeColor.dark,
4392
+ ThemeColor.inverse
4393
+ ]
4504
4394
  };
4505
- InputClearValue.states = states6;
4506
- InputClearValue.options = options6;
4507
- InputClearValue.className = className;
4508
-
4509
- // src/input/input-inner-input.tsx
4510
- var import_jsx_runtime8 = require("react/jsx-runtime");
4511
- var className2 = `k-input-inner`;
4512
- var states7 = [];
4513
- var options7 = {};
4514
- var defaultProps7 = {
4515
- type: "text",
4516
- autocomplete: "off",
4517
- value: "",
4518
- placeholder: ""
4395
+ var defaultProps5 = {
4396
+ size: Size.medium,
4397
+ rounded: Roundness.medium,
4398
+ fillMode: FillMode.solid,
4399
+ themeColor: ThemeColor.base,
4400
+ showArrow: false,
4401
+ arrowIconName: "caret-alt-down"
4519
4402
  };
4520
- var InputInnerInput = (props) => {
4403
+ var Button = (props) => {
4521
4404
  const {
4522
- value = defaultProps7.value,
4523
- type = defaultProps7.type,
4524
- placeholder = defaultProps7.placeholder,
4525
- autocomplete = defaultProps7.autocomplete,
4405
+ size = defaultProps5.size,
4406
+ rounded = defaultProps5.rounded,
4407
+ fillMode = defaultProps5.fillMode,
4408
+ themeColor = defaultProps5.themeColor,
4409
+ hover,
4410
+ focus,
4411
+ active,
4412
+ selected,
4413
+ disabled,
4414
+ icon,
4415
+ text,
4416
+ iconClassName,
4417
+ showArrow = defaultProps5.showArrow,
4418
+ arrowIconName = defaultProps5.arrowIconName,
4526
4419
  ...other
4527
4420
  } = props;
4528
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4529
- "input",
4421
+ const hasIcon = icon !== void 0;
4422
+ const hasChildren = props.children !== void 0;
4423
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
4424
+ "button",
4530
4425
  {
4531
4426
  ...other,
4532
- type,
4533
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4534
- placeholder,
4535
- autoComplete: autocomplete,
4536
- defaultValue: value
4427
+ className: classNames(
4428
+ props.className,
4429
+ BUTTON_CLASSNAME,
4430
+ optionClassNames(BUTTON_CLASSNAME, {
4431
+ size,
4432
+ rounded,
4433
+ fillMode,
4434
+ themeColor
4435
+ }),
4436
+ stateClassNames(BUTTON_CLASSNAME, {
4437
+ hover,
4438
+ focus,
4439
+ active,
4440
+ disabled,
4441
+ selected
4442
+ }),
4443
+ {
4444
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4445
+ }
4446
+ ),
4447
+ children: [
4448
+ icon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
4449
+ Icon,
4450
+ {
4451
+ className: classNames(iconClassName, "k-button-icon"),
4452
+ icon
4453
+ }
4454
+ ),
4455
+ text ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
4456
+ text && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-button-text", children: text }),
4457
+ props.children
4458
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-button-text", children: props.children }),
4459
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon: arrowIconName }) })
4460
+ ]
4537
4461
  }
4538
4462
  );
4539
4463
  };
4540
- InputInnerInput.states = states7;
4541
- InputInnerInput.options = options7;
4542
- InputInnerInput.className = className2;
4464
+ Button.states = states5;
4465
+ Button.options = options5;
4466
+ Button.className = BUTTON_CLASSNAME;
4467
+ Button.defaultProps = defaultProps5;
4543
4468
 
4544
- // src/input/input-inner-span.tsx
4469
+ // src/button/templates/icon-button.tsx
4470
+ var import_jsx_runtime6 = require("react/jsx-runtime");
4471
+
4472
+ // src/button/templates/icon-text-button.tsx
4473
+ var import_jsx_runtime7 = require("react/jsx-runtime");
4474
+
4475
+ // src/button/templates/text-button.tsx
4476
+ var import_jsx_runtime8 = require("react/jsx-runtime");
4477
+
4478
+ // src/window/window.spec.tsx
4545
4479
  var import_jsx_runtime9 = require("react/jsx-runtime");
4546
- var className3 = `k-input-inner`;
4480
+ var WINDOW_CLASSNAME = `k-window`;
4481
+ var states6 = [];
4482
+ var options6 = {
4483
+ themeColor: [
4484
+ ThemeColor.primary,
4485
+ ThemeColor.light,
4486
+ ThemeColor.dark
4487
+ ]
4488
+ };
4489
+ var defaultProps6 = {};
4490
+ var Window = (props) => {
4491
+ const {
4492
+ title,
4493
+ actions,
4494
+ minimized,
4495
+ themeColor,
4496
+ actionButtons,
4497
+ actionButtonsAlign,
4498
+ ...other
4499
+ } = props;
4500
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4501
+ "div",
4502
+ {
4503
+ ...other,
4504
+ className: classNames(
4505
+ props.className,
4506
+ WINDOW_CLASSNAME,
4507
+ optionClassNames(WINDOW_CLASSNAME, { themeColor }),
4508
+ {
4509
+ [`${WINDOW_CLASSNAME}-minimized`]: minimized
4510
+ }
4511
+ ),
4512
+ children: [
4513
+ (title !== void 0 || actions) && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "k-window-titlebar", children: [
4514
+ title !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-window-title", children: title }),
4515
+ actions && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "k-window-titlebar-actions", children: actions.map(
4516
+ (actionName) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Button, { icon: actionName, fillMode: "flat", className: "k-window-titlebar-action" }, actionName)
4517
+ ) }) })
4518
+ ] }),
4519
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: classNames(
4520
+ "k-window-content",
4521
+ {
4522
+ "k-hidden": minimized
4523
+ }
4524
+ ), children: props.children }),
4525
+ actionButtons && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
4526
+ ]
4527
+ }
4528
+ );
4529
+ };
4530
+ Window.states = states6;
4531
+ Window.options = options6;
4532
+ Window.className = WINDOW_CLASSNAME;
4533
+ Window.defaultProps = defaultProps6;
4534
+
4535
+ // src/form/form-field.tsx
4536
+ var import_jsx_runtime10 = require("react/jsx-runtime");
4537
+ var FORMFIELD_CLASSNAME = "k-form-field";
4538
+ var states7 = [
4539
+ States.disabled
4540
+ ];
4541
+ var FormField = (props) => {
4542
+ const {
4543
+ label,
4544
+ orientation,
4545
+ optional,
4546
+ editor,
4547
+ hint,
4548
+ error,
4549
+ info,
4550
+ disabled,
4551
+ dir,
4552
+ colSpan
4553
+ } = props;
4554
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4555
+ "div",
4556
+ {
4557
+ className: classNames(
4558
+ FORMFIELD_CLASSNAME,
4559
+ props.className,
4560
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled }),
4561
+ {
4562
+ [`k-col-span-${colSpan}`]: colSpan
4563
+ }
4564
+ ),
4565
+ dir,
4566
+ children: [
4567
+ label && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("label", { className: classNames(
4568
+ "k-label",
4569
+ "k-form-label"
4570
+ ), children: [
4571
+ label,
4572
+ optional && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
4573
+ info && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "k-field-info", children: "(field info)" })
4574
+ ] }),
4575
+ orientation === "horizontal" && !label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "k-label k-form-label k-label-empty" }),
4576
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "k-form-field-wrap", children: [
4577
+ editor,
4578
+ hint && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-form-hint", children: hint }),
4579
+ error && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "k-form-error", children: error })
4580
+ ] })
4581
+ ]
4582
+ }
4583
+ );
4584
+ };
4585
+ FormField.className = FORMFIELD_CLASSNAME;
4586
+
4587
+ // src/form/fieldset.tsx
4588
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4589
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
4590
+ var Fieldset = (props) => {
4591
+ const {
4592
+ legend,
4593
+ layout,
4594
+ cols,
4595
+ gapX,
4596
+ gapY
4597
+ } = props;
4598
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
4599
+ legend && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("legend", { className: "k-form-legend", children: legend }),
4600
+ layout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: classNames(
4601
+ "k-form-layout",
4602
+ "k-d-grid",
4603
+ {
4604
+ [`k-grid-cols-${cols}`]: cols,
4605
+ [`k-gap-x-${gapX}`]: gapX,
4606
+ [`k-gap-y-${gapY}`]: gapY
4607
+ }
4608
+ ), children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, { children: props.children })
4609
+ ] });
4610
+ };
4611
+ Fieldset.className = FIELDSET_CLASSNAME;
4612
+
4613
+ // src/form/form.spec.tsx
4614
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4615
+ var import_react = require("react");
4616
+ var FORM_CLASSNAME = "k-form";
4547
4617
  var states8 = [];
4548
- var options8 = {};
4618
+ var options7 = {
4619
+ size: [Size.small, Size.medium, Size.large]
4620
+ };
4621
+ var defaultProps7 = {
4622
+ size: Size.medium,
4623
+ layout: "basic",
4624
+ tag: "form"
4625
+ };
4626
+ var Form = (props) => {
4627
+ const {
4628
+ size = defaultProps7.size,
4629
+ orientation,
4630
+ layout = defaultProps7.layout,
4631
+ formButtons,
4632
+ cols,
4633
+ gapX,
4634
+ gapY,
4635
+ tag = defaultProps7.tag,
4636
+ children
4637
+ } = props;
4638
+ const Parent = ({ tag: tag2, className: className13, children: children2 }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("form", { className: className13, children: children2 }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: className13, children: children2 });
4639
+ const formChildren = [];
4640
+ if (children) {
4641
+ if (Array.isArray(children)) {
4642
+ children.map((child, index) => {
4643
+ if (child.type === FormField) {
4644
+ formChildren.push(
4645
+ /* @__PURE__ */ (0, import_react.createElement)(FormField, { ...child.props, orientation, key: index })
4646
+ );
4647
+ } else {
4648
+ formChildren.push(child);
4649
+ }
4650
+ });
4651
+ } else if (children.type === FormField) {
4652
+ formChildren.push(/* @__PURE__ */ (0, import_react.createElement)(FormField, { ...children.props, orientation, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
4653
+ } else {
4654
+ children.type === Fieldset && formChildren.push(/* @__PURE__ */ (0, import_react.createElement)(Fieldset, { ...children.props, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
4655
+ }
4656
+ }
4657
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Parent, { tag, className: classNames(
4658
+ props.className,
4659
+ FORM_CLASSNAME,
4660
+ optionClassNames(FORM_CLASSNAME, {
4661
+ size
4662
+ }),
4663
+ {
4664
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
4665
+ }
4666
+ ), children: [
4667
+ layout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: classNames(
4668
+ "k-form-layout",
4669
+ "k-d-grid",
4670
+ {
4671
+ [`k-grid-cols-${cols}`]: cols,
4672
+ [`k-gap-x-${gapX}`]: gapX,
4673
+ [`k-gap-y-${gapY}`]: gapY
4674
+ }
4675
+ ), children: formChildren }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: formChildren }),
4676
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "k-form-buttons", children: formButtons })
4677
+ ] });
4678
+ };
4679
+ Form.states = states8;
4680
+ Form.options = options7;
4681
+ Form.className = FORM_CLASSNAME;
4682
+ Form.defaultProps = defaultProps7;
4683
+
4684
+ // src/input/input.spec.tsx
4685
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4686
+ var INPUT_CLASSNAME = `k-input`;
4687
+ var states9 = [
4688
+ States.hover,
4689
+ States.focus,
4690
+ States.valid,
4691
+ States.invalid,
4692
+ States.required,
4693
+ States.disabled,
4694
+ States.loading,
4695
+ States.readonly
4696
+ ];
4697
+ var options8 = {
4698
+ size: [Size.small, Size.medium, Size.large],
4699
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4700
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4701
+ };
4702
+ var defaultProps8 = {
4703
+ size: Size.medium,
4704
+ rounded: Size.medium,
4705
+ fillMode: FillMode.solid
4706
+ };
4707
+ var Input = (props) => {
4708
+ const {
4709
+ hover,
4710
+ focus,
4711
+ disabled,
4712
+ invalid,
4713
+ valid,
4714
+ loading,
4715
+ readonly,
4716
+ size = defaultProps8.size,
4717
+ rounded = defaultProps8.rounded,
4718
+ fillMode = defaultProps8.fillMode,
4719
+ ...other
4720
+ } = props;
4721
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4722
+ "span",
4723
+ {
4724
+ ...other,
4725
+ className: classNames(
4726
+ props.className,
4727
+ INPUT_CLASSNAME,
4728
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4729
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4730
+ )
4731
+ }
4732
+ );
4733
+ };
4734
+ Input.states = states9;
4735
+ Input.options = options8;
4736
+ Input.className = INPUT_CLASSNAME;
4737
+ Input.defaultProps = defaultProps8;
4738
+
4739
+ // src/input/picker.spec.tsx
4740
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4741
+ var PICKER_CLASSNAME = `k-picker`;
4742
+ var pickerStates = [
4743
+ States.hover,
4744
+ States.focus,
4745
+ States.valid,
4746
+ States.invalid,
4747
+ States.required,
4748
+ States.disabled,
4749
+ States.loading,
4750
+ States.readonly
4751
+ ];
4752
+ var pickerOptions = {
4753
+ size: [Size.small, Size.medium, Size.large],
4754
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4755
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4756
+ };
4757
+ var defaultProps9 = {
4758
+ size: Size.medium,
4759
+ rounded: Roundness.medium,
4760
+ fillMode: FillMode.solid
4761
+ };
4762
+ var Picker = (props) => {
4763
+ const {
4764
+ hover,
4765
+ focus,
4766
+ disabled,
4767
+ invalid,
4768
+ valid,
4769
+ loading,
4770
+ readonly,
4771
+ size = defaultProps9.size,
4772
+ rounded = defaultProps9.rounded,
4773
+ fillMode = defaultProps9.fillMode,
4774
+ ...other
4775
+ } = props;
4776
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4777
+ "span",
4778
+ {
4779
+ ...other,
4780
+ className: classNames(
4781
+ props.className,
4782
+ PICKER_CLASSNAME,
4783
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4784
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4785
+ ),
4786
+ children: props.children
4787
+ }
4788
+ );
4789
+ };
4790
+ Picker.states = pickerStates;
4791
+ Picker.options = pickerOptions;
4792
+ Picker.className = PICKER_CLASSNAME;
4793
+ Picker.defaultProps = defaultProps9;
4794
+
4795
+ // src/input/input-clear-value.tsx
4796
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4797
+ var className = `k-clear-value`;
4798
+ var states10 = [
4799
+ States.disabled,
4800
+ States.loading,
4801
+ States.readonly
4802
+ ];
4803
+ var options9 = {};
4804
+ var InputClearValue = (props) => {
4805
+ const {
4806
+ disabled,
4807
+ loading,
4808
+ readonly,
4809
+ value
4810
+ } = props;
4811
+ if (disabled || readonly || loading || !value) {
4812
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {});
4813
+ }
4814
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { icon: "x" }) });
4815
+ };
4816
+ InputClearValue.states = states10;
4817
+ InputClearValue.options = options9;
4818
+ InputClearValue.className = className;
4819
+
4820
+ // src/input/input-inner-input.tsx
4821
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4822
+ var className2 = `k-input-inner`;
4823
+ var states11 = [];
4824
+ var options10 = {};
4825
+ var defaultProps10 = {
4826
+ type: "text",
4827
+ autocomplete: "off",
4828
+ value: "",
4829
+ placeholder: ""
4830
+ };
4831
+ var InputInnerInput = (props) => {
4832
+ const {
4833
+ value = defaultProps10.value,
4834
+ type = defaultProps10.type,
4835
+ placeholder = defaultProps10.placeholder,
4836
+ autocomplete = defaultProps10.autocomplete,
4837
+ ...other
4838
+ } = props;
4839
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4840
+ "input",
4841
+ {
4842
+ ...other,
4843
+ type,
4844
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
4845
+ placeholder,
4846
+ autoComplete: autocomplete,
4847
+ defaultValue: value
4848
+ }
4849
+ );
4850
+ };
4851
+ InputInnerInput.states = states11;
4852
+ InputInnerInput.options = options10;
4853
+ InputInnerInput.className = className2;
4854
+
4855
+ // src/input/input-inner-span.tsx
4856
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4857
+ var className3 = `k-input-inner`;
4858
+ var states12 = [];
4859
+ var options11 = {};
4549
4860
  var InputInnerSpan = (props) => {
4550
4861
  const {
4551
4862
  value,
@@ -4555,41 +4866,41 @@ var InputInnerSpan = (props) => {
4555
4866
  valueIconName,
4556
4867
  ...other
4557
4868
  } = props;
4558
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4869
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4559
4870
  "span",
4560
4871
  {
4561
4872
  ...other,
4562
4873
  className: classNames(props.className, className3, optionClassNames(className3, props)),
4563
4874
  children: [
4564
4875
  valueIcon,
4565
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4876
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4566
4877
  showValue && !value && placeholder,
4567
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-input-value-text", children: value })
4878
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-input-value-text", children: value })
4568
4879
  ]
4569
4880
  }
4570
4881
  );
4571
4882
  };
4572
- InputInnerSpan.states = states8;
4573
- InputInnerSpan.options = options8;
4883
+ InputInnerSpan.states = states12;
4884
+ InputInnerSpan.options = options11;
4574
4885
  InputInnerSpan.className = className3;
4575
4886
 
4576
4887
  // src/input/input-inner-textarea.tsx
4577
- var import_jsx_runtime10 = require("react/jsx-runtime");
4578
- var defaultProps8 = {
4888
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4889
+ var defaultProps11 = {
4579
4890
  value: "",
4580
4891
  placeholder: ""
4581
4892
  };
4582
4893
  var className4 = `k-input-inner`;
4583
- var states9 = [];
4584
- var options9 = {};
4894
+ var states13 = [];
4895
+ var options12 = {};
4585
4896
  var InputInnerTextarea = (props) => {
4586
4897
  const {
4587
- value = defaultProps8.value,
4588
- placeholder = defaultProps8.placeholder,
4898
+ value = defaultProps11.value,
4899
+ placeholder = defaultProps11.placeholder,
4589
4900
  rows,
4590
4901
  ...other
4591
4902
  } = props;
4592
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4903
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4593
4904
  "textarea",
4594
4905
  {
4595
4906
  ...other,
@@ -4600,14 +4911,14 @@ var InputInnerTextarea = (props) => {
4600
4911
  }
4601
4912
  );
4602
4913
  };
4603
- InputInnerTextarea.states = states9;
4604
- InputInnerTextarea.options = options9;
4914
+ InputInnerTextarea.states = states13;
4915
+ InputInnerTextarea.options = options12;
4605
4916
  InputInnerTextarea.className = className4;
4606
4917
 
4607
4918
  // src/input/input-loading-icon.tsx
4608
- var import_jsx_runtime11 = require("react/jsx-runtime");
4919
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4609
4920
  var className5 = `k-input-loading-icon`;
4610
- var states10 = [
4921
+ var states14 = [
4611
4922
  States.disabled,
4612
4923
  States.loading
4613
4924
  ];
@@ -4617,21 +4928,21 @@ var InputLoadingIcon = (props) => {
4617
4928
  loading
4618
4929
  } = props;
4619
4930
  if (disabled || !loading) {
4620
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
4931
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {});
4621
4932
  }
4622
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4933
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4623
4934
  };
4624
4935
 
4625
4936
  // src/input/input-validation-icon.tsx
4626
- var import_jsx_runtime12 = require("react/jsx-runtime");
4937
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4627
4938
  var className6 = `k-input-validation-icon`;
4628
- var states11 = [
4939
+ var states15 = [
4629
4940
  States.valid,
4630
4941
  States.invalid,
4631
4942
  States.disabled,
4632
4943
  States.loading
4633
4944
  ];
4634
- var options10 = {};
4945
+ var options13 = {};
4635
4946
  var InputValidationIcon = (props) => {
4636
4947
  const {
4637
4948
  valid,
@@ -4642,41 +4953,41 @@ var InputValidationIcon = (props) => {
4642
4953
  const iconName = invalid ? "exclamation-circle" : "check";
4643
4954
  const renderValidationIcon = Boolean(valid || invalid);
4644
4955
  if (disabled || loading || !renderValidationIcon) {
4645
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
4956
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {});
4646
4957
  }
4647
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: classNames(className6), icon: iconName });
4958
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { className: classNames(className6), icon: iconName });
4648
4959
  };
4649
- InputValidationIcon.states = states11;
4650
- InputValidationIcon.options = options10;
4960
+ InputValidationIcon.states = states15;
4961
+ InputValidationIcon.options = options13;
4651
4962
  InputValidationIcon.className = className6;
4652
4963
 
4653
4964
  // src/input/input-prefix.tsx
4654
- var import_jsx_runtime13 = require("react/jsx-runtime");
4965
+ var import_jsx_runtime21 = require("react/jsx-runtime");
4655
4966
  var className7 = `k-input-prefix`;
4656
4967
  var InputPrefix = (props) => {
4657
4968
  if (!props.children) {
4658
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {});
4969
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {});
4659
4970
  }
4660
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4971
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4661
4972
  };
4662
4973
 
4663
4974
  // src/input/input-suffix.tsx
4664
- var import_jsx_runtime14 = require("react/jsx-runtime");
4975
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4665
4976
  var className8 = `k-input-suffix`;
4666
4977
  var InputSuffix = (props) => {
4667
4978
  if (!props.children) {
4668
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {});
4979
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, {});
4669
4980
  }
4670
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4981
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4671
4982
  };
4672
4983
 
4673
4984
  // src/input/input-separator.tsx
4674
- var import_jsx_runtime15 = require("react/jsx-runtime");
4985
+ var import_jsx_runtime23 = require("react/jsx-runtime");
4675
4986
 
4676
4987
  // src/textbox/textbox.spec.tsx
4677
- var import_jsx_runtime16 = require("react/jsx-runtime");
4988
+ var import_jsx_runtime24 = require("react/jsx-runtime");
4678
4989
  var TEXTBOX_CLASSNAME = `k-textbox`;
4679
- var states12 = [
4990
+ var states16 = [
4680
4991
  States.hover,
4681
4992
  States.focus,
4682
4993
  States.valid,
@@ -4686,12 +4997,12 @@ var states12 = [
4686
4997
  States.loading,
4687
4998
  States.readonly
4688
4999
  ];
4689
- var options11 = {
5000
+ var options14 = {
4690
5001
  size: [Size.small, Size.medium, Size.large],
4691
5002
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4692
5003
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4693
5004
  };
4694
- var defaultProps9 = {
5005
+ var defaultProps12 = {
4695
5006
  showClearButton: true,
4696
5007
  size: Input.defaultProps.size,
4697
5008
  rounded: Input.defaultProps.rounded,
@@ -4714,10 +5025,10 @@ var Textbox = (props) => {
4714
5025
  loading,
4715
5026
  disabled,
4716
5027
  readonly,
4717
- showClearButton = defaultProps9.showClearButton,
5028
+ showClearButton = defaultProps12.showClearButton,
4718
5029
  ...other
4719
5030
  } = props;
4720
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
5031
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
4721
5032
  Input,
4722
5033
  {
4723
5034
  ...other,
@@ -4734,9 +5045,9 @@ var Textbox = (props) => {
4734
5045
  readonly,
4735
5046
  className: classNames(props.className, TEXTBOX_CLASSNAME),
4736
5047
  children: [
4737
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputPrefix, { children: prefix }),
4738
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputInnerInput, { placeholder, value }),
4739
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5048
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputPrefix, { children: prefix }),
5049
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputInnerInput, { placeholder, value }),
5050
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4740
5051
  InputValidationIcon,
4741
5052
  {
4742
5053
  valid,
@@ -4745,14 +5056,14 @@ var Textbox = (props) => {
4745
5056
  disabled
4746
5057
  }
4747
5058
  ),
4748
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5059
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4749
5060
  InputLoadingIcon,
4750
5061
  {
4751
5062
  loading,
4752
5063
  disabled
4753
5064
  }
4754
5065
  ),
4755
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
5066
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4756
5067
  InputClearValue,
4757
5068
  {
4758
5069
  loading,
@@ -4761,142 +5072,31 @@ var Textbox = (props) => {
4761
5072
  value
4762
5073
  }
4763
5074
  ),
4764
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputSuffix, { children: suffix })
4765
- ]
4766
- }
4767
- );
4768
- };
4769
- Textbox.states = states12;
4770
- Textbox.options = options11;
4771
- Textbox.className = TEXTBOX_CLASSNAME;
4772
- Textbox.defaultProps = defaultProps9;
4773
-
4774
- // src/textbox/templates/textbox-normal.tsx
4775
- var import_jsx_runtime17 = require("react/jsx-runtime");
4776
-
4777
- // src/button/button.spec.tsx
4778
- var import_jsx_runtime18 = require("react/jsx-runtime");
4779
- var BUTTON_CLASSNAME = `k-button`;
4780
- var states13 = [
4781
- States.hover,
4782
- States.focus,
4783
- States.active,
4784
- States.selected,
4785
- States.disabled
4786
- ];
4787
- var options12 = {
4788
- size: [Size.small, Size.medium, Size.large],
4789
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4790
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4791
- themeColor: [
4792
- ThemeColor.base,
4793
- ThemeColor.primary,
4794
- ThemeColor.secondary,
4795
- ThemeColor.tertiary,
4796
- ThemeColor.success,
4797
- ThemeColor.warning,
4798
- ThemeColor.error,
4799
- ThemeColor.info,
4800
- ThemeColor.light,
4801
- ThemeColor.dark,
4802
- ThemeColor.inverse
4803
- ]
4804
- };
4805
- var defaultProps10 = {
4806
- size: Size.medium,
4807
- rounded: Roundness.medium,
4808
- fillMode: FillMode.solid,
4809
- themeColor: ThemeColor.base,
4810
- showArrow: false,
4811
- arrowIconName: "caret-alt-down"
4812
- };
4813
- var Button = (props) => {
4814
- const {
4815
- size = defaultProps10.size,
4816
- rounded = defaultProps10.rounded,
4817
- fillMode = defaultProps10.fillMode,
4818
- themeColor = defaultProps10.themeColor,
4819
- hover,
4820
- focus,
4821
- active,
4822
- selected,
4823
- disabled,
4824
- icon,
4825
- text,
4826
- iconClassName,
4827
- showArrow = defaultProps10.showArrow,
4828
- arrowIconName = defaultProps10.arrowIconName,
4829
- ...other
4830
- } = props;
4831
- const hasIcon = icon !== void 0;
4832
- const hasChildren = props.children !== void 0;
4833
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4834
- "button",
4835
- {
4836
- ...other,
4837
- className: classNames(
4838
- props.className,
4839
- BUTTON_CLASSNAME,
4840
- optionClassNames(BUTTON_CLASSNAME, {
4841
- size,
4842
- rounded,
4843
- fillMode,
4844
- themeColor
4845
- }),
4846
- stateClassNames(BUTTON_CLASSNAME, {
4847
- hover,
4848
- focus,
4849
- active,
4850
- disabled,
4851
- selected
4852
- }),
4853
- {
4854
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4855
- }
4856
- ),
4857
- children: [
4858
- icon && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4859
- Icon,
4860
- {
4861
- className: classNames(iconClassName, "k-button-icon"),
4862
- icon
4863
- }
4864
- ),
4865
- text ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
4866
- text && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "k-button-text", children: text }),
4867
- props.children
4868
- ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "k-button-text", children: props.children }),
4869
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { icon: arrowIconName }) })
5075
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputSuffix, { children: suffix })
4870
5076
  ]
4871
5077
  }
4872
5078
  );
4873
5079
  };
4874
- Button.states = states13;
4875
- Button.options = options12;
4876
- Button.className = BUTTON_CLASSNAME;
4877
- Button.defaultProps = defaultProps10;
4878
-
4879
- // src/button/templates/icon-button.tsx
4880
- var import_jsx_runtime19 = require("react/jsx-runtime");
4881
-
4882
- // src/button/templates/icon-text-button.tsx
4883
- var import_jsx_runtime20 = require("react/jsx-runtime");
5080
+ Textbox.states = states16;
5081
+ Textbox.options = options14;
5082
+ Textbox.className = TEXTBOX_CLASSNAME;
5083
+ Textbox.defaultProps = defaultProps12;
4884
5084
 
4885
- // src/button/templates/text-button.tsx
4886
- var import_jsx_runtime21 = require("react/jsx-runtime");
5085
+ // src/textbox/templates/textbox-normal.tsx
5086
+ var import_jsx_runtime25 = require("react/jsx-runtime");
4887
5087
 
4888
5088
  // src/textbox/templates/textbox-prefix.tsx
4889
- var import_jsx_runtime22 = require("react/jsx-runtime");
5089
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4890
5090
 
4891
5091
  // src/textbox/templates/textbox-suffix.tsx
4892
- var import_jsx_runtime23 = require("react/jsx-runtime");
5092
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4893
5093
 
4894
5094
  // src/animation-container/animation-container.spec.tsx
4895
- var import_jsx_runtime24 = require("react/jsx-runtime");
5095
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4896
5096
  var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4897
- var states14 = [];
4898
- var options13 = {};
4899
- var defaultProps11 = {
5097
+ var states17 = [];
5098
+ var options15 = {};
5099
+ var defaultProps13 = {
4900
5100
  positionMode: "absolute"
4901
5101
  };
4902
5102
  var AnimationContainer = (props) => {
@@ -4906,7 +5106,7 @@ var AnimationContainer = (props) => {
4906
5106
  offset,
4907
5107
  ...other
4908
5108
  } = props;
4909
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5109
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4910
5110
  "div",
4911
5111
  {
4912
5112
  ...other,
@@ -4918,21 +5118,21 @@ var AnimationContainer = (props) => {
4918
5118
  ["k-animation-container-fixed"]: positionMode === "fixed"
4919
5119
  }
4920
5120
  ),
4921
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
5121
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4922
5122
  }
4923
5123
  );
4924
5124
  };
4925
- AnimationContainer.states = states14;
4926
- AnimationContainer.options = options13;
5125
+ AnimationContainer.states = states17;
5126
+ AnimationContainer.options = options15;
4927
5127
  AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
4928
- AnimationContainer.defaultProps = defaultProps11;
5128
+ AnimationContainer.defaultProps = defaultProps13;
4929
5129
 
4930
5130
  // src/popup/popup.spec.tsx
4931
- var import_jsx_runtime25 = require("react/jsx-runtime");
5131
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4932
5132
  var POPUP_CLASSNAME = `k-popup`;
4933
- var states15 = [];
4934
- var options14 = {};
4935
- var defaultProps12 = {
5133
+ var states18 = [];
5134
+ var options16 = {};
5135
+ var defaultProps14 = {
4936
5136
  positionMode: "absolute"
4937
5137
  };
4938
5138
  var Popup = (props) => {
@@ -4941,128 +5141,51 @@ var Popup = (props) => {
4941
5141
  positionMode,
4942
5142
  ...other
4943
5143
  } = props;
4944
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5144
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4945
5145
  AnimationContainer,
4946
5146
  {
4947
5147
  positionMode,
4948
5148
  offset,
4949
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5149
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4950
5150
  }
4951
5151
  );
4952
5152
  };
4953
- Popup.states = states15;
4954
- Popup.options = options14;
5153
+ Popup.states = states18;
5154
+ Popup.options = options16;
4955
5155
  Popup.className = POPUP_CLASSNAME;
4956
- Popup.defaultProps = defaultProps12;
4957
-
4958
- // src/action-sheet/action-sheet.spec.tsx
4959
- var import_jsx_runtime26 = require("react/jsx-runtime");
4960
- var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
4961
- var states16 = [];
4962
- var options15 = {};
4963
- var defaultProps13 = {
4964
- side: "bottom",
4965
- fullscreen: false,
4966
- adaptive: false,
4967
- overlay: true
4968
- };
4969
- var ActionSheet = (props) => {
4970
- const {
4971
- children,
4972
- title,
4973
- header,
4974
- footer,
4975
- actions,
4976
- side = defaultProps13.side,
4977
- fullscreen = defaultProps13.fullscreen,
4978
- adaptive = defaultProps13.adaptive,
4979
- overlay = defaultProps13.overlay,
4980
- ...other
4981
- } = props;
4982
- const _ActionSheetHeader = title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
4983
- const _ActionSheetFooter = actions ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
4984
- const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
4985
- switch (child.type) {
4986
- case ActionSheetHeader:
4987
- case ActionSheetFooter:
4988
- return false;
4989
- default:
4990
- return true;
4991
- }
4992
- return true;
4993
- }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, {});
4994
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "k-actionsheet-container", children: [
4995
- overlay && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "k-overlay" }),
4996
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4997
- AnimationContainer,
4998
- {
4999
- animationStyle: {
5000
- [`${fullscreen === true ? "top" : side}`]: 0,
5001
- [`${fullscreen === true ? "width" : null}`]: "100%",
5002
- [`${fullscreen === true ? "height" : null}`]: "100%",
5003
- [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
5004
- [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
5005
- },
5006
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
5007
- "div",
5008
- {
5009
- ...other,
5010
- className: classNames(
5011
- props.className,
5012
- ACTIONSHEET_CLASSNAME,
5013
- {
5014
- [`k-actionsheet-${side}`]: fullscreen === false,
5015
- "k-actionsheet-fullscreen": fullscreen === true,
5016
- "k-adaptive-actionsheet": adaptive
5017
- }
5018
- ),
5019
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
5020
- _ActionSheetHeader,
5021
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: classNames(
5022
- "k-actionsheet-content",
5023
- {
5024
- "!k-overflow-hidden": adaptive
5025
- }
5026
- ), children: _ActionSheetContent }),
5027
- _ActionSheetFooter
5028
- ] })
5029
- }
5030
- )
5031
- }
5032
- )
5033
- ] });
5034
- };
5035
- ActionSheet.states = states16;
5036
- ActionSheet.options = options15;
5037
- ActionSheet.className = ACTIONSHEET_CLASSNAME;
5038
- ActionSheet.defaultProps = defaultProps13;
5156
+ Popup.defaultProps = defaultProps14;
5039
5157
 
5040
- // src/searchbox/searchbox.spec.tsx
5041
- var import_jsx_runtime27 = require("react/jsx-runtime");
5042
- var SEARCHBOX_CLASSNAME = `k-searchbox`;
5043
- var states17 = [
5158
+ // src/dropdownlist/dropdownlist.spec.tsx
5159
+ var import_jsx_runtime30 = require("react/jsx-runtime");
5160
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
5161
+ var states19 = [
5044
5162
  States.hover,
5045
5163
  States.focus,
5046
5164
  States.valid,
5047
5165
  States.invalid,
5048
5166
  States.required,
5049
5167
  States.disabled,
5050
- States.loading
5168
+ States.loading,
5169
+ States.readonly
5051
5170
  ];
5052
- var options16 = {
5171
+ var options17 = {
5053
5172
  size: [Size.small, Size.medium, Size.large],
5054
5173
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5055
5174
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5056
5175
  };
5057
- var defaultProps14 = {
5058
- showIcon: true,
5059
- icon: "search",
5060
- size: Input.defaultProps.size,
5061
- rounded: Input.defaultProps.rounded,
5062
- fillMode: Input.defaultProps.fillMode
5176
+ var defaultProps15 = {
5177
+ showValue: true,
5178
+ arrowIconName: "caret-alt-down",
5179
+ size: Size.medium,
5180
+ rounded: Roundness.medium,
5181
+ fillMode: FillMode.solid
5063
5182
  };
5064
- var Searchbox = (props) => {
5183
+ var DropdownList = (props) => {
5065
5184
  const {
5185
+ valueIconName,
5186
+ arrowIconName = defaultProps15.arrowIconName,
5187
+ prefix,
5188
+ suffix,
5066
5189
  value,
5067
5190
  placeholder,
5068
5191
  size,
@@ -5075,184 +5198,94 @@ var Searchbox = (props) => {
5075
5198
  required,
5076
5199
  loading,
5077
5200
  disabled,
5078
- showIcon = defaultProps14.showIcon,
5079
- icon = defaultProps14.icon,
5080
- ...other
5081
- } = props;
5082
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
5083
- Input,
5084
- {
5085
- ...other,
5086
- size,
5087
- rounded,
5088
- fillMode,
5089
- hover,
5090
- focus,
5091
- valid,
5092
- invalid,
5093
- required,
5094
- loading,
5095
- disabled,
5096
- className: classNames(props.className, SEARCHBOX_CLASSNAME),
5097
- children: [
5098
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { className: "k-input-icon", icon }),
5099
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(InputInnerInput, { placeholder, value }),
5100
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(InputLoadingIcon, { ...props }),
5101
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(InputValidationIcon, { ...props }),
5102
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(InputClearValue, { ...props })
5103
- ]
5104
- }
5105
- );
5106
- };
5107
- Searchbox.states = states17;
5108
- Searchbox.options = options16;
5109
- Searchbox.className = SEARCHBOX_CLASSNAME;
5110
- Searchbox.defaultProps = defaultProps14;
5111
-
5112
- // src/searchbox/templates/searchbox-normal.tsx
5113
- var import_jsx_runtime28 = require("react/jsx-runtime");
5114
-
5115
- // src/action-sheet/actionsheet-header.tsx
5116
- var import_jsx_runtime29 = require("react/jsx-runtime");
5117
- var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5118
- var ActionSheetHeader = (props) => {
5119
- const {
5120
- title,
5121
- subTitle,
5122
- actions,
5123
- filter,
5124
- ...other
5125
- } = props;
5126
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
5127
- "div",
5128
- {
5129
- ...other,
5130
- className: classNames(
5131
- props.className,
5132
- ACTIONSHEETHEADER_CLASSNAME
5133
- ),
5134
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
5135
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5136
- !props.children && (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "k-actionsheet-title", children: [
5137
- title !== "" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-text-center", children: title }),
5138
- subTitle !== "" && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5139
- ] }) }),
5140
- props.children && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-actionsheet-title", children: props.children }),
5141
- actions && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5142
- ] }),
5143
- filter && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5144
- ] })
5145
- }
5146
- );
5147
- };
5148
-
5149
- // src/action-buttons/action-buttons.spec.tsx
5150
- var import_jsx_runtime30 = require("react/jsx-runtime");
5151
- var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5152
- var states18 = [];
5153
- var options17 = {};
5154
- var defaultProps15 = {
5155
- alignment: "start",
5156
- orientation: "horizontal"
5157
- };
5158
- var ActionButtons = (props) => {
5159
- const {
5160
- alignment = defaultProps15.alignment,
5161
- orientation = defaultProps15.orientation,
5162
- ...other
5163
- } = props;
5164
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5165
- "div",
5166
- {
5167
- ...other,
5168
- className: classNames(
5169
- ACTIONBUTTONS_CLASSNAME,
5170
- {
5171
- [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5172
- [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5173
- },
5174
- props.className
5175
- ),
5176
- children: props.children
5177
- }
5178
- );
5179
- };
5180
- ActionButtons.states = states18;
5181
- ActionButtons.options = options17;
5182
- ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5183
- ActionButtons.defaultProps = defaultProps15;
5184
- var action_buttons_spec_default = ActionButtons;
5185
-
5186
- // src/action-sheet/actionsheet-footer.tsx
5187
- var import_jsx_runtime31 = require("react/jsx-runtime");
5188
- var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5189
- var ActionSheetFooter = (props) => {
5190
- const {
5191
- actions,
5201
+ readonly,
5202
+ showValue = defaultProps15.showValue,
5203
+ popup,
5204
+ opened,
5192
5205
  ...other
5193
5206
  } = props;
5194
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5195
- action_buttons_spec_default,
5196
- {
5197
- ...other,
5198
- className: classNames(
5199
- props.className,
5200
- ACTIONSHEETFOOTER_CLASSNAME
5201
- ),
5202
- alignment: "stretched",
5203
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
5204
- actions && actions.map((action, index) => {
5205
- if (action === "|") {
5206
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-separator" }, index);
5207
- }
5208
- if (action === " ") {
5209
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-spacer" }, index);
5207
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
5208
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
5209
+ Picker,
5210
+ {
5211
+ ...other,
5212
+ size,
5213
+ rounded,
5214
+ fillMode,
5215
+ hover,
5216
+ focus,
5217
+ valid,
5218
+ invalid,
5219
+ required,
5220
+ loading,
5221
+ disabled,
5222
+ readonly,
5223
+ className: classNames(
5224
+ props.className,
5225
+ DROPDOWNLIST_CLASSNAME,
5226
+ {
5227
+ "k-icon-picker": !showValue && valueIconName
5210
5228
  }
5211
- const importantFlag = action.startsWith("!");
5212
- const actionName = importantFlag ? action.substring(1) : action;
5213
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5214
- }),
5215
- !actions && props.children
5216
- ] })
5217
- }
5218
- );
5219
- };
5220
-
5221
- // src/action-sheet/actionsheet-items.tsx
5222
- var import_jsx_runtime32 = require("react/jsx-runtime");
5223
- var ActionSheetItems = (props) => {
5224
- const {
5225
- ...other
5226
- } = props;
5227
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5228
- "div",
5229
- {
5230
- ...other,
5231
- className: classNames(
5232
- props.className,
5233
- "k-list-ul"
5234
- ),
5235
- children: props.children
5236
- }
5237
- );
5229
+ ),
5230
+ children: [
5231
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InputPrefix, { children: prefix }),
5232
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5233
+ InputInnerSpan,
5234
+ {
5235
+ placeholder,
5236
+ value,
5237
+ showValue,
5238
+ valueIconName
5239
+ }
5240
+ ),
5241
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5242
+ InputValidationIcon,
5243
+ {
5244
+ valid,
5245
+ invalid,
5246
+ loading,
5247
+ disabled
5248
+ }
5249
+ ),
5250
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5251
+ InputLoadingIcon,
5252
+ {
5253
+ loading,
5254
+ disabled
5255
+ }
5256
+ ),
5257
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InputSuffix, { children: suffix }),
5258
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5259
+ Button,
5260
+ {
5261
+ className: "k-input-button",
5262
+ icon: arrowIconName,
5263
+ rounded: null,
5264
+ size: props.size,
5265
+ fillMode: props.fillMode
5266
+ }
5267
+ )
5268
+ ]
5269
+ }
5270
+ ),
5271
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
5272
+ ] });
5238
5273
  };
5274
+ DropdownList.states = states19;
5275
+ DropdownList.options = options17;
5276
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
5277
+ DropdownList.defaultProps = defaultProps15;
5239
5278
 
5240
- // src/action-sheet/actionsheet-item.tsx
5241
- var import_jsx_runtime33 = require("react/jsx-runtime");
5242
- var states19 = [
5243
- States.hover,
5244
- States.focus,
5245
- States.selected,
5246
- States.disabled
5247
- ];
5279
+ // src/dropdownlist/templates/dropdownlist-normal.tsx
5280
+ var import_jsx_runtime31 = require("react/jsx-runtime");
5248
5281
 
5249
5282
  // src/nodata/nodata.tsx
5250
- var import_jsx_runtime34 = require("react/jsx-runtime");
5283
+ var import_jsx_runtime32 = require("react/jsx-runtime");
5251
5284
  var className9 = `k-nodata`;
5252
- var NoData = (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: classNames(className9, props.className), children: props.children });
5285
+ var NoData = (props) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: classNames(className9, props.className), children: props.children });
5253
5286
 
5254
5287
  // src/list/list.spec.tsx
5255
- var import_jsx_runtime35 = require("react/jsx-runtime");
5288
+ var import_jsx_runtime33 = require("react/jsx-runtime");
5256
5289
  var LIST_CLASSNAME = `k-list`;
5257
5290
  var states20 = [];
5258
5291
  var options18 = {
@@ -5280,7 +5313,7 @@ var List = (props) => {
5280
5313
  listHeader = child.props.label;
5281
5314
  child.props.children.map((optChild, index2) => {
5282
5315
  listChildren.push(
5283
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5316
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5284
5317
  ListItem,
5285
5318
  {
5286
5319
  ...optChild.props
@@ -5296,7 +5329,7 @@ var List = (props) => {
5296
5329
  groupLabel = child.props.label;
5297
5330
  }
5298
5331
  listChildren.push(
5299
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5332
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5300
5333
  ListItem,
5301
5334
  {
5302
5335
  className: index2 === 0 ? "k-first" : "",
@@ -5308,16 +5341,16 @@ var List = (props) => {
5308
5341
  );
5309
5342
  });
5310
5343
  }
5311
- listGroup = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5344
+ listGroup = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5312
5345
  } else if (child.type === ListItem) {
5313
- listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5314
- listContent = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ListContent, { virtualization, children: listChildren });
5346
+ listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5347
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ListContent, { virtualization, children: listChildren });
5315
5348
  }
5316
5349
  });
5317
5350
  } else {
5318
- listContent = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(NoData, { children: "No data found." });
5351
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(NoData, { children: "No data found." });
5319
5352
  }
5320
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
5353
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5321
5354
  "div",
5322
5355
  {
5323
5356
  ...other,
@@ -5345,7 +5378,7 @@ List.className = LIST_CLASSNAME;
5345
5378
  List.defaultProps = defaultProps16;
5346
5379
 
5347
5380
  // src/list/list-angular.spec.tsx
5348
- var import_jsx_runtime36 = require("react/jsx-runtime");
5381
+ var import_jsx_runtime34 = require("react/jsx-runtime");
5349
5382
  var LISTANGULAR_CLASSNAME = `k-list`;
5350
5383
  var states21 = [];
5351
5384
  var options19 = {
@@ -5372,7 +5405,7 @@ var ListAngular = (props) => {
5372
5405
  listHeader = child.props.label;
5373
5406
  child.props.children.map((optChild, index2) => {
5374
5407
  listChildren.push(
5375
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5408
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5376
5409
  ListItem,
5377
5410
  {
5378
5411
  ...optChild.props
@@ -5383,7 +5416,7 @@ var ListAngular = (props) => {
5383
5416
  });
5384
5417
  } else {
5385
5418
  listChildren.push(
5386
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5419
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5387
5420
  ListGroupItem,
5388
5421
  {
5389
5422
  ...child.props,
@@ -5394,7 +5427,7 @@ var ListAngular = (props) => {
5394
5427
  );
5395
5428
  child.props.children.map((optChild, index2) => {
5396
5429
  listChildren.push(
5397
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5430
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5398
5431
  ListItem,
5399
5432
  {
5400
5433
  ...optChild.props
@@ -5404,16 +5437,16 @@ var ListAngular = (props) => {
5404
5437
  );
5405
5438
  });
5406
5439
  }
5407
- listGroup = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5440
+ listGroup = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5408
5441
  } else if (child.type === ListItem) {
5409
- listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5410
- listContent = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ListContent, { virtualization, children: listChildren });
5442
+ listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5443
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ListContent, { virtualization, children: listChildren });
5411
5444
  }
5412
5445
  });
5413
5446
  } else {
5414
- listContent = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NoData, { children: "No data found." });
5447
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(NoData, { children: "No data found." });
5415
5448
  }
5416
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
5449
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
5417
5450
  "div",
5418
5451
  {
5419
5452
  ...other,
@@ -5440,7 +5473,7 @@ ListAngular.className = LISTANGULAR_CLASSNAME;
5440
5473
  ListAngular.defaultProps = defaultProps17;
5441
5474
 
5442
5475
  // src/checkbox/checkbox.spec.tsx
5443
- var import_jsx_runtime37 = require("react/jsx-runtime");
5476
+ var import_jsx_runtime35 = require("react/jsx-runtime");
5444
5477
  var CHECKBOX_CLASSNAME = `k-checkbox`;
5445
5478
  var states22 = [
5446
5479
  States.hover,
@@ -5475,7 +5508,7 @@ var Checkbox = (props) => {
5475
5508
  rounded = defaultProps18.rounded,
5476
5509
  ...other
5477
5510
  } = props;
5478
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5511
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5479
5512
  "input",
5480
5513
  {
5481
5514
  ...other,
@@ -5498,7 +5531,7 @@ Checkbox.className = CHECKBOX_CLASSNAME;
5498
5531
  Checkbox.defaultProps = defaultProps18;
5499
5532
 
5500
5533
  // src/checkbox/checkbox-group.spec.tsx
5501
- var import_jsx_runtime38 = require("react/jsx-runtime");
5534
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5502
5535
  var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5503
5536
  var states23 = [];
5504
5537
  var options21 = {};
@@ -5510,7 +5543,7 @@ var CheckboxGroup = (props) => {
5510
5543
  layout = defaultProps19.layout,
5511
5544
  ...other
5512
5545
  } = props;
5513
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5546
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5514
5547
  "ul",
5515
5548
  {
5516
5549
  ...other,
@@ -5531,7 +5564,7 @@ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5531
5564
  CheckboxGroup.defaultProps = defaultProps19;
5532
5565
 
5533
5566
  // src/checkbox/checkbox-item.spec.tsx
5534
- var import_jsx_runtime39 = require("react/jsx-runtime");
5567
+ var import_jsx_runtime37 = require("react/jsx-runtime");
5535
5568
  var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5536
5569
  var states24 = [];
5537
5570
  var options22 = {};
@@ -5540,7 +5573,7 @@ var CheckboxItem = (props) => {
5540
5573
  const {
5541
5574
  ...other
5542
5575
  } = props;
5543
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5576
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5544
5577
  "li",
5545
5578
  {
5546
5579
  ...other,
@@ -5558,13 +5591,13 @@ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5558
5591
  CheckboxItem.defaultProps = defaultProps20;
5559
5592
 
5560
5593
  // src/checkbox/templates/checkbox-with-label.tsx
5561
- var import_jsx_runtime40 = require("react/jsx-runtime");
5594
+ var import_jsx_runtime38 = require("react/jsx-runtime");
5562
5595
 
5563
5596
  // src/checkbox/templates/checkbox-normal.tsx
5564
- var import_jsx_runtime41 = require("react/jsx-runtime");
5597
+ var import_jsx_runtime39 = require("react/jsx-runtime");
5565
5598
 
5566
5599
  // src/list/list-item.spec.tsx
5567
- var import_jsx_runtime42 = require("react/jsx-runtime");
5600
+ var import_jsx_runtime40 = require("react/jsx-runtime");
5568
5601
  var LISTITEM_CLASSNAME = `k-list-item`;
5569
5602
  var states25 = [
5570
5603
  States.hover,
@@ -5589,7 +5622,7 @@ var ListItem = (props) => {
5589
5622
  ...other
5590
5623
  } = props;
5591
5624
  const textOrChildren = text ? text : props.children;
5592
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
5625
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
5593
5626
  "li",
5594
5627
  {
5595
5628
  ...other,
@@ -5604,10 +5637,10 @@ var ListItem = (props) => {
5604
5637
  })
5605
5638
  ),
5606
5639
  children: [
5607
- showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Checkbox, { checked }),
5608
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { icon: iconName }),
5609
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "k-list-item-text", children: textOrChildren }),
5610
- groupLabel && groupLabel !== "" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "k-list-item-group-label", children: groupLabel })
5640
+ showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Checkbox, { checked }),
5641
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon: iconName }),
5642
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "k-list-item-text", children: textOrChildren }),
5643
+ groupLabel && groupLabel !== "" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "k-list-item-group-label", children: groupLabel })
5611
5644
  ]
5612
5645
  }
5613
5646
  );
@@ -5618,43 +5651,43 @@ ListItem.className = LISTITEM_CLASSNAME;
5618
5651
  ListItem.defaultProps = defaultProps21;
5619
5652
 
5620
5653
  // src/list/list-content.tsx
5621
- var import_jsx_runtime43 = require("react/jsx-runtime");
5654
+ var import_jsx_runtime41 = require("react/jsx-runtime");
5622
5655
  var className10 = `k-list-content`;
5623
5656
  var ListContent = (props) => {
5624
5657
  const {
5625
5658
  virtualization
5626
5659
  } = props;
5627
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: classNames(className10, props.className), children: [
5628
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { className: classNames("k-list-ul"), children: props.children }),
5629
- virtualization && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "k-height-container", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", {}) })
5660
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: classNames(className10, props.className), children: [
5661
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("ul", { className: classNames("k-list-ul"), children: props.children }),
5662
+ virtualization && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "k-height-container", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", {}) })
5630
5663
  ] });
5631
5664
  };
5632
5665
 
5633
5666
  // src/list/list-header.tsx
5634
- var import_jsx_runtime44 = require("react/jsx-runtime");
5667
+ var import_jsx_runtime42 = require("react/jsx-runtime");
5635
5668
  var className11 = `k-list-group-sticky-header`;
5636
- var ListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "k-list-header-text", children: props.children }) });
5669
+ var ListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "k-list-header-text", children: props.children }) });
5637
5670
 
5638
5671
  // src/list/list-group.tsx
5639
- var import_jsx_runtime45 = require("react/jsx-runtime");
5672
+ var import_jsx_runtime43 = require("react/jsx-runtime");
5640
5673
  var ListGroup = (props) => {
5641
5674
  const {
5642
5675
  virtualization,
5643
5676
  label
5644
5677
  } = props;
5645
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
5646
- label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ListHeader, { children: label }),
5647
- props.children && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ListContent, { virtualization, children: props.children })
5678
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
5679
+ label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ListHeader, { children: label }),
5680
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ListContent, { virtualization, children: props.children })
5648
5681
  ] });
5649
5682
  };
5650
5683
 
5651
5684
  // src/list/list-group-item.tsx
5652
- var import_jsx_runtime46 = require("react/jsx-runtime");
5685
+ var import_jsx_runtime44 = require("react/jsx-runtime");
5653
5686
  var className12 = `k-list-group-item`;
5654
- var ListGroupItem = (props) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "k-list-item-text", children: props.children }) });
5687
+ var ListGroupItem = (props) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "k-list-item-text", children: props.children }) });
5655
5688
 
5656
5689
  // src/list/list-option-label.tsx
5657
- var import_jsx_runtime47 = require("react/jsx-runtime");
5690
+ var import_jsx_runtime45 = require("react/jsx-runtime");
5658
5691
  var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5659
5692
  var states26 = [
5660
5693
  States.hover,
@@ -5673,7 +5706,7 @@ var ListOptionLabel = (props) => {
5673
5706
  disabled,
5674
5707
  ...other
5675
5708
  } = props;
5676
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5709
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
5677
5710
  "div",
5678
5711
  {
5679
5712
  ...other,
@@ -5696,53 +5729,55 @@ ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5696
5729
  ListOptionLabel.defaultProps = defaultProps22;
5697
5730
 
5698
5731
  // src/list/templates/list-normal.tsx
5699
- var import_jsx_runtime48 = require("react/jsx-runtime");
5732
+ var import_jsx_runtime46 = require("react/jsx-runtime");
5700
5733
 
5701
5734
  // src/list/templates/list-virtualization.tsx
5702
- var import_jsx_runtime49 = require("react/jsx-runtime");
5735
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5703
5736
 
5704
5737
  // src/list/templates/list-grouping.tsx
5705
- var import_jsx_runtime50 = require("react/jsx-runtime");
5738
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5706
5739
 
5707
5740
  // src/list/templates/list-virualization-grouping.tsx
5708
- var import_jsx_runtime51 = require("react/jsx-runtime");
5741
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5709
5742
 
5710
5743
  // src/list/templates/list-virtualization-angular.tsx
5711
- var import_jsx_runtime52 = require("react/jsx-runtime");
5744
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5712
5745
 
5713
5746
  // src/list/templates/list-grouping-angular.tsx
5714
- var import_jsx_runtime53 = require("react/jsx-runtime");
5747
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5715
5748
 
5716
5749
  // src/list/templates/list-virualization-grouping-angular.tsx
5717
- var import_jsx_runtime54 = require("react/jsx-runtime");
5750
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5718
5751
 
5719
- // src/combobox/combobox.spec.tsx
5720
- var import_jsx_runtime55 = require("react/jsx-runtime");
5721
- var COMBOBOX_CLASSNAME = `k-combobox`;
5752
+ // src/dropdownlist/templates/dropdownlist-popup.tsx
5753
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5754
+
5755
+ // src/searchbox/searchbox.spec.tsx
5756
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5757
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5722
5758
  var states27 = [
5723
5759
  States.hover,
5724
5760
  States.focus,
5725
5761
  States.valid,
5726
5762
  States.invalid,
5727
- States.loading,
5728
5763
  States.required,
5729
5764
  States.disabled,
5730
- States.readonly
5765
+ States.loading
5731
5766
  ];
5732
- var defaultProps23 = {
5733
- size: Input.defaultProps.size,
5734
- rounded: Input.defaultProps.rounded,
5735
- fillMode: Input.defaultProps.fillMode
5736
- };
5737
5767
  var options25 = {
5738
5768
  size: [Size.small, Size.medium, Size.large],
5739
5769
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5740
5770
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5741
5771
  };
5742
- var Combobox = (props) => {
5772
+ var defaultProps23 = {
5773
+ showIcon: true,
5774
+ icon: "search",
5775
+ size: Input.defaultProps.size,
5776
+ rounded: Input.defaultProps.rounded,
5777
+ fillMode: Input.defaultProps.fillMode
5778
+ };
5779
+ var Searchbox = (props) => {
5743
5780
  const {
5744
- prefix,
5745
- suffix,
5746
5781
  value,
5747
5782
  placeholder,
5748
5783
  size,
@@ -5755,224 +5790,380 @@ var Combobox = (props) => {
5755
5790
  required,
5756
5791
  loading,
5757
5792
  disabled,
5758
- popup,
5759
- opened,
5760
- readonly,
5761
- adaptive,
5762
- adaptiveSettings,
5793
+ showIcon = defaultProps23.showIcon,
5794
+ icon = defaultProps23.icon,
5763
5795
  ...other
5764
5796
  } = props;
5765
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
5766
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
5767
- Input,
5768
- {
5769
- ...other,
5770
- size,
5771
- rounded,
5772
- fillMode,
5773
- hover,
5774
- focus,
5775
- valid,
5776
- invalid,
5777
- required,
5778
- loading,
5779
- disabled,
5780
- readonly,
5781
- className: classNames(props.className, COMBOBOX_CLASSNAME),
5782
- children: [
5783
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InputPrefix, { children: prefix }),
5784
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InputInnerInput, { placeholder, value }),
5785
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5786
- InputValidationIcon,
5787
- {
5788
- valid,
5789
- invalid,
5790
- loading,
5791
- disabled
5792
- }
5793
- ),
5794
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5795
- InputLoadingIcon,
5796
- {
5797
- loading,
5798
- disabled
5799
- }
5800
- ),
5801
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5802
- InputClearValue,
5803
- {
5804
- loading,
5805
- disabled,
5806
- readonly,
5807
- value
5808
- }
5809
- ),
5810
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(InputSuffix, { children: suffix }),
5811
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5812
- Button,
5813
- {
5814
- className: "k-input-button",
5815
- icon: "caret-alt-down",
5816
- rounded: null,
5817
- size,
5818
- fillMode
5819
- }
5820
- )
5821
- ]
5822
- }
5823
- ),
5824
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
5825
- adaptive && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5826
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5827
- ActionSheetHeader,
5828
- {
5829
- actions: ["x"],
5830
- filter: true,
5831
- title: "Select Item"
5832
- }
5833
- ),
5834
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "k-list-container", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(List, { size: "large", children: [
5835
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ListItem, { text: "List item" }),
5836
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ListItem, { text: "List item" }),
5837
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ListItem, { text: "List item" })
5838
- ] }) })
5839
- ] })
5840
- ] });
5797
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5798
+ Input,
5799
+ {
5800
+ ...other,
5801
+ size,
5802
+ rounded,
5803
+ fillMode,
5804
+ hover,
5805
+ focus,
5806
+ valid,
5807
+ invalid,
5808
+ required,
5809
+ loading,
5810
+ disabled,
5811
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5812
+ children: [
5813
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { className: "k-input-icon", icon }),
5814
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputInnerInput, { placeholder, value }),
5815
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputLoadingIcon, { ...props }),
5816
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputValidationIcon, { ...props }),
5817
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputClearValue, { ...props })
5818
+ ]
5819
+ }
5820
+ );
5841
5821
  };
5842
- Combobox.states = states27;
5843
- Combobox.options = options25;
5844
- Combobox.className = COMBOBOX_CLASSNAME;
5845
- Combobox.defaultProps = defaultProps23;
5822
+ Searchbox.states = states27;
5823
+ Searchbox.options = options25;
5824
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5825
+ Searchbox.defaultProps = defaultProps23;
5826
+
5827
+ // src/searchbox/templates/searchbox-normal.tsx
5828
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5846
5829
 
5847
- // src/combobox/templates/combobox-normal.tsx
5830
+ // src/dropdownlist/templates/dropdownlist-filtering.tsx
5848
5831
  var import_jsx_runtime56 = require("react/jsx-runtime");
5849
5832
 
5850
- // src/combobox/templates/combobox-popup.tsx
5833
+ // src/dropdownlist/templates/dropdownlist-grouping.tsx
5851
5834
  var import_jsx_runtime57 = require("react/jsx-runtime");
5852
5835
 
5853
- // src/combobox/templates/combobox-grouping.tsx
5836
+ // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
5854
5837
  var import_jsx_runtime58 = require("react/jsx-runtime");
5855
5838
 
5856
- // src/combobox/templates/combobox-adaptive.tsx
5839
+ // src/upload/upload-dropzone.tsx
5857
5840
  var import_jsx_runtime59 = require("react/jsx-runtime");
5841
+ var UPLOADDROPZONE_CLASSNAME = `k-upload-dropzone`;
5842
+ var states28 = [
5843
+ States.hover
5844
+ ];
5845
+ var UploadDropzone = (props) => {
5846
+ const {
5847
+ hover,
5848
+ status,
5849
+ ...other
5850
+ } = props;
5851
+ let statusMsg = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {});
5852
+ switch (status) {
5853
+ case "uploading":
5854
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
5855
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: "upload" }),
5856
+ "Uploading..."
5857
+ ] });
5858
+ break;
5859
+ case "done":
5860
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
5861
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: "check" }),
5862
+ "Done"
5863
+ ] });
5864
+ break;
5865
+ case "failed":
5866
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
5867
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: "exclamation-circle" }),
5868
+ "Done"
5869
+ ] });
5870
+ break;
5871
+ default:
5872
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {});
5873
+ break;
5874
+ }
5875
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5876
+ "div",
5877
+ {
5878
+ ...other,
5879
+ className: classNames(
5880
+ props.className,
5881
+ UPLOADDROPZONE_CLASSNAME,
5882
+ "k-dropzone",
5883
+ stateClassNames(UPLOADDROPZONE_CLASSNAME, {
5884
+ hover
5885
+ })
5886
+ ),
5887
+ children: [
5888
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "k-upload-button-wrap", children: [
5889
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { className: "k-upload-button", children: "Select files..." }),
5890
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", { id: "upload-input", className: "k-hidden" })
5891
+ ] }),
5892
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5893
+ "span",
5894
+ {
5895
+ className: classNames(
5896
+ "k-dropzone-hint",
5897
+ {
5898
+ "k-hidden": status !== "upload"
5899
+ }
5900
+ ),
5901
+ children: "Drop files here to upload"
5902
+ }
5903
+ ),
5904
+ status !== "upload" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "k-upload-status", children: statusMsg })
5905
+ ]
5906
+ }
5907
+ );
5908
+ };
5858
5909
 
5859
- // src/textarea/textarea.spec.tsx
5910
+ // src/upload/upload.spec.tsx
5860
5911
  var import_jsx_runtime60 = require("react/jsx-runtime");
5861
- var TEXTAREA_CLASSNAME = `k-textarea`;
5862
- var states28 = [
5912
+ var UPLOAD_CLASSNAME = `k-upload`;
5913
+ var states29 = [
5863
5914
  States.hover,
5864
- States.focus,
5865
- States.valid,
5866
- States.invalid,
5867
- States.required,
5868
5915
  States.disabled
5869
5916
  ];
5870
- var options26 = {
5871
- size: [Size.small, Size.medium, Size.large],
5872
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5873
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5874
- };
5875
- var defaultProps24 = {
5876
- size: Input.defaultProps.size,
5877
- rounded: Input.defaultProps.rounded,
5878
- fillMode: Input.defaultProps.fillMode
5879
- };
5880
- var Textarea = (props) => {
5917
+ var options26 = {};
5918
+ var defaultProps24 = {};
5919
+ var Upload = (props) => {
5881
5920
  const {
5882
- rows,
5883
- value,
5884
- placeholder,
5885
- size,
5886
- rounded,
5887
- fillMode,
5921
+ async,
5922
+ empty,
5923
+ actions,
5888
5924
  hover,
5889
- focus,
5890
- valid,
5891
- invalid,
5892
- required,
5925
+ status,
5893
5926
  disabled,
5894
5927
  ...other
5895
5928
  } = props;
5896
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5897
- Input,
5929
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5930
+ "div",
5898
5931
  {
5899
5932
  ...other,
5900
- size,
5901
- rounded,
5902
- fillMode,
5903
- hover,
5904
- focus,
5905
- valid,
5906
- invalid,
5907
- required,
5908
- disabled,
5909
- className: classNames(props.className, TEXTAREA_CLASSNAME),
5910
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5911
- InputInnerTextarea,
5933
+ className: classNames(
5934
+ props.className,
5935
+ UPLOAD_CLASSNAME,
5936
+ stateClassNames(UPLOAD_CLASSNAME, {
5937
+ disabled
5938
+ }),
5912
5939
  {
5913
- className: classNames(
5914
- "!k-overflow-auto"
5915
- ),
5916
- value,
5917
- placeholder,
5918
- rows
5940
+ "k-upload-async": async,
5941
+ "k-upload-empty": empty
5919
5942
  }
5920
- )
5943
+ ),
5944
+ children: [
5945
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(UploadDropzone, { status, hover }),
5946
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { className: "k-upload-files", children: props.children }),
5947
+ actions && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(action_buttons_spec_default, { alignment: "end", orientation: "horizontal", children: [
5948
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { className: "k-clear-selected", children: "Clear" }),
5949
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { themeColor: "primary", className: "k-upload-selected", children: "Update" })
5950
+ ] })
5951
+ ]
5921
5952
  }
5922
5953
  );
5923
5954
  };
5924
- Textarea.states = states28;
5925
- Textarea.options = options26;
5926
- Textarea.className = TEXTAREA_CLASSNAME;
5927
- Textarea.defaultProps = defaultProps24;
5955
+ Upload.states = states29;
5956
+ Upload.options = options26;
5957
+ Upload.className = UPLOAD_CLASSNAME;
5958
+ Upload.defaultProps = defaultProps24;
5928
5959
 
5929
- // src/textarea/templates/textarea-normal.tsx
5960
+ // src/progressbar/progressbar.spec.tsx
5930
5961
  var import_jsx_runtime61 = require("react/jsx-runtime");
5962
+ var PROGRESSBAR_CLASSNAME = `k-progressbar`;
5963
+ var states30 = [
5964
+ States.disabled,
5965
+ States.indeterminate
5966
+ ];
5967
+ var options27 = {};
5968
+ var defaultProps25 = {
5969
+ indeterminate: false,
5970
+ label: true,
5971
+ labelPosition: "start",
5972
+ orientation: "horizontal",
5973
+ reverse: false,
5974
+ value: "0"
5975
+ };
5976
+ var ProgressBar = (props) => {
5977
+ const {
5978
+ disabled,
5979
+ height,
5980
+ indeterminate = defaultProps25.indeterminate,
5981
+ label = defaultProps25.label,
5982
+ labelPosition = defaultProps25.labelPosition,
5983
+ orientation = defaultProps25.orientation,
5984
+ reverse = defaultProps25.reverse,
5985
+ value = defaultProps25.value,
5986
+ width,
5987
+ ...other
5988
+ } = props;
5989
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5990
+ "div",
5991
+ {
5992
+ ...other,
5993
+ className: classNames(
5994
+ props.className,
5995
+ PROGRESSBAR_CLASSNAME,
5996
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
5997
+ disabled
5998
+ }),
5999
+ {
6000
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
6001
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
6002
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
6003
+ }
6004
+ ),
6005
+ style: orientation === "horizontal" ? { "--kendo-progressbar-value": value, height } : { "--kendo-progressbar-value": value, width },
6006
+ children: [
6007
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: classNames(
6008
+ "k-progress-status-wrap",
6009
+ {
6010
+ [`k-progress-${labelPosition}`]: labelPosition && !indeterminate
6011
+ }
6012
+ ), children: label && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "k-progress-status", children: [
6013
+ value,
6014
+ "%"
6015
+ ] }) }),
6016
+ !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "k-progressbar-value k-selected", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: classNames(
6017
+ "k-progress-status-wrap",
6018
+ {
6019
+ [`k-progress-${labelPosition}`]: labelPosition
6020
+ }
6021
+ ), children: label && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "k-progress-status", children: [
6022
+ props.value,
6023
+ "%"
6024
+ ] }) }) })
6025
+ ]
6026
+ }
6027
+ );
6028
+ };
6029
+ ProgressBar.states = states30;
6030
+ ProgressBar.options = options27;
6031
+ ProgressBar.className = PROGRESSBAR_CLASSNAME;
6032
+ ProgressBar.defaultProps = defaultProps25;
5931
6033
 
5932
- // src/floating-label/tests/floating-label.tsx
6034
+ // src/progressbar/chunk-progressbar.spec.tsx
5933
6035
  var import_jsx_runtime62 = require("react/jsx-runtime");
5934
- var styles = `
5935
- #test-area {
5936
- width: 660px;
6036
+ var CHUNKPROGRESSBAR_CLASSNAME = `k-chunk-progressbar`;
6037
+ var isSelected = (progress, index) => index <= progress - 1 ? true : false;
6038
+ var states31 = [
6039
+ States.indeterminate
6040
+ ];
6041
+ var options28 = {};
6042
+ var defaultProps26 = {
6043
+ chunkCount: 5,
6044
+ orientation: "horizontal",
6045
+ progress: 0
6046
+ };
6047
+ var ChunkProgressBar = (props) => {
6048
+ const {
6049
+ chunkCount = defaultProps26.chunkCount,
6050
+ indeterminate,
6051
+ orientation = defaultProps26.orientation,
6052
+ progress = defaultProps26.progress,
6053
+ reverse,
6054
+ ...other
6055
+ } = props;
6056
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6057
+ "div",
6058
+ {
6059
+ ...other,
6060
+ className: classNames(
6061
+ props.className,
6062
+ PROGRESSBAR_CLASSNAME,
6063
+ CHUNKPROGRESSBAR_CLASSNAME,
6064
+ {
6065
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
6066
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
6067
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
6068
+ }
6069
+ ),
6070
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { className: "k-progressbar-chunks k-reset", children: [...Array(chunkCount)].map(
6071
+ (_el, i) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { className: classNames(
6072
+ "k-progressbar-chunk",
6073
+ {
6074
+ "k-first": i === 0,
6075
+ "k-last": i === [...Array(chunkCount)].length - 1,
6076
+ "k-selected": isSelected(progress, i)
6077
+ }
6078
+ ) }, i)
6079
+ ) })
6080
+ }
6081
+ );
6082
+ };
6083
+ ChunkProgressBar.states = states31;
6084
+ ChunkProgressBar.options = options28;
6085
+ ChunkProgressBar.className = CHUNKPROGRESSBAR_CLASSNAME;
6086
+ ChunkProgressBar.defaultProps = defaultProps26;
6087
+
6088
+ // src/upload/upload-file-info.tsx
6089
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6090
+
6091
+ // src/upload/upload-file.tsx
6092
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6093
+
6094
+ // src/upload/upload-file-multiple.tsx
6095
+ var import_jsx_runtime65 = require("react/jsx-runtime");
6096
+
6097
+ // src/dropzone/dropzone.spec.tsx
6098
+ var import_jsx_runtime66 = require("react/jsx-runtime");
6099
+ var DROPZONE_CLASSNAME = `k-external-dropzone`;
6100
+ var states32 = [
6101
+ States.hover
6102
+ ];
6103
+ var defaultProps27 = {
6104
+ icon: "upload",
6105
+ note: "Only JPEG, PNG and SVG files are allowed."
6106
+ };
6107
+ var Dropzone = (props) => {
6108
+ const {
6109
+ hover,
6110
+ icon = defaultProps27.icon,
6111
+ note = defaultProps27.note,
6112
+ ...other
6113
+ } = props;
6114
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6115
+ "div",
6116
+ {
6117
+ ...other,
6118
+ className: classNames(
6119
+ props.className,
6120
+ DROPZONE_CLASSNAME,
6121
+ stateClassNames(DROPZONE_CLASSNAME, {}),
6122
+ {
6123
+ "k-external-dropzone-hover": hover
6124
+ }
6125
+ ),
6126
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "k-dropzone-inner", children: [
6127
+ icon && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon, { icon, className: "k-dropzone-icon", size: "xxxlarge" }),
6128
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "k-dropzone-hint", children: "Drag and drop files here to upload" }),
6129
+ note && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "k-dropzone-note", children: [
6130
+ " ",
6131
+ note,
6132
+ " "
6133
+ ] })
6134
+ ] })
5937
6135
  }
5938
- .k-floating-label-container {
5939
- width: 100%;
6136
+ );
6137
+ };
6138
+
6139
+ // src/spreadsheet/tests/spreadsheet-file-dialogs.tsx
6140
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6141
+ var style = `
6142
+ .k-window {
6143
+ min-width: 400px;
6144
+ position: relative;
5940
6145
  }
5941
6146
  `;
5942
- var floating_label_default = () => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
5943
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("style", { children: styles }),
5944
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
5945
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: "Floating label" }),
5946
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: "Floating label RTL" }),
5947
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, {}) }) }),
5948
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, {}) }) }),
5949
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox with placeholder and floating label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { placeholder: "Placeholder" }) }) }),
5950
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox with placeholder and floating label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { placeholder: "Placeholder" }) }) }),
5951
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Focused Textbox with placeholder", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { placeholder: "Placeholder", focus: true }) }) }),
5952
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Focused Textbox with placeholder", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { placeholder: "Placeholder", focus: true }) }) }),
5953
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, {}) }) }),
5954
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, {}) }) }),
5955
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Textbox value" }) }) }),
5956
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Textbox value" }) }) }),
5957
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Combobox value" }) }) }),
5958
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Combobox value" }) }) }),
5959
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Hover", hover: true }) }) }),
5960
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Hover", hover: true }) }) }),
5961
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Hover", hover: true }) }) }),
5962
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Hover", hover: true }) }) }),
5963
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Focus", focus: true }) }) }),
5964
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Focus", focus: true }) }) }),
5965
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Focus", focus: true }) }) }),
5966
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Focus", focus: true }) }) }),
5967
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", disabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Disabled", disabled: true }) }) }),
5968
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", disabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Disabled", disabled: true }) }) }),
5969
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", disabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Disabled", disabled: true }) }) }),
5970
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", disabled: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Disabled", disabled: true }) }) }),
5971
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", invalid: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Invalid value", invalid: true }) }) }),
5972
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textbox label", invalid: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textbox, { value: "Invalid value", invalid: true }) }) }),
5973
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", invalid: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Invalid value", invalid: true }) }) }),
5974
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Combobox label", invalid: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Combobox, { value: "Invalid value", invalid: true }) }) }),
5975
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textarea label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textarea, {}) }) }),
5976
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FloatingLabel, { label: "Textarea label", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Textarea, {}) }) })
6147
+ var spreadsheet_file_dialogs_default = () => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
6148
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("style", { children: style }),
6149
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
6150
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Window, { title: "Create new file", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "stretched", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
6151
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { themeColor: "primary", children: "Create new file" }),
6152
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { children: "Cancel" })
6153
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { children: "Are you sure you want to close this file without saving it and create a new one?" }) }) }),
6154
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Window, { title: "Save", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
6155
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { themeColor: "primary", children: "Save" }),
6156
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { children: "Cancel" })
6157
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Form, { children: [
6158
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FormField, { label: "File name", editor: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Textbox, { placeholder: "Workbook" }) }),
6159
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FormField, { label: "Save as type", editor: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(DropdownList, { placeholder: "Excel Workbook (.xlsx)" }) })
6160
+ ] }) }) }),
6161
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Window, { title: "Open file", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
6162
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { themeColor: "primary", children: "Open" }),
6163
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { children: "Cancel" })
6164
+ ] }), children: [
6165
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Dropzone, { note: false }),
6166
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Upload, { async: true, status: "upload" })
6167
+ ] }) })
5977
6168
  ] })
5978
6169
  ] });