@progress/kendo-themes-html 7.1.1-dev.0 → 7.2.0-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 (279) hide show
  1. package/dist/cjs/action-sheet/tests/action-sheet-data-table.js +2 -0
  2. package/dist/cjs/autocomplete/tests/autocomplete-prefix-suffix.js +863 -778
  3. package/dist/cjs/combobox/tests/combobox-prefix-suffix.js +863 -778
  4. package/dist/cjs/dropdowngrid/dropdowngrid.spec.js +2 -0
  5. package/dist/cjs/dropdowngrid/templates/dropdowngrid-adaptive.js +2 -0
  6. package/dist/cjs/dropdowngrid/templates/dropdowngrid-normal.js +2 -0
  7. package/dist/cjs/dropdowngrid/templates/dropdowngrid-popup.js +2 -0
  8. package/dist/cjs/dropdowngrid/templates/dropdowngrid-prefix.js +2 -0
  9. package/dist/cjs/dropdowngrid/templates/dropdowngrid-suffix.js +2 -0
  10. package/dist/cjs/dropdowngrid/tests/dropdowngrid-adaptive.js +2 -0
  11. package/dist/cjs/dropdowngrid/tests/dropdowngrid-flat.js +2 -0
  12. package/dist/cjs/dropdowngrid/tests/dropdowngrid-opened.js +2 -0
  13. package/dist/cjs/dropdowngrid/tests/dropdowngrid-outline.js +2 -0
  14. package/dist/cjs/dropdowngrid/tests/dropdowngrid-prefix-suffix.js +2 -0
  15. package/dist/cjs/dropdowngrid/tests/dropdowngrid-size-rounded.js +2 -0
  16. package/dist/cjs/dropdowngrid/tests/dropdowngrid-solid.js +2 -0
  17. package/dist/cjs/filemanager/templates/filemanager-grid-preview.js +2 -0
  18. package/dist/cjs/filemanager/templates/filemanager-grid.js +2 -0
  19. package/dist/cjs/filemanager/tests/filemanager-gridview-preview.js +763 -678
  20. package/dist/cjs/filemanager/tests/filemanager-gridview.js +2 -0
  21. package/dist/cjs/filemanager/tests/filemanager-listview-preview.js +717 -632
  22. package/dist/cjs/form/tests/form-field-dropdowns.js +862 -777
  23. package/dist/cjs/grid/grid-container.spec.js +46 -0
  24. package/dist/cjs/grid/grid-content.spec.js +46 -0
  25. package/dist/cjs/grid/grid-footer-table.spec.js +283 -0
  26. package/dist/cjs/grid/grid-footer.spec.js +46 -0
  27. package/dist/cjs/grid/grid-grouping-header.spec.js +57 -0
  28. package/dist/cjs/grid/grid-header-cell.spec.js +4446 -0
  29. package/dist/cjs/grid/grid-header-table.spec.js +283 -0
  30. package/dist/cjs/grid/grid-header.spec.js +46 -0
  31. package/dist/cjs/grid/grid-pager.spec.js +6058 -0
  32. package/dist/cjs/grid/grid-table.spec.js +283 -0
  33. package/dist/cjs/grid/grid-toolbar.spec.js +7876 -0
  34. package/dist/cjs/grid/grid.spec.js +120 -0
  35. package/dist/cjs/grid/tests/grid-adaptive-pager.js +2740 -380
  36. package/dist/cjs/grid/tests/grid-adaptive-search.js +1745 -1203
  37. package/dist/cjs/grid/tests/grid-angular.js +3787 -1267
  38. package/dist/cjs/grid/tests/grid-column-menu-angular.js +4095 -115
  39. package/dist/cjs/grid/tests/grid-column-menu-blazor.js +4095 -116
  40. package/dist/cjs/grid/tests/grid-column-reordering-actions.js +1484 -1280
  41. package/dist/cjs/grid/tests/grid-column-reordering.js +1489 -1285
  42. package/dist/cjs/grid/tests/grid-column-resizing-actions.js +2119 -1915
  43. package/dist/cjs/grid/tests/grid-editing-custom-editor.js +1107 -869
  44. package/dist/cjs/grid/tests/grid-editing-inline-angular.js +1972 -1218
  45. package/dist/cjs/grid/tests/grid-editing-inline-blazor.js +1959 -1201
  46. package/dist/cjs/grid/tests/grid-editing.js +1391 -635
  47. package/dist/cjs/grid/tests/grid-filter-menu-angular.js +4092 -100
  48. package/dist/cjs/grid/tests/grid-filter-menu-blazor.js +4089 -101
  49. package/dist/cjs/grid/tests/grid-filter-row-angular.js +1327 -576
  50. package/dist/cjs/grid/tests/grid-filter-row-blazor.js +1313 -554
  51. package/dist/cjs/grid/tests/grid-filter-row.js +1496 -59
  52. package/dist/cjs/grid/tests/grid-grouping-actions.js +1450 -1246
  53. package/dist/cjs/grid/tests/grid-grouping-blazor.js +4162 -141
  54. package/dist/cjs/grid/tests/grid-grouping-detail-template.js +4297 -288
  55. package/dist/cjs/grid/tests/grid-grouping.js +2725 -1934
  56. package/dist/cjs/grid/tests/grid-hierarchy.js +4333 -43
  57. package/dist/cjs/grid/tests/grid-locked-columns-rtl.js +4365 -207
  58. package/dist/cjs/grid/tests/grid-locked-columns.js +4563 -424
  59. package/dist/cjs/grid/tests/grid-long-titles.js +4315 -124
  60. package/dist/cjs/grid/tests/grid-multicolumn-headers.js +4407 -135
  61. package/dist/cjs/grid/tests/grid-no-records.js +8627 -48
  62. package/dist/cjs/grid/tests/grid-pager.js +3120 -550
  63. package/dist/cjs/grid/tests/grid-react-basic.js +8500 -128
  64. package/dist/cjs/grid/tests/grid-react.js +4516 -190
  65. package/dist/cjs/grid/tests/grid-row-reordering.js +1711 -1499
  66. package/dist/cjs/grid/tests/grid-rows-resizing.js +2066 -1308
  67. package/dist/cjs/grid/tests/grid-rows-states.js +8369 -105
  68. package/dist/cjs/grid/tests/grid-rtl-angular.js +3987 -1430
  69. package/dist/cjs/grid/tests/grid-rtl.js +4028 -1469
  70. package/dist/cjs/grid/tests/grid-selection-aggregates.js +3318 -742
  71. package/dist/cjs/grid/tests/grid-size-sm-comp-sm.js +2038 -1537
  72. package/dist/cjs/grid/tests/grid-size-sm.js +1447 -946
  73. package/dist/cjs/grid/tests/grid-sticky-columns-rtl.js +4118 -1505
  74. package/dist/cjs/grid/tests/grid-sticky-columns.js +4445 -177
  75. package/dist/cjs/grid/tests/grid-sticky-multicolumn-headers.js +8571 -53
  76. package/dist/cjs/grid/tests/grid-toolbar.js +1896 -1349
  77. package/dist/cjs/grid/tests/grid-virtualization.js +8968 -450
  78. package/dist/cjs/grid/tests/grid.js +4055 -1496
  79. package/dist/cjs/index.js +2442 -2148
  80. package/dist/cjs/multiselect/templates/multiselect-prefix.js +838 -753
  81. package/dist/cjs/multiselect/templates/multiselect-suffix.js +838 -753
  82. package/dist/cjs/multiselect/tests/multiselect-adaptive.js +844 -759
  83. package/dist/cjs/multiselect/tests/multiselect-flat.js +868 -783
  84. package/dist/cjs/multiselect/tests/multiselect-grouping.js +844 -759
  85. package/dist/cjs/multiselect/tests/multiselect-opened.js +846 -761
  86. package/dist/cjs/multiselect/tests/multiselect-outline.js +868 -783
  87. package/dist/cjs/multiselect/tests/multiselect-prefix-suffix.js +875 -790
  88. package/dist/cjs/multiselect/tests/multiselect-size-rounded.js +847 -762
  89. package/dist/cjs/multiselect/tests/multiselect-solid.js +868 -783
  90. package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +877 -792
  91. package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +891 -806
  92. package/dist/cjs/table/table-th.js +2 -0
  93. package/dist/cjs/table/templates/data-table-normal.js +2 -0
  94. package/dist/cjs/table/templates/table-list-virtualization.js +2 -0
  95. package/dist/cjs/table/templates/table-list.js +2 -0
  96. package/dist/cjs/table/templates/table-native.js +2 -0
  97. package/dist/cjs/table/tests/table-data-sizes.js +2 -0
  98. package/dist/cjs/table/tests/table-list-jquery.js +2 -0
  99. package/dist/cjs/table/tests/table-list-sizes.js +2 -0
  100. package/dist/cjs/table/tests/table-list-virtual.js +2 -0
  101. package/dist/cjs/table/tests/table-native-sizes.js +2 -0
  102. package/dist/cjs/table/tests/table-native-states.js +2 -0
  103. package/dist/esm/action-sheet/tests/action-sheet-data-table.js +2 -0
  104. package/dist/esm/autocomplete/tests/autocomplete-prefix-suffix.js +863 -778
  105. package/dist/esm/combobox/tests/combobox-prefix-suffix.js +863 -778
  106. package/dist/esm/dropdowngrid/dropdowngrid.spec.js +2 -0
  107. package/dist/esm/dropdowngrid/templates/dropdowngrid-adaptive.js +2 -0
  108. package/dist/esm/dropdowngrid/templates/dropdowngrid-normal.js +2 -0
  109. package/dist/esm/dropdowngrid/templates/dropdowngrid-popup.js +2 -0
  110. package/dist/esm/dropdowngrid/templates/dropdowngrid-prefix.js +2 -0
  111. package/dist/esm/dropdowngrid/templates/dropdowngrid-suffix.js +2 -0
  112. package/dist/esm/dropdowngrid/tests/dropdowngrid-adaptive.js +2 -0
  113. package/dist/esm/dropdowngrid/tests/dropdowngrid-flat.js +2 -0
  114. package/dist/esm/dropdowngrid/tests/dropdowngrid-opened.js +2 -0
  115. package/dist/esm/dropdowngrid/tests/dropdowngrid-outline.js +2 -0
  116. package/dist/esm/dropdowngrid/tests/dropdowngrid-prefix-suffix.js +2 -0
  117. package/dist/esm/dropdowngrid/tests/dropdowngrid-size-rounded.js +2 -0
  118. package/dist/esm/dropdowngrid/tests/dropdowngrid-solid.js +2 -0
  119. package/dist/esm/filemanager/templates/filemanager-grid-preview.js +2 -0
  120. package/dist/esm/filemanager/templates/filemanager-grid.js +2 -0
  121. package/dist/esm/filemanager/tests/filemanager-gridview-preview.js +763 -678
  122. package/dist/esm/filemanager/tests/filemanager-gridview.js +2 -0
  123. package/dist/esm/filemanager/tests/filemanager-listview-preview.js +717 -632
  124. package/dist/esm/form/tests/form-field-dropdowns.js +862 -777
  125. package/dist/esm/grid/grid-container.spec.js +24 -0
  126. package/dist/esm/grid/grid-content.spec.js +24 -0
  127. package/dist/esm/grid/grid-footer-table.spec.js +261 -0
  128. package/dist/esm/grid/grid-footer.spec.js +24 -0
  129. package/dist/esm/grid/grid-grouping-header.spec.js +35 -0
  130. package/dist/esm/grid/grid-header-cell.spec.js +4430 -0
  131. package/dist/esm/grid/grid-header-table.spec.js +261 -0
  132. package/dist/esm/grid/grid-header.spec.js +24 -0
  133. package/dist/esm/grid/grid-pager.spec.js +6042 -0
  134. package/dist/esm/grid/grid-table.spec.js +261 -0
  135. package/dist/esm/grid/grid-toolbar.spec.js +7860 -0
  136. package/dist/esm/grid/grid.spec.js +98 -0
  137. package/dist/esm/grid/tests/grid-adaptive-pager.js +2740 -380
  138. package/dist/esm/grid/tests/grid-adaptive-search.js +1865 -1323
  139. package/dist/esm/grid/tests/grid-angular.js +3831 -1311
  140. package/dist/esm/grid/tests/grid-column-menu-angular.js +4095 -115
  141. package/dist/esm/grid/tests/grid-column-menu-blazor.js +4095 -116
  142. package/dist/esm/grid/tests/grid-column-reordering-actions.js +2314 -2110
  143. package/dist/esm/grid/tests/grid-column-reordering.js +2320 -2116
  144. package/dist/esm/grid/tests/grid-column-resizing-actions.js +2863 -2659
  145. package/dist/esm/grid/tests/grid-editing-custom-editor.js +1107 -869
  146. package/dist/esm/grid/tests/grid-editing-inline-angular.js +1905 -1151
  147. package/dist/esm/grid/tests/grid-editing-inline-blazor.js +1914 -1156
  148. package/dist/esm/grid/tests/grid-editing.js +1391 -635
  149. package/dist/esm/grid/tests/grid-filter-menu-angular.js +4092 -100
  150. package/dist/esm/grid/tests/grid-filter-menu-blazor.js +4089 -101
  151. package/dist/esm/grid/tests/grid-filter-row-angular.js +1327 -576
  152. package/dist/esm/grid/tests/grid-filter-row-blazor.js +1313 -554
  153. package/dist/esm/grid/tests/grid-filter-row.js +1496 -59
  154. package/dist/esm/grid/tests/grid-grouping-actions.js +2280 -2076
  155. package/dist/esm/grid/tests/grid-grouping-blazor.js +4162 -141
  156. package/dist/esm/grid/tests/grid-grouping-detail-template.js +4297 -288
  157. package/dist/esm/grid/tests/grid-grouping.js +2679 -1888
  158. package/dist/esm/grid/tests/grid-hierarchy.js +4333 -43
  159. package/dist/esm/grid/tests/grid-locked-columns-rtl.js +4366 -208
  160. package/dist/esm/grid/tests/grid-locked-columns.js +4564 -425
  161. package/dist/esm/grid/tests/grid-long-titles.js +4316 -125
  162. package/dist/esm/grid/tests/grid-multicolumn-headers.js +4407 -135
  163. package/dist/esm/grid/tests/grid-no-records.js +8632 -49
  164. package/dist/esm/grid/tests/grid-pager.js +3139 -569
  165. package/dist/esm/grid/tests/grid-react-basic.js +8506 -128
  166. package/dist/esm/grid/tests/grid-react.js +4516 -190
  167. package/dist/esm/grid/tests/grid-row-reordering.js +1385 -1173
  168. package/dist/esm/grid/tests/grid-rows-resizing.js +2145 -1387
  169. package/dist/esm/grid/tests/grid-rows-states.js +8375 -105
  170. package/dist/esm/grid/tests/grid-rtl-angular.js +3974 -1417
  171. package/dist/esm/grid/tests/grid-rtl.js +4022 -1463
  172. package/dist/esm/grid/tests/grid-selection-aggregates.js +3143 -567
  173. package/dist/esm/grid/tests/grid-size-sm-comp-sm.js +2100 -1599
  174. package/dist/esm/grid/tests/grid-size-sm.js +1513 -1012
  175. package/dist/esm/grid/tests/grid-sticky-columns-rtl.js +4113 -1500
  176. package/dist/esm/grid/tests/grid-sticky-columns.js +4445 -177
  177. package/dist/esm/grid/tests/grid-sticky-multicolumn-headers.js +8576 -54
  178. package/dist/esm/grid/tests/grid-toolbar.js +1906 -1359
  179. package/dist/esm/grid/tests/grid-virtualization.js +8975 -451
  180. package/dist/esm/grid/tests/grid.js +4052 -1493
  181. package/dist/esm/index.js +2442 -2148
  182. package/dist/esm/multiselect/templates/multiselect-prefix.js +838 -753
  183. package/dist/esm/multiselect/templates/multiselect-suffix.js +838 -753
  184. package/dist/esm/multiselect/tests/multiselect-adaptive.js +844 -759
  185. package/dist/esm/multiselect/tests/multiselect-flat.js +868 -783
  186. package/dist/esm/multiselect/tests/multiselect-grouping.js +844 -759
  187. package/dist/esm/multiselect/tests/multiselect-opened.js +846 -761
  188. package/dist/esm/multiselect/tests/multiselect-outline.js +868 -783
  189. package/dist/esm/multiselect/tests/multiselect-prefix-suffix.js +875 -790
  190. package/dist/esm/multiselect/tests/multiselect-size-rounded.js +847 -762
  191. package/dist/esm/multiselect/tests/multiselect-solid.js +868 -783
  192. package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +877 -792
  193. package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +891 -806
  194. package/dist/esm/table/table-th.js +2 -0
  195. package/dist/esm/table/templates/data-table-normal.js +2 -0
  196. package/dist/esm/table/templates/table-list-virtualization.js +2 -0
  197. package/dist/esm/table/templates/table-list.js +2 -0
  198. package/dist/esm/table/templates/table-native.js +2 -0
  199. package/dist/esm/table/tests/table-data-sizes.js +2 -0
  200. package/dist/esm/table/tests/table-list-jquery.js +2 -0
  201. package/dist/esm/table/tests/table-list-sizes.js +2 -0
  202. package/dist/esm/table/tests/table-list-virtual.js +2 -0
  203. package/dist/esm/table/tests/table-native-sizes.js +2 -0
  204. package/dist/esm/table/tests/table-native-states.js +2 -0
  205. package/dist/types/grid/grid-container.spec.d.ts +1 -0
  206. package/dist/types/grid/grid-content.spec.d.ts +1 -0
  207. package/dist/types/grid/grid-footer-table.spec.d.ts +3 -0
  208. package/dist/types/grid/grid-footer.spec.d.ts +1 -0
  209. package/dist/types/grid/grid-grouping-header.spec.d.ts +5 -0
  210. package/dist/types/grid/grid-header-cell.spec.d.ts +17 -0
  211. package/dist/types/grid/grid-header-table.spec.d.ts +3 -0
  212. package/dist/types/grid/grid-header.spec.d.ts +1 -0
  213. package/dist/types/grid/grid-pager.spec.d.ts +2 -0
  214. package/dist/types/grid/grid-table.spec.d.ts +3 -0
  215. package/dist/types/grid/grid-toolbar.spec.d.ts +2 -0
  216. package/dist/types/grid/grid.spec.d.ts +28 -0
  217. package/dist/types/grid/index.d.ts +12 -0
  218. package/dist/types/index.d.ts +1 -0
  219. package/dist/types/table/table-th.d.ts +1 -0
  220. package/package.json +2 -2
  221. package/src/grid/grid-container.spec.tsx +17 -0
  222. package/src/grid/grid-content.spec.tsx +16 -0
  223. package/src/grid/grid-footer-table.spec.tsx +20 -0
  224. package/src/grid/grid-footer.spec.tsx +17 -0
  225. package/src/grid/grid-grouping-header.spec.tsx +33 -0
  226. package/src/grid/grid-header-cell.spec.tsx +104 -0
  227. package/src/grid/grid-header-table.spec.tsx +20 -0
  228. package/src/grid/grid-header.spec.tsx +19 -0
  229. package/src/grid/grid-pager.spec.tsx +19 -0
  230. package/src/grid/grid-table.spec.tsx +20 -0
  231. package/src/grid/grid-toolbar.spec.tsx +19 -0
  232. package/src/grid/grid.spec.tsx +67 -0
  233. package/src/grid/index.ts +12 -0
  234. package/src/grid/tests/grid-adaptive-pager.tsx +9 -7
  235. package/src/grid/tests/grid-adaptive-search.tsx +11 -9
  236. package/src/grid/tests/grid-angular.tsx +154 -237
  237. package/src/grid/tests/grid-column-menu-angular.tsx +150 -181
  238. package/src/grid/tests/grid-column-menu-blazor.tsx +121 -189
  239. package/src/grid/tests/grid-column-reordering-actions.tsx +60 -97
  240. package/src/grid/tests/grid-column-reordering.tsx +60 -99
  241. package/src/grid/tests/grid-column-resizing-actions.tsx +60 -97
  242. package/src/grid/tests/grid-editing-custom-editor.tsx +168 -201
  243. package/src/grid/tests/grid-editing-inline-angular.tsx +132 -140
  244. package/src/grid/tests/grid-editing-inline-blazor.tsx +97 -118
  245. package/src/grid/tests/grid-editing.tsx +133 -163
  246. package/src/grid/tests/grid-filter-menu-angular.tsx +171 -174
  247. package/src/grid/tests/grid-filter-menu-blazor.tsx +114 -171
  248. package/src/grid/tests/grid-filter-row-angular.tsx +171 -182
  249. package/src/grid/tests/grid-filter-row-blazor.tsx +116 -153
  250. package/src/grid/tests/grid-filter-row.tsx +110 -109
  251. package/src/grid/tests/grid-grouping-actions.tsx +60 -98
  252. package/src/grid/tests/grid-grouping-blazor.tsx +162 -241
  253. package/src/grid/tests/grid-grouping-detail-template.tsx +383 -375
  254. package/src/grid/tests/grid-grouping.tsx +195 -293
  255. package/src/grid/tests/grid-hierarchy.tsx +82 -93
  256. package/src/grid/tests/grid-locked-columns-rtl.tsx +224 -312
  257. package/src/grid/tests/grid-locked-columns.tsx +414 -572
  258. package/src/grid/tests/grid-long-titles.tsx +122 -210
  259. package/src/grid/tests/grid-multicolumn-headers.tsx +114 -208
  260. package/src/grid/tests/grid-no-records.tsx +60 -82
  261. package/src/grid/tests/grid-pager.tsx +144 -197
  262. package/src/grid/tests/grid-react-basic.tsx +138 -172
  263. package/src/grid/tests/grid-react.tsx +224 -235
  264. package/src/grid/tests/grid-row-reordering.tsx +69 -104
  265. package/src/grid/tests/grid-rows-resizing.tsx +130 -159
  266. package/src/grid/tests/grid-rows-states.tsx +106 -104
  267. package/src/grid/tests/grid-rtl-angular.tsx +114 -168
  268. package/src/grid/tests/grid-rtl.tsx +104 -149
  269. package/src/grid/tests/grid-selection-aggregates.tsx +96 -115
  270. package/src/grid/tests/grid-size-sm-comp-sm.tsx +239 -323
  271. package/src/grid/tests/grid-size-sm.tsx +239 -326
  272. package/src/grid/tests/grid-sticky-columns-rtl.tsx +112 -140
  273. package/src/grid/tests/grid-sticky-columns.tsx +208 -312
  274. package/src/grid/tests/grid-sticky-multicolumn-headers.tsx +52 -159
  275. package/src/grid/tests/grid-toolbar.tsx +43 -43
  276. package/src/grid/tests/grid-virtualization.tsx +614 -758
  277. package/src/grid/tests/grid.tsx +141 -196
  278. package/src/index.ts +1 -1
  279. package/src/table/table-th.tsx +3 -0
@@ -40,6 +40,22 @@ var optionClassNames = (componentClassName, props) => {
40
40
  }
41
41
  );
42
42
  };
43
+ var stateClassNames = (_componentClassName, props) => {
44
+ return classNames({
45
+ "k-valid": props.valid,
46
+ "k-invalid": props.invalid,
47
+ "k-hover": props.hover,
48
+ "k-focus": props.focus,
49
+ "k-checked": props.checked,
50
+ "k-active": props.active,
51
+ "k-selected": props.selected,
52
+ "k-disabled": props.disabled,
53
+ "k-indeterminate": props.indeterminate && !props.checked,
54
+ "k-loading": props.loading,
55
+ "k-empty": props.empty,
56
+ "k-readonly": props.readonly
57
+ });
58
+ };
43
59
 
44
60
  // src/misc/theme.ts
