@appscode/design-system 2.0.19-alpha.4 → 2.0.19-alpha.6

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 (79) hide show
  1. package/main.scss +1 -15
  2. package/package.json +1 -1
  3. package/vue-components/styles/components/_all.scss +11 -20
  4. package/vue-components/styles/components/_breadcrumb.scss +32 -0
  5. package/vue-components/styles/components/_button.scss +51 -0
  6. package/vue-components/styles/components/alert/_alert-message.scss +16 -0
  7. package/vue-components/styles/components/alert/_alert.scss +123 -0
  8. package/vue-components/styles/components/alert/_all.scss +3 -0
  9. package/vue-components/styles/components/alert/_toast.scss +50 -0
  10. package/vue-components/styles/components/cards/_all.scss +8 -0
  11. package/vue-components/styles/components/cards/_cluster.scss +93 -0
  12. package/vue-components/styles/components/cards/_features.scss +26 -0
  13. package/vue-components/styles/components/cards/_info.scss +83 -0
  14. package/vue-components/styles/components/cards/_monitoring.scss +24 -0
  15. package/vue-components/styles/components/cards/_org.scss +59 -0
  16. package/vue-components/styles/components/cards/_vendor.scss +58 -0
  17. package/vue-components/styles/components/content/_all.scss +2 -0
  18. package/vue-components/styles/components/content/_content-header.scss +14 -0
  19. package/vue-components/styles/components/content/_content-layout.scss +4 -0
  20. package/vue-components/styles/components/editor/_all.scss +2 -0
  21. package/vue-components/styles/components/editor/_filtered-file-editor.scss +195 -0
  22. package/vue-components/styles/components/footer/_all.scss +3 -0
  23. package/vue-components/styles/components/footer/_footer-area.scss +26 -0
  24. package/vue-components/styles/components/footer/_footer-item.scss +14 -0
  25. package/vue-components/styles/components/footer/_footer-items.scss +5 -0
  26. package/vue-components/styles/components/form-fields/_all.scss +4 -0
  27. package/vue-components/styles/components/form-fields/_file-upload.scss +42 -0
  28. package/vue-components/styles/components/form-fields/_form-footer.scss +9 -0
  29. package/vue-components/styles/components/header/_all.scss +0 -0
  30. package/vue-components/styles/components/header/_header-item.scss +13 -0
  31. package/vue-components/styles/components/header/_header.scss +7 -0
  32. package/vue-components/styles/components/navbar/_all.scss +2 -0
  33. package/vue-components/styles/components/navbar/_notification.scss +103 -0
  34. package/vue-components/styles/components/select-box/_all.scss +2 -0
  35. package/vue-components/styles/components/sidebar/_all.scss +1 -0
  36. package/vue-components/styles/components/{_left-sidebar.scss → sidebar/_left-sidebar.scss} +21 -0
  37. package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -34
  38. package/vue-components/v3/alert/Alert.vue +1 -218
  39. package/vue-components/v3/alert/AlertMessage.vue +1 -16
  40. package/vue-components/v3/alert/Toast.vue +1 -50
  41. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +1 -33
  42. package/vue-components/v3/button/Button.vue +1 -1
  43. package/vue-components/v3/button/Buttons.vue +0 -8
  44. package/vue-components/v3/cards/Cluster.vue +2 -95
  45. package/vue-components/v3/cards/FeatureCard.vue +1 -25
  46. package/vue-components/v3/cards/FeatureCards.vue +5 -1
  47. package/vue-components/v3/cards/InfoCard.vue +1 -80
  48. package/vue-components/v3/cards/Monitoring.vue +1 -24
  49. package/vue-components/v3/cards/OrgCard.vue +1 -59
  50. package/vue-components/v3/cards/Payment.vue +3 -0
  51. package/vue-components/v3/cards/Vendor.vue +2 -58
  52. package/vue-components/v3/content/ContentHeader.vue +1 -14
  53. package/vue-components/v3/content/ContentLayout.vue +1 -7
  54. package/vue-components/v3/editor/FilteredFileEditor.vue +1 -195
  55. package/vue-components/v3/footer/FooterArea.vue +2 -27
  56. package/vue-components/v3/footer/FooterItem.vue +1 -15
  57. package/vue-components/v3/footer/FooterItems.vue +2 -7
  58. package/vue-components/v3/form/FormFooter.vue +1 -9
  59. package/vue-components/v3/form-fields/AcSingleInput.vue +1 -1
  60. package/vue-components/v3/form-fields/FileUpload.vue +1 -42
  61. package/vue-components/v3/header/Header.vue +1 -7
  62. package/vue-components/v3/header/HeaderItem.vue +1 -13
  63. package/vue-components/v3/navbar/Navbar.vue +3 -1
  64. package/vue-components/v3/navbar/Notification.vue +1 -103
  65. package/vue-components/v3/sidebar/ClusterSwitcher.vue +3 -1
  66. package/vue-components/v3/sidebar/Sidebar.vue +1 -1
  67. package/vue-components/styles/components/_ac-alert-box.scss +0 -205
  68. package/vue-components/styles/components/_ac-content-layout.scss +0 -165
  69. package/vue-components/styles/components/_buttons.scss +0 -779
  70. /package/vue-components/styles/components/{_payment-card.scss → cards/_payment-card.scss} +0 -0
  71. /package/vue-components/styles/components/{_subscription-card.scss → cards/_subscription-card.scss} +0 -0
  72. /package/vue-components/styles/components/{_monaco-editor.scss → editor/_monaco-editor.scss} +0 -0
  73. /package/vue-components/styles/components/{_image-upload.scss → form-fields/_image-upload.scss} +0 -0
  74. /package/vue-components/styles/components/{_input-card.scss → form-fields/_input-card.scss} +0 -0
  75. /package/vue-components/styles/components/{_input.scss → form-fields/_input.scss} +0 -0
  76. /package/vue-components/styles/components/{_menu-content.scss → navbar/_menu-content.scss} +0 -0
  77. /package/vue-components/styles/components/{_navbar.scss → navbar/_navbar.scss} +0 -0
  78. /package/vue-components/styles/components/{_ac-select-box.scss → select-box/_ac-select-box.scss} +0 -0
  79. /package/vue-components/styles/components/{_multi-select.scss → select-box/_multi-select.scss} +0 -0
