veilkit 0.1.0 → 0.2.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 (53) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +657 -101
  3. package/dist/angular/index.cjs +280 -14
  4. package/dist/angular/index.cjs.map +1 -1
  5. package/dist/angular/index.d.cts +39 -4
  6. package/dist/angular/index.d.ts +39 -4
  7. package/dist/angular/index.js +280 -14
  8. package/dist/angular/index.js.map +1 -1
  9. package/dist/{controller-5OzP0U8X.d.cts → controller-B6kFsWzi.d.cts} +5 -3
  10. package/dist/{controller-Co5bvnaB.d.ts → controller-Ceub9kLC.d.ts} +5 -3
  11. package/dist/element/index.cjs +285 -20
  12. package/dist/element/index.cjs.map +1 -1
  13. package/dist/element/index.d.cts +7 -1
  14. package/dist/element/index.d.ts +7 -1
  15. package/dist/element/index.js +285 -20
  16. package/dist/element/index.js.map +1 -1
  17. package/dist/index.cjs +280 -14
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +13 -11
  20. package/dist/index.d.ts +13 -11
  21. package/dist/index.js +280 -14
  22. package/dist/index.js.map +1 -1
  23. package/dist/native/index.cjs +1 -1
  24. package/dist/native/index.cjs.map +1 -1
  25. package/dist/native/index.d.cts +10 -4
  26. package/dist/native/index.d.ts +10 -4
  27. package/dist/native/index.js +1 -1
  28. package/dist/native/index.js.map +1 -1
  29. package/dist/react/index.cjs +271 -5
  30. package/dist/react/index.cjs.map +1 -1
  31. package/dist/react/index.d.cts +26 -4
  32. package/dist/react/index.d.ts +26 -4
  33. package/dist/react/index.js +271 -5
  34. package/dist/react/index.js.map +1 -1
  35. package/dist/styles.css +133 -1
  36. package/dist/svelte/index.cjs +286 -20
  37. package/dist/svelte/index.cjs.map +1 -1
  38. package/dist/svelte/index.d.cts +9 -2
  39. package/dist/svelte/index.d.ts +9 -2
  40. package/dist/svelte/index.js +286 -20
  41. package/dist/svelte/index.js.map +1 -1
  42. package/dist/themes/index.d.cts +1 -1
  43. package/dist/themes/index.d.ts +1 -1
  44. package/dist/{types-Ciu5e5xt.d.cts → types-CnR-rU97.d.cts} +22 -5
  45. package/dist/{types-Ciu5e5xt.d.ts → types-CnR-rU97.d.ts} +22 -5
  46. package/dist/veilkit.min.js +280 -14
  47. package/dist/vue/index.cjs +270 -4
  48. package/dist/vue/index.cjs.map +1 -1
  49. package/dist/vue/index.d.cts +148 -2
  50. package/dist/vue/index.d.ts +148 -2
  51. package/dist/vue/index.js +270 -4
  52. package/dist/vue/index.js.map +1 -1
  53. package/package.json +40 -24
@@ -1,4 +1,4 @@
1
- import { C as CustomThemeInput, l as VeilThemeTokens, V as VeilThemeName } from '../types-Ciu5e5xt.cjs';
1
+ import { C as CustomThemeInput, p as VeilThemeTokens, V as VeilThemeName } from '../types-CnR-rU97.cjs';
2
2
 
3
3
  /**
4
4
  * Veilkit - Themes & Token Definitions
@@ -1,4 +1,4 @@
1
- import { C as CustomThemeInput, l as VeilThemeTokens, V as VeilThemeName } from '../types-Ciu5e5xt.js';
1
+ import { C as CustomThemeInput, p as VeilThemeTokens, V as VeilThemeName } from '../types-CnR-rU97.js';
2
2
 
3
3
  /**
4
4
  * Veilkit - Themes & Token Definitions
@@ -3,11 +3,12 @@
3
3
  * Complete Loading & Skeleton UI Toolkit
4
4
  */
