@type-dom/ui 0.4.0 → 0.5.0

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.
Files changed (154) hide show
  1. package/README.md +134 -134
  2. package/dist/package.json +2 -1
  3. package/dist/src/components/data/td-progress/td-progress.class.js +5 -5
  4. package/dist/src/components/data/td-statistic/td-statistic.class.d.ts +2 -2
  5. package/dist/src/components/data/td-statistic/td-statistic.class.d.ts.map +1 -1
  6. package/dist/src/components/feedback/td-message/method.d.ts +1 -1
  7. package/dist/src/components/feedback/td-message/method.d.ts.map +1 -1
  8. package/dist/src/components/feedback/td-message/method.js +24 -7
  9. package/dist/src/components/feedback/td-message/method.js.map +1 -1
  10. package/dist/src/components/feedback/td-tooltip/td-tooltip.const.d.ts.map +1 -1
  11. package/dist/src/components/form/td-date-picker/composables/use-shortcut.d.ts +1 -1
  12. package/dist/src/components/form/td-date-picker/composables/use-shortcut.d.ts.map +1 -1
  13. package/dist/src/components/form/td-date-picker/composables/use-shortcut.js +1 -1
  14. package/dist/src/components/form/td-date-picker/composables/use-shortcut.js.map +1 -1
  15. package/dist/src/components/form/td-date-picker/utils.d.ts +1 -1
  16. package/dist/src/components/form/td-date-picker/utils.d.ts.map +1 -1
  17. package/dist/src/components/form/td-date-picker/utils.js +1 -1
  18. package/dist/src/components/form/td-date-picker/utils.js.map +1 -1
  19. package/dist/src/components/form/td-time-picker/time-picker-com/panel-time-pick.class.js +1 -1
  20. package/dist/src/components/form/td-time-picker/time-picker-com/panel-time-pick.class.js.map +1 -1
  21. package/dist/src/components/form/td-time-picker/utils.d.ts +1 -1
  22. package/dist/src/components/form/td-time-picker/utils.d.ts.map +1 -1
  23. package/dist/src/components/form/td-time-picker/utils.js +1 -1
  24. package/dist/src/components/form/td-time-picker/utils.js.map +1 -1
  25. package/dist/src/hooks/use-deprecated/index.js +2 -2
  26. package/dist/src/hooks/use-id/index.js +4 -4
  27. package/dist/src/hooks/use-z-index/index.js +1 -1
  28. package/dist/src/theme-chalk/affix.scss +7 -7
  29. package/dist/src/theme-chalk/alert.scss +115 -115
  30. package/dist/src/theme-chalk/anchor-link.scss +41 -41
  31. package/dist/src/theme-chalk/anchor.scss +88 -88
  32. package/dist/src/theme-chalk/aside.scss +8 -8
  33. package/dist/src/theme-chalk/autocomplete.scss +89 -89
  34. package/dist/src/theme-chalk/avatar.scss +55 -55
  35. package/dist/src/theme-chalk/backtop.scss +29 -29
  36. package/dist/src/theme-chalk/badge.scss +58 -58
  37. package/dist/src/theme-chalk/base.scss +3 -3
  38. package/dist/src/theme-chalk/breadcrumb.scss +62 -62
  39. package/dist/src/theme-chalk/button-group.scss +80 -80
  40. package/dist/src/theme-chalk/button.scss +304 -304
  41. package/dist/src/theme-chalk/calendar.scss +80 -80
  42. package/dist/src/theme-chalk/card.scss +45 -45
  43. package/dist/src/theme-chalk/carousel-item.scss +58 -58
  44. package/dist/src/theme-chalk/carousel.scss +188 -188
  45. package/dist/src/theme-chalk/cascader-panel.scss +138 -138
  46. package/dist/src/theme-chalk/cascader.scss +247 -247
  47. package/dist/src/theme-chalk/check-tag.scss +60 -60
  48. package/dist/src/theme-chalk/checkbox-button.scss +140 -140
  49. package/dist/src/theme-chalk/checkbox-group.scss +7 -7
  50. package/dist/src/theme-chalk/checkbox.scss +298 -298
  51. package/dist/src/theme-chalk/col.scss +48 -48
  52. package/dist/src/theme-chalk/collapse.scss +70 -70
  53. package/dist/src/theme-chalk/color/index.scss +20 -20
  54. package/dist/src/theme-chalk/color-picker.scss +393 -393
  55. package/dist/src/theme-chalk/common/popup.scss +47 -47
  56. package/dist/src/theme-chalk/common/transition.scss +122 -122
  57. package/dist/src/theme-chalk/common/var.scss +1655 -1655
  58. package/dist/src/theme-chalk/container.scss +14 -14
  59. package/dist/src/theme-chalk/dark/css-vars.scss +39 -39
  60. package/dist/src/theme-chalk/dark/var.scss +222 -222
  61. package/dist/src/theme-chalk/date-picker/date-picker.scss +110 -110
  62. package/dist/src/theme-chalk/date-picker/date-range-picker.scss +113 -113
  63. package/dist/src/theme-chalk/date-picker/date-table.scss +158 -158
  64. package/dist/src/theme-chalk/date-picker/month-table.scss +112 -112
  65. package/dist/src/theme-chalk/date-picker/picker-panel.scss +131 -131
  66. package/dist/src/theme-chalk/date-picker/picker.scss +212 -212
  67. package/dist/src/theme-chalk/date-picker/time-picker.scss +90 -90
  68. package/dist/src/theme-chalk/date-picker/time-range-picker.scss +33 -33
  69. package/dist/src/theme-chalk/date-picker/time-spinner.scss +111 -111
  70. package/dist/src/theme-chalk/date-picker/year-table.scss +108 -108
  71. package/dist/src/theme-chalk/date-picker.scss +9 -9
  72. package/dist/src/theme-chalk/descriptions-item.scss +73 -73
  73. package/dist/src/theme-chalk/descriptions.scss +152 -152
  74. package/dist/src/theme-chalk/dialog.scss +192 -192
  75. package/dist/src/theme-chalk/display.scss +12 -12
  76. package/dist/src/theme-chalk/divider.scss +48 -48
  77. package/dist/src/theme-chalk/drawer.scss +155 -155
  78. package/dist/src/theme-chalk/dropdown.scss +208 -208
  79. package/dist/src/theme-chalk/empty.scss +49 -49
  80. package/dist/src/theme-chalk/footer.scss +12 -12
  81. package/dist/src/theme-chalk/form.scss +244 -244
  82. package/dist/src/theme-chalk/header.scss +12 -12
  83. package/dist/src/theme-chalk/icon.scss +45 -45
  84. package/dist/src/theme-chalk/image-viewer.scss +155 -155
  85. package/dist/src/theme-chalk/image.scss +49 -49
  86. package/dist/src/theme-chalk/index.scss +111 -111
  87. package/dist/src/theme-chalk/input-number.scss +186 -186
  88. package/dist/src/theme-chalk/input-tag.scss +220 -220
  89. package/dist/src/theme-chalk/input.scss +474 -474
  90. package/dist/src/theme-chalk/link.scss +90 -90
  91. package/dist/src/theme-chalk/loading.scss +104 -104
  92. package/dist/src/theme-chalk/main.scss +14 -14
  93. package/dist/src/theme-chalk/mention.scss +92 -92
  94. package/dist/src/theme-chalk/menu.scss +339 -339
  95. package/dist/src/theme-chalk/message-box.scss +213 -213
  96. package/dist/src/theme-chalk/message.scss +98 -98
  97. package/dist/src/theme-chalk/mixins/_button.scss +165 -165
  98. package/dist/src/theme-chalk/mixins/_col.scss +33 -33
  99. package/dist/src/theme-chalk/mixins/_var.scss +67 -67
  100. package/dist/src/theme-chalk/mixins/config.scss +5 -5
  101. package/dist/src/theme-chalk/mixins/function.scss +88 -88
  102. package/dist/src/theme-chalk/mixins/mixins.scss +240 -240
  103. package/dist/src/theme-chalk/mixins/utils.scss +39 -39
  104. package/dist/src/theme-chalk/notification.scss +107 -107
  105. package/dist/src/theme-chalk/option-group.scss +33 -33
  106. package/dist/src/theme-chalk/option.scss +71 -71
  107. package/dist/src/theme-chalk/overlay.scss +17 -17
  108. package/dist/src/theme-chalk/page-header.scss +60 -60
  109. package/dist/src/theme-chalk/pagination.scss +238 -238
  110. package/dist/src/theme-chalk/popconfirm.scss +16 -16
  111. package/dist/src/theme-chalk/popover.scss +61 -61
  112. package/dist/src/theme-chalk/popper.scss +106 -106
  113. package/dist/src/theme-chalk/progress.scss +179 -179
  114. package/dist/src/theme-chalk/radio-button.scss +169 -169
  115. package/dist/src/theme-chalk/radio-group.scss +9 -9
  116. package/dist/src/theme-chalk/radio.scss +215 -215
  117. package/dist/src/theme-chalk/rate.scss +108 -108
  118. package/dist/src/theme-chalk/reset.scss +98 -98
  119. package/dist/src/theme-chalk/result.scss +57 -57
  120. package/dist/src/theme-chalk/row.scss +35 -35
  121. package/dist/src/theme-chalk/scrollbar.scss +97 -97
  122. package/dist/src/theme-chalk/segmented.scss +183 -183
  123. package/dist/src/theme-chalk/select-dropdown-v2.scss +1 -1
  124. package/dist/src/theme-chalk/select-dropdown.scss +57 -57
  125. package/dist/src/theme-chalk/select-v2.scss +4 -4
  126. package/dist/src/theme-chalk/select.scss +264 -264
  127. package/dist/src/theme-chalk/skeleton-item.scss +83 -83
  128. package/dist/src/theme-chalk/skeleton.scss +44 -44
  129. package/dist/src/theme-chalk/slider.scss +212 -212
  130. package/dist/src/theme-chalk/space.scss +20 -20
  131. package/dist/src/theme-chalk/spinner.scss +43 -43
  132. package/dist/src/theme-chalk/statistic.scss +35 -35
  133. package/dist/src/theme-chalk/step.scss +316 -316
  134. package/dist/src/theme-chalk/steps.scss +21 -21
  135. package/dist/src/theme-chalk/switch.scss +300 -300
  136. package/dist/src/theme-chalk/table-column.scss +98 -98
  137. package/dist/src/theme-chalk/table-v2.scss +236 -236
  138. package/dist/src/theme-chalk/table.scss +694 -694
  139. package/dist/src/theme-chalk/tabs.scss +660 -660
  140. package/dist/src/theme-chalk/tag.scss +181 -181
  141. package/dist/src/theme-chalk/text.scss +51 -51
  142. package/dist/src/theme-chalk/time-picker.scss +5 -5
  143. package/dist/src/theme-chalk/time-select.scss +37 -37
  144. package/dist/src/theme-chalk/timeline-item.scss +84 -84
  145. package/dist/src/theme-chalk/timeline.scss +46 -46
  146. package/dist/src/theme-chalk/tooltip-v2.scss +95 -95
  147. package/dist/src/theme-chalk/tour.scss +187 -187
  148. package/dist/src/theme-chalk/transfer.scss +203 -203
  149. package/dist/src/theme-chalk/tree-select.scss +41 -41
  150. package/dist/src/theme-chalk/tree.scss +134 -134
  151. package/dist/src/theme-chalk/upload.scss +654 -654
  152. package/dist/src/theme-chalk/var.scss +87 -87
  153. package/dist/src/theme-chalk/virtual-list.scss +40 -40
  154. package/package.json +43 -42
@@ -1,660 +1,660 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'common/var' as *;
3
-
4
- @include b(tabs) {
5
- @include set-component-css-var('tabs', $tabs);
6
- display: flex;
7
-
8
- @include e(header) {
9
- padding: 0;
10
- position: relative;
11
- margin: 0 0 15px;
12
- display: flex;
13
- align-items: center;
14
- justify-content: space-between;
15
- }
16
- @include e(header-vertical) {
17
- flex-direction: column;
18
- }
19
- @include e(active-bar) {
20
- position: absolute;
21
- bottom: 0;
22
- left: 0;
23
- height: 2px;
24
- background-color: getCssVar('color-primary');
25
- z-index: 1;
26
- transition: width getCssVar('transition-duration')
27
- getCssVar('transition-function-ease-in-out-bezier'),
28
- transform getCssVar('transition-duration')
29
- getCssVar('transition-function-ease-in-out-bezier');
30
- list-style: none;
31
- }
32
- @include e(new-tab) {
33
- display: flex;
34
- align-items: center;
35
- justify-content: center;
36
- flex-shrink: 0;
37
- border: 1px solid getCssVar('border-color');
38
- height: 20px;
39
- width: 20px;
40
- line-height: 20px;
41
- margin: 10px 0 10px 10px;
42
- border-radius: 3px;
43
- text-align: center;
44
- font-size: 12px;
45
- color: getCssVar('text-color', 'primary');
46
- cursor: pointer;
47
- transition: all 0.15s;
48
-
49
- .is-icon-plus {
50
- height: inherit;
51
- width: inherit;
52
- transform: scale(0.8, 0.8);
53
-
54
- svg {
55
- vertical-align: middle;
56
- }
57
- }
58
-
59
- &:hover {
60
- color: getCssVar('color-primary');
61
- }
62
- }
63
- @include e(new-tab-vertical) {
64
- margin-left: 0;
65
- }
66
- @include e(nav-wrap) {
67
- overflow: hidden;
68
- margin-bottom: -1px;
69
- position: relative;
70
- flex: 1 auto;
71
-
72
- &::after {
73
- content: '';
74
- position: absolute;
75
- left: 0;
76
- bottom: 0;
77
- width: 100%;
78
- height: 2px;
79
- background-color: getCssVar('border-color-light');
80
- z-index: getCssVar('index-normal');
81
- }
82
-
83
- @include when(scrollable) {
84
- padding: 0 20px;
85
- box-sizing: border-box;
86
- }
87
- }
88
- @include e(nav-scroll) {
89
- overflow: hidden;
90
- }
91
- @include e((nav-next, nav-prev)) {
92
- position: absolute;
93
- cursor: pointer;
94
- line-height: 44px;
95
- font-size: 12px;
96
- color: getCssVar('text-color', 'secondary');
97
- width: 20px;
98
- text-align: center;
99
- }
100
- @include e(nav-next) {
101
- right: 0;
102
- }
103
- @include e(nav-prev) {
104
- left: 0;
105
- }
106
- @include e(nav) {
107
- display: flex;
108
- white-space: nowrap;
109
- position: relative;
110
- transition: transform getCssVar('transition-duration');
111
- float: left;
112
- z-index: calc(#{getCssVar('index-normal')} + 1);
113
-
114
- @include when(stretch) {
115
- min-width: 100%;
116
- display: flex;
117
- & > * {
118
- flex: 1;
119
- text-align: center;
120
- }
121
- }
122
- }
123
- @include e(item) {
124
- padding: 0 20px;
125
- height: getCssVar('tabs', 'header-height');
126
- box-sizing: border-box;
127
- display: flex;
128
- align-items: center;
129
- justify-content: center;
130
- list-style: none;
131
- font-size: getCssVar('font-size-base');
132
- font-weight: 500;
133
- color: getCssVar('text-color', 'primary');
134
- position: relative;
135
-
136
- &:focus,
137
- &:focus:active {
138
- outline: none;
139
- }
140
-
141
- &:focus-visible {
142
- box-shadow: 0 0 2px 2px getCssVar('color-primary') inset;
143
- border-radius: 3px;
144
- }
145
-
146
- & .is-icon-close {
147
- border-radius: 50%;
148
- text-align: center;
149
- transition: all getCssVar('transition-duration')
150
- getCssVar('transition-function-ease-in-out-bezier');
151
- margin-left: 5px;
152
-
153
- &:before {
154
- transform: scale(0.9);
155
- display: inline-block;
156
- }
157
-
158
- &:hover {
159
- background-color: getCssVar('text-color', 'placeholder');
160
- color: $color-white;
161
- }
162
- }
163
-
164
- @include when(active) {
165
- color: getCssVar('color-primary');
166
- }
167
-
168
- &:hover {
169
- color: getCssVar('color-primary');
170
- cursor: pointer;
171
- }
172
-
173
- @include when(disabled) {
174
- color: getCssVar('disabled-text-color');
175
- cursor: not-allowed;
176
- }
177
- }
178
- @include e(content) {
179
- overflow: hidden;
180
- position: relative;
181
- flex-grow: 1;
182
- }
183
- @include m((top, bottom)) {
184
- > .#{$namespace}-tabs__header {
185
- .#{$namespace}-tabs__item:nth-child(2) {
186
- padding-left: 0;
187
- }
188
- .#{$namespace}-tabs__item:last-child {
189
- padding-right: 0;
190
- }
191
- }
192
-
193
- &.#{$namespace}-tabs--border-card,
194
- &.#{$namespace}-tabs--card {
195
- > .#{$namespace}-tabs__header {
196
- .#{$namespace}-tabs__item:nth-child(2) {
197
- padding-left: 20px;
198
- }
199
- .#{$namespace}-tabs__item:last-child {
200
- padding-right: 20px;
201
- }
202
- }
203
- }
204
- }
205
- @include m(card) {
206
- > .#{$namespace}-tabs__header {
207
- border-bottom: 1px solid getCssVar('border-color-light');
208
- height: getCssVar('tabs', 'header-height');
209
- }
210
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
211
- content: none;
212
- }
213
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav {
214
- border: 1px solid getCssVar('border-color-light');
215
- border-bottom: none;
216
- border-radius: 4px 4px 0 0;
217
- box-sizing: border-box;
218
- }
219
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__active-bar {
220
- display: none;
221
- }
222
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__item .is-icon-close {
223
- position: relative;
224
- font-size: 12px;
225
- width: 0;
226
- height: 14px;
227
- overflow: hidden;
228
- right: -2px;
229
- transform-origin: 100% 50%;
230
- }
231
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__item {
232
- border-bottom: 1px solid transparent;
233
- border-left: 1px solid getCssVar('border-color-light');
234
- transition: color getCssVar('transition-duration')
235
- getCssVar('transition-function-ease-in-out-bezier'),
236
- padding getCssVar('transition-duration')
237
- getCssVar('transition-function-ease-in-out-bezier');
238
-
239
- &:first-child {
240
- border-left: none;
241
- }
242
-
243
- &.is-closable {
244
- &:hover {
245
- padding-left: 13px;
246
- padding-right: 13px;
247
-
248
- & .is-icon-close {
249
- width: 14px;
250
- }
251
- }
252
- }
253
-
254
- &.is-active {
255
- border-bottom-color: getCssVar('bg-color');
256
-
257
- &.is-closable {
258
- padding-left: 20px;
259
- padding-right: 20px;
260
-
261
- .is-icon-close {
262
- width: 14px;
263
- }
264
- }
265
- }
266
- }
267
- }
268
- @include m(border-card) {
269
- background: getCssVar('bg-color', 'overlay');
270
- border: 1px solid getCssVar('border-color');
271
-
272
- > .#{$namespace}-tabs__content {
273
- padding: 15px;
274
- }
275
- > .#{$namespace}-tabs__header {
276
- background-color: getCssVar('fill-color', 'light');
277
- border-bottom: 1px solid getCssVar('border-color-light');
278
- margin: 0;
279
- }
280
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
281
- content: none;
282
- }
283
- > .#{$namespace}-tabs__header .#{$namespace}-tabs__item {
284
- transition: all getCssVar('transition-duration')
285
- getCssVar('transition-function-ease-in-out-bezier');
286
- border: 1px solid transparent;
287
- margin-top: -1px;
288
- color: getCssVar('text-color', 'secondary');
289
-
290
- &:first-child {
291
- margin-left: -1px;
292
- }
293
-
294
- & + .#{$namespace}-tabs__item {
295
- margin-left: -1px;
296
- }
297
-
298
- &.is-active {
299
- color: getCssVar('color-primary');
300
- background-color: getCssVar('bg-color', 'overlay');
301
- border-right-color: getCssVar('border-color');
302
- border-left-color: getCssVar('border-color');
303
- }
304
-
305
- &:not(.is-disabled):hover {
306
- color: getCssVar('color-primary');
307
- }
308
-
309
- &.is-disabled {
310
- color: getCssVar('disabled-text-color');
311
- }
312
- }
313
-
314
- > .#{$namespace}-tabs__header
315
- .is-scrollable
316
- .#{$namespace}-tabs__item:first-child {
317
- margin-left: 0;
318
- }
319
- }
320
- @include m(bottom) {
321
- flex-direction: column;
322
-
323
- .#{$namespace}-tabs__header.is-bottom {
324
- margin-bottom: 0;
325
- margin-top: 10px;
326
- }
327
- &.#{$namespace}-tabs--border-card {
328
- .#{$namespace}-tabs__header.is-bottom {
329
- border-bottom: 0;
330
- border-top: 1px solid getCssVar('border-color');
331
- }
332
-
333
- .#{$namespace}-tabs__nav-wrap.is-bottom {
334
- margin-top: -1px;
335
- margin-bottom: 0;
336
- }
337
-
338
- .#{$namespace}-tabs__item.is-bottom:not(.is-active) {
339
- border: 1px solid transparent;
340
- }
341
-
342
- .#{$namespace}-tabs__item.is-bottom {
343
- margin: 0 -1px -1px;
344
- }
345
- }
346
- }
347
- @include m((left, right)) {
348
- overflow: hidden;
349
-
350
- .#{$namespace}-tabs__header.is-left,
351
- .#{$namespace}-tabs__header.is-right,
352
- .#{$namespace}-tabs__nav-wrap.is-left,
353
- .#{$namespace}-tabs__nav-wrap.is-right,
354
- .#{$namespace}-tabs__nav-scroll {
355
- height: 100%;
356
- }
357
-
358
- .#{$namespace}-tabs__active-bar.is-left,
359
- .#{$namespace}-tabs__active-bar.is-right {
360
- top: 0;
361
- bottom: auto;
362
- width: 2px;
363
- height: auto;
364
- }
365
-
366
- .#{$namespace}-tabs__nav-wrap.is-left,
367
- .#{$namespace}-tabs__nav-wrap.is-right {
368
- margin-bottom: 0;
369
-
370
- > .#{$namespace}-tabs__nav-prev,
371
- > .#{$namespace}-tabs__nav-next {
372
- height: 30px;
373
- line-height: 30px;
374
- width: 100%;
375
- text-align: center;
376
- cursor: pointer;
377
-
378
- i {
379
- transform: rotateZ(90deg);
380
- }
381
- }
382
-
383
- > .#{$namespace}-tabs__nav-prev {
384
- left: auto;
385
- top: 0;
386
- }
387
-
388
- > .#{$namespace}-tabs__nav-next {
389
- right: auto;
390
- bottom: 0;
391
- }
392
-
393
- &.is-scrollable {
394
- padding: 30px 0;
395
- }
396
-
397
- &::after {
398
- height: 100%;
399
- width: 2px;
400
- bottom: auto;
401
- top: 0;
402
- }
403
- }
404
-
405
- .#{$namespace}-tabs__nav.is-left,
406
- .#{$namespace}-tabs__nav.is-right {
407
- flex-direction: column;
408
- }
409
-
410
- .#{$namespace}-tabs__item.is-left {
411
- justify-content: flex-end;
412
- }
413
-
414
- .#{$namespace}-tabs__item.is-right {
415
- justify-content: flex-start;
416
- }
417
- }
418
- @include m(left) {
419
- flex-direction: row-reverse;
420
-
421
- .#{$namespace}-tabs__header.is-left {
422
- margin-bottom: 0;
423
- margin-right: 10px;
424
- }
425
- .#{$namespace}-tabs__nav-wrap.is-left {
426
- margin-right: -1px;
427
-
428
- &::after {
429
- left: auto;
430
- right: 0;
431
- }
432
- }
433
- .#{$namespace}-tabs__active-bar.is-left {
434
- right: 0;
435
- left: auto;
436
- }
437
- .#{$namespace}-tabs__item.is-left {
438
- text-align: right;
439
- }
440
-
441
- &.#{$namespace}-tabs--card {
442
- .#{$namespace}-tabs__active-bar.is-left {
443
- display: none;
444
- }
445
-
446
- .#{$namespace}-tabs__item.is-left {
447
- border-left: none;
448
- border-right: 1px solid getCssVar('border-color-light');
449
- border-bottom: none;
450
- border-top: 1px solid getCssVar('border-color-light');
451
- text-align: left;
452
- }
453
-
454
- .#{$namespace}-tabs__item.is-left:first-child {
455
- border-right: 1px solid getCssVar('border-color-light');
456
- border-top: none;
457
- }
458
-
459
- .#{$namespace}-tabs__item.is-left.is-active {
460
- border: 1px solid getCssVar('border-color-light');
461
- border-right-color: #fff;
462
- border-left: none;
463
- border-bottom: none;
464
-
465
- &:first-child {
466
- border-top: none;
467
- }
468
-
469
- &:last-child {
470
- border-bottom: none;
471
- }
472
- }
473
-
474
- .#{$namespace}-tabs__nav {
475
- border-radius: 4px 0 0 4px;
476
- border-bottom: 1px solid getCssVar('border-color-light');
477
- border-right: none;
478
- }
479
-
480
- .#{$namespace}-tabs__new-tab {
481
- float: none;
482
- }
483
- }
484
-
485
- &.#{$namespace}-tabs--border-card {
486
- .#{$namespace}-tabs__header.is-left {
487
- border-right: 1px solid getCssVar('border-color');
488
- }
489
-
490
- .#{$namespace}-tabs__item.is-left {
491
- border: 1px solid transparent;
492
- margin: -1px 0 -1px -1px;
493
-
494
- &.is-active {
495
- border-color: transparent;
496
- border-top-color: rgb(209, 219, 229);
497
- border-bottom-color: rgb(209, 219, 229);
498
- }
499
- }
500
- }
501
- }
502
- @include m(right) {
503
- .#{$namespace}-tabs__header.is-right {
504
- margin-bottom: 0;
505
- margin-left: 10px;
506
- }
507
-
508
- .#{$namespace}-tabs__nav-wrap.is-right {
509
- margin-left: -1px;
510
-
511
- &::after {
512
- left: 0;
513
- right: auto;
514
- }
515
- }
516
-
517
- .#{$namespace}-tabs__active-bar.is-right {
518
- left: 0;
519
- }
520
-
521
- &.#{$namespace}-tabs--card {
522
- .#{$namespace}-tabs__active-bar.is-right {
523
- display: none;
524
- }
525
-
526
- .#{$namespace}-tabs__item.is-right {
527
- border-bottom: none;
528
- border-top: 1px solid getCssVar('border-color-light');
529
- }
530
-
531
- .#{$namespace}-tabs__item.is-right:first-child {
532
- border-left: 1px solid getCssVar('border-color-light');
533
- border-top: none;
534
- }
535
-
536
- .#{$namespace}-tabs__item.is-right.is-active {
537
- border: 1px solid getCssVar('border-color-light');
538
- border-left-color: #fff;
539
- border-right: none;
540
- border-bottom: none;
541
-
542
- &:first-child {
543
- border-top: none;
544
- }
545
-
546
- &:last-child {
547
- border-bottom: none;
548
- }
549
- }
550
-
551
- .#{$namespace}-tabs__nav {
552
- border-radius: 0 4px 4px 0;
553
- border-bottom: 1px solid getCssVar('border-color-light');
554
- border-left: none;
555
- }
556
- }
557
- &.#{$namespace}-tabs--border-card {
558
- .#{$namespace}-tabs__header.is-right {
559
- border-left: 1px solid getCssVar('border-color');
560
- }
561
-
562
- .#{$namespace}-tabs__item.is-right {
563
- border: 1px solid transparent;
564
- margin: -1px -1px -1px 0;
565
-
566
- &.is-active {
567
- border-color: transparent;
568
- border-top-color: rgb(209, 219, 229);
569
- border-bottom-color: rgb(209, 219, 229);
570
- }
571
- }
572
- }
573
- }
574
- @include m(top) {
575
- flex-direction: column-reverse;
576
- }
577
- }
578
-
579
- .slideInRight-transition,
580
- .slideInLeft-transition {
581
- display: inline-block;
582
- }
583
-
584
- .slideInRight-enter {
585
- animation: slideInRight-enter getCssVar('transition-duration');
586
- }
587
-
588
- .slideInRight-leave {
589
- position: absolute;
590
- left: 0;
591
- right: 0;
592
- animation: slideInRight-leave getCssVar('transition-duration');
593
- }
594
-
595
- .slideInLeft-enter {
596
- animation: slideInLeft-enter getCssVar('transition-duration');
597
- }
598
-
599
- .slideInLeft-leave {
600
- position: absolute;
601
- left: 0;
602
- right: 0;
603
- animation: slideInLeft-leave getCssVar('transition-duration');
604
- }
605
-
606
- @keyframes slideInRight-enter {
607
- 0% {
608
- opacity: 0;
609
- transform-origin: 0 0;
610
- transform: translateX(100%);
611
- }
612
-
613
- to {
614
- opacity: 1;
615
- transform-origin: 0 0;
616
- transform: translateX(0);
617
- }
618
- }
619
-
620
- @keyframes slideInRight-leave {
621
- 0% {
622
- transform-origin: 0 0;
623
- transform: translateX(0);
624
- opacity: 1;
625
- }
626
-
627
- 100% {
628
- transform-origin: 0 0;
629
- transform: translateX(100%);
630
- opacity: 0;
631
- }
632
- }
633
-
634
- @keyframes slideInLeft-enter {
635
- 0% {
636
- opacity: 0;
637
- transform-origin: 0 0;
638
- transform: translateX(-100%);
639
- }
640
-
641
- to {
642
- opacity: 1;
643
- transform-origin: 0 0;
644
- transform: translateX(0);
645
- }
646
- }
647
-
648
- @keyframes slideInLeft-leave {
649
- 0% {
650
- transform-origin: 0 0;
651
- transform: translateX(0);
652
- opacity: 1;
653
- }
654
-
655
- 100% {
656
- transform-origin: 0 0;
657
- transform: translateX(-100%);
658
- opacity: 0;
659
- }
660
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(tabs) {
5
+ @include set-component-css-var('tabs', $tabs);
6
+ display: flex;
7
+
8
+ @include e(header) {
9
+ padding: 0;
10
+ position: relative;
11
+ margin: 0 0 15px;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ }
16
+ @include e(header-vertical) {
17
+ flex-direction: column;
18
+ }
19
+ @include e(active-bar) {
20
+ position: absolute;
21
+ bottom: 0;
22
+ left: 0;
23
+ height: 2px;
24
+ background-color: getCssVar('color-primary');
25
+ z-index: 1;
26
+ transition: width getCssVar('transition-duration')
27
+ getCssVar('transition-function-ease-in-out-bezier'),
28
+ transform getCssVar('transition-duration')
29
+ getCssVar('transition-function-ease-in-out-bezier');
30
+ list-style: none;
31
+ }
32
+ @include e(new-tab) {
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ flex-shrink: 0;
37
+ border: 1px solid getCssVar('border-color');
38
+ height: 20px;
39
+ width: 20px;
40
+ line-height: 20px;
41
+ margin: 10px 0 10px 10px;
42
+ border-radius: 3px;
43
+ text-align: center;
44
+ font-size: 12px;
45
+ color: getCssVar('text-color', 'primary');
46
+ cursor: pointer;
47
+ transition: all 0.15s;
48
+
49
+ .is-icon-plus {
50
+ height: inherit;
51
+ width: inherit;
52
+ transform: scale(0.8, 0.8);
53
+
54
+ svg {
55
+ vertical-align: middle;
56
+ }
57
+ }
58
+
59
+ &:hover {
60
+ color: getCssVar('color-primary');
61
+ }
62
+ }
63
+ @include e(new-tab-vertical) {
64
+ margin-left: 0;
65
+ }
66
+ @include e(nav-wrap) {
67
+ overflow: hidden;
68
+ margin-bottom: -1px;
69
+ position: relative;
70
+ flex: 1 auto;
71
+
72
+ &::after {
73
+ content: '';
74
+ position: absolute;
75
+ left: 0;
76
+ bottom: 0;
77
+ width: 100%;
78
+ height: 2px;
79
+ background-color: getCssVar('border-color-light');
80
+ z-index: getCssVar('index-normal');
81
+ }
82
+
83
+ @include when(scrollable) {
84
+ padding: 0 20px;
85
+ box-sizing: border-box;
86
+ }
87
+ }
88
+ @include e(nav-scroll) {
89
+ overflow: hidden;
90
+ }
91
+ @include e((nav-next, nav-prev)) {
92
+ position: absolute;
93
+ cursor: pointer;
94
+ line-height: 44px;
95
+ font-size: 12px;
96
+ color: getCssVar('text-color', 'secondary');
97
+ width: 20px;
98
+ text-align: center;
99
+ }
100
+ @include e(nav-next) {
101
+ right: 0;
102
+ }
103
+ @include e(nav-prev) {
104
+ left: 0;
105
+ }
106
+ @include e(nav) {
107
+ display: flex;
108
+ white-space: nowrap;
109
+ position: relative;
110
+ transition: transform getCssVar('transition-duration');
111
+ float: left;
112
+ z-index: calc(#{getCssVar('index-normal')} + 1);
113
+
114
+ @include when(stretch) {
115
+ min-width: 100%;
116
+ display: flex;
117
+ & > * {
118
+ flex: 1;
119
+ text-align: center;
120
+ }
121
+ }
122
+ }
123
+ @include e(item) {
124
+ padding: 0 20px;
125
+ height: getCssVar('tabs', 'header-height');
126
+ box-sizing: border-box;
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ list-style: none;
131
+ font-size: getCssVar('font-size-base');
132
+ font-weight: 500;
133
+ color: getCssVar('text-color', 'primary');
134
+ position: relative;
135
+
136
+ &:focus,
137
+ &:focus:active {
138
+ outline: none;
139
+ }
140
+
141
+ &:focus-visible {
142
+ box-shadow: 0 0 2px 2px getCssVar('color-primary') inset;
143
+ border-radius: 3px;
144
+ }
145
+
146
+ & .is-icon-close {
147
+ border-radius: 50%;
148
+ text-align: center;
149
+ transition: all getCssVar('transition-duration')
150
+ getCssVar('transition-function-ease-in-out-bezier');
151
+ margin-left: 5px;
152
+
153
+ &:before {
154
+ transform: scale(0.9);
155
+ display: inline-block;
156
+ }
157
+
158
+ &:hover {
159
+ background-color: getCssVar('text-color', 'placeholder');
160
+ color: $color-white;
161
+ }
162
+ }
163
+
164
+ @include when(active) {
165
+ color: getCssVar('color-primary');
166
+ }
167
+
168
+ &:hover {
169
+ color: getCssVar('color-primary');
170
+ cursor: pointer;
171
+ }
172
+
173
+ @include when(disabled) {
174
+ color: getCssVar('disabled-text-color');
175
+ cursor: not-allowed;
176
+ }
177
+ }
178
+ @include e(content) {
179
+ overflow: hidden;
180
+ position: relative;
181
+ flex-grow: 1;
182
+ }
183
+ @include m((top, bottom)) {
184
+ > .#{$namespace}-tabs__header {
185
+ .#{$namespace}-tabs__item:nth-child(2) {
186
+ padding-left: 0;
187
+ }
188
+ .#{$namespace}-tabs__item:last-child {
189
+ padding-right: 0;
190
+ }
191
+ }
192
+
193
+ &.#{$namespace}-tabs--border-card,
194
+ &.#{$namespace}-tabs--card {
195
+ > .#{$namespace}-tabs__header {
196
+ .#{$namespace}-tabs__item:nth-child(2) {
197
+ padding-left: 20px;
198
+ }
199
+ .#{$namespace}-tabs__item:last-child {
200
+ padding-right: 20px;
201
+ }
202
+ }
203
+ }
204
+ }
205
+ @include m(card) {
206
+ > .#{$namespace}-tabs__header {
207
+ border-bottom: 1px solid getCssVar('border-color-light');
208
+ height: getCssVar('tabs', 'header-height');
209
+ }
210
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
211
+ content: none;
212
+ }
213
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav {
214
+ border: 1px solid getCssVar('border-color-light');
215
+ border-bottom: none;
216
+ border-radius: 4px 4px 0 0;
217
+ box-sizing: border-box;
218
+ }
219
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__active-bar {
220
+ display: none;
221
+ }
222
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__item .is-icon-close {
223
+ position: relative;
224
+ font-size: 12px;
225
+ width: 0;
226
+ height: 14px;
227
+ overflow: hidden;
228
+ right: -2px;
229
+ transform-origin: 100% 50%;
230
+ }
231
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__item {
232
+ border-bottom: 1px solid transparent;
233
+ border-left: 1px solid getCssVar('border-color-light');
234
+ transition: color getCssVar('transition-duration')
235
+ getCssVar('transition-function-ease-in-out-bezier'),
236
+ padding getCssVar('transition-duration')
237
+ getCssVar('transition-function-ease-in-out-bezier');
238
+
239
+ &:first-child {
240
+ border-left: none;
241
+ }
242
+
243
+ &.is-closable {
244
+ &:hover {
245
+ padding-left: 13px;
246
+ padding-right: 13px;
247
+
248
+ & .is-icon-close {
249
+ width: 14px;
250
+ }
251
+ }
252
+ }
253
+
254
+ &.is-active {
255
+ border-bottom-color: getCssVar('bg-color');
256
+
257
+ &.is-closable {
258
+ padding-left: 20px;
259
+ padding-right: 20px;
260
+
261
+ .is-icon-close {
262
+ width: 14px;
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ @include m(border-card) {
269
+ background: getCssVar('bg-color', 'overlay');
270
+ border: 1px solid getCssVar('border-color');
271
+
272
+ > .#{$namespace}-tabs__content {
273
+ padding: 15px;
274
+ }
275
+ > .#{$namespace}-tabs__header {
276
+ background-color: getCssVar('fill-color', 'light');
277
+ border-bottom: 1px solid getCssVar('border-color-light');
278
+ margin: 0;
279
+ }
280
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__nav-wrap::after {
281
+ content: none;
282
+ }
283
+ > .#{$namespace}-tabs__header .#{$namespace}-tabs__item {
284
+ transition: all getCssVar('transition-duration')
285
+ getCssVar('transition-function-ease-in-out-bezier');
286
+ border: 1px solid transparent;
287
+ margin-top: -1px;
288
+ color: getCssVar('text-color', 'secondary');
289
+
290
+ &:first-child {
291
+ margin-left: -1px;
292
+ }
293
+
294
+ & + .#{$namespace}-tabs__item {
295
+ margin-left: -1px;
296
+ }
297
+
298
+ &.is-active {
299
+ color: getCssVar('color-primary');
300
+ background-color: getCssVar('bg-color', 'overlay');
301
+ border-right-color: getCssVar('border-color');
302
+ border-left-color: getCssVar('border-color');
303
+ }
304
+
305
+ &:not(.is-disabled):hover {
306
+ color: getCssVar('color-primary');
307
+ }
308
+
309
+ &.is-disabled {
310
+ color: getCssVar('disabled-text-color');
311
+ }
312
+ }
313
+
314
+ > .#{$namespace}-tabs__header
315
+ .is-scrollable
316
+ .#{$namespace}-tabs__item:first-child {
317
+ margin-left: 0;
318
+ }
319
+ }
320
+ @include m(bottom) {
321
+ flex-direction: column;
322
+
323
+ .#{$namespace}-tabs__header.is-bottom {
324
+ margin-bottom: 0;
325
+ margin-top: 10px;
326
+ }
327
+ &.#{$namespace}-tabs--border-card {
328
+ .#{$namespace}-tabs__header.is-bottom {
329
+ border-bottom: 0;
330
+ border-top: 1px solid getCssVar('border-color');
331
+ }
332
+
333
+ .#{$namespace}-tabs__nav-wrap.is-bottom {
334
+ margin-top: -1px;
335
+ margin-bottom: 0;
336
+ }
337
+
338
+ .#{$namespace}-tabs__item.is-bottom:not(.is-active) {
339
+ border: 1px solid transparent;
340
+ }
341
+
342
+ .#{$namespace}-tabs__item.is-bottom {
343
+ margin: 0 -1px -1px;
344
+ }
345
+ }
346
+ }
347
+ @include m((left, right)) {
348
+ overflow: hidden;
349
+
350
+ .#{$namespace}-tabs__header.is-left,
351
+ .#{$namespace}-tabs__header.is-right,
352
+ .#{$namespace}-tabs__nav-wrap.is-left,
353
+ .#{$namespace}-tabs__nav-wrap.is-right,
354
+ .#{$namespace}-tabs__nav-scroll {
355
+ height: 100%;
356
+ }
357
+
358
+ .#{$namespace}-tabs__active-bar.is-left,
359
+ .#{$namespace}-tabs__active-bar.is-right {
360
+ top: 0;
361
+ bottom: auto;
362
+ width: 2px;
363
+ height: auto;
364
+ }
365
+
366
+ .#{$namespace}-tabs__nav-wrap.is-left,
367
+ .#{$namespace}-tabs__nav-wrap.is-right {
368
+ margin-bottom: 0;
369
+
370
+ > .#{$namespace}-tabs__nav-prev,
371
+ > .#{$namespace}-tabs__nav-next {
372
+ height: 30px;
373
+ line-height: 30px;
374
+ width: 100%;
375
+ text-align: center;
376
+ cursor: pointer;
377
+
378
+ i {
379
+ transform: rotateZ(90deg);
380
+ }
381
+ }
382
+
383
+ > .#{$namespace}-tabs__nav-prev {
384
+ left: auto;
385
+ top: 0;
386
+ }
387
+
388
+ > .#{$namespace}-tabs__nav-next {
389
+ right: auto;
390
+ bottom: 0;
391
+ }
392
+
393
+ &.is-scrollable {
394
+ padding: 30px 0;
395
+ }
396
+
397
+ &::after {
398
+ height: 100%;
399
+ width: 2px;
400
+ bottom: auto;
401
+ top: 0;
402
+ }
403
+ }
404
+
405
+ .#{$namespace}-tabs__nav.is-left,
406
+ .#{$namespace}-tabs__nav.is-right {
407
+ flex-direction: column;
408
+ }
409
+
410
+ .#{$namespace}-tabs__item.is-left {
411
+ justify-content: flex-end;
412
+ }
413
+
414
+ .#{$namespace}-tabs__item.is-right {
415
+ justify-content: flex-start;
416
+ }
417
+ }
418
+ @include m(left) {
419
+ flex-direction: row-reverse;
420
+
421
+ .#{$namespace}-tabs__header.is-left {
422
+ margin-bottom: 0;
423
+ margin-right: 10px;
424
+ }
425
+ .#{$namespace}-tabs__nav-wrap.is-left {
426
+ margin-right: -1px;
427
+
428
+ &::after {
429
+ left: auto;
430
+ right: 0;
431
+ }
432
+ }
433
+ .#{$namespace}-tabs__active-bar.is-left {
434
+ right: 0;
435
+ left: auto;
436
+ }
437
+ .#{$namespace}-tabs__item.is-left {
438
+ text-align: right;
439
+ }
440
+
441
+ &.#{$namespace}-tabs--card {
442
+ .#{$namespace}-tabs__active-bar.is-left {
443
+ display: none;
444
+ }
445
+
446
+ .#{$namespace}-tabs__item.is-left {
447
+ border-left: none;
448
+ border-right: 1px solid getCssVar('border-color-light');
449
+ border-bottom: none;
450
+ border-top: 1px solid getCssVar('border-color-light');
451
+ text-align: left;
452
+ }
453
+
454
+ .#{$namespace}-tabs__item.is-left:first-child {
455
+ border-right: 1px solid getCssVar('border-color-light');
456
+ border-top: none;
457
+ }
458
+
459
+ .#{$namespace}-tabs__item.is-left.is-active {
460
+ border: 1px solid getCssVar('border-color-light');
461
+ border-right-color: #fff;
462
+ border-left: none;
463
+ border-bottom: none;
464
+
465
+ &:first-child {
466
+ border-top: none;
467
+ }
468
+
469
+ &:last-child {
470
+ border-bottom: none;
471
+ }
472
+ }
473
+
474
+ .#{$namespace}-tabs__nav {
475
+ border-radius: 4px 0 0 4px;
476
+ border-bottom: 1px solid getCssVar('border-color-light');
477
+ border-right: none;
478
+ }
479
+
480
+ .#{$namespace}-tabs__new-tab {
481
+ float: none;
482
+ }
483
+ }
484
+
485
+ &.#{$namespace}-tabs--border-card {
486
+ .#{$namespace}-tabs__header.is-left {
487
+ border-right: 1px solid getCssVar('border-color');
488
+ }
489
+
490
+ .#{$namespace}-tabs__item.is-left {
491
+ border: 1px solid transparent;
492
+ margin: -1px 0 -1px -1px;
493
+
494
+ &.is-active {
495
+ border-color: transparent;
496
+ border-top-color: rgb(209, 219, 229);
497
+ border-bottom-color: rgb(209, 219, 229);
498
+ }
499
+ }
500
+ }
501
+ }
502
+ @include m(right) {
503
+ .#{$namespace}-tabs__header.is-right {
504
+ margin-bottom: 0;
505
+ margin-left: 10px;
506
+ }
507
+
508
+ .#{$namespace}-tabs__nav-wrap.is-right {
509
+ margin-left: -1px;
510
+
511
+ &::after {
512
+ left: 0;
513
+ right: auto;
514
+ }
515
+ }
516
+
517
+ .#{$namespace}-tabs__active-bar.is-right {
518
+ left: 0;
519
+ }
520
+
521
+ &.#{$namespace}-tabs--card {
522
+ .#{$namespace}-tabs__active-bar.is-right {
523
+ display: none;
524
+ }
525
+
526
+ .#{$namespace}-tabs__item.is-right {
527
+ border-bottom: none;
528
+ border-top: 1px solid getCssVar('border-color-light');
529
+ }
530
+
531
+ .#{$namespace}-tabs__item.is-right:first-child {
532
+ border-left: 1px solid getCssVar('border-color-light');
533
+ border-top: none;
534
+ }
535
+
536
+ .#{$namespace}-tabs__item.is-right.is-active {
537
+ border: 1px solid getCssVar('border-color-light');
538
+ border-left-color: #fff;
539
+ border-right: none;
540
+ border-bottom: none;
541
+
542
+ &:first-child {
543
+ border-top: none;
544
+ }
545
+
546
+ &:last-child {
547
+ border-bottom: none;
548
+ }
549
+ }
550
+
551
+ .#{$namespace}-tabs__nav {
552
+ border-radius: 0 4px 4px 0;
553
+ border-bottom: 1px solid getCssVar('border-color-light');
554
+ border-left: none;
555
+ }
556
+ }
557
+ &.#{$namespace}-tabs--border-card {
558
+ .#{$namespace}-tabs__header.is-right {
559
+ border-left: 1px solid getCssVar('border-color');
560
+ }
561
+
562
+ .#{$namespace}-tabs__item.is-right {
563
+ border: 1px solid transparent;
564
+ margin: -1px -1px -1px 0;
565
+
566
+ &.is-active {
567
+ border-color: transparent;
568
+ border-top-color: rgb(209, 219, 229);
569
+ border-bottom-color: rgb(209, 219, 229);
570
+ }
571
+ }
572
+ }
573
+ }
574
+ @include m(top) {
575
+ flex-direction: column-reverse;
576
+ }
577
+ }
578
+
579
+ .slideInRight-transition,
580
+ .slideInLeft-transition {
581
+ display: inline-block;
582
+ }
583
+
584
+ .slideInRight-enter {
585
+ animation: slideInRight-enter getCssVar('transition-duration');
586
+ }
587
+
588
+ .slideInRight-leave {
589
+ position: absolute;
590
+ left: 0;
591
+ right: 0;
592
+ animation: slideInRight-leave getCssVar('transition-duration');
593
+ }
594
+
595
+ .slideInLeft-enter {
596
+ animation: slideInLeft-enter getCssVar('transition-duration');
597
+ }
598
+
599
+ .slideInLeft-leave {
600
+ position: absolute;
601
+ left: 0;
602
+ right: 0;
603
+ animation: slideInLeft-leave getCssVar('transition-duration');
604
+ }
605
+
606
+ @keyframes slideInRight-enter {
607
+ 0% {
608
+ opacity: 0;
609
+ transform-origin: 0 0;
610
+ transform: translateX(100%);
611
+ }
612
+
613
+ to {
614
+ opacity: 1;
615
+ transform-origin: 0 0;
616
+ transform: translateX(0);
617
+ }
618
+ }
619
+
620
+ @keyframes slideInRight-leave {
621
+ 0% {
622
+ transform-origin: 0 0;
623
+ transform: translateX(0);
624
+ opacity: 1;
625
+ }
626
+
627
+ 100% {
628
+ transform-origin: 0 0;
629
+ transform: translateX(100%);
630
+ opacity: 0;
631
+ }
632
+ }
633
+
634
+ @keyframes slideInLeft-enter {
635
+ 0% {
636
+ opacity: 0;
637
+ transform-origin: 0 0;
638
+ transform: translateX(-100%);
639
+ }
640
+
641
+ to {
642
+ opacity: 1;
643
+ transform-origin: 0 0;
644
+ transform: translateX(0);
645
+ }
646
+ }
647
+
648
+ @keyframes slideInLeft-leave {
649
+ 0% {
650
+ transform-origin: 0 0;
651
+ transform: translateX(0);
652
+ opacity: 1;
653
+ }
654
+
655
+ 100% {
656
+ transform-origin: 0 0;
657
+ transform: translateX(-100%);
658
+ opacity: 0;
659
+ }
660
+ }