@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
@@ -130,11 +130,122 @@ var States = {
130
130
  "readonly": "readonly"
131
131
  };
132
132
 
133
- // src/icon/font-icon.spec.tsx
133
+ // src/input/input.spec.tsx
134
134
  var import_jsx_runtime = require("react/jsx-runtime");
135
- var FONTICON_CLASSNAME = `k-icon k-font-icon`;
136
- var states = [];
135
+ var INPUT_CLASSNAME = `k-input`;
136
+ var states = [
137
+ States.hover,
138
+ States.focus,
139
+ States.valid,
140
+ States.invalid,
141
+ States.required,
142
+ States.disabled,
143
+ States.loading,
144
+ States.readonly
145
+ ];
137
146
  var options = {
147
+ size: [Size.small, Size.medium, Size.large],
148
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
149
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
150
+ };
151
+ var defaultProps = {
152
+ size: Size.medium,
153
+ rounded: Size.medium,
154
+ fillMode: FillMode.solid
155
+ };
156
+ var Input = (props) => {
157
+ const {
158
+ hover,
159
+ focus,
160
+ disabled,
161
+ invalid,
162
+ valid,
163
+ loading,
164
+ readonly,
165
+ size = defaultProps.size,
166
+ rounded = defaultProps.rounded,
167
+ fillMode = defaultProps.fillMode,
168
+ ...other
169
+ } = props;
170
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
171
+ "span",
172
+ {
173
+ ...other,
174
+ className: classNames(
175
+ props.className,
176
+ INPUT_CLASSNAME,
177
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
178
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
179
+ )
180
+ }
181
+ );
182
+ };
183
+ Input.states = states;
184
+ Input.options = options;
185
+ Input.className = INPUT_CLASSNAME;
186
+ Input.defaultProps = defaultProps;
187
+
188
+ // src/input/picker.spec.tsx
189
+ var import_jsx_runtime2 = require("react/jsx-runtime");
190
+ var PICKER_CLASSNAME = `k-picker`;
191
+ var pickerStates = [
192
+ States.hover,
193
+ States.focus,
194
+ States.valid,
195
+ States.invalid,
196
+ States.required,
197
+ States.disabled,
198
+ States.loading,
199
+ States.readonly
200
+ ];
201
+ var pickerOptions = {
202
+ size: [Size.small, Size.medium, Size.large],
203
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
204
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
205
+ };
206
+ var defaultProps2 = {
207
+ size: Size.medium,
208
+ rounded: Roundness.medium,
209
+ fillMode: FillMode.solid
210
+ };
211
+ var Picker = (props) => {
212
+ const {
213
+ hover,
214
+ focus,
215
+ disabled,
216
+ invalid,
217
+ valid,
218
+ loading,
219
+ readonly,
220
+ size = defaultProps2.size,
221
+ rounded = defaultProps2.rounded,
222
+ fillMode = defaultProps2.fillMode,
223
+ ...other
224
+ } = props;
225
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
226
+ "span",
227
+ {
228
+ ...other,
229
+ className: classNames(
230
+ props.className,
231
+ PICKER_CLASSNAME,
232
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
233
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
234
+ ),
235
+ children: props.children
236
+ }
237
+ );
238
+ };
239
+ Picker.states = pickerStates;
240
+ Picker.options = pickerOptions;
241
+ Picker.className = PICKER_CLASSNAME;
242
+ Picker.defaultProps = defaultProps2;
243
+
244
+ // src/icon/font-icon.spec.tsx
245
+ var import_jsx_runtime3 = require("react/jsx-runtime");
246
+ var FONTICON_CLASSNAME = `k-icon k-font-icon`;
247
+ var states2 = [];
248
+ var options2 = {
138
249
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
139
250
  themeColor: [
140
251
  ThemeColor.base,
@@ -149,7 +260,7 @@ var options = {
149
260
  ThemeColor.dark
150
261
  ]
151
262
  };
152
- var defaultProps = {};
263
+ var defaultProps3 = {};
153
264
  var FontIcon = (props) => {
154
265
  const {
155
266
  size,
@@ -160,9 +271,9 @@ var FontIcon = (props) => {
160
271
  ...other
161
272
  } = props;
162
273
  if (!icon) {
163
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
274
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
164
275
  }
165
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
276
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
166
277
  "span",
167
278
  {
168
279
  ...other,
@@ -183,17 +294,17 @@ var FontIcon = (props) => {
183
294
  }
184
295
  );
185
296
  };
186
- FontIcon.states = states;
187
- FontIcon.options = options;
297
+ FontIcon.states = states2;
298
+ FontIcon.options = options2;
188
299
  FontIcon.className = FONTICON_CLASSNAME;
189
- FontIcon.defaultProps = defaultProps;
300
+ FontIcon.defaultProps = defaultProps3;
190
301
  var font_icon_spec_default = FontIcon;
191
302
 
192
303
  // src/icon/svg-icon.spec.tsx
193
- var import_jsx_runtime2 = require("react/jsx-runtime");
304
+ var import_jsx_runtime4 = require("react/jsx-runtime");
194
305
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
195
- var states2 = [];
196
- var options2 = {
306
+ var states3 = [];
307
+ var options3 = {
197
308
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
198
309
  themeColor: [
199
310
  ThemeColor.base,
@@ -208,7 +319,7 @@ var options2 = {
208
319
  ThemeColor.dark
209
320
  ]
210
321
  };
211
- var defaultProps2 = {
322
+ var defaultProps4 = {
212
323
  viewBox: "0 0 24 24"
213
324
  };
214
325
  var SvgIcon = (props) => {
@@ -217,15 +328,15 @@ var SvgIcon = (props) => {
217
328
  themeColor,
218
329
  rotate,
219
330
  flip,
220
- viewBox = defaultProps2.viewBox,
331
+ viewBox = defaultProps4.viewBox,
221
332
  icon,
222
333
  ...other
223
334
  } = props;
224
335
  if (!icon) {
225
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
336
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {});
226
337
  }
227
338
  if (icon === "none") {
228
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
339
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
229
340
  "span",
230
341
  {
231
342
  ...other,
@@ -238,7 +349,7 @@ var SvgIcon = (props) => {
238
349
  );
239
350
  }
240
351
  const name = typeof icon === "object" && icon.name && icon.name;
241
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
352
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
242
353
  "span",
243
354
  {
244
355
  ...other,
@@ -256,7 +367,7 @@ var SvgIcon = (props) => {
256
367
  "k-flip-v": flip === "v" || flip === "both"
257
368
  }
258
369
  ),
259
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
370
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
260
371
  "svg",
261
372
  {
262
373
  "aria-hidden": true,
@@ -270,10 +381,10 @@ var SvgIcon = (props) => {
270
381
  }
271
382
  );
272
383
  };
273
- SvgIcon.states = states2;
274
- SvgIcon.options = options2;
384
+ SvgIcon.states = states3;
385
+ SvgIcon.options = options3;
275
386
  SvgIcon.className = SVGICON_CLASSNAME;
276
- SvgIcon.defaultProps = defaultProps2;
387
+ SvgIcon.defaultProps = defaultProps4;
277
388
  var svg_icon_spec_default = SvgIcon;
278
389
 
279
390
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4272,13 +4383,13 @@ var chartChoroplethIcon = {
4272
4383
  };
4273
4384
 
4274
4385
  // src/icon/icon.spec.tsx
4275
- var import_jsx_runtime3 = require("react/jsx-runtime");
4386
+ var import_jsx_runtime5 = require("react/jsx-runtime");
4276
4387
  var snakeToCamel = (str) => str.toLowerCase().replace(
4277
4388
  /([-_][a-z])/g,
4278
4389
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4279
4390
  );
4280
- var states3 = [];
4281
- var options3 = {
4391
+ var states4 = [];
4392
+ var options4 = {
4282
4393
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4283
4394
  themeColor: [
4284
4395
  ThemeColor.base,
@@ -4293,7 +4404,7 @@ var options3 = {
4293
4404
  ThemeColor.dark
4294
4405
  ]
4295
4406
  };
4296
- var defaultProps3 = {
4407
+ var defaultProps5 = {
4297
4408
  viewBox: "0 0 24 24",
4298
4409
  type: "svg"
4299
4410
  };
@@ -4302,684 +4413,573 @@ var Icon = (props) => {
4302
4413
  size,
4303
4414
  themeColor,
4304
4415
  icon,
4305
- type = defaultProps3.type,
4416
+ type = defaultProps5.type,
4306
4417
  rotate,
4307
4418
  flip,
4308
- viewBox = defaultProps3.viewBox,
4419
+ viewBox = defaultProps5.viewBox,
4309
4420
  ...other
4310
4421
  } = props;
4311
4422
  if (!icon) {
4312
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4423
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
4313
4424
  }
4314
4425
  if (type === "svg") {
4315
4426
  if (icon === "none") {
4316
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon, size });
4427
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(svg_icon_spec_default, { ...other, icon, size });
4317
4428
  }
4318
4429
  const iconSVG = snakeToCamel(`${icon}-icon`);
4319
4430
  if (!index_es_exports[iconSVG]) {
4320
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4431
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
4321
4432
  }
4322
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4433
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4323
4434
  }
4324
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4435
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4325
4436
  };
4326
- Icon.states = states3;
4327
- Icon.options = options3;
4328
- Icon.defaultProps = defaultProps3;
4437
+ Icon.states = states4;
4438
+ Icon.options = options4;
4439
+ Icon.defaultProps = defaultProps5;
4329
4440
 
4330
- // src/chip/chip-action.tsx
4331
- var import_jsx_runtime4 = require("react/jsx-runtime");
4332
- var CHIPACTION_CLASSNAME = `k-chip-action`;
4333
- var ChipAction = (props) => {
4441
+ // src/input/input-clear-value.tsx
4442
+ var import_jsx_runtime6 = require("react/jsx-runtime");
4443
+ var className = `k-clear-value`;
4444
+ var states5 = [
4445
+ States.disabled,
4446
+ States.loading,
4447
+ States.readonly
4448
+ ];
4449
+ var options5 = {};
4450
+ var InputClearValue = (props) => {
4334
4451
  const {
4335
- type,
4336
- ...other
4452
+ disabled,
4453
+ loading,
4454
+ readonly,
4455
+ value
4337
4456
  } = props;
4338
- let icon;
4339
- switch (type) {
4340
- case "remove" /* REMOVE */:
4341
- icon = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "x-circle", size: "small" });
4342
- break;
4343
- case "more" /* MORE */:
4344
- icon = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "more-vertical", size: "small" });
4345
- break;
4346
- default:
4347
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: type, size: "small" });
4457
+ if (disabled || readonly || loading || !value) {
4458
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
4348
4459
  }
4349
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
4350
- "span",
4460
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { icon: "x" }) });
4461
+ };
4462
+ InputClearValue.states = states5;
4463
+ InputClearValue.options = options5;
4464
+ InputClearValue.className = className;
4465
+
4466
+ // src/input/input-inner-input.tsx
4467
+ var import_jsx_runtime7 = require("react/jsx-runtime");
4468
+ var className2 = `k-input-inner`;
4469
+ var states6 = [];
4470
+ var options6 = {};
4471
+ var defaultProps6 = {
4472
+ type: "text",
4473
+ autocomplete: "off",
4474
+ value: "",
4475
+ placeholder: ""
4476
+ };
4477
+ var InputInnerInput = (props) => {
4478
+ const {
4479
+ value = defaultProps6.value,
4480
+ type = defaultProps6.type,
4481
+ placeholder = defaultProps6.placeholder,
4482
+ autocomplete = defaultProps6.autocomplete,
4483
+ ...other
4484
+ } = props;
4485
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4486
+ "input",
4351
4487
  {
4352
4488
  ...other,
4353
- className: classNames(
4354
- props.className,
4355
- CHIPACTION_CLASSNAME,
4356
- `k-chip-${type}-action`
4357
- ),
4358
- children: icon
4489
+ type,
4490
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
4491
+ placeholder,
4492
+ autoComplete: autocomplete,
4493
+ defaultValue: value
4359
4494
  }
4360
4495
  );
