@progress/kendo-themes-html 7.0.2-dev.5 → 7.0.3-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/cjs/context-menu/tests/context-menu-in-window.js +45 -31
  2. package/dist/cjs/dialog/tests/dialog-in-window.js +32 -18
  3. package/dist/cjs/editor/tests/editor-find-replace.js +86 -72
  4. package/dist/cjs/editor/tests/editor-image-editor.js +48 -34
  5. package/dist/cjs/editor/tests/editor-table-wizard.js +115 -101
  6. package/dist/cjs/editor/tests/editor-view-source.js +47 -33
  7. package/dist/cjs/fab/fab-item.js +1 -0
  8. package/dist/cjs/fab/templates/icon-fab.js +4426 -0
  9. package/dist/cjs/fab/templates/icon-text-fab.js +4427 -0
  10. package/dist/cjs/fab/templates/text-fab.js +4426 -0
  11. package/dist/cjs/fab/tests/fab-items.js +51 -113
  12. package/dist/cjs/fab/tests/fab-position.js +73 -20
  13. package/dist/cjs/fab/tests/{fab-size.js → fab-size-rounded.js} +89 -93
  14. package/dist/cjs/fab/tests/fab-states.js +67 -14
  15. package/dist/cjs/fab/tests/fab.js +82 -48
  16. package/dist/cjs/filemanager/tests/filemanager-dialogs.js +35 -19
  17. package/dist/cjs/form/tests/form-field-inputs-rtl.js +137 -115
  18. package/dist/cjs/form/tests/form-field-inputs.js +151 -129
  19. package/dist/cjs/gantt/tests/gantt-editing-popup-general.js +434 -420
  20. package/dist/cjs/gantt/tests/gantt-editing-popup-other.js +332 -318
  21. package/dist/cjs/gantt/tests/gantt-editing-popup-predecessors.js +442 -428
  22. package/dist/cjs/gantt/tests/gantt-editing-popup-resources.js +485 -471
  23. package/dist/cjs/gantt/tests/gantt-editing-popup-successors.js +442 -428
  24. package/dist/cjs/grid/tests/grid-column-resizing-actions.js +140 -126
  25. package/dist/cjs/grid/tests/grid-editing-popup.js +375 -361
  26. package/dist/cjs/index.js +1935 -1659
  27. package/dist/cjs/multiselecttree/multiselecttree.spec.js +712 -18
  28. package/dist/cjs/multiselecttree/templates/multiselecttree-adaptive.js +5837 -0
  29. package/dist/cjs/multiselecttree/templates/multiselecttree-arrow-button.js +5837 -0
  30. package/dist/cjs/multiselecttree/templates/multiselecttree-filtering.js +5968 -0
  31. package/dist/cjs/multiselecttree/templates/multiselecttree-normal.js +5831 -0
  32. package/dist/cjs/multiselecttree/templates/multiselecttree-popup.js +5855 -0
  33. package/dist/cjs/multiselecttree/templates/multiselecttree-value.js +5869 -0
  34. package/dist/cjs/multiselecttree/tests/multiselecttree-adaptive.js +5984 -0
  35. package/dist/cjs/multiselecttree/tests/multiselecttree-flat.js +887 -147
  36. package/dist/cjs/multiselecttree/tests/multiselecttree-opened.js +1283 -937
  37. package/dist/cjs/multiselecttree/tests/multiselecttree-outline.js +887 -147
  38. package/dist/cjs/multiselecttree/tests/{multiselecttree.js → multiselecttree-size-rounded.js} +865 -150
  39. package/dist/cjs/multiselecttree/tests/multiselecttree-solid.js +6048 -0
  40. package/dist/cjs/notification/index.js +51 -1
  41. package/dist/cjs/notification/templates/icon-notification-closable.js +4389 -0
  42. package/dist/cjs/notification/templates/icon-notification.js +4368 -0
  43. package/dist/cjs/notification/templates/notification-closable.js +4388 -0
  44. package/dist/cjs/notification/templates/notification-normal.js +4367 -0
  45. package/dist/cjs/notification/tests/notification-angular-colors.js +4404 -0
  46. package/dist/cjs/notification/tests/notification-angular.js +60 -34
  47. package/dist/cjs/notification/tests/notification-custom-angular.js +48 -20
  48. package/dist/cjs/notification/tests/notification-jquery-colors.js +4441 -0
  49. package/dist/cjs/notification/tests/notification-jquery.js +63 -37
  50. package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +457 -441
  51. package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +530 -516
  52. package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +544 -530
  53. package/dist/cjs/spreadsheet/tests/spreadsheet-data-validation.js +194 -180
  54. package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +235 -205
  55. package/dist/cjs/spreadsheet/tests/spreadsheet-find-replace-dialog.js +169 -155
  56. package/dist/cjs/spreadsheet/tests/spreadsheet-format-dialogs.js +471 -457
  57. package/dist/cjs/spreadsheet/tests/spreadsheet-formula-dialog.js +167 -153
  58. package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +267 -237
  59. package/dist/cjs/spreadsheet/tests/spreadsheet-print.js +243 -229
  60. package/dist/cjs/spreadsheet/tests/spreadsheet-sheets-bar.js +123 -109
  61. package/dist/cjs/treelist/tests/treelist-editing-popup.js +317 -303
  62. package/dist/cjs/upload/templates/upload-batch.js +4846 -0
  63. package/dist/cjs/{multiselecttree/tests/multiselecttree-size.js → upload/templates/upload-chunk.js} +396 -768
  64. package/dist/cjs/upload/templates/upload-normal.js +4761 -0
  65. package/dist/cjs/upload/tests/upload-rtl.js +67 -49
  66. package/dist/cjs/upload/tests/upload-states.js +4782 -0
  67. package/dist/cjs/upload/tests/upload.js +62 -36
  68. package/dist/cjs/upload/upload.spec.js +1 -1
  69. package/dist/cjs/window/templates/window-normal.js +4546 -0
  70. package/dist/cjs/window/tests/window-action-buttons.js +30 -16
  71. package/dist/cjs/window/tests/window-rtl.js +23 -9
  72. package/dist/cjs/window/tests/window-theme-colors.js +22 -9
  73. package/dist/cjs/window/tests/window.js +23 -9
  74. package/dist/esm/context-menu/tests/context-menu-in-window.js +43 -29
  75. package/dist/esm/dialog/tests/dialog-in-window.js +30 -16
  76. package/dist/esm/editor/tests/editor-find-replace.js +78 -64
  77. package/dist/esm/editor/tests/editor-image-editor.js +41 -27
  78. package/dist/esm/editor/tests/editor-table-wizard.js +110 -96
  79. package/dist/esm/editor/tests/editor-view-source.js +46 -32
  80. package/dist/esm/fab/fab-item.js +1 -0
  81. package/dist/esm/fab/templates/icon-fab.js +4410 -0
  82. package/dist/esm/fab/templates/icon-text-fab.js +4411 -0
  83. package/dist/esm/fab/templates/text-fab.js +4410 -0
  84. package/dist/esm/fab/tests/fab-items.js +49 -111
  85. package/dist/esm/fab/tests/fab-position.js +71 -18
  86. package/dist/esm/fab/tests/{fab-size.js → fab-size-rounded.js} +85 -89
  87. package/dist/esm/fab/tests/fab-states.js +64 -11
  88. package/dist/esm/fab/tests/fab.js +80 -46
  89. package/dist/esm/filemanager/tests/filemanager-dialogs.js +35 -19
  90. package/dist/esm/form/tests/form-field-inputs-rtl.js +137 -115
  91. package/dist/esm/form/tests/form-field-inputs.js +151 -129
  92. package/dist/esm/gantt/tests/gantt-editing-popup-general.js +381 -367
  93. package/dist/esm/gantt/tests/gantt-editing-popup-other.js +290 -276
  94. package/dist/esm/gantt/tests/gantt-editing-popup-predecessors.js +386 -372
  95. package/dist/esm/gantt/tests/gantt-editing-popup-resources.js +419 -405
  96. package/dist/esm/gantt/tests/gantt-editing-popup-successors.js +386 -372
  97. package/dist/esm/grid/tests/grid-column-resizing-actions.js +117 -103
  98. package/dist/esm/grid/tests/grid-editing-popup.js +328 -314
  99. package/dist/esm/index.js +1935 -1659
  100. package/dist/esm/multiselecttree/multiselecttree.spec.js +712 -18
  101. package/dist/esm/multiselecttree/templates/multiselecttree-adaptive.js +5821 -0
  102. package/dist/esm/multiselecttree/templates/multiselecttree-arrow-button.js +5821 -0
  103. package/dist/esm/multiselecttree/templates/multiselecttree-filtering.js +5952 -0
  104. package/dist/esm/multiselecttree/templates/multiselecttree-normal.js +5815 -0
  105. package/dist/esm/multiselecttree/templates/multiselecttree-popup.js +5839 -0
  106. package/dist/esm/multiselecttree/templates/multiselecttree-value.js +5853 -0
  107. package/dist/esm/multiselecttree/tests/multiselecttree-adaptive.js +5968 -0
  108. package/dist/esm/multiselecttree/tests/multiselecttree-flat.js +887 -147
  109. package/dist/esm/multiselecttree/tests/multiselecttree-opened.js +1337 -991
  110. package/dist/esm/multiselecttree/tests/multiselecttree-outline.js +887 -147
  111. package/dist/esm/multiselecttree/tests/{multiselecttree.js → multiselecttree-size-rounded.js} +861 -146
  112. package/dist/esm/multiselecttree/tests/multiselecttree-solid.js +6032 -0
  113. package/dist/esm/notification/index.js +51 -1
  114. package/dist/esm/notification/templates/icon-notification-closable.js +4373 -0
  115. package/dist/esm/notification/templates/icon-notification.js +4352 -0
  116. package/dist/esm/notification/templates/notification-closable.js +4372 -0
  117. package/dist/esm/notification/templates/notification-normal.js +4351 -0
  118. package/dist/esm/notification/tests/notification-angular-colors.js +4388 -0
  119. package/dist/esm/notification/tests/notification-angular.js +58 -32
  120. package/dist/esm/notification/tests/notification-custom-angular.js +46 -18
  121. package/dist/esm/notification/tests/notification-jquery-colors.js +4425 -0
  122. package/dist/esm/notification/tests/notification-jquery.js +61 -35
  123. package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +457 -441
  124. package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +466 -452
  125. package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +479 -465
  126. package/dist/esm/spreadsheet/tests/spreadsheet-data-validation.js +179 -165
  127. package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +215 -185
  128. package/dist/esm/spreadsheet/tests/spreadsheet-find-replace-dialog.js +155 -141
  129. package/dist/esm/spreadsheet/tests/spreadsheet-format-dialogs.js +409 -395
  130. package/dist/esm/spreadsheet/tests/spreadsheet-formula-dialog.js +153 -139
  131. package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +253 -223
  132. package/dist/esm/spreadsheet/tests/spreadsheet-print.js +218 -204
  133. package/dist/esm/spreadsheet/tests/spreadsheet-sheets-bar.js +108 -94
  134. package/dist/esm/treelist/tests/treelist-editing-popup.js +275 -261
  135. package/dist/esm/upload/templates/upload-batch.js +4830 -0
  136. package/dist/esm/{multiselecttree/tests/multiselecttree-size.js → upload/templates/upload-chunk.js} +392 -764
  137. package/dist/esm/upload/templates/upload-normal.js +4745 -0
  138. package/dist/esm/upload/tests/upload-rtl.js +67 -49
  139. package/dist/esm/upload/tests/upload-states.js +4766 -0
  140. package/dist/esm/upload/tests/upload.js +62 -36
  141. package/dist/esm/upload/upload.spec.js +1 -1
  142. package/dist/esm/window/templates/window-normal.js +4530 -0
  143. package/dist/esm/window/tests/window-action-buttons.js +29 -15
  144. package/dist/esm/window/tests/window-rtl.js +22 -8
  145. package/dist/esm/window/tests/window-theme-colors.js +22 -9
  146. package/dist/esm/window/tests/window.js +22 -8
  147. package/dist/types/fab/fab-item.d.ts +4 -1
  148. package/dist/types/fab/index.d.ts +3 -0
  149. package/dist/types/fab/templates/icon-fab.d.ts +1 -0
  150. package/dist/types/fab/templates/icon-text-fab.d.ts +1 -0
  151. package/dist/types/fab/templates/text-fab.d.ts +1 -0
  152. package/dist/types/multiselecttree/index.d.ts +6 -0
  153. package/dist/types/multiselecttree/multiselecttree.spec.d.ts +3 -0
  154. package/dist/types/multiselecttree/templates/multiselecttree-adaptive.d.ts +1 -0
  155. package/dist/types/multiselecttree/templates/multiselecttree-arrow-button.d.ts +1 -0
  156. package/dist/types/multiselecttree/templates/multiselecttree-filtering.d.ts +1 -0
  157. package/dist/types/multiselecttree/templates/multiselecttree-normal.d.ts +1 -0
  158. package/dist/types/multiselecttree/templates/multiselecttree-popup.d.ts +1 -0
  159. package/dist/types/multiselecttree/templates/multiselecttree-value.d.ts +1 -0
  160. package/dist/types/multiselecttree/tests/multiselecttree-solid.d.ts +2 -0
  161. package/dist/types/notification/index.d.ts +4 -0
  162. package/dist/types/notification/templates/icon-notification-closable.d.ts +1 -0
  163. package/dist/types/notification/templates/icon-notification.d.ts +1 -0
  164. package/dist/types/notification/templates/notification-closable.d.ts +1 -0
  165. package/dist/types/notification/templates/notification-normal.d.ts +1 -0
  166. package/dist/types/notification/tests/notification-angular-colors.d.ts +2 -0
  167. package/dist/types/notification/tests/notification-jquery-colors.d.ts +2 -0
  168. package/dist/types/upload/index.d.ts +3 -0
  169. package/dist/types/upload/templates/upload-batch.d.ts +1 -0
  170. package/dist/types/upload/templates/upload-chunk.d.ts +1 -0
  171. package/dist/types/upload/templates/upload-normal.d.ts +1 -0
  172. package/dist/types/upload/tests/upload-states.d.ts +2 -0
  173. package/dist/types/window/index.d.ts +1 -0
  174. package/dist/types/window/templates/window-normal.d.ts +1 -0
  175. package/package.json +2 -2
  176. package/src/context-menu/tests/context-menu-in-window.tsx +3 -3
  177. package/src/dialog/tests/dialog-in-window.tsx +3 -3
  178. package/src/editor/tests/editor-find-replace.tsx +5 -5
  179. package/src/editor/tests/editor-image-editor.tsx +3 -3
  180. package/src/editor/tests/editor-table-wizard.tsx +7 -7
  181. package/src/editor/tests/editor-view-source.tsx +3 -3
  182. package/src/fab/fab-item.tsx +2 -0
  183. package/src/fab/index.ts +3 -0
  184. package/src/fab/templates/icon-fab.tsx +7 -0
  185. package/src/fab/templates/icon-text-fab.tsx +8 -0
  186. package/src/fab/templates/text-fab.tsx +7 -0
  187. package/src/fab/tests/fab-items.tsx +57 -127
  188. package/src/fab/tests/fab-position.tsx +9 -9
  189. package/src/fab/tests/fab-size-rounded.tsx +35 -0
  190. package/src/fab/tests/fab-states.tsx +2 -2
  191. package/src/fab/tests/fab.tsx +14 -110
  192. package/src/filemanager/tests/filemanager-dialogs.tsx +2 -2
  193. package/src/form/tests/form-field-inputs-rtl.tsx +5 -5
  194. package/src/form/tests/form-field-inputs.tsx +5 -5
  195. package/src/gantt/tests/gantt-editing-popup-general.tsx +3 -3
  196. package/src/gantt/tests/gantt-editing-popup-other.tsx +3 -3
  197. package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +3 -3
  198. package/src/gantt/tests/gantt-editing-popup-resources.tsx +3 -3
  199. package/src/gantt/tests/gantt-editing-popup-successors.tsx +3 -3
  200. package/src/grid/tests/grid-column-resizing-actions.tsx +3 -3
  201. package/src/grid/tests/grid-editing-popup.tsx +3 -3
  202. package/src/multiselecttree/index.ts +6 -0
  203. package/src/multiselecttree/multiselecttree.spec.tsx +37 -0
  204. package/src/multiselecttree/templates/multiselecttree-adaptive.tsx +8 -0
  205. package/src/multiselecttree/templates/multiselecttree-arrow-button.tsx +8 -0
  206. package/src/multiselecttree/templates/multiselecttree-filtering.tsx +47 -0
  207. package/src/multiselecttree/templates/multiselecttree-normal.tsx +3 -0
  208. package/src/multiselecttree/templates/multiselecttree-popup.tsx +36 -0
  209. package/src/multiselecttree/templates/multiselecttree-value.tsx +12 -0
  210. package/src/multiselecttree/tests/multiselecttree-adaptive.tsx +33 -0
  211. package/src/multiselecttree/tests/multiselecttree-flat.tsx +32 -126
  212. package/src/multiselecttree/tests/multiselecttree-opened.tsx +29 -90
  213. package/src/multiselecttree/tests/multiselecttree-outline.tsx +32 -126
  214. package/src/multiselecttree/tests/multiselecttree-size-rounded.tsx +38 -0
  215. package/src/multiselecttree/tests/multiselecttree-solid.tsx +79 -0
  216. package/src/notification/index.tsx +4 -0
  217. package/src/notification/templates/icon-notification-closable.tsx +10 -0
  218. package/src/notification/templates/icon-notification.tsx +9 -0
  219. package/src/notification/templates/notification-closable.tsx +9 -0
  220. package/src/notification/templates/notification-normal.tsx +8 -0
  221. package/src/notification/tests/notification-angular-colors.tsx +28 -0
  222. package/src/notification/tests/notification-angular.tsx +10 -95
  223. package/src/notification/tests/notification-custom-angular.tsx +9 -9
  224. package/src/notification/tests/notification-jquery-colors.tsx +30 -0
  225. package/src/notification/tests/notification-jquery.tsx +10 -95
  226. package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
  227. package/src/scheduler/tests/scheduler-edit-dialog.tsx +3 -3
  228. package/src/scheduler/tests/scheduler-editing-weekly.tsx +3 -3
  229. package/src/spreadsheet/tests/spreadsheet-data-validation.tsx +5 -5
  230. package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +9 -9
  231. package/src/spreadsheet/tests/spreadsheet-find-replace-dialog.tsx +3 -3
  232. package/src/spreadsheet/tests/spreadsheet-format-dialogs.tsx +5 -5
  233. package/src/spreadsheet/tests/spreadsheet-formula-dialog.tsx +3 -3
  234. package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +13 -13
  235. package/src/spreadsheet/tests/spreadsheet-print.tsx +5 -5
  236. package/src/spreadsheet/tests/spreadsheet-sheets-bar.tsx +5 -5
  237. package/src/treelist/tests/treelist-editing-popup.tsx +3 -3
  238. package/src/upload/index.ts +3 -0
  239. package/src/upload/templates/upload-batch.tsx +14 -0
  240. package/src/upload/templates/upload-chunk.tsx +12 -0
  241. package/src/upload/templates/upload-normal.tsx +7 -0
  242. package/src/upload/tests/upload-rtl.tsx +35 -48
  243. package/src/upload/tests/upload-states.tsx +29 -0
  244. package/src/upload/tests/upload.tsx +34 -39
  245. package/src/upload/upload.spec.tsx +1 -1
  246. package/src/window/index.ts +1 -0
  247. package/src/window/templates/window-normal.tsx +11 -0
  248. package/src/window/tests/window-action-buttons.tsx +9 -9
  249. package/src/window/tests/window-rtl.tsx +6 -8
  250. package/src/window/tests/window-theme-colors.tsx +6 -18
  251. package/src/window/tests/window.tsx +6 -6
  252. package/src/fab/tests/fab-size.tsx +0 -109
  253. package/src/multiselecttree/tests/multiselecttree-size.tsx +0 -50
  254. package/src/multiselecttree/tests/multiselecttree.tsx +0 -175
  255. /package/dist/types/fab/tests/{fab-size.d.ts → fab-size-rounded.d.ts} +0 -0
  256. /package/dist/types/multiselecttree/tests/{multiselecttree-size.d.ts → multiselecttree-adaptive.d.ts} +0 -0
  257. /package/dist/types/multiselecttree/tests/{multiselecttree.d.ts → multiselecttree-size-rounded.d.ts} +0 -0
