@stll/ui 0.69.0 → 0.72.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.
Files changed (82) hide show
  1. package/dist/calendar/primitives.d.ts +7 -7
  2. package/dist/components/alert-dialog.d.ts +15 -15
  3. package/dist/components/animated-preview.d.ts +9 -9
  4. package/dist/components/animated-preview.js +3 -3
  5. package/dist/components/application-rail.d.ts +8 -8
  6. package/dist/components/bidi-text.d.ts +7 -7
  7. package/dist/components/brand-icons.d.ts +5 -5
  8. package/dist/components/breadcrumb.d.ts +8 -8
  9. package/dist/components/button.d.ts +13 -1
  10. package/dist/components/button.js +14 -5
  11. package/dist/components/color-picker.d.ts +4 -4
  12. package/dist/components/combobox.d.ts +23 -23
  13. package/dist/components/combobox.js +6 -6
  14. package/dist/components/command.d.ts +19 -19
  15. package/dist/components/date-picker-popover.js +8 -2
  16. package/dist/components/destructive-action-confirmation.d.ts +5 -5
  17. package/dist/components/destructive-action-confirmation.js +2 -2
  18. package/dist/components/destructive-confirm-dialog.d.ts +7 -7
  19. package/dist/components/details-grid.d.ts +6 -6
  20. package/dist/components/dialog.d.ts +19 -19
  21. package/dist/components/document-identity-badge.js +6 -0
  22. package/dist/components/frame.d.ts +7 -7
  23. package/dist/components/hex-color-picker.d.ts +16 -2
  24. package/dist/components/horizontal-scroller.d.ts +6 -0
  25. package/dist/components/horizontal-scroller.js +59 -33
  26. package/dist/components/identity-text.js +1 -0
  27. package/dist/components/input-group.d.ts +6 -6
  28. package/dist/components/input-otp.d.ts +7 -7
  29. package/dist/components/input-otp.js +2 -2
  30. package/dist/components/input.d.ts +5 -5
  31. package/dist/components/kbd.d.ts +3 -3
  32. package/dist/components/list.d.ts +20 -20
  33. package/dist/components/menu.d.ts +20 -20
  34. package/dist/components/outline-rail.d.ts +12 -0
  35. package/dist/components/pagination.d.ts +9 -9
  36. package/dist/components/popover.d.ts +8 -8
  37. package/dist/components/preview-pane.d.ts +6 -6
  38. package/dist/components/prose.d.ts +2 -2
  39. package/dist/components/scroll-to-top.d.ts +5 -0
  40. package/dist/components/search-field.d.ts +3 -3
  41. package/dist/components/select.d.ts +9 -9
  42. package/dist/components/select.js +11 -11
  43. package/dist/components/sheet.d.ts +16 -16
  44. package/dist/components/split-button.d.ts +6 -1
  45. package/dist/components/split-button.js +8 -3
  46. package/dist/components/steps.d.ts +6 -6
  47. package/dist/components/switch.d.ts +5 -5
  48. package/dist/components/switch.native.d.ts +3 -3
  49. package/dist/components/table.d.ts +16 -16
  50. package/dist/components/textarea.d.ts +3 -3
  51. package/dist/components/time-field.d.ts +3 -3
  52. package/dist/components/toast.d.ts +20 -20
  53. package/dist/components/toast.js +3 -3
  54. package/dist/components/toggle-group.d.ts +4 -4
  55. package/dist/components/toggle.d.ts +3 -3
  56. package/dist/components/tooltip-trigger-helper.d.ts +4 -4
  57. package/dist/components/truncated-text.d.ts +4 -4
  58. package/dist/components/truncated-text.js +3 -3
  59. package/dist/components/view-toolbar.d.ts +11 -3
  60. package/dist/components/view-toolbar.js +16 -5
  61. package/dist/data-table/index.d.ts +7 -0
  62. package/dist/hooks/use-contained-handler.d.ts +2 -2
  63. package/dist/hooks/use-mobile.js +2 -2
  64. package/dist/hooks/use-viewport-width.js +2 -2
  65. package/dist/icons.d.ts +29 -2
  66. package/dist/icons.js +1 -1
  67. package/dist/index.d.ts +7 -0
  68. package/dist/inspector/chrome.d.ts +22 -22
  69. package/dist/inspector/index.d.ts +9 -0
  70. package/dist/kanban/grouping.d.ts +10 -0
  71. package/dist/kanban/index.d.ts +9 -0
  72. package/dist/kanban/sortable-interactions.d.ts +8 -8
  73. package/dist/kanban/sortable-interactions.js +11 -11
  74. package/dist/lib/button-disposition.d.ts +2 -2
  75. package/dist/lib/file-size.d.ts +16 -0
  76. package/dist/lib/file-size.js +30 -0
  77. package/dist/lib/tooltip-content.d.ts +2 -2
  78. package/dist/lib/utils.d.ts +2 -2
  79. package/dist/review/review-out-of-date-notice.d.ts +7 -1
  80. package/dist/review/review-out-of-date-notice.js +4 -1
  81. package/dist/styles/inline-rename.css +9 -0
  82. package/package.json +13 -9
