@progress/kendo-react-common 7.2.4-develop.3 → 7.3.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 (203) hide show
  1. package/Draggable.js +8 -0
  2. package/Draggable.mjs +79 -0
  3. package/Droppable.js +8 -0
  4. package/Droppable.mjs +64 -0
  5. package/FormComponent.js +8 -0
  6. package/FormComponent.mjs +13 -0
  7. package/browser-support.service.js +8 -0
  8. package/browser-support.service.mjs +25 -0
  9. package/canUseDOM.js +8 -0
  10. package/canUseDOM.mjs +13 -0
  11. package/canUseRef.js +8 -0
  12. package/canUseRef.mjs +15 -0
  13. package/classNames.js +8 -0
  14. package/classNames.mjs +17 -0
  15. package/clone.js +8 -0
  16. package/clone.mjs +44 -0
  17. package/constants/index.js +8 -0
  18. package/constants/index.mjs +12 -0
  19. package/contexts/ZIndexContext.js +8 -0
  20. package/contexts/ZIndexContext.mjs +15 -0
  21. package/dist/cdn/js/kendo-react-common.js +8 -5
  22. package/drag-n-drop/context/index.js +8 -0
  23. package/drag-n-drop/context/index.mjs +23 -0
  24. package/drag-n-drop/index.js +8 -0
  25. package/drag-n-drop/index.mjs +46 -0
  26. package/events/dispatchEvent.js +8 -0
  27. package/events/dispatchEvent.mjs +21 -0
  28. package/fieldList.js +8 -0
  29. package/fieldList.mjs +18 -0
  30. package/getActiveElement.js +8 -0
  31. package/getActiveElement.mjs +19 -0
  32. package/getTabIndex.js +8 -0
  33. package/getTabIndex.mjs +16 -0
  34. package/getter.js +8 -0
  35. package/getter.mjs +26 -0
  36. package/guid.js +8 -0
  37. package/guid.mjs +17 -0
  38. package/hasRelativeStackingContext.js +8 -0
  39. package/hasRelativeStackingContext.mjs +25 -0
  40. package/hocs/AsyncFocusBlur.js +8 -0
  41. package/hocs/AsyncFocusBlur.mjs +23 -0
  42. package/hocs/use-id-hoc.js +8 -0
  43. package/hocs/use-id-hoc.mjs +17 -0
  44. package/hocs/withPropsContext.js +8 -0
  45. package/hocs/withPropsContext.mjs +18 -0
  46. package/hooks/use-id.js +8 -0
  47. package/hooks/use-id.mjs +35 -0
  48. package/hooks/use-isomorphic-layout-effect.js +8 -0
  49. package/hooks/use-isomorphic-layout-effect.mjs +13 -0
  50. package/hooks/useAsyncFocusBlur.js +8 -0
  51. package/hooks/useAsyncFocusBlur.mjs +38 -0
  52. package/hooks/useCollection.js +8 -0
  53. package/hooks/useCollection.mjs +32 -0
  54. package/hooks/useControlledState.js +8 -0
  55. package/hooks/useControlledState.mjs +21 -0
  56. package/hooks/useCustomComponent.js +8 -0
  57. package/hooks/useCustomComponent.mjs +22 -0
  58. package/hooks/useDir.js +8 -0
  59. package/hooks/useDir.mjs +24 -0
  60. package/hooks/useDocument.js +8 -0
  61. package/hooks/useDocument.mjs +22 -0
  62. package/hooks/useDraggable.js +8 -0
  63. package/hooks/useDraggable.mjs +308 -0
  64. package/hooks/useDroppable.js +8 -0
  65. package/hooks/useDroppable.mjs +67 -0
  66. package/hooks/useInheritedState.js +8 -0
  67. package/hooks/useInheritedState.mjs +21 -0
  68. package/hooks/useMouse.js +8 -0
  69. package/hooks/useMouse.mjs +98 -0
  70. package/hooks/usePropsContext.js +8 -0
  71. package/hooks/usePropsContext.mjs +13 -0
  72. package/hooks/useRtl.js +8 -0
  73. package/hooks/useRtl.mjs +24 -0
  74. package/hooks/useWindow.js +8 -0
  75. package/hooks/useWindow.mjs +20 -0
  76. package/icons/Icon.js +8 -0
  77. package/icons/Icon.mjs +92 -0
  78. package/icons/IconWrap.js +8 -0
  79. package/icons/IconWrap.mjs +24 -0
  80. package/icons/IconsContext.js +8 -0
  81. package/icons/IconsContext.mjs +14 -0
  82. package/icons/SvgIcon.js +8 -0
  83. package/icons/SvgIcon.mjs +124 -0
  84. package/icons/constants.js +8 -0
  85. package/icons/constants.mjs +21 -0
  86. package/icons/utils.js +8 -0
  87. package/icons/utils.mjs +19 -0
  88. package/index.d.mts +1771 -5
  89. package/index.d.ts +1771 -65
  90. package/index.js +8 -5
  91. package/index.mjs +147 -1848
  92. package/keys.js +8 -0
  93. package/keys.mjs +28 -0
  94. package/memoize.js +8 -0
  95. package/memoize.mjs +38 -0
  96. package/navigation.js +8 -0
  97. package/navigation.mjs +97 -0
  98. package/noop.js +8 -0
  99. package/noop.mjs +13 -0
  100. package/package.json +1 -1
  101. package/scrollbarWidth.js +8 -0
  102. package/scrollbarWidth.mjs +20 -0
  103. package/setter.js +8 -0
  104. package/setter.mjs +27 -0
  105. package/theme.js +8 -0
  106. package/theme.mjs +27 -0
  107. package/trappedFocus.js +8 -0
  108. package/trappedFocus.mjs +58 -0
  109. package/tree-utils/FieldsService.js +8 -0
  110. package/tree-utils/FieldsService.mjs +48 -0
  111. package/tree-utils/SortedPublicItemIds.js +8 -0
  112. package/tree-utils/SortedPublicItemIds.mjs +24 -0
  113. package/tree-utils/itemIdUtils.js +8 -0
  114. package/tree-utils/itemIdUtils.mjs +87 -0
  115. package/tree-utils/itemUtils.js +8 -0
  116. package/tree-utils/itemUtils.mjs +118 -0
  117. package/tree-utils/misc.js +8 -0
  118. package/tree-utils/misc.mjs +22 -0
  119. package/treeDataOperations.js +8 -0
  120. package/treeDataOperations.mjs +45 -0
  121. package/typography/Typography.js +8 -0
  122. package/typography/Typography.mjs +110 -0
  123. package/typography/constants.js +8 -0
  124. package/typography/constants.mjs +71 -0
  125. package/validate-package.js +8 -0
  126. package/validate-package.mjs +20 -0
  127. package/watermark/WatermarkOverlay.js +8 -0
  128. package/watermark/WatermarkOverlay.mjs +93 -0
  129. package/Draggable.d.ts +0 -90
  130. package/Droppable.d.ts +0 -81
  131. package/FormComponent.d.ts +0 -167
  132. package/browser-support.service.d.ts +0 -11
  133. package/canUseDOM.d.ts +0 -8
  134. package/canUseRef.d.ts +0 -9
  135. package/classNames.d.ts +0 -8
  136. package/clone.d.ts +0 -24
  137. package/constants/index.d.ts +0 -8
  138. package/contexts/ZIndexContext.d.ts +0 -11
  139. package/drag-n-drop/context/index.d.ts +0 -23
  140. package/drag-n-drop/index.d.ts +0 -25
  141. package/events/BaseEvent.d.ts +0 -22
  142. package/events/dispatchEvent.d.ts +0 -18
  143. package/fieldList.d.ts +0 -8
  144. package/getActiveElement.d.ts +0 -12
  145. package/getTabIndex.d.ts +0 -8
  146. package/getter.d.ts +0 -18
  147. package/guid.d.ts +0 -8
  148. package/hasRelativeStackingContext.d.ts +0 -6
  149. package/hocs/AsyncFocusBlur.d.ts +0 -17
  150. package/hocs/use-id-hoc.d.ts +0 -7
  151. package/hocs/withPropsContext.d.ts +0 -9
  152. package/hooks/index.d.ts +0 -16
  153. package/hooks/use-id.d.ts +0 -6
  154. package/hooks/use-isomorphic-layout-effect.d.ts +0 -7
  155. package/hooks/useAsyncFocusBlur.d.ts +0 -29
  156. package/hooks/useCollection.d.ts +0 -18
  157. package/hooks/useControlledState.d.ts +0 -11
  158. package/hooks/useCustomComponent.d.ts +0 -15
  159. package/hooks/useDir.d.ts +0 -9
  160. package/hooks/useDocument.d.ts +0 -11
  161. package/hooks/useDraggable.d.ts +0 -67
  162. package/hooks/useDroppable.d.ts +0 -32
  163. package/hooks/useInheritedState.d.ts +0 -17
  164. package/hooks/useMouse.d.ts +0 -24
  165. package/hooks/usePropsContext.d.ts +0 -7
  166. package/hooks/useRtl.d.ts +0 -9
  167. package/hooks/useWindow.d.ts +0 -11
  168. package/icons/BaseIconProps.d.ts +0 -76
  169. package/icons/Icon.d.ts +0 -39
  170. package/icons/IconWrap.d.ts +0 -11
  171. package/icons/IconsContext.d.ts +0 -25
  172. package/icons/SvgIcon.d.ts +0 -75
  173. package/icons/constants.d.ts +0 -17
  174. package/icons/models/flip.d.ts +0 -15
  175. package/icons/models/size.d.ts +0 -19
  176. package/icons/models/theme-color.d.ts +0 -25
  177. package/icons/utils.d.ts +0 -21
  178. package/keys.d.ts +0 -24
  179. package/memoize.d.ts +0 -14
  180. package/models/auto-scroll-options.d.ts +0 -26
  181. package/models/index.d.ts +0 -9
  182. package/models/kendoReactComponentBaseProps.d.ts +0 -27
  183. package/models/mouse.d.ts +0 -20
  184. package/models/pointer.d.ts +0 -27
  185. package/models/touch.d.ts +0 -21
  186. package/navigation.d.ts +0 -131
  187. package/noop.d.ts +0 -8
  188. package/scrollbarWidth.d.ts +0 -12
  189. package/setter.d.ts +0 -20
  190. package/theme.d.ts +0 -12
  191. package/trappedFocus.d.ts +0 -28
  192. package/tree-utils/FieldsService.d.ts +0 -29
  193. package/tree-utils/SortedPublicItemIds.d.ts +0 -12
  194. package/tree-utils/itemIdUtils.d.ts +0 -64
  195. package/tree-utils/itemUtils.d.ts +0 -49
  196. package/tree-utils/misc.d.ts +0 -12
  197. package/treeDataOperations.d.ts +0 -43
  198. package/typography/Typography.d.ts +0 -39
  199. package/typography/TypographyProps.d.ts +0 -124
  200. package/typography/constants.d.ts +0 -88
  201. package/typography/models/margin.d.ts +0 -27
  202. package/validate-package.d.ts +0 -13
  203. package/watermark/WatermarkOverlay.d.ts +0 -9
