@milktop/react-ui 0.3.20 → 0.3.21

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.
@@ -1,7 +1,8 @@
1
1
  @layer ui {
2
2
  [data-scope=tabs][data-part=root] { display: block; width: 100%; color: var(--ui-text); font-family: var(--ui-font); }
3
3
  [data-scope=tabs][data-part=list] { position: relative; display: flex; gap: 0.25rem; overflow-x: auto;
4
- [data-variant=line] > & { border-bottom: 1px solid var(--ui-border); }
4
+ /* A shadow, not a border: the list scrolls sideways, and the underline over a border would add a pixel of vertical scroll. */
5
+ [data-variant=line] > & { box-shadow: inset 0 -1px var(--ui-border); }
5
6
  /* Pills: a raised pill behind the selected tab, like Segmented. */
6
7
  [data-variant=pills] > & { display: inline-flex; padding: 0.25rem; background: var(--ui-hover); border-radius: var(--ui-radius); } }
7
8
  [data-scope=tabs][data-part=trigger] {
@@ -49,7 +50,7 @@
49
50
  @keyframes ui-ping { from { scale: 1; opacity: 0.7; } 75%, to { scale: 2.2; opacity: 0; } }
50
51
  @media (prefers-reduced-motion: reduce) { [data-scope=tabs][data-part=count]::after { animation: none; } }
51
52
  [data-scope=tabs][data-part=indicator] { transition-property: var(--transition-property); transition-duration: 200ms;
52
- [data-variant=line] & { position: absolute; bottom: -1px; left: var(--left); width: var(--width); height: 2px; background: var(--ui-accent); }
53
+ [data-variant=line] & { position: absolute; bottom: 0; left: var(--left); width: var(--width); height: 2px; background: var(--ui-accent); }
53
54
  [data-variant=pills] & { position: absolute; z-index: 0; top: var(--top); left: var(--left); width: var(--width); height: var(--height);
54
55
  background: var(--ui-surface); border-radius: calc(var(--ui-radius) - 2px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); } }
55
56
  [data-scope=tabs][data-part=panels] { padding-top: 1rem; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milktop/react-ui",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "React components on Ark UI (Zag state machines), with imba-ui's API and design",
5
5
  "license": "MIT",
6
6
  "author": "André Goldstein",