@appscode/design-system 1.1.0-alpha.9 → 1.1.0-beta.3

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 (194) hide show
  1. package/base/_video-player.scss +65 -0
  2. package/base/utilities/_all.scss +6 -5
  3. package/base/utilities/_colors.scss +446 -0
  4. package/base/utilities/_customize-bulma.scss +23 -27
  5. package/base/utilities/_extended.scss +3 -2
  6. package/base/utilities/{_default.scss → _global.scss} +171 -323
  7. package/base/utilities/_layouts.scss +157 -0
  8. package/base/utilities/_mixin.scss +11 -11
  9. package/base/utilities/_spacing.scss +96 -0
  10. package/base/utilities/_typography.scss +56 -24
  11. package/base/utilities/dark-theme.scss +1 -1
  12. package/components/_ac-accordion.scss +117 -117
  13. package/components/_ac-alert-box.scss +205 -263
  14. package/components/_ac-calendar.scss +4 -4
  15. package/components/_ac-card.scss +122 -130
  16. package/components/_ac-code-highlight.scss +6 -6
  17. package/components/_ac-content-layout.scss +165 -165
  18. package/components/_ac-drag.scss +11 -11
  19. package/components/_ac-input.scss +38 -520
  20. package/components/_ac-modal.scss +212 -212
  21. package/components/_ac-multi-select.scss +780 -751
  22. package/components/_ac-options.scss +122 -123
  23. package/components/_ac-select-box.scss +5 -5
  24. package/components/_ac-table.scss +503 -502
  25. package/components/_ac-tabs.scss +39 -38
  26. package/components/_ac-tags.scss +116 -116
  27. package/components/_ac-terminal.scss +95 -51
  28. package/components/_add-card.scss +3 -3
  29. package/components/_all.scss +31 -28
  30. package/components/_app-drawer.scss +0 -134
  31. package/components/_breadcumb.scss +0 -71
  32. package/components/_buttons.scss +779 -779
  33. package/components/_card-body-wrapper.scss +5 -5
  34. package/components/_dashboard-header.scss +0 -115
  35. package/components/_direct-deploy.scss +8 -8
  36. package/components/_go-to-top.scss +1 -1
  37. package/components/_image-upload.scss +3 -3
  38. package/components/_left-sidebar-menu.scss +448 -579
  39. package/components/_monaco-editor.scss +1 -1
  40. package/components/_navbar.scss +786 -752
  41. package/components/_nested-list.scss +1 -1
  42. package/components/_overview-info.scss +7 -7
  43. package/components/_overview-page.scss +4 -4
  44. package/components/_pagination.scss +106 -124
  45. package/components/_payment-card.scss +21 -21
  46. package/components/_preloader.scss +1 -1
  47. package/components/_preview-modal.scss +18 -18
  48. package/components/_pricing-table.scss +10 -10
  49. package/components/_progress-bar.scss +12 -12
  50. package/components/_subscription-card.scss +14 -14
  51. package/components/_table-of-content.scss +4 -4
  52. package/components/_tfa.scss +9 -9
  53. package/components/_widget-menu.scss +247 -247
  54. package/components/_wizard.scss +82 -82
  55. package/components/ac-toaster/_ac-toasted.scss +1 -1
  56. package/components/bbum/_activities-header.scss +1 -1
  57. package/components/bbum/_card-team.scss +12 -12
  58. package/components/bbum/_information-center.scss +13 -13
  59. package/components/bbum/_left-sidebar.scss +8 -8
  60. package/components/bbum/_mobile-desktop.scss +7 -7
  61. package/components/bbum/_post.scss +5 -5
  62. package/components/bbum/_sign-up-notification.scss +10 -10
  63. package/components/bbum/_single-post-preview.scss +21 -21
  64. package/components/bbum/_user-profile.scss +10 -10
  65. package/components/ui-builder/_ui-builder.scss +15 -15
  66. package/components/ui-builder/_vue-open-api.scss +514 -2
  67. package/layouts/_code-preview.scss +11 -11
  68. package/main.scss +26 -10
  69. package/package.json +1 -1
  70. package/vue-components/plugins/time-convert.js +49 -0
  71. package/vue-components/text.vue +1 -0
  72. package/vue-components/types/cluster.ts +6 -0
  73. package/vue-components/types/longRunningTasks.ts +20 -0
  74. package/vue-components/types/notification.ts +6 -0
  75. package/vue-components/types/previewYaml.ts +8 -0
  76. package/vue-components/types/table.ts +54 -0
  77. package/vue-components/types/theme.ts +10 -0
  78. package/vue-components/types/user.ts +22 -0
  79. package/vue-components/v2/card/Card.vue +1 -1
  80. package/vue-components/v2/card/OverviewCards.vue +17 -2
  81. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
  82. package/vue-components/v2/icons/Ellipsis.vue +2 -1
  83. package/vue-components/v2/modal/Modal.vue +0 -5
  84. package/vue-components/v2/navbar/Appdrawer.vue +37 -12
  85. package/vue-components/v2/navbar/Navbar.vue +3 -3
  86. package/vue-components/v2/navbar/NavbarItem.vue +3 -1
  87. package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
  88. package/vue-components/v2/navbar/User.vue +5 -22
  89. package/vue-components/v2/pagination/Pagination.vue +65 -0
  90. package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
  91. package/vue-components/v3/accordion/Accordion.vue +151 -0
  92. package/vue-components/v3/alert/Alert.vue +238 -0
  93. package/vue-components/v3/alert/Toast.vue +79 -0
  94. package/vue-components/v3/banner/Banner.vue +10 -0
  95. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +104 -0
  96. package/vue-components/v3/button/Button.vue +831 -58
  97. package/vue-components/v3/button/Buttons.vue +6 -0
  98. package/vue-components/v3/button/DownloadBtn.vue +31 -0
  99. package/vue-components/v3/cards/Card.vue +32 -0
  100. package/vue-components/v3/cards/CardContent.vue +7 -0
  101. package/vue-components/v3/cards/CardHeader.vue +14 -0
  102. package/vue-components/v3/cards/Cards.vue +7 -0
  103. package/vue-components/v3/cards/Cluster.vue +150 -0
  104. package/vue-components/v3/cards/Counter.vue +27 -0
  105. package/vue-components/v3/cards/FeatureCard.vue +40 -0
  106. package/vue-components/v3/cards/FeatureCards.vue +6 -0
  107. package/vue-components/v3/cards/InfoCard.vue +248 -0
  108. package/vue-components/v3/cards/Monitoring.vue +94 -0
  109. package/vue-components/v3/cards/OverviewCard.vue +24 -0
  110. package/vue-components/v3/cards/OverviewCards.vue +31 -0
  111. package/vue-components/v3/cards/Payment.vue +62 -0
  112. package/vue-components/v3/cards/Vendor.vue +23 -0
  113. package/vue-components/v3/content/ContentHeader.vue +39 -30
  114. package/vue-components/v3/content/ContentLayout.vue +20 -0
  115. package/vue-components/v3/content/ContentTable.vue +37 -61
  116. package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
  117. package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
  118. package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
  119. package/vue-components/v3/editor/Editor.vue +100 -113
  120. package/vue-components/v3/editor/FilteredFileEditor.vue +124 -127
  121. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +70 -94
  122. package/vue-components/v3/footer/FooterArea.vue +34 -0
  123. package/vue-components/v3/footer/FooterItem.vue +32 -0
  124. package/vue-components/v3/footer/FooterItems.vue +15 -0
  125. package/vue-components/v3/footer/Info.vue +23 -0
  126. package/vue-components/v3/footer/Status.vue +42 -0
  127. package/vue-components/v3/footer/Usage.vue +44 -0
  128. package/vue-components/v3/form/Form.vue +24 -33
  129. package/vue-components/v3/form/FormFooterControl.vue +7 -0
  130. package/vue-components/v3/form/FormFooterControls.vue +7 -0
  131. package/vue-components/v3/form-fields/AcSingleInput.vue +520 -0
  132. package/vue-components/v3/form-fields/Input.vue +19 -14
  133. package/vue-components/v3/header/Header.vue +117 -24
  134. package/vue-components/v3/header/HeaderItem.vue +18 -0
  135. package/vue-components/v3/header/HeaderItems.vue +4 -0
  136. package/vue-components/v3/icons/Ellipsis.vue +2 -0
  137. package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
  138. package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
  139. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +17 -15
  140. package/vue-components/v3/modal/Modal.vue +292 -96
  141. package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
  142. package/vue-components/v3/modals/JsonShowModal.vue +62 -68
  143. package/vue-components/v3/modals/LongRunningTasksModal.vue +145 -143
  144. package/vue-components/v3/navbar/Appdrawer.vue +196 -51
  145. package/vue-components/v3/navbar/Navbar.vue +296 -0
  146. package/vue-components/v3/navbar/NavbarItem.vue +81 -0
  147. package/vue-components/v3/navbar/NavbarItemContent.vue +284 -0
  148. package/vue-components/v3/navbar/Notification.vue +179 -0
  149. package/vue-components/v3/navbar/ThemeMode.vue +128 -112
  150. package/vue-components/v3/navbar/User.vue +383 -268
  151. package/vue-components/v3/notification/AlertBox.vue +39 -42
  152. package/vue-components/v3/notification/Notification.vue +49 -43
  153. package/vue-components/v3/notification/NotificationItem.vue +51 -19
  154. package/vue-components/v3/option-dots/Options.vue +188 -0
  155. package/vue-components/v3/pagination/Pagination.vue +203 -99
  156. package/vue-components/v3/preloader/Preloader.vue +23 -0
  157. package/vue-components/v3/searchbars/SearchBar.vue +51 -34
  158. package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
  159. package/vue-components/v3/sidebar/ClusterSwitcher.vue +834 -81
  160. package/vue-components/v3/sidebar/Sidebar.vue +271 -0
  161. package/vue-components/v3/sidebar/SidebarBody.vue +7 -0
  162. package/vue-components/v3/sidebar/SidebarFooter.vue +80 -0
  163. package/vue-components/v3/sidebar/SidebarHeader.vue +124 -0
  164. package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
  165. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
  166. package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
  167. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +128 -0
  168. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +29 -0
  169. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
  170. package/vue-components/v3/tab/TabItem.vue +10 -12
  171. package/vue-components/v3/tab/Tabs.vue +9 -0
  172. package/vue-components/v3/tab/TabsBody.vue +7 -0
  173. package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
  174. package/vue-components/v3/table/FakeTableCell.vue +22 -31
  175. package/vue-components/v3/table/InfoTable.vue +85 -59
  176. package/vue-components/v3/table/MultiInfoTable.vue +72 -95
  177. package/vue-components/v3/table/Table.vue +582 -151
  178. package/vue-components/v3/table/TableCell.vue +20 -23
  179. package/vue-components/v3/table/TableContainer.vue +50 -28
  180. package/vue-components/v3/table/TableRow.vue +63 -85
  181. package/vue-components/v3/table/table-cell/ArrayCell.vue +67 -79
  182. package/vue-components/v3/table/table-cell/CellValue.vue +97 -103
  183. package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
  184. package/vue-components/v3/table/table-cell/ObjectCell.vue +67 -79
  185. package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
  186. package/vue-components/v3/tabs/EditorTabs.vue +18 -24
  187. package/vue-components/v3/tag/Tag.vue +15 -12
  188. package/vue-components/v3/tag/Tags.vue +7 -0
  189. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +26 -23
  190. package/base/utilities/_derived-variables.scss +0 -25
  191. package/base/utilities/_initial-variables.scss +0 -215
  192. package/components/_basic-card.scss +0 -128
  193. package/mixins/stickyContent.js +0 -141
  194. package/plugins/caching.ts +0 -243
