hazo_ui 2.17.0 → 3.0.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/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { clsx } from 'clsx';
7
7
  import { twMerge } from 'tailwind-merge';
8
8
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
- import { X, ChevronDown, ChevronUp, Check, Circle, ChevronRight, ChevronLeft, Filter, Plus, ArrowUpDown, Loader2, AlertTriangle, OctagonAlert, CheckCircle2, ChevronsUpDown, GripVertical, ArrowUp, ArrowDown, Pencil, Calendar as Calendar$1 } from 'lucide-react';
10
+ import { X, ChevronDown, ChevronUp, Check, Circle, ChevronRight, ChevronLeft, Filter, Plus, ArrowUpDown, Loader2, AlertTriangle, OctagonAlert, CheckCircle2, ChevronsUpDown, Download, Share2, Copy, GripVertical, ArrowUp, ArrowDown, Pencil, Calendar as Calendar$1 } from 'lucide-react';
11
11
  import * as PopoverPrimitive from '@radix-ui/react-popover';
12
12
  import * as SelectPrimitive from '@radix-ui/react-select';
13
13
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -7619,6 +7619,200 @@ function useErrorDisplay() {
7619
7619
  const clearError = useCallback(() => setRaw(null), []);
7620
7620
  return { error, setError, clearError };
7621
7621
  }
