@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
@@ -72,7 +72,7 @@
72
72
  font-size: $font-size-small;
73
73
  padding: 4px 7px;
74
74
  height: 30px;
75
- background: $ac-white;
75
+ background-color: $ac-white;
76
76
  padding-right: 30px;
77
77
 
78
78
  &[type="password"] {
@@ -92,6 +92,7 @@
92
92
  }
93
93
  }
94
94
  }
95
+
95
96
  &.is-normal {
96
97
  input {
97
98
  height: 45px;
@@ -109,7 +110,7 @@
109
110
  }
110
111
 
111
112
  span.eye i.fa {
112
- padding: 10px;
113
+ padding: 14px 10px;
113
114
  }
114
115
 
115
116
  .ac-search-button {
@@ -117,13 +118,15 @@
117
118
  }
118
119
 
119
120
  label {
120
- top: 8px;
121
+ top: 13px;
121
122
  font-size: $font-size-small;
122
123
 
123
124
  &.show-label {
124
125
  font-size: 12px;
126
+ color: $ac-color-value;
125
127
  top: -9px;
126
128
  font-weight: 500;
129
+ background-color: $ac-white;
127
130
  }
128
131
  }
129
132
 
@@ -137,6 +140,7 @@
137
140
  }
138
141
  }
139
142
  }
143
+
140
144
  &.is-small {
141
145
  input {
142
146
  height: 36px;
@@ -164,11 +168,20 @@
164
168
  label {
165
169
  top: 8px;
166
170
  font-size: $font-size-small;
171
+ &.switch-label {
172
+ top: 0;
173
+ }
167
174
 
168
175
  &.show-label {
169
176
  font-size: 12px;
170
177
  top: -9px;
171
178
  font-weight: 500;
179
+ color: $ac-color-value;
180
+ &.is-required{
181
+ &:after{
182
+ width: calc(100% + 10px);
183
+ }
184
+ }
172
185
  }
173
186
  }
174
187
 
@@ -182,6 +195,7 @@
182
195
  }
183
196
  }
184
197
  }
198
+
185
199
  &.is-extra-small {
186
200
  input {
187
201
  height: 32px;
@@ -209,6 +223,9 @@
209
223
  label {
210
224
  top: 8px;
211
225
  font-size: $font-size-small;
226
+ &.switch-label {
227
+ top: 0;
228
+ }
212
229
 
213
230
  &.show-label {
214
231
  font-size: 12px;
@@ -226,13 +243,14 @@
226
243
  }
227
244
  }
228
245
  }
246
+
229
247
  &:last-child {
230
248
  margin-bottom: 0;
231
249
  }
232
250
 
233
251
  &.is-dark {
234
252
  input {
235
- background: $ac-bg-dark;
253
+ background-color: $ac-color-heading;
236
254
  border-color: transparent;
237
255
  color: $ac-white;
238
256
 
@@ -253,7 +271,7 @@
253
271
  left: 15px;
254
272
  top: 11px;
255
273
  cursor: text;
256
- color: $ac-border;
274
+ color: $ac-label-text;
257
275
  position: absolute;
258
276
  z-index: 2;
259
277
  transition: 0.3s ease-in-out;
@@ -273,14 +291,14 @@
273
291
  left: 10px;
274
292
  padding: 0 5px;
275
293
  font-size: $font-size-small;
276
- color: $ac-black;
294
+ color: $ac-color-value;
277
295
 
278
296
  &:after {
279
297
  position: absolute;
280
298
  content: "";
281
299
  left: 0;
282
300
  top: 50%;
283
- background: $ac-white;
301
+ background-color: $ac-white;
284
302
  width: 100%;
285
303
  height: 2px;
286
304
  margin-top: -1px;
@@ -297,7 +315,7 @@
297
315
 
298
316
  .button {
299
317
  &.is-information {
300
- background: transparent;
318
+ background-color: transparent;
301
319
  border: none;
302
320
  position: absolute;
303
321
  right: 0;
@@ -308,14 +326,14 @@
308
326
  &:focus {
309
327
  outline: none;
310
328
  box-shadow: none;
311
- background: #e4e8ef;
329
+ background-color: #e4e8ef;
312
330
  transform: scale(0.8);
313
331
  }
314
332
  }
315
333
  }
316
334
 
317
335
  .ac-search-button {
318
- background: transparent;
336
+ background-color: transparent;
319
337
  border: none;
320
338
  position: absolute;
321
339
  left: 0;
@@ -323,13 +341,13 @@
323
341
  width: 35px;
324
342
  height: 100%;
325
343
  margin-top: -22.5px;
326
- color: $ac-border;
344
+ color: $ac-label-text;
327
345
  cursor: pointer;
328
346
  }
329
347
 
330
348
  .ac-dropdown-content {
331
349
  position: absolute;
332
- background: $ac-input-bg-color;
350
+ background-color: $ac-blue-light;
333
351
  width: 100%;
334
352
  height: auto;
335
353
  box-shadow: 0px 4px 16px rgba(132, 147, 168, 0.6);
@@ -346,7 +364,12 @@
346
364
  transition: 0.3s;
347
365
 
348
366
  &:hover {
349
- background: scale-color($color: $ac-primary, $lightness: 80%);
367
+ background-color: hsla(
368
+ var(--hsl-hue),
369
+ var(--hsl-saturation),
370
+ var(--hsl-lightness),
371
+ 0.2
372
+ );
350
373
  color: $ac-primary;
351
374
  }
352
375
  }
@@ -355,25 +378,26 @@
355
378
  }
356
379
 
357
380
  .ac-textarea {
358
- border: 1px solid $ac-border;
359
- border-radius: 4px;
360
- padding: 10px 0 5px 0;
361
- // background-color: $ac-input-bg-color;
362
- transition: background-color 0.3s ease-in-out;
363
-
381
+ .ac-label{
382
+ &.is-required{
383
+ &:after{
384
+ width: calc(100% + 10px);
385
+ }
386
+ }
387
+ }
364
388
  textarea {
365
- border: none;
389
+ border: 1px solid $ac-label-text;
366
390
  background-color: transparent;
367
- padding-top: 0;
368
- padding-bottom: 0;
369
-
391
+ padding: 10px 15px;
392
+ min-height: 50px;
370
393
  &.bg-white {
371
394
  background-color: transparent;
372
395
  }
396
+
373
397
 
374
398
  &:focus {
375
399
  outline: none;
376
- border: none;
400
+ border: 1px solid $ac-primary;
377
401
  }
378
402
  }
379
403
  }
@@ -382,22 +406,25 @@
382
406
  .ac-card,
383
407
  textarea {
384
408
  background-color: $ac-white;
409
+ color: $ac-color-text;
385
410
  height: 45px;
386
411
  font-weight: 400;
387
412
  width: 100%;
388
413
  border-radius: 4px;
389
- border: 1px solid $ac-border;
414
+ border: 1px solid $ac-label-text;
390
415
  padding: 8px 15px;
391
416
  font-size: $font-size-small;
392
417
 
393
418
  &:hover {
394
- border-color: $ac-border-hover;
419
+ border-color: $ac-gray-lightest;
395
420
  }
396
421
 
397
422
  &.bg-white {
398
423
  background-color: $ac-white;
399
424
  }
400
-
425
+ &.StripeElement--focus {
426
+ border: 1px solid $ac-primary;
427
+ }
401
428
  &:focus {
402
429
  border: 1px solid $ac-primary;
403
430
  outline: none;
@@ -434,11 +461,12 @@
434
461
 
435
462
  span.eye {
436
463
  i.fa {
437
- color: $ac-border;
464
+ color: $ac-label-text;
438
465
  position: absolute;
439
466
  cursor: pointer;
440
467
  padding: 15px;
441
468
  right: 0;
469
+ top: 0;
442
470
  }
443
471
  }
444
472
 
@@ -473,7 +501,7 @@
473
501
  top: 10px;
474
502
  z-index: 1;
475
503
  font-size: $font-size-small;
476
- color: $ac-border;
504
+ color: $ac-label-text;
477
505
  font-weight: 400;
478
506
  }
479
507
  }
@@ -493,11 +521,11 @@
493
521
  }
494
522
 
495
523
  label {
496
- background-color: $ac-input-bg-color;
524
+ background-color: transparent;
497
525
  height: 36px;
498
526
  font-weight: 400;
499
527
  border-radius: 4px;
500
- border: 1px solid $ac-border;
528
+ border: 1px solid $ac-label-text;
501
529
  font-size: $font-size-small;
502
530
 
503
531
  .file-cta {
@@ -506,7 +534,7 @@
506
534
  }
507
535
 
508
536
  &:hover {
509
- border-color: $ac-border-hover;
537
+ border-color: $ac-gray-lightest;
510
538
  }
511
539
 
512
540
  &.bg-white {
@@ -521,6 +549,23 @@
521
549
  }
522
550
  }
523
551
 
552
+ input#captcha {
553
+ background-color: $ac-white;
554
+ height: 36px;
555
+ font-weight: 400;
556
+ width: 100%;
557
+ border-radius: 4px;
558
+ border: 1px solid $ac-white-light;
559
+ padding: 8px 15px;
560
+ font-size: 13px;
561
+ transition: background-color 0.3s ease-in-out;
562
+
563
+ &:focus {
564
+ outline: none;
565
+ border-bottom: 1px solid $ac-label-text;
566
+ }
567
+ }
568
+
524
569
  // AC-Checkbox
525
570
  .ac-single-checkbox {
526
571
  .is-checkradio {
@@ -541,7 +586,7 @@
541
586
  .is-checkradio[type="checkbox"].ac-checkbox + label::after {
542
587
  top: 6px;
543
588
  left: 6px;
544
- border-color: #54657e;
589
+ border-color: $ac-gray-lightest;
545
590
  width: 0.3rem;
546
591
  height: 0.5rem;
547
592
  }
@@ -551,25 +596,29 @@
551
596
  }
552
597
 
553
598
  .is-checkradio[type="checkbox"].ac-checkbox + label {
554
- color: $ac-link-black;
599
+ color: $ac-color-text;
555
600
  font-size: 13px !important;
556
601
  padding-left: 25px;
557
602
  user-select: none;
558
603
  }
604
+
559
605
  .is-checkradio[type="checkbox"].ac-checkbox:checked + label {
560
606
  color: $ac-primary !important;
561
607
  }
608
+
562
609
  .is-checkradio[type="checkbox"].ac-checkbox + label {
563
- color: $ac-link-black;
610
+ color: $ac-color-text;
564
611
  font-size: 13px;
565
612
  padding-left: 25px;
566
613
  user-select: none;
567
614
  }
615
+
568
616
  .is-checkradio[type="checkbox"],
569
617
  .is-checkradio[type="radio"] {
570
618
  display: none;
571
619
  }
572
620
  }
621
+
573
622
  .ac-single-radio {
574
623
  &.is-selected {
575
624
  .is-checkradio[type="radio"].ac-radio + label {
@@ -582,12 +631,14 @@
582
631
  .is-checkradio[type="checkbox"] + label:before {
583
632
  top: 3px;
584
633
  }
634
+
585
635
  // AC-Switch
586
636
  .ac-single-switch {
587
637
  label {
588
638
  user-select: none;
589
639
  font-size: 13px;
590
640
  font-weight: 400;
641
+ color: $ac-color-text;
591
642
 
592
643
  &::before {
593
644
  background-color: #cad3df;
@@ -598,9 +649,41 @@
598
649
  margin-top: 6px;
599
650
  }
600
651
 
652
+ &.is-small {
653
+ label {
654
+ font-size: 13px !important;
655
+ }
656
+ .switch[type="checkbox"] + label {
657
+ font-size: 13px;
658
+ padding-top: 0;
659
+ padding-left: 40px;
660
+
661
+ &::before {
662
+ width: 30px;
663
+ height: 16.2px;
664
+ }
665
+
666
+ &::after {
667
+ top: 2px;
668
+ left: 2px;
669
+ width: 12px;
670
+ height: 12px;
671
+ }
672
+ }
673
+
674
+ .switch[type="checkbox"]:checked + label {
675
+ &::after {
676
+ left: 15px;
677
+ }
678
+ }
679
+ }
680
+
601
681
  .switch {
602
682
  &[type="checkbox"] + label {
603
683
  padding-top: 3px;
684
+ &::before {
685
+ background-color: $ac-gray-light;
686
+ }
604
687
  }
605
688
 
606
689
  &.ac-switch {
@@ -643,17 +726,17 @@
643
726
 
644
727
  input {
645
728
  border: none;
646
- background: transparent;
729
+ background-color: transparent;
647
730
  font-size: 18px;
648
731
  font-weight: 400;
649
732
  font-family: $ac-family-heading;
650
- color: #333;
733
+ color: $ac-color-value;
651
734
  width: 100%;
652
735
  padding: 5px 0;
653
736
 
654
737
  &:focus {
655
738
  outline: none;
656
- border-bottom: 1px solid $ac-border;
739
+ border-bottom: 1px solid $ac-label-text;
657
740
  }
658
741
  }
659
742
  }
@@ -665,6 +748,7 @@
665
748
  padding-left: 25px;
666
749
  font-size: 13px;
667
750
  padding: 0.3rem 0.5rem 0.2rem 1.5rem;
751
+
668
752
  &::after {
669
753
  background-color: $ac-primary;
670
754
  width: 16px;
@@ -701,7 +785,25 @@
701
785
  }
702
786
  }
703
787
  }
788
+ // dark theme start
789
+ .is-dark-theme {
790
+ .ac-single-input {
791
+ input,
792
+ .file-input,
793
+ .ac-dropdown-content {
794
+ background-color: transparent;
795
+ }
704
796
 
797
+ label {
798
+ color: $ac-label-text;
799
+ }
800
+ .button.is-information:focus{
801
+ background-color: $dark-bg-light;
802
+ }
803
+ }
804
+
805
+ }
806
+ // dark theme end
705
807
  /****************************************
706
808
  Responsive Classes
707
809
  *****************************************/
@@ -15,7 +15,7 @@
15
15
  top: 0;
16
16
  width: 100%;
17
17
  height: 100%;
18
- background: #000;
18
+ background-color: $ac-black;
19
19
  z-index: -1;
20
20
  opacity: 0.5;
21
21
  }
@@ -47,13 +47,13 @@
47
47
 
48
48
  .ac-modal-inner {
49
49
  margin: 0 auto;
50
- background: $ac-white;
50
+ background-color: $ac-white;
51
51
  border-radius: 4px;
52
52
  overflow: hidden;
53
53
  box-shadow: 12px 26px 118px rgba(0, 0, 0, 0.16);
54
54
 
55
55
  .ac-modal-header {
56
- background: $ac-white;
56
+ background-color: $ac-white;
57
57
  padding: 10px 20px;
58
58
  display: flex;
59
59
  align-items: center;
@@ -96,6 +96,7 @@
96
96
  &.is-description {
97
97
  font-family: $ac-family-heading;
98
98
  font-weight: 400;
99
+ color: $ac-color-value;
99
100
 
100
101
  strong {
101
102
  font-weight: 500;
@@ -107,7 +108,7 @@
107
108
  }
108
109
 
109
110
  .ac-modal-footer {
110
- border-top: 1px solid $ac-modal-header-bg;
111
+ border-top: 1px solid $ac-white-light;
111
112
  padding: 10px 20px;
112
113
  }
113
114
  }