@fkui/design 6.9.0 → 6.11.0

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 (40) hide show
  1. package/lib/fkui.css +31 -507
  2. package/lib/fkui.min.css +1 -1
  3. package/package.json +9 -9
  4. package/src/_core.scss +1 -0
  5. package/src/components/_all.scss +0 -1
  6. package/src/components/badge/_badge.scss +2 -2
  7. package/src/components/button/_button.scss +40 -41
  8. package/src/components/calendar-day/_calendar-day.scss +13 -13
  9. package/src/components/calendar-day/_variables.scss +10 -0
  10. package/src/components/card/_card.scss +5 -5
  11. package/src/components/checkbox/_checkbox.scss +2 -2
  12. package/src/components/datepicker-field/_datepicker-field.scss +14 -7
  13. package/src/components/datepicker-field/_variables.scss +8 -0
  14. package/src/components/entrypoint/_entrypoint.scss +4 -4
  15. package/src/components/error-list/_error-list.scss +3 -3
  16. package/src/components/expandable-panel/_expandable-panel.scss +5 -5
  17. package/src/components/expandable-paragraph/_expandable-paragraph.scss +7 -7
  18. package/src/components/fieldset/_fieldset.scss +3 -3
  19. package/src/components/icon/_icon.scss +2 -2
  20. package/src/components/label/_label.scss +3 -3
  21. package/src/components/list/_list.scss +5 -5
  22. package/src/components/message-box/_message-box.scss +8 -8
  23. package/src/components/output-field/_output-field.scss +4 -4
  24. package/src/components/radio-button/_radio-button.scss +2 -2
  25. package/src/components/select-field/_select-field.scss +2 -2
  26. package/src/components/table/_table.scss +9 -9
  27. package/src/components/table/_table_button.scss +1 -1
  28. package/src/components/text-field/_text-field.scss +7 -7
  29. package/src/components/textarea-field/_textarea-field.scss +3 -3
  30. package/src/components/tooltip/_tooltip.scss +3 -3
  31. package/src/core/mixins/_label-inline.scss +3 -3
  32. package/src/core/utils/_all.scss +1 -0
  33. package/src/core/utils/_densify.scss +3 -0
  34. package/src/core/utils/_functions.scss +0 -4
  35. package/src/fkui.scss +1 -1
  36. package/src/internal-components/calendar-month/_month.scss +4 -5
  37. package/src/internal-components/calendar-month/_variables.scss +3 -0
  38. package/src/internal-components/calendar-navbar/_navbar.scss +10 -8
  39. package/src/internal-components/calendar-navbar/_variables.scss +11 -0
  40. package/src/components/calendar-deprecated/_calendar-deprecated.scss +0 -628
