@progress/kendo-themes-html 7.2.1-dev.0 → 7.2.1-dev.1

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 (172) hide show
  1. package/dist/cjs/autocomplete/tests/autocomplete-prefix-suffix.js +1096 -888
  2. package/dist/cjs/column-menu/column-menu-expander.spec.js +5933 -0
  3. package/dist/cjs/column-menu/column-menu-item-content.js +47 -0
  4. package/dist/cjs/column-menu/column-menu-item-wrapper.js +46 -0
  5. package/dist/cjs/column-menu/column-menu-item.spec.js +4396 -0
  6. package/dist/cjs/column-menu/column-menu-multicheck-item.js +261 -0
  7. package/dist/cjs/column-menu/column-menu-multicheck-wrap.js +46 -0
  8. package/dist/cjs/column-menu/column-menu.spec.js +67 -0
  9. package/dist/cjs/column-menu/filter-menu.spec.js +61 -0
  10. package/dist/cjs/column-menu/templates/column-menu-normal.js +5957 -0
  11. package/dist/cjs/column-menu/templates/column-menu-tabbed.js +5947 -0
  12. package/dist/cjs/column-menu/templates/filter-menu-multi-check.js +5984 -0
  13. package/dist/cjs/column-menu/templates/filter-menu-normal.js +5947 -0
  14. package/dist/cjs/column-menu/tests/column-menu-rtl.js +6038 -0
  15. package/dist/cjs/column-menu/tests/column-menu-tabbed.js +6026 -0
  16. package/dist/cjs/column-menu/tests/column-menu.js +6038 -0
  17. package/dist/cjs/combobox/tests/combobox-prefix-suffix.js +1096 -888
  18. package/dist/cjs/filemanager/tests/filemanager-gridview-preview.js +957 -749
  19. package/dist/cjs/filemanager/tests/filemanager-listview-preview.js +911 -703
  20. package/dist/cjs/form/tests/form-field-dropdowns.js +1095 -887
  21. package/dist/cjs/grid/tests/grid-column-menu-rtl.js +707 -603
  22. package/dist/cjs/grid/tests/grid-column-menu-tabbed.js +841 -655
  23. package/dist/cjs/grid/tests/grid-column-menu.js +706 -602
  24. package/dist/cjs/grid/tests/grid-column-reordering-actions.js +302 -122
  25. package/dist/cjs/grid/tests/grid-column-reordering.js +308 -128
  26. package/dist/cjs/grid/tests/grid-column-resizing-actions.js +290 -107
  27. package/dist/cjs/grid/tests/grid-editing-custom-editor.js +1168 -960
  28. package/dist/cjs/grid/tests/grid-grouping-actions.js +272 -59
  29. package/dist/cjs/index.js +2539 -2199
  30. package/dist/cjs/multiselect/templates/multiselect-prefix.js +1071 -863
  31. package/dist/cjs/multiselect/templates/multiselect-suffix.js +1071 -863
  32. package/dist/cjs/multiselect/tests/multiselect-adaptive.js +1077 -869
  33. package/dist/cjs/multiselect/tests/multiselect-flat.js +1101 -893
  34. package/dist/cjs/multiselect/tests/multiselect-grouping.js +1077 -869
  35. package/dist/cjs/multiselect/tests/multiselect-opened.js +1079 -871
  36. package/dist/cjs/multiselect/tests/multiselect-outline.js +1101 -893
  37. package/dist/cjs/multiselect/tests/multiselect-prefix-suffix.js +1108 -900
  38. package/dist/cjs/multiselect/tests/multiselect-size-rounded.js +1080 -872
  39. package/dist/cjs/multiselect/tests/multiselect-solid.js +1101 -893
  40. package/dist/cjs/pivotgrid/tests/pivotgrid-column-menus.js +886 -739
  41. package/dist/cjs/pivotgrid/tests/pivotgrid-settings-panel-reordering.js +1172 -308
  42. package/dist/cjs/scheduler/tests/scheduler-edit-dialog.js +1110 -902
  43. package/dist/cjs/scheduler/tests/scheduler-editing-weekly.js +1124 -916
  44. package/dist/cjs/taskboard/taskboard-pane.js +1078 -870
  45. package/dist/cjs/taskboard/taskboard.spec.js +993 -785
  46. package/dist/cjs/taskboard/templates/taskboard-normal.js +1027 -819
  47. package/dist/cjs/taskboard/tests/taskboard-card-column-menu.js +1620 -64
  48. package/dist/cjs/taskboard/tests/taskboard-card.js +1099 -891
  49. package/dist/cjs/taskboard/tests/taskboard-column.js +1114 -906
  50. package/dist/cjs/taskboard/tests/taskboard-pane.js +1035 -827
  51. package/dist/cjs/taskboard/tests/taskboard-resources.js +1081 -873
  52. package/dist/cjs/taskboard/tests/taskboard-rtl.js +1033 -825
  53. package/dist/cjs/taskboard/tests/taskboard.js +1033 -825
  54. package/dist/cjs/treelist/tests/treelist-aggregate-react.js +4277 -73
  55. package/dist/cjs/treelist/tests/treelist-aggregates.js +4519 -216
  56. package/dist/cjs/treelist/tests/treelist-react.js +2518 -98
  57. package/dist/cjs/treelist/tests/treelist-row-reordering.js +4371 -59
  58. package/dist/cjs/treelist/tests/treelist.js +4409 -112
  59. package/dist/cjs/treelist/treelist.spec.js +8415 -0
  60. package/dist/esm/autocomplete/tests/autocomplete-prefix-suffix.js +1011 -803
  61. package/dist/esm/column-menu/column-menu-expander.spec.js +5917 -0
  62. package/dist/esm/column-menu/column-menu-item-content.js +25 -0
  63. package/dist/esm/column-menu/column-menu-item-wrapper.js +24 -0
  64. package/dist/esm/column-menu/column-menu-item.spec.js +4380 -0
  65. package/dist/esm/column-menu/column-menu-multicheck-item.js +239 -0
  66. package/dist/esm/column-menu/column-menu-multicheck-wrap.js +24 -0
  67. package/dist/esm/column-menu/column-menu.spec.js +45 -0
  68. package/dist/esm/column-menu/filter-menu.spec.js +39 -0
  69. package/dist/esm/column-menu/templates/column-menu-normal.js +5941 -0
  70. package/dist/esm/column-menu/templates/column-menu-tabbed.js +5931 -0
  71. package/dist/esm/column-menu/templates/filter-menu-multi-check.js +5968 -0
  72. package/dist/esm/column-menu/templates/filter-menu-normal.js +5931 -0
  73. package/dist/esm/column-menu/tests/column-menu-rtl.js +6022 -0
  74. package/dist/esm/column-menu/tests/column-menu-tabbed.js +6010 -0
  75. package/dist/esm/column-menu/tests/column-menu.js +6022 -0
  76. package/dist/esm/combobox/tests/combobox-prefix-suffix.js +1011 -803
  77. package/dist/esm/filemanager/tests/filemanager-gridview-preview.js +949 -741
  78. package/dist/esm/filemanager/tests/filemanager-listview-preview.js +903 -695
  79. package/dist/esm/form/tests/form-field-dropdowns.js +1010 -802
  80. package/dist/esm/grid/tests/grid-column-menu-rtl.js +707 -603
  81. package/dist/esm/grid/tests/grid-column-menu-tabbed.js +852 -666
  82. package/dist/esm/grid/tests/grid-column-menu.js +706 -602
  83. package/dist/esm/grid/tests/grid-column-reordering-actions.js +302 -122
  84. package/dist/esm/grid/tests/grid-column-reordering.js +308 -128
  85. package/dist/esm/grid/tests/grid-column-resizing-actions.js +290 -107
  86. package/dist/esm/grid/tests/grid-editing-custom-editor.js +1083 -875
  87. package/dist/esm/grid/tests/grid-grouping-actions.js +272 -59
  88. package/dist/esm/index.js +2495 -2155
  89. package/dist/esm/multiselect/templates/multiselect-prefix.js +986 -778
  90. package/dist/esm/multiselect/templates/multiselect-suffix.js +986 -778
  91. package/dist/esm/multiselect/tests/multiselect-adaptive.js +992 -784
  92. package/dist/esm/multiselect/tests/multiselect-flat.js +1016 -808
  93. package/dist/esm/multiselect/tests/multiselect-grouping.js +992 -784
  94. package/dist/esm/multiselect/tests/multiselect-opened.js +994 -786
  95. package/dist/esm/multiselect/tests/multiselect-outline.js +1016 -808
  96. package/dist/esm/multiselect/tests/multiselect-prefix-suffix.js +1023 -815
  97. package/dist/esm/multiselect/tests/multiselect-size-rounded.js +995 -787
  98. package/dist/esm/multiselect/tests/multiselect-solid.js +1016 -808
  99. package/dist/esm/pivotgrid/tests/pivotgrid-column-menus.js +886 -739
  100. package/dist/esm/pivotgrid/tests/pivotgrid-settings-panel-reordering.js +1172 -308
  101. package/dist/esm/scheduler/tests/scheduler-edit-dialog.js +1025 -817
  102. package/dist/esm/scheduler/tests/scheduler-editing-weekly.js +1039 -831
  103. package/dist/esm/taskboard/taskboard-pane.js +985 -777
  104. package/dist/esm/taskboard/taskboard.spec.js +981 -773
  105. package/dist/esm/taskboard/templates/taskboard-normal.js +1015 -807
  106. package/dist/esm/taskboard/tests/taskboard-card-column-menu.js +1620 -64
  107. package/dist/esm/taskboard/tests/taskboard-card.js +1014 -806
  108. package/dist/esm/taskboard/tests/taskboard-column.js +1029 -821
  109. package/dist/esm/taskboard/tests/taskboard-pane.js +1023 -815
  110. package/dist/esm/taskboard/tests/taskboard-resources.js +996 -788
  111. package/dist/esm/taskboard/tests/taskboard-rtl.js +1021 -813
  112. package/dist/esm/taskboard/tests/taskboard.js +1021 -813
  113. package/dist/esm/treelist/tests/treelist-aggregate-react.js +4277 -73
  114. package/dist/esm/treelist/tests/treelist-aggregates.js +4520 -217
  115. package/dist/esm/treelist/tests/treelist-react.js +2518 -98
  116. package/dist/esm/treelist/tests/treelist-row-reordering.js +4371 -59
  117. package/dist/esm/treelist/tests/treelist.js +4410 -113
  118. package/dist/esm/treelist/treelist.spec.js +8399 -0
  119. package/dist/types/column-menu/column-menu-expander.spec.d.ts +17 -0
  120. package/dist/types/column-menu/column-menu-item-content.d.ts +1 -0
  121. package/dist/types/column-menu/column-menu-item-wrapper.d.ts +1 -0
  122. package/dist/types/column-menu/column-menu-item.spec.d.ts +17 -0
  123. package/dist/types/column-menu/column-menu-multicheck-item.d.ts +4 -0
  124. package/dist/types/column-menu/column-menu-multicheck-wrap.d.ts +1 -0
  125. package/dist/types/column-menu/column-menu.spec.d.ts +14 -0
  126. package/dist/types/column-menu/filter-menu.spec.d.ts +9 -0
  127. package/dist/types/column-menu/index.d.ts +12 -0
  128. package/dist/types/column-menu/templates/column-menu-normal.d.ts +1 -0
  129. package/dist/types/column-menu/templates/column-menu-tabbed.d.ts +1 -0
  130. package/dist/types/column-menu/templates/filter-menu-multi-check.d.ts +1 -0
  131. package/dist/types/column-menu/templates/filter-menu-normal.d.ts +1 -0
  132. package/dist/types/column-menu/tests/column-menu-rtl.d.ts +2 -0
  133. package/dist/types/column-menu/tests/column-menu-tabbed.d.ts +2 -0
  134. package/dist/types/column-menu/tests/column-menu.d.ts +2 -0
  135. package/dist/types/index.d.ts +2 -0
  136. package/dist/types/treelist/index.d.ts +1 -0
  137. package/dist/types/treelist/treelist.spec.d.ts +9 -0
  138. package/package.json +2 -2
  139. package/src/column-menu/column-menu-expander.spec.tsx +66 -0
  140. package/src/column-menu/column-menu-item-content.tsx +18 -0
  141. package/src/column-menu/column-menu-item-wrapper.tsx +17 -0
  142. package/src/column-menu/column-menu-item.spec.tsx +56 -0
  143. package/src/column-menu/column-menu-multicheck-item.tsx +32 -0
  144. package/src/column-menu/column-menu-multicheck-wrap.tsx +17 -0
  145. package/src/column-menu/column-menu.spec.tsx +46 -0
  146. package/src/column-menu/filter-menu.spec.tsx +38 -0
  147. package/src/column-menu/index.ts +12 -0
  148. package/src/column-menu/templates/column-menu-normal.tsx +23 -0
  149. package/src/column-menu/templates/column-menu-tabbed.tsx +36 -0
  150. package/src/column-menu/templates/filter-menu-multi-check.tsx +26 -0
  151. package/src/column-menu/templates/filter-menu-normal.tsx +23 -0
  152. package/src/column-menu/tests/column-menu-rtl.tsx +119 -0
  153. package/src/column-menu/tests/column-menu-tabbed.tsx +113 -0
  154. package/src/column-menu/tests/column-menu.tsx +119 -0
  155. package/src/grid/tests/grid-column-menu-rtl.tsx +194 -367
  156. package/src/grid/tests/grid-column-menu-tabbed.tsx +147 -260
  157. package/src/grid/tests/grid-column-menu.tsx +194 -366
  158. package/src/grid/tests/grid-column-reordering-actions.tsx +48 -77
  159. package/src/grid/tests/grid-column-reordering.tsx +60 -86
  160. package/src/grid/tests/grid-column-resizing-actions.tsx +25 -64
  161. package/src/grid/tests/grid-grouping-actions.tsx +15 -11
  162. package/src/index.ts +2 -1
  163. package/src/pivotgrid/tests/pivotgrid-column-menus.tsx +141 -232
  164. package/src/pivotgrid/tests/pivotgrid-settings-panel-reordering.tsx +17 -34
  165. package/src/taskboard/tests/taskboard-card-column-menu.tsx +12 -22
  166. package/src/treelist/index.ts +1 -0
  167. package/src/treelist/tests/treelist-aggregate-react.tsx +73 -71
  168. package/src/treelist/tests/treelist-aggregates.tsx +219 -242
  169. package/src/treelist/tests/treelist-react.tsx +98 -95
  170. package/src/treelist/tests/treelist-row-reordering.tsx +95 -74
  171. package/src/treelist/tests/treelist.tsx +110 -139
  172. package/src/treelist/treelist.spec.tsx +32 -0
@@ -40,6 +40,22 @@ var optionClassNames = (componentClassName, props) => {
40
40
  }
41
41
  );
42
42
  };
43
+ var stateClassNames = (_componentClassName, props) => {
44
+ return classNames({
45
+ "k-valid": props.valid,
46
+ "k-invalid": props.invalid,
47
+ "k-hover": props.hover,
48
+ "k-focus": props.focus,
49
+ "k-checked": props.checked,
50
+ "k-active": props.active,
51
+ "k-selected": props.selected,
52
+ "k-disabled": props.disabled,
53
+ "k-indeterminate": props.indeterminate && !props.checked,
54
+ "k-loading": props.loading,
55
+ "k-empty": props.empty,
56
+ "k-readonly": props.readonly
57
+ });
58
+ };
43
59
 
44
60
  // src/misc/theme.ts
