adtec-core-package 1.2.1 → 1.2.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.
Files changed (149) hide show
  1. package/.editorconfig +6 -6
  2. package/.prettierrc.json +7 -7
  3. package/.vscode/extensions.json +8 -8
  4. package/README.md +39 -39
  5. package/env.d.ts +1 -1
  6. package/eslint.config.js +56 -56
  7. package/index.html +13 -13
  8. package/package.json +1 -1
  9. package/src/App.vue +9 -9
  10. package/src/assets/base.css +86 -86
  11. package/src/assets/logo.svg +1 -1
  12. package/src/assets/main.css +35 -35
  13. package/src/assets/style/transition.scss +49 -49
  14. package/src/components/icon/ElIcons.vue +38 -38
  15. package/src/components/workflow/components/CheckDialog.vue +1 -0
  16. package/src/css/elementUI/affix.scss +7 -7
  17. package/src/css/elementUI/alert.scss +115 -115
  18. package/src/css/elementUI/anchor-link.scss +41 -41
  19. package/src/css/elementUI/anchor.scss +88 -88
  20. package/src/css/elementUI/aside.scss +8 -8
  21. package/src/css/elementUI/avatar.scss +55 -55
  22. package/src/css/elementUI/backtop.scss +29 -29
  23. package/src/css/elementUI/badge.scss +58 -58
  24. package/src/css/elementUI/base.scss +3 -3
  25. package/src/css/elementUI/breadcrumb.scss +62 -62
  26. package/src/css/elementUI/button-group.scss +80 -80
  27. package/src/css/elementUI/button.scss +304 -304
  28. package/src/css/elementUI/calendar.scss +80 -80
  29. package/src/css/elementUI/card.scss +45 -45
  30. package/src/css/elementUI/carousel-item.scss +58 -58
  31. package/src/css/elementUI/carousel.scss +188 -188
  32. package/src/css/elementUI/cascader-panel.scss +138 -138
  33. package/src/css/elementUI/cascader.scss +230 -230
  34. package/src/css/elementUI/check-tag.scss +60 -60
  35. package/src/css/elementUI/checkbox-button.scss +140 -140
  36. package/src/css/elementUI/checkbox-group.scss +7 -7
  37. package/src/css/elementUI/checkbox.scss +298 -298
  38. package/src/css/elementUI/col.scss +48 -48
  39. package/src/css/elementUI/collapse.scss +70 -70
  40. package/src/css/elementUI/color/index.scss +20 -20
  41. package/src/css/elementUI/color-picker.scss +392 -392
  42. package/src/css/elementUI/common/popup.scss +47 -47
  43. package/src/css/elementUI/common/transition.scss +122 -122
  44. package/src/css/elementUI/container.scss +14 -14
  45. package/src/css/elementUI/dark/css-vars.scss +39 -39
  46. package/src/css/elementUI/dark/var.scss +222 -222
  47. package/src/css/elementUI/date-picker/date-picker.scss +110 -110
  48. package/src/css/elementUI/date-picker/date-range-picker.scss +113 -113
  49. package/src/css/elementUI/date-picker/date-table.scss +158 -158
  50. package/src/css/elementUI/date-picker/month-table.scss +112 -112
  51. package/src/css/elementUI/date-picker/picker-panel.scss +131 -131
  52. package/src/css/elementUI/date-picker/time-picker.scss +90 -90
  53. package/src/css/elementUI/date-picker/time-range-picker.scss +33 -33
  54. package/src/css/elementUI/date-picker/time-spinner.scss +111 -111
  55. package/src/css/elementUI/date-picker/year-table.scss +108 -108
  56. package/src/css/elementUI/date-picker.scss +9 -9
  57. package/src/css/elementUI/descriptions-item.scss +73 -73
  58. package/src/css/elementUI/dialog.scss +199 -199
  59. package/src/css/elementUI/display.scss +12 -12
  60. package/src/css/elementUI/divider.scss +48 -48
  61. package/src/css/elementUI/dropdown.scss +208 -208
  62. package/src/css/elementUI/empty.scss +49 -49
  63. package/src/css/elementUI/footer.scss +12 -12
  64. package/src/css/elementUI/form.scss +243 -243
  65. package/src/css/elementUI/header.scss +12 -12
  66. package/src/css/elementUI/icon.scss +45 -45
  67. package/src/css/elementUI/image-viewer.scss +139 -139
  68. package/src/css/elementUI/image.scss +49 -49
  69. package/src/css/elementUI/index.scss +110 -110
  70. package/src/css/elementUI/input-number.scss +178 -178
  71. package/src/css/elementUI/input.scss +478 -478
  72. package/src/css/elementUI/link.scss +90 -90
  73. package/src/css/elementUI/loading.scss +104 -104
  74. package/src/css/elementUI/main.scss +14 -14
  75. package/src/css/elementUI/mention.scss +88 -88
  76. package/src/css/elementUI/menu.scss +339 -339
  77. package/src/css/elementUI/message-box.scss +213 -213
  78. package/src/css/elementUI/message.scss +98 -98
  79. package/src/css/elementUI/mixins/_button.scss +165 -165
  80. package/src/css/elementUI/mixins/_col.scss +33 -33
  81. package/src/css/elementUI/mixins/_var.scss +67 -67
  82. package/src/css/elementUI/mixins/config.scss +5 -5
  83. package/src/css/elementUI/mixins/function.scss +88 -88
  84. package/src/css/elementUI/mixins/mixins.scss +237 -237
  85. package/src/css/elementUI/mixins/utils.scss +39 -39
  86. package/src/css/elementUI/notification.scss +104 -104
  87. package/src/css/elementUI/option-group.scss +33 -33
  88. package/src/css/elementUI/option.scss +71 -71
  89. package/src/css/elementUI/overlay.scss +17 -17
  90. package/src/css/elementUI/page-header.scss +60 -60
  91. package/src/css/elementUI/pagination.scss +238 -238
  92. package/src/css/elementUI/popconfirm.scss +16 -16
  93. package/src/css/elementUI/popover.scss +61 -61
  94. package/src/css/elementUI/popper.scss +106 -106
  95. package/src/css/elementUI/progress.scss +179 -179
  96. package/src/css/elementUI/radio-button.scss +169 -169
  97. package/src/css/elementUI/radio-group.scss +9 -9
  98. package/src/css/elementUI/radio.scss +215 -215
  99. package/src/css/elementUI/rate.scss +108 -108
  100. package/src/css/elementUI/reset.scss +98 -98
  101. package/src/css/elementUI/result.scss +57 -57
  102. package/src/css/elementUI/row.scss +35 -35
  103. package/src/css/elementUI/scrollbar.scss +97 -97
  104. package/src/css/elementUI/segmented.scss +183 -183
  105. package/src/css/elementUI/select-dropdown-v2.scss +1 -1
  106. package/src/css/elementUI/select-dropdown.scss +57 -57
  107. package/src/css/elementUI/select-v2.scss +4 -4
  108. package/src/css/elementUI/select.scss +253 -253
  109. package/src/css/elementUI/skeleton-item.scss +83 -83
  110. package/src/css/elementUI/skeleton.scss +44 -44
  111. package/src/css/elementUI/slider.scss +212 -212
  112. package/src/css/elementUI/space.scss +20 -20
  113. package/src/css/elementUI/spinner.scss +43 -43
  114. package/src/css/elementUI/statistic.scss +35 -35
  115. package/src/css/elementUI/step.scss +316 -316
  116. package/src/css/elementUI/steps.scss +21 -21
  117. package/src/css/elementUI/switch.scss +300 -300
  118. package/src/css/elementUI/table-column.scss +98 -98
  119. package/src/css/elementUI/table-v2.scss +236 -236
  120. package/src/css/elementUI/tag.scss +181 -181
  121. package/src/css/elementUI/text.scss +51 -51
  122. package/src/css/elementUI/time-picker.scss +5 -5
  123. package/src/css/elementUI/time-select.scss +37 -37
  124. package/src/css/elementUI/timeline-item.scss +84 -84
  125. package/src/css/elementUI/timeline.scss +46 -46
  126. package/src/css/elementUI/tooltip-v2.scss +95 -95
  127. package/src/css/elementUI/tour.scss +187 -187
  128. package/src/css/elementUI/transfer.scss +203 -203
  129. package/src/css/elementUI/tree-select.scss +41 -41
  130. package/src/css/elementUI/tree.scss +134 -134
  131. package/src/css/elementUI/upload.scss +654 -654
  132. package/src/css/elementUI/var.scss +87 -87
  133. package/src/css/elementUI/virtual-list.scss +40 -40
  134. package/src/hooks/useFileView.ts +0 -24
  135. package/src/interface/enum/FlexEnum.ts +85 -85
  136. package/src/interface/workflow/IWfReturnNodeVo.ts +1 -0
  137. package/src/interface/workflow/IWfTaskAskVo.ts +4 -0
  138. package/src/main.ts +14 -14
  139. package/src/router/index.ts +23 -23
  140. package/src/utils/FrameworkUtils.ts +335 -335
  141. package/src/utils/encrypt.ts +10 -10
  142. package/tsconfig.app.json +12 -12
  143. package/tsconfig.json +11 -11
  144. package/tsconfig.node.json +18 -18
  145. package/vite.config.ts +38 -38
  146. package/adtec-core-package/adtec-core-package.css +0 -1
  147. package/adtec-core-package/adtec-core-package.js +0 -41605
  148. package/adtec-core-package/adtec-core-package.umd.cjs +0 -79
  149. package/adtec-core-package/favicon.ico +0 -0
@@ -1,300 +1,300 @@
1
- @use 'sass:map';
2
-
3
- @use 'mixins/mixins' as *;
4
- @use 'mixins/utils' as *;
5
- @use 'mixins/var' as *;
6
- @use 'common/var' as *;
7
-
8
- $switch-height: () !default;
9
- $switch-height: map.merge(
10
- (
11
- 'large': 40px,
12
- 'default': 32px,
13
- 'small': 24px,
14
- ),
15
- $switch-height
16
- );
17
-
18
- $switch-font-size: () !default;
19
- $switch-font-size: map.merge(
20
- (
21
- 'large': 14px,
22
- 'default': 14px,
23
- 'small': 12px,
24
- ),
25
- $switch-font-size
26
- );
27
-
28
- $switch-core-border-radius: () !default;
29
- $switch-core-border-radius: map.merge(
30
- (
31
- 'large': 12px,
32
- 'default': 10px,
33
- 'small': 8px,
34
- ),
35
- $switch-core-border-radius
36
- );
37
-
38
- $switch-core-width: () !default;
39
- $switch-core-width: map.merge(
40
- (
41
- 'large': 50px,
42
- 'default': 40px,
43
- 'small': 30px,
44
- ),
45
- $switch-core-width
46
- );
47
-
48
- $switch-core-height: () !default;
49
- $switch-core-height: map.merge(
50
- (
51
- 'large': 24px,
52
- 'default': 20px,
53
- 'small': 16px,
54
- ),
55
- $switch-core-height
56
- );
57
-
58
- $switch-button-size: () !default;
59
- $switch-button-size: map.merge(
60
- (
61
- 'large': 20px,
62
- 'default': 16px,
63
- 'small': 12px,
64
- ),
65
- $switch-button-size
66
- );
67
-
68
- $switch-content-padding: () !default;
69
- $switch-content-padding: map.merge(
70
- (
71
- 'large': 6px,
72
- 'default': 4px,
73
- 'small': 2px,
74
- ),
75
- $switch-content-padding
76
- );
77
-
78
- @include b(switch) {
79
- @include set-component-css-var('switch', $switch);
80
- }
81
-
82
- @include b(switch) {
83
- display: inline-flex;
84
- align-items: center;
85
- position: relative;
86
- font-size: map.get($switch-font-size, 'default');
87
- line-height: map.get($switch-core-height, 'default');
88
- height: map.get($switch-height, 'default');
89
- vertical-align: middle;
90
-
91
- @include when(disabled) {
92
- & .#{$namespace}-switch__core,
93
- & .#{$namespace}-switch__label {
94
- cursor: not-allowed;
95
- }
96
- }
97
-
98
- @include e(label) {
99
- transition: getCssVar('transition-duration-fast');
100
- height: map.get($switch-core-height, 'default');
101
- display: inline-block;
102
- font-size: map.get($switch-font-size, 'default');
103
- font-weight: 500;
104
- cursor: pointer;
105
- vertical-align: middle;
106
- color: getCssVar('text-color', 'primary');
107
-
108
- @include when(active) {
109
- color: getCssVar('color-primary');
110
- }
111
-
112
- @include m(left) {
113
- margin-right: 10px;
114
- }
115
- @include m(right) {
116
- margin-left: 10px;
117
- }
118
- & * {
119
- line-height: 1;
120
- font-size: map.get($switch-font-size, 'default');
121
- display: inline-block;
122
- }
123
- .#{$namespace}-icon {
124
- height: inherit;
125
-
126
- svg {
127
- vertical-align: middle;
128
- }
129
- }
130
- }
131
-
132
- @include e(input) {
133
- position: absolute;
134
- width: 0;
135
- height: 0;
136
- opacity: 0;
137
- margin: 0;
138
-
139
- &:focus-visible {
140
- & ~ .#{$namespace}-switch__core {
141
- outline: 2px solid getCssVar('switch-on-color');
142
- outline-offset: 1px;
143
- }
144
- }
145
- }
146
-
147
- @include e(core) {
148
- display: inline-flex;
149
- position: relative;
150
- align-items: center;
151
- min-width: map.get($switch-core-width, 'default');
152
- height: map.get($switch-core-height, 'default');
153
- border: 1px solid
154
- var(
155
- #{getCssVarName('switch-border-color')},
156
- #{getCssVar('switch-off-color')}
157
- );
158
- outline: none;
159
- border-radius: map.get($switch-core-border-radius, 'default');
160
- box-sizing: border-box;
161
- background: getCssVar('switch-off-color');
162
- cursor: pointer;
163
- transition: border-color getCssVar('transition-duration'),
164
- background-color getCssVar('transition-duration');
165
-
166
- .#{$namespace}-switch__inner {
167
- width: 100%;
168
- transition: all getCssVar('transition-duration');
169
- height: map.get($switch-button-size, 'default');
170
- display: flex;
171
- justify-content: center;
172
- align-items: center;
173
- overflow: hidden;
174
- padding: 0 #{map.get($switch-content-padding, 'default')} 0 calc(#{map.get(
175
- $switch-button-size,
176
- 'default'
177
- )} + 2px);
178
-
179
- .is-icon,
180
- .is-text {
181
- font-size: 12px;
182
- color: getCssVar('color-white');
183
- user-select: none;
184
- @include utils-ellipsis;
185
- }
186
- }
187
-
188
- .#{$namespace}-switch__action {
189
- position: absolute;
190
- left: 1px;
191
- border-radius: getCssVar('border-radius-circle');
192
- transition: all getCssVar('transition-duration');
193
- width: map.get($switch-button-size, 'default');
194
- height: map.get($switch-button-size, 'default');
195
- background-color: getCssVar('color-white');
196
- display: flex;
197
- justify-content: center;
198
- align-items: center;
199
- color: getCssVar('switch-off-color');
200
- }
201
- }
202
-
203
- @include when(checked) {
204
- .#{$namespace}-switch__core {
205
- border-color: var(
206
- #{getCssVarName('switch-border-color')},
207
- #{getCssVar('switch-on-color')}
208
- );
209
- background-color: getCssVar('switch-on-color');
210
-
211
- .#{$namespace}-switch__action {
212
- left: calc(100% - #{map.get($switch-button-size, 'default') + 1px});
213
- color: getCssVar('switch-on-color');
214
- }
215
-
216
- .#{$namespace}-switch__inner {
217
- padding: 0 calc(#{map.get($switch-button-size, 'default')} + 2px) 0 #{map.get(
218
- $switch-content-padding,
219
- 'default'
220
- )};
221
- }
222
- }
223
- }
224
-
225
- @include when(disabled) {
226
- opacity: 0.6;
227
- }
228
-
229
- @include m(wide) {
230
- .#{$namespace}-switch__label {
231
- &.#{$namespace}-switch__label--left {
232
- span {
233
- left: 10px;
234
- }
235
- }
236
-
237
- &.#{$namespace}-switch__label--right {
238
- span {
239
- right: 10px;
240
- }
241
- }
242
- }
243
- }
244
-
245
- & .label-fade-enter-from,
246
- & .label-fade-leave-active {
247
- opacity: 0;
248
- }
249
-
250
- @each $size in (large, small) {
251
- @include m($size) {
252
- font-size: map.get($switch-font-size, $size);
253
- line-height: map.get($switch-core-height, $size);
254
- height: map.get($switch-height, $size);
255
-
256
- @include e(label) {
257
- height: map.get($switch-core-height, $size);
258
- font-size: map.get($switch-font-size, $size);
259
-
260
- & * {
261
- font-size: map.get($switch-font-size, $size);
262
- }
263
- }
264
-
265
- @include e(core) {
266
- min-width: map.get($switch-core-width, $size);
267
- height: map.get($switch-core-height, $size);
268
- border-radius: map.get($switch-core-border-radius, $size);
269
-
270
- .#{$namespace}-switch__inner {
271
- height: map.get($switch-button-size, $size);
272
- padding: 0 #{map.get($switch-content-padding, $size)} 0 calc(#{map.get(
273
- $switch-button-size,
274
- $size
275
- )} + 2px);
276
- }
277
-
278
- .#{$namespace}-switch__action {
279
- width: map.get($switch-button-size, $size);
280
- height: map.get($switch-button-size, $size);
281
- }
282
- }
283
-
284
- @include when(checked) {
285
- .#{$namespace}-switch__core {
286
- .#{$namespace}-switch__action {
287
- left: calc(100% - #{map.get($switch-button-size, $size) + 1px});
288
- }
289
-
290
- .#{$namespace}-switch__inner {
291
- padding: 0 calc(#{map.get($switch-button-size, $size)} + 2px) 0 #{map.get(
292
- $switch-content-padding,
293
- $size
294
- )};
295
- }
296
- }
297
- }
298
- }
299
- }
300
- }
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/utils' as *;
5
+ @use 'mixins/var' as *;
6
+ @use 'common/var' as *;
7
+
8
+ $switch-height: () !default;
9
+ $switch-height: map.merge(
10
+ (
11
+ 'large': 40px,
12
+ 'default': 32px,
13
+ 'small': 24px,
14
+ ),
15
+ $switch-height
16
+ );
17
+
18
+ $switch-font-size: () !default;
19
+ $switch-font-size: map.merge(
20
+ (
21
+ 'large': 14px,
22
+ 'default': 14px,
23
+ 'small': 12px,
24
+ ),
25
+ $switch-font-size
26
+ );
27
+
28
+ $switch-core-border-radius: () !default;
29
+ $switch-core-border-radius: map.merge(
30
+ (
31
+ 'large': 12px,
32
+ 'default': 10px,
33
+ 'small': 8px,
34
+ ),
35
+ $switch-core-border-radius
36
+ );
37
+
38
+ $switch-core-width: () !default;
39
+ $switch-core-width: map.merge(
40
+ (
41
+ 'large': 50px,
42
+ 'default': 40px,
43
+ 'small': 30px,
44
+ ),
45
+ $switch-core-width
46
+ );
47
+
48
+ $switch-core-height: () !default;
49
+ $switch-core-height: map.merge(
50
+ (
51
+ 'large': 24px,
52
+ 'default': 20px,
53
+ 'small': 16px,
54
+ ),
55
+ $switch-core-height
56
+ );
57
+
58
+ $switch-button-size: () !default;
59
+ $switch-button-size: map.merge(
60
+ (
61
+ 'large': 20px,
62
+ 'default': 16px,
63
+ 'small': 12px,
64
+ ),
65
+ $switch-button-size
66
+ );
67
+
68
+ $switch-content-padding: () !default;
69
+ $switch-content-padding: map.merge(
70
+ (
71
+ 'large': 6px,
72
+ 'default': 4px,
73
+ 'small': 2px,
74
+ ),
75
+ $switch-content-padding
76
+ );
77
+
78
+ @include b(switch) {
79
+ @include set-component-css-var('switch', $switch);
80
+ }
81
+
82
+ @include b(switch) {
83
+ display: inline-flex;
84
+ align-items: center;
85
+ position: relative;
86
+ font-size: map.get($switch-font-size, 'default');
87
+ line-height: map.get($switch-core-height, 'default');
88
+ height: map.get($switch-height, 'default');
89
+ vertical-align: middle;
90
+
91
+ @include when(disabled) {
92
+ & .#{$namespace}-switch__core,
93
+ & .#{$namespace}-switch__label {
94
+ cursor: not-allowed;
95
+ }
96
+ }
97
+
98
+ @include e(label) {
99
+ transition: getCssVar('transition-duration-fast');
100
+ height: map.get($switch-core-height, 'default');
101
+ display: inline-block;
102
+ font-size: map.get($switch-font-size, 'default');
103
+ font-weight: 500;
104
+ cursor: pointer;
105
+ vertical-align: middle;
106
+ color: getCssVar('text-color', 'primary');
107
+
108
+ @include when(active) {
109
+ color: getCssVar('color-primary');
110
+ }
111
+
112
+ @include m(left) {
113
+ margin-right: 10px;
114
+ }
115
+ @include m(right) {
116
+ margin-left: 10px;
117
+ }
118
+ & * {
119
+ line-height: 1;
120
+ font-size: map.get($switch-font-size, 'default');
121
+ display: inline-block;
122
+ }
123
+ .#{$namespace}-icon {
124
+ height: inherit;
125
+
126
+ svg {
127
+ vertical-align: middle;
128
+ }
129
+ }
130
+ }
131
+
132
+ @include e(input) {
133
+ position: absolute;
134
+ width: 0;
135
+ height: 0;
136
+ opacity: 0;
137
+ margin: 0;
138
+
139
+ &:focus-visible {
140
+ & ~ .#{$namespace}-switch__core {
141
+ outline: 2px solid getCssVar('switch-on-color');
142
+ outline-offset: 1px;
143
+ }
144
+ }
145
+ }
146
+
147
+ @include e(core) {
148
+ display: inline-flex;
149
+ position: relative;
150
+ align-items: center;
151
+ min-width: map.get($switch-core-width, 'default');
152
+ height: map.get($switch-core-height, 'default');
153
+ border: 1px solid
154
+ var(
155
+ #{getCssVarName('switch-border-color')},
156
+ #{getCssVar('switch-off-color')}
157
+ );
158
+ outline: none;
159
+ border-radius: map.get($switch-core-border-radius, 'default');
160
+ box-sizing: border-box;
161
+ background: getCssVar('switch-off-color');
162
+ cursor: pointer;
163
+ transition: border-color getCssVar('transition-duration'),
164
+ background-color getCssVar('transition-duration');
165
+
166
+ .#{$namespace}-switch__inner {
167
+ width: 100%;
168
+ transition: all getCssVar('transition-duration');
169
+ height: map.get($switch-button-size, 'default');
170
+ display: flex;
171
+ justify-content: center;
172
+ align-items: center;
173
+ overflow: hidden;
174
+ padding: 0 #{map.get($switch-content-padding, 'default')} 0 calc(#{map.get(
175
+ $switch-button-size,
176
+ 'default'
177
+ )} + 2px);
178
+
179
+ .is-icon,
180
+ .is-text {
181
+ font-size: 12px;
182
+ color: getCssVar('color-white');
183
+ user-select: none;
184
+ @include utils-ellipsis;
185
+ }
186
+ }
187
+
188
+ .#{$namespace}-switch__action {
189
+ position: absolute;
190
+ left: 1px;
191
+ border-radius: getCssVar('border-radius-circle');
192
+ transition: all getCssVar('transition-duration');
193
+ width: map.get($switch-button-size, 'default');
194
+ height: map.get($switch-button-size, 'default');
195
+ background-color: getCssVar('color-white');
196
+ display: flex;
197
+ justify-content: center;
198
+ align-items: center;
199
+ color: getCssVar('switch-off-color');
200
+ }
201
+ }
202
+
203
+ @include when(checked) {
204
+ .#{$namespace}-switch__core {
205
+ border-color: var(
206
+ #{getCssVarName('switch-border-color')},
207
+ #{getCssVar('switch-on-color')}
208
+ );
209
+ background-color: getCssVar('switch-on-color');
210
+
211
+ .#{$namespace}-switch__action {
212
+ left: calc(100% - #{map.get($switch-button-size, 'default') + 1px});
213
+ color: getCssVar('switch-on-color');
214
+ }
215
+
216
+ .#{$namespace}-switch__inner {
217
+ padding: 0 calc(#{map.get($switch-button-size, 'default')} + 2px) 0 #{map.get(
218
+ $switch-content-padding,
219
+ 'default'
220
+ )};
221
+ }
222
+ }
223
+ }
224
+
225
+ @include when(disabled) {
226
+ opacity: 0.6;
227
+ }
228
+
229
+ @include m(wide) {
230
+ .#{$namespace}-switch__label {
231
+ &.#{$namespace}-switch__label--left {
232
+ span {
233
+ left: 10px;
234
+ }
235
+ }
236
+
237
+ &.#{$namespace}-switch__label--right {
238
+ span {
239
+ right: 10px;
240
+ }
241
+ }
242
+ }
243
+ }
244
+
245
+ & .label-fade-enter-from,
246
+ & .label-fade-leave-active {
247
+ opacity: 0;
248
+ }
249
+
250
+ @each $size in (large, small) {
251
+ @include m($size) {
252
+ font-size: map.get($switch-font-size, $size);
253
+ line-height: map.get($switch-core-height, $size);
254
+ height: map.get($switch-height, $size);
255
+
256
+ @include e(label) {
257
+ height: map.get($switch-core-height, $size);
258
+ font-size: map.get($switch-font-size, $size);
259
+
260
+ & * {
261
+ font-size: map.get($switch-font-size, $size);
262
+ }
263
+ }
264
+
265
+ @include e(core) {
266
+ min-width: map.get($switch-core-width, $size);
267
+ height: map.get($switch-core-height, $size);
268
+ border-radius: map.get($switch-core-border-radius, $size);
269
+
270
+ .#{$namespace}-switch__inner {
271
+ height: map.get($switch-button-size, $size);
272
+ padding: 0 #{map.get($switch-content-padding, $size)} 0 calc(#{map.get(
273
+ $switch-button-size,
274
+ $size
275
+ )} + 2px);
276
+ }
277
+
278
+ .#{$namespace}-switch__action {
279
+ width: map.get($switch-button-size, $size);
280
+ height: map.get($switch-button-size, $size);
281
+ }
282
+ }
283
+
284
+ @include when(checked) {
285
+ .#{$namespace}-switch__core {
286
+ .#{$namespace}-switch__action {
287
+ left: calc(100% - #{map.get($switch-button-size, $size) + 1px});
288
+ }
289
+
290
+ .#{$namespace}-switch__inner {
291
+ padding: 0 calc(#{map.get($switch-button-size, $size)} + 2px) 0 #{map.get(
292
+ $switch-content-padding,
293
+ $size
294
+ )};
295
+ }
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }