@stll/ui 0.78.0 → 0.79.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.
@@ -1,11 +1,18 @@
1
1
  import * as React from "react";
2
+ import { VariantProps } from "class-variance-authority";
2
3
  declare const ListGroup: ({ className, ...props }: React.ComponentProps<"section">) => React.JSX.Element;
3
4
  declare const ListGroupHeader: ({ className, ...props }: React.ComponentProps<"header">) => React.JSX.Element;
4
5
  /** Title and description stack; takes the space the header action leaves. */
5
6
  declare const ListGroupHeading: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
6
- declare const ListGroupTitle: ({ className, children, ...props }: React.ComponentProps<"h2">) => React.JSX.Element;
7
+ /** `destructive` names an irreversible group (a danger zone). */
8
+ type ListGroupTitleTone = "default" | "destructive";
9
+ declare const ListGroupTitle: ({ className, children, tone, ...props }: React.ComponentProps<"h2"> & {
10
+ tone?: ListGroupTitleTone | undefined;
11
+ }) => React.JSX.Element;
7
12
  /** The group's one quiet line under its title. */
8
13
  declare const ListGroupDescription: ({ className, ...props }: React.ComponentProps<"p">) => React.JSX.Element;
14
+ /** Quiet trailing affordance on the header row (a link or ghost button). */
15
+ declare const ListGroupAction: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
9
16
  /**
10
17
  * The surface. Depth comes from a ring plus a soft shadow, not a frame.
11
18
  *
@@ -15,6 +22,11 @@ declare const ListGroupDescription: ({ className, ...props }: React.ComponentPro
15
22
  * on top, from the second wrapped row on.
16
23
  */
17
24
  declare const List: ({ className, ...props }: React.ComponentProps<"ul">) => React.JSX.Element;
