ep-craft 0.1.2 → 0.1.4

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 (160) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +7 -7
  2. package/dist/components/button/button.d.ts +4 -4
  3. package/dist/components/button/index.d.ts +2 -4
  4. package/dist/components/button/index.js +4 -6
  5. package/dist/index.css +1 -2
  6. package/dist/resolver.js +9 -12
  7. package/package.json +4 -2
  8. package/theme-chalk/src/affix.scss +7 -0
  9. package/theme-chalk/src/alert.scss +115 -0
  10. package/theme-chalk/src/anchor-link.scss +45 -0
  11. package/theme-chalk/src/anchor.scss +93 -0
  12. package/theme-chalk/src/aside.scss +8 -0
  13. package/theme-chalk/src/autocomplete.scss +95 -0
  14. package/theme-chalk/src/avatar-group.scss +25 -0
  15. package/theme-chalk/src/avatar.scss +55 -0
  16. package/theme-chalk/src/backtop.scss +29 -0
  17. package/theme-chalk/src/badge.scss +58 -0
  18. package/theme-chalk/src/base.scss +3 -0
  19. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  20. package/theme-chalk/src/breadcrumb.scss +9 -0
  21. package/theme-chalk/src/button-group.scss +133 -0
  22. package/theme-chalk/src/button.scss +374 -0
  23. package/theme-chalk/src/calendar.scss +94 -0
  24. package/theme-chalk/src/card.scss +49 -0
  25. package/theme-chalk/src/carousel-item.scss +58 -0
  26. package/theme-chalk/src/carousel.scss +195 -0
  27. package/theme-chalk/src/cascader-panel.scss +150 -0
  28. package/theme-chalk/src/cascader.scss +289 -0
  29. package/theme-chalk/src/check-tag.scss +60 -0
  30. package/theme-chalk/src/checkbox-button.scss +142 -0
  31. package/theme-chalk/src/checkbox-group.scss +7 -0
  32. package/theme-chalk/src/checkbox.scss +300 -0
  33. package/theme-chalk/src/col.scss +56 -0
  34. package/theme-chalk/src/collapse-item.scss +72 -0
  35. package/theme-chalk/src/collapse-transition.scss +1 -0
  36. package/theme-chalk/src/collapse.scss +29 -0
  37. package/theme-chalk/src/color/index.scss +20 -0
  38. package/theme-chalk/src/color-picker-panel.scss +294 -0
  39. package/theme-chalk/src/color-picker.scss +165 -0
  40. package/theme-chalk/src/common/popup.scss +47 -0
  41. package/theme-chalk/src/common/transition.scss +125 -0
  42. package/theme-chalk/src/common/var.scss +1748 -0
  43. package/theme-chalk/src/config-provider.scss +0 -0
  44. package/theme-chalk/src/container.scss +14 -0
  45. package/theme-chalk/src/dark/css-vars.scss +45 -0
  46. package/theme-chalk/src/dark/var.scss +224 -0
  47. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  48. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  49. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  50. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  51. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  52. package/theme-chalk/src/date-picker/picker.scss +217 -0
  53. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  54. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  55. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  56. package/theme-chalk/src/date-picker/utils.scss +14 -0
  57. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  58. package/theme-chalk/src/date-picker-panel.scss +34 -0
  59. package/theme-chalk/src/date-picker.scss +0 -0
  60. package/theme-chalk/src/descriptions-item.scss +77 -0
  61. package/theme-chalk/src/descriptions.scss +151 -0
  62. package/theme-chalk/src/dialog.scss +207 -0
  63. package/theme-chalk/src/display.scss +12 -0
  64. package/theme-chalk/src/divider.scss +48 -0
  65. package/theme-chalk/src/drawer.scss +251 -0
  66. package/theme-chalk/src/dropdown-item.scss +0 -0
  67. package/theme-chalk/src/dropdown-menu.scss +0 -0
  68. package/theme-chalk/src/dropdown.scss +208 -0
  69. package/theme-chalk/src/empty.scss +49 -0
  70. package/theme-chalk/src/footer.scss +12 -0
  71. package/theme-chalk/src/form-item.scss +246 -0
  72. package/theme-chalk/src/form.scss +28 -0
  73. package/theme-chalk/src/header.scss +12 -0
  74. package/theme-chalk/src/icon.scss +41 -0
  75. package/theme-chalk/src/image-viewer.scss +161 -0
  76. package/theme-chalk/src/image.scss +49 -0
  77. package/theme-chalk/src/index.scss +116 -0
  78. package/theme-chalk/src/infinite-scroll.scss +0 -0
  79. package/theme-chalk/src/input-number.scss +192 -0
  80. package/theme-chalk/src/input-otp.scss +191 -0
  81. package/theme-chalk/src/input-tag.scss +249 -0
  82. package/theme-chalk/src/input.scss +541 -0
  83. package/theme-chalk/src/link.scss +90 -0
  84. package/theme-chalk/src/loading.scss +104 -0
  85. package/theme-chalk/src/main.scss +14 -0
  86. package/theme-chalk/src/mention.scss +88 -0
  87. package/theme-chalk/src/menu-item-group.scss +0 -0
  88. package/theme-chalk/src/menu-item.scss +0 -0
  89. package/theme-chalk/src/menu.scss +376 -0
  90. package/theme-chalk/src/message-box.scss +220 -0
  91. package/theme-chalk/src/message.scss +123 -0
  92. package/theme-chalk/src/mixins/_button.scss +240 -0
  93. package/theme-chalk/src/mixins/_col.scss +41 -0
  94. package/theme-chalk/src/mixins/_var.scss +67 -0
  95. package/theme-chalk/src/mixins/config.scss +5 -0
  96. package/theme-chalk/src/mixins/function.scss +99 -0
  97. package/theme-chalk/src/mixins/mixins.scss +257 -0
  98. package/theme-chalk/src/mixins/utils.scss +39 -0
  99. package/theme-chalk/src/notification.scss +109 -0
  100. package/theme-chalk/src/option-group.scss +33 -0
  101. package/theme-chalk/src/option.scss +71 -0
  102. package/theme-chalk/src/overlay.scss +17 -0
  103. package/theme-chalk/src/page-header.scss +60 -0
  104. package/theme-chalk/src/pagination.scss +235 -0
  105. package/theme-chalk/src/popconfirm.scss +17 -0
  106. package/theme-chalk/src/popover.scss +61 -0
  107. package/theme-chalk/src/popper.scss +117 -0
  108. package/theme-chalk/src/progress.scss +179 -0
  109. package/theme-chalk/src/radio-button.scss +165 -0
  110. package/theme-chalk/src/radio-group.scss +9 -0
  111. package/theme-chalk/src/radio.scss +220 -0
  112. package/theme-chalk/src/rate.scss +121 -0
  113. package/theme-chalk/src/reset.scss +99 -0
  114. package/theme-chalk/src/result.scss +57 -0
  115. package/theme-chalk/src/row.scss +34 -0
  116. package/theme-chalk/src/scrollbar.scss +97 -0
  117. package/theme-chalk/src/segmented.scss +186 -0
  118. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  119. package/theme-chalk/src/select-dropdown.scss +57 -0
  120. package/theme-chalk/src/select-v2.scss +4 -0
  121. package/theme-chalk/src/select.scss +269 -0
  122. package/theme-chalk/src/skeleton-item.scss +83 -0
  123. package/theme-chalk/src/skeleton.scss +44 -0
  124. package/theme-chalk/src/slider.scss +212 -0
  125. package/theme-chalk/src/space.scss +20 -0
  126. package/theme-chalk/src/spinner.scss +43 -0
  127. package/theme-chalk/src/splitter-panel.scss +8 -0
  128. package/theme-chalk/src/splitter.scss +148 -0
  129. package/theme-chalk/src/statistic.scss +35 -0
  130. package/theme-chalk/src/step.scss +320 -0
  131. package/theme-chalk/src/steps.scss +22 -0
  132. package/theme-chalk/src/sub-menu.scss +0 -0
  133. package/theme-chalk/src/switch.scss +294 -0
  134. package/theme-chalk/src/tab-pane.scss +0 -0
  135. package/theme-chalk/src/table-column.scss +100 -0
  136. package/theme-chalk/src/table-v2.scss +239 -0
  137. package/theme-chalk/src/table.scss +698 -0
  138. package/theme-chalk/src/tabs.scss +699 -0
  139. package/theme-chalk/src/tag.scss +195 -0
  140. package/theme-chalk/src/text.scss +51 -0
  141. package/theme-chalk/src/time-picker.scss +5 -0
  142. package/theme-chalk/src/time-select.scss +37 -0
  143. package/theme-chalk/src/timeline-item.scss +135 -0
  144. package/theme-chalk/src/timeline.scss +101 -0
  145. package/theme-chalk/src/tooltip.scss +0 -0
  146. package/theme-chalk/src/tour.scss +187 -0
  147. package/theme-chalk/src/transfer.scss +201 -0
  148. package/theme-chalk/src/tree-select.scss +41 -0
  149. package/theme-chalk/src/tree.scss +134 -0
  150. package/theme-chalk/src/upload.scss +660 -0
  151. package/theme-chalk/src/var.scss +87 -0
  152. package/theme-chalk/src/virtual-list.scss +40 -0
  153. package/dist/components/button/EpButton.vue.js +0 -171
  154. package/dist/components/button/EpButton2.vue.js +0 -4
  155. package/dist/components/button/button.js +0 -95
  156. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
  157. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  158. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
  159. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
  160. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
