@progress/kendo-themes-html 6.2.1-dev.0 → 6.2.1-dev.44

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 (116) hide show
  1. package/dist/action-sheet/tests/action-sheet-data-table.js +382 -2
  2. package/dist/action-sheet/tests/action-sheet-data-table.js.map +4 -4
  3. package/dist/dropdowngrid/dropdowngrid.js +1 -1
  4. package/dist/dropdowngrid/dropdowngrid.js.map +2 -2
  5. package/dist/dropdowngrid/tests/dropdowngrid-flat.js +1 -1
  6. package/dist/dropdowngrid/tests/dropdowngrid-flat.js.map +2 -2
  7. package/dist/dropdowngrid/tests/dropdowngrid-outline.js +1 -1
  8. package/dist/dropdowngrid/tests/dropdowngrid-outline.js.map +2 -2
  9. package/dist/dropdowngrid/tests/dropdowngrid.js +1 -1
  10. package/dist/dropdowngrid/tests/dropdowngrid.js.map +2 -2
  11. package/dist/fab/fab-item.js +104 -0
  12. package/dist/fab/fab-item.js.map +7 -0
  13. package/dist/fab/fab-items.js +64 -0
  14. package/dist/fab/fab-items.js.map +7 -0
  15. package/dist/fab/tests/fab-items.js +51 -4
  16. package/dist/fab/tests/fab-items.js.map +4 -4
  17. package/dist/fab/tests/fab-position.js +6 -0
  18. package/dist/fab/tests/fab-position.js.map +4 -4
  19. package/dist/fab/tests/fab-size.js +6 -0
  20. package/dist/fab/tests/fab-size.js.map +4 -4
  21. package/dist/fab/tests/fab-states.js +6 -0
  22. package/dist/fab/tests/fab-states.js.map +4 -4
  23. package/dist/fab/tests/fab.js +6 -0
  24. package/dist/fab/tests/fab.js.map +4 -4
  25. package/dist/grid/tests/grid-rows-resizing.js +1131 -0
  26. package/dist/grid/tests/grid-rows-resizing.js.map +7 -0
  27. package/dist/index.js +711 -184
  28. package/dist/index.js.map +4 -4
  29. package/dist/popup/tests/popup-dropdowngrid.js +508 -0
  30. package/dist/popup/tests/popup-dropdowngrid.js.map +7 -0
  31. package/dist/table/data-table.js +97 -0
  32. package/dist/table/data-table.js.map +7 -0
  33. package/dist/table/table-body.js +67 -0
  34. package/dist/table/table-body.js.map +7 -0
  35. package/dist/table/table-footer.js +66 -0
  36. package/dist/table/table-footer.js.map +7 -0
  37. package/dist/table/table-group-header.js +66 -0
  38. package/dist/table/table-group-header.js.map +7 -0
  39. package/dist/table/table-group-row.js +66 -0
  40. package/dist/table/table-group-row.js.map +7 -0
  41. package/dist/table/table-group-sticky-header.js +66 -0
  42. package/dist/table/table-group-sticky-header.js.map +7 -0
  43. package/dist/table/table-header.js +115 -0
  44. package/dist/table/table-header.js.map +7 -0
  45. package/dist/table/table-list-group-row.js +66 -0
  46. package/dist/table/table-list-group-row.js.map +7 -0
  47. package/dist/table/table-list-row.js +78 -0
  48. package/dist/table/table-list-row.js.map +7 -0
  49. package/dist/table/table-list-td.js +103 -0
  50. package/dist/table/table-list-td.js.map +7 -0
  51. package/dist/table/table-list-th.js +103 -0
  52. package/dist/table/table-list-th.js.map +7 -0
  53. package/dist/table/table-list.js +97 -0
  54. package/dist/table/table-list.js.map +7 -0
  55. package/dist/table/table-row.js +78 -0
  56. package/dist/table/table-row.js.map +7 -0
  57. package/dist/table/table-tbody.js +66 -0
  58. package/dist/table/table-tbody.js.map +7 -0
  59. package/dist/table/table-td.js +105 -0
  60. package/dist/table/table-td.js.map +7 -0
  61. package/dist/table/table-tfoot.js +66 -0
  62. package/dist/table/table-tfoot.js.map +7 -0
  63. package/dist/table/table-th.js +105 -0
  64. package/dist/table/table-th.js.map +7 -0
  65. package/dist/table/table-thead.js +66 -0
  66. package/dist/table/table-thead.js.map +7 -0
  67. package/dist/table/table.js +94 -0
  68. package/dist/table/table.js.map +7 -0
  69. package/dist/table/tests/table-data-sizes.js +392 -1
  70. package/dist/table/tests/table-data-sizes.js.map +4 -4
  71. package/dist/table/tests/table-list-jquery.js +409 -1
  72. package/dist/table/tests/table-list-jquery.js.map +4 -4
  73. package/dist/table/tests/table-list-sizes.js +453 -1
  74. package/dist/table/tests/table-list-sizes.js.map +4 -4
  75. package/dist/table/tests/table-list-virtual.js +373 -1
  76. package/dist/table/tests/table-list-virtual.js.map +4 -4
  77. package/dist/table/tests/table-native-sizes.js +335 -1
  78. package/dist/table/tests/table-native-sizes.js.map +4 -4
  79. package/dist/table/tests/table-native-states.js +299 -1
  80. package/dist/table/tests/table-native-states.js.map +4 -4
  81. package/package.json +2 -2
  82. package/src/action-sheet/tests/action-sheet-data-table.tsx +119 -144
  83. package/src/dropdowngrid/dropdowngrid.tsx +1 -1
  84. package/src/fab/fab-item.tsx +48 -0
  85. package/src/fab/fab-items.tsx +32 -0
  86. package/src/fab/index.ts +2 -0
  87. package/src/fab/tests/fab-items.tsx +65 -250
  88. package/src/grid/tests/grid-rows-resizing.tsx +202 -0
  89. package/src/index.ts +3 -0
  90. package/src/popup/tests/popup-dropdowngrid.tsx +163 -0
  91. package/src/table/data-table.tsx +37 -0
  92. package/src/table/index.ts +19 -0
  93. package/src/table/table-body.tsx +29 -0
  94. package/src/table/table-footer.tsx +28 -0
  95. package/src/table/table-group-header.tsx +28 -0
  96. package/src/table/table-group-row.tsx +28 -0
  97. package/src/table/table-group-sticky-header.tsx +28 -0
  98. package/src/table/table-header.tsx +31 -0
  99. package/src/table/table-list-group-row.tsx +28 -0
  100. package/src/table/table-list-row.tsx +45 -0
  101. package/src/table/table-list-td.tsx +38 -0
  102. package/src/table/table-list-th.tsx +38 -0
  103. package/src/table/table-list.tsx +37 -0
  104. package/src/table/table-row.tsx +45 -0
  105. package/src/table/table-tbody.tsx +28 -0
  106. package/src/table/table-td.tsx +39 -0
  107. package/src/table/table-tfoot.tsx +28 -0
  108. package/src/table/table-th.tsx +39 -0
  109. package/src/table/table-thead.tsx +28 -0
  110. package/src/table/table.tsx +33 -0
  111. package/src/table/tests/table-data-sizes.tsx +205 -228
  112. package/src/table/tests/table-list-jquery.tsx +187 -204
  113. package/src/table/tests/table-list-sizes.tsx +178 -189
  114. package/src/table/tests/table-list-virtual.tsx +76 -79
  115. package/src/table/tests/table-native-sizes.tsx +157 -168
  116. package/src/table/tests/table-native-states.tsx +62 -61