@@ -111,11 +111,122 @@ var States = {
111
111
  "readonly": "readonly"
112
112
  };
113
113
 
114
+ // src/input/input.spec.tsx
115
+ import { jsx } from "react/jsx-runtime";
116
+ var INPUT_CLASSNAME = `k-input`;
117
+ var states = [
118
+ States.hover,
119
+ States.focus,
120
+ States.valid,
121
+ States.invalid,
122
+ States.required,
123
+ States.disabled,
124
+ States.loading,
125
+ States.readonly
126
+ ];
127
+ var options = {
128
+ size: [Size.small, Size.medium, Size.large],
129
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
130
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
131
+ };
132
+ var defaultProps = {
133
+ size: Size.medium,
134
+ rounded: Size.medium,
135
+ fillMode: FillMode.solid
136
+ };
137
+ var Input = (props) => {
138
+ const {
139
+ hover,
140
+ focus,
141
+ disabled,
142
+ invalid,
143
+ valid,
144
+ loading,
145
+ readonly,
146
+ size = defaultProps.size,
147
+ rounded = defaultProps.rounded,
148
+ fillMode = defaultProps.fillMode,
149
+ ...other
150
+ } = props;
151
+ return /* @__PURE__ */ jsx(
152
+ "span",
153
+ {
154
+ ...other,
155
+ className: classNames(
156
+ props.className,
157
+ INPUT_CLASSNAME,
158
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
159
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
160
+ )
161
+ }
162
+ );
163
+ };
164
+ Input.states = states;
165
+ Input.options = options;
166
+ Input.className = INPUT_CLASSNAME;
167
+ Input.defaultProps = defaultProps;
168
+
169
+ // src/input/picker.spec.tsx
170
+ import { jsx as jsx2 } from "react/jsx-runtime";
171
+ var PICKER_CLASSNAME = `k-picker`;
172
+ var pickerStates = [
173
+ States.hover,
174
+ States.focus,
175
+ States.valid,
176
+ States.invalid,
177
+ States.required,
178
+ States.disabled,
179
+ States.loading,
180
+ States.readonly
181
+ ];
182
+ var pickerOptions = {
183
+ size: [Size.small, Size.medium, Size.large],
184
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
185
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
186
+ };
187
+ var defaultProps2 = {
188
+ size: Size.medium,
189
+ rounded: Roundness.medium,
190
+ fillMode: FillMode.solid
191
+ };
192
+ var Picker = (props) => {
193
+ const {
194
+ hover,
195
+ focus,
196
+ disabled,
197
+ invalid,
198
+ valid,
199
+ loading,
200
+ readonly,
201
+ size = defaultProps2.size,
202
+ rounded = defaultProps2.rounded,
203
+ fillMode = defaultProps2.fillMode,
204
+ ...other
205
+ } = props;
206
+ return /* @__PURE__ */ jsx2(
207
+ "span",
208
+ {
209
+ ...other,
210
+ className: classNames(
211
+ props.className,
212
+ PICKER_CLASSNAME,
213
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
214
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
215
+ ),
216
+ children: props.children
217
+ }
218
+ );
219
+ };
220
+ Picker.states = pickerStates;
221
+ Picker.options = pickerOptions;
222
+ Picker.className = PICKER_CLASSNAME;
223
+ Picker.defaultProps = defaultProps2;
224
+
114
225
  // src/icon/font-icon.spec.tsx
115
- import { Fragment, jsx } from "react/jsx-runtime";
226
+ import { Fragment, jsx as jsx3 } from "react/jsx-runtime";
116
227
  var FONTICON_CLASSNAME = `k-icon k-font-icon`;
