@progress/kendo-react-common 14.5.0-develop.8 → 15.0.0-develop.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/README.md +4 -4
- package/WebMcpProvider.d.ts +108 -0
- package/WebMcpProvider.js +9 -0
- package/WebMcpProvider.mjs +41 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useMergedRef.d.ts +16 -0
- package/hooks/useMergedRef.js +8 -0
- package/hooks/useMergedRef.mjs +20 -0
- package/hooks/usePaidChildrenWatermark.d.ts +37 -0
- package/hooks/usePaidChildrenWatermark.js +9 -0
- package/hooks/usePaidChildrenWatermark.mjs +29 -0
- package/icons/BaseIconProps.d.ts +0 -2
- package/icons/Icon.js +1 -1
- package/icons/Icon.mjs +11 -13
- package/icons/SvgIcon.d.ts +18 -0
- package/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +73 -71
- package/icons/models/theme-color.d.ts +1 -3
- package/icons/models/variant.d.ts +18 -0
- package/index.d.mts +4 -0
- package/index.d.ts +4 -0
- package/index.js +1 -1
- package/index.mjs +178 -169
- package/package.json +7 -2
- package/theme.js +1 -1
- package/theme.mjs +4 -2
- package/typography/Typography.js +1 -1
- package/typography/Typography.mjs +6 -8
- package/typography/TypographyProps.d.ts +1 -3
- package/unstyled/buttons.d.ts +2 -4
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +70 -72
- package/unstyled/icons.d.ts +2 -4
- package/unstyled/icons.js +1 -1
- package/unstyled/icons.mjs +10 -11
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +13 -15
- package/validate-package.js +2 -2
- package/validate-package.mjs +10 -10
- package/watermark/WatermarkOverlay.js +1 -1
- package/watermark/WatermarkOverlay.mjs +30 -29
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import * as L from "react-dom";
|
|
11
|
-
const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif',
|
|
11
|
+
const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif', d = {
|
|
12
12
|
TKL201: {
|
|
13
|
-
title: (n, o) => `
|
|
14
|
-
description: "
|
|
13
|
+
title: (n, o) => `Premium feature detected in ${n} v${o}.`,
|
|
14
|
+
description: "Use Premium components without watermark. Start Free Trial or check the browser console for a list of premium features currently in use.",
|
|
15
15
|
buttonText: "Start Free Trial",
|
|
16
16
|
buttonLink: "https://prgress.co/NoLicenseWatermarkKendoReact"
|
|
17
17
|
},
|
|
@@ -49,36 +49,36 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
49
49
|
const {
|
|
50
50
|
code: o,
|
|
51
51
|
licenseType: f,
|
|
52
|
-
productName:
|
|
52
|
+
productName: a = "",
|
|
53
53
|
version: p = "",
|
|
54
54
|
notificationTitle: c,
|
|
55
|
-
notificationBody:
|
|
56
|
-
notificationMessage:
|
|
57
|
-
notificationIcon:
|
|
58
|
-
callToAction:
|
|
55
|
+
notificationBody: u,
|
|
56
|
+
notificationMessage: l,
|
|
57
|
+
notificationIcon: i,
|
|
58
|
+
callToAction: r
|
|
59
59
|
} = n || {};
|
|
60
60
|
let t = "default";
|
|
61
|
-
o && (`${o}:${f}` in
|
|
62
|
-
const s =
|
|
61
|
+
o && (`${o}:${f}` in d ? t = `${o}:${f}` : o in d && (t = o));
|
|
62
|
+
const s = d[t] || d.default;
|
|
63
63
|
return {
|
|
64
|
-
icon:
|
|
65
|
-
title: c || s.title(
|
|
66
|
-
description:
|
|
67
|
-
descriptionHtml:
|
|
68
|
-
buttonText: (
|
|
69
|
-
buttonLink: (
|
|
64
|
+
icon: i == null ? void 0 : i.content,
|
|
65
|
+
title: c || s.title(a, p),
|
|
66
|
+
description: u || s.description,
|
|
67
|
+
descriptionHtml: l && !u ? l : void 0,
|
|
68
|
+
buttonText: (r == null ? void 0 : r.message) || s.buttonText,
|
|
69
|
+
buttonLink: (r == null ? void 0 : r.link) || s.buttonLink
|
|
70
70
|
};
|
|
71
71
|
}, Q = (n) => {
|
|
72
|
-
const [o, f] = e.useState(!0), [
|
|
72
|
+
const [o, f] = e.useState(!0), [a] = e.useState(() => v.current ? (v.current = !1, !0) : !1), [p, c] = e.useState(!1), [u, l] = e.useState(!1), [i, r] = e.useState(!1), [t, s] = e.useState(!1), [g, C] = e.useState(!1);
|
|
73
73
|
e.useEffect(() => {
|
|
74
74
|
c(!0);
|
|
75
75
|
const A = () => {
|
|
76
76
|
s(window.innerWidth < 500), C(window.innerWidth >= 768);
|
|
77
77
|
};
|
|
78
78
|
return A(), window.addEventListener("resize", A), () => {
|
|
79
|
-
window.removeEventListener("resize", A),
|
|
79
|
+
window.removeEventListener("resize", A), a && (v.current = !0);
|
|
80
80
|
};
|
|
81
|
-
}, [
|
|
81
|
+
}, [a]);
|
|
82
82
|
const h = () => {
|
|
83
83
|
f(!1);
|
|
84
84
|
}, { icon: P, title: E, description: w, descriptionHtml: m, buttonText: b, buttonLink: H } = I(n.message), B = /* @__PURE__ */ e.createElement(
|
|
@@ -123,13 +123,13 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
123
123
|
border: "none",
|
|
124
124
|
borderRadius: "4px",
|
|
125
125
|
padding: "4px",
|
|
126
|
-
backgroundColor:
|
|
126
|
+
backgroundColor: i ? "#3d3d3d14" : "transparent",
|
|
127
127
|
transition: "background-color 0.2s ease-in-out",
|
|
128
128
|
outline: "none",
|
|
129
129
|
cursor: "pointer"
|
|
130
130
|
},
|
|
131
|
-
onMouseLeave: () =>
|
|
132
|
-
onMouseEnter: () =>
|
|
131
|
+
onMouseLeave: () => r(!1),
|
|
132
|
+
onMouseEnter: () => r(!0),
|
|
133
133
|
onClick: h
|
|
134
134
|
},
|
|
135
135
|
/* @__PURE__ */ e.createElement("svg", { width: "20", height: "20", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ e.createElement(
|
|
@@ -215,7 +215,7 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
215
215
|
position: "relative",
|
|
216
216
|
border: "none",
|
|
217
217
|
borderRadius: "4px",
|
|
218
|
-
backgroundColor:
|
|
218
|
+
backgroundColor: u ? "#b90138" : "#eb0249",
|
|
219
219
|
color: "#ffffff",
|
|
220
220
|
transition: "background-color 0.2s ease-in-out",
|
|
221
221
|
outline: "none",
|
|
@@ -228,8 +228,8 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
228
228
|
href: H,
|
|
229
229
|
target: "_blank",
|
|
230
230
|
rel: "noopener noreferrer",
|
|
231
|
-
onMouseLeave: () =>
|
|
232
|
-
onMouseEnter: () =>
|
|
231
|
+
onMouseLeave: () => l(!1),
|
|
232
|
+
onMouseEnter: () => l(!0)
|
|
233
233
|
},
|
|
234
234
|
b
|
|
235
235
|
),
|
|
@@ -244,13 +244,13 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
244
244
|
border: "none",
|
|
245
245
|
borderRadius: "4px",
|
|
246
246
|
padding: "4px",
|
|
247
|
-
backgroundColor:
|
|
247
|
+
backgroundColor: i ? "#3d3d3d14" : "transparent",
|
|
248
248
|
transition: "background-color 0.2s ease-in-out",
|
|
249
249
|
outline: "none",
|
|
250
250
|
cursor: "pointer"
|
|
251
251
|
},
|
|
252
|
-
onMouseLeave: () =>
|
|
253
|
-
onMouseEnter: () =>
|
|
252
|
+
onMouseLeave: () => r(!1),
|
|
253
|
+
onMouseEnter: () => r(!0),
|
|
254
254
|
onClick: h
|
|
255
255
|
},
|
|
256
256
|
/* @__PURE__ */ e.createElement("svg", { width: "20", height: "20", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ e.createElement(
|
|
@@ -266,6 +266,7 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
266
266
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
269
|
+
"data-kendo-watermark": !0,
|
|
269
270
|
style: {
|
|
270
271
|
position: "absolute",
|
|
271
272
|
width: "100%",
|
|
@@ -283,7 +284,7 @@ const v = { current: !0 }, x = 'system-ui, -apple-system, "Segoe UI", Roboto, He
|
|
|
283
284
|
)
|
|
284
285
|
}
|
|
285
286
|
}
|
|
286
|
-
), p &&
|
|
287
|
+
), p && a && o && L.createPortal(B, document.body));
|
|
287
288
|
};
|
|
288
289
|
export {
|
|
289
290
|
Q as WatermarkOverlay
|