@@ -1,7 +1,7 @@
1
- import * as React$1 from "react";
2
- export declare const CalendarGrid: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
3
- export declare const CalendarHeaderRow: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
4
- export declare const CalendarHeaderCell: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
5
- export declare const CalendarCell: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
6
- export declare const CalendarEntryButton: ({ className, ...props }: React$1.ComponentProps<"button">) => React$1.JSX.Element;
7
- export declare const CalendarEntrySurface: ({ className, ...props }: React$1.ComponentProps<"article">) => React$1.JSX.Element;
1
+ import * as React from "react";
2
+ export declare const CalendarGrid: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
3
+ export declare const CalendarHeaderRow: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
4
+ export declare const CalendarHeaderCell: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
5
+ export declare const CalendarCell: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
6
+ export declare const CalendarEntryButton: ({ className, ...props }: React.ComponentProps<"button">) => React.JSX.Element;
7
+ export declare const CalendarEntrySurface: ({ className, ...props }: React.ComponentProps<"article">) => React.JSX.Element;
@@ -1,30 +1,30 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
3
3
  import { OverlayLayer } from "../lib/overlay-layer.js";
4
4
  declare const AlertDialogCreateHandle: typeof AlertDialog$1.createHandle;
5
5
  declare const AlertDialog: typeof AlertDialog$1.Root;
6
- declare const AlertDialogPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6
+ declare const AlertDialogPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
7
  declare function AlertDialogTrigger({ tooltip, ...props }: AlertDialog$1.Trigger.Props & {
8
- tooltip?: React$1.ReactNode;
9
- }): React$1.JSX.Element;
8
+ tooltip?: React.ReactNode;
9
+ }): React.JSX.Element;
10
10
  declare const AlertDialogBackdrop: ({ className, layer, ...props }: AlertDialog$1.Backdrop.Props & {
11
11
  layer?: OverlayLayer;
12
- }) => React$1.JSX.Element;
12
+ }) => React.JSX.Element;
13
13
  declare const AlertDialogViewport: ({ className, layer, ...props }: AlertDialog$1.Viewport.Props & {
14
14
  layer?: OverlayLayer;
15
- }) => React$1.JSX.Element;
15
+ }) => React.JSX.Element;
16
16
  declare const AlertDialogPopup: ({ className, bottomStickOnMobile, layer, ...props }: AlertDialog$1.Popup.Props & {
17
17
  bottomStickOnMobile?: boolean;
18
18
  layer?: OverlayLayer;
19
- }) => React$1.JSX.Element;
20
- declare const AlertDialogHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
21
- declare const AlertDialogFooter: ({ className, variant, ...props }: React$1.ComponentProps<"div"> & {
19
+ }) => React.JSX.Element;
20
+ declare const AlertDialogHeader: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
21
+ declare const AlertDialogFooter: ({ className, variant, ...props }: React.ComponentProps<"div"> & {
22
22
  variant?: "default" | "bare";
23
- }) => React$1.JSX.Element;
24
- declare const AlertDialogPanel: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
25
- declare const AlertDialogTitle: ({ className, ...props }: AlertDialog$1.Title.Props) => React$1.JSX.Element;
26
- declare const AlertDialogDescription: ({ className, ...props }: AlertDialog$1.Description.Props) => React$1.JSX.Element;
23
+ }) => React.JSX.Element;
24
+ declare const AlertDialogPanel: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
25
+ declare const AlertDialogTitle: ({ className, ...props }: AlertDialog$1.Title.Props) => React.JSX.Element;
26
+ declare const AlertDialogDescription: ({ className, ...props }: AlertDialog$1.Description.Props) => React.JSX.Element;
27
27
  declare function AlertDialogClose({ tooltip, ...props }: AlertDialog$1.Close.Props & {
28
- tooltip?: React$1.ReactNode;
29
- }): React$1.JSX.Element;
28
+ tooltip?: React.ReactNode;
29
+ }): React.JSX.Element;
30
30
  export { AlertDialog, AlertDialogBackdrop, AlertDialogBackdrop as AlertDialogOverlay, AlertDialogClose, AlertDialogPopup as AlertDialogContent, AlertDialogPopup, AlertDialogCreateHandle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPanel, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertDialogViewport };
@@ -1,4 +1,4 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  /**
3
3
  * The one animation system for previews that explain a feature by playing it:
4
4
  * a frame of ordered stages that cross-fade into each other, an optional
@@ -24,7 +24,7 @@ export type AnimatedPreviewPlayback = "once" | "loop";
24
24
  export type AnimatedPreviewPace = "glance" | "read" | "beat";
25
25
  export type AnimatedPreviewStage = {
26
26
  id: string;
27
- content: React$1.ReactNode;
27
+ content: React.ReactNode;
28
28
  };
29
29
  type AnimatedPreviewProps = {
30
30
  stages: readonly [AnimatedPreviewStage, ...AnimatedPreviewStage[]];
@@ -39,8 +39,8 @@ type AnimatedPreviewProps = {
39
39
  inline?: boolean;
40
40
  className?: string;
41
41
  };
42
- export declare const AnimatedPreview: ({ stages, playback, pace, stagger, inline, className }: AnimatedPreviewProps) => React$1.JSX.Element;
43
- type AnimatedPreviewMotionProps = React$1.ComponentProps<"div"> & {
42
+ export declare const AnimatedPreview: ({ stages, playback, pace, stagger, inline, className }: AnimatedPreviewProps) => React.JSX.Element;
43
+ type AnimatedPreviewMotionProps = React.ComponentProps<"div"> & {
44
44
  pace?: AnimatedPreviewPace;
45
45
  };
46
46
  /**
@@ -49,21 +49,21 @@ type AnimatedPreviewMotionProps = React$1.ComponentProps<"div"> & {
49
49
  * The caller places the drop with `--animated-preview-carry-x` and
50
50
  * `--animated-preview-carry-y`; with reduced motion the content rests there.
51
51
  */
52
- export declare const AnimatedPreviewMotion: ({ className, pace, ...props }: AnimatedPreviewMotionProps) => React$1.JSX.Element;
52
+ export declare const AnimatedPreviewMotion: ({ className, pace, ...props }: AnimatedPreviewMotionProps) => React.JSX.Element;
53
53
  /** How long a pointer or keyboard focus rests on the trigger before the card opens. */
