taro-react-uilib 1.4.24-0 → 1.4.24-1
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/components/BankIcon/index.js.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Cell/index.js +1 -1
- package/dist/components/Cell/index.js.map +1 -1
- package/dist/components/Countdown/index.js +1 -1
- package/dist/components/Countdown/index.js.map +1 -1
- package/dist/components/Curtain/index.js +2 -0
- package/dist/components/Curtain/index.js.map +1 -0
- package/dist/components/Image/index.js +1 -1
- package/dist/components/Image/index.js.map +1 -1
- package/dist/components/Loading/index.js +1 -1
- package/dist/components/Loading/index.js.map +1 -1
- package/dist/components/ThemeProvider/index.js +1 -1
- package/dist/components/ThemeProvider/index.js.map +1 -1
- package/dist/components/_virtual/index.js +1 -1
- package/dist/components/_virtual/react-is.development.js +1 -1
- package/dist/components/_virtual/react-is.production.min.js +1 -1
- package/dist/components/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/components/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/components/node_modules/prop-types/index.js +1 -1
- package/dist/components/node_modules/prop-types/index.js.map +1 -1
- package/dist/components/node_modules/react-is/cjs/react-is.development.js +2 -0
- package/dist/components/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/components/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/components/node_modules/react-is/index.js +2 -0
- package/dist/components/node_modules/react-is/index.js.map +1 -0
- package/dist/components/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/components/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/components/src/index.js +1 -1
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/components/badge.scss +2 -1
- package/dist/styles/components/cell.scss +9 -4
- package/dist/styles/components/curtain.scss +105 -0
- package/dist/styles/components/index.scss +1 -0
- package/package.json +5 -1
- package/types/components/BankIcon/index.d.ts +2 -1
- package/types/components/Countdown/index.d.ts +0 -1
- package/types/components/Curtain/index.d.ts +18 -0
- package/types/components/Loading/index.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/CHANGELOG.md +0 -1508
- package/dist/components/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -2
- package/dist/components/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/components/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/components/node_modules/prop-types/node_modules/react-is/index.js +0 -2
- package/dist/components/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/dist/styles/components/font/.DS_Store +0 -0
- package/types/.DS_Store +0 -0
- /package/dist/components/node_modules/{prop-types/node_modules/react-is → react-is}/cjs/react-is.production.min.js +0 -0
|
@@ -51,13 +51,16 @@
|
|
|
51
51
|
background-color: #EEE;
|
|
52
52
|
}
|
|
53
53
|
&-icon {
|
|
54
|
-
display: inline-
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
55
57
|
width: 50px;
|
|
56
58
|
height: 50px;
|
|
57
59
|
margin-right: 15px;
|
|
58
60
|
img {
|
|
59
61
|
max-width: 100%;
|
|
60
62
|
max-height: 100%;
|
|
63
|
+
object-fit: cover;
|
|
61
64
|
}
|
|
62
65
|
image {
|
|
63
66
|
max-width: 100%;
|
|
@@ -105,13 +108,15 @@
|
|
|
105
108
|
&-value {
|
|
106
109
|
display: flex;
|
|
107
110
|
align-items: center;
|
|
108
|
-
// max-width:
|
|
111
|
+
// max-width: 50%;
|
|
109
112
|
&-info {
|
|
110
113
|
display: inline-block;
|
|
111
114
|
max-width: 100%;
|
|
112
115
|
overflow: hidden;
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
&.ellipsis {
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
}
|
|
115
120
|
}
|
|
116
121
|
&-icon {
|
|
117
122
|
display: inline-block;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@import "../../styles/themes/variable.scss";
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "xh-iconfont"; /* Project id 4043926 */
|
|
5
|
+
src:
|
|
6
|
+
url('./font/iconfont.woff2?t=1687140360510') format('woff2'),
|
|
7
|
+
url('./font/iconfont.woff?t=1687140360510') format('woff'),
|
|
8
|
+
url('./font/iconfont.ttf?t=1687140360510') format('truetype');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
#{$xh-prefix}-curtain {
|
|
12
|
+
position: fixed;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
justify-content: space-around;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
z-index: 1000;
|
|
23
|
+
display: none;
|
|
24
|
+
text-align: center;
|
|
25
|
+
touch-action: none;
|
|
26
|
+
&.visible {
|
|
27
|
+
display: flex;
|
|
28
|
+
animation: bounceIn 0.35s forwards cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
29
|
+
}
|
|
30
|
+
&.toggle {
|
|
31
|
+
display: flex;
|
|
32
|
+
animation: bounceOut 0.35s forwards cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
33
|
+
}
|
|
34
|
+
&-content {
|
|
35
|
+
margin-bottom: 42px;
|
|
36
|
+
width: 80%;
|
|
37
|
+
display: flex;
|
|
38
|
+
place-items: center;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
img, image {
|
|
41
|
+
max-width: 100%;
|
|
42
|
+
/* #ifdef h5 */
|
|
43
|
+
height: auto;
|
|
44
|
+
/* #endif */
|
|
45
|
+
display: block;
|
|
46
|
+
object-fit: contain;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&-mask {
|
|
50
|
+
position: fixed;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
right: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
56
|
+
z-index: 999;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-close {
|
|
60
|
+
display: block;
|
|
61
|
+
font-family: 'xh-iconfont';
|
|
62
|
+
-webkit-font-smoothing: antialiased;
|
|
63
|
+
font-size: 30PX;
|
|
64
|
+
color: #FFF;
|
|
65
|
+
&:before {
|
|
66
|
+
content: "\e608";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes bounceIn {
|
|
72
|
+
0% {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
transform: scale3d(0.3, 0.3, 0.3);
|
|
75
|
+
}
|
|
76
|
+
20% {
|
|
77
|
+
transform: scale3d(0.6, 0.6, 0.6);
|
|
78
|
+
}
|
|
79
|
+
50% {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
transform: scale3d(0.8, .8, .8);
|
|
82
|
+
}
|
|
83
|
+
80% {
|
|
84
|
+
transform: scale3d(0.97, 0.97, 0.97);
|
|
85
|
+
}
|
|
86
|
+
to {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
transform: scale3d(1, 1, 1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@keyframes bounceOut {
|
|
93
|
+
|
|
94
|
+
50%,
|
|
95
|
+
55% {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
transform: scale3d(1.1, 1.1, 1.1);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
to {
|
|
101
|
+
opacity: 0;
|
|
102
|
+
-webkit-transform: scale3d(0.3, 0.3, 0.3);
|
|
103
|
+
transform: scale3d(0.3, 0.3, 0.3);
|
|
104
|
+
}
|
|
105
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taro-react-uilib",
|
|
3
|
-
"version": "1.4.24-
|
|
3
|
+
"version": "1.4.24-1",
|
|
4
4
|
"description": "基于taro的跨端组件库",
|
|
5
5
|
"templateInfo": {
|
|
6
6
|
"name": "default",
|
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
"dist",
|
|
18
18
|
"types"
|
|
19
19
|
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": "16"
|
|
22
|
+
},
|
|
20
23
|
"scripts": {
|
|
21
24
|
"build:weapp": "taro build --type weapp",
|
|
22
25
|
"build:h5": "taro build --type h5",
|
|
26
|
+
"release": "taro build --type h5",
|
|
23
27
|
"build:tt": "taro build --type tt",
|
|
24
28
|
"dev:weapp": "npm run build:weapp -- --watch",
|
|
25
29
|
"dev:h5": "npm run build:h5 -- --watch",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type BankIconCode = "102" | "103" | "104" | "105" | "301" | "302" | "303" | "304" | "305" | "306" | "307" | "308" | "309" | "310" | "403";
|
|
3
4
|
export declare type XHListProps = {
|
|
4
|
-
code: string;
|
|
5
|
+
code: BankIconCode | (string & {});
|
|
5
6
|
size?: number;
|
|
6
7
|
} & XHComponentCommonProps;
|
|
7
8
|
declare const XHBankIcon: FC<XHListProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "@/types";
|
|
3
|
+
export declare type XHModalProps = {
|
|
4
|
+
/**
|
|
5
|
+
* 是否显示
|
|
6
|
+
*/
|
|
7
|
+
visible: boolean;
|
|
8
|
+
transparent?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示关闭按钮
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
showClose?: boolean;
|
|
14
|
+
onVisibleChange: (visible: boolean) => void;
|
|
15
|
+
maskClosable?: boolean;
|
|
16
|
+
} & XHComponentCommonProps;
|
|
17
|
+
declare const Modal: React.FC<React.PropsWithChildren<XHModalProps>>;
|
|
18
|
+
export default Modal;
|
package/types/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { default as XHLicensePlateInput } from "./components/LicensePlateInput";
|
|
|
39
39
|
export { default as XHCountdown } from "./components/Countdown";
|
|
40
40
|
export { default as XHCheckboxButton } from "./components/CheckboxButton";
|
|
41
41
|
export { default as XHNotice } from "./components/Notice";
|
|
42
|
+
export { default as XHCurtain } from "./components/Curtain";
|
|
42
43
|
export { default as XHBankCardNumberInput, type BankCardNumberInputRef as Type_BankCardNumberInputRef, } from "./components/BankCardNumberInput";
|
|
43
44
|
export { default as XHIDNumberInput, type IDNumberInputRef as Type_IDNumberInputRef, } from "./components/IDNumberInput";
|
|
44
45
|
export { default as XHEcharts, type EChartsProps as Type_EChartsProps, type EChartOption as Type_EChartOptions, type EChartsInstance as Type_EChartsInstance, type EChartsLoadingOption as Type_EChartsLoadingOption, type EchartsHandle as Type_EchartsHandle, } from "./components/Echarts";
|