Migrate site controls to Nebula design system
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
e3d0925eb1
commit
817e21567b
127 changed files with 5380 additions and 2363 deletions
|
|
@ -34,7 +34,9 @@ export function ToolboxCard({ toolbox, game, actions, reorder }) {
|
|||
return (
|
||||
<article className={className} {...reorder.getItemProps({ itemId: toolbox.id })}>
|
||||
<button
|
||||
className="toolbox-card-drag-handle"
|
||||
className="toolbox-card-drag-handle nds-icon-button"
|
||||
data-size="md"
|
||||
data-variant="ghost"
|
||||
type="button"
|
||||
onPointerDown={(event) => reorder.itemReorder.startDrag(event, toolbox.id)}
|
||||
aria-label={`Déplacer ${toolbox.name}`}
|
||||
|
|
@ -56,9 +58,9 @@ export function ToolboxCard({ toolbox, game, actions, reorder }) {
|
|||
<h2>{toolbox.name}</h2>
|
||||
<small>Modifiée le {formatDate(toolbox.updatedAt)}</small>
|
||||
<div className="card-actions">
|
||||
<a className="button card-icon-button" href={`#/toolbox/${toolbox.id}`} aria-label={`Ouvrir ${toolbox.name}`} title="Ouvrir"><Icon name="open" /></a>
|
||||
<button className="card-icon-button" onClick={() => actions.exportToolbox(toolbox.id)} aria-label={`Exporter ${toolbox.name}`} title="Exporter"><Icon name="export" /></button>
|
||||
<button className="card-icon-button danger" onClick={() => actions.setConfirmModal({
|
||||
<a className="card-icon-button nds-icon-button" data-size="md" href={`#/toolbox/${toolbox.id}`} aria-label={`Ouvrir ${toolbox.name}`} title="Ouvrir"><Icon name="open" /></a>
|
||||
<button className="card-icon-button nds-icon-button" data-size="md" onClick={() => actions.exportToolbox(toolbox.id)} aria-label={`Exporter ${toolbox.name}`} title="Exporter"><Icon name="export" /></button>
|
||||
<button className="card-icon-button nds-icon-button" data-size="md" data-variant="danger" onClick={() => actions.setConfirmModal({
|
||||
title: "Supprimer la toolbox",
|
||||
message: `Supprimer "${toolbox.name}" et ses données locales ?`,
|
||||
confirmLabel: "Supprimer",
|
||||
|
|
@ -81,11 +83,12 @@ export function ToolboxIconPicker({ toolbox, onChange, tutorialTarget = "" }) {
|
|||
label="Icônes de toolbox"
|
||||
renderTrigger={({ open, toggle }) => (
|
||||
<button
|
||||
className="toolbox-icon-picker-button"
|
||||
className={`toolbox-icon-picker-button nds-large-icon-picker-trigger ${open ? "active" : ""}`}
|
||||
type="button"
|
||||
onClick={toggle}
|
||||
aria-label="Changer l'icône de la toolbox"
|
||||
aria-expanded={open}
|
||||
aria-pressed={open}
|
||||
data-toolbox-tutorial-target={tutorialTarget || undefined}
|
||||
title="Changer l'icône"
|
||||
>
|
||||
|
|
@ -98,7 +101,8 @@ export function ToolboxIconPicker({ toolbox, onChange, tutorialTarget = "" }) {
|
|||
{TOOLBOX_ICONS.map((path) => (
|
||||
<button
|
||||
key={path}
|
||||
className={path === icon ? "active" : ""}
|
||||
className={`nds-icon-button ${path === icon ? "active" : ""}`}
|
||||
data-size="md"
|
||||
type="button"
|
||||
onClick={() => {
|
||||
onChange(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue