adata-ui 4.0.56 → 4.0.58

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.
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "4.0.56",
8
+ "version": "4.0.58",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -1,32 +1,3 @@
1
- <template>
2
- <div
3
- class="inline-flex w-full rounded-md"
4
- :class="twMerge(colorOptions.description[color], textBgClasses)"
5
- >
6
- <div
7
- class="flex items-center justify-center rounded-l-md"
8
- :class="twMerge([colorOptions.icon[color], sizeOptions[size]], iconBgClasses)"
9
- >
10
- <slot name="icon">
11
- <i-info-circle
12
- v-if="iconType == 'circle'"
13
- :class="`w-[${iconSize}] h-[${iconSize}]`"
14
- />
15
- <i-warning-triangle
16
- v-if="iconType == 'triangle'"
17
- :class="`w-[${iconSize}] h-[${iconSize}]`"
18
- />
19
- </slot>
20
- </div>
21
- <div
22
- :class="sizeOptions[size]"
23
- class="rounded-r-md flex items-center"
24
- >
25
- <slot name="default" />
26
- </div>
27
- </div>
28
- </template>
29
-
30
1
  <script setup>
31
2
  import { twMerge } from "tailwind-merge";
32
3
  defineOptions({ name: "AAlert" });
@@ -60,3 +31,32 @@ const colorOptions = {
60
31
  }
61
32
  };
62
33
  </script>
34
+
35
+ <template>
36
+ <div
37
+ class="inline-flex w-full rounded-md"
38
+ :class="twMerge(colorOptions.description[color], textBgClasses)"
39
+ >
40
+ <div
41
+ class="flex items-center justify-center rounded-l-md"
42
+ :class="twMerge([colorOptions.icon[color], sizeOptions[size]], iconBgClasses)"
43
+ >
44
+ <slot name="icon">
45
+ <i-info-circle
46
+ v-if="iconType == 'circle'"
47
+ :class="`w-[${iconSize}] h-[${iconSize}]`"
48
+ />
49
+ <i-warning-triangle
50
+ v-if="iconType == 'triangle'"
51
+ :class="`w-[${iconSize}] h-[${iconSize}]`"
52
+ />
53
+ </slot>
54
+ </div>
55
+ <div
56
+ :class="sizeOptions[size]"
57
+ class="rounded-r-md flex items-center"
58
+ >
59
+ <slot name="default" />
60
+ </div>
61
+ </div>
62
+ </template>
@@ -4,12 +4,11 @@ import TopHeader from "./header/TopHeader.vue";
4
4
  import HeaderLink from "./header/HeaderLink.vue";
5
5
  import ProfileMenu from "./header/ProfileMenu.vue";
6
6
  import ColorMode from "./ColorMode.vue";
7
- import HeaderMobile from "./header-mobile/HeaderMobile.vue";
8
7
  import { useI18n, ref, onBeforeMount, useAppConfig, useRuntimeConfig } from "#imports";
9
8
  import ILogout from "#icons/navigation/logout.vue";
10
9
  import IAdata from "#icons/logo/adata.vue";
11
10
  import LangSwitcher from "./header/LangSwitcher.vue";
