@carbonid1/design-system 5.10.1 → 5.10.2

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.
@@ -4,7 +4,7 @@ import { computeTooltipPlacement, } from '../helpers/tooltipPlacement/tooltipPla
4
4
  import { Kbd } from '../Kbd/Kbd';
5
5
  import { cloneElement, useCallback, useEffect, useLayoutEffect, useRef, useState, } from 'react';
6
6
  import { createPortal } from 'react-dom';
7
- const DEFAULT_DELAY = 200;
7
+ const DEFAULT_DELAY = 400;
8
8
  export const VIEWPORT_MARGIN = 8;
9
9
  // Gap in px between the trigger and the tooltip box, baked into the fixed `top`
10
10
  // offset below; the flip math subtracts it when deciding whether a side fits.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonid1/design-system",
3
- "version": "5.10.1",
3
+ "version": "5.10.2",
4
4
  "description": "Shared React UI primitives + design tokens (themes, postcss config)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@ If you're editing `@carbonid1/design-system` itself (adding a primitive, changin
39
39
  - All icons from `lucide-react` — search `lucide.dev/icons` before creating anything custom. If nothing fits, build via Lucide's `Icon` + `iconNode`, don't reach for another library.
40
40
  - All color through semantic tokens — no hardcoded Tailwind color classes. See [references/theming.md](references/theming.md).
41
41
  - **Missing a token or primitive? Surface it, don't invent one.** When the palette has no token — or the package no component — for what you're building, stop and ask the user, offering 2–3 concrete paths (extend the design system, compose what's already there, or a deliberately-scoped one-off). A silent one-off forks the system: these tokens exist so a single decision propagates everywhere, and a bespoke color or component quietly breaks that. Asking is cheap; an unnoticed fork is expensive to unwind later.
42
- - Tooltip: rely on defaults (`position="top"`, `delay={200}`). Only override when the default is wrong (e.g. header → `position="bottom"`, data-viz progressive disclosure → `delay={600}`). When a tooltip trigger also opens a popover, pass `disabled={open}`.
42
+ - Tooltip: rely on defaults (`position="top"`, `delay={400}`). Only override when the default is wrong (e.g. header → `position="bottom"`, data-viz progressive disclosure → `delay={600}`, a snappy reveal → a lower `delay`). When a tooltip trigger also opens a popover, pass `disabled={open}`.
43
43
  - Icon toggle state: `<Icon fill={active ? 'currentColor' : 'none'} />` — not two different components.
44
44
 
45
45
  ## Buttons & links