54
54
  export declare const ANIMATED_PREVIEW_CARD_DELAY_MS = 400;
55
- type AnimatedPreviewCardProps = React$1.PropsWithChildren<{
55
+ type AnimatedPreviewCardProps = React.PropsWithChildren<{
56
56
  /**
57
57
  * The control the card explains. It must take the props it is handed, as a
58
58
  * `Button` does: the card opens from its hover and focus events.
59
59
  */
60
- trigger: React$1.ReactElement;
60
+ trigger: React.ReactElement;
61
61
  /**
62
62
  * One line on what the control does. Shown under the preview and read as
63
63
  * the control's description, so the moving preview itself stays out of the
64
64
  * accessibility tree.
65
65
  */
66
- description: React$1.ReactNode;
66
+ description: React.ReactNode;
67
67
  className?: string;
68
68
  }>;
69
69
  /**
@@ -71,5 +71,5 @@ type AnimatedPreviewCardProps = React$1.PropsWithChildren<{
71
71
  * and traps none: the card describes the control, and the control stays the
72
72
  * thing that is used.
73
73
  */
74
- export declare const AnimatedPreviewCard: ({ trigger, description, className, children }: AnimatedPreviewCardProps) => React$1.JSX.Element;
74
+ export declare const AnimatedPreviewCard: ({ trigger, description, className, children }: AnimatedPreviewCardProps) => React.JSX.Element;
75
75
  export {};
@@ -3,13 +3,13 @@ import { usePrefersReducedMotion } from "../hooks/use-prefers-reduced-motion.js"
3
3
  import { cn } from "../lib/utils.js";
4
4
  import { HoverCard as PreviewCard, HoverCardContent as PreviewCardPopup, HoverCardTrigger as PreviewCardTrigger } from "./preview-card.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import * as React$1 from "react";
6
+ import * as React from "react";
7
7
  // src/components/animated-preview.tsx
8
8
  /** Must match the keyframes name in `animated-preview.css`. */
9
9
  const STAGE_OUT_KEYFRAMES = "animated-preview-fade-out";
10
10
  const AnimatedPreview = ({ stages, playback = "once", pace = "glance", stagger = 0, inline = false, className }) => {
11
11
  const reducedMotion = usePrefersReducedMotion();
12
- const [cycle, setCycle] = React$1.useState(0);
12
+ const [cycle, setCycle] = React.useState(0);
13
13
  const Frame = inline ? "span" : "div";
14
14
  const lastIndex = stages.length - 1;
15
15
  const finalStage = stages[lastIndex] ?? stages[0];
@@ -75,7 +75,7 @@ const ANIMATED_PREVIEW_CARD_DELAY_MS = 400;
75
75
  * thing that is used.
76
76
  */
77
77
  const AnimatedPreviewCard = ({ trigger, description, className, children }) => {
78
- const descriptionId = React$1.useId();
78
+ const descriptionId = React.useId();
79
79
  return /* @__PURE__ */ jsxs(PreviewCard, { children: [
80
80
  /* @__PURE__ */ jsx(PreviewCardTrigger, {
81
81
  "aria-describedby": descriptionId,
@@ -1,4 +1,4 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  export declare const APPLICATION_RAIL_WIDTH: "w-12";
3
3
  export declare const APPLICATION_RAIL_BUTTON_SIZE: "size-11";
4
4
  export declare const APPLICATION_RAIL_ICON_SIZE: "size-4";
@@ -8,10 +8,10 @@ export declare const APPLICATION_RAIL_ICON_SIZE: "size-4";
8
8
  * sidebar without bringing sidebar expansion or mobile-sheet state into hosts
9
9
  * that only need a fixed rail.
10
10
  */
11
- export declare const ApplicationRail: ({ className, ...props }: React$1.ComponentProps<"nav">) => React$1.JSX.Element;
12
- export declare const ApplicationRailHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
13
- export declare const ApplicationRailContent: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
14
- export declare const ApplicationRailMenu: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
15
- export declare const ApplicationRailButton: ({ className, ...props }: React$1.ComponentProps<"button">) => React$1.JSX.Element;
16
- export declare const ApplicationRailSeparator: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
17
- export declare const ApplicationRailFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
11
+ export declare const ApplicationRail: ({ className, ...props }: React.ComponentProps<"nav">) => React.JSX.Element;
12
+ export declare const ApplicationRailHeader: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
13
+ export declare const ApplicationRailContent: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
14
+ export declare const ApplicationRailMenu: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
15
+ export declare const ApplicationRailButton: ({ className, ...props }: React.ComponentProps<"button">) => React.JSX.Element;
16
+ export declare const ApplicationRailSeparator: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
17
+ export declare const ApplicationRailFooter: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
@@ -1,27 +1,27 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  /**
3
3
  * Isolation shields the text around a value, not the value itself: a
4
4
  * directional control inside it still reorders its letters, so stored text
5
5
  * loses those controls before it renders.
6
6
  */
7
7
  export declare const stripDirectionalControls: (text: string) => string;
8
- export declare const withoutDirectionalControls: (children: React$1.ReactNode) => React$1.ReactNode;
9
- export declare const BidiText: (props: BidiTextProps) => React$1.JSX.Element;
8
+ export declare const withoutDirectionalControls: (children: React.ReactNode) => React.ReactNode;
9
+ export declare const BidiText: (props: BidiTextProps) => React.JSX.Element;
10
10
  export declare const UserText: typeof BidiText;
11
11
  type BidiDirection = "auto" | "ltr" | "rtl";
12
- type BdiElementProps = Omit<React$1.ComponentPropsWithoutRef<"bdi">, "dir"> & {
12
+ type BdiElementProps = Omit<React.ComponentPropsWithoutRef<"bdi">, "dir"> & {
13
13
  as?: "bdi";
14
14
  direction?: BidiDirection;
15
15
  };
16
- type SpanTextProps = Omit<React$1.ComponentPropsWithoutRef<"span">, "dir"> & {
16
+ type SpanTextProps = Omit<React.ComponentPropsWithoutRef<"span">, "dir"> & {
17
17
  as: "span";
18
18
  direction?: BidiDirection;
19
19
  };
20
- type DivTextProps = Omit<React$1.ComponentPropsWithoutRef<"div">, "dir"> & {
20
+ type DivTextProps = Omit<React.ComponentPropsWithoutRef<"div">, "dir"> & {
21
21
  as: "div";
22
22
  direction?: BidiDirection;
23
23
  };
24
- type ParagraphTextProps = Omit<React$1.ComponentPropsWithoutRef<"p">, "dir"> & {
24
+ type ParagraphTextProps = Omit<React.ComponentPropsWithoutRef<"p">, "dir"> & {
25
25
  as: "p";
26
26
  direction?: BidiDirection;
27
27
  };
@@ -1,6 +1,6 @@
1
- import * as React$1 from "react";
2
- type BrandIconProps = React$1.ComponentProps<"svg">;
3
- export declare const DiscordLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
4
- export declare const GitHubLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
5
- export declare const XLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
1
+ import * as React from "react";
2
+ type BrandIconProps = React.ComponentProps<"svg">;
3
+ export declare const DiscordLogoIcon: (props: BrandIconProps) => React.JSX.Element;
4
+ export declare const GitHubLogoIcon: (props: BrandIconProps) => React.JSX.Element;
5
+ export declare const XLogoIcon: (props: BrandIconProps) => React.JSX.Element;
6
6
  export {};
@@ -1,10 +1,10 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
- declare const Breadcrumb: ({ ...props }: React$1.ComponentProps<"nav">) => React$1.JSX.Element;
4
- declare const BreadcrumbList: ({ className, ...props }: React$1.ComponentProps<"ol">) => React$1.JSX.Element;
5
- declare const BreadcrumbItem: ({ className, ...props }: React$1.ComponentProps<"li">) => React$1.JSX.Element;
6
- declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
7
- declare const BreadcrumbPage: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
8
- declare const BreadcrumbSeparator: ({ children, className, ...props }: React$1.ComponentProps<"li">) => React$1.JSX.Element;
9
- declare const BreadcrumbEllipsis: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
3
+ declare const Breadcrumb: ({ ...props }: React.ComponentProps<"nav">) => React.JSX.Element;
4
+ declare const BreadcrumbList: ({ className, ...props }: React.ComponentProps<"ol">) => React.JSX.Element;
5
+ declare const BreadcrumbItem: ({ className, ...props }: React.ComponentProps<"li">) => React.JSX.Element;
6
+ declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
7
+ declare const BreadcrumbPage: ({ className, ...props }: React.ComponentProps<"span">) => React.JSX.Element;
8
+ declare const BreadcrumbSeparator: ({ children, className, ...props }: React.ComponentProps<"li">) => React.JSX.Element;
9
+ declare const BreadcrumbEllipsis: ({ className, ...props }: React.ComponentProps<"span">) => React.JSX.Element;
10
10
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -84,6 +84,16 @@ type ButtonProps = Omit<ButtonContract, "children" | "disabled"> & {
84
84
  "data-accessible-disabled"?: "";
85
85
  } & useRender.ComponentProps<"button">;
86
86
  declare function Button({ className, variant: variantProp, size, render, layout, loading, icon, children, disabled, tooltip, selected, focusRing, shape, "data-accessible-disabled": accessibleDisabled, ...props }: ButtonProps): import("react").JSX.Element;
87
+ /**
88
+ * How a run shows it can be pressed: underlined like a link, or `plain`, by
89
+ * what it holds (a claim's text mark, which draws its own line), as a plain
90
+ * Button's look is its content.
91
+ */
92
+ declare const BUTTON_TEXT_RUN_VARIANT_CLASS: {
93
+ readonly link: "underline underline-offset-2 hover:decoration-2";
94
+ readonly plain: "";
95
+ };
96
+ type ButtonTextRunVariant = keyof typeof BUTTON_TEXT_RUN_VARIANT_CLASS;
87
97
  /**
88
98
  * A run with no box can anchor no tooltip or popup, and carries no variant,
89
99
  * size or icon: its text is its look.
@@ -91,6 +101,8 @@ declare function Button({ className, variant: variantProp, size, render, layout,
91
101
  type ButtonTextRunProps = Omit<ButtonProps, "children" | "className" | "focusRing" | "icon" | "loading" | "render" | "selected" | "shape" | "size" | "tooltip" | "variant"> & {
92
102
  children: ReactNode;
93
103
  className?: string | undefined;
104
+ /** `link` unless the run holds a text mark that draws its own line. */
105
+ variant?: ButtonTextRunVariant | undefined;
94
106
  };
95
107
  /**
96
108
  * A long run of prose that acts as one button: a citation or a
@@ -101,5 +113,5 @@ type ButtonTextRunProps = Omit<ButtonProps, "children" | "className" | "focusRin
101
113
  * <button> it holds, which takes its accessible name from the label. Use
102
114
  * `Button size="inline"` for a short action.
103
115
  */
104
- declare const ButtonTextRun: ({ children, className, disabled, ...props }: ButtonTextRunProps) => import("react").JSX.Element;
116
+ declare const ButtonTextRun: ({ children, className, disabled, variant, ...props }: ButtonTextRunProps) => import("react").JSX.Element;
105
117
  export { BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Button, type ButtonFocusRing, type ButtonPlainShape, type ButtonProps, type ButtonSize, ButtonTextRun, type ButtonVariant, buttonAccessibleDisabledClass, buttonVariants };
@@ -286,10 +286,19 @@ function buttonContent({ icon, label, loading }) {
286
286
  }), loader] });
287
287
  }
288
288
  /**
289
- * The run is the visible target: underlined like a link, ringed while its
290
- * button has keyboard focus (per line, so a wrapped run rings each line).
289
+ * The run is the visible target, ringed while its button has keyboard focus
290
+ * (per line, so a wrapped run rings each line).
291
291
  */
292
- const BUTTON_TEXT_RUN_CLASS = "has-focus-visible:ring-ring cursor-pointer rounded-xs underline underline-offset-2 box-decoration-clone select-text hover:decoration-2 has-focus-visible:ring-2 has-disabled:cursor-not-allowed has-disabled:opacity-64";
292
+ const BUTTON_TEXT_RUN_CLASS = "has-focus-visible:ring-ring cursor-pointer rounded-xs box-decoration-clone select-text has-focus-visible:ring-2 has-disabled:cursor-not-allowed has-disabled:opacity-64";
293
+ /**
294
+ * How a run shows it can be pressed: underlined like a link, or `plain`, by
295
+ * what it holds (a claim's text mark, which draws its own line), as a plain
296
+ * Button's look is its content.
297
+ */
298
+ const BUTTON_TEXT_RUN_VARIANT_CLASS = {
299
+ link: "underline underline-offset-2 hover:decoration-2",
300
+ plain: ""
301
+ };
293
302
  const BUTTON_TEXT_RUN_TARGET_CLASS = "absolute size-px overflow-hidden whitespace-nowrap [clip-path:inset(50%)]";
294
303
  /**
295
304
  * A long run of prose that acts as one button: a citation or a
@@ -300,8 +309,8 @@ const BUTTON_TEXT_RUN_TARGET_CLASS = "absolute size-px overflow-hidden whitespac
300
309
  * <button> it holds, which takes its accessible name from the label. Use
301
310
  * `Button size="inline"` for a short action.
302
311
  */
303
- const ButtonTextRun = ({ children, className, disabled, ...props }) => /* @__PURE__ */ jsxs("label", {
304
- className: cn(BUTTON_TEXT_RUN_CLASS, className),
312
+ const ButtonTextRun = ({ children, className, disabled, variant = "link", ...props }) => /* @__PURE__ */ jsxs("label", {
313
+ className: cn(BUTTON_TEXT_RUN_CLASS, BUTTON_TEXT_RUN_VARIANT_CLASS[variant], className),
305
314
  "data-slot": "button-text-run",
306
315
  children: [/* @__PURE__ */ jsx(Button, {
307
316
  ...props,
@@ -1,4 +1,4 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  type ColorPreset = {
3
3
  label: string;
4
4
  /** Value emitted on select (e.g. "red" or "FF0000") */
@@ -27,7 +27,7 @@ type ColorPickerProps = {
27
27
  * that becomes the trigger itself, so the picker never wraps it in a
28
28
  * second, unnamed button.
29
29
  */
30
- trigger: React$1.ReactElement;
30
+ trigger: React.ReactElement;
31
31
  /**
32
32
  * Whether `trigger` renders a native `<button>` (default). Pass `false`
33
33
  * only for a non-button element; Base UI then gives it button semantics.
@@ -59,6 +59,6 @@ type ColorPickerContentProps = ColorPickerContentBaseProps & ({
59
59
  presentation: "inline";
60
60
  });
61
61
  declare const DEFAULT_PRESETS: ColorPreset[];
62
- declare const ColorPickerContent: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, presentation }: ColorPickerContentProps) => React$1.JSX.Element;
63
- declare const ColorPicker: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, nativeButton, trigger, side, align, className }: ColorPickerProps) => React$1.JSX.Element;
62
+ declare const ColorPickerContent: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, presentation }: ColorPickerContentProps) => React.JSX.Element;
63
+ declare const ColorPicker: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, nativeButton, trigger, side, align, className }: ColorPickerProps) => React.JSX.Element;
64
64
  export { ColorPicker, ColorPickerContent, type ColorPickerContentProps, type ColorPickerProps, type ColorPreset, DEFAULT_PRESETS };
@@ -1,40 +1,40 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
3
3
  import { ControlSize } from "../lib/control-size.js";
4
- declare const Combobox: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => React$1.JSX.Element;
4
+ declare const Combobox: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => React.JSX.Element;
5
5
  declare const ComboboxChipsInput: ({ className, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
6
6
  size?: ControlSize | number;
7
- ref?: React$1.Ref<HTMLInputElement>;
8
- }) => React$1.JSX.Element;
7
+ ref?: React.Ref<HTMLInputElement>;
8
+ }) => React.JSX.Element;
9
9
  declare const ComboboxInput: ({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
10
10
  showTrigger?: boolean;
11
11
  showClear?: boolean;
12
- startAddon?: React$1.ReactNode;
12
+ startAddon?: React.ReactNode;
13
13
  size?: ControlSize | number;
14
- ref?: React$1.Ref<HTMLInputElement>;
15
- }) => React$1.JSX.Element;
14
+ ref?: React.Ref<HTMLInputElement>;
15
+ }) => React.JSX.Element;
16
16
  declare const ComboboxTrigger: ({ className, variant, ...props }: Combobox$1.Trigger.Props & {
17
17
  variant?: "plain" | "field";
18
- }) => React$1.JSX.Element;
18
+ }) => React.JSX.Element;
19
19
  declare const ComboboxPopup: ({ className, children, side, sideOffset, alignOffset, align, ...props }: Combobox$1.Popup.Props & {
20
20
  align?: Combobox$1.Positioner.Props["align"];
21
21
  sideOffset?: Combobox$1.Positioner.Props["sideOffset"];
22
22
  alignOffset?: Combobox$1.Positioner.Props["alignOffset"];
23
23
  side?: Combobox$1.Positioner.Props["side"];
24
- }) => React$1.JSX.Element;
25
- declare const ComboboxItem: ({ className, children, ...props }: Combobox$1.Item.Props) => React$1.JSX.Element;
26
- declare const ComboboxSeparator: ({ className, ...props }: Combobox$1.Separator.Props) => React$1.JSX.Element;
27
- declare const ComboboxGroup: ({ className, ...props }: Combobox$1.Group.Props) => React$1.JSX.Element;
28
- declare const ComboboxGroupLabel: ({ className, ...props }: Combobox$1.GroupLabel.Props) => React$1.JSX.Element;
29
- declare const ComboboxEmpty: ({ className, ...props }: Combobox$1.Empty.Props) => React$1.JSX.Element;
30
- declare const ComboboxRow: ({ className, ...props }: Combobox$1.Row.Props) => React$1.JSX.Element;
31
- declare const ComboboxValue: ({ ...props }: Combobox$1.Value.Props) => React$1.JSX.Element;
32
- declare const ComboboxList: ({ className, ...props }: Combobox$1.List.Props) => React$1.JSX.Element;
33
- declare const ComboboxClear: ({ className, ...props }: Combobox$1.Clear.Props) => React$1.JSX.Element;
34
- declare const ComboboxStatus: ({ className, ...props }: Combobox$1.Status.Props) => React$1.JSX.Element;
35
- declare const ComboboxCollection: (props: Combobox$1.Collection.Props) => React$1.JSX.Element;
24
+ }) => React.JSX.Element;
25
+ declare const ComboboxItem: ({ className, children, ...props }: Combobox$1.Item.Props) => React.JSX.Element;
26
+ declare const ComboboxSeparator: ({ className, ...props }: Combobox$1.Separator.Props) => React.JSX.Element;
27
+ declare const ComboboxGroup: ({ className, ...props }: Combobox$1.Group.Props) => React.JSX.Element;
28
+ declare const ComboboxGroupLabel: ({ className, ...props }: Combobox$1.GroupLabel.Props) => React.JSX.Element;
29
+ declare const ComboboxEmpty: ({ className, ...props }: Combobox$1.Empty.Props) => React.JSX.Element;
30
+ declare const ComboboxRow: ({ className, ...props }: Combobox$1.Row.Props) => React.JSX.Element;
31
+ declare const ComboboxValue: ({ ...props }: Combobox$1.Value.Props) => React.JSX.Element;
32
+ declare const ComboboxList: ({ className, ...props }: Combobox$1.List.Props) => React.JSX.Element;
33
+ declare const ComboboxClear: ({ className, ...props }: Combobox$1.Clear.Props) => React.JSX.Element;
34
+ declare const ComboboxStatus: ({ className, ...props }: Combobox$1.Status.Props) => React.JSX.Element;
35
+ declare const ComboboxCollection: (props: Combobox$1.Collection.Props) => React.JSX.Element;
36
36
  declare const ComboboxChips: ({ className, children, startAddon, ...props }: Combobox$1.Chips.Props & {
37
- startAddon?: React$1.ReactNode;
38
- }) => React$1.JSX.Element;
39
- declare const ComboboxChip: ({ children, ...props }: Combobox$1.Chip.Props) => React$1.JSX.Element;
37
+ startAddon?: React.ReactNode;
38
+ }) => React.JSX.Element;
39
+ declare const ComboboxChip: ({ children, ...props }: Combobox$1.Chip.Props) => React.JSX.Element;
40
40
  export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
@@ -8,16 +8,16 @@ import { cn } from "../lib/utils.js";
8
8
  import { Input } from "./input.js";
9
9
  import { ScrollArea } from "./scroll-area.js";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
- import * as React$1 from "react";
11
+ import * as React from "react";
12
12
  import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
13
13
  // src/components/combobox.tsx
14
- const ComboboxContext = React$1.createContext({
14
+ const ComboboxContext = React.createContext({
15
15
  chipsRef: null,
16
16
  multiple: false
17
17
  });
18
18
  const Combobox = (props) => {
19
- const chipsRef = React$1.useRef(null);
20
- const contextValue = React$1.useMemo(() => ({
19
+ const chipsRef = React.useRef(null);
20
+ const contextValue = React.useMemo(() => ({
21
21
  chipsRef,
22
22
  multiple: !!props.multiple
23
23
  }), [chipsRef, props.multiple]);
@@ -101,7 +101,7 @@ const ComboboxTrigger = ({ className, variant = "plain", ...props }) => /* @__PU
101
101
  ...props
102
102
  });
103
103
  const ComboboxPopup = ({ className, children, side = "bottom", sideOffset = 4, alignOffset, align = "start", ...props }) => {
104
- const { chipsRef } = React$1.use(ComboboxContext);
104
+ const { chipsRef } = React.use(ComboboxContext);
105
105
  return /* @__PURE__ */ jsx(Combobox$1.Portal, { children: /* @__PURE__ */ jsx(Combobox$1.Positioner, {
106
106
  align,
107
107
  alignOffset,
@@ -197,7 +197,7 @@ const ComboboxCollection = (props) => /* @__PURE__ */ jsx(Combobox$1.Collection,
197
197
  ...props
198
198
  });
199
199
  const ComboboxChips = ({ className, children, startAddon, ...props }) => {
200
- const { chipsRef } = React$1.use(ComboboxContext);
200
+ const { chipsRef } = React.use(ComboboxContext);
201
201
  return /* @__PURE__ */ jsxs(Combobox$1.Chips, {
202
202
  className: cn("border-input bg-background ring-ring/24 focus-within:border-ring has-autofill:bg-foreground/4 has-aria-invalid:border-destructive/36 focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/16 dark:not-has-disabled:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 relative inline-flex min-h-9 w-full flex-wrap gap-1 rounded-lg border p-[calc(--spacing(1)-1px)] text-base shadow-xs/5 outline-none *:min-h-7 not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:ring-[3px] has-disabled:pointer-events-none has-disabled:opacity-64 has-data-[size=lg]:min-h-10 has-data-[size=lg]:*:min-h-8 has-data-[size=sm]:min-h-8 has-data-[size=sm]:*:min-h-6 has-[:disabled,:focus-within,[aria-invalid]]:shadow-none sm:min-h-8 sm:text-sm sm:*:min-h-6 sm:has-data-[size=lg]:min-h-9 sm:has-data-[size=lg]:*:min-h-7 sm:has-data-[size=sm]:min-h-7 sm:has-data-[size=sm]:*:min-h-5 dark:not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]", className),
203
203
  "data-slot": "combobox-chips",
@@ -1,4 +1,4 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { Autocomplete } from "@base-ui/react/autocomplete";
3
3
  import { ControlSize } from "../lib/control-size.js";
4
4
  import { Dialog } from "@base-ui/react/dialog";
@@ -7,32 +7,32 @@ import { VariantProps } from "class-variance-authority";
7
7
  type CommandProps<ItemValue> = Omit<Autocomplete.Root.Props<ItemValue>, "items"> & {
8
8
  items?: readonly ItemValue[] | undefined;
9
9
  };
10
- declare const Command: <ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>) => React$1.JSX.Element;
11
- declare const CommandDialog: <Payload>(props: Dialog.Root.Props<Payload>) => React$1.JSX.Element;
12
- declare const CommandDialogTrigger: (props: Dialog.Trigger.Props) => React$1.JSX.Element;
13
- declare const CommandDialogPopup: ({ className, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPopup>) => React$1.JSX.Element;
10
+ declare const Command: <ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>) => React.JSX.Element;
11
+ declare const CommandDialog: <Payload>(props: Dialog.Root.Props<Payload>) => React.JSX.Element;
12
+ declare const CommandDialogTrigger: (props: Dialog.Trigger.Props) => React.JSX.Element;
13
+ declare const CommandDialogPopup: ({ className, showCloseButton, ...props }: React.ComponentProps<typeof DialogPopup>) => React.JSX.Element;
14
14
  type CommandInputProps = Omit<Autocomplete.Input.Props, "size"> & {
15
15
  size?: ControlSize | number;
16
16
  wrapperClassName?: string;
17
- ref?: React$1.Ref<HTMLInputElement>;
17
+ ref?: React.Ref<HTMLInputElement>;
18
18
  };
19
- declare const CommandInput: ({ className, size, wrapperClassName, dir, onChange, ...props }: CommandInputProps) => React$1.JSX.Element;
20
- declare const CommandPanel: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
21
- declare const CommandEmpty: ({ className, ...props }: Autocomplete.Empty.Props) => React$1.JSX.Element;
19
+ declare const CommandInput: ({ className, size, wrapperClassName, dir, onChange, ...props }: CommandInputProps) => React.JSX.Element;
20
+ declare const CommandPanel: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
21
+ declare const CommandEmpty: ({ className, ...props }: Autocomplete.Empty.Props) => React.JSX.Element;
22
22
  declare const CommandList: ({ className, ...props }: Autocomplete.List.Props & {
23
- ref?: React$1.Ref<HTMLDivElement>;
24
- }) => React$1.JSX.Element;
25
- declare const CommandGroup: ({ className, ...props }: Autocomplete.Group.Props) => React$1.JSX.Element;
26
- declare const CommandGroupLabel: ({ className, ...props }: Autocomplete.GroupLabel.Props) => React$1.JSX.Element;
27
- declare const CommandCollection: (props: Autocomplete.Collection.Props) => React$1.JSX.Element;
23
+ ref?: React.Ref<HTMLDivElement>;
24
+ }) => React.JSX.Element;
25
+ declare const CommandGroup: ({ className, ...props }: Autocomplete.Group.Props) => React.JSX.Element;
26
+ declare const CommandGroupLabel: ({ className, ...props }: Autocomplete.GroupLabel.Props) => React.JSX.Element;
27
+ declare const CommandCollection: (props: Autocomplete.Collection.Props) => React.JSX.Element;
28
28
  declare const commandItemVariants: (props?: ({
29
29
  size?: "default" | "row" | null | undefined;
30
30
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
31
31
  declare const CommandItem: ({ className, size, ...props }: Autocomplete.Item.Props & {
32
- ref?: React$1.Ref<HTMLDivElement>;
32
+ ref?: React.Ref<HTMLDivElement>;
33
33
  size?: VariantProps<typeof commandItemVariants>["size"];
34
- }) => React$1.JSX.Element;
35
- declare const CommandSeparator: ({ className, ...props }: Autocomplete.Separator.Props) => React$1.JSX.Element;
36
- declare const CommandShortcut: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
37
- declare const CommandFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
34
+ }) => React.JSX.Element;
35
+ declare const CommandSeparator: ({ className, ...props }: Autocomplete.Separator.Props) => React.JSX.Element;
36
+ declare const CommandShortcut: ({ className, ...props }: React.ComponentProps<"span">) => React.JSX.Element;
37
+ declare const CommandFooter: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
38
38
  export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
@@ -66,7 +66,7 @@ const getFirstDayOfWeek = (locale) => {
66
66
  if (!info) return 0;
67
67
  return info.firstDay === 7 ? 6 : info.firstDay - 1;
68
68
  };
69
- const getMonthDays = (year, month, firstDow, weekendDays, today) => {
69
+ const getMonthDays = ({ year, month, firstDow, weekendDays, today }) => {
70
70
  const days = [];
71
71
  const first = Temporal.PlainDate.from({
72
72
  year,
@@ -274,7 +274,13 @@ const DatePickerPopoverContent = (props) => {
274
274
  const [view, setView] = useState("days");
275
275
  const [decadeBaseOverride, setDecadeBaseOverride] = useState(null);
276
276
  const decadeBase = decadeBaseOverride ?? decadeStart(viewYear);
277
- const days = useMemo(() => getMonthDays(viewYear, viewMonth, firstDow, weekendDays, today), [
277
+ const days = useMemo(() => getMonthDays({
278
+ year: viewYear,
279
+ month: viewMonth,
280
+ firstDow,
281
+ weekendDays,
282
+ today
283
+ }), [
278
284
  viewYear,
279
285
  viewMonth,
280
286
  firstDow,
@@ -1,18 +1,18 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { InputProps } from "./input.js";
3
3
  type DestructiveActionConfirmationProps = Omit<InputProps, "onChange" | "type" | "value"> & {
4
4
  confirmation: string;
5
- description?: React$1.ReactNode;
5
+ description?: React.ReactNode;
6
6
  fieldClassName?: string;
7
7
  inputClassName?: string;
8
- label: React$1.ReactNode;
8
+ label: React.ReactNode;
9
9
  onValueChange: (value: string) => void;
10
10
  value: string;
11
11
  };
12
- declare const DestructiveActionConfirmation: ({ className, confirmation, description, fieldClassName, inputClassName, label, onValueChange, value, ...props }: DestructiveActionConfirmationProps) => React$1.JSX.Element;
12
+ declare const DestructiveActionConfirmation: ({ className, confirmation, description, fieldClassName, inputClassName, label, onValueChange, value, ...props }: DestructiveActionConfirmationProps) => React.JSX.Element;
13
13
  declare function useDestructiveActionConfirmation(confirmation: string): {
14
14
  confirmed: boolean;
15
- onValueChange: React$1.Dispatch<React$1.SetStateAction<string>>;
15
+ onValueChange: React.Dispatch<React.SetStateAction<string>>;
16
16
  reset: () => void;
17
17
  value: string;
18
18
  };
@@ -3,7 +3,7 @@ import { cn } from "../lib/utils.js";
3
3
  import { Field, FieldDescription, FieldLabel } from "./field.js";
4
4
  import { Input } from "./input.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import * as React$1 from "react";
6
+ import * as React from "react";
7
7
  // src/components/destructive-action-confirmation.tsx
8
8
  const DestructiveActionConfirmation = ({ className, confirmation, description, fieldClassName, inputClassName, label, onValueChange, value, ...props }) => {
9
9
  const confirmed = isDestructiveActionConfirmed({
@@ -40,7 +40,7 @@ const DestructiveActionConfirmation = ({ className, confirmation, description, f
40
40
  });
41
41
  };
42
42
  function useDestructiveActionConfirmation(confirmation) {
43
- const [value, setValue] = React$1.useState("");
43
+ const [value, setValue] = React.useState("");
44
44
  return {
45
45
  confirmed: isDestructiveActionConfirmed({
46
46
  confirmation,
@@ -1,21 +1,21 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  /**
3
3
  * What a settled confirm asks of the dialog: `keep-open` when the action was
4
4
  * refused and the dialog shows why, so the caller need not throw to keep it.
5
5
  */
6
6
  type DestructiveConfirmOutcome = "keep-open";
7
7
  type DestructiveConfirmDialogProps = {
8
- cancelLabel: React$1.ReactNode;
9
- confirmLabel: React$1.ReactNode;
8
+ cancelLabel: React.ReactNode;
9
+ confirmLabel: React.ReactNode;
10
10
  confirmation: string;
11
- description: React$1.ReactNode;
12
- inputLabel: React$1.ReactNode;
11
+ description: React.ReactNode;
12
+ inputLabel: React.ReactNode;
13
13
  loading?: boolean | undefined;
14
14
  /** Settles to `"keep-open"` to keep the dialog; anything else closes it. */
15
15
  onConfirm: () => unknown;
16
16
  onOpenChange: (open: boolean) => void;
17
17
  open: boolean;
18
- title: React$1.ReactNode;
18
+ title: React.ReactNode;
19
19
  };
20
- declare const DestructiveConfirmDialog: ({ cancelLabel, confirmLabel, confirmation, description, inputLabel, loading, onConfirm, onOpenChange, open, title }: DestructiveConfirmDialogProps) => React$1.JSX.Element;
20
+ declare const DestructiveConfirmDialog: ({ cancelLabel, confirmLabel, confirmation, description, inputLabel, loading, onConfirm, onOpenChange, open, title }: DestructiveConfirmDialogProps) => React.JSX.Element;
21
21
  export { DestructiveConfirmDialog, type DestructiveConfirmDialogProps, type DestructiveConfirmOutcome };