@stll/ui 0.16.0 → 0.16.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,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
12
12
|
declare const buttonVariants: (props?: ({
|
|
13
|
-
size?: "
|
|
14
|
-
variant?: "link" | "
|
|
13
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
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
|
|
17
17
|
export { buttonAccessibleDisabledClass, buttonVariants };
|
package/dist/inspector/dock.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ import { ReactNode } from "react";
|
|
|
15
15
|
* which is exactly the failure the spacer exists to prevent. With the width
|
|
16
16
|
* on the root, the dock reserves the same footprint in a flex row, a grid
|
|
17
17
|
* track, or a plain block.
|
|
18
|
+
*
|
|
19
|
+
* The permanent rail sits on the pane's inline-start edge, the same order
|
|
20
|
+
* the workspace inspector panel uses: collapsed, the rail is the whole dock
|
|
21
|
+
* on the viewport edge; expanded, the pane opens beyond the rail, so the
|
|
22
|
+
* rail keeps its place beside the content and its tabs and toggle stay next
|
|
23
|
+
* to the pane they drive instead of jumping to the far edge of the screen.
|
|
18
24
|
*/
|
|
19
25
|
type InspectorResizeHandleProps = {
|
|
20
26
|
"aria-orientation": "vertical";
|
|
@@ -32,7 +38,7 @@ type InspectorResizeHandleProps = {
|
|
|
32
38
|
type InspectorDockProps = {
|
|
33
39
|
children: ReactNode;
|
|
34
40
|
className?: string | undefined;
|
|
35
|
-
/** Permanent
|
|
41
|
+
/** Permanent rail on the pane's inline-start edge, or by itself when collapsed. */
|
|
36
42
|
rail?: ReactNode | undefined;
|
|
37
43
|
/** Accessible name for the drag handle. */
|
|
38
44
|
resizeHandleLabel: string;
|
package/dist/inspector/dock.js
CHANGED
|
@@ -28,10 +28,10 @@ const InspectorDock = ({ children, className, onResetWidth, rail, resizeHandleLa
|
|
|
28
28
|
onDoubleClick: onResetWidth
|
|
29
29
|
}), showPaneContent || rail === void 0 ? /* @__PURE__ */ jsxs("div", {
|
|
30
30
|
className: "bg-sidebar flex h-full w-full flex-row",
|
|
31
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
31
|
+
children: [rail, /* @__PURE__ */ jsx("div", {
|
|
32
32
|
className: "min-w-0 flex-1",
|
|
33
33
|
children
|
|
34
|
-
})
|
|
34
|
+
})]
|
|
35
35
|
}) : rail]
|
|
36
36
|
})]
|
|
37
37
|
});
|
|
@@ -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 ("default" | "lg" | "sm")[];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CONTROL_SIZE, CONTROL_SIZES, type ControlSize };
|
package/package.json
CHANGED