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