@trionesdev/antd-mobile-base-react 0.0.2-beta.15 → 0.0.2-beta.17
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/LICENSE +21 -21
- package/README.md +23 -23
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/avatar.d.ts +2 -2
- package/dist/Avatar/avatar.js +1 -1
- package/dist/Avatar/style.scss +17 -17
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderView/style.scss +22 -22
- package/dist/Cell/CellGroup.js +25 -8
- package/dist/Cell/cell.js +20 -37
- package/dist/Cell/context.d.ts +4 -2
- package/dist/Cell/styles.scss +81 -52
- package/dist/Cell/types.d.ts +6 -4
- package/dist/Checkbox/checkbox-group.js +1 -2
- package/dist/Checkbox/index.scss +165 -165
- package/dist/ConfigProvider/config-provider.d.ts +1 -0
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Descriptions/style.scss +65 -65
- package/dist/Divider/divider.d.ts +1 -1
- package/dist/Divider/divider.js +5 -3
- package/dist/Divider/style.scss +62 -62
- package/dist/Ellipsis/style.scss +13 -13
- package/dist/Empty/style.scss +29 -29
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/ErrorBlock/style.scss +62 -62
- package/dist/Footer/style.scss +55 -55
- package/dist/Form/ErrorList.d.ts +4 -0
- package/dist/Form/ErrorList.js +9 -0
- package/dist/Form/context.d.ts +4 -2
- package/dist/Form/context.js +2 -1
- package/dist/Form/form.d.ts +24 -6
- package/dist/Form/form.js +22 -11
- package/dist/Form/hooks/useForm.js +1 -8
- package/dist/Form/hooks/useFormContext.js +1 -2
- package/dist/Form/index.d.ts +6 -3
- package/dist/Form/index.js +4 -1
- package/dist/Form/styles.scss +11 -0
- package/dist/Form/types.d.ts +2 -1
- package/dist/FormCell/FormCell.d.ts +21 -0
- package/dist/FormCell/FormCell.js +56 -0
- package/dist/FormCell/index.d.ts +4 -0
- package/dist/FormCell/index.js +3 -0
- package/dist/FormCell/styles.scss +103 -0
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/demo/base.js +2 -2
- package/dist/InputNumber/input-number.d.ts +2 -4
- package/dist/InputNumber/input-number.js +46 -28
- package/dist/InputNumber/style.scss +100 -63
- package/dist/Loading/DotLoading.d.ts +8 -0
- package/dist/Loading/DotLoading.js +33 -0
- package/dist/Loading/SpinLoading.js +70 -0
- package/dist/Loading/dot-loading.scss +72 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/index.js +3 -0
- package/dist/{SpinLoading → Loading}/spin-loading.scss +39 -40
- package/dist/NavBar/style.scss +64 -64
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/ProgressCircle.js +5 -2
- package/dist/Progress/ProgressLine.js +2 -2
- package/dist/Progress/style.scss +33 -33
- package/dist/Progress/types.d.ts +2 -2
- package/dist/Radio/style.scss +154 -141
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/SafeArea/style.scss +20 -20
- package/dist/Scaffold/style.scss +17 -17
- package/dist/Segmented/style.scss +75 -75
- package/dist/Skeleton/Skeleton.d.ts +80 -21
- package/dist/Skeleton/Skeleton.js +248 -57
- package/dist/Skeleton/index.d.ts +3 -1
- package/dist/Skeleton/index.js +2 -1
- package/dist/Skeleton/style.scss +215 -48
- package/dist/Space/space.js +12 -9
- package/dist/Space/style.scss +101 -80
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper/stepper.d.ts +14 -0
- package/dist/Stepper/stepper.js +92 -0
- package/dist/Stepper/style.scss +100 -0
- package/dist/Steps/HorizontalSteps.js +5 -2
- package/dist/Steps/VerticalSteps.js +5 -2
- package/dist/Steps/style.scss +153 -153
- package/dist/Steps/types.d.ts +2 -0
- package/dist/Switch/style.scss +127 -128
- package/dist/Switch/switch.d.ts +2 -0
- package/dist/Switch/switch.js +6 -5
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.scss +37 -37
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tag/style.scss +110 -109
- package/dist/Tag/tag.d.ts +1 -1
- package/dist/Tag/tag.js +1 -1
- package/dist/WaterMark/style.scss +17 -17
- package/dist/index.d.ts +11 -4
- package/dist/index.js +5 -2
- package/dist/style/css-variable.scss +6 -6
- package/dist/style/style.scss +52 -52
- package/dist/style/theme-dark.scss +24 -24
- package/dist/style/theme-default.scss +54 -54
- package/dist/style/variable.scss +180 -173
- package/dist/types.d.ts +6 -1
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +4 -7
- package/dist/SpinLoading/index.d.ts +0 -3
- package/dist/SpinLoading/index.js +0 -2
- package/dist/SpinLoading/spin-loading.js +0 -59
- package/dist/Tabs/demo/base.d.ts +0 -3
- package/dist/Tabs/demo/base.js +0 -59
- /package/dist/{SpinLoading/spin-loading.d.ts → Loading/SpinLoading.d.ts} +0 -0
|
@@ -1,63 +1,100 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesInputNumberCls: 'triones-antm-input-number';
|
|
4
|
+
|
|
5
|
+
$inputNumberBg: #F5F5F5;
|
|
6
|
+
$inputSm: 24Px;
|
|
7
|
+
$inputLg: 40Px;
|
|
8
|
+
$inputNumberControlHeight: 28Px;
|
|
9
|
+
|
|
10
|
+
.#{$trionesInputNumberCls} {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
gap: 2Px;
|
|
14
|
+
border-radius: variable.$trionesBorderRadiusXs;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
|
|
17
|
+
&--block {
|
|
18
|
+
display: flex;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
.#{$trionesInputNumberCls}-input {
|
|
22
|
+
flex: 1 1 auto;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-input {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: stretch;
|
|
30
|
+
flex: 0 1 auto;
|
|
31
|
+
min-width: 36Px;
|
|
32
|
+
min-height: $inputNumberControlHeight;
|
|
33
|
+
|
|
34
|
+
input {
|
|
35
|
+
width: 100%;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
height: 100%;
|
|
38
|
+
min-height: $inputNumberControlHeight;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0 8Px;
|
|
42
|
+
border: 0;
|
|
43
|
+
border-radius: variable.$trionesBorderRadiusXs;
|
|
44
|
+
background-color: $inputNumberBg;
|
|
45
|
+
color: variable.$trionesColorText;
|
|
46
|
+
font-size: 14Px;
|
|
47
|
+
line-height: $inputNumberControlHeight;
|
|
48
|
+
text-align: center;
|
|
49
|
+
-moz-appearance: textfield;
|
|
50
|
+
appearance: textfield;
|
|
51
|
+
|
|
52
|
+
&::-webkit-outer-spin-button,
|
|
53
|
+
&::-webkit-inner-spin-button {
|
|
54
|
+
-webkit-appearance: none;
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus {
|
|
59
|
+
outline: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:disabled {
|
|
63
|
+
color: variable.$trionesColorTextDisabled;
|
|
64
|
+
cursor: not-allowed;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-button {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
font-size: 10Px;
|
|
74
|
+
height: $inputNumberControlHeight;
|
|
75
|
+
width: $inputNumberControlHeight;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
background-color: $inputNumberBg;
|
|
79
|
+
border-radius: variable.$trionesBorderRadiusXs;
|
|
80
|
+
|
|
81
|
+
&-sm {
|
|
82
|
+
width: $inputSm;
|
|
83
|
+
height: $inputSm;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-lg {
|
|
87
|
+
width: $inputLg;
|
|
88
|
+
height: $inputLg;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-disabled {
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
color: variable.$trionesColorTextDisabled;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.triones-antm-icon {
|
|
97
|
+
font-size: 10Px !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
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; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import classNames from 'classnames';
|
|
8
|
+
import React, { memo, useMemo } from 'react';
|
|
9
|
+
import "./dot-loading.scss";
|
|
10
|
+
var dotLoadingCls = 'triones-antm-dot-loading';
|
|
11
|
+
export var DotLoading = /*#__PURE__*/memo(function (_ref) {
|
|
12
|
+
var className = _ref.className,
|
|
13
|
+
styleProp = _ref.style,
|
|
14
|
+
_ref$color = _ref.color,
|
|
15
|
+
colorProp = _ref$color === void 0 ? 'default' : _ref$color;
|
|
16
|
+
var colors = ['default', 'primary', 'white'];
|
|
17
|
+
var rootStyle = useMemo(function () {
|
|
18
|
+
var style = _objectSpread({}, styleProp);
|
|
19
|
+
if (!colors.includes(colorProp)) {
|
|
20
|
+
style.color = colorProp;
|
|
21
|
+
}
|
|
22
|
+
return style;
|
|
23
|
+
}, [colorProp]);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: classNames(className, dotLoadingCls, _defineProperty({}, "".concat(dotLoadingCls, "-").concat(colorProp), colors.includes(colorProp))),
|
|
26
|
+
style: rootStyle
|
|
27
|
+
}, [0, 1, 2].map(function (i) {
|
|
28
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
29
|
+
key: i,
|
|
30
|
+
className: classNames("".concat(dotLoadingCls, "-dot"), "".concat(dotLoadingCls, "-dot-").concat(i))
|
|
31
|
+
});
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
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); }
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import Base64 from 'crypto-js/enc-base64';
|
|
7
|
+
import Utf8 from 'crypto-js/enc-utf8';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import "./spin-loading.scss";
|
|
10
|
+
var spinLoadingCls = 'triones-antm-spin-loading';
|
|
11
|
+
export function createSvgStr(props) {
|
|
12
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"width:100%;height:100%\" viewBox=\"0 0 32 32\">\n <circle r=\"15\" cx=\"16\" cy=\"16\"\n stroke-width=\"2\"\n stroke=\"".concat(props.stroke, "\"\n fill=\"transparent\"\n stroke-linecap=\"round\"\n stroke-dasharray=\"").concat(15 * 3.14159265358979 * 2, "\"\n stroke-dashoffset=\"").concat(15 * 3.14159265358979 * 0.5, "\"></circle>\n </svg>");
|
|
13
|
+
}
|
|
14
|
+
export var SpinLoading = function SpinLoading(_ref) {
|
|
15
|
+
var _ref$size = _ref.size,
|
|
16
|
+
size = _ref$size === void 0 ? 'middle' : _ref$size,
|
|
17
|
+
_ref$color = _ref.color,
|
|
18
|
+
colorProp = _ref$color === void 0 ? 'default' : _ref$color;
|
|
19
|
+
var colors = ['default', 'primary', 'white'];
|
|
20
|
+
var computedSize = React.useMemo(function () {
|
|
21
|
+
var resSize = null;
|
|
22
|
+
if (size === 'small') {
|
|
23
|
+
resSize = '24Px';
|
|
24
|
+
} else if (size === 'middle') {
|
|
25
|
+
resSize = '32Px';
|
|
26
|
+
} else if (size === 'large') {
|
|
27
|
+
resSize = '48Px';
|
|
28
|
+
} else {
|
|
29
|
+
resSize = size;
|
|
30
|
+
}
|
|
31
|
+
if (typeof resSize === 'number') {
|
|
32
|
+
return "".concat(resSize, "Px");
|
|
33
|
+
} else {
|
|
34
|
+
return resSize;
|
|
35
|
+
}
|
|
36
|
+
}, [size]);
|
|
37
|
+
|
|
38
|
+
// const computedColor = React.useMemo(() => {
|
|
39
|
+
// if (colorProp === 'default') {
|
|
40
|
+
// return '#9D9D9D';
|
|
41
|
+
// } else if (colorProp === 'primary') {
|
|
42
|
+
// return '#1677ff';
|
|
43
|
+
// } else if (colorProp === 'white') {
|
|
44
|
+
// return '#ffffff';
|
|
45
|
+
// } else {
|
|
46
|
+
// return colorProp;
|
|
47
|
+
// }
|
|
48
|
+
// }, [colorProp]);
|
|
49
|
+
|
|
50
|
+
var completedStyle = React.useMemo(function () {
|
|
51
|
+
var maskImageSvg = createSvgStr({
|
|
52
|
+
stroke: 'currentColor'
|
|
53
|
+
});
|
|
54
|
+
var style = {
|
|
55
|
+
'--size': computedSize,
|
|
56
|
+
// '--color': computedColor,
|
|
57
|
+
'--maskImage': "url(data:image/svg+xml;base64,".concat(Base64.stringify(Utf8.parse(maskImageSvg)), ")")
|
|
58
|
+
};
|
|
59
|
+
if (!colors.includes(colorProp)) {
|
|
60
|
+
style.color = colorProp;
|
|
61
|
+
}
|
|
62
|
+
return style;
|
|
63
|
+
}, [computedSize, colorProp]);
|
|
64
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: classNames(spinLoadingCls, _defineProperty({}, "".concat(spinLoadingCls, "-").concat(colorProp), colors.includes(colorProp))),
|
|
66
|
+
style: completedStyle
|
|
67
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
68
|
+
className: classNames("".concat(spinLoadingCls, "-spin"))
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$dotLoadingCls: triones-antm-dot-loading;
|
|
4
|
+
|
|
5
|
+
.#{$dotLoadingCls} {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
height: 1em;
|
|
9
|
+
vertical-align: -0.125em;
|
|
10
|
+
/* 18 / 40 * 1em — horizontal gap between dots in antd-mobile viewBox */
|
|
11
|
+
gap: 0.45em;
|
|
12
|
+
|
|
13
|
+
&-default {
|
|
14
|
+
color: #9D9D9D;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-primary {
|
|
18
|
+
color: variable.$trionesColorPrimary;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-white {
|
|
22
|
+
color: white;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-dot {
|
|
26
|
+
display: block;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
/* 8×8 in a 40-unit-tall viewBox, height = 1em */
|
|
29
|
+
width: 0.2em;
|
|
30
|
+
height: 0.2em;
|
|
31
|
+
background: currentColor;
|
|
32
|
+
//mask-image: var(--dotLoadingMask);
|
|
33
|
+
//-webkit-mask-image: var(--dotLoadingMask);
|
|
34
|
+
mask-repeat: no-repeat;
|
|
35
|
+
-webkit-mask-repeat: no-repeat;
|
|
36
|
+
mask-size: 100% 100%;
|
|
37
|
+
-webkit-mask-size: 100% 100%;
|
|
38
|
+
mask-position: center;
|
|
39
|
+
-webkit-mask-position: center;
|
|
40
|
+
animation: triones-antm-dot-loading-bounce 2s infinite linear;
|
|
41
|
+
animation-fill-mode: backwards;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-dot-0 {
|
|
45
|
+
animation-delay: 0s;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-dot-1 {
|
|
49
|
+
animation-delay: 0.2s;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-dot-2 {
|
|
53
|
+
animation-delay: 0.4s;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Mirrors antd-mobile SMIL: values 16;6;26;16;16, keyTimes 0;0.1;0.3;0.4;1, viewBox height 40 */
|
|
58
|
+
@keyframes triones-antm-dot-loading-bounce {
|
|
59
|
+
0%,
|
|
60
|
+
40%,
|
|
61
|
+
100% {
|
|
62
|
+
transform: translateY(0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
10% {
|
|
66
|
+
transform: translateY(-0.25em);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
30% {
|
|
70
|
+
transform: translateY(0.25em);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
--
|
|
6
|
-
width: var(--size);
|
|
7
|
-
height: var(--size);
|
|
8
|
-
|
|
9
|
-
&-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
mask-image: var(--maskImage);
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$spinLoadingCls: triones-antm-spin-loading;
|
|
3
|
+
|
|
4
|
+
.#{$spinLoadingCls} {
|
|
5
|
+
--size: 32Px;
|
|
6
|
+
width: var(--size);
|
|
7
|
+
height: var(--size);
|
|
8
|
+
|
|
9
|
+
&-default{
|
|
10
|
+
color: #9D9D9D;
|
|
11
|
+
}
|
|
12
|
+
&-primary{
|
|
13
|
+
color: variable.$trionesColorPrimary;
|
|
14
|
+
}
|
|
15
|
+
&-white{
|
|
16
|
+
color: #ffffff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-spin {
|
|
20
|
+
//color: var(--color);
|
|
21
|
+
display: inline-block;
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
24
|
+
background: currentColor;
|
|
25
|
+
mask-image: var(--maskImage);
|
|
26
|
+
-webkit-mask-image: var(--maskImage);
|
|
27
|
+
animation: adm-spin-loading-rotate 2s infinite linear;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@keyframes adm-spin-loading-rotate {
|
|
33
|
+
from {
|
|
34
|
+
transform: rotate(0deg);
|
|
35
|
+
}
|
|
36
|
+
to {
|
|
37
|
+
transform: rotate(360deg);
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/NavBar/style.scss
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$trionesNavBarColorBg: variable.$trionesColorBorderBg !default;
|
|
4
|
-
$trionesNavBarColorText: variable.$trionesColorTextBase !default;
|
|
5
|
-
|
|
6
|
-
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
7
|
-
/* prettier-ignore */
|
|
8
|
-
.#{$class-prefix-nav-bar} {
|
|
9
|
-
--height: 45PX;
|
|
10
|
-
--border-bottom: none;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
height: var(--height);
|
|
14
|
-
border-bottom: var(--border-bottom);
|
|
15
|
-
padding: 0 12PX;
|
|
16
|
-
white-space: nowrap;
|
|
17
|
-
color: $trionesNavBarColorText;
|
|
18
|
-
background-color: $trionesNavBarColorBg;
|
|
19
|
-
|
|
20
|
-
&-left,
|
|
21
|
-
&-right {
|
|
22
|
-
flex: 1;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-title {
|
|
26
|
-
flex: auto;
|
|
27
|
-
text-align: center;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
text-overflow: ellipsis;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-back {
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
margin-right: 16PX;
|
|
36
|
-
padding: 6PX 0;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
|
|
39
|
-
&-arrow {
|
|
40
|
-
font-size: 20PX;
|
|
41
|
-
margin-right: 5PX;
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-left {
|
|
48
|
-
font-size: var(--triones-antm-font-size-7);
|
|
49
|
-
display: flex;
|
|
50
|
-
justify-content: flex-start;
|
|
51
|
-
align-items: center;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-title {
|
|
55
|
-
justify-content: center;
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
font-size: var(--triones-antm-font-size-10);
|
|
58
|
-
padding: 0 12PX;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-right {
|
|
62
|
-
text-align: right;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesNavBarColorBg: variable.$trionesColorBorderBg !default;
|
|
4
|
+
$trionesNavBarColorText: variable.$trionesColorTextBase !default;
|
|
5
|
+
|
|
6
|
+
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
.#{$class-prefix-nav-bar} {
|
|
9
|
+
--height: 45PX;
|
|
10
|
+
--border-bottom: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
height: var(--height);
|
|
14
|
+
border-bottom: var(--border-bottom);
|
|
15
|
+
padding: 0 12PX;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
color: $trionesNavBarColorText;
|
|
18
|
+
background-color: $trionesNavBarColorBg;
|
|
19
|
+
|
|
20
|
+
&-left,
|
|
21
|
+
&-right {
|
|
22
|
+
flex: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-title {
|
|
26
|
+
flex: auto;
|
|
27
|
+
text-align: center;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-back {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
margin-right: 16PX;
|
|
36
|
+
padding: 6PX 0;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
|
|
39
|
+
&-arrow {
|
|
40
|
+
font-size: 20PX;
|
|
41
|
+
margin-right: 5PX;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-left {
|
|
48
|
+
font-size: var(--triones-antm-font-size-7);
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: flex-start;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-title {
|
|
55
|
+
justify-content: center;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
font-size: var(--triones-antm-font-size-10);
|
|
58
|
+
padding: 0 12PX;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-right {
|
|
62
|
+
text-align: right;
|
|
63
|
+
}
|
|
64
|
+
}
|