@appscode/design-system 1.1.0 → 2.0.0

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 (215) hide show
  1. package/base/_video-player.scss +65 -0
  2. package/base/utilities/_all.scss +7 -5
  3. package/base/utilities/_colors.scss +377 -0
  4. package/base/utilities/_customize-bulma.scss +23 -27
  5. package/base/utilities/_extended.scss +39 -0
  6. package/base/utilities/{_default.scss → _global.scss} +192 -333
  7. package/base/utilities/_layouts.scss +19 -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/components/_ac-alert-box.scss +205 -263
  12. package/components/_ac-calendar.scss +4 -4
  13. package/components/_ac-code-highlight.scss +13 -16
  14. package/components/_ac-content-layout.scss +165 -165
  15. package/components/_ac-drag.scss +13 -13
  16. package/components/_ac-modal.scss +212 -212
  17. package/components/_ac-options.scss +122 -123
  18. package/components/_ac-select-box.scss +10 -10
  19. package/components/_ac-table.scss +503 -502
  20. package/components/_ac-tabs.scss +65 -61
  21. package/components/_ac-tags.scss +116 -116
  22. package/components/_accordion.scss +117 -0
  23. package/components/_add-card.scss +3 -3
  24. package/components/_all.scss +35 -28
  25. package/components/_app-drawer.scss +0 -134
  26. package/components/_breadcumb.scss +0 -71
  27. package/components/_buttons.scss +779 -779
  28. package/components/_card-body-wrapper.scss +5 -5
  29. package/components/_dashboard-header.scss +0 -115
  30. package/components/_direct-deploy.scss +8 -8
  31. package/components/_getkeeper.scss +110 -0
  32. package/components/_go-to-top.scss +1 -1
  33. package/components/_graph.scss +10 -10
  34. package/components/_image-upload.scss +9 -9
  35. package/components/_input-card.scss +232 -0
  36. package/components/_input.scss +573 -0
  37. package/components/_left-sidebar-menu.scss +452 -587
  38. package/components/_monaco-editor.scss +2 -2
  39. package/components/{_ac-multi-select.scss → _multi-select.scss} +89 -251
  40. package/components/_navbar.scss +786 -752
  41. package/components/_nested-list.scss +3 -3
  42. package/components/_overview-info.scss +10 -10
  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 +14 -14
  49. package/components/_progress-bar.scss +73 -86
  50. package/components/_subscription-card.scss +22 -24
  51. package/components/_table-of-content.scss +8 -8
  52. package/components/{_ac-terminal.scss → _terminal.scss} +114 -81
  53. package/components/_tfa.scss +9 -9
  54. package/components/_transitions.scss +35 -0
  55. package/components/_widget-menu.scss +252 -257
  56. package/components/_wizard.scss +518 -793
  57. package/components/ac-toaster/_ac-toasted.scss +11 -16
  58. package/components/bbum/_activities-header.scss +1 -1
  59. package/components/bbum/_card-team.scss +12 -12
  60. package/components/bbum/_information-center.scss +21 -23
  61. package/components/bbum/_left-sidebar.scss +8 -8
  62. package/components/bbum/_mobile-desktop.scss +16 -21
  63. package/components/bbum/_post.scss +5 -5
  64. package/components/bbum/_sign-up-notification.scss +10 -10
  65. package/components/bbum/_single-post-preview.scss +29 -29
  66. package/components/bbum/_user-profile.scss +10 -10
  67. package/components/ui-builder/_ui-builder.scss +221 -31
  68. package/components/ui-builder/_vue-open-api.scss +565 -7
  69. package/icons/close-icon.svg +3 -0
  70. package/layouts/_code-preview.scss +17 -18
  71. package/main.scss +26 -10
  72. package/package.json +1 -1
  73. package/plugins/theme.js +11 -9
  74. package/plugins/vue-toaster.js +1 -1
  75. package/vue-components/images/icons/cluster-icon.svg +10 -0
  76. package/vue-components/images/icons/org-icon.svg +10 -0
  77. package/vue-components/plugins/time-convert.js +49 -0
  78. package/vue-components/types/cluster.ts +6 -0
  79. package/vue-components/types/importFlow.ts +16 -0
  80. package/vue-components/types/notification.ts +6 -0
  81. package/vue-components/types/previewYaml.ts +8 -0
  82. package/vue-components/types/table.ts +55 -0
  83. package/vue-components/types/theme.ts +10 -0
  84. package/vue-components/types/user.ts +22 -0
  85. package/vue-components/v2/banner/Banner.vue +1 -1
  86. package/vue-components/v2/button/Buttons.vue +1 -1
  87. package/vue-components/v2/card/Card.vue +1 -1
  88. package/vue-components/v2/card/OverviewCards.vue +17 -2
  89. package/vue-components/v2/content/ContentTable.vue +14 -9
  90. package/vue-components/v2/editor/FilteredFileEditor.vue +2 -2
  91. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +21 -21
  92. package/vue-components/v2/icons/Ellipsis.vue +2 -1
  93. package/vue-components/v2/modal/Modal.vue +2 -6
  94. package/vue-components/v2/navbar/Appdrawer.vue +37 -12
  95. package/vue-components/v2/navbar/Navbar.vue +3 -3
  96. package/vue-components/v2/navbar/NavbarItem.vue +3 -1
  97. package/vue-components/v2/navbar/NavbarItemContent.vue +1 -1
  98. package/vue-components/v2/navbar/User.vue +5 -22
  99. package/vue-components/v2/pagination/Pagination.vue +66 -0
  100. package/vue-components/v2/sidebar/SidebarItem.vue +10 -7
  101. package/{components/_ac-accordion.scss → vue-components/v3/accordion/Accordion.vue} +40 -6
  102. package/vue-components/v3/alert/Alert.vue +238 -0
  103. package/vue-components/v3/alert/Toast.vue +79 -0
  104. package/vue-components/v3/banner/Banner.vue +10 -0
  105. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +166 -0
  106. package/vue-components/v3/button/Button.vue +110 -57
  107. package/vue-components/v3/button/Buttons.vue +22 -0
  108. package/vue-components/v3/button/DownloadBtn.vue +31 -0
  109. package/vue-components/v3/cards/Card.vue +32 -0
  110. package/vue-components/v3/cards/CardContent.vue +7 -0
  111. package/vue-components/v3/cards/CardHeader.vue +14 -0
  112. package/vue-components/v3/cards/Cards.vue +7 -0
  113. package/vue-components/v3/cards/Cluster.vue +159 -0
  114. package/vue-components/v3/cards/Counter.vue +39 -0
  115. package/vue-components/v3/cards/FeatureCard.vue +67 -0
  116. package/vue-components/v3/cards/FeatureCards.vue +6 -0
  117. package/vue-components/v3/cards/InfoCard.vue +242 -0
  118. package/vue-components/v3/cards/Monitoring.vue +90 -0
  119. package/vue-components/v3/cards/OrgClusterCard.vue +86 -0
  120. package/vue-components/v3/cards/OverviewCard.vue +28 -0
  121. package/vue-components/v3/cards/OverviewCards.vue +39 -0
  122. package/vue-components/v3/cards/Payment.vue +62 -0
  123. package/vue-components/v3/cards/Vendor.vue +89 -0
  124. package/vue-components/v3/content/ContentHeader.vue +39 -30
  125. package/vue-components/v3/content/ContentLayout.vue +20 -0
  126. package/vue-components/v3/content/ContentTable.vue +44 -58
  127. package/vue-components/v3/dropdown/DropdownAction.vue +95 -0
  128. package/vue-components/v3/dropdown/DropdownDivider.vue +2 -0
  129. package/vue-components/v3/dropdown/DropdownItem.vue +2 -0
  130. package/vue-components/v3/dropdown/DropdownMenu.vue +85 -91
  131. package/vue-components/v3/editor/Editor.vue +117 -115
  132. package/vue-components/v3/editor/FilteredFileEditor.vue +325 -128
  133. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +73 -94
  134. package/vue-components/v3/footer/FooterArea.vue +40 -0
  135. package/vue-components/v3/footer/FooterItem.vue +32 -0
  136. package/vue-components/v3/footer/FooterItems.vue +15 -0
  137. package/vue-components/v3/footer/Info.vue +25 -0
  138. package/vue-components/v3/footer/Status.vue +43 -0
  139. package/vue-components/v3/footer/Usage.vue +34 -0
  140. package/vue-components/v3/form/Form.vue +24 -36
  141. package/vue-components/v3/form/FormFooter.vue +24 -0
  142. package/vue-components/v3/form/FormFooterControl.vue +7 -0
  143. package/vue-components/v3/form/FormFooterControls.vue +7 -0
  144. package/vue-components/v3/form-fields/AcSingleInput.vue +21 -0
  145. package/vue-components/v3/form-fields/FileUpload.vue +89 -0
  146. package/vue-components/v3/form-fields/Input.vue +19 -15
  147. package/vue-components/v3/header/Header.vue +120 -26
  148. package/vue-components/v3/header/HeaderItem.vue +18 -0
  149. package/vue-components/v3/header/HeaderItems.vue +4 -0
  150. package/vue-components/v3/icons/Ellipsis.vue +2 -0
  151. package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +13 -0
  152. package/vue-components/v3/loaders/InfoCardLoader.vue +19 -0
  153. package/vue-components/v3/loaders/ResourceLoader.vue +4 -12
  154. package/vue-components/v3/loaders/SidebarLoader.vue +4 -12
  155. package/vue-components/v3/loaders/SingleInfoCardLoader.vue +24 -0
  156. package/vue-components/v3/modal/Modal.vue +294 -95
  157. package/vue-components/v3/modals/DeleteConfirmationModal.vue +37 -50
  158. package/vue-components/v3/modals/JsonShowModal.vue +63 -68
  159. package/vue-components/v3/navbar/Appdrawer.vue +198 -51
  160. package/vue-components/v3/navbar/Navbar.vue +139 -0
  161. package/vue-components/v3/navbar/NavbarItem.vue +103 -0
  162. package/vue-components/v3/navbar/NavbarItemContent.vue +282 -0
  163. package/vue-components/v3/navbar/Notification.vue +207 -0
  164. package/vue-components/v3/navbar/ThemeMode.vue +128 -112
  165. package/vue-components/v3/navbar/User.vue +394 -267
  166. package/vue-components/v3/notification/AlertBox.vue +266 -39
  167. package/vue-components/v3/notification/Notification.vue +50 -44
  168. package/vue-components/v3/notification/NotificationItem.vue +51 -19
  169. package/vue-components/v3/option-dots/Options.vue +197 -0
  170. package/vue-components/v3/pagination/Pagination.vue +216 -102
  171. package/vue-components/v3/preloader/Preloader.vue +23 -0
  172. package/vue-components/v3/searchbars/SearchBar.vue +50 -34
  173. package/vue-components/v3/sidebar/AccentColorPicker.vue +97 -0
  174. package/vue-components/v3/sidebar/ClusterSwitcher.vue +71 -86
  175. package/vue-components/v3/sidebar/Sidebar.vue +239 -0
  176. package/vue-components/v3/sidebar/SidebarBody.vue +14 -0
  177. package/vue-components/v3/sidebar/SidebarFooter.vue +89 -0
  178. package/vue-components/v3/sidebar/SidebarHeader.vue +131 -0
  179. package/vue-components/v3/sidebar/SidebarItem.vue +62 -0
  180. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +101 -104
  181. package/vue-components/v3/sidebar/SidebarMenuList.vue +9 -0
  182. package/vue-components/v3/sidebar/Steps.vue +152 -0
  183. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabs.vue +204 -0
  184. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +44 -0
  185. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +99 -0
  186. package/vue-components/v3/tab/TabItem.vue +10 -12
  187. package/vue-components/v3/tab/Tabs.vue +36 -0
  188. package/vue-components/v3/tab/TabsBody.vue +7 -0
  189. package/vue-components/v3/table/EmptyTableInfo.vue +8 -0
  190. package/vue-components/v3/table/FakeTableCell.vue +22 -31
  191. package/vue-components/v3/table/InfoTable.vue +89 -61
  192. package/vue-components/v3/table/MultiInfoTable.vue +72 -95
  193. package/vue-components/v3/table/Table.vue +596 -157
  194. package/vue-components/v3/table/TableCell.vue +13 -24
  195. package/vue-components/v3/table/TableContainer.vue +50 -28
  196. package/vue-components/v3/table/TableRow.vue +65 -87
  197. package/vue-components/v3/table/table-cell/ArrayCell.vue +94 -103
  198. package/vue-components/v3/table/table-cell/CellValue.vue +74 -106
  199. package/vue-components/v3/table/table-cell/GenericCell.vue +43 -42
  200. package/vue-components/v3/table/table-cell/ObjectCell.vue +91 -101
  201. package/vue-components/v3/table/table-cell/ValueWithModal.vue +22 -31
  202. package/vue-components/v3/tabs/EditorTabs.vue +18 -24
  203. package/vue-components/v3/tag/Tag.vue +16 -12
  204. package/vue-components/v3/tag/Tags.vue +7 -0
  205. package/base/utilities/_derived-variables.scss +0 -25
  206. package/base/utilities/_initial-variables.scss +0 -215
  207. package/base/utilities/dark-theme.scss +0 -26
  208. package/components/_ac-card.scss +0 -597
  209. package/components/_ac-input.scss +0 -876
  210. package/mixins/stickyContent.js +0 -141
  211. package/plugins/caching.ts +0 -243
  212. package/vue-components/v3/long-running-tasks/LongRunningTaskItem.vue +0 -92
  213. package/vue-components/v3/modals/LongRunningTasksModal.vue +0 -400
  214. package/vue-components/v3/terminal/LongRunningTaskTerminal.vue +0 -148
  215. /package/components/{_ac-report.scss → _report.scss} +0 -0
