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

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 (186) hide show
  1. package/base/utilities/_all.scss +1 -1
  2. package/base/utilities/_default.scss +41 -41
  3. package/base/utilities/_derived-variables.scss +8 -9
  4. package/base/utilities/_extended.scss +1 -1
  5. package/base/utilities/_initial-variables.scss +52 -50
  6. package/base/utilities/_mixin.scss +11 -11
  7. package/base/utilities/_typography.scss +22 -22
  8. package/base/utilities/dark-theme.scss +1 -1
  9. package/components/_ac-accordion.scss +6 -6
  10. package/components/_ac-alert-box.scss +27 -28
  11. package/components/_ac-calendar.scss +4 -4
  12. package/components/_ac-card.scss +55 -55
  13. package/components/_ac-code-highlight.scss +6 -6
  14. package/components/_ac-content-layout.scss +165 -165
  15. package/components/_ac-drag.scss +11 -11
  16. package/components/_ac-input.scss +85 -85
  17. package/components/_ac-modal.scss +8 -8
  18. package/components/_ac-multi-select.scss +751 -751
  19. package/components/_ac-options.scss +12 -13
  20. package/components/_ac-select-box.scss +5 -5
  21. package/components/_ac-table.scss +55 -55
  22. package/components/_ac-tabs.scss +36 -36
  23. package/components/_ac-tags.scss +22 -22
  24. package/components/_ac-terminal.scss +253 -253
  25. package/components/_add-card.scss +3 -3
  26. package/components/_app-drawer.scss +4 -4
  27. package/components/_basic-card.scss +108 -118
  28. package/components/_breadcumb.scss +5 -5
  29. package/components/_buttons.scss +64 -64
  30. package/components/_card-body-wrapper.scss +5 -5
  31. package/components/_dashboard-header.scss +29 -29
  32. package/components/_direct-deploy.scss +8 -8
  33. package/components/_go-to-top.scss +1 -1
  34. package/components/_image-upload.scss +3 -3
  35. package/components/_left-sidebar-menu.scss +374 -376
  36. package/components/_monaco-editor.scss +1 -1
  37. package/components/_navbar.scss +65 -65
  38. package/components/_nested-list.scss +1 -1
  39. package/components/_overview-info.scss +7 -7
  40. package/components/_overview-page.scss +4 -4
  41. package/components/_pagination.scss +110 -110
  42. package/components/_payment-card.scss +20 -20
  43. package/components/_preloader.scss +1 -1
  44. package/components/_preview-modal.scss +18 -18
  45. package/components/_pricing-table.scss +10 -10
  46. package/components/_progress-bar.scss +12 -12
  47. package/components/_subscription-card.scss +14 -14
  48. package/components/_table-of-content.scss +4 -4
  49. package/components/_tfa.scss +9 -9
  50. package/components/_widget-menu.scss +17 -17
  51. package/components/_wizard.scss +82 -82
  52. package/components/ac-toaster/_ac-toasted.scss +1 -1
  53. package/components/bbum/_activities-header.scss +1 -1
  54. package/components/bbum/_card-team.scss +12 -12
  55. package/components/bbum/_information-center.scss +13 -13
  56. package/components/bbum/_left-sidebar.scss +8 -8
  57. package/components/bbum/_mobile-desktop.scss +7 -7
  58. package/components/bbum/_post.scss +5 -5
  59. package/components/bbum/_sign-up-notification.scss +10 -10
  60. package/components/bbum/_single-post-preview.scss +21 -21
  61. package/components/bbum/_user-profile.scss +10 -10
  62. package/components/ui-builder/_ui-builder.scss +15 -15
  63. package/components/ui-builder/_vue-open-api.scss +2 -2
  64. package/layouts/_code-preview.scss +11 -11
  65. package/package.json +1 -1
  66. package/vue-components/plugins/time-convert.js +49 -0
  67. package/vue-components/text.vue +1 -0
  68. package/vue-components/types/cluster.ts +6 -0
  69. package/vue-components/types/longRunningTasks.ts +20 -0
  70. package/vue-components/types/notification.ts +6 -0
  71. package/vue-components/types/previewYaml.ts +8 -0
  72. package/vue-components/types/table.ts +54 -0
  73. package/vue-components/types/theme.ts +10 -0
  74. package/vue-components/types/user.ts +22 -0
  75. package/vue-components/v2/card/OverviewCards.vue +17 -2
  76. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
  77. package/vue-components/v2/icons/Ellipsis.vue +2 -1
  78. package/vue-components/v2/modal/Modal.vue +0 -5
  79. package/vue-components/v2/navbar/Appdrawer.vue +37 -12
  80. package/vue-components/v2/navbar/Navbar.vue +3 -3
  81. package/vue-components/v2/navbar/NavbarItem.vue +3 -1
  82. package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
  83. package/vue-components/v2/navbar/User.vue +5 -22
  84. package/vue-components/v2/pagination/Pagination.vue +65 -0
  85. package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
  86. package/vue-components/v3/accordion/Accordion.vue +151 -0
  87. package/vue-components/v3/alert/Alert.vue +238 -0
  88. package/vue-components/v3/alert/Toast.vue +79 -0
  89. package/vue-components/v3/banner/Banner.vue +10 -0
  90. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +104 -0
  91. package/vue-components/v3/button/Button.vue +831 -58
  92. package/vue-components/v3/button/Buttons.vue +6 -0
  93. package/vue-components/v3/button/DownloadBtn.vue +31 -0
  94. package/vue-components/v3/cards/Card.vue +32 -0
  95. package/vue-components/v3/cards/CardContent.vue +7 -0
  96. package/vue-components/v3/cards/CardHeader.vue +14 -0
  97. package/vue-components/v3/cards/Cards.vue +7 -0
  98. package/vue-components/v3/cards/Cluster.vue +150 -0
  99. package/vue-components/v3/cards/Counter.vue +27 -0
  100. package/vue-components/v3/cards/FeatureCard.vue +40 -0
  101. package/vue-components/v3/cards/FeatureCards.vue +6 -0
  102. package/vue-components/v3/cards/InfoCard.vue +248 -0
  103. package/vue-components/v3/cards/Monitoring.vue +94 -0
  104. package/vue-components/v3/cards/OverviewCard.vue +24 -0
  105. package/vue-components/v3/cards/OverviewCards.vue +31 -0
  106. package/vue-components/v3/cards/Payment.vue +62 -0
  107. package/vue-components/v3/cards/Vendor.vue +23 -0
  108. package/vue-components/v3/content/ContentHeader.vue +39 -30
  109. package/vue-components/v3/content/ContentLayout.vue +20 -0
  110. package/vue-components/v3/content/ContentTable.vue +37 -61
  111. package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
  112. package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
  113. package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
  114. package/vue-components/v3/editor/Editor.vue +100 -113
  115. package/vue-components/v3/editor/FilteredFileEditor.vue +124 -127
  116. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +70 -94
  117. package/vue-components/v3/footer/FooterArea.vue +34 -0
  118. package/vue-components/v3/footer/FooterItem.vue +29 -0
  119. package/vue-components/v3/footer/FooterItems.vue +15 -0
  120. package/vue-components/v3/footer/Info.vue +23 -0
  121. package/vue-components/v3/footer/Status.vue +42 -0
  122. package/vue-components/v3/footer/Usage.vue +44 -0
  123. package/vue-components/v3/form/Form.vue +24 -33
  124. package/vue-components/v3/form/FormFooterControl.vue +7 -0
  125. package/vue-components/v3/form/FormFooterControls.vue +7 -0
  126. package/vue-components/v3/form-fields/AcSingleInput.vue +520 -0
  127. package/vue-components/v3/form-fields/Input.vue +19 -14
  128. package/vue-components/v3/header/Header.vue +117 -24
  129. package/vue-components/v3/header/HeaderItem.vue +18 -0
  130. package/vue-components/v3/header/HeaderItems.vue +4 -0
  131. package/vue-components/v3/icons/Ellipsis.vue +2 -0
  132. package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
  133. package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
  134. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +17 -15
  135. package/vue-components/v3/modal/Modal.vue +292 -96
  136. package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
  137. package/vue-components/v3/modals/JsonShowModal.vue +62 -68
  138. package/vue-components/v3/modals/LongRunningTasksModal.vue +145 -143
  139. package/vue-components/v3/navbar/Appdrawer.vue +196 -51
  140. package/vue-components/v3/navbar/Navbar.vue +296 -0
  141. package/vue-components/v3/navbar/NavbarItem.vue +81 -0
  142. package/vue-components/v3/navbar/NavbarItemContent.vue +284 -0
  143. package/vue-components/v3/navbar/Notification.vue +179 -0
  144. package/vue-components/v3/navbar/ThemeMode.vue +128 -112
  145. package/vue-components/v3/navbar/User.vue +383 -268
  146. package/vue-components/v3/notification/AlertBox.vue +39 -42
  147. package/vue-components/v3/notification/Notification.vue +49 -43
  148. package/vue-components/v3/notification/NotificationItem.vue +51 -19
  149. package/vue-components/v3/option-dots/Options.vue +188 -0
  150. package/vue-components/v3/pagination/Pagination.vue +203 -99
  151. package/vue-components/v3/preloader/Preloader.vue +23 -0
  152. package/vue-components/v3/searchbars/SearchBar.vue +51 -34
  153. package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
  154. package/vue-components/v3/sidebar/ClusterSwitcher.vue +834 -81
  155. package/vue-components/v3/sidebar/Sidebar.vue +271 -0
  156. package/vue-components/v3/sidebar/SidebarBody.vue +7 -0
  157. package/vue-components/v3/sidebar/SidebarFooter.vue +80 -0
  158. package/vue-components/v3/sidebar/SidebarHeader.vue +124 -0
  159. package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
  160. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
  161. package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
  162. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +128 -0
  163. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +29 -0
  164. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
  165. package/vue-components/v3/tab/TabItem.vue +10 -12
  166. package/vue-components/v3/tab/Tabs.vue +9 -0
  167. package/vue-components/v3/tab/TabsBody.vue +7 -0
  168. package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
  169. package/vue-components/v3/table/FakeTableCell.vue +22 -31
  170. package/vue-components/v3/table/InfoTable.vue +85 -59
  171. package/vue-components/v3/table/MultiInfoTable.vue +72 -95
  172. package/vue-components/v3/table/Table.vue +582 -151
  173. package/vue-components/v3/table/TableCell.vue +20 -23
  174. package/vue-components/v3/table/TableContainer.vue +50 -28
  175. package/vue-components/v3/table/TableRow.vue +63 -85
  176. package/vue-components/v3/table/table-cell/ArrayCell.vue +67 -79
  177. package/vue-components/v3/table/table-cell/CellValue.vue +97 -103
  178. package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
  179. package/vue-components/v3/table/table-cell/ObjectCell.vue +67 -79
  180. package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
  181. package/vue-components/v3/tabs/EditorTabs.vue +18 -24
  182. package/vue-components/v3/tag/Tag.vue +15 -12
  183. package/vue-components/v3/tag/Tags.vue +7 -0
  184. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +26 -23
  185. package/mixins/stickyContent.js +0 -141
  186. package/plugins/caching.ts +0 -243
