@ws-ui/shared 0.0.3 → 0.0.5
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/Incase/index.d.ts +4 -0
- package/dist/components/Tips/components/CarouselTip.d.ts +6 -0
- package/dist/components/Tips/components/TextTip.d.ts +7 -0
- package/dist/components/Tips/components/VideoTip.d.ts +4 -0
- package/dist/components/Tips/components/index.d.ts +3 -0
- package/dist/components/Tips/index.d.ts +7 -0
- package/dist/components/Tips/interfaces.d.ts +27 -0
- package/dist/components/Tips/provider.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/index.cjs.js +28 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5313 -6651
- package/dist/index.es.js.map +1 -1
- package/package.json +7 -4
- package/dist/hooks/use-enhanced-state/setupDevTools.d.ts +0 -27
- package/dist/hooks/use-enhanced-state/useEnhancedState.d.ts +0 -16
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum ETipType {
|
|
2
|
+
VIDEO = "video",
|
|
3
|
+
CAROUSEL = "carousel",
|
|
4
|
+
TEXT = "text"
|
|
5
|
+
}
|
|
6
|
+
export interface ITip {
|
|
7
|
+
key: string;
|
|
8
|
+
type: ETipType;
|
|
9
|
+
body: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IVideoTip extends ITip {
|
|
12
|
+
type: ETipType.VIDEO;
|
|
13
|
+
title: string;
|
|
14
|
+
video: {
|
|
15
|
+
provider: string;
|
|
16
|
+
link: string;
|
|
17
|
+
};
|
|
18
|
+
isInsideCarousel?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ITextTip extends ITip {
|
|
21
|
+
type: ETipType.TEXT;
|
|
22
|
+
}
|
|
23
|
+
export interface ICarouselTip extends ITip {
|
|
24
|
+
type: ETipType.CAROUSEL;
|
|
25
|
+
pages: (IVideoTip | ITextTip)[];
|
|
26
|
+
}
|
|
27
|
+
export type TTip = IVideoTip | ITextTip | ICarouselTip;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TTip } from './interfaces';
|
|
3
|
+
export declare const TipsProvider: FC<{
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const useTip: (key?: string) => {
|
|
7
|
+
tip: TTip | null;
|
|
8
|
+
toggleTips: () => void;
|
|
9
|
+
show: boolean;
|
|
10
|
+
enabled: boolean | undefined;
|
|
11
|
+
};
|
package/dist/hooks/index.d.ts
CHANGED