@@ -1,63 +1,208 @@
1
+ <script setup lang="ts">
2
+ import { defineAsyncComponent } from "vue";
3
+ interface app {
4
+ url: string;
5
+ icon_url: string;
6
+ title: string;
7
+ sub_title: string;
8
+ }
9
+
10
+ interface Props {
11
+ apps?: Array<app>;
12
+ }
13
+
14
+ withDefaults(defineProps<Props>(), {
15
+ apps: () => [],
16
+ });
17
+
18
+ const NavbarItem = defineAsyncComponent(() => import("./NavbarItem.vue"));
19
+ const NavbarItemContent = defineAsyncComponent(
20
+ () => import("./NavbarItemContent.vue")
21
+ );
22
+ </script>
23
+
1
24
  <template>
2
- <div class="app-drawer-wrapper is-flex">
3
- <div
4
- class="drawer-icon is-flex is-justify-content-center is-align-items-center"
5
- >
25
+ <navbar-item>
26
+ <template #navbar-item>
6
27
  <svg
7
- class="gb_We"
8
- focusable="false"
9
- viewBox="0 0 24 24"
10
- style="width: 22px;margin-top: 2px;"
11
- :style="{ fill: 'white' }"
28
+ width="16"
29
+ height="16"
30
+ viewBox="0 0 16 16"
31
+ fill="none"
32
+ xmlns="http://www.w3.org/2000/svg"
12
33
  >