117
- var states = [];
118
- var options = {
228
+ var states2 = [];
229
+ var options2 = {
119
230
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
120
231
  themeColor: [
121
232
  ThemeColor.base,
@@ -130,7 +241,7 @@ var options = {
130
241
  ThemeColor.dark
131
242
  ]
132
243
  };
133
- var defaultProps = {};
244
+ var defaultProps3 = {};
134
245
  var FontIcon = (props) => {
135
246
  const {
136
247
  size,
@@ -141,9 +252,9 @@ var FontIcon = (props) => {
141
252
  ...other
142
253
  } = props;
143
254
  if (!icon) {
144
- return /* @__PURE__ */ jsx(Fragment, {});
255
+ return /* @__PURE__ */ jsx3(Fragment, {});
145
256
  }
146
- return /* @__PURE__ */ jsx(
257
+ return /* @__PURE__ */ jsx3(
147
258
  "span",
148
259
  {
149
260
  ...other,
@@ -164,17 +275,17 @@ var FontIcon = (props) => {
164
275
  }
165
276
  );
166
277
  };
167
- FontIcon.states = states;
168
- FontIcon.options = options;
278
+ FontIcon.states = states2;
279
+ FontIcon.options = options2;
169
280
  FontIcon.className = FONTICON_CLASSNAME;
170
- FontIcon.defaultProps = defaultProps;
281
+ FontIcon.defaultProps = defaultProps3;
171
282
  var font_icon_spec_default = FontIcon;
172
283
 
173
284
  // src/icon/svg-icon.spec.tsx
174
- import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
285
+ import { Fragment as Fragment2, jsx as jsx4 } from "react/jsx-runtime";
175
286
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
176
- var states2 = [];
177
- var options2 = {
287
+ var states3 = [];
288
+ var options3 = {
178
289
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
179
290
  themeColor: [
180
291
  ThemeColor.base,
@@ -189,7 +300,7 @@ var options2 = {
189
300
  ThemeColor.dark
190
301
  ]
191
302
  };
192
- var defaultProps2 = {
303
+ var defaultProps4 = {
193
304
  viewBox: "0 0 24 24"
194
305
  };
195
306
  var SvgIcon = (props) => {
@@ -198,15 +309,15 @@ var SvgIcon = (props) => {
198
309
  themeColor,
199
310
  rotate,
200
311
  flip,
201
- viewBox = defaultProps2.viewBox,
312
+ viewBox = defaultProps4.viewBox,
202
313
  icon,
203
314
  ...other
204
315
  } = props;
205
316
  if (!icon) {
206
- return /* @__PURE__ */ jsx2(Fragment2, {});
317
+ return /* @__PURE__ */ jsx4(Fragment2, {});
207
318
  }
208
319
  if (icon === "none") {
209
- /* @__PURE__ */ jsx2(
320
+ /* @__PURE__ */ jsx4(
210
321
  "span",
211
322
  {
212
323
  ...other,
@@ -219,7 +330,7 @@ var SvgIcon = (props) => {
219
330
  );
220
331
  }
221
332
  const name = typeof icon === "object" && icon.name && icon.name;
222
- return /* @__PURE__ */ jsx2(
333
+ return /* @__PURE__ */ jsx4(
223
334
  "span",
224
335
  {
225
336
  ...other,
@@ -237,7 +348,7 @@ var SvgIcon = (props) => {
237
348
  "k-flip-v": flip === "v" || flip === "both"
238
349
  }
239
350
  ),
240
- children: /* @__PURE__ */ jsx2(
351
+ children: /* @__PURE__ */ jsx4(
241
352
  "svg",
242
353
  {
243
354
  "aria-hidden": true,
@@ -251,10 +362,10 @@ var SvgIcon = (props) => {
251
362
  }
252
363
  );
253
364
  };
254
- SvgIcon.states = states2;
255
- SvgIcon.options = options2;
365
+ SvgIcon.states = states3;
366
+ SvgIcon.options = options3;
256
367
  SvgIcon.className = SVGICON_CLASSNAME;
257
- SvgIcon.defaultProps = defaultProps2;
368
+ SvgIcon.defaultProps = defaultProps4;
258
369
  var svg_icon_spec_default = SvgIcon;
259
370
 
260
371
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4253,13 +4364,13 @@ var chartChoroplethIcon = {
4253
4364
  };
4254
4365
 
4255
4366
  // src/icon/icon.spec.tsx
4256
- import { Fragment as Fragment3, jsx as jsx3 } from "react/jsx-runtime";
4367
+ import { Fragment as Fragment3, jsx as jsx5 } from "react/jsx-runtime";
4257
4368
  var snakeToCamel = (str) => str.toLowerCase().replace(
4258
4369
  /([-_][a-z])/g,
4259
4370
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4260
4371
  );
4261
- var states3 = [];
4262
- var options3 = {
4372
+ var states4 = [];
4373
+ var options4 = {
4263
4374
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4264
4375
  themeColor: [
4265
4376
  ThemeColor.base,
@@ -4274,7 +4385,7 @@ var options3 = {
4274
4385
  ThemeColor.dark
4275
4386
  ]
4276
4387
  };
4277
- var defaultProps3 = {
4388
+ var defaultProps5 = {
4278
4389
  viewBox: "0 0 24 24",
4279
4390
  type: "svg"
4280
4391
  };
@@ -4283,156 +4394,459 @@ var Icon = (props) => {
4283
4394
  size,
4284
4395
  themeColor,
4285
4396
  icon,
4286
- type = defaultProps3.type,
4397
+ type = defaultProps5.type,
4287
4398
  rotate,
4288
4399
  flip,
4289
- viewBox = defaultProps3.viewBox,
4400
+ viewBox = defaultProps5.viewBox,
4290
4401
  ...other
4291
4402
  } = props;
4292
4403
  if (!icon) {
4293
- return /* @__PURE__ */ jsx3(Fragment3, {});
4404
+ return /* @__PURE__ */ jsx5(Fragment3, {});
4294
4405
  }
4295
4406
  if (type === "svg") {
4296
4407
  if (icon === "none") {
4297
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon, size });
4408
+ return /* @__PURE__ */ jsx5(svg_icon_spec_default, { ...other, icon, size });
4298
4409
  }
4299
4410
  const iconSVG = snakeToCamel(`${icon}-icon`);
4300
4411
  if (!index_es_exports[iconSVG]) {
4301
- return /* @__PURE__ */ jsx3(Fragment3, {});
4412
+ return /* @__PURE__ */ jsx5(Fragment3, {});
4302
4413
  }
4303
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4414
+ return /* @__PURE__ */ jsx5(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4304
4415
  }
4305
- return /* @__PURE__ */ jsx3(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4416
+ return /* @__PURE__ */ jsx5(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4306
4417
  };
4307
- Icon.states = states3;
4308
- Icon.options = options3;
4309
- Icon.defaultProps = defaultProps3;
4418
+ Icon.states = states4;
4419
+ Icon.options = options4;
4420
+ Icon.defaultProps = defaultProps5;
4310
4421
 
4311
- // src/chip/chip-action.tsx
4312
- import { jsx as jsx4 } from "react/jsx-runtime";
4313
- var CHIPACTION_CLASSNAME = `k-chip-action`;
4314
- var ChipAction = (props) => {
4422
+ // src/input/input-clear-value.tsx
4423
+ import { Fragment as Fragment4, jsx as jsx6 } from "react/jsx-runtime";
4424
+ var className = `k-clear-value`;
4425
+ var states5 = [
4426
+ States.disabled,
4427
+ States.loading,
4428
+ States.readonly
4429
+ ];
4430
+ var options5 = {};
4431
+ var InputClearValue = (props) => {
4315
4432
  const {
4316
- type,
4317
- ...other
4433
+ disabled,
4434
+ loading,
4435
+ readonly,
4436
+ value
4318
4437
  } = props;
4319
- let icon;
4320
- switch (type) {
4321
- case "remove" /* REMOVE */:
4322
- icon = /* @__PURE__ */ jsx4(Icon, { icon: "x-circle", size: "small" });
4323
- break;
4324
- case "more" /* MORE */:
4325
- icon = /* @__PURE__ */ jsx4(Icon, { icon: "more-vertical", size: "small" });
4326
- break;
4327
- default:
4328
- return /* @__PURE__ */ jsx4(Icon, { icon: type, size: "small" });
4438
+ if (disabled || readonly || loading || !value) {
4439
+ return /* @__PURE__ */ jsx6(Fragment4, {});
4329
4440
  }
4330
- return /* @__PURE__ */ jsx4(
4331
- "span",
4441
+ return /* @__PURE__ */ jsx6("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx6(Icon, { icon: "x" }) });
4442
+ };
4443
+ InputClearValue.states = states5;
4444
+ InputClearValue.options = options5;
4445
+ InputClearValue.className = className;
4446
+
4447
+ // src/input/input-inner-input.tsx
4448
+ import { jsx as jsx7 } from "react/jsx-runtime";
4449
+ var className2 = `k-input-inner`;
4450
+ var states6 = [];
4451
+ var options6 = {};
4452
+ var defaultProps6 = {
4453
+ type: "text",
4454
+ autocomplete: "off",
4455
+ value: "",
4456
+ placeholder: ""
4457
+ };
4458
+ var InputInnerInput = (props) => {
4459
+ const {
4460
+ value = defaultProps6.value,
4461
+ type = defaultProps6.type,
4462
+ placeholder = defaultProps6.placeholder,
4463
+ autocomplete = defaultProps6.autocomplete,
4464
+ ...other
4465
+ } = props;
4466
+ return /* @__PURE__ */ jsx7(
4467
+ "input",
4332
4468
  {
4333
4469
  ...other,
4334
- className: classNames(
4335
- props.className,
4336
- CHIPACTION_CLASSNAME,
4337
- `k-chip-${type}-action`
4338
- ),
4339
- children: icon
4470
+ type,
4471
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
4472
+ placeholder,
4473
+ autoComplete: autocomplete,
4474
+ defaultValue: value
4340
4475
  }
4341
4476
  );
4342
4477
  };
4478
+ InputInnerInput.states = states6;
4479
+ InputInnerInput.options = options6;
4480
+ InputInnerInput.className = className2;
4343
4481
 
4344
- // src/avatar/avatar.spec.tsx
4345
- import { jsx as jsx5 } from "react/jsx-runtime";
4346
- var AVATAR_CLASSNAME = `k-avatar`;
4347
- var states4 = [
4348
- States.hover,
4349
- States.focus,
4350
- States.active,
4351
- States.selected,
4352
- States.disabled
4353
- ];
4354
- var options4 = {
4355
- size: [Size.small, Size.medium, Size.large],
4356
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4357
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
4358
- themeColor: [
4359
- ThemeColor.base,
4360
- ThemeColor.primary,
4361
- ThemeColor.secondary,
4362
- ThemeColor.tertiary,
4363
- ThemeColor.success,
4364
- ThemeColor.warning,
4365
- ThemeColor.error,
4366
- ThemeColor.info,
4367
- ThemeColor.light,
4368
- ThemeColor.dark,
4369
- ThemeColor.inverse
4370
- ]
4482
+ // src/input/input-inner-span.tsx
4483
+ import { jsx as jsx8, jsxs } from "react/jsx-runtime";
4484
+ var className3 = `k-input-inner`;
4485
+ var states7 = [];
4486
+ var options7 = {};
4487
+ var InputInnerSpan = (props) => {
4488
+ const {
4489
+ value,
4490
+ placeholder,
4491
+ showValue,
4492
+ valueIcon,
4493
+ valueIconName,
4494
+ ...other
4495
+ } = props;
4496
+ return /* @__PURE__ */ jsxs(
4497
+ "span",
4498
+ {
4499
+ ...other,
4500
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
4501
+ children: [
4502
+ valueIcon,
4503
+ !valueIcon && valueIconName && /* @__PURE__ */ jsx8(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4504
+ showValue && !value && placeholder,
4505
+ showValue && value && /* @__PURE__ */ jsx8("span", { className: "k-input-value-text", children: value })
4506
+ ]
4507
+ }
4508
+ );
4371
4509
  };
4372
- var defaultProps4 = {
4373
- type: "text" /* TEXT */,
4374
- size: Size.medium,
4375
- rounded: Roundness.full,
4376
- fillMode: FillMode.solid,
4377
- themeColor: ThemeColor.primary,
4378
- border: false
4510
+ InputInnerSpan.states = states7;
4511
+ InputInnerSpan.options = options7;
4512
+ InputInnerSpan.className = className3;
4513
+
4514
+ // src/input/input-inner-textarea.tsx
4515
+ import { jsx as jsx9 } from "react/jsx-runtime";
4516
+ var defaultProps7 = {
4517
+ value: "",
4518
+ placeholder: ""
4379
4519
  };
4380
- var Avatar = (props) => {
4520
+ var className4 = `k-input-inner`;
4521
+ var states8 = [];
4522
+ var options8 = {};
4523
+ var InputInnerTextarea = (props) => {
4381
4524
  const {
4382
- size = defaultProps4.size,
4383
- rounded = defaultProps4.rounded,
4384
- fillMode = defaultProps4.fillMode,
4385
- themeColor = defaultProps4.themeColor,
4386
- type = defaultProps4.type,
4387
- border = defaultProps4.border,
4525
+ value = defaultProps7.value,
4526
+ placeholder = defaultProps7.placeholder,
4527
+ rows,
4388
4528
  ...other
4389
4529
  } = props;
4390
- return /* @__PURE__ */ jsx5(
4391
- "div",
4530
+ return /* @__PURE__ */ jsx9(
4531
+ "textarea",
4392
4532
  {
4393
4533
  ...other,
4394
- className: classNames(
4395
- props.className,
4396
- AVATAR_CLASSNAME,
4397
- optionClassNames(AVATAR_CLASSNAME, {
4398
- size,
4399
- rounded,
4400
- fillMode,
4401
- themeColor
4402
- }),
4403
- {
4404
- [`${AVATAR_CLASSNAME}-bordered`]: border
4405
- }
4406
- ),
4407
- children: /* @__PURE__ */ jsx5("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
4534
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
4535
+ placeholder,
4536
+ rows,
4537
+ children: value
4408
4538
  }
4409
4539
  );
4410
4540
  };
4411
- Avatar.states = states4;
4412
- Avatar.options = options4;
4413
- Avatar.className = AVATAR_CLASSNAME;
4414
- Avatar.defaultProps = defaultProps4;
4541
+ InputInnerTextarea.states = states8;
4542
+ InputInnerTextarea.options = options8;
4543
+ InputInnerTextarea.className = className4;
4544
+
4545
+ // src/input/input-loading-icon.tsx
4546
+ import { Fragment as Fragment5, jsx as jsx10 } from "react/jsx-runtime";
4547
+ var className5 = `k-input-loading-icon`;
4548
+ var states9 = [
4549
+ States.disabled,
4550
+ States.loading
4551
+ ];
4552
+ var InputLoadingIcon = (props) => {
4553
+ const {
4554
+ disabled,
4555
+ loading
4556
+ } = props;
4557
+ if (disabled || !loading) {
4558
+ return /* @__PURE__ */ jsx10(Fragment5, {});
4559
+ }
4560
+ return /* @__PURE__ */ jsx10("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4561
+ };
4562
+
4563
+ // src/input/input-validation-icon.tsx
4564
+ import { Fragment as Fragment6, jsx as jsx11 } from "react/jsx-runtime";
4565
+ var className6 = `k-input-validation-icon`;
4566
+ var states10 = [
4567
+ States.valid,
4568
+ States.invalid,
4569
+ States.disabled,
4570
+ States.loading
4571
+ ];
4572
+ var options9 = {};
4573
+ var InputValidationIcon = (props) => {
4574
+ const {
4575
+ valid,
4576
+ invalid,
4577
+ disabled,
4578
+ loading
4579
+ } = props;
4580
+ const iconName = invalid ? "exclamation-circle" : "check";
4581
+ const renderValidationIcon = Boolean(valid || invalid);
4582
+ if (disabled || loading || !renderValidationIcon) {
4583
+ return /* @__PURE__ */ jsx11(Fragment6, {});
4584
+ }
4585
+ return /* @__PURE__ */ jsx11(Icon, { className: classNames(className6), icon: iconName });
4586
+ };
4587
+ InputValidationIcon.states = states10;
4588
+ InputValidationIcon.options = options9;
4589
+ InputValidationIcon.className = className6;
4590
+
4591
+ // src/input/input-prefix.tsx
4592
+ import { Fragment as Fragment7, jsx as jsx12 } from "react/jsx-runtime";
4593
+ var className7 = `k-input-prefix`;
4594
+ var InputPrefix = (props) => {
4595
+ if (!props.children) {
4596
+ return /* @__PURE__ */ jsx12(Fragment7, {});
4597
+ }
4598
+ return /* @__PURE__ */ jsx12("span", { className: classNames(className7, props.className), children: props.children });
4599
+ };
4600
+
4601
+ // src/input/input-suffix.tsx
4602
+ import { Fragment as Fragment8, jsx as jsx13 } from "react/jsx-runtime";
4603
+ var className8 = `k-input-suffix`;
4604
+ var InputSuffix = (props) => {
4605
+ if (!props.children) {
4606
+ return /* @__PURE__ */ jsx13(Fragment8, {});
4607
+ }
4608
+ return /* @__PURE__ */ jsx13("span", { className: classNames(className8, props.className), children: props.children });
4609
+ };
4610
+
4611
+ // src/input/input-separator.tsx
4612
+ import { jsx as jsx14 } from "react/jsx-runtime";
4613
+
4614
+ // src/button/button.spec.tsx
4615
+ import { Fragment as Fragment9, jsx as jsx15, jsxs as jsxs2 } from "react/jsx-runtime";
4616
+ var BUTTON_CLASSNAME = `k-button`;
4617
+ var states11 = [
4618
+ States.hover,
4619
+ States.focus,
4620
+ States.active,
4621
+ States.selected,
4622
+ States.disabled
4623
+ ];
4624
+ var options10 = {
4625
+ size: [Size.small, Size.medium, Size.large],
4626
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4627
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4628
+ themeColor: [
4629
+ ThemeColor.base,
4630
+ ThemeColor.primary,
4631
+ ThemeColor.secondary,
4632
+ ThemeColor.tertiary,
4633
+ ThemeColor.success,
4634
+ ThemeColor.warning,
4635
+ ThemeColor.error,
4636
+ ThemeColor.info,
4637
+ ThemeColor.light,
4638
+ ThemeColor.dark,
4639
+ ThemeColor.inverse
4640
+ ]
4641
+ };
4642
+ var defaultProps8 = {
4643
+ size: Size.medium,
4644
+ rounded: Roundness.medium,
4645
+ fillMode: FillMode.solid,
4646
+ themeColor: ThemeColor.base,
4647
+ showArrow: false,
4648
+ arrowIconName: "caret-alt-down"
4649
+ };
4650
+ var Button = (props) => {
4651
+ const {
4652
+ size = defaultProps8.size,
4653
+ rounded = defaultProps8.rounded,
4654
+ fillMode = defaultProps8.fillMode,
4655
+ themeColor = defaultProps8.themeColor,
4656
+ hover,
4657
+ focus,
4658
+ active,
4659
+ selected,
4660
+ disabled,
4661
+ icon,
4662
+ text,
4663
+ iconClassName,
4664
+ showArrow = defaultProps8.showArrow,
4665
+ arrowIconName = defaultProps8.arrowIconName,
4666
+ ...other
4667
+ } = props;
4668
+ const hasIcon = icon !== void 0;
4669
+ const hasChildren = props.children !== void 0;
4670
+ return /* @__PURE__ */ jsxs2(
4671
+ "button",
4672
+ {
4673
+ ...other,
4674
+ className: classNames(
4675
+ props.className,
4676
+ BUTTON_CLASSNAME,
4677
+ optionClassNames(BUTTON_CLASSNAME, {
4678
+ size,
4679
+ rounded,
4680
+ fillMode,
4681
+ themeColor
4682
+ }),
4683
+ stateClassNames(BUTTON_CLASSNAME, {
4684
+ hover,
4685
+ focus,
4686
+ active,
4687
+ disabled,
4688
+ selected
4689
+ }),
4690
+ {
4691
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4692
+ }
4693
+ ),
4694
+ children: [
4695
+ icon && /* @__PURE__ */ jsx15(
4696
+ Icon,
4697
+ {
4698
+ className: classNames(iconClassName, "k-button-icon"),
4699
+ icon
4700
+ }
4701
+ ),
4702
+ text ? /* @__PURE__ */ jsxs2(Fragment9, { children: [
4703
+ text && /* @__PURE__ */ jsx15("span", { className: "k-button-text", children: text }),
4704
+ props.children
4705
+ ] }) : props.children && /* @__PURE__ */ jsx15("span", { className: "k-button-text", children: props.children }),
4706
+ showArrow && /* @__PURE__ */ jsx15("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx15(Icon, { icon: arrowIconName }) })
4707
+ ]
4708
+ }
4709
+ );
4710
+ };
4711
+ Button.states = states11;
4712
+ Button.options = options10;
4713
+ Button.className = BUTTON_CLASSNAME;
4714
+ Button.defaultProps = defaultProps8;
4715
+
4716
+ // src/button/templates/icon-button.tsx
4717
+ import { jsx as jsx16 } from "react/jsx-runtime";
4718
+
4719
+ // src/button/templates/icon-text-button.tsx
4720
+ import { jsx as jsx17 } from "react/jsx-runtime";
4721
+
4722
+ // src/button/templates/text-button.tsx
4723
+ import { jsx as jsx18 } from "react/jsx-runtime";
4724
+
4725
+ // src/chip/chip-action.tsx
4726
+ import { jsx as jsx19 } from "react/jsx-runtime";
4727
+ var CHIPACTION_CLASSNAME = `k-chip-action`;
4728
+ var ChipAction = (props) => {
4729
+ const {
4730
+ type,
4731
+ ...other
4732
+ } = props;
4733
+ let icon;
4734
+ switch (type) {
4735
+ case "remove" /* REMOVE */:
4736
+ icon = /* @__PURE__ */ jsx19(Icon, { icon: "x-circle", size: "small" });
4737
+ break;
4738
+ case "more" /* MORE */:
4739
+ icon = /* @__PURE__ */ jsx19(Icon, { icon: "more-vertical", size: "small" });
4740
+ break;
4741
+ default:
4742
+ return /* @__PURE__ */ jsx19(Icon, { icon: type, size: "small" });
4743
+ }
4744
+ return /* @__PURE__ */ jsx19(
4745
+ "span",
4746
+ {
4747
+ ...other,
4748
+ className: classNames(
4749
+ props.className,
4750
+ CHIPACTION_CLASSNAME,
4751
+ `k-chip-${type}-action`
4752
+ ),
4753
+ children: icon
4754
+ }
4755
+ );
4756
+ };
4757
+
4758
+ // src/avatar/avatar.spec.tsx
4759
+ import { jsx as jsx20 } from "react/jsx-runtime";
4760
+ var AVATAR_CLASSNAME = `k-avatar`;
4761
+ var states12 = [
4762
+ States.hover,
4763
+ States.focus,
4764
+ States.active,
4765
+ States.selected,
4766
+ States.disabled
4767
+ ];
4768
+ var options11 = {
4769
+ size: [Size.small, Size.medium, Size.large],
4770
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4771
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline],
4772
+ themeColor: [
4773
+ ThemeColor.base,
4774
+ ThemeColor.primary,
4775
+ ThemeColor.secondary,
4776
+ ThemeColor.tertiary,
4777
+ ThemeColor.success,
4778
+ ThemeColor.warning,
4779
+ ThemeColor.error,
4780
+ ThemeColor.info,
4781
+ ThemeColor.light,
4782
+ ThemeColor.dark,
4783
+ ThemeColor.inverse
4784
+ ]
4785
+ };
4786
+ var defaultProps9 = {
4787
+ type: "text" /* TEXT */,
4788
+ size: Size.medium,
4789
+ rounded: Roundness.full,
4790
+ fillMode: FillMode.solid,
4791
+ themeColor: ThemeColor.primary,
4792
+ border: false
4793
+ };
4794
+ var Avatar = (props) => {
4795
+ const {
4796
+ size = defaultProps9.size,
4797
+ rounded = defaultProps9.rounded,
4798
+ fillMode = defaultProps9.fillMode,
4799
+ themeColor = defaultProps9.themeColor,
4800
+ type = defaultProps9.type,
4801
+ border = defaultProps9.border,
4802
+ ...other
4803
+ } = props;
4804
+ return /* @__PURE__ */ jsx20(
4805
+ "div",
4806
+ {
4807
+ ...other,
4808
+ className: classNames(
4809
+ props.className,
4810
+ AVATAR_CLASSNAME,
4811
+ optionClassNames(AVATAR_CLASSNAME, {
4812
+ size,
4813
+ rounded,
4814
+ fillMode,
4815
+ themeColor
4816
+ }),
4817
+ {
4818
+ [`${AVATAR_CLASSNAME}-bordered`]: border
4819
+ }
4820
+ ),
4821
+ children: /* @__PURE__ */ jsx20("span", { className: `${AVATAR_CLASSNAME}-${type}`, children: props.children })
4822
+ }
4823
+ );
4824
+ };
4825
+ Avatar.states = states12;
4826
+ Avatar.options = options11;
4827
+ Avatar.className = AVATAR_CLASSNAME;
4828
+ Avatar.defaultProps = defaultProps9;
4415
4829
 
4416
4830
  // src/avatar/templates/avatar-icon.tsx
4417
- import { jsx as jsx6 } from "react/jsx-runtime";
4831
+ import { jsx as jsx21 } from "react/jsx-runtime";
4418
4832
 
4419
4833
  // src/avatar/templates/avatar-text.tsx
4420
- import { jsx as jsx7 } from "react/jsx-runtime";
4834
+ import { jsx as jsx22 } from "react/jsx-runtime";
4421
4835
 
4422
4836
  // src/avatar/templates/avatar-image.tsx
4423
- import { jsx as jsx8 } from "react/jsx-runtime";
4837
+ import { jsx as jsx23 } from "react/jsx-runtime";
4424
4838
 
4425
4839
  // src/chip/chip.spec.tsx
4426
- import { jsx as jsx9, jsxs } from "react/jsx-runtime";
4840
+ import { jsx as jsx24, jsxs as jsxs3 } from "react/jsx-runtime";
4427
4841
  var CHIP_CLASSNAME = `k-chip`;
4428
- var states5 = [
4842
+ var states13 = [
4429
4843
  States.hover,
4430
4844
  States.focus,
4431
4845
  States.active,
4432
4846
  States.selected,
4433
4847
  States.disabled
4434
4848
  ];
4435
- var options5 = {
4849
+ var options12 = {
4436
4850
  size: [Size.small, Size.medium, Size.large],
4437
4851
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4438
4852
  fillMode: [FillMode.solid, FillMode.outline],
@@ -4444,7 +4858,7 @@ var options5 = {
4444
4858
  ThemeColor.info
4445
4859
  ]
4446
4860
  };
4447
- var defaultProps5 = {
4861
+ var defaultProps10 = {
4448
4862
  size: Size.medium,
4449
4863
  rounded: Roundness.medium,
4450
4864
  fillMode: FillMode.solid,
@@ -4452,10 +4866,10 @@ var defaultProps5 = {
4452
4866
  };
4453
4867
  var Chip = (props) => {
4454
4868
  const {
4455
- size = defaultProps5.size,
4456
- rounded = defaultProps5.rounded,
4457
- fillMode = defaultProps5.fillMode,
4458
- themeColor = defaultProps5.themeColor,
4869
+ size = defaultProps10.size,
4870
+ rounded = defaultProps10.rounded,
4871
+ fillMode = defaultProps10.fillMode,
4872
+ themeColor = defaultProps10.themeColor,
4459
4873
  text,
4460
4874
  icon,
4461
4875
  actions,
@@ -4467,7 +4881,7 @@ var Chip = (props) => {
4467
4881
  disabled,
4468
4882
  ...other
4469
4883
  } = props;
4470
- return /* @__PURE__ */ jsxs(
4884
+ return /* @__PURE__ */ jsxs3(
4471
4885
  "div",
4472
4886
  {
4473
4887
  ...other,
@@ -4489,35 +4903,35 @@ var Chip = (props) => {
4489
4903
  })
4490
4904
  ),
4491
4905
  children: [
4492
- icon && /* @__PURE__ */ jsx9(Icon, { className: "k-chip-icon", icon, size: "small" }),
4493
- showAvatar && /* @__PURE__ */ jsx9(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ jsx9("img", { src: "/packages/html/assets/avatar.jpg" }) }),
4494
- /* @__PURE__ */ jsx9("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ jsx9("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
4495
- actions && /* @__PURE__ */ jsx9("span", { className: "k-chip-actions", children: actions })
4906
+ icon && /* @__PURE__ */ jsx24(Icon, { className: "k-chip-icon", icon, size: "small" }),
4907
+ showAvatar && /* @__PURE__ */ jsx24(Avatar, { className: "k-chip-avatar", type: "image", children: /* @__PURE__ */ jsx24("img", { src: "/packages/html/assets/avatar.jpg" }) }),
4908
+ /* @__PURE__ */ jsx24("span", { className: "k-chip-content", children: props.children ? props.children : text && /* @__PURE__ */ jsx24("span", { className: "k-chip-label k-text-ellipsis", children: text }) }),
4909
+ actions && /* @__PURE__ */ jsx24("span", { className: "k-chip-actions", children: actions })
4496
4910
  ]
4497
4911
  }
4498
4912
  );
4499
4913
  };
4500
- Chip.states = states5;
4501
- Chip.options = options5;
4914
+ Chip.states = states13;
4915
+ Chip.options = options12;
4502
4916
  Chip.className = CHIP_CLASSNAME;
4503
- Chip.defaultProps = defaultProps5;
4917
+ Chip.defaultProps = defaultProps10;
4504
4918
 
4505
4919
  // src/chip/chip-list.spec.tsx
4506
- import { jsx as jsx10 } from "react/jsx-runtime";
4920
+ import { jsx as jsx25 } from "react/jsx-runtime";
4507
4921
  var CHIPLIST_CLASSNAME = `k-chip-list`;
4508
- var states6 = [];
4509
- var options6 = {
4922
+ var states14 = [];
4923
+ var options13 = {
4510
4924
  size: [Size.small, Size.medium, Size.large]
4511
4925
  };
4512
- var defaultProps6 = {
4926
+ var defaultProps11 = {
4513
4927
  size: Size.medium
4514
4928
  };
4515
4929
  var ChipList = (props) => {
4516
4930
  const {
4517
- size = defaultProps6.size,
4931
+ size = defaultProps11.size,
4518
4932
  ...other
4519
4933
  } = props;
4520
- return /* @__PURE__ */ jsx10(
4934
+ return /* @__PURE__ */ jsx25(
4521
4935
  "div",
4522
4936
  {
4523
4937
  ...other,
@@ -4532,436 +4946,22 @@ var ChipList = (props) => {
4532
4946
  }
4533
4947
  );
4534
4948
  };
4535
- ChipList.states = states6;
4536
- ChipList.options = options6;
4949
+ ChipList.states = states14;
4950
+ ChipList.options = options13;
4537
4951
  ChipList.className = CHIPLIST_CLASSNAME;
4538
- ChipList.defaultProps = defaultProps6;
4952
+ ChipList.defaultProps = defaultProps11;
4539
4953
 
4540
4954
  // src/chip/templates/chip-avatar.tsx
4541
- import { jsx as jsx11 } from "react/jsx-runtime";
4955
+ import { jsx as jsx26 } from "react/jsx-runtime";
4542
4956
 
4543
4957
  // src/chip/templates/chip-icon.tsx
4544
- import { jsx as jsx12 } from "react/jsx-runtime";
4958
+ import { jsx as jsx27 } from "react/jsx-runtime";
4545
4959
 
4546
4960
  // src/chip/templates/chip-normal.tsx
4547
- import { jsx as jsx13 } from "react/jsx-runtime";
4961
+ import { jsx as jsx28 } from "react/jsx-runtime";
4548
4962
 
4549
4963
  // src/chip/templates/chip-removable.tsx
4550
- import { jsx as jsx14 } from "react/jsx-runtime";
4551
-
4552
- // src/input/input.spec.tsx
4553
- import { jsx as jsx15 } from "react/jsx-runtime";
4554
- var INPUT_CLASSNAME = `k-input`;
4555
- var states7 = [
4556
- States.hover,
4557
- States.focus,
4558
- States.valid,
4559
- States.invalid,
4560
- States.required,
4561
- States.disabled,
4562
- States.loading,
4563
- States.readonly
4564
- ];
4565
- var options7 = {
4566
- size: [Size.small, Size.medium, Size.large],
4567
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4568
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4569
- };
4570
- var defaultProps7 = {
4571
- size: Size.medium,
4572
- rounded: Size.medium,
4573
- fillMode: FillMode.solid
4574
- };
4575
- var Input = (props) => {
4576
- const {
4577
- hover,
4578
- focus,
4579
- disabled,
4580
- invalid,
4581
- valid,
4582
- loading,
4583
- readonly,
4584
- size = defaultProps7.size,
4585
- rounded = defaultProps7.rounded,
4586
- fillMode = defaultProps7.fillMode,
4587
- ...other
4588
- } = props;
4589
- return /* @__PURE__ */ jsx15(
4590
- "span",
4591
- {
4592
- ...other,
4593
- className: classNames(
4594
- props.className,
4595
- INPUT_CLASSNAME,
4596
- optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4597
- stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4598
- )
4599
- }
4600
- );
4601
- };
4602
- Input.states = states7;
4603
- Input.options = options7;
4604
- Input.className = INPUT_CLASSNAME;
4605
- Input.defaultProps = defaultProps7;
4606
-
4607
- // src/input/picker.spec.tsx
4608
- import { jsx as jsx16 } from "react/jsx-runtime";
4609
- var PICKER_CLASSNAME = `k-picker`;
4610
- var pickerStates = [
4611
- States.hover,
4612
- States.focus,
4613
- States.valid,
4614
- States.invalid,
4615
- States.required,
4616
- States.disabled,
4617
- States.loading,
4618
- States.readonly
4619
- ];
4620
- var pickerOptions = {
4621
- size: [Size.small, Size.medium, Size.large],
4622
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4623
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4624
- };
4625
- var defaultProps8 = {
4626
- size: Size.medium,
4627
- rounded: Roundness.medium,
4628
- fillMode: FillMode.solid
4629
- };
4630
- var Picker = (props) => {
4631
- const {
4632
- hover,
4633
- focus,
4634
- disabled,
4635
- invalid,
4636
- valid,
4637
- loading,
4638
- readonly,
4639
- size = defaultProps8.size,
4640
- rounded = defaultProps8.rounded,
4641
- fillMode = defaultProps8.fillMode,
4642
- ...other
4643
- } = props;
4644
- return /* @__PURE__ */ jsx16(
4645
- "span",
4646
- {
4647
- ...other,
4648
- className: classNames(
4649
- props.className,
4650
- PICKER_CLASSNAME,
4651
- optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4652
- stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4653
- ),
4654
- children: props.children
4655
- }
4656
- );
4657
- };
4658
- Picker.states = pickerStates;
4659
- Picker.options = pickerOptions;
4660
- Picker.className = PICKER_CLASSNAME;
4661
- Picker.defaultProps = defaultProps8;
4662
-
4663
- // src/input/input-clear-value.tsx
4664
- import { Fragment as Fragment4, jsx as jsx17 } from "react/jsx-runtime";
4665
- var className = `k-clear-value`;
4666
- var states8 = [
4667
- States.disabled,
4668
- States.loading,
4669
- States.readonly
4670
- ];
4671
- var options8 = {};
4672
- var InputClearValue = (props) => {
4673
- const {
4674
- disabled,
4675
- loading,
4676
- readonly,
4677
- value
4678
- } = props;
4679
- if (disabled || readonly || loading || !value) {
4680
- return /* @__PURE__ */ jsx17(Fragment4, {});
4681
- }
4682
- return /* @__PURE__ */ jsx17("span", { className: classNames(props.className, className), children: /* @__PURE__ */ jsx17(Icon, { icon: "x" }) });
4683
- };
4684
- InputClearValue.states = states8;
4685
- InputClearValue.options = options8;
4686
- InputClearValue.className = className;
4687
-
4688
- // src/input/input-inner-input.tsx
4689
- import { jsx as jsx18 } from "react/jsx-runtime";
4690
- var className2 = `k-input-inner`;
4691
- var states9 = [];
4692
- var options9 = {};
4693
- var defaultProps9 = {
4694
- type: "text",
4695
- autocomplete: "off",
4696
- value: "",
4697
- placeholder: ""
4698
- };
4699
- var InputInnerInput = (props) => {
4700
- const {
4701
- value = defaultProps9.value,
4702
- type = defaultProps9.type,
4703
- placeholder = defaultProps9.placeholder,
4704
- autocomplete = defaultProps9.autocomplete,
4705
- ...other
4706
- } = props;
4707
- return /* @__PURE__ */ jsx18(
4708
- "input",
4709
- {
4710
- ...other,
4711
- type,
4712
- className: classNames(props.className, className2, optionClassNames(className2, props)),
4713
- placeholder,
4714
- autoComplete: autocomplete,
4715
- defaultValue: value
4716
- }
4717
- );
4718
- };
4719
- InputInnerInput.states = states9;
4720
- InputInnerInput.options = options9;
4721
- InputInnerInput.className = className2;
4722
-
4723
- // src/input/input-inner-span.tsx
4724
- import { jsx as jsx19, jsxs as jsxs2 } from "react/jsx-runtime";
4725
- var className3 = `k-input-inner`;
4726
- var states10 = [];
4727
- var options10 = {};
4728
- var InputInnerSpan = (props) => {
4729
- const {
4730
- value,
4731
- placeholder,
4732
- showValue,
4733
- valueIcon,
4734
- valueIconName,
4735
- ...other
4736
- } = props;
4737
- return /* @__PURE__ */ jsxs2(
4738
- "span",
4739
- {
4740
- ...other,
4741
- className: classNames(props.className, className3, optionClassNames(className3, props)),
4742
- children: [
4743
- valueIcon,
4744
- !valueIcon && valueIconName && /* @__PURE__ */ jsx19(Icon, { className: "k-input-value-icon", icon: valueIconName }),
4745
- showValue && !value && placeholder,
4746
- showValue && value && /* @__PURE__ */ jsx19("span", { className: "k-input-value-text", children: value })
4747
- ]
4748
- }
4749
- );
4750
- };
4751
- InputInnerSpan.states = states10;
4752
- InputInnerSpan.options = options10;
4753
- InputInnerSpan.className = className3;
4754
-
4755
- // src/input/input-inner-textarea.tsx
4756
- import { jsx as jsx20 } from "react/jsx-runtime";
4757
- var defaultProps10 = {
4758
- value: "",
4759
- placeholder: ""
4760
- };
4761
- var className4 = `k-input-inner`;
4762
- var states11 = [];
4763
- var options11 = {};
4764
- var InputInnerTextarea = (props) => {
4765
- const {
4766
- value = defaultProps10.value,
4767
- placeholder = defaultProps10.placeholder,
4768
- rows,
4769
- ...other
4770
- } = props;
4771
- return /* @__PURE__ */ jsx20(
4772
- "textarea",
4773
- {
4774
- ...other,
4775
- className: classNames(props.className, className4, optionClassNames(className4, props)),
4776
- placeholder,
4777
- rows,
4778
- children: value
4779
- }
4780
- );
4781
- };
4782
- InputInnerTextarea.states = states11;
4783
- InputInnerTextarea.options = options11;
4784
- InputInnerTextarea.className = className4;
4785
-
4786
- // src/input/input-loading-icon.tsx
4787
- import { Fragment as Fragment5, jsx as jsx21 } from "react/jsx-runtime";
4788
- var className5 = `k-input-loading-icon`;
4789
- var states12 = [
4790
- States.disabled,
4791
- States.loading
4792
- ];
4793
- var InputLoadingIcon = (props) => {
4794
- const {
4795
- disabled,
4796
- loading
4797
- } = props;
4798
- if (disabled || !loading) {
4799
- return /* @__PURE__ */ jsx21(Fragment5, {});
4800
- }
4801
- return /* @__PURE__ */ jsx21("span", { className: classNames(props.className, className5, "k-icon k-i-loading") });
4802
- };
4803
-
4804
- // src/input/input-validation-icon.tsx
4805
- import { Fragment as Fragment6, jsx as jsx22 } from "react/jsx-runtime";
4806
- var className6 = `k-input-validation-icon`;
4807
- var states13 = [
4808
- States.valid,
4809
- States.invalid,
4810
- States.disabled,
4811
- States.loading
4812
- ];
4813
- var options12 = {};
4814
- var InputValidationIcon = (props) => {
4815
- const {
4816
- valid,
4817
- invalid,
4818
- disabled,
4819
- loading
4820
- } = props;
4821
- const iconName = invalid ? "exclamation-circle" : "check";
4822
- const renderValidationIcon = Boolean(valid || invalid);
4823
- if (disabled || loading || !renderValidationIcon) {
4824
- return /* @__PURE__ */ jsx22(Fragment6, {});
4825
- }
4826
- return /* @__PURE__ */ jsx22(Icon, { className: classNames(className6), icon: iconName });
4827
- };
4828
- InputValidationIcon.states = states13;
4829
- InputValidationIcon.options = options12;
4830
- InputValidationIcon.className = className6;
4831
-
4832
- // src/input/input-prefix.tsx
4833
- import { Fragment as Fragment7, jsx as jsx23 } from "react/jsx-runtime";
4834
- var className7 = `k-input-prefix`;
4835
- var InputPrefix = (props) => {
4836
- if (!props.children) {
4837
- return /* @__PURE__ */ jsx23(Fragment7, {});
4838
- }
4839
- return /* @__PURE__ */ jsx23("span", { className: classNames(className7, props.className), children: props.children });
4840
- };
4841
-
4842
- // src/input/input-suffix.tsx
4843
- import { Fragment as Fragment8, jsx as jsx24 } from "react/jsx-runtime";
4844
- var className8 = `k-input-suffix`;
4845
- var InputSuffix = (props) => {
4846
- if (!props.children) {
4847
- return /* @__PURE__ */ jsx24(Fragment8, {});
4848
- }
4849
- return /* @__PURE__ */ jsx24("span", { className: classNames(className8, props.className), children: props.children });
4850
- };
4851
-
4852
- // src/input/input-separator.tsx
4853
- import { jsx as jsx25 } from "react/jsx-runtime";
4854
-
4855
- // src/button/button.spec.tsx
4856
- import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs3 } from "react/jsx-runtime";
4857
- var BUTTON_CLASSNAME = `k-button`;
4858
- var states14 = [
4859
- States.hover,
4860
- States.focus,
4861
- States.active,
4862
- States.selected,
4863
- States.disabled
4864
- ];
4865
- var options13 = {
4866
- size: [Size.small, Size.medium, Size.large],
4867
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4868
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4869
- themeColor: [
4870
- ThemeColor.base,
4871
- ThemeColor.primary,
4872
- ThemeColor.secondary,
4873
- ThemeColor.tertiary,
4874
- ThemeColor.success,
4875
- ThemeColor.warning,
4876
- ThemeColor.error,
4877
- ThemeColor.info,
4878
- ThemeColor.light,
4879
- ThemeColor.dark,
4880
- ThemeColor.inverse
4881
- ]
4882
- };
4883
- var defaultProps11 = {
4884
- size: Size.medium,
4885
- rounded: Roundness.medium,
4886
- fillMode: FillMode.solid,
4887
- themeColor: ThemeColor.base,
4888
- showArrow: false,
4889
- arrowIconName: "caret-alt-down"
4890
- };
4891
- var Button = (props) => {
4892
- const {
4893
- size = defaultProps11.size,
4894
- rounded = defaultProps11.rounded,
4895
- fillMode = defaultProps11.fillMode,
4896
- themeColor = defaultProps11.themeColor,
4897
- hover,
4898
- focus,
4899
- active,
4900
- selected,
4901
- disabled,
4902
- icon,
4903
- text,
4904
- iconClassName,
4905
- showArrow = defaultProps11.showArrow,
4906
- arrowIconName = defaultProps11.arrowIconName,
4907
- ...other
4908
- } = props;
4909
- const hasIcon = icon !== void 0;
4910
- const hasChildren = props.children !== void 0;
4911
- return /* @__PURE__ */ jsxs3(
4912
- "button",
4913
- {
4914
- ...other,
4915
- className: classNames(
4916
- props.className,
4917
- BUTTON_CLASSNAME,
4918
- optionClassNames(BUTTON_CLASSNAME, {
4919
- size,
4920
- rounded,
4921
- fillMode,
4922
- themeColor
4923
- }),
4924
- stateClassNames(BUTTON_CLASSNAME, {
4925
- hover,
4926
- focus,
4927
- active,
4928
- disabled,
4929
- selected
4930
- }),
4931
- {
4932
- ["k-icon-button"]: !text && !hasChildren && hasIcon
4933
- }
4934
- ),
4935
- children: [
4936
- icon && /* @__PURE__ */ jsx26(
4937
- Icon,
4938
- {
4939
- className: classNames(iconClassName, "k-button-icon"),
4940
- icon
4941
- }
4942
- ),
4943
- text ? /* @__PURE__ */ jsxs3(Fragment9, { children: [
4944
- text && /* @__PURE__ */ jsx26("span", { className: "k-button-text", children: text }),
4945
- props.children
4946
- ] }) : props.children && /* @__PURE__ */ jsx26("span", { className: "k-button-text", children: props.children }),
4947
- showArrow && /* @__PURE__ */ jsx26("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx26(Icon, { icon: arrowIconName }) })
4948
- ]
4949
- }
4950
- );
4951
- };
4952
- Button.states = states14;
4953
- Button.options = options13;
4954
- Button.className = BUTTON_CLASSNAME;
4955
- Button.defaultProps = defaultProps11;
4956
-
4957
- // src/button/templates/icon-button.tsx
4958
- import { jsx as jsx27 } from "react/jsx-runtime";
4959
-
4960
- // src/button/templates/icon-text-button.tsx
4961
- import { jsx as jsx28 } from "react/jsx-runtime";
4962
-
4963
- // src/button/templates/text-button.tsx
4964
- import { jsx as jsx29 } from "react/jsx-runtime";
4964
+ import { jsx as jsx29 } from "react/jsx-runtime";
4965
4965
 
4966
4966
  // src/animation-container/animation-container.spec.tsx
4967
4967
  import { jsx as jsx30 } from "react/jsx-runtime";
@@ -5013,290 +5013,128 @@ var Popup = (props) => {
5013
5013
  positionMode,
5014
5014
  ...other
5015
5015
  } = props;
5016
- return /* @__PURE__ */ jsx31(
5017
- AnimationContainer,
5018
- {
5019
- positionMode,
5020
- offset,
5021
- children: /* @__PURE__ */ jsx31("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5022
- }
5023
- );
5024
- };
5025
- Popup.states = states16;
5026
- Popup.options = options15;
5027
- Popup.className = POPUP_CLASSNAME;
5028
- Popup.defaultProps = defaultProps13;
5029
-
5030
- // src/multiselecttree/multiselecttree.spec.tsx
5031
- import { Fragment as Fragment10, jsx as jsx32, jsxs as jsxs4 } from "react/jsx-runtime";
5032
- var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5033
- var states17 = [
5034
- States.hover,
5035
- States.focus,
5036
- States.valid,
5037
- States.invalid,
5038
- States.required,
5039
- States.disabled,
5040
- States.loading,
5041
- States.readonly
5042
- ];
5043
- var options16 = {
5044
- size: [Size.small, Size.medium, Size.large],
5045
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5046
- fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5047
- };
5048
- var defaultProps14 = {
5049
- size: Input.defaultProps.size,
5050
- rounded: Input.defaultProps.rounded,
5051
- fillMode: Input.defaultProps.fillMode
5052
- };
5053
- var MultiSelectTree = (props) => {
5054
- const {
5055
- prefix,
5056
- suffix,
5057
- placeholder,
5058
- tags,
5059
- popup,
5060
- size,
5061
- rounded,
5062
- fillMode,
5063
- showArrowButton,
5064
- hover,
5065
- focus,
5066
- valid,
5067
- invalid,
5068
- required,
5069
- loading,
5070
- disabled,
5071
- readonly,
5072
- opened,
5073
- dir,
5074
- ...other
5075
- } = props;
5076
- return /* @__PURE__ */ jsxs4(Fragment10, { children: [
5077
- /* @__PURE__ */ jsxs4(
5078
- Input,
5079
- {
5080
- ...other,
5081
- dir,
5082
- size,
5083
- rounded,
5084
- fillMode,
5085
- hover,
5086
- focus,
5087
- valid,
5088
- invalid,
5089
- required,
5090
- loading,
5091
- disabled,
5092
- readonly,
5093
- className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5094
- children: [
5095
- /* @__PURE__ */ jsx32(InputPrefix, { children: prefix }),
5096
- /* @__PURE__ */ jsx32(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ jsx32(Fragment10, { children: tags }) }),
5097
- /* @__PURE__ */ jsx32("span", { className: "k-input-inner", children: /* @__PURE__ */ jsx32("span", { className: "k-input-value-text", children: placeholder }) }),
5098
- /* @__PURE__ */ jsx32(
5099
- InputValidationIcon,
5100
- {
5101
- valid,
5102
- invalid,
5103
- loading,
5104
- disabled
5105
- }
5106
- ),
5107
- /* @__PURE__ */ jsx32(
5108
- InputLoadingIcon,
5109
- {
5110
- loading,
5111
- disabled
5112
- }
5113
- ),
5114
- /* @__PURE__ */ jsx32(
5115
- InputClearValue,
5116
- {
5117
- loading,
5118
- disabled,
5119
- readonly,
5120
- value: tags ? "value" : ""
5121
- }
5122
- ),
5123
- /* @__PURE__ */ jsx32(InputSuffix, { children: suffix }),
5124
- showArrowButton && /* @__PURE__ */ jsx32(
5125
- Button,
5126
- {
5127
- className: "k-input-button",
5128
- icon: "caret-alt-down",
5129
- rounded: null,
5130
- size,
5131
- fillMode
5132
- }
5133
- )
5134
- ]
5135
- }
5136
- ),
5137
- opened && popup && /* @__PURE__ */ jsx32(Popup, { className: "k-multiselecttree-popup", dir, children: popup })
5138
- ] });
5139
- };
5140
- MultiSelectTree.states = states17;
5141
- MultiSelectTree.options = options16;
5142
- MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5143
- MultiSelectTree.defaultProps = defaultProps14;
5144
-
5145
- // src/checkbox/checkbox.spec.tsx
5146
- import { jsx as jsx33 } from "react/jsx-runtime";
5147
- var CHECKBOX_CLASSNAME = `k-checkbox`;
5148
- var states18 = [
5149
- States.hover,
5150
- States.focus,
5151
- States.valid,
5152
- States.invalid,
5153
- States.required,
5154
- States.disabled,
5155
- States.checked,
5156
- States.indeterminate
5157
- ];
5158
- var options17 = {
5159
- size: [Size.small, Size.medium, Size.large],
5160
- rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5161
- };
5162
- var defaultProps15 = {
5163
- size: Size.medium,
5164
- rounded: Roundness.medium
5165
- };
5166
- var Checkbox = (props) => {
5167
- const {
5168
- id,
5169
- checked,
5170
- indeterminate,
5171
- hover,
5172
- focus,
5173
- disabled,
5174
- invalid,
5175
- valid,
5176
- required,
5177
- size = defaultProps15.size,
5178
- rounded = defaultProps15.rounded,
5179
- ...other
5180
- } = props;
5181
- return /* @__PURE__ */ jsx33("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx33(
5182
- "input",
5183
- {
5184
- ...other,
5185
- id,
5186
- type: "checkbox",
5187
- checked,
5188
- required,
5189
- className: classNames(
5190
- props.className,
5191
- CHECKBOX_CLASSNAME,
5192
- optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5193
- stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5194
- )
5195
- }
5196
- ) });
5197
- };
5198
- Checkbox.states = states18;
5199
- Checkbox.options = options17;
5200
- Checkbox.className = CHECKBOX_CLASSNAME;
5201
- Checkbox.defaultProps = defaultProps15;
5202
-
5203
- // src/checkbox/checkbox-group.spec.tsx
5204
- import { jsx as jsx34 } from "react/jsx-runtime";
5205
- var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5206
- var states19 = [];
5207
- var options18 = {};
5208
- var defaultProps16 = {
5209
- layout: "vertical"
5210
- };
5211
- var CheckboxGroup = (props) => {
5212
- const {
5213
- layout = defaultProps16.layout,
5214
- ...other
5215
- } = props;
5216
- return /* @__PURE__ */ jsx34(
5217
- "ul",
5218
- {
5219
- ...other,
5220
- className: classNames(
5221
- props.className,
5222
- CHECKBOXGROUP_CLASSNAME,
5223
- {
5224
- [`k-list-${layout}`]: layout
5225
- }
5226
- ),
5227
- children: props.children
5016
+ return /* @__PURE__ */ jsx31(
5017
+ AnimationContainer,
5018
+ {
5019
+ positionMode,
5020
+ offset,
5021
+ children: /* @__PURE__ */ jsx31("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5228
5022
  }
5229
5023
  );
5230
5024
  };
5231
- CheckboxGroup.states = states19;
5232
- CheckboxGroup.options = options18;
5233
- CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5234
- CheckboxGroup.defaultProps = defaultProps16;
5025
+ Popup.states = states16;
5026
+ Popup.options = options15;
5027
+ Popup.className = POPUP_CLASSNAME;
5028
+ Popup.defaultProps = defaultProps13;
5235
5029
 
5236
- // src/checkbox/checkbox-item.spec.tsx
5237
- import { jsx as jsx35 } from "react/jsx-runtime";
5238
- var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5239
- var states20 = [];
5240
- var options19 = {};
5241
- var defaultProps17 = {};
5242
- var CheckboxItem = (props) => {
5030
+ // src/action-sheet/action-sheet.spec.tsx
5031
+ import { Fragment as Fragment10, jsx as jsx32, jsxs as jsxs4 } from "react/jsx-runtime";
5032
+ var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
5033
+ var states17 = [];
5034
+ var options16 = {};
5035
+ var defaultProps14 = {
5036
+ side: "bottom",
5037
+ fullscreen: false,
5038
+ adaptive: false,
5039
+ overlay: true
5040
+ };
5041
+ var ActionSheet = (props) => {
5243
5042
  const {
5043
+ children,
5044
+ title,
5045
+ header,
5046
+ footer,
5047
+ actions,
5048
+ side = defaultProps14.side,
5049
+ fullscreen = defaultProps14.fullscreen,
5050
+ adaptive = defaultProps14.adaptive,
5051
+ overlay = defaultProps14.overlay,
5244
5052
  ...other
5245
5053
  } = props;
5246
- return /* @__PURE__ */ jsx35(
5247
- "li",
5248
- {
5249
- ...other,
5250
- className: classNames(
5251
- props.className,
5252
- CHECKBOXITEM_CLASSNAME
5253
- ),
5254
- children: props.children
5054
+ const _ActionSheetHeader = title ? /* @__PURE__ */ jsx32(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
5055
+ const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx32(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx32(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
5056
+ const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
5057
+ switch (child.type) {
5058
+ case ActionSheetHeader:
5059
+ case ActionSheetFooter:
5060
+ return false;
5061
+ default:
5062
+ return true;
5255
5063
  }
5256
- );
5064
+ return true;
5065
+ }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx32(Fragment10, {});
5066
+ return /* @__PURE__ */ jsxs4("div", { className: "k-actionsheet-container", children: [
5067
+ overlay && /* @__PURE__ */ jsx32("div", { className: "k-overlay" }),
5068
+ /* @__PURE__ */ jsx32(
5069
+ AnimationContainer,
5070
+ {
5071
+ animationStyle: {
5072
+ [`${fullscreen === true ? "top" : side}`]: 0,
5073
+ [`${fullscreen === true ? "width" : null}`]: "100%",
5074
+ [`${fullscreen === true ? "height" : null}`]: "100%",
5075
+ [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
5076
+ [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
5077
+ },
5078
+ children: /* @__PURE__ */ jsx32(
5079
+ "div",
5080
+ {
5081
+ ...other,
5082
+ className: classNames(
5083
+ props.className,
5084
+ ACTIONSHEET_CLASSNAME,
5085
+ {
5086
+ [`k-actionsheet-${side}`]: fullscreen === false,
5087
+ "k-actionsheet-fullscreen": fullscreen === true,
5088
+ "k-adaptive-actionsheet": adaptive
5089
+ }
5090
+ ),
5091
+ children: /* @__PURE__ */ jsxs4(Fragment10, { children: [
5092
+ _ActionSheetHeader,
5093
+ /* @__PURE__ */ jsx32("div", { className: classNames(
5094
+ "k-actionsheet-content",
5095
+ {
5096
+ "!k-overflow-hidden": adaptive
5097
+ }
5098
+ ), children: _ActionSheetContent }),
5099
+ _ActionSheetFooter
5100
+ ] })
5101
+ }
5102
+ )
5103
+ }
5104
+ )
5105
+ ] });
5257
5106
  };
5258
- CheckboxItem.states = states20;
5259
- CheckboxItem.options = options19;
5260
- CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5261
- CheckboxItem.defaultProps = defaultProps17;
5262
-
5263
- // src/checkbox/templates/checkbox-with-label-after.tsx
5264
- import { Fragment as Fragment11, jsx as jsx36, jsxs as jsxs5 } from "react/jsx-runtime";
5265
-
5266
- // src/checkbox/templates/checkbox-with-label-before.tsx
5267
- import { Fragment as Fragment12, jsx as jsx37, jsxs as jsxs6 } from "react/jsx-runtime";
5107
+ ActionSheet.states = states17;
5108
+ ActionSheet.options = options16;
5109
+ ActionSheet.className = ACTIONSHEET_CLASSNAME;
5110
+ ActionSheet.defaultProps = defaultProps14;
5268
5111
 
5269
- // src/checkbox/templates/checkbox-normal.tsx
5270
- import { jsx as jsx38 } from "react/jsx-runtime";
5271
-
5272
- // src/textbox/textbox.spec.tsx
5273
- import { jsx as jsx39, jsxs as jsxs7 } from "react/jsx-runtime";
5274
- var TEXTBOX_CLASSNAME = `k-textbox`;
5275
- var states21 = [
5112
+ // src/searchbox/searchbox.spec.tsx
5113
+ import { jsx as jsx33, jsxs as jsxs5 } from "react/jsx-runtime";
5114
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5115
+ var states18 = [
5276
5116
  States.hover,
5277
5117
  States.focus,
5278
5118
  States.valid,
5279
5119
  States.invalid,
5280
5120
  States.required,
5281
5121
  States.disabled,
5282
- States.loading,
5283
- States.readonly
5122
+ States.loading
5284
5123
  ];
5285
- var options20 = {
5124
+ var options17 = {
5286
5125
  size: [Size.small, Size.medium, Size.large],
5287
5126
  rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5288
5127
  fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5289
5128
  };
5290
- var defaultProps18 = {
5291
- showClearButton: true,
5129
+ var defaultProps15 = {
5130
+ showIcon: true,
5131
+ icon: "search",
5292
5132
  size: Input.defaultProps.size,
5293
5133
  rounded: Input.defaultProps.rounded,
5294
5134
  fillMode: Input.defaultProps.fillMode
5295
5135
  };
5296
- var Textbox = (props) => {
5136
+ var Searchbox = (props) => {
5297
5137
  const {
5298
- prefix,
5299
- suffix,
5300
5138
  value,
5301
5139
  placeholder,
5302
5140
  size,
@@ -5309,11 +5147,11 @@ var Textbox = (props) => {
5309
5147
  required,
5310
5148
  loading,
5311
5149
  disabled,
5312
- readonly,
5313
- showClearButton = defaultProps18.showClearButton,
5150
+ showIcon = defaultProps15.showIcon,
5151
+ icon = defaultProps15.icon,
5314
5152
  ...other
5315
5153
  } = props;
5316
- return /* @__PURE__ */ jsxs7(
5154
+ return /* @__PURE__ */ jsxs5(
5317
5155
  Input,
5318
5156
  {
5319
5157
  ...other,
@@ -5327,69 +5165,173 @@ var Textbox = (props) => {
5327
5165
  required,
5328
5166
  loading,
5329
5167
  disabled,
5330
- readonly,
5331
- className: classNames(props.className, TEXTBOX_CLASSNAME),
5168
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5332
5169
  children: [
5333
- /* @__PURE__ */ jsx39(InputPrefix, { children: prefix }),
5334
- /* @__PURE__ */ jsx39(InputInnerInput, { placeholder, value }),
5335
- /* @__PURE__ */ jsx39(
5336
- InputValidationIcon,
5337
- {
5338
- valid,
5339
- invalid,
5340
- loading,
5341
- disabled
5342
- }
5343
- ),
5344
- /* @__PURE__ */ jsx39(
5345
- InputLoadingIcon,
5346
- {
5347
- loading,
5348
- disabled
5349
- }
5350
- ),
5351
- showClearButton && /* @__PURE__ */ jsx39(
5352
- InputClearValue,
5353
- {
5354
- loading,
5355
- disabled,
5356
- readonly,
5357
- value
5358
- }
5359
- ),
5360
- /* @__PURE__ */ jsx39(InputSuffix, { children: suffix })
5170
+ showIcon && /* @__PURE__ */ jsx33(Icon, { className: "k-input-icon", icon }),
5171
+ /* @__PURE__ */ jsx33(InputInnerInput, { placeholder, value }),
5172
+ /* @__PURE__ */ jsx33(InputLoadingIcon, { ...props }),
5173
+ /* @__PURE__ */ jsx33(InputValidationIcon, { ...props }),
5174
+ /* @__PURE__ */ jsx33(InputClearValue, { ...props })
5361
5175
  ]
5362
5176
  }
5363
5177
  );
5364
5178
  };
5365
- Textbox.states = states21;
5366
- Textbox.options = options20;
5367
- Textbox.className = TEXTBOX_CLASSNAME;
5368
- Textbox.defaultProps = defaultProps18;
5179
+ Searchbox.states = states18;
5180
+ Searchbox.options = options17;
5181
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5182
+ Searchbox.defaultProps = defaultProps15;
5369
5183
 
5370
- // src/textbox/templates/textbox-normal.tsx
5371
- import { jsx as jsx40 } from "react/jsx-runtime";
5184
+ // src/searchbox/templates/searchbox-normal.tsx
5185
+ import { jsx as jsx34 } from "react/jsx-runtime";
5372
5186
 
5373
- // src/textbox/templates/textbox-prefix.tsx
5374
- import { Fragment as Fragment13, jsx as jsx41, jsxs as jsxs8 } from "react/jsx-runtime";
5187
+ // src/action-sheet/actionsheet-header.tsx
5188
+ import { Fragment as Fragment11, jsx as jsx35, jsxs as jsxs6 } from "react/jsx-runtime";
5189
+ var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
5190
+ var ActionSheetHeader = (props) => {
5191
+ const {
5192
+ title,
5193
+ subTitle,
5194
+ actions,
5195
+ filter,
5196
+ ...other
5197
+ } = props;
5198
+ return /* @__PURE__ */ jsx35(
5199
+ "div",
5200
+ {
5201
+ ...other,
5202
+ className: classNames(
5203
+ props.className,
5204
+ ACTIONSHEETHEADER_CLASSNAME
5205
+ ),
5206
+ children: /* @__PURE__ */ jsxs6(Fragment11, { children: [
5207
+ /* @__PURE__ */ jsxs6("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
5208
+ !props.children && (title || subTitle) && /* @__PURE__ */ jsx35(Fragment11, { children: /* @__PURE__ */ jsxs6("div", { className: "k-actionsheet-title", children: [
5209
+ title !== "" && /* @__PURE__ */ jsx35("div", { className: "k-text-center", children: title }),
5210
+ subTitle !== "" && /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
5211
+ ] }) }),
5212
+ props.children && /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-title", children: props.children }),
5213
+ actions && /* @__PURE__ */ jsx35(Fragment11, { children: /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx35(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
5214
+ ] }),
5215
+ filter && /* @__PURE__ */ jsx35(Fragment11, { children: /* @__PURE__ */ jsx35("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx35(Searchbox, { placeholder: "Filter", size: "large" }) }) })
5216
+ ] })
5217
+ }
5218
+ );
5219
+ };
5375
5220
 
5376
- // src/textbox/templates/textbox-suffix.tsx
5377
- import { Fragment as Fragment14, jsx as jsx42, jsxs as jsxs9 } from "react/jsx-runtime";
5221
+ // src/action-buttons/action-buttons.spec.tsx
5222
+ import { jsx as jsx36 } from "react/jsx-runtime";
5223
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
5224
+ var states19 = [];
5225
+ var options18 = {};
5226
+ var defaultProps16 = {
5227
+ alignment: "start",
5228
+ orientation: "horizontal"
5229
+ };
5230
+ var ActionButtons = (props) => {
5231
+ const {
5232
+ alignment = defaultProps16.alignment,
5233
+ orientation = defaultProps16.orientation,
5234
+ ...other
5235
+ } = props;
5236
+ return /* @__PURE__ */ jsx36(
5237
+ "div",
5238
+ {
5239
+ ...other,
5240
+ className: classNames(
5241
+ ACTIONBUTTONS_CLASSNAME,
5242
+ {
5243
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
5244
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
5245
+ },
5246
+ props.className
5247
+ ),
5248
+ children: props.children
5249
+ }
5250
+ );
5251
+ };
5252
+ ActionButtons.states = states19;
5253
+ ActionButtons.options = options18;
5254
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
5255
+ ActionButtons.defaultProps = defaultProps16;
5256
+ var action_buttons_spec_default = ActionButtons;
5257
+
5258
+ // src/action-sheet/actionsheet-footer.tsx
5259
+ import { Fragment as Fragment12, jsx as jsx37, jsxs as jsxs7 } from "react/jsx-runtime";
5260
+ var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
5261
+ var ActionSheetFooter = (props) => {
5262
+ const {
5263
+ actions,
5264
+ ...other
5265
+ } = props;
5266
+ return /* @__PURE__ */ jsx37(
5267
+ action_buttons_spec_default,
5268
+ {
5269
+ ...other,
5270
+ className: classNames(
5271
+ props.className,
5272
+ ACTIONSHEETFOOTER_CLASSNAME
5273
+ ),
5274
+ alignment: "stretched",
5275
+ children: /* @__PURE__ */ jsxs7(Fragment12, { children: [
5276
+ actions && actions.map((action, index) => {
5277
+ if (action === "|") {
5278
+ return /* @__PURE__ */ jsx37("span", { className: "k-separator" }, index);
5279
+ }
5280
+ if (action === " ") {
5281
+ return /* @__PURE__ */ jsx37("span", { className: "k-spacer" }, index);
5282
+ }
5283
+ const importantFlag = action.startsWith("!");
5284
+ const actionName = importantFlag ? action.substring(1) : action;
5285
+ return /* @__PURE__ */ jsx37(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
5286
+ }),
5287
+ !actions && props.children
5288
+ ] })
5289
+ }
5290
+ );
5291
+ };
5292
+
5293
+ // src/action-sheet/actionsheet-items.tsx
5294
+ import { jsx as jsx38 } from "react/jsx-runtime";
5295
+ var ActionSheetItems = (props) => {
5296
+ const {
5297
+ ...other
5298
+ } = props;
5299
+ return /* @__PURE__ */ jsx38(
5300
+ "div",
5301
+ {
5302
+ ...other,
5303
+ className: classNames(
5304
+ props.className,
5305
+ "k-list-ul"
5306
+ ),
5307
+ children: props.children
5308
+ }
5309
+ );
5310
+ };
5311
+
5312
+ // src/action-sheet/actionsheet-item.tsx
5313
+ import { Fragment as Fragment13, jsx as jsx39, jsxs as jsxs8 } from "react/jsx-runtime";
5314
+ var states20 = [
5315
+ States.hover,
5316
+ States.focus,
5317
+ States.selected,
5318
+ States.disabled
5319
+ ];
5378
5320
 
5379
5321
  // src/treeview/treeview.spec.tsx
5380
- import { jsx as jsx43 } from "react/jsx-runtime";
5322
+ import { jsx as jsx40 } from "react/jsx-runtime";
5381
5323
  import { createElement } from "react";
5382
5324
  var TREEVIEW_CLASSNAME = `k-treeview`;
5383
- var states22 = [];
5384
- var options21 = {
5325
+ var states21 = [];
5326
+ var options19 = {
5385
5327
  size: [Size.small, Size.medium, Size.large]
5386
5328
  };
5387
- var defaultProps19 = {
5329
+ var defaultProps17 = {
5388
5330
  size: Size.medium
5389
5331
  };
5390
5332
  var Treeview = (props) => {
5391
5333
  const {
5392
- size = defaultProps19.size,
5334
+ size = defaultProps17.size,
5393
5335
  children,
5394
5336
  dir,
5395
5337
  ...other
@@ -5408,43 +5350,170 @@ var Treeview = (props) => {
5408
5350
  /* @__PURE__ */ createElement(TreeviewGroup, { ...child.props, dir, key: index })
5409
5351
  );
5410
5352
  }
5411
- });
5412
- } else {
5413
- if (children.type === TreeviewItem) {
5414
- listChildren.push(
5415
- /* @__PURE__ */ jsx43(TreeviewItem, { ...children.props, dir })
5416
- );
5417
- }
5418
- if (children.type === TreeviewGroup) {
5419
- listChildren.push(
5420
- /* @__PURE__ */ jsx43(TreeviewGroup, { ...children.props, dir })
5421
- );
5422
- }
5353
+ });
5354
+ } else {
5355
+ if (children.type === TreeviewItem) {
5356
+ listChildren.push(
5357
+ /* @__PURE__ */ jsx40(TreeviewItem, { ...children.props, dir })
5358
+ );
5359
+ }
5360
+ if (children.type === TreeviewGroup) {
5361
+ listChildren.push(
5362
+ /* @__PURE__ */ jsx40(TreeviewGroup, { ...children.props, dir })
5363
+ );
5364
+ }
5365
+ }
5366
+ }
5367
+ return /* @__PURE__ */ jsx40(
5368
+ "div",
5369
+ {
5370
+ ...other,
5371
+ dir,
5372
+ className: classNames(
5373
+ props.className,
5374
+ TREEVIEW_CLASSNAME,
5375
+ optionClassNames(TREEVIEW_CLASSNAME, {
5376
+ size
5377
+ })
5378
+ ),
5379
+ children: /* @__PURE__ */ jsx40(TreeviewGroup, { className: "k-treeview-lines", dir, children: listChildren })
5380
+ }
5381
+ );
5382
+ };
5383
+ Treeview.states = states21;
5384
+ Treeview.options = options19;
5385
+ Treeview.className = TREEVIEW_CLASSNAME;
5386
+ Treeview.defaultProps = defaultProps17;
5387
+
5388
+ // src/checkbox/checkbox.spec.tsx
5389
+ import { jsx as jsx41 } from "react/jsx-runtime";
5390
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
5391
+ var states22 = [
5392
+ States.hover,
5393
+ States.focus,
5394
+ States.valid,
5395
+ States.invalid,
5396
+ States.required,
5397
+ States.disabled,
5398
+ States.checked,
5399
+ States.indeterminate
5400
+ ];
5401
+ var options20 = {
5402
+ size: [Size.small, Size.medium, Size.large],
5403
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5404
+ };
5405
+ var defaultProps18 = {
5406
+ size: Size.medium,
5407
+ rounded: Roundness.medium
5408
+ };
5409
+ var Checkbox = (props) => {
5410
+ const {
5411
+ id,
5412
+ checked,
5413
+ indeterminate,
5414
+ hover,
5415
+ focus,
5416
+ disabled,
5417
+ invalid,
5418
+ valid,
5419
+ required,
5420
+ size = defaultProps18.size,
5421
+ rounded = defaultProps18.rounded,
5422
+ ...other
5423
+ } = props;
5424
+ return /* @__PURE__ */ jsx41("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx41(
5425
+ "input",
5426
+ {
5427
+ ...other,
5428
+ id,
5429
+ type: "checkbox",
5430
+ checked,
5431
+ required,
5432
+ className: classNames(
5433
+ props.className,
5434
+ CHECKBOX_CLASSNAME,
5435
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5436
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5437
+ )
5438
+ }
5439
+ ) });
5440
+ };
5441
+ Checkbox.states = states22;
5442
+ Checkbox.options = options20;
5443
+ Checkbox.className = CHECKBOX_CLASSNAME;
5444
+ Checkbox.defaultProps = defaultProps18;
5445
+
5446
+ // src/checkbox/checkbox-group.spec.tsx
5447
+ import { jsx as jsx42 } from "react/jsx-runtime";
5448
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5449
+ var states23 = [];
5450
+ var options21 = {};
5451
+ var defaultProps19 = {
5452
+ layout: "vertical"
5453
+ };
5454
+ var CheckboxGroup = (props) => {
5455
+ const {
5456
+ layout = defaultProps19.layout,
5457
+ ...other
5458
+ } = props;
5459
+ return /* @__PURE__ */ jsx42(
5460
+ "ul",
5461
+ {
5462
+ ...other,
5463
+ className: classNames(
5464
+ props.className,
5465
+ CHECKBOXGROUP_CLASSNAME,
5466
+ {
5467
+ [`k-list-${layout}`]: layout
5468
+ }
5469
+ ),
5470
+ children: props.children
5423
5471
  }
5424
- }
5472
+ );
5473
+ };
5474
+ CheckboxGroup.states = states23;
5475
+ CheckboxGroup.options = options21;
5476
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5477
+ CheckboxGroup.defaultProps = defaultProps19;
5478
+
5479
+ // src/checkbox/checkbox-item.spec.tsx
5480
+ import { jsx as jsx43 } from "react/jsx-runtime";
5481
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5482
+ var states24 = [];
5483
+ var options22 = {};
5484
+ var defaultProps20 = {};
5485
+ var CheckboxItem = (props) => {
5486
+ const {
5487
+ ...other
5488
+ } = props;
5425
5489
  return /* @__PURE__ */ jsx43(
5426
- "div",
5490
+ "li",
5427
5491
  {
5428
5492
  ...other,
5429
- dir,
5430
5493
  className: classNames(
5431
5494
  props.className,
5432
- TREEVIEW_CLASSNAME,
5433
- optionClassNames(TREEVIEW_CLASSNAME, {
5434
- size
5435
- })
5495
+ CHECKBOXITEM_CLASSNAME
5436
5496
  ),
5437
- children: /* @__PURE__ */ jsx43(TreeviewGroup, { className: "k-treeview-lines", dir, children: listChildren })
5497
+ children: props.children
5438
5498
  }
5439
5499
  );
5440
5500
  };
5441
- Treeview.states = states22;
5442
- Treeview.options = options21;
5443
- Treeview.className = TREEVIEW_CLASSNAME;
5444
- Treeview.defaultProps = defaultProps19;
5501
+ CheckboxItem.states = states24;
5502
+ CheckboxItem.options = options22;
5503
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5504
+ CheckboxItem.defaultProps = defaultProps20;
5505
+
5506
+ // src/checkbox/templates/checkbox-with-label-after.tsx
5507
+ import { Fragment as Fragment14, jsx as jsx44, jsxs as jsxs9 } from "react/jsx-runtime";
5508
+
5509
+ // src/checkbox/templates/checkbox-with-label-before.tsx
5510
+ import { Fragment as Fragment15, jsx as jsx45, jsxs as jsxs10 } from "react/jsx-runtime";
5511
+
5512
+ // src/checkbox/templates/checkbox-normal.tsx
5513
+ import { jsx as jsx46 } from "react/jsx-runtime";
5445
5514
 
5446
5515
  // src/treeview/treeview-group.tsx
5447
- import { jsx as jsx44 } from "react/jsx-runtime";
5516
+ import { jsx as jsx47 } from "react/jsx-runtime";
5448
5517
  import { createElement as createElement2 } from "react";
5449
5518
  var className9 = `k-treeview-group`;
5450
5519
  var TreeviewGroup = (props) => {
@@ -5465,23 +5534,23 @@ var TreeviewGroup = (props) => {
5465
5534
  } else {
5466
5535
  if (children.type === treeview_item_spec_default) {
5467
5536
  listChildren.push(
5468
- /* @__PURE__ */ jsx44(treeview_item_spec_default, { ...children.props, dir })
5537
+ /* @__PURE__ */ jsx47(treeview_item_spec_default, { ...children.props, dir })
5469
5538
  );
5470
5539
  }
5471
5540
  }
5472
5541
  }
5473
- return /* @__PURE__ */ jsx44("ul", { className: classNames(props.className, className9), children: listChildren });
5542
+ return /* @__PURE__ */ jsx47("ul", { className: classNames(props.className, className9), children: listChildren });
5474
5543
  };
5475
5544
 
5476
5545
  // src/treeview/treeview-leaf.tsx
5477
- import { jsx as jsx45, jsxs as jsxs10 } from "react/jsx-runtime";
5546
+ import { jsx as jsx48, jsxs as jsxs11 } from "react/jsx-runtime";
5478
5547
  var TREEVIEWLEAF_CLASSNAME = `k-treeview-leaf`;
5479
- var states23 = [
5548
+ var states25 = [
5480
5549
  States.hover,
5481
5550
  States.focus,
5482
5551
  States.selected
5483
5552
  ];
5484
- var options22 = {};
5553
+ var options23 = {};
5485
5554
  var TreeviewLeaf = (props) => {
5486
5555
  const {
5487
5556
  text,
@@ -5492,7 +5561,7 @@ var TreeviewLeaf = (props) => {
5492
5561
  selected,
5493
5562
  ...other
5494
5563
  } = props;
5495
- return /* @__PURE__ */ jsxs10(
5564
+ return /* @__PURE__ */ jsxs11(
5496
5565
  "span",
5497
5566
  {
5498
5567
  ...other,
@@ -5506,29 +5575,29 @@ var TreeviewLeaf = (props) => {
5506
5575
  })
5507
5576
  ),
5508
5577
  children: [
5509
- showIcon && /* @__PURE__ */ jsx45(Icon, { icon }),
5510
- /* @__PURE__ */ jsx45("span", { className: "k-treeview-leaf-text", children: text })
5578
+ showIcon && /* @__PURE__ */ jsx48(Icon, { icon }),
5579
+ /* @__PURE__ */ jsx48("span", { className: "k-treeview-leaf-text", children: text })
5511
5580
  ]
5512
5581
  }
5513
5582
  );
5514
5583
  };
5515
- TreeviewLeaf.states = states23;
5516
- TreeviewLeaf.options = options22;
5584
+ TreeviewLeaf.states = states25;
5585
+ TreeviewLeaf.options = options23;
5517
5586
  TreeviewLeaf.className = TREEVIEWLEAF_CLASSNAME;
5518
5587
  var treeview_leaf_default = TreeviewLeaf;
5519
5588
 
5520
5589
  // src/treeview/treeview-item.spec.tsx
5521
- import { Fragment as Fragment15, jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
5590
+ import { Fragment as Fragment16, jsx as jsx49, jsxs as jsxs12 } from "react/jsx-runtime";
5522
5591
  import { createElement as createElement3 } from "react";
5523
5592
  var TREEVIEWITEM_CLASSNAME = `k-treeview-item`;
5524
- var states24 = [
5593
+ var states26 = [
5525
5594
  States.hover,
5526
5595
  States.focus,
5527
5596
  States.selected,
5528
5597
  States.disabled
5529
5598
  ];
5530
- var options23 = {};
5531
- var defaultProps20 = {};
5599
+ var options24 = {};
5600
+ var defaultProps21 = {};
5532
5601
  var TreeviewItem = (props) => {
5533
5602
  const {
5534
5603
  leafClassName,
@@ -5561,12 +5630,12 @@ var TreeviewItem = (props) => {
5561
5630
  } else {
5562
5631
  if (children.type === TreeviewGroup) {
5563
5632
  listChildren.push(
5564
- /* @__PURE__ */ jsx46(TreeviewGroup, { ...children.props, dir, children: children.props.children })
5633
+ /* @__PURE__ */ jsx49(TreeviewGroup, { ...children.props, dir, children: children.props.children })
5565
5634
  );
5566
5635
  }
5567
5636
  }
5568
5637
  }
5569
- return /* @__PURE__ */ jsxs11(
5638
+ return /* @__PURE__ */ jsxs12(
5570
5639
  "li",
5571
5640
  {
5572
5641
  ...other,
@@ -5575,19 +5644,19 @@ var TreeviewItem = (props) => {
5575
5644
  TREEVIEWITEM_CLASSNAME
5576
5645
  ),
5577
5646
  children: [
5578
- /* @__PURE__ */ jsxs11("span", { className: "k-treeview-mid", children: [
5579
- _hasChildren && /* @__PURE__ */ jsx46(
5647
+ /* @__PURE__ */ jsxs12("span", { className: "k-treeview-mid", children: [
5648
+ _hasChildren && /* @__PURE__ */ jsx49(
5580
5649
  "span",
5581
5650
  {
5582
5651
  className: classNames(
5583
5652
  "k-treeview-toggle",
5584
5653
  stateClassNames("k-treeview-toggle", { disabled })
5585
5654
  ),
5586
- children: /* @__PURE__ */ jsx46(Icon, { icon: expanded ? "caret-alt-down" : dir === "rtl" ? "caret-alt-left" : "caret-alt-right" })
5655
+ children: /* @__PURE__ */ jsx49(Icon, { icon: expanded ? "caret-alt-down" : dir === "rtl" ? "caret-alt-left" : "caret-alt-right" })
5587
5656
  }
5588
5657
  ),
5589
- showCheckbox && /* @__PURE__ */ jsx46(Checkbox, { checked, disabled }),
5590
- /* @__PURE__ */ jsx46(
5658
+ showCheckbox && /* @__PURE__ */ jsx49(Checkbox, { checked, disabled }),
5659
+ /* @__PURE__ */ jsx49(
5591
5660
  treeview_leaf_default,
5592
5661
  {
5593
5662
  className: classNames(
@@ -5603,31 +5672,354 @@ var TreeviewItem = (props) => {
5603
5672
  }
5604
5673
  )
5605
5674
  ] }),
5606
- expanded && _hasChildren && /* @__PURE__ */ jsx46(Fragment15, { children: listChildren })
5675
+ expanded && _hasChildren && /* @__PURE__ */ jsx49(Fragment16, { children: listChildren })
5607
5676
  ]
5608
5677
  }
5609
5678
  );
5610
5679
  };
5611
- TreeviewItem.states = states24;
5612
- TreeviewItem.options = options23;
5680
+ TreeviewItem.states = states26;
5681
+ TreeviewItem.options = options24;
5613
5682
  TreeviewItem.className = TREEVIEWITEM_CLASSNAME;
5614
- TreeviewItem.defaultProps = defaultProps20;
5683
+ TreeviewItem.defaultProps = defaultProps21;
5615
5684
  var treeview_item_spec_default = TreeviewItem;
5616
5685
 
5617
5686
  // src/treeview/templates/treeview-normal.tsx
5618
- import { jsx as jsx47 } from "react/jsx-runtime";
5687
+ import { jsx as jsx50 } from "react/jsx-runtime";
5619
5688
 
5620
5689
  // src/treeview/templates/treeview-hierarchy.tsx
5621
- import { jsx as jsx48, jsxs as jsxs12 } from "react/jsx-runtime";
5690
+ import { jsx as jsx51, jsxs as jsxs13 } from "react/jsx-runtime";
5622
5691
 
5623
5692
  // src/treeview/templates/treeview-icons.tsx
5624
- import { jsx as jsx49, jsxs as jsxs13 } from "react/jsx-runtime";
5693
+ import { jsx as jsx52, jsxs as jsxs14 } from "react/jsx-runtime";
5625
5694
 
5626
5695
  // src/treeview/templates/treeview-checkboxes.tsx
5627
- import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
5696
+ import { jsx as jsx53, jsxs as jsxs15 } from "react/jsx-runtime";
5697
+
5698
+ // src/multiselecttree/multiselecttree.spec.tsx
5699
+ import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs16 } from "react/jsx-runtime";
5700
+ var MULTISELECTTREE_CLASSNAME = `k-multiselecttree`;
5701
+ var states27 = [
5702
+ States.hover,
5703
+ States.focus,
5704
+ States.valid,
5705
+ States.invalid,
5706
+ States.required,
5707
+ States.disabled,
5708
+ States.loading,
5709
+ States.readonly
5710
+ ];
5711
+ var options25 = {
5712
+ size: [Size.small, Size.medium, Size.large],
5713
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5714
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5715
+ };
5716
+ var defaultProps22 = {
5717
+ size: Input.defaultProps.size,
5718
+ rounded: Input.defaultProps.rounded,
5719
+ fillMode: Input.defaultProps.fillMode
5720
+ };
5721
+ var MultiSelectTree = (props) => {
5722
+ const {
5723
+ prefix,
5724
+ suffix,
5725
+ placeholder,
5726
+ tags,
5727
+ popup,
5728
+ size,
5729
+ rounded,
5730
+ fillMode,
5731
+ showArrowButton,
5732
+ hover,
5733
+ focus,
5734
+ valid,
5735
+ invalid,
5736
+ required,
5737
+ loading,
5738
+ disabled,
5739
+ readonly,
5740
+ opened,
5741
+ dir,
5742
+ adaptive,
5743
+ adaptiveSettings,
5744
+ ...other
5745
+ } = props;
5746
+ return /* @__PURE__ */ jsxs16(Fragment17, { children: [
5747
+ /* @__PURE__ */ jsxs16(
5748
+ Input,
5749
+ {
5750
+ ...other,
5751
+ dir,
5752
+ size,
5753
+ rounded,
5754
+ fillMode,
5755
+ hover,
5756
+ focus,
5757
+ valid,
5758
+ invalid,
5759
+ required,
5760
+ loading,
5761
+ disabled,
5762
+ readonly,
5763
+ className: classNames(props.className, MULTISELECTTREE_CLASSNAME),
5764
+ children: [
5765
+ /* @__PURE__ */ jsx54(InputPrefix, { children: prefix }),
5766
+ /* @__PURE__ */ jsx54(ChipList, { size, className: "k-input-values", children: /* @__PURE__ */ jsx54(Fragment17, { children: tags }) }),
5767
+ /* @__PURE__ */ jsx54("span", { className: "k-input-inner", children: /* @__PURE__ */ jsx54("span", { className: "k-input-value-text", children: placeholder }) }),
5768
+ /* @__PURE__ */ jsx54(
5769
+ InputValidationIcon,
5770
+ {
5771
+ valid,
5772
+ invalid,
5773
+ loading,
5774
+ disabled
5775
+ }
5776
+ ),
5777
+ /* @__PURE__ */ jsx54(
5778
+ InputLoadingIcon,
5779
+ {
5780
+ loading,
5781
+ disabled
5782
+ }
5783
+ ),
5784
+ /* @__PURE__ */ jsx54(
5785
+ InputClearValue,
5786
+ {
5787
+ loading,
5788
+ disabled,
5789
+ readonly,
5790
+ value: tags ? "value" : ""
5791
+ }
5792
+ ),
5793
+ /* @__PURE__ */ jsx54(InputSuffix, { children: suffix }),
5794
+ showArrowButton && /* @__PURE__ */ jsx54(
5795
+ Button,
5796
+ {
5797
+ className: "k-input-button",
5798
+ icon: "caret-alt-down",
5799
+ rounded: null,
5800
+ size,
5801
+ fillMode
5802
+ }
5803
+ )
5804
+ ]
5805
+ }
5806
+ ),
5807
+ opened && popup && /* @__PURE__ */ jsx54(Popup, { className: "k-multiselecttree-popup", dir, children: popup }),
5808
+ adaptive && /* @__PURE__ */ jsxs16(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
5809
+ /* @__PURE__ */ jsx54(
5810
+ ActionSheetHeader,
5811
+ {
5812
+ filter: true,
5813
+ actions: ["x"],
5814
+ title: "Select value"
5815
+ }
5816
+ ),
5817
+ /* @__PURE__ */ jsxs16(Treeview, { size: "large", children: [
5818
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Root 1" }),
5819
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Root 2", expanded: true, children: /* @__PURE__ */ jsxs16(TreeviewGroup, { children: [
5820
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.1" }),
5821
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.2", children: /* @__PURE__ */ jsx54(TreeviewGroup, { children: /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.2.1" }) }) }),
5822
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 2.3" }),
5823
+ /* @__PURE__ */ jsx54(TreeviewItem, { leafClassName: "k-treeview-load-more-button", text: "Load more ..." })
5824
+ ] }) }),
5825
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Root 3", children: /* @__PURE__ */ jsxs16(TreeviewGroup, { children: [
5826
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 3.1" }),
5827
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 3.2" }),
5828
+ /* @__PURE__ */ jsx54(TreeviewItem, { text: "Child 3.3" })
5829
+ ] }) })
5830
+ ] })
5831
+ ] })
5832
+ ] });
5833
+ };
5834
+ MultiSelectTree.states = states27;
5835
+ MultiSelectTree.options = options25;
5836
+ MultiSelectTree.className = MULTISELECTTREE_CLASSNAME;
5837
+ MultiSelectTree.defaultProps = defaultProps22;
5838
+ var multiselecttree_spec_default = MultiSelectTree;
5839
+
5840
+ // src/multiselecttree/templates/multiselecttree-normal.tsx
5841
+ import { jsx as jsx55 } from "react/jsx-runtime";
5842
+
5843
+ // src/multiselecttree/templates/multiselecttree-arrow-button.tsx
5844
+ import { jsx as jsx56 } from "react/jsx-runtime";
5845
+
5846
+ // src/multiselecttree/templates/multiselecttree-value.tsx
5847
+ import { Fragment as Fragment18, jsx as jsx57 } from "react/jsx-runtime";
5848
+
5849
+ // src/multiselecttree/templates/multiselecttree-adaptive.tsx
5850
+ import { jsx as jsx58 } from "react/jsx-runtime";
5851
+
5852
+ // src/multiselecttree/templates/multiselecttree-popup.tsx
5853
+ import { Fragment as Fragment19, jsx as jsx59, jsxs as jsxs17 } from "react/jsx-runtime";
5854
+ var MultiSelectTreePopup = (props) => /* @__PURE__ */ jsx59(
5855
+ multiselecttree_spec_default,
5856
+ {
5857
+ opened: true,
5858
+ popup: /* @__PURE__ */ jsxs17(Fragment19, { children: [
5859
+ /* @__PURE__ */ jsxs17("div", { className: "k-check-all", children: [
5860
+ /* @__PURE__ */ jsx59(Checkbox, {}),
5861
+ /* @__PURE__ */ jsx59("span", { className: "k-checkbox-label", children: "Check all" })
5862
+ ] }),
5863
+ /* @__PURE__ */ jsxs17(Treeview, { dir: props.dir, children: [
5864
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ jsxs17(TreeviewGroup, { children: [
5865
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5866
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5867
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Child 3", showCheckbox: true })
5868
+ ] }) }),
5869
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ jsxs17(TreeviewGroup, { children: [
5870
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5871
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5872
+ /* @__PURE__ */ jsx59(TreeviewItem, { text: "Child 3", showCheckbox: true })
5873
+ ] }) })
5874
+ ] })
5875
+ ] }),
5876
+ ...props
5877
+ }
5878
+ );
5879
+
5880
+ // src/textbox/textbox.spec.tsx
5881
+ import { jsx as jsx60, jsxs as jsxs18 } from "react/jsx-runtime";
5882
+ var TEXTBOX_CLASSNAME = `k-textbox`;
5883
+ var states28 = [
5884
+ States.hover,
5885
+ States.focus,
5886
+ States.valid,
5887
+ States.invalid,
5888
+ States.required,
5889
+ States.disabled,
5890
+ States.loading,
5891
+ States.readonly
5892
+ ];
5893
+ var options26 = {
5894
+ size: [Size.small, Size.medium, Size.large],
5895
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5896
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5897
+ };
5898
+ var defaultProps23 = {
5899
+ showClearButton: true,
5900
+ size: Input.defaultProps.size,
5901
+ rounded: Input.defaultProps.rounded,
5902
+ fillMode: Input.defaultProps.fillMode
5903
+ };
5904
+ var Textbox = (props) => {
5905
+ const {
5906
+ prefix,
5907
+ suffix,
5908
+ value,
5909
+ placeholder,
5910
+ size,
5911
+ rounded,
5912
+ fillMode,
5913
+ hover,
5914
+ focus,
5915
+ valid,
5916
+ invalid,
5917
+ required,
5918
+ loading,
5919
+ disabled,
5920
+ readonly,
5921
+ showClearButton = defaultProps23.showClearButton,
5922
+ ...other
5923
+ } = props;
5924
+ return /* @__PURE__ */ jsxs18(
5925
+ Input,
5926
+ {
5927
+ ...other,
5928
+ size,
5929
+ rounded,
5930
+ fillMode,
5931
+ hover,
5932
+ focus,
5933
+ valid,
5934
+ invalid,
5935
+ required,
5936
+ loading,
5937
+ disabled,
5938
+ readonly,
5939
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
5940
+ children: [
5941
+ /* @__PURE__ */ jsx60(InputPrefix, { children: prefix }),
5942
+ /* @__PURE__ */ jsx60(InputInnerInput, { placeholder, value }),
5943
+ /* @__PURE__ */ jsx60(
5944
+ InputValidationIcon,
5945
+ {
5946
+ valid,
5947
+ invalid,
5948
+ loading,
5949
+ disabled
5950
+ }
5951
+ ),
5952
+ /* @__PURE__ */ jsx60(
5953
+ InputLoadingIcon,
5954
+ {
5955
+ loading,
5956
+ disabled
5957
+ }
5958
+ ),
5959
+ showClearButton && /* @__PURE__ */ jsx60(
5960
+ InputClearValue,
5961
+ {
5962
+ loading,
5963
+ disabled,
5964
+ readonly,
5965
+ value
5966
+ }
5967
+ ),
5968
+ /* @__PURE__ */ jsx60(InputSuffix, { children: suffix })
5969
+ ]
5970
+ }
5971
+ );
5972
+ };
5973
+ Textbox.states = states28;
5974
+ Textbox.options = options26;
5975
+ Textbox.className = TEXTBOX_CLASSNAME;
5976
+ Textbox.defaultProps = defaultProps23;
5977
+
5978
+ // src/textbox/templates/textbox-normal.tsx
5979
+ import { jsx as jsx61 } from "react/jsx-runtime";
5980
+
5981
+ // src/textbox/templates/textbox-prefix.tsx
5982
+ import { Fragment as Fragment20, jsx as jsx62, jsxs as jsxs19 } from "react/jsx-runtime";
5983
+
5984
+ // src/textbox/templates/textbox-suffix.tsx
5985
+ import { Fragment as Fragment21, jsx as jsx63, jsxs as jsxs20 } from "react/jsx-runtime";
5986
+
5987
+ // src/multiselecttree/templates/multiselecttree-filtering.tsx
5988
+ import { Fragment as Fragment22, jsx as jsx64, jsxs as jsxs21 } from "react/jsx-runtime";
5989
+ var MultiSelectTreeFiltering = (props) => /* @__PURE__ */ jsx64(
5990
+ multiselecttree_spec_default,
5991
+ {
5992
+ opened: true,
5993
+ popup: /* @__PURE__ */ jsxs21(Fragment22, { children: [
5994
+ /* @__PURE__ */ jsx64("div", { className: "k-list-filter", children: /* @__PURE__ */ jsx64(
5995
+ Textbox,
5996
+ {
5997
+ prefix: /* @__PURE__ */ jsx64(Fragment22, { children: /* @__PURE__ */ jsx64(Icon, { icon: "search" }) })
5998
+ }
5999
+ ) }),
6000
+ /* @__PURE__ */ jsxs21("div", { className: "k-check-all", children: [
6001
+ /* @__PURE__ */ jsx64(Checkbox, {}),
6002
+ /* @__PURE__ */ jsx64("span", { className: "k-checkbox-label", children: "Check all" })
6003
+ ] }),
6004
+ /* @__PURE__ */ jsxs21(Treeview, { dir: props.dir, children: [
6005
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ jsxs21(TreeviewGroup, { children: [
6006
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Child 1", showCheckbox: true }),
6007
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Child 2", showCheckbox: true }),
6008
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Child 3", showCheckbox: true })
6009
+ ] }) }),
6010
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ jsxs21(TreeviewGroup, { children: [
6011
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Child 1", showCheckbox: true }),
6012
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Child 2", showCheckbox: true }),
6013
+ /* @__PURE__ */ jsx64(TreeviewItem, { text: "Child 3", showCheckbox: true })
6014
+ ] }) })
6015
+ ] })
6016
+ ] }),
6017
+ ...props
6018
+ }
6019
+ );
5628
6020
 
5629
6021
  // src/multiselecttree/tests/multiselecttree-opened.tsx
5630
- import { Fragment as Fragment16, jsx as jsx51, jsxs as jsxs15 } from "react/jsx-runtime";
6022
+ import { Fragment as Fragment23, jsx as jsx65, jsxs as jsxs22 } from "react/jsx-runtime";
5631
6023
  var styles = `
5632
6024
  #test-area {
5633
6025
  grid-template-columns: 160px repeat(2, 300px);
@@ -5637,74 +6029,28 @@ var styles = `
5637
6029
  position: relative;
5638
6030
  }
5639
6031
  `;
5640
- var multiselecttree_opened_default = () => /* @__PURE__ */ jsxs15(Fragment16, { children: [
5641
- /* @__PURE__ */ jsx51("style", { children: styles }),
5642
- /* @__PURE__ */ jsxs15("div", { id: "test-area", className: "k-d-grid", children: [
5643
- /* @__PURE__ */ jsx51("span", {}),
5644
- /* @__PURE__ */ jsx51("span", { children: "MultiSelectTree" }),
5645
- /* @__PURE__ */ jsx51("span", { children: "MultiSelectTree RTL" }),
5646
- /* @__PURE__ */ jsx51("div", { children: "Opened" }),
5647
- /* @__PURE__ */ jsx51("div", { children: /* @__PURE__ */ jsx51(
5648
- MultiSelectTree,
6032
+ var multiselecttree_opened_default = () => /* @__PURE__ */ jsxs22(Fragment23, { children: [
6033
+ /* @__PURE__ */ jsx65("style", { children: styles }),
6034
+ /* @__PURE__ */ jsxs22("div", { id: "test-area", className: "k-d-grid", children: [
6035
+ /* @__PURE__ */ jsx65("span", {}),
6036
+ /* @__PURE__ */ jsx65("span", { children: "MultiSelectTree" }),
6037
+ /* @__PURE__ */ jsx65("span", { children: "MultiSelectTree RTL" }),
6038
+ /* @__PURE__ */ jsx65("div", { children: "Opened" }),
6039
+ /* @__PURE__ */ jsx65("div", { children: /* @__PURE__ */ jsx65(MultiSelectTreePopup, { tags: /* @__PURE__ */ jsx65(Fragment23, { children: /* @__PURE__ */ jsx65(Chip, { text: "Furniture", actions: /* @__PURE__ */ jsx65(ChipAction, { type: "remove" }) }) }) }) }),
6040
+ /* @__PURE__ */ jsx65("div", { children: /* @__PURE__ */ jsx65(
6041
+ MultiSelectTreePopup,
5649
6042
  {
5650
- opened: true,
5651
- tags: /* @__PURE__ */ jsx51(Fragment16, { children: /* @__PURE__ */ jsx51(Chip, { text: "Furniture", actions: /* @__PURE__ */ jsx51(ChipAction, { type: "remove" }) }) }),
5652
- popup: /* @__PURE__ */ jsxs15(Fragment16, { children: [
5653
- /* @__PURE__ */ jsx51("div", { className: "k-list-filter", children: /* @__PURE__ */ jsx51(
5654
- Textbox,
5655
- {
5656
- prefix: /* @__PURE__ */ jsx51(Fragment16, { children: /* @__PURE__ */ jsx51(Icon, { icon: "search" }) })
5657
- }
5658
- ) }),
5659
- /* @__PURE__ */ jsxs15("div", { className: "k-check-all", children: [
5660
- /* @__PURE__ */ jsx51(Checkbox, {}),
5661
- /* @__PURE__ */ jsx51("span", { className: "k-checkbox-label", children: "Check all" })
5662
- ] }),
5663
- /* @__PURE__ */ jsxs15(Treeview, { children: [
5664
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ jsxs15(TreeviewGroup, { children: [
5665
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5666
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5667
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 3", showCheckbox: true })
5668
- ] }) }),
5669
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ jsxs15(TreeviewGroup, { children: [
5670
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5671
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5672
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 3", showCheckbox: true })
5673
- ] }) })
5674
- ] })
5675
- ] })
6043
+ tags: /* @__PURE__ */ jsx65(Fragment23, { children: /* @__PURE__ */ jsx65(Chip, { text: "Furniture", actions: /* @__PURE__ */ jsx65(ChipAction, { type: "remove" }) }) }),
6044
+ dir: "rtl"
5676
6045
  }
5677
6046
  ) }),
5678
- /* @__PURE__ */ jsx51("div", { children: /* @__PURE__ */ jsx51(
5679
- MultiSelectTree,
6047
+ /* @__PURE__ */ jsx65("div", { children: "Filtering" }),
6048
+ /* @__PURE__ */ jsx65("div", { children: /* @__PURE__ */ jsx65(MultiSelectTreeFiltering, { tags: /* @__PURE__ */ jsx65(Fragment23, { children: /* @__PURE__ */ jsx65(Chip, { text: "Furniture", actions: /* @__PURE__ */ jsx65(ChipAction, { type: "remove" }) }) }) }) }),
6049
+ /* @__PURE__ */ jsx65("div", { children: /* @__PURE__ */ jsx65(
6050
+ MultiSelectTreeFiltering,
5680
6051
  {
5681
- opened: true,
5682
- dir: "rtl",
5683
- tags: /* @__PURE__ */ jsx51(Fragment16, { children: /* @__PURE__ */ jsx51(Chip, { text: "Furniture", actions: /* @__PURE__ */ jsx51(ChipAction, { type: "remove" }) }) }),
5684
- popup: /* @__PURE__ */ jsxs15(Fragment16, { children: [
5685
- /* @__PURE__ */ jsx51("div", { className: "k-list-filter", children: /* @__PURE__ */ jsx51(
5686
- Textbox,
5687
- {
5688
- prefix: /* @__PURE__ */ jsx51(Fragment16, { children: /* @__PURE__ */ jsx51(Icon, { icon: "search" }) })
5689
- }
5690
- ) }),
5691
- /* @__PURE__ */ jsxs15("div", { className: "k-check-all", children: [
5692
- /* @__PURE__ */ jsx51(Checkbox, {}),
5693
- /* @__PURE__ */ jsx51("span", { className: "k-checkbox-label", children: "Check all" })
5694
- ] }),
5695
- /* @__PURE__ */ jsxs15(Treeview, { dir: "rtl", children: [
5696
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Furniture", showCheckbox: true, checked: true, children: /* @__PURE__ */ jsxs15(TreeviewGroup, { children: [
5697
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5698
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5699
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 3", showCheckbox: true })
5700
- ] }) }),
5701
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Decor", showCheckbox: true, children: /* @__PURE__ */ jsxs15(TreeviewGroup, { children: [
5702
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 1", showCheckbox: true }),
5703
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 2", showCheckbox: true }),
5704
- /* @__PURE__ */ jsx51(TreeviewItem, { text: "Child 3", showCheckbox: true })
5705
- ] }) })
5706
- ] })
5707
- ] })
6052
+ tags: /* @__PURE__ */ jsx65(Fragment23, { children: /* @__PURE__ */ jsx65(Chip, { text: "Furniture", actions: /* @__PURE__ */ jsx65(ChipAction, { type: "remove" }) }) }),
6053
+ dir: "rtl"
5708
6054
  }
5709
6055
  ) })
5710
6056
  ] })