@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.9 → 0.2.10
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 +30 -24
- package/dist/components/ui/accessibility-demo.js +30 -24
- package/dist/components/ui/advanced-component-architecture-demo.esm.js +235 -179
- package/dist/components/ui/advanced-component-architecture-demo.js +235 -179
- package/dist/components/ui/advanced-transition-system-demo.esm.js +110 -64
- package/dist/components/ui/advanced-transition-system-demo.js +110 -64
- package/dist/components/ui/advanced-transition-system.esm.js +166 -122
- package/dist/components/ui/advanced-transition-system.js +166 -122
- package/dist/components/ui/animation/animated-container.esm.js +52 -29
- package/dist/components/ui/animation/animated-container.js +52 -29
- package/dist/components/ui/animation/staggered-container.esm.js +18 -9
- package/dist/components/ui/animation/staggered-container.js +18 -9
- package/dist/components/ui/animation-demo.esm.js +67 -35
- package/dist/components/ui/animation-demo.js +67 -35
- package/dist/components/ui/badge.esm.js +9 -6
- package/dist/components/ui/badge.js +9 -6
- package/dist/components/ui/battery-conscious-animation-demo.esm.js +122 -87
- package/dist/components/ui/battery-conscious-animation-demo.js +122 -87
- package/dist/components/ui/border-radius-shadow-demo.esm.js +23 -12
- package/dist/components/ui/border-radius-shadow-demo.js +23 -12
- package/dist/components/ui/button.esm.js +8 -2
- package/dist/components/ui/button.js +8 -2
- package/dist/components/ui/card.esm.js +33 -8
- package/dist/components/ui/card.js +33 -8
- package/dist/components/ui/checkbox.esm.js +3 -3
- package/dist/components/ui/checkbox.js +3 -3
- package/dist/components/ui/color-preview.esm.js +68 -45
- package/dist/components/ui/color-preview.js +68 -45
- package/dist/components/ui/data-display/chart.esm.js +112 -84
- package/dist/components/ui/data-display/chart.js +112 -84
- package/dist/components/ui/data-display/data-grid-simple.esm.js +1 -1
- package/dist/components/ui/data-display/data-grid-simple.js +1 -1
- package/dist/components/ui/data-display/data-grid.esm.js +80 -67
- package/dist/components/ui/data-display/data-grid.js +80 -67
- package/dist/components/ui/data-display/list.esm.js +53 -45
- package/dist/components/ui/data-display/list.js +53 -45
- package/dist/components/ui/data-display/table.esm.js +62 -54
- package/dist/components/ui/data-display/table.js +62 -54
- package/dist/components/ui/data-display/timeline.esm.js +39 -34
- package/dist/components/ui/data-display/timeline.js +39 -34
- package/dist/components/ui/data-display/tree.esm.js +116 -84
- package/dist/components/ui/data-display/tree.js +116 -84
- package/dist/components/ui/data-display/types.esm.js +389 -364
- package/dist/components/ui/data-display/types.js +389 -364
- package/dist/components/ui/enterprise-mobile-experience-demo.esm.js +120 -70
- package/dist/components/ui/enterprise-mobile-experience-demo.js +120 -70
- package/dist/components/ui/enterprise-mobile-experience.esm.js +124 -73
- package/dist/components/ui/enterprise-mobile-experience.js +124 -73
- package/dist/components/ui/feedback/alert.esm.js +22 -15
- package/dist/components/ui/feedback/alert.js +22 -15
- package/dist/components/ui/feedback/progress.esm.js +47 -24
- package/dist/components/ui/feedback/progress.js +47 -24
- package/dist/components/ui/feedback/skeleton.esm.js +39 -29
- package/dist/components/ui/feedback/skeleton.js +39 -29
- package/dist/components/ui/feedback/toast.esm.js +62 -38
- package/dist/components/ui/feedback/toast.js +62 -38
- package/dist/components/ui/feedback/types.esm.js +83 -83
- package/dist/components/ui/feedback/types.js +83 -83
- package/dist/components/ui/font-preview.esm.js +41 -39
- package/dist/components/ui/font-preview.js +41 -39
- package/dist/components/ui/form-demo.esm.js +150 -113
- package/dist/components/ui/form-demo.js +150 -113
- package/dist/components/ui/hardware-acceleration-demo.esm.js +137 -87
- package/dist/components/ui/hardware-acceleration-demo.js +137 -87
- package/dist/components/ui/input.esm.js +4 -1
- package/dist/components/ui/input.js +4 -1
- package/dist/components/ui/layout-demo.esm.js +81 -56
- package/dist/components/ui/layout-demo.js +81 -56
- package/dist/components/ui/layouts/adaptive-layout.esm.js +27 -8
- package/dist/components/ui/layouts/adaptive-layout.js +27 -8
- package/dist/components/ui/layouts/desktop-layout.esm.js +39 -19
- package/dist/components/ui/layouts/desktop-layout.js +39 -19
- package/dist/components/ui/layouts/mobile-layout.esm.js +19 -9
- package/dist/components/ui/layouts/mobile-layout.js +19 -9
- package/dist/components/ui/layouts/tablet-layout.esm.js +28 -14
- package/dist/components/ui/layouts/tablet-layout.js +28 -14
- package/dist/components/ui/mobile-form-validation.esm.js +120 -87
- package/dist/components/ui/mobile-form-validation.js +120 -87
- package/dist/components/ui/mobile-input-demo.esm.js +19 -13
- package/dist/components/ui/mobile-input-demo.js +19 -13
- package/dist/components/ui/mobile-input.esm.js +185 -120
- package/dist/components/ui/mobile-input.js +185 -120
- package/dist/components/ui/mobile-skeleton-loading-demo.esm.js +128 -111
- package/dist/components/ui/mobile-skeleton-loading-demo.js +128 -111
- package/dist/components/ui/navigation/breadcrumb.esm.js +17 -14
- package/dist/components/ui/navigation/breadcrumb.js +17 -14
- package/dist/components/ui/navigation/index.esm.js +23 -1
- package/dist/components/ui/navigation/index.js +23 -1
- package/dist/components/ui/navigation/menu.esm.js +49 -35
- package/dist/components/ui/navigation/menu.js +49 -35
- package/dist/components/ui/navigation/navigation-demo.esm.js +81 -74
- package/dist/components/ui/navigation/navigation-demo.js +81 -74
- package/dist/components/ui/navigation/pagination.esm.js +62 -50
- package/dist/components/ui/navigation/pagination.js +62 -50
- package/dist/components/ui/navigation/sidebar.esm.js +56 -42
- package/dist/components/ui/navigation/sidebar.js +56 -42
- package/dist/components/ui/navigation/stepper.esm.js +34 -23
- package/dist/components/ui/navigation/stepper.js +34 -23
- package/dist/components/ui/navigation/tabs.esm.js +32 -21
- package/dist/components/ui/navigation/tabs.js +32 -21
- package/dist/components/ui/navigation/types.esm.js +196 -195
- package/dist/components/ui/navigation/types.js +196 -195
- package/dist/components/ui/overlay/backdrop.esm.js +17 -16
- package/dist/components/ui/overlay/backdrop.js +17 -16
- package/dist/components/ui/overlay/focus-manager.esm.js +21 -19
- package/dist/components/ui/overlay/focus-manager.js +21 -19
- package/dist/components/ui/overlay/index.esm.js +22 -2
- package/dist/components/ui/overlay/index.js +22 -2
- package/dist/components/ui/overlay/modal.esm.js +38 -34
- package/dist/components/ui/overlay/modal.js +38 -34
- package/dist/components/ui/overlay/overlay-manager.esm.js +25 -20
- package/dist/components/ui/overlay/overlay-manager.js +25 -20
- package/dist/components/ui/overlay/popover.esm.js +74 -58
- package/dist/components/ui/overlay/popover.js +74 -58
- package/dist/components/ui/overlay/portal.esm.js +7 -7
- package/dist/components/ui/overlay/portal.js +7 -7
- package/dist/components/ui/overlay/tooltip.esm.js +54 -39
- package/dist/components/ui/overlay/tooltip.js +54 -39
- package/dist/components/ui/overlay/types.esm.js +132 -131
- package/dist/components/ui/overlay/types.js +132 -131
- package/dist/components/ui/performance-demo.esm.js +135 -88
- package/dist/components/ui/performance-demo.js +135 -88
- package/dist/components/ui/semantic-input-system-demo.esm.js +117 -80
- package/dist/components/ui/semantic-input-system-demo.js +117 -80
- package/dist/components/ui/theme-customizer.esm.js +84 -52
- package/dist/components/ui/theme-customizer.js +84 -52
- package/dist/components/ui/theme-preview.esm.js +95 -43
- package/dist/components/ui/theme-preview.js +95 -43
- package/dist/components/ui/theme-switcher.esm.js +70 -44
- package/dist/components/ui/theme-switcher.js +70 -44
- package/dist/components/ui/theme-toggle.esm.js +3 -3
- package/dist/components/ui/theme-toggle.js +3 -3
- package/dist/components/ui/token-demo.esm.js +33 -21
- package/dist/components/ui/token-demo.js +33 -21
- package/dist/components/ui/touch-demo.esm.js +102 -73
- package/dist/components/ui/touch-demo.js +102 -73
- package/dist/components/ui/touch-friendly-interface-demo.esm.js +102 -64
- package/dist/components/ui/touch-friendly-interface-demo.js +102 -64
- package/dist/components/ui/touch-friendly-interface.esm.js +85 -61
- package/dist/components/ui/touch-friendly-interface.js +85 -61
- package/dist/hooks/use-accessibility-support.esm.js +115 -85
- package/dist/hooks/use-accessibility-support.js +115 -85
- package/dist/hooks/use-adaptive-layout.esm.js +56 -33
- package/dist/hooks/use-adaptive-layout.js +56 -33
- package/dist/hooks/use-advanced-patterns.esm.js +57 -42
- package/dist/hooks/use-advanced-patterns.js +57 -42
- package/dist/hooks/use-advanced-transition-system.esm.js +112 -71
- package/dist/hooks/use-advanced-transition-system.js +112 -71
- package/dist/hooks/use-animation-profile.esm.js +63 -34
- package/dist/hooks/use-animation-profile.js +63 -34
- package/dist/hooks/use-battery-animations.esm.js +80 -55
- package/dist/hooks/use-battery-animations.js +80 -55
- package/dist/hooks/use-battery-conscious-loading.esm.js +166 -123
- package/dist/hooks/use-battery-conscious-loading.js +166 -123
- package/dist/hooks/use-battery-optimization.esm.js +78 -55
- package/dist/hooks/use-battery-optimization.js +78 -55
- package/dist/hooks/use-battery-status.esm.js +73 -51
- package/dist/hooks/use-battery-status.js +73 -51
- package/dist/hooks/use-component-performance.esm.js +62 -47
- package/dist/hooks/use-component-performance.js +62 -47
- package/dist/hooks/use-device-loading-states.esm.js +152 -109
- package/dist/hooks/use-device-loading-states.js +152 -109
- package/dist/hooks/use-device.esm.js +25 -14
- package/dist/hooks/use-device.js +25 -14
- package/dist/hooks/use-enterprise-mobile-experience.esm.js +137 -88
- package/dist/hooks/use-enterprise-mobile-experience.js +137 -88
- package/dist/hooks/use-form-feedback.esm.js +124 -81
- package/dist/hooks/use-form-feedback.js +124 -81
- package/dist/hooks/use-form-performance.esm.js +127 -92
- package/dist/hooks/use-form-performance.js +127 -92
- package/dist/hooks/use-frame-rate.esm.js +56 -37
- package/dist/hooks/use-frame-rate.js +56 -37
- package/dist/hooks/use-gestures.esm.js +96 -72
- package/dist/hooks/use-gestures.js +96 -72
- package/dist/hooks/use-hardware-acceleration.esm.js +65 -37
- package/dist/hooks/use-hardware-acceleration.js +65 -37
- package/dist/hooks/use-input-accessibility.esm.js +157 -119
- package/dist/hooks/use-input-accessibility.js +157 -119
- package/dist/hooks/use-input-performance.esm.js +139 -104
- package/dist/hooks/use-input-performance.js +139 -104
- package/dist/hooks/use-layout-performance.esm.js +50 -29
- package/dist/hooks/use-layout-performance.js +50 -29
- package/dist/hooks/use-loading-accessibility.esm.js +209 -169
- package/dist/hooks/use-loading-accessibility.js +209 -169
- package/dist/hooks/use-loading-performance.esm.js +117 -93
- package/dist/hooks/use-loading-performance.js +117 -93
- package/dist/hooks/use-memory-usage.esm.js +57 -38
- package/dist/hooks/use-memory-usage.js +57 -38
- package/dist/hooks/use-mobile-form-layout.esm.js +111 -74
- package/dist/hooks/use-mobile-form-layout.js +111 -74
- package/dist/hooks/use-mobile-form-validation.esm.js +211 -144
- package/dist/hooks/use-mobile-form-validation.js +211 -144
- package/dist/hooks/use-mobile-keyboard-optimization.esm.js +154 -113
- package/dist/hooks/use-mobile-keyboard-optimization.js +154 -113
- package/dist/hooks/use-mobile-layout.esm.js +73 -51
- package/dist/hooks/use-mobile-layout.js +73 -51
- package/dist/hooks/use-mobile-optimization.esm.js +72 -44
- package/dist/hooks/use-mobile-optimization.js +72 -44
- package/dist/hooks/use-mobile-skeleton.esm.js +97 -64
- package/dist/hooks/use-mobile-skeleton.js +97 -64
- package/dist/hooks/use-mobile-touch.esm.js +128 -93
- package/dist/hooks/use-mobile-touch.js +128 -93
- package/dist/hooks/use-performance-throttling.esm.js +72 -48
- package/dist/hooks/use-performance-throttling.js +72 -48
- package/dist/hooks/use-performance.esm.js +90 -52
- package/dist/hooks/use-performance.js +90 -52
- package/dist/hooks/use-reusable-architecture.esm.js +94 -65
- package/dist/hooks/use-reusable-architecture.js +94 -65
- package/dist/hooks/use-semantic-input-types.esm.js +166 -124
- package/dist/hooks/use-semantic-input-types.js +166 -124
- package/dist/hooks/use-semantic-input.esm.js +178 -126
- package/dist/hooks/use-semantic-input.js +178 -126
- package/dist/hooks/use-tablet-layout.esm.js +67 -38
- package/dist/hooks/use-tablet-layout.js +67 -38
- package/dist/hooks/use-touch-friendly-input.esm.js +193 -149
- package/dist/hooks/use-touch-friendly-input.js +193 -149
- package/dist/hooks/use-touch-friendly-interface.esm.js +99 -67
- package/dist/hooks/use-touch-friendly-interface.js +99 -67
- package/dist/hooks/use-touch-optimization.esm.js +99 -72
- package/dist/hooks/use-touch-optimization.js +99 -72
- package/dist/index.esm.js +289 -280
- package/dist/index.js +289 -280
- package/dist/lib/utils.esm.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/plugins/theme-css-generator.esm.js +104 -55
- package/dist/plugins/theme-css-generator.js +104 -55
- package/dist/provider.esm.js +4 -4
- package/dist/provider.js +4 -4
- package/dist/styles.css +1 -1
- package/dist/theme.esm.js +633 -468
- package/dist/theme.js +633 -468
- package/dist/themes/ThemeContext.esm.js +15 -15
- package/dist/themes/ThemeContext.js +15 -15
- package/dist/themes/ThemeProvider.esm.js +25 -22
- package/dist/themes/ThemeProvider.js +25 -22
- package/dist/themes/accessibility.esm.js +147 -108
- package/dist/themes/accessibility.js +147 -108
- package/dist/themes/aria-patterns.esm.js +198 -162
- package/dist/themes/aria-patterns.js +198 -162
- package/dist/themes/base-themes.esm.js +14 -11
- package/dist/themes/base-themes.js +14 -11
- package/dist/themes/colorManager.esm.js +101 -83
- package/dist/themes/colorManager.js +101 -83
- package/dist/themes/examples/dark-theme.esm.js +133 -103
- package/dist/themes/examples/dark-theme.js +133 -103
- package/dist/themes/examples/minimal-theme.esm.js +83 -61
- package/dist/themes/examples/minimal-theme.js +83 -61
- package/dist/themes/focus-management.esm.js +202 -143
- package/dist/themes/focus-management.js +202 -143
- package/dist/themes/fontLoader.esm.js +28 -19
- package/dist/themes/fontLoader.js +28 -19
- package/dist/themes/high-contrast.esm.js +152 -104
- package/dist/themes/high-contrast.js +152 -104
- package/dist/themes/inheritance.esm.js +35 -27
- package/dist/themes/inheritance.js +35 -27
- package/dist/themes/keyboard-navigation.esm.js +152 -123
- package/dist/themes/keyboard-navigation.js +152 -123
- package/dist/themes/motion-reduction.esm.js +193 -133
- package/dist/themes/motion-reduction.js +193 -133
- package/dist/themes/navigation.esm.js +146 -146
- package/dist/themes/navigation.js +146 -146
- package/dist/themes/screen-reader.esm.js +159 -94
- package/dist/themes/screen-reader.js +159 -94
- package/dist/themes/systemThemeDetector.esm.js +42 -34
- package/dist/themes/systemThemeDetector.js +42 -34
- package/dist/themes/themeCSSUpdater.esm.js +21 -9
- package/dist/themes/themeCSSUpdater.js +21 -9
- package/dist/themes/themePersistence.esm.js +68 -47
- package/dist/themes/themePersistence.js +68 -47
- package/dist/themes/themes/stan-design.esm.js +633 -468
- package/dist/themes/themes/stan-design.js +633 -468
- package/dist/themes/types.esm.js +301 -287
- package/dist/themes/types.js +301 -287
- package/dist/themes/useSystemTheme.esm.js +4 -4
- package/dist/themes/useSystemTheme.js +4 -4
- package/dist/themes/useTheme.esm.js +4 -4
- package/dist/themes/useTheme.js +4 -4
- package/dist/themes/validation.esm.js +128 -77
- package/dist/themes/validation.js +128 -77
- package/dist/tokens/index.esm.js +15 -4
- package/dist/tokens/index.js +15 -4
- package/dist/tokens/tokenExporter.esm.js +87 -61
- package/dist/tokens/tokenExporter.js +87 -61
- package/dist/tokens/tokenGenerator.esm.js +86 -77
- package/dist/tokens/tokenGenerator.js +86 -77
- package/dist/tokens/tokenManager.esm.js +64 -51
- package/dist/tokens/tokenManager.js +64 -51
- package/dist/tokens/tokenValidator.esm.js +193 -147
- package/dist/tokens/tokenValidator.js +193 -147
- package/dist/tokens/types.esm.js +49 -35
- package/dist/tokens/types.js +49 -35
- package/dist/utils/bundle-analyzer.esm.js +83 -65
- package/dist/utils/bundle-analyzer.js +83 -65
- package/dist/utils/bundle-splitting.esm.js +142 -117
- package/dist/utils/bundle-splitting.js +142 -117
- package/dist/utils/lazy-loading.esm.js +132 -106
- package/dist/utils/lazy-loading.js +132 -106
- package/dist/utils/performance-monitor.esm.js +170 -129
- package/dist/utils/performance-monitor.js +170 -129
- package/dist/utils/tree-shaking.esm.js +69 -61
- package/dist/utils/tree-shaking.js +69 -61
- package/package.json +1 -1
- package/src/index.ts +146 -146
|
@@ -12,13 +12,14 @@ import {
|
|
|
12
12
|
EnterpriseNotification
|
|
13
13
|
} from './enterprise-mobile-experience'
|
|
14
14
|
|
|
15
|
-
export const EnterpriseMobileExperienceDemo= () => {
|
|
15
|
+
export const EnterpriseMobileExperienceDemo: React.FC = () => {
|
|
16
16
|
const [activeDemo, setActiveDemo] = useState<'overview' | 'quality' | 'performance' | 'accessibility' | 'components'>('overview')
|
|
17
17
|
const [formData, setFormData] = useState({
|
|
18
|
-
name,
|
|
19
|
-
email,
|
|
20
|
-
company,
|
|
21
|
-
feedback
|
|
18
|
+
name: '',
|
|
19
|
+
email: '',
|
|
20
|
+
company: '',
|
|
21
|
+
feedback: ''
|
|
22
|
+
})
|
|
22
23
|
const [showNotification, setShowNotification] = useState(false)
|
|
23
24
|
const [notificationType, setNotificationType] = useState<'success' | 'warning' | 'error' | 'info'>('success')
|
|
24
25
|
|
|
@@ -32,36 +33,37 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
32
33
|
runComprehensiveOptimization,
|
|
33
34
|
clearOptimizationHistory
|
|
34
35
|
} = useEnterpriseMobileExperience({
|
|
35
|
-
enableProfessionalQuality,
|
|
36
|
-
enablePerformanceExcellence,
|
|
37
|
-
enableAccessibilityCompliance,
|
|
38
|
-
enableUserExperienceExcellence,
|
|
39
|
-
enableVisualRefinement,
|
|
40
|
-
enableInteractionRefinement
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
enableProfessionalQuality: true,
|
|
37
|
+
enablePerformanceExcellence: true,
|
|
38
|
+
enableAccessibilityCompliance: true,
|
|
39
|
+
enableUserExperienceExcellence: true,
|
|
40
|
+
enableVisualRefinement: true,
|
|
41
|
+
enableInteractionRefinement: true
|
|
42
|
+
}, {
|
|
43
|
+
onQualityImproved: (metrics) => {
|
|
44
|
+
console.log('Quality improved:', metrics)
|
|
43
45
|
},
|
|
44
|
-
onPerformanceOptimized) => {
|
|
45
|
-
console.log('Performance optimized, metrics)
|
|
46
|
+
onPerformanceOptimized: (metrics) => {
|
|
47
|
+
console.log('Performance optimized:', metrics)
|
|
46
48
|
},
|
|
47
|
-
onAccessibilityEnhanced) => {
|
|
48
|
-
console.log('Accessibility enhanced, metrics)
|
|
49
|
+
onAccessibilityEnhanced: (metrics) => {
|
|
50
|
+
console.log('Accessibility enhanced:', metrics)
|
|
49
51
|
},
|
|
50
|
-
onPhaseCompleted) => {
|
|
51
|
-
console.log('Phase completed, phase)
|
|
52
|
+
onPhaseCompleted: (phase) => {
|
|
53
|
+
console.log('Phase completed:', phase)
|
|
52
54
|
},
|
|
53
|
-
onEnterpriseReady) => {
|
|
54
|
-
console.log('Enterprise ready, state)
|
|
55
|
+
onEnterpriseReady: (state) => {
|
|
56
|
+
console.log('Enterprise ready:', state)
|
|
55
57
|
setShowNotification(true)
|
|
56
58
|
setNotificationType('success')
|
|
57
59
|
}
|
|
58
60
|
})
|
|
59
61
|
|
|
60
|
-
const handleInputChange = (field, value) => {
|
|
61
|
-
setFormData(prev => ({ ...prev, [field]}))
|
|
62
|
+
const handleInputChange = (field: string, value: string) => {
|
|
63
|
+
setFormData(prev => ({ ...prev, [field]: value }))
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
const handleShowNotification = (type) => {
|
|
66
|
+
const handleShowNotification = (type: 'success' | 'warning' | 'error' | 'info') => {
|
|
65
67
|
setNotificationType(type)
|
|
66
68
|
setShowNotification(true)
|
|
67
69
|
}
|
|
@@ -72,7 +74,8 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
72
74
|
<div className="space-y-6">
|
|
73
75
|
<h3 className="text-lg font-semibold text-cs-text-primary">🏆 Enterprise Status Overview</h3>
|
|
74
76
|
|
|
75
|
-
<div className="grid grid-cols-1 md
|
|
77
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
78
|
+
<EnterpriseCard variant="premium" className="text-center">
|
|
76
79
|
<div className="space-y-4">
|
|
77
80
|
<div className="text-4xl font-bold text-cs-primary">
|
|
78
81
|
{enterpriseState.overallQualityScore}/100
|
|
@@ -81,10 +84,17 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
81
84
|
Overall Quality Score
|
|
82
85
|
</div>
|
|
83
86
|
<div className="text-sm text-cs-text-secondary">
|
|
84
|
-
{enterpriseState.overallQualityScore >= 90 ? 'Exceptional Quality'
|
|
87
|
+
{enterpriseState.overallQualityScore >= 90 ? 'Exceptional Quality' :
|
|
88
|
+
enterpriseState.overallQualityScore >= 80 ? 'High Quality' :
|
|
89
|
+
enterpriseState.overallQualityScore >= 70 ? 'Good Quality' : 'Needs Improvement'}
|
|
85
90
|
</div>
|
|
86
91
|
<EnterpriseStatus phase={
|
|
87
|
-
enterpriseState.currentPhase === 'initialization' ? 'initializing'
|
|
92
|
+
enterpriseState.currentPhase === 'initialization' ? 'initializing' :
|
|
93
|
+
enterpriseState.currentPhase === 'optimization' ? 'optimizing' :
|
|
94
|
+
enterpriseState.currentPhase === 'polish' ? 'polishing' :
|
|
95
|
+
enterpriseState.currentPhase === 'verification' ? 'verifying' :
|
|
96
|
+
'complete'
|
|
97
|
+
}>
|
|
88
98
|
{enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1)}
|
|
89
99
|
</EnterpriseStatus>
|
|
90
100
|
</div>
|
|
@@ -99,7 +109,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
99
109
|
Optimizations Applied
|
|
100
110
|
</div>
|
|
101
111
|
<div className="text-sm text-cs-text-secondary">
|
|
102
|
-
Last).toLocaleTimeString() }
|
|
112
|
+
Last: {enterpriseState.lastOptimizationTime ? new Date(enterpriseState.lastOptimizationTime).toLocaleTimeString() : 'Never'}
|
|
103
113
|
</div>
|
|
104
114
|
<EnterpriseButton
|
|
105
115
|
onClick={runComprehensiveOptimization}
|
|
@@ -107,7 +117,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
107
117
|
loading={isOptimizing}
|
|
108
118
|
variant="premium"
|
|
109
119
|
>
|
|
110
|
-
{isOptimizing ? 'Optimizing...' }
|
|
120
|
+
{isOptimizing ? 'Optimizing...' : 'Run Optimization'}
|
|
111
121
|
</EnterpriseButton>
|
|
112
122
|
</div>
|
|
113
123
|
</EnterpriseCard>
|
|
@@ -146,18 +156,18 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
146
156
|
<div className="space-y-6">
|
|
147
157
|
<h3 className="text-lg font-semibold text-cs-text-primary">🚀 Enterprise Ready Status</h3>
|
|
148
158
|
|
|
149
|
-
<EnterpriseCard variant={enterpriseState.isEnterpriseReady ? 'featured' }>
|
|
159
|
+
<EnterpriseCard variant={enterpriseState.isEnterpriseReady ? 'featured' : 'default'}>
|
|
150
160
|
<div className="text-center space-y-4">
|
|
151
161
|
<div className="text-6xl">
|
|
152
|
-
{enterpriseState.isEnterpriseReady ? '🏆' }
|
|
162
|
+
{enterpriseState.isEnterpriseReady ? '🏆' : '⏳'}
|
|
153
163
|
</div>
|
|
154
164
|
<div className="text-2xl font-bold text-cs-text-primary">
|
|
155
|
-
{enterpriseState.isEnterpriseReady ? 'Enterprise Ready!' }
|
|
165
|
+
{enterpriseState.isEnterpriseReady ? 'Enterprise Ready!' : 'Preparing for Enterprise'}
|
|
156
166
|
</div>
|
|
157
167
|
<div className="text-cs-text-secondary">
|
|
158
168
|
{enterpriseState.isEnterpriseReady
|
|
159
169
|
? 'Your design system meets enterprise-grade standards and is ready for production use.'
|
|
160
|
-
}
|
|
170
|
+
: 'Optimization in progress. Your design system will be enterprise-ready soon.'}
|
|
161
171
|
</div>
|
|
162
172
|
{enterpriseState.isEnterpriseReady && (
|
|
163
173
|
<div className="flex justify-center">
|
|
@@ -178,10 +188,12 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
178
188
|
<div className="space-y-6">
|
|
179
189
|
<h3 className="text-lg font-semibold text-cs-text-primary">✨ Professional Quality Assessment</h3>
|
|
180
190
|
|
|
181
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
182
194
|
<EnterpriseProgress
|
|
183
195
|
value={qualityMetrics.visualQuality}
|
|
184
|
-
variant={qualityMetrics.visualQuality >= 90 ? 'success'
|
|
196
|
+
variant={qualityMetrics.visualQuality >= 90 ? 'success' : qualityMetrics.visualQuality >= 80 ? 'warning' : 'error'}
|
|
185
197
|
size="lg"
|
|
186
198
|
/>
|
|
187
199
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -193,7 +205,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
193
205
|
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Interaction Quality</h4>
|
|
194
206
|
<EnterpriseProgress
|
|
195
207
|
value={qualityMetrics.interactionQuality}
|
|
196
|
-
variant={qualityMetrics.interactionQuality >= 90 ? 'success'
|
|
208
|
+
variant={qualityMetrics.interactionQuality >= 90 ? 'success' : qualityMetrics.interactionQuality >= 80 ? 'warning' : 'error'}
|
|
197
209
|
size="lg"
|
|
198
210
|
/>
|
|
199
211
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -202,10 +214,12 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
202
214
|
</EnterpriseCard>
|
|
203
215
|
</div>
|
|
204
216
|
|
|
205
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
206
220
|
<EnterpriseProgress
|
|
207
221
|
value={qualityMetrics.mobileOptimization}
|
|
208
|
-
variant={qualityMetrics.mobileOptimization >= 90 ? 'success'
|
|
222
|
+
variant={qualityMetrics.mobileOptimization >= 90 ? 'success' : qualityMetrics.mobileOptimization >= 80 ? 'warning' : 'error'}
|
|
209
223
|
size="lg"
|
|
210
224
|
/>
|
|
211
225
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -217,7 +231,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
217
231
|
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Industry Benchmark</h4>
|
|
218
232
|
<EnterpriseProgress
|
|
219
233
|
value={qualityMetrics.industryBenchmark}
|
|
220
|
-
variant={qualityMetrics.industryBenchmark >= 90 ? 'success'
|
|
234
|
+
variant={qualityMetrics.industryBenchmark >= 90 ? 'success' : qualityMetrics.industryBenchmark >= 80 ? 'warning' : 'error'}
|
|
221
235
|
size="lg"
|
|
222
236
|
/>
|
|
223
237
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -254,7 +268,8 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
254
268
|
</div>
|
|
255
269
|
))}
|
|
256
270
|
</div>
|
|
257
|
-
)
|
|
271
|
+
) : (
|
|
272
|
+
<div className="text-center py-8 text-cs-text-secondary">
|
|
258
273
|
No optimizations applied yet. Run optimization to see improvements.
|
|
259
274
|
</div>
|
|
260
275
|
)}
|
|
@@ -269,18 +284,20 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
269
284
|
<div className="space-y-6">
|
|
270
285
|
<h3 className="text-lg font-semibold text-cs-text-primary">⚡ Performance Excellence</h3>
|
|
271
286
|
|
|
272
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
273
290
|
<div className="text-center space-y-3">
|
|
274
291
|
<div className="text-4xl font-bold text-cs-primary">
|
|
275
292
|
{performanceMetrics.frameRate}
|
|
276
293
|
</div>
|
|
277
294
|
<div className="text-lg text-cs-text-primary">FPS</div>
|
|
278
295
|
<div className="text-sm text-cs-text-secondary">
|
|
279
|
-
Target} FPS
|
|
296
|
+
Target: 60 FPS | Current: {performanceMetrics.frameRate} FPS
|
|
280
297
|
</div>
|
|
281
298
|
<EnterpriseProgress
|
|
282
299
|
value={(performanceMetrics.frameRate / 60) * 100}
|
|
283
|
-
variant={performanceMetrics.frameRate >= 55 ? 'success'
|
|
300
|
+
variant={performanceMetrics.frameRate >= 55 ? 'success' : performanceMetrics.frameRate >= 45 ? 'warning' : 'error'}
|
|
284
301
|
size="lg"
|
|
285
302
|
/>
|
|
286
303
|
</div>
|
|
@@ -294,18 +311,20 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
294
311
|
</div>
|
|
295
312
|
<div className="text-lg text-cs-text-primary">Efficiency</div>
|
|
296
313
|
<div className="text-sm text-cs-text-secondary">
|
|
297
|
-
Usage}% | Available}%
|
|
314
|
+
Usage: {performanceMetrics.memoryUsage}% | Available: {100 - performanceMetrics.memoryUsage}%
|
|
298
315
|
</div>
|
|
299
316
|
<EnterpriseProgress
|
|
300
317
|
value={100 - performanceMetrics.memoryUsage}
|
|
301
|
-
variant={performanceMetrics.memoryUsage <= 20 ? 'success'
|
|
318
|
+
variant={performanceMetrics.memoryUsage <= 20 ? 'success' : performanceMetrics.memoryUsage <= 40 ? 'warning' : 'error'}
|
|
302
319
|
size="lg"
|
|
303
320
|
/>
|
|
304
321
|
</div>
|
|
305
322
|
</EnterpriseCard>
|
|
306
323
|
</div>
|
|
307
324
|
|
|
308
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
309
328
|
<div className="text-center space-y-3">
|
|
310
329
|
<div className="text-4xl font-bold text-cs-primary">
|
|
311
330
|
{performanceMetrics.batteryEfficiency}%
|
|
@@ -316,7 +335,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
316
335
|
</div>
|
|
317
336
|
<EnterpriseProgress
|
|
318
337
|
value={performanceMetrics.batteryEfficiency}
|
|
319
|
-
variant={performanceMetrics.batteryEfficiency >= 80 ? 'success'
|
|
338
|
+
variant={performanceMetrics.batteryEfficiency >= 80 ? 'success' : performanceMetrics.batteryEfficiency >= 60 ? 'warning' : 'error'}
|
|
320
339
|
size="lg"
|
|
321
340
|
/>
|
|
322
341
|
</div>
|
|
@@ -334,7 +353,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
334
353
|
</div>
|
|
335
354
|
<EnterpriseProgress
|
|
336
355
|
value={performanceMetrics.networkEfficiency}
|
|
337
|
-
variant={performanceMetrics.networkEfficiency >= 80 ? 'success'
|
|
356
|
+
variant={performanceMetrics.networkEfficiency >= 80 ? 'success' : performanceMetrics.networkEfficiency >= 60 ? 'warning' : 'error'}
|
|
338
357
|
size="lg"
|
|
339
358
|
/>
|
|
340
359
|
</div>
|
|
@@ -370,10 +389,12 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
370
389
|
<div className="space-y-6">
|
|
371
390
|
<h3 className="text-lg font-semibold text-cs-text-primary">♿ Accessibility Compliance</h3>
|
|
372
391
|
|
|
373
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
374
395
|
<EnterpriseProgress
|
|
375
396
|
value={accessibilityMetrics.wcagCompliance}
|
|
376
|
-
variant={accessibilityMetrics.wcagCompliance >= 90 ? 'success'
|
|
397
|
+
variant={accessibilityMetrics.wcagCompliance >= 90 ? 'success' : accessibilityMetrics.wcagCompliance >= 80 ? 'warning' : 'error'}
|
|
377
398
|
size="lg"
|
|
378
399
|
/>
|
|
379
400
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -385,7 +406,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
385
406
|
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Screen Reader Support</h4>
|
|
386
407
|
<EnterpriseProgress
|
|
387
408
|
value={accessibilityMetrics.screenReaderSupport}
|
|
388
|
-
variant={accessibilityMetrics.screenReaderSupport >= 90 ? 'success'
|
|
409
|
+
variant={accessibilityMetrics.screenReaderSupport >= 90 ? 'success' : accessibilityMetrics.screenReaderSupport >= 80 ? 'warning' : 'error'}
|
|
389
410
|
size="lg"
|
|
390
411
|
/>
|
|
391
412
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -394,10 +415,12 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
394
415
|
</EnterpriseCard>
|
|
395
416
|
</div>
|
|
396
417
|
|
|
397
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
398
421
|
<EnterpriseProgress
|
|
399
422
|
value={accessibilityMetrics.keyboardNavigation}
|
|
400
|
-
variant={accessibilityMetrics.keyboardNavigation >= 90 ? 'success'
|
|
423
|
+
variant={accessibilityMetrics.keyboardNavigation >= 90 ? 'success' : accessibilityMetrics.keyboardNavigation >= 80 ? 'warning' : 'error'}
|
|
401
424
|
size="lg"
|
|
402
425
|
/>
|
|
403
426
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -409,7 +432,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
409
432
|
<h4 className="text-lg font-semibold text-cs-text-primary mb-4">Color Contrast</h4>
|
|
410
433
|
<EnterpriseProgress
|
|
411
434
|
value={accessibilityMetrics.colorContrast}
|
|
412
|
-
variant={accessibilityMetrics.colorContrast >= 90 ? 'success'
|
|
435
|
+
variant={accessibilityMetrics.colorContrast >= 90 ? 'success' : accessibilityMetrics.colorContrast >= 80 ? 'warning' : 'error'}
|
|
413
436
|
size="lg"
|
|
414
437
|
/>
|
|
415
438
|
<div className="mt-4 text-sm text-cs-text-secondary">
|
|
@@ -423,7 +446,8 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
423
446
|
<div className="space-y-6">
|
|
424
447
|
<h3 className="text-lg font-semibold text-cs-text-primary">🔧 Accessibility Features</h3>
|
|
425
448
|
|
|
426
|
-
<div className="grid grid-cols-1 md
|
|
449
|
+
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
450
|
+
<EnterpriseCard variant="interactive" className="text-center">
|
|
427
451
|
<div className="text-3xl mb-2">🎭</div>
|
|
428
452
|
<h4 className="font-semibold text-cs-text-primary">Motion Reduction</h4>
|
|
429
453
|
<div className="text-sm text-cs-text-secondary">
|
|
@@ -457,7 +481,9 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
457
481
|
<div className="space-y-6">
|
|
458
482
|
<h3 className="text-lg font-semibold text-cs-text-primary">🎨 Enterprise Components Showcase</h3>
|
|
459
483
|
|
|
460
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
461
487
|
<div className="space-y-3">
|
|
462
488
|
<EnterpriseButton variant="default" size="default">
|
|
463
489
|
Primary Button
|
|
@@ -499,7 +525,9 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
499
525
|
</EnterpriseCard>
|
|
500
526
|
</div>
|
|
501
527
|
|
|
502
|
-
<div className="grid grid-cols-1 md
|
|
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>
|
|
503
531
|
<div className="space-y-4">
|
|
504
532
|
<EnterpriseProgress value={75} variant="success" />
|
|
505
533
|
<EnterpriseProgress value={45} variant="warning" />
|
|
@@ -524,7 +552,9 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
524
552
|
|
|
525
553
|
<EnterpriseCard>
|
|
526
554
|
<form className="space-y-6">
|
|
527
|
-
<div className="grid grid-cols-1 md
|
|
555
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
556
|
+
<EnterpriseInput
|
|
557
|
+
label="Full Name"
|
|
528
558
|
placeholder="Enter your full name"
|
|
529
559
|
value={formData.name}
|
|
530
560
|
onChange={(e) => handleInputChange('name', e.target.value)}
|
|
@@ -540,7 +570,9 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
540
570
|
/>
|
|
541
571
|
</div>
|
|
542
572
|
|
|
543
|
-
<div className="grid grid-cols-1 md
|
|
573
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
574
|
+
<EnterpriseInput
|
|
575
|
+
label="Company"
|
|
544
576
|
placeholder="Enter your company name"
|
|
545
577
|
value={formData.company}
|
|
546
578
|
onChange={(e) => handleInputChange('company', e.target.value)}
|
|
@@ -557,7 +589,7 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
557
589
|
<EnterpriseButton
|
|
558
590
|
variant="outline"
|
|
559
591
|
onClick={() => {
|
|
560
|
-
setFormData({ name, email, company, feedback})
|
|
592
|
+
setFormData({ name: '', email: '', company: '', feedback: '' })
|
|
561
593
|
}}
|
|
562
594
|
>
|
|
563
595
|
Clear Form
|
|
@@ -637,7 +669,8 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
637
669
|
className={`px-4 py-2 rounded-lg font-medium transition-colors ${
|
|
638
670
|
activeDemo === demo
|
|
639
671
|
? 'bg-cs-primary text-white'
|
|
640
|
-
|
|
672
|
+
: 'bg-cs-surface-bg text-cs-text-primary hover:bg-cs-hover-bg'
|
|
673
|
+
}`}
|
|
641
674
|
>
|
|
642
675
|
{demo === 'overview' && '🏆 Overview'}
|
|
643
676
|
{demo === 'quality' && '✨ Quality'}
|
|
@@ -661,22 +694,33 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
661
694
|
<div className="p-4 bg-cs-surface-bg rounded-lg border border-cs-border">
|
|
662
695
|
<div className="flex flex-wrap items-center justify-between gap-4 text-sm">
|
|
663
696
|
<div className="flex items-center space-x-4">
|
|
664
|
-
<span className="font-medium">Phase
|
|
665
|
-
|
|
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
|
+
}>
|
|
666
705
|
{enterpriseState.currentPhase.charAt(0).toUpperCase() + enterpriseState.currentPhase.slice(1)}
|
|
667
706
|
</EnterpriseStatus>
|
|
668
|
-
<span className="font-medium">Optimizations
|
|
707
|
+
<span className="font-medium">Optimizations:</span>
|
|
708
|
+
<Badge variant="outline">
|
|
669
709
|
{enterpriseState.optimizationCount}
|
|
670
710
|
</Badge>
|
|
671
711
|
</div>
|
|
672
712
|
|
|
673
713
|
<div className="flex items-center space-x-4">
|
|
674
|
-
<span className="font-medium">Quality Score
|
|
675
|
-
|
|
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
|
+
}`}>
|
|
676
719
|
{enterpriseState.overallQualityScore}/100
|
|
677
720
|
</span>
|
|
678
|
-
<span className="font-medium">Status
|
|
679
|
-
|
|
721
|
+
<span className="font-medium">Status:</span>
|
|
722
|
+
<Badge variant={enterpriseState.isEnterpriseReady ? 'default' : 'secondary'}>
|
|
723
|
+
{enterpriseState.isEnterpriseReady ? 'Enterprise Ready' : 'In Progress'}
|
|
680
724
|
</Badge>
|
|
681
725
|
</div>
|
|
682
726
|
</div>
|
|
@@ -687,9 +731,15 @@ export const EnterpriseMobileExperienceDemo= () => {
|
|
|
687
731
|
<EnterpriseNotification
|
|
688
732
|
type={notificationType}
|
|
689
733
|
title={
|
|
690
|
-
notificationType === 'success' ? 'Success!'
|
|
734
|
+
notificationType === 'success' ? 'Success!' :
|
|
735
|
+
notificationType === 'warning' ? 'Warning!' :
|
|
736
|
+
notificationType === 'error' ? 'Error!' : 'Information'
|
|
737
|
+
}
|
|
691
738
|
message={
|
|
692
|
-
notificationType === 'success' ? 'Operation completed successfully!'
|
|
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
|
+
}
|
|
693
743
|
onClose={() => setShowNotification(false)}
|
|
694
744
|
duration={3000}
|
|
695
745
|
/>
|