@trionesdev/antd-mobile-base-react 0.0.2-beta.2 → 0.0.2-beta.3
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/style.scss +6 -5
- package/dist/Alert/style.scss +17 -17
- package/dist/Avatar/avatar.d.ts +2 -1
- package/dist/Avatar/avatar.js +14 -4
- package/dist/Avatar/style.scss +3 -2
- package/dist/Card/style.scss +11 -11
- package/dist/CascaderPicker/style.scss +3 -3
- package/dist/CascaderView/style.scss +2 -2
- package/dist/Cell/CellGroup.js +22 -14
- package/dist/Cell/cell.js +54 -16
- package/dist/Cell/context.d.ts +11 -0
- package/dist/Cell/context.js +2 -0
- package/dist/Cell/styles.scss +10 -14
- package/dist/Cell/types.d.ts +15 -7
- package/dist/Checkbox/checkbox-button.d.ts +6 -2
- package/dist/Checkbox/checkbox-button.js +5 -17
- package/dist/Checkbox/checkbox-group.js +19 -3
- package/dist/Checkbox/checkbox-round.d.ts +8 -0
- package/dist/Checkbox/checkbox-round.js +35 -0
- package/dist/Checkbox/checkbox.js +49 -34
- package/dist/Checkbox/index.d.ts +0 -2
- package/dist/Checkbox/index.js +0 -2
- package/dist/Checkbox/index.scss +48 -34
- package/dist/Checkbox/types.d.ts +11 -1
- package/dist/Descriptions/style.scss +4 -4
- package/dist/Divider/style.scss +5 -5
- package/dist/Form/context.d.ts +2 -1
- package/dist/Form/form.d.ts +2 -7
- package/dist/Form/form.js +4 -3
- package/dist/Form/index.d.ts +5 -3
- package/dist/Form/index.js +4 -2
- package/dist/Form/types.d.ts +7 -0
- package/dist/Form/types.js +1 -0
- package/dist/InputNumber/input-number.d.ts +3 -0
- package/dist/InputNumber/input-number.js +7 -3
- package/dist/InputNumber/style.scss +32 -12
- package/dist/NavBar/nav-bar.d.ts +1 -0
- package/dist/NavBar/nav-bar.js +2 -1
- package/dist/NavBar/style.scss +6 -3
- package/dist/Picker/style.scss +2 -2
- package/dist/Popup/index.d.ts +2 -0
- package/dist/Popup/index.js +2 -0
- package/dist/Popup/style.scss +3 -3
- package/dist/Radio/RadioGroup.js +3 -3
- package/dist/Radio/style.scss +24 -21
- package/dist/Radio/types.d.ts +6 -4
- package/dist/SafeArea/style.scss +5 -3
- package/dist/Scaffold/style.scss +2 -1
- package/dist/SideBar/style.scss +6 -6
- package/dist/Space/space.d.ts +1 -0
- package/dist/Space/space.js +17 -6
- package/dist/Space/style.scss +3 -0
- package/dist/Steps/HorizontalSteps.js +5 -1
- package/dist/Steps/style.scss +7 -0
- package/dist/Switch/style.scss +6 -6
- package/dist/TabBar/index.js +2 -1
- package/dist/TabBar/index.scss +3 -2
- package/dist/Tabs/style.scss +4 -4
- package/dist/Tag/style.scss +14 -14
- package/dist/index.d.ts +3 -7
- package/dist/index.js +2 -4
- package/dist/style/css-variable.scss +6 -0
- package/dist/style/style.scss +2 -2
- package/dist/style/variable.scss +169 -164
- package/dist/types.d.ts +5 -1
- package/package.json +4 -4
- package/dist/Form/FormItem/form-item-input.d.ts +0 -15
- package/dist/Form/FormItem/form-item-input.js +0 -39
- package/dist/Form/FormItem/form-item-label.d.ts +0 -13
- package/dist/Form/FormItem/form-item-label.js +0 -25
- package/dist/Form/FormItem/form-item.d.ts +0 -21
- package/dist/Form/FormItem/form-item.js +0 -70
- package/dist/Form/FormItem/index.d.ts +0 -5
- package/dist/Form/FormItem/index.js +0 -3
- package/dist/Form/style.scss +0 -45
- package/dist/Input/base-input.d.ts +0 -14
- package/dist/Input/base-input.js +0 -63
- package/dist/Input/index.d.ts +0 -12
- package/dist/Input/index.js +0 -9
- package/dist/Input/index.scss +0 -173
- package/dist/Input/input-affix-wrapper.d.ts +0 -8
- package/dist/Input/input-affix-wrapper.js +0 -50
- package/dist/Input/input-opt.d.ts +0 -16
- package/dist/Input/input-opt.js +0 -93
- package/dist/Input/input-password.d.ts +0 -7
- package/dist/Input/input-password.js +0 -47
- package/dist/Input/input.d.ts +0 -15
- package/dist/Input/input.js +0 -47
- package/dist/Input/textarea.d.ts +0 -13
- package/dist/Input/textarea.js +0 -45
- package/dist/Input/types.d.ts +0 -1
- package/dist/Input/types.js +0 -1
- package/dist/VerificationCodeInput/demo/base.d.ts +0 -3
- package/dist/VerificationCodeInput/demo/base.js +0 -11
- package/dist/VerificationCodeInput/index.d.ts +0 -3
- package/dist/VerificationCodeInput/index.js +0 -2
- package/dist/VerificationCodeInput/style.scss +0 -20
- package/dist/VerificationCodeInput/verification-code-input.d.ts +0 -24
- package/dist/VerificationCodeInput/verification-code-input.js +0 -99
|
@@ -1,43 +1,63 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
$trionesInputNumberCls: 'triones-antm-input-number';
|
|
3
3
|
|
|
4
|
+
$inputNumberBg: #EEEEEE;
|
|
5
|
+
$inputSm: 24Px;
|
|
6
|
+
$inputLg: 40Px;
|
|
7
|
+
|
|
4
8
|
.#{$trionesInputNumberCls} {
|
|
5
9
|
display: inline-flex;
|
|
6
10
|
align-items: center;
|
|
7
11
|
gap: 4Px;
|
|
8
|
-
border-radius:
|
|
9
|
-
background-color: $
|
|
12
|
+
border-radius: variable.$trionesBorderRadius;
|
|
13
|
+
background-color: $inputNumberBg;
|
|
10
14
|
|
|
11
15
|
input {
|
|
16
|
+
|
|
12
17
|
&::-webkit-outer-spin-button,
|
|
13
18
|
&::-webkit-inner-spin-button {
|
|
14
19
|
-webkit-appearance: none;
|
|
15
20
|
margin: 0;
|
|
16
21
|
}
|
|
17
22
|
|
|
23
|
+
background-color: transparent;
|
|
18
24
|
border: 0;
|
|
19
|
-
text-align: center;
|
|
20
|
-
width:
|
|
25
|
+
text-align: center ;
|
|
26
|
+
width: 32Px;
|
|
27
|
+
|
|
21
28
|
|
|
22
29
|
&:focus {
|
|
23
30
|
outline: none;
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
|
|
34
|
+
|
|
27
35
|
&-button {
|
|
28
36
|
cursor: pointer;
|
|
29
37
|
display: flex;
|
|
30
38
|
font-size: 10Px;
|
|
31
|
-
height:
|
|
32
|
-
width:
|
|
39
|
+
height: 32Px;
|
|
40
|
+
width: 32Px;
|
|
33
41
|
justify-content: center;
|
|
34
42
|
align-items: center;
|
|
35
|
-
|
|
43
|
+
|
|
44
|
+
&-sm {
|
|
45
|
+
width: $inputSm;
|
|
46
|
+
height: $inputSm;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-lg {
|
|
50
|
+
width: $inputLg;
|
|
51
|
+
height: $inputLg;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-disabled {
|
|
36
55
|
cursor: not-allowed;
|
|
37
|
-
color:
|
|
56
|
+
color: variable.$trionesColorTextDisabled;
|
|
38
57
|
}
|
|
39
|
-
|
|
40
|
-
|
|
58
|
+
|
|
59
|
+
.triones-antm-icon {
|
|
60
|
+
font-size: 10Px !important;
|
|
41
61
|
}
|
|
42
62
|
}
|
|
43
|
-
}
|
|
63
|
+
}
|
package/dist/NavBar/nav-bar.d.ts
CHANGED
package/dist/NavBar/nav-bar.js
CHANGED
|
@@ -17,7 +17,8 @@ export var NavBar = function NavBar(props) {
|
|
|
17
17
|
var mergedDefaultBackIcon = componentConfig.backIcon || defaultBackIcon;
|
|
18
18
|
var mergedBackIcon = mergeProp(defaultBackIcon, componentConfig.backIcon, backIcon === true ? mergedDefaultBackIcon : backIcon);
|
|
19
19
|
return withNativeProps(mergedProps, /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: classNames(classPrefix)
|
|
20
|
+
className: classNames(classPrefix, mergedProps.className),
|
|
21
|
+
style: mergedProps.style
|
|
21
22
|
}, /*#__PURE__*/React.createElement("div", {
|
|
22
23
|
className: "".concat(classPrefix, "-left"),
|
|
23
24
|
role: "button"
|
package/dist/NavBar/style.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
2
|
-
|
|
3
|
-
$
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesNavBarColorBg: variable.$trionesColorBorderBg !default;
|
|
4
|
+
$trionesNavBarColorText: variable.$trionesColorTextBase !default;
|
|
4
5
|
|
|
5
6
|
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
6
7
|
/* prettier-ignore */
|
|
@@ -20,6 +21,7 @@ $class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
|
20
21
|
&-right {
|
|
21
22
|
flex: 1;
|
|
22
23
|
}
|
|
24
|
+
|
|
23
25
|
&-title {
|
|
24
26
|
flex: auto;
|
|
25
27
|
text-align: center;
|
|
@@ -33,6 +35,7 @@ $class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
|
33
35
|
margin-right: 16PX;
|
|
34
36
|
padding: 6PX 0;
|
|
35
37
|
cursor: pointer;
|
|
38
|
+
|
|
36
39
|
&-arrow {
|
|
37
40
|
font-size: 20PX;
|
|
38
41
|
margin-right: 5PX;
|
package/dist/Picker/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
$pickerCls: 'triones-antm-picker';
|
|
3
3
|
|
|
4
4
|
.#{$pickerCls} {
|
|
@@ -20,7 +20,7 @@ $pickerCls: 'triones-antm-picker';
|
|
|
20
20
|
padding: 8Px;
|
|
21
21
|
font-size: 12Px;
|
|
22
22
|
&-ok{
|
|
23
|
-
color:
|
|
23
|
+
color: variable.$trionesColorPrimary;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
package/dist/Popup/index.d.ts
CHANGED
package/dist/Popup/index.js
CHANGED
package/dist/Popup/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
$popupCls: 'triones-antm-popup';
|
|
3
3
|
|
|
4
4
|
.#{$popupCls} {
|
|
@@ -23,8 +23,8 @@ $popupCls: 'triones-antm-popup';
|
|
|
23
23
|
&-body {
|
|
24
24
|
background-color: white;
|
|
25
25
|
position: fixed;
|
|
26
|
-
border-top-left-radius:
|
|
27
|
-
border-top-right-radius:
|
|
26
|
+
border-top-left-radius: variable.$trionesBorderRadius;
|
|
27
|
+
border-top-right-radius: variable.$trionesBorderRadius;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&-top {
|
package/dist/Radio/RadioGroup.js
CHANGED
|
@@ -20,7 +20,7 @@ export var RadioGroup = function RadioGroup(_ref) {
|
|
|
20
20
|
labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
|
|
21
21
|
_ref$direction = _ref.direction,
|
|
22
22
|
direction = _ref$direction === void 0 ? 'horizontal' : _ref$direction,
|
|
23
|
-
|
|
23
|
+
options = _ref.options;
|
|
24
24
|
var _useState = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : value),
|
|
25
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
26
|
internalValue = _useState2[0],
|
|
@@ -44,14 +44,14 @@ export var RadioGroup = function RadioGroup(_ref) {
|
|
|
44
44
|
}
|
|
45
45
|
}, shape === 'button' ? /*#__PURE__*/React.createElement("div", {
|
|
46
46
|
className: classNames("".concat(classPrefix, "-button-group"))
|
|
47
|
-
}, children || (
|
|
47
|
+
}, children || (options === null || options === void 0 ? void 0 : options.map(function (item) {
|
|
48
48
|
return /*#__PURE__*/React.createElement(RadioButton, {
|
|
49
49
|
key: item.value,
|
|
50
50
|
value: item.value
|
|
51
51
|
}, item.label);
|
|
52
52
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
53
53
|
className: classNames("".concat(classPrefix, "-group"), "".concat(classPrefix, "-group-").concat(direction))
|
|
54
|
-
}, children || (
|
|
54
|
+
}, children || (options === null || options === void 0 ? void 0 : options.map(function (item) {
|
|
55
55
|
return /*#__PURE__*/React.createElement(Radio, {
|
|
56
56
|
key: item.value,
|
|
57
57
|
value: item.value
|
package/dist/Radio/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
|
|
3
3
|
$checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
|
|
4
4
|
|
|
@@ -12,11 +12,12 @@ $class-prefix-radio: 'triones-antm-radio';
|
|
|
12
12
|
|
|
13
13
|
.#{$class-prefix-radio} {
|
|
14
14
|
&-fake {
|
|
15
|
-
width:
|
|
16
|
-
height:
|
|
15
|
+
width: 20PX;
|
|
16
|
+
height: 20PX;
|
|
17
17
|
|
|
18
18
|
.triones-antm-icon {
|
|
19
19
|
//position: absolute;
|
|
20
|
+
font-size: variable.$trionesFontSize;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&-checked {
|
|
@@ -25,12 +26,14 @@ $class-prefix-radio: 'triones-antm-radio';
|
|
|
25
26
|
display: inline-flex;
|
|
26
27
|
justify-content: center;
|
|
27
28
|
align-items: center;
|
|
28
|
-
background-color:
|
|
29
|
+
background-color: variable.$trionesColorPrimary;
|
|
29
30
|
color: white;
|
|
30
31
|
border-radius: 50vh;
|
|
31
32
|
box-sizing: border-box;
|
|
32
33
|
overflow: hidden;
|
|
33
|
-
|
|
34
|
+
.triones-antm-icon{
|
|
35
|
+
font-size: 14Px;
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
&-unchecked {
|
|
@@ -40,7 +43,7 @@ $class-prefix-radio: 'triones-antm-radio';
|
|
|
40
43
|
justify-content: center;
|
|
41
44
|
align-items: center;
|
|
42
45
|
border-radius: 50vh;
|
|
43
|
-
border: 1PX solid
|
|
46
|
+
border: 1PX solid variable.$trionesBorderColor;
|
|
44
47
|
box-sizing: border-box;
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -88,36 +91,36 @@ $class-prefix-radio: 'triones-antm-radio';
|
|
|
88
91
|
.#{$class-prefix-radio}-button-wrapper {
|
|
89
92
|
display: inline-flex;
|
|
90
93
|
position: relative;
|
|
91
|
-
border-top: 1PX solid
|
|
92
|
-
border-bottom: 1PX solid
|
|
93
|
-
border-right: 1PX solid
|
|
94
|
+
border-top: 1PX solid variable.$trionesBorderColor;
|
|
95
|
+
border-bottom: 1PX solid variable.$trionesBorderColor;
|
|
96
|
+
border-right: 1PX solid variable.$trionesBorderColor;
|
|
94
97
|
|
|
95
98
|
&:first-child {
|
|
96
|
-
border-left: 1PX solid
|
|
97
|
-
border-top-left-radius:
|
|
98
|
-
border-bottom-left-radius:
|
|
99
|
+
border-left: 1PX solid variable.$trionesBorderColor;
|
|
100
|
+
border-top-left-radius: variable.$trionesBorderRadius;
|
|
101
|
+
border-bottom-left-radius: variable.$trionesBorderRadius;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
&:last-child {
|
|
102
|
-
border-right: 1PX solid
|
|
103
|
-
border-top-right-radius:
|
|
104
|
-
border-bottom-right-radius:
|
|
105
|
+
border-right: 1PX solid variable.$trionesBorderColor;
|
|
106
|
+
border-top-right-radius: variable.$trionesBorderRadius;
|
|
107
|
+
border-bottom-right-radius: variable.$trionesBorderRadius;
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
&-checked {
|
|
108
|
-
border-top: 1PX solid
|
|
109
|
-
border-bottom: 1PX solid
|
|
110
|
-
color:
|
|
111
|
+
border-top: 1PX solid variable.$trionesColorPrimary;
|
|
112
|
+
border-bottom: 1PX solid variable.$trionesColorPrimary;
|
|
113
|
+
color: variable.$trionesColorPrimary;
|
|
111
114
|
|
|
112
115
|
&:first-child {
|
|
113
|
-
border: 1PX solid
|
|
116
|
+
border: 1PX solid variable.$trionesColorPrimary;
|
|
114
117
|
}
|
|
115
118
|
|
|
116
119
|
&:not(:first-child) {
|
|
117
120
|
&::before {
|
|
118
121
|
content: " ";
|
|
119
122
|
width: 1PX;
|
|
120
|
-
background-color:
|
|
123
|
+
background-color: variable.$trionesColorPrimary;
|
|
121
124
|
position: absolute;
|
|
122
125
|
inset-block-start: -1Px;
|
|
123
126
|
inset-inline-start: -1Px;
|
|
@@ -125,7 +128,7 @@ $class-prefix-radio: 'triones-antm-radio';
|
|
|
125
128
|
padding-block: 1Px;
|
|
126
129
|
}
|
|
127
130
|
|
|
128
|
-
border-right: 1PX solid
|
|
131
|
+
border-right: 1PX solid variable.$trionesColorPrimary;
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
134
|
|
package/dist/Radio/types.d.ts
CHANGED
|
@@ -41,6 +41,11 @@ export type RadioProps = {
|
|
|
41
41
|
*/
|
|
42
42
|
onClick?: (event: React.MouseEvent<HTMLLabelElement, MouseEvent>) => void;
|
|
43
43
|
};
|
|
44
|
+
export type RadioOptionProps = {
|
|
45
|
+
label?: React.ReactNode;
|
|
46
|
+
value?: any;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
};
|
|
44
49
|
export interface RadioGroupProps {
|
|
45
50
|
children?: ReactNode;
|
|
46
51
|
className?: string;
|
|
@@ -51,8 +56,5 @@ export interface RadioGroupProps {
|
|
|
51
56
|
shape?: 'button' | 'round';
|
|
52
57
|
labelPosition?: 'left' | 'right';
|
|
53
58
|
direction?: 'vertical' | 'horizontal';
|
|
54
|
-
|
|
55
|
-
label: React.ReactNode;
|
|
56
|
-
value: any;
|
|
57
|
-
}[];
|
|
59
|
+
options?: RadioOptionProps[];
|
|
58
60
|
}
|
package/dist/SafeArea/style.scss
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
|
|
3
3
|
$class-prefix-safe-area: 'triones-antm-safe-area';
|
|
4
4
|
|
|
5
|
+
$safeAreaMultiple : variable.$trionesSafeAreaMultiple;
|
|
6
|
+
|
|
5
7
|
.#{$class-prefix-safe-area} {
|
|
6
8
|
height: 100%;
|
|
7
9
|
display: block;
|
|
@@ -9,10 +11,10 @@ $class-prefix-safe-area: 'triones-antm-safe-area';
|
|
|
9
11
|
box-sizing: border-box;
|
|
10
12
|
|
|
11
13
|
&-position-top {
|
|
12
|
-
padding-top: calc(env(safe-area-inset-top) * $
|
|
14
|
+
padding-top: calc(env(safe-area-inset-top) * $safeAreaMultiple);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
&-position-bottom {
|
|
16
|
-
padding-bottom: calc(env(safe-area-inset-bottom) * $
|
|
18
|
+
padding-bottom: calc(env(safe-area-inset-bottom) * $safeAreaMultiple);
|
|
17
19
|
}
|
|
18
20
|
}
|
package/dist/Scaffold/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
$trionesScaffoldCls: 'triones-antm-scaffold';
|
|
@@ -8,6 +8,7 @@ $trionesScaffoldCls: 'triones-antm-scaffold';
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
|
+
background-color: variable.$trionesColorBgScaffold;
|
|
11
12
|
|
|
12
13
|
&-body {
|
|
13
14
|
flex: 1 auto;
|
package/dist/SideBar/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
|
|
3
3
|
$trionesSideBarCls: 'triones-antm-sidebar';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ $trionesSideBarCls: 'triones-antm-sidebar';
|
|
|
9
9
|
|
|
10
10
|
&-tabs {
|
|
11
11
|
min-width: 0;
|
|
12
|
-
background-color:
|
|
12
|
+
background-color: variable.$trionesColorFill;
|
|
13
13
|
overflow: auto;
|
|
14
14
|
scrollbar-width: thin;
|
|
15
15
|
flex-shrink: 0;
|
|
@@ -17,12 +17,12 @@ $trionesSideBarCls: 'triones-antm-sidebar';
|
|
|
17
17
|
|
|
18
18
|
&-tab {
|
|
19
19
|
cursor: pointer;
|
|
20
|
-
padding:
|
|
21
|
-
color:
|
|
20
|
+
padding: variable.$trionesPadding variable.$trionesPadding;
|
|
21
|
+
color: variable.$trionesColorTextSecondary;
|
|
22
22
|
|
|
23
23
|
&-active {
|
|
24
|
-
color:
|
|
25
|
-
background-color:
|
|
24
|
+
color: variable.$trionesColorPrimaryText;
|
|
25
|
+
background-color: variable.$trionesColorBgBase;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
}
|
package/dist/Space/space.d.ts
CHANGED
package/dist/Space/space.js
CHANGED
|
@@ -20,7 +20,8 @@ export var Space = function Space(_ref) {
|
|
|
20
20
|
onClick = _ref.onClick,
|
|
21
21
|
_ref$size = _ref.size,
|
|
22
22
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
23
|
-
style = _ref.style
|
|
23
|
+
style = _ref.style,
|
|
24
|
+
separator = _ref.separator;
|
|
24
25
|
var sizeValue = function sizeValue(size) {
|
|
25
26
|
if (typeof size === 'number') {
|
|
26
27
|
return "".concat(size, "Px");
|
|
@@ -53,9 +54,19 @@ export var Space = function Space(_ref) {
|
|
|
53
54
|
rowGap: rowGapValue
|
|
54
55
|
}),
|
|
55
56
|
onClick: onClick
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
}, function () {
|
|
58
|
+
var items = [];
|
|
59
|
+
React.Children.map(children, function (child, index) {
|
|
60
|
+
if (child !== null && child !== undefined) {
|
|
61
|
+
items.push( /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
key: "space-item-".concat(index),
|
|
63
|
+
className: "".concat(classPrefix, "-item")
|
|
64
|
+
}, child));
|
|
65
|
+
if (separator && index < React.Children.count(children) - 1) {
|
|
66
|
+
items.push(separator);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return items;
|
|
71
|
+
}());
|
|
61
72
|
};
|
package/dist/Space/style.scss
CHANGED
|
@@ -3,10 +3,13 @@ $class-prefix-space: 'triones-antm-space';
|
|
|
3
3
|
.#{$class-prefix-space}-item {
|
|
4
4
|
flex: none;
|
|
5
5
|
display: inline-flex;
|
|
6
|
+
flex-shrink: 1;
|
|
7
|
+
min-width: 0;
|
|
6
8
|
}
|
|
7
9
|
/* prettier-ignore */
|
|
8
10
|
.#{$class-prefix-space} {
|
|
9
11
|
display: inline-flex;
|
|
12
|
+
vertical-align: middle;
|
|
10
13
|
&-vertical {
|
|
11
14
|
flex-direction: column;
|
|
12
15
|
> .#{$class-prefix-space}-item {
|
|
@@ -64,7 +64,11 @@ var HorizontalStepItem = function HorizontalStepItem(_ref) {
|
|
|
64
64
|
}
|
|
65
65
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
className: classNames("".concat(clsPrefixStep, "-content"))
|
|
67
|
-
}, title && /*#__PURE__*/React.createElement("div",
|
|
67
|
+
}, title && /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: classNames("".concat(clsPrefixStep, "-content-title"))
|
|
69
|
+
}, title), description && /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: classNames("".concat(clsPrefixStep, "-content-desc"))
|
|
71
|
+
}, description)));
|
|
68
72
|
};
|
|
69
73
|
export var HorizontalSteps = function HorizontalSteps(_ref2) {
|
|
70
74
|
var _ref2$stretch = _ref2.stretch,
|
package/dist/Steps/style.scss
CHANGED
|
@@ -8,6 +8,9 @@ $clsPrefixStep: 'triones-antm-step';
|
|
|
8
8
|
|
|
9
9
|
.#{$clsPrefixStep} {
|
|
10
10
|
//flex: 1 auto;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 4Px;
|
|
11
14
|
&-indicator {
|
|
12
15
|
display: flex;
|
|
13
16
|
flex-direction: row;
|
|
@@ -46,6 +49,10 @@ $clsPrefixStep: 'triones-antm-step';
|
|
|
46
49
|
|
|
47
50
|
&-content {
|
|
48
51
|
text-align: center;
|
|
52
|
+
&-title{
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
&-desc{}
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
&:first-child {
|
package/dist/Switch/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
|
|
3
3
|
$class-prefix-switch: 'triones-antm-switch';
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ $class-prefix-switch: 'triones-antm-switch';
|
|
|
30
30
|
height: var(--height);
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
border-radius: 31PX;
|
|
33
|
-
background:
|
|
33
|
+
background: variable.$trionesBorderColor;
|
|
34
34
|
z-index: 0;
|
|
35
35
|
overflow: hidden;
|
|
36
36
|
line-height: var(--height);
|
|
@@ -58,7 +58,7 @@ $class-prefix-switch: 'triones-antm-switch';
|
|
|
58
58
|
width: calc(var(--height) - 2 * var(--border-width));
|
|
59
59
|
height: calc(var(--height) - 2 * var(--border-width));
|
|
60
60
|
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
61
|
-
background:
|
|
61
|
+
background: variable.$trionesColorTextLightSolid;
|
|
62
62
|
position: absolute;
|
|
63
63
|
z-index: 2;
|
|
64
64
|
top: var(--border-width);
|
|
@@ -69,7 +69,7 @@ $class-prefix-switch: 'triones-antm-switch';
|
|
|
69
69
|
-1PX 2PX 2PX 0 rgba(0, 0, 0, 0.1);
|
|
70
70
|
|
|
71
71
|
&-loading {
|
|
72
|
-
color: var(--color
|
|
72
|
+
color: var(--color,variable.$trionesColorPrimary);
|
|
73
73
|
display: inline-block;
|
|
74
74
|
height: 100%;
|
|
75
75
|
width: 100%;
|
|
@@ -96,7 +96,7 @@ $class-prefix-switch: 'triones-antm-switch';
|
|
|
96
96
|
/* 选中状态 */
|
|
97
97
|
&.#{$class-prefix-switch}-checked {
|
|
98
98
|
.#{$class-prefix-switch}-checkbox {
|
|
99
|
-
background: var(--checked-color,
|
|
99
|
+
background: var(--checked-color, variable.$trionesColorPrimary);
|
|
100
100
|
|
|
101
101
|
&:before {
|
|
102
102
|
transform: scale(0);
|
|
@@ -109,7 +109,7 @@ $class-prefix-switch: 'triones-antm-switch';
|
|
|
109
109
|
|
|
110
110
|
.#{$class-prefix-switch}-inner {
|
|
111
111
|
margin: 0 calc(var(--height) - var(--border-width) + 5PX) 0 8PX;
|
|
112
|
-
color:
|
|
112
|
+
color: variable.$trionesColorTextLightSolid;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
package/dist/TabBar/index.js
CHANGED
package/dist/TabBar/index.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
|
|
3
|
-
$trionesTabBarActiveColor:
|
|
3
|
+
$trionesTabBarActiveColor: variable.$trionesColorPrimary !default;
|
|
4
4
|
|
|
5
5
|
$tabBarCls: 'triones-tab-bar';
|
|
6
6
|
.#{$tabBarCls} {
|
|
@@ -20,6 +20,7 @@ $tabBarCls: 'triones-tab-bar';
|
|
|
20
20
|
gap: 4Px;
|
|
21
21
|
cursor: default;
|
|
22
22
|
flex: 1 auto;
|
|
23
|
+
padding: 4Px;
|
|
23
24
|
|
|
24
25
|
&-active {
|
|
25
26
|
color: $trionesTabBarActiveColor;
|
package/dist/Tabs/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
$tabsCls: 'triones-antm-tabs';
|
|
3
3
|
|
|
4
4
|
.#{$tabsCls} {
|
|
@@ -42,7 +42,7 @@ $tabsCls: 'triones-antm-tabs';
|
|
|
42
42
|
&-ink-bar {
|
|
43
43
|
position: absolute;
|
|
44
44
|
bottom: 0;
|
|
45
|
-
background-color:
|
|
45
|
+
background-color: variable.$trionesColorPrimary;
|
|
46
46
|
height: 2px;
|
|
47
47
|
//width: 100px;
|
|
48
48
|
&-animated {
|
|
@@ -69,7 +69,7 @@ $tabsCls: 'triones-antm-tabs';
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&-active {
|
|
72
|
-
color:
|
|
72
|
+
color: variable.$trionesColorPrimary;
|
|
73
73
|
&::after{
|
|
74
74
|
content: ' ';
|
|
75
75
|
position: absolute;
|
|
@@ -80,7 +80,7 @@ $tabsCls: 'triones-antm-tabs';
|
|
|
80
80
|
font-size: 0;
|
|
81
81
|
border-radius: 50vh;
|
|
82
82
|
box-sizing: border-box;
|
|
83
|
-
background-color:
|
|
83
|
+
background-color: variable.$trionesColorPrimary;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
package/dist/Tag/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
2
|
$tagCls: 'triones-antm-tag';
|
|
3
3
|
|
|
4
4
|
.#{$tagCls} {
|
|
@@ -7,7 +7,7 @@ $tagCls: 'triones-antm-tag';
|
|
|
7
7
|
padding: 2Px 8Px;
|
|
8
8
|
font-size: 11Px;
|
|
9
9
|
line-height: 1.2;
|
|
10
|
-
border-radius:
|
|
10
|
+
border-radius: variable.$trionesBorderRadius;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
white-space: nowrap;
|
|
13
13
|
|
|
@@ -35,12 +35,12 @@ $tagCls: 'triones-antm-tag';
|
|
|
35
35
|
// Primary variant styles
|
|
36
36
|
&-primary {
|
|
37
37
|
&.#{$tagCls}-solid {
|
|
38
|
-
background:
|
|
38
|
+
background: variable.$trionesColorPrimary;
|
|
39
39
|
color: #fff;
|
|
40
40
|
}
|
|
41
41
|
&.#{$tagCls}-outline {
|
|
42
|
-
color:
|
|
43
|
-
border: 1px solid
|
|
42
|
+
color: variable.$trionesColorPrimary;
|
|
43
|
+
border: 1px solid variable.$trionesColorPrimary;
|
|
44
44
|
background: transparent;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -48,12 +48,12 @@ $tagCls: 'triones-antm-tag';
|
|
|
48
48
|
// Success variant styles
|
|
49
49
|
&-success {
|
|
50
50
|
&.#{$tagCls}-solid {
|
|
51
|
-
background:
|
|
51
|
+
background: variable.$trionesColorSuccess;
|
|
52
52
|
color: #fff;
|
|
53
53
|
}
|
|
54
54
|
&.#{$tagCls}-outline {
|
|
55
|
-
color:
|
|
56
|
-
border: 1px solid
|
|
55
|
+
color: variable.$trionesColorSuccess;
|
|
56
|
+
border: 1px solid variable.$trionesColorSuccess;
|
|
57
57
|
background: transparent;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -61,12 +61,12 @@ $tagCls: 'triones-antm-tag';
|
|
|
61
61
|
// Warning variant styles
|
|
62
62
|
&-warning {
|
|
63
63
|
&.#{$tagCls}-solid {
|
|
64
|
-
background:
|
|
64
|
+
background: variable.$trionesColorWarning;
|
|
65
65
|
color: #fff;
|
|
66
66
|
}
|
|
67
67
|
&.#{$tagCls}-outline {
|
|
68
|
-
color:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
color: variable.$trionesColorWarning;
|
|
69
|
+
border: 1px solid variable.$trionesColorWarning;
|
|
70
70
|
background: transparent;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -74,12 +74,12 @@ $tagCls: 'triones-antm-tag';
|
|
|
74
74
|
// Danger variant styles
|
|
75
75
|
&-danger {
|
|
76
76
|
&.#{$tagCls}-solid {
|
|
77
|
-
background:
|
|
77
|
+
background: variable.$trionesColorError;
|
|
78
78
|
color: #fff;
|
|
79
79
|
}
|
|
80
80
|
&.#{$tagCls}-outline {
|
|
81
|
-
color:
|
|
82
|
-
border: 1px solid
|
|
81
|
+
color: variable.$trionesColorError;
|
|
82
|
+
border: 1px solid variable.$trionesColorError;
|
|
83
83
|
background: transparent;
|
|
84
84
|
}
|
|
85
85
|
}
|