@trionesdev/antd-taro-react 0.0.2-beta.0 → 0.0.2-beta.10
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/ActionSheet/ActionSheet.d.ts +25 -0
- package/dist/ActionSheet/ActionSheet.js +77 -0
- package/dist/ActionSheet/index.d.ts +1 -1
- package/dist/ActionSheet/index.js +1 -1
- package/dist/ActionSheet/style.scss +52 -0
- package/dist/Button/button.d.ts +2 -1
- package/dist/Button/style.scss +235 -231
- package/dist/Calendar/calendar-grid.js +1 -2
- package/dist/Calendar/calendar-range.js +1 -1
- package/dist/Calendar/calendar.js +5 -5
- package/dist/Calendar/style.scss +85 -85
- package/dist/Calendar/touchable-calendar-grid.js +9 -9
- package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +4 -4
- package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +42 -156
- package/dist/CalendarDatetimePicker/style.scss +24 -54
- package/dist/CalendarDatetimePicker/types.d.ts +0 -4
- package/dist/CalendarDatetimePicker/types.js +1 -6
- package/dist/CalendarDatetimePopup/CalendarDatetimePopup.d.ts +10 -0
- package/dist/CalendarDatetimePopup/CalendarDatetimePopup.js +163 -0
- package/dist/CalendarDatetimePopup/index.d.ts +3 -0
- package/dist/CalendarDatetimePopup/index.js +2 -0
- package/dist/CalendarDatetimePopup/style.scss +62 -0
- package/dist/CalendarDatetimePopup/types.d.ts +5 -0
- package/dist/CalendarDatetimePopup/types.js +6 -0
- package/dist/CalendarPopup/CalendarPopup.d.ts +4 -0
- package/dist/{CalendarPicker/calendar-picker.js → CalendarPopup/CalendarPopup.js} +6 -4
- package/dist/CalendarPopup/CalendarRangePopup.d.ts +4 -0
- package/dist/{CalendarPicker/calendar-range-picker.js → CalendarPopup/CalendarRangePopup.js} +5 -4
- package/dist/CalendarPopup/index.d.ts +8 -0
- package/dist/CalendarPopup/index.js +5 -0
- package/dist/CalendarPopup/style.scss +32 -0
- package/dist/{CalendarPicker → CalendarPopup}/types.d.ts +3 -2
- package/dist/CalendarPopup/types.js +1 -0
- package/dist/CascaderPicker/CascaderPicker.d.ts +25 -0
- package/dist/CascaderPicker/CascaderPicker.js +78 -0
- package/dist/CascaderPicker/index.d.ts +1 -1
- package/dist/CascaderPicker/index.js +1 -1
- package/dist/CascaderPicker/style.scss +24 -0
- package/dist/CascaderPopup/cascader-popup.d.ts +27 -0
- package/dist/CascaderPopup/cascader-popup.js +90 -0
- package/dist/CascaderPopup/index.d.ts +3 -0
- package/dist/CascaderPopup/index.js +2 -0
- package/dist/CascaderPopup/style.scss +45 -0
- package/dist/DatePicker/DatePicker.d.ts +15 -0
- package/dist/DatePicker/DatePicker.js +85 -0
- package/dist/DatePicker/DatePickerPopup.d.ts +18 -0
- package/dist/DatePicker/DatePickerPopup.js +329 -0
- package/dist/DatePicker/index.d.ts +3 -0
- package/dist/DatePicker/index.js +3 -0
- package/dist/DatePicker/style.scss +64 -0
- package/dist/DatePicker/types.d.ts +1 -0
- package/dist/Form/FormItem/form-item-input.d.ts +15 -0
- package/dist/Form/FormItem/form-item-input.js +39 -0
- package/dist/Form/FormItem/form-item-label.d.ts +13 -0
- package/dist/Form/FormItem/form-item-label.js +35 -0
- package/dist/Form/FormItem/form-item.d.ts +22 -0
- package/dist/Form/FormItem/form-item.js +73 -0
- package/dist/Form/FormItem/index.d.ts +5 -0
- package/dist/Form/FormItem/index.js +3 -0
- package/dist/Form/index.d.ts +8 -1
- package/dist/Form/index.js +5 -1
- package/dist/Form/style.scss +78 -0
- package/dist/ImagesPreview/ImagesPreview.js +4 -3
- package/dist/ImagesPreview/style.scss +34 -34
- package/dist/ImagesWall/ImagesWall.js +4 -4
- package/dist/ImagesWall/style.scss +70 -70
- package/dist/Input/index.d.ts +17 -2
- package/dist/Input/index.js +13 -1
- package/dist/Input/index.scss +267 -0
- package/dist/Input/input-affix-wrapper.d.ts +13 -0
- package/dist/Input/input-affix-wrapper.js +37 -0
- package/dist/Input/input-digit.d.ts +7 -0
- package/dist/Input/input-digit.js +53 -0
- package/dist/Input/input-number.d.ts +7 -0
- package/dist/Input/input-number.js +50 -0
- package/dist/Input/input-opt.d.ts +16 -0
- package/dist/Input/input-opt.js +87 -0
- package/dist/Input/input-password.d.ts +8 -0
- package/dist/Input/input-password.js +49 -0
- package/dist/Input/input.d.ts +3 -0
- package/dist/Input/input.js +7 -0
- package/dist/Input/taro-input.d.ts +8 -0
- package/dist/Input/taro-input.js +54 -0
- package/dist/Input/textarea.d.ts +15 -0
- package/dist/Input/textarea.js +52 -0
- package/dist/Input/types.d.ts +19 -0
- package/dist/Input/types.js +2 -0
- package/dist/Overlay/Overlay.d.ts +17 -0
- package/dist/Overlay/Overlay.js +100 -0
- package/dist/Overlay/index.d.ts +4 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Overlay/style.scss +20 -0
- package/dist/Picker/Picker.d.ts +19 -0
- package/dist/Picker/Picker.js +75 -0
- package/dist/Picker/index.d.ts +1 -1
- package/dist/Picker/index.js +1 -1
- package/dist/Picker/style.scss +41 -0
- package/dist/PickerView/PickerView.d.ts +4 -0
- package/dist/PickerView/PickerView.js +71 -0
- package/dist/PickerView/index.d.ts +2 -2
- package/dist/PickerView/index.js +1 -1
- package/dist/PickerView/style.scss +13 -0
- package/dist/PickerView/types.d.ts +15 -0
- package/dist/PickerView/types.js +1 -0
- package/dist/Popup/Popup.d.ts +48 -0
- package/dist/Popup/Popup.js +135 -0
- package/dist/Popup/index.d.ts +2 -1
- package/dist/Popup/index.js +2 -1
- package/dist/Popup/style.scss +124 -0
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.js +1 -1
- package/dist/SideBar/side-bar.js +9 -8
- package/dist/SideBar/style.scss +85 -85
- package/dist/Toast/Toast.d.ts +18 -0
- package/dist/Toast/Toast.js +112 -0
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast/style.scss +63 -0
- package/dist/VerificationCodeInput/index.d.ts +2 -2
- package/dist/VerificationCodeInput/index.js +1 -1
- package/dist/VerificationCodeInput/style.scss +20 -0
- package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
- package/dist/VerificationCodeInput/verification-code-input.js +99 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +5 -2
- package/dist/style/variable.scss +20 -0
- package/dist/types.d.ts +0 -1
- package/package.json +26 -26
- package/readme.md +23 -23
- package/dist/CalendarPicker/calendar-picker.d.ts +0 -4
- package/dist/CalendarPicker/calendar-range-picker.d.ts +0 -4
- package/dist/CalendarPicker/index.d.ts +0 -9
- package/dist/CalendarPicker/index.js +0 -5
- package/dist/CalendarPicker/style.scss +0 -31
- package/dist/Mask/index.d.ts +0 -3
- package/dist/Mask/index.js +0 -2
- package/dist/Progress/Progress.d.ts +0 -38
- package/dist/Progress/Progress.js +0 -53
- package/dist/Progress/ProgressCircle.d.ts +0 -16
- package/dist/Progress/ProgressCircle.js +0 -147
- package/dist/Progress/ProgressLine.d.ts +0 -15
- package/dist/Progress/ProgressLine.js +0 -87
- package/dist/Progress/style.scss +0 -33
- package/dist/Progress/types.d.ts +0 -4
- package/dist/Progress/types.js +0 -2
- /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.d.ts +0 -0
- /package/dist/{CalendarDatetimePicker → CalendarDatetimePopup}/DateTimeSwitch.js +0 -0
- /package/dist/{CalendarPicker → DatePicker}/types.js +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import "./style.scss";
|
|
3
|
+
type ActionSheetActionItemType = {
|
|
4
|
+
key?: any;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export type ActionSheetProps = {
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
afterOpenChange?: (open: boolean) => void;
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
actions?: ActionSheetActionItemType[];
|
|
15
|
+
cancel?: React.ReactNode | false;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* @description 点击操作项后是否关闭
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
closeAfterClickAction?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare const ActionSheet: FC<ActionSheetProps>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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
|
+
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
|
+
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
|
+
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
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React from "react";
|
|
8
|
+
import Popup from "../Popup";
|
|
9
|
+
import classNames from "classnames";
|
|
10
|
+
import "./style.scss";
|
|
11
|
+
var cls = 'triones-antm-action-sheet';
|
|
12
|
+
export var ActionSheet = function ActionSheet(_ref) {
|
|
13
|
+
var className = _ref.className,
|
|
14
|
+
style = _ref.style,
|
|
15
|
+
open = _ref.open,
|
|
16
|
+
afterOpenChange = _ref.afterOpenChange,
|
|
17
|
+
title = _ref.title,
|
|
18
|
+
actions = _ref.actions,
|
|
19
|
+
cancel = _ref.cancel,
|
|
20
|
+
onCancel = _ref.onCancel,
|
|
21
|
+
onClose = _ref.onClose,
|
|
22
|
+
_ref$closeAfterClickA = _ref.closeAfterClickAction,
|
|
23
|
+
closeAfterClickAction = _ref$closeAfterClickA === void 0 ? true : _ref$closeAfterClickA;
|
|
24
|
+
var _React$useState = React.useState(open || false),
|
|
25
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
26
|
+
innerOpen = _React$useState2[0],
|
|
27
|
+
setInnerOpen = _React$useState2[1];
|
|
28
|
+
var handleClose = function handleClose() {
|
|
29
|
+
setInnerOpen(false);
|
|
30
|
+
onClose === null || onClose === void 0 || onClose();
|
|
31
|
+
};
|
|
32
|
+
React.useEffect(function () {
|
|
33
|
+
if (open === undefined) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (open === innerOpen) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
setInnerOpen(open);
|
|
40
|
+
}, [open]);
|
|
41
|
+
React.useEffect(function () {
|
|
42
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(innerOpen);
|
|
43
|
+
}, [innerOpen]);
|
|
44
|
+
return /*#__PURE__*/React.createElement(Popup, {
|
|
45
|
+
open: open,
|
|
46
|
+
afterClose: function afterClose() {
|
|
47
|
+
setInnerOpen(false);
|
|
48
|
+
}
|
|
49
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: classNames(cls, className),
|
|
51
|
+
style: style
|
|
52
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: classNames("".concat(cls, "-body"))
|
|
54
|
+
}, title && /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: classNames("".concat(cls, "-title"))
|
|
56
|
+
}, title), actions && /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: classNames("".concat(cls, "-actions"))
|
|
58
|
+
}, actions.map(function (action) {
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: "".concat(cls, "-actions-item"),
|
|
61
|
+
key: action.key,
|
|
62
|
+
onClick: function onClick() {
|
|
63
|
+
var _action$onClick;
|
|
64
|
+
(_action$onClick = action.onClick) === null || _action$onClick === void 0 || _action$onClick.call(action);
|
|
65
|
+
if (closeAfterClickAction) {
|
|
66
|
+
handleClose();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, action.children);
|
|
70
|
+
}))), cancel !== false && /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: classNames("".concat(cls, "-cancel")),
|
|
72
|
+
onClick: function onClick() {
|
|
73
|
+
onCancel === null || onCancel === void 0 || onCancel();
|
|
74
|
+
handleClose();
|
|
75
|
+
}
|
|
76
|
+
}, cancel || /*#__PURE__*/React.createElement("div", null, "\u53D6\u6D88"))));
|
|
77
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionSheet } from "
|
|
1
|
+
import { ActionSheet } from "./ActionSheet";
|
|
2
2
|
export default ActionSheet;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$actionSheetCls: 'triones-antm-action-sheet';
|
|
4
|
+
|
|
5
|
+
.#{$actionSheetCls} {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
background-color: variable.$trionesColorFill;
|
|
9
|
+
border-top-left-radius: variable.$trionesBorderRadius;
|
|
10
|
+
border-top-right-radius: variable.$trionesBorderRadius;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
gap: 2Px;
|
|
13
|
+
&-body{
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
&-title{
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
min-height: 48Px;
|
|
21
|
+
background-color: white;
|
|
22
|
+
font-size: 18Px;
|
|
23
|
+
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
24
|
+
}
|
|
25
|
+
&-actions{
|
|
26
|
+
&-item{
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
min-height: 48Px;
|
|
31
|
+
background-color: white;
|
|
32
|
+
cursor: default;
|
|
33
|
+
position: relative;
|
|
34
|
+
font-size: 18Px;
|
|
35
|
+
&:hover{
|
|
36
|
+
opacity: 0.8;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
&-cancel{
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
min-height: 48Px;
|
|
45
|
+
font-size: 18Px;
|
|
46
|
+
background-color: white;
|
|
47
|
+
cursor: default;
|
|
48
|
+
&:hover{
|
|
49
|
+
opacity: 0.8;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
package/dist/Button/button.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ButtonProps as TaroButtonProps } from '@tarojs/components';
|
|
|
2
2
|
import React, { FC, PropsWithChildren } from 'react';
|
|
3
3
|
import './style.scss';
|
|
4
4
|
import { CommonEventFunction } from '@tarojs/components/types/common';
|
|
5
|
+
import { SizeType } from "@trionesdev/antd-mobile-base-react";
|
|
5
6
|
export type ButtonProps = {
|
|
6
7
|
/**
|
|
7
8
|
* @description block 按钮宽高自适应
|
|
@@ -45,7 +46,7 @@ export type ButtonProps = {
|
|
|
45
46
|
* @description 按钮样式
|
|
46
47
|
*/
|
|
47
48
|
variant?: 'outlined' | 'dashed' | 'solid' | 'filled' | 'text' | 'link';
|
|
48
|
-
size?:
|
|
49
|
+
size?: SizeType;
|
|
49
50
|
/**
|
|
50
51
|
* @description 点击事件
|
|
51
52
|
*/
|
package/dist/Button/style.scss
CHANGED
|
@@ -1,231 +1,235 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
$trionesButtonPendingInlineSm: 7Px;
|
|
4
|
-
$trionesButtonHeightSm: 24Px;
|
|
5
|
-
|
|
6
|
-
$trionesButtonPendingInline: 15Px;
|
|
7
|
-
$trionesButtonHeight: 32Px;
|
|
8
|
-
|
|
9
|
-
$trionesButtonContentFontSizeLg:
|
|
10
|
-
$trionesButtonPendingInlineLg: 15Px;
|
|
11
|
-
$trionesButtonHeightLg: 40Px;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
color:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
color:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
color: rgba(0, 0, 0, 0.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
color:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
color: $
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
color:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
color: $
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
color: $
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
color:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
color: $
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
background-color:
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&-
|
|
203
|
-
background-color:
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesButtonPendingInlineSm: 7Px;
|
|
4
|
+
$trionesButtonHeightSm: 24Px;
|
|
5
|
+
|
|
6
|
+
$trionesButtonPendingInline: 15Px;
|
|
7
|
+
$trionesButtonHeight: 32Px;
|
|
8
|
+
|
|
9
|
+
$trionesButtonContentFontSizeLg: variable.$trionesFontSizeLg;
|
|
10
|
+
$trionesButtonPendingInlineLg: 15Px;
|
|
11
|
+
$trionesButtonHeightLg: 40Px;
|
|
12
|
+
|
|
13
|
+
$colorPrimary: variable.$trionesColorPrimary;
|
|
14
|
+
$colorError: variable.$trionesColorErrorText;
|
|
15
|
+
$colorWhite: variable.$trionesColorBgBase;
|
|
16
|
+
|
|
17
|
+
button::after {
|
|
18
|
+
content: none;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$buttonCls: 'triones-antm-button';
|
|
23
|
+
.#{$buttonCls} {
|
|
24
|
+
width: auto;
|
|
25
|
+
position: relative;
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
justify-self: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
height: auto;
|
|
32
|
+
line-height: normal;
|
|
33
|
+
border-radius: 4Px;
|
|
34
|
+
border: 1Px none;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
font-size: 14Px;
|
|
37
|
+
z-index: 2;
|
|
38
|
+
margin-top: 0;
|
|
39
|
+
|
|
40
|
+
&:active {
|
|
41
|
+
filter: brightness(92%);
|
|
42
|
+
}
|
|
43
|
+
&::after{
|
|
44
|
+
content: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[disabled=true] {
|
|
48
|
+
opacity: 0.4;
|
|
49
|
+
|
|
50
|
+
&:active {
|
|
51
|
+
filter: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&:not([disabled]):active{}
|
|
55
|
+
|
|
56
|
+
&-color {
|
|
57
|
+
&-default {
|
|
58
|
+
background-color: $colorWhite;
|
|
59
|
+
|
|
60
|
+
&.#{$buttonCls} {
|
|
61
|
+
&-variant {
|
|
62
|
+
&-solid {
|
|
63
|
+
color: $colorWhite;
|
|
64
|
+
background-color: rgba(0, 0, 0, 0.75);
|
|
65
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.75);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-outlined {
|
|
69
|
+
color: rgba(0, 0, 0, 0.75);
|
|
70
|
+
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
71
|
+
background-color: $colorWhite;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-dashed {
|
|
75
|
+
color: rgba(0, 0, 0, 0.75);
|
|
76
|
+
border: 1px dashed rgba(0, 0, 0, 0.75);
|
|
77
|
+
background-color: $colorWhite;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-filled {
|
|
81
|
+
color: rgba(0, 0, 0, 0.75);
|
|
82
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-text {
|
|
86
|
+
color: rgba(0, 0, 0, 0.75);
|
|
87
|
+
background-color: $colorWhite;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-link {
|
|
91
|
+
color: rgba(0, 0, 0, 0.75);
|
|
92
|
+
background-color: $colorWhite;
|
|
93
|
+
|
|
94
|
+
&:active {
|
|
95
|
+
filter: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-primary {
|
|
103
|
+
&.#{$buttonCls} {
|
|
104
|
+
&-variant {
|
|
105
|
+
&-solid {
|
|
106
|
+
color: $colorWhite;
|
|
107
|
+
background-color: $colorPrimary;
|
|
108
|
+
box-shadow: inset 0 0 0 1px $colorPrimary;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-outlined {
|
|
112
|
+
color: $colorPrimary;
|
|
113
|
+
background-color: white;
|
|
114
|
+
border: 1px solid $colorPrimary;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-dashed {
|
|
118
|
+
color: $colorPrimary;
|
|
119
|
+
border: 1px dashed $colorPrimary;
|
|
120
|
+
background-color: $colorWhite;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-filled {
|
|
124
|
+
color: $colorPrimary;
|
|
125
|
+
background-color: variable.$trionesColorPrimaryBg;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&-text {
|
|
129
|
+
color: $colorPrimary;
|
|
130
|
+
background-color: $colorWhite;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&-link {
|
|
134
|
+
color: $colorPrimary;
|
|
135
|
+
background-color: $colorWhite;
|
|
136
|
+
|
|
137
|
+
&:active {
|
|
138
|
+
filter: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&-danger {
|
|
146
|
+
&.#{$buttonCls} {
|
|
147
|
+
&-variant {
|
|
148
|
+
&-solid {
|
|
149
|
+
color: $colorWhite;
|
|
150
|
+
background-color:$colorError;
|
|
151
|
+
box-shadow: inset 0 0 0 1px $colorError;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&-outlined {
|
|
155
|
+
color: $colorError;
|
|
156
|
+
background-color: $colorWhite;
|
|
157
|
+
border: 1px solid $colorError;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-dashed {
|
|
161
|
+
color: $colorError;
|
|
162
|
+
border: 1px dashed $colorError;
|
|
163
|
+
background-color: $colorWhite;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&-filled {
|
|
167
|
+
color: $colorError;
|
|
168
|
+
background-color: #ffdfdc;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&-text {
|
|
172
|
+
color: $colorError;
|
|
173
|
+
background-color: $colorWhite;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&-link {
|
|
177
|
+
color: $colorError;
|
|
178
|
+
background-color: $colorWhite;
|
|
179
|
+
|
|
180
|
+
&:active {
|
|
181
|
+
filter: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&-variant {
|
|
190
|
+
&-solid {
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&-outlined {
|
|
194
|
+
background-color: $colorWhite;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&-dashed {
|
|
198
|
+
border: 1px dashed #d9d9d9;
|
|
199
|
+
background-color: $colorWhite;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&-text {
|
|
203
|
+
background-color: $colorWhite;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-link {
|
|
207
|
+
background-color: $colorWhite;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&-block {
|
|
212
|
+
display: flex;
|
|
213
|
+
width: 100%;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&-small {
|
|
217
|
+
font-size: variable.$trionesFontSizeSm;
|
|
218
|
+
padding-inline: $trionesButtonPendingInlineSm;
|
|
219
|
+
height: $trionesButtonHeightSm;
|
|
220
|
+
border-radius: variable.$trionesBorderRadiusSm;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&-middle {
|
|
224
|
+
padding-inline: $trionesButtonPendingInline;
|
|
225
|
+
height: $trionesButtonHeight;
|
|
226
|
+
border-radius: variable.$trionesBorderRadius;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&-large {
|
|
230
|
+
font-size: $trionesButtonContentFontSizeLg;
|
|
231
|
+
padding-inline: $trionesButtonPendingInlineLg;
|
|
232
|
+
height: $trionesButtonHeightLg;
|
|
233
|
+
border-radius: variable.$trionesBorderRadiusLg;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
@@ -13,7 +13,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import { isEmpty } from 'lodash';
|
|
16
|
+
import { isEmpty } from 'lodash-es';
|
|
17
17
|
import React, { forwardRef, memo, useEffect, useMemo, useState } from 'react';
|
|
18
18
|
import "./style.scss";
|
|
19
19
|
var calendarCls = 'triones-antm-calendar';
|
|
@@ -44,7 +44,6 @@ var CalendarCell = /*#__PURE__*/memo(function (_ref) {
|
|
|
44
44
|
if (range) {
|
|
45
45
|
var startDate = value === null || value === void 0 ? void 0 : value[0];
|
|
46
46
|
var endDate = value === null || value === void 0 ? void 0 : value[1];
|
|
47
|
-
console.log('value', value);
|
|
48
47
|
return date.getTime() === (startDate === null || startDate === void 0 ? void 0 : startDate.getTime()) || date.getTime() === (endDate === null || endDate === void 0 ? void 0 : endDate.getTime());
|
|
49
48
|
} else {
|
|
50
49
|
var _value$3;
|