@dynect/base 0.3.0 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynect/base",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Reusable Nuxt base module — components, composables, utils, plugins and i18n from the Dynect design system.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,3 +1,6 @@
1
+ import { onMounted, onUnmounted, readonly, ref } from 'vue';
2
+ import { useNuxtApp } from 'nuxt/app';
3
+
1
4
  interface ErrorContext {
2
5
  component: string;
3
6
  operation: string;
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useColorMode } from '#imports';
2
3
  const colorMode: any = useColorMode();
3
4
  const isDark = computed(() => colorMode.value === 'dark');
4
5
  const toggleTheme = () => {
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { useI18n } from 'vue-i18n';
2
3
  import { cn } from '@/lib/utils';
3
4
  const { locale, setLocale } = useI18n();
4
5
  const props = withDefaults(
@@ -109,6 +109,7 @@
109
109
  <script setup lang="ts">
110
110
  import { parsePhoneNumberFromString, type CountryCode, type NumberFormat } from 'libphonenumber-js/max';
111
111
  import { cva } from 'class-variance-authority';
112
+ import { useState, useId } from 'nuxt/app';
112
113
  import { cn, inputSizeClasses } from '@/lib/utils';
113
114
 
114
115
  type InputSize = 'sm' | 'base' | 'lg' | 'xl';
@@ -3,6 +3,7 @@ import type { HTMLAttributes, Ref } from 'vue';
3
3
  import { useEventListener, useMediaQuery, useVModel } from '@vueuse/core';
4
4
  import { TooltipProvider } from 'reka-ui';
5
5
  import { computed, ref } from 'vue';
6
+ import { useCookie } from 'nuxt/app';
6
7
  import { cn } from '@/lib/utils';
7
8
  import { provideSidebarContext, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON } from './utils';
8
9