@progress/kendo-react-common 7.2.4-develop.2 → 7.2.4-develop.4

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 -1812
  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/focus.d.ts +0 -8
  145. package/getActiveElement.d.ts +0 -12
  146. package/getTabIndex.d.ts +0 -8
  147. package/getter.d.ts +0 -18
  148. package/guid.d.ts +0 -8
  149. package/hasRelativeStackingContext.d.ts +0 -6
  150. package/hocs/AsyncFocusBlur.d.ts +0 -17
  151. package/hocs/use-id-hoc.d.ts +0 -7
  152. package/hocs/withPropsContext.d.ts +0 -9
  153. package/hooks/index.d.ts +0 -16
  154. package/hooks/use-id.d.ts +0 -6
  155. package/hooks/use-isomorphic-layout-effect.d.ts +0 -7
  156. package/hooks/useAsyncFocusBlur.d.ts +0 -29
  157. package/hooks/useCollection.d.ts +0 -18
  158. package/hooks/useControlledState.d.ts +0 -11
  159. package/hooks/useCustomComponent.d.ts +0 -15
  160. package/hooks/useDir.d.ts +0 -9
  161. package/hooks/useDocument.d.ts +0 -11
  162. package/hooks/useDraggable.d.ts +0 -67
  163. package/hooks/useDroppable.d.ts +0 -32
  164. package/hooks/useInheritedState.d.ts +0 -17
  165. package/hooks/useMouse.d.ts +0 -24
  166. package/hooks/usePropsContext.d.ts +0 -7
  167. package/hooks/useRtl.d.ts +0 -9
  168. package/hooks/useWindow.d.ts +0 -11
  169. package/icons/BaseIconProps.d.ts +0 -76
  170. package/icons/Icon.d.ts +0 -39
  171. package/icons/IconWrap.d.ts +0 -11
  172. package/icons/IconsContext.d.ts +0 -25
  173. package/icons/SvgIcon.d.ts +0 -75
  174. package/icons/constants.d.ts +0 -17
  175. package/icons/models/flip.d.ts +0 -15
  176. package/icons/models/size.d.ts +0 -19
  177. package/icons/models/theme-color.d.ts +0 -25
  178. package/icons/utils.d.ts +0 -21
  179. package/keys.d.ts +0 -24
  180. package/memoize.d.ts +0 -14
  181. package/models/auto-scroll-options.d.ts +0 -26
  182. package/models/index.d.ts +0 -9
  183. package/models/kendoReactComponentBaseProps.d.ts +0 -27
  184. package/models/mouse.d.ts +0 -20
  185. package/models/pointer.d.ts +0 -27
  186. package/models/touch.d.ts +0 -21
  187. package/navigation.d.ts +0 -131
  188. package/noop.d.ts +0 -8
  189. package/scrollbarWidth.d.ts +0 -12
  190. package/setter.d.ts +0 -20
  191. package/theme.d.ts +0 -12
  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.d.ts DELETED
