@progress/kendo-themes-html 7.0.2-dev.4 → 7.0.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 (257) hide show
  1. package/dist/cjs/context-menu/tests/context-menu-in-window.js +45 -31
  2. package/dist/cjs/dialog/tests/dialog-in-window.js +32 -18
  3. package/dist/cjs/editor/tests/editor-find-replace.js +86 -72
  4. package/dist/cjs/editor/tests/editor-image-editor.js +48 -34
  5. package/dist/cjs/editor/tests/editor-table-wizard.js +115 -101
  6. package/dist/cjs/editor/tests/editor-view-source.js +47 -33
  7. package/dist/cjs/fab/fab-item.js +1 -0
  8. package/dist/cjs/fab/templates/icon-fab.js +4426 -0
  9. package/dist/cjs/fab/templates/icon-text-fab.js +4427 -0
  10. package/dist/cjs/fab/templates/text-fab.js +4426 -0
  11. package/dist/cjs/fab/tests/fab-items.js +51 -113
  12. package/dist/cjs/fab/tests/fab-position.js +73 -20
  13. package/dist/cjs/fab/tests/{fab-size.js → fab-size-rounded.js} +89 -93
  14. package/dist/cjs/fab/tests/fab-states.js +67 -14
  15. package/dist/cjs/fab/tests/fab.js +82 -48
  16. package/dist/cjs/filemanager/tests/filemanager-dialogs.js +35 -19
  17. package/dist/cjs/form/tests/form-field-inputs-rtl.js +137 -115
  18. package/dist/cjs/form/tests/form-field-inputs.js +151 -129
  19. package/dist/cjs/gantt/tests/gantt-editing-popup-general.js +434 -420
  20. package/dist/cjs/gantt/tests/gantt-editing-popup-other.js +332 -318
  21. package/dist/cjs/gantt/tests/gantt-editing-popup-predecessors.js +442 -428
  22. package/dist/cjs/gantt/tests/gantt-editing-popup-resources.js +485 -471
  23. package/dist/cjs/gantt/tests/gantt-editing-popup-successors.js +442 -428
  24. package/dist/cjs/grid/tests/grid-column-resizing-actions.js +140 -126
  25. package/dist/cjs/grid/tests/grid-editing-popup.js +375 -361
  26. package/dist/cjs/index.js +1935 -1659
  27. package/dist/cjs/multiselecttree/multiselecttree.spec.js +712 -18
  28. package/dist/cjs/multiselecttree/templates/multiselecttree-adaptive.js +5837 -0
  29. package/dist/cjs/multiselecttree/templates/multiselecttree-arrow-button.js +5837 -0
  30. package/dist/cjs/multiselecttree/templates/multiselecttree-filtering.js +5968 -0
  31. package/dist/cjs/multiselecttree/templates/multiselecttree-normal.js +5831 -0
  32. package/dist/cjs/multiselecttree/templates/multiselecttree-popup.js +5855 -0
  33. package/dist/cjs/multiselecttree/templates/multiselecttree-value.js +5869 -0
  34. package/dist/cjs/multiselecttree/tests/multiselecttree-adaptive.js +5984 -0
  35. package/dist/cjs/multiselecttree/tests/multiselecttree-flat.js +887 -147
  36. package/dist/cjs/multiselecttree/tests/multiselecttree-opened.js +1283 -937
  37. package/dist/cjs/multiselecttree/tests/multiselecttree-outline.js +887 -147
  38. package/dist/cjs/multiselecttree/tests/{multiselecttree.js → multiselecttree-size-rounded.js} +865 -150
  39. package/dist/cjs/multiselecttree/tests/multiselecttree-solid.js +6048 -0
  40. package/dist/cjs/notification/index.js +51 -1
  41. package/dist/cjs/notification/templates/icon-notification-closable.js +4389 -0
  42. package/dist/cjs/notification/templates/icon-notification.js +4368 -0
  43. package/dist/cjs/notification/templates/notification-closable.js +4388 -0
  44. package/dist/cjs/notification/templates/notification-normal.js +4367 -0
  45. package/dist/cjs/notification/tests/notification-angular-colors.js +4404 -0
  46. package/dist/cjs/notification/tests/notification-angular.js +60 -34
  47. package/dist/cjs/notification/tests/notification-custom-angular.js +48 -20
  48. package/dist/cjs/notification/tests/notification-jquery-colors.js +4441 -0
  49. package/dist/cjs/notification/tests/notification-jquery.js +63 -37
  50. package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +457 -441
  51. package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +530 -516
  52. package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +544 -530
  53. package/dist/cjs/spreadsheet/tests/spreadsheet-data-validation.js +194 -180
  54. package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +235 -205
  55. package/dist/cjs/spreadsheet/tests/spreadsheet-find-replace-dialog.js +169 -155
  56. package/dist/cjs/spreadsheet/tests/spreadsheet-format-dialogs.js +471 -457
  57. package/dist/cjs/spreadsheet/tests/spreadsheet-formula-dialog.js +167 -153
  58. package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +267 -237
  59. package/dist/cjs/spreadsheet/tests/spreadsheet-print.js +243 -229
  60. package/dist/cjs/spreadsheet/tests/spreadsheet-sheets-bar.js +123 -109
  61. package/dist/cjs/treelist/tests/treelist-editing-popup.js +317 -303
  62. package/dist/cjs/upload/templates/upload-batch.js +4846 -0
  63. package/dist/cjs/{multiselecttree/tests/multiselecttree-size.js → upload/templates/upload-chunk.js} +396 -768
  64. package/dist/cjs/upload/templates/upload-normal.js +4761 -0
  65. package/dist/cjs/upload/tests/upload-rtl.js +67 -49
  66. package/dist/cjs/upload/tests/upload-states.js +4782 -0
  67. package/dist/cjs/upload/tests/upload.js +62 -36
  68. package/dist/cjs/upload/upload.spec.js +1 -1
  69. package/dist/cjs/window/templates/window-normal.js +4546 -0
  70. package/dist/cjs/window/tests/window-action-buttons.js +30 -16
  71. package/dist/cjs/window/tests/window-rtl.js +23 -9
  72. package/dist/cjs/window/tests/window-theme-colors.js +22 -9
  73. package/dist/cjs/window/tests/window.js +23 -9
  74. package/dist/esm/context-menu/tests/context-menu-in-window.js +43 -29
  75. package/dist/esm/dialog/tests/dialog-in-window.js +30 -16
  76. package/dist/esm/editor/tests/editor-find-replace.js +78 -64
  77. package/dist/esm/editor/tests/editor-image-editor.js +41 -27
  78. package/dist/esm/editor/tests/editor-table-wizard.js +110 -96
  79. package/dist/esm/editor/tests/editor-view-source.js +46 -32
  80. package/dist/esm/fab/fab-item.js +1 -0
  81. package/dist/esm/fab/templates/icon-fab.js +4410 -0
  82. package/dist/esm/fab/templates/icon-text-fab.js +4411 -0
  83. package/dist/esm/fab/templates/text-fab.js +4410 -0
  84. package/dist/esm/fab/tests/fab-items.js +49 -111
  85. package/dist/esm/fab/tests/fab-position.js +71 -18
  86. package/dist/esm/fab/tests/{fab-size.js → fab-size-rounded.js} +85 -89
  87. package/dist/esm/fab/tests/fab-states.js +64 -11
  88. package/dist/esm/fab/tests/fab.js +80 -46
  89. package/dist/esm/filemanager/tests/filemanager-dialogs.js +35 -19
  90. package/dist/esm/form/tests/form-field-inputs-rtl.js +137 -115
  91. package/dist/esm/form/tests/form-field-inputs.js +151 -129
  92. package/dist/esm/gantt/tests/gantt-editing-popup-general.js +381 -367
  93. package/dist/esm/gantt/tests/gantt-editing-popup-other.js +290 -276
  94. package/dist/esm/gantt/tests/gantt-editing-popup-predecessors.js +386 -372
  95. package/dist/esm/gantt/tests/gantt-editing-popup-resources.js +419 -405
  96. package/dist/esm/gantt/tests/gantt-editing-popup-successors.js +386 -372
  97. package/dist/esm/grid/tests/grid-column-resizing-actions.js +117 -103
  98. package/dist/esm/grid/tests/grid-editing-popup.js +328 -314
  99. package/dist/esm/index.js +1935 -1659
  100. package/dist/esm/multiselecttree/multiselecttree.spec.js +712 -18
  101. package/dist/esm/multiselecttree/templates/multiselecttree-adaptive.js +5821 -0
  102. package/dist/esm/multiselecttree/templates/multiselecttree-arrow-button.js +5821 -0
  103. package/dist/esm/multiselecttree/templates/multiselecttree-filtering.js +5952 -0
  104. package/dist/esm/multiselecttree/templates/multiselecttree-normal.js +5815 -0
  105. package/dist/esm/multiselecttree/templates/multiselecttree-popup.js +5839 -0
  106. package/dist/esm/multiselecttree/templates/multiselecttree-value.js +5853 -0
  107. package/dist/esm/multiselecttree/tests/multiselecttree-adaptive.js +5968 -0
  108. package/dist/esm/multiselecttree/tests/multiselecttree-flat.js +887 -147
  109. package/dist/esm/multiselecttree/tests/multiselecttree-opened.js +1337 -991
  110. package/dist/esm/multiselecttree/tests/multiselecttree-outline.js +887 -147
  111. package/dist/esm/multiselecttree/tests/{multiselecttree.js → multiselecttree-size-rounded.js} +861 -146
  112. package/dist/esm/multiselecttree/tests/multiselecttree-solid.js +6032 -0
  113. package/dist/esm/notification/index.js +51 -1
  114. package/dist/esm/notification/templates/icon-notification-closable.js +4373 -0
  115. package/dist/esm/notification/templates/icon-notification.js +4352 -0
  116. package/dist/esm/notification/templates/notification-closable.js +4372 -0
  117. package/dist/esm/notification/templates/notification-normal.js +4351 -0
  118. package/dist/esm/notification/tests/notification-angular-colors.js +4388 -0
  119. package/dist/esm/notification/tests/notification-angular.js +58 -32
  120. package/dist/esm/notification/tests/notification-custom-angular.js +46 -18
  121. package/dist/esm/notification/tests/notification-jquery-colors.js +4425 -0
  122. package/dist/esm/notification/tests/notification-jquery.js +61 -35
  123. package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +457 -441
  124. package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +466 -452
  125. package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +479 -465
  126. package/dist/esm/spreadsheet/tests/spreadsheet-data-validation.js +179 -165
  127. package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +215 -185
  128. package/dist/esm/spreadsheet/tests/spreadsheet-find-replace-dialog.js +155 -141
  129. package/dist/esm/spreadsheet/tests/spreadsheet-format-dialogs.js +409 -395
  130. package/dist/esm/spreadsheet/tests/spreadsheet-formula-dialog.js +153 -139
  131. package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +253 -223
  132. package/dist/esm/spreadsheet/tests/spreadsheet-print.js +218 -204
  133. package/dist/esm/spreadsheet/tests/spreadsheet-sheets-bar.js +108 -94
  134. package/dist/esm/treelist/tests/treelist-editing-popup.js +275 -261
  135. package/dist/esm/upload/templates/upload-batch.js +4830 -0
  136. package/dist/esm/{multiselecttree/tests/multiselecttree-size.js → upload/templates/upload-chunk.js} +392 -764
  137. package/dist/esm/upload/templates/upload-normal.js +4745 -0
  138. package/dist/esm/upload/tests/upload-rtl.js +67 -49
  139. package/dist/esm/upload/tests/upload-states.js +4766 -0
  140. package/dist/esm/upload/tests/upload.js +62 -36
  141. package/dist/esm/upload/upload.spec.js +1 -1
  142. package/dist/esm/window/templates/window-normal.js +4530 -0
  143. package/dist/esm/window/tests/window-action-buttons.js +29 -15
  144. package/dist/esm/window/tests/window-rtl.js +22 -8
  145. package/dist/esm/window/tests/window-theme-colors.js +22 -9
  146. package/dist/esm/window/tests/window.js +22 -8
  147. package/dist/types/fab/fab-item.d.ts +4 -1
  148. package/dist/types/fab/index.d.ts +3 -0
  149. package/dist/types/fab/templates/icon-fab.d.ts +1 -0
  150. package/dist/types/fab/templates/icon-text-fab.d.ts +1 -0
  151. package/dist/types/fab/templates/text-fab.d.ts +1 -0
  152. package/dist/types/multiselecttree/index.d.ts +6 -0
  153. package/dist/types/multiselecttree/multiselecttree.spec.d.ts +3 -0
  154. package/dist/types/multiselecttree/templates/multiselecttree-adaptive.d.ts +1 -0
  155. package/dist/types/multiselecttree/templates/multiselecttree-arrow-button.d.ts +1 -0
  156. package/dist/types/multiselecttree/templates/multiselecttree-filtering.d.ts +1 -0
  157. package/dist/types/multiselecttree/templates/multiselecttree-normal.d.ts +1 -0
  158. package/dist/types/multiselecttree/templates/multiselecttree-popup.d.ts +1 -0
  159. package/dist/types/multiselecttree/templates/multiselecttree-value.d.ts +1 -0
  160. package/dist/types/multiselecttree/tests/multiselecttree-solid.d.ts +2 -0
  161. package/dist/types/notification/index.d.ts +4 -0
  162. package/dist/types/notification/templates/icon-notification-closable.d.ts +1 -0
  163. package/dist/types/notification/templates/icon-notification.d.ts +1 -0
  164. package/dist/types/notification/templates/notification-closable.d.ts +1 -0
  165. package/dist/types/notification/templates/notification-normal.d.ts +1 -0
  166. package/dist/types/notification/tests/notification-angular-colors.d.ts +2 -0
  167. package/dist/types/notification/tests/notification-jquery-colors.d.ts +2 -0
  168. package/dist/types/upload/index.d.ts +3 -0
  169. package/dist/types/upload/templates/upload-batch.d.ts +1 -0
  170. package/dist/types/upload/templates/upload-chunk.d.ts +1 -0
  171. package/dist/types/upload/templates/upload-normal.d.ts +1 -0
  172. package/dist/types/upload/tests/upload-states.d.ts +2 -0
  173. package/dist/types/window/index.d.ts +1 -0
  174. package/dist/types/window/templates/window-normal.d.ts +1 -0
  175. package/package.json +2 -2
  176. package/src/context-menu/tests/context-menu-in-window.tsx +3 -3
  177. package/src/dialog/tests/dialog-in-window.tsx +3 -3
  178. package/src/editor/tests/editor-find-replace.tsx +5 -5
  179. package/src/editor/tests/editor-image-editor.tsx +3 -3
  180. package/src/editor/tests/editor-table-wizard.tsx +7 -7
  181. package/src/editor/tests/editor-view-source.tsx +3 -3
  182. package/src/fab/fab-item.tsx +2 -0
  183. package/src/fab/index.ts +3 -0
  184. package/src/fab/templates/icon-fab.tsx +7 -0
  185. package/src/fab/templates/icon-text-fab.tsx +8 -0
  186. package/src/fab/templates/text-fab.tsx +7 -0
  187. package/src/fab/tests/fab-items.tsx +57 -127
  188. package/src/fab/tests/fab-position.tsx +9 -9
  189. package/src/fab/tests/fab-size-rounded.tsx +35 -0
  190. package/src/fab/tests/fab-states.tsx +2 -2
  191. package/src/fab/tests/fab.tsx +14 -110
  192. package/src/filemanager/tests/filemanager-dialogs.tsx +2 -2
  193. package/src/form/tests/form-field-inputs-rtl.tsx +5 -5
  194. package/src/form/tests/form-field-inputs.tsx +5 -5
  195. package/src/gantt/tests/gantt-editing-popup-general.tsx +3 -3
  196. package/src/gantt/tests/gantt-editing-popup-other.tsx +3 -3
  197. package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +3 -3
  198. package/src/gantt/tests/gantt-editing-popup-resources.tsx +3 -3
  199. package/src/gantt/tests/gantt-editing-popup-successors.tsx +3 -3
  200. package/src/grid/tests/grid-column-resizing-actions.tsx +3 -3
  201. package/src/grid/tests/grid-editing-popup.tsx +3 -3
  202. package/src/multiselecttree/index.ts +6 -0
  203. package/src/multiselecttree/multiselecttree.spec.tsx +37 -0
  204. package/src/multiselecttree/templates/multiselecttree-adaptive.tsx +8 -0
  205. package/src/multiselecttree/templates/multiselecttree-arrow-button.tsx +8 -0
  206. package/src/multiselecttree/templates/multiselecttree-filtering.tsx +47 -0
  207. package/src/multiselecttree/templates/multiselecttree-normal.tsx +3 -0
  208. package/src/multiselecttree/templates/multiselecttree-popup.tsx +36 -0
  209. package/src/multiselecttree/templates/multiselecttree-value.tsx +12 -0
  210. package/src/multiselecttree/tests/multiselecttree-adaptive.tsx +33 -0
  211. package/src/multiselecttree/tests/multiselecttree-flat.tsx +32 -126
  212. package/src/multiselecttree/tests/multiselecttree-opened.tsx +29 -90
  213. package/src/multiselecttree/tests/multiselecttree-outline.tsx +32 -126
  214. package/src/multiselecttree/tests/multiselecttree-size-rounded.tsx +38 -0
  215. package/src/multiselecttree/tests/multiselecttree-solid.tsx +79 -0
  216. package/src/notification/index.tsx +4 -0
  217. package/src/notification/templates/icon-notification-closable.tsx +10 -0
  218. package/src/notification/templates/icon-notification.tsx +9 -0
  219. package/src/notification/templates/notification-closable.tsx +9 -0
  220. package/src/notification/templates/notification-normal.tsx +8 -0
  221. package/src/notification/tests/notification-angular-colors.tsx +28 -0
  222. package/src/notification/tests/notification-angular.tsx +10 -95
  223. package/src/notification/tests/notification-custom-angular.tsx +9 -9
  224. package/src/notification/tests/notification-jquery-colors.tsx +30 -0
  225. package/src/notification/tests/notification-jquery.tsx +10 -95
  226. package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
  227. package/src/scheduler/tests/scheduler-edit-dialog.tsx +3 -3
  228. package/src/scheduler/tests/scheduler-editing-weekly.tsx +3 -3
  229. package/src/spreadsheet/tests/spreadsheet-data-validation.tsx +5 -5
  230. package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +9 -9
  231. package/src/spreadsheet/tests/spreadsheet-find-replace-dialog.tsx +3 -3
  232. package/src/spreadsheet/tests/spreadsheet-format-dialogs.tsx +5 -5
  233. package/src/spreadsheet/tests/spreadsheet-formula-dialog.tsx +3 -3
  234. package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +13 -13
  235. package/src/spreadsheet/tests/spreadsheet-print.tsx +5 -5
  236. package/src/spreadsheet/tests/spreadsheet-sheets-bar.tsx +5 -5
  237. package/src/treelist/tests/treelist-editing-popup.tsx +3 -3
  238. package/src/upload/index.ts +3 -0
  239. package/src/upload/templates/upload-batch.tsx +14 -0
  240. package/src/upload/templates/upload-chunk.tsx +12 -0
  241. package/src/upload/templates/upload-normal.tsx +7 -0
  242. package/src/upload/tests/upload-rtl.tsx +35 -48
  243. package/src/upload/tests/upload-states.tsx +29 -0
  244. package/src/upload/tests/upload.tsx +34 -39
  245. package/src/upload/upload.spec.tsx +1 -1
  246. package/src/window/index.ts +1 -0
  247. package/src/window/templates/window-normal.tsx +11 -0
  248. package/src/window/tests/window-action-buttons.tsx +9 -9
  249. package/src/window/tests/window-rtl.tsx +6 -8
  250. package/src/window/tests/window-theme-colors.tsx +6 -18
  251. package/src/window/tests/window.tsx +6 -6
  252. package/src/fab/tests/fab-size.tsx +0 -109
  253. package/src/multiselecttree/tests/multiselecttree-size.tsx +0 -50
  254. package/src/multiselecttree/tests/multiselecttree.tsx +0 -175
  255. /package/dist/types/fab/tests/{fab-size.d.ts → fab-size-rounded.d.ts} +0 -0
  256. /package/dist/types/multiselecttree/tests/{multiselecttree-size.d.ts → multiselecttree-adaptive.d.ts} +0 -0
  257. /package/dist/types/multiselecttree/tests/{multiselecttree.d.ts → multiselecttree-size-rounded.d.ts} +0 -0
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // src/multiselecttree/tests/multiselecttree-size.tsx
20
- var multiselecttree_size_exports = {};
21
- __export(multiselecttree_size_exports, {
22
- default: () => multiselecttree_size_default
19
+ // src/upload/templates/upload-chunk.tsx
20
+ var upload_chunk_exports = {};
21
+ __export(upload_chunk_exports, {
22
+ UploadChunk: () => UploadChunk
23
23
  });
24
- module.exports = __toCommonJS(multiselecttree_size_exports);
24
+ module.exports = __toCommonJS(upload_chunk_exports);
25
25
 
26
26
  // src/misc/class-names.ts
27
27
  var classNames = (...args) => {
@@ -130,11 +130,48 @@ var States = {
130
130
  "readonly": "readonly"
131
131
  };
132
132
 
133
- // src/icon/font-icon.spec.tsx
133
+ // src/action-buttons/action-buttons.spec.tsx
134
134
  var import_jsx_runtime = require("react/jsx-runtime");
135
- var FONTICON_CLASSNAME = `k-icon k-font-icon`;
135
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
136
136
  var states = [];
137
- var options = {
137
+ var options = {};
138
+ var defaultProps = {
139
+ alignment: "start",
140
+ orientation: "horizontal"
141
+ };
142
+ var ActionButtons = (props) => {
143
+ const {
144
+ alignment = defaultProps.alignment,
145
+ orientation = defaultProps.orientation,
146
+ ...other
147
+ } = props;
148
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
149
+ "div",
150
+ {
151
+ ...other,
152
+ className: classNames(
153
+ ACTIONBUTTONS_CLASSNAME,
154
+ {
155
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
156
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
157
+ },
158
+ props.className
159
+ ),
160
+ children: props.children
161
+ }
162
+ );
163
+ };
164
+ ActionButtons.states = states;
165
+ ActionButtons.options = options;
166
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
167
+ ActionButtons.defaultProps = defaultProps;
168
+ var action_buttons_spec_default = ActionButtons;
169
+
170
+ // src/icon/font-icon.spec.tsx
171
+ var import_jsx_runtime2 = require("react/jsx-runtime");
172
+ var FONTICON_CLASSNAME = `k-icon k-font-icon`;
173
+ var states2 = [];
174
+ var options2 = {
138
175
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
139
176
  themeColor: [
140
177
  ThemeColor.base,
@@ -149,7 +186,7 @@ var options = {
149
186
  ThemeColor.dark
150
187
  ]
151
188
  };
152
- var defaultProps = {};
189
+ var defaultProps2 = {};
153
190
  var FontIcon = (props) => {
154
191
  const {
155
192
  size,
@@ -160,9 +197,9 @@ var FontIcon = (props) => {
160
197
  ...other
161
198
  } = props;
162
199
  if (!icon) {
163
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
200
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
164
201
  }
165
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
202
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
166
203
  "span",
167
204
  {
168
205
  ...other,
@@ -183,17 +220,17 @@ var FontIcon = (props) => {
183
220
  }
184
221
  );
185
222
  };
186
- FontIcon.states = states;
187
- FontIcon.options = options;
223
+ FontIcon.states = states2;
224
+ FontIcon.options = options2;
188
225
  FontIcon.className = FONTICON_CLASSNAME;
189
- FontIcon.defaultProps = defaultProps;
226
+ FontIcon.defaultProps = defaultProps2;
190
227
  var font_icon_spec_default = FontIcon;
191
228
 
192
229
  // src/icon/svg-icon.spec.tsx
193
- var import_jsx_runtime2 = require("react/jsx-runtime");
230
+ var import_jsx_runtime3 = require("react/jsx-runtime");
194
231
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
195
- var states2 = [];
196
- var options2 = {
232
+ var states3 = [];
233
+ var options3 = {
197
234
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
198
235
  themeColor: [
199
236
  ThemeColor.base,
@@ -208,7 +245,7 @@ var options2 = {
208
245
  ThemeColor.dark
209
246
  ]
210
247
  };
211
- var defaultProps2 = {
248
+ var defaultProps3 = {
212
249
  viewBox: "0 0 24 24"
213
250
  };
214
251
  var SvgIcon = (props) => {
@@ -217,15 +254,15 @@ var SvgIcon = (props) => {
217
254
  themeColor,
218
255
  rotate,
219
256
  flip,
220
- viewBox = defaultProps2.viewBox,
257
+ viewBox = defaultProps3.viewBox,
221
258
  icon,
222
259
  ...other
223
260
  } = props;
224
261
  if (!icon) {
225
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
262
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
226
263
  }
227
264
  if (icon === "none") {
228
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
265
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
229
266
  "span",
230
267
  {
231
268
  ...other,
@@ -238,7 +275,7 @@ var SvgIcon = (props) => {
238
275
  );
239
276
  }
240
277
  const name = typeof icon === "object" && icon.name && icon.name;
241
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
278
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
242
279
  "span",
243
280
  {
244
281
  ...other,
@@ -256,7 +293,7 @@ var SvgIcon = (props) => {
256
293
  "k-flip-v": flip === "v" || flip === "both"
257
294
  }
258
295
  ),
259
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
296
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
260
297
  "svg",
261
298
  {
262
299
  "aria-hidden": true,
@@ -270,10 +307,10 @@ var SvgIcon = (props) => {
270
307
  }
271
308
  );
272
309
  };
273
- SvgIcon.states = states2;
274
- SvgIcon.options = options2;
310
+ SvgIcon.states = states3;
311
+ SvgIcon.options = options3;
275
312
  SvgIcon.className = SVGICON_CLASSNAME;
276
- SvgIcon.defaultProps = defaultProps2;
313
+ SvgIcon.defaultProps = defaultProps3;
277
314
  var svg_icon_spec_default = SvgIcon;
278
315
 
279
316
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4272,13 +4309,13 @@ var chartChoroplethIcon = {
4272
4309
  };
4273
4310
 
4274
4311
  // src/icon/icon.spec.tsx
4275
- var import_jsx_runtime3 = require("react/jsx-runtime");
4312
+ var import_jsx_runtime4 = require("react/jsx-runtime");
4276
4313
  var snakeToCamel = (str) => str.toLowerCase().replace(
4277
4314
  /([-_][a-z])/g,
4278
4315
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4279
4316
  );
4280
- var states3 = [];
4281
- var options3 = {
4317
+ var states4 = [];
4318
+ var options4 = {
4282
4319
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4283
4320
  themeColor: [
4284
4321
  ThemeColor.base,
@@ -4293,7 +4330,7 @@ var options3 = {
4293
4330
  ThemeColor.dark
4294
4331
  ]
4295
4332
  };
4296
- var defaultProps3 = {
4333
+ var defaultProps4 = {
4297
4334
  viewBox: "0 0 24 24",
4298
4335
  type: "svg"
4299
4336
  };
@@ -4302,78 +4339,45 @@ var Icon = (props) => {
4302
4339
  size,
4303
4340
  themeColor,
4304
4341
  icon,
4305
- type = defaultProps3.type,
4342
+ type = defaultProps4.type,
4306
4343
  rotate,
4307
4344
  flip,
4308
- viewBox = defaultProps3.viewBox,
4345
+ viewBox = defaultProps4.viewBox,
4309
4346
  ...other
4310
4347
  } = props;
4311
4348
  if (!icon) {
4312
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4349
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
4313
4350
  }
4314
4351
  if (type === "svg") {
4315
4352
  if (icon === "none") {
4316
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon, size });
4353
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(svg_icon_spec_default, { ...other, icon, size });
4317
4354
  }
4318
4355
  const iconSVG = snakeToCamel(`${icon}-icon`);
4319
4356
  if (!index_es_exports[iconSVG]) {
4320
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4357
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
4321
4358
  }
4322
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4323
- }
4324
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4325
- };
4326
- Icon.states = states3;
4327
- Icon.options = options3;
4328
- Icon.defaultProps = defaultProps3;
4329
-
4330
- // src/chip/chip-action.tsx
4331
- var import_jsx_runtime4 = require("react/jsx-runtime");
4332
- var CHIPACTION_CLASSNAME = `k-chip-action`;
4333
- var ChipAction = (props) => {
4334
- const {
4335
- type,
4336
- ...other
4337
- } = props;
4338
- let icon;
4339
- switch (type) {
4340
- case "remove" /* REMOVE */:
4341
- icon = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "x-circle", size: "small" });
4342
- break;
4343
- case "more" /* MORE */:
4344
- icon = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "more-vertical", size: "small" });
4345
- break;
4346
- default:
4347
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: type, size: "small" });
4359
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4348
4360
  }
4349
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4350
- "span",
4351
- {
4352
- ...other,
4353
- className: classNames(
4354
- props.className,
4355
- CHIPACTION_CLASSNAME,
4356
- `k-chip-${type}-action`
4357
- ),
4358
- children: icon
4359
- }
4360
- );
4361
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4361
4362
  };
4363
+ Icon.states = states4;
4364
+ Icon.options = options4;
4365
+ Icon.defaultProps = defaultProps4;
4362
4366
 
4363
- // src/avatar/avatar.spec.tsx
4367
+ // src/button/button.spec.tsx
4364
4368
  var import_jsx_runtime5 = require("react/jsx-runtime");
4365
- var AVATAR_CLASSNAME = `k-avatar`;
4366
- var states4 = [
4369
+ var BUTTON_CLASSNAME = `k-button`;
4370
+ var states5 = [
4367
4371
  States.hover,
4368
4372
  States.focus,
4369
4373
  States.active,
4370
4374
  States.selected,
4371
4375
  States.disabled
4372
4376
  ];
4373
- var options4 = {
4377
+ var options5 = {
4374
4378
  size: [Size.small, Size.medium, Size.large],
4375
4379
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4376
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
4380
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4377
4381
  themeColor: [
4378
4382
  ThemeColor.base,
4379
4383
  ThemeColor.primary,
@@ -4388,822 +4392,446 @@ var options4 = {
4388
4392
  ThemeColor.inverse
4389
4393
  ]
4390
4394
  };
4391
- var defaultProps4 = {
4392
- type: "text" /* TEXT */,
4393
- size: Size.medium,
4394
- rounded: Roundness.full,
4395
- fillMode: FillMode.solid,
4396
- themeColor: ThemeColor.primary,
4397
- border: false
4398
- };
4399
- var Avatar = (props) => {
4400
- const {
4401
- size = defaultProps4.size,
4402
- rounded = defaultProps4.rounded,
4403
- fillMode = defaultProps4.fillMode,
4404
- themeColor = defaultProps4.themeColor,
4405
- type = defaultProps4.type,
4406
- border = defaultProps4.border,
4407
- ...other
4408
- } = props;
4409
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
4410
- "div",
4411
- {
4412
- ...other,
4413
- className: classNames(
4414
- props.className,
4415
- AVATAR_CLASSNAME,
4416
- optionClassNames(AVATAR_CLASSNAME, {
4417
- size,
4418
- rounded,
4419
- fillMode,
4420
- themeColor
4421
- }),
4422
- {
4423
- [`${AVATAR_CLASSNAME}-bordered`]: border
4424
- }
4425
- ),
4426
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
4427
- }
4428
- );
4429
- };
4430
- Avatar.states = states4;
4431
- Avatar.options = options4;
4432
- Avatar.className = AVATAR_CLASSNAME;
4433
- Avatar.defaultProps = defaultProps4;
4434
-
4435
- // src/avatar/templates/avatar-icon.tsx
4436
- var import_jsx_runtime6 = require("react/jsx-runtime");
4437
-
4438
- // src/avatar/templates/avatar-text.tsx
4439
- var import_jsx_runtime7 = require("react/jsx-runtime");
4440
-
4441
- // src/avatar/templates/avatar-image.tsx
4442
- var import_jsx_runtime8 = require("react/jsx-runtime");
4443
-
4444
- // src/chip/chip.spec.tsx
4445
- var import_jsx_runtime9 = require("react/jsx-runtime");
4446
- var CHIP_CLASSNAME = `k-chip`;
4447
- var states5 = [
4448
- States.hover,
4449
- States.focus,
4450
- States.active,
4451
- States.selected,
4452
- States.disabled
4453
- ];
4454
- var options5 = {
4455
- size: [Size.small, Size.medium, Size.large],
4456
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4457
- fillMode: [FillMode.solid, FillMode.outline],
4458
- themeColor: [
4459
- ThemeColor.base,
4460
- ThemeColor.success,
4461
- ThemeColor.warning,
4462
- ThemeColor.error,
4463
- ThemeColor.info
4464
- ]
4465
- };
4466
4395
  var defaultProps5 = {
4467
4396
  size: Size.medium,
4468
4397
  rounded: Roundness.medium,
4469
4398
  fillMode: FillMode.solid,
4470
- themeColor: ThemeColor.base
4399
+ themeColor: ThemeColor.base,
4400
+ showArrow: false,
4401
+ arrowIconName: "caret-alt-down"
4471
4402
  };
4472
- var Chip = (props) => {
4403
+ var Button = (props) => {
4473
4404
  const {
4474
4405
  size = defaultProps5.size,
4475
4406
  rounded = defaultProps5.rounded,
4476
4407
  fillMode = defaultProps5.fillMode,
4477
4408
  themeColor = defaultProps5.themeColor,
4478
- text,
4479
- icon,
4480
- actions,
4481
- showAvatar,
4482
4409
  hover,
4483
4410
  focus,
4484
4411
  active,
4485
4412
  selected,
4486
4413
  disabled,
4414
+ icon,
4415
+ text,
4416
+ iconClassName,
4417
+ showArrow = defaultProps5.showArrow,
4418
+ arrowIconName = defaultProps5.arrowIconName,
4487
4419
  ...other
4488
4420
  } = props;
4489
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4490
- "div",
4421
+ const hasIcon = icon !== void 0;
4422
+ const hasChildren = props.children !== void 0;
4423
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
4424
+ "button",
4491
4425
  {
4492
4426
  ...other,
4493
4427
  className: classNames(
4494
4428
  props.className,
4495
- CHIP_CLASSNAME,
4496
- optionClassNames(CHIP_CLASSNAME, {
4429
+ BUTTON_CLASSNAME,
4430
+ optionClassNames(BUTTON_CLASSNAME, {
4497
4431
  size,
4498
4432
  rounded,
4499
4433
  fillMode,
4500
4434
  themeColor
4501
4435
  }),
4502
- stateClassNames(CHIP_CLASSNAME, {
4436
+ stateClassNames(BUTTON_CLASSNAME, {
4503
4437
  hover,
4504
4438
  focus,
4505
4439
  active,
4506
4440
  disabled,
4507
4441
  selected
4508
- })
4442
+ }),
4443
+ {
4444
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4445
+ }
4509
4446
  ),
4510
4447
  children: [
4511
- icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: "k-chip-icon", icon, size: "small" }),
4512
- showAvatar && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("img", { src: "/packages/html/assets/avatar.jpg" }) }),
4513
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
4514
- actions && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-chip-actions", children: actions })
4448
+ icon && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
4449
+ Icon,
4450
+ {
4451
+ className: classNames(iconClassName, "k-button-icon"),
4452
+ icon
4453
+ }
4454
+ ),
4455
+ text ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
4456
+ text && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-button-text", children: text }),
4457
+ props.children
4458
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-button-text", children: props.children }),
4459
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon: arrowIconName }) })
4515
4460
  ]
4516
4461
  }
4517
4462
  );
4518
4463
  };
4519
- Chip.states = states5;
4520
- Chip.options = options5;
4521
- Chip.className = CHIP_CLASSNAME;
4522
- Chip.defaultProps = defaultProps5;
4523
-
4524
- // src/chip/chip-list.spec.tsx
4525
- var import_jsx_runtime10 = require("react/jsx-runtime");
4526
- var CHIPLIST_CLASSNAME = `k-chip-list`;
4527
- var states6 = [];
4528
- var options6 = {
4529
- size: [Size.small, Size.medium, Size.large]
4530
- };
4531
- var defaultProps6 = {
4532
- size: Size.medium
4533
- };
4534
- var ChipList = (props) => {
4535
- const {
4536
- size = defaultProps6.size,
4537
- ...other
4538
- } = props;
4539
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4540
- "div",
4541
- {
4542
- ...other,
4543
- className: classNames(
4544
- props.className,
4545
- CHIPLIST_CLASSNAME,
4546
- optionClassNames(CHIPLIST_CLASSNAME, {
4547
- size
4548
- })
4549
- ),
4550
- children: props.children
4551
- }
4552
- );
4553
- };
4554
- ChipList.states = states6;
4555
- ChipList.options = options6;
4556
- ChipList.className = CHIPLIST_CLASSNAME;
4557
- ChipList.defaultProps = defaultProps6;
4558
-
4559
- // src/chip/templates/chip-avatar.tsx
4560
- var import_jsx_runtime11 = require("react/jsx-runtime");
4464
+ Button.states = states5;
4465
+ Button.options = options5;
4466
+ Button.className = BUTTON_CLASSNAME;
4467
+ Button.defaultProps = defaultProps5;
4561
4468
 
