@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
@@ -172,9 +172,14 @@ FloatingLabel.states = states;
172
172
  FloatingLabel.options = options;
173
173
  FloatingLabel.className = FLOATINGLABEL_CLASSNAME;
174
174
  FloatingLabel.defaultProps = defaultProps;
175
+ var floating_label_spec_default = FloatingLabel;
175
176
 
176
- // src/input/input.spec.tsx
177
+ // src/floating-label/templates/floating-label-normal.tsx
177
178
  var import_jsx_runtime2 = require("react/jsx-runtime");
179
+ var FloatingLabelNormal = ({ children, ...other }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(floating_label_spec_default, { ...other, children });
180
+
181
+ // src/input/input.spec.tsx
182
+ var import_jsx_runtime3 = require("react/jsx-runtime");
178
183
  var INPUT_CLASSNAME = `k-input`;
179
184
  var states2 = [
180
185
  States.hover,
@@ -210,7 +215,7 @@ var Input = (props) => {
210
215
  fillMode = defaultProps2.fillMode,
211
216
  ...other
212
217
  } = props;
213
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
218
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
214
219
  "span",
215
220
  {
216
221
  ...other,
@@ -229,7 +234,7 @@ Input.className = INPUT_CLASSNAME;
229
234
  Input.defaultProps = defaultProps2;
230
235
 
231
236
  // src/input/picker.spec.tsx
232
- var import_jsx_runtime3 = require("react/jsx-runtime");
237
+ var import_jsx_runtime4 = require("react/jsx-runtime");
233
238
  var PICKER_CLASSNAME = `k-picker`;
234
239
  var pickerStates = [
235
240
  States.hover,
@@ -265,7 +270,7 @@ var Picker = (props) => {
265
270
  fillMode = defaultProps3.fillMode,
266
271
  ...other
267
272
  } = props;
268
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
273
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
269
274
  "span",
270
275
  {
271
276
  ...other,
@@ -285,7 +290,7 @@ Picker.className = PICKER_CLASSNAME;
285
290
  Picker.defaultProps = defaultProps3;
286
291
 
287
292
  // src/icon/font-icon.spec.tsx
288
- var import_jsx_runtime4 = require("react/jsx-runtime");
293
+ var import_jsx_runtime5 = require("react/jsx-runtime");
289
294
  var FONTICON_CLASSNAME = `k-icon`;
290
295
  var states3 = [];
291
296
  var options3 = {
@@ -314,9 +319,9 @@ var FontIcon = (props) => {
314
319
  ...other
315
320
  } = props;
316
321
  if (!icon) {
317
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
322
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
318
323
  }
319
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
324
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
320
325
  "span",
321
326
  {
322
327
  ...other,
@@ -344,7 +349,7 @@ FontIcon.defaultProps = defaultProps4;
344
349
  var font_icon_spec_default = FontIcon;
345
350
 
346
351
  // src/icon/svg-icon.spec.tsx
347
- var import_jsx_runtime5 = require("react/jsx-runtime");
352
+ var import_jsx_runtime6 = require("react/jsx-runtime");
348
353
  var SVGICON_CLASSNAME = `k-svg-icon`;
349
354
  var states4 = [];
350
355
  var options4 = {
@@ -376,10 +381,10 @@ var SvgIcon = (props) => {
376
381
  ...other
377
382
  } = props;
378
383
  if (!icon) {
379
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
384
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
380
385
  }
381
386
  if (icon === "none") {
382
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
387
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
383
388
  "span",
384
389
  {
385
390
  ...other,
@@ -392,7 +397,7 @@ var SvgIcon = (props) => {
392
397
  );
393
398
  }
394
399
  const name = typeof icon === "object" && icon.name && icon.name;
395
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
400
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
396
401
  "span",
397
402
  {
398
403
  ...other,
@@ -410,7 +415,7 @@ var SvgIcon = (props) => {
410
415
  "k-flip-v": flip === "v" || flip === "both"
411
416
  }
412
417
  ),
413
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
418
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
414
419
  "svg",
415
420
  {
416
421
  "aria-hidden": true,
@@ -4426,7 +4431,7 @@ var chartChoroplethIcon = {
4426
4431
  };
4427
4432
 
4428
4433
  // src/icon/icon.spec.tsx
4429
- var import_jsx_runtime6 = require("react/jsx-runtime");
4434
+ var import_jsx_runtime7 = require("react/jsx-runtime");
4430
4435
  var snakeToCamel = (str) => str.toLowerCase().replace(
4431
4436
  /([-_][a-z])/g,
4432
4437
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
@@ -4463,26 +4468,26 @@ var Icon = (props) => {
4463
4468
  ...other
4464
4469
  } = props;
4465
4470
  if (!icon) {
4466
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
4471
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {});
4467
4472
  }
4468
4473
  if (type === "svg") {
4469
4474
  if (icon === "none") {
4470
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(svg_icon_spec_default, { ...other, icon, size });
4475
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(svg_icon_spec_default, { ...other, icon, size });
4471
4476
  }
4472
4477
  const iconSVG = snakeToCamel(`${icon}-icon`);
4473
4478
  if (!index_es_exports[iconSVG]) {
4474
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
4479
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {});
4475
4480
  }
4476
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4481
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4477
4482
  }
4478
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4483
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4479
4484
  };
4480
4485
  Icon.states = states5;
4481
4486
  Icon.options = options5;
4482
4487
  Icon.defaultProps = defaultProps6;
4483
4488
 
4484
4489
  // src/input/input-clear-value.tsx
4485
- var import_jsx_runtime7 = require("react/jsx-runtime");
4490
+ var import_jsx_runtime8 = require("react/jsx-runtime");
4486
4491
  var className = `k-clear-value`;
4487
4492
  var states6 = [
4488
4493
  States.disabled,
@@ -4498,16 +4503,16 @@ var InputClearValue = (props) => {
4498
4503
  value
4499
4504
  } = props;
4500
4505
  if (disabled || readonly || loading || !value) {
4501
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {});
4506
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {});
4502
4507
  }
4503
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { icon: "x" }) });
4508
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { icon: "x" }) });
4504
4509
  };
