@progress/kendo-themes-html 7.0.3-dev.0 → 7.0.3-dev.2

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 (349) hide show
  1. package/dist/cjs/badge/templates/badge-normal.js +4370 -0
  2. package/dist/cjs/badge/templates/icon-badge.js +4376 -0
  3. package/dist/cjs/badge/tests/badge-cutout-border.js +4421 -0
  4. package/dist/cjs/badge/tests/badge-misc.js +63 -73
  5. package/dist/cjs/badge/tests/badge-outline.js +4392 -0
  6. package/dist/cjs/badge/tests/badge-position-outline.js +4454 -0
  7. package/dist/cjs/badge/tests/badge-position-solid.js +4454 -0
  8. package/dist/cjs/badge/tests/badge-size.js +4235 -63
  9. package/dist/cjs/badge/tests/badge-solid.js +4392 -0
  10. package/dist/cjs/breadcrumb/breadcrumb-link.js +1 -0
  11. package/dist/cjs/breadcrumb/{tests → templates}/breadcrumb-adaptive.js +237 -260
  12. package/dist/cjs/breadcrumb/templates/breadcrumb-normal.js +4520 -0
  13. package/dist/cjs/breadcrumb/templates/breadcrumb-root-adaptive.js +4543 -0
  14. package/dist/cjs/breadcrumb/templates/breadcrumb-root.js +4542 -0
  15. package/dist/cjs/breadcrumb/tests/breadcrumb-items-rtl.js +5202 -0
  16. package/dist/cjs/breadcrumb/tests/breadcrumb-items.js +5202 -0
  17. package/dist/cjs/breadcrumb/tests/breadcrumb-rtl.js +469 -945
  18. package/dist/cjs/breadcrumb/tests/breadcrumb-size.js +55 -53
  19. package/dist/cjs/breadcrumb/tests/breadcrumb.js +405 -951
  20. package/dist/cjs/captcha/captcha.spec.js +29 -13
  21. package/dist/cjs/captcha/{tests/captcha-loading.js → templates/captcha-normal.js} +37 -24
  22. package/dist/cjs/captcha/tests/captcha-rtl.js +4987 -0
  23. package/dist/cjs/captcha/tests/captcha.js +41 -18
  24. package/dist/cjs/chat/chat.spec.js +4 -4
  25. package/dist/cjs/chat/templates/chat-normal.js +5142 -0
  26. package/dist/cjs/chat/templates/chat-with-options.js +5143 -0
  27. package/dist/cjs/chat/templates/chat-with-toolbar.js +5144 -0
  28. package/dist/cjs/chat/tests/chat-content-rtl.js +5455 -0
  29. package/dist/cjs/chat/tests/{chat-scrollable-deck.js → chat-content.js} +115 -37
  30. package/dist/cjs/chat/tests/chat-rtl.js +300 -472
  31. package/dist/cjs/chat/tests/chat.js +296 -484
  32. package/dist/cjs/dropzone/dropzone.spec.js +11 -9
  33. package/dist/cjs/dropzone/templates/dropzone-normal.js +4364 -0
  34. package/dist/cjs/dropzone/templates/dropzone-with-note.js +4370 -0
  35. package/dist/cjs/dropzone/tests/dropzone-states.js +4386 -0
  36. package/dist/cjs/dropzone/tests/dropzone.js +37 -19
  37. package/dist/cjs/editor/tests/editor-find-replace.js +225 -52
  38. package/dist/cjs/editor/tests/editor-image-editor.js +936 -15
  39. package/dist/cjs/editor/tests/editor-table-wizard.js +301 -128
  40. package/dist/cjs/filemanager/tests/filemanager-contextmenu.js +529 -453
  41. package/dist/cjs/filemanager/tests/filemanager-drag-hint.js +529 -453
  42. package/dist/cjs/filemanager/tests/filemanager-gridview.js +594 -518
  43. package/dist/cjs/filemanager/tests/filemanager-listview.js +548 -472
  44. package/dist/cjs/filemanager/tests/filemanager-preview.js +647 -571
  45. package/dist/cjs/form/templates/form-horizontal.js +5920 -0
  46. package/dist/cjs/form/templates/form-normal.js +5919 -0
  47. package/dist/cjs/form/tests/form-field-dateinputs.js +895 -58
  48. package/dist/cjs/form/tests/form-field-dropdowns.js +394 -59
  49. package/dist/cjs/form/tests/form-field-fieldset.js +1003 -27
  50. package/dist/cjs/form/tests/form-field-inputs-rtl.js +898 -238
  51. package/dist/cjs/form/tests/form-field-inputs.js +2304 -1664
  52. package/dist/cjs/form/tests/form-grid-layout.js +192 -22
  53. package/dist/cjs/form/tests/form-misc.js +874 -43
  54. package/dist/cjs/form/tests/form-sizes.js +680 -505
  55. package/dist/cjs/gantt/tests/gantt-editing-popup-general.js +202 -29
  56. package/dist/cjs/gantt/tests/gantt-editing-popup-other.js +684 -29
  57. package/dist/cjs/grid/tests/grid-angular.js +156 -146
  58. package/dist/cjs/grid/tests/grid-column-resizing-actions.js +279 -106
  59. package/dist/cjs/grid/tests/grid-editing-popup.js +187 -14
  60. package/dist/cjs/grid/tests/grid-rtl-angular.js +102 -92
  61. package/dist/cjs/grid/tests/grid-rtl.js +95 -85
  62. package/dist/cjs/grid/tests/grid-selection-aggregates.js +104 -94
  63. package/dist/cjs/grid/tests/grid-size-sm-comp-sm.js +480 -470
  64. package/dist/cjs/grid/tests/grid-size-sm.js +480 -470
  65. package/dist/cjs/grid/tests/grid-virtualization.js +418 -408
  66. package/dist/cjs/grid/tests/grid.js +120 -110
  67. package/dist/cjs/imageeditor/tests/imageeditor-crop-pane.js +217 -44
  68. package/dist/cjs/imageeditor/tests/imageeditor-resize-pane.js +205 -32
  69. package/dist/cjs/index.js +4482 -4153
  70. package/dist/cjs/loader/templates/loader-container-normal.js +250 -0
  71. package/dist/cjs/loader/templates/loader-converging.js +250 -0
  72. package/dist/cjs/loader/templates/loader-infinite.js +250 -0
  73. package/dist/cjs/loader/templates/loader-normal.js +250 -0
  74. package/dist/cjs/loader/tests/{loader-sizes.js → loader-colors.js} +32 -23
  75. package/dist/cjs/loader/tests/loader-container-colors.js +20 -25
  76. package/dist/cjs/loader/tests/loader-container-overlay.js +26 -13
  77. package/dist/cjs/loader/tests/loader-container.js +27 -20
  78. package/dist/cjs/loader/tests/loader.js +27 -46
  79. package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +28 -21
  80. package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +309 -125
  81. package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +420 -236
  82. package/dist/cjs/skeleton/index.js +28 -1
  83. package/dist/cjs/skeleton/templates/skeleton-circle.js +83 -0
  84. package/dist/cjs/skeleton/templates/skeleton-normal.js +77 -0
  85. package/dist/cjs/skeleton/templates/skeleton-rectangle.js +83 -0
  86. package/dist/cjs/skeleton/tests/skeleton.js +38 -14
  87. package/dist/cjs/spreadsheet/tests/spreadsheet-data-validation.js +370 -322
  88. package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +548 -368
  89. package/dist/cjs/spreadsheet/tests/spreadsheet-find-replace-dialog.js +450 -277
  90. package/dist/cjs/spreadsheet/tests/spreadsheet-format-dialogs.js +950 -777
  91. package/dist/cjs/spreadsheet/tests/spreadsheet-formula-dialog.js +308 -28
  92. package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +1119 -933
  93. package/dist/cjs/spreadsheet/tests/spreadsheet-print.js +782 -734
  94. package/dist/cjs/spreadsheet/tests/spreadsheet-sheets-bar.js +924 -67
  95. package/dist/cjs/taskboard/tests/taskboard-pane.js +299 -126
  96. package/dist/cjs/treelist/tests/treelist-editing-popup.js +673 -18
  97. package/dist/esm/badge/templates/badge-normal.js +4354 -0
  98. package/dist/esm/badge/templates/icon-badge.js +4360 -0
  99. package/dist/esm/badge/tests/badge-cutout-border.js +4405 -0
  100. package/dist/esm/badge/tests/badge-misc.js +62 -72
  101. package/dist/esm/badge/tests/badge-outline.js +4376 -0
  102. package/dist/esm/badge/tests/badge-position-outline.js +4438 -0
  103. package/dist/esm/badge/tests/badge-position-solid.js +4438 -0
  104. package/dist/esm/badge/tests/badge-size.js +4242 -64
  105. package/dist/esm/badge/tests/badge-solid.js +4376 -0
  106. package/dist/esm/breadcrumb/breadcrumb-link.js +1 -0
  107. package/dist/esm/breadcrumb/templates/breadcrumb-adaptive.js +4507 -0
  108. package/dist/esm/breadcrumb/templates/breadcrumb-normal.js +4504 -0
  109. package/dist/esm/breadcrumb/{tests/breadcrumb-adaptive.js → templates/breadcrumb-root-adaptive.js} +258 -261
  110. package/dist/esm/breadcrumb/templates/breadcrumb-root.js +4526 -0
  111. package/dist/esm/breadcrumb/tests/breadcrumb-items-rtl.js +5186 -0
  112. package/dist/esm/breadcrumb/tests/breadcrumb-items.js +5186 -0
  113. package/dist/esm/breadcrumb/tests/breadcrumb-rtl.js +470 -946
  114. package/dist/esm/breadcrumb/tests/breadcrumb-size.js +56 -54
  115. package/dist/esm/breadcrumb/tests/breadcrumb.js +406 -952
  116. package/dist/esm/captcha/captcha.spec.js +24 -8
  117. package/dist/esm/captcha/{tests/captcha-loading.js → templates/captcha-normal.js} +28 -15
  118. package/dist/esm/captcha/tests/captcha-rtl.js +4971 -0
  119. package/dist/esm/captcha/tests/captcha.js +36 -13
  120. package/dist/esm/chat/chat.spec.js +4 -4
  121. package/dist/esm/chat/templates/chat-normal.js +5126 -0
  122. package/dist/esm/chat/templates/chat-with-options.js +5127 -0
  123. package/dist/esm/chat/templates/chat-with-toolbar.js +5128 -0
  124. package/dist/esm/chat/tests/chat-content-rtl.js +5439 -0
  125. package/dist/esm/chat/tests/{chat-scrollable-deck.js → chat-content.js} +111 -33
  126. package/dist/esm/chat/tests/chat-rtl.js +300 -472
  127. package/dist/esm/chat/tests/chat.js +295 -483
  128. package/dist/esm/dropzone/dropzone.spec.js +11 -9
  129. package/dist/esm/dropzone/templates/dropzone-normal.js +4348 -0
  130. package/dist/esm/dropzone/templates/dropzone-with-note.js +4354 -0
  131. package/dist/esm/dropzone/tests/dropzone-states.js +4370 -0
  132. package/dist/esm/dropzone/tests/dropzone.js +34 -16
  133. package/dist/esm/editor/tests/editor-find-replace.js +225 -52
  134. package/dist/esm/editor/tests/editor-image-editor.js +936 -15
  135. package/dist/esm/editor/tests/editor-table-wizard.js +301 -128
  136. package/dist/esm/filemanager/tests/filemanager-contextmenu.js +529 -453
  137. package/dist/esm/filemanager/tests/filemanager-drag-hint.js +529 -453
  138. package/dist/esm/filemanager/tests/filemanager-gridview.js +594 -518
  139. package/dist/esm/filemanager/tests/filemanager-listview.js +548 -472
  140. package/dist/esm/filemanager/tests/filemanager-preview.js +647 -571
  141. package/dist/esm/form/templates/form-horizontal.js +5904 -0
  142. package/dist/esm/form/templates/form-normal.js +5903 -0
  143. package/dist/esm/form/tests/form-field-dateinputs.js +895 -58
  144. package/dist/esm/form/tests/form-field-dropdowns.js +395 -60
  145. package/dist/esm/form/tests/form-field-fieldset.js +1003 -27
  146. package/dist/esm/form/tests/form-field-inputs-rtl.js +898 -238
  147. package/dist/esm/form/tests/form-field-inputs.js +2317 -1677
  148. package/dist/esm/form/tests/form-grid-layout.js +192 -22
  149. package/dist/esm/form/tests/form-misc.js +874 -43
  150. package/dist/esm/form/tests/form-sizes.js +680 -505
  151. package/dist/esm/gantt/tests/gantt-editing-popup-general.js +202 -29
  152. package/dist/esm/gantt/tests/gantt-editing-popup-other.js +684 -29
  153. package/dist/esm/grid/tests/grid-angular.js +126 -116
  154. package/dist/esm/grid/tests/grid-column-resizing-actions.js +279 -106
  155. package/dist/esm/grid/tests/grid-editing-popup.js +187 -14
  156. package/dist/esm/grid/tests/grid-rtl-angular.js +84 -74
  157. package/dist/esm/grid/tests/grid-rtl.js +80 -70
  158. package/dist/esm/grid/tests/grid-selection-aggregates.js +76 -66
  159. package/dist/esm/grid/tests/grid-size-sm-comp-sm.js +383 -373
  160. package/dist/esm/grid/tests/grid-size-sm.js +383 -373
  161. package/dist/esm/grid/tests/grid-virtualization.js +366 -356
  162. package/dist/esm/grid/tests/grid.js +100 -90
  163. package/dist/esm/imageeditor/tests/imageeditor-crop-pane.js +217 -44
  164. package/dist/esm/imageeditor/tests/imageeditor-resize-pane.js +205 -32
  165. package/dist/esm/index.js +4462 -4133
  166. package/dist/esm/loader/templates/loader-container-normal.js +228 -0
  167. package/dist/esm/loader/templates/loader-converging.js +228 -0
  168. package/dist/esm/loader/templates/loader-infinite.js +228 -0
  169. package/dist/esm/loader/templates/loader-normal.js +228 -0
  170. package/dist/esm/loader/tests/{loader-sizes.js → loader-colors.js} +29 -20
  171. package/dist/esm/loader/tests/loader-container-colors.js +19 -24
  172. package/dist/esm/loader/tests/loader-container-overlay.js +24 -11
  173. package/dist/esm/loader/tests/loader-container.js +25 -18
  174. package/dist/esm/loader/tests/loader.js +27 -46
  175. package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +26 -19
  176. package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +309 -125
  177. package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +420 -236
  178. package/dist/esm/skeleton/index.js +28 -1
  179. package/dist/esm/skeleton/templates/skeleton-circle.js +61 -0
  180. package/dist/esm/skeleton/templates/skeleton-normal.js +55 -0
  181. package/dist/esm/skeleton/templates/skeleton-rectangle.js +61 -0
  182. package/dist/esm/skeleton/tests/skeleton.js +35 -11
  183. package/dist/esm/spreadsheet/tests/spreadsheet-data-validation.js +370 -322
  184. package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +549 -369
  185. package/dist/esm/spreadsheet/tests/spreadsheet-find-replace-dialog.js +451 -278
  186. package/dist/esm/spreadsheet/tests/spreadsheet-format-dialogs.js +948 -775
  187. package/dist/esm/spreadsheet/tests/spreadsheet-formula-dialog.js +309 -29
  188. package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +1124 -938
  189. package/dist/esm/spreadsheet/tests/spreadsheet-print.js +587 -539
  190. package/dist/esm/spreadsheet/tests/spreadsheet-sheets-bar.js +925 -68
  191. package/dist/esm/taskboard/tests/taskboard-pane.js +299 -126
  192. package/dist/esm/treelist/tests/treelist-editing-popup.js +673 -18
  193. package/dist/types/badge/index.d.ts +2 -0
  194. package/dist/types/badge/templates/badge-normal.d.ts +1 -0
  195. package/dist/types/badge/templates/icon-badge.d.ts +1 -0
  196. package/dist/types/breadcrumb/breadcrumb-link.d.ts +4 -1
  197. package/dist/types/breadcrumb/index.d.ts +4 -0
  198. package/dist/types/breadcrumb/templates/breadcrumb-adaptive.d.ts +1 -0
  199. package/dist/types/breadcrumb/templates/breadcrumb-normal.d.ts +1 -0
  200. package/dist/types/breadcrumb/templates/breadcrumb-root-adaptive.d.ts +1 -0
  201. package/dist/types/breadcrumb/templates/breadcrumb-root.d.ts +1 -0
  202. package/dist/types/breadcrumb/tests/breadcrumb-items.d.ts +2 -0
  203. package/dist/types/captcha/index.d.ts +1 -0
  204. package/dist/types/captcha/templates/captcha-normal.d.ts +1 -0
  205. package/dist/types/captcha/tests/captcha-rtl.d.ts +2 -0
  206. package/dist/types/chat/index.d.ts +3 -0
  207. package/dist/types/chat/templates/chat-normal.d.ts +1 -0
  208. package/dist/types/chat/templates/chat-with-options.d.ts +1 -0
  209. package/dist/types/chat/templates/chat-with-toolbar.d.ts +1 -0
  210. package/dist/types/chat/tests/chat-content-rtl.d.ts +2 -0
  211. package/dist/types/chat/tests/chat-content.d.ts +2 -0
  212. package/dist/types/dropzone/dropzone.spec.d.ts +12 -3
  213. package/dist/types/dropzone/index.d.ts +2 -0
  214. package/dist/types/dropzone/templates/dropzone-normal.d.ts +1 -0
  215. package/dist/types/dropzone/templates/dropzone-with-note.d.ts +1 -0
  216. package/dist/types/dropzone/tests/dropzone-states.d.ts +2 -0
  217. package/dist/types/form/index.d.ts +2 -0
  218. package/dist/types/form/templates/form-horizontal.d.ts +1 -0
  219. package/dist/types/form/templates/form-normal.d.ts +1 -0
  220. package/dist/types/index.d.ts +1 -0
  221. package/dist/types/loader/index.d.ts +4 -0
  222. package/dist/types/loader/templates/loader-container-normal.d.ts +1 -0
  223. package/dist/types/loader/templates/loader-converging.d.ts +1 -0
  224. package/dist/types/loader/templates/loader-infinite.d.ts +1 -0
  225. package/dist/types/loader/templates/loader-normal.d.ts +1 -0
  226. package/dist/types/loader/tests/loader-colors.d.ts +2 -0
  227. package/dist/types/skeleton/index.d.ts +3 -0
  228. package/dist/types/skeleton/templates/skeleton-circle.d.ts +1 -0
  229. package/dist/types/skeleton/templates/skeleton-normal.d.ts +1 -0
  230. package/dist/types/skeleton/templates/skeleton-rectangle.d.ts +1 -0
  231. package/package.json +2 -2
  232. package/src/badge/index.ts +2 -0
  233. package/src/badge/templates/badge-normal.tsx +3 -0
  234. package/src/badge/templates/icon-badge.tsx +11 -0
  235. package/src/badge/tests/badge-cutout-border.tsx +91 -0
  236. package/src/badge/tests/badge-misc.tsx +73 -136
  237. package/src/badge/tests/badge-outline.tsx +29 -0
  238. package/src/badge/tests/badge-position-outline.tsx +171 -0
  239. package/src/badge/tests/{badge-position.tsx → badge-position-solid.tsx} +36 -36
  240. package/src/badge/tests/badge-size.tsx +28 -65
  241. package/src/badge/tests/badge-solid.tsx +29 -0
  242. package/src/breadcrumb/breadcrumb-link.tsx +2 -0
  243. package/src/breadcrumb/index.ts +4 -0
  244. package/src/breadcrumb/templates/breadcrumb-adaptive.tsx +37 -0
  245. package/src/breadcrumb/templates/breadcrumb-normal.tsx +36 -0
  246. package/src/breadcrumb/templates/breadcrumb-root-adaptive.tsx +45 -0
  247. package/src/breadcrumb/templates/breadcrumb-root.tsx +41 -0
  248. package/src/breadcrumb/tests/breadcrumb-items-rtl.tsx +194 -0
  249. package/src/breadcrumb/tests/breadcrumb-items.tsx +194 -0
  250. package/src/breadcrumb/tests/breadcrumb-rtl.tsx +107 -187
  251. package/src/breadcrumb/tests/breadcrumb-size.tsx +27 -78
  252. package/src/breadcrumb/tests/breadcrumb.tsx +59 -253
  253. package/src/captcha/captcha.spec.tsx +2 -2
  254. package/src/captcha/index.ts +1 -0
  255. package/src/captcha/templates/captcha-normal.tsx +5 -0
  256. package/src/captcha/tests/captcha-rtl.tsx +16 -0
  257. package/src/captcha/tests/captcha.tsx +9 -6
  258. package/src/chat/chat.spec.tsx +4 -4
  259. package/src/chat/index.ts +3 -0
  260. package/src/chat/templates/chat-normal.tsx +23 -0
  261. package/src/chat/templates/chat-with-options.tsx +25 -0
  262. package/src/chat/templates/chat-with-toolbar.tsx +26 -0
  263. package/src/chat/tests/chat-content-rtl.tsx +166 -0
  264. package/src/chat/tests/chat-content.tsx +166 -0
  265. package/src/chat/tests/chat-rtl.tsx +28 -40
  266. package/src/chat/tests/chat.tsx +22 -78
  267. package/src/dropzone/dropzone.spec.tsx +13 -5
  268. package/src/dropzone/index.ts +2 -0
  269. package/src/dropzone/templates/dropzone-normal.tsx +3 -0
  270. package/src/dropzone/templates/dropzone-with-note.tsx +7 -0
  271. package/src/dropzone/tests/dropzone-states.tsx +22 -0
  272. package/src/dropzone/tests/dropzone.tsx +11 -9
  273. package/src/editor/tests/editor-find-replace.tsx +5 -5
  274. package/src/editor/tests/editor-image-editor.tsx +3 -3
  275. package/src/editor/tests/editor-table-wizard.tsx +7 -7
  276. package/src/filemanager/tests/filemanager-contextmenu.tsx +3 -3
  277. package/src/filemanager/tests/filemanager-drag-hint.tsx +3 -3
  278. package/src/filemanager/tests/filemanager-gridview.tsx +5 -5
  279. package/src/filemanager/tests/filemanager-listview.tsx +5 -5
  280. package/src/filemanager/tests/filemanager-preview.tsx +7 -7
  281. package/src/form/index.ts +2 -0
  282. package/src/form/templates/form-horizontal.tsx +48 -0
  283. package/src/form/templates/form-normal.tsx +47 -0
  284. package/src/form/tests/form-field-dateinputs.tsx +9 -9
  285. package/src/form/tests/form-field-dropdowns.tsx +9 -9
  286. package/src/form/tests/form-field-fieldset.tsx +9 -7
  287. package/src/form/tests/form-field-inputs-rtl.tsx +10 -10
  288. package/src/form/tests/form-field-inputs.tsx +37 -69
  289. package/src/form/tests/form-grid-layout.tsx +3 -9
  290. package/src/form/tests/form-misc.tsx +7 -22
  291. package/src/form/tests/form-sizes.tsx +27 -59
  292. package/src/gantt/tests/gantt-editing-popup-general.tsx +3 -3
  293. package/src/gantt/tests/gantt-editing-popup-other.tsx +3 -3
  294. package/src/grid/tests/grid-angular.tsx +2 -2
  295. package/src/grid/tests/grid-column-resizing-actions.tsx +3 -3
  296. package/src/grid/tests/grid-editing-popup.tsx +3 -3
  297. package/src/grid/tests/grid-rtl-angular.tsx +3 -3
  298. package/src/grid/tests/grid-rtl.tsx +3 -3
  299. package/src/grid/tests/grid-selection-aggregates.tsx +5 -5
  300. package/src/grid/tests/grid-size-sm-comp-sm.tsx +3 -3
  301. package/src/grid/tests/grid-size-sm.tsx +3 -3
  302. package/src/grid/tests/grid-virtualization.tsx +201 -201
  303. package/src/grid/tests/grid.tsx +3 -3
  304. package/src/imageeditor/tests/imageeditor-crop-pane.tsx +3 -3
  305. package/src/imageeditor/tests/imageeditor-resize-pane.tsx +3 -3
  306. package/src/index.ts +1 -1
  307. package/src/loader/index.ts +4 -0
  308. package/src/loader/templates/loader-container-normal.tsx +5 -0
  309. package/src/loader/templates/loader-converging.tsx +5 -0
  310. package/src/loader/templates/loader-infinite.tsx +5 -0
  311. package/src/loader/templates/loader-normal.tsx +5 -0
  312. package/src/loader/tests/loader-colors.tsx +34 -0
  313. package/src/loader/tests/loader-container-colors.tsx +11 -52
  314. package/src/loader/tests/loader-container-overlay.tsx +5 -5
  315. package/src/loader/tests/loader-container.tsx +16 -35
  316. package/src/loader/tests/loader.tsx +15 -129
  317. package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
  318. package/src/scheduler/tests/scheduler-edit-dialog.tsx +3 -3
  319. package/src/scheduler/tests/scheduler-editing-weekly.tsx +3 -3
  320. package/src/skeleton/index.tsx +3 -0
  321. package/src/skeleton/templates/skeleton-circle.tsx +7 -0
  322. package/src/skeleton/templates/skeleton-normal.tsx +3 -0
  323. package/src/skeleton/templates/skeleton-rectangle.tsx +7 -0
  324. package/src/skeleton/tests/skeleton.tsx +10 -10
  325. package/src/spreadsheet/tests/spreadsheet-data-validation.tsx +3 -3
  326. package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +5 -5
  327. package/src/spreadsheet/tests/spreadsheet-find-replace-dialog.tsx +3 -3
  328. package/src/spreadsheet/tests/spreadsheet-format-dialogs.tsx +5 -5
  329. package/src/spreadsheet/tests/spreadsheet-formula-dialog.tsx +3 -3
  330. package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +11 -11
  331. package/src/spreadsheet/tests/spreadsheet-print.tsx +5 -5
  332. package/src/spreadsheet/tests/spreadsheet-sheets-bar.tsx +3 -3
  333. package/src/taskboard/tests/taskboard-pane.tsx +5 -5
  334. package/src/treelist/tests/treelist-editing-popup.tsx +3 -3
  335. package/dist/cjs/badge/tests/badge-position.js +0 -250
  336. package/dist/cjs/badge/tests/badge.js +0 -357
  337. package/dist/esm/badge/tests/badge-position.js +0 -228
  338. package/dist/esm/badge/tests/badge.js +0 -335
  339. package/src/badge/tests/badge.tsx +0 -221
  340. package/src/breadcrumb/tests/breadcrumb-adaptive.tsx +0 -82
  341. package/src/captcha/tests/captcha-loading.tsx +0 -13
  342. package/src/chat/tests/chat-scrollable-deck.tsx +0 -64
  343. package/src/loader/tests/loader-sizes.tsx +0 -54
  344. /package/dist/types/badge/tests/{badge-position.d.ts → badge-cutout-border.d.ts} +0 -0
  345. /package/dist/types/badge/tests/{badge.d.ts → badge-outline.d.ts} +0 -0
  346. /package/dist/types/{breadcrumb/tests/breadcrumb-adaptive.d.ts → badge/tests/badge-position-outline.d.ts} +0 -0
  347. /package/dist/types/{captcha/tests/captcha-loading.d.ts → badge/tests/badge-position-solid.d.ts} +0 -0
  348. /package/dist/types/{chat/tests/chat-scrollable-deck.d.ts → badge/tests/badge-solid.d.ts} +0 -0
  349. /package/dist/types/{loader/tests/loader-sizes.d.ts → breadcrumb/tests/breadcrumb-items-rtl.d.ts} +0 -0
