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,304 +1,304 @@
1
- @use 'sass:map';
2
-
3
- @use 'common/var' as *;
4
- @use 'mixins/button' as *;
5
- @use 'mixins/mixins' as *;
6
- @use 'mixins/utils' as *;
7
- @use 'mixins/var' as *;
8
-
9
- $button-icon-span-gap: () !default;
10
- $button-icon-span-gap: map.merge(
11
- (
12
- 'large': 8px,
13
- 'default': 6px,
14
- 'small': 4px,
15
- ),
16
- $button-icon-span-gap
17
- );
18
-
19
- @include b(button) {
20
- @include set-component-css-var('button', $button);
21
- }
22
-
23
- @include b(button) {
24
- display: inline-flex;
25
- justify-content: center;
26
- align-items: center;
27
- font-family: var(--el-font-family);
28
- line-height: 1;
29
- // min-height will expand when in flex
30
- height: map.get($input-height, 'default');
31
- white-space: nowrap;
32
- cursor: pointer;
33
- color: getCssVar('button', 'text-color');
34
- text-align: center;
35
- box-sizing: border-box;
36
- outline: none;
37
- transition: 0.1s;
38
- font-weight: getCssVar('button', 'font-weight');
39
- user-select: none;
40
- vertical-align: middle;
41
- -webkit-appearance: none;
42
- background-color: getCssVar('button', 'bg-color');
43
- border: getCssVar('border');
44
- border-color: getCssVar('button', 'border-color');
45
-
46
- &:hover {
47
- color: getCssVar('button', 'hover', 'text-color');
48
- border-color: getCssVar('button', 'hover', 'border-color');
49
- background-color: getCssVar('button', 'hover', 'bg-color');
50
- outline: none;
51
- }
52
-
53
- &:active {
54
- color: getCssVar('button', 'active', 'text-color');
55
- border-color: getCssVar('button', 'active', 'border-color');
56
- background-color: getCssVar('button', 'active', 'bg-color');
57
- outline: none;
58
- }
59
-
60
- &:focus-visible {
61
- outline: 2px solid getCssVar('button', 'outline-color');
62
- outline-offset: 1px;
63
- transition: outline-offset 0s, outline 0s;
64
- }
65
-
66
- > span {
67
- display: inline-flex;
68
- align-items: center;
69
- }
70
-
71
- & + & {
72
- margin-left: 8px;
73
- }
74
-
75
- & {
76
- @include button-size(
77
- map.get($button-padding-vertical, 'default') - $button-border-width,
78
- map.get($button-padding-horizontal, 'default') - $button-border-width,
79
- map.get($button-font-size, 'default'),
80
- map.get($button-border-radius, 'default')
81
- );
82
- }
83
-
84
- &::-moz-focus-inner {
85
- border: 0;
86
- }
87
-
88
- & [class*='#{$namespace}-icon'] {
89
- & + span {
90
- margin-left: map.get($button-icon-span-gap, 'default');
91
- }
92
- svg {
93
- vertical-align: bottom;
94
- }
95
- }
96
-
97
- @include when(plain) {
98
- @include css-var-from-global(
99
- ('button', 'hover', 'text-color'),
100
- ('color', 'primary')
101
- );
102
- @include css-var-from-global(
103
- ('button', 'hover', 'bg-color'),
104
- ('fill-color', 'blank')
105
- );
106
- @include css-var-from-global(
107
- ('button', 'hover', 'border-color'),
108
- ('color', 'primary')
109
- );
110
- }
111
-
112
- @include when(active) {
113
- color: getCssVar('button', 'active', 'text-color');
114
- border-color: getCssVar('button', 'active', 'border-color');
115
- background-color: getCssVar('button', 'active', 'bg-color');
116
- outline: none;
117
- }
118
-
119
- @include when(disabled) {
120
- &,
121
- &:hover {
122
- color: getCssVar('button', 'disabled', 'text-color');
123
- cursor: not-allowed;
124
- background-image: none;
125
- background-color: getCssVar('button', 'disabled', 'bg-color');
126
- border-color: getCssVar('button', 'disabled', 'border-color');
127
- }
128
- }
129
-
130
- @include when(loading) {
131
- position: relative;
132
- pointer-events: none;
133
-
134
- &:before {
135
- // mask the button
136
- z-index: 1;
137
- pointer-events: none;
138
- content: '';
139
- position: absolute;
140
- left: -1px;
141
- top: -1px;
142
- right: -1px;
143
- bottom: -1px;
144
- border-radius: inherit;
145
- background-color: getCssVar('mask-color', 'extra-light');
146
- }
147
- }
148
- @include when(round) {
149
- border-radius: getCssVar('border-radius', 'round');
150
- }
151
- @include when(circle) {
152
- width: map.get($input-height, 'default');
153
- border-radius: 50%;
154
- padding: map.get($button-padding-vertical, 'default') - $button-border-width;
155
- }
156
-
157
- @include when(text) {
158
- color: getCssVar('button', 'text-color');
159
- border: 0 solid transparent;
160
- background-color: transparent;
161
-
162
- @include when(disabled) {
163
- color: getCssVar('button', 'disabled', 'text-color');
164
- background-color: transparent !important;
165
- }
166
-
167
- &:not(.is-disabled) {
168
- &:hover {
169
- background-color: getCssVar('fill-color', 'light');
170
- }
171
-
172
- &:focus-visible {
173
- outline: 2px solid getCssVar('button', 'outline-color');
174
- outline-offset: 1px;
175
- transition: outline-offset 0s, outline 0s;
176
- }
177
-
178
- &:active {
179
- background-color: getCssVar('fill-color');
180
- }
181
-
182
- @include when(has-bg) {
183
- background-color: getCssVar('fill-color', 'light');
184
-
185
- &:hover {
186
- background-color: getCssVar('fill-color');
187
- }
188
-
189
- &:active {
190
- background-color: getCssVar('fill-color', 'dark');
191
- }
192
- }
193
- }
194
- }
195
-
196
- @include e(text) {
197
- @include m(expand) {
198
- letter-spacing: 0.3em;
199
- margin-right: -0.3em;
200
- }
201
- }
202
-
203
- @include when(link) {
204
- border-color: transparent;
205
- color: getCssVar('button', 'text-color');
206
- background: transparent;
207
- padding: 2px;
208
- height: auto;
209
-
210
- &:hover {
211
- color: getCssVar('button', 'hover', 'link-text-color');
212
- }
213
-
214
- @include when(disabled) {
215
- color: getCssVar('button', 'disabled', 'text-color');
216
- background-color: transparent !important;
217
- border-color: transparent !important;
218
- }
219
-
220
- &:not(.is-disabled) {
221
- &:hover {
222
- border-color: transparent;
223
- background-color: transparent;
224
- }
225
-
226
- &:active {
227
- color: getCssVar('button', 'active-color');
228
- border-color: transparent;
229
- background-color: transparent;
230
- }
231
- }
232
- }
233
-
234
- @include m(text) {
235
- border-color: transparent;
236
- background: transparent;
237
- color: getCssVar('color', 'primary');
238
- padding-left: 0;
239
- padding-right: 0;
240
- @include when(disabled) {
241
- color: getCssVar('button', 'disabled', 'text-color');
242
- background-color: transparent !important;
243
- border-color: transparent !important;
244
- }
245
-
246
- &:not(.is-disabled) {
247
- &:hover {
248
- color: getCssVar('color', 'primary', 'light-3');
249
- border-color: transparent;
250
- background-color: transparent;
251
- }
252
-
253
- &:active {
254
- color: getCssVar('color', 'primary', 'dark-2');
255
- border-color: transparent;
256
- background-color: transparent;
257
- }
258
- }
259
- }
260
-
261
- @include e(link) {
262
- @include m(expand) {
263
- letter-spacing: 0.3em;
264
- margin-right: -0.3em;
265
- }
266
- }
267
-
268
- @each $type in (primary, success, warning, danger, info) {
269
- @include m($type) {
270
- @include button-variant($type);
271
- }
272
- }
273
-
274
- @each $size in (large, small) {
275
- @include m($size) {
276
- @include set-css-var-value(
277
- ('button', 'size'),
278
- map.get($input-height, $size)
279
- );
280
-
281
- height: getCssVar('button', 'size');
282
-
283
- & [class*='#{$namespace}-icon'] {
284
- & + span {
285
- margin-left: map.get($button-icon-span-gap, $size);
286
- }
287
- }
288
-
289
- & {
290
- @include button-size(
291
- map.get($button-padding-vertical, $size) - $button-border-width,
292
- map.get($button-padding-horizontal, $size) - $button-border-width,
293
- map.get($button-font-size, $size),
294
- map.get($button-border-radius, $size)
295
- );
296
- }
297
-
298
- @include when(circle) {
299
- width: getCssVar('button', 'size');
300
- padding: map.get($button-padding-vertical, $size) - $button-border-width;
301
- }
302
- }
303
- }
304
- }
1
+ @use 'sass:map';
2
+
3
+ @use 'common/var' as *;
4
+ @use 'mixins/button' as *;
5
+ @use 'mixins/mixins' as *;
6
+ @use 'mixins/utils' as *;
7
+ @use 'mixins/var' as *;
8
+
9
+ $button-icon-span-gap: () !default;
10
+ $button-icon-span-gap: map.merge(
11
+ (
12
+ 'large': 8px,
13
+ 'default': 6px,
14
+ 'small': 4px,
15
+ ),
16
+ $button-icon-span-gap
17
+ );
18
+
19
+ @include b(button) {
20
+ @include set-component-css-var('button', $button);
21
+ }
22
+
23
+ @include b(button) {
24
+ display: inline-flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ font-family: var(--el-font-family);
28
+ line-height: 1;
29
+ // min-height will expand when in flex
30
+ height: map.get($input-height, 'default');
31
+ white-space: nowrap;
32
+ cursor: pointer;
33
+ color: getCssVar('button', 'text-color');
34
+ text-align: center;
35
+ box-sizing: border-box;
36
+ outline: none;
37
+ transition: 0.1s;
38
+ font-weight: getCssVar('button', 'font-weight');
39
+ user-select: none;
40
+ vertical-align: middle;
41
+ -webkit-appearance: none;
42
+ background-color: getCssVar('button', 'bg-color');
43
+ border: getCssVar('border');
44
+ border-color: getCssVar('button', 'border-color');
45
+
46
+ &:hover {
47
+ color: getCssVar('button', 'hover', 'text-color');
48
+ border-color: getCssVar('button', 'hover', 'border-color');
49
+ background-color: getCssVar('button', 'hover', 'bg-color');
50
+ outline: none;
51
+ }
52
+
53
+ &:active {
54
+ color: getCssVar('button', 'active', 'text-color');
55
+ border-color: getCssVar('button', 'active', 'border-color');
56
+ background-color: getCssVar('button', 'active', 'bg-color');
57
+ outline: none;
58
+ }
59
+
60
+ &:focus-visible {
61
+ outline: 2px solid getCssVar('button', 'outline-color');
62
+ outline-offset: 1px;
63
+ transition: outline-offset 0s, outline 0s;
64
+ }
65
+
66
+ > span {
67
+ display: inline-flex;
68
+ align-items: center;
69
+ }
70
+
71
+ & + & {
72
+ margin-left: 8px;
73
+ }
74
+
75
+ & {
76
+ @include button-size(
77
+ map.get($button-padding-vertical, 'default') - $button-border-width,
78
+ map.get($button-padding-horizontal, 'default') - $button-border-width,
79
+ map.get($button-font-size, 'default'),
80
+ map.get($button-border-radius, 'default')
81
+ );
82
+ }
83
+
84
+ &::-moz-focus-inner {
85
+ border: 0;
86
+ }
87
+
88
+ & [class*='#{$namespace}-icon'] {
89
+ & + span {
90
+ margin-left: map.get($button-icon-span-gap, 'default');
91
+ }
92
+ svg {
93
+ vertical-align: bottom;
94
+ }
95
+ }
96
+
97
+ @include when(plain) {
98
+ @include css-var-from-global(
99
+ ('button', 'hover', 'text-color'),
100
+ ('color', 'primary')
101
+ );
102
+ @include css-var-from-global(
103
+ ('button', 'hover', 'bg-color'),
104
+ ('fill-color', 'blank')
105
+ );
106
+ @include css-var-from-global(
107
+ ('button', 'hover', 'border-color'),
108
+ ('color', 'primary')
109
+ );
110
+ }
111
+
112
+ @include when(active) {
113
+ color: getCssVar('button', 'active', 'text-color');
114
+ border-color: getCssVar('button', 'active', 'border-color');
115
+ background-color: getCssVar('button', 'active', 'bg-color');
116
+ outline: none;
117
+ }
118
+
119
+ @include when(disabled) {
120
+ &,
121
+ &:hover {
122
+ color: getCssVar('button', 'disabled', 'text-color');
123
+ cursor: not-allowed;
124
+ background-image: none;
125
+ background-color: getCssVar('button', 'disabled', 'bg-color');
126
+ border-color: getCssVar('button', 'disabled', 'border-color');
127
+ }
128
+ }
129
+
130
+ @include when(loading) {
131
+ position: relative;
132
+ pointer-events: none;
133
+
134
+ &:before {
135
+ // mask the button
136
+ z-index: 1;
137
+ pointer-events: none;
138
+ content: '';
139
+ position: absolute;
140
+ left: -1px;
141
+ top: -1px;
142
+ right: -1px;
143
+ bottom: -1px;
144
+ border-radius: inherit;
145
+ background-color: getCssVar('mask-color', 'extra-light');
146
+ }
147
+ }
148
+ @include when(round) {
149
+ border-radius: getCssVar('border-radius', 'round');
150
+ }
151
+ @include when(circle) {
152
+ width: map.get($input-height, 'default');
153
+ border-radius: 50%;
154
+ padding: map.get($button-padding-vertical, 'default') - $button-border-width;
155
+ }
156
+
157
+ @include when(text) {
158
+ color: getCssVar('button', 'text-color');
159
+ border: 0 solid transparent;
160
+ background-color: transparent;
161
+
162
+ @include when(disabled) {
163
+ color: getCssVar('button', 'disabled', 'text-color');
164
+ background-color: transparent !important;
165
+ }
166
+
167
+ &:not(.is-disabled) {
168
+ &:hover {
169
+ background-color: getCssVar('fill-color', 'light');
170
+ }
171
+
172
+ &:focus-visible {
173
+ outline: 2px solid getCssVar('button', 'outline-color');
174
+ outline-offset: 1px;
175
+ transition: outline-offset 0s, outline 0s;
176
+ }
177
+
178
+ &:active {
179
+ background-color: getCssVar('fill-color');
180
+ }
181
+
182
+ @include when(has-bg) {
183
+ background-color: getCssVar('fill-color', 'light');
184
+
185
+ &:hover {
186
+ background-color: getCssVar('fill-color');
187
+ }
188
+
189
+ &:active {
190
+ background-color: getCssVar('fill-color', 'dark');
191
+ }
192
+ }
193
+ }
194
+ }
195
+
196
+ @include e(text) {
197
+ @include m(expand) {
198
+ letter-spacing: 0.3em;
199
+ margin-right: -0.3em;
200
+ }
201
+ }
202
+
203
+ @include when(link) {
204
+ border-color: transparent;
205
+ color: getCssVar('button', 'text-color');
206
+ background: transparent;
207
+ padding: 2px;
208
+ height: auto;
209
+
210
+ &:hover {
211
+ color: getCssVar('button', 'hover', 'link-text-color');
212
+ }
213
+
214
+ @include when(disabled) {
215
+ color: getCssVar('button', 'disabled', 'text-color');
216
+ background-color: transparent !important;
217
+ border-color: transparent !important;
218
+ }
219
+
220
+ &:not(.is-disabled) {
221
+ &:hover {
222
+ border-color: transparent;
223
+ background-color: transparent;
224
+ }
225
+
226
+ &:active {
227
+ color: getCssVar('button', 'active-color');
228
+ border-color: transparent;
229
+ background-color: transparent;
230
+ }
231
+ }
232
+ }
233
+
234
+ @include m(text) {
235
+ border-color: transparent;
236
+ background: transparent;
237
+ color: getCssVar('color', 'primary');
238
+ padding-left: 0;
239
+ padding-right: 0;
240
+ @include when(disabled) {
241
+ color: getCssVar('button', 'disabled', 'text-color');
242
+ background-color: transparent !important;
243
+ border-color: transparent !important;
244
+ }
245
+
246
+ &:not(.is-disabled) {
247
+ &:hover {
248
+ color: getCssVar('color', 'primary', 'light-3');
249
+ border-color: transparent;
250
+ background-color: transparent;
251
+ }
252
+
253
+ &:active {
254
+ color: getCssVar('color', 'primary', 'dark-2');
255
+ border-color: transparent;
256
+ background-color: transparent;
257
+ }
258
+ }
259
+ }
260
+
261
+ @include e(link) {
262
+ @include m(expand) {
263
+ letter-spacing: 0.3em;
264
+ margin-right: -0.3em;
265
+ }
266
+ }
267
+
268
+ @each $type in (primary, success, warning, danger, info) {
269
+ @include m($type) {
270
+ @include button-variant($type);
271
+ }
272
+ }
273
+
274
+ @each $size in (large, small) {
275
+ @include m($size) {
276
+ @include set-css-var-value(
277
+ ('button', 'size'),
278
+ map.get($input-height, $size)
279
+ );
280
+
281
+ height: getCssVar('button', 'size');
282
+
283
+ & [class*='#{$namespace}-icon'] {
284
+ & + span {
285
+ margin-left: map.get($button-icon-span-gap, $size);
286
+ }
287
+ }
288
+
289
+ & {
290
+ @include button-size(
291
+ map.get($button-padding-vertical, $size) - $button-border-width,
292
+ map.get($button-padding-horizontal, $size) - $button-border-width,
293
+ map.get($button-font-size, $size),
294
+ map.get($button-border-radius, $size)
295
+ );
296
+ }
297
+
298
+ @include when(circle) {
299
+ width: getCssVar('button', 'size');
300
+ padding: map.get($button-padding-vertical, $size) - $button-border-width;
301
+ }
302
+ }
303
+ }
304
+ }