7622
+ function useDebounce(value, delayMs) {
7623
+ const [debounced_value, set_debounced_value] = useState(value);
7624
+ useEffect(() => {
7625
+ const timer = setTimeout(() => {
7626
+ set_debounced_value(value);
7627
+ }, delayMs);
7628
+ return () => clearTimeout(timer);
7629
+ }, [value, delayMs]);
7630
+ return debounced_value;
7631
+ }
7632
+ function useCopyToClipboard() {
7633
+ const [copied, set_copied] = useState(false);
7634
+ const copy = useCallback(async (text) => {
7635
+ if (typeof navigator === "undefined" || !navigator.clipboard) {
7636
+ return;
7637
+ }
7638
+ try {
7639
+ await navigator.clipboard.writeText(text);
7640
+ set_copied(true);
7641
+ setTimeout(() => set_copied(false), 2e3);
7642
+ } catch {
7643
+ }
7644
+ }, []);
7645
+ return { copied, copy };
7646
+ }
7647
+
7648
+ // src/hooks/use_is_mobile.ts
7649
+ var DEFAULT_BREAKPOINT_PX = 768;
7650
+ function useIsMobile(breakpointPx = DEFAULT_BREAKPOINT_PX) {
7651
+ return useMediaQuery(`(max-width: ${breakpointPx - 1}px)`);
7652
+ }
7653
+ function useViewport(breakpoint = DEFAULT_BREAKPOINT_PX) {
7654
+ return useIsMobile(breakpoint);
7655
+ }
7656
+ function useLocalStorage(key, initialValue) {
7657
+ const read_stored = () => {
7658
+ if (typeof window === "undefined") return initialValue;
7659
+ try {
7660
+ const raw = window.localStorage.getItem(key);
7661
+ return raw !== null ? JSON.parse(raw) : initialValue;
7662
+ } catch {
7663
+ return initialValue;
7664
+ }
7665
+ };
7666
+ const [stored_value, set_stored_value] = useState(read_stored);
7667
+ const set_value = useCallback(
7668
+ (value) => {
7669
+ set_stored_value((prev) => {
7670
+ const next = typeof value === "function" ? value(prev) : value;
7671
+ try {
7672
+ if (typeof window !== "undefined") {
7673
+ window.localStorage.setItem(key, JSON.stringify(next));
7674
+ }
7675
+ } catch {
7676
+ }
7677
+ return next;
7678
+ });
7679
+ },
7680
+ [key]
7681
+ );
7682
+ return [stored_value, set_value];
7683
+ }
7684
+ function useSessionStorage(key, initialValue) {
7685
+ const read_stored = () => {
7686
+ if (typeof window === "undefined") return initialValue;
7687
+ try {
7688
+ const raw = window.sessionStorage.getItem(key);
7689
+ return raw !== null ? JSON.parse(raw) : initialValue;
7690
+ } catch {
7691
+ return initialValue;
7692
+ }
7693
+ };
7694
+ const [stored_value, set_stored_value] = useState(read_stored);
7695
+ const set_value = useCallback(
7696
+ (value) => {
7697
+ set_stored_value((prev) => {
7698
+ const next = typeof value === "function" ? value(prev) : value;
7699
+ try {
7700
+ if (typeof window !== "undefined") {
7701
+ window.sessionStorage.setItem(key, JSON.stringify(next));
7702
+ }
7703
+ } catch {
7704
+ }
7705
+ return next;
7706
+ });
7707
+ },
7708
+ [key]
7709
+ );
7710
+ return [stored_value, set_value];
7711
+ }
7712
+ function useClickOutside(ref, handler) {
7713
+ useEffect(() => {
7714
+ if (typeof document === "undefined") return;
7715
+ const handle_event = (event) => {
7716
+ const target = event.target;
7717
+ if (!ref.current || !target) return;
7718
+ if (!ref.current.contains(target)) {
7719
+ handler();
7720
+ }
7721
+ };
7722
+ document.addEventListener("mousedown", handle_event);
7723
+ document.addEventListener("touchstart", handle_event);
7724
+ return () => {
7725
+ document.removeEventListener("mousedown", handle_event);
7726
+ document.removeEventListener("touchstart", handle_event);
7727
+ };
7728
+ }, [ref, handler]);
7729
+ }
7730
+ function useWakeLock() {
7731
+ const supported = typeof navigator !== "undefined" && "wakeLock" in navigator;
7732
+ const sentinel_ref = useRef(null);
7733
+ const [acquired, set_acquired] = useState(false);
7734
+ const request = useCallback(async () => {
7735
+ if (!supported || sentinel_ref.current) return;
7736
+ try {
7737
+ const sentinel = await navigator.wakeLock.request("screen");
7738
+ sentinel.addEventListener("release", () => {
7739
+ sentinel_ref.current = null;
7740
+ set_acquired(false);
7741
+ });
7742
+ sentinel_ref.current = sentinel;
7743
+ set_acquired(true);
7744
+ } catch {
7745
+ }
7746
+ }, [supported]);
7747
+ const release = useCallback(async () => {
7748
+ if (!sentinel_ref.current) return;
7749
+ try {
7750
+ await sentinel_ref.current.release();
7751
+ } catch {
7752
+ } finally {
7753
+ sentinel_ref.current = null;
7754
+ set_acquired(false);
7755
+ }
7756
+ }, []);
7757
+ useEffect(() => {
7758
+ if (typeof document === "undefined") return;
7759
+ const handle_visibility = () => {
7760
+ if (document.visibilityState === "visible" && acquired && !sentinel_ref.current) {
7761
+ void request();
7762
+ }
7763
+ };
7764
+ document.addEventListener("visibilitychange", handle_visibility);
7765
+ return () => document.removeEventListener("visibilitychange", handle_visibility);
7766
+ }, [acquired, request]);
7767
+ useEffect(() => {
7768
+ return () => {
7769
+ if (sentinel_ref.current) {
7770
+ void sentinel_ref.current.release().catch(() => void 0);
7771
+ sentinel_ref.current = null;
7772
+ }
7773
+ };
7774
+ }, []);
7775
+ return { supported, acquired, request, release };
7776
+ }
7777
+ function useFullscreen(elementRef) {
7778
+ const [is_fullscreen, set_is_fullscreen] = useState(false);
7779
+ useEffect(() => {
7780
+ if (typeof document === "undefined") return;
7781
+ const handle_change = () => {
7782
+ set_is_fullscreen(!!document.fullscreenElement);
7783
+ };
7784
+ document.addEventListener("fullscreenchange", handle_change);
7785
+ set_is_fullscreen(!!document.fullscreenElement);
7786
+ return () => document.removeEventListener("fullscreenchange", handle_change);
7787
+ }, []);
7788
+ const get_target = useCallback(() => {
7789
+ return elementRef?.current ?? document.documentElement;
7790
+ }, [elementRef]);
7791
+ const enter = useCallback(async () => {
7792
+ if (typeof document === "undefined" || !document.documentElement.requestFullscreen) return;
7793
+ if (document.fullscreenElement) return;
7794
+ try {
7795
+ await get_target().requestFullscreen();
7796
+ } catch {
7797
+ }
7798
+ }, [get_target]);
7799
+ const exit = useCallback(async () => {
7800
+ if (typeof document === "undefined") return;
7801
+ if (!document.fullscreenElement) return;
7802
+ try {
7803
+ await document.exitFullscreen();
7804
+ } catch {
7805
+ }
7806
+ }, []);
7807
+ const toggle = useCallback(async () => {
7808
+ if (document.fullscreenElement) {
7809
+ await exit();
7810
+ } else {
7811
+ await enter();
7812
+ }
7813
+ }, [enter, exit]);
7814
+ return { isFullscreen: is_fullscreen, enter, exit, toggle };
7815
+ }
7622
7816
  function KanbanCard({
7623
7817
  item,
7624
7818
  renderCard,
@@ -10036,6 +10230,291 @@ function DateRangeSelector({
10036
10230
  );
10037
10231
  }
10038
10232
 
10039
- 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, DateRangeSelector, 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, EmptyState, ErrorBanner, ErrorPage, 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, HazoUiKanban, HazoUiKanbanFilter, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiRte, HazoUiTable, HazoUiTextarea, HazoUiTextbox, HazoUiToaster, HoverCard, HoverCardContent, HoverCardTrigger, Input, InverseSparkline, Label3 as Label, LineChart, LoadingTimeout, MultiLineChart, Popover, PopoverContent, PopoverTrigger, ProgressiveImage, 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, Skeleton, SkeletonBar, SkeletonCircle, SkeletonGroup, SkeletonRect, Sparkline, Spinner, StackedBars, Switch, Table2 as Table, TableBody, TableCaption, TableCell2 as TableCell, TableFooter, TableHead, TableHeader2 as TableHeader, TableRow2 as TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, applyKanbanFilter, buttonGroupVariants, create_command_suggestion_extension, errorToast, format_num, get_hazo_ui_config, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, successToast, text_to_tiptap_content, toggleVariants, useErrorDisplay, useLoadingState, useMediaQuery };
10233
+ // src/assets/celebration-chime.mp3
10234
+ var celebration_chime_default = "data:text/plain;charset=utf-8,";
10235
+ var CELEBRATION_GRADIENT = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)";
10236
+ var CARD_SIZE = 1080;
10237
+ var PREVIEW_SIZE = 400;
10238
+ var CARD_SCALE = PREVIEW_SIZE / CARD_SIZE;
10239
+ var _enqueue = null;
10240
+ function celebrate(payload) {
10241
+ if (!_enqueue) {
10242
+ if (process.env.NODE_ENV !== "production") {
10243
+ console.warn(
10244
+ "[hazo_ui] celebrate() called before <CelebrationProvider /> was mounted"
10245
+ );
10246
+ }
10247
+ return;
10248
+ }
10249
+ _enqueue(payload);
10250
+ }
10251
+ function CelebrationProvider({ children }) {
10252
+ const [queue, set_queue] = React25.useState([]);
10253
+ const enqueue = React25.useCallback((payload) => {
10254
+ const storage_key = `hazo_ui_celebration_${payload.id}`;
10255
+ if (typeof window !== "undefined" && sessionStorage.getItem(storage_key)) {
10256
+ return;
10257
+ }
10258
+ set_queue((q) => [...q, payload]);
10259
+ }, []);
10260
+ React25.useEffect(() => {
10261
+ _enqueue = enqueue;
10262
+ return () => {
10263
+ _enqueue = null;
10264
+ };
10265
+ }, [enqueue]);
10266
+ const handle_close = React25.useCallback(() => {
10267
+ set_queue((q) => q.slice(1));
10268
+ }, []);
10269
+ const current = queue[0] ?? null;
10270
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
10271
+ children,
10272
+ current && /* @__PURE__ */ jsx(
10273
+ CelebrationModalInner,
10274
+ {
10275
+ payload: current,
10276
+ onClose: handle_close
10277
+ },
10278
+ current.id
10279
+ )
10280
+ ] });
10281
+ }
10282
+ function CelebrationModalInner({
10283
+ payload,
10284
+ onClose
10285
+ }) {
10286
+ const {
10287
+ id,
10288
+ title,
10289
+ subtitle,
10290
+ shareableCard,
10291
+ autoDismiss = true,
10292
+ autoDismissDelay = 8e3,
10293
+ audioChime = false
10294
+ } = payload;
10295
+ const [visible, set_visible] = React25.useState(true);
10296
+ const [is_downloading, set_is_downloading] = React25.useState(false);
10297
+ const canvas_ref = React25.useRef(null);
10298
+ const card_ref = React25.useRef(null);
10299
+ React25.useEffect(() => {
10300
+ sessionStorage.setItem(`hazo_ui_celebration_${id}`, "1");
10301
+ }, [id]);
10302
+ React25.useEffect(() => {
10303
+ if (!canvas_ref.current) return;
10304
+ let confetti_instance = null;
10305
+ import('canvas-confetti').then(({ default: confetti }) => {
10306
+ if (!canvas_ref.current) return;
10307
+ confetti_instance = confetti.create(canvas_ref.current, { resize: true });
10308
+ confetti_instance({
10309
+ particleCount: 120,
10310
+ spread: 70,
10311
+ origin: { y: 0.5 },
10312
+ colors: ["#667eea", "#764ba2", "#f6d365", "#fda085", "#84fab0"]
10313
+ });
10314
+ });
10315
+ return () => {
10316
+ confetti_instance?.reset();
10317
+ };
10318
+ }, []);
10319
+ React25.useEffect(() => {
10320
+ if (!audioChime) return;
10321
+ const audio = new Audio(celebration_chime_default);
10322
+ audio.play().catch(() => {
10323
+ });
10324
+ }, [audioChime]);
10325
+ React25.useEffect(() => {
10326
+ if (!autoDismiss) return;
10327
+ const timer = window.setTimeout(close_modal, autoDismissDelay);
10328
+ return () => window.clearTimeout(timer);
10329
+ }, [autoDismiss, autoDismissDelay]);
10330
+ React25.useEffect(() => {
10331
+ const on_key = (e) => {
10332
+ if (e.key === "Escape") close_modal();
10333
+ };
10334
+ document.addEventListener("keydown", on_key);
10335
+ return () => document.removeEventListener("keydown", on_key);
10336
+ }, []);
10337
+ function close_modal() {
10338
+ set_visible(false);
10339
+ setTimeout(onClose, 150);
10340
+ }
10341
+ async function handle_download() {
10342
+ if (!card_ref.current) return;
10343
+ set_is_downloading(true);
10344
+ try {
10345
+ const { toPng } = await import('html-to-image');
10346
+ const data_url = await toPng(card_ref.current, {
10347
+ width: CARD_SIZE,
10348
+ height: CARD_SIZE
10349
+ });
10350
+ const a = document.createElement("a");
10351
+ a.download = `${id}.png`;
10352
+ a.href = data_url;
10353
+ a.click();
10354
+ } catch (err) {
10355
+ console.error("[hazo_ui] CelebrationModal: download failed", err);
10356
+ } finally {
10357
+ set_is_downloading(false);
10358
+ }
10359
+ }
10360
+ async function handle_share() {
10361
+ if (!card_ref.current || !navigator.share) return;
10362
+ try {
10363
+ const { toPng } = await import('html-to-image');
10364
+ const data_url = await toPng(card_ref.current, {
10365
+ width: CARD_SIZE,
10366
+ height: CARD_SIZE
10367
+ });
10368
+ const blob = await fetch(data_url).then((r) => r.blob());
10369
+ await navigator.share({
10370
+ files: [new File([blob], `${id}.png`, { type: "image/png" })]
10371
+ });
10372
+ } catch (err) {
10373
+ console.error("[hazo_ui] CelebrationModal: share failed", err);
10374
+ }
10375
+ }
10376
+ async function handle_copy() {
10377
+ if (!card_ref.current) return;
10378
+ try {
10379
+ const { toPng } = await import('html-to-image');
10380
+ const data_url = await toPng(card_ref.current, {
10381
+ width: CARD_SIZE,
10382
+ height: CARD_SIZE
10383
+ });
10384
+ const blob = await fetch(data_url).then((r) => r.blob());
10385
+ await navigator.clipboard.write([
10386
+ new ClipboardItem({ "image/png": blob })
10387
+ ]);
10388
+ } catch (err) {
10389
+ console.error("[hazo_ui] CelebrationModal: copy failed", err);
10390
+ }
10391
+ }
10392
+ const resolved_caption = shareableCard?.caption ?? subtitle;
10393
+ const card_bg = shareableCard?.background ?? CELEBRATION_GRADIENT;
10394
+ const can_share = typeof navigator !== "undefined" && "share" in navigator;
10395
+ return /* @__PURE__ */ jsxs(
10396
+ "div",
10397
+ {
10398
+ className: cn(
10399
+ "cls_celebration_modal_overlay",
10400
+ "fixed inset-0 z-50 flex items-center justify-center",
10401
+ "bg-black/30 backdrop-blur-sm",
10402
+ "transition-opacity duration-150",
10403
+ visible ? "opacity-100" : "opacity-0 pointer-events-none"
10404
+ ),
10405
+ onClick: close_modal,
10406
+ children: [
10407
+ /* @__PURE__ */ jsx(
10408
+ "canvas",
10409
+ {
10410
+ ref: canvas_ref,
10411
+ className: "cls_celebration_confetti_canvas absolute inset-0 w-full h-full pointer-events-none"
10412
+ }
10413
+ ),
10414
+ /* @__PURE__ */ jsxs(
10415
+ "div",
10416
+ {
10417
+ className: cn(
10418
+ "cls_celebration_modal_card",
10419
+ "relative bg-white rounded-2xl shadow-2xl",
10420
+ "flex flex-col items-center overflow-hidden",
10421
+ "transition-transform duration-150",
10422
+ visible ? "scale-100" : "scale-95"
10423
+ ),
10424
+ style: { width: 480, maxWidth: "95vw" },
10425
+ onClick: (e) => e.stopPropagation(),
10426
+ children: [
10427
+ /* @__PURE__ */ jsx(
10428
+ "button",
10429
+ {
10430
+ className: "cls_celebration_close_btn absolute top-3 right-3 z-10 p-1.5 rounded-full hover:bg-black/10 transition-colors",
10431
+ onClick: close_modal,
10432
+ "aria-label": "Close celebration",
10433
+ children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-gray-600" })
10434
+ }
10435
+ ),
10436
+ /* @__PURE__ */ jsxs("div", { className: "cls_celebration_header px-8 pt-8 pb-5 text-center", children: [
10437
+ /* @__PURE__ */ jsx("h2", { className: "cls_celebration_title text-2xl font-bold text-gray-900", children: title }),
10438
+ subtitle && /* @__PURE__ */ jsx("p", { className: "cls_celebration_subtitle mt-1.5 text-sm text-gray-500 leading-relaxed", children: subtitle })
10439
+ ] }),
10440
+ shareableCard && /* @__PURE__ */ jsxs(Fragment$1, { children: [
10441
+ /* @__PURE__ */ jsx(
10442
+ "div",
10443
+ {
10444
+ className: "cls_celebration_card_preview_wrapper overflow-hidden rounded-lg mx-8",
10445
+ style: { width: PREVIEW_SIZE, height: PREVIEW_SIZE },
10446
+ children: /* @__PURE__ */ jsxs(
10447
+ "div",
10448
+ {
10449
+ ref: card_ref,
10450
+ className: "cls_celebration_card_inner",
10451
+ style: {
10452
+ width: CARD_SIZE,
10453
+ height: CARD_SIZE,
10454
+ transform: `scale(${CARD_SCALE})`,
10455
+ transformOrigin: "top left",
10456
+ background: card_bg,
10457
+ display: "flex",
10458
+ flexDirection: "column",
10459
+ alignItems: "center",
10460
+ justifyContent: "center",
10461
+ padding: 80,
10462
+ boxSizing: "border-box"
10463
+ },
10464
+ children: [
10465
+ shareableCard.foreground,
10466
+ resolved_caption && /* @__PURE__ */ jsx(
10467
+ "p",
10468
+ {
10469
+ style: {
10470
+ marginTop: 32,
10471
+ fontSize: 36,
10472
+ color: "white",
10473
+ textAlign: "center",
10474
+ fontWeight: 600,
10475
+ lineHeight: 1.3
10476
+ },
10477
+ children: resolved_caption
10478
+ }
10479
+ )
10480
+ ]
10481
+ }
10482
+ )
10483
+ }
10484
+ ),
10485
+ /* @__PURE__ */ jsxs("div", { className: "cls_celebration_card_actions flex flex-wrap gap-2 px-8 py-5", children: [
10486
+ /* @__PURE__ */ jsxs(
10487
+ Button,
10488
+ {
10489
+ className: "cls_celebration_download_btn",
10490
+ size: "sm",
10491
+ onClick: handle_download,
10492
+ disabled: is_downloading,
10493
+ children: [
10494
+ is_downloading ? /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 mr-1.5 animate-spin" }) : /* @__PURE__ */ jsx(Download, { className: "h-3.5 w-3.5 mr-1.5" }),
10495
+ "Download PNG"
10496
+ ]
10497
+ }
10498
+ ),
10499
+ can_share && /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", onClick: handle_share, children: [
10500
+ /* @__PURE__ */ jsx(Share2, { className: "h-3.5 w-3.5 mr-1.5" }),
10501
+ "Share"
10502
+ ] }),
10503
+ /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", onClick: handle_copy, children: [
10504
+ /* @__PURE__ */ jsx(Copy, { className: "h-3.5 w-3.5 mr-1.5" }),
10505
+ "Copy image"
10506
+ ] })
10507
+ ] })
10508
+ ] }),
10509
+ !shareableCard && /* @__PURE__ */ jsx("div", { className: "cls_celebration_footer pb-8", children: /* @__PURE__ */ jsx(Button, { size: "sm", onClick: close_modal, children: "Dismiss" }) })
10510
+ ]
10511
+ }
10512
+ )
10513
+ ]
10514
+ }
10515
+ );
10516
+ }
10517
+
10518
+ export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CelebrationProvider, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, CommandNodeExtension, CommandPill, CommandPopover, DateRangeSelector, 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, EmptyState, ErrorBanner, ErrorPage, 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, HazoUiKanban, HazoUiKanbanFilter, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiRte, HazoUiTable, HazoUiTextarea, HazoUiTextbox, HazoUiToaster, HoverCard, HoverCardContent, HoverCardTrigger, Input, InverseSparkline, Label3 as Label, LineChart, LoadingTimeout, MultiLineChart, Popover, PopoverContent, PopoverTrigger, ProgressiveImage, 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, Skeleton, SkeletonBar, SkeletonCircle, SkeletonGroup, SkeletonRect, Sparkline, Spinner, StackedBars, Switch, Table2 as Table, TableBody, TableCaption, TableCell2 as TableCell, TableFooter, TableHead, TableHeader2 as TableHeader, TableRow2 as TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, applyKanbanFilter, buttonGroupVariants, celebrate, create_command_suggestion_extension, errorToast, format_num, get_hazo_ui_config, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, successToast, text_to_tiptap_content, toggleVariants, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock };
10040
10519
  //# sourceMappingURL=index.js.map
10041
10520
  //# sourceMappingURL=index.js.map