4505
4510
  InputClearValue.states = states6;
4506
4511
  InputClearValue.options = options6;
4507
4512
  InputClearValue.className = className;
4508
4513
 
4509
4514
  // src/input/input-inner-input.tsx
4510
- var import_jsx_runtime8 = require("react/jsx-runtime");
4515
+ var import_jsx_runtime9 = require("react/jsx-runtime");
4511
4516
  var className2 = `k-input-inner`;
4512
4517
  var states7 = [];
4513
4518
  var options7 = {};
@@ -4525,7 +4530,7 @@ var InputInnerInput = (props) => {
4525
4530
  autocomplete = defaultProps7.autocomplete,
4526
4531
  ...other
4527
4532
  } = props;
4528
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4533
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4529
4534
  "input",
4530
4535
  {
4531
4536
  ...other,
@@ -4542,7 +4547,7 @@ InputInnerInput.options = options7;
4542
4547
  InputInnerInput.className = className2;
4543
4548
 
4544
4549
  // src/input/input-inner-span.tsx
4545
- var import_jsx_runtime9 = require("react/jsx-runtime");
4550
+ var import_jsx_runtime10 = require("react/jsx-runtime");
4546
4551
  var className3 = `k-input-inner`;
4547
4552
  var states8 = [];
4548
4553
  var options8 = {};
@@ -4555,16 +4560,16 @@ var InputInnerSpan = (props) => {
4555
4560
  valueIconName,
4556
4561
  ...other
4557
4562
  } = props;
4558
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4563
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4559
4564
  "span",
4560
4565
  {
4561
4566
  ...other,
4562
4567
  className: classNames(props.className, className3, optionClassNames(className3, props)),
4563
4568
  children: [
4564
4569
  valueIcon,
4565
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4570
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4566
4571
  showValue && !value && placeholder,
4567
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-input-value-text", children: value })
4572
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "k-input-value-text", children: value })
4568
4573
  ]
4569
4574
  }
4570
4575
  );
@@ -4574,7 +4579,7 @@ InputInnerSpan.options = options8;
4574
4579
  InputInnerSpan.className = className3;
4575
4580
 
4576
4581
  // src/input/input-inner-textarea.tsx
4577
- var import_jsx_runtime10 = require("react/jsx-runtime");
4582
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4578
4583
  var defaultProps8 = {
4579
4584
  value: "",
4580
4585
  placeholder: ""
@@ -4589,7 +4594,7 @@ var InputInnerTextarea = (props) => {
4589
4594
  rows,
4590
4595
  ...other
4591
4596
  } = props;
4592
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4597
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4593
4598
  "textarea",
4594
4599
  {
4595
4600
  ...other,
@@ -4605,7 +4610,7 @@ InputInnerTextarea.options = options9;
4605
4610
  InputInnerTextarea.className = className4;
4606
4611
 
4607
4612
  // src/input/input-loading-icon.tsx
4608
- var import_jsx_runtime11 = require("react/jsx-runtime");
4613
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4609
4614
  var className5 = `k-input-loading-icon`;
4610
4615
  var states10 = [
4611
4616
  States.disabled,
@@ -4617,13 +4622,13 @@ var InputLoadingIcon = (props) => {
4617
4622
  loading
4618
4623
  } = props;
4619
4624
  if (disabled || !loading) {
4620
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
4625
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
4621
4626
  }
4622
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4627
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4623
4628
  };
4624
4629
 
4625
4630
  // src/input/input-validation-icon.tsx
4626
- var import_jsx_runtime12 = require("react/jsx-runtime");
4631
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4627
4632
  var className6 = `k-input-validation-icon`;
4628
4633
  var states11 = [
4629
4634
  States.valid,
@@ -4642,39 +4647,39 @@ var InputValidationIcon = (props) => {
4642
4647
  const iconName = invalid ? "exclamation-circle" : "check";
4643
4648
  const renderValidationIcon = Boolean(valid || invalid);
4644
4649
  if (disabled || loading || !renderValidationIcon) {
4645
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
4650
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {});
4646
4651
  }
4647
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: classNames(className6), icon: iconName });
4652
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { className: classNames(className6), icon: iconName });
4648
4653
  };
