moduix 0.6.1 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Bleed/Bleed.d.ts +5 -4
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -9
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +9 -1
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +10 -1
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +2 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +2 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts +5 -2
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Menubar/Menubar.d.ts +2 -2
- package/dist/components/Meter/Meter.d.ts +10 -5
- package/dist/components/Meter/index.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +8 -3
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.d.ts +14 -2
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +653 -597
- package/package.json +15 -12
package/README.md
CHANGED
|
@@ -64,14 +64,17 @@ This keeps library styles predictable while still letting application styles ove
|
|
|
64
64
|
|
|
65
65
|
The package exports composed components for common UI needs: Accordion, AlertDialog, Autocomplete, Avatar, Button, Checkbox, Dialog, Drawer, Field, Form, Input, Menu, NavigationMenu, Popover, Select, Tabs, Toast, Tooltip, and more. It also exports small shared primitives such as icons and close buttons.
|
|
66
66
|
|
|
67
|
-
##
|
|
67
|
+
## Acknowledgements
|
|
68
68
|
|
|
69
69
|
This project could not exist without the work of these teams and communities:
|
|
70
70
|
|
|
71
71
|
- [Base UI](https://base-ui.com/) for the accessible React primitives that power the components.
|
|
72
|
-
- [shadcn/ui](https://ui.shadcn.com/) for the API inspiration and the culture of practical,
|
|
72
|
+
- [shadcn/ui](https://ui.shadcn.com/) for the API inspiration and the culture of practical,
|
|
73
|
+
readable component composition.
|
|
74
|
+
- [Tailwind CSS](https://tailwindcss.com/) for the reset.css implementation.
|
|
73
75
|
- [Fumadocs](https://fumadocs.dev/) for the documentation foundation.
|
|
74
76
|
- [TanStack](https://tanstack.com/) for the application tooling used by the docs.
|
|
77
|
+
- [Voidzero](https://voidzero.dev/) for awesome JS tools
|
|
75
78
|
|
|
76
79
|
## Publishing Checklist
|
|
77
80
|
|
|
@@ -49,4 +49,4 @@ declare const useAutocompleteFilteredItems: typeof AutocompletePrimitive.useFilt
|
|
|
49
49
|
type AutocompleteProps<Value = unknown> = AutocompletePrimitive.Root.Props<Value>;
|
|
50
50
|
type AutocompleteValueType<Value = unknown> = AutocompleteProps<Value>['value'];
|
|
51
51
|
export { Autocomplete, AutocompleteField, AutocompleteInlineInputContainer, AutocompleteFieldLabel, AutocompleteValue, AutocompleteInputGroup, AutocompleteInput, AutocompleteControlActions, AutocompleteTrigger, AutocompleteFieldTrigger, AutocompleteIcon, AutocompleteClear, AutocompleteContent, AutocompleteStatus, AutocompleteEmpty, AutocompleteList, AutocompleteRow, AutocompleteItem, AutocompleteItemText, AutocompleteItemTextContent, AutocompleteItemTextIcon, AutocompleteItemTextLabel, AutocompleteSeparator, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteCollection, useAutocompleteAnchor, useAutocompleteFilter, useAutocompleteFilteredItems, };
|
|
52
|
-
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentProps };
|
|
52
|
+
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentClassNames, AutocompleteContentProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Autocomplete, AutocompleteField, AutocompleteInlineInputContainer, AutocompleteFieldLabel, AutocompleteValue, AutocompleteInputGroup, AutocompleteInput, AutocompleteControlActions, AutocompleteTrigger, AutocompleteFieldTrigger, AutocompleteIcon, AutocompleteClear, AutocompleteContent, AutocompleteStatus, AutocompleteEmpty, AutocompleteList, AutocompleteRow, AutocompleteItem, AutocompleteItemText, AutocompleteItemTextContent, AutocompleteItemTextIcon, AutocompleteItemTextLabel, AutocompleteSeparator, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteCollection, useAutocompleteAnchor, useAutocompleteFilter, useAutocompleteFilteredItems, } from './Autocomplete';
|
|
2
|
-
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentProps, } from './Autocomplete';
|
|
2
|
+
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentClassNames, AutocompleteContentProps, } from './Autocomplete';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type BleedAs = 'div' | 'section' | 'figure' | 'aside';
|
|
3
2
|
type BleedInline = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
3
|
type BleedBlock = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
-
type
|
|
6
|
-
|
|
4
|
+
type BleedAs = React.ElementType;
|
|
5
|
+
type BleedOwnProps<As extends BleedAs = 'div'> = {
|
|
6
|
+
as?: As;
|
|
7
7
|
inline?: BleedInline;
|
|
8
8
|
block?: BleedBlock;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type BleedProps<As extends BleedAs = 'div'> = BleedOwnProps<As> & Omit<React.ComponentPropsWithoutRef<As>, keyof BleedOwnProps<As>>;
|
|
11
|
+
declare function Bleed<As extends BleedAs = 'div'>({ as, inline, block, className, ...props }: BleedProps<As>): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export { Bleed };
|
|
12
13
|
export type { BleedProps, BleedAs, BleedInline, BleedBlock };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
type CheckboxClassNames = {
|
|
5
|
+
indicator?: string;
|
|
6
|
+
indicatorIcon?: string;
|
|
7
|
+
checkedIcon?: string;
|
|
8
|
+
indeterminateIcon?: string;
|
|
9
|
+
};
|
|
4
10
|
type CheckboxProps = CheckboxPrimitive.Root.Props & {
|
|
5
11
|
size?: CheckboxSize;
|
|
6
12
|
indicator?: React.ReactNode;
|
|
7
13
|
checkedIcon?: React.ReactNode;
|
|
8
14
|
indeterminateIcon?: React.ReactNode;
|
|
9
|
-
classNames?:
|
|
10
|
-
indicator?: string;
|
|
11
|
-
indicatorIcon?: string;
|
|
12
|
-
checkedIcon?: string;
|
|
13
|
-
indeterminateIcon?: string;
|
|
14
|
-
};
|
|
15
|
+
classNames?: CheckboxClassNames;
|
|
15
16
|
};
|
|
16
17
|
declare function Checkbox({ className, size, children, indicator, checkedIcon, indeterminateIcon, classNames, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
type CheckboxIndicatorProps = CheckboxPrimitive.Indicator.Props & {
|
|
@@ -28,7 +29,9 @@ type CheckboxIndicatorIconProps = Omit<React.ComponentProps<'span'>, 'children'>
|
|
|
28
29
|
indeterminateIconClassName?: string;
|
|
29
30
|
};
|
|
30
31
|
declare function CheckboxIndicatorIcon({ className, checkedIcon, checkedIconClassName, indeterminateIcon, indeterminateIconClassName, ...props }: CheckboxIndicatorIconProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
|
|
32
|
-
declare function
|
|
32
|
+
type CheckboxFieldProps = React.ComponentProps<'label'>;
|
|
33
|
+
declare function CheckboxField({ className, ...props }: CheckboxFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
type CheckboxLabelProps = React.ComponentProps<'span'>;
|
|
35
|
+
declare function CheckboxLabel({ className, ...props }: CheckboxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
33
36
|
export { Checkbox, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxField, CheckboxLabel };
|
|
34
|
-
export type { CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps };
|
|
37
|
+
export type { CheckboxSize, CheckboxClassNames, CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps, CheckboxFieldProps, CheckboxLabelProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Checkbox, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxField, CheckboxLabel, } from './Checkbox';
|
|
2
|
-
export type { CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps } from './Checkbox';
|
|
2
|
+
export type { CheckboxSize, CheckboxClassNames, CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps, CheckboxFieldProps, CheckboxLabelProps, } from './Checkbox';
|
|
@@ -59,4 +59,4 @@ declare const useComboboxFilteredItems: typeof ComboboxPrimitive.useFilteredItem
|
|
|
59
59
|
type ComboboxProps<Value = unknown, Multiple extends boolean | undefined = false> = ComboboxPrimitive.Root.Props<Value, Multiple>;
|
|
60
60
|
type ComboboxValueType<Value = unknown, Multiple extends boolean | undefined = false> = ComboboxProps<Value, Multiple>['value'];
|
|
61
61
|
export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxIcon, ComboboxClear, ComboboxContent, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxItemTextContent, ComboboxItemTextIcon, ComboboxItemTextLabel, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxInlineInputContainer, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxAnchor, useComboboxFilter, useComboboxFilteredItems, };
|
|
62
|
-
export type { ComboboxProps, ComboboxValueType, ComboboxContentProps, ComboboxFieldLabelProps };
|
|
62
|
+
export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldLabelProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxIcon, ComboboxClear, ComboboxContent, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxItemTextContent, ComboboxItemTextIcon, ComboboxItemTextLabel, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxInlineInputContainer, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxAnchor, useComboboxFilter, useComboboxFilteredItems, } from './Combobox';
|
|
2
|
-
export type { ComboboxProps, ComboboxValueType, ComboboxContentProps, ComboboxFieldLabelProps, } from './Combobox';
|
|
2
|
+
export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldLabelProps, } from './Combobox';
|
|
@@ -22,7 +22,7 @@ type ContextMenuCheckboxItemProps = ContextMenuPrimitive.CheckboxItem.Props & {
|
|
|
22
22
|
};
|
|
23
23
|
declare const ContextMenu: typeof ContextMenuPrimitive.Root;
|
|
24
24
|
declare const ContextMenuSubmenu: typeof ContextMenuPrimitive.SubmenuRoot;
|
|
25
|
-
declare function ContextMenuTrigger({ className, ...props }: ContextMenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function ContextMenuTrigger({ className, render, ...props }: ContextMenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
declare function ContextMenuArrow({ className, children, ...props }: ContextMenuPrimitive.Arrow.Props): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
declare function ContextMenuContent({ className, classNames, container, withBackdrop, portalProps, backdropProps, positionerProps, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, disableAnchorTracking, ...props }: ContextMenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
declare function ContextMenuSubmenuContent({ sideOffset, alignOffset, ...props }: ContextMenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,5 +27,13 @@ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div
|
|
|
27
27
|
declare function DialogBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
type DialogProps<Payload = unknown> = DialogPrimitive.Root.Props<Payload>;
|
|
29
29
|
type DialogHandle<Payload = unknown> = DialogPrimitive.Handle<Payload>;
|
|
30
|
+
type DialogTriggerProps = DialogPrimitive.Trigger.Props;
|
|
31
|
+
type DialogTitleProps = DialogPrimitive.Title.Props;
|
|
32
|
+
type DialogDescriptionProps = DialogPrimitive.Description.Props;
|
|
33
|
+
type DialogCloseProps = DialogPrimitive.Close.Props;
|
|
34
|
+
type DialogCloseIconProps = DialogPrimitive.Close.Props;
|
|
35
|
+
type DialogHeaderProps = React.ComponentProps<'div'>;
|
|
36
|
+
type DialogBodyProps = React.ComponentProps<'div'>;
|
|
37
|
+
type DialogFooterProps = React.ComponentProps<'div'>;
|
|
30
38
|
export { Dialog, createDialogHandle, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, };
|
|
31
|
-
export type { DialogProps, DialogHandle, DialogContentProps, DialogContentClassNames };
|
|
39
|
+
export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogHeaderProps, DialogBodyProps, DialogFooterProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Dialog, createDialogHandle, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, } from './Dialog';
|
|
2
|
-
export type { DialogProps, DialogHandle, DialogContentProps, DialogContentClassNames, } from './Dialog';
|
|
2
|
+
export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogHeaderProps, DialogBodyProps, DialogFooterProps, } from './Dialog';
|
|
@@ -44,5 +44,14 @@ declare function DrawerBody({ className, ...props }: React.ComponentProps<'div'>
|
|
|
44
44
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
declare function DrawerContent({ withBackdrop, withHandle, snapLayout, variant, disableInitialAnimation, className, classNames, container, portalProps, backdropProps, viewportProps, contentProps, handleProps, children, ...props }: DrawerContentProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
type DrawerHandleType<Payload = unknown> = DrawerPrimitive.Handle<Payload>;
|
|
47
|
+
type DrawerTriggerProps = DrawerPrimitive.Trigger.Props;
|
|
48
|
+
type DrawerSwipeAreaProps = DrawerPrimitive.SwipeArea.Props;
|
|
49
|
+
type DrawerTitleProps = DrawerPrimitive.Title.Props;
|
|
50
|
+
type DrawerDescriptionProps = DrawerPrimitive.Description.Props;
|
|
51
|
+
type DrawerCloseProps = DrawerPrimitive.Close.Props;
|
|
52
|
+
type DrawerHeaderProps = React.ComponentProps<'div'>;
|
|
53
|
+
type DrawerBodyProps = React.ComponentProps<'div'>;
|
|
54
|
+
type DrawerFooterProps = React.ComponentProps<'div'>;
|
|
55
|
+
type DrawerSnapPoint = NonNullable<DrawerProps['snapPoints']>[number];
|
|
47
56
|
export { Drawer, DrawerProvider, createDrawerHandle, DrawerIndent, DrawerIndentBackground, DrawerTrigger, DrawerSwipeArea, DrawerTitle, DrawerDescription, DrawerClose, DrawerSnapToggle, DrawerHeader, DrawerBody, DrawerFooter, DrawerContent, };
|
|
48
|
-
export type { DrawerProps, DrawerHandleType, DrawerContentProps, DrawerContentClassNames, DrawerSnapToggleProps, };
|
|
57
|
+
export type { DrawerProps, DrawerHandleType, DrawerTriggerProps, DrawerSwipeAreaProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerBodyProps, DrawerFooterProps, DrawerContentProps, DrawerContentClassNames, DrawerSnapToggleProps, DrawerSnapPoint, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Drawer, DrawerProvider, createDrawerHandle, DrawerIndent, DrawerIndentBackground, DrawerTrigger, DrawerSwipeArea, DrawerTitle, DrawerDescription, DrawerClose, DrawerSnapToggle, DrawerHeader, DrawerBody, DrawerFooter, DrawerContent, } from './Drawer';
|
|
2
|
-
export type { DrawerProps, DrawerHandleType, DrawerContentProps, DrawerContentClassNames, DrawerSnapToggleProps, } from './Drawer';
|
|
2
|
+
export type { DrawerProps, DrawerHandleType, DrawerTriggerProps, DrawerSwipeAreaProps, DrawerTitleProps, DrawerDescriptionProps, DrawerCloseProps, DrawerHeaderProps, DrawerBodyProps, DrawerFooterProps, DrawerContentProps, DrawerContentClassNames, DrawerSnapToggleProps, DrawerSnapPoint, } from './Drawer';
|
|
@@ -7,5 +7,6 @@ type FormValidationMode = FormPrimitive.ValidationMode;
|
|
|
7
7
|
type FormSubmitEventReason = FormPrimitive.SubmitEventReason;
|
|
8
8
|
type FormSubmitEventDetails = FormPrimitive.SubmitEventDetails;
|
|
9
9
|
type FormValues<FormValues extends Record<string, any> = Record<string, any>> = FormPrimitive.Values<FormValues>;
|
|
10
|
+
type FormErrors = NonNullable<FormProps['errors']>;
|
|
10
11
|
export { Form };
|
|
11
|
-
export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails, FormValues, };
|
|
12
|
+
export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails, FormValues, FormErrors, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Form } from './Form';
|
|
2
|
-
export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails, FormValues, } from './Form';
|
|
2
|
+
export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails, FormValues, FormErrors, } from './Form';
|
|
@@ -3,7 +3,7 @@ type HeadingAs = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
|
3
3
|
type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
4
|
type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
5
5
|
type HeadingAlign = 'left' | 'center' | 'right';
|
|
6
|
-
type HeadingProps = React.
|
|
6
|
+
type HeadingProps = React.ComponentPropsWithoutRef<HeadingAs> & {
|
|
7
7
|
as?: HeadingAs;
|
|
8
8
|
size?: HeadingSize;
|
|
9
9
|
weight?: HeadingWeight;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Input as InputPrimitive } from '@base-ui/react/input';
|
|
2
|
+
import type * as React from 'react';
|
|
2
3
|
type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
4
|
type InputProps = Omit<InputPrimitive.Props, 'size'> & {
|
|
4
5
|
size?: InputSize;
|
|
@@ -6,4 +7,4 @@ type InputProps = Omit<InputPrimitive.Props, 'size'> & {
|
|
|
6
7
|
};
|
|
7
8
|
declare function Input({ className, size, htmlSize, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export { Input };
|
|
9
|
-
export type { InputProps };
|
|
10
|
+
export type { InputProps, InputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Input } from './Input';
|
|
2
|
-
export type { InputProps } from './Input';
|
|
2
|
+
export type { InputProps, InputSize } from './Input';
|
|
@@ -4,7 +4,7 @@ type ListMarker = 'none' | 'disc' | 'decimal' | 'bullet';
|
|
|
4
4
|
type ListGap = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
5
|
type ListSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
6
|
type ListTone = 'default' | 'muted' | 'subtle' | 'primary' | 'destructive';
|
|
7
|
-
type ListProps = React.
|
|
7
|
+
type ListProps = React.ComponentPropsWithoutRef<ListAs> & {
|
|
8
8
|
as?: ListAs;
|
|
9
9
|
marker?: ListMarker;
|
|
10
10
|
gap?: ListGap;
|
|
@@ -4,14 +4,17 @@ type MenuContentClassNames = {
|
|
|
4
4
|
portal?: MenuPrimitive.Portal.Props['className'];
|
|
5
5
|
backdrop?: MenuPrimitive.Backdrop.Props['className'];
|
|
6
6
|
positioner?: MenuPrimitive.Positioner.Props['className'];
|
|
7
|
+
viewport?: MenuPrimitive.Viewport.Props['className'];
|
|
7
8
|
};
|
|
8
9
|
type MenuContentProps = MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'anchor' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding' | 'sticky' | 'positionMethod' | 'disableAnchorTracking'> & {
|
|
9
10
|
classNames?: MenuContentClassNames;
|
|
10
11
|
container?: MenuPrimitive.Portal.Props['container'];
|
|
11
12
|
withBackdrop?: boolean;
|
|
13
|
+
withViewport?: boolean;
|
|
12
14
|
portalProps?: Omit<MenuPrimitive.Portal.Props, 'className' | 'children'>;
|
|
13
15
|
backdropProps?: Omit<MenuPrimitive.Backdrop.Props, 'className'>;
|
|
14
16
|
positionerProps?: Omit<MenuPrimitive.Positioner.Props, 'className' | 'children'>;
|
|
17
|
+
viewportProps?: Omit<MenuPrimitive.Viewport.Props, 'className' | 'children'>;
|
|
15
18
|
};
|
|
16
19
|
type IndicatorPosition = 'start' | 'end';
|
|
17
20
|
type MenuRadioItemProps = MenuPrimitive.RadioItem.Props & {
|
|
@@ -26,7 +29,7 @@ declare const createMenuHandle: typeof MenuPrimitive.createHandle;
|
|
|
26
29
|
declare function MenuTrigger({ className, render, ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
27
30
|
declare function MenuTriggerIcon({ className, children, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
declare function MenuArrow({ className, children, ...props }: MenuPrimitive.Arrow.Props): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
declare function MenuContent({ className, classNames, children, container, withBackdrop, portalProps, backdropProps, positionerProps, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, disableAnchorTracking, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function MenuContent({ className, classNames, children, container, withBackdrop, withViewport, portalProps, backdropProps, positionerProps, viewportProps, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, disableAnchorTracking, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
30
33
|
declare function MenuSubmenuContent({ sideOffset, alignOffset, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
31
34
|
declare function MenuItem({ className, ...props }: MenuPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
|
|
32
35
|
declare function MenuLinkItem({ className, ...props }: MenuPrimitive.LinkItem.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -55,4 +58,4 @@ type MenuCheckboxItemPropsPublic = MenuCheckboxItemProps;
|
|
|
55
58
|
type MenuSubmenuTriggerProps = MenuPrimitive.SubmenuTrigger.Props;
|
|
56
59
|
type MenuItemShortcutProps = React.ComponentProps<'span'>;
|
|
57
60
|
export { Menu, MenuSubmenu, createMenuHandle, MenuTrigger, MenuTriggerIcon, MenuArrow, MenuContent, MenuSubmenuContent, MenuItem, MenuLinkItem, MenuSeparator, MenuGroup, MenuGroupLabel, MenuSubmenuTrigger, MenuSubmenuTriggerIcon, MenuRadioGroup, MenuRadioItem, MenuRadioItemIndicator, MenuCheckboxItem, MenuCheckboxItemIndicator, MenuItemText, MenuItemTextContent, MenuItemTextIcon, MenuItemTextLabel, MenuItemShortcut, };
|
|
58
|
-
export type { MenuProps, MenuHandle, MenuContentProps, MenuTriggerProps, MenuItemProps, MenuLinkItemProps, MenuRadioItemPropsPublic as MenuRadioItemProps, MenuCheckboxItemPropsPublic as MenuCheckboxItemProps, MenuSubmenuTriggerProps, MenuItemShortcutProps, };
|
|
61
|
+
export type { MenuProps, MenuHandle, MenuContentProps, MenuContentClassNames, MenuTriggerProps, MenuItemProps, MenuLinkItemProps, MenuRadioItemPropsPublic as MenuRadioItemProps, MenuCheckboxItemPropsPublic as MenuCheckboxItemProps, MenuSubmenuTriggerProps, MenuItemShortcutProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Menu, MenuSubmenu, createMenuHandle, MenuTrigger, MenuTriggerIcon, MenuArrow, MenuContent, MenuSubmenuContent, MenuItem, MenuLinkItem, MenuSeparator, MenuGroup, MenuGroupLabel, MenuSubmenuTrigger, MenuSubmenuTriggerIcon, MenuRadioGroup, MenuRadioItem, MenuRadioItemIndicator, MenuCheckboxItem, MenuCheckboxItemIndicator, MenuItemText, MenuItemTextContent, MenuItemTextIcon, MenuItemTextLabel, MenuItemShortcut, } from './Menu';
|
|
2
|
-
export type { MenuProps, MenuHandle, MenuContentProps, MenuTriggerProps, MenuItemProps, MenuLinkItemProps, MenuRadioItemProps, MenuCheckboxItemProps, MenuSubmenuTriggerProps, MenuItemShortcutProps, } from './Menu';
|
|
2
|
+
export type { MenuProps, MenuHandle, MenuContentProps, MenuContentClassNames, MenuTriggerProps, MenuItemProps, MenuLinkItemProps, MenuRadioItemProps, MenuCheckboxItemProps, MenuSubmenuTriggerProps, MenuItemShortcutProps, } from './Menu';
|
|
@@ -27,7 +27,7 @@ declare const MenubarMenu: <Payload>(props: MenuPrimitive.Root.Props<Payload>) =
|
|
|
27
27
|
declare const MenubarSubmenu: typeof MenuPrimitive.SubmenuRoot;
|
|
28
28
|
declare const createMenubarMenuHandle: typeof MenuPrimitive.createHandle;
|
|
29
29
|
declare function Menubar({ className, ...props }: MenubarPrimitive.Props): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
declare function MenubarTrigger({ className, ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function MenubarTrigger({ className, render, ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
declare function MenubarArrow({ className, children, ...props }: MenuPrimitive.Arrow.Props): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
declare function MenubarContent({ className, classNames, children, container, withBackdrop, portalProps, backdropProps, positionerProps, viewportProps, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, disableAnchorTracking, ...props }: MenubarContentProps): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
declare function MenubarSubmenuContent({ sideOffset, alignOffset, ...props }: MenubarContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -70,4 +70,4 @@ type MenubarItemTextIconProps = React.ComponentProps<'span'>;
|
|
|
70
70
|
type MenubarItemTextLabelProps = React.ComponentProps<'span'>;
|
|
71
71
|
type MenubarItemShortcutProps = React.ComponentProps<'span'>;
|
|
72
72
|
export { Menubar, MenubarMenu, MenubarSubmenu, createMenubarMenuHandle, MenubarTrigger, MenubarArrow, MenubarContent, MenubarSubmenuContent, MenubarItem, MenubarLinkItem, MenubarSeparator, MenubarGroup, MenubarGroupLabel, MenubarSubmenuTrigger, MenubarSubmenuTriggerIcon, MenubarRadioGroup, MenubarRadioItem, MenubarRadioItemIndicator, MenubarCheckboxItem, MenubarCheckboxItemIndicator, MenubarItemText, MenubarItemTextContent, MenubarItemTextIcon, MenubarItemTextLabel, MenubarItemShortcut, };
|
|
73
|
-
export type { MenubarProps, MenubarMenuProps, MenubarMenuHandle, MenubarSubmenuProps, MenubarTriggerProps, MenubarArrowProps, MenubarContentProps, MenubarItemProps, MenubarLinkItemProps, MenubarSeparatorProps, MenubarGroupProps, MenubarGroupLabelProps, MenubarSubmenuTriggerProps, MenubarSubmenuTriggerIconProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarRadioItemIndicatorProps, MenubarCheckboxItemProps, MenubarCheckboxItemIndicatorProps, MenubarItemTextProps, MenubarItemTextContentProps, MenubarItemTextIconProps, MenubarItemTextLabelProps, MenubarItemShortcutProps, };
|
|
73
|
+
export type { MenubarProps, MenubarMenuProps, MenubarMenuHandle, MenubarSubmenuProps, MenubarTriggerProps, MenubarArrowProps, MenubarContentProps, MenubarContentClassNames, MenubarItemProps, MenubarLinkItemProps, MenubarSeparatorProps, MenubarGroupProps, MenubarGroupLabelProps, MenubarSubmenuTriggerProps, MenubarSubmenuTriggerIconProps, MenubarRadioGroupProps, MenubarRadioItemProps, MenubarRadioItemIndicatorProps, MenubarCheckboxItemProps, MenubarCheckboxItemIndicatorProps, MenubarItemTextProps, MenubarItemTextContentProps, MenubarItemTextIconProps, MenubarItemTextLabelProps, MenubarItemShortcutProps, };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { Meter as MeterPrimitive } from '@base-ui/react/meter';
|
|
2
2
|
type MeterClassNames = {
|
|
3
|
-
track?:
|
|
4
|
-
indicator?:
|
|
3
|
+
track?: MeterPrimitive.Track.Props['className'];
|
|
4
|
+
indicator?: MeterPrimitive.Indicator.Props['className'];
|
|
5
5
|
};
|
|
6
6
|
type MeterProps = MeterPrimitive.Root.Props & {
|
|
7
7
|
classNames?: MeterClassNames;
|
|
8
|
+
withTrack?: boolean;
|
|
8
9
|
};
|
|
9
|
-
declare function Meter({ className, classNames, children, ...props }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function Meter({ className, classNames, children, withTrack, ...props }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
declare function MeterLabel({ className, ...props }: MeterPrimitive.Label.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
declare function MeterValue({ className, ...props }: MeterPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function MeterTrack({ className, ...props }: MeterPrimitive.Track.Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function MeterIndicator({ className, ...props }: MeterPrimitive.Indicator.Props): import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
type MeterLabelProps = MeterPrimitive.Label.Props;
|
|
13
16
|
type MeterValueProps = MeterPrimitive.Value.Props;
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
type MeterTrackProps = MeterPrimitive.Track.Props;
|
|
18
|
+
type MeterIndicatorProps = MeterPrimitive.Indicator.Props;
|
|
19
|
+
export { Meter, MeterLabel, MeterValue, MeterTrack, MeterIndicator };
|
|
20
|
+
export type { MeterClassNames, MeterProps, MeterLabelProps, MeterValueProps, MeterTrackProps, MeterIndicatorProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Meter, MeterLabel, MeterValue } from './Meter';
|
|
2
|
-
export type { MeterClassNames, MeterProps, MeterLabelProps, MeterValueProps } from './Meter';
|
|
1
|
+
export { Meter, MeterLabel, MeterValue, MeterTrack, MeterIndicator } from './Meter';
|
|
2
|
+
export type { MeterClassNames, MeterProps, MeterLabelProps, MeterValueProps, MeterTrackProps, MeterIndicatorProps, } from './Meter';
|
|
@@ -4,6 +4,7 @@ type PopoverContentClassNames = {
|
|
|
4
4
|
portal?: PopoverPrimitive.Portal.Props['className'];
|
|
5
5
|
backdrop?: PopoverPrimitive.Backdrop.Props['className'];
|
|
6
6
|
positioner?: PopoverPrimitive.Positioner.Props['className'];
|
|
7
|
+
viewport?: PopoverPrimitive.Viewport.Props['className'];
|
|
7
8
|
arrow?: PopoverPrimitive.Arrow.Props['className'];
|
|
8
9
|
};
|
|
9
10
|
type PopoverContentProps = PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.Positioner.Props, 'disableAnchorTracking' | 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'arrowPadding' | 'anchor' | 'collisionAvoidance' | 'collisionBoundary' | 'collisionPadding' | 'sticky' | 'positionMethod'> & {
|
|
@@ -15,11 +16,14 @@ type PopoverContentProps = PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.
|
|
|
15
16
|
showArrow?: boolean;
|
|
16
17
|
portalProps?: Omit<PopoverPrimitive.Portal.Props, 'className' | 'children'>;
|
|
17
18
|
backdropProps?: Omit<PopoverPrimitive.Backdrop.Props, 'className'>;
|
|
19
|
+
viewportProps?: Omit<PopoverPrimitive.Viewport.Props, 'className' | 'children'>;
|
|
18
20
|
withBackdrop?: boolean;
|
|
21
|
+
withViewport?: boolean;
|
|
19
22
|
};
|
|
20
23
|
declare const Popover: typeof PopoverPrimitive.Root;
|
|
21
24
|
declare const createPopoverHandle: typeof PopoverPrimitive.createHandle;
|
|
22
25
|
declare function PopoverTrigger({ className, render, ...props }: PopoverPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function PopoverViewport({ className, ...props }: PopoverPrimitive.Viewport.Props): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
declare function PopoverArrow({ className, children, ...props }: PopoverPrimitive.Arrow.Props): import("react/jsx-runtime").JSX.Element;
|
|
24
28
|
declare function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props): import("react/jsx-runtime").JSX.Element;
|
|
25
29
|
declare function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,10 +31,11 @@ declare function PopoverHeader({ className, ...props }: React.ComponentProps<'di
|
|
|
27
31
|
declare function PopoverBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
28
32
|
declare function PopoverFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
29
33
|
declare function PopoverClose({ className, ...props }: PopoverPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
declare function PopoverContent({ className, classNames, container, arrowProps, arrow, showArrow, portalProps, backdropProps, withBackdrop, disableAnchorTracking, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, positionerProps, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function PopoverContent({ className, classNames, container, arrowProps, arrow, showArrow, portalProps, backdropProps, viewportProps, withBackdrop, withViewport, disableAnchorTracking, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, positionerProps, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
|
|
31
35
|
type PopoverProps<Payload = unknown> = PopoverPrimitive.Root.Props<Payload>;
|
|
32
36
|
type PopoverHandle<Payload = unknown> = PopoverPrimitive.Handle<Payload>;
|
|
33
37
|
type PopoverTriggerProps = PopoverPrimitive.Trigger.Props;
|
|
38
|
+
type PopoverViewportProps = PopoverPrimitive.Viewport.Props;
|
|
34
39
|
type PopoverArrowProps = PopoverPrimitive.Arrow.Props;
|
|
35
40
|
type PopoverTitleProps = PopoverPrimitive.Title.Props;
|
|
36
41
|
type PopoverDescriptionProps = PopoverPrimitive.Description.Props;
|
|
@@ -38,5 +43,5 @@ type PopoverHeaderProps = React.ComponentProps<'div'>;
|
|
|
38
43
|
type PopoverBodyProps = React.ComponentProps<'div'>;
|
|
39
44
|
type PopoverFooterProps = React.ComponentProps<'div'>;
|
|
40
45
|
type PopoverCloseProps = PopoverPrimitive.Close.Props;
|
|
41
|
-
export { Popover, createPopoverHandle, PopoverTrigger, PopoverArrow, PopoverTitle, PopoverDescription, PopoverHeader, PopoverBody, PopoverFooter, PopoverClose, PopoverContent, };
|
|
42
|
-
export type { PopoverProps, PopoverHandle, PopoverTriggerProps, PopoverArrowProps, PopoverTitleProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverBodyProps, PopoverFooterProps, PopoverCloseProps, PopoverContentClassNames, PopoverContentProps, };
|
|
46
|
+
export { Popover, createPopoverHandle, PopoverTrigger, PopoverViewport, PopoverArrow, PopoverTitle, PopoverDescription, PopoverHeader, PopoverBody, PopoverFooter, PopoverClose, PopoverContent, };
|
|
47
|
+
export type { PopoverProps, PopoverHandle, PopoverTriggerProps, PopoverViewportProps, PopoverArrowProps, PopoverTitleProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverBodyProps, PopoverFooterProps, PopoverCloseProps, PopoverContentClassNames, PopoverContentProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Popover, createPopoverHandle, PopoverTrigger, PopoverArrow, PopoverTitle, PopoverDescription, PopoverHeader, PopoverBody, PopoverFooter, PopoverClose, PopoverContent, } from './Popover';
|
|
2
|
-
export type { PopoverProps, PopoverHandle, PopoverTriggerProps, PopoverArrowProps, PopoverTitleProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverBodyProps, PopoverFooterProps, PopoverCloseProps, PopoverContentClassNames, PopoverContentProps, } from './Popover';
|
|
1
|
+
export { Popover, createPopoverHandle, PopoverTrigger, PopoverViewport, PopoverArrow, PopoverTitle, PopoverDescription, PopoverHeader, PopoverBody, PopoverFooter, PopoverClose, PopoverContent, } from './Popover';
|
|
2
|
+
export type { PopoverProps, PopoverHandle, PopoverTriggerProps, PopoverViewportProps, PopoverArrowProps, PopoverTitleProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverBodyProps, PopoverFooterProps, PopoverCloseProps, PopoverContentClassNames, PopoverContentProps, } from './Popover';
|
|
@@ -13,13 +13,25 @@ type ScrollAreaClassNames = {
|
|
|
13
13
|
horizontalThumb?: ScrollAreaPrimitive.Thumb.Props['className'];
|
|
14
14
|
corner?: ScrollAreaPrimitive.Corner.Props['className'];
|
|
15
15
|
};
|
|
16
|
+
type ScrollAreaSlotProps = {
|
|
17
|
+
viewport?: Omit<ScrollAreaPrimitive.Viewport.Props, 'className' | 'children'>;
|
|
18
|
+
content?: Omit<ScrollAreaPrimitive.Content.Props, 'className' | 'children'>;
|
|
19
|
+
scrollbar?: Omit<ScrollAreaPrimitive.Scrollbar.Props, 'className' | 'children' | 'orientation' | 'keepMounted'>;
|
|
20
|
+
verticalScrollbar?: Omit<ScrollAreaPrimitive.Scrollbar.Props, 'className' | 'children' | 'orientation' | 'keepMounted'>;
|
|
21
|
+
horizontalScrollbar?: Omit<ScrollAreaPrimitive.Scrollbar.Props, 'className' | 'children' | 'orientation' | 'keepMounted'>;
|
|
22
|
+
thumb?: Omit<ScrollAreaPrimitive.Thumb.Props, 'className'>;
|
|
23
|
+
verticalThumb?: Omit<ScrollAreaPrimitive.Thumb.Props, 'className'>;
|
|
24
|
+
horizontalThumb?: Omit<ScrollAreaPrimitive.Thumb.Props, 'className'>;
|
|
25
|
+
corner?: Omit<ScrollAreaPrimitive.Corner.Props, 'className'>;
|
|
26
|
+
};
|
|
16
27
|
type ScrollAreaProps = Omit<ScrollAreaPrimitive.Root.Props, 'children'> & {
|
|
17
28
|
children?: React.ReactNode;
|
|
18
29
|
fade?: ScrollAreaFade;
|
|
19
30
|
scrollbars?: ScrollAreaScrollbars;
|
|
20
31
|
scrollbarKeepMounted?: boolean;
|
|
21
32
|
classNames?: ScrollAreaClassNames;
|
|
33
|
+
slotProps?: ScrollAreaSlotProps;
|
|
22
34
|
};
|
|
23
|
-
declare function ScrollArea({ className, classNames, children, fade, scrollbars, scrollbarKeepMounted, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function ScrollArea({ className, classNames, children, fade, scrollbars, scrollbarKeepMounted, slotProps, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
24
36
|
export { ScrollArea };
|
|
25
|
-
export type { ScrollAreaProps, ScrollAreaClassNames, ScrollAreaFade, ScrollAreaScrollbars };
|
|
37
|
+
export type { ScrollAreaProps, ScrollAreaClassNames, ScrollAreaSlotProps, ScrollAreaFade, ScrollAreaScrollbars, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ScrollArea } from './ScrollArea';
|
|
2
|
-
export type { ScrollAreaProps, ScrollAreaClassNames, ScrollAreaFade, ScrollAreaScrollbars, } from './ScrollArea';
|
|
2
|
+
export type { ScrollAreaProps, ScrollAreaClassNames, ScrollAreaSlotProps, ScrollAreaFade, ScrollAreaScrollbars, } from './ScrollArea';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
2
|
type ToggleVariant = 'default' | 'outline' | 'ghost';
|
|
3
3
|
type ToggleSize = 'xs' | 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon-md' | 'icon-lg';
|
|
4
|
-
type ToggleProps = TogglePrimitive.Props & {
|
|
4
|
+
type ToggleProps<Value extends string = string> = TogglePrimitive.Props<Value> & {
|
|
5
5
|
variant?: ToggleVariant;
|
|
6
6
|
size?: ToggleSize;
|
|
7
7
|
};
|
|
8
8
|
type ToggleState = TogglePrimitive.State;
|
|
9
9
|
type ToggleChangeEventReason = TogglePrimitive.ChangeEventReason;
|
|
10
10
|
type ToggleChangeEventDetails = TogglePrimitive.ChangeEventDetails;
|
|
11
|
-
declare function Toggle({ className, variant, size, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function Toggle<Value extends string = string>({ className, variant, size, ...props }: ToggleProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export { Toggle };
|
|
13
13
|
export type { ToggleProps, ToggleState, ToggleChangeEventReason, ToggleChangeEventDetails, ToggleVariant, ToggleSize, };
|
|
@@ -9,8 +9,8 @@ type ToggleGroupState = ToggleGroupPrimitive.State;
|
|
|
9
9
|
type ToggleGroupChangeEventReason = ToggleGroupPrimitive.ChangeEventReason;
|
|
10
10
|
type ToggleGroupChangeEventDetails = ToggleGroupPrimitive.ChangeEventDetails;
|
|
11
11
|
declare function ToggleGroup<Value extends string = string>({ className, variant, size, ...props }: ToggleGroupProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
type ToggleGroupItemProps = ToggleProps
|
|
13
|
-
declare function ToggleGroupItem({ className, variant, size, ...props }: ToggleGroupItemProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
type ToggleGroupItemProps<Value extends string = string> = ToggleProps<Value>;
|
|
13
|
+
declare function ToggleGroupItem<Value extends string = string>({ className, variant, size, ...props }: ToggleGroupItemProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
type ToggleGroupVariant = ToggleVariant;
|
|
15
15
|
type ToggleGroupSize = ToggleSize;
|
|
16
16
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -14,12 +14,13 @@ type TooltipContentProps = TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.
|
|
|
14
14
|
arrow?: React.ReactNode;
|
|
15
15
|
showArrow?: boolean;
|
|
16
16
|
portalProps?: Omit<TooltipPrimitive.Portal.Props, 'className' | 'children'>;
|
|
17
|
+
viewportProps?: Omit<TooltipPrimitive.Viewport.Props, 'className' | 'children'>;
|
|
17
18
|
};
|
|
18
19
|
declare const Tooltip: <Payload>(props: TooltipPrimitive.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
declare const TooltipProvider: React.FC<import('@base-ui/react').TooltipProviderProps>;
|
|
20
21
|
declare const createTooltipHandle: typeof TooltipPrimitive.createHandle;
|
|
21
22
|
declare function TooltipTrigger<Payload = unknown>({ className, render, ...props }: TooltipPrimitive.Trigger.Props<Payload>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare function TooltipContent({ className, classNames, container, arrowProps, arrow, showArrow, portalProps, disableAnchorTracking, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, positionerProps, ...props }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function TooltipContent({ className, classNames, container, arrowProps, arrow, showArrow, portalProps, viewportProps, disableAnchorTracking, side, sideOffset, align, alignOffset, arrowPadding, anchor, collisionAvoidance, collisionBoundary, collisionPadding, sticky, positionMethod, positionerProps, ...props }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
type TooltipProps<Payload = unknown> = TooltipPrimitive.Root.Props<Payload>;
|
|
24
25
|
type TooltipProviderProps = TooltipPrimitive.Provider.Props;
|
|
25
26
|
type TooltipHandle<Payload = unknown> = TooltipPrimitive.Handle<Payload>;
|