package/main.scss CHANGED
@@ -17,18 +17,4 @@
17
17
  @import "@/components/vue-components/styles/layouts/all";
18
18
 
19
19
  // COMPONENTS
20
- @import "@/components/vue-components/styles/components/all";
21
-
22
- // //BASE - Base styles, variables, mixins
23
- // @import "base/video-player";
24
-
25
- // COMPONENTS
26
- // @import "./cluster/resourceViewer";
27
- // @import "./cluster/app-drawer";
28
-
29
- // LAYOUTS - Page layout styles
30
- // @import "layouts/_clusterListPage";
31
-
32
- // KUBEDB COMPONENTS
33
- // @import "./kubedb/styles/scss/custom.scss";
34
- // @import "./kubedb/styles/scss/transitions.scss";
20
+ // @import "@/components/vue-components/styles/components/all";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.0.19-alpha.4",
3
+ "version": "2.0.19-alpha.6",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -1,37 +1,28 @@
1
- // @import "button";
2
- // @import "input";
3
- // @import "accordion";
4
- // @import "modal";
5
- // @import "navbar";
6
- // @import "options";
7
- // @import "table";
1
+ @import "navbar/all";
2
+ @import "alert/all";
3
+ @import "cards/all";
4
+ @import "content/all";
5
+ @import "editor/all";
6
+ @import "form/fields/all";
7
+ @import "header/all";
8
+ @import "select-box/all";
9
+ @import "sidebar/all";
8
10
 
9
- // @import "tabs";
10
- @import "navbar";
11
- @import "left-sidebar";
12
11
  @import "button";
