@vokality/design-system 1.3.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/brand.md CHANGED
@@ -98,7 +98,7 @@ The test suite checks these pairs in every theme and fails the build if one slip
98
98
 
99
99
  ## Space and layout
100
100
 
101
- - Dense operational apps can opt in with `data-density="compact"` on `<html>`. The shared compact scale is 20px page titles, 16px section titles, 14px body and controls, 12px metadata and 24px statistics. Headers add no trailing section margin; compose vertical rhythm with `Stack`. Actions align with the page title. Controls share a 32px height for fine pointers and retain 44px when a coarse pointer is available. The default scale is unchanged.
101
+ - Dense operational apps can opt in with `data-density="compact"` on `<html>`. The shared compact scale is 20px page titles, 16px section titles, 14px body and fine-pointer controls (16px input text with a coarse pointer, which stops iOS focus zoom), 24px statistics; smaller text (metadata, captions) keeps its size. Table cells, list and navigation rows, menus and cards tighten too. Headers add no trailing section margin; compose vertical rhythm with `Stack`. Actions align with the page title. Controls share a 32px height for fine pointers and retain 44px when a coarse pointer is available. The default scale is unchanged.
102
102
 
103
103
  - Apps: wrap the screen in `AppShell` (56px top bar, 15rem sidebar that collapses to icons and becomes an overlay below 48rem), put a `PageHeader` at the top of each page, and lay out content with `Stack`, `Inline` and `Grid`. Start new pages from the templates.
104
104
  - Sites and documents: set content in one frame, max-width 80rem (`--content-max`), outlined left, right and bottom by `border-subtle`, over a faint 10px dot grid (`.vk-dot-grid`) on marketing pages.
@@ -148,7 +148,7 @@ The test suite checks these pairs in every theme and fails the build if one slip
148
148
  ## Touch and pointer
149
149
 
150
150
  - Tooltips open on hover after 400ms, at once on keyboard focus, and on a tap for 1.5s. They hold only a hint: anything a touch user needs must also be visible or in the control's label.
151
- - Every target is at least 32px (`sm` buttons) and 44px for form controls. Context menus also open with the keyboard (Shift+F10 or the Menu key).
151
+ - Every target is at least 24px (WCAG 2.5.8); small controls such as tag remove buttons and sort headers extend their hit area without changing their look. With a coarse pointer, buttons, form controls, menu, navigation and tree rows, choices and pagination are 44px in every density. Context menus also open with the keyboard (Shift+F10 or the Menu key).
152
152
 
153
153
  ## Using the system in code
154
154
 
@@ -1,6 +1,6 @@
1
1
  # Badge
2
2
 
3
- `icon` adds a system status icon beside the label. Standard span attributes and a forwarded ref allow a badge to be a tooltip trigger: `<Tooltip content="Connected recently"><Badge tone="success" icon="circle-check" tabIndex={0}>Online</Badge></Tooltip>`. Focusable badges show the shared focus ring and provide a 32px target (44px with a coarse pointer); essential information must also remain visible.
3
+ `icon` adds a system status icon beside the label. Standard span attributes and a forwarded ref allow a badge to be a tooltip trigger: `<Tooltip content="Connected recently"><Badge tone="success" icon="circle-check" tabIndex={0}>Online</Badge></Tooltip>`. Focusable badges show the shared focus ring and provide a `--button-height-sm` target (32px, 44px with a coarse pointer); essential information must also remain visible.
4
4
 
5
5
  A small outlined tag for status, set beside a title or in a table cell.
6
6
 
@@ -40,6 +40,8 @@ The button for actions and record names, with square corners and a visible keybo
40
40
 
41
41
  ## Rules
42
42
  - One `primary` per view. Put it first in a row and last in a dialog footer.
43
- - Under 40rem, buttons stretch to the column width; `text` stays content-sized. Text buttons support multiline labels and keep a 32px minimum target, 44px with a coarse pointer.
44
- - With `data-density="compact"` on `html`, action labels use 12px and record names use 14px. Buttons align with inputs at 32px for fine pointers or 44px when a coarse pointer is available.
43
+ - Under 40rem, buttons stretch to the column width; `text` stays content-sized. Text buttons support multiline labels and keep a 32px minimum target.
44
+ - With `data-density="compact"` on `html`, record names use 14px and action labels keep their size (12px, 11px at `sm`). Compact redefines `--button-height` and `--button-height-sm` to the control height, so buttons of both sizes align with inputs at 32px for fine pointers or 44px when a coarse pointer is available.
45
+ - Beside a field in an `Inline` row, a button takes the field height (44px by default, 32px compact with a fine pointer).
46
+ - With a coarse pointer, every button and icon button is 44px in any density (`--button-height` and `--button-height-sm` follow `--control-height`).
45
47
  - Don't use a button for navigation inside running text; use `Link`.
@@ -1,6 +1,6 @@
1
1
  # Inline
2
2
 
3
- Standard element attributes and events pass through to `as`, including IDs, ARIA labels and form events. Use `<Inline as="form" onSubmit={...}>` for a search toolbar. `style` can size a flex item; visual controls remain system components.
3
+ Standard element attributes and events pass through to `as`, including IDs, ARIA labels and form events. Use `<Inline as="form" onSubmit={...}>` for a search toolbar. When a row contains a field, its buttons and icon buttons take the field height (`--control-height`), whatever their `size`, so they sit flush. `style` can size a flex item; visual controls remain system components.
4
4
 
5
5
  Lays children out in a row that wraps, with one gap. For button groups, tag lists, metadata rows and toolbars.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Text
2
2
 
3
- Use `numeric` for Space Grotesk with tabular figures, `wrap="anywhere"` for long IDs, and `weight="regular" | "medium" | "semibold" | "bold"` for emphasis independent of size. Standard element attributes pass through. For example: `<Text as="span" size="small" numeric wrap="anywhere">{record.id}</Text>`.
3
+ Use `numeric` for Space Grotesk with tabular figures, `overflowWrap="anywhere"` for long IDs, and `weight="regular" | "medium" | "semibold" | "bold"` for emphasis independent of size. Standard element attributes pass through. For example: `<Text as="span" size="small" numeric overflowWrap="anywhere">{record.id}</Text>`.
4
4
 
5
5
  Use `truncate` for a single line that ends in an ellipsis when its container narrows, such as the two lines of an app-shell brand. The full text remains available to assistive technology.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vokality/design-system",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "Vokality's design system: tokens, themes and React components for every Vokality project.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,