@appscode/design-system 1.0.3-alpha.7 → 1.0.43-alpha.100

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 (112) hide show
  1. package/base/utilities/_default.scss +298 -23
  2. package/base/utilities/_derived-variables.scss +2 -15
  3. package/base/utilities/_initial-variables.scss +99 -64
  4. package/base/utilities/_mixin.scss +90 -10
  5. package/base/utilities/_typography.scss +23 -7
  6. package/base/utilities/dark-theme.scss +25 -0
  7. package/components/_ac-accordion.scss +1 -0
  8. package/components/_ac-alert-box.scss +47 -11
  9. package/components/_ac-card.scss +55 -20
  10. package/components/_ac-code-highlight.scss +7 -1
  11. package/components/_ac-content-layout.scss +4 -4
  12. package/components/_ac-drag.scss +6 -6
  13. package/components/_ac-input.scss +140 -38
  14. package/components/_ac-modal.scss +5 -4
  15. package/components/_ac-multi-select.scss +220 -18
  16. package/components/_ac-options.scss +31 -16
  17. package/components/_ac-select-box.scss +15 -5
  18. package/components/_ac-table.scss +88 -47
  19. package/components/_ac-tabs.scss +72 -23
  20. package/components/_ac-tags.scss +2 -2
  21. package/components/_ac-terminal.scss +272 -0
  22. package/components/_app-drawer.scss +6 -6
  23. package/components/_breadcumb.scss +8 -3
  24. package/components/_buttons.scss +86 -33
  25. package/components/_card-body-wrapper.scss +3 -3
  26. package/components/_dashboard-header.scss +1 -1
  27. package/components/_direct-deploy.scss +69 -0
  28. package/components/_go-to-top.scss +1 -1
  29. package/components/_graph.scss +45 -0
  30. package/components/_image-upload.scss +6 -4
  31. package/components/_left-sidebar-menu.scss +206 -46
  32. package/components/_monaco-editor.scss +1 -1
  33. package/components/_navbar.scss +104 -27
  34. package/components/_overview-info.scss +4 -4
  35. package/components/_overview-page.scss +1 -2
  36. package/components/_pagination.scss +45 -7
  37. package/components/_payment-card.scss +28 -12
  38. package/components/_preloader.scss +1 -1
  39. package/components/_preview-modal.scss +8 -8
  40. package/components/_pricing-table.scss +1 -1
  41. package/components/_progress-bar.scss +5 -5
  42. package/components/_subscription-card.scss +15 -8
  43. package/components/_table-of-content.scss +1 -1
  44. package/components/_tfa.scss +69 -0
  45. package/components/_widget-menu.scss +9 -9
  46. package/components/_wizard.scss +32 -20
  47. package/components/ac-toaster/_ac-toasted.scss +40 -8
  48. package/components/bbum/_card-team.scss +18 -10
  49. package/components/bbum/_information-center.scss +19 -5
  50. package/components/bbum/_mobile-desktop.scss +6 -6
  51. package/components/bbum/_post.scss +5 -4
  52. package/components/bbum/_sign-up-notification.scss +6 -6
  53. package/components/bbum/_single-post-preview.scss +9 -9
  54. package/components/bbum/_user-profile.scss +97 -90
  55. package/components/ui-builder/_ui-builder.scss +31 -12
  56. package/components/ui-builder/_vue-open-api.scss +98 -0
  57. package/layouts/_404.scss +159 -0
  58. package/layouts/_code-preview.scss +14 -6
  59. package/main.scss +4 -0
  60. package/package.json +2 -7
  61. package/plugins/theme.js +142 -0
  62. package/plugins/vue-toaster.js +7 -6
  63. package/vue-components/v2/card/CardContent.vue +5 -0
  64. package/vue-components/v2/card/CardHeader.vue +12 -0
  65. package/vue-components/v2/card/OverviewCard.vue +10 -0
  66. package/vue-components/v2/card/OverviewCards.vue +5 -0
  67. package/vue-components/v2/card/PaymentCards.vue +16 -10
  68. package/vue-components/v2/content/ContentHeader.vue +1 -1
  69. package/vue-components/v2/editor/Editor.vue +37 -17
  70. package/vue-components/v2/header/Header.vue +0 -1
  71. package/vue-components/v2/modal/Modal.vue +32 -14
  72. package/vue-components/v2/modals/JsonShowModal.vue +0 -1
  73. package/vue-components/v2/navbar/Appdrawer.vue +9 -6
  74. package/vue-components/v2/navbar/ThemeMode.vue +120 -0
  75. package/vue-components/v2/pagination/Pagination.vue +8 -1
  76. package/vue-components/v2/preloader/Preloader.vue +5 -5
  77. package/vue-components/v2/sidebar/ClusterSwitcher.vue +126 -0
  78. package/vue-components/v2/sidebar/SidebarItem.vue +24 -2
  79. package/vue-components/v2/table/InfoTable.vue +13 -3
  80. package/vue-components/v2/table/Table.vue +75 -5
  81. package/vue-components/v2/table/TableRow.vue +17 -8
  82. package/vue-components/v2/table/table-cell/CellValue.vue +10 -1
  83. package/vue-components/v2/tabs/EditorTabs.vue +1 -1
  84. package/vue-components/v3/button/Button.vue +73 -0
  85. package/vue-components/v3/content/ContentHeader.vue +54 -0
  86. package/vue-components/v3/content/ContentTable.vue +65 -0
  87. package/vue-components/v3/dropdown/DropdownDivider.vue +3 -0
  88. package/vue-components/v3/dropdown/DropdownItem.vue +5 -0
  89. package/vue-components/v3/dropdown/DropdownMenu.vue +111 -0
  90. package/vue-components/v3/editor/Editor.vue +157 -0
  91. package/vue-components/v3/form-fields/Input.vue +21 -0
  92. package/vue-components/v3/header/Header.vue +45 -0
  93. package/vue-components/v3/modal/Modal.vue +135 -0
  94. package/vue-components/v3/modals/JsonShowModal.vue +87 -0
  95. package/vue-components/v3/navbar/Appdrawer.vue +63 -0
  96. package/vue-components/v3/navbar/ThemeMode.vue +128 -0
  97. package/vue-components/v3/navbar/User.vue +64 -0
  98. package/vue-components/v3/pagination/Pagination.vue +159 -0
  99. package/vue-components/v3/searchbars/SearchBar.vue +47 -0
  100. package/vue-components/v3/sidebar/ClusterSwitcher.vue +133 -0
  101. package/vue-components/v3/tab/TabItem.vue +17 -0
  102. package/vue-components/v3/table/FakeTableCell.vue +39 -0
  103. package/vue-components/v3/table/InfoTable.vue +105 -0
  104. package/vue-components/v3/table/Table.vue +238 -0
  105. package/vue-components/v3/table/TableCell.vue +28 -0
  106. package/vue-components/v3/table/TableRow.vue +60 -0
  107. package/vue-components/v3/table/table-cell/ArrayCell.vue +111 -0
  108. package/vue-components/v3/table/table-cell/CellValue.vue +117 -0
  109. package/vue-components/v3/table/table-cell/ObjectCell.vue +105 -0
  110. package/vue-components/v3/table/table-cell/ValueWithModal.vue +43 -0
  111. package/vue-components/v3/tabs/EditorTabs.vue +36 -0
  112. package/vue-components/v3/tag/Tag.vue +17 -0