4649
4654
  InputValidationIcon.states = states11;
4650
4655
  InputValidationIcon.options = options10;
4651
4656
  InputValidationIcon.className = className6;
4652
4657
 
4653
4658
  // src/input/input-prefix.tsx
4654
- var import_jsx_runtime13 = require("react/jsx-runtime");
4659
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4655
4660
  var className7 = `k-input-prefix`;
4656
4661
  var InputPrefix = (props) => {
4657
4662
  if (!props.children) {
4658
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {});
4663
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {});
4659
4664
  }
4660
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4665
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4661
4666
  };
4662
4667
 
4663
4668
  // src/input/input-suffix.tsx
4664
- var import_jsx_runtime14 = require("react/jsx-runtime");
4669
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4665
4670
  var className8 = `k-input-suffix`;
4666
4671
  var InputSuffix = (props) => {
4667
4672
  if (!props.children) {
4668
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {});
4673
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {});
4669
4674
  }
4670
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4675
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4671
4676
  };
4672
4677
 
4673
4678
  // src/input/input-separator.tsx
4674
- var import_jsx_runtime15 = require("react/jsx-runtime");
4679
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4675
4680
 
4676
4681
  // src/textbox/textbox.spec.tsx
4677
- var import_jsx_runtime16 = require("react/jsx-runtime");
4682
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4678
4683
  var TEXTBOX_CLASSNAME = `k-textbox`;
4679
4684
  var states12 = [
4680
4685
  States.hover,
@@ -4717,7 +4722,7 @@ var Textbox = (props) => {
4717
4722
  showClearButton = defaultProps9.showClearButton,
4718
4723
  ...other
4719
4724
  } = props;
4720
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4725
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4721
4726
  Input,
4722
4727
  {
4723
4728
  ...other,
@@ -4734,9 +4739,9 @@ var Textbox = (props) => {
4734
4739
  readonly,
4735
4740
  className: classNames(props.className, TEXTBOX_CLASSNAME),
4736
4741
  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)(
4742
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputPrefix, { children: prefix }),
4743
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputInnerInput, { placeholder, value }),
4744
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4740
4745
  InputValidationIcon,
4741
4746
  {
4742
4747
  valid,
@@ -4745,14 +4750,14 @@ var Textbox = (props) => {
4745
4750
  disabled
4746
4751
  }
4747
4752
  ),
4748
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4753
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4749
4754
  InputLoadingIcon,
4750
4755
  {
4751
4756
  loading,
4752
4757
  disabled
4753
4758
  }
4754
4759
  ),
4755
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4760
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4756
4761
  InputClearValue,
4757
4762
  {
4758
4763
  loading,
@@ -4761,7 +4766,7 @@ var Textbox = (props) => {
4761
4766
  value
4762
4767
  }
4763
4768
  ),
4764
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputSuffix, { children: suffix })
4769
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputSuffix, { children: suffix })
4765
4770
  ]
4766
4771
  }
4767
4772
  );
@@ -4770,12 +4775,14 @@ Textbox.states = states12;
4770
4775
  Textbox.options = options11;
4771
4776
  Textbox.className = TEXTBOX_CLASSNAME;
4772
4777
  Textbox.defaultProps = defaultProps9;
4778
+ var textbox_spec_default = Textbox;
4773
4779
 
4774
4780
  // src/textbox/templates/textbox-normal.tsx
4775
- var import_jsx_runtime17 = require("react/jsx-runtime");
4781
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4782
+ var TextboxNormal = (props) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(textbox_spec_default, { ...props });
4776
4783
 
4777
4784
  // src/button/button.spec.tsx
4778
- var import_jsx_runtime18 = require("react/jsx-runtime");
4785
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4779
4786
  var BUTTON_CLASSNAME = `k-button`;
4780
4787
  var states13 = [
4781
4788
  States.hover,
@@ -4830,7 +4837,7 @@ var Button = (props) => {
4830
4837
  } = props;
4831
4838
  const hasIcon = icon !== void 0;
4832
4839
  const hasChildren = props.children !== void 0;
4833
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4840
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4834
4841
  "button",
4835
4842
  {
4836
4843
  ...other,
@@ -4855,18 +4862,18 @@ var Button = (props) => {
4855
4862
  }
4856
4863
  ),
4857
4864
  children: [
4858
- icon && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4865
+ icon && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4859
4866
  Icon,
4860
4867
  {
4861
4868
  className: classNames(iconClassName, "k-button-icon"),
4862
4869
  icon
4863
4870
  }
4864
4871
  ),
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 }),
4872
+ text ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
4873
+ text && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-button-text", children: text }),
4867
4874
  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 }) })
