@club-employes/utopia 2.10.0 → 2.11.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/dist/index.d.ts CHANGED
@@ -1 +1,89 @@
1
- export {}
1
+ // Type definitions for @club-employes/utopia
2
+ import { ComputedRef, DefineComponent } from 'vue'
3
+
4
+ // Component prop types
5
+ export interface BadgeProps {
6
+ variant?: 'default' | 'success' | 'warning' | 'danger'
7
+ size?: 'small' | 'medium'
8
+ }
9
+
10
+ export interface ButtonProps {
11
+ variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger'
12
+ size?: 'small' | 'medium' | 'large'
13
+ disabled?: boolean
14
+ }
15
+
16
+ export interface IconProps {
17
+ name: string
18
+ size?: 'small' | 'medium' | 'large'
19
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'neutral' | 'current'
20
+ }
21
+
22
+ export interface LogoProps {
23
+ variant?: 'auto' | 'default' | 'white' | 'small' | 'small-white'
24
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
25
+ brand?: 'club-employes' | 'gifteo'
26
+ alt?: string
27
+ class?: string
28
+ }
29
+
30
+ export interface ThemeConfig {
31
+ name: string
32
+ mode: 'light' | 'dark'
33
+ cssFile: string
34
+ }
35
+
36
+ export interface ThemeProviderProps {
37
+ theme: ThemeConfig
38
+ }
39
+
40
+ // Component exports
41
+ export declare const Badge: DefineComponent<BadgeProps>
42
+ export declare const Button: DefineComponent<ButtonProps>
43
+ export declare const Icon: DefineComponent<IconProps>
44
+ export declare const Logo: DefineComponent<LogoProps>
45
+ export declare const ThemeProvider: DefineComponent<ThemeProviderProps>
46
+
47
+ // Theme exports
48
+ export declare const clubEmployesLight: ThemeConfig
49
+ export declare const clubEmployesDark: ThemeConfig
50
+ export declare const gifteoLight: ThemeConfig
51
+ export declare const gifteoDark: ThemeConfig
52
+
53
+ // Composable types
54
+ export type BrandTheme = 'club-employes' | 'gifteo'
55
+ export type ThemeMode = 'light' | 'dark'
56
+
57
+ export interface UseThemeReturn {
58
+ currentTheme: ComputedRef<ThemeConfig>
59
+ currentBrand: ComputedRef<BrandTheme>
60
+ currentMode: ComputedRef<ThemeMode>
61
+ currentBrandName: ComputedRef<string>
62
+ availableBrands: ComputedRef<Array<{ key: BrandTheme; name: string }>>
63
+ toggleBrand: () => void
64
+ toggleMode: () => void
65
+ setBrand: (brand: BrandTheme) => void
66
+ setMode: (mode: ThemeMode) => void
67
+ }
68
+
69
+ export interface UseFaviconReturn {
70
+ faviconUrl: ComputedRef<string>
71
+ refreshFavicon: () => void
72
+ updateFavicon: (faviconUrl: string) => void
73
+ }
74
+
75
+ // Composable exports
76
+ export declare function useTheme(): UseThemeReturn
77
+ export declare function useFavicon(): UseFaviconReturn
78
+
79
+ // Type exports
80
+ export type BadgeVariant = 'default' | 'success' | 'warning' | 'danger'
81
+ export type BadgeSize = 'small' | 'medium'
82
+ export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger'
83
+ export type ButtonSize = 'small' | 'medium' | 'large'
84
+ export type IconName = string
85
+ export type IconSize = 'small' | 'medium' | 'large'
86
+ export type IconColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'neutral' | 'current'
87
+ export type LogoVariant = 'auto' | 'default' | 'white' | 'small' | 'small-white'
88
+ export type LogoSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
89
+ export type LogoBrand = 'club-employes' | 'gifteo'