@rakeyshgidwani/roger-ui-bank-theme-jeremy 0.5.3
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 +23 -0
- package/README.md +137 -0
- 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/accessibility-demo.esm.js +95 -0
- package/dist/components/ui/accessibility-demo.js +95 -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-component-architecture-demo.esm.js +257 -0
- package/dist/components/ui/advanced-component-architecture-demo.js +257 -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-demo.esm.js +60 -0
- package/dist/components/ui/advanced-transition-system-demo.js +60 -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/advanced-transition-system.esm.js +213 -0
- package/dist/components/ui/advanced-transition-system.js +213 -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/animated-container.esm.js +106 -0
- package/dist/components/ui/animation/animated-container.js +106 -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/index.esm.js +4 -0
- package/dist/components/ui/animation/index.js +4 -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/staggered-container.esm.js +37 -0
- package/dist/components/ui/animation/staggered-container.js +37 -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/animation-demo.esm.js +31 -0
- package/dist/components/ui/animation-demo.js +31 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.esm.js +20 -0
- package/dist/components/ui/badge.js +20 -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/battery-conscious-animation-demo.esm.js +140 -0
- package/dist/components/ui/battery-conscious-animation-demo.js +140 -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/border-radius-shadow-demo.esm.js +7 -0
- package/dist/components/ui/border-radius-shadow-demo.js +7 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.esm.js +19 -0
- package/dist/components/ui/button.js +19 -0
- package/dist/components/ui/card.d.ts +37 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.esm.js +93 -0
- package/dist/components/ui/card.js +93 -0
- package/dist/components/ui/checkbox.d.ts +8 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.esm.js +12 -0
- package/dist/components/ui/checkbox.js +12 -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/color-preview.esm.js +57 -0
- package/dist/components/ui/color-preview.js +57 -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/chart.esm.js +233 -0
- package/dist/components/ui/data-display/chart.js +233 -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-simple.esm.js +19 -0
- package/dist/components/ui/data-display/data-grid-simple.js +19 -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/data-grid.esm.js +195 -0
- package/dist/components/ui/data-display/data-grid.js +195 -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/list.esm.js +100 -0
- package/dist/components/ui/data-display/list.js +100 -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/table.esm.js +125 -0
- package/dist/components/ui/data-display/table.js +125 -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/timeline.esm.js +104 -0
- package/dist/components/ui/data-display/timeline.js +104 -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/tree.esm.js +231 -0
- package/dist/components/ui/data-display/tree.js +231 -0
- package/dist/components/ui/data-display/types.d.ts +483 -0
- package/dist/components/ui/data-display/types.d.ts.map +1 -0
- package/dist/components/ui/data-display/types.esm.js +8 -0
- package/dist/components/ui/data-display/types.js +8 -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-demo.esm.js +77 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.js +77 -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/enterprise-mobile-experience.esm.js +157 -0
- package/dist/components/ui/enterprise-mobile-experience.js +157 -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/alert.esm.js +51 -0
- package/dist/components/ui/feedback/alert.js +51 -0
- package/dist/components/ui/feedback/index.d.ts +10 -0
- package/dist/components/ui/feedback/index.d.ts.map +1 -0
- package/dist/components/ui/feedback/index.esm.js +10 -0
- package/dist/components/ui/feedback/index.js +10 -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/progress.esm.js +77 -0
- package/dist/components/ui/feedback/progress.js +77 -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/skeleton.esm.js +77 -0
- package/dist/components/ui/feedback/skeleton.js +77 -0
- package/dist/components/ui/feedback/status-alert-example.d.ts +3 -0
- package/dist/components/ui/feedback/status-alert-example.d.ts.map +1 -0
- package/dist/components/ui/feedback/status-alert-example.esm.js +68 -0
- package/dist/components/ui/feedback/status-alert-example.js +68 -0
- package/dist/components/ui/feedback/toast-context.d.ts +27 -0
- package/dist/components/ui/feedback/toast-context.d.ts.map +1 -0
- package/dist/components/ui/feedback/toast-context.esm.js +95 -0
- package/dist/components/ui/feedback/toast-context.js +95 -0
- package/dist/components/ui/feedback/toast-example.d.ts +4 -0
- package/dist/components/ui/feedback/toast-example.d.ts.map +1 -0
- package/dist/components/ui/feedback/toast-example.esm.js +40 -0
- package/dist/components/ui/feedback/toast-example.js +40 -0
- package/dist/components/ui/feedback/toast-renderer.d.ts +11 -0
- package/dist/components/ui/feedback/toast-renderer.d.ts.map +1 -0
- package/dist/components/ui/feedback/toast-renderer.esm.js +23 -0
- package/dist/components/ui/feedback/toast-renderer.js +23 -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/toast.esm.js +143 -0
- package/dist/components/ui/feedback/toast.js +143 -0
- package/dist/components/ui/feedback/types.d.ts +127 -0
- package/dist/components/ui/feedback/types.d.ts.map +1 -0
- package/dist/components/ui/feedback/types.esm.js +2 -0
- package/dist/components/ui/feedback/types.js +2 -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/font-preview.esm.js +62 -0
- package/dist/components/ui/font-preview.js +62 -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/form-demo.esm.js +192 -0
- package/dist/components/ui/form-demo.js +192 -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/hardware-acceleration-demo.esm.js +107 -0
- package/dist/components/ui/hardware-acceleration-demo.js +107 -0
- package/dist/components/ui/input.d.ts +9 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.esm.js +17 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.esm.js +6 -0
- package/dist/components/ui/label.js +6 -0
- package/dist/components/ui/layout/container.d.ts +57 -0
- package/dist/components/ui/layout/container.d.ts.map +1 -0
- package/dist/components/ui/layout/container.esm.js +173 -0
- package/dist/components/ui/layout/container.js +173 -0
- package/dist/components/ui/layout/index.d.ts +9 -0
- package/dist/components/ui/layout/index.d.ts.map +1 -0
- package/dist/components/ui/layout/index.esm.js +6 -0
- package/dist/components/ui/layout/index.js +6 -0
- package/dist/components/ui/layout/responsive-grid.d.ts +93 -0
- package/dist/components/ui/layout/responsive-grid.d.ts.map +1 -0
- package/dist/components/ui/layout/responsive-grid.esm.js +124 -0
- package/dist/components/ui/layout/responsive-grid.js +124 -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/layout-demo.esm.js +77 -0
- package/dist/components/ui/layout-demo.js +77 -0
- package/dist/components/ui/layouts/adaptive-layout.d.ts +18 -0
- package/dist/components/ui/layouts/adaptive-layout.d.ts.map +1 -0
- package/dist/components/ui/layouts/adaptive-layout.esm.js +54 -0
- package/dist/components/ui/layouts/adaptive-layout.js +54 -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/desktop-layout.esm.js +40 -0
- package/dist/components/ui/layouts/desktop-layout.js +40 -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/index.esm.js +4 -0
- package/dist/components/ui/layouts/index.js +4 -0
- package/dist/components/ui/layouts/mobile-layout.d.ts +15 -0
- package/dist/components/ui/layouts/mobile-layout.d.ts.map +1 -0
- package/dist/components/ui/layouts/mobile-layout.esm.js +50 -0
- package/dist/components/ui/layouts/mobile-layout.js +50 -0
- package/dist/components/ui/layouts/tablet-layout.d.ts +15 -0
- package/dist/components/ui/layouts/tablet-layout.d.ts.map +1 -0
- package/dist/components/ui/layouts/tablet-layout.esm.js +54 -0
- package/dist/components/ui/layouts/tablet-layout.js +54 -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-form-validation.esm.js +218 -0
- package/dist/components/ui/mobile-form-validation.js +218 -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-demo.esm.js +15 -0
- package/dist/components/ui/mobile-input-demo.js +15 -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-input.esm.js +199 -0
- package/dist/components/ui/mobile-input.js +199 -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/mobile-skeleton-loading-demo.esm.js +145 -0
- package/dist/components/ui/mobile-skeleton-loading-demo.js +145 -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/breadcrumb.esm.js +60 -0
- package/dist/components/ui/navigation/breadcrumb.js +60 -0
- package/dist/components/ui/navigation/index.d.ts +16 -0
- package/dist/components/ui/navigation/index.d.ts.map +1 -0
- package/dist/components/ui/navigation/index.esm.js +15 -0
- package/dist/components/ui/navigation/index.js +15 -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/menu.esm.js +192 -0
- package/dist/components/ui/navigation/menu.js +192 -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/navigation-demo.esm.js +144 -0
- package/dist/components/ui/navigation/navigation-demo.js +144 -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/pagination.esm.js +155 -0
- package/dist/components/ui/navigation/pagination.js +155 -0
- package/dist/components/ui/navigation/progressive-navigation.d.ts +37 -0
- package/dist/components/ui/navigation/progressive-navigation.d.ts.map +1 -0
- package/dist/components/ui/navigation/progressive-navigation.esm.js +145 -0
- package/dist/components/ui/navigation/progressive-navigation.js +145 -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/sidebar.esm.js +176 -0
- package/dist/components/ui/navigation/sidebar.js +176 -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/stepper.esm.js +144 -0
- package/dist/components/ui/navigation/stepper.js +144 -0
- package/dist/components/ui/navigation/subscription-badge.d.ts +9 -0
- package/dist/components/ui/navigation/subscription-badge.d.ts.map +1 -0
- package/dist/components/ui/navigation/subscription-badge.esm.js +58 -0
- package/dist/components/ui/navigation/subscription-badge.js +58 -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/tabs.esm.js +101 -0
- package/dist/components/ui/navigation/tabs.js +101 -0
- package/dist/components/ui/navigation/types.d.ts +277 -0
- package/dist/components/ui/navigation/types.d.ts.map +1 -0
- package/dist/components/ui/navigation/types.esm.js +5 -0
- package/dist/components/ui/navigation/types.js +5 -0
- package/dist/components/ui/navigation/user-avatar.d.ts +9 -0
- package/dist/components/ui/navigation/user-avatar.d.ts.map +1 -0
- package/dist/components/ui/navigation/user-avatar.esm.js +55 -0
- package/dist/components/ui/navigation/user-avatar.js +55 -0
- package/dist/components/ui/navigation/user-menu-examples.d.ts +8 -0
- package/dist/components/ui/navigation/user-menu-examples.d.ts.map +1 -0
- package/dist/components/ui/navigation/user-menu-examples.esm.js +125 -0
- package/dist/components/ui/navigation/user-menu-examples.js +125 -0
- package/dist/components/ui/navigation/user-menu-types.d.ts +218 -0
- package/dist/components/ui/navigation/user-menu-types.d.ts.map +1 -0
- package/dist/components/ui/navigation/user-menu-types.esm.js +5 -0
- package/dist/components/ui/navigation/user-menu-types.js +5 -0
- package/dist/components/ui/navigation/user-menu.d.ts +9 -0
- package/dist/components/ui/navigation/user-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation/user-menu.esm.js +205 -0
- package/dist/components/ui/navigation/user-menu.js +205 -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/backdrop.esm.js +44 -0
- package/dist/components/ui/overlay/backdrop.js +44 -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/focus-manager.esm.js +101 -0
- package/dist/components/ui/overlay/focus-manager.js +101 -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/index.esm.js +9 -0
- package/dist/components/ui/overlay/index.js +9 -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/modal.esm.js +118 -0
- package/dist/components/ui/overlay/modal.js +118 -0
- package/dist/components/ui/overlay/overlay-manager.d.ts +17 -0
- package/dist/components/ui/overlay/overlay-manager.d.ts.map +1 -0
- package/dist/components/ui/overlay/overlay-manager.esm.js +73 -0
- package/dist/components/ui/overlay/overlay-manager.js +73 -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/popover.esm.js +284 -0
- package/dist/components/ui/overlay/popover.js +284 -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/portal.esm.js +52 -0
- package/dist/components/ui/overlay/portal.js +52 -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/tooltip.esm.js +219 -0
- package/dist/components/ui/overlay/tooltip.js +219 -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/overlay/types.esm.js +2 -0
- package/dist/components/ui/overlay/types.js +2 -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/performance-demo.esm.js +111 -0
- package/dist/components/ui/performance-demo.js +111 -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/semantic-input-system-demo.esm.js +89 -0
- package/dist/components/ui/semantic-input-system-demo.js +89 -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-customizer.esm.js +140 -0
- package/dist/components/ui/theme-customizer.js +140 -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-preview.esm.js +49 -0
- package/dist/components/ui/theme-preview.js +49 -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-switcher.esm.js +87 -0
- package/dist/components/ui/theme-switcher.js +87 -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/theme-toggle.esm.js +36 -0
- package/dist/components/ui/theme-toggle.js +36 -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/token-demo.esm.js +50 -0
- package/dist/components/ui/token-demo.js +50 -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-demo.esm.js +97 -0
- package/dist/components/ui/touch-demo.js +97 -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-demo.esm.js +64 -0
- package/dist/components/ui/touch-friendly-interface-demo.js +64 -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/components/ui/touch-friendly-interface.esm.js +119 -0
- package/dist/components/ui/touch-friendly-interface.js +119 -0
- package/dist/hooks/index.d.ts +47 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.esm.js +32 -0
- package/dist/hooks/index.js +32 -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-accessibility-support.esm.js +377 -0
- package/dist/hooks/use-accessibility-support.js +377 -0
- package/dist/hooks/use-adaptive-layout.d.ts +58 -0
- package/dist/hooks/use-adaptive-layout.d.ts.map +1 -0
- package/dist/hooks/use-adaptive-layout.esm.js +219 -0
- package/dist/hooks/use-adaptive-layout.js +219 -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-patterns.esm.js +186 -0
- package/dist/hooks/use-advanced-patterns.js +186 -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-advanced-transition-system.esm.js +287 -0
- package/dist/hooks/use-advanced-transition-system.js +287 -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-animation-profile.esm.js +226 -0
- package/dist/hooks/use-animation-profile.js +226 -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-animations.esm.js +310 -0
- package/dist/hooks/use-battery-animations.js +310 -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-conscious-loading.esm.js +381 -0
- package/dist/hooks/use-battery-conscious-loading.js +381 -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-optimization.esm.js +268 -0
- package/dist/hooks/use-battery-optimization.js +268 -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-battery-status.esm.js +219 -0
- package/dist/hooks/use-battery-status.js +219 -0
- package/dist/hooks/use-component-performance.d.ts +67 -0
- package/dist/hooks/use-component-performance.d.ts.map +1 -0
- package/dist/hooks/use-component-performance.esm.js +239 -0
- package/dist/hooks/use-component-performance.js +239 -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-loading-states.esm.js +358 -0
- package/dist/hooks/use-device-loading-states.js +358 -0
- package/dist/hooks/use-device.d.ts +22 -0
- package/dist/hooks/use-device.d.ts.map +1 -0
- package/dist/hooks/use-device.esm.js +93 -0
- package/dist/hooks/use-device.js +93 -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-enterprise-mobile-experience.esm.js +350 -0
- package/dist/hooks/use-enterprise-mobile-experience.js +350 -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-feedback.esm.js +318 -0
- package/dist/hooks/use-form-feedback.js +318 -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-form-performance.esm.js +420 -0
- package/dist/hooks/use-form-performance.js +420 -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-frame-rate.esm.js +178 -0
- package/dist/hooks/use-frame-rate.js +178 -0
- package/dist/hooks/use-gestures.d.ts +94 -0
- package/dist/hooks/use-gestures.d.ts.map +1 -0
- package/dist/hooks/use-gestures.esm.js +236 -0
- package/dist/hooks/use-gestures.js +236 -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-hardware-acceleration.esm.js +248 -0
- package/dist/hooks/use-hardware-acceleration.js +248 -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-accessibility.esm.js +351 -0
- package/dist/hooks/use-input-accessibility.js +351 -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-input-performance.esm.js +423 -0
- package/dist/hooks/use-input-performance.js +423 -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-layout-performance.esm.js +233 -0
- package/dist/hooks/use-layout-performance.js +233 -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-accessibility.esm.js +425 -0
- package/dist/hooks/use-loading-accessibility.js +425 -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-loading-performance.esm.js +402 -0
- package/dist/hooks/use-loading-performance.js +402 -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-memory-usage.esm.js +211 -0
- package/dist/hooks/use-memory-usage.js +211 -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-layout.esm.js +371 -0
- package/dist/hooks/use-mobile-form-layout.js +371 -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-form-validation.esm.js +405 -0
- package/dist/hooks/use-mobile-form-validation.js +405 -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-keyboard-optimization.esm.js +358 -0
- package/dist/hooks/use-mobile-keyboard-optimization.js +358 -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-layout.esm.js +215 -0
- package/dist/hooks/use-mobile-layout.js +215 -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-optimization.esm.js +310 -0
- package/dist/hooks/use-mobile-optimization.js +310 -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-skeleton.esm.js +300 -0
- package/dist/hooks/use-mobile-skeleton.js +300 -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-mobile-touch.esm.js +316 -0
- package/dist/hooks/use-mobile-touch.js +316 -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-throttling.esm.js +280 -0
- package/dist/hooks/use-performance-throttling.js +280 -0
- package/dist/hooks/use-performance.d.ts +73 -0
- package/dist/hooks/use-performance.d.ts.map +1 -0
- package/dist/hooks/use-performance.esm.js +219 -0
- package/dist/hooks/use-performance.js +219 -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-reusable-architecture.esm.js +261 -0
- package/dist/hooks/use-reusable-architecture.js +261 -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-types.esm.js +291 -0
- package/dist/hooks/use-semantic-input-types.js +291 -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-semantic-input.esm.js +462 -0
- package/dist/hooks/use-semantic-input.js +462 -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-tablet-layout.esm.js +279 -0
- package/dist/hooks/use-tablet-layout.js +279 -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-input.esm.js +406 -0
- package/dist/hooks/use-touch-friendly-input.js +406 -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-friendly-interface.esm.js +242 -0
- package/dist/hooks/use-touch-friendly-interface.js +242 -0
- package/dist/hooks/use-touch-optimization.d.ts +66 -0
- package/dist/hooks/use-touch-optimization.d.ts.map +1 -0
- package/dist/hooks/use-touch-optimization.esm.js +293 -0
- package/dist/hooks/use-touch-optimization.js +293 -0
- package/dist/index.d.ts +388 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +233 -0
- package/dist/index.js +233 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.esm.js +5 -0
- package/dist/lib/utils.js +5 -0
- package/dist/plugins/css-purge-optimizer.d.ts +25 -0
- package/dist/plugins/css-purge-optimizer.d.ts.map +1 -0
- package/dist/plugins/css-purge-optimizer.esm.js +414 -0
- package/dist/plugins/css-purge-optimizer.js +414 -0
- package/dist/plugins/performance-monitor.d.ts +29 -0
- package/dist/plugins/performance-monitor.d.ts.map +1 -0
- package/dist/plugins/performance-monitor.esm.js +221 -0
- package/dist/plugins/performance-monitor.js +221 -0
- package/dist/plugins/progressive-css-loader.d.ts +21 -0
- package/dist/plugins/progressive-css-loader.d.ts.map +1 -0
- package/dist/plugins/progressive-css-loader.esm.js +227 -0
- package/dist/plugins/progressive-css-loader.js +227 -0
- package/dist/plugins/theme-css-generator.d.ts +3 -0
- package/dist/plugins/theme-css-generator.d.ts.map +1 -0
- package/dist/plugins/theme-css-generator.esm.js +277 -0
- package/dist/plugins/theme-css-generator.js +277 -0
- package/dist/provider.d.ts +9 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.esm.js +4 -0
- package/dist/provider.js +4 -0
- package/dist/styles/layers/validation.d.ts +20 -0
- package/dist/styles/layers/validation.d.ts.map +1 -0
- package/dist/styles/layers/validation.esm.js +275 -0
- package/dist/styles/layers/validation.js +275 -0
- package/dist/styles.css +25372 -0
- package/dist/theme.d.ts +7 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.esm.js +679 -0
- package/dist/theme.js +679 -0
- package/dist/themes/ThemeContext.d.ts +23 -0
- package/dist/themes/ThemeContext.d.ts.map +1 -0
- package/dist/themes/ThemeContext.esm.js +5 -0
- package/dist/themes/ThemeContext.js +5 -0
- package/dist/themes/ThemeProvider.d.ts +3 -0
- package/dist/themes/ThemeProvider.d.ts.map +1 -0
- package/dist/themes/ThemeProvider.esm.js +200 -0
- package/dist/themes/ThemeProvider.js +200 -0
- package/dist/themes/accessibility/index.d.ts +19 -0
- package/dist/themes/accessibility/index.d.ts.map +1 -0
- package/dist/themes/accessibility/index.esm.js +23 -0
- package/dist/themes/accessibility/index.js +23 -0
- package/dist/themes/accessibility.d.ts +59 -0
- package/dist/themes/accessibility.d.ts.map +1 -0
- package/dist/themes/accessibility.esm.js +194 -0
- package/dist/themes/accessibility.js +194 -0
- package/dist/themes/aria-patterns.d.ts +153 -0
- package/dist/themes/aria-patterns.d.ts.map +1 -0
- package/dist/themes/aria-patterns.esm.js +364 -0
- package/dist/themes/aria-patterns.js +364 -0
- package/dist/themes/base-themes.d.ts +36 -0
- package/dist/themes/base-themes.d.ts.map +1 -0
- package/dist/themes/base-themes.esm.js +53 -0
- package/dist/themes/base-themes.js +53 -0
- package/dist/themes/colorManager.d.ts +64 -0
- package/dist/themes/colorManager.d.ts.map +1 -0
- package/dist/themes/colorManager.esm.js +316 -0
- package/dist/themes/colorManager.js +316 -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/dark-theme.esm.js +150 -0
- package/dist/themes/examples/dark-theme.js +150 -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/examples/minimal-theme.esm.js +103 -0
- package/dist/themes/examples/minimal-theme.js +103 -0
- package/dist/themes/focus-management.d.ts +110 -0
- package/dist/themes/focus-management.d.ts.map +1 -0
- package/dist/themes/focus-management.esm.js +565 -0
- package/dist/themes/focus-management.js +565 -0
- package/dist/themes/fontLoader.d.ts +49 -0
- package/dist/themes/fontLoader.d.ts.map +1 -0
- package/dist/themes/fontLoader.esm.js +172 -0
- package/dist/themes/fontLoader.js +172 -0
- package/dist/themes/high-contrast.d.ts +70 -0
- package/dist/themes/high-contrast.d.ts.map +1 -0
- package/dist/themes/high-contrast.esm.js +457 -0
- package/dist/themes/high-contrast.js +457 -0
- package/dist/themes/index.d.ts +9 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.esm.js +13 -0
- package/dist/themes/index.js +13 -0
- package/dist/themes/inheritance.d.ts +90 -0
- package/dist/themes/inheritance.d.ts.map +1 -0
- package/dist/themes/inheritance.esm.js +192 -0
- package/dist/themes/inheritance.js +192 -0
- package/dist/themes/keyboard-navigation.d.ts +213 -0
- package/dist/themes/keyboard-navigation.d.ts.map +1 -0
- package/dist/themes/keyboard-navigation.esm.js +458 -0
- package/dist/themes/keyboard-navigation.js +458 -0
- package/dist/themes/motion-reduction.d.ts +121 -0
- package/dist/themes/motion-reduction.d.ts.map +1 -0
- package/dist/themes/motion-reduction.esm.js +505 -0
- package/dist/themes/motion-reduction.js +505 -0
- package/dist/themes/navigation.d.ts +201 -0
- package/dist/themes/navigation.d.ts.map +1 -0
- package/dist/themes/navigation.esm.js +5 -0
- package/dist/themes/navigation.js +5 -0
- package/dist/themes/phase1-constants.d.ts +23 -0
- package/dist/themes/phase1-constants.d.ts.map +1 -0
- package/dist/themes/phase1-constants.esm.js +180 -0
- package/dist/themes/phase1-constants.js +180 -0
- package/dist/themes/screen-reader.d.ts +86 -0
- package/dist/themes/screen-reader.d.ts.map +1 -0
- package/dist/themes/screen-reader.esm.js +544 -0
- package/dist/themes/screen-reader.js +544 -0
- package/dist/themes/systemThemeDetector.d.ts +58 -0
- package/dist/themes/systemThemeDetector.d.ts.map +1 -0
- package/dist/themes/systemThemeDetector.esm.js +153 -0
- package/dist/themes/systemThemeDetector.js +153 -0
- package/dist/themes/themeCSSUpdater.d.ts +46 -0
- package/dist/themes/themeCSSUpdater.d.ts.map +1 -0
- package/dist/themes/themeCSSUpdater.esm.js +227 -0
- package/dist/themes/themeCSSUpdater.js +227 -0
- package/dist/themes/themePersistence.d.ts +84 -0
- package/dist/themes/themePersistence.d.ts.map +1 -0
- package/dist/themes/themePersistence.esm.js +207 -0
- package/dist/themes/themePersistence.js +207 -0
- package/dist/themes/themes/default.d.ts +9 -0
- package/dist/themes/themes/default.d.ts.map +1 -0
- package/dist/themes/themes/default.esm.js +587 -0
- package/dist/themes/themes/default.js +587 -0
- package/dist/themes/themes/jeremy.d.ts +7 -0
- package/dist/themes/themes/jeremy.d.ts.map +1 -0
- package/dist/themes/themes/jeremy.esm.js +679 -0
- package/dist/themes/themes/jeremy.js +679 -0
- package/dist/themes/types.d.ts +462 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/themes/types.esm.js +3 -0
- package/dist/themes/types.js +3 -0
- package/dist/themes/useSystemTheme.d.ts +11 -0
- package/dist/themes/useSystemTheme.d.ts.map +1 -0
- package/dist/themes/useSystemTheme.esm.js +40 -0
- package/dist/themes/useSystemTheme.js +40 -0
- package/dist/themes/useTheme.d.ts +70 -0
- package/dist/themes/useTheme.d.ts.map +1 -0
- package/dist/themes/useTheme.esm.js +82 -0
- package/dist/themes/useTheme.js +82 -0
- package/dist/themes/validation.d.ts +88 -0
- package/dist/themes/validation.d.ts.map +1 -0
- package/dist/themes/validation.esm.js +627 -0
- package/dist/themes/validation.js +627 -0
- package/dist/tokens/index.d.ts +11 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.esm.js +11 -0
- package/dist/tokens/index.js +11 -0
- package/dist/tokens/tokenExporter.d.ts +84 -0
- package/dist/tokens/tokenExporter.d.ts.map +1 -0
- package/dist/tokens/tokenExporter.esm.js +333 -0
- package/dist/tokens/tokenExporter.js +333 -0
- package/dist/tokens/tokenGenerator.d.ts +37 -0
- package/dist/tokens/tokenGenerator.d.ts.map +1 -0
- package/dist/tokens/tokenGenerator.esm.js +244 -0
- package/dist/tokens/tokenGenerator.js +244 -0
- package/dist/tokens/tokenManager.d.ts +92 -0
- package/dist/tokens/tokenManager.d.ts.map +1 -0
- package/dist/tokens/tokenManager.esm.js +194 -0
- package/dist/tokens/tokenManager.js +194 -0
- package/dist/tokens/tokenValidator.d.ts +91 -0
- package/dist/tokens/tokenValidator.d.ts.map +1 -0
- package/dist/tokens/tokenValidator.esm.js +423 -0
- package/dist/tokens/tokenValidator.js +423 -0
- package/dist/tokens/types.d.ts +58 -0
- package/dist/tokens/types.d.ts.map +1 -0
- package/dist/tokens/types.esm.js +1 -0
- package/dist/tokens/types.js +1 -0
- package/dist/types.d.ts +462 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.esm.js +3 -0
- package/dist/types.js +3 -0
- package/dist/utils/bundle-analyzer.d.ts +43 -0
- package/dist/utils/bundle-analyzer.d.ts.map +1 -0
- package/dist/utils/bundle-analyzer.esm.js +202 -0
- package/dist/utils/bundle-analyzer.js +202 -0
- package/dist/utils/bundle-splitting.d.ts +71 -0
- package/dist/utils/bundle-splitting.d.ts.map +1 -0
- package/dist/utils/bundle-splitting.esm.js +355 -0
- package/dist/utils/bundle-splitting.js +355 -0
- package/dist/utils/lazy-loading.d.ts +72 -0
- package/dist/utils/lazy-loading.d.ts.map +1 -0
- package/dist/utils/lazy-loading.esm.js +336 -0
- package/dist/utils/lazy-loading.js +336 -0
- package/dist/utils/performance-monitor.d.ts +81 -0
- package/dist/utils/performance-monitor.d.ts.map +1 -0
- package/dist/utils/performance-monitor.esm.js +392 -0
- package/dist/utils/performance-monitor.js +392 -0
- package/dist/utils/progressive-css-injector.d.ts +80 -0
- package/dist/utils/progressive-css-injector.d.ts.map +1 -0
- package/dist/utils/progressive-css-injector.esm.js +217 -0
- package/dist/utils/progressive-css-injector.js +217 -0
- package/dist/utils/tree-shaking.d.ts +47 -0
- package/dist/utils/tree-shaking.d.ts.map +1 -0
- package/dist/utils/tree-shaking.esm.js +204 -0
- package/dist/utils/tree-shaking.js +204 -0
- package/package.json +92 -0
- package/src/components/ui/accessibility-demo.tsx +274 -0
- package/src/components/ui/advanced-component-architecture-demo.tsx +919 -0
- package/src/components/ui/advanced-transition-system-demo.tsx +673 -0
- package/src/components/ui/advanced-transition-system.tsx +398 -0
- package/src/components/ui/animation/animated-container.tsx +169 -0
- package/src/components/ui/animation/index.ts +19 -0
- package/src/components/ui/animation/staggered-container.tsx +69 -0
- package/src/components/ui/animation-demo.tsx +253 -0
- package/src/components/ui/badge.tsx +33 -0
- package/src/components/ui/battery-conscious-animation-demo.tsx +571 -0
- package/src/components/ui/border-radius-shadow-demo.tsx +187 -0
- package/src/components/ui/button.tsx +41 -0
- package/src/components/ui/card.tsx +207 -0
- package/src/components/ui/checkbox.tsx +32 -0
- package/src/components/ui/color-preview.tsx +411 -0
- package/src/components/ui/data-display/chart.tsx +656 -0
- package/src/components/ui/data-display/data-grid-simple.tsx +76 -0
- package/src/components/ui/data-display/data-grid.tsx +684 -0
- package/src/components/ui/data-display/list.tsx +459 -0
- package/src/components/ui/data-display/table.tsx +486 -0
- package/src/components/ui/data-display/timeline.tsx +444 -0
- package/src/components/ui/data-display/tree.tsx +605 -0
- package/src/components/ui/data-display/types.ts +540 -0
- package/src/components/ui/enterprise-mobile-experience-demo.tsx +752 -0
- package/src/components/ui/enterprise-mobile-experience.tsx +467 -0
- package/src/components/ui/feedback/alert.tsx +163 -0
- package/src/components/ui/feedback/index.ts +35 -0
- package/src/components/ui/feedback/progress.tsx +279 -0
- package/src/components/ui/feedback/skeleton.tsx +185 -0
- package/src/components/ui/feedback/status-alert-example.ts +71 -0
- package/src/components/ui/feedback/toast-context.tsx +145 -0
- package/src/components/ui/feedback/toast-example.tsx +65 -0
- package/src/components/ui/feedback/toast-renderer.tsx +61 -0
- package/src/components/ui/feedback/toast.tsx +285 -0
- package/src/components/ui/feedback/types.ts +145 -0
- package/src/components/ui/font-preview.tsx +288 -0
- package/src/components/ui/form-demo.tsx +556 -0
- package/src/components/ui/hardware-acceleration-demo.tsx +550 -0
- package/src/components/ui/input.tsx +37 -0
- package/src/components/ui/label.tsx +16 -0
- package/src/components/ui/layout/container.tsx +312 -0
- package/src/components/ui/layout/index.ts +10 -0
- package/src/components/ui/layout/responsive-grid.tsx +286 -0
- package/src/components/ui/layout-demo.tsx +370 -0
- package/src/components/ui/layouts/adaptive-layout.tsx +120 -0
- package/src/components/ui/layouts/desktop-layout.tsx +213 -0
- package/src/components/ui/layouts/index.ts +10 -0
- package/src/components/ui/layouts/mobile-layout.tsx +165 -0
- package/src/components/ui/layouts/tablet-layout.tsx +200 -0
- package/src/components/ui/mobile-form-validation.tsx +454 -0
- package/src/components/ui/mobile-input-demo.tsx +201 -0
- package/src/components/ui/mobile-input.tsx +283 -0
- package/src/components/ui/mobile-skeleton-loading-demo.tsx +641 -0
- package/src/components/ui/navigation/breadcrumb.tsx +160 -0
- package/src/components/ui/navigation/index.ts +51 -0
- package/src/components/ui/navigation/menu.tsx +376 -0
- package/src/components/ui/navigation/navigation-demo.tsx +326 -0
- package/src/components/ui/navigation/pagination.tsx +274 -0
- package/src/components/ui/navigation/progressive-navigation.tsx +453 -0
- package/src/components/ui/navigation/sidebar.tsx +385 -0
- package/src/components/ui/navigation/stepper.tsx +305 -0
- package/src/components/ui/navigation/subscription-badge.tsx +110 -0
- package/src/components/ui/navigation/tabs.tsx +207 -0
- package/src/components/ui/navigation/types.ts +354 -0
- package/src/components/ui/navigation/user-avatar.tsx +111 -0
- package/src/components/ui/navigation/user-menu-examples.tsx +551 -0
- package/src/components/ui/navigation/user-menu-types.ts +308 -0
- package/src/components/ui/navigation/user-menu.tsx +414 -0
- package/src/components/ui/overlay/backdrop.tsx +83 -0
- package/src/components/ui/overlay/focus-manager.tsx +146 -0
- package/src/components/ui/overlay/index.ts +36 -0
- package/src/components/ui/overlay/modal.tsx +273 -0
- package/src/components/ui/overlay/overlay-manager.tsx +113 -0
- package/src/components/ui/overlay/popover.tsx +465 -0
- package/src/components/ui/overlay/portal.tsx +82 -0
- package/src/components/ui/overlay/tooltip.tsx +306 -0
- package/src/components/ui/overlay/types.ts +196 -0
- package/src/components/ui/performance-demo.tsx +599 -0
- package/src/components/ui/semantic-input-system-demo.tsx +505 -0
- package/src/components/ui/semantic-input-system-demo.tsx.disabled +873 -0
- package/src/components/ui/theme-customizer.tsx +389 -0
- package/src/components/ui/theme-preview.tsx +310 -0
- package/src/components/ui/theme-switcher.tsx +267 -0
- package/src/components/ui/theme-toggle.tsx +56 -0
- package/src/components/ui/token-demo.tsx +198 -0
- package/src/components/ui/touch-demo.tsx +465 -0
- package/src/components/ui/touch-friendly-interface-demo.tsx +522 -0
- package/src/components/ui/touch-friendly-interface.tsx +299 -0
- package/src/hooks/index.ts +190 -0
- package/src/hooks/use-accessibility-support.ts +518 -0
- package/src/hooks/use-adaptive-layout.ts +293 -0
- package/src/hooks/use-advanced-patterns.ts +294 -0
- package/src/hooks/use-advanced-transition-system.ts +393 -0
- package/src/hooks/use-animation-profile.ts +288 -0
- package/src/hooks/use-battery-animations.ts +384 -0
- package/src/hooks/use-battery-conscious-loading.ts +475 -0
- package/src/hooks/use-battery-optimization.ts +330 -0
- package/src/hooks/use-battery-status.ts +299 -0
- package/src/hooks/use-component-performance.ts +345 -0
- package/src/hooks/use-device-loading-states.ts +459 -0
- package/src/hooks/use-device.tsx +119 -0
- package/src/hooks/use-enterprise-mobile-experience.ts +488 -0
- package/src/hooks/use-form-feedback.ts +403 -0
- package/src/hooks/use-form-performance.ts +513 -0
- package/src/hooks/use-frame-rate.ts +251 -0
- package/src/hooks/use-gestures.ts +338 -0
- package/src/hooks/use-hardware-acceleration.ts +341 -0
- package/src/hooks/use-input-accessibility.ts +455 -0
- package/src/hooks/use-input-performance.ts +506 -0
- package/src/hooks/use-layout-performance.ts +319 -0
- package/src/hooks/use-loading-accessibility.ts +535 -0
- package/src/hooks/use-loading-performance.ts +473 -0
- package/src/hooks/use-memory-usage.ts +287 -0
- package/src/hooks/use-mobile-form-layout.ts +464 -0
- package/src/hooks/use-mobile-form-validation.ts +518 -0
- package/src/hooks/use-mobile-keyboard-optimization.ts +472 -0
- package/src/hooks/use-mobile-layout.ts +302 -0
- package/src/hooks/use-mobile-optimization.ts +406 -0
- package/src/hooks/use-mobile-skeleton.ts +402 -0
- package/src/hooks/use-mobile-touch.ts +414 -0
- package/src/hooks/use-performance-throttling.ts +348 -0
- package/src/hooks/use-performance.ts +316 -0
- package/src/hooks/use-reusable-architecture.ts +414 -0
- package/src/hooks/use-semantic-input-types.ts +357 -0
- package/src/hooks/use-semantic-input.ts +565 -0
- package/src/hooks/use-tablet-layout.ts +384 -0
- package/src/hooks/use-touch-friendly-input.ts +524 -0
- package/src/hooks/use-touch-friendly-interface.ts +331 -0
- package/src/hooks/use-touch-optimization.ts +375 -0
- package/src/index.css +1049 -0
- package/src/index.ts +412 -0
- package/src/lib/utils.ts +6 -0
- package/src/plugins/css-purge-optimizer.ts +491 -0
- package/src/plugins/performance-monitor.ts +292 -0
- package/src/plugins/progressive-css-loader.ts +269 -0
- package/src/plugins/theme-css-generator.ts +334 -0
- package/src/provider.tsx +20 -0
- package/src/styles/base/fonts.css +30 -0
- package/src/styles/base/index.css +7 -0
- package/src/styles/base/reset.css +48 -0
- package/src/styles/base/theme.css +1068 -0
- package/src/styles/base/typography.css +68 -0
- package/src/styles/base/variables.css +5 -0
- package/src/styles/components/CLAUDE.md +62 -0
- package/src/styles/components/base/badge.css +432 -0
- package/src/styles/components/base/button.css +980 -0
- package/src/styles/components/base/card.css +605 -0
- package/src/styles/components/base/checkbox.css +446 -0
- package/src/styles/components/base/index.css +9 -0
- package/src/styles/components/base/input.css +891 -0
- package/src/styles/components/base/label.css +300 -0
- package/src/styles/components/data-display/chart.css +353 -0
- package/src/styles/components/data-display/data-grid.css +619 -0
- package/src/styles/components/data-display/index.css +9 -0
- package/src/styles/components/data-display/list.css +560 -0
- package/src/styles/components/data-display/table.css +498 -0
- package/src/styles/components/data-display/timeline.css +764 -0
- package/src/styles/components/data-display/tree.css +881 -0
- package/src/styles/components/feedback/alert.css +358 -0
- package/src/styles/components/feedback/index.css +7 -0
- package/src/styles/components/feedback/progress.css +468 -0
- package/src/styles/components/feedback/skeleton.css +337 -0
- package/src/styles/components/feedback/toast.css +564 -0
- package/src/styles/components/index.css +20 -0
- package/src/styles/components/layout/container.css +466 -0
- package/src/styles/components/layout/index.css +5 -0
- package/src/styles/components/layout/responsive-grid.css +422 -0
- package/src/styles/components/navigation/breadcrumb.css +465 -0
- package/src/styles/components/navigation/index.css +11 -0
- package/src/styles/components/navigation/menu.css +572 -0
- package/src/styles/components/navigation/pagination.css +635 -0
- package/src/styles/components/navigation/progressive-navigation.css +633 -0
- package/src/styles/components/navigation/sidebar.css +807 -0
- package/src/styles/components/navigation/stepper.css +519 -0
- package/src/styles/components/navigation/tabs.css +404 -0
- package/src/styles/components/navigation/user-menu.css +582 -0
- package/src/styles/components/overlay/backdrop.css +243 -0
- package/src/styles/components/overlay/index.css +8 -0
- package/src/styles/components/overlay/modal.css +482 -0
- package/src/styles/components/overlay/popover.css +607 -0
- package/src/styles/components/overlay/portal.css +213 -0
- package/src/styles/components/overlay/tooltip.css +488 -0
- package/src/styles/components/ui/index.css +4 -0
- package/src/styles/components/ui/theme-toggle.css +200 -0
- package/src/styles/generated-theme-variables.css +1 -0
- package/src/styles/index.css +5 -0
- package/src/styles/layers/index.css +33 -0
- package/src/styles/layers/overrides.css +108 -0
- package/src/styles/layers/validation.css +159 -0
- package/src/styles/layers/validation.js +310 -0
- package/src/styles/progressive.css +17 -0
- package/src/styles/themes/jeremy.css +646 -0
- package/src/styles/utilities/advanced-transition-system.css +467 -0
- package/src/styles/utilities/battery-conscious-animations.css +289 -0
- package/src/styles/utilities/design-system-utilities.css +278 -0
- package/src/styles/utilities/enterprise-mobile-experience.css +817 -0
- package/src/styles/utilities/hardware-acceleration.css +121 -0
- package/src/styles/utilities/index.css +23 -0
- package/src/styles/utilities/mobile-skeleton-loading.css +596 -0
- package/src/styles/utilities/semantic-input-system.css +445 -0
- package/src/styles/utilities/touch-friendly-interface.css +247 -0
- package/src/styles/utilities/touch-optimization.css +165 -0
- package/src/theme.ts +683 -0
- package/src/themes/README.md +272 -0
- package/src/themes/ThemeContext.tsx +31 -0
- package/src/themes/ThemeProvider.tsx +232 -0
- package/src/themes/accessibility/index.ts +27 -0
- package/src/themes/accessibility.ts +259 -0
- package/src/themes/aria-patterns.ts +420 -0
- package/src/themes/base-themes.ts +64 -0
- package/src/themes/colorManager.ts +380 -0
- package/src/themes/examples/dark-theme.ts +154 -0
- package/src/themes/examples/minimal-theme.ts +108 -0
- package/src/themes/focus-management.ts +701 -0
- package/src/themes/fontLoader.ts +201 -0
- package/src/themes/high-contrast.ts +621 -0
- package/src/themes/index.ts +20 -0
- package/src/themes/inheritance.ts +227 -0
- package/src/themes/keyboard-navigation.ts +550 -0
- package/src/themes/motion-reduction.ts +662 -0
- package/src/themes/navigation.ts +238 -0
- package/src/themes/phase1-constants.ts +189 -0
- package/src/themes/screen-reader.ts +645 -0
- package/src/themes/systemThemeDetector.ts +182 -0
- package/src/themes/themeCSSUpdater.ts +262 -0
- package/src/themes/themePersistence.ts +238 -0
- package/src/themes/themes/default.ts +590 -0
- package/src/themes/themes/jeremy.ts +683 -0
- package/src/themes/types.ts +540 -0
- package/src/themes/useSystemTheme.ts +48 -0
- package/src/themes/useTheme.ts +87 -0
- package/src/themes/validation.ts +711 -0
- package/src/tokens/index.ts +34 -0
- package/src/tokens/tokenExporter.ts +397 -0
- package/src/tokens/tokenGenerator.ts +276 -0
- package/src/tokens/tokenManager.ts +248 -0
- package/src/tokens/tokenValidator.ts +543 -0
- package/src/tokens/types.ts +78 -0
- package/src/types.ts +540 -0
- package/src/utils/bundle-analyzer.ts +260 -0
- package/src/utils/bundle-splitting.ts +483 -0
- package/src/utils/lazy-loading.ts +441 -0
- package/src/utils/performance-monitor.ts +513 -0
- package/src/utils/progressive-css-injector.ts +254 -0
- package/src/utils/tree-shaking.ts +274 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { Badge } from './badge.js';
|
|
5
|
+
import { useEnterpriseMobileExperience } from '../../hooks/use-enterprise-mobile-experience.js';
|
|
6
|
+
import { EnterpriseButton, EnterpriseCard, EnterpriseInput, EnterpriseProgress, EnterpriseQualityMetric, EnterpriseStatus, EnterpriseLoading, EnterpriseNotification } from './enterprise-mobile-experience.js';
|
|
7
|
+
export const EnterpriseMobileExperienceDemo = () => {
|
|
8
|
+
const [activeDemo, setActiveDemo] = useState('overview');
|
|
9
|
+
const [formData, setFormData] = useState({
|
|
10
|
+
name: '',
|
|
11
|
+
email: '',
|
|
12
|
+
company: '',
|
|
13
|
+
feedback: ''
|
|
14
|
+
});
|
|
15
|
+
const [showNotification, setShowNotification] = useState(false);
|
|
16
|
+
const [notificationType, setNotificationType] = useState('success');
|
|
17
|
+
const { enterpriseState, qualityMetrics, performanceMetrics, accessibilityMetrics, isOptimizing, optimizationHistory, runComprehensiveOptimization, clearOptimizationHistory } = useEnterpriseMobileExperience({
|
|
18
|
+
enableProfessionalQuality: true,
|
|
19
|
+
enablePerformanceExcellence: true,
|
|
20
|
+
enableAccessibilityCompliance: true,
|
|
21
|
+
enableUserExperienceExcellence: true,
|
|
22
|
+
enableVisualRefinement: true,
|
|
23
|
+
enableInteractionRefinement: true
|
|
24
|
+
}, {
|
|
25
|
+
onQualityImproved: (metrics) => {
|
|
26
|
+
console.log('Quality improved:', metrics);
|
|
27
|
+
},
|
|
28
|
+
onPerformanceOptimized: (metrics) => {
|
|
29
|
+
console.log('Performance optimized:', metrics);
|
|
30
|
+
},
|
|
31
|
+
onAccessibilityEnhanced: (metrics) => {
|
|
32
|
+
console.log('Accessibility enhanced:', metrics);
|
|
33
|
+
},
|
|
34
|
+
onPhaseCompleted: (phase) => {
|
|
35
|
+
console.log('Phase completed:', phase);
|
|
36
|
+
},
|
|
37
|
+
onEnterpriseReady: (state) => {
|
|
38
|
+
console.log('Enterprise ready:', state);
|
|
39
|
+
setShowNotification(true);
|
|
40
|
+
setNotificationType('success');
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const handleInputChange = (field, value) => {
|
|
44
|
+
setFormData(prev => ({ ...prev, [field]: value }));
|
|
45
|
+
};
|
|
46
|
+
const handleShowNotification = (type) => {
|
|
47
|
+
setNotificationType(type);
|
|
48
|
+
setShowNotification(true);
|
|
49
|
+
};
|
|
50
|
+
const renderOverviewDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83C\uDFC6 Enterprise Status Overview" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(EnterpriseCard, { variant: "premium", className: "text-center", children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [enterpriseState.overallQualityScore, "/100"] }), _jsx("div", { className: "text-lg font-semibold text-cs-text-primary", children: "Overall Quality Score" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: enterpriseState.overallQualityScore >= 90 ? 'Exceptional Quality' :
|
|
51
|
+
enterpriseState.overallQualityScore >= 80 ? 'High Quality' :
|
|
52
|
+
enterpriseState.overallQualityScore >= 70 ? 'Good Quality' : 'Needs Improvement' }), _jsx(EnterpriseStatus, { phase: enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
53
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
54
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
55
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
56
|
+
'complete', children: enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1) })] }) }), _jsx(EnterpriseCard, { variant: "interactive", className: "text-center", children: _jsxs("div", { className: "space-y-4", children: [_jsx("div", { className: "text-4xl font-bold text-cs-primary", children: enterpriseState.optimizationCount }), _jsx("div", { className: "text-lg font-semibold text-cs-text-primary", children: "Optimizations Applied" }), _jsxs("div", { className: "text-sm text-cs-text-secondary", children: ["Last: ", enterpriseState.lastOptimizationTime ? new Date(enterpriseState.lastOptimizationTime).toLocaleTimeString() : 'Never'] }), _jsx(EnterpriseButton, { onClick: runComprehensiveOptimization, disabled: isOptimizing, loading: isOptimizing, variant: "premium", children: isOptimizing ? 'Optimizing...' : 'Run Optimization' })] }) })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDCCA Quality Metrics Overview" }), _jsxs("div", { className: "enterprise-quality-metrics", children: [_jsx(EnterpriseQualityMetric, { score: enterpriseState.professionalQualityScore, label: "Professional Quality", description: "Visual & interaction excellence" }), _jsx(EnterpriseQualityMetric, { score: enterpriseState.performanceExcellenceScore, label: "Performance Excellence", description: "Speed & efficiency metrics" }), _jsx(EnterpriseQualityMetric, { score: enterpriseState.accessibilityComplianceScore, label: "Accessibility Compliance", description: "WCAG 2.1 AA standards" }), _jsx(EnterpriseQualityMetric, { score: enterpriseState.userExperienceScore, label: "User Experience", description: "Mobile optimization & UX" })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDE80 Enterprise Ready Status" }), _jsx(EnterpriseCard, { variant: enterpriseState.isEnterpriseReady ? 'featured' : 'default', children: _jsxs("div", { className: "text-center space-y-4", children: [_jsx("div", { className: "text-6xl", children: enterpriseState.isEnterpriseReady ? 'đ' : 'âŗ' }), _jsx("div", { className: "text-2xl font-bold text-cs-text-primary", children: enterpriseState.isEnterpriseReady ? 'Enterprise Ready!' : 'Preparing for Enterprise' }), _jsx("div", { className: "text-cs-text-secondary", children: enterpriseState.isEnterpriseReady
|
|
57
|
+
? 'Your design system meets enterprise-grade standards and is ready for production use.'
|
|
58
|
+
: 'Optimization in progress. Your design system will be enterprise-ready soon.' }), enterpriseState.isEnterpriseReady && (_jsx("div", { className: "flex justify-center", children: _jsx(EnterpriseStatus, { phase: "enterprise-ready", children: "Enterprise Ready" }) }))] }) })] })] }));
|
|
59
|
+
const renderQualityDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\u2728 Professional Quality Assessment" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Visual Quality" }), _jsx(EnterpriseProgress, { value: qualityMetrics.visualQuality, variant: qualityMetrics.visualQuality >= 90 ? 'success' : qualityMetrics.visualQuality >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Enhanced color contrast, typography hierarchy, spacing optimization, and professional color palette" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Interaction Quality" }), _jsx(EnterpriseProgress, { value: qualityMetrics.interactionQuality, variant: qualityMetrics.interactionQuality >= 90 ? 'success' : qualityMetrics.interactionQuality >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Smooth micro-interactions, optimized touch targets, enhanced gesture support, and professional animations" })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Mobile Optimization" }), _jsx(EnterpriseProgress, { value: qualityMetrics.mobileOptimization, variant: qualityMetrics.mobileOptimization >= 90 ? 'success' : qualityMetrics.mobileOptimization >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Touch-friendly design, responsive layouts, mobile-first approach, and performance optimization" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Industry Benchmark" }), _jsx(EnterpriseProgress, { value: qualityMetrics.industryBenchmark, variant: qualityMetrics.industryBenchmark >= 90 ? 'success' : qualityMetrics.industryBenchmark >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Comparison against industry standards, best practices implementation, and competitive analysis" })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDCDD Optimization History" }), _jsxs(EnterpriseCard, { children: [_jsxs("div", { className: "flex justify-between items-center mb-4", children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary", children: "Applied Optimizations" }), _jsx(EnterpriseButton, { onClick: clearOptimizationHistory, variant: "outline", size: "sm", children: "Clear History" })] }), optimizationHistory.length > 0 ? (_jsx("div", { className: "space-y-2 max-h-60 overflow-y-auto", children: optimizationHistory.map((optimization, index) => (_jsx("div", { className: "p-3 bg-cs-surface-bg border border-cs-border rounded-lg text-sm", children: optimization }, index))) })) : (_jsx("div", { className: "text-center py-8 text-cs-text-secondary", children: "No optimizations applied yet. Run optimization to see improvements." }))] })] })] }));
|
|
60
|
+
const renderPerformanceDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\u26A1 Performance Excellence" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Frame Rate Performance" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsx("div", { className: "text-4xl font-bold text-cs-primary", children: performanceMetrics.frameRate }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "FPS" }), _jsxs("div", { className: "text-sm text-cs-text-secondary", children: ["Target: 60 FPS | Current: ", performanceMetrics.frameRate, " FPS"] }), _jsx(EnterpriseProgress, { value: (performanceMetrics.frameRate / 60) * 100, variant: performanceMetrics.frameRate >= 55 ? 'success' : performanceMetrics.frameRate >= 45 ? 'warning' : 'error', size: "lg" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Memory Efficiency" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [100 - performanceMetrics.memoryUsage, "%"] }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "Efficiency" }), _jsxs("div", { className: "text-sm text-cs-text-secondary", children: ["Usage: ", performanceMetrics.memoryUsage, "% | Available: ", 100 - performanceMetrics.memoryUsage, "%"] }), _jsx(EnterpriseProgress, { value: 100 - performanceMetrics.memoryUsage, variant: performanceMetrics.memoryUsage <= 20 ? 'success' : performanceMetrics.memoryUsage <= 40 ? 'warning' : 'error', size: "lg" })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Battery Efficiency" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [performanceMetrics.batteryEfficiency, "%"] }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "Efficiency" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Optimized for battery life and power consumption" }), _jsx(EnterpriseProgress, { value: performanceMetrics.batteryEfficiency, variant: performanceMetrics.batteryEfficiency >= 80 ? 'success' : performanceMetrics.batteryEfficiency >= 60 ? 'warning' : 'error', size: "lg" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Network Efficiency" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [performanceMetrics.networkEfficiency, "%"] }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "Efficiency" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Optimized for network performance and data usage" }), _jsx(EnterpriseProgress, { value: performanceMetrics.networkEfficiency, variant: performanceMetrics.networkEfficiency >= 80 ? 'success' : performanceMetrics.networkEfficiency >= 60 ? 'warning' : 'error', size: "lg" })] })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDE80 Performance Optimization" }), _jsx(EnterpriseCard, { variant: "interactive", children: _jsxs("div", { className: "text-center space-y-4", children: [_jsx("div", { className: "text-4xl", children: "\u26A1" }), _jsx("h4", { className: "text-xl font-semibold text-cs-text-primary", children: "Hardware Acceleration" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "GPU acceleration, memory optimization, and battery-aware performance tuning" }), _jsxs("div", { className: "flex justify-center space-x-2", children: [_jsx(Badge, { variant: "default", children: "GPU Accelerated" }), _jsx(Badge, { variant: "secondary", children: "Memory Optimized" }), _jsx(Badge, { variant: "outline", children: "Battery Aware" })] })] }) })] })] }));
|
|
61
|
+
const renderAccessibilityDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\u267F Accessibility Compliance" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "WCAG 2.1 AA Compliance" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.wcagCompliance, variant: accessibilityMetrics.wcagCompliance >= 90 ? 'success' : accessibilityMetrics.wcagCompliance >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Web Content Accessibility Guidelines 2.1 AA level compliance" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Screen Reader Support" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.screenReaderSupport, variant: accessibilityMetrics.screenReaderSupport >= 90 ? 'success' : accessibilityMetrics.screenReaderSupport >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Full screen reader compatibility and ARIA support" })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Keyboard Navigation" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.keyboardNavigation, variant: accessibilityMetrics.keyboardNavigation >= 90 ? 'success' : accessibilityMetrics.keyboardNavigation >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Complete keyboard navigation and focus management" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Color Contrast" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.colorContrast, variant: accessibilityMetrics.colorContrast >= 90 ? 'success' : accessibilityMetrics.colorContrast >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "High contrast ratios and color accessibility compliance" })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDD27 Accessibility Features" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [_jsxs(EnterpriseCard, { variant: "interactive", className: "text-center", children: [_jsx("div", { className: "text-3xl mb-2", children: "\uD83C\uDFAD" }), _jsx("h4", { className: "font-semibold text-cs-text-primary", children: "Motion Reduction" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Respects user motion preferences" })] }), _jsxs(EnterpriseCard, { variant: "interactive", className: "text-center", children: [_jsx("div", { className: "text-3xl mb-2", children: "\uD83C\uDFAF" }), _jsx("h4", { className: "font-semibold text-cs-text-primary", children: "Focus Management" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Clear focus indicators and traps" })] }), _jsxs(EnterpriseCard, { variant: "interactive", className: "text-center", children: [_jsx("div", { className: "text-3xl mb-2", children: "\uD83D\uDCF1" }), _jsx("h4", { className: "font-semibold text-cs-text-primary", children: "Touch Accessibility" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "44px minimum touch targets" })] })] })] })] }));
|
|
62
|
+
const renderComponentsDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83C\uDFA8 Enterprise Components Showcase" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Enterprise Buttons" }), _jsxs("div", { className: "space-y-3", children: [_jsx(EnterpriseButton, { variant: "default", size: "default", children: "Primary Button" }), _jsx(EnterpriseButton, { variant: "secondary", size: "default", children: "Secondary Button" }), _jsx(EnterpriseButton, { variant: "outline", size: "default", children: "Outline Button" }), _jsx(EnterpriseButton, { variant: "ghost", size: "default", children: "Ghost Button" }), _jsx(EnterpriseButton, { variant: "premium", size: "default", children: "Premium Button" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Enterprise Inputs" }), _jsxs("div", { className: "space-y-4", children: [_jsx(EnterpriseInput, { label: "Full Name", placeholder: "Enter your full name", required: true }), _jsx(EnterpriseInput, { label: "Email Address", placeholder: "Enter your email", type: "email", required: true }), _jsx(EnterpriseInput, { label: "Company", placeholder: "Enter your company name" })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Progress Indicators" }), _jsxs("div", { className: "space-y-4", children: [_jsx(EnterpriseProgress, { value: 75, variant: "success" }), _jsx(EnterpriseProgress, { value: 45, variant: "warning" }), _jsx(EnterpriseProgress, { value: 20, variant: "error" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Loading States" }), _jsxs("div", { className: "space-y-4", children: [_jsx(EnterpriseLoading, { size: "sm", text: "Loading..." }), _jsx(EnterpriseLoading, { size: "default", text: "Processing..." }), _jsx(EnterpriseLoading, { size: "lg", text: "Optimizing..." })] })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDCDD Interactive Form Demo" }), _jsx(EnterpriseCard, { children: _jsxs("form", { className: "space-y-6", children: [_jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(EnterpriseInput, { label: "Full Name", placeholder: "Enter your full name", value: formData.name, onChange: (e) => handleInputChange('name', e.target.value), required: true }), _jsx(EnterpriseInput, { label: "Email Address", placeholder: "Enter your email", type: "email", value: formData.email, onChange: (e) => handleInputChange('email', e.target.value), required: true })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(EnterpriseInput, { label: "Company", placeholder: "Enter your company name", value: formData.company, onChange: (e) => handleInputChange('company', e.target.value) }), _jsx(EnterpriseInput, { label: "Feedback", placeholder: "Share your feedback", value: formData.feedback, onChange: (e) => handleInputChange('feedback', e.target.value) })] }), _jsxs("div", { className: "flex justify-end space-x-3", children: [_jsx(EnterpriseButton, { variant: "outline", onClick: () => {
|
|
63
|
+
setFormData({ name: '', email: '', company: '', feedback: '' });
|
|
64
|
+
}, children: "Clear Form" }), _jsx(EnterpriseButton, { variant: "default", onClick: () => handleShowNotification('success'), children: "Submit Feedback" })] })] }) })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDD14 Notification System Demo" }), _jsx(EnterpriseCard, { children: _jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary", children: "Test Different Notification Types" }), _jsxs("div", { className: "flex flex-wrap gap-3", children: [_jsx(EnterpriseButton, { variant: "default", size: "sm", onClick: () => handleShowNotification('success'), children: "Success Notification" }), _jsx(EnterpriseButton, { variant: "secondary", size: "sm", onClick: () => handleShowNotification('info'), children: "Info Notification" }), _jsx(EnterpriseButton, { variant: "outline", size: "sm", onClick: () => handleShowNotification('warning'), children: "Warning Notification" }), _jsx(EnterpriseButton, { variant: "ghost", size: "sm", onClick: () => handleShowNotification('error'), children: "Error Notification" })] })] }) })] })] }));
|
|
65
|
+
return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "text-center space-y-2", children: [_jsx("h2", { className: "text-2xl font-bold text-cs-text-primary", children: "Enterprise-Grade Mobile Experience & Polish" }), _jsx("p", { className: "text-cs-text-secondary", children: "Professional design system with enterprise-grade quality, performance excellence, and accessibility compliance" })] }), _jsx("div", { className: "flex flex-wrap gap-2 justify-center", children: ['overview', 'quality', 'performance', 'accessibility', 'components'].map((demo) => (_jsxs("button", { onClick: () => setActiveDemo(demo), className: `px-4 py-2 rounded-lg font-medium transition-colors ${activeDemo === demo
|
|
66
|
+
? 'bg-cs-primary text-white'
|
|
67
|
+
: 'bg-cs-surface-bg text-cs-text-primary hover:bg-cs-hover-bg'}`, children: [demo === 'overview' && 'đ Overview', demo === 'quality' && '⨠Quality', demo === 'performance' && '⥠Performance', demo === 'accessibility' && 'âŋ Accessibility', demo === 'components' && 'đ¨ Components'] }, demo))) }), _jsxs("div", { className: "min-h-[500px]", children: [activeDemo === 'overview' && renderOverviewDemo(), activeDemo === 'quality' && renderQualityDemo(), activeDemo === 'performance' && renderPerformanceDemo(), activeDemo === 'accessibility' && renderAccessibilityDemo(), activeDemo === 'components' && renderComponentsDemo()] }), _jsx("div", { className: "p-4 bg-cs-surface-bg rounded-lg border border-cs-border", children: _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4 text-sm", children: [_jsxs("div", { className: "flex items-center space-x-4", children: [_jsx("span", { className: "font-medium", children: "Phase:" }), _jsx(EnterpriseStatus, { phase: enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
68
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
69
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
70
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
71
|
+
'complete', children: enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1) }), _jsx("span", { className: "font-medium", children: "Optimizations:" }), _jsx(Badge, { variant: "outline", children: enterpriseState.optimizationCount })] }), _jsxs("div", { className: "flex items-center space-x-4", children: [_jsx("span", { className: "font-medium", children: "Quality Score:" }), _jsxs("span", { className: `font-bold ${enterpriseState.overallQualityScore >= 90 ? 'text-cs-success' :
|
|
72
|
+
enterpriseState.overallQualityScore >= 80 ? 'text-cs-warning' : 'text-cs-error'}`, children: [enterpriseState.overallQualityScore, "/100"] }), _jsx("span", { className: "font-medium", children: "Status:" }), _jsx(Badge, { variant: enterpriseState.isEnterpriseReady ? 'default' : 'secondary', children: enterpriseState.isEnterpriseReady ? 'Enterprise Ready' : 'In Progress' })] })] }) }), showNotification && (_jsx(EnterpriseNotification, { type: notificationType, title: notificationType === 'success' ? 'Success!' :
|
|
73
|
+
notificationType === 'warning' ? 'Warning!' :
|
|
74
|
+
notificationType === 'error' ? 'Error!' : 'Information', message: notificationType === 'success' ? 'Operation completed successfully!' :
|
|
75
|
+
notificationType === 'warning' ? 'Please review the information provided.' :
|
|
76
|
+
notificationType === 'error' ? 'An error occurred. Please try again.' : 'Here is some information for you.', onClose: () => setShowNotification(false), duration: 3000 }))] }));
|
|
77
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { Badge } from './badge.js';
|
|
5
|
+
import { useEnterpriseMobileExperience } from '../../hooks/use-enterprise-mobile-experience.js';
|
|
6
|
+
import { EnterpriseButton, EnterpriseCard, EnterpriseInput, EnterpriseProgress, EnterpriseQualityMetric, EnterpriseStatus, EnterpriseLoading, EnterpriseNotification } from './enterprise-mobile-experience.js';
|
|
7
|
+
export const EnterpriseMobileExperienceDemo = () => {
|
|
8
|
+
const [activeDemo, setActiveDemo] = useState('overview');
|
|
9
|
+
const [formData, setFormData] = useState({
|
|
10
|
+
name: '',
|
|
11
|
+
email: '',
|
|
12
|
+
company: '',
|
|
13
|
+
feedback: ''
|
|
14
|
+
});
|
|
15
|
+
const [showNotification, setShowNotification] = useState(false);
|
|
16
|
+
const [notificationType, setNotificationType] = useState('success');
|
|
17
|
+
const { enterpriseState, qualityMetrics, performanceMetrics, accessibilityMetrics, isOptimizing, optimizationHistory, runComprehensiveOptimization, clearOptimizationHistory } = useEnterpriseMobileExperience({
|
|
18
|
+
enableProfessionalQuality: true,
|
|
19
|
+
enablePerformanceExcellence: true,
|
|
20
|
+
enableAccessibilityCompliance: true,
|
|
21
|
+
enableUserExperienceExcellence: true,
|
|
22
|
+
enableVisualRefinement: true,
|
|
23
|
+
enableInteractionRefinement: true
|
|
24
|
+
}, {
|
|
25
|
+
onQualityImproved: (metrics) => {
|
|
26
|
+
console.log('Quality improved:', metrics);
|
|
27
|
+
},
|
|
28
|
+
onPerformanceOptimized: (metrics) => {
|
|
29
|
+
console.log('Performance optimized:', metrics);
|
|
30
|
+
},
|
|
31
|
+
onAccessibilityEnhanced: (metrics) => {
|
|
32
|
+
console.log('Accessibility enhanced:', metrics);
|
|
33
|
+
},
|
|
34
|
+
onPhaseCompleted: (phase) => {
|
|
35
|
+
console.log('Phase completed:', phase);
|
|
36
|
+
},
|
|
37
|
+
onEnterpriseReady: (state) => {
|
|
38
|
+
console.log('Enterprise ready:', state);
|
|
39
|
+
setShowNotification(true);
|
|
40
|
+
setNotificationType('success');
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const handleInputChange = (field, value) => {
|
|
44
|
+
setFormData(prev => ({ ...prev, [field]: value }));
|
|
45
|
+
};
|
|
46
|
+
const handleShowNotification = (type) => {
|
|
47
|
+
setNotificationType(type);
|
|
48
|
+
setShowNotification(true);
|
|
49
|
+
};
|
|
50
|
+
const renderOverviewDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83C\uDFC6 Enterprise Status Overview" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(EnterpriseCard, { variant: "premium", className: "text-center", children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [enterpriseState.overallQualityScore, "/100"] }), _jsx("div", { className: "text-lg font-semibold text-cs-text-primary", children: "Overall Quality Score" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: enterpriseState.overallQualityScore >= 90 ? 'Exceptional Quality' :
|
|
51
|
+
enterpriseState.overallQualityScore >= 80 ? 'High Quality' :
|
|
52
|
+
enterpriseState.overallQualityScore >= 70 ? 'Good Quality' : 'Needs Improvement' }), _jsx(EnterpriseStatus, { phase: enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
53
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
54
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
55
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
56
|
+
'complete', children: enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1) })] }) }), _jsx(EnterpriseCard, { variant: "interactive", className: "text-center", children: _jsxs("div", { className: "space-y-4", children: [_jsx("div", { className: "text-4xl font-bold text-cs-primary", children: enterpriseState.optimizationCount }), _jsx("div", { className: "text-lg font-semibold text-cs-text-primary", children: "Optimizations Applied" }), _jsxs("div", { className: "text-sm text-cs-text-secondary", children: ["Last: ", enterpriseState.lastOptimizationTime ? new Date(enterpriseState.lastOptimizationTime).toLocaleTimeString() : 'Never'] }), _jsx(EnterpriseButton, { onClick: runComprehensiveOptimization, disabled: isOptimizing, loading: isOptimizing, variant: "premium", children: isOptimizing ? 'Optimizing...' : 'Run Optimization' })] }) })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDCCA Quality Metrics Overview" }), _jsxs("div", { className: "enterprise-quality-metrics", children: [_jsx(EnterpriseQualityMetric, { score: enterpriseState.professionalQualityScore, label: "Professional Quality", description: "Visual & interaction excellence" }), _jsx(EnterpriseQualityMetric, { score: enterpriseState.performanceExcellenceScore, label: "Performance Excellence", description: "Speed & efficiency metrics" }), _jsx(EnterpriseQualityMetric, { score: enterpriseState.accessibilityComplianceScore, label: "Accessibility Compliance", description: "WCAG 2.1 AA standards" }), _jsx(EnterpriseQualityMetric, { score: enterpriseState.userExperienceScore, label: "User Experience", description: "Mobile optimization & UX" })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDE80 Enterprise Ready Status" }), _jsx(EnterpriseCard, { variant: enterpriseState.isEnterpriseReady ? 'featured' : 'default', children: _jsxs("div", { className: "text-center space-y-4", children: [_jsx("div", { className: "text-6xl", children: enterpriseState.isEnterpriseReady ? 'đ' : 'âŗ' }), _jsx("div", { className: "text-2xl font-bold text-cs-text-primary", children: enterpriseState.isEnterpriseReady ? 'Enterprise Ready!' : 'Preparing for Enterprise' }), _jsx("div", { className: "text-cs-text-secondary", children: enterpriseState.isEnterpriseReady
|
|
57
|
+
? 'Your design system meets enterprise-grade standards and is ready for production use.'
|
|
58
|
+
: 'Optimization in progress. Your design system will be enterprise-ready soon.' }), enterpriseState.isEnterpriseReady && (_jsx("div", { className: "flex justify-center", children: _jsx(EnterpriseStatus, { phase: "enterprise-ready", children: "Enterprise Ready" }) }))] }) })] })] }));
|
|
59
|
+
const renderQualityDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\u2728 Professional Quality Assessment" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Visual Quality" }), _jsx(EnterpriseProgress, { value: qualityMetrics.visualQuality, variant: qualityMetrics.visualQuality >= 90 ? 'success' : qualityMetrics.visualQuality >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Enhanced color contrast, typography hierarchy, spacing optimization, and professional color palette" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Interaction Quality" }), _jsx(EnterpriseProgress, { value: qualityMetrics.interactionQuality, variant: qualityMetrics.interactionQuality >= 90 ? 'success' : qualityMetrics.interactionQuality >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Smooth micro-interactions, optimized touch targets, enhanced gesture support, and professional animations" })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Mobile Optimization" }), _jsx(EnterpriseProgress, { value: qualityMetrics.mobileOptimization, variant: qualityMetrics.mobileOptimization >= 90 ? 'success' : qualityMetrics.mobileOptimization >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Touch-friendly design, responsive layouts, mobile-first approach, and performance optimization" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Industry Benchmark" }), _jsx(EnterpriseProgress, { value: qualityMetrics.industryBenchmark, variant: qualityMetrics.industryBenchmark >= 90 ? 'success' : qualityMetrics.industryBenchmark >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Comparison against industry standards, best practices implementation, and competitive analysis" })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDCDD Optimization History" }), _jsxs(EnterpriseCard, { children: [_jsxs("div", { className: "flex justify-between items-center mb-4", children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary", children: "Applied Optimizations" }), _jsx(EnterpriseButton, { onClick: clearOptimizationHistory, variant: "outline", size: "sm", children: "Clear History" })] }), optimizationHistory.length > 0 ? (_jsx("div", { className: "space-y-2 max-h-60 overflow-y-auto", children: optimizationHistory.map((optimization, index) => (_jsx("div", { className: "p-3 bg-cs-surface-bg border border-cs-border rounded-lg text-sm", children: optimization }, index))) })) : (_jsx("div", { className: "text-center py-8 text-cs-text-secondary", children: "No optimizations applied yet. Run optimization to see improvements." }))] })] })] }));
|
|
60
|
+
const renderPerformanceDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\u26A1 Performance Excellence" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Frame Rate Performance" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsx("div", { className: "text-4xl font-bold text-cs-primary", children: performanceMetrics.frameRate }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "FPS" }), _jsxs("div", { className: "text-sm text-cs-text-secondary", children: ["Target: 60 FPS | Current: ", performanceMetrics.frameRate, " FPS"] }), _jsx(EnterpriseProgress, { value: (performanceMetrics.frameRate / 60) * 100, variant: performanceMetrics.frameRate >= 55 ? 'success' : performanceMetrics.frameRate >= 45 ? 'warning' : 'error', size: "lg" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Memory Efficiency" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [100 - performanceMetrics.memoryUsage, "%"] }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "Efficiency" }), _jsxs("div", { className: "text-sm text-cs-text-secondary", children: ["Usage: ", performanceMetrics.memoryUsage, "% | Available: ", 100 - performanceMetrics.memoryUsage, "%"] }), _jsx(EnterpriseProgress, { value: 100 - performanceMetrics.memoryUsage, variant: performanceMetrics.memoryUsage <= 20 ? 'success' : performanceMetrics.memoryUsage <= 40 ? 'warning' : 'error', size: "lg" })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Battery Efficiency" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [performanceMetrics.batteryEfficiency, "%"] }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "Efficiency" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Optimized for battery life and power consumption" }), _jsx(EnterpriseProgress, { value: performanceMetrics.batteryEfficiency, variant: performanceMetrics.batteryEfficiency >= 80 ? 'success' : performanceMetrics.batteryEfficiency >= 60 ? 'warning' : 'error', size: "lg" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Network Efficiency" }), _jsxs("div", { className: "text-center space-y-3", children: [_jsxs("div", { className: "text-4xl font-bold text-cs-primary", children: [performanceMetrics.networkEfficiency, "%"] }), _jsx("div", { className: "text-lg text-cs-text-primary", children: "Efficiency" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Optimized for network performance and data usage" }), _jsx(EnterpriseProgress, { value: performanceMetrics.networkEfficiency, variant: performanceMetrics.networkEfficiency >= 80 ? 'success' : performanceMetrics.networkEfficiency >= 60 ? 'warning' : 'error', size: "lg" })] })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDE80 Performance Optimization" }), _jsx(EnterpriseCard, { variant: "interactive", children: _jsxs("div", { className: "text-center space-y-4", children: [_jsx("div", { className: "text-4xl", children: "\u26A1" }), _jsx("h4", { className: "text-xl font-semibold text-cs-text-primary", children: "Hardware Acceleration" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "GPU acceleration, memory optimization, and battery-aware performance tuning" }), _jsxs("div", { className: "flex justify-center space-x-2", children: [_jsx(Badge, { variant: "default", children: "GPU Accelerated" }), _jsx(Badge, { variant: "secondary", children: "Memory Optimized" }), _jsx(Badge, { variant: "outline", children: "Battery Aware" })] })] }) })] })] }));
|
|
61
|
+
const renderAccessibilityDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\u267F Accessibility Compliance" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "WCAG 2.1 AA Compliance" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.wcagCompliance, variant: accessibilityMetrics.wcagCompliance >= 90 ? 'success' : accessibilityMetrics.wcagCompliance >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Web Content Accessibility Guidelines 2.1 AA level compliance" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Screen Reader Support" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.screenReaderSupport, variant: accessibilityMetrics.screenReaderSupport >= 90 ? 'success' : accessibilityMetrics.screenReaderSupport >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Full screen reader compatibility and ARIA support" })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Keyboard Navigation" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.keyboardNavigation, variant: accessibilityMetrics.keyboardNavigation >= 90 ? 'success' : accessibilityMetrics.keyboardNavigation >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "Complete keyboard navigation and focus management" })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Color Contrast" }), _jsx(EnterpriseProgress, { value: accessibilityMetrics.colorContrast, variant: accessibilityMetrics.colorContrast >= 90 ? 'success' : accessibilityMetrics.colorContrast >= 80 ? 'warning' : 'error', size: "lg" }), _jsx("div", { className: "mt-4 text-sm text-cs-text-secondary", children: "High contrast ratios and color accessibility compliance" })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDD27 Accessibility Features" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [_jsxs(EnterpriseCard, { variant: "interactive", className: "text-center", children: [_jsx("div", { className: "text-3xl mb-2", children: "\uD83C\uDFAD" }), _jsx("h4", { className: "font-semibold text-cs-text-primary", children: "Motion Reduction" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Respects user motion preferences" })] }), _jsxs(EnterpriseCard, { variant: "interactive", className: "text-center", children: [_jsx("div", { className: "text-3xl mb-2", children: "\uD83C\uDFAF" }), _jsx("h4", { className: "font-semibold text-cs-text-primary", children: "Focus Management" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "Clear focus indicators and traps" })] }), _jsxs(EnterpriseCard, { variant: "interactive", className: "text-center", children: [_jsx("div", { className: "text-3xl mb-2", children: "\uD83D\uDCF1" }), _jsx("h4", { className: "font-semibold text-cs-text-primary", children: "Touch Accessibility" }), _jsx("div", { className: "text-sm text-cs-text-secondary", children: "44px minimum touch targets" })] })] })] })] }));
|
|
62
|
+
const renderComponentsDemo = () => (_jsxs("div", { className: "space-y-8", children: [_jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83C\uDFA8 Enterprise Components Showcase" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Enterprise Buttons" }), _jsxs("div", { className: "space-y-3", children: [_jsx(EnterpriseButton, { variant: "default", size: "default", children: "Primary Button" }), _jsx(EnterpriseButton, { variant: "secondary", size: "default", children: "Secondary Button" }), _jsx(EnterpriseButton, { variant: "outline", size: "default", children: "Outline Button" }), _jsx(EnterpriseButton, { variant: "ghost", size: "default", children: "Ghost Button" }), _jsx(EnterpriseButton, { variant: "premium", size: "default", children: "Premium Button" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Enterprise Inputs" }), _jsxs("div", { className: "space-y-4", children: [_jsx(EnterpriseInput, { label: "Full Name", placeholder: "Enter your full name", required: true }), _jsx(EnterpriseInput, { label: "Email Address", placeholder: "Enter your email", type: "email", required: true }), _jsx(EnterpriseInput, { label: "Company", placeholder: "Enter your company name" })] })] })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Progress Indicators" }), _jsxs("div", { className: "space-y-4", children: [_jsx(EnterpriseProgress, { value: 75, variant: "success" }), _jsx(EnterpriseProgress, { value: 45, variant: "warning" }), _jsx(EnterpriseProgress, { value: 20, variant: "error" })] })] }), _jsxs(EnterpriseCard, { children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Loading States" }), _jsxs("div", { className: "space-y-4", children: [_jsx(EnterpriseLoading, { size: "sm", text: "Loading..." }), _jsx(EnterpriseLoading, { size: "default", text: "Processing..." }), _jsx(EnterpriseLoading, { size: "lg", text: "Optimizing..." })] })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDCDD Interactive Form Demo" }), _jsx(EnterpriseCard, { children: _jsxs("form", { className: "space-y-6", children: [_jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(EnterpriseInput, { label: "Full Name", placeholder: "Enter your full name", value: formData.name, onChange: (e) => handleInputChange('name', e.target.value), required: true }), _jsx(EnterpriseInput, { label: "Email Address", placeholder: "Enter your email", type: "email", value: formData.email, onChange: (e) => handleInputChange('email', e.target.value), required: true })] }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsx(EnterpriseInput, { label: "Company", placeholder: "Enter your company name", value: formData.company, onChange: (e) => handleInputChange('company', e.target.value) }), _jsx(EnterpriseInput, { label: "Feedback", placeholder: "Share your feedback", value: formData.feedback, onChange: (e) => handleInputChange('feedback', e.target.value) })] }), _jsxs("div", { className: "flex justify-end space-x-3", children: [_jsx(EnterpriseButton, { variant: "outline", onClick: () => {
|
|
63
|
+
setFormData({ name: '', email: '', company: '', feedback: '' });
|
|
64
|
+
}, children: "Clear Form" }), _jsx(EnterpriseButton, { variant: "default", onClick: () => handleShowNotification('success'), children: "Submit Feedback" })] })] }) })] }), _jsxs("div", { className: "space-y-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary", children: "\uD83D\uDD14 Notification System Demo" }), _jsx(EnterpriseCard, { children: _jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-lg font-semibold text-cs-text-primary", children: "Test Different Notification Types" }), _jsxs("div", { className: "flex flex-wrap gap-3", children: [_jsx(EnterpriseButton, { variant: "default", size: "sm", onClick: () => handleShowNotification('success'), children: "Success Notification" }), _jsx(EnterpriseButton, { variant: "secondary", size: "sm", onClick: () => handleShowNotification('info'), children: "Info Notification" }), _jsx(EnterpriseButton, { variant: "outline", size: "sm", onClick: () => handleShowNotification('warning'), children: "Warning Notification" }), _jsx(EnterpriseButton, { variant: "ghost", size: "sm", onClick: () => handleShowNotification('error'), children: "Error Notification" })] })] }) })] })] }));
|
|
65
|
+
return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "text-center space-y-2", children: [_jsx("h2", { className: "text-2xl font-bold text-cs-text-primary", children: "Enterprise-Grade Mobile Experience & Polish" }), _jsx("p", { className: "text-cs-text-secondary", children: "Professional design system with enterprise-grade quality, performance excellence, and accessibility compliance" })] }), _jsx("div", { className: "flex flex-wrap gap-2 justify-center", children: ['overview', 'quality', 'performance', 'accessibility', 'components'].map((demo) => (_jsxs("button", { onClick: () => setActiveDemo(demo), className: `px-4 py-2 rounded-lg font-medium transition-colors ${activeDemo === demo
|
|
66
|
+
? 'bg-cs-primary text-white'
|
|
67
|
+
: 'bg-cs-surface-bg text-cs-text-primary hover:bg-cs-hover-bg'}`, children: [demo === 'overview' && 'đ Overview', demo === 'quality' && '⨠Quality', demo === 'performance' && '⥠Performance', demo === 'accessibility' && 'âŋ Accessibility', demo === 'components' && 'đ¨ Components'] }, demo))) }), _jsxs("div", { className: "min-h-[500px]", children: [activeDemo === 'overview' && renderOverviewDemo(), activeDemo === 'quality' && renderQualityDemo(), activeDemo === 'performance' && renderPerformanceDemo(), activeDemo === 'accessibility' && renderAccessibilityDemo(), activeDemo === 'components' && renderComponentsDemo()] }), _jsx("div", { className: "p-4 bg-cs-surface-bg rounded-lg border border-cs-border", children: _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4 text-sm", children: [_jsxs("div", { className: "flex items-center space-x-4", children: [_jsx("span", { className: "font-medium", children: "Phase:" }), _jsx(EnterpriseStatus, { phase: enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
68
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
69
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
70
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
71
|
+
'complete', children: enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1) }), _jsx("span", { className: "font-medium", children: "Optimizations:" }), _jsx(Badge, { variant: "outline", children: enterpriseState.optimizationCount })] }), _jsxs("div", { className: "flex items-center space-x-4", children: [_jsx("span", { className: "font-medium", children: "Quality Score:" }), _jsxs("span", { className: `font-bold ${enterpriseState.overallQualityScore >= 90 ? 'text-cs-success' :
|
|
72
|
+
enterpriseState.overallQualityScore >= 80 ? 'text-cs-warning' : 'text-cs-error'}`, children: [enterpriseState.overallQualityScore, "/100"] }), _jsx("span", { className: "font-medium", children: "Status:" }), _jsx(Badge, { variant: enterpriseState.isEnterpriseReady ? 'default' : 'secondary', children: enterpriseState.isEnterpriseReady ? 'Enterprise Ready' : 'In Progress' })] })] }) }), showNotification && (_jsx(EnterpriseNotification, { type: notificationType, title: notificationType === 'success' ? 'Success!' :
|
|
73
|
+
notificationType === 'warning' ? 'Warning!' :
|
|
74
|
+
notificationType === 'error' ? 'Error!' : 'Information', message: notificationType === 'success' ? 'Operation completed successfully!' :
|
|
75
|
+
notificationType === 'warning' ? 'Please review the information provided.' :
|
|
76
|
+
notificationType === 'error' ? 'An error occurred. Please try again.' : 'Here is some information for you.', onClose: () => setShowNotification(false), duration: 3000 }))] }));
|
|
77
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EnterpriseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: 'default' | 'secondary' | 'outline' | 'ghost' | 'premium';
|
|
4
|
+
size?: 'sm' | 'default' | 'lg' | 'xl';
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const EnterpriseButton: React.ForwardRefExoticComponent<EnterpriseButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export interface EnterpriseCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
variant?: 'default' | 'interactive' | 'premium' | 'featured';
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const EnterpriseCard: React.ForwardRefExoticComponent<EnterpriseCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export interface EnterpriseInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
15
|
+
variant?: 'default' | 'success' | 'error' | 'warning';
|
|
16
|
+
label?: string;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare const EnterpriseInput: React.ForwardRefExoticComponent<EnterpriseInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
export interface EnterpriseProgressProps {
|
|
22
|
+
value: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
25
|
+
size?: 'sm' | 'default' | 'lg';
|
|
26
|
+
showLabel?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const EnterpriseProgress: React.FC<EnterpriseProgressProps>;
|
|
30
|
+
export interface EnterpriseQualityMetricProps {
|
|
31
|
+
score: number;
|
|
32
|
+
label: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
variant?: 'default' | 'excellent' | 'good' | 'needs-improvement';
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const EnterpriseQualityMetric: React.FC<EnterpriseQualityMetricProps>;
|
|
38
|
+
export interface EnterpriseStatusProps {
|
|
39
|
+
phase: 'initializing' | 'optimizing' | 'polishing' | 'verifying' | 'complete' | 'enterprise-ready';
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
className?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const EnterpriseStatus: React.FC<EnterpriseStatusProps>;
|
|
44
|
+
export interface EnterpriseContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
}
|
|
47
|
+
export declare const EnterpriseContainer: React.FC<EnterpriseContainerProps>;
|
|
48
|
+
export interface EnterpriseSectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export declare const EnterpriseSection: React.FC<EnterpriseSectionProps>;
|
|
52
|
+
export interface EnterpriseGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
53
|
+
cols?: 1 | 2 | 3 | 4;
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
export declare const EnterpriseGrid: React.FC<EnterpriseGridProps>;
|
|
57
|
+
export interface EnterpriseLoadingProps {
|
|
58
|
+
size?: 'sm' | 'default' | 'lg';
|
|
59
|
+
text?: string;
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare const EnterpriseLoading: React.FC<EnterpriseLoadingProps>;
|
|
63
|
+
export interface EnterpriseNotificationProps {
|
|
64
|
+
type: 'success' | 'warning' | 'error' | 'info';
|
|
65
|
+
title: string;
|
|
66
|
+
message?: string;
|
|
67
|
+
onClose?: () => void;
|
|
68
|
+
duration?: number;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const EnterpriseNotification: React.FC<EnterpriseNotificationProps>;
|
|
72
|
+
//# sourceMappingURL=enterprise-mobile-experience.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterprise-mobile-experience.d.ts","sourceRoot":"","sources":["../../../src/components/ui/enterprise-mobile-experience.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC1F,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IACnE,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,gBAAgB,iGAiD5B,CAAA;AAKD,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;IAC5D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,4FAyB1B,CAAA;AAKD,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACvF,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IACrD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,eAAe,+FA4C3B,CAAA;AAKD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAyChE,CAAA;AAGD,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,mBAAmB,CAAA;IAChE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAmC1E,CAAA;AAGD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,kBAAkB,CAAA;IAClG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6B5D,CAAA;AAGD,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAalE,CAAA;AAGD,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC/E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAa9D,CAAA;AAGD,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqBxD,CAAA;AAGD,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAqB9D,CAAA;AAGD,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA8DxE,CAAA"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef, useState, useEffect } from 'react';
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
export const EnterpriseButton = forwardRef(({ className, variant = 'default', size = 'default', loading = false, children, ...props }, ref) => {
|
|
6
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
7
|
+
const baseClasses = 'enterprise-button enterprise-mobile-optimized enterprise-interaction-refined';
|
|
8
|
+
const variantClasses = {
|
|
9
|
+
default: 'enterprise-button',
|
|
10
|
+
secondary: 'enterprise-button-secondary',
|
|
11
|
+
outline: 'enterprise-button-outline',
|
|
12
|
+
ghost: 'enterprise-button-ghost',
|
|
13
|
+
premium: 'enterprise-button enterprise-interaction-premium'
|
|
14
|
+
};
|
|
15
|
+
const sizeClasses = {
|
|
16
|
+
sm: 'px-4 py-2 text-sm min-h-[40px] min-w-[40px]',
|
|
17
|
+
default: 'px-6 py-3 text-base min-h-[48px] min-w-[48px]',
|
|
18
|
+
lg: 'px-8 py-4 text-lg min-h-[56px] min-w-[56px]',
|
|
19
|
+
xl: 'px-10 py-5 text-xl min-h-[64px] min-w-[64px]'
|
|
20
|
+
};
|
|
21
|
+
const handleMouseDown = () => setIsPressed(true);
|
|
22
|
+
const handleMouseUp = () => setIsPressed(false);
|
|
23
|
+
const handleMouseLeave = () => setIsPressed(false);
|
|
24
|
+
return (_jsxs("button", { ref: ref, className: cn(baseClasses, variantClasses[variant], sizeClasses[size], loading && 'enterprise-loading', isPressed && 'scale-95', className), onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onMouseLeave: handleMouseLeave, disabled: loading, ...props, children: [loading && (_jsx("span", { className: "enterprise-loading-spinner mr-2" })), children] }));
|
|
25
|
+
});
|
|
26
|
+
EnterpriseButton.displayName = 'EnterpriseButton';
|
|
27
|
+
export const EnterpriseCard = forwardRef(({ className, variant = 'default', children, ...props }, ref) => {
|
|
28
|
+
const baseClasses = 'enterprise-card enterprise-visual-refined';
|
|
29
|
+
const variantClasses = {
|
|
30
|
+
default: '',
|
|
31
|
+
interactive: 'enterprise-card-interactive enterprise-interaction-refined',
|
|
32
|
+
premium: 'enterprise-card-premium enterprise-interaction-premium',
|
|
33
|
+
featured: 'enterprise-card-premium enterprise-interaction-premium border-2 border-cs-accent'
|
|
34
|
+
};
|
|
35
|
+
return (_jsx("div", { ref: ref, className: cn(baseClasses, variantClasses[variant], className), ...props, children: children }));
|
|
36
|
+
});
|
|
37
|
+
EnterpriseCard.displayName = 'EnterpriseCard';
|
|
38
|
+
export const EnterpriseInput = forwardRef(({ className, variant = 'default', label, required = false, children, ...props }, ref) => {
|
|
39
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
40
|
+
const baseClasses = 'enterprise-input enterprise-mobile-optimized enterprise-accessibility';
|
|
41
|
+
const variantClasses = {
|
|
42
|
+
default: '',
|
|
43
|
+
success: 'enterprise-input-success',
|
|
44
|
+
error: 'enterprise-input-error',
|
|
45
|
+
warning: 'enterprise-input-warning'
|
|
46
|
+
};
|
|
47
|
+
const handleFocus = () => setIsFocused(true);
|
|
48
|
+
const handleBlur = () => setIsFocused(false);
|
|
49
|
+
return (_jsxs("div", { className: "space-y-2", children: [label && (_jsx("label", { className: cn('enterprise-label', required && 'enterprise-label-required'), children: label })), _jsxs("div", { className: "relative", children: [_jsx("input", { ref: ref, className: cn(baseClasses, variantClasses[variant], isFocused && 'enterprise-input-focused', className), onFocus: handleFocus, onBlur: handleBlur, ...props }), children] })] }));
|
|
50
|
+
});
|
|
51
|
+
EnterpriseInput.displayName = 'EnterpriseInput';
|
|
52
|
+
export const EnterpriseProgress = ({ value, max = 100, variant = 'default', size = 'default', showLabel = true, className }) => {
|
|
53
|
+
const percentage = Math.min(100, Math.max(0, (value / max) * 100));
|
|
54
|
+
const baseClasses = 'enterprise-progress enterprise-performance';
|
|
55
|
+
const sizeClasses = {
|
|
56
|
+
sm: 'h-1',
|
|
57
|
+
default: 'h-2',
|
|
58
|
+
lg: 'h-3'
|
|
59
|
+
};
|
|
60
|
+
const variantClasses = {
|
|
61
|
+
default: 'enterprise-progress-bar',
|
|
62
|
+
success: 'enterprise-progress-bar bg-gradient-to-r from-cs-success to-cs-success/80',
|
|
63
|
+
warning: 'enterprise-progress-bar bg-gradient-to-r from-cs-warning to-cs-warning/80',
|
|
64
|
+
error: 'enterprise-progress-bar bg-gradient-to-r from-cs-error to-cs-error/80'
|
|
65
|
+
};
|
|
66
|
+
return (_jsxs("div", { className: cn('space-y-2', className), children: [showLabel && (_jsxs("div", { className: "flex justify-between items-center text-sm", children: [_jsx("span", { className: "text-cs-text-primary font-medium", children: "Progress" }), _jsxs("span", { className: "text-cs-text-secondary", children: [Math.round(percentage), "%"] })] })), _jsx("div", { className: cn(baseClasses, sizeClasses[size]), children: _jsx("div", { className: cn(variantClasses[variant]), style: { width: `${percentage}%` } }) })] }));
|
|
67
|
+
};
|
|
68
|
+
export const EnterpriseQualityMetric = ({ score, label, description, className }) => {
|
|
69
|
+
const getVariantClass = () => {
|
|
70
|
+
if (score >= 90)
|
|
71
|
+
return 'enterprise-quality-excellent';
|
|
72
|
+
if (score >= 80)
|
|
73
|
+
return 'enterprise-quality-good';
|
|
74
|
+
if (score < 80)
|
|
75
|
+
return 'enterprise-quality-needs-improvement';
|
|
76
|
+
return 'enterprise-quality-metric';
|
|
77
|
+
};
|
|
78
|
+
const getScoreColor = () => {
|
|
79
|
+
if (score >= 90)
|
|
80
|
+
return 'text-cs-success';
|
|
81
|
+
if (score >= 80)
|
|
82
|
+
return 'text-cs-warning';
|
|
83
|
+
if (score < 80)
|
|
84
|
+
return 'text-cs-error';
|
|
85
|
+
return 'text-cs-primary';
|
|
86
|
+
};
|
|
87
|
+
return (_jsxs("div", { className: cn('enterprise-quality-metric', getVariantClass(), className), children: [_jsx("div", { className: cn('enterprise-quality-score', getScoreColor()), children: score }), _jsx("div", { className: "enterprise-quality-label", children: label }), description && (_jsx("div", { className: "enterprise-quality-description", children: description }))] }));
|
|
88
|
+
};
|
|
89
|
+
export const EnterpriseStatus = ({ phase, children, className }) => {
|
|
90
|
+
const phaseClasses = {
|
|
91
|
+
initializing: 'enterprise-status-initializing',
|
|
92
|
+
optimizing: 'enterprise-status-optimizing',
|
|
93
|
+
polishing: 'enterprise-status-polishing',
|
|
94
|
+
verifying: 'enterprise-status-verifying',
|
|
95
|
+
complete: 'enterprise-status-complete',
|
|
96
|
+
'enterprise-ready': 'enterprise-status-enterprise-ready'
|
|
97
|
+
};
|
|
98
|
+
const phaseIcons = {
|
|
99
|
+
initializing: 'đ',
|
|
100
|
+
optimizing: 'âĄ',
|
|
101
|
+
polishing: 'â¨',
|
|
102
|
+
verifying: 'đ',
|
|
103
|
+
complete: 'â
',
|
|
104
|
+
'enterprise-ready': 'đ'
|
|
105
|
+
};
|
|
106
|
+
return (_jsxs("span", { className: cn('enterprise-status', phaseClasses[phase], className), children: [_jsx("span", { className: "text-lg", children: phaseIcons[phase] }), children] }));
|
|
107
|
+
};
|
|
108
|
+
export const EnterpriseContainer = ({ className, children, ...props }) => {
|
|
109
|
+
return (_jsx("div", { className: cn('enterprise-container', className), ...props, children: children }));
|
|
110
|
+
};
|
|
111
|
+
export const EnterpriseSection = ({ className, children, ...props }) => {
|
|
112
|
+
return (_jsx("section", { className: cn('enterprise-section', className), ...props, children: children }));
|
|
113
|
+
};
|
|
114
|
+
export const EnterpriseGrid = ({ cols = 1, className, children, ...props }) => {
|
|
115
|
+
const colsClasses = {
|
|
116
|
+
1: 'enterprise-grid-cols-1',
|
|
117
|
+
2: 'enterprise-grid-cols-2',
|
|
118
|
+
3: 'enterprise-grid-cols-3',
|
|
119
|
+
4: 'enterprise-grid-cols-4'
|
|
120
|
+
};
|
|
121
|
+
return (_jsx("div", { className: cn('enterprise-grid', colsClasses[cols], className), ...props, children: children }));
|
|
122
|
+
};
|
|
123
|
+
export const EnterpriseLoading = ({ size = 'default', text = 'Loading...', className }) => {
|
|
124
|
+
const sizeClasses = {
|
|
125
|
+
sm: 'w-4 h-4',
|
|
126
|
+
default: 'w-6 h-6',
|
|
127
|
+
lg: 'w-8 h-8'
|
|
128
|
+
};
|
|
129
|
+
return (_jsxs("div", { className: cn('flex items-center justify-center space-x-2', className), children: [_jsx("div", { className: cn('enterprise-loading-spinner', sizeClasses[size]) }), text && (_jsx("span", { className: "text-cs-text-secondary text-sm font-medium", children: text }))] }));
|
|
130
|
+
};
|
|
131
|
+
export const EnterpriseNotification = ({ type, title, message, onClose, duration = 5000, className }) => {
|
|
132
|
+
const [isVisible, setIsVisible] = useState(true);
|
|
133
|
+
useEffect(() => {
|
|
134
|
+
if (duration > 0) {
|
|
135
|
+
const timer = setTimeout(() => {
|
|
136
|
+
setIsVisible(false);
|
|
137
|
+
onClose?.();
|
|
138
|
+
}, duration);
|
|
139
|
+
return () => clearTimeout(timer);
|
|
140
|
+
}
|
|
141
|
+
}, [duration, onClose]);
|
|
142
|
+
const typeClasses = {
|
|
143
|
+
success: 'enterprise-notification-success',
|
|
144
|
+
warning: 'enterprise-notification-warning',
|
|
145
|
+
error: 'enterprise-notification-error',
|
|
146
|
+
info: 'enterprise-notification-info'
|
|
147
|
+
};
|
|
148
|
+
const typeIcons = {
|
|
149
|
+
success: 'â
',
|
|
150
|
+
warning: 'â ī¸',
|
|
151
|
+
error: 'â',
|
|
152
|
+
info: 'âšī¸'
|
|
153
|
+
};
|
|
154
|
+
if (!isVisible)
|
|
155
|
+
return null;
|
|
156
|
+
return (_jsx("div", { className: cn('enterprise-notification', typeClasses[type], className), children: _jsxs("div", { className: "flex items-start space-x-3", children: [_jsx("span", { className: "text-lg", children: typeIcons[type] }), _jsxs("div", { className: "flex-1", children: [_jsx("h4", { className: "text-sm font-semibold text-cs-text-primary", children: title }), message && (_jsx("p", { className: "text-sm text-cs-text-secondary mt-1", children: message }))] }), onClose && (_jsx("button", { onClick: onClose, className: "text-cs-text-secondary hover:text-cs-text-primary transition-colors", children: "\u2715" }))] }) }));
|
|
157
|
+
};
|