@mlw-packages/react-components 1.9.9 → 1.9.10
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.d.mts +24 -23
- package/dist/index.d.ts +24 -23
- package/dist/index.js +633 -499
- package/dist/index.mjs +321 -188
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as React32 from 'react';
|
|
3
|
+
import React32__default, { forwardRef, useState, useEffect, createContext, useMemo, useRef, useCallback, useContext, useId, useLayoutEffect } from 'react';
|
|
4
4
|
import { Slot } from '@radix-ui/react-slot';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { clsx } from 'clsx';
|
|
@@ -15,7 +15,7 @@ import { toast as toast$1, Toaster as Toaster$1 } from 'sonner';
|
|
|
15
15
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
16
16
|
import 'react-router-dom';
|
|
17
17
|
import { Command } from 'cmdk';
|
|
18
|
-
import { AnimatePresence, motion } from 'framer-motion';
|
|
18
|
+
import { AnimatePresence, motion, useMotionValue, animate } from 'framer-motion';
|
|
19
19
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
20
20
|
import { XIcon as XIcon$1, CalendarDotIcon, DotsThreeIcon as DotsThreeIcon$1, Check, CheckIcon as CheckIcon$1 } from '@phosphor-icons/react/dist/ssr';
|
|
21
21
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
@@ -520,7 +520,7 @@ function cn(...inputs) {
|
|
|
520
520
|
var AlertDialogBase = AlertDialogPrimitive.Root;
|
|
521
521
|
var AlertDialogTriggerBase = AlertDialogPrimitive.Trigger;
|
|
522
522
|
var AlertDialogPortalBase = AlertDialogPrimitive.Portal;
|
|
523
|
-
var AlertDialogOverlayBase =
|
|
523
|
+
var AlertDialogOverlayBase = React32.forwardRef(({ className, testid = "alertdialog-overlay", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
524
524
|
AlertDialogPrimitive.Overlay,
|
|
525
525
|
{
|
|
526
526
|
className: cn(
|
|
@@ -533,7 +533,7 @@ var AlertDialogOverlayBase = React33.forwardRef(({ className, testid = "alertdia
|
|
|
533
533
|
}
|
|
534
534
|
));
|
|
535
535
|
AlertDialogOverlayBase.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
536
|
-
var AlertDialogContentBase =
|
|
536
|
+
var AlertDialogContentBase = React32.forwardRef(({ className, testid = "alertdialog-content", ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortalBase, { children: [
|
|
537
537
|
/* @__PURE__ */ jsx(AlertDialogOverlayBase, {}),
|
|
538
538
|
/* @__PURE__ */ jsx(
|
|
539
539
|
AlertDialogPrimitive.Content,
|
|
@@ -577,7 +577,7 @@ var AlertDialogFooterBase = ({
|
|
|
577
577
|
}
|
|
578
578
|
);
|
|
579
579
|
AlertDialogFooterBase.displayName = "AlertDialogFooterBase";
|
|
580
|
-
var AlertDialogTitleBase =
|
|
580
|
+
var AlertDialogTitleBase = React32.forwardRef(({ className, testid = "alertdialog-title", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
581
581
|
AlertDialogPrimitive.Title,
|
|
582
582
|
{
|
|
583
583
|
ref,
|
|
@@ -587,7 +587,7 @@ var AlertDialogTitleBase = React33.forwardRef(({ className, testid = "alertdialo
|
|
|
587
587
|
}
|
|
588
588
|
));
|
|
589
589
|
AlertDialogTitleBase.displayName = AlertDialogPrimitive.Title.displayName;
|
|
590
|
-
var AlertDialogDescriptionBase =
|
|
590
|
+
var AlertDialogDescriptionBase = React32.forwardRef(({ className, testid = "alertdialog-description", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
591
591
|
AlertDialogPrimitive.Description,
|
|
592
592
|
{
|
|
593
593
|
ref,
|
|
@@ -597,7 +597,7 @@ var AlertDialogDescriptionBase = React33.forwardRef(({ className, testid = "aler
|
|
|
597
597
|
}
|
|
598
598
|
));
|
|
599
599
|
AlertDialogDescriptionBase.displayName = AlertDialogPrimitive.Description.displayName;
|
|
600
|
-
var AlertDialogActionBase =
|
|
600
|
+
var AlertDialogActionBase = React32.forwardRef(({ className, testid = "alertdialog-action", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
601
601
|
AlertDialogPrimitive.Action,
|
|
602
602
|
{
|
|
603
603
|
ref,
|
|
@@ -607,7 +607,7 @@ var AlertDialogActionBase = React33.forwardRef(({ className, testid = "alertdial
|
|
|
607
607
|
}
|
|
608
608
|
));
|
|
609
609
|
AlertDialogActionBase.displayName = AlertDialogPrimitive.Action.displayName;
|
|
610
|
-
var AlertDialogCancelBase =
|
|
610
|
+
var AlertDialogCancelBase = React32.forwardRef(({ className, testid = "alertdialog-cancel", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
611
611
|
AlertDialogPrimitive.Cancel,
|
|
612
612
|
{
|
|
613
613
|
ref,
|
|
@@ -621,7 +621,7 @@ var DialogBase = DialogPrimitive.Root;
|
|
|
621
621
|
var DialogTriggerBase = DialogPrimitive.Trigger;
|
|
622
622
|
var DialogPortalBase = DialogPrimitive.Portal;
|
|
623
623
|
var DialogCloseBase = DialogPrimitive.Close;
|
|
624
|
-
var DialogOverlayBase =
|
|
624
|
+
var DialogOverlayBase = React32.forwardRef(({ className, testid: dataTestId = "dialog-overlay", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
625
625
|
DialogPrimitive.Overlay,
|
|
626
626
|
{
|
|
627
627
|
ref,
|
|
@@ -634,7 +634,7 @@ var DialogOverlayBase = React33.forwardRef(({ className, testid: dataTestId = "d
|
|
|
634
634
|
}
|
|
635
635
|
));
|
|
636
636
|
DialogOverlayBase.displayName = DialogPrimitive.Overlay.displayName;
|
|
637
|
-
var DialogContentBase =
|
|
637
|
+
var DialogContentBase = React32.forwardRef(
|
|
638
638
|
({ className, children, testid: dataTestId = "dialog-content", ...props }, ref) => {
|
|
639
639
|
const userOnWheel = props.onWheel;
|
|
640
640
|
return /* @__PURE__ */ jsxs(DialogPortalBase, { children: [
|
|
@@ -663,7 +663,7 @@ var DialogContentBase = React33.forwardRef(
|
|
|
663
663
|
}
|
|
664
664
|
);
|
|
665
665
|
DialogContentBase.displayName = DialogPrimitive.Content.displayName;
|
|
666
|
-
var DialogHeaderBase =
|
|
666
|
+
var DialogHeaderBase = React32.forwardRef(({ className, testid: dataTestId = "dialog-header", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
667
667
|
"div",
|
|
668
668
|
{
|
|
669
669
|
ref,
|
|
@@ -676,7 +676,7 @@ var DialogHeaderBase = React33.forwardRef(({ className, testid: dataTestId = "di
|
|
|
676
676
|
}
|
|
677
677
|
));
|
|
678
678
|
DialogHeaderBase.displayName = "DialogHeader";
|
|
679
|
-
var DialogFooterBase =
|
|
679
|
+
var DialogFooterBase = React32.forwardRef(({ className, testid: dataTestId = "dialog-footer", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
680
680
|
"div",
|
|
681
681
|
{
|
|
682
682
|
ref,
|
|
@@ -689,7 +689,7 @@ var DialogFooterBase = React33.forwardRef(({ className, testid: dataTestId = "di
|
|
|
689
689
|
}
|
|
690
690
|
));
|
|
691
691
|
DialogFooterBase.displayName = "DialogFooter";
|
|
692
|
-
var DialogTitleBase =
|
|
692
|
+
var DialogTitleBase = React32.forwardRef(({ className, testid: dataTestId = "dialog-title", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
693
693
|
DialogPrimitive.Title,
|
|
694
694
|
{
|
|
695
695
|
ref,
|
|
@@ -702,7 +702,7 @@ var DialogTitleBase = React33.forwardRef(({ className, testid: dataTestId = "dia
|
|
|
702
702
|
}
|
|
703
703
|
));
|
|
704
704
|
DialogTitleBase.displayName = DialogPrimitive.Title.displayName;
|
|
705
|
-
var DialogDescriptionBase =
|
|
705
|
+
var DialogDescriptionBase = React32.forwardRef(({ className, testid: dataTestId = "dialog-description", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
706
706
|
DialogPrimitive.Description,
|
|
707
707
|
{
|
|
708
708
|
ref,
|
|
@@ -760,9 +760,9 @@ var dotVariants = cva(
|
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
|
-
var LoadingBase =
|
|
763
|
+
var LoadingBase = React32.forwardRef(
|
|
764
764
|
({ className, size, message, overlay = false, variant = "spinner", ...props }, ref) => {
|
|
765
|
-
|
|
765
|
+
React32.useEffect(() => {
|
|
766
766
|
const style = document.createElement("style");
|
|
767
767
|
style.textContent = `
|
|
768
768
|
@keyframes dotBounce {
|
|
@@ -878,7 +878,7 @@ var LoadingBase = React33.forwardRef(
|
|
|
878
878
|
}
|
|
879
879
|
);
|
|
880
880
|
LoadingBase.displayName = "LoadingBase";
|
|
881
|
-
var LabelBase =
|
|
881
|
+
var LabelBase = React32.forwardRef(
|
|
882
882
|
({ className, asChild = false, testid = "label-base", ...props }, ref) => {
|
|
883
883
|
const Comp = asChild ? Slot : "label";
|
|
884
884
|
return /* @__PURE__ */ jsx(Label, { children: /* @__PURE__ */ jsx(
|
|
@@ -897,7 +897,7 @@ var LabelBase = React33.forwardRef(
|
|
|
897
897
|
);
|
|
898
898
|
LabelBase.displayName = "LabelBase";
|
|
899
899
|
var LabelBase_default = LabelBase;
|
|
900
|
-
var ProgressBase =
|
|
900
|
+
var ProgressBase = React32.forwardRef(
|
|
901
901
|
({
|
|
902
902
|
className,
|
|
903
903
|
value: rawValue,
|
|
@@ -1079,7 +1079,7 @@ var ProgressPanelsBase = ({
|
|
|
1079
1079
|
/* @__PURE__ */ jsx("div", { className: "flex w-full gap-1 rounded-lg overflow-hidden", children: steps.map((step, idx) => {
|
|
1080
1080
|
const isActive = idx === currentStep;
|
|
1081
1081
|
const isLast = idx === steps.length - 1;
|
|
1082
|
-
return /* @__PURE__ */ jsxs(
|
|
1082
|
+
return /* @__PURE__ */ jsxs(React32.Fragment, { children: [
|
|
1083
1083
|
/* @__PURE__ */ jsxs(
|
|
1084
1084
|
"div",
|
|
1085
1085
|
{
|
|
@@ -1271,10 +1271,10 @@ var toast = {
|
|
|
1271
1271
|
};
|
|
1272
1272
|
var MOBILE_BREAKPOINT = 768;
|
|
1273
1273
|
function useIsMobile() {
|
|
1274
|
-
const [isMobile, setIsMobile] =
|
|
1274
|
+
const [isMobile, setIsMobile] = React32.useState(
|
|
1275
1275
|
void 0
|
|
1276
1276
|
);
|
|
1277
|
-
|
|
1277
|
+
React32.useEffect(() => {
|
|
1278
1278
|
const checkIsMobile = () => {
|
|
1279
1279
|
const isTouch = window.matchMedia("(pointer: coarse)").matches || navigator.maxTouchPoints > 0;
|
|
1280
1280
|
const isSmallScreen = window.innerWidth < MOBILE_BREAKPOINT;
|
|
@@ -1417,11 +1417,11 @@ var TOOLTIP_DELAY_DURATION = 600;
|
|
|
1417
1417
|
var TOOLTIP_SIDE_OFFSET = 8;
|
|
1418
1418
|
var TOOLTIP_MOBILE_DELAY = Infinity;
|
|
1419
1419
|
var TooltipProviderBase = TooltipPrimitive.Provider;
|
|
1420
|
-
var TooltipClickContext =
|
|
1420
|
+
var TooltipClickContext = React32.createContext({});
|
|
1421
1421
|
var TooltipBase = ({ children, delayDuration = TOOLTIP_DELAY_DURATION, ...props }) => {
|
|
1422
|
-
const [open, setOpen] =
|
|
1422
|
+
const [open, setOpen] = React32.useState(false);
|
|
1423
1423
|
const isMobile = useIsMobile();
|
|
1424
|
-
|
|
1424
|
+
React32.useEffect(() => {
|
|
1425
1425
|
if (!open || !isMobile) return;
|
|
1426
1426
|
const handleClickOutside = (e) => {
|
|
1427
1427
|
const target = e.target;
|
|
@@ -1434,7 +1434,7 @@ var TooltipBase = ({ children, delayDuration = TOOLTIP_DELAY_DURATION, ...props
|
|
|
1434
1434
|
document.addEventListener("pointerdown", handleClickOutside);
|
|
1435
1435
|
return () => document.removeEventListener("pointerdown", handleClickOutside);
|
|
1436
1436
|
}, [open, isMobile]);
|
|
1437
|
-
const contextValue =
|
|
1437
|
+
const contextValue = React32.useMemo(() => ({ setOpen, isMobile }), [isMobile]);
|
|
1438
1438
|
return /* @__PURE__ */ jsx(TooltipClickContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
1439
1439
|
TooltipPrimitive.Root,
|
|
1440
1440
|
{
|
|
@@ -1447,9 +1447,9 @@ var TooltipBase = ({ children, delayDuration = TOOLTIP_DELAY_DURATION, ...props
|
|
|
1447
1447
|
) });
|
|
1448
1448
|
};
|
|
1449
1449
|
TooltipBase.displayName = "TooltipBase";
|
|
1450
|
-
var TooltipTriggerBase =
|
|
1451
|
-
const { setOpen, isMobile } =
|
|
1452
|
-
const handlePointerDown =
|
|
1450
|
+
var TooltipTriggerBase = React32.forwardRef(({ children, onPointerDown, onClick: propOnClick, ...props }, ref) => {
|
|
1451
|
+
const { setOpen, isMobile } = React32.useContext(TooltipClickContext);
|
|
1452
|
+
const handlePointerDown = React32.useCallback(
|
|
1453
1453
|
(e) => {
|
|
1454
1454
|
if (onPointerDown) {
|
|
1455
1455
|
onPointerDown(e);
|
|
@@ -1457,7 +1457,7 @@ var TooltipTriggerBase = React33.forwardRef(({ children, onPointerDown, onClick:
|
|
|
1457
1457
|
},
|
|
1458
1458
|
[onPointerDown]
|
|
1459
1459
|
);
|
|
1460
|
-
const onClick =
|
|
1460
|
+
const onClick = React32.useCallback(
|
|
1461
1461
|
(e) => {
|
|
1462
1462
|
if (propOnClick) {
|
|
1463
1463
|
propOnClick(e);
|
|
@@ -1472,7 +1472,7 @@ var TooltipTriggerBase = React33.forwardRef(({ children, onPointerDown, onClick:
|
|
|
1472
1472
|
},
|
|
1473
1473
|
[onPointerDown, isMobile, setOpen, propOnClick]
|
|
1474
1474
|
);
|
|
1475
|
-
const preventDefaultOnMobile =
|
|
1475
|
+
const preventDefaultOnMobile = React32.useCallback(
|
|
1476
1476
|
(e) => {
|
|
1477
1477
|
if (isMobile) {
|
|
1478
1478
|
e.preventDefault();
|
|
@@ -1498,7 +1498,7 @@ var TooltipTriggerBase = React33.forwardRef(({ children, onPointerDown, onClick:
|
|
|
1498
1498
|
);
|
|
1499
1499
|
});
|
|
1500
1500
|
TooltipTriggerBase.displayName = "TooltipTriggerBase";
|
|
1501
|
-
var TooltipContentBase =
|
|
1501
|
+
var TooltipContentBase = React32.forwardRef(
|
|
1502
1502
|
({ className, sideOffset = TOOLTIP_SIDE_OFFSET, onPointerDown, ...props }, ref) => {
|
|
1503
1503
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
1504
1504
|
TooltipPrimitive.Content,
|
|
@@ -1539,7 +1539,7 @@ var DestructiveDialog = ({
|
|
|
1539
1539
|
triggerContent,
|
|
1540
1540
|
className
|
|
1541
1541
|
}) => {
|
|
1542
|
-
const triggerEl =
|
|
1542
|
+
const triggerEl = React32.isValidElement(children) ? /* @__PURE__ */ jsx(AlertDialogTriggerBase, { asChild: true, children }) : /* @__PURE__ */ jsx(AlertDialogTriggerBase, { children: /* @__PURE__ */ jsx(ButtonBase, { variant: "destructive", children: triggerContent ?? "Excluir" }) });
|
|
1543
1543
|
return /* @__PURE__ */ jsxs(AlertDialogBase, { children: [
|
|
1544
1544
|
triggerEl,
|
|
1545
1545
|
/* @__PURE__ */ jsxs(
|
|
@@ -1586,7 +1586,7 @@ var ModalBase = DialogPrimitive.Root;
|
|
|
1586
1586
|
var ModalTriggerBase = DialogPrimitive.Trigger;
|
|
1587
1587
|
var ModalPortalBase = DialogPrimitive.Portal;
|
|
1588
1588
|
var ModalCloseBase = DialogPrimitive.Close;
|
|
1589
|
-
var ModalOverlayBase =
|
|
1589
|
+
var ModalOverlayBase = React32.forwardRef(({ className, testid: dataTestId = "modal-overlay", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1590
1590
|
DialogPrimitive.Overlay,
|
|
1591
1591
|
{
|
|
1592
1592
|
ref,
|
|
@@ -1599,7 +1599,7 @@ var ModalOverlayBase = React33.forwardRef(({ className, testid: dataTestId = "mo
|
|
|
1599
1599
|
}
|
|
1600
1600
|
));
|
|
1601
1601
|
ModalOverlayBase.displayName = DialogPrimitive.Overlay.displayName;
|
|
1602
|
-
var ModalContentBase =
|
|
1602
|
+
var ModalContentBase = React32.forwardRef(
|
|
1603
1603
|
({
|
|
1604
1604
|
className,
|
|
1605
1605
|
children,
|
|
@@ -1663,7 +1663,7 @@ var ModalContentBase = React33.forwardRef(
|
|
|
1663
1663
|
}
|
|
1664
1664
|
);
|
|
1665
1665
|
ModalContentBase.displayName = DialogPrimitive.Content.displayName;
|
|
1666
|
-
var ModalHeaderBase =
|
|
1666
|
+
var ModalHeaderBase = React32.forwardRef(({ className, testid: dataTestId = "modal-header", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1667
1667
|
"div",
|
|
1668
1668
|
{
|
|
1669
1669
|
ref,
|
|
@@ -1676,7 +1676,7 @@ var ModalHeaderBase = React33.forwardRef(({ className, testid: dataTestId = "mod
|
|
|
1676
1676
|
}
|
|
1677
1677
|
));
|
|
1678
1678
|
ModalHeaderBase.displayName = "ModalHeader";
|
|
1679
|
-
var ModalFooterBase =
|
|
1679
|
+
var ModalFooterBase = React32.forwardRef(({ className, testid: dataTestId = "modal-footer", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1680
1680
|
"div",
|
|
1681
1681
|
{
|
|
1682
1682
|
ref,
|
|
@@ -1689,7 +1689,7 @@ var ModalFooterBase = React33.forwardRef(({ className, testid: dataTestId = "mod
|
|
|
1689
1689
|
}
|
|
1690
1690
|
));
|
|
1691
1691
|
ModalFooterBase.displayName = "ModalFooter";
|
|
1692
|
-
var ModalTitleBase =
|
|
1692
|
+
var ModalTitleBase = React32.forwardRef(({ className, testid: dataTestId = "modal-title", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1693
1693
|
DialogPrimitive.Title,
|
|
1694
1694
|
{
|
|
1695
1695
|
ref,
|
|
@@ -1702,7 +1702,7 @@ var ModalTitleBase = React33.forwardRef(({ className, testid: dataTestId = "moda
|
|
|
1702
1702
|
}
|
|
1703
1703
|
));
|
|
1704
1704
|
ModalTitleBase.displayName = DialogPrimitive.Title.displayName;
|
|
1705
|
-
var ModalDescriptionBase =
|
|
1705
|
+
var ModalDescriptionBase = React32.forwardRef(({ className, testid: dataTestId = "modal-description", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1706
1706
|
DialogPrimitive.Description,
|
|
1707
1707
|
{
|
|
1708
1708
|
ref,
|
|
@@ -1739,7 +1739,7 @@ var buttonVariantsBase = cva(
|
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
);
|
|
1742
|
-
var ButtonBase =
|
|
1742
|
+
var ButtonBase = React32__default.forwardRef(
|
|
1743
1743
|
({
|
|
1744
1744
|
className,
|
|
1745
1745
|
variant,
|
|
@@ -1791,7 +1791,7 @@ var ButtonBase = React33__default.forwardRef(
|
|
|
1791
1791
|
}
|
|
1792
1792
|
);
|
|
1793
1793
|
ButtonBase.displayName = "Button";
|
|
1794
|
-
var ButtonGroupBase =
|
|
1794
|
+
var ButtonGroupBase = React32__default.forwardRef(
|
|
1795
1795
|
({ className, children, orientation = "horizontal", ...props }, ref) => {
|
|
1796
1796
|
return /* @__PURE__ */ jsx(
|
|
1797
1797
|
"div",
|
|
@@ -1804,17 +1804,17 @@ var ButtonGroupBase = React33__default.forwardRef(
|
|
|
1804
1804
|
className
|
|
1805
1805
|
),
|
|
1806
1806
|
...props,
|
|
1807
|
-
children:
|
|
1808
|
-
if (!
|
|
1807
|
+
children: React32__default.Children.map(children, (child, index) => {
|
|
1808
|
+
if (!React32__default.isValidElement(child)) return child;
|
|
1809
1809
|
const typedChild = child;
|
|
1810
|
-
return
|
|
1810
|
+
return React32__default.cloneElement(typedChild, {
|
|
1811
1811
|
className: cn(
|
|
1812
1812
|
typedChild.props.className,
|
|
1813
1813
|
"rounded-none",
|
|
1814
1814
|
index === 0 && orientation === "horizontal" && "rounded-l-md",
|
|
1815
1815
|
index === 0 && orientation === "vertical" && "rounded-t-md",
|
|
1816
|
-
index ===
|
|
1817
|
-
index ===
|
|
1816
|
+
index === React32__default.Children.count(children) - 1 && orientation === "horizontal" && "rounded-r-md",
|
|
1817
|
+
index === React32__default.Children.count(children) - 1 && orientation === "vertical" && "rounded-b-md"
|
|
1818
1818
|
)
|
|
1819
1819
|
});
|
|
1820
1820
|
})
|
|
@@ -1828,7 +1828,7 @@ var ErrorMessage = ({ error }) => {
|
|
|
1828
1828
|
return /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: error });
|
|
1829
1829
|
};
|
|
1830
1830
|
var ErrorMessage_default = ErrorMessage;
|
|
1831
|
-
var InputBase =
|
|
1831
|
+
var InputBase = React32.forwardRef(
|
|
1832
1832
|
({
|
|
1833
1833
|
className,
|
|
1834
1834
|
type = "text",
|
|
@@ -1937,7 +1937,7 @@ var DebouncedInput = forwardRef(
|
|
|
1937
1937
|
);
|
|
1938
1938
|
DebouncedInput.displayName = "DebouncedInput";
|
|
1939
1939
|
var DebouncedInput_default = DebouncedInput;
|
|
1940
|
-
var CommandBase =
|
|
1940
|
+
var CommandBase = React32.forwardRef(({ className, testid: dataTestId = "command-base", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1941
1941
|
Command,
|
|
1942
1942
|
{
|
|
1943
1943
|
ref,
|
|
@@ -1970,7 +1970,7 @@ var CommandDialogBase = ({ children, open, ...props }) => {
|
|
|
1970
1970
|
"command-dialog"
|
|
1971
1971
|
) }) }) });
|
|
1972
1972
|
};
|
|
1973
|
-
var CommandInputBase =
|
|
1973
|
+
var CommandInputBase = React32.forwardRef(({ className, testid: dataTestId = "command-input", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1974
1974
|
"div",
|
|
1975
1975
|
{
|
|
1976
1976
|
className: "flex items-center border-b px-3 border-border",
|
|
@@ -1993,7 +1993,7 @@ var CommandInputBase = React33.forwardRef(({ className, testid: dataTestId = "co
|
|
|
1993
1993
|
}
|
|
1994
1994
|
));
|
|
1995
1995
|
CommandInputBase.displayName = Command.Input.displayName;
|
|
1996
|
-
var CommandDebouncedInputBase =
|
|
1996
|
+
var CommandDebouncedInputBase = React32.forwardRef(
|
|
1997
1997
|
({
|
|
1998
1998
|
className,
|
|
1999
1999
|
testid: dataTestId = "command-input",
|
|
@@ -2034,10 +2034,10 @@ var CommandDebouncedInputBase = React33.forwardRef(
|
|
|
2034
2034
|
)
|
|
2035
2035
|
);
|
|
2036
2036
|
CommandDebouncedInputBase.displayName = "CommandDebouncedInputBase";
|
|
2037
|
-
var CommandListBase =
|
|
2037
|
+
var CommandListBase = React32.forwardRef(
|
|
2038
2038
|
({ className, testid: dataTestId = "command-list", onEndReached, ...props }, ref) => {
|
|
2039
|
-
const listRef =
|
|
2040
|
-
|
|
2039
|
+
const listRef = React32.useRef(null);
|
|
2040
|
+
React32.useEffect(() => {
|
|
2041
2041
|
const element = listRef.current;
|
|
2042
2042
|
if (!element) return;
|
|
2043
2043
|
const handleWheel = (e) => {
|
|
@@ -2100,7 +2100,7 @@ var CommandListBase = React33.forwardRef(
|
|
|
2100
2100
|
element.removeEventListener("touchstart", handleTouchStart);
|
|
2101
2101
|
};
|
|
2102
2102
|
}, [onEndReached]);
|
|
2103
|
-
const combinedRef =
|
|
2103
|
+
const combinedRef = React32.useCallback(
|
|
2104
2104
|
(node) => {
|
|
2105
2105
|
listRef.current = node;
|
|
2106
2106
|
if (typeof ref === "function") {
|
|
@@ -2136,7 +2136,7 @@ var CommandListBase = React33.forwardRef(
|
|
|
2136
2136
|
}
|
|
2137
2137
|
);
|
|
2138
2138
|
CommandListBase.displayName = Command.List.displayName;
|
|
2139
|
-
var CommandEmptyBase =
|
|
2139
|
+
var CommandEmptyBase = React32.forwardRef(({ testid: dataTestId = "command-empty", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2140
2140
|
Command.Empty,
|
|
2141
2141
|
{
|
|
2142
2142
|
ref,
|
|
@@ -2146,7 +2146,7 @@ var CommandEmptyBase = React33.forwardRef(({ testid: dataTestId = "command-empty
|
|
|
2146
2146
|
}
|
|
2147
2147
|
));
|
|
2148
2148
|
CommandEmptyBase.displayName = Command.Empty.displayName;
|
|
2149
|
-
var CommandGroupBase =
|
|
2149
|
+
var CommandGroupBase = React32.forwardRef(({ className, testid: dataTestId = "command-group", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2150
2150
|
Command.Group,
|
|
2151
2151
|
{
|
|
2152
2152
|
ref,
|
|
@@ -2159,7 +2159,7 @@ var CommandGroupBase = React33.forwardRef(({ className, testid: dataTestId = "co
|
|
|
2159
2159
|
}
|
|
2160
2160
|
));
|
|
2161
2161
|
CommandGroupBase.displayName = Command.Group.displayName;
|
|
2162
|
-
var CommandSeparatorBase =
|
|
2162
|
+
var CommandSeparatorBase = React32.forwardRef(({ className, testid: dataTestId = "command-separator", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2163
2163
|
Command.Separator,
|
|
2164
2164
|
{
|
|
2165
2165
|
ref,
|
|
@@ -2169,7 +2169,7 @@ var CommandSeparatorBase = React33.forwardRef(({ className, testid: dataTestId =
|
|
|
2169
2169
|
}
|
|
2170
2170
|
));
|
|
2171
2171
|
CommandSeparatorBase.displayName = Command.Separator.displayName;
|
|
2172
|
-
var CommandItemBase =
|
|
2172
|
+
var CommandItemBase = React32.forwardRef(({ className, testid: dataTestId = "command-item", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2173
2173
|
Command.Item,
|
|
2174
2174
|
{
|
|
2175
2175
|
ref,
|
|
@@ -2201,7 +2201,7 @@ CommandShortcutBase.displayName = "CommandShortcut";
|
|
|
2201
2201
|
var PopoverBase = PopoverPrimitive.Root;
|
|
2202
2202
|
var PopoverTriggerBase = PopoverPrimitive.Trigger;
|
|
2203
2203
|
var PopoverAnchorBase = PopoverPrimitive.Anchor;
|
|
2204
|
-
var PopoverContentBase =
|
|
2204
|
+
var PopoverContentBase = React32.forwardRef(
|
|
2205
2205
|
({
|
|
2206
2206
|
className,
|
|
2207
2207
|
align = "center",
|
|
@@ -2974,7 +2974,7 @@ __toESM(require_colors2());
|
|
|
2974
2974
|
var SelectBase = SelectPrimitive.Root;
|
|
2975
2975
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
2976
2976
|
var SelectValueBase = SelectPrimitive.Value;
|
|
2977
|
-
var SelectTriggerBase =
|
|
2977
|
+
var SelectTriggerBase = React32.forwardRef(({ className, children, error, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: cn("w-full", error && "mb-0"), children: [
|
|
2978
2978
|
/* @__PURE__ */ jsx(
|
|
2979
2979
|
SelectPrimitive.Trigger,
|
|
2980
2980
|
{
|
|
@@ -2991,7 +2991,7 @@ var SelectTriggerBase = React33.forwardRef(({ className, children, error, ...pro
|
|
|
2991
2991
|
error ? /* @__PURE__ */ jsx(ErrorMessage_default, { error }) : null
|
|
2992
2992
|
] }));
|
|
2993
2993
|
SelectTriggerBase.displayName = SelectPrimitive.Trigger.displayName;
|
|
2994
|
-
var SelectScrollUpButtonBase =
|
|
2994
|
+
var SelectScrollUpButtonBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2995
2995
|
SelectPrimitive.ScrollUpButton,
|
|
2996
2996
|
{
|
|
2997
2997
|
ref,
|
|
@@ -3004,7 +3004,7 @@ var SelectScrollUpButtonBase = React33.forwardRef(({ className, ...props }, ref)
|
|
|
3004
3004
|
}
|
|
3005
3005
|
));
|
|
3006
3006
|
SelectScrollUpButtonBase.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3007
|
-
var SelectScrollDownButtonBase =
|
|
3007
|
+
var SelectScrollDownButtonBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3008
3008
|
SelectPrimitive.ScrollDownButton,
|
|
3009
3009
|
{
|
|
3010
3010
|
ref,
|
|
@@ -3017,7 +3017,7 @@ var SelectScrollDownButtonBase = React33.forwardRef(({ className, ...props }, re
|
|
|
3017
3017
|
}
|
|
3018
3018
|
));
|
|
3019
3019
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3020
|
-
var SelectContentBase =
|
|
3020
|
+
var SelectContentBase = React32.forwardRef(
|
|
3021
3021
|
({
|
|
3022
3022
|
className,
|
|
3023
3023
|
children,
|
|
@@ -3068,7 +3068,7 @@ var SelectContentBase = React33.forwardRef(
|
|
|
3068
3068
|
) }) })
|
|
3069
3069
|
);
|
|
3070
3070
|
SelectContentBase.displayName = SelectPrimitive.Content.displayName;
|
|
3071
|
-
var SelectLabelBase =
|
|
3071
|
+
var SelectLabelBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3072
3072
|
SelectPrimitive.Label,
|
|
3073
3073
|
{
|
|
3074
3074
|
ref,
|
|
@@ -3077,7 +3077,7 @@ var SelectLabelBase = React33.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3077
3077
|
}
|
|
3078
3078
|
));
|
|
3079
3079
|
SelectLabelBase.displayName = SelectPrimitive.Label.displayName;
|
|
3080
|
-
var SelectItemBase =
|
|
3080
|
+
var SelectItemBase = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3081
3081
|
SelectPrimitive.Item,
|
|
3082
3082
|
{
|
|
3083
3083
|
ref,
|
|
@@ -3110,7 +3110,7 @@ var SelectItemBase = React33.forwardRef(({ className, children, ...props }, ref)
|
|
|
3110
3110
|
}
|
|
3111
3111
|
));
|
|
3112
3112
|
SelectItemBase.displayName = SelectPrimitive.Item.displayName;
|
|
3113
|
-
var SelectSeparatorBase =
|
|
3113
|
+
var SelectSeparatorBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3114
3114
|
SelectPrimitive.Separator,
|
|
3115
3115
|
{
|
|
3116
3116
|
ref,
|
|
@@ -3119,7 +3119,7 @@ var SelectSeparatorBase = React33.forwardRef(({ className, ...props }, ref) => /
|
|
|
3119
3119
|
}
|
|
3120
3120
|
));
|
|
3121
3121
|
SelectSeparatorBase.displayName = SelectPrimitive.Separator.displayName;
|
|
3122
|
-
var SelectEmpty =
|
|
3122
|
+
var SelectEmpty = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3123
3123
|
"div",
|
|
3124
3124
|
{
|
|
3125
3125
|
ref,
|
|
@@ -3139,7 +3139,7 @@ var DropDownMenuGroupBase = DropdownMenuPrimitive.Group;
|
|
|
3139
3139
|
var DropDownMenuPortalBase = DropdownMenuPrimitive.Portal;
|
|
3140
3140
|
var DropDownMenuSubBase = DropdownMenuPrimitive.Sub;
|
|
3141
3141
|
var DropDownMenuRadioGroupBase = DropdownMenuPrimitive.RadioGroup;
|
|
3142
|
-
var DropDownMenuSubTriggerBase =
|
|
3142
|
+
var DropDownMenuSubTriggerBase = React32.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubTrigger, { ref, ...props, children: /* @__PURE__ */ jsxs(
|
|
3143
3143
|
motion.span,
|
|
3144
3144
|
{
|
|
3145
3145
|
className: cn(
|
|
@@ -3156,7 +3156,7 @@ var DropDownMenuSubTriggerBase = React33.forwardRef(({ className, inset, childre
|
|
|
3156
3156
|
}
|
|
3157
3157
|
) }));
|
|
3158
3158
|
DropDownMenuSubTriggerBase.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
3159
|
-
var DropDownMenuSubContentBase =
|
|
3159
|
+
var DropDownMenuSubContentBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3160
3160
|
DropdownMenuPrimitive.SubContent,
|
|
3161
3161
|
{
|
|
3162
3162
|
ref,
|
|
@@ -3167,7 +3167,7 @@ var DropDownMenuSubContentBase = React33.forwardRef(({ className, ...props }, re
|
|
|
3167
3167
|
...props
|
|
3168
3168
|
}
|
|
3169
3169
|
));
|
|
3170
|
-
var DropDownMenuContentBase =
|
|
3170
|
+
var DropDownMenuContentBase = React32.forwardRef(
|
|
3171
3171
|
({
|
|
3172
3172
|
className,
|
|
3173
3173
|
sideOffset = 4,
|
|
@@ -3200,7 +3200,7 @@ var DropDownMenuContentBase = React33.forwardRef(
|
|
|
3200
3200
|
) })
|
|
3201
3201
|
);
|
|
3202
3202
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
3203
|
-
var DropDownMenuItemBase =
|
|
3203
|
+
var DropDownMenuItemBase = React32.forwardRef(({ className, inset, rightIcon, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3204
3204
|
DropdownMenuPrimitive.Item,
|
|
3205
3205
|
{
|
|
3206
3206
|
ref,
|
|
@@ -3217,7 +3217,7 @@ var DropDownMenuItemBase = React33.forwardRef(({ className, inset, rightIcon, ch
|
|
|
3217
3217
|
}
|
|
3218
3218
|
));
|
|
3219
3219
|
DropDownMenuItemBase.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
3220
|
-
var DropDownMenuCheckboxItemBase =
|
|
3220
|
+
var DropDownMenuCheckboxItemBase = React32.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3221
3221
|
DropdownMenuPrimitive.CheckboxItem,
|
|
3222
3222
|
{
|
|
3223
3223
|
ref,
|
|
@@ -3234,7 +3234,7 @@ var DropDownMenuCheckboxItemBase = React33.forwardRef(({ className, children, ch
|
|
|
3234
3234
|
}
|
|
3235
3235
|
));
|
|
3236
3236
|
DropDownMenuCheckboxItemBase.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
3237
|
-
var DropDownMenuRadioItemBase =
|
|
3237
|
+
var DropDownMenuRadioItemBase = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3238
3238
|
DropdownMenuPrimitive.RadioItem,
|
|
3239
3239
|
{
|
|
3240
3240
|
ref,
|
|
@@ -3250,7 +3250,7 @@ var DropDownMenuRadioItemBase = React33.forwardRef(({ className, children, ...pr
|
|
|
3250
3250
|
}
|
|
3251
3251
|
));
|
|
3252
3252
|
DropDownMenuRadioItemBase.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
3253
|
-
var DropDownMenuLabelBase =
|
|
3253
|
+
var DropDownMenuLabelBase = React32.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3254
3254
|
DropdownMenuPrimitive.Label,
|
|
3255
3255
|
{
|
|
3256
3256
|
ref,
|
|
@@ -3263,7 +3263,7 @@ var DropDownMenuLabelBase = React33.forwardRef(({ className, inset, ...props },
|
|
|
3263
3263
|
}
|
|
3264
3264
|
));
|
|
3265
3265
|
DropDownMenuLabelBase.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
3266
|
-
var DropDownMenuSeparatorBase =
|
|
3266
|
+
var DropDownMenuSeparatorBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3267
3267
|
DropdownMenuPrimitive.Separator,
|
|
3268
3268
|
{
|
|
3269
3269
|
ref,
|
|
@@ -3487,7 +3487,7 @@ function ModeToggleBase({
|
|
|
3487
3487
|
)
|
|
3488
3488
|
] });
|
|
3489
3489
|
}
|
|
3490
|
-
var AvatarBase =
|
|
3490
|
+
var AvatarBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3491
3491
|
AvatarPrimitive.Root,
|
|
3492
3492
|
{
|
|
3493
3493
|
ref,
|
|
@@ -3499,7 +3499,7 @@ var AvatarBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3499
3499
|
}
|
|
3500
3500
|
));
|
|
3501
3501
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
3502
|
-
var AvatarImageBase =
|
|
3502
|
+
var AvatarImageBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3503
3503
|
AvatarPrimitive.Image,
|
|
3504
3504
|
{
|
|
3505
3505
|
ref,
|
|
@@ -3508,7 +3508,7 @@ var AvatarImageBase = React33.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3508
3508
|
}
|
|
3509
3509
|
));
|
|
3510
3510
|
AvatarImageBase.displayName = AvatarPrimitive.Image.displayName;
|
|
3511
|
-
var AvatarFallbackBase =
|
|
3511
|
+
var AvatarFallbackBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3512
3512
|
AvatarPrimitive.Fallback,
|
|
3513
3513
|
{
|
|
3514
3514
|
ref,
|
|
@@ -3574,7 +3574,7 @@ function CalendarBase({
|
|
|
3574
3574
|
);
|
|
3575
3575
|
}
|
|
3576
3576
|
CalendarBase.displayName = "Calendar";
|
|
3577
|
-
var CardBase =
|
|
3577
|
+
var CardBase = React32.forwardRef(({ className, testid: dataTestId = "card-base", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3578
3578
|
"div",
|
|
3579
3579
|
{
|
|
3580
3580
|
ref,
|
|
@@ -3587,7 +3587,7 @@ var CardBase = React33.forwardRef(({ className, testid: dataTestId = "card-base"
|
|
|
3587
3587
|
}
|
|
3588
3588
|
));
|
|
3589
3589
|
CardBase.displayName = "Card";
|
|
3590
|
-
var CardHeaderBase =
|
|
3590
|
+
var CardHeaderBase = React32.forwardRef(({ className, testid: dataTestId = "card-header", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3591
3591
|
"div",
|
|
3592
3592
|
{
|
|
3593
3593
|
ref,
|
|
@@ -3597,7 +3597,7 @@ var CardHeaderBase = React33.forwardRef(({ className, testid: dataTestId = "card
|
|
|
3597
3597
|
}
|
|
3598
3598
|
));
|
|
3599
3599
|
CardHeaderBase.displayName = "CardHeader";
|
|
3600
|
-
var CardTitleBase =
|
|
3600
|
+
var CardTitleBase = React32.forwardRef(({ className, testid: dataTestId = "card-title", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3601
3601
|
"div",
|
|
3602
3602
|
{
|
|
3603
3603
|
ref,
|
|
@@ -3607,7 +3607,7 @@ var CardTitleBase = React33.forwardRef(({ className, testid: dataTestId = "card-
|
|
|
3607
3607
|
}
|
|
3608
3608
|
));
|
|
3609
3609
|
CardTitleBase.displayName = "CardTitle";
|
|
3610
|
-
var CardDescriptionBase =
|
|
3610
|
+
var CardDescriptionBase = React32.forwardRef(({ className, testid: dataTestId = "card-description", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3611
3611
|
"div",
|
|
3612
3612
|
{
|
|
3613
3613
|
ref,
|
|
@@ -3617,7 +3617,7 @@ var CardDescriptionBase = React33.forwardRef(({ className, testid: dataTestId =
|
|
|
3617
3617
|
}
|
|
3618
3618
|
));
|
|
3619
3619
|
CardDescriptionBase.displayName = "CardDescription";
|
|
3620
|
-
var CardContentBase =
|
|
3620
|
+
var CardContentBase = React32.forwardRef(({ className, testid: dataTestId = "card-content", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
3623
3623
|
ref,
|
|
@@ -3627,7 +3627,7 @@ var CardContentBase = React33.forwardRef(({ className, testid: dataTestId = "car
|
|
|
3627
3627
|
}
|
|
3628
3628
|
));
|
|
3629
3629
|
CardContentBase.displayName = "CardContent";
|
|
3630
|
-
var CardFooterBase =
|
|
3630
|
+
var CardFooterBase = React32.forwardRef(({ className, testid: dataTestId = "card-footer", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3631
3631
|
"div",
|
|
3632
3632
|
{
|
|
3633
3633
|
ref,
|
|
@@ -3700,7 +3700,7 @@ var createImagePreview = (file) => {
|
|
|
3700
3700
|
reader.readAsDataURL(file);
|
|
3701
3701
|
});
|
|
3702
3702
|
};
|
|
3703
|
-
var FileUploader =
|
|
3703
|
+
var FileUploader = React32.forwardRef(
|
|
3704
3704
|
({
|
|
3705
3705
|
className,
|
|
3706
3706
|
accept,
|
|
@@ -3716,15 +3716,15 @@ var FileUploader = React33.forwardRef(
|
|
|
3716
3716
|
animate: animate2 = true,
|
|
3717
3717
|
...props
|
|
3718
3718
|
}, ref) => {
|
|
3719
|
-
const [isDragging, setIsDragging] =
|
|
3720
|
-
const [files, setFiles] =
|
|
3721
|
-
const inputRef =
|
|
3722
|
-
const dragCounterRef =
|
|
3719
|
+
const [isDragging, setIsDragging] = React32.useState(false);
|
|
3720
|
+
const [files, setFiles] = React32.useState(value);
|
|
3721
|
+
const inputRef = React32.useRef(null);
|
|
3722
|
+
const dragCounterRef = React32.useRef(0);
|
|
3723
3723
|
const multiple = maxFiles > 1;
|
|
3724
|
-
|
|
3724
|
+
React32.useEffect(() => {
|
|
3725
3725
|
setFiles(value);
|
|
3726
3726
|
}, [value]);
|
|
3727
|
-
|
|
3727
|
+
React32.useEffect(() => {
|
|
3728
3728
|
return () => {
|
|
3729
3729
|
files.forEach((file) => {
|
|
3730
3730
|
if (file.preview) {
|
|
@@ -4072,12 +4072,12 @@ var FileUploader = React33.forwardRef(
|
|
|
4072
4072
|
}
|
|
4073
4073
|
);
|
|
4074
4074
|
FileUploader.displayName = "FileUploader";
|
|
4075
|
-
var CheckboxBase =
|
|
4075
|
+
var CheckboxBase = React32.forwardRef(({ className, testid: dataTestId = "checkbox-base", checked: checkedProp, defaultChecked, onCheckedChange, ...props }, ref) => {
|
|
4076
4076
|
const isControlled = checkedProp !== void 0;
|
|
4077
|
-
const [checkedState, setCheckedState] =
|
|
4077
|
+
const [checkedState, setCheckedState] = React32.useState(
|
|
4078
4078
|
isControlled ? checkedProp : defaultChecked ?? false
|
|
4079
4079
|
);
|
|
4080
|
-
|
|
4080
|
+
React32.useEffect(() => {
|
|
4081
4081
|
if (isControlled) setCheckedState(checkedProp);
|
|
4082
4082
|
}, [checkedProp, isControlled]);
|
|
4083
4083
|
const handleCheckedChange = (next) => {
|
|
@@ -4117,11 +4117,11 @@ var CheckboxBase = React33.forwardRef(({ className, testid: dataTestId = "checkb
|
|
|
4117
4117
|
);
|
|
4118
4118
|
});
|
|
4119
4119
|
CheckboxBase.displayName = CheckboxPrimitive.Root.displayName;
|
|
4120
|
-
var CollapsibleBase =
|
|
4120
|
+
var CollapsibleBase = React32.forwardRef(({ ...props }, ref) => {
|
|
4121
4121
|
return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { ref, "data-slot": "collapsible", ...props });
|
|
4122
4122
|
});
|
|
4123
4123
|
CollapsibleBase.displayName = CollapsiblePrimitive.Root.displayName;
|
|
4124
|
-
var CollapsibleTriggerBase =
|
|
4124
|
+
var CollapsibleTriggerBase = React32.forwardRef(({ className, children, leftIcon, showCaret = true, ...props }, ref) => {
|
|
4125
4125
|
return /* @__PURE__ */ jsxs(
|
|
4126
4126
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
4127
4127
|
{
|
|
@@ -4143,7 +4143,7 @@ var CollapsibleTriggerBase = React33.forwardRef(({ className, children, leftIcon
|
|
|
4143
4143
|
);
|
|
4144
4144
|
});
|
|
4145
4145
|
CollapsibleTriggerBase.displayName = CollapsiblePrimitive.CollapsibleTrigger.displayName;
|
|
4146
|
-
var CollapsibleContentBase =
|
|
4146
|
+
var CollapsibleContentBase = React32.forwardRef(({ className, children, ...props }, ref) => {
|
|
4147
4147
|
return /* @__PURE__ */ jsx(
|
|
4148
4148
|
CollapsiblePrimitive.CollapsibleContent,
|
|
4149
4149
|
{
|
|
@@ -4165,7 +4165,7 @@ function HoverCardBase(props) {
|
|
|
4165
4165
|
function HoverCardTriggerBase(props) {
|
|
4166
4166
|
return /* @__PURE__ */ jsx(HoverCardPrimitive.Trigger, { ...props });
|
|
4167
4167
|
}
|
|
4168
|
-
var HoverCardContentBase =
|
|
4168
|
+
var HoverCardContentBase = React32.forwardRef(
|
|
4169
4169
|
({ className, align = "center", sideOffset = 6, children, ...props }, ref) => {
|
|
4170
4170
|
return /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
4171
4171
|
HoverCardPrimitive.Content,
|
|
@@ -4242,7 +4242,7 @@ function InputOTPSlotBase({
|
|
|
4242
4242
|
className,
|
|
4243
4243
|
...props
|
|
4244
4244
|
}) {
|
|
4245
|
-
const inputOTPContext =
|
|
4245
|
+
const inputOTPContext = React32.useContext(OTPInputContext);
|
|
4246
4246
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
4247
4247
|
return /* @__PURE__ */ jsxs(
|
|
4248
4248
|
"div",
|
|
@@ -4264,7 +4264,7 @@ function InputOTPSlotBase({
|
|
|
4264
4264
|
function InputOTPSeparatorBase({ ...props }) {
|
|
4265
4265
|
return /* @__PURE__ */ jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx(MinusIcon, {}) });
|
|
4266
4266
|
}
|
|
4267
|
-
var SlideBase =
|
|
4267
|
+
var SlideBase = React32.forwardRef(
|
|
4268
4268
|
({
|
|
4269
4269
|
className,
|
|
4270
4270
|
orientation = "horizontal",
|
|
@@ -4342,7 +4342,7 @@ var SlideBase = React33.forwardRef(
|
|
|
4342
4342
|
}
|
|
4343
4343
|
);
|
|
4344
4344
|
SlideBase.displayName = "SlideBase";
|
|
4345
|
-
var EditButton =
|
|
4345
|
+
var EditButton = React32.forwardRef(
|
|
4346
4346
|
({
|
|
4347
4347
|
disabled,
|
|
4348
4348
|
onClick,
|
|
@@ -4382,7 +4382,7 @@ var EditButton = React33.forwardRef(
|
|
|
4382
4382
|
)
|
|
4383
4383
|
);
|
|
4384
4384
|
EditButton.displayName = "EditButton";
|
|
4385
|
-
var ChangeButton =
|
|
4385
|
+
var ChangeButton = React32.forwardRef(
|
|
4386
4386
|
({
|
|
4387
4387
|
disabled,
|
|
4388
4388
|
onClick,
|
|
@@ -4422,7 +4422,7 @@ var ChangeButton = React33.forwardRef(
|
|
|
4422
4422
|
)
|
|
4423
4423
|
);
|
|
4424
4424
|
ChangeButton.displayName = "ChangeButton";
|
|
4425
|
-
var SaveButton =
|
|
4425
|
+
var SaveButton = React32.forwardRef(
|
|
4426
4426
|
({
|
|
4427
4427
|
disabled,
|
|
4428
4428
|
onClick,
|
|
@@ -4462,7 +4462,7 @@ var SaveButton = React33.forwardRef(
|
|
|
4462
4462
|
)
|
|
4463
4463
|
);
|
|
4464
4464
|
SaveButton.displayName = "SaveButton";
|
|
4465
|
-
var AddButton =
|
|
4465
|
+
var AddButton = React32.forwardRef(
|
|
4466
4466
|
({
|
|
4467
4467
|
disabled,
|
|
4468
4468
|
onClick,
|
|
@@ -4502,7 +4502,7 @@ var AddButton = React33.forwardRef(
|
|
|
4502
4502
|
)
|
|
4503
4503
|
);
|
|
4504
4504
|
AddButton.displayName = "AddButton";
|
|
4505
|
-
var CloseButton =
|
|
4505
|
+
var CloseButton = React32.forwardRef(
|
|
4506
4506
|
({
|
|
4507
4507
|
disabled,
|
|
4508
4508
|
onClick,
|
|
@@ -5040,7 +5040,7 @@ var LockButton = ({
|
|
|
5040
5040
|
}
|
|
5041
5041
|
);
|
|
5042
5042
|
var UnlockButton = (props) => /* @__PURE__ */ jsx(LockButton, { isLocked: false, testid: "button-unlock", ...props });
|
|
5043
|
-
var SwitchBase =
|
|
5043
|
+
var SwitchBase = React32.forwardRef(({ className, testid: dataTestId = "switch-base", ...props }, ref) => {
|
|
5044
5044
|
return /* @__PURE__ */ jsx(
|
|
5045
5045
|
SwitchPrimitives.Root,
|
|
5046
5046
|
{
|
|
@@ -5067,14 +5067,14 @@ var SwitchBase = React33.forwardRef(({ className, testid: dataTestId = "switch-b
|
|
|
5067
5067
|
);
|
|
5068
5068
|
});
|
|
5069
5069
|
SwitchBase.displayName = SwitchPrimitives.Root.displayName;
|
|
5070
|
-
var TextAreaBase =
|
|
5070
|
+
var TextAreaBase = React32.forwardRef(
|
|
5071
5071
|
({ className, hideClear = false, onClear, ...props }, ref) => {
|
|
5072
|
-
const [isFocused, setIsFocused] =
|
|
5073
|
-
const [hasContent, setHasContent] =
|
|
5072
|
+
const [isFocused, setIsFocused] = React32.useState(false);
|
|
5073
|
+
const [hasContent, setHasContent] = React32.useState(
|
|
5074
5074
|
!!props.value || !!props.defaultValue
|
|
5075
5075
|
);
|
|
5076
|
-
const [showConfirmTooltip, setShowConfirmTooltip] =
|
|
5077
|
-
const textareaRef =
|
|
5076
|
+
const [showConfirmTooltip, setShowConfirmTooltip] = React32.useState(false);
|
|
5077
|
+
const textareaRef = React32.useRef(null);
|
|
5078
5078
|
const handleFocus = (e) => {
|
|
5079
5079
|
setIsFocused(true);
|
|
5080
5080
|
props.onFocus?.(e);
|
|
@@ -5110,8 +5110,8 @@ var TextAreaBase = React33.forwardRef(
|
|
|
5110
5110
|
const handleCancelClear = () => {
|
|
5111
5111
|
setShowConfirmTooltip(false);
|
|
5112
5112
|
};
|
|
5113
|
-
|
|
5114
|
-
|
|
5113
|
+
React32.useImperativeHandle(ref, () => textareaRef.current);
|
|
5114
|
+
React32.useEffect(() => {
|
|
5115
5115
|
setHasContent(!!props.value || !!props.defaultValue);
|
|
5116
5116
|
}, [props.value, props.defaultValue]);
|
|
5117
5117
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
@@ -5236,7 +5236,7 @@ var TextAreaBase = React33.forwardRef(
|
|
|
5236
5236
|
}
|
|
5237
5237
|
);
|
|
5238
5238
|
TextAreaBase.displayName = "TextAreaBase";
|
|
5239
|
-
var ScrollAreaBase =
|
|
5239
|
+
var ScrollAreaBase = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
5240
5240
|
ScrollAreaPrimitive.Root,
|
|
5241
5241
|
{
|
|
5242
5242
|
ref,
|
|
@@ -5250,7 +5250,7 @@ var ScrollAreaBase = React33.forwardRef(({ className, children, ...props }, ref)
|
|
|
5250
5250
|
}
|
|
5251
5251
|
));
|
|
5252
5252
|
ScrollAreaBase.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
5253
|
-
var ScrollBarBase =
|
|
5253
|
+
var ScrollBarBase = React32.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5254
5254
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
5255
5255
|
{
|
|
5256
5256
|
ref,
|
|
@@ -5266,7 +5266,7 @@ var ScrollBarBase = React33.forwardRef(({ className, orientation = "vertical", .
|
|
|
5266
5266
|
}
|
|
5267
5267
|
));
|
|
5268
5268
|
ScrollBarBase.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5269
|
-
var SeparatorBase =
|
|
5269
|
+
var SeparatorBase = React32.forwardRef(
|
|
5270
5270
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
5271
5271
|
const isHorizontal = orientation === "horizontal";
|
|
5272
5272
|
return /* @__PURE__ */ jsx(
|
|
@@ -5298,7 +5298,7 @@ var SeparatorBase = React33.forwardRef(
|
|
|
5298
5298
|
}
|
|
5299
5299
|
);
|
|
5300
5300
|
SeparatorBase.displayName = SeparatorPrimitive.Root.displayName;
|
|
5301
|
-
var TableBase =
|
|
5301
|
+
var TableBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
5302
5302
|
"table",
|
|
5303
5303
|
{
|
|
5304
5304
|
ref,
|
|
@@ -5307,9 +5307,9 @@ var TableBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
5307
5307
|
}
|
|
5308
5308
|
) }));
|
|
5309
5309
|
TableBase.displayName = "TableBase";
|
|
5310
|
-
var TableHeaderBase =
|
|
5310
|
+
var TableHeaderBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
5311
5311
|
TableHeaderBase.displayName = "TableHeaderBase";
|
|
5312
|
-
var TableBodyBase =
|
|
5312
|
+
var TableBodyBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5313
5313
|
"tbody",
|
|
5314
5314
|
{
|
|
5315
5315
|
ref,
|
|
@@ -5318,7 +5318,7 @@ var TableBodyBase = React33.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
5318
5318
|
}
|
|
5319
5319
|
));
|
|
5320
5320
|
TableBodyBase.displayName = "TableBodyBase";
|
|
5321
|
-
var TableFooterBase =
|
|
5321
|
+
var TableFooterBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5322
5322
|
"tfoot",
|
|
5323
5323
|
{
|
|
5324
5324
|
ref,
|
|
@@ -5330,7 +5330,7 @@ var TableFooterBase = React33.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
5330
5330
|
}
|
|
5331
5331
|
));
|
|
5332
5332
|
TableFooterBase.displayName = "TableFooterBase";
|
|
5333
|
-
var TableRowBase =
|
|
5333
|
+
var TableRowBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5334
5334
|
"tr",
|
|
5335
5335
|
{
|
|
5336
5336
|
ref,
|
|
@@ -5342,7 +5342,7 @@ var TableRowBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5342
5342
|
}
|
|
5343
5343
|
));
|
|
5344
5344
|
TableRowBase.displayName = "TableRowBase";
|
|
5345
|
-
var TableHeadBase =
|
|
5345
|
+
var TableHeadBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5346
5346
|
"th",
|
|
5347
5347
|
{
|
|
5348
5348
|
ref,
|
|
@@ -5354,7 +5354,7 @@ var TableHeadBase = React33.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
5354
5354
|
}
|
|
5355
5355
|
));
|
|
5356
5356
|
TableHeadBase.displayName = "TableHeadBase";
|
|
5357
|
-
var TableCellBase =
|
|
5357
|
+
var TableCellBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5358
5358
|
"td",
|
|
5359
5359
|
{
|
|
5360
5360
|
ref,
|
|
@@ -5366,7 +5366,7 @@ var TableCellBase = React33.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
5366
5366
|
}
|
|
5367
5367
|
));
|
|
5368
5368
|
TableCellBase.displayName = "TableCellBase";
|
|
5369
|
-
var TableCaptionBase =
|
|
5369
|
+
var TableCaptionBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5370
5370
|
"caption",
|
|
5371
5371
|
{
|
|
5372
5372
|
ref,
|
|
@@ -5375,7 +5375,7 @@ var TableCaptionBase = React33.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
5375
5375
|
}
|
|
5376
5376
|
));
|
|
5377
5377
|
TableCaptionBase.displayName = "TableCaptionBase";
|
|
5378
|
-
var TabsBase =
|
|
5378
|
+
var TabsBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5379
5379
|
TabsPrimitive.Root,
|
|
5380
5380
|
{
|
|
5381
5381
|
ref,
|
|
@@ -5384,7 +5384,7 @@ var TabsBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
5384
5384
|
}
|
|
5385
5385
|
));
|
|
5386
5386
|
TabsBase.displayName = TabsPrimitive.Root.displayName;
|
|
5387
|
-
var TabsListBase =
|
|
5387
|
+
var TabsListBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5388
5388
|
TabsPrimitive.List,
|
|
5389
5389
|
{
|
|
5390
5390
|
ref,
|
|
@@ -5404,7 +5404,7 @@ var TabsListBase = React33.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5404
5404
|
}
|
|
5405
5405
|
));
|
|
5406
5406
|
TabsListBase.displayName = TabsPrimitive.List.displayName;
|
|
5407
|
-
var TabsTriggerBase =
|
|
5407
|
+
var TabsTriggerBase = React32.forwardRef(({ className, animation = "default", ...props }, ref) => {
|
|
5408
5408
|
const base = cn(
|
|
5409
5409
|
"relative inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium",
|
|
5410
5410
|
"text-muted-foreground hover:text-foreground",
|
|
@@ -5424,7 +5424,7 @@ var TabsTriggerBase = React33.forwardRef(({ className, animation = "default", ..
|
|
|
5424
5424
|
}
|
|
5425
5425
|
);
|
|
5426
5426
|
});
|
|
5427
|
-
var TabsContentBase =
|
|
5427
|
+
var TabsContentBase = React32.forwardRef(({ className, animation = "default", ...props }, ref) => {
|
|
5428
5428
|
const animationClasses = animation === "none" ? "" : animation === "slide" ? "animate-in slide-in-from-left-2 duration-500 ease-in-out" : "animate-in fade-in-0 duration-500 ease-in-out";
|
|
5429
5429
|
return /* @__PURE__ */ jsx(
|
|
5430
5430
|
TabsPrimitive.Content,
|
|
@@ -5676,7 +5676,7 @@ var SheetBase = DialogPrimitive.Root;
|
|
|
5676
5676
|
var SheetTriggerBase = DialogPrimitive.Trigger;
|
|
5677
5677
|
var SheetCloseBase = DialogPrimitive.Close;
|
|
5678
5678
|
var SheetPortalBase = DialogPrimitive.Portal;
|
|
5679
|
-
var SheetOverlayBase =
|
|
5679
|
+
var SheetOverlayBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5680
5680
|
DialogPrimitive.Overlay,
|
|
5681
5681
|
{
|
|
5682
5682
|
className: cn(
|
|
@@ -5704,7 +5704,7 @@ var sheetVariants = cva(
|
|
|
5704
5704
|
}
|
|
5705
5705
|
}
|
|
5706
5706
|
);
|
|
5707
|
-
var SheetContentBase =
|
|
5707
|
+
var SheetContentBase = React32.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortalBase, { children: [
|
|
5708
5708
|
/* @__PURE__ */ jsx(SheetOverlayBase, {}),
|
|
5709
5709
|
/* @__PURE__ */ jsxs(
|
|
5710
5710
|
DialogPrimitive.Content,
|
|
@@ -5751,7 +5751,7 @@ var SheetFooterBase = ({
|
|
|
5751
5751
|
}
|
|
5752
5752
|
);
|
|
5753
5753
|
SheetFooterBase.displayName = "SheetFooterBase";
|
|
5754
|
-
var SheetTitleBase =
|
|
5754
|
+
var SheetTitleBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5755
5755
|
DialogPrimitive.Title,
|
|
5756
5756
|
{
|
|
5757
5757
|
ref,
|
|
@@ -5760,7 +5760,7 @@ var SheetTitleBase = React33.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
5760
5760
|
}
|
|
5761
5761
|
));
|
|
5762
5762
|
SheetTitleBase.displayName = DialogPrimitive.Title.displayName;
|
|
5763
|
-
var SheetDescriptionBase =
|
|
5763
|
+
var SheetDescriptionBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5764
5764
|
DialogPrimitive.Description,
|
|
5765
5765
|
{
|
|
5766
5766
|
ref,
|
|
@@ -5775,9 +5775,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
5775
5775
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5776
5776
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
5777
5777
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
5778
|
-
var SidebarContext =
|
|
5778
|
+
var SidebarContext = React32.createContext(null);
|
|
5779
5779
|
function UseSideBarBase() {
|
|
5780
|
-
const context =
|
|
5780
|
+
const context = React32.useContext(SidebarContext);
|
|
5781
5781
|
if (!context) {
|
|
5782
5782
|
throw new Error(
|
|
5783
5783
|
"UseSideBarBase must be used within a SidebarProviderBase."
|
|
@@ -5785,7 +5785,7 @@ function UseSideBarBase() {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
return context;
|
|
5787
5787
|
}
|
|
5788
|
-
var SidebarProviderBase =
|
|
5788
|
+
var SidebarProviderBase = React32.forwardRef(
|
|
5789
5789
|
({
|
|
5790
5790
|
defaultOpen = true,
|
|
5791
5791
|
open: openProp,
|
|
@@ -5796,10 +5796,10 @@ var SidebarProviderBase = React33.forwardRef(
|
|
|
5796
5796
|
...props
|
|
5797
5797
|
}, ref) => {
|
|
5798
5798
|
const isMobile = useIsMobile();
|
|
5799
|
-
const [openMobile, setOpenMobile] =
|
|
5800
|
-
const [_open, _setOpen] =
|
|
5799
|
+
const [openMobile, setOpenMobile] = React32.useState(false);
|
|
5800
|
+
const [_open, _setOpen] = React32.useState(defaultOpen);
|
|
5801
5801
|
const open = openProp ?? _open;
|
|
5802
|
-
const setOpen =
|
|
5802
|
+
const setOpen = React32.useCallback(
|
|
5803
5803
|
(value) => {
|
|
5804
5804
|
const openState = typeof value === "function" ? value(open) : value;
|
|
5805
5805
|
if (setOpenProp) {
|
|
@@ -5811,10 +5811,10 @@ var SidebarProviderBase = React33.forwardRef(
|
|
|
5811
5811
|
},
|
|
5812
5812
|
[setOpenProp, open]
|
|
5813
5813
|
);
|
|
5814
|
-
const toggleSidebar =
|
|
5814
|
+
const toggleSidebar = React32.useCallback(() => {
|
|
5815
5815
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
5816
5816
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
5817
|
-
|
|
5817
|
+
React32.useEffect(() => {
|
|
5818
5818
|
const handleKeyDown = (event) => {
|
|
5819
5819
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
5820
5820
|
event.preventDefault();
|
|
@@ -5825,7 +5825,7 @@ var SidebarProviderBase = React33.forwardRef(
|
|
|
5825
5825
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
5826
5826
|
}, [toggleSidebar]);
|
|
5827
5827
|
const state = open ? "expanded" : "collapsed";
|
|
5828
|
-
const contextValue =
|
|
5828
|
+
const contextValue = React32.useMemo(
|
|
5829
5829
|
() => ({
|
|
5830
5830
|
state,
|
|
5831
5831
|
open,
|
|
@@ -5857,7 +5857,7 @@ var SidebarProviderBase = React33.forwardRef(
|
|
|
5857
5857
|
}
|
|
5858
5858
|
);
|
|
5859
5859
|
SidebarProviderBase.displayName = "SidebarProviderBase";
|
|
5860
|
-
var SidebarBase =
|
|
5860
|
+
var SidebarBase = React32.forwardRef(
|
|
5861
5861
|
({
|
|
5862
5862
|
side = "left",
|
|
5863
5863
|
variant = "sidebar",
|
|
@@ -5944,7 +5944,7 @@ var SidebarBase = React33.forwardRef(
|
|
|
5944
5944
|
}
|
|
5945
5945
|
);
|
|
5946
5946
|
SidebarBase.displayName = "SidebarBase";
|
|
5947
|
-
var SidebarTriggerBase =
|
|
5947
|
+
var SidebarTriggerBase = React32.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
5948
5948
|
const { toggleSidebar } = UseSideBarBase();
|
|
5949
5949
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
5950
5950
|
ButtonBase,
|
|
@@ -5967,7 +5967,7 @@ var SidebarTriggerBase = React33.forwardRef(({ className, onClick, ...props }, r
|
|
|
5967
5967
|
) });
|
|
5968
5968
|
});
|
|
5969
5969
|
SidebarTriggerBase.displayName = "SidebarTriggerBase";
|
|
5970
|
-
var SidebarRailBase =
|
|
5970
|
+
var SidebarRailBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
5971
5971
|
const { toggleSidebar } = UseSideBarBase();
|
|
5972
5972
|
return /* @__PURE__ */ jsx(
|
|
5973
5973
|
"button",
|
|
@@ -5992,7 +5992,7 @@ var SidebarRailBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
5992
5992
|
);
|
|
5993
5993
|
});
|
|
5994
5994
|
SidebarRailBase.displayName = "SidebarRailBase";
|
|
5995
|
-
var SidebarInsetBase =
|
|
5995
|
+
var SidebarInsetBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
5996
5996
|
return /* @__PURE__ */ jsx(
|
|
5997
5997
|
"main",
|
|
5998
5998
|
{
|
|
@@ -6007,7 +6007,7 @@ var SidebarInsetBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
6007
6007
|
);
|
|
6008
6008
|
});
|
|
6009
6009
|
SidebarInsetBase.displayName = "SidebarInsetBase";
|
|
6010
|
-
var SidebarInputBase =
|
|
6010
|
+
var SidebarInputBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
6011
6011
|
return /* @__PURE__ */ jsx(
|
|
6012
6012
|
InputBase,
|
|
6013
6013
|
{
|
|
@@ -6022,7 +6022,7 @@ var SidebarInputBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
6022
6022
|
);
|
|
6023
6023
|
});
|
|
6024
6024
|
SidebarInputBase.displayName = "SidebarInputBase";
|
|
6025
|
-
var SidebarHeaderBase =
|
|
6025
|
+
var SidebarHeaderBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
6026
6026
|
return /* @__PURE__ */ jsx(
|
|
6027
6027
|
"div",
|
|
6028
6028
|
{
|
|
@@ -6034,7 +6034,7 @@ var SidebarHeaderBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
6034
6034
|
);
|
|
6035
6035
|
});
|
|
6036
6036
|
SidebarHeaderBase.displayName = "SidebarHeaderBase";
|
|
6037
|
-
var SidebarFooterBase =
|
|
6037
|
+
var SidebarFooterBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
6038
6038
|
return /* @__PURE__ */ jsx(
|
|
6039
6039
|
"div",
|
|
6040
6040
|
{
|
|
@@ -6046,7 +6046,7 @@ var SidebarFooterBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
6046
6046
|
);
|
|
6047
6047
|
});
|
|
6048
6048
|
SidebarFooterBase.displayName = "SidebarFooterBase";
|
|
6049
|
-
var SidebarSeparatorBase =
|
|
6049
|
+
var SidebarSeparatorBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
6050
6050
|
return /* @__PURE__ */ jsx(
|
|
6051
6051
|
SeparatorBase,
|
|
6052
6052
|
{
|
|
@@ -6058,7 +6058,7 @@ var SidebarSeparatorBase = React33.forwardRef(({ className, ...props }, ref) =>
|
|
|
6058
6058
|
);
|
|
6059
6059
|
});
|
|
6060
6060
|
SidebarSeparatorBase.displayName = "SidebarSeparatorBase";
|
|
6061
|
-
var SidebarContentBase =
|
|
6061
|
+
var SidebarContentBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
6062
6062
|
return /* @__PURE__ */ jsx(
|
|
6063
6063
|
"div",
|
|
6064
6064
|
{
|
|
@@ -6073,7 +6073,7 @@ var SidebarContentBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
6073
6073
|
);
|
|
6074
6074
|
});
|
|
6075
6075
|
SidebarContentBase.displayName = "SidebarContentBase";
|
|
6076
|
-
var SidebarGroupBase =
|
|
6076
|
+
var SidebarGroupBase = React32.forwardRef(({ className, ...props }, ref) => {
|
|
6077
6077
|
return /* @__PURE__ */ jsx(
|
|
6078
6078
|
"div",
|
|
6079
6079
|
{
|
|
@@ -6085,7 +6085,7 @@ var SidebarGroupBase = React33.forwardRef(({ className, ...props }, ref) => {
|
|
|
6085
6085
|
);
|
|
6086
6086
|
});
|
|
6087
6087
|
SidebarGroupBase.displayName = "SidebarGroupBase";
|
|
6088
|
-
var SidebarGroupLabelBase =
|
|
6088
|
+
var SidebarGroupLabelBase = React32.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
6089
6089
|
const Comp = asChild ? Slot : "div";
|
|
6090
6090
|
return /* @__PURE__ */ jsx(
|
|
6091
6091
|
Comp,
|
|
@@ -6102,7 +6102,7 @@ var SidebarGroupLabelBase = React33.forwardRef(({ className, asChild = false, ..
|
|
|
6102
6102
|
);
|
|
6103
6103
|
});
|
|
6104
6104
|
SidebarGroupLabelBase.displayName = "SidebarGroupLabelBase";
|
|
6105
|
-
var SidebarGroupActionBase =
|
|
6105
|
+
var SidebarGroupActionBase = React32.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
6106
6106
|
const Comp = asChild ? Slot : "button";
|
|
6107
6107
|
return /* @__PURE__ */ jsx(
|
|
6108
6108
|
Comp,
|
|
@@ -6121,7 +6121,7 @@ var SidebarGroupActionBase = React33.forwardRef(({ className, asChild = false, .
|
|
|
6121
6121
|
);
|
|
6122
6122
|
});
|
|
6123
6123
|
SidebarGroupActionBase.displayName = "SidebarGroupActionBase";
|
|
6124
|
-
var SidebarGroupContentBase =
|
|
6124
|
+
var SidebarGroupContentBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6125
6125
|
"div",
|
|
6126
6126
|
{
|
|
6127
6127
|
ref,
|
|
@@ -6131,7 +6131,7 @@ var SidebarGroupContentBase = React33.forwardRef(({ className, ...props }, ref)
|
|
|
6131
6131
|
}
|
|
6132
6132
|
));
|
|
6133
6133
|
SidebarGroupContentBase.displayName = "SidebarGroupContentBase";
|
|
6134
|
-
var SidebarMenuBase =
|
|
6134
|
+
var SidebarMenuBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6135
6135
|
"ul",
|
|
6136
6136
|
{
|
|
6137
6137
|
ref,
|
|
@@ -6141,7 +6141,7 @@ var SidebarMenuBase = React33.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
6141
6141
|
}
|
|
6142
6142
|
));
|
|
6143
6143
|
SidebarMenuBase.displayName = "SidebarMenuBase";
|
|
6144
|
-
var SidebarMenuItemBase =
|
|
6144
|
+
var SidebarMenuItemBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6145
6145
|
"li",
|
|
6146
6146
|
{
|
|
6147
6147
|
ref,
|
|
@@ -6171,7 +6171,7 @@ var sidebarMenuButtonVariants = cva(
|
|
|
6171
6171
|
}
|
|
6172
6172
|
}
|
|
6173
6173
|
);
|
|
6174
|
-
var SidebarMenuButtonBase =
|
|
6174
|
+
var SidebarMenuButtonBase = React32.forwardRef(
|
|
6175
6175
|
({
|
|
6176
6176
|
asChild = false,
|
|
6177
6177
|
isActive = false,
|
|
@@ -6217,7 +6217,7 @@ var SidebarMenuButtonBase = React33.forwardRef(
|
|
|
6217
6217
|
}
|
|
6218
6218
|
);
|
|
6219
6219
|
SidebarMenuButtonBase.displayName = "SidebarMenuButtonBase";
|
|
6220
|
-
var SidebarMenuActionBase =
|
|
6220
|
+
var SidebarMenuActionBase = React32.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
6221
6221
|
const Comp = asChild ? Slot : "button";
|
|
6222
6222
|
return /* @__PURE__ */ jsx(
|
|
6223
6223
|
Comp,
|
|
@@ -6240,7 +6240,7 @@ var SidebarMenuActionBase = React33.forwardRef(({ className, asChild = false, sh
|
|
|
6240
6240
|
);
|
|
6241
6241
|
});
|
|
6242
6242
|
SidebarMenuActionBase.displayName = "SidebarMenuActionBase";
|
|
6243
|
-
var SidebarMenuBadgeBase =
|
|
6243
|
+
var SidebarMenuBadgeBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6244
6244
|
"div",
|
|
6245
6245
|
{
|
|
6246
6246
|
ref,
|
|
@@ -6258,8 +6258,8 @@ var SidebarMenuBadgeBase = React33.forwardRef(({ className, ...props }, ref) =>
|
|
|
6258
6258
|
}
|
|
6259
6259
|
));
|
|
6260
6260
|
SidebarMenuBadgeBase.displayName = "SidebarMenuBadgeBase";
|
|
6261
|
-
var SidebarMenuSkeletonBase =
|
|
6262
|
-
const width =
|
|
6261
|
+
var SidebarMenuSkeletonBase = React32.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
6262
|
+
const width = React32.useMemo(() => {
|
|
6263
6263
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
6264
6264
|
}, []);
|
|
6265
6265
|
return /* @__PURE__ */ jsxs(
|
|
@@ -6292,7 +6292,7 @@ var SidebarMenuSkeletonBase = React33.forwardRef(({ className, showIcon = false,
|
|
|
6292
6292
|
);
|
|
6293
6293
|
});
|
|
6294
6294
|
SidebarMenuSkeletonBase.displayName = "SidebarMenuSkeletonBase";
|
|
6295
|
-
var SidebarMenuSubBase =
|
|
6295
|
+
var SidebarMenuSubBase = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6296
6296
|
"ul",
|
|
6297
6297
|
{
|
|
6298
6298
|
ref,
|
|
@@ -6306,9 +6306,9 @@ var SidebarMenuSubBase = React33.forwardRef(({ className, ...props }, ref) => /*
|
|
|
6306
6306
|
}
|
|
6307
6307
|
));
|
|
6308
6308
|
SidebarMenuSubBase.displayName = "SidebarMenuSubBase";
|
|
6309
|
-
var SidebarMenuSubItemBase =
|
|
6309
|
+
var SidebarMenuSubItemBase = React32.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
|
|
6310
6310
|
SidebarMenuSubItemBase.displayName = "SidebarMenuSubItemBase";
|
|
6311
|
-
var SidebarMenuSubButtonBase =
|
|
6311
|
+
var SidebarMenuSubButtonBase = React32.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
6312
6312
|
const Comp = asChild ? Slot : "a";
|
|
6313
6313
|
return /* @__PURE__ */ jsx(
|
|
6314
6314
|
Comp,
|
|
@@ -6853,11 +6853,11 @@ var CodeBlock = ({
|
|
|
6853
6853
|
breadcrumb = [],
|
|
6854
6854
|
showStats = true
|
|
6855
6855
|
}) => {
|
|
6856
|
-
const [copied, setCopied] =
|
|
6857
|
-
const [activeTab, setActiveTab] =
|
|
6858
|
-
const [isExpanded, setIsExpanded] =
|
|
6856
|
+
const [copied, setCopied] = React32__default.useState(false);
|
|
6857
|
+
const [activeTab, setActiveTab] = React32__default.useState(0);
|
|
6858
|
+
const [isExpanded, setIsExpanded] = React32__default.useState(false);
|
|
6859
6859
|
const tabsExist = tabs.length > 0;
|
|
6860
|
-
const cssVars =
|
|
6860
|
+
const cssVars = React32__default.useMemo(
|
|
6861
6861
|
() => ({
|
|
6862
6862
|
container: {
|
|
6863
6863
|
backgroundColor: "hsl(var(--card))",
|
|
@@ -6953,7 +6953,7 @@ var CodeBlock = ({
|
|
|
6953
6953
|
] }),
|
|
6954
6954
|
breadcrumb.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex items-center min-w-0", children: [
|
|
6955
6955
|
/* @__PURE__ */ jsx(FolderIcon, { size: "1em", style: cssVars.icon }),
|
|
6956
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center min-w-0 ml-2", children: breadcrumb.map((crumb, index) => /* @__PURE__ */ jsxs(
|
|
6956
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center min-w-0 ml-2", children: breadcrumb.map((crumb, index) => /* @__PURE__ */ jsxs(React32__default.Fragment, { children: [
|
|
6957
6957
|
/* @__PURE__ */ jsx(
|
|
6958
6958
|
"span",
|
|
6959
6959
|
{
|
|
@@ -8100,9 +8100,9 @@ function RangePicker({
|
|
|
8100
8100
|
disabled,
|
|
8101
8101
|
className
|
|
8102
8102
|
}) {
|
|
8103
|
-
const [open, setOpen] =
|
|
8104
|
-
const [range, setRange] =
|
|
8105
|
-
|
|
8103
|
+
const [open, setOpen] = React32.useState(false);
|
|
8104
|
+
const [range, setRange] = React32.useState(value);
|
|
8105
|
+
React32.useEffect(() => {
|
|
8106
8106
|
setRange(value);
|
|
8107
8107
|
}, [value]);
|
|
8108
8108
|
const handleSelect = (selected) => {
|
|
@@ -8336,7 +8336,7 @@ function RangePicker({
|
|
|
8336
8336
|
] });
|
|
8337
8337
|
}
|
|
8338
8338
|
RangePicker.displayName = "RangePicker";
|
|
8339
|
-
var TimePickerInput =
|
|
8339
|
+
var TimePickerInput = React32__default.forwardRef(
|
|
8340
8340
|
({
|
|
8341
8341
|
className,
|
|
8342
8342
|
type = "tel",
|
|
@@ -8355,10 +8355,10 @@ var TimePickerInput = React33__default.forwardRef(
|
|
|
8355
8355
|
label,
|
|
8356
8356
|
...props
|
|
8357
8357
|
}, ref) => {
|
|
8358
|
-
const [flag, setFlag] =
|
|
8359
|
-
const [prevIntKey, setPrevIntKey] =
|
|
8360
|
-
const [isFocused, setIsFocused] =
|
|
8361
|
-
|
|
8358
|
+
const [flag, setFlag] = React32__default.useState(false);
|
|
8359
|
+
const [prevIntKey, setPrevIntKey] = React32__default.useState("0");
|
|
8360
|
+
const [isFocused, setIsFocused] = React32__default.useState(false);
|
|
8361
|
+
React32__default.useEffect(() => {
|
|
8362
8362
|
if (flag) {
|
|
8363
8363
|
const timer = setTimeout(() => {
|
|
8364
8364
|
setFlag(false);
|
|
@@ -8366,7 +8366,7 @@ var TimePickerInput = React33__default.forwardRef(
|
|
|
8366
8366
|
return () => clearTimeout(timer);
|
|
8367
8367
|
}
|
|
8368
8368
|
}, [flag]);
|
|
8369
|
-
const calculatedValue =
|
|
8369
|
+
const calculatedValue = React32__default.useMemo(() => {
|
|
8370
8370
|
const safeDate = date ?? new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
|
|
8371
8371
|
return getDateByType(safeDate, picker);
|
|
8372
8372
|
}, [date, picker]);
|
|
@@ -8545,9 +8545,9 @@ function TimePicker({
|
|
|
8545
8545
|
hideSeconds,
|
|
8546
8546
|
enableButton
|
|
8547
8547
|
}) {
|
|
8548
|
-
const minuteRef =
|
|
8549
|
-
const hourRef =
|
|
8550
|
-
const secondRef =
|
|
8548
|
+
const minuteRef = React32.useRef(null);
|
|
8549
|
+
const hourRef = React32.useRef(null);
|
|
8550
|
+
const secondRef = React32.useRef(null);
|
|
8551
8551
|
const containerVariants = {
|
|
8552
8552
|
hidden: { opacity: 0, y: 10 },
|
|
8553
8553
|
visible: {
|
|
@@ -9948,7 +9948,7 @@ function EventAgenda({
|
|
|
9948
9948
|
);
|
|
9949
9949
|
return;
|
|
9950
9950
|
}
|
|
9951
|
-
if (
|
|
9951
|
+
if (React32__default.isValidElement(onClick)) {
|
|
9952
9952
|
setSelectedEvent(event);
|
|
9953
9953
|
return;
|
|
9954
9954
|
}
|
|
@@ -10100,7 +10100,7 @@ function EventAgenda({
|
|
|
10100
10100
|
}
|
|
10101
10101
|
)
|
|
10102
10102
|
] }),
|
|
10103
|
-
selectedEvent &&
|
|
10103
|
+
selectedEvent && React32__default.isValidElement(onClick) ? React32__default.cloneElement(onClick, {
|
|
10104
10104
|
event: selectedEvent,
|
|
10105
10105
|
onClose: () => setSelectedEvent(null)
|
|
10106
10106
|
}) : null
|
|
@@ -13747,7 +13747,7 @@ function MultiSelect({
|
|
|
13747
13747
|
"div",
|
|
13748
13748
|
{
|
|
13749
13749
|
className: `transition-all duration-200 ${animating ? "opacity-0 -translate-y-1" : "opacity-100 translate-y-0"}`,
|
|
13750
|
-
children: paged && "grouped" in paged ? Object.keys(paged.grouped).map((key, index) => /* @__PURE__ */ jsxs(
|
|
13750
|
+
children: paged && "grouped" in paged ? Object.keys(paged.grouped).map((key, index) => /* @__PURE__ */ jsxs(React32__default.Fragment, { children: [
|
|
13751
13751
|
/* @__PURE__ */ jsx(
|
|
13752
13752
|
MultiSelectGroupBase,
|
|
13753
13753
|
{
|
|
@@ -13814,7 +13814,7 @@ function MultiSelect({
|
|
|
13814
13814
|
)
|
|
13815
13815
|
] })
|
|
13816
13816
|
] })
|
|
13817
|
-
] }) : /* @__PURE__ */ jsx(Fragment, { children: groupItems ? /* @__PURE__ */ jsx(Fragment, { children: Object.keys(groupItems).map((key, index) => /* @__PURE__ */ jsxs(
|
|
13817
|
+
] }) : /* @__PURE__ */ jsx(Fragment, { children: groupItems ? /* @__PURE__ */ jsx(Fragment, { children: Object.keys(groupItems).map((key, index) => /* @__PURE__ */ jsxs(React32__default.Fragment, { children: [
|
|
13818
13818
|
/* @__PURE__ */ jsx(
|
|
13819
13819
|
MultiSelectGroupBase,
|
|
13820
13820
|
{
|
|
@@ -14626,7 +14626,7 @@ var DraggableTooltipComponent = ({
|
|
|
14626
14626
|
() => showOnlyHighlighted && highlightedSeries && highlightedSeries.size > 0 ? dataKeys.filter((k) => highlightedSeries.has(k)) : dataKeys,
|
|
14627
14627
|
[showOnlyHighlighted, highlightedSeries, dataKeys]
|
|
14628
14628
|
);
|
|
14629
|
-
const TotalDisplay =
|
|
14629
|
+
const TotalDisplay = React32__default.memo(({ data: data2, visibleKeys: visibleKeys2, valueFormatter: localformatter }) => {
|
|
14630
14630
|
const total = useMemo(() => {
|
|
14631
14631
|
const numeric = visibleKeys2.map((k) => data2[k]).filter((v) => typeof v === "number");
|
|
14632
14632
|
return numeric.reduce((s, v) => s + (v || 0), 0);
|
|
@@ -15192,7 +15192,7 @@ var DraggableTooltipComponent = ({
|
|
|
15192
15192
|
)
|
|
15193
15193
|
] });
|
|
15194
15194
|
};
|
|
15195
|
-
var DraggableTooltip =
|
|
15195
|
+
var DraggableTooltip = React32__default.memo(DraggableTooltipComponent);
|
|
15196
15196
|
DraggableTooltip.displayName = "DraggableTooltip";
|
|
15197
15197
|
var DraggableTooltip_default = DraggableTooltip;
|
|
15198
15198
|
var RechartTooltipWithTotal = ({
|
|
@@ -18605,5 +18605,138 @@ function Leaderboard({
|
|
|
18605
18605
|
}
|
|
18606
18606
|
);
|
|
18607
18607
|
}
|
|
18608
|
+
function CarouselBase({
|
|
18609
|
+
items,
|
|
18610
|
+
className,
|
|
18611
|
+
containerClassName,
|
|
18612
|
+
imageClassName,
|
|
18613
|
+
width,
|
|
18614
|
+
height = "400px",
|
|
18615
|
+
showControls = true,
|
|
18616
|
+
showIndicators = true,
|
|
18617
|
+
autoPlay = false,
|
|
18618
|
+
autoPlayInterval = 3e3,
|
|
18619
|
+
springConfig = {
|
|
18620
|
+
stiffness: 300,
|
|
18621
|
+
damping: 30
|
|
18622
|
+
}
|
|
18623
|
+
}) {
|
|
18624
|
+
const [index, setIndex] = useState(0);
|
|
18625
|
+
const containerRef = useRef(null);
|
|
18626
|
+
const x = useMotionValue(0);
|
|
18627
|
+
useEffect(() => {
|
|
18628
|
+
if (containerRef.current) {
|
|
18629
|
+
const containerWidth = containerRef.current.offsetWidth || 1;
|
|
18630
|
+
const targetX = -index * containerWidth;
|
|
18631
|
+
animate(x, targetX, {
|
|
18632
|
+
type: "spring",
|
|
18633
|
+
stiffness: springConfig.stiffness,
|
|
18634
|
+
damping: springConfig.damping
|
|
18635
|
+
});
|
|
18636
|
+
}
|
|
18637
|
+
}, [index, x, springConfig.stiffness, springConfig.damping]);
|
|
18638
|
+
useEffect(() => {
|
|
18639
|
+
if (!autoPlay || items.length <= 1) return;
|
|
18640
|
+
const interval = setInterval(() => {
|
|
18641
|
+
setIndex((i) => (i + 1) % items.length);
|
|
18642
|
+
}, autoPlayInterval);
|
|
18643
|
+
return () => clearInterval(interval);
|
|
18644
|
+
}, [autoPlay, autoPlayInterval, items.length]);
|
|
18645
|
+
return /* @__PURE__ */ jsx(
|
|
18646
|
+
"div",
|
|
18647
|
+
{
|
|
18648
|
+
className: cn("w-full lg:p-10 sm:p-4 p-2", className),
|
|
18649
|
+
style: { width },
|
|
18650
|
+
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ jsxs(
|
|
18651
|
+
"div",
|
|
18652
|
+
{
|
|
18653
|
+
className: cn(
|
|
18654
|
+
"relative overflow-hidden rounded-lg",
|
|
18655
|
+
containerClassName
|
|
18656
|
+
),
|
|
18657
|
+
ref: containerRef,
|
|
18658
|
+
children: [
|
|
18659
|
+
/* @__PURE__ */ jsx(motion.div, { className: "flex", style: { x }, children: items.map((item) => /* @__PURE__ */ jsx("div", { className: "shrink-0 w-full", style: { height }, children: /* @__PURE__ */ jsx(
|
|
18660
|
+
"img",
|
|
18661
|
+
{
|
|
18662
|
+
src: item.url,
|
|
18663
|
+
alt: item.title,
|
|
18664
|
+
className: cn(
|
|
18665
|
+
"w-full h-full object-cover rounded-lg select-none pointer-events-none",
|
|
18666
|
+
imageClassName
|
|
18667
|
+
),
|
|
18668
|
+
draggable: false
|
|
18669
|
+
}
|
|
18670
|
+
) }, item.id)) }),
|
|
18671
|
+
showControls && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18672
|
+
/* @__PURE__ */ jsx(
|
|
18673
|
+
motion.button,
|
|
18674
|
+
{
|
|
18675
|
+
disabled: index === 0,
|
|
18676
|
+
onClick: () => setIndex((i) => Math.max(0, i - 1)),
|
|
18677
|
+
className: `absolute left-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full flex items-center justify-center shadow-lg transition-transform z-10
|
|
18678
|
+
${index === 0 ? "opacity-40 cursor-not-allowed" : "bg-secondary hover:scale-110 hover:opacity-100 opacity-70"}`,
|
|
18679
|
+
children: /* @__PURE__ */ jsx(
|
|
18680
|
+
"svg",
|
|
18681
|
+
{
|
|
18682
|
+
className: "w-6 h-6",
|
|
18683
|
+
fill: "none",
|
|
18684
|
+
stroke: "currentColor",
|
|
18685
|
+
viewBox: "0 0 24 24",
|
|
18686
|
+
children: /* @__PURE__ */ jsx(
|
|
18687
|
+
"path",
|
|
18688
|
+
{
|
|
18689
|
+
strokeLinecap: "round",
|
|
18690
|
+
strokeLinejoin: "round",
|
|
18691
|
+
strokeWidth: 2,
|
|
18692
|
+
d: "M15 19l-7-7 7-7"
|
|
18693
|
+
}
|
|
18694
|
+
)
|
|
18695
|
+
}
|
|
18696
|
+
)
|
|
18697
|
+
}
|
|
18698
|
+
),
|
|
18699
|
+
/* @__PURE__ */ jsx(
|
|
18700
|
+
motion.button,
|
|
18701
|
+
{
|
|
18702
|
+
disabled: index === items.length - 1,
|
|
18703
|
+
onClick: () => setIndex((i) => Math.min(items.length - 1, i + 1)),
|
|
18704
|
+
className: `absolute right-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full flex items-center justify-center shadow-lg transition-transform z-10
|
|
18705
|
+
${index === items.length - 1 ? "opacity-40 cursor-not-allowed" : "bg-secondary hover:scale-110 hover:opacity-100 opacity-70"}`,
|
|
18706
|
+
children: /* @__PURE__ */ jsx(
|
|
18707
|
+
"svg",
|
|
18708
|
+
{
|
|
18709
|
+
className: "w-6 h-6",
|
|
18710
|
+
fill: "none",
|
|
18711
|
+
stroke: "currentColor",
|
|
18712
|
+
viewBox: "0 0 24 24",
|
|
18713
|
+
children: /* @__PURE__ */ jsx(
|
|
18714
|
+
"path",
|
|
18715
|
+
{
|
|
18716
|
+
strokeLinecap: "round",
|
|
18717
|
+
strokeLinejoin: "round",
|
|
18718
|
+
strokeWidth: 2,
|
|
18719
|
+
d: "M9 5l7 7-7 7"
|
|
18720
|
+
}
|
|
18721
|
+
)
|
|
18722
|
+
}
|
|
18723
|
+
)
|
|
18724
|
+
}
|
|
18725
|
+
)
|
|
18726
|
+
] }),
|
|
18727
|
+
showIndicators && /* @__PURE__ */ jsx("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2", children: items.map((_, i) => /* @__PURE__ */ jsx(
|
|
18728
|
+
"button",
|
|
18729
|
+
{
|
|
18730
|
+
onClick: () => setIndex(i),
|
|
18731
|
+
className: `h-2 rounded-full transition-all ${i === index ? "w-8 bg-white" : "w-2 bg-white/50"}`
|
|
18732
|
+
},
|
|
18733
|
+
i
|
|
18734
|
+
)) })
|
|
18735
|
+
]
|
|
18736
|
+
}
|
|
18737
|
+
) })
|
|
18738
|
+
}
|
|
18739
|
+
);
|
|
18740
|
+
}
|
|
18608
18741
|
|
|
18609
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, FilterButton, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };
|
|
18742
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, FilterButton, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };
|