12
- const { localize } = useRuntimeConfig().public.adataUI;
11
+ const { localize, isColorModeActive } = useRuntimeConfig().public.adataUI;
13
12
  const props = defineProps({
14
13
  replenish: { type: String, required: false },
15
14
  hasNotification: { type: Boolean, required: false },
@@ -104,8 +103,8 @@ onBeforeMount(() => {
104
103
  <div v-if="langIsOn || module === 'fea'" />
105
104
  </div>
106
105
  <div class="flex items-center gap-4">
107
- <color-mode />
108
- <lang-switcher v-if="localize" />
106
+ <color-mode v-if="localize" />
107
+ <lang-switcher v-if="isColorModeActive" />
109
108
  </div>
110
109
 
111
110
 
@@ -125,11 +124,11 @@ onBeforeMount(() => {
125
124
 
126
125
  <div
127
126
  v-show="!isAuthenticated && showLogIn"
128
- class="hidden cursor-pointer items-center gap-2 font-semibold lg:flex"
129
127
  @click="goAuth"
128
+ class="hidden w-max cursor-pointer items-center gap-2 rounded-2xl bg-blue-700 px-4 py-[6px] font-semibold dark:bg-blue-500 lg:flex"
130
129
  >
131
- <i-logout class="lg:h-4 lg:w-4" />
132
- <span class="hidden lg:inline-block">
130
+ <i-logout class="text-white dark:text-gray-900 lg:h-4 lg:w-4" />
131
+ <span class="hidden text-sm font-semibold text-white dark:text-gray-900 lg:inline-block min-w-[44px]">
133
132
  {{ t("header.login") }}
134
133
  </span>
135
134
  </div>
@@ -41,6 +41,19 @@ const mode = appConfig.adataUI.mode;
41
41
  const pageUrl = useRequestURL();
42
42
  defineEmits(["outerClick", "mouseOver"]);
43
43
  const filteredItems = [
44
+ {
45
+ key: "edo",
46
+ name: t("header.products.edo.label"),
47
+ icon: IFiles,
48
+ items: [
49
+ {
50
+ title: t("header.products.edo.items.l.t"),
51
+ subtitle: t("header.products.edo.items.l.t"),
52
+ icon: IFiles,
53
+ to: `https://edo.${mode}.kz`
54
+ }
55
+ ]
56
+ },
44
57
  {
45
58
  key: "pk",
46
59
  name: t("header.products.counterparties.label"),
@@ -243,19 +256,6 @@ const filteredItems = [
243
256
  to: `https://ac.${mode}.kz/compliance`
244
257
  }
245
258
  ]
246
- },
247
- {
248
- key: "edo",
249
- name: t("header.products.edo.label"),
250
- icon: IFiles,
251
- items: [
252
- {
253
- title: t("header.products.edo.items.l.t"),
254
- subtitle: t("header.products.edo.items.l.t"),
255
- icon: IFiles,
256
- to: `https://edo.${mode}.kz`
257
- }
258
- ]
259
259
  }
260
260
  ];
261
261
  function isCurrentModule(currentModule) {
@@ -81,7 +81,7 @@ const onReplenish = () => {
81
81
  </script>
82
82
 
83
83
  <template>
84
- <div class="max-w-full lg:w-[440px]">
84
+ <div class="max-w-full lg:w-[300px]">
85
85
  <!-- desktop -->
86
86
  <div
87
87
  class="gradient-bg hidden px-4 py-4 text-white dark:text-gray-900 lg:block lg:rounded-t-[0.5rem] lg:px-8 lg:dark:text-white"
@@ -90,7 +90,7 @@ const onReplenish = () => {
90
90
  {{ t("header.profile.tariff") }}
91
91
  </div>
92
92
  <div class="flex items-center justify-between gap-4 lg:mt-2">
93
- <div>
93
+ <div class="flex items-center justify-between lg:w-full">
94
94
  <span class="mr-2 font-semibold lg:text-lg">{{ rate }}</span>
95
95
  <a-status-badge
96
96
  type="success"
@@ -102,17 +102,19 @@ const onReplenish = () => {
102
102
  </div>
103
103
  <span class="bg-deepblue ml-2 rounded-xl px-2 py-1 text-xs lg:hidden">{{ balance.toLocaleString("RU-ru") }} ₸</span>
104
104
  </div>
105
- <div class="mt-2 hidden items-center justify-between lg:flex">
106
- <div class="text-xs">
105
+ <div class="mt-2 hidden items-center justify-between lg:flex lg:flex-col">
106
+ <div class="items-center justify-between lg:flex lg:w-full text-xs">
107
107
  {{ t("header.profile.currentBalance") }}
108
108
  <span class="ml-2 rounded-xl bg-deepblue-900 px-2 py-1">{{ balance.toLocaleString("RU-ru") }} ₸</span>
109
109
  </div>
110
110
  <a-button
111
111
  size="sm"
112
+ class="w-full mt-4"
112
113
  view="outline"
113
114
  variant="ghost"
114
115
  @click="onReplenish"
115
116
  >
117
+ <i-plus />
116
118
  {{ t("header.profile.addBalance") }}
117
119
  </a-button>
118
120
  </div>
@@ -178,11 +180,11 @@ const onReplenish = () => {
178
180
  {{ daysRemaining }}
179
181
  </a-status-badge>
180
182
  </div>
181
- <div class="grid grid-cols-2 gap-2">
183
+ <div class="grid grid-cols-2 gap-2 lg:flex lg:flex-col">
182
184
  <nuxt-link
183
185
  v-for="item in items"
184
186
  :key="item.title"
185
- class="flex flex-col items-center rounded-[6px] bg-gray-50 py-[10px] text-center text-sm hover:bg-deepblue-900/10 active:bg-deepblue-900 active:text-white dark:bg-[#161617] active:dark:bg-[#E3E5E8] active:dark:text-gray-900 lg:px-4 lg:dark:bg-[#393D40] lg:dark:hover:bg-gray-900"
187
+ class="hover:text-blue-700 dark:hover:text-blue-500 flex flex-col lg:flex-row lg:gap-3 items-center rounded-[6px] bg-gray-50 lg:bg-white lg:dark:bg-[#232324] lg:hover:bg-blue-100 py-[10px] text-center text-sm hover:bg-deepblue-900/10 active:bg-deepblue-900 active:text-white dark:bg-[#161617] active:dark:bg-[#E3E5E8] active:dark:text-gray-900 lg:px-4 lg:dark:hover:bg-gray-900"
186
188
  :to="item.to"
187
189
  target="_blank"
188
190
  >
@@ -208,16 +210,15 @@ const onReplenish = () => {
208
210
  </span>
209
211
  <color-mode />
210
212
  </div>
211
- <a-button
212
- class="lg:mt-2"
213
- block
213
+ <div
214
+ class="flex items-center justify-center lg:justify-start gap-3 pb-2 pt-4 px-4 cursor-pointer text-red-500 hover:text-red-700 border-t"
214
215
  @click="$emit('logout')"
215
216
  >
216
- <i-logout class="h-5 w-5" />
217
+ <icon-logout class="h-5 w-5" />
217
218
  <span>
218
219
  {{ t("header.profile.logout") }}
219
220
  </span>
220
- </a-button>
221
+ </div>
221
222
  </div>
222
223
  </div>
223
224
  </template>
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.56",
3
+ "version": "4.0.58",
4
+
4
5
  "description": "Adata UI",
5
6
  "repository": "your-org/my-module",
6
7
  "license": "MIT",