@@ -80,79 +80,79 @@ export default {
80
80
  DownloadBtn: () => import("./../button/DownloadBtn.vue"),
81
81
  DeleteConfirmationModal: () =>
82
82
  import("./../modals/DeleteConfirmationModal.vue"),
83
- FilteredFileEditor: () => import("./FilteredFileEditor.vue")
83
+ FilteredFileEditor: () => import("./FilteredFileEditor.vue"),
84
84
  },
85
85
  props: {
86
86
  title: {
87
87
  type: String,
88
- default: "Title"
88
+ default: "Title",
89
89
  },
90
90
  isSearchable: {
91
91
  type: Boolean,
92
- default: false
92
+ default: false,
93
93
  },
94
94
  isPreviewLoading: {
95
95
  type: Boolean,
96
- default: false
96
+ default: false,
97
97
  },
98
98
  isEditorReadOnly: {
99
99
  type: Boolean,
100
- default: false
100
+ default: false,
101
101
  },
102
102
  previewYamls: {
103
103
  type: Array,
104
104
  default: () => {
105
105
  [];
106
- }
106
+ },
107
107
  },
108
108
  visibleBtn: {
109
109
  type: Object,
110
110
  default: () => {
111
111
  return {};
112
- }
112
+ },
113
113
  },
114
114
  showMinimap: {
115
115
  type: Boolean,
116
- default: false
116
+ default: false,
117
117
  },