@@ -130,11 +130,249 @@ var States = {
130
130
  "readonly": "readonly"
131
131
  };
132
132
 
133
- // src/icon/font-icon.spec.tsx
133
+ // src/checkbox/checkbox.spec.tsx
134
134
  var import_jsx_runtime = require("react/jsx-runtime");
135
- var FONTICON_CLASSNAME = `k-icon k-font-icon`;
136
- var states = [];
135
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
136
+ var states = [
137
+ States.hover,
138
+ States.focus,
139
+ States.valid,
140
+ States.invalid,
141
+ States.required,
142
+ States.disabled,
143
+ States.checked,
144
+ States.indeterminate
145
+ ];
137
146
  var options = {
147
+ size: [Size.small, Size.medium, Size.large],
148
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
149
+ };
150
+ var defaultProps = {
151
+ size: Size.medium,
152
+ rounded: Roundness.medium
153
+ };
154
+ var Checkbox = (props) => {
155
+ const {
156
+ id,
157
+ checked,
158
+ indeterminate,
159
+ hover,
160
+ focus,
161
+ disabled,
162
+ invalid,
163
+ valid,
164
+ required,
165
+ size = defaultProps.size,
166
+ rounded = defaultProps.rounded,
167
+ ...other
168
+ } = props;
169
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
170
+ "input",
171
+ {
172
+ ...other,
173
+ id,
174
+ type: "checkbox",
175
+ checked,
176
+ required,
177
+ className: classNames(
178
+ props.className,
179
+ CHECKBOX_CLASSNAME,
180
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
181
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
182
+ )
183
+ }
184
+ ) });
185
+ };
186
+ Checkbox.states = states;
187
+ Checkbox.options = options;
188
+ Checkbox.className = CHECKBOX_CLASSNAME;
189
+ Checkbox.defaultProps = defaultProps;
190
+
191
+ // src/checkbox/checkbox-group.spec.tsx
192
+ var import_jsx_runtime2 = require("react/jsx-runtime");
193
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
194
+ var states2 = [];
195
+ var options2 = {};
196
+ var defaultProps2 = {
197
+ layout: "vertical"
198
+ };
199
+ var CheckboxGroup = (props) => {
200
+ const {
201
+ layout = defaultProps2.layout,
202
+ ...other
203
+ } = props;
204
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
205
+ "ul",
206
+ {
207
+ ...other,
208
+ className: classNames(
209
+ props.className,
210
+ CHECKBOXGROUP_CLASSNAME,
211
+ {
212
+ [`k-list-${layout}`]: layout
213
+ }
214
+ ),
215
+ children: props.children
216
+ }
217
+ );
218
+ };
219
+ CheckboxGroup.states = states2;
220
+ CheckboxGroup.options = options2;
221
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
222
+ CheckboxGroup.defaultProps = defaultProps2;
223
+
224
+ // src/checkbox/checkbox-item.spec.tsx
225
+ var import_jsx_runtime3 = require("react/jsx-runtime");
226
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
227
+ var states3 = [];
228
+ var options3 = {};
229
+ var defaultProps3 = {};
230
+ var CheckboxItem = (props) => {
231
+ const {
232
+ ...other
233
+ } = props;
234
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
235
+ "li",
236
+ {
237
+ ...other,
238
+ className: classNames(
239
+ props.className,
240
+ CHECKBOXITEM_CLASSNAME
241
+ ),
242
+ children: props.children
243
+ }
244
+ );
245
+ };
246
+ CheckboxItem.states = states3;
247
+ CheckboxItem.options = options3;
248
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
249
+ CheckboxItem.defaultProps = defaultProps3;
250
+
251
+ // src/checkbox/templates/checkbox-with-label-after.tsx
252
+ var import_jsx_runtime4 = require("react/jsx-runtime");
253
+
254
+ // src/checkbox/templates/checkbox-with-label-before.tsx
255
+ var import_jsx_runtime5 = require("react/jsx-runtime");
256
+
257
+ // src/checkbox/templates/checkbox-normal.tsx
258
+ var import_jsx_runtime6 = require("react/jsx-runtime");
259
+
260
+ // src/input/input.spec.tsx
261
+ var import_jsx_runtime7 = require("react/jsx-runtime");
262
+ var INPUT_CLASSNAME = `k-input`;
263
+ var states4 = [
264
+ States.hover,
265
+ States.focus,
266
+ States.valid,
267
+ States.invalid,
268
+ States.required,
269
+ States.disabled,
270
+ States.loading,
271
+ States.readonly
272
+ ];
273
+ var options4 = {
274
+ size: [Size.small, Size.medium, Size.large],
275
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
276
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
277
+ };
278
+ var defaultProps4 = {
279
+ size: Size.medium,
280
+ rounded: Size.medium,
281
+ fillMode: FillMode.solid
282
+ };
283
+ var Input = (props) => {
284
+ const {
285
+ hover,
286
+ focus,
287
+ disabled,
288
+ invalid,
289
+ valid,
290
+ loading,
291
+ readonly,
292
+ size = defaultProps4.size,
293
+ rounded = defaultProps4.rounded,
294
+ fillMode = defaultProps4.fillMode,
295
+ ...other
296
+ } = props;
297
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
298
+ "span",
299
+ {
300
+ ...other,
301
+ className: classNames(
302
+ props.className,
303
+ INPUT_CLASSNAME,
304
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
305
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
306
+ )
307
+ }
308
+ );
309
+ };
310
+ Input.states = states4;
311
+ Input.options = options4;
312
+ Input.className = INPUT_CLASSNAME;
313
+ Input.defaultProps = defaultProps4;
314
+
315
+ // src/input/picker.spec.tsx
316
+ var import_jsx_runtime8 = require("react/jsx-runtime");
317
+ var PICKER_CLASSNAME = `k-picker`;
318
+ var pickerStates = [
319
+ States.hover,
320
+ States.focus,
321
+ States.valid,
322
+ States.invalid,
323
+ States.required,
324
+ States.disabled,
325
+ States.loading,
326
+ States.readonly
327
+ ];
328
+ var pickerOptions = {
329
+ size: [Size.small, Size.medium, Size.large],
330
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
331
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
332
+ };
333
+ var defaultProps5 = {
334
+ size: Size.medium,
335
+ rounded: Roundness.medium,
336
+ fillMode: FillMode.solid
337
+ };
338
+ var Picker = (props) => {
339
+ const {
340
+ hover,
341
+ focus,
342
+ disabled,
343
+ invalid,
344
+ valid,
345
+ loading,
346
+ readonly,
347
+ size = defaultProps5.size,
348
+ rounded = defaultProps5.rounded,
349
+ fillMode = defaultProps5.fillMode,
350
+ ...other
351
+ } = props;
352
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
353
+ "span",
354
+ {
355
+ ...other,
356
+ className: classNames(
357
+ props.className,
358
+ PICKER_CLASSNAME,
359
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
360
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
361
+ ),
362
+ children: props.children
363
+ }
364
+ );
365
+ };
366
+ Picker.states = pickerStates;
367
+ Picker.options = pickerOptions;
368
+ Picker.className = PICKER_CLASSNAME;
369
+ Picker.defaultProps = defaultProps5;
370
+
371
+ // src/icon/font-icon.spec.tsx
372
+ var import_jsx_runtime9 = require("react/jsx-runtime");
373
+ var FONTICON_CLASSNAME = `k-icon k-font-icon`;
374
+ var states5 = [];
375
+ var options5 = {
138
376
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
139
377
  themeColor: [
140
378
  ThemeColor.base,
@@ -149,7 +387,7 @@ var options = {
149
387
  ThemeColor.dark
150
388
  ]
151
389
  };
152
- var defaultProps = {};
390
+ var defaultProps6 = {};
153
391
  var FontIcon = (props) => {
154
392
  const {
155
393
  size,
@@ -160,9 +398,9 @@ var FontIcon = (props) => {
160
398
  ...other
161
399
  } = props;
162
400
  if (!icon) {
163
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
401
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {});
164
402
  }
165
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
403
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
166
404
  "span",
167
405
  {
168
406
  ...other,
@@ -183,17 +421,17 @@ var FontIcon = (props) => {
183
421
  }
184
422
  );
185
423
  };
186
- FontIcon.states = states;
187
- FontIcon.options = options;
424
+ FontIcon.states = states5;
425
+ FontIcon.options = options5;
188
426
  FontIcon.className = FONTICON_CLASSNAME;
189
- FontIcon.defaultProps = defaultProps;
427
+ FontIcon.defaultProps = defaultProps6;
190
428
  var font_icon_spec_default = FontIcon;
191
429
 
192
430
  // src/icon/svg-icon.spec.tsx
193
- var import_jsx_runtime2 = require("react/jsx-runtime");
431
+ var import_jsx_runtime10 = require("react/jsx-runtime");
194
432
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
195
- var states2 = [];
196
- var options2 = {
433
+ var states6 = [];
434
+ var options6 = {
197
435
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
198
436
  themeColor: [
199
437
  ThemeColor.base,
@@ -208,7 +446,7 @@ var options2 = {
208
446
  ThemeColor.dark
209
447
  ]
210
448
  };
211
- var defaultProps2 = {
449
+ var defaultProps7 = {
212
450
  viewBox: "0 0 24 24"
213
451
  };
214
452
  var SvgIcon = (props) => {
@@ -217,15 +455,15 @@ var SvgIcon = (props) => {
217
455
  themeColor,
218
456
  rotate,
219
457
  flip,
220
- viewBox = defaultProps2.viewBox,
458
+ viewBox = defaultProps7.viewBox,
221
459
  icon,
222
460
  ...other
223
461
  } = props;
224
462
  if (!icon) {
225
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
463
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
226
464
  }
227
465
  if (icon === "none") {
228
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
466
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
229
467
  "span",
230
468
  {
231
469
  ...other,
@@ -238,7 +476,7 @@ var SvgIcon = (props) => {
238
476
  );
239
477
  }
240
478
  const name = typeof icon === "object" && icon.name && icon.name;
241
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
479
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
242
480
  "span",
243
481
  {
244
482
  ...other,
@@ -256,7 +494,7 @@ var SvgIcon = (props) => {
256
494
  "k-flip-v": flip === "v" || flip === "both"
257
495
  }
258
496
  ),
259
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
497
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
260
498
  "svg",
261
499
  {
262
500
  "aria-hidden": true,
@@ -270,10 +508,10 @@ var SvgIcon = (props) => {
270
508
  }
271
509
  );
272
510
  };
273
- SvgIcon.states = states2;
274
- SvgIcon.options = options2;
511
+ SvgIcon.states = states6;
512
+ SvgIcon.options = options6;
275
513
  SvgIcon.className = SVGICON_CLASSNAME;
276
- SvgIcon.defaultProps = defaultProps2;
514
+ SvgIcon.defaultProps = defaultProps7;
277
515
  var svg_icon_spec_default = SvgIcon;
278
516
 
279
517
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4272,13 +4510,13 @@ var chartChoroplethIcon = {
4272
4510
  };
4273
4511
 
4274
4512
  // src/icon/icon.spec.tsx
4275
- var import_jsx_runtime3 = require("react/jsx-runtime");
4513
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4276
4514
  var snakeToCamel = (str) => str.toLowerCase().replace(
4277
4515
  /([-_][a-z])/g,
4278
4516
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4279
4517
  );
4280
- var states3 = [];
4281
- var options3 = {
4518
+ var states7 = [];
4519
+ var options7 = {
4282
4520
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4283
4521
  themeColor: [
4284
4522
  ThemeColor.base,
@@ -4293,7 +4531,7 @@ var options3 = {
4293
4531
  ThemeColor.dark
4294
4532
  ]
4295
4533
  };
4296
- var defaultProps3 = {
4534
+ var defaultProps8 = {
4297
4535
  viewBox: "0 0 24 24",
4298
4536
  type: "svg"
4299
4537
  };
@@ -4302,52 +4540,244 @@ var Icon = (props) => {
4302
4540
  size,
4303
4541
  themeColor,
4304
4542
  icon,
4305
- type = defaultProps3.type,
4543
+ type = defaultProps8.type,
4306
4544
  rotate,
4307
4545
  flip,
4308
- viewBox = defaultProps3.viewBox,
4546
+ viewBox = defaultProps8.viewBox,
4309
4547
  ...other
4310
4548
  } = props;
4311
4549
  if (!icon) {
4312
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4550
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
4313
4551
  }
4314
4552
  if (type === "svg") {
4315
4553
  if (icon === "none") {
4316
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon, size });
4554
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(svg_icon_spec_default, { ...other, icon, size });
4317
4555
  }
4318
4556
  const iconSVG = snakeToCamel(`${icon}-icon`);
4319
4557
  if (!index_es_exports[iconSVG]) {
4320
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4558
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
4321
4559
  }
4322
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4560
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4323
4561
  }
4324
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4562
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4325
4563
  };
4326
- Icon.states = states3;
4327
- Icon.options = options3;
4328
- Icon.defaultProps = defaultProps3;
4564
+ Icon.states = states7;
4565
+ Icon.options = options7;
4566
+ Icon.defaultProps = defaultProps8;
4329
4567
 
4330
- // src/button/button.spec.tsx
4331
- var import_jsx_runtime4 = require("react/jsx-runtime");
4332
- var BUTTON_CLASSNAME = `k-button`;
4333
- var states4 = [
4334
- States.hover,
4335
- States.focus,
4336
- States.active,
4337
- States.selected,
4338
- States.disabled
4568
+ // src/input/input-clear-value.tsx
4569
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4570
+ var className = `k-clear-value`;
4571
+ var states8 = [
4572
+ States.disabled,
4573
+ States.loading,
4574
+ States.readonly
4339
4575
  ];
4340
- var options4 = {
4341
- size: [Size.small, Size.medium, Size.large],
4342
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4343
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4344
- themeColor: [
4345
- ThemeColor.base,
4346
- ThemeColor.primary,
4347
- ThemeColor.secondary,
4348
- ThemeColor.tertiary,
4349
- ThemeColor.success,
4350
- ThemeColor.warning,
4576
+ var options8 = {};
4577
+ var InputClearValue = (props) => {
4578
+ const {
4579
+ disabled,
4580
+ loading,
4581
+ readonly,
4582
+ value
4583
+ } = props;
4584
+ if (disabled || readonly || loading || !value) {
4585
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
4586
+ }
4587
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { icon: "x" }) });
4588
+ };
4589
+ InputClearValue.states = states8;
4590
+ InputClearValue.options = options8;
4591
+ InputClearValue.className = className;
4592
+
4593
+ // src/input/input-inner-input.tsx
4594
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4595
+ var className2 = `k-input-inner`;
4596
+ var states9 = [];
4597
+ var options9 = {};
4598
+ var defaultProps9 = {
4599
+ type: "text",
4600
+ autocomplete: "off",
4601
+ value: "",
4602
+ placeholder: ""
4603
+ };
4604
+ var InputInnerInput = (props) => {
4605
+ const {
4606
+ value = defaultProps9.value,
4607
+ type = defaultProps9.type,
4608
+ placeholder = defaultProps9.placeholder,
4609
+ autocomplete = defaultProps9.autocomplete,
4610
+ ...other
4611
+ } = props;
4612
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4613
+ "input",
4614
+ {
4615
+ ...other,
4616
+ type,
4617
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
4618
+ placeholder,
4619
+ autoComplete: autocomplete,
4620
+ defaultValue: value
4621
+ }
4622
+ );
4623
+ };
4624
+ InputInnerInput.states = states9;
4625
+ InputInnerInput.options = options9;
4626
+ InputInnerInput.className = className2;
4627
+
4628
+ // src/input/input-inner-span.tsx
4629
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4630
+ var className3 = `k-input-inner`;
4631
+ var states10 = [];
4632
+ var options10 = {};
4633
+ var InputInnerSpan = (props) => {
4634
+ const {
4635
+ value,
4636
+ placeholder,
4637
+ showValue,
4638
+ valueIcon,
4639
+ valueIconName,
4640
+ ...other
4641
+ } = props;
4642
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
4643
+ "span",
4644
+ {
4645
+ ...other,
4646
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
4647
+ children: [
4648
+ valueIcon,
4649
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4650
+ showValue && !value && placeholder,
4651
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "k-input-value-text", children: value })
4652
+ ]
4653
+ }
4654
+ );
4655
+ };
4656
+ InputInnerSpan.states = states10;
4657
+ InputInnerSpan.options = options10;
4658
+ InputInnerSpan.className = className3;
4659
+
4660
+ // src/input/input-inner-textarea.tsx
4661
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4662
+ var defaultProps10 = {
4663
+ value: "",
4664
+ placeholder: ""
4665
+ };
4666
+ var className4 = `k-input-inner`;
4667
+ var states11 = [];
4668
+ var options11 = {};
4669
+ var InputInnerTextarea = (props) => {
4670
+ const {
4671
+ value = defaultProps10.value,
4672
+ placeholder = defaultProps10.placeholder,
4673
+ rows,
4674
+ ...other
4675
+ } = props;
4676
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4677
+ "textarea",
4678
+ {
4679
+ ...other,
4680
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
4681
+ placeholder,
4682
+ rows,
4683
+ children: value
4684
+ }
4685
+ );
4686
+ };
4687
+ InputInnerTextarea.states = states11;
4688
+ InputInnerTextarea.options = options11;
4689
+ InputInnerTextarea.className = className4;
4690
+
4691
+ // src/input/input-loading-icon.tsx
4692
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4693
+ var className5 = `k-input-loading-icon`;
4694
+ var states12 = [
4695
+ States.disabled,
4696
+ States.loading
4697
+ ];
4698
+ var InputLoadingIcon = (props) => {
4699
+ const {
4700
+ disabled,
4701
+ loading
4702
+ } = props;
4703
+ if (disabled || !loading) {
4704
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, {});
4705
+ }
4706
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4707
+ };
4708
+
4709
+ // src/input/input-validation-icon.tsx
4710
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4711
+ var className6 = `k-input-validation-icon`;
4712
+ var states13 = [
4713
+ States.valid,
4714
+ States.invalid,
4715
+ States.disabled,
4716
+ States.loading
4717
+ ];
4718
+ var options12 = {};
4719
+ var InputValidationIcon = (props) => {
4720
+ const {
4721
+ valid,
4722
+ invalid,
4723
+ disabled,
4724
+ loading
4725
+ } = props;
4726
+ const iconName = invalid ? "exclamation-circle" : "check";
4727
+ const renderValidationIcon = Boolean(valid || invalid);
4728
+ if (disabled || loading || !renderValidationIcon) {
4729
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
4730
+ }
4731
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { className: classNames(className6), icon: iconName });
4732
+ };
4733
+ InputValidationIcon.states = states13;
4734
+ InputValidationIcon.options = options12;
4735
+ InputValidationIcon.className = className6;
4736
+
4737
+ // src/input/input-prefix.tsx
4738
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4739
+ var className7 = `k-input-prefix`;
4740
+ var InputPrefix = (props) => {
4741
+ if (!props.children) {
4742
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {});
4743
+ }
4744
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4745
+ };
4746
+
4747
+ // src/input/input-suffix.tsx
4748
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4749
+ var className8 = `k-input-suffix`;
4750
+ var InputSuffix = (props) => {
4751
+ if (!props.children) {
4752
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {});
4753
+ }
4754
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4755
+ };
4756
+
4757
+ // src/input/input-separator.tsx
4758
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4759
+
4760
+ // src/button/button.spec.tsx
4761
+ var import_jsx_runtime21 = require("react/jsx-runtime");
4762
+ var BUTTON_CLASSNAME = `k-button`;
4763
+ var states14 = [
4764
+ States.hover,
4765
+ States.focus,
4766
+ States.active,
4767
+ States.selected,
4768
+ States.disabled
4769
+ ];
4770
+ var options13 = {
4771
+ size: [Size.small, Size.medium, Size.large],
4772
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4773
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4774
+ themeColor: [
4775
+ ThemeColor.base,
4776
+ ThemeColor.primary,
4777
+ ThemeColor.secondary,
4778
+ ThemeColor.tertiary,
4779
+ ThemeColor.success,
4780
+ ThemeColor.warning,
4351
4781
  ThemeColor.error,
4352
4782
  ThemeColor.info,
4353
4783
  ThemeColor.light,
@@ -4355,7 +4785,7 @@ var options4 = {
4355
4785
  ThemeColor.inverse
4356
4786
  ]
4357
4787
  };
4358
- var defaultProps4 = {
4788
+ var defaultProps11 = {
4359
4789
  size: Size.medium,
4360
4790
  rounded: Roundness.medium,
4361
4791
  fillMode: FillMode.solid,
@@ -4365,10 +4795,10 @@ var defaultProps4 = {
4365
4795
  };
4366
4796
  var Button = (props) => {
4367
4797
  const {
4368
- size = defaultProps4.size,
4369
- rounded = defaultProps4.rounded,
4370
- fillMode = defaultProps4.fillMode,
4371
- themeColor = defaultProps4.themeColor,
4798
+ size = defaultProps11.size,
4799
+ rounded = defaultProps11.rounded,
4800
+ fillMode = defaultProps11.fillMode,
4801
+ themeColor = defaultProps11.themeColor,
4372
4802
  hover,
4373
4803
  focus,
4374
4804
  active,
@@ -4377,13 +4807,13 @@ var Button = (props) => {
4377
4807
  icon,
4378
4808
  text,
4379
4809
  iconClassName,
4380
- showArrow = defaultProps4.showArrow,
4381
- arrowIconName = defaultProps4.arrowIconName,
4810
+ showArrow = defaultProps11.showArrow,
4811
+ arrowIconName = defaultProps11.arrowIconName,
4382
4812
  ...other
4383
4813
  } = props;
4384
4814
  const hasIcon = icon !== void 0;
4385
4815
  const hasChildren = props.children !== void 0;
4386
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
4816
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4387
4817
  "button",
4388
4818
  {
4389
4819
  ...other,
@@ -4408,596 +4838,539 @@ var Button = (props) => {
4408
4838
  }
4409
4839
  ),
4410
4840
  children: [
4411
- icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4841
+ icon && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4412
4842
  Icon,
4413
4843
  {
4414
4844
  className: classNames(iconClassName, "k-button-icon"),
4415
4845
  icon
4416
4846
  }
4417
4847
  ),
4418
- text ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
4419
- text && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-button-text", children: text }),
4848
+ text ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
4849
+ text && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "k-button-text", children: text }),
4420
4850
  props.children
4421
- ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-button-text", children: props.children }),
4422
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: arrowIconName }) })
4851
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "k-button-text", children: props.children }),
4852
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon, { icon: arrowIconName }) })
4423
4853
  ]
