@usememos/ui 26.11.1 → 26.11.3
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/README.md +1 -1
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.js.map +3 -3
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.js.map +3 -3
- package/dist/components/dialog/index.js.map +2 -2
- package/dist/components/dialog/parts.js +1 -1
- package/dist/components/dialog/parts.js.map +3 -3
- package/dist/components/drawer/index.js +3 -0
- package/dist/components/drawer/index.js.map +7 -0
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.js.map +3 -3
- package/dist/components/form/index.js +3 -0
- package/dist/components/form/index.js.map +7 -0
- package/dist/components/list/index.js +3 -0
- package/dist/components/list/index.js.map +7 -0
- package/dist/components/menu/classes.js +1 -1
- package/dist/components/menu/classes.js.map +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.js.map +3 -3
- package/dist/components/popover/classes.js +1 -1
- package/dist/components/popover/classes.js.map +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.js.map +3 -3
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.js.map +3 -3
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/index.js.map +3 -3
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.js.map +3 -3
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/types/components/badge/index.d.ts +2 -2
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/combobox/index.d.ts +8 -0
- package/dist/types/components/dialog/index.d.ts +3 -3
- package/dist/types/components/dialog/parts.d.ts +14 -1
- package/dist/types/components/drawer/index.d.ts +44 -0
- package/dist/types/components/field/index.d.ts +6 -0
- package/dist/types/components/form/index.d.ts +28 -0
- package/dist/types/components/list/index.d.ts +26 -0
- package/dist/types/components/menu/classes.d.ts +4 -0
- package/dist/types/components/menu/index.d.ts +2 -0
- package/dist/types/components/popover/classes.d.ts +6 -1
- package/dist/types/components/popover/index.d.ts +7 -0
- package/dist/types/components/select/index.d.ts +5 -0
- package/dist/types/components/table/index.d.ts +10 -0
- package/dist/types/components/toast/index.d.ts +1 -1
- package/dist/types/components/toggle-group/index.d.ts +2 -0
- package/dist/types/index.d.ts +5 -1
- package/llms-full.txt +487 -68
- package/llms.txt +4 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ export interface ButtonProps extends BaseButton.Props {
|
|
|
8
8
|
size?: Size;
|
|
9
9
|
/** A Lucide element, before the label. With no children the button is square and needs `aria-label`. */
|
|
10
10
|
icon?: IconElement;
|
|
11
|
+
/** A Lucide element after the label, such as a chevron or an arrow that says where the action leads. */
|
|
12
|
+
iconEnd?: IconElement;
|
|
11
13
|
/** Keeps the width, shows a Spinner and ignores presses. */
|
|
12
14
|
loading?: boolean;
|
|
13
15
|
/** The accessible name while loading, such as "Saving". */
|
|
@@ -47,6 +47,14 @@ export interface ItemProps extends BaseCombobox.Item.Props {
|
|
|
47
47
|
}
|
|
48
48
|
/** One option, with a check at the end when chosen. */
|
|
49
49
|
export declare const Item: import("react").ForwardRefExoticComponent<Omit<ItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
50
|
+
export interface RowProps extends BaseCombobox.Row.Props {
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* One row of a grid, with `grid` on the root: its items are square cells for
|
|
54
|
+
* an icon or an emoji, and arrow keys move across rows and columns. Split the
|
|
55
|
+
* filtered items into rows of a fixed count.
|
|
56
|
+
*/
|
|
57
|
+
export declare const Row: import("react").ForwardRefExoticComponent<Omit<RowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
50
58
|
export interface EmptyProps extends BaseCombobox.Empty.Props {
|
|
51
59
|
}
|
|
52
60
|
/** What shows when nothing matches, such as "No tags found". Always mounted, so screen readers hear it. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dialog as BaseDialog } from '@base-ui/react/dialog';
|
|
2
2
|
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
import { type PopupProps as SharedPopupProps } from './parts.js';
|
|
3
|
+
import { type PopupProps as SharedPopupProps, type VariantProps } from './parts.js';
|
|
4
4
|
export type { CloseProps, DescriptionProps, FooterProps, RootProps, TitleProps, TriggerProps } from './parts.js';
|
|
5
|
-
export interface PopupProps extends SharedPopupProps {
|
|
5
|
+
export interface PopupProps extends SharedPopupProps, VariantProps {
|
|
6
6
|
/** The accessible name of the X button at the top right. Default "Close". */
|
|
7
7
|
closeLabel?: string;
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@ export interface PopupProps extends SharedPopupProps {
|
|
|
10
10
|
export declare const Root: <Payload>(props: BaseDialog.Root.Props<Payload>) => React.JSX.Element;
|
|
11
11
|
/** Opens the dialog. Usually `render={<Button />}`. */
|
|
12
12
|
export declare const Trigger: ForwardRefExoticComponent<Omit<import("./parts.js").TriggerProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
/** The panel over a dimmed backdrop, with an X at the top right. A sheet from the bottom below `breakpoint-sm`. */
|
|
13
|
+
/** The panel over a dimmed backdrop, with an X at the top right; `variant="bare"` drops the padding and the X. A sheet from the bottom below `breakpoint-sm`. */
|
|
14
14
|
export declare const Popup: ForwardRefExoticComponent<PopupProps & RefAttributes<HTMLDivElement>>;
|
|
15
15
|
/** The dialog's heading, an `<h2>`: a question or a task. */
|
|
16
16
|
export declare const Title: ForwardRefExoticComponent<Omit<import("./parts.js").TitleProps, "ref"> & RefAttributes<HTMLHeadingElement>>;
|
|
@@ -9,6 +9,19 @@ export interface PopupProps extends BaseDialog.Popup.Props {
|
|
|
9
9
|
/** Below `breakpoint-sm` the dialog becomes a sheet from the bottom. `false` keeps it centered. Default true. */
|
|
10
10
|
sheet?: boolean;
|
|
11
11
|
}
|
|
12
|
+
export interface VariantProps {
|
|
13
|
+
/**
|
|
14
|
+
* `panel` (default) pads the content `space-5`, stacks it `space-4` apart and
|
|
15
|
+
* adds the X. `bare` keeps the surface, radius and shadow but has no padding,
|
|
16
|
+
* gap or X: the content runs edge to edge, for a search palette or an image.
|
|
17
|
+
*/
|
|
18
|
+
variant?: 'panel' | 'bare';
|
|
19
|
+
/**
|
|
20
|
+
* Covers the whole screen with square corners, at every width, instead of
|
|
21
|
+
* a centered panel or a sheet. With `bare`, for an image viewer.
|
|
22
|
+
*/
|
|
23
|
+
fullScreen?: boolean;
|
|
24
|
+
}
|
|
12
25
|
export interface TitleProps extends BaseDialog.Title.Props {
|
|
13
26
|
}
|
|
14
27
|
export interface DescriptionProps extends BaseDialog.Description.Props {
|
|
@@ -24,7 +37,7 @@ export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
24
37
|
export declare function createDialogParts(Base: typeof BaseDialog, name: 'dialog' | 'alert-dialog', closeButton: boolean): {
|
|
25
38
|
Root: <Payload>(props: BaseDialog.Root.Props<Payload>) => React.JSX.Element;
|
|
26
39
|
Trigger: import("react").ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
|
-
Popup: import("react").ForwardRefExoticComponent<Omit<PopupProps & {
|
|
40
|
+
Popup: import("react").ForwardRefExoticComponent<Omit<PopupProps & VariantProps & {
|
|
28
41
|
closeLabel?: string;
|
|
29
42
|
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
43
|
Title: import("react").ForwardRefExoticComponent<Omit<TitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Drawer as BaseDrawer } from '@base-ui/react/drawer';
|
|
2
|
+
/** The edge a drawer slides from. `start` and `end` follow the text direction. */
|
|
3
|
+
export type DrawerSide = 'start' | 'end' | 'bottom';
|
|
4
|
+
export interface RootProps extends Omit<BaseDrawer.Root.Props, 'swipeDirection' | 'snapPoints' | 'defaultSnapPoint' | 'snapPoint' | 'onSnapPointChange' | 'snapToSequentialPoints'> {
|
|
5
|
+
/** The edge it slides from, and swipes back to. `start` is the left edge in a left-to-right page. Default `end`. */
|
|
6
|
+
side?: DrawerSide;
|
|
7
|
+
}
|
|
8
|
+
/** Groups a trigger and its drawer. Controlled with `open` and `onOpenChange`. */
|
|
9
|
+
export declare function Root({ side, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export interface TriggerProps extends BaseDrawer.Trigger.Props {
|
|
11
|
+
}
|
|
12
|
+
/** Opens the drawer. Usually `render={<Button />}`. */
|
|
13
|
+
export declare const Trigger: import("react").ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export interface PopupProps extends BaseDrawer.Popup.Props {
|
|
15
|
+
/** Where the drawer is portaled to. Default `document.body`. */
|
|
16
|
+
container?: BaseDrawer.Portal.Props['container'];
|
|
17
|
+
/**
|
|
18
|
+
* `panel` (default) pads the content `space-5`, stacks it `space-4` apart
|
|
19
|
+
* and adds the X. `bare` has no padding, gap or X, for content that lays
|
|
20
|
+
* itself out, such as an app's navigation sidebar: its content is exactly
|
|
21
|
+
* the drawer's height, so the app's own region scrolls, and its Close is
|
|
22
|
+
* for screen readers only.
|
|
23
|
+
*/
|
|
24
|
+
variant?: 'panel' | 'bare';
|
|
25
|
+
/** The accessible name of the X, or of the screen-reader Close in `bare`. Default "Close". */
|
|
26
|
+
closeLabel?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The panel against one edge of the screen, over a dimmed backdrop, full
|
|
30
|
+
* height (or full width from the bottom). Swipe it back to its edge to close.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Popup: import("react").ForwardRefExoticComponent<Omit<PopupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
export interface TitleProps extends BaseDrawer.Title.Props {
|
|
34
|
+
}
|
|
35
|
+
/** The drawer's heading, an `<h2>`. Names it for screen readers; hide it with `mu-visually-hidden` when the content names itself. */
|
|
36
|
+
export declare const Title: import("react").ForwardRefExoticComponent<Omit<TitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
37
|
+
export interface DescriptionProps extends BaseDrawer.Description.Props {
|
|
38
|
+
}
|
|
39
|
+
/** A `<p>` under the title. */
|
|
40
|
+
export declare const Description: import("react").ForwardRefExoticComponent<Omit<DescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
41
|
+
export interface CloseProps extends BaseDrawer.Close.Props {
|
|
42
|
+
}
|
|
43
|
+
/** Closes the drawer, such as a link in a navigation drawer. Usually `render={<Button />}`. */
|
|
44
|
+
export declare const Close: import("react").ForwardRefExoticComponent<Omit<CloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,6 +3,12 @@ import type { Size } from '../../types.js';
|
|
|
3
3
|
export interface RootProps extends BaseField.Root.Props {
|
|
4
4
|
/** The size of the control inside, passed on to it. */
|
|
5
5
|
size?: Exclude<Size, 'xs'>;
|
|
6
|
+
/**
|
|
7
|
+
* `vertical` (default) stacks the label over the control. `horizontal` puts
|
|
8
|
+
* the label and description first and the control at the end of the row,
|
|
9
|
+
* as in a settings row with a Switch or Select.
|
|
10
|
+
*/
|
|
11
|
+
orientation?: 'vertical' | 'horizontal';
|
|
6
12
|
}
|
|
7
13
|
/** One control with its label, description and error, wired for screen readers. */
|
|
8
14
|
export declare const Root: import("react").ForwardRefExoticComponent<Omit<RootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Form as BaseForm } from '@base-ui/react/form';
|
|
2
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
export interface RootProps extends BaseForm.Props {
|
|
5
|
+
/**
|
|
6
|
+
* Draws the form in a box, as a List: a `line` edge, `radius-lg` corners and
|
|
7
|
+
* a `surface` fill, with the Footer as a `canvas` bar under a `line`. For a
|
|
8
|
+
* small form among Lists on a settings page.
|
|
9
|
+
*/
|
|
10
|
+
bordered?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A `<form>` on Base UI's Form, which shows each Field's errors. Its children
|
|
14
|
+
* stack `space-4` apart. A Title inside names it.
|
|
15
|
+
*/
|
|
16
|
+
export declare const Root: import("react").ForwardRefExoticComponent<Omit<RootProps, "ref"> & import("react").RefAttributes<HTMLFormElement>>;
|
|
17
|
+
export interface TitleProps extends useRender.ComponentProps<'h2'> {
|
|
18
|
+
}
|
|
19
|
+
/** The form's heading, an `<h2>` in `label` style that names the form. Use `render` for another level. */
|
|
20
|
+
export declare const Title: import("react").ForwardRefExoticComponent<Omit<TitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
21
|
+
export interface DescriptionProps extends ComponentPropsWithoutRef<'p'> {
|
|
22
|
+
}
|
|
23
|
+
/** One line under the title, in `caption` and `ink-muted`. */
|
|
24
|
+
export declare const Description: import("react").ForwardRefExoticComponent<DescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
export interface FooterProps extends ComponentPropsWithoutRef<'div'> {
|
|
26
|
+
}
|
|
27
|
+
/** The form's buttons, right-aligned: a ghost Cancel, then the primary. In a bordered form, a `canvas` bar along the bottom. */
|
|
28
|
+
export declare const Footer: import("react").ForwardRefExoticComponent<FooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import type { Size } from '../../types.js';
|
|
4
|
+
export interface RootProps extends ComponentPropsWithoutRef<'ul'> {
|
|
5
|
+
/** `sm` for dense lists. Sets the rows' padding and the size of the controls inside. */
|
|
6
|
+
size?: Exclude<Size, 'xs'>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A boxed list of records or settings rows: a `<ul>` with a `line` edge and
|
|
10
|
+
* `radius-lg`, its rows divided by `line`. Name it with `aria-label` or
|
|
11
|
+
* `aria-labelledby` when a heading above doesn't.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Root: import("react").ForwardRefExoticComponent<RootProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
14
|
+
export interface ItemProps extends ComponentPropsWithoutRef<'li'> {
|
|
15
|
+
}
|
|
16
|
+
/** One row, an `<li>`: a horizontal Field, a record's text with its actions at the end, or one ItemButton. */
|
|
17
|
+
export declare const Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
18
|
+
export interface ItemButtonProps extends useRender.ComponentProps<'button'> {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Makes a whole row one control: a `<button type="button">` that fills its
|
|
22
|
+
* Item, edge to edge, and highlights with `hover`. Put it alone in a
|
|
23
|
+
* `List.Item`. For a row that opens a page, render a link:
|
|
24
|
+
* `render={<a href="/spaces/work" />}`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ItemButton: import("react").ForwardRefExoticComponent<Omit<ItemButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -13,6 +13,10 @@ export interface MenuClasses {
|
|
|
13
13
|
dangerItem: string;
|
|
14
14
|
/** The text of a row, which truncates. */
|
|
15
15
|
label: string;
|
|
16
|
+
/** Stacks a row's label over its description. */
|
|
17
|
+
text: string;
|
|
18
|
+
/** A line of `ink-muted` text under the label. */
|
|
19
|
+
description: string;
|
|
16
20
|
/** A keyboard shortcut at the end of a row. */
|
|
17
21
|
shortcut: string;
|
|
18
22
|
/** A line between groups of rows. */
|
|
@@ -23,6 +23,8 @@ interface RowProps {
|
|
|
23
23
|
icon?: IconElement;
|
|
24
24
|
/** A keyboard shortcut at the end of the row, such as "⌘ D". */
|
|
25
25
|
shortcut?: ReactNode;
|
|
26
|
+
/** A line of `ink-muted` text under the label, which makes the row two lines tall. Screen readers read it as the item's description. */
|
|
27
|
+
description?: ReactNode;
|
|
26
28
|
children?: ReactNode;
|
|
27
29
|
}
|
|
28
30
|
export interface ItemProps extends BaseMenu.Item.Props, RowProps {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export type PopoverVariant = 'panel' | 'list';
|
|
2
|
+
export interface PopoverClassesOptions {
|
|
3
|
+
/** `panel` pads its content and stacks it `space-3` apart; `list` holds rows with a Menu's `space-1` padding and no gap. */
|
|
4
|
+
variant?: PopoverVariant;
|
|
5
|
+
}
|
|
1
6
|
/** The classes of each part of a Popover. */
|
|
2
7
|
export interface PopoverClasses {
|
|
3
8
|
/** The panel: a surface with `shadow-pop`, `popover-width` wide. */
|
|
@@ -11,4 +16,4 @@ export interface PopoverClasses {
|
|
|
11
16
|
* The classes that make an app's own floating panel look like a Popover, such
|
|
12
17
|
* as an emoji picker. See docs/custom-components.md.
|
|
13
18
|
*/
|
|
14
|
-
export declare function popoverClasses(): PopoverClasses;
|
|
19
|
+
export declare function popoverClasses({ variant }?: PopoverClassesOptions): PopoverClasses;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Popover as BasePopover } from '@base-ui/react/popover';
|
|
2
|
+
import { type PopoverVariant } from './classes.js';
|
|
2
3
|
export type RootProps = BasePopover.Root.Props;
|
|
3
4
|
/** Groups a trigger and its popover. */
|
|
4
5
|
export declare const Root: typeof BasePopover.Root;
|
|
@@ -10,6 +11,12 @@ type PositionerProps = Pick<BasePopover.Positioner.Props, 'side' | 'align' | 'co
|
|
|
10
11
|
export interface PopupProps extends BasePopover.Popup.Props, PositionerProps {
|
|
11
12
|
/** Where the popover is portaled to. Default `document.body`. */
|
|
12
13
|
container?: BasePopover.Portal.Props['container'];
|
|
14
|
+
/**
|
|
15
|
+
* `panel` (default) pads its content `space-4` and stacks it `space-3` apart.
|
|
16
|
+
* `list` holds rows, such as an account menu with a header: a Menu's
|
|
17
|
+
* `space-1` padding and no gap, for rows with `menuClasses().item`.
|
|
18
|
+
*/
|
|
19
|
+
variant?: PopoverVariant;
|
|
13
20
|
}
|
|
14
21
|
/** The panel: a surface with `shadow-pop`, `popover-width` wide. */
|
|
15
22
|
export declare const Popup: import("react").ForwardRefExoticComponent<Omit<PopupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -7,6 +7,11 @@ export type RootProps<Value, Multiple extends boolean | undefined = false> = Bas
|
|
|
7
7
|
/** Groups the trigger and the list, and holds the value. Pass `items` so `Value` shows labels, not raw values. */
|
|
8
8
|
export declare function Root<Value, Multiple extends boolean | undefined = false>({ size, ...props }: RootProps<Value, Multiple>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export interface TriggerProps extends BaseSelect.Trigger.Props {
|
|
10
|
+
/**
|
|
11
|
+
* `neutral` (default) is a raised key, for a value in a form. `ghost` is a
|
|
12
|
+
* flat row that fills with `hover`, for a switcher in a sidebar or toolbar.
|
|
13
|
+
*/
|
|
14
|
+
variant?: 'neutral' | 'ghost';
|
|
10
15
|
}
|
|
11
16
|
/** A neutral key that shows the value, with a chevron at the end. Holds `Value`. */
|
|
12
17
|
export declare const Trigger: import("react").ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,6 +3,8 @@ import type { Size } from '../../types.js';
|
|
|
3
3
|
export interface RootProps extends ComponentPropsWithoutRef<'table'> {
|
|
4
4
|
/** `sm` for dense admin lists. Sets row height and cell text. */
|
|
5
5
|
size?: Exclude<Size, 'xs'>;
|
|
6
|
+
/** Draws the table in a box: a `line` edge, `radius-lg` corners and a `surface` fill, as a List. */
|
|
7
|
+
bordered?: boolean;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* A `<table>` with rows separated by `line`. It sits in a box that scrolls
|
|
@@ -36,6 +38,14 @@ export interface CellProps extends ComponentPropsWithoutRef<'td'> {
|
|
|
36
38
|
}
|
|
37
39
|
/** A data cell, `<td>`. */
|
|
38
40
|
export declare const Cell: import("react").ForwardRefExoticComponent<CellProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
41
|
+
export interface ActionsProps extends ComponentPropsWithoutRef<'div'> {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Two or more row actions side by side in one Cell, such as Edit and Delete
|
|
45
|
+
* Buttons. Like a single Button in a Cell, the group overlaps the cell's
|
|
46
|
+
* padding, so the row keeps its height.
|
|
47
|
+
*/
|
|
48
|
+
export declare const Actions: import("react").ForwardRefExoticComponent<ActionsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
49
|
export interface CaptionProps extends ComponentPropsWithoutRef<'caption'> {
|
|
40
50
|
}
|
|
41
51
|
/** Names the table, under it in `caption` style. Screen readers read it as the table's name. */
|
|
@@ -15,5 +15,5 @@ export interface ViewportProps extends BaseToast.Viewport.Props {
|
|
|
15
15
|
/** The accessible name of each toast's X button. Default "Close". */
|
|
16
16
|
closeLabel?: string;
|
|
17
17
|
}
|
|
18
|
-
/** Shows the toasts:
|
|
18
|
+
/** Shows the toasts: top-right, or across the top below `breakpoint-sm`. Render it once, inside Provider. */
|
|
19
19
|
export declare const Viewport: import("react").ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -3,6 +3,8 @@ import { type ReactNode } from 'react';
|
|
|
3
3
|
import type { Size } from '../../types.js';
|
|
4
4
|
export interface ToggleGroupProps extends BaseToggleGroup.Props {
|
|
5
5
|
size?: Size;
|
|
6
|
+
/** Fills its container's width and gives every Toggle an equal share. Icon-only Toggles keep their size. */
|
|
7
|
+
fullWidth?: boolean;
|
|
6
8
|
children?: ReactNode;
|
|
7
9
|
}
|
|
8
10
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,15 +8,19 @@ export { Checkbox, type CheckboxProps } from './components/checkbox/index.js';
|
|
|
8
8
|
export * as Collapsible from './components/collapsible/index.js';
|
|
9
9
|
export * as Combobox from './components/combobox/index.js';
|
|
10
10
|
export * as Dialog from './components/dialog/index.js';
|
|
11
|
+
export * as Drawer from './components/drawer/index.js';
|
|
12
|
+
export type { DrawerSide } from './components/drawer/index.js';
|
|
11
13
|
export * as Field from './components/field/index.js';
|
|
12
14
|
export * as Fieldset from './components/field/fieldset.js';
|
|
13
15
|
export { Input, inputClasses, type InputClassesOptions, type InputProps } from './components/input/index.js';
|
|
14
16
|
export { Kbd, type KbdProps } from './components/kbd/index.js';
|
|
15
17
|
export { Link, type LinkProps } from './components/link/index.js';
|
|
18
|
+
export * as List from './components/list/index.js';
|
|
19
|
+
export * as Form from './components/form/index.js';
|
|
16
20
|
export * as Menu from './components/menu/index.js';
|
|
17
21
|
export { menuClasses, type MenuClasses, type MenuClassesOptions } from './components/menu/classes.js';
|
|
18
22
|
export * as Popover from './components/popover/index.js';
|
|
19
|
-
export { popoverClasses, type PopoverClasses } from './components/popover/classes.js';
|
|
23
|
+
export { popoverClasses, type PopoverClasses, type PopoverClassesOptions, type PopoverVariant } from './components/popover/classes.js';
|
|
20
24
|
export { Prose, type ProseProps } from './components/prose/index.js';
|
|
21
25
|
export { Radio, RadioGroup, type RadioGroupProps, type RadioProps } from './components/radio-group/index.js';
|
|
22
26
|
export * as Select from './components/select/index.js';
|