@plexui/styles 0.1.11 → 0.1.12

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.
@@ -23,7 +23,7 @@
23
23
  border-radius: var(--radius-full);
24
24
  background: var(--switch-track-color);
25
25
  cursor: pointer;
26
- transition: background-color 250ms var(--cubic-move);
26
+ transition: background-color 200ms var(--cubic-enter);
27
27
  }
28
28
  @media (hover: hover) and (pointer: fine) {.Track:where(:not([data-disabled], [data-state="checked"])):hover {
29
29
  background: var(--switch-track-color-hover);
@@ -63,7 +63,7 @@
63
63
  border-radius: var(--radius-full);
64
64
  background: var(--switch-thumb-color);
65
65
  box-shadow: var(--switch-thumb-shadow);
66
- transition: transform 250ms var(--cubic-move);
66
+ transition: transform 200ms var(--cubic-enter);
67
67
  }
68
68
 
69
69
  [data-state="checked"] .Thumb {
@@ -2,9 +2,7 @@
2
2
  z-index: 50;
3
3
  max-width: 300px;
4
4
  border-radius: var(--radius-md);
5
- /* animation-duration: 0.3s; */
6
- /* animation-name: scale-in; */
7
- /* animation-timing-function: var(--cubic-enter); */
5
+ animation: tooltip-in var(--transition-duration-basic) var(--cubic-enter);
8
6
  background: var(--color-surface-elevated);
9
7
  box-shadow: var(--shadow), var(--shadow-hairline);
10
8
  font-size: 14px;
@@ -51,7 +49,15 @@
51
49
  background: var(--gray-700);
52
50
  color: var(--gray-0);
53
51
  font-size: 14px;
54
- }@keyframes scale-in {
52
+ }@keyframes tooltip-in {
53
+ from {
54
+ opacity: 0;
55
+ }
56
+ }@media (prefers-reduced-motion: reduce) {
57
+ .Tooltip {
58
+ animation: none;
59
+ }
60
+ }@keyframes scale-in {
55
61
  from {
56
62
  opacity: 0;
57
63
  transform: scale(0.95);
@@ -375,7 +375,7 @@
375
375
  --cubic-exit: cubic-bezier(0.8, 0, 0.4, 1);
376
376
  --cubic-exit-snappy: cubic-bezier(0.65, 0, 0.4, 1); /* less inertia delay */
377
377
  --cubic-move: cubic-bezier(0.65, 0, 0.35, 1);
378
- --transition-duration-basic: 150ms;
378
+ --transition-duration-basic: 120ms;
379
379
  --transition-ease-basic: ease;
380
380
  /* Overlays: enter slower than they leave. `large` is a panel that crosses
381
381
  the screen (sheet, side panel). The timers that unmount an overlay match
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",