@stll/ui 0.12.0 → 0.12.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.
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
12
12
|
declare const buttonVariants: (props?: ({
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "sm" | "default" | "lg" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "xl" | "xs" | null | undefined;
|
|
14
14
|
variant?: "link" | "default" | "destructive" | "destructive-outline" | "ghost" | "outline" | "secondary" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
16
|
//#endregion
|
|
@@ -9,8 +9,8 @@ type WorkspaceCompactNavigation = {
|
|
|
9
9
|
open: boolean;
|
|
10
10
|
/** Receives close gestures, Escape, backdrop presses, and viewport changes. */
|
|
11
11
|
onOpenChange: (open: boolean) => void;
|
|
12
|
-
/** Host-styled button;
|
|
13
|
-
trigger: ReactElement;
|
|
12
|
+
/** Host-styled button; null disables compact navigation for single-purpose hosts. */
|
|
13
|
+
trigger: ReactElement | null;
|
|
14
14
|
};
|
|
15
15
|
type WorkspaceNavigation = {
|
|
16
16
|
/** The host already owns its complete responsive navigation behavior. */
|
|
@@ -24,7 +24,7 @@ const WorkspaceShell = ({ children, endDock, navigation, topBar }) => {
|
|
|
24
24
|
isCompact,
|
|
25
25
|
onCompactNavigationOpenChange
|
|
26
26
|
]);
|
|
27
|
-
const compactNavigationTrigger = compactNavigation === null ? null : /* @__PURE__ */ jsx("span", {
|
|
27
|
+
const compactNavigationTrigger = compactNavigation?.trigger === null || compactNavigation === null ? null : /* @__PURE__ */ jsx("span", {
|
|
28
28
|
className: "contents md:hidden",
|
|
29
29
|
children: /* @__PURE__ */ jsx(SheetTrigger, {
|
|
30
30
|
"aria-label": compactNavigation.label,
|
|
@@ -44,7 +44,7 @@ const WorkspaceShell = ({ children, endDock, navigation, topBar }) => {
|
|
|
44
44
|
"data-slot": "workspace-shell-top-bar",
|
|
45
45
|
children: topBar({ compactNavigationTrigger })
|
|
46
46
|
}), /* @__PURE__ */ jsx("div", {
|
|
47
|
-
className: "min-h-0 flex-1 overflow-auto overscroll-contain",
|
|
47
|
+
className: "flex min-h-0 flex-1 flex-col overflow-auto overscroll-contain",
|
|
48
48
|
"data-slot": "workspace-shell-content",
|
|
49
49
|
children
|
|
50
50
|
})]
|
|
@@ -5,6 +5,6 @@ declare const CONTROL_SIZE: Readonly<{
|
|
|
5
5
|
readonly lg: "lg";
|
|
6
6
|
}>;
|
|
7
7
|
type ControlSize = (typeof CONTROL_SIZE)[keyof typeof CONTROL_SIZE];
|
|
8
|
-
declare const CONTROL_SIZES: readonly ("
|
|
8
|
+
declare const CONTROL_SIZES: readonly ("sm" | "default" | "lg")[];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CONTROL_SIZE, CONTROL_SIZES, type ControlSize };
|
package/package.json
CHANGED