4361
4496
  };
4497
+ InputInnerInput.states = states6;
4498
+ InputInnerInput.options = options6;
4499
+ InputInnerInput.className = className2;
4362
4500
 
4363
- // src/avatar/avatar.spec.tsx
4364
- var import_jsx_runtime5 = require("react/jsx-runtime");
4365
- var AVATAR_CLASSNAME = `k-avatar`;
4366
- var states4 = [
4367
- States.hover,
4368
- States.focus,
4369
- States.active,
4370
- States.selected,
4371
- States.disabled
4372
- ];
4373
- var options4 = {
4374
- size: [Size.small, Size.medium, Size.large],
4375
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4376
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
4377
- themeColor: [
4378
- ThemeColor.base,
4379
- ThemeColor.primary,
4380
- ThemeColor.secondary,
4381
- ThemeColor.tertiary,
4382
- ThemeColor.success,
4383
- ThemeColor.warning,
4384
- ThemeColor.error,
4385
- ThemeColor.info,
4386
- ThemeColor.light,
4387
- ThemeColor.dark,
4388
- ThemeColor.inverse
4389
- ]
4390
- };
4391
- var defaultProps4 = {
4392
- type: "text" /* TEXT */,
4393
- size: Size.medium,
4394
- rounded: Roundness.full,
4395
- fillMode: FillMode.solid,
4396
- themeColor: ThemeColor.primary,
4397
- border: false
4398
- };
4399
- var Avatar = (props) => {
4501
+ // src/input/input-inner-span.tsx
4502
+ var import_jsx_runtime8 = require("react/jsx-runtime");
4503
+ var className3 = `k-input-inner`;
4504
+ var states7 = [];
4505
+ var options7 = {};
4506
+ var InputInnerSpan = (props) => {
4400
4507
  const {
4401
- size = defaultProps4.size,
4402
- rounded = defaultProps4.rounded,
4403
- fillMode = defaultProps4.fillMode,
4404
- themeColor = defaultProps4.themeColor,
4405
- type = defaultProps4.type,
4406
- border = defaultProps4.border,
4508
+ value,
4509
+ placeholder,
4510
+ showValue,
4511
+ valueIcon,
4512
+ valueIconName,
4407
4513
  ...other
4408
4514
  } = props;
4409
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
4410
- "div",
4515
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
4516
+ "span",
4411
4517
  {
4412
4518
  ...other,
4413
- className: classNames(
4414
- props.className,
4415
- AVATAR_CLASSNAME,
4416
- optionClassNames(AVATAR_CLASSNAME, {
4417
- size,
4418
- rounded,
4419
- fillMode,
4420
- themeColor
4421
- }),
4422
- {
4423
- [`${AVATAR_CLASSNAME}-bordered`]: border
4424
- }
4425
- ),
4426
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
4519
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
4520
+ children: [
4521
+ valueIcon,
4522
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4523
+ showValue && !value && placeholder,
4524
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "k-input-value-text", children: value })
4525
+ ]
4427
4526
  }
4428
4527
  );
4429
4528
  };
4430
- Avatar.states = states4;
4431
- Avatar.options = options4;
4432
- Avatar.className = AVATAR_CLASSNAME;
4433
- Avatar.defaultProps = defaultProps4;
4434
-
4435
- // src/avatar/templates/avatar-icon.tsx
4436
- var import_jsx_runtime6 = require("react/jsx-runtime");
4437
-
4438
- // src/avatar/templates/avatar-text.tsx
4439
- var import_jsx_runtime7 = require("react/jsx-runtime");
4529
+ InputInnerSpan.states = states7;
4530
+ InputInnerSpan.options = options7;
4531
+ InputInnerSpan.className = className3;
4440
4532
 
4441
- // src/avatar/templates/avatar-image.tsx
4442
- var import_jsx_runtime8 = require("react/jsx-runtime");
4443
-
4444
- // src/chip/chip.spec.tsx
4533
+ // src/input/input-inner-textarea.tsx
4445
4534
  var import_jsx_runtime9 = require("react/jsx-runtime");
4446
- var CHIP_CLASSNAME = `k-chip`;
4447
- var states5 = [
4535
+ var defaultProps7 = {
4536
+ value: "",
4537
+ placeholder: ""
4538
+ };
4539
+ var className4 = `k-input-inner`;
4540
+ var states8 = [];
4541
+ var options8 = {};
4542
+ var InputInnerTextarea = (props) => {
4543
+ const {
4544
+ value = defaultProps7.value,
4545
+ placeholder = defaultProps7.placeholder,
4546
+ rows,
4547
+ ...other
4548
+ } = props;
4549
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
4550
+ "textarea",
4551
+ {
4552
+ ...other,
4553
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
4554
+ placeholder,
4555
+ rows,
4556
+ children: value
4557
+ }
4558
+ );
4559
+ };
4560
+ InputInnerTextarea.states = states8;
4561
+ InputInnerTextarea.options = options8;
4562
+ InputInnerTextarea.className = className4;
4563
+
4564
+ // src/input/input-loading-icon.tsx
4565
+ var import_jsx_runtime10 = require("react/jsx-runtime");
4566
+ var className5 = `k-input-loading-icon`;
4567
+ var states9 = [
4568
+ States.disabled,
4569
+ States.loading
4570
+ ];
4571
+ var InputLoadingIcon = (props) => {
4572
+ const {
4573
+ disabled,
4574
+ loading
4575
+ } = props;
4576
+ if (disabled || !loading) {
4577
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
4578
+ }
4579
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4580
+ };
4581
+
4582
+ // src/input/input-validation-icon.tsx
4583
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4584
+ var className6 = `k-input-validation-icon`;
4585
+ var states10 = [
4586
+ States.valid,
4587
+ States.invalid,
4588
+ States.disabled,
4589
+ States.loading
4590
+ ];
4591
+ var options9 = {};
4592
+ var InputValidationIcon = (props) => {
4593
+ const {
4594
+ valid,
4595
+ invalid,
4596
+ disabled,
4597
+ loading
4598
+ } = props;
4599
+ const iconName = invalid ? "exclamation-circle" : "check";
4600
+ const renderValidationIcon = Boolean(valid || invalid);
4601
+ if (disabled || loading || !renderValidationIcon) {
4602
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
4603
+ }
4604
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: classNames(className6), icon: iconName });
4605
+ };
4606
+ InputValidationIcon.states = states10;
4607
+ InputValidationIcon.options = options9;
4608
+ InputValidationIcon.className = className6;
4609
+
4610
+ // src/input/input-prefix.tsx
4611
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4612
+ var className7 = `k-input-prefix`;
4613
+ var InputPrefix = (props) => {
4614
+ if (!props.children) {
4615
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
4616
+ }
4617
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4618
+ };
4619
+
4620
+ // src/input/input-suffix.tsx
4621
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4622
+ var className8 = `k-input-suffix`;
4623
+ var InputSuffix = (props) => {
4624
+ if (!props.children) {
4625
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {});
4626
+ }
4627
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4628
+ };
4629
+
4630
+ // src/input/input-separator.tsx
4631
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4632
+
4633
+ // src/button/button.spec.tsx
4634
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4635
+ var BUTTON_CLASSNAME = `k-button`;
4636
+ var states11 = [
4448
4637
  States.hover,
4449
4638
  States.focus,
4450
4639
  States.active,
4451
4640
  States.selected,
4452
4641
  States.disabled
4453
4642
  ];
4454
- var options5 = {
4643
+ var options10 = {
4455
4644
  size: [Size.small, Size.medium, Size.large],
4456
4645
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4457
- fillMode: [FillMode.solid, FillMode.outline],
4646
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4458
4647
  themeColor: [
4459
4648
  ThemeColor.base,
4649
+ ThemeColor.primary,
4650
+ ThemeColor.secondary,
4651
+ ThemeColor.tertiary,
4460
4652
  ThemeColor.success,
4461
4653
  ThemeColor.warning,
4462
4654
  ThemeColor.error,
4463
- ThemeColor.info
4655
+ ThemeColor.info,
4656
+ ThemeColor.light,
4657
+ ThemeColor.dark,
4658
+ ThemeColor.inverse
4464
4659
  ]
4465
4660
  };
4466
- var defaultProps5 = {
4661
+ var defaultProps8 = {
4467
4662
  size: Size.medium,
4468
4663
  rounded: Roundness.medium,
4469
4664
  fillMode: FillMode.solid,
4470
- themeColor: ThemeColor.base
4665
+ themeColor: ThemeColor.base,
4666
+ showArrow: false,
4667
+ arrowIconName: "caret-alt-down"
4471
4668
  };
4472
- var Chip = (props) => {
4669
+ var Button = (props) => {
4473
4670
  const {
4474
- size = defaultProps5.size,
4475
- rounded = defaultProps5.rounded,
4476
- fillMode = defaultProps5.fillMode,
4477
- themeColor = defaultProps5.themeColor,
4478
- text,
4479
- icon,
4480
- actions,
4481
- showAvatar,
4671
+ size = defaultProps8.size,
4672
+ rounded = defaultProps8.rounded,
4673
+ fillMode = defaultProps8.fillMode,
4674
+ themeColor = defaultProps8.themeColor,
4482
4675
  hover,
4483
4676
  focus,
4484
4677
  active,
4485
4678
  selected,
4486
4679
  disabled,
4680
+ icon,
4681
+ text,
4682
+ iconClassName,
4683
+ showArrow = defaultProps8.showArrow,
4684
+ arrowIconName = defaultProps8.arrowIconName,
4487
4685
  ...other
4488
4686
  } = props;
4489
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
4490
- "div",
4687
+ const hasIcon = icon !== void 0;
4688
+ const hasChildren = props.children !== void 0;
4689
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
4690
+ "button",
4491
4691
  {
4492
4692
  ...other,
4493
4693
  className: classNames(
4494
4694
  props.className,
4495
- CHIP_CLASSNAME,
4496
- optionClassNames(CHIP_CLASSNAME, {
4695
+ BUTTON_CLASSNAME,
4696
+ optionClassNames(BUTTON_CLASSNAME, {
4497
4697
  size,
4498
4698
  rounded,
4499
4699
  fillMode,
4500
4700
  themeColor
4501
4701
  }),
4502
- stateClassNames(CHIP_CLASSNAME, {
4702
+ stateClassNames(BUTTON_CLASSNAME, {
4503
4703
  hover,
4504
4704
  focus,
4505
4705
  active,
4506
4706
  disabled,
4507
4707
  selected
4508
- })
4708
+ }),
4709
+ {
4710
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4711
+ }
4509
4712
  ),
4510
4713
  children: [
4511
- icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: "k-chip-icon", icon, size: "small" }),
4512
- showAvatar && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("img", { src: "/packages/html/assets/avatar.jpg" }) }),
4513
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
4514
- actions && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-chip-actions", children: actions })
4714
+ icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4715
+ Icon,
4716
+ {
4717
+ className: classNames(iconClassName, "k-button-icon"),
4718
+ icon
4719
+ }
4720
+ ),
4721
+ text ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
4722
+ text && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "k-button-text", children: text }),
4723
+ props.children
4724
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "k-button-text", children: props.children }),
4725
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { icon: arrowIconName }) })
4515
4726
  ]
4516
4727
  }
4517
4728
  );
4518
4729
  };
4519
- Chip.states = states5;
4520
- Chip.options = options5;
4521
- Chip.className = CHIP_CLASSNAME;
4522
- Chip.defaultProps = defaultProps5;
4523
-
4524
- // src/chip/chip-list.spec.tsx
4525
- var import_jsx_runtime10 = require("react/jsx-runtime");
4526
- var CHIPLIST_CLASSNAME = `k-chip-list`;
4527
- var states6 = [];
4528
- var options6 = {
4529
- size: [Size.small, Size.medium, Size.large]
4530
- };
4531
- var defaultProps6 = {
4532
- size: Size.medium
4533
- };
4534
- var ChipList = (props) => {
4535
- const {
4536
- size = defaultProps6.size,
4537
- ...other
4538
- } = props;
4539
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4540
- "div",
4541
- {
4542
- ...other,
4543
- className: classNames(
4544
- props.className,
4545
- CHIPLIST_CLASSNAME,
4546
- optionClassNames(CHIPLIST_CLASSNAME, {
4547
- size
4548
- })
4549
- ),
4550
- children: props.children
4551
- }
4552
- );
4553
- };
4554
- ChipList.states = states6;
4555
- ChipList.options = options6;
4556
- ChipList.className = CHIPLIST_CLASSNAME;
4557
- ChipList.defaultProps = defaultProps6;
4558
-
4559
- // src/chip/templates/chip-avatar.tsx
4560
- var import_jsx_runtime11 = require("react/jsx-runtime");
4730
+ Button.states = states11;
4731
+ Button.options = options10;
4732
+ Button.className = BUTTON_CLASSNAME;
4733
+ Button.defaultProps = defaultProps8;
4561
4734
 
4562
- // src/chip/templates/chip-icon.tsx
4563
- var import_jsx_runtime12 = require("react/jsx-runtime");
4735
+ // src/button/templates/icon-button.tsx
4736
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4564
4737
 
4565
- // src/chip/templates/chip-normal.tsx
4566
- var import_jsx_runtime13 = require("react/jsx-runtime");
4738
+ // src/button/templates/icon-text-button.tsx
4739
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4567
4740
 
4568
- // src/chip/templates/chip-removable.tsx
4569
- var import_jsx_runtime14 = require("react/jsx-runtime");
4741
+ // src/button/templates/text-button.tsx
4742
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4570
4743
 
4571
- // src/input/input.spec.tsx
4572
- var import_jsx_runtime15 = require("react/jsx-runtime");
4573
- var INPUT_CLASSNAME = `k-input`;
4574
- var states7 = [
4575
- States.hover,
4576
- States.focus,
4577
- States.valid,
4578
- States.invalid,
4579
- States.required,
4580
- States.disabled,
4581
- States.loading,
4582
- States.readonly
4583
- ];
4584
- var options7 = {
4585
- size: [Size.small, Size.medium, Size.large],
4586
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4587
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4588
- };
4589
- var defaultProps7 = {
4590
- size: Size.medium,
4591
- rounded: Size.medium,
4592
- fillMode: FillMode.solid
4593
- };
4594
- var Input = (props) => {
4744
+ // src/chip/chip-action.tsx
4745
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4746
+ var CHIPACTION_CLASSNAME = `k-chip-action`;
4747
+ var ChipAction = (props) => {
4595
4748
  const {
4596
- hover,
4597
- focus,
4598
- disabled,
4599
- invalid,
4600
- valid,
4601
- loading,
4602
- readonly,
4603
- size = defaultProps7.size,
4604
- rounded = defaultProps7.rounded,
4605
- fillMode = defaultProps7.fillMode,
4749
+ type,
4606
4750
  ...other
4607
4751
  } = props;
4608
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4752
+ let icon;
4753
+ switch (type) {
4754
+ case "remove" /* REMOVE */:
4755
+ icon = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: "x-circle", size: "small" });
4756
+ break;
4757
+ case "more" /* MORE */:
4758
+ icon = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: "more-vertical", size: "small" });
4759
+ break;
4760
+ default:
4761
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { icon: type, size: "small" });
4762
+ }
4763
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4609
4764
  "span",
4610
4765
  {
4611
4766
  ...other,
4612
4767
  className: classNames(
4613
4768
  props.className,
4614
- INPUT_CLASSNAME,
4615
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4616
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4617
- )
4769
+ CHIPACTION_CLASSNAME,
4770
+ `k-chip-${type}-action`
4771
+ ),
4772
+ children: icon
4618
4773
  }
4619
4774
  );
4620
4775
  };
4621
- Input.states = states7;
4622
- Input.options = options7;
4623
- Input.className = INPUT_CLASSNAME;
4624
- Input.defaultProps = defaultProps7;
4625
4776
 
4626
- // src/input/picker.spec.tsx
4627
- var import_jsx_runtime16 = require("react/jsx-runtime");
4628
- var PICKER_CLASSNAME = `k-picker`;
4629
- var pickerStates = [
4777
+ // src/avatar/avatar.spec.tsx
4778
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4779
+ var AVATAR_CLASSNAME = `k-avatar`;
4780
+ var states12 = [
4630
4781
  States.hover,
4631
4782
  States.focus,
4632
- States.valid,
4633
- States.invalid,
4634
- States.required,
4635
- States.disabled,
4636
- States.loading,
4637
- States.readonly
4783
+ States.active,
4784
+ States.selected,
4785
+ States.disabled
4638
4786
  ];
4639
- var pickerOptions = {
4787
+ var options11 = {
4640
4788
  size: [Size.small, Size.medium, Size.large],
4641
4789
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4642
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4790
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
4791
+ themeColor: [
4792
+ ThemeColor.base,
4793
+ ThemeColor.primary,
4794
+ ThemeColor.secondary,
4795
+ ThemeColor.tertiary,
4796
+ ThemeColor.success,
4797
+ ThemeColor.warning,
4798
+ ThemeColor.error,
4799
+ ThemeColor.info,
4800
+ ThemeColor.light,
4801
+ ThemeColor.dark,
4802
+ ThemeColor.inverse
4803
+ ]
4643
4804
  };
4644
- var defaultProps8 = {
4805
+ var defaultProps9 = {
4806
+ type: "text" /* TEXT */,
4645
4807
  size: Size.medium,
4646
- rounded: Roundness.medium,
4647
- fillMode: FillMode.solid
4808
+ rounded: Roundness.full,
4809
+ fillMode: FillMode.solid,
4810
+ themeColor: ThemeColor.primary,
4811
+ border: false
4648
4812
  };
4649
- var Picker = (props) => {
4813
+ var Avatar = (props) => {
4650
4814
  const {
4651
- hover,
4652
- focus,
4653
- disabled,
4654
- invalid,
4655
- valid,
4656
- loading,
4657
- readonly,
4658
- size = defaultProps8.size,
4659
- rounded = defaultProps8.rounded,
4660
- fillMode = defaultProps8.fillMode,
4815
+ size = defaultProps9.size,
4816
+ rounded = defaultProps9.rounded,
4817
+ fillMode = defaultProps9.fillMode,
4818
+ themeColor = defaultProps9.themeColor,
4819
+ type = defaultProps9.type,
4820
+ border = defaultProps9.border,
4661
4821
  ...other
4662
4822
  } = props;
4663
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4664
- "span",
4823
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4824
+ "div",
4665
4825
  {
4666
4826
  ...other,
4667
4827
  className: classNames(
4668
4828
  props.className,
4669
- PICKER_CLASSNAME,
4670
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4671
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4829
+ AVATAR_CLASSNAME,
4830
+ optionClassNames(AVATAR_CLASSNAME, {
4831
+ size,
4832
+ rounded,
4833
+ fillMode,
4834
+ themeColor
4835
+ }),
4836
+ {
4837
+ [`${AVATAR_CLASSNAME}-bordered`]: border
4838
+ }
4672
4839
  ),
4673
- children: props.children
4840
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
4674
4841
  }
4675
4842
  );
4676
4843
  };
4677
- Picker.states = pickerStates;
4678
- Picker.options = pickerOptions;
4679
- Picker.className = PICKER_CLASSNAME;
4680
- Picker.defaultProps = defaultProps8;
4681
-
4682
- // src/input/input-clear-value.tsx
4683
- var import_jsx_runtime17 = require("react/jsx-runtime");
4684
- var className = `k-clear-value`;
4685
- var states8 = [
4686
- States.disabled,
4687
- States.loading,
4688
- States.readonly
4689
- ];
4690
- var options8 = {};
4691
- var InputClearValue = (props) => {
4692
- const {
4693
- disabled,
4694
- loading,
4695
- readonly,
4696
- value
4697
- } = props;
4698
- if (disabled || readonly || loading || !value) {
4699
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
4700
- }
4701
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { icon: "x" }) });
4702
- };
4703
- InputClearValue.states = states8;
4704
- InputClearValue.options = options8;
4705
- InputClearValue.className = className;
4706
-
4707
- // src/input/input-inner-input.tsx
4708
- var import_jsx_runtime18 = require("react/jsx-runtime");
4709
- var className2 = `k-input-inner`;
4710
- var states9 = [];
4711
- var options9 = {};
4712
- var defaultProps9 = {
4713
- type: "text",
4714
- autocomplete: "off",
4715
- value: "",
4716
- placeholder: ""
4717
- };
4718
- var InputInnerInput = (props) => {
4719
- const {
4720
- value = defaultProps9.value,
4721
- type = defaultProps9.type,
4722
- placeholder = defaultProps9.placeholder,
4723
- autocomplete = defaultProps9.autocomplete,
4724
- ...other
4725
- } = props;
4726
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4727
- "input",
4728
- {
4729
- ...other,
4730
- type,
4731
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4732
- placeholder,
4733
- autoComplete: autocomplete,
4734
- defaultValue: value
4735
- }
4736
- );
4737
- };
4738
- InputInnerInput.states = states9;
4739
- InputInnerInput.options = options9;
4740
- InputInnerInput.className = className2;
4741
-
4742
- // src/input/input-inner-span.tsx
4743
- var import_jsx_runtime19 = require("react/jsx-runtime");
4744
- var className3 = `k-input-inner`;
4745
- var states10 = [];
4746
- var options10 = {};
4747
- var InputInnerSpan = (props) => {
4748
- const {
4749
- value,
4750
- placeholder,
4751
- showValue,
4752
- valueIcon,
4753
- valueIconName,
4754
- ...other
4755
- } = props;
4756
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4757
- "span",
4758
- {
4759
- ...other,
4760
- className: classNames(props.className, className3, optionClassNames(className3, props)),
4761
- children: [
4762
- valueIcon,
4763
- !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4764
- showValue && !value && placeholder,
4765
- showValue && value && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-input-value-text", children: value })
4766
- ]
4767
- }
4768
- );
4769
- };
4770
- InputInnerSpan.states = states10;
4771
- InputInnerSpan.options = options10;
4772
- InputInnerSpan.className = className3;
4773
-
4774
- // src/input/input-inner-textarea.tsx
4775
- var import_jsx_runtime20 = require("react/jsx-runtime");
4776
- var defaultProps10 = {
4777
- value: "",
4778
- placeholder: ""
4779
- };
4780
- var className4 = `k-input-inner`;
4781
- var states11 = [];
4782
- var options11 = {};
4783
- var InputInnerTextarea = (props) => {
4784
- const {
4785
- value = defaultProps10.value,
4786
- placeholder = defaultProps10.placeholder,
4787
- rows,
4788
- ...other
4789
- } = props;
4790
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4791
- "textarea",
4792
- {
4793
- ...other,
4794
- className: classNames(props.className, className4, optionClassNames(className4, props)),
4795
- placeholder,
4796
- rows,
4797
- children: value
4798
- }
4799
- );
4800
- };
4801
- InputInnerTextarea.states = states11;
4802
- InputInnerTextarea.options = options11;
4803
- InputInnerTextarea.className = className4;
4844
+ Avatar.states = states12;
4845
+ Avatar.options = options11;
4846
+ Avatar.className = AVATAR_CLASSNAME;
4847
+ Avatar.defaultProps = defaultProps9;
4804
4848
 
4805
- // src/input/input-loading-icon.tsx
4849
+ // src/avatar/templates/avatar-icon.tsx
4806
4850
  var import_jsx_runtime21 = require("react/jsx-runtime");
4807
- var className5 = `k-input-loading-icon`;
4808
- var states12 = [
4809
- States.disabled,
4810
- States.loading
4811
- ];
4812
- var InputLoadingIcon = (props) => {
4813
- const {
4814
- disabled,
4815
- loading
4816
- } = props;
4817
- if (disabled || !loading) {
4818
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {});
4819
- }
4820
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4821
- };
4822
4851
 
4823
- // src/input/input-validation-icon.tsx
4852
+ // src/avatar/templates/avatar-text.tsx
4824
4853
  var import_jsx_runtime22 = require("react/jsx-runtime");
4825
- var className6 = `k-input-validation-icon`;
4826
- var states13 = [
4827
- States.valid,
4828
- States.invalid,
4829
- States.disabled,
4830
- States.loading
4831
- ];
4832
- var options12 = {};
4833
- var InputValidationIcon = (props) => {
4834
- const {
4835
- valid,
4836
- invalid,
4837
- disabled,
4838
- loading
4839
- } = props;
4840
- const iconName = invalid ? "exclamation-circle" : "check";
4841
- const renderValidationIcon = Boolean(valid || invalid);
4842
- if (disabled || loading || !renderValidationIcon) {
4843
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, {});
4844
- }
4845
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { className: classNames(className6), icon: iconName });
4846
- };
4847
- InputValidationIcon.states = states13;
4848
- InputValidationIcon.options = options12;
4849
- InputValidationIcon.className = className6;
4850
4854
 
4851
- // src/input/input-prefix.tsx
4855
+ // src/avatar/templates/avatar-image.tsx
4852
4856
  var import_jsx_runtime23 = require("react/jsx-runtime");
4853
- var className7 = `k-input-prefix`;
4854
- var InputPrefix = (props) => {
4855
- if (!props.children) {
4856
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {});
4857
- }
4858
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: classNames(className7, props.className), children: props.children });
4859
- };
4860
4857
 
4861
- // src/input/input-suffix.tsx
4858
+ // src/chip/chip.spec.tsx
4862
4859
  var import_jsx_runtime24 = require("react/jsx-runtime");
4863
- var className8 = `k-input-suffix`;
4864
- var InputSuffix = (props) => {
4865
- if (!props.children) {
4866
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {});
4867
- }
4868
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: classNames(className8, props.className), children: props.children });
4869
- };
4870
-
4871
- // src/input/input-separator.tsx
4872
- var import_jsx_runtime25 = require("react/jsx-runtime");
4873
-
4874
- // src/button/button.spec.tsx
4875
- var import_jsx_runtime26 = require("react/jsx-runtime");
4876
- var BUTTON_CLASSNAME = `k-button`;
4877
- var states14 = [
4860
+ var CHIP_CLASSNAME = `k-chip`;
4861
+ var states13 = [
4878
4862
  States.hover,
4879
4863
  States.focus,
4880
4864
  States.active,
4881
4865
  States.selected,
4882
4866
  States.disabled
4883
4867
  ];
4884
- var options13 = {
4868
+ var options12 = {
4885
4869
  size: [Size.small, Size.medium, Size.large],
4886
4870
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4887
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4871
+ fillMode: [FillMode.solid, FillMode.outline],
4888
4872
  themeColor: [
4889
4873
  ThemeColor.base,
4890
- ThemeColor.primary,
4891
- ThemeColor.secondary,
4892
- ThemeColor.tertiary,
4893
4874
  ThemeColor.success,
4894
4875
  ThemeColor.warning,
4895
4876
  ThemeColor.error,
4896
- ThemeColor.info,
4897
- ThemeColor.light,
4898
- ThemeColor.dark,
4899
- ThemeColor.inverse
4877
+ ThemeColor.info
4900
4878
  ]
4901
4879
  };
4902
- var defaultProps11 = {
4880
+ var defaultProps10 = {
4903
4881
  size: Size.medium,
4904
4882
  rounded: Roundness.medium,
4905
4883
  fillMode: FillMode.solid,
4906
- themeColor: ThemeColor.base,
4907
- showArrow: false,
4908
- arrowIconName: "caret-alt-down"
4884
+ themeColor: ThemeColor.base
4909
4885
  };
4910
- var Button = (props) => {
4886
+ var Chip = (props) => {
4911
4887
  const {
4912
- size = defaultProps11.size,
4913
- rounded = defaultProps11.rounded,
4914
- fillMode = defaultProps11.fillMode,
4915
- themeColor = defaultProps11.themeColor,
4888
+ size = defaultProps10.size,
4889
+ rounded = defaultProps10.rounded,
4890
+ fillMode = defaultProps10.fillMode,
4891
+ themeColor = defaultProps10.themeColor,
4892
+ text,
4893
+ icon,
4894
+ actions,
4895
+ showAvatar,
4916
4896
  hover,
4917
4897
  focus,
4918
4898
  active,
4919
4899
  selected,
4920
4900
  disabled,
4921
- icon,
4922
- text,
4923
- iconClassName,
4924
- showArrow = defaultProps11.showArrow,
4925
- arrowIconName = defaultProps11.arrowIconName,
4926
4901
  ...other
4927
4902
  } = props;
4928
- const hasIcon = icon !== void 0;
4929
- const hasChildren = props.children !== void 0;
4930
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4931
- "button",
4903
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
4904
+ "div",
4932
4905
  {
4933
4906
  ...other,
4934
4907
  className: classNames(
4935
4908
  props.className,
4936
- BUTTON_CLASSNAME,
4937
- optionClassNames(BUTTON_CLASSNAME, {
4909
+ CHIP_CLASSNAME,
4910
+ optionClassNames(CHIP_CLASSNAME, {
4938
4911
  size,
4939
4912
  rounded,
4940
4913
  fillMode,
4941
4914
  themeColor
4942
4915
  }),
4943
- stateClassNames(BUTTON_CLASSNAME, {
4916
+ stateClassNames(CHIP_CLASSNAME, {
4944
4917
  hover,
4945
4918
  focus,
4946
4919
  active,
4947
4920
  disabled,
4948
4921
  selected
4949
- }),
4950
- {
4951
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4952
- }
4922
+ })
4953
4923
  ),
4954
4924
  children: [
4955
- icon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4956
- Icon,
4957
- {
4958
- className: classNames(iconClassName, "k-button-icon"),
4959
- icon
4960
- }
4961
- ),
4962
- text ? /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
4963
- text && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-button-text", children: text }),
4964
- props.children
4965
- ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-button-text", children: props.children }),
4966
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon, { icon: arrowIconName }) })
4925
+ icon && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { className: "k-chip-icon", icon, size: "small" }),
4926
+ showAvatar && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("img", { src: "/packages/html/assets/avatar.jpg" }) }),
4927
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
4928
+ actions && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "k-chip-actions", children: actions })
4967
4929
  ]
4968
4930
  }
4969
4931
  );
4970
4932
  };
4971
- Button.states = states14;
4972
- Button.options = options13;
4973
- Button.className = BUTTON_CLASSNAME;
4974
- Button.defaultProps = defaultProps11;
4933
+ Chip.states = states13;
4934
+ Chip.options = options12;
4935
+ Chip.className = CHIP_CLASSNAME;
4936
+ Chip.defaultProps = defaultProps10;
4975
4937
 
4976
- // src/button/templates/icon-button.tsx
4938
+ // src/chip/chip-list.spec.tsx
4939
+ var import_jsx_runtime25 = require("react/jsx-runtime");
4940
+ var CHIPLIST_CLASSNAME = `k-chip-list`;
4941
+ var states14 = [];
4942
+ var options13 = {
4943
+ size: [Size.small, Size.medium, Size.large]
4944
+ };
4945
+ var defaultProps11 = {
4946
+ size: Size.medium
4947
+ };
4948
+ var ChipList = (props) => {
4949
+ const {
4950
+ size = defaultProps11.size,
4951
+ ...other
4952
+ } = props;
4953
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4954
+ "div",
4955
+ {
4956
+ ...other,
4957
+ className: classNames(
4958
+ props.className,
4959
+ CHIPLIST_CLASSNAME,
4960
+ optionClassNames(CHIPLIST_CLASSNAME, {
4961
+ size
4962
+ })
4963
+ ),
4964
+ children: props.children
4965
+ }
4966
+ );
4967
+ };
4968
+ ChipList.states = states14;
4969
+ ChipList.options = options13;
4970
+ ChipList.className = CHIPLIST_CLASSNAME;
4971
+ ChipList.defaultProps = defaultProps11;
4972
+
4973
+ // src/chip/templates/chip-avatar.tsx
4974
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4975
+
4976
+ // src/chip/templates/chip-icon.tsx
4977
4977
  var import_jsx_runtime27 = require("react/jsx-runtime");
4978
4978
 
4979
- // src/button/templates/icon-text-button.tsx
4979
+ // src/chip/templates/chip-normal.tsx
4980
4980
  var import_jsx_runtime28 = require("react/jsx-runtime");
4981
4981
 
4982
- // src/button/templates/text-button.tsx
4982
+ // src/chip/templates/chip-removable.tsx
4983
4983
  var import_jsx_runtime29 = require("react/jsx-runtime");
4984
4984
 
4985
4985
  // src/animation-container/animation-container.spec.tsx
@@ -5037,285 +5037,123 @@ var Popup = (props) => {
5037
5037
  {
5038
5038
  positionMode,
5039
5039
  offset,
5040
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5041
- }
5042
- );
5043
- };
5044
- Popup.states = states16;
5045
- Popup.options = options15;
5046
- Popup.className = POPUP_CLASSNAME;
5047
- Popup.defaultProps = defaultProps13;
5048
-
5049
- // src/multiselecttree/multiselecttree.spec.tsx
5050
- var import_jsx_runtime32 = require("react/jsx-runtime");
5051
- var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5052
- var states17 = [
5053
- States.hover,
5054
- States.focus,
5055
- States.valid,
5056
- States.invalid,
5057
- States.required,
5058
- States.disabled,
5059
- States.loading,
5060
- States.readonly
5061
- ];
5062
- var options16 = {
5063
- size: [Size.small, Size.medium, Size.large],
5064
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5065
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5066
- };
5067
- var defaultProps14 = {
5068
- size: Input.defaultProps.size,
5069
- rounded: Input.defaultProps.rounded,
5070
- fillMode: Input.defaultProps.fillMode
5071
- };
5072
- var MultiSelectTree = (props) => {
5073
- const {
5074
- prefix,
5075
- suffix,
5076
- placeholder,
5077
- tags,
5078
- popup,
5079
- size,
5080
- rounded,
5081
- fillMode,
5082
- showArrowButton,
5083
- hover,
5084
- focus,
5085
- valid,
5086
- invalid,
5087
- required,
5088
- loading,
5089
- disabled,
5090
- readonly,
5091
- opened,
5092
- dir,
5093
- ...other
5094
- } = props;
5095
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
5096
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
5097
- Input,
5098
- {
5099
- ...other,
5100
- dir,
5101
- size,
5102
- rounded,
5103
- fillMode,
5104
- hover,
5105
- focus,
5106
- valid,
5107
- invalid,
5108
- required,
5109
- loading,
5110
- disabled,
5111
- readonly,
5112
- className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5113
- children: [
5114
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputPrefix, { children: prefix }),
5115
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: tags }) }),
5116
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-input-inner", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-input-value-text", children: placeholder }) }),
5117
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5118
- InputValidationIcon,
5119
- {
5120
- valid,
5121
- invalid,
5122
- loading,
5123
- disabled
5124
- }
5125
- ),
5126
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5127
- InputLoadingIcon,
5128
- {
5129
- loading,
5130
- disabled
5131
- }
5132
- ),
5133
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5134
- InputClearValue,
5135
- {
5136
- loading,
5137
- disabled,
5138
- readonly,
5139
- value: tags ? "value" : ""
5140
- }
5141
- ),
5142
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputSuffix, { children: suffix }),
5143
- showArrowButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5144
- Button,
5145
- {
5146
- className: "k-input-button",
5147
- icon: "caret-alt-down",
5148
- rounded: null,
5149
- size,
5150
- fillMode
5151
- }
5152
- )
5153
- ]
5154
- }
5155
- ),
5156
- opened && popup && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popup, { className: "k-multiselecttree-popup", dir, children: popup })
5157
- ] });
5158
- };
5159
- MultiSelectTree.states = states17;
5160
- MultiSelectTree.options = options16;
5161
- MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5162
- MultiSelectTree.defaultProps = defaultProps14;
5163
-
5164
- // src/checkbox/checkbox.spec.tsx
5165
- var import_jsx_runtime33 = require("react/jsx-runtime");
5166
- var CHECKBOX_CLASSNAME = `k-checkbox`;
5167
- var states18 = [
5168
- States.hover,
5169
- States.focus,
5170
- States.valid,
5171
- States.invalid,
5172
- States.required,
5173
- States.disabled,
5174
- States.checked,
5175
- States.indeterminate
5176
- ];
5177
- var options17 = {
5178
- size: [Size.small, Size.medium, Size.large],
5179
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5180
- };
5181
- var defaultProps15 = {
5182
- size: Size.medium,
5183
- rounded: Roundness.medium
5184
- };
5185
- var Checkbox = (props) => {
5186
- const {
5187
- id,
5188
- checked,
5189
- indeterminate,
5190
- hover,
5191
- focus,
5192
- disabled,
5193
- invalid,
5194
- valid,
5195
- required,
5196
- size = defaultProps15.size,
5197
- rounded = defaultProps15.rounded,
5198
- ...other
5199
- } = props;
5200
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5201
- "input",
5202
- {
5203
- ...other,
5204
- id,
5205
- type: "checkbox",
5206
- checked,
5207
- required,
5208
- className: classNames(
5209
- props.className,
5210
- CHECKBOX_CLASSNAME,
5211
- optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5212
- stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5213
- )
5214
- }
5215
- ) });
5216
- };
5217
- Checkbox.states = states18;
5218
- Checkbox.options = options17;
5219
- Checkbox.className = CHECKBOX_CLASSNAME;
5220
- Checkbox.defaultProps = defaultProps15;
5221
-
5222
- // src/checkbox/checkbox-group.spec.tsx
5223
- var import_jsx_runtime34 = require("react/jsx-runtime");
5224
- var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5225
- var states19 = [];
5226
- var options18 = {};
5227
- var defaultProps16 = {
5228
- layout: "vertical"
5229
- };
5230
- var CheckboxGroup = (props) => {
5231
- const {
5232
- layout = defaultProps16.layout,
5233
- ...other
5234
- } = props;
5235
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5236
- "ul",
5237
- {
5238
- ...other,
5239
- className: classNames(
5240
- props.className,
5241
- CHECKBOXGROUP_CLASSNAME,
5242
- {
5243
- [`k-list-${layout}`]: layout
5244
- }
5245
- ),
5246
- children: props.children
5040
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5247
5041
  }
5248
5042
  );
5249
5043
  };
5250
- CheckboxGroup.states = states19;
5251
- CheckboxGroup.options = options18;
5252
- CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5253
- CheckboxGroup.defaultProps = defaultProps16;
5044
+ Popup.states = states16;
5045
+ Popup.options = options15;
5046
+ Popup.className = POPUP_CLASSNAME;
5047
+ Popup.defaultProps = defaultProps13;
5254
5048
 
5255
- // src/checkbox/checkbox-item.spec.tsx
5256
- var import_jsx_runtime35 = require("react/jsx-runtime");
5257
- var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5258
- var states20 = [];
5259
- var options19 = {};
5260
- var defaultProps17 = {};
5261
- var CheckboxItem = (props) => {
5049
+ // src/action-sheet/action-sheet.spec.tsx
5050
+ var import_jsx_runtime32 = require("react/jsx-runtime");
5051
+ var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
5052
+ var states17 = [];
5053
+ var options16 = {};
5054
+ var defaultProps14 = {
5055
+ side: "bottom",
5056
+ fullscreen: false,
5057
+ adaptive: false,
5058
+ overlay: true
5059
+ };
5060
+ var ActionSheet = (props) => {
5262
5061
  const {
5062
+ children,
5063
+ title,
5064
+ header,
5065
+ footer,
5066
+ actions,
5067
+ side = defaultProps14.side,
5068
+ fullscreen = defaultProps14.fullscreen,
5069
+ adaptive = defaultProps14.adaptive,
5070
+ overlay = defaultProps14.overlay,
5263
5071
  ...other
5264
5072
  } = props;
5265
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5266
- "li",
5267
- {
5268
- ...other,
5269
- className: classNames(
5270
- props.className,
5271
- CHECKBOXITEM_CLASSNAME
5272
- ),
5273
- children: props.children
5073
+ const _ActionSheetHeader = title ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
5074
+ const _ActionSheetFooter = actions ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
5075
+ const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
5076
+ switch (child.type) {
5077
+ case ActionSheetHeader:
5078
+ case ActionSheetFooter:
5079
+ return false;
5080
+ default:
5081
+ return true;
5274
5082
  }
5275
- );
5083
+ return true;
5084
+ }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, {});
5085
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "k-actionsheet-container", children: [
5086
+ overlay && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "k-overlay" }),
5087
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5088
+ AnimationContainer,
5089
+ {
5090
+ animationStyle: {
5091
+ [`${fullscreen === true ? "top" : side}`]: 0,
5092
+ [`${fullscreen === true ? "width" : null}`]: "100%",
5093
+ [`${fullscreen === true ? "height" : null}`]: "100%",
5094
+ [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
5095
+ [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
5096
+ },
5097
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
5098
+ "div",
5099
+ {
5100
+ ...other,
5101
+ className: classNames(
5102
+ props.className,
5103
+ ACTIONSHEET_CLASSNAME,
5104
+ {
5105
+ [`k-actionsheet-${side}`]: fullscreen === false,
5106
+ "k-actionsheet-fullscreen": fullscreen === true,
5107
+ "k-adaptive-actionsheet": adaptive
5108
+ }
5109
+ ),
5110
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
5111
+ _ActionSheetHeader,
5112
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: classNames(
5113
+ "k-actionsheet-content",
5114
+ {
5115
+ "!k-overflow-hidden": adaptive
5116
+ }
5117
+ ), children: _ActionSheetContent }),
5118
+ _ActionSheetFooter
5119
+ ] })
5120
+ }
5121
+ )
5122
+ }
5123
+ )
5124
+ ] });
5276
5125
  };
5277
- CheckboxItem.states = states20;
5278
- CheckboxItem.options = options19;
5279
- CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5280
- CheckboxItem.defaultProps = defaultProps17;
5126
+ ActionSheet.states = states17;
5127
+ ActionSheet.options = options16;
5128
+ ActionSheet.className = ACTIONSHEET_CLASSNAME;
5129
+ ActionSheet.defaultProps = defaultProps14;
5281
5130
 
5282
- // src/checkbox/templates/checkbox-with-label-after.tsx
5283
- var import_jsx_runtime36 = require("react/jsx-runtime");
5284
-
5285
- // src/checkbox/templates/checkbox-with-label-before.tsx
5286
- var import_jsx_runtime37 = require("react/jsx-runtime");
5287
-
5288
- // src/checkbox/templates/checkbox-normal.tsx
5289
- var import_jsx_runtime38 = require("react/jsx-runtime");
5290
-
5291
- // src/textbox/textbox.spec.tsx
5292
- var import_jsx_runtime39 = require("react/jsx-runtime");
5293
- var TEXTBOX_CLASSNAME = `k-textbox`;
5294
- var states21 = [
5131
+ // src/searchbox/searchbox.spec.tsx
5132
+ var import_jsx_runtime33 = require("react/jsx-runtime");
5133
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5134
+ var states18 = [
5295
5135
  States.hover,
5296
5136
  States.focus,
5297
5137
  States.valid,
5298
5138
  States.invalid,
5299
5139
  States.required,
5300
5140
  States.disabled,
5301
- States.loading,
5302
- States.readonly
5141
+ States.loading
5303
5142
  ];
5304
- var options20 = {
5143
+ var options17 = {
5305
5144
  size: [Size.small, Size.medium, Size.large],
5306
5145
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5307
5146
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5308
5147
  };
5309
- var defaultProps18 = {
5310
- showClearButton: true,
5148
+ var defaultProps15 = {
5149
+ showIcon: true,
5150
+ icon: "search",
5311
5151
  size: Input.defaultProps.size,
5312
5152
  rounded: Input.defaultProps.rounded,
5313
5153
  fillMode: Input.defaultProps.fillMode
5314
5154
  };
5315
- var Textbox = (props) => {
5155
+ var Searchbox = (props) => {
5316
5156
  const {
5317
- prefix,
5318
- suffix,
5319
5157
  value,
5320
5158
  placeholder,
5321
5159
  size,
@@ -5328,11 +5166,11 @@ var Textbox = (props) => {
5328
5166
  required,
5329
5167
  loading,
5330
5168
  disabled,
5331
- readonly,
5332
- showClearButton = defaultProps18.showClearButton,
5169
+ showIcon = defaultProps15.showIcon,
5170
+ icon = defaultProps15.icon,
5333
5171
  ...other
5334
5172
  } = props;
5335
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
5173
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5336
5174
  Input,
5337
5175
  {
5338
5176
  ...other,
@@ -5346,69 +5184,173 @@ var Textbox = (props) => {
5346
5184
  required,
5347
5185
  loading,
5348
5186
  disabled,
5349
- readonly,
5350
- className: classNames(props.className, TEXTBOX_CLASSNAME),
5187
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5351
5188
  children: [
5352
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InputPrefix, { children: prefix }),
5353
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InputInnerInput, { placeholder, value }),
5354
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5355
- InputValidationIcon,
5356
- {
5357
- valid,
5358
- invalid,
5359
- loading,
5360
- disabled
5361
- }
5362
- ),
5363
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5364
- InputLoadingIcon,
5365
- {
5366
- loading,
5367
- disabled
5368
- }
5369
- ),
5370
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5371
- InputClearValue,
5372
- {
5373
- loading,
5374
- disabled,
5375
- readonly,
5376
- value
5377
- }
5378
- ),
5379
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InputSuffix, { children: suffix })
5189
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { className: "k-input-icon", icon }),
5190
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputInnerInput, { placeholder, value }),
5191
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputLoadingIcon, { ...props }),
5192
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputValidationIcon, { ...props }),
5193
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputClearValue, { ...props })
5380
5194
  ]
5381
5195
  }
5382
5196
  );
5383
5197
  };
5384
- Textbox.states = states21;
5385
- Textbox.options = options20;
5386
- Textbox.className = TEXTBOX_CLASSNAME;
5387
- Textbox.defaultProps = defaultProps18;
5198
+ Searchbox.states = states18;
5199
+ Searchbox.options = options17;
5200
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5201
+ Searchbox.defaultProps = defaultProps15;
5388
5202
 
5389
- // src/textbox/templates/textbox-normal.tsx
5390
- var import_jsx_runtime40 = require("react/jsx-runtime");
5203
+ // src/searchbox/templates/searchbox-normal.tsx
5204
+ var import_jsx_runtime34 = require("react/jsx-runtime");
5391
5205
 
5392
- // src/textbox/templates/textbox-prefix.tsx
5393
- var import_jsx_runtime41 = require("react/jsx-runtime");
5206
+ // src/action-sheet/actionsheet-header.tsx
5207
+ var import_jsx_runtime35 = require("react/jsx-runtime");
5208
+ var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5209
+ var ActionSheetHeader = (props) => {
5210
+ const {
5211
+ title,
5212
+ subTitle,
5213
+ actions,
5214
+ filter,
5215
+ ...other
5216
+ } = props;
5217
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5218
+ "div",
5219
+ {
5220
+ ...other,
5221
+ className: classNames(
5222
+ props.className,
5223
+ ACTIONSHEETHEADER_CLASSNAME
5224
+ ),
5225
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
5226
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5227
+ !props.children && (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "k-actionsheet-title", children: [
5228
+ title !== "" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-text-center", children: title }),
5229
+ subTitle !== "" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5230
+ ] }) }),
5231
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-actionsheet-title", children: props.children }),
5232
+ actions && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5233
+ ] }),
5234
+ filter && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5235
+ ] })
5236
+ }
5237
+ );
5238
+ };
5394
5239
 
5395
- // src/textbox/templates/textbox-suffix.tsx
5396
- var import_jsx_runtime42 = require("react/jsx-runtime");
5240
+ // src/action-buttons/action-buttons.spec.tsx
5241
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5242
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5243
+ var states19 = [];
5244
+ var options18 = {};
5245
+ var defaultProps16 = {
5246
+ alignment: "start",
5247
+ orientation: "horizontal"
5248
+ };
5249
+ var ActionButtons = (props) => {
5250
+ const {
5251
+ alignment = defaultProps16.alignment,
5252
+ orientation = defaultProps16.orientation,
5253
+ ...other
5254
+ } = props;
5255
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5256
+ "div",
5257
+ {
5258
+ ...other,
5259
+ className: classNames(
5260
+ ACTIONBUTTONS_CLASSNAME,
5261
+ {
5262
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5263
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5264
+ },
5265
+ props.className
5266
+ ),
5267
+ children: props.children
5268
+ }
5269
+ );
5270
+ };
5271
+ ActionButtons.states = states19;
5272
+ ActionButtons.options = options18;
5273
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5274
+ ActionButtons.defaultProps = defaultProps16;
5275
+ var action_buttons_spec_default = ActionButtons;
5276
+
5277
+ // src/action-sheet/actionsheet-footer.tsx
5278
+ var import_jsx_runtime37 = require("react/jsx-runtime");
5279
+ var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5280
+ var ActionSheetFooter = (props) => {
5281
+ const {
5282
+ actions,
5283
+ ...other
5284
+ } = props;
5285
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5286
+ action_buttons_spec_default,
5287
+ {
5288
+ ...other,
5289
+ className: classNames(
5290
+ props.className,
5291
+ ACTIONSHEETFOOTER_CLASSNAME
5292
+ ),
5293
+ alignment: "stretched",
5294
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
5295
+ actions && actions.map((action, index) => {
5296
+ if (action === "|") {
5297
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-separator" }, index);
5298
+ }
5299
+ if (action === " ") {
5300
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-spacer" }, index);
5301
+ }
5302
+ const importantFlag = action.startsWith("!");
5303
+ const actionName = importantFlag ? action.substring(1) : action;
5304
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5305
+ }),
5306
+ !actions && props.children
5307
+ ] })
5308
+ }
5309
+ );
5310
+ };
5311
+
5312
+ // src/action-sheet/actionsheet-items.tsx
5313
+ var import_jsx_runtime38 = require("react/jsx-runtime");
5314
+ var ActionSheetItems = (props) => {
5315
+ const {
5316
+ ...other
5317
+ } = props;
5318
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5319
+ "div",
5320
+ {
5321
+ ...other,
5322
+ className: classNames(
5323
+ props.className,
5324
+ "k-list-ul"
5325
+ ),
5326
+ children: props.children
5327
+ }
5328
+ );
5329
+ };
5330
+
5331
+ // src/action-sheet/actionsheet-item.tsx
5332
+ var import_jsx_runtime39 = require("react/jsx-runtime");
5333
+ var states20 = [
5334
+ States.hover,
5335
+ States.focus,
5336
+ States.selected,
5337
+ States.disabled
5338
+ ];
5397
5339
 
5398
5340
  // src/treeview/treeview.spec.tsx
5399
- var import_jsx_runtime43 = require("react/jsx-runtime");
5341
+ var import_jsx_runtime40 = require("react/jsx-runtime");
5400
5342
  var import_react = require("react");
5401
5343
  var TREEVIEW_CLASSNAME = `k-treeview`;
5402
- var states22 = [];
5403
- var options21 = {
5344
+ var states21 = [];
5345
+ var options19 = {
5404
5346
  size: [Size.small, Size.medium, Size.large]
5405
5347
  };
5406
- var defaultProps19 = {
5348
+ var defaultProps17 = {
5407
5349
  size: Size.medium
5408
5350
  };
5409
5351
  var Treeview = (props) => {
5410
5352
  const {
5411
- size = defaultProps19.size,
5353
+ size = defaultProps17.size,
5412
5354
  children,
5413
5355
  dir,
5414
5356
  ...other
@@ -5431,39 +5373,166 @@ var Treeview = (props) => {
5431
5373
  } else {
5432
5374
  if (children.type === TreeviewItem) {
5433
5375
  listChildren.push(
5434
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TreeviewItem, { ...children.props, dir })
5376
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TreeviewItem, { ...children.props, dir })
5435
5377
  );
5436
5378
  }
5437
5379
  if (children.type === TreeviewGroup) {
5438
5380
  listChildren.push(
5439
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TreeviewGroup, { ...children.props, dir })
5381
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TreeviewGroup, { ...children.props, dir })
5440
5382
  );
5441
5383
  }
5442
5384
  }
5443
- }
5385
+ }
5386
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5387
+ "div",
5388
+ {
5389
+ ...other,
5390
+ dir,
5391
+ className: classNames(
5392
+ props.className,
5393
+ TREEVIEW_CLASSNAME,
5394
+ optionClassNames(TREEVIEW_CLASSNAME, {
5395
+ size
5396
+ })
5397
+ ),
5398
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TreeviewGroup, { className: "k-treeview-lines", dir, children: listChildren })
5399
+ }
5400
+ );
5401
+ };
5402
+ Treeview.states = states21;
5403
+ Treeview.options = options19;
5404
+ Treeview.className = TREEVIEW_CLASSNAME;
5405
+ Treeview.defaultProps = defaultProps17;
5406
+
5407
+ // src/checkbox/checkbox.spec.tsx
5408
+ var import_jsx_runtime41 = require("react/jsx-runtime");
5409
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
5410
+ var states22 = [
5411
+ States.hover,
5412
+ States.focus,
5413
+ States.valid,
5414
+ States.invalid,
5415
+ States.required,
5416
+ States.disabled,
5417
+ States.checked,
5418
+ States.indeterminate
5419
+ ];
5420
+ var options20 = {
5421
+ size: [Size.small, Size.medium, Size.large],
5422
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5423
+ };
5424
+ var defaultProps18 = {
5425
+ size: Size.medium,
5426
+ rounded: Roundness.medium
5427
+ };
5428
+ var Checkbox = (props) => {
5429
+ const {
5430
+ id,
5431
+ checked,
5432
+ indeterminate,
5433
+ hover,
5434
+ focus,
5435
+ disabled,
5436
+ invalid,
5437
+ valid,
5438
+ required,
5439
+ size = defaultProps18.size,
5440
+ rounded = defaultProps18.rounded,
5441
+ ...other
5442
+ } = props;
5443
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
5444
+ "input",
5445
+ {
5446
+ ...other,
5447
+ id,
5448
+ type: "checkbox",
5449
+ checked,
5450
+ required,
5451
+ className: classNames(
5452
+ props.className,
5453
+ CHECKBOX_CLASSNAME,
5454
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5455
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5456
+ )
5457
+ }
5458
+ ) });
5459
+ };
5460
+ Checkbox.states = states22;
5461
+ Checkbox.options = options20;
5462
+ Checkbox.className = CHECKBOX_CLASSNAME;
5463
+ Checkbox.defaultProps = defaultProps18;
5464
+
5465
+ // src/checkbox/checkbox-group.spec.tsx
5466
+ var import_jsx_runtime42 = require("react/jsx-runtime");
5467
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5468
+ var states23 = [];
5469
+ var options21 = {};
5470
+ var defaultProps19 = {
5471
+ layout: "vertical"
5472
+ };
5473
+ var CheckboxGroup = (props) => {
5474
+ const {
5475
+ layout = defaultProps19.layout,
5476
+ ...other
5477
+ } = props;
5478
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
5479
+ "ul",
5480
+ {
5481
+ ...other,
5482
+ className: classNames(
5483
+ props.className,
5484
+ CHECKBOXGROUP_CLASSNAME,
5485
+ {
5486
+ [`k-list-${layout}`]: layout
5487
+ }
5488
+ ),
5489
+ children: props.children
5490
+ }
5491
+ );
5492
+ };
5493
+ CheckboxGroup.states = states23;
5494
+ CheckboxGroup.options = options21;
5495
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5496
+ CheckboxGroup.defaultProps = defaultProps19;
5497
+
5498
+ // src/checkbox/checkbox-item.spec.tsx
5499
+ var import_jsx_runtime43 = require("react/jsx-runtime");
5500
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5501
+ var states24 = [];
5502
+ var options22 = {};
5503
+ var defaultProps20 = {};
5504
+ var CheckboxItem = (props) => {
5505
+ const {
5506
+ ...other
5507
+ } = props;
5444
5508
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5445
- "div",
5509
+ "li",
5446
5510
  {
5447
5511
  ...other,
5448
- dir,
5449
5512
  className: classNames(
5450
5513
  props.className,
5451
- TREEVIEW_CLASSNAME,
5452
- optionClassNames(TREEVIEW_CLASSNAME, {
5453
- size
5454
- })
5514
+ CHECKBOXITEM_CLASSNAME
5455
5515
  ),
5456
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TreeviewGroup, { className: "k-treeview-lines", dir, children: listChildren })
5516
+ children: props.children
5457
5517
  }
5458
5518
  );
5459
5519
  };
5460
- Treeview.states = states22;
5461
- Treeview.options = options21;
5462
- Treeview.className = TREEVIEW_CLASSNAME;
5463
- Treeview.defaultProps = defaultProps19;
5520
+ CheckboxItem.states = states24;
5521
+ CheckboxItem.options = options22;
5522
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5523
+ CheckboxItem.defaultProps = defaultProps20;
5464
5524
 
5465
- // src/treeview/treeview-group.tsx
5525
+ // src/checkbox/templates/checkbox-with-label-after.tsx
5466
5526
  var import_jsx_runtime44 = require("react/jsx-runtime");
5527
+
5528
+ // src/checkbox/templates/checkbox-with-label-before.tsx
5529
+ var import_jsx_runtime45 = require("react/jsx-runtime");
5530
+
5531
+ // src/checkbox/templates/checkbox-normal.tsx
5532
+ var import_jsx_runtime46 = require("react/jsx-runtime");
5533
+
5534
+ // src/treeview/treeview-group.tsx
5535
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5467
5536
  var import_react2 = require("react");
5468
5537
  var className9 = `k-treeview-group`;
5469
5538
  var TreeviewGroup = (props) => {
@@ -5484,23 +5553,23 @@ var TreeviewGroup = (props) => {
5484
5553
  } else {
5485
5554
  if (children.type === treeview_item_spec_default) {
5486
5555
  listChildren.push(
5487
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(treeview_item_spec_default, { ...children.props, dir })
5556
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(treeview_item_spec_default, { ...children.props, dir })
5488
5557
  );
5489
5558
  }
5490
5559
  }
5491
5560
  }
5492
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("ul", { className: classNames(props.className, className9), children: listChildren });
5561
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("ul", { className: classNames(props.className, className9), children: listChildren });
5493
5562
  };
5494
5563
 
5495
5564
  // src/treeview/treeview-leaf.tsx
5496
- var import_jsx_runtime45 = require("react/jsx-runtime");
5565
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5497
5566
  var TREEVIEWLEAF_CLASSNAME = `k-treeview-leaf`;
5498
- var states23 = [
5567
+ var states25 = [
5499
5568
  States.hover,
5500
5569
  States.focus,
5501
5570
  States.selected
5502
5571
  ];
5503
- var options22 = {};
5572
+ var options23 = {};
5504
5573
  var TreeviewLeaf = (props) => {
5505
5574
  const {
5506
5575
  text,
@@ -5511,7 +5580,7 @@ var TreeviewLeaf = (props) => {
5511
5580
  selected,
5512
5581
  ...other
5513
5582
  } = props;
5514
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
5583
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5515
5584
  "span",
5516
5585
  {
5517
5586
  ...other,
@@ -5525,29 +5594,29 @@ var TreeviewLeaf = (props) => {
5525
5594
  })
5526
5595
  ),
5527
5596
  children: [
5528
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { icon }),
5529
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "k-treeview-leaf-text", children: text })
5597
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { icon }),
5598
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "k-treeview-leaf-text", children: text })
5530
5599
  ]
5531
5600
  }
5532
5601
  );
5533
5602
  };
5534
- TreeviewLeaf.states = states23;
5535
- TreeviewLeaf.options = options22;
5603
+ TreeviewLeaf.states = states25;
5604
+ TreeviewLeaf.options = options23;
5536
5605
  TreeviewLeaf.className = TREEVIEWLEAF_CLASSNAME;
5537
5606
  var treeview_leaf_default = TreeviewLeaf;
5538
5607
 
5539
5608
  // src/treeview/treeview-item.spec.tsx
5540
- var import_jsx_runtime46 = require("react/jsx-runtime");
5609
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5541
5610
  var import_react3 = require("react");
5542
5611
  var TREEVIEWITEM_CLASSNAME = `k-treeview-item`;
5543
- var states24 = [
5612
+ var states26 = [
5544
5613
  States.hover,
5545
5614
  States.focus,
5546
5615
  States.selected,
5547
5616
  States.disabled
5548
5617
  ];
5549
- var options23 = {};
5550
- var defaultProps20 = {};
5618
+ var options24 = {};
5619
+ var defaultProps21 = {};
5551
5620
  var TreeviewItem = (props) => {
5552
5621
  const {
5553
5622
  leafClassName,
@@ -5580,12 +5649,12 @@ var TreeviewItem = (props) => {
5580
5649
  } else {
5581
5650
  if (children.type === TreeviewGroup) {
5582
5651
  listChildren.push(
5583
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TreeviewGroup, { ...children.props, dir, children: children.props.children })
5652
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TreeviewGroup, { ...children.props, dir, children: children.props.children })
5584
5653
  );
5585
5654
  }
5586
5655
  }
5587
5656
  }
5588
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5657
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5589
5658
  "li",
5590
5659
  {
5591
5660
  ...other,
@@ -5594,19 +5663,19 @@ var TreeviewItem = (props) => {
5594
5663
  TREEVIEWITEM_CLASSNAME
5595
5664
  ),
5596
5665
  children: [
5597
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: "k-treeview-mid", children: [
5598
- _hasChildren && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5666
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("span", { className: "k-treeview-mid", children: [
5667
+ _hasChildren && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5599
5668
  "span",
5600
5669
  {
5601
5670
  className: classNames(
5602
5671
  "k-treeview-toggle",
5603
5672
  stateClassNames("k-treeview-toggle", { disabled })
5604
5673
  ),
5605
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { icon: expanded ? "caret-alt-down" : dir === "rtl" ? "caret-alt-left" : "caret-alt-right" })
5674
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: expanded ? "caret-alt-down" : dir === "rtl" ? "caret-alt-left" : "caret-alt-right" })
5606
5675
  }
5607
5676
  ),
5608
- showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Checkbox, { checked, disabled }),
5609
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5677
+ showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Checkbox, { checked, disabled }),
5678
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5610
5679
  treeview_leaf_default,
5611
5680
  {
5612
5681
  className: classNames(
@@ -5622,31 +5691,354 @@ var TreeviewItem = (props) => {
5622
5691
  }
5623
5692
  )
5624
5693
  ] }),
5625
- expanded && _hasChildren && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: listChildren })
5694
+ expanded && _hasChildren && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: listChildren })
5626
5695
  ]
5627
5696
  }
5628
5697
  );
5629
5698
  };
5630
- TreeviewItem.states = states24;
5631
- TreeviewItem.options = options23;
5699
+ TreeviewItem.states = states26;
5700
+ TreeviewItem.options = options24;
5632
5701
  TreeviewItem.className = TREEVIEWITEM_CLASSNAME;
5633
- TreeviewItem.defaultProps = defaultProps20;
5702
+ TreeviewItem.defaultProps = defaultProps21;
5634
5703
  var treeview_item_spec_default = TreeviewItem;
5635
5704
 
5636
5705
  // src/treeview/templates/treeview-normal.tsx
5637
- var import_jsx_runtime47 = require("react/jsx-runtime");
5706
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5638
5707
 
5639
5708
  // src/treeview/templates/treeview-hierarchy.tsx
5640
- var import_jsx_runtime48 = require("react/jsx-runtime");
5709
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5641
5710
 
5642
5711
  // src/treeview/templates/treeview-icons.tsx
5643
- var import_jsx_runtime49 = require("react/jsx-runtime");
5712
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5644
5713
 
5645
5714
  // src/treeview/templates/treeview-checkboxes.tsx