@@ -1,90 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { DraggableOptions, DraggableHandle } from './hooks';
7
- import { NormalizedDragEvent } from '@progress/kendo-draggable-common';
8
- /** @hidden */
9
- interface BaseDraggableEvent {
10
- /**
11
- * The DOM element.
12
- */
13
- element: HTMLElement;
14
- /**
15
- * The target Draggable reference.
16
- */
17
- target: DraggableHandle;
18
- /**
19
- * The normalized drag event.
20
- */
21
- event: NormalizedDragEvent;
22
- }
23
- /**
24
- * Represents the object of the `onPress` callback.
25
- */
26
- export interface DraggablePressEvent extends BaseDraggableEvent {
27
- }
28
- /**
29
- * Represents the object of the `onDragStart` callback.
30
- */
31
- export interface DraggableDragStartEvent extends BaseDraggableEvent {
32
- }
33
- /**
34
- * Represents the object of the `onDrag` callback.
35
- */
36
- export interface DraggableDragEvent extends BaseDraggableEvent {
37
- }
38
- /**
39
- * Represents the object of the `onDragEnd` callback.
40
- */
41
- export interface DraggableDragEndEvent extends BaseDraggableEvent {
42
- }
43
- /**
44
- * Represents the object of the `onRelease` callback.
45
- */
46
- export interface DraggableReleaseEvent extends BaseDraggableEvent {
47
- }
48
- /**
49
- * Represents the props of the KendoReact Draggable component.
50
- */
51
- export interface DraggableProps extends DraggableOptions {
52
- /**
53
- * Fires when the user press element inside the Draggable component.
54
- */
55
- onPress?: (event: DraggablePressEvent) => void;
56
- /**
57
- * Fires when the user starts dragging the element inside the Draggable component.
58
- */
59
- onDragStart?: (event: DraggableDragStartEvent) => void;
60
- /**
61
- * Fires when the user drag the element inside the Draggable component.
62
- */
63
- onDrag?: (event: DraggableDragEvent) => void;
64
- /**
65
- * Fires when the user finishes dragging the element inside the Draggable component.
66
- */
67
- onDragEnd?: (event: DraggableDragEndEvent) => void;
68
- /**
69
- * Fires when the user release the current drag action.
70
- */
71
- onRelease?: (event: DraggableReleaseEvent) => void;
72
- /**
73
- * Callback to get the child element ref. Useful as the Draggable overrides ref of the child element.
74
- */
75
- childRef?: React.Ref<HTMLElement | null | {
76
- element: HTMLElement | null;
77
- [key: string]: any;
78
- }>;
79
- /** @hidden */
80
- children?: React.ReactNode;
81
- }
82
- /**
83
- * Represents the KendoReact Draggable component.
84
- *
85
- * Accepts properties of type [DraggableProps]({% slug api_common_draggableprops %}),
86
- * and returns an object of type [DraggableHandle]({% slug api_common_draggablehandle %}) when the `ref` is obtained.
87
- */
88
- export declare const Draggable: React.ForwardRefExoticComponent<DraggableProps & React.RefAttributes<DraggableHandle | null>>;
89
- export type Draggable = DraggableHandle;
90
- export {};
package/Droppable.d.ts DELETED
@@ -1,81 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { DroppableHandle } from './hooks';
7
- import { NormalizedDragEvent } from '@progress/kendo-draggable-common';
8
- /** @hidden */
9
- interface BaseDroppableEvent {
10
- /**
11
- * The DOM element.
12
- */
13
- element: HTMLElement;
14
- /**
15
- * The target Draggable reference.
16
- */
17
- target: DroppableHandle;
18
- /**
19
- * The normalized drag event.
20
- */
21
- event: NormalizedDragEvent;
22
- }
23
- /**
24
- * Represents the object of the `onDragEnter` callback.
25
- */
26
- export interface DroppableDragEnterEvent extends BaseDroppableEvent {
27
- }
28
- /**
29
- * Represents the object of the `onDragOver` callback.
30
- */
31
- export interface DroppableDragOverEvent extends BaseDroppableEvent {
32
- }
33
- /**
34
- * Represents the object of the `onDragLeave` callback.
35
- */
36
- export interface DroppableDragLeaveEvent extends BaseDroppableEvent {
37
- }
38
- /**
39
- * Represents the object of the `onDrop` callback.
40
- */
41
- export interface DroppableDropEvent extends BaseDroppableEvent {
42
- }
43
- /**
44
- * Represents the props of the KendoReact Droppable component.
45
- */
46
- export interface DroppableProps {
47
- /**
48
- * Fires when the user enters the element during drag.
49
- */
50
- onDragEnter?: (event: DroppableDragEnterEvent) => void;
51
- /**
52
- * Fires when the user is dragging an element over the Droppable component.
53
- */
54
- onDragOver?: (event: DroppableDragOverEvent) => void;
55
- /**
56
- * Fires when the user leaves the element during drag.
57
- */
58
- onDragLeave?: (event: DroppableDragLeaveEvent) => void;
59
- /**
60
- * Fires when the user drops a draggable element inside the Droppable component.
61
- */
62
- onDrop?: (event: DroppableDropEvent) => void;
63
- /**
64
- * Callback to get the child element ref. Useful as the Droppable overrides ref of the child element.
65
- */
66
- childRef?: React.Ref<HTMLElement | null | {
67
- element: HTMLElement | null;
68
- [key: string]: any;
69
- }>;
70
- /** @hidden */
71
- children?: React.ReactNode;
72
- }
73
- /**
74
- * Represents the KendoReact Droppable component.
75
- *
76
- * Accepts properties of type [DroppableProps]({% slug api_common_droppableprops %}),
77
- * and returns an object of type [DroppableHandle]({% slug api_common_droppablehandle %}) when the `ref` is obtained.
78
- */
79
- export declare const Droppable: React.ForwardRefExoticComponent<DroppableProps & React.RefAttributes<DroppableHandle | null>>;
80
- export type Droppable = DroppableHandle;
81
- export {};
@@ -1,167 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents the basic props of the KendoReact form components.
7
- *
8
- * For runnable examples on forms support, refer to the documentation of the respective form component:
9
- * * [DateInput]({% slug forms_dateinput %})
10
- * * [DatePicker]({% slug forms_datepicker %})
11
- * * [TimePicker]({% slug forms_timepicker %})
12
- * * [DateTimePicker]({% slug forms_datetimepicker %})
13
- * * [AutoComplete]({% slug forms_autocomplete %})
14
- * * [ComboBox]({% slug forms_combobox %})
15
- * * [DropDownList]({% slug forms_dropdownlist %})
16
- * * [MultiSelect]({% slug forms_multiselect %})
17
- * * [Input]({% slug forms_input %})
18
- * * [MaskedTextBox]({% slug forms_maskedtextbox %})
19
- * * [NumericTextBox]({% slug forms_numerictextbox %})
20
- * * [Checkbox]({% slug forms_support_checkbox %})
21
- * * [Switch]({% slug forms_support_switch %})
22
- */
23
- export interface FormComponentProps {
24
- /**
25
- * Controls the form error message of the component. If set to an empty string, no error will be thrown.
26
- *
27
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
28
- */
29
- validationMessage?: string;
30
- /**
31
- * Specifies if `null` is a valid value for the component.
32
- *
33
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
34
- */
35
- required?: boolean;
36
- /**
37
- * Specifies the `name` property of the `input` DOM element.
38
- *
39
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
40
- */
41
- name?: string;
42
- /**
43
- * Overrides the validity state of the component.
44
- * If `valid` is set, the `required` property will be ignored.
45
- *
46
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
47
- */
48
- valid?: boolean;
49
- /**
50
- * If set to `false`, no visual representation of the invalid state of the component will be applied.
51
- *
52
- * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
53
- */
54
- validityStyles?: boolean;
55
- /**
56
- * @hidden
57
- */
58
- value?: any;
59
- /**
60
- * @hidden
61
- */
62
- defaultValue?: any;
63
- }
64
- /**
65
- * Represents the `validity` state of the KendoReact form components.
66
- *
67
- * For runnable examples on forms support, refer to the documentation of the respective form component:
68
- * * [DateInput]({% slug forms_dateinput %})
69
- * * [DatePicker]({% slug forms_datepicker %})
70
- * * [TimePicker]({% slug forms_timepicker %})
71
- * * [DateTimePicker]({% slug forms_timepicker %})
72
- * * [AutoComplete]({% slug forms_autocomplete %})
73
- * * [ComboBox]({% slug forms_combobox %})
74
- * * [DropDownList]({% slug forms_dropdownlist %})
75
- * * [MultiSelect]({% slug forms_multiselect %})
76
- * * [Input]({% slug forms_input %})
77
- * * [MaskedTextBox]({% slug forms_maskedtextbox %})
78
- * * [NumericTextBox]({% slug forms_numerictextbox %})
79
- * * [Checkbox]({% slug forms_support_checkbox %})
80
- * * [Switch]({% slug forms_support_switch %})
81
- */
82
- export interface FormComponentValidity {
83
- readonly badInput?: boolean;
84
- readonly customError: boolean;
85
- readonly patternMismatch?: boolean;
86
- readonly rangeOverflow?: boolean;
87
- readonly rangeUnderflow?: boolean;
88
- readonly stepMismatch?: boolean;
89
- readonly tooLong?: boolean;
90
- readonly tooShort?: boolean;
91
- readonly typeMismatch?: boolean;
92
- readonly valid: boolean;
93
- readonly valueMissing: boolean;
94
- }
95
- /**
96
- * @hidden
97
- */
98
- export declare abstract class FormComponent {
99
- abstract get value(): any;
100
- abstract get validity(): FormComponentValidity;
101
- abstract get name(): string | undefined;
102
- }
103
- /**
104
- * @hidden
105
- */
106
- export interface FieldRenderPropsBase {
107
- /**
108
- * A callback you have to call when the value of the rendered component is changed
109
- * ([see example]({% slug common_scenarios_form %}#toc-changing-the-field-value)).
110
- * The `value` property of the event takes precedence over `target.value`.
111
- */
112
- onChange: (event: {
113
- target?: any;
114
- value?: any;
115
- }) => void;
116
- /**
117
- * A callback you have to call when the rendered component is focused.
118
- * Responsible for setting the visited state of the Field.
119
- */
120
- onFocus: () => void;
121
- /**
122
- * A callback you have to call when the rendered component is blurred.
123
- * Responsible for setting the touched state of the Field.
124
- */
125
- onBlur: () => void;
126
- /**
127
- * Represents the current value of the Field
128
- * ([see example]({% slug custom_components_form %}#toc-using-basic-properties)).
129
- */
130
- value: any;
131
- /**
132
- * Represents the error message that is returned by the validator.
133
- * The Field is considered valid if the `validationMessage` field is empty.
134
- */
135
- validationMessage: string | null;
136
- /**
137
- * Indicates if the field is touched.
138
- * The touched state is set to `true` when the `onBlur` callback is called.
139
- */
140
- touched: boolean;
141
- /**
142
- * Indicates if the field is modified.
143
- * The modified state is set to `true` when the `onChange` callback for the current field is called for first time.
144
- */
145
- modified: boolean;
146
- /**
147
- * Indicates if the field is visited.
148
- * The visited state is set to `true` when the `onFocus` callback is called.
149
- */
150
- visited: boolean;
151
- /**
152
- * A calculated property based on whether `validationMessage` is present and the `touched` state is set to `true`.
153
- */
154
- valid: boolean;
155
- /**
156
- * Represents the children that are passed to the Field.
157
- */
158
- children: any;
159
- /**
160
- * The name of the field in the Form state.
161
- */
162
- name: string;
163
- /**
164
- * @hidden
165
- */
166
- [customProp: string]: any;
167
- }
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare class BrowserSupportService {
9
- private scrollbar;
10
- get scrollbarWidth(): number;
11
- }
package/canUseDOM.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const canUseDOM: boolean;
package/canUseRef.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export declare const canUseRef: (Component: React.ComponentType | string) => boolean;
package/classNames.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const classNames: (...args: any[]) => string;
package/clone.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const cloneDate: (date?: Date) => Date | null;
9
- /**
10
- * @hidden
11
- */
12
- export declare function clone(obj: any): any;
13
- /**
14
- * @hidden
15
- */
16
- export declare function cloneObject(obj: any, result: any): void;
17
- /**
18
- * @hidden
19
- */
20
- export declare function cloneValue(value: any, nextValue: any): any;
21
- /**
22
- * @hidden
23
- */
24
- export declare function cloneArray(array: any[]): any;
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const FIELD_REGEX: RegExp;
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /** @hidden */
7
- export type ZIndexContextType = number | undefined;
8
- /** @hidden */
9
- export declare const ZIndexContext: React.Context<ZIndexContextType>;
10
- /** @hidden */
11
- export declare const useZIndexContext: () => ZIndexContextType;
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { DragTarget, DropTarget } from '@progress/kendo-draggable-common';
7
- import { ControlledStateHook } from '../../hooks';
8
- /**
9
- * @hidden
10
- */
11
- export declare const DragContext: React.Context<ControlledStateHook<React.RefObject<DragTarget> | null | undefined>>;
12
- /**
13
- * @hidden
14
- */
15
- export declare const DropContext: React.Context<ControlledStateHook<React.RefObject<DropTarget> | null | undefined>>;
16
- /**
17
- * @hidden
18
- */
19
- export declare const DragsContext: React.Context<[React.RefObject<DragTarget>[], Function, Function]>;
20
- /**
21
- * @hidden
22
- */
23
- export declare const DropsContext: React.Context<[React.RefObject<DropTarget>[], Function, Function]>;
@@ -1,25 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- export type { NormalizedDragEvent } from '@progress/kendo-draggable-common';
7
- /**
8
- * Represents the properties of the `DragAndDrop` component.
9
- */
10
- export interface DragAndDropProps {
11
- /**
12
- * Represents the `children` of the `DragAndDrop` component. The `children` prop can be any valid React Element.
13
- */
14
- children?: React.ReactNode;
15
- }
16
- /**
17
- * The `DragAndDrop` component is required for the `droppable` functionality to work properly.
18
- *
19
- * It is used internally to synchronize the `drag` and `drop` functionalities.
20
- * Accepts properties of type [DragAndDropProps]({% slug api_common_draganddropprops %}).
21
- */
22
- export declare const DragAndDrop: {
23
- (props: DragAndDropProps): import("react/jsx-runtime").JSX.Element;
24
- displayName: string;
25
- };
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface BaseEvent<T> {
10
- /**
11
- * A React Synthetic Event.
12
- */
13
- syntheticEvent: React.SyntheticEvent<any>;
14
- /**
15
- * A native DOM event.
16
- */
17
- nativeEvent: any;
18
- /**
19
- * An event target.
20
- */
21
- target: T;
22
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseEvent } from './BaseEvent';
6
- /**
7
- * @hidden
8
- * Dispatches a new event based on an event that was already internally dispatched to KendoReact users.
9
- *
10
- * @param eventHandler - The public event handler that is assigned by the user.
11
- * When undefined, the method is not an option.
12
- * @param dispatchedEvent - The event that was already dispatched internally.
13
- * @param target - The target component of the new event.
14
- * @param eventData - The additional data that will be passed through the new event.
15
- * When the new event has no additional data
16
- * other than the `BaseEvent` arguments, pass `undefined`.
17
- */
18
- export declare function dispatchEvent<E extends BaseEvent<React.Component | FCHandle>, FCHandle = object>(eventHandler: ((event: E) => void) | undefined, dispatchedEvent: React.SyntheticEvent<any>, target: E['target'], eventData: Exclude<keyof E, keyof BaseEvent<React.Component | FCHandle>> extends never ? undefined : Pick<E, Exclude<keyof E, keyof BaseEvent<React.Component | FCHandle>>>): void;
package/fieldList.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare function fieldList(field: string): string[];
package/focus.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const focusFirstFocusableChild: (target: any) => void;
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const getInnerActiveElement: any;
9
- /**
10
- * @hidden
11
- */
12
- export declare const getActiveElement: (document: any) => HTMLElement | undefined;
package/getTabIndex.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const getTabIndex: (tabIndex?: number | string, disabled?: boolean, useDefaultTabIndexWhenDisabled?: boolean) => number | undefined;
package/getter.d.ts DELETED
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Can be used for getting value from object using field path. For example `users[index].name`.
7
- *
8
- * @example
9
- * ```jsx-no-run
10
- * const values = {users:[{lastName: 'Doe'}]};
11
- * const firstUserLastName = getter('user[0].lastName');
12
- *
13
- * console.log(firstUserLastName(values))
14
- *
15
- * // result: 'Doe'
16
- * ```
17
- */
18
- export declare function getter(field: string): (values: any) => any;
package/guid.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const guid: Function;
@@ -1,6 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /** @hidden */
6
- export declare const hasRelativeStackingContext: (elementSource?: HTMLElement) => boolean;
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { AsyncFocusBlurArgs } from '../hooks/useAsyncFocusBlur';
7
- /**
8
- * An utility High-order Component for asynchronous focus/blur handling.
9
- *
10
- * By default, the `onFocus` and `onBlur` callbacks are called every time a child components receives/loses focus.
11
- * Use this utility HOC for scenarios where you need to know if the parent has received focus for the first time, or completely lost focus.
12
- *
13
- * @returns
14
- */
15
- export declare const AsyncFocusBlur: ({ children, onFocus, onBlur, onSyncFocus, onSyncBlur }: AsyncFocusBlurArgs<any> & {
16
- children: (args: AsyncFocusBlurArgs<any>) => React.ReactNode;
17
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /** @hidden */
7
- export declare const withIdHOC: <P extends object>(Component: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /** @hidden */
7
- export declare const createPropsContext: <T extends unknown>() => React.Context<(p: T) => T>;
8
- /** @hidden */
9
- export declare const withPropsContext: <T extends unknown>(context: React.Context<(p: T) => T>, Component: React.ComponentType<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
package/hooks/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './useMouse';
6
- export * from './useAsyncFocusBlur';
7
- export * from './useDir';
8
- export * from './useDraggable';
9
- export * from './useDroppable';
10
- export * from './useRtl';
11
- export * from './useCustomComponent';
12
- export * from './useControlledState';
13
- export * from './useInheritedState';
14
- export * from './useCollection';
15
- export * from './useDocument';
16
- export * from './useWindow';