@prismicio/editor-ui 0.4.28 → 0.4.30

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 (93) hide show
  1. package/README.md +0 -4
  2. package/dist/components/Alert/Alert.stories.d.ts +1 -1
  3. package/dist/components/AnimatedElement/AnimatedElement.d.ts +1 -1
  4. package/dist/components/AnimatedElement/AnimatedElement.stories.d.ts +1 -1
  5. package/dist/components/AnimatedList/AnimatedList.d.ts +1 -1
  6. package/dist/components/AnimatedList/AnimatedList.stories.d.ts +1 -1
  7. package/dist/components/Badge/Badge.d.ts +2 -2
  8. package/dist/components/BaseInput/BaseInput.d.ts +1 -1
  9. package/dist/components/BlankSlate/BlankSlate.d.ts +1 -1
  10. package/dist/components/Box/Box.d.ts +1 -1
  11. package/dist/components/Box/Box.stories.d.ts +33 -33
  12. package/dist/components/Button/Button.d.ts +4 -2
  13. package/dist/components/Button/Button.stories.d.ts +6 -5
  14. package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +1 -1
  16. package/dist/components/Card/Card.d.ts +1 -1
  17. package/dist/components/Card/Card.stories.d.ts +1 -1
  18. package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
  19. package/dist/components/ComboBox/ComboBox.d.ts +4 -3
  20. package/dist/components/ComboBox/useComboBox.d.ts +11 -0
  21. package/dist/components/Cropper/Cropper.stories.d.ts +2 -2
  22. package/dist/components/DateInput/DateInput.d.ts +1 -1
  23. package/dist/components/DateInput/DateInput.stories.d.ts +1 -1
  24. package/dist/components/Dialog/Options/DialogOptions.d.ts +1 -1
  25. package/dist/components/EditableText/EditableText.d.ts +1 -1
  26. package/dist/components/ErrorBoundary/DefaultErrorMessage.d.ts +1 -1
  27. package/dist/components/Form/Form.d.ts +1 -1
  28. package/dist/components/Form/Form.stories.d.ts +1 -1
  29. package/dist/components/Form/FormDateInput.d.ts +1 -1
  30. package/dist/components/Form/FormField.d.ts +1 -1
  31. package/dist/components/Form/FormInput.d.ts +1 -1
  32. package/dist/components/Form/FormSearchInput.d.ts +2 -1
  33. package/dist/components/Gradient/Gradient.d.ts +1 -1
  34. package/dist/components/Group/Group.d.ts +2 -4
  35. package/dist/components/Group/Group.stories.d.ts +2 -30
  36. package/dist/components/Group/GroupItem.d.ts +0 -1
  37. package/dist/components/HairlineButton/HairlineButton.d.ts +1 -1
  38. package/dist/components/Icon/Icon.d.ts +1 -1
  39. package/dist/components/Icon/iconNames.d.ts +1 -1
  40. package/dist/components/IconButton/IconButton.d.ts +3 -1
  41. package/dist/components/Image/Image.d.ts +1 -1
  42. package/dist/components/LazyRender/LazyRender.d.ts +1 -1
  43. package/dist/components/List/UnorderedList.d.ts +1 -1
  44. package/dist/components/List/UnorderedList.stories.d.ts +1 -1
  45. package/dist/components/MediaCard/MediaCard.d.ts +5 -0
  46. package/dist/components/NumberInput/NumberInput.d.ts +1 -1
  47. package/dist/components/OverflowContainer/OverflowContainer.d.ts +1 -1
  48. package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -1
  49. package/dist/components/Radio/RadioBigCard.d.ts +12 -0
  50. package/dist/components/Radio/RadioGroup.d.ts +2 -1
  51. package/dist/components/Radio/index.d.ts +1 -0
  52. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  53. package/dist/components/Select/Select.d.ts +1 -1
  54. package/dist/components/SelectButton/SelectButton.d.ts +1 -1
  55. package/dist/components/Separator/Separator.d.ts +1 -1
  56. package/dist/components/Separator/Separator.stories.d.ts +1 -1
  57. package/dist/components/Skeleton/Skeleton.d.ts +12 -12
  58. package/dist/components/Skeleton/Skeleton.stories.d.ts +2 -2
  59. package/dist/components/Slider/Slider.stories.d.ts +2 -2
  60. package/dist/components/Suspense/AnimatedSuspense.d.ts +1 -1
  61. package/dist/components/Switch/Switch.d.ts +1 -1
  62. package/dist/components/Tab/Tab.d.ts +1 -1
  63. package/dist/components/Text/Text.d.ts +1 -1
  64. package/dist/components/TextArea/TextArea.d.ts +1 -1
  65. package/dist/components/TextInput/TextInput.d.ts +1 -1
  66. package/dist/components/ThemeProvider.d.ts +3 -4
  67. package/dist/components/Toast/Toast.stories.d.ts +2 -2
  68. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  69. package/dist/components/Toolbar/Toolbar.d.ts +1 -1
  70. package/dist/components/Video/Video.d.ts +1 -1
  71. package/dist/components/Video/Video.stories.d.ts +2 -2
  72. package/dist/components/Window/Window.d.ts +1 -1
  73. package/dist/index.cjs.js +152 -148
  74. package/dist/index.d.ts +2 -9
  75. package/dist/index.es.js +20556 -20920
  76. package/dist/style.css +1 -1
  77. package/dist/theme/{new/index.d.ts → index.d.ts} +1 -1
  78. package/dist/theme/{new/useMediaQuery.d.ts → useMediaQuery.d.ts} +1 -0
  79. package/package.json +3 -7
  80. package/dist/components/Accordion/Accordion.d.ts +0 -16
  81. package/dist/components/Accordion/Accordion.stories.d.ts +0 -33
  82. package/dist/components/Accordion/index.d.ts +0 -3
  83. package/dist/components/Accordion/useAccordion.d.ts +0 -18
  84. package/dist/theme/colors.d.ts +0 -223
  85. package/dist/theme/mode.css.d.ts +0 -1
  86. package/dist/theme/selectors.d.ts +0 -48
  87. package/dist/theme/sprinkles.css.d.ts +0 -29801
  88. package/dist/theme/vars.css.d.ts +0 -487
  89. /package/dist/theme/{new/Theme.stories.d.ts → Theme.stories.d.ts} +0 -0
  90. /package/dist/theme/{new/install.d.ts → install.d.ts} +0 -0
  91. /package/dist/theme/{new/sx.d.ts → sx.d.ts} +0 -0
  92. /package/dist/theme/{new/theme.d.ts → theme.d.ts} +0 -0
  93. /package/dist/theme/{new/utils.d.ts → utils.d.ts} +0 -0