5
5
  type VeilThemeName = 'light' | 'dark' | 'auto' | 'glass' | 'ios' | 'material' | 'minimal' | 'mono' | 'neon' | 'sunset' | 'ocean';
6
- type VeilAnimationName = 'shimmer' | 'wave' | 'pulse' | 'blink' | 'breathe' | 'glass-shine' | 'gradient-flow' | 'aurora' | 'scan-line' | 'sparkle' | 'neon-glow' | 'stagger' | 'none';
6
+ type VeilAnimationName = 'shimmer' | 'wave' | 'pulse' | 'blink' | 'breathe' | 'glass-shine' | 'gradient-flow' | 'aurora' | 'scan-line' | 'sparkle' | 'neon-glow' | 'stagger' | 'ripple' | 'ping-pong' | 'wipe' | 'cascade' | 'spotlight' | 'rainbow' | 'heartbeat' | 'liquid' | 'stripes' | 'halftone' | 'border-glow' | 'typewriter' | 'glitch' | 'pixelate' | 'tilt' | 'diagonal-sweep' | 'bounce-in' | 'fade-slide' | 'none';
7
7
  type VeilDirection = 'ltr' | 'rtl' | 'ttb' | 'btt';
8
8
  type VeilPrimitiveType = 'line' | 'paragraph' | 'heading' | 'circle' | 'rect' | 'image' | 'button' | 'badge' | 'icon' | 'input' | 'table-row' | 'divider';
9
- type VeilPresetName = 'card' | 'product-card' | 'product-grid' | 'list' | 'list-item' | 'table' | 'profile' | 'profile-header' | 'feed-post' | 'article' | 'comment-thread' | 'chat' | 'dashboard' | 'form' | 'media-card' | 'navbar' | 'sidebar' | 'settings-page';
10
- type VeilSpinnerType = 'ring' | 'dual-ring' | 'dots' | 'bars' | 'pulse' | 'orbit' | 'wave' | 'bounce' | 'ios-activity' | 'glass-orb' | 'morph' | 'progress-circle';
9
+ type VeilShapeStyle = 'rounded' | 'pill' | 'square' | 'sharp' | 'glass';
10
+ type VeilPresetName = 'card' | 'product-card' | 'product-grid' | 'list' | 'list-item' | 'table' | 'profile' | 'profile-header' | 'feed-post' | 'article' | 'comment-thread' | 'chat' | 'dashboard' | 'form' | 'media-card' | 'navbar' | 'sidebar' | 'settings-page' | 'product-detail' | 'news-feed' | 'inbox-list' | 'notification-list' | 'order-list' | 'kpi-card' | 'chart-bar' | 'chart-line' | 'chart-pie' | 'search-results' | 'video-player' | 'music-player' | 'stories-row' | 'reels' | 'tabs' | 'calendar' | 'kanban' | 'timeline' | 'map-card' | 'pricing-card' | 'testimonial' | 'faq-accordion' | 'file-explorer' | 'code-block';
11
+ type VeilSpinnerType = 'ring' | 'dual-ring' | 'dots' | 'bars' | 'pulse' | 'orbit' | 'wave' | 'bounce' | 'ios-activity' | 'glass-orb' | 'morph' | 'progress-circle' | 'arc-gradient' | 'pulse-ring' | 'dots-circle' | 'grid-dots' | 'square-flip' | 'cube-fold' | 'hourglass' | 'infinity' | 'heartbeat-line' | 'equalizer' | 'chasing-dots' | 'typing' | 'liquid-fill' | 'atom' | 'clock' | 'radar' | 'ellipsis' | 'flower';
11
12
  type VeilRevealTransition = 'fade' | 'blur-in' | 'slide-up' | 'scale' | 'stagger-children' | 'none';
