@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.
Files changed (42) hide show
  1. package/README.md +4 -4
  2. package/WebMcpProvider.d.ts +108 -0
  3. package/WebMcpProvider.js +9 -0
  4. package/WebMcpProvider.mjs +41 -0
  5. package/dist/cdn/js/kendo-react-common.js +1 -1
  6. package/hooks/index.d.ts +1 -0
  7. package/hooks/useMergedRef.d.ts +16 -0
  8. package/hooks/useMergedRef.js +8 -0
  9. package/hooks/useMergedRef.mjs +20 -0
  10. package/hooks/usePaidChildrenWatermark.d.ts +37 -0
  11. package/hooks/usePaidChildrenWatermark.js +9 -0
  12. package/hooks/usePaidChildrenWatermark.mjs +29 -0
  13. package/icons/BaseIconProps.d.ts +0 -2
  14. package/icons/Icon.js +1 -1
  15. package/icons/Icon.mjs +11 -13
  16. package/icons/SvgIcon.d.ts +18 -0
  17. package/icons/SvgIcon.js +1 -1
  18. package/icons/SvgIcon.mjs +73 -71
  19. package/icons/models/theme-color.d.ts +1 -3
  20. package/icons/models/variant.d.ts +18 -0
  21. package/index.d.mts +4 -0
  22. package/index.d.ts +4 -0
  23. package/index.js +1 -1
  24. package/index.mjs +178 -169
  25. package/package.json +7 -2
  26. package/theme.js +1 -1
  27. package/theme.mjs +4 -2
  28. package/typography/Typography.js +1 -1
  29. package/typography/Typography.mjs +6 -8
  30. package/typography/TypographyProps.d.ts +1 -3
  31. package/unstyled/buttons.d.ts +2 -4
  32. package/unstyled/buttons.js +1 -1
  33. package/unstyled/buttons.mjs +70 -72
  34. package/unstyled/icons.d.ts +2 -4
  35. package/unstyled/icons.js +1 -1
  36. package/unstyled/icons.mjs +10 -11
  37. package/unstyled/json-classes.js +1 -1
  38. package/unstyled/json-classes.mjs +13 -15
  39. package/validate-package.js +2 -2
  40. package/validate-package.mjs +10 -10
  41. package/watermark/WatermarkOverlay.js +1 -1
  42. 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', u = {
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) => `License key missing for ${n} v${o}.`,
14
- description: "A license key is required for both paid and trial usage.",
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: l = "",
52
+ productName: a = "",
53
53
  version: p = "",
54
54
  notificationTitle: c,
55
- notificationBody: d,
56
- notificationMessage: a,
57
- notificationIcon: r,
58
- callToAction: i
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 u ? t = `${o}:${f}` : o in u && (t = o));
62
- const s = u[t] || u.default;
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: r == null ? void 0 : r.content,
65
- title: c || s.title(l, p),
66
- description: d || s.description,
67
- descriptionHtml: a && !d ? a : void 0,
68
- buttonText: (i == null ? void 0 : i.message) || s.buttonText,
69
- buttonLink: (i == null ? void 0 : i.link) || s.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), [l] = e.useState(() => v.current ? (v.current = !1, !0) : !1), [p, c] = e.useState(!1), [d, a] = e.useState(!1), [r, i] = e.useState(!1), [t, s] = e.useState(!1), [g, C] = e.useState(!1);
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), l && (v.current = !0);
79
+ window.removeEventListener("resize", A), a && (v.current = !0);
80
80
  };
81
- }, [l]);
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: r ? "#3d3d3d14" : "transparent",
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: () => i(!1),
132
- onMouseEnter: () => i(!0),
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: d ? "#b90138" : "#eb0249",
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: () => a(!1),
232
- onMouseEnter: () => a(!0)
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: r ? "#3d3d3d14" : "transparent",
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: () => i(!1),
253
- onMouseEnter: () => i(!0),
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 && l && o && L.createPortal(B, document.body));
287
+ ), p && a && o && L.createPortal(B, document.body));
287
288
  };
288
289
  export {
289
290
  Q as WatermarkOverlay