@stll/ui 0.100.0 → 0.101.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.
@@ -2,6 +2,7 @@ import { BUTTON_LAYOUT_CLASS_NAMES, ButtonFaceSize } from "./button-classes.js";
2
2
  import { ButtonTokenVariant } from "./button.shared.js";
3
3
  import { ComponentType, ReactNode } from "react";
4
4
  import { ControlSize } from "../lib/control-size.js";
5
+ import { FieldDensity, FieldLayout, FormArrangement } from "./field-classes.js";
5
6
  import { SegmentedIconToggleSize } from "./toggle-group-classes.js";
6
7
  import { SwitchSize } from "./toggle-classes.js";
7
8
  type ButtonFaceProps = {
@@ -105,17 +106,18 @@ export declare const ChoiceFace: ({ children, className }: {
105
106
  children: ReactNode;
106
107
  className?: string | undefined;
107
108
  }) => import("react").JSX.Element;
109
+ type FormFaceProps = FormArrangement & {
110
+ children: ReactNode;
111
+ /** Places the box, as on `Form`. */
112
+ className?: string | undefined;
113
+ /** The live form's landmark (`search`). */
114
+ role?: "search" | undefined;
115
+ };
108
116
  /**
109
- * How a field's face lays out its parts, in `Form`'s names: `stack` puts the
110
- * caption over the control over its lines (the field's column), `inline` a
111
- * checkbox or switch beside its caption.
112
- */
113
- type FieldFaceLayout = "stack" | "inline";
114
- /**
115
- * How close a field's face sets its parts: `snug` a step closer (a checkbox
116
- * row over its line).
117
+ * A form's box, as `Form` draws it: a pending view's column of field faces
118
+ * takes the live form's `layout` and `density`, so the two share one box.
117
119
  */
118
- type FieldFaceDensity = "default" | "snug";
120
+ export declare const FormFace: (props: FormFaceProps) => import("react").JSX.Element;
119
121
  /**
120
122
  * A form field's face, as `Field` draws it: the caption, the control's face
121
123
  * and the quiet lines a pending view puts in, in the field's own box.
@@ -123,8 +125,8 @@ type FieldFaceDensity = "default" | "snug";
123
125
  export declare const FieldFace: ({ children, className, density, layout }: {
124
126
  children: ReactNode;
125
127
  className?: string | undefined;
126
- density?: FieldFaceDensity | undefined;
127
- layout?: FieldFaceLayout | undefined;
128
+ density?: FieldDensity | undefined;
129
+ layout?: FieldLayout | undefined;
128
130
  }) => import("react").JSX.Element;
129
131
  /** A field's quiet line, as `FieldDescription` draws it. */
130
132
  export declare const FieldDescriptionFace: ({ children, className }: {
@@ -3,7 +3,7 @@ import { CONTROL_SIZE } from "../lib/control-size.js";
3
3
  import { FIELD_TRIGGER_CLASS_NAME } from "../lib/field-trigger.js";
4
4
  import { cn } from "../lib/utils.js";
5
5
  import { BUTTON_BASE_CLASS, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_SIZE_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES } from "./button-classes.js";
6
- import { FIELD_CLASS_NAME, FIELD_DESCRIPTION_CLASS_NAME } from "./field-classes.js";
6
+ import { FIELD_DESCRIPTION_CLASS_NAME, fieldBoxClassName, formBoxClassName } from "./field-classes.js";
7
7
  import { INPUT_CONTROL_CLASS_NAME, INPUT_ELEMENT_CLASS_NAME, INPUT_SIZE_CLASS_NAMES } from "./input-control.js";
8
8
  import { LABEL_VARIANT_CLASS_NAME } from "./label-classes.js";
9
9
  import { SELECT_TRIGGER_ICON_CLASS_NAME, SELECT_TRIGGER_SIZE_CLASS_NAMES, SELECT_VALUE_CLASS_NAME } from "./select-classes.js";
@@ -130,20 +130,25 @@ const ChoiceFace = ({ children, className }) => /* @__PURE__ */ jsx("span", {
130
130
  "data-slot": "choice-face",
131
131
  children
132
132
  });
133
- const FIELD_FACE_LAYOUT_CLASS_NAMES = {
134
- stack: "",
135
- inline: "flex-row items-center"
136
- };
137
- const FIELD_FACE_DENSITY_CLASS_NAMES = {
138
- default: "",
139
- snug: "gap-1"
140
- };
133
+ /**
134
+ * A form's box, as `Form` draws it: a pending view's column of field faces
135
+ * takes the live form's `layout` and `density`, so the two share one box.
136
+ */
137
+ const FormFace = (props) => /* @__PURE__ */ jsx("div", {
138
+ className: cn(formBoxClassName(props), props.className),
139
+ "data-slot": "form-face",
140
+ role: props.role,
141
+ children: props.children
142
+ });
141
143
  /**
142
144
  * A form field's face, as `Field` draws it: the caption, the control's face
143
145
  * and the quiet lines a pending view puts in, in the field's own box.
144
146
  */
145
- const FieldFace = ({ children, className, density = "default", layout = "stack" }) => /* @__PURE__ */ jsx("div", {
146
- className: cn(FIELD_CLASS_NAME, FIELD_FACE_LAYOUT_CLASS_NAMES[layout], FIELD_FACE_DENSITY_CLASS_NAMES[density], className),
147
+ const FieldFace = ({ children, className, density, layout }) => /* @__PURE__ */ jsx("div", {
148
+ className: cn(fieldBoxClassName({
149
+ density,
150
+ layout
151
+ }), className),
147
152
  "data-slot": "field-face",
148
153
  children
149
154
  });
@@ -210,4 +215,4 @@ const SplitButtonFace = ({ children, size = "md" }) => /* @__PURE__ */ jsxs("spa
210
215
  children: /* @__PURE__ */ jsx(SplitButtonChevron, {})
211
216
  })]
212
217
  });
213
- export { ButtonFace, CheckboxFace, ChoiceFace, FaceLabelPending, FieldDescriptionFace, FieldFace, FieldTriggerFace, InputFace, LabelFace, SPLIT_BUTTON_PRIMARY_CLASS, SPLIT_BUTTON_ROOT_CLASS, SPLIT_BUTTON_TRIGGER_CLASS, SegmentedIconToggleFace, SelectTriggerFace, SplitButtonChevron, SplitButtonFace, SwitchFace, TabsFace, buttonFaceClassName };
218
+ export { ButtonFace, CheckboxFace, ChoiceFace, FaceLabelPending, FieldDescriptionFace, FieldFace, FieldTriggerFace, FormFace, InputFace, LabelFace, SPLIT_BUTTON_PRIMARY_CLASS, SPLIT_BUTTON_ROOT_CLASS, SPLIT_BUTTON_TRIGGER_CLASS, SegmentedIconToggleFace, SelectTriggerFace, SplitButtonChevron, SplitButtonFace, SwitchFace, TabsFace, buttonFaceClassName };
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { DatePickerPopover } from "./date-picker-popover.js";
4
+ import { fieldBoxClassName } from "./field-classes.js";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { useId, useRef, useState } from "react";
6
7
  // src/components/date-range-filter.tsx
@@ -13,7 +14,7 @@ const DateRangeFilter = ({ from, to, onFromChange, onToChange, fromLabel, toLabe
13
14
  return /* @__PURE__ */ jsxs("div", {
14
15
  className: cn(orientation === "horizontal" ? "grid grid-cols-2 gap-2" : "flex flex-col gap-1.5", className),
15
16
  children: [/* @__PURE__ */ jsxs("div", {
16
- className: "flex min-w-0 flex-col gap-1.5",
17
+ className: cn(fieldBoxClassName({}), "min-w-0"),
17
18
  children: [/* @__PURE__ */ jsx("span", {
18
19
  id: `${id}-from-label`,
19
20
  className: "text-muted-foreground text-xs font-medium",
@@ -43,7 +44,7 @@ const DateRangeFilter = ({ from, to, onFromChange, onToChange, fromLabel, toLabe
43
44
  }
44
45
  })]
45
46
  }), /* @__PURE__ */ jsxs("div", {
46
- className: "flex min-w-0 flex-col gap-1.5",
47
+ className: cn(fieldBoxClassName({}), "min-w-0"),
47
48
  children: [/* @__PURE__ */ jsx("span", {
48
49
  id: `${id}-to-label`,
49
50
  className: "text-muted-foreground text-xs font-medium",
@@ -1,4 +1,37 @@
1
- /** A field's column: its caption, its control and its quiet lines. */
2
- export declare const FIELD_CLASS_NAME = "flex flex-col items-start gap-2";
1
+ /**
2
+ * How a field lays out its parts: `stack` puts the caption over the control
3
+ * over its quiet lines (the field's column), `inline` a checkbox or switch
4
+ * beside its caption.
5
+ */
6
+ export type FieldLayout = "stack" | "inline";
7
+ /**
8
+ * How close a field sets its parts: `snug` a step closer (a checkbox row
9
+ * over its line).
10
+ */
11
+ export type FieldDensity = "default" | "snug";
12
+ type FieldClassOptions = {
13
+ layout?: FieldLayout | undefined;
14
+ density?: FieldDensity | undefined;
15
+ };
16
+ /** A field's box: its caption, its control and its quiet lines. */
17
+ export declare const fieldBoxClassName: ({ layout, density }: FieldClassOptions) => string;
3
18
  /** A field's quiet line under its control. */
4
- export declare const FIELD_DESCRIPTION_CLASS_NAME = "text-muted-foreground text-xs";
19
+ export declare const FIELD_DESCRIPTION_CLASS_NAME = "text-muted-foreground text-xs";
20
+ /** How a form lays out its children. */
21
+ type FormLayout = "stack" | "inline" | "sections";
22
+ /** Space between a stacked or inline form's fields and its actions. */
23
+ type FormDensity = "default" | "snug" | "compact";
24
+ /**
25
+ * A form's arrangement. `density` sets the space between the children, so
26
+ * it applies to `stack` and `inline`; `sections` own their spacing.
27
+ */
28
+ export type FormArrangement = {
29
+ layout?: Exclude<FormLayout, "sections"> | undefined;
30
+ density?: FormDensity | undefined;
31
+ } | {
32
+ layout: "sections";
33
+ density?: never;
34
+ };
35
+ /** A form's box: the classes `Form` and `FormFace` draw it with. */
36
+ export declare const formBoxClassName: (arrangement: FormArrangement) => string;
37
+ export {};
@@ -1,6 +1,26 @@
1
1
  // src/components/field-classes.ts
2
- /** A field's column: its caption, its control and its quiet lines. */
3
- const FIELD_CLASS_NAME = "flex flex-col items-start gap-2";
2
+ const FIELD_LAYOUT_CLASS_NAME = {
3
+ stack: "flex-col items-start",
4
+ inline: "flex-row items-center"
5
+ };
6
+ const FIELD_DENSITY_CLASS_NAME = {
7
+ default: "gap-2",
8
+ snug: "gap-1"
9
+ };
10
+ /** A field's box: its caption, its control and its quiet lines. */
11
+ const fieldBoxClassName = ({ layout = "stack", density = "default" }) => `flex ${FIELD_LAYOUT_CLASS_NAME[layout]} ${FIELD_DENSITY_CLASS_NAME[density]}`;
4
12
  /** A field's quiet line under its control. */
5
13
  const FIELD_DESCRIPTION_CLASS_NAME = "text-muted-foreground text-xs";
6
- export { FIELD_CLASS_NAME, FIELD_DESCRIPTION_CLASS_NAME };
14
+ const FORM_LAYOUT_CLASS_NAME = {
15
+ stack: "flex-col",
16
+ inline: "flex-row flex-wrap items-center",
17
+ sections: "min-h-0 flex-col"
18
+ };
19
+ const FORM_DENSITY_CLASS_NAME = {
20
+ default: "gap-4",
21
+ snug: "gap-3",
22
+ compact: "gap-2"
23
+ };
24
+ /** A form's box: the classes `Form` and `FormFace` draw it with. */
25
+ const formBoxClassName = (arrangement) => arrangement.layout === "sections" ? `flex w-full ${FORM_LAYOUT_CLASS_NAME.sections}` : `flex w-full ${FORM_LAYOUT_CLASS_NAME[arrangement.layout ?? "stack"]} ${FORM_DENSITY_CLASS_NAME[arrangement.density ?? "default"]}`;
26
+ export { FIELD_DESCRIPTION_CLASS_NAME, fieldBoxClassName, formBoxClassName };
@@ -1,5 +1,17 @@
1
1
  import { Field as Field$1 } from "@base-ui/react/field";
2
- declare const Field: ({ className, ...props }: Field$1.Root.Props) => import("react").JSX.Element;
2
+ import { FieldDensity, FieldLayout } from "./field-classes.js";
3
+ /**
4
+ * `className` places the field in its form (width, flex or grid item
5
+ * placement, margin); how it lays out its caption, control and lines is
6
+ * `layout` and `density` (lint: `form-layout-owner`). No `render` or
7
+ * `style`: either would replace the field's own box.
8
+ */
9
+ type FieldProps = Omit<Field$1.Root.Props, "className" | "render" | "style"> & {
10
+ className?: string | undefined;
11
+ layout?: FieldLayout | undefined;
12
+ density?: FieldDensity | undefined;
13
+ };
14
+ declare const Field: ({ className, density, layout, ...props }: FieldProps) => import("react").JSX.Element;
3
15
  declare const FieldLabel: ({ className, ...props }: Field$1.Label.Props) => import("react").JSX.Element;
4
16
  declare const FieldItem: ({ className, ...props }: Field$1.Item.Props) => import("react").JSX.Element;
5
17
  declare const FieldDescription: ({ className, ...props }: Field$1.Description.Props) => import("react").JSX.Element;
@@ -1,14 +1,19 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.js";
3
- import { FIELD_CLASS_NAME, FIELD_DESCRIPTION_CLASS_NAME } from "./field-classes.js";
3
+ import { FIELD_DESCRIPTION_CLASS_NAME, fieldBoxClassName } from "./field-classes.js";
4
4
  import { LABEL_VARIANT_CLASS_NAME } from "./label-classes.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { Field as Field$1 } from "@base-ui/react/field";
7
7
  // src/components/field.tsx
8
- const Field = ({ className, ...props }) => /* @__PURE__ */ jsx(Field$1.Root, {
9
- className: cn(FIELD_CLASS_NAME, className),
8
+ const Field = ({ className, density, layout, ...props }) => /* @__PURE__ */ jsx(Field$1.Root, {
9
+ className: cn(fieldBoxClassName({
10
+ density,
11
+ layout
12
+ }), className),
10
13
  "data-slot": "field",
11
- ...props
14
+ ...props,
15
+ render: void 0,
16
+ style: void 0
12
17
  });
13
18
  const FieldLabel = ({ className, ...props }) => /* @__PURE__ */ jsx(Field$1.Label, {
14
19
  className: cn(LABEL_VARIANT_CLASS_NAME.default, className),
@@ -1,15 +1,18 @@
1
1
  import { Form as Form$1 } from "@base-ui/react/form";
2
- import { VariantProps } from "class-variance-authority";
3
- declare const formVariants: (props?: ({
4
- density?: "compact" | "default" | "snug" | null | undefined;
5
- layout?: "inline" | "stack" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
2
+ import { FormArrangement } from "./field-classes.js";
7
3
  /**
8
4
  * Errors a server returned for the last submit, keyed by each `Field`'s
9
5
  * `name`: one message or several.
10
6
  */
11
7
  type FormErrors = NonNullable<Form$1.Props["errors"]>;
12
- type FormProps = Form$1.Props & VariantProps<typeof formVariants> & {
8
+ /**
9
+ * `className` places the form in its parent (margin, size, flex or grid item
10
+ * placement, position); the arrangement of its children is `layout` and
11
+ * `density` (lint: `form-layout-owner`). No `render` or `style`: either would
12
+ * replace the form's own box.
13
+ */
14
+ type FormProps = Omit<Form$1.Props, "className" | "render" | "style"> & FormArrangement & {
15
+ className?: string | undefined;
13
16
  dirty?: boolean;
14
17
  onDiscard?: (() => void) | undefined;
15
18
  };
@@ -42,5 +45,5 @@ type FormProps = Form$1.Props & VariantProps<typeof formVariants> & {
42
45
  * `dirty` and `onDiscard` register the form with an enclosing `Dialog`'s
43
46
  * unsaved-changes guard.
44
47
  */
45
- declare const Form: ({ className, density, layout, dirty, onDiscard, children, ...props }: FormProps) => import("react").JSX.Element;
46
- export { Form, type FormErrors, type FormProps, formVariants };
48
+ declare const Form: (props: FormProps) => import("react").JSX.Element;
49
+ export { Form, type FormErrors, type FormProps };
@@ -1,27 +1,10 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { DialogFormState } from "./dialog-form-state.js";
4
+ import { formBoxClassName } from "./field-classes.js";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { cva } from "class-variance-authority";
6
6
  import { Form as Form$1 } from "@base-ui/react/form";
7
7
  // src/components/form.tsx
8
- const formVariants = cva("flex w-full", {
9
- defaultVariants: {
10
- density: "default",
11
- layout: "stack"
12
- },
13
- variants: {
14
- density: {
15
- default: "gap-4",
16
- snug: "gap-3",
17
- compact: "gap-2"
18
- },
19
- layout: {
20
- stack: "flex-col",
21
- inline: "flex-row items-center"
22
- }
23
- }
24
- });
25
8
  /**
26
9
  * A form whose fields report their own errors.
27
10
  *
@@ -51,16 +34,18 @@ const formVariants = cva("flex w-full", {
51
34
  * `dirty` and `onDiscard` register the form with an enclosing `Dialog`'s
52
35
  * unsaved-changes guard.
53
36
  */
54
- const Form = ({ className, density, layout, dirty = false, onDiscard, children, ...props }) => /* @__PURE__ */ jsxs(Form$1, {
55
- className: cn(formVariants({
56
- density,
57
- layout
58
- }), className),
59
- "data-slot": "form",
60
- ...props,
61
- children: [/* @__PURE__ */ jsx(DialogFormState, {
62
- dirty,
63
- onDiscard
64
- }), children]
65
- });
66
- export { Form, formVariants };
37
+ const Form = (props) => {
38
+ const { className, density, layout, dirty = false, onDiscard, children, ...rest } = props;
39
+ return /* @__PURE__ */ jsxs(Form$1, {
40
+ className: cn(formBoxClassName(props), className),
41
+ "data-slot": "form",
42
+ ...rest,
43
+ render: void 0,
44
+ style: void 0,
45
+ children: [/* @__PURE__ */ jsx(DialogFormState, {
46
+ dirty,
47
+ onDiscard
48
+ }), children]
49
+ });
50
+ };
51
+ export { Form };
@@ -19,14 +19,23 @@ declare const TOAST_ICONS: {
19
19
  readonly warning: React.JSX.Element;
20
20
  };
21
21
  type ToastType = keyof typeof TOAST_ICONS;
22
+ /**
23
+ * A toast's one action. Using it runs `onClick` once and closes the toast:
24
+ * a second click, or a click on a toast already on its way out, does nothing.
25
+ */
22
26
  type ToastAction = {
23
27
  label: React.ReactNode;
24
28
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
29
+ /**
30
+ * The toast reports a running job, and the action's result (cancelled,
31
+ * retried, finished) is written back into this same toast, so it stays
32
+ * open after the action runs. The action still runs only once; the caller
33
+ * replaces or clears it when it updates the toast.
34
+ */
35
+ resultReportedInToast?: true;
25
36
  };
26
- type ToastActionProps = ToastManagerAddOptions<ToastData>["actionProps"];
27
37
  type ToastOptions = Omit<ToastManagerAddOptions<ToastData>, "actionProps" | "title" | "type"> & {
28
38
  action?: ToastAction | undefined;
29
- actionProps?: ToastActionProps;
30
39
  };
31
40
  type ToastUpdateFields = Partial<Omit<ToastOptions, "timeout">> & {
32
41
  title?: React.ReactNode | undefined;
@@ -73,9 +82,8 @@ declare const AnchoredToastProvider: ({ children, ...props }: Toast.Provider.Pro
73
82
  * without an action merge: an action belongs to the call that raised it, and
74
83
  * a loading toast is owned by the promise that will settle it.
75
84
  */
76
- declare function toastDedupeId({ action, actionProps, description, title, type }: {
85
+ declare function toastDedupeId({ action, description, title, type }: {
77
86
  action?: ToastAction | undefined;
78
- actionProps?: ToastActionProps | undefined;
79
87
  description?: React.ReactNode | undefined;
80
88
  title: React.ReactNode;
81
89
  type?: ToastType | undefined;
@@ -22,10 +22,7 @@ const TOAST_ICONS = {
22
22
  warning: /* @__PURE__ */ jsx(TriangleAlertIcon, { className: "text-warning" })
23
23
  };
24
24
  const stellaToast = Object.assign((title, options) => addToast(title, void 0, options), {
25
- add: (options) => toastManager.add(normalizeToastAddOptions({
26
- ...options,
27
- id: options.id ?? toastDedupeId(options)
28
- })),
25
+ add: (options) => toastManager.add(normalizeToastAddOptions(options)),
29
26
  close: (id) => {
30
27
  toastManager.close(id);
31
28
  },
@@ -106,6 +103,7 @@ const Toasts = ({ position }) => {
106
103
  children: [toastItem.actionProps && /* @__PURE__ */ jsx(Toast.Action, {
107
104
  className: cn(buttonVariants({ size: "xs" }), "select-none"),
108
105
  "data-slot": "toast-action",
106
+ disabled: toastItem.transitionStatus === "ending",
109
107
  children: toastItem.actionProps.children
110
108
  }), /* @__PURE__ */ jsx(Toast.Close, {
111
109
  className: "text-muted-foreground hover:text-foreground shrink-0 cursor-pointer rounded-sm p-0.5 select-none",
@@ -192,6 +190,7 @@ const AnchoredToasts = () => {
192
190
  }), toastItem.actionProps && /* @__PURE__ */ jsx(Toast.Action, {
193
191
  className: cn(buttonVariants({ size: "xs" }), "ms-auto shrink-0 select-none"),
194
192
  "data-slot": "toast-action",
193
+ disabled: toastItem.transitionStatus === "ending",
195
194
  children: toastItem.actionProps.children
196
195
  })]
197
196
  })
@@ -202,24 +201,32 @@ const AnchoredToasts = () => {
202
201
  });
203
202
  };
204
203
  function addToast(title, type, options) {
205
- const addOptions = {
204
+ return toastManager.add(normalizeToastAddOptions({
206
205
  ...options,
207
206
  title,
208
207
  type
209
- };
210
- return toastManager.add(normalizeToastAddOptions({
211
- ...addOptions,
212
- id: addOptions.id ?? toastDedupeId(addOptions)
213
208
  }));
214
209
  }
210
+ let toastSerial = 0;
211
+ /**
212
+ * Every toast gets its id here, before Base UI sees it, so an action's handler
213
+ * can close the very toast it belongs to.
214
+ */
215
+ function resolveToastId(options) {
216
+ if (options.id !== void 0 && options.id !== "") return options.id;
217
+ const dedupeId = toastDedupeId(options);
218
+ if (dedupeId !== void 0) return dedupeId;
219
+ toastSerial += 1;
220
+ return `stella-toast-${String(toastSerial)}`;
221
+ }
215
222
  /**
216
223
  * The same message raised again refreshes the toast already on screen (and
217
224
  * restarts its timer) instead of stacking a copy. Only plain-text messages
218
225
  * without an action merge: an action belongs to the call that raised it, and
219
226
  * a loading toast is owned by the promise that will settle it.
220
227
  */
221
- function toastDedupeId({ action, actionProps, description, title, type }) {
222
- if (type === "loading" || action !== void 0 || actionProps !== void 0 || typeof title !== "string" || description !== void 0 && description !== null && typeof description !== "string") return;
228
+ function toastDedupeId({ action, description, title, type }) {
229
+ if (type === "loading" || action !== void 0 || typeof title !== "string" || description !== void 0 && description !== null && typeof description !== "string") return;
223
230
  return `toast-dedupe:${JSON.stringify([
224
231
  type ?? "neutral",
225
232
  title,
@@ -244,13 +251,12 @@ const subscribeWindowFocus = (onChange) => {
244
251
  const readWindowFocus = () => document.hasFocus();
245
252
  const readServerWindowFocus = () => true;
246
253
  function normalizeToastAddOptions(options) {
247
- const { action, actionProps, data, timeout, type, ...addOptions } = options;
254
+ const { action: _action, data, timeout, type, ...addOptions } = options;
255
+ const id = resolveToastId(options);
248
256
  return {
249
257
  ...addOptions,
250
- ...normalizeToastActionProps({
251
- action,
252
- actionProps
253
- }),
258
+ id,
259
+ ...toastActionUpdate(options, id),
254
260
  data: {
255
261
  ...data,
256
262
  timeoutPolicy: toastTimeoutPolicy(timeout)
@@ -260,14 +266,10 @@ function normalizeToastAddOptions(options) {
260
266
  };
261
267
  }
262
268
  function normalizeToastUpdateOptions(options, previous) {
263
- const { action, actionProps, data, timeout, type, ...updateOptions } = options;
269
+ const { action: _action, data, timeout, type, ...updateOptions } = options;
264
270
  return {
265
271
  ...updateOptions,
266
- ...normalizeToastActionProps({
267
- action,
268
- actionProps,
269
- includeEmptyActionProps: Object.hasOwn(options, "action") || Object.hasOwn(options, "actionProps")
270
- }),
272
+ ...toastActionUpdate(options, previous.id),
271
273
  ...type === void 0 ? {} : { type },
272
274
  data: {
273
275
  ...Object.hasOwn(options, "data") ? data : previous.data,
@@ -281,14 +283,10 @@ function resolveToastUpdateTimeout(options, previous) {
281
283
  const timeoutPolicy = previous.data?.timeoutPolicy;
282
284
  if (timeoutPolicy?.type === "explicit") return { timeout: timeoutPolicy.timeout };
283
285
  if (previous.type === "loading" && options.type === void 0) return {};
284
- const { action, actionProps, type, ...updateOptions } = options;
286
+ const { action, type, ...updateOptions } = options;
285
287
  const update = {
286
288
  ...updateOptions,
287
- ...normalizeToastActionProps({
288
- action,
289
- actionProps,
290
- includeEmptyActionProps: Object.hasOwn(options, "action") || Object.hasOwn(options, "actionProps")
291
- }),
289
+ ...Object.hasOwn(options, "action") ? { actionProps: action === void 0 ? void 0 : {} } : {},
292
290
  ...type === void 0 ? {} : { type }
293
291
  };
294
292
  return { timeout: getDefaultToastTimeout({
@@ -302,13 +300,35 @@ function toastTimeoutPolicy(timeout) {
302
300
  timeout: normalizeToastTimeout(timeout)
303
301
  };
304
302
  }
305
- function normalizeToastActionProps({ action, actionProps, includeEmptyActionProps = false }) {
306
- if (action === void 0) return actionProps === void 0 && !includeEmptyActionProps ? {} : { actionProps };
307
- return { actionProps: {
308
- ...actionProps,
303
+ /**
304
+ * An omitted action leaves the toast's action as it is; `action: undefined`
305
+ * clears it, also when `add` refreshes a toast already shown under that id.
306
+ */
307
+ function toastActionUpdate(options, toastId) {
308
+ if (!Object.hasOwn(options, "action")) return {};
309
+ return { actionProps: options.action === void 0 ? void 0 : toastActionProps(options.action, toastId) };
310
+ }
311
+ /**
312
+ * The action runs at most once per toast it was given to, and not at all once
313
+ * the toast is closing (the button is disabled while it leaves). Unless its
314
+ * result is reported in the same toast, using it then closes the toast through
315
+ * the same store call as the close button, so focus moves on exactly as it does
316
+ * on dismiss, unless the action already moved it (a dialog, a navigation).
317
+ */
318
+ function toastActionProps(action, toastId) {
319
+ let used = false;
320
+ return {
309
321
  children: action.label,
310
- onClick: action.onClick
311
- } };
322
+ onClick: (event) => {
323
+ if (used) return;
324
+ used = true;
325
+ try {
326
+ action.onClick?.(event);
327
+ } finally {
328
+ if (action.resultReportedInToast !== true) toastManager.close(toastId);
329
+ }
330
+ }
331
+ };
312
332
  }
313
333
  /**
314
334
  * A short plain error closes on its own like any notice. An error that carries
@@ -333,16 +353,13 @@ function getPromiseToastOptions(option) {
333
353
  }
334
354
  function getPromiseToastUpdateOptions(option, value, type) {
335
355
  const resolved = typeof option === "function" ? option(value) : option;
336
- if (isToastUpdateOptions(resolved)) {
337
- const hasReplacementAction = resolved.action !== void 0 || Object.hasOwn(resolved, "actionProps");
338
- return {
339
- ...resolved,
340
- ...hasReplacementAction ? {} : { actionProps: void 0 },
341
- type
342
- };
343
- }
356
+ if (isToastUpdateOptions(resolved)) return {
357
+ ...Object.hasOwn(resolved, "action") ? {} : { action: void 0 },
358
+ ...resolved,
359
+ type
360
+ };
344
361
  return {
345
- actionProps: void 0,
362
+ action: void 0,
346
363
  title: resolved,
347
364
  type
348
365
  };
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ import { DirectionalIcon } from "./components/directional-icon.js";
42
42
  import { DropdownMenu as Menu, DropdownMenuCheckboxItem as MenuCheckboxItem, DropdownMenuContent as MenuPopup, DropdownMenuCreateHandle as MenuCreateHandle, DropdownMenuGroup as MenuGroup, DropdownMenuItem as MenuItem, DropdownMenuLabel as MenuGroupLabel, DropdownMenuLinkItem as MenuLinkItem, DropdownMenuPortal as MenuPortal, DropdownMenuRadioGroup as MenuRadioGroup, DropdownMenuRadioItem as MenuRadioItem, DropdownMenuSeparator as MenuSeparator, DropdownMenuShortcut as MenuShortcut, DropdownMenuSub as MenuSub, DropdownMenuSubContent as MenuSubPopup, DropdownMenuSubTrigger as MenuSubTrigger, DropdownMenuTrigger as MenuTrigger, MenuAnchor } from "./components/menu.js";
43
43
  import { Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity } from "./components/field.js";
44
44
  import { FileInput, FileInputProps } from "./components/file-input.js";
45
- import { Form, FormErrors, FormProps, formVariants } from "./components/form.js";
45
+ import { Form, FormErrors, FormProps } from "./components/form.js";
46
46
  import { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle } from "./components/frame.js";
47
47
  import { HexColorPicker, HexColorPickerProps } from "./components/hex-color-picker.js";
48
48
  import { HighlightedTextarea, HighlightedTextareaProps } from "./components/highlighted-textarea.js";
@@ -128,4 +128,4 @@ import { getInitials } from "./lib/initials.js";
128
128
  import { useIsMobile } from "./hooks/use-mobile.js";
129
129
  import { useLatest } from "./effects/effects.js";
130
130
  import { useViewportWidth } from "./hooks/use-viewport-width.js";
131
- export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, Accordion, AccordionPanel as AccordionContent, AccordionPanel, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogBackdrop, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogPopup, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPanel, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, AnchoredToastProvider, AntigravityLogoIcon, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator, Avatar, AvatarFallback, AvatarImage, BOARD_DRAG_OVERLAY_Z_INDEX, BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BidiDirection, BidiText, type BidiTextProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BuildKanbanBoardMatrixParams, Button, type ButtonFocusRing, type ButtonPlainShape, type ButtonProps, type ButtonSize, ButtonTextRun, type ButtonVariant, CONTROL_SIZE, CONTROL_SIZES, COPIED_RESET_MS, CalendarCell, CalendarDateRange, CalendarEntryButton, CalendarEntrySurface, CalendarGrid, CalendarHeaderCell, CalendarHeaderRow, Checkbox, ClaudeLogoIcon, Collapsible, CollapsiblePanel, CollapsibleTrigger, ColorPicker, ColorPickerContent, type ColorPickerContentProps, type ColorPickerProps, type ColorPreset, ColorVariants, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, type ControlSize, CopyButton, CopyFeedback, type CreateKanbanDropIntentParams, DEFAULT_PRESETS, DIALOG_MOBILE_LAYOUT, DIALOG_SIZE_CLASS_NAMES, DataTable, type DataTableAriaSort, type DataTableColumn, type DataTableProps, type DataTableRowAction, DatePickerPopover, type DatePickerPopoverProps, DestructiveActionConfirmation, DestructiveConfirmDialog, type DestructiveConfirmDialogProps, type DestructiveConfirmOutcome, DetailsGrid, DetailsItem, type DetailsLabelWidth, type DetailsOrientation, type DetailsVariant, Dialog, DialogBackdrop, DialogBackdrop as DialogOverlay, DialogClose, DialogPopup as DialogContent, DialogPopup, DialogCreateHandle, DialogDescription, DialogFooter, DialogFormState, DialogHeader, type DialogLabels, type DialogMobileLayout, DialogPanel, DialogPortal, DialogProvider, type DialogSize, DialogTitle, DialogTrigger, DialogViewport, DirectionalIcon, DiscordLogoIcon, Menu as DropdownMenu, Menu, MenuCheckboxItem as DropdownMenuCheckboxItem, MenuCheckboxItem, MenuPopup as DropdownMenuContent, MenuPopup, MenuCreateHandle as DropdownMenuCreateHandle, MenuCreateHandle, MenuGroup as DropdownMenuGroup, MenuGroup, MenuItem as DropdownMenuItem, MenuItem, MenuGroupLabel as DropdownMenuLabel, MenuGroupLabel, MenuLinkItem as DropdownMenuLinkItem, MenuLinkItem, MenuPortal as DropdownMenuPortal, MenuPortal, MenuRadioGroup as DropdownMenuRadioGroup, MenuRadioGroup, MenuRadioItem as DropdownMenuRadioItem, MenuRadioItem, MenuSeparator as DropdownMenuSeparator, MenuSeparator, MenuShortcut as DropdownMenuShortcut, MenuShortcut, MenuSub as DropdownMenuSub, MenuSub, MenuSubPopup as DropdownMenuSubContent, MenuSubPopup, MenuSubTrigger as DropdownMenuSubTrigger, MenuSubTrigger, MenuTrigger as DropdownMenuTrigger, MenuTrigger, Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity, FileInput, type FileInputProps, Form, type FormErrors, type FormProps, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, GeminiLogoIcon, GitHubLogoIcon, HexColorPicker, type HexColorPickerProps, HighlightedTextarea, type HighlightedTextareaProps, PreviewCard as HoverCard, PreviewCard, PreviewCardPopup as HoverCardContent, PreviewCardPopup, PreviewCardTrigger as HoverCardTrigger, PreviewCardTrigger, INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, InlineRenameInput, InlineSkeleton, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorDock, type InspectorDockMount, InspectorEmptyRow, InspectorEntityTab, type InspectorEntityTabInactiveIcon, InspectorFacetBar, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle, KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS, KANBAN_BOARD_AUTO_SCROLL_OPTIONS, KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_BOARD_AXES, KANBAN_BOARD_COLLISION_DETECTION, KANBAN_CARD_DRAG_MIME, KANBAN_CARD_STICKY_TOP_VAR, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX, KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, KANBAN_DIRECTIONS, KANBAN_DRAG_OVERLAY_Z_INDEX, KANBAN_HORIZONTAL_EDGES, KANBAN_MOUSE_ACTIVATION_DISTANCE, KANBAN_SORTABLE_ACTIVATION_MODES, KANBAN_STICKY_TOP_VAR, KANBAN_TOUCH_ACTIVATION_CONSTRAINT, KANBAN_VIRTUAL_CELL_PAGINATION, type KanbanBandToggleActivation, type KanbanBoardAxis, type KanbanBoardCell, type KanbanBoardColumn, type KanbanBoardCoordinate, type KanbanBoardDestination, type KanbanBoardLane, type KanbanBoardMatrix, type KanbanBuiltInGroup, type KanbanCardDragPreview, KanbanCardDragSurface, type KanbanCardDragSurfaceProps, type KanbanCardFieldSelection, type KanbanCardSelectionModifiers, KanbanCardShell, type KanbanCardShellProps, KanbanCellAction, type KanbanCellActionProps, type KanbanCellVirtualNavigation, KanbanCollapsedBandCaption, type KanbanCollapsedBandCaptionProps, type KanbanColumnBand, KanbanColumnBandHeader, type KanbanColumnBandHeaderProps, type KanbanColumnBandSpan, KanbanColumnHeader, type KanbanColumnHeaderProps, type KanbanDirection, type KanbanDragCancelEvent, type KanbanDragEndEvent, KanbanDragHandle, type KanbanDragHandleProps, type KanbanDragOverEvent, type KanbanDragStartEvent, type KanbanDropAxisChange, type KanbanDropIntent, type KanbanGroup, type KanbanGroupOption, type KanbanGrouping, type KanbanHorizontalEdge, type KanbanSchema, type KanbanSortableActivationMode, type KanbanSortableBindings, KanbanSortableBoard, type KanbanSortableBoardProps, type KanbanSortableCellPosition, type KanbanSubgroupBandHeaderContext, KanbanSubgroupBoard, type KanbanSubgroupBoardProps, type KanbanSubgroupCellContext, type KanbanSubgroupCollapsedBandCellContext, type KanbanSubgroupColumnHeaderContext, type KanbanSubgroupLaneColumnActionContext, type KanbanSubgroupLaneColumnSummaryContext, type KanbanSubgroupLaneIdentityContext, KanbanVirtualCell, type KanbanVirtualCellPagination, type KanbanVirtualCellProps, type KanbanVirtualCellSortableContext, type KanbanVirtualScrollRequest, Kbd, type KbdKey, type KbdKeys, type KbdNamedKey, type KbdNavigator, type KbdPlatform, type KbdProps, type KbdVariant, LEGAL_TEXT_CLASS_NAME, Label, type LabelVariant, List, ListEmpty, ListGroup, ListGroupAction, ListGroupCount, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItem, ListItemActions, ListItemContent, ListItemDescription, type ListItemLayout, ListItemMedia, ListItemStatus, ListItemTitle, MenuAnchor, MenuPreviewLayout, MenuSection, OUTLINE_CONTROL_MIN_SIZE, OUTLINE_EMPHASIS, OVERLAY_COLLISION_PADDING, OVERLAY_LAYER_CLASS_NAMES, OpenAILogoIcon, OptionColor, type OrderKanbanCellsByColumnsParams, OutlineEmphasis, OutlineItem, OutlinePortrait, OutlineRail, OutlineRailProps, OverlayLayer, PROPERTY_ROW_GRID, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTrigger, Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverPanel, PopoverTitle, PopoverTrigger, PreviewCardPrimitive, PreviewPane, Prose, type RegisterKanbanBoardAutoScrollOptions, type RegisterKanbanCardDragOptions, ResizeSeparator, type ResolveKanbanGroupValueParams, type ResolveKanbanGroupingParams, ResourceCalendar, ResourceCalendarColumn, ResourceCalendarEntry, ResourceCalendarEntryTone, ResourceCalendarLaneLayout, ResourceCalendarLanePlacement, ResourceCalendarPlacement, ResourceCalendarResource, ReviewAuthorAvatar, ReviewCommentAuthor, ReviewCommentCard, ReviewDecisionActions, ReviewDecisionEmphasis, ReviewDecisionSize, ReviewDecisionState, ReviewDiffDeletion, ReviewDiffInsertion, ReviewDiffSegment, ReviewDiffSegmentType, ReviewDiffText, ReviewOutOfDateNotice, ReviewOutOfDateReason, ReviewOutOfDateTone, ReviewSeverityDot, ReviewSeverityLevel, ReviewStatusBadge, ReviewStatusDot, ReviewStatusSize, ReviewStatusTone, ReviewStatusVariant, SHELL_CHROME_LAYER_CLASS_NAME, SIDEBAR_WIDTH_ICON_PX, SIDEBAR_WIDTH_PX, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, ScrollArea, ScrollBar, ScrollToTop, ScrollToTopProps, SearchField, type SearchFieldProps, SecretInput, type SecretInputProps, SegmentedIconToggle, Select, SelectPopup as SelectContent, SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetBackdrop as SheetOverlay, SheetClose, SheetPopup as SheetContent, SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, type SheetSide, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIdentityButton, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SortDirection, SortableHead, type StatusTone, StellaMark, StellaWordmarkLatin, TABLE_FIRST_LINE, TOAST_RIGHT_OFFSET_VAR, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX, TOOLTIP_OPEN_DELAY_MS, TRACKED_DELETION_STYLE, TRACKED_INSERTION_STYLE, Table, type TableAlign, TableBody, TableCaption, TableCell, type TableCellProps, type TableCellText, type TableColumnCapabilities, type TableColumnDescriptor, type TableDensity, type TableFirstLine, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableInset, type TableProps, TableRow, type TableSchema, type TableScroll, type TableTone, Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger, TextSeparator, Textarea, type TextareaProps, type ToastPosition, ToastProvider, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleProps, type ToggleVariant, Tooltip, TooltipPopup as TooltipContent, TooltipPopup, TooltipCreateHandle, TooltipFactTrigger, TooltipProvider, TooltipTrigger, TruncatedText, type TruncatedTextLines, type TruncatedTextProps, TypedCharacterEvent, UNKNOWN_AUTHOR_LABEL, type UseKanbanDropTargetOptions, type UseKanbanSortableOptions, UserText, type WorkspaceCompactNavigation, WorkspaceEndRail, type WorkspaceEndRailChatAction, type WorkspaceEndRailProps, type WorkspaceNavigation, WorkspaceShell, type WorkspaceShellProps, type WorkspaceTopBarContext, XLogoIcon, assertConsecutiveCalendarDates, badgeVariants, buildKanbanBoardMatrix, buttonAccessibleDisabledClass, buttonVariants, cn, composeRefs, containedEventHandler, containedHandler, contentDir, createKanbanDropIntent, duplicateColumnIds, emptyColor, entityTabGlyph, findTableColumn, formVariants, formatKeys, getFirstWeekday, getInitials, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, getKanbanGroupingPropertyId, getKanbanGroups, getKanbanHorizontalEdge, getLocaleWeekInfo, getResourceCalendarPlacement, getWeekendDays, hasKanbanColumnBands, hideableColumnIds, isKanbanGroupingRenderable, isStructuredInputType, isTextOverflowing, kanbanKeyboardCoordinates, kbdPlatformOf, layoutResourceCalendarEntries, nextCalendarDate, optionColors, orderKanbanCellsByColumns, outlineEntryText, registerKanbanBoardAutoScroll, registerKanbanCardDrag, resolveDragWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, resolveKanbanColumnBands, resolveKanbanGroupOptions, resolveKanbanGrouping, resolveKeyboardWidth, resolveOptionColor, resolveToastUpdateTimeout, reviewDiffSegmentKeys, reviewSeverityTone, selectKanbanCardFieldIds, selectKanbanRows, shouldForceSidebarCollapsed, sidebarIdentityTriggerClassName, sortableColumnIds, stellaToast, stripDirectionalControls, tableColumnIds, tableColumnSizing, toastCountdownMs, toastDedupeId, typedCharacter, useContentDir, useCopiedFeedback, useCopyConfirmation, useDestructiveActionConfirmation, useInspectorPaneWidth, useIsMobile, useKanbanDropTarget, useKanbanSortable, useKanbanSortableSensors, useKbdPlatform, useLatest, useSidebar, useSidebarInlineSize, useSidebarLayout, useViewportWidth, visibleColumnIds, withoutDirectionalControls };
131
+ export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, Accordion, AccordionPanel as AccordionContent, AccordionPanel, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogBackdrop, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogPopup, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPanel, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, AnchoredToastProvider, AntigravityLogoIcon, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator, Avatar, AvatarFallback, AvatarImage, BOARD_DRAG_OVERLAY_Z_INDEX, BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BidiDirection, BidiText, type BidiTextProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BuildKanbanBoardMatrixParams, Button, type ButtonFocusRing, type ButtonPlainShape, type ButtonProps, type ButtonSize, ButtonTextRun, type ButtonVariant, CONTROL_SIZE, CONTROL_SIZES, COPIED_RESET_MS, CalendarCell, CalendarDateRange, CalendarEntryButton, CalendarEntrySurface, CalendarGrid, CalendarHeaderCell, CalendarHeaderRow, Checkbox, ClaudeLogoIcon, Collapsible, CollapsiblePanel, CollapsibleTrigger, ColorPicker, ColorPickerContent, type ColorPickerContentProps, type ColorPickerProps, type ColorPreset, ColorVariants, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, type ControlSize, CopyButton, CopyFeedback, type CreateKanbanDropIntentParams, DEFAULT_PRESETS, DIALOG_MOBILE_LAYOUT, DIALOG_SIZE_CLASS_NAMES, DataTable, type DataTableAriaSort, type DataTableColumn, type DataTableProps, type DataTableRowAction, DatePickerPopover, type DatePickerPopoverProps, DestructiveActionConfirmation, DestructiveConfirmDialog, type DestructiveConfirmDialogProps, type DestructiveConfirmOutcome, DetailsGrid, DetailsItem, type DetailsLabelWidth, type DetailsOrientation, type DetailsVariant, Dialog, DialogBackdrop, DialogBackdrop as DialogOverlay, DialogClose, DialogPopup as DialogContent, DialogPopup, DialogCreateHandle, DialogDescription, DialogFooter, DialogFormState, DialogHeader, type DialogLabels, type DialogMobileLayout, DialogPanel, DialogPortal, DialogProvider, type DialogSize, DialogTitle, DialogTrigger, DialogViewport, DirectionalIcon, DiscordLogoIcon, Menu as DropdownMenu, Menu, MenuCheckboxItem as DropdownMenuCheckboxItem, MenuCheckboxItem, MenuPopup as DropdownMenuContent, MenuPopup, MenuCreateHandle as DropdownMenuCreateHandle, MenuCreateHandle, MenuGroup as DropdownMenuGroup, MenuGroup, MenuItem as DropdownMenuItem, MenuItem, MenuGroupLabel as DropdownMenuLabel, MenuGroupLabel, MenuLinkItem as DropdownMenuLinkItem, MenuLinkItem, MenuPortal as DropdownMenuPortal, MenuPortal, MenuRadioGroup as DropdownMenuRadioGroup, MenuRadioGroup, MenuRadioItem as DropdownMenuRadioItem, MenuRadioItem, MenuSeparator as DropdownMenuSeparator, MenuSeparator, MenuShortcut as DropdownMenuShortcut, MenuShortcut, MenuSub as DropdownMenuSub, MenuSub, MenuSubPopup as DropdownMenuSubContent, MenuSubPopup, MenuSubTrigger as DropdownMenuSubTrigger, MenuSubTrigger, MenuTrigger as DropdownMenuTrigger, MenuTrigger, Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity, FileInput, type FileInputProps, Form, type FormErrors, type FormProps, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, GeminiLogoIcon, GitHubLogoIcon, HexColorPicker, type HexColorPickerProps, HighlightedTextarea, type HighlightedTextareaProps, PreviewCard as HoverCard, PreviewCard, PreviewCardPopup as HoverCardContent, PreviewCardPopup, PreviewCardTrigger as HoverCardTrigger, PreviewCardTrigger, INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, InlineRenameInput, InlineSkeleton, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorDock, type InspectorDockMount, InspectorEmptyRow, InspectorEntityTab, type InspectorEntityTabInactiveIcon, InspectorFacetBar, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle, KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS, KANBAN_BOARD_AUTO_SCROLL_OPTIONS, KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_BOARD_AXES, KANBAN_BOARD_COLLISION_DETECTION, KANBAN_CARD_DRAG_MIME, KANBAN_CARD_STICKY_TOP_VAR, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX, KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, KANBAN_DIRECTIONS, KANBAN_DRAG_OVERLAY_Z_INDEX, KANBAN_HORIZONTAL_EDGES, KANBAN_MOUSE_ACTIVATION_DISTANCE, KANBAN_SORTABLE_ACTIVATION_MODES, KANBAN_STICKY_TOP_VAR, KANBAN_TOUCH_ACTIVATION_CONSTRAINT, KANBAN_VIRTUAL_CELL_PAGINATION, type KanbanBandToggleActivation, type KanbanBoardAxis, type KanbanBoardCell, type KanbanBoardColumn, type KanbanBoardCoordinate, type KanbanBoardDestination, type KanbanBoardLane, type KanbanBoardMatrix, type KanbanBuiltInGroup, type KanbanCardDragPreview, KanbanCardDragSurface, type KanbanCardDragSurfaceProps, type KanbanCardFieldSelection, type KanbanCardSelectionModifiers, KanbanCardShell, type KanbanCardShellProps, KanbanCellAction, type KanbanCellActionProps, type KanbanCellVirtualNavigation, KanbanCollapsedBandCaption, type KanbanCollapsedBandCaptionProps, type KanbanColumnBand, KanbanColumnBandHeader, type KanbanColumnBandHeaderProps, type KanbanColumnBandSpan, KanbanColumnHeader, type KanbanColumnHeaderProps, type KanbanDirection, type KanbanDragCancelEvent, type KanbanDragEndEvent, KanbanDragHandle, type KanbanDragHandleProps, type KanbanDragOverEvent, type KanbanDragStartEvent, type KanbanDropAxisChange, type KanbanDropIntent, type KanbanGroup, type KanbanGroupOption, type KanbanGrouping, type KanbanHorizontalEdge, type KanbanSchema, type KanbanSortableActivationMode, type KanbanSortableBindings, KanbanSortableBoard, type KanbanSortableBoardProps, type KanbanSortableCellPosition, type KanbanSubgroupBandHeaderContext, KanbanSubgroupBoard, type KanbanSubgroupBoardProps, type KanbanSubgroupCellContext, type KanbanSubgroupCollapsedBandCellContext, type KanbanSubgroupColumnHeaderContext, type KanbanSubgroupLaneColumnActionContext, type KanbanSubgroupLaneColumnSummaryContext, type KanbanSubgroupLaneIdentityContext, KanbanVirtualCell, type KanbanVirtualCellPagination, type KanbanVirtualCellProps, type KanbanVirtualCellSortableContext, type KanbanVirtualScrollRequest, Kbd, type KbdKey, type KbdKeys, type KbdNamedKey, type KbdNavigator, type KbdPlatform, type KbdProps, type KbdVariant, LEGAL_TEXT_CLASS_NAME, Label, type LabelVariant, List, ListEmpty, ListGroup, ListGroupAction, ListGroupCount, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItem, ListItemActions, ListItemContent, ListItemDescription, type ListItemLayout, ListItemMedia, ListItemStatus, ListItemTitle, MenuAnchor, MenuPreviewLayout, MenuSection, OUTLINE_CONTROL_MIN_SIZE, OUTLINE_EMPHASIS, OVERLAY_COLLISION_PADDING, OVERLAY_LAYER_CLASS_NAMES, OpenAILogoIcon, OptionColor, type OrderKanbanCellsByColumnsParams, OutlineEmphasis, OutlineItem, OutlinePortrait, OutlineRail, OutlineRailProps, OverlayLayer, PROPERTY_ROW_GRID, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTrigger, Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverPanel, PopoverTitle, PopoverTrigger, PreviewCardPrimitive, PreviewPane, Prose, type RegisterKanbanBoardAutoScrollOptions, type RegisterKanbanCardDragOptions, ResizeSeparator, type ResolveKanbanGroupValueParams, type ResolveKanbanGroupingParams, ResourceCalendar, ResourceCalendarColumn, ResourceCalendarEntry, ResourceCalendarEntryTone, ResourceCalendarLaneLayout, ResourceCalendarLanePlacement, ResourceCalendarPlacement, ResourceCalendarResource, ReviewAuthorAvatar, ReviewCommentAuthor, ReviewCommentCard, ReviewDecisionActions, ReviewDecisionEmphasis, ReviewDecisionSize, ReviewDecisionState, ReviewDiffDeletion, ReviewDiffInsertion, ReviewDiffSegment, ReviewDiffSegmentType, ReviewDiffText, ReviewOutOfDateNotice, ReviewOutOfDateReason, ReviewOutOfDateTone, ReviewSeverityDot, ReviewSeverityLevel, ReviewStatusBadge, ReviewStatusDot, ReviewStatusSize, ReviewStatusTone, ReviewStatusVariant, SHELL_CHROME_LAYER_CLASS_NAME, SIDEBAR_WIDTH_ICON_PX, SIDEBAR_WIDTH_PX, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, ScrollArea, ScrollBar, ScrollToTop, ScrollToTopProps, SearchField, type SearchFieldProps, SecretInput, type SecretInputProps, SegmentedIconToggle, Select, SelectPopup as SelectContent, SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetBackdrop as SheetOverlay, SheetClose, SheetPopup as SheetContent, SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, type SheetSide, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIdentityButton, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SortDirection, SortableHead, type StatusTone, StellaMark, StellaWordmarkLatin, TABLE_FIRST_LINE, TOAST_RIGHT_OFFSET_VAR, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX, TOOLTIP_OPEN_DELAY_MS, TRACKED_DELETION_STYLE, TRACKED_INSERTION_STYLE, Table, type TableAlign, TableBody, TableCaption, TableCell, type TableCellProps, type TableCellText, type TableColumnCapabilities, type TableColumnDescriptor, type TableDensity, type TableFirstLine, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableInset, type TableProps, TableRow, type TableSchema, type TableScroll, type TableTone, Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger, TextSeparator, Textarea, type TextareaProps, type ToastPosition, ToastProvider, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleProps, type ToggleVariant, Tooltip, TooltipPopup as TooltipContent, TooltipPopup, TooltipCreateHandle, TooltipFactTrigger, TooltipProvider, TooltipTrigger, TruncatedText, type TruncatedTextLines, type TruncatedTextProps, TypedCharacterEvent, UNKNOWN_AUTHOR_LABEL, type UseKanbanDropTargetOptions, type UseKanbanSortableOptions, UserText, type WorkspaceCompactNavigation, WorkspaceEndRail, type WorkspaceEndRailChatAction, type WorkspaceEndRailProps, type WorkspaceNavigation, WorkspaceShell, type WorkspaceShellProps, type WorkspaceTopBarContext, XLogoIcon, assertConsecutiveCalendarDates, badgeVariants, buildKanbanBoardMatrix, buttonAccessibleDisabledClass, buttonVariants, cn, composeRefs, containedEventHandler, containedHandler, contentDir, createKanbanDropIntent, duplicateColumnIds, emptyColor, entityTabGlyph, findTableColumn, formatKeys, getFirstWeekday, getInitials, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, getKanbanGroupingPropertyId, getKanbanGroups, getKanbanHorizontalEdge, getLocaleWeekInfo, getResourceCalendarPlacement, getWeekendDays, hasKanbanColumnBands, hideableColumnIds, isKanbanGroupingRenderable, isStructuredInputType, isTextOverflowing, kanbanKeyboardCoordinates, kbdPlatformOf, layoutResourceCalendarEntries, nextCalendarDate, optionColors, orderKanbanCellsByColumns, outlineEntryText, registerKanbanBoardAutoScroll, registerKanbanCardDrag, resolveDragWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, resolveKanbanColumnBands, resolveKanbanGroupOptions, resolveKanbanGrouping, resolveKeyboardWidth, resolveOptionColor, resolveToastUpdateTimeout, reviewDiffSegmentKeys, reviewSeverityTone, selectKanbanCardFieldIds, selectKanbanRows, shouldForceSidebarCollapsed, sidebarIdentityTriggerClassName, sortableColumnIds, stellaToast, stripDirectionalControls, tableColumnIds, tableColumnSizing, toastCountdownMs, toastDedupeId, typedCharacter, useContentDir, useCopiedFeedback, useCopyConfirmation, useDestructiveActionConfirmation, useInspectorPaneWidth, useIsMobile, useKanbanDropTarget, useKanbanSortable, useKanbanSortableSensors, useKbdPlatform, useLatest, useSidebar, useSidebarInlineSize, useSidebarLayout, useViewportWidth, visibleColumnIds, withoutDirectionalControls };
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import { DIALOG_MOBILE_LAYOUT, DIALOG_SIZE_CLASS_NAMES, Dialog, DialogBackdrop,
28
28
  import { DirectionalIcon } from "./components/directional-icon.js";
29
29
  import { Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity } from "./components/field.js";
30
30
  import { FileInput } from "./components/file-input.js";
31
- import { Form, formVariants } from "./components/form.js";
31
+ import { Form } from "./components/form.js";
32
32
  import { Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle } from "./components/frame.js";
33
33
  import { HexColorPicker } from "./components/hex-color-picker.js";
34
34
  import { DialogFormState } from "./components/dialog-form-state.js";
@@ -114,4 +114,4 @@ import { ReviewDiffDeletion, ReviewDiffInsertion, ReviewDiffText, TRACKED_DELETI
114
114
  import { ReviewOutOfDateNotice } from "./review/review-out-of-date-notice.js";
115
115
  import { ReviewSeverityDot, ReviewStatusDot, reviewSeverityTone } from "./review/review-severity-dot.js";
116
116
  import { ReviewStatusBadge } from "./review/review-status-badge.js";
117
- export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, Accordion, AccordionPanel as AccordionContent, AccordionPanel, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogBackdrop, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogPopup, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPanel, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, AnchoredToastProvider, AntigravityLogoIcon, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator, Avatar, AvatarFallback, AvatarImage, BOARD_DRAG_OVERLAY_Z_INDEX, BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Badge, BidiText, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonTextRun, CONTROL_SIZE, CONTROL_SIZES, COPIED_RESET_MS, CalendarCell, CalendarEntryButton, CalendarEntrySurface, CalendarGrid, CalendarHeaderCell, CalendarHeaderRow, Checkbox, ClaudeLogoIcon, Collapsible, CollapsiblePanel, CollapsibleTrigger, ColorPicker, ColorPickerContent, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, CopyButton, CopyFeedback, DEFAULT_PRESETS, DIALOG_MOBILE_LAYOUT, DIALOG_SIZE_CLASS_NAMES, DataTable, DatePickerPopover, DestructiveActionConfirmation, DestructiveConfirmDialog, DetailsGrid, DetailsItem, Dialog, DialogBackdrop, DialogBackdrop as DialogOverlay, DialogClose, DialogPopup as DialogContent, DialogPopup, DialogCreateHandle, DialogDescription, DialogFooter, DialogFormState, DialogHeader, DialogPanel, DialogPortal, DialogProvider, DialogTitle, DialogTrigger, DialogViewport, DirectionalIcon, DiscordLogoIcon, Menu as DropdownMenu, Menu, MenuCheckboxItem as DropdownMenuCheckboxItem, MenuCheckboxItem, MenuPopup as DropdownMenuContent, MenuPopup, MenuCreateHandle as DropdownMenuCreateHandle, MenuCreateHandle, MenuGroup as DropdownMenuGroup, MenuGroup, MenuItem as DropdownMenuItem, MenuItem, MenuGroupLabel as DropdownMenuLabel, MenuGroupLabel, MenuLinkItem as DropdownMenuLinkItem, MenuLinkItem, MenuPortal as DropdownMenuPortal, MenuPortal, MenuRadioGroup as DropdownMenuRadioGroup, MenuRadioGroup, MenuRadioItem as DropdownMenuRadioItem, MenuRadioItem, MenuSeparator as DropdownMenuSeparator, MenuSeparator, MenuShortcut as DropdownMenuShortcut, MenuShortcut, MenuSub as DropdownMenuSub, MenuSub, MenuSubPopup as DropdownMenuSubContent, MenuSubPopup, MenuSubTrigger as DropdownMenuSubTrigger, MenuSubTrigger, MenuTrigger as DropdownMenuTrigger, MenuTrigger, Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity, FileInput, Form, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, GeminiLogoIcon, GitHubLogoIcon, HexColorPicker, HighlightedTextarea, PreviewCard as HoverCard, PreviewCard, PreviewCardPopup as HoverCardContent, PreviewCardPopup, PreviewCardTrigger as HoverCardTrigger, PreviewCardTrigger, INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, InlineRenameInput, InlineSkeleton, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorDock, InspectorEmptyRow, InspectorEntityTab, InspectorFacetBar, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle, KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS, KANBAN_BOARD_AUTO_SCROLL_OPTIONS, KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_BOARD_AXES, KANBAN_BOARD_COLLISION_DETECTION, KANBAN_CARD_DRAG_MIME, KANBAN_CARD_STICKY_TOP_VAR, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX, KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, KANBAN_DIRECTIONS, KANBAN_DRAG_OVERLAY_Z_INDEX, KANBAN_HORIZONTAL_EDGES, KANBAN_MOUSE_ACTIVATION_DISTANCE, KANBAN_SORTABLE_ACTIVATION_MODES, KANBAN_STICKY_TOP_VAR, KANBAN_TOUCH_ACTIVATION_CONSTRAINT, KANBAN_VIRTUAL_CELL_PAGINATION, KanbanCardDragSurface, KanbanCardShell, KanbanCellAction, KanbanCollapsedBandCaption, KanbanColumnBandHeader, KanbanColumnHeader, KanbanDragHandle, KanbanSortableBoard, KanbanSubgroupBoard, KanbanVirtualCell, Kbd, LEGAL_TEXT_CLASS_NAME, Label, List, ListEmpty, ListGroup, ListGroupAction, ListGroupCount, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemMedia, ListItemStatus, ListItemTitle, MenuAnchor, MenuPreviewLayout, MenuSection, OUTLINE_CONTROL_MIN_SIZE, OUTLINE_EMPHASIS, OVERLAY_COLLISION_PADDING, OVERLAY_LAYER_CLASS_NAMES, OpenAILogoIcon, OutlineRail, PROPERTY_ROW_GRID, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTrigger, Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverPanel, PopoverTitle, PopoverTrigger, PreviewCardPrimitive, PreviewPane, Prose, ResizeSeparator, ResourceCalendar, ReviewAuthorAvatar, ReviewCommentCard, ReviewDecisionActions, ReviewDiffDeletion, ReviewDiffInsertion, ReviewDiffText, ReviewOutOfDateNotice, ReviewSeverityDot, ReviewStatusBadge, ReviewStatusDot, SHELL_CHROME_LAYER_CLASS_NAME, SIDEBAR_WIDTH_ICON_PX, SIDEBAR_WIDTH_PX, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, ScrollArea, ScrollBar, ScrollToTop, SearchField, SecretInput, SegmentedIconToggle, Select, SelectPopup as SelectContent, SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetBackdrop as SheetOverlay, SheetClose, SheetPopup as SheetContent, SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIdentityButton, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SortableHead, StellaMark, StellaWordmarkLatin, TABLE_FIRST_LINE, TOAST_RIGHT_OFFSET_VAR, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX, TOOLTIP_OPEN_DELAY_MS, TRACKED_DELETION_STYLE, TRACKED_INSERTION_STYLE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger, TextSeparator, Textarea, ToastProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipPopup as TooltipContent, TooltipPopup, TooltipCreateHandle, TooltipFactTrigger, TooltipProvider, TooltipTrigger, TruncatedText, UNKNOWN_AUTHOR_LABEL, UserText, WorkspaceEndRail, WorkspaceShell, XLogoIcon, assertConsecutiveCalendarDates, badgeVariants, buildKanbanBoardMatrix, buttonAccessibleDisabledClass, buttonVariants, cn, composeRefs, containedEventHandler, containedHandler, contentDir, createKanbanDropIntent, duplicateColumnIds, emptyColor, entityTabGlyph, findTableColumn, formVariants, formatKeys, getFirstWeekday, getInitials, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, getKanbanGroupingPropertyId, getKanbanGroups, getKanbanHorizontalEdge, getLocaleWeekInfo, getResourceCalendarPlacement, getWeekendDays, hasKanbanColumnBands, hideableColumnIds, isKanbanGroupingRenderable, isStructuredInputType, isTextOverflowing, kanbanKeyboardCoordinates, kbdPlatformOf, layoutResourceCalendarEntries, nextCalendarDate, optionColors, orderKanbanCellsByColumns, outlineEntryText, registerKanbanBoardAutoScroll, registerKanbanCardDrag, resolveDragWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, resolveKanbanColumnBands, resolveKanbanGroupOptions, resolveKanbanGrouping, resolveKeyboardWidth, resolveOptionColor, resolveToastUpdateTimeout, reviewDiffSegmentKeys, reviewSeverityTone, selectKanbanCardFieldIds, selectKanbanRows, shouldForceSidebarCollapsed, sidebarIdentityTriggerClassName, sortableColumnIds, stellaToast, stripDirectionalControls, tableColumnIds, tableColumnSizing, toastCountdownMs, toastDedupeId, typedCharacter, useContentDir, useCopiedFeedback, useCopyConfirmation, useDestructiveActionConfirmation, useInspectorPaneWidth, useIsMobile, useKanbanDropTarget, useKanbanSortable, useKanbanSortableSensors, useKbdPlatform, useLatest, useSidebar, useSidebarInlineSize, useSidebarLayout, useViewportWidth, visibleColumnIds, withoutDirectionalControls };
117
+ export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, Accordion, AccordionPanel as AccordionContent, AccordionPanel, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogBackdrop, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogPopup, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPanel, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport, AnchoredToastProvider, AntigravityLogoIcon, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator, Avatar, AvatarFallback, AvatarImage, BOARD_DRAG_OVERLAY_Z_INDEX, BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Badge, BidiText, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonTextRun, CONTROL_SIZE, CONTROL_SIZES, COPIED_RESET_MS, CalendarCell, CalendarEntryButton, CalendarEntrySurface, CalendarGrid, CalendarHeaderCell, CalendarHeaderRow, Checkbox, ClaudeLogoIcon, Collapsible, CollapsiblePanel, CollapsibleTrigger, ColorPicker, ColorPickerContent, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut, CopyButton, CopyFeedback, DEFAULT_PRESETS, DIALOG_MOBILE_LAYOUT, DIALOG_SIZE_CLASS_NAMES, DataTable, DatePickerPopover, DestructiveActionConfirmation, DestructiveConfirmDialog, DetailsGrid, DetailsItem, Dialog, DialogBackdrop, DialogBackdrop as DialogOverlay, DialogClose, DialogPopup as DialogContent, DialogPopup, DialogCreateHandle, DialogDescription, DialogFooter, DialogFormState, DialogHeader, DialogPanel, DialogPortal, DialogProvider, DialogTitle, DialogTrigger, DialogViewport, DirectionalIcon, DiscordLogoIcon, Menu as DropdownMenu, Menu, MenuCheckboxItem as DropdownMenuCheckboxItem, MenuCheckboxItem, MenuPopup as DropdownMenuContent, MenuPopup, MenuCreateHandle as DropdownMenuCreateHandle, MenuCreateHandle, MenuGroup as DropdownMenuGroup, MenuGroup, MenuItem as DropdownMenuItem, MenuItem, MenuGroupLabel as DropdownMenuLabel, MenuGroupLabel, MenuLinkItem as DropdownMenuLinkItem, MenuLinkItem, MenuPortal as DropdownMenuPortal, MenuPortal, MenuRadioGroup as DropdownMenuRadioGroup, MenuRadioGroup, MenuRadioItem as DropdownMenuRadioItem, MenuRadioItem, MenuSeparator as DropdownMenuSeparator, MenuSeparator, MenuShortcut as DropdownMenuShortcut, MenuShortcut, MenuSub as DropdownMenuSub, MenuSub, MenuSubPopup as DropdownMenuSubContent, MenuSubPopup, MenuSubTrigger as DropdownMenuSubTrigger, MenuSubTrigger, MenuTrigger as DropdownMenuTrigger, MenuTrigger, Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity, FileInput, Form, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, GeminiLogoIcon, GitHubLogoIcon, HexColorPicker, HighlightedTextarea, PreviewCard as HoverCard, PreviewCard, PreviewCardPopup as HoverCardContent, PreviewCardPopup, PreviewCardTrigger as HoverCardTrigger, PreviewCardTrigger, INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, InlineRenameInput, InlineSkeleton, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorDock, InspectorEmptyRow, InspectorEntityTab, InspectorFacetBar, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle, KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS, KANBAN_BOARD_AUTO_SCROLL_OPTIONS, KANBAN_BOARD_AUTO_SCROLL_SOURCES, KANBAN_BOARD_AXES, KANBAN_BOARD_COLLISION_DETECTION, KANBAN_CARD_DRAG_MIME, KANBAN_CARD_STICKY_TOP_VAR, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX, KANBAN_COLLAPSED_BAND_WIDTH_CLASS, KANBAN_COLLAPSED_BAND_WIDTH_PX, KANBAN_COLUMN_GAP_PX, KANBAN_COLUMN_WIDTH_CLASS, KANBAN_COLUMN_WIDTH_PX, KANBAN_DIRECTIONS, KANBAN_DRAG_OVERLAY_Z_INDEX, KANBAN_HORIZONTAL_EDGES, KANBAN_MOUSE_ACTIVATION_DISTANCE, KANBAN_SORTABLE_ACTIVATION_MODES, KANBAN_STICKY_TOP_VAR, KANBAN_TOUCH_ACTIVATION_CONSTRAINT, KANBAN_VIRTUAL_CELL_PAGINATION, KanbanCardDragSurface, KanbanCardShell, KanbanCellAction, KanbanCollapsedBandCaption, KanbanColumnBandHeader, KanbanColumnHeader, KanbanDragHandle, KanbanSortableBoard, KanbanSubgroupBoard, KanbanVirtualCell, Kbd, LEGAL_TEXT_CLASS_NAME, Label, List, ListEmpty, ListGroup, ListGroupAction, ListGroupCount, ListGroupDescription, ListGroupHeader, ListGroupHeading, ListGroupTitle, ListItem, ListItemActions, ListItemContent, ListItemDescription, ListItemMedia, ListItemStatus, ListItemTitle, MenuAnchor, MenuPreviewLayout, MenuSection, OUTLINE_CONTROL_MIN_SIZE, OUTLINE_EMPHASIS, OVERLAY_COLLISION_PADDING, OVERLAY_LAYER_CLASS_NAMES, OpenAILogoIcon, OutlineRail, PROPERTY_ROW_GRID, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTrigger, Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverPanel, PopoverTitle, PopoverTrigger, PreviewCardPrimitive, PreviewPane, Prose, ResizeSeparator, ResourceCalendar, ReviewAuthorAvatar, ReviewCommentCard, ReviewDecisionActions, ReviewDiffDeletion, ReviewDiffInsertion, ReviewDiffText, ReviewOutOfDateNotice, ReviewSeverityDot, ReviewStatusBadge, ReviewStatusDot, SHELL_CHROME_LAYER_CLASS_NAME, SIDEBAR_WIDTH_ICON_PX, SIDEBAR_WIDTH_PX, SIDE_RAIL_CONTAINER_CLASS, SIDE_RAIL_ICON_BUTTON_SIZE, SIDE_RAIL_TAB_ICON_SIZE, SIDE_RAIL_WIDTH, ScrollArea, ScrollBar, ScrollToTop, SearchField, SecretInput, SegmentedIconToggle, Select, SelectPopup as SelectContent, SelectPopup, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBackdrop, SheetBackdrop as SheetOverlay, SheetClose, SheetPopup as SheetContent, SheetPopup, SheetDescription, SheetFooter, SheetHeader, SheetPanel, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarIdentityButton, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SortableHead, StellaMark, StellaWordmarkLatin, TABLE_FIRST_LINE, TOAST_RIGHT_OFFSET_VAR, TOOLBAR_ROW_HEIGHT, TOOLBAR_ROW_HEIGHT_PX, TOOLTIP_OPEN_DELAY_MS, TRACKED_DELETION_STYLE, TRACKED_INSERTION_STYLE, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger, TextSeparator, Textarea, ToastProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipPopup as TooltipContent, TooltipPopup, TooltipCreateHandle, TooltipFactTrigger, TooltipProvider, TooltipTrigger, TruncatedText, UNKNOWN_AUTHOR_LABEL, UserText, WorkspaceEndRail, WorkspaceShell, XLogoIcon, assertConsecutiveCalendarDates, badgeVariants, buildKanbanBoardMatrix, buttonAccessibleDisabledClass, buttonVariants, cn, composeRefs, containedEventHandler, containedHandler, contentDir, createKanbanDropIntent, duplicateColumnIds, emptyColor, entityTabGlyph, findTableColumn, formatKeys, getFirstWeekday, getInitials, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, getKanbanGroupingPropertyId, getKanbanGroups, getKanbanHorizontalEdge, getLocaleWeekInfo, getResourceCalendarPlacement, getWeekendDays, hasKanbanColumnBands, hideableColumnIds, isKanbanGroupingRenderable, isStructuredInputType, isTextOverflowing, kanbanKeyboardCoordinates, kbdPlatformOf, layoutResourceCalendarEntries, nextCalendarDate, optionColors, orderKanbanCellsByColumns, outlineEntryText, registerKanbanBoardAutoScroll, registerKanbanCardDrag, resolveDragWidth, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, resolveKanbanColumnBands, resolveKanbanGroupOptions, resolveKanbanGrouping, resolveKeyboardWidth, resolveOptionColor, resolveToastUpdateTimeout, reviewDiffSegmentKeys, reviewSeverityTone, selectKanbanCardFieldIds, selectKanbanRows, shouldForceSidebarCollapsed, sidebarIdentityTriggerClassName, sortableColumnIds, stellaToast, stripDirectionalControls, tableColumnIds, tableColumnSizing, toastCountdownMs, toastDedupeId, typedCharacter, useContentDir, useCopiedFeedback, useCopyConfirmation, useDestructiveActionConfirmation, useInspectorPaneWidth, useIsMobile, useKanbanDropTarget, useKanbanSortable, useKanbanSortableSensors, useKbdPlatform, useLatest, useSidebar, useSidebarInlineSize, useSidebarLayout, useViewportWidth, visibleColumnIds, withoutDirectionalControls };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/ui",
3
- "version": "0.100.0",
3
+ "version": "0.101.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",