@milktop/react-ui 0.2.6 → 0.3.1

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/dist/theme.css +9 -2
  2. package/package.json +1 -1
package/dist/theme.css CHANGED
@@ -80,8 +80,11 @@
80
80
  --ui-control-height-lg: 2.75rem;
81
81
  /* Stroke icons' line weight (Lucide's own is 2, in a 24-unit grid). */
82
82
  --ui-icon-stroke: 2;
83
- /* Sidebar and its items. */
84
- --ui-sidebar-width: 15rem;
83
+ /* Sidebar and its items. Open, it's -wide, or -narrow below 1536px; set
84
+ --ui-sidebar-width for one fixed width. */
85
+ --ui-sidebar-width-wide: 15rem;
86
+ --ui-sidebar-width-narrow: 13rem;
87
+ --ui-sidebar-width: var(--ui-sidebar-width-wide);
85
88
  --ui-sidebar-rail-width: 3.5rem;
86
89
  --ui-sidebar-item-height: 2.125rem;
87
90
  --ui-sidebar-item-padding: 0 0.5rem 0 0.75rem;
@@ -114,6 +117,10 @@
114
117
  --ui-sidebar-inset-active-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
115
118
  }
116
119
 
120
+ @media (max-width: 1535px) {
121
+ :root { --ui-sidebar-width: var(--ui-sidebar-width-narrow); }
122
+ }
123
+
117
124
  :root.dark, [data-theme=dark] {
118
125
  --ui-text: #fafafa;
119
126
  --ui-muted: #a1a1aa;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milktop/react-ui",
3
- "version": "0.2.6",
3
+ "version": "0.3.1",
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",