@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/components/ui/accessibility-demo.d.ts +259 -0
- package/dist/components/ui/accessibility-demo.esm.js +265 -0
- package/dist/components/ui/accessibility-demo.js +265 -0
- package/dist/components/ui/advanced-component-architecture-demo.d.ts +718 -0
- package/dist/components/ui/advanced-component-architecture-demo.esm.js +860 -0
- package/dist/components/ui/advanced-component-architecture-demo.js +860 -0
- package/dist/components/ui/advanced-transition-system-demo.d.ts +660 -0
- package/dist/components/ui/advanced-transition-system-demo.esm.js +624 -0
- package/dist/components/ui/advanced-transition-system-demo.js +624 -0
- package/dist/components/ui/advanced-transition-system.d.ts +391 -0
- package/dist/components/ui/advanced-transition-system.esm.js +351 -0
- package/dist/components/ui/advanced-transition-system.js +351 -0
- package/dist/components/ui/animation/animated-container.d.ts +162 -0
- package/dist/components/ui/animation/animated-container.esm.js +143 -0
- package/dist/components/ui/animation/animated-container.js +143 -0
- package/dist/components/ui/animation/index.d.ts +9 -0
- package/dist/components/ui/animation/index.esm.js +19 -0
- package/dist/components/ui/animation/index.js +19 -0
- package/dist/components/ui/animation/staggered-container.d.ts +64 -0
- package/dist/components/ui/animation/staggered-container.esm.js +59 -0
- package/dist/components/ui/animation/staggered-container.js +59 -0
- package/dist/components/ui/animation-demo.d.ts +238 -0
- package/dist/components/ui/animation-demo.esm.js +218 -0
- package/dist/components/ui/animation-demo.js +218 -0
- package/dist/components/ui/badge.d.ts +28 -0
- package/dist/components/ui/badge.esm.js +30 -0
- package/dist/components/ui/badge.js +30 -0
- package/dist/components/ui/battery-conscious-animation-demo.d.ts +561 -0
- package/dist/components/ui/battery-conscious-animation-demo.esm.js +533 -0
- package/dist/components/ui/battery-conscious-animation-demo.js +533 -0
- package/dist/components/ui/border-radius-shadow-demo.d.ts +183 -0
- package/dist/components/ui/border-radius-shadow-demo.esm.js +176 -0
- package/dist/components/ui/border-radius-shadow-demo.js +176 -0
- package/dist/components/ui/button.d.ts +33 -0
- package/dist/components/ui/button.esm.js +30 -0
- package/dist/components/ui/button.js +30 -0
- package/dist/components/ui/card.d.ts +205 -0
- package/dist/components/ui/card.esm.js +182 -0
- package/dist/components/ui/card.js +182 -0
- package/dist/components/ui/checkbox.d.ts +26 -0
- package/dist/components/ui/checkbox.esm.js +30 -0
- package/dist/components/ui/checkbox.js +30 -0
- package/dist/components/ui/color-preview.d.ts +402 -0
- package/dist/components/ui/color-preview.esm.js +388 -0
- package/dist/components/ui/color-preview.js +388 -0
- package/dist/components/ui/data-display/chart.d.ts +646 -0
- package/dist/components/ui/data-display/chart.esm.js +625 -0
- package/dist/components/ui/data-display/chart.js +625 -0
- package/dist/components/ui/data-display/data-grid-simple.d.ts +73 -0
- package/dist/components/ui/data-display/data-grid-simple.esm.js +76 -0
- package/dist/components/ui/data-display/data-grid-simple.js +76 -0
- package/dist/components/ui/data-display/data-grid.d.ts +670 -0
- package/dist/components/ui/data-display/data-grid.esm.js +667 -0
- package/dist/components/ui/data-display/data-grid.js +667 -0
- package/dist/components/ui/data-display/list.d.ts +448 -0
- package/dist/components/ui/data-display/list.esm.js +448 -0
- package/dist/components/ui/data-display/list.js +448 -0
- package/dist/components/ui/data-display/table.d.ts +472 -0
- package/dist/components/ui/data-display/table.esm.js +474 -0
- package/dist/components/ui/data-display/table.js +474 -0
- package/dist/components/ui/data-display/timeline.d.ts +433 -0
- package/dist/components/ui/data-display/timeline.esm.js +436 -0
- package/dist/components/ui/data-display/timeline.js +436 -0
- package/dist/components/ui/data-display/tree.d.ts +594 -0
- package/dist/components/ui/data-display/tree.esm.js +570 -0
- package/dist/components/ui/data-display/tree.js +570 -0
- package/dist/components/ui/data-display/types.d.ts +534 -0
- package/dist/components/ui/data-display/types.esm.js +511 -0
- package/dist/components/ui/data-display/types.js +511 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts +735 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.esm.js +699 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.js +699 -0
- package/dist/components/ui/enterprise-mobile-experience.d.ts +461 -0
- package/dist/components/ui/enterprise-mobile-experience.esm.js +413 -0
- package/dist/components/ui/enterprise-mobile-experience.js +413 -0
- package/dist/components/ui/feedback/alert.d.ts +154 -0
- package/dist/components/ui/feedback/alert.esm.js +150 -0
- package/dist/components/ui/feedback/alert.js +150 -0
- package/dist/components/ui/feedback/progress.d.ts +288 -0
- package/dist/components/ui/feedback/progress.esm.js +269 -0
- package/dist/components/ui/feedback/progress.js +269 -0
- package/dist/components/ui/feedback/skeleton.d.ts +182 -0
- package/dist/components/ui/feedback/skeleton.esm.js +175 -0
- package/dist/components/ui/feedback/skeleton.js +175 -0
- package/dist/components/ui/feedback/toast.d.ts +277 -0
- package/dist/components/ui/feedback/toast.esm.js +256 -0
- package/dist/components/ui/feedback/toast.js +256 -0
- package/dist/components/ui/feedback/types.d.ts +123 -0
- package/dist/components/ui/feedback/types.esm.js +125 -0
- package/dist/components/ui/feedback/types.js +125 -0
- package/dist/components/ui/font-preview.d.ts +282 -0
- package/dist/components/ui/font-preview.esm.js +286 -0
- package/dist/components/ui/font-preview.js +286 -0
- package/dist/components/ui/form-demo.d.ts +544 -0
- package/dist/components/ui/form-demo.esm.js +516 -0
- package/dist/components/ui/form-demo.js +516 -0
- package/dist/components/ui/hardware-acceleration-demo.d.ts +540 -0
- package/dist/components/ui/hardware-acceleration-demo.esm.js +497 -0
- package/dist/components/ui/hardware-acceleration-demo.js +497 -0
- package/dist/components/ui/input.d.ts +33 -0
- package/dist/components/ui/input.esm.js +32 -0
- package/dist/components/ui/input.js +32 -0
- package/dist/components/ui/label.d.ts +13 -0
- package/dist/components/ui/label.esm.js +16 -0
- package/dist/components/ui/label.js +16 -0
- package/dist/components/ui/layout-demo.d.ts +352 -0
- package/dist/components/ui/layout-demo.esm.js +342 -0
- package/dist/components/ui/layout-demo.js +342 -0
- package/dist/components/ui/layouts/adaptive-layout.d.ts +132 -0
- package/dist/components/ui/layouts/adaptive-layout.esm.js +120 -0
- package/dist/components/ui/layouts/adaptive-layout.js +120 -0
- package/dist/components/ui/layouts/desktop-layout.d.ts +219 -0
- package/dist/components/ui/layouts/desktop-layout.esm.js +204 -0
- package/dist/components/ui/layouts/desktop-layout.js +204 -0
- package/dist/components/ui/layouts/index.d.ts +5 -0
- package/dist/components/ui/layouts/index.esm.js +10 -0
- package/dist/components/ui/layouts/index.js +10 -0
- package/dist/components/ui/layouts/mobile-layout.d.ts +158 -0
- package/dist/components/ui/layouts/mobile-layout.esm.js +152 -0
- package/dist/components/ui/layouts/mobile-layout.js +152 -0
- package/dist/components/ui/layouts/tablet-layout.d.ts +192 -0
- package/dist/components/ui/layouts/tablet-layout.esm.js +183 -0
- package/dist/components/ui/layouts/tablet-layout.js +183 -0
- package/dist/components/ui/mobile-form-validation.d.ts +439 -0
- package/dist/components/ui/mobile-form-validation.esm.js +418 -0
- package/dist/components/ui/mobile-form-validation.js +418 -0
- package/dist/components/ui/mobile-input-demo.d.ts +197 -0
- package/dist/components/ui/mobile-input-demo.esm.js +195 -0
- package/dist/components/ui/mobile-input-demo.js +195 -0
- package/dist/components/ui/mobile-input.d.ts +273 -0
- package/dist/components/ui/mobile-input.esm.js +216 -0
- package/dist/components/ui/mobile-input.js +216 -0
- package/dist/components/ui/mobile-skeleton-loading-demo.d.ts +628 -0
- package/dist/components/ui/mobile-skeleton-loading-demo.esm.js +621 -0
- package/dist/components/ui/mobile-skeleton-loading-demo.js +621 -0
- package/dist/components/ui/navigation/breadcrumb.d.ts +149 -0
- package/dist/components/ui/navigation/breadcrumb.esm.js +155 -0
- package/dist/components/ui/navigation/breadcrumb.js +155 -0
- package/dist/components/ui/navigation/index.d.ts +25 -0
- package/dist/components/ui/navigation/index.esm.js +14 -0
- package/dist/components/ui/navigation/index.js +14 -0
- package/dist/components/ui/navigation/menu.d.ts +366 -0
- package/dist/components/ui/navigation/menu.esm.js +360 -0
- package/dist/components/ui/navigation/menu.js +360 -0
- package/dist/components/ui/navigation/navigation-demo.d.ts +169 -0
- package/dist/components/ui/navigation/navigation-demo.esm.js +317 -0
- package/dist/components/ui/navigation/navigation-demo.js +317 -0
- package/dist/components/ui/navigation/pagination.d.ts +261 -0
- package/dist/components/ui/navigation/pagination.esm.js +260 -0
- package/dist/components/ui/navigation/pagination.js +260 -0
- package/dist/components/ui/navigation/sidebar.d.ts +375 -0
- package/dist/components/ui/navigation/sidebar.esm.js +369 -0
- package/dist/components/ui/navigation/sidebar.js +369 -0
- package/dist/components/ui/navigation/stepper.d.ts +294 -0
- package/dist/components/ui/navigation/stepper.esm.js +292 -0
- package/dist/components/ui/navigation/stepper.js +292 -0
- package/dist/components/ui/navigation/tabs.d.ts +196 -0
- package/dist/components/ui/navigation/tabs.esm.js +194 -0
- package/dist/components/ui/navigation/tabs.js +194 -0
- package/dist/components/ui/navigation/types.d.ts +293 -0
- package/dist/components/ui/navigation/types.esm.js +298 -0
- package/dist/components/ui/navigation/types.js +298 -0
- package/dist/components/ui/overlay/backdrop.d.ts +79 -0
- package/dist/components/ui/overlay/backdrop.esm.js +80 -0
- package/dist/components/ui/overlay/backdrop.js +80 -0
- package/dist/components/ui/overlay/focus-manager.d.ts +141 -0
- package/dist/components/ui/overlay/focus-manager.esm.js +141 -0
- package/dist/components/ui/overlay/focus-manager.js +141 -0
- package/dist/components/ui/overlay/index.d.ts +27 -0
- package/dist/components/ui/overlay/index.esm.js +16 -0
- package/dist/components/ui/overlay/index.js +16 -0
- package/dist/components/ui/overlay/modal.d.ts +262 -0
- package/dist/components/ui/overlay/modal.esm.js +266 -0
- package/dist/components/ui/overlay/modal.js +266 -0
- package/dist/components/ui/overlay/overlay-manager.d.ts +107 -0
- package/dist/components/ui/overlay/overlay-manager.esm.js +105 -0
- package/dist/components/ui/overlay/overlay-manager.js +105 -0
- package/dist/components/ui/overlay/popover.d.ts +450 -0
- package/dist/components/ui/overlay/popover.esm.js +446 -0
- package/dist/components/ui/overlay/popover.js +446 -0
- package/dist/components/ui/overlay/portal.d.ts +75 -0
- package/dist/components/ui/overlay/portal.esm.js +79 -0
- package/dist/components/ui/overlay/portal.js +79 -0
- package/dist/components/ui/overlay/tooltip.d.ts +298 -0
- package/dist/components/ui/overlay/tooltip.esm.js +288 -0
- package/dist/components/ui/overlay/tooltip.js +288 -0
- package/dist/components/ui/overlay/types.d.ts +194 -0
- package/dist/components/ui/overlay/types.esm.js +195 -0
- package/dist/components/ui/overlay/types.js +195 -0
- package/dist/components/ui/performance-demo.d.ts +583 -0
- package/dist/components/ui/performance-demo.esm.js +549 -0
- package/dist/components/ui/performance-demo.js +549 -0
- package/dist/components/ui/semantic-input-system-demo.d.ts +490 -0
- package/dist/components/ui/semantic-input-system-demo.esm.js +465 -0
- package/dist/components/ui/semantic-input-system-demo.js +465 -0
- package/dist/components/ui/theme-customizer.d.ts +378 -0
- package/dist/components/ui/theme-customizer.esm.js +354 -0
- package/dist/components/ui/theme-customizer.js +354 -0
- package/dist/components/ui/theme-preview.d.ts +305 -0
- package/dist/components/ui/theme-preview.esm.js +258 -0
- package/dist/components/ui/theme-preview.js +258 -0
- package/dist/components/ui/theme-switcher.d.ts +259 -0
- package/dist/components/ui/theme-switcher.esm.js +238 -0
- package/dist/components/ui/theme-switcher.js +238 -0
- package/dist/components/ui/theme-toggle.d.ts +34 -0
- package/dist/components/ui/theme-toggle.esm.js +38 -0
- package/dist/components/ui/theme-toggle.js +38 -0
- package/dist/components/ui/token-demo.d.ts +188 -0
- package/dist/components/ui/token-demo.esm.js +183 -0
- package/dist/components/ui/token-demo.js +183 -0
- package/dist/components/ui/touch-demo.d.ts +455 -0
- package/dist/components/ui/touch-demo.esm.js +433 -0
- package/dist/components/ui/touch-demo.js +433 -0
- package/dist/components/ui/touch-friendly-interface-demo.d.ts +512 -0
- package/dist/components/ui/touch-friendly-interface-demo.esm.js +481 -0
- package/dist/components/ui/touch-friendly-interface-demo.js +481 -0
- package/dist/components/ui/touch-friendly-interface.d.ts +292 -0
- package/dist/components/ui/touch-friendly-interface.esm.js +272 -0
- package/dist/components/ui/touch-friendly-interface.js +272 -0
- package/dist/hooks/index.d.ts +161 -0
- package/dist/hooks/index.esm.js +190 -0
- package/dist/hooks/index.js +190 -0
- package/dist/hooks/use-accessibility-support.d.ts +516 -0
- package/dist/hooks/use-accessibility-support.esm.js +488 -0
- package/dist/hooks/use-accessibility-support.js +488 -0
- package/dist/hooks/use-adaptive-layout.d.ts +287 -0
- package/dist/hooks/use-adaptive-layout.esm.js +266 -0
- package/dist/hooks/use-adaptive-layout.js +266 -0
- package/dist/hooks/use-advanced-patterns.d.ts +292 -0
- package/dist/hooks/use-advanced-patterns.esm.js +279 -0
- package/dist/hooks/use-advanced-patterns.js +279 -0
- package/dist/hooks/use-advanced-transition-system.d.ts +390 -0
- package/dist/hooks/use-advanced-transition-system.esm.js +352 -0
- package/dist/hooks/use-advanced-transition-system.js +352 -0
- package/dist/hooks/use-animation-profile.d.ts +285 -0
- package/dist/hooks/use-animation-profile.esm.js +259 -0
- package/dist/hooks/use-animation-profile.js +259 -0
- package/dist/hooks/use-battery-animations.d.ts +382 -0
- package/dist/hooks/use-battery-animations.esm.js +359 -0
- package/dist/hooks/use-battery-animations.js +359 -0
- package/dist/hooks/use-battery-conscious-loading.d.ts +473 -0
- package/dist/hooks/use-battery-conscious-loading.esm.js +432 -0
- package/dist/hooks/use-battery-conscious-loading.js +432 -0
- package/dist/hooks/use-battery-optimization.d.ts +328 -0
- package/dist/hooks/use-battery-optimization.esm.js +307 -0
- package/dist/hooks/use-battery-optimization.js +307 -0
- package/dist/hooks/use-battery-status.d.ts +297 -0
- package/dist/hooks/use-battery-status.esm.js +277 -0
- package/dist/hooks/use-battery-status.js +277 -0
- package/dist/hooks/use-component-performance.d.ts +342 -0
- package/dist/hooks/use-component-performance.esm.js +329 -0
- package/dist/hooks/use-component-performance.js +329 -0
- package/dist/hooks/use-device-loading-states.d.ts +456 -0
- package/dist/hooks/use-device-loading-states.esm.js +416 -0
- package/dist/hooks/use-device-loading-states.js +416 -0
- package/dist/hooks/use-device.d.ts +104 -0
- package/dist/hooks/use-device.esm.js +99 -0
- package/dist/hooks/use-device.js +99 -0
- package/dist/hooks/use-enterprise-mobile-experience.d.ts +486 -0
- package/dist/hooks/use-enterprise-mobile-experience.esm.js +439 -0
- package/dist/hooks/use-enterprise-mobile-experience.js +439 -0
- package/dist/hooks/use-form-feedback.d.ts +401 -0
- package/dist/hooks/use-form-feedback.esm.js +360 -0
- package/dist/hooks/use-form-feedback.js +360 -0
- package/dist/hooks/use-form-performance.d.ts +511 -0
- package/dist/hooks/use-form-performance.esm.js +478 -0
- package/dist/hooks/use-form-performance.js +478 -0
- package/dist/hooks/use-frame-rate.d.ts +249 -0
- package/dist/hooks/use-frame-rate.esm.js +232 -0
- package/dist/hooks/use-frame-rate.js +232 -0
- package/dist/hooks/use-gestures.d.ts +336 -0
- package/dist/hooks/use-gestures.esm.js +314 -0
- package/dist/hooks/use-gestures.js +314 -0
- package/dist/hooks/use-hardware-acceleration.d.ts +339 -0
- package/dist/hooks/use-hardware-acceleration.esm.js +313 -0
- package/dist/hooks/use-hardware-acceleration.js +313 -0
- package/dist/hooks/use-input-accessibility.d.ts +451 -0
- package/dist/hooks/use-input-accessibility.esm.js +417 -0
- package/dist/hooks/use-input-accessibility.js +417 -0
- package/dist/hooks/use-input-performance.d.ts +503 -0
- package/dist/hooks/use-input-performance.esm.js +471 -0
- package/dist/hooks/use-input-performance.js +471 -0
- package/dist/hooks/use-layout-performance.d.ts +317 -0
- package/dist/hooks/use-layout-performance.esm.js +298 -0
- package/dist/hooks/use-layout-performance.js +298 -0
- package/dist/hooks/use-loading-accessibility.d.ts +532 -0
- package/dist/hooks/use-loading-accessibility.esm.js +495 -0
- package/dist/hooks/use-loading-accessibility.js +495 -0
- package/dist/hooks/use-loading-performance.d.ts +471 -0
- package/dist/hooks/use-loading-performance.esm.js +449 -0
- package/dist/hooks/use-loading-performance.js +449 -0
- package/dist/hooks/use-memory-usage.d.ts +285 -0
- package/dist/hooks/use-memory-usage.esm.js +268 -0
- package/dist/hooks/use-memory-usage.js +268 -0
- package/dist/hooks/use-mobile-form-layout.d.ts +462 -0
- package/dist/hooks/use-mobile-form-layout.esm.js +427 -0
- package/dist/hooks/use-mobile-form-layout.js +427 -0
- package/dist/hooks/use-mobile-form-validation.d.ts +516 -0
- package/dist/hooks/use-mobile-form-validation.esm.js +451 -0
- package/dist/hooks/use-mobile-form-validation.js +451 -0
- package/dist/hooks/use-mobile-keyboard-optimization.d.ts +469 -0
- package/dist/hooks/use-mobile-keyboard-optimization.esm.js +431 -0
- package/dist/hooks/use-mobile-keyboard-optimization.js +431 -0
- package/dist/hooks/use-mobile-layout.d.ts +300 -0
- package/dist/hooks/use-mobile-layout.esm.js +280 -0
- package/dist/hooks/use-mobile-layout.js +280 -0
- package/dist/hooks/use-mobile-optimization.d.ts +404 -0
- package/dist/hooks/use-mobile-optimization.esm.js +378 -0
- package/dist/hooks/use-mobile-optimization.js +378 -0
- package/dist/hooks/use-mobile-skeleton.d.ts +399 -0
- package/dist/hooks/use-mobile-skeleton.esm.js +369 -0
- package/dist/hooks/use-mobile-skeleton.js +369 -0
- package/dist/hooks/use-mobile-touch.d.ts +412 -0
- package/dist/hooks/use-mobile-touch.esm.js +379 -0
- package/dist/hooks/use-mobile-touch.js +379 -0
- package/dist/hooks/use-performance-throttling.d.ts +346 -0
- package/dist/hooks/use-performance-throttling.esm.js +324 -0
- package/dist/hooks/use-performance-throttling.js +324 -0
- package/dist/hooks/use-performance.d.ts +314 -0
- package/dist/hooks/use-performance.esm.js +278 -0
- package/dist/hooks/use-performance.js +278 -0
- package/dist/hooks/use-reusable-architecture.d.ts +412 -0
- package/dist/hooks/use-reusable-architecture.esm.js +385 -0
- package/dist/hooks/use-reusable-architecture.js +385 -0
- package/dist/hooks/use-semantic-input-types.d.ts +354 -0
- package/dist/hooks/use-semantic-input-types.esm.js +315 -0
- package/dist/hooks/use-semantic-input-types.js +315 -0
- package/dist/hooks/use-semantic-input.d.ts +563 -0
- package/dist/hooks/use-semantic-input.esm.js +513 -0
- package/dist/hooks/use-semantic-input.js +513 -0
- package/dist/hooks/use-tablet-layout.d.ts +382 -0
- package/dist/hooks/use-tablet-layout.esm.js +355 -0
- package/dist/hooks/use-tablet-layout.js +355 -0
- package/dist/hooks/use-touch-friendly-input.d.ts +520 -0
- package/dist/hooks/use-touch-friendly-input.esm.js +480 -0
- package/dist/hooks/use-touch-friendly-input.js +480 -0
- package/dist/hooks/use-touch-friendly-interface.d.ts +329 -0
- package/dist/hooks/use-touch-friendly-interface.esm.js +299 -0
- package/dist/hooks/use-touch-friendly-interface.js +299 -0
- package/dist/hooks/use-touch-optimization.d.ts +373 -0
- package/dist/hooks/use-touch-optimization.esm.js +348 -0
- package/dist/hooks/use-touch-optimization.js +348 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.esm.js +6 -0
- package/dist/lib/utils.js +6 -0
- package/dist/plugins/theme-css-generator.d.ts +345 -0
- package/dist/plugins/theme-css-generator.esm.js +305 -0
- package/dist/plugins/theme-css-generator.js +305 -0
- package/dist/styles.css +1 -1
- package/dist/themes/ThemeContext.d.ts +27 -0
- package/dist/themes/ThemeContext.esm.js +31 -0
- package/dist/themes/ThemeContext.js +31 -0
- package/dist/themes/ThemeProvider.d.ts +222 -0
- package/dist/themes/ThemeProvider.esm.js +229 -0
- package/dist/themes/ThemeProvider.js +229 -0
- package/dist/themes/accessibility/index.d.ts +7 -0
- package/dist/themes/accessibility/index.esm.js +27 -0
- package/dist/themes/accessibility/index.js +27 -0
- package/dist/themes/accessibility.d.ts +259 -0
- package/dist/themes/accessibility.esm.js +220 -0
- package/dist/themes/accessibility.js +220 -0
- package/dist/themes/aria-patterns.d.ts +418 -0
- package/dist/themes/aria-patterns.esm.js +384 -0
- package/dist/themes/aria-patterns.js +384 -0
- package/dist/themes/base-themes.d.ts +34 -0
- package/dist/themes/base-themes.esm.js +52 -0
- package/dist/themes/base-themes.js +52 -0
- package/dist/themes/colorManager.d.ts +327 -0
- package/dist/themes/colorManager.esm.js +362 -0
- package/dist/themes/colorManager.js +362 -0
- package/dist/themes/examples/dark-theme.d.ts +139 -0
- package/dist/themes/examples/dark-theme.esm.js +124 -0
- package/dist/themes/examples/dark-theme.js +124 -0
- package/dist/themes/examples/minimal-theme.d.ts +93 -0
- package/dist/themes/examples/minimal-theme.esm.js +86 -0
- package/dist/themes/examples/minimal-theme.js +86 -0
- package/dist/themes/focus-management.d.ts +699 -0
- package/dist/themes/focus-management.esm.js +642 -0
- package/dist/themes/focus-management.js +642 -0
- package/dist/themes/fontLoader.d.ts +163 -0
- package/dist/themes/fontLoader.esm.js +192 -0
- package/dist/themes/fontLoader.js +192 -0
- package/dist/themes/high-contrast.d.ts +619 -0
- package/dist/themes/high-contrast.esm.js +573 -0
- package/dist/themes/high-contrast.js +573 -0
- package/dist/themes/index.d.ts +11 -0
- package/dist/themes/index.esm.js +19 -0
- package/dist/themes/index.js +19 -0
- package/dist/themes/inheritance.d.ts +160 -0
- package/dist/themes/inheritance.esm.js +219 -0
- package/dist/themes/inheritance.js +219 -0
- package/dist/themes/keyboard-navigation.d.ts +550 -0
- package/dist/themes/keyboard-navigation.esm.js +521 -0
- package/dist/themes/keyboard-navigation.js +521 -0
- package/dist/themes/motion-reduction.d.ts +660 -0
- package/dist/themes/motion-reduction.esm.js +602 -0
- package/dist/themes/motion-reduction.js +602 -0
- package/dist/themes/navigation.d.ts +232 -0
- package/dist/themes/navigation.esm.js +238 -0
- package/dist/themes/navigation.js +238 -0
- package/dist/themes/screen-reader.d.ts +645 -0
- package/dist/themes/screen-reader.esm.js +580 -0
- package/dist/themes/screen-reader.js +580 -0
- package/dist/themes/systemThemeDetector.d.ts +148 -0
- package/dist/themes/systemThemeDetector.esm.js +174 -0
- package/dist/themes/systemThemeDetector.js +174 -0
- package/dist/themes/themeCSSUpdater.d.ts +229 -0
- package/dist/themes/themeCSSUpdater.esm.js +250 -0
- package/dist/themes/themeCSSUpdater.js +250 -0
- package/dist/themes/themePersistence.d.ts +192 -0
- package/dist/themes/themePersistence.esm.js +217 -0
- package/dist/themes/themePersistence.js +217 -0
- package/dist/themes/themes/stan-design.d.ts +678 -0
- package/dist/themes/themes/stan-design.esm.js +518 -0
- package/dist/themes/themes/stan-design.js +518 -0
- package/dist/themes/types.d.ts +454 -0
- package/dist/themes/types.esm.js +446 -0
- package/dist/themes/types.js +446 -0
- package/dist/themes/useSystemTheme.d.ts +43 -0
- package/dist/themes/useSystemTheme.esm.js +48 -0
- package/dist/themes/useSystemTheme.js +48 -0
- package/dist/themes/useTheme.d.ts +20 -0
- package/dist/themes/useTheme.esm.js +87 -0
- package/dist/themes/useTheme.js +87 -0
- package/dist/themes/validation.d.ts +406 -0
- package/dist/themes/validation.esm.js +411 -0
- package/dist/themes/validation.js +411 -0
- package/dist/tokens/index.d.ts +25 -0
- package/dist/tokens/index.esm.js +23 -0
- package/dist/tokens/index.js +23 -0
- package/dist/tokens/tokenExporter.d.ts +336 -0
- package/dist/tokens/tokenExporter.esm.js +371 -0
- package/dist/tokens/tokenExporter.js +371 -0
- package/dist/tokens/tokenGenerator.d.ts +250 -0
- package/dist/tokens/tokenGenerator.esm.js +267 -0
- package/dist/tokens/tokenGenerator.js +267 -0
- package/dist/tokens/tokenManager.d.ts +194 -0
- package/dist/tokens/tokenManager.esm.js +235 -0
- package/dist/tokens/tokenManager.js +235 -0
- package/dist/tokens/tokenValidator.d.ts +488 -0
- package/dist/tokens/tokenValidator.esm.js +497 -0
- package/dist/tokens/tokenValidator.js +497 -0
- package/dist/tokens/types.d.ts +78 -0
- package/dist/tokens/types.esm.js +64 -0
- package/dist/tokens/types.js +64 -0
- package/dist/utils/bundle-analyzer.d.ts +260 -0
- package/dist/utils/bundle-analyzer.esm.js +242 -0
- package/dist/utils/bundle-analyzer.js +242 -0
- package/dist/utils/bundle-splitting.d.ts +483 -0
- package/dist/utils/bundle-splitting.esm.js +458 -0
- package/dist/utils/bundle-splitting.js +458 -0
- package/dist/utils/lazy-loading.d.ts +437 -0
- package/dist/utils/lazy-loading.esm.js +415 -0
- package/dist/utils/lazy-loading.js +415 -0
- package/dist/utils/performance-monitor.d.ts +513 -0
- package/dist/utils/performance-monitor.esm.js +472 -0
- package/dist/utils/performance-monitor.js +472 -0
- package/dist/utils/tree-shaking.d.ts +274 -0
- package/dist/utils/tree-shaking.esm.js +266 -0
- package/dist/utils/tree-shaking.js +266 -0
- package/package.json +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
export const BorderRadiusShadowDemo: React.FC = () => {
|
|
2
|
+
return (
|
|
3
|
+
<div className="space-y-6">
|
|
4
|
+
<div className="text-center">
|
|
5
|
+
<h2 className="text-2xl font-bold text-cs-text-primary mb-2">
|
|
6
|
+
Advanced Border Radius & Shadow System
|
|
7
|
+
</h2>
|
|
8
|
+
<p className="text-cs-text-secondary">
|
|
9
|
+
Sophisticated visual polish with calculated variants and multiple depth levels
|
|
10
|
+
</p>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
{/* Border Radius System */}
|
|
14
|
+
<Card className="p-6">
|
|
15
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
16
|
+
Border Radius System
|
|
17
|
+
</h3>
|
|
18
|
+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
19
|
+
<div className="space-y-2">
|
|
20
|
+
<div className="h-20 bg-cs-primary rounded-sm flex items-center justify-center text-white font-medium">
|
|
21
|
+
rounded-sm
|
|
22
|
+
</div>
|
|
23
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-sm (calc(var(--radius) - 4px))</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div className="space-y-2">
|
|
27
|
+
<div className="h-20 bg-cs-primary rounded-md flex items-center justify-center text-white font-medium">
|
|
28
|
+
rounded-md
|
|
29
|
+
</div>
|
|
30
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-md (calc(var(--radius) - 2px))</p>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div className="space-y-2">
|
|
34
|
+
<div className="h-20 bg-cs-primary rounded-lg flex items-center justify-center text-white font-medium">
|
|
35
|
+
rounded-lg
|
|
36
|
+
</div>
|
|
37
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-lg (var(--radius))</p>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div className="space-y-2">
|
|
41
|
+
<div className="h-20 bg-cs-primary rounded-xl flex items-center justify-center text-white font-medium">
|
|
42
|
+
rounded-xl
|
|
43
|
+
</div>
|
|
44
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-xl (calc(var(--radius) + 2px))</p>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div className="space-y-2">
|
|
48
|
+
<div className="h-20 bg-cs-primary rounded-2xl flex items-center justify-center text-white font-medium">
|
|
49
|
+
rounded-2xl
|
|
50
|
+
</div>
|
|
51
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-2xl (calc(var(--radius) + 4px))</p>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div className="space-y-2">
|
|
55
|
+
<div className="h-20 bg-cs-primary rounded-full flex items-center justify-center text-white font-medium">
|
|
56
|
+
rounded-full
|
|
57
|
+
</div>
|
|
58
|
+
<p className="text-xs text-cs-text-muted text-center">Native Tailwind (50%)</p>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</Card>
|
|
62
|
+
|
|
63
|
+
{/* Shadow System */}
|
|
64
|
+
<Card className="p-6">
|
|
65
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
66
|
+
Shadow System
|
|
67
|
+
</h3>
|
|
68
|
+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
69
|
+
<div className="space-y-2">
|
|
70
|
+
<div className="h-20 bg-white rounded-lg shadow-sm flex items-center justify-center text-cs-text-primary font-medium border">
|
|
71
|
+
shadow-sm
|
|
72
|
+
</div>
|
|
73
|
+
<p className="text-xs text-cs-text-muted text-center">Subtle elevation</p>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div className="space-y-2">
|
|
77
|
+
<div className="h-20 bg-white rounded-lg shadow flex items-center justify-center text-cs-text-primary font-medium border">
|
|
78
|
+
shadow
|
|
79
|
+
</div>
|
|
80
|
+
<p className="text-xs text-cs-text-muted text-center">Default shadow</p>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div className="space-y-2">
|
|
84
|
+
<div className="h-20 bg-white rounded-lg shadow-md flex items-center justify-center text-cs-text-primary font-medium border">
|
|
85
|
+
shadow-md
|
|
86
|
+
</div>
|
|
87
|
+
<p className="text-xs text-cs-text-muted text-center">Medium elevation</p>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div className="space-y-2">
|
|
91
|
+
<div className="h-20 bg-white rounded-lg shadow-lg flex items-center justify-center text-cs-text-primary font-medium border">
|
|
92
|
+
shadow-lg
|
|
93
|
+
</div>
|
|
94
|
+
<p className="text-xs text-cs-text-muted text-center">Large elevation</p>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div className="space-y-2">
|
|
98
|
+
<div className="h-20 bg-white rounded-lg shadow-xl flex items-center justify-center text-cs-text-primary font-medium border">
|
|
99
|
+
shadow-xl
|
|
100
|
+
</div>
|
|
101
|
+
<p className="text-xs text-cs-text-muted text-center">Extra large elevation</p>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div className="space-y-2">
|
|
105
|
+
<div className="h-20 bg-white rounded-lg shadow-2xl flex items-center justify-center text-cs-text-primary font-medium border">
|
|
106
|
+
shadow-2xl
|
|
107
|
+
</div>
|
|
108
|
+
<p className="text-xs text-cs-text-muted text-center">Maximum elevation</p>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</Card>
|
|
112
|
+
|
|
113
|
+
{/* Component Integration */}
|
|
114
|
+
<Card className="p-6">
|
|
115
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
116
|
+
Component Integration
|
|
117
|
+
</h3>
|
|
118
|
+
<div className="space-y-4">
|
|
119
|
+
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
120
|
+
<Button variant="default" className="w-full">
|
|
121
|
+
Default Button
|
|
122
|
+
</Button>
|
|
123
|
+
<Button variant="outline" className="w-full">
|
|
124
|
+
Outline Button
|
|
125
|
+
</Button>
|
|
126
|
+
<Button variant="secondary" className="w-full">
|
|
127
|
+
Secondary Button
|
|
128
|
+
</Button>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
132
|
+
<div className="space-y-2">
|
|
133
|
+
<label className="text-sm font-medium text-cs-text-secondary">Input Field</label>
|
|
134
|
+
<input
|
|
135
|
+
type="text"
|
|
136
|
+
placeholder="Type something..."
|
|
137
|
+
className="w-full h-11 rounded-md border border-cs-border bg-cs-surface-bg px-3 py-2 text-cs-text-primary focus:outline-none focus:ring-2 focus:ring-cs-primary focus:ring-offset-2"
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<div className="space-y-2">
|
|
142
|
+
<label className="text-sm font-medium text-cs-text-secondary">Card Example</label>
|
|
143
|
+
<div className="p-4 rounded-lg border border-cs-border bg-cs-surface-bg shadow-sm">
|
|
144
|
+
<p className="text-sm text-cs-text-secondary">This card uses rounded-lg and shadow-sm</p>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</Card>
|
|
150
|
+
|
|
151
|
+
{/* Technical Details */}
|
|
152
|
+
<Card className="p-6">
|
|
153
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
154
|
+
Technical Implementation
|
|
155
|
+
</h3>
|
|
156
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
157
|
+
<div>
|
|
158
|
+
<h4 className="font-medium text-cs-text-primary mb-2">CSS Custom Properties</h4>
|
|
159
|
+
<div className="bg-cs-surface-bg p-3 rounded-md text-xs font-mono text-cs-text-secondary overflow-auto">
|
|
160
|
+
<p>--radius: 0.5rem</p>
|
|
161
|
+
<p>--radius-sm: calc(var(--radius) - 4px)</p>
|
|
162
|
+
<p>--radius-md: calc(var(--radius) - 2px)</p>
|
|
163
|
+
<p>--radius-lg: var(--radius)</p>
|
|
164
|
+
<p>--radius-xl: calc(var(--radius) + 2px)</p>
|
|
165
|
+
<p>--radius-2xl: calc(var(--radius) + 4px)</p>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<div>
|
|
170
|
+
<h4 className="font-medium text-cs-text-primary mb-2">Tailwind Classes</h4>
|
|
171
|
+
<div className="bg-cs-surface-bg p-3 rounded-md text-xs font-mono text-cs-text-secondary">
|
|
172
|
+
<p>rounded-sm → var(--radius-sm)</p>
|
|
173
|
+
<p>rounded-md → var(--radius-md)</p>
|
|
174
|
+
<p>rounded-lg → var(--radius-lg)</p>
|
|
175
|
+
<p>rounded-xl → var(--radius-xl)</p>
|
|
176
|
+
<p>rounded-2xl → var(--radius-2xl)</p>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</Card>
|
|
181
|
+
</div>
|
|
182
|
+
);
|
|
183
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Card } from './card';
|
|
3
|
+
import { Button } from './button';
|
|
4
|
+
|
|
5
|
+
export const BorderRadiusShadowDemo= () => {
|
|
6
|
+
return (
|
|
7
|
+
<div className="space-y-6">
|
|
8
|
+
<div className="text-center">
|
|
9
|
+
<h2 className="text-2xl font-bold text-cs-text-primary mb-2">
|
|
10
|
+
Advanced Border Radius & Shadow System
|
|
11
|
+
</h2>
|
|
12
|
+
<p className="text-cs-text-secondary">
|
|
13
|
+
Sophisticated visual polish with calculated variants and multiple depth levels
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
{/* Border Radius System */}
|
|
18
|
+
<Card className="p-6">
|
|
19
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
20
|
+
Border Radius System
|
|
21
|
+
</h3>
|
|
22
|
+
<div className="grid grid-cols-1 md="space-y-2">
|
|
23
|
+
<div className="h-20 bg-cs-primary rounded-sm flex items-center justify-center text-white font-medium">
|
|
24
|
+
rounded-sm
|
|
25
|
+
</div>
|
|
26
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-sm (calc(var(--radius) - 4px))</p>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div className="space-y-2">
|
|
30
|
+
<div className="h-20 bg-cs-primary rounded-md flex items-center justify-center text-white font-medium">
|
|
31
|
+
rounded-md
|
|
32
|
+
</div>
|
|
33
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-md (calc(var(--radius) - 2px))</p>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="space-y-2">
|
|
37
|
+
<div className="h-20 bg-cs-primary rounded-lg flex items-center justify-center text-white font-medium">
|
|
38
|
+
rounded-lg
|
|
39
|
+
</div>
|
|
40
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-lg (var(--radius))</p>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div className="space-y-2">
|
|
44
|
+
<div className="h-20 bg-cs-primary rounded-xl flex items-center justify-center text-white font-medium">
|
|
45
|
+
rounded-xl
|
|
46
|
+
</div>
|
|
47
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-xl (calc(var(--radius) + 2px))</p>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div className="space-y-2">
|
|
51
|
+
<div className="h-20 bg-cs-primary rounded-2xl flex items-center justify-center text-white font-medium">
|
|
52
|
+
rounded-2xl
|
|
53
|
+
</div>
|
|
54
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-2xl (calc(var(--radius) + 4px))</p>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div className="space-y-2">
|
|
58
|
+
<div className="h-20 bg-cs-primary rounded-full flex items-center justify-center text-white font-medium">
|
|
59
|
+
rounded-full
|
|
60
|
+
</div>
|
|
61
|
+
<p className="text-xs text-cs-text-muted text-center">Native Tailwind (50%)</p>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</Card>
|
|
65
|
+
|
|
66
|
+
{/* Shadow System */}
|
|
67
|
+
<Card className="p-6">
|
|
68
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
69
|
+
Shadow System
|
|
70
|
+
</h3>
|
|
71
|
+
<div className="grid grid-cols-1 md="space-y-2">
|
|
72
|
+
<div className="h-20 bg-white rounded-lg shadow-sm flex items-center justify-center text-cs-text-primary font-medium border">
|
|
73
|
+
shadow-sm
|
|
74
|
+
</div>
|
|
75
|
+
<p className="text-xs text-cs-text-muted text-center">Subtle elevation</p>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div className="space-y-2">
|
|
79
|
+
<div className="h-20 bg-white rounded-lg shadow flex items-center justify-center text-cs-text-primary font-medium border">
|
|
80
|
+
shadow
|
|
81
|
+
</div>
|
|
82
|
+
<p className="text-xs text-cs-text-muted text-center">Default shadow</p>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div className="space-y-2">
|
|
86
|
+
<div className="h-20 bg-white rounded-lg shadow-md flex items-center justify-center text-cs-text-primary font-medium border">
|
|
87
|
+
shadow-md
|
|
88
|
+
</div>
|
|
89
|
+
<p className="text-xs text-cs-text-muted text-center">Medium elevation</p>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div className="space-y-2">
|
|
93
|
+
<div className="h-20 bg-white rounded-lg shadow-lg flex items-center justify-center text-cs-text-primary font-medium border">
|
|
94
|
+
shadow-lg
|
|
95
|
+
</div>
|
|
96
|
+
<p className="text-xs text-cs-text-muted text-center">Large elevation</p>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div className="space-y-2">
|
|
100
|
+
<div className="h-20 bg-white rounded-lg shadow-xl flex items-center justify-center text-cs-text-primary font-medium border">
|
|
101
|
+
shadow-xl
|
|
102
|
+
</div>
|
|
103
|
+
<p className="text-xs text-cs-text-muted text-center">Extra large elevation</p>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div className="space-y-2">
|
|
107
|
+
<div className="h-20 bg-white rounded-lg shadow-2xl flex items-center justify-center text-cs-text-primary font-medium border">
|
|
108
|
+
shadow-2xl
|
|
109
|
+
</div>
|
|
110
|
+
<p className="text-xs text-cs-text-muted text-center">Maximum elevation</p>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</Card>
|
|
114
|
+
|
|
115
|
+
{/* Component Integration */}
|
|
116
|
+
<Card className="p-6">
|
|
117
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
118
|
+
Component Integration
|
|
119
|
+
</h3>
|
|
120
|
+
<div className="space-y-4">
|
|
121
|
+
<div className="grid grid-cols-1 md="default" className="w-full">
|
|
122
|
+
Default Button
|
|
123
|
+
</Button>
|
|
124
|
+
<Button variant="outline" className="w-full">
|
|
125
|
+
Outline Button
|
|
126
|
+
</Button>
|
|
127
|
+
<Button variant="secondary" className="w-full">
|
|
128
|
+
Secondary Button
|
|
129
|
+
</Button>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div className="grid grid-cols-1 md="space-y-2">
|
|
133
|
+
<label className="text-sm font-medium text-cs-text-secondary">Input Field</label>
|
|
134
|
+
<input
|
|
135
|
+
type="text"
|
|
136
|
+
placeholder="Type something..."
|
|
137
|
+
className="w-full h-11 rounded-md border border-cs-border bg-cs-surface-bg px-3 py-2 text-cs-text-primary focus="space-y-2">
|
|
138
|
+
<label className="text-sm font-medium text-cs-text-secondary">Card Example</label>
|
|
139
|
+
<div className="p-4 rounded-lg border border-cs-border bg-cs-surface-bg shadow-sm">
|
|
140
|
+
<p className="text-sm text-cs-text-secondary">This card uses rounded-lg and shadow-sm</p>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</Card>
|
|
146
|
+
|
|
147
|
+
{/* Technical Details */}
|
|
148
|
+
<Card className="p-6">
|
|
149
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
150
|
+
Technical Implementation
|
|
151
|
+
</h3>
|
|
152
|
+
<div className="grid grid-cols-1 md="font-medium text-cs-text-primary mb-2">CSS Custom Properties</h4>
|
|
153
|
+
<div className="bg-cs-surface-bg p-3 rounded-md text-xs font-mono text-cs-text-secondary overflow-auto">
|
|
154
|
+
<p>--radius) - 4px)</p>
|
|
155
|
+
<p>--radius-md) - 2px)</p>
|
|
156
|
+
<p>--radius-lg)</p>
|
|
157
|
+
<p>--radius-xl) + 2px)</p>
|
|
158
|
+
<p>--radius-2xl) + 4px)</p>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div>
|
|
163
|
+
<h4 className="font-medium text-cs-text-primary mb-2">Tailwind Classes</h4>
|
|
164
|
+
<div className="bg-cs-surface-bg p-3 rounded-md text-xs font-mono text-cs-text-secondary">
|
|
165
|
+
<p>rounded-sm → var(--radius-sm)</p>
|
|
166
|
+
<p>rounded-md → var(--radius-md)</p>
|
|
167
|
+
<p>rounded-lg → var(--radius-lg)</p>
|
|
168
|
+
<p>rounded-xl → var(--radius-xl)</p>
|
|
169
|
+
<p>rounded-2xl → var(--radius-2xl)</p>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</Card>
|
|
174
|
+
</div>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Card } from './card';
|
|
3
|
+
import { Button } from './button';
|
|
4
|
+
|
|
5
|
+
export const BorderRadiusShadowDemo= () => {
|
|
6
|
+
return (
|
|
7
|
+
<div className="space-y-6">
|
|
8
|
+
<div className="text-center">
|
|
9
|
+
<h2 className="text-2xl font-bold text-cs-text-primary mb-2">
|
|
10
|
+
Advanced Border Radius & Shadow System
|
|
11
|
+
</h2>
|
|
12
|
+
<p className="text-cs-text-secondary">
|
|
13
|
+
Sophisticated visual polish with calculated variants and multiple depth levels
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
{/* Border Radius System */}
|
|
18
|
+
<Card className="p-6">
|
|
19
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
20
|
+
Border Radius System
|
|
21
|
+
</h3>
|
|
22
|
+
<div className="grid grid-cols-1 md="space-y-2">
|
|
23
|
+
<div className="h-20 bg-cs-primary rounded-sm flex items-center justify-center text-white font-medium">
|
|
24
|
+
rounded-sm
|
|
25
|
+
</div>
|
|
26
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-sm (calc(var(--radius) - 4px))</p>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div className="space-y-2">
|
|
30
|
+
<div className="h-20 bg-cs-primary rounded-md flex items-center justify-center text-white font-medium">
|
|
31
|
+
rounded-md
|
|
32
|
+
</div>
|
|
33
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-md (calc(var(--radius) - 2px))</p>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="space-y-2">
|
|
37
|
+
<div className="h-20 bg-cs-primary rounded-lg flex items-center justify-center text-white font-medium">
|
|
38
|
+
rounded-lg
|
|
39
|
+
</div>
|
|
40
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-lg (var(--radius))</p>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div className="space-y-2">
|
|
44
|
+
<div className="h-20 bg-cs-primary rounded-xl flex items-center justify-center text-white font-medium">
|
|
45
|
+
rounded-xl
|
|
46
|
+
</div>
|
|
47
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-xl (calc(var(--radius) + 2px))</p>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div className="space-y-2">
|
|
51
|
+
<div className="h-20 bg-cs-primary rounded-2xl flex items-center justify-center text-white font-medium">
|
|
52
|
+
rounded-2xl
|
|
53
|
+
</div>
|
|
54
|
+
<p className="text-xs text-cs-text-muted text-center">--radius-2xl (calc(var(--radius) + 4px))</p>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div className="space-y-2">
|
|
58
|
+
<div className="h-20 bg-cs-primary rounded-full flex items-center justify-center text-white font-medium">
|
|
59
|
+
rounded-full
|
|
60
|
+
</div>
|
|
61
|
+
<p className="text-xs text-cs-text-muted text-center">Native Tailwind (50%)</p>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</Card>
|
|
65
|
+
|
|
66
|
+
{/* Shadow System */}
|
|
67
|
+
<Card className="p-6">
|
|
68
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
69
|
+
Shadow System
|
|
70
|
+
</h3>
|
|
71
|
+
<div className="grid grid-cols-1 md="space-y-2">
|
|
72
|
+
<div className="h-20 bg-white rounded-lg shadow-sm flex items-center justify-center text-cs-text-primary font-medium border">
|
|
73
|
+
shadow-sm
|
|
74
|
+
</div>
|
|
75
|
+
<p className="text-xs text-cs-text-muted text-center">Subtle elevation</p>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div className="space-y-2">
|
|
79
|
+
<div className="h-20 bg-white rounded-lg shadow flex items-center justify-center text-cs-text-primary font-medium border">
|
|
80
|
+
shadow
|
|
81
|
+
</div>
|
|
82
|
+
<p className="text-xs text-cs-text-muted text-center">Default shadow</p>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div className="space-y-2">
|
|
86
|
+
<div className="h-20 bg-white rounded-lg shadow-md flex items-center justify-center text-cs-text-primary font-medium border">
|
|
87
|
+
shadow-md
|
|
88
|
+
</div>
|
|
89
|
+
<p className="text-xs text-cs-text-muted text-center">Medium elevation</p>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div className="space-y-2">
|
|
93
|
+
<div className="h-20 bg-white rounded-lg shadow-lg flex items-center justify-center text-cs-text-primary font-medium border">
|
|
94
|
+
shadow-lg
|
|
95
|
+
</div>
|
|
96
|
+
<p className="text-xs text-cs-text-muted text-center">Large elevation</p>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div className="space-y-2">
|
|
100
|
+
<div className="h-20 bg-white rounded-lg shadow-xl flex items-center justify-center text-cs-text-primary font-medium border">
|
|
101
|
+
shadow-xl
|
|
102
|
+
</div>
|
|
103
|
+
<p className="text-xs text-cs-text-muted text-center">Extra large elevation</p>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div className="space-y-2">
|
|
107
|
+
<div className="h-20 bg-white rounded-lg shadow-2xl flex items-center justify-center text-cs-text-primary font-medium border">
|
|
108
|
+
shadow-2xl
|
|
109
|
+
</div>
|
|
110
|
+
<p className="text-xs text-cs-text-muted text-center">Maximum elevation</p>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</Card>
|
|
114
|
+
|
|
115
|
+
{/* Component Integration */}
|
|
116
|
+
<Card className="p-6">
|
|
117
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
118
|
+
Component Integration
|
|
119
|
+
</h3>
|
|
120
|
+
<div className="space-y-4">
|
|
121
|
+
<div className="grid grid-cols-1 md="default" className="w-full">
|
|
122
|
+
Default Button
|
|
123
|
+
</Button>
|
|
124
|
+
<Button variant="outline" className="w-full">
|
|
125
|
+
Outline Button
|
|
126
|
+
</Button>
|
|
127
|
+
<Button variant="secondary" className="w-full">
|
|
128
|
+
Secondary Button
|
|
129
|
+
</Button>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div className="grid grid-cols-1 md="space-y-2">
|
|
133
|
+
<label className="text-sm font-medium text-cs-text-secondary">Input Field</label>
|
|
134
|
+
<input
|
|
135
|
+
type="text"
|
|
136
|
+
placeholder="Type something..."
|
|
137
|
+
className="w-full h-11 rounded-md border border-cs-border bg-cs-surface-bg px-3 py-2 text-cs-text-primary focus="space-y-2">
|
|
138
|
+
<label className="text-sm font-medium text-cs-text-secondary">Card Example</label>
|
|
139
|
+
<div className="p-4 rounded-lg border border-cs-border bg-cs-surface-bg shadow-sm">
|
|
140
|
+
<p className="text-sm text-cs-text-secondary">This card uses rounded-lg and shadow-sm</p>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</Card>
|
|
146
|
+
|
|
147
|
+
{/* Technical Details */}
|
|
148
|
+
<Card className="p-6">
|
|
149
|
+
<h3 className="text-lg font-semibold text-cs-text-primary mb-4">
|
|
150
|
+
Technical Implementation
|
|
151
|
+
</h3>
|
|
152
|
+
<div className="grid grid-cols-1 md="font-medium text-cs-text-primary mb-2">CSS Custom Properties</h4>
|
|
153
|
+
<div className="bg-cs-surface-bg p-3 rounded-md text-xs font-mono text-cs-text-secondary overflow-auto">
|
|
154
|
+
<p>--radius) - 4px)</p>
|
|
155
|
+
<p>--radius-md) - 2px)</p>
|
|
156
|
+
<p>--radius-lg)</p>
|
|
157
|
+
<p>--radius-xl) + 2px)</p>
|
|
158
|
+
<p>--radius-2xl) + 4px)</p>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
<div>
|
|
163
|
+
<h4 className="font-medium text-cs-text-primary mb-2">Tailwind Classes</h4>
|
|
164
|
+
<div className="bg-cs-surface-bg p-3 rounded-md text-xs font-mono text-cs-text-secondary">
|
|
165
|
+
<p>rounded-sm → var(--radius-sm)</p>
|
|
166
|
+
<p>rounded-md → var(--radius-md)</p>
|
|
167
|
+
<p>rounded-lg → var(--radius-lg)</p>
|
|
168
|
+
<p>rounded-xl → var(--radius-xl)</p>
|
|
169
|
+
<p>rounded-2xl → var(--radius-2xl)</p>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</Card>
|
|
174
|
+
</div>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface ButtonProps
|
|
2
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'
|
|
4
|
+
size?: 'default' | 'sm' | 'lg' | 'icon' | 'mobile'
|
|
5
|
+
asChild?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
9
|
+
({ className, variant = 'default', size = 'default', asChild = false, ...props }, ref) => {
|
|
10
|
+
const Comp = asChild ? Slot : "button"
|
|
11
|
+
|
|
12
|
+
// Build semantic CSS classes using BEM methodology
|
|
13
|
+
const baseClass = 'button'
|
|
14
|
+
const variantClass = `button--variant-${variant}`
|
|
15
|
+
const sizeClass = `button--size-${size}`
|
|
16
|
+
|
|
17
|
+
// Combine classes
|
|
18
|
+
const buttonClasses = [baseClass, variantClass, sizeClass, className]
|
|
19
|
+
.filter(Boolean)
|
|
20
|
+
.join(' ')
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<Comp
|
|
24
|
+
className={buttonClasses}
|
|
25
|
+
ref={ref}
|
|
26
|
+
{...props}
|
|
27
|
+
/>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
Button.displayName = "Button"
|
|
32
|
+
|
|
33
|
+
export { Button }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot"
|
|
3
|
+
|
|
4
|
+
export interface ButtonProps
|
|
5
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
variant?}
|
|
7
|
+
|
|
8
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
9
|
+
({ className, variant = 'default', size = 'default', asChild = false, ...props }, ref) => {
|
|
10
|
+
const Comp = asChild ? Slot = 'button'
|
|
11
|
+
const variantClass = `button--variant-${variant}`
|
|
12
|
+
const sizeClass = `button--size-${size}`
|
|
13
|
+
|
|
14
|
+
// Combine classes
|
|
15
|
+
const buttonClasses = [baseClass, variantClass, sizeClass, className]
|
|
16
|
+
.filter(Boolean)
|
|
17
|
+
.join(' ')
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Comp
|
|
21
|
+
className={buttonClasses}
|
|
22
|
+
ref={ref}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
Button.displayName = "Button"
|
|
29
|
+
|
|
30
|
+
export { Button }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot"
|
|
3
|
+
|
|
4
|
+
export interface ButtonProps
|
|
5
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
variant?}
|
|
7
|
+
|
|
8
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
9
|
+
({ className, variant = 'default', size = 'default', asChild = false, ...props }, ref) => {
|
|
10
|
+
const Comp = asChild ? Slot = 'button'
|
|
11
|
+
const variantClass = `button--variant-${variant}`
|
|
12
|
+
const sizeClass = `button--size-${size}`
|
|
13
|
+
|
|
14
|
+
// Combine classes
|
|
15
|
+
const buttonClasses = [baseClass, variantClass, sizeClass, className]
|
|
16
|
+
.filter(Boolean)
|
|
17
|
+
.join(' ')
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Comp
|
|
21
|
+
className={buttonClasses}
|
|
22
|
+
ref={ref}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
Button.displayName = "Button"
|
|
29
|
+
|
|
30
|
+
export { Button }
|