Replace Flux UI with TallStackUI 4
Rewrite the layout and all Customers and Users pages with TallStackUI components and remove livewire/flux and its Boost skill. Fix the TallStackUI accessibility gaps found by the axe tests: - password reveal and theme switch have no accessible name: add <x-password-field> and keep the own theme toggle button - select.native label is not tied to the control: add aria-label - contrast: darker primary palette, soft-customized error colours and published alert/link colour classes; neutral buttons use subtle black - follow the system theme by default (localStorage key dark-theme) Load TallStackUI assets from the app URL so they work in the XAMPP subfolder, add Finnish TallStackUI strings, and drop inputmode=numeric from the business ID field so iOS keyboards show the hyphen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\TallStackUi\Colors;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
/**
|
||||
* TallStackUI alert colours, published from the package stub. Only the light
|
||||
* variant's text is changed: the defaults (text-*-600 on bg-*-50) are below the
|
||||
* 4.5:1 contrast WCAG 2.2 AA requires. Null keeps the package default.
|
||||
*/
|
||||
class AlertColors
|
||||
{
|
||||
/**
|
||||
* Background colors.
|
||||
*
|
||||
* @return array<string, array<string, string|null>>
|
||||
*/
|
||||
public function backgroundColors(Component $component): array
|
||||
{
|
||||
return [
|
||||
'solid' => [
|
||||
'black' => null,
|
||||
'primary' => null,
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
],
|
||||
'outline' => [
|
||||
'black' => null,
|
||||
'primary' => null,
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
],
|
||||
'light' => [
|
||||
'black' => null,
|
||||
'primary' => null,
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Text colors.
|
||||
*
|
||||
* @return array<string, array<string, string|null>>
|
||||
*/
|
||||
public function textColors(Component $component): array
|
||||
{
|
||||
return [
|
||||
'solid' => [
|
||||
'black' => null,
|
||||
'primary' => null,
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
],
|
||||
'outline' => [
|
||||
'black' => null,
|
||||
'primary' => null,
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
],
|
||||
'light' => [
|
||||
'black' => null,
|
||||
'primary' => 'text-primary-800',
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => 'text-red-800',
|
||||
'orange' => null,
|
||||
'amber' => 'text-amber-800',
|
||||
'yellow' => 'text-yellow-800',
|
||||
'lime' => null,
|
||||
'green' => 'text-green-800',
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Bordered side colors.
|
||||
*
|
||||
* @return array<string, string|null>
|
||||
*/
|
||||
public function borderedColors(Component $component): array
|
||||
{
|
||||
return [
|
||||
'black' => null,
|
||||
'primary' => null,
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\TallStackUi\Colors;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
/**
|
||||
* TallStackUI link colours, published from the package stub. The default
|
||||
* text-primary-500 has no dark variant and is below 4.5:1 on the dark
|
||||
* background. Null keeps the package default.
|
||||
*/
|
||||
class LinkColors
|
||||
{
|
||||
/**
|
||||
* Text colors.
|
||||
*
|
||||
* @return array<string, string|null>
|
||||
*/
|
||||
public function textColors(Component $component): array
|
||||
{
|
||||
return [
|
||||
'black' => null,
|
||||
'primary' => 'text-primary-600 dark:text-primary-300',
|
||||
'secondary' => null,
|
||||
'slate' => null,
|
||||
'gray' => null,
|
||||
'zinc' => null,
|
||||
'neutral' => null,
|
||||
'stone' => null,
|
||||
'red' => null,
|
||||
'orange' => null,
|
||||
'amber' => null,
|
||||
'yellow' => null,
|
||||
'lime' => null,
|
||||
'green' => null,
|
||||
'emerald' => null,
|
||||
'teal' => null,
|
||||
'cyan' => null,
|
||||
'sky' => null,
|
||||
'blue' => null,
|
||||
'indigo' => null,
|
||||
'violet' => null,
|
||||
'purple' => null,
|
||||
'fuchsia' => null,
|
||||
'pink' => null,
|
||||
'rose' => null,
|
||||
'mauve' => null,
|
||||
'olive' => null,
|
||||
'mist' => null,
|
||||
'taupe' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user