@app-studio/web 0.8.58 → 0.8.60
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/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +9 -0
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +9 -0
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +10 -0
- package/dist/components/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/dist/components/DragAndDrop/examples/Simple.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/pages/dragAndDrop.page.d.ts +3 -0
- package/dist/pages/icon.page.d.ts +2 -2
- package/dist/web.cjs.development.js +399 -174
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +395 -175
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +399 -174
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
export interface DragAndDropProps {
|
|
4
|
+
items: any[];
|
|
5
|
+
onChange?: (items: any[]) => void;
|
|
6
|
+
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
7
|
+
containerProps?: ViewProps;
|
|
8
|
+
itemProps?: ViewProps;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DragAndDropProps } from './DragAndDrop.props';
|
|
3
|
+
export declare const useDragAndDropState: ({ items: initialItems, onChange, }: DragAndDropProps) => {
|
|
4
|
+
items: any[];
|
|
5
|
+
draggedItem: any;
|
|
6
|
+
draggedIndex: number | null;
|
|
7
|
+
itemRefs: import("react").MutableRefObject<(HTMLDivElement | null)[]>;
|
|
8
|
+
handleDragStart: (e: React.MouseEvent | React.TouchEvent, index: number) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DragAndDropProps } from './DragAndDrop.props';
|
|
3
|
+
interface DragAndDropViewProps extends DragAndDropProps {
|
|
4
|
+
draggedIndex: number | null;
|
|
5
|
+
itemRefs: React.MutableRefObject<(HTMLDivElement | null)[]>;
|
|
6
|
+
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
7
|
+
handleDragStart: (e: React.MouseEvent | React.TouchEvent, index: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DragAndDropView: React.FC<DragAndDropViewProps>;
|
|
10
|
+
export {};
|
|
@@ -8,6 +8,9 @@ export interface IconProps extends Omit<ViewProps, 'size'> {
|
|
|
8
8
|
orientation?: 'left' | 'right' | 'up' | 'down';
|
|
9
9
|
}
|
|
10
10
|
export declare const ChevronIcon: React.FC<IconProps>;
|
|
11
|
+
export declare const DragHandleIcon: React.FC<IconProps>;
|
|
12
|
+
export declare const TwitterIcon: React.FC<IconProps>;
|
|
13
|
+
export declare const XIcon: React.FC<IconProps>;
|
|
11
14
|
export declare const TwitchIcon: React.FC<IconProps>;
|
|
12
15
|
export declare const CloseIcon: React.FC<IconProps>;
|
|
13
16
|
export declare const InstagramIcon: React.FC<IconProps>;
|
|
@@ -30,6 +30,7 @@ export * from './Icon/Icon';
|
|
|
30
30
|
export * as Icon from './Icon/Icon';
|
|
31
31
|
export * from './Toggle/Toggle';
|
|
32
32
|
export * from './ToggleGroup/ToggleGroup';
|
|
33
|
+
export * from './DragAndDrop/DragAndDrop';
|
|
33
34
|
export * from './Alert/Alert/Alert.props';
|
|
34
35
|
export * from './AspectRatio/AspectRatio/AspectRatio.props';
|
|
35
36
|
export * from './Avatar/Avatar/Avatar.props';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const
|
|
3
|
-
export default
|
|
2
|
+
export declare const IconPage: () => React.JSX.Element;
|
|
3
|
+
export default IconPage;
|