hazo_ui 2.7.0 → 2.7.2
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 +150 -7
- package/dist/index.cjs +439 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +167 -10
- package/dist/index.d.ts +167 -10
- package/dist/index.js +376 -63
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
package/dist/index.cjs
CHANGED
|
@@ -57,6 +57,10 @@ var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
|
57
57
|
var Suggestion = require('@tiptap/suggestion');
|
|
58
58
|
var state = require('@tiptap/pm/state');
|
|
59
59
|
var reactDom = require('react-dom');
|
|
60
|
+
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
61
|
+
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
62
|
+
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
63
|
+
var HoverCardPrimitive = require('@radix-ui/react-hover-card');
|
|
60
64
|
|
|
61
65
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
62
66
|
|
|
@@ -115,6 +119,10 @@ var TaskList__default = /*#__PURE__*/_interopDefault(TaskList);
|
|
|
115
119
|
var TaskItem__default = /*#__PURE__*/_interopDefault(TaskItem);
|
|
116
120
|
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
117
121
|
var Suggestion__default = /*#__PURE__*/_interopDefault(Suggestion);
|
|
122
|
+
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
123
|
+
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
124
|
+
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
125
|
+
var HoverCardPrimitive__namespace = /*#__PURE__*/_interopNamespace(HoverCardPrimitive);
|
|
118
126
|
|
|
119
127
|
var __create = Object.create;
|
|
120
128
|
var __defProp = Object.defineProperty;
|
|
@@ -142,9 +150,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
142
150
|
mod
|
|
143
151
|
));
|
|
144
152
|
|
|
145
|
-
// node_modules/@babel/runtime/helpers/extends.js
|
|
153
|
+
// ../node_modules/@babel/runtime/helpers/extends.js
|
|
146
154
|
var require_extends = __commonJS({
|
|
147
|
-
"node_modules/@babel/runtime/helpers/extends.js"(exports$1, module) {
|
|
155
|
+
"../node_modules/@babel/runtime/helpers/extends.js"(exports$1, module) {
|
|
148
156
|
function _extends11() {
|
|
149
157
|
return module.exports = _extends11 = Object.assign ? Object.assign.bind() : function(n) {
|
|
150
158
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -158,9 +166,9 @@ var require_extends = __commonJS({
|
|
|
158
166
|
}
|
|
159
167
|
});
|
|
160
168
|
|
|
161
|
-
// node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
169
|
+
// ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
|
|
162
170
|
var require_objectWithoutPropertiesLoose = __commonJS({
|
|
163
|
-
"node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports$1, module) {
|
|
171
|
+
"../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports$1, module) {
|
|
164
172
|
function _objectWithoutPropertiesLoose10(r, e) {
|
|
165
173
|
if (null == r) return {};
|
|
166
174
|
var t = {};
|
|
@@ -482,6 +490,7 @@ var Input = React27__namespace.forwardRef(
|
|
|
482
490
|
);
|
|
483
491
|
Input.displayName = "Input";
|
|
484
492
|
var Select = SelectPrimitive__namespace.Root;
|
|
493
|
+
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
485
494
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
486
495
|
var SelectTrigger = React27__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
487
496
|
SelectPrimitive__namespace.Trigger,
|
|
@@ -1730,6 +1739,109 @@ function HazoUiFlexRadio({
|
|
|
1730
1739
|
}
|
|
1731
1740
|
}
|
|
1732
1741
|
}
|
|
1742
|
+
var icon_set_map = {
|
|
1743
|
+
fa: FaIcons__namespace,
|
|
1744
|
+
md: MdIcons__namespace,
|
|
1745
|
+
hi: HiIcons__namespace,
|
|
1746
|
+
bi: BiIcons__namespace,
|
|
1747
|
+
ai: AiIcons__namespace,
|
|
1748
|
+
bs: BsIcons__namespace,
|
|
1749
|
+
fi: FiIcons__namespace,
|
|
1750
|
+
io: IoIcons__namespace,
|
|
1751
|
+
io5: IoIcons__namespace,
|
|
1752
|
+
ri: RiIcons__namespace,
|
|
1753
|
+
tb: TbIcons__namespace,
|
|
1754
|
+
ci: CiIcons__namespace
|
|
1755
|
+
};
|
|
1756
|
+
function get_icon_component(icon_set, icon_name) {
|
|
1757
|
+
if (!icon_set || !icon_name) return null;
|
|
1758
|
+
const library = icon_set_map[icon_set.toLowerCase()];
|
|
1759
|
+
if (!library) return null;
|
|
1760
|
+
return library[icon_name] || null;
|
|
1761
|
+
}
|
|
1762
|
+
var DEFAULT_COLOR = "#3b82f6";
|
|
1763
|
+
function color_with_opacity(color2, opacity) {
|
|
1764
|
+
if (color2.startsWith("#")) {
|
|
1765
|
+
const hex = color2.replace("#", "");
|
|
1766
|
+
const r = parseInt(hex.substring(0, 2), 16);
|
|
1767
|
+
const g = parseInt(hex.substring(2, 4), 16);
|
|
1768
|
+
const b = parseInt(hex.substring(4, 6), 16);
|
|
1769
|
+
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
1770
|
+
}
|
|
1771
|
+
return color2;
|
|
1772
|
+
}
|
|
1773
|
+
var size_classes = {
|
|
1774
|
+
sm: "px-3 py-1.5 text-xs gap-1.5",
|
|
1775
|
+
md: "px-4 py-2 text-sm gap-2",
|
|
1776
|
+
lg: "px-5 py-2.5 text-base gap-2.5"
|
|
1777
|
+
};
|
|
1778
|
+
var icon_size_classes = {
|
|
1779
|
+
sm: "h-3.5 w-3.5",
|
|
1780
|
+
md: "h-4 w-4",
|
|
1781
|
+
lg: "h-5 w-5"
|
|
1782
|
+
};
|
|
1783
|
+
function HazoUiPillRadio({
|
|
1784
|
+
layout = "horizontal",
|
|
1785
|
+
icon_set = "fa",
|
|
1786
|
+
data,
|
|
1787
|
+
value,
|
|
1788
|
+
onChange,
|
|
1789
|
+
className,
|
|
1790
|
+
pill_size = "md",
|
|
1791
|
+
equal_width = false
|
|
1792
|
+
}) {
|
|
1793
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { delayDuration: 1e3, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1794
|
+
"div",
|
|
1795
|
+
{
|
|
1796
|
+
className: cn(
|
|
1797
|
+
"cls_hazo_ui_pill_radio",
|
|
1798
|
+
layout === "horizontal" ? "flex flex-row flex-wrap gap-3" : "inline-flex flex-col gap-3",
|
|
1799
|
+
className
|
|
1800
|
+
),
|
|
1801
|
+
role: "radiogroup",
|
|
1802
|
+
children: data.map((item) => {
|
|
1803
|
+
const is_selected = value === item.value;
|
|
1804
|
+
const accent = item.color || DEFAULT_COLOR;
|
|
1805
|
+
const IconComponent = get_icon_component(icon_set, item.icon);
|
|
1806
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { delayDuration: 1e3, children: [
|
|
1807
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1808
|
+
"button",
|
|
1809
|
+
{
|
|
1810
|
+
type: "button",
|
|
1811
|
+
role: "radio",
|
|
1812
|
+
"aria-checked": is_selected,
|
|
1813
|
+
onClick: () => onChange(item.value),
|
|
1814
|
+
className: cn(
|
|
1815
|
+
"cls_pill_radio_item",
|
|
1816
|
+
"inline-flex items-center rounded-full border cursor-pointer",
|
|
1817
|
+
"transition-all duration-200 font-medium whitespace-nowrap",
|
|
1818
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1819
|
+
size_classes[pill_size],
|
|
1820
|
+
equal_width && "justify-center flex-1",
|
|
1821
|
+
!is_selected && "border-border bg-card text-muted-foreground hover:bg-accent/50"
|
|
1822
|
+
),
|
|
1823
|
+
style: is_selected ? {
|
|
1824
|
+
borderColor: accent,
|
|
1825
|
+
backgroundColor: color_with_opacity(accent, 0.08),
|
|
1826
|
+
color: accent
|
|
1827
|
+
} : void 0,
|
|
1828
|
+
children: [
|
|
1829
|
+
IconComponent && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1830
|
+
IconComponent,
|
|
1831
|
+
{
|
|
1832
|
+
className: cn("cls_pill_radio_icon shrink-0", icon_size_classes[pill_size])
|
|
1833
|
+
}
|
|
1834
|
+
),
|
|
1835
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "cls_pill_radio_label", children: item.label })
|
|
1836
|
+
]
|
|
1837
|
+
}
|
|
1838
|
+
) }),
|
|
1839
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "cls_tooltip_text", children: item.label }) })
|
|
1840
|
+
] }, item.value);
|
|
1841
|
+
})
|
|
1842
|
+
}
|
|
1843
|
+
) });
|
|
1844
|
+
}
|
|
1733
1845
|
function validateInput(value, input_type, text_len_min, text_len_max, num_min, num_max, regex, num_decimals) {
|
|
1734
1846
|
if (value === "") {
|
|
1735
1847
|
return { isValid: true };
|
|
@@ -6172,41 +6284,8 @@ var HazoUiTextarea = ({
|
|
|
6172
6284
|
);
|
|
6173
6285
|
};
|
|
6174
6286
|
HazoUiTextarea.displayName = "HazoUiTextarea";
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
header_background_color: "rgb(191, 219, 254)",
|
|
6178
|
-
description_background_color: "rgb(219, 234, 254)",
|
|
6179
|
-
header_text_color: "rgb(30, 58, 138)",
|
|
6180
|
-
border_color: "rgb(59, 130, 246)",
|
|
6181
|
-
accent_color: "rgb(59, 130, 246)",
|
|
6182
|
-
overlay_class_name: "bg-blue-950/50"
|
|
6183
|
-
},
|
|
6184
|
-
success: {
|
|
6185
|
-
header_background_color: "rgb(187, 247, 208)",
|
|
6186
|
-
description_background_color: "rgb(220, 252, 231)",
|
|
6187
|
-
header_text_color: "rgb(22, 101, 52)",
|
|
6188
|
-
border_color: "rgb(34, 197, 94)",
|
|
6189
|
-
accent_color: "rgb(34, 197, 94)",
|
|
6190
|
-
overlay_class_name: "bg-green-950/50"
|
|
6191
|
-
},
|
|
6192
|
-
warning: {
|
|
6193
|
-
header_background_color: "rgb(253, 230, 138)",
|
|
6194
|
-
description_background_color: "rgb(254, 249, 195)",
|
|
6195
|
-
header_text_color: "rgb(113, 63, 18)",
|
|
6196
|
-
border_color: "rgb(234, 179, 8)",
|
|
6197
|
-
accent_color: "rgb(234, 179, 8)",
|
|
6198
|
-
overlay_class_name: "bg-yellow-950/50"
|
|
6199
|
-
},
|
|
6200
|
-
danger: {
|
|
6201
|
-
header_background_color: "rgb(254, 202, 202)",
|
|
6202
|
-
description_background_color: "rgb(254, 226, 226)",
|
|
6203
|
-
header_text_color: "rgb(127, 29, 29)",
|
|
6204
|
-
border_color: "rgb(239, 68, 68)",
|
|
6205
|
-
accent_color: "rgb(239, 68, 68)",
|
|
6206
|
-
overlay_class_name: "bg-red-950/50",
|
|
6207
|
-
action_button_variant: "destructive"
|
|
6208
|
-
}
|
|
6209
|
-
};
|
|
6287
|
+
|
|
6288
|
+
// src/lib/animations.ts
|
|
6210
6289
|
var ANIMATION_PRESETS = {
|
|
6211
6290
|
zoom: {
|
|
6212
6291
|
open: "animate-dialog-zoom",
|
|
@@ -6246,11 +6325,46 @@ var ANIMATION_PRESETS = {
|
|
|
6246
6325
|
},
|
|
6247
6326
|
none: { open: "", close: "" }
|
|
6248
6327
|
};
|
|
6249
|
-
function
|
|
6250
|
-
const
|
|
6251
|
-
const
|
|
6252
|
-
return `${
|
|
6328
|
+
function resolve_animation_classes(open_anim = "zoom", close_anim = "zoom") {
|
|
6329
|
+
const open_classes = open_anim in ANIMATION_PRESETS ? ANIMATION_PRESETS[open_anim].open : open_anim;
|
|
6330
|
+
const close_classes = close_anim in ANIMATION_PRESETS ? ANIMATION_PRESETS[close_anim].close : close_anim;
|
|
6331
|
+
return `${open_classes} ${close_classes}`;
|
|
6253
6332
|
}
|
|
6333
|
+
var VARIANT_PRESETS = {
|
|
6334
|
+
info: {
|
|
6335
|
+
header_background_color: "rgb(191, 219, 254)",
|
|
6336
|
+
description_background_color: "rgb(219, 234, 254)",
|
|
6337
|
+
header_text_color: "rgb(30, 58, 138)",
|
|
6338
|
+
border_color: "rgb(59, 130, 246)",
|
|
6339
|
+
accent_color: "rgb(59, 130, 246)",
|
|
6340
|
+
overlay_class_name: "bg-blue-950/50"
|
|
6341
|
+
},
|
|
6342
|
+
success: {
|
|
6343
|
+
header_background_color: "rgb(187, 247, 208)",
|
|
6344
|
+
description_background_color: "rgb(220, 252, 231)",
|
|
6345
|
+
header_text_color: "rgb(22, 101, 52)",
|
|
6346
|
+
border_color: "rgb(34, 197, 94)",
|
|
6347
|
+
accent_color: "rgb(34, 197, 94)",
|
|
6348
|
+
overlay_class_name: "bg-green-950/50"
|
|
6349
|
+
},
|
|
6350
|
+
warning: {
|
|
6351
|
+
header_background_color: "rgb(253, 230, 138)",
|
|
6352
|
+
description_background_color: "rgb(254, 249, 195)",
|
|
6353
|
+
header_text_color: "rgb(113, 63, 18)",
|
|
6354
|
+
border_color: "rgb(234, 179, 8)",
|
|
6355
|
+
accent_color: "rgb(234, 179, 8)",
|
|
6356
|
+
overlay_class_name: "bg-yellow-950/50"
|
|
6357
|
+
},
|
|
6358
|
+
destructive: {
|
|
6359
|
+
header_background_color: "rgb(254, 202, 202)",
|
|
6360
|
+
description_background_color: "rgb(254, 226, 226)",
|
|
6361
|
+
header_text_color: "rgb(127, 29, 29)",
|
|
6362
|
+
border_color: "rgb(239, 68, 68)",
|
|
6363
|
+
accent_color: "rgb(239, 68, 68)",
|
|
6364
|
+
overlay_class_name: "bg-red-950/50",
|
|
6365
|
+
action_button_variant: "destructive"
|
|
6366
|
+
}
|
|
6367
|
+
};
|
|
6254
6368
|
function HazoUiDialog({
|
|
6255
6369
|
open,
|
|
6256
6370
|
onOpenChange,
|
|
@@ -6300,7 +6414,7 @@ function HazoUiDialog({
|
|
|
6300
6414
|
onCancel?.();
|
|
6301
6415
|
onOpenChange?.(false);
|
|
6302
6416
|
};
|
|
6303
|
-
const animationClasses =
|
|
6417
|
+
const animationClasses = resolve_animation_classes(openAnimation, closeAnimation);
|
|
6304
6418
|
const resolved_border_color = borderColor ?? variant_preset?.border_color;
|
|
6305
6419
|
const contentStyles = {
|
|
6306
6420
|
width: sizeWidth,
|
|
@@ -6530,23 +6644,6 @@ var CONFIRM_VARIANT_PRESETS = {
|
|
|
6530
6644
|
overlay_class_name: "bg-green-950/50"
|
|
6531
6645
|
}
|
|
6532
6646
|
};
|
|
6533
|
-
var ANIMATION_PRESETS2 = {
|
|
6534
|
-
zoom: { open: "animate-dialog-zoom", close: "animate-dialog-zoom" },
|
|
6535
|
-
slide: { open: "animate-dialog-slide-bottom", close: "animate-dialog-slide-bottom" },
|
|
6536
|
-
fade: { open: "animate-dialog-fade", close: "animate-dialog-fade" },
|
|
6537
|
-
bounce: { open: "animate-dialog-bounce", close: "animate-dialog-bounce" },
|
|
6538
|
-
"scale-up": { open: "animate-dialog-scale", close: "animate-dialog-scale" },
|
|
6539
|
-
flip: { open: "animate-dialog-flip", close: "animate-dialog-flip" },
|
|
6540
|
-
"slide-left": { open: "animate-dialog-slide-left", close: "animate-dialog-slide-left" },
|
|
6541
|
-
"slide-right": { open: "animate-dialog-slide-right", close: "animate-dialog-slide-right" },
|
|
6542
|
-
"slide-top": { open: "animate-dialog-slide-top", close: "animate-dialog-slide-top" },
|
|
6543
|
-
none: { open: "", close: "" }
|
|
6544
|
-
};
|
|
6545
|
-
function resolve_animation_classes(open_anim = "zoom", close_anim = "zoom") {
|
|
6546
|
-
const open_classes = open_anim in ANIMATION_PRESETS2 ? ANIMATION_PRESETS2[open_anim].open : open_anim;
|
|
6547
|
-
const close_classes = close_anim in ANIMATION_PRESETS2 ? ANIMATION_PRESETS2[close_anim].close : close_anim;
|
|
6548
|
-
return `${open_classes} ${close_classes}`;
|
|
6549
|
-
}
|
|
6550
6647
|
function HazoUiConfirmDialog({
|
|
6551
6648
|
open,
|
|
6552
6649
|
onOpenChange,
|
|
@@ -6680,10 +6777,253 @@ function HazoUiConfirmDialog({
|
|
|
6680
6777
|
)
|
|
6681
6778
|
] }) });
|
|
6682
6779
|
}
|
|
6780
|
+
var Accordion = AccordionPrimitive__namespace.Root;
|
|
6781
|
+
var AccordionItem = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6782
|
+
AccordionPrimitive__namespace.Item,
|
|
6783
|
+
{
|
|
6784
|
+
ref,
|
|
6785
|
+
className: cn("border-b", className),
|
|
6786
|
+
...props
|
|
6787
|
+
}
|
|
6788
|
+
));
|
|
6789
|
+
AccordionItem.displayName = "AccordionItem";
|
|
6790
|
+
var AccordionTrigger = React27__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6791
|
+
AccordionPrimitive__namespace.Trigger,
|
|
6792
|
+
{
|
|
6793
|
+
ref,
|
|
6794
|
+
className: cn(
|
|
6795
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
6796
|
+
className
|
|
6797
|
+
),
|
|
6798
|
+
...props,
|
|
6799
|
+
children: [
|
|
6800
|
+
children,
|
|
6801
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
6802
|
+
]
|
|
6803
|
+
}
|
|
6804
|
+
) }));
|
|
6805
|
+
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
6806
|
+
var AccordionContent = React27__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6807
|
+
AccordionPrimitive__namespace.Content,
|
|
6808
|
+
{
|
|
6809
|
+
ref,
|
|
6810
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
6811
|
+
...props,
|
|
6812
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pb-4 pt-0", className), children })
|
|
6813
|
+
}
|
|
6814
|
+
));
|
|
6815
|
+
AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
|
|
6816
|
+
var Checkbox = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6817
|
+
CheckboxPrimitive__namespace.Root,
|
|
6818
|
+
{
|
|
6819
|
+
ref,
|
|
6820
|
+
className: cn(
|
|
6821
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
6822
|
+
className
|
|
6823
|
+
),
|
|
6824
|
+
...props,
|
|
6825
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6826
|
+
CheckboxPrimitive__namespace.Indicator,
|
|
6827
|
+
{
|
|
6828
|
+
className: cn("flex items-center justify-center text-current"),
|
|
6829
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" })
|
|
6830
|
+
}
|
|
6831
|
+
)
|
|
6832
|
+
}
|
|
6833
|
+
));
|
|
6834
|
+
Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
|
|
6835
|
+
var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
|
|
6836
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
|
|
6837
|
+
var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
6838
|
+
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
6839
|
+
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
6840
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
6841
|
+
var DropdownMenuSubTrigger = React27__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6842
|
+
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
6843
|
+
{
|
|
6844
|
+
ref,
|
|
6845
|
+
className: cn(
|
|
6846
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
6847
|
+
inset && "pl-8",
|
|
6848
|
+
className
|
|
6849
|
+
),
|
|
6850
|
+
...props,
|
|
6851
|
+
children: [
|
|
6852
|
+
children,
|
|
6853
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
6854
|
+
]
|
|
6855
|
+
}
|
|
6856
|
+
));
|
|
6857
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
6858
|
+
var DropdownMenuSubContent = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6859
|
+
DropdownMenuPrimitive__namespace.SubContent,
|
|
6860
|
+
{
|
|
6861
|
+
ref,
|
|
6862
|
+
className: cn(
|
|
6863
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6864
|
+
className
|
|
6865
|
+
),
|
|
6866
|
+
...props
|
|
6867
|
+
}
|
|
6868
|
+
));
|
|
6869
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
6870
|
+
var DropdownMenuContent = React27__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6871
|
+
DropdownMenuPrimitive__namespace.Content,
|
|
6872
|
+
{
|
|
6873
|
+
ref,
|
|
6874
|
+
sideOffset,
|
|
6875
|
+
className: cn(
|
|
6876
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6877
|
+
className
|
|
6878
|
+
),
|
|
6879
|
+
...props
|
|
6880
|
+
}
|
|
6881
|
+
) }));
|
|
6882
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
6883
|
+
var DropdownMenuItem = React27__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6884
|
+
DropdownMenuPrimitive__namespace.Item,
|
|
6885
|
+
{
|
|
6886
|
+
ref,
|
|
6887
|
+
className: cn(
|
|
6888
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6889
|
+
inset && "pl-8",
|
|
6890
|
+
className
|
|
6891
|
+
),
|
|
6892
|
+
...props
|
|
6893
|
+
}
|
|
6894
|
+
));
|
|
6895
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
6896
|
+
var DropdownMenuCheckboxItem = React27__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6897
|
+
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
6898
|
+
{
|
|
6899
|
+
ref,
|
|
6900
|
+
className: cn(
|
|
6901
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6902
|
+
className
|
|
6903
|
+
),
|
|
6904
|
+
checked,
|
|
6905
|
+
...props,
|
|
6906
|
+
children: [
|
|
6907
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
6908
|
+
children
|
|
6909
|
+
]
|
|
6910
|
+
}
|
|
6911
|
+
));
|
|
6912
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
6913
|
+
var DropdownMenuRadioItem = React27__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6914
|
+
DropdownMenuPrimitive__namespace.RadioItem,
|
|
6915
|
+
{
|
|
6916
|
+
ref,
|
|
6917
|
+
className: cn(
|
|
6918
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6919
|
+
className
|
|
6920
|
+
),
|
|
6921
|
+
...props,
|
|
6922
|
+
children: [
|
|
6923
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
6924
|
+
children
|
|
6925
|
+
]
|
|
6926
|
+
}
|
|
6927
|
+
));
|
|
6928
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
6929
|
+
var DropdownMenuLabel = React27__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6930
|
+
DropdownMenuPrimitive__namespace.Label,
|
|
6931
|
+
{
|
|
6932
|
+
ref,
|
|
6933
|
+
className: cn(
|
|
6934
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
6935
|
+
inset && "pl-8",
|
|
6936
|
+
className
|
|
6937
|
+
),
|
|
6938
|
+
...props
|
|
6939
|
+
}
|
|
6940
|
+
));
|
|
6941
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
6942
|
+
var DropdownMenuSeparator = React27__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6943
|
+
DropdownMenuPrimitive__namespace.Separator,
|
|
6944
|
+
{
|
|
6945
|
+
ref,
|
|
6946
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
6947
|
+
...props
|
|
6948
|
+
}
|
|
6949
|
+
));
|
|
6950
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
|
|
6951
|
+
var DropdownMenuShortcut = ({
|
|
6952
|
+
className,
|
|
6953
|
+
...props
|
|
6954
|
+
}) => {
|
|
6955
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6956
|
+
"span",
|
|
6957
|
+
{
|
|
6958
|
+
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
6959
|
+
...props
|
|
6960
|
+
}
|
|
6961
|
+
);
|
|
6962
|
+
};
|
|
6963
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
6964
|
+
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
6965
|
+
var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
|
|
6966
|
+
var HoverCardContent = React27__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6967
|
+
HoverCardPrimitive__namespace.Content,
|
|
6968
|
+
{
|
|
6969
|
+
ref,
|
|
6970
|
+
align,
|
|
6971
|
+
sideOffset,
|
|
6972
|
+
className: cn(
|
|
6973
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6974
|
+
className
|
|
6975
|
+
),
|
|
6976
|
+
...props
|
|
6977
|
+
}
|
|
6978
|
+
));
|
|
6979
|
+
HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
|
|
6980
|
+
var Textarea = React27__namespace.forwardRef(
|
|
6981
|
+
({ className, ...props }, ref) => {
|
|
6982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6983
|
+
"textarea",
|
|
6984
|
+
{
|
|
6985
|
+
className: cn(
|
|
6986
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
6987
|
+
"text-sm ring-offset-background",
|
|
6988
|
+
"placeholder:text-muted-foreground",
|
|
6989
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
6990
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
6991
|
+
className
|
|
6992
|
+
),
|
|
6993
|
+
ref,
|
|
6994
|
+
...props
|
|
6995
|
+
}
|
|
6996
|
+
);
|
|
6997
|
+
}
|
|
6998
|
+
);
|
|
6999
|
+
Textarea.displayName = "Textarea";
|
|
6683
7000
|
|
|
7001
|
+
exports.ANIMATION_PRESETS = ANIMATION_PRESETS;
|
|
7002
|
+
exports.Accordion = Accordion;
|
|
7003
|
+
exports.AccordionContent = AccordionContent;
|
|
7004
|
+
exports.AccordionItem = AccordionItem;
|
|
7005
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
7006
|
+
exports.Button = Button;
|
|
7007
|
+
exports.Calendar = Calendar;
|
|
7008
|
+
exports.Checkbox = Checkbox;
|
|
6684
7009
|
exports.CommandNodeExtension = CommandNodeExtension;
|
|
6685
7010
|
exports.CommandPill = CommandPill;
|
|
6686
7011
|
exports.CommandPopover = CommandPopover;
|
|
7012
|
+
exports.DropdownMenu = DropdownMenu;
|
|
7013
|
+
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
7014
|
+
exports.DropdownMenuContent = DropdownMenuContent;
|
|
7015
|
+
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
7016
|
+
exports.DropdownMenuItem = DropdownMenuItem;
|
|
7017
|
+
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
7018
|
+
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
7019
|
+
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
7020
|
+
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
7021
|
+
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
7022
|
+
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
7023
|
+
exports.DropdownMenuSub = DropdownMenuSub;
|
|
7024
|
+
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
7025
|
+
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
7026
|
+
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
6687
7027
|
exports.HazoUiConfirmDialog = HazoUiConfirmDialog;
|
|
6688
7028
|
exports.HazoUiDialog = HazoUiDialog;
|
|
6689
7029
|
exports.HazoUiDialogClose = DialogClose;
|
|
@@ -6700,13 +7040,51 @@ exports.HazoUiFlexInput = HazoUiFlexInput;
|
|
|
6700
7040
|
exports.HazoUiFlexRadio = HazoUiFlexRadio;
|
|
6701
7041
|
exports.HazoUiMultiFilterDialog = HazoUiMultiFilterDialog;
|
|
6702
7042
|
exports.HazoUiMultiSortDialog = HazoUiMultiSortDialog;
|
|
7043
|
+
exports.HazoUiPillRadio = HazoUiPillRadio;
|
|
6703
7044
|
exports.HazoUiRte = HazoUiRte;
|
|
6704
7045
|
exports.HazoUiTextarea = HazoUiTextarea;
|
|
6705
7046
|
exports.HazoUiTextbox = HazoUiTextbox;
|
|
7047
|
+
exports.HoverCard = HoverCard;
|
|
7048
|
+
exports.HoverCardContent = HoverCardContent;
|
|
7049
|
+
exports.HoverCardTrigger = HoverCardTrigger;
|
|
7050
|
+
exports.Input = Input;
|
|
7051
|
+
exports.Label = Label2;
|
|
7052
|
+
exports.Popover = Popover;
|
|
7053
|
+
exports.PopoverContent = PopoverContent;
|
|
7054
|
+
exports.PopoverTrigger = PopoverTrigger;
|
|
7055
|
+
exports.RadioGroup = RadioGroup;
|
|
7056
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
7057
|
+
exports.Select = Select;
|
|
7058
|
+
exports.SelectContent = SelectContent;
|
|
7059
|
+
exports.SelectGroup = SelectGroup;
|
|
7060
|
+
exports.SelectItem = SelectItem;
|
|
7061
|
+
exports.SelectLabel = SelectLabel;
|
|
7062
|
+
exports.SelectScrollDownButton = SelectScrollDownButton;
|
|
7063
|
+
exports.SelectScrollUpButton = SelectScrollUpButton;
|
|
7064
|
+
exports.SelectSeparator = SelectSeparator;
|
|
7065
|
+
exports.SelectTrigger = SelectTrigger;
|
|
7066
|
+
exports.SelectValue = SelectValue;
|
|
7067
|
+
exports.ShadcnCommand = Command;
|
|
7068
|
+
exports.ShadcnCommandEmpty = CommandEmpty;
|
|
7069
|
+
exports.ShadcnCommandGroup = CommandGroup;
|
|
7070
|
+
exports.ShadcnCommandInput = CommandInput;
|
|
7071
|
+
exports.ShadcnCommandItem = CommandItem;
|
|
7072
|
+
exports.ShadcnCommandList = CommandList;
|
|
7073
|
+
exports.Switch = Switch;
|
|
7074
|
+
exports.Tabs = Tabs;
|
|
7075
|
+
exports.TabsContent = TabsContent;
|
|
7076
|
+
exports.TabsList = TabsList;
|
|
7077
|
+
exports.TabsTrigger = TabsTrigger;
|
|
7078
|
+
exports.Textarea = Textarea;
|
|
7079
|
+
exports.Tooltip = Tooltip;
|
|
7080
|
+
exports.TooltipContent = TooltipContent;
|
|
7081
|
+
exports.TooltipProvider = TooltipProvider;
|
|
7082
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
6706
7083
|
exports.create_command_suggestion_extension = create_command_suggestion_extension;
|
|
6707
7084
|
exports.get_hazo_ui_config = get_hazo_ui_config;
|
|
6708
7085
|
exports.parse_commands_from_text = parse_commands_from_text;
|
|
6709
7086
|
exports.reset_hazo_ui_config = reset_hazo_ui_config;
|
|
7087
|
+
exports.resolve_animation_classes = resolve_animation_classes;
|
|
6710
7088
|
exports.set_hazo_ui_config = set_hazo_ui_config;
|
|
6711
7089
|
exports.text_to_tiptap_content = text_to_tiptap_content;
|
|
6712
7090
|
//# sourceMappingURL=index.cjs.map
|