adata-ui 4.0.0 → 4.0.1

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 (31) 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 +116 -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/i18n/i18n.config.d.ts +1599 -0
  10. package/dist/runtime/i18n/i18n.config.js +20 -0
  11. package/dist/runtime/icons/adata.vue +19 -0
  12. package/dist/runtime/icons/adata.vue.d.ts +2 -0
  13. package/dist/runtime/icons/socials/facebook.vue +15 -0
  14. package/dist/runtime/icons/socials/facebook.vue.d.ts +2 -0
  15. package/dist/runtime/icons/socials/instagram.vue +19 -0
  16. package/dist/runtime/icons/socials/instagram.vue.d.ts +2 -0
  17. package/dist/runtime/icons/socials/linkedin.vue +24 -0
  18. package/dist/runtime/icons/socials/linkedin.vue.d.ts +2 -0
  19. package/dist/runtime/icons/socials/telegram.vue +15 -0
  20. package/dist/runtime/icons/socials/telegram.vue.d.ts +2 -0
  21. package/dist/runtime/icons/socials/tik-tok.vue +15 -0
  22. package/dist/runtime/icons/socials/tik-tok.vue.d.ts +2 -0
  23. package/dist/runtime/icons/socials/youtube.vue +16 -0
  24. package/dist/runtime/icons/socials/youtube.vue.d.ts +2 -0
  25. package/dist/runtime/lang/en.d.ts +4 -0
  26. package/dist/runtime/lang/en.js +535 -0
  27. package/dist/runtime/lang/kk.d.ts +4 -0
  28. package/dist/runtime/lang/kk.js +535 -0
  29. package/dist/runtime/lang/ru.d.ts +531 -0
  30. package/dist/runtime/lang/ru.js +529 -0
  31. 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.1",
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,116 @@
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
+ const year = (/* @__PURE__ */ new Date()).getFullYear();
9
+ const { t } = useI18n();
10
+ const socialMedia = [
11
+ {
12
+ icon: ISocialsLinkedin,
13
+ link: "https://www.linkedin.com/company/adata-kz/?viewAsMember=true",
14
+ name: "Linkedin"
15
+ },
16
+ {
17
+ icon: ISocialsYoutube,
18
+ link: "https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured",
19
+ name: "YouTube"
20
+ },
21
+ {
22
+ icon: ISocialsInstagram,
23
+ link: "https://www.instagram.com/adata.kz/?igshid=253i4qxg3els",
24
+ name: "Instagram"
25
+ },
26
+ {
27
+ icon: ISocialsTelegram,
28
+ link: "https://t.me/adatakz_official",
29
+ name: "Telegram"
30
+ },
31
+ {
32
+ icon: ISocialsFacebook,
33
+ link: "https://www.facebook.com/adata.kz",
34
+ name: "Facebook"
35
+ },
36
+ {
37
+ icon: ISocialsTiktok,
38
+ link: "https://www.tiktok.com/@adata.kz?lang=ru-RU",
39
+ name: "Tiktok"
40
+ }
41
+ ];
42
+ const links = [];
43
+ const info = [];
44
+ </script>
45
+
46
+ <template>
47
+ <div
48
+ id="footer"
49
+ class="bg-deepblue-900 dark:bg-gray-900 lg:pt-10"
50
+ >
51
+ <div class="container mx-auto px-4 2xl:px-16 py-5 text-white">
52
+ <i-adata
53
+ filled
54
+ :font-controlled="false"
55
+ class="mb-8 h-[26px] w-[92px] lg:hidden"
56
+ />
57
+ <div class="grid gap-5 lg:grid-cols-5 lg:gap-10 xl:grid-cols-6">
58
+ <div
59
+ v-for="(link, key) in links"
60
+ :key="key"
61
+ >
62
+ <div
63
+ :content="link.items"
64
+ :label="t(link.title)"
65
+ :link="link.link.replace(/\/$/, '')"
66
+ />
67
+ </div>
68
+ </div>
69
+ <div class="flex grow justify-end gap-8 py-5">
70
+ <nuxt-link
71
+ v-for="(social, idx) in socialMedia"
72
+ :key="idx"
73
+ target="_blank"
74
+ :to="social.link"
75
+ :aria-label="social.name"
76
+ >
77
+ <component
78
+ :is="social.icon"
79
+ filled
80
+ :font-controlled="false"
81
+ class="social-icon h-[28px] w-[28px]"
82
+ />
83
+ </nuxt-link>
84
+ </div>
85
+ </div>
86
+ <div class="relative">
87
+ <div class="container mx-auto px-4 2xl:px-16 py-5">
88
+ <div
89
+ 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"
90
+ >
91
+ <div class="flex flex-col gap-4 lg:flex-row lg:gap-6">
92
+ <nuxt-link
93
+ v-for="(item, idx) in info"
94
+ :key="idx"
95
+ target="_blank"
96
+ class="text-[10px]"
97
+ :to="item.link"
98
+ >
99
+ {{ t(item.title) }}
100
+ </nuxt-link>
101
+ </div>
102
+ <div class="flex justify-center lg:grow lg:items-center lg:justify-end lg:gap-4">
103
+ <div class="flex flex-col gap-1">
104
+ <span>{{ year }} © {{ t("footer.LLP") }} "Alldata"</span>
105
+ </div>
106
+ <i-adata
107
+ filled
108
+ :font-controlled="false"
109
+ class="hidden h-[26px] w-[92px] lg:block"
110
+ />
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ </template>
@@ -0,0 +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>;
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/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>;
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