@stll/ui 0.29.0 → 0.29.2

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?: "default" | "chip" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
18
- variant?: "link" | "default" | "destructive" | "destructive-outline" | "destructive-ghost" | "ghost" | "muted" | "outline" | "secondary" | null | undefined;
17
+ size?: "sm" | "default" | "lg" | "chip" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "xl" | "xs" | null | undefined;
18
+ variant?: "default" | "link" | "destructive" | "destructive-outline" | "destructive-ghost" | "ghost" | "muted" | "outline" | "secondary" | null | undefined;
19
19
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
20
  type ButtonProps = {
21
21
  variant?: VariantProps<typeof buttonVariants>["variant"];
@@ -1,6 +1,6 @@
1
1
  //#region src/components/court-badge.d.ts
2
2
  /**
3
- * How a court's abbreviation is drawn: solid ink for the apex, then lighter
3
+ * How a court's abbreviation is drawn: a firm edge for the apex, then lighter
4
4
  * treatments down the instances.
5
5
  *
6
6
  * A rank, not a status, so the scale is weight and not colour. Colour here
@@ -8,9 +8,17 @@ const COURT_BADGE_BASE_CLASS = "inline-flex shrink-0 items-center rounded-sm bor
8
8
  * find. The lighter weights write their text in `foreground-strong-muted`
9
9
  * rather than `muted-foreground`: two capitals are not a paragraph a reader
10
10
  * can infer from context, so they hold body-text contrast in both themes.
11
+ *
12
+ * Every weight also writes its text in a foreground token on a tint, never
13
+ * inverted on a fill. The apex is separated by the strength of its edge, not
14
+ * by a block of ink: an ink block is the one treatment whose legibility
15
+ * depends on `text-background` surviving intact, and it reads as a filled
16
+ * square among chips whose surfaces are 4% tints — the two capitals inside it
17
+ * carry the whole fact, with no contrast to spare if anything composites them.
18
+ * Weight, applied to the border, says the same thing and cannot fail that way.
11
19
  */
12
20
  const WEIGHT_CLASS = {
13
- solid: "border-foreground bg-foreground text-background",
21
+ solid: "border-foreground bg-muted text-foreground",
14
22
  tinted: "border-border bg-muted text-foreground",
15
23
  outline: "border-border text-foreground-strong-muted",
16
24
  dashed: "border-border border-dashed text-foreground-strong-muted"
@@ -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 | 48 | 256;
33
+ declare function useSidebarInlineSize(): 0 | 256 | 48;
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?: "default" | "lg" | "sm" | "rail" | null | undefined;
86
+ size?: "sm" | "default" | "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 ("default" | "lg" | "sm")[];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/ui",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
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",