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.
Files changed (31) hide show
  1. package/README.md +0 -0
  2. package/dist/beca-ui.js +29419 -25748
  3. package/dist/components/App/App.d.ts +4 -0
  4. package/dist/components/App/App.types.d.ts +3 -0
  5. package/dist/components/App/index.d.ts +3 -0
  6. package/dist/components/BecaColorPicker/BecaColorPicker.d.ts +2 -0
  7. package/dist/components/BecaColorPicker/BecaColorPicker.types.d.ts +2 -0
  8. package/dist/components/BecaColorPicker/index.d.ts +3 -0
  9. package/dist/components/ColorPicker/ColorPicker.d.ts +4 -2
  10. package/dist/components/ColorPicker/ColorPicker.types.d.ts +3 -2
  11. package/dist/components/ColorPicker/index.d.ts +3 -3
  12. package/dist/components/Flex/Flex.d.ts +4 -0
  13. package/dist/components/Flex/Flex.types.d.ts +3 -0
  14. package/dist/components/Flex/index.d.ts +3 -0
  15. package/dist/components/FloatButton/FloatButton.d.ts +4 -0
  16. package/dist/components/FloatButton/FloatButton.types.d.ts +3 -0
  17. package/dist/components/FloatButton/index.d.ts +3 -0
  18. package/dist/components/MainLayout/Header/Header.types.d.ts +2 -1
  19. package/dist/components/MainLayout/index.d.ts +2 -2
  20. package/dist/components/PdfDragBox/Box.d.ts +7 -0
  21. package/dist/components/PdfDragBox/BoxContainer.d.ts +2 -0
  22. package/dist/components/QRCode/QRCode.d.ts +4 -0
  23. package/dist/components/QRCode/QRCode.types.d.ts +3 -0
  24. package/dist/components/QRCode/index.d.ts +3 -0
  25. package/dist/components/Tour/Tour.d.ts +4 -0
  26. package/dist/components/Tour/Tour.types.d.ts +3 -0
  27. package/dist/components/Tour/index.d.ts +3 -0
  28. package/dist/components/index.d.ts +7 -1
  29. package/dist/main.css +1 -1
  30. package/dist/vite.svg +0 -0
  31. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { AppProps } from ".";
3
+ declare const App: React.FunctionComponent<AppProps>;
4
+ export default App;
@@ -0,0 +1,3 @@
1
+ import { AppProps as AntAppProps } from "antd";
2
+ export interface AppProps extends AntAppProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { AppProps } from "./App.types";
2
+ export { default as App } from "./App";
3
+ export type { AppProps };
@@ -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, };
@@ -0,0 +1,2 @@
1
+ import { ColorResult } from "react-color";
2
+ export type { ColorResult };
@@ -0,0 +1,3 @@
1
+ import { ColorResult } from "./BecaColorPicker.types";
2
+ export * from "./BecaColorPicker";
3
+ export type { ColorResult };
@@ -1,2 +1,4 @@
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
+ 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 { ColorResult } from "react-color";
2
- export type { ColorResult };
1
+ import { ColorPickerProps as AntColorPickerProps } from "antd";
2
+ export interface ColorPickerProps extends AntColorPickerProps {
3
+ }
@@ -1,3 +1,3 @@
1
- import { ColorResult } from "./ColorPicker.types";
2
- export * from "./ColorPicker";
3
- export type { ColorResult };
1
+ import { ColorPickerProps } from "./ColorPicker.types";
2
+ export { default as ColorPicker } from "./ColorPicker";
3
+ export type { ColorPickerProps };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { FlexProps } from ".";
3
+ declare const Flex: React.FunctionComponent<FlexProps>;
4
+ export default Flex;
@@ -0,0 +1,3 @@
1
+ import { FlexProps as AntFlexProps } from "antd";
2
+ export interface FlexProps extends AntFlexProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { FlexProps } from "./Flex.types";
2
+ export { default as Flex } from "./Flex";
3
+ export type { FlexProps };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { FloatButtonProps } from ".";
3
+ declare const FloatButton: React.FunctionComponent<FloatButtonProps>;
4
+ export default FloatButton;
@@ -0,0 +1,3 @@
1
+ import { FloatButtonProps as AntFloatButtonProps } from "antd";
2
+ export interface FloatButtonProps extends AntFloatButtonProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { FloatButtonProps } from "./FloatButton.types";
2
+ export { default as FloatButton } from "./FloatButton";
3
+ export type { FloatButtonProps };
@@ -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?: (isDark?: boolean) => void;
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[];
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { QRCodeProps } from ".";
3
+ declare const QRCode: React.FunctionComponent<QRCodeProps>;
4
+ export default QRCode;
@@ -0,0 +1,3 @@
1
+ import { QRCodeProps as AntQRCodeProps } from "antd";
2
+ export interface QRCodeProps extends AntQRCodeProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { QRCodeProps } from "./QRCode.types";
2
+ export { default as QRCode } from "./QRCode";
3
+ export type { QRCodeProps };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TourProps } from ".";
3
+ declare const Tour: React.FunctionComponent<TourProps>;
4
+ export default Tour;
@@ -0,0 +1,3 @@
1
+ import { TourProps as AntTourProps } from "antd";
2
+ export interface TourProps extends AntTourProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { TourProps } from "./Tour.types";
2
+ export { default as Tour } from "./Tour";
3
+ export type { TourProps };
@@ -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 "./ColorPicker";
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";