@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
@@ -59,6 +59,22 @@ var optionClassNames = (componentClassName, props) => {
59
59
  }
60
60
  );
61
61
  };
62
+ var stateClassNames = (_componentClassName, props) => {
63
+ return classNames({
64
+ "k-valid": props.valid,
65
+ "k-invalid": props.invalid,
66
+ "k-hover": props.hover,
67
+ "k-focus": props.focus,
68
+ "k-checked": props.checked,
69
+ "k-active": props.active,
70
+ "k-selected": props.selected,
71
+ "k-disabled": props.disabled,
72
+ "k-indeterminate": props.indeterminate && !props.checked,
73
+ "k-loading": props.loading,
74
+ "k-empty": props.empty,
75
+ "k-readonly": props.readonly
76
+ });
77
+ };
62
78
 
63
79
  // src/misc/theme.ts
64
80
  var Size = {
@@ -70,6 +86,19 @@ var Size = {
70
86
  "xxlarge": "xxlarge",
71
87
  "xxxlarge": "xxxlarge"
72
88
  };
89
+ var Roundness = {
90
+ "small": "small",
91
+ "medium": "medium",
92
+ "large": "large",
93
+ "full": "full"
94
+ };
95
+ var FillMode = {
96
+ "solid": "solid",
97
+ "flat": "flat",
98
+ "outline": "outline",
99
+ "clear": "clear",
100
+ "link": "link"
101
+ };
73
102
  var ThemeColor = {
74
103
  "inherit": "inherit",
75
104
  "base": "base",
@@ -84,12 +113,350 @@ var ThemeColor = {
84
113
  "light": "light",
85
114
  "inverse": "inverse"
86
115
  };
116
+ var States = {
117
+ "open": "open",
118
+ "hover": "hover",
119
+ "focus": "focus",
120
+ "active": "active",
121
+ "selected": "selected",
122
+ "disabled": "disabled",
123
+ "valid": "valid",
124
+ "invalid": "invalid",
125
+ "loading": "loading",
126
+ "required": "required",
127
+ "empty": "empty",
128
+ "indeterminate": "indeterminate",
129
+ "checked": "checked",
130
+ "readonly": "readonly"
131
+ };
87
132
 
88
- // src/icon/font-icon.spec.tsx
133
+ // src/grid/grid.spec.tsx
89
134
  var import_jsx_runtime = require("react/jsx-runtime");
90
- var FONTICON_CLASSNAME = `k-icon k-font-icon`;
135
+ var GRID_CLASSNAME = "k-grid";
91
136
  var states = [];
92
137
  var options = {
138
+ size: [Size.small, Size.medium, Size.large]
139
+ };
140
+ var defaultProps = {
141
+ size: Size.medium,
142
+ pagerPosition: "bottom"
143
+ };
144
+ var Grid = (props) => {
145
+ const {
146
+ size = defaultProps.size,
147
+ toolbar,
148
+ pager,
149
+ pagerPosition,
150
+ groupingHeader,
151
+ _renderAriaRoot,
152
+ ...other
153
+ } = props;
154
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
155
+ "div",
156
+ {
157
+ ...other,
158
+ className: classNames(
159
+ props.className,
160
+ GRID_CLASSNAME,
161
+ optionClassNames(GRID_CLASSNAME, { size })
162
+ ),
163
+ children: [
164
+ toolbar,
165
+ pagerPosition === "top" && pager,
166
+ groupingHeader,
167
+ props.children && _renderAriaRoot ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-grid-aria-root", children: props.children }) : props.children,
168
+ pagerPosition === "bottom" && pager
169
+ ]
170
+ }
171
+ );
172
+ };
173
+ Grid.states = states;
174
+ Grid.options = options;
175
+ Grid.className = GRID_CLASSNAME;
176
+ Grid.defaultProps = defaultProps;
177
+
178
+ // src/grid/grid-header.spec.tsx
179
+ var import_jsx_runtime2 = require("react/jsx-runtime");
180
+ var className = `k-grid-header`;
181
+ var GridHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
182
+ "div",
183
+ {
184
+ ...props,
185
+ className: classNames(
186
+ props.className,
187
+ className
188
+ ),
189
+ children: props.children
190
+ }
191
+ );
192
+
193
+ // src/grid/grid-grouping-header.spec.tsx
194
+ var import_jsx_runtime3 = require("react/jsx-runtime");
195
+
196
+ // src/table/data-table.spec.tsx
197
+ var import_jsx_runtime4 = require("react/jsx-runtime");
198
+ var DATATABLE_CLASSNAME = `k-data-table`;
199
+ var states2 = [];
200
+ var options2 = {
201
+ size: [Size.small, Size.medium, Size.large]
202
+ };
203
+ var defaultProps2 = {
204
+ size: Size.medium
205
+ };
206
+ var DataTable = (props) => {
207
+ const {
208
+ size = defaultProps2.size,
209
+ ...other
210
+ } = props;
211
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
212
+ "div",
213
+ {
214
+ ...other,
215
+ className: classNames(
216
+ props.className,
217
+ DATATABLE_CLASSNAME,
218
+ optionClassNames("k-table", {
219
+ size
220
+ })
221
+ ),
222
+ children: props.children
223
+ }
224
+ );
225
+ };
226
+ DataTable.states = states2;
227
+ DataTable.options = options2;
228
+ DataTable.className = DATATABLE_CLASSNAME;
229
+ DataTable.defaultProps = defaultProps2;
230
+
231
+ // src/table/table-header.tsx
232
+ var import_jsx_runtime5 = require("react/jsx-runtime");
233
+
234
+ // src/table/table-body.tsx
235
+ var import_jsx_runtime6 = require("react/jsx-runtime");
236
+
237
+ // src/table/table-footer.tsx
238
+ var import_jsx_runtime7 = require("react/jsx-runtime");
239
+
240
+ // src/table/table.spec.tsx
241
+ var import_jsx_runtime8 = require("react/jsx-runtime");
242
+ var TABLE_CLASSNAME = `k-table`;
243
+ var states3 = [];
244
+ var options3 = {
245
+ size: [Size.small, Size.medium, Size.large]
246
+ };
247
+ var defaultProps3 = {};
248
+ var Table = (props) => {
249
+ const {
250
+ size,
251
+ ...other
252
+ } = props;
253
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
254
+ "table",
255
+ {
256
+ ...other,
257
+ className: classNames(
258
+ props.className,
259
+ TABLE_CLASSNAME,
260
+ optionClassNames(TABLE_CLASSNAME, {
261
+ size
262
+ })
263
+ ),
264
+ children: props.children
265
+ }
266
+ );
267
+ };
268
+ Table.states = states3;
269
+ Table.options = options3;
270
+ Table.className = TABLE_CLASSNAME;
271
+ Table.defaultProps = defaultProps3;
272
+
273
+ // src/table/table-list.spec.tsx
274
+ var import_jsx_runtime9 = require("react/jsx-runtime");
275
+ var TABLELIST_CLASSNAME = `k-table-list`;
276
+ var states4 = [];
277
+ var options4 = {
278
+ size: [Size.small, Size.medium, Size.large]
279
+ };
280
+ var defaultProps4 = {};
281
+ var TableList = (props) => {
282
+ const {
283
+ size,
284
+ virtualization,
285
+ ...other
286
+ } = props;
287
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
288
+ "ul",
289
+ {
290
+ ...other,
291
+ className: classNames(
292
+ props.className,
293
+ "k-table",
294
+ TABLELIST_CLASSNAME,
295
+ optionClassNames(TABLELIST_CLASSNAME, {
296
+ size
297
+ }),
298
+ {
299
+ "k-virtual-table": virtualization
300
+ }
301
+ ),
302
+ children: props.children
303
+ }
304
+ );
305
+ };
306
+ TableList.states = states4;
307
+ TableList.options = options4;
308
+ TableList.className = TABLELIST_CLASSNAME;
309
+ TableList.defaultProps = defaultProps4;
310
+
311
+ // src/table/table-thead.tsx
312
+ var import_jsx_runtime10 = require("react/jsx-runtime");
313
+ var className2 = `k-table-thead`;
314
+ var TableThead = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
315
+ "thead",
316
+ {
317
+ className: classNames(
318
+ props.className,
319
+ className2
320
+ ),
321
+ children: props.children
322
+ }
323
+ );
324
+
325
+ // src/table/table-tbody.tsx
326
+ var import_jsx_runtime11 = require("react/jsx-runtime");
327
+
328
+ // src/table/table-tfoot.tsx
329
+ var import_jsx_runtime12 = require("react/jsx-runtime");
330
+
331
+ // src/table/table-row.tsx
332
+ var import_jsx_runtime13 = require("react/jsx-runtime");
333
+ var TABLEROW_CLASSNAME = `k-table-row`;
334
+ var states5 = [
335
+ States.hover,
336
+ States.focus,
337
+ States.selected,
338
+ States.disabled
339
+ ];
340
+ var TableRow = (props) => {
341
+ const {
342
+ hover,
343
+ focus,
344
+ selected,
345
+ disabled,
346
+ alt,
347
+ ...other
348
+ } = props;
349
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
350
+ "tr",
351
+ {
352
+ ...other,
353
+ className: classNames(
354
+ props.className,
355
+ TABLEROW_CLASSNAME,
356
+ {
357
+ ["k-table-alt-row"]: alt
358
+ },
359
+ stateClassNames(TABLEROW_CLASSNAME, {
360
+ hover,
361
+ focus,
362
+ disabled,
363
+ selected
364
+ })
365
+ ),
366
+ children: props.children
367
+ }
368
+ );
369
+ };
370
+
371
+ // src/table/table-list-row.tsx
372
+ var import_jsx_runtime14 = require("react/jsx-runtime");
373
+ var states6 = [
374
+ States.hover,
375
+ States.focus,
376
+ States.selected,
377
+ States.disabled
378
+ ];
379
+
380
+ // src/table/table-th.tsx
381
+ var import_jsx_runtime15 = require("react/jsx-runtime");
382
+ var className3 = `k-table-th`;
383
+ var TableTh = (props) => {
384
+ const {
385
+ text,
386
+ colspan,
387
+ rowspan,
388
+ ...other
389
+ } = props;
390
+ const textOrChildren = text ? text : props.children;
391
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
392
+ "th",
393
+ {
394
+ colSpan: colspan,
395
+ rowSpan: rowspan,
396
+ ...other,
397
+ className: classNames(
398
+ props.className,
399
+ className3
400
+ ),
401
+ children: textOrChildren
402
+ }
403
+ );
404
+ };
405
+
406
+ // src/table/table-list-th.tsx
407
+ var import_jsx_runtime16 = require("react/jsx-runtime");
408
+
409
+ // src/table/table-td.tsx
410
+ var import_jsx_runtime17 = require("react/jsx-runtime");
411
+
412
+ // src/table/table-list-td.tsx
413
+ var import_jsx_runtime18 = require("react/jsx-runtime");
414
+
415
+ // src/table/table-group-header.tsx
416
+ var import_jsx_runtime19 = require("react/jsx-runtime");
417
+
418
+ // src/table/table-group-sticky-header.tsx
419
+ var import_jsx_runtime20 = require("react/jsx-runtime");
420
+
421
+ // src/table/table-group-row.tsx
422
+ var import_jsx_runtime21 = require("react/jsx-runtime");
423
+
424
+ // src/table/table-list-group-row.tsx
425
+ var import_jsx_runtime22 = require("react/jsx-runtime");
426
+
427
+ // src/table/templates/table-list.tsx
428
+ var import_jsx_runtime23 = require("react/jsx-runtime");
429
+
430
+ // src/table/templates/table-list-virtualization.tsx
431
+ var import_jsx_runtime24 = require("react/jsx-runtime");
432
+
433
+ // src/table/templates/data-table-normal.tsx
434
+ var import_jsx_runtime25 = require("react/jsx-runtime");
435
+
436
+ // src/table/templates/table-native.tsx
437
+ var import_jsx_runtime26 = require("react/jsx-runtime");
438
+
439
+ // src/grid/grid-header-table.spec.tsx
440
+ var import_jsx_runtime27 = require("react/jsx-runtime");
441
+ var GRIDHEADERTABLE_CLASSNAME = `k-grid-header-table`;
442
+ var GridHeaderTable = (props) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
443
+ Table,
444
+ {
445
+ size: "medium",
446
+ ...props,
447
+ className: classNames(
448
+ props.className,
449
+ GRIDHEADERTABLE_CLASSNAME
450
+ ),
451
+ children: props.children
452
+ }
453
+ );
454
+
455
+ // src/icon/font-icon.spec.tsx
456
+ var import_jsx_runtime28 = require("react/jsx-runtime");
457
+ var FONTICON_CLASSNAME = `k-icon k-font-icon`;
458
+ var states7 = [];
459
+ var options5 = {
93
460
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
94
461
  themeColor: [
95
462
  ThemeColor.base,
@@ -104,7 +471,7 @@ var options = {
104
471
  ThemeColor.dark
105
472
  ]
106
473
  };
107
- var defaultProps = {};
474
+ var defaultProps5 = {};
108
475
  var FontIcon = (props) => {
109
476
  const {
110
477
  size,
@@ -115,9 +482,9 @@ var FontIcon = (props) => {
115
482
  ...other
116
483
  } = props;
117
484
  if (!icon) {
118
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
485
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, {});
119
486
  }
120
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
487
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
121
488
  "span",
122
489
  {
123
490
  ...other,
@@ -138,17 +505,17 @@ var FontIcon = (props) => {
138
505
  }
139
506
  );
140
507
  };
141
- FontIcon.states = states;
142
- FontIcon.options = options;
508
+ FontIcon.states = states7;
509
+ FontIcon.options = options5;
143
510
  FontIcon.className = FONTICON_CLASSNAME;
144
- FontIcon.defaultProps = defaultProps;
511
+ FontIcon.defaultProps = defaultProps5;
145
512
  var font_icon_spec_default = FontIcon;
146
513
 
147
514
  // src/icon/svg-icon.spec.tsx
148
- var import_jsx_runtime2 = require("react/jsx-runtime");
515
+ var import_jsx_runtime29 = require("react/jsx-runtime");
149
516
  var SVGICON_CLASSNAME = `k-icon k-svg-icon`;
150
- var states2 = [];
151
- var options2 = {
517
+ var states8 = [];
518
+ var options6 = {
152
519
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
153
520
  themeColor: [
154
521
  ThemeColor.base,
@@ -163,7 +530,7 @@ var options2 = {
163
530
  ThemeColor.dark
164
531
  ]
165
532
  };
166
- var defaultProps2 = {
533
+ var defaultProps6 = {
167
534
  viewBox: "0 0 24 24"
168
535
  };
169
536
  var SvgIcon = (props) => {
@@ -172,15 +539,15 @@ var SvgIcon = (props) => {
172
539
  themeColor,
173
540
  rotate,
174
541
  flip,
175
- viewBox = defaultProps2.viewBox,
542
+ viewBox = defaultProps6.viewBox,
176
543
  icon,
177
544
  ...other
178
545
  } = props;
179
546
  if (!icon) {
180
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
547
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, {});
181
548
  }
182
549
  if (icon === "none") {
183
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
550
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
184
551
  "span",
185
552
  {
186
553
  ...other,
@@ -193,7 +560,7 @@ var SvgIcon = (props) => {
193
560
  );
194
561
  }
195
562
  const name = typeof icon === "object" && icon.name && icon.name;
196
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
563
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
197
564
  "span",
198
565
  {
199
566
  ...other,
@@ -211,7 +578,7 @@ var SvgIcon = (props) => {
211
578
  "k-flip-v": flip === "v" || flip === "both"
212
579
  }
213
580
  ),
214
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
581
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
215
582
  "svg",
216
583
  {
217
584
  "aria-hidden": true,
@@ -225,10 +592,10 @@ var SvgIcon = (props) => {
225
592
  }
226
593
  );
227
594
  };
228
- SvgIcon.states = states2;
229
- SvgIcon.options = options2;
595
+ SvgIcon.states = states8;
596
+ SvgIcon.options = options6;
230
597
  SvgIcon.className = SVGICON_CLASSNAME;
231
- SvgIcon.defaultProps = defaultProps2;
598
+ SvgIcon.defaultProps = defaultProps6;
232
599
  var svg_icon_spec_default = SvgIcon;
233
600
 
234
601
  // ../../node_modules/@progress/kendo-svg-icons/dist/index.es.js
@@ -4263,13 +4630,13 @@ var chartChoroplethIcon = {
4263
4630
  };
4264
4631
 
4265
4632
  // src/icon/icon.spec.tsx
4266
- var import_jsx_runtime3 = require("react/jsx-runtime");
4633
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4267
4634
  var snakeToCamel = (str) => str.toLowerCase().replace(
4268
4635
  /([-_][a-z])/g,
4269
4636
  (group) => group.toUpperCase().replace("-", "").replace("_", "")
4270
4637
  );
4271
- var states3 = [];
4272
- var options3 = {
4638
+ var states9 = [];
4639
+ var options7 = {
4273
4640
  size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
4274
4641
  themeColor: [
4275
4642
  ThemeColor.base,
@@ -4284,7 +4651,7 @@ var options3 = {
4284
4651
  ThemeColor.dark
4285
4652
  ]
4286
4653
  };
4287
- var defaultProps3 = {
4654
+ var defaultProps7 = {
4288
4655
  viewBox: "0 0 24 24",
4289
4656
  type: "svg"
4290
4657
  };
@@ -4293,124 +4660,3948 @@ var Icon = (props) => {
4293
4660
  size,
4294
4661
  themeColor,
4295
4662
  icon,
4296
- type = defaultProps3.type,
4663
+ type = defaultProps7.type,
4297
4664
  rotate,
4298
4665
  flip,
4299
- viewBox = defaultProps3.viewBox,
4666
+ viewBox = defaultProps7.viewBox,
4300
4667
  ...other
4301
4668
  } = props;
4302
4669
  if (!icon) {
4303
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4670
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, {});
4304
4671
  }
4305
4672
  if (type === "svg") {
4306
4673
  if (icon === "none") {
4307
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon, size });
4674
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(svg_icon_spec_default, { ...other, icon, size });
4308
4675
  }
4309
4676
  const iconSVG = snakeToCamel(`${icon}-icon`);
4310
4677
  if (!index_es_exports[iconSVG]) {
4311
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {});
4678
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, {});
4312
4679
  }
4313
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4680
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(svg_icon_spec_default, { ...other, icon: index_es_exports[iconSVG], size, themeColor, rotate, flip, viewBox });
4314
4681
  }
4315
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4682
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(font_icon_spec_default, { ...other, icon, size, themeColor, rotate, flip });
4316
4683
  };
4317
- Icon.states = states3;
4318
- Icon.options = options3;
4319
- Icon.defaultProps = defaultProps3;
4684
+ Icon.states = states9;
4685
+ Icon.options = options7;
4686
+ Icon.defaultProps = defaultProps7;
4320
4687
 
4321
- // src/grid/tests/grid-long-titles.tsx
4322
- var import_jsx_runtime4 = require("react/jsx-runtime");
4323
- var styles = `
4324
- .section {
4325
- max-width: 400px;
4688
+ // src/grid/grid-header-cell.spec.tsx
4689
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4690
+ var className4 = `k-header`;
4691
+ var states10 = [
4692
+ States.hover,
4693
+ States.focus,
4694
+ States.active
4695
+ ];
4696
+ var defaultProps8 = {
4697
+ sortIcon: "sort-asc-small"
4698
+ };
4699
+ var GridHeaderCell = (props) => {
4700
+ const {
4701
+ menu,
4702
+ sortable,
4703
+ sticky,
4704
+ resizable,
4705
+ columnTitle,
4706
+ hover,
4707
+ focus,
4708
+ active,
4709
+ sortIcon = defaultProps8.sortIcon,
4710
+ sortOrder,
4711
+ ...others
4712
+ } = props;
4713
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
4714
+ TableTh,
4715
+ {
4716
+ ...others,
4717
+ className: classNames(
4718
+ props.className,
4719
+ className4,
4720
+ {
4721
+ [`k-filterable`]: menu === "filter",
4722
+ [`k-sorted`]: sortable,
4723
+ [`k-grid-header-sticky`]: sticky,
4724
+ [`k-touch-action-none`]: resizable
4725
+ },
4726
+ stateClassNames(className4, {
4727
+ hover,
4728
+ focus,
4729
+ active
4730
+ })
4731
+ ),
4732
+ children: [
4733
+ columnTitle && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "k-cell-inner", children: [
4734
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "k-link", children: [
4735
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-column-title", children: columnTitle }),
4736
+ sortable && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-sort-icon", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { icon: sortIcon }) }),
4737
+ sortOrder && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-sort-order", children: sortOrder })
4738
+ ] }),
4739
+ menu && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("a", { href: "#", className: classNames(
4740
+ "k-grid-header-menu",
4741
+ {
4742
+ [`k-active`]: active,
4743
+ [`k-grid-filter-menu`]: menu === "filter",
4744
+ [`k-grid-column-menu`]: menu === "column"
4745
+ }
4746
+ ), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { icon: menu === "filter" ? "filter" : "more-vertical" }) })
4747
+ ] }),
4748
+ props.children,
4749
+ resizable && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-column-resizer k-touch-action-none" })
4750
+ ]
4326
4751
  }
4752
+ );
4753
+ };
4327
4754
 
4328
- .sections-wrapper > .section {
4329
- display: inline-block;
4755
+ // src/grid/grid-container.spec.tsx
4756
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4757
+
4758
+ // src/grid/grid-content.spec.tsx
4759
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4760
+
4761
+ // src/grid/grid-table.spec.tsx
4762
+ var import_jsx_runtime34 = require("react/jsx-runtime");
4763
+
4764
+ // src/grid/grid-footer.spec.tsx
4765
+ var import_jsx_runtime35 = require("react/jsx-runtime");
4766
+
4767
+ // src/grid/grid-footer-table.spec.tsx
4768
+ var import_jsx_runtime36 = require("react/jsx-runtime");
4769
+
4770
+ // src/button/button.spec.tsx
4771
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4772
+ var BUTTON_CLASSNAME = `k-button`;
4773
+ var states11 = [
4774
+ States.hover,
4775
+ States.focus,
4776
+ States.active,
4777
+ States.selected,
4778
+ States.disabled
4779
+ ];
4780
+ var options8 = {
4781
+ size: [Size.small, Size.medium, Size.large],
4782
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4783
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4784
+ themeColor: [
4785
+ ThemeColor.base,
4786
+ ThemeColor.primary,
4787
+ ThemeColor.secondary,
4788
+ ThemeColor.tertiary,
4789
+ ThemeColor.success,
4790
+ ThemeColor.warning,
4791
+ ThemeColor.error,
4792
+ ThemeColor.info,
4793
+ ThemeColor.light,
4794
+ ThemeColor.dark,
4795
+ ThemeColor.inverse
4796
+ ]
4797
+ };
4798
+ var defaultProps9 = {
4799
+ size: Size.medium,
4800
+ rounded: Roundness.medium,
4801
+ fillMode: FillMode.solid,
4802
+ themeColor: ThemeColor.base,
4803
+ showArrow: false,
4804
+ arrowIconName: "caret-alt-down"
4805
+ };
4806
+ var Button = (props) => {
4807
+ const {
4808
+ size = defaultProps9.size,
4809
+ rounded = defaultProps9.rounded,
4810
+ fillMode = defaultProps9.fillMode,
4811
+ themeColor = defaultProps9.themeColor,
4812
+ hover,
4813
+ focus,
4814
+ active,
4815
+ selected,
4816
+ disabled,
4817
+ icon,
4818
+ text,
4819
+ iconClassName,
4820
+ showArrow = defaultProps9.showArrow,
4821
+ arrowIconName = defaultProps9.arrowIconName,
4822
+ ...other
4823
+ } = props;
4824
+ const hasIcon = icon !== void 0;
4825
+ const hasChildren = props.children !== void 0;
4826
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
4827
+ "button",
4828
+ {
4829
+ ...other,
4830
+ className: classNames(
4831
+ props.className,
4832
+ BUTTON_CLASSNAME,
4833
+ optionClassNames(BUTTON_CLASSNAME, {
4834
+ size,
4835
+ rounded,
4836
+ fillMode,
4837
+ themeColor
4838
+ }),
4839
+ stateClassNames(BUTTON_CLASSNAME, {
4840
+ hover,
4841
+ focus,
4842
+ active,
4843
+ disabled,
4844
+ selected
4845
+ }),
4846
+ {
4847
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4848
+ }
4849
+ ),
4850
+ children: [
4851
+ icon && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4852
+ Icon,
4853
+ {
4854
+ className: classNames(iconClassName, "k-button-icon"),
4855
+ icon
4856
+ }
4857
+ ),
4858
+ text ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
4859
+ text && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-button-text", children: text }),
4860
+ props.children
4861
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-button-text", children: props.children }),
4862
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Icon, { icon: arrowIconName }) })
4863
+ ]
4330
4864
  }
4331
- `;
4332
- var grid_long_titles_default = () => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
4333
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("style", { children: styles }),
4334
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id: "test-area", children: [
4335
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sections-wrapper", children: [
4336
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4337
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4338
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4339
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Active Column Menu \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4340
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { className: "k-grid-header-menu k-grid-column-menu k-active", href: "#", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "more-vertical" }) })
4341
- ] }) }) }) })
4342
- ] }) }) }) }) }),
4343
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4344
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4345
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4346
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Column Menu" }) }),
4347
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { className: "k-grid-header-menu k-grid-column-menu", href: "#", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "more-vertical" }) })
4348
- ] }) }) }) })
4349
- ] }) }) }) }) })
4350
- ] }),
4351
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sections-wrapper", children: [
4352
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4353
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4354
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4355
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Active Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4356
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu k-active", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "filter" }) })
4357
- ] }) }) }) })
4358
- ] }) }) }) }) }),
4359
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4360
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4361
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4362
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Filterable" }) }),
4363
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "filter" }) })
4364
- ] }) }) }) })
4365
- ] }) }) }) }) })
4366
- ] }),
4367
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sections-wrapper", children: [
4368
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4369
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4370
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4371
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Sortable Column Menu \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4372
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { className: "k-grid-header-menu k-grid-column-menu", href: "#", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "more-vertical" }) })
4373
- ] }) }) }) })
4374
- ] }) }) }) }) }),
4375
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4376
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4377
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4378
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Column Menu" }) }),
4379
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { className: "k-grid-header-menu k-grid-column-menu", href: "#", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "more-vertical" }) })
4380
- ] }) }) }) })
4381
- ] }) }) }) }) })
4382
- ] }),
4383
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sections-wrapper", children: [
4384
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4385
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4386
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4387
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Sortable Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4388
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "filter" }) })
4389
- ] }) }) }) })
4390
- ] }) }) }) }) }),
4391
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "grid", className: "k-grid k-grid-md k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4392
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4393
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { scope: "col", className: "k-table-th k-header k-filterable", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4394
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Filterable" }) }),
4395
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "filter" }) })
4396
- ] }) }) }) })
4397
- ] }) }) }) }) })
4398
- ] }),
4399
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sections-wrapper", children: [
4400
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-aria-root", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4401
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4402
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { className: "k-table-th k-filterable k-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4403
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Angular Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }),
4404
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "filter" }) }) })
4405
- ] }) }) }) })
4406
- ] }) }) }) }) }) }),
4407
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", dir: "rtl", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-aria-root", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
4408
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("col", {}) }),
4409
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: "k-table-row", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("th", { className: "k-table-th k-filterable k-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "k-cell-inner", children: [
4410
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-column-title", children: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Angular Filterable" }) }),
4411
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", { href: "#", className: "k-grid-filter-menu k-grid-header-menu", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon: "filter" }) })
4412
- ] }) }) }) })
4413
- ] }) }) }) }) }) })
4865
+ );
4866
+ };
4867
+ Button.states = states11;
4868
+ Button.options = options8;
4869
+ Button.className = BUTTON_CLASSNAME;
4870
+ Button.defaultProps = defaultProps9;
4871
+
4872
+ // src/button/templates/icon-button.tsx
4873
+ var import_jsx_runtime38 = require("react/jsx-runtime");
4874
+
4875
+ // src/button/templates/icon-text-button.tsx
4876
+ var import_jsx_runtime39 = require("react/jsx-runtime");
4877
+
4878
+ // src/button/templates/text-button.tsx
4879
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4880
+
4881
+ // src/input/input.spec.tsx
4882
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4883
+ var INPUT_CLASSNAME = `k-input`;
4884
+ var states12 = [
4885
+ States.hover,
4886
+ States.focus,
4887
+ States.valid,
4888
+ States.invalid,
4889
+ States.required,
4890
+ States.disabled,
4891
+ States.loading,
4892
+ States.readonly
4893
+ ];
4894
+ var options9 = {
4895
+ size: [Size.small, Size.medium, Size.large],
4896
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4897
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4898
+ };
4899
+ var defaultProps10 = {
4900
+ size: Size.medium,
4901
+ rounded: Size.medium,
4902
+ fillMode: FillMode.solid
4903
+ };
4904
+ var Input = (props) => {
4905
+ const {
4906
+ hover,
4907
+ focus,
4908
+ disabled,
4909
+ invalid,
4910
+ valid,
4911
+ loading,
4912
+ readonly,
4913
+ size = defaultProps10.size,
4914
+ rounded = defaultProps10.rounded,
4915
+ fillMode = defaultProps10.fillMode,
4916
+ ...other
4917
+ } = props;
4918
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4919
+ "span",
4920
+ {
4921
+ ...other,
4922
+ className: classNames(
4923
+ props.className,
4924
+ INPUT_CLASSNAME,
4925
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4926
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4927
+ )
4928
+ }
4929
+ );
4930
+ };
4931
+ Input.states = states12;
4932
+ Input.options = options9;
4933
+ Input.className = INPUT_CLASSNAME;
4934
+ Input.defaultProps = defaultProps10;
4935
+
4936
+ // src/input/picker.spec.tsx
4937
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4938
+ var PICKER_CLASSNAME = `k-picker`;
4939
+ var pickerStates = [
4940
+ States.hover,
4941
+ States.focus,
4942
+ States.valid,
4943
+ States.invalid,
4944
+ States.required,
4945
+ States.disabled,
4946
+ States.loading,
4947
+ States.readonly
4948
+ ];
4949
+ var pickerOptions = {
4950
+ size: [Size.small, Size.medium, Size.large],
4951
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4952
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4953
+ };
4954
+ var defaultProps11 = {
4955
+ size: Size.medium,
4956
+ rounded: Roundness.medium,
4957
+ fillMode: FillMode.solid
4958
+ };
4959
+ var Picker = (props) => {
4960
+ const {
4961
+ hover,
4962
+ focus,
4963
+ disabled,
4964
+ invalid,
4965
+ valid,
4966
+ loading,
4967
+ readonly,
4968
+ size = defaultProps11.size,
4969
+ rounded = defaultProps11.rounded,
4970
+ fillMode = defaultProps11.fillMode,
4971
+ ...other
4972
+ } = props;
4973
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4974
+ "span",
4975
+ {
4976
+ ...other,
4977
+ className: classNames(
4978
+ props.className,
4979
+ PICKER_CLASSNAME,
4980
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
4981
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4982
+ ),
4983
+ children: props.children
4984
+ }
4985
+ );
4986
+ };
4987
+ Picker.states = pickerStates;
4988
+ Picker.options = pickerOptions;
4989
+ Picker.className = PICKER_CLASSNAME;
4990
+ Picker.defaultProps = defaultProps11;
4991
+
4992
+ // src/input/input-clear-value.tsx
4993
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4994
+ var className5 = `k-clear-value`;
4995
+ var states13 = [
4996
+ States.disabled,
4997
+ States.loading,
4998
+ States.readonly
4999
+ ];
5000
+ var options10 = {};
5001
+ var InputClearValue = (props) => {
5002
+ const {
5003
+ disabled,
5004
+ loading,
5005
+ readonly,
5006
+ value
5007
+ } = props;
5008
+ if (disabled || readonly || loading || !value) {
5009
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, {});
5010
+ }
5011
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: classNames(props.className, className5), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { icon: "x" }) });
5012
+ };
5013
+ InputClearValue.states = states13;
5014
+ InputClearValue.options = options10;
5015
+ InputClearValue.className = className5;
5016
+
5017
+ // src/input/input-inner-input.tsx
5018
+ var import_jsx_runtime44 = require("react/jsx-runtime");
5019
+ var className6 = `k-input-inner`;
5020
+ var states14 = [];
5021
+ var options11 = {};
5022
+ var defaultProps12 = {
5023
+ type: "text",
5024
+ autocomplete: "off",
5025
+ value: "",
5026
+ placeholder: ""
5027
+ };
5028
+ var InputInnerInput = (props) => {
5029
+ const {
5030
+ value = defaultProps12.value,
5031
+ type = defaultProps12.type,
5032
+ placeholder = defaultProps12.placeholder,
5033
+ autocomplete = defaultProps12.autocomplete,
5034
+ ...other
5035
+ } = props;
5036
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5037
+ "input",
5038
+ {
5039
+ ...other,
5040
+ type,
5041
+ className: classNames(props.className, className6, optionClassNames(className6, props)),
5042
+ placeholder,
5043
+ autoComplete: autocomplete,
5044
+ defaultValue: value
5045
+ }
5046
+ );
5047
+ };
5048
+ InputInnerInput.states = states14;
5049
+ InputInnerInput.options = options11;
5050
+ InputInnerInput.className = className6;
5051
+
5052
+ // src/input/input-inner-span.tsx
5053
+ var import_jsx_runtime45 = require("react/jsx-runtime");
5054
+ var className7 = `k-input-inner`;
5055
+ var states15 = [];
5056
+ var options12 = {};
5057
+ var InputInnerSpan = (props) => {
5058
+ const {
5059
+ value,
5060
+ placeholder,
5061
+ showValue,
5062
+ valueIcon,
5063
+ valueIconName,
5064
+ ...other
5065
+ } = props;
5066
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
5067
+ "span",
5068
+ {
5069
+ ...other,
5070
+ className: classNames(props.className, className7, optionClassNames(className7, props)),
5071
+ children: [
5072
+ valueIcon,
5073
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { className: "k-input-value-icon", icon: valueIconName }),
5074
+ showValue && !value && placeholder,
5075
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "k-input-value-text", children: value })
5076
+ ]
5077
+ }
5078
+ );
5079
+ };
5080
+ InputInnerSpan.states = states15;
5081
+ InputInnerSpan.options = options12;
5082
+ InputInnerSpan.className = className7;
5083
+
5084
+ // src/input/input-inner-textarea.tsx
5085
+ var import_jsx_runtime46 = require("react/jsx-runtime");
5086
+ var defaultProps13 = {
5087
+ value: "",
5088
+ placeholder: ""
5089
+ };
5090
+ var className8 = `k-input-inner`;
5091
+ var states16 = [];
5092
+ var options13 = {};
5093
+ var InputInnerTextarea = (props) => {
5094
+ const {
5095
+ value = defaultProps13.value,
5096
+ placeholder = defaultProps13.placeholder,
5097
+ rows,
5098
+ ...other
5099
+ } = props;
5100
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
5101
+ "textarea",
5102
+ {
5103
+ ...other,
5104
+ className: classNames(props.className, className8, optionClassNames(className8, props)),
5105
+ placeholder,
5106
+ rows,
5107
+ children: value
5108
+ }
5109
+ );
5110
+ };
5111
+ InputInnerTextarea.states = states16;
5112
+ InputInnerTextarea.options = options13;
5113
+ InputInnerTextarea.className = className8;
5114
+
5115
+ // src/input/input-loading-icon.tsx
5116
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5117
+ var className9 = `k-input-loading-icon`;
5118
+ var states17 = [
5119
+ States.disabled,
5120
+ States.loading
5121
+ ];
5122
+ var InputLoadingIcon = (props) => {
5123
+ const {
5124
+ disabled,
5125
+ loading
5126
+ } = props;
5127
+ if (disabled || !loading) {
5128
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, {});
5129
+ }
5130
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: classNames(props.className, className9, "k-icon k-i-loading") });
5131
+ };
5132
+
5133
+ // src/input/input-validation-icon.tsx
5134
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5135
+ var className10 = `k-input-validation-icon`;
5136
+ var states18 = [
5137
+ States.valid,
5138
+ States.invalid,
5139
+ States.disabled,
5140
+ States.loading
5141
+ ];
5142
+ var options14 = {};
5143
+ var InputValidationIcon = (props) => {
5144
+ const {
5145
+ valid,
5146
+ invalid,
5147
+ disabled,
5148
+ loading
5149
+ } = props;
5150
+ const iconName = invalid ? "warning-circle" : "check-circle";
5151
+ const renderValidationIcon = Boolean(valid || invalid);
5152
+ if (disabled || loading || !renderValidationIcon) {
5153
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, {});
5154
+ }
5155
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { className: classNames(className10), icon: iconName });
5156
+ };
5157
+ InputValidationIcon.states = states18;
5158
+ InputValidationIcon.options = options14;
5159
+ InputValidationIcon.className = className10;
5160
+
5161
+ // src/input/input-prefix.tsx
5162
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5163
+ var className11 = `k-input-prefix`;
5164
+ var defaultProps14 = {
5165
+ direction: "horizontal"
5166
+ };
5167
+ var InputPrefix = (props) => {
5168
+ const {
5169
+ direction = defaultProps14.direction,
5170
+ ...other
5171
+ } = props;
5172
+ if (!props.children) {
5173
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, {});
5174
+ }
5175
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5176
+ "span",
5177
+ {
5178
+ ...other,
5179
+ className: classNames(
5180
+ className11,
5181
+ props.className,
5182
+ {
5183
+ [`k-input-prefix-${direction}`]: direction
5184
+ }
5185
+ ),
5186
+ children: props.children
5187
+ }
5188
+ );
5189
+ };
5190
+
5191
+ // src/input/input-suffix.tsx
5192
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5193
+ var className12 = `k-input-suffix`;
5194
+ var defaultProps15 = {
5195
+ direction: "horizontal"
5196
+ };
5197
+ var InputSuffix = (props) => {
5198
+ const {
5199
+ direction = defaultProps15.direction,
5200
+ ...other
5201
+ } = props;
5202
+ if (!props.children) {
5203
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, {});
5204
+ }
5205
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5206
+ "span",
5207
+ {
5208
+ ...other,
5209
+ className: classNames(
5210
+ className12,
5211
+ props.className,
5212
+ {
5213
+ [`k-input-suffix-${direction}`]: direction
5214
+ }
5215
+ ),
5216
+ children: props.children
5217
+ }
5218
+ );
5219
+ };
5220
+
5221
+ // src/input/input-prefix-text.tsx
5222
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5223
+
5224
+ // src/input/input-suffix-text.tsx
5225
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5226
+
5227
+ // src/input/input-separator.tsx
5228
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5229
+ var className13 = `k-input-separator`;
5230
+ var defaultProps16 = {
5231
+ direction: "vertical"
5232
+ };
5233
+ var InputSeparator = (props) => {
5234
+ const {
5235
+ direction = defaultProps16.direction,
5236
+ ...other
5237
+ } = props;
5238
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5239
+ "span",
5240
+ {
5241
+ ...other,
5242
+ className: classNames(
5243
+ className13,
5244
+ props.className,
5245
+ {
5246
+ [`${className13}-${direction}`]: direction
5247
+ }
5248
+ )
5249
+ }
5250
+ );
5251
+ };
5252
+
5253
+ // src/animation-container/animation-container.spec.tsx
5254
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5255
+ var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
5256
+ var states19 = [];
5257
+ var options15 = {};
5258
+ var defaultProps17 = {
5259
+ positionMode: "absolute"
5260
+ };
5261
+ var AnimationContainer = (props) => {
5262
+ const {
5263
+ positionMode,
5264
+ animationStyle,
5265
+ offset,
5266
+ ...other
5267
+ } = props;
5268
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5269
+ "div",
5270
+ {
5271
+ ...other,
5272
+ style: { ...offset, ...props.style },
5273
+ className: classNames(
5274
+ ANIMATION_CONTAINER_CLASSNAME,
5275
+ "k-animation-container-shown",
5276
+ {
5277
+ ["k-animation-container-fixed"]: positionMode === "fixed"
5278
+ }
5279
+ ),
5280
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
5281
+ }
5282
+ );
5283
+ };
5284
+ AnimationContainer.states = states19;
5285
+ AnimationContainer.options = options15;
5286
+ AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5287
+ AnimationContainer.defaultProps = defaultProps17;
5288
+
5289
+ // src/popup/popup.spec.tsx
5290
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5291
+ var POPUP_CLASSNAME = `k-popup`;
5292
+ var states20 = [];
5293
+ var options16 = {};
5294
+ var defaultProps18 = {
5295
+ positionMode: "absolute"
5296
+ };
5297
+ var Popup = (props) => {
5298
+ const {
5299
+ offset,
5300
+ positionMode,
5301
+ ...other
5302
+ } = props;
5303
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5304
+ AnimationContainer,
5305
+ {
5306
+ positionMode,
5307
+ offset,
5308
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5309
+ }
5310
+ );
5311
+ };
5312
+ Popup.states = states20;
5313
+ Popup.options = options16;
5314
+ Popup.className = POPUP_CLASSNAME;
5315
+ Popup.defaultProps = defaultProps18;
5316
+
5317
+ // src/dropdownlist/dropdownlist.spec.tsx
5318
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5319
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
5320
+ var states21 = [
5321
+ States.hover,
5322
+ States.focus,
5323
+ States.valid,
5324
+ States.invalid,
5325
+ States.required,
5326
+ States.disabled,
5327
+ States.loading,
5328
+ States.readonly
5329
+ ];
5330
+ var options17 = {
5331
+ size: [Size.small, Size.medium, Size.large],
5332
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5333
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5334
+ };
5335
+ var defaultProps19 = {
5336
+ showValue: true,
5337
+ arrowIconName: "caret-alt-down",
5338
+ size: Size.medium,
5339
+ rounded: Roundness.medium,
5340
+ fillMode: FillMode.solid
5341
+ };
5342
+ var DropdownList = (props) => {
5343
+ const {
5344
+ valueIconName,
5345
+ arrowIconName = defaultProps19.arrowIconName,
5346
+ prefix,
5347
+ suffix,
5348
+ value,
5349
+ placeholder,
5350
+ size,
5351
+ rounded,
5352
+ fillMode,
5353
+ hover,
5354
+ focus,
5355
+ valid,
5356
+ invalid,
5357
+ required,
5358
+ loading,
5359
+ disabled,
5360
+ readonly,
5361
+ showValue = defaultProps19.showValue,
5362
+ popup,
5363
+ opened,
5364
+ ...other
5365
+ } = props;
5366
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
5367
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5368
+ Picker,
5369
+ {
5370
+ ...other,
5371
+ size,
5372
+ rounded,
5373
+ fillMode,
5374
+ hover,
5375
+ focus,
5376
+ valid,
5377
+ invalid,
5378
+ required,
5379
+ loading,
5380
+ disabled,
5381
+ readonly,
5382
+ className: classNames(
5383
+ props.className,
5384
+ DROPDOWNLIST_CLASSNAME,
5385
+ {
5386
+ "k-icon-picker": !showValue && valueIconName
5387
+ }
5388
+ ),
5389
+ children: [
5390
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InputPrefix, { children: prefix }),
5391
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5392
+ InputInnerSpan,
5393
+ {
5394
+ placeholder,
5395
+ value,
5396
+ showValue,
5397
+ valueIconName
5398
+ }
5399
+ ),
5400
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5401
+ InputValidationIcon,
5402
+ {
5403
+ valid,
5404
+ invalid,
5405
+ loading,
5406
+ disabled
5407
+ }
5408
+ ),
5409
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5410
+ InputLoadingIcon,
5411
+ {
5412
+ loading,
5413
+ disabled
5414
+ }
5415
+ ),
5416
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InputSuffix, { children: suffix }),
5417
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5418
+ Button,
5419
+ {
5420
+ className: "k-input-button",
5421
+ icon: arrowIconName,
5422
+ rounded: null,
5423
+ size: props.size,
5424
+ fillMode: props.fillMode
5425
+ }
5426
+ )
5427
+ ]
5428
+ }
5429
+ ),
5430
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
5431
+ ] });
5432
+ };
5433
+ DropdownList.states = states21;
5434
+ DropdownList.options = options17;
5435
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
5436
+ DropdownList.defaultProps = defaultProps19;
5437
+
5438
+ // src/dropdownlist/templates/dropdownlist-normal.tsx
5439
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5440
+
5441
+ // src/nodata/nodata.tsx
5442
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5443
+ var className14 = `k-nodata`;
5444
+ var NoData = (props) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: classNames(className14, props.className), children: props.children });
5445
+
5446
+ // src/list/list.spec.tsx
5447
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5448
+ var LIST_CLASSNAME = `k-list`;
5449
+ var states22 = [];
5450
+ var options18 = {
5451
+ size: [Size.small, Size.medium, Size.large]
5452
+ };
5453
+ var defaultProps20 = {
5454
+ size: Size.medium
5455
+ };
5456
+ var List = (props) => {
5457
+ const {
5458
+ size = defaultProps20.size,
5459
+ virtualization,
5460
+ children,
5461
+ optionLabel,
5462
+ ...other
5463
+ } = props;
5464
+ let listHeader;
5465
+ let listGroup;
5466
+ let listContent;
5467
+ const listChildren = [];
5468
+ if (children) {
5469
+ children.map((child, index) => {
5470
+ if (child.type === ListGroup) {
5471
+ if (child.props.root === true) {
5472
+ listHeader = child.props.label;
5473
+ child.props.children.map((optChild, index2) => {
5474
+ listChildren.push(
5475
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5476
+ ListItem,
5477
+ {
5478
+ ...optChild.props
5479
+ },
5480
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5481
+ )
5482
+ );
5483
+ });
5484
+ } else {
5485
+ child.props.children.forEach((optChild, index2) => {
5486
+ let groupLabel = "";
5487
+ if (index2 === 0) {
5488
+ groupLabel = child.props.label;
5489
+ }
5490
+ listChildren.push(
5491
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5492
+ ListItem,
5493
+ {
5494
+ className: index2 === 0 ? "k-first" : "",
5495
+ ...optChild.props,
5496
+ groupLabel
5497
+ },
5498
+ `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5499
+ )
5500
+ );
5501
+ });
5502
+ }
5503
+ listGroup = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5504
+ } else if (child.type === ListItem) {
5505
+ listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5506
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ListContent, { virtualization, children: listChildren });
5507
+ }
5508
+ });
5509
+ } else {
5510
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NoData, { children: "No data found." });
5511
+ }
5512
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5513
+ "div",
5514
+ {
5515
+ ...other,
5516
+ className: classNames(
5517
+ props.className,
5518
+ LIST_CLASSNAME,
5519
+ optionClassNames(LIST_CLASSNAME, {
5520
+ size
5521
+ }),
5522
+ {
5523
+ ["k-virtual-list"]: virtualization
5524
+ }
5525
+ ),
5526
+ children: [
5527
+ optionLabel,
5528
+ listGroup,
5529
+ listContent
5530
+ ]
5531
+ }
5532
+ );
5533
+ };
5534
+ List.states = states22;
5535
+ List.options = options18;
5536
+ List.className = LIST_CLASSNAME;
5537
+ List.defaultProps = defaultProps20;
5538
+
5539
+ // src/list/list-angular.spec.tsx
5540
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5541
+ var LISTANGULAR_CLASSNAME = `k-list`;
5542
+ var states23 = [];
5543
+ var options19 = {
5544
+ size: [Size.small, Size.medium, Size.large]
5545
+ };
5546
+ var defaultProps21 = {
5547
+ size: Size.medium
5548
+ };
5549
+ var ListAngular = (props) => {
5550
+ const {
5551
+ size = defaultProps21.size,
5552
+ virtualization,
5553
+ children,
5554
+ ...other
5555
+ } = props;
5556
+ let listHeader;
5557
+ let listGroup;
5558
+ let listContent;
5559
+ const listChildren = [];
5560
+ if (children) {
5561
+ children.map((child, index) => {
5562
+ if (child.type === ListGroup) {
5563
+ if (child.props.root === true) {
5564
+ listHeader = child.props.label;
5565
+ child.props.children.map((optChild, index2) => {
5566
+ listChildren.push(
5567
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5568
+ ListItem,
5569
+ {
5570
+ ...optChild.props
5571
+ },
5572
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5573
+ )
5574
+ );
5575
+ });
5576
+ } else {
5577
+ listChildren.push(
5578
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5579
+ ListGroupItem,
5580
+ {
5581
+ ...child.props,
5582
+ children: child.props.label
5583
+ },
5584
+ `listChild-${index}`
5585
+ )
5586
+ );
5587
+ child.props.children.map((optChild, index2) => {
5588
+ listChildren.push(
5589
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5590
+ ListItem,
5591
+ {
5592
+ ...optChild.props
5593
+ },
5594
+ `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5595
+ )
5596
+ );
5597
+ });
5598
+ }
5599
+ listGroup = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ListGroup, { label: listHeader, virtualization, children: listChildren });
5600
+ } else if (child.type === ListItem) {
5601
+ listChildren.push(/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ListItem, { ...child.props }, `${child.type}-${index}`));
5602
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ListContent, { virtualization, children: listChildren });
5603
+ }
5604
+ });
5605
+ } else {
5606
+ listContent = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NoData, { children: "No data found." });
5607
+ }
5608
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5609
+ "div",
5610
+ {
5611
+ ...other,
5612
+ className: classNames(
5613
+ props.className,
5614
+ LISTANGULAR_CLASSNAME,
5615
+ optionClassNames(LISTANGULAR_CLASSNAME, {
5616
+ size
5617
+ }),
5618
+ {
5619
+ ["k-virtual-list"]: virtualization
5620
+ }
5621
+ ),
5622
+ children: [
5623
+ listGroup,
5624
+ listContent
5625
+ ]
5626
+ }
5627
+ );
5628
+ };
5629
+ ListAngular.states = states23;
5630
+ ListAngular.options = options19;
5631
+ ListAngular.className = LISTANGULAR_CLASSNAME;
5632
+ ListAngular.defaultProps = defaultProps21;
5633
+
5634
+ // src/checkbox/checkbox.spec.tsx
5635
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5636
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
5637
+ var states24 = [
5638
+ States.hover,
5639
+ States.focus,
5640
+ States.valid,
5641
+ States.invalid,
5642
+ States.required,
5643
+ States.disabled,
5644
+ States.checked,
5645
+ States.indeterminate
5646
+ ];
5647
+ var options20 = {
5648
+ size: [Size.small, Size.medium, Size.large],
5649
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5650
+ };
5651
+ var defaultProps22 = {
5652
+ size: Size.medium,
5653
+ rounded: Roundness.medium
5654
+ };
5655
+ var Checkbox = (props) => {
5656
+ const {
5657
+ id,
5658
+ checked,
5659
+ indeterminate,
5660
+ hover,
5661
+ focus,
5662
+ disabled,
5663
+ invalid,
5664
+ valid,
5665
+ required,
5666
+ size = defaultProps22.size,
5667
+ rounded = defaultProps22.rounded,
5668
+ ...other
5669
+ } = props;
5670
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5671
+ "input",
5672
+ {
5673
+ ...other,
5674
+ id,
5675
+ type: "checkbox",
5676
+ checked,
5677
+ required,
5678
+ className: classNames(
5679
+ props.className,
5680
+ CHECKBOX_CLASSNAME,
5681
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5682
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5683
+ )
5684
+ }
5685
+ ) });
5686
+ };
5687
+ Checkbox.states = states24;
5688
+ Checkbox.options = options20;
5689
+ Checkbox.className = CHECKBOX_CLASSNAME;
5690
+ Checkbox.defaultProps = defaultProps22;
5691
+
5692
+ // src/checkbox/checkbox-group.spec.tsx
5693
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5694
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5695
+ var states25 = [];
5696
+ var options21 = {};
5697
+ var defaultProps23 = {
5698
+ layout: "vertical"
5699
+ };
5700
+ var CheckboxGroup = (props) => {
5701
+ const {
5702
+ layout = defaultProps23.layout,
5703
+ ...other
5704
+ } = props;
5705
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5706
+ "ul",
5707
+ {
5708
+ ...other,
5709
+ className: classNames(
5710
+ props.className,
5711
+ CHECKBOXGROUP_CLASSNAME,
5712
+ {
5713
+ [`k-list-${layout}`]: layout
5714
+ }
5715
+ ),
5716
+ children: props.children
5717
+ }
5718
+ );
5719
+ };
5720
+ CheckboxGroup.states = states25;
5721
+ CheckboxGroup.options = options21;
5722
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5723
+ CheckboxGroup.defaultProps = defaultProps23;
5724
+
5725
+ // src/checkbox/checkbox-item.spec.tsx
5726
+ var import_jsx_runtime63 = require("react/jsx-runtime");
5727
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5728
+ var states26 = [];
5729
+ var options22 = {};
5730
+ var defaultProps24 = {};
5731
+ var CheckboxItem = (props) => {
5732
+ const {
5733
+ ...other
5734
+ } = props;
5735
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5736
+ "li",
5737
+ {
5738
+ ...other,
5739
+ className: classNames(
5740
+ props.className,
5741
+ CHECKBOXITEM_CLASSNAME
5742
+ ),
5743
+ children: props.children
5744
+ }
5745
+ );
5746
+ };
5747
+ CheckboxItem.states = states26;
5748
+ CheckboxItem.options = options22;
5749
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5750
+ CheckboxItem.defaultProps = defaultProps24;
5751
+
5752
+ // src/checkbox/templates/checkbox-with-label-after.tsx
5753
+ var import_jsx_runtime64 = require("react/jsx-runtime");
5754
+
5755
+ // src/checkbox/templates/checkbox-with-label-before.tsx
5756
+ var import_jsx_runtime65 = require("react/jsx-runtime");
5757
+
5758
+ // src/checkbox/templates/checkbox-normal.tsx
5759
+ var import_jsx_runtime66 = require("react/jsx-runtime");
5760
+
5761
+ // src/list/list-item.spec.tsx
5762
+ var import_jsx_runtime67 = require("react/jsx-runtime");
5763
+ var LISTITEM_CLASSNAME = `k-list-item`;
5764
+ var states27 = [
5765
+ States.hover,
5766
+ States.focus,
5767
+ States.selected,
5768
+ States.disabled
5769
+ ];
5770
+ var options23 = {};
5771
+ var defaultProps25 = {};
5772
+ var ListItem = (props) => {
5773
+ const {
5774
+ text,
5775
+ groupLabel,
5776
+ showIcon,
5777
+ iconName,
5778
+ showCheckbox,
5779
+ checked,
5780
+ hover,
5781
+ focus,
5782
+ selected,
5783
+ disabled,
5784
+ ...other
5785
+ } = props;
5786
+ const textOrChildren = text ? text : props.children;
5787
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
5788
+ "li",
5789
+ {
5790
+ ...other,
5791
+ className: classNames(
5792
+ props.className,
5793
+ LISTITEM_CLASSNAME,
5794
+ stateClassNames(LISTITEM_CLASSNAME, {
5795
+ hover,
5796
+ focus,
5797
+ disabled,
5798
+ selected
5799
+ })
5800
+ ),
5801
+ children: [
5802
+ showCheckbox && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Checkbox, { checked }),
5803
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { icon: iconName }),
5804
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "k-list-item-text", children: textOrChildren }),
5805
+ groupLabel && groupLabel !== "" && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "k-list-item-group-label", children: groupLabel })
5806
+ ]
5807
+ }
5808
+ );
5809
+ };
5810
+ ListItem.states = states27;
5811
+ ListItem.options = options23;
5812
+ ListItem.className = LISTITEM_CLASSNAME;
5813
+ ListItem.defaultProps = defaultProps25;
5814
+
5815
+ // src/list/list-content.tsx
5816
+ var import_jsx_runtime68 = require("react/jsx-runtime");
5817
+ var className15 = `k-list-content`;
5818
+ var ListContent = (props) => {
5819
+ const {
5820
+ virtualization
5821
+ } = props;
5822
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: classNames(className15, props.className), children: [
5823
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("ul", { className: classNames("k-list-ul"), children: props.children }),
5824
+ virtualization && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "k-height-container", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", {}) })
5825
+ ] });
5826
+ };
5827
+
5828
+ // src/list/list-header.tsx
5829
+ var import_jsx_runtime69 = require("react/jsx-runtime");
5830
+ var className16 = `k-list-group-sticky-header`;
5831
+ var ListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: classNames(className16, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "k-list-header-text", children: props.children }) });
5832
+
5833
+ // src/list/list-group.tsx
5834
+ var import_jsx_runtime70 = require("react/jsx-runtime");
5835
+ var ListGroup = (props) => {
5836
+ const {
5837
+ virtualization,
5838
+ label
5839
+ } = props;
5840
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5841
+ label && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ListHeader, { children: label }),
5842
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ListContent, { virtualization, children: props.children })
5843
+ ] });
5844
+ };
5845
+
5846
+ // src/list/list-group-item.tsx
5847
+ var import_jsx_runtime71 = require("react/jsx-runtime");
5848
+ var className17 = `k-list-group-item`;
5849
+ var ListGroupItem = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("li", { className: classNames(className17, props.className), children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "k-list-item-text", children: props.children }) });
5850
+
5851
+ // src/list/list-option-label.tsx
5852
+ var import_jsx_runtime72 = require("react/jsx-runtime");
5853
+ var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5854
+ var states28 = [
5855
+ States.hover,
5856
+ States.focus,
5857
+ States.selected,
5858
+ States.disabled
5859
+ ];
5860
+ var options24 = {};
5861
+ var defaultProps26 = {};
5862
+ var ListOptionLabel = (props) => {
5863
+ const {
5864
+ text,
5865
+ hover,
5866
+ focus,
5867
+ selected,
5868
+ disabled,
5869
+ ...other
5870
+ } = props;
5871
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5872
+ "div",
5873
+ {
5874
+ ...other,
5875
+ className: classNames(
5876
+ LIST_OPTIONLABEL_CLASSNAME,
5877
+ stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
5878
+ hover,
5879
+ focus,
5880
+ selected,
5881
+ disabled
5882
+ })
5883
+ ),
5884
+ children: text
5885
+ }
5886
+ );
5887
+ };
5888
+ ListOptionLabel.states = states28;
5889
+ ListOptionLabel.options = options24;
5890
+ ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5891
+ ListOptionLabel.defaultProps = defaultProps26;
5892
+
5893
+ // src/list/templates/list-normal.tsx
5894
+ var import_jsx_runtime73 = require("react/jsx-runtime");
5895
+
5896
+ // src/list/templates/list-virtualization.tsx
5897
+ var import_jsx_runtime74 = require("react/jsx-runtime");
5898
+
5899
+ // src/list/templates/list-grouping.tsx
5900
+ var import_jsx_runtime75 = require("react/jsx-runtime");
5901
+
5902
+ // src/list/templates/list-virualization-grouping.tsx
5903
+ var import_jsx_runtime76 = require("react/jsx-runtime");
5904
+
5905
+ // src/list/templates/list-virtualization-angular.tsx
5906
+ var import_jsx_runtime77 = require("react/jsx-runtime");
5907
+
5908
+ // src/list/templates/list-grouping-angular.tsx
5909
+ var import_jsx_runtime78 = require("react/jsx-runtime");
5910
+
5911
+ // src/list/templates/list-virualization-grouping-angular.tsx
5912
+ var import_jsx_runtime79 = require("react/jsx-runtime");
5913
+
5914
+ // src/dropdownlist/templates/dropdownlist-popup.tsx
5915
+ var import_jsx_runtime80 = require("react/jsx-runtime");
5916
+
5917
+ // src/searchbox/searchbox.spec.tsx
5918
+ var import_jsx_runtime81 = require("react/jsx-runtime");
5919
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5920
+ var states29 = [
5921
+ States.hover,
5922
+ States.focus,
5923
+ States.valid,
5924
+ States.invalid,
5925
+ States.required,
5926
+ States.disabled,
5927
+ States.loading
5928
+ ];
5929
+ var options25 = {
5930
+ size: [Size.small, Size.medium, Size.large],
5931
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5932
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5933
+ };
5934
+ var defaultProps27 = {
5935
+ showIcon: true,
5936
+ icon: "search",
5937
+ size: Input.defaultProps.size,
5938
+ rounded: Input.defaultProps.rounded,
5939
+ fillMode: Input.defaultProps.fillMode
5940
+ };
5941
+ var Searchbox = (props) => {
5942
+ const {
5943
+ value,
5944
+ placeholder,
5945
+ size,
5946
+ rounded,
5947
+ fillMode,
5948
+ hover,
5949
+ focus,
5950
+ valid,
5951
+ invalid,
5952
+ required,
5953
+ loading,
5954
+ disabled,
5955
+ showIcon = defaultProps27.showIcon,
5956
+ icon = defaultProps27.icon,
5957
+ ...other
5958
+ } = props;
5959
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
5960
+ Input,
5961
+ {
5962
+ ...other,
5963
+ size,
5964
+ rounded,
5965
+ fillMode,
5966
+ hover,
5967
+ focus,
5968
+ valid,
5969
+ invalid,
5970
+ required,
5971
+ loading,
5972
+ disabled,
5973
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
5974
+ children: [
5975
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon, { className: "k-input-icon", icon }),
5976
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(InputInnerInput, { placeholder, value }),
5977
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(InputLoadingIcon, { ...props }),
5978
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(InputValidationIcon, { ...props }),
5979
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(InputClearValue, { ...props })
5980
+ ]
5981
+ }
5982
+ );
5983
+ };
5984
+ Searchbox.states = states29;
5985
+ Searchbox.options = options25;
5986
+ Searchbox.className = SEARCHBOX_CLASSNAME;
5987
+ Searchbox.defaultProps = defaultProps27;
5988
+
5989
+ // src/searchbox/templates/searchbox-normal.tsx
5990
+ var import_jsx_runtime82 = require("react/jsx-runtime");
5991
+
5992
+ // src/dropdownlist/templates/dropdownlist-filtering.tsx
5993
+ var import_jsx_runtime83 = require("react/jsx-runtime");
5994
+
5995
+ // src/dropdownlist/templates/dropdownlist-grouping.tsx
5996
+ var import_jsx_runtime84 = require("react/jsx-runtime");
5997
+
5998
+ // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
5999
+ var import_jsx_runtime85 = require("react/jsx-runtime");
6000
+
6001
+ // src/spinbutton/spinbutton.spec.tsx
6002
+ var import_jsx_runtime86 = require("react/jsx-runtime");
6003
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
6004
+ var states30 = [];
6005
+ var options26 = {
6006
+ size: [Size.small, Size.medium, Size.large],
6007
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
6008
+ };
6009
+ var defaultProps28 = {
6010
+ size: Size.medium,
6011
+ fillMode: FillMode.solid
6012
+ };
6013
+ var SpinButton = (props) => {
6014
+ const {
6015
+ size = defaultProps28.size,
6016
+ fillMode = defaultProps28.fillMode,
6017
+ ...other
6018
+ } = props;
6019
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6020
+ "span",
6021
+ {
6022
+ ...other,
6023
+ className: classNames(
6024
+ SPINBUTTON_CLASSNAME,
6025
+ props.className
6026
+ ),
6027
+ children: [
6028
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6029
+ Button,
6030
+ {
6031
+ className: "k-spinner-increase",
6032
+ icon: "caret-alt-up",
6033
+ rounded: null,
6034
+ size,
6035
+ fillMode
6036
+ }
6037
+ ),
6038
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6039
+ Button,
6040
+ {
6041
+ className: "k-spinner-decrease",
6042
+ icon: "caret-alt-down",
6043
+ rounded: null,
6044
+ size,
6045
+ fillMode
6046
+ }
6047
+ )
6048
+ ]
6049
+ }
6050
+ );
6051
+ };
6052
+ SpinButton.states = states30;
6053
+ SpinButton.options = options26;
6054
+ SpinButton.className = SPINBUTTON_CLASSNAME;
6055
+ SpinButton.defaultProps = defaultProps28;
6056
+
6057
+ // src/numerictextbox/numerictextbox.spec.tsx
6058
+ var import_jsx_runtime87 = require("react/jsx-runtime");
6059
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
6060
+ var states31 = [
6061
+ States.hover,
6062
+ States.focus,
6063
+ States.valid,
6064
+ States.invalid,
6065
+ States.loading,
6066
+ States.required,
6067
+ States.disabled,
6068
+ States.readonly
6069
+ ];
6070
+ var options27 = {
6071
+ size: [Size.small, Size.medium, Size.large],
6072
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6073
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6074
+ };
6075
+ var defaultProps29 = {
6076
+ showSpinButton: true,
6077
+ showClearButton: true,
6078
+ size: Input.defaultProps.size,
6079
+ rounded: Input.defaultProps.rounded,
6080
+ fillMode: Input.defaultProps.fillMode
6081
+ };
6082
+ var NumericTextbox = (props) => {
6083
+ const {
6084
+ prefix,
6085
+ suffix,
6086
+ value,
6087
+ placeholder,
6088
+ size,
6089
+ rounded,
6090
+ fillMode,
6091
+ hover,
6092
+ focus,
6093
+ valid,
6094
+ invalid,
6095
+ required,
6096
+ loading,
6097
+ disabled,
6098
+ readonly,
6099
+ showClearButton = defaultProps29.showClearButton,
6100
+ showSpinButton = defaultProps29.showSpinButton,
6101
+ ...other
6102
+ } = props;
6103
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
6104
+ Input,
6105
+ {
6106
+ ...other,
6107
+ size,
6108
+ rounded,
6109
+ fillMode,
6110
+ hover,
6111
+ focus,
6112
+ valid,
6113
+ invalid,
6114
+ required,
6115
+ loading,
6116
+ disabled,
6117
+ readonly,
6118
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
6119
+ children: [
6120
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
6121
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(InputPrefix, { children: prefix }),
6122
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(InputSeparator, {})
6123
+ ] }),
6124
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(InputInnerInput, { placeholder, value }),
6125
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6126
+ InputValidationIcon,
6127
+ {
6128
+ valid,
6129
+ invalid,
6130
+ loading,
6131
+ disabled
6132
+ }
6133
+ ),
6134
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6135
+ InputLoadingIcon,
6136
+ {
6137
+ loading,
6138
+ disabled
6139
+ }
6140
+ ),
6141
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6142
+ InputClearValue,
6143
+ {
6144
+ loading,
6145
+ disabled,
6146
+ readonly,
6147
+ value
6148
+ }
6149
+ ),
6150
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
6151
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(InputSeparator, {}),
6152
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(InputSuffix, { children: suffix })
6153
+ ] }),
6154
+ showSpinButton && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6155
+ SpinButton,
6156
+ {
6157
+ className: "k-input-spinner",
6158
+ size,
6159
+ fillMode
6160
+ }
6161
+ )
6162
+ ]
6163
+ }
6164
+ );
6165
+ };
6166
+ NumericTextbox.states = states31;
6167
+ NumericTextbox.options = options27;
6168
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
6169
+ NumericTextbox.defaultProps = defaultProps29;
6170
+
6171
+ // src/numerictextbox/templates/numerictextbox-normal.tsx
6172
+ var import_jsx_runtime88 = require("react/jsx-runtime");
6173
+
6174
+ // src/numerictextbox/templates/numerictextbox-prefix.tsx
6175
+ var import_jsx_runtime89 = require("react/jsx-runtime");
6176
+
6177
+ // src/numerictextbox/templates/numerictextbox-suffix.tsx
6178
+ var import_jsx_runtime90 = require("react/jsx-runtime");
6179
+
6180
+ // src/pager/pager.spec.tsx
6181
+ var import_jsx_runtime91 = require("react/jsx-runtime");
6182
+ var PAGER_CLASSNAME = `k-pager`;
6183
+ var states32 = [
6184
+ States.focus,
6185
+ States.disabled
6186
+ ];
6187
+ var options28 = {
6188
+ size: [Size.small, Size.medium, Size.large]
6189
+ };
6190
+ var defaultProps30 = {
6191
+ size: Size.medium,
6192
+ adaptive: false,
6193
+ itemsPerPage: true,
6194
+ type: "numeric",
6195
+ pageSizes: true,
6196
+ refresh: true,
6197
+ info: true
6198
+ };
6199
+ var Pager = (props) => {
6200
+ const {
6201
+ size = defaultProps30.size,
6202
+ adaptive = defaultProps30.adaptive,
6203
+ itemsPerPage = defaultProps30.itemsPerPage,
6204
+ type = defaultProps30.type,
6205
+ pageSizes = defaultProps30.pageSizes,
6206
+ refresh = defaultProps30.refresh,
6207
+ info = defaultProps30.info,
6208
+ focus,
6209
+ disabled,
6210
+ dir,
6211
+ ...other
6212
+ } = props;
6213
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
6214
+ "div",
6215
+ {
6216
+ dir,
6217
+ ...other,
6218
+ className: classNames(
6219
+ props.className,
6220
+ PAGER_CLASSNAME,
6221
+ optionClassNames(PAGER_CLASSNAME, {
6222
+ size
6223
+ }),
6224
+ stateClassNames(PAGER_CLASSNAME, {
6225
+ focus,
6226
+ disabled
6227
+ })
6228
+ ),
6229
+ children: [
6230
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
6231
+ "div",
6232
+ {
6233
+ className: classNames(
6234
+ "k-pager-numbers-wrap"
6235
+ ),
6236
+ children: [
6237
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6238
+ Button,
6239
+ {
6240
+ className: classNames(
6241
+ "k-pager-nav",
6242
+ "k-pager-first"
6243
+ ),
6244
+ disabled: true,
6245
+ fillMode: "flat",
6246
+ size,
6247
+ rounded: null,
6248
+ icon: dir === "rtl" ? "caret-alt-to-right" : "caret-alt-to-left"
6249
+ }
6250
+ ),
6251
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6252
+ Button,
6253
+ {
6254
+ className: classNames(
6255
+ "k-pager-nav"
6256
+ ),
6257
+ disabled: true,
6258
+ fillMode: "flat",
6259
+ size,
6260
+ rounded: null,
6261
+ icon: dir === "rtl" ? "caret-alt-right" : "caret-alt-left"
6262
+ }
6263
+ ),
6264
+ type === "numeric" && !adaptive && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
6265
+ "div",
6266
+ {
6267
+ className: classNames(
6268
+ "k-pager-numbers"
6269
+ ),
6270
+ children: [
6271
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6272
+ Button,
6273
+ {
6274
+ selected: true,
6275
+ fillMode: "flat",
6276
+ themeColor: "primary",
6277
+ size,
6278
+ rounded: null,
6279
+ children: "1"
6280
+ }
6281
+ ),
6282
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6283
+ Button,
6284
+ {
6285
+ fillMode: "flat",
6286
+ themeColor: "primary",
6287
+ size,
6288
+ rounded: null,
6289
+ children: "2"
6290
+ }
6291
+ ),
6292
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6293
+ Button,
6294
+ {
6295
+ fillMode: "flat",
6296
+ themeColor: "primary",
6297
+ size,
6298
+ rounded: null,
6299
+ children: "3"
6300
+ }
6301
+ ),
6302
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6303
+ Button,
6304
+ {
6305
+ fillMode: "flat",
6306
+ themeColor: "primary",
6307
+ size,
6308
+ rounded: null,
6309
+ children: "4"
6310
+ }
6311
+ ),
6312
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6313
+ Button,
6314
+ {
6315
+ fillMode: "flat",
6316
+ themeColor: "primary",
6317
+ size,
6318
+ rounded: null,
6319
+ children: "5"
6320
+ }
6321
+ ),
6322
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6323
+ Button,
6324
+ {
6325
+ fillMode: "flat",
6326
+ themeColor: "primary",
6327
+ size,
6328
+ rounded: null,
6329
+ children: "6"
6330
+ }
6331
+ )
6332
+ ]
6333
+ }
6334
+ ),
6335
+ type === "numeric" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6336
+ "select",
6337
+ {
6338
+ className: classNames(
6339
+ "k-picker",
6340
+ "k-picker-solid",
6341
+ "k-dropdown-list",
6342
+ "k-dropdown",
6343
+ "k-rounded-md",
6344
+ optionClassNames("k-picker", {
6345
+ size
6346
+ }),
6347
+ {
6348
+ ["k-hidden"]: !adaptive
6349
+ }
6350
+ ),
6351
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("option", { children: "99" })
6352
+ }
6353
+ ),
6354
+ type === "input" && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
6355
+ "span",
6356
+ {
6357
+ className: classNames(
6358
+ "k-pager-input"
6359
+ ),
6360
+ children: [
6361
+ !adaptive && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: "Page" }),
6362
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(NumericTextbox, { value: "999", size, showSpinButton: false, showClearButton: false }),
6363
+ !adaptive && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: "of 8" })
6364
+ ]
6365
+ }
6366
+ ),
6367
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6368
+ Button,
6369
+ {
6370
+ className: classNames(
6371
+ "k-pager-nav"
6372
+ ),
6373
+ fillMode: "flat",
6374
+ size,
6375
+ rounded: null,
6376
+ icon: dir === "rtl" ? "caret-alt-left" : "caret-alt-right"
6377
+ }
6378
+ ),
6379
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6380
+ Button,
6381
+ {
6382
+ className: classNames(
6383
+ "k-pager-nav",
6384
+ "k-pager-last"
6385
+ ),
6386
+ fillMode: "flat",
6387
+ size,
6388
+ rounded: null,
6389
+ icon: dir === "rtl" ? "caret-alt-to-left" : "caret-alt-to-right"
6390
+ }
6391
+ )
6392
+ ]
6393
+ }
6394
+ ),
6395
+ pageSizes && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
6396
+ "span",
6397
+ {
6398
+ className: classNames(
6399
+ "k-pager-sizes"
6400
+ ),
6401
+ children: [
6402
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DropdownList, { value: "99", size }),
6403
+ itemsPerPage && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: "items per page" })
6404
+ ]
6405
+ }
6406
+ ),
6407
+ refresh && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6408
+ Button,
6409
+ {
6410
+ className: classNames(
6411
+ "k-pager-refresh"
6412
+ ),
6413
+ fillMode: "flat",
6414
+ size,
6415
+ rounded: null,
6416
+ icon: "arrow-rotate-cw"
6417
+ }
6418
+ ),
6419
+ info && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
6420
+ "span",
6421
+ {
6422
+ className: classNames(
6423
+ "k-pager-info"
6424
+ ),
6425
+ children: "1 - 20 of 91 items"
6426
+ }
6427
+ )
6428
+ ]
6429
+ }
6430
+ );
6431
+ };
6432
+ Pager.states = states32;
6433
+ Pager.options = options28;
6434
+ Pager.className = PAGER_CLASSNAME;
6435
+ Pager.defaultProps = defaultProps30;
6436
+
6437
+ // src/pager/templates/pager-normal.tsx
6438
+ var import_jsx_runtime92 = require("react/jsx-runtime");
6439
+
6440
+ // src/pager/templates/pager-input.tsx
6441
+ var import_jsx_runtime93 = require("react/jsx-runtime");
6442
+
6443
+ // src/pager/templates/pager-adaptive.tsx
6444
+ var import_jsx_runtime94 = require("react/jsx-runtime");
6445
+
6446
+ // src/pager/templates/pager-adaptive-input.tsx
6447
+ var import_jsx_runtime95 = require("react/jsx-runtime");
6448
+
6449
+ // src/grid/grid-pager.spec.tsx
6450
+ var import_jsx_runtime96 = require("react/jsx-runtime");
6451
+
6452
+ // src/button-group/button-group.spec.tsx
6453
+ var import_jsx_runtime97 = require("react/jsx-runtime");
6454
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
6455
+ var states33 = [
6456
+ States.disabled
6457
+ ];
6458
+ var options29 = {
6459
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
6460
+ };
6461
+ var defaultProps31 = {
6462
+ fillMode: FillMode.solid
6463
+ };
6464
+ var ButtonGroup = (props) => {
6465
+ const {
6466
+ fillMode = defaultProps31.fillMode,
6467
+ disabled,
6468
+ stretched,
6469
+ ...other
6470
+ } = props;
6471
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
6472
+ "div",
6473
+ {
6474
+ ...other,
6475
+ className: classNames(
6476
+ props.className,
6477
+ BUTTONGROUP_CLASSNAME,
6478
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
6479
+ fillMode
6480
+ }),
6481
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
6482
+ disabled
6483
+ }),
6484
+ {
6485
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
6486
+ }
6487
+ ),
6488
+ children: props.children
6489
+ }
6490
+ );
6491
+ };
6492
+ ButtonGroup.states = states33;
6493
+ ButtonGroup.options = options29;
6494
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
6495
+ ButtonGroup.defaultProps = defaultProps31;
6496
+
6497
+ // src/button-group/templates/icon-button-group.tsx
6498
+ var import_jsx_runtime98 = require("react/jsx-runtime");
6499
+
6500
+ // src/button-group/templates/icon-text-button-group.tsx
6501
+ var import_jsx_runtime99 = require("react/jsx-runtime");
6502
+
6503
+ // src/button-group/templates/text-button-group.tsx
6504
+ var import_jsx_runtime100 = require("react/jsx-runtime");
6505
+
6506
+ // src/button-group/templates/mixed-button-group.tsx
6507
+ var import_jsx_runtime101 = require("react/jsx-runtime");
6508
+
6509
+ // src/color-preview/color-preview.tsx
6510
+ var import_jsx_runtime102 = require("react/jsx-runtime");
6511
+ var COLORPREVIEW_CLASSNAME = `k-color-preview`;
6512
+ var states34 = [];
6513
+ var options30 = {};
6514
+ var ColorPreview = (props) => {
6515
+ const {
6516
+ color,
6517
+ iconName,
6518
+ ...other
6519
+ } = props;
6520
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
6521
+ "span",
6522
+ {
6523
+ ...other,
6524
+ className: classNames(
6525
+ props.className,
6526
+ COLORPREVIEW_CLASSNAME,
6527
+ {
6528
+ "k-icon-color-preview": iconName,
6529
+ "k-no-color": !color
6530
+ }
6531
+ ),
6532
+ children: [
6533
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Icon, { icon: iconName, className: "k-color-preview-icon" }),
6534
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
6535
+ "span",
6536
+ {
6537
+ className: "k-color-preview-mask",
6538
+ style: { backgroundColor: color }
6539
+ }
6540
+ )
6541
+ ]
6542
+ }
6543
+ );
6544
+ };
6545
+ ColorPreview.states = states34;
6546
+ ColorPreview.options = options30;
6547
+ ColorPreview.className = COLORPREVIEW_CLASSNAME;
6548
+
6549
+ // src/colorpicker/colorpicker.spec.tsx
6550
+ var import_jsx_runtime103 = require("react/jsx-runtime");
6551
+ var COLORPICKER_CLASSNAME = `k-colorpicker`;
6552
+ var states35 = [
6553
+ States.hover,
6554
+ States.focus,
6555
+ States.valid,
6556
+ States.invalid,
6557
+ States.required,
6558
+ States.disabled
6559
+ ];
6560
+ var options31 = {
6561
+ size: [Size.small, Size.medium, Size.large],
6562
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6563
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6564
+ };
6565
+ var defaultProps32 = {
6566
+ arrowIconName: "caret-alt-down",
6567
+ size: Picker.defaultProps.size,
6568
+ rounded: Picker.defaultProps.rounded,
6569
+ fillMode: Picker.defaultProps.fillMode
6570
+ };
6571
+ var ColorPicker = (props) => {
6572
+ const {
6573
+ prefix,
6574
+ suffix,
6575
+ value,
6576
+ placeholder,
6577
+ size,
6578
+ rounded,
6579
+ fillMode,
6580
+ hover,
6581
+ focus,
6582
+ valid,
6583
+ invalid,
6584
+ required,
6585
+ disabled,
6586
+ valueIconName,
6587
+ arrowIconName = defaultProps32.arrowIconName,
6588
+ popup,
6589
+ opened,
6590
+ ...other
6591
+ } = props;
6592
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
6593
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
6594
+ Picker,
6595
+ {
6596
+ ...other,
6597
+ size,
6598
+ rounded,
6599
+ fillMode,
6600
+ hover,
6601
+ focus,
6602
+ valid,
6603
+ invalid,
6604
+ required,
6605
+ disabled,
6606
+ className: classNames(
6607
+ props.className,
6608
+ COLORPICKER_CLASSNAME,
6609
+ "k-icon-picker"
6610
+ ),
6611
+ children: [
6612
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(InputPrefix, { children: prefix }),
6613
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6614
+ InputInnerSpan,
6615
+ {
6616
+ placeholder,
6617
+ value,
6618
+ showValue: false,
6619
+ valueIcon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6620
+ ColorPreview,
6621
+ {
6622
+ className: "k-value-icon",
6623
+ color: value,
6624
+ iconName: valueIconName
6625
+ }
6626
+ ),
6627
+ valueIconName
6628
+ }
6629
+ ),
6630
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(InputSuffix, { children: suffix }),
6631
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6632
+ Button,
6633
+ {
6634
+ className: "k-input-button",
6635
+ icon: arrowIconName,
6636
+ rounded: null,
6637
+ size,
6638
+ fillMode
6639
+ }
6640
+ )
6641
+ ]
6642
+ }
6643
+ ),
6644
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Popup, { className: "k-color-picker-popup", children: popup })
6645
+ ] });
6646
+ };
6647
+ ColorPicker.states = states35;
6648
+ ColorPicker.options = options31;
6649
+ ColorPicker.className = COLORPICKER_CLASSNAME;
6650
+ ColorPicker.defaultProps = defaultProps32;
6651
+
6652
+ // src/colorpicker/templates/colorpicker-normal.tsx
6653
+ var import_jsx_runtime104 = require("react/jsx-runtime");
6654
+
6655
+ // src/action-buttons/action-buttons.spec.tsx
6656
+ var import_jsx_runtime105 = require("react/jsx-runtime");
6657
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
6658
+ var states36 = [];
6659
+ var options32 = {};
6660
+ var defaultProps33 = {
6661
+ alignment: "start",
6662
+ orientation: "horizontal"
6663
+ };
6664
+ var ActionButtons = (props) => {
6665
+ const {
6666
+ alignment = defaultProps33.alignment,
6667
+ orientation = defaultProps33.orientation,
6668
+ ...other
6669
+ } = props;
6670
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
6671
+ "div",
6672
+ {
6673
+ ...other,
6674
+ className: classNames(
6675
+ ACTIONBUTTONS_CLASSNAME,
6676
+ {
6677
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
6678
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
6679
+ },
6680
+ props.className
6681
+ ),
6682
+ children: props.children
6683
+ }
6684
+ );
6685
+ };
6686
+ ActionButtons.states = states36;
6687
+ ActionButtons.options = options32;
6688
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
6689
+ ActionButtons.defaultProps = defaultProps33;
6690
+ var action_buttons_spec_default = ActionButtons;
6691
+
6692
+ // src/slider/slider.spec.tsx
6693
+ var import_jsx_runtime106 = require("react/jsx-runtime");
6694
+ var SLIDER_CLASSNAME = "k-slider";
6695
+ var states37 = [
6696
+ States.hover,
6697
+ States.focus,
6698
+ States.active,
6699
+ States.disabled,
6700
+ States.readonly
6701
+ ];
6702
+ var options33 = {};
6703
+ var defaultProps34 = {
6704
+ type: "single",
6705
+ orientation: "horizontal",
6706
+ readonly: false,
6707
+ disabled: false,
6708
+ handlePosition: "end",
6709
+ showButtons: true,
6710
+ showTicks: true
6711
+ };
6712
+ var Slider = (props) => {
6713
+ const {
6714
+ type = defaultProps34.type,
6715
+ orientation = defaultProps34.orientation,
6716
+ readonly = defaultProps34.readonly,
6717
+ disabled = defaultProps34.disabled,
6718
+ handlePosition = defaultProps34.handlePosition,
6719
+ showButtons = defaultProps34.showButtons,
6720
+ showTicks = defaultProps34.showTicks,
6721
+ hover,
6722
+ focus,
6723
+ active,
6724
+ trackStyle,
6725
+ dir
6726
+ } = props;
6727
+ let iconIncrease;
6728
+ let iconDecrease;
6729
+ if (orientation === "horizontal") {
6730
+ iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
6731
+ iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
6732
+ } else if (orientation === "vertical") {
6733
+ iconIncrease = "caret-alt-up";
6734
+ iconDecrease = "caret-alt-down";
6735
+ }
6736
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: classNames(
6737
+ SLIDER_CLASSNAME,
6738
+ props.className,
6739
+ stateClassNames(SLIDER_CLASSNAME, {
6740
+ readonly,
6741
+ disabled
6742
+ }),
6743
+ {
6744
+ [`k-slider-${orientation}`]: orientation,
6745
+ "k-colorgradient-slider": type === "gradient",
6746
+ "k-range-slider": type === "range"
6747
+ }
6748
+ ), dir, children: [
6749
+ showButtons && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
6750
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "k-slider-track-wrap", children: [
6751
+ showTicks && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("ul", { className: "k-reset k-slider-items", children: props.children }),
6752
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "k-slider-track", style: trackStyle, children: [
6753
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "k-slider-selection" }),
6754
+ type === "range" && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: classNames(
6755
+ "k-draghandle",
6756
+ "k-draghandle-start",
6757
+ stateClassNames(SLIDER_CLASSNAME, {
6758
+ hover,
6759
+ focus,
6760
+ active
6761
+ })
6762
+ ) }),
6763
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: classNames(
6764
+ "k-draghandle",
6765
+ `k-draghandle-${handlePosition}`,
6766
+ stateClassNames(SLIDER_CLASSNAME, {
6767
+ hover,
6768
+ focus,
6769
+ active
6770
+ })
6771
+ ) })
6772
+ ] })
6773
+ ] }),
6774
+ showButtons && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
6775
+ ] });
6776
+ };
6777
+ Slider.states = states37;
6778
+ Slider.options = options33;
6779
+ Slider.className = SLIDER_CLASSNAME;
6780
+ Slider.defaultProps = defaultProps34;
6781
+
6782
+ // src/slider/slider-tick.tsx
6783
+ var import_jsx_runtime107 = require("react/jsx-runtime");
6784
+ var SLIDER_TICK_CLASSNAME = "k-tick";
6785
+ var states38 = [];
6786
+ var options34 = {};
6787
+ var defaultProps35 = {
6788
+ label: false
6789
+ };
6790
+ var SliderTick = (props) => {
6791
+ const {
6792
+ style,
6793
+ label = defaultProps35.label,
6794
+ orientation,
6795
+ large,
6796
+ text
6797
+ } = props;
6798
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("li", { className: classNames(
6799
+ props.className,
6800
+ SLIDER_TICK_CLASSNAME,
6801
+ {
6802
+ [`k-tick-${orientation}`]: orientation,
6803
+ "k-tick-large": large
6804
+ }
6805
+ ), style, children: label && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "k-label", children: text }) });
6806
+ };
6807
+ SliderTick.states = states38;
6808
+ SliderTick.options = options34;
6809
+ SliderTick.className = SLIDER_TICK_CLASSNAME;
6810
+ SliderTick.defaultProps = defaultProps35;
6811
+
6812
+ // src/slider/templates/slider-normal.tsx
6813
+ var import_jsx_runtime108 = require("react/jsx-runtime");
6814
+
6815
+ // src/slider/templates/slider-vertical.tsx
6816
+ var import_jsx_runtime109 = require("react/jsx-runtime");
6817
+
6818
+ // src/slider/templates/slider-range.tsx
6819
+ var import_jsx_runtime110 = require("react/jsx-runtime");
6820
+
6821
+ // src/slider/templates/slider-range-vertical.tsx
6822
+ var import_jsx_runtime111 = require("react/jsx-runtime");
6823
+
6824
+ // src/slider/templates/slider-gradient.tsx
6825
+ var import_jsx_runtime112 = require("react/jsx-runtime");
6826
+
6827
+ // src/slider/templates/slider-gradient-vertical.tsx
6828
+ var import_jsx_runtime113 = require("react/jsx-runtime");
6829
+ var SliderGradientVertical = (props) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6830
+ Slider,
6831
+ {
6832
+ type: "gradient",
6833
+ orientation: "vertical",
6834
+ showButtons: false,
6835
+ showTicks: false,
6836
+ children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
6837
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, { label: true, large: true, text: "0" }),
6838
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6839
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6840
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6841
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6842
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, { label: true, large: true, text: "5" }),
6843
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6844
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6845
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6846
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, {}),
6847
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(SliderTick, { label: true, large: true, text: "10" })
6848
+ ] }),
6849
+ ...props
6850
+ }
6851
+ );
6852
+
6853
+ // src/textbox/textbox.spec.tsx
6854
+ var import_jsx_runtime114 = require("react/jsx-runtime");
6855
+ var TEXTBOX_CLASSNAME = `k-textbox`;
6856
+ var states39 = [
6857
+ States.hover,
6858
+ States.focus,
6859
+ States.valid,
6860
+ States.invalid,
6861
+ States.required,
6862
+ States.disabled,
6863
+ States.loading,
6864
+ States.readonly
6865
+ ];
6866
+ var options35 = {
6867
+ size: [Size.small, Size.medium, Size.large],
6868
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6869
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6870
+ };
6871
+ var defaultProps36 = {
6872
+ showClearButton: true,
6873
+ size: Input.defaultProps.size,
6874
+ rounded: Input.defaultProps.rounded,
6875
+ fillMode: Input.defaultProps.fillMode
6876
+ };
6877
+ var Textbox = (props) => {
6878
+ const {
6879
+ prefix,
6880
+ suffix,
6881
+ value,
6882
+ placeholder,
6883
+ size,
6884
+ rounded,
6885
+ fillMode,
6886
+ hover,
6887
+ focus,
6888
+ valid,
6889
+ invalid,
6890
+ required,
6891
+ loading,
6892
+ disabled,
6893
+ readonly,
6894
+ showClearButton = defaultProps36.showClearButton,
6895
+ ...other
6896
+ } = props;
6897
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
6898
+ Input,
6899
+ {
6900
+ ...other,
6901
+ size,
6902
+ rounded,
6903
+ fillMode,
6904
+ hover,
6905
+ focus,
6906
+ valid,
6907
+ invalid,
6908
+ required,
6909
+ loading,
6910
+ disabled,
6911
+ readonly,
6912
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
6913
+ children: [
6914
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_jsx_runtime114.Fragment, { children: [
6915
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(InputPrefix, { children: prefix }),
6916
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(InputSeparator, {})
6917
+ ] }),
6918
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(InputInnerInput, { placeholder, value }),
6919
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6920
+ InputValidationIcon,
6921
+ {
6922
+ valid,
6923
+ invalid,
6924
+ loading,
6925
+ disabled
6926
+ }
6927
+ ),
6928
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6929
+ InputLoadingIcon,
6930
+ {
6931
+ loading,
6932
+ disabled
6933
+ }
6934
+ ),
6935
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6936
+ InputClearValue,
6937
+ {
6938
+ loading,
6939
+ disabled,
6940
+ readonly,
6941
+ value
6942
+ }
6943
+ ),
6944
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_jsx_runtime114.Fragment, { children: [
6945
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(InputSeparator, {}),
6946
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(InputSuffix, { children: suffix })
6947
+ ] })
6948
+ ]
6949
+ }
6950
+ );
6951
+ };
6952
+ Textbox.states = states39;
6953
+ Textbox.options = options35;
6954
+ Textbox.className = TEXTBOX_CLASSNAME;
6955
+ Textbox.defaultProps = defaultProps36;
6956
+
6957
+ // src/textbox/templates/textbox-normal.tsx
6958
+ var import_jsx_runtime115 = require("react/jsx-runtime");
6959
+
6960
+ // src/textbox/templates/textbox-prefix.tsx
6961
+ var import_jsx_runtime116 = require("react/jsx-runtime");
6962
+
6963
+ // src/textbox/templates/textbox-suffix.tsx
6964
+ var import_jsx_runtime117 = require("react/jsx-runtime");
6965
+
6966
+ // src/colorgradient/color-input.tsx
6967
+ var import_jsx_runtime118 = require("react/jsx-runtime");
6968
+ var COLOR_INPUT_CLASSNAME = "k-colorgradient-inputs";
6969
+ var states40 = [];
6970
+ var options36 = {};
6971
+ var defaultProps37 = {
6972
+ mode: "rgba"
6973
+ };
6974
+ var ColorInput = (props) => {
6975
+ const {
6976
+ mode = defaultProps37.mode
6977
+ } = props;
6978
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: classNames(COLOR_INPUT_CLASSNAME, "k-hstack"), children: [
6979
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "k-vstack", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Button, { fillMode: "flat", icon: "caret-alt-expand", className: "k-colorgradient-toggle-mode" }) }),
6980
+ mode === "rgba" && /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_jsx_runtime118.Fragment, { children: [
6981
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
6982
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6983
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "R" })
6984
+ ] }),
6985
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
6986
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6987
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "G" })
6988
+ ] }),
6989
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
6990
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
6991
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "B" })
6992
+ ] }),
6993
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
6994
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
6995
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "A" })
6996
+ ] })
6997
+ ] }),
6998
+ mode === "rgb" && /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_jsx_runtime118.Fragment, { children: [
6999
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7000
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7001
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "R" })
7002
+ ] }),
7003
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7004
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7005
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "G" })
7006
+ ] }),
7007
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7008
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7009
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "B" })
7010
+ ] })
7011
+ ] }),
7012
+ mode === "hsva" && /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_jsx_runtime118.Fragment, { children: [
7013
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7014
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7015
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "H" })
7016
+ ] }),
7017
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7018
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7019
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "S" })
7020
+ ] }),
7021
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7022
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7023
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "V" })
7024
+ ] }),
7025
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7026
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
7027
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "A" })
7028
+ ] })
7029
+ ] }),
7030
+ mode === "hsv" && /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_jsx_runtime118.Fragment, { children: [
7031
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7032
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7033
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "H" })
7034
+ ] }),
7035
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7036
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7037
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "S" })
7038
+ ] }),
7039
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack", children: [
7040
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7041
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "V" })
7042
+ ] })
7043
+ ] }),
7044
+ mode === "hex" && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_jsx_runtime118.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "k-vstack k-flex-1", children: [
7045
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Textbox, { showClearButton: false, value: "#b88484AA", className: "k-hex-value" }),
7046
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("label", { className: "k-colorgradient-input-label", children: "HEX" })
7047
+ ] }) })
7048
+ ] });
7049
+ };
7050
+ ColorInput.states = states40;
7051
+ ColorInput.options = options36;
7052
+ ColorInput.className = COLOR_INPUT_CLASSNAME;
7053
+ ColorInput.defaultProps = defaultProps37;
7054
+
7055
+ // src/colorgradient/color-contrast.tsx
7056
+ var import_jsx_runtime119 = require("react/jsx-runtime");
7057
+ var COLOR_CONTRAST_CLASSNAME = "k-colorgradient-color-contrast";
7058
+ var states41 = [];
7059
+ var options37 = {};
7060
+ var defaultProps38 = {};
7061
+ var ColorContrast = () => /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: classNames(COLOR_CONTRAST_CLASSNAME, "k-vbox"), children: [
7062
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "k-contrast-ratio", children: [
7063
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "k-contrast-ratio-text", children: "Contrast ratio: 7.1" }),
7064
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("span", { className: "k-contrast-validation !k-text-success", children: [
7065
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { icon: "check" }),
7066
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { icon: "check" })
7067
+ ] })
7068
+ ] }),
7069
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { children: [
7070
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: "AA: 4.5" }),
7071
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("span", { className: "k-contrast-validation !k-text-success", children: [
7072
+ "Pass",
7073
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { icon: "check" })
7074
+ ] })
7075
+ ] }),
7076
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { children: [
7077
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: "AAA: 7.0" }),
7078
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("span", { className: "k-contrast-validation !k-text-error", children: [
7079
+ "Fail",
7080
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { icon: "x" })
7081
+ ] })
7082
+ ] })
7083
+ ] });
7084
+ ColorContrast.states = states41;
7085
+ ColorContrast.options = options37;
7086
+ ColorContrast.className = COLOR_CONTRAST_CLASSNAME;
7087
+ ColorContrast.defaultProps = defaultProps38;
7088
+
7089
+ // src/colorgradient/color-gradient.spec.tsx
7090
+ var import_jsx_runtime120 = require("react/jsx-runtime");
7091
+ var COLOR_GRADIENT_CLASSNAME = "k-colorgradient";
7092
+ var states42 = [
7093
+ States.hover,
7094
+ States.focus,
7095
+ States.readonly,
7096
+ States.disabled
7097
+ ];
7098
+ var options38 = {};
7099
+ var defaultProps39 = {
7100
+ mode: "rgba",
7101
+ readonly: false,
7102
+ disabled: false,
7103
+ contrast: false,
7104
+ gradientStyle: { background: "rgb(255, 0, 0 )" },
7105
+ dragHandleStyle: { top: "50px", left: "73px" },
7106
+ alphaStyle: { background: "linear-gradient(to top, transparent, rgb(255, 0, 0))" }
7107
+ };
7108
+ var ColorGradient = (props) => {
7109
+ const {
7110
+ mode = defaultProps39.mode,
7111
+ readonly = defaultProps39.readonly,
7112
+ disabled = defaultProps39.disabled,
7113
+ dir,
7114
+ contrast = defaultProps39.contrast,
7115
+ hover,
7116
+ focus,
7117
+ hoverHandle,
7118
+ focusHandle,
7119
+ gradientStyle = defaultProps39.gradientStyle,
7120
+ dragHandleStyle = defaultProps39.dragHandleStyle,
7121
+ alphaStyle = defaultProps39.alphaStyle
7122
+ } = props;
7123
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: classNames(
7124
+ props.className,
7125
+ COLOR_GRADIENT_CLASSNAME,
7126
+ stateClassNames(COLOR_GRADIENT_CLASSNAME, {
7127
+ hover,
7128
+ focus,
7129
+ readonly,
7130
+ disabled
7131
+ })
7132
+ ), dir, children: [
7133
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "k-colorgradient-canvas k-hstack", children: [
7134
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "k-hsv-rectangle", style: gradientStyle, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "k-hsv-gradient", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: classNames(
7135
+ "k-hsv-draghandle",
7136
+ "k-draghandle",
7137
+ {
7138
+ "k-hover": hoverHandle,
7139
+ "k-focus": focusHandle
7140
+ }
7141
+ ), style: dragHandleStyle }) }) }),
7142
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "k-hsv-controls k-hstack", children: [
7143
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(SliderGradientVertical, { className: "k-hue-slider", hover: hoverHandle, focus: focusHandle }),
7144
+ mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(SliderGradientVertical, { className: "k-alpha-slider", hover: hoverHandle, focus: focusHandle, trackStyle: alphaStyle })
7145
+ ] })
7146
+ ] }),
7147
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(ColorInput, { mode: props.mode }),
7148
+ contrast && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(ColorContrast, {})
7149
+ ] });
7150
+ };
7151
+ ColorGradient.states = states42;
7152
+ ColorGradient.options = options38;
7153
+ ColorGradient.className = COLOR_GRADIENT_CLASSNAME;
7154
+ ColorGradient.defaultProps = defaultProps39;
7155
+
7156
+ // src/colorgradient/templates/colorgradient-normal.tsx
7157
+ var import_jsx_runtime121 = require("react/jsx-runtime");
7158
+
7159
+ // src/colorgradient/templates/colorgradient-contrast.tsx
7160
+ var import_jsx_runtime122 = require("react/jsx-runtime");
7161
+
7162
+ // src/colorpalette/colorpalette-row.tsx
7163
+ var import_jsx_runtime123 = require("react/jsx-runtime");
7164
+ var ColorPaletteRow = (props) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("tr", { children: props.children });
7165
+
7166
+ // src/colorpalette/colorpalette-tile.tsx
7167
+ var import_jsx_runtime124 = require("react/jsx-runtime");
7168
+ var COLORPALETTETILE_CLASSNAME = `k-colorpalette-tile`;
7169
+ var states43 = [
7170
+ States.hover,
7171
+ States.focus,
7172
+ States.selected
7173
+ ];
7174
+ var options39 = {};
7175
+ var ColorPaletteTile = (props) => {
7176
+ const {
7177
+ color,
7178
+ tileSize,
7179
+ hover,
7180
+ focus,
7181
+ selected,
7182
+ ...other
7183
+ } = props;
7184
+ const styles2 = {
7185
+ "background-color": color,
7186
+ "width": tileSize ? tileSize + "px" : "",
7187
+ "height": tileSize ? tileSize + "px" : ""
7188
+ };
7189
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
7190
+ "td",
7191
+ {
7192
+ ...other,
7193
+ className: classNames(
7194
+ props.className,
7195
+ COLORPALETTETILE_CLASSNAME,
7196
+ stateClassNames(COLORPALETTETILE_CLASSNAME, {
7197
+ hover,
7198
+ focus,
7199
+ selected
7200
+ })
7201
+ ),
7202
+ style: styles2
7203
+ }
7204
+ );
7205
+ };
7206
+ ColorPaletteTile.states = states43;
7207
+ ColorPaletteTile.options = options39;
7208
+ ColorPaletteTile.className = COLORPALETTETILE_CLASSNAME;
7209
+
7210
+ // src/colorpalette/colorpalette.spec.tsx
7211
+ var import_jsx_runtime125 = require("react/jsx-runtime");
7212
+ var COLORPALETTE_CLASSNAME = `k-colorpalette`;
7213
+ var states44 = [
7214
+ States.disabled
7215
+ ];
7216
+ var options40 = {};
7217
+ var defaultProps40 = {
7218
+ columns: 10
7219
+ };
7220
+ var ColorPalette = (props) => {
7221
+ const {
7222
+ palette,
7223
+ columns = defaultProps40.columns,
7224
+ tileSize,
7225
+ disabled,
7226
+ ...other
7227
+ } = props;
7228
+ const newChildren = [];
7229
+ if (palette) {
7230
+ const cols = columns || palette.columns;
7231
+ const colors = palette.colors ? palette.colors : palette;
7232
+ if (Array.isArray(colors)) {
7233
+ Array.from({ length: Math.ceil(colors.length / cols) }, (_, i) => {
7234
+ const items = [];
7235
+ colors.slice(i * cols, (i + 1) * cols).map((color) => {
7236
+ items.push(/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ColorPaletteTile, { color, tileSize }));
7237
+ });
7238
+ const row = /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ColorPaletteRow, { children: items });
7239
+ newChildren.push(row);
7240
+ });
7241
+ }
7242
+ }
7243
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
7244
+ "div",
7245
+ {
7246
+ ...other,
7247
+ className: classNames(
7248
+ props.className,
7249
+ COLORPALETTE_CLASSNAME,
7250
+ stateClassNames(COLORPALETTE_CLASSNAME, {
7251
+ disabled
7252
+ })
7253
+ ),
7254
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("table", { className: "k-colorpalette-table", children: newChildren.length > 0 ? newChildren : props.children })
7255
+ }
7256
+ );
7257
+ };
7258
+ ColorPalette.states = states44;
7259
+ ColorPalette.options = options40;
7260
+ ColorPalette.className = COLORPALETTE_CLASSNAME;
7261
+ ColorPalette.defaultProps = defaultProps40;
7262
+
7263
+ // src/colorpalette/templates/colorpalette-normal.tsx
7264
+ var import_jsx_runtime126 = require("react/jsx-runtime");
7265
+
7266
+ // src/colorpalette/colorpalette-presets.tsx
7267
+ var PALETTEPRESETS = {
7268
+ basic: {
7269
+ colors: ["#000000", "#7f7f7f", "#880015", "#ed1c24", "#ff7f27", "#fff200", "#22b14c", "#00a2e8", "#3f48cc", "#a349a4", "#ffffff", "#c3c3c3", "#b97a57", "#ffaec9", "#ffc90e", "#efe4b0", "#b5e61d", "#99d9ea", "#7092be", "#c8bfe7"],
7270
+ columns: 10
7271
+ },
7272
+ office: {
7273
+ 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"],
7274
+ columns: 10
7275
+ },
7276
+ apex: {
7277
+ 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"],
7278
+ columns: 10
7279
+ },
7280
+ austin: {
7281
+ 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"],
7282
+ columns: 10
7283
+ },
7284
+ clarity: {
7285
+ 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"],
7286
+ columns: 10
7287
+ },
7288
+ slipstream: {
7289
+ 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"],
7290
+ columns: 10
7291
+ },
7292
+ metro: {
7293
+ 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"],
7294
+ columns: 10
7295
+ },
7296
+ flow: {
7297
+ 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"],
7298
+ columns: 10
7299
+ },
7300
+ hardcover: {
7301
+ 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"],
7302
+ columns: 10
7303
+ },
7304
+ trek: {
7305
+ 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"],
7306
+ columns: 10
7307
+ },
7308
+ verve: {
7309
+ 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"],
7310
+ columns: 10
7311
+ },
7312
+ monochrome: {
7313
+ colors: ["#000000", "#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080", "#999999", "#b3b3b3", "#cccccc", "#e6e6e6", "#f2f2f2", "#ffffff"],
7314
+ columns: 12
7315
+ }
7316
+ };
7317
+
7318
+ // src/coloreditor/color-editor.spec.tsx
7319
+ var import_jsx_runtime127 = require("react/jsx-runtime");
7320
+ var COLOREDITOR_CLASSNAME = "k-coloreditor";
7321
+ var states45 = [
7322
+ States.focus
7323
+ ];
7324
+ var options41 = {};
7325
+ var defaultProps41 = {
7326
+ view: "gradient",
7327
+ currentColor: "fuchsia",
7328
+ palette: PALETTEPRESETS.office
7329
+ };
7330
+ var ColorEditor = (props) => {
7331
+ const {
7332
+ view = defaultProps41.view,
7333
+ color,
7334
+ currentColor = defaultProps41.currentColor,
7335
+ focus,
7336
+ focusView,
7337
+ dir,
7338
+ group,
7339
+ palette = defaultProps41.palette
7340
+ } = props;
7341
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: classNames(
7342
+ props.className,
7343
+ "k-flatcolorpicker",
7344
+ COLOREDITOR_CLASSNAME,
7345
+ stateClassNames(COLOREDITOR_CLASSNAME, { focus })
7346
+ ), dir, children: [
7347
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "k-coloreditor-header k-hstack", children: [
7348
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { className: "k-coloreditor-header-actions k-hstack", children: group && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(ButtonGroup, { children: [
7349
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { fillMode: "flat", icon: "droplet-slider", selected: view === "gradient" }),
7350
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { fillMode: "flat", icon: "palette", selected: view === "palette" })
7351
+ ] }) }),
7352
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { className: "k-spacer" }),
7353
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "k-coloreditor-header-actions k-hstack", children: [
7354
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { fillMode: "flat", icon: "droplet-slash" }),
7355
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "k-coloreditor-preview k-vstack", children: [
7356
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ColorPreview, { className: "k-coloreditor-preview-color", color }),
7357
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ColorPreview, { className: "k-coloreditor-current-color", color: currentColor })
7358
+ ] })
7359
+ ] })
7360
+ ] }),
7361
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { className: "k-coloreditor-views k-vstack", children: view === "gradient" ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ColorGradient, { focus: focusView }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ColorPalette, { palette }) }),
7362
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(ActionButtons, { className: "k-coloreditor-footer", alignment: "end", children: [
7363
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { className: "k-coloreditor-cancel", children: "Cancel" }),
7364
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Button, { themeColor: "primary", className: "k-coloreditor-apply", children: "Apply" })
7365
+ ] })
7366
+ ] });
7367
+ };
7368
+ ColorEditor.states = states45;
7369
+ ColorEditor.options = options41;
7370
+ ColorEditor.className = COLOREDITOR_CLASSNAME;
7371
+ ColorEditor.defaultProps = defaultProps41;
7372
+
7373
+ // src/coloreditor/templates/coloreditor-normal.tsx
7374
+ var import_jsx_runtime128 = require("react/jsx-runtime");
7375
+
7376
+ // src/coloreditor/templates/coloreditor-palette.tsx
7377
+ var import_jsx_runtime129 = require("react/jsx-runtime");
7378
+
7379
+ // src/coloreditor/templates/coloreditor-group.tsx
7380
+ var import_jsx_runtime130 = require("react/jsx-runtime");
7381
+
7382
+ // src/coloreditor/templates/coloreditor-palette-group.tsx
7383
+ var import_jsx_runtime131 = require("react/jsx-runtime");
7384
+
7385
+ // src/colorpicker/templates/colorpicker-popup-gradient.tsx
7386
+ var import_jsx_runtime132 = require("react/jsx-runtime");
7387
+
7388
+ // src/colorpicker/templates/colorpicker-popup-palette.tsx
7389
+ var import_jsx_runtime133 = require("react/jsx-runtime");
7390
+
7391
+ // src/action-sheet/action-sheet.spec.tsx
7392
+ var import_jsx_runtime134 = require("react/jsx-runtime");
7393
+ var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
7394
+ var states46 = [];
7395
+ var options42 = {};
7396
+ var defaultProps42 = {
7397
+ side: "bottom",
7398
+ fullscreen: false,
7399
+ adaptive: false,
7400
+ overlay: true
7401
+ };
7402
+ var ActionSheet = (props) => {
7403
+ const {
7404
+ children,
7405
+ title,
7406
+ header,
7407
+ footer,
7408
+ actions,
7409
+ side = defaultProps42.side,
7410
+ fullscreen = defaultProps42.fullscreen,
7411
+ adaptive = defaultProps42.adaptive,
7412
+ overlay = defaultProps42.overlay,
7413
+ ...other
7414
+ } = props;
7415
+ const _ActionSheetHeader = title ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
7416
+ const _ActionSheetFooter = actions ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
7417
+ const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
7418
+ switch (child.type) {
7419
+ case ActionSheetHeader:
7420
+ case ActionSheetFooter:
7421
+ return false;
7422
+ default:
7423
+ return true;
7424
+ }
7425
+ return true;
7426
+ }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_jsx_runtime134.Fragment, {});
7427
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("div", { className: "k-actionsheet-container", children: [
7428
+ overlay && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("div", { className: "k-overlay" }),
7429
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7430
+ AnimationContainer,
7431
+ {
7432
+ animationStyle: {
7433
+ [`${fullscreen === true ? "top" : side}`]: 0,
7434
+ [`${fullscreen === true ? "width" : null}`]: "100%",
7435
+ [`${fullscreen === true ? "height" : null}`]: "100%",
7436
+ [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
7437
+ [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
7438
+ },
7439
+ children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
7440
+ "div",
7441
+ {
7442
+ ...other,
7443
+ className: classNames(
7444
+ props.className,
7445
+ ACTIONSHEET_CLASSNAME,
7446
+ {
7447
+ [`k-actionsheet-${side}`]: fullscreen === false,
7448
+ "k-actionsheet-fullscreen": fullscreen === true,
7449
+ "k-adaptive-actionsheet": adaptive
7450
+ }
7451
+ ),
7452
+ children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_jsx_runtime134.Fragment, { children: [
7453
+ _ActionSheetHeader,
7454
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("div", { className: classNames(
7455
+ "k-actionsheet-content",
7456
+ {
7457
+ "!k-overflow-hidden": adaptive
7458
+ }
7459
+ ), children: _ActionSheetContent }),
7460
+ _ActionSheetFooter
7461
+ ] })
7462
+ }
7463
+ )
7464
+ }
7465
+ )
7466
+ ] });
7467
+ };
7468
+ ActionSheet.states = states46;
7469
+ ActionSheet.options = options42;
7470
+ ActionSheet.className = ACTIONSHEET_CLASSNAME;
7471
+ ActionSheet.defaultProps = defaultProps42;
7472
+
7473
+ // src/action-sheet/actionsheet-header.tsx
7474
+ var import_jsx_runtime135 = require("react/jsx-runtime");
7475
+ var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
7476
+ var ActionSheetHeader = (props) => {
7477
+ const {
7478
+ title,
7479
+ subTitle,
7480
+ actions,
7481
+ filter,
7482
+ ...other
7483
+ } = props;
7484
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
7485
+ "div",
7486
+ {
7487
+ ...other,
7488
+ className: classNames(
7489
+ props.className,
7490
+ ACTIONSHEETHEADER_CLASSNAME
7491
+ ),
7492
+ children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
7493
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
7494
+ !props.children && (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_jsx_runtime135.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "k-actionsheet-title", children: [
7495
+ title !== "" && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "k-text-center", children: title }),
7496
+ subTitle !== "" && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
7497
+ ] }) }),
7498
+ props.children && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "k-actionsheet-title", children: props.children }),
7499
+ actions && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_jsx_runtime135.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
7500
+ ] }),
7501
+ filter && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_jsx_runtime135.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Searchbox, { placeholder: "Filter", size: "large" }) }) })
7502
+ ] })
7503
+ }
7504
+ );
7505
+ };
7506
+
7507
+ // src/action-sheet/actionsheet-footer.tsx
7508
+ var import_jsx_runtime136 = require("react/jsx-runtime");
7509
+ var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
7510
+ var ActionSheetFooter = (props) => {
7511
+ const {
7512
+ actions,
7513
+ ...other
7514
+ } = props;
7515
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
7516
+ action_buttons_spec_default,
7517
+ {
7518
+ ...other,
7519
+ className: classNames(
7520
+ props.className,
7521
+ ACTIONSHEETFOOTER_CLASSNAME
7522
+ ),
7523
+ alignment: "stretched",
7524
+ children: /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_jsx_runtime136.Fragment, { children: [
7525
+ actions && actions.map((action, index) => {
7526
+ if (action === "|") {
7527
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("span", { className: "k-separator" }, index);
7528
+ }
7529
+ if (action === " ") {
7530
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("span", { className: "k-spacer" }, index);
7531
+ }
7532
+ const importantFlag = action.startsWith("!");
7533
+ const actionName = importantFlag ? action.substring(1) : action;
7534
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
7535
+ }),
7536
+ !actions && props.children
7537
+ ] })
7538
+ }
7539
+ );
7540
+ };
7541
+
7542
+ // src/action-sheet/actionsheet-items.tsx
7543
+ var import_jsx_runtime137 = require("react/jsx-runtime");
7544
+ var ActionSheetItems = (props) => {
7545
+ const {
7546
+ ...other
7547
+ } = props;
7548
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
7549
+ "div",
7550
+ {
7551
+ ...other,
7552
+ className: classNames(
7553
+ props.className,
7554
+ "k-list-ul"
7555
+ ),
7556
+ children: props.children
7557
+ }
7558
+ );
7559
+ };
7560
+
7561
+ // src/action-sheet/actionsheet-item.tsx
7562
+ var import_jsx_runtime138 = require("react/jsx-runtime");
7563
+ var states47 = [
7564
+ States.hover,
7565
+ States.focus,
7566
+ States.selected,
7567
+ States.disabled
7568
+ ];
7569
+
7570
+ // src/combobox/combobox.spec.tsx
7571
+ var import_jsx_runtime139 = require("react/jsx-runtime");
7572
+ var COMBOBOX_CLASSNAME = `k-combobox`;
7573
+ var states48 = [
7574
+ States.hover,
7575
+ States.focus,
7576
+ States.valid,
7577
+ States.invalid,
7578
+ States.loading,
7579
+ States.required,
7580
+ States.disabled,
7581
+ States.readonly
7582
+ ];
7583
+ var defaultProps43 = {
7584
+ size: Input.defaultProps.size,
7585
+ rounded: Input.defaultProps.rounded,
7586
+ fillMode: Input.defaultProps.fillMode
7587
+ };
7588
+ var options43 = {
7589
+ size: [Size.small, Size.medium, Size.large],
7590
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7591
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
7592
+ };
7593
+ var Combobox = (props) => {
7594
+ const {
7595
+ prefix,
7596
+ suffix,
7597
+ value,
7598
+ placeholder,
7599
+ size,
7600
+ rounded,
7601
+ fillMode,
7602
+ hover,
7603
+ focus,
7604
+ valid,
7605
+ invalid,
7606
+ required,
7607
+ loading,
7608
+ disabled,
7609
+ popup,
7610
+ opened,
7611
+ readonly,
7612
+ adaptive,
7613
+ adaptiveSettings,
7614
+ ...other
7615
+ } = props;
7616
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, { children: [
7617
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(
7618
+ Input,
7619
+ {
7620
+ ...other,
7621
+ size,
7622
+ rounded,
7623
+ fillMode,
7624
+ hover,
7625
+ focus,
7626
+ valid,
7627
+ invalid,
7628
+ required,
7629
+ loading,
7630
+ disabled,
7631
+ readonly,
7632
+ className: classNames(props.className, COMBOBOX_CLASSNAME),
7633
+ children: [
7634
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, { children: [
7635
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputPrefix, { children: prefix }),
7636
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputSeparator, {})
7637
+ ] }),
7638
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputInnerInput, { placeholder, value }),
7639
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
7640
+ InputValidationIcon,
7641
+ {
7642
+ valid,
7643
+ invalid,
7644
+ loading,
7645
+ disabled
7646
+ }
7647
+ ),
7648
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
7649
+ InputLoadingIcon,
7650
+ {
7651
+ loading,
7652
+ disabled
7653
+ }
7654
+ ),
7655
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
7656
+ InputClearValue,
7657
+ {
7658
+ loading,
7659
+ disabled,
7660
+ readonly,
7661
+ value
7662
+ }
7663
+ ),
7664
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, { children: [
7665
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputSeparator, {}),
7666
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputSuffix, { children: suffix })
7667
+ ] }),
7668
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
7669
+ Button,
7670
+ {
7671
+ className: "k-input-button",
7672
+ icon: "caret-alt-down",
7673
+ rounded: null,
7674
+ size,
7675
+ fillMode
7676
+ }
7677
+ )
7678
+ ]
7679
+ }
7680
+ ),
7681
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
7682
+ adaptive && /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
7683
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
7684
+ ActionSheetHeader,
7685
+ {
7686
+ actions: ["x"],
7687
+ filter: true,
7688
+ title: "Select Item"
7689
+ }
7690
+ ),
7691
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: "k-list-container", children: /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(List, { size: "large", children: [
7692
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(ListItem, { text: "List item" }),
7693
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(ListItem, { text: "List item" }),
7694
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(ListItem, { text: "List item" })
7695
+ ] }) })
7696
+ ] })
7697
+ ] });
7698
+ };
7699
+ Combobox.states = states48;
7700
+ Combobox.options = options43;
7701
+ Combobox.className = COMBOBOX_CLASSNAME;
7702
+ Combobox.defaultProps = defaultProps43;
7703
+
7704
+ // src/combobox/templates/combobox-normal.tsx
7705
+ var import_jsx_runtime140 = require("react/jsx-runtime");
7706
+
7707
+ // src/combobox/templates/combobox-popup.tsx
7708
+ var import_jsx_runtime141 = require("react/jsx-runtime");
7709
+
7710
+ // src/combobox/templates/combobox-grouping.tsx
7711
+ var import_jsx_runtime142 = require("react/jsx-runtime");
7712
+
7713
+ // src/combobox/templates/combobox-adaptive.tsx
7714
+ var import_jsx_runtime143 = require("react/jsx-runtime");
7715
+
7716
+ // src/combobox/templates/combobox-prefix.tsx
7717
+ var import_jsx_runtime144 = require("react/jsx-runtime");
7718
+
7719
+ // src/combobox/templates/combobox-suffix.tsx
7720
+ var import_jsx_runtime145 = require("react/jsx-runtime");
7721
+
7722
+ // src/menu-button/menu-button.spec.tsx
7723
+ var import_jsx_runtime146 = require("react/jsx-runtime");
7724
+ var MENUBUTTON_CLASSNAME = `k-menu-button`;
7725
+ var states49 = [
7726
+ States.hover,
7727
+ States.focus,
7728
+ States.active,
7729
+ States.selected,
7730
+ States.disabled
7731
+ ];
7732
+ var options44 = {
7733
+ size: [Size.small, Size.medium, Size.large],
7734
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7735
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
7736
+ themeColor: [
7737
+ ThemeColor.base,
7738
+ ThemeColor.primary,
7739
+ ThemeColor.secondary,
7740
+ ThemeColor.tertiary,
7741
+ ThemeColor.success,
7742
+ ThemeColor.warning,
7743
+ ThemeColor.error,
7744
+ ThemeColor.info,
7745
+ ThemeColor.light,
7746
+ ThemeColor.dark,
7747
+ ThemeColor.inverse
7748
+ ]
7749
+ };
7750
+ var defaultProps44 = {
7751
+ size: Size.medium,
7752
+ rounded: Roundness.medium,
7753
+ fillMode: FillMode.solid,
7754
+ themeColor: ThemeColor.base,
7755
+ showArrow: true,
7756
+ arrowIconName: "caret-alt-down"
7757
+ };
7758
+ var MenuButton = (props) => {
7759
+ const {
7760
+ size = defaultProps44.size,
7761
+ rounded = defaultProps44.rounded,
7762
+ fillMode = defaultProps44.fillMode,
7763
+ themeColor = defaultProps44.themeColor,
7764
+ hover,
7765
+ focus,
7766
+ active,
7767
+ selected,
7768
+ disabled,
7769
+ icon,
7770
+ text,
7771
+ showArrow = defaultProps44.showArrow,
7772
+ arrowIconName = defaultProps44.arrowIconName,
7773
+ popup,
7774
+ opened,
7775
+ ...other
7776
+ } = props;
7777
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
7778
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
7779
+ Button,
7780
+ {
7781
+ ...other,
7782
+ className: classNames(
7783
+ props.className,
7784
+ MENUBUTTON_CLASSNAME
7785
+ ),
7786
+ text,
7787
+ size,
7788
+ rounded,
7789
+ fillMode,
7790
+ themeColor,
7791
+ hover,
7792
+ focus,
7793
+ active,
7794
+ selected,
7795
+ disabled,
7796
+ icon,
7797
+ showArrow,
7798
+ arrowIconName
7799
+ }
7800
+ ),
7801
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Popup, { className: "k-menu-popup", children: popup })
7802
+ ] });
7803
+ };
7804
+ MenuButton.states = states49;
7805
+ MenuButton.options = options44;
7806
+ MenuButton.className = MENUBUTTON_CLASSNAME;
7807
+ MenuButton.defaultProps = defaultProps44;
7808
+
7809
+ // src/menu-button/templates/icon-menu-button.tsx
7810
+ var import_jsx_runtime147 = require("react/jsx-runtime");
7811
+
7812
+ // src/menu-button/templates/icon-text-menu-button.tsx
7813
+ var import_jsx_runtime148 = require("react/jsx-runtime");
7814
+
7815
+ // src/menu-button/templates/text-menu-button.tsx
7816
+ var import_jsx_runtime149 = require("react/jsx-runtime");
7817
+
7818
+ // src/menu/menu-item.spec.tsx
7819
+ var import_jsx_runtime150 = require("react/jsx-runtime");
7820
+ var MENUITEM_CLASSNAME = `k-menu-item`;
7821
+ var states50 = [
7822
+ States.hover,
7823
+ States.focus,
7824
+ States.active,
7825
+ States.selected,
7826
+ States.disabled
7827
+ ];
7828
+ var options45 = {};
7829
+ var defaultProps45 = {
7830
+ dir: "ltr"
7831
+ };
7832
+ var MenuItem = (props) => {
7833
+ const {
7834
+ hover,
7835
+ focus,
7836
+ active,
7837
+ selected,
7838
+ disabled,
7839
+ icon,
7840
+ text,
7841
+ showArrow,
7842
+ arrowIconName,
7843
+ dir = defaultProps45.dir,
7844
+ children,
7845
+ ...other
7846
+ } = props;
7847
+ const contentTemplate = /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_jsx_runtime150.Fragment, {});
7848
+ if (children) {
7849
+ children.forEach((child) => {
7850
+ const component = child.type;
7851
+ if (component === "MenuItemContent") {
7852
+ contentTemplate.props.children.push(child);
7853
+ return;
7854
+ }
7855
+ });
7856
+ }
7857
+ let expandArrowName = arrowIconName;
7858
+ if (!expandArrowName) {
7859
+ expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
7860
+ }
7861
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
7862
+ "li",
7863
+ {
7864
+ ...other,
7865
+ className: classNames(
7866
+ props.className,
7867
+ MENUITEM_CLASSNAME,
7868
+ //TODO
7869
+ "k-item",
7870
+ stateClassNames(MENUITEM_CLASSNAME, {
7871
+ focus,
7872
+ disabled
7873
+ })
7874
+ ),
7875
+ children: [
7876
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
7877
+ "span",
7878
+ {
7879
+ className: classNames(
7880
+ "k-link k-menu-link",
7881
+ stateClassNames("k-menu-link", {
7882
+ hover,
7883
+ active,
7884
+ selected,
7885
+ disabled
7886
+ })
7887
+ ),
7888
+ children: [
7889
+ icon && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Icon, { className: "k-menu-link-icon", icon }),
7890
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "k-menu-link-text", children: text }),
7891
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Icon, { icon: expandArrowName }) })
7892
+ ]
7893
+ }
7894
+ ),
7895
+ contentTemplate
7896
+ ]
7897
+ }
7898
+ );
7899
+ };
7900
+ MenuItem.states = states50;
7901
+ MenuItem.options = options45;
7902
+ MenuItem.className = MENUITEM_CLASSNAME;
7903
+ MenuItem.defaultProps = defaultProps45;
7904
+ var menu_item_spec_default = MenuItem;
7905
+
7906
+ // src/menu/menu-separator.spec.tsx
7907
+ var import_jsx_runtime151 = require("react/jsx-runtime");
7908
+ var SEPARATOR_CLASSNAME = `k-separator`;
7909
+ var defaultProps46 = {
7910
+ orientation: "horizontal"
7911
+ };
7912
+ var MenuSeparator = (props) => {
7913
+ const {
7914
+ orientation = defaultProps46.orientation,
7915
+ ...other
7916
+ } = props;
7917
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
7918
+ "li",
7919
+ {
7920
+ ...other,
7921
+ className: classNames(
7922
+ props.className,
7923
+ "k-item",
7924
+ SEPARATOR_CLASSNAME,
7925
+ {
7926
+ [`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
7927
+ }
7928
+ )
7929
+ }
7930
+ );
7931
+ };
7932
+ var menu_separator_spec_default = MenuSeparator;
7933
+
7934
+ // src/menu/menu-item-content.tsx
7935
+ var import_jsx_runtime152 = require("react/jsx-runtime");
7936
+
7937
+ // src/menu/menu-list.spec.tsx
7938
+ var import_jsx_runtime153 = require("react/jsx-runtime");
7939
+ var import_react = require("react");
7940
+ var MENULIST_CLASSNAME = `k-menu-group`;
7941
+ var states51 = [];
7942
+ var options46 = {
7943
+ size: [Size.small, Size.medium, Size.large]
7944
+ };
7945
+ var defaultProps47 = {
7946
+ size: Size.medium,
7947
+ dir: "ltr"
7948
+ };
7949
+ var MenuList = (props) => {
7950
+ const {
7951
+ children,
7952
+ size = defaultProps47.size,
7953
+ dir = defaultProps47.dir,
7954
+ ...other
7955
+ } = props;
7956
+ const listChildren = [];
7957
+ if (children) {
7958
+ if (Array.isArray(children)) {
7959
+ children.map((child, index) => {
7960
+ if (child.type === menu_item_spec_default) {
7961
+ listChildren.push(
7962
+ /* @__PURE__ */ (0, import_react.createElement)(menu_item_spec_default, { ...child.props, dir, key: index })
7963
+ );
7964
+ } else if (child.type === menu_separator_spec_default) {
7965
+ listChildren.push(
7966
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(menu_separator_spec_default, {})
7967
+ );
7968
+ } else {
7969
+ listChildren.push(child);
7970
+ }
7971
+ });
7972
+ }
7973
+ }
7974
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
7975
+ "ul",
7976
+ {
7977
+ ...other,
7978
+ className: classNames(
7979
+ props.className,
7980
+ MENULIST_CLASSNAME,
7981
+ optionClassNames(MENULIST_CLASSNAME, {
7982
+ size
7983
+ })
7984
+ ),
7985
+ children: listChildren
7986
+ }
7987
+ );
7988
+ };
7989
+ MenuList.states = states51;
7990
+ MenuList.options = options46;
7991
+ MenuList.className = MENULIST_CLASSNAME;
7992
+ MenuList.defaultProps = defaultProps47;
7993
+
7994
+ // src/menu-button/templates/menu-button-popup.tsx
7995
+ var import_jsx_runtime154 = require("react/jsx-runtime");
7996
+
7997
+ // src/split-button/split-button.spec.tsx
7998
+ var import_jsx_runtime155 = require("react/jsx-runtime");
7999
+ var SPLITBUTTON_CLASSNAME = `k-split-button`;
8000
+ var states52 = [
8001
+ States.hover,
8002
+ States.focus,
8003
+ States.active,
8004
+ States.selected,
8005
+ States.disabled
8006
+ ];
8007
+ var options47 = {
8008
+ size: [Size.small, Size.medium, Size.large],
8009
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
8010
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
8011
+ themeColor: [
8012
+ ThemeColor.base,
8013
+ ThemeColor.primary,
8014
+ ThemeColor.secondary,
8015
+ ThemeColor.tertiary,
8016
+ ThemeColor.success,
8017
+ ThemeColor.warning,
8018
+ ThemeColor.error,
8019
+ ThemeColor.info,
8020
+ ThemeColor.light,
8021
+ ThemeColor.dark,
8022
+ ThemeColor.inverse
8023
+ ]
8024
+ };
8025
+ var defaultProps48 = {
8026
+ size: Size.medium,
8027
+ rounded: Roundness.medium,
8028
+ fillMode: FillMode.solid,
8029
+ themeColor: ThemeColor.base,
8030
+ arrowIconName: "caret-alt-down"
8031
+ };
8032
+ var SplitButton = (props) => {
8033
+ const {
8034
+ size = defaultProps48.size,
8035
+ rounded = defaultProps48.rounded,
8036
+ fillMode = defaultProps48.fillMode,
8037
+ themeColor = defaultProps48.themeColor,
8038
+ hover,
8039
+ focus,
8040
+ active,
8041
+ selected,
8042
+ disabled,
8043
+ icon,
8044
+ text,
8045
+ arrowIconName = defaultProps48.arrowIconName,
8046
+ popup,
8047
+ opened,
8048
+ ...other
8049
+ } = props;
8050
+ return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(import_jsx_runtime155.Fragment, { children: [
8051
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(
8052
+ "div",
8053
+ {
8054
+ ...other,
8055
+ className: classNames(
8056
+ props.className,
8057
+ SPLITBUTTON_CLASSNAME,
8058
+ "k-button-group",
8059
+ optionClassNames(SPLITBUTTON_CLASSNAME, {
8060
+ rounded
8061
+ })
8062
+ ),
8063
+ children: [
8064
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
8065
+ Button,
8066
+ {
8067
+ text,
8068
+ icon,
8069
+ size,
8070
+ rounded,
8071
+ fillMode,
8072
+ themeColor,
8073
+ hover,
8074
+ focus,
8075
+ active,
8076
+ selected,
8077
+ disabled,
8078
+ children: props.children
8079
+ }
8080
+ ),
8081
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
8082
+ Button,
8083
+ {
8084
+ className: "k-split-button-arrow",
8085
+ icon: arrowIconName,
8086
+ size,
8087
+ rounded,
8088
+ fillMode,
8089
+ disabled
8090
+ }
8091
+ )
8092
+ ]
8093
+ }
8094
+ ),
8095
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Popup, { className: "k-menu-popup", children: popup })
8096
+ ] });
8097
+ };
8098
+ SplitButton.states = states52;
8099
+ SplitButton.options = options47;
8100
+ SplitButton.className = SPLITBUTTON_CLASSNAME;
8101
+ SplitButton.defaultProps = defaultProps48;
8102
+ var split_button_spec_default = SplitButton;
8103
+
8104
+ // src/toolbar/toolbar.spec.tsx
8105
+ var import_jsx_runtime156 = require("react/jsx-runtime");
8106
+ var TOOLBAR_CLASSNAME = `k-toolbar`;
8107
+ var states53 = [
8108
+ States.focus
8109
+ ];
8110
+ var options48 = {
8111
+ size: [Size.small, Size.medium, Size.large]
8112
+ };
8113
+ var defaultProps49 = {
8114
+ size: Size.medium
8115
+ };
8116
+ var Toolbar = (props) => {
8117
+ const {
8118
+ size = defaultProps49.size,
8119
+ focus,
8120
+ resizable,
8121
+ ...other
8122
+ } = props;
8123
+ const toolbarChildren = [];
8124
+ const addUniqueToolClass = (child, index) => {
8125
+ const tempToolbarChildren = [];
8126
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
8127
+ tempToolbarChildren.push(
8128
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8129
+ Button,
8130
+ {
8131
+ ...child.props,
8132
+ className: `${child.props.className ? child.props.className : ""}`
8133
+ },
8134
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8135
+ )
8136
+ );
8137
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
8138
+ tempToolbarChildren.push(
8139
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8140
+ Button,
8141
+ {
8142
+ ...child.props,
8143
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
8144
+ },
8145
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8146
+ )
8147
+ );
8148
+ } else if (child.type === Button) {
8149
+ tempToolbarChildren.push(
8150
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8151
+ Button,
8152
+ {
8153
+ ...child.props,
8154
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
8155
+ },
8156
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8157
+ )
8158
+ );
8159
+ } else if (child.type === MenuButton) {
8160
+ tempToolbarChildren.push(
8161
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8162
+ MenuButton,
8163
+ {
8164
+ ...child.props,
8165
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
8166
+ },
8167
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8168
+ )
8169
+ );
8170
+ } else if (child.type === split_button_spec_default) {
8171
+ tempToolbarChildren.push(
8172
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8173
+ split_button_spec_default,
8174
+ {
8175
+ ...child.props,
8176
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
8177
+ },
8178
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8179
+ )
8180
+ );
8181
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
8182
+ const buttonGroupItems = [];
8183
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
8184
+ childrenArray.forEach((button, bindex) => {
8185
+ buttonGroupItems.push(
8186
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8187
+ Button,
8188
+ {
8189
+ ...button.props,
8190
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
8191
+ },
8192
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
8193
+ )
8194
+ );
8195
+ });
8196
+ tempToolbarChildren.push(
8197
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8198
+ ButtonGroup,
8199
+ {
8200
+ ...child.props,
8201
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
8202
+ children: buttonGroupItems
8203
+ },
8204
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8205
+ )
8206
+ );
8207
+ } else if (child.type === Combobox) {
8208
+ tempToolbarChildren.push(
8209
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8210
+ Combobox,
8211
+ {
8212
+ ...child.props,
8213
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
8214
+ },
8215
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8216
+ )
8217
+ );
8218
+ } else if (child.type === DropdownList) {
8219
+ tempToolbarChildren.push(
8220
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8221
+ DropdownList,
8222
+ {
8223
+ ...child.props,
8224
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
8225
+ },
8226
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8227
+ )
8228
+ );
8229
+ } else if (child.type === ColorPicker) {
8230
+ tempToolbarChildren.push(
8231
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8232
+ ColorPicker,
8233
+ {
8234
+ ...child.props,
8235
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
8236
+ },
8237
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8238
+ )
8239
+ );
8240
+ } else {
8241
+ tempToolbarChildren.push(child);
8242
+ }
8243
+ tempToolbarChildren.forEach((item) => {
8244
+ toolbarChildren.push(item);
8245
+ });
8246
+ };
8247
+ if (props.children) {
8248
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
8249
+ childrenArray.forEach((child, index) => {
8250
+ addUniqueToolClass(child, index);
8251
+ });
8252
+ }
8253
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
8254
+ "div",
8255
+ {
8256
+ ...other,
8257
+ className: classNames(
8258
+ props.className,
8259
+ TOOLBAR_CLASSNAME,
8260
+ optionClassNames(TOOLBAR_CLASSNAME, {
8261
+ size
8262
+ }),
8263
+ stateClassNames(TOOLBAR_CLASSNAME, {
8264
+ focus
8265
+ }),
8266
+ {
8267
+ [`${TOOLBAR_CLASSNAME}-resizable`]: resizable
8268
+ }
8269
+ ),
8270
+ children: toolbarChildren
8271
+ }
8272
+ );
8273
+ };
8274
+ Toolbar.states = states53;
8275
+ Toolbar.options = options48;
8276
+ Toolbar.className = TOOLBAR_CLASSNAME;
8277
+ Toolbar.defaultProps = defaultProps49;
8278
+
8279
+ // src/toolbar/toolbar-angular.spec.tsx
8280
+ var import_jsx_runtime157 = require("react/jsx-runtime");
8281
+ var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
8282
+ var states54 = [
8283
+ States.focus
8284
+ ];
8285
+ var options49 = {
8286
+ size: [Size.small, Size.medium, Size.large]
8287
+ };
8288
+ var defaultProps50 = {
8289
+ size: Size.medium
8290
+ };
8291
+ var ToolbarAngular = (props) => {
8292
+ const {
8293
+ size = defaultProps50.size,
8294
+ focus,
8295
+ resizable,
8296
+ ...other
8297
+ } = props;
8298
+ const toolbarChildren = [];
8299
+ const addUniqueToolClass = (child, index) => {
8300
+ const tempToolbarChildren = [];
8301
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
8302
+ tempToolbarChildren.push(
8303
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8304
+ Button,
8305
+ {
8306
+ ...child.props,
8307
+ className: `${child.props.className ? child.props.className : ""}`
8308
+ },
8309
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8310
+ ) })
8311
+ );
8312
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
8313
+ tempToolbarChildren.push(
8314
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8315
+ Button,
8316
+ {
8317
+ ...child.props,
8318
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
8319
+ },
8320
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8321
+ ) })
8322
+ );
8323
+ } else if (child.type === Button) {
8324
+ tempToolbarChildren.push(
8325
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8326
+ Button,
8327
+ {
8328
+ ...child.props,
8329
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
8330
+ },
8331
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8332
+ ) })
8333
+ );
8334
+ } else if (child.type === MenuButton) {
8335
+ tempToolbarChildren.push(
8336
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8337
+ MenuButton,
8338
+ {
8339
+ ...child.props,
8340
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
8341
+ },
8342
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8343
+ ) })
8344
+ );
8345
+ } else if (child.type === split_button_spec_default) {
8346
+ tempToolbarChildren.push(
8347
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8348
+ split_button_spec_default,
8349
+ {
8350
+ ...child.props,
8351
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
8352
+ },
8353
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8354
+ ) })
8355
+ );
8356
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
8357
+ const buttonGroupItems = [];
8358
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
8359
+ childrenArray.forEach((button, bindex) => {
8360
+ buttonGroupItems.push(
8361
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8362
+ Button,
8363
+ {
8364
+ ...button.props,
8365
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
8366
+ },
8367
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
8368
+ )
8369
+ );
8370
+ });
8371
+ tempToolbarChildren.push(
8372
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8373
+ ButtonGroup,
8374
+ {
8375
+ ...child.props,
8376
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
8377
+ children: buttonGroupItems
8378
+ },
8379
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8380
+ ) })
8381
+ );
8382
+ } else if (child.type === Combobox) {
8383
+ tempToolbarChildren.push(
8384
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8385
+ Combobox,
8386
+ {
8387
+ ...child.props,
8388
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
8389
+ },
8390
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8391
+ ) })
8392
+ );
8393
+ } else if (child.type === DropdownList) {
8394
+ tempToolbarChildren.push(
8395
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8396
+ DropdownList,
8397
+ {
8398
+ ...child.props,
8399
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
8400
+ },
8401
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8402
+ ) })
8403
+ );
8404
+ } else if (child.type === ColorPicker) {
8405
+ tempToolbarChildren.push(
8406
+ /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8407
+ ColorPicker,
8408
+ {
8409
+ ...child.props,
8410
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
8411
+ },
8412
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8413
+ ) })
8414
+ );
8415
+ } else {
8416
+ tempToolbarChildren.push(child);
8417
+ }
8418
+ tempToolbarChildren.forEach((item) => {
8419
+ toolbarChildren.push(item);
8420
+ });
8421
+ };
8422
+ if (props.children) {
8423
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
8424
+ childrenArray.forEach((child, index) => {
8425
+ addUniqueToolClass(child, index);
8426
+ });
8427
+ }
8428
+ return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
8429
+ "div",
8430
+ {
8431
+ ...other,
8432
+ className: classNames(
8433
+ props.className,
8434
+ TOOLBARANGULAR_CLASSNAME,
8435
+ optionClassNames(TOOLBARANGULAR_CLASSNAME, {
8436
+ size
8437
+ }),
8438
+ stateClassNames(TOOLBARANGULAR_CLASSNAME, {
8439
+ focus
8440
+ }),
8441
+ {
8442
+ [`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
8443
+ }
8444
+ ),
8445
+ children: toolbarChildren
8446
+ }
8447
+ );
8448
+ };
8449
+ ToolbarAngular.states = states54;
8450
+ ToolbarAngular.options = options49;
8451
+ ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
8452
+ ToolbarAngular.defaultProps = defaultProps50;
8453
+
8454
+ // src/toolbar/toolbar-separator.tsx
8455
+ var import_jsx_runtime158 = require("react/jsx-runtime");
8456
+
8457
+ // src/toolbar/toolbar-item.spec.tsx
8458
+ var import_jsx_runtime159 = require("react/jsx-runtime");
8459
+ var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
8460
+ var states55 = [
8461
+ States.focus
8462
+ ];
8463
+ var options50 = {};
8464
+ var defaultProps51 = {};
8465
+ var ToolbarItem = (props) => {
8466
+ const {
8467
+ focus,
8468
+ ...other
8469
+ } = props;
8470
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
8471
+ "div",
8472
+ {
8473
+ ...other,
8474
+ className: classNames(
8475
+ props.className,
8476
+ TOOLBARITEM_CLASSNAME,
8477
+ stateClassNames(TOOLBARITEM_CLASSNAME, {
8478
+ focus
8479
+ })
8480
+ ),
8481
+ children: props.children
8482
+ }
8483
+ );
8484
+ };
8485
+ ToolbarItem.states = states55;
8486
+ ToolbarItem.options = options50;
8487
+ ToolbarItem.className = TOOLBARITEM_CLASSNAME;
8488
+ ToolbarItem.defaultProps = defaultProps51;
8489
+
8490
+ // src/toolbar/toolbar-popup.spec.tsx
8491
+ var import_jsx_runtime160 = require("react/jsx-runtime");
8492
+ var TOOLBARPOPUP_CLASSNAME = `k-toolbar-popup`;
8493
+ var states56 = [];
8494
+ var options51 = {};
8495
+ var defaultProps52 = {};
8496
+ var ToolbarPopup = (props) => {
8497
+ const { ...other } = props;
8498
+ return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
8499
+ Popup,
8500
+ {
8501
+ ...other,
8502
+ className: classNames(
8503
+ props.className,
8504
+ TOOLBARPOPUP_CLASSNAME
8505
+ ),
8506
+ children: props.children
8507
+ }
8508
+ );
8509
+ };
8510
+ ToolbarPopup.states = states56;
8511
+ ToolbarPopup.options = options51;
8512
+ ToolbarPopup.className = TOOLBARPOPUP_CLASSNAME;
8513
+ ToolbarPopup.defaultProps = defaultProps52;
8514
+
8515
+ // src/split-button/templates/icon-split-button.tsx
8516
+ var import_jsx_runtime161 = require("react/jsx-runtime");
8517
+
8518
+ // src/split-button/templates/icon-text-split-button.tsx
8519
+ var import_jsx_runtime162 = require("react/jsx-runtime");
8520
+
8521
+ // src/split-button/templates/text-split-button.tsx
8522
+ var import_jsx_runtime163 = require("react/jsx-runtime");
8523
+
8524
+ // src/split-button/templates/split-button-popup.tsx
8525
+ var import_jsx_runtime164 = require("react/jsx-runtime");
8526
+
8527
+ // src/toolbar/templates/toolbar-normal.tsx
8528
+ var import_jsx_runtime165 = require("react/jsx-runtime");
8529
+
8530
+ // src/toolbar/templates/toolbar-resizable.tsx
8531
+ var import_jsx_runtime166 = require("react/jsx-runtime");
8532
+
8533
+ // src/toolbar/templates/toolbar-angular-normal.tsx
8534
+ var import_jsx_runtime167 = require("react/jsx-runtime");
8535
+
8536
+ // src/toolbar/templates/toolbar-angular-resizable.tsx
8537
+ var import_jsx_runtime168 = require("react/jsx-runtime");
8538
+
8539
+ // src/grid/grid-toolbar.spec.tsx
8540
+ var import_jsx_runtime169 = require("react/jsx-runtime");
8541
+
8542
+ // src/grid/tests/grid-long-titles.tsx
8543
+ var import_jsx_runtime170 = require("react/jsx-runtime");
8544
+ var styles = `
8545
+ .section {
8546
+ max-width: 400px;
8547
+ }
8548
+
8549
+ .sections-wrapper > .section {
8550
+ display: inline-block;
8551
+ }
8552
+ `;
8553
+ var grid_long_titles_default = () => /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(import_jsx_runtime170.Fragment, { children: [
8554
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("style", { children: styles }),
8555
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { id: "test-area", children: [
8556
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "sections-wrapper", children: [
8557
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8558
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8559
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(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" }) }) })
8560
+ ] }) }) }) }) }),
8561
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8562
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8563
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(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" }) }) })
8564
+ ] }) }) }) }) })
8565
+ ] }),
8566
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "sections-wrapper", children: [
8567
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8568
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8569
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeaderCell, { scope: "col", active: true, menu: "filter", columnTitle: "Active Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8570
+ ] }) }) }) }) }),
8571
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8572
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8573
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeaderCell, { scope: "col", menu: "filter", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Filterable" }) }) })
8574
+ ] }) }) }) }) })
8575
+ ] }),
8576
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "sections-wrapper", children: [
8577
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8578
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8579
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(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" }) }) })
8580
+ ] }) }) }) }) }),
8581
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8582
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8583
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(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" }) }) })
8584
+ ] }) }) }) }) })
8585
+ ] }),
8586
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "sections-wrapper", children: [
8587
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8588
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8589
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeaderCell, { scope: "col", menu: "filter", columnTitle: "Sortable Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8590
+ ] }) }) }) }) }),
8591
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-display-block k-grid-no-scrollbar", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap k-auto-scrollable", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8592
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8593
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeaderCell, { scope: "col", menu: "filter", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Sortable Filterable" }) }) })
8594
+ ] }) }) }) }) })
8595
+ ] }),
8596
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { className: "sections-wrapper", children: [
8597
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-no-scrollbar", _renderAriaRoot: true, style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8598
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8599
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeaderCell, { menu: "filter", columnTitle: "Angular Filterable \xA0\xA0\xA0\xA0\xA0 Lorem ipsum dolor sit amet consectetur adipiscing elit" }) }) })
8600
+ ] }) }) }) }) }),
8601
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "section", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Grid, { className: "k-grid-no-scrollbar", _renderAriaRoot: true, dir: "rtl", style: { height: "60px" }, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(GridHeaderTable, { children: [
8602
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("colgroup", { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("col", {}) }),
8603
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableThead, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(GridHeaderCell, { menu: "filter", columnTitle: "Lorem ipsum dolor sit amet consectetur adipiscing elit \xA0\xA0\xA0\xA0\xA0 RTL Angular Filterable" }) }) })
8604
+ ] }) }) }) }) })
4414
8605
  ] })
4415
8606
  ] })
4416
8607
  ] });