4875
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-button-text", children: props.children }),
4876
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: arrowIconName }) })
4870
4877
  ]
4871
4878
  }
4872
4879
  );
@@ -4877,1060 +4884,22 @@ Button.className = BUTTON_CLASSNAME;
4877
4884
  Button.defaultProps = defaultProps10;
4878
4885
 
4879
4886
  // 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
4887
  var import_jsx_runtime20 = require("react/jsx-runtime");
4884
4888
 
4885
- // src/button/templates/text-button.tsx
4889
+ // src/button/templates/icon-text-button.tsx
4886
4890
  var import_jsx_runtime21 = require("react/jsx-runtime");
4887
4891
 
4888
- // src/textbox/templates/textbox-prefix.tsx
4892
+ // src/button/templates/text-button.tsx
4889
4893
  var import_jsx_runtime22 = require("react/jsx-runtime");
4890
4894
 
4891
- // src/textbox/templates/textbox-suffix.tsx
4895
+ // src/textbox/templates/textbox-prefix.tsx
4892
4896
  var import_jsx_runtime23 = require("react/jsx-runtime");
4893
4897
 
4894
- // src/animation-container/animation-container.spec.tsx
4898
+ // src/textbox/templates/textbox-suffix.tsx
4895
4899
  var import_jsx_runtime24 = require("react/jsx-runtime");