45
61
  var Size = {
@@ -51,6 +67,19 @@ var Size = {
51
67
  "xxlarge": "xxlarge",
52
68
  "xxxlarge": "xxxlarge"
53
69
  };
70
+ var Roundness = {
71
+ "small": "small",
72
+ "medium": "medium",
73
+ "large": "large",
74
+ "full": "full"
75
+ };
76
+ var FillMode = {
77
+ "solid": "solid",
78
+ "flat": "flat",
79
+ "outline": "outline",
80
+ "clear": "clear",
81
+ "link": "link"
82
+ };
54
83
  var ThemeColor = {
55
84
  "inherit": "inherit",
56
85
  "base": "base",
@@ -65,6 +94,22 @@ var ThemeColor = {
65
94
  "light": "light",
66
95
  "inverse": "inverse"
67
96
  };
97
+ var States = {
98
+ "open": "open",
99
+ "hover": "hover",
100
+ "focus": "focus",
101
+ "active": "active",
102
+ "selected": "selected",
103
+ "disabled": "disabled",
104
+ "valid": "valid",
105
+ "invalid": "invalid",
106
+ "loading": "loading",
107
+ "required": "required",
108
+ "empty": "empty",
109
+ "indeterminate": "indeterminate",
110
+ "checked": "checked",
111
+ "readonly": "readonly"
112
+ };
68
113
 
69
114
  // src/icon/font-icon.spec.tsx
70
115
  import { Fragment, jsx } from "react/jsx-runtime";
@@ -4299,86 +4344,4353 @@ Icon.states = states3;
4299
4344
  Icon.options = options3;
4300
4345
  Icon.defaultProps = defaultProps3;
4301
4346
 
4347
+ // src/grid/grid.spec.tsx
4348
+ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
4349
+ var GRID_CLASSNAME = "k-grid";
4350
+ var states4 = [];
4351
+ var options4 = {
4352
+ size: [Size.small, Size.medium, Size.large]
4353
+ };
4354
+ var defaultProps4 = {
4355
+ size: Size.medium,
4356
+ pagerPosition: "bottom"
4357
+ };
4358
+ var Grid = (props) => {
4359
+ const {
4360
+ size = defaultProps4.size,
4361
+ toolbar,
4362
+ pager,
4363
+ pagerPosition,
4364
+ groupingHeader,
4365
+ _renderAriaRoot,
4366
+ ...other
4367
+ } = props;
4368
+ return /* @__PURE__ */ jsxs(
4369
+ "div",
4370
+ {
4371
+ ...other,
4372
+ className: classNames(
4373
+ props.className,
4374
+ GRID_CLASSNAME,
4375
+ optionClassNames(GRID_CLASSNAME, { size })
4376
+ ),
4377
+ children: [
4378
+ toolbar,
4379
+ pagerPosition === "top" && pager,
4380
+ groupingHeader,
4381
+ props.children && _renderAriaRoot ? /* @__PURE__ */ jsx4("div", { className: "k-grid-aria-root", children: props.children }) : props.children,
4382
+ pagerPosition === "bottom" && pager
4383
+ ]
4384
+ }
4385
+ );
4386
+ };
4387
+ Grid.states = states4;
4388
+ Grid.options = options4;
4389
+ Grid.className = GRID_CLASSNAME;
4390
+ Grid.defaultProps = defaultProps4;
4391
+
4392
+ // src/grid/grid-header.spec.tsx
4393
+ import { jsx as jsx5 } from "react/jsx-runtime";
4394
+ var className = `k-grid-header`;
4395
+ var GridHeader = (props) => /* @__PURE__ */ jsx5(
4396
+ "div",
4397
+ {
4398
+ ...props,
4399
+ className: classNames(
4400
+ props.className,
4401
+ className
4402
+ ),
4403
+ children: props.children
4404
+ }
4405
+ );
4406
+
4407
+ // src/grid/grid-grouping-header.spec.tsx
4408
+ import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
4409
+
4410
+ // src/table/data-table.spec.tsx
4411
+ import { jsx as jsx7 } from "react/jsx-runtime";
4412
+ var DATATABLE_CLASSNAME = `k-data-table`;
4413
+ var states5 = [];
4414
+ var options5 = {
4415
+ size: [Size.small, Size.medium, Size.large]
4416
+ };
4417
+ var defaultProps5 = {
4418
+ size: Size.medium
4419
+ };
4420
+ var DataTable = (props) => {
4421
+ const {
4422
+ size = defaultProps5.size,
4423
+ ...other
4424
+ } = props;
4425
+ return /* @__PURE__ */ jsx7(
4426
+ "div",
4427
+ {
4428
+ ...other,
4429
+ className: classNames(
4430
+ props.className,
4431
+ DATATABLE_CLASSNAME,
4432
+ optionClassNames("k-table", {
4433
+ size
4434
+ })
4435
+ ),
4436
+ children: props.children
4437
+ }
4438
+ );
4439
+ };
4440
+ DataTable.states = states5;
4441
+ DataTable.options = options5;
4442
+ DataTable.className = DATATABLE_CLASSNAME;
4443
+ DataTable.defaultProps = defaultProps5;
4444
+
4445
+ // src/table/table-header.tsx
4446
+ import { jsx as jsx8 } from "react/jsx-runtime";
4447
+
4448
+ // src/table/table-body.tsx
4449
+ import { jsx as jsx9 } from "react/jsx-runtime";
4450
+
4451
+ // src/table/table-footer.tsx
4452
+ import { jsx as jsx10 } from "react/jsx-runtime";
4453
+
4454
+ // src/table/table.spec.tsx
4455
+ import { jsx as jsx11 } from "react/jsx-runtime";
4456
+ var TABLE_CLASSNAME = `k-table`;
4457
+ var states6 = [];
4458
+ var options6 = {
4459
+ size: [Size.small, Size.medium, Size.large]
4460
+ };
4461
+ var defaultProps6 = {};
4462
+ var Table = (props) => {
4463
+ const {
4464
+ size,
4465
+ ...other
4466
+ } = props;
4467
+ return /* @__PURE__ */ jsx11(
4468
+ "table",
4469
+ {
4470
+ ...other,
4471
+ className: classNames(
4472
+ props.className,
4473
+ TABLE_CLASSNAME,
4474
+ optionClassNames(TABLE_CLASSNAME, {
4475
+ size
4476
+ })
4477
+ ),
4478
+ children: props.children
4479
+ }
4480
+ );
4481
+ };
4482
+ Table.states = states6;
4483
+ Table.options = options6;
4484
+ Table.className = TABLE_CLASSNAME;
4485
+ Table.defaultProps = defaultProps6;
4486
+
4487
+ // src/table/table-list.spec.tsx
4488
+ import { jsx as jsx12 } from "react/jsx-runtime";
4489
+ var TABLELIST_CLASSNAME = `k-table-list`;
4490
+ var states7 = [];
4491
+ var options7 = {
4492
+ size: [Size.small, Size.medium, Size.large]
4493
+ };
4494
+ var defaultProps7 = {};
4495
+ var TableList = (props) => {
4496
+ const {
4497
+ size,
4498
+ virtualization,
4499
+ ...other
4500
+ } = props;
4501
+ return /* @__PURE__ */ jsx12(
4502
+ "ul",
4503
+ {
4504
+ ...other,
4505
+ className: classNames(
4506
+ props.className,
4507
+ "k-table",
4508
+ TABLELIST_CLASSNAME,
4509
+ optionClassNames(TABLELIST_CLASSNAME, {
4510
+ size
4511
+ }),
4512
+ {
4513
+ "k-virtual-table": virtualization
4514
+ }
4515
+ ),
4516
+ children: props.children
4517
+ }
4518
+ );
4519
+ };
4520
+ TableList.states = states7;
4521
+ TableList.options = options7;
4522
+ TableList.className = TABLELIST_CLASSNAME;
4523
+ TableList.defaultProps = defaultProps7;
4524
+
4525
+ // src/table/table-thead.tsx
4526
+ import { jsx as jsx13 } from "react/jsx-runtime";
4527
+ var className2 = `k-table-thead`;
4528
+ var TableThead = (props) => /* @__PURE__ */ jsx13(
4529
+ "thead",
4530
+ {
4531
+ className: classNames(
4532
+ props.className,
4533
+ className2
4534
+ ),
4535
+ children: props.children
4536
+ }
4537
+ );
4538
+
4539
+ // src/table/table-tbody.tsx
4540
+ import { jsx as jsx14 } from "react/jsx-runtime";
4541
+ var className3 = `k-table-tbody`;
4542
+ var TableTbody = (props) => /* @__PURE__ */ jsx14(
4543
+ "tbody",
4544
+ {
4545
+ className: classNames(
4546
+ props.className,
4547
+ className3
4548
+ ),
4549
+ children: props.children
4550
+ }
4551
+ );
4552
+
4553
+ // src/table/table-tfoot.tsx
4554
+ import { jsx as jsx15 } from "react/jsx-runtime";
4555
+
4556
+ // src/table/table-row.tsx
4557
+ import { jsx as jsx16 } from "react/jsx-runtime";
4558
+ var TABLEROW_CLASSNAME = `k-table-row`;
4559
+ var states8 = [
4560
+ States.hover,
4561
+ States.focus,
4562
+ States.selected,
4563
+ States.disabled
4564
+ ];
4565
+ var TableRow = (props) => {
4566
+ const {
4567
+ hover,
4568
+ focus,
4569
+ selected,
4570
+ disabled,
4571
+ alt,
4572
+ ...other
4573
+ } = props;
4574
+ return /* @__PURE__ */ jsx16(
4575
+ "tr",
4576
+ {
4577
+ ...other,
4578
+ className: classNames(
4579
+ props.className,
4580
+ TABLEROW_CLASSNAME,
4581
+ {
4582
+ ["k-table-alt-row"]: alt
4583
+ },
4584
+ stateClassNames(TABLEROW_CLASSNAME, {
4585
+ hover,
4586
+ focus,
4587
+ disabled,
4588
+ selected
4589
+ })
4590
+ ),
4591
+ children: props.children
4592
+ }
4593
+ );
4594
+ };
4595
+
4596
+ // src/table/table-list-row.tsx
4597
+ import { jsx as jsx17 } from "react/jsx-runtime";
4598
+ var states9 = [
4599
+ States.hover,
4600
+ States.focus,
4601
+ States.selected,
4602
+ States.disabled
4603
+ ];
4604
+
4605
+ // src/table/table-th.tsx
4606
+ import { jsx as jsx18 } from "react/jsx-runtime";
4607
+ var className4 = `k-table-th`;
4608
+ var TableTh = (props) => {
4609
+ const {
4610
+ text,
4611
+ colspan,
4612
+ rowspan,
4613
+ ...other
4614
+ } = props;
4615
+ const textOrChildren = text ? text : props.children;
4616
+ return /* @__PURE__ */ jsx18(
4617
+ "th",
4618
+ {
4619
+ colSpan: colspan,
4620
+ rowSpan: rowspan,
4621
+ ...other,
4622
+ className: classNames(
4623
+ props.className,
4624
+ className4
4625
+ ),
4626
+ children: textOrChildren
4627
+ }
4628
+ );
4629
+ };
4630
+
4631
+ // src/table/table-list-th.tsx
4632
+ import { jsx as jsx19 } from "react/jsx-runtime";
4633
+
4634
+ // src/table/table-td.tsx
4635
+ import { jsx as jsx20 } from "react/jsx-runtime";
4636
+ var className5 = `k-table-td`;
4637
+ var TableTd = (props) => {
4638
+ const {
4639
+ text,
4640
+ colspan,
4641
+ ...other
4642
+ } = props;
4643
+ const textOrChildren = text ? text : props.children;
4644
+ return /* @__PURE__ */ jsx20(
4645
+ "td",
4646
+ {
4647
+ colSpan: colspan,
4648
+ ...other,
4649
+ className: classNames(
4650
+ props.className,
4651
+ className5
4652
+ ),
4653
+ children: textOrChildren
4654
+ }
4655
+ );
4656
+ };
4657
+
4658
+ // src/table/table-list-td.tsx
4659
+ import { jsx as jsx21 } from "react/jsx-runtime";
4660
+
4661
+ // src/table/table-group-header.tsx
4662
+ import { jsx as jsx22 } from "react/jsx-runtime";
4663
+
4664
+ // src/table/table-group-sticky-header.tsx
4665
+ import { jsx as jsx23 } from "react/jsx-runtime";
4666
+
4667
+ // src/table/table-group-row.tsx
4668
+ import { jsx as jsx24 } from "react/jsx-runtime";
4669
+
4670
+ // src/table/table-list-group-row.tsx
4671
+ import { jsx as jsx25 } from "react/jsx-runtime";
4672
+
4673
+ // src/table/templates/table-list.tsx
4674
+ import { jsx as jsx26, jsxs as jsxs3 } from "react/jsx-runtime";
4675
+
4676
+ // src/table/templates/table-list-virtualization.tsx
4677
+ import { jsx as jsx27, jsxs as jsxs4 } from "react/jsx-runtime";
4678
+
4679
+ // src/table/templates/data-table-normal.tsx
4680
+ import { jsx as jsx28, jsxs as jsxs5 } from "react/jsx-runtime";
4681
+
4682
+ // src/table/templates/table-native.tsx
4683
+ import { jsx as jsx29, jsxs as jsxs6 } from "react/jsx-runtime";
4684
+
4685
+ // src/grid/grid-header-table.spec.tsx
4686
+ import { jsx as jsx30 } from "react/jsx-runtime";
4687
+ var GRIDHEADERTABLE_CLASSNAME = `k-grid-header-table`;
4688
+ var GridHeaderTable = (props) => /* @__PURE__ */ jsx30(
4689
+ Table,
4690
+ {
4691
+ size: "medium",
4692
+ ...props,
4693
+ className: classNames(
4694
+ props.className,
4695
+ GRIDHEADERTABLE_CLASSNAME
4696
+ ),
4697
+ children: props.children
4698
+ }
4699
+ );
4700
+
4701
+ // src/grid/grid-header-cell.spec.tsx
4702
+ import { jsx as jsx31, jsxs as jsxs7 } from "react/jsx-runtime";
4703
+ var className6 = `k-header`;
4704
+ var states10 = [
4705
+ States.hover,
4706
+ States.focus,
4707
+ States.active
4708
+ ];
4709
+ var defaultProps8 = {
4710
+ sortIcon: "sort-asc-small"
4711
+ };
4712
+ var GridHeaderCell = (props) => {
4713
+ const {
4714
+ menu,
4715
+ sortable,
4716
+ sticky,
4717
+ resizable,
4718
+ columnTitle,
4719
+ hover,
4720
+ focus,
4721
+ active,
4722
+ sortIcon = defaultProps8.sortIcon,
4723
+ sortOrder,
4724
+ ...others
4725
+ } = props;
4726
+ return /* @__PURE__ */ jsxs7(
4727
+ TableTh,
4728
+ {
4729
+ ...others,
4730
+ className: classNames(
4731
+ props.className,
4732
+ className6,
4733
+ {
4734
+ [`k-filterable`]: menu === "filter",
4735
+ [`k-sorted`]: sortable,
4736
+ [`k-grid-header-sticky`]: sticky,
4737
+ [`k-touch-action-none`]: resizable
4738
+ },
4739
+ stateClassNames(className6, {
4740
+ hover,
4741
+ focus,
4742
+ active
4743
+ })
4744
+ ),
4745
+ children: [
4746
+ columnTitle && /* @__PURE__ */ jsxs7("span", { className: "k-cell-inner", children: [
4747
+ /* @__PURE__ */ jsxs7("span", { className: "k-link", children: [
4748
+ /* @__PURE__ */ jsx31("span", { className: "k-column-title", children: columnTitle }),
4749
+ sortable && /* @__PURE__ */ jsx31("span", { className: "k-sort-icon", children: /* @__PURE__ */ jsx31(Icon, { icon: sortIcon }) }),
4750
+ sortOrder && /* @__PURE__ */ jsx31("span", { className: "k-sort-order", children: sortOrder })
4751
+ ] }),
4752
+ menu && /* @__PURE__ */ jsx31("a", { href: "#", className: classNames(
4753
+ "k-grid-header-menu",
4754
+ {
4755
+ [`k-active`]: active,
4756
+ [`k-grid-filter-menu`]: menu === "filter",
4757
+ [`k-grid-column-menu`]: menu === "column"
4758
+ }
4759
+ ), children: /* @__PURE__ */ jsx31(Icon, { icon: menu === "filter" ? "filter" : "more-vertical" }) })
4760
+ ] }),
4761
+ props.children,
4762
+ resizable && /* @__PURE__ */ jsx31("span", { className: "k-column-resizer k-touch-action-none" })
4763
+ ]
4764
+ }
4765
+ );
4766
+ };
4767
+
4768
+ // src/grid/grid-container.spec.tsx
4769
+ import { jsx as jsx32 } from "react/jsx-runtime";
4770
+ var className7 = `k-grid-container`;
4771
+ var GridContainer = (props) => /* @__PURE__ */ jsx32(
4772
+ "div",
4773
+ {
4774
+ ...props,
4775
+ className: classNames(
4776
+ props.className,
4777
+ className7
4778
+ ),
4779
+ children: props.children
4780
+ }
4781
+ );
4782
+
4783
+ // src/grid/grid-content.spec.tsx
4784
+ import { jsx as jsx33 } from "react/jsx-runtime";
4785
+ var className8 = `k-grid-content`;
4786
+ var GridContent = (props) => /* @__PURE__ */ jsx33(
4787
+ "div",
4788
+ {
4789
+ ...props,
4790
+ className: classNames(
4791
+ props.className,
4792
+ className8
4793
+ ),
4794
+ children: props.children
4795
+ }
4796
+ );
4797
+
4798
+ // src/grid/grid-table.spec.tsx
4799
+ import { jsx as jsx34 } from "react/jsx-runtime";
4800
+ var GRIDTABLE_CLASSNAME = `k-grid-table`;
4801
+ var GridTable = (props) => /* @__PURE__ */ jsx34(
4802
+ Table,
4803
+ {
4804
+ size: "medium",
4805
+ ...props,
4806
+ className: classNames(
4807
+ props.className,
4808
+ GRIDTABLE_CLASSNAME
4809
+ ),
4810
+ children: props.children
4811
+ }
4812
+ );
4813
+
4814
+ // src/grid/grid-footer.spec.tsx
4815
+ import { jsx as jsx35 } from "react/jsx-runtime";
4816
+
4817
+ // src/grid/grid-footer-table.spec.tsx
4818
+ import { jsx as jsx36 } from "react/jsx-runtime";
4819
+
4820
+ // src/button/button.spec.tsx
4821
+ import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs8 } from "react/jsx-runtime";
4822
+ var BUTTON_CLASSNAME = `k-button`;
4823
+ var states11 = [
4824
+ States.hover,
4825
+ States.focus,
4826
+ States.active,
4827
+ States.selected,
4828
+ States.disabled
4829
+ ];
4830
+ var options8 = {
4831
+ size: [Size.small, Size.medium, Size.large],
4832
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4833
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
4834
+ themeColor: [
4835
+ ThemeColor.base,
4836
+ ThemeColor.primary,
4837
+ ThemeColor.secondary,
4838
+ ThemeColor.tertiary,
4839
+ ThemeColor.success,
4840
+ ThemeColor.warning,
4841
+ ThemeColor.error,
4842
+ ThemeColor.info,
4843
+ ThemeColor.light,
4844
+ ThemeColor.dark,
4845
+ ThemeColor.inverse
4846
+ ]
4847
+ };
4848
+ var defaultProps9 = {
4849
+ size: Size.medium,
4850
+ rounded: Roundness.medium,
4851
+ fillMode: FillMode.solid,
4852
+ themeColor: ThemeColor.base,
4853
+ showArrow: false,
4854
+ arrowIconName: "caret-alt-down"
4855
+ };
4856
+ var Button = (props) => {
4857
+ const {
4858
+ size = defaultProps9.size,
4859
+ rounded = defaultProps9.rounded,
4860
+ fillMode = defaultProps9.fillMode,
4861
+ themeColor = defaultProps9.themeColor,
4862
+ hover,
4863
+ focus,
4864
+ active,
4865
+ selected,
4866
+ disabled,
4867
+ icon,
4868
+ text,
4869
+ iconClassName,
4870
+ showArrow = defaultProps9.showArrow,
4871
+ arrowIconName = defaultProps9.arrowIconName,
4872
+ ...other
4873
+ } = props;
4874
+ const hasIcon = icon !== void 0;
4875
+ const hasChildren = props.children !== void 0;
4876
+ return /* @__PURE__ */ jsxs8(
4877
+ "button",
4878
+ {
4879
+ ...other,
4880
+ className: classNames(
4881
+ props.className,
4882
+ BUTTON_CLASSNAME,
4883
+ optionClassNames(BUTTON_CLASSNAME, {
4884
+ size,
4885
+ rounded,
4886
+ fillMode,
4887
+ themeColor
4888
+ }),
4889
+ stateClassNames(BUTTON_CLASSNAME, {
4890
+ hover,
4891
+ focus,
4892
+ active,
4893
+ disabled,
4894
+ selected
4895
+ }),
4896
+ {
4897
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
4898
+ }
4899
+ ),
4900
+ children: [
4901
+ icon && /* @__PURE__ */ jsx37(
4902
+ Icon,
4903
+ {
4904
+ className: classNames(iconClassName, "k-button-icon"),
4905
+ icon
4906
+ }
4907
+ ),
4908
+ text ? /* @__PURE__ */ jsxs8(Fragment4, { children: [
4909
+ text && /* @__PURE__ */ jsx37("span", { className: "k-button-text", children: text }),
4910
+ props.children
4911
+ ] }) : props.children && /* @__PURE__ */ jsx37("span", { className: "k-button-text", children: props.children }),
4912
+ showArrow && /* @__PURE__ */ jsx37("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ jsx37(Icon, { icon: arrowIconName }) })
4913
+ ]
4914
+ }
4915
+ );
4916
+ };
4917
+ Button.states = states11;
4918
+ Button.options = options8;
4919
+ Button.className = BUTTON_CLASSNAME;
4920
+ Button.defaultProps = defaultProps9;
4921
+
4922
+ // src/button/templates/icon-button.tsx
4923
+ import { jsx as jsx38 } from "react/jsx-runtime";
4924
+
4925
+ // src/button/templates/icon-text-button.tsx
4926
+ import { jsx as jsx39 } from "react/jsx-runtime";
4927
+
4928
+ // src/button/templates/text-button.tsx
4929
+ import { jsx as jsx40 } from "react/jsx-runtime";
4930
+
4931
+ // src/input/input.spec.tsx
4932
+ import { jsx as jsx41 } from "react/jsx-runtime";
4933
+ var INPUT_CLASSNAME = `k-input`;
4934
+ var states12 = [
4935
+ States.hover,
4936
+ States.focus,
4937
+ States.valid,
4938
+ States.invalid,
4939
+ States.required,
4940
+ States.disabled,
4941
+ States.loading,
4942
+ States.readonly
4943
+ ];
4944
+ var options9 = {
4945
+ size: [Size.small, Size.medium, Size.large],
4946
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
4947
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
4948
+ };
4949
+ var defaultProps10 = {
4950
+ size: Size.medium,
4951
+ rounded: Size.medium,
4952
+ fillMode: FillMode.solid
4953
+ };
4954
+ var Input = (props) => {
4955
+ const {
4956
+ hover,
4957
+ focus,
4958
+ disabled,
4959
+ invalid,
4960
+ valid,
4961
+ loading,
4962
+ readonly,
4963
+ size = defaultProps10.size,
4964
+ rounded = defaultProps10.rounded,
4965
+ fillMode = defaultProps10.fillMode,
4966
+ ...other
4967
+ } = props;
4968
+ return /* @__PURE__ */ jsx41(
4969
+ "span",
4970
+ {
4971
+ ...other,
4972
+ className: classNames(
4973
+ props.className,
4974
+ INPUT_CLASSNAME,
4975
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
4976
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
4977
+ )
4978
+ }
4979
+ );
4980
+ };
4981
+ Input.states = states12;
4982
+ Input.options = options9;
4983
+ Input.className = INPUT_CLASSNAME;
4984
+ Input.defaultProps = defaultProps10;
4985
+
4986
+ // src/input/picker.spec.tsx
4987
+ import { jsx as jsx42 } from "react/jsx-runtime";
4988
+ var PICKER_CLASSNAME = `k-picker`;
4989
+ var pickerStates = [
4990
+ States.hover,
4991
+ States.focus,
4992
+ States.valid,
4993
+ States.invalid,
4994
+ States.required,
4995
+ States.disabled,
4996
+ States.loading,
4997
+ States.readonly
4998
+ ];
4999
+ var pickerOptions = {
5000
+ size: [Size.small, Size.medium, Size.large],
5001
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5002
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5003
+ };
5004
+ var defaultProps11 = {
5005
+ size: Size.medium,
5006
+ rounded: Roundness.medium,
5007
+ fillMode: FillMode.solid
5008
+ };
5009
+ var Picker = (props) => {
5010
+ const {
5011
+ hover,
5012
+ focus,
5013
+ disabled,
5014
+ invalid,
5015
+ valid,
5016
+ loading,
5017
+ readonly,
5018
+ size = defaultProps11.size,
5019
+ rounded = defaultProps11.rounded,
5020
+ fillMode = defaultProps11.fillMode,
5021
+ ...other
5022
+ } = props;
5023
+ return /* @__PURE__ */ jsx42(
5024
+ "span",
5025
+ {
5026
+ ...other,
5027
+ className: classNames(
5028
+ props.className,
5029
+ PICKER_CLASSNAME,
5030
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
5031
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
5032
+ ),
5033
+ children: props.children
5034
+ }
5035
+ );
5036
+ };
5037
+ Picker.states = pickerStates;
5038
+ Picker.options = pickerOptions;
5039
+ Picker.className = PICKER_CLASSNAME;
5040
+ Picker.defaultProps = defaultProps11;
5041
+
5042
+ // src/input/input-clear-value.tsx
5043
+ import { Fragment as Fragment5, jsx as jsx43 } from "react/jsx-runtime";
5044
+ var className9 = `k-clear-value`;
5045
+ var states13 = [
5046
+ States.disabled,
5047
+ States.loading,
5048
+ States.readonly
5049
+ ];
5050
+ var options10 = {};
5051
+ var InputClearValue = (props) => {
5052
+ const {
5053
+ disabled,
5054
+ loading,
5055
+ readonly,
5056
+ value
5057
+ } = props;
5058
+ if (disabled || readonly || loading || !value) {
5059
+ return /* @__PURE__ */ jsx43(Fragment5, {});
5060
+ }
5061
+ return /* @__PURE__ */ jsx43("span", { className: classNames(props.className, className9), children: /* @__PURE__ */ jsx43(Icon, { icon: "x" }) });
5062
+ };
5063
+ InputClearValue.states = states13;
5064
+ InputClearValue.options = options10;
5065
+ InputClearValue.className = className9;
5066
+
5067
+ // src/input/input-inner-input.tsx
5068
+ import { jsx as jsx44 } from "react/jsx-runtime";
5069
+ var className10 = `k-input-inner`;
5070
+ var states14 = [];
5071
+ var options11 = {};
5072
+ var defaultProps12 = {
5073
+ type: "text",
5074
+ autocomplete: "off",
5075
+ value: "",
5076
+ placeholder: ""
5077
+ };
5078
+ var InputInnerInput = (props) => {
5079
+ const {
5080
+ value = defaultProps12.value,
5081
+ type = defaultProps12.type,
5082
+ placeholder = defaultProps12.placeholder,
5083
+ autocomplete = defaultProps12.autocomplete,
5084
+ ...other
5085
+ } = props;
5086
+ return /* @__PURE__ */ jsx44(
5087
+ "input",
5088
+ {
5089
+ ...other,
5090
+ type,
5091
+ className: classNames(props.className, className10, optionClassNames(className10, props)),
5092
+ placeholder,
5093
+ autoComplete: autocomplete,
5094
+ defaultValue: value
5095
+ }
5096
+ );
5097
+ };
5098
+ InputInnerInput.states = states14;
5099
+ InputInnerInput.options = options11;
5100
+ InputInnerInput.className = className10;
5101
+
5102
+ // src/input/input-inner-span.tsx
5103
+ import { jsx as jsx45, jsxs as jsxs9 } from "react/jsx-runtime";
5104
+ var className11 = `k-input-inner`;
5105
+ var states15 = [];
5106
+ var options12 = {};
5107
+ var InputInnerSpan = (props) => {
5108
+ const {
5109
+ value,
5110
+ placeholder,
5111
+ showValue,
5112
+ valueIcon,
5113
+ valueIconName,
5114
+ ...other
5115
+ } = props;
5116
+ return /* @__PURE__ */ jsxs9(
5117
+ "span",
5118
+ {
5119
+ ...other,
5120
+ className: classNames(props.className, className11, optionClassNames(className11, props)),
5121
+ children: [
5122
+ valueIcon,
5123
+ !valueIcon && valueIconName && /* @__PURE__ */ jsx45(Icon, { className: "k-input-value-icon", icon: valueIconName }),
5124
+ showValue && !value && placeholder,
5125
+ showValue && value && /* @__PURE__ */ jsx45("span", { className: "k-input-value-text", children: value })
5126
+ ]
5127
+ }
5128
+ );
5129
+ };
5130
+ InputInnerSpan.states = states15;
5131
+ InputInnerSpan.options = options12;
5132
+ InputInnerSpan.className = className11;
5133
+
5134
+ // src/input/input-inner-textarea.tsx
5135
+ import { jsx as jsx46 } from "react/jsx-runtime";
5136
+ var defaultProps13 = {
5137
+ value: "",
5138
+ placeholder: ""
5139
+ };
5140
+ var className12 = `k-input-inner`;
5141
+ var states16 = [];
5142
+ var options13 = {};
5143
+ var InputInnerTextarea = (props) => {
5144
+ const {
5145
+ value = defaultProps13.value,
5146
+ placeholder = defaultProps13.placeholder,
5147
+ rows,
5148
+ ...other
5149
+ } = props;
5150
+ return /* @__PURE__ */ jsx46(
5151
+ "textarea",
5152
+ {
5153
+ ...other,
5154
+ className: classNames(props.className, className12, optionClassNames(className12, props)),
5155
+ placeholder,
5156
+ rows,
5157
+ children: value
5158
+ }
5159
+ );
5160
+ };
5161
+ InputInnerTextarea.states = states16;
5162
+ InputInnerTextarea.options = options13;
5163
+ InputInnerTextarea.className = className12;
5164
+
5165
+ // src/input/input-loading-icon.tsx
5166
+ import { Fragment as Fragment6, jsx as jsx47 } from "react/jsx-runtime";
5167
+ var className13 = `k-input-loading-icon`;
5168
+ var states17 = [
5169
+ States.disabled,
5170
+ States.loading
5171
+ ];
5172
+ var InputLoadingIcon = (props) => {
5173
+ const {
5174
+ disabled,
5175
+ loading
5176
+ } = props;
5177
+ if (disabled || !loading) {
5178
+ return /* @__PURE__ */ jsx47(Fragment6, {});
5179
+ }
5180
+ return /* @__PURE__ */ jsx47("span", { className: classNames(props.className, className13, "k-icon k-i-loading") });
5181
+ };
5182
+
5183
+ // src/input/input-validation-icon.tsx
5184
+ import { Fragment as Fragment7, jsx as jsx48 } from "react/jsx-runtime";
5185
+ var className14 = `k-input-validation-icon`;
5186
+ var states18 = [
5187
+ States.valid,
5188
+ States.invalid,
5189
+ States.disabled,
5190
+ States.loading
5191
+ ];
5192
+ var options14 = {};
5193
+ var InputValidationIcon = (props) => {
5194
+ const {
5195
+ valid,
5196
+ invalid,
5197
+ disabled,
5198
+ loading
5199
+ } = props;
5200
+ const iconName = invalid ? "warning-circle" : "check-circle";
5201
+ const renderValidationIcon = Boolean(valid || invalid);
5202
+ if (disabled || loading || !renderValidationIcon) {
5203
+ return /* @__PURE__ */ jsx48(Fragment7, {});
5204
+ }
5205
+ return /* @__PURE__ */ jsx48(Icon, { className: classNames(className14), icon: iconName });
5206
+ };
5207
+ InputValidationIcon.states = states18;
5208
+ InputValidationIcon.options = options14;
5209
+ InputValidationIcon.className = className14;
5210
+
5211
+ // src/input/input-prefix.tsx
5212
+ import { Fragment as Fragment8, jsx as jsx49 } from "react/jsx-runtime";
5213
+ var className15 = `k-input-prefix`;
5214
+ var defaultProps14 = {
5215
+ direction: "horizontal"
5216
+ };
5217
+ var InputPrefix = (props) => {
5218
+ const {
5219
+ direction = defaultProps14.direction,
5220
+ ...other
5221
+ } = props;
5222
+ if (!props.children) {
5223
+ return /* @__PURE__ */ jsx49(Fragment8, {});
5224
+ }
5225
+ return /* @__PURE__ */ jsx49(
5226
+ "span",
5227
+ {
5228
+ ...other,
5229
+ className: classNames(
5230
+ className15,
5231
+ props.className,
5232
+ {
5233
+ [`k-input-prefix-${direction}`]: direction
5234
+ }
5235
+ ),
5236
+ children: props.children
5237
+ }
5238
+ );
5239
+ };
5240
+
5241
+ // src/input/input-suffix.tsx
5242
+ import { Fragment as Fragment9, jsx as jsx50 } from "react/jsx-runtime";
5243
+ var className16 = `k-input-suffix`;
5244
+ var defaultProps15 = {
5245
+ direction: "horizontal"
5246
+ };
5247
+ var InputSuffix = (props) => {
5248
+ const {
5249
+ direction = defaultProps15.direction,
5250
+ ...other
5251
+ } = props;
5252
+ if (!props.children) {
5253
+ return /* @__PURE__ */ jsx50(Fragment9, {});
5254
+ }
5255
+ return /* @__PURE__ */ jsx50(
5256
+ "span",
5257
+ {
5258
+ ...other,
5259
+ className: classNames(
5260
+ className16,
5261
+ props.className,
5262
+ {
5263
+ [`k-input-suffix-${direction}`]: direction
5264
+ }
5265
+ ),
5266
+ children: props.children
5267
+ }
5268
+ );
5269
+ };
5270
+
5271
+ // src/input/input-prefix-text.tsx
5272
+ import { jsx as jsx51 } from "react/jsx-runtime";
5273
+
5274
+ // src/input/input-suffix-text.tsx
5275
+ import { jsx as jsx52 } from "react/jsx-runtime";
5276
+
5277
+ // src/input/input-separator.tsx
5278
+ import { jsx as jsx53 } from "react/jsx-runtime";
5279
+ var className17 = `k-input-separator`;
5280
+ var defaultProps16 = {
5281
+ direction: "vertical"
5282
+ };
5283
+ var InputSeparator = (props) => {
5284
+ const {
5285
+ direction = defaultProps16.direction,
5286
+ ...other
5287
+ } = props;
5288
+ return /* @__PURE__ */ jsx53(
5289
+ "span",
5290
+ {
5291
+ ...other,
5292
+ className: classNames(
5293
+ className17,
5294
+ props.className,
5295
+ {
5296
+ [`${className17}-${direction}`]: direction
5297
+ }
5298
+ )
5299
+ }
5300
+ );
5301
+ };
5302
+
5303
+ // src/animation-container/animation-container.spec.tsx
5304
+ import { jsx as jsx54 } from "react/jsx-runtime";
5305
+ var ANIMATION_CONTAINER_CLASSNAME = `k-animation-container`;
5306
+ var states19 = [];
5307
+ var options15 = {};
5308
+ var defaultProps17 = {
5309
+ positionMode: "absolute"
5310
+ };
5311
+ var AnimationContainer = (props) => {
5312
+ const {
5313
+ positionMode,
5314
+ animationStyle,
5315
+ offset,
5316
+ ...other
5317
+ } = props;
5318
+ return /* @__PURE__ */ jsx54(
5319
+ "div",
5320
+ {
5321
+ ...other,
5322
+ style: { ...offset, ...props.style },
5323
+ className: classNames(
5324
+ ANIMATION_CONTAINER_CLASSNAME,
5325
+ "k-animation-container-shown",
5326
+ {
5327
+ ["k-animation-container-fixed"]: positionMode === "fixed"
5328
+ }
5329
+ ),
5330
+ children: /* @__PURE__ */ jsx54("div", { className: "k-child-animation-container", style: animationStyle, children: props.children })
5331
+ }
5332
+ );
5333
+ };
5334
+ AnimationContainer.states = states19;
5335
+ AnimationContainer.options = options15;
5336
+ AnimationContainer.className = ANIMATION_CONTAINER_CLASSNAME;
5337
+ AnimationContainer.defaultProps = defaultProps17;
5338
+
5339
+ // src/popup/popup.spec.tsx
5340
+ import { jsx as jsx55 } from "react/jsx-runtime";
5341
+ var POPUP_CLASSNAME = `k-popup`;
5342
+ var states20 = [];
5343
+ var options16 = {};
5344
+ var defaultProps18 = {
5345
+ positionMode: "absolute"
5346
+ };
5347
+ var Popup = (props) => {
5348
+ const {
5349
+ offset,
5350
+ positionMode,
5351
+ ...other
5352
+ } = props;
5353
+ return /* @__PURE__ */ jsx55(
5354
+ AnimationContainer,
5355
+ {
5356
+ positionMode,
5357
+ offset,
5358
+ children: /* @__PURE__ */ jsx55("div", { ...other, className: classNames(props.className, POPUP_CLASSNAME), children: props.children })
5359
+ }
5360
+ );
5361
+ };
5362
+ Popup.states = states20;
5363
+ Popup.options = options16;
5364
+ Popup.className = POPUP_CLASSNAME;
5365
+ Popup.defaultProps = defaultProps18;
5366
+
5367
+ // src/dropdownlist/dropdownlist.spec.tsx
5368
+ import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs10 } from "react/jsx-runtime";
5369
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
5370
+ var states21 = [
5371
+ States.hover,
5372
+ States.focus,
5373
+ States.valid,
5374
+ States.invalid,
5375
+ States.required,
5376
+ States.disabled,
5377
+ States.loading,
5378
+ States.readonly
5379
+ ];
5380
+ var options17 = {
5381
+ size: [Size.small, Size.medium, Size.large],
5382
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5383
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5384
+ };
5385
+ var defaultProps19 = {
5386
+ showValue: true,
5387
+ arrowIconName: "caret-alt-down",
5388
+ size: Size.medium,
5389
+ rounded: Roundness.medium,
5390
+ fillMode: FillMode.solid
5391
+ };
5392
+ var DropdownList = (props) => {
5393
+ const {
5394
+ valueIconName,
5395
+ arrowIconName = defaultProps19.arrowIconName,
5396
+ prefix,
5397
+ suffix,
5398
+ value,
5399
+ placeholder,
5400
+ size,
5401
+ rounded,
5402
+ fillMode,
5403
+ hover,
5404
+ focus,
5405
+ valid,
5406
+ invalid,
5407
+ required,
5408
+ loading,
5409
+ disabled,
5410
+ readonly,
5411
+ showValue = defaultProps19.showValue,
5412
+ popup,
5413
+ opened,
5414
+ ...other
5415
+ } = props;
5416
+ return /* @__PURE__ */ jsxs10(Fragment10, { children: [
5417
+ /* @__PURE__ */ jsxs10(
5418
+ Picker,
5419
+ {
5420
+ ...other,
5421
+ size,
5422
+ rounded,
5423
+ fillMode,
5424
+ hover,
5425
+ focus,
5426
+ valid,
5427
+ invalid,
5428
+ required,
5429
+ loading,
5430
+ disabled,
5431
+ readonly,
5432
+ className: classNames(
5433
+ props.className,
5434
+ DROPDOWNLIST_CLASSNAME,
5435
+ {
5436
+ "k-icon-picker": !showValue && valueIconName
5437
+ }
5438
+ ),
5439
+ children: [
5440
+ /* @__PURE__ */ jsx56(InputPrefix, { children: prefix }),
5441
+ /* @__PURE__ */ jsx56(
5442
+ InputInnerSpan,
5443
+ {
5444
+ placeholder,
5445
+ value,
5446
+ showValue,
5447
+ valueIconName
5448
+ }
5449
+ ),
5450
+ /* @__PURE__ */ jsx56(
5451
+ InputValidationIcon,
5452
+ {
5453
+ valid,
5454
+ invalid,
5455
+ loading,
5456
+ disabled
5457
+ }
5458
+ ),
5459
+ /* @__PURE__ */ jsx56(
5460
+ InputLoadingIcon,
5461
+ {
5462
+ loading,
5463
+ disabled
5464
+ }
5465
+ ),
5466
+ /* @__PURE__ */ jsx56(InputSuffix, { children: suffix }),
5467
+ /* @__PURE__ */ jsx56(
5468
+ Button,
5469
+ {
5470
+ className: "k-input-button",
5471
+ icon: arrowIconName,
5472
+ rounded: null,
5473
+ size: props.size,
5474
+ fillMode: props.fillMode
5475
+ }
5476
+ )
5477
+ ]
5478
+ }
5479
+ ),
5480
+ opened && popup && /* @__PURE__ */ jsx56(Popup, { className: "k-list-container k-dropdownlist-popup", children: popup })
5481
+ ] });
5482
+ };
5483
+ DropdownList.states = states21;
5484
+ DropdownList.options = options17;
5485
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
5486
+ DropdownList.defaultProps = defaultProps19;
5487
+
5488
+ // src/dropdownlist/templates/dropdownlist-normal.tsx
5489
+ import { jsx as jsx57 } from "react/jsx-runtime";
5490
+
5491
+ // src/nodata/nodata.tsx
5492
+ import { jsx as jsx58 } from "react/jsx-runtime";
5493
+ var className18 = `k-nodata`;
5494
+ var NoData = (props) => /* @__PURE__ */ jsx58("span", { className: classNames(className18, props.className), children: props.children });
5495
+
5496
+ // src/list/list.spec.tsx
5497
+ import { jsx as jsx59, jsxs as jsxs11 } from "react/jsx-runtime";
5498
+ var LIST_CLASSNAME = `k-list`;
5499
+ var states22 = [];
5500
+ var options18 = {
5501
+ size: [Size.small, Size.medium, Size.large]
5502
+ };
5503
+ var defaultProps20 = {
5504
+ size: Size.medium
5505
+ };
5506
+ var List = (props) => {
5507
+ const {
5508
+ size = defaultProps20.size,
5509
+ virtualization,
5510
+ children,
5511
+ optionLabel,
5512
+ ...other
5513
+ } = props;
5514
+ let listHeader;
5515
+ let listGroup;
5516
+ let listContent;
5517
+ const listChildren = [];
5518
+ if (children) {
5519
+ children.map((child, index) => {
5520
+ if (child.type === ListGroup) {
5521
+ if (child.props.root === true) {
5522
+ listHeader = child.props.label;
5523
+ child.props.children.map((optChild, index2) => {
5524
+ listChildren.push(
5525
+ /* @__PURE__ */ jsx59(
5526
+ ListItem,
5527
+ {
5528
+ ...optChild.props
5529
+ },
5530
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5531
+ )
5532
+ );
5533
+ });
5534
+ } else {
5535
+ child.props.children.forEach((optChild, index2) => {
5536
+ let groupLabel = "";
5537
+ if (index2 === 0) {
5538
+ groupLabel = child.props.label;
5539
+ }
5540
+ listChildren.push(
5541
+ /* @__PURE__ */ jsx59(
5542
+ ListItem,
5543
+ {
5544
+ className: index2 === 0 ? "k-first" : "",
5545
+ ...optChild.props,
5546
+ groupLabel
5547
+ },
5548
+ `groupLabel-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5549
+ )
5550
+ );
5551
+ });
5552
+ }
5553
+ listGroup = /* @__PURE__ */ jsx59(ListGroup, { label: listHeader, virtualization, children: listChildren });
5554
+ } else if (child.type === ListItem) {
5555
+ listChildren.push(/* @__PURE__ */ jsx59(ListItem, { ...child.props }, `${child.type}-${index}`));
5556
+ listContent = /* @__PURE__ */ jsx59(ListContent, { virtualization, children: listChildren });
5557
+ }
5558
+ });
5559
+ } else {
5560
+ listContent = /* @__PURE__ */ jsx59(NoData, { children: "No data found." });
5561
+ }
5562
+ return /* @__PURE__ */ jsxs11(
5563
+ "div",
5564
+ {
5565
+ ...other,
5566
+ className: classNames(
5567
+ props.className,
5568
+ LIST_CLASSNAME,
5569
+ optionClassNames(LIST_CLASSNAME, {
5570
+ size
5571
+ }),
5572
+ {
5573
+ ["k-virtual-list"]: virtualization
5574
+ }
5575
+ ),
5576
+ children: [
5577
+ optionLabel,
5578
+ listGroup,
5579
+ listContent
5580
+ ]
5581
+ }
5582
+ );
5583
+ };
5584
+ List.states = states22;
5585
+ List.options = options18;
5586
+ List.className = LIST_CLASSNAME;
5587
+ List.defaultProps = defaultProps20;
5588
+
5589
+ // src/list/list-angular.spec.tsx
5590
+ import { jsx as jsx60, jsxs as jsxs12 } from "react/jsx-runtime";
5591
+ var LISTANGULAR_CLASSNAME = `k-list`;
5592
+ var states23 = [];
5593
+ var options19 = {
5594
+ size: [Size.small, Size.medium, Size.large]
5595
+ };
5596
+ var defaultProps21 = {
5597
+ size: Size.medium
5598
+ };
5599
+ var ListAngular = (props) => {
5600
+ const {
5601
+ size = defaultProps21.size,
5602
+ virtualization,
5603
+ children,
5604
+ ...other
5605
+ } = props;
5606
+ let listHeader;
5607
+ let listGroup;
5608
+ let listContent;
5609
+ const listChildren = [];
5610
+ if (children) {
5611
+ children.map((child, index) => {
5612
+ if (child.type === ListGroup) {
5613
+ if (child.props.root === true) {
5614
+ listHeader = child.props.label;
5615
+ child.props.children.map((optChild, index2) => {
5616
+ listChildren.push(
5617
+ /* @__PURE__ */ jsx60(
5618
+ ListItem,
5619
+ {
5620
+ ...optChild.props
5621
+ },
5622
+ `optChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5623
+ )
5624
+ );
5625
+ });
5626
+ } else {
5627
+ listChildren.push(
5628
+ /* @__PURE__ */ jsx60(
5629
+ ListGroupItem,
5630
+ {
5631
+ ...child.props,
5632
+ children: child.props.label
5633
+ },
5634
+ `listChild-${index}`
5635
+ )
5636
+ );
5637
+ child.props.children.map((optChild, index2) => {
5638
+ listChildren.push(
5639
+ /* @__PURE__ */ jsx60(
5640
+ ListItem,
5641
+ {
5642
+ ...optChild.props
5643
+ },
5644
+ `fwOptChild-${index2}-${(/* @__PURE__ */ new Date()).getTime()}`
5645
+ )
5646
+ );
5647
+ });
5648
+ }
5649
+ listGroup = /* @__PURE__ */ jsx60(ListGroup, { label: listHeader, virtualization, children: listChildren });
5650
+ } else if (child.type === ListItem) {
5651
+ listChildren.push(/* @__PURE__ */ jsx60(ListItem, { ...child.props }, `${child.type}-${index}`));
5652
+ listContent = /* @__PURE__ */ jsx60(ListContent, { virtualization, children: listChildren });
5653
+ }
5654
+ });
5655
+ } else {
5656
+ listContent = /* @__PURE__ */ jsx60(NoData, { children: "No data found." });
5657
+ }
5658
+ return /* @__PURE__ */ jsxs12(
5659
+ "div",
5660
+ {
5661
+ ...other,
5662
+ className: classNames(
5663
+ props.className,
5664
+ LISTANGULAR_CLASSNAME,
5665
+ optionClassNames(LISTANGULAR_CLASSNAME, {
5666
+ size
5667
+ }),
5668
+ {
5669
+ ["k-virtual-list"]: virtualization
5670
+ }
5671
+ ),
5672
+ children: [
5673
+ listGroup,
5674
+ listContent
5675
+ ]
5676
+ }
5677
+ );
5678
+ };
5679
+ ListAngular.states = states23;
5680
+ ListAngular.options = options19;
5681
+ ListAngular.className = LISTANGULAR_CLASSNAME;
5682
+ ListAngular.defaultProps = defaultProps21;
5683
+
5684
+ // src/checkbox/checkbox.spec.tsx
5685
+ import { jsx as jsx61 } from "react/jsx-runtime";
5686
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
5687
+ var states24 = [
5688
+ States.hover,
5689
+ States.focus,
5690
+ States.valid,
5691
+ States.invalid,
5692
+ States.required,
5693
+ States.disabled,
5694
+ States.checked,
5695
+ States.indeterminate
5696
+ ];
5697
+ var options20 = {
5698
+ size: [Size.small, Size.medium, Size.large],
5699
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
5700
+ };
5701
+ var defaultProps22 = {
5702
+ size: Size.medium,
5703
+ rounded: Roundness.medium
5704
+ };
5705
+ var Checkbox = (props) => {
5706
+ const {
5707
+ id,
5708
+ checked,
5709
+ indeterminate,
5710
+ hover,
5711
+ focus,
5712
+ disabled,
5713
+ invalid,
5714
+ valid,
5715
+ required,
5716
+ size = defaultProps22.size,
5717
+ rounded = defaultProps22.rounded,
5718
+ ...other
5719
+ } = props;
5720
+ return /* @__PURE__ */ jsx61("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ jsx61(
5721
+ "input",
5722
+ {
5723
+ ...other,
5724
+ id,
5725
+ type: "checkbox",
5726
+ checked,
5727
+ required,
5728
+ className: classNames(
5729
+ props.className,
5730
+ CHECKBOX_CLASSNAME,
5731
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
5732
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
5733
+ )
5734
+ }
5735
+ ) });
5736
+ };
5737
+ Checkbox.states = states24;
5738
+ Checkbox.options = options20;
5739
+ Checkbox.className = CHECKBOX_CLASSNAME;
5740
+ Checkbox.defaultProps = defaultProps22;
5741
+
5742
+ // src/checkbox/checkbox-group.spec.tsx
5743
+ import { jsx as jsx62 } from "react/jsx-runtime";
5744
+ var CHECKBOXGROUP_CLASSNAME = `k-checkbox-list`;
5745
+ var states25 = [];
5746
+ var options21 = {};
5747
+ var defaultProps23 = {
5748
+ layout: "vertical"
5749
+ };
5750
+ var CheckboxGroup = (props) => {
5751
+ const {
5752
+ layout = defaultProps23.layout,
5753
+ ...other
5754
+ } = props;
5755
+ return /* @__PURE__ */ jsx62(
5756
+ "ul",
5757
+ {
5758
+ ...other,
5759
+ className: classNames(
5760
+ props.className,
5761
+ CHECKBOXGROUP_CLASSNAME,
5762
+ {
5763
+ [`k-list-${layout}`]: layout
5764
+ }
5765
+ ),
5766
+ children: props.children
5767
+ }
5768
+ );
5769
+ };
5770
+ CheckboxGroup.states = states25;
5771
+ CheckboxGroup.options = options21;
5772
+ CheckboxGroup.className = CHECKBOXGROUP_CLASSNAME;
5773
+ CheckboxGroup.defaultProps = defaultProps23;
5774
+
5775
+ // src/checkbox/checkbox-item.spec.tsx
5776
+ import { jsx as jsx63 } from "react/jsx-runtime";
5777
+ var CHECKBOXITEM_CLASSNAME = `k-checkbox-list-item`;
5778
+ var states26 = [];
5779
+ var options22 = {};
5780
+ var defaultProps24 = {};
5781
+ var CheckboxItem = (props) => {
5782
+ const {
5783
+ ...other
5784
+ } = props;
5785
+ return /* @__PURE__ */ jsx63(
5786
+ "li",
5787
+ {
5788
+ ...other,
5789
+ className: classNames(
5790
+ props.className,
5791
+ CHECKBOXITEM_CLASSNAME
5792
+ ),
5793
+ children: props.children
5794
+ }
5795
+ );
5796
+ };
5797
+ CheckboxItem.states = states26;
5798
+ CheckboxItem.options = options22;
5799
+ CheckboxItem.className = CHECKBOXITEM_CLASSNAME;
5800
+ CheckboxItem.defaultProps = defaultProps24;
5801
+
5802
+ // src/checkbox/templates/checkbox-with-label-after.tsx
5803
+ import { Fragment as Fragment11, jsx as jsx64, jsxs as jsxs13 } from "react/jsx-runtime";
5804
+
5805
+ // src/checkbox/templates/checkbox-with-label-before.tsx
5806
+ import { Fragment as Fragment12, jsx as jsx65, jsxs as jsxs14 } from "react/jsx-runtime";
5807
+
5808
+ // src/checkbox/templates/checkbox-normal.tsx
5809
+ import { jsx as jsx66 } from "react/jsx-runtime";
5810
+
5811
+ // src/list/list-item.spec.tsx
5812
+ import { jsx as jsx67, jsxs as jsxs15 } from "react/jsx-runtime";
5813
+ var LISTITEM_CLASSNAME = `k-list-item`;
5814
+ var states27 = [
5815
+ States.hover,
5816
+ States.focus,
5817
+ States.selected,
5818
+ States.disabled
5819
+ ];
5820
+ var options23 = {};
5821
+ var defaultProps25 = {};
5822
+ var ListItem = (props) => {
5823
+ const {
5824
+ text,
5825
+ groupLabel,
5826
+ showIcon,
5827
+ iconName,
5828
+ showCheckbox,
5829
+ checked,
5830
+ hover,
5831
+ focus,
5832
+ selected,
5833
+ disabled,
5834
+ ...other
5835
+ } = props;
5836
+ const textOrChildren = text ? text : props.children;
5837
+ return /* @__PURE__ */ jsxs15(
5838
+ "li",
5839
+ {
5840
+ ...other,
5841
+ className: classNames(
5842
+ props.className,
5843
+ LISTITEM_CLASSNAME,
5844
+ stateClassNames(LISTITEM_CLASSNAME, {
5845
+ hover,
5846
+ focus,
5847
+ disabled,
5848
+ selected
5849
+ })
5850
+ ),
5851
+ children: [
5852
+ showCheckbox && /* @__PURE__ */ jsx67(Checkbox, { checked }),
5853
+ showIcon && /* @__PURE__ */ jsx67(Icon, { icon: iconName }),
5854
+ /* @__PURE__ */ jsx67("span", { className: "k-list-item-text", children: textOrChildren }),
5855
+ groupLabel && groupLabel !== "" && /* @__PURE__ */ jsx67("div", { className: "k-list-item-group-label", children: groupLabel })
5856
+ ]
5857
+ }
5858
+ );
5859
+ };
5860
+ ListItem.states = states27;
5861
+ ListItem.options = options23;
5862
+ ListItem.className = LISTITEM_CLASSNAME;
5863
+ ListItem.defaultProps = defaultProps25;
5864
+
5865
+ // src/list/list-content.tsx
5866
+ import { jsx as jsx68, jsxs as jsxs16 } from "react/jsx-runtime";
5867
+ var className19 = `k-list-content`;
5868
+ var ListContent = (props) => {
5869
+ const {
5870
+ virtualization
5871
+ } = props;
5872
+ return /* @__PURE__ */ jsxs16("div", { className: classNames(className19, props.className), children: [
5873
+ /* @__PURE__ */ jsx68("ul", { className: classNames("k-list-ul"), children: props.children }),
5874
+ virtualization && /* @__PURE__ */ jsx68("div", { className: "k-height-container", children: /* @__PURE__ */ jsx68("div", {}) })
5875
+ ] });
5876
+ };
5877
+
5878
+ // src/list/list-header.tsx
5879
+ import { jsx as jsx69 } from "react/jsx-runtime";
5880
+ var className20 = `k-list-group-sticky-header`;
5881
+ var ListHeader = (props) => /* @__PURE__ */ jsx69("div", { className: classNames(className20, props.className), children: /* @__PURE__ */ jsx69("div", { className: "k-list-header-text", children: props.children }) });
5882
+
5883
+ // src/list/list-group.tsx
5884
+ import { Fragment as Fragment13, jsx as jsx70, jsxs as jsxs17 } from "react/jsx-runtime";
5885
+ var ListGroup = (props) => {
5886
+ const {
5887
+ virtualization,
5888
+ label
5889
+ } = props;
5890
+ return /* @__PURE__ */ jsxs17(Fragment13, { children: [
5891
+ label && /* @__PURE__ */ jsx70(ListHeader, { children: label }),
5892
+ props.children && /* @__PURE__ */ jsx70(ListContent, { virtualization, children: props.children })
5893
+ ] });
5894
+ };
5895
+
5896
+ // src/list/list-group-item.tsx
5897
+ import { jsx as jsx71 } from "react/jsx-runtime";
5898
+ var className21 = `k-list-group-item`;
5899
+ var ListGroupItem = (props) => /* @__PURE__ */ jsx71("li", { className: classNames(className21, props.className), children: /* @__PURE__ */ jsx71("span", { className: "k-list-item-text", children: props.children }) });
5900
+
5901
+ // src/list/list-option-label.tsx
5902
+ import { jsx as jsx72 } from "react/jsx-runtime";
5903
+ var LIST_OPTIONLABEL_CLASSNAME = `k-list-optionlabel`;
5904
+ var states28 = [
5905
+ States.hover,
5906
+ States.focus,
5907
+ States.selected,
5908
+ States.disabled
5909
+ ];
5910
+ var options24 = {};
5911
+ var defaultProps26 = {};
5912
+ var ListOptionLabel = (props) => {
5913
+ const {
5914
+ text,
5915
+ hover,
5916
+ focus,
5917
+ selected,
5918
+ disabled,
5919
+ ...other
5920
+ } = props;
5921
+ return /* @__PURE__ */ jsx72(
5922
+ "div",
5923
+ {
5924
+ ...other,
5925
+ className: classNames(
5926
+ LIST_OPTIONLABEL_CLASSNAME,
5927
+ stateClassNames(LIST_OPTIONLABEL_CLASSNAME, {
5928
+ hover,
5929
+ focus,
5930
+ selected,
5931
+ disabled
5932
+ })
5933
+ ),
5934
+ children: text
5935
+ }
5936
+ );
5937
+ };
5938
+ ListOptionLabel.states = states28;
5939
+ ListOptionLabel.options = options24;
5940
+ ListOptionLabel.className = LIST_OPTIONLABEL_CLASSNAME;
5941
+ ListOptionLabel.defaultProps = defaultProps26;
5942
+
5943
+ // src/list/templates/list-normal.tsx
5944
+ import { jsx as jsx73 } from "react/jsx-runtime";
5945
+
5946
+ // src/list/templates/list-virtualization.tsx
5947
+ import { jsx as jsx74 } from "react/jsx-runtime";
5948
+
5949
+ // src/list/templates/list-grouping.tsx
5950
+ import { jsx as jsx75, jsxs as jsxs18 } from "react/jsx-runtime";
5951
+
5952
+ // src/list/templates/list-virualization-grouping.tsx
5953
+ import { jsx as jsx76, jsxs as jsxs19 } from "react/jsx-runtime";
5954
+
5955
+ // src/list/templates/list-virtualization-angular.tsx
5956
+ import { jsx as jsx77 } from "react/jsx-runtime";
5957
+
5958
+ // src/list/templates/list-grouping-angular.tsx
5959
+ import { jsx as jsx78, jsxs as jsxs20 } from "react/jsx-runtime";
5960
+
5961
+ // src/list/templates/list-virualization-grouping-angular.tsx
5962
+ import { jsx as jsx79, jsxs as jsxs21 } from "react/jsx-runtime";
5963
+
5964
+ // src/dropdownlist/templates/dropdownlist-popup.tsx
5965
+ import { jsx as jsx80, jsxs as jsxs22 } from "react/jsx-runtime";
5966
+
5967
+ // src/searchbox/searchbox.spec.tsx
5968
+ import { jsx as jsx81, jsxs as jsxs23 } from "react/jsx-runtime";
5969
+ var SEARCHBOX_CLASSNAME = `k-searchbox`;
5970
+ var states29 = [
5971
+ States.hover,
5972
+ States.focus,
5973
+ States.valid,
5974
+ States.invalid,
5975
+ States.required,
5976
+ States.disabled,
5977
+ States.loading
5978
+ ];
5979
+ var options25 = {
5980
+ size: [Size.small, Size.medium, Size.large],
5981
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
5982
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
5983
+ };
5984
+ var defaultProps27 = {
5985
+ showIcon: true,
5986
+ icon: "search",
5987
+ size: Input.defaultProps.size,
5988
+ rounded: Input.defaultProps.rounded,
5989
+ fillMode: Input.defaultProps.fillMode
5990
+ };
5991
+ var Searchbox = (props) => {
5992
+ const {
5993
+ value,
5994
+ placeholder,
5995
+ size,
5996
+ rounded,
5997
+ fillMode,
5998
+ hover,
5999
+ focus,
6000
+ valid,
6001
+ invalid,
6002
+ required,
6003
+ loading,
6004
+ disabled,
6005
+ showIcon = defaultProps27.showIcon,
6006
+ icon = defaultProps27.icon,
6007
+ ...other
6008
+ } = props;
6009
+ return /* @__PURE__ */ jsxs23(
6010
+ Input,
6011
+ {
6012
+ ...other,
6013
+ size,
6014
+ rounded,
6015
+ fillMode,
6016
+ hover,
6017
+ focus,
6018
+ valid,
6019
+ invalid,
6020
+ required,
6021
+ loading,
6022
+ disabled,
6023
+ className: classNames(props.className, SEARCHBOX_CLASSNAME),
6024
+ children: [
6025
+ showIcon && /* @__PURE__ */ jsx81(Icon, { className: "k-input-icon", icon }),
6026
+ /* @__PURE__ */ jsx81(InputInnerInput, { placeholder, value }),
6027
+ /* @__PURE__ */ jsx81(InputLoadingIcon, { ...props }),
6028
+ /* @__PURE__ */ jsx81(InputValidationIcon, { ...props }),
6029
+ /* @__PURE__ */ jsx81(InputClearValue, { ...props })
6030
+ ]
6031
+ }
6032
+ );
6033
+ };
6034
+ Searchbox.states = states29;
6035
+ Searchbox.options = options25;
6036
+ Searchbox.className = SEARCHBOX_CLASSNAME;
6037
+ Searchbox.defaultProps = defaultProps27;
6038
+
6039
+ // src/searchbox/templates/searchbox-normal.tsx
6040
+ import { jsx as jsx82 } from "react/jsx-runtime";
6041
+
6042
+ // src/dropdownlist/templates/dropdownlist-filtering.tsx
6043
+ import { Fragment as Fragment14, jsx as jsx83, jsxs as jsxs24 } from "react/jsx-runtime";
6044
+
6045
+ // src/dropdownlist/templates/dropdownlist-grouping.tsx
6046
+ import { jsx as jsx84, jsxs as jsxs25 } from "react/jsx-runtime";
6047
+
6048
+ // src/dropdownlist/templates/dropdownlist-grouping-filtering.tsx
6049
+ import { Fragment as Fragment15, jsx as jsx85, jsxs as jsxs26 } from "react/jsx-runtime";
6050
+
6051
+ // src/spinbutton/spinbutton.spec.tsx
6052
+ import { jsx as jsx86, jsxs as jsxs27 } from "react/jsx-runtime";
6053
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
6054
+ var states30 = [];
6055
+ var options26 = {
6056
+ size: [Size.small, Size.medium, Size.large],
6057
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
6058
+ };
6059
+ var defaultProps28 = {
6060
+ size: Size.medium,
6061
+ fillMode: FillMode.solid
6062
+ };
6063
+ var SpinButton = (props) => {
6064
+ const {
6065
+ size = defaultProps28.size,
6066
+ fillMode = defaultProps28.fillMode,
6067
+ ...other
6068
+ } = props;
6069
+ return /* @__PURE__ */ jsxs27(
6070
+ "span",
6071
+ {
6072
+ ...other,
6073
+ className: classNames(
6074
+ SPINBUTTON_CLASSNAME,
6075
+ props.className
6076
+ ),
6077
+ children: [
6078
+ /* @__PURE__ */ jsx86(
6079
+ Button,
6080
+ {
6081
+ className: "k-spinner-increase",
6082
+ icon: "caret-alt-up",
6083
+ rounded: null,
6084
+ size,
6085
+ fillMode
6086
+ }
6087
+ ),
6088
+ /* @__PURE__ */ jsx86(
6089
+ Button,
6090
+ {
6091
+ className: "k-spinner-decrease",
6092
+ icon: "caret-alt-down",
6093
+ rounded: null,
6094
+ size,
6095
+ fillMode
6096
+ }
6097
+ )
6098
+ ]
6099
+ }
6100
+ );
6101
+ };
6102
+ SpinButton.states = states30;
6103
+ SpinButton.options = options26;
6104
+ SpinButton.className = SPINBUTTON_CLASSNAME;
6105
+ SpinButton.defaultProps = defaultProps28;
6106
+
6107
+ // src/numerictextbox/numerictextbox.spec.tsx
6108
+ import { Fragment as Fragment16, jsx as jsx87, jsxs as jsxs28 } from "react/jsx-runtime";
6109
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
6110
+ var states31 = [
6111
+ States.hover,
6112
+ States.focus,
6113
+ States.valid,
6114
+ States.invalid,
6115
+ States.loading,
6116
+ States.required,
6117
+ States.disabled,
6118
+ States.readonly
6119
+ ];
6120
+ var options27 = {
6121
+ size: [Size.small, Size.medium, Size.large],
6122
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6123
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6124
+ };
6125
+ var defaultProps29 = {
6126
+ showSpinButton: true,
6127
+ showClearButton: true,
6128
+ size: Input.defaultProps.size,
6129
+ rounded: Input.defaultProps.rounded,
6130
+ fillMode: Input.defaultProps.fillMode
6131
+ };
6132
+ var NumericTextbox = (props) => {
6133
+ const {
6134
+ prefix,
6135
+ suffix,
6136
+ value,
6137
+ placeholder,
6138
+ size,
6139
+ rounded,
6140
+ fillMode,
6141
+ hover,
6142
+ focus,
6143
+ valid,
6144
+ invalid,
6145
+ required,
6146
+ loading,
6147
+ disabled,
6148
+ readonly,
6149
+ showClearButton = defaultProps29.showClearButton,
6150
+ showSpinButton = defaultProps29.showSpinButton,
6151
+ ...other
6152
+ } = props;
6153
+ return /* @__PURE__ */ jsxs28(
6154
+ Input,
6155
+ {
6156
+ ...other,
6157
+ size,
6158
+ rounded,
6159
+ fillMode,
6160
+ hover,
6161
+ focus,
6162
+ valid,
6163
+ invalid,
6164
+ required,
6165
+ loading,
6166
+ disabled,
6167
+ readonly,
6168
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
6169
+ children: [
6170
+ prefix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
6171
+ /* @__PURE__ */ jsx87(InputPrefix, { children: prefix }),
6172
+ /* @__PURE__ */ jsx87(InputSeparator, {})
6173
+ ] }),
6174
+ /* @__PURE__ */ jsx87(InputInnerInput, { placeholder, value }),
6175
+ /* @__PURE__ */ jsx87(
6176
+ InputValidationIcon,
6177
+ {
6178
+ valid,
6179
+ invalid,
6180
+ loading,
6181
+ disabled
6182
+ }
6183
+ ),
6184
+ /* @__PURE__ */ jsx87(
6185
+ InputLoadingIcon,
6186
+ {
6187
+ loading,
6188
+ disabled
6189
+ }
6190
+ ),
6191
+ showClearButton && /* @__PURE__ */ jsx87(
6192
+ InputClearValue,
6193
+ {
6194
+ loading,
6195
+ disabled,
6196
+ readonly,
6197
+ value
6198
+ }
6199
+ ),
6200
+ suffix && /* @__PURE__ */ jsxs28(Fragment16, { children: [
6201
+ /* @__PURE__ */ jsx87(InputSeparator, {}),
6202
+ /* @__PURE__ */ jsx87(InputSuffix, { children: suffix })
6203
+ ] }),
6204
+ showSpinButton && /* @__PURE__ */ jsx87(
6205
+ SpinButton,
6206
+ {
6207
+ className: "k-input-spinner",
6208
+ size,
6209
+ fillMode
6210
+ }
6211
+ )
6212
+ ]
6213
+ }
6214
+ );
6215
+ };
6216
+ NumericTextbox.states = states31;
6217
+ NumericTextbox.options = options27;
6218
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
6219
+ NumericTextbox.defaultProps = defaultProps29;
6220
+
6221
+ // src/numerictextbox/templates/numerictextbox-normal.tsx
6222
+ import { jsx as jsx88 } from "react/jsx-runtime";
6223
+
6224
+ // src/numerictextbox/templates/numerictextbox-prefix.tsx
6225
+ import { Fragment as Fragment17, jsx as jsx89 } from "react/jsx-runtime";
6226
+
6227
+ // src/numerictextbox/templates/numerictextbox-suffix.tsx
6228
+ import { Fragment as Fragment18, jsx as jsx90 } from "react/jsx-runtime";
6229
+
6230
+ // src/pager/pager.spec.tsx
6231
+ import { jsx as jsx91, jsxs as jsxs29 } from "react/jsx-runtime";
6232
+ var PAGER_CLASSNAME = `k-pager`;
6233
+ var states32 = [
6234
+ States.focus,
6235
+ States.disabled
6236
+ ];
6237
+ var options28 = {
6238
+ size: [Size.small, Size.medium, Size.large]
6239
+ };
6240
+ var defaultProps30 = {
6241
+ size: Size.medium,
6242
+ adaptive: false,
6243
+ itemsPerPage: true,
6244
+ type: "numeric",
6245
+ pageSizes: true,
6246
+ refresh: true,
6247
+ info: true
6248
+ };
6249
+ var Pager = (props) => {
6250
+ const {
6251
+ size = defaultProps30.size,
6252
+ adaptive = defaultProps30.adaptive,
6253
+ itemsPerPage = defaultProps30.itemsPerPage,
6254
+ type = defaultProps30.type,
6255
+ pageSizes = defaultProps30.pageSizes,
6256
+ refresh = defaultProps30.refresh,
6257
+ info = defaultProps30.info,
6258
+ focus,
6259
+ disabled,
6260
+ dir,
6261
+ ...other
6262
+ } = props;
6263
+ return /* @__PURE__ */ jsxs29(
6264
+ "div",
6265
+ {
6266
+ dir,
6267
+ ...other,
6268
+ className: classNames(
6269
+ props.className,
6270
+ PAGER_CLASSNAME,
6271
+ optionClassNames(PAGER_CLASSNAME, {
6272
+ size
6273
+ }),
6274
+ stateClassNames(PAGER_CLASSNAME, {
6275
+ focus,
6276
+ disabled
6277
+ })
6278
+ ),
6279
+ children: [
6280
+ /* @__PURE__ */ jsxs29(
6281
+ "div",
6282
+ {
6283
+ className: classNames(
6284
+ "k-pager-numbers-wrap"
6285
+ ),
6286
+ children: [
6287
+ /* @__PURE__ */ jsx91(
6288
+ Button,
6289
+ {
6290
+ className: classNames(
6291
+ "k-pager-nav",
6292
+ "k-pager-first"
6293
+ ),
6294
+ disabled: true,
6295
+ fillMode: "flat",
6296
+ size,
6297
+ rounded: null,
6298
+ icon: dir === "rtl" ? "caret-alt-to-right" : "caret-alt-to-left"
6299
+ }
6300
+ ),
6301
+ /* @__PURE__ */ jsx91(
6302
+ Button,
6303
+ {
6304
+ className: classNames(
6305
+ "k-pager-nav"
6306
+ ),
6307
+ disabled: true,
6308
+ fillMode: "flat",
6309
+ size,
6310
+ rounded: null,
6311
+ icon: dir === "rtl" ? "caret-alt-right" : "caret-alt-left"
6312
+ }
6313
+ ),
6314
+ type === "numeric" && !adaptive && /* @__PURE__ */ jsxs29(
6315
+ "div",
6316
+ {
6317
+ className: classNames(
6318
+ "k-pager-numbers"
6319
+ ),
6320
+ children: [
6321
+ /* @__PURE__ */ jsx91(
6322
+ Button,
6323
+ {
6324
+ selected: true,
6325
+ fillMode: "flat",
6326
+ themeColor: "primary",
6327
+ size,
6328
+ rounded: null,
6329
+ children: "1"
6330
+ }
6331
+ ),
6332
+ /* @__PURE__ */ jsx91(
6333
+ Button,
6334
+ {
6335
+ fillMode: "flat",
6336
+ themeColor: "primary",
6337
+ size,
6338
+ rounded: null,
6339
+ children: "2"
6340
+ }
6341
+ ),
6342
+ /* @__PURE__ */ jsx91(
6343
+ Button,
6344
+ {
6345
+ fillMode: "flat",
6346
+ themeColor: "primary",
6347
+ size,
6348
+ rounded: null,
6349
+ children: "3"
6350
+ }
6351
+ ),
6352
+ /* @__PURE__ */ jsx91(
6353
+ Button,
6354
+ {
6355
+ fillMode: "flat",
6356
+ themeColor: "primary",
6357
+ size,
6358
+ rounded: null,
6359
+ children: "4"
6360
+ }
6361
+ ),
6362
+ /* @__PURE__ */ jsx91(
6363
+ Button,
6364
+ {
6365
+ fillMode: "flat",
6366
+ themeColor: "primary",
6367
+ size,
6368
+ rounded: null,
6369
+ children: "5"
6370
+ }
6371
+ ),
6372
+ /* @__PURE__ */ jsx91(
6373
+ Button,
6374
+ {
6375
+ fillMode: "flat",
6376
+ themeColor: "primary",
6377
+ size,
6378
+ rounded: null,
6379
+ children: "6"
6380
+ }
6381
+ )
6382
+ ]
6383
+ }
6384
+ ),
6385
+ type === "numeric" && /* @__PURE__ */ jsx91(
6386
+ "select",
6387
+ {
6388
+ className: classNames(
6389
+ "k-picker",
6390
+ "k-picker-solid",
6391
+ "k-dropdown-list",
6392
+ "k-dropdown",
6393
+ "k-rounded-md",
6394
+ optionClassNames("k-picker", {
6395
+ size
6396
+ }),
6397
+ {
6398
+ ["k-hidden"]: !adaptive
6399
+ }
6400
+ ),
6401
+ children: /* @__PURE__ */ jsx91("option", { children: "99" })
6402
+ }
6403
+ ),
6404
+ type === "input" && /* @__PURE__ */ jsxs29(
6405
+ "span",
6406
+ {
6407
+ className: classNames(
6408
+ "k-pager-input"
6409
+ ),
6410
+ children: [
6411
+ !adaptive && /* @__PURE__ */ jsx91("span", { children: "Page" }),
6412
+ /* @__PURE__ */ jsx91(NumericTextbox, { value: "999", size, showSpinButton: false, showClearButton: false }),
6413
+ !adaptive && /* @__PURE__ */ jsx91("span", { children: "of 8" })
6414
+ ]
6415
+ }
6416
+ ),
6417
+ /* @__PURE__ */ jsx91(
6418
+ Button,
6419
+ {
6420
+ className: classNames(
6421
+ "k-pager-nav"
6422
+ ),
6423
+ fillMode: "flat",
6424
+ size,
6425
+ rounded: null,
6426
+ icon: dir === "rtl" ? "caret-alt-left" : "caret-alt-right"
6427
+ }
6428
+ ),
6429
+ /* @__PURE__ */ jsx91(
6430
+ Button,
6431
+ {
6432
+ className: classNames(
6433
+ "k-pager-nav",
6434
+ "k-pager-last"
6435
+ ),
6436
+ fillMode: "flat",
6437
+ size,
6438
+ rounded: null,
6439
+ icon: dir === "rtl" ? "caret-alt-to-left" : "caret-alt-to-right"
6440
+ }
6441
+ )
6442
+ ]
6443
+ }
6444
+ ),
6445
+ pageSizes && /* @__PURE__ */ jsxs29(
6446
+ "span",
6447
+ {
6448
+ className: classNames(
6449
+ "k-pager-sizes"
6450
+ ),
6451
+ children: [
6452
+ /* @__PURE__ */ jsx91(DropdownList, { value: "99", size }),
6453
+ itemsPerPage && /* @__PURE__ */ jsx91("span", { children: "items per page" })
6454
+ ]
6455
+ }
6456
+ ),
6457
+ refresh && /* @__PURE__ */ jsx91(
6458
+ Button,
6459
+ {
6460
+ className: classNames(
6461
+ "k-pager-refresh"
6462
+ ),
6463
+ fillMode: "flat",
6464
+ size,
6465
+ rounded: null,
6466
+ icon: "arrow-rotate-cw"
6467
+ }
6468
+ ),
6469
+ info && /* @__PURE__ */ jsx91(
6470
+ "span",
6471
+ {
6472
+ className: classNames(
6473
+ "k-pager-info"
6474
+ ),
6475
+ children: "1 - 20 of 91 items"
6476
+ }
6477
+ )
6478
+ ]
6479
+ }
6480
+ );
6481
+ };
6482
+ Pager.states = states32;
6483
+ Pager.options = options28;
6484
+ Pager.className = PAGER_CLASSNAME;
6485
+ Pager.defaultProps = defaultProps30;
6486
+
6487
+ // src/pager/templates/pager-normal.tsx
6488
+ import { jsx as jsx92 } from "react/jsx-runtime";
6489
+
6490
+ // src/pager/templates/pager-input.tsx
6491
+ import { jsx as jsx93 } from "react/jsx-runtime";
6492
+
6493
+ // src/pager/templates/pager-adaptive.tsx
6494
+ import { jsx as jsx94 } from "react/jsx-runtime";
6495
+
6496
+ // src/pager/templates/pager-adaptive-input.tsx
6497
+ import { jsx as jsx95 } from "react/jsx-runtime";
6498
+
6499
+ // src/grid/grid-pager.spec.tsx
6500
+ import { jsx as jsx96 } from "react/jsx-runtime";
6501
+
6502
+ // src/button-group/button-group.spec.tsx
6503
+ import { jsx as jsx97 } from "react/jsx-runtime";
6504
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
6505
+ var states33 = [
6506
+ States.disabled
6507
+ ];
6508
+ var options29 = {
6509
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
6510
+ };
6511
+ var defaultProps31 = {
6512
+ fillMode: FillMode.solid
6513
+ };
6514
+ var ButtonGroup = (props) => {
6515
+ const {
6516
+ fillMode = defaultProps31.fillMode,
6517
+ disabled,
6518
+ stretched,
6519
+ ...other
6520
+ } = props;
6521
+ return /* @__PURE__ */ jsx97(
6522
+ "div",
6523
+ {
6524
+ ...other,
6525
+ className: classNames(
6526
+ props.className,
6527
+ BUTTONGROUP_CLASSNAME,
6528
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
6529
+ fillMode
6530
+ }),
6531
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
6532
+ disabled
6533
+ }),
6534
+ {
6535
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
6536
+ }
6537
+ ),
6538
+ children: props.children
6539
+ }
6540
+ );
6541
+ };
6542
+ ButtonGroup.states = states33;
6543
+ ButtonGroup.options = options29;
6544
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
6545
+ ButtonGroup.defaultProps = defaultProps31;
6546
+
6547
+ // src/button-group/templates/icon-button-group.tsx
6548
+ import { jsx as jsx98, jsxs as jsxs30 } from "react/jsx-runtime";
6549
+
6550
+ // src/button-group/templates/icon-text-button-group.tsx
6551
+ import { jsx as jsx99, jsxs as jsxs31 } from "react/jsx-runtime";
6552
+
6553
+ // src/button-group/templates/text-button-group.tsx
6554
+ import { jsx as jsx100, jsxs as jsxs32 } from "react/jsx-runtime";
6555
+
6556
+ // src/button-group/templates/mixed-button-group.tsx
6557
+ import { jsx as jsx101, jsxs as jsxs33 } from "react/jsx-runtime";
6558
+
6559
+ // src/color-preview/color-preview.tsx
6560
+ import { jsx as jsx102, jsxs as jsxs34 } from "react/jsx-runtime";
6561
+ var COLORPREVIEW_CLASSNAME = `k-color-preview`;
6562
+ var states34 = [];
6563
+ var options30 = {};
6564
+ var ColorPreview = (props) => {
6565
+ const {
6566
+ color,
6567
+ iconName,
6568
+ ...other
6569
+ } = props;
6570
+ return /* @__PURE__ */ jsxs34(
6571
+ "span",
6572
+ {
6573
+ ...other,
6574
+ className: classNames(
6575
+ props.className,
6576
+ COLORPREVIEW_CLASSNAME,
6577
+ {
6578
+ "k-icon-color-preview": iconName,
6579
+ "k-no-color": !color
6580
+ }
6581
+ ),
6582
+ children: [
6583
+ iconName && /* @__PURE__ */ jsx102(Icon, { icon: iconName, className: "k-color-preview-icon" }),
6584
+ /* @__PURE__ */ jsx102(
6585
+ "span",
6586
+ {
6587
+ className: "k-color-preview-mask",
6588
+ style: { backgroundColor: color }
6589
+ }
6590
+ )
6591
+ ]
6592
+ }
6593
+ );
6594
+ };
6595
+ ColorPreview.states = states34;
6596
+ ColorPreview.options = options30;
6597
+ ColorPreview.className = COLORPREVIEW_CLASSNAME;
6598
+
6599
+ // src/colorpicker/colorpicker.spec.tsx
6600
+ import { Fragment as Fragment19, jsx as jsx103, jsxs as jsxs35 } from "react/jsx-runtime";
6601
+ var COLORPICKER_CLASSNAME = `k-colorpicker`;
6602
+ var states35 = [
6603
+ States.hover,
6604
+ States.focus,
6605
+ States.valid,
6606
+ States.invalid,
6607
+ States.required,
6608
+ States.disabled
6609
+ ];
6610
+ var options31 = {
6611
+ size: [Size.small, Size.medium, Size.large],
6612
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6613
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6614
+ };
6615
+ var defaultProps32 = {
6616
+ arrowIconName: "caret-alt-down",
6617
+ size: Picker.defaultProps.size,
6618
+ rounded: Picker.defaultProps.rounded,
6619
+ fillMode: Picker.defaultProps.fillMode
6620
+ };
6621
+ var ColorPicker = (props) => {
6622
+ const {
6623
+ prefix,
6624
+ suffix,
6625
+ value,
6626
+ placeholder,
6627
+ size,
6628
+ rounded,
6629
+ fillMode,
6630
+ hover,
6631
+ focus,
6632
+ valid,
6633
+ invalid,
6634
+ required,
6635
+ disabled,
6636
+ valueIconName,
6637
+ arrowIconName = defaultProps32.arrowIconName,
6638
+ popup,
6639
+ opened,
6640
+ ...other
6641
+ } = props;
6642
+ return /* @__PURE__ */ jsxs35(Fragment19, { children: [
6643
+ /* @__PURE__ */ jsxs35(
6644
+ Picker,
6645
+ {
6646
+ ...other,
6647
+ size,
6648
+ rounded,
6649
+ fillMode,
6650
+ hover,
6651
+ focus,
6652
+ valid,
6653
+ invalid,
6654
+ required,
6655
+ disabled,
6656
+ className: classNames(
6657
+ props.className,
6658
+ COLORPICKER_CLASSNAME,
6659
+ "k-icon-picker"
6660
+ ),
6661
+ children: [
6662
+ /* @__PURE__ */ jsx103(InputPrefix, { children: prefix }),
6663
+ /* @__PURE__ */ jsx103(
6664
+ InputInnerSpan,
6665
+ {
6666
+ placeholder,
6667
+ value,
6668
+ showValue: false,
6669
+ valueIcon: /* @__PURE__ */ jsx103(
6670
+ ColorPreview,
6671
+ {
6672
+ className: "k-value-icon",
6673
+ color: value,
6674
+ iconName: valueIconName
6675
+ }
6676
+ ),
6677
+ valueIconName
6678
+ }
6679
+ ),
6680
+ /* @__PURE__ */ jsx103(InputSuffix, { children: suffix }),
6681
+ /* @__PURE__ */ jsx103(
6682
+ Button,
6683
+ {
6684
+ className: "k-input-button",
6685
+ icon: arrowIconName,
6686
+ rounded: null,
6687
+ size,
6688
+ fillMode
6689
+ }
6690
+ )
6691
+ ]
6692
+ }
6693
+ ),
6694
+ opened && popup && /* @__PURE__ */ jsx103(Popup, { className: "k-color-picker-popup", children: popup })
6695
+ ] });
6696
+ };
6697
+ ColorPicker.states = states35;
6698
+ ColorPicker.options = options31;
6699
+ ColorPicker.className = COLORPICKER_CLASSNAME;
6700
+ ColorPicker.defaultProps = defaultProps32;
6701
+
6702
+ // src/colorpicker/templates/colorpicker-normal.tsx
6703
+ import { jsx as jsx104 } from "react/jsx-runtime";
6704
+
6705
+ // src/action-buttons/action-buttons.spec.tsx
6706
+ import { jsx as jsx105 } from "react/jsx-runtime";
6707
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
6708
+ var states36 = [];
6709
+ var options32 = {};
6710
+ var defaultProps33 = {
6711
+ alignment: "start",
6712
+ orientation: "horizontal"
6713
+ };
6714
+ var ActionButtons = (props) => {
6715
+ const {
6716
+ alignment = defaultProps33.alignment,
6717
+ orientation = defaultProps33.orientation,
6718
+ ...other
6719
+ } = props;
6720
+ return /* @__PURE__ */ jsx105(
6721
+ "div",
6722
+ {
6723
+ ...other,
6724
+ className: classNames(
6725
+ ACTIONBUTTONS_CLASSNAME,
6726
+ {
6727
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
6728
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
6729
+ },
6730
+ props.className
6731
+ ),
6732
+ children: props.children
6733
+ }
6734
+ );
6735
+ };
6736
+ ActionButtons.states = states36;
6737
+ ActionButtons.options = options32;
6738
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
6739
+ ActionButtons.defaultProps = defaultProps33;
6740
+ var action_buttons_spec_default = ActionButtons;
6741
+
6742
+ // src/slider/slider.spec.tsx
6743
+ import { jsx as jsx106, jsxs as jsxs36 } from "react/jsx-runtime";
6744
+ var SLIDER_CLASSNAME = "k-slider";
6745
+ var states37 = [
6746
+ States.hover,
6747
+ States.focus,
6748
+ States.active,
6749
+ States.disabled,
6750
+ States.readonly
6751
+ ];
6752
+ var options33 = {};
6753
+ var defaultProps34 = {
6754
+ type: "single",
6755
+ orientation: "horizontal",
6756
+ readonly: false,
6757
+ disabled: false,
6758
+ handlePosition: "end",
6759
+ showButtons: true,
6760
+ showTicks: true
6761
+ };
6762
+ var Slider = (props) => {
6763
+ const {
6764
+ type = defaultProps34.type,
6765
+ orientation = defaultProps34.orientation,
6766
+ readonly = defaultProps34.readonly,
6767
+ disabled = defaultProps34.disabled,
6768
+ handlePosition = defaultProps34.handlePosition,
6769
+ showButtons = defaultProps34.showButtons,
6770
+ showTicks = defaultProps34.showTicks,
6771
+ hover,
6772
+ focus,
6773
+ active,
6774
+ trackStyle,
6775
+ dir
6776
+ } = props;
6777
+ let iconIncrease;
6778
+ let iconDecrease;
6779
+ if (orientation === "horizontal") {
6780
+ iconIncrease = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
6781
+ iconDecrease = dir === "rtl" ? "caret-alt-right" : "caret-alt-left";
6782
+ } else if (orientation === "vertical") {
6783
+ iconIncrease = "caret-alt-up";
6784
+ iconDecrease = "caret-alt-down";
6785
+ }
6786
+ return /* @__PURE__ */ jsxs36("div", { className: classNames(
6787
+ SLIDER_CLASSNAME,
6788
+ props.className,
6789
+ stateClassNames(SLIDER_CLASSNAME, {
6790
+ readonly,
6791
+ disabled
6792
+ }),
6793
+ {
6794
+ [`k-slider-${orientation}`]: orientation,
6795
+ "k-colorgradient-slider": type === "gradient",
6796
+ "k-range-slider": type === "range"
6797
+ }
6798
+ ), dir, children: [
6799
+ showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-decrease", rounded: "full", icon: iconDecrease }),
6800
+ /* @__PURE__ */ jsxs36("div", { className: "k-slider-track-wrap", children: [
6801
+ showTicks && /* @__PURE__ */ jsx106("ul", { className: "k-reset k-slider-items", children: props.children }),
6802
+ /* @__PURE__ */ jsxs36("div", { className: "k-slider-track", style: trackStyle, children: [
6803
+ /* @__PURE__ */ jsx106("div", { className: "k-slider-selection" }),
6804
+ type === "range" && /* @__PURE__ */ jsx106("span", { className: classNames(
6805
+ "k-draghandle",
6806
+ "k-draghandle-start",
6807
+ stateClassNames(SLIDER_CLASSNAME, {
6808
+ hover,
6809
+ focus,
6810
+ active
6811
+ })
6812
+ ) }),
6813
+ /* @__PURE__ */ jsx106("span", { className: classNames(
6814
+ "k-draghandle",
6815
+ `k-draghandle-${handlePosition}`,
6816
+ stateClassNames(SLIDER_CLASSNAME, {
6817
+ hover,
6818
+ focus,
6819
+ active
6820
+ })
6821
+ ) })
6822
+ ] })
6823
+ ] }),
6824
+ showButtons && /* @__PURE__ */ jsx106(Button, { className: "k-button-increase", rounded: "full", icon: iconIncrease })
6825
+ ] });
6826
+ };
6827
+ Slider.states = states37;
6828
+ Slider.options = options33;
6829
+ Slider.className = SLIDER_CLASSNAME;
6830
+ Slider.defaultProps = defaultProps34;
6831
+
6832
+ // src/slider/slider-tick.tsx
6833
+ import { jsx as jsx107 } from "react/jsx-runtime";
6834
+ var SLIDER_TICK_CLASSNAME = "k-tick";
6835
+ var states38 = [];
6836
+ var options34 = {};
6837
+ var defaultProps35 = {
6838
+ label: false
6839
+ };
6840
+ var SliderTick = (props) => {
6841
+ const {
6842
+ style,
6843
+ label = defaultProps35.label,
6844
+ orientation,
6845
+ large,
6846
+ text
6847
+ } = props;
6848
+ return /* @__PURE__ */ jsx107("li", { className: classNames(
6849
+ props.className,
6850
+ SLIDER_TICK_CLASSNAME,
6851
+ {
6852
+ [`k-tick-${orientation}`]: orientation,
6853
+ "k-tick-large": large
6854
+ }
6855
+ ), style, children: label && /* @__PURE__ */ jsx107("span", { className: "k-label", children: text }) });
6856
+ };
6857
+ SliderTick.states = states38;
6858
+ SliderTick.options = options34;
6859
+ SliderTick.className = SLIDER_TICK_CLASSNAME;
6860
+ SliderTick.defaultProps = defaultProps35;
6861
+
6862
+ // src/slider/templates/slider-normal.tsx
6863
+ import { Fragment as Fragment20, jsx as jsx108, jsxs as jsxs37 } from "react/jsx-runtime";
6864
+
6865
+ // src/slider/templates/slider-vertical.tsx
6866
+ import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs38 } from "react/jsx-runtime";
6867
+
6868
+ // src/slider/templates/slider-range.tsx
6869
+ import { Fragment as Fragment22, jsx as jsx110, jsxs as jsxs39 } from "react/jsx-runtime";
6870
+
6871
+ // src/slider/templates/slider-range-vertical.tsx
6872
+ import { Fragment as Fragment23, jsx as jsx111, jsxs as jsxs40 } from "react/jsx-runtime";
6873
+
6874
+ // src/slider/templates/slider-gradient.tsx
6875
+ import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs41 } from "react/jsx-runtime";
6876
+
6877
+ // src/slider/templates/slider-gradient-vertical.tsx
6878
+ import { Fragment as Fragment25, jsx as jsx113, jsxs as jsxs42 } from "react/jsx-runtime";
6879
+ var SliderGradientVertical = (props) => /* @__PURE__ */ jsx113(
6880
+ Slider,
6881
+ {
6882
+ type: "gradient",
6883
+ orientation: "vertical",
6884
+ showButtons: false,
6885
+ showTicks: false,
6886
+ children: /* @__PURE__ */ jsxs42(Fragment25, { children: [
6887
+ /* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "0" }),
6888
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6889
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6890
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6891
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6892
+ /* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "5" }),
6893
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6894
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6895
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6896
+ /* @__PURE__ */ jsx113(SliderTick, {}),
6897
+ /* @__PURE__ */ jsx113(SliderTick, { label: true, large: true, text: "10" })
6898
+ ] }),
6899
+ ...props
6900
+ }
6901
+ );
6902
+
6903
+ // src/textbox/textbox.spec.tsx
6904
+ import { Fragment as Fragment26, jsx as jsx114, jsxs as jsxs43 } from "react/jsx-runtime";
6905
+ var TEXTBOX_CLASSNAME = `k-textbox`;
6906
+ var states39 = [
6907
+ States.hover,
6908
+ States.focus,
6909
+ States.valid,
6910
+ States.invalid,
6911
+ States.required,
6912
+ States.disabled,
6913
+ States.loading,
6914
+ States.readonly
6915
+ ];
6916
+ var options35 = {
6917
+ size: [Size.small, Size.medium, Size.large],
6918
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
6919
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
6920
+ };
6921
+ var defaultProps36 = {
6922
+ showClearButton: true,
6923
+ size: Input.defaultProps.size,
6924
+ rounded: Input.defaultProps.rounded,
6925
+ fillMode: Input.defaultProps.fillMode
6926
+ };
6927
+ var Textbox = (props) => {
6928
+ const {
6929
+ prefix,
6930
+ suffix,
6931
+ value,
6932
+ placeholder,
6933
+ size,
6934
+ rounded,
6935
+ fillMode,
6936
+ hover,
6937
+ focus,
6938
+ valid,
6939
+ invalid,
6940
+ required,
6941
+ loading,
6942
+ disabled,
6943
+ readonly,
6944
+ showClearButton = defaultProps36.showClearButton,
6945
+ ...other
6946
+ } = props;
6947
+ return /* @__PURE__ */ jsxs43(
6948
+ Input,
6949
+ {
6950
+ ...other,
6951
+ size,
6952
+ rounded,
6953
+ fillMode,
6954
+ hover,
6955
+ focus,
6956
+ valid,
6957
+ invalid,
6958
+ required,
6959
+ loading,
6960
+ disabled,
6961
+ readonly,
6962
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
6963
+ children: [
6964
+ prefix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
6965
+ /* @__PURE__ */ jsx114(InputPrefix, { children: prefix }),
6966
+ /* @__PURE__ */ jsx114(InputSeparator, {})
6967
+ ] }),
6968
+ /* @__PURE__ */ jsx114(InputInnerInput, { placeholder, value }),
6969
+ /* @__PURE__ */ jsx114(
6970
+ InputValidationIcon,
6971
+ {
6972
+ valid,
6973
+ invalid,
6974
+ loading,
6975
+ disabled
6976
+ }
6977
+ ),
6978
+ /* @__PURE__ */ jsx114(
6979
+ InputLoadingIcon,
6980
+ {
6981
+ loading,
6982
+ disabled
6983
+ }
6984
+ ),
6985
+ showClearButton && /* @__PURE__ */ jsx114(
6986
+ InputClearValue,
6987
+ {
6988
+ loading,
6989
+ disabled,
6990
+ readonly,
6991
+ value
6992
+ }
6993
+ ),
6994
+ suffix && /* @__PURE__ */ jsxs43(Fragment26, { children: [
6995
+ /* @__PURE__ */ jsx114(InputSeparator, {}),
6996
+ /* @__PURE__ */ jsx114(InputSuffix, { children: suffix })
6997
+ ] })
6998
+ ]
6999
+ }
7000
+ );
7001
+ };
7002
+ Textbox.states = states39;
7003
+ Textbox.options = options35;
7004
+ Textbox.className = TEXTBOX_CLASSNAME;
7005
+ Textbox.defaultProps = defaultProps36;
7006
+
7007
+ // src/textbox/templates/textbox-normal.tsx
7008
+ import { jsx as jsx115 } from "react/jsx-runtime";
7009
+
7010
+ // src/textbox/templates/textbox-prefix.tsx
7011
+ import { Fragment as Fragment27, jsx as jsx116 } from "react/jsx-runtime";
7012
+
7013
+ // src/textbox/templates/textbox-suffix.tsx
7014
+ import { Fragment as Fragment28, jsx as jsx117 } from "react/jsx-runtime";
7015
+
7016
+ // src/colorgradient/color-input.tsx
7017
+ import { Fragment as Fragment29, jsx as jsx118, jsxs as jsxs44 } from "react/jsx-runtime";
7018
+ var COLOR_INPUT_CLASSNAME = "k-colorgradient-inputs";
7019
+ var states40 = [];
7020
+ var options36 = {};
7021
+ var defaultProps37 = {
7022
+ mode: "rgba"
7023
+ };
7024
+ var ColorInput = (props) => {
7025
+ const {
7026
+ mode = defaultProps37.mode
7027
+ } = props;
7028
+ return /* @__PURE__ */ jsxs44("div", { className: classNames(COLOR_INPUT_CLASSNAME, "k-hstack"), children: [
7029
+ /* @__PURE__ */ jsx118("div", { className: "k-vstack", children: /* @__PURE__ */ jsx118(Button, { fillMode: "flat", icon: "caret-alt-expand", className: "k-colorgradient-toggle-mode" }) }),
7030
+ mode === "rgba" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
7031
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7032
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7033
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
7034
+ ] }),
7035
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7036
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7037
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
7038
+ ] }),
7039
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7040
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7041
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
7042
+ ] }),
7043
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7044
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
7045
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
7046
+ ] })
7047
+ ] }),
7048
+ mode === "rgb" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
7049
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7050
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7051
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "R" })
7052
+ ] }),
7053
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7054
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7055
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "G" })
7056
+ ] }),
7057
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7058
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7059
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "B" })
7060
+ ] })
7061
+ ] }),
7062
+ mode === "hsva" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
7063
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7064
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7065
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
7066
+ ] }),
7067
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7068
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7069
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
7070
+ ] }),
7071
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7072
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7073
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
7074
+ ] }),
7075
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7076
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "1.00" }),
7077
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "A" })
7078
+ ] })
7079
+ ] }),
7080
+ mode === "hsv" && /* @__PURE__ */ jsxs44(Fragment29, { children: [
7081
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7082
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7083
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "H" })
7084
+ ] }),
7085
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7086
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7087
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "S" })
7088
+ ] }),
7089
+ /* @__PURE__ */ jsxs44("div", { className: "k-vstack", children: [
7090
+ /* @__PURE__ */ jsx118(NumericTextbox, { showSpinButton: false, showClearButton: false, value: "132" }),
7091
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "V" })
7092
+ ] })
7093
+ ] }),
7094
+ mode === "hex" && /* @__PURE__ */ jsx118(Fragment29, { children: /* @__PURE__ */ jsxs44("div", { className: "k-vstack k-flex-1", children: [
7095
+ /* @__PURE__ */ jsx118(Textbox, { showClearButton: false, value: "#b88484AA", className: "k-hex-value" }),
7096
+ /* @__PURE__ */ jsx118("label", { className: "k-colorgradient-input-label", children: "HEX" })
7097
+ ] }) })
7098
+ ] });
7099
+ };
7100
+ ColorInput.states = states40;
7101
+ ColorInput.options = options36;
7102
+ ColorInput.className = COLOR_INPUT_CLASSNAME;
7103
+ ColorInput.defaultProps = defaultProps37;
7104
+
7105
+ // src/colorgradient/color-contrast.tsx
7106
+ import { jsx as jsx119, jsxs as jsxs45 } from "react/jsx-runtime";
7107
+ var COLOR_CONTRAST_CLASSNAME = "k-colorgradient-color-contrast";
7108
+ var states41 = [];
7109
+ var options37 = {};
7110
+ var defaultProps38 = {};
7111
+ var ColorContrast = () => /* @__PURE__ */ jsxs45("div", { className: classNames(COLOR_CONTRAST_CLASSNAME, "k-vbox"), children: [
7112
+ /* @__PURE__ */ jsxs45("div", { className: "k-contrast-ratio", children: [
7113
+ /* @__PURE__ */ jsx119("span", { className: "k-contrast-ratio-text", children: "Contrast ratio: 7.1" }),
7114
+ /* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
7115
+ /* @__PURE__ */ jsx119(Icon, { icon: "check" }),
7116
+ /* @__PURE__ */ jsx119(Icon, { icon: "check" })
7117
+ ] })
7118
+ ] }),
7119
+ /* @__PURE__ */ jsxs45("div", { children: [
7120
+ /* @__PURE__ */ jsx119("span", { children: "AA: 4.5" }),
7121
+ /* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-success", children: [
7122
+ "Pass",
7123
+ /* @__PURE__ */ jsx119(Icon, { icon: "check" })
7124
+ ] })
7125
+ ] }),
7126
+ /* @__PURE__ */ jsxs45("div", { children: [
7127
+ /* @__PURE__ */ jsx119("span", { children: "AAA: 7.0" }),
7128
+ /* @__PURE__ */ jsxs45("span", { className: "k-contrast-validation !k-text-error", children: [
7129
+ "Fail",
7130
+ /* @__PURE__ */ jsx119(Icon, { icon: "x" })
7131
+ ] })
7132
+ ] })
7133
+ ] });
7134
+ ColorContrast.states = states41;
7135
+ ColorContrast.options = options37;
7136
+ ColorContrast.className = COLOR_CONTRAST_CLASSNAME;
7137
+ ColorContrast.defaultProps = defaultProps38;
7138
+
7139
+ // src/colorgradient/color-gradient.spec.tsx
7140
+ import { jsx as jsx120, jsxs as jsxs46 } from "react/jsx-runtime";
7141
+ var COLOR_GRADIENT_CLASSNAME = "k-colorgradient";
7142
+ var states42 = [
7143
+ States.hover,
7144
+ States.focus,
7145
+ States.readonly,
7146
+ States.disabled
7147
+ ];
7148
+ var options38 = {};
7149
+ var defaultProps39 = {
7150
+ mode: "rgba",
7151
+ readonly: false,
7152
+ disabled: false,
7153
+ contrast: false,
7154
+ gradientStyle: { background: "rgb(255, 0, 0 )" },
7155
+ dragHandleStyle: { top: "50px", left: "73px" },
7156
+ alphaStyle: { background: "linear-gradient(to top, transparent, rgb(255, 0, 0))" }
7157
+ };
7158
+ var ColorGradient = (props) => {
7159
+ const {
7160
+ mode = defaultProps39.mode,
7161
+ readonly = defaultProps39.readonly,
7162
+ disabled = defaultProps39.disabled,
7163
+ dir,
7164
+ contrast = defaultProps39.contrast,
7165
+ hover,
7166
+ focus,
7167
+ hoverHandle,
7168
+ focusHandle,
7169
+ gradientStyle = defaultProps39.gradientStyle,
7170
+ dragHandleStyle = defaultProps39.dragHandleStyle,
7171
+ alphaStyle = defaultProps39.alphaStyle
7172
+ } = props;
7173
+ return /* @__PURE__ */ jsxs46("div", { className: classNames(
7174
+ props.className,
7175
+ COLOR_GRADIENT_CLASSNAME,
7176
+ stateClassNames(COLOR_GRADIENT_CLASSNAME, {
7177
+ hover,
7178
+ focus,
7179
+ readonly,
7180
+ disabled
7181
+ })
7182
+ ), dir, children: [
7183
+ /* @__PURE__ */ jsxs46("div", { className: "k-colorgradient-canvas k-hstack", children: [
7184
+ /* @__PURE__ */ jsx120("div", { className: "k-hsv-rectangle", style: gradientStyle, children: /* @__PURE__ */ jsx120("div", { className: "k-hsv-gradient", children: /* @__PURE__ */ jsx120("div", { className: classNames(
7185
+ "k-hsv-draghandle",
7186
+ "k-draghandle",
7187
+ {
7188
+ "k-hover": hoverHandle,
7189
+ "k-focus": focusHandle
7190
+ }
7191
+ ), style: dragHandleStyle }) }) }),
7192
+ /* @__PURE__ */ jsxs46("div", { className: "k-hsv-controls k-hstack", children: [
7193
+ /* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-hue-slider", hover: hoverHandle, focus: focusHandle }),
7194
+ mode !== "rgb" && mode !== "hsv" && /* @__PURE__ */ jsx120(SliderGradientVertical, { className: "k-alpha-slider", hover: hoverHandle, focus: focusHandle, trackStyle: alphaStyle })
7195
+ ] })
7196
+ ] }),
7197
+ /* @__PURE__ */ jsx120(ColorInput, { mode: props.mode }),
7198
+ contrast && /* @__PURE__ */ jsx120(ColorContrast, {})
7199
+ ] });
7200
+ };
7201
+ ColorGradient.states = states42;
7202
+ ColorGradient.options = options38;
7203
+ ColorGradient.className = COLOR_GRADIENT_CLASSNAME;
7204
+ ColorGradient.defaultProps = defaultProps39;
7205
+
7206
+ // src/colorgradient/templates/colorgradient-normal.tsx
7207
+ import { jsx as jsx121 } from "react/jsx-runtime";
7208
+
7209
+ // src/colorgradient/templates/colorgradient-contrast.tsx
7210
+ import { jsx as jsx122 } from "react/jsx-runtime";
7211
+
7212
+ // src/colorpalette/colorpalette-row.tsx
7213
+ import { jsx as jsx123 } from "react/jsx-runtime";
7214
+ var ColorPaletteRow = (props) => /* @__PURE__ */ jsx123("tr", { children: props.children });
7215
+
7216
+ // src/colorpalette/colorpalette-tile.tsx
7217
+ import { jsx as jsx124 } from "react/jsx-runtime";
7218
+ var COLORPALETTETILE_CLASSNAME = `k-colorpalette-tile`;
7219
+ var states43 = [
7220
+ States.hover,
7221
+ States.focus,
7222
+ States.selected
7223
+ ];
7224
+ var options39 = {};
7225
+ var ColorPaletteTile = (props) => {
7226
+ const {
7227
+ color,
7228
+ tileSize,
7229
+ hover,
7230
+ focus,
7231
+ selected,
7232
+ ...other
7233
+ } = props;
7234
+ const styles = {
7235
+ "background-color": color,
7236
+ "width": tileSize ? tileSize + "px" : "",
7237
+ "height": tileSize ? tileSize + "px" : ""
7238
+ };
7239
+ return /* @__PURE__ */ jsx124(
7240
+ "td",
7241
+ {
7242
+ ...other,
7243
+ className: classNames(
7244
+ props.className,
7245
+ COLORPALETTETILE_CLASSNAME,
7246
+ stateClassNames(COLORPALETTETILE_CLASSNAME, {
7247
+ hover,
7248
+ focus,
7249
+ selected
7250
+ })
7251
+ ),
7252
+ style: styles
7253
+ }
7254
+ );
7255
+ };
7256
+ ColorPaletteTile.states = states43;
7257
+ ColorPaletteTile.options = options39;
7258
+ ColorPaletteTile.className = COLORPALETTETILE_CLASSNAME;
7259
+
7260
+ // src/colorpalette/colorpalette.spec.tsx
7261
+ import { jsx as jsx125 } from "react/jsx-runtime";
7262
+ var COLORPALETTE_CLASSNAME = `k-colorpalette`;
7263
+ var states44 = [
7264
+ States.disabled
7265
+ ];
7266
+ var options40 = {};
7267
+ var defaultProps40 = {
7268
+ columns: 10
7269
+ };
7270
+ var ColorPalette = (props) => {
7271
+ const {
7272
+ palette,
7273
+ columns = defaultProps40.columns,
7274
+ tileSize,
7275
+ disabled,
7276
+ ...other
7277
+ } = props;
7278
+ const newChildren = [];
7279
+ if (palette) {
7280
+ const cols = columns || palette.columns;
7281
+ const colors = palette.colors ? palette.colors : palette;
7282
+ if (Array.isArray(colors)) {
7283
+ Array.from({ length: Math.ceil(colors.length / cols) }, (_, i) => {
7284
+ const items = [];
7285
+ colors.slice(i * cols, (i + 1) * cols).map((color) => {
7286
+ items.push(/* @__PURE__ */ jsx125(ColorPaletteTile, { color, tileSize }));
7287
+ });
7288
+ const row = /* @__PURE__ */ jsx125(ColorPaletteRow, { children: items });
7289
+ newChildren.push(row);
7290
+ });
7291
+ }
7292
+ }
7293
+ return /* @__PURE__ */ jsx125(
7294
+ "div",
7295
+ {
7296
+ ...other,
7297
+ className: classNames(
7298
+ props.className,
7299
+ COLORPALETTE_CLASSNAME,
7300
+ stateClassNames(COLORPALETTE_CLASSNAME, {
7301
+ disabled
7302
+ })
7303
+ ),
7304
+ children: /* @__PURE__ */ jsx125("table", { className: "k-colorpalette-table", children: newChildren.length > 0 ? newChildren : props.children })
7305
+ }
7306
+ );
7307
+ };
7308
+ ColorPalette.states = states44;
7309
+ ColorPalette.options = options40;
7310
+ ColorPalette.className = COLORPALETTE_CLASSNAME;
7311
+ ColorPalette.defaultProps = defaultProps40;
7312
+
7313
+ // src/colorpalette/templates/colorpalette-normal.tsx
7314
+ import { jsx as jsx126 } from "react/jsx-runtime";
7315
+
7316
+ // src/colorpalette/colorpalette-presets.tsx
7317
+ var PALETTEPRESETS = {
7318
+ basic: {
7319
+ colors: ["#000000", "#7f7f7f", "#880015", "#ed1c24", "#ff7f27", "#fff200", "#22b14c", "#00a2e8", "#3f48cc", "#a349a4", "#ffffff", "#c3c3c3", "#b97a57", "#ffaec9", "#ffc90e", "#efe4b0", "#b5e61d", "#99d9ea", "#7092be", "#c8bfe7"],
7320
+ columns: 10
7321
+ },
7322
+ office: {
7323
+ 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"],
7324
+ columns: 10
7325
+ },
7326
+ apex: {
7327
+ 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"],
7328
+ columns: 10
7329
+ },
7330
+ austin: {
7331
+ 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"],
7332
+ columns: 10
7333
+ },
7334
+ clarity: {
7335
+ 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"],
7336
+ columns: 10
7337
+ },
7338
+ slipstream: {
7339
+ 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"],
7340
+ columns: 10
7341
+ },
7342
+ metro: {
7343
+ 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"],
7344
+ columns: 10
7345
+ },
7346
+ flow: {
7347
+ 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"],
7348
+ columns: 10
7349
+ },
7350
+ hardcover: {
7351
+ 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"],
7352
+ columns: 10
7353
+ },
7354
+ trek: {
7355
+ 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"],
7356
+ columns: 10
7357
+ },
7358
+ verve: {
7359
+ 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"],
7360
+ columns: 10
7361
+ },
7362
+ monochrome: {
7363
+ colors: ["#000000", "#1a1a1a", "#333333", "#4d4d4d", "#666666", "#808080", "#999999", "#b3b3b3", "#cccccc", "#e6e6e6", "#f2f2f2", "#ffffff"],
7364
+ columns: 12
7365
+ }
7366
+ };
7367
+
7368
+ // src/coloreditor/color-editor.spec.tsx
7369
+ import { jsx as jsx127, jsxs as jsxs47 } from "react/jsx-runtime";
7370
+ var COLOREDITOR_CLASSNAME = "k-coloreditor";
7371
+ var states45 = [
7372
+ States.focus
7373
+ ];
7374
+ var options41 = {};
7375
+ var defaultProps41 = {
7376
+ view: "gradient",
7377
+ currentColor: "fuchsia",
7378
+ palette: PALETTEPRESETS.office
7379
+ };
7380
+ var ColorEditor = (props) => {
7381
+ const {
7382
+ view = defaultProps41.view,
7383
+ color,
7384
+ currentColor = defaultProps41.currentColor,
7385
+ focus,
7386
+ focusView,
7387
+ dir,
7388
+ group,
7389
+ palette = defaultProps41.palette
7390
+ } = props;
7391
+ return /* @__PURE__ */ jsxs47("div", { className: classNames(
7392
+ props.className,
7393
+ "k-flatcolorpicker",
7394
+ COLOREDITOR_CLASSNAME,
7395
+ stateClassNames(COLOREDITOR_CLASSNAME, { focus })
7396
+ ), dir, children: [
7397
+ /* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header k-hstack", children: [
7398
+ /* @__PURE__ */ jsx127("div", { className: "k-coloreditor-header-actions k-hstack", children: group && /* @__PURE__ */ jsxs47(ButtonGroup, { children: [
7399
+ /* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slider", selected: view === "gradient" }),
7400
+ /* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "palette", selected: view === "palette" })
7401
+ ] }) }),
7402
+ /* @__PURE__ */ jsx127("div", { className: "k-spacer" }),
7403
+ /* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-header-actions k-hstack", children: [
7404
+ /* @__PURE__ */ jsx127(Button, { fillMode: "flat", icon: "droplet-slash" }),
7405
+ /* @__PURE__ */ jsxs47("div", { className: "k-coloreditor-preview k-vstack", children: [
7406
+ /* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-preview-color", color }),
7407
+ /* @__PURE__ */ jsx127(ColorPreview, { className: "k-coloreditor-current-color", color: currentColor })
7408
+ ] })
7409
+ ] })
7410
+ ] }),
7411
+ /* @__PURE__ */ jsx127("div", { className: "k-coloreditor-views k-vstack", children: view === "gradient" ? /* @__PURE__ */ jsx127(ColorGradient, { focus: focusView }) : /* @__PURE__ */ jsx127(ColorPalette, { palette }) }),
7412
+ /* @__PURE__ */ jsxs47(ActionButtons, { className: "k-coloreditor-footer", alignment: "end", children: [
7413
+ /* @__PURE__ */ jsx127(Button, { className: "k-coloreditor-cancel", children: "Cancel" }),
7414
+ /* @__PURE__ */ jsx127(Button, { themeColor: "primary", className: "k-coloreditor-apply", children: "Apply" })
7415
+ ] })
7416
+ ] });
7417
+ };
7418
+ ColorEditor.states = states45;
7419
+ ColorEditor.options = options41;
7420
+ ColorEditor.className = COLOREDITOR_CLASSNAME;
7421
+ ColorEditor.defaultProps = defaultProps41;
7422
+
7423
+ // src/coloreditor/templates/coloreditor-normal.tsx
7424
+ import { jsx as jsx128 } from "react/jsx-runtime";
7425
+
7426
+ // src/coloreditor/templates/coloreditor-palette.tsx
7427
+ import { jsx as jsx129 } from "react/jsx-runtime";
7428
+
7429
+ // src/coloreditor/templates/coloreditor-group.tsx
7430
+ import { jsx as jsx130 } from "react/jsx-runtime";
7431
+
7432
+ // src/coloreditor/templates/coloreditor-palette-group.tsx
7433
+ import { jsx as jsx131 } from "react/jsx-runtime";
7434
+
7435
+ // src/colorpicker/templates/colorpicker-popup-gradient.tsx
7436
+ import { jsx as jsx132 } from "react/jsx-runtime";
7437
+
7438
+ // src/colorpicker/templates/colorpicker-popup-palette.tsx
7439
+ import { jsx as jsx133 } from "react/jsx-runtime";
7440
+
7441
+ // src/action-sheet/action-sheet.spec.tsx
7442
+ import { Fragment as Fragment30, jsx as jsx134, jsxs as jsxs48 } from "react/jsx-runtime";
7443
+ var ACTIONSHEET_CLASSNAME = `k-actionsheet`;
7444
+ var states46 = [];
7445
+ var options42 = {};
7446
+ var defaultProps42 = {
7447
+ side: "bottom",
7448
+ fullscreen: false,
7449
+ adaptive: false,
7450
+ overlay: true
7451
+ };
7452
+ var ActionSheet = (props) => {
7453
+ const {
7454
+ children,
7455
+ title,
7456
+ header,
7457
+ footer,
7458
+ actions,
7459
+ side = defaultProps42.side,
7460
+ fullscreen = defaultProps42.fullscreen,
7461
+ adaptive = defaultProps42.adaptive,
7462
+ overlay = defaultProps42.overlay,
7463
+ ...other
7464
+ } = props;
7465
+ const _ActionSheetHeader = title ? /* @__PURE__ */ jsx134(ActionSheetHeader, { title }) : header ? header : Array.isArray(children) && children.find((child) => child.type === ActionSheetHeader);
7466
+ const _ActionSheetFooter = actions ? /* @__PURE__ */ jsx134(ActionSheetFooter, { className: "k-actions", actions }) : footer ? typeof footer === "string" ? /* @__PURE__ */ jsx134(ActionSheetFooter, { children: footer }) : footer : Array.isArray(children) && children.find((child) => child.type === ActionSheetFooter);
7467
+ const _ActionSheetContent = Array.isArray(children) ? children.filter((child) => {
7468
+ switch (child.type) {
7469
+ case ActionSheetHeader:
7470
+ case ActionSheetFooter:
7471
+ return false;
7472
+ default:
7473
+ return true;
7474
+ }
7475
+ return true;
7476
+ }) : children.type === ActionSheetItems ? children : /* @__PURE__ */ jsx134(Fragment30, {});
7477
+ return /* @__PURE__ */ jsxs48("div", { className: "k-actionsheet-container", children: [
7478
+ overlay && /* @__PURE__ */ jsx134("div", { className: "k-overlay" }),
7479
+ /* @__PURE__ */ jsx134(
7480
+ AnimationContainer,
7481
+ {
7482
+ animationStyle: {
7483
+ [`${fullscreen === true ? "top" : side}`]: 0,
7484
+ [`${fullscreen === true ? "width" : null}`]: "100%",
7485
+ [`${fullscreen === true ? "height" : null}`]: "100%",
7486
+ [`${side === "top" || side === "bottom" ? "width" : null}`]: "100%",
7487
+ [`${side === "left" || side === "right" ? "height" : null}`]: "100%"
7488
+ },
7489
+ children: /* @__PURE__ */ jsx134(
7490
+ "div",
7491
+ {
7492
+ ...other,
7493
+ className: classNames(
7494
+ props.className,
7495
+ ACTIONSHEET_CLASSNAME,
7496
+ {
7497
+ [`k-actionsheet-${side}`]: fullscreen === false,
7498
+ "k-actionsheet-fullscreen": fullscreen === true,
7499
+ "k-adaptive-actionsheet": adaptive
7500
+ }
7501
+ ),
7502
+ children: /* @__PURE__ */ jsxs48(Fragment30, { children: [
7503
+ _ActionSheetHeader,
7504
+ /* @__PURE__ */ jsx134("div", { className: classNames(
7505
+ "k-actionsheet-content",
7506
+ {
7507
+ "!k-overflow-hidden": adaptive
7508
+ }
7509
+ ), children: _ActionSheetContent }),
7510
+ _ActionSheetFooter
7511
+ ] })
7512
+ }
7513
+ )
7514
+ }
7515
+ )
7516
+ ] });
7517
+ };
7518
+ ActionSheet.states = states46;
7519
+ ActionSheet.options = options42;
7520
+ ActionSheet.className = ACTIONSHEET_CLASSNAME;
7521
+ ActionSheet.defaultProps = defaultProps42;
7522
+
7523
+ // src/action-sheet/actionsheet-header.tsx
7524
+ import { Fragment as Fragment31, jsx as jsx135, jsxs as jsxs49 } from "react/jsx-runtime";
7525
+ var ACTIONSHEETHEADER_CLASSNAME = `k-actionsheet-titlebar`;
7526
+ var ActionSheetHeader = (props) => {
7527
+ const {
7528
+ title,
7529
+ subTitle,
7530
+ actions,
7531
+ filter,
7532
+ ...other
7533
+ } = props;
7534
+ return /* @__PURE__ */ jsx135(
7535
+ "div",
7536
+ {
7537
+ ...other,
7538
+ className: classNames(
7539
+ props.className,
7540
+ ACTIONSHEETHEADER_CLASSNAME
7541
+ ),
7542
+ children: /* @__PURE__ */ jsxs49(Fragment31, { children: [
7543
+ /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-titlebar-group k-hbox", children: [
7544
+ !props.children && (title || subTitle) && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsxs49("div", { className: "k-actionsheet-title", children: [
7545
+ title !== "" && /* @__PURE__ */ jsx135("div", { className: "k-text-center", children: title }),
7546
+ subTitle !== "" && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-subtitle k-text-center", children: subTitle })
7547
+ ] }) }),
7548
+ props.children && /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-title", children: props.children }),
7549
+ actions && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-actions", children: actions.map((actionName) => /* @__PURE__ */ jsx135(Button, { icon: actionName, size: "large", fillMode: "flat" }, actionName)) }) })
7550
+ ] }),
7551
+ filter && /* @__PURE__ */ jsx135(Fragment31, { children: /* @__PURE__ */ jsx135("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter", children: /* @__PURE__ */ jsx135(Searchbox, { placeholder: "Filter", size: "large" }) }) })
7552
+ ] })
7553
+ }
7554
+ );
7555
+ };
7556
+
7557
+ // src/action-sheet/actionsheet-footer.tsx
7558
+ import { Fragment as Fragment32, jsx as jsx136, jsxs as jsxs50 } from "react/jsx-runtime";
7559
+ var ACTIONSHEETFOOTER_CLASSNAME = `k-actionsheet-footer`;
7560
+ var ActionSheetFooter = (props) => {
7561
+ const {
7562
+ actions,
7563
+ ...other
7564
+ } = props;
7565
+ return /* @__PURE__ */ jsx136(
7566
+ action_buttons_spec_default,
7567
+ {
7568
+ ...other,
7569
+ className: classNames(
7570
+ props.className,
7571
+ ACTIONSHEETFOOTER_CLASSNAME
7572
+ ),
7573
+ alignment: "stretched",
7574
+ children: /* @__PURE__ */ jsxs50(Fragment32, { children: [
7575
+ actions && actions.map((action, index) => {
7576
+ if (action === "|") {
7577
+ return /* @__PURE__ */ jsx136("span", { className: "k-separator" }, index);
7578
+ }
7579
+ if (action === " ") {
7580
+ return /* @__PURE__ */ jsx136("span", { className: "k-spacer" }, index);
7581
+ }
7582
+ const importantFlag = action.startsWith("!");
7583
+ const actionName = importantFlag ? action.substring(1) : action;
7584
+ return /* @__PURE__ */ jsx136(Button, { text: actionName, size: "large", themeColor: importantFlag ? "primary" : "base" }, index);
7585
+ }),
7586
+ !actions && props.children
7587
+ ] })
7588
+ }
7589
+ );
7590
+ };
7591
+
7592
+ // src/action-sheet/actionsheet-items.tsx
7593
+ import { jsx as jsx137 } from "react/jsx-runtime";
7594
+ var ActionSheetItems = (props) => {
7595
+ const {
7596
+ ...other
7597
+ } = props;
7598
+ return /* @__PURE__ */ jsx137(
7599
+ "div",
7600
+ {
7601
+ ...other,
7602
+ className: classNames(
7603
+ props.className,
7604
+ "k-list-ul"
7605
+ ),
7606
+ children: props.children
7607
+ }
7608
+ );
7609
+ };
7610
+
7611
+ // src/action-sheet/actionsheet-item.tsx
7612
+ import { Fragment as Fragment33, jsx as jsx138, jsxs as jsxs51 } from "react/jsx-runtime";
7613
+ var states47 = [
7614
+ States.hover,
7615
+ States.focus,
7616
+ States.selected,
7617
+ States.disabled
7618
+ ];
7619
+
7620
+ // src/combobox/combobox.spec.tsx
7621
+ import { Fragment as Fragment34, jsx as jsx139, jsxs as jsxs52 } from "react/jsx-runtime";
7622
+ var COMBOBOX_CLASSNAME = `k-combobox`;
7623
+ var states48 = [
7624
+ States.hover,
7625
+ States.focus,
7626
+ States.valid,
7627
+ States.invalid,
7628
+ States.loading,
7629
+ States.required,
7630
+ States.disabled,
7631
+ States.readonly
7632
+ ];
7633
+ var defaultProps43 = {
7634
+ size: Input.defaultProps.size,
7635
+ rounded: Input.defaultProps.rounded,
7636
+ fillMode: Input.defaultProps.fillMode
7637
+ };
7638
+ var options43 = {
7639
+ size: [Size.small, Size.medium, Size.large],
7640
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7641
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
7642
+ };
7643
+ var Combobox = (props) => {
7644
+ const {
7645
+ prefix,
7646
+ suffix,
7647
+ value,
7648
+ placeholder,
7649
+ size,
7650
+ rounded,
7651
+ fillMode,
7652
+ hover,
7653
+ focus,
7654
+ valid,
7655
+ invalid,
7656
+ required,
7657
+ loading,
7658
+ disabled,
7659
+ popup,
7660
+ opened,
7661
+ readonly,
7662
+ adaptive,
7663
+ adaptiveSettings,
7664
+ ...other
7665
+ } = props;
7666
+ return /* @__PURE__ */ jsxs52(Fragment34, { children: [
7667
+ /* @__PURE__ */ jsxs52(
7668
+ Input,
7669
+ {
7670
+ ...other,
7671
+ size,
7672
+ rounded,
7673
+ fillMode,
7674
+ hover,
7675
+ focus,
7676
+ valid,
7677
+ invalid,
7678
+ required,
7679
+ loading,
7680
+ disabled,
7681
+ readonly,
7682
+ className: classNames(props.className, COMBOBOX_CLASSNAME),
7683
+ children: [
7684
+ prefix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
7685
+ /* @__PURE__ */ jsx139(InputPrefix, { children: prefix }),
7686
+ /* @__PURE__ */ jsx139(InputSeparator, {})
7687
+ ] }),
7688
+ /* @__PURE__ */ jsx139(InputInnerInput, { placeholder, value }),
7689
+ /* @__PURE__ */ jsx139(
7690
+ InputValidationIcon,
7691
+ {
7692
+ valid,
7693
+ invalid,
7694
+ loading,
7695
+ disabled
7696
+ }
7697
+ ),
7698
+ /* @__PURE__ */ jsx139(
7699
+ InputLoadingIcon,
7700
+ {
7701
+ loading,
7702
+ disabled
7703
+ }
7704
+ ),
7705
+ /* @__PURE__ */ jsx139(
7706
+ InputClearValue,
7707
+ {
7708
+ loading,
7709
+ disabled,
7710
+ readonly,
7711
+ value
7712
+ }
7713
+ ),
7714
+ suffix && /* @__PURE__ */ jsxs52(Fragment34, { children: [
7715
+ /* @__PURE__ */ jsx139(InputSeparator, {}),
7716
+ /* @__PURE__ */ jsx139(InputSuffix, { children: suffix })
7717
+ ] }),
7718
+ /* @__PURE__ */ jsx139(
7719
+ Button,
7720
+ {
7721
+ className: "k-input-button",
7722
+ icon: "caret-alt-down",
7723
+ rounded: null,
7724
+ size,
7725
+ fillMode
7726
+ }
7727
+ )
7728
+ ]
7729
+ }
7730
+ ),
7731
+ opened && popup && /* @__PURE__ */ jsx139(Popup, { className: "k-list-container k-combobox-popup", children: popup }),
7732
+ adaptive && /* @__PURE__ */ jsxs52(ActionSheet, { adaptive: true, ...adaptiveSettings, children: [
7733
+ /* @__PURE__ */ jsx139(
7734
+ ActionSheetHeader,
7735
+ {
7736
+ actions: ["x"],
7737
+ filter: true,
7738
+ title: "Select Item"
7739
+ }
7740
+ ),
7741
+ /* @__PURE__ */ jsx139("div", { className: "k-list-container", children: /* @__PURE__ */ jsxs52(List, { size: "large", children: [
7742
+ /* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
7743
+ /* @__PURE__ */ jsx139(ListItem, { text: "List item" }),
7744
+ /* @__PURE__ */ jsx139(ListItem, { text: "List item" })
7745
+ ] }) })
7746
+ ] })
7747
+ ] });
7748
+ };
7749
+ Combobox.states = states48;
7750
+ Combobox.options = options43;
7751
+ Combobox.className = COMBOBOX_CLASSNAME;
7752
+ Combobox.defaultProps = defaultProps43;
7753
+
7754
+ // src/combobox/templates/combobox-normal.tsx
7755
+ import { jsx as jsx140 } from "react/jsx-runtime";
7756
+
7757
+ // src/combobox/templates/combobox-popup.tsx
7758
+ import { jsx as jsx141, jsxs as jsxs53 } from "react/jsx-runtime";
7759
+
7760
+ // src/combobox/templates/combobox-grouping.tsx
7761
+ import { jsx as jsx142, jsxs as jsxs54 } from "react/jsx-runtime";
7762
+
7763
+ // src/combobox/templates/combobox-adaptive.tsx
7764
+ import { jsx as jsx143 } from "react/jsx-runtime";
7765
+
7766
+ // src/combobox/templates/combobox-prefix.tsx
7767
+ import { Fragment as Fragment35, jsx as jsx144 } from "react/jsx-runtime";
7768
+
7769
+ // src/combobox/templates/combobox-suffix.tsx
7770
+ import { Fragment as Fragment36, jsx as jsx145 } from "react/jsx-runtime";
7771
+
7772
+ // src/menu-button/menu-button.spec.tsx
7773
+ import { Fragment as Fragment37, jsx as jsx146, jsxs as jsxs55 } from "react/jsx-runtime";
7774
+ var MENUBUTTON_CLASSNAME = `k-menu-button`;
7775
+ var states49 = [
7776
+ States.hover,
7777
+ States.focus,
7778
+ States.active,
7779
+ States.selected,
7780
+ States.disabled
7781
+ ];
7782
+ var options44 = {
7783
+ size: [Size.small, Size.medium, Size.large],
7784
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
7785
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
7786
+ themeColor: [
7787
+ ThemeColor.base,
7788
+ ThemeColor.primary,
7789
+ ThemeColor.secondary,
7790
+ ThemeColor.tertiary,
7791
+ ThemeColor.success,
7792
+ ThemeColor.warning,
7793
+ ThemeColor.error,
7794
+ ThemeColor.info,
7795
+ ThemeColor.light,
7796
+ ThemeColor.dark,
7797
+ ThemeColor.inverse
7798
+ ]
7799
+ };
7800
+ var defaultProps44 = {
7801
+ size: Size.medium,
7802
+ rounded: Roundness.medium,
7803
+ fillMode: FillMode.solid,
7804
+ themeColor: ThemeColor.base,
7805
+ showArrow: true,
7806
+ arrowIconName: "caret-alt-down"
7807
+ };
7808
+ var MenuButton = (props) => {
7809
+ const {
7810
+ size = defaultProps44.size,
7811
+ rounded = defaultProps44.rounded,
7812
+ fillMode = defaultProps44.fillMode,
7813
+ themeColor = defaultProps44.themeColor,
7814
+ hover,
7815
+ focus,
7816
+ active,
7817
+ selected,
7818
+ disabled,
7819
+ icon,
7820
+ text,
7821
+ showArrow = defaultProps44.showArrow,
7822
+ arrowIconName = defaultProps44.arrowIconName,
7823
+ popup,
7824
+ opened,
7825
+ ...other
7826
+ } = props;
7827
+ return /* @__PURE__ */ jsxs55(Fragment37, { children: [
7828
+ /* @__PURE__ */ jsx146(
7829
+ Button,
7830
+ {
7831
+ ...other,
7832
+ className: classNames(
7833
+ props.className,
7834
+ MENUBUTTON_CLASSNAME
7835
+ ),
7836
+ text,
7837
+ size,
7838
+ rounded,
7839
+ fillMode,
7840
+ themeColor,
7841
+ hover,
7842
+ focus,
7843
+ active,
7844
+ selected,
7845
+ disabled,
7846
+ icon,
7847
+ showArrow,
7848
+ arrowIconName
7849
+ }
7850
+ ),
7851
+ opened && popup && /* @__PURE__ */ jsx146(Popup, { className: "k-menu-popup", children: popup })
7852
+ ] });
7853
+ };
7854
+ MenuButton.states = states49;
7855
+ MenuButton.options = options44;
7856
+ MenuButton.className = MENUBUTTON_CLASSNAME;
7857
+ MenuButton.defaultProps = defaultProps44;
7858
+
7859
+ // src/menu-button/templates/icon-menu-button.tsx
7860
+ import { jsx as jsx147 } from "react/jsx-runtime";
7861
+
7862
+ // src/menu-button/templates/icon-text-menu-button.tsx
7863
+ import { jsx as jsx148 } from "react/jsx-runtime";
7864
+
7865
+ // src/menu-button/templates/text-menu-button.tsx
7866
+ import { jsx as jsx149 } from "react/jsx-runtime";
7867
+
7868
+ // src/menu/menu-item.spec.tsx
7869
+ import { Fragment as Fragment38, jsx as jsx150, jsxs as jsxs56 } from "react/jsx-runtime";
7870
+ var MENUITEM_CLASSNAME = `k-menu-item`;
7871
+ var states50 = [
7872
+ States.hover,
7873
+ States.focus,
7874
+ States.active,
7875
+ States.selected,
7876
+ States.disabled
7877
+ ];
7878
+ var options45 = {};
7879
+ var defaultProps45 = {
7880
+ dir: "ltr"
7881
+ };
7882
+ var MenuItem = (props) => {
7883
+ const {
7884
+ hover,
7885
+ focus,
7886
+ active,
7887
+ selected,
7888
+ disabled,
7889
+ icon,
7890
+ text,
7891
+ showArrow,
7892
+ arrowIconName,
7893
+ dir = defaultProps45.dir,
7894
+ children,
7895
+ ...other
7896
+ } = props;
7897
+ const contentTemplate = /* @__PURE__ */ jsx150(Fragment38, {});
7898
+ if (children) {
7899
+ children.forEach((child) => {
7900
+ const component = child.type;
7901
+ if (component === "MenuItemContent") {
7902
+ contentTemplate.props.children.push(child);
7903
+ return;
7904
+ }
7905
+ });
7906
+ }
7907
+ let expandArrowName = arrowIconName;
7908
+ if (!expandArrowName) {
7909
+ expandArrowName = dir === "rtl" ? "caret-alt-left" : "caret-alt-right";
7910
+ }
7911
+ return /* @__PURE__ */ jsxs56(
7912
+ "li",
7913
+ {
7914
+ ...other,
7915
+ className: classNames(
7916
+ props.className,
7917
+ MENUITEM_CLASSNAME,
7918
+ //TODO
7919
+ "k-item",
7920
+ stateClassNames(MENUITEM_CLASSNAME, {
7921
+ focus,
7922
+ disabled
7923
+ })
7924
+ ),
7925
+ children: [
7926
+ /* @__PURE__ */ jsxs56(
7927
+ "span",
7928
+ {
7929
+ className: classNames(
7930
+ "k-link k-menu-link",
7931
+ stateClassNames("k-menu-link", {
7932
+ hover,
7933
+ active,
7934
+ selected,
7935
+ disabled
7936
+ })
7937
+ ),
7938
+ children: [
7939
+ icon && /* @__PURE__ */ jsx150(Icon, { className: "k-menu-link-icon", icon }),
7940
+ /* @__PURE__ */ jsx150("span", { className: "k-menu-link-text", children: text }),
7941
+ showArrow && /* @__PURE__ */ jsx150("span", { className: "k-menu-expand-arrow", children: /* @__PURE__ */ jsx150(Icon, { icon: expandArrowName }) })
7942
+ ]
7943
+ }
7944
+ ),
7945
+ contentTemplate
7946
+ ]
7947
+ }
7948
+ );
7949
+ };
7950
+ MenuItem.states = states50;
7951
+ MenuItem.options = options45;
7952
+ MenuItem.className = MENUITEM_CLASSNAME;
7953
+ MenuItem.defaultProps = defaultProps45;
7954
+ var menu_item_spec_default = MenuItem;
7955
+
7956
+ // src/menu/menu-separator.spec.tsx
7957
+ import { jsx as jsx151 } from "react/jsx-runtime";
7958
+ var SEPARATOR_CLASSNAME = `k-separator`;
7959
+ var defaultProps46 = {
7960
+ orientation: "horizontal"
7961
+ };
7962
+ var MenuSeparator = (props) => {
7963
+ const {
7964
+ orientation = defaultProps46.orientation,
7965
+ ...other
7966
+ } = props;
7967
+ return /* @__PURE__ */ jsx151(
7968
+ "li",
7969
+ {
7970
+ ...other,
7971
+ className: classNames(
7972
+ props.className,
7973
+ "k-item",
7974
+ SEPARATOR_CLASSNAME,
7975
+ {
7976
+ [`${SEPARATOR_CLASSNAME}-${orientation}`]: orientation
7977
+ }
7978
+ )
7979
+ }
7980
+ );
7981
+ };
7982
+ var menu_separator_spec_default = MenuSeparator;
7983
+
7984
+ // src/menu/menu-item-content.tsx
7985
+ import { Fragment as Fragment39, jsx as jsx152 } from "react/jsx-runtime";
7986
+
7987
+ // src/menu/menu-list.spec.tsx
7988
+ import { jsx as jsx153 } from "react/jsx-runtime";
7989
+ import { createElement } from "react";
7990
+ var MENULIST_CLASSNAME = `k-menu-group`;
7991
+ var states51 = [];
7992
+ var options46 = {
7993
+ size: [Size.small, Size.medium, Size.large]
7994
+ };
7995
+ var defaultProps47 = {
7996
+ size: Size.medium,
7997
+ dir: "ltr"
7998
+ };
7999
+ var MenuList = (props) => {
8000
+ const {
8001
+ children,
8002
+ size = defaultProps47.size,
8003
+ dir = defaultProps47.dir,
8004
+ ...other
8005
+ } = props;
8006
+ const listChildren = [];
8007
+ if (children) {
8008
+ if (Array.isArray(children)) {
8009
+ children.map((child, index) => {
8010
+ if (child.type === menu_item_spec_default) {
8011
+ listChildren.push(
8012
+ /* @__PURE__ */ createElement(menu_item_spec_default, { ...child.props, dir, key: index })
8013
+ );
8014
+ } else if (child.type === menu_separator_spec_default) {
8015
+ listChildren.push(
8016
+ /* @__PURE__ */ jsx153(menu_separator_spec_default, {})
8017
+ );
8018
+ } else {
8019
+ listChildren.push(child);
8020
+ }
8021
+ });
8022
+ }
8023
+ }
8024
+ return /* @__PURE__ */ jsx153(
8025
+ "ul",
8026
+ {
8027
+ ...other,
8028
+ className: classNames(
8029
+ props.className,
8030
+ MENULIST_CLASSNAME,
8031
+ optionClassNames(MENULIST_CLASSNAME, {
8032
+ size
8033
+ })
8034
+ ),
8035
+ children: listChildren
8036
+ }
8037
+ );
8038
+ };
8039
+ MenuList.states = states51;
8040
+ MenuList.options = options46;
8041
+ MenuList.className = MENULIST_CLASSNAME;
8042
+ MenuList.defaultProps = defaultProps47;
8043
+
8044
+ // src/menu-button/templates/menu-button-popup.tsx
8045
+ import { jsx as jsx154, jsxs as jsxs57 } from "react/jsx-runtime";
8046
+
8047
+ // src/split-button/split-button.spec.tsx
8048
+ import { Fragment as Fragment40, jsx as jsx155, jsxs as jsxs58 } from "react/jsx-runtime";
8049
+ var SPLITBUTTON_CLASSNAME = `k-split-button`;
8050
+ var states52 = [
8051
+ States.hover,
8052
+ States.focus,
8053
+ States.active,
8054
+ States.selected,
8055
+ States.disabled
8056
+ ];
8057
+ var options47 = {
8058
+ size: [Size.small, Size.medium, Size.large],
8059
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
8060
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
8061
+ themeColor: [
8062
+ ThemeColor.base,
8063
+ ThemeColor.primary,
8064
+ ThemeColor.secondary,
8065
+ ThemeColor.tertiary,
8066
+ ThemeColor.success,
8067
+ ThemeColor.warning,
8068
+ ThemeColor.error,
8069
+ ThemeColor.info,
8070
+ ThemeColor.light,
8071
+ ThemeColor.dark,
8072
+ ThemeColor.inverse
8073
+ ]
8074
+ };
8075
+ var defaultProps48 = {
8076
+ size: Size.medium,
8077
+ rounded: Roundness.medium,
8078
+ fillMode: FillMode.solid,
8079
+ themeColor: ThemeColor.base,
8080
+ arrowIconName: "caret-alt-down"
8081
+ };
8082
+ var SplitButton = (props) => {
8083
+ const {
8084
+ size = defaultProps48.size,
8085
+ rounded = defaultProps48.rounded,
8086
+ fillMode = defaultProps48.fillMode,
8087
+ themeColor = defaultProps48.themeColor,
8088
+ hover,
8089
+ focus,
8090
+ active,
8091
+ selected,
8092
+ disabled,
8093
+ icon,
8094
+ text,
8095
+ arrowIconName = defaultProps48.arrowIconName,
8096
+ popup,
8097
+ opened,
8098
+ ...other
8099
+ } = props;
8100
+ return /* @__PURE__ */ jsxs58(Fragment40, { children: [
8101
+ /* @__PURE__ */ jsxs58(
8102
+ "div",
8103
+ {
8104
+ ...other,
8105
+ className: classNames(
8106
+ props.className,
8107
+ SPLITBUTTON_CLASSNAME,
8108
+ "k-button-group",
8109
+ optionClassNames(SPLITBUTTON_CLASSNAME, {
8110
+ rounded
8111
+ })
8112
+ ),
8113
+ children: [
8114
+ /* @__PURE__ */ jsx155(
8115
+ Button,
8116
+ {
8117
+ text,
8118
+ icon,
8119
+ size,
8120
+ rounded,
8121
+ fillMode,
8122
+ themeColor,
8123
+ hover,
8124
+ focus,
8125
+ active,
8126
+ selected,
8127
+ disabled,
8128
+ children: props.children
8129
+ }
8130
+ ),
8131
+ /* @__PURE__ */ jsx155(
8132
+ Button,
8133
+ {
8134
+ className: "k-split-button-arrow",
8135
+ icon: arrowIconName,
8136
+ size,
8137
+ rounded,
8138
+ fillMode,
8139
+ disabled
8140
+ }
8141
+ )
8142
+ ]
8143
+ }
8144
+ ),
8145
+ opened && popup && /* @__PURE__ */ jsx155(Popup, { className: "k-menu-popup", children: popup })
8146
+ ] });
8147
+ };
8148
+ SplitButton.states = states52;
8149
+ SplitButton.options = options47;
8150
+ SplitButton.className = SPLITBUTTON_CLASSNAME;
8151
+ SplitButton.defaultProps = defaultProps48;
8152
+ var split_button_spec_default = SplitButton;
8153
+
8154
+ // src/toolbar/toolbar.spec.tsx
8155
+ import { jsx as jsx156 } from "react/jsx-runtime";
8156
+ var TOOLBAR_CLASSNAME = `k-toolbar`;
8157
+ var states53 = [
8158
+ States.focus
8159
+ ];
8160
+ var options48 = {
8161
+ size: [Size.small, Size.medium, Size.large]
8162
+ };
8163
+ var defaultProps49 = {
8164
+ size: Size.medium
8165
+ };
8166
+ var Toolbar = (props) => {
8167
+ const {
8168
+ size = defaultProps49.size,
8169
+ focus,
8170
+ resizable,
8171
+ ...other
8172
+ } = props;
8173
+ const toolbarChildren = [];
8174
+ const addUniqueToolClass = (child, index) => {
8175
+ const tempToolbarChildren = [];
8176
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
8177
+ tempToolbarChildren.push(
8178
+ /* @__PURE__ */ jsx156(
8179
+ Button,
8180
+ {
8181
+ ...child.props,
8182
+ className: `${child.props.className ? child.props.className : ""}`
8183
+ },
8184
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8185
+ )
8186
+ );
8187
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
8188
+ tempToolbarChildren.push(
8189
+ /* @__PURE__ */ jsx156(
8190
+ Button,
8191
+ {
8192
+ ...child.props,
8193
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
8194
+ },
8195
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8196
+ )
8197
+ );
8198
+ } else if (child.type === Button) {
8199
+ tempToolbarChildren.push(
8200
+ /* @__PURE__ */ jsx156(
8201
+ Button,
8202
+ {
8203
+ ...child.props,
8204
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
8205
+ },
8206
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8207
+ )
8208
+ );
8209
+ } else if (child.type === MenuButton) {
8210
+ tempToolbarChildren.push(
8211
+ /* @__PURE__ */ jsx156(
8212
+ MenuButton,
8213
+ {
8214
+ ...child.props,
8215
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
8216
+ },
8217
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8218
+ )
8219
+ );
8220
+ } else if (child.type === split_button_spec_default) {
8221
+ tempToolbarChildren.push(
8222
+ /* @__PURE__ */ jsx156(
8223
+ split_button_spec_default,
8224
+ {
8225
+ ...child.props,
8226
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
8227
+ },
8228
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8229
+ )
8230
+ );
8231
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
8232
+ const buttonGroupItems = [];
8233
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
8234
+ childrenArray.forEach((button, bindex) => {
8235
+ buttonGroupItems.push(
8236
+ /* @__PURE__ */ jsx156(
8237
+ Button,
8238
+ {
8239
+ ...button.props,
8240
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
8241
+ },
8242
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
8243
+ )
8244
+ );
8245
+ });
8246
+ tempToolbarChildren.push(
8247
+ /* @__PURE__ */ jsx156(
8248
+ ButtonGroup,
8249
+ {
8250
+ ...child.props,
8251
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
8252
+ children: buttonGroupItems
8253
+ },
8254
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8255
+ )
8256
+ );
8257
+ } else if (child.type === Combobox) {
8258
+ tempToolbarChildren.push(
8259
+ /* @__PURE__ */ jsx156(
8260
+ Combobox,
8261
+ {
8262
+ ...child.props,
8263
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
8264
+ },
8265
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8266
+ )
8267
+ );
8268
+ } else if (child.type === DropdownList) {
8269
+ tempToolbarChildren.push(
8270
+ /* @__PURE__ */ jsx156(
8271
+ DropdownList,
8272
+ {
8273
+ ...child.props,
8274
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
8275
+ },
8276
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8277
+ )
8278
+ );
8279
+ } else if (child.type === ColorPicker) {
8280
+ tempToolbarChildren.push(
8281
+ /* @__PURE__ */ jsx156(
8282
+ ColorPicker,
8283
+ {
8284
+ ...child.props,
8285
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
8286
+ },
8287
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8288
+ )
8289
+ );
8290
+ } else {
8291
+ tempToolbarChildren.push(child);
8292
+ }
8293
+ tempToolbarChildren.forEach((item) => {
8294
+ toolbarChildren.push(item);
8295
+ });
8296
+ };
8297
+ if (props.children) {
8298
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
8299
+ childrenArray.forEach((child, index) => {
8300
+ addUniqueToolClass(child, index);
8301
+ });
8302
+ }
8303
+ return /* @__PURE__ */ jsx156(
8304
+ "div",
8305
+ {
8306
+ ...other,
8307
+ className: classNames(
8308
+ props.className,
8309
+ TOOLBAR_CLASSNAME,
8310
+ optionClassNames(TOOLBAR_CLASSNAME, {
8311
+ size
8312
+ }),
8313
+ stateClassNames(TOOLBAR_CLASSNAME, {
8314
+ focus
8315
+ }),
8316
+ {
8317
+ [`${TOOLBAR_CLASSNAME}-resizable`]: resizable
8318
+ }
8319
+ ),
8320
+ children: toolbarChildren
8321
+ }
8322
+ );
8323
+ };
8324
+ Toolbar.states = states53;
8325
+ Toolbar.options = options48;
8326
+ Toolbar.className = TOOLBAR_CLASSNAME;
8327
+ Toolbar.defaultProps = defaultProps49;
8328
+
8329
+ // src/toolbar/toolbar-angular.spec.tsx
8330
+ import { jsx as jsx157 } from "react/jsx-runtime";
8331
+ var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
8332
+ var states54 = [
8333
+ States.focus
8334
+ ];
8335
+ var options49 = {
8336
+ size: [Size.small, Size.medium, Size.large]
8337
+ };
8338
+ var defaultProps50 = {
8339
+ size: Size.medium
8340
+ };
8341
+ var ToolbarAngular = (props) => {
8342
+ const {
8343
+ size = defaultProps50.size,
8344
+ focus,
8345
+ resizable,
8346
+ ...other
8347
+ } = props;
8348
+ const toolbarChildren = [];
8349
+ const addUniqueToolClass = (child, index) => {
8350
+ const tempToolbarChildren = [];
8351
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
8352
+ tempToolbarChildren.push(
8353
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8354
+ Button,
8355
+ {
8356
+ ...child.props,
8357
+ className: `${child.props.className ? child.props.className : ""}`
8358
+ },
8359
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8360
+ ) })
8361
+ );
8362
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
8363
+ tempToolbarChildren.push(
8364
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8365
+ Button,
8366
+ {
8367
+ ...child.props,
8368
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
8369
+ },
8370
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8371
+ ) })
8372
+ );
8373
+ } else if (child.type === Button) {
8374
+ tempToolbarChildren.push(
8375
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8376
+ Button,
8377
+ {
8378
+ ...child.props,
8379
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
8380
+ },
8381
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8382
+ ) })
8383
+ );
8384
+ } else if (child.type === MenuButton) {
8385
+ tempToolbarChildren.push(
8386
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8387
+ MenuButton,
8388
+ {
8389
+ ...child.props,
8390
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
8391
+ },
8392
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8393
+ ) })
8394
+ );
8395
+ } else if (child.type === split_button_spec_default) {
8396
+ tempToolbarChildren.push(
8397
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8398
+ split_button_spec_default,
8399
+ {
8400
+ ...child.props,
8401
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
8402
+ },
8403
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8404
+ ) })
8405
+ );
8406
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
8407
+ const buttonGroupItems = [];
8408
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
8409
+ childrenArray.forEach((button, bindex) => {
8410
+ buttonGroupItems.push(
8411
+ /* @__PURE__ */ jsx157(
8412
+ Button,
8413
+ {
8414
+ ...button.props,
8415
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
8416
+ },
8417
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
8418
+ )
8419
+ );
8420
+ });
8421
+ tempToolbarChildren.push(
8422
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8423
+ ButtonGroup,
8424
+ {
8425
+ ...child.props,
8426
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
8427
+ children: buttonGroupItems
8428
+ },
8429
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8430
+ ) })
8431
+ );
8432
+ } else if (child.type === Combobox) {
8433
+ tempToolbarChildren.push(
8434
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8435
+ Combobox,
8436
+ {
8437
+ ...child.props,
8438
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
8439
+ },
8440
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8441
+ ) })
8442
+ );
8443
+ } else if (child.type === DropdownList) {
8444
+ tempToolbarChildren.push(
8445
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8446
+ DropdownList,
8447
+ {
8448
+ ...child.props,
8449
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
8450
+ },
8451
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8452
+ ) })
8453
+ );
8454
+ } else if (child.type === ColorPicker) {
8455
+ tempToolbarChildren.push(
8456
+ /* @__PURE__ */ jsx157("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ jsx157(
8457
+ ColorPicker,
8458
+ {
8459
+ ...child.props,
8460
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
8461
+ },
8462
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
8463
+ ) })
8464
+ );
8465
+ } else {
8466
+ tempToolbarChildren.push(child);
8467
+ }
8468
+ tempToolbarChildren.forEach((item) => {
8469
+ toolbarChildren.push(item);
8470
+ });
8471
+ };
8472
+ if (props.children) {
8473
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
8474
+ childrenArray.forEach((child, index) => {
8475
+ addUniqueToolClass(child, index);
8476
+ });
8477
+ }
8478
+ return /* @__PURE__ */ jsx157(
8479
+ "div",
8480
+ {
8481
+ ...other,
8482
+ className: classNames(
8483
+ props.className,
8484
+ TOOLBARANGULAR_CLASSNAME,
8485
+ optionClassNames(TOOLBARANGULAR_CLASSNAME, {
8486
+ size
8487
+ }),
8488
+ stateClassNames(TOOLBARANGULAR_CLASSNAME, {
8489
+ focus
8490
+ }),
8491
+ {
8492
+ [`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
8493
+ }
8494
+ ),
8495
+ children: toolbarChildren
8496
+ }
8497
+ );
8498
+ };
8499
+ ToolbarAngular.states = states54;
8500
+ ToolbarAngular.options = options49;
8501
+ ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
8502
+ ToolbarAngular.defaultProps = defaultProps50;
8503
+
8504
+ // src/toolbar/toolbar-separator.tsx
8505
+ import { jsx as jsx158 } from "react/jsx-runtime";
8506
+
8507
+ // src/toolbar/toolbar-item.spec.tsx
8508
+ import { jsx as jsx159 } from "react/jsx-runtime";
8509
+ var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
8510
+ var states55 = [
8511
+ States.focus
8512
+ ];
8513
+ var options50 = {};
8514
+ var defaultProps51 = {};
8515
+ var ToolbarItem = (props) => {
8516
+ const {
8517
+ focus,
8518
+ ...other
8519
+ } = props;
8520
+ return /* @__PURE__ */ jsx159(
8521
+ "div",
8522
+ {
8523
+ ...other,
8524
+ className: classNames(
8525
+ props.className,
8526
+ TOOLBARITEM_CLASSNAME,
8527
+ stateClassNames(TOOLBARITEM_CLASSNAME, {
8528
+ focus
8529
+ })
8530
+ ),
8531
+ children: props.children
8532
+ }
8533
+ );
8534
+ };
8535
+ ToolbarItem.states = states55;
8536
+ ToolbarItem.options = options50;
8537
+ ToolbarItem.className = TOOLBARITEM_CLASSNAME;
8538
+ ToolbarItem.defaultProps = defaultProps51;
8539
+
8540
+ // src/toolbar/toolbar-popup.spec.tsx
8541
+ import { jsx as jsx160 } from "react/jsx-runtime";
8542
+ var TOOLBARPOPUP_CLASSNAME = `k-toolbar-popup`;
8543
+ var states56 = [];
8544
+ var options51 = {};
8545
+ var defaultProps52 = {};
8546
+ var ToolbarPopup = (props) => {
8547
+ const { ...other } = props;
8548
+ return /* @__PURE__ */ jsx160(
8549
+ Popup,
8550
+ {
8551
+ ...other,
8552
+ className: classNames(
8553
+ props.className,
8554
+ TOOLBARPOPUP_CLASSNAME
8555
+ ),
8556
+ children: props.children
8557
+ }
8558
+ );
8559
+ };
8560
+ ToolbarPopup.states = states56;
8561
+ ToolbarPopup.options = options51;
8562
+ ToolbarPopup.className = TOOLBARPOPUP_CLASSNAME;
8563
+ ToolbarPopup.defaultProps = defaultProps52;
8564
+
8565
+ // src/split-button/templates/icon-split-button.tsx
8566
+ import { jsx as jsx161 } from "react/jsx-runtime";
8567
+
8568
+ // src/split-button/templates/icon-text-split-button.tsx
8569
+ import { jsx as jsx162 } from "react/jsx-runtime";
8570
+
8571
+ // src/split-button/templates/text-split-button.tsx
8572
+ import { jsx as jsx163 } from "react/jsx-runtime";
8573
+
8574
+ // src/split-button/templates/split-button-popup.tsx
8575
+ import { jsx as jsx164, jsxs as jsxs59 } from "react/jsx-runtime";
8576
+
8577
+ // src/toolbar/templates/toolbar-normal.tsx
8578
+ import { Fragment as Fragment41, jsx as jsx165, jsxs as jsxs60 } from "react/jsx-runtime";
8579
+
8580
+ // src/toolbar/templates/toolbar-resizable.tsx
8581
+ import { jsx as jsx166 } from "react/jsx-runtime";
8582
+
8583
+ // src/toolbar/templates/toolbar-angular-normal.tsx
8584
+ import { jsx as jsx167 } from "react/jsx-runtime";
8585
+
8586
+ // src/toolbar/templates/toolbar-angular-resizable.tsx
8587
+ import { jsx as jsx168 } from "react/jsx-runtime";
8588
+
8589
+ // src/grid/grid-toolbar.spec.tsx
8590
+ import { jsx as jsx169 } from "react/jsx-runtime";
8591
+
8592
+ // src/treelist/treelist.spec.tsx
8593
+ import { jsx as jsx170 } from "react/jsx-runtime";
8594
+ var TREELIST_CLASSNAME = "k-treelist";
8595
+ var states57 = [];
8596
+ var options52 = {};
8597
+ var defaultProps53 = {};
8598
+ var TreeList = (props) => /* @__PURE__ */ jsx170(
8599
+ Grid,
8600
+ {
8601
+ ...props,
8602
+ className: classNames(
8603
+ TREELIST_CLASSNAME,
8604
+ props.className
8605
+ ),
8606
+ children: props.children
8607
+ }
8608
+ );
8609
+ TreeList.states = states57;
8610
+ TreeList.options = options52;
8611
+ TreeList.className = TREELIST_CLASSNAME;
8612
+ TreeList.defaultProps = defaultProps53;
8613
+
4302
8614
  // src/treelist/tests/treelist-row-reordering.tsx
4303
- import { Fragment as Fragment4, jsx as jsx4, jsxs } from "react/jsx-runtime";
4304
- var treelist_row_reordering_default = () => /* @__PURE__ */ jsx4(Fragment4, { children: /* @__PURE__ */ jsx4("div", { id: "test-area", children: /* @__PURE__ */ jsxs("div", { id: "treelist", className: "k-treelist k-grid k-grid-md k-grid-no-scrollbar", children: [
4305
- /* @__PURE__ */ jsx4("div", { className: "k-grid-header", style: { paddingRight: "0px" }, children: /* @__PURE__ */ jsx4("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-header-table", children: [
4306
- /* @__PURE__ */ jsxs("colgroup", { children: [
4307
- /* @__PURE__ */ jsx4("col", { className: "k-drag-col" }),
4308
- /* @__PURE__ */ jsx4("col", { style: { width: "250px" } }),
4309
- /* @__PURE__ */ jsx4("col", {})
8615
+ import { Fragment as Fragment42, jsx as jsx171, jsxs as jsxs61 } from "react/jsx-runtime";
8616
+ var treelist_row_reordering_default = () => /* @__PURE__ */ jsx171(Fragment42, { children: /* @__PURE__ */ jsx171("div", { id: "test-area", children: /* @__PURE__ */ jsxs61(TreeList, { id: "treelist", className: "k-grid-no-scrollbar", children: [
8617
+ /* @__PURE__ */ jsx171(GridHeader, { style: { paddingRight: "0px" }, children: /* @__PURE__ */ jsx171("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ jsxs61(GridHeaderTable, { children: [
8618
+ /* @__PURE__ */ jsxs61("colgroup", { children: [
8619
+ /* @__PURE__ */ jsx171("col", { className: "k-drag-col" }),
8620
+ /* @__PURE__ */ jsx171("col", { style: { width: "250px" } }),
8621
+ /* @__PURE__ */ jsx171("col", {})
4310
8622
  ] }),
4311
- /* @__PURE__ */ jsx4("thead", { className: "k-table-thead", children: /* @__PURE__ */ jsxs("tr", { className: "k-table-row", children: [
4312
- /* @__PURE__ */ jsx4("th", { className: "k-table-th k-header k-drag-cell" }),
4313
- /* @__PURE__ */ jsx4("th", { className: "k-table-th k-header", children: /* @__PURE__ */ jsx4("span", { className: "k-cell-inner", children: /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "First Name" }) }) }) }),
4314
- /* @__PURE__ */ jsx4("th", { className: "k-table-th k-header", children: /* @__PURE__ */ jsx4("span", { className: "k-cell-inner", children: /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Last Name" }) }) }) }),
4315
- /* @__PURE__ */ jsx4("th", { className: "k-table-th k-header", children: /* @__PURE__ */ jsx4("span", { className: "k-cell-inner", children: /* @__PURE__ */ jsx4("span", { className: "k-link", children: /* @__PURE__ */ jsx4("span", { className: "k-column-title", children: "Position" }) }) }) })
8623
+ /* @__PURE__ */ jsx171(TableThead, { children: /* @__PURE__ */ jsxs61(TableRow, { children: [
8624
+ /* @__PURE__ */ jsx171(GridHeaderCell, { className: "k-drag-cell" }),
8625
+ /* @__PURE__ */ jsx171(GridHeaderCell, { columnTitle: "First Name" }),
8626
+ /* @__PURE__ */ jsx171(GridHeaderCell, { columnTitle: "Last Name" }),
8627
+ /* @__PURE__ */ jsx171(GridHeaderCell, { columnTitle: "Position" })
4316
8628
  ] }) })
4317
8629
  ] }) }) }),
4318
- /* @__PURE__ */ jsx4("div", { className: "k-grid-content k-auto-scrollable", children: /* @__PURE__ */ jsxs("table", { className: "k-table k-table-md k-grid-table", children: [
4319
- /* @__PURE__ */ jsxs("colgroup", { children: [
4320
- /* @__PURE__ */ jsx4("col", { className: "k-drag-col" }),
4321
- /* @__PURE__ */ jsx4("col", { style: { width: "250px" } }),
4322
- /* @__PURE__ */ jsx4("col", {})
8630
+ /* @__PURE__ */ jsx171(GridContainer, { children: /* @__PURE__ */ jsx171(GridContent, { className: "k-auto-scrollable", children: /* @__PURE__ */ jsxs61(GridTable, { children: [
8631
+ /* @__PURE__ */ jsxs61("colgroup", { children: [
8632
+ /* @__PURE__ */ jsx171("col", { className: "k-drag-col" }),
8633
+ /* @__PURE__ */ jsx171("col", { style: { width: "250px" } }),
8634
+ /* @__PURE__ */ jsx171("col", {})
4323
8635
  ] }),
4324
- /* @__PURE__ */ jsxs("tbody", { className: "k-table-tbody", children: [
4325
- /* @__PURE__ */ jsxs("tr", { className: "k-table-row", children: [
4326
- /* @__PURE__ */ jsx4("td", { className: "k-table-td k-drag-cell", children: /* @__PURE__ */ jsx4(Icon, { icon: "reorder" }) }),
4327
- /* @__PURE__ */ jsxs("td", { className: "k-table-td", children: [
4328
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "caret-alt-right" }),
8636
+ /* @__PURE__ */ jsxs61(TableTbody, { children: [
8637
+ /* @__PURE__ */ jsxs61(TableRow, { children: [
8638
+ /* @__PURE__ */ jsx171(TableTd, { className: "k-drag-cell", children: /* @__PURE__ */ jsx171(Icon, { icon: "reorder" }) }),
8639
+ /* @__PURE__ */ jsxs61(TableTd, { children: [
8640
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "caret-alt-right" }),
4329
8641
  "Daryl"
4330
8642
  ] }),
4331
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Sweeney" }),
4332
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "CEO" })
8643
+ /* @__PURE__ */ jsx171(TableTd, { children: "Sweeney" }),
8644
+ /* @__PURE__ */ jsx171(TableTd, { children: "CEO" })
4333
8645
  ] }),
4334
- /* @__PURE__ */ jsxs("tr", { className: "k-table-row k-table-alt-row k-alt k-treelist-group", children: [
4335
- /* @__PURE__ */ jsx4("td", { className: "k-table-td k-drag-cell", children: /* @__PURE__ */ jsx4(Icon, { icon: "reorder" }) }),
4336
- /* @__PURE__ */ jsxs("td", { className: "k-table-td", children: [
4337
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4338
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "caret-alt-down" }),
8646
+ /* @__PURE__ */ jsxs61(TableRow, { className: "k-treelist-group k-alt", alt: true, children: [
8647
+ /* @__PURE__ */ jsx171(TableTd, { className: "k-drag-cell", children: /* @__PURE__ */ jsx171(Icon, { icon: "reorder" }) }),
8648
+ /* @__PURE__ */ jsxs61(TableTd, { children: [
8649
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8650
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "caret-alt-down" }),
4339
8651
  "Guy"
4340
8652
  ] }),
4341
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Wooten" }),
4342
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Chief Technical Officer" })
8653
+ /* @__PURE__ */ jsx171(TableTd, { children: "Wooten" }),
8654
+ /* @__PURE__ */ jsx171(TableTd, { children: "Chief Technical Officer" })
4343
8655
  ] }),
4344
- /* @__PURE__ */ jsxs("tr", { className: "k-table-row k-treelist-group", children: [
4345
- /* @__PURE__ */ jsx4("td", { className: "k-table-td k-drag-cell", children: /* @__PURE__ */ jsx4(Icon, { icon: "reorder" }) }),
4346
- /* @__PURE__ */ jsxs("td", { className: "k-table-td", children: [
4347
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4348
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4349
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "caret-alt-down" }),
8656
+ /* @__PURE__ */ jsxs61(TableRow, { className: "k-treelist-group", children: [
8657
+ /* @__PURE__ */ jsx171(TableTd, { className: "k-drag-cell", children: /* @__PURE__ */ jsx171(Icon, { icon: "reorder" }) }),
8658
+ /* @__PURE__ */ jsxs61(TableTd, { children: [
8659
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8660
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8661
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "caret-alt-down" }),
4350
8662
  "Buffy"
4351
8663
  ] }),
4352
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Weber" }),
4353
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "VP, Engineering" })
8664
+ /* @__PURE__ */ jsx171(TableTd, { children: "Weber" }),
8665
+ /* @__PURE__ */ jsx171(TableTd, { children: "VP, Engineering" })
4354
8666
  ] }),
4355
- /* @__PURE__ */ jsxs("tr", { className: "k-table-row k-table-alt-row k-alt k-treelist-group", children: [
4356
- /* @__PURE__ */ jsx4("td", { className: "k-table-td k-drag-cell", children: /* @__PURE__ */ jsx4(Icon, { icon: "reorder" }) }),
4357
- /* @__PURE__ */ jsxs("td", { className: "k-table-td", children: [
4358
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4359
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4360
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4361
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "caret-alt-down" }),
8667
+ /* @__PURE__ */ jsxs61(TableRow, { className: "k-treelist-group k-alt", alt: true, children: [
8668
+ /* @__PURE__ */ jsx171(TableTd, { className: "k-drag-cell", children: /* @__PURE__ */ jsx171(Icon, { icon: "reorder" }) }),
8669
+ /* @__PURE__ */ jsxs61(TableTd, { children: [
8670
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8671
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8672
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8673
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "caret-alt-down" }),
4362
8674
  "Hyacinth"
4363
8675
  ] }),
4364
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Hood" }),
4365
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Team Lead" })
8676
+ /* @__PURE__ */ jsx171(TableTd, { children: "Hood" }),
8677
+ /* @__PURE__ */ jsx171(TableTd, { children: "Team Lead" })
4366
8678
  ] }),
4367
- /* @__PURE__ */ jsxs("tr", { className: "k-table-row", children: [
4368
- /* @__PURE__ */ jsx4("td", { className: "k-table-td k-drag-cell", children: /* @__PURE__ */ jsx4(Icon, { icon: "reorder" }) }),
4369
- /* @__PURE__ */ jsxs("td", { className: "k-table-td", children: [
4370
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4371
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4372
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4373
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
4374
- /* @__PURE__ */ jsx4(Icon, { className: "k-treelist-toggle", icon: "none" }),
8679
+ /* @__PURE__ */ jsxs61(TableRow, { children: [
8680
+ /* @__PURE__ */ jsx171(TableTd, { className: "k-drag-cell", children: /* @__PURE__ */ jsx171(Icon, { icon: "reorder" }) }),
8681
+ /* @__PURE__ */ jsxs61(TableTd, { children: [
8682
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8683
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8684
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8685
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
8686
+ /* @__PURE__ */ jsx171(Icon, { className: "k-treelist-toggle", icon: "none" }),
4375
8687
  "Akeem"
4376
8688
  ] }),
4377
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Carr" }),
4378
- /* @__PURE__ */ jsx4("td", { className: "k-table-td", children: "Junior Software Developer" })
8689
+ /* @__PURE__ */ jsx171(TableTd, { children: "Carr" }),
8690
+ /* @__PURE__ */ jsx171(TableTd, { children: "Junior Software Developer" })
4379
8691
  ] })
4380
8692
  ] })
4381
- ] }) })
8693
+ ] }) }) })
4382
8694
  ] }) }) });
4383
8695
  export {
4384
8696
  treelist_row_reordering_default as default