25
+ declare const listItemMediaVariants: (props?: ({
26
+ variant?: "icon" | "initial" | null | undefined;
27
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
28
+ /** Fixed 32px tile for an icon, logo or initial. */
29
+ declare const ListItemMedia: ({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof listItemMediaVariants>) => React.JSX.Element;
18
30
  /** A row's box: its height floor, inset and the gap between its slots. */
19
31
  export declare const LIST_ITEM_ROW_CLASS = "flex min-h-14 w-full items-center gap-3 px-4 py-2.5 text-start";
20
32
  type ListItemSkeletonProps = {
@@ -36,4 +48,4 @@ type ListItemSkeletonProps = {
36
48
  declare const ListItemSkeleton: ({ description, index, media, trailing }: ListItemSkeletonProps) => React.JSX.Element;
37
49
  /** A group title whose text waits on data: a bar on the title's line. */
38
50
  declare const ListGroupTitlePending: () => React.JSX.Element;
39
- export { List, ListGroup, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListGroupTitlePending, ListItemSkeleton };
51
+ export { List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListGroupTitlePending, type ListGroupTitleTone, ListItemMedia, ListItemSkeleton };
@@ -2,6 +2,7 @@
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { InlineSkeleton, Skeleton } from "./skeleton.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { cva } from "class-variance-authority";
5
6
  // src/components/list-shell.tsx
6
7
  const ListGroup = ({ className, ...props }) => /* @__PURE__ */ jsx("section", {
7
8
  className: cn("flex flex-col gap-2.5", className),
@@ -19,8 +20,12 @@ const ListGroupHeading = ({ className, ...props }) => /* @__PURE__ */ jsx("div",
19
20
  "data-slot": "list-group-heading",
20
21
  ...props
21
22
  });
22
- const ListGroupTitle = ({ className, children, ...props }) => /* @__PURE__ */ jsx("h2", {
23
- className: cn("text-foreground text-sm font-medium text-balance", className),
23
+ const LIST_GROUP_TITLE_TONE_CLASS = {
24
+ default: "text-foreground",
25
+ destructive: "text-destructive-foreground"
26
+ };
27
+ const ListGroupTitle = ({ className, children, tone = "default", ...props }) => /* @__PURE__ */ jsx("h2", {
28
+ className: cn("text-sm font-medium text-balance", LIST_GROUP_TITLE_TONE_CLASS[tone], className),
24
29
  "data-slot": "list-group-title",
25
30
  ...props,
26
31
  children
@@ -31,6 +36,12 @@ const ListGroupDescription = ({ className, ...props }) => /* @__PURE__ */ jsx("p
31
36
  "data-slot": "list-group-description",
32
37
  ...props
33
38
  });
39
+ /** Quiet trailing affordance on the header row (a link or ghost button). */
40
+ const ListGroupAction = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
41
+ className: cn("flex shrink-0 items-center gap-1", className),
42
+ "data-slot": "list-group-action",
43
+ ...props
44
+ });
34
45
  /**
35
46
  * The surface. Depth comes from a ring plus a soft shadow, not a frame.
36
47
  *
@@ -44,6 +55,22 @@ const List = ({ className, ...props }) => /* @__PURE__ */ jsx("ul", {
44
55
  "data-slot": "list",
45
56
  ...props
46
57
  });
58
+ const listItemMediaVariants = cva("bg-muted grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg outline-1 -outline-offset-1 outline-black/5 dark:outline-white/10", {
59
+ defaultVariants: { variant: "icon" },
60
+ variants: { variant: {
61
+ /** A glyph or logo, drawn quietly. */
62
+ icon: "text-muted-foreground [&_svg:not([class*='size-'])]:size-4",
63
+ /** A letter standing in for a name that has no logo. */
64
+ initial: "text-foreground text-xs font-medium"
65
+ } }
66
+ });
67
+ /** Fixed 32px tile for an icon, logo or initial. */
68
+ const ListItemMedia = ({ className, variant, ...props }) => /* @__PURE__ */ jsx("div", {
69
+ "aria-hidden": "true",
70
+ className: cn(listItemMediaVariants({ variant }), className),
71
+ "data-slot": "list-item-media",
72
+ ...props
73
+ });
47
74
  /** A row's box: its height floor, inset and the gap between its slots. */
48
75
  const LIST_ITEM_ROW_CLASS = "flex min-h-14 w-full items-center gap-3 px-4 py-2.5 text-start";
49
76
  const LIST_ITEM_TITLE_WIDTHS = [
@@ -96,4 +123,4 @@ const ListGroupTitlePending = () => /* @__PURE__ */ jsx("span", {
96
123
  "data-slot": "list-group-title-skeleton",
97
124
  children: /* @__PURE__ */ jsx(InlineSkeleton, { className: "h-3.5 w-24" })
98
125
  });
99
- export { LIST_ITEM_ROW_CLASS, List, ListGroup, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListGroupTitlePending, ListItemSkeleton };
126
+ export { LIST_ITEM_ROW_CLASS, List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListGroupTitlePending, ListItemMedia, ListItemSkeleton };
@@ -1,6 +1,6 @@
1
1
  import "./truncated-text.js";
2
2
  import * as React from "react";
3
- import { List, ListGroup, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle } from "./list-shell.js";
3
+ import { List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItemMedia } from "./list-shell.js";
4
4
  import { TruncatedTextLines } from "./truncated-text-face.js";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
  import { useRender } from "@base-ui/react/use-render";
@@ -12,19 +12,12 @@ import { useRender } from "@base-ui/react/use-render";
12
12
  declare const ListGroupCount: ({ className, count, ...props }: Omit<React.ComponentProps<"span">, "children"> & {
13
13
  count: string;
14
14
  }) => React.JSX.Element;
15
- /** Quiet trailing affordance on the header row (a link or ghost button). */
16
- declare const ListGroupAction: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
17
15
  /**
18
16
  * One row. Pass `render` (a link or button element) to make the whole row the
19
17
  * target; then keep other interactive elements out of it. Rows with their own
20
18
  * trailing buttons stay a plain `li` and put the actions in `ListItemActions`.
21
19
  */
22
20
  declare const ListItem: ({ className, render, children, ...props }: useRender.ComponentProps<"div">) => React.JSX.Element;
23
- declare const listItemMediaVariants: (props?: ({
24
- variant?: "icon" | "initial" | null | undefined;
25
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
26
- /** Fixed 32px tile for an icon, logo or initial. */
27
- declare const ListItemMedia: ({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof listItemMediaVariants>) => React.JSX.Element;
28
21
  declare const ListItemContent: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
29
22
  declare const listItemTitleVariants: (props?: ({
30
23
  variant?: "name" | "statement" | null | undefined;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { AnimatedCount } from "./animated-count.js";
4
- import { LIST_ITEM_ROW_CLASS, List, ListGroup, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle } from "./list-shell.js";
4
+ import { LIST_ITEM_ROW_CLASS, List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItemMedia } from "./list-shell.js";
5
5
  import { TruncatedText } from "./truncated-text.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { mergeProps } from "@base-ui/react/merge-props";
@@ -19,12 +19,6 @@ const ListGroupCount = ({ className, count, ...props }) => /* @__PURE__ */ jsx("
19
19
  ...props,
20
20
  children: /* @__PURE__ */ jsx(AnimatedCount, { value: count })
21
21
  });
22
- /** Quiet trailing affordance on the header row (a link or ghost button). */
23
- const ListGroupAction = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
24
- className: cn("flex shrink-0 items-center gap-1", className),
25
- "data-slot": "list-group-action",
26
- ...props
27
- });
28
22
  /**
29
23
  * One row. Pass `render` (a link or button element) to make the whole row the
30
24
  * target; then keep other interactive elements out of it. Rows with their own
@@ -46,22 +40,6 @@ const ListItem = ({ className, render, children, ...props }) => {
46
40
  children: row
47
41
  });
48
42
  };
49
- const listItemMediaVariants = cva("bg-muted grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg outline-1 -outline-offset-1 outline-black/5 dark:outline-white/10", {
50
- defaultVariants: { variant: "icon" },
51
- variants: { variant: {
52
- /** A glyph or logo, drawn quietly. */
53
- icon: "text-muted-foreground [&_svg:not([class*='size-'])]:size-4",
54
- /** A letter standing in for a name that has no logo. */
55
- initial: "text-foreground text-xs font-medium"
56
- } }
57
- });
58
- /** Fixed 32px tile for an icon, logo or initial. */
59
- const ListItemMedia = ({ className, variant, ...props }) => /* @__PURE__ */ jsx("div", {
60
- "aria-hidden": "true",
61
- className: cn(listItemMediaVariants({ variant }), className),
62
- "data-slot": "list-item-media",
63
- ...props
64
- });
65
43
  const ListItemContent = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
66
44
  className: cn("flex min-w-0 flex-1 flex-col gap-0.5", className),
67
45
  "data-slot": "list-item-content",
@@ -2,8 +2,8 @@ import { resolveMatterColor } from "../lib/matter-colors.js";
2
2
  import { ALL_MATTERS_STACK } from "./matter-icon.shared.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import Svg, { Path } from "react-native-svg";
5
- import { LayersIcon } from "lucide-react-native";
6
5
  import { useCSSVariable } from "uniwind";
6
+ import { LayersIcon } from "lucide-react-native";
7
7
  // src/components/matter-icon.native.tsx
8
8
  /**
9
9
  * Every palette option a matter can be painted in, as a class. uniwind keeps
@@ -0,0 +1,70 @@
1
+ import * as React from "react";
2
+ import { ListGroupTitleTone } from "./list-shell.js";
3
+ type SettingsSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
4
+ /** The section's name; none when the page header already names it. */
5
+ title?: React.ReactNode;
6
+ /** One quiet line under the title. */
7
+ description?: React.ReactNode;
8
+ /** A quiet trailing action on the header row (an add or a link). */
9
+ action?: React.ReactNode;
10
+ /** `destructive` names an irreversible section (a danger zone). */
11
+ tone?: ListGroupTitleTone | undefined;
12
+ /** `SettingsRow`s and `SettingsPanel`s. */
13
+ children: React.ReactNode;
14
+ };
15
+ /** A titled section over one surface of rows. */
16
+ declare const SettingsSection: ({ action, children, description, title, tone, ...props }: SettingsSectionProps) => React.JSX.Element;
17
+ /**
18
+ * A row's ids: the control points at `label` and `description` for its name
19
+ * and its description, and takes `control` as its own id in a label row.
20
+ */
21
+ declare const settingsRowIds: (id: string) => {
22
+ control: string;
23
+ description: string;
24
+ label: string;
25
+ };
26
+ /** How far a row sits in: a `nested` row refines the row above it. */
27
+ type SettingsRowDepth = "top" | "nested";
28
+ /**
29
+ * What a press on the row's text does. `label`: the text is the label of
30
+ * the control whose id is `settingsRowIds(id).control` (a switch or a
31
+ * checkbox), so a press on it flips the control. The text, not the whole
32
+ * row, is the label: a label wrapped around the control would hand a press
33
+ * on the control to it a second time where the label's default action runs
34
+ * before the control's own handler cancels it.
35
+ */
36
+ type SettingsRowInteraction = {
37
+ interaction?: "none" | undefined;
38
+ id?: string | undefined;
39
+ } | {
40
+ interaction: "label";
41
+ id: string;
42
+ };
43
+ type SettingsRowProps = SettingsRowInteraction & {
44
+ /** A 32px tile before the title (`ListItemMedia`). */
45
+ media?: React.ReactNode;
46
+ title: React.ReactNode;
47
+ /** One secondary line under the title. */
48
+ description?: React.ReactNode;
49
+ /** The trailing control, value, status or link. */
50
+ children?: React.ReactNode;
51
+ /** Under the row and inside it, without a divider: a warning or an error
52
+ * about this row's value. */
53
+ footer?: React.ReactNode;
54
+ depth?: SettingsRowDepth | undefined;
55
+ /** Shown dimmed: its control is disabled until something else allows it. */
56
+ disabled?: boolean | undefined;
57
+ };
58
+ /** One option: media, title and secondary line, then its control. */
59
+ declare const SettingsRow: (props: SettingsRowProps) => React.JSX.Element;
60
+ /** How a panel's content sits on the surface. `flush`: the content lays out
61
+ * its own rows edge to edge. */
62
+ type SettingsPanelInset = "padded" | "flush";
63
+ /**
64
+ * A form, or other content that is not a row, on a section's surface. The
65
+ * panel owns its inset; the content lays itself out inside it.
66
+ */
67
+ declare const SettingsPanel: ({ inset, ...props }: Omit<React.ComponentProps<"li">, "className"> & {
68
+ inset?: SettingsPanelInset | undefined;
69
+ }) => React.JSX.Element;
70
+ export { SettingsPanel, SettingsRow, type SettingsRowDepth, type SettingsRowInteraction, SettingsSection, settingsRowIds };
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import { cn } from "../lib/utils.js";
3
+ import { List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle } from "./list-shell.js";
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { useId } from "react";
6
+ // src/components/settings.tsx
7
+ const rendersSomething = (node) => node !== void 0 && node !== null && node !== false;
8
+ /** A titled section over one surface of rows. */
9
+ const SettingsSection = ({ action, children, description, title, tone, ...props }) => {
10
+ const titleId = useId();
11
+ const named = rendersSomething(title);
12
+ const described = rendersSomething(description);
13
+ const acted = rendersSomething(action);
14
+ return /* @__PURE__ */ jsxs(ListGroup, {
15
+ "aria-labelledby": named ? titleId : void 0,
16
+ ...props,
17
+ children: [(named || described || acted) && /* @__PURE__ */ jsxs(ListGroupHeader, { children: [/* @__PURE__ */ jsxs(ListGroupHeading, { children: [named && /* @__PURE__ */ jsx(ListGroupTitle, {
18
+ id: titleId,
19
+ tone,
20
+ children: title
21
+ }), described && /* @__PURE__ */ jsx(ListGroupDescription, { children: description })] }), acted && /* @__PURE__ */ jsx(ListGroupAction, { children: action })] }), /* @__PURE__ */ jsx(List, { children })]
22
+ });
23
+ };
24
+ /**
25
+ * A row's ids: the control points at `label` and `description` for its name
26
+ * and its description, and takes `control` as its own id in a label row.
27
+ */
28
+ const settingsRowIds = (id) => ({
29
+ control: `${id}-control`,
30
+ description: `${id}-description`,
31
+ label: `${id}-label`
32
+ });
33
+ const ROW_DEPTH_CLASS = {
34
+ nested: "ps-10",
35
+ top: "ps-4"
36
+ };
37
+ const SETTINGS_ROW_BOX_CLASS = "flex min-h-14 w-full flex-wrap items-center gap-x-3 gap-y-2 py-2.5 pe-4 text-start";
38
+ /** One option: media, title and secondary line, then its control. */
39
+ const SettingsRow = (props) => {
40
+ const { children, depth = "top", description, disabled = false, footer, id, media, title } = props;
41
+ const ids = id === void 0 ? void 0 : settingsRowIds(id);
42
+ const controlId = props.interaction === "label" ? settingsRowIds(props.id).control : null;
43
+ const text = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
44
+ className: "text-foreground text-sm font-medium text-pretty wrap-break-word",
45
+ "data-slot": "settings-row-title",
46
+ dir: "auto",
47
+ id: ids?.label,
48
+ children: title
49
+ }), rendersSomething(description) && /* @__PURE__ */ jsx("span", {
50
+ className: "text-muted-foreground text-xs text-pretty wrap-break-word",
51
+ "data-slot": "settings-row-description",
52
+ dir: "auto",
53
+ id: ids?.description,
54
+ children: description
55
+ })] });
56
+ const textClass = cn("flex min-w-48 flex-1 basis-48 flex-col justify-center gap-0.5 self-stretch", disabled && "opacity-64");
57
+ return /* @__PURE__ */ jsxs("li", {
58
+ className: "flex min-w-0 flex-col",
59
+ "data-disabled": disabled ? "" : void 0,
60
+ "data-slot": "settings-row",
61
+ children: [/* @__PURE__ */ jsxs("div", {
62
+ className: cn(SETTINGS_ROW_BOX_CLASS, ROW_DEPTH_CLASS[depth], controlId !== null && "has-[label:hover]:bg-muted/50 has-data-disabled:has-[label:hover]:bg-transparent"),
63
+ children: [
64
+ media,
65
+ controlId === null ? /* @__PURE__ */ jsx("span", {
66
+ className: textClass,
67
+ children: text
68
+ }) : /* @__PURE__ */ jsx("label", {
69
+ className: cn(textClass, "cursor-pointer in-[li:has([data-disabled])]:cursor-not-allowed"),
70
+ htmlFor: controlId,
71
+ children: text
72
+ }),
73
+ rendersSomething(children) && /* @__PURE__ */ jsx("span", {
74
+ className: "ms-auto flex shrink-0 items-center gap-2",
75
+ "data-slot": "settings-row-control",
76
+ children
77
+ })
78
+ ]
79
+ }), rendersSomething(footer) && /* @__PURE__ */ jsx("div", {
80
+ className: cn("pe-4 pb-3 empty:hidden", ROW_DEPTH_CLASS[depth]),
81
+ children: footer
82
+ })]
83
+ });
84
+ };
85
+ /**
86
+ * A form, or other content that is not a row, on a section's surface. The
87
+ * panel owns its inset; the content lays itself out inside it.
88
+ */
89
+ const SettingsPanel = ({ inset = "padded", ...props }) => /* @__PURE__ */ jsx("li", {
90
+ "data-slot": "settings-panel",
91
+ ...props,
92
+ className: cn("block min-w-0", inset === "padded" && "p-4")
93
+ });
94
+ export { SettingsPanel, SettingsRow, SettingsSection, settingsRowIds };
package/dist/index.d.ts CHANGED
@@ -79,8 +79,8 @@ import { Kbd, KbdKey, KbdKeys, KbdNamedKey, KbdNavigator, KbdPlatform, KbdProps,
79
79
  import { LEGAL_TEXT_CLASS_NAME, Prose } from "./components/prose.js";
80
80
  import { Label } from "./components/label.js";
81
81
  import { LabelVariant } from "./components/label-classes.js";
82
- import { List, ListGroup, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle } from "./components/list-shell.js";
83
- import { ListEmpty, ListGroupAction, ListGroupCount, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemMedia, ListItemStatus, ListItemTitle, StatusTone } from "./components/list.js";
82
+ import { List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItemMedia } from "./components/list-shell.js";
83
+ import { ListEmpty, ListGroupCount, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemStatus, ListItemTitle, StatusTone } from "./components/list.js";
84
84
  import { MenuPreviewLayout, PreviewPane } from "./components/preview-pane.js";
85
85
  import { MenuSection } from "./components/menu-section.js";
86
86
  import { OUTLINE_CONTROL_MIN_SIZE, OUTLINE_EMPHASIS, OutlineEmphasis, OutlineItem, OutlinePortrait, OutlineRail, OutlineRailProps, outlineEntryText } from "./components/outline-rail.js";
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import { HighlightedTextarea } from "./components/highlighted-textarea.js";
36
36
  import { Input } from "./components/input.js";
37
37
  import { InlineRenameInput } from "./components/inline-rename.js";
38
38
  import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/input-group.js";
39
- import { ListEmpty, ListGroupAction, ListGroupCount, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemMedia, ListItemStatus, ListItemTitle } from "./components/list.js";
39
+ import { ListEmpty, ListGroupCount, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemStatus, ListItemTitle } from "./components/list.js";
40
40
  import { SearchField } from "./components/search-field.js";
41
41
  import { InputOTP, InputOTPSeparator, InputOTPSlot } from "./components/input-otp.js";
42
42
  import { Kbd, formatKeys, kbdPlatformOf, useKbdPlatform } from "./components/kbd.js";
@@ -54,7 +54,7 @@ import { ScrollToTop } from "./components/scroll-to-top.js";
54
54
  import { SecretInput } from "./components/secret-input.js";
55
55
  import { SegmentedIconToggle } from "./components/segmented-icon-toggle.js";
56
56
  import { Select, SelectContent as SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue } from "./components/select.js";
57
- import { List, ListGroup, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle } from "./components/list-shell.js";
57
+ import { List, ListGroup, ListGroupAction, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItemMedia } from "./components/list-shell.js";
58
58
  import { ResizeSeparator, Separator, TextSeparator } from "./components/separator.js";
59
59
  import { Sheet, SheetBackdrop, SheetClose, SheetContent as SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, SheetTitle, SheetTrigger } from "./components/sheet.js";
60
60
  import { InputOTPGroup } from "./components/input-otp-face.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/ui",
3
- "version": "0.78.0",
3
+ "version": "0.79.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",
@@ -306,6 +306,10 @@
306
306
  "types": "./dist/components/list-shell.d.ts",
307
307
  "import": "./dist/components/list-shell.js"
308
308
  },
309
+ "./settings": {
310
+ "types": "./dist/components/settings.d.ts",
311
+ "import": "./dist/components/settings.js"
312
+ },
309
313
  "./kbd": {
310
314
  "types": "./dist/components/kbd.d.ts",
311
315
  "import": "./dist/components/kbd.js"
@@ -977,12 +981,12 @@
977
981
  },
978
982
  "scripts": {
979
983
  "clean": "git clean -xdf dist .cache .turbo node_modules",
980
- "build": "tsdown",
984
+ "build": "bun --bun tsdown",
981
985
  "pack:dry-run": "bun pm pack --dry-run",
982
986
  "test": "bun run test:unit",
983
987
  "test:unit": "bun test --isolate --path-ignore-patterns '**/*.playwright.spec.ts'",
984
988
  "test:property": "bun test --preload @stll/property-testing/preload $(grep -rlE 'fc\\.assert|assertProperty' src --include='*.test.ts')",
985
- "test:browser": "playwright test --config playwright.config.ts",
989
+ "test:browser": "bun --bun playwright test --config playwright.config.ts",
986
990
  "pack:check": "cd ../.. && bun scripts/check-published-exports.ts packages/ui",
987
991
  "typecheck": "bun check --no-pretty --all --project=tsconfig.json",
988
992
  "lint": "cd ../.. && bun scripts/lint.ts packages/ui",