@prismicio/editor-ui 0.4.27 → 0.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/dist/components/AnimatedElement/AnimatedElement.d.ts +1 -1
- package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +1 -1
- package/dist/components/AnimatedList/AnimatedList.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Box/Box.stories.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/ComboBox/ComboBox.d.ts +4 -3
- package/dist/components/ComboBox/useComboBox.d.ts +11 -0
- package/dist/components/DateInput/DateInput.d.ts +1 -1
- package/dist/components/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/components/Dialog/Options/DialogOptions.d.ts +1 -1
- package/dist/components/EditableText/EditableText.d.ts +1 -1
- package/dist/components/ErrorBoundary/DefaultErrorMessage.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form.stories.d.ts +1 -1
- package/dist/components/Form/FormDateInput.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts +1 -1
- package/dist/components/Form/FormInput.d.ts +1 -1
- package/dist/components/Form/FormSearchInput.d.ts +2 -1
- package/dist/components/Gradient/Gradient.d.ts +1 -1
- package/dist/components/HairlineButton/HairlineButton.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/LazyRender/LazyRender.d.ts +1 -1
- package/dist/components/List/UnorderedList.d.ts +1 -1
- package/dist/components/List/UnorderedList.stories.d.ts +1 -1
- package/dist/components/MediaCard/MediaCard.d.ts +5 -0
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/OverflowContainer/OverflowContainer.d.ts +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
- package/dist/components/Radio/RadioGroup.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/SelectButton/SelectButton.d.ts +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Separator/Separator.stories.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -1
- package/dist/components/Suspense/AnimatedSuspense.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tab/Tab.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/ThemeProvider.d.ts +3 -4
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Video/Video.d.ts +1 -1
- package/dist/components/Video/Video.stories.d.ts +1 -1
- package/dist/components/Window/Window.d.ts +1 -1
- package/dist/index.cjs.js +148 -148
- package/dist/index.d.ts +1 -7
- package/dist/index.es.js +20146 -20374
- package/dist/style.css +1 -1
- package/dist/theme/{new/index.d.ts → index.d.ts} +1 -1
- package/dist/theme/{new/theme.d.ts → theme.d.ts} +0 -1
- package/dist/theme/{new/useMediaQuery.d.ts → useMediaQuery.d.ts} +1 -0
- package/package.json +2 -6
- package/dist/theme/colors.d.ts +0 -223
- package/dist/theme/mode.css.d.ts +0 -1
- package/dist/theme/selectors.d.ts +0 -48
- package/dist/theme/sprinkles.css.d.ts +0 -29801
- package/dist/theme/vars.css.d.ts +0 -487
- /package/dist/theme/{new/Theme.stories.d.ts → Theme.stories.d.ts} +0 -0
- /package/dist/theme/{new/install.d.ts → install.d.ts} +0 -0
- /package/dist/theme/{new/sx.d.ts → sx.d.ts} +0 -0
- /package/dist/theme/{new/utils.d.ts → utils.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
- When passing a React Node as children to a radix primitive that has the `asChild` prop, you must spread all unused props into that React Node, even if at the type level there doesn't seem to be any remaining props. This is because radix secretly set a lot of extra props on the React Node you gave it. For an example of this, see BaseInput's `otherProps`.
|
|
6
6
|
We favor using `asChild` to reduce the number of DOM nodes and make it easy to size children.
|
|
7
7
|
|
|
8
|
-
## vanilla-extract GOTCHAS
|
|
9
|
-
|
|
10
|
-
- You can not reference a parent selector that is made of ONLY `sprinkles` generated classNames. See Field.css.ts -> labelPosition to see a workaround: An empty object is passed to `styleVariant` which is equivalent to having an empty className generated with `style({})`.
|
|
11
|
-
|
|
12
8
|
## How to add a new SVG icon
|
|
13
9
|
|
|
14
10
|
1. Export the SVG icon from [Figma](https://www.figma.com/file/V5pub1BwPMJGY52YHmhTmX/Prismic---Design-System?node-id=46%3A2811). It should always be the variant with a viewbox of 24x24.
|
|
@@ -16,7 +16,7 @@ export declare const Default: {
|
|
|
16
16
|
} | undefined;
|
|
17
17
|
enterDuration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
|
|
18
18
|
exitDuration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
|
|
19
|
-
sx?: import("../../theme
|
|
19
|
+
sx?: import("../../theme").SX | undefined;
|
|
20
20
|
}) => JSX.Element;
|
|
21
21
|
args: {
|
|
22
22
|
children: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type ThemeKeys } from "../../theme
|
|
2
|
+
import { type ThemeKeys } from "../../theme";
|
|
3
3
|
import { type RenderDragPreview, type RenderDropIndicator } from "./dnd";
|
|
4
4
|
import { type State } from "./layout";
|
|
5
5
|
export interface AnimatedListProps<ITEM> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
-
import type { SX } from "../../theme
|
|
2
|
+
import type { SX } from "../../theme";
|
|
3
3
|
import { type IconName } from "../Icon";
|
|
4
4
|
export interface BadgeProps {
|
|
5
5
|
title: ReactNode;
|
|
@@ -14,6 +14,6 @@ export interface BadgeProps {
|
|
|
14
14
|
onMouseEnter?: () => void;
|
|
15
15
|
onMouseLeave?: () => void;
|
|
16
16
|
/** Makes the badge content editable, fires onBlur when the value has changed */
|
|
17
|
-
onEdit?: (newTitle: string) => void
|
|
17
|
+
onEdit?: (newTitle: string) => void | Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AriaRole, type ClipboardEventHandler, type FocusEvent, type KeyboardEvent, type ReactNode } from "react";
|
|
2
|
-
import type { SX, ThemeKeys } from "../../theme
|
|
2
|
+
import type { SX, ThemeKeys } from "../../theme";
|
|
3
3
|
/**
|
|
4
4
|
* Flexible base Input, provided with no height or block padding.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
-
import { type ThemeKeys } from "../../theme
|
|
2
|
+
import { type ThemeKeys } from "../../theme";
|
|
3
3
|
export type BoxProps = {
|
|
4
4
|
as?: "div" | "nav" | "ul" | "ol" | "article" | "header" | "form" | "span";
|
|
5
5
|
children?: ReactNode;
|
|
@@ -60,7 +60,7 @@ export declare const Default: {
|
|
|
60
60
|
}) | undefined;
|
|
61
61
|
borderStyle?: "none" | "dashed" | "solid" | undefined;
|
|
62
62
|
borderColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
|
|
63
|
-
boxShadow?: "1" | "2" | "4" | "none" | "3" | "-1" | "purpleFocus" | "ghostFocus" | "greenFocus" | "amberFocus" | "tomatoFocus" | "gradient" | "greyFocus" | "cropper" |
|
|
63
|
+
boxShadow?: "1" | "2" | "4" | "none" | "3" | "-1" | "purpleFocus" | "ghostFocus" | "greenFocus" | "amberFocus" | "tomatoFocus" | "gradient" | "greyFocus" | "cropper" | undefined;
|
|
64
64
|
backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
|
|
65
65
|
opacity?: 0 | 1 | 0.1 | 0.3 | 0.4 | 0.5 | 0.6 | 0.8 | 0.9 | undefined;
|
|
66
66
|
visibility?: "hidden" | "visible" | undefined;
|
|
@@ -126,7 +126,7 @@ export declare const Default: {
|
|
|
126
126
|
}) | undefined;
|
|
127
127
|
borderStyle?: "none" | "dashed" | "solid" | undefined;
|
|
128
128
|
borderColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
|
|
129
|
-
boxShadow?: "1" | "2" | "4" | "none" | "3" | "-1" | "purpleFocus" | "ghostFocus" | "greenFocus" | "amberFocus" | "tomatoFocus" | "gradient" | "greyFocus" | "cropper" |
|
|
129
|
+
boxShadow?: "1" | "2" | "4" | "none" | "3" | "-1" | "purpleFocus" | "ghostFocus" | "greenFocus" | "amberFocus" | "tomatoFocus" | "gradient" | "greyFocus" | "cropper" | undefined;
|
|
130
130
|
backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo7" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato6" | "tomato7" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | undefined;
|
|
131
131
|
opacity?: 0 | 1 | 0.1 | 0.3 | 0.4 | 0.5 | 0.6 | 0.8 | 0.9 | undefined;
|
|
132
132
|
visibility?: "hidden" | "visible" | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const Default: {
|
|
|
23
23
|
textColor?: "placeholder" | undefined;
|
|
24
24
|
flexContent?: boolean | undefined;
|
|
25
25
|
textWeight?: "bold" | "normal" | undefined;
|
|
26
|
-
sx?: import("../../theme
|
|
26
|
+
sx?: import("../../theme").SX | undefined;
|
|
27
27
|
startIcon?: "visibility" | "search" | "link" | "description" | "code" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "biToggle" | "block" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "playCircle" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "upload" | "viewDay" | "zoomOutMap" | undefined;
|
|
28
28
|
endIcon?: "visibility" | "search" | "link" | "description" | "code" | "add" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "autoFixHigh" | "biToggle" | "block" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "image" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "label" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notes" | "openInFull" | "openInNew" | "phoneIphone" | "photo" | "pin" | "place" | "playCircle" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "smartDisplay" | "tabletMac" | "tag" | "textFields" | "toggleOff" | "unfoldMore" | "unsplash" | "upload" | "viewDay" | "zoomOutMap" | undefined;
|
|
29
29
|
renderStartIcon?: ((icon: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
@@ -36,7 +36,7 @@ export declare const Default: {
|
|
|
36
36
|
size?: "small" | "medium" | "large" | undefined;
|
|
37
37
|
color?: "dark" | "grey" | "purple" | undefined;
|
|
38
38
|
density?: "regular" | "compact" | undefined;
|
|
39
|
-
sx?: import("../../theme
|
|
39
|
+
sx?: import("../../theme").SX | undefined;
|
|
40
40
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
41
41
|
key?: import("react").Key | null | undefined;
|
|
42
42
|
}) => JSX.Element;
|
|
@@ -39,7 +39,7 @@ export declare const Default: {
|
|
|
39
39
|
paddingBlock?: 0 | 8 | 16 | 28 | undefined;
|
|
40
40
|
paddingInline?: 16 | 24 | undefined;
|
|
41
41
|
onSelect?: ((event: import("react").MouseEvent<Element, MouseEvent> | import("react").KeyboardEvent<Element>) => void) | undefined;
|
|
42
|
-
sx?: import("../../theme
|
|
42
|
+
sx?: import("../../theme").SX | undefined;
|
|
43
43
|
}) => JSX.Element;
|
|
44
44
|
args: {
|
|
45
45
|
color: "grey1";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { SX } from "../../theme
|
|
2
|
+
import type { SX } from "../../theme";
|
|
3
3
|
type Variant = "attached" | "detached";
|
|
4
4
|
export interface ComboBoxProps {
|
|
5
5
|
children: ReactNode;
|
|
@@ -17,9 +17,10 @@ interface ComboBoxContentProps {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const ComboBoxContent: import("react").ForwardRefExoticComponent<ComboBoxContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
19
|
type ComboBoxItemProps = {
|
|
20
|
-
|
|
20
|
+
value: string;
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
21
23
|
disabled?: boolean;
|
|
22
|
-
selected?: boolean;
|
|
23
24
|
children: ReactNode;
|
|
24
25
|
};
|
|
25
26
|
export declare const ComboBoxItem: import("react").ForwardRefExoticComponent<ComboBoxItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -17,5 +17,16 @@ export declare function useInternalSelection(props: UseInternalSelectionProps):
|
|
|
17
17
|
onItemPicked: () => void;
|
|
18
18
|
cleanupInternalState: () => void;
|
|
19
19
|
};
|
|
20
|
+
export declare function getValidItems(contentInnerRef: RefObject<HTMLDivElement>): Element[];
|
|
20
21
|
export declare function getSelectedItem(contentInnerRef: RefObject<HTMLDivElement>): Element | null | undefined;
|
|
22
|
+
interface UseSelectFirstArgs {
|
|
23
|
+
listIsOpen: boolean;
|
|
24
|
+
contentInnerRef: RefObject<HTMLDivElement>;
|
|
25
|
+
onChangeInternalSelection: (value: string | undefined) => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Selects first option if there is no selected option or the selected option is not available anymore
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
export declare function useSelectFirst(args: UseSelectFirstArgs): void;
|
|
21
32
|
export {};
|
|
@@ -24,7 +24,7 @@ export declare const Default: {
|
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
minValue?: "today" | undefined;
|
|
26
26
|
"aria-labelledby": string;
|
|
27
|
-
sx?: import("../../theme
|
|
27
|
+
sx?: import("../../theme").SX | undefined;
|
|
28
28
|
onValueChange: (value?: Date | undefined) => void;
|
|
29
29
|
}) => JSX.Element;
|
|
30
30
|
args: {
|
|
@@ -15,7 +15,7 @@ export default meta;
|
|
|
15
15
|
export declare const Default: {
|
|
16
16
|
render: (args: {
|
|
17
17
|
children?: import("react").ReactNode;
|
|
18
|
-
sx?: import("../../theme
|
|
18
|
+
sx?: import("../../theme").SX | undefined;
|
|
19
19
|
onSubmit: () => void;
|
|
20
20
|
}) => JSX.Element;
|
|
21
21
|
args: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ClipboardEventHandler, type KeyboardEvent, type ReactNode } from "react";
|
|
2
|
-
import type { SX } from "../../theme
|
|
2
|
+
import type { SX } from "../../theme";
|
|
3
3
|
import { type IconName } from "../Icon";
|
|
4
4
|
export interface FormInputProps {
|
|
5
5
|
type?: "text" | "email" | "password" | "number";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AriaRole, type FocusEvent } from "react";
|
|
2
|
-
import type { SX } from "../../theme
|
|
2
|
+
import type { SX } from "../../theme";
|
|
3
3
|
export interface FormSearchInputProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
placeholder?: string;
|
|
@@ -13,5 +13,6 @@ export interface FormSearchInputProps {
|
|
|
13
13
|
onFocus?: (event: FocusEvent<HTMLInputElement, Element>) => void;
|
|
14
14
|
onBlur?: (event: FocusEvent<HTMLInputElement, Element>) => void;
|
|
15
15
|
endAdornment?: boolean;
|
|
16
|
+
autoFocus?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export declare const FormSearchInput: import("react").ForwardRefExoticComponent<FormSearchInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type ThemeKeys } from "../../theme
|
|
2
|
+
import { type ThemeKeys } from "../../theme";
|
|
3
3
|
/**
|
|
4
4
|
* Lazily renders a child the first time it intersects with the viewport.
|
|
5
5
|
* Works with any vertical scrolling ancestor (direct or not).
|
|
@@ -16,7 +16,7 @@ export declare const Default: {
|
|
|
16
16
|
name: string;
|
|
17
17
|
render: (args: {
|
|
18
18
|
children?: import("react").ReactNode;
|
|
19
|
-
sx?: import("../../theme
|
|
19
|
+
sx?: import("../../theme").SX | undefined;
|
|
20
20
|
}) => JSX.Element;
|
|
21
21
|
args: {
|
|
22
22
|
children: JSX.Element;
|
|
@@ -41,6 +41,11 @@ interface MediaCardProps {
|
|
|
41
41
|
* @param checked - The new checked state of the checkbox
|
|
42
42
|
*/
|
|
43
43
|
onCheckedChange?: (checked: boolean) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Function called when Add a tag is clicked
|
|
46
|
+
* @description This only affects the Add a tag button, not the card
|
|
47
|
+
*/
|
|
48
|
+
onAddTagClick?: () => void;
|
|
44
49
|
}
|
|
45
50
|
export declare function MediaCard(props: MediaCardProps): JSX.Element;
|
|
46
51
|
interface MediaCardPlaceholderProps {
|
|
@@ -24,7 +24,7 @@ export declare const Default: {
|
|
|
24
24
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
25
25
|
decorative?: boolean | undefined;
|
|
26
26
|
style?: "dashed" | "solid" | undefined;
|
|
27
|
-
sx?: import("../../theme
|
|
27
|
+
sx?: import("../../theme").SX | undefined;
|
|
28
28
|
ref?: import("react").Ref<HTMLDivElement> | undefined;
|
|
29
29
|
key?: import("react").Key | null | undefined;
|
|
30
30
|
}) => JSX.Element;
|
|
@@ -42,7 +42,7 @@ export declare const Default: {
|
|
|
42
42
|
width?: string | number | undefined;
|
|
43
43
|
height?: string | number | undefined;
|
|
44
44
|
children?: import("react").ReactNode;
|
|
45
|
-
sx?: import("../../theme
|
|
45
|
+
sx?: import("../../theme").SX | undefined;
|
|
46
46
|
}) => JSX.Element;
|
|
47
47
|
args: {
|
|
48
48
|
width: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AnchorHTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
import { type SX, type ThemeKeys } from "../../theme
|
|
2
|
+
import { type SX, type ThemeKeys } from "../../theme";
|
|
3
3
|
interface BaseTextProps {
|
|
4
4
|
align?: "inherit" | "start" | "center" | "end";
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import * as styles from "../theme/mode.css";
|
|
1
|
+
import { type ReactNode } from "react";
|
|
3
2
|
export interface ThemeProviderProps {
|
|
4
3
|
children?: ReactNode;
|
|
5
|
-
mode?:
|
|
4
|
+
mode?: "light" | "dark" | "system";
|
|
6
5
|
}
|
|
7
|
-
export declare
|
|
6
|
+
export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
|
|
2
2
|
import { type MouseEvent, type ReactNode } from "react";
|
|
3
|
-
import type { SX } from "../../theme
|
|
3
|
+
import type { SX } from "../../theme";
|
|
4
4
|
import type { IconName } from "../Icon";
|
|
5
5
|
export interface ToolbarProps {
|
|
6
6
|
children?: ReactNode;
|
|
@@ -27,7 +27,7 @@ export declare const Default: {
|
|
|
27
27
|
boxShadow?: "3" | undefined;
|
|
28
28
|
animateOnLoad?: boolean | undefined;
|
|
29
29
|
withControls?: boolean | undefined;
|
|
30
|
-
sx?: import("../../theme
|
|
30
|
+
sx?: import("../../theme").SX | undefined;
|
|
31
31
|
onLoad?: (() => void) | undefined;
|
|
32
32
|
}) => JSX.Element;
|
|
33
33
|
args: {
|