118
118
  isUpdateActive: {
119
119
  type: Boolean,
120
- default: false
120
+ default: false,
121
121
  },
122
122
  deleteModalStatus: {
123
123
  type: String,
124
- default: "closed"
124
+ default: "closed",
125
125
  },
126
126
  editorHeight: {
127
127
  type: Number,
128
- default: 60
128
+ default: 60,
129
129
  },
130
130
  hideHeader: {
131
131
  type: Boolean,
132
- default: false
132
+ default: false,
133
133
  },
134
134
  loaderColor: {
135
135
  type: Object,
136
136
  default: () => {
137
137
  return {};
138
- }
138
+ },
139
139
  },
140
140
  theme: {
141
141
  type: String,
142
- default: "light"
143
- }
142
+ default: "light",
143
+ },
144
144
  },
145
145
  data() {
146
146
  return {
147
147
  activeKey: 0,
148
148
  toggleHideValue: "",
149
- showDeleteDataModal: false
149
+ showDeleteDataModal: false,
150
150
  };
151
151
  },
152
152
  computed: {
153
153
  activeFile() {
154
154
  const activeFile = this.previewYamls.find(
155
- element => element.uid === this.activeKey
155
+ (element) => element.uid === this.activeKey
156
156
  );
157
157
  return activeFile || { content: "", format: "yaml" };
158
158
  },
@@ -175,7 +175,7 @@ export default {
175
175
  showDeleteBtn() {
176
176
  if (this.visibleBtn.showDeleteBtn) return true;
177
177
  else return false;
178
- }
178
+ },
179
179
  },
180
180
  methods: {
181
181
  onCopy() {
@@ -198,12 +198,12 @@ export default {
198
198
  setActiveKey(key) {
199
199
  this.activeKey = key;
200
200
  this.toggleHideValue = this.activeFile.isSecret;
201
- }
201
+ },
202
202
  },
203
203
  watch: {
204
204
  deleteModalStatus(n) {
205
205
  if (n === "closed") this.showDeleteDataModal = false;
206
- }
207
- }
206
+ },
207
+ },
208
208
  };
209
209
  </script>
@@ -1,3 +1,4 @@
1
1
  <template>
2
- <i aria-hidden="true" class="fa fa-ellipsis-h"></i>
2
+ <!-- <i aria-hidden="true" class="fa fa-ellipsis-h"></i> -->
3
+ <span>More...</span>
3
4
  </template>
@@ -11,7 +11,7 @@
11
11
  <div class="ac-modal-inner">
12
12
  <!-- modal header start -->
13
13
  <div class="ac-modal-header">
14
- <h6>{{ title }}</h6>
14
+ <h5>{{ title }}</h5>
15
15
  <header-items>
16
16
  <slot name="modal-header-controls" />
17
17
  <header-item>
@@ -45,11 +45,7 @@
45
45
  <!-- modal footer start -->
