@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.11 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/components/ui/accessibility-demo.esm.js +80 -258
- package/dist/components/ui/accessibility-demo.js +80 -258
- package/dist/components/ui/advanced-component-architecture-demo.esm.js +256 -916
- package/dist/components/ui/advanced-component-architecture-demo.js +256 -916
- package/dist/components/ui/advanced-transition-system-demo.esm.js +59 -670
- package/dist/components/ui/advanced-transition-system-demo.js +59 -670
- package/dist/components/ui/advanced-transition-system.esm.js +194 -378
- package/dist/components/ui/advanced-transition-system.js +194 -378
- package/dist/components/ui/animation/animated-container.esm.js +98 -159
- package/dist/components/ui/animation/animated-container.js +98 -159
- package/dist/components/ui/animation/index.esm.js +3 -18
- package/dist/components/ui/animation/index.js +3 -18
- package/dist/components/ui/animation/staggered-container.esm.js +37 -68
- package/dist/components/ui/animation/staggered-container.js +37 -68
- package/dist/components/ui/animation-demo.esm.js +30 -250
- package/dist/components/ui/animation-demo.js +30 -250
- package/dist/components/ui/badge.esm.js +15 -28
- package/dist/components/ui/badge.js +15 -28
- package/dist/components/ui/battery-conscious-animation-demo.esm.js +136 -565
- package/dist/components/ui/battery-conscious-animation-demo.js +136 -565
- package/dist/components/ui/border-radius-shadow-demo.esm.js +3 -184
- package/dist/components/ui/border-radius-shadow-demo.js +3 -184
- package/dist/components/ui/button.esm.js +14 -33
- package/dist/components/ui/button.js +14 -33
- package/dist/components/ui/card.esm.js +74 -188
- package/dist/components/ui/card.js +74 -188
- package/dist/components/ui/checkbox.esm.js +11 -30
- package/dist/components/ui/checkbox.js +11 -30
- package/dist/components/ui/color-preview.esm.js +50 -405
- package/dist/components/ui/color-preview.js +50 -405
- package/dist/components/ui/data-display/chart.esm.js +210 -632
- package/dist/components/ui/data-display/chart.js +210 -632
- package/dist/components/ui/data-display/data-grid-simple.esm.js +16 -74
- package/dist/components/ui/data-display/data-grid-simple.js +16 -74
- package/dist/components/ui/data-display/data-grid.esm.js +173 -661
- package/dist/components/ui/data-display/data-grid.js +173 -661
- package/dist/components/ui/data-display/list.esm.js +88 -446
- package/dist/components/ui/data-display/list.js +88 -446
- package/dist/components/ui/data-display/table.esm.js +109 -468
- package/dist/components/ui/data-display/table.js +109 -468
- package/dist/components/ui/data-display/timeline.esm.js +92 -431
- package/dist/components/ui/data-display/timeline.js +92 -431
- package/dist/components/ui/data-display/tree.esm.js +211 -585
- package/dist/components/ui/data-display/tree.js +211 -585
- package/dist/components/ui/data-display/types.esm.js +1 -530
- package/dist/components/ui/data-display/types.js +1 -530
- package/dist/components/ui/enterprise-mobile-experience-demo.esm.js +76 -749
- package/dist/components/ui/enterprise-mobile-experience-demo.js +76 -749
- package/dist/components/ui/enterprise-mobile-experience.esm.js +152 -460
- package/dist/components/ui/enterprise-mobile-experience.js +152 -460
- package/dist/components/ui/feedback/alert.esm.js +40 -148
- package/dist/components/ui/feedback/alert.js +40 -148
- package/dist/components/ui/feedback/progress.esm.js +74 -278
- package/dist/components/ui/feedback/progress.js +74 -278
- package/dist/components/ui/feedback/skeleton.esm.js +64 -173
- package/dist/components/ui/feedback/skeleton.js +64 -173
- package/dist/components/ui/feedback/toast.esm.js +86 -225
- package/dist/components/ui/feedback/toast.js +86 -225
- package/dist/components/ui/feedback/types.esm.js +1 -125
- package/dist/components/ui/feedback/types.js +1 -125
- package/dist/components/ui/font-preview.esm.js +56 -283
- package/dist/components/ui/font-preview.js +56 -283
- package/dist/components/ui/form-demo.esm.js +191 -553
- package/dist/components/ui/form-demo.js +191 -553
- package/dist/components/ui/hardware-acceleration-demo.esm.js +103 -544
- package/dist/components/ui/hardware-acceleration-demo.js +103 -544
- package/dist/components/ui/input.esm.js +13 -32
- package/dist/components/ui/input.js +13 -32
- package/dist/components/ui/label.esm.js +6 -16
- package/dist/components/ui/label.js +6 -16
- package/dist/components/ui/layout-demo.esm.js +76 -367
- package/dist/components/ui/layout-demo.js +76 -367
- package/dist/components/ui/layouts/adaptive-layout.esm.js +60 -139
- package/dist/components/ui/layouts/adaptive-layout.js +60 -139
- package/dist/components/ui/layouts/desktop-layout.esm.js +39 -224
- package/dist/components/ui/layouts/desktop-layout.js +39 -224
- package/dist/components/ui/layouts/index.esm.js +4 -10
- package/dist/components/ui/layouts/index.js +4 -10
- package/dist/components/ui/layouts/mobile-layout.esm.js +49 -162
- package/dist/components/ui/layouts/mobile-layout.js +49 -162
- package/dist/components/ui/layouts/tablet-layout.esm.js +53 -197
- package/dist/components/ui/layouts/tablet-layout.js +53 -197
- package/dist/components/ui/mobile-form-validation.esm.js +185 -420
- package/dist/components/ui/mobile-form-validation.js +185 -420
- package/dist/components/ui/mobile-input-demo.esm.js +11 -198
- package/dist/components/ui/mobile-input-demo.js +11 -198
- package/dist/components/ui/mobile-input.esm.js +187 -270
- package/dist/components/ui/mobile-input.js +187 -270
- package/dist/components/ui/mobile-skeleton-loading-demo.esm.js +144 -638
- package/dist/components/ui/mobile-skeleton-loading-demo.js +144 -638
- package/dist/components/ui/navigation/breadcrumb.esm.js +51 -154
- package/dist/components/ui/navigation/breadcrumb.js +51 -154
- package/dist/components/ui/navigation/index.esm.js +0 -3
- package/dist/components/ui/navigation/index.js +0 -3
- package/dist/components/ui/navigation/menu.esm.js +178 -365
- package/dist/components/ui/navigation/menu.js +178 -365
- package/dist/components/ui/navigation/navigation-demo.esm.js +130 -315
- package/dist/components/ui/navigation/navigation-demo.js +130 -315
- package/dist/components/ui/navigation/pagination.esm.js +142 -264
- package/dist/components/ui/navigation/pagination.js +142 -264
- package/dist/components/ui/navigation/sidebar.esm.js +156 -368
- package/dist/components/ui/navigation/sidebar.js +156 -368
- package/dist/components/ui/navigation/stepper.esm.js +131 -295
- package/dist/components/ui/navigation/stepper.js +131 -295
- package/dist/components/ui/navigation/tabs.esm.js +89 -198
- package/dist/components/ui/navigation/tabs.js +89 -198
- package/dist/components/ui/navigation/types.esm.js +1 -295
- package/dist/components/ui/navigation/types.js +1 -295
- package/dist/components/ui/overlay/backdrop.esm.js +39 -78
- package/dist/components/ui/overlay/backdrop.js +39 -78
- package/dist/components/ui/overlay/focus-manager.esm.js +96 -140
- package/dist/components/ui/overlay/focus-manager.js +96 -140
- package/dist/components/ui/overlay/index.esm.js +0 -5
- package/dist/components/ui/overlay/index.js +0 -5
- package/dist/components/ui/overlay/modal.esm.js +94 -249
- package/dist/components/ui/overlay/modal.js +94 -249
- package/dist/components/ui/overlay/overlay-manager.esm.js +60 -100
- package/dist/components/ui/overlay/overlay-manager.js +60 -100
- package/dist/components/ui/overlay/popover.esm.js +258 -438
- package/dist/components/ui/overlay/popover.js +258 -438
- package/dist/components/ui/overlay/portal.esm.js +45 -74
- package/dist/components/ui/overlay/portal.js +45 -74
- package/dist/components/ui/overlay/tooltip.esm.js +202 -288
- package/dist/components/ui/overlay/tooltip.js +202 -288
- package/dist/components/ui/overlay/types.esm.js +1 -196
- package/dist/components/ui/overlay/types.js +1 -196
- package/dist/components/ui/performance-demo.esm.js +110 -596
- package/dist/components/ui/performance-demo.js +110 -596
- package/dist/components/ui/semantic-input-system-demo.esm.js +87 -501
- package/dist/components/ui/semantic-input-system-demo.js +87 -501
- package/dist/components/ui/theme-customizer.esm.js +123 -371
- package/dist/components/ui/theme-customizer.js +123 -371
- package/dist/components/ui/theme-preview.esm.js +44 -306
- package/dist/components/ui/theme-preview.js +44 -306
- package/dist/components/ui/theme-switcher.esm.js +79 -258
- package/dist/components/ui/theme-switcher.js +79 -258
- package/dist/components/ui/theme-toggle.esm.js +22 -35
- package/dist/components/ui/theme-toggle.js +22 -35
- package/dist/components/ui/token-demo.esm.js +42 -189
- package/dist/components/ui/token-demo.js +42 -189
- package/dist/components/ui/touch-demo.esm.js +96 -462
- package/dist/components/ui/touch-demo.js +96 -462
- package/dist/components/ui/touch-friendly-interface-demo.esm.js +63 -519
- package/dist/components/ui/touch-friendly-interface-demo.js +63 -519
- package/dist/components/ui/touch-friendly-interface.esm.js +103 -281
- package/dist/components/ui/touch-friendly-interface.js +103 -281
- package/dist/hooks/index.esm.js +23 -181
- package/dist/hooks/index.js +23 -181
- package/dist/hooks/use-accessibility-support.esm.js +377 -518
- package/dist/hooks/use-accessibility-support.js +377 -518
- package/dist/hooks/use-adaptive-layout.esm.js +212 -287
- package/dist/hooks/use-adaptive-layout.js +212 -287
- package/dist/hooks/use-advanced-patterns.esm.js +185 -293
- package/dist/hooks/use-advanced-patterns.js +185 -293
- package/dist/hooks/use-advanced-transition-system.esm.js +286 -392
- package/dist/hooks/use-advanced-transition-system.js +286 -392
- package/dist/hooks/use-animation-profile.esm.js +221 -283
- package/dist/hooks/use-animation-profile.js +221 -283
- package/dist/hooks/use-battery-animations.esm.js +310 -384
- package/dist/hooks/use-battery-animations.js +310 -384
- package/dist/hooks/use-battery-conscious-loading.esm.js +374 -468
- package/dist/hooks/use-battery-conscious-loading.js +374 -468
- package/dist/hooks/use-battery-optimization.esm.js +267 -329
- package/dist/hooks/use-battery-optimization.js +267 -329
- package/dist/hooks/use-battery-status.esm.js +213 -293
- package/dist/hooks/use-battery-status.js +213 -293
- package/dist/hooks/use-component-performance.esm.js +235 -341
- package/dist/hooks/use-component-performance.js +235 -341
- package/dist/hooks/use-device-loading-states.esm.js +356 -457
- package/dist/hooks/use-device-loading-states.js +356 -457
- package/dist/hooks/use-device.esm.js +77 -102
- package/dist/hooks/use-device.js +77 -102
- package/dist/hooks/use-enterprise-mobile-experience.esm.js +349 -487
- package/dist/hooks/use-enterprise-mobile-experience.js +349 -487
- package/dist/hooks/use-form-feedback.esm.js +313 -398
- package/dist/hooks/use-form-feedback.js +313 -398
- package/dist/hooks/use-form-performance.esm.js +407 -500
- package/dist/hooks/use-form-performance.js +407 -500
- package/dist/hooks/use-frame-rate.esm.js +178 -251
- package/dist/hooks/use-frame-rate.js +178 -251
- package/dist/hooks/use-gestures.esm.js +230 -332
- package/dist/hooks/use-gestures.js +230 -332
- package/dist/hooks/use-hardware-acceleration.esm.js +246 -339
- package/dist/hooks/use-hardware-acceleration.js +246 -339
- package/dist/hooks/use-input-accessibility.esm.js +350 -454
- package/dist/hooks/use-input-accessibility.js +350 -454
- package/dist/hooks/use-input-performance.esm.js +419 -502
- package/dist/hooks/use-input-performance.js +419 -502
- package/dist/hooks/use-layout-performance.esm.js +233 -319
- package/dist/hooks/use-layout-performance.js +233 -319
- package/dist/hooks/use-loading-accessibility.esm.js +421 -531
- package/dist/hooks/use-loading-accessibility.js +421 -531
- package/dist/hooks/use-loading-performance.esm.js +398 -469
- package/dist/hooks/use-loading-performance.js +398 -469
- package/dist/hooks/use-memory-usage.esm.js +211 -287
- package/dist/hooks/use-memory-usage.js +211 -287
- package/dist/hooks/use-mobile-form-layout.esm.js +365 -458
- package/dist/hooks/use-mobile-form-layout.js +365 -458
- package/dist/hooks/use-mobile-form-validation.esm.js +384 -497
- package/dist/hooks/use-mobile-form-validation.js +384 -497
- package/dist/hooks/use-mobile-keyboard-optimization.esm.js +354 -468
- package/dist/hooks/use-mobile-keyboard-optimization.js +354 -468
- package/dist/hooks/use-mobile-layout.esm.js +207 -294
- package/dist/hooks/use-mobile-layout.js +207 -294
- package/dist/hooks/use-mobile-optimization.esm.js +308 -404
- package/dist/hooks/use-mobile-optimization.js +308 -404
- package/dist/hooks/use-mobile-skeleton.esm.js +300 -402
- package/dist/hooks/use-mobile-skeleton.js +300 -402
- package/dist/hooks/use-mobile-touch.esm.js +314 -412
- package/dist/hooks/use-mobile-touch.js +314 -412
- package/dist/hooks/use-performance-throttling.esm.js +276 -344
- package/dist/hooks/use-performance-throttling.js +276 -344
- package/dist/hooks/use-performance.esm.js +216 -313
- package/dist/hooks/use-performance.js +216 -313
- package/dist/hooks/use-reusable-architecture.esm.js +255 -408
- package/dist/hooks/use-reusable-architecture.js +255 -408
- package/dist/hooks/use-semantic-input-types.esm.js +290 -356
- package/dist/hooks/use-semantic-input-types.js +290 -356
- package/dist/hooks/use-semantic-input.esm.js +446 -549
- package/dist/hooks/use-semantic-input.js +446 -549
- package/dist/hooks/use-tablet-layout.esm.js +279 -384
- package/dist/hooks/use-tablet-layout.js +279 -384
- package/dist/hooks/use-touch-friendly-input.esm.js +401 -519
- package/dist/hooks/use-touch-friendly-input.js +401 -519
- package/dist/hooks/use-touch-friendly-interface.esm.js +242 -331
- package/dist/hooks/use-touch-friendly-interface.js +242 -331
- package/dist/hooks/use-touch-optimization.esm.js +288 -370
- package/dist/hooks/use-touch-optimization.js +288 -370
- package/dist/index.esm.js +150 -161
- package/dist/index.js +150 -161
- package/dist/lib/utils.esm.js +4 -5
- package/dist/lib/utils.js +4 -5
- package/dist/plugins/theme-css-generator.esm.js +292 -346
- package/dist/plugins/theme-css-generator.js +292 -346
- package/dist/provider.esm.js +3 -19
- package/dist/provider.js +3 -19
- package/dist/styles/layers/validation.esm.js +275 -0
- package/dist/styles/layers/validation.js +275 -0
- package/dist/styles.css +1 -1
- package/dist/theme.esm.js +654 -658
- package/dist/theme.js +654 -658
- package/dist/themes/ThemeContext.esm.js +1 -27
- package/dist/themes/ThemeContext.js +1 -27
- package/dist/themes/ThemeProvider.esm.js +191 -223
- package/dist/themes/ThemeProvider.js +191 -223
- package/dist/themes/accessibility/index.esm.js +0 -4
- package/dist/themes/accessibility/index.js +0 -4
- package/dist/themes/accessibility.esm.js +175 -240
- package/dist/themes/accessibility.js +175 -240
- package/dist/themes/aria-patterns.esm.js +345 -401
- package/dist/themes/aria-patterns.js +345 -401
- package/dist/themes/base-themes.esm.js +15 -24
- package/dist/themes/base-themes.js +15 -24
- package/dist/themes/colorManager.esm.js +293 -357
- package/dist/themes/colorManager.js +293 -357
- package/dist/themes/examples/dark-theme.esm.js +129 -133
- package/dist/themes/examples/dark-theme.js +129 -133
- package/dist/themes/examples/minimal-theme.esm.js +80 -85
- package/dist/themes/examples/minimal-theme.js +80 -85
- package/dist/themes/focus-management.esm.js +541 -677
- package/dist/themes/focus-management.js +541 -677
- package/dist/themes/fontLoader.esm.js +151 -180
- package/dist/themes/fontLoader.js +151 -180
- package/dist/themes/high-contrast.esm.js +394 -558
- package/dist/themes/high-contrast.js +394 -558
- package/dist/themes/index.esm.js +1 -9
- package/dist/themes/index.js +1 -9
- package/dist/themes/inheritance.esm.js +145 -180
- package/dist/themes/inheritance.js +145 -180
- package/dist/themes/keyboard-navigation.esm.js +418 -510
- package/dist/themes/keyboard-navigation.js +418 -510
- package/dist/themes/motion-reduction.esm.js +434 -591
- package/dist/themes/motion-reduction.js +434 -591
- package/dist/themes/navigation.esm.js +1 -234
- package/dist/themes/navigation.js +1 -234
- package/dist/themes/screen-reader.esm.js +515 -616
- package/dist/themes/screen-reader.js +515 -616
- package/dist/themes/systemThemeDetector.esm.js +135 -164
- package/dist/themes/systemThemeDetector.js +135 -164
- package/dist/themes/themeCSSUpdater.esm.js +217 -252
- package/dist/themes/themeCSSUpdater.js +217 -252
- package/dist/themes/themePersistence.esm.js +181 -212
- package/dist/themes/themePersistence.js +181 -212
- package/dist/themes/themes/default.esm.js +584 -0
- package/dist/themes/themes/default.js +584 -0
- package/dist/themes/themes/harvey.esm.js +551 -0
- package/dist/themes/themes/harvey.js +551 -0
- package/dist/themes/themes/stan-design.esm.js +654 -658
- package/dist/themes/themes/stan-design.js +654 -658
- package/dist/themes/types.esm.js +1 -458
- package/dist/themes/types.js +1 -458
- package/dist/themes/useSystemTheme.esm.js +34 -42
- package/dist/themes/useSystemTheme.js +34 -42
- package/dist/themes/useTheme.esm.js +23 -28
- package/dist/themes/useTheme.js +23 -28
- package/dist/themes/validation.esm.js +380 -433
- package/dist/themes/validation.js +380 -433
- package/dist/tokens/index.esm.js +2 -13
- package/dist/tokens/index.js +2 -13
- package/dist/tokens/tokenExporter.esm.js +309 -373
- package/dist/tokens/tokenExporter.js +309 -373
- package/dist/tokens/tokenGenerator.esm.js +241 -273
- package/dist/tokens/tokenGenerator.js +241 -273
- package/dist/tokens/tokenManager.esm.js +187 -241
- package/dist/tokens/tokenManager.js +187 -241
- package/dist/tokens/tokenValidator.esm.js +402 -522
- package/dist/tokens/tokenValidator.js +402 -522
- package/dist/tokens/types.esm.js +1 -78
- package/dist/tokens/types.js +1 -78
- package/dist/types.esm.js +3 -0
- package/dist/types.js +3 -0
- package/dist/utils/bundle-analyzer.esm.js +188 -246
- package/dist/utils/bundle-analyzer.js +188 -246
- package/dist/utils/bundle-splitting.esm.js +330 -458
- package/dist/utils/bundle-splitting.js +330 -458
- package/dist/utils/lazy-loading.esm.js +311 -417
- package/dist/utils/lazy-loading.js +311 -417
- package/dist/utils/performance-monitor.esm.js +369 -490
- package/dist/utils/performance-monitor.js +369 -490
- package/dist/utils/tree-shaking.esm.js +194 -264
- package/dist/utils/tree-shaking.js +194 -264
- package/package.json +18 -2
- package/src/index.ts +150 -149
- package/src/provider.tsx +3 -3
- package/src/theme.ts +1 -1
- package/{dist/theme.d.ts → src/themes/themes/default.ts} +77 -169
- package/src/themes/themes/harvey.ts +554 -0
- package/{dist/themes/types.d.ts → src/types.ts} +7 -1
- package/dist/components/ui/accessibility-demo.d.ts +0 -259
- package/dist/components/ui/advanced-component-architecture-demo.d.ts +0 -718
- package/dist/components/ui/advanced-transition-system-demo.d.ts +0 -660
- package/dist/components/ui/advanced-transition-system.d.ts +0 -391
- package/dist/components/ui/animation/animated-container.d.ts +0 -162
- package/dist/components/ui/animation/index.d.ts +0 -9
- package/dist/components/ui/animation/staggered-container.d.ts +0 -64
- package/dist/components/ui/animation-demo.d.ts +0 -238
- package/dist/components/ui/badge.d.ts +0 -28
- package/dist/components/ui/battery-conscious-animation-demo.d.ts +0 -561
- package/dist/components/ui/border-radius-shadow-demo.d.ts +0 -183
- package/dist/components/ui/button.d.ts +0 -33
- package/dist/components/ui/card.d.ts +0 -205
- package/dist/components/ui/checkbox.d.ts +0 -26
- package/dist/components/ui/color-preview.d.ts +0 -402
- package/dist/components/ui/data-display/chart.d.ts +0 -646
- package/dist/components/ui/data-display/data-grid-simple.d.ts +0 -73
- package/dist/components/ui/data-display/data-grid.d.ts +0 -670
- package/dist/components/ui/data-display/list.d.ts +0 -448
- package/dist/components/ui/data-display/table.d.ts +0 -472
- package/dist/components/ui/data-display/timeline.d.ts +0 -433
- package/dist/components/ui/data-display/tree.d.ts +0 -594
- package/dist/components/ui/data-display/types.d.ts +0 -534
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts +0 -735
- package/dist/components/ui/enterprise-mobile-experience.d.ts +0 -461
- package/dist/components/ui/feedback/alert.d.ts +0 -154
- package/dist/components/ui/feedback/progress.d.ts +0 -288
- package/dist/components/ui/feedback/skeleton.d.ts +0 -182
- package/dist/components/ui/feedback/toast.d.ts +0 -277
- package/dist/components/ui/feedback/types.d.ts +0 -123
- package/dist/components/ui/font-preview.d.ts +0 -282
- package/dist/components/ui/form-demo.d.ts +0 -544
- package/dist/components/ui/hardware-acceleration-demo.d.ts +0 -540
- package/dist/components/ui/input.d.ts +0 -33
- package/dist/components/ui/label.d.ts +0 -13
- package/dist/components/ui/layout-demo.d.ts +0 -352
- package/dist/components/ui/layouts/adaptive-layout.d.ts +0 -132
- package/dist/components/ui/layouts/desktop-layout.d.ts +0 -219
- package/dist/components/ui/layouts/index.d.ts +0 -5
- package/dist/components/ui/layouts/mobile-layout.d.ts +0 -158
- package/dist/components/ui/layouts/tablet-layout.d.ts +0 -192
- package/dist/components/ui/mobile-form-validation.d.ts +0 -439
- package/dist/components/ui/mobile-input-demo.d.ts +0 -197
- package/dist/components/ui/mobile-input.d.ts +0 -273
- package/dist/components/ui/mobile-skeleton-loading-demo.d.ts +0 -628
- package/dist/components/ui/navigation/breadcrumb.d.ts +0 -149
- package/dist/components/ui/navigation/index.d.ts +0 -25
- package/dist/components/ui/navigation/menu.d.ts +0 -366
- package/dist/components/ui/navigation/navigation-demo.d.ts +0 -169
- package/dist/components/ui/navigation/pagination.d.ts +0 -261
- package/dist/components/ui/navigation/sidebar.d.ts +0 -375
- package/dist/components/ui/navigation/stepper.d.ts +0 -294
- package/dist/components/ui/navigation/tabs.d.ts +0 -196
- package/dist/components/ui/navigation/types.d.ts +0 -293
- package/dist/components/ui/overlay/backdrop.d.ts +0 -79
- package/dist/components/ui/overlay/focus-manager.d.ts +0 -141
- package/dist/components/ui/overlay/index.d.ts +0 -27
- package/dist/components/ui/overlay/modal.d.ts +0 -262
- package/dist/components/ui/overlay/overlay-manager.d.ts +0 -107
- package/dist/components/ui/overlay/popover.d.ts +0 -450
- package/dist/components/ui/overlay/portal.d.ts +0 -75
- package/dist/components/ui/overlay/tooltip.d.ts +0 -298
- package/dist/components/ui/overlay/types.d.ts +0 -194
- package/dist/components/ui/performance-demo.d.ts +0 -583
- package/dist/components/ui/semantic-input-system-demo.d.ts +0 -490
- package/dist/components/ui/theme-customizer.d.ts +0 -378
- package/dist/components/ui/theme-preview.d.ts +0 -305
- package/dist/components/ui/theme-switcher.d.ts +0 -259
- package/dist/components/ui/theme-toggle.d.ts +0 -34
- package/dist/components/ui/token-demo.d.ts +0 -188
- package/dist/components/ui/touch-demo.d.ts +0 -455
- package/dist/components/ui/touch-friendly-interface-demo.d.ts +0 -512
- package/dist/components/ui/touch-friendly-interface.d.ts +0 -292
- package/dist/hooks/index.d.ts +0 -161
- package/dist/hooks/use-accessibility-support.d.ts +0 -516
- package/dist/hooks/use-adaptive-layout.d.ts +0 -287
- package/dist/hooks/use-advanced-patterns.d.ts +0 -292
- package/dist/hooks/use-advanced-transition-system.d.ts +0 -390
- package/dist/hooks/use-animation-profile.d.ts +0 -285
- package/dist/hooks/use-battery-animations.d.ts +0 -382
- package/dist/hooks/use-battery-conscious-loading.d.ts +0 -473
- package/dist/hooks/use-battery-optimization.d.ts +0 -328
- package/dist/hooks/use-battery-status.d.ts +0 -297
- package/dist/hooks/use-component-performance.d.ts +0 -342
- package/dist/hooks/use-device-loading-states.d.ts +0 -456
- package/dist/hooks/use-device.d.ts +0 -104
- package/dist/hooks/use-enterprise-mobile-experience.d.ts +0 -486
- package/dist/hooks/use-form-feedback.d.ts +0 -401
- package/dist/hooks/use-form-performance.d.ts +0 -511
- package/dist/hooks/use-frame-rate.d.ts +0 -249
- package/dist/hooks/use-gestures.d.ts +0 -336
- package/dist/hooks/use-hardware-acceleration.d.ts +0 -339
- package/dist/hooks/use-input-accessibility.d.ts +0 -451
- package/dist/hooks/use-input-performance.d.ts +0 -503
- package/dist/hooks/use-layout-performance.d.ts +0 -317
- package/dist/hooks/use-loading-accessibility.d.ts +0 -532
- package/dist/hooks/use-loading-performance.d.ts +0 -471
- package/dist/hooks/use-memory-usage.d.ts +0 -285
- package/dist/hooks/use-mobile-form-layout.d.ts +0 -462
- package/dist/hooks/use-mobile-form-validation.d.ts +0 -516
- package/dist/hooks/use-mobile-keyboard-optimization.d.ts +0 -469
- package/dist/hooks/use-mobile-layout.d.ts +0 -300
- package/dist/hooks/use-mobile-optimization.d.ts +0 -404
- package/dist/hooks/use-mobile-skeleton.d.ts +0 -399
- package/dist/hooks/use-mobile-touch.d.ts +0 -412
- package/dist/hooks/use-performance-throttling.d.ts +0 -346
- package/dist/hooks/use-performance.d.ts +0 -314
- package/dist/hooks/use-reusable-architecture.d.ts +0 -412
- package/dist/hooks/use-semantic-input-types.d.ts +0 -354
- package/dist/hooks/use-semantic-input.d.ts +0 -563
- package/dist/hooks/use-tablet-layout.d.ts +0 -382
- package/dist/hooks/use-touch-friendly-input.d.ts +0 -520
- package/dist/hooks/use-touch-friendly-interface.d.ts +0 -329
- package/dist/hooks/use-touch-optimization.d.ts +0 -373
- package/dist/index.d.ts +0 -149
- package/dist/lib/utils.d.ts +0 -3
- package/dist/plugins/theme-css-generator.d.ts +0 -345
- package/dist/provider.d.ts +0 -17
- package/dist/themes/ThemeContext.d.ts +0 -27
- package/dist/themes/ThemeProvider.d.ts +0 -222
- package/dist/themes/accessibility/index.d.ts +0 -7
- package/dist/themes/accessibility.d.ts +0 -259
- package/dist/themes/aria-patterns.d.ts +0 -418
- package/dist/themes/base-themes.d.ts +0 -34
- package/dist/themes/colorManager.d.ts +0 -327
- package/dist/themes/examples/dark-theme.d.ts +0 -139
- package/dist/themes/examples/minimal-theme.d.ts +0 -93
- package/dist/themes/focus-management.d.ts +0 -699
- package/dist/themes/fontLoader.d.ts +0 -163
- package/dist/themes/high-contrast.d.ts +0 -619
- package/dist/themes/index.d.ts +0 -11
- package/dist/themes/inheritance.d.ts +0 -160
- package/dist/themes/keyboard-navigation.d.ts +0 -550
- package/dist/themes/motion-reduction.d.ts +0 -660
- package/dist/themes/navigation.d.ts +0 -232
- package/dist/themes/screen-reader.d.ts +0 -645
- package/dist/themes/systemThemeDetector.d.ts +0 -148
- package/dist/themes/themeCSSUpdater.d.ts +0 -229
- package/dist/themes/themePersistence.d.ts +0 -192
- package/dist/themes/themes/stan-design.d.ts +0 -678
- package/dist/themes/useSystemTheme.d.ts +0 -43
- package/dist/themes/useTheme.d.ts +0 -20
- package/dist/themes/validation.d.ts +0 -406
- package/dist/tokens/index.d.ts +0 -25
- package/dist/tokens/tokenExporter.d.ts +0 -336
- package/dist/tokens/tokenGenerator.d.ts +0 -250
- package/dist/tokens/tokenManager.d.ts +0 -194
- package/dist/tokens/tokenValidator.d.ts +0 -488
- package/dist/tokens/types.d.ts +0 -78
- package/dist/utils/bundle-analyzer.d.ts +0 -260
- package/dist/utils/bundle-splitting.d.ts +0 -483
- package/dist/utils/lazy-loading.d.ts +0 -437
- package/dist/utils/performance-monitor.d.ts +0 -513
- package/dist/utils/tree-shaking.d.ts +0 -274
|
@@ -1,749 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
78
|
-
<EnterpriseCard variant="premium" className="text-center">
|
|
79
|
-
<div className="space-y-4">
|
|
80
|
-
<div className="text-4xl font-bold text-cs-primary">
|
|
81
|
-
{enterpriseState.overallQualityScore}/100
|
|
82
|
-
</div>
|
|
83
|
-
<div className="text-lg font-semibold text-cs-text-primary">
|
|
84
|
-
Overall Quality Score
|
|
85
|
-
</div>
|
|
86
|
-
<div className="text-sm text-cs-text-secondary">
|
|
87
|
-
{enterpriseState.overallQualityScore >= 90 ? 'Exceptional Quality' :
|
|
88
|
-
enterpriseState.overallQualityScore >= 80 ? 'High Quality' :
|
|
89
|
-
enterpriseState.overallQualityScore >= 70 ? 'Good Quality' : 'Needs Improvement'}
|
|
90
|
-
</div>
|
|
91
|
-
<EnterpriseStatus phase={
|
|
92
|
-
enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
93
|
-
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
94
|
-
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
95
|
-
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
96
|
-
'complete'
|
|
97
|
-
}>
|
|
98
|
-
{enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1)}
|
|
99
|
-
</EnterpriseStatus>
|
|
100
|
-
</div>
|
|
101
|
-
</EnterpriseCard>
|
|
102
|
-
|
|
103
|
-
<EnterpriseCard variant="interactive" className="text-center">
|
|
104
|
-
<div className="space-y-4">
|
|
105
|
-
<div className="text-4xl font-bold text-cs-primary">
|
|
106
|
-
{enterpriseState.optimizationCount}
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-lg font-semibold text-cs-text-primary">
|
|
109
|
-
Optimizations Applied
|
|
110
|
-
</div>
|
|
111
|
-
<div className="text-sm text-cs-text-secondary">
|
|
112
|
-
Last: {enterpriseState.lastOptimizationTime ? new Date(enterpriseState.lastOptimizationTime).toLocaleTimeString() : 'Never'}
|
|
113
|
-
</div>
|
|
114
|
-
<EnterpriseButton
|
|
115
|
-
onClick={runComprehensiveOptimization}
|
|
116
|
-
disabled={isOptimizing}
|
|
117
|
-
loading={isOptimizing}
|
|
118
|
-
variant="premium"
|
|
119
|
-
>
|
|
120
|
-
{isOptimizing ? 'Optimizing...' : 'Run Optimization'}
|
|
121
|
-
</EnterpriseButton>
|
|
122
|
-
</div>
|
|
123
|
-
</EnterpriseCard>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
|
|
127
|
-
{/* Quality Metrics Overview */}
|
|
128
|
-
<div className="space-y-6">
|
|
129
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">📊 Quality Metrics Overview</h3>
|
|
130
|
-
|
|
131
|
-
<div className="enterprise-quality-metrics">
|
|
132
|
-
<EnterpriseQualityMetric
|
|
133
|
-
score={enterpriseState.professionalQualityScore}
|
|
134
|
-
label="Professional Quality"
|
|
135
|
-
description="Visual & interaction excellence"
|
|
136
|
-
/>
|
|
137
|
-
<EnterpriseQualityMetric
|
|
138
|
-
score={enterpriseState.performanceExcellenceScore}
|
|
139
|
-
label="Performance Excellence"
|
|
140
|
-
description="Speed & efficiency metrics"
|
|
141
|
-
/>
|
|
142
|
-
<EnterpriseQualityMetric
|
|
143
|
-
score={enterpriseState.accessibilityComplianceScore}
|
|
144
|
-
label="Accessibility Compliance"
|
|
145
|
-
description="WCAG 2.1 AA standards"
|
|
146
|
-
/>
|
|
147
|
-
<EnterpriseQualityMetric
|
|
148
|
-
score={enterpriseState.userExperienceScore}
|
|
149
|
-
label="User Experience"
|
|
150
|
-
description="Mobile optimization & UX"
|
|
151
|
-
/>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
|
|
155
|
-
{/* Enterprise Ready Status */}
|
|
156
|
-
<div className="space-y-6">
|
|
157
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">🚀 Enterprise Ready Status</h3>
|
|
158
|
-
|
|
159
|
-
<EnterpriseCard variant={enterpriseState.isEnterpriseReady ? 'featured' : 'default'}>
|
|
160
|
-
<div className="text-center space-y-4">
|
|
161
|
-
<div className="text-6xl">
|
|
162
|
-
{enterpriseState.isEnterpriseReady ? '🏆' : '⏳'}
|
|
163
|
-
</div>
|
|
164
|
-
<div className="text-2xl font-bold text-cs-text-primary">
|
|
165
|
-
{enterpriseState.isEnterpriseReady ? 'Enterprise Ready!' : 'Preparing for Enterprise'}
|
|
166
|
-
</div>
|
|
167
|
-
<div className="text-cs-text-secondary">
|
|
168
|
-
{enterpriseState.isEnterpriseReady
|
|
169
|
-
? 'Your design system meets enterprise-grade standards and is ready for production use.'
|
|
170
|
-
: 'Optimization in progress. Your design system will be enterprise-ready soon.'}
|
|
171
|
-
</div>
|
|
172
|
-
{enterpriseState.isEnterpriseReady && (
|
|
173
|
-
<div className="flex justify-center">
|
|
174
|
-
<EnterpriseStatus phase="enterprise-ready">
|
|
175
|
-
Enterprise Ready
|
|
176
|
-
</EnterpriseStatus>
|
|
177
|
-
</div>
|
|
178
|
-
)}
|
|
179
|
-
</div>
|
|
180
|
-
</EnterpriseCard>
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
const renderQualityDemo = () => (
|
|
186
|
-
<div className="space-y-8">
|
|
187
|
-
{/* Professional Quality Assessment */}
|
|
188
|
-
<div className="space-y-6">
|
|
189
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">✨ Professional Quality Assessment</h3>
|
|
190
|
-
|
|
191
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
192
|
-
<EnterpriseCard>
|
|
193
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Visual Quality</h4>
|
|
194
|
-
<EnterpriseProgress
|
|
195
|
-
value={qualityMetrics.visualQuality}
|
|
196
|
-
variant={qualityMetrics.visualQuality >= 90 ? 'success' : qualityMetrics.visualQuality >= 80 ? 'warning' : 'error'}
|
|
197
|
-
size="lg"
|
|
198
|
-
/>
|
|
199
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
200
|
-
Enhanced color contrast, typography hierarchy, spacing optimization, and professional color palette
|
|
201
|
-
</div>
|
|
202
|
-
</EnterpriseCard>
|
|
203
|
-
|
|
204
|
-
<EnterpriseCard>
|
|
205
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Interaction Quality</h4>
|
|
206
|
-
<EnterpriseProgress
|
|
207
|
-
value={qualityMetrics.interactionQuality}
|
|
208
|
-
variant={qualityMetrics.interactionQuality >= 90 ? 'success' : qualityMetrics.interactionQuality >= 80 ? 'warning' : 'error'}
|
|
209
|
-
size="lg"
|
|
210
|
-
/>
|
|
211
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
212
|
-
Smooth micro-interactions, optimized touch targets, enhanced gesture support, and professional animations
|
|
213
|
-
</div>
|
|
214
|
-
</EnterpriseCard>
|
|
215
|
-
</div>
|
|
216
|
-
|
|
217
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
218
|
-
<EnterpriseCard>
|
|
219
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Mobile Optimization</h4>
|
|
220
|
-
<EnterpriseProgress
|
|
221
|
-
value={qualityMetrics.mobileOptimization}
|
|
222
|
-
variant={qualityMetrics.mobileOptimization >= 90 ? 'success' : qualityMetrics.mobileOptimization >= 80 ? 'warning' : 'error'}
|
|
223
|
-
size="lg"
|
|
224
|
-
/>
|
|
225
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
226
|
-
Touch-friendly design, responsive layouts, mobile-first approach, and performance optimization
|
|
227
|
-
</div>
|
|
228
|
-
</EnterpriseCard>
|
|
229
|
-
|
|
230
|
-
<EnterpriseCard>
|
|
231
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Industry Benchmark</h4>
|
|
232
|
-
<EnterpriseProgress
|
|
233
|
-
value={qualityMetrics.industryBenchmark}
|
|
234
|
-
variant={qualityMetrics.industryBenchmark >= 90 ? 'success' : qualityMetrics.industryBenchmark >= 80 ? 'warning' : 'error'}
|
|
235
|
-
size="lg"
|
|
236
|
-
/>
|
|
237
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
238
|
-
Comparison against industry standards, best practices implementation, and competitive analysis
|
|
239
|
-
</div>
|
|
240
|
-
</EnterpriseCard>
|
|
241
|
-
</div>
|
|
242
|
-
</div>
|
|
243
|
-
|
|
244
|
-
{/* Optimization History */}
|
|
245
|
-
<div className="space-y-6">
|
|
246
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">📝 Optimization History</h3>
|
|
247
|
-
|
|
248
|
-
<EnterpriseCard>
|
|
249
|
-
<div className="flex justify-between items-center mb-4">
|
|
250
|
-
<h4 className="text-lg font-semibold text-cs-text-primary">Applied Optimizations</h4>
|
|
251
|
-
<EnterpriseButton
|
|
252
|
-
onClick={clearOptimizationHistory}
|
|
253
|
-
variant="outline"
|
|
254
|
-
size="sm"
|
|
255
|
-
>
|
|
256
|
-
Clear History
|
|
257
|
-
</EnterpriseButton>
|
|
258
|
-
</div>
|
|
259
|
-
|
|
260
|
-
{optimizationHistory.length > 0 ? (
|
|
261
|
-
<div className="space-y-2 max-h-60 overflow-y-auto">
|
|
262
|
-
{optimizationHistory.map((optimization, index) => (
|
|
263
|
-
<div
|
|
264
|
-
key={index}
|
|
265
|
-
className="p-3 bg-cs-surface-bg border border-cs-border rounded-lg text-sm"
|
|
266
|
-
>
|
|
267
|
-
{optimization}
|
|
268
|
-
</div>
|
|
269
|
-
))}
|
|
270
|
-
</div>
|
|
271
|
-
) : (
|
|
272
|
-
<div className="text-center py-8 text-cs-text-secondary">
|
|
273
|
-
No optimizations applied yet. Run optimization to see improvements.
|
|
274
|
-
</div>
|
|
275
|
-
)}
|
|
276
|
-
</EnterpriseCard>
|
|
277
|
-
</div>
|
|
278
|
-
</div>
|
|
279
|
-
)
|
|
280
|
-
|
|
281
|
-
const renderPerformanceDemo = () => (
|
|
282
|
-
<div className="space-y-8">
|
|
283
|
-
{/* Performance Metrics */}
|
|
284
|
-
<div className="space-y-6">
|
|
285
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">⚡ Performance Excellence</h3>
|
|
286
|
-
|
|
287
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
288
|
-
<EnterpriseCard>
|
|
289
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Frame Rate Performance</h4>
|
|
290
|
-
<div className="text-center space-y-3">
|
|
291
|
-
<div className="text-4xl font-bold text-cs-primary">
|
|
292
|
-
{performanceMetrics.frameRate}
|
|
293
|
-
</div>
|
|
294
|
-
<div className="text-lg text-cs-text-primary">FPS</div>
|
|
295
|
-
<div className="text-sm text-cs-text-secondary">
|
|
296
|
-
Target: 60 FPS | Current: {performanceMetrics.frameRate} FPS
|
|
297
|
-
</div>
|
|
298
|
-
<EnterpriseProgress
|
|
299
|
-
value={(performanceMetrics.frameRate / 60) * 100}
|
|
300
|
-
variant={performanceMetrics.frameRate >= 55 ? 'success' : performanceMetrics.frameRate >= 45 ? 'warning' : 'error'}
|
|
301
|
-
size="lg"
|
|
302
|
-
/>
|
|
303
|
-
</div>
|
|
304
|
-
</EnterpriseCard>
|
|
305
|
-
|
|
306
|
-
<EnterpriseCard>
|
|
307
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Memory Efficiency</h4>
|
|
308
|
-
<div className="text-center space-y-3">
|
|
309
|
-
<div className="text-4xl font-bold text-cs-primary">
|
|
310
|
-
{100 - performanceMetrics.memoryUsage}%
|
|
311
|
-
</div>
|
|
312
|
-
<div className="text-lg text-cs-text-primary">Efficiency</div>
|
|
313
|
-
<div className="text-sm text-cs-text-secondary">
|
|
314
|
-
Usage: {performanceMetrics.memoryUsage}% | Available: {100 - performanceMetrics.memoryUsage}%
|
|
315
|
-
</div>
|
|
316
|
-
<EnterpriseProgress
|
|
317
|
-
value={100 - performanceMetrics.memoryUsage}
|
|
318
|
-
variant={performanceMetrics.memoryUsage <= 20 ? 'success' : performanceMetrics.memoryUsage <= 40 ? 'warning' : 'error'}
|
|
319
|
-
size="lg"
|
|
320
|
-
/>
|
|
321
|
-
</div>
|
|
322
|
-
</EnterpriseCard>
|
|
323
|
-
</div>
|
|
324
|
-
|
|
325
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
326
|
-
<EnterpriseCard>
|
|
327
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Battery Efficiency</h4>
|
|
328
|
-
<div className="text-center space-y-3">
|
|
329
|
-
<div className="text-4xl font-bold text-cs-primary">
|
|
330
|
-
{performanceMetrics.batteryEfficiency}%
|
|
331
|
-
</div>
|
|
332
|
-
<div className="text-lg text-cs-text-primary">Efficiency</div>
|
|
333
|
-
<div className="text-sm text-cs-text-secondary">
|
|
334
|
-
Optimized for battery life and power consumption
|
|
335
|
-
</div>
|
|
336
|
-
<EnterpriseProgress
|
|
337
|
-
value={performanceMetrics.batteryEfficiency}
|
|
338
|
-
variant={performanceMetrics.batteryEfficiency >= 80 ? 'success' : performanceMetrics.batteryEfficiency >= 60 ? 'warning' : 'error'}
|
|
339
|
-
size="lg"
|
|
340
|
-
/>
|
|
341
|
-
</div>
|
|
342
|
-
</EnterpriseCard>
|
|
343
|
-
|
|
344
|
-
<EnterpriseCard>
|
|
345
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Network Efficiency</h4>
|
|
346
|
-
<div className="text-center space-y-3">
|
|
347
|
-
<div className="text-4xl font-bold text-cs-primary">
|
|
348
|
-
{performanceMetrics.networkEfficiency}%
|
|
349
|
-
</div>
|
|
350
|
-
<div className="text-lg text-cs-text-primary">Efficiency</div>
|
|
351
|
-
<div className="text-sm text-cs-text-secondary">
|
|
352
|
-
Optimized for network performance and data usage
|
|
353
|
-
</div>
|
|
354
|
-
<EnterpriseProgress
|
|
355
|
-
value={performanceMetrics.networkEfficiency}
|
|
356
|
-
variant={performanceMetrics.networkEfficiency >= 80 ? 'success' : performanceMetrics.networkEfficiency >= 60 ? 'warning' : 'error'}
|
|
357
|
-
size="lg"
|
|
358
|
-
/>
|
|
359
|
-
</div>
|
|
360
|
-
</EnterpriseCard>
|
|
361
|
-
</div>
|
|
362
|
-
</div>
|
|
363
|
-
|
|
364
|
-
{/* Performance Optimization */}
|
|
365
|
-
<div className="space-y-6">
|
|
366
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">🚀 Performance Optimization</h3>
|
|
367
|
-
|
|
368
|
-
<EnterpriseCard variant="interactive">
|
|
369
|
-
<div className="text-center space-y-4">
|
|
370
|
-
<div className="text-4xl">⚡</div>
|
|
371
|
-
<h4 className="text-xl font-semibold text-cs-text-primary">Hardware Acceleration</h4>
|
|
372
|
-
<div className="text-sm text-cs-text-secondary">
|
|
373
|
-
GPU acceleration, memory optimization, and battery-aware performance tuning
|
|
374
|
-
</div>
|
|
375
|
-
<div className="flex justify-center space-x-2">
|
|
376
|
-
<Badge variant="default">GPU Accelerated</Badge>
|
|
377
|
-
<Badge variant="secondary">Memory Optimized</Badge>
|
|
378
|
-
<Badge variant="outline">Battery Aware</Badge>
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
</EnterpriseCard>
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
)
|
|
385
|
-
|
|
386
|
-
const renderAccessibilityDemo = () => (
|
|
387
|
-
<div className="space-y-8">
|
|
388
|
-
{/* Accessibility Compliance */}
|
|
389
|
-
<div className="space-y-6">
|
|
390
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">♿ Accessibility Compliance</h3>
|
|
391
|
-
|
|
392
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
393
|
-
<EnterpriseCard>
|
|
394
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">WCAG 2.1 AA Compliance</h4>
|
|
395
|
-
<EnterpriseProgress
|
|
396
|
-
value={accessibilityMetrics.wcagCompliance}
|
|
397
|
-
variant={accessibilityMetrics.wcagCompliance >= 90 ? 'success' : accessibilityMetrics.wcagCompliance >= 80 ? 'warning' : 'error'}
|
|
398
|
-
size="lg"
|
|
399
|
-
/>
|
|
400
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
401
|
-
Web Content Accessibility Guidelines 2.1 AA level compliance
|
|
402
|
-
</div>
|
|
403
|
-
</EnterpriseCard>
|
|
404
|
-
|
|
405
|
-
<EnterpriseCard>
|
|
406
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Screen Reader Support</h4>
|
|
407
|
-
<EnterpriseProgress
|
|
408
|
-
value={accessibilityMetrics.screenReaderSupport}
|
|
409
|
-
variant={accessibilityMetrics.screenReaderSupport >= 90 ? 'success' : accessibilityMetrics.screenReaderSupport >= 80 ? 'warning' : 'error'}
|
|
410
|
-
size="lg"
|
|
411
|
-
/>
|
|
412
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
413
|
-
Full screen reader compatibility and ARIA support
|
|
414
|
-
</div>
|
|
415
|
-
</EnterpriseCard>
|
|
416
|
-
</div>
|
|
417
|
-
|
|
418
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
419
|
-
<EnterpriseCard>
|
|
420
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Keyboard Navigation</h4>
|
|
421
|
-
<EnterpriseProgress
|
|
422
|
-
value={accessibilityMetrics.keyboardNavigation}
|
|
423
|
-
variant={accessibilityMetrics.keyboardNavigation >= 90 ? 'success' : accessibilityMetrics.keyboardNavigation >= 80 ? 'warning' : 'error'}
|
|
424
|
-
size="lg"
|
|
425
|
-
/>
|
|
426
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
427
|
-
Complete keyboard navigation and focus management
|
|
428
|
-
</div>
|
|
429
|
-
</EnterpriseCard>
|
|
430
|
-
|
|
431
|
-
<EnterpriseCard>
|
|
432
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Color Contrast</h4>
|
|
433
|
-
<EnterpriseProgress
|
|
434
|
-
value={accessibilityMetrics.colorContrast}
|
|
435
|
-
variant={accessibilityMetrics.colorContrast >= 90 ? 'success' : accessibilityMetrics.colorContrast >= 80 ? 'warning' : 'error'}
|
|
436
|
-
size="lg"
|
|
437
|
-
/>
|
|
438
|
-
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
439
|
-
High contrast ratios and color accessibility compliance
|
|
440
|
-
</div>
|
|
441
|
-
</EnterpriseCard>
|
|
442
|
-
</div>
|
|
443
|
-
</div>
|
|
444
|
-
|
|
445
|
-
{/* Accessibility Features */}
|
|
446
|
-
<div className="space-y-6">
|
|
447
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">🔧 Accessibility Features</h3>
|
|
448
|
-
|
|
449
|
-
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
450
|
-
<EnterpriseCard variant="interactive" className="text-center">
|
|
451
|
-
<div className="text-3xl mb-2">🎭</div>
|
|
452
|
-
<h4 className="font-semibold text-cs-text-primary">Motion Reduction</h4>
|
|
453
|
-
<div className="text-sm text-cs-text-secondary">
|
|
454
|
-
Respects user motion preferences
|
|
455
|
-
</div>
|
|
456
|
-
</EnterpriseCard>
|
|
457
|
-
|
|
458
|
-
<EnterpriseCard variant="interactive" className="text-center">
|
|
459
|
-
<div className="text-3xl mb-2">🎯</div>
|
|
460
|
-
<h4 className="font-semibold text-cs-text-primary">Focus Management</h4>
|
|
461
|
-
<div className="text-sm text-cs-text-secondary">
|
|
462
|
-
Clear focus indicators and traps
|
|
463
|
-
</div>
|
|
464
|
-
</EnterpriseCard>
|
|
465
|
-
|
|
466
|
-
<EnterpriseCard variant="interactive" className="text-center">
|
|
467
|
-
<div className="text-3xl mb-2">📱</div>
|
|
468
|
-
<h4 className="font-semibold text-cs-text-primary">Touch Accessibility</h4>
|
|
469
|
-
<div className="text-sm text-cs-text-secondary">
|
|
470
|
-
44px minimum touch targets
|
|
471
|
-
</div>
|
|
472
|
-
</EnterpriseCard>
|
|
473
|
-
</div>
|
|
474
|
-
</div>
|
|
475
|
-
</div>
|
|
476
|
-
)
|
|
477
|
-
|
|
478
|
-
const renderComponentsDemo = () => (
|
|
479
|
-
<div className="space-y-8">
|
|
480
|
-
{/* Enterprise Components Showcase */}
|
|
481
|
-
<div className="space-y-6">
|
|
482
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">🎨 Enterprise Components Showcase</h3>
|
|
483
|
-
|
|
484
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
485
|
-
<EnterpriseCard>
|
|
486
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Enterprise Buttons</h4>
|
|
487
|
-
<div className="space-y-3">
|
|
488
|
-
<EnterpriseButton variant="default" size="default">
|
|
489
|
-
Primary Button
|
|
490
|
-
</EnterpriseButton>
|
|
491
|
-
<EnterpriseButton variant="secondary" size="default">
|
|
492
|
-
Secondary Button
|
|
493
|
-
</EnterpriseButton>
|
|
494
|
-
<EnterpriseButton variant="outline" size="default">
|
|
495
|
-
Outline Button
|
|
496
|
-
</EnterpriseButton>
|
|
497
|
-
<EnterpriseButton variant="ghost" size="default">
|
|
498
|
-
Ghost Button
|
|
499
|
-
</EnterpriseButton>
|
|
500
|
-
<EnterpriseButton variant="premium" size="default">
|
|
501
|
-
Premium Button
|
|
502
|
-
</EnterpriseButton>
|
|
503
|
-
</div>
|
|
504
|
-
</EnterpriseCard>
|
|
505
|
-
|
|
506
|
-
<EnterpriseCard>
|
|
507
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Enterprise Inputs</h4>
|
|
508
|
-
<div className="space-y-4">
|
|
509
|
-
<EnterpriseInput
|
|
510
|
-
label="Full Name"
|
|
511
|
-
placeholder="Enter your full name"
|
|
512
|
-
required
|
|
513
|
-
/>
|
|
514
|
-
<EnterpriseInput
|
|
515
|
-
label="Email Address"
|
|
516
|
-
placeholder="Enter your email"
|
|
517
|
-
type="email"
|
|
518
|
-
required
|
|
519
|
-
/>
|
|
520
|
-
<EnterpriseInput
|
|
521
|
-
label="Company"
|
|
522
|
-
placeholder="Enter your company name"
|
|
523
|
-
/>
|
|
524
|
-
</div>
|
|
525
|
-
</EnterpriseCard>
|
|
526
|
-
</div>
|
|
527
|
-
|
|
528
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
529
|
-
<EnterpriseCard>
|
|
530
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Progress Indicators</h4>
|
|
531
|
-
<div className="space-y-4">
|
|
532
|
-
<EnterpriseProgress value={75} variant="success" />
|
|
533
|
-
<EnterpriseProgress value={45} variant="warning" />
|
|
534
|
-
<EnterpriseProgress value={20} variant="error" />
|
|
535
|
-
</div>
|
|
536
|
-
</EnterpriseCard>
|
|
537
|
-
|
|
538
|
-
<EnterpriseCard>
|
|
539
|
-
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Loading States</h4>
|
|
540
|
-
<div className="space-y-4">
|
|
541
|
-
<EnterpriseLoading size="sm" text="Loading..." />
|
|
542
|
-
<EnterpriseLoading size="default" text="Processing..." />
|
|
543
|
-
<EnterpriseLoading size="lg" text="Optimizing..." />
|
|
544
|
-
</div>
|
|
545
|
-
</EnterpriseCard>
|
|
546
|
-
</div>
|
|
547
|
-
</div>
|
|
548
|
-
|
|
549
|
-
{/* Interactive Form Demo */}
|
|
550
|
-
<div className="space-y-6">
|
|
551
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">📝 Interactive Form Demo</h3>
|
|
552
|
-
|
|
553
|
-
<EnterpriseCard>
|
|
554
|
-
<form className="space-y-6">
|
|
555
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
556
|
-
<EnterpriseInput
|
|
557
|
-
label="Full Name"
|
|
558
|
-
placeholder="Enter your full name"
|
|
559
|
-
value={formData.name}
|
|
560
|
-
onChange={(e) => handleInputChange('name', e.target.value)}
|
|
561
|
-
required
|
|
562
|
-
/>
|
|
563
|
-
<EnterpriseInput
|
|
564
|
-
label="Email Address"
|
|
565
|
-
placeholder="Enter your email"
|
|
566
|
-
type="email"
|
|
567
|
-
value={formData.email}
|
|
568
|
-
onChange={(e) => handleInputChange('email', e.target.value)}
|
|
569
|
-
required
|
|
570
|
-
/>
|
|
571
|
-
</div>
|
|
572
|
-
|
|
573
|
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
574
|
-
<EnterpriseInput
|
|
575
|
-
label="Company"
|
|
576
|
-
placeholder="Enter your company name"
|
|
577
|
-
value={formData.company}
|
|
578
|
-
onChange={(e) => handleInputChange('company', e.target.value)}
|
|
579
|
-
/>
|
|
580
|
-
<EnterpriseInput
|
|
581
|
-
label="Feedback"
|
|
582
|
-
placeholder="Share your feedback"
|
|
583
|
-
value={formData.feedback}
|
|
584
|
-
onChange={(e) => handleInputChange('feedback', e.target.value)}
|
|
585
|
-
/>
|
|
586
|
-
</div>
|
|
587
|
-
|
|
588
|
-
<div className="flex justify-end space-x-3">
|
|
589
|
-
<EnterpriseButton
|
|
590
|
-
variant="outline"
|
|
591
|
-
onClick={() => {
|
|
592
|
-
setFormData({ name: '', email: '', company: '', feedback: '' })
|
|
593
|
-
}}
|
|
594
|
-
>
|
|
595
|
-
Clear Form
|
|
596
|
-
</EnterpriseButton>
|
|
597
|
-
<EnterpriseButton
|
|
598
|
-
variant="default"
|
|
599
|
-
onClick={() => handleShowNotification('success')}
|
|
600
|
-
>
|
|
601
|
-
Submit Feedback
|
|
602
|
-
</EnterpriseButton>
|
|
603
|
-
</div>
|
|
604
|
-
</form>
|
|
605
|
-
</EnterpriseCard>
|
|
606
|
-
</div>
|
|
607
|
-
|
|
608
|
-
{/* Notification Demo */}
|
|
609
|
-
<div className="space-y-6">
|
|
610
|
-
<h3 className="text-lg font-semibold text-cs-text-primary">🔔 Notification System Demo</h3>
|
|
611
|
-
|
|
612
|
-
<EnterpriseCard>
|
|
613
|
-
<div className="space-y-4">
|
|
614
|
-
<h4 className="text-lg font-semibold text-cs-text-primary">Test Different Notification Types</h4>
|
|
615
|
-
<div className="flex flex-wrap gap-3">
|
|
616
|
-
<EnterpriseButton
|
|
617
|
-
variant="default"
|
|
618
|
-
size="sm"
|
|
619
|
-
onClick={() => handleShowNotification('success')}
|
|
620
|
-
>
|
|
621
|
-
Success Notification
|
|
622
|
-
</EnterpriseButton>
|
|
623
|
-
<EnterpriseButton
|
|
624
|
-
variant="secondary"
|
|
625
|
-
size="sm"
|
|
626
|
-
onClick={() => handleShowNotification('info')}
|
|
627
|
-
>
|
|
628
|
-
Info Notification
|
|
629
|
-
</EnterpriseButton>
|
|
630
|
-
<EnterpriseButton
|
|
631
|
-
variant="outline"
|
|
632
|
-
size="sm"
|
|
633
|
-
onClick={() => handleShowNotification('warning')}
|
|
634
|
-
>
|
|
635
|
-
Warning Notification
|
|
636
|
-
</EnterpriseButton>
|
|
637
|
-
<EnterpriseButton
|
|
638
|
-
variant="ghost"
|
|
639
|
-
size="sm"
|
|
640
|
-
onClick={() => handleShowNotification('error')}
|
|
641
|
-
>
|
|
642
|
-
Error Notification
|
|
643
|
-
</EnterpriseButton>
|
|
644
|
-
</div>
|
|
645
|
-
</div>
|
|
646
|
-
</EnterpriseCard>
|
|
647
|
-
</div>
|
|
648
|
-
</div>
|
|
649
|
-
)
|
|
650
|
-
|
|
651
|
-
return (
|
|
652
|
-
<div className="space-y-6">
|
|
653
|
-
{/* Header */}
|
|
654
|
-
<div className="text-center space-y-2">
|
|
655
|
-
<h2 className="text-2xl font-bold text-cs-text-primary">
|
|
656
|
-
Enterprise-Grade Mobile Experience & Polish
|
|
657
|
-
</h2>
|
|
658
|
-
<p className="text-cs-text-secondary">
|
|
659
|
-
Professional design system with enterprise-grade quality, performance excellence, and accessibility compliance
|
|
660
|
-
</p>
|
|
661
|
-
</div>
|
|
662
|
-
|
|
663
|
-
{/* Navigation Tabs */}
|
|
664
|
-
<div className="flex flex-wrap gap-2 justify-center">
|
|
665
|
-
{(['overview', 'quality', 'performance', 'accessibility', 'components'] as const).map((demo) => (
|
|
666
|
-
<button
|
|
667
|
-
key={demo}
|
|
668
|
-
onClick={() => setActiveDemo(demo)}
|
|
669
|
-
className={`px-4 py-2 rounded-lg font-medium transition-colors ${
|
|
670
|
-
activeDemo === demo
|
|
671
|
-
? 'bg-cs-primary text-white'
|
|
672
|
-
: 'bg-cs-surface-bg text-cs-text-primary hover:bg-cs-hover-bg'
|
|
673
|
-
}`}
|
|
674
|
-
>
|
|
675
|
-
{demo === 'overview' && '🏆 Overview'}
|
|
676
|
-
{demo === 'quality' && '✨ Quality'}
|
|
677
|
-
{demo === 'performance' && '⚡ Performance'}
|
|
678
|
-
{demo === 'accessibility' && '♿ Accessibility'}
|
|
679
|
-
{demo === 'components' && '🎨 Components'}
|
|
680
|
-
</button>
|
|
681
|
-
))}
|
|
682
|
-
</div>
|
|
683
|
-
|
|
684
|
-
{/* Demo Content */}
|
|
685
|
-
<div className="min-h-[500px]">
|
|
686
|
-
{activeDemo === 'overview' && renderOverviewDemo()}
|
|
687
|
-
{activeDemo === 'quality' && renderQualityDemo()}
|
|
688
|
-
{activeDemo === 'performance' && renderPerformanceDemo()}
|
|
689
|
-
{activeDemo === 'accessibility' && renderAccessibilityDemo()}
|
|
690
|
-
{activeDemo === 'components' && renderComponentsDemo()}
|
|
691
|
-
</div>
|
|
692
|
-
|
|
693
|
-
{/* Status Bar */}
|
|
694
|
-
<div className="p-4 bg-cs-surface-bg rounded-lg border border-cs-border">
|
|
695
|
-
<div className="flex flex-wrap items-center justify-between gap-4 text-sm">
|
|
696
|
-
<div className="flex items-center space-x-4">
|
|
697
|
-
<span className="font-medium">Phase:</span>
|
|
698
|
-
<EnterpriseStatus phase={
|
|
699
|
-
enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
700
|
-
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
701
|
-
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
702
|
-
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
703
|
-
'complete'
|
|
704
|
-
}>
|
|
705
|
-
{enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1)}
|
|
706
|
-
</EnterpriseStatus>
|
|
707
|
-
<span className="font-medium">Optimizations:</span>
|
|
708
|
-
<Badge variant="outline">
|
|
709
|
-
{enterpriseState.optimizationCount}
|
|
710
|
-
</Badge>
|
|
711
|
-
</div>
|
|
712
|
-
|
|
713
|
-
<div className="flex items-center space-x-4">
|
|
714
|
-
<span className="font-medium">Quality Score:</span>
|
|
715
|
-
<span className={`font-bold ${
|
|
716
|
-
enterpriseState.overallQualityScore >= 90 ? 'text-cs-success' :
|
|
717
|
-
enterpriseState.overallQualityScore >= 80 ? 'text-cs-warning' : 'text-cs-error'
|
|
718
|
-
}`}>
|
|
719
|
-
{enterpriseState.overallQualityScore}/100
|
|
720
|
-
</span>
|
|
721
|
-
<span className="font-medium">Status:</span>
|
|
722
|
-
<Badge variant={enterpriseState.isEnterpriseReady ? 'default' : 'secondary'}>
|
|
723
|
-
{enterpriseState.isEnterpriseReady ? 'Enterprise Ready' : 'In Progress'}
|
|
724
|
-
</Badge>
|
|
725
|
-
</div>
|
|
726
|
-
</div>
|
|
727
|
-
</div>
|
|
728
|
-
|
|
729
|
-
{/* Notifications */}
|
|
730
|
-
{showNotification && (
|
|
731
|
-
<EnterpriseNotification
|
|
732
|
-
type={notificationType}
|
|
733
|
-
title={
|
|
734
|
-
notificationType === 'success' ? 'Success!' :
|
|
735
|
-
notificationType === 'warning' ? 'Warning!' :
|
|
736
|
-
notificationType === 'error' ? 'Error!' : 'Information'
|
|
737
|
-
}
|
|
738
|
-
message={
|
|
739
|
-
notificationType === 'success' ? 'Operation completed successfully!' :
|
|
740
|
-
notificationType === 'warning' ? 'Please review the information provided.' :
|
|
741
|
-
notificationType === 'error' ? 'An error occurred. Please try again.' : 'Here is some information for you.'
|
|
742
|
-
}
|
|
743
|
-
onClose={() => setShowNotification(false)}
|
|
744
|
-
duration={3000}
|
|
745
|
-
/>
|
|
746
|
-
)}
|
|
747
|
-
</div>
|
|
748
|
-
)
|
|
749
|
-
}
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Badge } from './badge';
|
|
4
|
+
import { useEnterpriseMobileExperience } from '../../hooks/use-enterprise-mobile-experience';
|
|
5
|
+
import { EnterpriseButton, EnterpriseCard, EnterpriseInput, EnterpriseProgress, EnterpriseQualityMetric, EnterpriseStatus, EnterpriseLoading, EnterpriseNotification } from './enterprise-mobile-experience';
|
|
6
|
+
export const EnterpriseMobileExperienceDemo = () => {
|
|
7
|
+
const [activeDemo, setActiveDemo] = useState('overview');
|
|
8
|
+
const [formData, setFormData] = useState({
|
|
9
|
+
name: '',
|
|
10
|
+
email: '',
|
|
11
|
+
company: '',
|
|
12
|
+
feedback: ''
|
|
13
|
+
});
|
|
14
|
+
const [showNotification, setShowNotification] = useState(false);
|
|
15
|
+
const [notificationType, setNotificationType] = useState('success');
|
|
16
|
+
const { enterpriseState, qualityMetrics, performanceMetrics, accessibilityMetrics, isOptimizing, optimizationHistory, runComprehensiveOptimization, clearOptimizationHistory } = useEnterpriseMobileExperience({
|
|
17
|
+
enableProfessionalQuality: true,
|
|
18
|
+
enablePerformanceExcellence: true,
|
|
19
|
+
enableAccessibilityCompliance: true,
|
|
20
|
+
enableUserExperienceExcellence: true,
|
|
21
|
+
enableVisualRefinement: true,
|
|
22
|
+
enableInteractionRefinement: true
|
|
23
|
+
}, {
|
|
24
|
+
onQualityImproved: (metrics) => {
|
|
25
|
+
console.log('Quality improved:', metrics);
|
|
26
|
+
},
|
|
27
|
+
onPerformanceOptimized: (metrics) => {
|
|
28
|
+
console.log('Performance optimized:', metrics);
|
|
29
|
+
},
|
|
30
|
+
onAccessibilityEnhanced: (metrics) => {
|
|
31
|
+
console.log('Accessibility enhanced:', metrics);
|
|
32
|
+
},
|
|
33
|
+
onPhaseCompleted: (phase) => {
|
|
34
|
+
console.log('Phase completed:', phase);
|
|
35
|
+
},
|
|
36
|
+
onEnterpriseReady: (state) => {
|
|
37
|
+
console.log('Enterprise ready:', state);
|
|
38
|
+
setShowNotification(true);
|
|
39
|
+
setNotificationType('success');
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const handleInputChange = (field, value) => {
|
|
43
|
+
setFormData(prev => ({ ...prev, [field]: value }));
|
|
44
|
+
};
|
|
45
|
+
const handleShowNotification = (type) => {
|
|
46
|
+
setNotificationType(type);
|
|
47
|
+
setShowNotification(true);
|
|
48
|
+
};
|
|
49
|
+
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' :
|
|
50
|
+
enterpriseState.overallQualityScore >= 80 ? 'High Quality' :
|
|
51
|
+
enterpriseState.overallQualityScore >= 70 ? 'Good Quality' : 'Needs Improvement' }), _jsx(EnterpriseStatus, { phase: enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
52
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
53
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
54
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
55
|
+
'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
|
|
56
|
+
? 'Your design system meets enterprise-grade standards and is ready for production use.'
|
|
57
|
+
: '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" }) }))] }) })] })] }));
|
|
58
|
+
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." }))] })] })] }));
|
|
59
|
+
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" })] })] }) })] })] }));
|
|
60
|
+
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" })] })] })] })] }));
|
|
61
|
+
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: () => {
|
|
62
|
+
setFormData({ name: '', email: '', company: '', feedback: '' });
|
|
63
|
+
}, 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" })] })] }) })] })] }));
|
|
64
|
+
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
|
|
65
|
+
? 'bg-cs-primary text-white'
|
|
66
|
+
: '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' :
|
|
67
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
68
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
69
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
70
|
+
'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' :
|
|
71
|
+
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!' :
|
|
72
|
+
notificationType === 'warning' ? 'Warning!' :
|
|
73
|
+
notificationType === 'error' ? 'Error!' : 'Information', message: notificationType === 'success' ? 'Operation completed successfully!' :
|
|
74
|
+
notificationType === 'warning' ? 'Please review the information provided.' :
|
|
75
|
+
notificationType === 'error' ? 'An error occurred. Please try again.' : 'Here is some information for you.', onClose: () => setShowNotification(false), duration: 3000 }))] }));
|
|
76
|
+
};
|