Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions docs/figma/Dropdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Dropdown: Figma notes (maintained by AI, do not edit by hand)

## Nodes

| What | ID |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| Page | `466:793` |
| Component set `Dropdown` (128 variants) | `466:795` |
| Doc frame | `466:2275` |
| Playground frame | `466:2432` |
| Sections: Documentation, Playground, Component, Internal | `466:2274`, `466:2431`, `466:794`, `468:881` |
| Component table labels / spec tables (groups) | in `466:794`: `table labels` `469:1096`, `spec tables` `466:2024` |
| Parts `_Dropdown/Item` (12 variants), `_Dropdown/Menu` (12) | `468:934`, `468:1195` |

## Properties

- Variants: `variant` (8) × `shape` (solid, textOnly) × `size` (xs, sm, md, lg; md default) × `disabled`.
- `label` (text) + `showLabel`; `showIcon` + `icon` (instance swap) before the label; `arrow` (instance swap on
`arrowIcon`, always shown): `Icon/arrow_drop_down`, or `_Dropdown/ArrowUp` (`475:1253`, the same glyph turned 180°)
while the menu is open. `pill` is a `sizing/radius/round` corner override on the instance.
- `_Dropdown/Item`: `kind` (item, header) × `disabled` × `size`; `label`, `showIcon` + `icon`, `showDivider` (off on the
first item).
- `_Dropdown/Menu`: `spacing` (callout, withGap, noSpace) × `size`; the MenuList holds four items (header, two items,
a disabled item).
- Table: column `size`; blocks `shape` × `disabled`; rows `variant` (primary first under solid, neutral first under
textOnly).

## Decisions

