yootd 0.0.91 → 0.0.93
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/dist/affix/index.d.ts +3 -1
- package/dist/affix/index.js +3 -2
- package/dist/alert/index.js +3 -2
- package/dist/anchor/index.js +4 -3
- package/dist/app/index.js +3 -2
- package/dist/areas-treeSelect/index.js +4 -3
- package/dist/auto-complete/index.js +3 -2
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/index.js +3 -2
- package/dist/badge/index.d.ts +2 -3
- package/dist/badge/index.js +4 -4
- package/dist/breadcrumb/index.js +5 -4
- package/dist/button/index.js +4 -3
- package/dist/calendar/index.js +3 -2
- package/dist/card/index.js +3 -2
- package/dist/carousel/index.js +3 -2
- package/dist/cascader/index.d.ts +1 -1
- package/dist/cascader/index.js +6 -5
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js +4 -3
- package/dist/collapse/index.js +3 -2
- package/dist/color-picker/index.js +3 -2
- package/dist/config-provider/context.d.ts +1 -1
- package/dist/config-provider/index.js +7 -6
- package/dist/date-interval/index.d.ts +1 -1
- package/dist/date-interval/index.js +11 -8
- package/dist/date-picker/index.js +3 -2
- package/dist/date-range/index.d.ts +1 -1
- package/dist/date-range/index.js +13 -8
- package/dist/description/index.js +3 -2
- package/dist/divider/index.js +3 -2
- package/dist/drawer/index.js +3 -2
- package/dist/drawer-modal/index.js +3 -2
- package/dist/dropdown/index.js +4 -3
- package/dist/dropdown-select/index.js +3 -2
- package/dist/empty/index.js +5 -4
- package/dist/export/index.js +3 -2
- package/dist/flex/index.js +3 -2
- package/dist/float-button/index.js +5 -4
- package/dist/form/index.js +3 -2
- package/dist/grid/index.js +6 -3
- package/dist/image/index.js +4 -3
- package/dist/input/index.js +8 -7
- package/dist/input-number/index.js +3 -2
- package/dist/layout/index.js +3 -2
- package/dist/list/index.js +3 -2
- package/dist/mentions/index.js +3 -2
- package/dist/menu/index.js +7 -6
- package/dist/message/index.js +3 -2
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/index.js +14 -13
- package/dist/notification/index.js +3 -2
- package/dist/pagination/index.js +3 -2
- package/dist/pop-confirm/index.js +3 -2
- package/dist/popover/index.js +3 -2
- package/dist/progress/index.js +3 -2
- package/dist/qrcode/index.js +3 -2
- package/dist/radio/index.d.ts +0 -1
- package/dist/radio/index.js +3 -3
- package/dist/rate/index.js +3 -2
- package/dist/result/index.js +3 -2
- package/dist/segmented/index.js +3 -2
- package/dist/select/index.js +3 -2
- package/dist/skeleton/index.js +3 -2
- package/dist/slider/index.js +3 -2
- package/dist/space/index.js +3 -2
- package/dist/spin/index.js +3 -2
- package/dist/splitter/index.js +3 -2
- package/dist/statistic/index.js +3 -2
- package/dist/steps/index.js +4 -3
- package/dist/switch/index.js +3 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +10 -12
- package/dist/tabs/index.js +8 -5
- package/dist/tag/index.js +4 -3
- package/dist/time-picker/index.js +3 -2
- package/dist/timeline/index.js +3 -2
- package/dist/tooltip/index.js +3 -2
- package/dist/tour/index.js +3 -2
- package/dist/transfer/index.js +3 -2
- package/dist/tree/index.js +4 -3
- package/dist/tree-select/index.js +3 -2
- package/dist/typography/index.js +3 -2
- package/dist/upload/components/fileUpload.d.ts +1 -1
- package/dist/upload/components/fileUpload.js +3 -2
- package/dist/upload/components/imageUpload.d.ts +1 -1
- package/dist/upload/components/imageUpload.js +6 -4
- package/dist/upload/index.d.ts +1 -1
- package/dist/upload/index.js +3 -2
- package/dist/watermark/index.js +3 -2
- package/dist/year-options/index.js +3 -2
- package/package.json +6 -2
package/dist/empty/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import "antd/es/empty/style";
|
2
|
+
import _Empty from "antd/es/empty";
|
1
3
|
var _excluded = ["type", "description", "className"];
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
5
|
-
import { Empty as AntEmpty } from 'antd';
|
6
7
|
import React, { useMemo } from 'react';
|
7
8
|
import { useBem } from "../hooks/useBem";
|
8
9
|
import "./index.scss";
|
@@ -126,7 +127,7 @@ var EmptyComponent = function EmptyComponent(_ref) {
|
|
126
127
|
}, "\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u8FD4\u56DE\u4E0A\u4E00\u9875"))
|
127
128
|
};
|
128
129
|
}, []);
|
129
|
-
return /*#__PURE__*/React.createElement(
|
130
|
+
return /*#__PURE__*/React.createElement(_Empty, _extends({
|
130
131
|
className: "".concat(className, " ").concat(mb),
|
131
132
|
image: /*#__PURE__*/React.createElement("img", {
|
132
133
|
src: imageMap[type]
|
@@ -135,5 +136,5 @@ var EmptyComponent = function EmptyComponent(_ref) {
|
|
135
136
|
}, props));
|
136
137
|
};
|
137
138
|
export var Empty = EmptyComponent;
|
138
|
-
Empty.PRESENTED_IMAGE_DEFAULT =
|
139
|
-
Empty.PRESENTED_IMAGE_SIMPLE =
|
139
|
+
Empty.PRESENTED_IMAGE_DEFAULT = _Empty.PRESENTED_IMAGE_DEFAULT;
|
140
|
+
Empty.PRESENTED_IMAGE_SIMPLE = _Empty.PRESENTED_IMAGE_SIMPLE;
|
package/dist/export/index.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
+
import "antd/es/dropdown/style";
|
2
|
+
import _Dropdown from "antd/es/dropdown";
|
1
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
2
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
4
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
5
7
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
6
8
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
|
-
import { Dropdown } from 'antd';
|
8
9
|
import React, { useState } from 'react';
|
9
10
|
import { useBem } from "../hooks/useBem";
|
10
11
|
import "./index.scss";
|
@@ -28,7 +29,7 @@ export var Export = function Export(_ref) {
|
|
28
29
|
var menuProps = {
|
29
30
|
items: items
|
30
31
|
};
|
31
|
-
return /*#__PURE__*/React.createElement(
|
32
|
+
return /*#__PURE__*/React.createElement(_Dropdown.Button, {
|
32
33
|
menu: menuProps,
|
33
34
|
icon: open ? /*#__PURE__*/React.createElement(UpIcon, null) : /*#__PURE__*/React.createElement(DownIcon, null),
|
34
35
|
overlayClassName: "".concat(mb),
|
package/dist/flex/index.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import "antd/es/flex/style";
|
2
|
+
import _Flex from "antd/es/flex";
|
2
3
|
import React from 'react';
|
3
4
|
export var Flex = function Flex(props) {
|
4
|
-
return /*#__PURE__*/React.createElement(
|
5
|
+
return /*#__PURE__*/React.createElement(_Flex, props);
|
5
6
|
};
|
@@ -1,10 +1,11 @@
|
|
1
|
+
import "antd/es/float-button/style";
|
2
|
+
import _FloatButton from "antd/es/float-button";
|
1
3
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
2
|
-
import { FloatButton as AntFloatButton } from 'antd';
|
3
4
|
import React from 'react';
|
4
5
|
var FloatButtonComponent = function FloatButtonComponent(_ref) {
|
5
6
|
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
6
|
-
return /*#__PURE__*/React.createElement(
|
7
|
+
return /*#__PURE__*/React.createElement(_FloatButton, rest);
|
7
8
|
};
|
8
9
|
export var FloatButton = FloatButtonComponent;
|
9
|
-
FloatButton.Group =
|
10
|
-
FloatButton.BackTop =
|
10
|
+
FloatButton.Group = _FloatButton.Group;
|
11
|
+
FloatButton.BackTop = _FloatButton.BackTop;
|
package/dist/form/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/form/style";
|
2
|
+
import _Form from "antd/es/form";
|
3
|
+
export var Form = _Form;
|
package/dist/grid/index.js
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
import
|
1
|
+
import "antd/es/col/style";
|
2
|
+
import _Col from "antd/es/col";
|
3
|
+
import "antd/es/row/style";
|
4
|
+
import _Row from "antd/es/row";
|
2
5
|
import React from 'react';
|
3
6
|
export var Row = function Row(props) {
|
4
|
-
return /*#__PURE__*/React.createElement(
|
7
|
+
return /*#__PURE__*/React.createElement(_Row, props);
|
5
8
|
};
|
6
9
|
export var Col = function Col(props) {
|
7
|
-
return /*#__PURE__*/React.createElement(
|
10
|
+
return /*#__PURE__*/React.createElement(_Col, props);
|
8
11
|
};
|
package/dist/image/index.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import "antd/es/image/style";
|
2
|
+
import _Image from "antd/es/image";
|
1
3
|
var _excluded = ["width", "height"];
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
@@ -8,7 +10,6 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
8
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
11
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
12
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
|
-
import { Image as AntImage } from 'antd';
|
12
13
|
import React, { useEffect, useMemo, useState } from 'react';
|
13
14
|
import defaultImg from "./assets/default.png";
|
14
15
|
import errorImg from "./assets/error.png";
|
@@ -81,7 +82,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
81
82
|
height: imgHeight
|
82
83
|
},
|
83
84
|
className: preview ? '' : "".concat(mb.b('content'))
|
84
|
-
}, /*#__PURE__*/React.createElement(
|
85
|
+
}, /*#__PURE__*/React.createElement(_Image, _extends({
|
85
86
|
className: "".concat(mb.b('img'))
|
86
87
|
}, props, {
|
87
88
|
width: passSize ? imgWidth : undefined,
|
@@ -92,4 +93,4 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
92
93
|
})));
|
93
94
|
};
|
94
95
|
export var Image = ImageComponent;
|
95
|
-
Image.PreviewGroup =
|
96
|
+
Image.PreviewGroup = _Image.PreviewGroup;
|
package/dist/input/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import "antd/es/input/style";
|
2
|
+
import _Input from "antd/es/input";
|
1
3
|
var _excluded = ["className"];
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
5
|
-
import { Input as AntInput } from 'antd';
|
6
7
|
import React, { forwardRef } from 'react';
|
7
8
|
import { useBem } from "../hooks/useBem";
|
8
9
|
import "./index.scss";
|
@@ -10,15 +11,15 @@ var InternalInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
11
|
var className = _ref.className,
|
11
12
|
rest = _objectWithoutProperties(_ref, _excluded);
|
12
13
|
var mb = useBem('input');
|
13
|
-
return /*#__PURE__*/React.createElement(
|
14
|
+
return /*#__PURE__*/React.createElement(_Input, _extends({
|
14
15
|
className: "".concat(mb, " ").concat(className !== null && className !== void 0 ? className : '')
|
15
16
|
}, rest, {
|
16
17
|
ref: ref
|
17
18
|
}));
|
18
19
|
});
|
19
20
|
export var Input = InternalInput;
|
20
|
-
Input.Search =
|
21
|
-
Input.Group =
|
22
|
-
Input.TextArea =
|
23
|
-
Input.Password =
|
24
|
-
Input.OTP =
|
21
|
+
Input.Search = _Input.Search;
|
22
|
+
Input.Group = _Input.Group;
|
23
|
+
Input.TextArea = _Input.TextArea;
|
24
|
+
Input.Password = _Input.Password;
|
25
|
+
Input.OTP = _Input.OTP;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/input-number/style";
|
2
|
+
import _InputNumber from "antd/es/input-number";
|
3
|
+
export var InputNumber = _InputNumber;
|
package/dist/layout/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/layout/style";
|
2
|
+
import _Layout from "antd/es/layout";
|
3
|
+
export var Layout = _Layout;
|
package/dist/list/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/list/style";
|
2
|
+
import _List from "antd/es/list";
|
3
|
+
export var List = _List;
|
package/dist/mentions/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/mentions/style";
|
2
|
+
import _Mentions from "antd/es/mentions";
|
3
|
+
export var Mentions = _Mentions;
|
package/dist/menu/index.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
+
import "antd/es/menu/style";
|
2
|
+
import _Menu from "antd/es/menu";
|
1
3
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
2
|
-
import { Menu as AntMenu } from 'antd';
|
3
4
|
import React from 'react';
|
4
5
|
var MenuComponent = function MenuComponent(_ref) {
|
5
6
|
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
6
|
-
return /*#__PURE__*/React.createElement(
|
7
|
+
return /*#__PURE__*/React.createElement(_Menu, rest);
|
7
8
|
};
|
8
9
|
export var Menu = MenuComponent;
|
9
|
-
Menu.Item =
|
10
|
-
Menu.Divider =
|
11
|
-
Menu.ItemGroup =
|
12
|
-
Menu.SubMenu =
|
10
|
+
Menu.Item = _Menu.Item;
|
11
|
+
Menu.Divider = _Menu.Divider;
|
12
|
+
Menu.ItemGroup = _Menu.ItemGroup;
|
13
|
+
Menu.SubMenu = _Menu.SubMenu;
|
package/dist/message/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/message/style";
|
2
|
+
import _message from "antd/es/message";
|
3
|
+
export var message = _message;
|
package/dist/modal/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Modal as AntModal, ModalProps } from 'antd';
|
2
|
-
import { ModalStaticFunctions } from 'antd/es/modal/confirm';
|
2
|
+
import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
|
3
3
|
import React from 'react';
|
4
4
|
import './index.scss';
|
5
5
|
export type { ModalFuncProps, ModalLocale } from 'antd/es/modal';
|
package/dist/modal/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import "antd/es/modal/style";
|
2
|
+
import _Modal from "antd/es/modal";
|
1
3
|
var _excluded = ["className", "children", "title"];
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
5
|
-
import { Modal as AntModal } from 'antd';
|
6
7
|
import React, { useEffect } from 'react';
|
7
8
|
import { HeaderIcon } from "./components/header-icon";
|
8
9
|
import { useBem } from "../hooks/useBem";
|
@@ -54,12 +55,12 @@ var ModalComponent = function ModalComponent(_ref) {
|
|
54
55
|
var tcb = mb.b('title').b('content');
|
55
56
|
useEffect(function () {
|
56
57
|
var svg = createColorDefs(mb);
|
57
|
-
console.log(
|
58
|
+
console.log('create color defs');
|
58
59
|
if (svg) {
|
59
60
|
document.body.appendChild(svg);
|
60
61
|
}
|
61
62
|
}, [mb]);
|
62
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
63
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Modal, _extends({}, rest, {
|
63
64
|
className: "".concat(mb, " ").concat(className !== null && className !== void 0 ? className : ''),
|
64
65
|
title: /*#__PURE__*/React.createElement("div", {
|
65
66
|
className: "".concat(tcb)
|
@@ -71,13 +72,13 @@ var ModalComponent = function ModalComponent(_ref) {
|
|
71
72
|
}), children));
|
72
73
|
};
|
73
74
|
export var Modal = ModalComponent;
|
74
|
-
Modal.useModal =
|
75
|
-
Modal.info =
|
76
|
-
Modal.success =
|
77
|
-
Modal.error =
|
78
|
-
Modal.warning =
|
79
|
-
Modal.warn =
|
80
|
-
Modal.confirm =
|
81
|
-
Modal.destroyAll =
|
82
|
-
Modal.config =
|
83
|
-
Modal._InternalPanelDoNotUseOrYouWillBeFired =
|
75
|
+
Modal.useModal = _Modal.useModal;
|
76
|
+
Modal.info = _Modal.info;
|
77
|
+
Modal.success = _Modal.success;
|
78
|
+
Modal.error = _Modal.error;
|
79
|
+
Modal.warning = _Modal.warning;
|
80
|
+
Modal.warn = _Modal.warn;
|
81
|
+
Modal.confirm = _Modal.confirm;
|
82
|
+
Modal.destroyAll = _Modal.destroyAll;
|
83
|
+
Modal.config = _Modal.config;
|
84
|
+
Modal._InternalPanelDoNotUseOrYouWillBeFired = _Modal._InternalPanelDoNotUseOrYouWillBeFired;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/notification/style";
|
2
|
+
import _notification from "antd/es/notification";
|
3
|
+
export var notification = _notification;
|
package/dist/pagination/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
import "antd/es/pagination/style";
|
2
|
+
import _Pagination from "antd/es/pagination";
|
1
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
4
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
3
|
-
import { Pagination as AntPagination } from 'antd';
|
4
5
|
import React from 'react';
|
5
6
|
import { useBem } from "../hooks/useBem";
|
6
7
|
import "./index.scss";
|
@@ -16,7 +17,7 @@ export var Pagination = function Pagination(_ref) {
|
|
16
17
|
default:
|
17
18
|
_className = 'default';
|
18
19
|
}
|
19
|
-
return /*#__PURE__*/React.createElement(
|
20
|
+
return /*#__PURE__*/React.createElement(_Pagination, _extends({
|
20
21
|
className: "".concat((_rest$className = rest.className) !== null && _rest$className !== void 0 ? _rest$className : '', " ").concat(mb.m(_className))
|
21
22
|
}, rest));
|
22
23
|
};
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/popconfirm/style";
|
2
|
+
import _Popconfirm from "antd/es/popconfirm";
|
3
|
+
export var Popconfirm = _Popconfirm;
|
package/dist/popover/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/popover/style";
|
2
|
+
import _Popover from "antd/es/popover";
|
3
|
+
export var Popover = _Popover;
|
package/dist/progress/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/progress/style";
|
2
|
+
import _Progress from "antd/es/progress";
|
3
|
+
export var Progress = _Progress;
|
package/dist/qrcode/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/qr-code/style";
|
2
|
+
import _QRCode from "antd/es/qr-code";
|
3
|
+
export var QRCode = _QRCode;
|
package/dist/radio/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
1
|
import { Radio as AntRadio } from 'antd';
|
2
2
|
export type { RadioChangeEvent, RadioChangeEventTarget, RadioGroupButtonStyle, RadioGroupContextProps, RadioGroupOptionType, RadioGroupProps, RadioProps, RadioRef, } from 'antd/es/radio';
|
3
|
-
export { Button, Group } from 'antd/es/radio';
|
4
3
|
export declare const Radio: typeof AntRadio;
|
package/dist/radio/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export var Radio =
|
1
|
+
import "antd/es/radio/style";
|
2
|
+
import _Radio from "antd/es/radio";
|
3
|
+
export var Radio = _Radio;
|
package/dist/rate/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/rate/style";
|
2
|
+
import _Rate from "antd/es/rate";
|
3
|
+
export var Rate = _Rate;
|
package/dist/result/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/result/style";
|
2
|
+
import _Result from "antd/es/result";
|
3
|
+
export var Result = _Result;
|
package/dist/segmented/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/segmented/style";
|
2
|
+
import _Segmented from "antd/es/segmented";
|
3
|
+
export var Segmented = _Segmented;
|
package/dist/select/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/select/style";
|
2
|
+
import _Select from "antd/es/select";
|
3
|
+
export var Select = _Select;
|
package/dist/skeleton/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/skeleton/style";
|
2
|
+
import _Skeleton from "antd/es/skeleton";
|
3
|
+
export var Skeleton = _Skeleton;
|
package/dist/slider/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/slider/style";
|
2
|
+
import _Slider from "antd/es/slider";
|
3
|
+
export var Slider = _Slider;
|
package/dist/space/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/space/style";
|
2
|
+
import _Space from "antd/es/space";
|
3
|
+
export var Space = _Space;
|
package/dist/spin/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/spin/style";
|
2
|
+
import _Spin from "antd/es/spin";
|
3
|
+
export var Spin = _Spin;
|
package/dist/splitter/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/splitter/style";
|
2
|
+
import _Splitter from "antd/es/splitter";
|
3
|
+
export var Splitter = _Splitter;
|
package/dist/statistic/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/statistic/style";
|
2
|
+
import _Statistic from "antd/es/statistic";
|
3
|
+
export var Statistic = _Statistic;
|
package/dist/steps/index.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import "antd/es/steps/style";
|
2
|
+
import _Steps from "antd/es/steps";
|
1
3
|
var _excluded = ["className"];
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
5
|
-
import { Steps as AntSteps } from 'antd';
|
6
7
|
import React from 'react';
|
7
8
|
import { useBem } from "../hooks/useBem";
|
8
9
|
import "./index.scss";
|
@@ -10,9 +11,9 @@ var StepsComponent = function StepsComponent(_ref) {
|
|
10
11
|
var className = _ref.className,
|
11
12
|
props = _objectWithoutProperties(_ref, _excluded);
|
12
13
|
var mb = useBem('steps');
|
13
|
-
return /*#__PURE__*/React.createElement(
|
14
|
+
return /*#__PURE__*/React.createElement(_Steps, _extends({
|
14
15
|
className: "".concat(mb.b('content'), " ").concat(className)
|
15
16
|
}, props));
|
16
17
|
};
|
17
18
|
export var Steps = StepsComponent;
|
18
|
-
Steps.Step =
|
19
|
+
Steps.Step = _Steps.Step;
|
package/dist/switch/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/switch/style";
|
2
|
+
import _Switch from "antd/es/switch";
|
3
|
+
export var Switch = _Switch;
|
package/dist/table/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { TableProps as AntTableProps } from 'antd';
|
2
2
|
import { Table as AntTable } from 'antd';
|
3
|
-
import { AnyObject } from 'antd/es/_util/type';
|
4
|
-
import { ColumnType as AntColumnType } from 'antd/es/table';
|
3
|
+
import type { AnyObject } from 'antd/es/_util/type';
|
4
|
+
import type { ColumnType as AntColumnType } from 'antd/es/table';
|
5
5
|
import React from 'react';
|
6
6
|
import './index.scss';
|
7
7
|
type AntTableType = typeof AntTable;
|
package/dist/table/index.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import "antd/es/table/style";
|
2
|
+
import _Table from "antd/es/table";
|
1
3
|
var _excluded = ["type", "showSetting", "columns", "components", "persistKeys", "headerBgColor", "headerTextColor"];
|
2
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -14,14 +16,10 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
14
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
15
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
16
18
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
17
|
-
import { Table as AntTable } from 'antd';
|
18
19
|
import React, { forwardRef, useEffect, useMemo, useState } from 'react';
|
19
20
|
import { PrimaryHeaderRow } from "./components/primary-header-row";
|
20
21
|
import { arrayMove } from "../utils/utils";
|
21
22
|
import { PrimaryTBodyRow } from "./components/primary-tbody-row";
|
22
|
-
|
23
|
-
// import { RefTable } from 'antd/es/table/interface';
|
24
|
-
|
25
23
|
import "./index.scss";
|
26
24
|
export var TableRowContext = /*#__PURE__*/React.createContext({});
|
27
25
|
var InternalTable = function InternalTable(_ref, ref) {
|
@@ -153,7 +151,7 @@ var InternalTable = function InternalTable(_ref, ref) {
|
|
153
151
|
headerBgColor: headerBgColor,
|
154
152
|
headerTextColor: headerTextColor
|
155
153
|
}
|
156
|
-
}, /*#__PURE__*/React.createElement(
|
154
|
+
}, /*#__PURE__*/React.createElement(_Table, _extends({}, rest, {
|
157
155
|
ref: ref,
|
158
156
|
columns: filterColumns(innerColumns, keys),
|
159
157
|
components: _components
|
@@ -161,11 +159,11 @@ var InternalTable = function InternalTable(_ref, ref) {
|
|
161
159
|
};
|
162
160
|
var Table = /*#__PURE__*/forwardRef(InternalTable);
|
163
161
|
Table.displayName = 'Table';
|
164
|
-
Table.Column =
|
165
|
-
Table.ColumnGroup =
|
166
|
-
Table.EXPAND_COLUMN =
|
167
|
-
Table.SELECTION_ALL =
|
168
|
-
Table.SELECTION_COLUMN =
|
169
|
-
Table.SELECTION_INVERT =
|
170
|
-
Table.Summary =
|
162
|
+
Table.Column = _Table.Column;
|
163
|
+
Table.ColumnGroup = _Table.ColumnGroup;
|
164
|
+
Table.EXPAND_COLUMN = _Table.EXPAND_COLUMN;
|
165
|
+
Table.SELECTION_ALL = _Table.SELECTION_ALL;
|
166
|
+
Table.SELECTION_COLUMN = _Table.SELECTION_COLUMN;
|
167
|
+
Table.SELECTION_INVERT = _Table.SELECTION_INVERT;
|
168
|
+
Table.Summary = _Table.Summary;
|
171
169
|
export { Table };
|
package/dist/tabs/index.js
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
import "antd/es/tabs/style";
|
2
|
+
import _Tabs from "antd/es/tabs";
|
3
|
+
import "antd/es/radio/style";
|
4
|
+
import _Radio from "antd/es/radio";
|
1
5
|
var _excluded = ["size", "capsule", "className", "items", "onChange", "activeKey", "destroyInactiveTabPane", "isTabMargin"];
|
2
6
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
@@ -8,7 +12,6 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
8
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
|
-
import { Tabs as AntTabs, Radio } from 'antd';
|
12
15
|
import React, { useEffect, useState } from 'react';
|
13
16
|
import { useBem } from "../hooks/useBem";
|
14
17
|
import "./index.scss";
|
@@ -71,7 +74,7 @@ export var TabsComponent = function TabsComponent(_ref) {
|
|
71
74
|
style: {
|
72
75
|
paddingBottom: isTabMargin ? 16 : 0
|
73
76
|
}
|
74
|
-
}, /*#__PURE__*/React.createElement(
|
77
|
+
}, /*#__PURE__*/React.createElement(_Radio.Group, {
|
75
78
|
value: key,
|
76
79
|
onChange: function onChange(e) {
|
77
80
|
setKey(e.target.value);
|
@@ -81,7 +84,7 @@ export var TabsComponent = function TabsComponent(_ref) {
|
|
81
84
|
_onChange === null || _onChange === void 0 || _onChange(e.target.value);
|
82
85
|
}
|
83
86
|
}, items === null || items === void 0 ? void 0 : items.map(function (item) {
|
84
|
-
return /*#__PURE__*/React.createElement(
|
87
|
+
return /*#__PURE__*/React.createElement(_Radio.Button, {
|
85
88
|
key: item.key,
|
86
89
|
value: item.key
|
87
90
|
}, item.label);
|
@@ -98,7 +101,7 @@ export var TabsComponent = function TabsComponent(_ref) {
|
|
98
101
|
display: key === item.key ? 'block' : 'none'
|
99
102
|
}
|
100
103
|
}, item.children);
|
101
|
-
}))) : /*#__PURE__*/React.createElement(
|
104
|
+
}))) : /*#__PURE__*/React.createElement(_Tabs, _extends({
|
102
105
|
activeKey: key,
|
103
106
|
size: size,
|
104
107
|
items: items,
|
@@ -111,4 +114,4 @@ export var TabsComponent = function TabsComponent(_ref) {
|
|
111
114
|
}, rest)));
|
112
115
|
};
|
113
116
|
export var Tabs = TabsComponent;
|
114
|
-
Tabs.TabPane =
|
117
|
+
Tabs.TabPane = _Tabs.TabPane;
|
package/dist/tag/index.js
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
+
import "antd/es/tag/style";
|
2
|
+
import _Tag from "antd/es/tag";
|
1
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
4
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
3
|
-
import { Tag as AntTag } from 'antd';
|
4
5
|
import React from 'react';
|
5
6
|
import { useBem } from "../hooks/useBem";
|
6
7
|
import "./index.scss";
|
7
8
|
export var TagComponent = function TagComponent(_ref) {
|
8
9
|
var props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
9
10
|
var mb = useBem('tag');
|
10
|
-
return /*#__PURE__*/React.createElement(
|
11
|
+
return /*#__PURE__*/React.createElement(_Tag, _extends({
|
11
12
|
className: "".concat(mb.e('text'))
|
12
13
|
}, props));
|
13
14
|
};
|
14
15
|
export var Tag = TagComponent;
|
15
|
-
Tag.CheckableTag =
|
16
|
+
Tag.CheckableTag = _Tag.CheckableTag;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/time-picker/style";
|
2
|
+
import _TimePicker from "antd/es/time-picker";
|
3
|
+
export var TimePicker = _TimePicker;
|
package/dist/timeline/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/timeline/style";
|
2
|
+
import _Timeline from "antd/es/timeline";
|
3
|
+
export var Timeline = _Timeline;
|
package/dist/tooltip/index.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import "antd/es/tooltip/style";
|
2
|
+
import _Tooltip from "antd/es/tooltip";
|
3
|
+
export var Tooltip = _Tooltip;
|