4424
4854
  }
4425
4855
  );
4426
4856
  };
4427
- Button.states = states4;
4428
- Button.options = options4;
4857
+ Button.states = states14;
4858
+ Button.options = options13;
4429
4859
  Button.className = BUTTON_CLASSNAME;
4430
- Button.defaultProps = defaultProps4;
4860
+ Button.defaultProps = defaultProps11;
4431
4861
 
4432
4862
  // src/button/templates/icon-button.tsx
4433
- var import_jsx_runtime5 = require("react/jsx-runtime");
4863
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4434
4864
 
4435
4865
  // src/button/templates/icon-text-button.tsx
4436
- var import_jsx_runtime6 = require("react/jsx-runtime");
4866
+ var import_jsx_runtime23 = require("react/jsx-runtime");
4437
4867
 
4438
4868
  // src/button/templates/text-button.tsx
4439
- var import_jsx_runtime7 = require("react/jsx-runtime");
4869
+ var import_jsx_runtime24 = require("react/jsx-runtime");
4440
4870
 
4441
- // src/checkbox/checkbox.spec.tsx
4442
- var import_jsx_runtime8 = require("react/jsx-runtime");
4443
- var CHECKBOX_CLASSNAME = `k-checkbox`;
4444
- var states5 = [
4445
- States.hover,
4446
- States.focus,
4447
- States.valid,
4448
- States.invalid,
4449
- States.required,
4450
- States.disabled,
4451
- States.checked,
4452
- States.indeterminate
4453
- ];
4454
- var options5 = {
4455
- size: [Size.small, Size.medium, Size.large],
4456
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
4457
- };
4458
- var defaultProps5 = {
4459
- size: Size.medium,
4460
- rounded: Roundness.medium
4461
- };
4462
- var Checkbox = (props) => {
4871
+ // src/color-preview/color-preview.tsx
4872
+ var import_jsx_runtime25 = require("react/jsx-runtime");
4873
+ var COLORPREVIEW_CLASSNAME = `k-color-preview`;
4874
+ var states15 = [];
4875
+ var options14 = {};
4876
+ var ColorPreview = (props) => {
4463
4877
  const {
4464
- id,
4465
- checked,
4466
- indeterminate,
4467
- hover,
4468
- focus,
4469
- disabled,
4470
- invalid,
4471
- valid,
4472
- required,
4473
- size = defaultProps5.size,
4474
- rounded = defaultProps5.rounded,
4878
+ color,
4879
+ iconName,
4475
4880
  ...other
4476
4881
  } = props;
4477
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
4478
- "input",
4882
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
4883
+ "span",
4479
4884
  {
4480
4885
  ...other,
4481
- id,
4482
- type: "checkbox",
4483
- checked,
4484
- required,
4485
4886
  className: classNames(
4486
4887
  props.className,
4487
- CHECKBOX_CLASSNAME,
4488
- optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
4489
- stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
4490
- )
4888
+ COLORPREVIEW_CLASSNAME,
4889
+ {
4890
+ "k-icon-color-preview": iconName,
4891
+ "k-no-color": !color
4892
+ }
4893
+ ),
4894
+ children: [
4895
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon: iconName, className: "k-color-preview-icon" }),
4896
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4897
+ "span",
4898
+ {
4899
+ className: "k-color-preview-mask",
4900
+ style: { backgroundColor: color }
4901
+ }
4902
+ )
4903
+ ]
4491
4904
  }
4492
- ) });
4905
+ );
4493
4906
  };
4494
- Checkbox.states = states5;
4495
- Checkbox.options = options5;
4496
- Checkbox.className = CHECKBOX_CLASSNAME;
4497
- Checkbox.defaultProps = defaultProps5;
4498
-
4499
- // src/checkbox/checkbox-group.spec.tsx
4500
- var import_jsx_runtime9 = require("react/jsx-runtime");
4501
- var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
4502
- var states6 = [];
4503
- var options6 = {};
4504
- var defaultProps6 = {
4505
- layout: "vertical"
4907
+ ColorPreview.states = states15;
4908
+ ColorPreview.options = options14;
4909
+ ColorPreview.className = COLORPREVIEW_CLASSNAME;
4910
+
4911
+ // src/animation-container/animation-container.spec.tsx
4912
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4913
+ var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4914
+ var states16 = [];
4915
+ var options15 = {};
4916
+ var defaultProps12 = {
4917
+ positionMode: "absolute"
4506
4918
  };
4507
- var CheckboxGroup = (props) => {
4919
+ var AnimationContainer = (props) => {
4508
4920
  const {
4509
- layout = defaultProps6.layout,
4921
+ positionMode,
4922
+ animationStyle,
4923
+ offset,
4510
4924
  ...other
4511
4925
  } = props;
4512
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4513
- "ul",
4926
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4927
+ "div",
4514
4928
  {
4515
4929
  ...other,
4930
+ style: { ...offset, ...props.style },
4516
4931
  className: classNames(
4517
- props.className,
4518
- CHECKBOXGROUP_CLASSNAME,
4932
+ ANIMATION_CONTAINER_CLASSNAME,
4933
+ "k-animation-container-shown",
4519
4934
  {
4520
- [`k-list-${layout}`]: layout
4935
+ ["k-animation-container-fixed"]: positionMode === "fixed"
4521
4936
  }
4522
4937
  ),
4523
- children: props.children
4938
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4524
4939
  }
4525
4940
  );
4526
4941
  };
4527
- CheckboxGroup.states = states6;
4528
- CheckboxGroup.options = options6;
4529
- CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
4530
- CheckboxGroup.defaultProps = defaultProps6;
4942
+ AnimationContainer.states = states16;
4943
+ AnimationContainer.options = options15;
4944
+ AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
4945
+ AnimationContainer.defaultProps = defaultProps12;
4531
4946
 
4532
- // src/checkbox/checkbox-item.spec.tsx
4533
- var import_jsx_runtime10 = require("react/jsx-runtime");
4534
- var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
4535
- var states7 = [];
4536
- var options7 = {};
4537
- var defaultProps7 = {};
4538
- var CheckboxItem = (props) => {
4947
+ // src/popup/popup.spec.tsx
4948
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4949
+ var POPUP_CLASSNAME = `k-popup`;
4950
+ var states17 = [];
4951
+ var options16 = {};
4952
+ var defaultProps13 = {
4953
+ positionMode: "absolute"
4954
+ };
4955
+ var Popup = (props) => {
4539
4956
  const {
4957
+ offset,
4958
+ positionMode,
4540
4959
  ...other
4541
4960
  } = props;
4542
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4543
- "li",
4961
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4962
+ AnimationContainer,
4544
4963
  {
4545
- ...other,
4546
- className: classNames(
4547
- props.className,
4548
- CHECKBOXITEM_CLASSNAME
4549
- ),
4550
- children: props.children
4964
+ positionMode,
4965
+ offset,
4966
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4551
4967
  }
4552
4968
  );
4553
4969
  };
4554
- CheckboxItem.states = states7;
4555
- CheckboxItem.options = options7;
4556
- CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
4557
- CheckboxItem.defaultProps = defaultProps7;
4558
-
4559
- // src/checkbox/templates/checkbox-with-label-after.tsx
4560
- var import_jsx_runtime11 = require("react/jsx-runtime");
4561
-
4562
- // src/checkbox/templates/checkbox-with-label-before.tsx
4563
- var import_jsx_runtime12 = require("react/jsx-runtime");
4564
-
4565
- // src/checkbox/templates/checkbox-normal.tsx
4566
- var import_jsx_runtime13 = require("react/jsx-runtime");
4970
+ Popup.states = states17;
4971
+ Popup.options = options16;
4972
+ Popup.className = POPUP_CLASSNAME;
4973
+ Popup.defaultProps = defaultProps13;
4567
4974
 
4568
- // src/input/input.spec.tsx
4569
- var import_jsx_runtime14 = require("react/jsx-runtime");
4570
- var INPUT_CLASSNAME = `k-input`;
4571
- var states8 = [
4975
+ // src/colorpicker/colorpicker.spec.tsx
4976
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4977
+ var COLORPICKER_CLASSNAME = `k-colorpicker`;
4978
+ var states18 = [
4572
4979
  States.hover,
4573
4980
  States.focus,
4574
4981
  States.valid,
4575
4982
  States.invalid,
4576
4983
  States.required,
4577
- States.disabled,
4578
- States.loading,
4579
- States.readonly
4984
+ States.disabled
4580
4985
  ];
4581
- var options8 = {
4986
+ var options17 = {
4582
4987
  size: [Size.small, Size.medium, Size.large],
4583
4988
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4584
4989
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4585
4990
  };
4586
- var defaultProps8 = {
4587
- size: Size.medium,
4588
- rounded: Size.medium,
4589
- fillMode: FillMode.solid
4991
+ var defaultProps14 = {
4992
+ arrowIconName: "caret-alt-down",
4993
+ size: Picker.defaultProps.size,
4994
+ rounded: Picker.defaultProps.rounded,
4995
+ fillMode: Picker.defaultProps.fillMode
4590
4996
  };
4591
- var Input = (props) => {
4997
+ var ColorPicker = (props) => {
4592
4998
  const {
4999
+ prefix,
5000
+ suffix,
5001
+ value,
5002
+ placeholder,
5003
+ size,
5004
+ rounded,
5005
+ fillMode,
4593
5006
  hover,
4594
5007
  focus,
4595
- disabled,
4596
- invalid,
4597
5008
  valid,
4598
- loading,
4599
- readonly,
4600
- size = defaultProps8.size,
4601
- rounded = defaultProps8.rounded,
4602
- fillMode = defaultProps8.fillMode,
5009
+ invalid,
5010
+ required,
5011
+ disabled,
5012
+ valueIconName,
5013
+ arrowIconName = defaultProps14.arrowIconName,
5014
+ popup,
5015
+ opened,
4603
5016
  ...other
4604
5017
  } = props;
4605
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4606
- "span",
4607
- {
4608
- ...other,
4609
- className: classNames(
4610
- props.className,
4611
- INPUT_CLASSNAME,
4612
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4613
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4614
- )
4615
- }
4616
- );
5018
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
5019
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
5020
+ Picker,
5021
+ {
5022
+ ...other,
5023
+ size,
5024
+ rounded,
5025
+ fillMode,
5026
+ hover,
5027
+ focus,
5028
+ valid,
5029
+ invalid,
5030
+ required,
5031
+ disabled,
5032
+ className: classNames(
5033
+ props.className,
5034
+ COLORPICKER_CLASSNAME,
5035
+ "k-icon-picker"
5036
+ ),
5037
+ children: [
5038
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputPrefix, { children: prefix }),
5039
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5040
+ InputInnerSpan,
5041
+ {
5042
+ placeholder,
5043
+ value,
5044
+ showValue: false,
5045
+ valueIcon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5046
+ ColorPreview,
5047
+ {
5048
+ className: "k-value-icon",
5049
+ color: value,
5050
+ iconName: valueIconName
5051
+ }
5052
+ ),
5053
+ valueIconName
5054
+ }
5055
+ ),
5056
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputSuffix, { children: suffix }),
5057
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5058
+ Button,
5059
+ {
5060
+ className: "k-input-button",
5061
+ icon: arrowIconName,
5062
+ rounded: null,
5063
+ size,
5064
+ fillMode
5065
+ }
5066
+ )
5067
+ ]
5068
+ }
5069
+ ),
5070
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Popup, { className: "k-color-picker-popup", children: popup })
5071
+ ] });
4617
5072
  };
4618
- Input.states = states8;
4619
- Input.options = options8;
4620
- Input.className = INPUT_CLASSNAME;
4621
- Input.defaultProps = defaultProps8;
5073
+ ColorPicker.states = states18;
5074
+ ColorPicker.options = options17;
5075
+ ColorPicker.className = COLORPICKER_CLASSNAME;
5076
+ ColorPicker.defaultProps = defaultProps14;
4622
5077
 
4623
- // src/input/picker.spec.tsx
4624
- var import_jsx_runtime15 = require("react/jsx-runtime");
4625
- var PICKER_CLASSNAME = `k-picker`;
4626
- var pickerStates = [
4627
- States.hover,
4628
- States.focus,
4629
- States.valid,
4630
- States.invalid,
4631
- States.required,
4632
- States.disabled,
4633
- States.loading,
4634
- States.readonly
4635
- ];
4636
- var pickerOptions = {
4637
- size: [Size.small, Size.medium, Size.large],
4638
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4639
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4640
- };
4641
- var defaultProps9 = {
4642
- size: Size.medium,
4643
- rounded: Roundness.medium,
4644
- fillMode: FillMode.solid
5078
+ // src/colorpicker/templates/colorpicker-normal.tsx
5079
+ var import_jsx_runtime29 = require("react/jsx-runtime");
5080
+
5081
+ // src/action-buttons/action-buttons.spec.tsx
5082
+ var import_jsx_runtime30 = require("react/jsx-runtime");
5083
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5084
+ var states19 = [];
5085
+ var options18 = {};
5086
+ var defaultProps15 = {
5087
+ alignment: "start",
5088
+ orientation: "horizontal"
4645
5089
  };
4646
- var Picker = (props) => {
5090
+ var ActionButtons = (props) => {
4647
5091
  const {
4648
- hover,
4649
- focus,
4650
- disabled,
4651
- invalid,
4652
- valid,
4653
- loading,
4654
- readonly,
4655
- size = defaultProps9.size,
4656
- rounded = defaultProps9.rounded,
4657
- fillMode = defaultProps9.fillMode,
5092
+ alignment = defaultProps15.alignment,
5093
+ orientation = defaultProps15.orientation,
4658
5094
  ...other
4659
5095
  } = props;
4660
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4661
- "span",
5096
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5097
+ "div",
4662
5098
  {
4663
5099
  ...other,
4664
5100
  className: classNames(
4665
- props.className,
4666
- PICKER_CLASSNAME,
4667
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4668
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
5101
+ ACTIONBUTTONS_CLASSNAME,
5102
+ {
5103
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5104
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5105
+ },
5106
+ props.className
4669
5107
  ),
4670
5108
  children: props.children
4671
5109
  }
4672
5110
  );
4673
5111
  };
4674
- Picker.states = pickerStates;
4675
- Picker.options = pickerOptions;
4676
- Picker.className = PICKER_CLASSNAME;
4677
- Picker.defaultProps = defaultProps9;
4678
-
4679
- // src/input/input-clear-value.tsx
4680
- var import_jsx_runtime16 = require("react/jsx-runtime");
4681
- var className = `k-clear-value`;
4682
- var states9 = [
4683
- States.disabled,
4684
- States.loading,
4685
- States.readonly
5112
+ ActionButtons.states = states19;
5113
+ ActionButtons.options = options18;
5114
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5115
+ ActionButtons.defaultProps = defaultProps15;
5116
+ var action_buttons_spec_default = ActionButtons;
5117
+
5118
+ // src/button-group/button-group.spec.tsx
5119
+ var import_jsx_runtime31 = require("react/jsx-runtime");
5120
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
5121
+ var states20 = [
5122
+ States.disabled
4686
5123
  ];
4687
- var options9 = {};
4688
- var InputClearValue = (props) => {
4689
- const {
4690
- disabled,
4691
- loading,
4692
- readonly,
4693
- value
4694
- } = props;
4695
- if (disabled || readonly || loading || !value) {
4696
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, {});
4697
- }
4698
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { icon: "x" }) });
5124
+ var options19 = {
5125
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
4699
5126
  };
