@para-ui/core 2.2.10 → 2.2.11
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/ComboSelect/index.js +2 -2
- package/ComboSelect/lang/en_US.d.ts +1 -0
- package/ComboSelect/lang/index.d.ts +2 -0
- package/ComboSelect/lang/zh_CN.d.ts +1 -0
- package/Dropdown/index.d.ts +38 -0
- package/Dropdown/index.js +15 -0
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/GlobalContext/componentsProps.d.ts +2 -0
- package/PopoverNew/TooltipNew/index.d.ts +11 -0
- package/PopoverNew/TooltipNew/interface.d.ts +31 -0
- package/PopoverNew/TooltipNew/utils.d.ts +18 -0
- package/PopoverNew/index.d.ts +16 -0
- package/PopoverNew/index.js +14 -0
- package/README.md +7 -0
- package/Selector/index.d.ts +11 -0
- package/Selector/index.js +14 -0
- package/Selector/interface.d.ts +355 -0
- package/Selector/lang/en_US.d.ts +8 -0
- package/Selector/lang/index.d.ts +17 -0
- package/Selector/lang/zh_CN.d.ts +8 -0
- package/Selector/selectorData/index.d.ts +10 -0
- package/Selector/selectorMain/index.d.ts +10 -0
- package/Selector/selectorNode/index.d.ts +10 -0
- package/Selector/util.d.ts +15 -0
- package/SelectorPicker/index.d.ts +49 -0
- package/SelectorPicker/index.js +14 -0
- package/cdn/AutoBox/index.js +31 -16
- package/cdn/Breadcrumbs/index.js +31 -17
- package/cdn/Button/index.js +32 -43
- package/cdn/ButtonGroup/index.js +32 -43
- package/cdn/Cascader/index.js +27 -25
- package/cdn/Checkbox/index.js +31 -17
- package/cdn/CheckboxGroup/index.js +31 -17
- package/cdn/Collapse/index.js +29 -13
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +34 -384
- package/cdn/DatePicker/index.js +34 -137
- package/cdn/Drawer/index.js +33 -44
- package/cdn/Dropdown/index.js +16 -0
- package/cdn/Form/index.js +34 -423
- package/cdn/FormItem/index.js +34 -423
- package/cdn/FunctionModal/index.js +31 -108
- package/cdn/Help/index.js +31 -17
- package/cdn/InputLang/index.js +31 -108
- package/cdn/InputNumber/index.js +33 -71
- package/cdn/Label/index.js +31 -17
- package/cdn/Loading/index.js +18 -3
- package/cdn/Menu/index.js +18 -29
- package/cdn/Message/index.js +19 -42
- package/cdn/Modal/index.js +31 -108
- package/cdn/MultiBox/index.js +31 -95
- package/cdn/Notification/index.js +27 -50
- package/cdn/OperateBtn/index.js +31 -56
- package/cdn/PageHeader/index.js +31 -56
- package/cdn/Pagination/index.js +32 -174
- package/cdn/PopConfirm/index.js +31 -95
- package/cdn/PopoverNew/index.js +16 -0
- package/cdn/Progress/index.js +24 -47
- package/cdn/Radio/index.js +31 -17
- package/cdn/RadioGroup/index.js +31 -17
- package/cdn/Search/index.js +31 -108
- package/cdn/Select/index.js +31 -95
- package/cdn/SelectInput/index.js +31 -95
- package/cdn/Selector/index.js +82 -0
- package/cdn/SelectorPicker/index.js +82 -0
- package/cdn/SingleBox/index.js +31 -95
- package/cdn/Slider/index.js +3 -3
- package/cdn/Stepper/index.js +25 -126
- package/cdn/Switch/index.js +32 -31
- package/cdn/Table/index.js +32 -252
- package/cdn/Tabs/index.js +32 -122
- package/cdn/Tag/index.js +18 -16
- package/cdn/TextField/index.js +31 -69
- package/cdn/TimePicker/index.js +34 -137
- package/cdn/ToggleButton/index.js +32 -43
- package/cdn/Transfer/index.js +31 -134
- package/cdn/Tree/index.js +33 -123
- package/cdn/Upload/index.js +36 -191
- package/index.d.ts +8 -0
- package/index.js +4 -4
- package/package.json +4 -2
- package/style.css +9 -1
|
@@ -8,12 +8,14 @@ import { TextFieldProps } from "../TextField";
|
|
|
8
8
|
import { TableProps } from "../Table/interface";
|
|
9
9
|
import { EmptyProps } from "../Empty";
|
|
10
10
|
import { QueryingProps } from "../Querying";
|
|
11
|
+
import { SelectorProps } from "../Selector/interface";
|
|
11
12
|
interface ComponentsProps {
|
|
12
13
|
Select?: Partial<SelectProps>;
|
|
13
14
|
TextField?: Partial<TextFieldProps>;
|
|
14
15
|
Table?: Partial<TableProps>;
|
|
15
16
|
Empty?: Partial<EmptyProps>;
|
|
16
17
|
Querying?: Partial<QueryingProps>;
|
|
18
|
+
Selector?: Partial<SelectorProps>;
|
|
17
19
|
[name: string]: any;
|
|
18
20
|
}
|
|
19
21
|
export default ComponentsProps;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/5/25 下午6:02
|
|
4
|
+
* @description tooltip
|
|
5
|
+
*/
|
|
6
|
+
import { FC } from 'react';
|
|
7
|
+
import { TooltipNewProps } from './interface';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export declare const TooltipNew: FC<TooltipNewProps>;
|
|
10
|
+
export type { TooltipNewProps };
|
|
11
|
+
export default TooltipNew;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/5/25 下午7:16
|
|
4
|
+
* @description
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { TooltipProps as RcTooltipProps } from "rc-tooltip/lib/Tooltip";
|
|
8
|
+
export declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start';
|
|
9
|
+
export interface TooltipNewProps extends Partial<Omit<RcTooltipProps, 'children'>> {
|
|
10
|
+
/** 提示文字 */
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
/** style */
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/** cls */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** 位置 */
|
|
17
|
+
placement?: TooltipPlacement;
|
|
18
|
+
/** 箭头是否指向目标元素中心 */
|
|
19
|
+
arrowPointAtCenter?: boolean;
|
|
20
|
+
/** 被遮挡时自动调整位置 */
|
|
21
|
+
autoAdjustOverflow?: boolean;
|
|
22
|
+
/** 渲染容器 */
|
|
23
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
24
|
+
/** 子节点 */
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
/** 是否显示箭头 */
|
|
27
|
+
arrow?: boolean;
|
|
28
|
+
/** 控制浮层是否显示 */
|
|
29
|
+
open?: boolean;
|
|
30
|
+
[name: string]: any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BuildInPlacements } from 'rc-trigger';
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { TooltipPlacement } from './interface';
|
|
4
|
+
interface AdjustOverflow {
|
|
5
|
+
adjustX?: 0 | 1;
|
|
6
|
+
adjustY?: 0 | 1;
|
|
7
|
+
}
|
|
8
|
+
interface PlacementsConfig {
|
|
9
|
+
arrowWidth?: number;
|
|
10
|
+
horizontalArrowShift?: number;
|
|
11
|
+
verticalArrowShift?: number;
|
|
12
|
+
arrowPointAtCenter?: boolean;
|
|
13
|
+
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
14
|
+
}
|
|
15
|
+
export default function getPlacements(config: PlacementsConfig): BuildInPlacements;
|
|
16
|
+
export declare function getDisabledCompatibleChildren(child: React.ReactNode): JSX.Element;
|
|
17
|
+
export declare function mapLegacyPlacement(place: TooltipPlacement): string;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/6/7 上午10:54
|
|
4
|
+
* @description popover
|
|
5
|
+
*/
|
|
6
|
+
import React, { FC } from 'react';
|
|
7
|
+
import { TooltipNewProps } from './TooltipNew/interface';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface PopoverNewProps extends TooltipNewProps {
|
|
10
|
+
/** 标题 */
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
/** 内容 */
|
|
13
|
+
content?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const PopoverNew: FC<PopoverNewProps>;
|
|
16
|
+
export default PopoverNew;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
!function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("react"),require("rc-tooltip"),require("clsx")):"function"==typeof define&&define.amd?define(["react","rc-tooltip","clsx"],o):"object"==typeof exports?exports.ParaUI=o(require("react"),require("rc-tooltip"),require("clsx")):t.ParaUI=o(t.react,t["rc-tooltip"],t.clsx)}(self,(function(t,o,e){return function(){var r={8524:function(t,o,e){(o=e(3645)(!1)).push([t.id,'.paraui-tooltip-new{color:#fff;font-size:14px;line-height:1.5715;position:absolute;z-index:1500;display:block;width:max-content;max-width:250px;visibility:visible}.paraui-tooltip-new-content{position:relative}.paraui-tooltip-new-hidden{display:none}.paraui-tooltip-new-hide-arrow .paraui-tooltip-new-arrow{display:none}.paraui-tooltip-new-inner{min-width:30px;min-height:32px;padding:5px 12px;color:#fff;text-align:left;text-decoration:none;word-wrap:break-word;background-color:rgba(46,55,67,.7);border-radius:4px;line-height:22px}.paraui-tooltip-new-arrow{position:absolute;z-index:2;display:block;width:22px;height:22px;overflow:hidden;background:rgba(0,0,0,0);pointer-events:none}.paraui-tooltip-new-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:11.3137085px;height:11.3137085px;margin:auto;background-color:rgba(0,0,0,0);content:"";border-radius:0 0 4px;pointer-events:none}.paraui-tooltip-new-arrow-content::before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background:rgba(46,55,67,.7) -10px -10px no-repeat;content:"";-webkit-clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.paraui-tooltip-new-placement-top .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-topLeft .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-topRight .paraui-tooltip-new-arrow{bottom:0;transform:translateY(100%)}.paraui-tooltip-new-placement-top .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-topLeft .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-topRight .paraui-tooltip-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateY(-11px) rotate(45deg)}.paraui-tooltip-new-placement-top .paraui-tooltip-new-arrow{left:50%;transform:translateY(100%) translateX(-50%)}.paraui-tooltip-new-placement-topLeft .paraui-tooltip-new-arrow{left:13px}.paraui-tooltip-new-placement-topRight .paraui-tooltip-new-arrow{right:13px}.paraui-tooltip-new-placement-right .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-rightTop .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-rightBottom .paraui-tooltip-new-arrow{left:0;transform:translateX(-100%)}.paraui-tooltip-new-placement-right .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-rightTop .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-rightBottom .paraui-tooltip-new-arrow-content{box-shadow:-3px 3px 7px rgba(0,0,0,.07);transform:translateX(11px) rotate(135deg)}.paraui-tooltip-new-placement-right .paraui-tooltip-new-arrow{top:50%;transform:translateX(-100%) translateY(-50%)}.paraui-tooltip-new-placement-rightTop .paraui-tooltip-new-arrow{top:5px}.paraui-tooltip-new-placement-rightBottom .paraui-tooltip-new-arrow{bottom:5px}.paraui-tooltip-new-placement-left .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-leftTop .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-leftBottom .paraui-tooltip-new-arrow{right:0;transform:translateX(100%)}.paraui-tooltip-new-placement-left .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-leftTop .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-leftBottom .paraui-tooltip-new-arrow-content{box-shadow:3px -3px 7px rgba(0,0,0,.07);transform:translateX(-11px) rotate(315deg)}.paraui-tooltip-new-placement-left .paraui-tooltip-new-arrow{top:50%;transform:translateX(100%) translateY(-50%)}.paraui-tooltip-new-placement-leftTop .paraui-tooltip-new-arrow{top:5px}.paraui-tooltip-new-placement-leftBottom .paraui-tooltip-new-arrow{bottom:5px}.paraui-tooltip-new-placement-bottom .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-bottomLeft .paraui-tooltip-new-arrow,.paraui-tooltip-new-placement-bottomRight .paraui-tooltip-new-arrow{top:0;transform:translateY(-100%)}.paraui-tooltip-new-placement-bottom .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-bottomLeft .paraui-tooltip-new-arrow-content,.paraui-tooltip-new-placement-bottomRight .paraui-tooltip-new-arrow-content{box-shadow:-3px -3px 7px rgba(0,0,0,.07);transform:translateY(11px) rotate(225deg)}.paraui-tooltip-new-placement-bottom .paraui-tooltip-new-arrow{left:50%;transform:translateY(-100%) translateX(-50%)}.paraui-tooltip-new-placement-bottomLeft .paraui-tooltip-new-arrow{left:13px}.paraui-tooltip-new-placement-bottomRight .paraui-tooltip-new-arrow{right:13px}.paraui-tooltip-new-zoom-big-fast-enter,.paraui-tooltip-new-zoom-big-fast-appear{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.paraui-tooltip-new-zoom-big-fast-leave{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.paraui-tooltip-new-zoom-big-fast-enter.paraui-tooltip-new-zoom-big-fast-enter-active,.paraui-tooltip-new-zoom-big-fast-appear.paraui-tooltip-new-zoom-big-fast-appear-active{animation-name:parauiTooltipZoomBigIn;animation-play-state:running}.paraui-tooltip-new-zoom-big-fast-leave.paraui-tooltip-new-zoom-big-fast-leave-active{animation-name:parauiTooltipZoomBigOut;animation-play-state:running;pointer-events:none}.paraui-tooltip-new-zoom-big-fast-enter,.paraui-tooltip-new-zoom-big-fast-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1)}.paraui-tooltip-new-zoom-big-fast-enter-prepare,.paraui-tooltip-new-zoom-big-fast-appear-prepare{transform:none}.paraui-tooltip-new-zoom-big-fast-leave{animation-timing-function:cubic-bezier(0.78, 0.14, 0.15, 0.86)}@keyframes parauiTooltipZoomBigIn{0%{transform:scale(0.8);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes parauiTooltipZoomBigOut{0%{transform:scale(1)}100%{transform:scale(0.8);opacity:0}}',""]),t.exports=o},4246:function(t,o,e){(o=e(3645)(!1)).push([t.id,'.paraui-popover-new{color:#2e3743;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:0;left:0;z-index:1500;font-weight:400;white-space:normal;text-align:left;cursor:auto;user-select:text}.paraui-popover-new::after{position:absolute;background:rgba(255,255,255,.01);content:""}.paraui-popover-new-hidden{display:none}.paraui-popover-new-inner{background-color:#fff;background-clip:padding-box;border-radius:4px;box-shadow:0px 2px 8px 0px rgba(171,176,185,.4)}.paraui-popover-new-title{min-height:32px;margin:0;padding:4px 16px;color:#2e3743;font-weight:400;border-bottom:1px solid #f0f0f0}.paraui-popover-new-inner-content{color:#2e3743}.paraui-popover-new-buttons{margin-bottom:4px;text-align:right}.paraui-popover-new-buttons button{margin-left:8px}.paraui-popover-new-arrow{position:absolute;display:block;width:16px;height:16px;overflow:hidden;background:rgba(0,0,0,0);pointer-events:none}.paraui-popover-new-arrow-content{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:11.3137085px;height:11.3137085px;margin:auto;background-color:#fff;content:"";border-radius:0 0 4px;pointer-events:none}.paraui-popover-new-arrow-content::before{position:absolute;top:-11.3137085px;left:-11.3137085px;width:33.9411255px;height:33.9411255px;background:#fff -10px -10px no-repeat;content:"";-webkit-clip-path:path("M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z")}.paraui-popover-new-placement-top .paraui-popover-new-arrow,.paraui-popover-new-placement-topLeft .paraui-popover-new-arrow,.paraui-popover-new-placement-topRight .paraui-popover-new-arrow{bottom:-0.6862915px}.paraui-popover-new-placement-top .paraui-popover-new-arrow-content,.paraui-popover-new-placement-topLeft .paraui-popover-new-arrow-content,.paraui-popover-new-placement-topRight .paraui-popover-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateY(-1px) rotate(45deg)}.paraui-popover-new-placement-top .paraui-popover-new-arrow{left:50%;transform:translateX(-50%)}.paraui-popover-new-placement-topLeft .paraui-popover-new-arrow{left:16px}.paraui-popover-new-placement-topRight .paraui-popover-new-arrow{right:16px}.paraui-popover-new-placement-right .paraui-popover-new-arrow,.paraui-popover-new-placement-rightTop .paraui-popover-new-arrow,.paraui-popover-new-placement-rightBottom .paraui-popover-new-arrow{left:-0.6862915px}.paraui-popover-new-placement-right .paraui-popover-new-arrow-content,.paraui-popover-new-placement-rightTop .paraui-popover-new-arrow-content,.paraui-popover-new-placement-rightBottom .paraui-popover-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateX(1px) rotate(135deg)}.paraui-popover-new-placement-right .paraui-popover-new-arrow{top:50%;transform:translateY(-50%)}.paraui-popover-new-placement-rightTop .paraui-popover-new-arrow{top:12px}.paraui-popover-new-placement-rightBottom .paraui-popover-new-arrow{bottom:12px}.paraui-popover-new-placement-bottom .paraui-popover-new-arrow,.paraui-popover-new-placement-bottomLeft .paraui-popover-new-arrow,.paraui-popover-new-placement-bottomRight .paraui-popover-new-arrow{top:-0.6862915px}.paraui-popover-new-placement-bottom .paraui-popover-new-arrow-content,.paraui-popover-new-placement-bottomLeft .paraui-popover-new-arrow-content,.paraui-popover-new-placement-bottomRight .paraui-popover-new-arrow-content{box-shadow:2px 2px 5px rgba(0,0,0,.06);transform:translateY(1px) rotate(-135deg)}.paraui-popover-new-placement-bottom .paraui-popover-new-arrow{left:50%;transform:translateX(-50%)}.paraui-popover-new-placement-bottomLeft .paraui-popover-new-arrow{left:16px}.paraui-popover-new-placement-bottomRight .paraui-popover-new-arrow{right:16px}.paraui-popover-new-placement-left .paraui-popover-new-arrow,.paraui-popover-new-placement-leftTop .paraui-popover-new-arrow,.paraui-popover-new-placement-leftBottom .paraui-popover-new-arrow{right:-0.6862915px}.paraui-popover-new-placement-left .paraui-popover-new-arrow-content,.paraui-popover-new-placement-leftTop .paraui-popover-new-arrow-content,.paraui-popover-new-placement-leftBottom .paraui-popover-new-arrow-content{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateX(-1px) rotate(-45deg)}.paraui-popover-new-placement-left .paraui-popover-new-arrow{top:50%;transform:translateY(-50%)}.paraui-popover-new-placement-leftTop .paraui-popover-new-arrow{top:12px}.paraui-popover-new-placement-leftBottom .paraui-popover-new-arrow{bottom:12px}.paraui-popover-new-zoom-big-enter,.paraui-popover-new-zoom-big-appear{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.paraui-popover-new-zoom-big-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}.paraui-popover-new-zoom-big-enter.paraui-popover-new-zoom-big-enter-active,.paraui-popover-new-zoom-big-appear.paraui-popover-new-zoom-big-appear-active{animation-name:parauiPopoverZoomBigIn;animation-play-state:running}.paraui-popover-new-zoom-big-leave.paraui-popover-new-zoom-big-leave-active{animation-name:parauiPopoverZoomBigOut;animation-play-state:running;pointer-events:none}.paraui-popover-new-zoom-big-enter,.paraui-popover-new-zoom-big-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1)}.paraui-popover-new-zoom-big-enter-prepare,.paraui-popover-new-zoom-big-appear-prepare{transform:none}.paraui-popover-new-zoom-big-leave{animation-timing-function:cubic-bezier(0.78, 0.14, 0.15, 0.86)}@keyframes parauiPopoverZoomBigIn{0%{transform:scale(0.8);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes parauiPopoverZoomBigOut{0%{transform:scale(1)}100%{transform:scale(0.8);opacity:0}}',""]),t.exports=o},3645:function(t){"use strict";t.exports=function(t){var o=[];return o.toString=function(){return this.map((function(o){var e=function(t,o){var e=t[1]||"",r=t[3];if(!r)return e;if(o&&"function"==typeof btoa){var a=(p=r,i=btoa(unescape(encodeURIComponent(JSON.stringify(p)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(l," */")),n=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[e].concat(n).concat([a]).join("\n")}var p,i,l;return[e].join("\n")}(o,t);return o[2]?"@media ".concat(o[2]," {").concat(e,"}"):e})).join("")},o.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var a={};if(r)for(var n=0;n<this.length;n++){var p=this[n][0];null!=p&&(a[p]=!0)}for(var i=0;i<t.length;i++){var l=[].concat(t[i]);r&&a[l[0]]||(e&&(l[2]?l[2]="".concat(e," and ").concat(l[2]):l[2]=e),o.push(l))}},o}},7418:function(t){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var o=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var o={},e=0;e<10;e++)o["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(t){return o[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,n){for(var p,i,l=a(t),u=1;u<arguments.length;u++){for(var f in p=Object(arguments[u]))e.call(p,f)&&(l[f]=p[f]);if(o){i=o(p);for(var s=0;s<i.length;s++)r.call(p,i[s])&&(l[i[s]]=p[i[s]])}}return l}},4375:function(t,o){"use strict";o.Ct=void 0;var e={adjustX:1,adjustY:1},r=[0,0],a={left:{points:["cr","cl"],overflow:e,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:e,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:e,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:e,offset:[-4,0],targetOffset:r}};o.Ct=a},5251:function(t,o,e){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/e(7418);var r=e(8156),a=60103;if(o.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;a=n("react.element"),o.Fragment=n("react.fragment")}var p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,o,e){var r,n={},u=null,f=null;for(r in void 0!==e&&(u=""+e),void 0!==o.key&&(u=""+o.key),void 0!==o.ref&&(f=o.ref),o)i.call(o,r)&&!l.hasOwnProperty(r)&&(n[r]=o[r]);if(t&&t.defaultProps)for(r in o=t.defaultProps)void 0===n[r]&&(n[r]=o[r]);return{$$typeof:a,type:t,key:u,ref:f,props:n,_owner:p.current}}o.jsx=u,o.jsxs=u},5893:function(t,o,e){"use strict";t.exports=e(5251)},8223:function(t,o,e){var r=e(3379),a=e(8524);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.id,a,""]]);var n={insert:("body","body"),singleton:!1};r(a,n);t.exports=a.locals||{}},8088:function(t,o,e){var r=e(3379),a=e(4246);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.id,a,""]]);var n={insert:("body","body"),singleton:!1};r(a,n);t.exports=a.locals||{}},3379:function(t,o,e){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},n=function(){var t={};return function(o){if(void 0===t[o]){var e=document.querySelector(o);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[o]=e}return t[o]}}(),p=[];function i(t){for(var o=-1,e=0;e<p.length;e++)if(p[e].identifier===t){o=e;break}return o}function l(t,o){for(var e={},r=[],a=0;a<t.length;a++){var n=t[a],l=o.base?n[0]+o.base:n[0],u=e[l]||0,f="".concat(l," ").concat(u);e[l]=u+1;var s=i(f),c={css:n[1],media:n[2],sourceMap:n[3]};-1!==s?(p[s].references++,p[s].updater(c)):p.push({identifier:f,updater:b(c,o),references:1}),r.push(f)}return r}function u(t){var o=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var a=e.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(t){o.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(o);else{var p=n(t.insert||"head");if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");p.appendChild(o)}return o}var f,s=(f=[],function(t,o){return f[t]=o,f.filter(Boolean).join("\n")});function c(t,o,e,r){var a=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=s(o,a);else{var n=document.createTextNode(a),p=t.childNodes;p[o]&&t.removeChild(p[o]),p.length?t.insertBefore(n,p[o]):t.appendChild(n)}}function w(t,o,e){var r=e.css,a=e.media,n=e.sourceMap;if(a?t.setAttribute("media",a):t.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var m=null,v=0;function b(t,o){var e,r,a;if(o.singleton){var n=v++;e=m||(m=u(o)),r=c.bind(null,e,n,!1),a=c.bind(null,e,n,!0)}else e=u(o),r=w.bind(null,e,o),a=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;r(t=o)}else a()}}t.exports=function(t,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=a());var e=l(t=t||[],o);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var a=i(e[r]);p[a].references--}for(var n=l(t,o),u=0;u<e.length;u++){var f=i(e[u]);0===p[f].references&&(p[f].updater(),p.splice(f,1))}e=n}}}},5744:function(t){"use strict";t.exports=e},6376:function(t){"use strict";t.exports=o},8156:function(o){"use strict";o.exports=t}},a={};function n(t){var o=a[t];if(void 0!==o)return o.exports;var e=a[t]={id:t,exports:{}};return r[t](e,e.exports,n),e.exports}n.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(o,{a:o}),o},n.d=function(t,o){for(var e in o)n.o(o,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},n.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var p={};return function(){"use strict";n.r(p),n.d(p,{PopoverNew:function(){return j},default:function(){return P}});var t=n(5893),o=n(8156),e=n.n(o),r=n(6376),a=n.n(r),i=n(4375),l=n(5744),u=n.n(l),f=function(){return f=Object.assign||function(t){for(var o,e=1,r=arguments.length;e<r;e++)for(var a in o=arguments[e])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t},f.apply(this,arguments)},s={adjustX:1,adjustY:1},c={adjustX:0,adjustY:0},w=[0,0];function m(t){return"boolean"==typeof t?t?s:c:f(f({},c),t)}function v(o){var r=e().isValidElement(o)?o:(0,t.jsx)("span",{children:o});if("button"===r.type&&r.props.disabled){var a=function(t,o){var e={},r=f({},t);return o.forEach((function(o){t&&o in t&&(e[o]=t[o],delete r[o])})),{picked:e,omitted:r}}(r.props.style,["position","left","right","top","bottom","float","display","zIndex"]),n=a.picked,p=a.omitted,i=f(f({display:"inline-block"},n),{cursor:"not-allowed",width:r.props.block?"100%":null}),l=f(f({},p),{pointerEvents:"none"}),s=e().cloneElement(r,{style:l,className:null});return(0,t.jsx)("span",f({style:i,className:u()(r.props.className,"paraui-tooltip-disabled-compatible-wrapper")},{children:s}))}return r}function b(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}n(8223);var d=function(){return d=Object.assign||function(t){for(var o,e=1,r=arguments.length;e<r;e++)for(var a in o=arguments[e])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t},d.apply(this,arguments)},g=function(t,o){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(e[r[a]]=t[r[a]])}return e},h=e().forwardRef((function(o,r){var n,p=e().useState(o.defaultVisible),l=p[0],s=p[1];e().useEffect((function(){var t;("visible"in o||"open"in o)&&s(!!(null!==(t=o.visible)&&void 0!==t?t:o.open))}),[null!==(n=o.visible)&&void 0!==n?n:o.open]);var c=function(){var t=o.title;return!t&&0!==t},h=function(){var t=o.builtinPlacements,e=o.arrowPointAtCenter,r=o.autoAdjustOverflow;return t||function(t){var o=t.arrowWidth,e=void 0===o?4:o,r=t.horizontalArrowShift,a=void 0===r?16:r,n=t.verticalArrowShift,p=void 0===n?8:n,l=t.autoAdjustOverflow,u=t.arrowPointAtCenter,s={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-(a+e),-8]},leftTop:{points:["tr","cl"],offset:[-8,-(p+e)]},topRight:{points:["br","tc"],offset:[a+e,-8]},rightTop:{points:["tl","cr"],offset:[8,-(p+e)]},bottomRight:{points:["tr","bc"],offset:[a+e,8]},rightBottom:{points:["bl","cr"],offset:[8,p+e]},bottomLeft:{points:["tl","bc"],offset:[-(a+e),8]},leftBottom:{points:["br","cl"],offset:[-8,p+e]}};return Object.keys(s).forEach((function(t){var o,e;s[t]=u?f(f({},s[t]),{overflow:m(l),targetOffset:w}):f(f({},i.Ct[t]),{offset:(o=t,e=b(o),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[e]).offset,overflow:m(l)}),s[t].ignoreShake=!0})),s}({arrowPointAtCenter:e,autoAdjustOverflow:r})},x=o.prefixCls,y=void 0===x?"paraui-tooltip-new":x,O=o.getTooltipContainer,j=o.getPopupContainer,P=o.overlayClassName,z=o.overlayInnerStyle,C=o.children,T=o.title,k=o.placement,L=g(o,["prefixCls","getTooltipContainer","getPopupContainer","overlayClassName","overlayInnerStyle","children","title","placement"]),R=l;return"visible"in o||"open"in o||!c()||(R=!1),(0,t.jsx)(a(),d({},L,{placement:b(k),prefixCls:y,overlayClassName:u()(P,!o.arrow&&"paraui-tooltip-new-hide-arrow"),getTooltipContainer:j||O,ref:r,builtinPlacements:h(),overlay:T,visible:R,onVisibleChange:function(t){var e;"visible"in o||"open"in o||s(!c()&&t),c()||null===(e=o.onVisibleChange)||void 0===e||e.call(o,t)},onPopupAlign:function(t,o){var e=h(),r=Object.keys(e).find((function(t){return e[t].points[0]===o.points[0]&&e[t].points[1]===o.points[1]}));if(r){var a=t.getBoundingClientRect(),n={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?n.top="".concat(a.height-o.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(n.top="".concat(-o.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?n.left="".concat(a.width-o.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(n.left="".concat(-o.offset[0],"px")),t.style.transformOrigin="".concat(n.left," ").concat(n.top)}},overlayInnerStyle:z,arrowContent:o.arrow?(0,t.jsx)("span",{className:"".concat(y,"-arrow-content")}):null,motion:{motionName:"paraui-tooltip-new-zoom-big-fast",motionDeadline:1e3}},{children:v(C)}))}));h.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,arrow:!0,defaultVisible:!1};var x=h,y=(n(8088),function(){return y=Object.assign||function(t){for(var o,e=1,r=arguments.length;e<r;e++)for(var a in o=arguments[e])Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);return t},y.apply(this,arguments)}),O=function(t,o){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(e[r[a]]=t[r[a]])}return e},j=e().forwardRef((function(o,e){var r=o.title,a=o.content,n=O(o,["title","content"]),p="paraui-popover-new";return(0,t.jsx)(x,y({},n,{prefixCls:p,ref:e,title:function(o){return r||a?(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)("div",y({className:"".concat(o,"-title")},{children:r})),(0,t.jsx)("div",y({className:"".concat(o,"-inner-content")},{children:a}))]}):null}(p),transitionName:"paraui-popover-new-zoom-big",getPopupContainer:function(t){return o.getPopupContainer&&o.getPopupContainer(t)||document.body}}))}));j.defaultProps={placement:"bottom",trigger:"click",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrow:!1};var P=j}(),p}()}));
|
package/README.md
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/7/20 11:22 AM
|
|
4
|
+
* @description 选择器
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { SelectorFieldConfigProps, SelectorProps } from './interface';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export declare const handFieldConfig: (fieldConfig?: SelectorFieldConfigProps, rowKey?: string) => SelectorFieldConfigProps;
|
|
10
|
+
declare const Selector: FunctionComponent<SelectorProps>;
|
|
11
|
+
export default Selector;
|