46
46
  <div
47
47
  v-if="!hideActionFooter"
48
- class="
49
- ac-modal-footer
50
- action-footer
51
- is-flex is-align-items-center is-justify-content-space-between
52
- "
48
+ class="ac-modal-footer action-footer is-flex is-align-items-center is-justify-content-space-between"
53
49
  >
54
50
  <div>
55
51
  <slot name="modal-footer-left" />
@@ -1,18 +1,43 @@
1
1
  <template>
2
2
  <div class="app-drawer-wrapper is-flex">
3
3
  <div
4
- class="drawer-icon is-flex is-justify-content-center is-align-items-center"
4
+ class="drawer-icon is-flex is-justify-content-center is-align-items-center"
5
5
  >
6
6
  <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' }"
7
+ width="16"
8
+ height="16"
9
+ viewBox="0 0 16 16"
10
+ fill="none"
11
+ xmlns="http://www.w3.org/2000/svg"
12
12
  >
13
13
  <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>
14
+ d="M6.66667 2H2V6.66667H6.66667V2Z"
15
+ stroke="#061B2D"
16
+ stroke-width="1.5"
17
+ stroke-linecap="round"
18
+ stroke-linejoin="round"
19
+ />
20
+ <path
21
+ d="M14 2H9.33337V6.66667H14V2Z"
22
+ stroke="#061B2D"
23
+ stroke-width="1.5"
24
+ stroke-linecap="round"
25
+ stroke-linejoin="round"
26
+ />
27
+ <path
28
+ d="M14 9.33334H9.33337V14H14V9.33334Z"
29
+ stroke="#061B2D"
30
+ stroke-width="1.5"
31
+ stroke-linecap="round"
32
+ stroke-linejoin="round"
33
+ />
34
+ <path
35
+ d="M6.66667 9.33334H2V14H6.66667V9.33334Z"
36
+ stroke="#061B2D"
37
+ stroke-width="1.5"
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ />
16
41
  </svg>
17
42
  </div>
18
43
  <!-- dropdown start -->
@@ -47,11 +72,11 @@ export default {
47
72
  props: {
48
73
  apps: {
49
74
  type: Array,
50
- default: () => []
51
- }
75
+ default: () => [],
76
+ },
52
77
  },
53
78
  components: {
54
- NavbarItemContent: () => import("./NavbarItemContent.vue")
55
- }
79
+ NavbarItemContent: () => import("./NavbarItemContent.vue"),
80
+ },
56
81
  };