@@ -2,7 +2,7 @@
2
2
  // margin-top: 3px;
3
3
  &.cluster-select {
4
4
  .multiselect__tags {
5
- border: 1px solid $ac-grey-lightest;
5
+ border: 1px solid $ac-gray-lightest;
6
6
  background-color: $table-header;
7
7
 
8
8
  .multiselect__input {
@@ -17,7 +17,7 @@
17
17
  font-weight: 500;
18
18
  width: 100%;
19
19
  border-radius: 4px;
20
- border: 1px solid $ac-border;
20
+ border: 1px solid $ac-label-text;
21
21
  padding: 6px 30px 8px 20px;
22
22
  font-size: $font-size-small;
23
23
 
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .multiselect__tag {
38
- background-color: $ac-border-hover;
38
+ background-color: $dark-bg-light;
39
39
  margin-top: 4px;
40
40
  margin-bottom: 0;
41
41
 
@@ -47,7 +47,12 @@
47
47
  }
48
48
 
49
49
  &:hover {
50
- background-color: darken($color: $ac-primary, $amount: 9);
50
+ background-color: hsla(
51
+ var(--hsl-hue),
52
+ var(--hsl-saturation),
53
+ calc(var(--hsl-lightness) - 9%),
54
+ 1
55
+ );
51
56
  }
52
57
  }
53
58
  }
@@ -80,6 +85,7 @@
80
85
  font-size: $font-size-small;
81
86
  p {
82
87
  font-size: 13px;
88
+ color: $ac-color-text;
83
89
  }
84
90
  a {
85
91
  display: block;
@@ -91,16 +97,31 @@
91
97
  }
92
98
 
93
99
  &:hover {
94
- background-color: scale-color($color: $ac-primary, $lightness: 80%);
100
+ background-color: hsla(
101
+ var(--hsl-hue),
102
+ var(--hsl-saturation),
103
+ var(--hsl-lightness),
104
+ 0.2
105
+ );
95
106
  color: $ac-primary;
96
107
  }
97
108
 
98
109
  &.multiselect__option--highlight {
99
- background-color: scale-color($color: $ac-primary, $lightness: 80%);
110
+ background-color: hsla(
111
+ var(--hsl-hue),
112
+ var(--hsl-saturation),
113
+ var(--hsl-lightness),
114
+ 0.2
115
+ );
100
116
  color: $ac-primary;
101
117
 
102
118
  &:after {
103
- background-color: scale-color($color: $ac-primary, $lightness: 80%);
119
+ background-color: hsla(
120
+ var(--hsl-hue),
121
+ var(--hsl-saturation),
122
+ var(--hsl-lightness),
123
+ 0.2
124
+ );
104
125
  color: $ac-primary;
105
126
  }
106
127
  }
@@ -130,12 +151,12 @@
130
151
  label {
131
152
  padding-left: 15px !important;
132
153
  font-size: $font-size-small !important;
133
- color: #323232 !important;
154
+ color: $ac-color-text !important;
134
155
 
135
156
  &:after {
136
157
  position: inherit !important;
137
158
  content: "" !important;
138
- background: transparent;
159
+ background-color: transparent;
139
160
  }
140
161
  }
141
162
  }