4562
- // src/chip/templates/chip-icon.tsx
4563
- var import_jsx_runtime12 = require("react/jsx-runtime");
4469
+ // src/button/templates/icon-button.tsx
4470
+ var import_jsx_runtime6 = require("react/jsx-runtime");
4564
4471
 
4565
- // src/chip/templates/chip-normal.tsx
4566
- var import_jsx_runtime13 = require("react/jsx-runtime");
4472
+ // src/button/templates/icon-text-button.tsx
4473
+ var import_jsx_runtime7 = require("react/jsx-runtime");
4567
4474
 
4568
- // src/chip/templates/chip-removable.tsx
4569
- var import_jsx_runtime14 = require("react/jsx-runtime");
4475
+ // src/button/templates/text-button.tsx
4476
+ var import_jsx_runtime8 = require("react/jsx-runtime");
4570
4477
 
4571
- // src/input/input.spec.tsx
4572
- var import_jsx_runtime15 = require("react/jsx-runtime");
4573
- var INPUT_CLASSNAME = `k-input`;
4574
- var states7 = [
4575
- States.hover,
4576
- States.focus,
4577
- States.valid,
4578
- States.invalid,
4579
- States.required,
4580
- States.disabled,
4581
- States.loading,
4582
- States.readonly
4478
+ // src/upload/upload-dropzone.tsx
4479
+ var import_jsx_runtime9 = require("react/jsx-runtime");
4480
+ var UPLOADDROPZONE_CLASSNAME = `k-upload-dropzone`;
4481
+ var states6 = [
4482
+ States.hover
4583
4483
  ];
4584
- var options7 = {
4585
- size: [Size.small, Size.medium, Size.large],
4586
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4587
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4588
- };
4589
- var defaultProps7 = {
4590
- size: Size.medium,
4591
- rounded: Size.medium,
4592
- fillMode: FillMode.solid
4593
- };
4594
- var Input = (props) => {
4484
+ var UploadDropzone = (props) => {
4595
4485
  const {
4596
4486
  hover,
4597
- focus,
4598
- disabled,
4599
- invalid,
4600
- valid,
4601
- loading,
4602
- readonly,
4603
- size = defaultProps7.size,
4604
- rounded = defaultProps7.rounded,
4605
- fillMode = defaultProps7.fillMode,
4487
+ status,
4606
4488
  ...other
4607
4489
  } = props;
4608
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4609
- "span",
4490
+ let statusMsg = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {});
4491
+ switch (status) {
4492
+ case "uploading":
4493
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
4494
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { icon: "upload" }),
4495
+ "Uploading..."
4496
+ ] });
4497
+ break;
4498
+ case "done":
4499
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
4500
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { icon: "check" }),
4501
+ "Done"
4502
+ ] });
4503
+ break;
4504
+ case "failed":
4505
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
4506
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { icon: "exclamation-circle" }),
4507
+ "Done"
4508
+ ] });
4509
+ break;
4510
+ default:
4511
+ statusMsg = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {});
4512
+ break;
4513
+ }
4514
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4515
+ "div",
4610
4516
  {
4611
4517
  ...other,
4612
4518
  className: classNames(
4613
4519
  props.className,
4614
- INPUT_CLASSNAME,
4615
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4616
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4617
- )
4520
+ UPLOADDROPZONE_CLASSNAME,
4521
+ "k-dropzone",
4522
+ stateClassNames(UPLOADDROPZONE_CLASSNAME, {
4523
+ hover
4524
+ })
4525
+ ),
4526
+ children: [
4527
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "k-upload-button-wrap", children: [
4528
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Button, { className: "k-upload-button", children: "Select files..." }),
4529
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("input", { id: "upload-input", className: "k-hidden" })
4530
+ ] }),
4531
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4532
+ "span",
4533
+ {
4534
+ className: classNames(
4535
+ "k-dropzone-hint",
4536
+ {
4537
+ "k-hidden": status !== "upload"
4538
+ }
4539
+ ),
4540
+ children: "Drop files here to upload"
4541
+ }
4542
+ ),
4543
+ status !== "upload" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-upload-status", children: statusMsg })
4544
+ ]
4618
4545
  }
4619
4546
  );
4620
4547
  };
4621
- Input.states = states7;
4622
- Input.options = options7;
4623
- Input.className = INPUT_CLASSNAME;
4624
- Input.defaultProps = defaultProps7;
4625
4548
 
4626
- // src/input/picker.spec.tsx
4627
- var import_jsx_runtime16 = require("react/jsx-runtime");
4628
- var PICKER_CLASSNAME = `k-picker`;
4629
- var pickerStates = [
4549
+ // src/upload/upload.spec.tsx
4550
+ var import_jsx_runtime10 = require("react/jsx-runtime");
4551
+ var UPLOAD_CLASSNAME = `k-upload`;
4552
+ var states7 = [
4630
4553
  States.hover,
4631
- States.focus,
4632
- States.valid,
4633
- States.invalid,
4634
- States.required,
4635
- States.disabled,
4636
- States.loading,
4637
- States.readonly
4554
+ States.disabled
4638
4555
  ];
4639
- var pickerOptions = {
4640
- size: [Size.small, Size.medium, Size.large],
4641
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4642
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4643
- };
4644
- var defaultProps8 = {
4645
- size: Size.medium,
4646
- rounded: Roundness.medium,
4647
- fillMode: FillMode.solid
4648
- };
4649
- var Picker = (props) => {
4556
+ var options6 = {};
4557
+ var defaultProps6 = {};
4558
+ var Upload = (props) => {
4650
4559
  const {
4560
+ async,
4561
+ empty,
4562
+ actions,
4651
4563
  hover,
4652
- focus,
4564
+ status,
4653
4565
  disabled,
4654
- invalid,
4655
- valid,
4656
- loading,
4657
- readonly,
4658
- size = defaultProps8.size,
4659
- rounded = defaultProps8.rounded,
4660
- fillMode = defaultProps8.fillMode,
4661
4566
  ...other
4662
4567
  } = props;
4663
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4664
- "span",
4568
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
4569
+ "div",
4665
4570
  {
4666
4571
  ...other,
4667
4572
  className: classNames(
4668
4573
  props.className,
4669
- PICKER_CLASSNAME,
4670
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4671
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4574
+ UPLOAD_CLASSNAME,
4575
+ stateClassNames(UPLOAD_CLASSNAME, {
4576
+ disabled
4577
+ }),
4578
+ {
4579
+ "k-upload-async": async,
4580
+ "k-upload-empty": empty
4581
+ }
4672
4582
  ),
4673
- children: props.children
4583
+ children: [
4584
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(UploadDropzone, { status, hover }),
4585
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "k-upload-files", children: props.children }),
4586
+ actions && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(action_buttons_spec_default, { alignment: "end", orientation: "horizontal", children: [
4587
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { className: "k-clear-selected", children: "Clear" }),
4588
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Button, { themeColor: "primary", className: "k-upload-selected", children: "Upload" })
4589
+ ] })
4590
+ ]
4674
4591
  }
