@stll/ui 0.40.2 → 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?: "row" | "default" | "chip" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
17
- variant?: "link" | "default" | "destructive" | "destructive-outline" | "destructive-ghost" | "ghost" | "muted" | "outline" | "secondary" | null | undefined;
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"];
@@ -27,7 +27,7 @@ declare const CommandGroup: ({ className, ...props }: Autocomplete.Group.Props)
27
27
  declare const CommandGroupLabel: ({ className, ...props }: Autocomplete.GroupLabel.Props) => React$1.JSX.Element;
28
28
  declare const CommandCollection: (props: Autocomplete.Collection.Props) => React$1.JSX.Element;
29
29
  declare const commandItemVariants: (props?: ({
30
- size?: "row" | "default" | null | undefined;
30
+ size?: "default" | "row" | null | undefined;
31
31
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
32
32
  declare const CommandItem: ({ className, size, ...props }: Autocomplete.Item.Props & {
33
33
  ref?: React$1.Ref<HTMLDivElement>;
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
5
5
  //#region src/components/input-group.d.ts
6
6
  declare const InputGroup: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
7
7
  declare const inputGroupAddonVariants: (props?: ({
8
- align?: "inline-end" | "inline-start" | "block-start" | "block-end" | null | undefined;
8
+ align?: "inline-start" | "block-end" | "block-start" | "inline-end" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  declare const InputGroupAddon: ({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) => React$1.JSX.Element;
11
11
  declare const InputGroupText: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
@@ -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 an uppercase 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-1 text-xs font-semibold tracking-widest uppercase outline-none focus-visible:ring-2";
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 an uppercase 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-1 text-xs font-semibold tracking-widest uppercase outline-none focus-visible:ring-2";
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 !== void 0 && /* @__PURE__ */ jsx(LandingRowIcon, {
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", {
@@ -33,7 +33,7 @@ declare function useSidebarLayout(): SidebarLayout;
33
33
  * left for the content column. Mobile reports 0: there the sidebar is an
34
34
  * overlay sheet and occupies no layout width.
35
35
  */
36
- declare function useSidebarInlineSize(): 0 | 256 | 48;
36
+ declare function useSidebarInlineSize(): 0 | 48 | 256;
37
37
  declare const SidebarProvider: ({ defaultOpen, forceCollapsed, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
38
38
  defaultOpen?: boolean;
39
39
  forceCollapsed?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/ui",
3
- "version": "0.40.2",
3
+ "version": "0.41.0",
4
4
  "description": "Stella's design system: bidi-aware React primitives built on Base UI, the dockable inspector pane, and the Tailwind v4 theme they are styled with.",
5
5
  "keywords": [
6
6
  "base-ui",