13
34
  <path
14
- d="M6,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM6,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM16,6c0,1.1 0.9,2 2,2s2,-0.9 2,-2 -0.9,-2 -2,-2 -2,0.9 -2,2zM12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,14c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,20c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2z"
15
- ></path>
35
+ d="M6.66667 2H2V6.66667H6.66667V2Z"
36
+ stroke="#061B2D"
37
+ stroke-width="1.5"
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ />
41
+ <path
42
+ d="M14 2H9.33337V6.66667H14V2Z"
43
+ stroke="#061B2D"
44
+ stroke-width="1.5"
45
+ stroke-linecap="round"
46
+ stroke-linejoin="round"
47
+ />
48
+ <path
49
+ d="M14 9.33334H9.33337V14H14V9.33334Z"
50
+ stroke="#061B2D"
51
+ stroke-width="1.5"
52
+ stroke-linecap="round"
53
+ stroke-linejoin="round"
54
+ />
55
+ <path
56
+ d="M6.66667 9.33334H2V14H6.66667V9.33334Z"
57
+ stroke="#061B2D"
58
+ stroke-width="1.5"
59
+ stroke-linecap="round"
60
+ stroke-linejoin="round"
61
+ />
16
62
  </svg>
17
- </div>
18
- <!-- dropdown start -->
19
- <div class="ac-menu-content app-drawer-dropdown is-active">
20
- <ul>
21
- <li v-for="app in apps" :key="app.url">
22
- <a :href="app.url">
23
- <article class="media">
24
- <figure class="media-left">
25
- <p class="image">
26
- <img :src="app.icon_url" />
27
- </p>
28
- </figure>
29
- <div class="media-content">
30
- <div class="content">
31
- <p>
32
- <strong>{{ app.title }}</strong>
33
- <span>{{ app.sub_title }}</span>
63
+ </template>
64
+ <template #navbar-content>
65
+ <navbar-item-content class="navbar-dropdown-wrapper" style="right: -30px">
66
+ <ul>
67
+ <li v-for="app in apps" :key="app.url">
68
+ <a :href="app.url">
69
+ <article class="media">
70
+ <figure class="media-left">
71
+ <p class="image">
72
+ <img :src="app.icon_url" />
34
73
  </p>
