@timus-networks/theme 1.0.1

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 (143) hide show
  1. package/README.md +90 -0
  2. package/components-js/exporter.js +19 -0
  3. package/components-js/interfaces.ts +11 -0
  4. package/components-js/utils.ts +20 -0
  5. package/components-ts/exporter.js +19 -0
  6. package/components-ts/interfaces.ts +11 -0
  7. package/components-ts/utils.ts +20 -0
  8. package/convert.js +98 -0
  9. package/index.d.ts +0 -0
  10. package/js-converter.js +90 -0
  11. package/loader.js +41 -0
  12. package/module.js +62 -0
  13. package/package.json +38 -0
  14. package/plugins/js-components-installer.js +21 -0
  15. package/plugins/theme-provider.ts +75 -0
  16. package/plugins/ts-components-installer.js +21 -0
  17. package/scss/_buttons.scss +160 -0
  18. package/scss/_colors.scss +159 -0
  19. package/scss/_containers.scss +7 -0
  20. package/scss/_element-ui.scss +14 -0
  21. package/scss/_fonts.scss +69 -0
  22. package/scss/_icons.scss +87 -0
  23. package/scss/_inputs.scss +39 -0
  24. package/scss/_layers.scss +9 -0
  25. package/scss/_selectbox.scss +4 -0
  26. package/scss/_variables.scss +16 -0
  27. package/scss/element-ui/alert.scss +147 -0
  28. package/scss/element-ui/aside.scss +7 -0
  29. package/scss/element-ui/autocomplete.scss +80 -0
  30. package/scss/element-ui/avatar.scss +51 -0
  31. package/scss/element-ui/backtop.scss +22 -0
  32. package/scss/element-ui/badge.scss +58 -0
  33. package/scss/element-ui/base.scss +2 -0
  34. package/scss/element-ui/breadcrumb-item.scss +0 -0
  35. package/scss/element-ui/breadcrumb.scss +55 -0
  36. package/scss/element-ui/button-group.scss +0 -0
  37. package/scss/element-ui/button.scss +275 -0
  38. package/scss/element-ui/calendar.scss +79 -0
  39. package/scss/element-ui/card.scss +32 -0
  40. package/scss/element-ui/carousel-item.scss +50 -0
  41. package/scss/element-ui/carousel.scss +162 -0
  42. package/scss/element-ui/cascader-panel.scss +120 -0
  43. package/scss/element-ui/cascader.scss +182 -0
  44. package/scss/element-ui/checkbox-button.scss +0 -0
  45. package/scss/element-ui/checkbox-group.scss +0 -0
  46. package/scss/element-ui/checkbox.scss +359 -0
  47. package/scss/element-ui/col.scss +157 -0
  48. package/scss/element-ui/collapse-item.scss +0 -0
  49. package/scss/element-ui/collapse.scss +63 -0
  50. package/scss/element-ui/color-picker.scss +384 -0
  51. package/scss/element-ui/common/popup.scss +42 -0
  52. package/scss/element-ui/common/transition.scss +99 -0
  53. package/scss/element-ui/common/var.scss +1029 -0
  54. package/scss/element-ui/container.scss +14 -0
  55. package/scss/element-ui/date-picker/date-picker.scss +97 -0
  56. package/scss/element-ui/date-picker/date-range-picker.scss +101 -0
  57. package/scss/element-ui/date-picker/date-table.scss +151 -0
  58. package/scss/element-ui/date-picker/month-table.scss +82 -0
  59. package/scss/element-ui/date-picker/picker-panel.scss +117 -0
  60. package/scss/element-ui/date-picker/picker.scss +197 -0
  61. package/scss/element-ui/date-picker/time-picker.scss +85 -0
  62. package/scss/element-ui/date-picker/time-range-picker.scss +31 -0
  63. package/scss/element-ui/date-picker/time-spinner.scss +110 -0
  64. package/scss/element-ui/date-picker/year-table.scss +51 -0
  65. package/scss/element-ui/date-picker.scss +12 -0
  66. package/scss/element-ui/descriptions-item.scss +42 -0
  67. package/scss/element-ui/descriptions.scss +111 -0
  68. package/scss/element-ui/dialog.scss +123 -0
  69. package/scss/element-ui/display.scss +12 -0
  70. package/scss/element-ui/divider.scss +47 -0
  71. package/scss/element-ui/drawer.scss +219 -0
  72. package/scss/element-ui/dropdown-item.scss +0 -0
  73. package/scss/element-ui/dropdown-menu.scss +0 -0
  74. package/scss/element-ui/dropdown.scss +182 -0
  75. package/scss/element-ui/empty.scss +45 -0
  76. package/scss/element-ui/fonts/element-icons.ttf +0 -0
  77. package/scss/element-ui/fonts/element-icons.woff +0 -0
  78. package/scss/element-ui/footer.scss +8 -0
  79. package/scss/element-ui/form-item.scss +0 -0
  80. package/scss/element-ui/form.scss +167 -0
  81. package/scss/element-ui/header.scss +8 -0
  82. package/scss/element-ui/icon.scss +1167 -0
  83. package/scss/element-ui/image.scss +179 -0
  84. package/scss/element-ui/index.scss +87 -0
  85. package/scss/element-ui/infinite-scroll.scss +0 -0
  86. package/scss/element-ui/infiniteScroll.scss +0 -0
  87. package/scss/element-ui/input-number.scss +181 -0
  88. package/scss/element-ui/input.scss +360 -0
  89. package/scss/element-ui/link.scss +81 -0
  90. package/scss/element-ui/loading.scss +97 -0
  91. package/scss/element-ui/main.scss +12 -0
  92. package/scss/element-ui/menu-item-group.scss +0 -0
  93. package/scss/element-ui/menu-item.scss +0 -0
  94. package/scss/element-ui/menu.scss +289 -0
  95. package/scss/element-ui/message-box.scss +226 -0
  96. package/scss/element-ui/message.scss +120 -0
  97. package/scss/element-ui/mixins/_button.scss +81 -0
  98. package/scss/element-ui/mixins/config.scss +4 -0
  99. package/scss/element-ui/mixins/function.scss +44 -0
  100. package/scss/element-ui/mixins/mixins.scss +190 -0
  101. package/scss/element-ui/mixins/utils.scss +39 -0
  102. package/scss/element-ui/notification.scss +99 -0
  103. package/scss/element-ui/option-group.scss +42 -0
  104. package/scss/element-ui/option.scss +36 -0
  105. package/scss/element-ui/page-header.scss +41 -0
  106. package/scss/element-ui/pagination.scss +295 -0
  107. package/scss/element-ui/popconfirm.scss +16 -0
  108. package/scss/element-ui/popover.scss +40 -0
  109. package/scss/element-ui/popper.scss +102 -0
  110. package/scss/element-ui/progress.scss +141 -0
  111. package/scss/element-ui/radio-button.scss +113 -0
  112. package/scss/element-ui/radio-group.scss +9 -0
  113. package/scss/element-ui/radio.scss +199 -0
  114. package/scss/element-ui/rate.scss +49 -0
  115. package/scss/element-ui/reset.scss +79 -0
  116. package/scss/element-ui/result.scss +61 -0
  117. package/scss/element-ui/row.scss +43 -0
  118. package/scss/element-ui/scrollbar.scss +72 -0
  119. package/scss/element-ui/select-dropdown.scss +62 -0
  120. package/scss/element-ui/select.scss +152 -0
  121. package/scss/element-ui/skeleton-item.scss +84 -0
  122. package/scss/element-ui/skeleton.scss +40 -0
  123. package/scss/element-ui/slider.scss +250 -0
  124. package/scss/element-ui/spinner.scss +44 -0
  125. package/scss/element-ui/statistic.scss +38 -0
  126. package/scss/element-ui/step.scss +317 -0
  127. package/scss/element-ui/steps.scss +20 -0
  128. package/scss/element-ui/submenu.scss +0 -0
  129. package/scss/element-ui/switch.scss +116 -0
  130. package/scss/element-ui/tab-pane.scss +0 -0
  131. package/scss/element-ui/table-column.scss +97 -0
  132. package/scss/element-ui/table.scss +564 -0
  133. package/scss/element-ui/tabs.scss +602 -0
  134. package/scss/element-ui/tag.scss +163 -0
  135. package/scss/element-ui/time-picker.scss +8 -0
  136. package/scss/element-ui/time-select.scss +37 -0
  137. package/scss/element-ui/timeline-item.scss +86 -0
  138. package/scss/element-ui/timeline.scss +14 -0
  139. package/scss/element-ui/tooltip.scss +141 -0
  140. package/scss/element-ui/transfer.scss +228 -0
  141. package/scss/element-ui/tree.scss +123 -0
  142. package/scss/element-ui/upload.scss +603 -0
  143. package/scss/main.scss +22 -0
