@progress/kendo-react-form 13.3.0 → 13.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-form",
3
- "version": "13.3.0",
3
+ "version": "13.4.0-develop.1",
4
4
  "description": "React Form is a small and fast package for form state management with zero dependencies. KendoReact Form package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -26,7 +26,7 @@
26
26
  "sideEffects": false,
27
27
  "peerDependencies": {
28
28
  "@progress/kendo-licensing": "^1.7.2",
29
- "@progress/kendo-react-common": "13.3.0",
29
+ "@progress/kendo-react-common": "13.4.0-develop.1",
30
30
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
31
31
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
32
32
  },
@@ -51,7 +51,7 @@
51
51
  "package": {
52
52
  "productName": "KendoReact",
53
53
  "productCode": "KENDOUIREACT",
54
- "publishDate": 1768550020,
54
+ "publishDate": 1770218860,
55
55
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
56
56
  }
57
57
  },
package/utils.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { Gutters } from './interfaces/Gutters.js';
9
+ import { ResponsiveFormBreakPoint } from './interfaces/ResponsiveFormBreakPoint.js';
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare function innerWidth(element: HTMLElement): number;
14
+ /**
15
+ * Returns the value for the current container width based on responsive breakpoints.
16
+ *
17
+ * @hidden
18
+ */
19
+ export declare function processBreakpoints(breakpoints: ResponsiveFormBreakPoint[], containerWidth: number): number | string;
20
+ /**
21
+ * @hidden
22
+ */
23
+ export declare const processCssValue: (value: number | string) => string | null;
24
+ /**
25
+ * @hidden
26
+ */
27
+ export declare const calculateColumns: (cols: number | ResponsiveFormBreakPoint[] | undefined, containerWidth: number) => number | null;
28
+ /**
29
+ * @hidden
30
+ *
31
+ * Generates CSS class names for columns
32
+ */
33
+ export declare const generateColumnClass: (columnsNumber: number | null) => string;
34
+ /**
35
+ * @hidden
36
+ *
37
+ * Calculates column span value based on responsive breakpoints or fixed number
38
+ */
39
+ export declare const calculateColSpan: (colSpan: number | ResponsiveFormBreakPoint[], containerWidth: number) => number | null;
40
+ /**
41
+ * @hidden
42
+ *
43
+ * Generates CSS class name for column span
44
+ */
45
+ export declare const generateColSpanClass: (colSpan: number | null) => string;
46
+ /**
47
+ * @hidden
48
+ *
49
+ * Calculates gutters for rows and columns based on responsive breakpoints or fixed values
50
+ */
51
+ export declare const calculateGutters: (gutters: number | string | ResponsiveFormBreakPoint[] | Gutters | undefined, containerWidth: number) => {
52
+ cols: number | string | null;
53
+ rows: number | string | null;
54
+ } | null;
55
+ /**
56
+ * @hidden
57
+ *
58
+ * Generates CSS styles for gutters based on the provided gutters object.
59
+ */
60
+ export declare const generateGuttersStyling: (gutters: {
61
+ cols?: number | string | null;
62
+ rows?: number | string | null;
63
+ } | null, defaultGutters: {
64
+ cols?: number | string | null;
65
+ rows?: number | string | null;
66
+ }) => string;
package/utils.mjs CHANGED
@@ -5,8 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const f = " ";
9
- function p(r) {
8
+ function a(r) {
10
9
  let e = r.clientWidth;
11
10
  const n = getComputedStyle(r);
12
11
  return e -= (parseFloat(n.paddingLeft) || 0) + (parseFloat(n.borderLeftWidth) || 0), e -= (parseFloat(n.paddingRight) || 0) + (parseFloat(n.borderRightWidth) || 0), e;
@@ -16,13 +15,13 @@ function c(r, e) {
16
15
  if (!(r != null && r.length) || e == null)
17
16
  return "";
18
17
  for (const [o, s] of r.entries()) {
19
- const t = o > 0 && r[o - 1].maxWidth !== void 0 ? r[o - 1].maxWidth : void 0, i = o < r.length - 1 && r[o + 1].minWidth !== void 0 ? r[o + 1].minWidth : void 0, d = (n = s.minWidth) != null ? n : t !== void 0 ? t + 1 : 0, a = (l = s.maxWidth) != null ? l : i !== void 0 ? i - 1 : 1 / 0;
20
- if (e >= d && e <= a)
18
+ const t = o > 0 && r[o - 1].maxWidth !== void 0 ? r[o - 1].maxWidth : void 0, i = o < r.length - 1 && r[o + 1].minWidth !== void 0 ? r[o + 1].minWidth : void 0, u = (n = s.minWidth) != null ? n : t !== void 0 ? t + 1 : 0, d = (l = s.maxWidth) != null ? l : i !== void 0 ? i - 1 : 1 / 0;
19
+ if (e >= u && e <= d)
21
20
  return s.value;
22
21
  }
23
22
  return "";
24
23
  }
25
- const u = (r) => {
24
+ const f = (r) => {
26
25
  if (typeof r == "number")
27
26
  return `${r}px`;
28
27
  if (typeof r == "string") {
@@ -30,7 +29,7 @@ const u = (r) => {
30
29
  return !isNaN(n) && Number.isFinite(n) ? n.toString() === e ? `${n}px` : r : null;
31
30
  }
32
31
  return null;
33
- }, y = (r, e) => {
32
+ }, p = (r, e) => {
34
33
  if (!r)
35
34
  return null;
36
35
  if (Array.isArray(r) && r.length > 0) {
@@ -39,7 +38,7 @@ const u = (r) => {
39
38
  } else if (typeof r == "number")
40
39
  return r;
41
40
  return null;
42
- }, w = (r) => r && r > 0 ? `k-grid-cols-${r}` : "", h = (r, e) => {
41
+ }, y = (r) => r && r > 0 ? `k-grid-cols-${r}` : "", A = (r, e) => {
43
42
  if (!r)
44
43
  return null;
45
44
  if (typeof r == "number")
@@ -49,15 +48,15 @@ const u = (r) => {
49
48
  return typeof n == "string" ? parseInt(n, 10) : n;
50
49
  }
51
50
  return null;
52
- }, m = (r) => r ? `k-col-span-${r}` : "", A = (r, e) => {
51
+ }, C = (r) => r ? `k-col-span-${r}` : "", w = (r, e) => {
53
52
  if (!r)
54
53
  return null;
55
54
  if (typeof r == "number")
56
55
  return { cols: r, rows: r };
57
56
  if (typeof r == "string") {
58
- if (!r.includes(f))
57
+ if (!r.includes(" "))
59
58
  return { cols: r, rows: r };
60
- const n = r.split(f);
59
+ const n = r.split(" ");
61
60
  return { cols: n[1], rows: n[0] };
62
61
  } else if (Array.isArray(r)) {
63
62
  const n = c(r, e) || null;
@@ -67,19 +66,19 @@ const u = (r) => {
67
66
  return n.cols !== void 0 && n.cols !== null ? typeof n.cols == "number" || typeof n.cols == "string" ? l.cols = n.cols : Array.isArray(n.cols) && (l.cols = c(n.cols, e) || null) : l.cols = null, n.rows !== void 0 ? typeof n.rows == "number" || typeof n.rows == "string" ? l.rows = n.rows : Array.isArray(n.rows) && (l.rows = c(n.rows, e) || null) : l.rows = null, l;
68
67
  }
69
68
  return null;
70
- }, C = (r, e) => {
69
+ }, h = (r, e) => {
71
70
  var o, s, t, i;
72
- const n = u((s = (o = r == null ? void 0 : r.rows) != null ? o : e.rows) != null ? s : "0px"), l = u((i = (t = r == null ? void 0 : r.cols) != null ? t : e.cols) != null ? i : "32px");
71
+ const n = f((s = (o = r == null ? void 0 : r.rows) != null ? o : e.rows) != null ? s : "0px"), l = f((i = (t = r == null ? void 0 : r.cols) != null ? t : e.cols) != null ? i : "32px");
73
72
  return `${n} ${l}`;
74
73
  };
75
74
  export {
76
- h as calculateColSpan,
77
- y as calculateColumns,
78
- A as calculateGutters,
79
- m as generateColSpanClass,
80
- w as generateColumnClass,
81
- C as generateGuttersStyling,
82
- p as innerWidth,
75
+ A as calculateColSpan,
76
+ p as calculateColumns,
77
+ w as calculateGutters,
78
+ C as generateColSpanClass,
79
+ y as generateColumnClass,
80
+ h as generateGuttersStyling,
81
+ a as innerWidth,
83
82
  c as processBreakpoints,
84
- u as processCssValue
83
+ f as processCssValue
85
84
  };