4896
- var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4897
- var states14 = [];
4898
- var options13 = {};
4899
- var defaultProps11 = {
4900
- positionMode: "absolute"
4901
- };
4902
- var AnimationContainer = (props) => {
4903
- const {
4904
- positionMode,
4905
- animationStyle,
4906
- offset,
4907
- ...other
4908
- } = props;
4909
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4910
- "div",
4911
- {
4912
- ...other,
4913
- style: { ...offset, ...props.style },
4914
- className: classNames(
4915
- ANIMATION_CONTAINER_CLASSNAME,
4916
- "k-animation-container-shown",
4917
- {
4918
- ["k-animation-container-fixed"]: positionMode === "fixed"
4919
- }
4920
- ),
4921
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4922
- }
4923
- );
4924
- };
4925
- AnimationContainer.states = states14;
4926
- AnimationContainer.options = options13;
4927
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
4928
- AnimationContainer.defaultProps = defaultProps11;
4929
-
4930
- // src/popup/popup.spec.tsx
4931
- var import_jsx_runtime25 = require("react/jsx-runtime");
4932
- var POPUP_CLASSNAME = `k-popup`;
4933
- var states15 = [];
4934
- var options14 = {};
4935
- var defaultProps12 = {
4936
- positionMode: "absolute"
4937
- };
4938
- var Popup = (props) => {
4939
- const {
4940
- offset,
4941
- positionMode,
4942
- ...other
4943
- } = props;
4944
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4945
- AnimationContainer,
4946
- {
4947
- positionMode,
4948
- offset,
4949
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4950
- }
4951
- );
4952
- };
4953
- Popup.states = states15;
4954
- Popup.options = options14;
4955
- 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;
5039
-
5040
- // src/searchbox/searchbox.spec.tsx
5041
- var import_jsx_runtime27 = require("react/jsx-runtime");
5042
- var SEARCHBOX_CLASSNAME = `k-searchbox`;
5043
- var states17 = [
5044
- States.hover,
5045
- States.focus,
5046
- States.valid,
5047
- States.invalid,
5048
- States.required,
5049
- States.disabled,
5050
- States.loading
5051
- ];
5052
- var options16 = {
5053
- size: [Size.small, Size.medium, Size.large],
5054
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5055
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5056
- };
5057
- var defaultProps14 = {
5058
- showIcon: true,
5059
- icon: "search",
5060
- size: Input.defaultProps.size,
5061
- rounded: Input.defaultProps.rounded,
5062
- fillMode: Input.defaultProps.fillMode
5063
- };
5064
- var Searchbox = (props) => {
5065
- const {
5066
- value,
5067
- placeholder,
5068
- size,
5069
- rounded,
5070
- fillMode,
5071
- hover,
5072
- focus,
5073
- valid,
5074
- invalid,
5075
- required,
5076
- loading,
5077
- 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,
5192
- ...other
5193
- } = 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);
5210
- }
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
- );
5238
- };
5239
-
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
- ];
5248
-
5249
- // src/nodata/nodata.tsx
5250
- var import_jsx_runtime34 = require("react/jsx-runtime");
5251
- var className9 = `k-nodata`;
5252
- var NoData = (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: classNames(className9, props.className), children: props.children });
5253
-
5254
- // src/list/list.spec.tsx
5255
- var import_jsx_runtime35 = require("react/jsx-runtime");
5256
- var LIST_CLASSNAME = `k-list`;
5257
- var states20 = [];
5258
- var options18 = {
5259
- size: [Size.small, Size.medium, Size.large]
5260
- };
5261
- var defaultProps16 = {
5262
- size: Size.medium
5263
- };
5264
- var List = (props) => {
5265
- const {
5266
- size = defaultProps16.size,
5267
- virtualization,
5268
- children,
5269
- optionLabel,
5270
- ...other
5271
- } = props;
5272
- let listHeader;
5273
- let listGroup;
5274
- let listContent;
5275
- const listChildren = [];
5276
- if (children) {
5277
- children.map((child, index) => {
5278
- if (child.type === ListGroup) {
5279
- if (child.props.root === true) {
5280
- listHeader = child.props.label;
5281
- child.props.children.map((optChild, index2) => {
5282
- listChildren.push(
5283
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5284
- ListItem,
5285
- {
5286
- ...optChild.props
5287
- },
5288
- `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5289
- )
5290
- );
5291
- });
5292
- } else {
5293
- child.props.children.forEach((optChild, index2) => {
5294
- let groupLabel = "";
5295
- if (index2 === 0) {
5296
- groupLabel = child.props.label;
5297
- }
5298
- listChildren.push(
5299
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5300
- ListItem,
5301
- {
5302
- className: index2 === 0 ? "k-first" : "",
5303
- ...optChild.props,
5304
- groupLabel
5305
- },
5306
- `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5307
- )
5308
- );
5309
- });
5310
- }
5311
- listGroup = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5312
- } 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 });
5315
- }
5316
- });
5317
- } else {
5318
- listContent = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(NoData, { children: "No data found." });
5319
- }
5320
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
5321
- "div",
5322
- {
5323
- ...other,
5324
- className: classNames(
5325
- props.className,
5326
- LIST_CLASSNAME,
5327
- optionClassNames(LIST_CLASSNAME, {
5328
- size
5329
- }),
5330
- {
5331
- ["k-virtual-list"]: virtualization
5332
- }
5333
- ),
5334
- children: [
5335
- optionLabel,
5336
- listGroup,
5337
- listContent
5338
- ]
5339
- }
5340
- );
5341
- };
5342
- List.states = states20;
5343
- List.options = options18;
5344
- List.className = LIST_CLASSNAME;
5345
- List.defaultProps = defaultProps16;
5346
-
5347
- // src/list/list-angular.spec.tsx
5348
- var import_jsx_runtime36 = require("react/jsx-runtime");
5349
- var LISTANGULAR_CLASSNAME = `k-list`;
5350
- var states21 = [];
5351
- var options19 = {
5352
- size: [Size.small, Size.medium, Size.large]
5353
- };
5354
- var defaultProps17 = {
5355
- size: Size.medium
5356
- };
5357
- var ListAngular = (props) => {
5358
- const {
5359
- size = defaultProps17.size,
5360
- virtualization,
5361
- children,
5362
- ...other
5363
- } = props;
5364
- let listHeader;
5365
- let listGroup;
5366
- let listContent;
5367
- const listChildren = [];
5368
- if (children) {
5369
- children.map((child, index) => {
5370
- if (child.type === ListGroup) {
5371
- if (child.props.root === true) {
5372
- listHeader = child.props.label;
5373
- child.props.children.map((optChild, index2) => {
5374
- listChildren.push(
5375
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5376
- ListItem,
5377
- {
5378
- ...optChild.props
5379
- },
5380
- `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5381
- )
5382
- );
5383
- });
5384
- } else {
5385
- listChildren.push(
5386
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5387
- ListGroupItem,
5388
- {
5389
- ...child.props,
5390
- children: child.props.label
5391
- },
5392
- `listChild-${index}`
5393
- )
5394
- );
5395
- child.props.children.map((optChild, index2) => {
5396
- listChildren.push(
5397
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5398
- ListItem,
5399
- {
5400
- ...optChild.props
5401
- },
5402
- `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5403
- )
5404
- );
5405
- });
5406
- }
5407
- listGroup = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5408
- } 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 });
5411
- }
5412
- });
5413
- } else {
5414
- listContent = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NoData, { children: "No data found." });
5415
- }
5416
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
5417
- "div",
5418
- {
5419
- ...other,
5420
- className: classNames(
5421
- props.className,
5422
- LISTANGULAR_CLASSNAME,
5423
- optionClassNames(LISTANGULAR_CLASSNAME, {
5424
- size
5425
- }),
5426
- {
5427
- ["k-virtual-list"]: virtualization
5428
- }
5429
- ),
5430
- children: [
5431
- listGroup,
5432
- listContent
5433
- ]
5434
- }
5435
- );
5436
- };
5437
- ListAngular.states = states21;
5438
- ListAngular.options = options19;
5439
- ListAngular.className = LISTANGULAR_CLASSNAME;
5440
- ListAngular.defaultProps = defaultProps17;
5441
-
5442
- // src/checkbox/checkbox.spec.tsx
5443
- var import_jsx_runtime37 = require("react/jsx-runtime");
5444
- var CHECKBOX_CLASSNAME = `k-checkbox`;
5445
- var states22 = [
5446
- States.hover,
5447
- States.focus,
5448
- States.valid,
5449
- States.invalid,
5450
- States.required,
5451
- States.disabled,
5452
- States.checked,
5453
- States.indeterminate
5454
- ];
5455
- var options20 = {
5456
- size: [Size.small, Size.medium, Size.large],
5457
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5458
- };
5459
- var defaultProps18 = {
5460
- size: Size.medium,
5461
- rounded: Roundness.medium
5462
- };
5463
- var Checkbox = (props) => {
5464
- const {
5465
- id,
5466
- checked,
5467
- indeterminate,
5468
- hover,
5469
- focus,
5470
- disabled,
5471
- invalid,
5472
- valid,
5473
- required,
5474
- size = defaultProps18.size,
5475
- rounded = defaultProps18.rounded,
5476
- ...other
5477
- } = props;
5478
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5479
- "input",
5480
- {
5481
- ...other,
5482
- id,
5483
- type: "checkbox",
5484
- checked,
5485
- required,
5486
- className: classNames(
5487
- props.className,
5488
- CHECKBOX_CLASSNAME,
5489
- optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5490
- stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5491
- )
5492
- }
5493
- ) });
5494
- };
5495
- Checkbox.states = states22;
5496
- Checkbox.options = options20;
5497
- Checkbox.className = CHECKBOX_CLASSNAME;
5498
- Checkbox.defaultProps = defaultProps18;
5499
-
5500
- // src/checkbox/checkbox-group.spec.tsx
5501
- var import_jsx_runtime38 = require("react/jsx-runtime");
5502
- var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5503
- var states23 = [];
5504
- var options21 = {};
5505
- var defaultProps19 = {
5506
- layout: "vertical"
5507
- };
5508
- var CheckboxGroup = (props) => {
5509
- const {
5510
- layout = defaultProps19.layout,
5511
- ...other
5512
- } = props;
5513
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5514
- "ul",
5515
- {
5516
- ...other,
5517
- className: classNames(
5518
- props.className,
5519
- CHECKBOXGROUP_CLASSNAME,
5520
- {
5521
- [`k-list-${layout}`]: layout
5522
- }
5523
- ),
5524
- children: props.children
5525
- }
5526
- );
5527
- };
5528
- CheckboxGroup.states = states23;
5529
- CheckboxGroup.options = options21;
5530
- CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5531
- CheckboxGroup.defaultProps = defaultProps19;
5532
-
5533
- // src/checkbox/checkbox-item.spec.tsx
5534
- var import_jsx_runtime39 = require("react/jsx-runtime");
5535
- var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5536
- var states24 = [];
5537
- var options22 = {};
5538
- var defaultProps20 = {};
5539
- var CheckboxItem = (props) => {
5540
- const {
5541
- ...other
5542
- } = props;
5543
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5544
- "li",
5545
- {
5546
- ...other,
5547
- className: classNames(
5548
- props.className,
5549
- CHECKBOXITEM_CLASSNAME
5550
- ),
5551
- children: props.children
5552
- }
5553
- );
5554
- };
5555
- CheckboxItem.states = states24;
5556
- CheckboxItem.options = options22;
5557
- CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5558
- CheckboxItem.defaultProps = defaultProps20;
5559
-
5560
- // src/checkbox/templates/checkbox-with-label.tsx
5561
- var import_jsx_runtime40 = require("react/jsx-runtime");
5562
-
5563
- // src/checkbox/templates/checkbox-normal.tsx
5564
- var import_jsx_runtime41 = require("react/jsx-runtime");
5565
-
5566
- // src/list/list-item.spec.tsx
5567
- var import_jsx_runtime42 = require("react/jsx-runtime");
5568
- var LISTITEM_CLASSNAME = `k-list-item`;
5569
- var states25 = [
5570
- States.hover,
5571
- States.focus,
5572
- States.selected,
5573
- States.disabled
5574
- ];
5575
- var options23 = {};
5576
- var defaultProps21 = {};
5577
- var ListItem = (props) => {
5578
- const {
5579
- text,
5580
- groupLabel,
5581
- showIcon,
5582
- iconName,
5583
- showCheckbox,
5584
- checked,
5585
- hover,
5586
- focus,
5587
- selected,
5588
- disabled,
5589
- ...other
5590
- } = props;
5591
- const textOrChildren = text ? text : props.children;
5592
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
5593
- "li",
5594
- {
5595
- ...other,
5596
- className: classNames(
5597
- props.className,
5598
- LISTITEM_CLASSNAME,
5599
- stateClassNames(LISTITEM_CLASSNAME, {
5600
- hover,
5601
- focus,
5602
- disabled,
5603
- selected
5604
- })
5605
- ),
5606
- 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 })
5611
- ]
5612
- }
5613
- );
5614
- };
5615
- ListItem.states = states25;
5616
- ListItem.options = options23;
5617
- ListItem.className = LISTITEM_CLASSNAME;
5618
- ListItem.defaultProps = defaultProps21;
5619
-
5620
- // src/list/list-content.tsx
5621
- var import_jsx_runtime43 = require("react/jsx-runtime");
5622
- var className10 = `k-list-content`;
5623
- var ListContent = (props) => {
5624
- const {
5625
- virtualization
5626
- } = 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", {}) })
5630
- ] });
5631
- };
5632
-
5633
- // src/list/list-header.tsx
5634
- var import_jsx_runtime44 = require("react/jsx-runtime");
5635
- 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 }) });
5637
-
5638
- // src/list/list-group.tsx
5639
- var import_jsx_runtime45 = require("react/jsx-runtime");
5640
- var ListGroup = (props) => {
5641
- const {
5642
- virtualization,
5643
- label
5644
- } = 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 })
5648
- ] });
5649
- };
5650
-
5651
- // src/list/list-group-item.tsx
5652
- var import_jsx_runtime46 = require("react/jsx-runtime");
5653
- 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 }) });
5655
-
5656
- // src/list/list-option-label.tsx
5657
- var import_jsx_runtime47 = require("react/jsx-runtime");
5658
- var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5659
- var states26 = [
5660
- States.hover,
5661
- States.focus,
5662
- States.selected,
5663
- States.disabled
5664
- ];
5665
- var options24 = {};
5666
- var defaultProps22 = {};
5667
- var ListOptionLabel = (props) => {
5668
- const {
5669
- text,
5670
- hover,
5671
- focus,
5672
- selected,
5673
- disabled,
5674
- ...other
5675
- } = props;
5676
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5677
- "div",
5678
- {
5679
- ...other,
5680
- className: classNames(
5681
- LIST_OPTIONLABEL_CLASSNAME,
5682
- stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
5683
- hover,
5684
- focus,
5685
- selected,
5686
- disabled
5687
- })
5688
- ),
5689
- children: text
5690
- }
5691
- );
5692
- };
5693
- ListOptionLabel.states = states26;
5694
- ListOptionLabel.options = options24;
5695
- ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5696
- ListOptionLabel.defaultProps = defaultProps22;
5697
-
5698
- // src/list/templates/list-normal.tsx
5699
- var import_jsx_runtime48 = require("react/jsx-runtime");
5700
-
5701
- // src/list/templates/list-virtualization.tsx
5702
- var import_jsx_runtime49 = require("react/jsx-runtime");
5703
-
5704
- // src/list/templates/list-grouping.tsx
5705
- var import_jsx_runtime50 = require("react/jsx-runtime");
5706
-
5707
- // src/list/templates/list-virualization-grouping.tsx
5708
- var import_jsx_runtime51 = require("react/jsx-runtime");
5709
-
5710
- // src/list/templates/list-virtualization-angular.tsx
5711
- var import_jsx_runtime52 = require("react/jsx-runtime");
5712
-
5713
- // src/list/templates/list-grouping-angular.tsx
5714
- var import_jsx_runtime53 = require("react/jsx-runtime");
5715
-
5716
- // src/list/templates/list-virualization-grouping-angular.tsx
5717
- var import_jsx_runtime54 = require("react/jsx-runtime");
5718
-
5719
- // src/combobox/combobox.spec.tsx
5720
- var import_jsx_runtime55 = require("react/jsx-runtime");
5721
- var COMBOBOX_CLASSNAME = `k-combobox`;
5722
- var states27 = [
5723
- States.hover,
5724
- States.focus,
5725
- States.valid,
5726
- States.invalid,
5727
- States.loading,
5728
- States.required,
5729
- States.disabled,
5730
- States.readonly
5731
- ];
5732
- var defaultProps23 = {
5733
- size: Input.defaultProps.size,
5734
- rounded: Input.defaultProps.rounded,
5735
- fillMode: Input.defaultProps.fillMode
5736
- };
5737
- var options25 = {
5738
- size: [Size.small, Size.medium, Size.large],
5739
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5740
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5741
- };
5742
- var Combobox = (props) => {
5743
- const {
5744
- prefix,
5745
- suffix,
5746
- value,
5747
- placeholder,
5748
- size,
5749
- rounded,
5750
- fillMode,
5751
- hover,
5752
- focus,
5753
- valid,
5754
- invalid,
5755
- required,
5756
- loading,
5757
- disabled,
5758
- popup,
5759
- opened,
5760
- readonly,
5761
- adaptive,
5762
- adaptiveSettings,
5763
- ...other
5764
- } = 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
- ] });
5841
- };
5842
- Combobox.states = states27;
5843
- Combobox.options = options25;
5844
- Combobox.className = COMBOBOX_CLASSNAME;
5845
- Combobox.defaultProps = defaultProps23;
5846
-
5847
- // src/combobox/templates/combobox-normal.tsx
5848
- var import_jsx_runtime56 = require("react/jsx-runtime");
5849
-
5850
- // src/combobox/templates/combobox-popup.tsx
5851
- var import_jsx_runtime57 = require("react/jsx-runtime");
5852
-
5853
- // src/combobox/templates/combobox-grouping.tsx
5854
- var import_jsx_runtime58 = require("react/jsx-runtime");
5855
-
5856
- // src/combobox/templates/combobox-adaptive.tsx
5857
- var import_jsx_runtime59 = require("react/jsx-runtime");
5858
-
5859
- // src/textarea/textarea.spec.tsx
5860
- var import_jsx_runtime60 = require("react/jsx-runtime");
5861
- var TEXTAREA_CLASSNAME = `k-textarea`;
5862
- var states28 = [
5863
- States.hover,
5864
- States.focus,
5865
- States.valid,
5866
- States.invalid,
5867
- States.required,
5868
- States.disabled
5869
- ];
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) => {
5881
- const {
5882
- rows,
5883
- value,
5884
- placeholder,
5885
- size,
5886
- rounded,
5887
- fillMode,
5888
- hover,
5889
- focus,
5890
- valid,
5891
- invalid,
5892
- required,
5893
- disabled,
5894
- ...other
5895
- } = props;
5896
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5897
- Input,
5898
- {
5899
- ...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,
5912
- {
5913
- className: classNames(
5914
- "!k-overflow-auto"
5915
- ),
5916
- value,
5917
- placeholder,
5918
- rows
5919
- }
5920
- )
5921
- }
5922
- );
5923
- };
5924
- Textarea.states = states28;
5925
- Textarea.options = options26;
5926
- Textarea.className = TEXTAREA_CLASSNAME;
5927
- Textarea.defaultProps = defaultProps24;
5928
-
5929
- // src/textarea/templates/textarea-normal.tsx
5930
- var import_jsx_runtime61 = require("react/jsx-runtime");
5931
4900
 
