@arcote.tech/arc-ds 0.7.7 → 0.7.8

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcote.tech/arc-ds",
3
3
  "type": "module",
4
- "version": "0.7.7",
4
+ "version": "0.7.8",
5
5
  "private": false,
6
6
  "author": "Przemysław Krasiński [arcote.tech]",
7
7
  "description": "Design System for Arc framework — CVA-based components with display modes and variant overrides",
@@ -30,7 +30,7 @@
30
30
  "tailwind-merge": "^3.5.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@arcote.tech/arc": "^0.7.7",
33
+ "@arcote.tech/arc": "^0.7.8",
34
34
  "framer-motion": "^12.0.0",
35
35
  "lucide-react": ">=0.400.0",
36
36
  "radix-ui": "^1.0.0",
@@ -48,11 +48,11 @@ export function Layout({ children }: { children?: ReactNode }) {
48
48
  function SubNavSlot() {
49
49
  const content = useDynamicSlotContent("sub-nav");
50
50
  if (content.length === 0) return null;
51
- // `relative z-30` creates an explicit stacking context at Z.BASE so any
52
- // popovers inside the sub-nav (SearchSelect absolute dropdown, etc.) paint
53
- // above the main content area that follows it in document flow.
51
+ // `relative z-20` creates an explicit stacking context below the toolbar
52
+ // (Z.BASE = 30) so the sub-nav doesn't paint over the fixed toolbar, but
53
+ // still sits above the main content area that follows in document flow.
54
54
  return (
55
- <div className="relative z-30 flex justify-center py-2">
55
+ <div className="relative z-20 flex justify-center py-2">
56
56
  <Box layoutId="sub-nav" className="flex items-center gap-1 px-3 py-2">
57
57
  {content}
58
58
  </Box>
@@ -167,33 +167,36 @@ function DesktopToolbar() {
167
167
  return (
168
168
  <>
169
169
  <div
170
- data-arc-toolbar="left"
171
170
  className="fixed left-4 top-4"
172
171
  style={{ zIndex: zIndex("workspace") }}
173
172
  >
174
173
  <Box layout={false} className="flex flex-col px-3 py-2">
175
- {renderSlot("toolbar-left", { className: "flex items-center gap-2" })}
174
+ <div data-arc-toolbar="left">
175
+ {renderSlot("toolbar-left", { className: "flex items-center gap-2" })}
176
+ </div>
176
177
  <ExpandedSection targetId="workspace" />
177
178
  </Box>
178
179
  </div>
179
180
 
180
181
  <div
181
- data-arc-toolbar="center"
182
182
  className="fixed left-1/2 top-4 max-w-[calc(100vw-26rem)] -translate-x-1/2"
183
183
  style={{ zIndex: zIndex("center") }}
184
184
  >
185
185
  <Box layout={false} className="flex min-w-0 items-center px-3 py-2">
186
- {renderSlot("toolbar-center", { className: "flex min-w-0 flex-1 items-center gap-1" })}
186
+ <div data-arc-toolbar="center" className="flex min-w-0 flex-1">
187
+ {renderSlot("toolbar-center", { className: "flex min-w-0 flex-1 items-center gap-1" })}
188
+ </div>
187
189
  </Box>
188
190
  </div>
189
191
 
190
192
  <div
191
- data-arc-toolbar="right"
192
193
  className="fixed right-4 top-4"
193
194
  style={{ zIndex: zIndex("settings") }}
194
195
  >
195
196
  <Box layout={false} className="flex flex-col px-3 py-2">
196
- {renderSlot("toolbar-right", { className: "flex items-center gap-2" })}
197
+ <div data-arc-toolbar="right">
198
+ {renderSlot("toolbar-right", { className: "flex items-center gap-2" })}
199
+ </div>
197
200
  <ExpandedSection targetId="settings" />
198
201
  </Box>
199
202
  </div>