@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
@@ -4997,10 +4997,678 @@ Popup.options = options15;
4997
4997
  Popup.className = POPUP_CLASSNAME;
4998
4998
  Popup.defaultProps = defaultProps13;
4999
4999
 
5000
- // src/multiselecttree/multiselecttree.spec.tsx
5000
+ // src/action-sheet/action-sheet.spec.tsx
5001
5001
  import { Fragment as Fragment10, jsx as jsx32, jsxs as jsxs4 } from "react/jsx-runtime";
5002
+ var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
5003
+ var states17 = [];
5004
+ var options16 = {};
5005
+ var defaultProps14 = {
5006
+ side: "bottom",
5007
+ fullscreen: false,
5008
+ adaptive: false,
5009
+ overlay: true
5010
+ };
5011
+ var ActionSheet = (props) => {
5012
+ const {
5013
+ children,
5014
+ title,
5015
+ header,
5016
+ footer,
5017
+ actions,
5018
+ side = defaultProps14.side,
5019
+ fullscreen = defaultProps14.fullscreen,
5020
+ adaptive = defaultProps14.adaptive,
5021
+ overlay = defaultProps14.overlay,
5022
+ ...other
5023
+ } = props;
5024
+ const _ActionSheetHeader = title ? /* @__PURE__ */ jsx32(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
5025
+ const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx32(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx32(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
5026
+ const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
5027
+ switch (child.type) {
5028
+ case ActionSheetHeader:
5029
+ case ActionSheetFooter:
5030
+ return false;
5031
+ default:
5032
+ return true;
5033
+ }
5034
+ return true;
5035
+ }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx32(Fragment10, {});
5036
+ return /* @__PURE__ */ jsxs4("div", { className: "k-actionsheet-container", children: [
5037
+ overlay && /* @__PURE__ */ jsx32("div", { className: "k-overlay" }),
5038
+ /* @__PURE__ */ jsx32(
5039
+ AnimationContainer,
5040
+ {
5041
+ animationStyle: {
5042
+ [`${fullscreen === true ? "top" : side}`]: 0,
5043
+ [`${fullscreen === true ? "width" : null}`]: "100%",
5044
+ [`${fullscreen === true ? "height" : null}`]: "100%",
5045
+ [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
5046
+ [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
5047
+ },
5048
+ children: /* @__PURE__ */ jsx32(
5049
+ "div",
5050
+ {
5051
+ ...other,
5052
+ className: classNames(
5053
+ props.className,
5054
+ ACTIONSHEET_CLASSNAME,
5055
+ {
5056
+ [`k-actionsheet-${side}`]: fullscreen === false,
5057
+ "k-actionsheet-fullscreen": fullscreen === true,
5058
+ "k-adaptive-actionsheet": adaptive
5059
+ }
5060
+ ),
5061
+ children: /* @__PURE__ */ jsxs4(Fragment10, { children: [
5062
+ _ActionSheetHeader,
5063
+ /* @__PURE__ */ jsx32("div", { className: classNames(
5064
+ "k-actionsheet-content",
5065
+ {
5066
+ "!k-overflow-hidden": adaptive
5067
+ }
5068
+ ), children: _ActionSheetContent }),
5069
+ _ActionSheetFooter
5070
+ ] })
5071
+ }
5072
+ )
5073
+ }
5074
+ )
5075
+ ] });
5076
+ };
5077
+ ActionSheet.states = states17;
5078
+ ActionSheet.options = options16;
5079
+ ActionSheet.className = ACTIONSHEET_CLASSNAME;
5080
+ ActionSheet.defaultProps = defaultProps14;
5081
+
5082
+ // src/searchbox/searchbox.spec.tsx
5083
+ import { jsx as jsx33, jsxs as jsxs5 } from "react/jsx-runtime";
5084
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5085
+ var states18 = [
5086
+ States.hover,
5087
+ States.focus,
5088
+ States.valid,
5089
+ States.invalid,
5090
+ States.required,
5091
+ States.disabled,
5092
+ States.loading
5093
+ ];
5094
+ var options17 = {
5095
+ size: [Size.small, Size.medium, Size.large],
5096
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5097
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5098
+ };
5099
+ var defaultProps15 = {
5100
+ showIcon: true,
5101
+ icon: "search",
5102
+ size: Input.defaultProps.size,
5103
+ rounded: Input.defaultProps.rounded,
5104
+ fillMode: Input.defaultProps.fillMode
5105
+ };
5106
+ var Searchbox = (props) => {
5107
+ const {
5108
+ value,
5109
+ placeholder,
5110
+ size,
5111
+ rounded,
5112
+ fillMode,
5113
+ hover,
5114
+ focus,
5115
+ valid,
5116
+ invalid,
5117
+ required,
5118
+ loading,
5119
+ disabled,
5120
+ showIcon = defaultProps15.showIcon,
5121
+ icon = defaultProps15.icon,
5122
+ ...other
5123
+ } = props;
5124
+ return /* @__PURE__ */ jsxs5(
5125
+ Input,
5126
+ {
5127
+ ...other,
5128
+ size,
5129
+ rounded,
5130
+ fillMode,
5131
+ hover,
5132
+ focus,
5133
+ valid,
5134
+ invalid,
5135
+ required,
5136
+ loading,
5137
+ disabled,
5138
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5139
+ children: [
5140
+ showIcon && /* @__PURE__ */ jsx33(Icon, { className: "k-input-icon", icon }),
5141
+ /* @__PURE__ */ jsx33(InputInnerInput, { placeholder, value }),
5142
+ /* @__PURE__ */ jsx33(InputLoadingIcon, { ...props }),
5143
+ /* @__PURE__ */ jsx33(InputValidationIcon, { ...props }),
5144
+ /* @__PURE__ */ jsx33(InputClearValue, { ...props })
5145
+ ]
5146
+ }
5147
+ );
5148
+ };
5149
+ Searchbox.states = states18;
5150
+ Searchbox.options = options17;
5151
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5152
+ Searchbox.defaultProps = defaultProps15;
5153
+
5154
+ // src/searchbox/templates/searchbox-normal.tsx
5155
+ import { jsx as jsx34 } from "react/jsx-runtime";
5156
+
5157
+ // src/action-sheet/actionsheet-header.tsx
5158
+ import { Fragment as Fragment11, jsx as jsx35, jsxs as jsxs6 } from "react/jsx-runtime";
5159
+ var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5160
+ var ActionSheetHeader = (props) => {
5161
+ const {
5162
+ title,
5163
+ subTitle,
5164
+ actions,
5165
+ filter,
5166
+ ...other
5167
+ } = props;
5168
+ return /* @__PURE__ */ jsx35(
5169
+ "div",
5170
+ {
5171
+ ...other,
5172
+ className: classNames(
5173
+ props.className,
5174
+ ACTIONSHEETHEADER_CLASSNAME
5175
+ ),
5176
+ children: /* @__PURE__ */ jsxs6(Fragment11, { children: [
5177
+ /* @__PURE__ */ jsxs6("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5178
+ !props.children && (title || subTitle) && /* @__PURE__ */ jsx35(Fragment11, { children: /* @__PURE__ */ jsxs6("div", { className: "k-actionsheet-title", children: [
5179
+ title !== "" && /* @__PURE__ */ jsx35("div", { className: "k-text-center", children: title }),
5180
+ subTitle !== "" && /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5181
+ ] }) }),
5182
+ props.children && /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-title", children: props.children }),
5183
+ actions && /* @__PURE__ */ jsx35(Fragment11, { children: /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx35(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5184
+ ] }),
5185
+ filter && /* @__PURE__ */ jsx35(Fragment11, { children: /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx35(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5186
+ ] })
5187
+ }
5188
+ );
5189
+ };
5190
+
5191
+ // src/action-buttons/action-buttons.spec.tsx
5192
+ import { jsx as jsx36 } from "react/jsx-runtime";
5193
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5194
+ var states19 = [];
5195
+ var options18 = {};
5196
+ var defaultProps16 = {
5197
+ alignment: "start",
5198
+ orientation: "horizontal"
5199
+ };
5200
+ var ActionButtons = (props) => {
5201
+ const {
5202
+ alignment = defaultProps16.alignment,
5203
+ orientation = defaultProps16.orientation,
5204
+ ...other
5205
+ } = props;
5206
+ return /* @__PURE__ */ jsx36(
5207
+ "div",
5208
+ {
5209
+ ...other,
5210
+ className: classNames(
5211
+ ACTIONBUTTONS_CLASSNAME,
5212
+ {
5213
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5214
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5215
+ },
5216
+ props.className
5217
+ ),
5218
+ children: props.children
5219
+ }
5220
+ );
5221
+ };
5222
+ ActionButtons.states = states19;
5223
+ ActionButtons.options = options18;
5224
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5225
+ ActionButtons.defaultProps = defaultProps16;
5226
+ var action_buttons_spec_default = ActionButtons;
5227
+
5228
+ // src/action-sheet/actionsheet-footer.tsx
5229
+ import { Fragment as Fragment12, jsx as jsx37, jsxs as jsxs7 } from "react/jsx-runtime";
5230
+ var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5231
+ var ActionSheetFooter = (props) => {
5232
+ const {
5233
+ actions,
5234
+ ...other
5235
+ } = props;
5236
+ return /* @__PURE__ */ jsx37(
5237
+ action_buttons_spec_default,
5238
+ {
5239
+ ...other,
5240
+ className: classNames(
5241
+ props.className,
5242
+ ACTIONSHEETFOOTER_CLASSNAME
5243
+ ),
5244
+ alignment: "stretched",
5245
+ children: /* @__PURE__ */ jsxs7(Fragment12, { children: [
5246
+ actions && actions.map((action, index) => {
5247
+ if (action === "|") {
5248
+ return /* @__PURE__ */ jsx37("span", { className: "k-separator" }, index);
5249
+ }
5250
+ if (action === " ") {
5251
+ return /* @__PURE__ */ jsx37("span", { className: "k-spacer" }, index);
5252
+ }
5253
+ const importantFlag = action.startsWith("!");
5254
+ const actionName = importantFlag ? action.substring(1) : action;
5255
+ return /* @__PURE__ */ jsx37(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5256
+ }),
5257
+ !actions && props.children
5258
+ ] })
5259
+ }
5260
+ );
5261
+ };
5262
+
5263
+ // src/action-sheet/actionsheet-items.tsx
5264
+ import { jsx as jsx38 } from "react/jsx-runtime";
5265
+ var ActionSheetItems = (props) => {
5266
+ const {
5267
+ ...other
5268
+ } = props;
5269
+ return /* @__PURE__ */ jsx38(
5270
+ "div",
5271
+ {
5272
+ ...other,
5273
+ className: classNames(
5274
+ props.className,
5275
+ "k-list-ul"
5276
+ ),
5277
+ children: props.children
5278
+ }
5279
+ );
5280
+ };
5281
+
5282
+ // src/action-sheet/actionsheet-item.tsx
5283
+ import { Fragment as Fragment13, jsx as jsx39, jsxs as jsxs8 } from "react/jsx-runtime";
5284
+ var states20 = [
5285
+ States.hover,
5286
+ States.focus,
5287
+ States.selected,
5288
+ States.disabled
5289
+ ];
5290
+
5291
+ // src/treeview/treeview.spec.tsx
5292
+ import { jsx as jsx40 } from "react/jsx-runtime";
5293
+ import { createElement } from "react";
5294
+ var TREEVIEW_CLASSNAME = `k-treeview`;
5295
+ var states21 = [];
5296
+ var options19 = {
5297
+ size: [Size.small, Size.medium, Size.large]
5298
+ };
5299
+ var defaultProps17 = {
5300
+ size: Size.medium
5301
+ };
5302
+ var Treeview = (props) => {
5303
+ const {
5304
+ size = defaultProps17.size,
5305
+ children,
5306
+ dir,
5307
+ ...other
5308
+ } = props;
5309
+ const listChildren = [];
5310
+ if (children) {
5311
+ if (Array.isArray(children)) {
5312
+ children.map((child, index) => {
5313
+ if (child.type === TreeviewItem) {
5314
+ listChildren.push(
5315
+ /* @__PURE__ */ createElement(TreeviewItem, { ...child.props, dir, key: index })
5316
+ );
5317
+ }
5318
+ if (child.type === TreeviewGroup) {
5319
+ listChildren.push(
5320
+ /* @__PURE__ */ createElement(TreeviewGroup, { ...child.props, dir, key: index })
5321
+ );
5322
+ }
5323
+ });
5324
+ } else {
5325
+ if (children.type === TreeviewItem) {
5326
+ listChildren.push(
5327
+ /* @__PURE__ */ jsx40(TreeviewItem, { ...children.props, dir })
5328
+ );
5329
+ }
5330
+ if (children.type === TreeviewGroup) {
5331
+ listChildren.push(
5332
+ /* @__PURE__ */ jsx40(TreeviewGroup, { ...children.props, dir })
5333
+ );
5334
+ }
5335
+ }
5336
+ }
5337
+ return /* @__PURE__ */ jsx40(
5338
+ "div",
5339
+ {
5340
+ ...other,
5341
+ dir,
5342
+ className: classNames(
5343
+ props.className,
5344
+ TREEVIEW_CLASSNAME,
5345
+ optionClassNames(TREEVIEW_CLASSNAME, {
5346
+ size
5347
+ })
5348
+ ),
5349
+ children: /* @__PURE__ */ jsx40(TreeviewGroup, { className: "k-treeview-lines", dir, children: listChildren })
5350
+ }
5351
+ );
5352
+ };
5353
+ Treeview.states = states21;
5354
+ Treeview.options = options19;
5355
+ Treeview.className = TREEVIEW_CLASSNAME;
5356
+ Treeview.defaultProps = defaultProps17;
5357
+
5358
+ // src/checkbox/checkbox.spec.tsx
5359
+ import { jsx as jsx41 } from "react/jsx-runtime";
5360
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
5361
+ var states22 = [
5362
+ States.hover,
5363
+ States.focus,
5364
+ States.valid,
5365
+ States.invalid,
5366
+ States.required,
5367
+ States.disabled,
5368
+ States.checked,
5369
+ States.indeterminate
5370
+ ];
5371
+ var options20 = {
5372
+ size: [Size.small, Size.medium, Size.large],
5373
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5374
+ };
5375
+ var defaultProps18 = {
5376
+ size: Size.medium,
5377
+ rounded: Roundness.medium
5378
+ };
5379
+ var Checkbox = (props) => {
5380
+ const {
5381
+ id,
5382
+ checked,
5383
+ indeterminate,
5384
+ hover,
5385
+ focus,
5386
+ disabled,
5387
+ invalid,
5388
+ valid,
5389
+ required,
5390
+ size = defaultProps18.size,
5391
+ rounded = defaultProps18.rounded,
5392
+ ...other
5393
+ } = props;
5394
+ return /* @__PURE__ */ jsx41("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx41(
5395
+ "input",
5396
+ {
5397
+ ...other,
5398
+ id,
5399
+ type: "checkbox",
5400
+ checked,
5401
+ required,
5402
+ className: classNames(
5403
+ props.className,
5404
+ CHECKBOX_CLASSNAME,
5405
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5406
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5407
+ )
5408
+ }
5409
+ ) });
5410
+ };
5411
+ Checkbox.states = states22;
5412
+ Checkbox.options = options20;
5413
+ Checkbox.className = CHECKBOX_CLASSNAME;
5414
+ Checkbox.defaultProps = defaultProps18;
5415
+
5416
+ // src/checkbox/checkbox-group.spec.tsx
5417
+ import { jsx as jsx42 } from "react/jsx-runtime";
5418
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5419
+ var states23 = [];
5420
+ var options21 = {};
5421
+ var defaultProps19 = {
5422
+ layout: "vertical"
5423
+ };
5424
+ var CheckboxGroup = (props) => {
5425
+ const {
5426
+ layout = defaultProps19.layout,
5427
+ ...other
5428
+ } = props;
5429
+ return /* @__PURE__ */ jsx42(
5430
+ "ul",
5431
+ {
5432
+ ...other,
5433
+ className: classNames(
5434
+ props.className,
5435
+ CHECKBOXGROUP_CLASSNAME,
5436
+ {
5437
+ [`k-list-${layout}`]: layout
5438
+ }
5439
+ ),
5440
+ children: props.children
5441
+ }
5442
+ );
5443
+ };
5444
+ CheckboxGroup.states = states23;
5445
+ CheckboxGroup.options = options21;
5446
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5447
+ CheckboxGroup.defaultProps = defaultProps19;
5448
+
5449
+ // src/checkbox/checkbox-item.spec.tsx
5450
+ import { jsx as jsx43 } from "react/jsx-runtime";
5451
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5452
+ var states24 = [];
5453
+ var options22 = {};
5454
+ var defaultProps20 = {};
5455
+ var CheckboxItem = (props) => {
5456
+ const {
5457
+ ...other
5458
+ } = props;
5459
+ return /* @__PURE__ */ jsx43(
5460
+ "li",
5461
+ {
5462
+ ...other,
5463
+ className: classNames(
5464
+ props.className,
5465
+ CHECKBOXITEM_CLASSNAME
5466
+ ),
5467
+ children: props.children
5468
+ }
5469
+ );
5470
+ };
5471
+ CheckboxItem.states = states24;
5472
+ CheckboxItem.options = options22;
5473
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5474
+ CheckboxItem.defaultProps = defaultProps20;
5475
+
5476
+ // src/checkbox/templates/checkbox-with-label-after.tsx
5477
+ import { Fragment as Fragment14, jsx as jsx44, jsxs as jsxs9 } from "react/jsx-runtime";
5478
+
5479
+ // src/checkbox/templates/checkbox-with-label-before.tsx
5480
+ import { Fragment as Fragment15, jsx as jsx45, jsxs as jsxs10 } from "react/jsx-runtime";
5481
+
5482
+ // src/checkbox/templates/checkbox-normal.tsx
5483
+ import { jsx as jsx46 } from "react/jsx-runtime";
5484
+
5485
+ // src/treeview/treeview-group.tsx
5486
+ import { jsx as jsx47 } from "react/jsx-runtime";
5487
+ import { createElement as createElement2 } from "react";
5488
+ var className9 = `k-treeview-group`;
5489
+ var TreeviewGroup = (props) => {
5490
+ const {
5491
+ children,
5492
+ dir
5493
+ } = props;
5494
+ const listChildren = [];
5495
+ if (children) {
5496
+ if (Array.isArray(children)) {
5497
+ children.map((child, index) => {
5498
+ if (child.type === treeview_item_spec_default) {
5499
+ listChildren.push(
5500
+ /* @__PURE__ */ createElement2(treeview_item_spec_default, { ...child.props, dir, key: index })
5501
+ );
5502
+ }
5503
+ });
5504
+ } else {
5505
+ if (children.type === treeview_item_spec_default) {
5506
+ listChildren.push(
5507
+ /* @__PURE__ */ jsx47(treeview_item_spec_default, { ...children.props, dir })
5508
+ );
5509
+ }
5510
+ }
5511
+ }
5512
+ return /* @__PURE__ */ jsx47("ul", { className: classNames(props.className, className9), children: listChildren });
5513
+ };
5514
+
5515
+ // src/treeview/treeview-leaf.tsx
5516
+ import { jsx as jsx48, jsxs as jsxs11 } from "react/jsx-runtime";
5517
+ var TREEVIEWLEAF_CLASSNAME = `k-treeview-leaf`;
5518
+ var states25 = [
5519
+ States.hover,
5520
+ States.focus,
5521
+ States.selected
5522
+ ];
5523
+ var options23 = {};
5524
+ var TreeviewLeaf = (props) => {
5525
+ const {
5526
+ text,
5527
+ showIcon,
5528
+ icon,
5529
+ hover,
5530
+ focus,
5531
+ selected,
5532
+ ...other
5533
+ } = props;
5534
+ return /* @__PURE__ */ jsxs11(
5535
+ "span",
5536
+ {
5537
+ ...other,
5538
+ className: classNames(
5539
+ props.className,
5540
+ TREEVIEWLEAF_CLASSNAME,
5541
+ stateClassNames(TREEVIEWLEAF_CLASSNAME, {
5542
+ hover,
5543
+ focus,
5544
+ selected
5545
+ })
5546
+ ),
5547
+ children: [
5548
+ showIcon && /* @__PURE__ */ jsx48(Icon, { icon }),
5549
+ /* @__PURE__ */ jsx48("span", { className: "k-treeview-leaf-text", children: text })
5550
+ ]
5551
+ }
5552
+ );
5553
+ };
5554
+ TreeviewLeaf.states = states25;
5555
+ TreeviewLeaf.options = options23;
5556
+ TreeviewLeaf.className = TREEVIEWLEAF_CLASSNAME;
5557
+ var treeview_leaf_default = TreeviewLeaf;
5558
+
5559
+ // src/treeview/treeview-item.spec.tsx
5560
+ import { Fragment as Fragment16, jsx as jsx49, jsxs as jsxs12 } from "react/jsx-runtime";
5561
+ import { createElement as createElement3 } from "react";
5562
+ var TREEVIEWITEM_CLASSNAME = `k-treeview-item`;
5563
+ var states26 = [
5564
+ States.hover,
5565
+ States.focus,
5566
+ States.selected,
5567
+ States.disabled
5568
+ ];
5569
+ var options24 = {};
5570
+ var defaultProps21 = {};
5571
+ var TreeviewItem = (props) => {
5572
+ const {
5573
+ leafClassName,
5574
+ children,
5575
+ hasChildren,
5576
+ expanded,
5577
+ text,
5578
+ showIcon,
5579
+ icon,
5580
+ showCheckbox,
5581
+ checked,
5582
+ hover,
5583
+ focus,
5584
+ selected,
5585
+ disabled,
5586
+ dir,
5587
+ ...other
5588
+ } = props;
5589
+ const _hasChildren = hasChildren || children;
5590
+ const listChildren = [];
5591
+ if (children) {
5592
+ if (Array.isArray(children)) {
5593
+ children.map((child, index) => {
5594
+ if (child.type === TreeviewGroup) {
5595
+ listChildren.push(
5596
+ /* @__PURE__ */ createElement3(TreeviewGroup, { ...child.props, dir, key: index }, child.props.children)
5597
+ );
5598
+ }
5599
+ });
5600
+ } else {
5601
+ if (children.type === TreeviewGroup) {
5602
+ listChildren.push(
5603
+ /* @__PURE__ */ jsx49(TreeviewGroup, { ...children.props, dir, children: children.props.children })
5604
+ );
5605
+ }
5606
+ }
5607
+ }
5608
+ return /* @__PURE__ */ jsxs12(
5609
+ "li",
5610
+ {
5611
+ ...other,
5612
+ className: classNames(
5613
+ props.className,
5614
+ TREEVIEWITEM_CLASSNAME
5615
+ ),
5616
+ children: [
5617
+ /* @__PURE__ */ jsxs12("span", { className: "k-treeview-mid", children: [
5618
+ _hasChildren && /* @__PURE__ */ jsx49(
5619
+ "span",
5620
+ {
5621
+ className: classNames(
5622
+ "k-treeview-toggle",
5623
+ stateClassNames("k-treeview-toggle", { disabled })
5624
+ ),
5625
+ children: /* @__PURE__ */ jsx49(Icon, { icon: expanded ? "caret-alt-down" : dir === "rtl" ? "caret-alt-left" : "caret-alt-right" })
5626
+ }
5627
+ ),
5628
+ showCheckbox && /* @__PURE__ */ jsx49(Checkbox, { checked, disabled }),
5629
+ /* @__PURE__ */ jsx49(
5630
+ treeview_leaf_default,
5631
+ {
5632
+ className: classNames(
5633
+ leafClassName,
5634
+ stateClassNames(leafClassName, { disabled })
5635
+ ),
5636
+ text,
5637
+ showIcon,
5638
+ icon,
5639
+ hover,
5640
+ focus,
5641
+ selected
5642
+ }
5643
+ )
5644
+ ] }),
5645
+ expanded && _hasChildren && /* @__PURE__ */ jsx49(Fragment16, { children: listChildren })
5646
+ ]
5647
+ }
5648
+ );
5649
+ };
5650
+ TreeviewItem.states = states26;
5651
+ TreeviewItem.options = options24;
5652
+ TreeviewItem.className = TREEVIEWITEM_CLASSNAME;
5653
+ TreeviewItem.defaultProps = defaultProps21;
5654
+ var treeview_item_spec_default = TreeviewItem;
5655
+
5656
+ // src/treeview/templates/treeview-normal.tsx
5657
+ import { jsx as jsx50 } from "react/jsx-runtime";
5658
+
5659
+ // src/treeview/templates/treeview-hierarchy.tsx
5660
+ import { jsx as jsx51, jsxs as jsxs13 } from "react/jsx-runtime";
5661
+
5662
+ // src/treeview/templates/treeview-icons.tsx
5663
+ import { jsx as jsx52, jsxs as jsxs14 } from "react/jsx-runtime";
5664
+
5665
+ // src/treeview/templates/treeview-checkboxes.tsx
5666
+ import { jsx as jsx53, jsxs as jsxs15 } from "react/jsx-runtime";
5667
+
5668
+ // src/multiselecttree/multiselecttree.spec.tsx
5669
+ import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs16 } from "react/jsx-runtime";
5002
5670
  var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5003
- var states17 = [
5671
+ var states27 = [
5004
5672
  States.hover,
5005
5673
  States.focus,
5006
5674
  States.valid,
@@ -5010,12 +5678,12 @@ var states17 = [
5010
5678
  States.loading,
5011
5679
  States.readonly
5012
5680
  ];
5013
- var options16 = {
5681
+ var options25 = {
5014
5682
  size: [Size.small, Size.medium, Size.large],
5015
5683
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5016
5684
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5017
5685
  };
5018
- var defaultProps14 = {
5686
+ var defaultProps22 = {
5019
5687
  size: Input.defaultProps.size,
5020
5688
  rounded: Input.defaultProps.rounded,
5021
5689
  fillMode: Input.defaultProps.fillMode
@@ -5041,10 +5709,12 @@ var MultiSelectTree = (props) => {
5041
5709
  readonly,
5042
5710
  opened,
5043
5711
  dir,
5712
+ adaptive,
5713
+ adaptiveSettings,
5044
5714
  ...other
5045
5715
  } = props;
5046
- return /* @__PURE__ */ jsxs4(Fragment10, { children: [
5047
- /* @__PURE__ */ jsxs4(
5716
+ return /* @__PURE__ */ jsxs16(Fragment17, { children: [
5717
+ /* @__PURE__ */ jsxs16(
5048
5718
  Input,
5049
5719
  {
5050
5720
  ...other,
@@ -5062,10 +5732,10 @@ var MultiSelectTree = (props) => {
5062
5732
  readonly,
5063
5733
  className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5064
5734
  children: [
5065
- /* @__PURE__ */ jsx32(InputPrefix, { children: prefix }),
5066
- /* @__PURE__ */ jsx32(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ jsx32(Fragment10, { children: tags }) }),
5067
- /* @__PURE__ */ jsx32("span", { className: "k-input-inner", children: /* @__PURE__ */ jsx32("span", { className: "k-input-value-text", children: placeholder }) }),
5068
- /* @__PURE__ */ jsx32(
5735
+ /* @__PURE__ */ jsx54(InputPrefix, { children: prefix }),
5736
+ /* @__PURE__ */ jsx54(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ jsx54(Fragment17, { children: tags }) }),
5737
+ /* @__PURE__ */ jsx54("span", { className: "k-input-inner", children: /* @__PURE__ */ jsx54("span", { className: "k-input-value-text", children: placeholder }) }),
5738
+ /* @__PURE__ */ jsx54(
5069
5739
  InputValidationIcon,
5070
5740
  {
5071
5741
  valid,
@@ -5074,14 +5744,14 @@ var MultiSelectTree = (props) => {
5074
5744
  disabled
5075
5745
  }
5076
5746
  ),
5077
- /* @__PURE__ */ jsx32(
5747
+ /* @__PURE__ */ jsx54(
5078
5748
  InputLoadingIcon,
5079
5749
  {
5080
5750
  loading,
5081
5751
  disabled
5082
5752
  }
5083
5753
  ),
5084
- /* @__PURE__ */ jsx32(
5754
+ /* @__PURE__ */ jsx54(
5085
5755
  InputClearValue,
5086
5756
  {
5087
5757
  loading,
@@ -5090,8 +5760,8 @@ var MultiSelectTree = (props) => {
5090
5760
  value: tags ? "value" : ""
5091
5761
  }
5092
5762
  ),
5093
- /* @__PURE__ */ jsx32(InputSuffix, { children: suffix }),
5094
- showArrowButton && /* @__PURE__ */ jsx32(
5763
+ /* @__PURE__ */ jsx54(InputSuffix, { children: suffix }),
5764
+ showArrowButton && /* @__PURE__ */ jsx54(
5095
5765
  Button,
5096
5766
  {
5097
5767
  className: "k-input-button",
@@ -5104,13 +5774,37 @@ var MultiSelectTree = (props) => {
5104
5774
  ]
5105
5775
  }
5106
5776
  ),
5107
- opened && popup && /* @__PURE__ */ jsx32(Popup, { className: "k-multiselecttree-popup", dir, children: popup })
5777
+ opened && popup && /* @__PURE__ */ jsx54(Popup, { className: "k-multiselecttree-popup", dir, children: popup }),
5778
+ adaptive && /* @__PURE__ */ jsxs16(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5779
+ /* @__PURE__ */ jsx54(
5780
+ ActionSheetHeader,
5781
+ {
5782
+ filter: true,
5783
+ actions: ["x"],
5784
+ title: "Select value"
5785
+ }
5786
+ ),
5787
+ /* @__PURE__ */ jsxs16(Treeview, { size: "large", children: [
5788
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Root 1" }),
5789
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Root 2", expanded: true, children: /* @__PURE__ */ jsxs16(TreeviewGroup, { children: [
5790
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.1" }),
5791
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.2", children: /* @__PURE__ */ jsx54(TreeviewGroup, { children: /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.2.1" }) }) }),
5792
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.3" }),
5793
+ /* @__PURE__ */ jsx54(TreeviewItem, { leafClassName: "k-treeview-load-more-button", text: "Load more ..." })
5794
+ ] }) }),
5795
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Root 3", children: /* @__PURE__ */ jsxs16(TreeviewGroup, { children: [
5796
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 3.1" }),
5797
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 3.2" }),
5798
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 3.3" })
5799
+ ] }) })
5800
+ ] })
5801
+ ] })
5108
5802
  ] });
5109
5803
  };
5110
- MultiSelectTree.states = states17;
5111
- MultiSelectTree.options = options16;
5804
+ MultiSelectTree.states = states27;
5805
+ MultiSelectTree.options = options25;
5112
5806
  MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5113
- MultiSelectTree.defaultProps = defaultProps14;
5807
+ MultiSelectTree.defaultProps = defaultProps22;
5114
5808
  var multiselecttree_spec_default = MultiSelectTree;
5115
5809
  export {
5116
5810
  MULTISELECTTREE_CLASSNAME,