Add the Material 3 Expressive foundation
tests / lint (push) Successful in 1m0s
tests / feature (8.4) (push) Successful in 1m0s
tests / feature (8.5) (push) Successful in 1m1s
tests / browser (safari, webkit) (push) Successful in 1m59s
tests / browser (chrome, chromium) (push) Successful in 1m49s
tests / browser (firefox, firefox) (push) Successful in 1m54s

Colour, shape, type, elevation and motion as tokens and Tailwind
utilities; `php artisan material:scheme`, which generates an app's colour
roles with Google's material-color-utilities (spec 2025); the theme head
script with light, dark and system and its Alpine store; Google Sans Flex;
every Material Symbol (4,135, outlined and filled) drawn by <x-icon>
without blade-icons; all 35 M3 Expressive shapes, ported from androidx, as
<x-shape>; the x-figure directive; the Toasts concern; DesignGuard for
applications' tests; and a showcase with every token, both themes side by
side and an icon search.

Colour utilities are `@theme inline`, so a section with its own
data-theme repaints; without it they resolve once on :root.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
This commit is contained in:
Andreas Reinhold / reini
2026-09-13 05:24:11 +02:00
co-authored by Claude Opus 5
parent 9b53891a8e
commit b48e879254
8364 changed files with 12720 additions and 28 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
use Livewire\Exceptions\MethodNotFoundException;
use Livewire\Livewire;
use NoNameWeb\LivewireMaterial\Tests\Fixtures\ToastingComponent;
it('dispatches a toast for the snackbar', function () {
Livewire::test(ToastingComponent::class)
->call('save')
->assertDispatched('toast', type: 'success', title: 'Saved', description: 'Your settings are stored.', timeout: 4000);
});
it('passes a timeout through', function () {
Livewire::test(ToastingComponent::class)
->call('fail')
->assertDispatched('toast', type: 'error', title: 'Could not save', description: null, timeout: 8000);
});
it('keeps the toast across a redirect', function () {
Livewire::test(ToastingComponent::class)
->call('leave')
->assertDispatched('toast', type: 'info', title: 'Link copied')
->assertRedirect('/elsewhere');
});
it('is not an action the browser can call', function () {
expect(fn () => Livewire::test(ToastingComponent::class)->call('success', 'Forged'))
->toThrow(MethodNotFoundException::class);
});