@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
@@ -111,165 +111,47 @@ var States = {
111
111
  "readonly": "readonly"
112
112
  };
113
113
 
114
- // src/floating-label/floating-label.spec.tsx
115
- import { jsx, jsxs } from "react/jsx-runtime";
116
- var FLOATINGLABEL_CLASSNAME = `k-floating-label-container`;
117
- var states = [
118
- States.focus,
119
- States.valid,
120
- States.invalid,
121
- States.empty,
122
- States.disabled
123
- ];
114
+ // src/action-buttons/action-buttons.spec.tsx
115
+ import { jsx } from "react/jsx-runtime";
116
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
117
+ var states = [];
124
118
  var options = {};
125
- var defaultProps = {};
126
- var FloatingLabel = (props) => {
127
- const {
128
- focus,
129
- disabled,
130
- invalid,
131
- valid,
132
- empty,
133
- label,
134
- ...other
135
- } = props;
136
- return /* @__PURE__ */ jsxs(
137
- "span",
138
- {
139
- ...other,
140
- className: classNames(
141
- props.className,
142
- FLOATINGLABEL_CLASSNAME,
143
- stateClassNames(FLOATINGLABEL_CLASSNAME, { focus, disabled, empty, valid, invalid })
144
- ),
145
- children: [
146
- props.children,
147
- label && /* @__PURE__ */ jsx("label", { className: "k-label", children: label })
148
- ]
149
- }
150
- );
151
- };
152
- FloatingLabel.states = states;
153
- FloatingLabel.options = options;
154
- FloatingLabel.className = FLOATINGLABEL_CLASSNAME;
155
- FloatingLabel.defaultProps = defaultProps;
156
-
157
- // src/input/input.spec.tsx
158
- import { jsx as jsx2 } from "react/jsx-runtime";
159
- var INPUT_CLASSNAME = `k-input`;
160
- var states2 = [
161
- States.hover,
162
- States.focus,
163
- States.valid,
164
- States.invalid,
165
- States.required,
166
- States.disabled,
167
- States.loading,
168
- States.readonly
169
- ];
170
- var options2 = {
171
- size: [Size.small, Size.medium, Size.large],
172
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
173
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
174
- };
175
- var defaultProps2 = {
176
- size: Size.medium,
177
- rounded: Size.medium,
178
- fillMode: FillMode.solid
179
- };
180
- var Input = (props) => {
181
- const {
182
- hover,
183
- focus,
184
- disabled,
185
- invalid,
186
- valid,
187
- loading,
188
- readonly,
189
- size = defaultProps2.size,
190
- rounded = defaultProps2.rounded,
191
- fillMode = defaultProps2.fillMode,
192
- ...other
193
- } = props;
194
- return /* @__PURE__ */ jsx2(
195
- "span",
196
- {
197
- ...other,
198
- className: classNames(
199
- props.className,
200
- INPUT_CLASSNAME,
201
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
202
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
203
- )
204
- }
205
- );
206
- };
207
- Input.states = states2;
208
- Input.options = options2;
209
- Input.className = INPUT_CLASSNAME;
210
- Input.defaultProps = defaultProps2;
211
-
212
- // src/input/picker.spec.tsx
213
- import { jsx as jsx3 } from "react/jsx-runtime";
214
- var PICKER_CLASSNAME = `k-picker`;
215
- var pickerStates = [
216
- States.hover,
217
- States.focus,
218
- States.valid,
219
- States.invalid,
220
- States.required,
221
- States.disabled,
222
- States.loading,
223
- States.readonly
224
- ];
225
- var pickerOptions = {
226
- size: [Size.small, Size.medium, Size.large],
227
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
228
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
229
- };
230
- var defaultProps3 = {
231
- size: Size.medium,
232
- rounded: Roundness.medium,
233
- fillMode: FillMode.solid
119
+ var defaultProps = {
120
+ alignment: "start",
121
+ orientation: "horizontal"
234
122
  };
235
- var Picker = (props) => {
123
+ var ActionButtons = (props) => {
236
124
  const {
237
- hover,
238
- focus,
239
- disabled,
240
- invalid,
241
- valid,
242
- loading,
243
- readonly,
244
- size = defaultProps3.size,
245
- rounded = defaultProps3.rounded,
246
- fillMode = defaultProps3.fillMode,
125
+ alignment = defaultProps.alignment,
126
+ orientation = defaultProps.orientation,
247
127
  ...other
248
128
  } = props;
249
- return /* @__PURE__ */ jsx3(
250
- "span",
129
+ return /* @__PURE__ */ jsx(
130
+ "div",
251
131
  {
252
132
  ...other,
253
133
  className: classNames(
254
- props.className,
255
- PICKER_CLASSNAME,
256
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
257
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
134
+ ACTIONBUTTONS_CLASSNAME,
135
+ {
136
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
137
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
138
+ },
139
+ props.className
258
140
  ),
259
141
  children: props.children
260
142
  }
261
143
  );
262
144
  };
263
- Picker.states = pickerStates;
264
- Picker.options = pickerOptions;
265
- Picker.className = PICKER_CLASSNAME;
266
- Picker.defaultProps = defaultProps3;
145
+ ActionButtons.states = states;
146
+ ActionButtons.options = options;
147
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
148
+ ActionButtons.defaultProps = defaultProps;
267
149
 
268
150
  // src/icon/font-icon.spec.tsx
269
- import { Fragment, jsx as jsx4 } from "react/jsx-runtime";
151
+ import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
270
152
  var FONTICON_CLASSNAME = `k-icon`;
271
- var states3 = [];
272
- var options3 = {
153
+ var states2 = [];
154
+ var options2 = {
273
155
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
274
156
  themeColor: [
275
157
  ThemeColor.base,
@@ -284,7 +166,7 @@ var options3 = {
284
166
  ThemeColor.dark
285
167
  ]
286
168
  };
287
- var defaultProps4 = {};
169
+ var defaultProps2 = {};
288
170
  var FontIcon = (props) => {
289
171
  const {
290
172
  size,
@@ -295,9 +177,9 @@ var FontIcon = (props) => {
295
177
  ...other
296
178
  } = props;
297
179
  if (!icon) {
298
- return /* @__PURE__ */ jsx4(Fragment, {});
180
+ return /* @__PURE__ */ jsx2(Fragment, {});
299
181
  }
300
- return /* @__PURE__ */ jsx4(
182
+ return /* @__PURE__ */ jsx2(
301
183
  "span",
302
184
  {
303
185
  ...other,
@@ -318,17 +200,17 @@ var FontIcon = (props) => {
318
200
  }
319
201
  );
320
202
  };
321
- FontIcon.states = states3;
322
- FontIcon.options = options3;
203
+ FontIcon.states = states2;
204
+ FontIcon.options = options2;
323
205
  FontIcon.className = FONTICON_CLASSNAME;
324
- FontIcon.defaultProps = defaultProps4;
206
+ FontIcon.defaultProps = defaultProps2;
325
207
  var font_icon_spec_default = FontIcon;
326
208
 
327
209
  // src/icon/svg-icon.spec.tsx
328
- import { Fragment as Fragment2, jsx as jsx5 } from "react/jsx-runtime";
210
+ import { Fragment as Fragment2, jsx as jsx3 } from "react/jsx-runtime";
329
211
  var SVGICON_CLASSNAME = `k-svg-icon`;
330
- var states4 = [];
331
- var options4 = {
212
+ var states3 = [];
213
+ var options3 = {
332
214
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
333
215
  themeColor: [
334
216
  ThemeColor.base,
@@ -343,7 +225,7 @@ var options4 = {
343
225
  ThemeColor.dark
344
226
  ]
345
227
  };
346
- var defaultProps5 = {
228
+ var defaultProps3 = {
347
229
  viewBox: "0 0 24 24"
348
230
  };
349
231
  var SvgIcon = (props) => {
@@ -352,15 +234,15 @@ var SvgIcon = (props) => {
352
234
  themeColor,
353
235
  rotate,
354
236
  flip,
355
- viewBox = defaultProps5.viewBox,
237
+ viewBox = defaultProps3.viewBox,
356
238
  icon,
357
239
  ...other
358
240
  } = props;
359
241
  if (!icon) {
360
- return /* @__PURE__ */ jsx5(Fragment2, {});
242
+ return /* @__PURE__ */ jsx3(Fragment2, {});
361
243
  }
362
244
  if (icon === "none") {
363
- /* @__PURE__ */ jsx5(
245
+ /* @__PURE__ */ jsx3(
364
246
  "span",
365
247
  {
366
248
  ...other,
@@ -373,7 +255,7 @@ var SvgIcon = (props) => {
373
255
  );
374
256
  }
375
257
  const name = typeof icon === "object" && icon.name && icon.name;
376
- return /* @__PURE__ */ jsx5(
258
+ return /* @__PURE__ */ jsx3(
377
259
  "span",
378
260
  {
379
261
  ...other,
@@ -391,7 +273,7 @@ var SvgIcon = (props) => {
391
273
  "k-flip-v": flip === "v" || flip === "both"
392
274
  }
393
275
  ),
394
- children: /* @__PURE__ */ jsx5(
276
+ children: /* @__PURE__ */ jsx3(
395
277
  "svg",
396
278
  {
397
279
  "aria-hidden": true,
@@ -405,10 +287,10 @@ var SvgIcon = (props) => {
405
287
  }
406
288
  );
407
289
  };
408
- SvgIcon.states = states4;
409
- SvgIcon.options = options4;
290
+ SvgIcon.states = states3;
291
+ SvgIcon.options = options3;
410
292
  SvgIcon.className = SVGICON_CLASSNAME;
411
- SvgIcon.defaultProps = defaultProps5;
293
+ SvgIcon.defaultProps = defaultProps3;
412
294
  var svg_icon_spec_default = SvgIcon;
413
295
 
414
296
  // node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4407,13 +4289,13 @@ var chartChoroplethIcon = {
4407
4289
  };
4408
4290
 
4409
4291
  // src/icon/icon.spec.tsx
4410
- import { Fragment as Fragment3, jsx as jsx6 } from "react/jsx-runtime";
4292
+ import { Fragment as Fragment3, jsx as jsx4 } from "react/jsx-runtime";
4411
4293
  var snakeToCamel = (str) => str.toLowerCase().replace(
4412
4294
  /([-_][a-z])/g,
4413
4295
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4414
4296
  );
4415
- var states5 = [];
4416
- var options5 = {
4297
+ var states4 = [];
4298
+ var options4 = {
4417
4299
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4418
4300
  themeColor: [
4419
4301
  ThemeColor.base,
@@ -4428,7 +4310,7 @@ var options5 = {
4428
4310
  ThemeColor.dark
4429
4311
  ]
4430
4312
  };
4431
- var defaultProps6 = {
4313
+ var defaultProps4 = {
4432
4314
  viewBox: "0 0 24 24",
4433
4315
  type: "svg"
4434
4316
  };
@@ -4437,96 +4319,524 @@ var Icon = (props) => {
4437
4319
  size,
4438
4320
  themeColor,
4439
4321
  icon,
4440
- type = defaultProps6.type,
4322
+ type = defaultProps4.type,
4441
4323
  rotate,
4442
4324
  flip,
4443
- viewBox = defaultProps6.viewBox,
4325
+ viewBox = defaultProps4.viewBox,
4444
4326
  ...other
4445
4327
  } = props;
4446
4328
  if (!icon) {
4447
- return /* @__PURE__ */ jsx6(Fragment3, {});
4329
+ return /* @__PURE__ */ jsx4(Fragment3, {});
4448
4330
  }
4449
4331
  if (type === "svg") {
4450
4332
  if (icon === "none") {
4451
- return /* @__PURE__ */ jsx6(svg_icon_spec_default, { ...other, icon, size });
4333
+ return /* @__PURE__ */ jsx4(svg_icon_spec_default, { ...other, icon, size });
4452
4334
  }
4453
4335
  const iconSVG = snakeToCamel(`${icon}-icon`);
4454
4336
  if (!index_es_exports[iconSVG]) {
4455
- return /* @__PURE__ */ jsx6(Fragment3, {});
4337
+ return /* @__PURE__ */ jsx4(Fragment3, {});
4456
4338
  }
4457
- return /* @__PURE__ */ jsx6(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4339
+ return /* @__PURE__ */ jsx4(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4458
4340
  }
4459
- return /* @__PURE__ */ jsx6(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4341
+ return /* @__PURE__ */ jsx4(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4460
4342
  };
4461
- Icon.states = states5;
4462
- Icon.options = options5;
4463
- Icon.defaultProps = defaultProps6;
4343
+ Icon.states = states4;
4344
+ Icon.options = options4;
4345
+ Icon.defaultProps = defaultProps4;
4464
4346
 
4465
- // src/input/input-clear-value.tsx
4466
- import { Fragment as Fragment4, jsx as jsx7 } from "react/jsx-runtime";
4467
- var className = `k-clear-value`;
4468
- var states6 = [
4469
- States.disabled,
4470
- States.loading,
4471
- States.readonly
4347
+ // src/button/button.spec.tsx
4348
+ import { Fragment as Fragment4, jsx as jsx5, jsxs } from "react/jsx-runtime";
4349
+ var BUTTON_CLASSNAME = `k-button`;
4350
+ var states5 = [
4351
+ States.hover,
4352
+ States.focus,
4353
+ States.active,
4354
+ States.selected,
4355
+ States.disabled
4472
4356
  ];
4473
- var options6 = {};
4474
- var InputClearValue = (props) => {
4357
+ var options5 = {
4358
+ size: [Size.small, Size.medium, Size.large],
4359
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4360
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4361
+ themeColor: [
4362
+ ThemeColor.base,
4363
+ ThemeColor.primary,
4364
+ ThemeColor.secondary,
4365
+ ThemeColor.tertiary,
4366
+ ThemeColor.success,
4367
+ ThemeColor.warning,
4368
+ ThemeColor.error,
4369
+ ThemeColor.info,
4370
+ ThemeColor.light,
4371
+ ThemeColor.dark,
4372
+ ThemeColor.inverse
4373
+ ]
4374
+ };
4375
+ var defaultProps5 = {
4376
+ size: Size.medium,
4377
+ rounded: Roundness.medium,
4378
+ fillMode: FillMode.solid,
4379
+ themeColor: ThemeColor.base,
4380
+ showArrow: false,
4381
+ arrowIconName: "caret-alt-down"
4382
+ };
4383
+ var Button = (props) => {
4475
4384
  const {
4385
+ size = defaultProps5.size,
4386
+ rounded = defaultProps5.rounded,
4387
+ fillMode = defaultProps5.fillMode,
4388
+ themeColor = defaultProps5.themeColor,
4389
+ hover,
4390
+ focus,
4391
+ active,
4392
+ selected,
4476
4393
  disabled,
4477
- loading,
4478
- readonly,
4479
- value
4394
+ icon,
4395
+ text,
4396
+ iconClassName,
4397
+ showArrow = defaultProps5.showArrow,
4398
+ arrowIconName = defaultProps5.arrowIconName,
4399
+ ...other
4480
4400
  } = props;
4481
- if (disabled || readonly || loading || !value) {
4482
- return /* @__PURE__ */ jsx7(Fragment4, {});
4483
- }
4484
- return /* @__PURE__ */ jsx7("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx7(Icon, { icon: "x" }) });
4401
+ const hasIcon = icon !== void 0;
4402
+ const hasChildren = props.children !== void 0;
4403
+ return /* @__PURE__ */ jsxs(
4404
+ "button",
4405
+ {
4406
+ ...other,
4407
+ className: classNames(
4408
+ props.className,
4409
+ BUTTON_CLASSNAME,
4410
+ optionClassNames(BUTTON_CLASSNAME, {
4411
+ size,
4412
+ rounded,
4413
+ fillMode,
4414
+ themeColor
4415
+ }),
4416
+ stateClassNames(BUTTON_CLASSNAME, {
4417
+ hover,
4418
+ focus,
4419
+ active,
4420
+ disabled,
4421
+ selected
4422
+ }),
4423
+ {
4424
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4425
+ }
4426
+ ),
4427
+ children: [
4428
+ icon && /* @__PURE__ */ jsx5(
4429
+ Icon,
4430
+ {
4431
+ className: classNames(iconClassName, "k-button-icon"),
4432
+ icon
4433
+ }
4434
+ ),
4435
+ text ? /* @__PURE__ */ jsxs(Fragment4, { children: [
4436
+ text && /* @__PURE__ */ jsx5("span", { className: "k-button-text", children: text }),
4437
+ props.children
4438
+ ] }) : props.children && /* @__PURE__ */ jsx5("span", { className: "k-button-text", children: props.children }),
4439
+ showArrow && /* @__PURE__ */ jsx5("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx5(Icon, { icon: arrowIconName }) })
4440
+ ]
4441
+ }
4442
+ );
4485
4443
  };
4486
- InputClearValue.states = states6;
4487
- InputClearValue.options = options6;
4488
- InputClearValue.className = className;
4444
+ Button.states = states5;
4445
+ Button.options = options5;
4446
+ Button.className = BUTTON_CLASSNAME;
4447
+ Button.defaultProps = defaultProps5;
4489
4448
 
4490
- // src/input/input-inner-input.tsx
4449
+ // src/button/templates/icon-button.tsx
4450
+ import { jsx as jsx6 } from "react/jsx-runtime";
4451
+
4452
+ // src/button/templates/icon-text-button.tsx
4453
+ import { jsx as jsx7 } from "react/jsx-runtime";
4454
+
4455
+ // src/button/templates/text-button.tsx
4491
4456
  import { jsx as jsx8 } from "react/jsx-runtime";
4492
- var className2 = `k-input-inner`;
4493
- var states7 = [];
4494
- var options7 = {};
4495
- var defaultProps7 = {
4496
- type: "text",
4497
- autocomplete: "off",
4498
- value: "",
4499
- placeholder: ""
4457
+
4458
+ // src/window/window.spec.tsx
4459
+ import { Fragment as Fragment5, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
4460
+ var WINDOW_CLASSNAME = `k-window`;
4461
+ var states6 = [];
4462
+ var options6 = {
4463
+ themeColor: [
4464
+ ThemeColor.primary,
4465
+ ThemeColor.light,
4466
+ ThemeColor.dark
4467
+ ]
4500
4468
  };
4501
- var InputInnerInput = (props) => {
4469
+ var defaultProps6 = {};
4470
+ var Window = (props) => {
4502
4471
  const {
4503
- value = defaultProps7.value,
4504
- type = defaultProps7.type,
4505
- placeholder = defaultProps7.placeholder,
4506
- autocomplete = defaultProps7.autocomplete,
4472
+ title,
4473
+ actions,
4474
+ minimized,
4475
+ themeColor,
4476
+ actionButtons,
4477
+ actionButtonsAlign,
4507
4478
  ...other
4508
4479
  } = props;
4509
- return /* @__PURE__ */ jsx8(
4510
- "input",
4480
+ return /* @__PURE__ */ jsxs2(
4481
+ "div",
4511
4482
  {
4512
4483
  ...other,
4513
- type,
4514
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4484
+ className: classNames(
4485
+ props.className,
4486
+ WINDOW_CLASSNAME,
4487
+ optionClassNames(WINDOW_CLASSNAME, { themeColor }),
4488
+ {
4489
+ [`${WINDOW_CLASSNAME}-minimized`]: minimized
4490
+ }
4491
+ ),
4492
+ children: [
4493
+ (title !== void 0 || actions) && /* @__PURE__ */ jsxs2("div", { className: "k-window-titlebar", children: [
4494
+ title !== void 0 && /* @__PURE__ */ jsx9("span", { className: "k-window-title", children: title }),
4495
+ actions && /* @__PURE__ */ jsx9(Fragment5, { children: /* @__PURE__ */ jsx9("div", { className: "k-window-titlebar-actions", children: actions.map(
4496
+ (actionName) => /* @__PURE__ */ jsx9(Button, { icon: actionName, fillMode: "flat", className: "k-window-titlebar-action" }, actionName)
4497
+ ) }) })
4498
+ ] }),
4499
+ /* @__PURE__ */ jsx9("div", { className: classNames(
4500
+ "k-window-content",
4501
+ {
4502
+ "k-hidden": minimized
4503
+ }
4504
+ ), children: props.children }),
4505
+ actionButtons && /* @__PURE__ */ jsx9(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
4506
+ ]
4507
+ }
4508
+ );
4509
+ };
4510
+ Window.states = states6;
4511
+ Window.options = options6;
4512
+ Window.className = WINDOW_CLASSNAME;
4513
+ Window.defaultProps = defaultProps6;
4514
+
4515
+ // src/form/form-field.tsx
4516
+ import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
4517
+ var FORMFIELD_CLASSNAME = "k-form-field";
4518
+ var states7 = [
4519
+ States.disabled
4520
+ ];
4521
+ var FormField = (props) => {
4522
+ const {
4523
+ label,
4524
+ orientation,
4525
+ optional,
4526
+ editor,
4527
+ hint,
4528
+ error,
4529
+ info,
4530
+ disabled,
4531
+ dir,
4532
+ colSpan
4533
+ } = props;
4534
+ return /* @__PURE__ */ jsxs3(
4535
+ "div",
4536
+ {
4537
+ className: classNames(
4538
+ FORMFIELD_CLASSNAME,
4539
+ props.className,
4540
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled }),
4541
+ {
4542
+ [`k-col-span-${colSpan}`]: colSpan
4543
+ }
4544
+ ),
4545
+ dir,
4546
+ children: [
4547
+ label && /* @__PURE__ */ jsxs3("label", { className: classNames(
4548
+ "k-label",
4549
+ "k-form-label"
4550
+ ), children: [
4551
+ label,
4552
+ optional && /* @__PURE__ */ jsx10("span", { className: "k-label-optional", children: "(Optional)" }),
4553
+ info && /* @__PURE__ */ jsx10("span", { className: "k-field-info", children: "(field info)" })
4554
+ ] }),
4555
+ orientation === "horizontal" && !label && /* @__PURE__ */ jsx10("span", { className: "k-label k-form-label k-label-empty" }),
4556
+ /* @__PURE__ */ jsxs3("div", { className: "k-form-field-wrap", children: [
4557
+ editor,
4558
+ hint && /* @__PURE__ */ jsx10("div", { className: "k-form-hint", children: hint }),
4559
+ error && /* @__PURE__ */ jsx10("div", { className: "k-form-error", children: error })
4560
+ ] })
4561
+ ]
4562
+ }
4563
+ );
4564
+ };
4565
+ FormField.className = FORMFIELD_CLASSNAME;
4566
+
4567
+ // src/form/fieldset.tsx
4568
+ import { Fragment as Fragment6, jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
4569
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
4570
+ var Fieldset = (props) => {
4571
+ const {
4572
+ legend,
4573
+ layout,
4574
+ cols,
4575
+ gapX,
4576
+ gapY
4577
+ } = props;
4578
+ return /* @__PURE__ */ jsxs4("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
4579
+ legend && /* @__PURE__ */ jsx11("legend", { className: "k-form-legend", children: legend }),
4580
+ layout === "grid" ? /* @__PURE__ */ jsx11("div", { className: classNames(
4581
+ "k-form-layout",
4582
+ "k-d-grid",
4583
+ {
4584
+ [`k-grid-cols-${cols}`]: cols,
4585
+ [`k-gap-x-${gapX}`]: gapX,
4586
+ [`k-gap-y-${gapY}`]: gapY
4587
+ }
4588
+ ), children: props.children }) : /* @__PURE__ */ jsx11(Fragment6, { children: props.children })
4589
+ ] });
4590
+ };
4591
+ Fieldset.className = FIELDSET_CLASSNAME;
4592
+
4593
+ // src/form/form.spec.tsx
4594
+ import { Fragment as Fragment7, jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
4595
+ import { createElement } from "react";
4596
+ var FORM_CLASSNAME = "k-form";
4597
+ var states8 = [];
4598
+ var options7 = {
4599
+ size: [Size.small, Size.medium, Size.large]
4600
+ };
4601
+ var defaultProps7 = {
4602
+ size: Size.medium,
4603
+ layout: "basic",
4604
+ tag: "form"
4605
+ };
4606
+ var Form = (props) => {
4607
+ const {
4608
+ size = defaultProps7.size,
4609
+ orientation,
4610
+ layout = defaultProps7.layout,
4611
+ formButtons,
4612
+ cols,
4613
+ gapX,
4614
+ gapY,
4615
+ tag = defaultProps7.tag,
4616
+ children
4617
+ } = props;
4618
+ const Parent = ({ tag: tag2, className: className13, children: children2 }) => tag2 === "form" ? /* @__PURE__ */ jsx12("form", { className: className13, children: children2 }) : /* @__PURE__ */ jsx12("div", { className: className13, children: children2 });
4619
+ const formChildren = [];
4620
+ if (children) {
4621
+ if (Array.isArray(children)) {
4622
+ children.map((child, index) => {
4623
+ if (child.type === FormField) {
4624
+ formChildren.push(
4625
+ /* @__PURE__ */ createElement(FormField, { ...child.props, orientation, key: index })
4626
+ );
4627
+ } else {
4628
+ formChildren.push(child);
4629
+ }
4630
+ });
4631
+ } else if (children.type === FormField) {
4632
+ formChildren.push(/* @__PURE__ */ createElement(FormField, { ...children.props, orientation, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
4633
+ } else {
4634
+ children.type === Fieldset && formChildren.push(/* @__PURE__ */ createElement(Fieldset, { ...children.props, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
4635
+ }
4636
+ }
4637
+ return /* @__PURE__ */ jsxs5(Parent, { tag, className: classNames(
4638
+ props.className,
4639
+ FORM_CLASSNAME,
4640
+ optionClassNames(FORM_CLASSNAME, {
4641
+ size
4642
+ }),
4643
+ {
4644
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
4645
+ }
4646
+ ), children: [
4647
+ layout === "grid" ? /* @__PURE__ */ jsx12("div", { className: classNames(
4648
+ "k-form-layout",
4649
+ "k-d-grid",
4650
+ {
4651
+ [`k-grid-cols-${cols}`]: cols,
4652
+ [`k-gap-x-${gapX}`]: gapX,
4653
+ [`k-gap-y-${gapY}`]: gapY
4654
+ }
4655
+ ), children: formChildren }) : /* @__PURE__ */ jsx12(Fragment7, { children: formChildren }),
4656
+ formButtons && /* @__PURE__ */ jsx12("div", { className: "k-form-buttons", children: formButtons })
4657
+ ] });
4658
+ };
4659
+ Form.states = states8;
4660
+ Form.options = options7;
4661
+ Form.className = FORM_CLASSNAME;
4662
+ Form.defaultProps = defaultProps7;
4663
+
4664
+ // src/input/input.spec.tsx
4665
+ import { jsx as jsx13 } from "react/jsx-runtime";
4666
+ var INPUT_CLASSNAME = `k-input`;
4667
+ var states9 = [
4668
+ States.hover,
4669
+ States.focus,
4670
+ States.valid,
4671
+ States.invalid,
4672
+ States.required,
4673
+ States.disabled,
4674
+ States.loading,
4675
+ States.readonly
4676
+ ];
4677
+ var options8 = {
4678
+ size: [Size.small, Size.medium, Size.large],
4679
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4680
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4681
+ };
4682
+ var defaultProps8 = {
4683
+ size: Size.medium,
4684
+ rounded: Size.medium,
4685
+ fillMode: FillMode.solid
4686
+ };
4687
+ var Input = (props) => {
4688
+ const {
4689
+ hover,
4690
+ focus,
4691
+ disabled,
4692
+ invalid,
4693
+ valid,
4694
+ loading,
4695
+ readonly,
4696
+ size = defaultProps8.size,
4697
+ rounded = defaultProps8.rounded,
4698
+ fillMode = defaultProps8.fillMode,
4699
+ ...other
4700
+ } = props;
4701
+ return /* @__PURE__ */ jsx13(
4702
+ "span",
4703
+ {
4704
+ ...other,
4705
+ className: classNames(
4706
+ props.className,
4707
+ INPUT_CLASSNAME,
4708
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4709
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4710
+ )
4711
+ }
4712
+ );
4713
+ };
4714
+ Input.states = states9;
4715
+ Input.options = options8;
4716
+ Input.className = INPUT_CLASSNAME;
4717
+ Input.defaultProps = defaultProps8;
4718
+
4719
+ // src/input/picker.spec.tsx
4720
+ import { jsx as jsx14 } from "react/jsx-runtime";
4721
+ var PICKER_CLASSNAME = `k-picker`;
4722
+ var pickerStates = [
4723
+ States.hover,
4724
+ States.focus,
4725
+ States.valid,
4726
+ States.invalid,
4727
+ States.required,
4728
+ States.disabled,
4729
+ States.loading,
4730
+ States.readonly
4731
+ ];
4732
+ var pickerOptions = {
4733
+ size: [Size.small, Size.medium, Size.large],
4734
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4735
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4736
+ };
4737
+ var defaultProps9 = {
4738
+ size: Size.medium,
4739
+ rounded: Roundness.medium,
4740
+ fillMode: FillMode.solid
4741
+ };
4742
+ var Picker = (props) => {
4743
+ const {
4744
+ hover,
4745
+ focus,
4746
+ disabled,
4747
+ invalid,
4748
+ valid,
4749
+ loading,
4750
+ readonly,
4751
+ size = defaultProps9.size,
4752
+ rounded = defaultProps9.rounded,
4753
+ fillMode = defaultProps9.fillMode,
4754
+ ...other
4755
+ } = props;
4756
+ return /* @__PURE__ */ jsx14(
4757
+ "span",
4758
+ {
4759
+ ...other,
4760
+ className: classNames(
4761
+ props.className,
4762
+ PICKER_CLASSNAME,
4763
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4764
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4765
+ ),
4766
+ children: props.children
4767
+ }
4768
+ );
4769
+ };
4770
+ Picker.states = pickerStates;
4771
+ Picker.options = pickerOptions;
4772
+ Picker.className = PICKER_CLASSNAME;
4773
+ Picker.defaultProps = defaultProps9;
4774
+
4775
+ // src/input/input-clear-value.tsx
4776
+ import { Fragment as Fragment8, jsx as jsx15 } from "react/jsx-runtime";
4777
+ var className = `k-clear-value`;
4778
+ var states10 = [
4779
+ States.disabled,
4780
+ States.loading,
4781
+ States.readonly
4782
+ ];
4783
+ var options9 = {};
4784
+ var InputClearValue = (props) => {
4785
+ const {
4786
+ disabled,
4787
+ loading,
4788
+ readonly,
4789
+ value
4790
+ } = props;
4791
+ if (disabled || readonly || loading || !value) {
4792
+ return /* @__PURE__ */ jsx15(Fragment8, {});
4793
+ }
4794
+ return /* @__PURE__ */ jsx15("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx15(Icon, { icon: "x" }) });
4795
+ };
4796
+ InputClearValue.states = states10;
4797
+ InputClearValue.options = options9;
4798
+ InputClearValue.className = className;
4799
+
4800
+ // src/input/input-inner-input.tsx
4801
+ import { jsx as jsx16 } from "react/jsx-runtime";
4802
+ var className2 = `k-input-inner`;
4803
+ var states11 = [];
4804
+ var options10 = {};
4805
+ var defaultProps10 = {
4806
+ type: "text",
4807
+ autocomplete: "off",
4808
+ value: "",
4809
+ placeholder: ""
4810
+ };
4811
+ var InputInnerInput = (props) => {
4812
+ const {
4813
+ value = defaultProps10.value,
4814
+ type = defaultProps10.type,
4815
+ placeholder = defaultProps10.placeholder,
4816
+ autocomplete = defaultProps10.autocomplete,
4817
+ ...other
4818
+ } = props;
4819
+ return /* @__PURE__ */ jsx16(
4820
+ "input",
4821
+ {
4822
+ ...other,
4823
+ type,
4824
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
4515
4825
  placeholder,
4516
4826
  autoComplete: autocomplete,
4517
4827
  defaultValue: value
4518
4828
  }
4519
4829
  );
4520
4830
  };
4521
- InputInnerInput.states = states7;
4522
- InputInnerInput.options = options7;
4831
+ InputInnerInput.states = states11;
4832
+ InputInnerInput.options = options10;
4523
4833
  InputInnerInput.className = className2;
4524
4834
 
4525
4835
  // src/input/input-inner-span.tsx
4526
- import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
4836
+ import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
4527
4837
  var className3 = `k-input-inner`;
4528
- var states8 = [];
4529
- var options8 = {};
4838
+ var states12 = [];
4839
+ var options11 = {};
4530
4840
  var InputInnerSpan = (props) => {
4531
4841
  const {
4532
4842
  value,
@@ -4536,41 +4846,41 @@ var InputInnerSpan = (props) => {
4536
4846
  valueIconName,
4537
4847
  ...other
4538
4848
  } = props;
4539
- return /* @__PURE__ */ jsxs2(
4849
+ return /* @__PURE__ */ jsxs6(
4540
4850
  "span",
4541
4851
  {
4542
4852
  ...other,
4543
4853
  className: classNames(props.className, className3, optionClassNames(className3, props)),
4544
4854
  children: [
4545
4855
  valueIcon,
4546
- !valueIcon && valueIconName && /* @__PURE__ */ jsx9(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4856
+ !valueIcon && valueIconName && /* @__PURE__ */ jsx17(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4547
4857
  showValue && !value && placeholder,
4548
- showValue && value && /* @__PURE__ */ jsx9("span", { className: "k-input-value-text", children: value })
4858
+ showValue && value && /* @__PURE__ */ jsx17("span", { className: "k-input-value-text", children: value })
4549
4859
  ]
4550
4860
  }
4551
4861
  );
4552
4862
  };
4553
- InputInnerSpan.states = states8;
4554
- InputInnerSpan.options = options8;
4863
+ InputInnerSpan.states = states12;
4864
+ InputInnerSpan.options = options11;
4555
4865
  InputInnerSpan.className = className3;
4556
4866
 
4557
4867
  // src/input/input-inner-textarea.tsx
4558
- import { jsx as jsx10 } from "react/jsx-runtime";
4559
- var defaultProps8 = {
4868
+ import { jsx as jsx18 } from "react/jsx-runtime";
4869
+ var defaultProps11 = {
4560
4870
  value: "",
4561
4871
  placeholder: ""
4562
4872
  };
4563
4873
  var className4 = `k-input-inner`;
4564
- var states9 = [];
4565
- var options9 = {};
4874
+ var states13 = [];
4875
+ var options12 = {};
4566
4876
  var InputInnerTextarea = (props) => {
4567
4877
  const {
4568
- value = defaultProps8.value,
4569
- placeholder = defaultProps8.placeholder,
4878
+ value = defaultProps11.value,
4879
+ placeholder = defaultProps11.placeholder,
4570
4880
  rows,
4571
4881
  ...other
4572
4882
  } = props;
4573
- return /* @__PURE__ */ jsx10(
4883
+ return /* @__PURE__ */ jsx18(
4574
4884
  "textarea",
4575
4885
  {
4576
4886
  ...other,
@@ -4581,14 +4891,14 @@ var InputInnerTextarea = (props) => {
4581
4891
  }
4582
4892
  );
4583
4893
  };
4584
- InputInnerTextarea.states = states9;
4585
- InputInnerTextarea.options = options9;
4894
+ InputInnerTextarea.states = states13;
4895
+ InputInnerTextarea.options = options12;
4586
4896
  InputInnerTextarea.className = className4;
4587
4897
 
4588
4898
  // src/input/input-loading-icon.tsx
4589
- import { Fragment as Fragment5, jsx as jsx11 } from "react/jsx-runtime";
4899
+ import { Fragment as Fragment9, jsx as jsx19 } from "react/jsx-runtime";
4590
4900
  var className5 = `k-input-loading-icon`;
4591
- var states10 = [
4901
+ var states14 = [
4592
4902
  States.disabled,
4593
4903
  States.loading
4594
4904
  ];
@@ -4598,21 +4908,21 @@ var InputLoadingIcon = (props) => {
4598
4908
  loading
4599
4909
  } = props;
4600
4910
  if (disabled || !loading) {
4601
- return /* @__PURE__ */ jsx11(Fragment5, {});
4911
+ return /* @__PURE__ */ jsx19(Fragment9, {});
4602
4912
  }
4603
- return /* @__PURE__ */ jsx11(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4913
+ return /* @__PURE__ */ jsx19(Icon, { className: classNames(props.className, className5), icon: "loading", type: "font" });
4604
4914
  };
4605
4915
 
4606
4916
  // src/input/input-validation-icon.tsx
4607
- import { Fragment as Fragment6, jsx as jsx12 } from "react/jsx-runtime";
4917
+ import { Fragment as Fragment10, jsx as jsx20 } from "react/jsx-runtime";
4608
4918
  var className6 = `k-input-validation-icon`;
4609
- var states11 = [
4919
+ var states15 = [
4610
4920
  States.valid,
4611
4921
  States.invalid,
4612
4922
  States.disabled,
4613
4923
  States.loading
4614
4924
  ];
4615
- var options10 = {};
4925
+ var options13 = {};
4616
4926
  var InputValidationIcon = (props) => {
4617
4927
  const {
4618
4928
  valid,
@@ -4623,41 +4933,41 @@ var InputValidationIcon = (props) => {
4623
4933
  const iconName = invalid ? "exclamation-circle" : "check";
4624
4934
  const renderValidationIcon = Boolean(valid || invalid);
4625
4935
  if (disabled || loading || !renderValidationIcon) {
4626
- return /* @__PURE__ */ jsx12(Fragment6, {});
4936
+ return /* @__PURE__ */ jsx20(Fragment10, {});
4627
4937
  }
4628
- return /* @__PURE__ */ jsx12(Icon, { className: classNames(className6), icon: iconName });
4938
+ return /* @__PURE__ */ jsx20(Icon, { className: classNames(className6), icon: iconName });
4629
4939
  };
4630
- InputValidationIcon.states = states11;
4631
- InputValidationIcon.options = options10;
4940
+ InputValidationIcon.states = states15;
4941
+ InputValidationIcon.options = options13;
4632
4942
  InputValidationIcon.className = className6;
4633
4943
 
4634
4944
  // src/input/input-prefix.tsx
4635
- import { Fragment as Fragment7, jsx as jsx13 } from "react/jsx-runtime";
4945
+ import { Fragment as Fragment11, jsx as jsx21 } from "react/jsx-runtime";
4636
4946
  var className7 = `k-input-prefix`;
4637
4947
  var InputPrefix = (props) => {
4638
4948
  if (!props.children) {
4639
- return /* @__PURE__ */ jsx13(Fragment7, {});
4949
+ return /* @__PURE__ */ jsx21(Fragment11, {});
4640
4950
  }
4641
- return /* @__PURE__ */ jsx13("span", { className: classNames(className7, props.className), children: props.children });
4951
+ return /* @__PURE__ */ jsx21("span", { className: classNames(className7, props.className), children: props.children });
4642
4952
  };
4643
4953
 
4644
4954
  // src/input/input-suffix.tsx
4645
- import { Fragment as Fragment8, jsx as jsx14 } from "react/jsx-runtime";
4955
+ import { Fragment as Fragment12, jsx as jsx22 } from "react/jsx-runtime";
4646
4956
  var className8 = `k-input-suffix`;
4647
4957
  var InputSuffix = (props) => {
4648
4958
  if (!props.children) {
4649
- return /* @__PURE__ */ jsx14(Fragment8, {});
4959
+ return /* @__PURE__ */ jsx22(Fragment12, {});
4650
4960
  }
4651
- return /* @__PURE__ */ jsx14("span", { className: classNames(className8, props.className), children: props.children });
4961
+ return /* @__PURE__ */ jsx22("span", { className: classNames(className8, props.className), children: props.children });
4652
4962
  };
4653
4963
 
4654
4964
  // src/input/input-separator.tsx
4655
- import { jsx as jsx15 } from "react/jsx-runtime";
4965
+ import { jsx as jsx23 } from "react/jsx-runtime";
4656
4966
 
4657
4967
  // src/textbox/textbox.spec.tsx
4658
- import { jsx as jsx16, jsxs as jsxs3 } from "react/jsx-runtime";
4968
+ import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
4659
4969
  var TEXTBOX_CLASSNAME = `k-textbox`;
4660
- var states12 = [
4970
+ var states16 = [
4661
4971
  States.hover,
4662
4972
  States.focus,
4663
4973
  States.valid,
@@ -4667,12 +4977,12 @@ var states12 = [
4667
4977
  States.loading,
4668
4978
  States.readonly
4669
4979
  ];
4670
- var options11 = {
4980
+ var options14 = {
4671
4981
  size: [Size.small, Size.medium, Size.large],
4672
4982
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4673
4983
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4674
4984
  };
4675
- var defaultProps9 = {
4985
+ var defaultProps12 = {
4676
4986
  showClearButton: true,
4677
4987
  size: Input.defaultProps.size,
4678
4988
  rounded: Input.defaultProps.rounded,
@@ -4695,10 +5005,10 @@ var Textbox = (props) => {
4695
5005
  loading,
4696
5006
  disabled,
4697
5007
  readonly,
4698
- showClearButton = defaultProps9.showClearButton,
5008
+ showClearButton = defaultProps12.showClearButton,
4699
5009
  ...other
4700
5010
  } = props;
4701
- return /* @__PURE__ */ jsxs3(
5011
+ return /* @__PURE__ */ jsxs7(
4702
5012
  Input,
4703
5013
  {
4704
5014
  ...other,
@@ -4715,9 +5025,9 @@ var Textbox = (props) => {
4715
5025
  readonly,
4716
5026
  className: classNames(props.className, TEXTBOX_CLASSNAME),
4717
5027
  children: [
4718
- /* @__PURE__ */ jsx16(InputPrefix, { children: prefix }),
4719
- /* @__PURE__ */ jsx16(InputInnerInput, { placeholder, value }),
4720
- /* @__PURE__ */ jsx16(
5028
+ /* @__PURE__ */ jsx24(InputPrefix, { children: prefix }),
5029
+ /* @__PURE__ */ jsx24(InputInnerInput, { placeholder, value }),
5030
+ /* @__PURE__ */ jsx24(
4721
5031
  InputValidationIcon,
4722
5032
  {
4723
5033
  valid,
@@ -4726,14 +5036,14 @@ var Textbox = (props) => {
4726
5036
  disabled
4727
5037
  }
4728
5038
  ),
4729
- /* @__PURE__ */ jsx16(
5039
+ /* @__PURE__ */ jsx24(
4730
5040
  InputLoadingIcon,
4731
5041
  {
4732
5042
  loading,
4733
5043
  disabled
4734
5044
  }
4735
5045
  ),
4736
- showClearButton && /* @__PURE__ */ jsx16(
5046
+ showClearButton && /* @__PURE__ */ jsx24(
4737
5047
  InputClearValue,
4738
5048
  {
4739
5049
  loading,
@@ -4742,498 +5052,220 @@ var Textbox = (props) => {
4742
5052
  value
4743
5053
  }
4744
5054
  ),
4745
- /* @__PURE__ */ jsx16(InputSuffix, { children: suffix })
5055
+ /* @__PURE__ */ jsx24(InputSuffix, { children: suffix })
4746
5056
  ]
4747
5057
  }
4748
5058
  );
4749
5059
  };
4750
- Textbox.states = states12;
4751
- Textbox.options = options11;
5060
+ Textbox.states = states16;
5061
+ Textbox.options = options14;
4752
5062
  Textbox.className = TEXTBOX_CLASSNAME;
4753
- Textbox.defaultProps = defaultProps9;
5063
+ Textbox.defaultProps = defaultProps12;
4754
5064
 
4755
5065
  // src/textbox/templates/textbox-normal.tsx
4756
- import { jsx as jsx17 } from "react/jsx-runtime";
4757
-
4758
- // src/button/button.spec.tsx
4759
- import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
4760
- var BUTTON_CLASSNAME = `k-button`;
4761
- var states13 = [
4762
- States.hover,
4763
- States.focus,
4764
- States.active,
4765
- States.selected,
4766
- States.disabled
4767
- ];
4768
- var options12 = {
4769
- size: [Size.small, Size.medium, Size.large],
4770
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4771
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4772
- themeColor: [
4773
- ThemeColor.base,
4774
- ThemeColor.primary,
4775
- ThemeColor.secondary,
4776
- ThemeColor.tertiary,
4777
- ThemeColor.success,
4778
- ThemeColor.warning,
4779
- ThemeColor.error,
4780
- ThemeColor.info,
4781
- ThemeColor.light,
4782
- ThemeColor.dark,
4783
- ThemeColor.inverse
4784
- ]
4785
- };
4786
- var defaultProps10 = {
4787
- size: Size.medium,
4788
- rounded: Roundness.medium,
4789
- fillMode: FillMode.solid,
4790
- themeColor: ThemeColor.base,
4791
- showArrow: false,
4792
- arrowIconName: "caret-alt-down"
4793
- };
4794
- var Button = (props) => {
4795
- const {
4796
- size = defaultProps10.size,
4797
- rounded = defaultProps10.rounded,
4798
- fillMode = defaultProps10.fillMode,
4799
- themeColor = defaultProps10.themeColor,
4800
- hover,
4801
- focus,
4802
- active,
4803
- selected,
4804
- disabled,
4805
- icon,
4806
- text,
4807
- iconClassName,
4808
- showArrow = defaultProps10.showArrow,
4809
- arrowIconName = defaultProps10.arrowIconName,
4810
- ...other
4811
- } = props;
4812
- const hasIcon = icon !== void 0;
4813
- const hasChildren = props.children !== void 0;
4814
- return /* @__PURE__ */ jsxs4(
4815
- "button",
4816
- {
4817
- ...other,
4818
- className: classNames(
4819
- props.className,
4820
- BUTTON_CLASSNAME,
4821
- optionClassNames(BUTTON_CLASSNAME, {
4822
- size,
4823
- rounded,
4824
- fillMode,
4825
- themeColor
4826
- }),
4827
- stateClassNames(BUTTON_CLASSNAME, {
4828
- hover,
4829
- focus,
4830
- active,
4831
- disabled,
4832
- selected
4833
- }),
4834
- {
4835
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4836
- }
4837
- ),
4838
- children: [
4839
- icon && /* @__PURE__ */ jsx18(
4840
- Icon,
4841
- {
4842
- className: classNames(iconClassName, "k-button-icon"),
4843
- icon
4844
- }
4845
- ),
4846
- text ? /* @__PURE__ */ jsxs4(Fragment9, { children: [
4847
- text && /* @__PURE__ */ jsx18("span", { className: "k-button-text", children: text }),
4848
- props.children
4849
- ] }) : props.children && /* @__PURE__ */ jsx18("span", { className: "k-button-text", children: props.children }),
4850
- showArrow && /* @__PURE__ */ jsx18("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx18(Icon, { icon: arrowIconName }) })
4851
- ]
4852
- }
4853
- );
4854
- };
4855
- Button.states = states13;
4856
- Button.options = options12;
4857
- Button.className = BUTTON_CLASSNAME;
4858
- Button.defaultProps = defaultProps10;
4859
-
4860
- // src/button/templates/icon-button.tsx
4861
- import { jsx as jsx19 } from "react/jsx-runtime";
4862
-
4863
- // src/button/templates/icon-text-button.tsx
4864
- import { jsx as jsx20 } from "react/jsx-runtime";
4865
-
4866
- // src/button/templates/text-button.tsx
4867
- import { jsx as jsx21 } from "react/jsx-runtime";
5066
+ import { jsx as jsx25 } from "react/jsx-runtime";
4868
5067
 
4869
5068
  // src/textbox/templates/textbox-prefix.tsx
4870
- import { jsx as jsx22, jsxs as jsxs5 } from "react/jsx-runtime";
5069
+ import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
4871
5070
 
4872
5071
  // src/textbox/templates/textbox-suffix.tsx
4873
- import { jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
5072
+ import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
4874
5073
 
4875
5074
  // src/animation-container/animation-container.spec.tsx
4876
- import { jsx as jsx24 } from "react/jsx-runtime";
5075
+ import { jsx as jsx28 } from "react/jsx-runtime";
4877
5076
  var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4878
- var states14 = [];
4879
- var options13 = {};
4880
- var defaultProps11 = {
4881
- positionMode: "absolute"
4882
- };
4883
- var AnimationContainer = (props) => {
4884
- const {
4885
- positionMode,
4886
- animationStyle,
4887
- offset,
4888
- ...other
4889
- } = props;
4890
- return /* @__PURE__ */ jsx24(
4891
- "div",
4892
- {
4893
- ...other,
4894
- style: { ...offset, ...props.style },
4895
- className: classNames(
4896
- ANIMATION_CONTAINER_CLASSNAME,
4897
- "k-animation-container-shown",
4898
- {
4899
- ["k-animation-container-fixed"]: positionMode === "fixed"
4900
- }
4901
- ),
4902
- children: /* @__PURE__ */ jsx24("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4903
- }
4904
- );
4905
- };
4906
- AnimationContainer.states = states14;
4907
- AnimationContainer.options = options13;
4908
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
4909
- AnimationContainer.defaultProps = defaultProps11;
4910
-
4911
- // src/popup/popup.spec.tsx
4912
- import { jsx as jsx25 } from "react/jsx-runtime";
4913
- var POPUP_CLASSNAME = `k-popup`;
4914
- var states15 = [];
4915
- var options14 = {};
4916
- var defaultProps12 = {
4917
- positionMode: "absolute"
4918
- };
4919
- var Popup = (props) => {
4920
- const {
4921
- offset,
4922
- positionMode,
4923
- ...other
4924
- } = props;
4925
- return /* @__PURE__ */ jsx25(
4926
- AnimationContainer,
4927
- {
4928
- positionMode,
4929
- offset,
4930
- children: /* @__PURE__ */ jsx25("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4931
- }
4932
- );
4933
- };
4934
- Popup.states = states15;
4935
- Popup.options = options14;
4936
- Popup.className = POPUP_CLASSNAME;
4937
- Popup.defaultProps = defaultProps12;
4938
-
4939
- // src/action-sheet/action-sheet.spec.tsx
4940
- import { Fragment as Fragment10, jsx as jsx26, jsxs as jsxs7 } from "react/jsx-runtime";
4941
- var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
4942
- var states16 = [];
5077
+ var states17 = [];
4943
5078
  var options15 = {};
4944
- var defaultProps13 = {
4945
- side: "bottom",
4946
- fullscreen: false,
4947
- adaptive: false,
4948
- overlay: true
4949
- };
4950
- var ActionSheet = (props) => {
4951
- const {
4952
- children,
4953
- title,
4954
- header,
4955
- footer,
4956
- actions,
4957
- side = defaultProps13.side,
4958
- fullscreen = defaultProps13.fullscreen,
4959
- adaptive = defaultProps13.adaptive,
4960
- overlay = defaultProps13.overlay,
4961
- ...other
4962
- } = props;
4963
- const _ActionSheetHeader = title ? /* @__PURE__ */ jsx26(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
4964
- const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx26(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx26(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
4965
- const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
4966
- switch (child.type) {
4967
- case ActionSheetHeader:
4968
- case ActionSheetFooter:
4969
- return false;
4970
- default:
4971
- return true;
4972
- }
4973
- return true;
4974
- }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx26(Fragment10, {});
4975
- return /* @__PURE__ */ jsxs7("div", { className: "k-actionsheet-container", children: [
4976
- overlay && /* @__PURE__ */ jsx26("div", { className: "k-overlay" }),
4977
- /* @__PURE__ */ jsx26(
4978
- AnimationContainer,
4979
- {
4980
- animationStyle: {
4981
- [`${fullscreen === true ? "top" : side}`]: 0,
4982
- [`${fullscreen === true ? "width" : null}`]: "100%",
4983
- [`${fullscreen === true ? "height" : null}`]: "100%",
4984
- [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
4985
- [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
4986
- },
4987
- children: /* @__PURE__ */ jsx26(
4988
- "div",
4989
- {
4990
- ...other,
4991
- className: classNames(
4992
- props.className,
4993
- ACTIONSHEET_CLASSNAME,
4994
- {
4995
- [`k-actionsheet-${side}`]: fullscreen === false,
4996
- "k-actionsheet-fullscreen": fullscreen === true,
4997
- "k-adaptive-actionsheet": adaptive
4998
- }
4999
- ),
5000
- children: /* @__PURE__ */ jsxs7(Fragment10, { children: [
5001
- _ActionSheetHeader,
5002
- /* @__PURE__ */ jsx26("div", { className: classNames(
5003
- "k-actionsheet-content",
5004
- {
5005
- "!k-overflow-hidden": adaptive
5006
- }
5007
- ), children: _ActionSheetContent }),
5008
- _ActionSheetFooter
5009
- ] })
5010
- }
5011
- )
5012
- }
5013
- )
5014
- ] });
5015
- };
5016
- ActionSheet.states = states16;
5017
- ActionSheet.options = options15;
5018
- ActionSheet.className = ACTIONSHEET_CLASSNAME;
5019
- ActionSheet.defaultProps = defaultProps13;
5020
-
5021
- // src/searchbox/searchbox.spec.tsx
5022
- import { jsx as jsx27, jsxs as jsxs8 } from "react/jsx-runtime";
5023
- var SEARCHBOX_CLASSNAME = `k-searchbox`;
5024
- var states17 = [
5025
- States.hover,
5026
- States.focus,
5027
- States.valid,
5028
- States.invalid,
5029
- States.required,
5030
- States.disabled,
5031
- States.loading
5032
- ];
5033
- var options16 = {
5034
- size: [Size.small, Size.medium, Size.large],
5035
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5036
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5037
- };
5038
- var defaultProps14 = {
5039
- showIcon: true,
5040
- icon: "search",
5041
- size: Input.defaultProps.size,
5042
- rounded: Input.defaultProps.rounded,
5043
- fillMode: Input.defaultProps.fillMode
5044
- };
5045
- var Searchbox = (props) => {
5046
- const {
5047
- value,
5048
- placeholder,
5049
- size,
5050
- rounded,
5051
- fillMode,
5052
- hover,
5053
- focus,
5054
- valid,
5055
- invalid,
5056
- required,
5057
- loading,
5058
- disabled,
5059
- showIcon = defaultProps14.showIcon,
5060
- icon = defaultProps14.icon,
5061
- ...other
5062
- } = props;
5063
- return /* @__PURE__ */ jsxs8(
5064
- Input,
5065
- {
5066
- ...other,
5067
- size,
5068
- rounded,
5069
- fillMode,
5070
- hover,
5071
- focus,
5072
- valid,
5073
- invalid,
5074
- required,
5075
- loading,
5076
- disabled,
5077
- className: classNames(props.className, SEARCHBOX_CLASSNAME),
5078
- children: [
5079
- showIcon && /* @__PURE__ */ jsx27(Icon, { className: "k-input-icon", icon }),
5080
- /* @__PURE__ */ jsx27(InputInnerInput, { placeholder, value }),
5081
- /* @__PURE__ */ jsx27(InputLoadingIcon, { ...props }),
5082
- /* @__PURE__ */ jsx27(InputValidationIcon, { ...props }),
5083
- /* @__PURE__ */ jsx27(InputClearValue, { ...props })
5084
- ]
5085
- }
5086
- );
5087
- };
5088
- Searchbox.states = states17;
5089
- Searchbox.options = options16;
5090
- Searchbox.className = SEARCHBOX_CLASSNAME;
5091
- Searchbox.defaultProps = defaultProps14;
5092
-
5093
- // src/searchbox/templates/searchbox-normal.tsx
5094
- import { jsx as jsx28 } from "react/jsx-runtime";
5095
-
5096
- // src/action-sheet/actionsheet-header.tsx
5097
- import { Fragment as Fragment11, jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
5098
- var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5099
- var ActionSheetHeader = (props) => {
5100
- const {
5101
- title,
5102
- subTitle,
5103
- actions,
5104
- filter,
5105
- ...other
5106
- } = props;
5107
- return /* @__PURE__ */ jsx29(
5108
- "div",
5109
- {
5110
- ...other,
5111
- className: classNames(
5112
- props.className,
5113
- ACTIONSHEETHEADER_CLASSNAME
5114
- ),
5115
- children: /* @__PURE__ */ jsxs9(Fragment11, { children: [
5116
- /* @__PURE__ */ jsxs9("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5117
- !props.children && (title || subTitle) && /* @__PURE__ */ jsx29(Fragment11, { children: /* @__PURE__ */ jsxs9("div", { className: "k-actionsheet-title", children: [
5118
- title !== "" && /* @__PURE__ */ jsx29("div", { className: "k-text-center", children: title }),
5119
- subTitle !== "" && /* @__PURE__ */ jsx29("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5120
- ] }) }),
5121
- props.children && /* @__PURE__ */ jsx29("div", { className: "k-actionsheet-title", children: props.children }),
5122
- actions && /* @__PURE__ */ jsx29(Fragment11, { children: /* @__PURE__ */ jsx29("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx29(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5123
- ] }),
5124
- filter && /* @__PURE__ */ jsx29(Fragment11, { children: /* @__PURE__ */ jsx29("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx29(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5125
- ] })
5126
- }
5127
- );
5128
- };
5129
-
5130
- // src/action-buttons/action-buttons.spec.tsx
5131
- import { jsx as jsx30 } from "react/jsx-runtime";
5132
- var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5133
- var states18 = [];
5134
- var options17 = {};
5135
- var defaultProps15 = {
5136
- alignment: "start",
5137
- orientation: "horizontal"
5138
- };
5139
- var ActionButtons = (props) => {
5140
- const {
5141
- alignment = defaultProps15.alignment,
5142
- orientation = defaultProps15.orientation,
5143
- ...other
5144
- } = props;
5145
- return /* @__PURE__ */ jsx30(
5146
- "div",
5147
- {
5148
- ...other,
5149
- className: classNames(
5150
- ACTIONBUTTONS_CLASSNAME,
5151
- {
5152
- [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5153
- [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5154
- },
5155
- props.className
5156
- ),
5157
- children: props.children
5158
- }
5159
- );
5079
+ var defaultProps13 = {
5080
+ positionMode: "absolute"
5160
5081
  };
5161
- ActionButtons.states = states18;
5162
- ActionButtons.options = options17;
5163
- ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5164
- ActionButtons.defaultProps = defaultProps15;
5165
- var action_buttons_spec_default = ActionButtons;
5166
-
5167
- // src/action-sheet/actionsheet-footer.tsx
5168
- import { Fragment as Fragment12, jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
5169
- var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5170
- var ActionSheetFooter = (props) => {
5082
+ var AnimationContainer = (props) => {
5171
5083
  const {
5172
- actions,
5084
+ positionMode,
5085
+ animationStyle,
5086
+ offset,
5173
5087
  ...other
5174
5088
  } = props;
5175
- return /* @__PURE__ */ jsx31(
5176
- action_buttons_spec_default,
5089
+ return /* @__PURE__ */ jsx28(
5090
+ "div",
5177
5091
  {
5178
5092
  ...other,
5093
+ style: { ...offset, ...props.style },
5179
5094
  className: classNames(
5180
- props.className,
5181
- ACTIONSHEETFOOTER_CLASSNAME
5095
+ ANIMATION_CONTAINER_CLASSNAME,
5096
+ "k-animation-container-shown",
5097
+ {
5098
+ ["k-animation-container-fixed"]: positionMode === "fixed"
5099
+ }
5182
5100
  ),
5183
- alignment: "stretched",
5184
- children: /* @__PURE__ */ jsxs10(Fragment12, { children: [
5185
- actions && actions.map((action, index) => {
5186
- if (action === "|") {
5187
- return /* @__PURE__ */ jsx31("span", { className: "k-separator" }, index);
5188
- }
5189
- if (action === " ") {
5190
- return /* @__PURE__ */ jsx31("span", { className: "k-spacer" }, index);
5191
- }
5192
- const importantFlag = action.startsWith("!");
5193
- const actionName = importantFlag ? action.substring(1) : action;
5194
- return /* @__PURE__ */ jsx31(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5195
- }),
5196
- !actions && props.children
5197
- ] })
5101
+ children: /* @__PURE__ */ jsx28("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
5198
5102
  }
5199
5103
  );
5200
5104
  };
5105
+ AnimationContainer.states = states17;
5106
+ AnimationContainer.options = options15;
5107
+ AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5108
+ AnimationContainer.defaultProps = defaultProps13;
5201
5109
 
5202
- // src/action-sheet/actionsheet-items.tsx
5203
- import { jsx as jsx32 } from "react/jsx-runtime";
5204
- var ActionSheetItems = (props) => {
5110
+ // src/popup/popup.spec.tsx
5111
+ import { jsx as jsx29 } from "react/jsx-runtime";
5112
+ var POPUP_CLASSNAME = `k-popup`;
5113
+ var states18 = [];
5114
+ var options16 = {};
5115
+ var defaultProps14 = {
5116
+ positionMode: "absolute"
5117
+ };
5118
+ var Popup = (props) => {
5205
5119
  const {
5120
+ offset,
5121
+ positionMode,
5206
5122
  ...other
5207
5123
  } = props;
5208
- return /* @__PURE__ */ jsx32(
5209
- "div",
5124
+ return /* @__PURE__ */ jsx29(
5125
+ AnimationContainer,
5210
5126
  {
5211
- ...other,
5212
- className: classNames(
5213
- props.className,
5214
- "k-list-ul"
5215
- ),
5216
- children: props.children
5127
+ positionMode,
5128
+ offset,
5129
+ children: /* @__PURE__ */ jsx29("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5217
5130
  }
5218
5131
  );
5219
5132
  };
5133
+ Popup.states = states18;
5134
+ Popup.options = options16;
5135
+ Popup.className = POPUP_CLASSNAME;
5136
+ Popup.defaultProps = defaultProps14;
5220
5137
 
5221
- // src/action-sheet/actionsheet-item.tsx
5222
- import { Fragment as Fragment13, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
5138
+ // src/dropdownlist/dropdownlist.spec.tsx
5139
+ import { Fragment as Fragment13, jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
5140
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
5223
5141
  var states19 = [
5224
5142
  States.hover,
5225
5143
  States.focus,
5226
- States.selected,
5227
- States.disabled
5144
+ States.valid,
5145
+ States.invalid,
5146
+ States.required,
5147
+ States.disabled,
5148
+ States.loading,
5149
+ States.readonly
5228
5150
  ];
5151
+ var options17 = {
5152
+ size: [Size.small, Size.medium, Size.large],
5153
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5154
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5155
+ };
5156
+ var defaultProps15 = {
5157
+ showValue: true,
5158
+ arrowIconName: "caret-alt-down",
5159
+ size: Size.medium,
5160
+ rounded: Roundness.medium,
5161
+ fillMode: FillMode.solid
5162
+ };
5163
+ var DropdownList = (props) => {
5164
+ const {
5165
+ valueIconName,
5166
+ arrowIconName = defaultProps15.arrowIconName,
5167
+ prefix,
5168
+ suffix,
5169
+ value,
5170
+ placeholder,
5171
+ size,
5172
+ rounded,
5173
+ fillMode,
5174
+ hover,
5175
+ focus,
5176
+ valid,
5177
+ invalid,
5178
+ required,
5179
+ loading,
5180
+ disabled,
5181
+ readonly,
5182
+ showValue = defaultProps15.showValue,
5183
+ popup,
5184
+ opened,
5185
+ ...other
5186
+ } = props;
5187
+ return /* @__PURE__ */ jsxs10(Fragment13, { children: [
5188
+ /* @__PURE__ */ jsxs10(
5189
+ Picker,
5190
+ {
5191
+ ...other,
5192
+ size,
5193
+ rounded,
5194
+ fillMode,
5195
+ hover,
5196
+ focus,
5197
+ valid,
5198
+ invalid,
5199
+ required,
5200
+ loading,
5201
+ disabled,
5202
+ readonly,
5203
+ className: classNames(
5204
+ props.className,
5205
+ DROPDOWNLIST_CLASSNAME,
5206
+ {
5207
+ "k-icon-picker": !showValue && valueIconName
5208
+ }
5209
+ ),
5210
+ children: [
5211
+ /* @__PURE__ */ jsx30(InputPrefix, { children: prefix }),
5212
+ /* @__PURE__ */ jsx30(
5213
+ InputInnerSpan,
5214
+ {
5215
+ placeholder,
5216
+ value,
5217
+ showValue,
5218
+ valueIconName
5219
+ }
5220
+ ),
5221
+ /* @__PURE__ */ jsx30(
5222
+ InputValidationIcon,
5223
+ {
5224
+ valid,
5225
+ invalid,
5226
+ loading,
5227
+ disabled
5228
+ }
5229
+ ),
5230
+ /* @__PURE__ */ jsx30(
5231
+ InputLoadingIcon,
5232
+ {
5233
+ loading,
5234
+ disabled
5235
+ }
5236
+ ),
5237
+ /* @__PURE__ */ jsx30(InputSuffix, { children: suffix }),
5238
+ /* @__PURE__ */ jsx30(
5239
+ Button,
5240
+ {
5241
+ className: "k-input-button",
5242
+ icon: arrowIconName,
5243
+ rounded: null,
5244
+ size: props.size,
5245
+ fillMode: props.fillMode
5246
+ }
5247
+ )
5248
+ ]
5249
+ }
5250
+ ),
5251
+ opened && popup && /* @__PURE__ */ jsx30(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
5252
+ ] });
5253
+ };
5254
+ DropdownList.states = states19;
5255
+ DropdownList.options = options17;
5256
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
5257
+ DropdownList.defaultProps = defaultProps15;
5258
+
5259
+ // src/dropdownlist/templates/dropdownlist-normal.tsx
5260
+ import { jsx as jsx31 } from "react/jsx-runtime";
5229
5261
 
5230
5262
  // src/nodata/nodata.tsx
5231
- import { jsx as jsx34 } from "react/jsx-runtime";
5263
+ import { jsx as jsx32 } from "react/jsx-runtime";
5232
5264
  var className9 = `k-nodata`;
5233
- var NoData = (props) => /* @__PURE__ */ jsx34("span", { className: classNames(className9, props.className), children: props.children });
5265
+ var NoData = (props) => /* @__PURE__ */ jsx32("span", { className: classNames(className9, props.className), children: props.children });
5234
5266
 
5235
5267
  // src/list/list.spec.tsx
5236
- import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
5268
+ import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
5237
5269
  var LIST_CLASSNAME = `k-list`;
5238
5270
  var states20 = [];
5239
5271
  var options18 = {
@@ -5261,7 +5293,7 @@ var List = (props) => {
5261
5293
  listHeader = child.props.label;
5262
5294
  child.props.children.map((optChild, index2) => {
5263
5295
  listChildren.push(
5264
- /* @__PURE__ */ jsx35(
5296
+ /* @__PURE__ */ jsx33(
5265
5297
  ListItem,
5266
5298
  {
5267
5299
  ...optChild.props
@@ -5277,7 +5309,7 @@ var List = (props) => {
5277
5309
  groupLabel = child.props.label;
5278
5310
  }
5279
5311
  listChildren.push(
5280
- /* @__PURE__ */ jsx35(
5312
+ /* @__PURE__ */ jsx33(
5281
5313
  ListItem,
5282
5314
  {
5283
5315
  className: index2 === 0 ? "k-first" : "",
@@ -5289,16 +5321,16 @@ var List = (props) => {
5289
5321
  );
5290
5322
  });
5291
5323
  }
5292
- listGroup = /* @__PURE__ */ jsx35(ListGroup, { label: listHeader, virtualization, children: listChildren });
5324
+ listGroup = /* @__PURE__ */ jsx33(ListGroup, { label: listHeader, virtualization, children: listChildren });
5293
5325
  } else if (child.type === ListItem) {
5294
- listChildren.push(/* @__PURE__ */ jsx35(ListItem, { ...child.props }, `${child.type}-${index}`));
5295
- listContent = /* @__PURE__ */ jsx35(ListContent, { virtualization, children: listChildren });
5326
+ listChildren.push(/* @__PURE__ */ jsx33(ListItem, { ...child.props }, `${child.type}-${index}`));
5327
+ listContent = /* @__PURE__ */ jsx33(ListContent, { virtualization, children: listChildren });
5296
5328
  }
5297
5329
  });
5298
5330
  } else {
5299
- listContent = /* @__PURE__ */ jsx35(NoData, { children: "No data found." });
5331
+ listContent = /* @__PURE__ */ jsx33(NoData, { children: "No data found." });
5300
5332
  }
5301
- return /* @__PURE__ */ jsxs12(
5333
+ return /* @__PURE__ */ jsxs11(
5302
5334
  "div",
5303
5335
  {
5304
5336
  ...other,
@@ -5326,7 +5358,7 @@ List.className = LIST_CLASSNAME;
5326
5358
  List.defaultProps = defaultProps16;
5327
5359
 
5328
5360
  // src/list/list-angular.spec.tsx
5329
- import { jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
5361
+ import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
5330
5362
  var LISTANGULAR_CLASSNAME = `k-list`;
5331
5363
  var states21 = [];
5332
5364
  var options19 = {
@@ -5353,7 +5385,7 @@ var ListAngular = (props) => {
5353
5385
  listHeader = child.props.label;
5354
5386
  child.props.children.map((optChild, index2) => {
5355
5387
  listChildren.push(
5356
- /* @__PURE__ */ jsx36(
5388
+ /* @__PURE__ */ jsx34(
5357
5389
  ListItem,
5358
5390
  {
5359
5391
  ...optChild.props
@@ -5364,7 +5396,7 @@ var ListAngular = (props) => {
5364
5396
  });
5365
5397
  } else {
5366
5398
  listChildren.push(
5367
- /* @__PURE__ */ jsx36(
5399
+ /* @__PURE__ */ jsx34(
5368
5400
  ListGroupItem,
5369
5401
  {
5370
5402
  ...child.props,
@@ -5375,7 +5407,7 @@ var ListAngular = (props) => {
5375
5407
  );
5376
5408
  child.props.children.map((optChild, index2) => {
5377
5409
  listChildren.push(
5378
- /* @__PURE__ */ jsx36(
5410
+ /* @__PURE__ */ jsx34(
5379
5411
  ListItem,
5380
5412
  {
5381
5413
  ...optChild.props
@@ -5385,16 +5417,16 @@ var ListAngular = (props) => {
5385
5417
  );
5386
5418
  });
5387
5419
  }
5388
- listGroup = /* @__PURE__ */ jsx36(ListGroup, { label: listHeader, virtualization, children: listChildren });
5420
+ listGroup = /* @__PURE__ */ jsx34(ListGroup, { label: listHeader, virtualization, children: listChildren });
5389
5421
  } else if (child.type === ListItem) {
5390
- listChildren.push(/* @__PURE__ */ jsx36(ListItem, { ...child.props }, `${child.type}-${index}`));
5391
- listContent = /* @__PURE__ */ jsx36(ListContent, { virtualization, children: listChildren });
5422
+ listChildren.push(/* @__PURE__ */ jsx34(ListItem, { ...child.props }, `${child.type}-${index}`));
5423
+ listContent = /* @__PURE__ */ jsx34(ListContent, { virtualization, children: listChildren });
5392
5424
  }
5393
5425
  });
5394
5426
  } else {
5395
- listContent = /* @__PURE__ */ jsx36(NoData, { children: "No data found." });
5427
+ listContent = /* @__PURE__ */ jsx34(NoData, { children: "No data found." });
5396
5428
  }
5397
- return /* @__PURE__ */ jsxs13(
5429
+ return /* @__PURE__ */ jsxs12(
5398
5430
  "div",
5399
5431
  {
5400
5432
  ...other,
@@ -5421,7 +5453,7 @@ ListAngular.className = LISTANGULAR_CLASSNAME;
5421
5453
  ListAngular.defaultProps = defaultProps17;
5422
5454
 
5423
5455
  // src/checkbox/checkbox.spec.tsx
5424
- import { jsx as jsx37 } from "react/jsx-runtime";
5456
+ import { jsx as jsx35 } from "react/jsx-runtime";
5425
5457
  var CHECKBOX_CLASSNAME = `k-checkbox`;
5426
5458
  var states22 = [
5427
5459
  States.hover,
@@ -5456,7 +5488,7 @@ var Checkbox = (props) => {
5456
5488
  rounded = defaultProps18.rounded,
5457
5489
  ...other
5458
5490
  } = props;
5459
- return /* @__PURE__ */ jsx37("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx37(
5491
+ return /* @__PURE__ */ jsx35("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx35(
5460
5492
  "input",
5461
5493
  {
5462
5494
  ...other,
@@ -5479,7 +5511,7 @@ Checkbox.className = CHECKBOX_CLASSNAME;
5479
5511
  Checkbox.defaultProps = defaultProps18;
5480
5512
 
5481
5513
  // src/checkbox/checkbox-group.spec.tsx
5482
- import { jsx as jsx38 } from "react/jsx-runtime";
5514
+ import { jsx as jsx36 } from "react/jsx-runtime";
5483
5515
  var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5484
5516
  var states23 = [];
5485
5517
  var options21 = {};
@@ -5491,7 +5523,7 @@ var CheckboxGroup = (props) => {
5491
5523
  layout = defaultProps19.layout,
5492
5524
  ...other
5493
5525
  } = props;
5494
- return /* @__PURE__ */ jsx38(
5526
+ return /* @__PURE__ */ jsx36(
5495
5527
  "ul",
5496
5528
  {
5497
5529
  ...other,
@@ -5512,7 +5544,7 @@ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5512
5544
  CheckboxGroup.defaultProps = defaultProps19;
5513
5545
 
5514
5546
  // src/checkbox/checkbox-item.spec.tsx
5515
- import { jsx as jsx39 } from "react/jsx-runtime";
5547
+ import { jsx as jsx37 } from "react/jsx-runtime";
5516
5548
  var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5517
5549
  var states24 = [];
5518
5550
  var options22 = {};
@@ -5521,7 +5553,7 @@ var CheckboxItem = (props) => {
5521
5553
  const {
5522
5554
  ...other
5523
5555
  } = props;
5524
- return /* @__PURE__ */ jsx39(
5556
+ return /* @__PURE__ */ jsx37(
5525
5557
  "li",
5526
5558
  {
5527
5559
  ...other,
@@ -5539,13 +5571,13 @@ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5539
5571
  CheckboxItem.defaultProps = defaultProps20;
5540
5572
 
5541
5573
  // src/checkbox/templates/checkbox-with-label.tsx
5542
- import { Fragment as Fragment14, jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
5574
+ import { Fragment as Fragment14, jsx as jsx38, jsxs as jsxs13 } from "react/jsx-runtime";
5543
5575
 
5544
5576
  // src/checkbox/templates/checkbox-normal.tsx
5545
- import { jsx as jsx41 } from "react/jsx-runtime";
5577
+ import { jsx as jsx39 } from "react/jsx-runtime";
5546
5578
 
5547
5579
  // src/list/list-item.spec.tsx
5548
- import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
5580
+ import { jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
5549
5581
  var LISTITEM_CLASSNAME = `k-list-item`;
5550
5582
  var states25 = [
5551
5583
  States.hover,
@@ -5570,7 +5602,7 @@ var ListItem = (props) => {
5570
5602
  ...other
5571
5603
  } = props;
5572
5604
  const textOrChildren = text ? text : props.children;
5573
- return /* @__PURE__ */ jsxs15(
5605
+ return /* @__PURE__ */ jsxs14(
5574
5606
  "li",
5575
5607
  {
5576
5608
  ...other,
@@ -5585,10 +5617,10 @@ var ListItem = (props) => {
5585
5617
  })
5586
5618
  ),
5587
5619
  children: [
5588
- showCheckbox && /* @__PURE__ */ jsx42(Checkbox, { checked }),
5589
- showIcon && /* @__PURE__ */ jsx42(Icon, { icon: iconName }),
5590
- /* @__PURE__ */ jsx42("span", { className: "k-list-item-text", children: textOrChildren }),
5591
- groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx42("div", { className: "k-list-item-group-label", children: groupLabel })
5620
+ showCheckbox && /* @__PURE__ */ jsx40(Checkbox, { checked }),
5621
+ showIcon && /* @__PURE__ */ jsx40(Icon, { icon: iconName }),
5622
+ /* @__PURE__ */ jsx40("span", { className: "k-list-item-text", children: textOrChildren }),
5623
+ groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx40("div", { className: "k-list-item-group-label", children: groupLabel })
5592
5624
  ]
5593
5625
  }
5594
5626
  );
@@ -5599,43 +5631,43 @@ ListItem.className = LISTITEM_CLASSNAME;
5599
5631
  ListItem.defaultProps = defaultProps21;
5600
5632
 
5601
5633
  // src/list/list-content.tsx
5602
- import { jsx as jsx43, jsxs as jsxs16 } from "react/jsx-runtime";
5634
+ import { jsx as jsx41, jsxs as jsxs15 } from "react/jsx-runtime";
5603
5635
  var className10 = `k-list-content`;
5604
5636
  var ListContent = (props) => {
5605
5637
  const {
5606
5638
  virtualization
5607
5639
  } = props;
5608
- return /* @__PURE__ */ jsxs16("div", { className: classNames(className10, props.className), children: [
5609
- /* @__PURE__ */ jsx43("ul", { className: classNames("k-list-ul"), children: props.children }),
5610
- virtualization && /* @__PURE__ */ jsx43("div", { className: "k-height-container", children: /* @__PURE__ */ jsx43("div", {}) })
5640
+ return /* @__PURE__ */ jsxs15("div", { className: classNames(className10, props.className), children: [
5641
+ /* @__PURE__ */ jsx41("ul", { className: classNames("k-list-ul"), children: props.children }),
5642
+ virtualization && /* @__PURE__ */ jsx41("div", { className: "k-height-container", children: /* @__PURE__ */ jsx41("div", {}) })
5611
5643
  ] });
5612
5644
  };
5613
5645
 
5614
5646
  // src/list/list-header.tsx
5615
- import { jsx as jsx44 } from "react/jsx-runtime";
5647
+ import { jsx as jsx42 } from "react/jsx-runtime";
5616
5648
  var className11 = `k-list-group-sticky-header`;
5617
- var ListHeader = (props) => /* @__PURE__ */ jsx44("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ jsx44("div", { className: "k-list-header-text", children: props.children }) });
5649
+ var ListHeader = (props) => /* @__PURE__ */ jsx42("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ jsx42("div", { className: "k-list-header-text", children: props.children }) });
5618
5650
 
5619
5651
  // src/list/list-group.tsx
5620
- import { Fragment as Fragment15, jsx as jsx45, jsxs as jsxs17 } from "react/jsx-runtime";
5652
+ import { Fragment as Fragment15, jsx as jsx43, jsxs as jsxs16 } from "react/jsx-runtime";
5621
5653
  var ListGroup = (props) => {
5622
5654
  const {
5623
5655
  virtualization,
5624
5656
  label
5625
5657
  } = props;
5626
- return /* @__PURE__ */ jsxs17(Fragment15, { children: [
5627
- label && /* @__PURE__ */ jsx45(ListHeader, { children: label }),
5628
- props.children && /* @__PURE__ */ jsx45(ListContent, { virtualization, children: props.children })
5658
+ return /* @__PURE__ */ jsxs16(Fragment15, { children: [
5659
+ label && /* @__PURE__ */ jsx43(ListHeader, { children: label }),
5660
+ props.children && /* @__PURE__ */ jsx43(ListContent, { virtualization, children: props.children })
5629
5661
  ] });
5630
5662
  };
5631
5663
 
5632
5664
  // src/list/list-group-item.tsx
5633
- import { jsx as jsx46 } from "react/jsx-runtime";
5665
+ import { jsx as jsx44 } from "react/jsx-runtime";
5634
5666
  var className12 = `k-list-group-item`;
5635
- var ListGroupItem = (props) => /* @__PURE__ */ jsx46("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ jsx46("span", { className: "k-list-item-text", children: props.children }) });
5667
+ var ListGroupItem = (props) => /* @__PURE__ */ jsx44("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ jsx44("span", { className: "k-list-item-text", children: props.children }) });
5636
5668
 
5637
5669
  // src/list/list-option-label.tsx
5638
- import { jsx as jsx47 } from "react/jsx-runtime";
5670
+ import { jsx as jsx45 } from "react/jsx-runtime";
5639
5671
  var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5640
5672
  var states26 = [
5641
5673
  States.hover,
@@ -5654,7 +5686,7 @@ var ListOptionLabel = (props) => {
5654
5686
  disabled,
5655
5687
  ...other
5656
5688
  } = props;
5657
- return /* @__PURE__ */ jsx47(
5689
+ return /* @__PURE__ */ jsx45(
5658
5690
  "div",
5659
5691
  {
5660
5692
  ...other,
@@ -5677,190 +5709,55 @@ ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5677
5709
  ListOptionLabel.defaultProps = defaultProps22;
5678
5710
 
5679
5711
  // src/list/templates/list-normal.tsx
5680
- import { jsx as jsx48 } from "react/jsx-runtime";
5712
+ import { jsx as jsx46 } from "react/jsx-runtime";
5681
5713
 
5682
5714
  // src/list/templates/list-virtualization.tsx
5683
- import { jsx as jsx49 } from "react/jsx-runtime";
5715
+ import { jsx as jsx47 } from "react/jsx-runtime";
5684
5716
 
5685
5717
  // src/list/templates/list-grouping.tsx
5686
- import { jsx as jsx50, jsxs as jsxs18 } from "react/jsx-runtime";
5718
+ import { jsx as jsx48, jsxs as jsxs17 } from "react/jsx-runtime";
5687
5719
 
5688
5720
  // src/list/templates/list-virualization-grouping.tsx
5689
- import { jsx as jsx51, jsxs as jsxs19 } from "react/jsx-runtime";
5721
+ import { jsx as jsx49, jsxs as jsxs18 } from "react/jsx-runtime";
5690
5722
 
5691
5723
  // src/list/templates/list-virtualization-angular.tsx
5692
- import { jsx as jsx52 } from "react/jsx-runtime";
5724
+ import { jsx as jsx50 } from "react/jsx-runtime";
5693
5725
 
5694
5726
  // src/list/templates/list-grouping-angular.tsx
5695
- import { jsx as jsx53, jsxs as jsxs20 } from "react/jsx-runtime";
5727
+ import { jsx as jsx51, jsxs as jsxs19 } from "react/jsx-runtime";
5696
5728
 
5697
5729
  // src/list/templates/list-virualization-grouping-angular.tsx
5698
- import { jsx as jsx54, jsxs as jsxs21 } from "react/jsx-runtime";
5730
+ import { jsx as jsx52, jsxs as jsxs20 } from "react/jsx-runtime";
5731
+
5732
+ // src/dropdownlist/templates/dropdownlist-popup.tsx
5733
+ import { jsx as jsx53, jsxs as jsxs21 } from "react/jsx-runtime";
5699
5734
 
5700
- // src/combobox/combobox.spec.tsx
5701
- import { Fragment as Fragment16, jsx as jsx55, jsxs as jsxs22 } from "react/jsx-runtime";
5702
- var COMBOBOX_CLASSNAME = `k-combobox`;
5735
+ // src/searchbox/searchbox.spec.tsx
5736
+ import { jsx as jsx54, jsxs as jsxs22 } from "react/jsx-runtime";
5737
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5703
5738
  var states27 = [
5704
5739
  States.hover,
5705
5740
  States.focus,
5706
5741
  States.valid,
5707
5742
  States.invalid,
5708
- States.loading,
5709
5743
  States.required,
5710
5744
  States.disabled,
5711
- States.readonly
5745
+ States.loading
5712
5746
  ];
5713
- var defaultProps23 = {
5714
- size: Input.defaultProps.size,
5715
- rounded: Input.defaultProps.rounded,
5716
- fillMode: Input.defaultProps.fillMode
5717
- };
5718
5747
  var options25 = {
5719
5748
  size: [Size.small, Size.medium, Size.large],
5720
5749
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5721
5750
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5722
5751
  };
5723
- var Combobox = (props) => {
5724
- const {
5725
- prefix,
5726
- suffix,
5727
- value,
5728
- placeholder,
5729
- size,
5730
- rounded,
5731
- fillMode,
5732
- hover,
5733
- focus,
5734
- valid,
5735
- invalid,
5736
- required,
5737
- loading,
5738
- disabled,
5739
- popup,
5740
- opened,
5741
- readonly,
5742
- adaptive,
5743
- adaptiveSettings,
5744
- ...other
5745
- } = props;
5746
- return /* @__PURE__ */ jsxs22(Fragment16, { children: [
5747
- /* @__PURE__ */ jsxs22(
5748
- Input,
5749
- {
5750
- ...other,
5751
- size,
5752
- rounded,
5753
- fillMode,
5754
- hover,
5755
- focus,
5756
- valid,
5757
- invalid,
5758
- required,
5759
- loading,
5760
- disabled,
5761
- readonly,
5762
- className: classNames(props.className, COMBOBOX_CLASSNAME),
5763
- children: [
5764
- /* @__PURE__ */ jsx55(InputPrefix, { children: prefix }),
5765
- /* @__PURE__ */ jsx55(InputInnerInput, { placeholder, value }),
5766
- /* @__PURE__ */ jsx55(
5767
- InputValidationIcon,
5768
- {
5769
- valid,
5770
- invalid,
5771
- loading,
5772
- disabled
5773
- }
5774
- ),
5775
- /* @__PURE__ */ jsx55(
5776
- InputLoadingIcon,
5777
- {
5778
- loading,
5779
- disabled
5780
- }
5781
- ),
5782
- /* @__PURE__ */ jsx55(
5783
- InputClearValue,
5784
- {
5785
- loading,
5786
- disabled,
5787
- readonly,
5788
- value
5789
- }
5790
- ),
5791
- /* @__PURE__ */ jsx55(InputSuffix, { children: suffix }),
5792
- /* @__PURE__ */ jsx55(
5793
- Button,
5794
- {
5795
- className: "k-input-button",
5796
- icon: "caret-alt-down",
5797
- rounded: null,
5798
- size,
5799
- fillMode
5800
- }
5801
- )
5802
- ]
5803
- }
5804
- ),
5805
- opened && popup && /* @__PURE__ */ jsx55(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
5806
- adaptive && /* @__PURE__ */ jsxs22(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5807
- /* @__PURE__ */ jsx55(
5808
- ActionSheetHeader,
5809
- {
5810
- actions: ["x"],
5811
- filter: true,
5812
- title: "Select Item"
5813
- }
5814
- ),
5815
- /* @__PURE__ */ jsx55("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs22(List, { size: "large", children: [
5816
- /* @__PURE__ */ jsx55(ListItem, { text: "List item" }),
5817
- /* @__PURE__ */ jsx55(ListItem, { text: "List item" }),
5818
- /* @__PURE__ */ jsx55(ListItem, { text: "List item" })
5819
- ] }) })
5820
- ] })
5821
- ] });
5822
- };
5823
- Combobox.states = states27;
5824
- Combobox.options = options25;
5825
- Combobox.className = COMBOBOX_CLASSNAME;
5826
- Combobox.defaultProps = defaultProps23;
5827
-
5828
- // src/combobox/templates/combobox-normal.tsx
5829
- import { jsx as jsx56 } from "react/jsx-runtime";
5830
-
5831
- // src/combobox/templates/combobox-popup.tsx
5832
- import { jsx as jsx57, jsxs as jsxs23 } from "react/jsx-runtime";
5833
-
5834
- // src/combobox/templates/combobox-grouping.tsx
5835
- import { jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
5836
-
5837
- // src/combobox/templates/combobox-adaptive.tsx
5838
- import { jsx as jsx59 } from "react/jsx-runtime";
5839
-
5840
- // src/textarea/textarea.spec.tsx
5841
- import { jsx as jsx60 } from "react/jsx-runtime";
5842
- var TEXTAREA_CLASSNAME = `k-textarea`;
5843
- var states28 = [
5844
- States.hover,
5845
- States.focus,
5846
- States.valid,
5847
- States.invalid,
5848
- States.required,
5849
- States.disabled
5850
- ];
5851
- var options26 = {
5852
- size: [Size.small, Size.medium, Size.large],
5853
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5854
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5855
- };
5856
- var defaultProps24 = {
5752
+ var defaultProps23 = {
5753
+ showIcon: true,
5754
+ icon: "search",
5857
5755
  size: Input.defaultProps.size,
5858
5756
  rounded: Input.defaultProps.rounded,
5859
5757
  fillMode: Input.defaultProps.fillMode
5860
5758
  };
5861
- var Textarea = (props) => {
5759
+ var Searchbox = (props) => {
5862
5760
  const {
5863
- rows,
5864
5761
  value,
5865
5762
  placeholder,
5866
5763
  size,
@@ -5871,10 +5768,13 @@ var Textarea = (props) => {
5871
5768
  valid,
5872
5769
  invalid,
5873
5770
  required,
5771
+ loading,
5874
5772
  disabled,
5773
+ showIcon = defaultProps23.showIcon,
5774
+ icon = defaultProps23.icon,
5875
5775
  ...other
5876
5776
  } = props;
5877
- return /* @__PURE__ */ jsx60(
5777
+ return /* @__PURE__ */ jsxs22(
5878
5778
  Input,
5879
5779
  {
5880
5780
  ...other,
@@ -5886,77 +5786,57 @@ var Textarea = (props) => {
5886
5786
  valid,
5887
5787
  invalid,
5888
5788
  required,
5789
+ loading,
5889
5790
  disabled,
5890
- className: classNames(props.className, TEXTAREA_CLASSNAME),
5891
- children: /* @__PURE__ */ jsx60(
5892
- InputInnerTextarea,
5893
- {
5894
- className: classNames(
5895
- "!k-overflow-auto"
5896
- ),
5897
- value,
5898
- placeholder,
5899
- rows
5900
- }
5901
- )
5791
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5792
+ children: [
5793
+ showIcon && /* @__PURE__ */ jsx54(Icon, { className: "k-input-icon", icon }),
5794
+ /* @__PURE__ */ jsx54(InputInnerInput, { placeholder, value }),
5795
+ /* @__PURE__ */ jsx54(InputLoadingIcon, { ...props }),
5796
+ /* @__PURE__ */ jsx54(InputValidationIcon, { ...props }),
5797
+ /* @__PURE__ */ jsx54(InputClearValue, { ...props })
5798
+ ]
5902
5799
  }
5903
5800
  );
5904
5801
  };
5905
- Textarea.states = states28;
5906
- Textarea.options = options26;
5907
- Textarea.className = TEXTAREA_CLASSNAME;
5908
- Textarea.defaultProps = defaultProps24;
5802
+ Searchbox.states = states27;
5803
+ Searchbox.options = options25;
5804
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5805
+ Searchbox.defaultProps = defaultProps23;
5806
+
5807
+ // src/searchbox/templates/searchbox-normal.tsx
5808
+ import { jsx as jsx55 } from "react/jsx-runtime";
5909
5809
 
5910
- // src/textarea/templates/textarea-normal.tsx
5911
- import { jsx as jsx61 } from "react/jsx-runtime";
5810
+ // src/dropdownlist/templates/dropdownlist-filtering.tsx
5811
+ import { Fragment as Fragment16, jsx as jsx56, jsxs as jsxs23 } from "react/jsx-runtime";
5912
5812
 
5913
- // src/floating-label/tests/floating-label.tsx
5914
- import { Fragment as Fragment17, jsx as jsx62, jsxs as jsxs25 } from "react/jsx-runtime";
5915
- var styles = `
5916
- #test-area {
5917
- width: 660px;
5918
- }
5919
- .k-floating-label-container {
5920
- width: 100%;
5813
+ // src/dropdownlist/templates/dropdownlist-grouping.tsx
5814
+ import { jsx as jsx57, jsxs as jsxs24 } from "react/jsx-runtime";
5815
+
5816
+ // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
5817
+ import { Fragment as Fragment17, jsx as jsx58, jsxs as jsxs25 } from "react/jsx-runtime";
5818
+
5819
+ // src/spreadsheet/tests/spreadsheet-find-replace-dialog.tsx
5820
+ import { Fragment as Fragment18, jsx as jsx59, jsxs as jsxs26 } from "react/jsx-runtime";
5821
+ var style = `
5822
+ .k-window {
5823
+ min-width: 400px;
5824
+ position: relative;
5921
5825
  }
5922
5826
  `;
5923
- var floating_label_default = () => /* @__PURE__ */ jsxs25(Fragment17, { children: [
5924
- /* @__PURE__ */ jsx62("style", { children: styles }),
5925
- /* @__PURE__ */ jsxs25("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
5926
- /* @__PURE__ */ jsx62("span", { children: "Floating label" }),
5927
- /* @__PURE__ */ jsx62("span", { children: "Floating label RTL" }),
5928
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", empty: true, children: /* @__PURE__ */ jsx62(Textbox, {}) }) }),
5929
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", empty: true, children: /* @__PURE__ */ jsx62(Textbox, {}) }) }),
5930
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox with placeholder and floating label", empty: true, children: /* @__PURE__ */ jsx62(Textbox, { placeholder: "Placeholder" }) }) }),
5931
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox with placeholder and floating label", empty: true, children: /* @__PURE__ */ jsx62(Textbox, { placeholder: "Placeholder" }) }) }),
5932
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Focused Textbox with placeholder", empty: true, focus: true, children: /* @__PURE__ */ jsx62(Textbox, { placeholder: "Placeholder", focus: true }) }) }),
5933
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Focused Textbox with placeholder", empty: true, focus: true, children: /* @__PURE__ */ jsx62(Textbox, { placeholder: "Placeholder", focus: true }) }) }),
5934
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", empty: true, children: /* @__PURE__ */ jsx62(Combobox, {}) }) }),
5935
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", empty: true, children: /* @__PURE__ */ jsx62(Combobox, {}) }) }),
5936
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ jsx62(Textbox, { value: "Textbox value" }) }) }),
5937
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ jsx62(Textbox, { value: "Textbox value" }) }) }),
5938
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ jsx62(Combobox, { value: "Combobox value" }) }) }),
5939
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ jsx62(Combobox, { value: "Combobox value" }) }) }),
5940
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ jsx62(Textbox, { value: "Hover", hover: true }) }) }),
5941
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", children: /* @__PURE__ */ jsx62(Textbox, { value: "Hover", hover: true }) }) }),
5942
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ jsx62(Combobox, { value: "Hover", hover: true }) }) }),
5943
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", children: /* @__PURE__ */ jsx62(Combobox, { value: "Hover", hover: true }) }) }),
5944
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", focus: true, children: /* @__PURE__ */ jsx62(Textbox, { value: "Focus", focus: true }) }) }),
5945
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", focus: true, children: /* @__PURE__ */ jsx62(Textbox, { value: "Focus", focus: true }) }) }),
5946
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", focus: true, children: /* @__PURE__ */ jsx62(Combobox, { value: "Focus", focus: true }) }) }),
5947
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", focus: true, children: /* @__PURE__ */ jsx62(Combobox, { value: "Focus", focus: true }) }) }),
5948
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", disabled: true, children: /* @__PURE__ */ jsx62(Textbox, { value: "Disabled", disabled: true }) }) }),
5949
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", disabled: true, children: /* @__PURE__ */ jsx62(Textbox, { value: "Disabled", disabled: true }) }) }),
5950
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", disabled: true, children: /* @__PURE__ */ jsx62(Combobox, { value: "Disabled", disabled: true }) }) }),
5951
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", disabled: true, children: /* @__PURE__ */ jsx62(Combobox, { value: "Disabled", disabled: true }) }) }),
5952
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", invalid: true, children: /* @__PURE__ */ jsx62(Textbox, { value: "Invalid value", invalid: true }) }) }),
5953
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textbox label", invalid: true, children: /* @__PURE__ */ jsx62(Textbox, { value: "Invalid value", invalid: true }) }) }),
5954
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", invalid: true, children: /* @__PURE__ */ jsx62(Combobox, { value: "Invalid value", invalid: true }) }) }),
5955
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Combobox label", invalid: true, children: /* @__PURE__ */ jsx62(Combobox, { value: "Invalid value", invalid: true }) }) }),
5956
- /* @__PURE__ */ jsx62("div", { children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textarea label", empty: true, children: /* @__PURE__ */ jsx62(Textarea, {}) }) }),
5957
- /* @__PURE__ */ jsx62("div", { dir: "rtl", children: /* @__PURE__ */ jsx62(FloatingLabel, { label: "Textarea label", empty: true, children: /* @__PURE__ */ jsx62(Textarea, {}) }) })
5958
- ] })
5827
+ var spreadsheet_find_replace_dialog_default = () => /* @__PURE__ */ jsxs26(Fragment18, { children: [
5828
+ /* @__PURE__ */ jsx59("style", { children: style }),
5829
+ /* @__PURE__ */ jsx59("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ jsx59("section", { children: /* @__PURE__ */ jsx59(Window, { title: "Find and Replace", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs26(Fragment18, { children: [
5830
+ /* @__PURE__ */ jsx59(Button, { themeColor: "primary", children: "Done" }),
5831
+ /* @__PURE__ */ jsx59(Button, { children: "Find" }),
5832
+ /* @__PURE__ */ jsx59(Button, { children: "Replace" }),
5833
+ /* @__PURE__ */ jsx59(Button, { children: "Replace All" })
5834
+ ] }), children: /* @__PURE__ */ jsxs26(Form, { children: [
5835
+ /* @__PURE__ */ jsx59(FormField, { label: "Find", editor: /* @__PURE__ */ jsx59(Textbox, { placeholder: "Placeholder" }) }),
5836
+ /* @__PURE__ */ jsx59(FormField, { label: "Replace with", editor: /* @__PURE__ */ jsx59(Textbox, { placeholder: "Placeholder" }) }),
5837
+ /* @__PURE__ */ jsx59(FormField, { label: "Search within", editor: /* @__PURE__ */ jsx59(DropdownList, { value: "All Sheets" }) })
5838
+ ] }) }) }) })
5959
5839
  ] });
5960
5840
  export {
5961
- floating_label_default as default
5841
+ spreadsheet_find_replace_dialog_default as default
5962
5842
  };