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