Add comprehensive library expansion with new components and demos

- Add new libraries: ui-accessibility, ui-animations, ui-backgrounds, ui-code-display, ui-data-utils, ui-font-manager, hcl-studio
- Add extensive layout components: gallery-grid, infinite-scroll-container, kanban-board, masonry, split-view, sticky-layout
- Add comprehensive demo components for all new features
- Update project configuration and dependencies
- Expand component exports and routing structure
- Add UI landing pages planning document

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
skyai_dev
2025-09-05 05:37:37 +10:00
parent 876eb301a0
commit 5346d6d0c9
5476 changed files with 350855 additions and 10 deletions

View File

@@ -0,0 +1,113 @@
// Animation keyframes for ui-backgrounds library
// Basic gradient animation
@keyframes ui-background-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
// Mesh gradient animation
@keyframes ui-mesh-animation {
0%, 100% {
background-position: 0% 0%;
}
25% {
background-position: 100% 0%;
}
50% {
background-position: 100% 100%;
}
75% {
background-position: 0% 100%;
}
}
// Floating animation for patterns
@keyframes ui-pattern-float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
}
// Rotation animation
@keyframes ui-background-rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
// Scale animation
@keyframes ui-background-scale {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
// Pulse animation
@keyframes ui-background-pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
// Color shifting animation
@keyframes ui-background-hue-shift {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
// Blur animation for glass effects
@keyframes ui-background-blur-pulse {
0%, 100% {
backdrop-filter: blur(10px);
}
50% {
backdrop-filter: blur(20px);
}
}
// Slide animation
@keyframes ui-background-slide {
0% {
background-position: -100% 0;
}
100% {
background-position: 100% 0;
}
}
// Wave animation
@keyframes ui-background-wave {
0%, 100% {
background-position: 0% 50%;
}
25% {
background-position: 50% 0%;
}
75% {
background-position: 50% 100%;
}
}

View File

@@ -0,0 +1,180 @@
// Base styles for ui-backgrounds library
// Import animations
@import 'animations';
// Base background component styles
.ui-background {
position: relative;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
// Ensure proper layering
z-index: 0;
&--fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
}
// Type-specific styles
.ui-background--solid {
background-image: none;
}
.ui-background--gradient {
// Base gradient styles
&.ui-background--linear-gradient {
background-size: 200% 200%;
}
&.ui-background--radial-gradient {
background-size: 200% 200%;
}
&.ui-background--conic-gradient {
background-size: 200% 200%;
}
}
.ui-background--pattern {
background-repeat: repeat;
&.ui-background--pattern-dots {
// Dots pattern specific styles
}
&.ui-background--pattern-grid {
// Grid pattern specific styles
}
&.ui-background--pattern-stripes {
// Stripes pattern specific styles
}
&.ui-background--pattern-diagonal-stripes {
// Diagonal stripes pattern specific styles
}
&.ui-background--pattern-chevron {
// Chevron pattern specific styles
}
&.ui-background--pattern-waves {
background-repeat: repeat-x;
}
&.ui-background--pattern-hexagon {
// Hexagon pattern specific styles
}
&.ui-background--pattern-triangles {
// Triangles pattern specific styles
}
&.ui-background--pattern-checkerboard {
// Checkerboard pattern specific styles
}
&.ui-background--pattern-circles {
// Circles pattern specific styles
}
&.ui-background--pattern-crosshatch {
// Crosshatch pattern specific styles
}
&.ui-background--pattern-polka-dots {
// Polka dots pattern specific styles
}
}
.ui-background--image {
// Image background specific styles
}
.ui-background--animated {
// Base animation styles
background-size: 200% 200%;
// Apply default animation
animation: ui-background-animation 5s ease-in-out infinite;
// Respect reduced motion preferences
@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
.ui-background--mesh {
background-size: 400% 400%;
animation: ui-mesh-animation 15s ease infinite;
@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
.ui-background--noise {
// Noise background specific styles
}
.ui-background--glass {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); // Safari support
// Fallback for browsers that don't support backdrop-filter
@supports not (backdrop-filter: blur()) {
background-color: rgba(255, 255, 255, 0.8);
}
}
// Responsive behavior
@media (max-width: 768px) {
.ui-background--animated,
.ui-background--mesh {
// Disable complex animations on mobile for performance
@media (prefers-reduced-motion: no-preference) {
animation-duration: 10s; // Slower animations
}
}
}
// High contrast mode support
@media (prefers-contrast: high) {
.ui-background {
filter: contrast(1.2);
}
.ui-background--glass {
backdrop-filter: none;
background-color: rgba(255, 255, 255, 0.95);
}
}
// Print styles
@media print {
.ui-background {
background: none !important;
backdrop-filter: none !important;
animation: none !important;
}
.ui-background--fullscreen {
display: none !important;
}
}
// Dark mode considerations
@media (prefers-color-scheme: dark) {
.ui-background--glass {
background-color: rgba(0, 0, 0, 0.3);
}
}

View File

@@ -0,0 +1,140 @@
// Background Mixins for ui-backgrounds library
// Base background mixin
@mixin ui-background-base() {
position: relative;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
// Full screen background mixin
@mixin ui-background-fullscreen($z-index: -1) {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: $z-index;
}
// Solid color background
@mixin ui-background-solid($color) {
background-color: $color;
background-image: none;
}
// Linear gradient background
@mixin ui-background-linear-gradient($direction: 'to bottom', $colors...) {
background: linear-gradient(#{$direction}, $colors);
}
// Radial gradient background
@mixin ui-background-radial-gradient($shape: 'ellipse', $size: 'farthest-corner', $position: 'center', $colors...) {
background: radial-gradient(#{$shape} #{$size} at #{$position}, $colors);
}
// Conic gradient background
@mixin ui-background-conic-gradient($angle: 0deg, $position: 'center', $colors...) {
background: conic-gradient(from #{$angle} at #{$position}, $colors);
}
// Pattern backgrounds
@mixin ui-pattern-dots($primary: #000, $secondary: transparent, $size: 20px) {
background-image: radial-gradient(circle, #{$primary} 20%, #{$secondary} 20%);
background-size: $size $size;
background-repeat: repeat;
}
@mixin ui-pattern-grid($color: #000, $size: 20px, $line-width: 1px) {
background-image:
linear-gradient(#{$color} #{$line-width}, transparent #{$line-width}),
linear-gradient(90deg, #{$color} #{$line-width}, transparent #{$line-width});
background-size: $size $size;
background-repeat: repeat;
}
@mixin ui-pattern-stripes($primary: #000, $secondary: transparent, $size: 20px) {
background-image: linear-gradient(45deg, #{$primary} 25%, #{$secondary} 25%, #{$secondary} 50%, #{$primary} 50%, #{$primary} 75%, #{$secondary} 75%);
background-size: $size $size;
background-repeat: repeat;
}
@mixin ui-pattern-diagonal-stripes($primary: #000, $secondary: transparent, $size: 20px) {
background-image: linear-gradient(-45deg, #{$primary} 25%, #{$secondary} 25%, #{$secondary} 50%, #{$primary} 50%, #{$primary} 75%, #{$secondary} 75%);
background-size: $size $size;
background-repeat: repeat;
}
@mixin ui-pattern-chevron($primary: #000, $secondary: transparent, $size: 20px) {
background-image:
linear-gradient(45deg, #{$primary} 25%, #{$secondary} 25%),
linear-gradient(-45deg, #{$primary} 25%, #{$secondary} 25%);
background-size: $size $size;
background-repeat: repeat;
background-position: 0 0, 0 ($size / 2);
}
@mixin ui-pattern-waves($primary: #000, $secondary: transparent, $size: 40px) {
background-image: radial-gradient(circle at 50% 100%, #{$secondary} 40%, #{$primary} 40%, #{$primary} 60%, #{$secondary} 60%);
background-size: $size ($size / 2);
background-repeat: repeat-x;
}
@mixin ui-pattern-checkerboard($primary: #000, $secondary: #fff, $size: 20px) {
background-image:
linear-gradient(45deg, #{$primary} 25%, transparent 25%, transparent 75%, #{$primary} 75%),
linear-gradient(45deg, #{$primary} 25%, transparent 25%, transparent 75%, #{$primary} 75%);
background-color: $secondary;
background-size: $size $size;
background-position: 0 0, ($size / 2) ($size / 2);
background-repeat: repeat;
}
// Animated backgrounds
@mixin ui-background-animated($duration: 5s, $timing: ease-in-out, $iteration: infinite) {
animation: ui-background-animation $duration $timing $iteration;
}
@mixin ui-background-mesh-animated($duration: 15s) {
background-size: 400% 400%;
animation: ui-mesh-animation $duration ease infinite;
}
// Glass/blur backgrounds
@mixin ui-background-glass($blur: 10px, $tint: rgba(255, 255, 255, 0.1), $opacity: 0.8) {
background: $tint;
backdrop-filter: blur($blur);
opacity: $opacity;
}
// Responsive background utilities
@mixin ui-background-responsive($mobile-bg, $tablet-bg: null, $desktop-bg: null) {
background: $mobile-bg;
@if $tablet-bg {
@media (min-width: 768px) {
background: $tablet-bg;
}
}
@if $desktop-bg {
@media (min-width: 1024px) {
background: $desktop-bg;
}
}
}
// Accessibility utilities
@mixin ui-background-high-contrast() {
@media (prefers-contrast: high) {
filter: contrast(1.5);
}
}
@mixin ui-background-reduced-motion() {
@media (prefers-reduced-motion: reduce) {
animation: none !important;
}
}

View File

@@ -0,0 +1,9 @@
// Main entry point for ui-backgrounds styles
// Import base components
@import 'mixins';
@import 'animations';
@import 'base';
// Export mixins for external use
// Users can import this file to get access to all background mixins and styles