@para-ui/core 4.0.46 → 4.0.48
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/Badge/index.d.ts +2 -0
- package/Badge/index.js +29 -5
- package/Cascader/index.js +4 -5
- package/ComboSelect/index.js +3 -3
- package/CycleSelector/index.js +1 -4
- package/DatePicker/index.js +1 -4
- package/DynamicMultiBox/index.js +3 -3
- package/Form/index.js +4 -4
- package/FormItem/index.js +4 -4
- package/Image/index.js +2 -3
- package/README.md +10 -0
- package/ScrollBar/index.d.ts +27 -0
- package/ScrollBar/index.js +153 -0
- package/SingleBox/index.js +2 -2
- package/Stepper/index.js +1 -1
- package/Table/index.js +111 -22
- package/Table/interface.d.ts +2 -0
- package/Table/tableBodyInterface.d.ts +4 -0
- package/Table/tableElement/index.d.ts +1 -0
- package/Tag/index.js +55 -87
- package/TimePicker/index.js +1 -4
- package/Timeline/index.js +1 -2
- package/ToggleButton/index.js +1 -2
- package/Tree/index.js +3 -4
- package/Upload/index.js +2 -3
- package/_verture/{Portal-f9bedb3a.js → Portal-42560ff0.js} +1 -2
- package/_verture/{defineProperty-6f62bb2a.js → defineProperty-f0e15205.js} +10 -2
- package/_verture/{index-972707a5.js → index-063009f8.js} +2 -3
- package/_verture/{index-6647cbf6.js → index-72981a9e.js} +1 -2
- package/index.d.ts +2 -0
- package/index.js +6 -6
- package/package.json +1 -1
- package/umd/Badge.js +1 -1
- package/umd/ComboSelect.js +9 -9
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +5 -5
- package/umd/FormItem.js +5 -5
- package/umd/ScrollBar.js +1 -0
- package/umd/Table.js +5 -5
- package/_verture/typeof-adeedc13.js +0 -11
- /package/_verture/{index-bc7b7394.js → index-caffc0da.js} +0 -0
package/ToggleButton/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { Button } from '../Button/index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
|
|
6
6
|
import { UUID } from '@paraview/lib';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
@@ -20,7 +20,6 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
20
20
|
import 'dayjs';
|
|
21
21
|
import '../_verture/useFormatMessage-1fc7c957.js';
|
|
22
22
|
import '../_verture/index-ca413216.js';
|
|
23
|
-
import '../_verture/typeof-adeedc13.js';
|
|
24
23
|
|
|
25
24
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/23 上午9:50\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::before {\n content: \" \";\n position: absolute;\n bottom: 0;\n right: 0;\n border: 8px solid rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::after {\n content: \" \";\n width: 8px;\n height: 8px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAM5JREFUOE/NkQENwjAURFcFIAEHgIM5YCgAHCABFBAUAA5wABI2CTgABeUd+V06BqFkCeEnl6X9d7d/vy7rWK6jPvu9gfe+z9QnsHDOlV9NgHhk4gpxrvjJBogL+DtwATkG12QDxEvIG3AzcRmW/5gAgsaR+1S54peht+c8s7vxc7+OAFHCIVhBWkfLUm6VliazRsUGAzoy6YEz0LaDeItYMVrVWCJ/nVuUmHhArPuX1XoFTI4wJ8au+NYb/ziBCJZdJqoiPFfyBO+I/2twBz0qQBFvrubpAAAAAElFTkSuQmCC\");\n background-size: 8px 8px;\n background-repeat: no-repeat;\n position: absolute;\n bottom: 1px;\n right: 1px;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover::before {\n border-color: rgb(87, 131, 235);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected::before {\n border-color: rgb(46, 101, 230);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected {\n border-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected::before {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n content: \"\";\n background-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover[disabled] {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected {\n color: rgb(46, 101, 230);\n border: 0;\n font-weight: 700;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled] {\n color: rgb(92, 101, 115);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:first-child:before {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected::after {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled] {\n color: rgb(161, 168, 179);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button-wrap {\n display: inline-block;\n}\n.paraui-v4-toggle-button .toggle-button-text {\n width: 100%;\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button:hover {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-togglebutton-group {\n display: flex;\n flex-flow: row wrap;\n}\n.paraui-v4-togglebutton-group .toggle-button-item {\n margin: 0 8px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item .paraui-v4-toggle-button {\n margin: 0;\n padding: 0 16px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item ~ .toggle-button-item .paraui-v4-toggle-button::before {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n content: \"\";\n width: 1px;\n height: 14px;\n background-color: rgb(212, 218, 227);\n}";
|
|
26
25
|
styleInject(css_248z);
|
package/Tree/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-72981a9e.js';
|
|
2
|
+
export { T as default } from '../_verture/index-72981a9e.js';
|
|
3
3
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
4
4
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
5
|
-
import '../_verture/defineProperty-
|
|
6
|
-
import '../_verture/typeof-adeedc13.js';
|
|
5
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
7
6
|
import '../_verture/index-8ac46bd9.js';
|
|
8
7
|
import '../_verture/typeof-6ec38efd.js';
|
|
9
8
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
package/Upload/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
7
7
|
import LoadingIcon from '@para-ui/icons/Loading';
|
|
8
8
|
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
9
|
-
import { _ as _typeof } from '../_verture/
|
|
9
|
+
import { _ as _typeof } from '../_verture/defineProperty-f0e15205.js';
|
|
10
10
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
11
11
|
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
@@ -36,9 +36,8 @@ import { Modal } from '../Modal/index.js';
|
|
|
36
36
|
import '../_verture/typeof-6ec38efd.js';
|
|
37
37
|
import 'rc-tooltip';
|
|
38
38
|
import 'rc-tooltip/lib/placements';
|
|
39
|
-
import '../_verture/Portal-
|
|
39
|
+
import '../_verture/Portal-42560ff0.js';
|
|
40
40
|
import 'react-dom';
|
|
41
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
42
41
|
import 'rc-dialog';
|
|
43
42
|
import 'rc-motion';
|
|
44
43
|
import '@para-ui/icons/Sort';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import { _ as _typeof } from './
|
|
4
|
+
import { a as _defineProperty, _ as _typeof } from './defineProperty-f0e15205.js';
|
|
5
5
|
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
6
|
-
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
7
6
|
|
|
8
7
|
function _extends() {
|
|
9
8
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function (o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
function toPrimitive(t, r) {
|
|
4
12
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -31,4 +39,4 @@ function _defineProperty(obj, key, value) {
|
|
|
31
39
|
return obj;
|
|
32
40
|
}
|
|
33
41
|
|
|
34
|
-
export {
|
|
42
|
+
export { _typeof as _, _defineProperty as a, toPropertyKey as t };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { _ as __rest } from './tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-
|
|
3
|
+
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-42560ff0.js';
|
|
4
4
|
import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-c7a8028f.js';
|
|
5
|
-
import { t as toPropertyKey,
|
|
5
|
+
import { _ as _typeof$1, t as toPropertyKey, a as _defineProperty } from './defineProperty-f0e15205.js';
|
|
6
6
|
import { _ as _slicedToArray, a as _arrayWithHoles, b as _unsupportedIterableToArray, c as _nonIterableRest } from './slicedToArray-75fa4188.js';
|
|
7
|
-
import { _ as _typeof$1 } from './typeof-adeedc13.js';
|
|
8
7
|
import * as React$4 from 'react';
|
|
9
8
|
import React__default, { useState as useState$1, useMemo, useCallback, useRef, useEffect } from 'react';
|
|
10
9
|
import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
2
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
2
|
+
import { _ as _typeof, a as _defineProperty } from './defineProperty-f0e15205.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
4
4
|
import { r as regenerator } from './index-8ac46bd9.js';
|
|
5
5
|
import { _ as __rest, a as __awaiter } from './tslib.es6-55ed4bd2.js';
|
|
@@ -7,7 +7,6 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
7
7
|
import React__default, { isValidElement, cloneElement, useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
8
8
|
import RcTree from 'rc-tree';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
11
10
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
12
11
|
import FileOutlined from '@para-ui/icons/Document';
|
|
13
12
|
import SolidArrowDown from '@para-ui/icons/DownTriangleF';
|
package/index.d.ts
CHANGED
|
@@ -130,6 +130,8 @@ export { default as RangeInput } from './RangeInput';
|
|
|
130
130
|
export * from './RangeInput';
|
|
131
131
|
export { default as Result } from './Result';
|
|
132
132
|
export * from './Result';
|
|
133
|
+
export { default as ScrollBar } from './ScrollBar';
|
|
134
|
+
export * from './ScrollBar';
|
|
133
135
|
export { default as Search } from './Search';
|
|
134
136
|
export * from './Search';
|
|
135
137
|
export { default as Select } from './Select';
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { Button } from './Button/index.js';
|
|
|
10
10
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
11
11
|
export { Card } from './Card/index.js';
|
|
12
12
|
export { Carousel } from './Carousel/index.js';
|
|
13
|
-
export { C as Cascader } from './_verture/index-
|
|
13
|
+
export { C as Cascader } from './_verture/index-063009f8.js';
|
|
14
14
|
export { Checkbox } from './Checkbox/index.js';
|
|
15
15
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
16
16
|
export { default as CodeEditor, CompletionItemKind } from './CodeEditor/index.js';
|
|
@@ -32,7 +32,7 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
|
|
|
32
32
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
33
33
|
export { default as Empty } from './Empty/index.js';
|
|
34
34
|
export { default as Form } from './Form/index.js';
|
|
35
|
-
export { F as FormItem } from './_verture/index-
|
|
35
|
+
export { F as FormItem } from './_verture/index-caffc0da.js';
|
|
36
36
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-8a48c400.js';
|
|
37
37
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
38
38
|
export { default as Help } from './Help/index.js';
|
|
@@ -64,6 +64,7 @@ export { Radio } from './Radio/index.js';
|
|
|
64
64
|
export { RadioGroup } from './RadioGroup/index.js';
|
|
65
65
|
export { RangeInput } from './RangeInput/index.js';
|
|
66
66
|
export { Result } from './Result/index.js';
|
|
67
|
+
export { default as ScrollBar } from './ScrollBar/index.js';
|
|
67
68
|
export { Search } from './Search/index.js';
|
|
68
69
|
export { default as Select } from './Select/index.js';
|
|
69
70
|
export { SelectInput } from './SelectInput/index.js';
|
|
@@ -86,7 +87,7 @@ export { Title } from './Title/index.js';
|
|
|
86
87
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
87
88
|
export { Tooltip } from './Tooltip/index.js';
|
|
88
89
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
89
|
-
export { T as Tree } from './_verture/index-
|
|
90
|
+
export { T as Tree } from './_verture/index-72981a9e.js';
|
|
90
91
|
export { default as Upload } from './Upload/index.js';
|
|
91
92
|
export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
|
|
92
93
|
export { default as locale } from './locale/index.js';
|
|
@@ -113,11 +114,10 @@ import '@para-ui/icons/LoadingF';
|
|
|
113
114
|
import 'react-slick';
|
|
114
115
|
import '@para-ui/icons/RightCircleF';
|
|
115
116
|
import '@para-ui/icons/LeftCircleF';
|
|
116
|
-
import './_verture/Portal-
|
|
117
|
+
import './_verture/Portal-42560ff0.js';
|
|
117
118
|
import './_verture/slicedToArray-75fa4188.js';
|
|
118
|
-
import './_verture/
|
|
119
|
+
import './_verture/defineProperty-f0e15205.js';
|
|
119
120
|
import './_verture/toConsumableArray-c7a8028f.js';
|
|
120
|
-
import './_verture/defineProperty-6f62bb2a.js';
|
|
121
121
|
import 'rc-motion';
|
|
122
122
|
import './_verture/typeof-6ec38efd.js';
|
|
123
123
|
import 'rc-tree/lib/utils/conductUtil';
|
package/package.json
CHANGED
package/umd/Badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(e=>(()=>{var t={47830:(e,t,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(e=>(()=>{var t={47830:(e,t,o)=>{(t=o(76314)(!1)).push([e.id,".paraui-v4-badge{display:inline-block;line-height:1;position:relative}.paraui-v4-badge>.pos-box{position:absolute;height:12px;display:inline-block;background-color:#f44242;color:#fff}.paraui-v4-badge>.pos-box.dot{border-radius:50%;width:8px;height:8px}.paraui-v4-badge>.pos-box.number,.paraui-v4-badge>.pos-box.text{border-radius:8px;font-size:12px;min-width:12px;text-align:center;line-height:12px;padding:0 3px;max-width:60px;overflow:hidden;text-overflow:ellipsis}.paraui-v4-badge>.pos-box.number>span,.paraui-v4-badge>.pos-box.text>span{transform:scale(0.8);display:inline-block}.paraui-v4-badge.paraui-v4-badge-top-left>.pos-box{top:0;left:0;transform:translate(-50%, -50%)}.paraui-v4-badge.paraui-v4-badge-top-right>.pos-box{top:0;right:0;transform:translate(50%, -50%)}.paraui-v4-badge.paraui-v4-badge-bottom-left>.pos-box{bottom:0;left:0;transform:translate(-50%, 50%)}.paraui-v4-badge.paraui-v4-badge-bottom-right>.pos-box{bottom:0;right:0;transform:translate(50%, 50%)}",""]),e.exports=t},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=function(e,t){var o=e[1]||"",r=e[3];if(!r)return o;if(t&&"function"==typeof btoa){var n=(i=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[o].concat(a).concat([n]).join("\n")}var i,s,c;return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,r){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(n[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&n[c[0]]||(o&&(c[2]?c[2]="".concat(o," and ").concat(c[2]):c[2]=o),t.push(c))}},t}},33653:(e,t,o)=>{var r=o(85072),n=o(47830);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);var a={insert:"head",singleton:!1};r(n,a);e.exports=n.locals||{}},85072:(e,t,o)=>{"use strict";var r,n=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),i=[];function s(e){for(var t=-1,o=0;o<i.length;o++)if(i[o].identifier===e){t=o;break}return t}function c(e,t){for(var o={},r=[],n=0;n<e.length;n++){var a=e[n],c=t.base?a[0]+t.base:a[0],u=o[c]||0,f="".concat(c," ").concat(u);o[c]=u+1;var l=s(f),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==l?(i[l].references++,i[l].updater(d)):i.push({identifier:f,updater:m(d,t),references:1}),r.push(f)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var n=o.nc;n&&(r.nonce=n)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var f,l=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,o,r){var n=o?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,n);else{var a=document.createTextNode(n),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t,o){var r=o.css,n=o.media,a=o.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var b=null,v=0;function m(e,t){var o,r,n;if(t.singleton){var a=v++;o=b||(b=u(t)),r=d.bind(null,o,a,!1),n=d.bind(null,o,a,!0)}else o=u(t),r=p.bind(null,o,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=n());var o=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<o.length;r++){var n=s(o[r]);i[n].references--}for(var a=c(e,t),u=0;u<o.length;u++){var f=s(o[u]);0===i[f].references&&(i[f].updater(),i.splice(f,1))}o=a}}}},39155:t=>{"use strict";t.exports=e}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};return(()=>{"use strict";r.r(n),r.d(n,{Badge:()=>s,default:()=>c});var e=r(39155),t=r.n(e),o="paraui-v4";function a(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=a(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function i(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r}r(33653);var s=function(r){var n=r.className,a=r.style,s=r.children,c=r.sign,u=r.backgroundColor,f=r.color,l=r.offset,d=r.placement,p=void 0===d?"top-right":d,b=(0,e.useRef)({offsetPos:{"top-left":{offsetX:"left",offsetY:"top"},"top-right":{offsetX:"right",offsetY:"top"},"bottom-left":{offsetX:"left",offsetY:"bottom"},"bottom-right":{offsetX:"right",offsetY:"bottom"}}}),v=function(){var e,t=void 0===c?"undefined":(e=c)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return"undefined"===t?"dot":"number"===t?"number":null===c?"null":"text"}(),m=function(){return Number(c)>999?"999+":c};return t().createElement("span",{className:i("".concat(o,"-badge ").concat(o,"-badge-").concat(v," ").concat(o,"-badge-").concat(p),n),style:a},s,function(){if(null===v)return null;var e={backgroundColor:u,color:f};if(l){var o=b.current.offsetPos[p].offsetX,r=b.current.offsetPos[p].offsetY;e[o]=-l[0]+"px",e[r]=l[1]+"px"}return t().createElement("span",{className:"pos-box ".concat(v),style:e},"number"===v&&t().createElement("span",null,m()),"text"===v&&t().createElement("span",null,c))}())};const c=s})(),n})()));
|