@progress/kendo-themes-html 8.2.0 → 9.0.0-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.
- package/dist/cjs/responsive-layout/tests/responsive-layout-css-grid.js +95 -0
- package/dist/cjs/responsive-layout/tests/responsive-layout.js +94 -0
- package/dist/esm/responsive-layout/tests/responsive-layout-css-grid.mjs +75 -0
- package/dist/esm/responsive-layout/tests/responsive-layout.mjs +74 -0
- package/dist/types/responsive-layout/index.d.ts +0 -0
- package/dist/types/responsive-layout/tests/responsive-layout-css-grid.d.ts +2 -0
- package/dist/types/responsive-layout/tests/responsive-layout.d.ts +2 -0
- package/package.json +2 -2
- package/src/responsive-layout/index.ts +0 -0
- package/src/responsive-layout/tests/responsive-layout-css-grid.tsx +85 -0
- package/src/responsive-layout/tests/responsive-layout.tsx +126 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/responsive-layout/tests/responsive-layout-css-grid.tsx
|
|
20
|
+
var responsive_layout_css_grid_exports = {};
|
|
21
|
+
__export(responsive_layout_css_grid_exports, {
|
|
22
|
+
default: () => responsive_layout_css_grid_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(responsive_layout_css_grid_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var styles = `
|
|
27
|
+
#test-area {
|
|
28
|
+
max-width: none;
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#test-area .k-row > *,
|
|
33
|
+
#test-area .k-d-grid > * {
|
|
34
|
+
padding: 1rem;
|
|
35
|
+
background-color: var(--kendo-color-primary-subtle);
|
|
36
|
+
border: 1px solid var(--kendo-color-primary);
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
var responsive_layout_css_grid_default = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: styles }),
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { id: "test-area", className: "k-d-grid", children: [
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Equal Width" }),
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-4", children: [
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-2", children: [
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 1" }),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 2" })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-3", children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 1" }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 2" }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 3" })
|
|
52
|
+
] })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Setting one column to be wider than the others" }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-4", children: [
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-12", children: [
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-2", children: "k-col-span-2" }),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-8", children: "k-col-span-8" }),
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-2", children: "k-col-span-2" })
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-12", children: [
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-3", children: "k-col-span-3" }),
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-6", children: "k-col-span-6" }),
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-3", children: "k-col-span-3" })
|
|
66
|
+
] })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Breakpoint-specific classes (stacked horizontally on Phone, Portrait orientation)" }),
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-4", children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-12", children: [
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-12 k-col-span-sm-9", children: "k-col-span-12 k-col-span-sm-9" }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-span-12 k-col-span-sm-3", children: "k-col-span-12 k-col-span-sm-9" })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-sm-3", children: [
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 1" }),
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 2" }),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 3" })
|
|
79
|
+
] })
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: 'Row/Column Gutter ("3" on Phone, and "6" on everything else)' }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-3 k-gap-md-6", children: [
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-2 k-gap-3 k-gap-md-6", children: [
|
|
85
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 1" }),
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 2" })
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-d-grid k-grid-cols-3 k-gap-3 k-gap-md-6", children: [
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 1" }),
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 2" }),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Column 3" })
|
|
92
|
+
] })
|
|
93
|
+
] })
|
|
94
|
+
] })
|
|
95
|
+
] });
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/responsive-layout/tests/responsive-layout.tsx
|
|
20
|
+
var responsive_layout_exports = {};
|
|
21
|
+
__export(responsive_layout_exports, {
|
|
22
|
+
default: () => responsive_layout_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(responsive_layout_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var styles = `
|
|
27
|
+
#test-area {
|
|
28
|
+
max-width: none;
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#test-area [class^="k-col"] > * {
|
|
33
|
+
padding: 1rem;
|
|
34
|
+
background-color: var(--kendo-color-primary-subtle);
|
|
35
|
+
border: 1px solid var(--kendo-color-primary);
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
var responsive_layout_default = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: styles }),
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { id: "test-area", className: "k-d-grid", children: [
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Equal Width" }),
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-4", children: [
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row", children: [
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row", children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) })
|
|
51
|
+
] })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Setting one column width" }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-4", children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row", children: [
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-size-66-6", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-size-66-6" }) }),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row", children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-size-50", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-size-50" }) }),
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) })
|
|
65
|
+
] })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Breakpoint-specific classes (stacked horizontally on Phone, Portrait orientation)" }),
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-4", children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row", children: [
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm-size-75", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm-75" }) }),
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm-size-25", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm-25" }) })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row", children: [
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm" }) }),
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm" }) }),
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm" }) })
|
|
78
|
+
] })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: 'Row/Column Gutter ("3" on Phone, and "6" on everything else)' }),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "k-container k-gap-3 k-gap-md-6", children: [
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row k-col-gap-3 k-col-gap-md-6", children: [
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm-size-60", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm-size-60" }) }),
|
|
85
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col-sm-size-40", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col-sm-size-40" }) })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "k-row k-col-gap-3 k-col-gap-md-6", children: [
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) }),
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "k-col", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "k-col" }) })
|
|
91
|
+
] })
|
|
92
|
+
] })
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// src/responsive-layout/tests/responsive-layout-css-grid.tsx
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var styles = `
|
|
4
|
+
#test-area {
|
|
5
|
+
max-width: none;
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#test-area .k-row > *,
|
|
10
|
+
#test-area .k-d-grid > * {
|
|
11
|
+
padding: 1rem;
|
|
12
|
+
background-color: var(--kendo-color-primary-subtle);
|
|
13
|
+
border: 1px solid var(--kendo-color-primary);
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
var responsive_layout_css_grid_default = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsx("style", { children: styles }),
|
|
18
|
+
/* @__PURE__ */ jsxs("div", { id: "test-area", className: "k-d-grid", children: [
|
|
19
|
+
/* @__PURE__ */ jsx("span", { children: "Equal Width" }),
|
|
20
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-4", children: [
|
|
21
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-2", children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", { children: "Column 1" }),
|
|
23
|
+
/* @__PURE__ */ jsx("div", { children: "Column 2" })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-3", children: [
|
|
26
|
+
/* @__PURE__ */ jsx("div", { children: "Column 1" }),
|
|
27
|
+
/* @__PURE__ */ jsx("div", { children: "Column 2" }),
|
|
28
|
+
/* @__PURE__ */ jsx("div", { children: "Column 3" })
|
|
29
|
+
] })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
32
|
+
/* @__PURE__ */ jsx("span", { children: "Setting one column to be wider than the others" }),
|
|
33
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-4", children: [
|
|
34
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-12", children: [
|
|
35
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-2", children: "k-col-span-2" }),
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-8", children: "k-col-span-8" }),
|
|
37
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-2", children: "k-col-span-2" })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-12", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-3", children: "k-col-span-3" }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-6", children: "k-col-span-6" }),
|
|
42
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-3", children: "k-col-span-3" })
|
|
43
|
+
] })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
46
|
+
/* @__PURE__ */ jsx("span", { children: "Breakpoint-specific classes (stacked horizontally on Phone, Portrait orientation)" }),
|
|
47
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-4", children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-12", children: [
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-12 k-col-span-sm-9", children: "k-col-span-12 k-col-span-sm-9" }),
|
|
50
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-span-12 k-col-span-sm-3", children: "k-col-span-12 k-col-span-sm-9" })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-sm-3", children: [
|
|
53
|
+
/* @__PURE__ */ jsx("div", { children: "Column 1" }),
|
|
54
|
+
/* @__PURE__ */ jsx("div", { children: "Column 2" }),
|
|
55
|
+
/* @__PURE__ */ jsx("div", { children: "Column 3" })
|
|
56
|
+
] })
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
59
|
+
/* @__PURE__ */ jsx("span", { children: 'Row/Column Gutter ("3" on Phone, and "6" on everything else)' }),
|
|
60
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-3 k-gap-md-6", children: [
|
|
61
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-2 k-gap-3 k-gap-md-6", children: [
|
|
62
|
+
/* @__PURE__ */ jsx("div", { children: "Column 1" }),
|
|
63
|
+
/* @__PURE__ */ jsx("div", { children: "Column 2" })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ jsxs("div", { className: "k-d-grid k-grid-cols-3 k-gap-3 k-gap-md-6", children: [
|
|
66
|
+
/* @__PURE__ */ jsx("div", { children: "Column 1" }),
|
|
67
|
+
/* @__PURE__ */ jsx("div", { children: "Column 2" }),
|
|
68
|
+
/* @__PURE__ */ jsx("div", { children: "Column 3" })
|
|
69
|
+
] })
|
|
70
|
+
] })
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
73
|
+
export {
|
|
74
|
+
responsive_layout_css_grid_default as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// src/responsive-layout/tests/responsive-layout.tsx
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var styles = `
|
|
4
|
+
#test-area {
|
|
5
|
+
max-width: none;
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#test-area [class^="k-col"] > * {
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
background-color: var(--kendo-color-primary-subtle);
|
|
12
|
+
border: 1px solid var(--kendo-color-primary);
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
var responsive_layout_default = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsx("style", { children: styles }),
|
|
17
|
+
/* @__PURE__ */ jsxs("div", { id: "test-area", className: "k-d-grid", children: [
|
|
18
|
+
/* @__PURE__ */ jsx("span", { children: "Equal Width" }),
|
|
19
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-4", children: [
|
|
20
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row", children: [
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) })
|
|
28
|
+
] })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
31
|
+
/* @__PURE__ */ jsx("span", { children: "Setting one column width" }),
|
|
32
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-4", children: [
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row", children: [
|
|
34
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
35
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-size-66-6", children: /* @__PURE__ */ jsx("div", { children: "k-col-size-66-6" }) }),
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row", children: [
|
|
39
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-size-50", children: /* @__PURE__ */ jsx("div", { children: "k-col-size-50" }) }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) })
|
|
42
|
+
] })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
45
|
+
/* @__PURE__ */ jsx("span", { children: "Breakpoint-specific classes (stacked horizontally on Phone, Portrait orientation)" }),
|
|
46
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-4", children: [
|
|
47
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row", children: [
|
|
48
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm-size-75", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm-75" }) }),
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm-size-25", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm-25" }) })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm" }) }),
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm" }) }),
|
|
54
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm" }) })
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
58
|
+
/* @__PURE__ */ jsx("span", { children: 'Row/Column Gutter ("3" on Phone, and "6" on everything else)' }),
|
|
59
|
+
/* @__PURE__ */ jsxs("section", { className: "k-container k-gap-3 k-gap-md-6", children: [
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row k-col-gap-3 k-col-gap-md-6", children: [
|
|
61
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm-size-60", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm-size-60" }) }),
|
|
62
|
+
/* @__PURE__ */ jsx("div", { className: "k-col-sm-size-40", children: /* @__PURE__ */ jsx("div", { children: "k-col-sm-size-40" }) })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ jsxs("div", { className: "k-row k-col-gap-3 k-col-gap-md-6", children: [
|
|
65
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
66
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) }),
|
|
67
|
+
/* @__PURE__ */ jsx("div", { className: "k-col", children: /* @__PURE__ */ jsx("div", { children: "k-col" }) })
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
] })
|
|
71
|
+
] });
|
|
72
|
+
export {
|
|
73
|
+
responsive_layout_default as default
|
|
74
|
+
};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-themes-html",
|
|
3
3
|
"description": "A collection of HTML helpers used for developing Kendo UI themes",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0-dev.1",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^18.0.2"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b4fd26011605dcdb25e00cef145117c23e2e67a3"
|
|
57
57
|
}
|
|
File without changes
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const styles = `
|
|
2
|
+
#test-area {
|
|
3
|
+
max-width: none;
|
|
4
|
+
text-align: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#test-area .k-row > *,
|
|
8
|
+
#test-area .k-d-grid > * {
|
|
9
|
+
padding: 1rem;
|
|
10
|
+
background-color: var(--kendo-color-primary-subtle);
|
|
11
|
+
border: 1px solid var(--kendo-color-primary);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export default () =>(
|
|
16
|
+
<>
|
|
17
|
+
<style>{styles}</style>
|
|
18
|
+
<div id="test-area" className="k-d-grid">
|
|
19
|
+
|
|
20
|
+
<span>Equal Width</span>
|
|
21
|
+
<section className="k-container k-gap-4">
|
|
22
|
+
<div className="k-d-grid k-grid-cols-2">
|
|
23
|
+
<div>Column 1</div>
|
|
24
|
+
<div>Column 2</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div className="k-d-grid k-grid-cols-3">
|
|
28
|
+
<div>Column 1</div>
|
|
29
|
+
<div>Column 2</div>
|
|
30
|
+
<div>Column 3</div>
|
|
31
|
+
</div>
|
|
32
|
+
</section>
|
|
33
|
+
|
|
34
|
+
<br />
|
|
35
|
+
|
|
36
|
+
<span>Setting one column to be wider than the others</span>
|
|
37
|
+
<section className="k-container k-gap-4">
|
|
38
|
+
<div className="k-d-grid k-grid-cols-12">
|
|
39
|
+
<div className="k-col-span-2">k-col-span-2</div>
|
|
40
|
+
<div className="k-col-span-8">k-col-span-8</div>
|
|
41
|
+
<div className="k-col-span-2">k-col-span-2</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div className="k-d-grid k-grid-cols-12">
|
|
45
|
+
<div className="k-col-span-3">k-col-span-3</div>
|
|
46
|
+
<div className="k-col-span-6">k-col-span-6</div>
|
|
47
|
+
<div className="k-col-span-3">k-col-span-3</div>
|
|
48
|
+
</div>
|
|
49
|
+
</section>
|
|
50
|
+
|
|
51
|
+
<br />
|
|
52
|
+
|
|
53
|
+
<span>Breakpoint-specific classes (stacked horizontally on Phone, Portrait orientation)</span>
|
|
54
|
+
<section className="k-container k-gap-4">
|
|
55
|
+
<div className="k-d-grid k-grid-cols-12">
|
|
56
|
+
<div className="k-col-span-12 k-col-span-sm-9">k-col-span-12 k-col-span-sm-9</div>
|
|
57
|
+
<div className="k-col-span-12 k-col-span-sm-3">k-col-span-12 k-col-span-sm-9</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div className="k-d-grid k-grid-cols-sm-3">
|
|
61
|
+
<div>Column 1</div>
|
|
62
|
+
<div>Column 2</div>
|
|
63
|
+
<div>Column 3</div>
|
|
64
|
+
</div>
|
|
65
|
+
</section>
|
|
66
|
+
|
|
67
|
+
<br />
|
|
68
|
+
|
|
69
|
+
<span>Row/Column Gutter ("3" on Phone, and "6" on everything else)</span>
|
|
70
|
+
<section className="k-container k-gap-3 k-gap-md-6">
|
|
71
|
+
<div className="k-d-grid k-grid-cols-2 k-gap-3 k-gap-md-6">
|
|
72
|
+
<div>Column 1</div>
|
|
73
|
+
<div>Column 2</div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div className="k-d-grid k-grid-cols-3 k-gap-3 k-gap-md-6">
|
|
77
|
+
<div>Column 1</div>
|
|
78
|
+
<div>Column 2</div>
|
|
79
|
+
<div>Column 3</div>
|
|
80
|
+
</div>
|
|
81
|
+
</section>
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
</>
|
|
85
|
+
);
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
const styles = `
|
|
2
|
+
#test-area {
|
|
3
|
+
max-width: none;
|
|
4
|
+
text-align: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#test-area [class^="k-col"] > * {
|
|
8
|
+
padding: 1rem;
|
|
9
|
+
background-color: var(--kendo-color-primary-subtle);
|
|
10
|
+
border: 1px solid var(--kendo-color-primary);
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
export default () =>(
|
|
15
|
+
<>
|
|
16
|
+
<style>{styles}</style>
|
|
17
|
+
<div id="test-area" className="k-d-grid">
|
|
18
|
+
|
|
19
|
+
<span>Equal Width</span>
|
|
20
|
+
<section className="k-container k-gap-4">
|
|
21
|
+
<div className="k-row">
|
|
22
|
+
<div className="k-col">
|
|
23
|
+
<div>k-col</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div className="k-col">
|
|
26
|
+
<div>k-col</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div className="k-row">
|
|
31
|
+
<div className="k-col">
|
|
32
|
+
<div>k-col</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div className="k-col">
|
|
35
|
+
<div>k-col</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div className="k-col">
|
|
38
|
+
<div>k-col</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</section>
|
|
42
|
+
|
|
43
|
+
<br />
|
|
44
|
+
|
|
45
|
+
<span>Setting one column width</span>
|
|
46
|
+
<section className="k-container k-gap-4">
|
|
47
|
+
<div className="k-row">
|
|
48
|
+
<div className="k-col">
|
|
49
|
+
<div>k-col</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div className="k-col-size-66-6">
|
|
52
|
+
<div>k-col-size-66-6</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div className="k-col">
|
|
55
|
+
<div>k-col</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div className="k-row">
|
|
60
|
+
<div className="k-col">
|
|
61
|
+
<div>k-col</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div className="k-col-size-50">
|
|
64
|
+
<div>k-col-size-50</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div className="k-col">
|
|
67
|
+
<div>k-col</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</section>
|
|
71
|
+
|
|
72
|
+
<br />
|
|
73
|
+
|
|
74
|
+
<span>Breakpoint-specific classes (stacked horizontally on Phone, Portrait orientation)</span>
|
|
75
|
+
<section className="k-container k-gap-4">
|
|
76
|
+
<div className="k-row">
|
|
77
|
+
<div className="k-col-sm-size-75">
|
|
78
|
+
<div>k-col-sm-75</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div className="k-col-sm-size-25">
|
|
81
|
+
<div>k-col-sm-25</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div className="k-row">
|
|
86
|
+
<div className="k-col-sm">
|
|
87
|
+
<div>k-col-sm</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div className="k-col-sm">
|
|
90
|
+
<div>k-col-sm</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div className="k-col-sm">
|
|
93
|
+
<div>k-col-sm</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</section>
|
|
97
|
+
|
|
98
|
+
<br />
|
|
99
|
+
|
|
100
|
+
<span>Row/Column Gutter ("3" on Phone, and "6" on everything else)</span>
|
|
101
|
+
<section className="k-container k-gap-3 k-gap-md-6">
|
|
102
|
+
<div className="k-row k-col-gap-3 k-col-gap-md-6">
|
|
103
|
+
<div className="k-col-sm-size-60">
|
|
104
|
+
<div>k-col-sm-size-60</div>
|
|
105
|
+
</div>
|
|
106
|
+
<div className="k-col-sm-size-40">
|
|
107
|
+
<div>k-col-sm-size-40</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<div className="k-row k-col-gap-3 k-col-gap-md-6">
|
|
112
|
+
<div className="k-col">
|
|
113
|
+
<div>k-col</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div className="k-col">
|
|
116
|
+
<div>k-col</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div className="k-col">
|
|
119
|
+
<div>k-col</div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</section>
|
|
123
|
+
|
|
124
|
+
</div>
|
|
125
|
+
</>
|
|
126
|
+
);
|