@bison-lab/tokens 1.0.2 → 1.1.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.
Files changed (2) hide show
  1. package/css/base.css +45 -0
  2. package/package.json +1 -1
package/css/base.css CHANGED
@@ -38,4 +38,49 @@
38
38
  --z-popover: 500;
39
39
  --z-tooltip: 600;
40
40
  --z-toast: 700;
41
+
42
+ /* ── Overlay & component motion (source of truth: transitions.dev) ──────
43
+ * These drive every Radix overlay's enter/exit via the bison-*-in/out
44
+ * utilities in @bison-lab/tailwind-preset. Values are transitions.dev's;
45
+ * override any of them to retune. Expressed as scale+fade keyframes so
46
+ * Radix keeps content mounted through the exit animation.
47
+ * ──────────────────────────────────────────────────────────────────── */
48
+
49
+ /* Modal — Dialog, AlertDialog */
50
+ --modal-open-dur: 250ms;
51
+ --modal-close-dur: 150ms;
52
+ --modal-scale: 0.96;
53
+ --modal-scale-close: 0.96;
54
+ /* Subtle rise-into-place on open / sink on close (our addition; set 0 for
55
+ * pure transitions.dev scale-from-center). */
56
+ --modal-rise: 8px;
57
+ --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
58
+
59
+ /* Dropdown / menu / popover — DropdownMenu, ContextMenu, Select, Popover, Command */
60
+ --dropdown-open-dur: 250ms;
61
+ --dropdown-close-dur: 150ms;
62
+ --dropdown-pre-scale: 0.97;
63
+ --dropdown-closing-scale: 0.99;
64
+ --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
65
+
66
+ /* Tooltip */
67
+ --tt-in-dur: 150ms;
68
+ --tt-out-dur: 50ms;
69
+ --tt-scale: 0.98;
70
+ --tt-ease: ease-out;
71
+
72
+ /* Tabs — sliding active indicator */
73
+ --tabs-dur: 200ms;
74
+ --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
75
+
76
+ /* Panel — Sheet (side drawers) */
77
+ --panel-open-dur: 400ms;
78
+ --panel-close-dur: 350ms;
79
+ --panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
80
+
81
+ /* Error shake — invalid form fields */
82
+ --shake-distance: 6px;
83
+ --shake-overshoot: 4px;
84
+ --shake-dur: 140ms;
85
+ --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
41
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bison-lab/tokens",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Design tokens, CSS custom properties, and preset files for Bison Lab component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",