@progress/kendo-react-common 6.1.1 → 7.0.0-develop.2
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/{dist/npm/Draggable.d.ts → Draggable.d.ts} +5 -1
- package/{dist/npm/Droppable.d.ts → Droppable.d.ts} +5 -1
- package/{dist/es/FormComponent.d.ts → FormComponent.d.ts} +4 -0
- package/LICENSE.md +1 -1
- package/browser-support.service.d.ts +11 -0
- package/canUseDOM.d.ts +8 -0
- package/canUseRef.d.ts +9 -0
- package/classNames.d.ts +8 -0
- package/{dist/npm/clone.d.ts → clone.d.ts} +4 -0
- package/constants/index.d.ts +8 -0
- package/contexts/ZIndexContext.d.ts +11 -0
- package/dist/cdn/js/kendo-react-common.js +8 -1
- package/{dist/npm/drag-n-drop → drag-n-drop}/context/index.d.ts +6 -2
- package/{dist/es/drag-n-drop → drag-n-drop}/index.d.ts +6 -2
- package/events/BaseEvent.d.ts +22 -0
- package/{dist/npm/events → events}/dispatchEvent.d.ts +4 -1
- package/fieldList.d.ts +8 -0
- package/focus.d.ts +8 -0
- package/getActiveElement.d.ts +12 -0
- package/getTabIndex.d.ts +8 -0
- package/{dist/es/getter.d.ts → getter.d.ts} +4 -0
- package/guid.d.ts +8 -0
- package/hasRelativeStackingContext.d.ts +6 -0
- package/{dist/npm/hocs → hocs}/AsyncFocusBlur.d.ts +5 -1
- package/{dist/npm/hocs → hocs}/withPropsContext.d.ts +4 -0
- package/{dist/npm/hooks → hooks}/index.d.ts +4 -0
- package/{dist/npm/hooks → hooks}/useAsyncFocusBlur.d.ts +5 -1
- package/hooks/useCollection.d.ts +18 -0
- package/hooks/useControlledState.d.ts +11 -0
- package/hooks/useCustomComponent.d.ts +17 -0
- package/hooks/useDir.d.ts +9 -0
- package/hooks/useDocument.d.ts +11 -0
- package/{dist/es/hooks → hooks}/useDraggable.d.ts +4 -0
- package/{dist/es/hooks → hooks}/useDroppable.d.ts +4 -0
- package/hooks/useInheritedState.d.ts +17 -0
- package/{dist/es/hooks → hooks}/useMouse.d.ts +5 -1
- package/hooks/usePropsContext.d.ts +7 -0
- package/hooks/useRtl.d.ts +9 -0
- package/hooks/useWindow.d.ts +11 -0
- package/{dist/npm/icons → icons}/BaseIconProps.d.ts +4 -1
- package/{dist/es/icons → icons}/Icon.d.ts +4 -0
- package/icons/IconWrap.d.ts +11 -0
- package/{dist/es/icons → icons}/IconsContext.d.ts +4 -0
- package/{dist/es/icons → icons}/SvgIcon.d.ts +4 -0
- package/icons/constants.d.ts +17 -0
- package/icons/models/flip.d.ts +15 -0
- package/{dist/npm/icons → icons}/models/size.d.ts +5 -1
- package/{dist/es/icons → icons}/models/theme-color.d.ts +5 -1
- package/{dist/es/icons → icons}/utils.d.ts +4 -0
- package/{dist/es/main.d.ts → index.d.ts} +4 -0
- package/index.js +8 -0
- package/index.mjs +1787 -0
- package/keys.d.ts +24 -0
- package/memoize.d.ts +14 -0
- package/{dist/es/models → models}/auto-scroll-options.d.ts +4 -1
- package/models/index.d.ts +9 -0
- package/{dist/npm/models → models}/kendoReactComponentBaseProps.d.ts +4 -1
- package/{dist/npm/models → models}/mouse.d.ts +4 -0
- package/{dist/npm/models → models}/pointer.d.ts +4 -0
- package/{dist/es/models → models}/touch.d.ts +4 -0
- package/{dist/npm/navigation.d.ts → navigation.d.ts} +4 -1
- package/noop.d.ts +8 -0
- package/package.json +26 -45
- package/scrollbarWidth.d.ts +12 -0
- package/{dist/npm/setter.d.ts → setter.d.ts} +4 -0
- package/theme.d.ts +12 -0
- package/{dist/es/tree-utils → tree-utils}/FieldsService.d.ts +4 -0
- package/tree-utils/SortedPublicItemIds.d.ts +12 -0
- package/{dist/es/tree-utils → tree-utils}/itemIdUtils.d.ts +4 -0
- package/{dist/es/tree-utils → tree-utils}/itemUtils.d.ts +4 -0
- package/tree-utils/misc.d.ts +12 -0
- package/{dist/es/treeDataOperations.d.ts → treeDataOperations.d.ts} +4 -0
- package/{dist/npm/typography → typography}/Typography.d.ts +4 -0
- package/{dist/es/typography → typography}/TypographyProps.d.ts +4 -1
- package/{dist/npm/typography → typography}/constants.d.ts +4 -0
- package/{dist/es/typography → typography}/models/margin.d.ts +5 -1
- package/validate-package.d.ts +12 -0
- package/watermark/WatermarkOverlay.d.ts +9 -0
- package/about.md +0 -3
- package/dist/es/Draggable.d.ts +0 -86
- package/dist/es/Draggable.js +0 -84
- package/dist/es/Droppable.d.ts +0 -77
- package/dist/es/Droppable.js +0 -68
- package/dist/es/FormComponent.js +0 -9
- package/dist/es/browser-support.service.d.ts +0 -7
- package/dist/es/browser-support.service.js +0 -30
- package/dist/es/canUseDOM.d.ts +0 -4
- package/dist/es/canUseDOM.js +0 -8
- package/dist/es/canUseRef.d.ts +0 -5
- package/dist/es/canUseRef.js +0 -12
- package/dist/es/classNames.d.ts +0 -4
- package/dist/es/classNames.js +0 -30
- package/dist/es/clone.d.ts +0 -20
- package/dist/es/clone.js +0 -52
- package/dist/es/constants/index.d.ts +0 -4
- package/dist/es/constants/index.js +0 -4
- package/dist/es/contexts/ZIndexContext.d.ts +0 -7
- package/dist/es/contexts/ZIndexContext.js +0 -6
- package/dist/es/drag-n-drop/context/index.d.ts +0 -19
- package/dist/es/drag-n-drop/context/index.js +0 -24
- package/dist/es/drag-n-drop/index.js +0 -44
- package/dist/es/events/BaseEvent.d.ts +0 -18
- package/dist/es/events/BaseEvent.js +0 -1
- package/dist/es/events/dispatchEvent.d.ts +0 -15
- package/dist/es/events/dispatchEvent.js +0 -22
- package/dist/es/fieldList.d.ts +0 -4
- package/dist/es/fieldList.js +0 -11
- package/dist/es/focus.d.ts +0 -4
- package/dist/es/focus.js +0 -15
- package/dist/es/getActiveElement.d.ts +0 -8
- package/dist/es/getActiveElement.js +0 -23
- package/dist/es/getTabIndex.d.ts +0 -4
- package/dist/es/getTabIndex.js +0 -23
- package/dist/es/getter.js +0 -30
- package/dist/es/guid.d.ts +0 -4
- package/dist/es/guid.js +0 -17
- package/dist/es/hasRelativeStackingContext.d.ts +0 -2
- package/dist/es/hasRelativeStackingContext.js +0 -25
- package/dist/es/hocs/AsyncFocusBlur.d.ts +0 -13
- package/dist/es/hocs/AsyncFocusBlur.js +0 -26
- package/dist/es/hocs/withPropsContext.d.ts +0 -5
- package/dist/es/hocs/withPropsContext.js +0 -22
- package/dist/es/hooks/index.d.ts +0 -12
- package/dist/es/hooks/index.js +0 -12
- package/dist/es/hooks/useAsyncFocusBlur.d.ts +0 -25
- package/dist/es/hooks/useAsyncFocusBlur.js +0 -72
- package/dist/es/hooks/useCollection.d.ts +0 -14
- package/dist/es/hooks/useCollection.js +0 -26
- package/dist/es/hooks/useControlledState.d.ts +0 -7
- package/dist/es/hooks/useControlledState.js +0 -23
- package/dist/es/hooks/useCustomComponent.d.ts +0 -13
- package/dist/es/hooks/useCustomComponent.js +0 -9
- package/dist/es/hooks/useDir.d.ts +0 -5
- package/dist/es/hooks/useDir.js +0 -19
- package/dist/es/hooks/useDocument.d.ts +0 -7
- package/dist/es/hooks/useDocument.js +0 -14
- package/dist/es/hooks/useDraggable.js +0 -336
- package/dist/es/hooks/useDroppable.js +0 -59
- package/dist/es/hooks/useInheritedState.d.ts +0 -13
- package/dist/es/hooks/useInheritedState.js +0 -21
- package/dist/es/hooks/useMouse.js +0 -117
- package/dist/es/hooks/usePointer.d.ts +0 -21
- package/dist/es/hooks/usePointer.js +0 -29
- package/dist/es/hooks/usePropsContext.d.ts +0 -3
- package/dist/es/hooks/usePropsContext.js +0 -7
- package/dist/es/hooks/useRtl.d.ts +0 -5
- package/dist/es/hooks/useRtl.js +0 -22
- package/dist/es/hooks/useTouch.d.ts +0 -15
- package/dist/es/hooks/useTouch.js +0 -29
- package/dist/es/hooks/useWindow.d.ts +0 -7
- package/dist/es/hooks/useWindow.js +0 -15
- package/dist/es/icons/BaseIconProps.d.ts +0 -73
- package/dist/es/icons/BaseIconProps.js +0 -1
- package/dist/es/icons/Icon.js +0 -78
- package/dist/es/icons/IconWrap.d.ts +0 -7
- package/dist/es/icons/IconWrap.js +0 -41
- package/dist/es/icons/IconsContext.js +0 -7
- package/dist/es/icons/SvgIcon.js +0 -96
- package/dist/es/icons/constants.d.ts +0 -13
- package/dist/es/icons/constants.js +0 -13
- package/dist/es/icons/models/flip.d.ts +0 -11
- package/dist/es/icons/models/flip.js +0 -1
- package/dist/es/icons/models/size.d.ts +0 -15
- package/dist/es/icons/models/size.js +0 -1
- package/dist/es/icons/models/theme-color.js +0 -1
- package/dist/es/icons/utils.js +0 -17
- package/dist/es/keys.d.ts +0 -20
- package/dist/es/keys.js +0 -20
- package/dist/es/main.js +0 -59
- package/dist/es/memoize.d.ts +0 -10
- package/dist/es/memoize.js +0 -41
- package/dist/es/models/auto-scroll-options.js +0 -1
- package/dist/es/models/index.d.ts +0 -5
- package/dist/es/models/index.js +0 -5
- package/dist/es/models/kendoReactComponentBaseProps.d.ts +0 -24
- package/dist/es/models/kendoReactComponentBaseProps.js +0 -1
- package/dist/es/models/mouse.d.ts +0 -16
- package/dist/es/models/mouse.js +0 -1
- package/dist/es/models/pointer.d.ts +0 -23
- package/dist/es/models/pointer.js +0 -1
- package/dist/es/models/touch.js +0 -1
- package/dist/es/navigation.d.ts +0 -128
- package/dist/es/navigation.js +0 -144
- package/dist/es/noop.d.ts +0 -4
- package/dist/es/noop.js +0 -4
- package/dist/es/scrollbarWidth.d.ts +0 -8
- package/dist/es/scrollbarWidth.js +0 -22
- package/dist/es/setter.d.ts +0 -16
- package/dist/es/setter.js +0 -36
- package/dist/es/theme.d.ts +0 -8
- package/dist/es/theme.js +0 -17
- package/dist/es/tree-utils/FieldsService.js +0 -50
- package/dist/es/tree-utils/SortedPublicItemIds.d.ts +0 -8
- package/dist/es/tree-utils/SortedPublicItemIds.js +0 -26
- package/dist/es/tree-utils/itemIdUtils.js +0 -117
- package/dist/es/tree-utils/itemUtils.js +0 -191
- package/dist/es/tree-utils/misc.d.ts +0 -8
- package/dist/es/tree-utils/misc.js +0 -17
- package/dist/es/treeDataOperations.js +0 -105
- package/dist/es/typography/Typography.d.ts +0 -35
- package/dist/es/typography/Typography.js +0 -266
- package/dist/es/typography/TypographyProps.js +0 -1
- package/dist/es/typography/constants.d.ts +0 -84
- package/dist/es/typography/constants.js +0 -84
- package/dist/es/typography/models/margin.js +0 -1
- package/dist/es/validate-package.d.ts +0 -8
- package/dist/es/validate-package.js +0 -23
- package/dist/es/watermark/WatermarkOverlay.d.ts +0 -6
- package/dist/es/watermark/WatermarkOverlay.js +0 -86
- package/dist/npm/Draggable.js +0 -87
- package/dist/npm/Droppable.js +0 -71
- package/dist/npm/FormComponent.d.ts +0 -98
- package/dist/npm/FormComponent.js +0 -12
- package/dist/npm/browser-support.service.d.ts +0 -7
- package/dist/npm/browser-support.service.js +0 -33
- package/dist/npm/canUseDOM.d.ts +0 -4
- package/dist/npm/canUseDOM.js +0 -11
- package/dist/npm/canUseRef.d.ts +0 -5
- package/dist/npm/canUseRef.js +0 -16
- package/dist/npm/classNames.d.ts +0 -4
- package/dist/npm/classNames.js +0 -34
- package/dist/npm/clone.js +0 -60
- package/dist/npm/constants/index.d.ts +0 -4
- package/dist/npm/constants/index.js +0 -7
- package/dist/npm/contexts/ZIndexContext.d.ts +0 -7
- package/dist/npm/contexts/ZIndexContext.js +0 -10
- package/dist/npm/drag-n-drop/context/index.js +0 -27
- package/dist/npm/drag-n-drop/index.d.ts +0 -21
- package/dist/npm/drag-n-drop/index.js +0 -48
- package/dist/npm/events/BaseEvent.d.ts +0 -18
- package/dist/npm/events/BaseEvent.js +0 -2
- package/dist/npm/events/dispatchEvent.js +0 -26
- package/dist/npm/fieldList.d.ts +0 -4
- package/dist/npm/fieldList.js +0 -15
- package/dist/npm/focus.d.ts +0 -4
- package/dist/npm/focus.js +0 -19
- package/dist/npm/getActiveElement.d.ts +0 -8
- package/dist/npm/getActiveElement.js +0 -28
- package/dist/npm/getTabIndex.d.ts +0 -4
- package/dist/npm/getTabIndex.js +0 -27
- package/dist/npm/getter.d.ts +0 -14
- package/dist/npm/getter.js +0 -34
- package/dist/npm/guid.d.ts +0 -4
- package/dist/npm/guid.js +0 -21
- package/dist/npm/hasRelativeStackingContext.d.ts +0 -2
- package/dist/npm/hasRelativeStackingContext.js +0 -29
- package/dist/npm/hocs/AsyncFocusBlur.js +0 -30
- package/dist/npm/hocs/withPropsContext.js +0 -27
- package/dist/npm/hooks/index.js +0 -28
- package/dist/npm/hooks/useAsyncFocusBlur.js +0 -76
- package/dist/npm/hooks/useCollection.d.ts +0 -14
- package/dist/npm/hooks/useCollection.js +0 -30
- package/dist/npm/hooks/useControlledState.d.ts +0 -7
- package/dist/npm/hooks/useControlledState.js +0 -27
- package/dist/npm/hooks/useCustomComponent.d.ts +0 -13
- package/dist/npm/hooks/useCustomComponent.js +0 -13
- package/dist/npm/hooks/useDir.d.ts +0 -5
- package/dist/npm/hooks/useDir.js +0 -23
- package/dist/npm/hooks/useDocument.d.ts +0 -7
- package/dist/npm/hooks/useDocument.js +0 -18
- package/dist/npm/hooks/useDraggable.d.ts +0 -63
- package/dist/npm/hooks/useDraggable.js +0 -340
- package/dist/npm/hooks/useDroppable.d.ts +0 -28
- package/dist/npm/hooks/useDroppable.js +0 -63
- package/dist/npm/hooks/useInheritedState.d.ts +0 -13
- package/dist/npm/hooks/useInheritedState.js +0 -25
- package/dist/npm/hooks/useMouse.d.ts +0 -20
- package/dist/npm/hooks/useMouse.js +0 -121
- package/dist/npm/hooks/usePointer.d.ts +0 -21
- package/dist/npm/hooks/usePointer.js +0 -33
- package/dist/npm/hooks/usePropsContext.d.ts +0 -3
- package/dist/npm/hooks/usePropsContext.js +0 -11
- package/dist/npm/hooks/useRtl.d.ts +0 -5
- package/dist/npm/hooks/useRtl.js +0 -26
- package/dist/npm/hooks/useTouch.d.ts +0 -15
- package/dist/npm/hooks/useTouch.js +0 -33
- package/dist/npm/hooks/useWindow.d.ts +0 -7
- package/dist/npm/hooks/useWindow.js +0 -19
- package/dist/npm/icons/BaseIconProps.js +0 -2
- package/dist/npm/icons/Icon.d.ts +0 -35
- package/dist/npm/icons/Icon.js +0 -81
- package/dist/npm/icons/IconWrap.d.ts +0 -7
- package/dist/npm/icons/IconWrap.js +0 -44
- package/dist/npm/icons/IconsContext.d.ts +0 -21
- package/dist/npm/icons/IconsContext.js +0 -10
- package/dist/npm/icons/SvgIcon.d.ts +0 -71
- package/dist/npm/icons/SvgIcon.js +0 -99
- package/dist/npm/icons/constants.d.ts +0 -13
- package/dist/npm/icons/constants.js +0 -16
- package/dist/npm/icons/models/flip.d.ts +0 -11
- package/dist/npm/icons/models/flip.js +0 -2
- package/dist/npm/icons/models/size.js +0 -2
- package/dist/npm/icons/models/theme-color.d.ts +0 -21
- package/dist/npm/icons/models/theme-color.js +0 -2
- package/dist/npm/icons/utils.d.ts +0 -17
- package/dist/npm/icons/utils.js +0 -22
- package/dist/npm/keys.d.ts +0 -20
- package/dist/npm/keys.js +0 -23
- package/dist/npm/main.d.ts +0 -58
- package/dist/npm/main.js +0 -75
- package/dist/npm/memoize.d.ts +0 -10
- package/dist/npm/memoize.js +0 -45
- package/dist/npm/models/auto-scroll-options.d.ts +0 -23
- package/dist/npm/models/auto-scroll-options.js +0 -2
- package/dist/npm/models/index.d.ts +0 -5
- package/dist/npm/models/index.js +0 -21
- package/dist/npm/models/kendoReactComponentBaseProps.js +0 -2
- package/dist/npm/models/mouse.js +0 -2
- package/dist/npm/models/pointer.js +0 -2
- package/dist/npm/models/touch.d.ts +0 -17
- package/dist/npm/models/touch.js +0 -2
- package/dist/npm/navigation.js +0 -147
- package/dist/npm/noop.d.ts +0 -4
- package/dist/npm/noop.js +0 -8
- package/dist/npm/scrollbarWidth.d.ts +0 -8
- package/dist/npm/scrollbarWidth.js +0 -27
- package/dist/npm/setter.js +0 -40
- package/dist/npm/theme.d.ts +0 -8
- package/dist/npm/theme.js +0 -20
- package/dist/npm/tree-utils/FieldsService.d.ts +0 -25
- package/dist/npm/tree-utils/FieldsService.js +0 -53
- package/dist/npm/tree-utils/SortedPublicItemIds.d.ts +0 -8
- package/dist/npm/tree-utils/SortedPublicItemIds.js +0 -29
- package/dist/npm/tree-utils/itemIdUtils.d.ts +0 -60
- package/dist/npm/tree-utils/itemIdUtils.js +0 -132
- package/dist/npm/tree-utils/itemUtils.d.ts +0 -45
- package/dist/npm/tree-utils/itemUtils.js +0 -205
- package/dist/npm/tree-utils/misc.d.ts +0 -8
- package/dist/npm/tree-utils/misc.js +0 -22
- package/dist/npm/treeDataOperations.d.ts +0 -39
- package/dist/npm/treeDataOperations.js +0 -112
- package/dist/npm/typography/Typography.js +0 -269
- package/dist/npm/typography/TypographyProps.d.ts +0 -121
- package/dist/npm/typography/TypographyProps.js +0 -2
- package/dist/npm/typography/constants.js +0 -87
- package/dist/npm/typography/models/margin.d.ts +0 -23
- package/dist/npm/typography/models/margin.js +0 -2
- package/dist/npm/validate-package.d.ts +0 -8
- package/dist/npm/validate-package.js +0 -28
- package/dist/npm/watermark/WatermarkOverlay.d.ts +0 -6
- package/dist/npm/watermark/WatermarkOverlay.js +0 -90
- package/dist/systemjs/kendo-react-common.js +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.SvgIcon = void 0;
|
|
26
|
-
var React = require("react");
|
|
27
|
-
var PropTypes = require("prop-types");
|
|
28
|
-
var classNames_1 = require("../classNames");
|
|
29
|
-
var constants_1 = require("./constants");
|
|
30
|
-
/**
|
|
31
|
-
* Represents the [KendoReact SvgIcon component]({% slug overview_svgicon %}).
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```jsx
|
|
35
|
-
* import { accessibility } from '@progress/kendo-svg-icons';
|
|
36
|
-
*
|
|
37
|
-
* const App = () => {
|
|
38
|
-
* return (
|
|
39
|
-
* <SvgIcon icon={accessibility} />
|
|
40
|
-
* );
|
|
41
|
-
* };
|
|
42
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
exports.SvgIcon = React.forwardRef(function (props, ref) {
|
|
46
|
-
var children = props.children, className = props.className, svgClassName = props.svgClassName, icon = props.icon, flip = props.flip, id = props.id, tabIndex = props.tabIndex, size = props.size, style = props.style, svgStyle = props.svgStyle, themeColor = props.themeColor, viewBox = props.viewBox, name = props.name, onClick = props.onClick, others = __rest(props, ["children", "className", "svgClassName", "icon", "flip", "id", "tabIndex", "size", "style", "svgStyle", "themeColor", "viewBox", "name", "onClick"]);
|
|
47
|
-
var elementRef = React.useRef(null);
|
|
48
|
-
React.useImperativeHandle(ref, function () { return ({
|
|
49
|
-
element: elementRef.current
|
|
50
|
-
}); });
|
|
51
|
-
var iconNameProp = React.useMemo(function () { return icon ? icon.name : defaultProps.icon; }, [icon]);
|
|
52
|
-
var sizeProp = React.useMemo(function () { return size || defaultProps.size; }, [size]);
|
|
53
|
-
var flipProp = React.useMemo(function () { return flip || defaultProps.flip; }, [flip]);
|
|
54
|
-
var viewBoxProp = React.useMemo(function () { return viewBox || defaultProps.viewBox; }, [viewBox]);
|
|
55
|
-
var elementClassNames = React.useMemo(function () {
|
|
56
|
-
var _a;
|
|
57
|
-
return (0, classNames_1.classNames)('k-icon', 'k-svg-icon', 'k-svg-i-' + iconNameProp, (_a = {},
|
|
58
|
-
_a["k-color-".concat(themeColor)] = themeColor,
|
|
59
|
-
_a['k-flip-h'] = flipProp === 'horizontal' || flipProp === 'both',
|
|
60
|
-
_a['k-flip-v'] = flipProp === 'vertical' || flipProp === 'both',
|
|
61
|
-
_a), constants_1.SIZE_CLASSES[sizeProp], className);
|
|
62
|
-
}, [iconNameProp, themeColor, sizeProp, flipProp, className]);
|
|
63
|
-
var elementStyle = React.useMemo(function () {
|
|
64
|
-
if (props.width && props.height) {
|
|
65
|
-
return __assign({ width: props.width, height: props.height }, style);
|
|
66
|
-
}
|
|
67
|
-
else if (props.width) {
|
|
68
|
-
return __assign({ width: props.width, height: props.width }, style);
|
|
69
|
-
}
|
|
70
|
-
else if (props.height) {
|
|
71
|
-
return __assign({ width: props.height, height: props.height }, style);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
return __assign({}, style);
|
|
75
|
-
}
|
|
76
|
-
}, [props.width, props.height, style]);
|
|
77
|
-
return (React.createElement("span", { className: elementClassNames, style: elementStyle, ref: elementRef, onClick: onClick },
|
|
78
|
-
React.createElement("svg", __assign({ id: id, className: svgClassName, style: svgStyle, "aria-hidden": true, tabIndex: tabIndex, focusable: false, xmlns: "http://www.w3.org/2000/svg", viewBox: icon ? icon.viewBox : viewBoxProp, dangerouslySetInnerHTML: icon ? { __html: icon.content } : undefined }, others), icon ? undefined : children)));
|
|
79
|
-
});
|
|
80
|
-
exports.SvgIcon.propTypes = {
|
|
81
|
-
style: PropTypes.object,
|
|
82
|
-
classNames: PropTypes.string,
|
|
83
|
-
children: PropTypes.any,
|
|
84
|
-
icon: PropTypes.object,
|
|
85
|
-
themeColor: PropTypes.oneOf([
|
|
86
|
-
'inherit', 'primary', 'secondary', 'tertiary',
|
|
87
|
-
'info', 'success', 'error', 'warning',
|
|
88
|
-
'dark', 'light', 'inverse'
|
|
89
|
-
]),
|
|
90
|
-
size: PropTypes.oneOf(['default', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge', 'xxxlarge']),
|
|
91
|
-
flip: PropTypes.oneOf(['default', 'horizontal', 'vertical', 'both'])
|
|
92
|
-
};
|
|
93
|
-
var defaultProps = {
|
|
94
|
-
size: 'default',
|
|
95
|
-
flip: 'default',
|
|
96
|
-
icon: '',
|
|
97
|
-
viewBox: '0 0 24 24'
|
|
98
|
-
};
|
|
99
|
-
exports.SvgIcon.displayName = 'KendoSvgIcon';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SIZE_CLASSES = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
exports.SIZE_CLASSES = {
|
|
8
|
-
'default': '',
|
|
9
|
-
'xsmall': 'k-icon-xs',
|
|
10
|
-
'small': 'k-icon-sm',
|
|
11
|
-
'medium': 'k-icon-md',
|
|
12
|
-
'large': 'k-icon-lg',
|
|
13
|
-
'xlarge': 'k-icon-xl',
|
|
14
|
-
'xxlarge': 'k-icon-xxl',
|
|
15
|
-
'xxxlarge': 'k-icon-xxxl'
|
|
16
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the icon flip direction.
|
|
3
|
-
*
|
|
4
|
-
* The possible values are:
|
|
5
|
-
* * `default` (Default)—No flipping applied.
|
|
6
|
-
* * `horizontal`—Flips the icon in horizontal direction.
|
|
7
|
-
* * `vertical`—Flips the icon in vertical direction.
|
|
8
|
-
* * `both`—Flips the icon in both horizontal and vertical directions.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export declare type IconFlip = 'default' | 'horizontal' | 'vertical' | 'both';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the theme color of the Icon.
|
|
3
|
-
*
|
|
4
|
-
* The possible values are:
|
|
5
|
-
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
6
|
-
* * `primary` —Applies coloring based on primary theme color.
|
|
7
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
8
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
9
|
-
* * `info`—Applies coloring based on info theme color.
|
|
10
|
-
* * `success`— Applies coloring based on success theme color.
|
|
11
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
12
|
-
* * `error`— Applies coloring based on error theme color.
|
|
13
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
14
|
-
* * `light`— Applies coloring based on light theme color.
|
|
15
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
16
|
-
*
|
|
17
|
-
* If the property is not set, the icon inherits the color from its parent.
|
|
18
|
-
*
|
|
19
|
-
* You can use the `style` prop to apply custom color related properties to the icon.
|
|
20
|
-
*/
|
|
21
|
-
export declare type IconThemeColor = 'inherit' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from 'prop-types';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export declare const toIconName: (iconClass: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const toIconClass: (name: string) => string;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const svgIconPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
name: PropTypes.Validator<string>;
|
|
15
|
-
content: PropTypes.Validator<string>;
|
|
16
|
-
viewBox: PropTypes.Validator<string>;
|
|
17
|
-
}>>;
|
package/dist/npm/icons/utils.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.svgIconPropType = exports.toIconClass = exports.toIconName = void 0;
|
|
4
|
-
var PropTypes = require("prop-types");
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
var toIconName = function (iconClass) { return iconClass.replace(/^k-i-/, ''); };
|
|
9
|
-
exports.toIconName = toIconName;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var toIconClass = function (name) { return 'k-i-' + name; };
|
|
14
|
-
exports.toIconClass = toIconClass;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
exports.svgIconPropType = PropTypes.shape({
|
|
19
|
-
name: PropTypes.string.isRequired,
|
|
20
|
-
content: PropTypes.string.isRequired,
|
|
21
|
-
viewBox: PropTypes.string.isRequired
|
|
22
|
-
});
|
package/dist/npm/keys.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare const Keys: {
|
|
5
|
-
backspace: number;
|
|
6
|
-
tab: number;
|
|
7
|
-
enter: number;
|
|
8
|
-
shift: number;
|
|
9
|
-
esc: number;
|
|
10
|
-
space: number;
|
|
11
|
-
pageUp: number;
|
|
12
|
-
pageDown: number;
|
|
13
|
-
end: number;
|
|
14
|
-
home: number;
|
|
15
|
-
left: number;
|
|
16
|
-
up: number;
|
|
17
|
-
right: number;
|
|
18
|
-
down: number;
|
|
19
|
-
delete: number;
|
|
20
|
-
};
|
package/dist/npm/keys.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Keys = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
exports.Keys = {
|
|
8
|
-
backspace: 8,
|
|
9
|
-
tab: 9,
|
|
10
|
-
enter: 13,
|
|
11
|
-
shift: 16,
|
|
12
|
-
esc: 27,
|
|
13
|
-
space: 32,
|
|
14
|
-
pageUp: 33,
|
|
15
|
-
pageDown: 34,
|
|
16
|
-
end: 35,
|
|
17
|
-
home: 36,
|
|
18
|
-
left: 37,
|
|
19
|
-
up: 38,
|
|
20
|
-
right: 39,
|
|
21
|
-
down: 40,
|
|
22
|
-
delete: 46
|
|
23
|
-
};
|
package/dist/npm/main.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export * from './contexts/ZIndexContext';
|
|
2
|
-
export * from './browser-support.service';
|
|
3
|
-
export * from './canUseDOM';
|
|
4
|
-
export * from './canUseRef';
|
|
5
|
-
export * from './classNames';
|
|
6
|
-
export * from './clone';
|
|
7
|
-
export * from './focus';
|
|
8
|
-
export * from './FormComponent';
|
|
9
|
-
export * from './getTabIndex';
|
|
10
|
-
export * from './getter';
|
|
11
|
-
export * from './guid';
|
|
12
|
-
export * from './keys';
|
|
13
|
-
export * from './noop';
|
|
14
|
-
export * from './scrollbarWidth';
|
|
15
|
-
export * from './setter';
|
|
16
|
-
export * from './treeDataOperations';
|
|
17
|
-
export * from './validate-package';
|
|
18
|
-
export * from './hasRelativeStackingContext';
|
|
19
|
-
export * from './watermark/WatermarkOverlay';
|
|
20
|
-
export * from './events/BaseEvent';
|
|
21
|
-
export * from './events/dispatchEvent';
|
|
22
|
-
export * from './hocs/AsyncFocusBlur';
|
|
23
|
-
export * from './hocs/withPropsContext';
|
|
24
|
-
export * from './hooks/useDir';
|
|
25
|
-
export * from './hooks/useAsyncFocusBlur';
|
|
26
|
-
export * from './hooks/useRtl';
|
|
27
|
-
export * from './hooks/useMouse';
|
|
28
|
-
export * from './hooks/useCustomComponent';
|
|
29
|
-
export * from './hooks/usePropsContext';
|
|
30
|
-
export * from './hooks/useCollection';
|
|
31
|
-
export * from './hooks/useDocument';
|
|
32
|
-
export * from './hooks/useWindow';
|
|
33
|
-
export * from './models';
|
|
34
|
-
export * from './icons/Icon';
|
|
35
|
-
export * from './icons/SvgIcon';
|
|
36
|
-
export * from './icons/IconWrap';
|
|
37
|
-
export * from './icons/IconsContext';
|
|
38
|
-
export * from './icons/models/flip';
|
|
39
|
-
export * from './icons/models/size';
|
|
40
|
-
export * from './icons/models/theme-color';
|
|
41
|
-
export * from './icons/utils';
|
|
42
|
-
export * from './typography/models/margin';
|
|
43
|
-
export * from './typography/TypographyProps';
|
|
44
|
-
export * from './typography/Typography';
|
|
45
|
-
export * from './drag-n-drop';
|
|
46
|
-
export * from './Draggable';
|
|
47
|
-
export * from './Droppable';
|
|
48
|
-
export * from './hooks/useDraggable';
|
|
49
|
-
export * from './hooks/useDroppable';
|
|
50
|
-
export * from './theme';
|
|
51
|
-
export * from './memoize';
|
|
52
|
-
export * from './navigation';
|
|
53
|
-
export * from './getActiveElement';
|
|
54
|
-
export * from './tree-utils/FieldsService';
|
|
55
|
-
export * from './tree-utils/SortedPublicItemIds';
|
|
56
|
-
export * as treeIdUtils from './tree-utils/itemIdUtils';
|
|
57
|
-
export * from './tree-utils/itemUtils';
|
|
58
|
-
export * from './tree-utils/misc';
|
package/dist/npm/main.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.treeIdUtils = void 0;
|
|
18
|
-
__exportStar(require("./contexts/ZIndexContext"), exports);
|
|
19
|
-
__exportStar(require("./browser-support.service"), exports);
|
|
20
|
-
__exportStar(require("./canUseDOM"), exports);
|
|
21
|
-
__exportStar(require("./canUseRef"), exports);
|
|
22
|
-
__exportStar(require("./classNames"), exports);
|
|
23
|
-
__exportStar(require("./clone"), exports);
|
|
24
|
-
__exportStar(require("./focus"), exports);
|
|
25
|
-
__exportStar(require("./FormComponent"), exports);
|
|
26
|
-
__exportStar(require("./getTabIndex"), exports);
|
|
27
|
-
__exportStar(require("./getter"), exports);
|
|
28
|
-
__exportStar(require("./guid"), exports);
|
|
29
|
-
__exportStar(require("./keys"), exports);
|
|
30
|
-
__exportStar(require("./noop"), exports);
|
|
31
|
-
__exportStar(require("./scrollbarWidth"), exports);
|
|
32
|
-
__exportStar(require("./setter"), exports);
|
|
33
|
-
__exportStar(require("./treeDataOperations"), exports);
|
|
34
|
-
__exportStar(require("./validate-package"), exports);
|
|
35
|
-
__exportStar(require("./hasRelativeStackingContext"), exports);
|
|
36
|
-
__exportStar(require("./watermark/WatermarkOverlay"), exports);
|
|
37
|
-
__exportStar(require("./events/BaseEvent"), exports);
|
|
38
|
-
__exportStar(require("./events/dispatchEvent"), exports);
|
|
39
|
-
__exportStar(require("./hocs/AsyncFocusBlur"), exports);
|
|
40
|
-
__exportStar(require("./hocs/withPropsContext"), exports);
|
|
41
|
-
__exportStar(require("./hooks/useDir"), exports);
|
|
42
|
-
__exportStar(require("./hooks/useAsyncFocusBlur"), exports);
|
|
43
|
-
__exportStar(require("./hooks/useRtl"), exports);
|
|
44
|
-
__exportStar(require("./hooks/useMouse"), exports);
|
|
45
|
-
__exportStar(require("./hooks/useCustomComponent"), exports);
|
|
46
|
-
__exportStar(require("./hooks/usePropsContext"), exports);
|
|
47
|
-
__exportStar(require("./hooks/useCollection"), exports);
|
|
48
|
-
__exportStar(require("./hooks/useDocument"), exports);
|
|
49
|
-
__exportStar(require("./hooks/useWindow"), exports);
|
|
50
|
-
__exportStar(require("./models"), exports);
|
|
51
|
-
__exportStar(require("./icons/Icon"), exports);
|
|
52
|
-
__exportStar(require("./icons/SvgIcon"), exports);
|
|
53
|
-
__exportStar(require("./icons/IconWrap"), exports);
|
|
54
|
-
__exportStar(require("./icons/IconsContext"), exports);
|
|
55
|
-
__exportStar(require("./icons/models/flip"), exports);
|
|
56
|
-
__exportStar(require("./icons/models/size"), exports);
|
|
57
|
-
__exportStar(require("./icons/models/theme-color"), exports);
|
|
58
|
-
__exportStar(require("./icons/utils"), exports);
|
|
59
|
-
__exportStar(require("./typography/models/margin"), exports);
|
|
60
|
-
__exportStar(require("./typography/TypographyProps"), exports);
|
|
61
|
-
__exportStar(require("./typography/Typography"), exports);
|
|
62
|
-
__exportStar(require("./drag-n-drop"), exports);
|
|
63
|
-
__exportStar(require("./Draggable"), exports);
|
|
64
|
-
__exportStar(require("./Droppable"), exports);
|
|
65
|
-
__exportStar(require("./hooks/useDraggable"), exports);
|
|
66
|
-
__exportStar(require("./hooks/useDroppable"), exports);
|
|
67
|
-
__exportStar(require("./theme"), exports);
|
|
68
|
-
__exportStar(require("./memoize"), exports);
|
|
69
|
-
__exportStar(require("./navigation"), exports);
|
|
70
|
-
__exportStar(require("./getActiveElement"), exports);
|
|
71
|
-
__exportStar(require("./tree-utils/FieldsService"), exports);
|
|
72
|
-
__exportStar(require("./tree-utils/SortedPublicItemIds"), exports);
|
|
73
|
-
exports.treeIdUtils = require("./tree-utils/itemIdUtils");
|
|
74
|
-
__exportStar(require("./tree-utils/itemUtils"), exports);
|
|
75
|
-
__exportStar(require("./tree-utils/misc"), exports);
|
package/dist/npm/memoize.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare type EqualityFn<TFunc extends (...args: any[]) => any> = (newArgs: Parameters<TFunc>, lastArgs: Parameters<TFunc>) => boolean;
|
|
2
|
-
declare type MemoizedFn<TFunc extends (this: any, ...args: any[]) => any> = {
|
|
3
|
-
clear: () => void;
|
|
4
|
-
(this: ThisParameterType<TFunc>, ...args: Parameters<TFunc>): ReturnType<TFunc>;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>(resultFn: TFunc, isEqualFn?: EqualityFn<TFunc>): MemoizedFn<TFunc>;
|
|
10
|
-
export {};
|
package/dist/npm/memoize.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.memoizeOne = void 0;
|
|
4
|
-
function isEqual(first, second) {
|
|
5
|
-
return (first === second) || (Number.isNaN(first) && Number.isNaN(second));
|
|
6
|
-
}
|
|
7
|
-
function areInputsEqual(newInputs, lastInputs) {
|
|
8
|
-
if (newInputs.length !== lastInputs.length) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
for (var i = 0; i < newInputs.length; i++) {
|
|
12
|
-
if (!isEqual(newInputs[i], lastInputs[i])) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
function memoizeOne(resultFn, isEqualFn) {
|
|
22
|
-
if (isEqualFn === void 0) { isEqualFn = areInputsEqual; }
|
|
23
|
-
var cache = null;
|
|
24
|
-
function memoized() {
|
|
25
|
-
var newArgs = [];
|
|
26
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
27
|
-
newArgs[_i] = arguments[_i];
|
|
28
|
-
}
|
|
29
|
-
if (cache && cache.lastThis === this && isEqualFn(newArgs, cache.lastArgs)) {
|
|
30
|
-
return cache.lastResult;
|
|
31
|
-
}
|
|
32
|
-
var lastResult = resultFn.apply(this, newArgs);
|
|
33
|
-
cache = {
|
|
34
|
-
lastResult: lastResult,
|
|
35
|
-
lastArgs: newArgs,
|
|
36
|
-
lastThis: this
|
|
37
|
-
};
|
|
38
|
-
return lastResult;
|
|
39
|
-
}
|
|
40
|
-
memoized.clear = function clear() {
|
|
41
|
-
cache = null;
|
|
42
|
-
};
|
|
43
|
-
return memoized;
|
|
44
|
-
}
|
|
45
|
-
exports.memoizeOne = memoizeOne;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Represents additional configuration options for the `autoScroll` options of the `useDraggable` hook and `Draggable` component.
|
|
4
|
-
*/
|
|
5
|
-
export interface AutoScrollOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Set to `false` to disable the `autoScroll` feature.
|
|
8
|
-
*/
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Allows the user to toggle `autoScroll` in a specific direction.
|
|
12
|
-
*/
|
|
13
|
-
direction?: {
|
|
14
|
-
horizontal: boolean;
|
|
15
|
-
vertical: boolean;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Overrides the calculated element used for boundary detection, used to calculate the `autoScroll` velocity.
|
|
19
|
-
*/
|
|
20
|
-
boundaryElementRef?: React.RefObject<HTMLElement | null | {
|
|
21
|
-
element: HTMLElement | null;
|
|
22
|
-
}> | null;
|
|
23
|
-
}
|
package/dist/npm/models/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./mouse"), exports);
|
|
18
|
-
__exportStar(require("./touch"), exports);
|
|
19
|
-
__exportStar(require("./pointer"), exports);
|
|
20
|
-
__exportStar(require("./auto-scroll-options"), exports);
|
|
21
|
-
__exportStar(require("./kendoReactComponentBaseProps"), exports);
|
package/dist/npm/models/mouse.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export interface KendoTouch<T, E extends HTMLElement> {
|
|
6
|
-
onTouchStart?: (args: KendoTouchEvent<T, E>) => void;
|
|
7
|
-
onTouchMove?: (args: KendoTouchEvent<T, E>) => void;
|
|
8
|
-
onTouchEnd?: (args: KendoTouchEvent<T, E>) => void;
|
|
9
|
-
onTouchCancel?: (args: KendoTouchEvent<T, E>) => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export interface KendoTouchEvent<T, E extends HTMLElement = HTMLElement> {
|
|
15
|
-
syntheticEvent: React.TouchEvent<E>;
|
|
16
|
-
target: T;
|
|
17
|
-
}
|
package/dist/npm/models/touch.js
DELETED