@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
@@ -111,11 +111,48 @@ var States = {
111
111
  "readonly": "readonly"
112
112
  };
113
113
 
114
+ // src/action-buttons/action-buttons.spec.tsx
115
+ import { jsx } from "react/jsx-runtime";
116
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
117
+ var states = [];
118
+ var options = {};
119
+ var defaultProps = {
120
+ alignment: "start",
121
+ orientation: "horizontal"
122
+ };
123
+ var ActionButtons = (props) => {
124
+ const {
125
+ alignment = defaultProps.alignment,
126
+ orientation = defaultProps.orientation,
127
+ ...other
128
+ } = props;
129
+ return /* @__PURE__ */ jsx(
130
+ "div",
131
+ {
132
+ ...other,
133
+ className: classNames(
134
+ ACTIONBUTTONS_CLASSNAME,
135
+ {
136
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
137
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
138
+ },
139
+ props.className
140
+ ),
141
+ children: props.children
142
+ }
143
+ );
144
+ };
145
+ ActionButtons.states = states;
146
+ ActionButtons.options = options;
147
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
148
+ ActionButtons.defaultProps = defaultProps;
149
+ var action_buttons_spec_default = ActionButtons;
150
+
114
151
  // src/icon/font-icon.spec.tsx
115
- import { Fragment, jsx } from "react/jsx-runtime";
152
+ import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
116
153
  var FONTICON_CLASSNAME = `k-icon k-font-icon`;