@@ -0,0 +1,97 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/data-table.tsx
29
+ var React = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/utils/theme.ts
47
+ var kendoThemeMaps = {
48
+ sizeMap: {
49
+ small: "sm",
50
+ medium: "md",
51
+ large: "lg"
52
+ },
53
+ roundedMap: {
54
+ small: "sm",
55
+ medium: "md",
56
+ large: "lg"
57
+ },
58
+ calloutMap: {
59
+ top: "n",
60
+ bottom: "s",
61
+ left: "w",
62
+ right: "e"
63
+ },
64
+ orientationMap: {
65
+ vertical: "vstack",
66
+ horizontal: "hstack"
67
+ }
68
+ };
69
+
70
+ // src/table/data-table.tsx
71
+ var DataTable = class extends React.Component {
72
+ render() {
73
+ const {
74
+ children,
75
+ className,
76
+ size
77
+ } = this.props;
78
+ return /* @__PURE__ */ React.createElement(
79
+ "div",
80
+ {
81
+ className: classNames(
82
+ className,
83
+ "k-data-table",
84
+ {
85
+ [`k-table-${kendoThemeMaps.sizeMap[size] || size}`]: size
86
+ }
87
+ )
88
+ },
89
+ children
90
+ );
91
+ }
92
+ };
93
+ DataTable.defaultProps = {
94
+ size: "medium"
95
+ };
96
+ })();
97
+ //# sourceMappingURL=data-table.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/data-table.tsx", "../../src/utils/classNames.ts", "../../src/utils/theme.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\n\nexport interface DataTableProps {\n children?: React.ReactNode;\n className?: string;\n size?: null | 'small' | 'medium' | 'large';\n}\n\n\nexport class DataTable extends React.Component<DataTableProps> {\n\n static defaultProps = {\n size: 'medium',\n };\n\n render() {\n const {\n children,\n className,\n size,\n } = this.props;\n\n return (\n <div\n className={classNames(\n className,\n 'k-data-table',\n {\n [`k-table-${kendoThemeMaps.sizeMap[size!] || size}`]: size,\n }\n )}>\n {children}\n </div>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n", "export interface KendoThemeMaps {\n sizeMap: Record<Exclude<any, null>, string>;\n roundedMap: Record<Exclude<any, null>, string>;\n calloutMap: Record<Exclude<any, null>, string>;\n orientationMap: Record<Exclude<any, null>, string>;\n}\n\nexport const kendoThemeMaps: KendoThemeMaps = {\n sizeMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n roundedMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ACnBO,MAAM,iBAAiC;AAAA,IAC1C,SAAS;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACR,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,IACA,gBAAgB;AAAA,MACZ,UAAU;AAAA,MACV,YAAY;AAAA,IAChB;AAAA,EACJ;;;AFlBO,MAAM,YAAN,cAA8B,gBAA0B;AAAA,IAM3D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,cACI,CAAC,WAAW,eAAe,QAAQ,SAAU,SAAS;AAAA,YAC1D;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;AAxBI,EAFS,UAEF,eAAe;AAAA,IAClB,MAAM;AAAA,EACV;",
6
+ "names": []
7
+ }
@@ -0,0 +1,67 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/table-body.tsx
29
+ var React = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/table/table-body.tsx
47
+ var TableBody = class extends React.Component {
48
+ render() {
49
+ const {
50
+ children,
51
+ className
52
+ } = this.props;
53
+ return /* @__PURE__ */ React.createElement(
54
+ "div",
55
+ {
56
+ className: classNames(
57
+ className,
58
+ "k-table-body",
59
+ "k-table-scroller"
60
+ )
61
+ },
62
+ children
63
+ );
64
+ }
65
+ };
66
+ })();
67
+ //# sourceMappingURL=table-body.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/table-body.tsx", "../../src/utils/classNames.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableBodyProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableBody extends React.Component<TableBodyProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <div\n className={classNames(\n className,\n 'k-table-body',\n 'k-table-scroller'\n )}>\n {children}\n </div>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,YAAN,cAA8B,gBAA0B;AAAA,IAE3D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,66 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/table-footer.tsx
29
+ var React = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/table/table-footer.tsx
47
+ var TableFooter = class extends React.Component {
48
+ render() {
49
+ const {
50
+ children,
51
+ className
52
+ } = this.props;
53
+ return /* @__PURE__ */ React.createElement(
54
+ "div",
55
+ {
56
+ className: classNames(
57
+ className,
58
+ "k-table-footer"
59
+ )
60
+ },
61
+ children
62
+ );
63
+ }
64
+ };
65
+ })();
66
+ //# sourceMappingURL=table-footer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/table-footer.tsx", "../../src/utils/classNames.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableFooterProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableFooter extends React.Component<TableFooterProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <div\n className={classNames(\n className,\n 'k-table-footer'\n )}>\n {children}\n </div>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,cAAN,cAAgC,gBAA4B;AAAA,IAE/D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,66 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/table-group-header.tsx
29
+ var React = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/table/table-group-header.tsx
47
+ var TableGroupHeader = class extends React.Component {
48
+ render() {
49
+ const {
50
+ children,
51
+ className
52
+ } = this.props;
53
+ return /* @__PURE__ */ React.createElement(
54
+ "tr",
55
+ {
56
+ className: classNames(
57
+ className,
58
+ "k-table-group-header"
59
+ )
60
+ },
61
+ children
62
+ );
63
+ }
64
+ };
65
+ })();
66
+ //# sourceMappingURL=table-group-header.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/table-group-header.tsx", "../../src/utils/classNames.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableGroupHeaderProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableGroupHeader extends React.Component<TableGroupHeaderProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <tr\n className={classNames(\n className,\n 'k-table-group-header'\n )}>\n {children}\n </tr>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,mBAAN,cAAqC,gBAAiC;AAAA,IAEzE,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,66 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/table-group-row.tsx
29
+ var React = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/table/table-group-row.tsx
47
+ var TableGroupRow = class extends React.Component {
48
+ render() {
49
+ const {
50
+ children,
51
+ className
52
+ } = this.props;
53
+ return /* @__PURE__ */ React.createElement(
54
+ "tr",
55
+ {
56
+ className: classNames(
57
+ className,
58
+ "k-table-group-row"
59
+ )
60
+ },
61
+ children
62
+ );
63
+ }
64
+ };
65
+ })();
66
+ //# sourceMappingURL=table-group-row.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/table-group-row.tsx", "../../src/utils/classNames.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableGroupRowProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableGroupRow extends React.Component<TableGroupRowProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <tr\n className={classNames(\n className,\n 'k-table-group-row'\n )}>\n {children}\n </tr>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,gBAAN,cAAkC,gBAA8B;AAAA,IAEnE,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,66 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/table-group-sticky-header.tsx
29
+ var React = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/table/table-group-sticky-header.tsx
47
+ var TableGroupStickyHeader = class extends React.Component {
48
+ render() {
49
+ const {
50
+ children,
51
+ className
52
+ } = this.props;
53
+ return /* @__PURE__ */ React.createElement(
54
+ "div",
55
+ {
56
+ className: classNames(
57
+ className,
58
+ "k-table-group-sticky-header"
59
+ )
60
+ },
61
+ children
62
+ );
63
+ }
64
+ };
65
+ })();
66
+ //# sourceMappingURL=table-group-sticky-header.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/table-group-sticky-header.tsx", "../../src/utils/classNames.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\n\nexport interface TableGroupStickyHeaderProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableGroupStickyHeader extends React.Component<TableGroupStickyHeaderProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <div\n className={classNames(\n className,\n 'k-table-group-sticky-header'\n )}>\n {children}\n </div>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ADjBO,MAAM,yBAAN,cAA2C,gBAAuC;AAAA,IAErF,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,115 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // src/table/table-header.tsx
29
+ var React2 = __toESM(__require("react"));
30
+
31
+ // src/utils/classNames.ts
32
+ var classNames = (...args) => {
33
+ const result = {};
34
+ const addLeafKeys = (arg) => {
35
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
36
+ result[key] = arg[key];
37
+ }) : result[arg] = true;
38
+ };
39
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map(
40
+ (arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg)
41
+ );
42
+ addKeys(args);
43
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
44
+ };
45
+
46
+ // src/utils/theme.ts
47
+ var kendoThemeMaps = {
48
+ sizeMap: {
49
+ small: "sm",
50
+ medium: "md",
51
+ large: "lg"
52
+ },
53
+ roundedMap: {
54
+ small: "sm",
55
+ medium: "md",
56
+ large: "lg"
57
+ },
58
+ calloutMap: {
59
+ top: "n",
60
+ bottom: "s",
61
+ left: "w",
62
+ right: "e"
63
+ },
64
+ orientationMap: {
65
+ vertical: "vstack",
66
+ horizontal: "hstack"
67
+ }
68
+ };
69
+
70
+ // src/table/table.tsx
71
+ var React = __toESM(__require("react"));
72
+ var Table = class extends React.Component {
73
+ render() {
74
+ const {
75
+ children,
76
+ className,
77
+ size
78
+ } = this.props;
79
+ return /* @__PURE__ */ React.createElement(
80
+ "table",
81
+ {
82
+ className: classNames(
83
+ className,
84
+ "k-table",
85
+ {
86
+ [`k-table-${kendoThemeMaps.sizeMap[size]}`]: size
87
+ }
88
+ )
89
+ },
90
+ children
91
+ );
92
+ }
93
+ };
94
+
95
+ // src/table/table-header.tsx
96
+ var TableHeader = class extends React2.Component {
97
+ render() {
98
+ const {
99
+ children,
100
+ className
101
+ } = this.props;
102
+ return /* @__PURE__ */ React2.createElement(
103
+ "div",
104
+ {
105
+ className: classNames(
106
+ className,
107
+ "k-table-header"
108
+ )
109
+ },
110
+ /* @__PURE__ */ React2.createElement("div", { className: "k-table-header-wrap" }, /* @__PURE__ */ React2.createElement(Table, null, children))
111
+ );
112
+ }
113
+ };
114
+ })();
115
+ //# sourceMappingURL=table-header.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/table/table-header.tsx", "../../src/utils/classNames.ts", "../../src/utils/theme.ts", "../../src/table/table.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nimport { classNames } from '../utils';\nimport { Table } from './table';\n\nexport interface TableHeaderProps {\n children?: React.ReactNode;\n className?: string;\n}\n\n\nexport class TableHeader extends React.Component<TableHeaderProps> {\n\n render() {\n const {\n children,\n className,\n } = this.props;\n\n return (\n <div\n className={classNames(\n className,\n 'k-table-header'\n )}>\n <div className=\"k-table-header-wrap\">\n <Table>{children}</Table>\n </div>\n </div>\n );\n }\n}\n", "/* eslint-disable no-return-assign */\nexport const classNames = (...args): string => {\n const result = {};\n\n const addLeafKeys = (arg) => {\n (typeof arg === 'object'\n ? Object.keys(arg).forEach((key) => {\n result[key] = arg[key];\n })\n : (result[arg] = true)\n );\n };\n\n const addKeys = (list) =>\n list\n .filter((arg) => arg !== true && Boolean(arg))\n .map((arg: any) =>\n (Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg))\n );\n\n addKeys(args);\n\n return Object.keys(result)\n .map((key) => (result[key] && key) || null)\n .filter((el) => el !== null)\n .join(' ');\n};\n", "export interface KendoThemeMaps {\n sizeMap: Record<Exclude<any, null>, string>;\n roundedMap: Record<Exclude<any, null>, string>;\n calloutMap: Record<Exclude<any, null>, string>;\n orientationMap: Record<Exclude<any, null>, string>;\n}\n\nexport const kendoThemeMaps: KendoThemeMaps = {\n sizeMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n roundedMap: {\n small: 'sm',\n medium: 'md',\n large: 'lg'\n },\n calloutMap: {\n top: 'n',\n bottom: 's',\n left: 'w',\n right: 'e'\n },\n orientationMap: {\n vertical: 'vstack',\n horizontal: 'hstack',\n },\n};\n", "import * as React from 'react';\nimport { classNames, kendoThemeMaps } from '../utils';\n\nexport interface TableProps {\n children?: React.ReactNode;\n className?: string;\n size?: null | 'small' | 'medium' | 'large';\n}\n\n\nexport class Table extends React.Component<TableProps> {\n\n render() {\n const {\n children,\n className,\n size,\n } = this.props;\n\n return (\n <table\n className={classNames(\n className,\n 'k-table',\n {\n [`k-table-${kendoThemeMaps.sizeMap[size!]}`]: size,\n }\n )}>\n {children}\n </table>\n );\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAAA,SAAuB;;;ACChB,MAAM,aAAa,IAAI,SAAiB;AAC3C,UAAM,SAAS,CAAC;AAEhB,UAAM,cAAc,CAAC,QAAQ;AACzB,MAAC,OAAO,QAAQ,WACV,OAAO,KAAK,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAChC,eAAO,OAAO,IAAI;AAAA,MACtB,CAAC,IACE,OAAO,OAAO;AAAA,IAEzB;AAEA,UAAM,UAAU,CAAC,SACb,KACK,OAAO,CAAC,QAAQ,QAAQ,QAAQ,QAAQ,GAAG,CAAC,EAC5C;AAAA,MAAI,CAAC,QACD,MAAM,QAAQ,GAAG,IAAI,QAAQ,GAAG,IAAI,YAAY,GAAG;AAAA,IACxD;AAER,YAAQ,IAAI;AAEZ,WAAO,OAAO,KAAK,MAAM,EACpB,IAAI,CAAC,QAAS,OAAO,QAAQ,OAAQ,IAAI,EACzC,OAAO,CAAC,OAAO,OAAO,IAAI,EAC1B,KAAK,GAAG;AAAA,EACjB;;;ACnBO,MAAM,iBAAiC;AAAA,IAC1C,SAAS;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACR,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IACX;AAAA,IACA,YAAY;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,IACX;AAAA,IACA,gBAAgB;AAAA,MACZ,UAAU;AAAA,MACV,YAAY;AAAA,IAChB;AAAA,EACJ;;;AC5BA,cAAuB;AAUhB,MAAM,QAAN,cAA0B,gBAAsB;AAAA,IAEnD,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,cACI,CAAC,WAAW,eAAe,QAAQ,UAAW;AAAA,YAClD;AAAA,UACJ;AAAA;AAAA,QACC;AAAA,MACL;AAAA,IAER;AAAA,EACJ;;;AHtBO,MAAM,cAAN,cAAgC,iBAA4B;AAAA,IAE/D,SAAS;AACL,YAAM;AAAA,QACF;AAAA,QACA;AAAA,MACJ,IAAI,KAAK;AAET,aACI;AAAA,QAAC;AAAA;AAAA,UACG,WAAW;AAAA,YACP;AAAA,YACA;AAAA,UACJ;AAAA;AAAA,QACA,qCAAC,SAAI,WAAU,yBACX,qCAAC,aAAO,QAAS,CACrB;AAAA,MACJ;AAAA,IAER;AAAA,EACJ;",
6
+ "names": ["React"]
7
+ }