@caligo-ui/core 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +137 -0
- package/README.md +6 -5
- package/agent/caligo.json +648 -41
- package/dist/css/Accordion.css +6 -0
- package/dist/css/AccordionSummary.css +2 -0
- package/dist/css/Alert.css +8 -0
- package/dist/css/AppBar.css +2 -0
- package/dist/css/Avatar.css +4 -0
- package/dist/css/AvatarGroup.css +6 -0
- package/dist/css/Badge.css +6 -0
- package/dist/css/Breadcrumb.css +2 -0
- package/dist/css/Breadcrumbs.css +2 -0
- package/dist/css/Button.css +2 -0
- package/dist/css/ButtonGroup.css +4 -0
- package/dist/css/Card.css +4 -0
- package/dist/css/Checkbox.css +2 -0
- package/dist/css/Chip.css +4 -0
- package/dist/css/CircularProgress.css +2 -0
- package/dist/css/Collapse.css +2 -0
- package/dist/css/Collapsible.css +8 -0
- package/dist/css/Container.css +2 -0
- package/dist/css/Dialog.css +2 -0
- package/dist/css/Divider.css +2 -0
- package/dist/css/Drawer.css +2 -0
- package/dist/css/ErrorPanel.css +6 -0
- package/dist/css/FormControl.css +2 -0
- package/dist/css/FormControlLabel.css +2 -0
- package/dist/css/FormGroup.css +2 -0
- package/dist/css/FormHelperText.css +2 -0
- package/dist/css/FormLabel.css +2 -0
- package/dist/css/Grid.css +2 -0
- package/dist/css/Icon.css +4 -0
- package/dist/css/IconButton.css +4 -0
- package/dist/css/InputAdornment.css +2 -0
- package/dist/css/InputBase.css +2 -0
- package/dist/css/InputGroup.css +12 -0
- package/dist/css/Label.css +2 -0
- package/dist/css/LicenseInfo.css +2 -0
- package/dist/css/LinearProgress.css +2 -0
- package/dist/css/Link.css +2 -0
- package/dist/css/List.css +2 -0
- package/dist/css/ListItem.css +6 -0
- package/dist/css/ListItemAvatar.css +2 -0
- package/dist/css/ListItemButton.css +2 -0
- package/dist/css/ListItemIcon.css +4 -0
- package/dist/css/ListItemText.css +4 -0
- package/dist/css/ListSubheader.css +2 -0
- package/dist/css/Menu.css +2 -0
- package/dist/css/MenuItem.css +2 -0
- package/dist/css/MenuList.css +6 -0
- package/dist/css/NotificationBadge.css +6 -0
- package/dist/css/Pagination.css +6 -0
- package/dist/css/PaginationItem.css +4 -0
- package/dist/css/Paper.css +2 -0
- package/dist/css/Popover.css +2 -0
- package/dist/css/PreviewCard.css +4 -0
- package/dist/css/Progress.css +4 -0
- package/dist/css/Radio.css +2 -0
- package/dist/css/RadioGroup.css +2 -0
- package/dist/css/ScrollArea.css +2 -0
- package/dist/css/Select.css +10 -0
- package/dist/css/Separator.css +2 -0
- package/dist/css/Sheet.css +2 -0
- package/dist/css/Skeleton.css +2 -0
- package/dist/css/Slider.css +2 -0
- package/dist/css/Snackbar.css +4 -0
- package/dist/css/SnackbarContent.css +2 -0
- package/dist/css/Spinner.css +2 -0
- package/dist/css/Stack.css +2 -0
- package/dist/css/Switch.css +2 -0
- package/dist/css/Tab.css +2 -0
- package/dist/css/Table.css +2 -0
- package/dist/css/TableBody.css +2 -0
- package/dist/css/TableCell.css +2 -0
- package/dist/css/TableContainer.css +2 -0
- package/dist/css/TableFooter.css +2 -0
- package/dist/css/TableHead.css +2 -0
- package/dist/css/TableRow.css +2 -0
- package/dist/css/TableSortLabel.css +2 -0
- package/dist/css/Tabs.css +2 -0
- package/dist/css/Tag.css +4 -0
- package/dist/css/TextField.css +10 -0
- package/dist/css/Toast.css +4 -0
- package/dist/css/ToggleButton.css +2 -0
- package/dist/css/ToggleButtonGroup.css +2 -0
- package/dist/css/ToggleGroup.css +2 -0
- package/dist/css/Toolbar.css +2 -0
- package/dist/css/Tooltip.css +2 -0
- package/dist/css/Typography.css +2 -0
- package/dist/css/VirtualList.css +2 -0
- package/dist/esm/Alert/Alert.css +1 -1
- package/dist/esm/Alert/Alert2.js +2 -0
- package/dist/esm/Alert/Alert2.js.map +1 -1
- package/dist/esm/Avatar/Avatar.css +1 -1
- package/dist/esm/Avatar/Avatar2.js +33 -39
- package/dist/esm/Avatar/Avatar2.js.map +1 -1
- package/dist/esm/Breadcrumbs/Breadcrumbs.css +1 -1
- package/dist/esm/Button/Button.css +1 -1
- package/dist/esm/Button/Button2.js +36 -36
- package/dist/esm/Button/Button2.js.map +1 -1
- package/dist/esm/Button/buttonClasses.js +1 -1
- package/dist/esm/Button/buttonClasses.js.map +1 -1
- package/dist/esm/Card/Card.css +1 -1
- package/dist/esm/Checkbox/Checkbox.css +1 -1
- package/dist/esm/Chip/Chip.css +1 -1
- package/dist/esm/Chip/Chip2.js +30 -53
- package/dist/esm/Chip/Chip2.js.map +1 -1
- package/dist/esm/Dialog/Dialog.css +1 -1
- package/dist/esm/Dialog/Dialog2.js.map +1 -1
- package/dist/esm/Drawer/Drawer.css +1 -1
- package/dist/esm/FormLabel/FormLabel.css +1 -1
- package/dist/esm/IconButton/IconButton.css +1 -1
- package/dist/esm/IconButton/IconButton2.js +9 -8
- package/dist/esm/IconButton/IconButton2.js.map +1 -1
- package/dist/esm/InputBase/InputBase.js +52 -0
- package/dist/esm/InputBase/InputBase.js.map +1 -0
- package/dist/esm/InputBase/index.js +1 -0
- package/dist/esm/List/List.css +1 -1
- package/dist/esm/Menu/Menu.css +1 -1
- package/dist/esm/MenuItem/MenuItem.css +1 -1
- package/dist/esm/Paper/Paper.css +1 -1
- package/dist/esm/Popover/Popover.css +1 -1
- package/dist/esm/Radio/Radio.css +1 -1
- package/dist/esm/Radio/Radio2.js +74 -45
- package/dist/esm/Radio/Radio2.js.map +1 -1
- package/dist/esm/RadioGroup/RadioGroup.js +29 -22
- package/dist/esm/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/RadioGroup/radioGroupContext.js.map +1 -1
- package/dist/esm/ScrollArea/ScrollArea.css +1 -0
- package/dist/esm/ScrollArea/ScrollArea2.js +25 -0
- package/dist/esm/ScrollArea/ScrollArea2.js.map +1 -0
- package/dist/esm/ScrollArea/index.js +1 -0
- package/dist/esm/Select/Select.css +1 -1
- package/dist/esm/Snackbar/Snackbar.css +1 -1
- package/dist/esm/Switch/Switch.css +1 -1
- package/dist/esm/Switch/Switch2.js +47 -42
- package/dist/esm/Switch/Switch2.js.map +1 -1
- package/dist/esm/Tab/Tab.css +1 -1
- package/dist/esm/Tab/Tab2.js +29 -24
- package/dist/esm/Tab/Tab2.js.map +1 -1
- package/dist/esm/Table/Table.css +1 -1
- package/dist/esm/TableCell/TableCell.js +6 -6
- package/dist/esm/TableCell/TableCell.js.map +1 -1
- package/dist/esm/Tabs/Tabs.css +1 -1
- package/dist/esm/TextField/TextField.css +1 -1
- package/dist/esm/TextField/TextField2.js +106 -86
- package/dist/esm/TextField/TextField2.js.map +1 -1
- package/dist/esm/TextField/textFieldClasses.js +2 -0
- package/dist/esm/TextField/textFieldClasses.js.map +1 -1
- package/dist/esm/ToggleButton/ToggleButton.css +1 -1
- package/dist/esm/Toolbar/Toolbar.css +1 -1
- package/dist/esm/Tooltip/Tooltip.css +1 -1
- package/dist/esm/Tooltip/Tooltip2.js +50 -33
- package/dist/esm/Tooltip/Tooltip2.js.map +1 -1
- package/dist/esm/Typography/Typography.css +1 -1
- package/dist/esm/caligo.css +1 -1
- package/dist/esm/index.js +65 -63
- package/dist/esm/internal/glyphs.js +5 -0
- package/dist/esm/internal/glyphs.js.map +1 -1
- package/dist/esm/internal/hues.js +23 -0
- package/dist/esm/internal/hues.js.map +1 -0
- package/dist/esm/internal/inputEvent.js +22 -0
- package/dist/esm/internal/inputEvent.js.map +1 -0
- package/dist/esm/internal/releaseInfo.js +1 -1
- package/dist/esm/internal/releaseInfo.js.map +1 -1
- package/dist/esm/mui/index.js.map +1 -1
- package/dist/esm/mui/themeValues.js +106 -0
- package/dist/esm/mui/themeValues.js.map +1 -1
- package/dist/esm/parts/Breadcrumb.js +68 -0
- package/dist/esm/parts/Breadcrumb.js.map +1 -0
- package/dist/esm/parts/Combobox.js +171 -0
- package/dist/esm/parts/Combobox.js.map +1 -0
- package/dist/esm/parts/ContextMenu.js +17 -17
- package/dist/esm/parts/ContextMenu.js.map +1 -1
- package/dist/esm/parts/Menu.js +105 -24
- package/dist/esm/parts/Menu.js.map +1 -1
- package/dist/esm/parts/Select.js +120 -0
- package/dist/esm/parts/Select.js.map +1 -0
- package/dist/esm/parts/Toast.js +95 -0
- package/dist/esm/parts/Toast.js.map +1 -0
- package/dist/esm/parts/Toolbar.js +100 -0
- package/dist/esm/parts/Toolbar.js.map +1 -0
- package/dist/esm/parts/Tooltip.js +20 -8
- package/dist/esm/parts/Tooltip.js.map +1 -1
- package/dist/esm/parts/index.js +156 -87
- package/dist/esm/parts/index.js.map +1 -1
- package/dist/global/caligo-ui.css +1 -1
- package/dist/global/caligo-ui.js +1 -1
- package/dist/global/caligo-ui.js.map +1 -1
- package/dist/types/Alert/Alert.d.ts +7 -2
- package/dist/types/Avatar/Avatar.d.ts +38 -3
- package/dist/types/Button/Button.d.ts +9 -2
- package/dist/types/Button/buttonClasses.d.ts +2 -0
- package/dist/types/Chip/Chip.d.ts +21 -0
- package/dist/types/Dialog/Dialog.d.ts +1 -0
- package/dist/types/IconButton/IconButton.d.ts +6 -0
- package/dist/types/InputBase/InputBase.d.ts +64 -0
- package/dist/types/InputBase/index.d.ts +2 -0
- package/dist/types/Radio/Radio.d.ts +5 -3
- package/dist/types/RadioGroup/RadioGroup.d.ts +4 -2
- package/dist/types/RadioGroup/radioGroupContext.d.ts +6 -2
- package/dist/types/ScrollArea/ScrollArea.d.ts +28 -0
- package/dist/types/ScrollArea/index.d.ts +2 -0
- package/dist/types/Switch/Switch.d.ts +4 -3
- package/dist/types/Tab/Tab.d.ts +7 -0
- package/dist/types/TableCell/TableCell.d.ts +6 -0
- package/dist/types/TextField/TextField.d.ts +11 -0
- package/dist/types/TextField/textFieldClasses.d.ts +4 -0
- package/dist/types/Tooltip/Tooltip.d.ts +20 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/internal/glyphs.d.ts +1 -0
- package/dist/types/internal/hues.d.ts +10 -0
- package/dist/types/internal/inputEvent.d.ts +13 -0
- package/dist/types/internal/releaseInfo.d.ts +1 -1
- package/dist/types/mui/index.d.ts +2 -0
- package/dist/types/mui/themeValues.d.ts +106 -0
- package/dist/types/parts/Breadcrumb.d.ts +24 -0
- package/dist/types/parts/Combobox.d.ts +88 -0
- package/dist/types/parts/ContextMenu.d.ts +2 -2
- package/dist/types/parts/Menu.d.ts +44 -0
- package/dist/types/parts/Select.d.ts +72 -0
- package/dist/types/parts/Toast.d.ts +46 -0
- package/dist/types/parts/Toolbar.d.ts +47 -0
- package/dist/types/parts/Tooltip.d.ts +6 -0
- package/dist/types/parts/index.d.ts +95 -4
- package/package.json +13 -2
|
@@ -741,5 +741,111 @@ export declare const themeValues: {
|
|
|
741
741
|
readonly radius: "12px";
|
|
742
742
|
readonly font: "\"Onest\", \"Inter\", system-ui, -apple-system, \"Segoe UI\", sans-serif";
|
|
743
743
|
};
|
|
744
|
+
readonly "caligo-light-contrast": {
|
|
745
|
+
readonly palette: {
|
|
746
|
+
readonly primary: {
|
|
747
|
+
readonly main: "#4b3a9e";
|
|
748
|
+
readonly light: "#3f3085";
|
|
749
|
+
readonly dark: "#35286f";
|
|
750
|
+
readonly contrastText: "#ffffff";
|
|
751
|
+
};
|
|
752
|
+
readonly secondary: {
|
|
753
|
+
readonly main: "#eaeaea";
|
|
754
|
+
readonly light: "#dddddd";
|
|
755
|
+
readonly dark: "#d1d1d1";
|
|
756
|
+
readonly contrastText: "#000000";
|
|
757
|
+
};
|
|
758
|
+
readonly error: {
|
|
759
|
+
readonly main: "#8f2f28";
|
|
760
|
+
readonly light: "#99544e";
|
|
761
|
+
readonly dark: "#8d6a68";
|
|
762
|
+
readonly contrastText: "#ffffff";
|
|
763
|
+
};
|
|
764
|
+
readonly warning: {
|
|
765
|
+
readonly main: "#7a5512";
|
|
766
|
+
readonly light: "#9c7436";
|
|
767
|
+
readonly dark: "#ccaf81";
|
|
768
|
+
readonly contrastText: "#ffffff";
|
|
769
|
+
};
|
|
770
|
+
readonly success: {
|
|
771
|
+
readonly main: "#2d6a3c";
|
|
772
|
+
readonly light: "#4f8b5e";
|
|
773
|
+
readonly dark: "#93c09f";
|
|
774
|
+
readonly contrastText: "#ffffff";
|
|
775
|
+
};
|
|
776
|
+
readonly info: {
|
|
777
|
+
readonly main: "#2c5d82";
|
|
778
|
+
readonly light: "#57819f";
|
|
779
|
+
readonly dark: "#4d728d";
|
|
780
|
+
readonly contrastText: "#232323";
|
|
781
|
+
};
|
|
782
|
+
readonly background: {
|
|
783
|
+
readonly default: "#f7f7f7";
|
|
784
|
+
readonly paper: "#ffffff";
|
|
785
|
+
};
|
|
786
|
+
readonly text: {
|
|
787
|
+
readonly primary: "#000000";
|
|
788
|
+
readonly secondary: "#333333";
|
|
789
|
+
readonly disabled: "#6b6b6b";
|
|
790
|
+
};
|
|
791
|
+
readonly divider: "#f7f7f7";
|
|
792
|
+
readonly mode: "light";
|
|
793
|
+
};
|
|
794
|
+
readonly radius: "8px";
|
|
795
|
+
readonly font: "\"Inter\", system-ui, -apple-system, \"Segoe UI\", sans-serif";
|
|
796
|
+
};
|
|
797
|
+
readonly "caligo-dark-contrast": {
|
|
798
|
+
readonly palette: {
|
|
799
|
+
readonly primary: {
|
|
800
|
+
readonly main: "#c9bcff";
|
|
801
|
+
readonly light: "#d6ccff";
|
|
802
|
+
readonly dark: "#e0d8ff";
|
|
803
|
+
readonly contrastText: "#1a1a1a";
|
|
804
|
+
};
|
|
805
|
+
readonly secondary: {
|
|
806
|
+
readonly main: "#3c3c3c";
|
|
807
|
+
readonly light: "#484848";
|
|
808
|
+
readonly dark: "#535353";
|
|
809
|
+
readonly contrastText: "#ffffff";
|
|
810
|
+
};
|
|
811
|
+
readonly error: {
|
|
812
|
+
readonly main: "#f0a6a0";
|
|
813
|
+
readonly light: "#da9590";
|
|
814
|
+
readonly dark: "#e3aeaa";
|
|
815
|
+
readonly contrastText: "#1a1a1a";
|
|
816
|
+
};
|
|
817
|
+
readonly warning: {
|
|
818
|
+
readonly main: "#ecc58a";
|
|
819
|
+
readonly light: "#dbb77a";
|
|
820
|
+
readonly dark: "#e4c899";
|
|
821
|
+
readonly contrastText: "#1a1a1a";
|
|
822
|
+
};
|
|
823
|
+
readonly success: {
|
|
824
|
+
readonly main: "#9fd6aa";
|
|
825
|
+
readonly light: "#8ec39a";
|
|
826
|
+
readonly dark: "#a9d1b2";
|
|
827
|
+
readonly contrastText: "#1a1a1a";
|
|
828
|
+
};
|
|
829
|
+
readonly info: {
|
|
830
|
+
readonly main: "#a9d4f0";
|
|
831
|
+
readonly light: "#a0c9e3";
|
|
832
|
+
readonly dark: "#abcfe6";
|
|
833
|
+
readonly contrastText: "#0c1820";
|
|
834
|
+
};
|
|
835
|
+
readonly background: {
|
|
836
|
+
readonly default: "#000000";
|
|
837
|
+
readonly paper: "#121212";
|
|
838
|
+
};
|
|
839
|
+
readonly text: {
|
|
840
|
+
readonly primary: "#ffffff";
|
|
841
|
+
readonly secondary: "#e0e0e0";
|
|
842
|
+
readonly disabled: "#9a9a9a";
|
|
843
|
+
};
|
|
844
|
+
readonly divider: "#000000";
|
|
845
|
+
readonly mode: "dark";
|
|
846
|
+
};
|
|
847
|
+
readonly radius: "8px";
|
|
848
|
+
readonly font: "\"Inter\", system-ui, -apple-system, \"Segoe UI\", sans-serif";
|
|
849
|
+
};
|
|
744
850
|
};
|
|
745
851
|
export type CaligoThemeName = keyof typeof themeValues;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import '../Breadcrumbs/Breadcrumbs.css';
|
|
3
|
+
export interface RootProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
/** The larger type, as on `Breadcrumbs`. */
|
|
5
|
+
size?: 'medium' | 'large';
|
|
6
|
+
}
|
|
7
|
+
/** The landmark. @default aria-label "Breadcrumb" */
|
|
8
|
+
export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
/** The ordered list of items. */
|
|
10
|
+
export declare const List: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
|
|
11
|
+
/** One step: holds a `Link`, a `Page` or an `Ellipsis`. */
|
|
12
|
+
export declare const Item: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
13
|
+
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
14
|
+
/** Your router's link, such as Next.js's `Link`. @default 'a' */
|
|
15
|
+
component?: React.ElementType;
|
|
16
|
+
}
|
|
17
|
+
/** A step you can go back to. */
|
|
18
|
+
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
19
|
+
/** The page you are on: not a link, marked `aria-current="page"`. */
|
|
20
|
+
export declare const Page: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
/** The mark between steps, hidden from assistive tech. A chevron unless you pass your own. */
|
|
22
|
+
export declare const Separator: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
23
|
+
/** Collapsed steps: a "…" button, the same as `Breadcrumbs` draws, which can be a menu's trigger. */
|
|
24
|
+
export declare const Ellipsis: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Combobox as BaseCombobox } from '@base-ui/react/combobox';
|
|
3
|
+
import type { PartProps, PlacementProps } from './types';
|
|
4
|
+
import '../TextField/TextField.css';
|
|
5
|
+
import '../Menu/Menu.css';
|
|
6
|
+
import '../MenuItem/MenuItem.css';
|
|
7
|
+
import '../Select/Select.css';
|
|
8
|
+
export type RootProps<Value = unknown, Multiple extends boolean | undefined = false> = React.ComponentProps<typeof BaseCombobox.Root<Value, Multiple>>;
|
|
9
|
+
/**
|
|
10
|
+
* Holds the items, the value (`value` with `onValueChange`, or `defaultValue`; `multiple` for several), the typed
|
|
11
|
+
* text and whether it is open. Give it `items` and it filters them as you type. Renders no element.
|
|
12
|
+
*/
|
|
13
|
+
export declare function Root<Value, Multiple extends boolean | undefined = false>(props: RootProps<Value, Multiple>): React.JSX.Element;
|
|
14
|
+
export interface InputProps extends Omit<PartProps<typeof BaseCombobox.Input>, 'size'> {
|
|
15
|
+
/** The field's look, as on TextField, or `ghost` (no edge until hover), as on InputBase. @default 'outlined' */
|
|
16
|
+
variant?: 'outlined' | 'filled' | 'standard' | 'ghost';
|
|
17
|
+
/** The field's height, as on TextField. @default 'medium' */
|
|
18
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
19
|
+
fullWidth?: boolean;
|
|
20
|
+
error?: boolean;
|
|
21
|
+
/** Shows a button that clears the text and the value. */
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
/** Leaves out the chevron that opens the list. */
|
|
24
|
+
hideTrigger?: boolean;
|
|
25
|
+
/** The clear button's accessible name. @default 'Clear' */
|
|
26
|
+
clearLabel?: string;
|
|
27
|
+
/** The chevron's accessible name. @default 'Show suggestions' */
|
|
28
|
+
triggerLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
/** The field you type into: Caligo's field box, with a chevron (and, if `clearable`, a clear button) at its end. */
|
|
31
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
+
export interface TriggerProps extends PartProps<typeof BaseCombobox.Trigger> {
|
|
33
|
+
variant?: 'outlined' | 'filled' | 'standard' | 'ghost';
|
|
34
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
35
|
+
fullWidth?: boolean;
|
|
36
|
+
error?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A field-shaped button that opens the list, for a combobox whose search box is inside the popup (`Search`). With no
|
|
40
|
+
* children it shows `Value` and the chevron.
|
|
41
|
+
*/
|
|
42
|
+
export declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
/** The chosen item's label (for a `Trigger`), or `placeholder`. */
|
|
44
|
+
export declare const Value: (props: React.ComponentProps<typeof BaseCombobox.Value> & {
|
|
45
|
+
placeholder?: React.ReactNode;
|
|
46
|
+
}) => React.JSX.Element;
|
|
47
|
+
export interface ContentProps extends PartProps<typeof BaseCombobox.Popup>, Omit<PlacementProps, 'keepMounted'> {
|
|
48
|
+
/** What the list lines up with, if not the trigger: an element, a ref to one, or a virtual element. */
|
|
49
|
+
anchor?: React.ComponentProps<typeof BaseCombobox.Positioner>['anchor'];
|
|
50
|
+
}
|
|
51
|
+
/** The list's surface, at least as wide as the field: the same classes as `Select`'s. Holds a `List`, and a `Search` and `Empty` if you want them. */
|
|
52
|
+
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export interface SearchProps extends PartProps<typeof BaseCombobox.Input> {
|
|
54
|
+
/** @default 'Search' */
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
}
|
|
57
|
+
/** A search box at the top of the popup, for a combobox opened from a `Trigger`. */
|
|
58
|
+
export declare const Search: React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<HTMLInputElement>>;
|
|
59
|
+
/** The options. Children can be a function of each item, as Base UI's are: `{(item) => <Combobox.Item … />}`. */
|
|
60
|
+
export declare const List: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ComboboxListProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
61
|
+
className?: string;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
export interface ItemProps extends PartProps<typeof BaseCombobox.Item> {
|
|
64
|
+
shortcut?: React.ReactNode;
|
|
65
|
+
dense?: boolean;
|
|
66
|
+
/** An icon or avatar before the label. */
|
|
67
|
+
icon?: React.ReactNode;
|
|
68
|
+
/** A second line under the label. */
|
|
69
|
+
description?: React.ReactNode;
|
|
70
|
+
}
|
|
71
|
+
/** One option: a `MenuItem` row with a check on the chosen one. */
|
|
72
|
+
export declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
/** Shown in place of the list when nothing matches. Empty while something does. */
|
|
74
|
+
export declare const Empty: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ComboboxEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
75
|
+
className?: string;
|
|
76
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
/** Options that belong together. Give it a `Label`. */
|
|
78
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ComboboxGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
79
|
+
className?: string;
|
|
80
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
/** A small heading for a `Group`. */
|
|
82
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ComboboxGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
83
|
+
className?: string;
|
|
84
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
/** A line between options. */
|
|
86
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").ComboboxSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
87
|
+
className?: string;
|
|
88
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -18,5 +18,5 @@ export interface ContentProps extends PartProps<typeof BaseContextMenu.Popup> {
|
|
|
18
18
|
}
|
|
19
19
|
/** The menu's surface, opened where the pointer is. The same classes as Caligo's `Menu`. */
|
|
20
20
|
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
export { Item, Group, Label, Separator } from './Menu';
|
|
22
|
-
export type { ItemProps, GroupProps, LabelProps } from './Menu';
|
|
21
|
+
export { Item, CheckboxItem, RadioGroup, RadioItem, LinkItem, Submenu, SubmenuTrigger, SubmenuContent, Group, Label, Separator } from './Menu';
|
|
22
|
+
export type { ItemProps, CheckboxItemProps, RadioGroupProps, RadioItemProps, LinkItemProps, SubmenuProps, SubmenuTriggerProps, GroupProps, LabelProps } from './Menu';
|
|
@@ -37,3 +37,47 @@ export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<Omit<impor
|
|
|
37
37
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
/** A line between items: Caligo's `Divider`. */
|
|
39
39
|
export { Divider as Separator } from '../Divider';
|
|
40
|
+
interface ItemLookProps {
|
|
41
|
+
/** `error` for a destructive item. @default 'default' */
|
|
42
|
+
color?: 'default' | 'error';
|
|
43
|
+
/** A smaller row. */
|
|
44
|
+
dense?: boolean;
|
|
45
|
+
/** Trailing text, such as a keyboard shortcut. */
|
|
46
|
+
shortcut?: React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export interface CheckboxItemProps extends Omit<PartProps<typeof BaseMenu.CheckboxItem>, 'color'>, ItemLookProps {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* An item that turns a setting on and off, with a check box drawn before its label. `checked` with
|
|
52
|
+
* `onCheckedChange`, or `defaultChecked`. Choosing it leaves the menu open.
|
|
53
|
+
*/
|
|
54
|
+
export declare const CheckboxItem: React.ForwardRefExoticComponent<CheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
export type RadioGroupProps = PartProps<typeof BaseMenu.RadioGroup>;
|
|
56
|
+
/** Radio items of which one is chosen: `value` with `onValueChange`, or `defaultValue`. */
|
|
57
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").MenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
58
|
+
className?: string;
|
|
59
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export interface RadioItemProps extends Omit<PartProps<typeof BaseMenu.RadioItem>, 'color'>, ItemLookProps {
|
|
61
|
+
}
|
|
62
|
+
/** One choice in a `RadioGroup`, with a radio mark before its label. Choosing it leaves the menu open. */
|
|
63
|
+
export declare const RadioItem: React.ForwardRefExoticComponent<RadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
export interface LinkItemProps extends Omit<PartProps<typeof BaseMenu.Item>, 'color' | 'render'>, ItemLookProps {
|
|
65
|
+
href: string;
|
|
66
|
+
/** Opens in a new tab, with `rel="noopener noreferrer"` and an external-link mark. */
|
|
67
|
+
external?: boolean;
|
|
68
|
+
target?: string;
|
|
69
|
+
rel?: string;
|
|
70
|
+
/** Your router's link, such as Next.js's `Link`: it gets `href` and the item's props. @default 'a' */
|
|
71
|
+
component?: React.ElementType;
|
|
72
|
+
}
|
|
73
|
+
/** An item that goes somewhere: a link, which the keyboard and a middle click treat as one. */
|
|
74
|
+
export declare const LinkItem: React.ForwardRefExoticComponent<LinkItemProps & React.RefAttributes<HTMLElement>>;
|
|
75
|
+
export type SubmenuProps = React.ComponentProps<typeof BaseMenu.SubmenuRoot>;
|
|
76
|
+
/** A menu inside a menu: holds a `SubmenuTrigger` and a `SubmenuContent`. Renders no element. */
|
|
77
|
+
export declare function Submenu(props: SubmenuProps): React.JSX.Element;
|
|
78
|
+
export interface SubmenuTriggerProps extends Omit<PartProps<typeof BaseMenu.SubmenuTrigger>, 'color'>, Omit<ItemLookProps, 'color'> {
|
|
79
|
+
}
|
|
80
|
+
/** The item that opens a submenu, on hover, a click or the right arrow key. It carries a chevron. */
|
|
81
|
+
export declare const SubmenuTrigger: React.ForwardRefExoticComponent<SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
+
/** A submenu's surface: `Content`, opened beside its trigger. */
|
|
83
|
+
export declare const SubmenuContent: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Select as BaseSelect } from '@base-ui/react/select';
|
|
3
|
+
import type { PartProps, PlacementProps } from './types';
|
|
4
|
+
import '../TextField/TextField.css';
|
|
5
|
+
import '../Menu/Menu.css';
|
|
6
|
+
import '../MenuItem/MenuItem.css';
|
|
7
|
+
import '../Select/Select.css';
|
|
8
|
+
export type RootProps<Value = unknown, Multiple extends boolean | undefined = false> = React.ComponentProps<typeof BaseSelect.Root<Value, Multiple>>;
|
|
9
|
+
/**
|
|
10
|
+
* Holds the value (`value` with `onValueChange`, or `defaultValue`; `multiple` for several) and whether it is open.
|
|
11
|
+
* Give it `items` (`[{ value, label }]` or `{ value: label }`) so `Value` shows the chosen item's label rather than its
|
|
12
|
+
* value. Renders no element.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Root<Value, Multiple extends boolean | undefined = false>(props: RootProps<Value, Multiple>): React.JSX.Element;
|
|
15
|
+
export interface TriggerProps extends PartProps<typeof BaseSelect.Trigger> {
|
|
16
|
+
/** The field's look, as on TextField, or `ghost` (no edge until hover), as on InputBase. @default 'outlined' */
|
|
17
|
+
variant?: 'outlined' | 'filled' | 'standard' | 'ghost';
|
|
18
|
+
/** The field's height, as on TextField. @default 'medium' */
|
|
19
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
20
|
+
/** Takes the width of its container. */
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
/** Draws the field in the error colour. */
|
|
23
|
+
error?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The field that opens the list: Caligo's field box (the same classes as `Select` and `TextField`). With no children it
|
|
27
|
+
* shows `Value` and the chevron; pass your own children to lay it out yourself.
|
|
28
|
+
*/
|
|
29
|
+
export declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
export type ValueProps = PartProps<typeof BaseSelect.Value>;
|
|
31
|
+
/** The chosen item's text, or `placeholder` (drawn in the placeholder colour) while nothing is chosen. */
|
|
32
|
+
export declare const Value: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").SelectValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
33
|
+
className?: string;
|
|
34
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
35
|
+
/** The chevron at the end of the trigger. */
|
|
36
|
+
export declare const Icon: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").SelectIconProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
37
|
+
className?: string;
|
|
38
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
39
|
+
export interface ContentProps extends PartProps<typeof BaseSelect.Popup>, Omit<PlacementProps, 'keepMounted'> {
|
|
40
|
+
/** What the list lines up with, if not the trigger: an element, a ref to one, or a virtual element. */
|
|
41
|
+
anchor?: React.ComponentProps<typeof BaseSelect.Positioner>['anchor'];
|
|
42
|
+
}
|
|
43
|
+
/** The list's surface, at least as wide as the trigger: the same classes as `Select`'s. Holds `Item`s, `Group`s and `Separator`s. */
|
|
44
|
+
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
export interface ItemProps extends PartProps<typeof BaseSelect.Item> {
|
|
46
|
+
/** Trailing text, such as a count. */
|
|
47
|
+
shortcut?: React.ReactNode;
|
|
48
|
+
/** A smaller row. */
|
|
49
|
+
dense?: boolean;
|
|
50
|
+
/** An icon or avatar before the label. */
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
/** A second line under the label. Not part of the item's text, so the chosen value doesn't show it. */
|
|
53
|
+
description?: React.ReactNode;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* One option: a `MenuItem` row with a check on the chosen one (a check box before each label when the select is
|
|
57
|
+
* `multiple`). Give it `value`, and `label` when its children aren't plain text.
|
|
58
|
+
*/
|
|
59
|
+
export declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export type GroupProps = PartProps<typeof BaseSelect.Group>;
|
|
61
|
+
/** Options that belong together. Give it a `Label`. */
|
|
62
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
63
|
+
className?: string;
|
|
64
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
/** A small heading for a `Group`. */
|
|
66
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").SelectGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
67
|
+
className?: string;
|
|
68
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
/** A line between options. */
|
|
70
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
71
|
+
className?: string;
|
|
72
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Toast as BaseToast } from '@base-ui/react/toast';
|
|
3
|
+
import type { PartProps } from './types';
|
|
4
|
+
import '../Snackbar/Snackbar.css';
|
|
5
|
+
/** Holds the queue: `limit` (3), `timeout` (5000ms), and `toastManager` for a manager made outside React. */
|
|
6
|
+
export declare const Provider: React.FC<import("@base-ui/react").ToastProviderProps>;
|
|
7
|
+
/** Adds, updates and closes toasts: `{ add, update, close, promise, toasts }`. Call it inside a `Provider`. */
|
|
8
|
+
export declare const useToastManager: typeof BaseToast.useToastManager;
|
|
9
|
+
/** A manager for adding toasts from outside React (an API client, a store). Pass it to `Provider`'s `toastManager`. */
|
|
10
|
+
export declare const createToastManager: typeof BaseToast.createToastManager;
|
|
11
|
+
export interface ViewportProps extends PartProps<typeof BaseToast.Viewport> {
|
|
12
|
+
/** Where the stack sits. @default 'bottom-end' */
|
|
13
|
+
position?: 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
14
|
+
container?: HTMLElement | null;
|
|
15
|
+
}
|
|
16
|
+
/** The fixed area toasts stack in, and the live region that announces them. For your own toasts; `Toaster` includes one. */
|
|
17
|
+
export declare const Viewport: React.ForwardRefExoticComponent<ViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
/** One toast, for a list you draw yourself: `toast` is an item of `useToastManager().toasts`. */
|
|
19
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToastRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
/** The toast's title: Alert's title type, not a page heading. */
|
|
23
|
+
export declare const Title: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToastTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>, "ref">, "className"> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
26
|
+
/** The toast's text. */
|
|
27
|
+
export declare const Description: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToastDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
|
|
28
|
+
className?: string;
|
|
29
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
30
|
+
/** A button in the toast (Undo, View): a small text button. */
|
|
31
|
+
export declare const Action: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToastActionProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref">, "className"> & {
|
|
32
|
+
className?: string;
|
|
33
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
/** Closes the toast: a small icon button. */
|
|
35
|
+
export declare const Close: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToastCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref">, "className"> & {
|
|
36
|
+
className?: string;
|
|
37
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export interface ToasterProps extends Omit<ViewportProps, 'children'> {
|
|
39
|
+
/** The look of each toast, as on Alert. @default 'outlined' */
|
|
40
|
+
variant?: 'standard' | 'outlined' | 'filled';
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The ready-made stack: every toast in the queue drawn as an Alert, its `type` (`success`, `info`, `warning`, `error`,
|
|
44
|
+
* `loading`) as the severity, with its `actionProps` as a button and a close button.
|
|
45
|
+
*/
|
|
46
|
+
export declare function Toaster(props: ToasterProps): React.JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Toolbar as BaseToolbar } from '@base-ui/react/toolbar';
|
|
3
|
+
import { type ButtonProps as CaligoButtonProps } from '../Button';
|
|
4
|
+
import type { PartProps } from './types';
|
|
5
|
+
import '../Toolbar/Toolbar.css';
|
|
6
|
+
export interface RootProps extends PartProps<typeof BaseToolbar.Root> {
|
|
7
|
+
/** `raised` floats it on a surface with a popover's shadow, for a toolbar over content. @default 'flat' */
|
|
8
|
+
elevation?: 'flat' | 'raised';
|
|
9
|
+
}
|
|
10
|
+
/** The bar. Name it with `aria-label`. */
|
|
11
|
+
export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
/** Controls that belong together, such as the text styles. */
|
|
13
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToolbarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export interface ButtonProps extends Omit<PartProps<typeof BaseToolbar.Button>, 'color'> {
|
|
17
|
+
/** An icon. Alone it makes a square icon button, which needs an `aria-label`; with children, a labelled button. */
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
/** @default 'xsmall' */
|
|
20
|
+
size?: CaligoButtonProps['size'];
|
|
21
|
+
}
|
|
22
|
+
/** A control in the bar: a quiet icon button, or a labelled text button when it has children. */
|
|
23
|
+
declare const ToolbarButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
export { ToolbarButton as Button };
|
|
25
|
+
export interface ToggleProps extends Omit<PartProps<typeof BaseToolbar.Button>, 'color'> {
|
|
26
|
+
icon?: React.ReactNode;
|
|
27
|
+
/** Whether it is on: `pressed` with `onPressedChange`, or `defaultPressed`. */
|
|
28
|
+
pressed?: boolean;
|
|
29
|
+
defaultPressed?: boolean;
|
|
30
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
31
|
+
/** @default 'xsmall' */
|
|
32
|
+
size?: CaligoButtonProps['size'];
|
|
33
|
+
}
|
|
34
|
+
/** A control that stays on (bold, a panel): a quiet icon button that rises to the key level while it is on. */
|
|
35
|
+
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
/** A link in the bar, in the arrow-key order. */
|
|
37
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToolbarLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>, "ref">, "className"> & {
|
|
38
|
+
className?: string;
|
|
39
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
40
|
+
/** A text field in the bar, in the arrow-key order. */
|
|
41
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToolbarInputProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref">, "className"> & {
|
|
42
|
+
className?: string;
|
|
43
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
44
|
+
/** A line between groups: Caligo's vertical `Divider`. */
|
|
45
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@base-ui/react").ToolbarSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
46
|
+
className?: string;
|
|
47
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -20,6 +20,12 @@ export declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<BaseTool
|
|
|
20
20
|
export interface ContentProps extends PartProps<typeof BaseTooltip.Popup>, PlacementProps {
|
|
21
21
|
/** Adds a small arrow that points at the trigger. */
|
|
22
22
|
arrow?: boolean;
|
|
23
|
+
/** Shifts the tooltip along the side it opens on, in px. */
|
|
24
|
+
alignOffset?: number;
|
|
25
|
+
/** How far it keeps from the viewport's edges, in px. @default 5 */
|
|
26
|
+
collisionPadding?: number;
|
|
27
|
+
/** A keyboard shortcut after the text, drawn as keys, as on `Tooltip`. */
|
|
28
|
+
shortcut?: string | readonly string[];
|
|
23
29
|
}
|
|
24
30
|
/** The tooltip's bubble, with the same classes as Caligo's `Tooltip`. */
|
|
25
31
|
export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -23,6 +23,18 @@ export declare const AlertDialog: {
|
|
|
23
23
|
Action: typeof AlertDialogAction;
|
|
24
24
|
};
|
|
25
25
|
export type { RootProps as AlertDialogRootProps, TriggerProps as AlertDialogTriggerProps, ContentProps as AlertDialogContentProps, CloseProps as AlertDialogCloseProps, } from './AlertDialog';
|
|
26
|
+
import { Root as BreadcrumbRoot, List as BreadcrumbList, Item as BreadcrumbItem, Link as BreadcrumbLink, Page as BreadcrumbPage, Separator as BreadcrumbSeparator, Ellipsis as BreadcrumbEllipsis } from './Breadcrumb';
|
|
27
|
+
/** Breadcrumb as parts. */
|
|
28
|
+
export declare const Breadcrumb: {
|
|
29
|
+
Root: typeof BreadcrumbRoot;
|
|
30
|
+
List: typeof BreadcrumbList;
|
|
31
|
+
Item: typeof BreadcrumbItem;
|
|
32
|
+
Link: typeof BreadcrumbLink;
|
|
33
|
+
Page: typeof BreadcrumbPage;
|
|
34
|
+
Separator: typeof BreadcrumbSeparator;
|
|
35
|
+
Ellipsis: typeof BreadcrumbEllipsis;
|
|
36
|
+
};
|
|
37
|
+
export type { RootProps as BreadcrumbRootProps, LinkProps as BreadcrumbLinkProps, } from './Breadcrumb';
|
|
26
38
|
import { Root as CollapsibleRoot, Trigger as CollapsibleTrigger, Content as CollapsibleContent } from './Collapsible';
|
|
27
39
|
/** Collapsible as parts. */
|
|
28
40
|
export declare const Collapsible: {
|
|
@@ -31,18 +43,42 @@ export declare const Collapsible: {
|
|
|
31
43
|
Content: typeof CollapsibleContent;
|
|
32
44
|
};
|
|
33
45
|
export type { RootProps as CollapsibleRootProps, TriggerProps as CollapsibleTriggerProps, ContentProps as CollapsibleContentProps, } from './Collapsible';
|
|
34
|
-
import { Root as
|
|
46
|
+
import { Root as ComboboxRoot, Input as ComboboxInput, Trigger as ComboboxTrigger, Value as ComboboxValue, Content as ComboboxContent, Search as ComboboxSearch, List as ComboboxList, Item as ComboboxItem, Empty as ComboboxEmpty, Group as ComboboxGroup, Label as ComboboxLabel, Separator as ComboboxSeparator } from './Combobox';
|
|
47
|
+
/** Combobox as parts. */
|
|
48
|
+
export declare const Combobox: {
|
|
49
|
+
Root: typeof ComboboxRoot;
|
|
50
|
+
Input: typeof ComboboxInput;
|
|
51
|
+
Trigger: typeof ComboboxTrigger;
|
|
52
|
+
Value: typeof ComboboxValue;
|
|
53
|
+
Content: typeof ComboboxContent;
|
|
54
|
+
Search: typeof ComboboxSearch;
|
|
55
|
+
List: typeof ComboboxList;
|
|
56
|
+
Item: typeof ComboboxItem;
|
|
57
|
+
Empty: typeof ComboboxEmpty;
|
|
58
|
+
Group: typeof ComboboxGroup;
|
|
59
|
+
Label: typeof ComboboxLabel;
|
|
60
|
+
Separator: typeof ComboboxSeparator;
|
|
61
|
+
};
|
|
62
|
+
export type { RootProps as ComboboxRootProps, InputProps as ComboboxInputProps, TriggerProps as ComboboxTriggerProps, ContentProps as ComboboxContentProps, SearchProps as ComboboxSearchProps, ItemProps as ComboboxItemProps, } from './Combobox';
|
|
63
|
+
import { Root as ContextMenuRoot, Trigger as ContextMenuTrigger, Content as ContextMenuContent, Item as ContextMenuItem, CheckboxItem as ContextMenuCheckboxItem, RadioGroup as ContextMenuRadioGroup, RadioItem as ContextMenuRadioItem, LinkItem as ContextMenuLinkItem, Submenu as ContextMenuSubmenu, SubmenuTrigger as ContextMenuSubmenuTrigger, SubmenuContent as ContextMenuSubmenuContent, Group as ContextMenuGroup, Label as ContextMenuLabel, Separator as ContextMenuSeparator } from './ContextMenu';
|
|
35
64
|
/** ContextMenu as parts. */
|
|
36
65
|
export declare const ContextMenu: {
|
|
37
66
|
Root: typeof ContextMenuRoot;
|
|
38
67
|
Trigger: typeof ContextMenuTrigger;
|
|
39
68
|
Content: typeof ContextMenuContent;
|
|
40
69
|
Item: typeof ContextMenuItem;
|
|
70
|
+
CheckboxItem: typeof ContextMenuCheckboxItem;
|
|
71
|
+
RadioGroup: typeof ContextMenuRadioGroup;
|
|
72
|
+
RadioItem: typeof ContextMenuRadioItem;
|
|
73
|
+
LinkItem: typeof ContextMenuLinkItem;
|
|
74
|
+
Submenu: typeof ContextMenuSubmenu;
|
|
75
|
+
SubmenuTrigger: typeof ContextMenuSubmenuTrigger;
|
|
76
|
+
SubmenuContent: typeof ContextMenuSubmenuContent;
|
|
41
77
|
Group: typeof ContextMenuGroup;
|
|
42
78
|
Label: typeof ContextMenuLabel;
|
|
43
79
|
Separator: typeof ContextMenuSeparator;
|
|
44
80
|
};
|
|
45
|
-
export type { RootProps as ContextMenuRootProps, TriggerProps as ContextMenuTriggerProps, ContentProps as ContextMenuContentProps, ItemProps as ContextMenuItemProps, GroupProps as ContextMenuGroupProps, LabelProps as ContextMenuLabelProps, } from './ContextMenu';
|
|
81
|
+
export type { RootProps as ContextMenuRootProps, TriggerProps as ContextMenuTriggerProps, ContentProps as ContextMenuContentProps, ItemProps as ContextMenuItemProps, CheckboxItemProps as ContextMenuCheckboxItemProps, RadioGroupProps as ContextMenuRadioGroupProps, RadioItemProps as ContextMenuRadioItemProps, LinkItemProps as ContextMenuLinkItemProps, SubmenuProps as ContextMenuSubmenuProps, SubmenuTriggerProps as ContextMenuSubmenuTriggerProps, GroupProps as ContextMenuGroupProps, LabelProps as ContextMenuLabelProps, } from './ContextMenu';
|
|
46
82
|
import { Root as DialogRoot, Trigger as DialogTrigger, Content as DialogContent, Header as DialogHeader, Close as DialogClose, Title as DialogTitle, Description as DialogDescription, Body as DialogBody, Footer as DialogFooter } from './Dialog';
|
|
47
83
|
/** Dialog as parts. */
|
|
48
84
|
export declare const Dialog: {
|
|
@@ -71,7 +107,7 @@ export declare const Drawer: {
|
|
|
71
107
|
Close: typeof DrawerClose;
|
|
72
108
|
};
|
|
73
109
|
export type { RootProps as DrawerRootProps, TriggerProps as DrawerTriggerProps, ContentProps as DrawerContentProps, CloseProps as DrawerCloseProps, } from './Drawer';
|
|
74
|
-
import { Root as MenuRoot, Trigger as MenuTrigger, Content as MenuContent, Item as MenuItem, Group as MenuGroup, Label as MenuLabel, Separator as MenuSeparator } from './Menu';
|
|
110
|
+
import { Root as MenuRoot, Trigger as MenuTrigger, Content as MenuContent, Item as MenuItem, Group as MenuGroup, Label as MenuLabel, CheckboxItem as MenuCheckboxItem, RadioGroup as MenuRadioGroup, RadioItem as MenuRadioItem, LinkItem as MenuLinkItem, Submenu as MenuSubmenu, SubmenuTrigger as MenuSubmenuTrigger, SubmenuContent as MenuSubmenuContent, Separator as MenuSeparator } from './Menu';
|
|
75
111
|
/** Menu as parts. */
|
|
76
112
|
export declare const Menu: {
|
|
77
113
|
Root: typeof MenuRoot;
|
|
@@ -80,9 +116,16 @@ export declare const Menu: {
|
|
|
80
116
|
Item: typeof MenuItem;
|
|
81
117
|
Group: typeof MenuGroup;
|
|
82
118
|
Label: typeof MenuLabel;
|
|
119
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
120
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
121
|
+
RadioItem: typeof MenuRadioItem;
|
|
122
|
+
LinkItem: typeof MenuLinkItem;
|
|
123
|
+
Submenu: typeof MenuSubmenu;
|
|
124
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
125
|
+
SubmenuContent: typeof MenuSubmenuContent;
|
|
83
126
|
Separator: typeof MenuSeparator;
|
|
84
127
|
};
|
|
85
|
-
export type { RootProps as MenuRootProps, TriggerProps as MenuTriggerProps, ContentProps as MenuContentProps, ItemProps as MenuItemProps, GroupProps as MenuGroupProps, LabelProps as MenuLabelProps, } from './Menu';
|
|
128
|
+
export type { RootProps as MenuRootProps, TriggerProps as MenuTriggerProps, ContentProps as MenuContentProps, ItemProps as MenuItemProps, GroupProps as MenuGroupProps, LabelProps as MenuLabelProps, CheckboxItemProps as MenuCheckboxItemProps, RadioGroupProps as MenuRadioGroupProps, RadioItemProps as MenuRadioItemProps, LinkItemProps as MenuLinkItemProps, SubmenuProps as MenuSubmenuProps, SubmenuTriggerProps as MenuSubmenuTriggerProps, } from './Menu';
|
|
86
129
|
import { Root as PopoverRoot, Trigger as PopoverTrigger, Content as PopoverContent, Title as PopoverTitle, Description as PopoverDescription, Close as PopoverClose } from './Popover';
|
|
87
130
|
/** Popover as parts. */
|
|
88
131
|
export declare const Popover: {
|
|
@@ -102,6 +145,20 @@ export declare const PreviewCard: {
|
|
|
102
145
|
Content: typeof PreviewCardContent;
|
|
103
146
|
};
|
|
104
147
|
export type { RootProps as PreviewCardRootProps, TriggerProps as PreviewCardTriggerProps, ContentProps as PreviewCardContentProps, } from './PreviewCard';
|
|
148
|
+
import { Root as SelectRoot, Trigger as SelectTrigger, Value as SelectValue, Icon as SelectIcon, Content as SelectContent, Item as SelectItem, Group as SelectGroup, Label as SelectLabel, Separator as SelectSeparator } from './Select';
|
|
149
|
+
/** Select as parts. */
|
|
150
|
+
export declare const Select: {
|
|
151
|
+
Root: typeof SelectRoot;
|
|
152
|
+
Trigger: typeof SelectTrigger;
|
|
153
|
+
Value: typeof SelectValue;
|
|
154
|
+
Icon: typeof SelectIcon;
|
|
155
|
+
Content: typeof SelectContent;
|
|
156
|
+
Item: typeof SelectItem;
|
|
157
|
+
Group: typeof SelectGroup;
|
|
158
|
+
Label: typeof SelectLabel;
|
|
159
|
+
Separator: typeof SelectSeparator;
|
|
160
|
+
};
|
|
161
|
+
export type { RootProps as SelectRootProps, TriggerProps as SelectTriggerProps, ValueProps as SelectValueProps, ContentProps as SelectContentProps, ItemProps as SelectItemProps, GroupProps as SelectGroupProps, } from './Select';
|
|
105
162
|
import { Root as TabsRoot, List as TabsList, Trigger as TabsTrigger, Content as TabsContent } from './Tabs';
|
|
106
163
|
/** Tabs as parts. */
|
|
107
164
|
export declare const Tabs: {
|
|
@@ -111,6 +168,33 @@ export declare const Tabs: {
|
|
|
111
168
|
Content: typeof TabsContent;
|
|
112
169
|
};
|
|
113
170
|
export type { RootProps as TabsRootProps, ListProps as TabsListProps, TriggerProps as TabsTriggerProps, ContentProps as TabsContentProps, } from './Tabs';
|
|
171
|
+
import { Provider as ToastProvider, useToastManager as ToastuseToastManager, createToastManager as ToastcreateToastManager, Viewport as ToastViewport, Root as ToastRoot, Title as ToastTitle, Description as ToastDescription, Action as ToastAction, Close as ToastClose, Toaster as ToastToaster } from './Toast';
|
|
172
|
+
/** Toast as parts. */
|
|
173
|
+
export declare const Toast: {
|
|
174
|
+
Provider: typeof ToastProvider;
|
|
175
|
+
useToastManager: typeof ToastuseToastManager;
|
|
176
|
+
createToastManager: typeof ToastcreateToastManager;
|
|
177
|
+
Viewport: typeof ToastViewport;
|
|
178
|
+
Root: typeof ToastRoot;
|
|
179
|
+
Title: typeof ToastTitle;
|
|
180
|
+
Description: typeof ToastDescription;
|
|
181
|
+
Action: typeof ToastAction;
|
|
182
|
+
Close: typeof ToastClose;
|
|
183
|
+
Toaster: typeof ToastToaster;
|
|
184
|
+
};
|
|
185
|
+
export type { ViewportProps as ToastViewportProps, ToasterProps as ToastToasterProps, } from './Toast';
|
|
186
|
+
import { Root as ToolbarRoot, Group as ToolbarGroup, Toggle as ToolbarToggle, Link as ToolbarLink, Input as ToolbarInput, Separator as ToolbarSeparator, Button as ToolbarButton } from './Toolbar';
|
|
187
|
+
/** Toolbar as parts. */
|
|
188
|
+
export declare const Toolbar: {
|
|
189
|
+
Root: typeof ToolbarRoot;
|
|
190
|
+
Group: typeof ToolbarGroup;
|
|
191
|
+
Toggle: typeof ToolbarToggle;
|
|
192
|
+
Link: typeof ToolbarLink;
|
|
193
|
+
Input: typeof ToolbarInput;
|
|
194
|
+
Separator: typeof ToolbarSeparator;
|
|
195
|
+
Button: typeof ToolbarButton;
|
|
196
|
+
};
|
|
197
|
+
export type { RootProps as ToolbarRootProps, ButtonProps as ToolbarButtonProps, ToggleProps as ToolbarToggleProps, } from './Toolbar';
|
|
114
198
|
import { Provider as TooltipProvider, Root as TooltipRoot, Trigger as TooltipTrigger, Content as TooltipContent } from './Tooltip';
|
|
115
199
|
/** Tooltip as parts. */
|
|
116
200
|
export declare const Tooltip: {
|
|
@@ -127,6 +211,13 @@ export declare const DropdownMenu: {
|
|
|
127
211
|
Item: typeof MenuItem;
|
|
128
212
|
Group: typeof MenuGroup;
|
|
129
213
|
Label: typeof MenuLabel;
|
|
214
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
215
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
216
|
+
RadioItem: typeof MenuRadioItem;
|
|
217
|
+
LinkItem: typeof MenuLinkItem;
|
|
218
|
+
Submenu: typeof MenuSubmenu;
|
|
219
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
220
|
+
SubmenuContent: typeof MenuSubmenuContent;
|
|
130
221
|
Separator: typeof MenuSeparator;
|
|
131
222
|
};
|
|
132
223
|
export declare const HoverCard: {
|