@stll/workspace-ui 0.10.3 → 0.10.5
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/dist/view-switcher.js +7 -4
- package/package.json +2 -2
package/dist/view-switcher.js
CHANGED
|
@@ -66,7 +66,7 @@ const WorkspaceViewSwitcher = ({ activeViewId, ariaLabel, direction, reorder, vi
|
|
|
66
66
|
variant: "underline",
|
|
67
67
|
children: viewTabs.map(({ view, actions }) => {
|
|
68
68
|
if (editing?.viewId === view.id) return /* @__PURE__ */ jsxs(TabsTab, {
|
|
69
|
-
className: cn("h-full sm:h-full", reserveActionSpace ? "pe-6.5" : void 0),
|
|
69
|
+
className: cn("h-full pt-2 sm:h-full", reserveActionSpace ? "pe-6.5" : void 0),
|
|
70
70
|
nativeButton: false,
|
|
71
71
|
render: /* @__PURE__ */ jsx("div", {}),
|
|
72
72
|
value: view.id,
|
|
@@ -90,7 +90,10 @@ const WorkspaceViewSwitcher = ({ activeViewId, ariaLabel, direction, reorder, vi
|
|
|
90
90
|
})
|
|
91
91
|
})
|
|
92
92
|
})
|
|
93
|
-
}), addControl
|
|
93
|
+
}), addControl === null || addControl === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
94
|
+
className: "flex shrink-0 translate-y-1 items-center",
|
|
95
|
+
children: addControl
|
|
96
|
+
})]
|
|
94
97
|
});
|
|
95
98
|
};
|
|
96
99
|
const WorkspaceViewTab = ({ actions, canReorder, direction, getDragData, getDropData, isDragBlocked, instanceId, onContextMenu, onDoubleClick, onReorder, renderIcon, reserveActionSpace, view }) => {
|
|
@@ -152,7 +155,7 @@ const WorkspaceViewTab = ({ actions, canReorder, direction, getDragData, getDrop
|
|
|
152
155
|
className: cn("bg-primary pointer-events-none absolute inset-y-1 z-20 w-0.5 rounded-full", dropPosition === "before" ? "start-0" : "end-0")
|
|
153
156
|
}),
|
|
154
157
|
/* @__PURE__ */ jsxs(TabsTab, {
|
|
155
|
-
className: cn("h-full sm:h-full", reserveActionSpace ? "pe-6.5" : void 0),
|
|
158
|
+
className: cn("h-full pt-2 sm:h-full", reserveActionSpace ? "pe-6.5" : void 0),
|
|
156
159
|
onContextMenu: (event) => onContextMenu?.(view, event),
|
|
157
160
|
onDoubleClick: (event) => onDoubleClick?.(view, event),
|
|
158
161
|
value: view.id,
|
|
@@ -162,7 +165,7 @@ const WorkspaceViewTab = ({ actions, canReorder, direction, getDragData, getDrop
|
|
|
162
165
|
})]
|
|
163
166
|
}),
|
|
164
167
|
actions === null || actions === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
165
|
-
className: "absolute inset-e-0 top-1/2 -translate-y-1/2",
|
|
168
|
+
className: "absolute inset-e-0 top-1/2 mt-1 -translate-y-1/2",
|
|
166
169
|
children: actions
|
|
167
170
|
})
|
|
168
171
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/workspace-ui",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "Reusable workspace presentation components and view helpers for Stella.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calculations",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@stll/calculations": "^0.1.1",
|
|
120
120
|
"@stll/conditions": "^0.3.1",
|
|
121
121
|
"@stll/money": "^0.2.0",
|
|
122
|
-
"@stll/ui": "^0.
|
|
122
|
+
"@stll/ui": "^0.27.0",
|
|
123
123
|
"better-result": "3.0.1",
|
|
124
124
|
"lucide-react": "1.41.0",
|
|
125
125
|
"temporal-polyfill": "1.0.4",
|