@firecms/ui 3.0.0-canary.15 → 3.0.0-canary.150

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 (110) hide show
  1. package/README.md +3 -3
  2. package/dist/components/Avatar.d.ts +1 -0
  3. package/dist/components/BooleanSwitch.d.ts +1 -1
  4. package/dist/components/BooleanSwitchWithLabel.d.ts +4 -1
  5. package/dist/components/Button.d.ts +1 -1
  6. package/dist/components/CenteredView.d.ts +4 -2
  7. package/dist/components/Checkbox.d.ts +3 -2
  8. package/dist/components/Chip.d.ts +3 -2
  9. package/dist/components/DateTimeField.d.ts +5 -7
  10. package/dist/components/Dialog.d.ts +4 -1
  11. package/dist/components/DialogTitle.d.ts +9 -0
  12. package/dist/components/ExpandablePanel.d.ts +2 -1
  13. package/dist/components/FileUpload.d.ts +1 -1
  14. package/dist/components/InputLabel.d.ts +2 -2
  15. package/dist/components/Label.d.ts +4 -1
  16. package/dist/components/Markdown.d.ts +1 -0
  17. package/dist/components/Menu.d.ts +6 -2
  18. package/dist/components/Menubar.d.ts +79 -0
  19. package/dist/components/MultiSelect.d.ts +32 -16
  20. package/dist/components/Popover.d.ts +2 -1
  21. package/dist/components/RadioGroup.d.ts +26 -3
  22. package/dist/components/Select.d.ts +6 -10
  23. package/dist/components/Separator.d.ts +2 -1
  24. package/dist/components/Sheet.d.ts +6 -0
  25. package/dist/components/Slider.d.ts +21 -0
  26. package/dist/components/Table.d.ts +10 -10
  27. package/dist/components/Tabs.d.ts +4 -2
  28. package/dist/components/TextField.d.ts +1 -1
  29. package/dist/components/TextareaAutosize.d.ts +3 -34
  30. package/dist/components/Tooltip.d.ts +6 -2
  31. package/dist/components/Typography.d.ts +5 -4
  32. package/dist/components/index.d.ts +3 -1
  33. package/dist/hooks/index.d.ts +3 -0
  34. package/dist/icons/Icon.d.ts +3 -3
  35. package/dist/index.css +73 -0
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.es.js +13410 -14466
  38. package/dist/index.es.js.map +1 -1
  39. package/dist/index.umd.js +19802 -857
  40. package/dist/index.umd.js.map +1 -1
  41. package/dist/styles.d.ts +9 -9
  42. package/dist/util/{cn.d.ts → cls.d.ts} +4 -0
  43. package/dist/util/index.d.ts +1 -3
  44. package/package.json +112 -118
  45. package/src/components/Alert.tsx +4 -4
  46. package/src/components/Autocomplete.tsx +7 -5
  47. package/src/components/Avatar.tsx +40 -26
  48. package/src/components/Badge.tsx +2 -2
  49. package/src/components/BooleanSwitch.tsx +19 -19
  50. package/src/components/BooleanSwitchWithLabel.tsx +20 -11
  51. package/src/components/Button.tsx +30 -23
  52. package/src/components/Card.tsx +4 -3
  53. package/src/components/CenteredView.tsx +25 -15
  54. package/src/components/Checkbox.tsx +16 -14
  55. package/src/components/Chip.tsx +10 -7
  56. package/src/components/CircularProgress.tsx +3 -3
  57. package/src/components/Collapse.tsx +4 -2
  58. package/src/components/Container.tsx +2 -2
  59. package/src/components/DateTimeField.tsx +142 -921
  60. package/src/components/DebouncedTextField.tsx +1 -0
  61. package/src/components/Dialog.tsx +17 -7
  62. package/src/components/DialogActions.tsx +3 -3
  63. package/src/components/DialogContent.tsx +2 -2
  64. package/src/components/DialogTitle.tsx +35 -0
  65. package/src/components/ExpandablePanel.tsx +20 -12
  66. package/src/components/FileUpload.tsx +8 -10
  67. package/src/components/IconButton.tsx +6 -10
  68. package/src/components/InfoLabel.tsx +2 -2
  69. package/src/components/InputLabel.tsx +11 -9
  70. package/src/components/Label.tsx +17 -4
  71. package/src/components/Markdown.tsx +15 -3
  72. package/src/components/Menu.tsx +49 -31
  73. package/src/components/Menubar.tsx +322 -0
  74. package/src/components/MultiSelect.tsx +342 -168
  75. package/src/components/Paper.tsx +2 -2
  76. package/src/components/Popover.tsx +19 -15
  77. package/src/components/RadioGroup.tsx +41 -9
  78. package/src/components/SearchBar.tsx +12 -11
  79. package/src/components/Select.tsx +99 -126
  80. package/src/components/Separator.tsx +10 -4
  81. package/src/components/Sheet.tsx +53 -31
  82. package/src/components/Skeleton.tsx +9 -6
  83. package/src/components/Slider.tsx +109 -0
  84. package/src/components/Table.tsx +52 -35
  85. package/src/components/Tabs.tsx +19 -15
  86. package/src/components/TextField.tsx +16 -18
  87. package/src/components/TextareaAutosize.tsx +4 -3
  88. package/src/components/Tooltip.tsx +33 -16
  89. package/src/components/Typography.tsx +42 -26
  90. package/src/components/common/SelectInputLabel.tsx +3 -3
  91. package/src/components/index.tsx +3 -1
  92. package/src/hooks/index.ts +3 -0
  93. package/src/icons/Icon.tsx +46 -43
  94. package/src/icons/icon_keys.ts +114 -1301
  95. package/src/index.css +73 -0
  96. package/src/index.ts +1 -0
  97. package/src/scripts/generateIconKeys.ts +20 -11
  98. package/src/styles.ts +9 -9
  99. package/src/util/cls.ts +14 -0
  100. package/src/util/index.ts +1 -3
  101. package/tailwind.config.js +42 -26
  102. package/dist/components/Spinner.d.ts +0 -1
  103. package/src/components/Spinner.tsx +0 -18
  104. package/src/util/cn.ts +0 -6
  105. /package/dist/{util → hooks}/useDebounceValue.d.ts +0 -0
  106. /package/dist/{util → hooks}/useInjectStyles.d.ts +0 -0
  107. /package/dist/{util → hooks}/useOutsideAlerter.d.ts +0 -0
  108. /package/src/{util → hooks}/useDebounceValue.tsx +0 -0
  109. /package/src/{util → hooks}/useInjectStyles.tsx +0 -0
  110. /package/src/{util → hooks}/useOutsideAlerter.tsx +0 -0
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  <h1 align="center">FireCMS</h1>
12
- <h3 align="center">Awesome Firebase/Firestore-based headless CMS</h3>
12
+ <h3 align="center">Awesome Firebase/MongoDB-based headless CMS</h3>
13
13
  <p align="center"><a href="https://demo.firecms.co">Live demo</a></p>
