hazo_ui 2.7.2 → 2.8.1
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 +17 -2
- package/dist/index.cjs +248 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -1
- package/dist/index.d.ts +74 -1
- package/dist/index.js +211 -12
- package/dist/index.js.map +1 -1
- package/package.json +39 -33
- package/tailwind.preset.js +5 -4
package/README.md
CHANGED
|
@@ -49,11 +49,23 @@ If you're using **Tailwind CSS v4**, you must add the `@source` directive to ens
|
|
|
49
49
|
|
|
50
50
|
```css
|
|
51
51
|
@import "tailwindcss";
|
|
52
|
+
@import "tw-animate-css";
|
|
52
53
|
|
|
53
54
|
/* REQUIRED for Tailwind v4: Enable scanning of hazo_ui components */
|
|
54
55
|
@source "../node_modules/hazo_ui/dist";
|
|
55
56
|
```
|
|
56
57
|
|
|
58
|
+
**PostCSS** (Tailwind v4):
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
// postcss.config.js
|
|
62
|
+
module.exports = {
|
|
63
|
+
plugins: {
|
|
64
|
+
"@tailwindcss/postcss": {},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
```
|
|
68
|
+
|
|
57
69
|
**Why is this needed?**
|
|
58
70
|
|
|
59
71
|
Tailwind v4 uses JIT compilation and only generates CSS for classes found in scanned files. By default, it doesn't scan `node_modules/`. Without the `@source` directive:
|
|
@@ -61,7 +73,9 @@ Tailwind v4 uses JIT compilation and only generates CSS for classes found in sca
|
|
|
61
73
|
- Colors will be missing
|
|
62
74
|
- Layouts may break
|
|
63
75
|
|
|
64
|
-
|
|
76
|
+
The `tw-animate-css` import replaces the legacy `tailwindcss-animate` plugin (used by hazo_ui's accordion/collapse animations) for Tailwind v4 consumers.
|
|
77
|
+
|
|
78
|
+
**Note:** Tailwind v3 users do NOT need this directive — the `content` configuration plus `tailwindcss-animate@^1.0.7` is sufficient.
|
|
65
79
|
|
|
66
80
|
---
|
|
67
81
|
|
|
@@ -2959,9 +2973,10 @@ function FormDialog() {
|
|
|
2959
2973
|
|
|
2960
2974
|
If you're using Tailwind CSS v4 and components appear unstyled:
|
|
2961
2975
|
|
|
2962
|
-
1. Add the `@source` directive to your globals.css:
|
|
2976
|
+
1. Add the `@source` directive (and `tw-animate-css`) to your globals.css:
|
|
2963
2977
|
```css
|
|
2964
2978
|
@import "tailwindcss";
|
|
2979
|
+
@import "tw-animate-css";
|
|
2965
2980
|
@source "../node_modules/hazo_ui/dist";
|
|
2966
2981
|
```
|
|
2967
2982
|
|
package/dist/index.cjs
CHANGED
|
@@ -61,6 +61,12 @@ var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
|
61
61
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
62
62
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
63
63
|
var HoverCardPrimitive = require('@radix-ui/react-hover-card');
|
|
64
|
+
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
65
|
+
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
66
|
+
var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
|
|
67
|
+
var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
68
|
+
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
69
|
+
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
64
70
|
|
|
65
71
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
66
72
|
|
|
@@ -123,6 +129,12 @@ var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrim
|
|
|
123
129
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
124
130
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
125
131
|
var HoverCardPrimitive__namespace = /*#__PURE__*/_interopNamespace(HoverCardPrimitive);
|
|
132
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
133
|
+
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
|
|
134
|
+
var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive);
|
|
135
|
+
var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
|
|
136
|
+
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
137
|
+
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
126
138
|
|
|
127
139
|
var __create = Object.create;
|
|
128
140
|
var __defProp = Object.defineProperty;
|
|
@@ -152,7 +164,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
152
164
|
|
|
153
165
|
// ../node_modules/@babel/runtime/helpers/extends.js
|
|
154
166
|
var require_extends = __commonJS({
|
|
155
|
-
"../node_modules/@babel/runtime/helpers/extends.js"(exports
|
|
167
|
+
"../node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
|
|
156
168
|
function _extends11() {
|
|
157
169
|
return module.exports = _extends11 = Object.assign ? Object.assign.bind() : function(n) {
|
|
158
170
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -168,7 +180,7 @@ var require_extends = __commonJS({
|
|
|
168
180
|
|
|
169
181
|
// ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
170
182
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
171
|
-
"../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports
|
|
183
|
+
"../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
|
|
172
184
|
function _objectWithoutPropertiesLoose10(r, e) {
|
|
173
185
|
if (null == r) return {};
|
|
174
186
|
var t = {};
|
|
@@ -5198,6 +5210,8 @@ var Document = core.Node.create({
|
|
|
5198
5210
|
}
|
|
5199
5211
|
});
|
|
5200
5212
|
var index_default = Document;
|
|
5213
|
+
var EMPTY_PARAGRAPH_MARKDOWN = " ";
|
|
5214
|
+
var NBSP_CHAR = "\xA0";
|
|
5201
5215
|
var Paragraph = core.Node.create({
|
|
5202
5216
|
name: "paragraph",
|
|
5203
5217
|
priority: 1e3,
|
|
@@ -5219,18 +5233,25 @@ var Paragraph = core.Node.create({
|
|
|
5219
5233
|
if (tokens.length === 1 && tokens[0].type === "image") {
|
|
5220
5234
|
return helpers.parseChildren([tokens[0]]);
|
|
5221
5235
|
}
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
);
|
|
5236
|
+
const content = helpers.parseInline(tokens);
|
|
5237
|
+
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);
|
|
5238
|
+
if (hasExplicitEmptyParagraphMarker && content.length === 1 && content[0].type === "text" && (content[0].text === EMPTY_PARAGRAPH_MARKDOWN || content[0].text === NBSP_CHAR)) {
|
|
5239
|
+
return helpers.createNode("paragraph", void 0, []);
|
|
5240
|
+
}
|
|
5241
|
+
return helpers.createNode("paragraph", void 0, content);
|
|
5228
5242
|
},
|
|
5229
|
-
renderMarkdown: (node, h) => {
|
|
5230
|
-
|
|
5243
|
+
renderMarkdown: (node, h, ctx) => {
|
|
5244
|
+
var _a, _b;
|
|
5245
|
+
if (!node) {
|
|
5231
5246
|
return "";
|
|
5232
5247
|
}
|
|
5233
|
-
|
|
5248
|
+
const content = Array.isArray(node.content) ? node.content : [];
|
|
5249
|
+
if (content.length === 0) {
|
|
5250
|
+
const previousContent = Array.isArray((_a = ctx == null ? void 0 : ctx.previousNode) == null ? void 0 : _a.content) ? ctx.previousNode.content : [];
|
|
5251
|
+
const previousNodeIsEmptyParagraph = ((_b = ctx == null ? void 0 : ctx.previousNode) == null ? void 0 : _b.type) === "paragraph" && previousContent.length === 0;
|
|
5252
|
+
return previousNodeIsEmptyParagraph ? EMPTY_PARAGRAPH_MARKDOWN : "";
|
|
5253
|
+
}
|
|
5254
|
+
return h.renderChildren(content);
|
|
5234
5255
|
},
|
|
5235
5256
|
addCommands() {
|
|
5236
5257
|
return {
|
|
@@ -6997,15 +7018,222 @@ var Textarea = React27__namespace.forwardRef(
|
|
|
6997
7018
|
}
|
|
6998
7019
|
);
|
|
6999
7020
|
Textarea.displayName = "Textarea";
|
|
7021
|
+
var Separator3 = React27__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7022
|
+
SeparatorPrimitive__namespace.Root,
|
|
7023
|
+
{
|
|
7024
|
+
ref,
|
|
7025
|
+
decorative,
|
|
7026
|
+
orientation,
|
|
7027
|
+
className: cn(
|
|
7028
|
+
"shrink-0 bg-border",
|
|
7029
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
7030
|
+
className
|
|
7031
|
+
),
|
|
7032
|
+
...props
|
|
7033
|
+
}
|
|
7034
|
+
));
|
|
7035
|
+
Separator3.displayName = SeparatorPrimitive__namespace.Root.displayName;
|
|
7036
|
+
var Collapsible = CollapsiblePrimitive__namespace.Root;
|
|
7037
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive__namespace.CollapsibleTrigger;
|
|
7038
|
+
var CollapsibleContent2 = CollapsiblePrimitive__namespace.CollapsibleContent;
|
|
7039
|
+
var ScrollArea = React27__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7040
|
+
ScrollAreaPrimitive__namespace.Root,
|
|
7041
|
+
{
|
|
7042
|
+
ref,
|
|
7043
|
+
className: cn("relative overflow-hidden", className),
|
|
7044
|
+
...props,
|
|
7045
|
+
children: [
|
|
7046
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
7047
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
7048
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
7049
|
+
]
|
|
7050
|
+
}
|
|
7051
|
+
));
|
|
7052
|
+
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
7053
|
+
var ScrollBar = React27__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7054
|
+
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
7055
|
+
{
|
|
7056
|
+
ref,
|
|
7057
|
+
orientation,
|
|
7058
|
+
className: cn(
|
|
7059
|
+
"flex touch-none select-none transition-colors",
|
|
7060
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
7061
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
7062
|
+
className
|
|
7063
|
+
),
|
|
7064
|
+
...props,
|
|
7065
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
7066
|
+
}
|
|
7067
|
+
));
|
|
7068
|
+
ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
|
|
7069
|
+
var Card = React27__namespace.forwardRef(
|
|
7070
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props })
|
|
7071
|
+
);
|
|
7072
|
+
Card.displayName = "Card";
|
|
7073
|
+
var CardHeader = React27__namespace.forwardRef(
|
|
7074
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
7075
|
+
);
|
|
7076
|
+
CardHeader.displayName = "CardHeader";
|
|
7077
|
+
var CardTitle = React27__namespace.forwardRef(
|
|
7078
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
7079
|
+
);
|
|
7080
|
+
CardTitle.displayName = "CardTitle";
|
|
7081
|
+
var CardDescription = React27__namespace.forwardRef(
|
|
7082
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
7083
|
+
);
|
|
7084
|
+
CardDescription.displayName = "CardDescription";
|
|
7085
|
+
var CardContent = React27__namespace.forwardRef(
|
|
7086
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
7087
|
+
);
|
|
7088
|
+
CardContent.displayName = "CardContent";
|
|
7089
|
+
var CardFooter = React27__namespace.forwardRef(
|
|
7090
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
7091
|
+
);
|
|
7092
|
+
CardFooter.displayName = "CardFooter";
|
|
7093
|
+
function Spinner({ className, size = "md" }) {
|
|
7094
|
+
const sizeClasses = { sm: "h-4 w-4", md: "h-8 w-8", lg: "h-12 w-12" };
|
|
7095
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7096
|
+
"div",
|
|
7097
|
+
{
|
|
7098
|
+
className: cn("animate-spin rounded-full border-2 border-current border-t-transparent text-primary", sizeClasses[size], className),
|
|
7099
|
+
role: "status",
|
|
7100
|
+
"aria-label": "Loading",
|
|
7101
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Loading..." })
|
|
7102
|
+
}
|
|
7103
|
+
);
|
|
7104
|
+
}
|
|
7105
|
+
var toggleVariants = classVarianceAuthority.cva(
|
|
7106
|
+
"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",
|
|
7107
|
+
{
|
|
7108
|
+
variants: {
|
|
7109
|
+
variant: {
|
|
7110
|
+
default: "bg-transparent",
|
|
7111
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
7112
|
+
},
|
|
7113
|
+
size: {
|
|
7114
|
+
default: "h-10 px-3 min-w-10",
|
|
7115
|
+
sm: "h-9 px-2.5 min-w-9",
|
|
7116
|
+
lg: "h-11 px-5 min-w-11"
|
|
7117
|
+
}
|
|
7118
|
+
},
|
|
7119
|
+
defaultVariants: { variant: "default", size: "default" }
|
|
7120
|
+
}
|
|
7121
|
+
);
|
|
7122
|
+
var Toggle = React27__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TogglePrimitive__namespace.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
7123
|
+
Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
|
|
7124
|
+
var ToggleGroupContext = React27__namespace.createContext({
|
|
7125
|
+
size: "default",
|
|
7126
|
+
variant: "default"
|
|
7127
|
+
});
|
|
7128
|
+
var ToggleGroup = React27__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupPrimitive__namespace.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
7129
|
+
ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
|
|
7130
|
+
var ToggleGroupItem = React27__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
7131
|
+
const context = React27__namespace.useContext(ToggleGroupContext);
|
|
7132
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7133
|
+
ToggleGroupPrimitive__namespace.Item,
|
|
7134
|
+
{
|
|
7135
|
+
ref,
|
|
7136
|
+
className: cn(toggleVariants({ variant: context.variant || variant, size: context.size || size }), className),
|
|
7137
|
+
...props,
|
|
7138
|
+
children
|
|
7139
|
+
}
|
|
7140
|
+
);
|
|
7141
|
+
});
|
|
7142
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
|
|
7143
|
+
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
7144
|
+
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
7145
|
+
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
7146
|
+
var AlertDialogOverlay = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7147
|
+
AlertDialogPrimitive__namespace.Overlay,
|
|
7148
|
+
{
|
|
7149
|
+
ref,
|
|
7150
|
+
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),
|
|
7151
|
+
...props
|
|
7152
|
+
}
|
|
7153
|
+
));
|
|
7154
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
7155
|
+
var AlertDialogContent = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
7156
|
+
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
7157
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7158
|
+
AlertDialogPrimitive__namespace.Content,
|
|
7159
|
+
{
|
|
7160
|
+
ref,
|
|
7161
|
+
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),
|
|
7162
|
+
...props
|
|
7163
|
+
}
|
|
7164
|
+
)
|
|
7165
|
+
] }));
|
|
7166
|
+
AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
|
|
7167
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
7168
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
7169
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
7170
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
7171
|
+
var AlertDialogTitle = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
7172
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
7173
|
+
var AlertDialogDescription = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
7174
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
7175
|
+
var AlertDialogAction = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
7176
|
+
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
7177
|
+
var AlertDialogCancel = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Cancel, { ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props }));
|
|
7178
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
7179
|
+
var buttonGroupVariants = classVarianceAuthority.cva(
|
|
7180
|
+
"flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10",
|
|
7181
|
+
{
|
|
7182
|
+
variants: {
|
|
7183
|
+
orientation: {
|
|
7184
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
7185
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
7186
|
+
}
|
|
7187
|
+
},
|
|
7188
|
+
defaultVariants: { orientation: "horizontal" }
|
|
7189
|
+
}
|
|
7190
|
+
);
|
|
7191
|
+
function ButtonGroup({
|
|
7192
|
+
className,
|
|
7193
|
+
orientation,
|
|
7194
|
+
...props
|
|
7195
|
+
}) {
|
|
7196
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "group", "data-slot": "button-group", className: cn(buttonGroupVariants({ orientation }), className), ...props });
|
|
7197
|
+
}
|
|
7198
|
+
function ButtonGroupText({ className, asChild = false, ...props }) {
|
|
7199
|
+
const Comp = asChild ? reactSlot.Slot : "div";
|
|
7200
|
+
return /* @__PURE__ */ jsxRuntime.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 });
|
|
7201
|
+
}
|
|
7202
|
+
function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
|
|
7203
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation, className: cn("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto", className), ...props });
|
|
7204
|
+
}
|
|
7000
7205
|
|
|
7001
7206
|
exports.ANIMATION_PRESETS = ANIMATION_PRESETS;
|
|
7002
7207
|
exports.Accordion = Accordion;
|
|
7003
7208
|
exports.AccordionContent = AccordionContent;
|
|
7004
7209
|
exports.AccordionItem = AccordionItem;
|
|
7005
7210
|
exports.AccordionTrigger = AccordionTrigger;
|
|
7211
|
+
exports.AlertDialog = AlertDialog;
|
|
7212
|
+
exports.AlertDialogAction = AlertDialogAction;
|
|
7213
|
+
exports.AlertDialogCancel = AlertDialogCancel;
|
|
7214
|
+
exports.AlertDialogContent = AlertDialogContent;
|
|
7215
|
+
exports.AlertDialogDescription = AlertDialogDescription;
|
|
7216
|
+
exports.AlertDialogFooter = AlertDialogFooter;
|
|
7217
|
+
exports.AlertDialogHeader = AlertDialogHeader;
|
|
7218
|
+
exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
7219
|
+
exports.AlertDialogPortal = AlertDialogPortal;
|
|
7220
|
+
exports.AlertDialogTitle = AlertDialogTitle;
|
|
7221
|
+
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
7006
7222
|
exports.Button = Button;
|
|
7223
|
+
exports.ButtonGroup = ButtonGroup;
|
|
7224
|
+
exports.ButtonGroupSeparator = ButtonGroupSeparator;
|
|
7225
|
+
exports.ButtonGroupText = ButtonGroupText;
|
|
7007
7226
|
exports.Calendar = Calendar;
|
|
7227
|
+
exports.Card = Card;
|
|
7228
|
+
exports.CardContent = CardContent;
|
|
7229
|
+
exports.CardDescription = CardDescription;
|
|
7230
|
+
exports.CardFooter = CardFooter;
|
|
7231
|
+
exports.CardHeader = CardHeader;
|
|
7232
|
+
exports.CardTitle = CardTitle;
|
|
7008
7233
|
exports.Checkbox = Checkbox;
|
|
7234
|
+
exports.Collapsible = Collapsible;
|
|
7235
|
+
exports.CollapsibleContent = CollapsibleContent2;
|
|
7236
|
+
exports.CollapsibleTrigger = CollapsibleTrigger2;
|
|
7009
7237
|
exports.CommandNodeExtension = CommandNodeExtension;
|
|
7010
7238
|
exports.CommandPill = CommandPill;
|
|
7011
7239
|
exports.CommandPopover = CommandPopover;
|
|
@@ -7054,6 +7282,8 @@ exports.PopoverContent = PopoverContent;
|
|
|
7054
7282
|
exports.PopoverTrigger = PopoverTrigger;
|
|
7055
7283
|
exports.RadioGroup = RadioGroup;
|
|
7056
7284
|
exports.RadioGroupItem = RadioGroupItem;
|
|
7285
|
+
exports.ScrollArea = ScrollArea;
|
|
7286
|
+
exports.ScrollBar = ScrollBar;
|
|
7057
7287
|
exports.Select = Select;
|
|
7058
7288
|
exports.SelectContent = SelectContent;
|
|
7059
7289
|
exports.SelectGroup = SelectGroup;
|
|
@@ -7064,22 +7294,28 @@ exports.SelectScrollUpButton = SelectScrollUpButton;
|
|
|
7064
7294
|
exports.SelectSeparator = SelectSeparator;
|
|
7065
7295
|
exports.SelectTrigger = SelectTrigger;
|
|
7066
7296
|
exports.SelectValue = SelectValue;
|
|
7297
|
+
exports.Separator = Separator3;
|
|
7067
7298
|
exports.ShadcnCommand = Command;
|
|
7068
7299
|
exports.ShadcnCommandEmpty = CommandEmpty;
|
|
7069
7300
|
exports.ShadcnCommandGroup = CommandGroup;
|
|
7070
7301
|
exports.ShadcnCommandInput = CommandInput;
|
|
7071
7302
|
exports.ShadcnCommandItem = CommandItem;
|
|
7072
7303
|
exports.ShadcnCommandList = CommandList;
|
|
7304
|
+
exports.Spinner = Spinner;
|
|
7073
7305
|
exports.Switch = Switch;
|
|
7074
7306
|
exports.Tabs = Tabs;
|
|
7075
7307
|
exports.TabsContent = TabsContent;
|
|
7076
7308
|
exports.TabsList = TabsList;
|
|
7077
7309
|
exports.TabsTrigger = TabsTrigger;
|
|
7078
7310
|
exports.Textarea = Textarea;
|
|
7311
|
+
exports.Toggle = Toggle;
|
|
7312
|
+
exports.ToggleGroup = ToggleGroup;
|
|
7313
|
+
exports.ToggleGroupItem = ToggleGroupItem;
|
|
7079
7314
|
exports.Tooltip = Tooltip;
|
|
7080
7315
|
exports.TooltipContent = TooltipContent;
|
|
7081
7316
|
exports.TooltipProvider = TooltipProvider;
|
|
7082
7317
|
exports.TooltipTrigger = TooltipTrigger;
|
|
7318
|
+
exports.buttonGroupVariants = buttonGroupVariants;
|
|
7083
7319
|
exports.create_command_suggestion_extension = create_command_suggestion_extension;
|
|
7084
7320
|
exports.get_hazo_ui_config = get_hazo_ui_config;
|
|
7085
7321
|
exports.parse_commands_from_text = parse_commands_from_text;
|
|
@@ -7087,5 +7323,6 @@ exports.reset_hazo_ui_config = reset_hazo_ui_config;
|
|
|
7087
7323
|
exports.resolve_animation_classes = resolve_animation_classes;
|
|
7088
7324
|
exports.set_hazo_ui_config = set_hazo_ui_config;
|
|
7089
7325
|
exports.text_to_tiptap_content = text_to_tiptap_content;
|
|
7326
|
+
exports.toggleVariants = toggleVariants;
|
|
7090
7327
|
//# sourceMappingURL=index.cjs.map
|
|
7091
7328
|
//# sourceMappingURL=index.cjs.map
|