@@ -143,7 +164,7 @@
143
164
 
144
165
  .multiselect__input {
145
166
  &::placeholder {
146
- color: #9b7575;
167
+ color: $ac-color-value;
147
168
  font-weight: 400;
148
169
  line-height: 1.6;
149
170
  font-size: $font-size-small;
@@ -196,7 +217,7 @@
196
217
  font-size: $font-size-extra-small;
197
218
  top: -9px;
198
219
  font-weight: 500;
199
- color: #000;
220
+ color: $ac-black;
200
221
  }
201
222
  }
202
223
 
@@ -364,7 +385,7 @@
364
385
  .multiselect__select {
365
386
  height: calc(100% - 2px);
366
387
  border-radius: 0 4px 4px 0;
367
- background: transparent !important;
388
+ background-color: transparent !important;
368
389
  }
369
390
 
370
391
  label {
@@ -372,7 +393,7 @@
372
393
  left: 20px;
373
394
  top: 11px;
374
395
  cursor: text;
375
- color: $ac-border;
396
+ color: $ac-label-text;
376
397
  position: absolute;
377
398
  z-index: 99;
378
399
  transition: 0.3s ease-in-out;
@@ -390,10 +411,10 @@
390
411
  left: 15px;
391
412
  padding: 0 5px;
392
413
  font-size: $font-size-small;
393
- color: #000;
414
+ color: $ac-black;
394
415
 
395
416
  &::after {
396
- background: $ac-white;
417
+ background-color: $ac-white;
397
418
  }
398
419
  }
