@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.16 → 0.2.17
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/CHANGELOG.md +1 -1
- package/dist/components/ui/accessibility-demo.d.ts +7 -0
- package/dist/components/ui/accessibility-demo.d.ts.map +1 -0
- package/dist/components/ui/advanced-component-architecture-demo.d.ts +4 -0
- package/dist/components/ui/advanced-component-architecture-demo.d.ts.map +1 -0
- package/dist/components/ui/advanced-transition-system-demo.d.ts +3 -0
- package/dist/components/ui/advanced-transition-system-demo.d.ts.map +1 -0
- package/dist/components/ui/advanced-transition-system.d.ts +45 -0
- package/dist/components/ui/advanced-transition-system.d.ts.map +1 -0
- package/dist/components/ui/animation/animated-container.d.ts +13 -0
- package/dist/components/ui/animation/animated-container.d.ts.map +1 -0
- package/dist/components/ui/animation/index.d.ts +7 -0
- package/dist/components/ui/animation/index.d.ts.map +1 -0
- package/dist/components/ui/animation/staggered-container.d.ts +10 -0
- package/dist/components/ui/animation/staggered-container.d.ts.map +1 -0
- package/dist/components/ui/animation-demo.d.ts +3 -0
- package/dist/components/ui/animation-demo.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/battery-conscious-animation-demo.d.ts +4 -0
- package/dist/components/ui/battery-conscious-animation-demo.d.ts.map +1 -0
- package/dist/components/ui/border-radius-shadow-demo.d.ts +3 -0
- package/dist/components/ui/border-radius-shadow-demo.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +9 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +37 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +8 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/color-preview.d.ts +16 -0
- package/dist/components/ui/color-preview.d.ts.map +1 -0
- package/dist/components/ui/data-display/chart.d.ts +5 -0
- package/dist/components/ui/data-display/chart.d.ts.map +1 -0
- package/dist/components/ui/data-display/data-grid-simple.d.ts +5 -0
- package/dist/components/ui/data-display/data-grid-simple.d.ts.map +1 -0
- package/dist/components/ui/data-display/data-grid.d.ts +5 -0
- package/dist/components/ui/data-display/data-grid.d.ts.map +1 -0
- package/dist/components/ui/data-display/list.d.ts +5 -0
- package/dist/components/ui/data-display/list.d.ts.map +1 -0
- package/dist/components/ui/data-display/table.d.ts +5 -0
- package/dist/components/ui/data-display/table.d.ts.map +1 -0
- package/dist/components/ui/data-display/timeline.d.ts +5 -0
- package/dist/components/ui/data-display/timeline.d.ts.map +1 -0
- package/dist/components/ui/data-display/tree.d.ts +5 -0
- package/dist/components/ui/data-display/tree.d.ts.map +1 -0
- package/dist/components/ui/data-display/types.d.ts +481 -0
- package/dist/components/ui/data-display/types.d.ts.map +1 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts +3 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts.map +1 -0
- package/dist/components/ui/enterprise-mobile-experience.d.ts +72 -0
- package/dist/components/ui/enterprise-mobile-experience.d.ts.map +1 -0
- package/dist/components/ui/feedback/alert.d.ts +5 -0
- package/dist/components/ui/feedback/alert.d.ts.map +1 -0
- package/dist/components/ui/feedback/progress.d.ts +5 -0
- package/dist/components/ui/feedback/progress.d.ts.map +1 -0
- package/dist/components/ui/feedback/skeleton.d.ts +8 -0
- package/dist/components/ui/feedback/skeleton.d.ts.map +1 -0
- package/dist/components/ui/feedback/toast.d.ts +8 -0
- package/dist/components/ui/feedback/toast.d.ts.map +1 -0
- package/dist/components/ui/feedback/types.d.ts +109 -0
- package/dist/components/ui/feedback/types.d.ts.map +1 -0
- package/dist/components/ui/font-preview.d.ts +15 -0
- package/dist/components/ui/font-preview.d.ts.map +1 -0
- package/dist/components/ui/form-demo.d.ts +4 -0
- package/dist/components/ui/form-demo.d.ts.map +1 -0
- package/dist/components/ui/hardware-acceleration-demo.d.ts +4 -0
- package/dist/components/ui/hardware-acceleration-demo.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +9 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/layout-demo.d.ts +4 -0
- package/dist/components/ui/layout-demo.d.ts.map +1 -0
- package/dist/components/ui/layouts/adaptive-layout.d.ts +16 -0
- package/dist/components/ui/layouts/adaptive-layout.d.ts.map +1 -0
- package/dist/components/ui/layouts/desktop-layout.d.ts +15 -0
- package/dist/components/ui/layouts/desktop-layout.d.ts.map +1 -0
- package/dist/components/ui/layouts/index.d.ts +9 -0
- package/dist/components/ui/layouts/index.d.ts.map +1 -0
- package/dist/components/ui/layouts/mobile-layout.d.ts +14 -0
- package/dist/components/ui/layouts/mobile-layout.d.ts.map +1 -0
- package/dist/components/ui/layouts/tablet-layout.d.ts +14 -0
- package/dist/components/ui/layouts/tablet-layout.d.ts.map +1 -0
- package/dist/components/ui/mobile-form-validation.d.ts +32 -0
- package/dist/components/ui/mobile-form-validation.d.ts.map +1 -0
- package/dist/components/ui/mobile-input-demo.d.ts +3 -0
- package/dist/components/ui/mobile-input-demo.d.ts.map +1 -0
- package/dist/components/ui/mobile-input.d.ts +66 -0
- package/dist/components/ui/mobile-input.d.ts.map +1 -0
- package/dist/components/ui/mobile-skeleton-loading-demo.d.ts +4 -0
- package/dist/components/ui/mobile-skeleton-loading-demo.d.ts.map +1 -0
- package/dist/components/ui/navigation/breadcrumb.d.ts +9 -0
- package/dist/components/ui/navigation/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/navigation/index.d.ts +12 -0
- package/dist/components/ui/navigation/index.d.ts.map +1 -0
- package/dist/components/ui/navigation/menu.d.ts +9 -0
- package/dist/components/ui/navigation/menu.d.ts.map +1 -0
- package/dist/components/ui/navigation/navigation-demo.d.ts +8 -0
- package/dist/components/ui/navigation/navigation-demo.d.ts.map +1 -0
- package/dist/components/ui/navigation/pagination.d.ts +9 -0
- package/dist/components/ui/navigation/pagination.d.ts.map +1 -0
- package/dist/components/ui/navigation/sidebar.d.ts +9 -0
- package/dist/components/ui/navigation/sidebar.d.ts.map +1 -0
- package/dist/components/ui/navigation/stepper.d.ts +9 -0
- package/dist/components/ui/navigation/stepper.d.ts.map +1 -0
- package/dist/components/ui/navigation/tabs.d.ts +9 -0
- package/dist/components/ui/navigation/tabs.d.ts.map +1 -0
- package/dist/components/ui/navigation/types.d.ts +255 -0
- package/dist/components/ui/navigation/types.d.ts.map +1 -0
- package/dist/components/ui/overlay/backdrop.d.ts +15 -0
- package/dist/components/ui/overlay/backdrop.d.ts.map +1 -0
- package/dist/components/ui/overlay/focus-manager.d.ts +13 -0
- package/dist/components/ui/overlay/focus-manager.d.ts.map +1 -0
- package/dist/components/ui/overlay/index.d.ts +10 -0
- package/dist/components/ui/overlay/index.d.ts.map +1 -0
- package/dist/components/ui/overlay/modal.d.ts +8 -0
- package/dist/components/ui/overlay/modal.d.ts.map +1 -0
- package/dist/components/ui/overlay/overlay-manager.d.ts +16 -0
- package/dist/components/ui/overlay/overlay-manager.d.ts.map +1 -0
- package/dist/components/ui/overlay/popover.d.ts +9 -0
- package/dist/components/ui/overlay/popover.d.ts.map +1 -0
- package/dist/components/ui/overlay/portal.d.ts +5 -0
- package/dist/components/ui/overlay/portal.d.ts.map +1 -0
- package/dist/components/ui/overlay/tooltip.d.ts +6 -0
- package/dist/components/ui/overlay/tooltip.d.ts.map +1 -0
- package/dist/components/ui/overlay/types.d.ts +171 -0
- package/dist/components/ui/overlay/types.d.ts.map +1 -0
- package/dist/components/ui/performance-demo.d.ts +3 -0
- package/dist/components/ui/performance-demo.d.ts.map +1 -0
- package/dist/components/ui/semantic-input-system-demo.d.ts +3 -0
- package/dist/components/ui/semantic-input-system-demo.d.ts.map +1 -0
- package/dist/components/ui/theme-customizer.d.ts +27 -0
- package/dist/components/ui/theme-customizer.d.ts.map +1 -0
- package/dist/components/ui/theme-preview.d.ts +11 -0
- package/dist/components/ui/theme-preview.d.ts.map +1 -0
- package/dist/components/ui/theme-switcher.d.ts +11 -0
- package/dist/components/ui/theme-switcher.d.ts.map +1 -0
- package/dist/components/ui/theme-toggle.d.ts +3 -0
- package/dist/components/ui/theme-toggle.d.ts.map +1 -0
- package/dist/components/ui/token-demo.d.ts +3 -0
- package/dist/components/ui/token-demo.d.ts.map +1 -0
- package/dist/components/ui/touch-demo.d.ts +3 -0
- package/dist/components/ui/touch-demo.d.ts.map +1 -0
- package/dist/components/ui/touch-friendly-interface-demo.d.ts +3 -0
- package/dist/components/ui/touch-friendly-interface-demo.d.ts.map +1 -0
- package/dist/components/ui/touch-friendly-interface.d.ts +31 -0
- package/dist/components/ui/touch-friendly-interface.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +47 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/use-accessibility-support.d.ts +74 -0
- package/dist/hooks/use-accessibility-support.d.ts.map +1 -0
- package/dist/hooks/use-adaptive-layout.d.ts +57 -0
- package/dist/hooks/use-adaptive-layout.d.ts.map +1 -0
- package/dist/hooks/use-advanced-patterns.d.ts +88 -0
- package/dist/hooks/use-advanced-patterns.d.ts.map +1 -0
- package/dist/hooks/use-advanced-transition-system.d.ts +59 -0
- package/dist/hooks/use-advanced-transition-system.d.ts.map +1 -0
- package/dist/hooks/use-animation-profile.d.ts +45 -0
- package/dist/hooks/use-animation-profile.d.ts.map +1 -0
- package/dist/hooks/use-battery-animations.d.ts +53 -0
- package/dist/hooks/use-battery-animations.d.ts.map +1 -0
- package/dist/hooks/use-battery-conscious-loading.d.ts +58 -0
- package/dist/hooks/use-battery-conscious-loading.d.ts.map +1 -0
- package/dist/hooks/use-battery-optimization.d.ts +45 -0
- package/dist/hooks/use-battery-optimization.d.ts.map +1 -0
- package/dist/hooks/use-battery-status.d.ts +57 -0
- package/dist/hooks/use-battery-status.d.ts.map +1 -0
- package/dist/hooks/use-component-performance.d.ts +66 -0
- package/dist/hooks/use-component-performance.d.ts.map +1 -0
- package/dist/hooks/use-device-loading-states.d.ts +61 -0
- package/dist/hooks/use-device-loading-states.d.ts.map +1 -0
- package/dist/hooks/use-device.d.ts +20 -0
- package/dist/hooks/use-device.d.ts.map +1 -0
- package/dist/hooks/use-enterprise-mobile-experience.d.ts +84 -0
- package/dist/hooks/use-enterprise-mobile-experience.d.ts.map +1 -0
- package/dist/hooks/use-form-feedback.d.ts +91 -0
- package/dist/hooks/use-form-feedback.d.ts.map +1 -0
- package/dist/hooks/use-form-performance.d.ts +88 -0
- package/dist/hooks/use-form-performance.d.ts.map +1 -0
- package/dist/hooks/use-frame-rate.d.ts +47 -0
- package/dist/hooks/use-frame-rate.d.ts.map +1 -0
- package/dist/hooks/use-gestures.d.ts +94 -0
- package/dist/hooks/use-gestures.d.ts.map +1 -0
- package/dist/hooks/use-hardware-acceleration.d.ts +53 -0
- package/dist/hooks/use-hardware-acceleration.d.ts.map +1 -0
- package/dist/hooks/use-input-accessibility.d.ts +58 -0
- package/dist/hooks/use-input-accessibility.d.ts.map +1 -0
- package/dist/hooks/use-input-performance.d.ts +55 -0
- package/dist/hooks/use-input-performance.d.ts.map +1 -0
- package/dist/hooks/use-layout-performance.d.ts +39 -0
- package/dist/hooks/use-layout-performance.d.ts.map +1 -0
- package/dist/hooks/use-loading-accessibility.d.ts +62 -0
- package/dist/hooks/use-loading-accessibility.d.ts.map +1 -0
- package/dist/hooks/use-loading-performance.d.ts +51 -0
- package/dist/hooks/use-loading-performance.d.ts.map +1 -0
- package/dist/hooks/use-memory-usage.d.ts +51 -0
- package/dist/hooks/use-memory-usage.d.ts.map +1 -0
- package/dist/hooks/use-mobile-form-layout.d.ts +127 -0
- package/dist/hooks/use-mobile-form-layout.d.ts.map +1 -0
- package/dist/hooks/use-mobile-form-validation.d.ts +100 -0
- package/dist/hooks/use-mobile-form-validation.d.ts.map +1 -0
- package/dist/hooks/use-mobile-keyboard-optimization.d.ts +70 -0
- package/dist/hooks/use-mobile-keyboard-optimization.d.ts.map +1 -0
- package/dist/hooks/use-mobile-layout.d.ts +56 -0
- package/dist/hooks/use-mobile-layout.d.ts.map +1 -0
- package/dist/hooks/use-mobile-optimization.d.ts +55 -0
- package/dist/hooks/use-mobile-optimization.d.ts.map +1 -0
- package/dist/hooks/use-mobile-skeleton.d.ts +59 -0
- package/dist/hooks/use-mobile-skeleton.d.ts.map +1 -0
- package/dist/hooks/use-mobile-touch.d.ts +86 -0
- package/dist/hooks/use-mobile-touch.d.ts.map +1 -0
- package/dist/hooks/use-performance-throttling.d.ts +48 -0
- package/dist/hooks/use-performance-throttling.d.ts.map +1 -0
- package/dist/hooks/use-performance.d.ts +73 -0
- package/dist/hooks/use-performance.d.ts.map +1 -0
- package/dist/hooks/use-reusable-architecture.d.ts +94 -0
- package/dist/hooks/use-reusable-architecture.d.ts.map +1 -0
- package/dist/hooks/use-semantic-input-types.d.ts +57 -0
- package/dist/hooks/use-semantic-input-types.d.ts.map +1 -0
- package/dist/hooks/use-semantic-input.d.ts +73 -0
- package/dist/hooks/use-semantic-input.d.ts.map +1 -0
- package/dist/hooks/use-tablet-layout.d.ts +74 -0
- package/dist/hooks/use-tablet-layout.d.ts.map +1 -0
- package/dist/hooks/use-touch-friendly-input.d.ts +75 -0
- package/dist/hooks/use-touch-friendly-input.d.ts.map +1 -0
- package/dist/hooks/use-touch-friendly-interface.d.ts +56 -0
- package/dist/hooks/use-touch-friendly-interface.d.ts.map +1 -0
- package/dist/hooks/use-touch-optimization.d.ts +66 -0
- package/dist/hooks/use-touch-optimization.d.ts.map +1 -0
- package/dist/index.d.ts +300 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/plugins/theme-css-generator.d.ts +3 -0
- package/dist/plugins/theme-css-generator.d.ts.map +1 -0
- package/dist/provider.d.ts +9 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/styles/layers/validation.d.ts +20 -0
- package/dist/styles/layers/validation.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/theme.d.ts +7 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/themes/ThemeContext.d.ts +23 -0
- package/dist/themes/ThemeContext.d.ts.map +1 -0
- package/dist/themes/ThemeProvider.d.ts +3 -0
- package/dist/themes/ThemeProvider.d.ts.map +1 -0
- package/dist/themes/accessibility/index.d.ts +19 -0
- package/dist/themes/accessibility/index.d.ts.map +1 -0
- package/dist/themes/accessibility.d.ts +59 -0
- package/dist/themes/accessibility.d.ts.map +1 -0
- package/dist/themes/aria-patterns.d.ts +153 -0
- package/dist/themes/aria-patterns.d.ts.map +1 -0
- package/dist/themes/base-themes.d.ts +31 -0
- package/dist/themes/base-themes.d.ts.map +1 -0
- package/dist/themes/colorManager.d.ts +64 -0
- package/dist/themes/colorManager.d.ts.map +1 -0
- package/dist/themes/examples/dark-theme.d.ts +13 -0
- package/dist/themes/examples/dark-theme.d.ts.map +1 -0
- package/dist/themes/examples/minimal-theme.d.ts +6 -0
- package/dist/themes/examples/minimal-theme.d.ts.map +1 -0
- package/dist/themes/focus-management.d.ts +110 -0
- package/dist/themes/focus-management.d.ts.map +1 -0
- package/dist/themes/fontLoader.d.ts +49 -0
- package/dist/themes/fontLoader.d.ts.map +1 -0
- package/dist/themes/high-contrast.d.ts +70 -0
- package/dist/themes/high-contrast.d.ts.map +1 -0
- package/dist/themes/index.d.ts +8 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/inheritance.d.ts +90 -0
- package/dist/themes/inheritance.d.ts.map +1 -0
- package/dist/themes/keyboard-navigation.d.ts +213 -0
- package/dist/themes/keyboard-navigation.d.ts.map +1 -0
- package/dist/themes/motion-reduction.d.ts +121 -0
- package/dist/themes/motion-reduction.d.ts.map +1 -0
- package/dist/themes/navigation.d.ts +201 -0
- package/dist/themes/navigation.d.ts.map +1 -0
- package/dist/themes/screen-reader.d.ts +86 -0
- package/dist/themes/screen-reader.d.ts.map +1 -0
- package/dist/themes/systemThemeDetector.d.ts +58 -0
- package/dist/themes/systemThemeDetector.d.ts.map +1 -0
- package/dist/themes/themeCSSUpdater.d.ts +46 -0
- package/dist/themes/themeCSSUpdater.d.ts.map +1 -0
- package/dist/themes/themePersistence.d.ts +84 -0
- package/dist/themes/themePersistence.d.ts.map +1 -0
- package/dist/themes/themes/default.d.ts +9 -0
- package/dist/themes/themes/default.d.ts.map +1 -0
- package/dist/themes/themes/harvey.d.ts +7 -0
- package/dist/themes/themes/harvey.d.ts.map +1 -0
- package/dist/themes/themes/stan-design.d.ts +7 -0
- package/dist/themes/themes/stan-design.d.ts.map +1 -0
- package/dist/themes/types.d.ts +399 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/themes/useSystemTheme.d.ts +11 -0
- package/dist/themes/useSystemTheme.d.ts.map +1 -0
- package/dist/themes/useTheme.d.ts +70 -0
- package/dist/themes/useTheme.d.ts.map +1 -0
- package/dist/themes/validation.d.ts +71 -0
- package/dist/themes/validation.d.ts.map +1 -0
- package/dist/tokens/index.d.ts +11 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/tokenExporter.d.ts +84 -0
- package/dist/tokens/tokenExporter.d.ts.map +1 -0
- package/dist/tokens/tokenGenerator.d.ts +37 -0
- package/dist/tokens/tokenGenerator.d.ts.map +1 -0
- package/dist/tokens/tokenManager.d.ts +92 -0
- package/dist/tokens/tokenManager.d.ts.map +1 -0
- package/dist/tokens/tokenValidator.d.ts +91 -0
- package/dist/tokens/tokenValidator.d.ts.map +1 -0
- package/dist/tokens/types.d.ts +58 -0
- package/dist/tokens/types.d.ts.map +1 -0
- package/dist/types.d.ts +399 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/bundle-analyzer.d.ts +43 -0
- package/dist/utils/bundle-analyzer.d.ts.map +1 -0
- package/dist/utils/bundle-splitting.d.ts +71 -0
- package/dist/utils/bundle-splitting.d.ts.map +1 -0
- package/dist/utils/lazy-loading.d.ts +72 -0
- package/dist/utils/lazy-loading.d.ts.map +1 -0
- package/dist/utils/performance-monitor.d.ts +81 -0
- package/dist/utils/performance-monitor.d.ts.map +1 -0
- package/dist/utils/tree-shaking.d.ts +47 -0
- package/dist/utils/tree-shaking.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CompleteThemeConfig } from '../themes/types';
|
|
2
|
+
import type { ThemeTokens } from './types';
|
|
3
|
+
export declare class TokenGenerator {
|
|
4
|
+
/**
|
|
5
|
+
* Generates design tokens from a complete theme configuration
|
|
6
|
+
*/
|
|
7
|
+
static generateTokens(themeConfig: CompleteThemeConfig): ThemeTokens;
|
|
8
|
+
/**
|
|
9
|
+
* Generates color tokens from theme colors
|
|
10
|
+
*/
|
|
11
|
+
private static generateColorTokens;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a color group from a color scale
|
|
14
|
+
*/
|
|
15
|
+
private static createColorGroup;
|
|
16
|
+
/**
|
|
17
|
+
* Generates font tokens from theme fonts
|
|
18
|
+
*/
|
|
19
|
+
private static generateFontTokens;
|
|
20
|
+
/**
|
|
21
|
+
* Generates spacing tokens from theme spacing
|
|
22
|
+
*/
|
|
23
|
+
private static generateSpacingTokens;
|
|
24
|
+
/**
|
|
25
|
+
* Generates shadow tokens from theme shadows
|
|
26
|
+
*/
|
|
27
|
+
private static generateShadowTokens;
|
|
28
|
+
/**
|
|
29
|
+
* Generates transition tokens from theme transitions
|
|
30
|
+
*/
|
|
31
|
+
private static generateTransitionTokens;
|
|
32
|
+
/**
|
|
33
|
+
* Detects easing function from transition value
|
|
34
|
+
*/
|
|
35
|
+
private static detectEasing;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=tokenGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenGenerator.d.ts","sourceRoot":"","sources":["../../src/tokens/tokenGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAiF,MAAM,SAAS,CAAC;AAE1H,qBAAa,cAAc;IACzB;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW;IAcpE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAyClC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAmB/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA6GjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAmBpC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAmBnC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAmBvC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;CAO5B"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { CompleteThemeConfig } from '../themes/types';
|
|
2
|
+
import type { ThemeTokens, TokenExportOptions } from './types';
|
|
3
|
+
import { ValidationResult } from './tokenValidator';
|
|
4
|
+
export interface TokenManagerOptions {
|
|
5
|
+
autoValidate?: boolean;
|
|
6
|
+
autoGenerate?: boolean;
|
|
7
|
+
defaultExportFormat?: TokenExportOptions['format'];
|
|
8
|
+
includeMetadata?: boolean;
|
|
9
|
+
includeComments?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class TokenManager {
|
|
12
|
+
private options;
|
|
13
|
+
private generatedTokens;
|
|
14
|
+
constructor(options?: TokenManagerOptions);
|
|
15
|
+
/**
|
|
16
|
+
* Generates tokens for a theme configuration
|
|
17
|
+
*/
|
|
18
|
+
generateTokens(themeConfig: CompleteThemeConfig): ThemeTokens;
|
|
19
|
+
/**
|
|
20
|
+
* Generates tokens for multiple themes
|
|
21
|
+
*/
|
|
22
|
+
generateTokensForThemes(themes: CompleteThemeConfig[]): Map<string, ThemeTokens>;
|
|
23
|
+
/**
|
|
24
|
+
* Validates tokens
|
|
25
|
+
*/
|
|
26
|
+
validateTokens(tokens: ThemeTokens): ValidationResult;
|
|
27
|
+
/**
|
|
28
|
+
* Exports tokens in the specified format
|
|
29
|
+
*/
|
|
30
|
+
exportTokens(tokens: ThemeTokens, format?: TokenExportOptions['format'], platform?: TokenExportOptions['platform']): string;
|
|
31
|
+
/**
|
|
32
|
+
* Exports all generated tokens
|
|
33
|
+
*/
|
|
34
|
+
exportAllTokens(format?: TokenExportOptions['format']): Map<string, string>;
|
|
35
|
+
/**
|
|
36
|
+
* Exports tokens for a specific theme
|
|
37
|
+
*/
|
|
38
|
+
exportThemeTokens(themeName: string, format?: TokenExportOptions['format']): string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Gets generated tokens for a theme
|
|
41
|
+
*/
|
|
42
|
+
getTokens(themeName: string): ThemeTokens | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Gets all generated tokens
|
|
45
|
+
*/
|
|
46
|
+
getAllTokens(): Map<string, ThemeTokens>;
|
|
47
|
+
/**
|
|
48
|
+
* Clears all generated tokens
|
|
49
|
+
*/
|
|
50
|
+
clearTokens(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Removes tokens for a specific theme
|
|
53
|
+
*/
|
|
54
|
+
removeTokens(themeName: string): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Gets token statistics
|
|
57
|
+
*/
|
|
58
|
+
getTokenStats(): {
|
|
59
|
+
totalThemes: number;
|
|
60
|
+
totalTokens: number;
|
|
61
|
+
tokenBreakdown: Record<string, number>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Counts tokens in a token group recursively
|
|
65
|
+
*/
|
|
66
|
+
private countTokensInGroup;
|
|
67
|
+
/**
|
|
68
|
+
* Updates manager options
|
|
69
|
+
*/
|
|
70
|
+
updateOptions(newOptions: Partial<TokenManagerOptions>): void;
|
|
71
|
+
/**
|
|
72
|
+
* Gets current manager options
|
|
73
|
+
*/
|
|
74
|
+
getOptions(): TokenManagerOptions;
|
|
75
|
+
/**
|
|
76
|
+
* Exports tokens to file (simulated - in real implementation would write to filesystem)
|
|
77
|
+
*/
|
|
78
|
+
exportToFile(themeName: string, format?: TokenExportOptions['format'], filename?: string): {
|
|
79
|
+
success: boolean;
|
|
80
|
+
filename: string;
|
|
81
|
+
content: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Exports all themes to files
|
|
85
|
+
*/
|
|
86
|
+
exportAllToFiles(format?: TokenExportOptions['format']): Map<string, {
|
|
87
|
+
success: boolean;
|
|
88
|
+
filename: string;
|
|
89
|
+
content: string;
|
|
90
|
+
}>;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=tokenManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenManager.d.ts","sourceRoot":"","sources":["../../src/tokens/tokenManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG/D,OAAO,EAAkB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACnD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAAsB;IACrC,OAAO,CAAC,eAAe,CAAuC;gBAElD,OAAO,GAAE,mBAAwB;IAW7C;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,mBAAmB,GAAG,WAAW;IAc7D;;OAEG;IACH,uBAAuB,CAAC,MAAM,EAAE,mBAAmB,EA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CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAkB1D;;OAEG;IACH,gBAAgB,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAkB9H"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { ThemeTokens } from './types';
|
|
2
|
+
export interface ValidationResult {
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
errors: ValidationError[];
|
|
5
|
+
warnings: ValidationWarning[];
|
|
6
|
+
}
|
|
7
|
+
export interface ValidationError {
|
|
8
|
+
path: string;
|
|
9
|
+
message: string;
|
|
10
|
+
severity: 'error' | 'critical';
|
|
11
|
+
}
|
|
12
|
+
export interface ValidationWarning {
|
|
13
|
+
path: string;
|
|
14
|
+
message: string;
|
|
15
|
+
suggestion?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class TokenValidator {
|
|
18
|
+
/**
|
|
19
|
+
* Validates a complete theme tokens object
|
|
20
|
+
*/
|
|
21
|
+
static validateTokens(tokens: ThemeTokens): ValidationResult;
|
|
22
|
+
/**
|
|
23
|
+
* Validates a specific token category
|
|
24
|
+
*/
|
|
25
|
+
private static validateTokenCategory;
|
|
26
|
+
/**
|
|
27
|
+
* Validates a token group recursively
|
|
28
|
+
*/
|
|
29
|
+
private static validateTokenGroup;
|
|
30
|
+
/**
|
|
31
|
+
* Validates an individual token
|
|
32
|
+
*/
|
|
33
|
+
private static validateToken;
|
|
34
|
+
/**
|
|
35
|
+
* Validates token value based on type
|
|
36
|
+
*/
|
|
37
|
+
private static validateTokenValue;
|
|
38
|
+
/**
|
|
39
|
+
* Validates color tokens
|
|
40
|
+
*/
|
|
41
|
+
private static validateColorToken;
|
|
42
|
+
/**
|
|
43
|
+
* Validates font family tokens
|
|
44
|
+
*/
|
|
45
|
+
private static validateFontFamilyToken;
|
|
46
|
+
/**
|
|
47
|
+
* Validates font size tokens
|
|
48
|
+
*/
|
|
49
|
+
private static validateFontSizeToken;
|
|
50
|
+
/**
|
|
51
|
+
* Validates font weight tokens
|
|
52
|
+
*/
|
|
53
|
+
private static validateFontWeightToken;
|
|
54
|
+
/**
|
|
55
|
+
* Validates line height tokens
|
|
56
|
+
*/
|
|
57
|
+
private static validateLineHeightToken;
|
|
58
|
+
/**
|
|
59
|
+
* Validates spacing tokens
|
|
60
|
+
*/
|
|
61
|
+
private static validateSpacingToken;
|
|
62
|
+
/**
|
|
63
|
+
* Validates shadow tokens
|
|
64
|
+
*/
|
|
65
|
+
private static validateShadowToken;
|
|
66
|
+
/**
|
|
67
|
+
* Validates transition tokens
|
|
68
|
+
*/
|
|
69
|
+
private static validateTransitionToken;
|
|
70
|
+
/**
|
|
71
|
+
* Validates breakpoint tokens
|
|
72
|
+
*/
|
|
73
|
+
private static validateBreakpointToken;
|
|
74
|
+
/**
|
|
75
|
+
* Checks if a value is a valid token
|
|
76
|
+
*/
|
|
77
|
+
private static isToken;
|
|
78
|
+
/**
|
|
79
|
+
* Checks if a token type is valid
|
|
80
|
+
*/
|
|
81
|
+
private static isValidTokenType;
|
|
82
|
+
/**
|
|
83
|
+
* Checks if a color value is valid
|
|
84
|
+
*/
|
|
85
|
+
private static isValidColor;
|
|
86
|
+
/**
|
|
87
|
+
* Checks if a CSS unit is valid
|
|
88
|
+
*/
|
|
89
|
+
private static isValidCSSUnit;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=tokenValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenValidator.d.ts","sourceRoot":"","sources":["../../src/tokens/tokenValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA0B,MAAM,SAAS,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC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AAM,CAAC,gBAAgB;IAS/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAM3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;CAI9B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface DesignToken {
|
|
2
|
+
value: string | number;
|
|
3
|
+
type: TokenType;
|
|
4
|
+
description?: string;
|
|
5
|
+
category?: string;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
}
|
|
8
|
+
export type TokenType = 'color' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'letterSpacing' | 'spacing' | 'borderRadius' | 'shadow' | 'transition' | 'zIndex' | 'breakpoint';
|
|
9
|
+
export interface ColorToken extends DesignToken {
|
|
10
|
+
type: 'color';
|
|
11
|
+
value: string;
|
|
12
|
+
contrast?: {
|
|
13
|
+
light: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
};
|
|
16
|
+
semantic?: 'primary' | 'secondary' | 'accent' | 'success' | 'warning' | 'error' | 'neutral';
|
|
17
|
+
}
|
|
18
|
+
export interface FontToken extends DesignToken {
|
|
19
|
+
type: 'fontFamily' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'letterSpacing';
|
|
20
|
+
value: string | number;
|
|
21
|
+
}
|
|
22
|
+
export interface SpacingToken extends DesignToken {
|
|
23
|
+
type: 'spacing';
|
|
24
|
+
value: number;
|
|
25
|
+
unit?: 'px' | 'rem' | 'em';
|
|
26
|
+
}
|
|
27
|
+
export interface ShadowToken extends DesignToken {
|
|
28
|
+
type: 'shadow';
|
|
29
|
+
value: string;
|
|
30
|
+
elevation?: 'low' | 'medium' | 'high';
|
|
31
|
+
}
|
|
32
|
+
export interface TransitionToken extends DesignToken {
|
|
33
|
+
type: 'transition';
|
|
34
|
+
value: string;
|
|
35
|
+
easing?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
36
|
+
}
|
|
37
|
+
export interface TokenGroup {
|
|
38
|
+
[key: string]: DesignToken | TokenGroup;
|
|
39
|
+
}
|
|
40
|
+
export interface ThemeTokens {
|
|
41
|
+
theme: string;
|
|
42
|
+
version: string;
|
|
43
|
+
tokens: {
|
|
44
|
+
color?: TokenGroup;
|
|
45
|
+
font?: TokenGroup;
|
|
46
|
+
spacing?: TokenGroup;
|
|
47
|
+
shadow?: TokenGroup;
|
|
48
|
+
transition?: TokenGroup;
|
|
49
|
+
breakpoint?: TokenGroup;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface TokenExportOptions {
|
|
53
|
+
format: 'json' | 'css' | 'scss' | 'js' | 'ts';
|
|
54
|
+
platform?: 'web' | 'ios' | 'android' | 'figma';
|
|
55
|
+
includeMetadata?: boolean;
|
|
56
|
+
includeComments?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tokens/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,SAAS,GACT,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,QAAQ,CAAC,EAAE,SA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AG,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
export interface MultiThemeConfig {
|
|
2
|
+
fonts: FontThemeConfig;
|
|
3
|
+
colors: ColorThemeConfig;
|
|
4
|
+
navigation: NavigationThemeConfig;
|
|
5
|
+
spacing: SpacingThemeConfig;
|
|
6
|
+
shadows: ShadowThemeConfig;
|
|
7
|
+
transitions: TransitionThemeConfig;
|
|
8
|
+
borderRadius: BorderRadiusThemeConfig;
|
|
9
|
+
borderWidth: BorderWidthThemeConfig;
|
|
10
|
+
animation: AnimationThemeConfig;
|
|
11
|
+
accessibility: AccessibilityThemeConfig;
|
|
12
|
+
print: PrintThemeConfig;
|
|
13
|
+
containerQuery: ContainerQueryThemeConfig;
|
|
14
|
+
container: ContainerThemeConfig;
|
|
15
|
+
shimmer: ShimmerThemeConfig;
|
|
16
|
+
meta: ThemeMetadata;
|
|
17
|
+
extends?: string;
|
|
18
|
+
modes?: {
|
|
19
|
+
light?: {
|
|
20
|
+
colors?: Partial<ColorThemeConfig>;
|
|
21
|
+
};
|
|
22
|
+
dark?: {
|
|
23
|
+
colors?: Partial<ColorThemeConfig>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface FontThemeConfig {
|
|
28
|
+
primary: FontConfig;
|
|
29
|
+
secondary: FontConfig;
|
|
30
|
+
display: FontConfig;
|
|
31
|
+
body: FontConfig;
|
|
32
|
+
mono: FontConfig;
|
|
33
|
+
}
|
|
34
|
+
export interface FontConfig {
|
|
35
|
+
family: string;
|
|
36
|
+
weights: number[];
|
|
37
|
+
sizes: FontSizeScale;
|
|
38
|
+
lineHeights: LineHeightScale;
|
|
39
|
+
letterSpacing: LetterSpacingScale;
|
|
40
|
+
fallbacks?: string[];
|
|
41
|
+
display?: 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
|
|
42
|
+
source?: FontSource;
|
|
43
|
+
features?: FontFeatures;
|
|
44
|
+
}
|
|
45
|
+
export interface FontSource {
|
|
46
|
+
type: 'google' | 'custom' | 'system';
|
|
47
|
+
url?: string;
|
|
48
|
+
files?: FontFiles;
|
|
49
|
+
}
|
|
50
|
+
export interface FontFiles {
|
|
51
|
+
woff2?: string;
|
|
52
|
+
woff?: string;
|
|
53
|
+
ttf?: string;
|
|
54
|
+
eot?: string;
|
|
55
|
+
svg?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface FontFeatures {
|
|
58
|
+
ligatures?: boolean;
|
|
59
|
+
kerning?: boolean;
|
|
60
|
+
variant?: 'normal' | 'small-caps' | 'all-small-caps';
|
|
61
|
+
stretch?: 'normal' | 'condensed' | 'expanded';
|
|
62
|
+
styleSet?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface FontSizeScale {
|
|
65
|
+
xs: string;
|
|
66
|
+
sm: string;
|
|
67
|
+
md: string;
|
|
68
|
+
lg: string;
|
|
69
|
+
xl: string;
|
|
70
|
+
'2xl': string;
|
|
71
|
+
'3xl': string;
|
|
72
|
+
'4xl': string;
|
|
73
|
+
'5xl': string;
|
|
74
|
+
'6xl': string;
|
|
75
|
+
}
|
|
76
|
+
export interface LineHeightScale {
|
|
77
|
+
tight: string;
|
|
78
|
+
normal: string;
|
|
79
|
+
relaxed: string;
|
|
80
|
+
loose: string;
|
|
81
|
+
}
|
|
82
|
+
export interface LetterSpacingScale {
|
|
83
|
+
tight: string;
|
|
84
|
+
normal: string;
|
|
85
|
+
wide: string;
|
|
86
|
+
wider: string;
|
|
87
|
+
widest: string;
|
|
88
|
+
}
|
|
89
|
+
export interface ColorThemeConfig {
|
|
90
|
+
primary: ColorScale;
|
|
91
|
+
secondary: ColorScale;
|
|
92
|
+
semantic: SemanticColors;
|
|
93
|
+
neutral: ColorScale;
|
|
94
|
+
surface: SurfaceColors;
|
|
95
|
+
text: TextColors;
|
|
96
|
+
interactive: InteractiveColors;
|
|
97
|
+
accent?: string;
|
|
98
|
+
'bg-primary'?: string;
|
|
99
|
+
'bg-secondary'?: string;
|
|
100
|
+
'surface-bg'?: string;
|
|
101
|
+
'primary-hover'?: string;
|
|
102
|
+
'primary-active'?: string;
|
|
103
|
+
'accent-rgb'?: string;
|
|
104
|
+
border?: string;
|
|
105
|
+
'border-transparent'?: string;
|
|
106
|
+
'text-primary'?: string;
|
|
107
|
+
'text-secondary'?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface ColorScale {
|
|
110
|
+
50: string;
|
|
111
|
+
100: string;
|
|
112
|
+
200: string;
|
|
113
|
+
300: string;
|
|
114
|
+
400: string;
|
|
115
|
+
500: string;
|
|
116
|
+
600: string;
|
|
117
|
+
700: string;
|
|
118
|
+
800: string;
|
|
119
|
+
900: string;
|
|
120
|
+
light?: string;
|
|
121
|
+
dark?: string;
|
|
122
|
+
contrast?: string;
|
|
123
|
+
'500-rgb'?: string;
|
|
124
|
+
'600-rgb'?: string;
|
|
125
|
+
'700-rgb'?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface ColorAccessibility {
|
|
128
|
+
aa: boolean;
|
|
129
|
+
aaa: boolean;
|
|
130
|
+
contrastRatio: number;
|
|
131
|
+
recommended: string[];
|
|
132
|
+
}
|
|
133
|
+
export interface SemanticColors {
|
|
134
|
+
success: string;
|
|
135
|
+
warning: string;
|
|
136
|
+
error: string;
|
|
137
|
+
info: string;
|
|
138
|
+
successLight?: string;
|
|
139
|
+
successDark?: string;
|
|
140
|
+
warningLight?: string;
|
|
141
|
+
warningDark?: string;
|
|
142
|
+
errorLight?: string;
|
|
143
|
+
errorDark?: string;
|
|
144
|
+
infoLight?: string;
|
|
145
|
+
infoDark?: string;
|
|
146
|
+
successRgb?: string;
|
|
147
|
+
warningRgb?: string;
|
|
148
|
+
errorRgb?: string;
|
|
149
|
+
errorDarkRgb?: string;
|
|
150
|
+
infoRgb?: string;
|
|
151
|
+
'success-rgb'?: string;
|
|
152
|
+
'warning-rgb'?: string;
|
|
153
|
+
'error-rgb'?: string;
|
|
154
|
+
'error-dark-rgb'?: string;
|
|
155
|
+
'info-rgb'?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface NeutralColors {
|
|
158
|
+
50: string;
|
|
159
|
+
100: string;
|
|
160
|
+
200: string;
|
|
161
|
+
300: string;
|
|
162
|
+
400: string;
|
|
163
|
+
500: string;
|
|
164
|
+
600: string;
|
|
165
|
+
700: string;
|
|
166
|
+
800: string;
|
|
167
|
+
900: string;
|
|
168
|
+
}
|
|
169
|
+
export interface SurfaceColors {
|
|
170
|
+
background: string;
|
|
171
|
+
surface: string;
|
|
172
|
+
border: string;
|
|
173
|
+
divider: string;
|
|
174
|
+
}
|
|
175
|
+
export interface TextColors {
|
|
176
|
+
primary: string;
|
|
177
|
+
secondary: string;
|
|
178
|
+
muted: string;
|
|
179
|
+
inverse: string;
|
|
180
|
+
onPrimary: string;
|
|
181
|
+
onSecondary: string;
|
|
182
|
+
onSurface: string;
|
|
183
|
+
}
|
|
184
|
+
export interface InteractiveColors {
|
|
185
|
+
hover: string;
|
|
186
|
+
active: string;
|
|
187
|
+
focus: string;
|
|
188
|
+
disabled: string;
|
|
189
|
+
hoverLight?: string;
|
|
190
|
+
hoverDark?: string;
|
|
191
|
+
activeLight?: string;
|
|
192
|
+
activeDark?: string;
|
|
193
|
+
focusRing?: string;
|
|
194
|
+
focusRingOffset?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ColorGenerationConfig {
|
|
197
|
+
baseColor: string;
|
|
198
|
+
hueShift?: number;
|
|
199
|
+
saturationAdjust?: number;
|
|
200
|
+
lightnessAdjust?: number;
|
|
201
|
+
generateShades?: boolean;
|
|
202
|
+
generateTints?: boolean;
|
|
203
|
+
generateContrast?: boolean;
|
|
204
|
+
}
|
|
205
|
+
export interface ColorPalette {
|
|
206
|
+
name: string;
|
|
207
|
+
description: string;
|
|
208
|
+
colors: ColorScale;
|
|
209
|
+
accessibility: ColorAccessibility;
|
|
210
|
+
usage: string[];
|
|
211
|
+
tags: string[];
|
|
212
|
+
}
|
|
213
|
+
import type { NavigationThemeConfig } from './themes/navigation';
|
|
214
|
+
export interface SpacingThemeConfig {
|
|
215
|
+
scale: SpacingScale;
|
|
216
|
+
component: ComponentSpacing;
|
|
217
|
+
layout: LayoutSpacing;
|
|
218
|
+
}
|
|
219
|
+
export interface SpacingScale {
|
|
220
|
+
xs: string;
|
|
221
|
+
sm: string;
|
|
222
|
+
md: string;
|
|
223
|
+
lg: string;
|
|
224
|
+
xl: string;
|
|
225
|
+
'2xl': string;
|
|
226
|
+
'3xl': string;
|
|
227
|
+
'4xl': string;
|
|
228
|
+
'5xl': string;
|
|
229
|
+
'6xl': string;
|
|
230
|
+
}
|
|
231
|
+
export interface ComponentSpacing {
|
|
232
|
+
button: {
|
|
233
|
+
padding: string;
|
|
234
|
+
margin: string;
|
|
235
|
+
gap: string;
|
|
236
|
+
};
|
|
237
|
+
input: {
|
|
238
|
+
padding: string;
|
|
239
|
+
margin: string;
|
|
240
|
+
gap: string;
|
|
241
|
+
};
|
|
242
|
+
card: {
|
|
243
|
+
padding: string;
|
|
244
|
+
margin: string;
|
|
245
|
+
gap: string;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
export interface LayoutSpacing {
|
|
249
|
+
page: string;
|
|
250
|
+
section: string;
|
|
251
|
+
container: string;
|
|
252
|
+
grid: string;
|
|
253
|
+
}
|
|
254
|
+
export interface ShadowThemeConfig {
|
|
255
|
+
sm: string;
|
|
256
|
+
md: string;
|
|
257
|
+
lg: string;
|
|
258
|
+
xl: string;
|
|
259
|
+
'2xl': string;
|
|
260
|
+
inner: string;
|
|
261
|
+
none: string;
|
|
262
|
+
}
|
|
263
|
+
export interface TransitionThemeConfig {
|
|
264
|
+
duration: TransitionDuration;
|
|
265
|
+
easing: TransitionEasing;
|
|
266
|
+
properties: TransitionProperties;
|
|
267
|
+
}
|
|
268
|
+
export interface BorderRadiusThemeConfig {
|
|
269
|
+
none: string;
|
|
270
|
+
sm: string;
|
|
271
|
+
md: string;
|
|
272
|
+
lg: string;
|
|
273
|
+
xl: string;
|
|
274
|
+
'2xl': string;
|
|
275
|
+
full: string;
|
|
276
|
+
}
|
|
277
|
+
export interface BorderWidthThemeConfig {
|
|
278
|
+
none: string;
|
|
279
|
+
thin: string;
|
|
280
|
+
normal: string;
|
|
281
|
+
focus: string;
|
|
282
|
+
thick: string;
|
|
283
|
+
extraThick: string;
|
|
284
|
+
}
|
|
285
|
+
export interface AnimationThemeConfig {
|
|
286
|
+
duration: {
|
|
287
|
+
fast: string;
|
|
288
|
+
normal: string;
|
|
289
|
+
slow: string;
|
|
290
|
+
};
|
|
291
|
+
easing: {
|
|
292
|
+
linear: string;
|
|
293
|
+
ease: string;
|
|
294
|
+
easeIn: string;
|
|
295
|
+
easeOut: string;
|
|
296
|
+
easeInOut: string;
|
|
297
|
+
};
|
|
298
|
+
transforms: {
|
|
299
|
+
hoverY: string;
|
|
300
|
+
offsetY: string;
|
|
301
|
+
scale: string;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
export interface AccessibilityThemeConfig {
|
|
305
|
+
focusRing: {
|
|
306
|
+
width: string;
|
|
307
|
+
offset: string;
|
|
308
|
+
color: string;
|
|
309
|
+
};
|
|
310
|
+
outline: {
|
|
311
|
+
offset: string;
|
|
312
|
+
};
|
|
313
|
+
highContrast: {
|
|
314
|
+
borderWidth: string;
|
|
315
|
+
outlineWidth: string;
|
|
316
|
+
};
|
|
317
|
+
disabled: {
|
|
318
|
+
cursor: string;
|
|
319
|
+
opacity: string;
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
export interface PrintThemeConfig {
|
|
323
|
+
borderColor: string;
|
|
324
|
+
textColor: string;
|
|
325
|
+
textSecondaryColor: string;
|
|
326
|
+
backgroundColor: string;
|
|
327
|
+
}
|
|
328
|
+
export interface ContainerQueryThemeConfig {
|
|
329
|
+
small: string;
|
|
330
|
+
medium: string;
|
|
331
|
+
large: string;
|
|
332
|
+
}
|
|
333
|
+
export interface ContainerThemeConfig {
|
|
334
|
+
width: {
|
|
335
|
+
small: string;
|
|
336
|
+
medium: string;
|
|
337
|
+
large: string;
|
|
338
|
+
xl: string;
|
|
339
|
+
full: string;
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
export interface ShimmerThemeConfig {
|
|
343
|
+
alpha: string;
|
|
344
|
+
color: string;
|
|
345
|
+
}
|
|
346
|
+
export interface TransitionDuration {
|
|
347
|
+
fast: string;
|
|
348
|
+
normal: string;
|
|
349
|
+
slow: string;
|
|
350
|
+
}
|
|
351
|
+
export interface TransitionEasing {
|
|
352
|
+
linear: string;
|
|
353
|
+
ease: string;
|
|
354
|
+
easeIn: string;
|
|
355
|
+
easeOut: string;
|
|
356
|
+
easeInOut: string;
|
|
357
|
+
}
|
|
358
|
+
export interface TransitionProperties {
|
|
359
|
+
colors: string;
|
|
360
|
+
transform: string;
|
|
361
|
+
opacity: string;
|
|
362
|
+
shadow: string;
|
|
363
|
+
}
|
|
364
|
+
export interface ThemeMetadata {
|
|
365
|
+
name: string;
|
|
366
|
+
description: string;
|
|
367
|
+
author: string;
|
|
368
|
+
version: string;
|
|
369
|
+
category: 'brand' | 'enterprise' | 'creative' | 'custom' | 'accessibility';
|
|
370
|
+
tags: string[];
|
|
371
|
+
preview: string;
|
|
372
|
+
createdAt: string;
|
|
373
|
+
updatedAt: string;
|
|
374
|
+
}
|
|
375
|
+
export interface ThemeValidationResult {
|
|
376
|
+
isValid: boolean;
|
|
377
|
+
errors: ThemeValidationError[];
|
|
378
|
+
warnings: ThemeValidationWarning[];
|
|
379
|
+
}
|
|
380
|
+
export interface ThemeValidationError {
|
|
381
|
+
path: string;
|
|
382
|
+
message: string;
|
|
383
|
+
severity: 'error' | 'critical';
|
|
384
|
+
}
|
|
385
|
+
export interface ThemeValidationWarning {
|
|
386
|
+
path: string;
|
|
387
|
+
message: string;
|
|
388
|
+
severity: 'warning' | 'info';
|
|
389
|
+
}
|
|
390
|
+
export interface ThemeInheritance {
|
|
391
|
+
extends?: string;
|
|
392
|
+
overrides: Partial<MultiThemeConfig>;
|
|
393
|
+
additions: Partial<MultiThemeConfig>;
|
|
394
|
+
}
|
|
395
|
+
export interface CompleteThemeConfig extends MultiThemeConfig {
|
|
396
|
+
inheritance?: ThemeInheritance;
|
|
397
|
+
validation: ThemeValidationResult;
|
|
398
|
+
}
|
|
399
|
+
//# sourceMappingURL=types.d.ts.map
|