ep-craft 0.1.2 → 0.1.3

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/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
@@ -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,325 @@
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
+ @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
+
28
+ line-height: 1;
29
+ // min-height will expand when in flex
30
+ height: map.get($button-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:
64
+ outline-offset 0s,
65
+ outline 0s;
66
+ }
67
+
68
+ > span {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ }
72
+
73
+ & + & {
74
+ margin-left: 12px;
75
+ }
76
+
77
+ & {
78
+ @include button-size(
79
+ map.get($button-padding-vertical, 'default') - $button-border-width,
80
+ map.get($button-padding-horizontal, 'default') - $button-border-width,
81
+ map.get($button-font-size, 'default'),
82
+ map.get($button-border-radius, 'default')
83
+ );
84
+ }
85
+
86
+ &::-moz-focus-inner {
87
+ border: 0;
88
+ }
89
+
90
+ & [class*='#{$namespace}-icon'] {
91
+ & + span {
92
+ margin-left: map.get($button-icon-span-gap, 'default');
93
+ }
94
+ svg {
95
+ vertical-align: bottom;
96
+ }
97
+ }
98
+
99
+ @include when(plain) {
100
+ @include css-var-from-global(
101
+ ('button', 'hover', 'text-color'),
102
+ ('color', 'primary')
103
+ );
104
+ @include css-var-from-global(
105
+ ('button', 'hover', 'bg-color'),
106
+ ('fill-color', 'blank')
107
+ );
108
+ @include css-var-from-global(
109
+ ('button', 'hover', 'border-color'),
110
+ ('color', 'primary')
111
+ );
112
+ }
113
+
114
+ @include when(active) {
115
+ color: getCssVar('button', 'active', 'text-color');
116
+ border-color: getCssVar('button', 'active', 'border-color');
117
+ background-color: getCssVar('button', 'active', 'bg-color');
118
+ outline: none;
119
+ }
120
+
121
+ @include when(disabled) {
122
+ &,
123
+ &:hover {
124
+ color: getCssVar('button', 'disabled', 'text-color');
125
+ cursor: not-allowed;
126
+ background-image: none;
127
+ background-color: getCssVar('button', 'disabled', 'bg-color');
128
+ border-color: getCssVar('button', 'disabled', 'border-color');
129
+ }
130
+ }
131
+
132
+ @include when(loading) {
133
+ position: relative;
134
+ pointer-events: none;
135
+
136
+ &:before {
137
+ // mask the button
138
+ z-index: 1;
139
+ pointer-events: none;
140
+ content: '';
141
+ position: absolute;
142
+ left: -1px;
143
+ top: -1px;
144
+ right: -1px;
145
+ bottom: -1px;
146
+ border-radius: inherit;
147
+ background-color: getCssVar('mask-color', 'extra-light');
148
+ }
149
+ }
150
+ @include when(round) {
151
+ border-radius: getCssVar('border-radius', 'round');
152
+ }
153
+
154
+ @include when(dashed) {
155
+ border-style: dashed;
156
+ @include css-var-from-global(
157
+ ('button', 'hover', 'text-color'),
158
+ ('color', 'primary')
159
+ );
160
+ @include css-var-from-global(
161
+ ('button', 'hover', 'bg-color'),
162
+ ('fill-color', 'blank')
163
+ );
164
+ @include css-var-from-global(
165
+ ('button', 'hover', 'border-color'),
166
+ ('color', 'primary')
167
+ );
168
+ }
169
+
170
+ @include when(circle) {
171
+ width: map.get($button-height, 'default');
172
+ border-radius: 50%;
173
+ padding: map.get($button-padding-vertical, 'default') - $button-border-width;
174
+ }
175
+
176
+ @include when(text) {
177
+ color: getCssVar('button', 'text-color');
178
+ border: 0 solid transparent;
179
+ background-color: transparent;
180
+
181
+ @include when(disabled) {
182
+ color: getCssVar('button', 'disabled', 'text-color');
183
+ background-color: transparent !important;
184
+ }
185
+
186
+ &:not(.is-disabled) {
187
+ &:hover {
188
+ background-color: getCssVar('fill-color', 'light');
189
+ }
190
+
191
+ &:focus-visible {
192
+ outline: 2px solid getCssVar('button', 'outline-color');
193
+ outline-offset: 1px;
194
+ transition:
195
+ outline-offset 0s,
196
+ outline 0s;
197
+ }
198
+
199
+ &:active {
200
+ background-color: getCssVar('fill-color');
201
+ }
202
+
203
+ @include when(has-bg) {
204
+ background-color: getCssVar('fill-color', 'light');
205
+
206
+ &:hover {
207
+ background-color: getCssVar('fill-color');
208
+ }
209
+
210
+ &:active {
211
+ background-color: getCssVar('fill-color', 'dark');
212
+ }
213
+ }
214
+ }
215
+ }
216
+
217
+ @include e(text) {
218
+ @include m(expand) {
219
+ letter-spacing: 0.3em;
220
+ margin-right: -0.3em;
221
+ }
222
+ }
223
+
224
+ @include when(link) {
225
+ border-color: transparent;
226
+ color: getCssVar('button', 'text-color');
227
+ background: transparent;
228
+ padding: 2px;
229
+ height: auto;
230
+
231
+ &:hover {
232
+ color: getCssVar('button', 'hover', 'link-text-color');
233
+ }
234
+
235
+ @include when(disabled) {
236
+ color: getCssVar('button', 'disabled', 'text-color');
237
+ background-color: transparent !important;
238
+ border-color: transparent !important;
239
+ }
240
+
241
+ &:not(.is-disabled) {
242
+ &:hover {
243
+ border-color: transparent;
244
+ background-color: transparent;
245
+ }
246
+
247
+ &:active {
248
+ color: getCssVar('button', 'active-color');
249
+ border-color: transparent;
250
+ background-color: transparent;
251
+ }
252
+ }
253
+ }
254
+
255
+ @include m(text) {
256
+ border-color: transparent;
257
+ background: transparent;
258
+ color: getCssVar('color', 'primary');
259
+ padding-left: 0;
260
+ padding-right: 0;
261
+ @include when(disabled) {
262
+ color: getCssVar('button', 'disabled', 'text-color');
263
+ background-color: transparent !important;
264
+ border-color: transparent !important;
265
+ }
266
+
267
+ &:not(.is-disabled) {
268
+ &:hover {
269
+ color: getCssVar('color', 'primary', 'light-3');
270
+ border-color: transparent;
271
+ background-color: transparent;
272
+ }
273
+
274
+ &:active {
275
+ color: getCssVar('color', 'primary', 'dark-2');
276
+ border-color: transparent;
277
+ background-color: transparent;
278
+ }
279
+ }
280
+ }
281
+
282
+ @include e(link) {
283
+ @include m(expand) {
284
+ letter-spacing: 0.3em;
285
+ margin-right: -0.3em;
286
+ }
287
+ }
288
+
289
+ @each $type in (primary, success, warning, danger, info) {
290
+ @include m($type) {
291
+ @include button-variant($type);
292
+ }
293
+ }
294
+
295
+ @each $size in (large, small, mini) {
296
+ @include m($size) {
297
+ @include set-css-var-value(
298
+ ('button', 'size'),
299
+ map.get($button-height, $size)
300
+ );
301
+
302
+ height: getCssVar('button', 'size');
303
+
304
+ & [class*='#{$namespace}-icon'] {
305
+ & + span {
306
+ margin-left: map.get($button-icon-span-gap, $size);
307
+ }
308
+ }
309
+
310
+ & {
311
+ @include button-size(
312
+ map.get($button-padding-vertical, $size) - $button-border-width,
313
+ map.get($button-padding-horizontal, $size) - $button-border-width,
314
+ map.get($button-font-size, $size),
315
+ map.get($button-border-radius, $size)
316
+ );
317
+ }
318
+
319
+ @include when(circle) {
320
+ width: getCssVar('button', 'size');
321
+ padding: map.get($button-padding-vertical, $size) - $button-border-width;
322
+ }
323
+ }
324
+ }
325
+ }
@@ -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
+ }