117
- var states = [];
118
- var options = {
154
+ var states2 = [];
155
+ var options2 = {
119
156
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
120
157
  themeColor: [
121
158
  ThemeColor.base,
@@ -130,7 +167,7 @@ var options = {
130
167
  ThemeColor.dark
131
168
  ]
132
169
  };
133
- var defaultProps = {};
170
+ var defaultProps2 = {};
134
171
  var FontIcon = (props) => {
135
172
  const {
136
173
  size,
@@ -141,9 +178,9 @@ var FontIcon = (props) => {
141
178
  ...other
142
179
  } = props;
143
180
  if (!icon) {
144
- return /* @__PURE__ */ jsx(Fragment, {});
181
+ return /* @__PURE__ */ jsx2(Fragment, {});
145
182
  }
146
- return /* @__PURE__ */ jsx(
183
+ return /* @__PURE__ */ jsx2(
147
184
  "span",
148
185
  {
149
186
  ...other,
@@ -164,17 +201,17 @@ var FontIcon = (props) => {
164
201
  }
165
202
  );
166
203
  };
167
- FontIcon.states = states;
168
- FontIcon.options = options;
204
+ FontIcon.states = states2;
205
+ FontIcon.options = options2;
169
206
  FontIcon.className = FONTICON_CLASSNAME;
170
- FontIcon.defaultProps = defaultProps;
207
+ FontIcon.defaultProps = defaultProps2;
171
208
  var font_icon_spec_default = FontIcon;
172
209
 
173
210
  // src/icon/svg-icon.spec.tsx
174
- import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
211
+ import { Fragment as Fragment2, jsx as jsx3 } from "react/jsx-runtime";
175
212
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
176
- var states2 = [];
177
- var options2 = {
213
+ var states3 = [];
214
+ var options3 = {
178
215
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
179
216
  themeColor: [
180
217
  ThemeColor.base,
@@ -189,7 +226,7 @@ var options2 = {
189
226
  ThemeColor.dark
190
227
  ]
191
228
  };
192
- var defaultProps2 = {
229
+ var defaultProps3 = {
193
230
  viewBox: "0 0 24 24"
194
231
  };
195
232
  var SvgIcon = (props) => {
@@ -198,15 +235,15 @@ var SvgIcon = (props) => {
198
235
  themeColor,
199
236
  rotate,
200
237
  flip,
201
- viewBox = defaultProps2.viewBox,
238
+ viewBox = defaultProps3.viewBox,
202
239
  icon,
203
240
  ...other
204
241
  } = props;
205
242
  if (!icon) {
206
- return /* @__PURE__ */ jsx2(Fragment2, {});
243
+ return /* @__PURE__ */ jsx3(Fragment2, {});
207
244
  }
208
245
  if (icon === "none") {
209
- /* @__PURE__ */ jsx2(
246
+ /* @__PURE__ */ jsx3(
210
247
  "span",
211
248
  {
212
249
  ...other,
@@ -219,7 +256,7 @@ var SvgIcon = (props) => {
219
256
  );
220
257
  }
221
258
  const name = typeof icon === "object" && icon.name && icon.name;
222
- return /* @__PURE__ */ jsx2(
259
+ return /* @__PURE__ */ jsx3(
223
260
  "span",
224
261
  {
225
262
  ...other,
@@ -237,7 +274,7 @@ var SvgIcon = (props) => {
237
274
  "k-flip-v": flip === "v" || flip === "both"
238
275
  }
239
276
  ),
240
- children: /* @__PURE__ */ jsx2(
277
+ children: /* @__PURE__ */ jsx3(
241
278
  "svg",
242
279
  {
243
280
  "aria-hidden": true,
@@ -251,10 +288,10 @@ var SvgIcon = (props) => {
251
288
  }
252
289
  );
253
290
  };
254
- SvgIcon.states = states2;
255
- SvgIcon.options = options2;
291
+ SvgIcon.states = states3;
292
+ SvgIcon.options = options3;
256
293
  SvgIcon.className = SVGICON_CLASSNAME;
257
- SvgIcon.defaultProps = defaultProps2;
294
+ SvgIcon.defaultProps = defaultProps3;
258
295
  var svg_icon_spec_default = SvgIcon;
259
296
 
260
297
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4253,13 +4290,13 @@ var chartChoroplethIcon = {
4253
4290
  };
4254
4291
 
4255
4292
  // src/icon/icon.spec.tsx
4256
- import { Fragment as Fragment3, jsx as jsx3 } from "react/jsx-runtime";
4293
+ import { Fragment as Fragment3, jsx as jsx4 } from "react/jsx-runtime";
4257
4294
  var snakeToCamel = (str) => str.toLowerCase().replace(
4258
4295
  /([-_][a-z])/g,
4259
4296
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4260
4297
  );
4261
- var states3 = [];
4262
- var options3 = {
4298
+ var states4 = [];
4299
+ var options4 = {
4263
4300
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4264
4301
  themeColor: [
4265
4302
  ThemeColor.base,
@@ -4274,7 +4311,7 @@ var options3 = {
4274
4311
  ThemeColor.dark
4275
4312
  ]
4276
4313
  };
4277
- var defaultProps3 = {
4314
+ var defaultProps4 = {
4278
4315
  viewBox: "0 0 24 24",
4279
4316
  type: "svg"
4280
4317
  };
@@ -4283,78 +4320,45 @@ var Icon = (props) => {
4283
4320
  size,
4284
4321
  themeColor,
4285
4322
  icon,
4286
- type = defaultProps3.type,
4323
+ type = defaultProps4.type,
4287
4324
  rotate,
4288
4325
  flip,
4289
- viewBox = defaultProps3.viewBox,
4326
+ viewBox = defaultProps4.viewBox,
4290
4327
  ...other
4291
4328
  } = props;
4292
4329
  if (!icon) {
4293
- return /* @__PURE__ */ jsx3(Fragment3, {});
4330
+ return /* @__PURE__ */ jsx4(Fragment3, {});
4294
4331
  }
4295
4332
  if (type === "svg") {
4296
4333
  if (icon === "none") {
4297
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon, size });
4334
+ return /* @__PURE__ */ jsx4(svg_icon_spec_default, { ...other, icon, size });
4298
4335
  }
4299
4336
  const iconSVG = snakeToCamel(`${icon}-icon`);
4300
4337
  if (!index_es_exports[iconSVG]) {
4301
- return /* @__PURE__ */ jsx3(Fragment3, {});
4338
+ return /* @__PURE__ */ jsx4(Fragment3, {});
4302
4339
  }
4303
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4340
+ return /* @__PURE__ */ jsx4(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4304
4341
  }
4305
- return /* @__PURE__ */ jsx3(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4342
+ return /* @__PURE__ */ jsx4(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4306
4343
  };
4307
- Icon.states = states3;
4308
- Icon.options = options3;
4309
- Icon.defaultProps = defaultProps3;
4344
+ Icon.states = states4;
4345
+ Icon.options = options4;
4346
+ Icon.defaultProps = defaultProps4;
4310
4347
 
4311
- // src/chip/chip-action.tsx
4312
- import { jsx as jsx4 } from "react/jsx-runtime";
4313
- var CHIPACTION_CLASSNAME = `k-chip-action`;
4314
- var ChipAction = (props) => {
4315
- const {
4316
- type,
4317
- ...other
4318
- } = props;
4319
- let icon;
4320
- switch (type) {
4321
- case "remove" /* REMOVE */:
4322
- icon = /* @__PURE__ */ jsx4(Icon, { icon: "x-circle", size: "small" });
4323
- break;
4324
- case "more" /* MORE */:
4325
- icon = /* @__PURE__ */ jsx4(Icon, { icon: "more-vertical", size: "small" });
4326
- break;
4327
- default:
4328
- return /* @__PURE__ */ jsx4(Icon, { icon: type, size: "small" });
4329
- }
4330
- return /* @__PURE__ */ jsx4(
4331
- "span",
4332
- {
4333
- ...other,
4334
- className: classNames(
4335
- props.className,
4336
- CHIPACTION_CLASSNAME,
4337
- `k-chip-${type}-action`
4338
- ),
4339
- children: icon
4340
- }
4341
- );
4342
- };
4343
-
4344
- // src/avatar/avatar.spec.tsx
4345
- import { jsx as jsx5 } from "react/jsx-runtime";
4346
- var AVATAR_CLASSNAME = `k-avatar`;
4347
- var states4 = [
4348
+ // src/button/button.spec.tsx
4349
+ import { Fragment as Fragment4, jsx as jsx5, jsxs } from "react/jsx-runtime";
4350
+ var BUTTON_CLASSNAME = `k-button`;
4351
+ var states5 = [
4348
4352
  States.hover,
4349
4353
  States.focus,
4350
4354
  States.active,
4351
4355
  States.selected,
4352
4356
  States.disabled
4353
4357
  ];
4354
- var options4 = {
4358
+ var options5 = {
4355
4359
  size: [Size.small, Size.medium, Size.large],
4356
4360
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4357
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
4361
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4358
4362
  themeColor: [
4359
4363
  ThemeColor.base,
4360
4364
  ThemeColor.primary,
@@ -4369,825 +4373,449 @@ var options4 = {
4369
4373
  ThemeColor.inverse
4370
4374
  ]
4371
4375
  };
4372
- var defaultProps4 = {
4373
- type: "text" /* TEXT */,
4374
- size: Size.medium,
4375
- rounded: Roundness.full,
4376
- fillMode: FillMode.solid,
4377
- themeColor: ThemeColor.primary,
4378
- border: false
4379
- };
4380
- var Avatar = (props) => {
4381
- const {
4382
- size = defaultProps4.size,
4383
- rounded = defaultProps4.rounded,
4384
- fillMode = defaultProps4.fillMode,
4385
- themeColor = defaultProps4.themeColor,
4386
- type = defaultProps4.type,
4387
- border = defaultProps4.border,
4388
- ...other
4389
- } = props;
4390
- return /* @__PURE__ */ jsx5(
4391
- "div",
4392
- {
4393
- ...other,
4394
- className: classNames(
4395
- props.className,
4396
- AVATAR_CLASSNAME,
4397
- optionClassNames(AVATAR_CLASSNAME, {
4398
- size,
4399
- rounded,
4400
- fillMode,
4401
- themeColor
4402
- }),
4403
- {
4404
- [`${AVATAR_CLASSNAME}-bordered`]: border
4405
- }
4406
- ),
4407
- children: /* @__PURE__ */ jsx5("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
4408
- }
4409
- );
4410
- };
4411
- Avatar.states = states4;
4412
- Avatar.options = options4;
4413
- Avatar.className = AVATAR_CLASSNAME;
4414
- Avatar.defaultProps = defaultProps4;
4415
-
4416
- // src/avatar/templates/avatar-icon.tsx
4417
- import { jsx as jsx6 } from "react/jsx-runtime";
4418
-
4419
- // src/avatar/templates/avatar-text.tsx
4420
- import { jsx as jsx7 } from "react/jsx-runtime";
4421
-
4422
- // src/avatar/templates/avatar-image.tsx
4423
- import { jsx as jsx8 } from "react/jsx-runtime";
4424
-
4425
- // src/chip/chip.spec.tsx
4426
- import { jsx as jsx9, jsxs } from "react/jsx-runtime";
4427
- var CHIP_CLASSNAME = `k-chip`;
4428
- var states5 = [
4429
- States.hover,
4430
- States.focus,
4431
- States.active,
4432
- States.selected,
4433
- States.disabled
4434
- ];
4435
- var options5 = {
4436
- size: [Size.small, Size.medium, Size.large],
4437
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4438
- fillMode: [FillMode.solid, FillMode.outline],
4439
- themeColor: [
4440
- ThemeColor.base,
4441
- ThemeColor.success,
4442
- ThemeColor.warning,
4443
- ThemeColor.error,
4444
- ThemeColor.info
4445
- ]
4446
- };
4447
4376
  var defaultProps5 = {
4448
4377
  size: Size.medium,
4449
4378
  rounded: Roundness.medium,
4450
4379
  fillMode: FillMode.solid,
4451
- themeColor: ThemeColor.base
4380
+ themeColor: ThemeColor.base,
4381
+ showArrow: false,
4382
+ arrowIconName: "caret-alt-down"
4452
4383
  };
4453
- var Chip = (props) => {
4384
+ var Button = (props) => {
4454
4385
  const {
4455
4386
  size = defaultProps5.size,
4456
4387
  rounded = defaultProps5.rounded,
4457
4388
  fillMode = defaultProps5.fillMode,
4458
4389
  themeColor = defaultProps5.themeColor,
4459
- text,
4460
- icon,
4461
- actions,
4462
- showAvatar,
4463
4390
  hover,
4464
4391
  focus,
4465
4392
  active,
4466
4393
  selected,
4467
4394
  disabled,
4395
+ icon,
4396
+ text,
4397
+ iconClassName,
4398
+ showArrow = defaultProps5.showArrow,
4399
+ arrowIconName = defaultProps5.arrowIconName,
4468
4400
  ...other
4469
4401
  } = props;
4402
+ const hasIcon = icon !== void 0;
4403
+ const hasChildren = props.children !== void 0;
4470
4404
  return /* @__PURE__ */ jsxs(
4471
- "div",
4405
+ "button",
4472
4406
  {
4473
4407
  ...other,
4474
4408
  className: classNames(
4475
4409
  props.className,
4476
- CHIP_CLASSNAME,
4477
- optionClassNames(CHIP_CLASSNAME, {
4410
+ BUTTON_CLASSNAME,
4411
+ optionClassNames(BUTTON_CLASSNAME, {
4478
4412
  size,
4479
4413
  rounded,
4480
4414
  fillMode,
4481
4415
  themeColor
4482
4416
  }),
4483
- stateClassNames(CHIP_CLASSNAME, {
4417
+ stateClassNames(BUTTON_CLASSNAME, {
4484
4418
  hover,
4485
4419
  focus,
4486
4420
  active,
4487
4421
  disabled,
4488
4422
  selected
4489
- })
4423
+ }),
4424
+ {
4425
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4426
+ }
4490
4427
  ),
4491
4428
  children: [
4492
- icon && /* @__PURE__ */ jsx9(Icon, { className: "k-chip-icon", icon, size: "small" }),
4493
- showAvatar && /* @__PURE__ */ jsx9(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ jsx9("img", { src: "/packages/html/assets/avatar.jpg" }) }),
4494
- /* @__PURE__ */ jsx9("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ jsx9("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
4495
- actions && /* @__PURE__ */ jsx9("span", { className: "k-chip-actions", children: actions })
4429
+ icon && /* @__PURE__ */ jsx5(
4430
+ Icon,
4431
+ {
4432
+ className: classNames(iconClassName, "k-button-icon"),
4433
+ icon
4434
+ }
4435
+ ),
4436
+ text ? /* @__PURE__ */ jsxs(Fragment4, { children: [
4437
+ text && /* @__PURE__ */ jsx5("span", { className: "k-button-text", children: text }),
4438
+ props.children
4439
+ ] }) : props.children && /* @__PURE__ */ jsx5("span", { className: "k-button-text", children: props.children }),
4440
+ showArrow && /* @__PURE__ */ jsx5("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx5(Icon, { icon: arrowIconName }) })
4496
4441
  ]
4497
4442
  }
4498
4443
  );
4499
4444
  };
4500
- Chip.states = states5;
4501
- Chip.options = options5;
4502
- Chip.className = CHIP_CLASSNAME;
4503
- Chip.defaultProps = defaultProps5;
4504
-
4505
- // src/chip/chip-list.spec.tsx
4506
- import { jsx as jsx10 } from "react/jsx-runtime";
4507
- var CHIPLIST_CLASSNAME = `k-chip-list`;
4508
- var states6 = [];
4509
- var options6 = {
4510
- size: [Size.small, Size.medium, Size.large]
4511
- };
4512
- var defaultProps6 = {
4513
- size: Size.medium
4514
- };
4515
- var ChipList = (props) => {
4516
- const {
4517
- size = defaultProps6.size,
4518
- ...other
4519
- } = props;
4520
- return /* @__PURE__ */ jsx10(
4521
- "div",
4522
- {
4523
- ...other,
4524
- className: classNames(
4525
- props.className,
4526
- CHIPLIST_CLASSNAME,
4527
- optionClassNames(CHIPLIST_CLASSNAME, {
4528
- size
4529
- })
4530
- ),
4531
- children: props.children
4532
- }
4533
- );
4534
- };
4535
- ChipList.states = states6;
4536
- ChipList.options = options6;
4537
- ChipList.className = CHIPLIST_CLASSNAME;
4538
- ChipList.defaultProps = defaultProps6;
4539
-
4540
- // src/chip/templates/chip-avatar.tsx
4541
- import { jsx as jsx11 } from "react/jsx-runtime";
4445
+ Button.states = states5;
4446
+ Button.options = options5;
4447
+ Button.className = BUTTON_CLASSNAME;
4448
+ Button.defaultProps = defaultProps5;
4542
4449
 
4543
- // src/chip/templates/chip-icon.tsx
4544
- import { jsx as jsx12 } from "react/jsx-runtime";
4450
+ // src/button/templates/icon-button.tsx
4451
+ import { jsx as jsx6 } from "react/jsx-runtime";
4545
4452
 
4546
- // src/chip/templates/chip-normal.tsx
4547
- import { jsx as jsx13 } from "react/jsx-runtime";
4453
+ // src/button/templates/icon-text-button.tsx
4454
+ import { jsx as jsx7 } from "react/jsx-runtime";
4548
4455
 
4549
- // src/chip/templates/chip-removable.tsx
4550
- import { jsx as jsx14 } from "react/jsx-runtime";
4456
+ // src/button/templates/text-button.tsx
4457
+ import { jsx as jsx8 } from "react/jsx-runtime";
4551
4458
 
4552
- // src/input/input.spec.tsx
4553
- import { jsx as jsx15 } from "react/jsx-runtime";
4554
- var INPUT_CLASSNAME = `k-input`;
4555
- var states7 = [
4556
- States.hover,
4557
- States.focus,
4558
- States.valid,
4559
- States.invalid,
4560
- States.required,
4561
- States.disabled,
4562
- States.loading,
4563
- States.readonly
4459
+ // src/upload/upload-dropzone.tsx
4460
+ import { Fragment as Fragment5, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
4461
+ var UPLOADDROPZONE_CLASSNAME = `k-upload-dropzone`;
4462
+ var states6 = [
4463
+ States.hover
4564
4464
  ];
4565
- var options7 = {
4566
- size: [Size.small, Size.medium, Size.large],
4567
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4568
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4569
- };
4570
- var defaultProps7 = {
4571
- size: Size.medium,
4572
- rounded: Size.medium,
4573
- fillMode: FillMode.solid
4574
- };
4575
- var Input = (props) => {
4465
+ var UploadDropzone = (props) => {
4576
4466
  const {
4577
4467
  hover,
4578
- focus,
4579
- disabled,
4580
- invalid,
4581
- valid,
4582
- loading,
4583
- readonly,
4584
- size = defaultProps7.size,
4585
- rounded = defaultProps7.rounded,
4586
- fillMode = defaultProps7.fillMode,
4468
+ status,
4587
4469
  ...other
4588
4470
  } = props;
4589
- return /* @__PURE__ */ jsx15(
4590
- "span",
4471
+ let statusMsg = /* @__PURE__ */ jsx9(Fragment5, {});
4472
+ switch (status) {
4473
+ case "uploading":
4474
+ statusMsg = /* @__PURE__ */ jsxs2(Fragment5, { children: [
4475
+ /* @__PURE__ */ jsx9(Icon, { icon: "upload" }),
4476
+ "Uploading..."
4477
+ ] });
4478
+ break;
4479
+ case "done":
4480
+ statusMsg = /* @__PURE__ */ jsxs2(Fragment5, { children: [
4481
+ /* @__PURE__ */ jsx9(Icon, { icon: "check" }),
4482
+ "Done"
4483
+ ] });
4484
+ break;
4485
+ case "failed":
4486
+ statusMsg = /* @__PURE__ */ jsxs2(Fragment5, { children: [
4487
+ /* @__PURE__ */ jsx9(Icon, { icon: "exclamation-circle" }),
4488
+ "Done"
4489
+ ] });
4490
+ break;
4491
+ default:
4492
+ statusMsg = /* @__PURE__ */ jsx9(Fragment5, {});
4493
+ break;
4494
+ }
4495
+ return /* @__PURE__ */ jsxs2(
4496
+ "div",
4591
4497
  {
4592
4498
  ...other,
4593
4499
  className: classNames(
4594
4500
  props.className,
4595
- INPUT_CLASSNAME,
4596
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4597
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4598
- )
4501
+ UPLOADDROPZONE_CLASSNAME,
4502
+ "k-dropzone",
4503
+ stateClassNames(UPLOADDROPZONE_CLASSNAME, {
4504
+ hover
4505
+ })
4506
+ ),
4507
+ children: [
4508
+ /* @__PURE__ */ jsxs2("div", { className: "k-upload-button-wrap", children: [
4509
+ /* @__PURE__ */ jsx9(Button, { className: "k-upload-button", children: "Select files..." }),
4510
+ /* @__PURE__ */ jsx9("input", { id: "upload-input", className: "k-hidden" })
4511
+ ] }),
4512
+ /* @__PURE__ */ jsx9(
4513
+ "span",
4514
+ {
4515
+ className: classNames(
4516
+ "k-dropzone-hint",
4517
+ {
4518
+ "k-hidden": status !== "upload"
4519
+ }
4520
+ ),
4521
+ children: "Drop files here to upload"
4522
+ }
4523
+ ),
4524
+ status !== "upload" && /* @__PURE__ */ jsx9("span", { className: "k-upload-status", children: statusMsg })
4525
+ ]
4599
4526
  }
4600
4527
  );
4601
4528
  };
4602
- Input.states = states7;
4603
- Input.options = options7;
4604
- Input.className = INPUT_CLASSNAME;
4605
- Input.defaultProps = defaultProps7;
4606
4529
 
4607
- // src/input/picker.spec.tsx
4608
- import { jsx as jsx16 } from "react/jsx-runtime";
4609
- var PICKER_CLASSNAME = `k-picker`;
4610
- var pickerStates = [
4530
+ // src/upload/upload.spec.tsx
4531
+ import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
4532
+ var UPLOAD_CLASSNAME = `k-upload`;
4533
+ var states7 = [
4611
4534
  States.hover,
4612
- States.focus,
4613
- States.valid,
4614
- States.invalid,
4615
- States.required,
4616
- States.disabled,
4617
- States.loading,
4618
- States.readonly
4535
+ States.disabled
4619
4536
  ];
4620
- var pickerOptions = {
4621
- size: [Size.small, Size.medium, Size.large],
4622
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4623
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4624
- };
4625
- var defaultProps8 = {
4626
- size: Size.medium,
4627
- rounded: Roundness.medium,
4628
- fillMode: FillMode.solid
4629
- };
4630
- var Picker = (props) => {
4537
+ var options6 = {};
4538
+ var defaultProps6 = {};
4539
+ var Upload = (props) => {
4631
4540
  const {
4541
+ async,
4542
+ empty,
4543
+ actions,
4632
4544
  hover,
4633
- focus,
4545
+ status,
4634
4546
  disabled,
4635
- invalid,
4636
- valid,
4637
- loading,
4638
- readonly,
4639
- size = defaultProps8.size,
4640
- rounded = defaultProps8.rounded,
4641
- fillMode = defaultProps8.fillMode,
4642
4547
  ...other
4643
4548
  } = props;
4644
- return /* @__PURE__ */ jsx16(
4645
- "span",
4549
+ return /* @__PURE__ */ jsxs3(
4550
+ "div",
4646
4551
  {
4647
4552
  ...other,
4648
4553
  className: classNames(
4649
4554
  props.className,
4650
- PICKER_CLASSNAME,
4651
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4652
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4555
+ UPLOAD_CLASSNAME,
4556
+ stateClassNames(UPLOAD_CLASSNAME, {
4557
+ disabled
4558
+ }),
4559
+ {
4560
+ "k-upload-async": async,
4561
+ "k-upload-empty": empty
4562
+ }
4653
4563
  ),
4654
- children: props.children
4564
+ children: [
4565
+ /* @__PURE__ */ jsx10(UploadDropzone, { status, hover }),
4566
+ props.children && /* @__PURE__ */ jsx10("ul", { className: "k-upload-files", children: props.children }),
4567
+ actions && /* @__PURE__ */ jsxs3(action_buttons_spec_default, { alignment: "end", orientation: "horizontal", children: [
4568
+ /* @__PURE__ */ jsx10(Button, { className: "k-clear-selected", children: "Clear" }),
4569
+ /* @__PURE__ */ jsx10(Button, { themeColor: "primary", className: "k-upload-selected", children: "Upload" })
4570
+ ] })
4571
+ ]
4655
4572
  }
4656
4573
  );
4657
4574
  };
4658
- Picker.states = pickerStates;
4659
- Picker.options = pickerOptions;
4660
- Picker.className = PICKER_CLASSNAME;
4661
- Picker.defaultProps = defaultProps8;
4575
+ Upload.states = states7;
4576
+ Upload.options = options6;
4577
+ Upload.className = UPLOAD_CLASSNAME;
4578
+ Upload.defaultProps = defaultProps6;
4662
4579
 
4663
- // src/input/input-clear-value.tsx
4664
- import { Fragment as Fragment4, jsx as jsx17 } from "react/jsx-runtime";
4665
- var className = `k-clear-value`;
4580
+ // src/progressbar/progressbar.spec.tsx
4581
+ import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
4582
+ var PROGRESSBAR_CLASSNAME = `k-progressbar`;
4666
4583
  var states8 = [
4667
4584
  States.disabled,
4668
- States.loading,
4669
- States.readonly
4585
+ States.indeterminate
4670
4586
  ];
4671
- var options8 = {};
4672
- var InputClearValue = (props) => {
4587
+ var options7 = {};
4588
+ var defaultProps7 = {
4589
+ indeterminate: false,
4590
+ label: true,
4591
+ labelPosition: "start",
4592
+ orientation: "horizontal",
4593
+ reverse: false,
4594
+ value: "0"
4595
+ };
4596
+ var ProgressBar = (props) => {
4673
4597
  const {
4674
4598
  disabled,
4675
- loading,
4676
- readonly,
4677
- value
4678
- } = props;
4679
- if (disabled || readonly || loading || !value) {
4680
- return /* @__PURE__ */ jsx17(Fragment4, {});
4681
- }
4682
- return /* @__PURE__ */ jsx17("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx17(Icon, { icon: "x" }) });
4683
- };
4684
- InputClearValue.states = states8;
4685
- InputClearValue.options = options8;
4686
- InputClearValue.className = className;
4687
-
4688
- // src/input/input-inner-input.tsx
4689
- import { jsx as jsx18 } from "react/jsx-runtime";
4690
- var className2 = `k-input-inner`;
4691
- var states9 = [];
4692
- var options9 = {};
4693
- var defaultProps9 = {
4694
- type: "text",
4695
- autocomplete: "off",
4696
- value: "",
4697
- placeholder: ""
4698
- };
4699
- var InputInnerInput = (props) => {
4700
- const {
4701
- value = defaultProps9.value,
4702
- type = defaultProps9.type,
4703
- placeholder = defaultProps9.placeholder,
4704
- autocomplete = defaultProps9.autocomplete,
4705
- ...other
4706
- } = props;
4707
- return /* @__PURE__ */ jsx18(
4708
- "input",
4709
- {
4710
- ...other,
4711
- type,
4712
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4713
- placeholder,
4714
- autoComplete: autocomplete,
4715
- defaultValue: value
4716
- }
4717
- );
4718
- };
4719
- InputInnerInput.states = states9;
4720
- InputInnerInput.options = options9;
4721
- InputInnerInput.className = className2;
4722
-
4723
- // src/input/input-inner-span.tsx
4724
- import { jsx as jsx19, jsxs as jsxs2 } from "react/jsx-runtime";
4725
- var className3 = `k-input-inner`;
4726
- var states10 = [];
4727
- var options10 = {};
4728
- var InputInnerSpan = (props) => {
4729
- const {
4730
- value,
4731
- placeholder,
4732
- showValue,
4733
- valueIcon,
4734
- valueIconName,
4599
+ height,
4600
+ indeterminate = defaultProps7.indeterminate,
4601
+ label = defaultProps7.label,
4602
+ labelPosition = defaultProps7.labelPosition,
4603
+ orientation = defaultProps7.orientation,
4604
+ reverse = defaultProps7.reverse,
4605
+ value = defaultProps7.value,
4606
+ width,
4735
4607
  ...other
4736
4608
  } = props;
4737
- return /* @__PURE__ */ jsxs2(
4738
- "span",
4609
+ return /* @__PURE__ */ jsxs4(
4610
+ "div",
4739
4611
  {
4740
4612
  ...other,
4741
- className: classNames(props.className, className3, optionClassNames(className3, props)),
4613
+ className: classNames(
4614
+ props.className,
4615
+ PROGRESSBAR_CLASSNAME,
4616
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
4617
+ disabled
4618
+ }),
4619
+ {
4620
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
4621
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
4622
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
4623
+ }
4624
+ ),
4625
+ style: orientation === "horizontal" ? { "--kendo-progressbar-value": value, height } : { "--kendo-progressbar-value": value, width },
4742
4626
  children: [
4743
- valueIcon,
4744
- !valueIcon && valueIconName && /* @__PURE__ */ jsx19(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4745
- showValue && !value && placeholder,
4746
- showValue && value && /* @__PURE__ */ jsx19("span", { className: "k-input-value-text", children: value })
4627
+ /* @__PURE__ */ jsx11("span", { className: classNames(
4628
+ "k-progress-status-wrap",
4629
+ {
4630
+ [`k-progress-${labelPosition}`]: labelPosition && !indeterminate
4631
+ }
4632
+ ), children: label && /* @__PURE__ */ jsxs4("span", { className: "k-progress-status", children: [
4633
+ value,
4634
+ "%"
4635
+ ] }) }),
4636
+ !indeterminate && /* @__PURE__ */ jsx11("div", { className: "k-progressbar-value k-selected", children: /* @__PURE__ */ jsx11("span", { className: classNames(
4637
+ "k-progress-status-wrap",
4638
+ {
4639
+ [`k-progress-${labelPosition}`]: labelPosition
4640
+ }
4641
+ ), children: label && /* @__PURE__ */ jsxs4("span", { className: "k-progress-status", children: [
4642
+ props.value,
4643
+ "%"
4644
+ ] }) }) })
4747
4645
  ]
4748
4646
  }
4749
4647
  );
4750
4648
  };
4751
- InputInnerSpan.states = states10;
4752
- InputInnerSpan.options = options10;
4753
- InputInnerSpan.className = className3;
4754
-
4755
- // src/input/input-inner-textarea.tsx
4756
- import { jsx as jsx20 } from "react/jsx-runtime";
4757
- var defaultProps10 = {
4758
- value: "",
4759
- placeholder: ""
4760
- };
4761
- var className4 = `k-input-inner`;
4762
- var states11 = [];
4763
- var options11 = {};
4764
- var InputInnerTextarea = (props) => {
4765
- const {
4766
- value = defaultProps10.value,
4767
- placeholder = defaultProps10.placeholder,
4768
- rows,
4769
- ...other
4770
- } = props;
4771
- return /* @__PURE__ */ jsx20(
4772
- "textarea",
4773
- {
4774
- ...other,
4775
- className: classNames(props.className, className4, optionClassNames(className4, props)),
4776
- placeholder,
4777
- rows,
4778
- children: value
4779
- }
4780
- );
4781
- };
4782
- InputInnerTextarea.states = states11;
4783
- InputInnerTextarea.options = options11;
4784
- InputInnerTextarea.className = className4;
4785
-
4786
- // src/input/input-loading-icon.tsx
4787
- import { Fragment as Fragment5, jsx as jsx21 } from "react/jsx-runtime";
4788
- var className5 = `k-input-loading-icon`;
4789
- var states12 = [
4790
- States.disabled,
4791
- States.loading
4792
- ];
4793
- var InputLoadingIcon = (props) => {
4794
- const {
4795
- disabled,
4796
- loading
4797
- } = props;
4798
- if (disabled || !loading) {
4799
- return /* @__PURE__ */ jsx21(Fragment5, {});
4800
- }
4801
- return /* @__PURE__ */ jsx21("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4802
- };
4649
+ ProgressBar.states = states8;
4650
+ ProgressBar.options = options7;
4651
+ ProgressBar.className = PROGRESSBAR_CLASSNAME;
4652
+ ProgressBar.defaultProps = defaultProps7;
4803
4653
 
4804
- // src/input/input-validation-icon.tsx
4805
- import { Fragment as Fragment6, jsx as jsx22 } from "react/jsx-runtime";
4806
- var className6 = `k-input-validation-icon`;
4807
- var states13 = [
4808
- States.valid,
4809
- States.invalid,
4654
+ // src/progressbar/chunk-progressbar.spec.tsx
4655
+ import { jsx as jsx12 } from "react/jsx-runtime";
4656
+ var CHUNKPROGRESSBAR_CLASSNAME = `k-chunk-progressbar`;
4657
+ var isSelected = (progress, index) => index <= progress - 1 ? true : false;
4658
+ var states9 = [
4810
4659
  States.disabled,
4811
- States.loading
4812
- ];
4813
- var options12 = {};
4814
- var InputValidationIcon = (props) => {
4815
- const {
4816
- valid,
4817
- invalid,
4818
- disabled,
4819
- loading
4820
- } = props;
4821
- const iconName = invalid ? "exclamation-circle" : "check";
4822
- const renderValidationIcon = Boolean(valid || invalid);
4823
- if (disabled || loading || !renderValidationIcon) {
4824
- return /* @__PURE__ */ jsx22(Fragment6, {});
4825
- }
4826
- return /* @__PURE__ */ jsx22(Icon, { className: classNames(className6), icon: iconName });
4827
- };
4828
- InputValidationIcon.states = states13;
4829
- InputValidationIcon.options = options12;
4830
- InputValidationIcon.className = className6;
4831
-
4832
- // src/input/input-prefix.tsx
4833
- import { Fragment as Fragment7, jsx as jsx23 } from "react/jsx-runtime";
4834
- var className7 = `k-input-prefix`;
4835
- var InputPrefix = (props) => {
4836
- if (!props.children) {
4837
- return /* @__PURE__ */ jsx23(Fragment7, {});
4838
- }
4839
- return /* @__PURE__ */ jsx23("span", { className: classNames(className7, props.className), children: props.children });
4840
- };
4841
-
4842
- // src/input/input-suffix.tsx
4843
- import { Fragment as Fragment8, jsx as jsx24 } from "react/jsx-runtime";
4844
- var className8 = `k-input-suffix`;
4845
- var InputSuffix = (props) => {
4846
- if (!props.children) {
4847
- return /* @__PURE__ */ jsx24(Fragment8, {});
4848
- }
4849
- return /* @__PURE__ */ jsx24("span", { className: classNames(className8, props.className), children: props.children });
4850
- };
4851
-
4852
- // src/input/input-separator.tsx
4853
- import { jsx as jsx25 } from "react/jsx-runtime";
4854
-
4855
- // src/button/button.spec.tsx
4856
- import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs3 } from "react/jsx-runtime";
4857
- var BUTTON_CLASSNAME = `k-button`;
4858
- var states14 = [
4859
- States.hover,
4860
- States.focus,
4861
- States.active,
4862
- States.selected,
4863
- States.disabled
4660
+ States.indeterminate
4864
4661
  ];
4865
- var options13 = {
4866
- size: [Size.small, Size.medium, Size.large],
4867
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4868
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4869
- themeColor: [
4870
- ThemeColor.base,
4871
- ThemeColor.primary,
4872
- ThemeColor.secondary,
4873
- ThemeColor.tertiary,
4874
- ThemeColor.success,
4875
- ThemeColor.warning,
4876
- ThemeColor.error,
4877
- ThemeColor.info,
4878
- ThemeColor.light,
4879
- ThemeColor.dark,
4880
- ThemeColor.inverse
4881
- ]
4882
- };
4883
- var defaultProps11 = {
4884
- size: Size.medium,
4885
- rounded: Roundness.medium,
4886
- fillMode: FillMode.solid,
4887
- themeColor: ThemeColor.base,
4888
- showArrow: false,
4889
- arrowIconName: "caret-alt-down"
4662
+ var options8 = {};
4663
+ var defaultProps8 = {
4664
+ chunkCount: 5,
4665
+ orientation: "horizontal",
4666
+ progress: 0
4890
4667
  };
4891
- var Button = (props) => {
4668
+ var ChunkProgressBar = (props) => {
4892
4669
  const {
4893
- size = defaultProps11.size,
4894
- rounded = defaultProps11.rounded,
4895
- fillMode = defaultProps11.fillMode,
4896
- themeColor = defaultProps11.themeColor,
4897
- hover,
4898
- focus,
4899
- active,
4900
- selected,
4901
4670
  disabled,
4902
- icon,
4903
- text,
4904
- iconClassName,
4905
- showArrow = defaultProps11.showArrow,
4906
- arrowIconName = defaultProps11.arrowIconName,
4671
+ chunkCount = defaultProps8.chunkCount,
4672
+ indeterminate,
4673
+ orientation = defaultProps8.orientation,
4674
+ progress = defaultProps8.progress,
4675
+ reverse,
4907
4676
  ...other
4908
4677
  } = props;
4909
- const hasIcon = icon !== void 0;
4910
- const hasChildren = props.children !== void 0;
4911
- return /* @__PURE__ */ jsxs3(
4912
- "button",
4678
+ return /* @__PURE__ */ jsx12(
4679
+ "div",
4913
4680
  {
4914
4681
  ...other,
4915
4682
  className: classNames(
4916
4683
  props.className,
4917
- BUTTON_CLASSNAME,
4918
- optionClassNames(BUTTON_CLASSNAME, {
4919
- size,
4920
- rounded,
4921
- fillMode,
4922
- themeColor
4923
- }),
4924
- stateClassNames(BUTTON_CLASSNAME, {
4925
- hover,
4926
- focus,
4927
- active,
4928
- disabled,
4929
- selected
4684
+ PROGRESSBAR_CLASSNAME,
4685
+ CHUNKPROGRESSBAR_CLASSNAME,
4686
+ stateClassNames(PROGRESSBAR_CLASSNAME, {
4687
+ disabled
4930
4688
  }),
4931
4689
  {
4932
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4690
+ [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
4691
+ [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
4692
+ [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
4933
4693
  }
4934
4694
  ),
4935
- children: [
4936
- icon && /* @__PURE__ */ jsx26(
4937
- Icon,
4695
+ children: /* @__PURE__ */ jsx12("ul", { className: "k-progressbar-chunks k-reset", children: [...Array(chunkCount)].map(
4696
+ (_el, i) => /* @__PURE__ */ jsx12("li", { className: classNames(
4697
+ "k-progressbar-chunk",
4938
4698
  {
4939
- className: classNames(iconClassName, "k-button-icon"),
4940
- icon
4699
+ "k-first": i === 0,
4700
+ "k-last": i === [...Array(chunkCount)].length - 1,
4701
+ "k-selected": isSelected(progress, i)
4941
4702
  }
4942
- ),
4943
- text ? /* @__PURE__ */ jsxs3(Fragment9, { children: [
4944
- text && /* @__PURE__ */ jsx26("span", { className: "k-button-text", children: text }),
4945
- props.children
4946
- ] }) : props.children && /* @__PURE__ */ jsx26("span", { className: "k-button-text", children: props.children }),
4947
- showArrow && /* @__PURE__ */ jsx26("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx26(Icon, { icon: arrowIconName }) })
4948
- ]
4703
+ ) }, i)
4704
+ ) })
4949
4705
  }
4950
4706
  );
4951
4707
  };
4952
- Button.states = states14;
4953
- Button.options = options13;
4954
- Button.className = BUTTON_CLASSNAME;
4955
- Button.defaultProps = defaultProps11;
4956
-
4957
- // src/button/templates/icon-button.tsx
4958
- import { jsx as jsx27 } from "react/jsx-runtime";
4708
+ ChunkProgressBar.states = states9;
4709
+ ChunkProgressBar.options = options8;
4710
+ ChunkProgressBar.className = CHUNKPROGRESSBAR_CLASSNAME;
4711
+ ChunkProgressBar.defaultProps = defaultProps8;
4959
4712
 
4960
- // src/button/templates/icon-text-button.tsx
4961
- import { jsx as jsx28 } from "react/jsx-runtime";
4713
+ // src/progressbar/templates/progressbar-normal.tsx
4714
+ import { jsx as jsx13 } from "react/jsx-runtime";
4962
4715
 
4963
- // src/button/templates/text-button.tsx
4964
- import { jsx as jsx29 } from "react/jsx-runtime";
4716
+ // src/progressbar/templates/chunk-progressbar-normal.tsx
4717
+ import { jsx as jsx14 } from "react/jsx-runtime";
4965
4718
 
4966
- // src/animation-container/animation-container.spec.tsx
4967
- import { jsx as jsx30 } from "react/jsx-runtime";
4968
- var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
4969
- var states15 = [];
4970
- var options14 = {};
4971
- var defaultProps12 = {
4972
- positionMode: "absolute"
4973
- };
4974
- var AnimationContainer = (props) => {
4719
+ // src/upload/upload-file-info.tsx
4720
+ import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
4721
+ var UPLOADFILEINFO_CLASSNAME = `k-file-info`;
4722
+ var UploadFileInfo = (props) => {
4975
4723
  const {
4976
- positionMode,
4977
- animationStyle,
4978
- offset,
4724
+ name,
4725
+ size,
4726
+ validationMsg,
4979
4727
  ...other
4980
4728
  } = props;
4981
- return /* @__PURE__ */ jsx30(
4729
+ return /* @__PURE__ */ jsxs5(
4982
4730
  "div",
4983
4731
  {
4984
4732
  ...other,
4985
- style: { ...offset, ...props.style },
4986
4733
  className: classNames(
4987
- ANIMATION_CONTAINER_CLASSNAME,
4988
- "k-animation-container-shown",
4989
- {
4990
- ["k-animation-container-fixed"]: positionMode === "fixed"
4991
- }
4734
+ props.className,
4735
+ UPLOADFILEINFO_CLASSNAME
4992
4736
  ),
4993
- children: /* @__PURE__ */ jsx30("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
4737
+ children: [
4738
+ name && /* @__PURE__ */ jsx15("span", { className: "k-file-name", children: name }),
4739
+ size && /* @__PURE__ */ jsx15("span", { className: "k-file-size", children: size }),
4740
+ validationMsg && /* @__PURE__ */ jsx15("span", { className: "k-file-validation-message", children: validationMsg })
4741
+ ]
4994
4742
  }
4995
4743
  );
4996
4744
  };
4997
- AnimationContainer.states = states15;
4998
- AnimationContainer.options = options14;
4999
- AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5000
- AnimationContainer.defaultProps = defaultProps12;
5001
4745
 
5002
- // src/popup/popup.spec.tsx
5003
- import { jsx as jsx31 } from "react/jsx-runtime";
5004
- var POPUP_CLASSNAME = `k-popup`;
5005
- var states16 = [];
5006
- var options15 = {};
5007
- var defaultProps13 = {
5008
- positionMode: "absolute"
5009
- };
5010
- var Popup = (props) => {
4746
+ // src/upload/upload-file.tsx
4747
+ import { Fragment as Fragment6, jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
4748
+ var UPLOADFILE_CLASSNAME = `k-file`;
4749
+ var UploadFile = (props) => {
5011
4750
  const {
5012
- offset,
5013
- positionMode,
4751
+ status,
4752
+ progress,
4753
+ name,
4754
+ icon,
4755
+ size,
4756
+ state,
4757
+ validationMsg,
5014
4758
  ...other
5015
4759
  } = props;
5016
- return /* @__PURE__ */ jsx31(
5017
- AnimationContainer,
4760
+ return /* @__PURE__ */ jsx16(
4761
+ "li",
5018
4762
  {
5019
- positionMode,
5020
- offset,
5021
- children: /* @__PURE__ */ jsx31("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
4763
+ ...other,
4764
+ className: classNames(
4765
+ props.className,
4766
+ UPLOADFILE_CLASSNAME,
4767
+ {
4768
+ [`k-file-${status}`]: status
4769
+ }
4770
+ ),
4771
+ children: /* @__PURE__ */ jsxs6("div", { className: "k-file-single", children: [
4772
+ /* @__PURE__ */ jsx16(ProgressBar, { className: classNames(
4773
+ {
4774
+ "k-hidden": status !== "progress"
4775
+ }
4776
+ ), value: progress, label: false }),
4777
+ /* @__PURE__ */ jsxs6("span", { className: "k-file-icon-wrapper", children: [
4778
+ /* @__PURE__ */ jsx16(Icon, { className: "k-file-icon", icon, size: "xxlarge" }),
4779
+ state && /* @__PURE__ */ jsx16("span", { className: "k-file-state", children: state })
4780
+ ] }),
4781
+ /* @__PURE__ */ jsx16(UploadFileInfo, { name, size, validationMsg }),
4782
+ /* @__PURE__ */ jsx16("div", { className: "k-upload-actions", children: status === "progress" ? /* @__PURE__ */ jsxs6(Fragment6, { children: [
4783
+ /* @__PURE__ */ jsxs6("span", { className: "k-upload-pct", children: [
4784
+ progress,
4785
+ "%"
4786
+ ] }),
4787
+ /* @__PURE__ */ jsx16(Button, { icon: "pause-sm", fillMode: "flat", className: "k-upload-action" }),
4788
+ /* @__PURE__ */ jsx16(Button, { icon: "cancel", fillMode: "flat", className: "k-upload-action" })
4789
+ ] }) : /* @__PURE__ */ jsx16(Button, { icon: "x", fillMode: "flat", className: "k-upload-action" }) })
4790
+ ] })
5022
4791
  }
5023
4792
  );
5024
4793
  };
5025
- Popup.states = states16;
5026
- Popup.options = options15;
5027
- Popup.className = POPUP_CLASSNAME;
5028
- Popup.defaultProps = defaultProps13;
5029
4794
 
5030
- // src/multiselecttree/multiselecttree.spec.tsx
5031
- import { Fragment as Fragment10, jsx as jsx32, jsxs as jsxs4 } from "react/jsx-runtime";
5032
- var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5033
- var states17 = [
5034
- States.hover,
5035
- States.focus,
5036
- States.valid,
5037
- States.invalid,
5038
- States.required,
5039
- States.disabled,
5040
- States.loading,
5041
- States.readonly
5042
- ];
5043
- var options16 = {
5044
- size: [Size.small, Size.medium, Size.large],
5045
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5046
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5047
- };
5048
- var defaultProps14 = {
5049
- size: Input.defaultProps.size,
5050
- rounded: Input.defaultProps.rounded,
5051
- fillMode: Input.defaultProps.fillMode
5052
- };
5053
- var MultiSelectTree = (props) => {
5054
- const {
5055
- prefix,
5056
- suffix,
5057
- placeholder,
5058
- tags,
5059
- popup,
5060
- size,
5061
- rounded,
5062
- fillMode,
5063
- showArrowButton,
5064
- hover,
5065
- focus,
5066
- valid,
5067
- invalid,
5068
- required,
5069
- loading,
5070
- disabled,
5071
- readonly,
5072
- opened,
5073
- dir,
5074
- ...other
5075
- } = props;
5076
- return /* @__PURE__ */ jsxs4(Fragment10, { children: [
5077
- /* @__PURE__ */ jsxs4(
5078
- Input,
5079
- {
5080
- ...other,
5081
- dir,
5082
- size,
5083
- rounded,
5084
- fillMode,
5085
- hover,
5086
- focus,
5087
- valid,
5088
- invalid,
5089
- required,
5090
- loading,
5091
- disabled,
5092
- readonly,
5093
- className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5094
- children: [
5095
- /* @__PURE__ */ jsx32(InputPrefix, { children: prefix }),
5096
- /* @__PURE__ */ jsx32(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ jsx32(Fragment10, { children: tags }) }),
5097
- /* @__PURE__ */ jsx32("span", { className: "k-input-inner", children: /* @__PURE__ */ jsx32("span", { className: "k-input-value-text", children: placeholder }) }),
5098
- /* @__PURE__ */ jsx32(
5099
- InputValidationIcon,
5100
- {
5101
- valid,
5102
- invalid,
5103
- loading,
5104
- disabled
5105
- }
5106
- ),
5107
- /* @__PURE__ */ jsx32(
5108
- InputLoadingIcon,
5109
- {
5110
- loading,
5111
- disabled
5112
- }
5113
- ),
5114
- /* @__PURE__ */ jsx32(
5115
- InputClearValue,
5116
- {
5117
- loading,
5118
- disabled,
5119
- readonly,
5120
- value: tags ? "value" : ""
5121
- }
5122
- ),
5123
- /* @__PURE__ */ jsx32(InputSuffix, { children: suffix }),
5124
- showArrowButton && /* @__PURE__ */ jsx32(
5125
- Button,
5126
- {
5127
- className: "k-input-button",
5128
- icon: "caret-alt-down",
5129
- rounded: null,
5130
- size,
5131
- fillMode
5132
- }
5133
- )
5134
- ]
5135
- }
5136
- ),
5137
- opened && popup && /* @__PURE__ */ jsx32(Popup, { className: "k-multiselecttree-popup", dir, children: popup })
5138
- ] });
5139
- };
5140
- MultiSelectTree.states = states17;
5141
- MultiSelectTree.options = options16;
5142
- MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5143
- MultiSelectTree.defaultProps = defaultProps14;
4795
+ // src/upload/upload-file-multiple.tsx
4796
+ import { Fragment as Fragment7, jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
5144
4797
 
5145
- // src/multiselecttree/tests/multiselecttree-size.tsx
5146
- import { Fragment as Fragment11, jsx as jsx33, jsxs as jsxs5 } from "react/jsx-runtime";
5147
- var styles = `
5148
- #test-area {
5149
- max-width: 600px;
5150
- grid-template-columns: 120px repeat(1, 1fr);
5151
- }
5152
- `;
5153
- var multiselecttree_size_default = () => /* @__PURE__ */ jsxs5(Fragment11, { children: [
5154
- /* @__PURE__ */ jsx33("style", { children: styles }),
5155
- /* @__PURE__ */ jsxs5("div", { id: "test-area", className: "k-d-grid k-grid-cols-3", children: [
5156
- /* @__PURE__ */ jsx33("span", { children: "small" }),
5157
- /* @__PURE__ */ jsx33(
5158
- MultiSelectTree,
5159
- {
5160
- size: "small",
5161
- tags: /* @__PURE__ */ jsxs5(Fragment11, { children: [
5162
- /* @__PURE__ */ jsx33(Chip, { text: "Chip Text", size: "small", actions: /* @__PURE__ */ jsx33(ChipAction, { type: "remove" }) }),
5163
- /* @__PURE__ */ jsx33(Chip, { text: "Chip Text", size: "small", actions: /* @__PURE__ */ jsx33(ChipAction, { type: "remove" }) })
5164
- ] })
5165
- }
5166
- ),
5167
- /* @__PURE__ */ jsx33("span", { children: "medium" }),
5168
- /* @__PURE__ */ jsx33(
5169
- MultiSelectTree,
5170
- {
5171
- size: "medium",
5172
- tags: /* @__PURE__ */ jsxs5(Fragment11, { children: [
5173
- /* @__PURE__ */ jsx33(Chip, { text: "Chip Text", size: "medium", actions: /* @__PURE__ */ jsx33(ChipAction, { type: "remove" }) }),
5174
- /* @__PURE__ */ jsx33(Chip, { text: "Chip Text", size: "medium", actions: /* @__PURE__ */ jsx33(ChipAction, { type: "remove" }) })
5175
- ] })
5176
- }
5177
- ),
5178
- /* @__PURE__ */ jsx33("span", { children: "large" }),
5179
- /* @__PURE__ */ jsx33(
5180
- MultiSelectTree,
5181
- {
5182
- size: "large",
5183
- tags: /* @__PURE__ */ jsxs5(Fragment11, { children: [
5184
- /* @__PURE__ */ jsx33(Chip, { text: "Chip Text", size: "large", actions: /* @__PURE__ */ jsx33(ChipAction, { type: "remove" }) }),
5185
- /* @__PURE__ */ jsx33(Chip, { text: "Chip Text", size: "large", actions: /* @__PURE__ */ jsx33(ChipAction, { type: "remove" }) })
5186
- ] })
5187
- }
5188
- )
5189
- ] })
5190
- ] });
4798
+ // src/upload/templates/upload-batch.tsx
4799
+ import { Fragment as Fragment8, jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
4800
+
4801
+ // src/upload/templates/upload-normal.tsx
4802
+ import { jsx as jsx19 } from "react/jsx-runtime";
4803
+
4804
+ // src/upload/templates/upload-chunk.tsx
4805
+ import { Fragment as Fragment9, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
4806
+ var UploadChunk = (props) => /* @__PURE__ */ jsx20(
4807
+ Upload,
4808
+ {
4809
+ async: true,
4810
+ children: [
4811
+ /* @__PURE__ */ jsxs9(Fragment9, { children: [
4812
+ /* @__PURE__ */ jsx20(UploadFile, { name: "Image_With_Very_Very_Very_Very_Very_Long_Name1.png", icon: "file-image", size: "51.23 KB" }),
4813
+ /* @__PURE__ */ jsx20(UploadFile, { name: "Image2.jpg", icon: "file-image", size: "106.43 KB" })
4814
+ ] })
4815
+ ],
4816
+ ...props
4817
+ }
4818
+ );
5191
4819
  export {
5192
- multiselecttree_size_default as default
4820
+ UploadChunk
5193
4821
  };