4700
- InputClearValue.states = states9;
4701
- InputClearValue.options = options9;
4702
- InputClearValue.className = className;
4703
-
4704
- // src/input/input-inner-input.tsx
4705
- var import_jsx_runtime17 = require("react/jsx-runtime");
4706
- var className2 = `k-input-inner`;
4707
- var states10 = [];
4708
- var options10 = {};
4709
- var defaultProps10 = {
4710
- type: "text",
4711
- autocomplete: "off",
4712
- value: "",
4713
- placeholder: ""
5127
+ var defaultProps16 = {
5128
+ fillMode: FillMode.solid
4714
5129
  };
4715
- var InputInnerInput = (props) => {
5130
+ var ButtonGroup = (props) => {
4716
5131
  const {
4717
- value = defaultProps10.value,
4718
- type = defaultProps10.type,
4719
- placeholder = defaultProps10.placeholder,
4720
- autocomplete = defaultProps10.autocomplete,
5132
+ fillMode = defaultProps16.fillMode,
5133
+ disabled,
5134
+ stretched,
4721
5135
  ...other
4722
5136
  } = props;
4723
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4724
- "input",
5137
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5138
+ "div",
4725
5139
  {
4726
5140
  ...other,
4727
- type,
4728
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4729
- placeholder,
4730
- autoComplete: autocomplete,
4731
- defaultValue: value
5141
+ className: classNames(
5142
+ props.className,
5143
+ BUTTONGROUP_CLASSNAME,
5144
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
5145
+ fillMode
5146
+ }),
5147
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
5148
+ disabled
5149
+ }),
5150
+ {
5151
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
5152
+ }
5153
+ ),
5154
+ children: props.children
4732
5155
  }
4733
5156
  );
4734
5157
  };
4735
- InputInnerInput.states = states10;
4736
- InputInnerInput.options = options10;
4737
- InputInnerInput.className = className2;
5158
+ ButtonGroup.states = states20;
5159
+ ButtonGroup.options = options19;
5160
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
5161
+ ButtonGroup.defaultProps = defaultProps16;
4738
5162
 
4739
- // src/input/input-inner-span.tsx
4740
- var import_jsx_runtime18 = require("react/jsx-runtime");
4741
- var className3 = `k-input-inner`;
4742
- var states11 = [];
4743
- var options11 = {};
4744
- var InputInnerSpan = (props) => {
5163
+ // src/button-group/templates/icon-button-group.tsx
5164
+ var import_jsx_runtime32 = require("react/jsx-runtime");
5165
+
5166
+ // src/button-group/templates/icon-text-button-group.tsx
5167
+ var import_jsx_runtime33 = require("react/jsx-runtime");
5168
+
5169
+ // src/button-group/templates/text-button-group.tsx
5170
+ var import_jsx_runtime34 = require("react/jsx-runtime");
5171
+
5172
+ // src/button-group/templates/mixed-button-group.tsx
5173
+ var import_jsx_runtime35 = require("react/jsx-runtime");
5174
+
5175
+ // src/slider/slider.spec.tsx
5176
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5177
+ var SLIDER_CLASSNAME = "k-slider";
5178
+ var states21 = [
5179
+ States.hover,
5180
+ States.focus,
5181
+ States.active,
5182
+ States.disabled,
5183
+ States.readonly
5184
+ ];
5185
+ var options20 = {};
5186
+ var defaultProps17 = {
5187
+ type: "single",
5188
+ orientation: "horizontal",
5189
+ readonly: false,
5190
+ disabled: false,
5191
+ handlePosition: "end"
5192
+ };
5193
+ var Slider = (props) => {
4745
5194
  const {
4746
- value,
4747
- placeholder,
4748
- showValue,
4749
- valueIcon,
4750
- valueIconName,
4751
- ...other
5195
+ type = defaultProps17.type,
5196
+ orientation = defaultProps17.orientation,
5197
+ readonly = defaultProps17.readonly,
5198
+ disabled = defaultProps17.disabled,
5199
+ handlePosition = defaultProps17.handlePosition,
5200
+ hover,
5201
+ focus,
5202
+ active,
5203
+ trackStyle,
5204
+ dir
4752
5205
  } = props;
4753
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4754
- "span",
5206
+ let iconIncrease;
5207
+ let iconDecrease;
5208
+ if (orientation === "horizontal") {
5209
+ iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
5210
+ iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
5211
+ } else if (orientation === "vertical") {
5212
+ iconIncrease = "caret-alt-up";
5213
+ iconDecrease = "caret-alt-down";
5214
+ }
5215
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: classNames(
5216
+ SLIDER_CLASSNAME,
5217
+ props.className,
5218
+ stateClassNames(SLIDER_CLASSNAME, {
5219
+ readonly,
5220
+ disabled
5221
+ }),
4755
5222
  {
4756
- ...other,
4757
- className: classNames(props.className, className3, optionClassNames(className3, props)),
4758
- children: [
4759
- valueIcon,
4760
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4761
- showValue && !value && placeholder,
4762
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "k-input-value-text", children: value })
4763
- ]
5223
+ [`k-slider-${orientation}`]: orientation,
5224
+ "k-colorgradient-slider": type === "gradient",
5225
+ "k-range-slider": type === "range"
4764
5226
  }
4765
- );
5227
+ ), dir, children: [
5228
+ type !== "gradient" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
5229
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "k-slider-track-wrap", children: [
5230
+ type !== "gradient" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ul", { className: "k-reset k-slider-items", children: props.children }),
5231
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "k-slider-track", style: trackStyle, children: [
5232
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "k-slider-selection" }),
5233
+ type === "range" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: classNames(
5234
+ "k-draghandle",
5235
+ "k-draghandle-start",
5236
+ stateClassNames(SLIDER_CLASSNAME, {
5237
+ hover,
5238
+ focus,
5239
+ active
5240
+ })
5241
+ ) }),
5242
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: classNames(
5243
+ "k-draghandle",
5244
+ `k-draghandle-${handlePosition}`,
5245
+ stateClassNames(SLIDER_CLASSNAME, {
5246
+ hover,
5247
+ focus,
5248
+ active
5249
+ })
5250
+ ) })
5251
+ ] })
5252
+ ] }),
5253
+ type !== "gradient" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
5254
+ ] });
4766
5255
  };
4767
- InputInnerSpan.states = states11;
4768
- InputInnerSpan.options = options11;
4769
- InputInnerSpan.className = className3;
5256
+ Slider.states = states21;
5257
+ Slider.options = options20;
5258
+ Slider.className = SLIDER_CLASSNAME;
5259
+ Slider.defaultProps = defaultProps17;
4770
5260
 
4771
- // src/input/input-inner-textarea.tsx
4772
- var import_jsx_runtime19 = require("react/jsx-runtime");
4773
- var defaultProps11 = {
4774
- value: "",
4775
- placeholder: ""
5261
+ // src/slider/slider-tick.tsx
5262
+ var import_jsx_runtime37 = require("react/jsx-runtime");
5263
+ var SLIDER_TICK_CLASSNAME = "k-tick";
5264
+ var states22 = [];
5265
+ var options21 = {};
5266
+ var defaultProps18 = {
5267
+ label: false
4776
5268
  };
4777
- var className4 = `k-input-inner`;
4778
- var states12 = [];
4779
- var options12 = {};
4780
- var InputInnerTextarea = (props) => {
5269
+ var SliderTick = (props) => {
4781
5270
  const {
4782
- value = defaultProps11.value,
4783
- placeholder = defaultProps11.placeholder,
4784
- rows,
4785
- ...other
5271
+ style,
5272
+ label = defaultProps18.label,
5273
+ orientation,
5274
+ large,
5275
+ text
4786
5276
  } = props;
4787
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4788
- "textarea",
5277
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { className: classNames(
5278
+ props.className,
5279
+ SLIDER_TICK_CLASSNAME,
4789
5280
  {
4790
- ...other,
4791
- className: classNames(props.className, className4, optionClassNames(className4, props)),
4792
- placeholder,
4793
- rows,
4794
- children: value
5281
+ [`k-tick-${orientation}`]: orientation,
5282
+ "k-tick-large": large
4795
5283
  }
4796
- );
5284
+ ), style, children: label && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-label", children: text }) });
4797
5285
  };
4798
- InputInnerTextarea.states = states12;
4799
- InputInnerTextarea.options = options12;
4800
- InputInnerTextarea.className = className4;
5286
+ SliderTick.states = states22;
5287
+ SliderTick.options = options21;
5288
+ SliderTick.className = SLIDER_TICK_CLASSNAME;
5289
+ SliderTick.defaultProps = defaultProps18;
4801
5290
 
4802
- // src/input/input-loading-icon.tsx
4803
- var import_jsx_runtime20 = require("react/jsx-runtime");
4804
- var className5 = `k-input-loading-icon`;
4805
- var states13 = [
4806
- States.disabled,
4807
- States.loading
4808
- ];
4809
- var InputLoadingIcon = (props) => {
4810
- const {
4811
- disabled,
4812
- loading
4813
- } = props;
4814
- if (disabled || !loading) {
4815
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {});
4816
- }
4817
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
5291
+ // src/spinbutton/spinbutton.spec.tsx
5292
+ var import_jsx_runtime38 = require("react/jsx-runtime");
5293
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
5294
+ var states23 = [];
5295
+ var options22 = {
5296
+ size: [Size.small, Size.medium, Size.large],
5297
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
4818
5298
  };
4819
-
4820
- // src/input/input-validation-icon.tsx
4821
- var import_jsx_runtime21 = require("react/jsx-runtime");
4822
- var className6 = `k-input-validation-icon`;
4823
- var states14 = [
4824
- States.valid,
4825
- States.invalid,
4826
- States.disabled,
4827
- States.loading
4828
- ];
4829
- var options13 = {};
4830
- var InputValidationIcon = (props) => {
4831
- const {
4832
- valid,
4833
- invalid,
4834
- disabled,
4835
- loading
4836
- } = props;
4837
- const iconName = invalid ? "exclamation-circle" : "check";
4838
- const renderValidationIcon = Boolean(valid || invalid);
4839
- if (disabled || loading || !renderValidationIcon) {
4840
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {});
4841
- }
4842
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon, { className: classNames(className6), icon: iconName });
4843
- };
4844
- InputValidationIcon.states = states14;
4845
- InputValidationIcon.options = options13;
4846
- InputValidationIcon.className = className6;
4847
-
4848
- // src/input/input-prefix.tsx
4849
- var import_jsx_runtime22 = require("react/jsx-runtime");
4850
- var className7 = `k-input-prefix`;
4851
- var InputPrefix = (props) => {
4852
- if (!props.children) {
4853
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, {});
4854
- }
4855
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4856
- };
4857
-
4858
- // src/input/input-suffix.tsx
4859
- var import_jsx_runtime23 = require("react/jsx-runtime");
4860
- var className8 = `k-input-suffix`;
4861
- var InputSuffix = (props) => {
4862
- if (!props.children) {
4863
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {});
4864
- }
4865
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: classNames(className8, props.className), children: props.children });
5299
+ var defaultProps19 = {
5300
+ size: Size.medium,
5301
+ fillMode: FillMode.solid
4866
5302
  };
4867
-
4868
- // src/input/input-separator.tsx
4869
- var import_jsx_runtime24 = require("react/jsx-runtime");
4870
-
4871
- // src/color-preview/color-preview.tsx
4872
- var import_jsx_runtime25 = require("react/jsx-runtime");
4873
- var COLORPREVIEW_CLASSNAME = `k-color-preview`;
4874
- var states15 = [];
4875
- var options14 = {};
4876
- var ColorPreview = (props) => {
5303
+ var SpinButton = (props) => {
4877
5304
  const {
4878
- color,
4879
- iconName,
5305
+ size = defaultProps19.size,
5306
+ fillMode = defaultProps19.fillMode,
4880
5307
  ...other
4881
5308
  } = props;
4882
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
5309
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
4883
5310
  "span",
4884
5311
  {
4885
5312
  ...other,
4886
5313
  className: classNames(
4887
- props.className,
4888
- COLORPREVIEW_CLASSNAME,
4889
- {
4890
- "k-icon-color-preview": iconName,
4891
- "k-no-color": !color
4892
- }
5314
+ SPINBUTTON_CLASSNAME,
5315
+ props.className
4893
5316
  ),
4894
5317
  children: [
4895
- iconName && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon: iconName, className: "k-color-preview-icon" }),
4896
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4897
- "span",
5318
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5319
+ Button,
4898
5320
  {
4899
- className: "k-color-preview-mask",
4900
- style: { backgroundColor: color }
5321
+ className: "k-spinner-increase",
5322
+ icon: "caret-alt-up",
5323
+ rounded: null,
5324
+ size,
5325
+ fillMode
5326
+ }
5327
+ ),
5328
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5329
+ Button,
5330
+ {
5331
+ className: "k-spinner-decrease",
5332
+ icon: "caret-alt-down",
5333
+ rounded: null,
5334
+ size,
5335
+ fillMode
4901
5336
  }
4902
5337
  )
4903
5338
  ]
4904
5339
  }
4905
5340
  );
4906
5341
  };
4907
- ColorPreview.states = states15;
4908
- ColorPreview.options = options14;
4909
- ColorPreview.className = COLORPREVIEW_CLASSNAME;
4910
-
4911
- // src/animation-container/animation-container.spec.tsx
4912
- var import_jsx_runtime26 = require("react/jsx-runtime");
4913
- var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4914
- var states16 = [];
4915
- var options15 = {};
4916
- var defaultProps12 = {
4917
- positionMode: "absolute"
4918
- };
4919
- var AnimationContainer = (props) => {
4920
- const {
4921
- positionMode,
4922
- animationStyle,
4923
- offset,
4924
- ...other
4925
- } = props;
4926
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4927
- "div",
4928
- {
4929
- ...other,
4930
- style: { ...offset, ...props.style },
4931
- className: classNames(
4932
- ANIMATION_CONTAINER_CLASSNAME,
4933
- "k-animation-container-shown",
4934
- {
4935
- ["k-animation-container-fixed"]: positionMode === "fixed"
4936
- }
4937
- ),
4938
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4939
- }
4940
- );
4941
- };
4942
- AnimationContainer.states = states16;
4943
- AnimationContainer.options = options15;
4944
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
4945
- AnimationContainer.defaultProps = defaultProps12;
4946
-
4947
- // src/popup/popup.spec.tsx
4948
- var import_jsx_runtime27 = require("react/jsx-runtime");
4949
- var POPUP_CLASSNAME = `k-popup`;
4950
- var states17 = [];
4951
- var options16 = {};
4952
- var defaultProps13 = {
4953
- positionMode: "absolute"
4954
- };
4955
- var Popup = (props) => {
4956
- const {
4957
- offset,
4958
- positionMode,
4959
- ...other
4960
- } = props;
4961
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4962
- AnimationContainer,
4963
- {
4964
- positionMode,
4965
- offset,
4966
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4967
- }
4968
- );
4969
- };
4970
- Popup.states = states17;
4971
- Popup.options = options16;
4972
- Popup.className = POPUP_CLASSNAME;
4973
- Popup.defaultProps = defaultProps13;
5342
+ SpinButton.states = states23;
5343
+ SpinButton.options = options22;
5344
+ SpinButton.className = SPINBUTTON_CLASSNAME;
5345
+ SpinButton.defaultProps = defaultProps19;
4974
5346
 
