@stll/ui 0.29.2 → 0.30.0
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.
|
@@ -14,8 +14,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
14
14
|
*/
|
|
15
15
|
declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
16
16
|
declare const buttonVariants: (props?: ({
|
|
17
|
-
size?: "
|
|
18
|
-
variant?: "
|
|
17
|
+
size?: "default" | "xs" | "sm" | "icon" | "chip" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "xl" | null | undefined;
|
|
18
|
+
variant?: "link" | "default" | "destructive" | "outline" | "destructive-outline" | "destructive-ghost" | "ghost" | "muted" | "secondary" | null | undefined;
|
|
19
19
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
20
|
type ButtonProps = {
|
|
21
21
|
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
@@ -10,13 +10,12 @@ declare const SelectTrigger: ({ className, size, children, ...props }: Select$1.
|
|
|
10
10
|
size?: ControlSize;
|
|
11
11
|
}) => React$1.JSX.Element;
|
|
12
12
|
declare const SelectValue: ({ className, children, placeholder, ...props }: Select$1.Value.Props) => React$1.JSX.Element;
|
|
13
|
-
declare const SelectPopup: ({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger,
|
|
13
|
+
declare const SelectPopup: ({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select$1.Popup.Props & {
|
|
14
14
|
side?: Select$1.Positioner.Props["side"];
|
|
15
15
|
sideOffset?: Select$1.Positioner.Props["sideOffset"];
|
|
16
16
|
align?: Select$1.Positioner.Props["align"];
|
|
17
17
|
alignOffset?: Select$1.Positioner.Props["alignOffset"];
|
|
18
18
|
alignItemWithTrigger?: Select$1.Positioner.Props["alignItemWithTrigger"];
|
|
19
|
-
collisionAvoidance?: Select$1.Positioner.Props["collisionAvoidance"];
|
|
20
19
|
}) => React$1.JSX.Element;
|
|
21
20
|
declare const SelectItem: ({ className, children, label: _label, ...props }: SelectItemProps) => React$1.JSX.Element;
|
|
22
21
|
declare const SelectSeparator: ({ className, ...props }: Select$1.Separator.Props) => React$1.JSX.Element;
|
|
@@ -61,17 +61,11 @@ const SelectValue = ({ className, children, placeholder, ...props }) => {
|
|
|
61
61
|
children: renderSelectedDisplay(displays, placeholder)
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
const
|
|
65
|
-
align: "shift",
|
|
66
|
-
fallbackAxisSide: "none",
|
|
67
|
-
side: "none"
|
|
68
|
-
};
|
|
69
|
-
const SelectPopup = ({ className, children, side = "bottom", sideOffset = 4, align = "start", alignOffset = 0, alignItemWithTrigger = true, collisionAvoidance = DEFAULT_COLLISION_AVOIDANCE, ...props }) => /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
64
|
+
const SelectPopup = ({ className, children, side = "bottom", sideOffset = 4, align = "start", alignOffset = 0, alignItemWithTrigger = true, ...props }) => /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
70
65
|
align,
|
|
71
66
|
alignItemWithTrigger,
|
|
72
67
|
alignOffset,
|
|
73
68
|
className: cn(OVERLAY_LAYER_CLASS_NAMES.popup, "select-none"),
|
|
74
|
-
collisionAvoidance,
|
|
75
69
|
"data-slot": "select-positioner",
|
|
76
70
|
side,
|
|
77
71
|
sideOffset,
|
|
@@ -30,7 +30,7 @@ declare function useSidebar(): SidebarContextProps;
|
|
|
30
30
|
* left for the content column. Mobile reports 0: there the sidebar is an
|
|
31
31
|
* overlay sheet and occupies no layout width.
|
|
32
32
|
*/
|
|
33
|
-
declare function useSidebarInlineSize(): 0 |
|
|
33
|
+
declare function useSidebarInlineSize(): 0 | 48 | 256;
|
|
34
34
|
declare const SidebarProvider: ({ defaultOpen, forceCollapsed, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
35
35
|
defaultOpen?: boolean;
|
|
36
36
|
forceCollapsed?: boolean;
|
|
@@ -83,7 +83,7 @@ declare const SidebarMenu: ({ className, ...props }: React.ComponentProps<"ul">)
|
|
|
83
83
|
declare const SidebarMenuItem: ({ className, ...props }: React.ComponentProps<"li">) => import("react").JSX.Element;
|
|
84
84
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
85
85
|
variant?: "default" | "outline" | null | undefined;
|
|
86
|
-
size?: "
|
|
86
|
+
size?: "default" | "sm" | "lg" | "rail" | null | undefined;
|
|
87
87
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
88
88
|
declare const SidebarMenuButton: ({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
89
89
|
asChild?: boolean;
|
|
@@ -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" | "sm" | "lg")[];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CONTROL_SIZE, CONTROL_SIZES, type ControlSize };
|
package/package.json
CHANGED