5932
4901
  // src/floating-label/tests/floating-label-flat.tsx
5933
- var import_jsx_runtime62 = require("react/jsx-runtime");
4902
+ var import_jsx_runtime25 = require("react/jsx-runtime");
5934
4903
  var styles = `
5935
4904
  #test-area {
5936
4905
  width: 660px;
@@ -5939,40 +4908,22 @@ var styles = `
5939
4908
  width: 100%;
5940
4909
  }
5941
4910
  `;
5942
- var floating_label_flat_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 flat" }),
5946
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: "Floating label flat 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, { fillMode: "flat" }) }) }),
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, { fillMode: "flat" }) }) }),
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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat" }) }) }),
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, { fillMode: "flat" }) }) }),
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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat", 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, { fillMode: "flat" }) }) }),
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, { fillMode: "flat" }) }) })
4911
+ var floating_label_flat_default = () => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
4912
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("style", { children: styles }),
4913
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
4914
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Floating label flat" }),
4915
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Floating label flat RTL" }),
4916
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FloatingLabelNormal, { label: "Label with placeholder", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TextboxNormal, { fillMode: "flat", placeholder: "placeholder" }) }) }),
4917
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FloatingLabelNormal, { label: "Label with placeholder", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TextboxNormal, { fillMode: "flat", placeholder: "placeholder" }) }) }),
4918
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FloatingLabelNormal, { label: "Label with placeholder focused", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TextboxNormal, { fillMode: "flat", placeholder: "placeholder", focus: true }) }) }),
4919
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FloatingLabelNormal, { label: "Label with placeholder focused", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TextboxNormal, { fillMode: "flat", placeholder: "placeholder", focus: true }) }) }),
4920
+ ["normal", "hover", ...FloatingLabel.states].map((state) => {
4921
+ let value = state;
4922
+ state === "empty" && (value = "");
4923
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
4924
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FloatingLabelNormal, { label: "Label", ...{ [state]: true }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TextboxNormal, { fillMode: "flat", value, ...{ [state]: true } }) }) }),
4925
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { dir: "rtl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FloatingLabelNormal, { label: "Label", ...{ [state]: true }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TextboxNormal, { fillMode: "flat", value, ...{ [state]: true } }) }) })
4926
+ ] });
4927
+ })
5977
4928
  ] })
5978
4929
  ] });