4975
- // src/colorpicker/colorpicker.spec.tsx
4976
- var import_jsx_runtime28 = require("react/jsx-runtime");
4977
- var COLORPICKER_CLASSNAME = `k-colorpicker`;
4978
- var states18 = [
5347
+ // src/numerictextbox/numerictextbox.spec.tsx
5348
+ var import_jsx_runtime39 = require("react/jsx-runtime");
5349
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
5350
+ var states24 = [
4979
5351
  States.hover,
4980
5352
  States.focus,
4981
5353
  States.valid,
4982
5354
  States.invalid,
5355
+ States.loading,
4983
5356
  States.required,
4984
- States.disabled
5357
+ States.disabled,
5358
+ States.readonly
4985
5359
  ];
4986
- var options17 = {
5360
+ var options23 = {
4987
5361
  size: [Size.small, Size.medium, Size.large],
4988
5362
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4989
5363
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4990
5364
  };
4991
- var defaultProps14 = {
4992
- arrowIconName: "caret-alt-down",
4993
- size: Picker.defaultProps.size,
4994
- rounded: Picker.defaultProps.rounded,
4995
- fillMode: Picker.defaultProps.fillMode
5365
+ var defaultProps20 = {
5366
+ showSpinButton: true,
5367
+ showClearButton: true,
5368
+ size: Input.defaultProps.size,
5369
+ rounded: Input.defaultProps.rounded,
5370
+ fillMode: Input.defaultProps.fillMode
4996
5371
  };
4997
- var ColorPicker = (props) => {
5372
+ var NumericTextbox = (props) => {
4998
5373
  const {
4999
- prefix,
5000
- suffix,
5001
5374
  value,
5002
5375
  placeholder,
5003
5376
  size,
@@ -5008,412 +5381,39 @@ var ColorPicker = (props) => {
5008
5381
  valid,
5009
5382
  invalid,
5010
5383
  required,
5384
+ loading,
5011
5385
  disabled,
5012
- valueIconName,
5013
- arrowIconName = defaultProps14.arrowIconName,
5014
- popup,
5015
- opened,
5386
+ readonly,
5387
+ showClearButton = defaultProps20.showClearButton,
5388
+ showSpinButton = defaultProps20.showSpinButton,
5016
5389
  ...other
5017
5390
  } = props;
5018
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
5019
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
5020
- Picker,
5021
- {
5022
- ...other,
5023
- size,
5024
- rounded,
5025
- fillMode,
5026
- hover,
5027
- focus,
5028
- valid,
5029
- invalid,
5030
- required,
5031
- disabled,
5032
- className: classNames(
5033
- props.className,
5034
- COLORPICKER_CLASSNAME,
5035
- "k-icon-picker"
5036
- ),
5037
- children: [
5038
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputPrefix, { children: prefix }),
5039
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5040
- InputInnerSpan,
5041
- {
5042
- placeholder,
5043
- value,
5044
- showValue: false,
5045
- valueIcon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5046
- ColorPreview,
5047
- {
5048
- className: "k-value-icon",
5049
- color: value,
5050
- iconName: valueIconName
5051
- }
5052
- ),
5053
- valueIconName
5054
- }
5055
- ),
5056
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputSuffix, { children: suffix }),
5057
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5058
- Button,
5059
- {
5060
- className: "k-input-button",
5061
- icon: arrowIconName,
5062
- rounded: null,
5063
- size,
5064
- fillMode
5065
- }
5066
- )
5067
- ]
5068
- }
5069
- ),
5070
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Popup, { className: "k-color-picker-popup", children: popup })
5071
- ] });
5072
- };
5073
- ColorPicker.states = states18;
5074
- ColorPicker.options = options17;
5075
- ColorPicker.className = COLORPICKER_CLASSNAME;
5076
- ColorPicker.defaultProps = defaultProps14;
5077
-
5078
- // src/colorpicker/templates/colorpicker-normal.tsx
5079
- var import_jsx_runtime29 = require("react/jsx-runtime");
5080
-
5081
- // src/action-buttons/action-buttons.spec.tsx
5082
- var import_jsx_runtime30 = require("react/jsx-runtime");
5083
- var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5084
- var states19 = [];
5085
- var options18 = {};
5086
- var defaultProps15 = {
5087
- alignment: "start",
5088
- orientation: "horizontal"
5089
- };
5090
- var ActionButtons = (props) => {
5091
- const {
5092
- alignment = defaultProps15.alignment,
5093
- orientation = defaultProps15.orientation,
5094
- ...other
5095
- } = props;
5096
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5097
- "div",
5098
- {
5099
- ...other,
5100
- className: classNames(
5101
- ACTIONBUTTONS_CLASSNAME,
5102
- {
5103
- [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5104
- [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5105
- },
5106
- props.className
5107
- ),
5108
- children: props.children
5109
- }
5110
- );
5111
- };
5112
- ActionButtons.states = states19;
5113
- ActionButtons.options = options18;
5114
- ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5115
- ActionButtons.defaultProps = defaultProps15;
5116
- var action_buttons_spec_default = ActionButtons;
5117
-
5118
- // src/button-group/button-group.spec.tsx
5119
- var import_jsx_runtime31 = require("react/jsx-runtime");
5120
- var BUTTONGROUP_CLASSNAME = `k-button-group`;
5121
- var states20 = [
5122
- States.disabled
5123
- ];
5124
- var options19 = {
5125
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
5126
- };
5127
- var defaultProps16 = {
5128
- fillMode: FillMode.solid
5129
- };
5130
- var ButtonGroup = (props) => {
5131
- const {
5132
- fillMode = defaultProps16.fillMode,
5133
- disabled,
5134
- stretched,
5135
- ...other
5136
- } = props;
5137
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5138
- "div",
5139
- {
5140
- ...other,
5141
- className: classNames(
5142
- props.className,
5143
- BUTTONGROUP_CLASSNAME,
5144
- optionClassNames(BUTTONGROUP_CLASSNAME, {
5145
- fillMode
5146
- }),
5147
- stateClassNames(BUTTONGROUP_CLASSNAME, {
5148
- disabled
5149
- }),
5150
- {
5151
- [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
5152
- }
5153
- ),
5154
- children: props.children
5155
- }
5156
- );
5157
- };
5158
- ButtonGroup.states = states20;
5159
- ButtonGroup.options = options19;
5160
- ButtonGroup.className = BUTTONGROUP_CLASSNAME;
5161
- ButtonGroup.defaultProps = defaultProps16;
5162
-
5163
- // src/button-group/templates/icon-button-group.tsx
5164
- var import_jsx_runtime32 = require("react/jsx-runtime");
5165
-
5166
- // src/button-group/templates/icon-text-button-group.tsx
5167
- var import_jsx_runtime33 = require("react/jsx-runtime");
5168
-
5169
- // src/button-group/templates/text-button-group.tsx
5170
- var import_jsx_runtime34 = require("react/jsx-runtime");
5171
-
5172
- // src/button-group/templates/mixed-button-group.tsx
5173
- var import_jsx_runtime35 = require("react/jsx-runtime");
5174
-
5175
- // src/slider/slider.spec.tsx
5176
- var import_jsx_runtime36 = require("react/jsx-runtime");
5177
- var SLIDER_CLASSNAME = "k-slider";
5178
- var states21 = [
5179
- States.hover,
5180
- States.focus,
5181
- States.active,
5182
- States.disabled,
5183
- States.readonly
5184
- ];
5185
- var options20 = {};
5186
- var defaultProps17 = {
5187
- type: "single",
5188
- orientation: "horizontal",
5189
- readonly: false,
5190
- disabled: false,
5191
- handlePosition: "end"
5192
- };
5193
- var Slider = (props) => {
5194
- const {
5195
- type = defaultProps17.type,
5196
- orientation = defaultProps17.orientation,
5197
- readonly = defaultProps17.readonly,
5198
- disabled = defaultProps17.disabled,
5199
- handlePosition = defaultProps17.handlePosition,
5200
- hover,
5201
- focus,
5202
- active,
5203
- trackStyle,
5204
- dir
5205
- } = props;
5206
- let iconIncrease;
5207
- let iconDecrease;
5208
- if (orientation === "horizontal") {
5209
- iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
5210
- iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
5211
- } else if (orientation === "vertical") {
5212
- iconIncrease = "caret-alt-up";
5213
- iconDecrease = "caret-alt-down";
5214
- }
5215
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: classNames(
5216
- SLIDER_CLASSNAME,
5217
- props.className,
5218
- stateClassNames(SLIDER_CLASSNAME, {
5219
- readonly,
5220
- disabled
5221
- }),
5222
- {
5223
- [`k-slider-${orientation}`]: orientation,
5224
- "k-colorgradient-slider": type === "gradient",
5225
- "k-range-slider": type === "range"
5226
- }
5227
- ), dir, children: [
5228
- type !== "gradient" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
5229
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "k-slider-track-wrap", children: [
5230
- type !== "gradient" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("ul", { className: "k-reset k-slider-items", children: props.children }),
5231
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "k-slider-track", style: trackStyle, children: [
5232
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "k-slider-selection" }),
5233
- type === "range" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: classNames(
5234
- "k-draghandle",
5235
- "k-draghandle-start",
5236
- stateClassNames(SLIDER_CLASSNAME, {
5237
- hover,
5238
- focus,
5239
- active
5240
- })
5241
- ) }),
5242
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: classNames(
5243
- "k-draghandle",
5244
- `k-draghandle-${handlePosition}`,
5245
- stateClassNames(SLIDER_CLASSNAME, {
5246
- hover,
5247
- focus,
5248
- active
5249
- })
5250
- ) })
5251
- ] })
5252
- ] }),
5253
- type !== "gradient" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
5254
- ] });
5255
- };
5256
- Slider.states = states21;
5257
- Slider.options = options20;
5258
- Slider.className = SLIDER_CLASSNAME;
5259
- Slider.defaultProps = defaultProps17;
5260
-
5261
- // src/slider/slider-tick.tsx
5262
- var import_jsx_runtime37 = require("react/jsx-runtime");
5263
- var SLIDER_TICK_CLASSNAME = "k-tick";
5264
- var states22 = [];
5265
- var options21 = {};
5266
- var defaultProps18 = {
5267
- label: false
5268
- };
5269
- var SliderTick = (props) => {
5270
- const {
5271
- style,
5272
- label = defaultProps18.label,
5273
- orientation,
5274
- large,
5275
- text
5276
- } = props;
5277
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { className: classNames(
5278
- props.className,
5279
- SLIDER_TICK_CLASSNAME,
5280
- {
5281
- [`k-tick-${orientation}`]: orientation,
5282
- "k-tick-large": large
5283
- }
5284
- ), style, children: label && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-label", children: text }) });
5285
- };
5286
- SliderTick.states = states22;
5287
- SliderTick.options = options21;
5288
- SliderTick.className = SLIDER_TICK_CLASSNAME;
5289
- SliderTick.defaultProps = defaultProps18;
5290
-
5291
- // src/spinbutton/spinbutton.spec.tsx
5292
- var import_jsx_runtime38 = require("react/jsx-runtime");
5293
- var SPINBUTTON_CLASSNAME = `k-spin-button`;
5294
- var states23 = [];
5295
- var options22 = {
5296
- size: [Size.small, Size.medium, Size.large],
5297
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
5298
- };
5299
- var defaultProps19 = {
5300
- size: Size.medium,
5301
- fillMode: FillMode.solid
5302
- };
5303
- var SpinButton = (props) => {
5304
- const {
5305
- size = defaultProps19.size,
5306
- fillMode = defaultProps19.fillMode,
5307
- ...other
5308
- } = props;
5309
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
5310
- "span",
5311
- {
5312
- ...other,
5313
- className: classNames(
5314
- SPINBUTTON_CLASSNAME,
5315
- props.className
5316
- ),
5317
- children: [
5318
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5319
- Button,
5320
- {
5321
- className: "k-spinner-increase",
5322
- icon: "caret-alt-up",
5323
- rounded: null,
5324
- size,
5325
- fillMode
5326
- }
5327
- ),
5328
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5329
- Button,
5330
- {
5331
- className: "k-spinner-decrease",
5332
- icon: "caret-alt-down",
5333
- rounded: null,
5334
- size,
5335
- fillMode
5336
- }
5337
- )
5338
- ]
5339
- }
5340
- );
5341
- };
5342
- SpinButton.states = states23;
5343
- SpinButton.options = options22;
5344
- SpinButton.className = SPINBUTTON_CLASSNAME;
5345
- SpinButton.defaultProps = defaultProps19;
5346
-
5347
- // src/numerictextbox/numerictextbox.spec.tsx
5348
- var import_jsx_runtime39 = require("react/jsx-runtime");
5349
- var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
5350
- var states24 = [
5351
- States.hover,
5352
- States.focus,
5353
- States.valid,
5354
- States.invalid,
5355
- States.loading,
5356
- States.required,
5357
- States.disabled,
5358
- States.readonly
5359
- ];
5360
- var options23 = {
5361
- size: [Size.small, Size.medium, Size.large],
5362
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5363
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5364
- };
5365
- var defaultProps20 = {
5366
- showSpinButton: true,
5367
- showClearButton: true,
5368
- size: Input.defaultProps.size,
5369
- rounded: Input.defaultProps.rounded,
5370
- fillMode: Input.defaultProps.fillMode
5371
- };
5372
- var NumericTextbox = (props) => {
5373
- const {
5374
- value,
5375
- placeholder,
5376
- size,
5377
- rounded,
5378
- fillMode,
5379
- hover,
5380
- focus,
5381
- valid,
5382
- invalid,
5383
- required,
5384
- loading,
5385
- disabled,
5386
- readonly,
5387
- showClearButton = defaultProps20.showClearButton,
5388
- showSpinButton = defaultProps20.showSpinButton,
5389
- ...other
5390
- } = props;
5391
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
5392
- Input,
5393
- {
5394
- ...other,
5395
- size,
5396
- rounded,
5397
- fillMode,
5398
- hover,
5399
- focus,
5400
- valid,
5401
- invalid,
5402
- required,
5403
- loading,
5404
- disabled,
5405
- readonly,
5406
- className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
5407
- children: [
5408
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InputInnerInput, { placeholder, value }),
5409
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5410
- InputValidationIcon,
5411
- {
5412
- valid,
5413
- invalid,
5414
- loading,
5415
- disabled
5416
- }
5391
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
5392
+ Input,
5393
+ {
5394
+ ...other,
5395
+ size,
5396
+ rounded,
5397
+ fillMode,
5398
+ hover,
5399
+ focus,
5400
+ valid,
5401
+ invalid,
5402
+ required,
5403
+ loading,
5404
+ disabled,
5405
+ readonly,
5406
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
5407
+ children: [
5408
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InputInnerInput, { placeholder, value }),
5409
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5410
+ InputValidationIcon,
5411
+ {
5412
+ valid,
5413
+ invalid,
5414
+ loading,
5415
+ disabled
5416
+ }
5417
5417
  ),
5418
5418
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5419
5419
  InputLoadingIcon,
@@ -6199,926 +6199,1566 @@ var RadioGroup = (props) => {
6199
6199
  ...other,
6200
6200
  className: classNames(
6201
6201
  props.className,
6202
- RADIOGROUP_CLASSNAME,
6202
+ RADIOGROUP_CLASSNAME,
6203
+ {
6204
+ [`k-list-${layout}`]: layout
6205
+ }
6206
+ ),
6207
+ children: props.children
6208
+ }
6209
+ );
6210
+ };
6211
+ RadioGroup.states = states35;
6212
+ RadioGroup.options = options34;
6213
+ RadioGroup.className = RADIOGROUP_CLASSNAME;
6214
+ RadioGroup.defaultProps = defaultProps30;
6215
+
6216
+ // src/radio/radio-item.spec.tsx
6217
+ var import_jsx_runtime67 = require("react/jsx-runtime");
6218
+ var RADIOITEM_CLASSNAME = `k-radio-list-item`;
6219
+ var states36 = [];
6220
+ var options35 = {};
6221
+ var defaultProps31 = {};
6222
+ var RadioItem = (props) => {
6223
+ const {
6224
+ ...other
6225
+ } = props;
6226
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6227
+ "li",
6228
+ {
6229
+ ...other,
6230
+ className: classNames(
6231
+ props.className,
6232
+ RADIOITEM_CLASSNAME
6233
+ ),
6234
+ children: props.children
6235
+ }
6236
+ );
6237
+ };
6238
+ RadioItem.states = states36;
6239
+ RadioItem.options = options35;
6240
+ RadioItem.className = RADIOITEM_CLASSNAME;
6241
+ RadioItem.defaultProps = defaultProps31;
6242
+
6243
+ // src/radio/templates/radio-normal.tsx
6244
+ var import_jsx_runtime68 = require("react/jsx-runtime");
6245
+
6246
+ // src/radio/templates/radio-with-label-after.tsx
6247
+ var import_jsx_runtime69 = require("react/jsx-runtime");
6248
+ var RadioButtonWithLabelAfter = ({ children, id, ...other }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
6249
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(radio_spec_default, { ...other, id }),
6250
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("label", { className: "k-radio-label", htmlFor: id, children })
6251
+ ] });
6252
+
6253
+ // src/radio/templates/radio-with-label-before.tsx
6254
+ var import_jsx_runtime70 = require("react/jsx-runtime");
6255
+
6256
+ // src/radio/templates/radio-inside-label.tsx
6257
+ var import_jsx_runtime71 = require("react/jsx-runtime");
6258
+
6259
+ // src/switch/switch.spec.tsx
6260
+ var import_jsx_runtime72 = require("react/jsx-runtime");
6261
+ var SWITCH_CLASSNAME = `k-switch`;
6262
+ var states37 = [
6263
+ States.hover,
6264
+ States.focus,
6265
+ States.disabled,
6266
+ States.checked
6267
+ ];
6268
+ var options36 = {
6269
+ size: [Size.small, Size.medium, Size.large],
6270
+ trackRounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6271
+ thumbRounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
6272
+ };
6273
+ var defaultProps32 = {
6274
+ size: Size.medium,
6275
+ trackRounded: Roundness.full,
6276
+ thumbRounded: Roundness.full
6277
+ };
6278
+ var Switch = (props) => {
6279
+ const {
6280
+ checked,
6281
+ onLabel,
6282
+ offLabel,
6283
+ size = defaultProps32.size,
6284
+ trackRounded = defaultProps32.trackRounded,
6285
+ thumbRounded = defaultProps32.thumbRounded,
6286
+ hover,
6287
+ focus,
6288
+ disabled,
6289
+ ...other
6290
+ } = props;
6291
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6292
+ "span",
6293
+ {
6294
+ ...other,
6295
+ className: classNames(
6296
+ props.className,
6297
+ SWITCH_CLASSNAME,
6298
+ optionClassNames(SWITCH_CLASSNAME, {
6299
+ size
6300
+ }),
6301
+ stateClassNames(SWITCH_CLASSNAME, {
6302
+ hover,
6303
+ focus,
6304
+ disabled
6305
+ }),
6306
+ {
6307
+ [`${SWITCH_CLASSNAME}-on`]: checked,
6308
+ [`${SWITCH_CLASSNAME}-off`]: !checked
6309
+ }
6310
+ ),
6311
+ children: [
6312
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6313
+ "span",
6314
+ {
6315
+ className: classNames(
6316
+ "k-switch-track",
6317
+ optionClassNames(SWITCH_CLASSNAME, {
6318
+ rounded: trackRounded
6319
+ })
6320
+ ),
6321
+ children: [
6322
+ onLabel && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "k-switch-label-on", children: onLabel }),
6323
+ offLabel && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "k-switch-label-off", children: offLabel })
6324
+ ]
6325
+ }
6326
+ ),
6327
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "k-switch-thumb-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6328
+ "span",
6329
+ {
6330
+ className: classNames(
6331
+ "k-switch-thumb",
6332
+ optionClassNames(SWITCH_CLASSNAME, {
6333
+ rounded: thumbRounded
6334
+ })
6335
+ )
6336
+ }
6337
+ ) })
6338
+ ]
6339
+ }
6340
+ );
6341
+ };
6342
+ Switch.states = states37;
6343
+ Switch.options = options36;
6344
+ Switch.className = SWITCH_CLASSNAME;
6345
+ Switch.defaultProps = defaultProps32;
6346
+
6347
+ // src/switch/templates/switch-normal.tsx
6348
+ var import_jsx_runtime73 = require("react/jsx-runtime");
6349
+
6350
+ // src/switch/templates/switch-checked.tsx
6351
+ var import_jsx_runtime74 = require("react/jsx-runtime");
6352
+
6353
+ // src/upload/upload-dropzone.tsx
6354
+ var import_jsx_runtime75 = require("react/jsx-runtime");
6355
+ var UPLOADDROPZONE_CLASSNAME = `k-upload-dropzone`;
6356
+ var states38 = [
6357
+ States.hover
6358
+ ];
6359
+ var UploadDropzone = (props) => {
6360
+ const {
6361
+ hover,
6362
+ status,
6363
+ ...other
6364
+ } = props;
6365
+ let statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, {});
6366
+ switch (status) {
6367
+ case "uploading":
6368
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6369
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "upload" }),
6370
+ "Uploading..."
6371
+ ] });
6372
+ break;
6373
+ case "done":
6374
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6375
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "check" }),
6376
+ "Done"
6377
+ ] });
6378
+ break;
6379
+ case "failed":
6380
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6381
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "exclamation-circle" }),
6382
+ "Done"
6383
+ ] });
6384
+ break;
6385
+ default:
6386
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, {});
6387
+ break;
6388
+ }
6389
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6390
+ "div",
6391
+ {
6392
+ ...other,
6393
+ className: classNames(
6394
+ props.className,
6395
+ UPLOADDROPZONE_CLASSNAME,
6396
+ "k-dropzone",
6397
+ stateClassNames(UPLOADDROPZONE_CLASSNAME, {
6398
+ hover
6399
+ })
6400
+ ),
6401
+ children: [
6402
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "k-upload-button-wrap", children: [
6403
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button, { className: "k-upload-button", children: "Select files..." }),
6404
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("input", { id: "upload-input", className: "k-hidden" })
6405
+ ] }),
6406
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6407
+ "span",
6408
+ {
6409
+ className: classNames(
6410
+ "k-dropzone-hint",
6411
+ {
6412
+ "k-hidden": status !== "upload"
6413
+ }
6414
+ ),
6415
+ children: "Drop files here to upload"
6416
+ }
6417
+ ),
6418
+ status !== "upload" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "k-upload-status", children: statusMsg })
6419
+ ]
6420
+ }
6421
+ );
6422
+ };
6423
+
6424
+ // src/upload/upload.spec.tsx
6425
+ var import_jsx_runtime76 = require("react/jsx-runtime");
6426
+ var UPLOAD_CLASSNAME = `k-upload`;
6427
+ var states39 = [
6428
+ States.hover,
6429
+ States.disabled
6430
+ ];
6431
+ var options37 = {};
6432
+ var defaultProps33 = {};
6433
+ var Upload = (props) => {
6434
+ const {
6435
+ async,
6436
+ empty,
6437
+ actions,
6438
+ hover,
6439
+ status,
6440
+ disabled,
6441
+ ...other
6442
+ } = props;
6443
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
6444
+ "div",
6445
+ {
6446
+ ...other,
6447
+ className: classNames(
6448
+ props.className,
6449
+ UPLOAD_CLASSNAME,
6450
+ stateClassNames(UPLOAD_CLASSNAME, {
6451
+ disabled
6452
+ }),
6203
6453
  {
6204
- [`k-list-${layout}`]: layout
6454
+ "k-upload-async": async,
6455
+ "k-upload-empty": empty
6205
6456
  }
6206
6457
  ),
6207
- children: props.children
6458
+ children: [
6459
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(UploadDropzone, { status, hover }),
6460
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("ul", { className: "k-upload-files", children: props.children }),
6461
+ actions && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(action_buttons_spec_default, { alignment: "end", orientation: "horizontal", children: [
6462
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { className: "k-clear-selected", children: "Clear" }),
6463
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { themeColor: "primary", className: "k-upload-selected", children: "Upload" })
6464
+ ] })
6465
+ ]
6208
6466
  }
6209
6467
  );
6210
6468
  };
6211
- RadioGroup.states = states35;
6212
- RadioGroup.options = options34;
6213
- RadioGroup.className = RADIOGROUP_CLASSNAME;
6214
- RadioGroup.defaultProps = defaultProps30;
6469
+ Upload.states = states39;
6470
+ Upload.options = options37;
6471
+ Upload.className = UPLOAD_CLASSNAME;
6472
+ Upload.defaultProps = defaultProps33;
6215
6473
 
6216
- // src/radio/radio-item.spec.tsx
6217
- var import_jsx_runtime67 = require("react/jsx-runtime");
6218
- var RADIOITEM_CLASSNAME = `k-radio-list-item`;
6219
- var states36 = [];
6220
- var options35 = {};
6221
- var defaultProps31 = {};
6222
- var RadioItem = (props) => {
6474
+ // src/progressbar/progressbar.spec.tsx
6475
+ var import_jsx_runtime77 = require("react/jsx-runtime");
6476
+ var PROGRESSBAR_CLASSNAME = `k-progressbar`;
6477
+ var states40 = [
6478
+ States.disabled,
6479
+ States.indeterminate
6480
+ ];
6481
+ var options38 = {};
6482
+ var defaultProps34 = {
6483
+ indeterminate: false,
6484
+ label: true,
6485
+ labelPosition: "start",
6486
+ orientation: "horizontal",
6487
+ reverse: false,
6488
+ value: "0"
6489
+ };
6490
+ var ProgressBar = (props) => {
6223
6491
  const {
6492
+ disabled,
6493
+ height,
6494
+ indeterminate = defaultProps34.indeterminate,
6495
+ label = defaultProps34.label,
6496
+ labelPosition = defaultProps34.labelPosition,
6497
+ orientation = defaultProps34.orientation,
6498
+ reverse = defaultProps34.reverse,
6499
+ value = defaultProps34.value,
6500
+ width,
6224
6501
  ...other
6225
6502
  } = props;
6226
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
6227
- "li",
6503
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
6504
+ "div",
6228
6505
  {
6229
6506
  ...other,
6230
6507
  className: classNames(
6231
6508
  props.className,
6232
- RADIOITEM_CLASSNAME
6509
+ PROGRESSBAR_CLASSNAME,
6510
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
6511
+ disabled
6512
+ }),
6513
+ {
6514
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
6515
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
6516
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
6517
+ }
6233
6518
  ),
6234
- children: props.children
6519
+ style: orientation === "horizontal" ? { "--kendo-progressbar-value": value, height } : { "--kendo-progressbar-value": value, width },
6520
+ children: [
6521
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: classNames(
6522
+ "k-progress-status-wrap",
6523
+ {
6524
+ [`k-progress-${labelPosition}`]: labelPosition && !indeterminate
6525
+ }
6526
+ ), children: label && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "k-progress-status", children: [
6527
+ value,
6528
+ "%"
6529
+ ] }) }),
6530
+ !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "k-progressbar-value k-selected", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: classNames(
6531
+ "k-progress-status-wrap",
6532
+ {
6533
+ [`k-progress-${labelPosition}`]: labelPosition
6534
+ }
6535
+ ), children: label && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "k-progress-status", children: [
6536
+ props.value,
6537
+ "%"
6538
+ ] }) }) })
6539
+ ]
6235
6540
  }
6236
6541
  );
6237
6542
  };
6238
- RadioItem.states = states36;
6239
- RadioItem.options = options35;
6240
- RadioItem.className = RADIOITEM_CLASSNAME;
6241
- RadioItem.defaultProps = defaultProps31;
6242
-
6243
- // src/radio/templates/radio-normal.tsx
6244
- var import_jsx_runtime68 = require("react/jsx-runtime");
6245
-
6246
- // src/radio/templates/radio-with-label-after.tsx
6247
- var import_jsx_runtime69 = require("react/jsx-runtime");
6248
- var RadioButtonWithLabelAfter = ({ children, id, ...other }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
6249
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(radio_spec_default, { ...other, id }),
6250
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("label", { className: "k-radio-label", htmlFor: id, children })
6251
- ] });
6252
-
6253
- // src/radio/templates/radio-with-label-before.tsx
6254
- var import_jsx_runtime70 = require("react/jsx-runtime");
6255
-
6256
- // src/radio/templates/radio-inside-label.tsx
6257
- var import_jsx_runtime71 = require("react/jsx-runtime");
6543
+ ProgressBar.states = states40;
6544
+ ProgressBar.options = options38;
6545
+ ProgressBar.className = PROGRESSBAR_CLASSNAME;
6546
+ ProgressBar.defaultProps = defaultProps34;
6258
6547
 
