lumen-plus 0.0.3 → 0.0.5

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 (73) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/theme-chalk/_index.scss +69 -0
  3. package/dist/theme-chalk/_reset.scss +16 -0
  4. package/dist/theme-chalk/_variables.scss +91 -0
  5. package/dist/theme-chalk/affix.scss +8 -0
  6. package/dist/theme-chalk/alert.scss +140 -0
  7. package/dist/theme-chalk/autocomplete.scss +238 -0
  8. package/dist/theme-chalk/avatar.scss +49 -0
  9. package/dist/theme-chalk/backtop.scss +55 -0
  10. package/dist/theme-chalk/badge.scss +47 -0
  11. package/dist/theme-chalk/breadcrumb.scss +50 -0
  12. package/dist/theme-chalk/button.scss +472 -0
  13. package/dist/theme-chalk/calendar.scss +166 -0
  14. package/dist/theme-chalk/card.scss +70 -0
  15. package/dist/theme-chalk/carousel.scss +167 -0
  16. package/dist/theme-chalk/cascader.scss +265 -0
  17. package/dist/theme-chalk/checkbox.scss +127 -0
  18. package/dist/theme-chalk/collapse.scss +100 -0
  19. package/dist/theme-chalk/color-picker.scss +247 -0
  20. package/dist/theme-chalk/container.scss +79 -0
  21. package/dist/theme-chalk/date-picker.scss +352 -0
  22. package/dist/theme-chalk/date-time-picker.scss +396 -0
  23. package/dist/theme-chalk/descriptions.scss +160 -0
  24. package/dist/theme-chalk/dialog.scss +154 -0
  25. package/dist/theme-chalk/divider.scss +61 -0
  26. package/dist/theme-chalk/drawer.scss +211 -0
  27. package/dist/theme-chalk/dropdown.scss +230 -0
  28. package/dist/theme-chalk/empty.scss +36 -0
  29. package/dist/theme-chalk/form.scss +187 -0
  30. package/dist/theme-chalk/icon.scss +16 -0
  31. package/dist/theme-chalk/image.scss +171 -0
  32. package/dist/theme-chalk/input-number.scss +229 -0
  33. package/dist/theme-chalk/input-tag.scss +119 -0
  34. package/dist/theme-chalk/input.scss +249 -0
  35. package/dist/theme-chalk/link.scss +28 -0
  36. package/dist/theme-chalk/loading.scss +68 -0
  37. package/dist/theme-chalk/menu.scss +239 -0
  38. package/dist/theme-chalk/message.scss +150 -0
  39. package/dist/theme-chalk/messagebox.scss +76 -0
  40. package/dist/theme-chalk/mixins/_bem.scss +103 -0
  41. package/dist/theme-chalk/mixins/_function.scss +12 -0
  42. package/dist/theme-chalk/notification.scss +164 -0
  43. package/dist/theme-chalk/pagination.scss +130 -0
  44. package/dist/theme-chalk/pin-input.scss +192 -0
  45. package/dist/theme-chalk/popconfirm.scss +194 -0
  46. package/dist/theme-chalk/popover.scss +196 -0
  47. package/dist/theme-chalk/progress.scss +51 -0
  48. package/dist/theme-chalk/radio.scss +128 -0
  49. package/dist/theme-chalk/rating.scss +227 -0
  50. package/dist/theme-chalk/result.scss +80 -0
  51. package/dist/theme-chalk/segmented.scss +108 -0
  52. package/dist/theme-chalk/select.scss +301 -0
  53. package/dist/theme-chalk/skeleton.scss +113 -0
  54. package/dist/theme-chalk/slider.scss +259 -0
  55. package/dist/theme-chalk/space.scss +44 -0
  56. package/dist/theme-chalk/statistic.scss +49 -0
  57. package/dist/theme-chalk/steps.scss +255 -0
  58. package/dist/theme-chalk/switch.scss +277 -0
  59. package/dist/theme-chalk/table.scss +343 -0
  60. package/dist/theme-chalk/tabs.scss +433 -0
  61. package/dist/theme-chalk/tag.scss +143 -0
  62. package/dist/theme-chalk/textarea.scss +125 -0
  63. package/dist/theme-chalk/time-picker.scss +321 -0
  64. package/dist/theme-chalk/timeline.scss +119 -0
  65. package/dist/theme-chalk/tooltip.scss +165 -0
  66. package/dist/theme-chalk/transfer.scss +219 -0
  67. package/dist/theme-chalk/tree-select.scss +384 -0
  68. package/dist/theme-chalk/tree.scss +101 -0
  69. package/dist/theme-chalk/upload.scss +457 -0
  70. package/dist/theme-chalk/watermark.scss +30 -0
  71. package/dist/utils/index.js +1 -0
  72. package/dist/utils/transitions.js +31 -0
  73. package/package.json +8 -2