57
82
  </script>
@@ -4,9 +4,9 @@
4
4
  <!-- navbar start -->
5
5
  <nav class="ac-navbar">
6
6
  <!-- navbar logo start -->
7
- <div class="ac-navbar-brand">
7
+ <!-- <div class="ac-navbar-brand">
8
8
  <slot name="navbar-brand-logo" />
9
- </div>
9
+ </div> -->
10
10
  <!-- navbar logo end -->
11
11
 
12
12
  <!-- navbar search area start -->
@@ -26,4 +26,4 @@
26
26
  <!-- navbar end -->
27
27
  </div>
28
28
  </div>
29
- </template>
29
+ </template>
@@ -2,4 +2,6 @@
2
2
  <div class="ac-menu-item">
3
3
  <slot />
4
4
  </div>
5
- </template>
5
+ </template>
6
+
7
+ <style></style>
@@ -2,4 +2,4 @@
2
2
  <div class="ac-menu-content">
3
3
  <slot />
4
4
  </div>
5
- </template>
5
+ </template>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <navbar-item>
3
3
  <button class="button ac-nav-button ac-profile-button">
4
- {{ user.full_name || user.username }}
5
- <i class="fa fa-angle-down" aria-hidden="true"></i>
6
4
  <div class="ac-user-profile">
7
5
  <img :src="user.avatar_url" alt="User Photo" />
8
6
  </div>
7
+ {{ user.full_name || user.username }}
8
+ <i class="fa fa-angle-down" aria-hidden="true"></i>
9
9
  </button>
10
10
  <navbar-item-content class="navbar-dropdown-wrapper">
11
11
  <div
@@ -52,13 +52,7 @@
52
52
  key="switcher"
53
53
  >
54
54
  <a
55
- class="
56
- ac-dropdown-button
57
- is-fullwidth
58
- is-flex
59
- is-justify-content-space-between
60
- is-align-items-center
61
- "
55
+ class="ac-dropdown-button is-fullwidth is-flex is-justify-content-space-between is-align-items-center"
62
56
  @click="toggleList()"
63
57
  >
64
58
  <span>Switch Account</span>
@@ -93,13 +87,7 @@
93
87
  />
94
88
  </div>
95
89
  <div
96
- class="
97
- is-flex
98
- is-align-items-center
99
- is-justify-content-space-between
100
- is-fullwidth
101
- ml-10
102
- "
90
+ class="is-flex is-align-items-center is-justify-content-space-between is-fullwidth ml-10"
103
91
  >
104
92
  <div class="org-info">
105
93
  <strong
@@ -117,12 +105,7 @@
117
105
  </div>
118
106
  <span
119
107
  v-if="idx === 0"
120
- class="
121
- material-icons-outlined
122
- font-size-18
123
- ml-10
124
- is-pulled-right
125
- "
108
+ class="material-icons-outlined font-size-18 ml-10 is-pulled-right"
126
109
  >
127
110
  check
128
111
  </span>
@@ -167,3 +167,69 @@ export default {
167
167
  },
168
168
  };
169
169
  </script>