- The button is Button's box and colors (heights 24 · 32 · 40 · 48, `text-{size}` stronger, `sizing/icon/{size}`,
solid fills, neutral `color/neutral/soft`, textOnly `color/{variant}/text` with a `{variant}/soft` hover). The code
default variant is primary for solid and neutral for textOnly (#250).
- The menu: `color/surface/raised`, 1px `color/border/default`, radius `sizing/radius/md`, `elevation/2`; items like
Select's options (`color/text/stronger`, hover `color/neutral/soft`, a `color/border/soft` divider); header
`color/text/softer` strong; disabled `color/text/disabled`. callout: a caret 12px from the anchor's right edge.
- Hover, active, focus and open are in the Color spec (fills bound to the state tokens, the focus ring frame, the up
arrow). open keeps the default colors in every variant: only the arrow turns.
- Spec tables: Size spec (xs … lg × label, icon, icon without label), Color spec (variants × default · hover · active · focus · open · disabled per shape).
Scenarios: open menu by spacing, open menu by size, pill · textOnly.
- No Examples.
35 changes: 35 additions & 0 deletions docs/figma/Modal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Modal: Figma notes (maintained by AI, do not edit by hand)

## Nodes

| What | ID |
| ---------------------------------------------- | --------------------------------------- |
| Page | `465:2182` |
| Component `Modal` | `465:3118` |
| Doc frame | `465:2184` |
| Playground frame | `465:2249` |
| Sections: Documentation, Playground, Component | `465:2183`, `465:2248`, `465:2255` |
| Spec tables (group) | in `465:2255`: `spec tables` `465:3556` |

## Properties

- One component, no variants: Modal has no color variants and `size` only changes the width, so the instance width
binds to `sizing/320 · 480 · 720 · 960` (md 480 default).
- `title` and `subtitle` (text) with `showHeader` and `showSubtitle`; `children` (text, the content); `closable`
(the close IconButton xxl neutral, 16px from the top right); `showActions`, `showAction`, `showAlternate` (Button md
pill: action primary solid, alternate neutral outline).
- `noContentPadding` and custom `buttons` are instance overrides; `maximizable` is the instance size (the screen minus
`sizing/64`).

## Decisions

- Like AlertModal: `color/surface/raised`, radius `sizing/radius/lg`, `elevation/4`, backdrop `color/backdrop`.
- Header: padding and gap `sizing/space/16`, a 1px `color/border/soft` bottom border; title `heading-h4`
`color/text/strong`, subtitle `body-lg` `color/text/soft`. Content: padding `sizing/space/16`, min height
`sizing/64`, `color/text/default`. Actions: padding and gap `sizing/space/16`, right-aligned, a 1px
`color/border/soft` top border.
- Spec tables: Size spec (sm · md · lg · xl; size only changes the width). Every cell keeps 48px around the modal, so
the `elevation/4` shadows never overlap. Scenarios: Content (title · subtitle · actions,
closable, title only, no header, no actions, actionButton only) and Backdrop (Light · Dark). No Color spec: Modal has
no color variants; Light and Dark are on the doc page.
- No Examples.
4 changes: 2 additions & 2 deletions docs/figma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ what the rules do not: node IDs, per-component decisions and Plugin API pitfalls
read-only reference.
- Pages, alphabetical inside each group (docs/review/figma.md, Pages): Cover `0:1`, Getting Started `7:2`; Foundations:
Colors `7:4`, Elevation `7:8`, Radius `7:7`, Spacing & Sizing `7:6`, Typography `7:5`; Components: Accordion `349:22`, Alert `242:22`, AlertModal `137:22`,
Avatar `236:798`, Badge `230:439`, Breadcrumb `174:22`, Button `129:22`, ButtonGroup `353:22`, Checkbox `339:22`, Chip `239:22`, DataView `269:22`, Divider `169:22`, Form `434:22`, FormField `432:22`, FormFieldGroup `432:531`, Grid `438:522`, Icon `361:288`, IconButton `361:289`, ImageView `352:22`, InputNumber `391:22`, InputPassword `390:22`, InputText `389:22`, Link `171:958`, ListView `265:22`, Pagination `261:22`, Panel `372:22`,
PinCode `405:22`, Popover `381:22`, ProgressBar `176:810`, ProgressCircle `7:10`, Radio `375:22`, RadioGroup `378:22`, Select `7:11`, Skeleton `171:22`, Switch `344:22`, Textarea `403:22`, Timeline `272:22`, Tooltip `384:22`;
Avatar `236:798`, Badge `230:439`, Breadcrumb `174:22`, Button `129:22`, ButtonGroup `353:22`, Checkbox `339:22`, Chip `239:22`, DataView `269:22`, Divider `169:22`, Dropdown `466:793`, Form `434:22`, FormField `432:22`, FormFieldGroup `432:531`, Grid `438:522`, Icon `361:288`, IconButton `361:289`, ImageView `352:22`, InputNumber `391:22`, InputPassword `390:22`, InputText `389:22`, Link `171:958`, ListView `265:22`, Modal `465:2182`, Pagination `261:22`, Panel `372:22`,
PinCode `405:22`, Popover `381:22`, ProgressBar `176:810`, ProgressCircle `7:10`, Radio `375:22`, RadioGroup `378:22`, Select `7:11`, Skeleton `171:22`, Switch `344:22`, Textarea `403:22`, Timeline `272:22`, Toast `465:468`, Tooltip `384:22`;
Common Components (divider `386:22`): `_MotifInputText` `386:23`; Internal: `_Doc` `7:13`. The 40 embedded `Icon/<name>` glyph components live on the Icon page (Icons section).
- Doc blocks on `_Doc`: Header `11:2`, SectionTitle `11:14`, PropRow `11:29`, Note `11:30`, Label `11:33`,
Footer `11:35`, Logo `24:24`, Swatch `25:42`.
Expand Down
36 changes: 36 additions & 0 deletions docs/figma/Toast.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Toast: Figma notes (maintained by AI, do not edit by hand)

## Nodes

| What | ID |
| ---------------------------------------------- | ----------------------------------------------------- |
| Page | `465:468` |
| Component set `Toast` (8 variants) | `465:538` |
| Doc frame | `465:470` |
| Playground frame | `465:531` |
| Sections: Documentation, Playground, Component | `465:469`, `465:530`, `465:537` |
| Component table labels / spec tables (groups) | in `465:537`: `table labels`, `spec tables` `465:632` |

## Properties

- Variants: `variant` (8, default neutral).
- `title` (text) + `showTitle`; `content` (text, always shown: the code requires it); `showIcon` + `icon` (instance swap,
default `Icon/info`); `closable` (default true, like `useToast`); `showProgress` (default true: `useToast` gives a
3000 ms duration) shows the countdown bar, a ProgressBar `size=sm` of the same variant, absolute along the bottom.
- The toast is 256px wide (`sizing/256`); the code makes it 100vw - 72px below the sm breakpoint.
- Table: no column property; rows `variant`, neutral first.

## Decisions

- Fill `{variant}/soft` layered over `color/surface/raised` (the soft tones are translucent and a toast floats over the
page), radius `sizing/radius/md` on every corner, no edge; the icon `{variant}/solid`, the title `{variant}/text`
(`label-xl` Semi Bold), the content `color/text/strong` (`body-md`); `elevation/3`; padding `sizing/space/10`
`sizing/space/16`, gap `sizing/space/10`.
- Toasts in the set, the doc and the spec tables sit 40px apart (cells 32px around the toast), so the `elevation/3`
shadows never overlap.
- The icon and the close button are 24px and sit on the title's line through Alert's `iconSlot` / `closeSlot` with the
2px `titleOffset`.
- Spec tables: Color spec with the variants as rows and Light · Dark as columns. Scenarios: Content (title · content,
content only, icon unset, closable=false, duration unset). No Size spec: Toast has no sizes.
- The six positions, the slide animations and the pause on hover are on the doc page's "Not shown in Figma" note.
- No Examples.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`DateRangePicker should render with only required props, have default pr
class="selectionBar"
>
<button
class="Root md solid secondary rangeSelectDropdown"
class="Root md solid neutral rangeSelectDropdown"
data-testid="dropdown-button"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const DaysDropdown = () => {
[changeHandler, locale.days, locale.last, locale.today],
);

return <Dropdown size={size} items={items} variant="secondary" label={label} className={styles.rangeSelectDropdown} />;
return <Dropdown size={size} items={items} variant="neutral" label={label} className={styles.rangeSelectDropdown} />;
};

export default DaysDropdown;
Loading
Loading