Polish Nebula design system controls before release
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
This commit is contained in:
parent
817e21567b
commit
07de342fc2
31 changed files with 79 additions and 58 deletions
|
|
@ -2,7 +2,6 @@
|
|||
import { useState } from "react";
|
||||
import { Icon } from "../components/Icon.jsx";
|
||||
import { MixTagsInput } from "../components/MixTagsInput.jsx";
|
||||
import { ToastPositionSwitch } from "../components/ToastPositionSwitch.jsx";
|
||||
|
||||
const SIZE_VALUES = {
|
||||
field: ["xs", "sm", "md"],
|
||||
|
|
@ -566,20 +565,18 @@ function DatePickerButtonsSection() {
|
|||
function SpecializedComponentsSection() {
|
||||
const [mixValue, setMixValue] = useState("base + bonus");
|
||||
const [smallMixValue, setSmallMixValue] = useState("base * 2");
|
||||
const [toastPosition, setToastPosition] = useState("right");
|
||||
|
||||
return (
|
||||
<ComponentSection id="specialized-components" title="Specialized Components" meta="not NDS public classes">
|
||||
<VariantMatrix
|
||||
title="Composants spécialisés conservés"
|
||||
note="Ces éléments restent spécialisés : ils ne créent pas de classe de famille NDS publique."
|
||||
columns={["MixTagsInput", "MixTagsInput small", "Toast switch"]}
|
||||
columns={["MixTagsInput", "MixTagsInput small"]}
|
||||
rows={[{
|
||||
label: "interactive",
|
||||
cells: [
|
||||
<ControlSample label="MixTagsInput"><MixTagsInput value={mixValue} onChange={setMixValue} tokens={MIX_TAG_TOKENS} insertToken={{ value: "base", icon: "add", title: "Insérer base" }} aria-label="MixTagsInput standard" /></ControlSample>,
|
||||
<ControlSample label="MixTagsInput size=small"><MixTagsInput size="small" value={smallMixValue} onChange={setSmallMixValue} tokens={MIX_TAG_TOKENS} insertToken={{ value: "bonus", icon: "add", title: "Insérer bonus" }} aria-label="MixTagsInput compact" /></ControlSample>,
|
||||
<ControlSample label="ToastPositionSwitch"><ToastPositionSwitch position={toastPosition} labels={{ left: "Notifications à gauche", right: "Notifications à droite", title: "Position des notifications" }} onChange={setToastPosition} /></ControlSample>
|
||||
<ControlSample label="MixTagsInput size=small"><MixTagsInput size="small" value={smallMixValue} onChange={setSmallMixValue} tokens={MIX_TAG_TOKENS} insertToken={{ value: "bonus", icon: "add", title: "Insérer bonus" }} aria-label="MixTagsInput compact" /></ControlSample>
|
||||
]
|
||||
}]}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue