dioxus-provider 0.2.1

Data fetching and caching library for Dioxus applications with intelligent caching strategies and global providers.
Documentation
/* Composable Provider Demo Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.user-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 120px;
}

.user-button.primary {
    background: linear-gradient(45deg, #007acc, #0056b3);
    color: white;
}

.user-button.danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.user-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section {
    margin: 40px 0;
    padding: 30px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fafbfc;
}

.section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

.loading {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1.1rem;
}

.success {
    border: 2px solid #28a745;
    background: #f8fff8;
    border-radius: 12px;
    padding: 25px;
}

.error {
    border: 2px solid #dc3545;
    background: #fff8f8;
    border-radius: 12px;
    padding: 25px;
}

.timing-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.feature-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.feature-list h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.feature-list ul {
    margin: 0;
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.highlight {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 40px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .user-selector {
        flex-direction: column;
        align-items: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 20px;
    }
}

/* Animation for loading states */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Status indicators */
.status-success::before {
    content: "";
    color: #28a745;
}

.status-error::before {
    content: "";
    color: #dc3545;
}

.status-loading::before {
    content: "";
    color: #007acc;
}

/* Color-coded sections */
.user-section {
    border-left: 4px solid #007acc;
}

.permissions-section {
    border-left: 4px solid #ffc107;
}

.settings-section {
    border-left: 4px solid #17a2b8;
}

.composition-section {
    border-left: 4px solid #6f42c1;
}