hazo_ui 2.7.3 → 2.9.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/README.md +55 -0
- package/dist/index.cjs +364 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +109 -1
- package/dist/index.d.ts +109 -1
- package/dist/index.js +316 -10
- package/dist/index.js.map +1 -1
- package/package.json +32 -25
package/dist/index.js
CHANGED
|
@@ -56,10 +56,17 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
56
56
|
import Suggestion from '@tiptap/suggestion';
|
|
57
57
|
import { PluginKey } from '@tiptap/pm/state';
|
|
58
58
|
import { createPortal } from 'react-dom';
|
|
59
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
59
60
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
60
61
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
61
62
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
62
63
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
64
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
65
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
66
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
67
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
68
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
69
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
63
70
|
|
|
64
71
|
var __create = Object.create;
|
|
65
72
|
var __defProp = Object.defineProperty;
|
|
@@ -5135,6 +5142,8 @@ var Document = Node.create({
|
|
|
5135
5142
|
}
|
|
5136
5143
|
});
|
|
5137
5144
|
var index_default = Document;
|
|
5145
|
+
var EMPTY_PARAGRAPH_MARKDOWN = " ";
|
|
5146
|
+
var NBSP_CHAR = "\xA0";
|
|
5138
5147
|
var Paragraph = Node.create({
|
|
5139
5148
|
name: "paragraph",
|
|
5140
5149
|
priority: 1e3,
|
|
@@ -5156,18 +5165,25 @@ var Paragraph = Node.create({
|
|
|
5156
5165
|
if (tokens.length === 1 && tokens[0].type === "image") {
|
|
5157
5166
|
return helpers.parseChildren([tokens[0]]);
|
|
5158
5167
|
}
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
);
|
|
5168
|
+
const content = helpers.parseInline(tokens);
|
|
5169
|
+
const hasExplicitEmptyParagraphMarker = tokens.length === 1 && tokens[0].type === "text" && (tokens[0].raw === EMPTY_PARAGRAPH_MARKDOWN || tokens[0].text === EMPTY_PARAGRAPH_MARKDOWN || tokens[0].raw === NBSP_CHAR || tokens[0].text === NBSP_CHAR);
|
|
5170
|
+
if (hasExplicitEmptyParagraphMarker && content.length === 1 && content[0].type === "text" && (content[0].text === EMPTY_PARAGRAPH_MARKDOWN || content[0].text === NBSP_CHAR)) {
|
|
5171
|
+
return helpers.createNode("paragraph", void 0, []);
|
|
5172
|
+
}
|
|
5173
|
+
return helpers.createNode("paragraph", void 0, content);
|
|
5165
5174
|
},
|
|
5166
|
-
renderMarkdown: (node, h) => {
|
|
5167
|
-
|
|
5175
|
+
renderMarkdown: (node, h, ctx) => {
|
|
5176
|
+
var _a, _b;
|
|
5177
|
+
if (!node) {
|
|
5168
5178
|
return "";
|
|
5169
5179
|
}
|
|
5170
|
-
|
|
5180
|
+
const content = Array.isArray(node.content) ? node.content : [];
|
|
5181
|
+
if (content.length === 0) {
|
|
5182
|
+
const previousContent = Array.isArray((_a = ctx == null ? void 0 : ctx.previousNode) == null ? void 0 : _a.content) ? ctx.previousNode.content : [];
|
|
5183
|
+
const previousNodeIsEmptyParagraph = ((_b = ctx == null ? void 0 : ctx.previousNode) == null ? void 0 : _b.type) === "paragraph" && previousContent.length === 0;
|
|
5184
|
+
return previousNodeIsEmptyParagraph ? EMPTY_PARAGRAPH_MARKDOWN : "";
|
|
5185
|
+
}
|
|
5186
|
+
return h.renderChildren(content);
|
|
5171
5187
|
},
|
|
5172
5188
|
addCommands() {
|
|
5173
5189
|
return {
|
|
@@ -6714,6 +6730,112 @@ function HazoUiConfirmDialog({
|
|
|
6714
6730
|
)
|
|
6715
6731
|
] }) });
|
|
6716
6732
|
}
|
|
6733
|
+
var Drawer = ({
|
|
6734
|
+
shouldScaleBackground = true,
|
|
6735
|
+
...props
|
|
6736
|
+
}) => /* @__PURE__ */ jsx(Drawer$1.Root, { shouldScaleBackground, ...props });
|
|
6737
|
+
Drawer.displayName = "Drawer";
|
|
6738
|
+
var DrawerTrigger = Drawer$1.Trigger;
|
|
6739
|
+
var DrawerPortal = Drawer$1.Portal;
|
|
6740
|
+
var DrawerClose = Drawer$1.Close;
|
|
6741
|
+
var DrawerOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6742
|
+
Drawer$1.Overlay,
|
|
6743
|
+
{
|
|
6744
|
+
ref,
|
|
6745
|
+
className: cn(
|
|
6746
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
6747
|
+
className
|
|
6748
|
+
),
|
|
6749
|
+
...props
|
|
6750
|
+
}
|
|
6751
|
+
));
|
|
6752
|
+
DrawerOverlay.displayName = "DrawerOverlay";
|
|
6753
|
+
var DrawerContent = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
6754
|
+
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
6755
|
+
/* @__PURE__ */ jsxs(
|
|
6756
|
+
Drawer$1.Content,
|
|
6757
|
+
{
|
|
6758
|
+
ref,
|
|
6759
|
+
className: cn(
|
|
6760
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[96dvh] flex-col rounded-t-[10px] border bg-background",
|
|
6761
|
+
className
|
|
6762
|
+
),
|
|
6763
|
+
...props,
|
|
6764
|
+
children: [
|
|
6765
|
+
/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
6766
|
+
children
|
|
6767
|
+
]
|
|
6768
|
+
}
|
|
6769
|
+
)
|
|
6770
|
+
] }));
|
|
6771
|
+
DrawerContent.displayName = "DrawerContent";
|
|
6772
|
+
var DrawerHeader = ({
|
|
6773
|
+
className,
|
|
6774
|
+
...props
|
|
6775
|
+
}) => /* @__PURE__ */ jsx(
|
|
6776
|
+
"div",
|
|
6777
|
+
{
|
|
6778
|
+
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
6779
|
+
...props
|
|
6780
|
+
}
|
|
6781
|
+
);
|
|
6782
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
6783
|
+
var DrawerFooter = ({
|
|
6784
|
+
className,
|
|
6785
|
+
...props
|
|
6786
|
+
}) => /* @__PURE__ */ jsx(
|
|
6787
|
+
"div",
|
|
6788
|
+
{
|
|
6789
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
6790
|
+
...props
|
|
6791
|
+
}
|
|
6792
|
+
);
|
|
6793
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
6794
|
+
var DrawerTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6795
|
+
Drawer$1.Title,
|
|
6796
|
+
{
|
|
6797
|
+
ref,
|
|
6798
|
+
className: cn(
|
|
6799
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
6800
|
+
className
|
|
6801
|
+
),
|
|
6802
|
+
...props
|
|
6803
|
+
}
|
|
6804
|
+
));
|
|
6805
|
+
DrawerTitle.displayName = "DrawerTitle";
|
|
6806
|
+
var DrawerDescription = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6807
|
+
Drawer$1.Description,
|
|
6808
|
+
{
|
|
6809
|
+
ref,
|
|
6810
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
6811
|
+
...props
|
|
6812
|
+
}
|
|
6813
|
+
));
|
|
6814
|
+
DrawerDescription.displayName = "DrawerDescription";
|
|
6815
|
+
function useMediaQuery(query) {
|
|
6816
|
+
const get_match = React27.useCallback(() => {
|
|
6817
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
6818
|
+
return false;
|
|
6819
|
+
}
|
|
6820
|
+
return window.matchMedia(query).matches;
|
|
6821
|
+
}, [query]);
|
|
6822
|
+
const [matches, set_matches] = React27.useState(false);
|
|
6823
|
+
React27.useEffect(() => {
|
|
6824
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
6825
|
+
return;
|
|
6826
|
+
}
|
|
6827
|
+
const media_query_list = window.matchMedia(query);
|
|
6828
|
+
set_matches(media_query_list.matches);
|
|
6829
|
+
const handle_change = (event) => set_matches(event.matches);
|
|
6830
|
+
if (typeof media_query_list.addEventListener === "function") {
|
|
6831
|
+
media_query_list.addEventListener("change", handle_change);
|
|
6832
|
+
return () => media_query_list.removeEventListener("change", handle_change);
|
|
6833
|
+
}
|
|
6834
|
+
media_query_list.addListener(handle_change);
|
|
6835
|
+
return () => media_query_list.removeListener(handle_change);
|
|
6836
|
+
}, [query, get_match]);
|
|
6837
|
+
return matches;
|
|
6838
|
+
}
|
|
6717
6839
|
var Accordion = AccordionPrimitive.Root;
|
|
6718
6840
|
var AccordionItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6719
6841
|
AccordionPrimitive.Item,
|
|
@@ -6934,7 +7056,191 @@ var Textarea = React27.forwardRef(
|
|
|
6934
7056
|
}
|
|
6935
7057
|
);
|
|
6936
7058
|
Textarea.displayName = "Textarea";
|
|
7059
|
+
var Separator3 = React27.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7060
|
+
SeparatorPrimitive.Root,
|
|
7061
|
+
{
|
|
7062
|
+
ref,
|
|
7063
|
+
decorative,
|
|
7064
|
+
orientation,
|
|
7065
|
+
className: cn(
|
|
7066
|
+
"shrink-0 bg-border",
|
|
7067
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
7068
|
+
className
|
|
7069
|
+
),
|
|
7070
|
+
...props
|
|
7071
|
+
}
|
|
7072
|
+
));
|
|
7073
|
+
Separator3.displayName = SeparatorPrimitive.Root.displayName;
|
|
7074
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
7075
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
7076
|
+
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
7077
|
+
var ScrollArea = React27.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
7078
|
+
ScrollAreaPrimitive.Root,
|
|
7079
|
+
{
|
|
7080
|
+
ref,
|
|
7081
|
+
className: cn("relative overflow-hidden", className),
|
|
7082
|
+
...props,
|
|
7083
|
+
children: [
|
|
7084
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
7085
|
+
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
7086
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
7087
|
+
]
|
|
7088
|
+
}
|
|
7089
|
+
));
|
|
7090
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
7091
|
+
var ScrollBar = React27.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7092
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
7093
|
+
{
|
|
7094
|
+
ref,
|
|
7095
|
+
orientation,
|
|
7096
|
+
className: cn(
|
|
7097
|
+
"flex touch-none select-none transition-colors",
|
|
7098
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
7099
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
7100
|
+
className
|
|
7101
|
+
),
|
|
7102
|
+
...props,
|
|
7103
|
+
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
7104
|
+
}
|
|
7105
|
+
));
|
|
7106
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
7107
|
+
var Card = React27.forwardRef(
|
|
7108
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props })
|
|
7109
|
+
);
|
|
7110
|
+
Card.displayName = "Card";
|
|
7111
|
+
var CardHeader = React27.forwardRef(
|
|
7112
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
7113
|
+
);
|
|
7114
|
+
CardHeader.displayName = "CardHeader";
|
|
7115
|
+
var CardTitle = React27.forwardRef(
|
|
7116
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
7117
|
+
);
|
|
7118
|
+
CardTitle.displayName = "CardTitle";
|
|
7119
|
+
var CardDescription = React27.forwardRef(
|
|
7120
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
7121
|
+
);
|
|
7122
|
+
CardDescription.displayName = "CardDescription";
|
|
7123
|
+
var CardContent = React27.forwardRef(
|
|
7124
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
7125
|
+
);
|
|
7126
|
+
CardContent.displayName = "CardContent";
|
|
7127
|
+
var CardFooter = React27.forwardRef(
|
|
7128
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
7129
|
+
);
|
|
7130
|
+
CardFooter.displayName = "CardFooter";
|
|
7131
|
+
function Spinner({ className, size = "md" }) {
|
|
7132
|
+
const sizeClasses = { sm: "h-4 w-4", md: "h-8 w-8", lg: "h-12 w-12" };
|
|
7133
|
+
return /* @__PURE__ */ jsx(
|
|
7134
|
+
"div",
|
|
7135
|
+
{
|
|
7136
|
+
className: cn("animate-spin rounded-full border-2 border-current border-t-transparent text-primary", sizeClasses[size], className),
|
|
7137
|
+
role: "status",
|
|
7138
|
+
"aria-label": "Loading",
|
|
7139
|
+
children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Loading..." })
|
|
7140
|
+
}
|
|
7141
|
+
);
|
|
7142
|
+
}
|
|
7143
|
+
var toggleVariants = cva(
|
|
7144
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
|
|
7145
|
+
{
|
|
7146
|
+
variants: {
|
|
7147
|
+
variant: {
|
|
7148
|
+
default: "bg-transparent",
|
|
7149
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
7150
|
+
},
|
|
7151
|
+
size: {
|
|
7152
|
+
default: "h-10 px-3 min-w-10",
|
|
7153
|
+
sm: "h-9 px-2.5 min-w-9",
|
|
7154
|
+
lg: "h-11 px-5 min-w-11"
|
|
7155
|
+
}
|
|
7156
|
+
},
|
|
7157
|
+
defaultVariants: { variant: "default", size: "default" }
|
|
7158
|
+
}
|
|
7159
|
+
);
|
|
7160
|
+
var Toggle = React27.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
7161
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
7162
|
+
var ToggleGroupContext = React27.createContext({
|
|
7163
|
+
size: "default",
|
|
7164
|
+
variant: "default"
|
|
7165
|
+
});
|
|
7166
|
+
var ToggleGroup = React27.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
7167
|
+
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
7168
|
+
var ToggleGroupItem = React27.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
7169
|
+
const context = React27.useContext(ToggleGroupContext);
|
|
7170
|
+
return /* @__PURE__ */ jsx(
|
|
7171
|
+
ToggleGroupPrimitive.Item,
|
|
7172
|
+
{
|
|
7173
|
+
ref,
|
|
7174
|
+
className: cn(toggleVariants({ variant: context.variant || variant, size: context.size || size }), className),
|
|
7175
|
+
...props,
|
|
7176
|
+
children
|
|
7177
|
+
}
|
|
7178
|
+
);
|
|
7179
|
+
});
|
|
7180
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
7181
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
7182
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
7183
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
7184
|
+
var AlertDialogOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7185
|
+
AlertDialogPrimitive.Overlay,
|
|
7186
|
+
{
|
|
7187
|
+
ref,
|
|
7188
|
+
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
|
|
7189
|
+
...props
|
|
7190
|
+
}
|
|
7191
|
+
));
|
|
7192
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
7193
|
+
var AlertDialogContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
7194
|
+
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
7195
|
+
/* @__PURE__ */ jsx(
|
|
7196
|
+
AlertDialogPrimitive.Content,
|
|
7197
|
+
{
|
|
7198
|
+
ref,
|
|
7199
|
+
className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className),
|
|
7200
|
+
...props
|
|
7201
|
+
}
|
|
7202
|
+
)
|
|
7203
|
+
] }));
|
|
7204
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
7205
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
7206
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
7207
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
7208
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
7209
|
+
var AlertDialogTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
7210
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
7211
|
+
var AlertDialogDescription = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
7212
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
7213
|
+
var AlertDialogAction = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
7214
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
7215
|
+
var AlertDialogCancel = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, { ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props }));
|
|
7216
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
7217
|
+
var buttonGroupVariants = cva(
|
|
7218
|
+
"flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10",
|
|
7219
|
+
{
|
|
7220
|
+
variants: {
|
|
7221
|
+
orientation: {
|
|
7222
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
7223
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
7224
|
+
}
|
|
7225
|
+
},
|
|
7226
|
+
defaultVariants: { orientation: "horizontal" }
|
|
7227
|
+
}
|
|
7228
|
+
);
|
|
7229
|
+
function ButtonGroup({
|
|
7230
|
+
className,
|
|
7231
|
+
orientation,
|
|
7232
|
+
...props
|
|
7233
|
+
}) {
|
|
7234
|
+
return /* @__PURE__ */ jsx("div", { role: "group", "data-slot": "button-group", className: cn(buttonGroupVariants({ orientation }), className), ...props });
|
|
7235
|
+
}
|
|
7236
|
+
function ButtonGroupText({ className, asChild = false, ...props }) {
|
|
7237
|
+
const Comp = asChild ? Slot : "div";
|
|
7238
|
+
return /* @__PURE__ */ jsx(Comp, { className: cn("bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className), ...props });
|
|
7239
|
+
}
|
|
7240
|
+
function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
|
|
7241
|
+
return /* @__PURE__ */ jsx(Separator3, { orientation, className: cn("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto", className), ...props });
|
|
7242
|
+
}
|
|
6937
7243
|
|
|
6938
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, Calendar, Checkbox, CommandNodeExtension, CommandPill, CommandPopover, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HazoUiConfirmDialog, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, HazoUiFlexRadio, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiRte, HazoUiTextarea, HazoUiTextbox, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label2 as Label, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, create_command_suggestion_extension, get_hazo_ui_config, parse_commands_from_text, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, text_to_tiptap_content };
|
|
7244
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, CommandNodeExtension, CommandPill, CommandPopover, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HazoUiConfirmDialog, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, HazoUiFlexRadio, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiRte, HazoUiTextarea, HazoUiTextbox, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label2 as Label, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Spinner, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonGroupVariants, create_command_suggestion_extension, get_hazo_ui_config, parse_commands_from_text, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, text_to_tiptap_content, toggleVariants, useMediaQuery };
|
|
6939
7245
|
//# sourceMappingURL=index.js.map
|
|
6940
7246
|
//# sourceMappingURL=index.js.map
|