@trionesdev/antd-mobile-base-react 0.0.2-beta.16 → 0.0.2-beta.18
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/alert.js +1 -1
- 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/cascader-column-item.js +1 -1
- 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-button.js +1 -1
- package/dist/Checkbox/checkbox-group.js +1 -2
- package/dist/Checkbox/checkbox-round.js +1 -1
- 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/style.scss +100 -100
- 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/nav-bar.js +1 -1
- 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/radio.js +1 -1
- package/dist/Radio/style.scss +154 -141
- package/dist/Rate/rate.js +1 -1
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/Result/use-result-icon.js +1 -1
- 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/stepper.js +2 -1
- package/dist/Stepper/style.scss +100 -100
- 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 +9 -4
- package/dist/index.js +4 -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
package/dist/Checkbox/index.scss
CHANGED
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$checkboxCls: 'triones-antm-checkbox';
|
|
4
|
-
|
|
5
|
-
$checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
|
|
6
|
-
|
|
7
|
-
.#{$checkboxCls}-group {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.#{$checkboxCls}-round {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
gap: 8Px;
|
|
16
|
-
|
|
17
|
-
.#{$checkboxCls}-round {
|
|
18
|
-
position: relative;
|
|
19
|
-
|
|
20
|
-
&-input {
|
|
21
|
-
cursor: inherit;
|
|
22
|
-
position: absolute;
|
|
23
|
-
opacity: 0;
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
top: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
margin: 0;
|
|
29
|
-
padding: 0;
|
|
30
|
-
z-index: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-fake {
|
|
34
|
-
width: 20PX;
|
|
35
|
-
height: 20PX;
|
|
36
|
-
|
|
37
|
-
.triones-antm-icon {
|
|
38
|
-
//position: absolute;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-checked {
|
|
42
|
-
height: 100%;
|
|
43
|
-
width: 100%;
|
|
44
|
-
display: inline-flex;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
background-color: variable.$trionesColorPrimary;
|
|
48
|
-
color: white;
|
|
49
|
-
border-radius: 50vh;
|
|
50
|
-
box-sizing: border-box;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
.triones-antm-icon{
|
|
53
|
-
font-size: 14Px;
|
|
54
|
-
}
|
|
55
|
-
//i{
|
|
56
|
-
// width: 100%;
|
|
57
|
-
// height: 100%;
|
|
58
|
-
// display: flex;
|
|
59
|
-
// align-items: center;
|
|
60
|
-
// justify-content: center;
|
|
61
|
-
//}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-unchecked {
|
|
65
|
-
height: 100%;
|
|
66
|
-
width: 100%;
|
|
67
|
-
display: inline-flex;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
align-items: center;
|
|
70
|
-
border-radius: 50vh;
|
|
71
|
-
border: 1PX solid variable.$trionesBorderColor;
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
&.#{$checkboxCls}-disabled {
|
|
79
|
-
color: $checkboxDisabledColor;
|
|
80
|
-
pointer-events: none;
|
|
81
|
-
|
|
82
|
-
.#{$checkboxCls}-fake-checked {
|
|
83
|
-
background-color: $checkboxDisabledColor;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.triones-antm-icon {
|
|
88
|
-
//position: absolute;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.#{$checkboxCls}-button {
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
display: inline-flex;
|
|
96
|
-
padding: 4Px 12Px;
|
|
97
|
-
border-radius: variable.$trionesBorderRadius;
|
|
98
|
-
position: relative;
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
background-color: variable.$trionesColorFillSecondary;
|
|
101
|
-
box-sizing: border-box;
|
|
102
|
-
border: 1Px solid variable.$trionesColorFillSecondary;
|
|
103
|
-
|
|
104
|
-
&-checked {
|
|
105
|
-
background-color: #ffffff;
|
|
106
|
-
border: 1Px solid variable.$trionesColorPrimary;
|
|
107
|
-
|
|
108
|
-
.#{$checkboxCls}-button-content {
|
|
109
|
-
color: variable.$trionesColorPrimary;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-disabled {
|
|
114
|
-
pointer-events: none;
|
|
115
|
-
color: $checkboxDisabledColor;
|
|
116
|
-
|
|
117
|
-
&.#{$checkboxCls}-button {
|
|
118
|
-
&-checked {
|
|
119
|
-
border: 1Px solid $checkboxDisabledColor;
|
|
120
|
-
|
|
121
|
-
.#{$checkboxCls}-button-content {
|
|
122
|
-
color: $checkboxDisabledColor;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.#{$checkboxCls}-button-icon {
|
|
127
|
-
border-bottom: 10Px solid $checkboxDisabledColor;
|
|
128
|
-
border-right: 10Px solid $checkboxDisabledColor;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
&-icon {
|
|
136
|
-
align-items: flex-end;
|
|
137
|
-
border-bottom: 10Px solid variable.$trionesColorPrimary;
|
|
138
|
-
border-left: 10Px solid transparent;
|
|
139
|
-
border-right: 10Px solid variable.$trionesColorPrimary;
|
|
140
|
-
border-top: 10Px solid transparent;
|
|
141
|
-
bottom: 0;
|
|
142
|
-
display: flex;
|
|
143
|
-
height: 0;
|
|
144
|
-
justify-content: flex-end;
|
|
145
|
-
position: absolute;
|
|
146
|
-
right: 0;
|
|
147
|
-
width: 0;
|
|
148
|
-
|
|
149
|
-
.checkedIcon {
|
|
150
|
-
font-size: 6Px;
|
|
151
|
-
position: absolute;
|
|
152
|
-
left: 50%;
|
|
153
|
-
top: 50%;
|
|
154
|
-
transform: translate(1Px, -1Px);
|
|
155
|
-
//font-family: "triones-ant-mini-icon" !important;
|
|
156
|
-
font-style: normal;
|
|
157
|
-
color: #ffffff;
|
|
158
|
-
|
|
159
|
-
&::before {
|
|
160
|
-
font-style: normal;
|
|
161
|
-
//content: "\e75f";
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$checkboxCls: 'triones-antm-checkbox';
|
|
4
|
+
|
|
5
|
+
$checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
|
|
6
|
+
|
|
7
|
+
.#{$checkboxCls}-group {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.#{$checkboxCls}-round {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
gap: 8Px;
|
|
16
|
+
|
|
17
|
+
.#{$checkboxCls}-round {
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
&-input {
|
|
21
|
+
cursor: inherit;
|
|
22
|
+
position: absolute;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-fake {
|
|
34
|
+
width: 20PX;
|
|
35
|
+
height: 20PX;
|
|
36
|
+
|
|
37
|
+
.triones-antm-icon {
|
|
38
|
+
//position: absolute;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-checked {
|
|
42
|
+
height: 100%;
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
background-color: variable.$trionesColorPrimary;
|
|
48
|
+
color: white;
|
|
49
|
+
border-radius: 50vh;
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
.triones-antm-icon{
|
|
53
|
+
font-size: 14Px;
|
|
54
|
+
}
|
|
55
|
+
//i{
|
|
56
|
+
// width: 100%;
|
|
57
|
+
// height: 100%;
|
|
58
|
+
// display: flex;
|
|
59
|
+
// align-items: center;
|
|
60
|
+
// justify-content: center;
|
|
61
|
+
//}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-unchecked {
|
|
65
|
+
height: 100%;
|
|
66
|
+
width: 100%;
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
align-items: center;
|
|
70
|
+
border-radius: 50vh;
|
|
71
|
+
border: 1PX solid variable.$trionesBorderColor;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
&.#{$checkboxCls}-disabled {
|
|
79
|
+
color: $checkboxDisabledColor;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
|
|
82
|
+
.#{$checkboxCls}-fake-checked {
|
|
83
|
+
background-color: $checkboxDisabledColor;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.triones-antm-icon {
|
|
88
|
+
//position: absolute;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
.#{$checkboxCls}-button {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
padding: 4Px 12Px;
|
|
97
|
+
border-radius: variable.$trionesBorderRadius;
|
|
98
|
+
position: relative;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
background-color: variable.$trionesColorFillSecondary;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
border: 1Px solid variable.$trionesColorFillSecondary;
|
|
103
|
+
|
|
104
|
+
&-checked {
|
|
105
|
+
background-color: #ffffff;
|
|
106
|
+
border: 1Px solid variable.$trionesColorPrimary;
|
|
107
|
+
|
|
108
|
+
.#{$checkboxCls}-button-content {
|
|
109
|
+
color: variable.$trionesColorPrimary;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-disabled {
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
color: $checkboxDisabledColor;
|
|
116
|
+
|
|
117
|
+
&.#{$checkboxCls}-button {
|
|
118
|
+
&-checked {
|
|
119
|
+
border: 1Px solid $checkboxDisabledColor;
|
|
120
|
+
|
|
121
|
+
.#{$checkboxCls}-button-content {
|
|
122
|
+
color: $checkboxDisabledColor;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.#{$checkboxCls}-button-icon {
|
|
127
|
+
border-bottom: 10Px solid $checkboxDisabledColor;
|
|
128
|
+
border-right: 10Px solid $checkboxDisabledColor;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
&-icon {
|
|
136
|
+
align-items: flex-end;
|
|
137
|
+
border-bottom: 10Px solid variable.$trionesColorPrimary;
|
|
138
|
+
border-left: 10Px solid transparent;
|
|
139
|
+
border-right: 10Px solid variable.$trionesColorPrimary;
|
|
140
|
+
border-top: 10Px solid transparent;
|
|
141
|
+
bottom: 0;
|
|
142
|
+
display: flex;
|
|
143
|
+
height: 0;
|
|
144
|
+
justify-content: flex-end;
|
|
145
|
+
position: absolute;
|
|
146
|
+
right: 0;
|
|
147
|
+
width: 0;
|
|
148
|
+
|
|
149
|
+
.checkedIcon {
|
|
150
|
+
font-size: 6Px;
|
|
151
|
+
position: absolute;
|
|
152
|
+
left: 50%;
|
|
153
|
+
top: 50%;
|
|
154
|
+
transform: translate(1Px, -1Px);
|
|
155
|
+
//font-family: "triones-ant-mini-icon" !important;
|
|
156
|
+
font-style: normal;
|
|
157
|
+
color: #ffffff;
|
|
158
|
+
|
|
159
|
+
&::before {
|
|
160
|
+
font-style: normal;
|
|
161
|
+
//content: "\e75f";
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.demoBlock {
|
|
2
|
-
font-size: 14px;
|
|
3
|
-
margin-bottom: 12px;
|
|
4
|
-
&:last-of-type {
|
|
5
|
-
padding-bottom: 32px;
|
|
6
|
-
}
|
|
7
|
-
scrollbar-width: thin;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.demoTitle {
|
|
11
|
-
padding: 12px 12px 8px;
|
|
12
|
-
color: #697b8c;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
background: #fafbfc;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.demoMain {
|
|
18
|
-
border-right: none;
|
|
19
|
-
border-left: none;
|
|
20
|
-
}
|
|
1
|
+
.demoBlock {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
margin-bottom: 12px;
|
|
4
|
+
&:last-of-type {
|
|
5
|
+
padding-bottom: 32px;
|
|
6
|
+
}
|
|
7
|
+
scrollbar-width: thin;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.demoTitle {
|
|
11
|
+
padding: 12px 12px 8px;
|
|
12
|
+
color: #697b8c;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
background: #fafbfc;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.demoMain {
|
|
18
|
+
border-right: none;
|
|
19
|
+
border-left: none;
|
|
20
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.demoDescription {
|
|
2
|
-
color: var(--triones-antm-color-weak);
|
|
3
|
-
}
|
|
1
|
+
.demoDescription {
|
|
2
|
+
color: var(--triones-antm-color-weak);
|
|
3
|
+
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$descriptionsCls: 'triones-antm-descriptions';
|
|
4
|
-
.#{$descriptionsCls} {
|
|
5
|
-
&-header {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&-view {
|
|
9
|
-
display: grid;
|
|
10
|
-
|
|
11
|
-
.#{$descriptionsCls} {
|
|
12
|
-
&-row {
|
|
13
|
-
display: flex;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-item {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
padding: 4Px 4Px;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
&-label {
|
|
22
|
-
color: variable.$trionesColorTextSecondary;
|
|
23
|
-
word-wrap: break-word; /* 允许长单词或URL换行 */
|
|
24
|
-
overflow-wrap: break-word; /* 更标准的属性名 */
|
|
25
|
-
white-space: normal; /* 默认换行行为 */
|
|
26
|
-
flex-shrink: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-content {
|
|
30
|
-
word-wrap: break-word; /* 允许长单词或URL换行 */
|
|
31
|
-
overflow-wrap: break-word; /* 更标准的属性名 */
|
|
32
|
-
white-space: normal; /* 默认换行行为 */
|
|
33
|
-
flex: 1 auto;
|
|
34
|
-
min-width: 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-bordered {
|
|
41
|
-
border: 1Px solid variable.$trionesBorderColor;
|
|
42
|
-
border-radius: variable.$trionesBorderRadius;
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
|
|
45
|
-
.#{$descriptionsCls} {
|
|
46
|
-
&-view{
|
|
47
|
-
background-color: rgba(5,5,5,0.06);
|
|
48
|
-
grid-gap: 1Px;
|
|
49
|
-
}
|
|
50
|
-
&-item {
|
|
51
|
-
&-label {
|
|
52
|
-
display: flex;
|
|
53
|
-
background-color: rgb(250, 250, 250);
|
|
54
|
-
align-items: center;
|
|
55
|
-
padding: 4Px 4Px;
|
|
56
|
-
}
|
|
57
|
-
&-content {
|
|
58
|
-
background-color: white;
|
|
59
|
-
padding: 4Px 4Px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$descriptionsCls: 'triones-antm-descriptions';
|
|
4
|
+
.#{$descriptionsCls} {
|
|
5
|
+
&-header {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-view {
|
|
9
|
+
display: grid;
|
|
10
|
+
|
|
11
|
+
.#{$descriptionsCls} {
|
|
12
|
+
&-row {
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
padding: 4Px 4Px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
&-label {
|
|
22
|
+
color: variable.$trionesColorTextSecondary;
|
|
23
|
+
word-wrap: break-word; /* 允许长单词或URL换行 */
|
|
24
|
+
overflow-wrap: break-word; /* 更标准的属性名 */
|
|
25
|
+
white-space: normal; /* 默认换行行为 */
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-content {
|
|
30
|
+
word-wrap: break-word; /* 允许长单词或URL换行 */
|
|
31
|
+
overflow-wrap: break-word; /* 更标准的属性名 */
|
|
32
|
+
white-space: normal; /* 默认换行行为 */
|
|
33
|
+
flex: 1 auto;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-bordered {
|
|
41
|
+
border: 1Px solid variable.$trionesBorderColor;
|
|
42
|
+
border-radius: variable.$trionesBorderRadius;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
|
|
45
|
+
.#{$descriptionsCls} {
|
|
46
|
+
&-view{
|
|
47
|
+
background-color: rgba(5,5,5,0.06);
|
|
48
|
+
grid-gap: 1Px;
|
|
49
|
+
}
|
|
50
|
+
&-item {
|
|
51
|
+
&-label {
|
|
52
|
+
display: flex;
|
|
53
|
+
background-color: rgb(250, 250, 250);
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 4Px 4Px;
|
|
56
|
+
}
|
|
57
|
+
&-content {
|
|
58
|
+
background-color: white;
|
|
59
|
+
padding: 4Px 4Px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -10,7 +10,7 @@ interface BasicComponent {
|
|
|
10
10
|
export type DividerContentPosition = 'left' | 'center' | 'right';
|
|
11
11
|
export type DividerDirection = 'horizontal' | 'vertical';
|
|
12
12
|
export interface DividerProps extends BasicComponent {
|
|
13
|
-
contentPosition
|
|
13
|
+
contentPosition?: DividerContentPosition;
|
|
14
14
|
direction?: DividerDirection;
|
|
15
15
|
}
|
|
16
16
|
export declare const Divider: FC<Partial<DividerProps> & React.HTMLAttributes<HTMLDivElement>>;
|
package/dist/Divider/divider.js
CHANGED
|
@@ -28,9 +28,11 @@ export var Divider = function Divider(props) {
|
|
|
28
28
|
className = _defaultProps$props.className,
|
|
29
29
|
direction = _defaultProps$props.direction,
|
|
30
30
|
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
31
|
-
var classes =
|
|
31
|
+
var classes = classNames(classPrefix, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(classPrefix, "-vertical"), direction === 'vertical'), "".concat(classPrefix, "-hairline"), direction === 'horizontal'), "".concat(classPrefix, "-center"), direction === 'horizontal' && !!children && contentPosition === 'center'), "".concat(classPrefix, "-left"), direction === 'horizontal' && contentPosition === 'left'), "".concat(classPrefix, "-right"), direction === 'horizontal' && contentPosition === 'right'), className);
|
|
32
32
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
33
|
-
className:
|
|
34
|
-
style: style
|
|
33
|
+
className: classes,
|
|
34
|
+
style: style,
|
|
35
|
+
role: "separator",
|
|
36
|
+
"aria-orientation": direction
|
|
35
37
|
}, rest), children);
|
|
36
38
|
};
|
package/dist/Divider/style.scss
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$dividerCls: 'triones-antm-divider';
|
|
4
|
-
/* prettier-ignore */
|
|
5
|
-
.#{$dividerCls} {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
font-size: 14PX;
|
|
9
|
-
color: variable.$trionesBorderColor;
|
|
10
|
-
border: 0 solid variable.$trionesBorderColor ;
|
|
11
|
-
width: 100%;
|
|
12
|
-
|
|
13
|
-
&::before,
|
|
14
|
-
&::after {
|
|
15
|
-
content: '';
|
|
16
|
-
border-style: inherit;
|
|
17
|
-
border-color: inherit;
|
|
18
|
-
border-width: 1PX 0 0;
|
|
19
|
-
height: 1PX;
|
|
20
|
-
flex: 1;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-center,
|
|
24
|
-
&-left,
|
|
25
|
-
&-right {
|
|
26
|
-
&::before {
|
|
27
|
-
margin-right: 8PX;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&::after {
|
|
31
|
-
margin-left: 8PX;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-left {
|
|
36
|
-
&::before {
|
|
37
|
-
max-width: 10%;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-right {
|
|
42
|
-
&::after {
|
|
43
|
-
max-width: 10%;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-hairline {
|
|
48
|
-
&::before,
|
|
49
|
-
&::after {
|
|
50
|
-
transform: scaleY(0.5);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-vertical {
|
|
55
|
-
display: inline-block;
|
|
56
|
-
width: auto;
|
|
57
|
-
height: 12PX;
|
|
58
|
-
border-left: 1PX solid
|
|
59
|
-
margin: 0 8PX;
|
|
60
|
-
vertical-align: middle;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$dividerCls: 'triones-antm-divider';
|
|
4
|
+
/* prettier-ignore */
|
|
5
|
+
.#{$dividerCls} {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
font-size: 14PX;
|
|
9
|
+
color: variable.$trionesBorderColor;
|
|
10
|
+
border: 0 solid variable.$trionesBorderColor ;
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
&::before,
|
|
14
|
+
&::after {
|
|
15
|
+
content: '';
|
|
16
|
+
border-style: inherit;
|
|
17
|
+
border-color: inherit;
|
|
18
|
+
border-width: 1PX 0 0;
|
|
19
|
+
height: 1PX;
|
|
20
|
+
flex: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-center,
|
|
24
|
+
&-left,
|
|
25
|
+
&-right {
|
|
26
|
+
&::before {
|
|
27
|
+
margin-right: 8PX;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&::after {
|
|
31
|
+
margin-left: 8PX;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-left {
|
|
36
|
+
&::before {
|
|
37
|
+
max-width: 10%;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-right {
|
|
42
|
+
&::after {
|
|
43
|
+
max-width: 10%;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-hairline {
|
|
48
|
+
&::before,
|
|
49
|
+
&::after {
|
|
50
|
+
// transform: scaleY(0.5);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-vertical {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
width: auto;
|
|
57
|
+
height: 12PX;
|
|
58
|
+
border-left: 1PX solid variable.$trionesBorderColor;
|
|
59
|
+
margin: 0 8PX;
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
}
|
|
62
|
+
}
|