@@ -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,2 +1,2 @@
1
- export declare const iconNames: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "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", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
1
+ export declare const iconNames: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "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", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "translate", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
2
2
  export type IconName = typeof iconNames[number];
@@ -1,4 +1,5 @@
1
1
  import { type MouseEvent } from "react";
2
+ import type { Keys } from "react-hotkeys-hook";
2
3
  import type { IconName } from "../Icon/iconNames";
3
4
  export interface IconButtonProps {
4
5
  color?: Color;
@@ -6,7 +7,8 @@ export interface IconButtonProps {
6
7
  hiddenLabel?: string;
7
8
  icon: IconName | JSX.Element;
8
9
  loading?: boolean;
9
- onClick?: (event: MouseEvent) => void;
10
+ hotkeys?: Keys;
11
+ onClick?: (event: MouseEvent | KeyboardEvent) => void;
10
12
  onMouseDown?: (event: MouseEvent) => void;
11
13
  onMouseUp?: (event: MouseEvent) => void;
12
14
  radius?: "full" | "medium";
@@ -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
  }
@@ -0,0 +1,12 @@
1
+ import { type IconName } from "../Icon";
2
+ export interface RadioBigCardProps {
3
+ icon: IconName;
4
+ title: string;
5
+ badge?: {
6
+ icon: IconName;
7
+ title: string;
8
+ };
9
+ description: string;
10
+ disabled?: boolean;
11
+ }
12
+ export declare function RadioBigCard(props: RadioBigCardProps): JSX.Element;
@@ -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;
@@ -12,6 +12,7 @@ export interface RadioGroupProps<VALUE extends string> {
12
12
  export declare function RadioGroup<VALUE extends string>(props: RadioGroupProps<VALUE>): JSX.Element;
13
13
  interface RadioItemContextValue {
14
14
  value: string;
15
+ isSelected: boolean;
15
16
  evenItemSize: boolean;
16
17
  }
17
18
  export declare function useRadioItem(): RadioItemContextValue;
@@ -1,3 +1,4 @@
1
+ export { RadioBigCard } from "./RadioBigCard";
1
2
  export { RadioButton } from "./RadioButton";
2
3
  export { RadioCard } from "./RadioCard";
3
4
  export { RadioGroup } from "./RadioGroup";
@@ -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%">;
@@ -25,16 +25,16 @@ export declare function Skeleton(props: Props): import("react").DetailedReactHTM
25
25
  justifySelf?: "center" | "stretch" | undefined;
26
26
  visibility?: "hidden" | "visible" | undefined;
27
27
  position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
28
- marginLeft?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
29
- marginRight?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
30
- marginTop?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
31
- marginBottom?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
32
- marginInline?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
33
- marginBlock?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
34
- top?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
35
- left?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
36
- right?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
37
- bottom?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | "auto" | "fieldSetGap" | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
38
- borderRadius?: 0 | 2 | 1 | 4 | 6 | 8 | 10 | 12 | "inherit" | "50%" | "100%" | undefined;
28
+ marginLeft?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
29
+ marginRight?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
30
+ marginTop?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
31
+ marginBottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
32
+ marginInline?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
33
+ marginBlock?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
34
+ top?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
35
+ left?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
36
+ right?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
37
+ bottom?: 0 | 2 | 1 | "auto" | "fieldSetGap" | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | undefined;
38
+ borderRadius?: 0 | 2 | 1 | "50%" | "100%" | "inherit" | 4 | 6 | 8 | 10 | 12 | undefined;
39
39
  };
40
40
  }, HTMLElement>;
@@ -37,12 +37,12 @@ export default meta;
37
37
  export declare const Default: {
38
38
  render: (args: {
39
39
  component?: "span" | undefined;
40
- borderRadius?: 0 | 4 | 6 | 12 | "100%" | undefined;
40
+ borderRadius?: 0 | "100%" | 4 | 6 | 12 | undefined;
41
41
  color?: "grey1" | "grey5" | undefined;
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,7 +1,7 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "onValueChange" | "step" | "min" | "max">>>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "min" | "max" | "step" | "onValueChange">>>;
2
2
  export default _default;
3
3
  export declare const Default: {
4
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "onValueChange" | "step" | "min" | "max">>>;
4
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Readonly<Pick<import("@radix-ui/react-slider").SliderProps, "value" | "min" | "max" | "step" | "onValueChange">>>;
5
5
  args: {
6
6
  min: number;
7
7
  max: 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;
@@ -3,7 +3,7 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
3
3
  anchor: React.ReactNode;
4
4
  open: boolean;
5
5
  onOpenChange?: ((open: boolean) => void) | undefined;
6
- icon?: "label" | "code" | "link" | "image" | "search" | "alert" | "visibility" | "description" | "add" | "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" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "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;
6
+ icon?: "translate" | "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" | "language" | "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;
7
7
  loadingIndicator?: boolean | undefined;
8
8
  title: string;
9
9
  seconds?: number | undefined;
@@ -21,7 +21,7 @@ export declare const Default: {
21
21
  anchor: React.ReactNode;
22
22
  open: boolean;
23
23
  onOpenChange?: ((open: boolean) => void) | undefined;
24
- icon?: "label" | "code" | "link" | "image" | "search" | "alert" | "visibility" | "description" | "add" | "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" | "imageSearch" | "insertDriveFile" | "inventory" | "keyboardArrowDown" | "keyboardArrowUp" | "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;
24
+ icon?: "translate" | "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" | "language" | "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;
25
25
  loadingIndicator?: boolean | undefined;
26
26
  title: string;
27
27
  seconds?: number | undefined;
@@ -20,13 +20,13 @@ declare const meta: {
20
20
  control: {
21
21
  type: string;
22
22
  };
23
- options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "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", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
23
+ options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "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", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "translate", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
24
24
  };
25
25
  endIcon: {
26
26
  control: {
27
27
  type: string;
28
28
  };
29
- options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "link", "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", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
29
+ options: readonly ["add", "alert", "arrowBack", "arrowDownward", "arrowDropDown", "arrowDropDownCircle", "arrowForward", "arrowUpward", "autoFixHigh", "biToggle", "block", "calendarToday", "centerFocusWeak", "check", "checkBox", "checkBoxOutlinedBlank", "chevronLeft", "chevronRight", "close", "cloud", "cloudUpload", "code", "colorLens", "contentCopy", "crop", "cropLandscape", "cropPortrait", "dataObject", "database", "dateRange", "delete", "description", "desktopWindows", "dragIndicator", "driveFileMove", "edit", "event", "expandLess", "expandMore", "firstPage", "folder", "formatBold", "formatClear", "formatItalic", "formatListBulleted", "formatListNumbered", "formatTextDirectionRToL", "hideImage", "image", "imageSearch", "insertDriveFile", "inventory", "keyboardArrowDown", "keyboardArrowUp", "label", "language", "link", "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", "search", "smartDisplay", "tabletMac", "tag", "textFields", "toggleOff", "translate", "unfoldMore", "unsplash", "upload", "viewDay", "visibility", "zoomOutMap"];
30
30
  };
31
31
  };
32
32
  };
@@ -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;
@@ -22,12 +22,12 @@ export declare const Default: {
22
22
  src: string;
23
23
  loop?: boolean | undefined;
24
24
  autoPlay?: boolean | undefined;
25
- sizing?: "none" | "contain" | "cover" | undefined;
25
+ sizing?: "contain" | "none" | "cover" | undefined;
26
26
  borderRadius?: 0 | 4 | undefined;
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;