@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
|
@@ -9,6 +9,8 @@ export interface AlertClasses {
|
|
|
9
9
|
colorInfo: string;
|
|
10
10
|
colorWarning: string;
|
|
11
11
|
colorError: string;
|
|
12
|
+
colorNeutral: string;
|
|
13
|
+
colorPrimary: string;
|
|
12
14
|
sizeSmall: string;
|
|
13
15
|
sizeMedium: string;
|
|
14
16
|
sizeLarge: string;
|
|
@@ -27,8 +29,11 @@ export interface AlertOwnProps {
|
|
|
27
29
|
classes?: Partial<AlertClasses>;
|
|
28
30
|
/** Text of the close button. @default 'Close' */
|
|
29
31
|
closeText?: string;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Overrides the color that `severity` sets. Caligo extras: `neutral`, a grey note with no status, and `primary`,
|
|
34
|
+
* the theme's accent, for an announcement. The icon and role still follow `severity`.
|
|
35
|
+
*/
|
|
36
|
+
color?: Severity | 'neutral' | 'primary';
|
|
32
37
|
/** Your own icon, or `false` for none. */
|
|
33
38
|
icon?: React.ReactNode | false;
|
|
34
39
|
/** Icons per severity. */
|
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { type CaligoHue } from '../internal/hues';
|
|
2
3
|
import './Avatar.css';
|
|
4
|
+
/** The label palette Avatar and Chip share, and the stable hue for a name (as `hue="auto"` picks it). */
|
|
5
|
+
export { HUES, hueFor } from '../internal/hues';
|
|
6
|
+
export type { CaligoHue } from '../internal/hues';
|
|
3
7
|
export interface AvatarClasses {
|
|
4
8
|
root: string;
|
|
5
9
|
circular: string;
|
|
6
10
|
rounded: string;
|
|
7
11
|
square: string;
|
|
8
12
|
colorDefault: string;
|
|
13
|
+
colorPrimary: string;
|
|
14
|
+
colorNeutral: string;
|
|
15
|
+
colorSuccess: string;
|
|
16
|
+
colorWarning: string;
|
|
17
|
+
colorError: string;
|
|
18
|
+
colorInfo: string;
|
|
19
|
+
/** Set when `hue` is. */
|
|
20
|
+
hued: string;
|
|
21
|
+
hueRed: string;
|
|
22
|
+
hueOrange: string;
|
|
23
|
+
hueAmber: string;
|
|
24
|
+
hueYellow: string;
|
|
25
|
+
hueGreen: string;
|
|
26
|
+
hueEmerald: string;
|
|
27
|
+
hueTeal: string;
|
|
28
|
+
hueCyan: string;
|
|
29
|
+
hueBlue: string;
|
|
30
|
+
hueIndigo: string;
|
|
31
|
+
huePurple: string;
|
|
32
|
+
huePink: string;
|
|
9
33
|
img: string;
|
|
10
34
|
fallback: string;
|
|
11
35
|
sizeXsmall: string;
|
|
@@ -18,20 +42,31 @@ export type AvatarClassKey = keyof AvatarClasses;
|
|
|
18
42
|
export declare function getAvatarUtilityClass(slot: string): string;
|
|
19
43
|
export declare const avatarClasses: AvatarClasses;
|
|
20
44
|
export interface AvatarOwnProps {
|
|
21
|
-
/** The image's alt text, and the
|
|
45
|
+
/** The image's alt text, and the initials when it fails or there is none: the first letters of the first and last words ("Ada Lovelace" shows AL). */
|
|
22
46
|
alt?: string;
|
|
23
47
|
/** Initials or an icon, shown without an image. */
|
|
24
48
|
children?: React.ReactNode;
|
|
25
49
|
classes?: Partial<AvatarClasses>;
|
|
50
|
+
/**
|
|
51
|
+
* Caligo extra: the tint behind initials or an icon, from the theme's soft colours, so a list of people or
|
|
52
|
+
* workspaces can be told apart at a glance. Ignored while an image shows. @default 'default'
|
|
53
|
+
*/
|
|
54
|
+
color?: 'default' | 'primary' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
26
55
|
/** @default 'div' */
|
|
27
56
|
component?: React.ElementType;
|
|
57
|
+
/**
|
|
58
|
+
* Caligo extra: a hue from the label palette behind initials or an icon (`red` to `pink`, as on Chip), or `auto`
|
|
59
|
+
* for a stable hue picked from `alt`, so the same name always gets the same colour. Takes the place of `color`.
|
|
60
|
+
* Ignored while an image shows.
|
|
61
|
+
*/
|
|
62
|
+
hue?: CaligoHue | 'auto';
|
|
28
63
|
/** Caligo extra: sizes from the theme. @default 'medium' */
|
|
29
64
|
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
30
65
|
/** Props for each part. */
|
|
31
66
|
slotProps?: {
|
|
32
67
|
img?: React.ImgHTMLAttributes<HTMLImageElement>;
|
|
33
68
|
};
|
|
34
|
-
/** The image URL. If it fails to load, the avatar falls back to `children`, then the
|
|
69
|
+
/** The image URL. If it fails to load, the avatar falls back to `children`, then the initials of `alt`, then a person icon. */
|
|
35
70
|
src?: string;
|
|
36
71
|
/** Responsive image sources, passed to the `img`'s `srcset`. Works alone or with `src`. */
|
|
37
72
|
srcSet?: string;
|
|
@@ -41,6 +76,6 @@ export interface AvatarOwnProps {
|
|
|
41
76
|
export type AvatarProps = AvatarOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarOwnProps>;
|
|
42
77
|
/**
|
|
43
78
|
* A picture, initials or icon for a person. Follows Material UI's `Avatar` API: if the image fails,
|
|
44
|
-
* it falls back to the children, then the
|
|
79
|
+
* it falls back to the children, then the initials of `alt`, then a person icon.
|
|
45
80
|
*/
|
|
46
81
|
export declare const Avatar: React.ForwardRefExoticComponent<AvatarOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, keyof AvatarOwnProps> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -40,6 +40,12 @@ export interface ButtonOwnProps {
|
|
|
40
40
|
loadingIndicator?: React.ReactNode;
|
|
41
41
|
/** Where the spinner shows while `loading`: in place of `startIcon`, in place of `endIcon`, or over the label. @default 'center' */
|
|
42
42
|
loadingPosition?: 'start' | 'end' | 'center';
|
|
43
|
+
/**
|
|
44
|
+
* Whether the rendered element is a native `<button>`. Inferred from `component` (a native button only when
|
|
45
|
+
* there is none); set it when `component` itself renders a `<button>`, such as a dialog's close part or a
|
|
46
|
+
* trigger, so Base UI keeps native semantics instead of adding `role="button"`.
|
|
47
|
+
*/
|
|
48
|
+
nativeButton?: boolean;
|
|
43
49
|
/**
|
|
44
50
|
* Material UI's sizes, plus Caligo's `xsmall`.
|
|
45
51
|
* Heights: xsmall 28px, small 32px, medium 40px, large 48px.
|
|
@@ -49,10 +55,11 @@ export interface ButtonOwnProps {
|
|
|
49
55
|
/** Shown before the label. Pass a node, such as `<Icon name="plus" />`. */
|
|
50
56
|
startIcon?: React.ReactNode;
|
|
51
57
|
/**
|
|
52
|
-
* Material UI's variants, plus Caligo's `gradient` and `
|
|
58
|
+
* Material UI's variants, plus Caligo's `gradient`, `link` and `pill`. `pill` is an outlined pill that fills on
|
|
59
|
+
* hover, with `endIcon` in a filled disc that leans forward: for links that take you somewhere.
|
|
53
60
|
* @default 'text'
|
|
54
61
|
*/
|
|
55
|
-
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained' | 'gradient' | 'link', ButtonPropsVariantOverrides>;
|
|
62
|
+
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained' | 'gradient' | 'link' | 'pill', ButtonPropsVariantOverrides>;
|
|
56
63
|
}
|
|
57
64
|
export type ButtonProps = ButtonOwnProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonOwnProps | 'color'> & {
|
|
58
65
|
/** Passed to the root when `component` or `href` renders a link. */
|
|
@@ -8,6 +8,8 @@ export interface ButtonClasses {
|
|
|
8
8
|
gradient: string;
|
|
9
9
|
/** Caligo extra variant. */
|
|
10
10
|
link: string;
|
|
11
|
+
/** Caligo extra variant: an outlined pill with the end icon in a disc. */
|
|
12
|
+
pill: string;
|
|
11
13
|
colorInherit: string;
|
|
12
14
|
colorPrimary: string;
|
|
13
15
|
colorSecondary: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { OverridableStringUnion } from '../internal/types';
|
|
3
|
+
import type { CaligoHue } from '../internal/hues';
|
|
3
4
|
import './Chip.css';
|
|
4
5
|
export interface ChipClasses {
|
|
5
6
|
root: string;
|
|
@@ -14,6 +15,20 @@ export interface ChipClasses {
|
|
|
14
15
|
colorSuccess: string;
|
|
15
16
|
colorWarning: string;
|
|
16
17
|
colorInfo: string;
|
|
18
|
+
/** Set when `hue` is. */
|
|
19
|
+
hued: string;
|
|
20
|
+
hueRed: string;
|
|
21
|
+
hueOrange: string;
|
|
22
|
+
hueAmber: string;
|
|
23
|
+
hueYellow: string;
|
|
24
|
+
hueGreen: string;
|
|
25
|
+
hueEmerald: string;
|
|
26
|
+
hueTeal: string;
|
|
27
|
+
hueCyan: string;
|
|
28
|
+
hueBlue: string;
|
|
29
|
+
hueIndigo: string;
|
|
30
|
+
huePurple: string;
|
|
31
|
+
huePink: string;
|
|
17
32
|
sizeSmall: string;
|
|
18
33
|
sizeMedium: string;
|
|
19
34
|
sizeLarge: string;
|
|
@@ -47,6 +62,12 @@ export interface ChipOwnProps {
|
|
|
47
62
|
color?: OverridableStringUnion<'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', ChipPropsColorOverrides>;
|
|
48
63
|
/** The root element. Defaults to `div`, or a button when clickable. */
|
|
49
64
|
component?: React.ElementType;
|
|
65
|
+
/**
|
|
66
|
+
* Caligo extra: a hue from the label palette (`red`, `orange`, `amber`, `yellow`, `green`, `emerald`, `teal`,
|
|
67
|
+
* `cyan`, `blue`, `indigo`, `purple`, `pink`), for labels that need telling apart rather than a meaning. Takes
|
|
68
|
+
* the place of `color` in every variant.
|
|
69
|
+
*/
|
|
70
|
+
hue?: CaligoHue;
|
|
50
71
|
/** Replaces the delete icon. */
|
|
51
72
|
deleteIcon?: React.ReactElement;
|
|
52
73
|
/** Caligo extra: the delete button's accessible name, for translation. @default 'Delete' */
|
|
@@ -32,6 +32,7 @@ export interface DialogOwnProps {
|
|
|
32
32
|
keepMounted?: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Material UI's widths: xs 444px, sm 600px, md 900px, lg 1200px, xl 1536px. `false` removes the limit.
|
|
35
|
+
* Each is a token (`--cal-dialog-width-xs` to `--cal-dialog-width-xl`), so an app can change the ladder.
|
|
35
36
|
* @default 'sm'
|
|
36
37
|
*/
|
|
37
38
|
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
|
|
@@ -34,6 +34,12 @@ export interface IconButtonOwnProps {
|
|
|
34
34
|
color?: OverridableStringUnion<'default' | 'inherit' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning', IconButtonPropsColorOverrides>;
|
|
35
35
|
/** Pulls the button out by its padding to line up with the edge of its container. */
|
|
36
36
|
edge?: 'start' | 'end' | false;
|
|
37
|
+
/**
|
|
38
|
+
* Caligo extra: a toggle that is on (a favourite star, a filter, a panel toggle). Sets `aria-pressed` and the
|
|
39
|
+
* `Caligo-selected` class, and a quiet icon button rises to the raised key look while it is on.
|
|
40
|
+
* Leave it out for a plain button: `false` still marks the button as a toggle (`aria-pressed="false"`).
|
|
41
|
+
*/
|
|
42
|
+
selected?: boolean;
|
|
37
43
|
/** Caligo extra. @default 'rounded' */
|
|
38
44
|
shape?: 'rounded' | 'circular';
|
|
39
45
|
/**
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import '../TextField/TextField.css';
|
|
3
|
+
export interface InputBaseClasses {
|
|
4
|
+
root: string;
|
|
5
|
+
input: string;
|
|
6
|
+
}
|
|
7
|
+
export type InputBaseClassKey = keyof InputBaseClasses;
|
|
8
|
+
export declare function getInputBaseUtilityClass(slot: string): string;
|
|
9
|
+
export declare const inputBaseClasses: InputBaseClasses;
|
|
10
|
+
export interface InputBaseOwnProps {
|
|
11
|
+
/** Your own content in place of the built-in input: icons, chips, a bare `<input>`, a clear button. */
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
classes?: Partial<InputBaseClasses>;
|
|
14
|
+
/**
|
|
15
|
+
* The box's element. A `button` makes the whole box one control, such as the trigger of a picker you build
|
|
16
|
+
* yourself. @default 'div'
|
|
17
|
+
*/
|
|
18
|
+
component?: React.ElementType;
|
|
19
|
+
/** Before the input, inside the box: usually an InputAdornment. */
|
|
20
|
+
startAdornment?: React.ReactNode;
|
|
21
|
+
/** After the input, inside the box. */
|
|
22
|
+
endAdornment?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* The box's look, as on TextField, or Caligo's `ghost`: no edge or fill until hover, for a property row of pickers
|
|
25
|
+
* (assignee, priority, due date) that reads as text until you point at it. @default 'outlined'
|
|
26
|
+
*/
|
|
27
|
+
variant?: 'outlined' | 'filled' | 'standard' | 'ghost';
|
|
28
|
+
/** The box's height, as on TextField. @default 'medium' */
|
|
29
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
30
|
+
/** Takes the width of its container. */
|
|
31
|
+
fullWidth?: boolean;
|
|
32
|
+
/** Draws the box in the error colour and sets `aria-invalid` on the input. */
|
|
33
|
+
error?: boolean;
|
|
34
|
+
/** Greys the box and disables the input. */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Props for the built-in input. */
|
|
37
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
38
|
+
/** A ref to the built-in input. */
|
|
39
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
40
|
+
/** The built-in input's value, as on an `<input>`. */
|
|
41
|
+
value?: string | number;
|
|
42
|
+
/** The built-in input's starting value. */
|
|
43
|
+
defaultValue?: string | number;
|
|
44
|
+
/** Called when the built-in input's value changes. */
|
|
45
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
46
|
+
/** The built-in input's placeholder. */
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
/** The built-in input's type. @default 'text' */
|
|
49
|
+
type?: string;
|
|
50
|
+
/** The built-in input's name. */
|
|
51
|
+
name?: string;
|
|
52
|
+
/** Makes the built-in input read-only. */
|
|
53
|
+
readOnly?: boolean;
|
|
54
|
+
/** Marks the built-in input as required. */
|
|
55
|
+
required?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export type InputBaseProps = InputBaseOwnProps & Omit<React.HTMLAttributes<HTMLElement>, keyof InputBaseOwnProps | 'onChange'>;
|
|
58
|
+
/**
|
|
59
|
+
* A field's box on its own, as Material UI's `InputBase`: Caligo's field look (variant, size, focus, error,
|
|
60
|
+
* disabled) around a bare input, adornments, or your own children. TextField is this box with a label and helper
|
|
61
|
+
* text; use InputBase to build a field TextField doesn't cover, such as a search box with chips or a picker trigger.
|
|
62
|
+
* Focus shows when anything inside it has focus. Give the input a name with `inputProps['aria-label']` or a label.
|
|
63
|
+
*/
|
|
64
|
+
export declare const InputBase: React.ForwardRefExoticComponent<InputBaseOwnProps & Omit<React.HTMLAttributes<HTMLElement>, keyof InputBaseOwnProps> & React.RefAttributes<HTMLElement>>;
|
|
@@ -19,7 +19,7 @@ export interface RadioClasses {
|
|
|
19
19
|
sizeSmall: string;
|
|
20
20
|
sizeMedium: string;
|
|
21
21
|
sizeLarge: string;
|
|
22
|
-
/**
|
|
22
|
+
/** Kept for Material UI compatibility: the hidden input is Base UI's and takes no class. */
|
|
23
23
|
input: string;
|
|
24
24
|
/** The drawn circle. */
|
|
25
25
|
icon: string;
|
|
@@ -67,7 +67,9 @@ export interface RadioOwnProps {
|
|
|
67
67
|
}
|
|
68
68
|
export type RadioProps = RadioOwnProps & Omit<React.HTMLAttributes<HTMLSpanElement>, keyof RadioOwnProps | 'color' | 'defaultValue'>;
|
|
69
69
|
/**
|
|
70
|
-
* A radio button. Follows Material UI's `Radio` API
|
|
71
|
-
*
|
|
70
|
+
* A radio button. Follows Material UI's `Radio` API and uses Base UI's `Radio` for behavior, as Checkbox and Switch
|
|
71
|
+
* do: the root is the control (`role="radio"`), with a hidden input for forms. Inside a RadioGroup the group holds
|
|
72
|
+
* the value; on its own it is a group of one. `onChange(event, checked)` gets an event whose `target` is the hidden
|
|
73
|
+
* input. Label it with FormControlLabel, or `aria-label` through `slotProps.input`.
|
|
72
74
|
*/
|
|
73
75
|
export declare const Radio: React.ForwardRefExoticComponent<RadioOwnProps & Omit<React.HTMLAttributes<HTMLSpanElement>, "defaultValue" | keyof RadioOwnProps> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -16,7 +16,9 @@ export interface RadioGroupOwnProps {
|
|
|
16
16
|
}
|
|
17
17
|
export type RadioGroupProps = RadioGroupOwnProps & Omit<FormGroupProps, keyof RadioGroupOwnProps>;
|
|
18
18
|
/**
|
|
19
|
-
* A set of Radios with one value. Follows Material UI's `RadioGroup` API
|
|
20
|
-
* `role="radiogroup"
|
|
19
|
+
* A set of Radios with one value. Follows Material UI's `RadioGroup` API and uses Base UI's `RadioGroup` for behavior,
|
|
20
|
+
* as Checkbox and Switch use Base UI: a FormGroup with `role="radiogroup"`, arrow keys move between options, and the
|
|
21
|
+
* chosen value goes with the form under `name`. `onChange(event, value)` gets an event whose `target` is the chosen
|
|
22
|
+
* radio's hidden input.
|
|
21
23
|
*/
|
|
22
24
|
export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupOwnProps & Omit<FormGroupProps, keyof RadioGroupOwnProps> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface RadioGroupContextValue {
|
|
3
3
|
name: string;
|
|
4
|
-
value
|
|
5
|
-
|
|
4
|
+
/** The chosen value, as text. */
|
|
5
|
+
value: string | null;
|
|
6
|
+
/** Each Radio's hidden input, by value, so the group's onChange can hand over the chosen one as `event.target`. */
|
|
7
|
+
inputs: Map<string, HTMLInputElement>;
|
|
8
|
+
/** Each Radio's own onChange, by value: the group calls the chosen one's, by click or by arrow key. */
|
|
9
|
+
handlers: Map<string, (event: Event | undefined) => void>;
|
|
6
10
|
}
|
|
7
11
|
/** Shared by RadioGroup and Radio, as Material UI's RadioGroupContext is. */
|
|
8
12
|
export declare const RadioGroupContext: React.Context<RadioGroupContextValue | undefined>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './ScrollArea.css';
|
|
3
|
+
export interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Which way it scrolls. @default 'vertical' */
|
|
5
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
6
|
+
/** @deprecated Use `orientation`. */
|
|
7
|
+
direction?: 'vertical' | 'horizontal' | 'both';
|
|
8
|
+
/** Box height. Any CSS length. */
|
|
9
|
+
height?: number | string;
|
|
10
|
+
/** Box width. Any CSS length. */
|
|
11
|
+
width?: number | string;
|
|
12
|
+
/**
|
|
13
|
+
* `outlined` is a bordered box; `plain` has no border or corners, for a pane that scrolls inside a layout (a
|
|
14
|
+
* sidebar, a settings page). @default 'outlined'
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'outlined' | 'plain';
|
|
17
|
+
/** Fills its parent's height (and shrinks inside a flex column), for a pane in a fixed-height layout. */
|
|
18
|
+
fill?: boolean;
|
|
19
|
+
/** `small` is a thin scrollbar; `medium` the platform's. @default 'small' */
|
|
20
|
+
scrollbarSize?: 'small' | 'medium';
|
|
21
|
+
/** `auto` shows the scrollbar when there's more to see; `hover` only while the pointer is over the area; `always` keeps the track. @default 'auto' */
|
|
22
|
+
scrollbarVisibility?: 'auto' | 'hover' | 'always';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A box that scrolls with Caligo's thin scrollbar. Caligo's own component. It's focusable, so
|
|
26
|
+
* keyboard users can scroll it; give it an `aria-label` that names the content.
|
|
27
|
+
*/
|
|
28
|
+
export declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -21,7 +21,7 @@ export interface SwitchClasses {
|
|
|
21
21
|
sizeSmall: string;
|
|
22
22
|
sizeMedium: string;
|
|
23
23
|
sizeLarge: string;
|
|
24
|
-
/**
|
|
24
|
+
/** Kept for Material UI compatibility: the hidden input is Base UI's and takes no class. */
|
|
25
25
|
input: string;
|
|
26
26
|
track: string;
|
|
27
27
|
thumb: string;
|
|
@@ -68,7 +68,8 @@ export interface SwitchOwnProps {
|
|
|
68
68
|
}
|
|
69
69
|
export type SwitchProps = SwitchOwnProps & Omit<React.HTMLAttributes<HTMLSpanElement>, keyof SwitchOwnProps | 'color' | 'defaultValue'>;
|
|
70
70
|
/**
|
|
71
|
-
* An on/off switch. Follows Material UI's `Switch` API
|
|
72
|
-
* `role="switch"`
|
|
71
|
+
* An on/off switch. Follows Material UI's `Switch` API and uses Base UI's `Switch` for behavior, as Checkbox and Radio
|
|
72
|
+
* do: the root is the control (`role="switch"`), with a hidden input for forms. `onChange(event, checked)` gets an
|
|
73
|
+
* event whose `target` is that input. Name it through `slotProps.input` (`aria-label`) or a FormControlLabel.
|
|
73
74
|
*/
|
|
74
75
|
export declare const Switch: React.ForwardRefExoticComponent<SwitchOwnProps & Omit<React.HTMLAttributes<HTMLSpanElement>, "defaultValue" | keyof SwitchOwnProps> & React.RefAttributes<HTMLSpanElement>>;
|
package/dist/types/Tab/Tab.d.ts
CHANGED
|
@@ -15,7 +15,14 @@ export declare function getTabUtilityClass(slot: string): string;
|
|
|
15
15
|
export declare const tabClasses: TabClasses;
|
|
16
16
|
export interface TabOwnProps {
|
|
17
17
|
classes?: Partial<TabClasses>;
|
|
18
|
+
/**
|
|
19
|
+
* The root element: a `button` by default, or `a` with `href`, or your router's Link, for tabs that go to pages.
|
|
20
|
+
* A link tab keeps `role="tab"` and `aria-selected`, as Material UI's does.
|
|
21
|
+
*/
|
|
22
|
+
component?: React.ElementType;
|
|
18
23
|
disabled?: boolean;
|
|
24
|
+
/** Makes the tab a link (an `<a>` unless `component` says otherwise). */
|
|
25
|
+
href?: string;
|
|
19
26
|
/** An icon element shown with the label, such as `<Icon name="inbox" />`. Alone, it makes an icon-only tab: give it an `aria-label`. */
|
|
20
27
|
icon?: React.ReactElement;
|
|
21
28
|
/** Where `icon` sits relative to `label`. Only applies when both are set. @default 'top' */
|
|
@@ -9,6 +9,12 @@ export interface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCel
|
|
|
9
9
|
padding?: 'normal' | 'checkbox' | 'none';
|
|
10
10
|
/** `small` gives tighter padding and smaller text. Leave out to use the Table's `size`. */
|
|
11
11
|
size?: 'small' | 'medium';
|
|
12
|
+
/**
|
|
13
|
+
* Caligo extra: keeps the cell in place while the table scrolls sideways, at the `start` or `end` edge, as a pinned
|
|
14
|
+
* first or last column. Pin the same column's head and body cells; with several pinned, set each one's
|
|
15
|
+
* `style.insetInlineStart` (or End) to the widths before it.
|
|
16
|
+
*/
|
|
17
|
+
pinned?: 'start' | 'end';
|
|
12
18
|
/** Sets aria-sort on a header cell. */
|
|
13
19
|
sortDirection?: 'asc' | 'desc' | false;
|
|
14
20
|
/** `head` inside TableHead, `footer` inside TableFooter, otherwise `body`. */
|
|
@@ -45,6 +45,17 @@ export interface TextFieldOwnProps {
|
|
|
45
45
|
fullWidth?: boolean;
|
|
46
46
|
/** Text under the field. Turns red with `error`. */
|
|
47
47
|
helperText?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Caligo extra: a line under the label that says what the field is for, read with the field (`aria-describedby`).
|
|
50
|
+
* `helperText` is for hints and errors under the box. Not with `select`.
|
|
51
|
+
*/
|
|
52
|
+
description?: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Caligo extra: `horizontal` puts the label (and description) beside the box, in a column
|
|
55
|
+
* `--cal-field-label-width` wide (a third of the field), as in a settings form; on a narrow screen it stacks.
|
|
56
|
+
* Not with `select`. @default 'vertical'
|
|
57
|
+
*/
|
|
58
|
+
orientation?: 'vertical' | 'horizontal';
|
|
48
59
|
/** The input's id. Generated when left out, so the label and helper text can point at it. */
|
|
49
60
|
id?: string;
|
|
50
61
|
/** Ref to the `<input>` or `<textarea>` element. */
|
|
@@ -15,6 +15,10 @@ export interface TextFieldClasses {
|
|
|
15
15
|
sizeLarge: string;
|
|
16
16
|
fullWidth: string;
|
|
17
17
|
multiline: string;
|
|
18
|
+
/** Set when `orientation` is `horizontal`. */
|
|
19
|
+
horizontal: string;
|
|
20
|
+
/** The description under the label. */
|
|
21
|
+
description: string;
|
|
18
22
|
/** The label above the field. */
|
|
19
23
|
label: string;
|
|
20
24
|
/** The box around the input and adornments. */
|
|
@@ -16,6 +16,26 @@ export interface TooltipOwnProps {
|
|
|
16
16
|
arrow?: boolean;
|
|
17
17
|
/** One element that can hold a ref, such as a Button. The tooltip describes it. */
|
|
18
18
|
children: React.ReactElement;
|
|
19
|
+
/** Caligo extra: the gap between the element and the tooltip, in px. @default 8, or 10 with `arrow` */
|
|
20
|
+
sideOffset?: number;
|
|
21
|
+
/** Caligo extra: shifts the tooltip along the side it opens on, in px. */
|
|
22
|
+
alignOffset?: number;
|
|
23
|
+
/** Caligo extra: how far the tooltip keeps from the viewport's edges when it flips or shifts, in px. @default 5 */
|
|
24
|
+
collisionPadding?: number;
|
|
25
|
+
/** Caligo extra: the tooltip never opens; the child renders on its own. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** The tooltip follows the pointer, as in Material UI. */
|
|
28
|
+
followCursor?: boolean;
|
|
29
|
+
/** Caligo extra: called with Base UI's details (the event and why it opened or closed) when the tooltip opens or closes. */
|
|
30
|
+
onOpenChange?: (open: boolean, details: {
|
|
31
|
+
event: Event;
|
|
32
|
+
reason: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Caligo extra: a keyboard shortcut after the title, drawn as keys. A string is split on `+` and spaces
|
|
36
|
+
* ("⌘+K", "G I"); an array gives the keys one by one.
|
|
37
|
+
*/
|
|
38
|
+
shortcut?: string | readonly string[];
|
|
19
39
|
/** Extra class names per slot or state. Keys match `tooltipClasses`. */
|
|
20
40
|
classes?: Partial<TooltipClasses>;
|
|
21
41
|
/** Where the tooltip is mounted. Defaults to `document.body`. */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './Grid';
|
|
|
39
39
|
export * from './Icon';
|
|
40
40
|
export * from './IconButton';
|
|
41
41
|
export * from './InputAdornment';
|
|
42
|
+
export * from './InputBase';
|
|
42
43
|
export * from './InputGroup';
|
|
43
44
|
export * from './Label';
|
|
44
45
|
export * from './LicenseInfo';
|
|
@@ -63,6 +64,7 @@ export * from './PreviewCard';
|
|
|
63
64
|
export * from './Progress';
|
|
64
65
|
export * from './Radio';
|
|
65
66
|
export * from './RadioGroup';
|
|
67
|
+
export * from './ScrollArea';
|
|
66
68
|
export * from './Select';
|
|
67
69
|
export * from './Separator';
|
|
68
70
|
export * from './Sheet';
|
|
@@ -16,6 +16,7 @@ declare const paths: {
|
|
|
16
16
|
readonly 'chevron-down': readonly ['M6 9l6 6l6 -6'];
|
|
17
17
|
readonly 'chevron-left': readonly ['M15 6l-6 6l6 6'];
|
|
18
18
|
readonly 'chevron-right': readonly ['M9 6l6 6l-6 6'];
|
|
19
|
+
readonly 'external-link': readonly ['M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6', 'M11 13l9 -9', 'M15 4h5v5'];
|
|
19
20
|
readonly 'chevrons-left': readonly ['M11 7l-5 5l5 5', 'M17 7l-5 5l5 5'];
|
|
20
21
|
readonly 'chevrons-right': readonly ['M7 7l5 5l-5 5', 'M13 7l5 5l-5 5'];
|
|
21
22
|
readonly star: readonly ['M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z'];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The label palette: twelve hues beside the semantic colours, for things that need telling apart rather than a
|
|
3
|
+
* meaning (labels, tags, people, workspaces). Each hue has a base, a soft tint, a hover tint, soft text and the
|
|
4
|
+
* text that sits on the base, as tokens (`--cal-hue-red`, `--cal-hue-red-soft`, `-soft-hover`, `-soft-text`, `-on`)
|
|
5
|
+
* worked out with the same formula as the semantic soft colours (styles.css).
|
|
6
|
+
*/
|
|
7
|
+
export declare const HUES: readonly ['red', 'orange', 'amber', 'yellow', 'green', 'emerald', 'teal', 'cyan', 'blue', 'indigo', 'purple', 'pink'];
|
|
8
|
+
export type CaligoHue = (typeof HUES)[number];
|
|
9
|
+
/** A stable hue for a string, such as a name: the same name always gets the same hue. */
|
|
10
|
+
export declare function hueFor(seed: string): CaligoHue;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Material UI's `onChange(event, …)` hands over a change event from a native input, and apps read
|
|
4
|
+
* `event.target.checked` or `event.target.value`. Base UI's controls fire on their own element, with the real
|
|
5
|
+
* `<input>` hidden beside it. This gives the event with `target` and `currentTarget` pointing at that hidden input,
|
|
6
|
+
* its `checked` already set to the new state, so code written for Material UI keeps working.
|
|
7
|
+
*/
|
|
8
|
+
export declare function inputChangeEvent(event: Event | undefined, input: HTMLInputElement | null, checked?: boolean): React.ChangeEvent<HTMLInputElement>;
|
|
9
|
+
/** Props that name or describe a control: given to the element assistive tech sees, not to a hidden input. */
|
|
10
|
+
export declare function splitAriaProps<T extends Record<string, unknown>>(props: T | undefined): {
|
|
11
|
+
aria: Record<string, unknown>;
|
|
12
|
+
rest: Record<string, unknown>;
|
|
13
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The date of this Caligo release. A perpetual license covers every release dated on or before its
|
|
3
3
|
* end date. `node scripts/license.mjs stamp` sets it; run it when cutting a release.
|
|
4
4
|
*/
|
|
5
|
-
export declare const RELEASE_DATE = "2026-11-
|
|
5
|
+
export declare const RELEASE_DATE = "2026-11-17";
|
|
6
6
|
/**
|
|
7
7
|
* This release's major version, from package.json. A key bought for a major version covers every release
|
|
8
8
|
* of it and of the majors before it; `stamp` sets this too. 0 while Caligo is in preview.
|
|
@@ -18,6 +18,8 @@ declare module '@mui/material/styles' {
|
|
|
18
18
|
'kelvin-dark': true;
|
|
19
19
|
'kelvin-flat-light': true;
|
|
20
20
|
'kelvin-flat-dark': true;
|
|
21
|
+
'caligo-light-contrast': true;
|
|
22
|
+
'caligo-dark-contrast': true;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
/** A Material UI theme with every Caligo theme as a colour scheme. */
|