@alexgorbatchev/shadcn 0.0.0-stage → 0.0.12
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/LICENSE +21 -0
- package/README.md +349 -2
- package/THIRD_PARTY_NOTICES.md +105 -0
- package/dist/chunk-1j2hz3w9.js +16 -0
- package/dist/chunk-5wvvqege.js +259 -0
- package/dist/chunk-8a7dn9ps.js +93 -0
- package/dist/chunk-cp2m7y7v.js +26 -0
- package/dist/chunk-jpvw9xqy.js +4 -0
- package/dist/chunk-rajgnfbr.js +24 -0
- package/dist/chunk-rjjwytbx.js +12 -0
- package/dist/chunk-tnktkgvp.js +63 -0
- package/dist/chunk-z1fy613d.js +64 -0
- package/dist/components/Accordion.d.ts +12 -0
- package/dist/components/Alert.d.ts +15 -0
- package/dist/components/AlertDialog.d.ts +28 -0
- package/dist/components/AspectRatio.d.ts +5 -0
- package/dist/components/Attachment.d.ts +36 -0
- package/dist/components/Avatar.d.ts +19 -0
- package/dist/components/Badge.d.ts +15 -0
- package/dist/components/Breadcrumb.d.ts +18 -0
- package/dist/components/Bubble.d.ts +25 -0
- package/dist/components/Button.d.ts +13 -0
- package/dist/components/ButtonGroup.d.ts +14 -0
- package/dist/components/Card.d.ts +19 -0
- package/dist/components/Checkbox.d.ts +6 -0
- package/dist/components/Collapsible.d.ts +6 -0
- package/dist/components/Combobox.d.ts +39 -0
- package/dist/components/ConfirmationDialog.d.ts +11 -0
- package/dist/components/ContextMenu.d.ts +24 -0
- package/dist/components/DensityProvider.d.ts +7 -0
- package/dist/components/Dialog.d.ts +25 -0
- package/dist/components/DirectionProvider.d.ts +1 -0
- package/dist/components/DragDropPreview.d.ts +7 -0
- package/dist/components/DragDropProvider.d.ts +6 -0
- package/dist/components/DragSource.d.ts +10 -0
- package/dist/components/Drawer.d.ts +25 -0
- package/dist/components/DropTarget.d.ts +11 -0
- package/dist/components/DropdownMenu.d.ts +26 -0
- package/dist/components/Empty.d.ts +19 -0
- package/dist/components/EmptyState.d.ts +8 -0
- package/dist/components/Field.d.ts +36 -0
- package/dist/components/HoverCard.d.ts +8 -0
- package/dist/components/ImagePicker.d.ts +11 -0
- package/dist/components/InlineEdit.d.ts +14 -0
- package/dist/components/Input.d.ts +6 -0
- package/dist/components/InputGroup.d.ts +26 -0
- package/dist/components/Item.d.ts +32 -0
- package/dist/components/JsonViewer.d.ts +8 -0
- package/dist/components/Kbd.d.ts +7 -0
- package/dist/components/Label.d.ts +5 -0
- package/dist/components/Marker.d.ts +19 -0
- package/dist/components/Menubar.d.ts +29 -0
- package/dist/components/Message.d.ts +17 -0
- package/dist/components/NativeSelect.d.ts +11 -0
- package/dist/components/NavigationMenu.d.ts +21 -0
- package/dist/components/Pagination.d.ts +21 -0
- package/dist/components/Popover.d.ts +14 -0
- package/dist/components/Progress.d.ts +14 -0
- package/dist/components/RadioGroup.d.ts +9 -0
- package/dist/components/ScrollArea.d.ts +10 -0
- package/dist/components/Select.d.ts +25 -0
- package/dist/components/Separator.d.ts +8 -0
- package/dist/components/Sheet.d.ts +20 -0
- package/dist/components/Sidebar.d.ts +60 -0
- package/dist/components/Skeleton.d.ts +5 -0
- package/dist/components/Slider.d.ts +6 -0
- package/dist/components/Spinner.d.ts +5 -0
- package/dist/components/StarRating.d.ts +10 -0
- package/dist/components/Switch.d.ts +8 -0
- package/dist/components/Table.d.ts +28 -0
- package/dist/components/Tabs.d.ts +16 -0
- package/dist/components/Textarea.d.ts +5 -0
- package/dist/components/ThemeProvider.d.ts +9 -0
- package/dist/components/Toast.d.ts +18 -0
- package/dist/components/Toggle.d.ts +11 -0
- package/dist/components/ToggleGroup.d.ts +12 -0
- package/dist/components/Tooltip.d.ts +9 -0
- package/dist/components/calendar/Calendar.d.ts +6 -0
- package/dist/components/calendar/getCalendarClassNames.d.ts +3 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/index.js +10 -0
- package/dist/components/calendar/types.d.ts +9 -0
- package/dist/components/carousel/Carousel.d.ts +9 -0
- package/dist/components/carousel/CarouselContext.d.ts +2 -0
- package/dist/components/carousel/hooks/useCarousel.d.ts +2 -0
- package/dist/components/carousel/index.d.ts +3 -0
- package/dist/components/carousel/index.js +207 -0
- package/dist/components/carousel/types.d.ts +23 -0
- package/dist/components/chart/Chart.d.ts +10 -0
- package/dist/components/chart/ChartContext.d.ts +2 -0
- package/dist/components/chart/ChartStyle.d.ts +3 -0
- package/dist/components/chart/getPayloadConfigFromPayload.d.ts +2 -0
- package/dist/components/chart/hooks/useChart.d.ts +2 -0
- package/dist/components/chart/index.d.ts +3 -0
- package/dist/components/chart/index.js +284 -0
- package/dist/components/chart/types.d.ts +50 -0
- package/dist/components/command/Command.d.ts +21 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/command/index.js +142 -0
- package/dist/components/input-otp/InputOTP.d.ts +12 -0
- package/dist/components/input-otp/index.d.ts +1 -0
- package/dist/components/input-otp/index.js +303 -0
- package/dist/components/message-scroller/MessageScroller.d.ts +16 -0
- package/dist/components/message-scroller/hooks/useMessageScroller.d.ts +1 -0
- package/dist/components/message-scroller/hooks/useMessageScrollerScrollable.d.ts +1 -0
- package/dist/components/message-scroller/hooks/useMessageScrollerVisibility.d.ts +1 -0
- package/dist/components/message-scroller/index.d.ts +5 -0
- package/dist/components/message-scroller/index.js +600 -0
- package/dist/components/persian-calendar/PersianCalendar.d.ts +6 -0
- package/dist/components/persian-calendar/index.d.ts +1 -0
- package/dist/components/persian-calendar/index.js +36 -0
- package/dist/components/questionnaire/Questionnaire.d.ts +20 -0
- package/dist/components/questionnaire/index.d.ts +2 -0
- package/dist/components/questionnaire/index.js +747 -0
- package/dist/components/resizable/Resizable.d.ts +10 -0
- package/dist/components/resizable/SplitView.d.ts +12 -0
- package/dist/components/resizable/index.d.ts +2 -0
- package/dist/components/resizable/index.js +147 -0
- package/dist/components/sonner/Sonner.d.ts +7 -0
- package/dist/components/sonner/hooks/useSonner.d.ts +1 -0
- package/dist/components/sonner/index.d.ts +2 -0
- package/dist/components/sonner/index.js +1273 -0
- package/dist/density/DensityContext.d.ts +2 -0
- package/dist/density/types.d.ts +4 -0
- package/dist/drag-drop/DragDropContext.d.ts +2 -0
- package/dist/drag-drop/types.d.ts +45 -0
- package/dist/drawer/DrawerContext.d.ts +2 -0
- package/dist/drawer/types.d.ts +7 -0
- package/dist/fonts.css +1 -0
- package/dist/hooks/useComboboxAnchor.d.ts +2 -0
- package/dist/hooks/useDensity.d.ts +2 -0
- package/dist/hooks/useDragDrop.d.ts +2 -0
- package/dist/hooks/useDragSource.d.ts +2 -0
- package/dist/hooks/useDrawer.d.ts +2 -0
- package/dist/hooks/useDropTarget.d.ts +2 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useObjectURL.d.ts +1 -0
- package/dist/hooks/useSidebar.d.ts +2 -0
- package/dist/hooks/useTheme.d.ts +2 -0
- package/dist/hooks/useToastManager.d.ts +2 -0
- package/dist/index.d.ts +82 -0
- package/dist/index.js +4908 -0
- package/dist/menu/types.d.ts +14 -0
- package/dist/message/MessageContext.d.ts +2 -0
- package/dist/message/types.d.ts +7 -0
- package/dist/sidebar/SidebarContext.d.ts +2 -0
- package/dist/sidebar/types.d.ts +32 -0
- package/dist/theme/ThemeContext.d.ts +2 -0
- package/dist/theme/types.d.ts +8 -0
- package/dist/theme.css +454 -0
- package/dist/toggle-group/ToggleGroupContext.d.ts +2 -0
- package/dist/toggle-group/types.d.ts +5 -0
- package/dist/typeset.css +444 -0
- package/dist/utils/cn.d.ts +2 -0
- package/package.json +193 -4
- package/patches/@shadcn%2Freact@0.3.1.patch +35 -0
- package/patches/input-otp@1.5.0.patch +20 -0
- package/patches/sonner@2.0.8.patch +87 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
|
|
4
|
+
type AvatarProps = AvatarPrimitive.Root.Props & {
|
|
5
|
+
size?: "default" | "sm" | "lg" | "preview";
|
|
6
|
+
shape?: "circle" | "square";
|
|
7
|
+
} & IDensityProps;
|
|
8
|
+
declare function Avatar({ density, className, size, shape, ...props }: AvatarProps): ReactElement;
|
|
9
|
+
type AvatarImageProps = AvatarPrimitive.Image.Props & IDensityProps;
|
|
10
|
+
declare function AvatarImage({ density, className, ...props }: AvatarImageProps): ReactElement;
|
|
11
|
+
type AvatarFallbackProps = AvatarPrimitive.Fallback.Props & IDensityProps;
|
|
12
|
+
declare function AvatarFallback({ density, className, ...props }: AvatarFallbackProps): ReactElement;
|
|
13
|
+
type AvatarBadgeProps = ComponentProps<"span"> & IDensityProps;
|
|
14
|
+
declare function AvatarBadge({ density, className, ...props }: AvatarBadgeProps): ReactElement;
|
|
15
|
+
type AvatarGroupProps = ComponentProps<"div"> & IDensityProps;
|
|
16
|
+
declare function AvatarGroup({ density, className, ...props }: AvatarGroupProps): ReactElement;
|
|
17
|
+
type AvatarGroupCountProps = ComponentProps<"div"> & IDensityProps;
|
|
18
|
+
declare function AvatarGroupCount({ density, className, ...props }: AvatarGroupCountProps): ReactElement;
|
|
19
|
+
export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Density, IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
declare const badgeVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type BadgeState = {
|
|
9
|
+
slot: "badge";
|
|
10
|
+
variant: VariantProps<typeof badgeVariants>["variant"];
|
|
11
|
+
density?: Density;
|
|
12
|
+
};
|
|
13
|
+
type BadgeProps = useRender.ComponentProps<"span", BadgeState> & VariantProps<typeof badgeVariants> & IDensityProps;
|
|
14
|
+
declare function Badge({ density, className, variant, render, ...props }: BadgeProps): ReactElement;
|
|
15
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
type BreadcrumbProps = ComponentProps<"nav"> & IDensityProps;
|
|
5
|
+
declare function Breadcrumb({ density, className, ...props }: BreadcrumbProps): ReactElement;
|
|
6
|
+
type BreadcrumbListProps = ComponentProps<"ol"> & IDensityProps;
|
|
7
|
+
declare function BreadcrumbList({ density, className, ...props }: BreadcrumbListProps): ReactElement;
|
|
8
|
+
type BreadcrumbItemProps = ComponentProps<"li"> & IDensityProps;
|
|
9
|
+
declare function BreadcrumbItem({ density, className, ...props }: BreadcrumbItemProps): ReactElement;
|
|
10
|
+
type BreadcrumbLinkProps = useRender.ComponentProps<"a"> & IDensityProps;
|
|
11
|
+
declare function BreadcrumbLink({ density, className, render, ...props }: BreadcrumbLinkProps): ReactElement;
|
|
12
|
+
type BreadcrumbPageProps = ComponentProps<"span"> & IDensityProps;
|
|
13
|
+
declare function BreadcrumbPage({ density, className, ...props }: BreadcrumbPageProps): ReactElement;
|
|
14
|
+
type BreadcrumbSeparatorProps = ComponentProps<"li"> & IDensityProps;
|
|
15
|
+
declare function BreadcrumbSeparator({ density, children, className, ...props }: BreadcrumbSeparatorProps): ReactElement;
|
|
16
|
+
type BreadcrumbEllipsisProps = ComponentProps<"span"> & IDensityProps;
|
|
17
|
+
declare function BreadcrumbEllipsis({ density, className, ...props }: BreadcrumbEllipsisProps): ReactElement;
|
|
18
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
|
+
import type { Density, IDensityProps } from "../density/types.js";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
type BubbleGroupProps = ComponentProps<"div"> & IDensityProps;
|
|
6
|
+
declare function BubbleGroup({ density, className, ...props }: BubbleGroupProps): ReactElement;
|
|
7
|
+
declare const bubbleVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | "ghost" | "muted" | "outline" | "secondary" | "tinted" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
type BubbleProps = ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & IDensityProps & {
|
|
11
|
+
align?: "start" | "end";
|
|
12
|
+
};
|
|
13
|
+
declare function Bubble({ density, variant, align, className, ...props }: BubbleProps): ReactElement;
|
|
14
|
+
type BubbleContentState = {
|
|
15
|
+
slot: "bubble-content";
|
|
16
|
+
density?: Density;
|
|
17
|
+
};
|
|
18
|
+
type BubbleContentProps = useRender.ComponentProps<"div", BubbleContentState> & IDensityProps;
|
|
19
|
+
declare function BubbleContent({ density, className, render, ...props }: BubbleContentProps): ReactElement;
|
|
20
|
+
type BubbleReactionsProps = ComponentProps<"div"> & IDensityProps & {
|
|
21
|
+
align?: "start" | "end";
|
|
22
|
+
side?: "top" | "bottom";
|
|
23
|
+
};
|
|
24
|
+
declare function BubbleReactions({ density, side, align, className, ...props }: BubbleReactionsProps): ReactElement;
|
|
25
|
+
export { BubbleGroup, Bubble, BubbleContent, BubbleReactions };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
declare const buttonVariants: (props?: ({
|
|
6
|
+
truncate?: boolean | null | undefined;
|
|
7
|
+
align?: "center" | "end" | "start" | null | undefined;
|
|
8
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
9
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xs" | "inline" | "lg" | "sm" | "xs" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
type ButtonProps = ButtonPrimitive.Props & VariantProps<typeof buttonVariants> & IDensityProps;
|
|
12
|
+
declare function Button({ density, className, variant, size, align, truncate, children, ...props }: ButtonProps): ReactElement;
|
|
13
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
import { Separator } from "./Separator.js";
|
|
6
|
+
declare const buttonGroupVariants: (props?: ({
|
|
7
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
type ButtonGroupProps = ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants> & IDensityProps;
|
|
10
|
+
declare function ButtonGroup({ density, className, orientation, ...props }: ButtonGroupProps): ReactElement;
|
|
11
|
+
type ButtonGroupTextProps = useRender.ComponentProps<"div"> & IDensityProps;
|
|
12
|
+
declare function ButtonGroupText({ density, className, render, ...props }: ButtonGroupTextProps): ReactElement;
|
|
13
|
+
declare function ButtonGroupSeparator({ density, className, orientation, ...props }: ComponentProps<typeof Separator>): ReactElement;
|
|
14
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
type CardProps = ComponentProps<"div"> & {
|
|
4
|
+
size?: "default" | "sm";
|
|
5
|
+
} & IDensityProps;
|
|
6
|
+
declare function Card({ density, className, size, ...props }: CardProps): ReactElement;
|
|
7
|
+
type CardHeaderProps = ComponentProps<"div"> & IDensityProps;
|
|
8
|
+
declare function CardHeader({ density, className, ...props }: CardHeaderProps): ReactElement;
|
|
9
|
+
type CardTitleProps = ComponentProps<"div"> & IDensityProps;
|
|
10
|
+
declare function CardTitle({ density, className, ...props }: CardTitleProps): ReactElement;
|
|
11
|
+
type CardDescriptionProps = ComponentProps<"div"> & IDensityProps;
|
|
12
|
+
declare function CardDescription({ density, className, ...props }: CardDescriptionProps): ReactElement;
|
|
13
|
+
type CardActionProps = ComponentProps<"div"> & IDensityProps;
|
|
14
|
+
declare function CardAction({ density, className, ...props }: CardActionProps): ReactElement;
|
|
15
|
+
type CardContentProps = ComponentProps<"div"> & IDensityProps;
|
|
16
|
+
declare function CardContent({ density, className, ...props }: CardContentProps): ReactElement;
|
|
17
|
+
type CardFooterProps = ComponentProps<"div"> & IDensityProps;
|
|
18
|
+
declare function CardFooter({ density, className, ...props }: CardFooterProps): ReactElement;
|
|
19
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
4
|
+
type CheckboxProps = CheckboxPrimitive.Root.Props & IDensityProps;
|
|
5
|
+
declare function Checkbox({ density, className, ...props }: CheckboxProps): ReactElement;
|
|
6
|
+
export { Checkbox };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
3
|
+
declare function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props): ReactElement;
|
|
4
|
+
declare function CollapsibleTrigger({ ...props }: CollapsiblePrimitive.Trigger.Props): ReactElement;
|
|
5
|
+
declare function CollapsibleContent({ ...props }: CollapsiblePrimitive.Panel.Props): ReactElement;
|
|
6
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentPropsWithRef, ReactElement } from "react";
|
|
3
|
+
import { Combobox as ComboboxPrimitive } from "@base-ui/react/combobox";
|
|
4
|
+
declare const Combobox: typeof ComboboxPrimitive.Root;
|
|
5
|
+
declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): ReactElement;
|
|
6
|
+
type ComboboxTriggerProps = ComboboxPrimitive.Trigger.Props & IDensityProps;
|
|
7
|
+
declare function ComboboxTrigger({ density, className, children, ...props }: ComboboxTriggerProps): ReactElement;
|
|
8
|
+
type ComboboxInputProps = ComboboxPrimitive.Input.Props & {
|
|
9
|
+
showTrigger?: boolean;
|
|
10
|
+
showClear?: boolean;
|
|
11
|
+
frameClassName?: string;
|
|
12
|
+
triggerLabel?: string;
|
|
13
|
+
clearLabel?: string;
|
|
14
|
+
} & IDensityProps;
|
|
15
|
+
declare function ComboboxInput({ density, className, children, disabled, showTrigger, showClear, frameClassName, triggerLabel, clearLabel, ...props }: ComboboxInputProps): ReactElement;
|
|
16
|
+
type ComboboxContentProps = ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor"> & IDensityProps;
|
|
17
|
+
declare function ComboboxContent({ density, className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxContentProps): ReactElement;
|
|
18
|
+
type ComboboxListProps = ComboboxPrimitive.List.Props & IDensityProps;
|
|
19
|
+
declare function ComboboxList({ density, className, ...props }: ComboboxListProps): ReactElement;
|
|
20
|
+
type ComboboxItemProps = ComboboxPrimitive.Item.Props & IDensityProps;
|
|
21
|
+
declare function ComboboxItem({ density, className, children, ...props }: ComboboxItemProps): ReactElement;
|
|
22
|
+
type ComboboxGroupProps = ComboboxPrimitive.Group.Props & IDensityProps;
|
|
23
|
+
declare function ComboboxGroup({ density, className, ...props }: ComboboxGroupProps): ReactElement;
|
|
24
|
+
type ComboboxLabelProps = ComboboxPrimitive.GroupLabel.Props & IDensityProps;
|
|
25
|
+
declare function ComboboxLabel({ density, className, ...props }: ComboboxLabelProps): ReactElement;
|
|
26
|
+
declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): ReactElement;
|
|
27
|
+
type ComboboxEmptyProps = ComboboxPrimitive.Empty.Props & IDensityProps;
|
|
28
|
+
declare function ComboboxEmpty({ density, className, ...props }: ComboboxEmptyProps): ReactElement;
|
|
29
|
+
type ComboboxSeparatorProps = ComboboxPrimitive.Separator.Props & IDensityProps;
|
|
30
|
+
declare function ComboboxSeparator({ density, className, ...props }: ComboboxSeparatorProps): ReactElement;
|
|
31
|
+
type ComboboxChipsProps = ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props & IDensityProps;
|
|
32
|
+
declare function ComboboxChips({ density, className, ...props }: ComboboxChipsProps): ReactElement;
|
|
33
|
+
type ComboboxChipProps = ComboboxPrimitive.Chip.Props & {
|
|
34
|
+
showRemove?: boolean;
|
|
35
|
+
} & IDensityProps;
|
|
36
|
+
declare function ComboboxChip({ density, className, children, showRemove, ...props }: ComboboxChipProps): ReactElement;
|
|
37
|
+
type ComboboxChipsInputProps = ComboboxPrimitive.Input.Props & IDensityProps;
|
|
38
|
+
declare function ComboboxChipsInput({ density, className, ...props }: ComboboxChipsInputProps): ReactElement;
|
|
39
|
+
export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxValue, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
interface IConfirmationDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
confirmLabel: string;
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
onConfirm: () => void | Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare function ConfirmationDialog({ open, title, description, confirmLabel, onOpenChange, onConfirm, }: IConfirmationDialogProps): ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MenuLabelProps, MenuItemProps, MenuSubTriggerProps, MenuCheckboxItemProps, MenuRadioItemProps } from "../menu/types.js";
|
|
2
|
+
import type { IDensityProps } from "../density/types.js";
|
|
3
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
4
|
+
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
5
|
+
declare function ContextMenu({ ...props }: ContextMenuPrimitive.Root.Props): ReactElement;
|
|
6
|
+
declare function ContextMenuPortal({ ...props }: ContextMenuPrimitive.Portal.Props): ReactElement;
|
|
7
|
+
type ContextMenuTriggerProps = ContextMenuPrimitive.Trigger.Props & IDensityProps;
|
|
8
|
+
declare function ContextMenuTrigger({ density, className, ...props }: ContextMenuTriggerProps): ReactElement;
|
|
9
|
+
type ContextMenuContentProps = ContextMenuPrimitive.Popup.Props & Pick<ContextMenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset"> & IDensityProps;
|
|
10
|
+
declare function ContextMenuContent({ density, className, align, alignOffset, side, sideOffset, ...props }: ContextMenuContentProps): ReactElement;
|
|
11
|
+
declare function ContextMenuGroup({ ...props }: ContextMenuPrimitive.Group.Props): ReactElement;
|
|
12
|
+
declare function ContextMenuLabel({ density, className, inset, ...props }: MenuLabelProps): ReactElement;
|
|
13
|
+
declare function ContextMenuItem({ density, className, inset, variant, ...props }: MenuItemProps): ReactElement;
|
|
14
|
+
declare function ContextMenuSub({ ...props }: ContextMenuPrimitive.SubmenuRoot.Props): ReactElement;
|
|
15
|
+
declare function ContextMenuSubTrigger({ density, className, inset, children, ...props }: MenuSubTriggerProps): ReactElement;
|
|
16
|
+
declare function ContextMenuSubContent({ ...props }: ComponentProps<typeof ContextMenuContent>): ReactElement;
|
|
17
|
+
declare function ContextMenuCheckboxItem({ density, className, children, checked, inset, ...props }: MenuCheckboxItemProps): ReactElement;
|
|
18
|
+
declare function ContextMenuRadioGroup({ ...props }: ContextMenuPrimitive.RadioGroup.Props): ReactElement;
|
|
19
|
+
declare function ContextMenuRadioItem({ density, className, children, inset, ...props }: MenuRadioItemProps): ReactElement;
|
|
20
|
+
type ContextMenuSeparatorProps = ContextMenuPrimitive.Separator.Props & IDensityProps;
|
|
21
|
+
declare function ContextMenuSeparator({ density, className, ...props }: ContextMenuSeparatorProps): ReactElement;
|
|
22
|
+
type ContextMenuShortcutProps = ComponentProps<"span"> & IDensityProps;
|
|
23
|
+
declare function ContextMenuShortcut({ density, className, ...props }: ContextMenuShortcutProps): ReactElement;
|
|
24
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode, ReactElement } from "react";
|
|
2
|
+
import type { Density } from "../density/types.js";
|
|
3
|
+
export interface IDensityProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
density?: Density;
|
|
6
|
+
}
|
|
7
|
+
export declare function DensityProvider({ children, density }: IDensityProviderProps): ReactElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
4
|
+
declare function Dialog<Payload>({ ...props }: DialogPrimitive.Root.Props<Payload>): ReactElement;
|
|
5
|
+
declare function DialogTrigger<Payload>({ ...props }: DialogPrimitive.Trigger.Props<Payload>): ReactElement;
|
|
6
|
+
declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): ReactElement;
|
|
7
|
+
declare function DialogClose({ ...props }: DialogPrimitive.Close.Props): ReactElement;
|
|
8
|
+
type DialogOverlayProps = DialogPrimitive.Backdrop.Props & IDensityProps;
|
|
9
|
+
declare function DialogOverlay({ density, className, ...props }: DialogOverlayProps): ReactElement;
|
|
10
|
+
type DialogContentProps = DialogPrimitive.Popup.Props & {
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
size?: "default" | "wide" | "narrow";
|
|
13
|
+
} & IDensityProps;
|
|
14
|
+
declare function DialogContent({ density, className, children, showCloseButton, size, ...props }: DialogContentProps): ReactElement;
|
|
15
|
+
type DialogHeaderProps = ComponentProps<"div"> & IDensityProps;
|
|
16
|
+
declare function DialogHeader({ density, className, ...props }: DialogHeaderProps): ReactElement;
|
|
17
|
+
type DialogFooterProps = ComponentProps<"div"> & {
|
|
18
|
+
showCloseButton?: boolean;
|
|
19
|
+
} & IDensityProps;
|
|
20
|
+
declare function DialogFooter({ density, className, showCloseButton, children, ...props }: DialogFooterProps): ReactElement;
|
|
21
|
+
type DialogTitleProps = DialogPrimitive.Title.Props & IDensityProps;
|
|
22
|
+
declare function DialogTitle({ density, className, ...props }: DialogTitleProps): ReactElement;
|
|
23
|
+
type DialogDescriptionProps = DialogPrimitive.Description.Props & IDensityProps;
|
|
24
|
+
declare function DialogDescription({ density, className, ...props }: DialogDescriptionProps): ReactElement;
|
|
25
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DirectionProvider, useDirection } from "@base-ui/react/direction-provider";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
2
|
+
interface IDragDropProviderProps extends PropsWithChildren {
|
|
3
|
+
maxPreviewItems?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare function DragDropProvider({ children, maxPreviewItems }: IDragDropProviderProps): ReactElement;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { IDragSourceOptions } from "../drag-drop/types.js";
|
|
4
|
+
type DragSourceState = {
|
|
5
|
+
slot: "drag-source";
|
|
6
|
+
dragging: boolean;
|
|
7
|
+
};
|
|
8
|
+
type DragSourceProps = Omit<useRender.ComponentProps<"div", DragSourceState>, "onDragStart" | "onDragEnd"> & IDragSourceOptions;
|
|
9
|
+
export declare function DragSource({ type, data, labels, effectAllowed, disabled, render, ...props }: DragSourceProps): ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
4
|
+
type DrawerProps<Payload> = DrawerPrimitive.Root.Props<Payload> & {
|
|
5
|
+
showSwipeHandle?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function Drawer<Payload>({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: DrawerProps<Payload>): ReactElement;
|
|
8
|
+
declare function DrawerTrigger<Payload>({ ...props }: DrawerPrimitive.Trigger.Props<Payload>): ReactElement;
|
|
9
|
+
declare function DrawerPortal({ ...props }: DrawerPrimitive.Portal.Props): ReactElement;
|
|
10
|
+
declare function DrawerClose({ ...props }: DrawerPrimitive.Close.Props): ReactElement;
|
|
11
|
+
type DrawerOverlayProps = DrawerPrimitive.Backdrop.Props & IDensityProps;
|
|
12
|
+
declare function DrawerOverlay({ density, className, ...props }: DrawerOverlayProps): ReactElement;
|
|
13
|
+
type DrawerSwipeHandleProps = ComponentProps<"div"> & IDensityProps;
|
|
14
|
+
declare function DrawerSwipeHandle({ density, className, ...props }: DrawerSwipeHandleProps): ReactElement;
|
|
15
|
+
type DrawerContentProps = DrawerPrimitive.Popup.Props & IDensityProps;
|
|
16
|
+
declare function DrawerContent({ density, className, children, ...props }: DrawerContentProps): ReactElement;
|
|
17
|
+
type DrawerHeaderProps = ComponentProps<"div"> & IDensityProps;
|
|
18
|
+
declare function DrawerHeader({ density, className, ...props }: DrawerHeaderProps): ReactElement;
|
|
19
|
+
type DrawerFooterProps = ComponentProps<"div"> & IDensityProps;
|
|
20
|
+
declare function DrawerFooter({ density, className, ...props }: DrawerFooterProps): ReactElement;
|
|
21
|
+
type DrawerTitleProps = DrawerPrimitive.Title.Props & IDensityProps;
|
|
22
|
+
declare function DrawerTitle({ density, className, ...props }: DrawerTitleProps): ReactElement;
|
|
23
|
+
type DrawerDescriptionProps = DrawerPrimitive.Description.Props & IDensityProps;
|
|
24
|
+
declare function DrawerDescription({ density, className, ...props }: DrawerDescriptionProps): ReactElement;
|
|
25
|
+
export { Drawer, DrawerPortal, DrawerOverlay, DrawerSwipeHandle, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import type { IDropTargetOptions } from "../drag-drop/types.js";
|
|
4
|
+
type DropTargetState = {
|
|
5
|
+
slot: "drop-target";
|
|
6
|
+
over: boolean;
|
|
7
|
+
effect: DataTransfer["dropEffect"];
|
|
8
|
+
};
|
|
9
|
+
type DropTargetProps = Omit<useRender.ComponentProps<"div", DropTargetState>, "onDrop"> & IDropTargetOptions;
|
|
10
|
+
export declare function DropTarget({ accept, canDrop, getDropEffect, onDrop, render, ...props }: DropTargetProps): ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { MenuLabelProps, MenuItemProps, MenuSubTriggerProps, MenuCheckboxItemProps, MenuRadioItemProps } from "../menu/types.js";
|
|
2
|
+
import type { IDensityProps } from "../density/types.js";
|
|
3
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
4
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
5
|
+
declare function DropdownMenu<Payload>({ ...props }: MenuPrimitive.Root.Props<Payload>): ReactElement;
|
|
6
|
+
declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): ReactElement;
|
|
7
|
+
declare function DropdownMenuTrigger<Payload>({ ...props }: MenuPrimitive.Trigger.Props<Payload>): ReactElement;
|
|
8
|
+
type DropdownMenuContentProps = MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset"> & IDensityProps & {
|
|
9
|
+
width?: "content" | "anchor";
|
|
10
|
+
};
|
|
11
|
+
declare function DropdownMenuContent({ density, width, align, alignOffset, side, sideOffset, className, ...props }: DropdownMenuContentProps): ReactElement;
|
|
12
|
+
declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): ReactElement;
|
|
13
|
+
declare function DropdownMenuLabel({ density, className, inset, ...props }: MenuLabelProps): ReactElement;
|
|
14
|
+
declare function DropdownMenuItem({ density, className, inset, variant, ...props }: MenuItemProps): ReactElement;
|
|
15
|
+
declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): ReactElement;
|
|
16
|
+
declare function DropdownMenuSubTrigger({ density, className, inset, children, ...props }: MenuSubTriggerProps): ReactElement;
|
|
17
|
+
type DropdownMenuSubContentProps = ComponentProps<typeof DropdownMenuContent> & IDensityProps;
|
|
18
|
+
declare function DropdownMenuSubContent({ density, align, alignOffset, side, sideOffset, className, ...props }: DropdownMenuSubContentProps): ReactElement;
|
|
19
|
+
declare function DropdownMenuCheckboxItem({ density, className, children, checked, inset, ...props }: MenuCheckboxItemProps): ReactElement;
|
|
20
|
+
declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): ReactElement;
|
|
21
|
+
declare function DropdownMenuRadioItem({ density, className, children, inset, ...props }: MenuRadioItemProps): ReactElement;
|
|
22
|
+
type DropdownMenuSeparatorProps = MenuPrimitive.Separator.Props & IDensityProps;
|
|
23
|
+
declare function DropdownMenuSeparator({ density, className, ...props }: DropdownMenuSeparatorProps): ReactElement;
|
|
24
|
+
type DropdownMenuShortcutProps = ComponentProps<"span"> & IDensityProps;
|
|
25
|
+
declare function DropdownMenuShortcut({ density, className, ...props }: DropdownMenuShortcutProps): ReactElement;
|
|
26
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
type EmptyProps = ComponentProps<"div"> & IDensityProps;
|
|
5
|
+
declare function Empty({ density, className, ...props }: EmptyProps): ReactElement;
|
|
6
|
+
type EmptyHeaderProps = ComponentProps<"div"> & IDensityProps;
|
|
7
|
+
declare function EmptyHeader({ density, className, ...props }: EmptyHeaderProps): ReactElement;
|
|
8
|
+
declare const emptyMediaVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "icon" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
type EmptyMediaProps = ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants> & IDensityProps;
|
|
12
|
+
declare function EmptyMedia({ density, className, variant, ...props }: EmptyMediaProps): ReactElement;
|
|
13
|
+
type EmptyTitleProps = ComponentProps<"div"> & IDensityProps;
|
|
14
|
+
declare function EmptyTitle({ density, className, ...props }: EmptyTitleProps): ReactElement;
|
|
15
|
+
type EmptyDescriptionProps = ComponentProps<"div"> & IDensityProps;
|
|
16
|
+
declare function EmptyDescription({ density, className, ...props }: EmptyDescriptionProps): ReactElement;
|
|
17
|
+
type EmptyContentProps = ComponentProps<"div"> & IDensityProps;
|
|
18
|
+
declare function EmptyContent({ density, className, ...props }: EmptyContentProps): ReactElement;
|
|
19
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
interface IEmptyStateProps {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function EmptyState({ title, description, children }: IEmptyStateProps): ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
import { Label } from "./Label.js";
|
|
5
|
+
type FieldSetProps = ComponentProps<"fieldset"> & IDensityProps;
|
|
6
|
+
declare function FieldSet({ density, className, ...props }: FieldSetProps): ReactElement;
|
|
7
|
+
type FieldLegendProps = ComponentProps<"legend"> & {
|
|
8
|
+
variant?: "legend" | "label";
|
|
9
|
+
} & IDensityProps;
|
|
10
|
+
declare function FieldLegend({ density, className, variant, ...props }: FieldLegendProps): ReactElement;
|
|
11
|
+
type FieldGroupProps = ComponentProps<"div"> & IDensityProps & {
|
|
12
|
+
columns?: 1 | 2;
|
|
13
|
+
};
|
|
14
|
+
declare function FieldGroup({ density, className, columns, ...props }: FieldGroupProps): ReactElement;
|
|
15
|
+
declare const fieldVariants: (props?: ({
|
|
16
|
+
orientation?: "horizontal" | "responsive" | "vertical" | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
type FieldProps = ComponentProps<"div"> & VariantProps<typeof fieldVariants> & IDensityProps;
|
|
19
|
+
declare function Field({ density, className, orientation, ...props }: FieldProps): ReactElement;
|
|
20
|
+
type FieldContentProps = ComponentProps<"div"> & IDensityProps;
|
|
21
|
+
declare function FieldContent({ density, className, ...props }: FieldContentProps): ReactElement;
|
|
22
|
+
type FieldLabelProps = ComponentProps<typeof Label> & IDensityProps;
|
|
23
|
+
declare function FieldLabel({ density, className, ...props }: FieldLabelProps): ReactElement;
|
|
24
|
+
type FieldTitleProps = ComponentProps<"div"> & IDensityProps;
|
|
25
|
+
declare function FieldTitle({ density, className, ...props }: FieldTitleProps): ReactElement;
|
|
26
|
+
type FieldDescriptionProps = ComponentProps<"p"> & IDensityProps;
|
|
27
|
+
declare function FieldDescription({ density, className, ...props }: FieldDescriptionProps): ReactElement;
|
|
28
|
+
type FieldSeparatorProps = ComponentProps<"div"> & IDensityProps;
|
|
29
|
+
declare function FieldSeparator({ density, children, className, ...props }: FieldSeparatorProps): ReactElement;
|
|
30
|
+
type FieldErrorProps = ComponentProps<"div"> & {
|
|
31
|
+
errors?: ReadonlyArray<{
|
|
32
|
+
message?: string;
|
|
33
|
+
} | undefined>;
|
|
34
|
+
} & IDensityProps;
|
|
35
|
+
declare function FieldError({ density, className, children, errors, ...props }: FieldErrorProps): ReactElement | null;
|
|
36
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
4
|
+
declare function HoverCard<Payload>({ ...props }: PreviewCardPrimitive.Root.Props<Payload>): ReactElement;
|
|
5
|
+
declare function HoverCardTrigger<Payload>({ ...props }: PreviewCardPrimitive.Trigger.Props<Payload>): ReactElement;
|
|
6
|
+
type HoverCardContentProps = PreviewCardPrimitive.Popup.Props & Pick<PreviewCardPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset"> & IDensityProps;
|
|
7
|
+
declare function HoverCardContent({ density, className, side, sideOffset, align, alignOffset, ...props }: HoverCardContentProps): ReactElement;
|
|
8
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
interface IImagePickerProps {
|
|
3
|
+
src?: string;
|
|
4
|
+
file?: File | null;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onFileChange: (file: File) => void;
|
|
8
|
+
onClear: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ImagePicker({ src, file, label, disabled, onFileChange, onClear }: IImagePickerProps): ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { IDensityProps } from "../density/types.js";
|
|
3
|
+
interface IInlineEditProps extends IDensityProps {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
shouldSelectOnMount?: boolean;
|
|
8
|
+
onValueChange: (value: string) => void;
|
|
9
|
+
onCommit: (value: string) => void | Promise<void>;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
}
|
|
12
|
+
/** A mounted edit session. The consumer replaces its display with this field while editing. */
|
|
13
|
+
export declare function InlineEdit({ label, value, density, isDisabled, shouldSelectOnMount, onValueChange, onCommit, onCancel, }: IInlineEditProps): ReactElement;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ReactElement } from "react";
|
|
3
|
+
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
4
|
+
type InputProps = InputPrimitive.Props & IDensityProps;
|
|
5
|
+
declare function Input({ density, className, type, ...props }: InputProps): ReactElement;
|
|
6
|
+
export { Input };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
import { Button } from "./Button.js";
|
|
5
|
+
import { Input } from "./Input.js";
|
|
6
|
+
type InputGroupProps = ComponentProps<"div"> & IDensityProps;
|
|
7
|
+
declare function InputGroup({ density, className, ...props }: InputGroupProps): ReactElement;
|
|
8
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
9
|
+
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
type InputGroupAddonProps = ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants> & IDensityProps;
|
|
12
|
+
declare function InputGroupAddon({ density, className, align, ...props }: InputGroupAddonProps): ReactElement;
|
|
13
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
14
|
+
size?: "icon-sm" | "icon-xs" | "sm" | "xs" | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
type InputGroupButtonProps = Omit<ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
17
|
+
type?: "button" | "submit" | "reset";
|
|
18
|
+
} & IDensityProps;
|
|
19
|
+
declare function InputGroupButton({ density, className, type, variant, size, ...props }: InputGroupButtonProps): ReactElement;
|
|
20
|
+
type InputGroupTextProps = ComponentProps<"span"> & IDensityProps;
|
|
21
|
+
declare function InputGroupText({ density, className, ...props }: InputGroupTextProps): ReactElement;
|
|
22
|
+
type InputGroupInputProps = ComponentProps<typeof Input>;
|
|
23
|
+
declare function InputGroupInput({ density, className, ...props }: InputGroupInputProps): ReactElement;
|
|
24
|
+
type InputGroupTextareaProps = ComponentProps<"textarea"> & IDensityProps;
|
|
25
|
+
declare function InputGroupTextarea({ density, className, ...props }: InputGroupTextareaProps): ReactElement;
|
|
26
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
import { Separator } from "./Separator.js";
|
|
6
|
+
type ItemGroupProps = ComponentProps<"div"> & IDensityProps;
|
|
7
|
+
declare function ItemGroup({ density, className, ...props }: ItemGroupProps): ReactElement;
|
|
8
|
+
declare function ItemSeparator({ density, className, ...props }: ComponentProps<typeof Separator>): ReactElement;
|
|
9
|
+
declare const itemVariants: (props?: ({
|
|
10
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
11
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
type ItemProps = useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants> & IDensityProps;
|
|
14
|
+
declare function Item({ density, className, variant, size, render, ...props }: ItemProps): ReactElement;
|
|
15
|
+
declare const itemMediaVariants: (props?: ({
|
|
16
|
+
variant?: "default" | "icon" | "image" | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
type ItemMediaProps = ComponentProps<"div"> & VariantProps<typeof itemMediaVariants> & IDensityProps;
|
|
19
|
+
declare function ItemMedia({ density, className, variant, ...props }: ItemMediaProps): ReactElement;
|
|
20
|
+
type ItemContentProps = ComponentProps<"div"> & IDensityProps;
|
|
21
|
+
declare function ItemContent({ density, className, ...props }: ItemContentProps): ReactElement;
|
|
22
|
+
type ItemTitleProps = ComponentProps<"div"> & IDensityProps;
|
|
23
|
+
declare function ItemTitle({ density, className, ...props }: ItemTitleProps): ReactElement;
|
|
24
|
+
type ItemDescriptionProps = ComponentProps<"p"> & IDensityProps;
|
|
25
|
+
declare function ItemDescription({ density, className, ...props }: ItemDescriptionProps): ReactElement;
|
|
26
|
+
type ItemActionsProps = ComponentProps<"div"> & IDensityProps;
|
|
27
|
+
declare function ItemActions({ density, className, ...props }: ItemActionsProps): ReactElement;
|
|
28
|
+
type ItemHeaderProps = ComponentProps<"div"> & IDensityProps;
|
|
29
|
+
declare function ItemHeader({ density, className, ...props }: ItemHeaderProps): ReactElement;
|
|
30
|
+
type ItemFooterProps = ComponentProps<"div"> & IDensityProps;
|
|
31
|
+
declare function ItemFooter({ density, className, ...props }: ItemFooterProps): ReactElement;
|
|
32
|
+
export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
type KbdProps = ComponentProps<"kbd"> & IDensityProps;
|
|
4
|
+
declare function Kbd({ density, className, ...props }: KbdProps): ReactElement;
|
|
5
|
+
type KbdGroupProps = ComponentProps<"kbd"> & IDensityProps;
|
|
6
|
+
declare function KbdGroup({ density, className, ...props }: KbdGroupProps): ReactElement;
|
|
7
|
+
export { Kbd, KbdGroup };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDensityProps } from "../density/types.js";
|
|
2
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
3
|
+
type LabelProps = ComponentProps<"label"> & IDensityProps;
|
|
4
|
+
declare function Label({ density, className, ...props }: LabelProps): ReactElement;
|
|
5
|
+
export { Label };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
|
+
import type { Density, IDensityProps } from "../density/types.js";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { type VariantProps } from "class-variance-authority";
|
|
5
|
+
declare const markerVariants: (props?: ({
|
|
6
|
+
variant?: "border" | "default" | "separator" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type MarkerState = {
|
|
9
|
+
slot: "marker";
|
|
10
|
+
variant: VariantProps<typeof markerVariants>["variant"];
|
|
11
|
+
density?: Density;
|
|
12
|
+
};
|
|
13
|
+
type MarkerProps = useRender.ComponentProps<"div", MarkerState> & VariantProps<typeof markerVariants> & IDensityProps;
|
|
14
|
+
declare function Marker({ density, className, variant, render, ...props }: MarkerProps): ReactElement;
|
|
15
|
+
type MarkerIconProps = ComponentProps<"span"> & IDensityProps;
|
|
16
|
+
declare function MarkerIcon({ density, className, ...props }: MarkerIconProps): ReactElement;
|
|
17
|
+
type MarkerContentProps = ComponentProps<"span"> & IDensityProps;
|
|
18
|
+
declare function MarkerContent({ density, className, ...props }: MarkerContentProps): ReactElement;
|
|
19
|
+
export { Marker, MarkerIcon, MarkerContent, markerVariants };
|