adata-ui 3.1.24 → 3.1.25

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": "3.1.24",
8
+ "version": "3.1.25",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -5,7 +5,7 @@ import ColorMode from "./ColorMode.vue";
5
5
  <template>
6
6
  <header class="h-16 bg-white border-b-[1px] border-deepblue-900/10 dark:bg-gray-900">
7
7
  <div class="a-container flex items-center justify-end h-full">
8
- <color-mode />
8
+ <color-mode />
9
9
  </div>
10
10
  </header>
11
11
  </template>
@@ -71,10 +71,50 @@ onBeforeMount(() => {
71
71
  class="relative h-16 border-b border-deepblue-900/10 bg-white dark:border-gray-200/10 dark:bg-gray-900"
72
72
  >
73
73
  <div class="a-container mobile-padding flex h-full items-center justify-between gap-2">
74
- <div class="flex items-center gap-4 justify-between lg:justify-start w-full">
75
- <div class="lg:hidden">
76
- <slot name="mobile-left"></slot>
74
+ <section
75
+ id="mobile-header"
76
+ class="grow lg:hidden"
77
+ >
78
+ <div
79
+ v-if="mobileHeaderType === 'default'"
80
+ class="flex justify-center"
81
+ >
82
+ <div>
83
+ <slot name="mobile-left" />
84
+ </div>
85
+ <nuxt-link
86
+ class="text-deepblue dark:text-[#E3E5E8]"
87
+ @click="goToAnotherModule"
88
+ >
89
+ <span class="visually-hidden"> Сервисы Adata.kz</span>
90
+
91
+ <adata-logo
92
+ :font-controlled="false"
93
+ filled
94
+ />
95
+ </nuxt-link>
96
+ <div>
97
+ <slot name="mobile-right" />
98
+ </div>
77
99
  </div>
100
+ <div
101
+ v-else-if="mobileHeaderType === 'search'"
102
+ class="flex w-full items-center gap-2 bg-white dark:bg-gray-900 lg:hidden"
103
+ >
104
+ <i-logo
105
+ class="dark:text-gray-200"
106
+ @click="goToAnotherModule"
107
+ />
108
+ <button
109
+ class="flex w-full items-center gap-2 rounded bg-gray-50 px-4 py-1.5 dark:bg-gray-800 dark:text-gray-500"
110
+ @click="$emit('search')"
111
+ >
112
+ <i-search />
113
+ <span class="body-400">Найти</span>
114
+ </button>
115
+ </div>
116
+ </section>
117
+ <div class="hidden lg:flex items-center gap-4 justify-between lg:justify-start w-full">
78
118
  <nuxt-link
79
119
  aria-label="Adata-logo"
80
120
  :to="`https://${mode}.kz`"
@@ -87,11 +127,8 @@ onBeforeMount(() => {
87
127
  />
88
128
  </nuxt-link>
89
129
  <header-link class="hidden lg:block" />
90
- <div class="lg:hidden">
91
- <slot name="mobile-right"></slot>
92
- </div>
93
130
  </div>
94
- <lang-switcher class="lg:hidden"/>
131
+ <lang-switcher class="lg:hidden" />
95
132
  <div class="text-deepblue hidden items-center gap-4 dark:text-[#E3E5E8] lg:flex">
96
133
  <!-- Mobile hidden -->
97
134
  <div class="hidden items-center gap-4 lg:flex">
@@ -103,11 +140,10 @@ onBeforeMount(() => {
103
140
  <div v-if="langIsOn || module === 'fea'" />
104
141
  </div>
105
142
  <div class="flex items-center gap-4">
106
- <color-mode />
143
+ <color-mode />
107
144
  <lang-switcher />
108
145
  </div>
109
146
 
110
-
111
147
  <slot name="notifications" />
112
148
 
113
149
  <profile-menu
@@ -124,8 +160,8 @@ onBeforeMount(() => {
124
160
 
125
161
  <div
126
162
  v-show="!isAuthenticated && showLogIn"
127
- @click="goAuth"
128
163
  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"
164
+ @click="goAuth"
129
165
  >
130
166
  <i-logout class="text-white dark:text-gray-900 lg:h-4 lg:w-4" />
131
167
  <span class="hidden text-sm font-semibold text-white dark:text-gray-900 lg:inline-block min-w-[44px]">
@@ -14,13 +14,13 @@ interface Props {
14
14
  oldVersion?: string;
15
15
  redirectAfterLogin?: string;
16
16
  }
17
- declare var __VLS_4: {}, __VLS_20: {}, __VLS_31: {};
17
+ declare var __VLS_4: {}, __VLS_18: {}, __VLS_55: {};
18
18
  type __VLS_Slots = {} & {
19
19
  'mobile-left'?: (props: typeof __VLS_4) => any;
20
20
  } & {
21
- 'mobile-right'?: (props: typeof __VLS_20) => any;
21
+ 'mobile-right'?: (props: typeof __VLS_18) => any;
22
22
  } & {
23
- notifications?: (props: typeof __VLS_31) => any;
23
+ notifications?: (props: typeof __VLS_55) => any;
24
24
  };
25
25
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
26
26
  daysRemaining: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.24",
3
+ "version": "3.1.25",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",