4675
4592
  );
4676
4593
  };
4677
- Picker.states = pickerStates;
4678
- Picker.options = pickerOptions;
4679
- Picker.className = PICKER_CLASSNAME;
4680
- Picker.defaultProps = defaultProps8;
4594
+ Upload.states = states7;
4595
+ Upload.options = options6;
4596
+ Upload.className = UPLOAD_CLASSNAME;
4597
+ Upload.defaultProps = defaultProps6;
4681
4598
 
4682
- // src/input/input-clear-value.tsx
4683
- var import_jsx_runtime17 = require("react/jsx-runtime");
4684
- var className = `k-clear-value`;
4599
+ // src/progressbar/progressbar.spec.tsx
4600
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4601
+ var PROGRESSBAR_CLASSNAME = `k-progressbar`;
4685
4602
  var states8 = [
4686
4603
  States.disabled,
4687
- States.loading,
4688
- States.readonly
4604
+ States.indeterminate
4689
4605
  ];
4690
- var options8 = {};
4691
- var InputClearValue = (props) => {
4606
+ var options7 = {};
4607
+ var defaultProps7 = {
4608
+ indeterminate: false,
4609
+ label: true,
4610
+ labelPosition: "start",
4611
+ orientation: "horizontal",
4612
+ reverse: false,
4613
+ value: "0"
4614
+ };
4615
+ var ProgressBar = (props) => {
4692
4616
  const {
4693
4617
  disabled,
4694
- loading,
4695
- readonly,
4696
- value
4697
- } = props;
4698
- if (disabled || readonly || loading || !value) {
4699
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
4700
- }
4701
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { icon: "x" }) });
4702
- };
4703
- InputClearValue.states = states8;
4704
- InputClearValue.options = options8;
4705
- InputClearValue.className = className;
4706
-
4707
- // src/input/input-inner-input.tsx
4708
- var import_jsx_runtime18 = require("react/jsx-runtime");
4709
- var className2 = `k-input-inner`;
4710
- var states9 = [];
4711
- var options9 = {};
4712
- var defaultProps9 = {
4713
- type: "text",
4714
- autocomplete: "off",
4715
- value: "",
4716
- placeholder: ""
4717
- };
4718
- var InputInnerInput = (props) => {
4719
- const {
4720
- value = defaultProps9.value,
4721
- type = defaultProps9.type,
4722
- placeholder = defaultProps9.placeholder,
4723
- autocomplete = defaultProps9.autocomplete,
4618
+ height,
4619
+ indeterminate = defaultProps7.indeterminate,
4620
+ label = defaultProps7.label,
4621
+ labelPosition = defaultProps7.labelPosition,
4622
+ orientation = defaultProps7.orientation,
4623
+ reverse = defaultProps7.reverse,
4624
+ value = defaultProps7.value,
4625
+ width,
4724
4626
  ...other
4725
4627
  } = props;
4726
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4727
- "input",
4728
- {
4729
- ...other,
4730
- type,
4731
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4732
- placeholder,
4733
- autoComplete: autocomplete,
4734
- defaultValue: value
4735
- }
4736
- );
4737
- };
4738
- InputInnerInput.states = states9;
4739
- InputInnerInput.options = options9;
4740
- InputInnerInput.className = className2;
4741
-
4742
- // src/input/input-inner-span.tsx
4743
- var import_jsx_runtime19 = require("react/jsx-runtime");
4744
- var className3 = `k-input-inner`;
4745
- var states10 = [];
4746
- var options10 = {};
4747
- var InputInnerSpan = (props) => {
4748
- const {
4749
- value,
4750
- placeholder,
4751
- showValue,
4752
- valueIcon,
4753
- valueIconName,
4754
- ...other
4755
- } = props;
4756
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4757
- "span",
4628
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
4629
+ "div",
4758
4630
  {
4759
4631
  ...other,
4760
- className: classNames(props.className, className3, optionClassNames(className3, props)),
4632
+ className: classNames(
4633
+ props.className,
4634
+ PROGRESSBAR_CLASSNAME,
4635
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
4636
+ disabled
4637
+ }),
4638
+ {
4639
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
4640
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
4641
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
4642
+ }
4643
+ ),
4644
+ style: orientation === "horizontal" ? { "--kendo-progressbar-value": value, height } : { "--kendo-progressbar-value": value, width },
4761
4645
  children: [
4762
- valueIcon,
4763
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4764
- showValue && !value && placeholder,
4765
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-input-value-text", children: value })
4646
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: classNames(
4647
+ "k-progress-status-wrap",
4648
+ {
4649
+ [`k-progress-${labelPosition}`]: labelPosition && !indeterminate
4650
+ }
4651
+ ), children: label && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "k-progress-status", children: [
4652
+ value,
4653
+ "%"
4654
+ ] }) }),
4655
+ !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "k-progressbar-value k-selected", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: classNames(
4656
+ "k-progress-status-wrap",
4657
+ {
4658
+ [`k-progress-${labelPosition}`]: labelPosition
4659
+ }
4660
+ ), children: label && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { className: "k-progress-status", children: [
4661
+ props.value,
4662
+ "%"
4663
+ ] }) }) })
4766
4664
  ]