170
+ <style lang="scss" scoped>
171
+ .inner-table-pagination {
172
+ padding: 4px 20px;
173
+ }
174
+
175
+ .pagination-item {
176
+ ul {
177
+ li {
178
+ display: inline-block;
179
+ a {
180
+ display: block;
181
+ width: 20px;
182
+ text-align: center;
183
+ font-size: 13px;
184
+ font-weight: 500;
185
+ border-radius: 4px;
186
+ border: 1px solid $primary-90;
187
+ color: $primary;
188
+ margin-left: 4px;
189
+
190
+ &:hover {
191
+ background-color: $primary !important;
192
+ color: $white-100;
193
+ border: 1px solid $primary-90;
194
+ }
195
+ &.previous {
196
+ background-color: $primary-97;
197
+ }
198
+ &.next {
199
+ background-color: $primary-97;
200
+ }
201
+ &.is-current {
202
+ background-color: $primary;
203
+ color: $white-100;
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ .counting-page,
211
+ .pagination-filter {
212
+ color: $primary-30;
213
+ font-size: 12px;
214
+ span {
215
+ font-weight: 500;
216
+ padding: 0 4px;
217
+ }
218
+ }
219
+ .pagination-filter {
220
+ select {
221
+ background-color: $primary-97;
222
+ border: 1px solid $primary-90;
223
+ border-radius: 2px;
224
+ margin-left: 4px;
225
+ height: 22px;
226
+ padding: 0 4px;
227
+ &:focus,
228
+ &:active,
229
+ &:focus-visible {
230
+ border: 1px solid $primary;
231
+ outline: none;
232
+ }
233
+ }
234
+ }
235
+ </style>
@@ -45,20 +45,23 @@ export default {
45
45
  if (n) {
46
46
  this.$nextTick(() => {
47
47
  setTimeout(() => {
48
- const top = (this.$refs.sidebarItem && this.$refs.sidebarItem.getBoundingClientRect().top) || 0;
48
+ const top =
49
+ (this.$refs.sidebarItem &&
50
+ this.$refs.sidebarItem.getBoundingClientRect().top) ||
51
+ 0;
49
52
  // preventing scroll to options that are already visible
50
53
  if (top > window.innerHeight - 200) {
51
54
  // scroll to selected option item
52
55
  this.$refs.sidebarItem.scrollIntoView({
53
- behavior: 'smooth',
54
- block: "center"
56
+ behavior: "smooth",
57
+ block: "center",
55
58
  });
56
59
  }
57
- }, 500);
60
+ }, 500);
58
61
  });
59
62
  }
60
- }
61
- }
62
- }
63
+ },
64
+ },
65
+ },
63
66
  };
64
67
  </script>
@@ -1,3 +1,36 @@
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
+ <!--use "is-marginless" class for remove margin -->
13
+ <div class="ac-accordion-wrapper" :class="modifierClasses">
14
+ <!-- single accordion item start -->
15
+ <div class="single-accordion-item closed">
16
+ <!-- accordion heading start -->
17
+ <div class="accordion-heading">
18
+ <h6 class="is-small">Hello Accordion title</h6>
19
+ <button class="icon">
20
+ <i class="fa fa-plus" aria-hidden="true"></i>
21
+ </button>
22
+ </div>
23
+ <!-- accordion heading end -->
24
+ <!-- accordion body start -->
25
+ <div class="accordion-body">
26
+ <slot />
27
+ </div>
28
+ <!-- accordion body end -->
29
+ </div>
30
+ <!-- single accordion item end -->
31
+ </div>
32
+ </template>
33
+ <style lang="scss" scoped>
1
34
  .ac-accordion-wrapper {
2
35
  &.is-marginless {
3
36
  .single-accordion-item {
@@ -16,18 +49,18 @@
16
49
  top: 0;
17
50
  width: 4px;
18
51
  height: 100%;
19
- background-color: $ac-primary;
52
+ background-color: $primary;
20
53
  }
21
54
  }
22
55
  }
23
56
  }
24
57
 
25
58
  .single-accordion-item {
26
- background-color: $ac-white;
59
+ background-color: $white-100;
27
60
  padding: 15px 20px;
28
61
  margin-bottom: 15px;
29
62
  border-radius: 4px;
30
- border: 1px solid $ac-white-light;
63
+ border: 1px solid $primary-90;
31
64
 
32
65
  &.open {
33
66
  .accordion-heading {
@@ -56,7 +89,7 @@
56
89
  .icon {
57
90
  width: 20px;
58
91
  height: 20px;
59
- border: 1px solid $ac-white-light;
92
+ border: 1px solid $primary-90;
60
93
  line-height: 20px;
61
94
  display: flex;
62
95
  justify-content: center;
@@ -73,8 +106,8 @@
73
106
  overflow: hidden;
74
107
 
75
108
  p {
76
- font-size: $font-size-small;
77
- color: $ac-color-text;
109
+ font-size: 13px;
110
+ color: $primary-20;
78
111
  line-height: 1.6;
79
112
  }
80
113
  }
@@ -115,3 +148,4 @@ Responsive Classes
115
148
  // Extra large devices (large desktops, 1200px and up)
116
149
  @media (min-width: 1200px) {
117
150
  }
151
+ </style>