@databrainhq/plugin 0.13.0-beta.15 → 0.13.0-beta.16

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.
@@ -18,6 +18,7 @@ type Props = {
18
18
  minDate?: Date;
19
19
  maxDate?: Date;
20
20
  buttonWidth?: string;
21
+ isEnableSingleDate?: boolean;
21
22
  };
22
23
  export declare const DateRangePicker: React.FC<Props>;
23
24
  export default DateRangePicker;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ height?: string;
4
+ className?: string;
5
+ variant?: 'table' | 'card' | 'list';
6
+ };
7
+ export declare const SkeletonLoader: ({ height, className, variant }: Props) => React.JSX.Element;
8
+ export {};
@@ -50,3 +50,4 @@ export * from './Menu';
50
50
  export * from './ChartTypePanel';
51
51
  export * from './Badge';
52
52
  export * from './DraggableItem';
53
+ export * from './SkeletonLoader';
@@ -1,3 +1,12 @@
1
+ export type Modifiers = {
2
+ sorting?: {
3
+ isEnabled: boolean;
4
+ isEnabledAutoSort?: boolean;
5
+ sortingType: 'vertical' | 'horizontal';
6
+ list?: any[];
7
+ setList?: any;
8
+ };
9
+ };
1
10
  export type UseDragProps = {
2
11
  identifier: {
3
12
  id: string;
@@ -28,15 +37,7 @@ export type UseDropProps = {
28
37
  onDragLeave?: (event: DragEvent, data: DndStateProp) => void;
29
38
  onDrop?: (event: DragEvent, data: DndStateProp) => void;
30
39
  };
31
- modifiers?: {
32
- sorting?: {
33
- isEnabled: boolean;
34
- isEnabledAutoSort?: boolean;
35
- sortingType: 'vertical' | 'horizontal';
36
- list?: any[];
37
- setList?: any;
38
- };
39
- };
40
+ modifiers?: Modifiers;
40
41
  };
41
42
  export type DndStateProp = {
42
43
  active: (UseDragProps & {
@@ -57,4 +58,13 @@ export type DndStateProp = {
57
58
  DragPreviewCreateRoot?: any;
58
59
  draggables?: DndStateProp['active'][];
59
60
  droppables?: DndStateProp['over'][];
61
+ sorting?: {
62
+ sortedList: any[];
63
+ isSelfDrop: boolean;
64
+ ArrayElementSwap: (before: number, after: number, list: any[]) => any[];
65
+ sortingIndexes: {
66
+ before: number;
67
+ after: number;
68
+ };
69
+ };
60
70
  };