12
13
  interface VeilThemeTokens {
13
14
  base: string;
@@ -65,6 +66,7 @@ interface PresetProps extends Omit<SkeletonProps, 'type'> {
65
66
  name: VeilPresetName;
66
67
  items?: number;
67
68
  columns?: number;
69
+ shape?: VeilShapeStyle;
68
70
  }
69
71
  interface AutoMeasureOptions {
70
72
  container?: HTMLElement;
@@ -94,6 +96,7 @@ interface SpinnerProps {
94
96
  secondaryColor?: string;
95
97
  speed?: number | string;
96
98
  label?: string;
99
+ glass?: boolean;
97
100
  className?: string;
98
101
  style?: Record<string, string | number>;
99
102
  }
@@ -123,15 +126,29 @@ interface OverlayProps {
123
126
  className?: string;
124
127
  zIndex?: number;
125
128
  }
129
+ type ButtonStatus = 'idle' | 'loading' | 'success' | 'error';
130
+ type ButtonLoadingStyle = 'spinner-left' | 'spinner-right' | 'spinner-replace' | 'dots-after-text' | 'progress-fill' | 'shimmer-surface' | 'pulse-glow' | 'stripes-progress' | 'morph-circle' | 'slide-text' | 'border-trace' | 'liquid-fill' | 'bounce-dots' | 'glass-shine' | 'neon-pulse' | 'skeleton-button';
131
+ type ButtonPressFeedback = 'ripple' | 'press-scale' | 'glow-follow' | 'none';
132
+ type ButtonResultAnimation = 'checkmark' | 'cross' | 'shake' | 'success-burst' | 'none';
126
133
  interface LoadingButtonProps {
134
+ status?: ButtonStatus;
127
135
  loading?: boolean;
136
+ styleType?: ButtonLoadingStyle;
128
137
  spinner?: VeilSpinnerType;
129
138
  spinnerPlacement?: 'start' | 'end' | 'replace';
130
139
  loadingText?: string;
140
+ successText?: string;
141
+ errorText?: string;
142
+ resetAfter?: number;
143
+ progress?: number;
144
+ pressFeedback?: ButtonPressFeedback;
145
+ resultAnimation?: ButtonResultAnimation;
146
+ haptics?: boolean;
131
147
  disabled?: boolean;
132
148
  className?: string;
133
149
  children?: any;
134
- onClick?: (event: any) => void;
150
+ onStatusChange?: (status: ButtonStatus) => void;
151
+ onClick?: (event: any) => Promise<any> | void;
135
152
  }
136
153
  interface LazyImageProps {
137
154
  src: string;
@@ -156,4 +173,4 @@ interface TextLoaderProps {
156
173
  className?: string;
157
174
  }
158
175
 
159
- export type { AutoMeasureOptions as A, CustomThemeInput as C, LoadingButtonProps as L, OverlayProps as O, ProgressProps as P, SkeletonProps as S, TextLoaderProps as T, VeilThemeName as V, VeilAnimationName as a, SpinnerProps as b, VeilGlobalConfig as c, VeilPrimitiveType as d, VeilSpinnerType as e, PresetProps as f, SkeletonController as g, LazyImageProps as h, VeilDirection as i, VeilRevealTransition as j, VeilPresetName as k, VeilThemeTokens as l };
176
+ export type { AutoMeasureOptions as A, ButtonStatus as B, CustomThemeInput as C, LoadingButtonProps as L, OverlayProps as O, PresetProps as P, SkeletonProps as S, TextLoaderProps as T, VeilThemeName as V, VeilAnimationName as a, ProgressProps as b, SpinnerProps as c, VeilGlobalConfig as d, ButtonLoadingStyle as e, VeilSpinnerType as f, VeilPresetName as g, VeilShapeStyle as h, VeilPrimitiveType as i, ButtonPressFeedback as j, ButtonResultAnimation as k, SkeletonController as l, LazyImageProps as m, VeilDirection as n, VeilRevealTransition as o, VeilThemeTokens as p };
@@ -3,11 +3,12 @@
3
3
  * Complete Loading & Skeleton UI Toolkit
4
4
  */
5
5
  type VeilThemeName = 'light' | 'dark' | 'auto' | 'glass' | 'ios' | 'material' | 'minimal' | 'mono' | 'neon' | 'sunset' | 'ocean';
6
- type VeilAnimationName = 'shimmer' | 'wave' | 'pulse' | 'blink' | 'breathe' | 'glass-shine' | 'gradient-flow' | 'aurora' | 'scan-line' | 'sparkle' | 'neon-glow' | 'stagger' | 'none';
6
+ type VeilAnimationName = 'shimmer' | 'wave' | 'pulse' | 'blink' | 'breathe' | 'glass-shine' | 'gradient-flow' | 'aurora' | 'scan-line' | 'sparkle' | 'neon-glow' | 'stagger' | 'ripple' | 'ping-pong' | 'wipe' | 'cascade' | 'spotlight' | 'rainbow' | 'heartbeat' | 'liquid' | 'stripes' | 'halftone' | 'border-glow' | 'typewriter' | 'glitch' | 'pixelate' | 'tilt' | 'diagonal-sweep' | 'bounce-in' | 'fade-slide' | 'none';
7
7
  type VeilDirection = 'ltr' | 'rtl' | 'ttb' | 'btt';
8
8
  type VeilPrimitiveType = 'line' | 'paragraph' | 'heading' | 'circle' | 'rect' | 'image' | 'button' | 'badge' | 'icon' | 'input' | 'table-row' | 'divider';
9
- type VeilPresetName = 'card' | 'product-card' | 'product-grid' | 'list' | 'list-item' | 'table' | 'profile' | 'profile-header' | 'feed-post' | 'article' | 'comment-thread' | 'chat' | 'dashboard' | 'form' | 'media-card' | 'navbar' | 'sidebar' | 'settings-page';
10
- type VeilSpinnerType = 'ring' | 'dual-ring' | 'dots' | 'bars' | 'pulse' | 'orbit' | 'wave' | 'bounce' | 'ios-activity' | 'glass-orb' | 'morph' | 'progress-circle';
9
+ type VeilShapeStyle = 'rounded' | 'pill' | 'square' | 'sharp' | 'glass';
10
+ type VeilPresetName = 'card' | 'product-card' | 'product-grid' | 'list' | 'list-item' | 'table' | 'profile' | 'profile-header' | 'feed-post' | 'article' | 'comment-thread' | 'chat' | 'dashboard' | 'form' | 'media-card' | 'navbar' | 'sidebar' | 'settings-page' | 'product-detail' | 'news-feed' | 'inbox-list' | 'notification-list' | 'order-list' | 'kpi-card' | 'chart-bar' | 'chart-line' | 'chart-pie' | 'search-results' | 'video-player' | 'music-player' | 'stories-row' | 'reels' | 'tabs' | 'calendar' | 'kanban' | 'timeline' | 'map-card' | 'pricing-card' | 'testimonial' | 'faq-accordion' | 'file-explorer' | 'code-block';
11
+ type VeilSpinnerType = 'ring' | 'dual-ring' | 'dots' | 'bars' | 'pulse' | 'orbit' | 'wave' | 'bounce' | 'ios-activity' | 'glass-orb' | 'morph' | 'progress-circle' | 'arc-gradient' | 'pulse-ring' | 'dots-circle' | 'grid-dots' | 'square-flip' | 'cube-fold' | 'hourglass' | 'infinity' | 'heartbeat-line' | 'equalizer' | 'chasing-dots' | 'typing' | 'liquid-fill' | 'atom' | 'clock' | 'radar' | 'ellipsis' | 'flower';
11
12
  type VeilRevealTransition = 'fade' | 'blur-in' | 'slide-up' | 'scale' | 'stagger-children' | 'none';
12
13
  interface VeilThemeTokens {
13
14
  base: string;
@@ -65,6 +66,7 @@ interface PresetProps extends Omit<SkeletonProps, 'type'> {
65
66
  name: VeilPresetName;
66
67
  items?: number;
67
68
  columns?: number;
69
+ shape?: VeilShapeStyle;
68
70
  }
69
71
  interface AutoMeasureOptions {
70
72
  container?: HTMLElement;
@@ -94,6 +96,7 @@ interface SpinnerProps {
94
96
  secondaryColor?: string;
95
97
  speed?: number | string;
96
98
  label?: string;
99
+ glass?: boolean;
97
100
  className?: string;
98
101
  style?: Record<string, string | number>;
99
102
  }
@@ -123,15 +126,29 @@ interface OverlayProps {
123
126
  className?: string;
124
127
  zIndex?: number;
125
128
  }
129
+ type ButtonStatus = 'idle' | 'loading' | 'success' | 'error';
130
+ type ButtonLoadingStyle = 'spinner-left' | 'spinner-right' | 'spinner-replace' | 'dots-after-text' | 'progress-fill' | 'shimmer-surface' | 'pulse-glow' | 'stripes-progress' | 'morph-circle' | 'slide-text' | 'border-trace' | 'liquid-fill' | 'bounce-dots' | 'glass-shine' | 'neon-pulse' | 'skeleton-button';
131
+ type ButtonPressFeedback = 'ripple' | 'press-scale' | 'glow-follow' | 'none';
132
+ type ButtonResultAnimation = 'checkmark' | 'cross' | 'shake' | 'success-burst' | 'none';
126
133
  interface LoadingButtonProps {
134
+ status?: ButtonStatus;
127
135
  loading?: boolean;
136
+ styleType?: ButtonLoadingStyle;
128
137
  spinner?: VeilSpinnerType;
129
138
  spinnerPlacement?: 'start' | 'end' | 'replace';
130
139
  loadingText?: string;
140
+ successText?: string;
141
+ errorText?: string;
142
+ resetAfter?: number;
143
+ progress?: number;
144
+ pressFeedback?: ButtonPressFeedback;
145
+ resultAnimation?: ButtonResultAnimation;
146
+ haptics?: boolean;
131
147
  disabled?: boolean;
132
148
  className?: string;
133
149
  children?: any;
134
- onClick?: (event: any) => void;
150
+ onStatusChange?: (status: ButtonStatus) => void;
151
+ onClick?: (event: any) => Promise<any> | void;
135
152
  }
136
153
  interface LazyImageProps {
137
154
  src: string;
@@ -156,4 +173,4 @@ interface TextLoaderProps {
156
173
  className?: string;
157
174
  }
158
175
 
159
- export type { AutoMeasureOptions as A, CustomThemeInput as C, LoadingButtonProps as L, OverlayProps as O, ProgressProps as P, SkeletonProps as S, TextLoaderProps as T, VeilThemeName as V, VeilAnimationName as a, SpinnerProps as b, VeilGlobalConfig as c, VeilPrimitiveType as d, VeilSpinnerType as e, PresetProps as f, SkeletonController as g, LazyImageProps as h, VeilDirection as i, VeilRevealTransition as j, VeilPresetName as k, VeilThemeTokens as l };
176
+ export type { AutoMeasureOptions as A, ButtonStatus as B, CustomThemeInput as C, LoadingButtonProps as L, OverlayProps as O, PresetProps as P, SkeletonProps as S, TextLoaderProps as T, VeilThemeName as V, VeilAnimationName as a, ProgressProps as b, SpinnerProps as c, VeilGlobalConfig as d, ButtonLoadingStyle as e, VeilSpinnerType as f, VeilPresetName as g, VeilShapeStyle as h, VeilPrimitiveType as i, ButtonPressFeedback as j, ButtonResultAnimation as k, SkeletonController as l, LazyImageProps as m, VeilDirection as n, VeilRevealTransition as o, VeilThemeTokens as p };