@stll/ui 0.40.1 → 0.41.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.
|
@@ -13,8 +13,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
13
13
|
*/
|
|
14
14
|
declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
15
15
|
declare const buttonVariants: (props?: ({
|
|
16
|
-
size?: "
|
|
17
|
-
variant?: "link" | "
|
|
16
|
+
size?: "icon" | "default" | "row" | "chip" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
17
|
+
variant?: "link" | "destructive" | "default" | "destructive-outline" | "destructive-ghost" | "ghost" | "muted" | "outline" | "secondary" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
type ButtonProps = {
|
|
20
20
|
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
@@ -24,9 +24,11 @@ type LandingGreetingProps = {
|
|
|
24
24
|
children: ReactNode;
|
|
25
25
|
};
|
|
26
26
|
export declare const LandingGreeting: ({ icon, children }: LandingGreetingProps) => import("react").JSX.Element;
|
|
27
|
-
/** A column's heading: an icon and
|
|
28
|
-
export declare const LANDING_SECTION_HEADING_CLASS = "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex items-center gap-2 rounded-md px-
|
|
29
|
-
/** A row of a column, as a link or a button.
|
|
27
|
+
/** A column's heading: an icon and a sentence-case label, as a link or a trigger. */
|
|
28
|
+
export declare const LANDING_SECTION_HEADING_CLASS = "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex items-center gap-2 rounded-md px-2 text-sm font-medium outline-none focus-visible:ring-2";
|
|
29
|
+
/** A row of a column, as a link or a button. Its text lines up with the
|
|
30
|
+
* heading's label; the icon slot under the heading icon stays empty unless
|
|
31
|
+
* the icon identifies the row (a matter's colour). */
|
|
30
32
|
export declare const LANDING_ROW_CLASS = "group hover:bg-accent/50 focus-visible:ring-ring rounded-md px-2 py-1.5 text-start outline-none focus-visible:ring-2";
|
|
31
33
|
type LandingSectionProps = {
|
|
32
34
|
children: ReactNode;
|
|
@@ -39,9 +39,11 @@ const LandingGreeting = ({ icon, children }) => /* @__PURE__ */ jsxs("div", {
|
|
|
39
39
|
children
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
|
-
/** A column's heading: an icon and
|
|
43
|
-
const LANDING_SECTION_HEADING_CLASS = "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex items-center gap-2 rounded-md px-
|
|
44
|
-
/** A row of a column, as a link or a button.
|
|
42
|
+
/** A column's heading: an icon and a sentence-case label, as a link or a trigger. */
|
|
43
|
+
const LANDING_SECTION_HEADING_CLASS = "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex items-center gap-2 rounded-md px-2 text-sm font-medium outline-none focus-visible:ring-2";
|
|
44
|
+
/** A row of a column, as a link or a button. Its text lines up with the
|
|
45
|
+
* heading's label; the icon slot under the heading icon stays empty unless
|
|
46
|
+
* the icon identifies the row (a matter's colour). */
|
|
45
47
|
const LANDING_ROW_CLASS = "group hover:bg-accent/50 focus-visible:ring-ring rounded-md px-2 py-1.5 text-start outline-none focus-visible:ring-2";
|
|
46
48
|
/** A column: its heading stays put, its rows scroll beneath it. */
|
|
47
49
|
const LandingSection = ({ children, heading }) => /* @__PURE__ */ jsxs("section", {
|
|
@@ -70,7 +72,10 @@ const LandingButton = ({ icon, meta, onClick, title }) => /* @__PURE__ */ jsx("b
|
|
|
70
72
|
});
|
|
71
73
|
const LandingItemText = ({ icon, iconTone = "muted", meta, title }) => /* @__PURE__ */ jsxs("span", {
|
|
72
74
|
className: "flex min-w-0 items-start gap-2",
|
|
73
|
-
children: [icon
|
|
75
|
+
children: [icon === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
76
|
+
"aria-hidden": "true",
|
|
77
|
+
className: "size-4 shrink-0"
|
|
78
|
+
}) : /* @__PURE__ */ jsx(LandingRowIcon, {
|
|
74
79
|
tone: iconTone,
|
|
75
80
|
children: icon
|
|
76
81
|
}), /* @__PURE__ */ jsxs("span", {
|
|
@@ -86,7 +86,7 @@ declare const SidebarMenu: ({ className, ...props }: React.ComponentProps<"ul">)
|
|
|
86
86
|
declare const SidebarMenuItem: ({ className, ...props }: React.ComponentProps<"li">) => import("react").JSX.Element;
|
|
87
87
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
88
88
|
variant?: "default" | "outline" | null | undefined;
|
|
89
|
-
size?: "default" | "
|
|
89
|
+
size?: "default" | "lg" | "sm" | "rail" | null | undefined;
|
|
90
90
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
91
91
|
/**
|
|
92
92
|
* The footer's avatar trigger, signed in (user menu) or not (sign-in): a
|
|
@@ -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 ("default" | "
|
|
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