package/Draggable.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),m=require("./hooks/useDraggable.js");function D(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const n=D(f),u=n.forwardRef((e,c)=>{const t=n.useRef(null),r=n.useRef(null),a=n.useCallback(()=>t.current&&t.current.element?t.current.element:t.current,[t]);n.useImperativeHandle(r,()=>({element:a()||null})),n.useImperativeHandle(c,()=>r.current),n.useImperativeHandle(e.childRef,()=>t.current);const o=n.useCallback(l=>{e.onPress&&e.onPress({element:a(),target:r.current,event:l})},[a,e.onPress]),g=n.useCallback(l=>{e.onRelease&&e.onRelease({element:a(),target:r.current,event:l})},[a,e.onRelease]),s=n.useCallback(l=>{e.onDragStart&&e.onDragStart({element:a(),target:r.current,event:l})},[e,a]),i=n.useCallback(l=>{e.onDrag&&e.onDrag({element:a(),target:r.current,event:l})},[a,e.onDrag]),d=n.useCallback(l=>{e.onDragEnd&&e.onDragEnd({element:a(),target:r.current,event:l})},[a,e.onDragEnd]);return m.useDraggable(t,{onPress:o,onRelease:g,onDragStart:s,onDrag:i,onDragEnd:d},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?n.cloneElement(n.Children.only(e.children),{ref:t}):null});u.displayName="KendoReactDraggable";exports.Draggable=u;
package/Draggable.mjs ADDED
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import * as n from "react";
10
+ import { useDraggable as i } from "./hooks/useDraggable.mjs";
11
+ const m = n.forwardRef((e, c) => {
12
+ const l = n.useRef(null), r = n.useRef(null), t = n.useCallback(
13
+ () => l.current && l.current.element ? l.current.element : l.current,
14
+ [l]
15
+ );
16
+ n.useImperativeHandle(r, () => ({ element: t() || null })), n.useImperativeHandle(c, () => r.current), n.useImperativeHandle(e.childRef, () => l.current);
17
+ const u = n.useCallback(
18
+ (a) => {
19
+ e.onPress && e.onPress({
20
+ element: t(),
21
+ target: r.current,
22
+ event: a
23
+ });
24
+ },
25
+ [t, e.onPress]
26
+ ), g = n.useCallback(
27
+ (a) => {
28
+ e.onRelease && e.onRelease({
29
+ element: t(),
30
+ target: r.current,
31
+ event: a
32
+ });
33
+ },
34
+ [t, e.onRelease]
35
+ ), o = n.useCallback(
36
+ (a) => {
37
+ e.onDragStart && e.onDragStart({
38
+ element: t(),
39
+ target: r.current,
40
+ event: a
41
+ });
42
+ },
43
+ [e, t]
44
+ ), s = n.useCallback(
45
+ (a) => {
46
+ e.onDrag && e.onDrag({
47
+ element: t(),
48
+ target: r.current,
49
+ event: a
50
+ });
51
+ },
52
+ [t, e.onDrag]
53
+ ), d = n.useCallback(
54
+ (a) => {
55
+ e.onDragEnd && e.onDragEnd({
56
+ element: t(),
57
+ target: r.current,
58
+ event: a
59
+ });
60
+ },
61
+ [t, e.onDragEnd]
62
+ );
63
+ return i(l, {
64
+ onPress: u,
65
+ onRelease: g,
66
+ onDragStart: o,
67
+ onDrag: s,
68
+ onDragEnd: d
69
+ }, {
70
+ mouseOnly: e.mouseOnly,
71
+ autoScroll: e.autoScroll,
72
+ hint: e.hint,
73
+ scrollContainer: e.scrollContainer
74
+ }), e.children ? n.cloneElement(n.Children.only(e.children), { ref: l }) : null;
75
+ });
76
+ m.displayName = "KendoReactDraggable";
77
+ export {
78
+ m as Draggable
79
+ };
package/Droppable.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),f=require("./hooks/useDroppable.js");function s(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(c,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return c.default=e,Object.freeze(c)}const r=s(d),u=r.forwardRef((e,c)=>{const n=r.useRef(null),t=r.useRef(null),a=r.useCallback(()=>n.current&&n.current.element?n.current.element:n.current,[n]);r.useImperativeHandle(t,()=>({element:a()||void 0})),r.useImperativeHandle(c,()=>t.current),r.useImperativeHandle(e.childRef,()=>n.current);const o=r.useCallback(l=>{e.onDragEnter&&e.onDragEnter({element:a(),target:t.current,event:l})},[e.onDragEnter,a]),g=r.useCallback(l=>{e.onDragOver&&e.onDragOver({element:a(),target:t.current,event:l})},[a,e.onDragOver]),i=r.useCallback(l=>{e.onDragLeave&&e.onDragLeave({element:a(),target:t.current,event:l})},[e.onDragLeave,a]),D=r.useCallback(l=>{e.onDrop&&e.onDrop({element:a(),target:t.current,event:l})},[e.onDrop,a]);return f.useDroppable(n,{onDragEnter:o,onDragOver:g,onDragLeave:i,onDrop:D}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null});u.displayName="KendoReactDroppable";exports.Droppable=u;
package/Droppable.mjs ADDED
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import * as n from "react";
10
+ import { useDroppable as i } from "./hooks/useDroppable.mjs";
11
+ const m = n.forwardRef((e, c) => {
12
+ const t = n.useRef(null), l = n.useRef(null), r = n.useCallback(
13
+ () => t.current && t.current.element ? t.current.element : t.current,
14
+ [t]
15
+ );
16
+ n.useImperativeHandle(l, () => ({ element: r() || void 0 })), n.useImperativeHandle(c, () => l.current), n.useImperativeHandle(e.childRef, () => t.current);
17
+ const u = n.useCallback(
18
+ (a) => {
19
+ e.onDragEnter && e.onDragEnter({
20
+ element: r(),
21
+ target: l.current,
22
+ event: a
23
+ });
24
+ },
25
+ [e.onDragEnter, r]
26
+ ), o = n.useCallback(
27
+ (a) => {
28
+ e.onDragOver && e.onDragOver({
29
+ element: r(),
30
+ target: l.current,
31
+ event: a
32
+ });
33
+ },
34
+ [r, e.onDragOver]
35
+ ), D = n.useCallback(
36
+ (a) => {
37
+ e.onDragLeave && e.onDragLeave({
38
+ element: r(),
39
+ target: l.current,
40
+ event: a
41
+ });
42
+ },
43
+ [e.onDragLeave, r]
44
+ ), g = n.useCallback(
45
+ (a) => {
46
+ e.onDrop && e.onDrop({
47
+ element: r(),
48
+ target: l.current,
49
+ event: a
50
+ });
51
+ },
52
+ [e.onDrop, r]
53
+ );
54
+ return i(t, {
55
+ onDragEnter: u,
56
+ onDragOver: o,
57
+ onDragLeave: D,
58
+ onDrop: g
59
+ }), e.children ? n.cloneElement(n.Children.only(e.children), { ref: t }) : null;
60
+ });
61
+ m.displayName = "KendoReactDroppable";
62
+ export {
63
+ m as Droppable
64
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e{}exports.FormComponent=e;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ class o {
10
+ }
11
+ export {
12
+ o as FormComponent
13
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=()=>typeof document!="undefined"?document:{};class r{constructor(){this.scrollbar=0}get scrollbarWidth(){const o=t();if(!this.scrollbar&&o&&o.createElement){const e=o.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",o.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,o.body.removeChild(e)}return this.scrollbar}}exports.BrowserSupportService=r;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const t = () => typeof document != "undefined" ? document : {};
10
+ class l {
11
+ constructor() {
12
+ this.scrollbar = 0;
13
+ }
14
+ get scrollbarWidth() {
15
+ const o = t();
16
+ if (!this.scrollbar && o && o.createElement) {
17
+ const e = o.createElement("div");
18
+ e.style.cssText = "overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block", e.innerHTML = " ", o.body.appendChild(e), this.scrollbar = e.offsetWidth - e.scrollWidth, o.body.removeChild(e);
19
+ }
20
+ return this.scrollbar;
21
+ }
22
+ }
23
+ export {
24
+ l as BrowserSupportService
25
+ };
package/canUseDOM.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=!!(typeof window!="undefined"&&window.document&&window.document.createElement);exports.canUseDOM=e;
package/canUseDOM.mjs ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const e = !!// from fbjs
10
+ (typeof window != "undefined" && window.document && window.document.createElement);
11
+ export {
12
+ e as canUseDOM
13
+ };
package/canUseRef.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>{var t;return!!(typeof e=="function"&&((t=e.prototype)!=null&&t.isReactComponent))},n=e=>!!(e.$$typeof&&typeof e.render=="function"),s=e=>typeof Comment!="string"&&(o(e)||n(e));exports.canUseRef=s;
package/canUseRef.mjs ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const t = (e) => {
10
+ var o;
11
+ return !!(typeof e == "function" && ((o = e.prototype) != null && o.isReactComponent));
12
+ }, n = (e) => !!(e.$$typeof && typeof e.render == "function"), s = (e) => typeof Comment != "string" && (t(e) || n(e));
13
+ export {
14
+ s as canUseRef
15
+ };
package/classNames.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(...l)=>{const s={},o=e=>typeof e=="object"?Object.keys(e).forEach(t=>{s[t]=e[t]}):s[e]=!0,c=e=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?c(t):o(t));return c(l),Object.keys(s).map(e=>s[e]&&e||null).filter(e=>e!==null).join(" ")};exports.classNames=n;
package/classNames.mjs ADDED
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const o = (...l) => {
10
+ const s = {}, n = (e) => typeof e == "object" ? Object.keys(e).forEach((t) => {
11
+ s[t] = e[t];
12
+ }) : s[e] = !0, c = (e) => e.filter((t) => t !== !0 && !!t).map((t) => Array.isArray(t) ? c(t) : n(t));
13
+ return c(l), Object.keys(s).map((e) => s[e] && e || null).filter((e) => e !== null).join(" ");
14
+ };
15
+ export {
16
+ o as classNames
17
+ };
package/clone.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=u(f),l=e=>e?new Date(e.getTime()):null;function a(e){const t={};return c(e,t),t}function c(e,t){for(let n in e)if(e.hasOwnProperty(n)){const r=e[n];t[n]=o(r,t[n])}}function o(e,t){if(Array.isArray(e))return s(e);if(e instanceof Date)return l(e);if(i.isValidElement(e))return i.cloneElement(e,e.props);if(e&&typeof e=="object"){const n=t||{};return c(e,n),n}else return e}function s(e){return e.map(t=>o(t,void 0))}exports.clone=a;exports.cloneArray=s;exports.cloneDate=l;exports.cloneObject=c;exports.cloneValue=o;
package/clone.mjs ADDED
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import * as r from "react";
10
+ const s = (e) => e ? new Date(e.getTime()) : null;
11
+ function l(e) {
12
+ const n = {};
13
+ return o(e, n), n;
14
+ }
15
+ function o(e, n) {
16
+ for (let t in e)
17
+ if (e.hasOwnProperty(t)) {
18
+ const i = e[t];
19
+ n[t] = c(i, n[t]);
20
+ }
21
+ }
22
+ function c(e, n) {
23
+ if (Array.isArray(e))
24
+ return f(e);
25
+ if (e instanceof Date)
26
+ return s(e);
27
+ if (r.isValidElement(e))
28
+ return r.cloneElement(e, e.props);
29
+ if (e && typeof e == "object") {
30
+ const t = n || {};
31
+ return o(e, t), t;
32
+ } else
33
+ return e;
34
+ }
35
+ function f(e) {
36
+ return e.map((n) => c(n, void 0));
37
+ }
38
+ export {
39
+ l as clone,
40
+ f as cloneArray,
41
+ s as cloneDate,
42
+ o as cloneObject,
43
+ c as cloneValue
44
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;exports.FIELD_REGEX=e;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const e = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;
10
+ export {
11
+ e as FIELD_REGEX
12
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=u(a),o=r.createContext(0),s=()=>r.useContext(o);o.displayName="KendoReactZIndexContext";exports.ZIndexContext=o;exports.useZIndexContext=s;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import * as e from "react";
10
+ const t = e.createContext(0), n = () => e.useContext(t);
11
+ t.displayName = "KendoReactZIndexContext";
12
+ export {
13
+ t as ZIndexContext,
14
+ n as useZIndexContext
15
+ };