@@ -1,628 +0,0 @@
1
- @use "../../core/size";
2
-
3
- $CALENDAR_SELECTOR: ".calendar" !default;
4
- $calendar-color-highlight-primary: var(--f-background-calendar-selected) !default;
5
- $calendar-color-today: #666666 !default;
6
- $calendar-color-background-primary: var(--f-background-calendar-default) !default;
7
- $calendar-color-background-secondary: #fff !default;
8
- $calendar-color-background-hover: var(--f-background-calendar-hover) !default;
9
- $calendar-color-font-black: #1b1e23 !default;
10
- $calendar-color-border-primary: #767676 !default;
11
- $calendar-color-border-secondary: #dddddd !default;
12
- $calendar-color-border-tertiary: #adadad !default;
13
- $calendar-color-monthitem-circle: #ccc !default;
14
- $calendar-color-dayitem-line: #99a2a2 !default;
15
- $calendar-color-link: var(--f-text-color-link) !default;
16
- $calendar-color-button-icon: var(--f-icon-color-primary) !default;
17
- $calendar-color-tabs-selected: var(--f-background-tab-active) !default;
18
- $calendar-color-tabs-unselected: var(--f-background-tab-inactive) !default;
19
- $calendar-font-size: var(--f-font-size-standard) !default;
20
- $calendar-font-size-small: 0.875rem !default;
21
- $calendar-font-size-big: 1.125rem !default;
22
- $calendar-font-size-added-day: 3rem !default;
23
- $calendar-size-addedday-padding: 2.5rem !default;
24
- $calendar-size-day: 2.75rem !default;
25
- $calendar-size-day-responsive: 15% !default;
26
- $calendar-size-number-circle: 1.6rem !default;
27
- $calendar-size-month-item: 33% !default;
28
- $calendar-size-padding: 0.25rem !default;
29
- $calendar-size-padding-period: 1rem !default;
30
- $calendar-size-padding-editbox: 1rem !default;
31
- $calendar-size-padding-navbar: 0.5rem !default;
32
- $calendar-size-calendar-margin-day: 0.05rem !default;
33
- $calendar-size-calendar-margin-month: 0.25rem !default;
34
- $calendar-size-tab-height: 4rem !default;
35
- $calendar-size-addedmonth-padding: 0.75rem !default;
36
- $calendar-size-daycount-padding: 1.5rem !default;
37
- $calendar-border-size: 1px !default;
38
- $calendar-editbox-border-size: 2px !default;
39
- $calendar-editbox-border-size-arrow: calc(#{$calendar-editbox-border-size} + 1px) !default;
40
- $calendar-border-size-middle: 2px !default;
41
- $calendar-border-size-item: 2px !default;
42
- $calendar-border-size-radius: 6px !default;
43
- $calendar-arrow-size: 1.75rem !default;
44
- $calendar-device-sm: 460px !default;
45
-
46
- #{$CALENDAR_SELECTOR} {
47
- font-size: $calendar-font-size;
48
- display: inline-block;
49
- width: 100%;
50
- max-width: 27.5rem;
51
-
52
- &__container {
53
- background: $calendar-color-background-secondary;
54
- margin-bottom: 1.5rem;
55
- }
56
-
57
- button:focus {
58
- z-index: 2;
59
- }
60
-
61
- &__tabs {
62
- position: relative;
63
- height: $calendar-size-tab-height;
64
- padding: 0;
65
- margin: 0;
66
- list-style: none;
67
-
68
- &-tab {
69
- width: calc(50% + #{$calendar-border-size});
70
- color: $calendar-color-button-icon;
71
- font-size: $calendar-font-size;
72
- font-weight: bold;
73
- border: $calendar-border-size solid $calendar-color-border-primary;
74
- height: 100%;
75
- position: absolute;
76
- background: $calendar-color-tabs-unselected;
77
- .button__icon {
78
- width: #{$calendar-arrow-size};
79
- height: #{$calendar-arrow-size};
80
- margin-right: calc(#{$calendar-font-size} / 2);
81
- }
82
-
83
- .button__icon,
84
- span {
85
- display: inline-block;
86
- vertical-align: middle;
87
- }
88
-
89
- span {
90
- max-width: 7rem;
91
- text-align: left;
92
- }
93
-
94
- &--left {
95
- left: 0;
96
- box-shadow: inset -3px -1px 5px $calendar-color-border-tertiary;
97
- }
98
- &--right {
99
- right: 0;
100
- box-shadow: inset 3px -1px 5px $calendar-color-border-tertiary;
101
- }
102
-
103
- &--selected {
104
- background: $calendar-color-tabs-selected;
105
- z-index: 1;
106
- border-bottom: 0;
107
- box-shadow: unset;
108
- }
109
- }
110
- }
111
-
112
- &__period {
113
- border: $calendar-border-size solid $calendar-color-border-primary;
114
- border-top: 0;
115
- padding: $calendar-size-padding-period;
116
- }
117
-
118
- &__navbar {
119
- text-align: center;
120
- border-right: $calendar-border-size solid $calendar-color-border-primary;
121
- border-left: $calendar-border-size solid $calendar-color-border-primary;
122
- border-bottom-color: $calendar-color-border-secondary;
123
- position: relative;
124
-
125
- button,
126
- .button {
127
- font-size: 100%;
128
- border: 0;
129
- background-color: transparent;
130
-
131
- &:hover,
132
- &:focus {
133
- color: $calendar-color-border-primary;
134
- background-color: transparent;
135
- }
136
- }
137
-
138
- &-middle {
139
- padding: calc(#{$calendar-size-padding-navbar} * 2);
140
- position: relative;
141
- color: $calendar-color-link;
142
-
143
- span {
144
- font-size: $calendar-font-size-big;
145
- font-weight: bold;
146
- border-bottom: $calendar-border-size-middle solid;
147
- padding-bottom: $calendar-border-size-middle;
148
- transition: all 0.15s ease-in-out;
149
-
150
- &:hover {
151
- padding-bottom: calc(#{$calendar-border-size-middle} * 2);
152
- }
153
- }
154
- }
155
-
156
- &-arrow {
157
- color: $calendar-color-border-primary;
158
- position: absolute;
159
- padding: 0 $calendar-size-padding-navbar;
160
- height: 100%;
161
-
162
- span,
163
- .button__icon {
164
- display: inline-block;
165
- vertical-align: middle;
166
- }
167
-
168
- .button__icon {
169
- color: $calendar-color-button-icon;
170
- width: #{$calendar-arrow-size};
171
- height: #{$calendar-arrow-size};
172
- }
173
-
174
- &--left {
175
- left: 0;
176
- text-align: left;
177
-
178
- .button__icon {
179
- transform: rotate(180deg);
180
- }
181
- }
182
-
183
- &--right {
184
- right: 0;
185
- text-align: right;
186
- }
187
- }
188
- }
189
-
190
- &__monthview,
191
- &__yearview {
192
- padding: $calendar-size-padding;
193
- border: $calendar-border-size solid $calendar-color-border-primary;
194
- border-top: 0;
195
- }
196
-
197
- &__row {
198
- display: flex;
199
- button,
200
- .button {
201
- &:focus,
202
- &:hover {
203
- color: #1b1e23;
204
- }
205
-
206
- &:focus {
207
- background-color: $calendar-color-background-primary;
208
- }
209
-
210
- &:hover {
211
- background-color: $calendar-color-background-hover;
212
- }
213
-
214
- &.calendar__item--added {
215
- &:focus {
216
- background-color: $calendar-color-highlight-primary;
217
- color: $calendar-color-background-primary;
218
- }
219
- }
220
-
221
- &.calendar__item--selected {
222
- &:focus {
223
- background-color: #fff;
224
- color: $calendar-color-highlight-primary;
225
- }
226
- }
227
-
228
- &.calendar__item--added,
229
- &.calendar__item--selected {
230
- &:hover {
231
- background-color: $calendar-color-background-hover;
232
- color: $calendar-color-highlight-primary;
233
- }
234
- }
235
- }
236
- }
237
-
238
- &__item {
239
- height: $calendar-size-day;
240
- width: $calendar-size-day-responsive;
241
- margin: $calendar-size-calendar-margin-day;
242
- padding: 0;
243
- border: $calendar-border-size-item solid transparent;
244
- }
245
-
246
- &__item--week {
247
- background-color: transparent;
248
- border: 0 solid transparent;
249
- font-size: $calendar-font-size;
250
- text-align: center;
251
- line-height: $calendar-size-day;
252
- }
253
-
254
- &__item--date {
255
- color: $calendar-color-font-black;
256
- background-color: $calendar-color-background-primary;
257
- font-weight: bold;
258
- font-size: $calendar-font-size;
259
- position: relative;
260
-
261
- &:hover {
262
- background-color: $calendar-color-background-hover;
263
- }
264
- }
265
-
266
- &__item--today {
267
- .calendar__item__number {
268
- background: $calendar-color-today;
269
- color: $calendar-color-background-primary;
270
- display: inline-block;
271
- width: $calendar-size-number-circle;
272
- line-height: $calendar-size-number-circle;
273
- border-radius: $calendar-size-number-circle;
274
- }
275
-
276
- &.calendar__item--added,
277
- &.calendar__item--selected {
278
- .calendar__item__number {
279
- width: calc(#{$calendar-size-number-circle} + 0.2rem);
280
- }
281
- }
282
-
283
- &.calendar__item--added .calendar__item__number {
284
- background: $calendar-color-highlight-primary;
285
- border: $calendar-border-size-item solid $calendar-color-background-secondary;
286
- }
287
-
288
- &.calendar__item--selected .calendar__item__number {
289
- background: $calendar-color-background-secondary;
290
- color: $calendar-color-highlight-primary;
291
- border: $calendar-border-size-item solid $calendar-color-highlight-primary;
292
- }
293
- }
294
-
295
- &__item--added {
296
- background-color: $calendar-color-highlight-primary;
297
- color: $calendar-color-background-primary;
298
-
299
- &:hover {
300
- border-color: $calendar-color-highlight-primary;
301
- color: $calendar-color-highlight-primary;
302
- }
303
- }
304
-
305
- &__item--selected {
306
- background-color: $calendar-color-background-secondary;
307
- border-color: $calendar-color-highlight-primary;
308
- color: $calendar-color-highlight-primary;
309
- }
310
-
311
- &__item--disabled {
312
- color: $calendar-color-border-primary;
313
- cursor: not-allowed;
314
-
315
- &::before {
316
- content: "";
317
- position: absolute;
318
- border-top: $calendar-border-size-item solid $calendar-color-dayitem-line;
319
- top: 50%;
320
- margin-left: 25%;
321
- width: 50%;
322
- left: 0;
323
- }
324
- }
325
-
326
- &__item--disabled:hover {
327
- background-color: $calendar-color-background-primary;
328
- }
329
-
330
- &__editbox {
331
- border: $calendar-editbox-border-size solid $calendar-color-border-primary;
332
- border-radius: $calendar-border-size-radius;
333
- position: relative;
334
- background-color: white;
335
- margin-bottom: 1.5rem;
336
-
337
- &::before,
338
- &::after {
339
- content: "";
340
- display: block;
341
- position: absolute;
342
- left: calc(50% - 1rem);
343
- width: 0;
344
- height: 0;
345
- border: $calendar-size-padding-editbox solid transparent;
346
- }
347
-
348
- &::before {
349
- bottom: 100%;
350
- border-bottom-color: $calendar-color-border-primary;
351
- }
352
-
353
- &::after {
354
- bottom: calc(100% - #{$calendar-editbox-border-size-arrow});
355
- border-bottom-color: $calendar-color-background-secondary;
356
- }
357
-
358
- &-header {
359
- text-align: center;
360
- border-bottom: $calendar-border-size solid $calendar-color-border-primary;
361
- padding: 1.5rem;
362
- }
363
-
364
- &-content {
365
- padding: $calendar-size-padding-editbox;
366
- }
367
- }
368
-
369
- &-submit-button {
370
- margin-top: calc(#{$calendar-size-padding-editbox} * 2);
371
- margin-bottom: $calendar-size-padding-editbox;
372
- }
373
-
374
- &__month-item {
375
- color: $calendar-color-font-black;
376
- background-color: $calendar-color-background-primary;
377
- border: $calendar-border-size-item solid transparent;
378
- font-weight: bold;
379
- font-size: $calendar-font-size-small;
380
- width: $calendar-size-month-item;
381
- height: $calendar-size-day;
382
- margin: $calendar-size-calendar-margin-month;
383
- padding: $calendar-size-padding calc(#{$calendar-size-padding} * 2);
384
- display: inline-block;
385
- text-align: left;
386
-
387
- &:hover {
388
- background-color: $calendar-color-background-hover;
389
- }
390
- }
391
-
392
- &__month-item--name {
393
- float: left;
394
- text-align: center;
395
- line-height: $calendar-size-number-circle;
396
-
397
- &-sm {
398
- display: none;
399
- }
400
- }
401
-
402
- &__month-item--days {
403
- float: right;
404
- background: $calendar-color-monthitem-circle;
405
- text-align: center;
406
- width: $calendar-size-number-circle;
407
- line-height: $calendar-size-number-circle;
408
- border-radius: $calendar-size-number-circle;
409
- }
410
-
411
- &__month-item--has-days {
412
- border: $calendar-border-size-item solid $calendar-color-highlight-primary;
413
- color: $calendar-color-highlight-primary;
414
-
415
- .calendar__month-item--days {
416
- background: $calendar-color-highlight-primary;
417
- color: white;
418
- }
419
- }
420
-
421
- &__addedmonth-wrapper {
422
- background-color: $calendar-color-background-secondary;
423
- border-radius: $calendar-border-size-radius;
424
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
425
- }
426
-
427
- &__addedmonth {
428
- border-top: $calendar-border-size solid $calendar-color-border-primary;
429
- &-header {
430
- display: flex;
431
- flex-wrap: wrap;
432
- padding: 0.5rem;
433
- &-edit {
434
- margin-left: auto;
435
- }
436
-
437
- &-expand {
438
- margin-right: auto;
439
- font-size: 1rem;
440
- background: none;
441
- border: none;
442
- cursor: pointer;
443
-
444
- &:hover,
445
- &:focus {
446
- background-color: #fff;
447
- }
448
- }
449
-
450
- &-expand-icon {
451
- display: inline-block;
452
- position: relative;
453
- width: 2rem;
454
- height: 2rem;
455
- border-radius: 50%;
456
- background-color: $calendar-color-highlight-primary;
457
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
458
-
459
- &::before,
460
- &::after {
461
- content: " ";
462
- display: block;
463
- position: absolute;
464
- top: 50%;
465
- left: 50%;
466
- transform: translate(-50%, -50%);
467
- background-color: #fff;
468
- }
469
-
470
- &::before {
471
- width: 1rem;
472
- height: 0.125rem;
473
- transition: all 0.5s ease;
474
- }
475
-
476
- &::after {
477
- width: 1rem;
478
- height: 0.125rem;
479
- }
480
- }
481
-
482
- &-expand-text {
483
- color: $calendar-color-font-black;
484
- display: inline-block;
485
- font-weight: normal;
486
- padding-left: $calendar-size-padding;
487
- text-align: left;
488
- }
489
-
490
- &-expand-days {
491
- display: block;
492
- font-weight: bold;
493
- }
494
- }
495
-
496
- &-collapsable {
497
- display: block;
498
- height: auto;
499
- transition: height 0.4s cubic-bezier(0.46, 0.03, 0.52, 0.96);
500
- }
501
-
502
- &--collapsed {
503
- .calendar__addedmonth-header-expand-icon::before {
504
- transform: translate(-50%, -50%) rotate(90deg);
505
- }
506
-
507
- .calendar__addedmonth-collapsable {
508
- overflow: hidden;
509
- height: 0;
510
- }
511
- }
512
-
513
- .button--discrete {
514
- margin-bottom: 0;
515
- }
516
-
517
- .button__icon {
518
- color: $calendar-color-link;
519
- }
520
- }
521
-
522
- &__addedmonth:first-child {
523
- border-top: none;
524
- }
525
-
526
- &__addedsummary {
527
- margin-bottom: size.$margin-150;
528
-
529
- &-days {
530
- text-align: center;
531
- background-color: $calendar-color-background-secondary;
532
- padding: size.$padding-150;
533
- margin-bottom: size.$margin-150;
534
- border-radius: $calendar-border-size-radius;
535
- font-size: $calendar-font-size-big;
536
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
537
- }
538
- }
539
-
540
- &__addedday {
541
- border-top: $calendar-border-size solid $calendar-color-border-tertiary;
542
- position: relative;
543
- width: 100%;
544
- display: flex;
545
-
546
- &-date {
547
- background-color: $calendar-color-background-primary;
548
- color: $calendar-color-highlight-primary;
549
- text-align: center;
550
- padding: 10px;
551
- min-width: 90px;
552
-
553
- &-day {
554
- font-weight: bold;
555
- font-size: $calendar-font-size-added-day;
556
- }
557
- }
558
-
559
- &-content {
560
- padding: 0.5rem;
561
- display: flex;
562
- flex-direction: column;
563
- justify-content: space-between;
564
- }
565
-
566
- &-text {
567
- margin-bottom: 1rem;
568
- }
569
- }
570
-
571
- &__addedmonth-collapsable > div:first-child .calendar__addedday {
572
- border-top: $calendar-border-size solid $calendar-color-border-primary;
573
- }
574
-
575
- &__collapsed {
576
- visibility: hidden;
577
- }
578
-
579
- @media (max-width: $calendar-device-sm) {
580
- &__tabs {
581
- height: calc(#{$calendar-size-tab-height} + 1rem);
582
-
583
- &-tab {
584
- span {
585
- text-align: center;
586
- }
587
- }
588
- }
589
-
590
- &__monthview,
591
- &__yearview {
592
- padding: 0;
593
- }
594
-
595
- &__item--week:first-child {
596
- display: none;
597
- }
598
-
599
- &__month-item--name-lg {
600
- display: none;
601
- }
602
- &__month-item--name-sm {
603
- display: inline-block;
604
- }
605
- }
606
-
607
- @media (max-width: 355px) {
608
- &__tabs {
609
- height: calc(#{$calendar-size-tab-height} + 2rem);
610
- }
611
-
612
- &__navbar-arrow--month {
613
- span {
614
- display: none;
615
- }
616
- }
617
- }
618
-
619
- &--hide-tabs {
620
- #{$CALENDAR_SELECTOR}__tabs {
621
- display: none;
622
- }
623
-
624
- #{$CALENDAR_SELECTOR}__navbar {
625
- border-top: $calendar-border-size solid $calendar-color-border-primary;
626
- }
627
- }
628
- }