4767
4665
  }
4768
4666
  );
4769
4667
  };
4770
- InputInnerSpan.states = states10;
4771
- InputInnerSpan.options = options10;
4772
- InputInnerSpan.className = className3;
4668
+ ProgressBar.states = states8;
4669
+ ProgressBar.options = options7;
4670
+ ProgressBar.className = PROGRESSBAR_CLASSNAME;
4671
+ ProgressBar.defaultProps = defaultProps7;
4773
4672
 
4774
- // src/input/input-inner-textarea.tsx
4775
- var import_jsx_runtime20 = require("react/jsx-runtime");
4776
- var defaultProps10 = {
4777
- value: "",
4778
- placeholder: ""
4779
- };
4780
- var className4 = `k-input-inner`;
4781
- var states11 = [];
4782
- var options11 = {};
4783
- var InputInnerTextarea = (props) => {
4784
- const {
4785
- value = defaultProps10.value,
4786
- placeholder = defaultProps10.placeholder,
4787
- rows,
4788
- ...other
4789
- } = props;
4790
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4791
- "textarea",
4792
- {
4793
- ...other,
4794
- className: classNames(props.className, className4, optionClassNames(className4, props)),
4795
- placeholder,
4796
- rows,
4797
- children: value
4798
- }
4799
- );
4800
- };
4801
- InputInnerTextarea.states = states11;
4802
- InputInnerTextarea.options = options11;
4803
- InputInnerTextarea.className = className4;
4804
-
4805
- // src/input/input-loading-icon.tsx
4806
- var import_jsx_runtime21 = require("react/jsx-runtime");
4807
- var className5 = `k-input-loading-icon`;
4808
- var states12 = [
4809
- States.disabled,
4810
- States.loading
4811
- ];
4812
- var InputLoadingIcon = (props) => {
4813
- const {
4814
- disabled,
4815
- loading
4816
- } = props;
4817
- if (disabled || !loading) {
4818
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {});
4819
- }
4820
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4821
- };
4822
-
4823
- // src/input/input-validation-icon.tsx
4824
- var import_jsx_runtime22 = require("react/jsx-runtime");
4825
- var className6 = `k-input-validation-icon`;
4826
- var states13 = [
4827
- States.valid,
4828
- States.invalid,
4673
+ // src/progressbar/chunk-progressbar.spec.tsx
4674
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4675
+ var CHUNKPROGRESSBAR_CLASSNAME = `k-chunk-progressbar`;
4676
+ var isSelected = (progress, index) => index <= progress - 1 ? true : false;
4677
+ var states9 = [
4829
4678
  States.disabled,
4830
- States.loading
4679
+ States.indeterminate
4831
4680
  ];
4832
- var options12 = {};
4833
- var InputValidationIcon = (props) => {
4834
- const {
4835
- valid,
4836
- invalid,
4837
- disabled,
4838
- loading
4839
- } = props;
4840
- const iconName = invalid ? "exclamation-circle" : "check";
4841
- const renderValidationIcon = Boolean(valid || invalid);
4842
- if (disabled || loading || !renderValidationIcon) {
4843
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, {});
4844
- }
4845
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { className: classNames(className6), icon: iconName });
4846
- };
4847
- InputValidationIcon.states = states13;
4848
- InputValidationIcon.options = options12;
4849
- InputValidationIcon.className = className6;
4850
-
4851
- // src/input/input-prefix.tsx
4852
- var import_jsx_runtime23 = require("react/jsx-runtime");
4853
- var className7 = `k-input-prefix`;
4854
- var InputPrefix = (props) => {
4855
- if (!props.children) {
4856
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {});
4857
- }
4858
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4859
- };
4860
-
4861
- // src/input/input-suffix.tsx
4862
- var import_jsx_runtime24 = require("react/jsx-runtime");
4863
- var className8 = `k-input-suffix`;
4864
- var InputSuffix = (props) => {
4865
- if (!props.children) {
4866
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {});
4867
- }
4868
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4869
- };
4870
-
4871
- // src/input/input-separator.tsx
4872
- var import_jsx_runtime25 = require("react/jsx-runtime");
4873
-
4874
- // src/button/button.spec.tsx
4875
- var import_jsx_runtime26 = require("react/jsx-runtime");
4876
- var BUTTON_CLASSNAME = `k-button`;
4877
- var states14 = [
4878
- States.hover,
4879
- States.focus,
4880
- States.active,
4881
- States.selected,
4882
- States.disabled
4883
- ];
4884
- var options13 = {
4885
- size: [Size.small, Size.medium, Size.large],
4886
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4887
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4888
- themeColor: [
4889
- ThemeColor.base,
4890
- ThemeColor.primary,
4891
- ThemeColor.secondary,
4892
- ThemeColor.tertiary,
4893
- ThemeColor.success,
4894
- ThemeColor.warning,
4895
- ThemeColor.error,
4896
- ThemeColor.info,
4897
- ThemeColor.light,
4898
- ThemeColor.dark,
4899
- ThemeColor.inverse
4900
- ]
4901
- };
4902
- var defaultProps11 = {
4903
- size: Size.medium,
4904
- rounded: Roundness.medium,
4905
- fillMode: FillMode.solid,
4906
- themeColor: ThemeColor.base,
4907
- showArrow: false,
4908
- arrowIconName: "caret-alt-down"
4681
+ var options8 = {};
4682
+ var defaultProps8 = {
4683
+ chunkCount: 5,
4684
+ orientation: "horizontal",
4685
+ progress: 0
4909
4686
  };
4910
- var Button = (props) => {
4687
+ var ChunkProgressBar = (props) => {
4911
4688
  const {
4912
- size = defaultProps11.size,
4913
- rounded = defaultProps11.rounded,
4914
- fillMode = defaultProps11.fillMode,
4915
- themeColor = defaultProps11.themeColor,
4916
- hover,
4917
- focus,
4918
- active,
4919
- selected,
4920
4689
  disabled,
4921
- icon,
4922
- text,
4923
- iconClassName,
4924
- showArrow = defaultProps11.showArrow,
4925
- arrowIconName = defaultProps11.arrowIconName,
4690
+ chunkCount = defaultProps8.chunkCount,
4691
+ indeterminate,
4692
+ orientation = defaultProps8.orientation,
4693
+ progress = defaultProps8.progress,
4694
+ reverse,
4926
4695
  ...other
4927
4696
  } = props;
4928
- const hasIcon = icon !== void 0;
4929
- const hasChildren = props.children !== void 0;
4930
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4931
- "button",
4697
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4698
+ "div",
4932
4699
  {
4933
4700
  ...other,
4934
4701
  className: classNames(
4935
4702
  props.className,
4936
- BUTTON_CLASSNAME,
4937
- optionClassNames(BUTTON_CLASSNAME, {
4938
- size,
4939
- rounded,
4940
- fillMode,
4941
- themeColor
4942
- }),
4943
- stateClassNames(BUTTON_CLASSNAME, {
4944
- hover,
4945
- focus,
4946
- active,
4947
- disabled,
4948
- selected
4703
+ PROGRESSBAR_CLASSNAME,
4704
+ CHUNKPROGRESSBAR_CLASSNAME,
4705
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
4706
+ disabled
4949
4707
  }),
4950
4708
  {
4951
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4709
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
4710
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
4711
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
4952
4712
  }
4953
4713
  ),
4954
- children: [
4955
- icon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4956
- Icon,
4714
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("ul", { className: "k-progressbar-chunks k-reset", children: [...Array(chunkCount)].map(
4715
+ (_el, i) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("li", { className: classNames(
4716
+ "k-progressbar-chunk",
4957
4717
  {
4958
- className: classNames(iconClassName, "k-button-icon"),
4959
- icon
4718
+ "k-first": i === 0,
4719
+ "k-last": i === [...Array(chunkCount)].length - 1,
4720
+ "k-selected": isSelected(progress, i)
4960
4721
  }
4961
- ),
4962
- text ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
4963
- text && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-button-text", children: text }),
4964
- props.children
4965
- ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-button-text", children: props.children }),
4966
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { icon: arrowIconName }) })
4967
- ]
4722
+ ) }, i)
4723
+ ) })
4968
4724
  }
