@stll/ui 0.51.0 → 0.52.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.
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/bidi-text.d.ts +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/menu.d.ts +1 -1
- package/dist/components/prose.d.ts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/steps.d.ts +18 -0
- package/dist/components/steps.js +34 -0
- package/dist/lib/control-size.d.ts +1 -1
- package/dist/lib/matter-colors.d.ts +1 -1
- package/package.json +7 -3
|
@@ -4,7 +4,7 @@ import * as React$1 from "react";
|
|
|
4
4
|
//#region src/components/alert-dialog.d.ts
|
|
5
5
|
declare const AlertDialogCreateHandle: typeof AlertDialog$1.createHandle;
|
|
6
6
|
declare const AlertDialog: typeof AlertDialog$1.Root;
|
|
7
|
-
declare const AlertDialogPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").
|
|
7
|
+
declare const AlertDialogPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare function AlertDialogTrigger({ tooltip, ...props }: AlertDialog$1.Trigger.Props & {
|
|
9
9
|
tooltip?: React$1.ReactNode;
|
|
10
10
|
}): React$1.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
//#region src/components/bidi-text.d.ts
|
|
3
3
|
export declare const BidiText: (props: BidiTextProps) => React$1.JSX.Element;
|
|
4
|
-
export declare const UserText:
|
|
4
|
+
export declare const UserText: (props: BidiTextProps) => React$1.JSX.Element;
|
|
5
5
|
type BidiDirection = "auto" | "ltr" | "rtl";
|
|
6
6
|
type BdiElementProps = Omit<React$1.ComponentPropsWithoutRef<"bdi">, "dir"> & {
|
|
7
7
|
as?: "bdi";
|
|
@@ -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?: "
|
|
16
|
+
size?: "default" | "sm" | "lg" | "icon" | "xs" | "row" | "chip" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "xl" | null | undefined;
|
|
17
|
+
variant?: "link" | "default" | "outline" | "destructive" | "muted" | "destructive-outline" | "destructive-ghost" | "ghost" | "secondary" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
type ButtonProps = {
|
|
20
20
|
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
@@ -14,7 +14,7 @@ declare const DialogProvider: ({ labels, children }: React$1.PropsWithChildren<{
|
|
|
14
14
|
declare const Dialog: <Payload>({ dirty, onOpenChange, onOpenChangeComplete, ...props }: Dialog$1.Root.Props<Payload> & {
|
|
15
15
|
dirty?: boolean;
|
|
16
16
|
}) => React$1.JSX.Element;
|
|
17
|
-
declare const DialogPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").
|
|
17
|
+
declare const DialogPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
declare function DialogTrigger({ tooltip, ...props }: Dialog$1.Trigger.Props & {
|
|
19
19
|
tooltip?: React$1.ReactNode;
|
|
20
20
|
}): React$1.JSX.Element;
|
|
@@ -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?: "
|
|
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;
|
|
@@ -3,7 +3,7 @@ import { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
|
3
3
|
//#region src/components/menu.d.ts
|
|
4
4
|
declare const MenuCreateHandle: typeof Menu$1.createHandle;
|
|
5
5
|
declare const Menu: <Payload>(props: Menu$1.Root.Props<Payload>) => React$1.JSX.Element;
|
|
6
|
-
declare const MenuPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").
|
|
6
|
+
declare const MenuPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare function MenuTrigger({ tooltip, ...props }: Menu$1.Trigger.Props & {
|
|
8
8
|
tooltip?: React$1.ReactNode;
|
|
9
9
|
}): React$1.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
//#region src/components/prose.d.ts
|
|
4
4
|
declare const proseVariants: (props?: ({
|
|
5
|
-
size?: "default" | "
|
|
5
|
+
size?: "default" | "sm" | "lede" | null | undefined;
|
|
6
6
|
tone?: "default" | "muted" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
/** A readable measure for narrative copy; task-shaped text should not use it. */
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { Dialog } from "@base-ui/react/dialog";
|
|
3
3
|
//#region src/components/sheet.d.ts
|
|
4
4
|
declare const Sheet: <Payload>(props: Dialog.Root.Props<Payload>) => React$1.JSX.Element;
|
|
5
|
-
declare const SheetPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").
|
|
5
|
+
declare const SheetPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
type SheetSide = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
7
7
|
declare function SheetTrigger({ tooltip, ...props }: Dialog.Trigger.Props & {
|
|
8
8
|
tooltip?: React$1.ReactNode;
|
|
@@ -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" | "sm" | "lg" | "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
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
//#region src/components/steps.d.ts
|
|
4
|
+
declare const stepsVariants: (props?: ({
|
|
5
|
+
variant?: "progress" | "default" | "compact" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
type StepsProps = React$1.ComponentProps<"ol"> & VariantProps<typeof stepsVariants> & {
|
|
8
|
+
markerStyle: NonNullable<React$1.CSSProperties["listStyleType"]>;
|
|
9
|
+
};
|
|
10
|
+
/** A meaningful procedure, timeline, or ranking. The list owns its numbers. */
|
|
11
|
+
declare const Steps: ({ className, variant, markerStyle, style, ...props }: StepsProps) => React$1.JSX.Element;
|
|
12
|
+
declare const stepVariants: (props?: ({
|
|
13
|
+
status?: "current" | "completed" | "upcoming" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
type StepProps = React$1.ComponentProps<"li"> & VariantProps<typeof stepVariants>;
|
|
16
|
+
declare const Step: ({ className, status, ...props }: StepProps) => React$1.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Step, Steps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
//#region src/components/steps.tsx
|
|
5
|
+
const stepsVariants = cva("list-decimal ps-6 marker:font-medium", {
|
|
6
|
+
variants: { variant: {
|
|
7
|
+
default: "space-y-4",
|
|
8
|
+
compact: "space-y-0.5",
|
|
9
|
+
progress: "grid grid-cols-4 gap-2"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { variant: "default" }
|
|
12
|
+
});
|
|
13
|
+
/** A meaningful procedure, timeline, or ranking. The list owns its numbers. */
|
|
14
|
+
const Steps = ({ className, variant, markerStyle, style, ...props }) => /* @__PURE__ */ jsx("ol", {
|
|
15
|
+
className: cn(stepsVariants({ variant }), className),
|
|
16
|
+
"data-slot": "steps",
|
|
17
|
+
style: {
|
|
18
|
+
...style,
|
|
19
|
+
listStyleType: markerStyle
|
|
20
|
+
},
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
const stepVariants = cva("ps-2", { variants: { status: {
|
|
24
|
+
current: "border-foreground border-t-2 pt-2 text-sm font-medium",
|
|
25
|
+
completed: "border-foreground border-t-2 pt-2 text-sm font-medium",
|
|
26
|
+
upcoming: "border-muted text-muted-foreground border-t-2 pt-2 text-sm"
|
|
27
|
+
} } });
|
|
28
|
+
const Step = ({ className, status, ...props }) => /* @__PURE__ */ jsx("li", {
|
|
29
|
+
className: cn(stepVariants({ status }), className),
|
|
30
|
+
"data-slot": "step",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Step, Steps };
|
|
@@ -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" | "sm" | "lg")[];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CONTROL_SIZE, CONTROL_SIZES, type ControlSize };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
//#region src/lib/matter-colors.d.ts
|
|
3
3
|
export declare const MATTER_SWATCHES: readonly ["--option-blue", "--option-emerald", "--option-amber", "--option-violet", "--option-red", "--option-cyan", "--option-orange", "--option-teal"];
|
|
4
|
-
export declare const getMatterSwatch: (id: string) => "--option-
|
|
4
|
+
export declare const getMatterSwatch: (id: string) => "--option-blue" | "--option-emerald" | "--option-amber" | "--option-violet" | "--option-red" | "--option-cyan" | "--option-orange" | "--option-teal";
|
|
5
5
|
export declare const getMatterColor: (id: string) => string;
|
|
6
6
|
export declare const getMatterPickerColor: (id: string, color: string | null) => string;
|
|
7
7
|
export declare const toStoredMatterColor: (color: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.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",
|
|
@@ -269,6 +269,10 @@
|
|
|
269
269
|
"types": "./dist/components/popover.d.ts",
|
|
270
270
|
"import": "./dist/components/popover.js"
|
|
271
271
|
},
|
|
272
|
+
"./steps": {
|
|
273
|
+
"types": "./dist/components/steps.d.ts",
|
|
274
|
+
"import": "./dist/components/steps.js"
|
|
275
|
+
},
|
|
272
276
|
"./positioner-sizing": {
|
|
273
277
|
"types": "./dist/lib/positioner-sizing.d.ts",
|
|
274
278
|
"import": "./dist/lib/positioner-sizing.js"
|
|
@@ -748,11 +752,11 @@
|
|
|
748
752
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
749
753
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.2.1",
|
|
750
754
|
"@base-ui/react": "1.8.0",
|
|
751
|
-
"@happy-dom/global-registrator": "21.0.
|
|
755
|
+
"@happy-dom/global-registrator": "21.0.4",
|
|
752
756
|
"@playwright/test": "^1.63.0",
|
|
753
757
|
"@stll/typescript-config": "0.0.0",
|
|
754
758
|
"@tailwindcss/vite": "4.3.3",
|
|
755
|
-
"@tanstack/react-virtual": "^3.14.
|
|
759
|
+
"@tanstack/react-virtual": "^3.14.21",
|
|
756
760
|
"@testing-library/dom": "10.4.2",
|
|
757
761
|
"@testing-library/react": "16.3.3",
|
|
758
762
|
"@types/react": "^19.3.0",
|