tdesign-react 0.42.7-alpha.1 → 0.42.7-alpha.2
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/cjs/_chunks/dep-6a672006.js +515 -0
- package/cjs/_chunks/dep-6a672006.js.map +1 -0
- package/cjs/_chunks/dep-b5df8873.js +198 -0
- package/cjs/_chunks/dep-b5df8873.js.map +1 -0
- package/cjs/avatar/AvararGroup.js +1 -1
- package/cjs/avatar/Avatar.js +1 -1
- package/cjs/avatar/index.js +1 -1
- package/cjs/form/Form.js +1 -1
- package/cjs/form/FormItem.js +1 -1
- package/cjs/form/index.js +1 -1
- package/cjs/form/useInitialData.js +1 -1
- package/cjs/image-viewer/ImageViewer.js +1 -1
- package/cjs/image-viewer/ImageViewerMini.js +1 -1
- package/cjs/image-viewer/ImageViewerModel.js +1 -1
- package/cjs/image-viewer/index.js +1 -1
- package/cjs/index-lib.js +2 -2
- package/cjs/index.js +2 -2
- package/cjs/popup/hooks/useTrigger.js +3 -29
- package/cjs/popup/hooks/useTrigger.js.map +1 -1
- package/cjs/upload/index.js +1 -1
- package/cjs/upload/themes/DraggerFile.js +1 -1
- package/cjs/upload/themes/ImageCard.js +1 -1
- package/cjs/upload/themes/MultipleFlowList.js +1 -1
- package/cjs/upload/upload.js +1 -1
- package/dist/tdesign.css +317 -301
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +3 -5
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +1 -1
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-51336096.js → dep-26aef3c9.js} +1 -1
- package/{lib/_chunks/dep-db75b5b6.js.map → es/_chunks/dep-26aef3c9.js.map} +1 -1
- package/{esm/_chunks/dep-8e115ca7.js → es/_chunks/dep-5e0eb6ae.js} +1 -1
- package/{esm/_chunks/dep-8e115ca7.js.map → es/_chunks/dep-5e0eb6ae.js.map} +1 -1
- package/es/alert/style/index.css +26 -14
- package/es/anchor/style/index.css +5 -12
- package/es/avatar/AvararGroup.js +1 -1
- package/es/avatar/Avatar.js +1 -1
- package/es/avatar/index.js +1 -1
- package/es/breadcrumb/style/index.css +4 -4
- package/es/button/style/index.css +10 -10
- package/es/dialog/style/index.css +4 -4
- package/es/divider/style/index.css +2 -2
- package/es/drawer/style/index.css +16 -11
- package/es/dropdown/style/index.css +11 -10
- package/es/form/Form.js +1 -1
- package/es/form/FormItem.js +1 -1
- package/es/form/index.js +1 -1
- package/es/form/style/index.css +2 -2
- package/es/form/useInitialData.js +1 -1
- package/es/guide/style/index.css +9 -9
- package/es/image-viewer/ImageViewer.js +1 -1
- package/es/image-viewer/ImageViewerMini.js +1 -1
- package/es/image-viewer/ImageViewerModel.js +1 -1
- package/es/image-viewer/index.js +1 -1
- package/es/index.js +2 -2
- package/es/input/style/index.css +1 -1
- package/es/layout/style/index.css +3 -3
- package/es/link/style/index.css +6 -6
- package/es/list/style/index.css +1 -1
- package/es/menu/style/index.css +26 -26
- package/es/message/style/index.css +6 -6
- package/es/notification/style/index.css +8 -13
- package/es/pagination/style/index.css +23 -23
- package/es/popconfirm/style/index.css +7 -7
- package/es/popup/hooks/useTrigger.js +3 -33
- package/es/popup/hooks/useTrigger.js.map +1 -1
- package/es/popup/style/index.css +1 -1
- package/es/radio/style/index.css +16 -1
- package/es/rate/style/index.css +5 -4
- package/es/steps/style/index.css +34 -43
- package/es/style/index.css +4 -3
- package/es/swiper/style/index.css +42 -42
- package/es/tabs/style/index.css +12 -12
- package/es/tag-input/style/index.css +7 -7
- package/es/tree/style/index.css +26 -24
- package/es/upload/index.js +1 -1
- package/es/upload/themes/DraggerFile.js +1 -1
- package/es/upload/themes/ImageCard.js +1 -1
- package/es/upload/themes/MultipleFlowList.js +1 -1
- package/es/upload/upload.js +1 -1
- package/{es/_chunks/dep-8e115ca7.js → esm/_chunks/dep-5e0eb6ae.js} +1 -1
- package/{es/_chunks/dep-8e115ca7.js.map → esm/_chunks/dep-5e0eb6ae.js.map} +1 -1
- package/esm/_chunks/{dep-fad7989c.js → dep-72461c3f.js} +1 -1
- package/{es/_chunks/dep-51336096.js.map → esm/_chunks/dep-72461c3f.js.map} +1 -1
- package/esm/_common/style/web/_variables.less +7 -6
- package/esm/_common/style/web/components/alert/_index.less +12 -6
- package/esm/_common/style/web/components/alert/_var.less +19 -10
- package/esm/_common/style/web/components/anchor/_index.less +4 -10
- package/esm/_common/style/web/components/anchor/_var.less +9 -23
- package/esm/_common/style/web/components/breadcrumb/_index.less +4 -4
- package/esm/_common/style/web/components/breadcrumb/_var.less +2 -2
- package/esm/_common/style/web/components/button/_var.less +2 -2
- package/esm/_common/style/web/components/dialog/_var.less +2 -2
- package/esm/_common/style/web/components/divider/_var.less +2 -2
- package/esm/_common/style/web/components/drawer/_index.less +2 -1
- package/esm/_common/style/web/components/drawer/_var.less +9 -10
- package/esm/_common/style/web/components/dropdown-new/_index.less +7 -6
- package/esm/_common/style/web/components/dropdown-new/_var.less +8 -4
- package/esm/_common/style/web/components/form/_index.less +1 -1
- package/esm/_common/style/web/components/guide/_index.less +8 -8
- package/esm/_common/style/web/components/guide/_var.less +10 -0
- package/esm/_common/style/web/components/layout/_var.less +2 -5
- package/esm/_common/style/web/components/link/_var.less +5 -5
- package/esm/_common/style/web/components/menu/_index-v2.less +26 -26
- package/esm/_common/style/web/components/menu/_index.less +25 -25
- package/esm/_common/style/web/components/menu/_var.less +1 -7
- package/esm/_common/style/web/components/message/_index.less +1 -1
- package/esm/_common/style/web/components/message/_var.less +7 -10
- package/esm/_common/style/web/components/notification/_index.less +0 -5
- package/esm/_common/style/web/components/notification/_var.less +9 -11
- package/esm/_common/style/web/components/pagination/_index.less +1 -1
- package/esm/_common/style/web/components/pagination/_var.less +8 -8
- package/esm/_common/style/web/components/popconfirm/_index.less +3 -3
- package/esm/_common/style/web/components/popconfirm/_var.less +12 -11
- package/esm/_common/style/web/components/radio/_index.less +26 -0
- package/esm/_common/style/web/components/radio/_var.less +4 -1
- package/esm/_common/style/web/components/rate/_index.less +2 -3
- package/esm/_common/style/web/components/rate/_var.less +2 -8
- package/esm/_common/style/web/components/steps/_index.less +1 -7
- package/esm/_common/style/web/components/steps/_mixin.less +10 -11
- package/esm/_common/style/web/components/steps/_var.less +14 -17
- package/esm/_common/style/web/components/swiper/_mixin.less +1 -1
- package/esm/_common/style/web/components/tabs/_var.less +2 -2
- package/esm/_common/style/web/components/tag-input/_index.less +5 -4
- package/esm/_common/style/web/components/tree/_index.less +8 -8
- package/esm/_common/style/web/components/tree/_var.less +17 -13
- package/esm/_common/style/web/theme/_size.less +4 -3
- package/esm/avatar/AvararGroup.js +1 -1
- package/esm/avatar/Avatar.js +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/form/Form.js +1 -1
- package/esm/form/FormItem.js +1 -1
- package/esm/form/index.js +1 -1
- package/esm/form/useInitialData.js +1 -1
- package/esm/image-viewer/ImageViewer.js +1 -1
- package/esm/image-viewer/ImageViewerMini.js +1 -1
- package/esm/image-viewer/ImageViewerModel.js +1 -1
- package/esm/image-viewer/index.js +1 -1
- package/esm/index.js +2 -2
- package/esm/popup/hooks/useTrigger.js +3 -33
- package/esm/popup/hooks/useTrigger.js.map +1 -1
- package/esm/upload/index.js +1 -1
- package/esm/upload/themes/DraggerFile.js +1 -1
- package/esm/upload/themes/ImageCard.js +1 -1
- package/esm/upload/themes/MultipleFlowList.js +1 -1
- package/esm/upload/upload.js +1 -1
- package/lib/_chunks/{dep-db75b5b6.js → dep-1b32736a.js} +1 -1
- package/{esm/_chunks/dep-fad7989c.js.map → lib/_chunks/dep-1b32736a.js.map} +1 -1
- package/lib/_chunks/{dep-75db5f2e.js → dep-61f02037.js} +1 -1
- package/lib/_chunks/{dep-75db5f2e.js.map → dep-61f02037.js.map} +1 -1
- package/lib/avatar/AvararGroup.js +1 -1
- package/lib/avatar/Avatar.js +1 -1
- package/lib/avatar/index.js +1 -1
- package/lib/form/Form.js +1 -1
- package/lib/form/FormItem.js +1 -1
- package/lib/form/index.js +1 -1
- package/lib/form/useInitialData.js +1 -1
- package/lib/image-viewer/ImageViewer.js +1 -1
- package/lib/image-viewer/ImageViewerMini.js +1 -1
- package/lib/image-viewer/ImageViewerModel.js +1 -1
- package/lib/image-viewer/index.js +1 -1
- package/lib/index.js +2 -2
- package/lib/popup/hooks/useTrigger.js +3 -29
- package/lib/popup/hooks/useTrigger.js.map +1 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/themes/DraggerFile.js +1 -1
- package/lib/upload/themes/ImageCard.js +1 -1
- package/lib/upload/themes/MultipleFlowList.js +1 -1
- package/lib/upload/upload.js +1 -1
- package/package.json +1 -1
- package/esm/_common/style/web/components/dropdown/_index.less +0 -99
- package/esm/_common/style/web/components/dropdown/_mixin.less +0 -0
- package/esm/_common/style/web/components/dropdown/_var.less +0 -22
|
@@ -130,8 +130,14 @@
|
|
|
130
130
|
transform: translateY(100%);
|
|
131
131
|
}
|
|
132
132
|
.t-drawer__header {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
display: -webkit-box;
|
|
134
|
+
display: -ms-flexbox;
|
|
135
|
+
display: flex;
|
|
136
|
+
-webkit-box-align: center;
|
|
137
|
+
-ms-flex-align: center;
|
|
138
|
+
align-items: center;
|
|
139
|
+
min-height: var(--td-comp-size-xxxl);
|
|
140
|
+
padding: 0 var(--td-comp-paddingLR-l);
|
|
135
141
|
font: var(--td-font-title-medium);
|
|
136
142
|
color: var(--td-text-color-primary);
|
|
137
143
|
border-bottom: 1px solid var(--td-border-level-1-color);
|
|
@@ -140,7 +146,7 @@
|
|
|
140
146
|
box-sizing: border-box;
|
|
141
147
|
}
|
|
142
148
|
.t-drawer__body {
|
|
143
|
-
padding:
|
|
149
|
+
padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l);
|
|
144
150
|
overflow: auto;
|
|
145
151
|
-webkit-box-flex: 1;
|
|
146
152
|
-ms-flex: 1;
|
|
@@ -148,8 +154,7 @@
|
|
|
148
154
|
}
|
|
149
155
|
.t-drawer__footer {
|
|
150
156
|
width: 100%;
|
|
151
|
-
|
|
152
|
-
padding: 10px 16px;
|
|
157
|
+
padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l);
|
|
153
158
|
text-align: left;
|
|
154
159
|
border-top: 1px solid var(--td-border-level-1-color);
|
|
155
160
|
background-color: var(--td-bg-color-container);
|
|
@@ -157,7 +162,7 @@
|
|
|
157
162
|
box-sizing: border-box;
|
|
158
163
|
}
|
|
159
164
|
.t-drawer__footer .t-button {
|
|
160
|
-
margin-left:
|
|
165
|
+
margin-left: var(--td-comp-margin-s);
|
|
161
166
|
}
|
|
162
167
|
.t-drawer__footer .t-button:first-child {
|
|
163
168
|
margin-left: 0;
|
|
@@ -173,10 +178,10 @@
|
|
|
173
178
|
-webkit-box-align: center;
|
|
174
179
|
-ms-flex-align: center;
|
|
175
180
|
align-items: center;
|
|
176
|
-
width:
|
|
177
|
-
height:
|
|
178
|
-
top:
|
|
179
|
-
right:
|
|
181
|
+
width: var(--td-comp-size-xs);
|
|
182
|
+
height: var(--td-comp-size-xs);
|
|
183
|
+
top: var(--td-comp-margin-s);
|
|
184
|
+
right: var(--td-comp-margin-s);
|
|
180
185
|
color: var(--td-text-color-primary);
|
|
181
186
|
background-color: var(--td-bg-color-container);
|
|
182
187
|
border-radius: var(--td-radius-default);
|
|
@@ -191,7 +196,7 @@
|
|
|
191
196
|
background-color: var(--td-bg-color-container-active);
|
|
192
197
|
}
|
|
193
198
|
.t-drawer__close-btn .t-icon {
|
|
194
|
-
font-size: var(--td-font-size-body-
|
|
199
|
+
font-size: calc(var(--td-font-size-body-medium) + 2px);
|
|
195
200
|
vertical-align: unset;
|
|
196
201
|
}
|
|
197
202
|
.t-drawer--open {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
-ms-flex-direction: column;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
border-radius: var(--td-radius-medium);
|
|
31
|
-
padding:
|
|
31
|
+
padding: var(--td-pop-padding-m);
|
|
32
32
|
gap: 2px;
|
|
33
33
|
overflow-y: auto;
|
|
34
34
|
overflow-x: hidden;
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
background-color: var(--td-scrollbar-hover-color);
|
|
49
49
|
}
|
|
50
50
|
.t-dropdown__menu .t-divider {
|
|
51
|
-
margin:
|
|
51
|
+
margin: var(--td-comp-margin-xs) var(--td-comp-margin-s) var(--td-comp-margin-xxs) var(--td-comp-margin-s);
|
|
52
52
|
color: var(--td-brand-color-light);
|
|
53
|
-
width: calc(100% -
|
|
53
|
+
width: calc(100% - var(--td-comp-margin-s) * 2);
|
|
54
54
|
}
|
|
55
55
|
.t-dropdown__menu--right .t-dropdown__item-direction {
|
|
56
|
-
margin: 0 0 0
|
|
56
|
+
margin: 0 0 0 var(--td-comp-margin-s);
|
|
57
57
|
}
|
|
58
58
|
.t-dropdown__menu--left .t-dropdown__item {
|
|
59
59
|
-webkit-box-pack: right;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
text-align: right;
|
|
65
65
|
}
|
|
66
66
|
.t-dropdown__menu--left .t-dropdown__item-direction {
|
|
67
|
-
margin: 0
|
|
67
|
+
margin: 0 var(--td-comp-margin-s) 0 0;
|
|
68
68
|
}
|
|
69
69
|
.t-dropdown__submenu {
|
|
70
70
|
background-color: var(--td-bg-color-container);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
border: 0.5px solid var(--td-component-border);
|
|
75
75
|
z-index: 1100;
|
|
76
76
|
position: absolute;
|
|
77
|
-
padding:
|
|
77
|
+
padding: var(--td-pop-padding-m);
|
|
78
78
|
display: none;
|
|
79
79
|
}
|
|
80
80
|
.t-dropdown__submenu ul {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
left: calc(100% - 6px);
|
|
91
91
|
}
|
|
92
92
|
.t-dropdown__submenu--right .t-dropdown__item-direction {
|
|
93
|
-
margin: 0 0 0
|
|
93
|
+
margin: 0 0 0 var(--td-comp-margin-s);
|
|
94
94
|
}
|
|
95
95
|
.t-dropdown__submenu--left {
|
|
96
96
|
right: calc(100% - 6px);
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
text-align: right;
|
|
105
105
|
}
|
|
106
106
|
.t-dropdown__submenu--left .t-dropdown__item-direction {
|
|
107
|
-
margin: 0
|
|
107
|
+
margin: 0 var(--td-comp-margin-s) 0 0;
|
|
108
108
|
}
|
|
109
109
|
.t-dropdown__item {
|
|
110
110
|
border-radius: var(--td-radius-default);
|
|
@@ -124,7 +124,8 @@
|
|
|
124
124
|
-webkit-box-align: center;
|
|
125
125
|
-ms-flex-align: center;
|
|
126
126
|
align-items: center;
|
|
127
|
-
|
|
127
|
+
height: var(--td-comp-size-s);
|
|
128
|
+
padding: 0 var(--td-comp-paddingLR-s);
|
|
128
129
|
--ripple-color: var(--td-bg-color-container-active);
|
|
129
130
|
}
|
|
130
131
|
.t-dropdown__item-icon {
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
display: -ms-flexbox;
|
|
133
134
|
display: flex;
|
|
134
135
|
color: currentcolor;
|
|
135
|
-
margin-right:
|
|
136
|
+
margin-right: var(--td-comp-margin-s);
|
|
136
137
|
font-size: var(--td-font-size-body-large);
|
|
137
138
|
}
|
|
138
139
|
.t-dropdown__item:hover > div {
|
package/es/form/Form.js
CHANGED
|
@@ -148,7 +148,7 @@ import '../hooks/useCommonClassName.js';
|
|
|
148
148
|
import '../upload/hooks/useDrag.js';
|
|
149
149
|
import '../image-viewer/index.js';
|
|
150
150
|
import '../image-viewer/ImageViewer.js';
|
|
151
|
-
import '../_chunks/dep-
|
|
151
|
+
import '../_chunks/dep-26aef3c9.js';
|
|
152
152
|
import '../tooltip/index.js';
|
|
153
153
|
import '../tooltip/Tooltip.js';
|
|
154
154
|
import '../popup/index.js';
|
package/es/form/FormItem.js
CHANGED
|
@@ -144,7 +144,7 @@ import '../hooks/useCommonClassName.js';
|
|
|
144
144
|
import '../upload/hooks/useDrag.js';
|
|
145
145
|
import '../image-viewer/index.js';
|
|
146
146
|
import '../image-viewer/ImageViewer.js';
|
|
147
|
-
import '../_chunks/dep-
|
|
147
|
+
import '../_chunks/dep-26aef3c9.js';
|
|
148
148
|
import '../tooltip/index.js';
|
|
149
149
|
import '../tooltip/Tooltip.js';
|
|
150
150
|
import '../popup/index.js';
|
package/es/form/index.js
CHANGED
|
@@ -150,7 +150,7 @@ import '../hooks/useCommonClassName.js';
|
|
|
150
150
|
import '../upload/hooks/useDrag.js';
|
|
151
151
|
import '../image-viewer/index.js';
|
|
152
152
|
import '../image-viewer/ImageViewer.js';
|
|
153
|
-
import '../_chunks/dep-
|
|
153
|
+
import '../_chunks/dep-26aef3c9.js';
|
|
154
154
|
import '../tooltip/index.js';
|
|
155
155
|
import '../tooltip/Tooltip.js';
|
|
156
156
|
import '../popup/index.js';
|
package/es/form/style/index.css
CHANGED
|
@@ -162,13 +162,13 @@
|
|
|
162
162
|
margin: 0;
|
|
163
163
|
width: 100%;
|
|
164
164
|
height: auto;
|
|
165
|
-
min-height:
|
|
165
|
+
min-height: var(--td-line-height-body-small);
|
|
166
166
|
font: var(--td-font-body-small);
|
|
167
167
|
color: var(--td-text-color-placeholder);
|
|
168
168
|
}
|
|
169
169
|
.t-input__extra {
|
|
170
170
|
position: absolute;
|
|
171
|
-
bottom: -
|
|
171
|
+
bottom: calc(0px - var(--td-line-height-body-small));
|
|
172
172
|
max-width: 100%;
|
|
173
173
|
overflow: hidden;
|
|
174
174
|
text-overflow: ellipsis;
|
|
@@ -140,7 +140,7 @@ import '../hooks/useCommonClassName.js';
|
|
|
140
140
|
import '../upload/hooks/useDrag.js';
|
|
141
141
|
import '../image-viewer/index.js';
|
|
142
142
|
import '../image-viewer/ImageViewer.js';
|
|
143
|
-
import '../_chunks/dep-
|
|
143
|
+
import '../_chunks/dep-26aef3c9.js';
|
|
144
144
|
import '../tooltip/index.js';
|
|
145
145
|
import '../tooltip/Tooltip.js';
|
|
146
146
|
import '../popup/index.js';
|
package/es/guide/style/index.css
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
.t-guide__highlight {
|
|
28
28
|
z-index: 999998;
|
|
29
|
-
-webkit-transition: 0.
|
|
30
|
-
transition: 0.
|
|
29
|
+
-webkit-transition: 0.2s cubic-bezier(0, 0, 0.15, 1);
|
|
30
|
+
transition: 0.2s cubic-bezier(0, 0, 0.15, 1);
|
|
31
31
|
border-radius: var(--td-radius-default);
|
|
32
32
|
}
|
|
33
33
|
.t-guide__highlight--dialog {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
.t-guide__dialog {
|
|
71
71
|
min-width: 320px;
|
|
72
72
|
max-width: 500px;
|
|
73
|
-
padding:
|
|
73
|
+
padding: var(--td-comp-paddingTB-xxl) var(--td-comp-paddingLR-xxl);
|
|
74
74
|
border-radius: var(--td-radius-large);
|
|
75
75
|
background: var(--td-bg-color-container);
|
|
76
76
|
-webkit-animation: tGuideDialogFadeIn 0.3s ease-out;
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
font-weight: 700;
|
|
87
87
|
}
|
|
88
88
|
.t-guide__dialog .t-guide__desc {
|
|
89
|
-
margin-top:
|
|
89
|
+
margin-top: var(--td-comp-margin-l);
|
|
90
90
|
font: var(--td-font-body-medium);
|
|
91
91
|
}
|
|
92
92
|
.t-guide__tooltip {
|
|
93
|
-
padding:
|
|
93
|
+
padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-s);
|
|
94
94
|
min-width: 240px;
|
|
95
95
|
max-width: 600px;
|
|
96
96
|
max-height: 300px;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
font-weight: 700;
|
|
103
103
|
}
|
|
104
104
|
.t-guide__desc {
|
|
105
|
-
margin-top:
|
|
105
|
+
margin-top: var(--td-comp-margin-s);
|
|
106
106
|
text-align: left;
|
|
107
107
|
color: var(--td-text-color-secondary);
|
|
108
108
|
font: var(--td-font-body-small);
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
align-items: center;
|
|
117
117
|
}
|
|
118
118
|
.t-guide__action button {
|
|
119
|
-
margin-right:
|
|
119
|
+
margin-right: var(--td-comp-margin-s);
|
|
120
120
|
}
|
|
121
121
|
.t-guide__action button:last-child {
|
|
122
122
|
margin-right: 0;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
align-items: center;
|
|
131
131
|
}
|
|
132
132
|
.t-guide__footer--popup {
|
|
133
|
-
margin-top:
|
|
133
|
+
margin-top: var(--td-comp-margin-l);
|
|
134
134
|
}
|
|
135
135
|
.t-guide__footer--dialog {
|
|
136
136
|
margin-top: 24px;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
justify-content: center;
|
|
145
145
|
}
|
|
146
146
|
.t-guide__counter {
|
|
147
|
-
color: var(--td-
|
|
147
|
+
color: var(--td-text-color-placeholder);
|
|
148
148
|
text-align: left;
|
|
149
149
|
font: var(--td-font-body-small);
|
|
150
150
|
-webkit-box-flex: 1;
|
|
@@ -8,7 +8,7 @@ import { _ as _slicedToArray } from '../_chunks/dep-1e7c37d1.js';
|
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
import { createPortal } from 'react-dom';
|
|
10
10
|
import { i as isFunction_1 } from '../_chunks/dep-f04f14fc.js';
|
|
11
|
-
import { I as ImageModal } from '../_chunks/dep-
|
|
11
|
+
import { I as ImageModal } from '../_chunks/dep-26aef3c9.js';
|
|
12
12
|
import { imageViewerDefaultProps } from './defaultProps.js';
|
|
13
13
|
import useImageScale from './hooks/useImageScale.js';
|
|
14
14
|
import useList from './hooks/useList.js';
|
|
@@ -8,7 +8,7 @@ import '../_chunks/dep-415453d0.js';
|
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'tdesign-icons-react';
|
|
10
10
|
import '../dialog/index.js';
|
|
11
|
-
export { b as ImageModelMini, a as ImageModelMiniContent } from '../_chunks/dep-
|
|
11
|
+
export { b as ImageModelMini, a as ImageModelMiniContent } from '../_chunks/dep-26aef3c9.js';
|
|
12
12
|
import '../hooks/useConfig.js';
|
|
13
13
|
import '../hooks/useGlobalIcon.js';
|
|
14
14
|
import '../dialog/Dialog.js';
|
|
@@ -15,7 +15,7 @@ import 'classnames';
|
|
|
15
15
|
import '../tooltip/index.js';
|
|
16
16
|
import '../hooks/useConfig.js';
|
|
17
17
|
import './utils.js';
|
|
18
|
-
export { I as ImageModal, c as ImageModelItem, d as ImageViewerUtils } from '../_chunks/dep-
|
|
18
|
+
export { I as ImageModal, c as ImageModelItem, d as ImageViewerUtils } from '../_chunks/dep-26aef3c9.js';
|
|
19
19
|
import './hooks/useMirror.js';
|
|
20
20
|
import './hooks/usePosition.js';
|
|
21
21
|
import './hooks/useIndex.js';
|
package/es/image-viewer/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import '../_chunks/dep-c9bc823c.js';
|
|
|
16
16
|
import '../_chunks/dep-0b4df973.js';
|
|
17
17
|
import '../_chunks/dep-65de5ea7.js';
|
|
18
18
|
import '../_chunks/dep-51533589.js';
|
|
19
|
-
import '../_chunks/dep-
|
|
19
|
+
import '../_chunks/dep-26aef3c9.js';
|
|
20
20
|
import '../_chunks/dep-fe647e5e.js';
|
|
21
21
|
import '../_chunks/dep-415453d0.js';
|
|
22
22
|
import '../_chunks/dep-c3ce514a.js';
|
package/es/index.js
CHANGED
|
@@ -561,7 +561,7 @@ import './comment/style/css.js';
|
|
|
561
561
|
import './comment/type.js';
|
|
562
562
|
import './transfer/style/css.js';
|
|
563
563
|
import './transfer/type.js';
|
|
564
|
-
import './_chunks/dep-
|
|
564
|
+
import './_chunks/dep-5e0eb6ae.js';
|
|
565
565
|
import 'use-resize-observer';
|
|
566
566
|
import './avatar/AvatarContext.js';
|
|
567
567
|
import './avatar/defaultProps.js';
|
|
@@ -615,7 +615,7 @@ import './_common/js/utils/injectStyle.js';
|
|
|
615
615
|
import './watermark/defaultProps.js';
|
|
616
616
|
import './watermark/type.js';
|
|
617
617
|
import './image-viewer/ImageViewer.js';
|
|
618
|
-
import './_chunks/dep-
|
|
618
|
+
import './_chunks/dep-26aef3c9.js';
|
|
619
619
|
import './image-viewer/utils.js';
|
|
620
620
|
import './image-viewer/hooks/useMirror.js';
|
|
621
621
|
import './image-viewer/hooks/usePosition.js';
|
package/es/input/style/index.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
flex-direction: row;
|
|
30
30
|
}
|
|
31
31
|
.t-layout__header {
|
|
32
|
-
height:
|
|
32
|
+
height: var(--td-comp-size-xxxl);
|
|
33
33
|
background-color: var(--td-bg-color-container);
|
|
34
34
|
}
|
|
35
35
|
.t-layout__content {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
}
|
|
40
40
|
.t-layout__sider {
|
|
41
41
|
position: relative;
|
|
42
|
-
-webkit-transition: all 0.
|
|
43
|
-
transition: all 0.
|
|
42
|
+
-webkit-transition: all 0.2s;
|
|
43
|
+
transition: all 0.2s;
|
|
44
44
|
background: var(--td-bg-color-container);
|
|
45
45
|
width: 232px;
|
|
46
46
|
}
|
package/es/link/style/index.css
CHANGED
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
font: var(--td-font-link-medium);
|
|
16
16
|
}
|
|
17
17
|
.t-link .t-link__prefix-icon {
|
|
18
|
-
margin-right:
|
|
18
|
+
margin-right: var(--td-comp-margin-s);
|
|
19
19
|
}
|
|
20
20
|
.t-link .t-link__suffix-icon {
|
|
21
|
-
margin-left:
|
|
21
|
+
margin-left: var(--td-comp-margin-s);
|
|
22
22
|
}
|
|
23
23
|
.t-link.t-size-s {
|
|
24
24
|
font: var(--td-font-link-small);
|
|
25
25
|
}
|
|
26
26
|
.t-link.t-size-s .t-link__prefix-icon {
|
|
27
|
-
margin-right:
|
|
27
|
+
margin-right: var(--td-comp-margin-xs);
|
|
28
28
|
}
|
|
29
29
|
.t-link.t-size-s .t-link__suffix-icon {
|
|
30
|
-
margin-left:
|
|
30
|
+
margin-left: var(--td-comp-margin-xs);
|
|
31
31
|
}
|
|
32
32
|
.t-link.t-size-l {
|
|
33
33
|
font: var(--td-font-link-large);
|
|
34
34
|
}
|
|
35
35
|
.t-link.t-size-l .t-link__prefix-icon {
|
|
36
|
-
margin-right:
|
|
36
|
+
margin-right: var(--td-comp-margin-m);
|
|
37
37
|
}
|
|
38
38
|
.t-link.t-size-l .t-link__suffix-icon {
|
|
39
|
-
margin-left:
|
|
39
|
+
margin-left: var(--td-comp-margin-m);
|
|
40
40
|
}
|
|
41
41
|
.t-link--theme-default {
|
|
42
42
|
color: var(--td-text-color-primary);
|
package/es/list/style/index.css
CHANGED
package/es/menu/style/index.css
CHANGED
|
@@ -25,14 +25,14 @@ a.t-menu__item:active {
|
|
|
25
25
|
height: 64px;
|
|
26
26
|
}
|
|
27
27
|
.t-head-menu__inner li + li {
|
|
28
|
-
margin-left:
|
|
28
|
+
margin-left: var(--td-comp-margin-xs);
|
|
29
29
|
}
|
|
30
30
|
.t-head-menu__inner .t-menu:first-child {
|
|
31
|
-
margin-left:
|
|
31
|
+
margin-left: var(--td-comp-margin-xxl);
|
|
32
32
|
}
|
|
33
33
|
.t-head-menu .t-menu__logo:not(:empty) {
|
|
34
34
|
height: 100%;
|
|
35
|
-
margin-right:
|
|
35
|
+
margin-right: var(--td-comp-margin-xxxl);
|
|
36
36
|
}
|
|
37
37
|
.t-head-menu .t-menu {
|
|
38
38
|
-webkit-box-flex: 1;
|
|
@@ -56,13 +56,13 @@ a.t-menu__item:active {
|
|
|
56
56
|
height: 64px;
|
|
57
57
|
line-height: 64px;
|
|
58
58
|
text-align: right;
|
|
59
|
-
margin-right:
|
|
59
|
+
margin-right: var(--td-comp-margin-s);
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
}
|
|
62
62
|
.t-head-menu .t-menu__operations-icon {
|
|
63
63
|
width: 40px;
|
|
64
64
|
height: 40px;
|
|
65
|
-
padding:
|
|
65
|
+
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);
|
|
66
66
|
line-height: 40px;
|
|
67
67
|
-webkit-box-sizing: border-box;
|
|
68
68
|
box-sizing: border-box;
|
|
@@ -133,8 +133,8 @@ a.t-menu__item:active {
|
|
|
133
133
|
-ms-flex-pack: start;
|
|
134
134
|
justify-content: flex-start;
|
|
135
135
|
white-space: nowrap;
|
|
136
|
-
padding-left:
|
|
137
|
-
padding-right:
|
|
136
|
+
padding-left: var(--td-comp-paddingLR-l);
|
|
137
|
+
padding-right: var(--td-comp-paddingLR-l);
|
|
138
138
|
min-width: 100%;
|
|
139
139
|
margin-left: 0;
|
|
140
140
|
color: var(--td-font-gray-2);
|
|
@@ -146,10 +146,10 @@ a.t-menu__item:active {
|
|
|
146
146
|
margin-left: 0;
|
|
147
147
|
}
|
|
148
148
|
.t-head-menu .t-submenu-icon {
|
|
149
|
-
margin-left:
|
|
149
|
+
margin-left: var(--td-comp-margin-s);
|
|
150
150
|
}
|
|
151
151
|
.t-head-menu .t-fake-arrow {
|
|
152
|
-
margin-left:
|
|
152
|
+
margin-left: var(--td-comp-margin-s);
|
|
153
153
|
}
|
|
154
154
|
.t-head-menu .t-menu__popup-inner .t-menu__popup {
|
|
155
155
|
top: -8px;
|
|
@@ -252,7 +252,7 @@ a.t-menu__item:active {
|
|
|
252
252
|
margin-right: initial;
|
|
253
253
|
}
|
|
254
254
|
.t-default-menu.t-is-collapsed .t-menu__popup .t-menu__item {
|
|
255
|
-
padding-left:
|
|
255
|
+
padding-left: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-l);
|
|
256
256
|
-webkit-box-pack: start;
|
|
257
257
|
-ms-flex-pack: start;
|
|
258
258
|
justify-content: flex-start;
|
|
@@ -322,7 +322,7 @@ a.t-menu__item:active {
|
|
|
322
322
|
border-bottom: 1px solid var(--td-component-stroke);
|
|
323
323
|
}
|
|
324
324
|
.t-default-menu__inner .t-menu {
|
|
325
|
-
padding:
|
|
325
|
+
padding: var(--td-comp-paddingTB-l) var(--td-comp-paddingLR-s);
|
|
326
326
|
position: relative;
|
|
327
327
|
-webkit-box-flex: 1;
|
|
328
328
|
-ms-flex: 1;
|
|
@@ -341,13 +341,13 @@ a.t-menu__item:active {
|
|
|
341
341
|
box-sizing: border-box;
|
|
342
342
|
}
|
|
343
343
|
.t-default-menu .t-submenu {
|
|
344
|
-
margin-bottom:
|
|
344
|
+
margin-bottom: var(--td-comp-margin-xs);
|
|
345
345
|
position: relative;
|
|
346
346
|
}
|
|
347
347
|
.t-default-menu .t-menu__operations:not(:empty) {
|
|
348
348
|
width: 100%;
|
|
349
349
|
position: relative;
|
|
350
|
-
padding:
|
|
350
|
+
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-l);
|
|
351
351
|
top: 0;
|
|
352
352
|
left: 0;
|
|
353
353
|
text-align: left;
|
|
@@ -358,14 +358,14 @@ a.t-menu__item:active {
|
|
|
358
358
|
.t-default-menu .t-menu__operations-icon {
|
|
359
359
|
width: 32px;
|
|
360
360
|
height: 32px;
|
|
361
|
-
padding:
|
|
361
|
+
padding: var(--td-comp-paddingTB-s) var(--td-comp-paddingLR-s);
|
|
362
362
|
cursor: pointer;
|
|
363
363
|
color: var(--td-font-gray-1);
|
|
364
364
|
-webkit-box-sizing: border-box;
|
|
365
365
|
box-sizing: border-box;
|
|
366
366
|
}
|
|
367
367
|
.t-default-menu .t-menu__item.t-is-opened {
|
|
368
|
-
margin:
|
|
368
|
+
margin: var(--td-comp-margin-xs) 0;
|
|
369
369
|
color: var(--td-font-gray-1);
|
|
370
370
|
background-color: unset;
|
|
371
371
|
}
|
|
@@ -402,7 +402,7 @@ a.t-menu__item:active {
|
|
|
402
402
|
}
|
|
403
403
|
.t-default-menu .t-menu__item {
|
|
404
404
|
position: relative;
|
|
405
|
-
margin:
|
|
405
|
+
margin: var(--td-comp-margin-xs) 0;
|
|
406
406
|
padding: 0 10px 0 16px;
|
|
407
407
|
height: 36px;
|
|
408
408
|
line-height: 36px;
|
|
@@ -438,7 +438,7 @@ a.t-menu__item:active {
|
|
|
438
438
|
background: var(--td-gray-color-2);
|
|
439
439
|
}
|
|
440
440
|
.t-default-menu .t-menu__item:hover:not(.t-is-active):not(.t-is-disabled) + .t-menu__item {
|
|
441
|
-
margin-top:
|
|
441
|
+
margin-top: var(--td-comp-margin-xs);
|
|
442
442
|
}
|
|
443
443
|
.t-menu {
|
|
444
444
|
color: var(--td-font-gray-2);
|
|
@@ -569,7 +569,7 @@ a.t-menu__item:active {
|
|
|
569
569
|
}
|
|
570
570
|
.t-icon + .t-menu__content,
|
|
571
571
|
.t-icon + .t-menu__item-link {
|
|
572
|
-
margin-left:
|
|
572
|
+
margin-left: var(--td-comp-margin-s);
|
|
573
573
|
}
|
|
574
574
|
.t-menu--dark.t-head-menu {
|
|
575
575
|
background-color: var(--td-gray-color-13);
|
|
@@ -656,13 +656,13 @@ a.t-menu__item:active {
|
|
|
656
656
|
margin: 0;
|
|
657
657
|
}
|
|
658
658
|
.t-menu__popup-wrapper {
|
|
659
|
-
padding:
|
|
659
|
+
padding: var(--td-comp-paddingLR-s);
|
|
660
660
|
height: 100%;
|
|
661
661
|
list-style: none;
|
|
662
662
|
margin: 0;
|
|
663
663
|
}
|
|
664
664
|
.t-menu__popup .t-fake-arrow {
|
|
665
|
-
margin-left:
|
|
665
|
+
margin-left: var(--td-comp-margin-s);
|
|
666
666
|
}
|
|
667
667
|
.t-menu__popup.t-is-vertical {
|
|
668
668
|
max-height: unset;
|
|
@@ -672,17 +672,17 @@ a.t-menu__item:active {
|
|
|
672
672
|
width: var(--popup-width, 216px);
|
|
673
673
|
}
|
|
674
674
|
.t-menu__popup.t-is-vertical .t-menu__item {
|
|
675
|
-
padding-left:
|
|
676
|
-
padding-right:
|
|
675
|
+
padding-left: var(--td-comp-paddingLR-l);
|
|
676
|
+
padding-right: var(--td-comp-paddingLR-l);
|
|
677
677
|
margin: 4px 0;
|
|
678
678
|
}
|
|
679
679
|
.t-menu__popup.t-is-horizontal .t-menu__item {
|
|
680
|
-
padding-left:
|
|
681
|
-
padding-right:
|
|
680
|
+
padding-left: var(--td-comp-paddingLR-l);
|
|
681
|
+
padding-right: var(--td-comp-paddingLR-l);
|
|
682
682
|
white-space: nowrap;
|
|
683
683
|
}
|
|
684
684
|
.t-menu__popup.t-is-horizontal li + li {
|
|
685
|
-
margin-top:
|
|
685
|
+
margin-top: var(--td-comp-margin-xs);
|
|
686
686
|
}
|
|
687
687
|
.t-menu__popup.t-is-opened {
|
|
688
688
|
max-height: var(--popup-max-height, 364px);
|
|
@@ -718,7 +718,7 @@ a.t-menu__item:active {
|
|
|
718
718
|
background-color: var(--td-gray-color-1);
|
|
719
719
|
}
|
|
720
720
|
.t-menu__operations-icon {
|
|
721
|
-
margin-right:
|
|
721
|
+
margin-right: var(--td-comp-margin-l);
|
|
722
722
|
border-radius: var(--td-radius-default);
|
|
723
723
|
color: var(--td-font-gray-2);
|
|
724
724
|
-webkit-transition: background-color 0.24s cubic-bezier(0.38, 0, 0.24, 1);
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
color: var(--td-text-color-primary);
|
|
22
22
|
font: var(--td-font-body-medium);
|
|
23
|
-
padding:
|
|
23
|
+
padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-l);
|
|
24
24
|
}
|
|
25
25
|
.t-message > .t-icon,
|
|
26
26
|
.t-message > [data-t-icon] > .t-icon,
|
|
27
27
|
.t-message .t-loading {
|
|
28
28
|
color: var(--td-brand-color);
|
|
29
|
-
margin-right:
|
|
29
|
+
margin-right: var(--td-comp-margin-s);
|
|
30
30
|
-ms-flex-negative: 0;
|
|
31
31
|
flex-shrink: 0;
|
|
32
|
-
font-size: var(--td-font-size-
|
|
32
|
+
font-size: calc(var(--td-font-size-body-medium) + 6px);
|
|
33
33
|
}
|
|
34
34
|
.t-message.t-is-success > .t-icon,
|
|
35
35
|
.t-message.t-is-success > [data-t-icon] > .t-icon,
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
display: -ms-inline-flexbox;
|
|
52
52
|
display: inline-flex;
|
|
53
53
|
margin-right: 0;
|
|
54
|
-
margin-left:
|
|
54
|
+
margin-left: var(--td-comp-margin-xxl);
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
color: var(--td-text-color-secondary);
|
|
57
57
|
}
|
|
58
58
|
.t-message.t-is-closable .t-message__close .t-icon-close {
|
|
59
|
-
font-size: var(--td-font-size-body-
|
|
59
|
+
font-size: calc(var(--td-font-size-body-medium) + 2px);
|
|
60
60
|
border-radius: var(--td-radius-default);
|
|
61
61
|
-webkit-transition: all 0.2s linear;
|
|
62
62
|
transition: all 0.2s linear;
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
z-index: 6000;
|
|
73
73
|
}
|
|
74
74
|
.t-message__list .t-message {
|
|
75
|
-
margin-bottom:
|
|
75
|
+
margin-bottom: var(--td-comp-margin-s);
|
|
76
76
|
word-break: break-all;
|
|
77
77
|
}
|