4969
4725
  );
4970
4726
  };
4971
- Button.states = states14;
4972
- Button.options = options13;
4973
- Button.className = BUTTON_CLASSNAME;
4974
- Button.defaultProps = defaultProps11;
4975
-
4976
- // src/button/templates/icon-button.tsx
4977
- var import_jsx_runtime27 = require("react/jsx-runtime");
4727
+ ChunkProgressBar.states = states9;
4728
+ ChunkProgressBar.options = options8;
4729
+ ChunkProgressBar.className = CHUNKPROGRESSBAR_CLASSNAME;
4730
+ ChunkProgressBar.defaultProps = defaultProps8;
4978
4731
 
4979
- // src/button/templates/icon-text-button.tsx
4980
- var import_jsx_runtime28 = require("react/jsx-runtime");
4732
+ // src/progressbar/templates/progressbar-normal.tsx
4733
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4981
4734
 
4982
- // src/button/templates/text-button.tsx
4983
- var import_jsx_runtime29 = require("react/jsx-runtime");
4735
+ // src/progressbar/templates/chunk-progressbar-normal.tsx
4736
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4984
4737
 
4985
- // src/animation-container/animation-container.spec.tsx
4986
- var import_jsx_runtime30 = require("react/jsx-runtime");
4987
- var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4988
- var states15 = [];
4989
- var options14 = {};
4990
- var defaultProps12 = {
4991
- positionMode: "absolute"
4992
- };
4993
- var AnimationContainer = (props) => {
4738
+ // src/upload/upload-file-info.tsx
4739
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4740
+ var UPLOADFILEINFO_CLASSNAME = `k-file-info`;
4741
+ var UploadFileInfo = (props) => {
4994
4742
  const {
4995
- positionMode,
4996
- animationStyle,
4997
- offset,
4743
+ name,
4744
+ size,
4745
+ validationMsg,
4998
4746
  ...other
4999
4747
  } = props;
5000
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4748
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
5001
4749
  "div",
5002
4750
  {
5003
4751
  ...other,
5004
- style: { ...offset, ...props.style },
5005
4752
  className: classNames(
5006
- ANIMATION_CONTAINER_CLASSNAME,
5007
- "k-animation-container-shown",
5008
- {
5009
- ["k-animation-container-fixed"]: positionMode === "fixed"
5010
- }
4753
+ props.className,
4754
+ UPLOADFILEINFO_CLASSNAME
5011
4755
  ),
5012
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4756
+ children: [
4757
+ name && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "k-file-name", children: name }),
4758
+ size && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "k-file-size", children: size }),
4759
+ validationMsg && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "k-file-validation-message", children: validationMsg })
4760
+ ]
5013
4761
  }