@@ -1,50 +1,27 @@
1
- <template>
2
- <!-- alert-message area start -->
3
- <!-- plsease, use this class name ('.is-info' 'is-success', 'is-error', 'is-warning') -->
4
- <div :class="`ac-notification is-${notificationType} mb-15`">
5
- <p>
6
- <i v-if="!hideIcon" :class="`fa ${iconClass} mr-5`"></i
7
- ><span v-html="getSanitizedHtml(content)"></span>
8
- <ac-button
9
- v-if="actionButton?.show"
10
- :title="actionButton?.title"
11
- :icon-class="actionButton?.iconClass"
12
- data-testid="notification-action-button"
13
- @click.prevent="actionButton?.action()"
14
- >
15
- </ac-button>
16
- </p>
17
- </div>
18
- <!-- alert-message area end -->
19
- </template>
20
-
21
1
  <script setup lang="ts">
22
2
  import { toRefs, computed, defineAsyncComponent } from "vue";
23
3
  import DOMPurify from "dompurify";
24
4
 
25
- const AcButton = defineAsyncComponent(
26
- () => import("@appscode/design-system/vue-components/v3/button/Button.vue")
27
- );
5
+ const AcButton = defineAsyncComponent(() => import("../button/Button.vue"));
6
+
7
+ interface Props {
8
+ notificationType?: string;
9
+ content?: string;
10
+ hideIcon?: boolean;
11
+ actionButton?: {
12
+ show: boolean;
13
+ title: string;
14
+ iconClass: string;
15
+ action: (...args: any) => void | undefined;
16
+ };
17
+ }
28
18
 
