@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.
Files changed (75) hide show
  1. package/README.md +0 -4
  2. package/dist/components/AnimatedElement/AnimatedElement.d.ts +1 -1
  3. package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +1 -1
  4. package/dist/components/AnimatedList/AnimatedList.d.ts +1 -1
  5. package/dist/components/Badge/Badge.d.ts +2 -2
  6. package/dist/components/BaseInput/BaseInput.d.ts +1 -1
  7. package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
  8. package/dist/components/Box/Box.d.ts +1 -1
  9. package/dist/components/Box/Box.stories.d.ts +2 -2
  10. package/dist/components/Button/Button.d.ts +1 -1
  11. package/dist/components/Button/Button.stories.d.ts +1 -1
  12. package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  13. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +1 -1
  14. package/dist/components/Card/Card.d.ts +1 -1
  15. package/dist/components/Card/Card.stories.d.ts +1 -1
  16. package/dist/components/ComboBox/ComboBox.d.ts +4 -3
  17. package/dist/components/ComboBox/useComboBox.d.ts +11 -0
  18. package/dist/components/DateInput/DateInput.d.ts +1 -1
  19. package/dist/components/DateInput/DateInput.stories.d.ts +1 -1
  20. package/dist/components/Dialog/Options/DialogOptions.d.ts +1 -1
  21. package/dist/components/EditableText/EditableText.d.ts +1 -1
  22. package/dist/components/ErrorBoundary/DefaultErrorMessage.d.ts +1 -1
  23. package/dist/components/Form/Form.d.ts +1 -1
  24. package/dist/components/Form/Form.stories.d.ts +1 -1
  25. package/dist/components/Form/FormDateInput.d.ts +1 -1
  26. package/dist/components/Form/FormField.d.ts +1 -1
  27. package/dist/components/Form/FormInput.d.ts +1 -1
  28. package/dist/components/Form/FormSearchInput.d.ts +2 -1
  29. package/dist/components/Gradient/Gradient.d.ts +1 -1
  30. package/dist/components/HairlineButton/HairlineButton.d.ts +1 -1
  31. package/dist/components/Icon/Icon.d.ts +1 -1
  32. package/dist/components/Image/Image.d.ts +1 -1
  33. package/dist/components/LazyRender/LazyRender.d.ts +1 -1
  34. package/dist/components/List/UnorderedList.d.ts +1 -1
  35. package/dist/components/List/UnorderedList.stories.d.ts +1 -1
  36. package/dist/components/MediaCard/MediaCard.d.ts +5 -0
  37. package/dist/components/NumberInput/NumberInput.d.ts +1 -1
  38. package/dist/components/OverflowContainer/OverflowContainer.d.ts +1 -1
  39. package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
  40. package/dist/components/Radio/RadioGroup.d.ts +1 -1
  41. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  42. package/dist/components/Select/Select.d.ts +1 -1
  43. package/dist/components/SelectButton/SelectButton.d.ts +1 -1
  44. package/dist/components/Separator/Separator.d.ts +1 -1
  45. package/dist/components/Separator/Separator.stories.d.ts +1 -1
  46. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  47. package/dist/components/Skeleton/Skeleton.stories.d.ts +1 -1
  48. package/dist/components/Suspense/AnimatedSuspense.d.ts +1 -1
  49. package/dist/components/Switch/Switch.d.ts +1 -1
  50. package/dist/components/Tab/Tab.d.ts +1 -1
  51. package/dist/components/Text/Text.d.ts +1 -1
  52. package/dist/components/TextArea/TextArea.d.ts +1 -1
  53. package/dist/components/TextInput/TextInput.d.ts +1 -1
  54. package/dist/components/ThemeProvider.d.ts +3 -4
  55. package/dist/components/Toolbar/Toolbar.d.ts +1 -1
  56. package/dist/components/Video/Video.d.ts +1 -1
  57. package/dist/components/Video/Video.stories.d.ts +1 -1
  58. package/dist/components/Window/Window.d.ts +1 -1
  59. package/dist/index.cjs.js +148 -148
  60. package/dist/index.d.ts +1 -7
  61. package/dist/index.es.js +20146 -20374
  62. package/dist/style.css +1 -1
  63. package/dist/theme/{new/index.d.ts → index.d.ts} +1 -1
  64. package/dist/theme/{new/theme.d.ts → theme.d.ts} +0 -1
  65. package/dist/theme/{new/useMediaQuery.d.ts → useMediaQuery.d.ts} +1 -0
  66. package/package.json +2 -6
  67. package/dist/theme/colors.d.ts +0 -223
  68. package/dist/theme/mode.css.d.ts +0 -1
  69. package/dist/theme/selectors.d.ts +0 -48
  70. package/dist/theme/sprinkles.css.d.ts +0 -29801
  71. package/dist/theme/vars.css.d.ts +0 -487
  72. /package/dist/theme/{new/Theme.stories.d.ts → Theme.stories.d.ts} +0 -0
  73. /package/dist/theme/{new/install.d.ts → install.d.ts} +0 -0
  74. /package/dist/theme/{new/sx.d.ts → sx.d.ts} +0 -0
  75. /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.
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement } from "react";
2
- import { type SX, type ThemeKeys } from "../../theme/new";
2
+ import { type SX, type ThemeKeys } from "../../theme";
3
3
  export interface AnimatedElementProps {
4
4
  children: OnlyChild;
5
5
  animation?: {
@@ -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/new").SX | undefined;
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/new";
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/new";
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/new";
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, ReactNode } from "react";
2
- import { type ThemeKeys } from "../../theme/new";
2
+ import { type ThemeKeys } from "../../theme";
3
3
  import { type IconName } from "../Icon";
4
4
  export interface BlankSlateProps {
5
5
  style?: CSSProperties;
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties, type ReactNode } from "react";
2
- import { type ThemeKeys } from "../../theme/new";
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" | "windowTabs" | undefined;
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" | "windowTabs" | undefined;
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;
@@ -1,5 +1,5 @@
1
1
  import { type MouseEvent, type ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  import { type IconName } from "../Icon";
4
4
  export interface ButtonProps {
5
5
  children?: ReactNode;
@@ -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/new").SX | undefined;
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;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export interface ButtonGroupProps {
4
4
  children?: ReactNode;
5
5
  disabled?: boolean;
@@ -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/new").SX | undefined;
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;
@@ -1,5 +1,5 @@
1
1
  import type { KeyboardEvent, MouseEvent, ReactNode } from "react";
2
- import { type SX } from "../../theme/new";
2
+ import { type SX } from "../../theme";
3
3
  import { type TextProps } from "../Text";
4
4
  export interface CardProps {
5
5
  children?: ReactNode;
@@ -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/new").SX | undefined;
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/new";
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
- onSelect: () => void;
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 {};
@@ -1,5 +1,5 @@
1
1
  import { Time } from "@internationalized/date";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export type DateInputProps = {
4
4
  value?: Date;
5
5
  mode: Mode;
@@ -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/new").SX | undefined;
27
+ sx?: import("../../theme").SX | undefined;
28
28
  onValueChange: (value?: Date | undefined) => void;
29
29
  }) => JSX.Element;
30
30
  args: {
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { SX } from "../../../theme/new";
2
+ import type { SX } from "../../../theme";
3
3
  import { type IconName } from "../../Icon";
4
4
  export interface DialogOptionsProps {
5
5
  value?: string;
@@ -1,4 +1,4 @@
1
- import { type ThemeKeys } from "../../theme/new";
1
+ import { type ThemeKeys } from "../../theme";
2
2
  import { textVariantMapping } from "../Text";
3
3
  export interface EditableTextProps {
4
4
  "aria-label": string;
@@ -1,4 +1,4 @@
1
- import type { SX } from "../../theme/new";
1
+ import type { SX } from "../../theme";
2
2
  export interface DefaultErrorMessageProps {
3
3
  title: string;
4
4
  description?: string;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export interface FormProps {
4
4
  children?: ReactNode;
5
5
  sx?: SX;
@@ -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/new").SX | undefined;
18
+ sx?: import("../../theme").SX | undefined;
19
19
  onSubmit: () => void;
20
20
  }) => JSX.Element;
21
21
  args: {};
@@ -1,5 +1,5 @@
1
1
  import { Time } from "@internationalized/date";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  import type { DateInputProps } from "../DateInput/DateInput";
4
4
  export interface FormDateInputProps {
5
5
  label: string;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export type FormFieldProps = {
4
4
  children?: ReactNode;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type ClipboardEventHandler, type KeyboardEvent, type ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
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/new";
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,4 +1,4 @@
1
- import type { SX } from "../../theme/new";
1
+ import type { SX } from "../../theme";
2
2
  export interface GradientProps {
3
3
  sx?: SX;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { type MouseEvent } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  import { type IconName } from "../Icon";
4
4
  export interface HairlineButtonProps {
5
5
  icon: IconName;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type SX, type ThemeKeys } from "../../theme/new";
2
+ import { type SX, type ThemeKeys } from "../../theme";
3
3
  import type { IconName } from "./iconNames";
4
4
  export interface IconProps {
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { type SX } from "../../theme/new";
1
+ import { type SX } from "../../theme";
2
2
  export interface ImageProps {
3
3
  "aria-label"?: string;
4
4
  src: string;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import { type ThemeKeys } from "../../theme/new";
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).
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export interface UnorderedListProps {
4
4
  children?: ReactNode;
5
5
  sx?: SX;
@@ -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/new").SX | undefined;
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 {
@@ -1,4 +1,4 @@
1
- import type { SX } from "../../theme/new";
1
+ import type { SX } from "../../theme";
2
2
  import type { BaseInputProps } from "../BaseInput/BaseInput";
3
3
  export interface NumberInputProps {
4
4
  autoComplete?: string;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import { type ThemeKeys } from "../../theme/new";
2
+ import { type ThemeKeys } from "../../theme";
3
3
  type Gap = Extract<ThemeKeys<"space">, number>;
4
4
  interface OverflowContainerProps {
5
5
  children: ReactNode[];
@@ -1,4 +1,4 @@
1
- import { type ThemeKeys } from "../../theme/new";
1
+ import { type ThemeKeys } from "../../theme";
2
2
  export interface ProgressCircleProps {
3
3
  color?: ThemeKeys<"color">;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export interface RadioGroupProps<VALUE extends string> {
4
4
  values: readonly VALUE[];
5
5
  selectedValue: VALUE;
@@ -1,5 +1,5 @@
1
1
  import { type AriaRole, type FocusEvent } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export interface SearchInputProps {
4
4
  value: string;
5
5
  onValueChange: (value: string) => void;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import { type SX } from "../../theme/new";
2
+ import { type SX } from "../../theme";
3
3
  import { type IconName } from "../Icon";
4
4
  export interface SelectProps<VALUE extends string> {
5
5
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ThemeKeys } from "../../theme/new";
1
+ import type { ThemeKeys } from "../../theme";
2
2
  import { type IconName } from "../Icon";
3
3
  export interface SelectButtonProps {
4
4
  textContent: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  export interface SeparatorProps {
4
4
  /**
5
5
  * Either `vertical` or `horizontal`. Defaults to `horizontal`.
@@ -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/new").SX | undefined;
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;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
- import type { SX, ThemeKeys } from "../../theme/new";
2
+ import type { SX, ThemeKeys } from "../../theme";
3
3
  export interface Props {
4
4
  component?: "span";
5
5
  borderRadius?: ThemeKeys<"borderRadius", 0 | 4 | 6 | 12 | "100%">;
@@ -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/new").SX | undefined;
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 ReactNode } from "react";
2
- import type { ThemeKeys } from "../../theme/new";
2
+ import type { ThemeKeys } from "../../theme";
3
3
  interface AnimatedSuspenseProps {
4
4
  children: ReactNode;
5
5
  fallback?: ReactNode;
@@ -1,4 +1,4 @@
1
- import type { SX } from "../../theme/new";
1
+ import type { SX } from "../../theme";
2
2
  export interface SwitchProps {
3
3
  id?: string;
4
4
  size?: "small" | "medium";
@@ -1,4 +1,4 @@
1
- import type { SX } from "../../theme/new";
1
+ import type { SX } from "../../theme";
2
2
  export interface TabProps {
3
3
  title: string;
4
4
  selected?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type AnchorHTMLAttributes, type ReactNode } from "react";
2
- import { type SX, type ThemeKeys } from "../../theme/new";
2
+ import { type SX, type ThemeKeys } from "../../theme";
3
3
  interface BaseTextProps {
4
4
  align?: "inherit" | "start" | "center" | "end";
5
5
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import type { SX, ThemeKeys } from "../../theme/new";
1
+ import type { SX, ThemeKeys } from "../../theme";
2
2
  export interface TextAreaProps {
3
3
  autoComplete?: string;
4
4
  id?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  import type { BaseInputProps } from "../BaseInput/BaseInput";
4
4
  export interface TextInputProps {
5
5
  inputMode?: "text";
@@ -1,7 +1,6 @@
1
- import { type FC, type ReactNode } from "react";
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?: keyof typeof styles.mode | "system";
4
+ mode?: "light" | "dark" | "system";
6
5
  }
7
- export declare const ThemeProvider: FC<ThemeProviderProps>;
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/new";
3
+ import type { SX } from "../../theme";
4
4
  import type { IconName } from "../Icon";
5
5
  export interface ToolbarProps {
6
6
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { type SX } from "../../theme/new";
1
+ import { type SX } from "../../theme";
2
2
  export interface VideoProps {
3
3
  src: string;
4
4
  loop?: boolean;
@@ -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/new").SX | undefined;
30
+ sx?: import("../../theme").SX | undefined;
31
31
  onLoad?: (() => void) | undefined;
32
32
  }) => JSX.Element;
33
33
  args: {
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { SX } from "../../theme/new";
2
+ import type { SX } from "../../theme";
3
3
  interface WindowProps {
4
4
  children: ReactNode;
5
5
  sx?: SX;