5014
4762
  );
5015
4763
  };
5016
- AnimationContainer.states = states15;
5017
- AnimationContainer.options = options14;
5018
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5019
- AnimationContainer.defaultProps = defaultProps12;
5020
4764
 
5021
- // src/popup/popup.spec.tsx
5022
- var import_jsx_runtime31 = require("react/jsx-runtime");
5023
- var POPUP_CLASSNAME = `k-popup`;
5024
- var states16 = [];
5025
- var options15 = {};
5026
- var defaultProps13 = {
5027
- positionMode: "absolute"
5028
- };
5029
- var Popup = (props) => {
4765
+ // src/upload/upload-file.tsx
4766
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4767
+ var UPLOADFILE_CLASSNAME = `k-file`;
4768
+ var UploadFile = (props) => {
5030
4769
  const {
5031
- offset,
5032
- positionMode,
4770
+ status,
4771
+ progress,
4772
+ name,
4773
+ icon,
4774
+ size,
4775
+ state,
4776
+ validationMsg,
5033
4777
  ...other
5034
4778
  } = props;
5035
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
5036
- AnimationContainer,
4779
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4780
+ "li",
5037
4781
  {
5038
- positionMode,
5039
- offset,
5040
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4782
+ ...other,
4783
+ className: classNames(
4784
+ props.className,
4785
+ UPLOADFILE_CLASSNAME,
4786
+ {
4787
+ [`k-file-${status}`]: status
4788
+ }
4789
+ ),
4790
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "k-file-single", children: [
4791
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ProgressBar, { className: classNames(
4792
+ {
4793
+ "k-hidden": status !== "progress"
4794
+ }
4795
+ ), value: progress, label: false }),
4796
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "k-file-icon-wrapper", children: [
4797
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { className: "k-file-icon", icon, size: "xxlarge" }),
4798
+ state && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "k-file-state", children: state })
4799
+ ] }),
4800
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(UploadFileInfo, { name, size, validationMsg }),
4801
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "k-upload-actions", children: status === "progress" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
4802
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "k-upload-pct", children: [
4803
+ progress,
4804
+ "%"
4805
+ ] }),
4806
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { icon: "pause-sm", fillMode: "flat", className: "k-upload-action" }),
4807
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { icon: "cancel", fillMode: "flat", className: "k-upload-action" })
4808
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { icon: "x", fillMode: "flat", className: "k-upload-action" }) })
4809
+ ] })
5041
4810
  }
5042
4811
  );
5043
4812
  };
5044
- Popup.states = states16;
5045
- Popup.options = options15;
5046
- Popup.className = POPUP_CLASSNAME;
5047
- Popup.defaultProps = defaultProps13;
5048
4813
 
5049
- // src/multiselecttree/multiselecttree.spec.tsx
5050
- var import_jsx_runtime32 = require("react/jsx-runtime");
5051
- var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5052
- var states17 = [
5053
- States.hover,
5054
- States.focus,
5055
- States.valid,
5056
- States.invalid,
5057
- States.required,
5058
- States.disabled,
5059
- States.loading,
5060
- States.readonly
5061
- ];
5062
- var options16 = {
5063
- size: [Size.small, Size.medium, Size.large],
5064
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5065
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5066
- };
5067
- var defaultProps14 = {
5068
- size: Input.defaultProps.size,
5069
- rounded: Input.defaultProps.rounded,
5070
- fillMode: Input.defaultProps.fillMode
5071
- };
5072
- var MultiSelectTree = (props) => {
5073
- const {
5074
- prefix,
5075
- suffix,
5076
- placeholder,
5077
- tags,
5078
- popup,
5079
- size,
5080
- rounded,
5081
- fillMode,
5082
- showArrowButton,
5083
- hover,
5084
- focus,
5085
- valid,
5086
- invalid,
5087
- required,
5088
- loading,
5089
- disabled,
5090
- readonly,
5091
- opened,
5092
- dir,
5093
- ...other
5094
- } = props;
5095
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
5096
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5097
- Input,
5098
- {
5099
- ...other,
5100
- dir,
5101
- size,
5102
- rounded,
5103
- fillMode,
5104
- hover,
5105
- focus,
5106
- valid,
5107
- invalid,
5108
- required,
5109
- loading,
5110
- disabled,
5111
- readonly,
5112
- className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5113
- children: [
5114
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputPrefix, { children: prefix }),
5115
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: tags }) }),
5116
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-input-inner", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-input-value-text", children: placeholder }) }),
5117
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5118
- InputValidationIcon,
5119
- {
5120
- valid,
5121
- invalid,
5122
- loading,
5123
- disabled
5124
- }
5125
- ),
5126
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5127
- InputLoadingIcon,
5128
- {
5129
- loading,
5130
- disabled
5131
- }
5132
- ),
5133
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5134
- InputClearValue,
5135
- {
5136
- loading,
5137
- disabled,
5138
- readonly,
5139
- value: tags ? "value" : ""
5140
- }
5141
- ),
5142
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputSuffix, { children: suffix }),
5143
- showArrowButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5144
- Button,
5145
- {
5146
- className: "k-input-button",
5147
- icon: "caret-alt-down",
5148
- rounded: null,
5149
- size,
5150
- fillMode
5151
- }
5152
- )
5153
- ]
5154
- }
5155
- ),
5156
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popup, { className: "k-multiselecttree-popup", dir, children: popup })
5157
- ] });
5158
- };
5159
- MultiSelectTree.states = states17;
5160
- MultiSelectTree.options = options16;
5161
- MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5162
- MultiSelectTree.defaultProps = defaultProps14;
4814
+ // src/upload/upload-file-multiple.tsx
4815
+ var import_jsx_runtime17 = require("react/jsx-runtime");
5163
4816
 
5164
- // src/multiselecttree/tests/multiselecttree-size.tsx
5165
- var import_jsx_runtime33 = require("react/jsx-runtime");
5166
- var styles = `
5167
- #test-area {
5168
- max-width: 600px;
5169
- grid-template-columns: 120px repeat(1, 1fr);
5170
- }
5171
- `;
5172
- var multiselecttree_size_default = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
5173
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("style", { children: styles }),
5174
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-3", children: [
5175
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "small" }),
5176
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5177
- MultiSelectTree,
5178
- {
5179
- size: "small",
5180
- tags: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
5181
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { text: "Chip Text", size: "small", actions: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChipAction, { type: "remove" }) }),
5182
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { text: "Chip Text", size: "small", actions: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChipAction, { type: "remove" }) })
5183
- ] })
5184
- }
5185
- ),
5186
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "medium" }),
5187
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5188
- MultiSelectTree,
5189
- {
5190
- size: "medium",
5191
- tags: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
5192
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { text: "Chip Text", size: "medium", actions: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChipAction, { type: "remove" }) }),
5193
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { text: "Chip Text", size: "medium", actions: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChipAction, { type: "remove" }) })
5194
- ] })
5195
- }
5196
- ),
5197
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "large" }),
5198
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5199
- MultiSelectTree,
5200
- {
5201
- size: "large",
5202
- tags: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
5203
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { text: "Chip Text", size: "large", actions: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChipAction, { type: "remove" }) }),
5204
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Chip, { text: "Chip Text", size: "large", actions: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChipAction, { type: "remove" }) })
5205
- ] })
5206
- }
5207
- )
5208
- ] })
5209
- ] });
4817
+ // src/upload/templates/upload-batch.tsx
4818
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4819
+
4820
+ // src/upload/templates/upload-normal.tsx
4821
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4822
+
4823
+ // src/upload/templates/upload-chunk.tsx
4824
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4825
+ var UploadChunk = (props) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4826
+ Upload,
4827
+ {
4828
+ async: true,
4829
+ children: [
4830
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
4831
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UploadFile, { name: "Image_With_Very_Very_Very_Very_Very_Long_Name1.png", icon: "file-image", size: "51.23 KB" }),
4832
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UploadFile, { name: "Image2.jpg", icon: "file-image", size: "106.43 KB" })
4833
+ ] })
4834
+ ],
4835
+ ...props
4836
+ }
4837
+ );