fcr-ui-scene 1.0.0
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/lib/fcr-ui-kit/src/components/avatar/helper.d.ts +2 -0
- package/lib/fcr-ui-kit/src/components/avatar/index.d.ts +8 -0
- package/lib/fcr-ui-kit/src/components/button/index.d.ts +82 -0
- package/lib/fcr-ui-kit/src/components/checkbox/index.d.ts +12 -0
- package/lib/fcr-ui-kit/src/components/dialog/class-dialog.d.ts +51 -0
- package/lib/fcr-ui-kit/src/components/dialog/confirm-dialog.d.ts +70 -0
- package/lib/fcr-ui-kit/src/components/dialog/global-dialog.d.ts +11 -0
- package/lib/fcr-ui-kit/src/components/dialog/index.d.ts +68 -0
- package/lib/fcr-ui-kit/src/components/dropdown/index.d.ts +58 -0
- package/lib/fcr-ui-kit/src/components/input/index.d.ts +69 -0
- package/lib/fcr-ui-kit/src/components/input-number/index.d.ts +69 -0
- package/lib/fcr-ui-kit/src/components/pagination/index.d.ts +27 -0
- package/lib/fcr-ui-kit/src/components/popover/index.d.ts +47 -0
- package/lib/fcr-ui-kit/src/components/progress/index.d.ts +11 -0
- package/lib/fcr-ui-kit/src/components/radio/index.d.ts +21 -0
- package/lib/fcr-ui-kit/src/components/slider/index.d.ts +22 -0
- package/lib/fcr-ui-kit/src/components/sound-player/index.d.ts +6 -0
- package/lib/fcr-ui-kit/src/components/svg-img/clickable-icon.d.ts +25 -0
- package/lib/fcr-ui-kit/src/components/svg-img/index.d.ts +15 -0
- package/lib/fcr-ui-kit/src/components/svg-img/mic.d.ts +5 -0
- package/lib/fcr-ui-kit/src/components/svg-img/svg-dict.d.ts +12 -0
- package/lib/fcr-ui-kit/src/components/svg-img/type.d.ts +195 -0
- package/lib/fcr-ui-kit/src/components/svga-player/index.d.ts +15 -0
- package/lib/fcr-ui-kit/src/components/svga-player/svga-types.d.ts +1 -0
- package/lib/fcr-ui-kit/src/components/table/index.d.ts +9 -0
- package/lib/fcr-ui-kit/src/components/tabs/index.d.ts +14 -0
- package/lib/fcr-ui-kit/src/components/textarea/helper.d.ts +2 -0
- package/lib/fcr-ui-kit/src/components/textarea/index.d.ts +100 -0
- package/lib/fcr-ui-kit/src/components/toast/index.d.ts +122 -0
- package/lib/fcr-ui-kit/src/components/tooltip/dialog.d.ts +19 -0
- package/lib/fcr-ui-kit/src/components/tooltip/index.d.ts +89 -0
- package/lib/fcr-ui-kit/src/components/tooltip/info.d.ts +6 -0
- package/lib/fcr-ui-kit/src/components/volume/index.d.ts +8 -0
- package/lib/fcr-ui-kit/src/utils/click-anywhere.d.ts +1 -0
- package/lib/fcr-ui-kit/src/utils/hooks/animations.d.ts +14 -0
- package/lib/fcr-ui-kit/src/utils/hooks/use-click-anywhere.d.ts +2 -0
- package/lib/fcr-ui-kit/src/utils/tailwindcss.d.ts +3 -0
- package/lib/fcr-ui-scene/src/app.d.ts +5 -0
- package/lib/fcr-ui-scene/src/configs/base-theme.d.ts +391 -0
- package/lib/fcr-ui-scene/src/configs/base-ui.d.ts +12 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/chat/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/cloud/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/device/index.d.ts +9 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/index.d.ts +24 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/leave/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/participants/index.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/raise-hands/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/record/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/screen-share/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/setting/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/toolbox/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/action-bar/whiteboard/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/ask-help-list.d.ts +10 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/broadcast-panel.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/create-panel.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-info-panel.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-panel.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/group-status-panel.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/grouping.d.ts +15 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/search-panel.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/breakout-room/wizard.d.ts +6 -0
- package/lib/fcr-ui-scene/src/containers/cloud/dialog-header.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/cloud/index.d.ts +6 -0
- package/lib/fcr-ui-scene/src/containers/cloud/personal.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/cloud/public.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/common/interact-labels.d.ts +6 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/basic-settings.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-filter.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/beauty-slider.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/device-select.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/mirror-toggle.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/video-portal.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-pretest/virtual-background.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/audio-settings.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/dialog-wrapper.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/device-settings/video-settings.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/dialog/class-info.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/dialog/confirm.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/dialog/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/layout/cover-view.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/layout/gallery-view.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/layout/presentation-view.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/loading/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/participants/dialog.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/participants/index.d.ts +5 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/class-duration/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/fullscreen/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/layout-switch/index.d.ts +22 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/network/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/record-status/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/room-info/index.d.ts +4 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/share/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/status-bar/widgets/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/stream-window/context.d.ts +52 -0
- package/lib/fcr-ui-scene/src/containers/stream-window/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/video-player/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/video-player/players.d.ts +3 -0
- package/lib/fcr-ui-scene/src/containers/video-player/tools-overlay.d.ts +1 -0
- package/lib/fcr-ui-scene/src/containers/widget/break-out-room/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/containers/widget/draggable-wrapper/index.d.ts +7 -0
- package/lib/fcr-ui-scene/src/containers/widget/helpers.d.ts +40 -0
- package/lib/fcr-ui-scene/src/containers/widget/hooks.d.ts +21 -0
- package/lib/fcr-ui-scene/src/containers/widget/index.d.ts +7 -0
- package/lib/fcr-ui-scene/src/containers/widget/participants/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/extension/board.d.ts +73 -0
- package/lib/fcr-ui-scene/src/extension/edu-tool.d.ts +57 -0
- package/lib/fcr-ui-scene/src/extension/events.d.ts +91 -0
- package/lib/fcr-ui-scene/src/extension/type.d.ts +94 -0
- package/lib/fcr-ui-scene/src/index.d.ts +39 -0
- package/lib/fcr-ui-scene/src/preset.d.ts +1 -0
- package/lib/fcr-ui-scene/src/resources/translations/enUs.d.ts +393 -0
- package/lib/fcr-ui-scene/src/resources/translations/zhCn.d.ts +398 -0
- package/lib/fcr-ui-scene/src/scenarios/classroom.d.ts +2 -0
- package/lib/fcr-ui-scene/src/scenarios/layout/index.d.ts +2 -0
- package/lib/fcr-ui-scene/src/type.d.ts +347 -0
- package/lib/fcr-ui-scene/src/uistores/action-bar.d.ts +58 -0
- package/lib/fcr-ui-scene/src/uistores/base.d.ts +58 -0
- package/lib/fcr-ui-scene/src/uistores/breakout.d.ts +225 -0
- package/lib/fcr-ui-scene/src/uistores/cloud/helper.d.ts +26 -0
- package/lib/fcr-ui-scene/src/uistores/cloud/index.d.ts +51 -0
- package/lib/fcr-ui-scene/src/uistores/cloud/struct.d.ts +131 -0
- package/lib/fcr-ui-scene/src/uistores/context.d.ts +7 -0
- package/lib/fcr-ui-scene/src/uistores/device-setting.d.ts +219 -0
- package/lib/fcr-ui-scene/src/uistores/gallery-view.d.ts +16 -0
- package/lib/fcr-ui-scene/src/uistores/getters.d.ts +39 -0
- package/lib/fcr-ui-scene/src/uistores/index.d.ts +47 -0
- package/lib/fcr-ui-scene/src/uistores/layout.d.ts +64 -0
- package/lib/fcr-ui-scene/src/uistores/notification.d.ts +9 -0
- package/lib/fcr-ui-scene/src/uistores/participants.d.ts +48 -0
- package/lib/fcr-ui-scene/src/uistores/presentation-view.d.ts +24 -0
- package/lib/fcr-ui-scene/src/uistores/status-bar.d.ts +47 -0
- package/lib/fcr-ui-scene/src/uistores/stream.d.ts +48 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/abstract.d.ts +45 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/index.d.ts +13 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/main-room.d.ts +14 -0
- package/lib/fcr-ui-scene/src/uistores/subscription/type.d.ts +10 -0
- package/lib/fcr-ui-scene/src/uistores/type.d.ts +86 -0
- package/lib/fcr-ui-scene/src/uistores/widget.d.ts +46 -0
- package/lib/fcr-ui-scene/src/utils/asset.d.ts +1 -0
- package/lib/fcr-ui-scene/src/utils/check.d.ts +7 -0
- package/lib/fcr-ui-scene/src/utils/clamp-bounds.d.ts +14 -0
- package/lib/fcr-ui-scene/src/utils/config-loader.d.ts +7 -0
- package/lib/fcr-ui-scene/src/utils/grid/index.d.ts +9 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-authorization.d.ts +5 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-device-switch.d.ts +29 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-drag-position.d.ts +21 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-network.d.ts +17 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-pin-stream.d.ts +4 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-rnd-position.d.ts +24 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-store.d.ts +1 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-video-renderable.d.ts +3 -0
- package/lib/fcr-ui-scene/src/utils/hooks/use-z-index.d.ts +8 -0
- package/lib/fcr-ui-scene/src/utils/index.d.ts +7 -0
- package/lib/fcr-ui-scene/src/utils/launch-options-holder.d.ts +10 -0
- package/lib/fcr-ui-scene/src/utils/rtc-extensions.d.ts +29 -0
- package/lib/fcr-ui-scene/src/utils/short-name.d.ts +1 -0
- package/lib/fcr-ui-scene/src/utils/stream/index.d.ts +3 -0
- package/lib/fcr-ui-scene/src/utils/stream/state-keeper.d.ts +18 -0
- package/lib/fcr-ui-scene/src/utils/stream/struct.d.ts +67 -0
- package/lib/fcr-ui-scene/src/utils/z-index-controller.d.ts +9 -0
- package/lib/fcr-ui-scene/tailwind.config.d.ts +1 -0
- package/lib/log.worker.bundle.worker.js.LICENSE.txt +1 -0
- package/lib/scene.bundle.js +2 -0
- package/lib/scene.bundle.js.LICENSE.txt +334 -0
- package/package.json +95 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { SvgIconEnum } from '../svg-img';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import { PopoverProps } from '../popover';
|
|
5
|
+
export declare type ButtonSize = 'XL' | 'L' | 'M' | 'S' | 'XS' | 'XXS';
|
|
6
|
+
export declare type ButtonType = 'primary' | 'secondary' | 'text' | 'link';
|
|
7
|
+
export declare type ButtonShape = 'circle' | 'rounded';
|
|
8
|
+
export declare type ButtonStyleType = 'danger' | 'gray' | 'white';
|
|
9
|
+
export interface ButtonProps {
|
|
10
|
+
/**
|
|
11
|
+
* 按钮尺寸,可选值为 'XL' | 'L' | 'M' | 'S' | 'XS' | 'XXS',默认为'L'
|
|
12
|
+
*/
|
|
13
|
+
/** @en
|
|
14
|
+
* Set the size of button, can be set to 'XL' | 'L' | 'M' | 'S' | 'XS' | 'XXS', default value is 'L'.
|
|
15
|
+
*/
|
|
16
|
+
size?: ButtonSize;
|
|
17
|
+
/**
|
|
18
|
+
* 按钮类型,可选值为 'primary' | 'secondary' | 'text' | 'link',默认为'primary'
|
|
19
|
+
*/
|
|
20
|
+
/** @en
|
|
21
|
+
* Set the type of button,can be set to 'primary' | 'secondary' | 'text' | 'link', default value is 'primary'.
|
|
22
|
+
*/
|
|
23
|
+
type?: ButtonType;
|
|
24
|
+
/**
|
|
25
|
+
* 按钮形状,可选值为 'circle' | 'rounded',默认为'circle'
|
|
26
|
+
*/
|
|
27
|
+
/** @en
|
|
28
|
+
* Set the shape of button,can be set to 'circle' | 'rounded', default value is 'circle'.
|
|
29
|
+
*/
|
|
30
|
+
shape?: ButtonShape;
|
|
31
|
+
/**
|
|
32
|
+
* 按钮样式类型,可选值为 'danger' | 'gray'
|
|
33
|
+
*/
|
|
34
|
+
/** @en
|
|
35
|
+
* Set the style type of button, can be set to 'danger' | 'gray'.
|
|
36
|
+
*/
|
|
37
|
+
styleType?: ButtonStyleType;
|
|
38
|
+
/**
|
|
39
|
+
* 设置按钮前置图标
|
|
40
|
+
*/
|
|
41
|
+
/** @en
|
|
42
|
+
* Set the icon before the button text.
|
|
43
|
+
*/
|
|
44
|
+
preIcon?: SvgIconEnum;
|
|
45
|
+
/**
|
|
46
|
+
* 设置按钮后置图标
|
|
47
|
+
*/
|
|
48
|
+
/** @en
|
|
49
|
+
* Set the icon after the button text.
|
|
50
|
+
*/
|
|
51
|
+
postIcon?: SvgIconEnum;
|
|
52
|
+
/**
|
|
53
|
+
* 设置按钮加载状态
|
|
54
|
+
*/
|
|
55
|
+
/** @en
|
|
56
|
+
* Set the loading status of button.
|
|
57
|
+
*/
|
|
58
|
+
loading?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 按钮禁用状态
|
|
61
|
+
*/
|
|
62
|
+
/** @en
|
|
63
|
+
* Disabled state of button.
|
|
64
|
+
*/
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 点击按钮时的回调
|
|
68
|
+
*/
|
|
69
|
+
/** @en
|
|
70
|
+
* Set the handler to handle click event.
|
|
71
|
+
*/
|
|
72
|
+
onClick?: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
73
|
+
/**
|
|
74
|
+
* 将按钮宽度调整为其父宽度的选项,默认为false
|
|
75
|
+
*/
|
|
76
|
+
/** @en
|
|
77
|
+
* Option to fit button width to its parent width, default value is false.
|
|
78
|
+
*/
|
|
79
|
+
block?: boolean;
|
|
80
|
+
extra?: Partial<PopoverProps>;
|
|
81
|
+
}
|
|
82
|
+
export declare const Button: FC<React.PropsWithChildren<ButtonProps>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
onChange?: (checked: boolean) => void;
|
|
8
|
+
styleType?: 'brand' | 'white';
|
|
9
|
+
size?: 'medium' | 'small';
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export declare const Checkbox: FC<CheckboxProps>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../button';
|
|
3
|
+
import { BaseDialogProps } from '.';
|
|
4
|
+
import './class-dialog.css';
|
|
5
|
+
export interface ClassDialogProps extends BaseDialogProps {
|
|
6
|
+
/**
|
|
7
|
+
* 对话框标题
|
|
8
|
+
*/
|
|
9
|
+
/** @en
|
|
10
|
+
* The dialog Title.
|
|
11
|
+
*/
|
|
12
|
+
title?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* 对话框底部元素
|
|
15
|
+
*/
|
|
16
|
+
/** @en
|
|
17
|
+
* Footer content
|
|
18
|
+
*/
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* 对话框顶部图片地址
|
|
22
|
+
*/
|
|
23
|
+
/** @en
|
|
24
|
+
* Set the url for the image on the top of dialog.
|
|
25
|
+
*/
|
|
26
|
+
imgUrl?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 对话框描述内容
|
|
29
|
+
*/
|
|
30
|
+
/** @en
|
|
31
|
+
* The dialog content
|
|
32
|
+
*/
|
|
33
|
+
content?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* 对话框按钮组,会在描述内容下方渲染若干操作按钮
|
|
36
|
+
*/
|
|
37
|
+
/** @en
|
|
38
|
+
* Set the action buttons on the bottom of the dialog content.
|
|
39
|
+
*/
|
|
40
|
+
actions?: (ButtonProps & {
|
|
41
|
+
text?: string;
|
|
42
|
+
})[];
|
|
43
|
+
/**
|
|
44
|
+
* 是否显示取消按钮
|
|
45
|
+
*/
|
|
46
|
+
/** @en
|
|
47
|
+
* Wheter the cancel button is visible on bottom of the dialog or not.
|
|
48
|
+
*/
|
|
49
|
+
cancelBtn?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const ClassDialog: FC<React.PropsWithChildren<ClassDialogProps>>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../button';
|
|
3
|
+
import { CheckboxProps } from '../checkbox';
|
|
4
|
+
import { BaseDialogProps } from '.';
|
|
5
|
+
import './confirm-dialog.css';
|
|
6
|
+
export interface ConfirmDialogProps extends BaseDialogProps {
|
|
7
|
+
/**
|
|
8
|
+
* 对话框标题
|
|
9
|
+
*/
|
|
10
|
+
/** @en
|
|
11
|
+
* The dialog's title.
|
|
12
|
+
*/
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* 对话框底部元素
|
|
16
|
+
*/
|
|
17
|
+
/** @en
|
|
18
|
+
* Footer content
|
|
19
|
+
*/
|
|
20
|
+
footer?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* 点击对话框确认按钮回调
|
|
23
|
+
*/
|
|
24
|
+
/** @en
|
|
25
|
+
* Specify a function that will be called when a user clicks the OK button
|
|
26
|
+
*/
|
|
27
|
+
onOk?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* 是否展示对话框checkbox
|
|
30
|
+
*/
|
|
31
|
+
/** @en
|
|
32
|
+
* Wheter the chekcbox is visibleon bottom left of the dialog or not.
|
|
33
|
+
*/
|
|
34
|
+
checkable?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 对话框checkbox属性
|
|
37
|
+
*/
|
|
38
|
+
/** @en
|
|
39
|
+
* The checkbox props.
|
|
40
|
+
*/
|
|
41
|
+
checkedProps?: CheckboxProps;
|
|
42
|
+
/**
|
|
43
|
+
* 对话框确认按钮文案
|
|
44
|
+
*/
|
|
45
|
+
/** @en
|
|
46
|
+
* Text of the OK button
|
|
47
|
+
*/
|
|
48
|
+
okText?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* 对话框取消按钮文案
|
|
51
|
+
*/
|
|
52
|
+
/** @en
|
|
53
|
+
* Text of the cancel button
|
|
54
|
+
*/
|
|
55
|
+
cancelText?: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* 对话框图标
|
|
58
|
+
*/
|
|
59
|
+
/** @en
|
|
60
|
+
* Set the icon on the left of the dialog title and content.
|
|
61
|
+
*/
|
|
62
|
+
icon?: ReactNode;
|
|
63
|
+
content?: ReactNode;
|
|
64
|
+
okButtonProps?: ButtonProps;
|
|
65
|
+
cancelButtonProps?: ButtonProps;
|
|
66
|
+
okButtonVisible?: boolean;
|
|
67
|
+
cancelButtonVisible?: boolean;
|
|
68
|
+
onCancel?: () => void;
|
|
69
|
+
}
|
|
70
|
+
export declare const ConfirmDialog: FC<React.PropsWithChildren<ConfirmDialogProps>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './global-dialog.css';
|
|
2
|
+
import { PropsWithChildren, ReactNode, CSSProperties } from 'react';
|
|
3
|
+
export interface GlobalDialogProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
afterClose?: () => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
width?: number;
|
|
8
|
+
header?: ReactNode;
|
|
9
|
+
headerWrapperStyle?: CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export declare const GlobalDialog: (props: PropsWithChildren<GlobalDialogProps>) => JSX.Element;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ConfirmDialog } from "./confirm-dialog";
|
|
2
|
+
import { ClassDialog } from "./class-dialog";
|
|
3
|
+
import { CSSProperties, FC, ReactNode } from "react";
|
|
4
|
+
import "./index.css";
|
|
5
|
+
export interface BaseDialogProps {
|
|
6
|
+
/**
|
|
7
|
+
* 对话框是否显示
|
|
8
|
+
*/
|
|
9
|
+
/** @en
|
|
10
|
+
* Whether the dialog is visible or not.
|
|
11
|
+
*/
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 对话框关闭的回调,点击关闭按钮或蒙层时触发
|
|
15
|
+
*/
|
|
16
|
+
/** @en
|
|
17
|
+
* Specify a function that will be called when a user clicks mask, close button on top right or Cancel button
|
|
18
|
+
*/
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* 是否可以点击蒙层关闭
|
|
22
|
+
*/
|
|
23
|
+
/** @en
|
|
24
|
+
* Whether to close the modal dialog when the mask (area outside the modal) is clicked
|
|
25
|
+
*/
|
|
26
|
+
maskClosable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 对话框宽度
|
|
29
|
+
*/
|
|
30
|
+
/** @en
|
|
31
|
+
* Width of the dialog
|
|
32
|
+
*/
|
|
33
|
+
width?: number;
|
|
34
|
+
/**
|
|
35
|
+
* 对话框类名
|
|
36
|
+
*/
|
|
37
|
+
/** @en
|
|
38
|
+
* classname of the dialog
|
|
39
|
+
*/
|
|
40
|
+
classNames?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 是否显示对话框关闭按钮
|
|
43
|
+
*/
|
|
44
|
+
/** @en
|
|
45
|
+
* Whether a close (x) button is visible on top right of the dialog or not
|
|
46
|
+
*/
|
|
47
|
+
closable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 自定义对话框关闭按钮
|
|
50
|
+
*/
|
|
51
|
+
/** @en
|
|
52
|
+
* Custom close icon
|
|
53
|
+
*/
|
|
54
|
+
closeIcon?: ReactNode;
|
|
55
|
+
afterClose?: () => void;
|
|
56
|
+
mask?: boolean;
|
|
57
|
+
bodyStyle?: CSSProperties;
|
|
58
|
+
wrapClassName?: string;
|
|
59
|
+
getContainer?: false | string | HTMLElement | (() => HTMLElement) | undefined;
|
|
60
|
+
center?: boolean;
|
|
61
|
+
destroyOnClose?: boolean;
|
|
62
|
+
maskStyle?: CSSProperties;
|
|
63
|
+
wrapStyle?: CSSProperties;
|
|
64
|
+
zIndex?: number;
|
|
65
|
+
forceRender?: boolean;
|
|
66
|
+
}
|
|
67
|
+
declare const BaseDialog: FC<React.PropsWithChildren<BaseDialogProps>>;
|
|
68
|
+
export { ConfirmDialog, ClassDialog, BaseDialog };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export declare type DropdownProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 下拉框选中的值
|
|
6
|
+
*/
|
|
7
|
+
/** @en
|
|
8
|
+
* The dropdown selected value
|
|
9
|
+
*/
|
|
10
|
+
value?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 下拉框的提示符
|
|
13
|
+
*/
|
|
14
|
+
/** @en
|
|
15
|
+
* Placeholder of the dropdown
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 下拉框选项
|
|
20
|
+
*/
|
|
21
|
+
/** @en
|
|
22
|
+
* The dropdown options
|
|
23
|
+
*/
|
|
24
|
+
options?: {
|
|
25
|
+
text: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
/**
|
|
29
|
+
* 输入框的尺寸:
|
|
30
|
+
* small - 小
|
|
31
|
+
* medium - 中等(default)
|
|
32
|
+
* large - 大
|
|
33
|
+
*/
|
|
34
|
+
/** @en
|
|
35
|
+
* Size of the dropdown:
|
|
36
|
+
* small
|
|
37
|
+
* medium
|
|
38
|
+
* large
|
|
39
|
+
*/
|
|
40
|
+
size?: 'large' | 'medium' | 'small';
|
|
41
|
+
/**
|
|
42
|
+
* 值变更事件
|
|
43
|
+
* @param value 变更值
|
|
44
|
+
*/
|
|
45
|
+
/** @en
|
|
46
|
+
* Change event of the input's value
|
|
47
|
+
* @param value changed value
|
|
48
|
+
*/
|
|
49
|
+
onChange?: (value: string) => void;
|
|
50
|
+
/**
|
|
51
|
+
* 下拉框是否禁用
|
|
52
|
+
*/
|
|
53
|
+
/** @en
|
|
54
|
+
* Whether the dropdown is disabled
|
|
55
|
+
*/
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export declare const Dropdown: FC<DropdownProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React, { CSSProperties, FC } from 'react';
|
|
2
|
+
import { SvgIconEnum } from '../svg-img';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export declare type InputProps = {
|
|
5
|
+
/**
|
|
6
|
+
* 输入框的提示符
|
|
7
|
+
*/
|
|
8
|
+
/** @en
|
|
9
|
+
* Placeholder of the input box
|
|
10
|
+
*/
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 输入框中的值
|
|
14
|
+
*/
|
|
15
|
+
/** @en
|
|
16
|
+
* Value of the input box
|
|
17
|
+
*/
|
|
18
|
+
value?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 输入框的标签,一般展示在输入框的头部,提示用户需要输入的内容
|
|
21
|
+
*/
|
|
22
|
+
/** @en
|
|
23
|
+
* The label of the input box, usually displayed at the head of the input box, prompting the user to enter the content
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
* 输入框是否禁用
|
|
28
|
+
*/
|
|
29
|
+
/** @en
|
|
30
|
+
* Whether the input box is disabled
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 输入框前置图标,仅在 variant = rounded 时生效
|
|
35
|
+
*/
|
|
36
|
+
/** @en
|
|
37
|
+
* Input box front icon, takes effect only if variant = rounded
|
|
38
|
+
*/
|
|
39
|
+
iconPrefix?: SvgIconEnum;
|
|
40
|
+
/**
|
|
41
|
+
* 输入框的尺寸:
|
|
42
|
+
* medium - 中等(default)
|
|
43
|
+
* large - 大
|
|
44
|
+
*/
|
|
45
|
+
/** @en
|
|
46
|
+
* Size of the input box:
|
|
47
|
+
* medium
|
|
48
|
+
* large
|
|
49
|
+
*/
|
|
50
|
+
size?: 'large' | 'medium' | 'small' | 'mini';
|
|
51
|
+
/**
|
|
52
|
+
* 值变更事件
|
|
53
|
+
* @param value 变更值
|
|
54
|
+
*/
|
|
55
|
+
/** @en
|
|
56
|
+
* Change event of the input's value
|
|
57
|
+
* @param value changed value
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (value: string) => void;
|
|
60
|
+
onBlur?: () => void;
|
|
61
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
62
|
+
onKeyUp?: (event: React.KeyboardEvent) => void;
|
|
63
|
+
allowClear?: boolean;
|
|
64
|
+
autoFocus?: boolean;
|
|
65
|
+
style?: CSSProperties;
|
|
66
|
+
shape?: 'circle' | 'rounded';
|
|
67
|
+
maxLength?: number;
|
|
68
|
+
};
|
|
69
|
+
export declare const Input: FC<InputProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export declare type InputNumberProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 输入框的提示符
|
|
6
|
+
*/
|
|
7
|
+
/** @en
|
|
8
|
+
* Placeholder of the input box
|
|
9
|
+
*/
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 输入框中的值
|
|
13
|
+
*/
|
|
14
|
+
/** @en
|
|
15
|
+
* Value of the input box
|
|
16
|
+
*/
|
|
17
|
+
value?: number;
|
|
18
|
+
/**
|
|
19
|
+
* 每次点变更的值
|
|
20
|
+
*/
|
|
21
|
+
/**@en
|
|
22
|
+
* the value that changes each time click
|
|
23
|
+
*/
|
|
24
|
+
step?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 输入框最小值
|
|
27
|
+
*/
|
|
28
|
+
/** @en
|
|
29
|
+
* Min value of the input
|
|
30
|
+
*/
|
|
31
|
+
min?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 输入框最大值
|
|
34
|
+
*/
|
|
35
|
+
/** @en
|
|
36
|
+
* Max value of the input
|
|
37
|
+
*/
|
|
38
|
+
max?: number;
|
|
39
|
+
/**
|
|
40
|
+
* 输入框是否禁用
|
|
41
|
+
*/
|
|
42
|
+
/** @en
|
|
43
|
+
* Whether the input box is disabled
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 输入框的尺寸:
|
|
48
|
+
* small - 小
|
|
49
|
+
* medium - 中等(default)
|
|
50
|
+
* large - 大
|
|
51
|
+
*/
|
|
52
|
+
/** @en
|
|
53
|
+
* Size of the input box:
|
|
54
|
+
* small
|
|
55
|
+
* medium(default)
|
|
56
|
+
* large
|
|
57
|
+
*/
|
|
58
|
+
size?: 'large' | 'medium' | 'small';
|
|
59
|
+
/**
|
|
60
|
+
* 值变更事件
|
|
61
|
+
* @param value 变更值
|
|
62
|
+
*/
|
|
63
|
+
/** @en
|
|
64
|
+
* Change event of the input's value
|
|
65
|
+
* @param value changed value
|
|
66
|
+
*/
|
|
67
|
+
onChange?: (value: number | null) => void;
|
|
68
|
+
};
|
|
69
|
+
export declare const InputNumber: FC<InputNumberProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
declare type PaginationProps = {
|
|
4
|
+
current: number;
|
|
5
|
+
total: number;
|
|
6
|
+
onChange?: (current: number) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const Pagination: FC<PaginationProps & {
|
|
9
|
+
size?: 'large' | 'small';
|
|
10
|
+
}>;
|
|
11
|
+
declare type HalfRoundedProps = PaginationProps & {
|
|
12
|
+
onAdd?: () => void;
|
|
13
|
+
addText: string;
|
|
14
|
+
showText: string;
|
|
15
|
+
hideText: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const HalfRoundedPagination: FC<HalfRoundedProps>;
|
|
18
|
+
interface FloatPaginationProps extends PaginationProps {
|
|
19
|
+
wrapperCls?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const FloatPagination: FC<FloatPaginationProps>;
|
|
22
|
+
interface ListViewPaginationProps extends PaginationProps {
|
|
23
|
+
wrapperCls?: string;
|
|
24
|
+
direction?: 'row' | 'col';
|
|
25
|
+
}
|
|
26
|
+
export declare const ListViewPagination: FC<PropsWithChildren<ListViewPaginationProps>>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ToolTipProps } from '../tooltip';
|
|
3
|
+
import './index.css';
|
|
4
|
+
export interface PopoverProps extends ToolTipProps {
|
|
5
|
+
/**
|
|
6
|
+
* 气泡操作面板的尺寸,可选值为 large | small
|
|
7
|
+
*/
|
|
8
|
+
/** @en
|
|
9
|
+
* The size of popover dialog, can be set to large | small.
|
|
10
|
+
*/
|
|
11
|
+
size?: 'large' | 'small';
|
|
12
|
+
afterVisibleChange?: (visible: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Popover: FC<PopoverProps>;
|
|
15
|
+
interface DoubleDeckPopoverProps extends ToolTipProps {
|
|
16
|
+
/**
|
|
17
|
+
* popover上部分的内容
|
|
18
|
+
*/
|
|
19
|
+
/** @en
|
|
20
|
+
* The content of deck on top of the popover dialog.
|
|
21
|
+
*/
|
|
22
|
+
topDeckContent?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* popover下部分的内容
|
|
25
|
+
*/
|
|
26
|
+
/** @en
|
|
27
|
+
* The content of deck on bottom of the popover dialog.
|
|
28
|
+
*/
|
|
29
|
+
bottomDeckContent?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export declare const DoubleDeckPopover: FC<DoubleDeckPopoverProps>;
|
|
32
|
+
interface FcrPopoverWithTooltip {
|
|
33
|
+
popoverProps?: PopoverProps;
|
|
34
|
+
toolTipProps?: ToolTipProps;
|
|
35
|
+
triggerCls?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const PopoverWithTooltip: import("react").ForwardRefExoticComponent<FcrPopoverWithTooltip & {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
} & import("react").RefAttributes<{
|
|
40
|
+
closePopover: () => void;
|
|
41
|
+
}>>;
|
|
42
|
+
interface FcrDoubleDeckPopoverWithTooltip {
|
|
43
|
+
doulebDeckPopoverProps?: DoubleDeckPopoverProps;
|
|
44
|
+
toolTipProps?: ToolTipProps;
|
|
45
|
+
}
|
|
46
|
+
export declare const DoubleDeckPopoverWithTooltip: FC<React.PropsWithChildren<FcrDoubleDeckPopoverWithTooltip>>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.css';
|
|
3
|
+
interface ProgressProps {
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
percent?: number;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
showPercentText?: boolean;
|
|
8
|
+
percentText?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Progress: (props: ProgressProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
export interface RadioProps {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
onChange?: (checked: boolean) => void;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
styleType?: 'brand' | 'white' | 'transparent';
|
|
9
|
+
name?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const Radio: FC<React.PropsWithChildren<RadioProps>>;
|
|
13
|
+
interface RadioGroupProps<V> {
|
|
14
|
+
defaultValue?: any;
|
|
15
|
+
name?: string;
|
|
16
|
+
options?: RadioProps[];
|
|
17
|
+
value?: V;
|
|
18
|
+
onChange?: (value?: V) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const RadioGroup: <V>(props: import("react").PropsWithChildren<RadioGroupProps<V>>) => JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import "rc-slider/assets/index.css";
|
|
4
|
+
declare type VerticalSliderProps = {
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
value?: number;
|
|
9
|
+
defaultValue?: number;
|
|
10
|
+
onChange?: (value: number) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const VerticalSlider: FC<VerticalSliderProps>;
|
|
13
|
+
declare type HorizontalSliderProps = {
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
step?: number;
|
|
17
|
+
value?: number;
|
|
18
|
+
defaultValue?: number;
|
|
19
|
+
onChange?: (value: number) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const HorizontalSlider: FC<HorizontalSliderProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SvgIconEnum, SvgImgProps } from '.';
|
|
3
|
+
import './clickable-icon.css';
|
|
4
|
+
interface ClickableIconProps {
|
|
5
|
+
size?: 'large' | 'small' | 'mini';
|
|
6
|
+
icon: SvgIconEnum;
|
|
7
|
+
iconSize?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
classNames?: string;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
iconProps?: SvgImgProps;
|
|
12
|
+
}
|
|
13
|
+
export declare const ClickableIcon: FC<ClickableIconProps>;
|
|
14
|
+
export interface PretestDeviceIconProps {
|
|
15
|
+
icon: SvgIconEnum;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
classNames?: string;
|
|
19
|
+
status: 'active' | 'inactive' | 'idle' | 'disabled';
|
|
20
|
+
tooltip: string;
|
|
21
|
+
iconProps?: Partial<SvgImgProps>;
|
|
22
|
+
size?: 'large' | 'small';
|
|
23
|
+
}
|
|
24
|
+
export declare const PretestDeviceIcon: FC<PretestDeviceIconProps>;
|
|
25
|
+
export {};
|