@@ -0,0 +1,133 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'common/var' as *;
4
+ @use 'mixins/mixins' as *;
5
+ @use 'mixins/utils' as *;
6
+
7
+ @include b(button-group) {
8
+ & > .#{$namespace}-button {
9
+ & + .#{$namespace}-button {
10
+ margin-left: 0;
11
+ }
12
+
13
+ &:first-child:last-child {
14
+ border-top-right-radius: map.get($button-border-radius, 'default');
15
+ border-bottom-right-radius: map.get($button-border-radius, 'default');
16
+ border-top-left-radius: map.get($button-border-radius, 'default');
17
+ border-bottom-left-radius: map.get($button-border-radius, 'default');
18
+
19
+ &.is-round {
20
+ border-radius: getCssVar('border-radius', 'round');
21
+ }
22
+
23
+ &.is-circle {
24
+ border-radius: 50%;
25
+ }
26
+ }
27
+
28
+ &:not(:first-child):not(:last-child) {
29
+ border-radius: 0;
30
+ }
31
+
32
+ &:hover,
33
+ &:focus,
34
+ &:active {
35
+ z-index: 1;
36
+ }
37
+
38
+ @include when(active) {
39
+ z-index: 1;
40
+ }
41
+ }
42
+
43
+ @include m('horizontal') {
44
+ display: inline-block;
45
+ vertical-align: middle;
46
+ @include utils-clearfix;
47
+
48
+ & > .#{$namespace}-button {
49
+ float: left;
50
+ position: relative;
51
+
52
+ &:first-child {
53
+ border-top-right-radius: 0;
54
+ border-bottom-right-radius: 0;
55
+ }
56
+ &:last-child {
57
+ border-top-left-radius: 0;
58
+ border-bottom-left-radius: 0;
59
+ }
60
+
61
+ &:not(:last-child) {
62
+ margin-right: -1px;
63
+ }
64
+ }
65
+
66
+ @each $type in (primary, success, warning, danger, info) {
67
+ .#{$namespace}-button--#{$type} {
68
+ &:first-child {
69
+ border-right-color: getCssVar('button', 'divide-border-color');
70
+ }
71
+ &:last-child {
72
+ border-left-color: getCssVar('button', 'divide-border-color');
73
+ }
74
+ &:not(:first-child):not(:last-child) {
75
+ border-left-color: getCssVar('button', 'divide-border-color');
76
+ border-right-color: getCssVar('button', 'divide-border-color');
77
+ }
78
+ }
79
+ }
80
+
81
+ & > .#{$namespace}-dropdown {
82
+ & > .#{$namespace}-button {
83
+ border-top-left-radius: 0;
84
+ border-bottom-left-radius: 0;
85
+ border-left-color: getCssVar('button', 'divide-border-color');
86
+ }
87
+ }
88
+ }
89
+
90
+ @include m('vertical') {
91
+ display: inline-flex;
92
+ flex-direction: column;
93
+ align-items: stretch;
94
+
95
+ & > .#{$namespace}-button {
96
+ margin-top: -1px;
97
+
98
+ &:first-child {
99
+ border-bottom-left-radius: 0;
100
+ border-bottom-right-radius: 0;
101
+ }
102
+ &:last-child {
103
+ border-top-left-radius: 0;
104
+ border-top-right-radius: 0;
105
+ }
106
+ }
107
+
108
+ & > .#{$namespace}-dropdown {
109
+ margin-top: -1px;
110
+
111
+ & > .#{$namespace}-button {
112
+ border-top-left-radius: 0;
113
+ border-top-right-radius: 0;
114
+ border-left-color: getCssVar('button', 'divide-border-color');
115
+ }
116
+ }
117
+
118
+ @each $type in (primary, success, warning, danger, info) {
119
+ .#{$namespace}-button--#{$type} {
120
+ &:first-child {
121
+ border-bottom-color: getCssVar('button', 'divide-border-color');
122
+ }
123
+ &:last-child {
124
+ border-top-color: getCssVar('button', 'divide-border-color');
125
+ }
126
+ &:not(:first-child):not(:last-child) {
127
+ border-top-color: getCssVar('button', 'divide-border-color');
128
+ border-bottom-color: getCssVar('button', 'divide-border-color');
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,374 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'common/var' as *;
4
+ @use 'mixins/button' as *;
5
+ @use 'mixins/mixins' as *;
6
+ @use 'mixins/var' as *;
7
+
8
+ $button-icon-span-gap: () !default;
9
+ $button-icon-span-gap: map.merge(
10
+ (
11
+ 'large': 8px,
12
+ 'default': 6px,
13
+ 'small': 4px,
14
+ 'mini': 4px,
15
+ ),
16
+ $button-icon-span-gap
17
+ );
18
+
19
+ @mixin button-reverse-variant(
20
+ $text-color,
21
+ $border-color,
22
+ $hover-bg-color,
23
+ $active-bg-color
24
+ ) {
25
+ @include set-css-var-value(('button', 'text-color'), $text-color);
26
+ @include set-css-var-value(('button', 'bg-color'), getCssVar('color-white'));
27
+ @include set-css-var-value(('button', 'border-color'), $border-color);
28
+ @include set-css-var-value(('button', 'hover', 'text-color'), $text-color);
29
+ @include set-css-var-value(('button', 'hover', 'bg-color'), $hover-bg-color);
30
+ @include set-css-var-value(('button', 'hover', 'border-color'), $border-color);
31
+ @include set-css-var-value(('button', 'active', 'text-color'), $text-color);
32
+ @include set-css-var-value(('button', 'active', 'bg-color'), $active-bg-color);
33
+ @include set-css-var-value(('button', 'active', 'border-color'), $border-color);
34
+ @include set-css-var-value(('button', 'disabled', 'text-color'), $text-color);
35
+ @include set-css-var-value(('button', 'disabled', 'bg-color'), getCssVar('color-white'));
36
+ @include set-css-var-value(('button', 'disabled', 'border-color'), $border-color);
37
+
38
+ @include when(disabled) {
39
+ opacity: 0.4;
40
+ }
41
+ }
42
+
43
+ @include b(button) {
44
+ @include set-component-css-var('button', $button);
45
+ }
46
+
47
+ @include b(button) {
48
+ display: inline-flex;
49
+ justify-content: center;
50
+ align-items: center;
51
+
52
+ line-height: 1;
53
+ // min-height will expand when in flex
54
+ height: map.get($button-height, 'default');
55
+ white-space: nowrap;
56
+ cursor: pointer;
57
+ color: getCssVar('button', 'text-color');
58
+ text-align: center;
59
+ box-sizing: border-box;
60
+ outline: none;
61
+ transition: 0.1s;
62
+ font-weight: getCssVar('button', 'font-weight');
63
+ user-select: none;
64
+ vertical-align: middle;
65
+ -webkit-appearance: none;
66
+ background-color: getCssVar('button', 'bg-color');
67
+ border: getCssVar('border');
68
+ border-color: getCssVar('button', 'border-color');
69
+
70
+ &:hover {
71
+ color: getCssVar('button', 'hover', 'text-color');
72
+ border-color: getCssVar('button', 'hover', 'border-color');
73
+ background-color: getCssVar('button', 'hover', 'bg-color');
74
+ outline: none;
75
+ }
76
+
77
+ &:active {
78
+ color: getCssVar('button', 'active', 'text-color');
79
+ border-color: getCssVar('button', 'active', 'border-color');
80
+ background-color: getCssVar('button', 'active', 'bg-color');
81
+ outline: none;
82
+ }
83
+
84
+ &:focus-visible {
85
+ outline: 2px solid getCssVar('button', 'outline-color');
86
+ outline-offset: 1px;
87
+ transition:
88
+ outline-offset 0s,
89
+ outline 0s;
90
+ }
91
+
92
+ > span {
93
+ display: inline-flex;
94
+ align-items: center;
95
+ }
96
+
97
+ & + & {
98
+ margin-left: 12px;
99
+ }
100
+
101
+ & {
102
+ @include button-size(
103
+ map.get($button-padding-vertical, 'default') - $button-border-width,
104
+ map.get($button-padding-horizontal, 'default') - $button-border-width,
105
+ map.get($button-font-size, 'default'),
106
+ map.get($button-border-radius, 'default')
107
+ );
108
+ }
109
+
110
+ &::-moz-focus-inner {
111
+ border: 0;
112
+ }
113
+
114
+ & [class*='#{$namespace}-icon'] {
115
+ & + span {
116
+ margin-left: map.get($button-icon-span-gap, 'default');
117
+ }
118
+ svg {
119
+ vertical-align: bottom;
120
+ }
121
+ }
122
+
123
+ @include when(plain) {
124
+ @include css-var-from-global(
125
+ ('button', 'hover', 'text-color'),
126
+ ('color', 'primary')
127
+ );
128
+ @include css-var-from-global(
129
+ ('button', 'hover', 'bg-color'),
130
+ ('fill-color', 'blank')
131
+ );
132
+ @include css-var-from-global(
133
+ ('button', 'hover', 'border-color'),
134
+ ('color', 'primary')
135
+ );
136
+ }
137
+
138
+ @include when(active) {
139
+ color: getCssVar('button', 'active', 'text-color');
140
+ border-color: getCssVar('button', 'active', 'border-color');
141
+ background-color: getCssVar('button', 'active', 'bg-color');
142
+ outline: none;
143
+ }
144
+
145
+ @include when(disabled) {
146
+ &,
147
+ &:hover {
148
+ color: getCssVar('button', 'disabled', 'text-color');
149
+ cursor: not-allowed;
150
+ background-image: none;
151
+ background-color: getCssVar('button', 'disabled', 'bg-color');
152
+ border-color: getCssVar('button', 'disabled', 'border-color');
153
+ }
154
+ }
155
+
156
+ @include when(loading) {
157
+ position: relative;
158
+ pointer-events: none;
159
+
160
+ &:before {
161
+ // mask the button
162
+ z-index: 1;
163
+ pointer-events: none;
164
+ content: '';
165
+ position: absolute;
166
+ left: -1px;
167
+ top: -1px;
168
+ right: -1px;
169
+ bottom: -1px;
170
+ border-radius: inherit;
171
+ background-color: getCssVar('mask-color', 'extra-light');
172
+ }
173
+ }
174
+ @include when(round) {
175
+ border-radius: getCssVar('border-radius', 'round');
176
+ }
177
+
178
+ @include when(dashed) {
179
+ border-style: dashed;
180
+ @include css-var-from-global(
181
+ ('button', 'hover', 'text-color'),
182
+ ('color', 'primary')
183
+ );
184
+ @include css-var-from-global(
185
+ ('button', 'hover', 'bg-color'),
186
+ ('fill-color', 'blank')
187
+ );
188
+ @include css-var-from-global(
189
+ ('button', 'hover', 'border-color'),
190
+ ('color', 'primary')
191
+ );
192
+ }
193
+
194
+ @include when(circle) {
195
+ width: map.get($button-height, 'default');
196
+ border-radius: 50%;
197
+ padding: map.get($button-padding-vertical, 'default') - $button-border-width;
198
+ }
199
+
200
+ @include when(text) {
201
+ color: getCssVar('button', 'text-color');
202
+ border: 0 solid transparent;
203
+ background-color: transparent;
204
+
205
+ @include when(disabled) {
206
+ color: getCssVar('button', 'disabled', 'text-color');
207
+ background-color: transparent !important;
208
+ }
209
+
210
+ &:not(.is-disabled) {
211
+ &:hover {
212
+ background-color: getCssVar('fill-color', 'light');
213
+ }
214
+
215
+ &:focus-visible {
216
+ outline: 2px solid getCssVar('button', 'outline-color');
217
+ outline-offset: 1px;
218
+ transition:
219
+ outline-offset 0s,
220
+ outline 0s;
221
+ }
222
+
223
+ &:active {
224
+ background-color: getCssVar('fill-color');
225
+ }
226
+
227
+ @include when(has-bg) {
228
+ background-color: getCssVar('fill-color', 'light');
229
+
230
+ &:hover {
231
+ background-color: getCssVar('fill-color');
232
+ }
233
+
234
+ &:active {
235
+ background-color: getCssVar('fill-color', 'dark');
236
+ }
237
+ }
238
+ }
239
+ }
240
+
241
+ @include e(text) {
242
+ @include m(expand) {
243
+ letter-spacing: 0.3em;
244
+ margin-right: -0.3em;
245
+ }
246
+ }
247
+
248
+ @include when(link) {
249
+ border-color: transparent;
250
+ color: getCssVar('button', 'text-color');
251
+ background: transparent;
252
+ padding: 2px;
253
+ height: auto;
254
+
255
+ &:hover {
256
+ color: getCssVar('button', 'hover', 'link-text-color');
257
+ }
258
+
259
+ @include when(disabled) {
260
+ color: getCssVar('button', 'disabled', 'text-color');
261
+ background-color: transparent !important;
262
+ border-color: transparent !important;
263
+ }
264
+
265
+ &:not(.is-disabled) {
266
+ &:hover {
267
+ border-color: transparent;
268
+ background-color: transparent;
269
+ }
270
+
271
+ &:active {
272
+ color: getCssVar('button', 'active-color');
273
+ border-color: transparent;
274
+ background-color: transparent;
275
+ }
276
+ }
277
+ }
278
+
279
+ @include m(text) {
280
+ border-color: transparent;
281
+ background: transparent;
282
+ color: getCssVar('color', 'primary');
283
+ padding-left: 0;
284
+ padding-right: 0;
285
+ @include when(disabled) {
286
+ color: getCssVar('button', 'disabled', 'text-color');
287
+ background-color: transparent !important;
288
+ border-color: transparent !important;
289
+ }
290
+
291
+ &:not(.is-disabled) {
292
+ &:hover {
293
+ color: getCssVar('color', 'primary', 'light-3');
294
+ border-color: transparent;
295
+ background-color: transparent;
296
+ }
297
+
298
+ &:active {
299
+ color: getCssVar('color', 'primary', 'dark-2');
300
+ border-color: transparent;
301
+ background-color: transparent;
302
+ }
303
+ }
304
+ }
305
+
306
+ @include e(link) {
307
+ @include m(expand) {
308
+ letter-spacing: 0.3em;
309
+ margin-right: -0.3em;
310
+ }
311
+ }
312
+
313
+ @each $type in (primary, success, warning, danger, info) {
314
+ @include m($type) {
315
+ @include button-variant($type);
316
+ }
317
+ }
318
+
319
+ @include m(rePrimary) {
320
+ @include button-reverse-variant(
321
+ getCssVar('color-primary'),
322
+ #e5e6eb,
323
+ #f5f8ff,
324
+ #e5edff
325
+ );
326
+ }
327
+
328
+ @include m(reSuccess) {
329
+ @include button-reverse-variant(#12b886, #12b886, #f3fbf9, #e7f8f3);
330
+ }
331
+
332
+ @include m(reDanger) {
333
+ @include button-reverse-variant(#f14646, #f14646, #fff5f5, #ffc9c9);
334
+ }
335
+
336
+ @include m(reWarning) {
337
+ @include button-reverse-variant(#f57f00, #f57f00, #fff6eb, #ffe8cc);
338
+ }
339
+
340
+ @include m(reInfo) {
341
+ @include button-reverse-variant(#1d1f29, #e5e6eb, #f7f8fa, #f2f3f5);
342
+ }
343
+
344
+ @each $size in (large, small, mini) {
345
+ @include m($size) {
346
+ @include set-css-var-value(
347
+ ('button', 'size'),
348
+ map.get($button-height, $size)
349
+ );
350
+
351
+ height: getCssVar('button', 'size');
352
+
353
+ & [class*='#{$namespace}-icon'] {
354
+ & + span {
355
+ margin-left: map.get($button-icon-span-gap, $size);
356
+ }
357
+ }
358
+
359
+ & {
360
+ @include button-size(
361
+ map.get($button-padding-vertical, $size) - $button-border-width,
362
+ map.get($button-padding-horizontal, $size) - $button-border-width,
363
+ map.get($button-font-size, $size),
364
+ map.get($button-border-radius, $size)
365
+ );
366
+ }
367
+
368
+ @include when(circle) {
369
+ width: getCssVar('button', 'size');
370
+ padding: map.get($button-padding-vertical, $size) - $button-border-width;
371
+ }
372
+ }
373
+ }
374
+ }
@@ -0,0 +1,94 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(calendar) {
6
+ @include set-component-css-var('calendar', $calendar);
7
+
8
+ background-color: getCssVar('fill-color', 'blank');
9
+
10
+ @include e(header) {
11
+ display: flex;
12
+ justify-content: space-between;
13
+ padding: 12px 20px;
14
+ border-bottom: getCssVar('calendar', 'header-border-bottom');
15
+ }
16
+
17
+ @include e(title) {
18
+ color: getCssVar('text-color');
19
+ align-self: center;
20
+ }
21
+
22
+ @include e(body) {
23
+ padding: 12px 20px 35px;
24
+ }
25
+
26
+ @include e(select-controller) {
27
+ .#{$namespace}-select {
28
+ margin-right: 8px;
29
+ }
30
+
31
+ .#{$namespace}-calendar-select__year {
32
+ width: 120px;
33
+ }
34
+
35
+ .#{$namespace}-calendar-select__month {
36
+ width: 60px;
37
+ }
38
+ }
39
+ }
40
+
41
+ @include b(calendar-table) {
42
+ table-layout: fixed;
43
+ width: 100%;
44
+
45
+ thead th {
46
+ padding: 12px 0;
47
+ color: getCssVar('text-color', 'regular');
48
+ font-weight: normal;
49
+ }
50
+
51
+ &:not(.is-range) {
52
+ td.prev,
53
+ td.next {
54
+ color: getCssVar('text-color', 'placeholder');
55
+ }
56
+ }
57
+
58
+ td {
59
+ border-bottom: getCssVar('calendar', 'border');
60
+ border-right: getCssVar('calendar', 'border');
61
+ vertical-align: top;
62
+ transition: background-color getCssVar('transition-duration', 'fast') ease;
63
+
64
+ @include when(selected) {
65
+ background-color: getCssVar('calendar', 'selected-bg-color');
66
+ }
67
+
68
+ @include when(today) {
69
+ color: getCssVar('color-primary');
70
+ }
71
+ }
72
+
73
+ tr:first-child td {
74
+ border-top: getCssVar('calendar', 'border');
75
+ }
76
+
77
+ tr td:first-child {
78
+ border-left: getCssVar('calendar', 'border');
79
+ }
80
+
81
+ tr.#{$namespace}-calendar-table__row--hide-border td {
82
+ border-top: none;
83
+ }
84
+
85
+ @include b(calendar-day) {
86
+ box-sizing: border-box;
87
+ padding: 8px;
88
+ height: getCssVar('calendar', 'cell-width');
89
+ &:hover {
90
+ cursor: pointer;
91
+ background-color: getCssVar('calendar', 'selected-bg-color');
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,49 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(card) {
6
+ @include set-component-css-var('card', $card);
7
+ }
8
+
9
+ @include b(card) {
10
+ display: flex;
11
+ flex-direction: column;
12
+ border-radius: getCssVar('card', 'border-radius');
13
+ border: 1px solid getCssVar('card', 'border-color');
14
+ background-color: getCssVar('card', 'bg-color');
15
+ overflow: hidden;
16
+ color: getCssVar('text-color', 'primary');
17
+ transition: getCssVar('transition-duration');
18
+
19
+ @include when(always-shadow) {
20
+ box-shadow: getCssVar('box-shadow', 'light');
21
+ }
22
+
23
+ @include when(hover-shadow) {
24
+ &:hover,
25
+ &:focus {
26
+ box-shadow: getCssVar('box-shadow', 'light');
27
+ }
28
+ }
29
+
30
+ @include e(header) {
31
+ padding: calc(#{getCssVar('card', 'padding')} - 2px)
32
+ getCssVar('card', 'padding');
33
+ border-bottom: 1px solid getCssVar('card', 'border-color');
34
+ box-sizing: border-box;
35
+ }
36
+
37
+ @include e(body) {
38
+ flex-grow: 1; // #23538
39
+ overflow: auto;
40
+ padding: getCssVar('card', 'padding');
41
+ }
42
+
43
+ @include e(footer) {
44
+ padding: calc(#{getCssVar('card', 'padding')} - 2px)
45
+ getCssVar('card', 'padding');
46
+ border-top: 1px solid getCssVar('card', 'border-color');
47
+ box-sizing: border-box;
48
+ }
49
+ }
@@ -0,0 +1,58 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(carousel) {
5
+ @include e(item) {
6
+ position: absolute;
7
+ top: 0;
8
+ left: 0;
9
+ width: 100%;
10
+ height: 100%;
11
+ display: inline-block;
12
+ overflow: hidden;
13
+ z-index: calc(getCssVar('index', 'normal') - 1);
14
+
15
+ @include when(active) {
16
+ z-index: calc(getCssVar('index', 'normal') - 1);
17
+ }
18
+
19
+ @include when(animating) {
20
+ transition: transform 0.4s ease-in-out;
21
+ }
22
+
23
+ @include m(card) {
24
+ width: 50%;
25
+ transition: transform 0.4s ease-in-out;
26
+
27
+ &.is-in-stage {
28
+ cursor: pointer;
29
+ z-index: getCssVar('index', 'normal');
30
+
31
+ &:hover .#{$namespace}-carousel__mask,
32
+ &.is-hover .#{$namespace}-carousel__mask {
33
+ opacity: 0.12;
34
+ }
35
+ }
36
+
37
+ &.is-active {
38
+ z-index: calc(getCssVar('index', 'normal') + 1);
39
+ }
40
+ }
41
+
42
+ @include m(card-vertical) {
43
+ width: 100%;
44
+ height: 50%;
45
+ }
46
+ }
47
+
48
+ @include e(mask) {
49
+ position: absolute;
50
+ width: 100%;
51
+ height: 100%;
52
+ top: 0;
53
+ left: 0;
54
+ background-color: getCssVar('color', 'white');
55
+ opacity: 0.24;
56
+ transition: getCssVar('transition-duration', 'fast');
57
+ }
58
+ }