6259
- // src/switch/switch.spec.tsx
6260
- var import_jsx_runtime72 = require("react/jsx-runtime");
6261
- var SWITCH_CLASSNAME = `k-switch`;
6262
- var states37 = [
6263
- States.hover,
6264
- States.focus,
6548
+ // src/progressbar/chunk-progressbar.spec.tsx
6549
+ var import_jsx_runtime78 = require("react/jsx-runtime");
6550
+ var CHUNKPROGRESSBAR_CLASSNAME = `k-chunk-progressbar`;
6551
+ var isSelected = (progress, index) => index <= progress - 1 ? true : false;
6552
+ var states41 = [
6265
6553
  States.disabled,
6266
- States.checked
6554
+ States.indeterminate
6267
6555
  ];
6268
- var options36 = {
6269
- size: [Size.small, Size.medium, Size.large],
6270
- trackRounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6271
- thumbRounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
6272
- };
6273
- var defaultProps32 = {
6274
- size: Size.medium,
6275
- trackRounded: Roundness.full,
6276
- thumbRounded: Roundness.full
6556
+ var options39 = {};
6557
+ var defaultProps35 = {
6558
+ chunkCount: 5,
6559
+ orientation: "horizontal",
6560
+ progress: 0
6277
6561
  };
6278
- var Switch = (props) => {
6562
+ var ChunkProgressBar = (props) => {
6279
6563
  const {
6280
- checked,
6281
- onLabel,
6282
- offLabel,
6283
- size = defaultProps32.size,
6284
- trackRounded = defaultProps32.trackRounded,
6285
- thumbRounded = defaultProps32.thumbRounded,
6286
- hover,
6287
- focus,
6288
6564
  disabled,
6565
+ chunkCount = defaultProps35.chunkCount,
6566
+ indeterminate,
6567
+ orientation = defaultProps35.orientation,
6568
+ progress = defaultProps35.progress,
6569
+ reverse,
6289
6570
  ...other
6290
6571
  } = props;
6291
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6292
- "span",
6572
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
6573
+ "div",
6293
6574
  {
6294
6575
  ...other,
6295
6576
  className: classNames(
6296
6577
  props.className,
6297
- SWITCH_CLASSNAME,
6298
- optionClassNames(SWITCH_CLASSNAME, {
6299
- size
6300
- }),
6301
- stateClassNames(SWITCH_CLASSNAME, {
6302
- hover,
6303
- focus,
6578
+ PROGRESSBAR_CLASSNAME,
6579
+ CHUNKPROGRESSBAR_CLASSNAME,
6580
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
6304
6581
  disabled
6305
6582
  }),
6306
6583
  {
6307
- [`${SWITCH_CLASSNAME}-on`]: checked,
6308
- [`${SWITCH_CLASSNAME}-off`]: !checked
6584
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
6585
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
6586
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
6309
6587
  }
6310
6588
  ),
6311
- children: [
6312
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
6313
- "span",
6314
- {
6315
- className: classNames(
6316
- "k-switch-track",
6317
- optionClassNames(SWITCH_CLASSNAME, {
6318
- rounded: trackRounded
6319
- })
6320
- ),
6321
- children: [
6322
- onLabel && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "k-switch-label-on", children: onLabel }),
6323
- offLabel && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "k-switch-label-off", children: offLabel })
6324
- ]
6325
- }
6326
- ),
6327
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "k-switch-thumb-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
6328
- "span",
6589
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("ul", { className: "k-progressbar-chunks k-reset", children: [...Array(chunkCount)].map(
6590
+ (_el, i) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("li", { className: classNames(
6591
+ "k-progressbar-chunk",
6329
6592
  {
6330
- className: classNames(
6331
- "k-switch-thumb",
6332
- optionClassNames(SWITCH_CLASSNAME, {
6333
- rounded: thumbRounded
6334
- })
6335
- )
6593
+ "k-first": i === 0,
6594
+ "k-last": i === [...Array(chunkCount)].length - 1,
6595
+ "k-selected": isSelected(progress, i)
6336
6596
  }
6337
- ) })
6338
- ]
6597
+ ) }, i)
6598
+ ) })
6339
6599
  }
6340
6600
  );
6341
6601
  };
6342
- Switch.states = states37;
6343
- Switch.options = options36;
6344
- Switch.className = SWITCH_CLASSNAME;
6345
- Switch.defaultProps = defaultProps32;
6602
+ ChunkProgressBar.states = states41;
6603
+ ChunkProgressBar.options = options39;
6604
+ ChunkProgressBar.className = CHUNKPROGRESSBAR_CLASSNAME;
6605
+ ChunkProgressBar.defaultProps = defaultProps35;
6346
6606
 
6347
- // src/switch/templates/switch-normal.tsx
6348
- var import_jsx_runtime73 = require("react/jsx-runtime");
6607
+ // src/progressbar/templates/progressbar-normal.tsx
6608
+ var import_jsx_runtime79 = require("react/jsx-runtime");
6349
6609
 
6350
- // src/switch/templates/switch-checked.tsx
6351
- var import_jsx_runtime74 = require("react/jsx-runtime");
6610
+ // src/progressbar/templates/chunk-progressbar-normal.tsx
6611
+ var import_jsx_runtime80 = require("react/jsx-runtime");
6612
+
6613
+ // src/upload/upload-file-info.tsx
6614
+ var import_jsx_runtime81 = require("react/jsx-runtime");
6615
+ var UPLOADFILEINFO_CLASSNAME = `k-file-info`;
6616
+ var UploadFileInfo = (props) => {
6617
+ const {
6618
+ name,
6619
+ size,
6620
+ validationMsg,
6621
+ ...other
6622
+ } = props;
6623
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
6624
+ "div",
6625
+ {
6626
+ ...other,
6627
+ className: classNames(
6628
+ props.className,
6629
+ UPLOADFILEINFO_CLASSNAME
6630
+ ),
6631
+ children: [
6632
+ name && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "k-file-name", children: name }),
6633
+ size && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "k-file-size", children: size }),
6634
+ validationMsg && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "k-file-validation-message", children: validationMsg })
6635
+ ]
6636
+ }
6637
+ );
6638
+ };
6352
6639
 
6353
- // src/upload/upload-dropzone.tsx
6354
- var import_jsx_runtime75 = require("react/jsx-runtime");
6355
- var UPLOADDROPZONE_CLASSNAME = `k-upload-dropzone`;
6356
- var states38 = [
6357
- States.hover
6358
- ];
6359
- var UploadDropzone = (props) => {
6640
+ // src/upload/upload-file.tsx
6641
+ var import_jsx_runtime82 = require("react/jsx-runtime");
6642
+ var UPLOADFILE_CLASSNAME = `k-file`;
6643
+ var UploadFile = (props) => {
6360
6644
  const {
6361
- hover,
6362
6645
  status,
6646
+ progress,
6647
+ name,
6648
+ icon,
6649
+ size,
6650
+ state,
6651
+ validationMsg,
6363
6652
  ...other
6364
6653
  } = props;
6365
- let statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, {});
6366
- switch (status) {
6367
- case "uploading":
6368
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6369
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "upload" }),
6370
- "Uploading..."
6371
- ] });
6372
- break;
6373
- case "done":
6374
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6375
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "check" }),
6376
- "Done"
6377
- ] });
6378
- break;
6379
- case "failed":
6380
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
6381
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Icon, { icon: "exclamation-circle" }),
6382
- "Done"
6383
- ] });
6384
- break;
6385
- default:
6386
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, {});
6387
- break;
6388
- }
6389
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6390
- "div",
6654
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
6655
+ "li",
6391
6656
  {
6392
6657
  ...other,
6393
6658
  className: classNames(
6394
6659
  props.className,
6395
- UPLOADDROPZONE_CLASSNAME,
6396
- "k-dropzone",
6397
- stateClassNames(UPLOADDROPZONE_CLASSNAME, {
6398
- hover
6399
- })
6660
+ UPLOADFILE_CLASSNAME,
6661
+ {
6662
+ [`k-file-${status}`]: status
6663
+ }
6400
6664
  ),
6401
- children: [
6402
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "k-upload-button-wrap", children: [
6403
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button, { className: "k-upload-button", children: "Select files..." }),
6404
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("input", { id: "upload-input", className: "k-hidden" })
6405
- ] }),
6406
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6407
- "span",
6665
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "k-file-single", children: [
6666
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ProgressBar, { className: classNames(
6408
6667
  {
6409
- className: classNames(
6410
- "k-dropzone-hint",
6411
- {
6412
- "k-hidden": status !== "upload"
6413
- }
6414
- ),
6415
- children: "Drop files here to upload"
6668
+ "k-hidden": status !== "progress"
6416
6669
  }
6417
- ),
6418
- status !== "upload" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "k-upload-status", children: statusMsg })
6419
- ]
6670
+ ), value: progress, label: false }),
6671
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "k-file-icon-wrapper", children: [
6672
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon, { className: "k-file-icon", icon, size: "xxlarge" }),
6673
+ state && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "k-file-state", children: state })
6674
+ ] }),
6675
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(UploadFileInfo, { name, size, validationMsg }),
6676
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "k-upload-actions", children: status === "progress" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
6677
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "k-upload-pct", children: [
6678
+ progress,
6679
+ "%"
6680
+ ] }),
6681
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { icon: "pause-sm", fillMode: "flat", className: "k-upload-action" }),
6682
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { icon: "cancel", fillMode: "flat", className: "k-upload-action" })
6683
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { icon: "x", fillMode: "flat", className: "k-upload-action" }) })
6684
+ ] })
6420
6685
  }
6421
6686
  );
6422
6687
  };
6423
6688
 
6424
- // src/upload/upload.spec.tsx
6425
- var import_jsx_runtime76 = require("react/jsx-runtime");
6426
- var UPLOAD_CLASSNAME = `k-upload`;
6427
- var states39 = [
6428
- States.hover,
6689
+ // src/upload/upload-file-multiple.tsx
6690
+ var import_jsx_runtime83 = require("react/jsx-runtime");
6691
+
6692
+ // src/upload/templates/upload-chunk.tsx
6693
+ var import_jsx_runtime84 = require("react/jsx-runtime");
6694
+ var UploadChunk = (props) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
6695
+ Upload,
6696
+ {
6697
+ async: true,
6698
+ children: [
6699
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
6700
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UploadFile, { name: "Image_With_Very_Very_Very_Very_Very_Long_Name1.png", icon: "file-image", size: "51.23 KB" }),
6701
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UploadFile, { name: "Image2.jpg", icon: "file-image", size: "106.43 KB" })
6702
+ ] })
6703
+ ],
6704
+ ...props
6705
+ }
6706
+ );
6707
+
6708
+ // src/upload/templates/upload-batch.tsx
6709
+ var import_jsx_runtime85 = require("react/jsx-runtime");
6710
+
6711
+ // src/upload/templates/upload-normal.tsx
6712
+ var import_jsx_runtime86 = require("react/jsx-runtime");
6713
+
6714
+ // src/form/form-field.tsx
6715
+ var import_jsx_runtime87 = require("react/jsx-runtime");
6716
+ var FORMFIELD_CLASSNAME = "k-form-field";
6717
+ var states42 = [
6429
6718
  States.disabled
6430
6719
  ];
6431
- var options37 = {};
6432
- var defaultProps33 = {};
6433
- var Upload = (props) => {
6720
+ var FormField = (props) => {
6434
6721
  const {
6435
- async,
6436
- empty,
6437
- actions,
6438
- hover,
6439
- status,
6722
+ label,
6723
+ orientation,
6724
+ optional,
6725
+ editor,
6726
+ hint,
6727
+ error,
6728
+ info,
6440
6729
  disabled,
6441
- ...other
6730
+ dir,
6731
+ colSpan
6442
6732
  } = props;
6443
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
6733
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
6444
6734
  "div",
6445
6735
  {
6446
- ...other,
6447
6736
  className: classNames(
6737
+ FORMFIELD_CLASSNAME,
6448
6738
  props.className,
6449
- UPLOAD_CLASSNAME,
6450
- stateClassNames(UPLOAD_CLASSNAME, {
6451
- disabled
6452
- }),
6739
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled }),
6453
6740
  {
6454
- "k-upload-async": async,
6455
- "k-upload-empty": empty
6741
+ [`k-col-span-${colSpan}`]: colSpan
6456
6742
  }
6457
6743
  ),
6744
+ dir,
6458
6745
  children: [
6459
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(UploadDropzone, { status, hover }),
6460
- props.children && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("ul", { className: "k-upload-files", children: props.children }),
6461
- actions && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(action_buttons_spec_default, { alignment: "end", orientation: "horizontal", children: [
6462
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { className: "k-clear-selected", children: "Clear" }),
6463
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { themeColor: "primary", className: "k-upload-selected", children: "Upload" })
6746
+ label && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("label", { className: classNames(
6747
+ "k-label",
6748
+ "k-form-label"
6749
+ ), children: [
6750
+ label,
6751
+ optional && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
6752
+ info && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "k-field-info", children: "(field info)" })
6753
+ ] }),
6754
+ orientation === "horizontal" && !label && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "k-label k-form-label k-label-empty" }),
6755
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "k-form-field-wrap", children: [
6756
+ editor,
6757
+ hint && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "k-form-hint", children: hint }),
6758
+ error && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "k-form-error", children: error })
6464
6759
  ] })
6465
6760
  ]
6466
6761
  }
6467
- );
6762
+ );
6763
+ };
6764
+ FormField.className = FORMFIELD_CLASSNAME;
6765
+
6766
+ // src/form/fieldset.tsx
6767
+ var import_jsx_runtime88 = require("react/jsx-runtime");
6768
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
6769
+ var Fieldset = (props) => {
6770
+ const {
6771
+ legend,
6772
+ layout,
6773
+ cols,
6774
+ gapX,
6775
+ gapY
6776
+ } = props;
6777
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
6778
+ legend && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("legend", { className: "k-form-legend", children: legend }),
6779
+ layout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: classNames(
6780
+ "k-form-layout",
6781
+ "k-d-grid",
6782
+ {
6783
+ [`k-grid-cols-${cols}`]: cols,
6784
+ [`k-gap-x-${gapX}`]: gapX,
6785
+ [`k-gap-y-${gapY}`]: gapY
6786
+ }
6787
+ ), children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_jsx_runtime88.Fragment, { children: props.children })
6788
+ ] });
6789
+ };
6790
+ Fieldset.className = FIELDSET_CLASSNAME;
6791
+
6792
+ // src/form/form.spec.tsx
6793
+ var import_jsx_runtime89 = require("react/jsx-runtime");
6794
+ var import_react = require("react");
6795
+ var FORM_CLASSNAME = "k-form";
6796
+ var states43 = [];
6797
+ var options40 = {
6798
+ size: [Size.small, Size.medium, Size.large]
6799
+ };
6800
+ var defaultProps36 = {
6801
+ size: Size.medium,
6802
+ layout: "basic",
6803
+ tag: "form"
6804
+ };
6805
+ var Form = (props) => {
6806
+ const {
6807
+ size = defaultProps36.size,
6808
+ orientation,
6809
+ layout = defaultProps36.layout,
6810
+ formButtons,
6811
+ cols,
6812
+ gapX,
6813
+ gapY,
6814
+ tag = defaultProps36.tag,
6815
+ children
6816
+ } = props;
6817
+ const Parent = ({ tag: tag2, className: className13, children: children2 }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("form", { className: className13, children: children2 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: className13, children: children2 });
6818
+ const formChildren = [];
6819
+ if (children) {
6820
+ if (Array.isArray(children)) {
6821
+ children.map((child, index) => {
6822
+ if (child.type === FormField) {
6823
+ formChildren.push(
6824
+ /* @__PURE__ */ (0, import_react.createElement)(FormField, { ...child.props, orientation, key: index })
6825
+ );
6826
+ } else {
6827
+ formChildren.push(child);
6828
+ }
6829
+ });
6830
+ } else if (children.type === FormField) {
6831
+ formChildren.push(/* @__PURE__ */ (0, import_react.createElement)(FormField, { ...children.props, orientation, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
6832
+ } else {
6833
+ children.type === Fieldset && formChildren.push(/* @__PURE__ */ (0, import_react.createElement)(Fieldset, { ...children.props, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
6834
+ }
6835
+ }
6836
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Parent, { tag, className: classNames(
6837
+ props.className,
6838
+ FORM_CLASSNAME,
6839
+ optionClassNames(FORM_CLASSNAME, {
6840
+ size
6841
+ }),
6842
+ {
6843
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
6844
+ }
6845
+ ), children: [
6846
+ layout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: classNames(
6847
+ "k-form-layout",
6848
+ "k-d-grid",
6849
+ {
6850
+ [`k-grid-cols-${cols}`]: cols,
6851
+ [`k-gap-x-${gapX}`]: gapX,
6852
+ [`k-gap-y-${gapY}`]: gapY
6853
+ }
6854
+ ), children: formChildren }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: formChildren }),
6855
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "k-form-buttons", children: formButtons })
6856
+ ] });
6468
6857
  };
6469
- Upload.states = states39;
6470
- Upload.options = options37;
6471
- Upload.className = UPLOAD_CLASSNAME;
6472
- Upload.defaultProps = defaultProps33;
6858
+ Form.states = states43;
6859
+ Form.options = options40;
6860
+ Form.className = FORM_CLASSNAME;
6861
+ Form.defaultProps = defaultProps36;
6473
6862
 
6474
- // src/progressbar/progressbar.spec.tsx
6475
- var import_jsx_runtime77 = require("react/jsx-runtime");
6476
- var PROGRESSBAR_CLASSNAME = `k-progressbar`;
6477
- var states40 = [
6863
+ // src/dropdownlist/dropdownlist.spec.tsx
6864
+ var import_jsx_runtime90 = require("react/jsx-runtime");
6865
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
6866
+ var states44 = [
6867
+ States.hover,
6868
+ States.focus,
6869
+ States.valid,
6870
+ States.invalid,
6871
+ States.required,
6478
6872
  States.disabled,
6479
- States.indeterminate
6873
+ States.loading,
6874
+ States.readonly
6480
6875
  ];
6481
- var options38 = {};
6482
- var defaultProps34 = {
6483
- indeterminate: false,
6484
- label: true,
6485
- labelPosition: "start",
6486
- orientation: "horizontal",
6487
- reverse: false,
6488
- value: "0"
6876
+ var options41 = {
6877
+ size: [Size.small, Size.medium, Size.large],
6878
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6879
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6489
6880
  };
6490
- var ProgressBar = (props) => {
6881
+ var defaultProps37 = {
6882
+ showValue: true,
6883
+ arrowIconName: "caret-alt-down",
6884
+ size: Size.medium,
6885
+ rounded: Roundness.medium,
6886
+ fillMode: FillMode.solid
6887
+ };
6888
+ var DropdownList = (props) => {
6491
6889
  const {
6890
+ valueIconName,
6891
+ arrowIconName = defaultProps37.arrowIconName,
6892
+ prefix,
6893
+ suffix,
6894
+ value,
6895
+ placeholder,
6896
+ size,
6897
+ rounded,
6898
+ fillMode,
6899
+ hover,
6900
+ focus,
6901
+ valid,
6902
+ invalid,
6903
+ required,
6904
+ loading,
6492
6905
  disabled,
6493
- height,
6494
- indeterminate = defaultProps34.indeterminate,
6495
- label = defaultProps34.label,
6496
- labelPosition = defaultProps34.labelPosition,
6497
- orientation = defaultProps34.orientation,
6498
- reverse = defaultProps34.reverse,
6499
- value = defaultProps34.value,
6500
- width,
6906
+ readonly,
6907
+ showValue = defaultProps37.showValue,
6908
+ popup,
6909
+ opened,
6501
6910
  ...other
6502
6911
  } = props;
6503
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
6504
- "div",
6505
- {
6506
- ...other,
6507
- className: classNames(
6508
- props.className,
6509
- PROGRESSBAR_CLASSNAME,
6510
- stateClassNames(PROGRESSBAR_CLASSNAME, {
6511
- disabled
6512
- }),
6513
- {
6514
- [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
6515
- [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
6516
- [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
6517
- }
6518
- ),
6519
- style: orientation === "horizontal" ? { "--kendo-progressbar-value": value, height } : { "--kendo-progressbar-value": value, width },
6520
- children: [
6521
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: classNames(
6522
- "k-progress-status-wrap",
6523
- {
6524
- [`k-progress-${labelPosition}`]: labelPosition && !indeterminate
6525
- }
6526
- ), children: label && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "k-progress-status", children: [
6527
- value,
6528
- "%"
6529
- ] }) }),
6530
- !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "k-progressbar-value k-selected", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: classNames(
6531
- "k-progress-status-wrap",
6912
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
6913
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
6914
+ Picker,
6915
+ {
6916
+ ...other,
6917
+ size,
6918
+ rounded,
6919
+ fillMode,
6920
+ hover,
6921
+ focus,
6922
+ valid,
6923
+ invalid,
6924
+ required,
6925
+ loading,
6926
+ disabled,
6927
+ readonly,
6928
+ className: classNames(
6929
+ props.className,
6930
+ DROPDOWNLIST_CLASSNAME,
6532
6931
  {
6533
- [`k-progress-${labelPosition}`]: labelPosition
6932
+ "k-icon-picker": !showValue && valueIconName
6534
6933
  }
6535
- ), children: label && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "k-progress-status", children: [
6536
- props.value,
6537
- "%"
6538
- ] }) }) })
6539
- ]
6540
- }
6541
- );
6934
+ ),
6935
+ children: [
6936
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(InputPrefix, { children: prefix }),
6937
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6938
+ InputInnerSpan,
6939
+ {
6940
+ placeholder,
6941
+ value,
6942
+ showValue,
6943
+ valueIconName
6944
+ }
6945
+ ),
6946
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6947
+ InputValidationIcon,
6948
+ {
6949
+ valid,
6950
+ invalid,
6951
+ loading,
6952
+ disabled
6953
+ }
6954
+ ),
6955
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6956
+ InputLoadingIcon,
6957
+ {
6958
+ loading,
6959
+ disabled
6960
+ }
6961
+ ),
6962
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(InputSuffix, { children: suffix }),
6963
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6964
+ Button,
6965
+ {
6966
+ className: "k-input-button",
6967
+ icon: arrowIconName,
6968
+ rounded: null,
6969
+ size: props.size,
6970
+ fillMode: props.fillMode
6971
+ }
6972
+ )
6973
+ ]
6974
+ }
6975
+ ),
6976
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
6977
+ ] });
6542
6978
  };
6543
- ProgressBar.states = states40;
6544
- ProgressBar.options = options38;
6545
- ProgressBar.className = PROGRESSBAR_CLASSNAME;
6546
- ProgressBar.defaultProps = defaultProps34;
6979
+ DropdownList.states = states44;
6980
+ DropdownList.options = options41;
6981
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
6982
+ DropdownList.defaultProps = defaultProps37;
6547
6983
 
6548
- // src/progressbar/chunk-progressbar.spec.tsx
6549
- var import_jsx_runtime78 = require("react/jsx-runtime");
6550
- var CHUNKPROGRESSBAR_CLASSNAME = `k-chunk-progressbar`;
6551
- var isSelected = (progress, index) => index <= progress - 1 ? true : false;
6552
- var states41 = [
6553
- States.disabled,
6554
- States.indeterminate
6555
- ];
6556
- var options39 = {};
6557
- var defaultProps35 = {
6558
- chunkCount: 5,
6559
- orientation: "horizontal",
6560
- progress: 0
6984
+ // src/dropdownlist/templates/dropdownlist-normal.tsx
6985
+ var import_jsx_runtime91 = require("react/jsx-runtime");
6986
+
6987
+ // src/nodata/nodata.tsx
6988
+ var import_jsx_runtime92 = require("react/jsx-runtime");
6989
+ var className9 = `k-nodata`;
6990
+ var NoData = (props) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: classNames(className9, props.className), children: props.children });
6991
+
6992
+ // src/list/list.spec.tsx
6993
+ var import_jsx_runtime93 = require("react/jsx-runtime");
6994
+ var LIST_CLASSNAME = `k-list`;
6995
+ var states45 = [];
6996
+ var options42 = {
6997
+ size: [Size.small, Size.medium, Size.large]
6561
6998
  };
6562
- var ChunkProgressBar = (props) => {
6999
+ var defaultProps38 = {
7000
+ size: Size.medium
7001
+ };
7002
+ var List = (props) => {
6563
7003
  const {
6564
- disabled,
6565
- chunkCount = defaultProps35.chunkCount,
6566
- indeterminate,
6567
- orientation = defaultProps35.orientation,
6568
- progress = defaultProps35.progress,
6569
- reverse,
7004
+ size = defaultProps38.size,
7005
+ virtualization,
7006
+ children,
7007
+ optionLabel,
6570
7008
  ...other
6571
7009
  } = props;
6572
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7010
+ let listHeader;
7011
+ let listGroup;
7012
+ let listContent;
7013
+ const listChildren = [];
7014
+ if (children) {
7015
+ children.map((child, index) => {
7016
+ if (child.type === ListGroup) {
7017
+ if (child.props.root === true) {
7018
+ listHeader = child.props.label;
7019
+ child.props.children.map((optChild, index2) => {
7020
+ listChildren.push(
7021
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
7022
+ ListItem,
7023
+ {
7024
+ ...optChild.props
7025
+ },
7026
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
7027
+ )
7028
+ );
7029
+ });
7030
+ } else {
7031
+ child.props.children.forEach((optChild, index2) => {
7032
+ let groupLabel = "";
7033
+ if (index2 === 0) {
7034
+ groupLabel = child.props.label;
7035
+ }
7036
+ listChildren.push(
7037
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
7038
+ ListItem,
7039
+ {
7040
+ className: index2 === 0 ? "k-first" : "",
7041
+ ...optChild.props,
7042
+ groupLabel
7043
+ },
7044
+ `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
7045
+ )
7046
+ );
7047
+ });
7048
+ }
7049
+ listGroup = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
7050
+ } else if (child.type === ListItem) {
7051
+ listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
7052
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ListContent, { virtualization, children: listChildren });
7053
+ }
7054
+ });
7055
+ } else {
7056
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(NoData, { children: "No data found." });
7057
+ }
7058
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
6573
7059
  "div",
6574
7060
  {
6575
7061
  ...other,
6576
7062
  className: classNames(
6577
7063
  props.className,
6578
- PROGRESSBAR_CLASSNAME,
6579
- CHUNKPROGRESSBAR_CLASSNAME,
6580
- stateClassNames(PROGRESSBAR_CLASSNAME, {
6581
- disabled
7064
+ LIST_CLASSNAME,
7065
+ optionClassNames(LIST_CLASSNAME, {
7066
+ size
6582
7067
  }),
6583
7068
  {
6584
- [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
6585
- [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
6586
- [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
7069
+ ["k-virtual-list"]: virtualization
6587
7070
  }
6588
7071
  ),
6589
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("ul", { className: "k-progressbar-chunks k-reset", children: [...Array(chunkCount)].map(
6590
- (_el, i) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("li", { className: classNames(
6591
- "k-progressbar-chunk",
6592
- {
6593
- "k-first": i === 0,
6594
- "k-last": i === [...Array(chunkCount)].length - 1,
6595
- "k-selected": isSelected(progress, i)
6596
- }
6597
- ) }, i)
6598
- ) })
7072
+ children: [
7073
+ optionLabel,
7074
+ listGroup,
7075
+ listContent
7076
+ ]
6599
7077
  }
6600
7078
  );
6601
7079
  };
6602
- ChunkProgressBar.states = states41;
6603
- ChunkProgressBar.options = options39;
6604
- ChunkProgressBar.className = CHUNKPROGRESSBAR_CLASSNAME;
6605
- ChunkProgressBar.defaultProps = defaultProps35;
6606
-
6607
- // src/progressbar/templates/progressbar-normal.tsx
6608
- var import_jsx_runtime79 = require("react/jsx-runtime");
6609
-
6610
- // src/progressbar/templates/chunk-progressbar-normal.tsx
6611
- var import_jsx_runtime80 = require("react/jsx-runtime");
7080
+ List.states = states45;
7081
+ List.options = options42;
7082
+ List.className = LIST_CLASSNAME;
7083
+ List.defaultProps = defaultProps38;
6612
7084
 
6613
- // src/upload/upload-file-info.tsx
6614
- var import_jsx_runtime81 = require("react/jsx-runtime");
6615
- var UPLOADFILEINFO_CLASSNAME = `k-file-info`;
6616
- var UploadFileInfo = (props) => {
7085
+ // src/list/list-angular.spec.tsx
7086
+ var import_jsx_runtime94 = require("react/jsx-runtime");
7087
+ var LISTANGULAR_CLASSNAME = `k-list`;
7088
+ var states46 = [];
7089
+ var options43 = {
7090
+ size: [Size.small, Size.medium, Size.large]
7091
+ };
7092
+ var defaultProps39 = {
7093
+ size: Size.medium
7094
+ };
7095
+ var ListAngular = (props) => {
6617
7096
  const {
6618
- name,
6619
- size,
6620
- validationMsg,
7097
+ size = defaultProps39.size,
7098
+ virtualization,
7099
+ children,
6621
7100
  ...other
6622
7101
  } = props;
6623
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
7102
+ let listHeader;
7103
+ let listGroup;
7104
+ let listContent;
7105
+ const listChildren = [];
7106
+ if (children) {
7107
+ children.map((child, index) => {
7108
+ if (child.type === ListGroup) {
7109
+ if (child.props.root === true) {
7110
+ listHeader = child.props.label;
7111
+ child.props.children.map((optChild, index2) => {
7112
+ listChildren.push(
7113
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
7114
+ ListItem,
7115
+ {
7116
+ ...optChild.props
7117
+ },
7118
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
7119
+ )
7120
+ );
7121
+ });
7122
+ } else {
7123
+ listChildren.push(
7124
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
7125
+ ListGroupItem,
7126
+ {
7127
+ ...child.props,
7128
+ children: child.props.label
7129
+ },
7130
+ `listChild-${index}`
7131
+ )
7132
+ );
7133
+ child.props.children.map((optChild, index2) => {
7134
+ listChildren.push(
7135
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
7136
+ ListItem,
7137
+ {
7138
+ ...optChild.props
7139
+ },
7140
+ `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
7141
+ )
7142
+ );
7143
+ });
7144
+ }
7145
+ listGroup = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
7146
+ } else if (child.type === ListItem) {
7147
+ listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
7148
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ListContent, { virtualization, children: listChildren });
7149
+ }
7150
+ });
7151
+ } else {
7152
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(NoData, { children: "No data found." });
7153
+ }
7154
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
6624
7155
  "div",
6625
7156
  {
6626
7157
  ...other,
6627
7158
  className: classNames(
6628
7159
  props.className,
6629
- UPLOADFILEINFO_CLASSNAME
6630
- ),
6631
- children: [
6632
- name && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "k-file-name", children: name }),
6633
- size && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "k-file-size", children: size }),
6634
- validationMsg && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "k-file-validation-message", children: validationMsg })
7160
+ LISTANGULAR_CLASSNAME,
7161
+ optionClassNames(LISTANGULAR_CLASSNAME, {
7162
+ size
7163
+ }),
7164
+ {
7165
+ ["k-virtual-list"]: virtualization
7166
+ }
7167
+ ),
7168
+ children: [
7169
+ listGroup,
7170
+ listContent
6635
7171
  ]
6636
7172
  }
6637
7173
  );
6638
7174
  };
7175
+ ListAngular.states = states46;
7176
+ ListAngular.options = options43;
7177
+ ListAngular.className = LISTANGULAR_CLASSNAME;
7178
+ ListAngular.defaultProps = defaultProps39;
6639
7179
 
6640
- // src/upload/upload-file.tsx
6641
- var import_jsx_runtime82 = require("react/jsx-runtime");
6642
- var UPLOADFILE_CLASSNAME = `k-file`;
6643
- var UploadFile = (props) => {
7180
+ // src/list/list-item.spec.tsx
7181
+ var import_jsx_runtime95 = require("react/jsx-runtime");
7182
+ var LISTITEM_CLASSNAME = `k-list-item`;
7183
+ var states47 = [
7184
+ States.hover,
7185
+ States.focus,
7186
+ States.selected,
7187
+ States.disabled
7188
+ ];
7189
+ var options44 = {};
7190
+ var defaultProps40 = {};
7191
+ var ListItem = (props) => {
6644
7192
  const {
6645
- status,
6646
- progress,
6647
- name,
6648
- icon,
6649
- size,
6650
- state,
6651
- validationMsg,
7193
+ text,
7194
+ groupLabel,
7195
+ showIcon,
7196
+ iconName,
7197
+ showCheckbox,
7198
+ checked,
7199
+ hover,
7200
+ focus,
7201
+ selected,
7202
+ disabled,
6652
7203
  ...other
6653
7204
  } = props;
6654
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7205
+ const textOrChildren = text ? text : props.children;
7206
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
6655
7207
  "li",
6656
7208
  {
6657
7209
  ...other,
6658
7210
  className: classNames(
6659
7211
  props.className,
6660
- UPLOADFILE_CLASSNAME,
6661
- {
6662
- [`k-file-${status}`]: status
6663
- }
7212
+ LISTITEM_CLASSNAME,
7213
+ stateClassNames(LISTITEM_CLASSNAME, {
7214
+ hover,
7215
+ focus,
7216
+ disabled,
7217
+ selected
7218
+ })
6664
7219
  ),
6665
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "k-file-single", children: [
6666
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ProgressBar, { className: classNames(
6667
- {
6668
- "k-hidden": status !== "progress"
6669
- }
6670
- ), value: progress, label: false }),
6671
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "k-file-icon-wrapper", children: [
6672
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon, { className: "k-file-icon", icon, size: "xxlarge" }),
6673
- state && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "k-file-state", children: state })
6674
- ] }),
6675
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(UploadFileInfo, { name, size, validationMsg }),
6676
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "k-upload-actions", children: status === "progress" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
6677
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { className: "k-upload-pct", children: [
6678
- progress,
6679
- "%"
6680
- ] }),
6681
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { icon: "pause-sm", fillMode: "flat", className: "k-upload-action" }),
6682
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { icon: "cancel", fillMode: "flat", className: "k-upload-action" })
6683
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Button, { icon: "x", fillMode: "flat", className: "k-upload-action" }) })
6684
- ] })
7220
+ children: [
7221
+ showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Checkbox, { checked }),
7222
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { icon: iconName }),
7223
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "k-list-item-text", children: textOrChildren }),
7224
+ groupLabel && groupLabel !== "" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "k-list-item-group-label", children: groupLabel })
7225
+ ]
6685
7226
  }
6686
7227
  );
6687
7228
  };
7229
+ ListItem.states = states47;
7230
+ ListItem.options = options44;
7231
+ ListItem.className = LISTITEM_CLASSNAME;
7232
+ ListItem.defaultProps = defaultProps40;
6688
7233
 
6689
- // src/upload/upload-file-multiple.tsx
6690
- var import_jsx_runtime83 = require("react/jsx-runtime");
7234
+ // src/list/list-content.tsx
7235
+ var import_jsx_runtime96 = require("react/jsx-runtime");
7236
+ var className10 = `k-list-content`;
7237
+ var ListContent = (props) => {
7238
+ const {
7239
+ virtualization
7240
+ } = props;
7241
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: classNames(className10, props.className), children: [
7242
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("ul", { className: classNames("k-list-ul"), children: props.children }),
7243
+ virtualization && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "k-height-container", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", {}) })
7244
+ ] });
7245
+ };
6691
7246
 
6692
- // src/upload/templates/upload-chunk.tsx
6693
- var import_jsx_runtime84 = require("react/jsx-runtime");
6694
- var UploadChunk = (props) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
6695
- Upload,
6696
- {
6697
- async: true,
6698
- children: [
6699
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
6700
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UploadFile, { name: "Image_With_Very_Very_Very_Very_Very_Long_Name1.png", icon: "file-image", size: "51.23 KB" }),
6701
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(UploadFile, { name: "Image2.jpg", icon: "file-image", size: "106.43 KB" })
6702
- ] })
6703
- ],
6704
- ...props
6705
- }
6706
- );
7247
+ // src/list/list-header.tsx
7248
+ var import_jsx_runtime97 = require("react/jsx-runtime");
7249
+ var className11 = `k-list-group-sticky-header`;
7250
+ var ListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: classNames(className11, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "k-list-header-text", children: props.children }) });
6707
7251
 
6708
- // src/upload/templates/upload-batch.tsx
6709
- var import_jsx_runtime85 = require("react/jsx-runtime");
7252
+ // src/list/list-group.tsx
7253
+ var import_jsx_runtime98 = require("react/jsx-runtime");
7254
+ var ListGroup = (props) => {
7255
+ const {
7256
+ virtualization,
7257
+ label
7258
+ } = props;
7259
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
7260
+ label && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ListHeader, { children: label }),
7261
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ListContent, { virtualization, children: props.children })
7262
+ ] });
7263
+ };
6710
7264
 
6711
- // src/upload/templates/upload-normal.tsx
6712
- var import_jsx_runtime86 = require("react/jsx-runtime");
7265
+ // src/list/list-group-item.tsx
7266
+ var import_jsx_runtime99 = require("react/jsx-runtime");
7267
+ var className12 = `k-list-group-item`;
7268
+ var ListGroupItem = (props) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("li", { className: classNames(className12, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: "k-list-item-text", children: props.children }) });
6713
7269
 
6714
- // src/form/form-field.tsx
6715
- var import_jsx_runtime87 = require("react/jsx-runtime");
6716
- var FORMFIELD_CLASSNAME = "k-form-field";
6717
- var states42 = [
7270
+ // src/list/list-option-label.tsx
7271
+ var import_jsx_runtime100 = require("react/jsx-runtime");
7272
+ var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
7273
+ var states48 = [
7274
+ States.hover,
7275
+ States.focus,
7276
+ States.selected,
6718
7277
  States.disabled
6719
7278
  ];
6720
- var FormField = (props) => {
7279
+ var options45 = {};
7280
+ var defaultProps41 = {};
7281
+ var ListOptionLabel = (props) => {
6721
7282
  const {
6722
- label,
6723
- orientation,
6724
- optional,
6725
- editor,
6726
- hint,
6727
- error,
6728
- info,
7283
+ text,
7284
+ hover,
7285
+ focus,
7286
+ selected,
6729
7287
  disabled,
6730
- dir,
6731
- colSpan
7288
+ ...other
6732
7289
  } = props;
6733
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
7290
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
6734
7291
  "div",
6735
7292
  {
7293
+ ...other,
6736
7294
  className: classNames(
6737
- FORMFIELD_CLASSNAME,
6738
- props.className,
6739
- stateClassNames(FORMFIELD_CLASSNAME, { disabled }),
6740
- {
6741
- [`k-col-span-${colSpan}`]: colSpan
6742
- }
7295
+ LIST_OPTIONLABEL_CLASSNAME,
7296
+ stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
7297
+ hover,
7298
+ focus,
7299
+ selected,
7300
+ disabled
7301
+ })
6743
7302
  ),
6744
- dir,
6745
- children: [
6746
- label && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("label", { className: classNames(
6747
- "k-label",
6748
- "k-form-label"
6749
- ), children: [
6750
- label,
6751
- optional && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
6752
- info && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "k-field-info", children: "(field info)" })
6753
- ] }),
6754
- orientation === "horizontal" && !label && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "k-label k-form-label k-label-empty" }),
6755
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "k-form-field-wrap", children: [
6756
- editor,
6757
- hint && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "k-form-hint", children: hint }),
6758
- error && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "k-form-error", children: error })
6759
- ] })
6760
- ]
7303
+ children: text
6761
7304
  }
6762
7305
  );
6763
7306
  };
6764
- FormField.className = FORMFIELD_CLASSNAME;
7307
+ ListOptionLabel.states = states48;
7308
+ ListOptionLabel.options = options45;
7309
+ ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
7310
+ ListOptionLabel.defaultProps = defaultProps41;
6765
7311
 
6766
- // src/form/fieldset.tsx
6767
- var import_jsx_runtime88 = require("react/jsx-runtime");
6768
- var FIELDSET_CLASSNAME = "k-form-fieldset";
6769
- var Fieldset = (props) => {
6770
- const {
6771
- legend,
6772
- layout,
6773
- cols,
6774
- gapX,
6775
- gapY
6776
- } = props;
6777
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
6778
- legend && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("legend", { className: "k-form-legend", children: legend }),
6779
- layout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: classNames(
6780
- "k-form-layout",
6781
- "k-d-grid",
6782
- {
6783
- [`k-grid-cols-${cols}`]: cols,
6784
- [`k-gap-x-${gapX}`]: gapX,
6785
- [`k-gap-y-${gapY}`]: gapY
6786
- }
6787
- ), children: props.children }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_jsx_runtime88.Fragment, { children: props.children })
6788
- ] });
6789
- };
6790
- Fieldset.className = FIELDSET_CLASSNAME;
7312
+ // src/list/templates/list-normal.tsx
7313
+ var import_jsx_runtime101 = require("react/jsx-runtime");
6791
7314
 