13
12
  @import "terminal";
14
13
  @import "ac-drag";
15
14
  @import "accordion";
16
15
  @import "dropdown";
16
+ @import "breadcrumb";
17
17
  @import "getkeeper";
18
18
  @import "go-to-top";
19
19
  @import "graph";
20
- @import "image-upload";
21
- @import "input-card";
22
- @import "input";
23
- @import "menu-content";
24
20
  @import "modal";
25
- @import "monaco-editor";
26
- @import "multi-select";
27
- @import "multi-select";
28
21
  @import "options";
29
- @import "payment-card";
30
22
  @import "preloader";
31
23
  @import "preview-modal";
32
- // @import "progress-bar";W
24
+ // @import "progress-bar";
33
25
  @import "report";
34
- @import "subscription-card";
35
26
  @import "table-of-content";
36
27
  @import "table";
37
28
  @import "tabs";
@@ -0,0 +1,32 @@
1
+ .ac-breadcrumb {
2
+ padding: 8px 20px;
3
+ border-bottom: 1px solid $primary-95;
4
+ position: sticky;
5
+ top: 50px;
6
+ height: auto;
7
+ background-color: $white-100;
8
+ z-index: 998;
9
+ display: flex;
10
+ align-items: center;
11
+ }
12
+
13
+ .breadcrumb {
14
+ a {
15
+ color: $primary-20;
16
+ font-size: 13px;
17
+ padding: 0 3px;
18
+ font-weight: 500;
19
+ font-style: normal;
20
+
21
+ &:hover {
22
+ color: $primary-10;
23
+ }
24
+ }
25
+
26
+ li.is-active {
27
+ a {
28
+ color: $primary-10;
29
+ font-weight: 500;
30
+ }
31
+ }
32
+ }
@@ -47,13 +47,64 @@
47
47
  &:not(.is-rounded) {
48
48
  border-radius: 4px;
49
49
  }
50
+
51
+ &.is-square {
52
+ width: 28px;
53
+ height: 28px;
54
+ align-items: center;
55
+ justify-content: center;
56
+ }
50
57
  }
51
58
  &.is-medium {
52
59
  font-size: 1rem;
53
60
  height: 36px;
61
+ &.is-square {
62
+ width: 36px;
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+ }
67
+ &.is-tinny {
68
+ height: 24px;
69
+ padding: 0 8px;
54
70
  }
55
71
  }
56
72
  }
57
73
  button.is-primary {
58
74
  background-color: $primary;
59
75
  }
