beca-ui 0.1.21-beta.8 → 0.1.21
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/README.md +0 -0
- package/dist/beca-ui.js +29419 -25748
- package/dist/components/App/App.d.ts +4 -0
- package/dist/components/App/App.types.d.ts +3 -0
- package/dist/components/App/index.d.ts +3 -0
- package/dist/components/BecaColorPicker/BecaColorPicker.d.ts +2 -0
- package/dist/components/BecaColorPicker/BecaColorPicker.types.d.ts +2 -0
- package/dist/components/BecaColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -2
- package/dist/components/ColorPicker/ColorPicker.types.d.ts +3 -2
- package/dist/components/ColorPicker/index.d.ts +3 -3
- package/dist/components/Flex/Flex.d.ts +4 -0
- package/dist/components/Flex/Flex.types.d.ts +3 -0
- package/dist/components/Flex/index.d.ts +3 -0
- package/dist/components/FloatButton/FloatButton.d.ts +4 -0
- package/dist/components/FloatButton/FloatButton.types.d.ts +3 -0
- package/dist/components/FloatButton/index.d.ts +3 -0
- package/dist/components/MainLayout/Header/Header.types.d.ts +2 -1
- package/dist/components/MainLayout/index.d.ts +2 -2
- package/dist/components/PdfDragBox/Box.d.ts +7 -0
- package/dist/components/PdfDragBox/BoxContainer.d.ts +2 -0
- package/dist/components/QRCode/QRCode.d.ts +4 -0
- package/dist/components/QRCode/QRCode.types.d.ts +3 -0
- package/dist/components/QRCode/index.d.ts +3 -0
- package/dist/components/Tour/Tour.d.ts +4 -0
- package/dist/components/Tour/Tour.types.d.ts +3 -0
- package/dist/components/Tour/index.d.ts +3 -0
- package/dist/components/index.d.ts +7 -1
- package/dist/main.css +1 -1
- package/dist/vite.svg +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AlphaPicker, BlockPicker, ChromePicker, CirclePicker, CompactPicker, GithubPicker, HuePicker, MaterialPicker, PhotoshopPicker, SketchPicker, SliderPicker, SwatchesPicker, TwitterPicker } from "react-color";
|
|
2
|
+
export { AlphaPicker, BlockPicker, ChromePicker, CirclePicker, CompactPicker, GithubPicker, HuePicker, MaterialPicker, PhotoshopPicker, SketchPicker, SliderPicker, SwatchesPicker, TwitterPicker, };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorPickerProps } from ".";
|
|
3
|
+
declare const ColorPicker: React.FunctionComponent<ColorPickerProps>;
|
|
4
|
+
export default ColorPicker;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { ColorPickerProps as AntColorPickerProps } from "antd";
|
|
2
|
+
export interface ColorPickerProps extends AntColorPickerProps {
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
export type {
|
|
1
|
+
import { ColorPickerProps } from "./ColorPicker.types";
|
|
2
|
+
export { default as ColorPicker } from "./ColorPicker";
|
|
3
|
+
export type { ColorPickerProps };
|
|
@@ -3,6 +3,7 @@ import { IPersonalProfileModel, ISupportContactModel } from "../../../models";
|
|
|
3
3
|
import { ApplicationsCardProps } from "../../ApplicationsCard";
|
|
4
4
|
import { ItemType } from "../../Menu";
|
|
5
5
|
import { LANGUAGE } from "../../ConfigProvider";
|
|
6
|
+
export type Theme = "Light" | "Dark";
|
|
6
7
|
export interface HeaderProps extends ApplicationsCardProps {
|
|
7
8
|
logoUrl: string;
|
|
8
9
|
collapsed: boolean;
|
|
@@ -20,7 +21,7 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
20
21
|
notification?: NotificationType;
|
|
21
22
|
LinkComponent: any;
|
|
22
23
|
isSwitchTheme?: boolean;
|
|
23
|
-
onSwitchedTheme?: (
|
|
24
|
+
onSwitchedTheme?: (theme: Theme) => void;
|
|
24
25
|
theme?: ThemeType;
|
|
25
26
|
onChangeLocale?: (locale: LANGUAGE) => void;
|
|
26
27
|
lang: LANGUAGE;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationItemType } from "./Header";
|
|
1
|
+
import { NotificationItemType, Theme } from "./Header";
|
|
2
2
|
import { MainLayoutProps } from "./MainLayout.types";
|
|
3
3
|
export * from "./MainLayout";
|
|
4
|
-
export type { MainLayoutProps, NotificationItemType };
|
|
4
|
+
export type { MainLayoutProps, NotificationItemType, Theme };
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from "react";
|
|
2
2
|
export declare const BOX_HEIGHT = 60;
|
|
3
3
|
export declare const BOX_WIDTH = 120;
|
|
4
|
+
export interface Position {
|
|
5
|
+
top: number;
|
|
6
|
+
left: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
4
10
|
export interface HandleBox {
|
|
5
11
|
id: any;
|
|
6
12
|
coordinates: number[];
|
|
7
13
|
image?: string;
|
|
8
14
|
page: number;
|
|
15
|
+
position: Position;
|
|
9
16
|
}
|
|
10
17
|
export interface BoxProps {
|
|
11
18
|
id: React.Key;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Position } from "./Box";
|
|
2
3
|
export interface ContainerProps {
|
|
3
4
|
pdf: string;
|
|
4
5
|
hideSourceOnDrag: boolean;
|
|
@@ -34,6 +35,7 @@ export interface ContainerBoxItem {
|
|
|
34
35
|
page: number;
|
|
35
36
|
image?: string;
|
|
36
37
|
id: React.Key;
|
|
38
|
+
position: Position;
|
|
37
39
|
}
|
|
38
40
|
export interface BoxContainerRef {
|
|
39
41
|
getBoxes: () => ContainerBoxItem[];
|
|
@@ -63,7 +63,13 @@ export * from "./PageHeader";
|
|
|
63
63
|
export * from "./Comment";
|
|
64
64
|
export * from "./VirtualList";
|
|
65
65
|
export * from "./ImgCrop";
|
|
66
|
-
export * from "./
|
|
66
|
+
export * from "./BecaColorPicker";
|
|
67
67
|
export * from "./Anchor";
|
|
68
68
|
export * from "./Drawer";
|
|
69
69
|
export * from "./PdfDragBox";
|
|
70
|
+
export * from "./Flex";
|
|
71
|
+
export * from "./FloatButton";
|
|
72
|
+
export * from "./ColorPicker";
|
|
73
|
+
export * from "./QRCode";
|
|
74
|
+
export * from "./Tour";
|
|
75
|
+
export * from "./App";
|