74
+ </figure>
75
+ <div class="media-content">
76
+ <div class="content">
77
+ <p>
78
+ <strong>{{ app.title }}</strong>
79
+ <span>{{ app.sub_title }}</span>
80
+ </p>
81
+ </div>
35
82
  </div>
36
- </div>
37
- </article>
38
- </a>
39
- </li>
40
- </ul>
41
- </div>
42
- </div>
83
+ </article>
84
+ </a>
85
+ </li>
86
+ </ul>
87
+ </navbar-item-content>
88
+ </template>
89
+ </navbar-item>
43
90
  </template>
44
91
 
45
- <script>
46
- import { defineComponent, defineAsyncComponent } from "vue";
92
+ <style lang="scss" scoped>
93
+ .ac-menu-content.app-drawer-dropdown {
94
+ li {
95
+ border-bottom: 1px solid $primary-90;
96
+ }
97
+ }
98
+
99
+ .ac-menu-content {
100
+ ul {
101
+ border-radius: 4px;
102
+ overflow: hidden;
103
+ background-color: $white-100;
104
+ border: 1px solid $primary-90;
105
+ // box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.16);
106
+
107
+ li {
108
+ display: block;
109
+ font-size: 13px;
110
+ a {
111
+ display: block;
112
+ color: $primary-10 !important;
113
+ padding: 10px 20px !important;
114
+ font-size: 13px !important;
115
+ transition: 0.2s;
116
+ border-bottom: 1px solid $primary-90;
117
+
118
+ &:hover {
119
+ background-color: $primary-97 !important;
120
+ }
121
+
122
+ span {
123
+ margin-top: -3px;
124
+ }
47
125
 
48
- export default defineComponent({
49
- props: {
50
- apps: {
51
- type: Array,
52
- default: () => []
126
+ &:hover {
127
+ .media-content {
128
+ .content {
129
+ p {
130
+ color: $primary-20;
131
+ }
132
+ }
133
+ }
134
+ }
135
+
136
+ .media {
137
+ .media-left {
138
+ .image {
139
+ img {
140
+ height: 24px;
141
+ width: auto;
142
+ }
143
+ }
144
+ }
145
+
146
+ .media-content {
147
+ overflow: hidden;
148
+
149
+ .content {
150
+ p {
151
+ vertical-align: middle;
152
+ line-height: 1;
153
+ transition: 0.3s;
154
+
155
+ strong {
156
+ font-weight: 600;
157
+ font-size: 14px;
158
+ // font-family: $font-heading;
159
+ }
160
+
161
+ span {
162
+ display: block;
163
+ font-size: 13px;
164
+ margin-top: 4px;
165
+ line-height: 150%;
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ &:hover {
174
+ > a {
175
+ background-color: $white-100;
176
+ }
177
+ }
178
+
179
+ &:first-child {
180
+ &:hover {
181
+ > a {
182
+ border-radius: 4px 4px 0 0;
183
+ }
184
+ }
185
+ }
186
+
187
+ &:last-child {
188
+ &:hover {
189
+ > a {
190
+ border-radius: 0 0 4px 4px;
191
+ }
192
+ }
193
+ }
53
194
  }
54
- },
55
- components: {
56
- NavbarItemContent: defineAsyncComponent(() =>
57
- import("../../v2/navbar/NavbarItemContent.vue").then(
58
- module => module.default
59
- )
60
- )
61
195
  }
62
- });
63
- </script>
196
+
197
+ position: absolute;
198
+ z-index: 99;
199
+ right: -154px;
200
+ top: 50px;
201
+ display: block;
202
+ transition: all 0.3s ease-in-out;
203
+
204
+ hr {
205
+ margin: 0;
206
+ }
207
+ }
208
+ </style>
@@ -0,0 +1,296 @@
1
+ <script setup lang="ts">
2
+ interface Props {
3
+ modifierClasses?: string;
4
+ fullWidth?: boolean;
5
+ }
6
+
7
+ withDefaults(defineProps<Props>(), {
8
+ modifierClasses: "",
9
+ fullWidth: false,
10
+ });
11
+ </script>
12
+
13
+ <template>
14
+ <div
15
+ class="ac-navbar-area"
16
+ id="header"
17
+ :class="[modifierClasses, { 'is-full': fullWidth }]"
18
+ >
19
+ <div class="ac-navbar-inner">
20
+ <!-- navbar start -->
21
+ <nav class="ac-navbar">
22
+ <!-- navbar logo start -->
23
+ <div class="ac-navbar-brand" v-if="fullWidth">
24
+ <slot name="navbar-brand-logo" />
25
+ </div>
26
+ <!-- navbar logo end -->
27
+
28
+ <!-- navbar cluster-switcher area start -->
29
+ <div class="ac-navbar-cluster-switcher">
30
+ <slot name="navbar-cluster-switcher" />
31
+ </div>
32
+ <!-- navbar cluster-switcher area end -->
33
+
34
+ <!-- navbar menus start -->
35
+ <div class="ac-navbar-menu">
36
+ <!-- single navbar menu item start -->
37
+ <slot />
38
+ <!-- single navbar menu item end -->
39
+ </div>
40
+ <!-- navbar menus end -->
41
+ </nav>
42
+ <!-- navbar end -->
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <style lang="scss" scoped>
48
+ .ac-navbar-area {
49
+ position: fixed;
50
+ margin-left: 250px;
51
+ width: 100%;
52
+ top: 0;
53
+ z-index: 999;
54
+ background-color: $primary-97;
55
+ border-bottom: 1px solid $primary-90;
56
+
57
+ &.is-full {
58
+ margin-left: 0;
59
+
60
+ .ac-navbar {
61
+ grid-template-columns: 250px auto auto;
62
+ width: 100%;
63
+ gap: 20px;
64
+ .ac-navbar-brand {
65
+ padding-left: 15px;
66
+ }
67
+ }
68
+ }
69
+
70
+ .ac-navbar {
71
+ display: inline-grid;
72
+ grid-template-columns: auto auto;
73
+ // margin-left: 255px;
74
+ grid-gap: 0px;
75
+ align-items: center;
76
+ width: calc(100% - 255px);
77
+ height: 50px;
78
+ // padding: 0 15px;
79
+
80
+ .ac-navbar-brand {
81
+ display: flex;
82
+ align-items: center;
83
+ .logo {
84
+ font-size: 20px;
85
+ font-weight: 600;
86
+ color: $white-100;
87
+ }
88
+
89
+ img {
90
+ height: 30px;
91
+ }
92
+ }
93
+
94
+ .ac-navbar-menu {
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: flex-end;
98
+
99
+ // .ac-organizations {
100
+ // margin: 0;
101
+
102
+ // .ac-nav-button {
103
+ // border: none;
104
+ // margin: 0;
105
+ // padding: 0;
106
+ // margin-right: 15px;
107
+ // width: 26px;
108
+ // height: 26px;
109
+ // border-radius: 50%;
110
+ // overflow: hidden;
111
+ // border: 2px solid $white-100;
112
+
113
+ // &:last-child {
114
+ // margin-right: 0;
115
+ // position: relative;
116
+ // z-index: 1;
117
+
118
+ // .more-items {
119
+ // text-align: center;
120
+ // color: $white-100;
121
+ // z-index: 99;
122
+ // position: absolute;
123
+ // font-size: 11px;
124
+ // font-weight: 500;
125
+ // }
126
+
127
+ // &::after {
128
+ // position: absolute;
129
+ // content: "";
130
+ // left: 0;
131
+ // top: 0;
132
+ // width: 100%;
133
+ // height: 100%;
134
+ // background-color: $primary-5;
135
+ // opacity: 0.2;
136
+ // z-index: 1;
137
+ // }
138
+ // }
139
+ // }
140
+ // }
141
+
142
+ .ac-menu-item {
143
+ position: relative;
144
+ z-index: 1;
145
+
146
+ // width: 30px;
147
+ // height: 30px;
148
+ // border-radius: 50%;
149
+ // .ac-nav-button:not(.ac-profile-button) {
150
+ // &:after {
151
+ // content: "";
152
+ // border-radius: 50%;
153
+ // width: 30px;
154
+ // height: 30px;
155
+ // position: absolute;
156
+ // z-index: -1;
157
+ // left: 50%;
158
+ // transition: 0.3s ease-in-out;
159
+ // margin-left: -15px;
160
+ // }
161
+
162
+ // &:hover {
163
+ // &:after {
164
+ // background-color: rgba(255, 255, 255, 0.2) !important;
165
+ // }
166
+ // }
167
+ // }
168
+ }
169
+ }
170
+ }
171
+ }
172
+ // for sidebar-collapsed
173
+ .sidebar-collapsed {
174
+ .ac-navbar {
175
+ .ac-navbar-brand {
176
+ padding-left: 70px !important;
177
+ }
178
+ }
179
+ }
180
+ // start dark theme
181
+ .is-dark-theme {
182
+ body {
183
+ .ac-navbar-area {
184
+ background-color: var(--dark-bg-light);
185
+ --ac-white: #ffffff;
186
+ --ac-white-lighter: #f1f1f1;
187
+
188
+ .ac-navbar {
189
+ .search-item {
190
+ background-color: rgba(0, 0, 0, 0.2);
191
+ }
192
+
193
+ .ac-navbar-menu {
194
+ .ac-menu-item {
195
+ .quick-access {
196
+ --ac-white: var(--dark-bg-light);
197
+ }
198
+
199
+ .ac-menu-content {
200
+ // &.theme-choice {
201
+ // background-color: var(--dark-bg-light);
202
+ // }
203
+
204
+ background-color: var(--dark-bg-light);
205
+
206
+ ul {
207
+ background-color: var(--dark-bg-light);
208
+ }
209
+
210
+ &::after {
211
+ --ac-white: var(--dark-bg-light);
212
+ }
213
+
214
+ .user-profile-wrapper {
215
+ --ac-white: var(--dark-bg-light);
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+
225
+ // end dark theme code
226
+
227
+ /****************************************
228
+ Responsive Classes
229
+ *****************************************/
230
+ // Extra small devices (portrait phones, less than 576px)
231
+ @media (max-width: 575.98px) {
232
+ // .ac-navbar-area {
233
+ // .ac-navbar {
234
+ // grid-template-columns: 60px 30px auto;
235
+
236
+ // .ac-navbar-brand {
237
+ // max-width: 40px;
238
+
239
+ // a {
240
+ // display: block;
241
+ // }
242
+ // }
243
+
244
+ // .search-item {
245
+ // display: inline-block;
246
+
247
+ // input {
248
+ // display: none;
249
+ // }
250
+ // }
251
+
252
+ // .ac-navbar-menu {
253
+ // .ac-menu-item {
254
+ // .ac-nav-button {
255
+ // margin-left: 0px;
256
+
257
+ // &.ac-profile-button {
258
+ // margin-left: 0px;
259
+
260
+ // strong {
261
+ // display: none;
262
+ // }
263
+ // }
264
+ // }
265
+ // }
266
+ // }
267
+ // }
268
+ // }
269
+ }
270
+
271
+ // Small devices (landscape phones, 576px and up)
272
+ @media (min-width: 576px) and (max-width: 767.98px) {
273
+ }
274
+
275
+ // Medium devices (tablets, 768px and up)
276
+ @media (min-width: 768px) and (max-width: 991.98px) {
277
+ // .ac-navbar-area {
278
+ // .ac-navbar {
279
+ // grid-template-columns: 250px auto auto;
280
+ // }
281
+ // }
282
+ }
283
+
284
+ // Large devices (desktops, 992px and up)
285
+ @media (min-width: 992px) and (max-width: 1199.98px) {
286
+ // .ac-navbar-area {
287
+ // .ac-navbar {
288
+ // grid-template-columns: 270px auto auto;
289
+ // }
290
+ // }
291
+ }
292
+
293
+ // Extra large devices (large desktops, 1200px and up)
294
+ @media (min-width: 1200px) {
295
+ }
296
+ </style>
@@ -0,0 +1,81 @@
1
+ <script setup lang="ts">
2
+ interface Props {
3
+ modifierClasses?: string;
4
+ }
5
+
6
+ withDefaults(defineProps<Props>(), {
7
+ modifierClasses: "",
8
+ });
9
+ </script>
10
+
11
+ <template>
12
+ <div class="ac-menu-item" :class="modifierClasses">
13
+ <button class="button ac-nav-button">
14
+ <slot name="navbar-item" />
15
+ </button>
16
+ <slot name="navbar-content" />
17
+ </div>
18
+ </template>
19
+
20
+ <style lang="scss" scoped>
21
+ .ac-menu-item {
22
+ margin-left: 12px;
23
+ position: relative;
24
+
25
+ &:first-child {
26
+ margin-left: 0;
27
+ }
28
+ &.ac-profile-button {
29
+ button.button.ac-nav-button {
30
+ width: 100%;
31
+ background-color: transparent;
32
+ border-radius: 0;
33
+ font-weight: 500;
34
+ border: none;
35
+ // .ac-user-profile {
36
+ // img {
37
+ // border-radius: 50%;
38
+ // width: 32px;
39
+ // height: 32px;
40
+ // }
41
+ // }
42
+ &::after {
43
+ border-radius: 0;
44
+ border: none;
45
+ background-color: transparent;
46
+ }
47
+ }
48
+ }
49
+ .ac-nav-button {
50
+ width: 32px;
51
+ height: 32px;
52
+ border-radius: 50%;
53
+ padding: 5px;
54
+ transition: all 0.3s ease-in-out;
55
+ position: relative;
56
+ z-index: 99;
57
+ user-select: none;
58
+ cursor: pointer;
59
+ &:after {
60
+ position: absolute;
61
+ content: "";
62
+ left: 0;
63
+ top: 0;
64
+
65
+ background-color: $primary-80;
66
+ opacity: 0.2;
67
+ width: 100%;
68
+ height: 100%;
69
+ border-radius: 50%;
70
+ transition: 0.3s ease-in-out;
71
+ }
72
+
73
+ &:hover {
74
+ &:after {
75
+ background-color: $primary-70;
76
+ opacity: 0.4;
77
+ }
78
+ }
79
+ }
80
+ }
81
+ </style>