5646
- var import_jsx_runtime50 = require("react/jsx-runtime");
5715
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5716
+
5717
+ // src/multiselecttree/multiselecttree.spec.tsx
5718
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5719
+ var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5720
+ var states27 = [
5721
+ States.hover,
5722
+ States.focus,
5723
+ States.valid,
5724
+ States.invalid,
5725
+ States.required,
5726
+ States.disabled,
5727
+ States.loading,
5728
+ States.readonly
5729
+ ];
5730
+ var options25 = {
5731
+ size: [Size.small, Size.medium, Size.large],
5732
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5733
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5734
+ };
5735
+ var defaultProps22 = {
5736
+ size: Input.defaultProps.size,
5737
+ rounded: Input.defaultProps.rounded,
5738
+ fillMode: Input.defaultProps.fillMode
5739
+ };
5740
+ var MultiSelectTree = (props) => {
5741
+ const {
5742
+ prefix,
5743
+ suffix,
5744
+ placeholder,
5745
+ tags,
5746
+ popup,
5747
+ size,
5748
+ rounded,
5749
+ fillMode,
5750
+ showArrowButton,
5751
+ hover,
5752
+ focus,
5753
+ valid,
5754
+ invalid,
5755
+ required,
5756
+ loading,
5757
+ disabled,
5758
+ readonly,
5759
+ opened,
5760
+ dir,
5761
+ adaptive,
5762
+ adaptiveSettings,
5763
+ ...other
5764
+ } = props;
5765
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
5766
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5767
+ Input,
5768
+ {
5769
+ ...other,
5770
+ dir,
5771
+ size,
5772
+ rounded,
5773
+ fillMode,
5774
+ hover,
5775
+ focus,
5776
+ valid,
5777
+ invalid,
5778
+ required,
5779
+ loading,
5780
+ disabled,
5781
+ readonly,
5782
+ className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5783
+ children: [
5784
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputPrefix, { children: prefix }),
5785
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: tags }) }),
5786
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "k-input-inner", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "k-input-value-text", children: placeholder }) }),
5787
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5788
+ InputValidationIcon,
5789
+ {
5790
+ valid,
5791
+ invalid,
5792
+ loading,
5793
+ disabled
5794
+ }
5795
+ ),
5796
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5797
+ InputLoadingIcon,
5798
+ {
5799
+ loading,
5800
+ disabled
5801
+ }
5802
+ ),
5803
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5804
+ InputClearValue,
5805
+ {
5806
+ loading,
5807
+ disabled,
5808
+ readonly,
5809
+ value: tags ? "value" : ""
5810
+ }
5811
+ ),
5812
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(InputSuffix, { children: suffix }),
5813
+ showArrowButton && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5814
+ Button,
5815
+ {
5816
+ className: "k-input-button",
5817
+ icon: "caret-alt-down",
5818
+ rounded: null,
5819
+ size,
5820
+ fillMode
5821
+ }
5822
+ )
5823
+ ]
5824
+ }
5825
+ ),
5826
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popup, { className: "k-multiselecttree-popup", dir, children: popup }),
5827
+ adaptive && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5828
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5829
+ ActionSheetHeader,
5830
+ {
5831
+ filter: true,
5832
+ actions: ["x"],
5833
+ title: "Select value"
5834
+ }
5835
+ ),
5836
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Treeview, { size: "large", children: [
5837
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Root 1" }),
5838
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Root 2", expanded: true, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(TreeviewGroup, { children: [
5839
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 2.1" }),
5840
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 2.2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 2.2.1" }) }) }),
5841
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 2.3" }),
5842
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { leafClassName: "k-treeview-load-more-button", text: "Load more ..." })
5843
+ ] }) }),
5844
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Root 3", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(TreeviewGroup, { children: [
5845
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 3.1" }),
5846
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 3.2" }),
5847
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(TreeviewItem, { text: "Child 3.3" })
5848
+ ] }) })
5849
+ ] })
5850
+ ] })
5851
+ ] });
5852
+ };
5853
+ MultiSelectTree.states = states27;
5854
+ MultiSelectTree.options = options25;
5855
+ MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5856
+ MultiSelectTree.defaultProps = defaultProps22;
5857
+ var multiselecttree_spec_default = MultiSelectTree;
5858
+
5859
+ // src/multiselecttree/templates/multiselecttree-normal.tsx
5860
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5861
+
5862
+ // src/multiselecttree/templates/multiselecttree-arrow-button.tsx
5863
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5864
+
5865
+ // src/multiselecttree/templates/multiselecttree-value.tsx
5866
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5867
+
5868
+ // src/multiselecttree/templates/multiselecttree-adaptive.tsx
5869
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5870
+
5871
+ // src/multiselecttree/templates/multiselecttree-popup.tsx
5872
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5873
+ var MultiSelectTreePopup = (props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5874
+ multiselecttree_spec_default,
5875
+ {
5876
+ opened: true,
5877
+ popup: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
5878
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "k-check-all", children: [
5879
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Checkbox, {}),
5880
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "k-checkbox-label", children: "Check all" })
5881
+ ] }),
5882
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Treeview, { dir: props.dir, children: [
5883
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(TreeviewGroup, { children: [
5884
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5885
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5886
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
5887
+ ] }) }),
5888
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(TreeviewGroup, { children: [
5889
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5890
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5891
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
5892
+ ] }) })
5893
+ ] })
5894
+ ] }),
5895
+ ...props
5896
+ }
5897
+ );
5898
+
5899
+ // src/textbox/textbox.spec.tsx
5900
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5901
+ var TEXTBOX_CLASSNAME = `k-textbox`;
5902
+ var states28 = [
5903
+ States.hover,
5904
+ States.focus,
5905
+ States.valid,
5906
+ States.invalid,
5907
+ States.required,
5908
+ States.disabled,
5909
+ States.loading,
5910
+ States.readonly
5911
+ ];
5912
+ var options26 = {
5913
+ size: [Size.small, Size.medium, Size.large],
5914
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5915
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5916
+ };
5917
+ var defaultProps23 = {
5918
+ showClearButton: true,
5919
+ size: Input.defaultProps.size,
5920
+ rounded: Input.defaultProps.rounded,
5921
+ fillMode: Input.defaultProps.fillMode
5922
+ };
5923
+ var Textbox = (props) => {
5924
+ const {
5925
+ prefix,
5926
+ suffix,
5927
+ value,
5928
+ placeholder,
5929
+ size,
5930
+ rounded,
5931
+ fillMode,
5932
+ hover,
5933
+ focus,
5934
+ valid,
5935
+ invalid,
5936
+ required,
5937
+ loading,
5938
+ disabled,
5939
+ readonly,
5940
+ showClearButton = defaultProps23.showClearButton,
5941
+ ...other
5942
+ } = props;
5943
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5944
+ Input,
5945
+ {
5946
+ ...other,
5947
+ size,
5948
+ rounded,
5949
+ fillMode,
5950
+ hover,
5951
+ focus,
5952
+ valid,
5953
+ invalid,
5954
+ required,
5955
+ loading,
5956
+ disabled,
5957
+ readonly,
5958
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
5959
+ children: [
5960
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputPrefix, { children: prefix }),
5961
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputInnerInput, { placeholder, value }),
5962
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5963
+ InputValidationIcon,
5964
+ {
5965
+ valid,
5966
+ invalid,
5967
+ loading,
5968
+ disabled
5969
+ }
5970
+ ),
5971
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5972
+ InputLoadingIcon,
5973
+ {
5974
+ loading,
5975
+ disabled
5976
+ }
5977
+ ),
5978
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5979
+ InputClearValue,
5980
+ {
5981
+ loading,
5982
+ disabled,
5983
+ readonly,
5984
+ value
5985
+ }
5986
+ ),
5987
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InputSuffix, { children: suffix })
5988
+ ]
5989
+ }
5990
+ );
5991
+ };
5992
+ Textbox.states = states28;
5993
+ Textbox.options = options26;
5994
+ Textbox.className = TEXTBOX_CLASSNAME;
5995
+ Textbox.defaultProps = defaultProps23;
5996
+
5997
+ // src/textbox/templates/textbox-normal.tsx
5998
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5999
+
6000
+ // src/textbox/templates/textbox-prefix.tsx
6001
+ var import_jsx_runtime62 = require("react/jsx-runtime");
6002
+
6003
+ // src/textbox/templates/textbox-suffix.tsx
6004
+ var import_jsx_runtime63 = require("react/jsx-runtime");
6005
+
6006
+ // src/multiselecttree/templates/multiselecttree-filtering.tsx
6007
+ var import_jsx_runtime64 = require("react/jsx-runtime");
6008
+ var MultiSelectTreeFiltering = (props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6009
+ multiselecttree_spec_default,
6010
+ {
6011
+ opened: true,
6012
+ popup: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
6013
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "k-list-filter", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
6014
+ Textbox,
6015
+ {
6016
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { icon: "search" }) })
6017
+ }
6018
+ ) }),
6019
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "k-check-all", children: [
6020
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Checkbox, {}),
6021
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "k-checkbox-label", children: "Check all" })
6022
+ ] }),
6023
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Treeview, { dir: props.dir, children: [
6024
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(TreeviewGroup, { children: [
6025
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
6026
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
6027
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
6028
+ ] }) }),
6029
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(TreeviewGroup, { children: [
6030
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
6031
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
6032
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
6033
+ ] }) })
6034
+ ] })
6035
+ ] }),
6036
+ ...props
6037
+ }
6038
+ );
5647
6039
 
5648
6040
  // src/multiselecttree/tests/multiselecttree-opened.tsx
5649
- var import_jsx_runtime51 = require("react/jsx-runtime");
6041
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5650
6042
  var styles = `
5651
6043
  #test-area {
5652
6044
  grid-template-columns: 160px repeat(2, 300px);
@@ -5656,74 +6048,28 @@ var styles = `
5656
6048
  position: relative;
5657
6049
  }
5658
6050
  `;
5659
- var multiselecttree_opened_default = () => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
5660
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("style", { children: styles }),
5661
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { id: "test-area", className: "k-d-grid", children: [
5662
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", {}),
5663
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: "MultiSelectTree" }),
5664
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: "MultiSelectTree RTL" }),
5665
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: "Opened" }),
5666
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5667
- MultiSelectTree,
6051
+ var multiselecttree_opened_default = () => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
6052
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("style", { children: styles }),
6053
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { id: "test-area", className: "k-d-grid", children: [
6054
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", {}),
6055
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: "MultiSelectTree" }),
6056
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: "MultiSelectTree RTL" }),
6057
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: "Opened" }),
6058
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MultiSelectTreePopup, { tags: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Chip, { text: "Furniture", actions: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChipAction, { type: "remove" }) }) }) }) }),
6059
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6060
+ MultiSelectTreePopup,
5668
6061
  {
5669
- opened: true,
5670
- tags: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Chip, { text: "Furniture", actions: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChipAction, { type: "remove" }) }) }),
5671
- popup: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
5672
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "k-list-filter", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5673
- Textbox,
5674
- {
5675
- prefix: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: "search" }) })
5676
- }
5677
- ) }),
5678
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "k-check-all", children: [
5679
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Checkbox, {}),
5680
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "k-checkbox-label", children: "Check all" })
5681
- ] }),
5682
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Treeview, { children: [
5683
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(TreeviewGroup, { children: [
5684
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5685
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5686
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
5687
- ] }) }),
5688
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(TreeviewGroup, { children: [
5689
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5690
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5691
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
5692
- ] }) })
5693
- ] })
5694
- ] })
6062
+ tags: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Chip, { text: "Furniture", actions: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChipAction, { type: "remove" }) }) }),
6063
+ dir: "rtl"
5695
6064
  }
5696
6065
  ) }),
5697
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5698
- MultiSelectTree,
6066
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: "Filtering" }),
6067
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(MultiSelectTreeFiltering, { tags: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Chip, { text: "Furniture", actions: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChipAction, { type: "remove" }) }) }) }) }),
6068
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
6069
+ MultiSelectTreeFiltering,
5699
6070
  {
5700
- opened: true,
5701
- dir: "rtl",
5702
- tags: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Chip, { text: "Furniture", actions: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChipAction, { type: "remove" }) }) }),
5703
- popup: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
5704
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "k-list-filter", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5705
- Textbox,
5706
- {
5707
- prefix: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: "search" }) })
5708
- }
5709
- ) }),
5710
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "k-check-all", children: [
5711
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Checkbox, {}),
5712
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "k-checkbox-label", children: "Check all" })
5713
- ] }),
5714
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Treeview, { dir: "rtl", children: [
5715
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(TreeviewGroup, { children: [
5716
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5717
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5718
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
5719
- ] }) }),
5720
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(TreeviewGroup, { children: [
5721
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5722
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5723
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TreeviewItem, { text: "Child 3", showCheckbox: true })
5724
- ] }) })
5725
- ] })
5726
- ] })
6071
+ tags: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Chip, { text: "Furniture", actions: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChipAction, { type: "remove" }) }) }),
6072
+ dir: "rtl"
5727
6073
  }
5728
6074
  ) })
5729
6075
  ] })