@vikram-hegde/skeletal 0.0.1
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 +35 -0
- package/dist/alert-dialog/index.d.ts +2 -0
- package/dist/alert-dialog/index.js +2 -0
- package/dist/alert-dialog-1hxVC_5N.js +71 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge-C3p1L0E7.css +53 -0
- package/dist/badge-C3p1L0E7.js +32 -0
- package/dist/button/index.d.ts +2 -0
- package/dist/button/index.js +2 -0
- package/dist/button-B48UNbaC.css +152 -0
- package/dist/button-B48UNbaC.js +46 -0
- package/dist/button-Dvd4n2U4.d.ts +56 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox-wh2BoiSj.css +76 -0
- package/dist/checkbox-wh2BoiSj.js +112 -0
- package/dist/cluster-BJ4m5uGN.css +9 -0
- package/dist/cluster-BJ4m5uGN.js +21 -0
- package/dist/combobox/index.d.ts +2 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox-DWH7uSsx.css +389 -0
- package/dist/combobox-DWH7uSsx.js +327 -0
- package/dist/command-palette/index.d.ts +2 -0
- package/dist/command-palette/index.js +2 -0
- package/dist/command-palette-DF4XJ8qz.css +164 -0
- package/dist/command-palette-DF4XJ8qz.js +191 -0
- package/dist/dialog/index.d.ts +6 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog-C4yqxII_.js +73 -0
- package/dist/dialog-footer-Br9KZP4v.js +29 -0
- package/dist/dialog-footer-bNVIVPbu.d.ts +56 -0
- package/dist/dialog-portal-B21WFYkQ.css +131 -0
- package/dist/dialog-portal-B21WFYkQ.js +26 -0
- package/dist/dialog-portal-BF89FBeX.d.ts +15 -0
- package/dist/dialog-title-DRYRIxCp.js +35 -0
- package/dist/dialog-title-jyf86Q8C.d.ts +36 -0
- package/dist/dialog-viewport-CaMWJrCJ.d.ts +42 -0
- package/dist/dialog-viewport-vpbsq7Ib.js +21 -0
- package/dist/drawer/index.d.ts +2 -0
- package/dist/drawer/index.js +2 -0
- package/dist/drawer-DQmz_uCP.css +214 -0
- package/dist/drawer-DQmz_uCP.js +180 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-DBOdxNvH.css +6 -0
- package/dist/icon-DBOdxNvH.js +20 -0
- package/dist/index-A2QmU5r9.d.ts +37 -0
- package/dist/index-B0uNLS7z.d.ts +301 -0
- package/dist/index-B63PSP58.d.ts +94 -0
- package/dist/index-BBOkTl3h.d.ts +261 -0
- package/dist/index-BLFVnve3.d.ts +53 -0
- package/dist/index-BXPUT5u-.d.ts +72 -0
- package/dist/index-BngvATZx.d.ts +35 -0
- package/dist/index-Br2NrBW_.d.ts +444 -0
- package/dist/index-CUy-9csi.d.ts +135 -0
- package/dist/index-CbMW32E9.d.ts +82 -0
- package/dist/index-CyTcR6iv.d.ts +433 -0
- package/dist/index-CznsZ_1M.d.ts +85 -0
- package/dist/index-D-6gOciw.d.ts +350 -0
- package/dist/index-DdqDyczP.d.ts +209 -0
- package/dist/index-GOGpFujX.d.ts +144 -0
- package/dist/index-W3ozKcis.d.ts +245 -0
- package/dist/index-kpw3_4q_.d.ts +50 -0
- package/dist/index-rH7TJeJt.d.ts +334 -0
- package/dist/index-rQ7sRkqg.d.ts +122 -0
- package/dist/index.css +93 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +26 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +2 -0
- package/dist/input-CQ_ean8e.css +129 -0
- package/dist/input-CQ_ean8e.js +65 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +4 -0
- package/dist/layout-qoyutnKU.css +181 -0
- package/dist/layout-qoyutnKU.js +169 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu-DRdGMI_-.css +236 -0
- package/dist/menu-DRdGMI_-.js +243 -0
- package/dist/merge-class-name-C4KJJGuK.js +15 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover-CenynT0Z.css +139 -0
- package/dist/popover-CenynT0Z.js +174 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio-BJrvdkga.css +80 -0
- package/dist/radio-BJrvdkga.js +75 -0
- package/dist/scroll-area/index.d.ts +2 -0
- package/dist/scroll-area/index.js +2 -0
- package/dist/scroll-area-DkORxJE9.css +175 -0
- package/dist/scroll-area-DkORxJE9.js +114 -0
- package/dist/select/index.d.ts +2 -0
- package/dist/select/index.js +2 -0
- package/dist/select-BaqBHUac.css +273 -0
- package/dist/select-BaqBHUac.js +254 -0
- package/dist/skeleton/index.d.ts +2 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton-W6fwO5pf.css +88 -0
- package/dist/skeleton-W6fwO5pf.js +97 -0
- package/dist/spinner/index.d.ts +2 -0
- package/dist/spinner/index.js +2 -0
- package/dist/spinner-DB6ap8Si.css +43 -0
- package/dist/spinner-DB6ap8Si.js +27 -0
- package/dist/stack-BzFVrsmT.css +12 -0
- package/dist/stack-BzFVrsmT.js +52 -0
- package/dist/style-vars-ZSrCUzKx.js +13 -0
- package/dist/switch/index.d.ts +2 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch-DizP31iF.css +76 -0
- package/dist/switch-DizP31iF.js +58 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip-CQk2WjUS.css +92 -0
- package/dist/tooltip-CQk2WjUS.js +138 -0
- package/package.json +68 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { r as DialogBackdrop, t as DialogViewport } from "./dialog-viewport-CaMWJrCJ.js";
|
|
2
|
+
import { n as ButtonProps } from "./button-Dvd4n2U4.js";
|
|
3
|
+
import { a as DialogClose, r as DialogDescription, t as DialogTitle } from "./dialog-title-jyf86Q8C.js";
|
|
4
|
+
import { r as DialogContent, t as DialogFooter } from "./dialog-footer-bNVIVPbu.js";
|
|
5
|
+
import { t as DialogPortal } from "./dialog-portal-BF89FBeX.js";
|
|
6
|
+
import { DialogRootProps, DialogTriggerProps } from "@base-ui/react/dialog";
|
|
7
|
+
//#region src/dialog/dialog-root.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* The root of the dialog, grouping all parts together. Renders no DOM element.
|
|
10
|
+
*
|
|
11
|
+
* All Base UI root props are supported: `open`, `defaultOpen`, `modal`,
|
|
12
|
+
* `onOpenChange`, `onOpenChangeComplete`, `disablePointerDismissal`,
|
|
13
|
+
* `actionsRef`, `handle`, and `triggerId`.
|
|
14
|
+
*
|
|
15
|
+
* Use `open` + `onOpenChange` to control the dialog; otherwise it is
|
|
16
|
+
* uncontrolled. `modal` accepts `true`, `'trap-focus'`, or `false`.
|
|
17
|
+
*
|
|
18
|
+
* @default modal = true
|
|
19
|
+
*/
|
|
20
|
+
interface DialogProps<Payload = unknown> extends DialogRootProps<Payload> {}
|
|
21
|
+
declare function DialogRoot<Payload>(props: DialogProps<Payload>): import("react").JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/dialog/dialog-trigger.d.ts
|
|
24
|
+
/**
|
|
25
|
+
* A button that opens the dialog. Renders a `<button>` element.
|
|
26
|
+
*
|
|
27
|
+
* Composed from the `Button` component via Base UI's `render` prop, so it
|
|
28
|
+
* accepts all `Button` props (`variant`, `size`, `fullWidth`, `disabled`,
|
|
29
|
+
* `onClick`, ...) plus the dialog-trigger props from Base UI (`payload`,
|
|
30
|
+
* `handle`, `id`). Defaults to the `primary` variant.
|
|
31
|
+
*
|
|
32
|
+
* The `payload` prop lets you pass data from the trigger to the dialog's
|
|
33
|
+
* render-prop content.
|
|
34
|
+
*/
|
|
35
|
+
interface DialogTriggerProps$1<Payload = unknown> extends ButtonProps, Omit<DialogTriggerProps<Payload>, "className" | "style" | "render" | "nativeButton"> {}
|
|
36
|
+
declare function DialogTrigger<Payload>({ className, variant, size, fullWidth, ...props }: DialogTriggerProps$1<Payload>): import("react").JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/dialog/index.d.ts
|
|
39
|
+
/**
|
|
40
|
+
* Compound component for dialogs.
|
|
41
|
+
*
|
|
42
|
+
* Assemble the parts as properties of the object:
|
|
43
|
+
*
|
|
44
|
+
* ```tsx
|
|
45
|
+
* import { Dialog } from '@vikram-hegde/skeletal'
|
|
46
|
+
*
|
|
47
|
+
* <Dialog.Root>
|
|
48
|
+
* <Dialog.Trigger>Open</Dialog.Trigger>
|
|
49
|
+
* <Dialog.Portal>
|
|
50
|
+
* <Dialog.Backdrop />
|
|
51
|
+
* <Dialog.Viewport>
|
|
52
|
+
* <Dialog.Content>
|
|
53
|
+
* <Dialog.Title>Title</Dialog.Title>
|
|
54
|
+
* <Dialog.Description>Description</Dialog.Description>
|
|
55
|
+
* <Dialog.Footer>
|
|
56
|
+
* <Dialog.Close>Cancel</Dialog.Close>
|
|
57
|
+
* <Dialog.Close variant="primary">Confirm</Dialog.Close>
|
|
58
|
+
* </Dialog.Footer>
|
|
59
|
+
* </Dialog.Content>
|
|
60
|
+
* </Dialog.Viewport>
|
|
61
|
+
* </Dialog.Portal>
|
|
62
|
+
* </Dialog.Root>
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* Composition follows the Base UI anatomy — `Dialog.Viewport` is the
|
|
66
|
+
* full-screen positioning/scroll container that centers `Dialog.Content`.
|
|
67
|
+
*
|
|
68
|
+
* All parts are thin styled wrappers over Base UI's `Dialog`, so every Base UI
|
|
69
|
+
* prop, `render` override, and ref behaves the same. Part prop types are
|
|
70
|
+
* exported separately (`DialogContentProps`, etc.).
|
|
71
|
+
*/
|
|
72
|
+
declare const Dialog$1: {
|
|
73
|
+
Root: typeof DialogRoot;
|
|
74
|
+
Trigger: typeof DialogTrigger;
|
|
75
|
+
Portal: typeof DialogPortal;
|
|
76
|
+
Backdrop: typeof DialogBackdrop;
|
|
77
|
+
Content: typeof DialogContent;
|
|
78
|
+
Title: typeof DialogTitle;
|
|
79
|
+
Description: typeof DialogDescription;
|
|
80
|
+
Footer: typeof DialogFooter;
|
|
81
|
+
Close: typeof DialogClose;
|
|
82
|
+
Viewport: typeof DialogViewport;
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
export { DialogTriggerProps$1 as n, DialogProps as r, Dialog$1 as t };
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { n as ButtonProps } from "./button-Dvd4n2U4.js";
|
|
2
|
+
import { MenuArrowProps, MenuBackdropProps, MenuCheckboxItemIndicatorProps, MenuCheckboxItemProps, MenuGroupLabelProps, MenuGroupProps, MenuItemProps, MenuLinkItemProps, MenuPopupProps, MenuPortalProps, MenuPositionerProps, MenuRadioGroupProps, MenuRadioItemIndicatorProps, MenuRadioItemProps, MenuRootProps, MenuSubmenuRootProps, MenuSubmenuTriggerProps, MenuTriggerProps, MenuViewportProps } from "@base-ui/react/menu";
|
|
3
|
+
import { SeparatorProps } from "@base-ui/react/separator";
|
|
4
|
+
//#region src/menu/menu-arrow.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* A small arrow pointing from the popup to the trigger. Renders a `<div>`
|
|
7
|
+
* element.
|
|
8
|
+
*
|
|
9
|
+
* Place it inside `<Menu.Popup>` (before the items). It orients itself based
|
|
10
|
+
* on the popup's `data-side` attribute, so it works for any placement. Pair
|
|
11
|
+
* with a larger `sideOffset` on the `Menu.Positioner` so the arrow has room.
|
|
12
|
+
*/
|
|
13
|
+
interface MenuArrowProps$1 extends MenuArrowProps {}
|
|
14
|
+
declare function MenuArrow({ className, ...props }: MenuArrowProps$1): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/menu/menu-backdrop.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* An overlay rendered beneath the menu popup, used when the menu is modal.
|
|
19
|
+
* Renders a `<div>` element.
|
|
20
|
+
*
|
|
21
|
+
* Only needed when `Menu.Root` is modal (the default). Clicking the backdrop
|
|
22
|
+
* dismisses the menu. The overlay is translucent; set a fully opaque color
|
|
23
|
+
* (or remove it) if you prefer a "dimmed page" look vs. a light scrim.
|
|
24
|
+
*/
|
|
25
|
+
interface MenuBackdropProps$1 extends MenuBackdropProps {}
|
|
26
|
+
declare function MenuBackdrop({ className, ...props }: MenuBackdropProps$1): import("react").JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/menu/menu-checkbox-item.d.ts
|
|
29
|
+
/**
|
|
30
|
+
* A menu item that toggles a setting on or off. Renders a `<div>` element.
|
|
31
|
+
*
|
|
32
|
+
* Accepts all Base UI checkbox-item props: `checked`, `defaultChecked`, and
|
|
33
|
+
* `onCheckedChange` for controlled/uncontrolled state, plus `disabled`,
|
|
34
|
+
* `label`, and `closeOnClick` (defaults to `false`).
|
|
35
|
+
*
|
|
36
|
+
* The first column is reserved for a `Menu.CheckboxItemIndicator`, so labels
|
|
37
|
+
* stay aligned whether or not an item is checked.
|
|
38
|
+
*/
|
|
39
|
+
interface MenuCheckboxItemProps$1 extends MenuCheckboxItemProps {}
|
|
40
|
+
declare function MenuCheckboxItem({ className, ...props }: MenuCheckboxItemProps$1): import("react").JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/menu/menu-checkbox-item-indicator.d.ts
|
|
43
|
+
/**
|
|
44
|
+
* Marks a `Menu.CheckboxItem` as checked. Renders a `<span>` element.
|
|
45
|
+
*
|
|
46
|
+
* Place it as the first child of the checkbox item and render your checked
|
|
47
|
+
* glyph inside (e.g. an `<Icon name={Check} />`). `keepMounted` keeps the
|
|
48
|
+
* indicator in the DOM when the item is not checked (useful for exit
|
|
49
|
+
* animations).
|
|
50
|
+
*
|
|
51
|
+
* @default keepMounted = false
|
|
52
|
+
*/
|
|
53
|
+
interface MenuCheckboxItemIndicatorProps$1 extends MenuCheckboxItemIndicatorProps {}
|
|
54
|
+
declare function MenuCheckboxItemIndicator({ className, ...props }: MenuCheckboxItemIndicatorProps$1): import("react").JSX.Element;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/menu/menu-group.d.ts
|
|
57
|
+
/**
|
|
58
|
+
* Groups related menu items under an accessible label. Renders a `<div>`
|
|
59
|
+
* element.
|
|
60
|
+
*
|
|
61
|
+
* Pair with `<Menu.GroupLabel>` inside the group; Base UI wires the
|
|
62
|
+
* `aria-labelledby` association automatically.
|
|
63
|
+
*
|
|
64
|
+
* Rendered with `display: contents` so its items participate directly in the
|
|
65
|
+
* popup grid, letting checkbox items share the tick-mark column via subgrid.
|
|
66
|
+
*/
|
|
67
|
+
interface MenuGroupProps$1 extends MenuGroupProps {}
|
|
68
|
+
declare function MenuGroup({ className, ...props }: MenuGroupProps$1): import("react").JSX.Element;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/menu/menu-group-label.d.ts
|
|
71
|
+
/**
|
|
72
|
+
* A label for a `<Menu.Group>`, automatically associated with it for screen
|
|
73
|
+
* readers. Renders a `<div>` element.
|
|
74
|
+
*
|
|
75
|
+
* Styled small and muted; add a `Menu.Separator` before the group to visually
|
|
76
|
+
* divide it from the items above.
|
|
77
|
+
*/
|
|
78
|
+
interface MenuGroupLabelProps$1 extends MenuGroupLabelProps {}
|
|
79
|
+
declare function MenuGroupLabel({ className, ...props }: MenuGroupLabelProps$1): import("react").JSX.Element;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/menu/menu-item.d.ts
|
|
82
|
+
/**
|
|
83
|
+
* An individual interactive item in the menu. Renders a `<div>` element.
|
|
84
|
+
*
|
|
85
|
+
* Accepts all Base UI item props: `onClick`, `disabled`, `closeOnClick`
|
|
86
|
+
* (defaults to `true`), and `label` for keyboard text navigation.
|
|
87
|
+
*
|
|
88
|
+
* Set `danger` for destructive actions (e.g. delete, remove) — the item takes
|
|
89
|
+
* on the destructive color, and stays destructive when highlighted.
|
|
90
|
+
*
|
|
91
|
+
* @default closeOnClick = true
|
|
92
|
+
* @default danger = false
|
|
93
|
+
*/
|
|
94
|
+
interface MenuItemProps$1 extends MenuItemProps {
|
|
95
|
+
/**
|
|
96
|
+
* Whether the item is a destructive action. @default false
|
|
97
|
+
*/
|
|
98
|
+
danger?: boolean;
|
|
99
|
+
}
|
|
100
|
+
declare function MenuItem({ className, danger, ...props }: MenuItemProps$1): import("react").JSX.Element;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/menu/menu-link-item.d.ts
|
|
103
|
+
/**
|
|
104
|
+
* A link inside the menu for navigating to another page or section. Renders an
|
|
105
|
+
* `<a>` element.
|
|
106
|
+
*
|
|
107
|
+
* Accepts all Base UI link-item props plus anchor attributes (`href`, `target`,
|
|
108
|
+
* `rel`, ...). Keyboard navigation, type-ahead, and highlight behave the same
|
|
109
|
+
* as `Menu.Item`.
|
|
110
|
+
*
|
|
111
|
+
* @default closeOnClick = false
|
|
112
|
+
*/
|
|
113
|
+
interface MenuLinkItemProps$1 extends MenuLinkItemProps {}
|
|
114
|
+
declare function MenuLinkItem({ className, ...props }: MenuLinkItemProps$1): import("react").JSX.Element;
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/menu/menu-popup.d.ts
|
|
117
|
+
/**
|
|
118
|
+
* The menu panel that holds the items. Renders a `<div>` element.
|
|
119
|
+
*
|
|
120
|
+
* Accepts all Base UI popup props, including `finalFocus` for controlling
|
|
121
|
+
* focus when the menu closes. Content animates in/out via the
|
|
122
|
+
* `data-starting-style` / `data-ending-style` transitions.
|
|
123
|
+
*
|
|
124
|
+
* By default the popup sizes to its content with a `min-width` of 10rem; pass
|
|
125
|
+
* `style={{ width: ... }}` or a `className` to constrain it.
|
|
126
|
+
*
|
|
127
|
+
* @default finalFocus = true
|
|
128
|
+
*/
|
|
129
|
+
interface MenuPopupProps$1 extends MenuPopupProps {}
|
|
130
|
+
declare function MenuPopup({ className, ...props }: MenuPopupProps$1): import("react").JSX.Element;
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/menu/menu-portal.d.ts
|
|
133
|
+
/**
|
|
134
|
+
* Moves the menu popup to a different part of the DOM, appended to `<body>`
|
|
135
|
+
* by default. Renders a `<div>` element.
|
|
136
|
+
*
|
|
137
|
+
* `keepMounted` keeps the portal in the DOM while the menu is closed (useful
|
|
138
|
+
* for exit animations). `container` overrides the portal target.
|
|
139
|
+
*
|
|
140
|
+
* @default keepMounted = false
|
|
141
|
+
*/
|
|
142
|
+
interface MenuPortalProps$1 extends MenuPortalProps {}
|
|
143
|
+
declare function MenuPortal({ className, ...props }: MenuPortalProps$1): import("react").JSX.Element;
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/menu/menu-positioner.d.ts
|
|
146
|
+
/**
|
|
147
|
+
* Positions the menu popup against the trigger. Renders a `<div>` element.
|
|
148
|
+
*
|
|
149
|
+
* Accepts all Base UI positioner props: `side`, `align`, `sideOffset`,
|
|
150
|
+
* `alignOffset`, `collisionAvoidance`, `collisionBoundary`, `collisionPadding`,
|
|
151
|
+
* `sticky`, `positionMethod`, `arrowPadding`, and `anchor`.
|
|
152
|
+
*
|
|
153
|
+
* `side` may flip automatically to avoid collisions (default `'bottom'`).
|
|
154
|
+
* `align` controls horizontal placement against the trigger — use `'start'`
|
|
155
|
+
* to align the popup's leading edge with the trigger.
|
|
156
|
+
*
|
|
157
|
+
* @default side = 'bottom'
|
|
158
|
+
* @default sideOffset = 8
|
|
159
|
+
*/
|
|
160
|
+
interface MenuPositionerProps$1 extends MenuPositionerProps {}
|
|
161
|
+
declare function MenuPositioner({ className, sideOffset, ...props }: MenuPositionerProps$1): import("react").JSX.Element;
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/menu/menu-radio-group.d.ts
|
|
164
|
+
/**
|
|
165
|
+
* Groups `Menu.RadioItem`s so selecting one deselects the others. Renders a
|
|
166
|
+
* `<div>` element.
|
|
167
|
+
*
|
|
168
|
+
* Accepts all Base UI radio-group props: `value`, `defaultValue`, and
|
|
169
|
+
* `onValueChange` for controlled/uncontrolled selection, plus `disabled`.
|
|
170
|
+
*
|
|
171
|
+
* Rendered with `display: contents` so its items participate directly in the
|
|
172
|
+
* popup grid, letting radio items share the tick-mark column via subgrid.
|
|
173
|
+
*/
|
|
174
|
+
interface MenuRadioGroupProps$1 extends MenuRadioGroupProps {}
|
|
175
|
+
declare function MenuRadioGroup({ className, ...props }: MenuRadioGroupProps$1): import("react").JSX.Element;
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/menu/menu-radio-item.d.ts
|
|
178
|
+
/**
|
|
179
|
+
* A menu item that behaves like a radio button within its `Menu.RadioGroup`.
|
|
180
|
+
* Renders a `<div>` element.
|
|
181
|
+
*
|
|
182
|
+
* `value` (required) is what `Menu.RadioGroup.onValueChange` reports on
|
|
183
|
+
* selection. Also accepts `disabled`, `label`, and `closeOnClick` (defaults to
|
|
184
|
+
* `false` — selecting usually keeps the menu open).
|
|
185
|
+
*
|
|
186
|
+
* The first column is reserved for a `Menu.RadioItemIndicator`, so labels
|
|
187
|
+
* stay aligned whether or not an item is checked.
|
|
188
|
+
*/
|
|
189
|
+
interface MenuRadioItemProps$1 extends MenuRadioItemProps {}
|
|
190
|
+
declare function MenuRadioItem({ className, ...props }: MenuRadioItemProps$1): import("react").JSX.Element;
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/menu/menu-radio-item-indicator.d.ts
|
|
193
|
+
/**
|
|
194
|
+
* Marks a `Menu.RadioItem` as selected. Renders a `<span>` element.
|
|
195
|
+
*
|
|
196
|
+
* Place it as the first child of the radio item and render your selected-state
|
|
197
|
+
* glyph inside (e.g. an `<Icon name={Check} />`). `keepMounted` keeps the
|
|
198
|
+
* indicator in the DOM when the item is not selected (useful for exit
|
|
199
|
+
* animations).
|
|
200
|
+
*
|
|
201
|
+
* @default keepMounted = false
|
|
202
|
+
*/
|
|
203
|
+
interface MenuRadioItemIndicatorProps$1 extends MenuRadioItemIndicatorProps {}
|
|
204
|
+
declare function MenuRadioItemIndicator({ className, ...props }: MenuRadioItemIndicatorProps$1): import("react").JSX.Element;
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/menu/menu-root.d.ts
|
|
207
|
+
/**
|
|
208
|
+
* The root of the menu, grouping all parts together. Renders no DOM element.
|
|
209
|
+
*
|
|
210
|
+
* All Base UI root props are supported: `open`, `defaultOpen`, `modal`,
|
|
211
|
+
* `onOpenChange`, `onOpenChangeComplete`, `orientation`, `loopFocus`,
|
|
212
|
+
* `highlightItemOnHover`, `actionsRef`, `handle`, `triggerId`, and `disabled`.
|
|
213
|
+
*
|
|
214
|
+
* Use `open` + `onOpenChange` to control the menu; otherwise it is
|
|
215
|
+
* uncontrolled. `modal` is `true` by default (pointer outside is blocked and
|
|
216
|
+
* page scroll is locked while open); set `modal={false}` for a non-blocking
|
|
217
|
+
* dropdown that dismisses when you click elsewhere.
|
|
218
|
+
*
|
|
219
|
+
* @default modal = true
|
|
220
|
+
*/
|
|
221
|
+
interface MenuProps<Payload = unknown> extends MenuRootProps<Payload> {}
|
|
222
|
+
declare function MenuRoot<Payload>(props: MenuProps<Payload>): import("react").JSX.Element;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/menu/menu-separator.d.ts
|
|
225
|
+
/**
|
|
226
|
+
* A horizontal divider between groups of menu items. Renders a `<div>` element.
|
|
227
|
+
*
|
|
228
|
+
* Accepts the Base UI separator `orientation` prop (`'horizontal'` default,
|
|
229
|
+
* `'vertical'` for menubar-style layouts). It is announced to screen readers
|
|
230
|
+
* via `role="separator"`.
|
|
231
|
+
*
|
|
232
|
+
* @default orientation = 'horizontal'
|
|
233
|
+
*/
|
|
234
|
+
interface MenuSeparatorProps extends SeparatorProps {}
|
|
235
|
+
declare function MenuSeparator({ className, ...props }: MenuSeparatorProps): import("react").JSX.Element;
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/menu/menu-submenu-root.d.ts
|
|
238
|
+
/**
|
|
239
|
+
* The root of a nested submenu, grouping all its parts together. Renders no
|
|
240
|
+
* DOM element.
|
|
241
|
+
*
|
|
242
|
+
* Place it inside a `<Menu.Popup>` as a sibling of the `Menu.SubmenuTrigger`
|
|
243
|
+
* that opens it. All Base UI submenu-root props are supported: `open`,
|
|
244
|
+
* `defaultOpen`, `onOpenChange`, `onOpenChangeComplete`, `loopFocus`,
|
|
245
|
+
* `highlightItemOnHover`, `closeParentOnEsc`, `orientation`, and `disabled`.
|
|
246
|
+
*
|
|
247
|
+
* Submenus open on hover by default and never use a modal state.
|
|
248
|
+
*/
|
|
249
|
+
interface MenuSubmenuRootProps$1 extends MenuSubmenuRootProps {}
|
|
250
|
+
declare function MenuSubmenuRoot(props: MenuSubmenuRootProps$1): import("react").JSX.Element;
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/menu/menu-submenu-trigger.d.ts
|
|
253
|
+
/**
|
|
254
|
+
* A menu item that opens a submenu. Renders a `<div>` element.
|
|
255
|
+
*
|
|
256
|
+
* Accepts all Base UI submenu-trigger props: `disabled`, `label`, `openOnHover`,
|
|
257
|
+
* `delay`, and `closeDelay`. A right-pointing caret is added automatically and
|
|
258
|
+
* rotates as the submenu opens.
|
|
259
|
+
*
|
|
260
|
+
* Per the Base UI anatomy, the submenu's `Menu.Portal`/`Positioner`/`Popup`
|
|
261
|
+
* live inside a `Menu.SubmenuRoot` that wraps this trigger.
|
|
262
|
+
*/
|
|
263
|
+
interface MenuSubmenuTriggerProps$1 extends MenuSubmenuTriggerProps {}
|
|
264
|
+
declare function MenuSubmenuTrigger({ className, ...props }: MenuSubmenuTriggerProps$1): import("react").JSX.Element;
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/menu/menu-trigger.d.ts
|
|
267
|
+
/**
|
|
268
|
+
* A button that opens the menu. Renders a `<button>` element.
|
|
269
|
+
*
|
|
270
|
+
* Composed from the `Button` component via Base UI's `render` prop, so it
|
|
271
|
+
* accepts all `Button` props (`variant`, `size`, `fullWidth`, `disabled`,
|
|
272
|
+
* `onClick`, ...) plus the menu-trigger props from Base UI (`payload`,
|
|
273
|
+
* `handle`, `openOnHover`, `delay`, `closeDelay`, `id`). Defaults to the
|
|
274
|
+
* `outline` variant; for a plain text trigger pass `variant="ghost"`.
|
|
275
|
+
*
|
|
276
|
+
* Set `openOnHover` to open the menu when the pointer hovers the trigger
|
|
277
|
+
* (useful for nav-menus); tune it with `delay` and `closeDelay`.
|
|
278
|
+
*/
|
|
279
|
+
interface MenuTriggerProps$1<Payload = unknown> extends ButtonProps, Omit<MenuTriggerProps<Payload>, "className" | "style" | "render" | "nativeButton"> {}
|
|
280
|
+
declare function MenuTrigger<Payload>({ className, variant, size, fullWidth, ...props }: MenuTriggerProps$1<Payload>): import("react").JSX.Element;
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/menu/menu-viewport.d.ts
|
|
283
|
+
/**
|
|
284
|
+
* A transition container for menu content. Renders a `<div>` element.
|
|
285
|
+
*
|
|
286
|
+
* This part is only required when one popup is opened by multiple triggers,
|
|
287
|
+
* its content changes based on the trigger, and switching between them is
|
|
288
|
+
* animated (e.g. a shared menu for several `Menu.Trigger`s via `handle`).
|
|
289
|
+
*
|
|
290
|
+
* When used, the popup should be sized with the `--popup-width` /
|
|
291
|
+
* `--popup-height` variables so content changes don't thrash the layout.
|
|
292
|
+
*/
|
|
293
|
+
interface MenuViewportProps$1 extends MenuViewportProps {}
|
|
294
|
+
declare function MenuViewport({ className, ...props }: MenuViewportProps$1): import("react").JSX.Element;
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/menu/index.d.ts
|
|
297
|
+
/**
|
|
298
|
+
* Compound component for dropdown menus.
|
|
299
|
+
*
|
|
300
|
+
* Assemble the parts as properties of the object:
|
|
301
|
+
*
|
|
302
|
+
* ```tsx
|
|
303
|
+
* import { Menu } from '@vikram-hegde/skeletal'
|
|
304
|
+
*
|
|
305
|
+
* <Menu.Root>
|
|
306
|
+
* <Menu.Trigger>Options</Menu.Trigger>
|
|
307
|
+
* <Menu.Portal>
|
|
308
|
+
* <Menu.Positioner sideOffset={8} align="start">
|
|
309
|
+
* <Menu.Popup>
|
|
310
|
+
* <Menu.Item onClick={…}>Edit</Menu.Item>
|
|
311
|
+
* <Menu.Separator />
|
|
312
|
+
* <Menu.Item danger>Delete</Menu.Item>
|
|
313
|
+
* </Menu.Popup>
|
|
314
|
+
* </Menu.Positioner>
|
|
315
|
+
* </Menu.Portal>
|
|
316
|
+
* </Menu.Root>
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* Composition follows the Base UI anatomy — `Menu.Positioner` floats the
|
|
320
|
+
* popup against the trigger and handles collision avoidance; `Menu.Portal`
|
|
321
|
+
* moves it to `<body>`.
|
|
322
|
+
*
|
|
323
|
+
* All parts are thin styled wrappers over Base UI's `Menu`, so every Base UI
|
|
324
|
+
* prop, `render` override, and ref behaves the same. Part prop types are
|
|
325
|
+
* exported separately (`MenuItemProps`, `MenuPopupProps`, etc.).
|
|
326
|
+
*/
|
|
327
|
+
declare const Menu$1: {
|
|
328
|
+
Root: typeof MenuRoot;
|
|
329
|
+
Trigger: typeof MenuTrigger;
|
|
330
|
+
Portal: typeof MenuPortal;
|
|
331
|
+
Backdrop: typeof MenuBackdrop;
|
|
332
|
+
Positioner: typeof MenuPositioner;
|
|
333
|
+
Popup: typeof MenuPopup;
|
|
334
|
+
Item: typeof MenuItem;
|
|
335
|
+
LinkItem: typeof MenuLinkItem;
|
|
336
|
+
Separator: typeof MenuSeparator;
|
|
337
|
+
Group: typeof MenuGroup;
|
|
338
|
+
GroupLabel: typeof MenuGroupLabel;
|
|
339
|
+
SubmenuRoot: typeof MenuSubmenuRoot;
|
|
340
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
341
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
342
|
+
RadioItem: typeof MenuRadioItem;
|
|
343
|
+
RadioItemIndicator: typeof MenuRadioItemIndicator;
|
|
344
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
345
|
+
CheckboxItemIndicator: typeof MenuCheckboxItemIndicator;
|
|
346
|
+
Arrow: typeof MenuArrow;
|
|
347
|
+
Viewport: typeof MenuViewport;
|
|
348
|
+
};
|
|
349
|
+
//#endregion
|
|
350
|
+
export { MenuGroupProps$1 as _, MenuSubmenuRootProps$1 as a, MenuBackdropProps$1 as b, MenuRadioItemIndicatorProps$1 as c, MenuPositionerProps$1 as d, MenuPortalProps$1 as f, MenuGroupLabelProps$1 as g, MenuItemProps$1 as h, MenuSubmenuTriggerProps$1 as i, MenuRadioItemProps$1 as l, MenuLinkItemProps$1 as m, MenuViewportProps$1 as n, MenuSeparatorProps as o, MenuPopupProps$1 as p, MenuTriggerProps$1 as r, MenuProps as s, Menu$1 as t, MenuRadioGroupProps$1 as u, MenuCheckboxItemIndicatorProps$1 as v, MenuArrowProps$1 as x, MenuCheckboxItemProps$1 as y };
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { n as ButtonProps$1 } from "./button-Dvd4n2U4.js";
|
|
2
|
+
import { ButtonState } from "@base-ui/react/button";
|
|
3
|
+
import { CSSProperties } from "react";
|
|
4
|
+
import { Tooltip, TooltipArrowProps, TooltipPopupProps, TooltipPortalProps, TooltipPositionerProps, TooltipProviderProps, TooltipRootProps, TooltipTriggerProps, TooltipViewportProps } from "@base-ui/react/tooltip";
|
|
5
|
+
//#region src/tooltip/tooltip-arrow.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* A small arrow pointing from the popup to the trigger. Renders a `<div>`
|
|
8
|
+
* element.
|
|
9
|
+
*
|
|
10
|
+
* Place it inside `<Tooltip.Popup>` (before the content). It orients itself
|
|
11
|
+
* based on the popup's `data-side` attribute, so it works for any placement.
|
|
12
|
+
*/
|
|
13
|
+
interface TooltipArrowProps$1 extends TooltipArrowProps {}
|
|
14
|
+
declare function TooltipArrow({ className, ...props }: TooltipArrowProps$1): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/tooltip/tooltip-popup.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* The tooltip panel that holds the content. Renders a `<div>` element.
|
|
19
|
+
*
|
|
20
|
+
* Accepts all Base UI popup props. Content animates in/out via the
|
|
21
|
+
* `data-starting-style` / `data-ending-style` transitions, and `data-instant`
|
|
22
|
+
* skips the animation when the tooltip opens instantly (e.g. inside a
|
|
23
|
+
* `Tooltip.Provider` group).
|
|
24
|
+
*
|
|
25
|
+
* Keep tooltip content short and label-like. For rich or essential content use
|
|
26
|
+
* a `Popover` or inline text so touch and screen-reader users can access it.
|
|
27
|
+
*/
|
|
28
|
+
interface TooltipPopupProps$1 extends TooltipPopupProps {}
|
|
29
|
+
declare function TooltipPopup({ className, ...props }: TooltipPopupProps$1): import("react").JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/tooltip/tooltip-portal.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* Moves the tooltip popup to a different part of the DOM, appended to `<body>`
|
|
34
|
+
* by default. Renders a `<div>` element.
|
|
35
|
+
*
|
|
36
|
+
* `keepMounted` keeps the portal in the DOM while the tooltip is closed (useful
|
|
37
|
+
* for exit animations). `container` overrides the portal target.
|
|
38
|
+
*
|
|
39
|
+
* @default keepMounted = false
|
|
40
|
+
*/
|
|
41
|
+
interface TooltipPortalProps$1 extends TooltipPortalProps {}
|
|
42
|
+
declare function TooltipPortal({ className, ...props }: TooltipPortalProps$1): import("react").JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/tooltip/tooltip-positioner.d.ts
|
|
45
|
+
/**
|
|
46
|
+
* Positions the tooltip popup against the trigger. Renders a `<div>` element.
|
|
47
|
+
*
|
|
48
|
+
* Accepts all Base UI positioner props: `side`, `align`, `sideOffset`,
|
|
49
|
+
* `alignOffset`, `collisionAvoidance`, `collisionBoundary`, `collisionPadding`,
|
|
50
|
+
* `sticky`, `positionMethod`, `arrowPadding`, and `anchor`.
|
|
51
|
+
*
|
|
52
|
+
* `side` may flip automatically to avoid collisions (default `'top'`). Pair
|
|
53
|
+
* the `sideOffset` with the `Tooltip.Arrow` so the arrow has room to point at
|
|
54
|
+
* the trigger.
|
|
55
|
+
*
|
|
56
|
+
* When one popup is shared across several triggers (via `handle` +
|
|
57
|
+
* `Tooltip.Viewport`), size it with the `--positioner-width` /
|
|
58
|
+
* `--positioner-height` / `--available-width` CSS variables so content changes
|
|
59
|
+
* don't thrash the layout.
|
|
60
|
+
*
|
|
61
|
+
* @default side = 'top'
|
|
62
|
+
* @default align = 'center'
|
|
63
|
+
* @default sideOffset = 8
|
|
64
|
+
*/
|
|
65
|
+
interface TooltipPositionerProps$1 extends TooltipPositionerProps {}
|
|
66
|
+
declare function TooltipPositioner({ className, sideOffset, ...props }: TooltipPositionerProps$1): import("react").JSX.Element;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/tooltip/tooltip-provider.d.ts
|
|
69
|
+
/**
|
|
70
|
+
* Provides a shared delay for a group of tooltips. Renders no DOM element.
|
|
71
|
+
*
|
|
72
|
+
* Wrap several `Tooltip.Root`s in one `Tooltip.Provider` so that, once a
|
|
73
|
+
* tooltip in the group has opened, the next one opens instantly when the
|
|
74
|
+
* pointer moves to it (within `timeout` ms) instead of re-waiting the full
|
|
75
|
+
* hover `delay`.
|
|
76
|
+
*
|
|
77
|
+
* @default delay = 600 (on each trigger)
|
|
78
|
+
* @default closeDelay = 0 (on each trigger)
|
|
79
|
+
* @default timeout = 300
|
|
80
|
+
*/
|
|
81
|
+
interface TooltipProviderProps$1 extends TooltipProviderProps {}
|
|
82
|
+
declare function TooltipProvider({ timeout, ...props }: TooltipProviderProps$1): import("react").JSX.Element;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/tooltip/tooltip-root.d.ts
|
|
85
|
+
/**
|
|
86
|
+
* The root of the tooltip, grouping all parts together. Renders no DOM element.
|
|
87
|
+
*
|
|
88
|
+
* All Base UI root props are supported: `open`, `defaultOpen`, `onOpenChange`,
|
|
89
|
+
* `onOpenChangeComplete`, `disableHoverablePopup`, `trackCursorAxis`,
|
|
90
|
+
* `actionsRef`, `disabled`, `handle`, `triggerId`, and `defaultTriggerId`.
|
|
91
|
+
*
|
|
92
|
+
* Tooltips open on hover and focus, and close on blur, Escape, or outside
|
|
93
|
+
* press. They are disabled on touch devices (Base UI behavior) — tooltips are
|
|
94
|
+
* a visual label for sighted mouse/keyboard users, not a replacement for an
|
|
95
|
+
* accessible trigger name (`aria-label`).
|
|
96
|
+
*
|
|
97
|
+
* `disableHoverablePopup` (`@default false`) keeps the tooltip from staying
|
|
98
|
+
* open when the pointer moves onto the popup itself — enable it for an
|
|
99
|
+
* interactive popup.
|
|
100
|
+
*
|
|
101
|
+
* `trackCursorAxis` (`@default 'none'`) makes the popup follow the cursor
|
|
102
|
+
* along the given axis ('x' | 'y' | 'both') instead of anchoring to the
|
|
103
|
+
* trigger.
|
|
104
|
+
*/
|
|
105
|
+
interface TooltipProps<Payload = unknown> extends TooltipRootProps<Payload> {}
|
|
106
|
+
declare function TooltipRoot<Payload>(props: TooltipProps<Payload>): import("react").JSX.Element;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/tooltip/tooltip-trigger.d.ts
|
|
109
|
+
/**
|
|
110
|
+
* The element that opens the tooltip when hovered or focused. Renders a
|
|
111
|
+
* `<button>` element.
|
|
112
|
+
*
|
|
113
|
+
* Composed from the `Button` component via Base UI's `render` prop, so it
|
|
114
|
+
* accepts all `Button` props (`variant`, `size`, `fullWidth`, `disabled`, ...)
|
|
115
|
+
* plus the tooltip-trigger props from Base UI (`handle`, `payload`, `delay`,
|
|
116
|
+
* `closeDelay`, `closeOnClick`, `disabled`, `id`). Defaults to the `ghost`
|
|
117
|
+
* variant — use `variant="outline"` for a bordered icon button.
|
|
118
|
+
*
|
|
119
|
+
* The trigger must carry an `aria-label` matching the tooltip content so
|
|
120
|
+
* screen-reader users get an accessible name; the tooltip itself is
|
|
121
|
+
* visual-only.
|
|
122
|
+
*
|
|
123
|
+
* @default variant = 'ghost'
|
|
124
|
+
* @default size = 'sm'
|
|
125
|
+
* @default delay = 600
|
|
126
|
+
* @default closeDelay = 0
|
|
127
|
+
* @default closeOnClick = true
|
|
128
|
+
*/
|
|
129
|
+
interface TooltipTriggerProps$1<Payload = unknown> extends Omit<ButtonProps$1, "className" | "style" | "render">, Omit<TooltipTriggerProps<Payload>, "className" | "style" | "render"> {
|
|
130
|
+
/** Class applied to the trigger button, or a function of the button state. */
|
|
131
|
+
className?: string | ((state: ButtonState) => string | undefined);
|
|
132
|
+
/** Style applied to the trigger button, or a function of the button state. */
|
|
133
|
+
style?: CSSProperties | ((state: ButtonState) => CSSProperties | undefined);
|
|
134
|
+
}
|
|
135
|
+
declare function TooltipTrigger<Payload>({ className, style, variant, size, fullWidth, ...props }: TooltipTriggerProps$1<Payload>): import("react").JSX.Element;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/tooltip/tooltip-viewport.d.ts
|
|
138
|
+
/**
|
|
139
|
+
* A transition container for tooltip content. Renders a `<div>` element.
|
|
140
|
+
*
|
|
141
|
+
* Only required when one popup is opened by multiple triggers, its content
|
|
142
|
+
* changes based on the trigger, and switching between them is animated (e.g. a
|
|
143
|
+
* shared tooltip for several `Tooltip.Trigger`s via `handle`).
|
|
144
|
+
*
|
|
145
|
+
* When used, size the positioner with the `--positioner-width` /
|
|
146
|
+
* `--positioner-height` CSS variables so content changes don't thrash the
|
|
147
|
+
* layout.
|
|
148
|
+
*/
|
|
149
|
+
interface TooltipViewportProps$1 extends TooltipViewportProps {}
|
|
150
|
+
declare function TooltipViewport({ className, ...props }: TooltipViewportProps$1): import("react").JSX.Element;
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/tooltip/index.d.ts
|
|
153
|
+
/**
|
|
154
|
+
* Compound component for tooltips.
|
|
155
|
+
*
|
|
156
|
+
* Assemble the parts as properties of the object:
|
|
157
|
+
*
|
|
158
|
+
* ```tsx
|
|
159
|
+
* import { Tooltip } from '@vikram-hegde/skeletal'
|
|
160
|
+
*
|
|
161
|
+
* <Tooltip.Provider>
|
|
162
|
+
* <Tooltip.Root>
|
|
163
|
+
* <Tooltip.Trigger aria-label="Bold">
|
|
164
|
+
* <BoldIcon aria-hidden="true" />
|
|
165
|
+
* </Tooltip.Trigger>
|
|
166
|
+
* <Tooltip.Portal>
|
|
167
|
+
* <Tooltip.Positioner sideOffset={8}>
|
|
168
|
+
* <Tooltip.Popup>
|
|
169
|
+
* <Tooltip.Arrow />
|
|
170
|
+
* Bold
|
|
171
|
+
* </Tooltip.Popup>
|
|
172
|
+
* </Tooltip.Positioner>
|
|
173
|
+
* </Tooltip.Portal>
|
|
174
|
+
* </Tooltip.Root>
|
|
175
|
+
* </Tooltip.Provider>
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* Tooltips appear on hover/focus and are visual-only: the trigger must carry
|
|
179
|
+
* an `aria-label` matching the tooltip content. They are disabled on touch
|
|
180
|
+
* devices. Use `Popover` for essential or interactive content.
|
|
181
|
+
*
|
|
182
|
+
* `Tooltip.createHandle()` links a `Root` with triggers rendered outside of it
|
|
183
|
+
* (detached triggers), including multiple triggers sharing one popup:
|
|
184
|
+
*
|
|
185
|
+
* ```tsx
|
|
186
|
+
* const tip = Tooltip.createHandle();
|
|
187
|
+
* <Tooltip.Trigger handle={tip} aria-label="Delete">…</Tooltip.Trigger>
|
|
188
|
+
* <Tooltip.Root handle={tip}>…</Tooltip.Root>
|
|
189
|
+
* ```
|
|
190
|
+
*
|
|
191
|
+
* All parts are thin styled wrappers over Base UI's `Tooltip`, so every Base UI
|
|
192
|
+
* prop, `render` override, and ref behaves the same. Part prop types are
|
|
193
|
+
* exported separately (`TooltipProps`, `TooltipTriggerProps`, ...).
|
|
194
|
+
*/
|
|
195
|
+
declare const Tooltip$1: {
|
|
196
|
+
Provider: typeof TooltipProvider;
|
|
197
|
+
Root: typeof TooltipRoot;
|
|
198
|
+
Trigger: typeof TooltipTrigger;
|
|
199
|
+
Portal: typeof TooltipPortal;
|
|
200
|
+
Positioner: typeof TooltipPositioner;
|
|
201
|
+
Popup: typeof TooltipPopup;
|
|
202
|
+
Arrow: typeof TooltipArrow;
|
|
203
|
+
Viewport: typeof TooltipViewport;
|
|
204
|
+
createHandle: typeof Tooltip.createHandle;
|
|
205
|
+
};
|
|
206
|
+
/** The handle created by `Tooltip.createHandle()`, for typing detached triggers. */
|
|
207
|
+
type TooltipHandle<Payload> = Tooltip.Handle<Payload>;
|
|
208
|
+
//#endregion
|
|
209
|
+
export { TooltipProps as a, TooltipPortalProps$1 as c, TooltipTriggerProps$1 as i, TooltipPopupProps$1 as l, TooltipHandle as n, TooltipProviderProps$1 as o, TooltipViewportProps$1 as r, TooltipPositionerProps$1 as s, Tooltip$1 as t, TooltipArrowProps$1 as u };
|