adata-ui 4.0.0 → 4.0.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 (32) hide show
  1. package/dist/module.d.mts +1 -0
  2. package/dist/module.json +2 -1
  3. package/dist/module.mjs +28 -4
  4. package/dist/runtime/components/Footer.vue +117 -0
  5. package/dist/runtime/components/Footer.vue.d.ts +2 -0
  6. package/dist/runtime/components/FooterAccordion.vue +13 -0
  7. package/dist/runtime/components/FooterAccordion.vue.d.ts +2 -0
  8. package/dist/runtime/components/Header.vue +2 -2
  9. package/dist/runtime/components/Header.vue.d.ts +1 -1
  10. package/dist/runtime/i18n/i18n.config.d.ts +1599 -0
  11. package/dist/runtime/i18n/i18n.config.js +20 -0
  12. package/dist/runtime/icons/adata.vue +19 -0
  13. package/dist/runtime/icons/adata.vue.d.ts +2 -0
  14. package/dist/runtime/icons/socials/facebook.vue +15 -0
  15. package/dist/runtime/icons/socials/facebook.vue.d.ts +2 -0
  16. package/dist/runtime/icons/socials/instagram.vue +19 -0
  17. package/dist/runtime/icons/socials/instagram.vue.d.ts +2 -0
  18. package/dist/runtime/icons/socials/linkedin.vue +24 -0
  19. package/dist/runtime/icons/socials/linkedin.vue.d.ts +2 -0
  20. package/dist/runtime/icons/socials/telegram.vue +15 -0
  21. package/dist/runtime/icons/socials/telegram.vue.d.ts +2 -0
  22. package/dist/runtime/icons/socials/tik-tok.vue +15 -0
  23. package/dist/runtime/icons/socials/tik-tok.vue.d.ts +2 -0
  24. package/dist/runtime/icons/socials/youtube.vue +16 -0
  25. package/dist/runtime/icons/socials/youtube.vue.d.ts +2 -0
  26. package/dist/runtime/lang/en.d.ts +4 -0
  27. package/dist/runtime/lang/en.js +535 -0
  28. package/dist/runtime/lang/kk.d.ts +4 -0
  29. package/dist/runtime/lang/kk.js +535 -0
  30. package/dist/runtime/lang/ru.d.ts +531 -0
  31. package/dist/runtime/lang/ru.js +529 -0
  32. package/package.json +4 -1
package/dist/module.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
 
3
3
  interface ModuleOptions {
4
+ colorMode?: boolean;
4
5
  }
5
6
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
7
 
package/dist/module.json CHANGED
@@ -4,7 +4,8 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "4.0.0",
7
+ "failOnWarn": false,
8
+ "version": "4.0.2",
8
9
  "builder": {
9
10
  "@nuxt/module-builder": "1.0.1",
10
11
  "unbuild": "3.5.0"
package/dist/module.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, addPlugin } from '@nuxt/kit';
1
+ import { defu } from 'defu';
2
+ import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, addPlugin, installModule, hasNuxtModule } from '@nuxt/kit';
2
3
 
