@stll/ui 0.26.2 → 0.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/primitives.d.ts +7 -8
- package/dist/calendar/resource-calendar.d.ts +6 -7
- package/dist/calendar/resource-calendar.logic.d.ts +9 -10
- package/dist/components/application-rail.d.ts +11 -12
- package/dist/components/bidi-text.d.ts +3 -3
- package/dist/components/brand-icons.d.ts +3 -4
- package/dist/components/button-variants.d.ts +5 -6
- package/dist/components/button.js +5 -2
- package/dist/components/command.d.ts +1 -1
- package/dist/components/composer.d.ts +18 -19
- package/dist/components/context-menu.d.ts +4 -5
- package/dist/components/date-picker-popover.js +20 -18
- package/dist/components/date-picker-popover.logic.d.ts +6 -7
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/directional-icon.d.ts +2 -3
- package/dist/components/input-control.d.ts +4 -5
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/landing.d.ts +10 -11
- package/dist/components/menu.d.ts +1 -1
- package/dist/components/outline-rail.d.ts +4 -5
- package/dist/components/preview-card.d.ts +4 -4
- package/dist/components/scroll-to-top.d.ts +3 -4
- package/dist/components/segmented-icon-toggle.d.ts +2 -3
- package/dist/components/sheet.d.ts +1 -1
- package/dist/components/sidebar.d.ts +5 -5
- package/dist/components/sidebar.logic.d.ts +7 -8
- package/dist/components/stella-mark.d.ts +2 -3
- package/dist/components/stella-wordmark.d.ts +2 -3
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/workspace-shell.d.ts +3 -3
- package/dist/data-table/schema.d.ts +11 -12
- package/dist/data-table/table.d.ts +8 -9
- package/dist/hooks/use-contained-handler.d.ts +3 -4
- package/dist/hooks/use-content-dir.d.ts +4 -5
- package/dist/hooks/use-latest.d.ts +2 -3
- package/dist/hooks/use-mobile.d.ts +2 -3
- package/dist/hooks/use-viewport-width.d.ts +2 -3
- package/dist/inspector/chrome.d.ts +21 -22
- package/dist/inspector/dock.d.ts +2 -3
- package/dist/inspector/entity-tab.d.ts +4 -5
- package/dist/inspector/entity-tab.logic.d.ts +4 -5
- package/dist/inspector/facet-bar.d.ts +3 -4
- package/dist/inspector/facet-bar.logic.d.ts +4 -5
- package/dist/inspector/layout-tokens.d.ts +8 -9
- package/dist/inspector/pane-width.d.ts +11 -12
- package/dist/inspector/tabs.d.ts +7 -8
- package/dist/inspector/use-pane-width.d.ts +9 -10
- package/dist/kanban/band-peek.d.ts +7 -8
- package/dist/kanban/card-properties.d.ts +3 -4
- package/dist/kanban/card-shell.d.ts +3 -4
- package/dist/kanban/cell-action.d.ts +3 -4
- package/dist/kanban/column-band-header.d.ts +4 -5
- package/dist/kanban/column-bands.d.ts +9 -10
- package/dist/kanban/column-header.d.ts +3 -4
- package/dist/kanban/drag-interactions.d.ts +7 -8
- package/dist/kanban/grouping.d.ts +14 -15
- package/dist/kanban/layout-tokens.d.ts +6 -7
- package/dist/kanban/matrix.d.ts +20 -21
- package/dist/kanban/sortable-edge.d.ts +7 -8
- package/dist/kanban/sortable-interactions.d.ts +27 -27
- package/dist/kanban/sortable-interactions.logic.d.ts +14 -15
- package/dist/kanban/sticky-lane.d.ts +10 -11
- package/dist/kanban/subgroup-board.d.ts +10 -11
- package/dist/kanban/subgroup-board.js +8 -4
- package/dist/kanban/touch-identity.d.ts +2 -3
- package/dist/kanban/virtual-cell.d.ts +6 -7
- package/dist/lib/button-disposition.d.ts +6 -7
- package/dist/lib/control-size.d.ts +1 -1
- package/dist/lib/initials.d.ts +2 -3
- package/dist/lib/option-color.d.ts +6 -7
- package/dist/lib/overlay-layer.d.ts +6 -7
- package/dist/lib/positioner-sizing.d.ts +3 -4
- package/dist/lib/tab-order.d.ts +2 -3
- package/dist/lib/tooltip-content.d.ts +2 -3
- package/dist/lib/utils.d.ts +3 -4
- package/dist/lib/week.d.ts +4 -5
- package/dist/review/review-author-avatar.d.ts +3 -4
- package/dist/review/review-comment-card.d.ts +3 -4
- package/dist/review/review-decision-actions.d.ts +4 -5
- package/dist/review/review-diff-text.d.ts +9 -10
- package/dist/review/review-out-of-date-notice.d.ts +4 -5
- package/dist/review/review-severity-dot.d.ts +5 -6
- package/dist/review/review-status-badge.d.ts +5 -6
- package/package.json +8 -8
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
//#region src/calendar/primitives.d.ts
|
|
3
|
-
declare const CalendarGrid: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
4
|
-
declare const CalendarHeaderRow: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
5
|
-
declare const CalendarHeaderCell: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
6
|
-
declare const CalendarCell: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
7
|
-
declare const CalendarEntryButton: ({ className, ...props }: React$1.ComponentProps<"button">) => React$1.JSX.Element;
|
|
8
|
-
declare const CalendarEntrySurface: ({ className, ...props }: React$1.ComponentProps<"article">) => React$1.JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { CalendarCell, CalendarEntryButton, CalendarEntrySurface, CalendarGrid, CalendarHeaderCell, CalendarHeaderRow };
|
|
3
|
+
export declare const CalendarGrid: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
4
|
+
export declare const CalendarHeaderRow: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
5
|
+
export declare const CalendarHeaderCell: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
6
|
+
export declare const CalendarCell: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
7
|
+
export declare const CalendarEntryButton: ({ className, ...props }: React$1.ComponentProps<"button">) => React$1.JSX.Element;
|
|
8
|
+
export declare const CalendarEntrySurface: ({ className, ...props }: React$1.ComponentProps<"article">) => React$1.JSX.Element;
|
|
9
|
+
//#endregion
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
2
|
//#region src/calendar/resource-calendar.d.ts
|
|
3
|
-
type ResourceCalendarColumn = {
|
|
3
|
+
export type ResourceCalendarColumn = {
|
|
4
4
|
date: string;
|
|
5
5
|
label: ReactNode;
|
|
6
6
|
meta?: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
type ResourceCalendarResource = {
|
|
8
|
+
export type ResourceCalendarResource = {
|
|
9
9
|
id: string;
|
|
10
10
|
label: ReactNode;
|
|
11
11
|
meta?: ReactNode;
|
|
12
12
|
};
|
|
13
|
-
type ResourceCalendarEntryTone = "accent" | "neutral" | "warning" | "destructive";
|
|
14
|
-
type ResourceCalendarEntry = {
|
|
13
|
+
export type ResourceCalendarEntryTone = "accent" | "neutral" | "warning" | "destructive";
|
|
14
|
+
export type ResourceCalendarEntry = {
|
|
15
15
|
accessibleLabel: string;
|
|
16
16
|
endDateExclusive: string;
|
|
17
17
|
id: string;
|
|
@@ -30,6 +30,5 @@ type ResourceCalendarProps = {
|
|
|
30
30
|
resourceHeader: ReactNode;
|
|
31
31
|
resources: readonly ResourceCalendarResource[];
|
|
32
32
|
};
|
|
33
|
-
declare const ResourceCalendar: ({ ariaLabel, columns, empty, entries, onSelectEntry, resourceHeader, resources }: ResourceCalendarProps) => ReactElement;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { ResourceCalendar, ResourceCalendarColumn, ResourceCalendarEntry, ResourceCalendarEntryTone, ResourceCalendarResource };
|
|
33
|
+
export declare const ResourceCalendar: ({ ariaLabel, columns, empty, entries, onSelectEntry, resourceHeader, resources }: ResourceCalendarProps) => ReactElement;
|
|
34
|
+
//#endregion
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
//#region src/calendar/resource-calendar.logic.d.ts
|
|
2
|
-
type CalendarDateRange = {
|
|
2
|
+
export type CalendarDateRange = {
|
|
3
3
|
endDateExclusive: string;
|
|
4
4
|
startDate: string;
|
|
5
5
|
};
|
|
6
|
-
type ResourceCalendarPlacement = {
|
|
6
|
+
export type ResourceCalendarPlacement = {
|
|
7
7
|
columnStart: number;
|
|
8
8
|
span: number;
|
|
9
9
|
};
|
|
10
|
-
type ResourceCalendarLanePlacement = ResourceCalendarPlacement & {
|
|
10
|
+
export type ResourceCalendarLanePlacement = ResourceCalendarPlacement & {
|
|
11
11
|
entryId: string;
|
|
12
12
|
rowStart: number;
|
|
13
13
|
};
|
|
14
|
-
type ResourceCalendarLaneLayout = {
|
|
14
|
+
export type ResourceCalendarLaneLayout = {
|
|
15
15
|
placements: ResourceCalendarLanePlacement[];
|
|
16
16
|
rowCount: number;
|
|
17
17
|
};
|
|
18
|
-
declare const getResourceCalendarPlacement: ({ entry, visibleRange }: {
|
|
18
|
+
export declare const getResourceCalendarPlacement: ({ entry, visibleRange }: {
|
|
19
19
|
entry: CalendarDateRange;
|
|
20
20
|
visibleRange: CalendarDateRange;
|
|
21
21
|
}) => ResourceCalendarPlacement | null;
|
|
22
|
-
declare const assertConsecutiveCalendarDates: (dates: readonly string[]) => void;
|
|
23
|
-
declare const nextCalendarDate: (value: string) => string;
|
|
24
|
-
declare const layoutResourceCalendarEntries: (entries: readonly (CalendarDateRange & {
|
|
22
|
+
export declare const assertConsecutiveCalendarDates: (dates: readonly string[]) => void;
|
|
23
|
+
export declare const nextCalendarDate: (value: string) => string;
|
|
24
|
+
export declare const layoutResourceCalendarEntries: (entries: readonly (CalendarDateRange & {
|
|
25
25
|
id: string;
|
|
26
26
|
})[], visibleRange: CalendarDateRange) => ResourceCalendarLaneLayout;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { CalendarDateRange, ResourceCalendarLaneLayout, ResourceCalendarLanePlacement, ResourceCalendarPlacement, assertConsecutiveCalendarDates, getResourceCalendarPlacement, layoutResourceCalendarEntries, nextCalendarDate };
|
|
27
|
+
//#endregion
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
//#region src/components/application-rail.d.ts
|
|
3
|
-
declare const APPLICATION_RAIL_WIDTH: "w-12";
|
|
4
|
-
declare const APPLICATION_RAIL_BUTTON_SIZE: "size-11";
|
|
5
|
-
declare const APPLICATION_RAIL_ICON_SIZE: "size-4";
|
|
3
|
+
export declare const APPLICATION_RAIL_WIDTH: "w-12";
|
|
4
|
+
export declare const APPLICATION_RAIL_BUTTON_SIZE: "size-11";
|
|
5
|
+
export declare const APPLICATION_RAIL_ICON_SIZE: "size-4";
|
|
6
6
|
/**
|
|
7
7
|
* A compact application navigation rail. It preserves the same desktop width,
|
|
8
8
|
* button rhythm, separators, and account affordance as a collapsed app
|
|
9
9
|
* sidebar without bringing sidebar expansion or mobile-sheet state into hosts
|
|
10
10
|
* that only need a fixed rail.
|
|
11
11
|
*/
|
|
12
|
-
declare const ApplicationRail: ({ className, ...props }: React$1.ComponentProps<"nav">) => React$1.JSX.Element;
|
|
13
|
-
declare const ApplicationRailHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
14
|
-
declare const ApplicationRailContent: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
15
|
-
declare const ApplicationRailMenu: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
16
|
-
declare const ApplicationRailButton: ({ className, ...props }: React$1.ComponentProps<"button">) => React$1.JSX.Element;
|
|
17
|
-
declare const ApplicationRailSeparator: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
18
|
-
declare const ApplicationRailFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator };
|
|
12
|
+
export declare const ApplicationRail: ({ className, ...props }: React$1.ComponentProps<"nav">) => React$1.JSX.Element;
|
|
13
|
+
export declare const ApplicationRailHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
14
|
+
export declare const ApplicationRailContent: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
15
|
+
export declare const ApplicationRailMenu: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
16
|
+
export declare const ApplicationRailButton: ({ className, ...props }: React$1.ComponentProps<"button">) => React$1.JSX.Element;
|
|
17
|
+
export declare const ApplicationRailSeparator: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
18
|
+
export declare const ApplicationRailFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
19
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
//#region src/components/bidi-text.d.ts
|
|
3
|
-
declare const BidiText: (props: BidiTextProps) => React$1.JSX.Element;
|
|
4
|
-
declare const UserText: (props: BidiTextProps) => React$1.JSX.Element;
|
|
3
|
+
export declare const BidiText: (props: BidiTextProps) => React$1.JSX.Element;
|
|
4
|
+
export declare const UserText: (props: BidiTextProps) => React$1.JSX.Element;
|
|
5
5
|
type BidiDirection = "auto" | "ltr" | "rtl";
|
|
6
6
|
type BdiElementProps = Omit<React$1.ComponentPropsWithoutRef<"bdi">, "dir"> & {
|
|
7
7
|
as?: "bdi";
|
|
@@ -21,4 +21,4 @@ type ParagraphTextProps = Omit<React$1.ComponentPropsWithoutRef<"p">, "dir"> & {
|
|
|
21
21
|
};
|
|
22
22
|
type BidiTextProps = BdiElementProps | SpanTextProps | DivTextProps | ParagraphTextProps;
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export type { BidiDirection, BidiTextProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
//#region src/components/brand-icons.d.ts
|
|
3
3
|
type BrandIconProps = React$1.ComponentProps<"svg">;
|
|
4
|
-
declare const DiscordLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
5
|
-
declare const GitHubLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { DiscordLogoIcon, GitHubLogoIcon };
|
|
4
|
+
export declare const DiscordLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
5
|
+
export declare const GitHubLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
|
|
6
|
+
//#endregion
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
* tooltip can never open. Matches the treatment `disabled:opacity-64` gives, and
|
|
9
9
|
* swaps the cursor so the control still reads as unavailable on hover.
|
|
10
10
|
*/
|
|
11
|
-
declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
12
|
-
declare const buttonVariants: (props?: ({
|
|
13
|
-
size?: "
|
|
14
|
-
variant?: "
|
|
11
|
+
export declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
|
|
12
|
+
export declare const buttonVariants: (props?: ({
|
|
13
|
+
size?: "xs" | "sm" | "icon" | "default" | "lg" | "chip" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "xl" | null | undefined;
|
|
14
|
+
variant?: "link" | "destructive" | "outline" | "default" | "destructive-outline" | "ghost" | "secondary" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { buttonAccessibleDisabledClass, buttonVariants };
|
|
16
|
+
//#endregion
|
|
@@ -18,12 +18,15 @@ function Button({ className, variant, size, render, loading, children, disabled,
|
|
|
18
18
|
});
|
|
19
19
|
const isAccessibleDisabled = disposition === BUTTON_DISPOSITION.accessibleDisabled;
|
|
20
20
|
const defaultProps = {
|
|
21
|
-
children: loading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(LoaderIcon, {
|
|
21
|
+
children: loading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(LoaderIcon, {
|
|
22
|
+
className: "animate-spin",
|
|
23
|
+
"data-slot": "button-loader"
|
|
24
|
+
}), children] }) : children,
|
|
22
25
|
className: cn(buttonVariants({
|
|
23
26
|
className,
|
|
24
27
|
size,
|
|
25
28
|
variant
|
|
26
|
-
}), isAccessibleDisabled && "cursor-not-allowed opacity-64"),
|
|
29
|
+
}), loading && "[&_svg:not([data-slot=button-loader])]:hidden", isAccessibleDisabled && "cursor-not-allowed opacity-64"),
|
|
27
30
|
"data-slot": "button",
|
|
28
31
|
...isAccessibleDisabled ? {
|
|
29
32
|
"aria-disabled": true,
|
|
@@ -8,7 +8,7 @@ type CommandProps<ItemValue> = Omit<Autocomplete.Root.Props<ItemValue>, "items">
|
|
|
8
8
|
items?: readonly ItemValue[] | undefined;
|
|
9
9
|
};
|
|
10
10
|
declare const Command: <ItemValue>({ autoHighlight, keepHighlight, open, ...props }: CommandProps<ItemValue>) => React$1.JSX.Element;
|
|
11
|
-
declare const CommandDialog:
|
|
11
|
+
declare const CommandDialog: <Payload>(props: Dialog.Root.Props<Payload>) => React$1.JSX.Element;
|
|
12
12
|
declare const CommandDialogTrigger: (props: Dialog.Trigger.Props) => React$1.JSX.Element;
|
|
13
13
|
declare const CommandDialogPopup: ({ className, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPopup>) => React$1.JSX.Element;
|
|
14
14
|
type CommandInputProps = Omit<Autocomplete.Input.Props, "size"> & {
|
|
@@ -10,27 +10,27 @@ import { ReactNode } from "react";
|
|
|
10
10
|
* `rounded-2xl` / 13px in the inspector).
|
|
11
11
|
*/
|
|
12
12
|
/** Shared responsive size for the two round controls flanking a composer. */
|
|
13
|
-
declare const COMPOSER_CONTROL_BUTTON_SIZE: "icon-sm";
|
|
13
|
+
export declare const COMPOSER_CONTROL_BUTTON_SIZE: "icon-sm";
|
|
14
14
|
/** The bordered box: background, radius, border, colour transition. The
|
|
15
15
|
* radius is the docked bar's original `rounded-2xl`: at the compact row's
|
|
16
16
|
* stature it reads as a soft pill, which is the shape the composers were
|
|
17
17
|
* meant to unify on. */
|
|
18
|
-
declare const COMPOSER_BOX_CLASS = "bg-background rounded-2xl border transition-colors";
|
|
18
|
+
export declare const COMPOSER_BOX_CLASS = "bg-background rounded-2xl border transition-colors";
|
|
19
19
|
/** The box's focus ring in its default (non-anonymized) treatment. */
|
|
20
|
-
declare const COMPOSER_BOX_FOCUS_CLASS = "focus-within:border-ring";
|
|
20
|
+
export declare const COMPOSER_BOX_FOCUS_CLASS = "focus-within:border-ring";
|
|
21
21
|
/**
|
|
22
22
|
* The box's "shield active" treatment when the next send is anonymized: a
|
|
23
23
|
* blue ring replaces the default focus border (both together read as a
|
|
24
24
|
* double ring on click).
|
|
25
25
|
*/
|
|
26
|
-
declare const COMPOSER_BOX_ANONYMIZED_CLASS = "ring-info/40 border-info/40 focus-within:border-info/60 shadow-[0_0_0_4px_rgb(from_var(--color-info)_r_g_b_/_0.08)] ring-1";
|
|
26
|
+
export declare const COMPOSER_BOX_ANONYMIZED_CLASS = "ring-info/40 border-info/40 focus-within:border-info/60 shadow-[0_0_0_4px_rgb(from_var(--color-info)_r_g_b_/_0.08)] ring-1";
|
|
27
27
|
/**
|
|
28
28
|
* The compact (one-line) bar row: its stature, end alignment, control gap
|
|
29
29
|
* and inset. The surface supplies the layout (`grid` for the chat bar's
|
|
30
30
|
* three fixed columns, `flex` for the docked bar's variable leading
|
|
31
31
|
* controls); the row grows with the editor.
|
|
32
32
|
*/
|
|
33
|
-
declare const COMPOSER_COMPACT_ROW_CLASS = "min-h-11 items-end gap-1 px-1.5 py-px";
|
|
33
|
+
export declare const COMPOSER_COMPACT_ROW_CLASS = "min-h-11 items-end gap-1 px-1.5 py-px";
|
|
34
34
|
/**
|
|
35
35
|
* The compact text cell: one `text-sm` line at `leading-5` plus the
|
|
36
36
|
* vertical inset that makes a single line exactly as tall as the row's
|
|
@@ -38,9 +38,9 @@ declare const COMPOSER_COMPACT_ROW_CLASS = "min-h-11 items-end gap-1 px-1.5 py-p
|
|
|
38
38
|
* share one centre. The editable element itself takes `min-h-0` so an empty
|
|
39
39
|
* composer collapses to this one line and grows from there.
|
|
40
40
|
*/
|
|
41
|
-
declare const COMPOSER_COMPACT_TEXT_CELL_CLASS = "relative min-w-0 py-[11px]";
|
|
41
|
+
export declare const COMPOSER_COMPACT_TEXT_CELL_CLASS = "relative min-w-0 py-[11px]";
|
|
42
42
|
/** Text stature of the editor and every placeholder painted over it. */
|
|
43
|
-
declare const COMPOSER_TEXT_CLASS = "text-sm leading-5";
|
|
43
|
+
export declare const COMPOSER_TEXT_CLASS = "text-sm leading-5";
|
|
44
44
|
/**
|
|
45
45
|
* The `large` (hero) text well: the padding around the editor. The editor's
|
|
46
46
|
* own stature is `COMPOSER_LARGE_EDITOR_CLASS` (~3 lines of `text-sm` at
|
|
@@ -48,28 +48,28 @@ declare const COMPOSER_TEXT_CLASS = "text-sm leading-5";
|
|
|
48
48
|
* chat editor targets its `.ProseMirror` node while a plain textarea takes
|
|
49
49
|
* it directly.
|
|
50
50
|
*/
|
|
51
|
-
declare const COMPOSER_LARGE_TEXT_WELL_CLASS = "ps-3 pe-3 pt-2 pb-1";
|
|
51
|
+
export declare const COMPOSER_LARGE_TEXT_WELL_CLASS = "ps-3 pe-3 pt-2 pb-1";
|
|
52
52
|
/** The `large` editable element's stature: three lines before it grows. */
|
|
53
|
-
declare const COMPOSER_LARGE_EDITOR_CLASS = "min-h-15";
|
|
53
|
+
export declare const COMPOSER_LARGE_EDITOR_CLASS = "min-h-15";
|
|
54
54
|
/** The placeholder painted over an empty editor, in either stature. */
|
|
55
|
-
declare const COMPOSER_PLACEHOLDER_CLASS = "text-foreground-placeholder pointer-events-none absolute truncate text-sm";
|
|
55
|
+
export declare const COMPOSER_PLACEHOLDER_CLASS = "text-foreground-placeholder pointer-events-none absolute truncate text-sm";
|
|
56
56
|
/** The `large` action row under the text well: leading controls, trailing send. */
|
|
57
|
-
declare const COMPOSER_LARGE_ACTION_ROW_CLASS = "flex items-center justify-end gap-0.5 px-1.5 pb-1.5";
|
|
57
|
+
export declare const COMPOSER_LARGE_ACTION_ROW_CLASS = "flex items-center justify-end gap-0.5 px-1.5 pb-1.5";
|
|
58
58
|
/** The leading group of the action row (the (+) menu, or a scope control). */
|
|
59
|
-
declare const COMPOSER_LEADING_GROUP_CLASS = "flex min-w-0 items-center gap-0.5";
|
|
59
|
+
export declare const COMPOSER_LEADING_GROUP_CLASS = "flex min-w-0 items-center gap-0.5";
|
|
60
60
|
/**
|
|
61
61
|
* The round, foreground-filled primary control at the action row's end:
|
|
62
62
|
* the chat's send/stop/retry button and the law home's submit. `size-7`
|
|
63
63
|
* pins the circle to the (+) trigger's diameter at every breakpoint
|
|
64
64
|
* (`icon-sm` alone is 32px below `sm`), so a row's two round ends match.
|
|
65
65
|
*/
|
|
66
|
-
declare const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background hover:bg-foreground/90 size-7 shrink-0 rounded-full";
|
|
66
|
+
export declare const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background hover:bg-foreground/90 size-7 shrink-0 rounded-full";
|
|
67
67
|
/**
|
|
68
68
|
* A picker in the status row under the box (the chat's matter picker, the
|
|
69
69
|
* law home's scope and jurisdiction): quiet text with a hover surface, so
|
|
70
70
|
* the row stays subordinate to the box above it.
|
|
71
71
|
*/
|
|
72
|
-
declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] transition-colors";
|
|
72
|
+
export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] transition-colors";
|
|
73
73
|
type ComposerStatusRowProps = {
|
|
74
74
|
/** Left cluster: matter picker, web-search / anonymize toggles, ... */
|
|
75
75
|
start?: ReactNode | undefined;
|
|
@@ -83,8 +83,8 @@ type ComposerStatusRowProps = {
|
|
|
83
83
|
* surface so the shell can never drift. Renders nothing when both slots are
|
|
84
84
|
* empty, so a surface with no per-send controls shows no row.
|
|
85
85
|
*/
|
|
86
|
-
declare const ComposerStatusRow: ({ start, end, className }: ComposerStatusRowProps) => import("react").JSX.Element | null;
|
|
87
|
-
type ComposerPickerOption<Value extends string> = {
|
|
86
|
+
export declare const ComposerStatusRow: ({ start, end, className }: ComposerStatusRowProps) => import("react").JSX.Element | null;
|
|
87
|
+
export type ComposerPickerOption<Value extends string> = {
|
|
88
88
|
label: string;
|
|
89
89
|
value: Value;
|
|
90
90
|
};
|
|
@@ -103,6 +103,5 @@ type ComposerPickerProps<Value extends string> = {
|
|
|
103
103
|
* Every picker under a box renders through this so the row reads as one
|
|
104
104
|
* kind of control.
|
|
105
105
|
*/
|
|
106
|
-
declare const ComposerPicker: <Value extends string>({ ariaLabel, icon, onChange, options, value }: ComposerPickerProps<Value>) => import("react").JSX.Element;
|
|
107
|
-
//#endregion
|
|
108
|
-
export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS, ComposerPicker, ComposerPickerOption, ComposerStatusRow };
|
|
106
|
+
export declare const ComposerPicker: <Value extends string>({ ariaLabel, icon, onChange, options, value }: ComposerPickerProps<Value>) => import("react").JSX.Element;
|
|
107
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
//#region src/components/context-menu.d.ts
|
|
3
|
-
type ContextMenuAction = {
|
|
3
|
+
export type ContextMenuAction = {
|
|
4
4
|
label: string;
|
|
5
5
|
icon?: ReactNode;
|
|
6
6
|
onClick?: () => void;
|
|
@@ -17,7 +17,7 @@ type ContextMenuAction = {
|
|
|
17
17
|
* several of in a row. */
|
|
18
18
|
closeOnClick?: boolean;
|
|
19
19
|
};
|
|
20
|
-
type ContextMenuProps = {
|
|
20
|
+
export type ContextMenuProps = {
|
|
21
21
|
actions: readonly ContextMenuAction[];
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
};
|
|
@@ -32,6 +32,5 @@ type ContextMenuProps = {
|
|
|
32
32
|
* Renders only the children when `actions` is empty so callers can
|
|
33
33
|
* pass conditionally.
|
|
34
34
|
*/
|
|
35
|
-
declare const ContextMenu: ({ actions, children }: ContextMenuProps) => ReactNode;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { ContextMenu, ContextMenuAction, ContextMenuProps };
|
|
35
|
+
export declare const ContextMenu: ({ actions, children }: ContextMenuProps) => ReactNode;
|
|
36
|
+
//#endregion
|
|
@@ -260,30 +260,32 @@ const DatePickerPopoverContent = ({ id, labelledBy, value: rawValue, onChange, l
|
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
const handlePrev = () => {
|
|
263
|
-
if (view === "days")
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
263
|
+
if (view === "days") {
|
|
264
|
+
if (viewMonth === 0) setViewMonthOverride({
|
|
265
|
+
month: 11,
|
|
266
|
+
year: viewYear - 1
|
|
267
|
+
});
|
|
268
|
+
else setViewMonthOverride({
|
|
269
|
+
month: viewMonth - 1,
|
|
270
|
+
year: viewYear
|
|
271
|
+
});
|
|
272
|
+
} else if (view === "months") setViewMonthOverride({
|
|
272
273
|
month: viewMonth,
|
|
273
274
|
year: viewYear - 1
|
|
274
275
|
});
|
|
275
276
|
else setDecadeBaseOverride(decadeBase - 10);
|
|
276
277
|
};
|
|
277
278
|
const handleNext = () => {
|
|
278
|
-
if (view === "days")
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
279
|
+
if (view === "days") {
|
|
280
|
+
if (viewMonth === 11) setViewMonthOverride({
|
|
281
|
+
month: 0,
|
|
282
|
+
year: viewYear + 1
|
|
283
|
+
});
|
|
284
|
+
else setViewMonthOverride({
|
|
285
|
+
month: viewMonth + 1,
|
|
286
|
+
year: viewYear
|
|
287
|
+
});
|
|
288
|
+
} else if (view === "months") setViewMonthOverride({
|
|
287
289
|
month: viewMonth,
|
|
288
290
|
year: viewYear + 1
|
|
289
291
|
});
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
//#region src/components/date-picker-popover.logic.d.ts
|
|
2
|
-
type CalendarMonth = {
|
|
2
|
+
export type CalendarMonth = {
|
|
3
3
|
month: number;
|
|
4
4
|
year: number;
|
|
5
5
|
};
|
|
6
|
-
declare const localDateFromTimestamp: (timestamp: number) => string;
|
|
7
|
-
declare const resolveCalendarViewMonth: ({ override, today, value }: {
|
|
6
|
+
export declare const localDateFromTimestamp: (timestamp: number) => string;
|
|
7
|
+
export declare const resolveCalendarViewMonth: ({ override, today, value }: {
|
|
8
8
|
override: CalendarMonth | null;
|
|
9
9
|
today: string;
|
|
10
10
|
value: string;
|
|
11
11
|
}) => CalendarMonth;
|
|
12
|
-
declare const shiftCalendarDate: (date: string, options: {
|
|
12
|
+
export declare const shiftCalendarDate: (date: string, options: {
|
|
13
13
|
months?: number;
|
|
14
14
|
years?: number;
|
|
15
15
|
}) => string;
|
|
16
|
-
declare const millisecondsUntilNextLocalDate: (timestamp: number) => number;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { CalendarMonth, localDateFromTimestamp, millisecondsUntilNextLocalDate, resolveCalendarViewMonth, shiftCalendarDate };
|
|
16
|
+
export declare const millisecondsUntilNextLocalDate: (timestamp: number) => number;
|
|
17
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import * as React$1 from "react";
|
|
|
3
3
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
4
4
|
//#region src/components/dialog.d.ts
|
|
5
5
|
declare const DialogCreateHandle: typeof Dialog$1.createHandle;
|
|
6
|
-
declare const Dialog:
|
|
6
|
+
declare const Dialog: <Payload>(props: Dialog$1.Root.Props<Payload>) => React$1.JSX.Element;
|
|
7
7
|
declare const DialogPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare function DialogTrigger({ tooltip, ...props }: Dialog$1.Trigger.Props & {
|
|
9
9
|
tooltip?: React$1.ReactNode;
|
|
@@ -25,6 +25,5 @@ type DirectionalIconProps = {
|
|
|
25
25
|
* handling wrong (forget the flip, or wrongly flip a non-directional
|
|
26
26
|
* icon). See `/conventions-ux` → Right-to-Left & Bidirectional.
|
|
27
27
|
*/
|
|
28
|
-
declare const DirectionalIcon: ({ icon: Icon, className, flip }: DirectionalIconProps) => import("react").JSX.Element;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { DirectionalIcon };
|
|
28
|
+
export declare const DirectionalIcon: ({ icon: Icon, className, flip }: DirectionalIconProps) => import("react").JSX.Element;
|
|
29
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/components/input-control.d.ts
|
|
2
|
-
declare const INPUT_CONTROL_CLASS_NAME = "border-input bg-background text-foreground ring-ring/24 has-autofill:bg-foreground/4 has-focus-visible:border-ring has-aria-invalid:border-destructive/36 has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 relative inline-flex w-full rounded-lg border text-base shadow-xs/5 transition-shadow 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-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] has-focus-visible:ring-[3px] has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none sm:text-sm dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] pointer-coarse:min-h-11";
|
|
3
|
-
declare const INPUT_ELEMENT_CLASS_NAME = "placeholder:text-foreground-placeholder h-8.5 w-full min-w-0 rounded-[inherit] px-[calc(--spacing(3)-1px)] leading-8.5 outline-none [transition:background-color_5000000s_ease-in-out_0s] sm:h-7.5 sm:leading-7.5 pointer-coarse:h-full";
|
|
4
|
-
declare const INPUT_SIZE_CLASS_NAMES: {
|
|
2
|
+
export declare const INPUT_CONTROL_CLASS_NAME = "border-input bg-background text-foreground ring-ring/24 has-autofill:bg-foreground/4 has-focus-visible:border-ring has-aria-invalid:border-destructive/36 has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 relative inline-flex w-full rounded-lg border text-base shadow-xs/5 transition-shadow 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-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] has-focus-visible:ring-[3px] has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none sm:text-sm dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] pointer-coarse:min-h-11";
|
|
3
|
+
export declare const INPUT_ELEMENT_CLASS_NAME = "placeholder:text-foreground-placeholder h-8.5 w-full min-w-0 rounded-[inherit] px-[calc(--spacing(3)-1px)] leading-8.5 outline-none [transition:background-color_5000000s_ease-in-out_0s] sm:h-7.5 sm:leading-7.5 pointer-coarse:h-full";
|
|
4
|
+
export declare const INPUT_SIZE_CLASS_NAMES: {
|
|
5
5
|
readonly sm: "h-7.5 px-[calc(--spacing(2.5)-1px)] leading-7.5 sm:h-6.5 sm:leading-6.5 pointer-coarse:h-full";
|
|
6
6
|
readonly default: undefined;
|
|
7
7
|
readonly lg: "h-9.5 leading-9.5 sm:h-8.5 sm:leading-8.5 pointer-coarse:h-full";
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { INPUT_CONTROL_CLASS_NAME, INPUT_ELEMENT_CLASS_NAME, INPUT_SIZE_CLASS_NAMES };
|
|
9
|
+
//#endregion
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/input-group.d.ts
|
|
6
6
|
declare const InputGroup: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
|
|
7
7
|
declare const inputGroupAddonVariants: (props?: ({
|
|
8
|
-
align?: "inline-
|
|
8
|
+
align?: "inline-start" | "block-end" | "block-start" | "inline-end" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
declare const InputGroupAddon: ({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) => React$1.JSX.Element;
|
|
11
11
|
declare const InputGroupText: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
|
|
@@ -16,46 +16,45 @@ type LandingLayoutProps = {
|
|
|
16
16
|
/** Below the columns, in its own bounded scroll: crawlable navigation. */
|
|
17
17
|
footer?: ReactNode | undefined;
|
|
18
18
|
};
|
|
19
|
-
declare const LandingLayout: ({ actions, hero, children, footer }: LandingLayoutProps) => import("react").JSX.Element;
|
|
19
|
+
export declare const LandingLayout: ({ actions, hero, children, footer }: LandingLayoutProps) => import("react").JSX.Element;
|
|
20
20
|
type LandingGreetingProps = {
|
|
21
21
|
/** The mark in the tile: the product mark, or the section's icon. */
|
|
22
22
|
icon: ReactNode;
|
|
23
23
|
/** The one line under the tile, as the page's heading. */
|
|
24
24
|
children: ReactNode;
|
|
25
25
|
};
|
|
26
|
-
declare const LandingGreeting: ({ icon, children }: LandingGreetingProps) => import("react").JSX.Element;
|
|
26
|
+
export declare const LandingGreeting: ({ icon, children }: LandingGreetingProps) => import("react").JSX.Element;
|
|
27
27
|
/** A column's heading: an icon and an uppercase label, as a link or a trigger. */
|
|
28
|
-
declare const LANDING_SECTION_HEADING_CLASS = "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex items-center gap-2 rounded-md px-1 text-xs font-semibold tracking-widest uppercase transition-colors outline-none focus-visible:ring-2";
|
|
28
|
+
export declare const LANDING_SECTION_HEADING_CLASS = "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex items-center gap-2 rounded-md px-1 text-xs font-semibold tracking-widest uppercase transition-colors outline-none focus-visible:ring-2";
|
|
29
29
|
/** A row of a column, as a link or a button. */
|
|
30
|
-
declare const LANDING_ROW_CLASS = "group hover:bg-accent/50 focus-visible:ring-ring rounded-md px-2 py-1.5 text-start transition-colors outline-none focus-visible:ring-2";
|
|
30
|
+
export declare const LANDING_ROW_CLASS = "group hover:bg-accent/50 focus-visible:ring-ring rounded-md px-2 py-1.5 text-start transition-colors outline-none focus-visible:ring-2";
|
|
31
31
|
type LandingSectionProps = {
|
|
32
32
|
children: ReactNode;
|
|
33
33
|
heading: ReactNode;
|
|
34
34
|
};
|
|
35
35
|
/** A column: its heading stays put, its rows scroll beneath it. */
|
|
36
|
-
declare const LandingSection: ({ children, heading }: LandingSectionProps) => import("react").JSX.Element;
|
|
36
|
+
export declare const LandingSection: ({ children, heading }: LandingSectionProps) => import("react").JSX.Element;
|
|
37
37
|
type LandingButtonProps = {
|
|
38
38
|
icon?: ReactElement;
|
|
39
39
|
meta?: ReactNode | undefined;
|
|
40
40
|
onClick: () => void;
|
|
41
41
|
title: ReactNode;
|
|
42
42
|
};
|
|
43
|
-
declare const LandingButton: ({ icon, meta, onClick, title }: LandingButtonProps) => import("react").JSX.Element;
|
|
43
|
+
export declare const LandingButton: ({ icon, meta, onClick, title }: LandingButtonProps) => import("react").JSX.Element;
|
|
44
44
|
type LandingItemTextProps = {
|
|
45
45
|
icon?: ReactElement;
|
|
46
46
|
iconTone?: "muted" | "matter" | undefined;
|
|
47
47
|
meta?: ReactNode | undefined;
|
|
48
48
|
title: ReactNode;
|
|
49
49
|
};
|
|
50
|
-
declare const LandingItemText: ({ icon, iconTone, meta, title }: LandingItemTextProps) => import("react").JSX.Element;
|
|
50
|
+
export declare const LandingItemText: ({ icon, iconTone, meta, title }: LandingItemTextProps) => import("react").JSX.Element;
|
|
51
51
|
type LandingRowIconProps = {
|
|
52
52
|
children: ReactElement;
|
|
53
53
|
tone?: "muted" | "matter" | undefined;
|
|
54
54
|
};
|
|
55
|
-
declare const LandingRowIcon: ({ children, tone }: LandingRowIconProps) => import("react").JSX.Element;
|
|
55
|
+
export declare const LandingRowIcon: ({ children, tone }: LandingRowIconProps) => import("react").JSX.Element;
|
|
56
56
|
type LandingEmptyProps = {
|
|
57
57
|
children: ReactNode;
|
|
58
58
|
};
|
|
59
|
-
declare const LandingEmpty: ({ children }: LandingEmptyProps) => import("react").JSX.Element;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { LANDING_ROW_CLASS, LANDING_SECTION_HEADING_CLASS, LandingButton, LandingEmpty, LandingGreeting, LandingItemText, LandingLayout, LandingRowIcon, LandingSection };
|
|
59
|
+
export declare const LandingEmpty: ({ children }: LandingEmptyProps) => import("react").JSX.Element;
|
|
60
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
3
3
|
//#region src/components/menu.d.ts
|
|
4
4
|
declare const MenuCreateHandle: typeof Menu$1.createHandle;
|
|
5
|
-
declare const Menu: <Payload>(props: Menu$1.Root.Props<Payload>) =>
|
|
5
|
+
declare const Menu: <Payload>(props: Menu$1.Root.Props<Payload>) => React$1.JSX.Element;
|
|
6
6
|
declare const MenuPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare function MenuTrigger({ tooltip, ...props }: Menu$1.Trigger.Props & {
|
|
8
8
|
tooltip?: React$1.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from "react";
|
|
2
2
|
//#region src/components/outline-rail.d.ts
|
|
3
|
-
type OutlineItem = {
|
|
3
|
+
export type OutlineItem = {
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
/** What the entry contains, after the label that names it. The label
|
|
@@ -15,7 +15,7 @@ type OutlineItem = {
|
|
|
15
15
|
* (e.g. "--option-blue"). Defaults to the neutral foreground. */
|
|
16
16
|
color?: string;
|
|
17
17
|
};
|
|
18
|
-
type OutlineRailProps = {
|
|
18
|
+
export type OutlineRailProps = {
|
|
19
19
|
items: OutlineItem[];
|
|
20
20
|
scrollContainerRef: RefObject<HTMLElement | null>;
|
|
21
21
|
/** Vertical position (0–100) of an item's tick. Return null to drop it. */
|
|
@@ -38,6 +38,5 @@ type OutlineRailProps = {
|
|
|
38
38
|
panelWidth?: number;
|
|
39
39
|
ariaLabel?: string;
|
|
40
40
|
};
|
|
41
|
-
declare const OutlineRail: ({ items, scrollContainerRef, resolvePct, onJump, activeId, header, collapsedFromLevel, topOffset, panelWidth, ariaLabel }: OutlineRailProps) => import("react").JSX.Element | null;
|
|
42
|
-
//#endregion
|
|
43
|
-
export { OutlineItem, OutlineRail, OutlineRailProps };
|
|
41
|
+
export declare const OutlineRail: ({ items, scrollContainerRef, resolvePct, onJump, activeId, header, collapsedFromLevel, topOffset, panelWidth, ariaLabel }: OutlineRailProps) => import("react").JSX.Element | null;
|
|
42
|
+
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
3
3
|
//#region src/components/preview-card.d.ts
|
|
4
|
-
declare const PreviewCard: typeof PreviewCardPrimitive.Root;
|
|
5
|
-
declare const PreviewCardTrigger: ({ ...props }: PreviewCardPrimitive.Trigger.Props) => React.ReactElement;
|
|
6
|
-
declare const PreviewCardPopup: ({ className, children, align, sideOffset, anchor, ...props }: PreviewCardPrimitive.Popup.Props & {
|
|
4
|
+
export declare const PreviewCard: typeof PreviewCardPrimitive.Root;
|
|
5
|
+
export declare const PreviewCardTrigger: ({ ...props }: PreviewCardPrimitive.Trigger.Props) => React.ReactElement;
|
|
6
|
+
export declare const PreviewCardPopup: ({ className, children, align, sideOffset, anchor, ...props }: PreviewCardPrimitive.Popup.Props & {
|
|
7
7
|
align?: PreviewCardPrimitive.Positioner.Props["align"];
|
|
8
8
|
sideOffset?: PreviewCardPrimitive.Positioner.Props["sideOffset"];
|
|
9
9
|
anchor?: PreviewCardPrimitive.Positioner.Props["anchor"];
|
|
10
10
|
}) => React.ReactElement;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { PreviewCard as HoverCard,
|
|
12
|
+
export { PreviewCard as HoverCard, PreviewCardPopup as HoverCardContent, PreviewCardTrigger as HoverCardTrigger, PreviewCardPrimitive };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
2
|
//#region src/components/scroll-to-top.d.ts
|
|
3
|
-
type ScrollToTopProps = {
|
|
3
|
+
export type ScrollToTopProps = {
|
|
4
4
|
scrollContainerRef: RefObject<HTMLElement | null>;
|
|
5
5
|
/** Show once scrollTop exceeds this many px. */
|
|
6
6
|
threshold?: number;
|
|
7
7
|
label?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const ScrollToTop: ({ scrollContainerRef, threshold, label, className }: ScrollToTopProps) => import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { ScrollToTop, ScrollToTopProps };
|
|
10
|
+
export declare const ScrollToTop: ({ scrollContainerRef, threshold, label, className }: ScrollToTopProps) => import("react").JSX.Element;
|
|
11
|
+
//#endregion
|
|
@@ -17,6 +17,5 @@ type SegmentedIconToggleProps<T extends string> = {
|
|
|
17
17
|
/** Compact segmented control of icon buttons (e.g. table row wrap, list
|
|
18
18
|
* density). One shared shell so every density/mode switch looks and behaves
|
|
19
19
|
* the same across the app. */
|
|
20
|
-
declare const SegmentedIconToggle: <T extends string>({ value, options, onChange, size }: SegmentedIconToggleProps<T>) => import("react").JSX.Element;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { SegmentedIconToggle };
|
|
20
|
+
export declare const SegmentedIconToggle: <T extends string>({ value, options, onChange, size }: SegmentedIconToggleProps<T>) => import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Dialog } from "@base-ui/react/dialog";
|
|
3
3
|
//#region src/components/sheet.d.ts
|
|
4
|
-
declare const Sheet:
|
|
4
|
+
declare const Sheet: <Payload>(props: Dialog.Root.Props<Payload>) => React$1.JSX.Element;
|
|
5
5
|
declare const SheetPortal: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
type SheetSide = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
7
7
|
declare function SheetTrigger({ tooltip, ...props }: Dialog.Trigger.Props & {
|