@@ -0,0 +1,360 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(textarea) {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: 100%;
8
+ vertical-align: bottom;
9
+ font-size: $--font-size-base;
10
+
11
+ @include e(inner) {
12
+ display: block;
13
+ resize: vertical;
14
+ padding: 5px 15px;
15
+ line-height: 1.5;
16
+ box-sizing: border-box;
17
+ width: 100%;
18
+ font-size: inherit;
19
+ color: $--input-font-color;
20
+ background-color: $--input-background-color;
21
+ background-image: none;
22
+ border: $--input-border;
23
+ border-radius: $--input-border-radius;
24
+ transition: $--border-transition-base;
25
+
26
+ &::placeholder {
27
+ color: $--input-placeholder-color;
28
+ }
29
+
30
+ &:hover {
31
+ border-color: $--input-hover-border;
32
+ }
33
+
34
+ &:focus {
35
+ outline: none;
36
+ border-color: $--input-focus-border;
37
+ }
38
+ }
39
+
40
+ & .el-input__count {
41
+ color: $--color-info;
42
+ background: $--color-white;
43
+ position: absolute;
44
+ font-size: 12px;
45
+ bottom: 5px;
46
+ right: 10px;
47
+ }
48
+
49
+ @include when(disabled) {
50
+ .el-textarea__inner {
51
+ background-color: $--input-disabled-fill;
52
+ border-color: $--input-disabled-border;
53
+ color: $--input-disabled-color;
54
+ cursor: not-allowed;
55
+
56
+ &::placeholder {
57
+ color: $--input-disabled-placeholder-color;
58
+ }
59
+ }
60
+ }
61
+
62
+ @include when(exceed) {
63
+ .el-textarea__inner {
64
+ border-color: $--color-danger;
65
+ }
66
+
67
+ .el-input__count {
68
+ color: $--color-danger;
69
+ }
70
+ }
71
+ }
72
+
73
+ @include b(input) {
74
+ position: relative;
75
+ font-size: $--font-size-base;
76
+ display: inline-block;
77
+ width: 100%;
78
+ @include scroll-bar;
79
+
80
+ & .el-input__clear {
81
+ color: $--input-icon-color;
82
+ font-size: $--input-font-size;
83
+ cursor: pointer;
84
+ transition: $--color-transition-base;
85
+
86
+ &:hover {
87
+ color: $--input-clear-hover-color;
88
+ }
89
+ }
90
+
91
+ & .el-input__count {
92
+ height: 100%;
93
+ display: inline-flex;
94
+ align-items: center;
95
+ color: $--color-info;
96
+ font-size: 12px;
97
+
98
+ .el-input__count-inner {
99
+ background: $--color-white;
100
+ line-height: initial;
101
+ display: inline-block;
102
+ padding: 0 5px;
103
+ }
104
+ }
105
+
106
+ @include e(inner) {
107
+ -webkit-appearance: none;
108
+ background-color: $--input-background-color;
109
+ background-image: none;
110
+ border-radius: $--input-border-radius;
111
+ border: $--input-border;
112
+ box-sizing: border-box;
113
+ color: $--input-font-color;
114
+ display: inline-block;
115
+ font-size: inherit;
116
+ height: $--input-height;
117
+ line-height: $--input-height;
118
+ outline: none;
119
+ padding: 0 15px;
120
+ transition: $--border-transition-base;
121
+ width: 100%;
122
+
123
+ &::-ms-reveal {
124
+ display: none;
125
+ }
126
+
127
+ &::placeholder {
128
+ color: $--input-placeholder-color;
129
+ }
130
+
131
+ &:hover {
132
+ border-color: $--input-hover-border;
133
+ }
134
+
135
+ &:focus {
136
+ outline: none;
137
+ border-color: $--input-focus-border;
138
+ }
139
+ }
140
+
141
+ @include e(suffix) {
142
+ position: absolute;
143
+ height: 100%;
144
+ right: 5px;
145
+ top: 0;
146
+ text-align: center;
147
+ color: $--input-icon-color;
148
+ transition: all .3s;
149
+ pointer-events: none;
150
+ }
151
+
152
+ @include e(suffix-inner) {
153
+ pointer-events: all;
154
+ }
155
+
156
+ @include e(prefix) {
157
+ position: absolute;
158
+ height: 100%;
159
+ left: 5px;
160
+ top: 0;
161
+ text-align: center;
162
+ color: $--input-icon-color;
163
+ transition: all .3s;
164
+ }
165
+
166
+ @include e(icon) {
167
+ height: 100%;
168
+ width: 25px;
169
+ text-align: center;
170
+ transition: all .3s;
171
+ line-height: $--input-height;
172
+
173
+ &:after {
174
+ content: '';
175
+ height: 100%;
176
+ width: 0;
177
+ display: inline-block;
178
+ vertical-align: middle;
179
+ }
180
+ }
181
+
182
+ @include e(validateIcon) {
183
+ pointer-events: none;
184
+ }
185
+
186
+ @include when(active) {
187
+ .el-input__inner {
188
+ outline: none;
189
+ border-color: $--input-focus-border;
190
+ }
191
+ }
192
+
193
+ @include when(disabled) {
194
+ .el-input__inner {
195
+ background-color: $--input-disabled-fill;
196
+ border-color: $--input-disabled-border;
197
+ color: $--input-disabled-color;
198
+ cursor: not-allowed;
199
+
200
+ &::placeholder {
201
+ color: $--input-disabled-placeholder-color;
202
+ }
203
+ }
204
+
205
+ .el-input__icon {
206
+ cursor: not-allowed;
207
+ }
208
+ }
209
+
210
+ @include when(exceed) {
211
+ .el-input__inner {
212
+ border-color: $--color-danger;
213
+ }
214
+
215
+ .el-input__suffix {
216
+ .el-input__count {
217
+ color: $--color-danger;
218
+ }
219
+ }
220
+ }
221
+
222
+ @include m(suffix) {
223
+ .el-input__inner {
224
+ padding-right: 30px;
225
+ }
226
+ }
227
+
228
+ @include m(prefix) {
229
+ .el-input__inner {
230
+ padding-left: 30px;
231
+ }
232
+ }
233
+
234
+ @include m(medium) {
235
+ font-size: $--input-medium-font-size;
236
+
237
+ @include e(inner) {
238
+ height: $--input-medium-height;
239
+ line-height: $--input-medium-height;
240
+ }
241
+
242
+ .el-input__icon {
243
+ line-height: $--input-medium-height;
244
+ }
245
+ }
246
+ @include m(small) {
247
+ font-size: $--input-small-font-size;
248
+
249
+ @include e(inner) {
250
+ height: $--input-small-height;
251
+ line-height: $--input-small-height;
252
+ }
253
+
254
+ .el-input__icon {
255
+ line-height: $--input-small-height;
256
+ }
257
+ }
258
+ @include m(mini) {
259
+ font-size: $--input-mini-font-size;
260
+
261
+ @include e(inner) {
262
+ height: $--input-mini-height;
263
+ line-height: $--input-mini-height;
264
+ }
265
+
266
+ .el-input__icon {
267
+ line-height: $--input-mini-height;
268
+ }
269
+ }
270
+ }
271
+
272
+ @include b(input-group) {
273
+ line-height: normal;
274
+ display: inline-table;
275
+ width: 100%;
276
+ border-collapse: separate;
277
+ border-spacing:0;
278
+
279
+ > .el-input__inner {
280
+ vertical-align: middle;
281
+ display: table-cell;
282
+ }
283
+
284
+ @include e((append, prepend)) {
285
+ background-color: $--background-color-base;
286
+ color: $--color-info;
287
+ vertical-align: middle;
288
+ display: table-cell;
289
+ position: relative;
290
+ border: $--border-base;
291
+ border-radius: $--input-border-radius;
292
+ padding: 0 20px;
293
+ width: 1px;
294
+ white-space: nowrap;
295
+
296
+ &:focus {
297
+ outline: none;
298
+ }
299
+
300
+ .el-select,
301
+ .el-button {
302
+ display: inline-block;
303
+ margin: -10px -20px;
304
+ }
305
+
306
+ button.el-button,
307
+ div.el-select .el-input__inner,
308
+ div.el-select:hover .el-input__inner {
309
+ border-color: transparent;
310
+ background-color: transparent;
311
+ color: inherit;
312
+ border-top: 0;
313
+ border-bottom: 0;
314
+ }
315
+
316
+ .el-button,
317
+ .el-input {
318
+ font-size: inherit;
319
+ }
320
+ }
321
+
322
+ @include e(prepend) {
323
+ border-right: 0;
324
+ border-top-right-radius: 0;
325
+ border-bottom-right-radius: 0;
326
+ }
327
+
328
+ @include e(append) {
329
+ border-left: 0;
330
+ border-top-left-radius: 0;
331
+ border-bottom-left-radius: 0;
332
+ }
333
+
334
+ @include m(prepend) {
335
+ .el-input__inner {
336
+ border-top-left-radius: 0;
337
+ border-bottom-left-radius: 0;
338
+ }
339
+ .el-select .el-input.is-focus .el-input__inner {
340
+ border-color: transparent;
341
+ }
342
+ }
343
+
344
+ @include m(append) {
345
+ .el-input__inner {
346
+ border-top-right-radius: 0;
347
+ border-bottom-right-radius: 0;
348
+ }
349
+ .el-select .el-input.is-focus .el-input__inner {
350
+ border-color: transparent;
351
+ }
352
+ }
353
+ }
354
+
355
+ /** disalbe default clear on IE */
356
+ .el-input__inner::-ms-clear {
357
+ display: none;
358
+ width: 0;
359
+ height: 0;
360
+ }
@@ -0,0 +1,81 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ $typeMap: (
5
+ primary: $--link-primary-font-color,
6
+ danger: $--link-danger-font-color,
7
+ success: $--link-success-font-color,
8
+ warning: $--link-warning-font-color,
9
+ info: $--link-info-font-color);
10
+
11
+ @include b(link) {
12
+ display: inline-flex;
13
+ flex-direction: row;
14
+ align-items: center;
15
+ justify-content: center;
16
+ vertical-align: middle;
17
+ position: relative;
18
+ text-decoration: none;
19
+ outline: none;
20
+ cursor: pointer;
21
+ padding: 0;
22
+ font-size: $--link-font-size;
23
+ font-weight: $--link-font-weight;
24
+
25
+ @include when(underline) {
26
+ &:hover:after {
27
+ content: "";
28
+ position: absolute;
29
+ left: 0;
30
+ right: 0;
31
+ height: 0;
32
+ bottom: 0;
33
+ border-bottom: 1px solid $--link-default-active-color
34
+ }
35
+ }
36
+
37
+ @include when(disabled) {
38
+ cursor: not-allowed;
39
+ }
40
+
41
+ & [class*="el-icon-"] {
42
+ & + span {
43
+ margin-left: 5px;
44
+ }
45
+ }
46
+
47
+
48
+ &.el-link--default {
49
+ color: $--link-default-font-color;
50
+ &:hover {
51
+ color: $--link-default-active-color
52
+ }
53
+ &:after {
54
+ border-color: $--link-default-active-color
55
+ }
56
+ @include when(disabled) {
57
+ color: $--link-disabled-font-color
58
+ }
59
+ }
60
+
61
+ @each $type, $primaryColor in $typeMap {
62
+ &.el-link--#{$type} {
63
+ color: $primaryColor;
64
+ &:hover {
65
+ color: mix($primaryColor, $--color-white, 80%)
66
+ }
67
+ &:after {
68
+ border-color: $primaryColor
69
+ }
70
+ @include when(disabled) {
71
+ color: mix($primaryColor, $--color-white, 50%)
72
+ }
73
+ @include when(underline) {
74
+ &:hover:after {
75
+ border-color: $primaryColor
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ }
@@ -0,0 +1,97 @@
1
+ @use "sass:math";
2
+ @import "mixins/mixins";
3
+ @import "common/var";
4
+
5
+ @include b(loading-parent) {
6
+ @include m(relative) {
7
+ position: relative !important;
8
+ }
9
+
10
+ @include m(hidden) {
11
+ overflow: hidden !important;
12
+ }
13
+ }
14
+
15
+ @include b(loading-mask) {
16
+ position: absolute;
17
+ z-index: 2000;
18
+ background-color: rgba(255, 255, 255, .9);
19
+ margin: 0;
20
+ top: 0;
21
+ right: 0;
22
+ bottom: 0;
23
+ left: 0;
24
+ transition: opacity 0.3s;
25
+
26
+ @include when(fullscreen) {
27
+ position: fixed;
28
+
29
+ .el-loading-spinner {
30
+ margin-top: math.div(-$--loading-fullscreen-spinner-size, 2);
31
+
32
+ .circular {
33
+ height: $--loading-fullscreen-spinner-size;
34
+ width: $--loading-fullscreen-spinner-size;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ @include b(loading-spinner) {
41
+ top: 50%;
42
+ margin-top: math.div(-$--loading-spinner-size, 2);
43
+ width: 100%;
44
+ text-align: center;
45
+ position: absolute;
46
+
47
+ .el-loading-text {
48
+ color: $--color-primary;
49
+ margin: 3px 0;
50
+ font-size: 14px;
51
+ }
52
+
53
+ .circular {
54
+ height: $--loading-spinner-size;
55
+ width: $--loading-spinner-size;
56
+ animation: loading-rotate 2s linear infinite;
57
+ }
58
+
59
+ .path {
60
+ animation: loading-dash 1.5s ease-in-out infinite;
61
+ stroke-dasharray: 90, 150;
62
+ stroke-dashoffset: 0;
63
+ stroke-width: 2;
64
+ stroke: $--color-primary;
65
+ stroke-linecap: round;
66
+ }
67
+
68
+ i {
69
+ color: $--color-primary;
70
+ }
71
+ }
72
+
73
+ .el-loading-fade-enter,
74
+ .el-loading-fade-leave-active {
75
+ opacity: 0;
76
+ }
77
+
78
+ @keyframes loading-rotate {
79
+ 100% {
80
+ transform: rotate(360deg);
81
+ }
82
+ }
83
+
84
+ @keyframes loading-dash {
85
+ 0% {
86
+ stroke-dasharray: 1, 200;
87
+ stroke-dashoffset: 0;
88
+ }
89
+ 50% {
90
+ stroke-dasharray: 90, 150;
91
+ stroke-dashoffset: -40px;
92
+ }
93
+ 100% {
94
+ stroke-dasharray: 90, 150;
95
+ stroke-dashoffset: -120px;
96
+ }
97
+ }
@@ -0,0 +1,12 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(main) {
5
+ // IE11 supports the <main> element partially https://caniuse.com/#search=main
6
+ display: block;
7
+ flex: 1;
8
+ flex-basis: auto;
9
+ overflow: auto;
10
+ box-sizing: border-box;
11
+ padding: $--main-padding;
12
+ }
File without changes
File without changes