14
14
 
15
15
  <br />
@@ -49,7 +49,7 @@ FireCMS is based on this great technologies:
49
49
  The easiest way to get going is to check our quickstart guide! You will just
50
50
  need to follow some quick steps:
51
51
 
52
- https://firecms.co/docs/quickstart
52
+ https://firecms.co/docs
53
53
 
54
54
  ### Demo
55
55
 
@@ -89,7 +89,7 @@ navigating through **subcollections** and accessing custom views (such as custom
89
89
  forms or blog previews). This functionality can also be accessed
90
90
  programmatically using the `useSideEntityController` hook.
91
91
 
92
- FireCMS includes **over 15 built-in fields** with numerous customization and
92
+ FireCMS includes **over 20 built-in fields** with numerous customization and
93
93
  validation options. The components have been carefully designed for an
94
94
  outstanding user experience, including advanced features like **references** to
95
95
  other collections, **markdown**, and **array reordering**.
@@ -4,6 +4,7 @@ export interface AvatarProps {
4
4
  alt?: string;
5
5
  children?: React.ReactNode;
6
6
  className?: string;
7
+ outerClassName?: string;
7
8
  style?: React.CSSProperties;
8
9
  }
9
10
  export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLButtonElement>>;
@@ -3,7 +3,7 @@ export type BooleanSwitchProps = {
3
3
  value: boolean | null;
4
4
  className?: string;
5
5
  disabled?: boolean;
6
- size?: "small" | "medium";
6
+ size?: "smallest" | "small" | "medium";
7
7
  } & ({
8
8
  allowIndeterminate: true;
9
9
  onValueChange?: (newValue: boolean | null) => void;
@@ -6,9 +6,12 @@ export type BooleanSwitchWithLabelProps = BooleanSwitchProps & {
6
6
  label?: React.ReactNode;
7
7
  error?: boolean;
8
8
  autoFocus?: boolean;
9
+ fullWidth?: boolean;
10
+ className?: string;
11
+ inputClassName?: string;
9
12
  };
10
13
  /**
11
14
  * Simple boolean switch.
12
15
  *
13
16
  */
14
- export declare const BooleanSwitchWithLabel: ({ value, position, invisible, onValueChange, error, label, autoFocus, disabled, size, ...props }: BooleanSwitchWithLabelProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const BooleanSwitchWithLabel: ({ value, position, invisible, onValueChange, error, label, autoFocus, disabled, size, className, fullWidth, inputClassName, ...props }: BooleanSwitchWithLabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export type ButtonProps<P extends React.ElementType> = Omit<(P extends "button" ? React.ButtonHTMLAttributes<HTMLButtonElement> : React.ComponentProps<P>), "onClick"> & {
3
- variant?: "filled" | "outlined" | "text";
3
+ variant?: "filled" | "neutral" | "outlined" | "text";
4
4
  disabled?: boolean;
5
5
  color?: "primary" | "secondary" | "text" | "error";
6
6
  size?: "small" | "medium" | "large" | "xl" | "2xl";
@@ -1,7 +1,9 @@
1
1
  import React from "react";
2
- export declare function CenteredView({ children, maxWidth, className, fullScreen }: {
2
+ export type CenteredViewProps = {
3
3
  children: React.ReactNode;
4
4
  maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
5
+ outerClassName?: string;
5
6
  className?: string;
6
7
  fullScreen?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ export declare const CenteredView: React.ForwardRefExoticComponent<CenteredViewProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,10 +1,11 @@
1
1
  export interface CheckboxProps {
2
2
  checked: boolean;
3
+ id?: string;
3
4
  disabled?: boolean;
4
5
  indeterminate?: boolean;
5
6
  onCheckedChange?: (checked: boolean) => void;
6
7
  padding?: boolean;
7
- size?: "tiny" | "small" | "medium" | "large";
8
+ size?: "smallest" | "small" | "medium" | "large";
8
9
  color?: "primary" | "secondary";
9
10
  }
10
- export declare const Checkbox: ({ checked, indeterminate, padding, disabled, size, onCheckedChange, color }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const Checkbox: ({ id, checked, indeterminate, padding, disabled, size, onCheckedChange, color }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,14 +8,15 @@ export type ChipColorKey = keyof typeof CHIP_COLORS;
8
8
  export interface ChipProps {
9
9
  className?: string;
10
10
  children: React.ReactNode;
11
- size?: "tiny" | "small" | "medium";
11
+ size?: "smallest" | "small" | "medium";
12
12
  colorScheme?: ChipColorScheme | ChipColorKey;
13
13
  error?: boolean;
14
14
  outlined?: boolean;
15
15
  onClick?: () => void;
16
16
  icon?: React.ReactNode;
17
+ style?: React.CSSProperties;
17
18
  }
18
19
  /**
19
20
  * @group Preview components
20
21
  */
21
- export declare function Chip({ children, colorScheme, error, outlined, onClick, icon, size, className }: ChipProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function Chip({ children, colorScheme, error, outlined, onClick, icon, size, className, style }: ChipProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,17 @@
1
1
  import React from "react";
2
- interface DateTimeFieldProps {
3
- value?: Date;
4
- onChange: (date: Date | null) => void;
2
+ export type DateTimeFieldProps = {
3
+ value?: Date | null;
4
+ onChange?: (date: Date | null) => void;
5
5
  mode?: "date" | "date_time";
6
6
  disabled?: boolean;
7
7
  clearable?: boolean;
8
8
  error?: boolean;
9
- size: "small" | "medium";
9
+ size?: "small" | "medium";
10
10
  label?: React.ReactNode;
11
11
  className?: string;
12
12
  style?: React.CSSProperties;
13
13
  inputClassName?: string;
14
14
  invisible?: boolean;
15
- preventOpenOnFocus?: boolean;
16
15
  locale?: string;
17
- }
16
+ };
18
17
  export declare const DateTimeField: React.FC<DateTimeFieldProps>;
19
- export {};
@@ -11,6 +11,9 @@ export type DialogProps = {
11
11
  maxWidth?: keyof typeof widthClasses;
12
12
  modal?: boolean;
13
13
  onOpenAutoFocus?: (e: Event) => void;
14
+ onEscapeKeyDown?: (e: KeyboardEvent) => void;
15
+ onPointerDownOutside?: (e: Event) => void;
16
+ onInteractOutside?: (e: Event) => void;
14
17
  };
15
18
  declare const widthClasses: {
16
19
  xs: string;
@@ -26,5 +29,5 @@ declare const widthClasses: {
26
29
  "7xl": string;
27
30
  full: string;
28
31
  };
29
- export declare const Dialog: ({ open, onOpenChange, children, className, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus }: DialogProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const Dialog: ({ open, onOpenChange, children, className, fullWidth, fullHeight, fullScreen, scrollable, maxWidth, modal, onOpenAutoFocus, onEscapeKeyDown, onPointerDownOutside, onInteractOutside }: DialogProps) => import("react/jsx-runtime").JSX.Element;
30
33
  export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { TypographyProps, TypographyVariant } from "./Typography";
3
+ export type DialogContentProps = TypographyProps & {
4
+ children: React.ReactNode;
5
+ hidden?: boolean;
6
+ className?: string;
7
+ variant?: TypographyVariant;
8
+ };
9
+ export declare function DialogTitle({ children, hidden, className, variant, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from "react";
2
- export declare function ExpandablePanel({ title, children, invisible, expanded, onExpandedChange, initiallyExpanded, titleClassName, asField, className }: PropsWithChildren<{
2
+ export declare function ExpandablePanel({ title, children, invisible, expanded, onExpandedChange, initiallyExpanded, titleClassName, asField, className, innerClassName }: PropsWithChildren<{
3
3
  title: React.ReactNode;
4
4
  invisible?: boolean;
5
5
  initiallyExpanded?: boolean;
@@ -8,4 +8,5 @@ export declare function ExpandablePanel({ title, children, invisible, expanded,
8
8
  titleClassName?: string;
9
9
  asField?: boolean;
10
10
  className?: string;
11
+ innerClassName?: string;
11
12
  }>): import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ export interface FileUploadError {
5
5
  }
6
6
  export type OnFileUploadRejected = (fileRejections: {
7
7
  file: File;
8
- errors: FileUploadError[];
8
+ errors: readonly FileUploadError[];
9
9
  }[], event: object) => void;
10
10
  export type OnFilesUploadAdded = (files: File[]) => void;
11
11
  export type FileUploadProps = {
@@ -6,6 +6,6 @@ export type InputLabelProps = {
6
6
  } & React.LabelHTMLAttributes<HTMLLabelElement>;
7
7
  export declare const InputLabel: React.ForwardRefExoticComponent<{
8
8
  children?: React.ReactNode;
9
- className?: string | undefined;
10
- shrink?: boolean | undefined;
9
+ className?: string;
10
+ shrink?: boolean;
11
11
  } & React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
@@ -1,4 +1,7 @@
1
1
  import * as React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
3
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
4
+ border?: boolean;
5
+ onClick?: React.MouseEventHandler<HTMLLabelElement>;
6
+ } & React.RefAttributes<HTMLLabelElement>>;
4
7
  export { Label };
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  export interface MarkdownProps {
3
3
  source: string;
4
+ size?: "small" | "medium" | "large" | "xl" | "2xl";
4
5
  className?: string;
5
6
  }
6
7
  /**
@@ -6,11 +6,15 @@ export type MenuProps = {
6
6
  defaultOpen?: boolean;
7
7
  onOpenChange?(open: boolean): void;
8
8
  portalContainer?: HTMLElement | null;
9
+ side?: "top" | "right" | "bottom" | "left";
10
+ align?: "start" | "center" | "end";
9
11
  };
10
- export declare function Menu({ children, trigger, open, defaultOpen, onOpenChange, portalContainer }: MenuProps): import("react/jsx-runtime").JSX.Element;
12
+ declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLButtonElement>>;
13
+ export { Menu };
11
14
  export type MenuItemProps = {
12
15
  children: React.ReactNode;
13
16
  dense?: boolean;
14
17
  onClick?: (event: React.MouseEvent) => void;
15
18
  };
16
- export declare function MenuItem({ children, dense, onClick }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function MenuItem({ children, dense, // Default value is false if not provided
20
+ onClick }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,79 @@
1
+ import * as React from "react";
2
+ export declare function Menubar({ children, onSelect, className }: {
3
+ children: React.ReactNode;
4
+ onSelect?: (event: React.SyntheticEvent) => void;
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function MenubarMenu({ children, }: {
8
+ children: React.ReactNode;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export declare function MenubarTrigger({ children, onSelect, className }: {
11
+ children: React.ReactNode;
12
+ onSelect?: (event: React.SyntheticEvent) => void;
13
+ className?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function MenubarPortal({ children, }: {
16
+ children: React.ReactNode;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ export declare function MenubarContent({ children, className, align, sideOffset, alignOffset, onSelect, ...rest }: {
19
+ children: React.ReactNode;
20
+ className?: string;
21
+ onSelect?: (event: React.SyntheticEvent) => void;
22
+ align?: "start" | "center" | "end";
23
+ sideOffset?: number;
24
+ alignOffset?: number;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ export declare function MenubarItem({ children, leftPadding, className, disabled, onSelect, ...rest }: {
27
+ children: React.ReactNode;
28
+ onSelect?: (event: Event) => void;
29
+ leftPadding?: boolean;
30
+ className?: string;
31
+ disabled?: boolean;
32
+ }): import("react/jsx-runtime").JSX.Element;
33
+ export declare function MenubarSeparator({ children, className, ...rest }: {
34
+ children?: React.ReactNode;
35
+ className?: string;
36
+ }): import("react/jsx-runtime").JSX.Element;
37
+ export declare function MenubarSub({ children, ...rest }: {
38
+ children?: React.ReactNode;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ export declare function MenubarSubTrigger({ children, className, onSelect, ...rest }: {
41
+ children?: React.ReactNode;
42
+ onSelect?: (event: React.SyntheticEvent) => void;
43
+ className?: string;
44
+ }): import("react/jsx-runtime").JSX.Element;
45
+ export declare function MenubarSubContent({ children, alignOffset, className, onSelect, ...rest }: {
46
+ children?: React.ReactNode;
47
+ onSelect?: (event: React.SyntheticEvent) => void;
48
+ alignOffset?: number;
49
+ className?: string;
50
+ }): import("react/jsx-runtime").JSX.Element;
51
+ export declare function MenubarCheckboxItem({ children, checked, onCheckedChange, className, onSelect, ...rest }: {
52
+ children?: React.ReactNode;
53
+ onSelect?: (event: Event) => void;
54
+ checked?: boolean;
55
+ onCheckedChange?: () => void;
56
+ className?: string;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ export declare function MenubarItemIndicator({ children, className, ...rest }: {
59
+ children?: React.ReactNode;
60
+ className?: string;
61
+ }): import("react/jsx-runtime").JSX.Element;
62
+ export declare function MenubarRadioGroup({ children, className, value, onValueChange, onSelect, ...rest }: {
63
+ children?: React.ReactNode;
64
+ onSelect?: (event: React.SyntheticEvent) => void;
65
+ value?: string;
66
+ onValueChange?: (value: string) => void;
67
+ className?: string;
68
+ }): import("react/jsx-runtime").JSX.Element;
69
+ export declare function MenubarRadioItem({ children, className, value, onSelect, ...rest }: {
70
+ children?: React.ReactNode;
71
+ onSelect?: (event: Event) => void;
72
+ value: string;
73
+ className?: string;
74
+ }): import("react/jsx-runtime").JSX.Element;
75
+ export declare function MenubarShortcut({ children, className, ...rest }: {
76
+ children?: React.ReactNode;
77
+ className?: string;
78
+ }): import("react/jsx-runtime").JSX.Element;
79
+ export declare function MenubarSubTriggerIndicator(): import("react/jsx-runtime").JSX.Element;
@@ -1,35 +1,51 @@
1
1
  import * as React from "react";
2
- export type MultiSelectProps = {
2
+ import { ChangeEvent } from "react";
3
+ interface MultiSelectContextProps {
4
+ fieldValue?: string[];
5
+ onItemClick: (v: string) => void;
6
+ }
7
+ export declare const MultiSelectContext: React.Context<MultiSelectContextProps>;
8
+ /**
9
+ * Props for MultiSelect component
10
+ */
11
+ interface MultiSelectProps {
12
+ /**
13
+ * The modality of the popover. When set to true, interaction with outside elements
14
+ * will be disabled and only popover content will be visible to screen readers.
15
+ * Optional, defaults to false.
16
+ */
17
+ modalPopover?: boolean;
18
+ /**
19
+ * Additional class names to apply custom styles to the multi-select component.
20
+ * Optional, can be used to add custom styles.
21
+ */
22
+ className?: string;
3
23
  open?: boolean;
4
24
  name?: string;
5
25
  id?: string;
6
26
  onOpenChange?: (open: boolean) => void;
7
27
  value?: string[];
8
- containerClassName?: string;
9
- className?: string;
10
28
  inputClassName?: string;
11
- onMultiValueChange?: (updatedValue: string[]) => void;
29
+ onChange?: React.EventHandler<ChangeEvent<HTMLSelectElement>>;
30
+ onValueChange?: (updatedValue: string[]) => void;
12
31
  placeholder?: React.ReactNode;
13
- renderValue?: (values: string, index: number) => React.ReactNode;
14
- renderValues?: (values: string[]) => React.ReactNode;
15
32
  size?: "small" | "medium";
16
- label?: React.ReactNode;
33
+ useChips?: boolean;
34
+ label?: React.ReactNode | string;
17
35
  disabled?: boolean;
18
36
  error?: boolean;
19
37
  position?: "item-aligned" | "popper";
20
38
  endAdornment?: React.ReactNode;
39
+ multiple?: boolean;
40
+ includeSelectAll?: boolean;
41
+ includeClear?: boolean;
21
42
  inputRef?: React.RefObject<HTMLButtonElement>;
22
43
  padding?: boolean;
23
- includeFocusOutline?: boolean;
24
- children?: React.ReactNode;
25
- };
26
- interface MultiSelectContextProps {
27
- fieldValue?: string[];
28
- setInputValue: (v: string) => void;
29
- onValueChangeInternal: (v: string) => void;
44
+ invisible?: boolean;
45
+ children: React.ReactNode;
46
+ renderValues?: (values: string[]) => React.ReactNode;
30
47
  }
31
- export declare const MultiSelectContext: React.Context<MultiSelectContextProps>;
32
- export declare function MultiSelect({ value, open, onMultiValueChange, size, label, disabled, renderValue, renderValues, includeFocusOutline, containerClassName, className, children, error }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
48
+ export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
33
49
  export interface MultiSelectItemProps {
34
50
  value: string;
35
51
  children?: React.ReactNode;
@@ -17,5 +17,6 @@ export interface PopoverProps {
17
17
  enabled?: boolean;
18
18
  modal?: boolean;
19
19
  className?: string;
20
+ portalContainer?: HTMLElement | null;
20
21
  }
21
- export declare function Popover({ trigger, children, open, onOpenChange, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, enabled, modal, className }: PopoverProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function Popover({ trigger, children, open, onOpenChange, side, sideOffset, align, alignOffset, arrowPadding, sticky, hideWhenDetached, avoidCollisions, enabled, modal, portalContainer, className }: PopoverProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,28 @@
1
1
  import * as React from "react";
2
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
- declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export interface RadioGroupProps {
3
+ id?: string;
4
+ children: React.ReactNode;
5
+ name?: string;
6
+ required?: boolean;
7
+ disabled?: boolean;
8
+ /**
9
+ * Whether keyboard navigation should loop around
10
+ * @defaultValue false
11
+ */
12
+ loop?: boolean;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?(value: string): void;
16
+ className?: string;
17
+ }
18
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
19
+ export interface RadioGroupItemProps {
20
+ id?: string;
21
+ value: string;
22
+ checked?: boolean;
23
+ required?: boolean;
24
+ className?: string;
25
+ disabled?: boolean;
26
+ }
27
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
5
28
  export { RadioGroup, RadioGroupItem };
@@ -1,32 +1,28 @@
1
- import React from "react";
1
+ import React, { ChangeEvent } from "react";
2
2
  export type SelectProps = {
3
3
  open?: boolean;
4
4
  name?: string;
5
5
  id?: string;
6
6
  onOpenChange?: (open: boolean) => void;
7
- value?: string | string[];
7
+ value?: string;
8
8
  className?: string;
9
9
  inputClassName?: string;
10
- onChange?: React.EventHandler<React.ChangeEvent<HTMLSelectElement>>;
10
+ onChange?: React.EventHandler<ChangeEvent<HTMLSelectElement>>;
11
11
  onValueChange?: (updatedValue: string) => void;
12
- onMultiValueChange?: (updatedValue: string[]) => void;
13
12
  placeholder?: React.ReactNode;
14
- renderValue?: (value: string, index: number) => React.ReactNode;
15
- renderValues?: (values: string[]) => React.ReactNode;
13
+ renderValue?: (value: string) => React.ReactNode;
16
14
  size?: "small" | "medium";
17
- label?: React.ReactNode;
15
+ label?: React.ReactNode | string;
18
16
  disabled?: boolean;
19
17
  error?: boolean;
20
18
  position?: "item-aligned" | "popper";
21
19
  endAdornment?: React.ReactNode;
22
- multiple?: boolean;
23
20
  inputRef?: React.RefObject<HTMLButtonElement>;
24
21
  padding?: boolean;
25
- includeFocusOutline?: boolean;
26
22
  invisible?: boolean;
27
23
  children?: React.ReactNode;
28
24
  };
29
- export declare function Select({ inputRef, open, name, id, onOpenChange, value, onChange, onValueChange, onMultiValueChange, className, inputClassName, placeholder, renderValue, renderValues, label, size, includeFocusOutline, error, disabled, padding, position, endAdornment, multiple, invisible, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
30
26
  export type SelectItemProps = {
31
27
  value: string;
32
28
  children?: React.ReactNode;
@@ -1,4 +1,5 @@
1
- export declare function Separator({ orientation, decorative }: {
1
+ export declare function Separator({ orientation, decorative, className }: {
2
2
  orientation: "horizontal" | "vertical";
3
3
  decorative?: boolean;
4
+ className?: string;
4
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -2,9 +2,15 @@ import React from "react";
2
2
  interface SheetProps {
3
3
  children: React.ReactNode;
4
4
  open: boolean;
5
+ title?: string;
6
+ modal?: boolean;
7
+ includeBackgroundOverlay?: boolean;
5
8
  side?: "top" | "bottom" | "left" | "right";
9
+ darkBackground?: boolean;
6
10
  transparent?: boolean;
7
11
  onOpenChange?: (open: boolean) => void;
12
+ className?: string;
13
+ overlayClassName?: string;
8
14
  }
9
15
  export declare const Sheet: React.FC<SheetProps>;
10
16
  export {};
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ export interface SliderProps {
3
+ className?: string;
4
+ name?: string;
5
+ disabled?: boolean;
6
+ orientation?: React.AriaAttributes["aria-orientation"];
7
+ dir?: "ltr" | "rtl";
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ minStepsBetweenThumbs?: number;
12
+ value?: number[];
13
+ defaultValue?: number[];
14
+ onValueChange?: (value: number[]) => void;
15
+ onValueCommit?: (value: number[]) => void;
16
+ inverted?: boolean;
17
+ form?: string;
18
+ size?: "small" | "regular";
19
+ }
20
+ declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
21
+ export { Slider };
@@ -3,25 +3,25 @@ export type TableProps = {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
- };
7
- export declare const Table: ({ children, className, style }: TableProps) => import("react/jsx-runtime").JSX.Element;
6
+ } & React.TableHTMLAttributes<HTMLTableElement>;
7
+ export declare const Table: ({ children, className, style, ...rest }: TableProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export type TableBodyProps = {
9
9
  children?: React.ReactNode;
10
10
  className?: string;
11
- };
12
- export declare const TableBody: ({ children, className }: TableBodyProps) => import("react/jsx-runtime").JSX.Element;
11
+ } & React.HTMLAttributes<HTMLTableSectionElement>;
12
+ export declare const TableBody: ({ children, className, ...rest }: TableBodyProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export type TableHeaderProps = {
14
14
  children?: React.ReactNode;
15
15
  className?: string;
16
- };
17
- export declare const TableHeader: ({ children, className }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element;
16
+ } & React.HTMLAttributes<HTMLTableSectionElement>;
17
+ export declare const TableHeader: ({ children, className, ...rest }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element;
18
18
  export type TableRowProps = {
19
19
  children?: React.ReactNode;
20
20
  className?: string;
21
21
  onClick?: React.MouseEventHandler<any>;
22
22
  style?: React.CSSProperties;
23
- };
24
- export declare const TableRow: ({ children, className, onClick, style }: TableRowProps) => import("react/jsx-runtime").JSX.Element;
23
+ } & React.HTMLAttributes<HTMLTableRowElement>;
24
+ export declare const TableRow: ({ children, className, onClick, style, ...rest }: TableRowProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export type TableCellProps = {
26
26
  children?: React.ReactNode;
27
27
  header?: boolean;
@@ -30,5 +30,5 @@ export type TableCellProps = {
30
30
  style?: React.CSSProperties;
31
31
  align?: "left" | "center" | "right";
32
32
  colspan?: number;
33
- };
34
- export declare const TableCell: ({ children, header, scope, align, className, style, colspan }: TableCellProps) => import("react/jsx-runtime").JSX.Element;
33
+ } & React.HTMLAttributes<HTMLTableCellElement>;
34
+ export declare const TableCell: ({ children, header, scope, align, className, style, colspan, ...rest }: TableCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,14 +2,16 @@ import React from "react";
2
2
  export type TabsProps = {
3
3
  value: string;
4
4
  children: React.ReactNode;
5
+ innerClassName?: string;
5
6
  className?: string;
6
7
  onValueChange: (value: string) => void;
7
8
  };
8
- export declare function Tabs({ value, onValueChange, className, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Tabs({ value, onValueChange, className, innerClassName, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
9
10
  export type TabProps = {
10
11
  value: string;
11
12
  className?: string;
13
+ innerClassName?: string;
12
14
  children: React.ReactNode;
13
15
  disabled?: boolean;
14
16
  };
15
- export declare function Tab({ value, className, children, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Tab({ value, className, innerClassName, children, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
@@ -13,7 +13,7 @@ export type TextFieldProps<T extends string | number> = {
13
13
  endAdornment?: React.ReactNode;
14
14
  autoFocus?: boolean;
15
15
  placeholder?: string;
16
- size?: "small" | "medium";
16
+ size?: "smallest" | "small" | "medium";
17
17
  className?: string;
18
18
  style?: React.CSSProperties;
19
19
  inputClassName?: string;
@@ -3,40 +3,9 @@ type State = {
3
3
  outerHeightStyle: number;
4
4
  overflow?: boolean | undefined;
5
5
  };
6
- export declare const TextareaAutosize: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
7
- className?: string | undefined;
8
- shadowClassName?: string | undefined;
9
- /**
10
- * Maximum number of rows to display.
11
- */
12
- maxRows?: string | number | undefined;
13
- /**
14
- * Minimum number of rows to display.
15
- * @default 1
16
- */
17
- minRows?: string | number | undefined;
18
- /**
19
- * @ignore
20
- */
21
- onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
22
- /**
23
- * @ignore
24
- */
25
- placeholder?: string | undefined;
26
- /**
27
- * @ignore
28
- */
29
- style?: object | undefined;
30
- /**
31
- * @ignore
32
- */
33
- value?: string | number | string[] | undefined;
34
- sizeRef?: React.RefObject<HTMLDivElement> | undefined;
35
- onScroll?: ((event: React.UIEvent<HTMLTextAreaElement>) => void) | undefined;
36
- onResize?: ((state: State) => void) | undefined;
37
- autoFocus?: boolean | undefined;
38
- ignoreBoxSizing?: boolean | undefined;
39
- } & React.RefAttributes<Element>>;
6
+ export declare const TextareaAutosize: React.FC<TextareaAutosizeProps & {
7
+ ref?: React.ForwardedRef<Element>;
8
+ }>;
40
9
  export type TextareaAutosizeProps = Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
41
10
  className?: string;
42
11
  shadowClassName?: string;