29
- const props = withDefaults(
30
- defineProps<{
31
- notificationType: string;
32
- content: string;
33
- hideIcon: boolean;
34
- actionButton?: {
35
- show: boolean;
36
- title: string;
37
- iconClass: string;
38
- action: (...args: any) => void | undefined;
39
- };
40
- }>(),
41
- {
42
- notificationType: "",
43
- content: "",
44
- hideIcon: false,
45
- actionButton: undefined,
46
- }
47
- );
19
+ const props = withDefaults(defineProps<Props>(), {
20
+ notificationType: "",
21
+ content: "",
22
+ hideIcon: false,
23
+ actionButton: undefined,
24
+ });
48
25
 
49
26
  const { notificationType, content, hideIcon, actionButton } = toRefs(props);
50
27
 
@@ -59,3 +36,23 @@ const getSanitizedHtml = (content: string) => {
59
36
  return DOMPurify.sanitize(content || "");
60
37
  };
61
38
  </script>
39
+
40
+ <template>
41
+ <!-- alert-message area start -->
42
+ <!-- plsease, use this class name ('.is-info' 'is-success', 'is-error', 'is-warning') -->
43
+ <div :class="`ac-notification is-${notificationType} mb-15`">
44
+ <p>
45
+ <i v-if="!hideIcon" :class="`fa ${iconClass} mr-5`"></i
46
+ ><span v-html="getSanitizedHtml(content)"></span>
47
+ <ac-button
48
+ v-if="actionButton?.show"
49
+ :title="actionButton?.title"
50
+ :icon-class="actionButton?.iconClass"
51
+ data-testid="notification-action-button"
52
+ @click.prevent="actionButton?.action()"
53
+ >
54
+ </ac-button>
55
+ </p>
56
+ </div>
57
+ <!-- alert-message area end -->
58
+ </template>
@@ -1,53 +1,16 @@
1
- <template>
2
- <div
3
- @mouseenter="notificationPanelOpen = true"
4
- @mouseleave="notificationPanelOpen = false"
5
- >
6
- <button class="button ac-nav-button">
7
- <span v-if="unreadCount">{{ unreadCount }}</span>
8
- <i
9
- class="fa fa-bell"
10
- :class="{ 'ac-shake': unreadCount }"
11
- aria-hidden="true"
12
- ></i>
13
- </button>
14
- <div class="ac-menu-content is-notification">
15
- <div class="notification-header">
16
- <div class="left-content">
17
- <p>
18
- Notifications <span>({{ notifications.length }})</span>
19
- </p>
20
- </div>
21
- <div class="right-content"></div>
22
- </div>
23
- <div :key="notificationPanelOpen ? 1 : 0" class="notification-body">
24
- <transition-group v-if="notifications.length" name="slide-right">
25
- <notification-item
26
- v-for="notification in notifications"
27
- :key="`${notification.id}${unreadCount}`"
28
- :notification="notification"
29
- />
30
- </transition-group>
31
- <span v-else class="single-notification-item"
32
- >No new notifications</span
33
- >
34
- </div>
35
- </div>
36
- </div>
37
- </template>
38
-
39
1
  <script setup lang="ts">