6792
- // src/form/form.spec.tsx
6793
- var import_jsx_runtime89 = require("react/jsx-runtime");
6794
- var import_react = require("react");
6795
- var FORM_CLASSNAME = "k-form";
6796
- var states43 = [];
6797
- var options40 = {
6798
- size: [Size.small, Size.medium, Size.large]
7315
+ // src/list/templates/list-virtualization.tsx
7316
+ var import_jsx_runtime102 = require("react/jsx-runtime");
7317
+
7318
+ // src/list/templates/list-grouping.tsx
7319
+ var import_jsx_runtime103 = require("react/jsx-runtime");
7320
+
7321
+ // src/list/templates/list-virualization-grouping.tsx
7322
+ var import_jsx_runtime104 = require("react/jsx-runtime");
7323
+
7324
+ // src/list/templates/list-virtualization-angular.tsx
7325
+ var import_jsx_runtime105 = require("react/jsx-runtime");
7326
+
7327
+ // src/list/templates/list-grouping-angular.tsx
7328
+ var import_jsx_runtime106 = require("react/jsx-runtime");
7329
+
7330
+ // src/list/templates/list-virualization-grouping-angular.tsx
7331
+ var import_jsx_runtime107 = require("react/jsx-runtime");
7332
+
7333
+ // src/dropdownlist/templates/dropdownlist-popup.tsx
7334
+ var import_jsx_runtime108 = require("react/jsx-runtime");
7335
+
7336
+ // src/searchbox/searchbox.spec.tsx
7337
+ var import_jsx_runtime109 = require("react/jsx-runtime");
7338
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
7339
+ var states49 = [
7340
+ States.hover,
7341
+ States.focus,
7342
+ States.valid,
7343
+ States.invalid,
7344
+ States.required,
7345
+ States.disabled,
7346
+ States.loading
7347
+ ];
7348
+ var options46 = {
7349
+ size: [Size.small, Size.medium, Size.large],
7350
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7351
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6799
7352
  };
6800
- var defaultProps36 = {
6801
- size: Size.medium,
6802
- layout: "basic",
6803
- tag: "form"
7353
+ var defaultProps42 = {
7354
+ showIcon: true,
7355
+ icon: "search",
7356
+ size: Input.defaultProps.size,
7357
+ rounded: Input.defaultProps.rounded,
7358
+ fillMode: Input.defaultProps.fillMode
6804
7359
  };
6805
- var Form = (props) => {
7360
+ var Searchbox = (props) => {
6806
7361
  const {
6807
- size = defaultProps36.size,
6808
- orientation,
6809
- layout = defaultProps36.layout,
6810
- formButtons,
6811
- cols,
6812
- gapX,
6813
- gapY,
6814
- tag = defaultProps36.tag,
6815
- children
7362
+ value,
7363
+ placeholder,
7364
+ size,
7365
+ rounded,
7366
+ fillMode,
7367
+ hover,
7368
+ focus,
7369
+ valid,
7370
+ invalid,
7371
+ required,
7372
+ loading,
7373
+ disabled,
7374
+ showIcon = defaultProps42.showIcon,
7375
+ icon = defaultProps42.icon,
7376
+ ...other
6816
7377
  } = props;
6817
- const Parent = ({ tag: tag2, className: className9, children: children2 }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("form", { className: className9, children: children2 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: className9, children: children2 });
6818
- const formChildren = [];
6819
- if (children) {
6820
- if (Array.isArray(children)) {
6821
- children.map((child, index) => {
6822
- if (child.type === FormField) {
6823
- formChildren.push(
6824
- /* @__PURE__ */ (0, import_react.createElement)(FormField, { ...child.props, orientation, key: index })
6825
- );
6826
- } else {
6827
- formChildren.push(child);
6828
- }
6829
- });
6830
- } else if (children.type === FormField) {
6831
- formChildren.push(/* @__PURE__ */ (0, import_react.createElement)(FormField, { ...children.props, orientation, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
6832
- } else {
6833
- children.type === Fieldset && formChildren.push(/* @__PURE__ */ (0, import_react.createElement)(Fieldset, { ...children.props, key: `${(/* @__PURE__ */ new Date()).getTime()}` }));
6834
- }
6835
- }
6836
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Parent, { tag, className: classNames(
6837
- props.className,
6838
- FORM_CLASSNAME,
6839
- optionClassNames(FORM_CLASSNAME, {
6840
- size
6841
- }),
7378
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
7379
+ Input,
6842
7380
  {
6843
- [`${FORM_CLASSNAME}-${orientation}`]: orientation
7381
+ ...other,
7382
+ size,
7383
+ rounded,
7384
+ fillMode,
7385
+ hover,
7386
+ focus,
7387
+ valid,
7388
+ invalid,
7389
+ required,
7390
+ loading,
7391
+ disabled,
7392
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
7393
+ children: [
7394
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Icon, { className: "k-input-icon", icon }),
7395
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(InputInnerInput, { placeholder, value }),
7396
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(InputLoadingIcon, { ...props }),
7397
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(InputValidationIcon, { ...props }),
7398
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(InputClearValue, { ...props })
7399
+ ]
6844
7400
  }
6845
- ), children: [
6846
- layout === "grid" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: classNames(
6847
- "k-form-layout",
6848
- "k-d-grid",
6849
- {
6850
- [`k-grid-cols-${cols}`]: cols,
6851
- [`k-gap-x-${gapX}`]: gapX,
6852
- [`k-gap-y-${gapY}`]: gapY
6853
- }
6854
- ), children: formChildren }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_jsx_runtime89.Fragment, { children: formChildren }),
6855
- formButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "k-form-buttons", children: formButtons })
6856
- ] });
7401
+ );
6857
7402
  };
6858
- Form.states = states43;
6859
- Form.options = options40;
6860
- Form.className = FORM_CLASSNAME;
6861
- Form.defaultProps = defaultProps36;
7403
+ Searchbox.states = states49;
7404
+ Searchbox.options = options46;
7405
+ Searchbox.className = SEARCHBOX_CLASSNAME;
7406
+ Searchbox.defaultProps = defaultProps42;
6862
7407
 
6863
- // src/form/tests/form-field-inputs.tsx
6864
- var import_jsx_runtime90 = require("react/jsx-runtime");
6865
- var styles = `
6866
- section {
6867
- padding: 20px;
6868
- border: 1px dashed gray;
6869
- }
6870
- .k-slider-horizontal {
6871
- width: 100%;
6872
- --kendo-slider-start: 0;
6873
- --kendo-slider-end: 50;
6874
- }
6875
- `;
6876
- var form_field_inputs_default = () => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
6877
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("style", { children: styles }),
6878
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
6879
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { children: "Vertical Form" }),
6880
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { children: "Horizontal Form" }),
6881
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Form, { children: [
6882
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6883
- FormField,
6884
- {
6885
- label: "Textbox:",
6886
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Textbox, {})
6887
- }
6888
- ),
6889
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6890
- FormField,
6891
- {
6892
- label: "Checkbox:",
6893
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Checkbox, {})
6894
- }
6895
- ),
6896
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6897
- FormField,
6898
- {
6899
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
6900
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Checkbox, {}),
6901
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("label", { className: "k-checkbox-label", children: "Label after the box" })
6902
- ] })
6903
- }
6904
- ),
6905
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6906
- FormField,
6907
- {
6908
- label: "Radio (Y):",
6909
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(RadioGroup, { children: [
6910
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
6911
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
6912
- ] })
6913
- }
6914
- ),
6915
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6916
- FormField,
6917
- {
6918
- label: "Radio (X):",
6919
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(RadioGroup, { layout: "horizontal", children: [
6920
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
6921
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
6922
- ] })
6923
- }
6924
- ),
6925
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6926
- FormField,
6927
- {
6928
- label: "Colorpicker:",
6929
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ColorPicker, {})
6930
- }
6931
- ),
6932
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6933
- FormField,
6934
- {
6935
- label: "MaskedTextBox:",
6936
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(MaskedTextbox, {})
6937
- }
6938
- ),
6939
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6940
- FormField,
6941
- {
6942
- label: "NumericTextBox:",
6943
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(NumericTextbox, {})
6944
- }
6945
- ),
6946
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7408
+ // src/searchbox/templates/searchbox-normal.tsx
7409
+ var import_jsx_runtime110 = require("react/jsx-runtime");
7410
+
7411
+ // src/dropdownlist/templates/dropdownlist-filtering.tsx
7412
+ var import_jsx_runtime111 = require("react/jsx-runtime");
7413
+
7414
+ // src/dropdownlist/templates/dropdownlist-grouping.tsx
7415
+ var import_jsx_runtime112 = require("react/jsx-runtime");
7416
+
7417
+ // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
7418
+ var import_jsx_runtime113 = require("react/jsx-runtime");
7419
+
7420
+ // src/form/templates/form-normal.tsx
7421
+ var import_jsx_runtime114 = require("react/jsx-runtime");
7422
+ var FormNormal = ({ size, ...other }) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7423
+ Form,
7424
+ {
7425
+ formButtons: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_jsx_runtime114.Fragment, { children: [
7426
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Button, { className: "k-form-submit", themeColor: "primary", size, children: "Submit" }),
7427
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Button, { className: "k-form-clear", size, children: "Clear" })
7428
+ ] }),
7429
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(Fieldset, { legend: "Form Legend", children: [
7430
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(FormField, { label: "Label", placeholder: "Input Value", editor: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Textbox, { size }) }),
7431
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6947
7432
  FormField,
6948
7433
  {
6949
- label: "Switch:",
6950
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Switch, { onLabel: "On", offLabel: "Off", checked: true })
7434
+ label: "Label",
7435
+ hint: "Hint text",
7436
+ editor: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(DropdownList, { value: "Dropdown List", size })
6951
7437
  }
6952
7438
  ),
6953
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7439
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6954
7440
  FormField,
6955
7441
  {
6956
- label: "Slider:",
6957
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "k-slider k-slider-horizontal", children: [
6958
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { icon: "caret-alt-left", rounded: "full", className: "k-button-decrease" }),
6959
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "k-slider-track-wrap", children: [
6960
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("ul", { className: "k-reset k-slider-items", children: [
6961
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick k-tick-large", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "k-label", children: "0" }) }),
6962
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6963
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6964
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6965
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6966
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick k-tick-large", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "k-label", children: "5" }) }),
6967
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6968
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6969
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6970
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
6971
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick k-tick-large", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "k-label", children: "10" }) })
6972
- ] }),
6973
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "k-slider-track", children: [
6974
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "k-slider-selection" }),
6975
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("a", { href: "#", className: "k-draghandle k-draghandle-end" })
6976
- ] })
7442
+ label: "City",
7443
+ editor: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("ul", { className: "k-radio-list k-list-horizontal", children: [
7444
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("li", { className: "k-radio-list-item", children: [
7445
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(RadioButton, { checked: true, size }),
7446
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("label", { className: "k-radio-label", children: "Label" })
7447
+ ] }),
7448
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("li", { className: "k-radio-list-item", children: [
7449
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(RadioButton, { size }),
7450
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("label", { className: "k-radio-label", children: "Label" })
6977
7451
  ] }),
6978
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { icon: "caret-alt-right", rounded: "full", className: "k-button-increase" })
7452
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("li", { className: "k-radio-list-item", children: [
7453
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(RadioButton, { size }),
7454
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("label", { className: "k-radio-label", children: "Label" })
7455
+ ] })
6979
7456
  ] })
6980
7457
  }
6981
- ),
6982
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6983
- FormField,
6984
- {
6985
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(FloatingLabel, { label: "FloatingLabel", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Textbox, {}) })
6986
- }
6987
- ),
6988
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6989
- FormField,
6990
- {
6991
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(FloatingLabel, { label: "FloatingLabel (Focused)", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Textbox, { focus: true }) })
6992
- }
6993
- ),
6994
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
6995
- FormField,
6996
- {
6997
- label: "Upload",
6998
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(UploadChunk, { status: "done", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(UploadFile, { progress: "100", status: "success", validationMsg: "File successfully uploaded.", name: "test long long long long long long long long long long long long long.pdf", icon: "file-pdf" }) })
6999
- }
7000
7458
  )
7001
- ] }) }),
7002
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Form, { orientation: "horizontal", children: [
7003
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7004
- FormField,
7005
- {
7006
- label: "Textbox:",
7007
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Textbox, {})
7008
- }
7009
- ),
7010
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7011
- FormField,
7012
- {
7013
- label: "Checkbox:",
7014
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Checkbox, {})
7015
- }
7016
- ),
7017
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7018
- FormField,
7019
- {
7020
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
7021
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Checkbox, {}),
7022
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("label", { className: "k-checkbox-label", children: "Label after the box" })
7023
- ] })
7024
- }
7025
- ),
7026
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7027
- FormField,
7028
- {
7029
- label: "Radio (Y):",
7030
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(RadioGroup, { children: [
7031
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
7032
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
7033
- ] })
7034
- }
7035
- ),
7036
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7037
- FormField,
7038
- {
7039
- label: "Radio (X):",
7040
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(RadioGroup, { layout: "horizontal", children: [
7041
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
7042
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
7043
- ] })
7044
- }
7045
- ),
7046
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7047
- FormField,
7048
- {
7049
- label: "Colorpicker:",
7050
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ColorPicker, {})
7051
- }
7052
- ),
7053
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7054
- FormField,
7055
- {
7056
- label: "MaskedTextBox:",
7057
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(MaskedTextbox, {})
7058
- }
7059
- ),
7060
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7061
- FormField,
7062
- {
7063
- label: "NumericTextBox:",
7064
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(NumericTextbox, {})
7065
- }
7066
- ),
7067
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7459
+ ] }),
7460
+ size,
7461
+ ...other
7462
+ }
7463
+ );
7464
+
7465
+ // src/form/templates/form-horizontal.tsx
7466
+ var import_jsx_runtime115 = require("react/jsx-runtime");
7467
+ var FormHorizontal = ({ size, ...other }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7468
+ Form,
7469
+ {
7470
+ formButtons: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
7471
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Button, { className: "k-form-submit", themeColor: "primary", size, children: "Submit" }),
7472
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Button, { className: "k-form-clear", size, children: "Clear" })
7473
+ ] }),
7474
+ children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(Fieldset, { legend: "Form Legend", children: [
7475
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(FormField, { label: "Label", placeholder: "Input Value", editor: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Textbox, { size }) }),
7476
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7068
7477
  FormField,
7069
7478
  {
7070
- label: "Switch:",
7071
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Switch, { onLabel: "On", offLabel: "Off", checked: true })
7479
+ label: "Label",
7480
+ hint: "Hint text",
7481
+ editor: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DropdownList, { value: "Dropdown List", size })
7072
7482
  }
7073
7483
  ),
7074
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7484
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7075
7485
  FormField,
7076
7486
  {
7077
- label: "Slider",
7078
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "k-slider k-slider-horizontal", children: [
7079
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { icon: "caret-alt-left", rounded: "full", className: "k-button-decrease" }),
7080
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "k-slider-track-wrap", children: [
7081
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("ul", { className: "k-reset k-slider-items", children: [
7082
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick k-tick-large", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "k-label", children: "0" }) }),
7083
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7084
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7085
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7086
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7087
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick k-tick-large", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "k-label", children: "5" }) }),
7088
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7089
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7090
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7091
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick" }),
7092
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("li", { className: "k-tick k-tick-large", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "k-label", children: "10" }) })
7093
- ] }),
7094
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "k-slider-track", children: [
7095
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "k-slider-selection" }),
7096
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("a", { href: "#", className: "k-draghandle k-draghandle-end" })
7097
- ] })
7487
+ label: "City",
7488
+ editor: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("ul", { className: "k-radio-list k-list-horizontal", children: [
7489
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("li", { className: "k-radio-list-item", children: [
7490
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(RadioButton, { checked: true, size }),
7491
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("label", { className: "k-radio-label", children: "Label" })
7098
7492
  ] }),
7099
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { icon: "caret-alt-right", rounded: "full", className: "k-button-increase" })
7493
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("li", { className: "k-radio-list-item", children: [
7494
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(RadioButton, { size }),
7495
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("label", { className: "k-radio-label", children: "Label" })
7496
+ ] }),
7497
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("li", { className: "k-radio-list-item", children: [
7498
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(RadioButton, { size }),
7499
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("label", { className: "k-radio-label", children: "Label" })
7500
+ ] })
7100
7501
  ] })
7101
7502
  }
7102
- ),
7103
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7104
- FormField,
7105
- {
7106
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(FloatingLabel, { label: "FloatingLabel", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Textbox, {}) })
7107
- }
7108
- ),
7109
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7110
- FormField,
7111
- {
7112
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(FloatingLabel, { label: "FloatingLabel (Focused)", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Textbox, { focus: true }) })
7113
- }
7114
- ),
7115
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
7116
- FormField,
7117
- {
7118
- label: "Upload",
7119
- editor: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(UploadChunk, { status: "done", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(UploadFile, { progress: "100", status: "success", validationMsg: "File successfully uploaded.", name: "test long long long long long long long long long long long long long.pdf", icon: "file-pdf" }) })
7120
- }
7121
7503
  )
7122
- ] }) })
7504
+ ] }),
7505
+ orientation: "horizontal",
7506
+ size,
7507
+ ...other
7508
+ }
7509
+ );
7510
+
7511
+ // src/form/tests/form-field-inputs.tsx
7512
+ var import_jsx_runtime116 = require("react/jsx-runtime");
7513
+ var styles = `
7514
+ section {
7515
+ padding: 20px;
7516
+ border: 1px dashed gray;
7517
+ }
7518
+ .k-slider-horizontal {
7519
+ width: 100%;
7520
+ --kendo-slider-start: 0;
7521
+ --kendo-slider-end: 50;
7522
+ }
7523
+ `;
7524
+ var form_field_inputs_default = () => /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_jsx_runtime116.Fragment, { children: [
7525
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("style", { children: styles }),
7526
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
7527
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { children: "Vertical Form" }),
7528
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { children: "Horizontal Form" }),
7529
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
7530
+ FormNormal,
7531
+ {
7532
+ formButtons: null,
7533
+ children: [
7534
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7535
+ FormField,
7536
+ {
7537
+ label: "Textbox:",
7538
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Textbox, {})
7539
+ }
7540
+ ),
7541
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7542
+ FormField,
7543
+ {
7544
+ label: "Checkbox:",
7545
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Checkbox, {})
7546
+ }
7547
+ ),
7548
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7549
+ FormField,
7550
+ {
7551
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_jsx_runtime116.Fragment, { children: [
7552
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Checkbox, {}),
7553
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("label", { className: "k-checkbox-label", children: "Label after the box" })
7554
+ ] })
7555
+ }
7556
+ ),
7557
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7558
+ FormField,
7559
+ {
7560
+ label: "Radio (Y):",
7561
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(RadioGroup, { children: [
7562
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
7563
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
7564
+ ] })
7565
+ }
7566
+ ),
7567
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7568
+ FormField,
7569
+ {
7570
+ label: "Radio (X):",
7571
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(RadioGroup, { layout: "horizontal", children: [
7572
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
7573
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
7574
+ ] })
7575
+ }
7576
+ ),
7577
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7578
+ FormField,
7579
+ {
7580
+ label: "Colorpicker:",
7581
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(ColorPicker, {})
7582
+ }
7583
+ ),
7584
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7585
+ FormField,
7586
+ {
7587
+ label: "MaskedTextBox:",
7588
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(MaskedTextbox, {})
7589
+ }
7590
+ ),
7591
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7592
+ FormField,
7593
+ {
7594
+ label: "NumericTextBox:",
7595
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(NumericTextbox, {})
7596
+ }
7597
+ ),
7598
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7599
+ FormField,
7600
+ {
7601
+ label: "Switch:",
7602
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Switch, { onLabel: "On", offLabel: "Off", checked: true })
7603
+ }
7604
+ ),
7605
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7606
+ FormField,
7607
+ {
7608
+ label: "Slider:",
7609
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(Slider, { children: [
7610
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, { label: true, large: true, text: "0" }),
7611
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7612
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7613
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7614
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7615
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, { label: true, large: true, text: "5" }),
7616
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7617
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7618
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7619
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7620
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, { label: true, large: true, text: "10" })
7621
+ ] })
7622
+ }
7623
+ ),
7624
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7625
+ FormField,
7626
+ {
7627
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(FloatingLabel, { label: "FloatingLabel", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Textbox, {}) })
7628
+ }
7629
+ ),
7630
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7631
+ FormField,
7632
+ {
7633
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(FloatingLabel, { label: "FloatingLabel (Focused)", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Textbox, { focus: true }) })
7634
+ }
7635
+ ),
7636
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7637
+ FormField,
7638
+ {
7639
+ label: "Upload",
7640
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(UploadChunk, { status: "done", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(UploadFile, { progress: "100", status: "success", validationMsg: "File successfully uploaded.", name: "test long long long long long long long long long long long long long.pdf", icon: "file-pdf" }) })
7641
+ }
7642
+ )
7643
+ ]
7644
+ }
7645
+ ) }),
7646
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
7647
+ FormHorizontal,
7648
+ {
7649
+ formButtons: null,
7650
+ children: [
7651
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7652
+ FormField,
7653
+ {
7654
+ label: "Textbox:",
7655
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Textbox, {})
7656
+ }
7657
+ ),
7658
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7659
+ FormField,
7660
+ {
7661
+ label: "Checkbox:",
7662
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Checkbox, {})
7663
+ }
7664
+ ),
7665
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7666
+ FormField,
7667
+ {
7668
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_jsx_runtime116.Fragment, { children: [
7669
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Checkbox, {}),
7670
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("label", { className: "k-checkbox-label", children: "Label after the box" })
7671
+ ] })
7672
+ }
7673
+ ),
7674
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7675
+ FormField,
7676
+ {
7677
+ label: "Radio (Y):",
7678
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(RadioGroup, { children: [
7679
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
7680
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
7681
+ ] })
7682
+ }
7683
+ ),
7684
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7685
+ FormField,
7686
+ {
7687
+ label: "Radio (X):",
7688
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(RadioGroup, { layout: "horizontal", children: [
7689
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Male" }) }),
7690
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioItem, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(RadioButtonWithLabelAfter, { children: "Female" }) })
7691
+ ] })
7692
+ }
7693
+ ),
7694
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7695
+ FormField,
7696
+ {
7697
+ label: "Colorpicker:",
7698
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(ColorPicker, {})
7699
+ }
7700
+ ),
7701
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7702
+ FormField,
7703
+ {
7704
+ label: "MaskedTextBox:",
7705
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(MaskedTextbox, {})
7706
+ }
7707
+ ),
7708
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7709
+ FormField,
7710
+ {
7711
+ label: "NumericTextBox:",
7712
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(NumericTextbox, {})
7713
+ }
7714
+ ),
7715
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7716
+ FormField,
7717
+ {
7718
+ label: "Switch:",
7719
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Switch, { onLabel: "On", offLabel: "Off", checked: true })
7720
+ }
7721
+ ),
7722
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7723
+ FormField,
7724
+ {
7725
+ label: "Slider:",
7726
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(Slider, { children: [
7727
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, { label: true, large: true, text: "0" }),
7728
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7729
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7730
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7731
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7732
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, { label: true, large: true, text: "5" }),
7733
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7734
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7735
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7736
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, {}),
7737
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(SliderTick, { label: true, large: true, text: "10" })
7738
+ ] })
7739
+ }
7740
+ ),
7741
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7742
+ FormField,
7743
+ {
7744
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(FloatingLabel, { label: "FloatingLabel", empty: true, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Textbox, {}) })
7745
+ }
7746
+ ),
7747
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7748
+ FormField,
7749
+ {
7750
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(FloatingLabel, { label: "FloatingLabel (Focused)", empty: true, focus: true, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Textbox, { focus: true }) })
7751
+ }
7752
+ ),
7753
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7754
+ FormField,
7755
+ {
7756
+ label: "Upload",
7757
+ editor: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(UploadChunk, { status: "done", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(UploadFile, { progress: "100", status: "success", validationMsg: "File successfully uploaded.", name: "test long long long long long long long long long long long long long.pdf", icon: "file-pdf" }) })
7758
+ }
7759
+ )
7760
+ ]
7761
+ }
7762
+ ) })
7123
7763
  ] })
7124
7764
  ] });