@dynect/base 0.7.3 → 0.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynect/base",
3
- "version": "0.7.3",
3
+ "version": "0.8.1",
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",
package/src/module.ts CHANGED
@@ -109,9 +109,13 @@ export default defineNuxtModule<DynectBaseOptions>({
109
109
 
110
110
  // ── Install required Nuxt modules ────────────────────────────────────────
111
111
  if (options.shadcn !== false) {
112
+ const shadcnComponentDir = isStandalone
113
+ ? join(runtimeComponentsDir, 'ui')
114
+ : '~/components/ui';
115
+
112
116
  await installModule('shadcn-nuxt', {
113
117
  prefix: '',
114
- componentDir: '~/components/ui',
118
+ componentDir: shadcnComponentDir,
115
119
  ...options.shadcn,
116
120
  });
117
121
  }
@@ -3,6 +3,7 @@ import type { HTMLAttributes } from 'vue';
3
3
  import { AvatarRoot, AvatarImage, AvatarFallback } from 'reka-ui';
4
4
  import { cva, type VariantProps } from 'class-variance-authority';
5
5
  import { cn } from '@/lib/utils';
6
+ import { getAvatarText } from '@/utils/function';
6
7
 
7
8
  // ── Variants ────────────────────────────────────────────────────────────────
8
9
  const avatarVariants = cva('relative flex shrink-0 rounded-full ring-1 ring-border-base dark:ring-border-base', {