76
+ .up-down-buttons {
77
+ border-radius: 4px;
78
+ overflow: hidden;
79
+ position: relative;
80
+ z-index: 1;
81
+ max-width: 36px;
82
+ margin-bottom: 0 !important;
83
+ button.ac-button {
84
+ width: 36px;
85
+ height: 18px;
86
+ cursor: pointer;
87
+ border: none;
88
+ color: $primary;
89
+ background-color: $primary-90;
90
+ transition: 0.3s ease-in-out;
91
+ margin: 0 !important;
92
+ border-radius: 0;
93
+ &:hover {
94
+ background-color: $primary-80;
95
+ }
96
+ &.is-primary {
97
+ background-color: $primary;
98
+ color: $white-100;
99
+ &:hover {
100
+ background-color: $primary-30;
101
+ }
102
+ }
103
+ .icon {
104
+ margin: 0;
105
+ padding: 0;
106
+ width: auto;
107
+ height: auto;
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,16 @@
1
+ .message {
2
+ .message-body {
3
+ display: flex;
4
+ padding: 16px;
5
+ gap: 12px;
6
+ align-items: center;
7
+ p {
8
+ line-height: 160%;
9
+ width: calc(100% - 48px);
10
+ }
11
+ .status-icon {
12
+ display: flex;
13
+ width: 24px;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,123 @@
1
+ .ac-notification {
2
+ background-color: #dee7f5;
3
+ font-size: 13px;
4
+ color: $primary;
5
+ min-height: 36px;
6
+ display: flex;
7
+ align-items: center;
8
+ padding: 8px 16px;
9
+ overflow: hidden;
10
+ border: 1px solid $primary;
11
+ border-radius: 4px;
12
+ justify-content: flex-start;
13
+ position: relative;
14
+ z-index: 1;
15
+ min-width: 280px;
16
+
17
+ p {
18
+ color: $primary;
19
+
20
+ .close-icon {
21
+ padding-right: 10px;
22
+ font-size: 15px;
23
+ }
24
+
25
+ a {
26
+ text-decoration: underline;
27
+ color: $primary;
28
+
29
+ &:hover {
30
+ color: hsla(
31
+ var(--hsl-hue),
32
+ var(--hsl-saturation),
33
+ calc(var(--hsl-lightness) - 10%),
34
+ 1
35
+ );
36
+ }
37
+ }
38
+ }
39
+
40
+ button.close {
41
+ background-color: transparent;
42
+ cursor: pointer;
43
+ right: 0px;
44
+ position: absolute;
45
+ box-shadow: none;
46
+ border: none;
47
+ font-size: 14px;
48
+ color: $danger;
49
+ width: 40px;
50
+ height: 100%;
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ }
55
+ }
56
+
57
+ // mixin for .ac-notification
58
+ @mixin acNotification($colorName) {
59
+ background-color: scale-color($color: $colorName, $lightness: 80%);
60
+ color: $white-100;
61
+ border-color: $colorName;
62
+
63
+ p {
64
+ color: $colorName;
65
+
66
+ a {
67
+ color: $colorName;
68
+
69
+ &:hover {
70
+ color: $colorName;
71
+ opacity: 0.8;
72
+ }
73
+ }
74
+ }
75
+ }
76
+ @mixin acPrimaryNotification() {
77
+ background-color: hsla(
78
+ var(--hsl-hue),
79
+ var(--hsl-saturation),
80
+ var(--hsl-lightness),
81
+ 0.2
82
+ );
83
+ color: $white-100;
84
+ border-color: $primary;
85
+
86
+ p {
87
+ color: $primary;
88
+
89
+ a {
90
+ color: $primary;
91
+
92
+ &:hover {
93
+ color: $primary;
94
+ opacity: 0.8;
95
+ }
96
+ }
97
+ }
98
+ }
99
+
100
+ // is-primary
101
+ .ac-notification.is-primary {
102
+ @include acPrimaryNotification();
103
+ }
104
+
105
+ // is.info
106
+ .ac-notification.is-info {
107
+ @include acNotification($info);
108
+ }
109
+
110
+ // is.success
111
+ .ac-notification.is-success {
112
+ @include acNotification($success);
113
+ }
114
+
115
+ // is-danger
116
+ .ac-notification.is-danger {
117
+ @include acNotification($danger);
118
+ }
119
+
120
+ // is-warning
121
+ .ac-notification.is-warning {
122
+ @include acNotification($warning);
123
+ }
@@ -0,0 +1,3 @@
1
+ @import "./alert";
2
+ @import "./alert-message";
3
+ @import "./toast";
@@ -0,0 +1,50 @@
1
+ .ac-toast {
2
+ width: 350px;
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ font-size: 13px;
7
+ border-radius: 4px;
8
+ position: relative;
9
+ padding-right: 30px;
10
+ margin-bottom: 10px;
11
+
12
+ * {
13
+ color: $white-100;
14
+ }
15
+
16
+ p {
17
+ padding-left: 16px;
18
+
19
+ i.fa {
20
+ padding-right: 0 !important;
21
+ margin-right: 4px;
22
+ }
23
+ }
24
+
25
+ a {
26
+ font-weight: 500;
27
+ text-decoration: underline;
28
+ padding: 0 15px;
29
+
30
+ &:hover {
31
+ color: $black-90;
32
+ }
33
+ }
34
+
35
+ button.close-button {
36
+ border-radius: 0px;
37
+ background-color: transparent;
38
+ border: none;
39
+ color: $white-100;
40
+ position: absolute;
41
+ right: 0;
42
+ top: 0;
43
+ padding: 5px;
44
+ height: 100%;
45
+ width: 30px;
46
+ z-index: 1;
47
+ cursor: pointer;
48
+ border-left: 1px solid #dddddd;
49
+ }
50
+ }
@@ -0,0 +1,8 @@
1
+ @import "cluster";
2
+ @import "features";
3
+ @import "info";
4
+ @import "monitoring";
5
+ @import "org";
6
+ @import "vendor";
7
+ @import "payment-card";
8
+ @import "subscription-card";
@@ -0,0 +1,93 @@
1
+ // cluster-card
2
+ .card-details.cluster {
3
+ border: 1px solid $primary-90;
4
+ padding: 24px 20px;
5
+ transition: 0.3s ease-in-out;
6
+ position: relative;
7
+ z-index: 1;
8
+ width: 100%;
9
+ border-radius: 2px;
10
+
11
+ .ac-options {
12
+ position: absolute;
13
+ right: 20px;
14
+ top: 24px;
15
+ z-index: 999;
16
+ }
17
+ .c-header {
18
+ display: flex;
19
+ margin-bottom: 24px;
20
+
21
+ .c-logo {
22
+ width: 54px;
23
+ height: 54px;
24
+ background: #e8f3fc;
25
+ border-radius: 50%;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ margin-right: 24px;
30
+
31
+ img {
32
+ height: 24px;
33
+ }
34
+ }
35
+
36
+ .c-content {
37
+ width: calc(100% - 78px);
38
+ h4 {
39
+ font-size: 18px;
40
+ line-height: 130%;
41
+ color: #030d17;
42
+ }
43
+ .icon {
44
+ color: #0c365a;
45
+ cursor: pointer;
46
+ position: relative;
47
+ z-index: 1;
48
+ &:after {
49
+ position: absolute;
50
+ content: "";
51
+ border-radius: 50%;
52
+ width: 32px;
53
+ height: 32px;
54
+ background: #e8f3fc;
55
+ opacity: 0;
56
+ visibility: hidden;
57
+ transition: 0.3s ease-in-out;
58
+ z-index: -1;
59
+ }
60
+ &:hover {
61
+ &:after {
62
+ opacity: 1;
63
+ visibility: visible;
64
+ }
65
+ }
66
+ }
67
+ .tags {
68
+ margin-top: 12px;
69
+ }
70
+ }
71
+ }
72
+
73
+ .c-body {
74
+ display: flex;
75
+ flex-wrap: wrap;
76
+ gap: 20px;
77
+ justify-content: space-between;
78
+ p {
79
+ width: calc(25% - 16px);
80
+
81
+ span {
82
+ font-size: 11px;
83
+ color: #666666;
84
+ display: block;
85
+ }
86
+ strong {
87
+ color: #061b2d;
88
+ font-size: 13px;
89
+ font-weight: 400;
90
+ }
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,26 @@
1
+
2
+ // features card
3
+ .card-basic.feature-card {
4
+ padding: 20px;
5
+ width: calc(25% - 8px);
6
+ max-width: 390px;
7
+ min-width: 290px;
8
+ position: relative;
9
+ border-radius: 2px;
10
+
11
+ .required {
12
+ position: absolute;
13
+ left: 20px;
14
+ top: -9px;
15
+ }
16
+ .c-title {
17
+ h5 {
18
+ width: calc(100% - 28px);
19
+ }
20
+ }
21
+ .c-body {
22
+ p {
23
+ color: #0c365a;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,83 @@
1
+ // info cards start
2
+ .info-card {
3
+ border: 1px solid $primary-90;
4
+ position: relative;
5
+ border-radius: 2px;
6
+ .header {
7
+ display: flex;
8
+ align-items: center;
9
+ padding: 12px 16px;
10
+ border-bottom: 1px dashed $primary-90;
11
+
12
+ .logo {
13
+ display: flex;
14
+ align-items: center;
15
+ margin-right: 12px;
16
+ img {
17
+ width: 16px;
18
+ }
19
+ }
20
+
21
+ .content {
22
+ width: 100%;
23
+ h5 {
24
+ color: $primary-10;
25
+ font-weight: 500;
26
+ margin-bottom: 0;
27
+ }
28
+ }
29
+ }
30
+
31
+ .body {
32
+ display: flex;
33
+ align-items: flex-end;
34
+ justify-content: space-between;
35
+ padding: 16px;
36
+ p {
37
+ display: flex;
38
+ align-items: center;
39
+ margin-bottom: 8px;
40
+ span.icon {
41
+ padding-right: 8px;
42
+ width: 22px;
43
+ }
44
+
45
+ strong {
46
+ font-size: 13px;
47
+ font-weight: 400;
48
+ color: $primary-10;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ .line-color {
55
+ position: relative;
56
+ z-index: 1;
57
+ overflow: hidden;
58
+ &::after {
59
+ position: absolute;
60
+ content: "";
61
+ left: 0;
62
+ bottom: 0;
63
+ width: 100%;
64
+ height: 1px;
65
+ background: linear-gradient(-45deg, $primary, $success, $warning, $danger);
66
+ background-size: 400% 400%;
67
+ animation: gradient 3s ease infinite;
68
+ }
69
+ }
70
+
71
+ @keyframes gradient {
72
+ 0% {
73
+ background-position: 0% 50%;
74
+ }
75
+ 50% {
76
+ background-position: 100% 50%;
77
+ }
78
+ 100% {
79
+ background-position: 0% 50%;
80
+ }
81
+ }
82
+
83
+ // // info cards end
@@ -0,0 +1,24 @@
1
+ .card-basic {
2
+ padding: 20px;
3
+ width: calc(25% - 8px);
4
+ max-width: 390px;
5
+ min-width: 290px;
6
+ position: relative;
7
+ border-radius: 2px;
8
+
9
+ .required {
10
+ position: absolute;
11
+ left: 20px;
12
+ top: -9px;
13
+ }
14
+ .c-title {
15
+ h5 {
16
+ width: calc(100% - 28px);
17
+ }
18
+ }
19
+ .c-body {
20
+ p {
21
+ color: #0c365a;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,59 @@
1
+ .card-details {
2
+ display: flex;
3
+ align-items: flex-end;
4
+ justify-content: space-between;
5
+ border: 1px solid $primary-90;
6
+ padding: 24px 20px;
7
+ border-radius: 2px;
8
+ transition: 0.3s ease-in-out;
9
+ position: relative;
10
+
11
+ figure {
12
+ margin-bottom: 8px;
13
+ }
14
+
15
+ button.ac-button.is-text {
16
+ color: $primary;
17
+ transition: 0.3s ease-in-out;
18
+ padding: 2px 0;
19
+ height: auto;
20
+ &:hover {
21
+ background-color: transparent;
22
+ }
23
+ }
24
+
25
+ &:hover:not(.no-data-available) {
26
+ // border: 1px solid $primary;
27
+ button.ac-button.is-text {
28
+ gap: 16px;
29
+ }
30
+
31
+ .right-content {
32
+ img {
33
+ filter: grayscale(0);
34
+ }
35
+ }
36
+ }
37
+
38
+ .left-content {
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: flex-start;
42
+ gap: 8px;
43
+ justify-content: space-between;
44
+
45
+ .image {
46
+ border-radius: 50%;
47
+
48
+ &:has(.is-rounded) {
49
+ box-shadow: inset 0 0 0 1px hsla(0, 0%, 0%, 0.1);
50
+ }
51
+ }
52
+ }
53
+
54
+ .right-content {
55
+ img {
56
+ filter: grayscale(1);
57
+ }
58
+ }
59
+ }