45
61
  var Size = {
@@ -51,6 +67,19 @@ var Size = {
51
67
  "xxlarge": "xxlarge",
52
68
  "xxxlarge": "xxxlarge"
53
69
  };
70
+ var Roundness = {
71
+ "small": "small",
72
+ "medium": "medium",
73
+ "large": "large",
74
+ "full": "full"
75
+ };
76
+ var FillMode = {
77
+ "solid": "solid",
78
+ "flat": "flat",
79
+ "outline": "outline",
80
+ "clear": "clear",
81
+ "link": "link"
82
+ };
54
83
  var ThemeColor = {
55
84
  "inherit": "inherit",
56
85
  "base": "base",
@@ -65,12 +94,350 @@ var ThemeColor = {
65
94
  "light": "light",
66
95
  "inverse": "inverse"
67
96
  };
97
+ var States = {
98
+ "open": "open",
99
+ "hover": "hover",
100
+ "focus": "focus",
101
+ "active": "active",
102
+ "selected": "selected",
103
+ "disabled": "disabled",
104
+ "valid": "valid",
105
+ "invalid": "invalid",
106
+ "loading": "loading",
107
+ "required": "required",
108
+ "empty": "empty",
109
+ "indeterminate": "indeterminate",
110
+ "checked": "checked",
111
+ "readonly": "readonly"
112
+ };
68
113
 
69
- // src/icon/font-icon.spec.tsx
70
- import { Fragment, jsx } from "react/jsx-runtime";
71
- var FONTICON_CLASSNAME = `k-icon k-font-icon`;
114
+ // src/grid/grid.spec.tsx
115
+ import { jsx, jsxs } from "react/jsx-runtime";
116
+ var GRID_CLASSNAME = "k-grid";
72
117
  var states = [];
73
118
  var options = {
119
+ size: [Size.small, Size.medium, Size.large]
120
+ };
121
+ var defaultProps = {
122
+ size: Size.medium,
123
+ pagerPosition: "bottom"
124
+ };
125
+ var Grid = (props) => {
126
+ const {
127
+ size = defaultProps.size,
128
+ toolbar,
129
+ pager,
130
+ pagerPosition,
131
+ groupingHeader,
132
+ _renderAriaRoot,
133
+ ...other
134
+ } = props;
135
+ return /* @__PURE__ */ jsxs(
136
+ "div",
137
+ {
138
+ ...other,
139
+ className: classNames(
140
+ props.className,
141
+ GRID_CLASSNAME,
142
+ optionClassNames(GRID_CLASSNAME, { size })
143
+ ),
144
+ children: [
145
+ toolbar,
146
+ pagerPosition === "top" && pager,
147
+ groupingHeader,
148
+ props.children && _renderAriaRoot ? /* @__PURE__ */ jsx("div", { className: "k-grid-aria-root", children: props.children }) : props.children,
149
+ pagerPosition === "bottom" && pager
150
+ ]
151
+ }
152
+ );
153
+ };
154
+ Grid.states = states;
155
+ Grid.options = options;
156
+ Grid.className = GRID_CLASSNAME;
157
+ Grid.defaultProps = defaultProps;
158
+
159
+ // src/grid/grid-header.spec.tsx
160
+ import { jsx as jsx2 } from "react/jsx-runtime";
161
+ var className = `k-grid-header`;
162
+ var GridHeader = (props) => /* @__PURE__ */ jsx2(
163
+ "div",
164
+ {
165
+ ...props,
166
+ className: classNames(
167
+ props.className,
168
+ className
169
+ ),
170
+ children: props.children
171
+ }
172
+ );
173
+
174
+ // src/grid/grid-grouping-header.spec.tsx
175
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
176
+
177
+ // src/table/data-table.spec.tsx
178
+ import { jsx as jsx4 } from "react/jsx-runtime";
179
+ var DATATABLE_CLASSNAME = `k-data-table`;
180
+ var states2 = [];
181
+ var options2 = {
182
+ size: [Size.small, Size.medium, Size.large]
183
+ };
184
+ var defaultProps2 = {
185
+ size: Size.medium
186
+ };
187
+ var DataTable = (props) => {
188
+ const {
189
+ size = defaultProps2.size,
190
+ ...other
191
+ } = props;
192
+ return /* @__PURE__ */ jsx4(
193
+ "div",
194
+ {
195
+ ...other,
196
+ className: classNames(
197
+ props.className,
198
+ DATATABLE_CLASSNAME,
199
+ optionClassNames("k-table", {
200
+ size
201
+ })
202
+ ),
203
+ children: props.children
204
+ }
205
+ );
206
+ };
207
+ DataTable.states = states2;
208
+ DataTable.options = options2;
209
+ DataTable.className = DATATABLE_CLASSNAME;
210
+ DataTable.defaultProps = defaultProps2;
211
+
212
+ // src/table/table-header.tsx
213
+ import { jsx as jsx5 } from "react/jsx-runtime";
214
+
215
+ // src/table/table-body.tsx
216
+ import { jsx as jsx6 } from "react/jsx-runtime";
217
+
218
+ // src/table/table-footer.tsx
219
+ import { jsx as jsx7 } from "react/jsx-runtime";
220
+
221
+ // src/table/table.spec.tsx
222
+ import { jsx as jsx8 } from "react/jsx-runtime";
223
+ var TABLE_CLASSNAME = `k-table`;
224
+ var states3 = [];
225
+ var options3 = {
226
+ size: [Size.small, Size.medium, Size.large]
227
+ };
228
+ var defaultProps3 = {};
229
+ var Table = (props) => {
230
+ const {
231
+ size,
232
+ ...other
233
+ } = props;
234
+ return /* @__PURE__ */ jsx8(
235
+ "table",
236
+ {
237
+ ...other,
238
+ className: classNames(
239
+ props.className,
240
+ TABLE_CLASSNAME,
241
+ optionClassNames(TABLE_CLASSNAME, {
242
+ size
243
+ })
244
+ ),
245
+ children: props.children
246
+ }
247
+ );
248
+ };
249
+ Table.states = states3;
250
+ Table.options = options3;
251
+ Table.className = TABLE_CLASSNAME;
252
+ Table.defaultProps = defaultProps3;
253
+
254
+ // src/table/table-list.spec.tsx
255
+ import { jsx as jsx9 } from "react/jsx-runtime";
256
+ var TABLELIST_CLASSNAME = `k-table-list`;
257
+ var states4 = [];
258
+ var options4 = {
259
+ size: [Size.small, Size.medium, Size.large]
260
+ };
261
+ var defaultProps4 = {};
262
+ var TableList = (props) => {
263
+ const {
264
+ size,
265
+ virtualization,
266
+ ...other
267
+ } = props;
268
+ return /* @__PURE__ */ jsx9(
269
+ "ul",
270
+ {
271
+ ...other,
272
+ className: classNames(
273
+ props.className,
274
+ "k-table",
275
+ TABLELIST_CLASSNAME,
276
+ optionClassNames(TABLELIST_CLASSNAME, {
277
+ size
278
+ }),
279
+ {
280
+ "k-virtual-table": virtualization
281
+ }
282
+ ),
283
+ children: props.children
284
+ }
285
+ );
286
+ };
287
+ TableList.states = states4;
288
+ TableList.options = options4;
289
+ TableList.className = TABLELIST_CLASSNAME;
290
+ TableList.defaultProps = defaultProps4;
291
+
292
+ // src/table/table-thead.tsx
293
+ import { jsx as jsx10 } from "react/jsx-runtime";
294
+ var className2 = `k-table-thead`;
295
+ var TableThead = (props) => /* @__PURE__ */ jsx10(
296
+ "thead",
297
+ {
298
+ className: classNames(
299
+ props.className,
300
+ className2
301
+ ),
302
+ children: props.children
303
+ }
304
+ );
305
+
306
+ // src/table/table-tbody.tsx
307
+ import { jsx as jsx11 } from "react/jsx-runtime";
308
+
309
+ // src/table/table-tfoot.tsx
310
+ import { jsx as jsx12 } from "react/jsx-runtime";
311
+
312
+ // src/table/table-row.tsx
313
+ import { jsx as jsx13 } from "react/jsx-runtime";
314
+ var TABLEROW_CLASSNAME = `k-table-row`;
315
+ var states5 = [
316
+ States.hover,
317
+ States.focus,
318
+ States.selected,
319
+ States.disabled
320
+ ];
321
+ var TableRow = (props) => {
322
+ const {
323
+ hover,
324
+ focus,
325
+ selected,
326
+ disabled,
327
+ alt,
328
+ ...other
329
+ } = props;
330
+ return /* @__PURE__ */ jsx13(
331
+ "tr",
332
+ {
333
+ ...other,
334
+ className: classNames(
335
+ props.className,
336
+ TABLEROW_CLASSNAME,
337
+ {
338
+ ["k-table-alt-row"]: alt
339
+ },
340
+ stateClassNames(TABLEROW_CLASSNAME, {
341
+ hover,
342
+ focus,
343
+ disabled,
344
+ selected
345
+ })
346
+ ),
347
+ children: props.children
348
+ }
349
+ );
350
+ };
351
+
352
+ // src/table/table-list-row.tsx
353
+ import { jsx as jsx14 } from "react/jsx-runtime";
354
+ var states6 = [
355
+ States.hover,
356
+ States.focus,
357
+ States.selected,
358
+ States.disabled
359
+ ];
360
+
361
+ // src/table/table-th.tsx
362
+ import { jsx as jsx15 } from "react/jsx-runtime";
363
+ var className3 = `k-table-th`;
364
+ var TableTh = (props) => {
365
+ const {
366
+ text,
367
+ colspan,
368
+ rowspan,
369
+ ...other
370
+ } = props;
371
+ const textOrChildren = text ? text : props.children;
372
+ return /* @__PURE__ */ jsx15(
373
+ "th",
374
+ {
375
+ colSpan: colspan,
376
+ rowSpan: rowspan,
377
+ ...other,
378
+ className: classNames(
379
+ props.className,
380
+ className3
381
+ ),
382
+ children: textOrChildren
383
+ }
384
+ );
385
+ };
386
+
387
+ // src/table/table-list-th.tsx
388
+ import { jsx as jsx16 } from "react/jsx-runtime";
389
+
390
+ // src/table/table-td.tsx
391
+ import { jsx as jsx17 } from "react/jsx-runtime";
392
+
393
+ // src/table/table-list-td.tsx
394
+ import { jsx as jsx18 } from "react/jsx-runtime";
395
+
396
+ // src/table/table-group-header.tsx
397
+ import { jsx as jsx19 } from "react/jsx-runtime";
398
+
399
+ // src/table/table-group-sticky-header.tsx
400
+ import { jsx as jsx20 } from "react/jsx-runtime";
401
+
402
+ // src/table/table-group-row.tsx
403
+ import { jsx as jsx21 } from "react/jsx-runtime";
404
+
405
+ // src/table/table-list-group-row.tsx
406
+ import { jsx as jsx22 } from "react/jsx-runtime";
407
+
408
+ // src/table/templates/table-list.tsx
409
+ import { jsx as jsx23, jsxs as jsxs3 } from "react/jsx-runtime";
410
+
411
+ // src/table/templates/table-list-virtualization.tsx
412
+ import { jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
413
+
414
+ // src/table/templates/data-table-normal.tsx
415
+ import { jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
416
+
417
+ // src/table/templates/table-native.tsx
418
+ import { jsx as jsx26, jsxs as jsxs6 } from "react/jsx-runtime";
419
+
420
+ // src/grid/grid-header-table.spec.tsx
421
+ import { jsx as jsx27 } from "react/jsx-runtime";
422
+ var GRIDHEADERTABLE_CLASSNAME = `k-grid-header-table`;
423
+ var GridHeaderTable = (props) => /* @__PURE__ */ jsx27(
424
+ Table,
425
+ {
426
+ size: "medium",
427
+ ...props,
428
+ className: classNames(
429
+ props.className,
430
+ GRIDHEADERTABLE_CLASSNAME
431
+ ),
432
+ children: props.children
433
+ }
434
+ );
435
+
436
+ // src/icon/font-icon.spec.tsx
437
+ import { Fragment, jsx as jsx28 } from "react/jsx-runtime";
438
+ var FONTICON_CLASSNAME = `k-icon k-font-icon`;
439
+ var states7 = [];
440
+ var options5 = {
74
441
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
75
442
  themeColor: [
76
443
  ThemeColor.base,
@@ -85,7 +452,7 @@ var options = {
85
452
  ThemeColor.dark
86
453
  ]
87
454
  };
88
- var defaultProps = {};
455
+ var defaultProps5 = {};
89
456
  var FontIcon = (props) => {
90
457
  const {
91
458
  size,
@@ -96,9 +463,9 @@ var FontIcon = (props) => {
96
463
  ...other
97
464
  } = props;
98
465
  if (!icon) {
99
- return /* @__PURE__ */ jsx(Fragment, {});
466
+ return /* @__PURE__ */ jsx28(Fragment, {});
100
467
  }
101
- return /* @__PURE__ */ jsx(
468
+ return /* @__PURE__ */ jsx28(
102
469
  "span",
103
470
  {
104
471
  ...other,
@@ -119,17 +486,17 @@ var FontIcon = (props) => {
119
486
  }
120
487
  );
121
488
  };
122
- FontIcon.states = states;
123
- FontIcon.options = options;
489
+ FontIcon.states = states7;
490
+ FontIcon.options = options5;
124
491
  FontIcon.className = FONTICON_CLASSNAME;
125
- FontIcon.defaultProps = defaultProps;
492
+ FontIcon.defaultProps = defaultProps5;
126
493
  var font_icon_spec_default = FontIcon;
127
494
 
128
495
  // src/icon/svg-icon.spec.tsx
129
- import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
496
+ import { Fragment as Fragment2, jsx as jsx29 } from "react/jsx-runtime";
130
497
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
131
- var states2 = [];
132
- var options2 = {
498
+ var states8 = [];
499
+ var options6 = {
133
500
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
134
501
  themeColor: [
135
502
  ThemeColor.base,
@@ -144,7 +511,7 @@ var options2 = {
144
511
  ThemeColor.dark
145
512
  ]
146
513
  };
147
- var defaultProps2 = {
514
+ var defaultProps6 = {
148
515
  viewBox: "0 0 24 24"
149
516
  };
150
517
  var SvgIcon = (props) => {
@@ -153,15 +520,15 @@ var SvgIcon = (props) => {
153
520
  themeColor,
154
521
  rotate,
155
522
  flip,
156
- viewBox = defaultProps2.viewBox,
523
+ viewBox = defaultProps6.viewBox,
157
524
  icon,
158
525
  ...other
159
526
  } = props;
160
527
  if (!icon) {
161
- return /* @__PURE__ */ jsx2(Fragment2, {});
528
+ return /* @__PURE__ */ jsx29(Fragment2, {});
162
529
  }
163
530
  if (icon === "none") {
164
- /* @__PURE__ */ jsx2(
531
+ /* @__PURE__ */ jsx29(
165
532
  "span",
166
533
  {
167
534
  ...other,
@@ -174,7 +541,7 @@ var SvgIcon = (props) => {
174
541
  );
175
542
  }
176
543
  const name = typeof icon === "object" && icon.name && icon.name;
177
- return /* @__PURE__ */ jsx2(
544
+ return /* @__PURE__ */ jsx29(
178
545
  "span",
179
546
  {
180
547
  ...other,
@@ -192,7 +559,7 @@ var SvgIcon = (props) => {
192
559
  "k-flip-v": flip === "v" || flip === "both"
193
560
  }
194
561
  ),
195
- children: /* @__PURE__ */ jsx2(
562
+ children: /* @__PURE__ */ jsx29(
196
563
  "svg",
197
564
  {
198
565
  "aria-hidden": true,
@@ -206,10 +573,10 @@ var SvgIcon = (props) => {
206
573
  }
207
574
  );
208
575
  };
209
- SvgIcon.states = states2;
210
- SvgIcon.options = options2;
576
+ SvgIcon.states = states8;
577
+ SvgIcon.options = options6;
211
578
  SvgIcon.className = SVGICON_CLASSNAME;
212
- SvgIcon.defaultProps = defaultProps2;
579
+ SvgIcon.defaultProps = defaultProps6;
213
580
  var svg_icon_spec_default = SvgIcon;
214
581
 
215
582
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4244,13 +4611,13 @@ var chartChoroplethIcon = {
4244
4611
  };
4245
4612
 
4246
4613
  // src/icon/icon.spec.tsx
4247
- import { Fragment as Fragment3, jsx as jsx3 } from "react/jsx-runtime";
4614
+ import { Fragment as Fragment3, jsx as jsx30 } from "react/jsx-runtime";
4248
4615
  var snakeToCamel = (str) => str.toLowerCase().replace(
4249
4616
  /([-_][a-z])/g,
4250
4617
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4251
4618
  );
4252
- var states3 = [];
4253
- var options3 = {
4619
+ var states9 = [];
4620
+ var options7 = {
4254
4621
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4255
4622
  themeColor: [
4256
4623
  ThemeColor.base,
@@ -4265,7 +4632,7 @@ var options3 = {
4265
4632
  ThemeColor.dark
4266
4633
  ]
4267
4634
  };
4268
- var defaultProps3 = {
4635
+ var defaultProps7 = {
4269
4636
  viewBox: "0 0 24 24",
4270
4637
  type: "svg"
4271
4638
  };
@@ -4274,124 +4641,3948 @@ var Icon = (props) => {
4274
4641
  size,
4275
4642
  themeColor,
4276
4643
  icon,
4277
- type = defaultProps3.type,
4644
+ type = defaultProps7.type,
4278
4645
  rotate,
4279
4646
  flip,
4280
- viewBox = defaultProps3.viewBox,
4647
+ viewBox = defaultProps7.viewBox,
4281
4648
  ...other
4282
4649
  } = props;
4283
4650
  if (!icon) {
4284
- return /* @__PURE__ */ jsx3(Fragment3, {});
4651
+ return /* @__PURE__ */ jsx30(Fragment3, {});
4285
4652
  }
4286
4653
  if (type === "svg") {
4287
4654
  if (icon === "none") {
4288
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon, size });
4655
+ return /* @__PURE__ */ jsx30(svg_icon_spec_default, { ...other, icon, size });
4289
4656
  }
4290
4657
  const iconSVG = snakeToCamel(`${icon}-icon`);
4291
4658
  if (!index_es_exports[iconSVG]) {
4292
- return /* @__PURE__ */ jsx3(Fragment3, {});
4659
+ return /* @__PURE__ */ jsx30(Fragment3, {});
4293
4660
  }
4294
- return /* @__PURE__ */ jsx3(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4661
+ return /* @__PURE__ */ jsx30(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4295
4662
  }
4296
- return /* @__PURE__ */ jsx3(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4663
+ return /* @__PURE__ */ jsx30(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4297
4664
  };
4298
- Icon.states = states3;
4299
- Icon.options = options3;
4300
- Icon.defaultProps = defaultProps3;
4665
+ Icon.states = states9;
4666
+ Icon.options = options7;
4667
+ Icon.defaultProps = defaultProps7;
4301
4668
 
4302
- // src/grid/tests/grid-long-titles.tsx
4303
- import { Fragment as Fragment4, jsx as jsx4, jsxs } from "react/jsx-runtime";
4304
- var styles = `
4305
- .section {
4306
- max-width: 400px;
4669
+ // src/grid/grid-header-cell.spec.tsx
4670
+ import { jsx as jsx31, jsxs as jsxs7 } from "react/jsx-runtime";
4671
+ var className4 = `k-header`;
4672
+ var states10 = [
4673
+ States.hover,
4674
+ States.focus,
4675
+ States.active
4676
+ ];
4677
+ var defaultProps8 = {
4678
+ sortIcon: "sort-asc-small"
4679
+ };
4680
+ var GridHeaderCell = (props) => {
4681
+ const {
4682
+ menu,
4683
+ sortable,
4684
+ sticky,
4685
+ resizable,
4686
+ columnTitle,
4687
+ hover,
4688
+ focus,
4689
+ active,
4690
+ sortIcon = defaultProps8.sortIcon,
4691
+ sortOrder,
4692
+ ...others
4693
+ } = props;
4694
+ return /* @__PURE__ */ jsxs7(
4695
+ TableTh,
4696
+ {
4697
+ ...others,
4698
+ className: classNames(
4699
+ props.className,
4700
+ className4,
4701
+ {
4702
+ [`k-filterable`]: menu === "filter",
4703
+ [`k-sorted`]: sortable,
4704
+ [`k-grid-header-sticky`]: sticky,
4705
+ [`k-touch-action-none`]: resizable
4706
+ },
4707
+ stateClassNames(className4, {
4708
+ hover,
4709
+ focus,
4710
+ active
4711
+ })
4712
+ ),
4713
+ children: [
4714
+ columnTitle && /* @__PURE__ */ jsxs7("span", { className: "k-cell-inner", children: [
4715
+ /* @__PURE__ */ jsxs7("span", { className: "k-link", children: [
4716
+ /* @__PURE__ */ jsx31("span", { className: "k-column-title", children: columnTitle }),
4717
+ sortable && /* @__PURE__ */ jsx31("span", { className: "k-sort-icon", children: /* @__PURE__ */ jsx31(Icon, { icon: sortIcon }) }),
4718
+ sortOrder && /* @__PURE__ */ jsx31("span", { className: "k-sort-order", children: sortOrder })
4719
+ ] }),
4720
+ menu && /* @__PURE__ */ jsx31("a", { href: "#", className: classNames(
4721
+ "k-grid-header-menu",
4722
+ {
4723
+ [`k-active`]: active,
4724
+ [`k-grid-filter-menu`]: menu === "filter",
4725
+ [`k-grid-column-menu`]: menu === "column"
4726
+ }
4727
+ ), children: /* @__PURE__ */ jsx31(Icon, { icon: menu === "filter" ? "filter" : "more-vertical" }) })
4728
+ ] }),
4729
+ props.children,
4730
+ resizable && /* @__PURE__ */ jsx31("span", { className: "k-column-resizer k-touch-action-none" })
4731
+ ]
4307
4732
  }
4733
+ );
4734
+ };
4308
4735
 
4309
- .sections-wrapper > .section {
4310
- display: inline-block;
4736
+ // src/grid/grid-container.spec.tsx
4737
+ import { jsx as jsx32 } from "react/jsx-runtime";
4738
+
4739
+ // src/grid/grid-content.spec.tsx
4740
+ import { jsx as jsx33 } from "react/jsx-runtime";
4741
+
4742
+ // src/grid/grid-table.spec.tsx
4743
+ import { jsx as jsx34 } from "react/jsx-runtime";
4744
+
4745
+ // src/grid/grid-footer.spec.tsx
4746
+ import { jsx as jsx35 } from "react/jsx-runtime";
4747
+
4748
+ // src/grid/grid-footer-table.spec.tsx
4749
+ import { jsx as jsx36 } from "react/jsx-runtime";
4750
+
4751
+ // src/button/button.spec.tsx
4752
+ import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs8 } from "react/jsx-runtime";
4753
+ var BUTTON_CLASSNAME = `k-button`;
4754
+ var states11 = [
4755
+ States.hover,
4756
+ States.focus,
4757
+ States.active,
4758
+ States.selected,
4759
+ States.disabled
4760
+ ];
4761
+ var options8 = {
4762
+ size: [Size.small, Size.medium, Size.large],
4763
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4764
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4765
+ themeColor: [
4766
+ ThemeColor.base,
4767
+ ThemeColor.primary,
4768
+ ThemeColor.secondary,
4769
+ ThemeColor.tertiary,
4770
+ ThemeColor.success,
4771
+ ThemeColor.warning,
4772
+ ThemeColor.error,
4773
+ ThemeColor.info,
4774
+ ThemeColor.light,
4775
+ ThemeColor.dark,
4776
+ ThemeColor.inverse
4777
+ ]
4778
+ };
4779
+ var defaultProps9 = {
4780
+ size: Size.medium,
4781
+ rounded: Roundness.medium,
4782
+ fillMode: FillMode.solid,
4783
+ themeColor: ThemeColor.base,
4784
+ showArrow: false,
4785
+ arrowIconName: "caret-alt-down"
4786
+ };
4787
+ var Button = (props) => {
4788
+ const {
4789
+ size = defaultProps9.size,
4790
+ rounded = defaultProps9.rounded,
4791
+ fillMode = defaultProps9.fillMode,
4792
+ themeColor = defaultProps9.themeColor,
4793
+ hover,
4794
+ focus,
4795
+ active,
4796
+ selected,
4797
+ disabled,
4798
+ icon,
4799
+ text,
4800
+ iconClassName,
4801
+ showArrow = defaultProps9.showArrow,
4802
+ arrowIconName = defaultProps9.arrowIconName,
4803
+ ...other
4804
+ } = props;
4805
+ const hasIcon = icon !== void 0;
4806
+ const hasChildren = props.children !== void 0;
4807
+ return /* @__PURE__ */ jsxs8(
4808
+ "button",
4809
+ {
4810
+ ...other,
4811
+ className: classNames(
4812
+ props.className,
4813
+ BUTTON_CLASSNAME,
4814
+ optionClassNames(BUTTON_CLASSNAME, {
4815
+ size,
4816
+ rounded,
4817
+ fillMode,
4818
+ themeColor
4819
+ }),
4820
+ stateClassNames(BUTTON_CLASSNAME, {
4821
+ hover,
4822
+ focus,
4823
+ active,
4824
+ disabled,
4825
+ selected
4826
+ }),
4827
+ {
4828
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4829
+ }
4830
+ ),
4831
+ children: [
4832
+ icon && /* @__PURE__ */ jsx37(
4833
+ Icon,
4834
+ {
4835
+ className: classNames(iconClassName, "k-button-icon"),
4836
+ icon
4837
+ }
4838
+ ),
4839
+ text ? /* @__PURE__ */ jsxs8(Fragment4, { children: [
4840
+ text && /* @__PURE__ */ jsx37("span", { className: "k-button-text", children: text }),
4841
+ props.children
4842
+ ] }) : props.children && /* @__PURE__ */ jsx37("span", { className: "k-button-text", children: props.children }),
4843
+ showArrow && /* @__PURE__ */ jsx37("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx37(Icon, { icon: arrowIconName }) })
4844
+ ]
4311
4845
  }
4312
- `;
4313
- var grid_long_titles_default = () => /* @__PURE__ */ jsxs(Fragment4, { children: [
4314
- /* @__PURE__ */ jsx4("style", { children: styles }),
4315
- /* @__PURE__ */ jsxs("div", { id: "test-area", children: [
4316
- /* @__PURE__ */ jsxs("div", { className: "sections-wrapper", children: [
4317
- /* @__PURE__ */ jsx4("div", { className: "section", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4318
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4319
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4320
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Active Column Menu \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4321
- /* @__PURE__ */ jsx4("a", { className: "k-grid-header-menu k-grid-column-menu k-active", href: "#", children: /* @__PURE__ */ jsx4(Icon, { icon: "more-vertical" }) })
4322
- ] }) }) }) })
4323
- ] }) }) }) }) }),
4324
- /* @__PURE__ */ jsx4("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4325
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4326
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4327
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Column Menu" }) }),
4328
- /* @__PURE__ */ jsx4("a", { className: "k-grid-header-menu k-grid-column-menu", href: "#", children: /* @__PURE__ */ jsx4(Icon, { icon: "more-vertical" }) })
4329
- ] }) }) }) })
4330
- ] }) }) }) }) })
4331
- ] }),
4332
- /* @__PURE__ */ jsxs("div", { className: "sections-wrapper", children: [
4333
- /* @__PURE__ */ jsx4("div", { className: "section", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4334
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4335
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4336
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Active Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4337
- /* @__PURE__ */ jsx4("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu k-active", children: /* @__PURE__ */ jsx4(Icon, { icon: "filter" }) })
4338
- ] }) }) }) })
4339
- ] }) }) }) }) }),
4340
- /* @__PURE__ */ jsx4("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4341
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4342
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4343
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Filterable" }) }),
4344
- /* @__PURE__ */ jsx4("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ jsx4(Icon, { icon: "filter" }) })
4345
- ] }) }) }) })
4346
- ] }) }) }) }) })
4347
- ] }),
4348
- /* @__PURE__ */ jsxs("div", { className: "sections-wrapper", children: [
4349
- /* @__PURE__ */ jsx4("div", { className: "section", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4350
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4351
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4352
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Sortable Column Menu \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4353
- /* @__PURE__ */ jsx4("a", { className: "k-grid-header-menu k-grid-column-menu", href: "#", children: /* @__PURE__ */ jsx4(Icon, { icon: "more-vertical" }) })
4354
- ] }) }) }) })
4355
- ] }) }) }) }) }),
4356
- /* @__PURE__ */ jsx4("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4357
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4358
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4359
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Column Menu" }) }),
4360
- /* @__PURE__ */ jsx4("a", { className: "k-grid-header-menu k-grid-column-menu", href: "#", children: /* @__PURE__ */ jsx4(Icon, { icon: "more-vertical" }) })
4361
- ] }) }) }) })
4362
- ] }) }) }) }) })
4363
- ] }),
4364
- /* @__PURE__ */ jsxs("div", { className: "sections-wrapper", children: [
4365
- /* @__PURE__ */ jsx4("div", { className: "section", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4366
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4367
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4368
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Sortable Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4369
- /* @__PURE__ */ jsx4("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ jsx4(Icon, { icon: "filter" }) })
4370
- ] }) }) }) })
4371
- ] }) }) }) }) }),
4372
- /* @__PURE__ */ jsx4("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx4("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4373
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4374
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4375
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Filterable" }) }),
4376
- /* @__PURE__ */ jsx4("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ jsx4(Icon, { icon: "filter" }) })
4377
- ] }) }) }) })
4378
- ] }) }) }) }) })
4379
- ] }),
4380
- /* @__PURE__ */ jsxs("div", { className: "sections-wrapper", children: [
4381
- /* @__PURE__ */ jsx4("div", { className: "section", children: /* @__PURE__ */ jsx4("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-aria-root", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4382
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4383
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { className: "k-table-th k-filterable k-header", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4384
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Angular Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4385
- /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ jsx4(Icon, { icon: "filter" }) }) })
4386
- ] }) }) }) })
4387
- ] }) }) }) }) }) }),
4388
- /* @__PURE__ */ jsx4("div", { className: "section", children: /* @__PURE__ */ jsx4("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", dir: "rtl", style: { height: "60px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-aria-root", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header", children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4389
- /* @__PURE__ */ jsx4("colgroup", { children: /* @__PURE__ */ jsx4("col", {}) }),
4390
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsx4("tr", { className: "k-table-row", children: /* @__PURE__ */ jsx4("th", { className: "k-table-th k-filterable k-header", children: /* @__PURE__ */ jsxs("span", { className: "k-cell-inner", children: [
4391
- /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Angular Filterable" }) }),
4392
- /* @__PURE__ */ jsx4("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ jsx4(Icon, { icon: "filter" }) })
4393
- ] }) }) }) })
4394
- ] }) }) }) }) }) })
4846
+ );
4847
+ };
4848
+ Button.states = states11;
4849
+ Button.options = options8;
4850
+ Button.className = BUTTON_CLASSNAME;
4851
+ Button.defaultProps = defaultProps9;
4852
+
4853
+ // src/button/templates/icon-button.tsx
4854
+ import { jsx as jsx38 } from "react/jsx-runtime";
4855
+
4856
+ // src/button/templates/icon-text-button.tsx
4857
+ import { jsx as jsx39 } from "react/jsx-runtime";
4858
+
4859
+ // src/button/templates/text-button.tsx
4860
+ import { jsx as jsx40 } from "react/jsx-runtime";
4861
+
4862
+ // src/input/input.spec.tsx
4863
+ import { jsx as jsx41 } from "react/jsx-runtime";
4864
+ var INPUT_CLASSNAME = `k-input`;
4865
+ var states12 = [
4866
+ States.hover,
4867
+ States.focus,
4868
+ States.valid,
4869
+ States.invalid,
4870
+ States.required,
4871
+ States.disabled,
4872
+ States.loading,
4873
+ States.readonly
4874
+ ];
4875
+ var options9 = {
4876
+ size: [Size.small, Size.medium, Size.large],
4877
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4878
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4879
+ };
4880
+ var defaultProps10 = {
4881
+ size: Size.medium,
4882
+ rounded: Size.medium,
4883
+ fillMode: FillMode.solid
4884
+ };
4885
+ var Input = (props) => {
4886
+ const {
4887
+ hover,
4888
+ focus,
4889
+ disabled,
4890
+ invalid,
4891
+ valid,
4892
+ loading,
4893
+ readonly,
4894
+ size = defaultProps10.size,
4895
+ rounded = defaultProps10.rounded,
4896
+ fillMode = defaultProps10.fillMode,
4897
+ ...other
4898
+ } = props;
4899
+ return /* @__PURE__ */ jsx41(
4900
+ "span",
4901
+ {
4902
+ ...other,
4903
+ className: classNames(
4904
+ props.className,
4905
+ INPUT_CLASSNAME,
4906
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4907
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4908
+ )
4909
+ }
4910
+ );
4911
+ };
4912
+ Input.states = states12;
4913
+ Input.options = options9;
4914
+ Input.className = INPUT_CLASSNAME;
4915
+ Input.defaultProps = defaultProps10;
4916
+
4917
+ // src/input/picker.spec.tsx
4918
+ import { jsx as jsx42 } from "react/jsx-runtime";
4919
+ var PICKER_CLASSNAME = `k-picker`;
4920
+ var pickerStates = [
4921
+ States.hover,
4922
+ States.focus,
4923
+ States.valid,
4924
+ States.invalid,
4925
+ States.required,
4926
+ States.disabled,
4927
+ States.loading,
4928
+ States.readonly
4929
+ ];
4930
+ var pickerOptions = {
4931
+ size: [Size.small, Size.medium, Size.large],
4932
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4933
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4934
+ };
4935
+ var defaultProps11 = {
4936
+ size: Size.medium,
4937
+ rounded: Roundness.medium,
4938
+ fillMode: FillMode.solid
4939
+ };
4940
+ var Picker = (props) => {
4941
+ const {
4942
+ hover,
4943
+ focus,
4944
+ disabled,
4945
+ invalid,
4946
+ valid,
4947
+ loading,
4948
+ readonly,
4949
+ size = defaultProps11.size,
4950
+ rounded = defaultProps11.rounded,
4951
+ fillMode = defaultProps11.fillMode,
4952
+ ...other
4953
+ } = props;
4954
+ return /* @__PURE__ */ jsx42(
4955
+ "span",
4956
+ {
4957
+ ...other,
4958
+ className: classNames(
4959
+ props.className,
4960
+ PICKER_CLASSNAME,
4961
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4962
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4963
+ ),
4964
+ children: props.children
4965
+ }
4966
+ );
4967
+ };
4968
+ Picker.states = pickerStates;
4969
+ Picker.options = pickerOptions;
4970
+ Picker.className = PICKER_CLASSNAME;
4971
+ Picker.defaultProps = defaultProps11;
4972
+
4973
+ // src/input/input-clear-value.tsx
4974
+ import { Fragment as Fragment5, jsx as jsx43 } from "react/jsx-runtime";
4975
+ var className5 = `k-clear-value`;
4976
+ var states13 = [
4977
+ States.disabled,
4978
+ States.loading,
4979
+ States.readonly
4980
+ ];
4981
+ var options10 = {};
4982
+ var InputClearValue = (props) => {
4983
+ const {
4984
+ disabled,
4985
+ loading,
4986
+ readonly,
4987
+ value
4988
+ } = props;
4989
+ if (disabled || readonly || loading || !value) {
4990
+ return /* @__PURE__ */ jsx43(Fragment5, {});
4991
+ }
4992
+ return /* @__PURE__ */ jsx43("span", { className: classNames(props.className, className5), children: /* @__PURE__ */ jsx43(Icon, { icon: "x" }) });
4993
+ };
4994
+ InputClearValue.states = states13;
4995
+ InputClearValue.options = options10;
4996
+ InputClearValue.className = className5;
4997
+
4998
+ // src/input/input-inner-input.tsx
4999
+ import { jsx as jsx44 } from "react/jsx-runtime";
5000
+ var className6 = `k-input-inner`;
5001
+ var states14 = [];
5002
+ var options11 = {};
5003
+ var defaultProps12 = {
5004
+ type: "text",
5005
+ autocomplete: "off",
5006
+ value: "",
5007
+ placeholder: ""
5008
+ };
5009
+ var InputInnerInput = (props) => {
5010
+ const {
5011
+ value = defaultProps12.value,
5012
+ type = defaultProps12.type,
5013
+ placeholder = defaultProps12.placeholder,
5014
+ autocomplete = defaultProps12.autocomplete,
5015
+ ...other
5016
+ } = props;
5017
+ return /* @__PURE__ */ jsx44(
5018
+ "input",
5019
+ {
5020
+ ...other,
5021
+ type,
5022
+ className: classNames(props.className, className6, optionClassNames(className6, props)),
5023
+ placeholder,
5024
+ autoComplete: autocomplete,
5025
+ defaultValue: value
5026
+ }
5027
+ );
5028
+ };
5029
+ InputInnerInput.states = states14;
5030
+ InputInnerInput.options = options11;
5031
+ InputInnerInput.className = className6;
5032
+
5033
+ // src/input/input-inner-span.tsx
5034
+ import { jsx as jsx45, jsxs as jsxs9 } from "react/jsx-runtime";
5035
+ var className7 = `k-input-inner`;
5036
+ var states15 = [];
5037
+ var options12 = {};
5038
+ var InputInnerSpan = (props) => {
5039
+ const {
5040
+ value,
5041
+ placeholder,
5042
+ showValue,
5043
+ valueIcon,
5044
+ valueIconName,
5045
+ ...other
5046
+ } = props;
5047
+ return /* @__PURE__ */ jsxs9(
5048
+ "span",
5049
+ {
5050
+ ...other,
5051
+ className: classNames(props.className, className7, optionClassNames(className7, props)),
5052
+ children: [
5053
+ valueIcon,
5054
+ !valueIcon && valueIconName && /* @__PURE__ */ jsx45(Icon, { className: "k-input-value-icon", icon: valueIconName }),
5055
+ showValue && !value && placeholder,
5056
+ showValue && value && /* @__PURE__ */ jsx45("span", { className: "k-input-value-text", children: value })
5057
+ ]
5058
+ }
5059
+ );
5060
+ };
5061
+ InputInnerSpan.states = states15;
5062
+ InputInnerSpan.options = options12;
5063
+ InputInnerSpan.className = className7;
5064
+
5065
+ // src/input/input-inner-textarea.tsx
5066
+ import { jsx as jsx46 } from "react/jsx-runtime";
5067
+ var defaultProps13 = {
5068
+ value: "",
5069
+ placeholder: ""
5070
+ };
5071
+ var className8 = `k-input-inner`;
5072
+ var states16 = [];
5073
+ var options13 = {};
5074
+ var InputInnerTextarea = (props) => {
5075
+ const {
5076
+ value = defaultProps13.value,
5077
+ placeholder = defaultProps13.placeholder,
5078
+ rows,
5079
+ ...other
5080
+ } = props;
5081
+ return /* @__PURE__ */ jsx46(
5082
+ "textarea",
5083
+ {
5084
+ ...other,
5085
+ className: classNames(props.className, className8, optionClassNames(className8, props)),
5086
+ placeholder,
5087
+ rows,
5088
+ children: value
5089
+ }
5090
+ );
5091
+ };
5092
+ InputInnerTextarea.states = states16;
5093
+ InputInnerTextarea.options = options13;
5094
+ InputInnerTextarea.className = className8;
5095
+
5096
+ // src/input/input-loading-icon.tsx
5097
+ import { Fragment as Fragment6, jsx as jsx47 } from "react/jsx-runtime";
5098
+ var className9 = `k-input-loading-icon`;
5099
+ var states17 = [
5100
+ States.disabled,
5101
+ States.loading
5102
+ ];
5103
+ var InputLoadingIcon = (props) => {
5104
+ const {
5105
+ disabled,
5106
+ loading
5107
+ } = props;
5108
+ if (disabled || !loading) {
5109
+ return /* @__PURE__ */ jsx47(Fragment6, {});
5110
+ }
5111
+ return /* @__PURE__ */ jsx47("span", { className: classNames(props.className, className9, "k-icon k-i-loading") });
5112
+ };
5113
+
5114
+ // src/input/input-validation-icon.tsx
5115
+ import { Fragment as Fragment7, jsx as jsx48 } from "react/jsx-runtime";
5116
+ var className10 = `k-input-validation-icon`;
5117
+ var states18 = [
5118
+ States.valid,
5119
+ States.invalid,
5120
+ States.disabled,
5121
+ States.loading
5122
+ ];
5123
+ var options14 = {};
5124
+ var InputValidationIcon = (props) => {
5125
+ const {
5126
+ valid,
5127
+ invalid,
5128
+ disabled,
5129
+ loading
5130
+ } = props;
5131
+ const iconName = invalid ? "warning-circle" : "check-circle";
5132
+ const renderValidationIcon = Boolean(valid || invalid);
5133
+ if (disabled || loading || !renderValidationIcon) {
5134
+ return /* @__PURE__ */ jsx48(Fragment7, {});
5135
+ }
5136
+ return /* @__PURE__ */ jsx48(Icon, { className: classNames(className10), icon: iconName });
5137
+ };
5138
+ InputValidationIcon.states = states18;
5139
+ InputValidationIcon.options = options14;
5140
+ InputValidationIcon.className = className10;
5141
+
5142
+ // src/input/input-prefix.tsx
5143
+ import { Fragment as Fragment8, jsx as jsx49 } from "react/jsx-runtime";
5144
+ var className11 = `k-input-prefix`;
5145
+ var defaultProps14 = {
5146
+ direction: "horizontal"
5147
+ };
5148
+ var InputPrefix = (props) => {
5149
+ const {
5150
+ direction = defaultProps14.direction,
5151
+ ...other
5152
+ } = props;
5153
+ if (!props.children) {
5154
+ return /* @__PURE__ */ jsx49(Fragment8, {});
5155
+ }
5156
+ return /* @__PURE__ */ jsx49(
5157
+ "span",
5158
+ {
5159
+ ...other,
5160
+ className: classNames(
5161
+ className11,
5162
+ props.className,
5163
+ {
5164
+ [`k-input-prefix-${direction}`]: direction
5165
+ }
5166
+ ),
5167
+ children: props.children
5168
+ }
5169
+ );
5170
+ };
5171
+
5172
+ // src/input/input-suffix.tsx
5173
+ import { Fragment as Fragment9, jsx as jsx50 } from "react/jsx-runtime";
5174
+ var className12 = `k-input-suffix`;
5175
+ var defaultProps15 = {
5176
+ direction: "horizontal"
5177
+ };
5178
+ var InputSuffix = (props) => {
5179
+ const {
5180
+ direction = defaultProps15.direction,
5181
+ ...other
5182
+ } = props;
5183
+ if (!props.children) {
5184
+ return /* @__PURE__ */ jsx50(Fragment9, {});
5185
+ }
5186
+ return /* @__PURE__ */ jsx50(
5187
+ "span",
5188
+ {
5189
+ ...other,
5190
+ className: classNames(
5191
+ className12,
5192
+ props.className,
5193
+ {
5194
+ [`k-input-suffix-${direction}`]: direction
5195
+ }
5196
+ ),
5197
+ children: props.children
5198
+ }
5199
+ );
5200
+ };
5201
+
5202
+ // src/input/input-prefix-text.tsx
5203
+ import { jsx as jsx51 } from "react/jsx-runtime";
5204
+
5205
+ // src/input/input-suffix-text.tsx
5206
+ import { jsx as jsx52 } from "react/jsx-runtime";
5207
+
5208
+ // src/input/input-separator.tsx
5209
+ import { jsx as jsx53 } from "react/jsx-runtime";
5210
+ var className13 = `k-input-separator`;
5211
+ var defaultProps16 = {
5212
+ direction: "vertical"
5213
+ };
5214
+ var InputSeparator = (props) => {
5215
+ const {
5216
+ direction = defaultProps16.direction,
5217
+ ...other
5218
+ } = props;
5219
+ return /* @__PURE__ */ jsx53(
5220
+ "span",
5221
+ {
5222
+ ...other,
5223
+ className: classNames(
5224
+ className13,
5225
+ props.className,
5226
+ {
5227
+ [`${className13}-${direction}`]: direction
5228
+ }
5229
+ )
5230
+ }
5231
+ );
5232
+ };
5233
+
5234
+ // src/animation-container/animation-container.spec.tsx
5235
+ import { jsx as jsx54 } from "react/jsx-runtime";
5236
+ var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
5237
+ var states19 = [];
5238
+ var options15 = {};
5239
+ var defaultProps17 = {
5240
+ positionMode: "absolute"
5241
+ };
5242
+ var AnimationContainer = (props) => {
5243
+ const {
5244
+ positionMode,
5245
+ animationStyle,
5246
+ offset,
5247
+ ...other
5248
+ } = props;
5249
+ return /* @__PURE__ */ jsx54(
5250
+ "div",
5251
+ {
5252
+ ...other,
5253
+ style: { ...offset, ...props.style },
5254
+ className: classNames(
5255
+ ANIMATION_CONTAINER_CLASSNAME,
5256
+ "k-animation-container-shown",
5257
+ {
5258
+ ["k-animation-container-fixed"]: positionMode === "fixed"
5259
+ }
5260
+ ),
5261
+ children: /* @__PURE__ */ jsx54("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
5262
+ }
5263
+ );
5264
+ };
5265
+ AnimationContainer.states = states19;
5266
+ AnimationContainer.options = options15;
5267
+ AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5268
+ AnimationContainer.defaultProps = defaultProps17;
5269
+
5270
+ // src/popup/popup.spec.tsx
5271
+ import { jsx as jsx55 } from "react/jsx-runtime";
5272
+ var POPUP_CLASSNAME = `k-popup`;
5273
+ var states20 = [];
5274
+ var options16 = {};
5275
+ var defaultProps18 = {
5276
+ positionMode: "absolute"
5277
+ };
5278
+ var Popup = (props) => {
5279
+ const {
5280
+ offset,
5281
+ positionMode,
5282
+ ...other
5283
+ } = props;
5284
+ return /* @__PURE__ */ jsx55(
5285
+ AnimationContainer,
5286
+ {
5287
+ positionMode,
5288
+ offset,
5289
+ children: /* @__PURE__ */ jsx55("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5290
+ }
5291
+ );
5292
+ };
5293
+ Popup.states = states20;
5294
+ Popup.options = options16;
5295
+ Popup.className = POPUP_CLASSNAME;
5296
+ Popup.defaultProps = defaultProps18;
5297
+
5298
+ // src/dropdownlist/dropdownlist.spec.tsx
5299
+ import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs10 } from "react/jsx-runtime";
5300
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
5301
+ var states21 = [
5302
+ States.hover,
5303
+ States.focus,
5304
+ States.valid,
5305
+ States.invalid,
5306
+ States.required,
5307
+ States.disabled,
5308
+ States.loading,
5309
+ States.readonly
5310
+ ];
5311
+ var options17 = {
5312
+ size: [Size.small, Size.medium, Size.large],
5313
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5314
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5315
+ };
5316
+ var defaultProps19 = {
5317
+ showValue: true,
5318
+ arrowIconName: "caret-alt-down",
5319
+ size: Size.medium,
5320
+ rounded: Roundness.medium,
5321
+ fillMode: FillMode.solid
5322
+ };
5323
+ var DropdownList = (props) => {
5324
+ const {
5325
+ valueIconName,
5326
+ arrowIconName = defaultProps19.arrowIconName,
5327
+ prefix,
5328
+ suffix,
5329
+ value,
5330
+ placeholder,
5331
+ size,
5332
+ rounded,
5333
+ fillMode,
5334
+ hover,
5335
+ focus,
5336
+ valid,
5337
+ invalid,
5338
+ required,
5339
+ loading,
5340
+ disabled,
5341
+ readonly,
5342
+ showValue = defaultProps19.showValue,
5343
+ popup,
5344
+ opened,
5345
+ ...other
5346
+ } = props;
5347
+ return /* @__PURE__ */ jsxs10(Fragment10, { children: [
5348
+ /* @__PURE__ */ jsxs10(
5349
+ Picker,
5350
+ {
5351
+ ...other,
5352
+ size,
5353
+ rounded,
5354
+ fillMode,
5355
+ hover,
5356
+ focus,
5357
+ valid,
5358
+ invalid,
5359
+ required,
5360
+ loading,
5361
+ disabled,
5362
+ readonly,
5363
+ className: classNames(
5364
+ props.className,
5365
+ DROPDOWNLIST_CLASSNAME,
5366
+ {
5367
+ "k-icon-picker": !showValue && valueIconName
5368
+ }
5369
+ ),
5370
+ children: [
5371
+ /* @__PURE__ */ jsx56(InputPrefix, { children: prefix }),
5372
+ /* @__PURE__ */ jsx56(
5373
+ InputInnerSpan,
5374
+ {
5375
+ placeholder,
5376
+ value,
5377
+ showValue,
5378
+ valueIconName
5379
+ }
5380
+ ),
5381
+ /* @__PURE__ */ jsx56(
5382
+ InputValidationIcon,
5383
+ {
5384
+ valid,
5385
+ invalid,
5386
+ loading,
5387
+ disabled
5388
+ }
5389
+ ),
5390
+ /* @__PURE__ */ jsx56(
5391
+ InputLoadingIcon,
5392
+ {
5393
+ loading,
5394
+ disabled
5395
+ }
5396
+ ),
5397
+ /* @__PURE__ */ jsx56(InputSuffix, { children: suffix }),
5398
+ /* @__PURE__ */ jsx56(
5399
+ Button,
5400
+ {
5401
+ className: "k-input-button",
5402
+ icon: arrowIconName,
5403
+ rounded: null,
5404
+ size: props.size,
5405
+ fillMode: props.fillMode
5406
+ }
5407
+ )
5408
+ ]
5409
+ }
5410
+ ),
5411
+ opened && popup && /* @__PURE__ */ jsx56(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
5412
+ ] });
5413
+ };
5414
+ DropdownList.states = states21;
5415
+ DropdownList.options = options17;
5416
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
5417
+ DropdownList.defaultProps = defaultProps19;
5418
+
5419
+ // src/dropdownlist/templates/dropdownlist-normal.tsx
5420
+ import { jsx as jsx57 } from "react/jsx-runtime";
5421
+
5422
+ // src/nodata/nodata.tsx
5423
+ import { jsx as jsx58 } from "react/jsx-runtime";
5424
+ var className14 = `k-nodata`;
5425
+ var NoData = (props) => /* @__PURE__ */ jsx58("span", { className: classNames(className14, props.className), children: props.children });
5426
+
5427
+ // src/list/list.spec.tsx
5428
+ import { jsx as jsx59, jsxs as jsxs11 } from "react/jsx-runtime";
5429
+ var LIST_CLASSNAME = `k-list`;
5430
+ var states22 = [];
5431
+ var options18 = {
5432
+ size: [Size.small, Size.medium, Size.large]
5433
+ };
5434
+ var defaultProps20 = {
5435
+ size: Size.medium
5436
+ };
5437
+ var List = (props) => {
5438
+ const {
5439
+ size = defaultProps20.size,
5440
+ virtualization,
5441
+ children,
5442
+ optionLabel,
5443
+ ...other
5444
+ } = props;
5445
+ let listHeader;
5446
+ let listGroup;
5447
+ let listContent;
5448
+ const listChildren = [];
5449
+ if (children) {
5450
+ children.map((child, index) => {
5451
+ if (child.type === ListGroup) {
5452
+ if (child.props.root === true) {
5453
+ listHeader = child.props.label;
5454
+ child.props.children.map((optChild, index2) => {
5455
+ listChildren.push(
5456
+ /* @__PURE__ */ jsx59(
5457
+ ListItem,
5458
+ {
5459
+ ...optChild.props
5460
+ },
5461
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5462
+ )
5463
+ );
5464
+ });
5465
+ } else {
5466
+ child.props.children.forEach((optChild, index2) => {
5467
+ let groupLabel = "";
5468
+ if (index2 === 0) {
5469
+ groupLabel = child.props.label;
5470
+ }
5471
+ listChildren.push(
5472
+ /* @__PURE__ */ jsx59(
5473
+ ListItem,
5474
+ {
5475
+ className: index2 === 0 ? "k-first" : "",
5476
+ ...optChild.props,
5477
+ groupLabel
5478
+ },
5479
+ `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5480
+ )
5481
+ );
5482
+ });
5483
+ }
5484
+ listGroup = /* @__PURE__ */ jsx59(ListGroup, { label: listHeader, virtualization, children: listChildren });
5485
+ } else if (child.type === ListItem) {
5486
+ listChildren.push(/* @__PURE__ */ jsx59(ListItem, { ...child.props }, `${child.type}-${index}`));
5487
+ listContent = /* @__PURE__ */ jsx59(ListContent, { virtualization, children: listChildren });
5488
+ }
5489
+ });
5490
+ } else {
5491
+ listContent = /* @__PURE__ */ jsx59(NoData, { children: "No data found." });
5492
+ }
5493
+ return /* @__PURE__ */ jsxs11(
5494
+ "div",
5495
+ {
5496
+ ...other,
5497
+ className: classNames(
5498
+ props.className,
5499
+ LIST_CLASSNAME,
5500
+ optionClassNames(LIST_CLASSNAME, {
5501
+ size
5502
+ }),
5503
+ {
5504
+ ["k-virtual-list"]: virtualization
5505
+ }
5506
+ ),
5507
+ children: [
5508
+ optionLabel,
5509
+ listGroup,
5510
+ listContent
5511
+ ]
5512
+ }
5513
+ );
5514
+ };
5515
+ List.states = states22;
5516
+ List.options = options18;
5517
+ List.className = LIST_CLASSNAME;
5518
+ List.defaultProps = defaultProps20;
5519
+
5520
+ // src/list/list-angular.spec.tsx
5521
+ import { jsx as jsx60, jsxs as jsxs12 } from "react/jsx-runtime";
5522
+ var LISTANGULAR_CLASSNAME = `k-list`;
5523
+ var states23 = [];
5524
+ var options19 = {
5525
+ size: [Size.small, Size.medium, Size.large]
5526
+ };
5527
+ var defaultProps21 = {
5528
+ size: Size.medium
5529
+ };
5530
+ var ListAngular = (props) => {
5531
+ const {
5532
+ size = defaultProps21.size,
5533
+ virtualization,
5534
+ children,
5535
+ ...other
5536
+ } = props;
5537
+ let listHeader;
5538
+ let listGroup;
5539
+ let listContent;
5540
+ const listChildren = [];
5541
+ if (children) {
5542
+ children.map((child, index) => {
5543
+ if (child.type === ListGroup) {
5544
+ if (child.props.root === true) {
5545
+ listHeader = child.props.label;
5546
+ child.props.children.map((optChild, index2) => {
5547
+ listChildren.push(
5548
+ /* @__PURE__ */ jsx60(
5549
+ ListItem,
5550
+ {
5551
+ ...optChild.props
5552
+ },
5553
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5554
+ )
5555
+ );
5556
+ });
5557
+ } else {
5558
+ listChildren.push(
5559
+ /* @__PURE__ */ jsx60(
5560
+ ListGroupItem,
5561
+ {
5562
+ ...child.props,
5563
+ children: child.props.label
5564
+ },
5565
+ `listChild-${index}`
5566
+ )
5567
+ );
5568
+ child.props.children.map((optChild, index2) => {
5569
+ listChildren.push(
5570
+ /* @__PURE__ */ jsx60(
5571
+ ListItem,
5572
+ {
5573
+ ...optChild.props
5574
+ },
5575
+ `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5576
+ )
5577
+ );
5578
+ });
5579
+ }
5580
+ listGroup = /* @__PURE__ */ jsx60(ListGroup, { label: listHeader, virtualization, children: listChildren });
5581
+ } else if (child.type === ListItem) {
5582
+ listChildren.push(/* @__PURE__ */ jsx60(ListItem, { ...child.props }, `${child.type}-${index}`));
5583
+ listContent = /* @__PURE__ */ jsx60(ListContent, { virtualization, children: listChildren });
5584
+ }
5585
+ });
5586
+ } else {
5587
+ listContent = /* @__PURE__ */ jsx60(NoData, { children: "No data found." });
5588
+ }
5589
+ return /* @__PURE__ */ jsxs12(
5590
+ "div",
5591
+ {
5592
+ ...other,
5593
+ className: classNames(
5594
+ props.className,
5595
+ LISTANGULAR_CLASSNAME,
5596
+ optionClassNames(LISTANGULAR_CLASSNAME, {
5597
+ size
5598
+ }),
5599
+ {
5600
+ ["k-virtual-list"]: virtualization
5601
+ }
5602
+ ),
5603
+ children: [
5604
+ listGroup,
5605
+ listContent
5606
+ ]
5607
+ }
5608
+ );
5609
+ };
5610
+ ListAngular.states = states23;
5611
+ ListAngular.options = options19;
5612
+ ListAngular.className = LISTANGULAR_CLASSNAME;
5613
+ ListAngular.defaultProps = defaultProps21;
5614
+
5615
+ // src/checkbox/checkbox.spec.tsx
5616
+ import { jsx as jsx61 } from "react/jsx-runtime";
5617
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
5618
+ var states24 = [
5619
+ States.hover,
5620
+ States.focus,
5621
+ States.valid,
5622
+ States.invalid,
5623
+ States.required,
5624
+ States.disabled,
5625
+ States.checked,
5626
+ States.indeterminate
5627
+ ];
5628
+ var options20 = {
5629
+ size: [Size.small, Size.medium, Size.large],
5630
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5631
+ };
5632
+ var defaultProps22 = {
5633
+ size: Size.medium,
5634
+ rounded: Roundness.medium
5635
+ };
5636
+ var Checkbox = (props) => {
5637
+ const {
5638
+ id,
5639
+ checked,
5640
+ indeterminate,
5641
+ hover,
5642
+ focus,
5643
+ disabled,
5644
+ invalid,
5645
+ valid,
5646
+ required,
5647
+ size = defaultProps22.size,
5648
+ rounded = defaultProps22.rounded,
5649
+ ...other
5650
+ } = props;
5651
+ return /* @__PURE__ */ jsx61("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx61(
5652
+ "input",
5653
+ {
5654
+ ...other,
5655
+ id,
5656
+ type: "checkbox",
5657
+ checked,
5658
+ required,
5659
+ className: classNames(
5660
+ props.className,
5661
+ CHECKBOX_CLASSNAME,
5662
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5663
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5664
+ )
5665
+ }
5666
+ ) });
5667
+ };
5668
+ Checkbox.states = states24;
5669
+ Checkbox.options = options20;
5670
+ Checkbox.className = CHECKBOX_CLASSNAME;
5671
+ Checkbox.defaultProps = defaultProps22;
5672
+
5673
+ // src/checkbox/checkbox-group.spec.tsx
5674
+ import { jsx as jsx62 } from "react/jsx-runtime";
5675
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5676
+ var states25 = [];
5677
+ var options21 = {};
5678
+ var defaultProps23 = {
5679
+ layout: "vertical"
5680
+ };
5681
+ var CheckboxGroup = (props) => {
5682
+ const {
5683
+ layout = defaultProps23.layout,
5684
+ ...other
5685
+ } = props;
5686
+ return /* @__PURE__ */ jsx62(
5687
+ "ul",
5688
+ {
5689
+ ...other,
5690
+ className: classNames(
5691
+ props.className,
5692
+ CHECKBOXGROUP_CLASSNAME,
5693
+ {
5694
+ [`k-list-${layout}`]: layout
5695
+ }
5696
+ ),
5697
+ children: props.children
5698
+ }
5699
+ );
5700
+ };
5701
+ CheckboxGroup.states = states25;
5702
+ CheckboxGroup.options = options21;
5703
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5704
+ CheckboxGroup.defaultProps = defaultProps23;
5705
+
5706
+ // src/checkbox/checkbox-item.spec.tsx
5707
+ import { jsx as jsx63 } from "react/jsx-runtime";
5708
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5709
+ var states26 = [];
5710
+ var options22 = {};
5711
+ var defaultProps24 = {};
5712
+ var CheckboxItem = (props) => {
5713
+ const {
5714
+ ...other
5715
+ } = props;
5716
+ return /* @__PURE__ */ jsx63(
5717
+ "li",
5718
+ {
5719
+ ...other,
5720
+ className: classNames(
5721
+ props.className,
5722
+ CHECKBOXITEM_CLASSNAME
5723
+ ),
5724
+ children: props.children
5725
+ }
5726
+ );
5727
+ };
5728
+ CheckboxItem.states = states26;
5729
+ CheckboxItem.options = options22;
5730
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5731
+ CheckboxItem.defaultProps = defaultProps24;
5732
+
5733
+ // src/checkbox/templates/checkbox-with-label-after.tsx
5734
+ import { Fragment as Fragment11, jsx as jsx64, jsxs as jsxs13 } from "react/jsx-runtime";
5735
+
5736
+ // src/checkbox/templates/checkbox-with-label-before.tsx
5737
+ import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs14 } from "react/jsx-runtime";
5738
+
5739
+ // src/checkbox/templates/checkbox-normal.tsx
5740
+ import { jsx as jsx66 } from "react/jsx-runtime";
5741
+
5742
+ // src/list/list-item.spec.tsx
5743
+ import { jsx as jsx67, jsxs as jsxs15 } from "react/jsx-runtime";
5744
+ var LISTITEM_CLASSNAME = `k-list-item`;
5745
+ var states27 = [
5746
+ States.hover,
5747
+ States.focus,
5748
+ States.selected,
5749
+ States.disabled
5750
+ ];
5751
+ var options23 = {};
5752
+ var defaultProps25 = {};
5753
+ var ListItem = (props) => {
5754
+ const {
5755
+ text,
5756
+ groupLabel,
5757
+ showIcon,
5758
+ iconName,
5759
+ showCheckbox,
5760
+ checked,
5761
+ hover,
5762
+ focus,
5763
+ selected,
5764
+ disabled,
5765
+ ...other
5766
+ } = props;
5767
+ const textOrChildren = text ? text : props.children;
5768
+ return /* @__PURE__ */ jsxs15(
5769
+ "li",
5770
+ {
5771
+ ...other,
5772
+ className: classNames(
5773
+ props.className,
5774
+ LISTITEM_CLASSNAME,
5775
+ stateClassNames(LISTITEM_CLASSNAME, {
5776
+ hover,
5777
+ focus,
5778
+ disabled,
5779
+ selected
5780
+ })
5781
+ ),
5782
+ children: [
5783
+ showCheckbox && /* @__PURE__ */ jsx67(Checkbox, { checked }),
5784
+ showIcon && /* @__PURE__ */ jsx67(Icon, { icon: iconName }),
5785
+ /* @__PURE__ */ jsx67("span", { className: "k-list-item-text", children: textOrChildren }),
5786
+ groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx67("div", { className: "k-list-item-group-label", children: groupLabel })
5787
+ ]
5788
+ }
5789
+ );
5790
+ };
5791
+ ListItem.states = states27;
5792
+ ListItem.options = options23;
5793
+ ListItem.className = LISTITEM_CLASSNAME;
5794
+ ListItem.defaultProps = defaultProps25;
5795
+
5796
+ // src/list/list-content.tsx
5797
+ import { jsx as jsx68, jsxs as jsxs16 } from "react/jsx-runtime";
5798
+ var className15 = `k-list-content`;
5799
+ var ListContent = (props) => {
5800
+ const {
5801
+ virtualization
5802
+ } = props;
5803
+ return /* @__PURE__ */ jsxs16("div", { className: classNames(className15, props.className), children: [
5804
+ /* @__PURE__ */ jsx68("ul", { className: classNames("k-list-ul"), children: props.children }),
5805
+ virtualization && /* @__PURE__ */ jsx68("div", { className: "k-height-container", children: /* @__PURE__ */ jsx68("div", {}) })
5806
+ ] });
5807
+ };
5808
+
5809
+ // src/list/list-header.tsx
5810
+ import { jsx as jsx69 } from "react/jsx-runtime";
5811
+ var className16 = `k-list-group-sticky-header`;
5812
+ var ListHeader = (props) => /* @__PURE__ */ jsx69("div", { className: classNames(className16, props.className), children: /* @__PURE__ */ jsx69("div", { className: "k-list-header-text", children: props.children }) });
5813
+
5814
+ // src/list/list-group.tsx
5815
+ import { Fragment as Fragment13, jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
5816
+ var ListGroup = (props) => {
5817
+ const {
5818
+ virtualization,
5819
+ label
5820
+ } = props;
5821
+ return /* @__PURE__ */ jsxs17(Fragment13, { children: [
5822
+ label && /* @__PURE__ */ jsx70(ListHeader, { children: label }),
5823
+ props.children && /* @__PURE__ */ jsx70(ListContent, { virtualization, children: props.children })
5824
+ ] });
5825
+ };
5826
+
5827
+ // src/list/list-group-item.tsx
5828
+ import { jsx as jsx71 } from "react/jsx-runtime";
5829
+ var className17 = `k-list-group-item`;
5830
+ var ListGroupItem = (props) => /* @__PURE__ */ jsx71("li", { className: classNames(className17, props.className), children: /* @__PURE__ */ jsx71("span", { className: "k-list-item-text", children: props.children }) });
5831
+
5832
+ // src/list/list-option-label.tsx
5833
+ import { jsx as jsx72 } from "react/jsx-runtime";
5834
+ var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5835
+ var states28 = [
5836
+ States.hover,
5837
+ States.focus,
5838
+ States.selected,
5839
+ States.disabled
5840
+ ];
5841
+ var options24 = {};
5842
+ var defaultProps26 = {};
5843
+ var ListOptionLabel = (props) => {
5844
+ const {
5845
+ text,
5846
+ hover,
5847
+ focus,
5848
+ selected,
5849
+ disabled,
5850
+ ...other
5851
+ } = props;
5852
+ return /* @__PURE__ */ jsx72(
5853
+ "div",
5854
+ {
5855
+ ...other,
5856
+ className: classNames(
5857
+ LIST_OPTIONLABEL_CLASSNAME,
5858
+ stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
5859
+ hover,
5860
+ focus,
5861
+ selected,
5862
+ disabled
5863
+ })
5864
+ ),
5865
+ children: text
5866
+ }
5867
+ );
5868
+ };
5869
+ ListOptionLabel.states = states28;
5870
+ ListOptionLabel.options = options24;
5871
+ ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5872
+ ListOptionLabel.defaultProps = defaultProps26;
5873
+
5874
+ // src/list/templates/list-normal.tsx
5875
+ import { jsx as jsx73 } from "react/jsx-runtime";
5876
+
5877
+ // src/list/templates/list-virtualization.tsx
5878
+ import { jsx as jsx74 } from "react/jsx-runtime";
5879
+
5880
+ // src/list/templates/list-grouping.tsx
5881
+ import { jsx as jsx75, jsxs as jsxs18 } from "react/jsx-runtime";
5882
+
5883
+ // src/list/templates/list-virualization-grouping.tsx
5884
+ import { jsx as jsx76, jsxs as jsxs19 } from "react/jsx-runtime";
5885
+
5886
+ // src/list/templates/list-virtualization-angular.tsx
5887
+ import { jsx as jsx77 } from "react/jsx-runtime";
5888
+
5889
+ // src/list/templates/list-grouping-angular.tsx
5890
+ import { jsx as jsx78, jsxs as jsxs20 } from "react/jsx-runtime";
5891
+
5892
+ // src/list/templates/list-virualization-grouping-angular.tsx
5893
+ import { jsx as jsx79, jsxs as jsxs21 } from "react/jsx-runtime";
5894
+
5895
+ // src/dropdownlist/templates/dropdownlist-popup.tsx
5896
+ import { jsx as jsx80, jsxs as jsxs22 } from "react/jsx-runtime";
5897
+
5898
+ // src/searchbox/searchbox.spec.tsx
5899
+ import { jsx as jsx81, jsxs as jsxs23 } from "react/jsx-runtime";
5900
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5901
+ var states29 = [
5902
+ States.hover,
5903
+ States.focus,
5904
+ States.valid,
5905
+ States.invalid,
5906
+ States.required,
5907
+ States.disabled,
5908
+ States.loading
5909
+ ];
5910
+ var options25 = {
5911
+ size: [Size.small, Size.medium, Size.large],
5912
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5913
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5914
+ };
5915
+ var defaultProps27 = {
5916
+ showIcon: true,
5917
+ icon: "search",
5918
+ size: Input.defaultProps.size,
5919
+ rounded: Input.defaultProps.rounded,
5920
+ fillMode: Input.defaultProps.fillMode
5921
+ };
5922
+ var Searchbox = (props) => {
5923
+ const {
5924
+ value,
5925
+ placeholder,
5926
+ size,
5927
+ rounded,
5928
+ fillMode,
5929
+ hover,
5930
+ focus,
5931
+ valid,
5932
+ invalid,
5933
+ required,
5934
+ loading,
5935
+ disabled,
5936
+ showIcon = defaultProps27.showIcon,
5937
+ icon = defaultProps27.icon,
5938
+ ...other
5939
+ } = props;
5940
+ return /* @__PURE__ */ jsxs23(
5941
+ Input,
5942
+ {
5943
+ ...other,
5944
+ size,
5945
+ rounded,
5946
+ fillMode,
5947
+ hover,
5948
+ focus,
5949
+ valid,
5950
+ invalid,
5951
+ required,
5952
+ loading,
5953
+ disabled,
5954
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5955
+ children: [
5956
+ showIcon && /* @__PURE__ */ jsx81(Icon, { className: "k-input-icon", icon }),
5957
+ /* @__PURE__ */ jsx81(InputInnerInput, { placeholder, value }),
5958
+ /* @__PURE__ */ jsx81(InputLoadingIcon, { ...props }),
5959
+ /* @__PURE__ */ jsx81(InputValidationIcon, { ...props }),
5960
+ /* @__PURE__ */ jsx81(InputClearValue, { ...props })
5961
+ ]
5962
+ }
5963
+ );
5964
+ };
5965
+ Searchbox.states = states29;
5966
+ Searchbox.options = options25;
5967
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5968
+ Searchbox.defaultProps = defaultProps27;
5969
+
5970
+ // src/searchbox/templates/searchbox-normal.tsx
5971
+ import { jsx as jsx82 } from "react/jsx-runtime";
5972
+
5973
+ // src/dropdownlist/templates/dropdownlist-filtering.tsx
5974
+ import { Fragment as Fragment14, jsx as jsx83, jsxs as jsxs24 } from "react/jsx-runtime";
5975
+
5976
+ // src/dropdownlist/templates/dropdownlist-grouping.tsx
5977
+ import { jsx as jsx84, jsxs as jsxs25 } from "react/jsx-runtime";
5978
+
5979
+ // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
5980
+ import { Fragment as Fragment15, jsx as jsx85, jsxs as jsxs26 } from "react/jsx-runtime";
5981
+
5982
+ // src/spinbutton/spinbutton.spec.tsx
5983
+ import { jsx as jsx86, jsxs as jsxs27 } from "react/jsx-runtime";
5984
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
5985
+ var states30 = [];
5986
+ var options26 = {
5987
+ size: [Size.small, Size.medium, Size.large],
5988
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
5989
+ };
5990
+ var defaultProps28 = {
5991
+ size: Size.medium,
5992
+ fillMode: FillMode.solid
5993
+ };
5994
+ var SpinButton = (props) => {
5995
+ const {
5996
+ size = defaultProps28.size,
5997
+ fillMode = defaultProps28.fillMode,
5998
+ ...other
5999
+ } = props;
6000
+ return /* @__PURE__ */ jsxs27(
6001
+ "span",
6002
+ {
6003
+ ...other,
6004
+ className: classNames(
6005
+ SPINBUTTON_CLASSNAME,
6006
+ props.className
6007
+ ),
6008
+ children: [
6009
+ /* @__PURE__ */ jsx86(
6010
+ Button,
6011
+ {
6012
+ className: "k-spinner-increase",
6013
+ icon: "caret-alt-up",
6014
+ rounded: null,
6015
+ size,
6016
+ fillMode
6017
+ }
6018
+ ),
6019
+ /* @__PURE__ */ jsx86(
6020
+ Button,
6021
+ {
6022
+ className: "k-spinner-decrease",
6023
+ icon: "caret-alt-down",
6024
+ rounded: null,
6025
+ size,
6026
+ fillMode
6027
+ }
6028
+ )
6029
+ ]
6030
+ }
6031
+ );
6032
+ };
6033
+ SpinButton.states = states30;
6034
+ SpinButton.options = options26;
6035
+ SpinButton.className = SPINBUTTON_CLASSNAME;
6036
+ SpinButton.defaultProps = defaultProps28;
6037
+
6038
+ // src/numerictextbox/numerictextbox.spec.tsx
6039
+ import { Fragment as Fragment16, jsx as jsx87, jsxs as jsxs28 } from "react/jsx-runtime";
6040
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
6041
+ var states31 = [
6042
+ States.hover,
6043
+ States.focus,
6044
+ States.valid,
6045
+ States.invalid,
6046
+ States.loading,
6047
+ States.required,
6048
+ States.disabled,
6049
+ States.readonly
6050
+ ];
6051
+ var options27 = {
6052
+ size: [Size.small, Size.medium, Size.large],
6053
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6054
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6055
+ };
6056
+ var defaultProps29 = {
6057
+ showSpinButton: true,
6058
+ showClearButton: true,
6059
+ size: Input.defaultProps.size,
6060
+ rounded: Input.defaultProps.rounded,
6061
+ fillMode: Input.defaultProps.fillMode
6062
+ };
6063
+ var NumericTextbox = (props) => {
6064
+ const {
6065
+ prefix,
6066
+ suffix,
6067
+ value,
6068
+ placeholder,
6069
+ size,
6070
+ rounded,
6071
+ fillMode,
6072
+ hover,
6073
+ focus,
6074
+ valid,
6075
+ invalid,
6076
+ required,
6077
+ loading,
6078
+ disabled,
6079
+ readonly,
6080
+ showClearButton = defaultProps29.showClearButton,
6081
+ showSpinButton = defaultProps29.showSpinButton,
6082
+ ...other
6083
+ } = props;
6084
+ return /* @__PURE__ */ jsxs28(
6085
+ Input,
6086
+ {
6087
+ ...other,
6088
+ size,
6089
+ rounded,
6090
+ fillMode,
6091
+ hover,
6092
+ focus,
6093
+ valid,
6094
+ invalid,
6095
+ required,
6096
+ loading,
6097
+ disabled,
6098
+ readonly,
6099
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
6100
+ children: [
6101
+ prefix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
6102
+ /* @__PURE__ */ jsx87(InputPrefix, { children: prefix }),
6103
+ /* @__PURE__ */ jsx87(InputSeparator, {})
6104
+ ] }),
6105
+ /* @__PURE__ */ jsx87(InputInnerInput, { placeholder, value }),
6106
+ /* @__PURE__ */ jsx87(
6107
+ InputValidationIcon,
6108
+ {
6109
+ valid,
6110
+ invalid,
6111
+ loading,
6112
+ disabled
6113
+ }
6114
+ ),
6115
+ /* @__PURE__ */ jsx87(
6116
+ InputLoadingIcon,
6117
+ {
6118
+ loading,
6119
+ disabled
6120
+ }
6121
+ ),
6122
+ showClearButton && /* @__PURE__ */ jsx87(
6123
+ InputClearValue,
6124
+ {
6125
+ loading,
6126
+ disabled,
6127
+ readonly,
6128
+ value
6129
+ }
6130
+ ),
6131
+ suffix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
6132
+ /* @__PURE__ */ jsx87(InputSeparator, {}),
6133
+ /* @__PURE__ */ jsx87(InputSuffix, { children: suffix })
6134
+ ] }),
6135
+ showSpinButton && /* @__PURE__ */ jsx87(
6136
+ SpinButton,
6137
+ {
6138
+ className: "k-input-spinner",
6139
+ size,
6140
+ fillMode
6141
+ }
6142
+ )
6143
+ ]
6144
+ }
6145
+ );
6146
+ };
6147
+ NumericTextbox.states = states31;
6148
+ NumericTextbox.options = options27;
6149
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
6150
+ NumericTextbox.defaultProps = defaultProps29;
6151
+
6152
+ // src/numerictextbox/templates/numerictextbox-normal.tsx
6153
+ import { jsx as jsx88 } from "react/jsx-runtime";
6154
+
6155
+ // src/numerictextbox/templates/numerictextbox-prefix.tsx
6156
+ import { Fragment as Fragment17, jsx as jsx89 } from "react/jsx-runtime";
6157
+
6158
+ // src/numerictextbox/templates/numerictextbox-suffix.tsx
6159
+ import { Fragment as Fragment18, jsx as jsx90 } from "react/jsx-runtime";
6160
+
6161
+ // src/pager/pager.spec.tsx
6162
+ import { jsx as jsx91, jsxs as jsxs29 } from "react/jsx-runtime";
6163
+ var PAGER_CLASSNAME = `k-pager`;
6164
+ var states32 = [
6165
+ States.focus,
6166
+ States.disabled
6167
+ ];
6168
+ var options28 = {
6169
+ size: [Size.small, Size.medium, Size.large]
6170
+ };
6171
+ var defaultProps30 = {
6172
+ size: Size.medium,
6173
+ adaptive: false,
6174
+ itemsPerPage: true,
6175
+ type: "numeric",
6176
+ pageSizes: true,
6177
+ refresh: true,
6178
+ info: true
6179
+ };
6180
+ var Pager = (props) => {
6181
+ const {
6182
+ size = defaultProps30.size,
6183
+ adaptive = defaultProps30.adaptive,
6184
+ itemsPerPage = defaultProps30.itemsPerPage,
6185
+ type = defaultProps30.type,
6186
+ pageSizes = defaultProps30.pageSizes,
6187
+ refresh = defaultProps30.refresh,
6188
+ info = defaultProps30.info,
6189
+ focus,
6190
+ disabled,
6191
+ dir,
6192
+ ...other
6193
+ } = props;
6194
+ return /* @__PURE__ */ jsxs29(
6195
+ "div",
6196
+ {
6197
+ dir,
6198
+ ...other,
6199
+ className: classNames(
6200
+ props.className,
6201
+ PAGER_CLASSNAME,
6202
+ optionClassNames(PAGER_CLASSNAME, {
6203
+ size
6204
+ }),
6205
+ stateClassNames(PAGER_CLASSNAME, {
6206
+ focus,
6207
+ disabled
6208
+ })
6209
+ ),
6210
+ children: [
6211
+ /* @__PURE__ */ jsxs29(
6212
+ "div",
6213
+ {
6214
+ className: classNames(
6215
+ "k-pager-numbers-wrap"
6216
+ ),
6217
+ children: [
6218
+ /* @__PURE__ */ jsx91(
6219
+ Button,
6220
+ {
6221
+ className: classNames(
6222
+ "k-pager-nav",
6223
+ "k-pager-first"
6224
+ ),
6225
+ disabled: true,
6226
+ fillMode: "flat",
6227
+ size,
6228
+ rounded: null,
6229
+ icon: dir === "rtl" ? "caret-alt-to-right" : "caret-alt-to-left"
6230
+ }
6231
+ ),
6232
+ /* @__PURE__ */ jsx91(
6233
+ Button,
6234
+ {
6235
+ className: classNames(
6236
+ "k-pager-nav"
6237
+ ),
6238
+ disabled: true,
6239
+ fillMode: "flat",
6240
+ size,
6241
+ rounded: null,
6242
+ icon: dir === "rtl" ? "caret-alt-right" : "caret-alt-left"
6243
+ }
6244
+ ),
6245
+ type === "numeric" && !adaptive && /* @__PURE__ */ jsxs29(
6246
+ "div",
6247
+ {
6248
+ className: classNames(
6249
+ "k-pager-numbers"
6250
+ ),
6251
+ children: [
6252
+ /* @__PURE__ */ jsx91(
6253
+ Button,
6254
+ {
6255
+ selected: true,
6256
+ fillMode: "flat",
6257
+ themeColor: "primary",
6258
+ size,
6259
+ rounded: null,
6260
+ children: "1"
6261
+ }
6262
+ ),
6263
+ /* @__PURE__ */ jsx91(
6264
+ Button,
6265
+ {
6266
+ fillMode: "flat",
6267
+ themeColor: "primary",
6268
+ size,
6269
+ rounded: null,
6270
+ children: "2"
6271
+ }
6272
+ ),
6273
+ /* @__PURE__ */ jsx91(
6274
+ Button,
6275
+ {
6276
+ fillMode: "flat",
6277
+ themeColor: "primary",
6278
+ size,
6279
+ rounded: null,
6280
+ children: "3"
6281
+ }
6282
+ ),
6283
+ /* @__PURE__ */ jsx91(
6284
+ Button,
6285
+ {
6286
+ fillMode: "flat",
6287
+ themeColor: "primary",
6288
+ size,
6289
+ rounded: null,
6290
+ children: "4"
6291
+ }
6292
+ ),
6293
+ /* @__PURE__ */ jsx91(
6294
+ Button,
6295
+ {
6296
+ fillMode: "flat",
6297
+ themeColor: "primary",
6298
+ size,
6299
+ rounded: null,
6300
+ children: "5"
6301
+ }
6302
+ ),
6303
+ /* @__PURE__ */ jsx91(
6304
+ Button,
6305
+ {
6306
+ fillMode: "flat",
6307
+ themeColor: "primary",
6308
+ size,
6309
+ rounded: null,
6310
+ children: "6"
6311
+ }
6312
+ )
6313
+ ]
6314
+ }
6315
+ ),
6316
+ type === "numeric" && /* @__PURE__ */ jsx91(
6317
+ "select",
6318
+ {
6319
+ className: classNames(
6320
+ "k-picker",
6321
+ "k-picker-solid",
6322
+ "k-dropdown-list",
6323
+ "k-dropdown",
6324
+ "k-rounded-md",
6325
+ optionClassNames("k-picker", {
6326
+ size
6327
+ }),
6328
+ {
6329
+ ["k-hidden"]: !adaptive
6330
+ }
6331
+ ),
6332
+ children: /* @__PURE__ */ jsx91("option", { children: "99" })
6333
+ }
6334
+ ),
6335
+ type === "input" && /* @__PURE__ */ jsxs29(
6336
+ "span",
6337
+ {
6338
+ className: classNames(
6339
+ "k-pager-input"
6340
+ ),
6341
+ children: [
6342
+ !adaptive && /* @__PURE__ */ jsx91("span", { children: "Page" }),
6343
+ /* @__PURE__ */ jsx91(NumericTextbox, { value: "999", size, showSpinButton: false, showClearButton: false }),
6344
+ !adaptive && /* @__PURE__ */ jsx91("span", { children: "of 8" })
6345
+ ]
6346
+ }
6347
+ ),
6348
+ /* @__PURE__ */ jsx91(
6349
+ Button,
6350
+ {
6351
+ className: classNames(
6352
+ "k-pager-nav"
6353
+ ),
6354
+ fillMode: "flat",
6355
+ size,
6356
+ rounded: null,
6357
+ icon: dir === "rtl" ? "caret-alt-left" : "caret-alt-right"
6358
+ }
6359
+ ),
6360
+ /* @__PURE__ */ jsx91(
6361
+ Button,
6362
+ {
6363
+ className: classNames(
6364
+ "k-pager-nav",
6365
+ "k-pager-last"
6366
+ ),
6367
+ fillMode: "flat",
6368
+ size,
6369
+ rounded: null,
6370
+ icon: dir === "rtl" ? "caret-alt-to-left" : "caret-alt-to-right"
6371
+ }
6372
+ )
6373
+ ]
6374
+ }
6375
+ ),
6376
+ pageSizes && /* @__PURE__ */ jsxs29(
6377
+ "span",
6378
+ {
6379
+ className: classNames(
6380
+ "k-pager-sizes"
6381
+ ),
6382
+ children: [
6383
+ /* @__PURE__ */ jsx91(DropdownList, { value: "99", size }),
6384
+ itemsPerPage && /* @__PURE__ */ jsx91("span", { children: "items per page" })
6385
+ ]
6386
+ }
6387
+ ),
6388
+ refresh && /* @__PURE__ */ jsx91(
6389
+ Button,
6390
+ {
6391
+ className: classNames(
6392
+ "k-pager-refresh"
6393
+ ),
6394
+ fillMode: "flat",
6395
+ size,
6396
+ rounded: null,
6397
+ icon: "arrow-rotate-cw"
6398
+ }
6399
+ ),
6400
+ info && /* @__PURE__ */ jsx91(
6401
+ "span",
6402
+ {
6403
+ className: classNames(
6404
+ "k-pager-info"
6405
+ ),
6406
+ children: "1 - 20 of 91 items"
6407
+ }
6408
+ )
6409
+ ]
6410
+ }
6411
+ );
6412
+ };
6413
+ Pager.states = states32;
6414
+ Pager.options = options28;
6415
+ Pager.className = PAGER_CLASSNAME;
6416
+ Pager.defaultProps = defaultProps30;
6417
+
6418
+ // src/pager/templates/pager-normal.tsx
6419
+ import { jsx as jsx92 } from "react/jsx-runtime";
6420
+
6421
+ // src/pager/templates/pager-input.tsx
6422
+ import { jsx as jsx93 } from "react/jsx-runtime";
6423
+
6424
+ // src/pager/templates/pager-adaptive.tsx
6425
+ import { jsx as jsx94 } from "react/jsx-runtime";
6426
+
6427
+ // src/pager/templates/pager-adaptive-input.tsx
6428
+ import { jsx as jsx95 } from "react/jsx-runtime";
6429
+
6430
+ // src/grid/grid-pager.spec.tsx
6431
+ import { jsx as jsx96 } from "react/jsx-runtime";
6432
+
6433
+ // src/button-group/button-group.spec.tsx
6434
+ import { jsx as jsx97 } from "react/jsx-runtime";
6435
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
6436
+ var states33 = [
6437
+ States.disabled
6438
+ ];
6439
+ var options29 = {
6440
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
6441
+ };
6442
+ var defaultProps31 = {
6443
+ fillMode: FillMode.solid
6444
+ };
6445
+ var ButtonGroup = (props) => {
6446
+ const {
6447
+ fillMode = defaultProps31.fillMode,
6448
+ disabled,
6449
+ stretched,
6450
+ ...other
6451
+ } = props;
6452
+ return /* @__PURE__ */ jsx97(
6453
+ "div",
6454
+ {
6455
+ ...other,
6456
+ className: classNames(
6457
+ props.className,
6458
+ BUTTONGROUP_CLASSNAME,
6459
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
6460
+ fillMode
6461
+ }),
6462
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
6463
+ disabled
6464
+ }),
6465
+ {
6466
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
6467
+ }
6468
+ ),
6469
+ children: props.children
6470
+ }
6471
+ );
6472
+ };
6473
+ ButtonGroup.states = states33;
6474
+ ButtonGroup.options = options29;
6475
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
6476
+ ButtonGroup.defaultProps = defaultProps31;
6477
+
6478
+ // src/button-group/templates/icon-button-group.tsx
6479
+ import { jsx as jsx98, jsxs as jsxs30 } from "react/jsx-runtime";
6480
+
6481
+ // src/button-group/templates/icon-text-button-group.tsx
6482
+ import { jsx as jsx99, jsxs as jsxs31 } from "react/jsx-runtime";
6483
+
6484
+ // src/button-group/templates/text-button-group.tsx
6485
+ import { jsx as jsx100, jsxs as jsxs32 } from "react/jsx-runtime";
6486
+
6487
+ // src/button-group/templates/mixed-button-group.tsx
6488
+ import { jsx as jsx101, jsxs as jsxs33 } from "react/jsx-runtime";
6489
+
6490
+ // src/color-preview/color-preview.tsx
6491
+ import { jsx as jsx102, jsxs as jsxs34 } from "react/jsx-runtime";
6492
+ var COLORPREVIEW_CLASSNAME = `k-color-preview`;
6493
+ var states34 = [];
6494
+ var options30 = {};
6495
+ var ColorPreview = (props) => {
6496
+ const {
6497
+ color,
6498
+ iconName,
6499
+ ...other
6500
+ } = props;
6501
+ return /* @__PURE__ */ jsxs34(
6502
+ "span",
6503
+ {
6504
+ ...other,
6505
+ className: classNames(
6506
+ props.className,
6507
+ COLORPREVIEW_CLASSNAME,
6508
+ {
6509
+ "k-icon-color-preview": iconName,
6510
+ "k-no-color": !color
6511
+ }
6512
+ ),
6513
+ children: [
6514
+ iconName && /* @__PURE__ */ jsx102(Icon, { icon: iconName, className: "k-color-preview-icon" }),
6515
+ /* @__PURE__ */ jsx102(
6516
+ "span",
6517
+ {
6518
+ className: "k-color-preview-mask",
6519
+ style: { backgroundColor: color }
6520
+ }
6521
+ )
6522
+ ]
6523
+ }
6524
+ );
6525
+ };
6526
+ ColorPreview.states = states34;
6527
+ ColorPreview.options = options30;
6528
+ ColorPreview.className = COLORPREVIEW_CLASSNAME;
6529
+
6530
+ // src/colorpicker/colorpicker.spec.tsx
6531
+ import { Fragment as Fragment19, jsx as jsx103, jsxs as jsxs35 } from "react/jsx-runtime";
6532
+ var COLORPICKER_CLASSNAME = `k-colorpicker`;
6533
+ var states35 = [
6534
+ States.hover,
6535
+ States.focus,
6536
+ States.valid,
6537
+ States.invalid,
6538
+ States.required,
6539
+ States.disabled
6540
+ ];
6541
+ var options31 = {
6542
+ size: [Size.small, Size.medium, Size.large],
6543
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6544
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6545
+ };
6546
+ var defaultProps32 = {
6547
+ arrowIconName: "caret-alt-down",
6548
+ size: Picker.defaultProps.size,
6549
+ rounded: Picker.defaultProps.rounded,
6550
+ fillMode: Picker.defaultProps.fillMode
6551
+ };
6552
+ var ColorPicker = (props) => {
6553
+ const {
6554
+ prefix,
6555
+ suffix,
6556
+ value,
6557
+ placeholder,
6558
+ size,
6559
+ rounded,
6560
+ fillMode,
6561
+ hover,
6562
+ focus,
6563
+ valid,
6564
+ invalid,
6565
+ required,
6566
+ disabled,
6567
+ valueIconName,
6568
+ arrowIconName = defaultProps32.arrowIconName,
6569
+ popup,
6570
+ opened,
6571
+ ...other
6572
+ } = props;
6573
+ return /* @__PURE__ */ jsxs35(Fragment19, { children: [
6574
+ /* @__PURE__ */ jsxs35(
6575
+ Picker,
6576
+ {
6577
+ ...other,
6578
+ size,
6579
+ rounded,
6580
+ fillMode,
6581
+ hover,
6582
+ focus,
6583
+ valid,
6584
+ invalid,
6585
+ required,
6586
+ disabled,
6587
+ className: classNames(
6588
+ props.className,
6589
+ COLORPICKER_CLASSNAME,
6590
+ "k-icon-picker"
6591
+ ),
6592
+ children: [
6593
+ /* @__PURE__ */ jsx103(InputPrefix, { children: prefix }),
6594
+ /* @__PURE__ */ jsx103(
6595
+ InputInnerSpan,
6596
+ {
6597
+ placeholder,
6598
+ value,
6599
+ showValue: false,
6600
+ valueIcon: /* @__PURE__ */ jsx103(
6601
+ ColorPreview,
6602
+ {
6603
+ className: "k-value-icon",
6604
+ color: value,
6605
+ iconName: valueIconName
6606
+ }
6607
+ ),
6608
+ valueIconName
6609
+ }
6610
+ ),
6611
+ /* @__PURE__ */ jsx103(InputSuffix, { children: suffix }),
6612
+ /* @__PURE__ */ jsx103(
6613
+ Button,
6614
+ {
6615
+ className: "k-input-button",
6616
+ icon: arrowIconName,
6617
+ rounded: null,
6618
+ size,
6619
+ fillMode
6620
+ }
6621
+ )
6622
+ ]
6623
+ }
6624
+ ),
6625
+ opened && popup && /* @__PURE__ */ jsx103(Popup, { className: "k-color-picker-popup", children: popup })
6626
+ ] });
6627
+ };
6628
+ ColorPicker.states = states35;
6629
+ ColorPicker.options = options31;
6630
+ ColorPicker.className = COLORPICKER_CLASSNAME;
6631
+ ColorPicker.defaultProps = defaultProps32;
6632
+
6633
+ // src/colorpicker/templates/colorpicker-normal.tsx
6634
+ import { jsx as jsx104 } from "react/jsx-runtime";
6635
+
6636
+ // src/action-buttons/action-buttons.spec.tsx
6637
+ import { jsx as jsx105 } from "react/jsx-runtime";
6638
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
6639
+ var states36 = [];
6640
+ var options32 = {};
6641
+ var defaultProps33 = {
6642
+ alignment: "start",
6643
+ orientation: "horizontal"
6644
+ };
6645
+ var ActionButtons = (props) => {
6646
+ const {
6647
+ alignment = defaultProps33.alignment,
6648
+ orientation = defaultProps33.orientation,
6649
+ ...other
6650
+ } = props;
6651
+ return /* @__PURE__ */ jsx105(
6652
+ "div",
6653
+ {
6654
+ ...other,
6655
+ className: classNames(
6656
+ ACTIONBUTTONS_CLASSNAME,
6657
+ {
6658
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
6659
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
6660
+ },
6661
+ props.className
6662
+ ),
6663
+ children: props.children
6664
+ }
6665
+ );
6666
+ };
6667
+ ActionButtons.states = states36;
6668
+ ActionButtons.options = options32;
6669
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
6670
+ ActionButtons.defaultProps = defaultProps33;
6671
+ var action_buttons_spec_default = ActionButtons;
6672
+
6673
+ // src/slider/slider.spec.tsx
6674
+ import { jsx as jsx106, jsxs as jsxs36 } from "react/jsx-runtime";
6675
+ var SLIDER_CLASSNAME = "k-slider";
6676
+ var states37 = [
6677
+ States.hover,
6678
+ States.focus,
6679
+ States.active,
6680
+ States.disabled,
6681
+ States.readonly
6682
+ ];
6683
+ var options33 = {};
6684
+ var defaultProps34 = {
6685
+ type: "single",
6686
+ orientation: "horizontal",
6687
+ readonly: false,
6688
+ disabled: false,
6689
+ handlePosition: "end",
6690
+ showButtons: true,
6691
+ showTicks: true
6692
+ };
6693
+ var Slider = (props) => {
6694
+ const {
6695
+ type = defaultProps34.type,
6696
+ orientation = defaultProps34.orientation,
6697
+ readonly = defaultProps34.readonly,
6698
+ disabled = defaultProps34.disabled,
6699
+ handlePosition = defaultProps34.handlePosition,
6700
+ showButtons = defaultProps34.showButtons,
6701
+ showTicks = defaultProps34.showTicks,
6702
+ hover,
6703
+ focus,
6704
+ active,
6705
+ trackStyle,
6706
+ dir
6707
+ } = props;
6708
+ let iconIncrease;
6709
+ let iconDecrease;
6710
+ if (orientation === "horizontal") {
6711
+ iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
6712
+ iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
6713
+ } else if (orientation === "vertical") {
6714
+ iconIncrease = "caret-alt-up";
6715
+ iconDecrease = "caret-alt-down";
6716
+ }
6717
+ return /* @__PURE__ */ jsxs36("div", { className: classNames(
6718
+ SLIDER_CLASSNAME,
6719
+ props.className,
6720
+ stateClassNames(SLIDER_CLASSNAME, {
6721
+ readonly,
6722
+ disabled
6723
+ }),
6724
+ {
6725
+ [`k-slider-${orientation}`]: orientation,
6726
+ "k-colorgradient-slider": type === "gradient",
6727
+ "k-range-slider": type === "range"
6728
+ }
6729
+ ), dir, children: [
6730
+ showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
6731
+ /* @__PURE__ */ jsxs36("div", { className: "k-slider-track-wrap", children: [
6732
+ showTicks && /* @__PURE__ */ jsx106("ul", { className: "k-reset k-slider-items", children: props.children }),
6733
+ /* @__PURE__ */ jsxs36("div", { className: "k-slider-track", style: trackStyle, children: [
6734
+ /* @__PURE__ */ jsx106("div", { className: "k-slider-selection" }),
6735
+ type === "range" && /* @__PURE__ */ jsx106("span", { className: classNames(
6736
+ "k-draghandle",
6737
+ "k-draghandle-start",
6738
+ stateClassNames(SLIDER_CLASSNAME, {
6739
+ hover,
6740
+ focus,
6741
+ active
6742
+ })
6743
+ ) }),
6744
+ /* @__PURE__ */ jsx106("span", { className: classNames(
6745
+ "k-draghandle",
6746
+ `k-draghandle-${handlePosition}`,
6747
+ stateClassNames(SLIDER_CLASSNAME, {
6748
+ hover,
6749
+ focus,
6750
+ active
6751
+ })
6752
+ ) })
6753
+ ] })
6754
+ ] }),
6755
+ showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
6756
+ ] });
6757
+ };
6758
+ Slider.states = states37;
6759
+ Slider.options = options33;
6760
+ Slider.className = SLIDER_CLASSNAME;
6761
+ Slider.defaultProps = defaultProps34;
6762
+
6763
+ // src/slider/slider-tick.tsx
6764
+ import { jsx as jsx107 } from "react/jsx-runtime";
6765
+ var SLIDER_TICK_CLASSNAME = "k-tick";
6766
+ var states38 = [];
6767
+ var options34 = {};
6768
+ var defaultProps35 = {
6769
+ label: false
6770
+ };
6771
+ var SliderTick = (props) => {
6772
+ const {
6773
+ style,
6774
+ label = defaultProps35.label,
6775
+ orientation,
6776
+ large,
6777
+ text
6778
+ } = props;
6779
+ return /* @__PURE__ */ jsx107("li", { className: classNames(
6780
+ props.className,
6781
+ SLIDER_TICK_CLASSNAME,
6782
+ {
6783
+ [`k-tick-${orientation}`]: orientation,
6784
+ "k-tick-large": large
6785
+ }
6786
+ ), style, children: label && /* @__PURE__ */ jsx107("span", { className: "k-label", children: text }) });
6787
+ };
6788
+ SliderTick.states = states38;
6789
+ SliderTick.options = options34;
6790
+ SliderTick.className = SLIDER_TICK_CLASSNAME;
6791
+ SliderTick.defaultProps = defaultProps35;
6792
+
6793
+ // src/slider/templates/slider-normal.tsx
6794
+ import { Fragment as Fragment20, jsx as jsx108, jsxs as jsxs37 } from "react/jsx-runtime";
6795
+
6796
+ // src/slider/templates/slider-vertical.tsx
6797
+ import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs38 } from "react/jsx-runtime";
6798
+
6799
+ // src/slider/templates/slider-range.tsx
6800
+ import { Fragment as Fragment22, jsx as jsx110, jsxs as jsxs39 } from "react/jsx-runtime";
6801
+
6802
+ // src/slider/templates/slider-range-vertical.tsx
6803
+ import { Fragment as Fragment23, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
6804
+
6805
+ // src/slider/templates/slider-gradient.tsx
6806
+ import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs41 } from "react/jsx-runtime";
6807
+
6808
+ // src/slider/templates/slider-gradient-vertical.tsx
6809
+ import { Fragment as Fragment25, jsx as jsx113, jsxs as jsxs42 } from "react/jsx-runtime";
6810
+ var SliderGradientVertical = (props) => /* @__PURE__ */ jsx113(
6811
+ Slider,
6812
+ {
6813
+ type: "gradient",
6814
+ orientation: "vertical",
6815
+ showButtons: false,
6816
+ showTicks: false,
6817
+ children: /* @__PURE__ */ jsxs42(Fragment25, { children: [
6818
+ /* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "0" }),
6819
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6820
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6821
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6822
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6823
+ /* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "5" }),
6824
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6825
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6826
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6827
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6828
+ /* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "10" })
6829
+ ] }),
6830
+ ...props
6831
+ }
6832
+ );
6833
+
6834
+ // src/textbox/textbox.spec.tsx
6835
+ import { Fragment as Fragment26, jsx as jsx114, jsxs as jsxs43 } from "react/jsx-runtime";
6836
+ var TEXTBOX_CLASSNAME = `k-textbox`;
6837
+ var states39 = [
6838
+ States.hover,
6839
+ States.focus,
6840
+ States.valid,
6841
+ States.invalid,
6842
+ States.required,
6843
+ States.disabled,
6844
+ States.loading,
6845
+ States.readonly
6846
+ ];
6847
+ var options35 = {
6848
+ size: [Size.small, Size.medium, Size.large],
6849
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6850
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6851
+ };
6852
+ var defaultProps36 = {
6853
+ showClearButton: true,
6854
+ size: Input.defaultProps.size,
6855
+ rounded: Input.defaultProps.rounded,
6856
+ fillMode: Input.defaultProps.fillMode
6857
+ };
6858
+ var Textbox = (props) => {
6859
+ const {
6860
+ prefix,
6861
+ suffix,
6862
+ value,
6863
+ placeholder,
6864
+ size,
6865
+ rounded,
6866
+ fillMode,
6867
+ hover,
6868
+ focus,
6869
+ valid,
6870
+ invalid,
6871
+ required,
6872
+ loading,
6873
+ disabled,
6874
+ readonly,
6875
+ showClearButton = defaultProps36.showClearButton,
6876
+ ...other
6877
+ } = props;
6878
+ return /* @__PURE__ */ jsxs43(
6879
+ Input,
6880
+ {
6881
+ ...other,
6882
+ size,
6883
+ rounded,
6884
+ fillMode,
6885
+ hover,
6886
+ focus,
6887
+ valid,
6888
+ invalid,
6889
+ required,
6890
+ loading,
6891
+ disabled,
6892
+ readonly,
6893
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
6894
+ children: [
6895
+ prefix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
6896
+ /* @__PURE__ */ jsx114(InputPrefix, { children: prefix }),
6897
+ /* @__PURE__ */ jsx114(InputSeparator, {})
6898
+ ] }),
6899
+ /* @__PURE__ */ jsx114(InputInnerInput, { placeholder, value }),
6900
+ /* @__PURE__ */ jsx114(
6901
+ InputValidationIcon,
6902
+ {
6903
+ valid,
6904
+ invalid,
6905
+ loading,
6906
+ disabled
6907
+ }
6908
+ ),
6909
+ /* @__PURE__ */ jsx114(
6910
+ InputLoadingIcon,
6911
+ {
6912
+ loading,
6913
+ disabled
6914
+ }
6915
+ ),
6916
+ showClearButton && /* @__PURE__ */ jsx114(
6917
+ InputClearValue,
6918
+ {
6919
+ loading,
6920
+ disabled,
6921
+ readonly,
6922
+ value
6923
+ }
6924
+ ),
6925
+ suffix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
6926
+ /* @__PURE__ */ jsx114(InputSeparator, {}),
6927
+ /* @__PURE__ */ jsx114(InputSuffix, { children: suffix })
6928
+ ] })
6929
+ ]
6930
+ }
6931
+ );
6932
+ };
6933
+ Textbox.states = states39;
6934
+ Textbox.options = options35;
6935
+ Textbox.className = TEXTBOX_CLASSNAME;
6936
+ Textbox.defaultProps = defaultProps36;
6937
+
6938
+ // src/textbox/templates/textbox-normal.tsx
6939
+ import { jsx as jsx115 } from "react/jsx-runtime";
6940
+
6941
+ // src/textbox/templates/textbox-prefix.tsx
6942
+ import { Fragment as Fragment27, jsx as jsx116 } from "react/jsx-runtime";
6943
+
6944
+ // src/textbox/templates/textbox-suffix.tsx
6945
+ import { Fragment as Fragment28, jsx as jsx117 } from "react/jsx-runtime";
6946
+
6947
+ // src/colorgradient/color-input.tsx
6948
+ import { Fragment as Fragment29, jsx as jsx118, jsxs as jsxs44 } from "react/jsx-runtime";
6949
+ var COLOR_INPUT_CLASSNAME = "k-colorgradient-inputs";
6950
+ var states40 = [];
6951
+ var options36 = {};
6952
+ var defaultProps37 = {
6953
+ mode: "rgba"
6954
+ };
6955
+ var ColorInput = (props) => {
6956
+ const {
6957
+ mode = defaultProps37.mode
6958
+ } = props;
6959
+ return /* @__PURE__ */ jsxs44("div", { className: classNames(COLOR_INPUT_CLASSNAME, "k-hstack"), children: [
6960
+ /* @__PURE__ */ jsx118("div", { className: "k-vstack", children: /* @__PURE__ */ jsx118(Button, { fillMode: "flat", icon: "caret-alt-expand", className: "k-colorgradient-toggle-mode" }) }),
6961
+ mode === "rgba" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
6962
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6963
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6964
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
6965
+ ] }),
6966
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6967
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6968
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
6969
+ ] }),
6970
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6971
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6972
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
6973
+ ] }),
6974
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6975
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
6976
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
6977
+ ] })
6978
+ ] }),
6979
+ mode === "rgb" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
6980
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6981
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6982
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
6983
+ ] }),
6984
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6985
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6986
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
6987
+ ] }),
6988
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6989
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6990
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
6991
+ ] })
6992
+ ] }),
6993
+ mode === "hsva" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
6994
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6995
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6996
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
6997
+ ] }),
6998
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
6999
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7000
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
7001
+ ] }),
7002
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7003
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7004
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
7005
+ ] }),
7006
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7007
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
7008
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
7009
+ ] })
7010
+ ] }),
7011
+ mode === "hsv" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
7012
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7013
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7014
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
7015
+ ] }),
7016
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7017
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7018
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
7019
+ ] }),
7020
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7021
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7022
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
7023
+ ] })
7024
+ ] }),
7025
+ mode === "hex" && /* @__PURE__ */ jsx118(Fragment29, { children: /* @__PURE__ */ jsxs44("div", { className: "k-vstack k-flex-1", children: [
7026
+ /* @__PURE__ */ jsx118(Textbox, { showClearButton: false, value: "#b88484AA", className: "k-hex-value" }),
7027
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "HEX" })
7028
+ ] }) })
7029
+ ] });
7030
+ };
7031
+ ColorInput.states = states40;
7032
+ ColorInput.options = options36;
7033
+ ColorInput.className = COLOR_INPUT_CLASSNAME;
7034
+ ColorInput.defaultProps = defaultProps37;
7035
+
7036
+ // src/colorgradient/color-contrast.tsx
7037
+ import { jsx as jsx119, jsxs as jsxs45 } from "react/jsx-runtime";
7038
+ var COLOR_CONTRAST_CLASSNAME = "k-colorgradient-color-contrast";
7039
+ var states41 = [];
7040
+ var options37 = {};
7041
+ var defaultProps38 = {};
7042
+ var ColorContrast = () => /* @__PURE__ */ jsxs45("div", { className: classNames(COLOR_CONTRAST_CLASSNAME, "k-vbox"), children: [
7043
+ /* @__PURE__ */ jsxs45("div", { className: "k-contrast-ratio", children: [
7044
+ /* @__PURE__ */ jsx119("span", { className: "k-contrast-ratio-text", children: "Contrast ratio: 7.1" }),
7045
+ /* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
7046
+ /* @__PURE__ */ jsx119(Icon, { icon: "check" }),
7047
+ /* @__PURE__ */ jsx119(Icon, { icon: "check" })
7048
+ ] })
7049
+ ] }),
7050
+ /* @__PURE__ */ jsxs45("div", { children: [
7051
+ /* @__PURE__ */ jsx119("span", { children: "AA: 4.5" }),
7052
+ /* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
7053
+ "Pass",
7054
+ /* @__PURE__ */ jsx119(Icon, { icon: "check" })
7055
+ ] })
7056
+ ] }),
7057
+ /* @__PURE__ */ jsxs45("div", { children: [
7058
+ /* @__PURE__ */ jsx119("span", { children: "AAA: 7.0" }),
7059
+ /* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-error", children: [
7060
+ "Fail",
7061
+ /* @__PURE__ */ jsx119(Icon, { icon: "x" })
7062
+ ] })
7063
+ ] })
7064
+ ] });
7065
+ ColorContrast.states = states41;
7066
+ ColorContrast.options = options37;
7067
+ ColorContrast.className = COLOR_CONTRAST_CLASSNAME;
7068
+ ColorContrast.defaultProps = defaultProps38;
7069
+
7070
+ // src/colorgradient/color-gradient.spec.tsx
7071
+ import { jsx as jsx120, jsxs as jsxs46 } from "react/jsx-runtime";
7072
+ var COLOR_GRADIENT_CLASSNAME = "k-colorgradient";
7073
+ var states42 = [
7074
+ States.hover,
7075
+ States.focus,
7076
+ States.readonly,
7077
+ States.disabled
7078
+ ];
7079
+ var options38 = {};
7080
+ var defaultProps39 = {
7081
+ mode: "rgba",
7082
+ readonly: false,
7083
+ disabled: false,
7084
+ contrast: false,
7085
+ gradientStyle: { background: "rgb(255, 0, 0 )" },
7086
+ dragHandleStyle: { top: "50px", left: "73px" },
7087
+ alphaStyle: { background: "linear-gradient(to top, transparent, rgb(255, 0, 0))" }
7088
+ };
7089
+ var ColorGradient = (props) => {
7090
+ const {
7091
+ mode = defaultProps39.mode,
7092
+ readonly = defaultProps39.readonly,
7093
+ disabled = defaultProps39.disabled,
7094
+ dir,
7095
+ contrast = defaultProps39.contrast,
7096
+ hover,
7097
+ focus,
7098
+ hoverHandle,
7099
+ focusHandle,
7100
+ gradientStyle = defaultProps39.gradientStyle,
7101
+ dragHandleStyle = defaultProps39.dragHandleStyle,
7102
+ alphaStyle = defaultProps39.alphaStyle
7103
+ } = props;
7104
+ return /* @__PURE__ */ jsxs46("div", { className: classNames(
7105
+ props.className,
7106
+ COLOR_GRADIENT_CLASSNAME,
7107
+ stateClassNames(COLOR_GRADIENT_CLASSNAME, {
7108
+ hover,
7109
+ focus,
7110
+ readonly,
7111
+ disabled
7112
+ })
7113
+ ), dir, children: [
7114
+ /* @__PURE__ */ jsxs46("div", { className: "k-colorgradient-canvas k-hstack", children: [
7115
+ /* @__PURE__ */ jsx120("div", { className: "k-hsv-rectangle", style: gradientStyle, children: /* @__PURE__ */ jsx120("div", { className: "k-hsv-gradient", children: /* @__PURE__ */ jsx120("div", { className: classNames(
7116
+ "k-hsv-draghandle",
7117
+ "k-draghandle",
7118
+ {
7119
+ "k-hover": hoverHandle,
7120
+ "k-focus": focusHandle
7121
+ }
7122
+ ), style: dragHandleStyle }) }) }),
7123
+ /* @__PURE__ */ jsxs46("div", { className: "k-hsv-controls k-hstack", children: [
7124
+ /* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-hue-slider", hover: hoverHandle, focus: focusHandle }),
7125
+ mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-alpha-slider", hover: hoverHandle, focus: focusHandle, trackStyle: alphaStyle })
7126
+ ] })
7127
+ ] }),
7128
+ /* @__PURE__ */ jsx120(ColorInput, { mode: props.mode }),
7129
+ contrast && /* @__PURE__ */ jsx120(ColorContrast, {})
7130
+ ] });
7131
+ };
7132
+ ColorGradient.states = states42;
7133
+ ColorGradient.options = options38;
7134
+ ColorGradient.className = COLOR_GRADIENT_CLASSNAME;
7135
+ ColorGradient.defaultProps = defaultProps39;
7136
+
7137
+ // src/colorgradient/templates/colorgradient-normal.tsx
7138
+ import { jsx as jsx121 } from "react/jsx-runtime";
7139
+
7140
+ // src/colorgradient/templates/colorgradient-contrast.tsx
7141
+ import { jsx as jsx122 } from "react/jsx-runtime";
7142
+
7143
+ // src/colorpalette/colorpalette-row.tsx
7144
+ import { jsx as jsx123 } from "react/jsx-runtime";
7145
+ var ColorPaletteRow = (props) => /* @__PURE__ */ jsx123("tr", { children: props.children });
7146
+
7147
+ // src/colorpalette/colorpalette-tile.tsx
7148
+ import { jsx as jsx124 } from "react/jsx-runtime";
7149
+ var COLORPALETTETILE_CLASSNAME = `k-colorpalette-tile`;
7150
+ var states43 = [
7151
+ States.hover,
7152
+ States.focus,
7153
+ States.selected
7154
+ ];
7155
+ var options39 = {};
7156
+ var ColorPaletteTile = (props) => {
7157
+ const {
7158
+ color,
7159
+ tileSize,
7160
+ hover,
7161
+ focus,
7162
+ selected,
7163
+ ...other
7164
+ } = props;
7165
+ const styles2 = {
7166
+ "background-color": color,
7167
+ "width": tileSize ? tileSize + "px" : "",
7168
+ "height": tileSize ? tileSize + "px" : ""
7169
+ };
7170
+ return /* @__PURE__ */ jsx124(
7171
+ "td",
7172
+ {
7173
+ ...other,
7174
+ className: classNames(
7175
+ props.className,
7176
+ COLORPALETTETILE_CLASSNAME,
7177
+ stateClassNames(COLORPALETTETILE_CLASSNAME, {
7178
+ hover,
7179
+ focus,
7180
+ selected
7181
+ })
7182
+ ),
7183
+ style: styles2
7184
+ }
7185
+ );
7186
+ };
7187
+ ColorPaletteTile.states = states43;
7188
+ ColorPaletteTile.options = options39;
7189
+ ColorPaletteTile.className = COLORPALETTETILE_CLASSNAME;
7190
+
7191
+ // src/colorpalette/colorpalette.spec.tsx
7192
+ import { jsx as jsx125 } from "react/jsx-runtime";
7193
+ var COLORPALETTE_CLASSNAME = `k-colorpalette`;
7194
+ var states44 = [
7195
+ States.disabled
7196
+ ];
7197
+ var options40 = {};
7198
+ var defaultProps40 = {
7199
+ columns: 10
7200
+ };
7201
+ var ColorPalette = (props) => {
7202
+ const {
7203
+ palette,
7204
+ columns = defaultProps40.columns,
7205
+ tileSize,
7206
+ disabled,
7207
+ ...other
7208
+ } = props;
7209
+ const newChildren = [];
7210
+ if (palette) {
7211
+ const cols = columns || palette.columns;
7212
+ const colors = palette.colors ? palette.colors : palette;
7213
+ if (Array.isArray(colors)) {
7214
+ Array.from({ length: Math.ceil(colors.length / cols) }, (_, i) => {
7215
+ const items = [];
7216
+ colors.slice(i * cols, (i + 1) * cols).map((color) => {
7217
+ items.push(/* @__PURE__ */ jsx125(ColorPaletteTile, { color, tileSize }));
7218
+ });
7219
+ const row = /* @__PURE__ */ jsx125(ColorPaletteRow, { children: items });
7220
+ newChildren.push(row);
7221
+ });
7222
+ }
7223
+ }
7224
+ return /* @__PURE__ */ jsx125(
7225
+ "div",
7226
+ {
7227
+ ...other,
7228
+ className: classNames(
7229
+ props.className,
7230
+ COLORPALETTE_CLASSNAME,
7231
+ stateClassNames(COLORPALETTE_CLASSNAME, {
7232
+ disabled
7233
+ })
7234
+ ),
7235
+ children: /* @__PURE__ */ jsx125("table", { className: "k-colorpalette-table", children: newChildren.length > 0 ? newChildren : props.children })
7236
+ }
7237
+ );
7238
+ };
7239
+ ColorPalette.states = states44;
7240
+ ColorPalette.options = options40;
7241
+ ColorPalette.className = COLORPALETTE_CLASSNAME;
7242
+ ColorPalette.defaultProps = defaultProps40;
7243
+
7244
+ // src/colorpalette/templates/colorpalette-normal.tsx
7245
+ import { jsx as jsx126 } from "react/jsx-runtime";
7246
+
7247
+ // src/colorpalette/colorpalette-presets.tsx
7248
+ var PALETTEPRESETS = {
7249
+ basic: {
7250
+ colors: ["#000000", "#7f7f7f", "#880015", "#ed1c24", "#ff7f27", "#fff200", "#22b14c", "#00a2e8", "#3f48cc", "#a349a4", "#ffffff", "#c3c3c3", "#b97a57", "#ffaec9", "#ffc90e", "#efe4b0", "#b5e61d", "#99d9ea", "#7092be", "#c8bfe7"],
7251
+ columns: 10
7252
+ },
7253
+ office: {
7254
+ colors: ["#ffffff", "#000000", "#e6e6e6", "#435569", "#4371c4", "#ed7e32", "#a5a4a5", "#febf04", "#5a9bd5", "#71ae48", "#f2f2f3", "#7f7f7f", "#d1cece", "#d5dde3", "#dae1f4", "#fce5d4", "#deeded", "#fff2cc", "#deeaf6", "#e1efd9", "#d7d8d8", "#585959", "#aeabab", "#adbaca", "#b4c5e7", "#f6caac", "#dbdbdb", "#ffe498", "#bcd6ee", "#c5e0b2", "#bfbfc0", "#3f3f3f", "#767070", "#8595b1", "#8fabdb", "#f5b183", "#c9c8c9", "#fed965", "#9bc4e5", "#a8d08d", "#a5a5a6", "#262625", "#393939", "#334050", "#2e5496", "#c45a11", "#7b7b7a", "#bf9000", "#2f75b5", "#548235", "#7f7f7f", "#0b0c0c", "#161616", "#222a34", "#203764", "#843d0b", "#525252", "#7f6000", "#1d4d79", "#375623"],
7255
+ columns: 10
7256
+ },
7257
+ apex: {
7258
+ colors: ["#ffffff", "#000000", "#c9c2d1", "#69676d", "#ceb966", "#9cb084", "#6bb1c9", "#6585cf", "#7e6bc9", "#a379bb", "#f2f2f2", "#7f7f7f", "#f4f2f5", "#e0e0e2", "#f5f1e0", "#ebefe6", "#e1eff4", "#e0e6f5", "#e5e1f4", "#ece4f1", "#d8d8d8", "#595959", "#e9e6ec", "#c2c1c5", "#ebe3c1", "#d7dfcd", "#c3dfe9", "#c1ceeb", "#cbc3e9", "#dac9e3", "#bfbfbf", "#3f3f3f", "#dedae3", "#a4a3a8", "#e1d5a3", "#c3cfb5", "#a6d0de", "#a2b5e2", "#b1a6de", "#c7aed6", "#a5a5a5", "#262626", "#9688a5", "#4e4d51", "#ae9638", "#758c5a", "#3d8da9", "#365bb0", "#533da9", "#7d4d99", "#7f7f7f", "#0c0c0c", "#635672", "#343336", "#746425", "#4e5d3c", "#295e70", "#243c75", "#372970", "#533366"],
7259
+ columns: 10
7260
+ },
7261
+ austin: {
7262
+ colors: ["#ffffff", "#000000", "#caf278", "#3e3d2d", "#94c600", "#71685a", "#ff6700", "#909465", "#956b43", "#fea022", "#f2f2f2", "#7f7f7f", "#f4fce4", "#dddcd0", "#efffc0", "#e3e1dc", "#ffe0cb", "#e8e9df", "#ece1d6", "#feecd2", "#d8d8d8", "#595959", "#e9f9c9", "#bbb9a1", "#dfff82", "#c8c3ba", "#ffc299", "#d2d4c0", "#dac3ad", "#fed9a6", "#bfbfbf", "#3f3f3f", "#dff7ae", "#ada598", "#cfff43", "#ada598", "#ffa365", "#bcbfa1", "#c8a585", "#fec67a", "#a5a5a5", "#262626", "#a9ea25", "#2e2d21", "#6f9400", "#544e43", "#bf4d00", "#6c6f4b", "#6f5032", "#d77b00", "#7f7f7f", "#0c0c0c", "#74a50f", "#1f1e16", "#4a6300", "#38342d", "#7f3300", "#484a32", "#4a3521", "#8f5200"],
7263
+ columns: 10
7264
+ },
7265
+ clarity: {
7266
+ colors: ["#ffffff", "#292934", "#f3f2dc", "#d2533c", "#93a299", "#ad8f67", "#726056", "#4c5a6a", "#808da0", "#79463d", "#f2f2f2", "#e7e7ec", "#e7e5b9", "#f6dcd8", "#e9ecea", "#eee8e0", "#e4dedb", "#d8dde3", "#e5e8ec", "#e9d6d3", "#d8d8d8", "#c4c4d1", "#d5d185", "#edbab1", "#d3d9d6", "#ded2c2", "#c9beb8", "#b2bcc8", "#ccd1d9", "#d3aea7", "#bfbfbf", "#8a8aa3", "#aca73b", "#e4978a", "#bec7c1", "#cdbba3", "#af9e94", "#8c9bac", "#b2bac6", "#bd857c", "#a5a5a5", "#56566e", "#56531d", "#a43925", "#6b7c72", "#866b48", "#554840", "#39434f", "#5c697b", "#5a342d", "#7f7f7f", "#3b3b4b", "#22210b", "#6d2619", "#47534c", "#594730", "#39302b", "#262d35", "#3d4652", "#3c231e"],
7267
+ columns: 10
7268
+ },
7269
+ slipstream: {
7270
+ colors: ["#ffffff", "#000000", "#b4dcfa", "#212745", "#4e67c8", "#5eccf3", "#a7ea52", "#5dceaf", "#ff8021", "#f14124", "#f2f2f2", "#7f7f7f", "#8bc9f7", "#c7cce4", "#dbe0f4", "#def4fc", "#edfadc", "#def5ef", "#ffe5d2", "#fcd9d3", "#d8d8d8", "#595959", "#4facf3", "#909aca", "#b8c2e9", "#beeafa", "#dbf6b9", "#beebdf", "#ffcca6", "#f9b3a7", "#bfbfbf", "#3f3f3f", "#0d78c9", "#5967af", "#94a3de", "#9ee0f7", "#caf297", "#9de1cf", "#ffb279", "#f68d7b", "#a5a5a5", "#262626", "#063c64", "#181d33", "#31479f", "#11b2eb", "#81d319", "#34ac8b", "#d85c00", "#c3260c", "#7f7f7f", "#0c0c0c", "#021828", "#101322", "#202f6a", "#0b769c", "#568c11", "#22725c", "#903d00", "#821908"],
7271
+ columns: 10
7272
+ },
7273
+ metro: {
7274
+ colors: ["#ffffff", "#000000", "#d6ecff", "#4e5b6f", "#7fd13b", "#ea157a", "#feb80a", "#00addc", "#738ac8", "#1ab39f", "#f2f2f2", "#7f7f7f", "#a7d6ff", "#d9dde4", "#e5f5d7", "#fad0e4", "#fef0cd", "#c5f2ff", "#e2e7f4", "#c9f7f1", "#d8d8d8", "#595959", "#60b5ff", "#b3bcca", "#cbecb0", "#f6a1c9", "#fee29c", "#8be6ff", "#c7d0e9", "#94efe3", "#bfbfbf", "#3f3f3f", "#007dea", "#8d9baf", "#b2e389", "#f272af", "#fed46b", "#51d9ff", "#aab8de", "#5fe7d5", "#a5a5a5", "#262626", "#003e75", "#3a4453", "#5ea226", "#af0f5b", "#c58c00", "#0081a5", "#425ea9", "#138677", "#7f7f7f", "#0c0c0c", "#00192e", "#272d37", "#3f6c19", "#750a3d", "#835d00", "#00566e", "#2c3f71", "#0c594f"],
7275
+ columns: 10
7276
+ },
7277
+ flow: {
7278
+ colors: ["#ffffff", "#000000", "#dbf5f9", "#04617b", "#0f6fc6", "#009dd9", "#0bd0d9", "#10cf9b", "#7cca62", "#a5c249", "#f2f2f2", "#7f7f7f", "#b2e9f2", "#b4ecfc", "#c7e2fa", "#c4eeff", "#c9fafc", "#c9faed", "#e4f4df", "#edf2da", "#d8d8d8", "#595959", "#76d9e8", "#6adafa", "#90c6f6", "#89deff", "#93f5f9", "#94f6db", "#cae9c0", "#dbe6b6", "#bfbfbf", "#3f3f3f", "#21b2c8", "#20c8f7", "#59a9f2", "#4fceff", "#5df0f6", "#5ff2ca", "#b0dfa0", "#c9da91", "#a5a5a5", "#262626", "#105964", "#02485c", "#0b5394", "#0075a2", "#089ca2", "#0b9b74", "#54a838", "#7e9532", "#7f7f7f", "#0c0c0c", "#062328", "#01303d", "#073763", "#004e6c", "#05686c", "#07674d", "#387025", "#546321"],
7279
+ columns: 10
7280
+ },
7281
+ hardcover: {
7282
+ colors: ["#ffffff", "#000000", "#ece9c6", "#895d1d", "#873624", "#d6862d", "#d0be40", "#877f6c", "#972109", "#aeb795", "#f2f2f2", "#7f7f7f", "#e1dca5", "#f2e0c6", "#f0d0c9", "#f6e6d5", "#f5f2d8", "#e7e5e1", "#fbc7bc", "#eef0e9", "#d8d8d8", "#595959", "#d0c974", "#e6c28d", "#e2a293", "#eeceaa", "#ece5b2", "#cfccc3", "#f78f7a", "#dee2d4", "#bfbfbf", "#3f3f3f", "#a29a36", "#daa454", "#d4735e", "#e6b681", "#e2d88c", "#b7b2a5", "#f35838", "#ced3bf", "#a5a5a5", "#262626", "#514d1b", "#664515", "#65281a", "#a2641f", "#a39428", "#655f50", "#711806", "#879464", "#7f7f7f", "#0c0c0c", "#201e0a", "#442e0e", "#431b11", "#6c4315", "#6d621a", "#433f35", "#4b1004", "#5a6243"],
7283
+ columns: 10
7284
+ },
7285
+ trek: {
7286
+ colors: ["#ffffff", "#000000", "#fbeec9", "#4e3b30", "#f0a22e", "#a5644e", "#b58b80", "#c3986d", "#a19574", "#c17529", "#f2f2f2", "#7f7f7f", "#f7e09e", "#e1d6cf", "#fcecd5", "#eddfda", "#f0e7e5", "#f3eae1", "#ece9e3", "#f5e3d1", "#d8d8d8", "#595959", "#f3cc5f", "#c4ad9f", "#f9d9ab", "#dcc0b6", "#e1d0cc", "#e7d5c4", "#d9d4c7", "#ebc7a3", "#bfbfbf", "#3f3f3f", "#d29f0f", "#a78470", "#f6c781", "#cba092", "#d2b9b2", "#dbc1a7", "#c6bfab", "#e1ac76", "#a5a5a5", "#262626", "#694f07", "#3a2c24", "#c87d0e", "#7b4b3a", "#926255", "#a17242", "#7b7153", "#90571e", "#7f7f7f", "#0c0c0c", "#2a1f03", "#271d18", "#855309", "#523226", "#614138", "#6b4c2c", "#524b37", "#603a14"],
7287
+ columns: 10
7288
+ },
7289
+ verve: {
7290
+ colors: ["#ffffff", "#000000", "#d2d2d2", "#666666", "#ff388c", "#e40059", "#9c007f", "#68007f", "#005bd3", "#00349e", "#f2f2f2", "#7f7f7f", "#bdbdbd", "#e0e0e0", "#ffd7e8", "#ffc6dc", "#ffb8f1", "#f1b2ff", "#c3dcff", "#b8cfff", "#d8d8d8", "#595959", "#9d9d9d", "#c1c1c1", "#ffafd1", "#ff8eba", "#ff71e4", "#e365ff", "#87baff", "#72a0ff", "#bfbfbf", "#3f3f3f", "#696969", "#a3a3a3", "#ff87ba", "#ff5597", "#ff2ad7", "#d519ff", "#4b98ff", "#2b71ff", "#a5a5a5", "#262626", "#343434", "#4c4c4c", "#e90062", "#ab0042", "#75005f", "#4e005f", "#00449e", "#002676", "#7f7f7f", "#0c0c0c", "#151515", "#333333", "#9b0041", "#72002c", "#4e003f", "#34003f", "#002d69", "#00194f"],
7291
+ columns: 10
7292
+ },
7293
+ monochrome: {
7294
+ colors: ["#000000", "#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080", "#999999", "#b3b3b3", "#cccccc", "#e6e6e6", "#f2f2f2", "#ffffff"],
7295
+ columns: 12
7296
+ }
7297
+ };
7298
+
7299
+ // src/coloreditor/color-editor.spec.tsx
7300
+ import { jsx as jsx127, jsxs as jsxs47 } from "react/jsx-runtime";
7301
+ var COLOREDITOR_CLASSNAME = "k-coloreditor";
7302
+ var states45 = [
7303
+ States.focus
7304
+ ];
7305
+ var options41 = {};
7306
+ var defaultProps41 = {
7307
+ view: "gradient",
7308
+ currentColor: "fuchsia",
7309
+ palette: PALETTEPRESETS.office
7310
+ };
7311
+ var ColorEditor = (props) => {
7312
+ const {
7313
+ view = defaultProps41.view,
7314
+ color,
7315
+ currentColor = defaultProps41.currentColor,
7316
+ focus,
7317
+ focusView,
7318
+ dir,
7319
+ group,
7320
+ palette = defaultProps41.palette
7321
+ } = props;
7322
+ return /* @__PURE__ */ jsxs47("div", { className: classNames(
7323
+ props.className,
7324
+ "k-flatcolorpicker",
7325
+ COLOREDITOR_CLASSNAME,
7326
+ stateClassNames(COLOREDITOR_CLASSNAME, { focus })
7327
+ ), dir, children: [
7328
+ /* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header k-hstack", children: [
7329
+ /* @__PURE__ */ jsx127("div", { className: "k-coloreditor-header-actions k-hstack", children: group && /* @__PURE__ */ jsxs47(ButtonGroup, { children: [
7330
+ /* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slider", selected: view === "gradient" }),
7331
+ /* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "palette", selected: view === "palette" })
7332
+ ] }) }),
7333
+ /* @__PURE__ */ jsx127("div", { className: "k-spacer" }),
7334
+ /* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header-actions k-hstack", children: [
7335
+ /* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slash" }),
7336
+ /* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-preview k-vstack", children: [
7337
+ /* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-preview-color", color }),
7338
+ /* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-current-color", color: currentColor })
7339
+ ] })
7340
+ ] })
7341
+ ] }),
7342
+ /* @__PURE__ */ jsx127("div", { className: "k-coloreditor-views k-vstack", children: view === "gradient" ? /* @__PURE__ */ jsx127(ColorGradient, { focus: focusView }) : /* @__PURE__ */ jsx127(ColorPalette, { palette }) }),
7343
+ /* @__PURE__ */ jsxs47(ActionButtons, { className: "k-coloreditor-footer", alignment: "end", children: [
7344
+ /* @__PURE__ */ jsx127(Button, { className: "k-coloreditor-cancel", children: "Cancel" }),
7345
+ /* @__PURE__ */ jsx127(Button, { themeColor: "primary", className: "k-coloreditor-apply", children: "Apply" })
7346
+ ] })
7347
+ ] });
7348
+ };
7349
+ ColorEditor.states = states45;
7350
+ ColorEditor.options = options41;
7351
+ ColorEditor.className = COLOREDITOR_CLASSNAME;
7352
+ ColorEditor.defaultProps = defaultProps41;
7353
+
7354
+ // src/coloreditor/templates/coloreditor-normal.tsx
7355
+ import { jsx as jsx128 } from "react/jsx-runtime";
7356
+
7357
+ // src/coloreditor/templates/coloreditor-palette.tsx
7358
+ import { jsx as jsx129 } from "react/jsx-runtime";
7359
+
7360
+ // src/coloreditor/templates/coloreditor-group.tsx
7361
+ import { jsx as jsx130 } from "react/jsx-runtime";
7362
+
7363
+ // src/coloreditor/templates/coloreditor-palette-group.tsx
7364
+ import { jsx as jsx131 } from "react/jsx-runtime";
7365
+
7366
+ // src/colorpicker/templates/colorpicker-popup-gradient.tsx
7367
+ import { jsx as jsx132 } from "react/jsx-runtime";
7368
+
7369
+ // src/colorpicker/templates/colorpicker-popup-palette.tsx
7370
+ import { jsx as jsx133 } from "react/jsx-runtime";
7371
+
7372
+ // src/action-sheet/action-sheet.spec.tsx
7373
+ import { Fragment as Fragment30, jsx as jsx134, jsxs as jsxs48 } from "react/jsx-runtime";
7374
+ var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
7375
+ var states46 = [];
7376
+ var options42 = {};
7377
+ var defaultProps42 = {
7378
+ side: "bottom",
7379
+ fullscreen: false,
7380
+ adaptive: false,
7381
+ overlay: true
7382
+ };
7383
+ var ActionSheet = (props) => {
7384
+ const {
7385
+ children,
7386
+ title,
7387
+ header,
7388
+ footer,
7389
+ actions,
7390
+ side = defaultProps42.side,
7391
+ fullscreen = defaultProps42.fullscreen,
7392
+ adaptive = defaultProps42.adaptive,
7393
+ overlay = defaultProps42.overlay,
7394
+ ...other
7395
+ } = props;
7396
+ const _ActionSheetHeader = title ? /* @__PURE__ */ jsx134(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
7397
+ const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx134(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx134(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
7398
+ const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
7399
+ switch (child.type) {
7400
+ case ActionSheetHeader:
7401
+ case ActionSheetFooter:
7402
+ return false;
7403
+ default:
7404
+ return true;
7405
+ }
7406
+ return true;
7407
+ }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx134(Fragment30, {});
7408
+ return /* @__PURE__ */ jsxs48("div", { className: "k-actionsheet-container", children: [
7409
+ overlay && /* @__PURE__ */ jsx134("div", { className: "k-overlay" }),
7410
+ /* @__PURE__ */ jsx134(
7411
+ AnimationContainer,
7412
+ {
7413
+ animationStyle: {
7414
+ [`${fullscreen === true ? "top" : side}`]: 0,
7415
+ [`${fullscreen === true ? "width" : null}`]: "100%",
7416
+ [`${fullscreen === true ? "height" : null}`]: "100%",
7417
+ [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
7418
+ [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
7419
+ },
7420
+ children: /* @__PURE__ */ jsx134(
7421
+ "div",
7422
+ {
7423
+ ...other,
7424
+ className: classNames(
7425
+ props.className,
7426
+ ACTIONSHEET_CLASSNAME,
7427
+ {
7428
+ [`k-actionsheet-${side}`]: fullscreen === false,
7429
+ "k-actionsheet-fullscreen": fullscreen === true,
7430
+ "k-adaptive-actionsheet": adaptive
7431
+ }
7432
+ ),
7433
+ children: /* @__PURE__ */ jsxs48(Fragment30, { children: [
7434
+ _ActionSheetHeader,
7435
+ /* @__PURE__ */ jsx134("div", { className: classNames(
7436
+ "k-actionsheet-content",
7437
+ {
7438
+ "!k-overflow-hidden": adaptive
7439
+ }
7440
+ ), children: _ActionSheetContent }),
7441
+ _ActionSheetFooter
7442
+ ] })
7443
+ }
7444
+ )
7445
+ }
7446
+ )
7447
+ ] });
7448
+ };
7449
+ ActionSheet.states = states46;
7450
+ ActionSheet.options = options42;
7451
+ ActionSheet.className = ACTIONSHEET_CLASSNAME;
7452
+ ActionSheet.defaultProps = defaultProps42;
7453
+
7454
+ // src/action-sheet/actionsheet-header.tsx
7455
+ import { Fragment as Fragment31, jsx as jsx135, jsxs as jsxs49 } from "react/jsx-runtime";
7456
+ var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
7457
+ var ActionSheetHeader = (props) => {
7458
+ const {
7459
+ title,
7460
+ subTitle,
7461
+ actions,
7462
+ filter,
7463
+ ...other
7464
+ } = props;
7465
+ return /* @__PURE__ */ jsx135(
7466
+ "div",
7467
+ {
7468
+ ...other,
7469
+ className: classNames(
7470
+ props.className,
7471
+ ACTIONSHEETHEADER_CLASSNAME
7472
+ ),
7473
+ children: /* @__PURE__ */ jsxs49(Fragment31, { children: [
7474
+ /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
7475
+ !props.children && (title || subTitle) && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-title", children: [
7476
+ title !== "" && /* @__PURE__ */ jsx135("div", { className: "k-text-center", children: title }),
7477
+ subTitle !== "" && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
7478
+ ] }) }),
7479
+ props.children && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-title", children: props.children }),
7480
+ actions && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx135(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
7481
+ ] }),
7482
+ filter && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx135(Searchbox, { placeholder: "Filter", size: "large" }) }) })
7483
+ ] })
7484
+ }
7485
+ );
7486
+ };
7487
+
7488
+ // src/action-sheet/actionsheet-footer.tsx
7489
+ import { Fragment as Fragment32, jsx as jsx136, jsxs as jsxs50 } from "react/jsx-runtime";
7490
+ var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
7491
+ var ActionSheetFooter = (props) => {
7492
+ const {
7493
+ actions,
7494
+ ...other
7495
+ } = props;
7496
+ return /* @__PURE__ */ jsx136(
7497
+ action_buttons_spec_default,
7498
+ {
7499
+ ...other,
7500
+ className: classNames(
7501
+ props.className,
7502
+ ACTIONSHEETFOOTER_CLASSNAME
7503
+ ),
7504
+ alignment: "stretched",
7505
+ children: /* @__PURE__ */ jsxs50(Fragment32, { children: [
7506
+ actions && actions.map((action, index) => {
7507
+ if (action === "|") {
7508
+ return /* @__PURE__ */ jsx136("span", { className: "k-separator" }, index);
7509
+ }
7510
+ if (action === " ") {
7511
+ return /* @__PURE__ */ jsx136("span", { className: "k-spacer" }, index);
7512
+ }
7513
+ const importantFlag = action.startsWith("!");
7514
+ const actionName = importantFlag ? action.substring(1) : action;
7515
+ return /* @__PURE__ */ jsx136(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
7516
+ }),
7517
+ !actions && props.children
7518
+ ] })
7519
+ }
7520
+ );
7521
+ };
7522
+
7523
+ // src/action-sheet/actionsheet-items.tsx
7524
+ import { jsx as jsx137 } from "react/jsx-runtime";
7525
+ var ActionSheetItems = (props) => {
7526
+ const {
7527
+ ...other
7528
+ } = props;
7529
+ return /* @__PURE__ */ jsx137(
7530
+ "div",
7531
+ {
7532
+ ...other,
7533
+ className: classNames(
7534
+ props.className,
7535
+ "k-list-ul"
7536
+ ),
7537
+ children: props.children
7538
+ }
7539
+ );
7540
+ };
7541
+
7542
+ // src/action-sheet/actionsheet-item.tsx
7543
+ import { Fragment as Fragment33, jsx as jsx138, jsxs as jsxs51 } from "react/jsx-runtime";
7544
+ var states47 = [
7545
+ States.hover,
7546
+ States.focus,
7547
+ States.selected,
7548
+ States.disabled
7549
+ ];
7550
+
7551
+ // src/combobox/combobox.spec.tsx
7552
+ import { Fragment as Fragment34, jsx as jsx139, jsxs as jsxs52 } from "react/jsx-runtime";
7553
+ var COMBOBOX_CLASSNAME = `k-combobox`;
7554
+ var states48 = [
7555
+ States.hover,
7556
+ States.focus,
7557
+ States.valid,
7558
+ States.invalid,
7559
+ States.loading,
7560
+ States.required,
7561
+ States.disabled,
7562
+ States.readonly
7563
+ ];
7564
+ var defaultProps43 = {
7565
+ size: Input.defaultProps.size,
7566
+ rounded: Input.defaultProps.rounded,
7567
+ fillMode: Input.defaultProps.fillMode
7568
+ };
7569
+ var options43 = {
7570
+ size: [Size.small, Size.medium, Size.large],
7571
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7572
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
7573
+ };
7574
+ var Combobox = (props) => {
7575
+ const {
7576
+ prefix,
7577
+ suffix,
7578
+ value,
7579
+ placeholder,
7580
+ size,
7581
+ rounded,
7582
+ fillMode,
7583
+ hover,
7584
+ focus,
7585
+ valid,
7586
+ invalid,
7587
+ required,
7588
+ loading,
7589
+ disabled,
7590
+ popup,
7591
+ opened,
7592
+ readonly,
7593
+ adaptive,
7594
+ adaptiveSettings,
7595
+ ...other
7596
+ } = props;
7597
+ return /* @__PURE__ */ jsxs52(Fragment34, { children: [
7598
+ /* @__PURE__ */ jsxs52(
7599
+ Input,
7600
+ {
7601
+ ...other,
7602
+ size,
7603
+ rounded,
7604
+ fillMode,
7605
+ hover,
7606
+ focus,
7607
+ valid,
7608
+ invalid,
7609
+ required,
7610
+ loading,
7611
+ disabled,
7612
+ readonly,
7613
+ className: classNames(props.className, COMBOBOX_CLASSNAME),
7614
+ children: [
7615
+ prefix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
7616
+ /* @__PURE__ */ jsx139(InputPrefix, { children: prefix }),
7617
+ /* @__PURE__ */ jsx139(InputSeparator, {})
7618
+ ] }),
7619
+ /* @__PURE__ */ jsx139(InputInnerInput, { placeholder, value }),
7620
+ /* @__PURE__ */ jsx139(
7621
+ InputValidationIcon,
7622
+ {
7623
+ valid,
7624
+ invalid,
7625
+ loading,
7626
+ disabled
7627
+ }
7628
+ ),
7629
+ /* @__PURE__ */ jsx139(
7630
+ InputLoadingIcon,
7631
+ {
7632
+ loading,
7633
+ disabled
7634
+ }
7635
+ ),
7636
+ /* @__PURE__ */ jsx139(
7637
+ InputClearValue,
7638
+ {
7639
+ loading,
7640
+ disabled,
7641
+ readonly,
7642
+ value
7643
+ }
7644
+ ),
7645
+ suffix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
7646
+ /* @__PURE__ */ jsx139(InputSeparator, {}),
7647
+ /* @__PURE__ */ jsx139(InputSuffix, { children: suffix })
7648
+ ] }),
7649
+ /* @__PURE__ */ jsx139(
7650
+ Button,
7651
+ {
7652
+ className: "k-input-button",
7653
+ icon: "caret-alt-down",
7654
+ rounded: null,
7655
+ size,
7656
+ fillMode
7657
+ }
7658
+ )
7659
+ ]
7660
+ }
7661
+ ),
7662
+ opened && popup && /* @__PURE__ */ jsx139(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
7663
+ adaptive && /* @__PURE__ */ jsxs52(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
7664
+ /* @__PURE__ */ jsx139(
7665
+ ActionSheetHeader,
7666
+ {
7667
+ actions: ["x"],
7668
+ filter: true,
7669
+ title: "Select Item"
7670
+ }
7671
+ ),
7672
+ /* @__PURE__ */ jsx139("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs52(List, { size: "large", children: [
7673
+ /* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
7674
+ /* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
7675
+ /* @__PURE__ */ jsx139(ListItem, { text: "List item" })
7676
+ ] }) })
7677
+ ] })
7678
+ ] });
7679
+ };
7680
+ Combobox.states = states48;
7681
+ Combobox.options = options43;
7682
+ Combobox.className = COMBOBOX_CLASSNAME;
7683
+ Combobox.defaultProps = defaultProps43;
7684
+
7685
+ // src/combobox/templates/combobox-normal.tsx
7686
+ import { jsx as jsx140 } from "react/jsx-runtime";
7687
+
7688
+ // src/combobox/templates/combobox-popup.tsx
7689
+ import { jsx as jsx141, jsxs as jsxs53 } from "react/jsx-runtime";
7690
+
7691
+ // src/combobox/templates/combobox-grouping.tsx
7692
+ import { jsx as jsx142, jsxs as jsxs54 } from "react/jsx-runtime";
7693
+
7694
+ // src/combobox/templates/combobox-adaptive.tsx
7695
+ import { jsx as jsx143 } from "react/jsx-runtime";
7696
+
7697
+ // src/combobox/templates/combobox-prefix.tsx
7698
+ import { Fragment as Fragment35, jsx as jsx144 } from "react/jsx-runtime";
7699
+
7700
+ // src/combobox/templates/combobox-suffix.tsx
7701
+ import { Fragment as Fragment36, jsx as jsx145 } from "react/jsx-runtime";
7702
+
7703
+ // src/menu-button/menu-button.spec.tsx
7704
+ import { Fragment as Fragment37, jsx as jsx146, jsxs as jsxs55 } from "react/jsx-runtime";
7705
+ var MENUBUTTON_CLASSNAME = `k-menu-button`;
7706
+ var states49 = [
7707
+ States.hover,
7708
+ States.focus,
7709
+ States.active,
7710
+ States.selected,
7711
+ States.disabled
7712
+ ];
7713
+ var options44 = {
7714
+ size: [Size.small, Size.medium, Size.large],
7715
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7716
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
7717
+ themeColor: [
7718
+ ThemeColor.base,
7719
+ ThemeColor.primary,
7720
+ ThemeColor.secondary,
7721
+ ThemeColor.tertiary,
7722
+ ThemeColor.success,
7723
+ ThemeColor.warning,
7724
+ ThemeColor.error,
7725
+ ThemeColor.info,
7726
+ ThemeColor.light,
7727
+ ThemeColor.dark,
7728
+ ThemeColor.inverse
7729
+ ]
7730
+ };
7731
+ var defaultProps44 = {
7732
+ size: Size.medium,
7733
+ rounded: Roundness.medium,
7734
+ fillMode: FillMode.solid,
7735
+ themeColor: ThemeColor.base,
7736
+ showArrow: true,
7737
+ arrowIconName: "caret-alt-down"
7738
+ };
7739
+ var MenuButton = (props) => {
7740
+ const {
7741
+ size = defaultProps44.size,
7742
+ rounded = defaultProps44.rounded,
7743
+ fillMode = defaultProps44.fillMode,
7744
+ themeColor = defaultProps44.themeColor,
7745
+ hover,
7746
+ focus,
7747
+ active,
7748
+ selected,
7749
+ disabled,
7750
+ icon,
7751
+ text,
7752
+ showArrow = defaultProps44.showArrow,
7753
+ arrowIconName = defaultProps44.arrowIconName,
7754
+ popup,
7755
+ opened,
7756
+ ...other
7757
+ } = props;
7758
+ return /* @__PURE__ */ jsxs55(Fragment37, { children: [
7759
+ /* @__PURE__ */ jsx146(
7760
+ Button,
7761
+ {
7762
+ ...other,
7763
+ className: classNames(
7764
+ props.className,
7765
+ MENUBUTTON_CLASSNAME
7766
+ ),
7767
+ text,
7768
+ size,
7769
+ rounded,
7770
+ fillMode,
7771
+ themeColor,
7772
+ hover,
7773
+ focus,
7774
+ active,
7775
+ selected,
7776
+ disabled,
7777
+ icon,
7778
+ showArrow,
7779
+ arrowIconName
7780
+ }
7781
+ ),
7782
+ opened && popup && /* @__PURE__ */ jsx146(Popup, { className: "k-menu-popup", children: popup })
7783
+ ] });
7784
+ };
7785
+ MenuButton.states = states49;
7786
+ MenuButton.options = options44;
7787
+ MenuButton.className = MENUBUTTON_CLASSNAME;
7788
+ MenuButton.defaultProps = defaultProps44;
7789
+
7790
+ // src/menu-button/templates/icon-menu-button.tsx
7791
+ import { jsx as jsx147 } from "react/jsx-runtime";
7792
+
7793
+ // src/menu-button/templates/icon-text-menu-button.tsx
7794
+ import { jsx as jsx148 } from "react/jsx-runtime";
7795
+
7796
+ // src/menu-button/templates/text-menu-button.tsx
7797
+ import { jsx as jsx149 } from "react/jsx-runtime";
7798
+
7799
+ // src/menu/menu-item.spec.tsx
7800
+ import { Fragment as Fragment38, jsx as jsx150, jsxs as jsxs56 } from "react/jsx-runtime";
7801
+ var MENUITEM_CLASSNAME = `k-menu-item`;
7802
+ var states50 = [
7803
+ States.hover,
7804
+ States.focus,
7805
+ States.active,
7806
+ States.selected,
7807
+ States.disabled
7808
+ ];
7809
+ var options45 = {};
7810
+ var defaultProps45 = {
7811
+ dir: "ltr"
7812
+ };
7813
+ var MenuItem = (props) => {
7814
+ const {
7815
+ hover,
7816
+ focus,
7817
+ active,
7818
+ selected,
7819
+ disabled,
7820
+ icon,
7821
+ text,
7822
+ showArrow,
7823
+ arrowIconName,
7824
+ dir = defaultProps45.dir,
7825
+ children,
7826
+ ...other
7827
+ } = props;
7828
+ const contentTemplate = /* @__PURE__ */ jsx150(Fragment38, {});
7829
+ if (children) {
7830
+ children.forEach((child) => {
7831
+ const component = child.type;
7832
+ if (component === "MenuItemContent") {
7833
+ contentTemplate.props.children.push(child);
7834
+ return;
7835
+ }
7836
+ });
7837
+ }
7838
+ let expandArrowName = arrowIconName;
7839
+ if (!expandArrowName) {
7840
+ expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
7841
+ }
7842
+ return /* @__PURE__ */ jsxs56(
7843
+ "li",
7844
+ {
7845
+ ...other,
7846
+ className: classNames(
7847
+ props.className,
7848
+ MENUITEM_CLASSNAME,
7849
+ //TODO
7850
+ "k-item",
7851
+ stateClassNames(MENUITEM_CLASSNAME, {
7852
+ focus,
7853
+ disabled
7854
+ })
7855
+ ),
7856
+ children: [
7857
+ /* @__PURE__ */ jsxs56(
7858
+ "span",
7859
+ {
7860
+ className: classNames(
7861
+ "k-link k-menu-link",
7862
+ stateClassNames("k-menu-link", {
7863
+ hover,
7864
+ active,
7865
+ selected,
7866
+ disabled
7867
+ })
7868
+ ),
7869
+ children: [
7870
+ icon && /* @__PURE__ */ jsx150(Icon, { className: "k-menu-link-icon", icon }),
7871
+ /* @__PURE__ */ jsx150("span", { className: "k-menu-link-text", children: text }),
7872
+ showArrow && /* @__PURE__ */ jsx150("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx150(Icon, { icon: expandArrowName }) })
7873
+ ]
7874
+ }
7875
+ ),
7876
+ contentTemplate
7877
+ ]
7878
+ }
7879
+ );
7880
+ };
7881
+ MenuItem.states = states50;
7882
+ MenuItem.options = options45;
7883
+ MenuItem.className = MENUITEM_CLASSNAME;
7884
+ MenuItem.defaultProps = defaultProps45;
7885
+ var menu_item_spec_default = MenuItem;
7886
+
7887
+ // src/menu/menu-separator.spec.tsx
7888
+ import { jsx as jsx151 } from "react/jsx-runtime";
7889
+ var SEPARATOR_CLASSNAME = `k-separator`;
7890
+ var defaultProps46 = {
7891
+ orientation: "horizontal"
7892
+ };
7893
+ var MenuSeparator = (props) => {
7894
+ const {
7895
+ orientation = defaultProps46.orientation,
7896
+ ...other
7897
+ } = props;
7898
+ return /* @__PURE__ */ jsx151(
7899
+ "li",
7900
+ {
7901
+ ...other,
7902
+ className: classNames(
7903
+ props.className,
7904
+ "k-item",
7905
+ SEPARATOR_CLASSNAME,
7906
+ {
7907
+ [`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
7908
+ }
7909
+ )
7910
+ }
7911
+ );
7912
+ };
7913
+ var menu_separator_spec_default = MenuSeparator;
7914
+
7915
+ // src/menu/menu-item-content.tsx
7916
+ import { Fragment as Fragment39, jsx as jsx152 } from "react/jsx-runtime";
7917
+
7918
+ // src/menu/menu-list.spec.tsx
7919
+ import { jsx as jsx153 } from "react/jsx-runtime";
7920
+ import { createElement } from "react";
7921
+ var MENULIST_CLASSNAME = `k-menu-group`;
7922
+ var states51 = [];
7923
+ var options46 = {
7924
+ size: [Size.small, Size.medium, Size.large]
7925
+ };
7926
+ var defaultProps47 = {
7927
+ size: Size.medium,
7928
+ dir: "ltr"
7929
+ };
7930
+ var MenuList = (props) => {
7931
+ const {
7932
+ children,
7933
+ size = defaultProps47.size,
7934
+ dir = defaultProps47.dir,
7935
+ ...other
7936
+ } = props;
7937
+ const listChildren = [];
7938
+ if (children) {
7939
+ if (Array.isArray(children)) {
7940
+ children.map((child, index) => {
7941
+ if (child.type === menu_item_spec_default) {
7942
+ listChildren.push(
7943
+ /* @__PURE__ */ createElement(menu_item_spec_default, { ...child.props, dir, key: index })
7944
+ );
7945
+ } else if (child.type === menu_separator_spec_default) {
7946
+ listChildren.push(
7947
+ /* @__PURE__ */ jsx153(menu_separator_spec_default, {})
7948
+ );
7949
+ } else {
7950
+ listChildren.push(child);
7951
+ }
7952
+ });
7953
+ }
7954
+ }
7955
+ return /* @__PURE__ */ jsx153(
7956
+ "ul",
7957
+ {
7958
+ ...other,
7959
+ className: classNames(
7960
+ props.className,
7961
+ MENULIST_CLASSNAME,
7962
+ optionClassNames(MENULIST_CLASSNAME, {
7963
+ size
7964
+ })
7965
+ ),
7966
+ children: listChildren
7967
+ }
7968
+ );
7969
+ };
7970
+ MenuList.states = states51;
7971
+ MenuList.options = options46;
7972
+ MenuList.className = MENULIST_CLASSNAME;
7973
+ MenuList.defaultProps = defaultProps47;
7974
+
7975
+ // src/menu-button/templates/menu-button-popup.tsx
7976
+ import { jsx as jsx154, jsxs as jsxs57 } from "react/jsx-runtime";
7977
+
7978
+ // src/split-button/split-button.spec.tsx
7979
+ import { Fragment as Fragment40, jsx as jsx155, jsxs as jsxs58 } from "react/jsx-runtime";
7980
+ var SPLITBUTTON_CLASSNAME = `k-split-button`;
7981
+ var states52 = [
7982
+ States.hover,
7983
+ States.focus,
7984
+ States.active,
7985
+ States.selected,
7986
+ States.disabled
7987
+ ];
7988
+ var options47 = {
7989
+ size: [Size.small, Size.medium, Size.large],
7990
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7991
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
7992
+ themeColor: [
7993
+ ThemeColor.base,
7994
+ ThemeColor.primary,
7995
+ ThemeColor.secondary,
7996
+ ThemeColor.tertiary,
7997
+ ThemeColor.success,
7998
+ ThemeColor.warning,
7999
+ ThemeColor.error,
8000
+ ThemeColor.info,
8001
+ ThemeColor.light,
8002
+ ThemeColor.dark,
8003
+ ThemeColor.inverse
8004
+ ]
8005
+ };
8006
+ var defaultProps48 = {
8007
+ size: Size.medium,
8008
+ rounded: Roundness.medium,
8009
+ fillMode: FillMode.solid,
8010
+ themeColor: ThemeColor.base,
8011
+ arrowIconName: "caret-alt-down"
8012
+ };
8013
+ var SplitButton = (props) => {
8014
+ const {
8015
+ size = defaultProps48.size,
8016
+ rounded = defaultProps48.rounded,
8017
+ fillMode = defaultProps48.fillMode,
8018
+ themeColor = defaultProps48.themeColor,
8019
+ hover,
8020
+ focus,
8021
+ active,
8022
+ selected,
8023
+ disabled,
8024
+ icon,
8025
+ text,
8026
+ arrowIconName = defaultProps48.arrowIconName,
8027
+ popup,
8028
+ opened,
8029
+ ...other
8030
+ } = props;
8031
+ return /* @__PURE__ */ jsxs58(Fragment40, { children: [
8032
+ /* @__PURE__ */ jsxs58(
8033
+ "div",
8034
+ {
8035
+ ...other,
8036
+ className: classNames(
8037
+ props.className,
8038
+ SPLITBUTTON_CLASSNAME,
8039
+ "k-button-group",
8040
+ optionClassNames(SPLITBUTTON_CLASSNAME, {
8041
+ rounded
8042
+ })
8043
+ ),
8044
+ children: [
8045
+ /* @__PURE__ */ jsx155(
8046
+ Button,
8047
+ {
8048
+ text,
8049
+ icon,
8050
+ size,
8051
+ rounded,
8052
+ fillMode,
8053
+ themeColor,
8054
+ hover,
8055
+ focus,
8056
+ active,
8057
+ selected,
8058
+ disabled,
8059
+ children: props.children
8060
+ }
8061
+ ),
8062
+ /* @__PURE__ */ jsx155(
8063
+ Button,
8064
+ {
8065
+ className: "k-split-button-arrow",
8066
+ icon: arrowIconName,
8067
+ size,
8068
+ rounded,
8069
+ fillMode,
8070
+ disabled
8071
+ }
8072
+ )
8073
+ ]
8074
+ }
8075
+ ),
8076
+ opened && popup && /* @__PURE__ */ jsx155(Popup, { className: "k-menu-popup", children: popup })
8077
+ ] });
8078
+ };
8079
+ SplitButton.states = states52;
8080
+ SplitButton.options = options47;
8081
+ SplitButton.className = SPLITBUTTON_CLASSNAME;
8082
+ SplitButton.defaultProps = defaultProps48;
8083
+ var split_button_spec_default = SplitButton;
8084
+
8085
+ // src/toolbar/toolbar.spec.tsx
8086
+ import { jsx as jsx156 } from "react/jsx-runtime";
8087
+ var TOOLBAR_CLASSNAME = `k-toolbar`;
8088
+ var states53 = [
8089
+ States.focus
8090
+ ];
8091
+ var options48 = {
8092
+ size: [Size.small, Size.medium, Size.large]
8093
+ };
8094
+ var defaultProps49 = {
8095
+ size: Size.medium
8096
+ };
8097
+ var Toolbar = (props) => {
8098
+ const {
8099
+ size = defaultProps49.size,
8100
+ focus,
8101
+ resizable,
8102
+ ...other
8103
+ } = props;
8104
+ const toolbarChildren = [];
8105
+ const addUniqueToolClass = (child, index) => {
8106
+ const tempToolbarChildren = [];
8107
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
8108
+ tempToolbarChildren.push(
8109
+ /* @__PURE__ */ jsx156(
8110
+ Button,
8111
+ {
8112
+ ...child.props,
8113
+ className: `${child.props.className ? child.props.className : ""}`
8114
+ },
8115
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8116
+ )
8117
+ );
8118
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
8119
+ tempToolbarChildren.push(
8120
+ /* @__PURE__ */ jsx156(
8121
+ Button,
8122
+ {
8123
+ ...child.props,
8124
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
8125
+ },
8126
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8127
+ )
8128
+ );
8129
+ } else if (child.type === Button) {
8130
+ tempToolbarChildren.push(
8131
+ /* @__PURE__ */ jsx156(
8132
+ Button,
8133
+ {
8134
+ ...child.props,
8135
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
8136
+ },
8137
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8138
+ )
8139
+ );
8140
+ } else if (child.type === MenuButton) {
8141
+ tempToolbarChildren.push(
8142
+ /* @__PURE__ */ jsx156(
8143
+ MenuButton,
8144
+ {
8145
+ ...child.props,
8146
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
8147
+ },
8148
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8149
+ )
8150
+ );
8151
+ } else if (child.type === split_button_spec_default) {
8152
+ tempToolbarChildren.push(
8153
+ /* @__PURE__ */ jsx156(
8154
+ split_button_spec_default,
8155
+ {
8156
+ ...child.props,
8157
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
8158
+ },
8159
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8160
+ )
8161
+ );
8162
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
8163
+ const buttonGroupItems = [];
8164
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
8165
+ childrenArray.forEach((button, bindex) => {
8166
+ buttonGroupItems.push(
8167
+ /* @__PURE__ */ jsx156(
8168
+ Button,
8169
+ {
8170
+ ...button.props,
8171
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
8172
+ },
8173
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
8174
+ )
8175
+ );
8176
+ });
8177
+ tempToolbarChildren.push(
8178
+ /* @__PURE__ */ jsx156(
8179
+ ButtonGroup,
8180
+ {
8181
+ ...child.props,
8182
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
8183
+ children: buttonGroupItems
8184
+ },
8185
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8186
+ )
8187
+ );
8188
+ } else if (child.type === Combobox) {
8189
+ tempToolbarChildren.push(
8190
+ /* @__PURE__ */ jsx156(
8191
+ Combobox,
8192
+ {
8193
+ ...child.props,
8194
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
8195
+ },
8196
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8197
+ )
8198
+ );
8199
+ } else if (child.type === DropdownList) {
8200
+ tempToolbarChildren.push(
8201
+ /* @__PURE__ */ jsx156(
8202
+ DropdownList,
8203
+ {
8204
+ ...child.props,
8205
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
8206
+ },
8207
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8208
+ )
8209
+ );
8210
+ } else if (child.type === ColorPicker) {
8211
+ tempToolbarChildren.push(
8212
+ /* @__PURE__ */ jsx156(
8213
+ ColorPicker,
8214
+ {
8215
+ ...child.props,
8216
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
8217
+ },
8218
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8219
+ )
8220
+ );
8221
+ } else {
8222
+ tempToolbarChildren.push(child);
8223
+ }
8224
+ tempToolbarChildren.forEach((item) => {
8225
+ toolbarChildren.push(item);
8226
+ });
8227
+ };
8228
+ if (props.children) {
8229
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
8230
+ childrenArray.forEach((child, index) => {
8231
+ addUniqueToolClass(child, index);
8232
+ });
8233
+ }
8234
+ return /* @__PURE__ */ jsx156(
8235
+ "div",
8236
+ {
8237
+ ...other,
8238
+ className: classNames(
8239
+ props.className,
8240
+ TOOLBAR_CLASSNAME,
8241
+ optionClassNames(TOOLBAR_CLASSNAME, {
8242
+ size
8243
+ }),
8244
+ stateClassNames(TOOLBAR_CLASSNAME, {
8245
+ focus
8246
+ }),
8247
+ {
8248
+ [`${TOOLBAR_CLASSNAME}-resizable`]: resizable
8249
+ }
8250
+ ),
8251
+ children: toolbarChildren
8252
+ }
8253
+ );
8254
+ };
8255
+ Toolbar.states = states53;
8256
+ Toolbar.options = options48;
8257
+ Toolbar.className = TOOLBAR_CLASSNAME;
8258
+ Toolbar.defaultProps = defaultProps49;
8259
+
8260
+ // src/toolbar/toolbar-angular.spec.tsx
8261
+ import { jsx as jsx157 } from "react/jsx-runtime";
8262
+ var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
8263
+ var states54 = [
8264
+ States.focus
8265
+ ];
8266
+ var options49 = {
8267
+ size: [Size.small, Size.medium, Size.large]
8268
+ };
8269
+ var defaultProps50 = {
8270
+ size: Size.medium
8271
+ };
8272
+ var ToolbarAngular = (props) => {
8273
+ const {
8274
+ size = defaultProps50.size,
8275
+ focus,
8276
+ resizable,
8277
+ ...other
8278
+ } = props;
8279
+ const toolbarChildren = [];
8280
+ const addUniqueToolClass = (child, index) => {
8281
+ const tempToolbarChildren = [];
8282
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
8283
+ tempToolbarChildren.push(
8284
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8285
+ Button,
8286
+ {
8287
+ ...child.props,
8288
+ className: `${child.props.className ? child.props.className : ""}`
8289
+ },
8290
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8291
+ ) })
8292
+ );
8293
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
8294
+ tempToolbarChildren.push(
8295
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8296
+ Button,
8297
+ {
8298
+ ...child.props,
8299
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
8300
+ },
8301
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8302
+ ) })
8303
+ );
8304
+ } else if (child.type === Button) {
8305
+ tempToolbarChildren.push(
8306
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8307
+ Button,
8308
+ {
8309
+ ...child.props,
8310
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
8311
+ },
8312
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8313
+ ) })
8314
+ );
8315
+ } else if (child.type === MenuButton) {
8316
+ tempToolbarChildren.push(
8317
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8318
+ MenuButton,
8319
+ {
8320
+ ...child.props,
8321
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
8322
+ },
8323
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8324
+ ) })
8325
+ );
8326
+ } else if (child.type === split_button_spec_default) {
8327
+ tempToolbarChildren.push(
8328
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8329
+ split_button_spec_default,
8330
+ {
8331
+ ...child.props,
8332
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
8333
+ },
8334
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8335
+ ) })
8336
+ );
8337
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
8338
+ const buttonGroupItems = [];
8339
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
8340
+ childrenArray.forEach((button, bindex) => {
8341
+ buttonGroupItems.push(
8342
+ /* @__PURE__ */ jsx157(
8343
+ Button,
8344
+ {
8345
+ ...button.props,
8346
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
8347
+ },
8348
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
8349
+ )
8350
+ );
8351
+ });
8352
+ tempToolbarChildren.push(
8353
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8354
+ ButtonGroup,
8355
+ {
8356
+ ...child.props,
8357
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
8358
+ children: buttonGroupItems
8359
+ },
8360
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8361
+ ) })
8362
+ );
8363
+ } else if (child.type === Combobox) {
8364
+ tempToolbarChildren.push(
8365
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8366
+ Combobox,
8367
+ {
8368
+ ...child.props,
8369
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
8370
+ },
8371
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8372
+ ) })
8373
+ );
8374
+ } else if (child.type === DropdownList) {
8375
+ tempToolbarChildren.push(
8376
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8377
+ DropdownList,
8378
+ {
8379
+ ...child.props,
8380
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
8381
+ },
8382
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8383
+ ) })
8384
+ );
8385
+ } else if (child.type === ColorPicker) {
8386
+ tempToolbarChildren.push(
8387
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8388
+ ColorPicker,
8389
+ {
8390
+ ...child.props,
8391
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
8392
+ },
8393
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8394
+ ) })
8395
+ );
8396
+ } else {
8397
+ tempToolbarChildren.push(child);
8398
+ }
8399
+ tempToolbarChildren.forEach((item) => {
8400
+ toolbarChildren.push(item);
8401
+ });
8402
+ };
8403
+ if (props.children) {
8404
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
8405
+ childrenArray.forEach((child, index) => {
8406
+ addUniqueToolClass(child, index);
8407
+ });
8408
+ }
8409
+ return /* @__PURE__ */ jsx157(
8410
+ "div",
8411
+ {
8412
+ ...other,
8413
+ className: classNames(
8414
+ props.className,
8415
+ TOOLBARANGULAR_CLASSNAME,
8416
+ optionClassNames(TOOLBARANGULAR_CLASSNAME, {
8417
+ size
8418
+ }),
8419
+ stateClassNames(TOOLBARANGULAR_CLASSNAME, {
8420
+ focus
8421
+ }),
8422
+ {
8423
+ [`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
8424
+ }
8425
+ ),
8426
+ children: toolbarChildren
8427
+ }
8428
+ );
8429
+ };
8430
+ ToolbarAngular.states = states54;
8431
+ ToolbarAngular.options = options49;
8432
+ ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
8433
+ ToolbarAngular.defaultProps = defaultProps50;
8434
+
8435
+ // src/toolbar/toolbar-separator.tsx
8436
+ import { jsx as jsx158 } from "react/jsx-runtime";
8437
+
8438
+ // src/toolbar/toolbar-item.spec.tsx
8439
+ import { jsx as jsx159 } from "react/jsx-runtime";
8440
+ var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
8441
+ var states55 = [
8442
+ States.focus
8443
+ ];
8444
+ var options50 = {};
8445
+ var defaultProps51 = {};
8446
+ var ToolbarItem = (props) => {
8447
+ const {
8448
+ focus,
8449
+ ...other
8450
+ } = props;
8451
+ return /* @__PURE__ */ jsx159(
8452
+ "div",
8453
+ {
8454
+ ...other,
8455
+ className: classNames(
8456
+ props.className,
8457
+ TOOLBARITEM_CLASSNAME,
8458
+ stateClassNames(TOOLBARITEM_CLASSNAME, {
8459
+ focus
8460
+ })
8461
+ ),
8462
+ children: props.children
8463
+ }
8464
+ );
8465
+ };
8466
+ ToolbarItem.states = states55;
8467
+ ToolbarItem.options = options50;
8468
+ ToolbarItem.className = TOOLBARITEM_CLASSNAME;
8469
+ ToolbarItem.defaultProps = defaultProps51;
8470
+
8471
+ // src/toolbar/toolbar-popup.spec.tsx
8472
+ import { jsx as jsx160 } from "react/jsx-runtime";
8473
+ var TOOLBARPOPUP_CLASSNAME = `k-toolbar-popup`;
8474
+ var states56 = [];
8475
+ var options51 = {};
8476
+ var defaultProps52 = {};
8477
+ var ToolbarPopup = (props) => {
8478
+ const { ...other } = props;
8479
+ return /* @__PURE__ */ jsx160(
8480
+ Popup,
8481
+ {
8482
+ ...other,
8483
+ className: classNames(
8484
+ props.className,
8485
+ TOOLBARPOPUP_CLASSNAME
8486
+ ),
8487
+ children: props.children
8488
+ }
8489
+ );
8490
+ };
8491
+ ToolbarPopup.states = states56;
8492
+ ToolbarPopup.options = options51;
8493
+ ToolbarPopup.className = TOOLBARPOPUP_CLASSNAME;
8494
+ ToolbarPopup.defaultProps = defaultProps52;
8495
+
8496
+ // src/split-button/templates/icon-split-button.tsx
8497
+ import { jsx as jsx161 } from "react/jsx-runtime";
8498
+
8499
+ // src/split-button/templates/icon-text-split-button.tsx
8500
+ import { jsx as jsx162 } from "react/jsx-runtime";
8501
+
8502
+ // src/split-button/templates/text-split-button.tsx
8503
+ import { jsx as jsx163 } from "react/jsx-runtime";
8504
+
8505
+ // src/split-button/templates/split-button-popup.tsx
8506
+ import { jsx as jsx164, jsxs as jsxs59 } from "react/jsx-runtime";
8507
+
8508
+ // src/toolbar/templates/toolbar-normal.tsx
8509
+ import { Fragment as Fragment41, jsx as jsx165, jsxs as jsxs60 } from "react/jsx-runtime";
8510
+
8511
+ // src/toolbar/templates/toolbar-resizable.tsx
8512
+ import { jsx as jsx166 } from "react/jsx-runtime";
8513
+
8514
+ // src/toolbar/templates/toolbar-angular-normal.tsx
8515
+ import { jsx as jsx167 } from "react/jsx-runtime";
8516
+
8517
+ // src/toolbar/templates/toolbar-angular-resizable.tsx
8518
+ import { jsx as jsx168 } from "react/jsx-runtime";
8519
+
8520
+ // src/grid/grid-toolbar.spec.tsx
8521
+ import { jsx as jsx169 } from "react/jsx-runtime";
8522
+
8523
+ // src/grid/tests/grid-long-titles.tsx
8524
+ import { Fragment as Fragment42, jsx as jsx170, jsxs as jsxs61 } from "react/jsx-runtime";
8525
+ var styles = `
8526
+ .section {
8527
+ max-width: 400px;
8528
+ }
8529
+
8530
+ .sections-wrapper > .section {
8531
+ display: inline-block;
8532
+ }
8533
+ `;
8534
+ var grid_long_titles_default = () => /* @__PURE__ */ jsxs61(Fragment42, { children: [
8535
+ /* @__PURE__ */ jsx170("style", { children: styles }),
8536
+ /* @__PURE__ */ jsxs61("div", { id: "test-area", children: [
8537
+ /* @__PURE__ */ jsxs61("div", { className: "sections-wrapper", children: [
8538
+ /* @__PURE__ */ jsx170("div", { className: "section", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8539
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8540
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { active: true, className: "k-filterable", menu: "column", scope: "col", columnTitle: "Active Column Menu \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8541
+ ] }) }) }) }) }),
8542
+ /* @__PURE__ */ jsx170("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8543
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8544
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { className: "k-filterable", scope: "col", menu: "column", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Column Menu" }) }) })
8545
+ ] }) }) }) }) })
8546
+ ] }),
8547
+ /* @__PURE__ */ jsxs61("div", { className: "sections-wrapper", children: [
8548
+ /* @__PURE__ */ jsx170("div", { className: "section", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8549
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8550
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { scope: "col", active: true, menu: "filter", columnTitle: "Active Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8551
+ ] }) }) }) }) }),
8552
+ /* @__PURE__ */ jsx170("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8553
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8554
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { scope: "col", menu: "filter", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Filterable" }) }) })
8555
+ ] }) }) }) }) })
8556
+ ] }),
8557
+ /* @__PURE__ */ jsxs61("div", { className: "sections-wrapper", children: [
8558
+ /* @__PURE__ */ jsx170("div", { className: "section", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8559
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8560
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { className: "k-filterable", scope: "col", menu: "column", columnTitle: "Sortable Column Menu \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8561
+ ] }) }) }) }) }),
8562
+ /* @__PURE__ */ jsx170("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8563
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8564
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { className: "k-filterable", scope: "col", menu: "column", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Column Menu" }) }) })
8565
+ ] }) }) }) }) })
8566
+ ] }),
8567
+ /* @__PURE__ */ jsxs61("div", { className: "sections-wrapper", children: [
8568
+ /* @__PURE__ */ jsx170("div", { className: "section", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8569
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8570
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { scope: "col", menu: "filter", columnTitle: "Sortable Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8571
+ ] }) }) }) }) }),
8572
+ /* @__PURE__ */ jsx170("div", { className: "section k-rtl", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8573
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8574
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { scope: "col", menu: "filter", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Filterable" }) }) })
8575
+ ] }) }) }) }) })
8576
+ ] }),
8577
+ /* @__PURE__ */ jsxs61("div", { className: "sections-wrapper", children: [
8578
+ /* @__PURE__ */ jsx170("div", { className: "section", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-no-scrollbar", _renderAriaRoot: true, style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8579
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8580
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { menu: "filter", columnTitle: "Angular Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8581
+ ] }) }) }) }) }),
8582
+ /* @__PURE__ */ jsx170("div", { className: "section", children: /* @__PURE__ */ jsx170(Grid, { className: "k-grid-no-scrollbar", _renderAriaRoot: true, dir: "rtl", style: { height: "60px" }, children: /* @__PURE__ */ jsx170(GridHeader, { children: /* @__PURE__ */ jsx170("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8583
+ /* @__PURE__ */ jsx170("colgroup", { children: /* @__PURE__ */ jsx170("col", {}) }),
8584
+ /* @__PURE__ */ jsx170(TableThead, { children: /* @__PURE__ */ jsx170(TableRow, { children: /* @__PURE__ */ jsx170(GridHeaderCell, { menu: "filter", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Angular Filterable" }) }) })
8585
+ ] }) }) }) }) })
4395
8586
  ] })
4396
8587
  ] })
4397
8588
  ] });