3
4
  const module = defineNuxtModule({
4
5
  meta: {
@@ -6,10 +7,13 @@ const module = defineNuxtModule({
6
7
  configKey: "adataUI",
7
8
  compatibility: {
8
9
  nuxt: ">=3.16.0"
9
- }
10
+ },
11
+ failOnWarn: false
10
12
  },
11
13
  // Default configuration options of the Nuxt module
12
- defaults: {},
14
+ defaults: {
15
+ colorMode: true
16
+ },
13
17
  async setup(_options, _nuxt) {
14
18
  const resolver = createResolver(import.meta.url);
15
19
  if (_nuxt.options.builder === "@nuxt/vite-builder") {
@@ -18,11 +22,31 @@ const module = defineNuxtModule({
18
22
  } else {
19
23
  _nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
20
24
  }
25
+ async function registerModule(name, key, options) {
26
+ if (!hasNuxtModule(name)) {
27
+ await installModule(name, options);
28
+ } else {
29
+ _nuxt.options[key] = defu(_nuxt.options[key], options);
30
+ }
31
+ }
32
+ if (_options.colorMode) {
33
+ await registerModule("@nuxtjs/color-mode", "colorMode", { classSuffix: "", disableTransition: true });
34
+ }
21
35
  addComponentsDir({
22
36
  path: resolver.resolve("./runtime/components"),
23
- prefix: "Adata"
37
+ prefix: "Adt"
38
+ });
39
+ _nuxt.options.alias["#icons"] = resolver.resolve("./runtime/icons");
40
+ addComponentsDir({
41
+ path: resolver.resolve("./runtime/icons"),
42
+ prefix: "I"
24
43
  });
25
44
  addPlugin(resolver.resolve("./runtime/plugin"));
45
+ await installModule("@nuxtjs/i18n", {
46
+ defaultLocale: "ru",
47
+ strategy: "prefix_except_default",
48
+ vueI18n: resolver.resolve("./runtime/i18n/i18n.config.ts")
49
+ });
26
50
  }
27
51
  });
28
52
 
@@ -0,0 +1,117 @@
1
+ <script setup>
2
+ import ISocialsLinkedin from "#icons/socials/linkedin.vue";
3
+ import ISocialsYoutube from "#icons/socials/youtube.vue";
4
+ import ISocialsInstagram from "#icons/socials/instagram.vue";
5
+ import ISocialsTelegram from "#icons/socials/telegram.vue";
6
+ import ISocialsFacebook from "#icons/socials/facebook.vue";
7
+ import ISocialsTiktok from "#icons/socials/tik-tok.vue";
8
+ import { useI18n } from "#imports";
9
+ const year = (/* @__PURE__ */ new Date()).getFullYear();
10
+ const { t } = useI18n();
11
+ const socialMedia = [
12
+ {
13
+ icon: ISocialsLinkedin,
14
+ link: "https://www.linkedin.com/company/adata-kz/?viewAsMember=true",
15
+ name: "Linkedin"
16
+ },
17
+ {
18
+ icon: ISocialsYoutube,
19
+ link: "https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured",
20
+ name: "YouTube"
21
+ },
22
+ {
23
+ icon: ISocialsInstagram,
24
+ link: "https://www.instagram.com/adata.kz/?igshid=253i4qxg3els",
25
+ name: "Instagram"
26
+ },
27
+ {
28
+ icon: ISocialsTelegram,
29
+ link: "https://t.me/adatakz_official",
30
+ name: "Telegram"
31
+ },
32
+ {
33
+ icon: ISocialsFacebook,
34
+ link: "https://www.facebook.com/adata.kz",
35
+ name: "Facebook"
36
+ },
37
+ {
38
+ icon: ISocialsTiktok,
39
+ link: "https://www.tiktok.com/@adata.kz?lang=ru-RU",
40
+ name: "Tiktok"
41
+ }
42
+ ];
43
+ const links = ref([]);
44
+ const info = ref([]);
45
+ </script>
46
+
47
+ <template>
48
+ <div
49
+ id="footer"
50
+ class="bg-deepblue-900 dark:bg-gray-900 lg:pt-10"
51
+ >
52
+ <div class="container mx-auto px-4 2xl:px-16 py-5 text-white">
53
+ <i-adata
54
+ filled
55
+ :font-controlled="false"
56
+ class="mb-8 h-[26px] w-[92px] lg:hidden"
57
+ />
58
+ <div class="grid gap-5 lg:grid-cols-5 lg:gap-10 xl:grid-cols-6">
59
+ <div
60
+ v-for="(link, key) in links"
61
+ :key="key"
62
+ >
63
+ <div
64
+ :content="link.items"
65
+ :label="t(link.title)"
66
+ :link="link.link.replace(/\/$/, '')"
67
+ />
68
+ </div>
69
+ </div>
70
+ <div class="flex grow justify-end gap-8 py-5">
71
+ <nuxt-link
72
+ v-for="(social, idx) in socialMedia"
73
+ :key="idx"
74
+ target="_blank"
75
+ :to="social.link"
76
+ :aria-label="social.name"
77
+ >
78
+ <component
79
+ :is="social.icon"
80
+ filled
81
+ :font-controlled="false"
82
+ class="social-icon h-[28px] w-[28px]"
83
+ />
84
+ </nuxt-link>
85
+ </div>
86
+ </div>
87
+ <div class="relative">
88
+ <div class="container mx-auto px-4 2xl:px-16 py-5">
89
+ <div
90
+ class="flex flex-col gap-10 text-xs text-white before:absolute before:left-0 before:top-0 before:h-[0.5px] before:w-full before:bg-white lg:flex-row lg:items-center lg:gap-5"
91
+ >
92
+ <div class="flex flex-col gap-4 lg:flex-row lg:gap-6">
93
+ <nuxt-link
94
+ v-for="(item, idx) in info"
95
+ :key="idx"
96
+ target="_blank"
97
+ class="text-[10px]"
98
+ :to="item.link"
99
+ >
100
+ {{ t(item.title) }}
101
+ </nuxt-link>
102
+ </div>
103
+ <div class="flex justify-center lg:grow lg:items-center lg:justify-end lg:gap-4">
104
+ <div class="flex flex-col gap-1">
105
+ <span>{{ year }} © {{ t("footer.LLP") }} "Alldata"</span>
106
+ </div>
107
+ <i-adata
108
+ filled
109
+ :font-controlled="false"
110
+ class="hidden h-[26px] w-[92px] lg:block"
111
+ />
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,13 @@
1
+ <script setup lang="ts">
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <div>
7
+
8
+ </div>
9
+ </template>
10
+
11
+ <style scoped>
12
+
13
+ </style>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -3,8 +3,8 @@
3
3
  </script>
4
4
 
5
5
  <template>
6
- <header>
7
- Adata Header
6
+ <header class="text-3xl">
7
+ Adata Header dasdasd
8
8
  </header>
9
9
  </template>
10
10
 
@@ -1,2 +1,2 @@
1
- declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;