399
420
 
@@ -402,7 +423,7 @@
402
423
  content: "";
403
424
  left: 0;
404
425
  top: 50%;
405
- background: $ac-white;
426
+ background-color: $ac-white;
406
427
  width: 100%;
407
428
  height: 2px;
408
429
  margin-top: -1px;
@@ -419,6 +440,7 @@
419
440
  li {
420
441
  .multiselect__option {
421
442
  font-size: 13px;
443
+ color: $ac-color-text;
422
444
  }
423
445
  }
424
446
  .multiselect__option--selected {
@@ -448,7 +470,7 @@ li {
448
470
 
449
471
  .button {
450
472
  &.is-information {
451
- background: transparent;
473
+ background-color: transparent;
452
474
  border: none;
453
475
  position: absolute;
454
476
  right: 0;
@@ -460,7 +482,7 @@ li {
460
482
  &:focus {
461
483
  outline: none;
462
484
  box-shadow: none;
463
- background: #e4e8ef;
485
+ background-color: #e4e8ef;
464
486
  transform: scale(0.8);
465
487
  }
466
488
  }
@@ -469,6 +491,186 @@ li {
469
491
 
470
492
  // has info button end
471
493
 
494
+ // dark theme start
495
+ .is-dark-theme {
496
+ .multiselect__content-wrapper {
497
+ background: var(--dark-bg-light);
498
+ border: 1px solid $ac-white-light;
499
+
500
+ // scroll
501
+ &::-webkit-scrollbar {
502
+ border-radius: 50px;
503
+ width: 3px;
504
+ }
505
+
506
+ &::-moz-scrollbar {
507
+ border-radius: 50px;
508
+ width: 3px;
509
+ }
510
+
511
+ &::-ms-scrollbar {
512
+ border-radius: 50px;
513
+ width: 3px;
514
+ }
515
+
516
+ &::-webkit-scrollbar:hover {
517
+ width: 7px;
518
+ }
519
+
520
+ &::-moz-scrollbar:hover {
521
+ width: 7px;
522
+ }
523
+
524
+ &::-ms-scrollbar:hover {
525
+ width: 7px;
526
+ }
527
+
528
+ &::-webkit-scrollbar-thumb {
529
+ background-color: $dark-bg-light;
530
+ border-radius: 50px;
531
+ height: 2px !important;
532
+ }
533
+
534
+ &::-moz-scrollbar-thumb {
535
+ background-color: $dark-bg-light;
536
+ border-radius: 50px;
537
+ height: 2px !important;
538
+ }
539
+
540
+ &::-ms-scrollbar-thumb {
541
+ background-color: $dark-bg-light;
542
+ border-radius: 50px;
543
+ height: 2px !important;
544
+ }
545
+
546
+ &::-webkit-scrollbar-thumb:hover {
547
+ background-color: $dark-bg-light;
548
+ }
549
+
550
+ &::-moz-scrollbar-thumb:hover {
551
+ background-color: $dark-bg-light;
552
+ }
553
+
554
+ &::-ms-scrollbar-thumb:hover {
555
+ background-color: $dark-bg-light;
556
+ }
557
+
558
+ &:hover::-webkit-scrollbar-corner {
559
+ height: 40px;
560
+ }
561
+
562
+ &:hover::-moz-scrollbar-corner {
563
+ height: 40px;
564
+ }
565
+
566
+ &:hover::-ms-scrollbar-corner {
567
+ height: 40px;
568
+ }
569
+
570
+ // scroll
571
+
572
+ .multiselect__option--selected {
573
+ background: var(--dark-bg);
574
+ color: var(--ac-white-text);
575
+ }
576
+ }
577
+
578
+ .multi-select-wrapper {
579
+ background: var(--dark-bg-light);
580
+
581
+ .multiselect__content-wrapper {
582
+ background-color: var(--dark-bg-light);
583
+ background: var(--dark-bg-light);
584
+
585
+ // scroll
586
+ &::-webkit-scrollbar {
587
+ border-radius: 50px;
588
+ width: 3px;
589
+ }
590
+
591
+ &::-moz-scrollbar {
592
+ border-radius: 50px;
593
+ width: 3px;
594
+ }
595
+
596
+ &::-ms-scrollbar {
597
+ border-radius: 50px;
598
+ width: 3px;
599
+ }
600
+
601
+ &::-webkit-scrollbar:hover {
602
+ width: 7px;
603
+ }
604
+
605
+ &::-moz-scrollbar:hover {
606
+ width: 7px;
607
+ }
608
+
609
+ &::-ms-scrollbar:hover {
610
+ width: 7px;
611
+ }
612
+
613
+ &::-webkit-scrollbar-thumb {
614
+ background-color: $dark-bg-light;
615
+ border-radius: 50px;
616
+ height: 2px !important;
617
+ }
618
+
619
+ &::-moz-scrollbar-thumb {
620
+ background-color: $dark-bg-light;
621
+ border-radius: 50px;
622
+ height: 2px !important;
623
+ }
624
+
625
+ &::-ms-scrollbar-thumb {
626
+ background-color: $dark-bg-light;
627
+ border-radius: 50px;
628
+ height: 2px !important;
629
+ }
630
+
631
+ &::-webkit-scrollbar-thumb:hover {
632
+ background-color: $dark-bg-light;
633
+ }
634
+
635
+ &::-moz-scrollbar-thumb:hover {
636
+ background-color: $dark-bg-light;
637
+ }
638
+
639
+ &::-ms-scrollbar-thumb:hover {
640
+ background-color: $dark-bg-light;
641
+ }
642
+
643
+ &:hover::-webkit-scrollbar-corner {
644
+ height: 40px;
645
+ }
646
+
647
+ &:hover::-moz-scrollbar-corner {
648
+ height: 40px;
649
+ }
650
+
651
+ &:hover::-ms-scrollbar-corner {
652
+ height: 40px;
653
+ }
654
+
655
+ // scroll
656
+
657
+ .multiselect__content .multiselect__element .multiselect__option {
658
+ color: var(--ac-white-text);
659
+ }
660
+
661
+ .multiselect__option--group {
662
+ color: var(--ac-white-text);
663
+ background-color: var(--dark-bg-light);
664
+ }
665
+
666
+ .multiselect__option--selected {
667
+ color: var(--ac-white-text);
668
+ background-color: var(--dark-bg-light);
669
+ }
670
+ }
671
+ }
672
+ }
673
+ // dark theme end
472
674
  /****************************************
473
675
  Responsive Classes
474
676
  *****************************************/
@@ -26,6 +26,8 @@
26
26
  &.is-right {
27
27
  .option-dots {
28
28
  align-items: flex-end;
29
+ padding: 0 10px;
30
+ margin-right: -10px;
29
31
  }
30
32
 
31
33
  .options-items {
@@ -39,51 +41,53 @@
39
41
  cursor: pointer;
40
42
  align-items: flex-start;
41
43
  border: none;
42
- background: transparent;
44
+ background-color: transparent;
43
45
  transition: 0.3 ease-in-out;
46
+
44
47
 
45
48
  &:hover {
46
49
  color: $ac-primary;
47
50
  }
48
51
 
49
52
  span {
50
- width: 5px;
51
- height: 5px;
52
- background: #333;
53
+ width: 4px;
54
+ height: 4px;
55
+ background-color: $ac-color-value;
53
56
  border-radius: 50%;
54
- margin-bottom: 2px;
57
+ margin-bottom: 1px;
55
58
  }
56
59
  }
57
60
 
58
61
  .options-items {
59
- box-shadow: $ac-shadow-1;
60
62
  border-radius: 4px;
61
63
  position: absolute;
62
64
  z-index: 99;
63
- background: $ac-white;
65
+ background-color: $ac-white;
64
66
  min-width: 160px;
65
67
  top: 30px;
68
+ padding: 5px 0;
69
+ border: 1px solid $ac-white-light;
66
70
 
67
71
  li {
68
72
  .list-button {
69
73
  width: 100%;
70
- background: transparent;
74
+ background-color: transparent;
71
75
  border: none;
72
76
  cursor: pointer;
73
77
  font-weight: 400;
74
78
  text-align: left;
75
- color: #333;
79
+ color: $ac-color-value;
76
80
  font-size: $font-size-small;
77
81
  padding: 10px 30px;
78
82
  display: block;
79
83
 
80
84
  &:hover {
81
- background: $ac-primary;
82
- color: $ac-white;
85
+ background-color: $ac-bg-light-gray;
86
+ color: $ac-primary;
83
87
  }
84
88
 
85
89
  span {
86
- background: transparent;
90
+ background-color: transparent;
87
91
 
88
92
  &.icon {
89
93
  margin-right: 5px;
@@ -93,16 +97,27 @@
93
97
 
94
98
  a {
95
99
  font-size: $font-size-small;
96
- padding: 10px 30px;
100
+ padding: 7px 15px;
97
101
  display: block;
98
102
  text-decoration: none !important;
99
- color: #333 !important;
103
+ color: $ac-color-text !important;
104
+ border: none;
100
105
 
101
106
  &:hover {
102
- background-color: $ac-primary;
103
- color: $ac-white !important;
107
+ background-color: $ac-bg-light-gray;
108
+ color: $ac-primary !important;
104
109
  }
105
110
  }
106
111
  }
107
112
  }
108
113
  }
114
+
115
+ // dark theme start
116
+ .is-dark-theme {
117
+ .ac-options {
118
+ .options-items {
119
+ --ac-white: var(--dark-bg-light);
120
+ }
121
+ }
122
+ }
123
+ // dark theme end
@@ -1,7 +1,7 @@
1
1
  .ac-select-box {
2
2
  select {
3
- background: $ac-input-bg-color;
4
- border: 1px solid $ac-border;
3
+ background-color: $ac-blue-light;
4
+ border: 1px solid $ac-label-text;
5
5
  font-size: $font-size-small;
6
6
  height: 42px;
7
7
  padding-left: 20px;
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &:hover {
14
- border: 1px solid $ac-border-hover;
14
+ border: 1px solid $ac-gray-lightest;
15
15
  }
16
16
 
17
17
  &:focus {
@@ -29,11 +29,21 @@
29
29
 
30
30
  &.select:not(.is-multiple):not(.is-loading)::after {
31
31
  top: 50%;
32
- margin-top: -2px;
32
+ margin-top: 0px;
33
33
  }
34
34
  }
35
35
 
36
36
  &.select:not(.is-multiple):not(.is-loading)::after {
37
- border-color: $ac-border;
37
+ border-color: $ac-label-text;
38
+ }
39
+ }
40
+
41
+ .is-dark-theme {
42
+ .select {
43
+ select {
44
+ background-color: $dark-bg-light;
45
+ color: $ac-full-white;
46
+ border: 1px solid $ac-white-light;
47
+ }
38
48
  }
39
49
  }