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
File without changes
@@ -0,0 +1,14 @@
1
+ @use 'mixins/mixins' as *;
2
+
3
+ @include b(container) {
4
+ display: flex;
5
+ flex-direction: row;
6
+ flex: 1;
7
+ flex-basis: auto;
8
+ box-sizing: border-box;
9
+ min-width: 0;
10
+
11
+ @include when(vertical) {
12
+ flex-direction: column;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ @use 'sass:map';
2
+
3
+ // CSS3 var
4
+ @use './var' as *;
5
+ @use '../mixins/_var.scss' as *;
6
+ @use '../mixins/mixins.scss' as *;
7
+
8
+ html.dark {
9
+ color-scheme: dark;
10
+
11
+ // hex colors
12
+ @each $type in (primary, success, warning, danger, error, info) {
13
+ @include set-css-color-type($colors, $type);
14
+ }
15
+
16
+ // --el-box-shadow-#{$type}
17
+ @include set-component-css-var('box-shadow', $box-shadow);
18
+
19
+ // color-scheme
20
+ // Background --el-bg-color-#{$type}
21
+ @include set-component-css-var('bg-color', $bg-color);
22
+ // --el-text-color-#{$type}
23
+ @include set-component-css-var('text-color', $text-color);
24
+ // --el-border-color-#{$type}
25
+ @include set-component-css-var('border-color', $border-color);
26
+ // Fill --el-fill-color-#{$type}
27
+ @include set-component-css-var('fill-color', $fill-color);
28
+ @include set-component-css-var('mask-color', $mask-color);
29
+ }
30
+
31
+ @include dark(button) {
32
+ @include set-component-css-var('button', $button);
33
+ }
34
+
35
+ @include dark(card) {
36
+ @include set-component-css-var('card', $card);
37
+ @include set-css-var-value(
38
+ ('fill-color', 'blank'),
39
+ getCssVar('card', 'bg-color')
40
+ );
41
+ }
42
+
43
+ @include dark(empty) {
44
+ @include set-component-css-var('empty', $empty);
45
+ }
@@ -0,0 +1,224 @@
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:color';
4
+
5
+ @use '../common/var.scss' as common;
6
+ @use '../mixins/mixins.scss' as *;
7
+ @use '../color/index.scss' as *;
8
+ @use '../mixins/function.scss' as *;
9
+
10
+ $colors: () !default;
11
+ @each $type in common.$types {
12
+ $colors: map.deep-merge(
13
+ (
14
+ $type: (
15
+ 'base': map.get(common.$colors, $type, 'base'),
16
+ ),
17
+ ),
18
+ $colors
19
+ ) !global;
20
+ }
21
+
22
+ // https://sass-lang.com/documentation/values/maps#immutability
23
+ // mix colors with white/black to generate light/dark level
24
+ @mixin set-color-mix-level(
25
+ $type,
26
+ $number,
27
+ $mode: 'light',
28
+ $mix-color: $color-white
29
+ ) {
30
+ // hex mix color
31
+ $colors: map.deep-merge(
32
+ (
33
+ $type: (
34
+ '#{$mode}-#{$number}': roundColor(
35
+ color.mix(
36
+ $mix-color,
37
+ map.get($colors, $type, 'base'),
38
+ math.percentage(math.div($number, 10))
39
+ )
40
+ ),
41
+ ),
42
+ ),
43
+ $colors
44
+ ) !global;
45
+
46
+ // for designer to view transparent
47
+ // $colors: map.deep-merge(
48
+ // (
49
+ // $type: (
50
+ // '#{$mode}-#{$number}':
51
+ // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
52
+ // ),
53
+ // ),
54
+ // $colors
55
+ // ) !global;
56
+ }
57
+
58
+ // Background
59
+ $bg-color: () !default;
60
+ $bg-color: map.merge(
61
+ (
62
+ 'page': #0a0a0a,
63
+ '': #141414,
64
+ 'overlay': #1d1e1f,
65
+ ),
66
+ $bg-color
67
+ );
68
+
69
+ // dark-mode
70
+ @each $type in common.$types {
71
+ @for $i from 1 through 9 {
72
+ @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
73
+ }
74
+ }
75
+ @each $type in common.$types {
76
+ @include set-color-mix-level($type, 2, 'dark', common.$color-white);
77
+ }
78
+
79
+ // border
80
+ $border-color-base: #f5f8ff;
81
+ $border-color: () !default;
82
+ $border-color: map.merge(
83
+ (
84
+ 'darker': rgba($border-color-base, 0.35),
85
+ 'dark': rgba($border-color-base, 0.3),
86
+ '': rgba($border-color-base, 0.25),
87
+ 'light': rgba($border-color-base, 0.2),
88
+ 'lighter': rgba($border-color-base, 0.15),
89
+ 'extra-light': rgba($border-color-base, 0.1),
90
+ ),
91
+ $border-color
92
+ );
93
+
94
+ // mix to hex to avoid overlay issues
95
+ @each $key, $val in $border-color {
96
+ $border-color: map.merge(
97
+ $border-color,
98
+ (
99
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
100
+ )
101
+ ) !global;
102
+ }
103
+
104
+ // Box-shadow
105
+ $box-shadow: () !default;
106
+ $box-shadow: map.merge(
107
+ (
108
+ '': (
109
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.36),
110
+ 0px 8px 20px rgba(0, 0, 0, 0.72),
111
+ ),
112
+ 'light': (
113
+ 0px 0px 12px rgba(0, 0, 0, 0.72),
114
+ ),
115
+ 'lighter': (
116
+ 0px 0px 6px rgba(0, 0, 0, 0.72),
117
+ ),
118
+ 'dark': (
119
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.72),
120
+ 0px 12px 32px #000000,
121
+ 0px 8px 16px -8px #000000,
122
+ ),
123
+ ),
124
+ $box-shadow
125
+ );
126
+
127
+ // fill
128
+ $fill-color-base: #fafcff;
129
+ $fill-color: () !default;
130
+ $fill-color: map.merge(
131
+ (
132
+ 'darker': rgba($fill-color-base, 0.2),
133
+ 'dark': rgba($fill-color-base, 0.16),
134
+ '': rgba($fill-color-base, 0.12),
135
+ 'light': rgba($fill-color-base, 0.08),
136
+ 'lighter': rgba($fill-color-base, 0.04),
137
+ 'extra-light': rgba($fill-color-base, 0.02),
138
+ 'blank': map.get($bg-color, ''),
139
+ ),
140
+ $fill-color
141
+ );
142
+
143
+ // mix to hex to avoid overlay issues
144
+ @each $key, $val in $fill-color {
145
+ @if ($key != 'blank') {
146
+ $fill-color: map.merge(
147
+ $fill-color,
148
+ (
149
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
150
+ )
151
+ ) !global;
152
+ }
153
+ }
154
+
155
+ // text
156
+ $text-color-base: #f0f5ff;
157
+ $text-color: () !default;
158
+ $text-color: map.merge(
159
+ (
160
+ 'primary': rgba($text-color-base, 0.95),
161
+ 'regular': rgba($text-color-base, 0.85),
162
+ 'secondary': rgba($text-color-base, 0.65),
163
+ 'placeholder': rgba($text-color-base, 0.55),
164
+ 'disabled': rgba($text-color-base, 0.4),
165
+ ),
166
+ $text-color
167
+ );
168
+ // mix to hex to avoid overlay issues
169
+ @each $key, $val in $text-color {
170
+ $text-color: map.merge(
171
+ $text-color,
172
+ (
173
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
174
+ )
175
+ ) !global;
176
+ }
177
+
178
+ // mask
179
+ $mask-color: () !default;
180
+ $mask-color: map.merge(
181
+ (
182
+ '': rgba(0, 0, 0, 0.8),
183
+ 'extra-light': rgba(0, 0, 0, 0.3),
184
+ ),
185
+ $mask-color
186
+ );
187
+
188
+ // Button
189
+ // css3 var in packages/theme-chalk/src/button.scss
190
+ $button: () !default;
191
+ $button: map.merge(
192
+ (
193
+ 'disabled-text-color': rgba(255, 255, 255, 0.5),
194
+ ),
195
+ $button
196
+ );
197
+
198
+ // card
199
+ $card: () !default;
200
+ $card: map.merge(
201
+ (
202
+ 'bg-color': getCssVar('bg-color', 'overlay'),
203
+ ),
204
+ $card
205
+ );
206
+
207
+ // Empty
208
+ // css3 var in packages/theme-chalk/src/empty.scss
209
+ $empty: () !default;
210
+ $empty: map.merge(
211
+ (
212
+ 'fill-color-0': getCssVar('color-black'),
213
+ 'fill-color-1': #4b4b52,
214
+ 'fill-color-2': #36383d,
215
+ 'fill-color-3': #1e1e20,
216
+ 'fill-color-4': #262629,
217
+ 'fill-color-5': #202124,
218
+ 'fill-color-6': #212224,
219
+ 'fill-color-7': #1b1c1f,
220
+ 'fill-color-8': #1c1d1f,
221
+ 'fill-color-9': #18181a,
222
+ ),
223
+ $empty
224
+ );
@@ -0,0 +1,121 @@
1
+ @use '../common/var' as *;
2
+ @use '../mixins/mixins' as *;
3
+ @use '../mixins/var' as *;
4
+ @use './picker-panel.scss';
5
+ @use './utils.scss' as *;
6
+
7
+ @include b(date-picker) {
8
+ @include set-component-css-var('datepicker', $datepicker);
9
+ @include set-css-var-value(
10
+ ('fill-color', 'blank'),
11
+ getCssVar('datepicker', 'bg-color')
12
+ );
13
+ }
14
+
15
+ @include b(date-picker) {
16
+ width: 322px;
17
+
18
+ &.has-sidebar.has-time {
19
+ width: 434px;
20
+ }
21
+
22
+ &.has-sidebar {
23
+ width: 438px;
24
+ }
25
+
26
+ &.has-time .#{$namespace}-picker-panel__body-wrapper {
27
+ position: relative;
28
+ }
29
+
30
+ .#{$namespace}-picker-panel__content {
31
+ width: 292px;
32
+ }
33
+
34
+ table {
35
+ table-layout: fixed;
36
+ width: 100%;
37
+ }
38
+
39
+ @include e(editor-wrap) {
40
+ position: relative;
41
+ display: table-cell;
42
+ padding: 0 5px;
43
+ }
44
+
45
+ @include e(time-header) {
46
+ position: relative;
47
+ border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
48
+ font-size: 12px;
49
+ padding: 8px 5px 5px;
50
+ display: table;
51
+ width: 100%;
52
+ box-sizing: border-box;
53
+ }
54
+
55
+ @include e(header) {
56
+ padding: 12px 12px 0;
57
+ text-align: center;
58
+
59
+ @include m(bordered) {
60
+ margin-bottom: 0;
61
+ padding-bottom: 12px;
62
+ border-bottom: solid 1px getCssVar('border-color-lighter');
63
+
64
+ & + .#{$namespace}-picker-panel__content {
65
+ margin-top: 0;
66
+ }
67
+ }
68
+ }
69
+
70
+ @include e(header-label) {
71
+ font-size: 16px;
72
+ font-weight: 500;
73
+ padding: 0 5px;
74
+ line-height: 22px;
75
+ text-align: center;
76
+ cursor: pointer;
77
+ color: getCssVar('text-color', 'regular');
78
+
79
+ &:hover {
80
+ color: getCssVar('datepicker-hover-text-color');
81
+ }
82
+ &:focus-visible {
83
+ outline: none;
84
+ color: getCssVar('datepicker-hover-text-color');
85
+ }
86
+
87
+ &.active {
88
+ color: getCssVar('datepicker-active-color');
89
+ }
90
+ }
91
+
92
+ @include e(prev-btn) {
93
+ float: left;
94
+ }
95
+
96
+ @include e(next-btn) {
97
+ float: right;
98
+ }
99
+
100
+ @include e(time-wrap) {
101
+ padding: 10px;
102
+ text-align: center;
103
+ }
104
+
105
+ @include e(time-label) {
106
+ float: left;
107
+ cursor: pointer;
108
+ line-height: 30px;
109
+ margin-left: 10px;
110
+ }
111
+
112
+ .#{$namespace}-time-panel {
113
+ position: absolute;
114
+ }
115
+
116
+ @include when(disabled) {
117
+ @include e(header-label) {
118
+ @include disable;
119
+ }
120
+ }
121
+ }
@@ -0,0 +1,165 @@
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+ @use '../mixins/var' as *;
4
+ @use './utils.scss' as *;
5
+
6
+ @include b(date-range-picker) {
7
+ @include set-component-css-var('datepicker', $datepicker);
8
+ }
9
+
10
+ @include b(date-range-picker) {
11
+ width: 646px;
12
+
13
+ &.has-sidebar {
14
+ width: 756px;
15
+ }
16
+
17
+ &.has-time .#{$namespace}-picker-panel__body-wrapper {
18
+ position: relative;
19
+ }
20
+
21
+ table {
22
+ table-layout: fixed;
23
+ width: 100%;
24
+ }
25
+
26
+ .#{$namespace}-picker-panel__body {
27
+ min-width: 513px;
28
+ }
29
+
30
+ .#{$namespace}-picker-panel__content {
31
+ margin: 0;
32
+ }
33
+
34
+ &.single-panel {
35
+ width: 322px;
36
+
37
+ .#{$namespace}-picker-panel__body {
38
+ min-width: 322px;
39
+ }
40
+
41
+ &.has-sidebar.has-time {
42
+ width: 434px;
43
+ }
44
+
45
+ &.has-sidebar {
46
+ width: 438px;
47
+ }
48
+
49
+ .#{$namespace}-picker-panel__content {
50
+ display: block;
51
+ position: relative;
52
+ margin: 15px;
53
+ width: 292px;
54
+ padding: 0;
55
+ }
56
+ }
57
+
58
+ @include e(header) {
59
+ position: relative;
60
+ text-align: center;
61
+ height: 28px;
62
+
63
+ [class*='arrow-left'] {
64
+ float: left;
65
+ }
66
+
67
+ [class*='arrow-right'] {
68
+ float: right;
69
+ }
70
+
71
+ div {
72
+ font-size: 16px;
73
+ font-weight: 500;
74
+ margin-right: 50px;
75
+ }
76
+ }
77
+
78
+ @include e(header-label) {
79
+ font-size: 16px;
80
+ font-weight: 500;
81
+ padding: 0 5px;
82
+ line-height: 22px;
83
+ text-align: center;
84
+ cursor: pointer;
85
+ color: getCssVar('text-color', 'regular');
86
+
87
+ &:hover {
88
+ color: getCssVar('datepicker-hover-text-color');
89
+ }
90
+ &:focus-visible {
91
+ outline: none;
92
+ color: getCssVar('datepicker-hover-text-color');
93
+ }
94
+
95
+ &.active {
96
+ color: getCssVar('datepicker-active-color');
97
+ }
98
+ }
99
+
100
+ @include e(content) {
101
+ display: table-cell;
102
+ width: 50%;
103
+ box-sizing: border-box;
104
+ margin: 0;
105
+ padding: 16px;
106
+
107
+ @include when(left) {
108
+ border-right: 1px solid getCssVar('datepicker-inner-border-color');
109
+ }
110
+ .#{$namespace}-date-range-picker__header {
111
+ div {
112
+ margin-left: 50px;
113
+ margin-right: 50px;
114
+ }
115
+ }
116
+ }
117
+
118
+ @include e(editors-wrap) {
119
+ box-sizing: border-box;
120
+ display: table-cell;
121
+
122
+ @include when(right) {
123
+ text-align: right;
124
+ }
125
+ }
126
+
127
+ @include e(time-header) {
128
+ position: relative;
129
+ border-bottom: 1px solid getCssVar('datepicker-inner-border-color');
130
+ font-size: 12px;
131
+ padding: 8px 5px 5px 5px;
132
+ display: table;
133
+ width: 100%;
134
+ box-sizing: border-box;
135
+
136
+ > .#{$namespace}-icon-arrow-right {
137
+ font-size: 20px;
138
+ vertical-align: middle;
139
+ display: table-cell;
140
+ color: getCssVar('datepicker-icon-color');
141
+ }
142
+ }
143
+
144
+ @include e(time-picker-wrap) {
145
+ position: relative;
146
+ display: table-cell;
147
+ padding: 0 5px;
148
+
149
+ .#{$namespace}-picker-panel {
150
+ position: absolute;
151
+ top: 13px;
152
+ right: 0;
153
+ z-index: 1;
154
+ background: $color-white;
155
+ }
156
+ .#{$namespace}-time-panel {
157
+ position: absolute;
158
+ }
159
+ }
160
+ @include when(disabled) {
161
+ @include e(header-label) {
162
+ @include disable;
163
+ }
164
+ }
165
+ }