@monoform-ui/react 0.0.0-stage → 0.2.0-beta.0
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 +228 -2
- package/THIRD_PARTY_NOTICES.md +37 -0
- package/dist/actions.d.ts +80 -0
- package/dist/advanced-forms.d.ts +107 -0
- package/dist/advanced-inputs.d.ts +103 -0
- package/dist/agent-chat.d.ts +98 -0
- package/dist/agent-input.d.ts +54 -0
- package/dist/ai-creation-input.d.ts +71 -0
- package/dist/ai-interactions.d.ts +90 -0
- package/dist/ai-status.d.ts +17 -0
- package/dist/ai.cjs +2 -0
- package/dist/ai.cjs.map +1 -0
- package/dist/ai.d.ts +6 -0
- package/dist/ai.js +29 -0
- package/dist/ai.js.map +1 -0
- package/dist/app-shell.d.ts +69 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark.svg +58 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light.svg +58 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark.svg +50 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light.svg +50 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark.svg +49 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light.svg +49 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark.svg +39 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light.svg +39 -0
- package/dist/background-assets.d.ts +144 -0
- package/dist/backgrounds.cjs +2 -0
- package/dist/backgrounds.cjs.map +1 -0
- package/dist/backgrounds.css +463 -0
- package/dist/backgrounds.d.ts +44 -0
- package/dist/backgrounds.js +256 -0
- package/dist/backgrounds.js.map +1 -0
- package/dist/catalog.cjs +2 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.ts +27 -0
- package/dist/catalog.js +307 -0
- package/dist/catalog.js.map +1 -0
- package/dist/collections-CXPc6huw.cjs +2 -0
- package/dist/collections-CXPc6huw.cjs.map +1 -0
- package/dist/collections-GglQdMPr.js +1308 -0
- package/dist/collections-GglQdMPr.js.map +1 -0
- package/dist/collections.d.ts +52 -0
- package/dist/command-palette-B4r2GzmF.cjs +2 -0
- package/dist/command-palette-B4r2GzmF.cjs.map +1 -0
- package/dist/command-palette-DwfgljM2.js +2773 -0
- package/dist/command-palette-DwfgljM2.js.map +1 -0
- package/dist/command-palette.d.ts +26 -0
- package/dist/core.cjs +2 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.css +8659 -0
- package/dist/core.d.ts +19 -0
- package/dist/core.js +176 -0
- package/dist/core.js.map +1 -0
- package/dist/data-grid.d.ts +62 -0
- package/dist/data-workbench.d.ts +103 -0
- package/dist/data.cjs +2 -0
- package/dist/data.cjs.map +1 -0
- package/dist/data.d.ts +6 -0
- package/dist/data.js +19 -0
- package/dist/data.js.map +1 -0
- package/dist/description-list.d.ts +8 -0
- package/dist/effects.cjs +2 -0
- package/dist/effects.cjs.map +1 -0
- package/dist/effects.css +442 -0
- package/dist/effects.d.ts +2 -0
- package/dist/effects.js +19 -0
- package/dist/effects.js.map +1 -0
- package/dist/feedback.d.ts +40 -0
- package/dist/forms.d.ts +89 -0
- package/dist/harness-D7tlTUb2.cjs +2 -0
- package/dist/harness-D7tlTUb2.cjs.map +1 -0
- package/dist/harness-Dcqe3-AP.js +2282 -0
- package/dist/harness-Dcqe3-AP.js.map +1 -0
- package/dist/harness.d.ts +89 -0
- package/dist/hooks.d.ts +6 -0
- package/dist/image-effects-BaXRloLB.js +164 -0
- package/dist/image-effects-BaXRloLB.js.map +1 -0
- package/dist/image-effects-D57JACXp.cjs +2 -0
- package/dist/image-effects-D57JACXp.cjs.map +1 -0
- package/dist/image-effects.d.ts +14 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +239 -0
- package/dist/index.js.map +1 -0
- package/dist/locale.d.ts +358 -0
- package/dist/motion-effects-C1Rs4a2H.js +449 -0
- package/dist/motion-effects-C1Rs4a2H.js.map +1 -0
- package/dist/motion-effects-ze3SOVGs.cjs +2 -0
- package/dist/motion-effects-ze3SOVGs.cjs.map +1 -0
- package/dist/motion-effects.d.ts +76 -0
- package/dist/nav-menu.d.ts +45 -0
- package/dist/navigation-BG-qLyKt.cjs +2 -0
- package/dist/navigation-BG-qLyKt.cjs.map +1 -0
- package/dist/navigation-Bp7q1n-5.js +252 -0
- package/dist/navigation-Bp7q1n-5.js.map +1 -0
- package/dist/navigation.d.ts +53 -0
- package/dist/overlays-BhrWwlkN.js +1288 -0
- package/dist/overlays-BhrWwlkN.js.map +1 -0
- package/dist/overlays-DvozzH8D.cjs +2 -0
- package/dist/overlays-DvozzH8D.cjs.map +1 -0
- package/dist/overlays.d.ts +92 -0
- package/dist/people-picker.d.ts +65 -0
- package/dist/portal.d.ts +3 -0
- package/dist/primitives-Bb7v-uZh.js +217 -0
- package/dist/primitives-Bb7v-uZh.js.map +1 -0
- package/dist/primitives-CEcOVwUM.cjs +2 -0
- package/dist/primitives-CEcOVwUM.cjs.map +1 -0
- package/dist/primitives.d.ts +66 -0
- package/dist/rounded-card-border-B3d1HqwY.js +185 -0
- package/dist/rounded-card-border-B3d1HqwY.js.map +1 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs +2 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs.map +1 -0
- package/dist/rounded-card-border.d.ts +3 -0
- package/dist/sizes.d.ts +4 -0
- package/dist/status-toast.d.ts +20 -0
- package/dist/styles.css +9566 -0
- package/dist/theme-C3i6xkHd.cjs +2 -0
- package/dist/theme-C3i6xkHd.cjs.map +1 -0
- package/dist/theme-CHYnSgLv.js +914 -0
- package/dist/theme-CHYnSgLv.js.map +1 -0
- package/dist/theme.d.ts +24 -0
- package/dist/timeline.d.ts +15 -0
- package/dist/tree-view-Djlqyml-.js +132 -0
- package/dist/tree-view-Djlqyml-.js.map +1 -0
- package/dist/tree-view-iVh5jMNt.cjs +2 -0
- package/dist/tree-view-iVh5jMNt.cjs.map +1 -0
- package/dist/tree-view.d.ts +18 -0
- package/dist/utils.d.ts +2 -0
- package/package.json +162 -4
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { SurfaceSize } from './sizes';
|
|
3
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
5
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
6
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
7
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
8
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
9
|
+
import * as ToastPrimitive from "@radix-ui/react-toast";
|
|
10
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
11
|
+
export declare const Dialog: import('react').FC<DialogPrimitive.DialogProps>;
|
|
12
|
+
export declare const DialogTrigger: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export declare const DialogClose: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export declare const DialogContent: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
size?: SurfaceSize;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare function DialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
18
|
+
export declare const DialogTitle: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
19
|
+
export declare const DialogDescription: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
export declare function DialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
21
|
+
export declare const AlertDialog: import('react').FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
22
|
+
export declare const AlertDialogTrigger: import('react').ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export declare const AlertDialogCancel: import('react').ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogCancelProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
export declare const AlertDialogAction: import('react').ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogActionProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export declare const AlertDialogContent: import('react').ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
26
|
+
size?: SurfaceSize;
|
|
27
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export declare function AlertDialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
29
|
+
export declare const AlertDialogTitle: import('react').ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
30
|
+
export declare const AlertDialogDescription: import('react').ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
31
|
+
export declare function AlertDialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
32
|
+
export declare const Drawer: import('react').FC<DialogPrimitive.DialogProps>;
|
|
33
|
+
export declare const DrawerTrigger: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
export declare const DrawerClose: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
35
|
+
export declare const DrawerContent: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
36
|
+
side?: "left" | "right";
|
|
37
|
+
size?: SurfaceSize;
|
|
38
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export declare const DrawerHeader: typeof DialogHeader;
|
|
40
|
+
export declare const DrawerTitle: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
41
|
+
export declare const DrawerDescription: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
42
|
+
export declare const DrawerFooter: typeof DialogFooter;
|
|
43
|
+
export declare const Popover: import('react').FC<PopoverPrimitive.PopoverProps>;
|
|
44
|
+
export declare const PopoverTrigger: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
export declare const PopoverAnchor: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
46
|
+
export declare const PopoverClose: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
export declare const PopoverContent: import('react').ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
48
|
+
export declare const TooltipProvider: import('react').FC<TooltipPrimitive.TooltipProviderProps>;
|
|
49
|
+
export declare const Tooltip: import('react').FC<TooltipPrimitive.TooltipProps>;
|
|
50
|
+
export declare const TooltipTrigger: import('react').ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
51
|
+
export declare const TooltipContent: import('react').ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
52
|
+
export declare const DropdownMenu: import('react').FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
53
|
+
export declare const DropdownMenuTrigger: import('react').ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
export declare const DropdownMenuGroup: import('react').ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
55
|
+
export declare const DropdownMenuSub: import('react').FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
56
|
+
export declare const DropdownMenuRadioGroup: import('react').ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
57
|
+
export declare const DropdownMenuItemIndicator: import('react').ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuItemIndicatorProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
58
|
+
export declare const DropdownMenuContent: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export declare const DropdownMenuItem: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export declare const DropdownMenuCheckboxItem: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
61
|
+
export declare const DropdownMenuRadioItem: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
62
|
+
export declare const DropdownMenuLabel: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
63
|
+
export declare const DropdownMenuSeparator: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
64
|
+
export declare const DropdownMenuSubTrigger: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
65
|
+
export declare const DropdownMenuSubContent: import('react').ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
66
|
+
export declare const ContextMenu: import('react').FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
67
|
+
export declare const ContextMenuTrigger: import('react').ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
68
|
+
export declare const ContextMenuGroup: import('react').ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
69
|
+
export declare const ContextMenuSub: import('react').FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
70
|
+
export declare const ContextMenuRadioGroup: import('react').ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
71
|
+
export declare const ContextMenuItemIndicator: import('react').ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuItemIndicatorProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
72
|
+
export declare const ContextMenuContent: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
73
|
+
export declare const ContextMenuItem: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
74
|
+
export declare const ContextMenuCheckboxItem: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
75
|
+
export declare const ContextMenuRadioItem: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
76
|
+
export declare const ContextMenuLabel: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
77
|
+
export declare const ContextMenuSeparator: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
78
|
+
export declare const ContextMenuSubTrigger: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
79
|
+
export declare const ContextMenuSubContent: import('react').ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
80
|
+
export declare const HoverCard: import('react').FC<HoverCardPrimitive.HoverCardProps>;
|
|
81
|
+
export declare const HoverCardTrigger: import('react').ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
82
|
+
export declare const HoverCardContent: import('react').ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
83
|
+
export declare const Toast: import('react').ForwardRefExoticComponent<Omit<ToastPrimitive.ToastProps & import('react').RefAttributes<HTMLLIElement>, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
84
|
+
export declare const ToastTitle: import('react').ForwardRefExoticComponent<Omit<ToastPrimitive.ToastTitleProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
85
|
+
export declare const ToastDescription: import('react').ForwardRefExoticComponent<Omit<ToastPrimitive.ToastDescriptionProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
86
|
+
export declare const ToastAction: import('react').ForwardRefExoticComponent<ToastPrimitive.ToastActionProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
87
|
+
export declare const ToastClose: import('react').ForwardRefExoticComponent<Omit<ToastPrimitive.ToastCloseProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
88
|
+
export declare function ToastProvider({ children, duration, label, }: {
|
|
89
|
+
children: ReactNode;
|
|
90
|
+
duration?: number;
|
|
91
|
+
label?: string;
|
|
92
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ControlSize } from './sizes';
|
|
2
|
+
export interface PeoplePickerPerson {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
avatarSrc?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PeoplePickerOrganization {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
memberCount?: number;
|
|
14
|
+
members?: PeoplePickerPerson[];
|
|
15
|
+
children?: PeoplePickerOrganization[];
|
|
16
|
+
hasMoreMembers?: boolean;
|
|
17
|
+
hasMoreChildren?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface PeoplePickerSearchResult {
|
|
20
|
+
person: PeoplePickerPerson;
|
|
21
|
+
organizationPath: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface PeoplePickerDataSource {
|
|
24
|
+
organizations: PeoplePickerOrganization[];
|
|
25
|
+
loadChildren?: (organizationId: string, context: {
|
|
26
|
+
signal: AbortSignal;
|
|
27
|
+
}) => Promise<PeoplePickerOrganization[]>;
|
|
28
|
+
loadMembers?: (organizationId: string, context: {
|
|
29
|
+
signal: AbortSignal;
|
|
30
|
+
}) => Promise<PeoplePickerPerson[]>;
|
|
31
|
+
resolvePeople?: (personIds: string[], context: {
|
|
32
|
+
signal: AbortSignal;
|
|
33
|
+
}) => Promise<PeoplePickerPerson[]>;
|
|
34
|
+
searchPeople?: (query: string, context: {
|
|
35
|
+
signal: AbortSignal;
|
|
36
|
+
}) => Promise<PeoplePickerSearchResult[]>;
|
|
37
|
+
}
|
|
38
|
+
export interface PeoplePickerBaseProps {
|
|
39
|
+
data: PeoplePickerDataSource;
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
searchPlaceholder?: string;
|
|
42
|
+
emptyMessage?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
invalid?: boolean;
|
|
45
|
+
size?: ControlSize;
|
|
46
|
+
name?: string;
|
|
47
|
+
open?: boolean;
|
|
48
|
+
defaultOpen?: boolean;
|
|
49
|
+
onOpenChange?: (open: boolean) => void;
|
|
50
|
+
"aria-label"?: string;
|
|
51
|
+
"aria-describedby"?: string;
|
|
52
|
+
}
|
|
53
|
+
export type PeoplePickerProps = (PeoplePickerBaseProps & {
|
|
54
|
+
mode?: "single";
|
|
55
|
+
value?: string;
|
|
56
|
+
defaultValue?: string;
|
|
57
|
+
onValueChange?: (personId: string | undefined) => void;
|
|
58
|
+
}) | (PeoplePickerBaseProps & {
|
|
59
|
+
mode: "multiple";
|
|
60
|
+
value?: string[];
|
|
61
|
+
defaultValue?: string[];
|
|
62
|
+
maxSelected?: number;
|
|
63
|
+
onValueChange?: (personIds: string[]) => void;
|
|
64
|
+
});
|
|
65
|
+
export declare function PeoplePicker(props: PeoplePickerProps): import("react").JSX.Element;
|
package/dist/portal.d.ts
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o, createElement as c } from "react";
|
|
3
|
+
import { c as n } from "./theme-CHYnSgLv.js";
|
|
4
|
+
function f(a) {
|
|
5
|
+
if (a !== void 0)
|
|
6
|
+
return typeof a == "number" ? `${a * 4}px` : `var(--mf-space-${a})`;
|
|
7
|
+
}
|
|
8
|
+
const y = o(
|
|
9
|
+
({
|
|
10
|
+
direction: a = "column",
|
|
11
|
+
gap: e = 3,
|
|
12
|
+
align: s,
|
|
13
|
+
justify: t,
|
|
14
|
+
wrap: i = !1,
|
|
15
|
+
className: m,
|
|
16
|
+
style: l,
|
|
17
|
+
...d
|
|
18
|
+
}, N) => /* @__PURE__ */ r(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
ref: N,
|
|
22
|
+
className: n("mf-stack", m),
|
|
23
|
+
style: {
|
|
24
|
+
flexDirection: a,
|
|
25
|
+
gap: f(e),
|
|
26
|
+
alignItems: s,
|
|
27
|
+
justifyContent: t,
|
|
28
|
+
flexWrap: i ? "wrap" : void 0,
|
|
29
|
+
...l
|
|
30
|
+
},
|
|
31
|
+
...d
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
y.displayName = "Stack";
|
|
36
|
+
const u = o(
|
|
37
|
+
({ columns: a = 2, gap: e = 4, align: s, className: t, style: i, ...m }, l) => /* @__PURE__ */ r(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: l,
|
|
41
|
+
className: n("mf-grid", t),
|
|
42
|
+
style: {
|
|
43
|
+
gridTemplateColumns: typeof a == "number" ? `repeat(${a}, minmax(0, 1fr))` : a,
|
|
44
|
+
gap: f(e),
|
|
45
|
+
alignItems: s,
|
|
46
|
+
...i
|
|
47
|
+
},
|
|
48
|
+
...m
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
u.displayName = "Grid";
|
|
53
|
+
const g = o(
|
|
54
|
+
({ size: a = "lg", className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
ref: t,
|
|
58
|
+
className: n("mf-container", `mf-container--${a}`, e),
|
|
59
|
+
...s
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
g.displayName = "Container";
|
|
64
|
+
const x = o(
|
|
65
|
+
({ size: a = "md", indent: e = !1, className: s, ...t }, i) => /* @__PURE__ */ r(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
ref: i,
|
|
69
|
+
className: n(
|
|
70
|
+
"mf-prose",
|
|
71
|
+
`mf-prose--${a}`,
|
|
72
|
+
e && "mf-prose--indent",
|
|
73
|
+
s
|
|
74
|
+
),
|
|
75
|
+
...t
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
x.displayName = "Prose";
|
|
80
|
+
const $ = {
|
|
81
|
+
xs: 12,
|
|
82
|
+
sm: 14,
|
|
83
|
+
md: 16,
|
|
84
|
+
lg: 20,
|
|
85
|
+
xl: 24
|
|
86
|
+
}, k = o(
|
|
87
|
+
({
|
|
88
|
+
icon: a,
|
|
89
|
+
size: e = "md",
|
|
90
|
+
label: s,
|
|
91
|
+
className: t,
|
|
92
|
+
"aria-hidden": i,
|
|
93
|
+
...m
|
|
94
|
+
}, l) => /* @__PURE__ */ r(
|
|
95
|
+
a,
|
|
96
|
+
{
|
|
97
|
+
...m,
|
|
98
|
+
ref: l,
|
|
99
|
+
className: n("mf-icon", `mf-icon--${e}`, t),
|
|
100
|
+
size: $[e],
|
|
101
|
+
strokeWidth: 1.5,
|
|
102
|
+
role: s ? "img" : m.role,
|
|
103
|
+
"aria-label": s,
|
|
104
|
+
"aria-hidden": s ? i : !0
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
k.displayName = "Icon";
|
|
109
|
+
const h = o(
|
|
110
|
+
({
|
|
111
|
+
as: a = "span",
|
|
112
|
+
size: e = "md",
|
|
113
|
+
tone: s = "default",
|
|
114
|
+
weight: t = "regular",
|
|
115
|
+
truncate: i = !1,
|
|
116
|
+
className: m,
|
|
117
|
+
...l
|
|
118
|
+
}, d) => c(a, {
|
|
119
|
+
ref: d,
|
|
120
|
+
className: n(
|
|
121
|
+
"mf-text",
|
|
122
|
+
`mf-text--${e}`,
|
|
123
|
+
`mf-text--${s}`,
|
|
124
|
+
`mf-text--${t}`,
|
|
125
|
+
i && "mf-text--truncate",
|
|
126
|
+
m
|
|
127
|
+
),
|
|
128
|
+
...l
|
|
129
|
+
})
|
|
130
|
+
);
|
|
131
|
+
h.displayName = "Text";
|
|
132
|
+
const v = o(
|
|
133
|
+
({ as: a = "h2", size: e = "md", className: s, ...t }, i) => c(a, {
|
|
134
|
+
ref: i,
|
|
135
|
+
className: n("mf-heading", `mf-heading--${e}`, s),
|
|
136
|
+
...t
|
|
137
|
+
})
|
|
138
|
+
);
|
|
139
|
+
v.displayName = "Heading";
|
|
140
|
+
const S = o(
|
|
141
|
+
({ external: a, className: e, children: s, ...t }, i) => {
|
|
142
|
+
const m = a ? [
|
|
143
|
+
...new Set(
|
|
144
|
+
(t.rel ?? "").split(/\s+/).filter(Boolean).filter(
|
|
145
|
+
(l) => !["opener", "noopener", "noreferrer"].includes(l.toLowerCase())
|
|
146
|
+
)
|
|
147
|
+
),
|
|
148
|
+
"noopener",
|
|
149
|
+
"noreferrer"
|
|
150
|
+
].join(" ") : t.rel;
|
|
151
|
+
return /* @__PURE__ */ r(
|
|
152
|
+
"a",
|
|
153
|
+
{
|
|
154
|
+
...t,
|
|
155
|
+
ref: i,
|
|
156
|
+
className: n("mf-link", e),
|
|
157
|
+
rel: m,
|
|
158
|
+
target: a ? "_blank" : t.target,
|
|
159
|
+
children: s
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
S.displayName = "Link";
|
|
165
|
+
const C = o(
|
|
166
|
+
({ orientation: a = "horizontal", className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
167
|
+
"div",
|
|
168
|
+
{
|
|
169
|
+
ref: t,
|
|
170
|
+
className: n("mf-separator", `mf-separator--${a}`, e),
|
|
171
|
+
role: "separator",
|
|
172
|
+
"aria-orientation": a,
|
|
173
|
+
...s
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
);
|
|
177
|
+
C.displayName = "Separator";
|
|
178
|
+
const p = o(({ className: a, ...e }, s) => /* @__PURE__ */ r("span", { ref: s, className: n("mf-visually-hidden", a), ...e }));
|
|
179
|
+
p.displayName = "VisuallyHidden";
|
|
180
|
+
const b = o(
|
|
181
|
+
({ ratio: a = 16 / 9, className: e, style: s, ...t }, i) => /* @__PURE__ */ r(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
ref: i,
|
|
185
|
+
className: n("mf-aspect-ratio", e),
|
|
186
|
+
style: { aspectRatio: String(a), ...s },
|
|
187
|
+
...t
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
);
|
|
191
|
+
b.displayName = "AspectRatio";
|
|
192
|
+
function w({ className: a, ...e }) {
|
|
193
|
+
return /* @__PURE__ */ r("code", { className: n("mf-code", a), ...e });
|
|
194
|
+
}
|
|
195
|
+
function L({ className: a, children: e, ...s }) {
|
|
196
|
+
return /* @__PURE__ */ r("kbd", { className: n("mf-kbd", a), ...s, children: e });
|
|
197
|
+
}
|
|
198
|
+
function R({ children: a }) {
|
|
199
|
+
return /* @__PURE__ */ r(p, { children: a });
|
|
200
|
+
}
|
|
201
|
+
export {
|
|
202
|
+
b as A,
|
|
203
|
+
w as C,
|
|
204
|
+
u as G,
|
|
205
|
+
v as H,
|
|
206
|
+
k as I,
|
|
207
|
+
L as K,
|
|
208
|
+
S as L,
|
|
209
|
+
x as P,
|
|
210
|
+
C as S,
|
|
211
|
+
h as T,
|
|
212
|
+
p as V,
|
|
213
|
+
g as a,
|
|
214
|
+
y as b,
|
|
215
|
+
R as c
|
|
216
|
+
};
|
|
217
|
+
//# sourceMappingURL=primitives-Bb7v-uZh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives-Bb7v-uZh.js","sources":["../src/primitives.tsx"],"sourcesContent":["import {\n createElement,\n forwardRef,\n type AnchorHTMLAttributes,\n type CSSProperties,\n type HTMLAttributes,\n type ReactNode,\n type SVGProps,\n} from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { cn } from \"./utils\";\n\ntype SpaceToken = \"0\" | \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"8\" | \"10\" | \"12\";\n\nfunction spacing(value: number | SpaceToken | undefined) {\n if (value === undefined) return undefined;\n if (typeof value === \"number\") return `${value * 4}px`;\n return `var(--mf-space-${value})`;\n}\n\nexport interface StackProps extends HTMLAttributes<HTMLDivElement> {\n direction?: \"row\" | \"column\";\n gap?: number | SpaceToken;\n align?: CSSProperties[\"alignItems\"];\n justify?: CSSProperties[\"justifyContent\"];\n wrap?: boolean;\n}\n\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = \"column\",\n gap = 3,\n align,\n justify,\n wrap = false,\n className,\n style,\n ...props\n },\n ref,\n ) => (\n <div\n ref={ref}\n className={cn(\"mf-stack\", className)}\n style={{\n flexDirection: direction,\n gap: spacing(gap),\n alignItems: align,\n justifyContent: justify,\n flexWrap: wrap ? \"wrap\" : undefined,\n ...style,\n }}\n {...props}\n />\n ),\n);\nStack.displayName = \"Stack\";\n\nexport interface GridProps extends HTMLAttributes<HTMLDivElement> {\n columns?: number | string;\n gap?: number | SpaceToken;\n align?: CSSProperties[\"alignItems\"];\n}\n\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n ({ columns = 2, gap = 4, align, className, style, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-grid\", className)}\n style={{\n gridTemplateColumns:\n typeof columns === \"number\" ? `repeat(${columns}, minmax(0, 1fr))` : columns,\n gap: spacing(gap),\n alignItems: align,\n ...style,\n }}\n {...props}\n />\n ),\n);\nGrid.displayName = \"Grid\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n}\n\nexport const Container = forwardRef<HTMLDivElement, ContainerProps>(\n ({ size = \"lg\", className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-container\", `mf-container--${size}`, className)}\n {...props}\n />\n ),\n);\nContainer.displayName = \"Container\";\n\nexport interface ProseProps extends HTMLAttributes<HTMLDivElement> {\n size?: \"sm\" | \"md\";\n indent?: boolean;\n}\n\nexport const Prose = forwardRef<HTMLDivElement, ProseProps>(\n ({ size = \"md\", indent = false, className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"mf-prose\",\n `mf-prose--${size}`,\n indent && \"mf-prose--indent\",\n className,\n )}\n {...props}\n />\n ),\n);\nProse.displayName = \"Prose\";\n\nexport type IconSize = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\n\nconst iconSizes: Record<IconSize, number> = {\n xs: 12,\n sm: 14,\n md: 16,\n lg: 20,\n xl: 24,\n};\n\nexport interface IconProps extends Omit<SVGProps<SVGSVGElement>, \"ref\"> {\n icon: LucideIcon;\n size?: IconSize;\n label?: string;\n}\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(\n (\n {\n icon: IconComponent,\n size = \"md\",\n label,\n className,\n \"aria-hidden\": ariaHidden,\n ...props\n },\n ref,\n ) => (\n <IconComponent\n {...props}\n ref={ref}\n className={cn(\"mf-icon\", `mf-icon--${size}`, className)}\n size={iconSizes[size]}\n strokeWidth={1.5}\n role={label ? \"img\" : props.role}\n aria-label={label}\n aria-hidden={label ? ariaHidden : true}\n />\n ),\n);\nIcon.displayName = \"Icon\";\n\ntype TextElement = \"span\" | \"p\" | \"div\" | \"small\" | \"strong\" | \"label\";\n\nexport interface TextProps extends HTMLAttributes<HTMLElement> {\n as?: TextElement;\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\";\n tone?: \"default\" | \"muted\" | \"subtle\" | \"danger\" | \"success\";\n weight?: \"regular\" | \"medium\";\n truncate?: boolean;\n}\n\nexport const Text = forwardRef<HTMLElement, TextProps>(\n (\n {\n as = \"span\",\n size = \"md\",\n tone = \"default\",\n weight = \"regular\",\n truncate = false,\n className,\n ...props\n },\n ref,\n ) =>\n createElement(as, {\n ref,\n className: cn(\n \"mf-text\",\n `mf-text--${size}`,\n `mf-text--${tone}`,\n `mf-text--${weight}`,\n truncate && \"mf-text--truncate\",\n className,\n ),\n ...props,\n }),\n);\nText.displayName = \"Text\";\n\nexport interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n}\n\nexport const Heading = forwardRef<HTMLHeadingElement, HeadingProps>(\n ({ as = \"h2\", size = \"md\", className, ...props }, ref) =>\n createElement(as, {\n ref,\n className: cn(\"mf-heading\", `mf-heading--${size}`, className),\n ...props,\n }),\n);\nHeading.displayName = \"Heading\";\n\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n external?: boolean;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n ({ external, className, children, ...props }, ref) => {\n const rel = external\n ? [\n ...new Set(\n (props.rel ?? \"\")\n .split(/\\s+/)\n .filter(Boolean)\n .filter(\n (token) =>\n ![\"opener\", \"noopener\", \"noreferrer\"].includes(token.toLowerCase()),\n ),\n ),\n \"noopener\",\n \"noreferrer\",\n ].join(\" \")\n : props.rel;\n\n return (\n <a\n {...props}\n ref={ref}\n className={cn(\"mf-link\", className)}\n rel={rel}\n target={external ? \"_blank\" : props.target}\n >\n {children}\n </a>\n );\n },\n);\nLink.displayName = \"Link\";\n\nexport interface SeparatorProps extends HTMLAttributes<HTMLDivElement> {\n orientation?: \"horizontal\" | \"vertical\";\n}\n\nexport const Separator = forwardRef<HTMLDivElement, SeparatorProps>(\n ({ orientation = \"horizontal\", className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-separator\", `mf-separator--${orientation}`, className)}\n role=\"separator\"\n aria-orientation={orientation}\n {...props}\n />\n ),\n);\nSeparator.displayName = \"Separator\";\n\nexport const VisuallyHidden = forwardRef<\n HTMLSpanElement,\n HTMLAttributes<HTMLSpanElement>\n>(({ className, ...props }, ref) => (\n <span ref={ref} className={cn(\"mf-visually-hidden\", className)} {...props} />\n));\nVisuallyHidden.displayName = \"VisuallyHidden\";\n\nexport interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {\n ratio?: number;\n}\n\nexport const AspectRatio = forwardRef<HTMLDivElement, AspectRatioProps>(\n ({ ratio = 16 / 9, className, style, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-aspect-ratio\", className)}\n style={{ aspectRatio: String(ratio), ...style }}\n {...props}\n />\n ),\n);\nAspectRatio.displayName = \"AspectRatio\";\n\nexport function Code({ className, ...props }: HTMLAttributes<HTMLElement>) {\n return <code className={cn(\"mf-code\", className)} {...props} />;\n}\n\nexport function Kbd({ className, children, ...props }: HTMLAttributes<HTMLElement>) {\n return (\n <kbd className={cn(\"mf-kbd\", className)} {...props}>\n {children}\n </kbd>\n );\n}\n\nexport function VisuallyHiddenText({ children }: { children: ReactNode }) {\n return <VisuallyHidden>{children}</VisuallyHidden>;\n}\n"],"names":["spacing","value","Stack","forwardRef","direction","gap","align","justify","wrap","className","style","props","ref","jsx","cn","Grid","columns","Container","size","Prose","indent","iconSizes","Icon","IconComponent","label","ariaHidden","Text","as","tone","weight","truncate","createElement","Heading","Link","external","children","rel","token","Separator","orientation","VisuallyHidden","AspectRatio","ratio","Code","Kbd","VisuallyHiddenText"],"mappings":";;;AAcA,SAASA,EAAQC,GAAwC;AACvD,MAAIA,MAAU;AACd,WAAI,OAAOA,KAAU,WAAiB,GAAGA,IAAQ,CAAC,OAC3C,kBAAkBA,CAAK;AAChC;AAUO,MAAMC,IAAQC;AAAA,EACnB,CACE;AAAA,IACE,WAAAC,IAAY;AAAA,IACZ,KAAAC,IAAM;AAAA,IACN,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MAEA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE,EAAG,YAAYL,CAAS;AAAA,MACnC,OAAO;AAAA,QACL,eAAeL;AAAA,QACf,KAAKJ,EAAQK,CAAG;AAAA,QAChB,YAAYC;AAAA,QACZ,gBAAgBC;AAAA,QAChB,UAAUC,IAAO,SAAS;AAAA,QAC1B,GAAGE;AAAA,MAAA;AA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EACzB,CAAC,EAAE,OAAAuC,IAAQ,KAAK,GAAG,WAAAjC,GAAW,OAAAC,GAAO,GAAGC,KAASC,MAC/C,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE,EAAG,mBAAmBL,CAAS;AAAA,MAC1C,OAAO,EAAE,aAAa,OAAOiC,CAAK,GAAG,GAAGhC,EAAA;AAAA,MACvC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AACA8B,EAAY,cAAc;AAEnB,SAASE,EAAK,EAAE,WAAAlC,GAAW,GAAGE,KAAsC;AACzE,SAAO,gBAAAE,EAAC,UAAK,WAAWC,EAAG,WAAWL,CAAS,GAAI,GAAGE,GAAO;AAC/D;AAEO,SAASiC,EAAI,EAAE,WAAAnC,GAAW,UAAA0B,GAAU,GAAGxB,KAAsC;AAClF,SACE,gBAAAE,EAAC,SAAI,WAAWC,EAAG,UAAUL,CAAS,GAAI,GAAGE,GAC1C,UAAAwB,GACH;AAEJ;AAEO,SAASU,EAAmB,EAAE,UAAAV,KAAqC;AACxE,SAAO,gBAAAtB,EAAC2B,KAAgB,UAAAL,GAAS;AACnC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),s=require("react"),i=require("./theme-C3i6xkHd.cjs");function l(e){if(e!==void 0)return typeof e=="number"?`${e*4}px`:`var(--mf-space-${e})`}const p=s.forwardRef(({direction:e="column",gap:a=3,align:r,justify:n,wrap:t=!1,className:c,style:d,...f},$)=>o.jsx("div",{ref:$,className:i.cn("mf-stack",c),style:{flexDirection:e,gap:l(a),alignItems:r,justifyContent:n,flexWrap:t?"wrap":void 0,...d},...f}));p.displayName="Stack";const x=s.forwardRef(({columns:e=2,gap:a=4,align:r,className:n,style:t,...c},d)=>o.jsx("div",{ref:d,className:i.cn("mf-grid",n),style:{gridTemplateColumns:typeof e=="number"?`repeat(${e}, minmax(0, 1fr))`:e,gap:l(a),alignItems:r,...t},...c}));x.displayName="Grid";const u=s.forwardRef(({size:e="lg",className:a,...r},n)=>o.jsx("div",{ref:n,className:i.cn("mf-container",`mf-container--${e}`,a),...r}));u.displayName="Container";const N=s.forwardRef(({size:e="md",indent:a=!1,className:r,...n},t)=>o.jsx("div",{ref:t,className:i.cn("mf-prose",`mf-prose--${e}`,a&&"mf-prose--indent",r),...n}));N.displayName="Prose";const h={xs:12,sm:14,md:16,lg:20,xl:24},y=s.forwardRef(({icon:e,size:a="md",label:r,className:n,"aria-hidden":t,...c},d)=>o.jsx(e,{...c,ref:d,className:i.cn("mf-icon",`mf-icon--${a}`,n),size:h[a],strokeWidth:1.5,role:r?"img":c.role,"aria-label":r,"aria-hidden":r?t:!0}));y.displayName="Icon";const g=s.forwardRef(({as:e="span",size:a="md",tone:r="default",weight:n="regular",truncate:t=!1,className:c,...d},f)=>s.createElement(e,{ref:f,className:i.cn("mf-text",`mf-text--${a}`,`mf-text--${r}`,`mf-text--${n}`,t&&"mf-text--truncate",c),...d}));g.displayName="Text";const R=s.forwardRef(({as:e="h2",size:a="md",className:r,...n},t)=>s.createElement(e,{ref:t,className:i.cn("mf-heading",`mf-heading--${a}`,r),...n}));R.displayName="Heading";const j=s.forwardRef(({external:e,className:a,children:r,...n},t)=>{const c=e?[...new Set((n.rel??"").split(/\s+/).filter(Boolean).filter(d=>!["opener","noopener","noreferrer"].includes(d.toLowerCase()))),"noopener","noreferrer"].join(" "):n.rel;return o.jsx("a",{...n,ref:t,className:i.cn("mf-link",a),rel:c,target:e?"_blank":n.target,children:r})});j.displayName="Link";const w=s.forwardRef(({orientation:e="horizontal",className:a,...r},n)=>o.jsx("div",{ref:n,className:i.cn("mf-separator",`mf-separator--${e}`,a),role:"separator","aria-orientation":e,...r}));w.displayName="Separator";const m=s.forwardRef(({className:e,...a},r)=>o.jsx("span",{ref:r,className:i.cn("mf-visually-hidden",e),...a}));m.displayName="VisuallyHidden";const k=s.forwardRef(({ratio:e=16/9,className:a,style:r,...n},t)=>o.jsx("div",{ref:t,className:i.cn("mf-aspect-ratio",a),style:{aspectRatio:String(e),...r},...n}));k.displayName="AspectRatio";function S({className:e,...a}){return o.jsx("code",{className:i.cn("mf-code",e),...a})}function v({className:e,children:a,...r}){return o.jsx("kbd",{className:i.cn("mf-kbd",e),...r,children:a})}function C({children:e}){return o.jsx(m,{children:e})}exports.AspectRatio=k;exports.Code=S;exports.Container=u;exports.Grid=x;exports.Heading=R;exports.Icon=y;exports.Kbd=v;exports.Link=j;exports.Prose=N;exports.Separator=w;exports.Stack=p;exports.Text=g;exports.VisuallyHidden=m;exports.VisuallyHiddenText=C;
|
|
2
|
+
//# sourceMappingURL=primitives-CEcOVwUM.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives-CEcOVwUM.cjs","sources":["../src/primitives.tsx"],"sourcesContent":["import {\n createElement,\n forwardRef,\n type AnchorHTMLAttributes,\n type CSSProperties,\n type HTMLAttributes,\n type ReactNode,\n type SVGProps,\n} from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { cn } from \"./utils\";\n\ntype SpaceToken = \"0\" | \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"8\" | \"10\" | \"12\";\n\nfunction spacing(value: number | SpaceToken | undefined) {\n if (value === undefined) return undefined;\n if (typeof value === \"number\") return `${value * 4}px`;\n return `var(--mf-space-${value})`;\n}\n\nexport interface StackProps extends HTMLAttributes<HTMLDivElement> {\n direction?: \"row\" | \"column\";\n gap?: number | SpaceToken;\n align?: CSSProperties[\"alignItems\"];\n justify?: CSSProperties[\"justifyContent\"];\n wrap?: boolean;\n}\n\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = \"column\",\n gap = 3,\n align,\n justify,\n wrap = false,\n className,\n style,\n ...props\n },\n ref,\n ) => (\n <div\n ref={ref}\n className={cn(\"mf-stack\", className)}\n style={{\n flexDirection: direction,\n gap: spacing(gap),\n alignItems: align,\n justifyContent: justify,\n flexWrap: wrap ? \"wrap\" : undefined,\n ...style,\n }}\n {...props}\n />\n ),\n);\nStack.displayName = \"Stack\";\n\nexport interface GridProps extends HTMLAttributes<HTMLDivElement> {\n columns?: number | string;\n gap?: number | SpaceToken;\n align?: CSSProperties[\"alignItems\"];\n}\n\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n ({ columns = 2, gap = 4, align, className, style, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-grid\", className)}\n style={{\n gridTemplateColumns:\n typeof columns === \"number\" ? `repeat(${columns}, minmax(0, 1fr))` : columns,\n gap: spacing(gap),\n alignItems: align,\n ...style,\n }}\n {...props}\n />\n ),\n);\nGrid.displayName = \"Grid\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n}\n\nexport const Container = forwardRef<HTMLDivElement, ContainerProps>(\n ({ size = \"lg\", className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-container\", `mf-container--${size}`, className)}\n {...props}\n />\n ),\n);\nContainer.displayName = \"Container\";\n\nexport interface ProseProps extends HTMLAttributes<HTMLDivElement> {\n size?: \"sm\" | \"md\";\n indent?: boolean;\n}\n\nexport const Prose = forwardRef<HTMLDivElement, ProseProps>(\n ({ size = \"md\", indent = false, className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"mf-prose\",\n `mf-prose--${size}`,\n indent && \"mf-prose--indent\",\n className,\n )}\n {...props}\n />\n ),\n);\nProse.displayName = \"Prose\";\n\nexport type IconSize = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\n\nconst iconSizes: Record<IconSize, number> = {\n xs: 12,\n sm: 14,\n md: 16,\n lg: 20,\n xl: 24,\n};\n\nexport interface IconProps extends Omit<SVGProps<SVGSVGElement>, \"ref\"> {\n icon: LucideIcon;\n size?: IconSize;\n label?: string;\n}\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(\n (\n {\n icon: IconComponent,\n size = \"md\",\n label,\n className,\n \"aria-hidden\": ariaHidden,\n ...props\n },\n ref,\n ) => (\n <IconComponent\n {...props}\n ref={ref}\n className={cn(\"mf-icon\", `mf-icon--${size}`, className)}\n size={iconSizes[size]}\n strokeWidth={1.5}\n role={label ? \"img\" : props.role}\n aria-label={label}\n aria-hidden={label ? ariaHidden : true}\n />\n ),\n);\nIcon.displayName = \"Icon\";\n\ntype TextElement = \"span\" | \"p\" | \"div\" | \"small\" | \"strong\" | \"label\";\n\nexport interface TextProps extends HTMLAttributes<HTMLElement> {\n as?: TextElement;\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\";\n tone?: \"default\" | \"muted\" | \"subtle\" | \"danger\" | \"success\";\n weight?: \"regular\" | \"medium\";\n truncate?: boolean;\n}\n\nexport const Text = forwardRef<HTMLElement, TextProps>(\n (\n {\n as = \"span\",\n size = \"md\",\n tone = \"default\",\n weight = \"regular\",\n truncate = false,\n className,\n ...props\n },\n ref,\n ) =>\n createElement(as, {\n ref,\n className: cn(\n \"mf-text\",\n `mf-text--${size}`,\n `mf-text--${tone}`,\n `mf-text--${weight}`,\n truncate && \"mf-text--truncate\",\n className,\n ),\n ...props,\n }),\n);\nText.displayName = \"Text\";\n\nexport interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n size?: \"sm\" | \"md\" | \"lg\" | \"xl\";\n}\n\nexport const Heading = forwardRef<HTMLHeadingElement, HeadingProps>(\n ({ as = \"h2\", size = \"md\", className, ...props }, ref) =>\n createElement(as, {\n ref,\n className: cn(\"mf-heading\", `mf-heading--${size}`, className),\n ...props,\n }),\n);\nHeading.displayName = \"Heading\";\n\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n external?: boolean;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n ({ external, className, children, ...props }, ref) => {\n const rel = external\n ? [\n ...new Set(\n (props.rel ?? \"\")\n .split(/\\s+/)\n .filter(Boolean)\n .filter(\n (token) =>\n ![\"opener\", \"noopener\", \"noreferrer\"].includes(token.toLowerCase()),\n ),\n ),\n \"noopener\",\n \"noreferrer\",\n ].join(\" \")\n : props.rel;\n\n return (\n <a\n {...props}\n ref={ref}\n className={cn(\"mf-link\", className)}\n rel={rel}\n target={external ? \"_blank\" : props.target}\n >\n {children}\n </a>\n );\n },\n);\nLink.displayName = \"Link\";\n\nexport interface SeparatorProps extends HTMLAttributes<HTMLDivElement> {\n orientation?: \"horizontal\" | \"vertical\";\n}\n\nexport const Separator = forwardRef<HTMLDivElement, SeparatorProps>(\n ({ orientation = \"horizontal\", className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-separator\", `mf-separator--${orientation}`, className)}\n role=\"separator\"\n aria-orientation={orientation}\n {...props}\n />\n ),\n);\nSeparator.displayName = \"Separator\";\n\nexport const VisuallyHidden = forwardRef<\n HTMLSpanElement,\n HTMLAttributes<HTMLSpanElement>\n>(({ className, ...props }, ref) => (\n <span ref={ref} className={cn(\"mf-visually-hidden\", className)} {...props} />\n));\nVisuallyHidden.displayName = \"VisuallyHidden\";\n\nexport interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {\n ratio?: number;\n}\n\nexport const AspectRatio = forwardRef<HTMLDivElement, AspectRatioProps>(\n ({ ratio = 16 / 9, className, style, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"mf-aspect-ratio\", className)}\n style={{ aspectRatio: String(ratio), ...style }}\n {...props}\n />\n ),\n);\nAspectRatio.displayName = \"AspectRatio\";\n\nexport function Code({ className, ...props }: HTMLAttributes<HTMLElement>) {\n return <code className={cn(\"mf-code\", className)} {...props} />;\n}\n\nexport function Kbd({ className, children, ...props }: HTMLAttributes<HTMLElement>) {\n return (\n <kbd className={cn(\"mf-kbd\", className)} {...props}>\n {children}\n </kbd>\n );\n}\n\nexport function VisuallyHiddenText({ children }: { children: ReactNode }) {\n return <VisuallyHidden>{children}</VisuallyHidden>;\n}\n"],"names":["spacing","value","Stack","forwardRef","direction","gap","align","justify","wrap","className","style","props","ref","jsx","cn","Grid","columns","Container","size","Prose","indent","iconSizes","Icon","IconComponent","label","ariaHidden","Text","as","tone","weight","truncate","createElement","Heading","Link","external","children","rel","token","Separator","orientation","VisuallyHidden","AspectRatio","ratio","Code","Kbd","VisuallyHiddenText"],"mappings":"uGAcA,SAASA,EAAQC,EAAwC,CACvD,GAAIA,IAAU,OACd,OAAI,OAAOA,GAAU,SAAiB,GAAGA,EAAQ,CAAC,KAC3C,kBAAkBA,CAAK,GAChC,CAUO,MAAMC,EAAQC,EAAAA,WACnB,CACE,CACE,UAAAC,EAAY,SACZ,IAAAC,EAAM,EACN,MAAAC,EACA,QAAAC,EACA,KAAAC,EAAO,GACP,UAAAC,EACA,MAAAC,EACA,GAAGC,CAAA,EAELC,IAEAC,EAAAA,IAAC,MAAA,CACC,IAAAD,EACA,UAAWE,EAAAA,GAAG,WAAYL,CAAS,EACnC,MAAO,CACL,cAAeL,EACf,IAAKJ,EAAQK,CAAG,EAChB,WAAYC,EACZ,eAAgBC,EAChB,SAAUC,EAAO,OAAS,OAC1B,GAAGE,CAAA,EAEJ,GAAGC,CAAA,CAAA,CAGV,EACAT,EAAM,YAAc,QAQb,MAAMa,EAAOZ,EAAAA,WAClB,CAAC,CAAE,QAAAa,EAAU,EAAG,IAAAX,EAAM,EAAG,MAAAC,EAAO,UAAAG,EAAW,MAAAC,EAAO,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,IAAC,MAAA,CACC,IAAAD,EACA,UAAWE,EAAAA,GAAG,UAAWL,CAAS,EAClC,MAAO,CACL,oBACE,OAAOO,GAAY,SAAW,UAAUA,CAAO,oBAAsBA,EACvE,IAAKhB,EAAQK,CAAG,EAChB,WAAYC,EACZ,GAAGI,CAAA,EAEJ,GAAGC,CAAA,CAAA,CAGV,EACAI,EAAK,YAAc,OAMZ,MAAME,EAAYd,EAAAA,WACvB,CAAC,CAAE,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,UAAAM,EAAW,GAAGE,GAASC,UACzB,OAAA,CAAK,IAAAA,EAAU,UAAWE,EAAAA,GAAG,qBAAsBL,CAAS,EAAI,GAAGE,EAAO,CAC5E,EACD6B,EAAe,YAAc,iBAMtB,MAAMC,EAActC,EAAAA,WACzB,CAAC,CAAE,MAAAuC,EAAQ,GAAK,EAAG,UAAAjC,EAAW,MAAAC,EAAO,GAAGC,GAASC,IAC/CC,EAAAA,IAAC,MAAA,CACC,IAAAD,EACA,UAAWE,EAAAA,GAAG,kBAAmBL,CAAS,EAC1C,MAAO,CAAE,YAAa,OAAOiC,CAAK,EAAG,GAAGhC,CAAA,EACvC,GAAGC,CAAA,CAAA,CAGV,EACA8B,EAAY,YAAc,cAEnB,SAASE,EAAK,CAAE,UAAAlC,EAAW,GAAGE,GAAsC,CACzE,OAAOE,EAAAA,IAAC,QAAK,UAAWC,EAAAA,GAAG,UAAWL,CAAS,EAAI,GAAGE,EAAO,CAC/D,CAEO,SAASiC,EAAI,CAAE,UAAAnC,EAAW,SAAA0B,EAAU,GAAGxB,GAAsC,CAClF,OACEE,MAAC,OAAI,UAAWC,EAAAA,GAAG,SAAUL,CAAS,EAAI,GAAGE,EAC1C,SAAAwB,EACH,CAEJ,CAEO,SAASU,EAAmB,CAAE,SAAAV,GAAqC,CACxE,OAAOtB,MAAC2B,GAAgB,SAAAL,EAAS,CACnC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, CSSProperties, HTMLAttributes, ReactNode, SVGProps } from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
type SpaceToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "10" | "12";
|
|
4
|
+
export interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
direction?: "row" | "column";
|
|
6
|
+
gap?: number | SpaceToken;
|
|
7
|
+
align?: CSSProperties["alignItems"];
|
|
8
|
+
justify?: CSSProperties["justifyContent"];
|
|
9
|
+
wrap?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Stack: import('react').ForwardRefExoticComponent<StackProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
columns?: number | string;
|
|
14
|
+
gap?: number | SpaceToken;
|
|
15
|
+
align?: CSSProperties["alignItems"];
|
|
16
|
+
}
|
|
17
|
+
export declare const Grid: import('react').ForwardRefExoticComponent<GridProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
20
|
+
}
|
|
21
|
+
export declare const Container: import('react').ForwardRefExoticComponent<ContainerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export interface ProseProps extends HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
size?: "sm" | "md";
|
|
24
|
+
indent?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const Prose: import('react').ForwardRefExoticComponent<ProseProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
28
|
+
export interface IconProps extends Omit<SVGProps<SVGSVGElement>, "ref"> {
|
|
29
|
+
icon: LucideIcon;
|
|
30
|
+
size?: IconSize;
|
|
31
|
+
label?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const Icon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<SVGSVGElement>>;
|
|
34
|
+
type TextElement = "span" | "p" | "div" | "small" | "strong" | "label";
|
|
35
|
+
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
36
|
+
as?: TextElement;
|
|
37
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
38
|
+
tone?: "default" | "muted" | "subtle" | "danger" | "success";
|
|
39
|
+
weight?: "regular" | "medium";
|
|
40
|
+
truncate?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
|
|
43
|
+
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
44
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
45
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
46
|
+
}
|
|
47
|
+
export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
48
|
+
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
49
|
+
external?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
52
|
+
export interface SeparatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
53
|
+
orientation?: "horizontal" | "vertical";
|
|
54
|
+
}
|
|
55
|
+
export declare const Separator: import('react').ForwardRefExoticComponent<SeparatorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
56
|
+
export declare const VisuallyHidden: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
57
|
+
export interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
|
|
58
|
+
ratio?: number;
|
|
59
|
+
}
|
|
60
|
+
export declare const AspectRatio: import('react').ForwardRefExoticComponent<AspectRatioProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
61
|
+
export declare function Code({ className, ...props }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
62
|
+
export declare function Kbd({ className, children, ...props }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
63
|
+
export declare function VisuallyHiddenText({ children }: {
|
|
64
|
+
children: ReactNode;
|
|
65
|
+
}): import("react").JSX.Element;
|
|
66
|
+
export {};
|