@@ -0,0 +1,352 @@
1
+ @use './variables' as *;
2
+ @use './mixins/bem' as *;
3
+
4
+ @include b('date-picker') {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: 220px;
8
+
9
+ @include m('small') {
10
+ .#{$namespace}-date-picker__trigger {
11
+ height: 28px;
12
+ }
13
+
14
+ .#{$namespace}-date-picker__input {
15
+ font-size: $font-size-small;
16
+ }
17
+ }
18
+
19
+ @include m('default') {
20
+ .#{$namespace}-date-picker__trigger {
21
+ height: 32px;
22
+ }
23
+
24
+ .#{$namespace}-date-picker__input {
25
+ font-size: $font-size-base;
26
+ }
27
+ }
28
+
29
+ @include m('large') {
30
+ .#{$namespace}-date-picker__trigger {
31
+ height: 40px;
32
+ }
33
+
34
+ .#{$namespace}-date-picker__input {
35
+ font-size: $font-size-medium;
36
+ }
37
+ }
38
+
39
+ @include when('disabled') {
40
+ .#{$namespace}-date-picker__trigger {
41
+ background: $bg-color-page;
42
+ cursor: not-allowed;
43
+ }
44
+
45
+ .#{$namespace}-date-picker__input {
46
+ color: $color-text-disabled;
47
+ cursor: not-allowed;
48
+ }
49
+ }
50
+
51
+ @include e('trigger') {
52
+ display: flex;
53
+ align-items: center;
54
+ width: 100%;
55
+ padding: 0 12px;
56
+ border: 1px solid $border-color-base;
57
+ border-radius: $border-radius-base;
58
+ background: $bg-color;
59
+ cursor: pointer;
60
+ transition: border-color $transition-duration-fast;
61
+ font-family: inherit;
62
+ font-size: inherit;
63
+ outline: none;
64
+
65
+ &:hover:not(:disabled):not(.is-focus) {
66
+ border-color: #c0c4cc;
67
+ }
68
+
69
+ &.is-focus {
70
+ border-color: $color-primary;
71
+ }
72
+
73
+ &:disabled {
74
+ background: $bg-color-page;
75
+ cursor: not-allowed;
76
+ }
77
+ }
78
+
79
+ @include e('prefix') {
80
+ color: $color-text-secondary;
81
+ margin-right: 8px;
82
+ }
83
+
84
+ @include e('input') {
85
+ flex: 1;
86
+ text-align: left;
87
+ color: $color-text-primary;
88
+
89
+ &.is-placeholder {
90
+ color: $color-text-placeholder;
91
+ }
92
+ }
93
+
94
+ @include e('clear') {
95
+ color: $color-text-secondary;
96
+ cursor: pointer;
97
+ display: flex;
98
+ align-items: center;
99
+
100
+ &:hover {
101
+ color: $color-text-primary;
102
+ }
103
+ }
104
+
105
+ @include e('dropdown') {
106
+ position: absolute;
107
+ top: 100%;
108
+ left: 50%;
109
+ margin-top: 12px;
110
+ // Arrow variables
111
+ --l-date-picker-bg: #{$bg-color};
112
+ --l-date-picker-border: #{$border-color-lighter};
113
+ --arrow-size: 10px;
114
+
115
+ padding: 12px;
116
+ background: var(--l-date-picker-bg);
117
+ border: 1px solid var(--l-date-picker-border);
118
+ border-radius: $border-radius-base;
119
+ box-shadow: $box-shadow-light;
120
+ z-index: $z-index-popper;
121
+ width: 280px;
122
+ overflow: visible;
123
+ transform: translateX(-50%);
124
+ transform-origin: top;
125
+ }
126
+
127
+ @include e('menu-arrow') {
128
+ position: absolute;
129
+ width: var(--arrow-size);
130
+ height: var(--arrow-size);
131
+ z-index: -1;
132
+ pointer-events: none;
133
+
134
+ top: calc(-1 * (var(--arrow-size) * 0.55) + 1px);
135
+ left: 50%;
136
+ margin-left: calc(-1 * (var(--arrow-size) / 2));
137
+
138
+ &::before {
139
+ content: '';
140
+ position: absolute;
141
+ inset: 0;
142
+ width: 100%;
143
+ height: 100%;
144
+ background: var(--l-date-picker-bg);
145
+ transform: rotate(45deg);
146
+ border-radius: calc(var(--arrow-size) * 0.2);
147
+ box-shadow: -1px -1px 0 0 var(--l-date-picker-border);
148
+ }
149
+ }
150
+
151
+ @include e('header') {
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: space-between;
155
+ margin-bottom: 12px;
156
+ }
157
+
158
+ @include e('body') {
159
+ display: block;
160
+ }
161
+
162
+ @include e('nav') {
163
+ display: flex;
164
+ align-items: center;
165
+ justify-content: center;
166
+ width: 28px;
167
+ height: 28px;
168
+ border: none;
169
+ border-radius: $border-radius-base;
170
+ background: transparent;
171
+ color: $color-text-secondary;
172
+ cursor: pointer;
173
+ transition: background-color $transition-duration-fast, color $transition-duration-fast;
174
+
175
+ &:hover {
176
+ background: $bg-color-page;
177
+ color: $color-primary;
178
+ }
179
+ }
180
+
181
+ @include e('nav-group') {
182
+ display: inline-flex;
183
+ align-items: center;
184
+ gap: 2px;
185
+ }
186
+
187
+ @include e('title') {
188
+ flex: 1;
189
+ text-align: center;
190
+ font-size: $font-size-base;
191
+ font-weight: $font-weight-primary;
192
+ color: $color-text-primary;
193
+ }
194
+
195
+ @include e('week') {
196
+ display: grid;
197
+ grid-template-columns: repeat(7, 1fr);
198
+ margin-bottom: 8px;
199
+ }
200
+
201
+ @include e('week-day') {
202
+ text-align: center;
203
+ font-size: $font-size-small;
204
+ color: $color-text-secondary;
205
+ padding: 4px 0;
206
+ }
207
+
208
+ @include e('days') {
209
+ display: grid;
210
+ grid-template-columns: repeat(7, 1fr);
211
+ gap: 4px;
212
+ }
213
+
214
+ @include e('day') {
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: center;
218
+ width: 32px;
219
+ height: 32px;
220
+ border: none;
221
+ border-radius: $border-radius-base;
222
+ background: transparent;
223
+ font-size: $font-size-base;
224
+ color: $color-text-primary;
225
+ cursor: pointer;
226
+ transition: background-color $transition-duration-fast, color $transition-duration-fast;
227
+
228
+ &:hover:not(:disabled) {
229
+ background: $bg-color-page;
230
+ }
231
+
232
+ &.is-other-month {
233
+ color: $color-text-placeholder;
234
+ }
235
+
236
+ &.is-today {
237
+ color: $color-primary;
238
+ font-weight: $font-weight-primary;
239
+ }
240
+
241
+ &.is-selected {
242
+ background: $color-primary;
243
+ color: #fff;
244
+
245
+ &:hover {
246
+ background: $color-primary-light;
247
+ }
248
+ }
249
+
250
+ &.is-disabled {
251
+ color: $color-text-disabled;
252
+ cursor: not-allowed;
253
+ }
254
+ }
255
+ }
256
+
257
+ .dark {
258
+ .#{$namespace}-date-picker {
259
+ .#{$namespace}-date-picker__trigger {
260
+ background: $bg-color-dark-light;
261
+ border-color: color-mix(in oklab, #{$bg-color-dark-lighter} 78%, #{$color-text-dark});
262
+
263
+ &:hover:not(:disabled):not(.is-focus) {
264
+ border-color: color-mix(in oklab, #{$bg-color-dark-lighter} 60%, #{$color-text-dark});
265
+ }
266
+
267
+ &.is-focus {
268
+ border-color: $color-primary;
269
+ }
270
+ }
271
+
272
+ @include when('disabled') {
273
+ .#{$namespace}-date-picker__trigger {
274
+ background: $bg-color-dark-lighter;
275
+ }
276
+
277
+ .#{$namespace}-date-picker__input {
278
+ color: $color-text-dark-secondary;
279
+ }
280
+ }
281
+
282
+ .#{$namespace}-date-picker__prefix,
283
+ .#{$namespace}-date-picker__clear {
284
+ color: $color-text-dark-secondary;
285
+ }
286
+
287
+ .#{$namespace}-date-picker__clear:hover {
288
+ color: $color-text-dark;
289
+ }
290
+
291
+ .#{$namespace}-date-picker__input {
292
+ color: $color-text-dark;
293
+
294
+ &.is-placeholder {
295
+ color: $color-text-dark-secondary;
296
+ }
297
+ }
298
+
299
+ .#{$namespace}-date-picker__dropdown {
300
+ --l-date-picker-bg: #{$bg-color-dark-light};
301
+ --l-date-picker-border: color-mix(in oklab, #{$bg-color-dark-lighter} 74%, #{$color-text-dark});
302
+ box-shadow: $box-shadow-dark;
303
+ }
304
+
305
+ .#{$namespace}-date-picker__nav {
306
+ color: $color-text-dark-secondary;
307
+
308
+ &:hover {
309
+ background: $bg-color-dark-lighter;
310
+ color: $color-text-dark;
311
+ }
312
+ }
313
+
314
+ .#{$namespace}-date-picker__title {
315
+ color: $color-text-dark;
316
+ }
317
+
318
+ .#{$namespace}-date-picker__week-day {
319
+ color: $color-text-dark-secondary;
320
+ }
321
+
322
+ .#{$namespace}-date-picker__day {
323
+ color: $color-text-dark;
324
+
325
+ &:hover:not(:disabled) {
326
+ background: $bg-color-dark-lighter;
327
+ }
328
+
329
+ &.is-other-month {
330
+ color: $color-text-dark-secondary;
331
+ }
332
+
333
+ &.is-today {
334
+ color: $color-primary;
335
+ }
336
+
337
+ &.is-selected {
338
+ background: $color-primary;
339
+ color: #fff;
340
+
341
+ &:hover {
342
+ background: $color-primary-light;
343
+ }
344
+ }
345
+
346
+ &:disabled,
347
+ &.is-disabled {
348
+ color: rgba($color-text-dark, 0.35);
349
+ }
350
+ }
351
+ }
352
+ }