40
- import { NatsConnection, StringCodec, Subscription } from "nats.ws";
2
+ import { StringCodec } from "nats.ws";
3
+ import type { NatsConnection, Subscription } from "nats.ws";
41
4
  import {
42
5
  computed,
43
6
  defineAsyncComponent,
44
7
  getCurrentInstance,
45
8
  ref,
46
- Ref,
47
9
  watch,
48
10
  } from "vue";
49
- import { TaskLog } from "../../../typings/long-running-tasks";
50
- import { Notification } from "../../../typings/notification";
11
+ import type { Ref } from "vue";
12
+ import type { TaskLog } from "../../types/longRunningTasks";
13
+ import type { Notification } from "../../types/notification";
51
14
 
52
15
  const NotificationItem = defineAsyncComponent(
53
16
  () => import("./NotificationItem.vue")
@@ -81,13 +44,18 @@ async function subscribeToNotifcations() {
81
44
 
82
45
  if (subscription) {
83
46
  // listen to channel events
47
+ //@ts-ignore
84
48
  for await (const msg of subscription) {
85
49
  console.log("notifications ===>");
86
50
  console.log({ data: StringCodec().decode(msg.data) });
87
51
  const log: TaskLog = JSON.parse(StringCodec().decode(msg.data));
88
52
  console.log({ log });
89
53
  const currentTime = new Date().getTime();
90
- addNewNotification({ ...log, id: currentTime, time: currentTime });
54
+ addNewNotification({
55
+ ...log,
56
+ id: String(currentTime),
57
+ time: currentTime,
58
+ });
91
59
  msg.respond();
92
60
  }
93
61
  console.log("Stopped listening to Notifications");
@@ -96,3 +64,41 @@ async function subscribeToNotifcations() {
96
64
  }
97
65
  subscribeToNotifcations();
98
66
  </script>
67
+
68
+ <template>
69
+ <div
70
+ @mouseenter="notificationPanelOpen = true"
71
+ @mouseleave="notificationPanelOpen = false"
72
+ >
73
+ <button class="button ac-nav-button">
74
+ <span v-if="unreadCount">{{ unreadCount }}</span>
75
+ <i
76
+ class="fa fa-bell"
77
+ :class="{ 'ac-shake': unreadCount }"
78
+ aria-hidden="true"
79
+ ></i>
80
+ </button>
81
+ <div class="ac-menu-content is-notification">
82
+ <div class="notification-header">
83
+ <div class="left-content">
84
+ <p>
85
+ Notifications <span>({{ notifications.length }})</span>
86
+ </p>
87
+ </div>
88
+ <div class="right-content"></div>
89
+ </div>
90
+ <div :key="notificationPanelOpen ? 1 : 0" class="notification-body">
91
+ <transition-group v-if="notifications.length" name="slide-right">
92
+ <notification-item
93
+ v-for="notification in notifications"
94
+ :key="`${notification.id}${unreadCount}`"
95
+ :notification="notification"
96
+ />
97
+ </transition-group>
98
+ <span v-else class="single-notification-item"
99
+ >No new notifications</span
100
+ >
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </template>
@@ -1,3 +1,54 @@
1
+ <script setup lang="ts">
2
+ import { computed, toRefs } from "vue";
3
+ import moment from "moment";
4
+ import type { Notification } from "../../types/notification";
5
+
6
+ interface Props {
7
+ notification?: Notification;
8
+ }
9
+
10
+ const props = withDefaults(defineProps<Props>(), {
11
+ notification: () => ({
12
+ id: "0",
13
+ status: "Pending",
14
+ time: 0,
15
+ }),
16
+ });
17
+
18
+ const getDayDifferences = (options: { past: number }) => {
19
+ const past = moment(options.past).isValid()
20
+ ? moment(options.past).valueOf() / 1000
21
+ : options.past;
22
+ const now = Date.now() / 1000;
23
+ const diff = now - past;
24
+ if (options.past > 10) {
25
+ let ret = Math.floor(diff / 86400);
26
+ let unit = "";
27
+ if (diff < 60) {
28
+ ret = diff;
29
+ unit = " Second";
30
+ } else if (diff < 3600) {
31
+ ret = diff / 60;
32
+ unit = " Minute";
33
+ } else if (diff < 86400) {
34
+ ret = diff / 3600;
35
+ unit = " Hour";
36
+ } else {
37
+ ret = diff / 86400;
38
+ unit = " Day";
39
+ }
40
+ unit += ret > 1 ? "s" : "";
41
+ return ret + unit;
42
+ }
43
+ return undefined;
44
+ };
45
+
46
+ const { notification } = toRefs(props);
47
+ const notificationTime = computed(() =>
48
+ getDayDifferences({ past: notification?.value?.time || 0 })
49
+ );
50
+ </script>
51
+
1
52
  <template>
2
53
  <a class="single-notification-item is-complete">
3
54
  <p>
@@ -31,22 +82,3 @@
31
82
  </div>
32
83
  </a>
33
84
  </template>
34
-
35
- <script setup lang="ts">
36
- import { computed, toRefs } from 'vue'
37
- import { Notification } from '../../../typings/notification'
38
- import TimeConvert from '../../../plugins/time-convert'
39
-
40
- const props = withDefaults(defineProps<{ notification: Notification }>(), {
41
- notification: () => ({
42
- id: 0,
43
- status: 'Pending',
44
- time: 0,
45
- }),
46
- })
47
-
48
- const { notification } = toRefs(props)
49
- const notificationTime = computed(() =>
50
- TimeConvert.getDayDifferences({ past: notification.value.time })
51
- )
52
- </script>
@@ -0,0 +1,188 @@
1
+ <script setup lang="ts">
2
+ import { type Ref, onMounted, onUnmounted, ref } from "vue";
3
+
4
+ interface Props {
5
+ modifierClasses?: string;
6
+ position?: string;
7
+ }
8
+
9
+ withDefaults(defineProps<Props>(), {
10
+ modifierClasses: "",
11
+ position: "",
12
+ });
13
+
14
+ const showOptions = ref(false);
15
+
16
+ onMounted(() => {
17
+ document.addEventListener("click", documentClick);
18
+ });
19
+ onUnmounted(() => {
20
+ document.removeEventListener("click", documentClick);
21
+ });
22
+ const clusterOptionsButtons: Ref<HTMLElement | null> = ref(null);
23
+
24
+ const documentClick = (e: Event) => {
25
+ const el = clusterOptionsButtons.value;
26
+ const target = e.target as HTMLInputElement;
27
+ if (el != target && !el?.contains(target)) {
28
+ showOptions.value = false;
29
+ }
30
+ };
31
+ </script>
32
+ <template>
33
+ <button
34
+ class="ac-options"
35
+ ref="clusterOptionsButtons"
36
+ data-testid="cluster-option-buttons"
37
+ :class="position"
38
+ @click.prevent.stop="showOptions = !showOptions"
39
+ >
40
+ <div class="option-dots">
41
+ <span></span>
42
+ <span></span>
43
+ <span></span>
44
+ </div>
45
+ <!-- dropdown Item start -->
46
+ <!-- use "is-hidden" class in the line below for hide dropdown element -->
47
+ <slot v-if="showOptions" />
48
+ <!-- dropdown Item end -->
49
+ </button>
50
+ </template>
51
+
52
+ <style lang="scss">
53
+ .ac-options {
54
+ position: relative;
55
+ z-index: 9;
56
+ background-color: transparent;
57
+ border: none;
58
+ box-shadow: none;
59
+ &:focus-within {
60
+ .options-items {
61
+ opacity: 1;
62
+ visibility: visible;
63
+ }
64
+ }
65
+
66
+ &.is-horaizental {
67
+ .option-dots {
68
+ flex-direction: row;
69
+
70
+ span {
71
+ margin-bottom: 0;
72
+ margin-right: 2px;
73
+ }
74
+ }
75
+ }
76
+
77
+ &.is-centered {
78
+ .option-dots {
79
+ align-items: center;
80
+ }
81
+
82
+ .options-items {
83
+ left: 50%;
84
+ }
85
+ }
86
+
87
+ &.is-right {
88
+ .option-dots {
89
+ align-items: flex-end;
90
+ padding: 0 10px;
91
+ margin-right: -10px;
92
+ }
93
+
94
+ .options-items {
95
+ right: 0px;
96
+ }
97
+ }
98
+
99
+ .option-dots {
100
+ display: flex;
101
+ flex-direction: column;
102
+ cursor: pointer;
103
+ align-items: flex-start;
104
+ border: none;
105
+ background-color: transparent;
106
+ transition: 0.3 ease-in-out;
107
+
108
+ &:hover {
109
+ color: $primary;
110
+ }
111
+
112
+ span {
113
+ width: 4px;
114
+ height: 4px;
115
+ background-color: $primary-20;
116
+ border-radius: 50%;
117
+ margin-bottom: 1px;
118
+ }
119
+ }
120
+
121
+ .options-items {
122
+ border-radius: 4px;
123
+ position: absolute;
124
+ z-index: 99;
125
+ background-color: $white-100;
126
+ min-width: 160px;
127
+ top: 30px;
128
+ padding: 5px 0;
129
+ border: 1px solid $primary-90;
130
+ list-style: none;
131
+ opacity: 0;
132
+ visibility: hidden;
133
+ transition: 0.3s ease-in-out;
134
+
135
+ li {
136
+ .list-button {
137
+ width: 100%;
138
+ background-color: transparent;
139
+ border: none;
140
+ cursor: pointer;
141
+ font-weight: 400;
142
+ text-align: left;
143
+ color: $primary-20;
144
+ font-size: 13px;
145
+ padding: 10px 30px;
146
+ display: block;
147
+
148
+ &:hover {
149
+ background-color: $primary-90;
150
+ color: $primary;
151
+ }
152
+
153
+ span {
154
+ background-color: transparent;
155
+
156
+ &.icon {
157
+ margin-right: 5px;
158
+ }
159
+ }
160
+ }
161
+
162
+ a {
163
+ font-size: 13px;
164
+ padding: 7px 15px;
165
+ display: block;
166
+ text-decoration: none !important;
167
+ color: $primary-10 !important;
168
+ border: none;
169
+
170
+ &:hover {
171
+ background-color: $primary-90;
172
+ color: $primary !important;
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+
179
+ // dark theme start
180
+ .is-dark-theme {
181
+ .ac-options {
182
+ .options-items {
183
+ --ac-white: var(--dark-bg-light);
184
+ }
185
+ }
186
+ }
187
+ // dark theme end
188
+ </style>