@abdellatifui/react 3.1.86 → 3.1.88

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/nextgen.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as React from "react";
2
- import React__default, { useContext, useState, useRef, useEffect, forwardRef, useCallback, memo, useLayoutEffect, useImperativeHandle, useMemo, createContext, isValidElement, cloneElement, Children } from "react";
2
+ import React__default, { useContext, useState, useRef, useEffect, forwardRef, useCallback, memo, createContext, useImperativeHandle, useMemo, useLayoutEffect, isValidElement, cloneElement, Children } from "react";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
4
  import { Zoom as Zoom$1, Tooltip, MenuItem as MenuItem$1, TableContainer, Paper as Paper$1, Table as Table$1, TableHead, TableRow, TableCell, TableBody } from "@mui/material";
5
5
  import emStyled from "@emotion/styled";
6
6
  import { CacheProvider, Global, ThemeContext, css, keyframes } from "@emotion/react";
7
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
7
8
  import ReactDOM, { createPortal } from "react-dom";
8
9
  import { MapboxOverlay } from "@deck.gl/mapbox";
9
10
  import { PathLayer } from "@deck.gl/layers";
@@ -18,7 +19,6 @@ export * from "lucide-react";
18
19
  import copy$1 from "copy-to-clipboard";
19
20
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
20
21
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
21
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
22
22
  import * as SwitchPrimitives from "@radix-ui/react-switch";
23
23
  import * as LabelPrimitive from "@radix-ui/react-label";
24
24
  import useEmblaCarousel from "embla-carousel-react";
@@ -6263,7 +6263,7 @@ const cva = (base, config2) => (props) => {
6263
6263
  }, []);
6264
6264
  return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
6265
6265
  };
6266
- const vrs$h = cva(
6266
+ const vrs$i = cva(
6267
6267
  "inline-flex flex-col items-center justify-center gap-2 font-geist text-sm",
6268
6268
  {
6269
6269
  variants: {
@@ -6317,7 +6317,7 @@ const Spinner = forwardRef((props, ref) => {
6317
6317
  "div",
6318
6318
  {
6319
6319
  id: "__uu773j12",
6320
- className: cn(vrs$h({ variant, size }), "spinner-entrance", className),
6320
+ className: cn(vrs$i({ variant, size }), "spinner-entrance", className),
6321
6321
  children: [
6322
6322
  /* @__PURE__ */ jsxRuntimeExports.jsx(
6323
6323
  ProgressSpinner,
@@ -12149,7 +12149,7 @@ const TestButtonComponent = forwardRef((props, ref) => {
12149
12149
  );
12150
12150
  });
12151
12151
  const TestButton = memo(TestButtonComponent);
12152
- const vrs$g = cva("font-Roboto select-none font-normal", {
12152
+ const vrs$h = cva("font-Roboto select-none font-normal", {
12153
12153
  variants: {
12154
12154
  type: {
12155
12155
  "main": "text-[20px]",
@@ -12165,7 +12165,7 @@ const Header = (props) => {
12165
12165
  style: style2,
12166
12166
  type
12167
12167
  } = props;
12168
- return /* @__PURE__ */ jsxRuntimeExports.jsx("label", { style: style2 || {}, className: cn(vrs$g({ type }), className), children });
12168
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("label", { style: style2 || {}, className: cn(vrs$h({ type }), className), children });
12169
12169
  };
12170
12170
  const MainHeader = (props) => {
12171
12171
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Header, { ...props, type: "main" });
@@ -12180,6 +12180,363 @@ const ScrolBarStyle = (props) => {
12180
12180
  const { children } = props;
12181
12181
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "custom-scroll-bar1", children });
12182
12182
  };
12183
+ const useRandomId = (length2 = 8) => {
12184
+ return "css-" + Math.random().toString(36).substr(2, length2);
12185
+ };
12186
+ const GetRandomStr = (length2 = 8, str = true) => {
12187
+ const randomStr = str ? "str-" + Math.random().toString(36).substr(2, length2) : Math.random().toString(36).substr(2, length2);
12188
+ return randomStr;
12189
+ };
12190
+ const useGeneratedId = (length2 = 8, beginstr = true, forcss = false) => {
12191
+ const [r2, setR] = useState("");
12192
+ useEffect(() => {
12193
+ if (length2 && forcss) {
12194
+ setR("css-" + Math.random().toString(36).substr(2, length2));
12195
+ } else if (length2 && beginstr) {
12196
+ setR("_" + Math.random().toString(36).substr(2, length2));
12197
+ } else if (length2 && !beginstr) {
12198
+ setR(Math.random().toString(36).substr(2, length2));
12199
+ }
12200
+ }, [length2, beginstr, forcss]);
12201
+ return r2;
12202
+ };
12203
+ function capitalizeFirstLetter(string) {
12204
+ return string.charAt(0).toUpperCase() + string.slice(1);
12205
+ }
12206
+ function range(start, end, step = 1) {
12207
+ const result = [];
12208
+ if (!end) {
12209
+ end = start;
12210
+ start = 0;
12211
+ }
12212
+ for (let i = start; i < end; i += step) {
12213
+ result.push(i);
12214
+ }
12215
+ return result;
12216
+ }
12217
+ const convertNumberToArray = (number) => {
12218
+ return Array.from({ length: number });
12219
+ };
12220
+ const getWholeSpectrum$1 = () => {
12221
+ const result = [];
12222
+ for (let i = 0; i < 768; i++) {
12223
+ result.push((9127.5 + i * 0.625).toFixed(3));
12224
+ }
12225
+ return result;
12226
+ };
12227
+ function convertTimestampToDate(timestamp) {
12228
+ const date = new Date(timestamp * 1e3);
12229
+ return date.toLocaleString();
12230
+ }
12231
+ const AlertDialog = AlertDialogPrimitive.Root;
12232
+ const AlertDialogPortal = AlertDialogPrimitive.Portal;
12233
+ const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
12234
+ AlertDialogPrimitive.Overlay,
12235
+ {
12236
+ className: cn(
12237
+ "fixed inset-0 z-5 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
12238
+ className
12239
+ ),
12240
+ ...props,
12241
+ ref
12242
+ }
12243
+ ));
12244
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
12245
+ const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogPortal, { children: [
12246
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogOverlay, {}),
12247
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
12248
+ AlertDialogPrimitive.Content,
12249
+ {
12250
+ ref,
12251
+ className: cn(
12252
+ "fixed z-50 w-full max-w-lg border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
12253
+ className
12254
+ ),
12255
+ ...props
12256
+ }
12257
+ )
12258
+ ] }));
12259
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
12260
+ const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
12261
+ AlertDialogPrimitive.Title,
12262
+ {
12263
+ ref,
12264
+ className: cn("text-lg font-semibold", className),
12265
+ ...props
12266
+ }
12267
+ ));
12268
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
12269
+ const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
12270
+ AlertDialogPrimitive.Description,
12271
+ {
12272
+ ref,
12273
+ className: cn("text-sm text-muted-foreground", className),
12274
+ ...props
12275
+ }
12276
+ ));
12277
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
12278
+ const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
12279
+ AlertDialogPrimitive.Action,
12280
+ {
12281
+ ref,
12282
+ className: cn(buttonVariants(), className),
12283
+ ...props
12284
+ }
12285
+ ));
12286
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
12287
+ const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
12288
+ AlertDialogPrimitive.Cancel,
12289
+ {
12290
+ ref,
12291
+ className: cn(
12292
+ buttonVariants({ variant: "outline" }),
12293
+ "mt-2 sm:mt-0",
12294
+ className
12295
+ ),
12296
+ ...props
12297
+ }
12298
+ ));
12299
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
12300
+ const ModelContext = createContext({});
12301
+ const vrs$g = cva(
12302
+ "flex items-center justify-center z-1 css-iuur1",
12303
+ {
12304
+ variants: {
12305
+ variant: {
12306
+ transparent: "bg-transparent",
12307
+ blur: "bg-blur",
12308
+ dimmed: "bg-[#191a1e] bg-opacity-75"
12309
+ },
12310
+ inline: {
12311
+ true: "absolute"
12312
+ },
12313
+ blur: {
12314
+ true: "backdrop-blur-sm"
12315
+ }
12316
+ },
12317
+ defaultVariants: {
12318
+ variant: "blur"
12319
+ }
12320
+ }
12321
+ );
12322
+ const Model = forwardRef((props, ref) => {
12323
+ const [open, setOpen] = useState(false);
12324
+ const id = useGeneratedId();
12325
+ const {
12326
+ children,
12327
+ bodyClick,
12328
+ className,
12329
+ variant,
12330
+ inline = false,
12331
+ hideOnContextMenu,
12332
+ onBodyClick,
12333
+ blur = false
12334
+ } = props;
12335
+ const handleClose = useCallback(() => {
12336
+ setOpen(false);
12337
+ }, []);
12338
+ const hanldeOpen = useCallback(() => {
12339
+ setOpen(true);
12340
+ }, []);
12341
+ useImperativeHandle(ref, () => ({
12342
+ open: hanldeOpen,
12343
+ close: handleClose,
12344
+ get isOpen() {
12345
+ return open;
12346
+ }
12347
+ }), [handleClose, hanldeOpen, open]);
12348
+ useEffect(() => {
12349
+ if (!open || inline) {
12350
+ return;
12351
+ }
12352
+ const element = document.getElementById(id);
12353
+ if (!element) {
12354
+ return;
12355
+ }
12356
+ const frame = window.requestAnimationFrame(() => {
12357
+ const boundaries = element.getBoundingClientRect();
12358
+ element.style.top = `${-boundaries.y}px`;
12359
+ });
12360
+ return () => window.cancelAnimationFrame(frame);
12361
+ }, [id, inline, open]);
12362
+ function handleWrapperClose(e) {
12363
+ if (e.target.getAttribute("data-element") === "model-overlay" && bodyClick) {
12364
+ setOpen(false);
12365
+ if (onBodyClick) {
12366
+ onBodyClick(e);
12367
+ }
12368
+ }
12369
+ }
12370
+ function handleContextMenu(e) {
12371
+ if (hideOnContextMenu) {
12372
+ e.preventDefault();
12373
+ setOpen(false);
12374
+ }
12375
+ }
12376
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ModelContext.Provider, { value: { openModel: hanldeOpen, closeModel: handleClose, ref, props }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12377
+ AlertDialogOverlay,
12378
+ {
12379
+ "data-element": "model-overlay",
12380
+ onContextMenu: handleContextMenu,
12381
+ onClick: handleWrapperClose,
12382
+ id,
12383
+ className: cn(vrs$g({ variant, inline, blur }), "custom-click-away flex justify-center items-center opacity-100", className),
12384
+ children
12385
+ }
12386
+ ) }) });
12387
+ });
12388
+ const vrs$f = cva(
12389
+ "bg-white min-w-[300px] absolute z-2 top-0 bottom-0 transition-all duration-300 ease-in-out pointer-events-auto",
12390
+ {
12391
+ variants: {
12392
+ variant: {
12393
+ default: "bg-white"
12394
+ },
12395
+ rounded: {
12396
+ none: "rounded-none",
12397
+ sm: "rounded-sm",
12398
+ md: "rounded-md",
12399
+ lg: "rounded-lg",
12400
+ xl: "rounded-xl",
12401
+ xxl: "rounded-2xl"
12402
+ },
12403
+ direction: {
12404
+ left: "m-0 left-0 -translate-x-full",
12405
+ right: "m-0 right-0 translate-x-full"
12406
+ },
12407
+ padding: {
12408
+ true: "p-2"
12409
+ },
12410
+ margin: {
12411
+ none: "m-0",
12412
+ sm: "m-1",
12413
+ md: "m-2",
12414
+ lg: "m-3",
12415
+ xl: "m-4",
12416
+ xxl: "m-5"
12417
+ }
12418
+ }
12419
+ }
12420
+ );
12421
+ const Sidebar = forwardRef((props, ref) => {
12422
+ const [isOpen, setIsOpen] = useState(false);
12423
+ const ref2 = useRef(null);
12424
+ const id = useGeneratedId(9, true, true);
12425
+ const modelRef = useRef(null);
12426
+ const {
12427
+ variant = "default",
12428
+ rounded = "md",
12429
+ direction = "right",
12430
+ margin: margin2 = "md",
12431
+ defaultOpen,
12432
+ children,
12433
+ className,
12434
+ style: style2,
12435
+ padding: padding2 = true,
12436
+ onOpen,
12437
+ onClose,
12438
+ onChange,
12439
+ modelProps = {
12440
+ bodyClick: true
12441
+ }
12442
+ } = props;
12443
+ const content = useMemo(() => {
12444
+ if (children) {
12445
+ return children;
12446
+ }
12447
+ return null;
12448
+ }, [children]);
12449
+ const handleOpen = useCallback(() => {
12450
+ var _a;
12451
+ (_a = modelRef.current) == null ? void 0 : _a.open();
12452
+ window.setTimeout(() => {
12453
+ setIsOpen(true);
12454
+ }, 200);
12455
+ }, []);
12456
+ const handleClose = useCallback(() => {
12457
+ var _a;
12458
+ (_a = modelRef.current) == null ? void 0 : _a.close();
12459
+ setIsOpen(false);
12460
+ }, []);
12461
+ const handleToggle = useCallback(() => {
12462
+ var _a, _b;
12463
+ if (isOpen) {
12464
+ (_a = modelRef.current) == null ? void 0 : _a.close();
12465
+ } else {
12466
+ (_b = modelRef.current) == null ? void 0 : _b.open();
12467
+ }
12468
+ window.setTimeout(() => {
12469
+ setIsOpen((prev2) => !prev2);
12470
+ }, 50);
12471
+ }, [isOpen]);
12472
+ useImperativeHandle(ref, () => ({
12473
+ open: handleOpen,
12474
+ close: handleClose,
12475
+ toggle: handleToggle,
12476
+ props,
12477
+ id,
12478
+ get element() {
12479
+ return document.getElementById(`#${id}`);
12480
+ },
12481
+ model: modelRef,
12482
+ ref: ref2
12483
+ }), [handleClose, handleOpen, handleToggle, id]);
12484
+ useEffect(() => {
12485
+ const event = {
12486
+ isOpen,
12487
+ id,
12488
+ props,
12489
+ modelRef,
12490
+ ref: ref2,
12491
+ element: document.getElementById(`#${id}`)
12492
+ };
12493
+ if (isOpen) {
12494
+ onOpen == null ? void 0 : onOpen(event);
12495
+ } else {
12496
+ onClose == null ? void 0 : onClose(event);
12497
+ }
12498
+ if (onChange) {
12499
+ onChange(event);
12500
+ }
12501
+ }, [isOpen]);
12502
+ useEffect(() => {
12503
+ if (defaultOpen) {
12504
+ setIsOpen(true);
12505
+ }
12506
+ }, [defaultOpen]);
12507
+ const mergedModelProps = useMemo(() => ({
12508
+ ...modelProps,
12509
+ bodyClick: (modelProps == null ? void 0 : modelProps.bodyClick) ?? true
12510
+ }), [modelProps]);
12511
+ const handleBodyClick = useCallback((event) => {
12512
+ var _a;
12513
+ handleClose();
12514
+ (_a = modelProps == null ? void 0 : modelProps.onBodyClick) == null ? void 0 : _a.call(modelProps, event);
12515
+ }, [handleClose, modelProps]);
12516
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
12517
+ Model,
12518
+ {
12519
+ ref: modelRef,
12520
+ onBodyClick: handleBodyClick,
12521
+ ...mergedModelProps,
12522
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12523
+ "div",
12524
+ {
12525
+ id: `#${id}`,
12526
+ style: style2,
12527
+ ref: ref2,
12528
+ className: cn(
12529
+ vrs$f({ rounded, variant, direction, padding: padding2, margin: margin2 }),
12530
+ isOpen && direction === "right" && "translate-x-0",
12531
+ isOpen && direction === "left" && "translate-x-0",
12532
+ className
12533
+ ),
12534
+ children: content
12535
+ }
12536
+ )
12537
+ }
12538
+ );
12539
+ });
12183
12540
  var observerMap = /* @__PURE__ */ new Map();
12184
12541
  var RootIds = /* @__PURE__ */ new WeakMap();
12185
12542
  var rootId = 0;
@@ -13407,54 +13764,6 @@ function _LogoControl(props) {
13407
13764
  }
13408
13765
  memo(_LogoControl);
13409
13766
  const NetworkCloudIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAAAACXBIWXMAA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rDLJzL0/4X/APPvpiAB/R0GAAAAAElFTkSuQmCC";
13410
- const useRandomId = (length2 = 8) => {
13411
- return "css-" + Math.random().toString(36).substr(2, length2);
13412
- };
13413
- const GetRandomStr = (length2 = 8, str = true) => {
13414
- const randomStr = str ? "str-" + Math.random().toString(36).substr(2, length2) : Math.random().toString(36).substr(2, length2);
13415
- return randomStr;
13416
- };
13417
- const useGeneratedId = (length2 = 8, beginstr = true, forcss = false) => {
13418
- const [r2, setR] = useState("");
13419
- useEffect(() => {
13420
- if (length2 && forcss) {
13421
- setR("css-" + Math.random().toString(36).substr(2, length2));
13422
- } else if (length2 && beginstr) {
13423
- setR("_" + Math.random().toString(36).substr(2, length2));
13424
- } else if (length2 && !beginstr) {
13425
- setR(Math.random().toString(36).substr(2, length2));
13426
- }
13427
- }, [length2, beginstr, forcss]);
13428
- return r2;
13429
- };
13430
- function capitalizeFirstLetter(string) {
13431
- return string.charAt(0).toUpperCase() + string.slice(1);
13432
- }
13433
- function range(start, end, step = 1) {
13434
- const result = [];
13435
- if (!end) {
13436
- end = start;
13437
- start = 0;
13438
- }
13439
- for (let i = start; i < end; i += step) {
13440
- result.push(i);
13441
- }
13442
- return result;
13443
- }
13444
- const convertNumberToArray = (number) => {
13445
- return Array.from({ length: number });
13446
- };
13447
- const getWholeSpectrum$1 = () => {
13448
- const result = [];
13449
- for (let i = 0; i < 768; i++) {
13450
- result.push((9127.5 + i * 0.625).toFixed(3));
13451
- }
13452
- return result;
13453
- };
13454
- function convertTimestampToDate(timestamp) {
13455
- const date = new Date(timestamp * 1e3);
13456
- return date.toLocaleString();
13457
- }
13458
13767
  const PinItem = (props) => {
13459
13768
  const {
13460
13769
  longitude,
@@ -14155,7 +14464,6 @@ const SourcesPorts = (props) => {
14155
14464
  const [viewportRevision, setViewportRevision] = useState(0);
14156
14465
  const [isFocused, setIsFocused] = useState(false);
14157
14466
  useEffect(() => {
14158
- console.log("ENDPOINT TEXT");
14159
14467
  if (mapDragging) {
14160
14468
  setIsVisible(false);
14161
14469
  return;
@@ -14936,7 +15244,7 @@ const AccordionGroup = (props) => {
14936
15244
  options: options2
14937
15245
  }, children }) });
14938
15246
  };
14939
- const vrs$f = cva("px-1", {
15247
+ const vrs$e = cva("px-1", {
14940
15248
  variants: {
14941
15249
  disabled: {
14942
15250
  true: "bg-gray-100 cursor-not-allowed text-gray-400 *:no-underline",
@@ -14984,7 +15292,7 @@ const AccordionItem = (props) => {
14984
15292
  }, 100);
14985
15293
  }
14986
15294
  }, [defaultOpen]);
14987
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem$1, { ref, id, onClick: handleClick, className: cn(vrs$f({
15295
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem$1, { ref, id, onClick: handleClick, className: cn(vrs$e({
14988
15296
  disabled,
14989
15297
  border: options2.border
14990
15298
  }), className), disabled, value, children: [
@@ -15870,7 +16178,7 @@ process.env.NODE_ENV !== "production" ? Zoom.propTypes = {
15870
16178
  exit: PropTypes.number
15871
16179
  })])
15872
16180
  } : void 0;
15873
- const vrs$e = cva(
16181
+ const vrs$d = cva(
15874
16182
  "relative w-[35px] h-[35px] flex items-center justify-center !p-0 !m-0 transition-all duration-75 ease-in-out",
15875
16183
  {
15876
16184
  variants: {
@@ -15919,7 +16227,7 @@ const IconButtonComponent = forwardRef((props, ref) => {
15919
16227
  arrow: true,
15920
16228
  TransitionComponent: Zoom,
15921
16229
  TransitionProps: { timeout: 200 },
15922
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { disableRipple: !ripple, disabled: disable, ref, className: cn(vrs$e({ variant, outline: outline2, border: border2, disable }), "!cursor-default", className), onClick: handleOnClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "!w-full !h-full flex items-center justify-center *:h-[20px] *:w-[20px]", children: icon }) })
16230
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { disableRipple: !ripple, disabled: disable, ref, className: cn(vrs$d({ variant, outline: outline2, border: border2, disable }), "!cursor-default", className), onClick: handleOnClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "!w-full !h-full flex items-center justify-center *:h-[20px] *:w-[20px]", children: icon }) })
15923
16231
  }
15924
16232
  );
15925
16233
  });
@@ -15996,7 +16304,7 @@ const fontsStore = [
15996
16304
  "ibm_plex_sanssemibold",
15997
16305
  "ibm_plex_sanssemibold_italic"
15998
16306
  ];
15999
- const vrs$d = cva(
16307
+ const vrs$c = cva(
16000
16308
  "bg-muted h-full w-full relative",
16001
16309
  {
16002
16310
  variants: {
@@ -16008,7 +16316,7 @@ const vrs$d = cva(
16008
16316
  );
16009
16317
  const Body = forwardRef((props, ref) => {
16010
16318
  const { className, children, padding: padding2, style: style2 = {} } = props;
16011
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: style2, ref, className: cn(vrs$d({ padding: padding2 }), className), children });
16319
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: style2, ref, className: cn(vrs$c({ padding: padding2 }), className), children });
16012
16320
  });
16013
16321
  const Frame = forwardRef((props, ref) => {
16014
16322
  const { children } = props;
@@ -16147,7 +16455,7 @@ const PanelHeader = forwardRef((props, ref) => {
16147
16455
  ) : null
16148
16456
  ] });
16149
16457
  });
16150
- const vrs$c = cva(
16458
+ const vrs$b = cva(
16151
16459
  "bg-muted h-full w-full relative z-4",
16152
16460
  {
16153
16461
  variants: {
@@ -16202,7 +16510,7 @@ const Panel = forwardRef((props, ref) => {
16202
16510
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MainHeader, { children: header }) }),
16203
16511
  shortInfo || description ? /* @__PURE__ */ jsxRuntimeExports.jsx(CardDescription, { className: "font-geistlight font-thin", children: shortInfo || description }) : null
16204
16512
  ] }),
16205
- /* @__PURE__ */ jsxRuntimeExports.jsx(PanelHeader, { ref: panelRef, moreInfo, collapsable, vrs: vrs$c, variant, close: closeButton, iconsOrder, tooltipOrder })
16513
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PanelHeader, { ref: panelRef, moreInfo, collapsable, vrs: vrs$b, variant, close: closeButton, iconsOrder, tooltipOrder })
16206
16514
  ] }),
16207
16515
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "css-i231" }),
16208
16516
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, { className: "css-i231" }),
@@ -16249,158 +16557,6 @@ const SwapIconButton = forwardRef((props, ref) => {
16249
16557
  }
16250
16558
  ) });
16251
16559
  });
16252
- const AlertDialog = AlertDialogPrimitive.Root;
16253
- const AlertDialogPortal = AlertDialogPrimitive.Portal;
16254
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16255
- AlertDialogPrimitive.Overlay,
16256
- {
16257
- className: cn(
16258
- "fixed inset-0 z-5 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
16259
- className
16260
- ),
16261
- ...props,
16262
- ref
16263
- }
16264
- ));
16265
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
16266
- const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogPortal, { children: [
16267
- /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogOverlay, {}),
16268
- /* @__PURE__ */ jsxRuntimeExports.jsx(
16269
- AlertDialogPrimitive.Content,
16270
- {
16271
- ref,
16272
- className: cn(
16273
- "fixed z-50 w-full max-w-lg border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
16274
- className
16275
- ),
16276
- ...props
16277
- }
16278
- )
16279
- ] }));
16280
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
16281
- const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16282
- AlertDialogPrimitive.Title,
16283
- {
16284
- ref,
16285
- className: cn("text-lg font-semibold", className),
16286
- ...props
16287
- }
16288
- ));
16289
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
16290
- const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16291
- AlertDialogPrimitive.Description,
16292
- {
16293
- ref,
16294
- className: cn("text-sm text-muted-foreground", className),
16295
- ...props
16296
- }
16297
- ));
16298
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
16299
- const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16300
- AlertDialogPrimitive.Action,
16301
- {
16302
- ref,
16303
- className: cn(buttonVariants(), className),
16304
- ...props
16305
- }
16306
- ));
16307
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
16308
- const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16309
- AlertDialogPrimitive.Cancel,
16310
- {
16311
- ref,
16312
- className: cn(
16313
- buttonVariants({ variant: "outline" }),
16314
- "mt-2 sm:mt-0",
16315
- className
16316
- ),
16317
- ...props
16318
- }
16319
- ));
16320
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
16321
- const ModelContext = createContext({});
16322
- const vrs$b = cva(
16323
- "flex items-center justify-center z-[300] css-iuur1",
16324
- {
16325
- variants: {
16326
- variant: {
16327
- transparent: "bg-transparent",
16328
- blur: "bg-blur",
16329
- dimmed: "bg-[#191a1e] bg-opacity-75"
16330
- },
16331
- inline: {
16332
- true: "absolute"
16333
- },
16334
- blur: {
16335
- true: "backdrop-blur-sm"
16336
- }
16337
- },
16338
- defaultVariants: {
16339
- variant: "blur"
16340
- }
16341
- }
16342
- );
16343
- const Model = forwardRef((props, ref) => {
16344
- const [open, setOpen] = useState(false);
16345
- const id = useGeneratedId();
16346
- const {
16347
- children,
16348
- bodyClick,
16349
- className,
16350
- variant,
16351
- inline = false,
16352
- hideOnContextMenu,
16353
- blur = false
16354
- } = props;
16355
- const handleClose = useCallback(() => {
16356
- setOpen(false);
16357
- }, []);
16358
- const hanldeOpen = useCallback(() => {
16359
- setOpen(true);
16360
- }, []);
16361
- useImperativeHandle(ref, () => ({
16362
- open: hanldeOpen,
16363
- close: handleClose,
16364
- get isOpen() {
16365
- return open;
16366
- }
16367
- }), [handleClose, hanldeOpen, open]);
16368
- useEffect(() => {
16369
- if (!open || inline) {
16370
- return;
16371
- }
16372
- const element = document.getElementById(id);
16373
- if (!element) {
16374
- return;
16375
- }
16376
- const frame = window.requestAnimationFrame(() => {
16377
- const boundaries = element.getBoundingClientRect();
16378
- element.style.top = `${-boundaries.y}px`;
16379
- });
16380
- return () => window.cancelAnimationFrame(frame);
16381
- }, [id, inline, open]);
16382
- function handleWrapperClose(e) {
16383
- if (e.target.classList.contains("custom-click-away") && bodyClick) {
16384
- setOpen(false);
16385
- }
16386
- }
16387
- function handleContextMenu(e) {
16388
- if (hideOnContextMenu) {
16389
- e.preventDefault();
16390
- setOpen(false);
16391
- }
16392
- }
16393
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ModelContext.Provider, { value: { openModel: hanldeOpen, closeModel: handleClose, ref, props }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16394
- AlertDialogOverlay,
16395
- {
16396
- onContextMenu: handleContextMenu,
16397
- onClick: handleWrapperClose,
16398
- id,
16399
- className: cn(vrs$b({ variant, inline, blur }), "custom-click-away flex justify-center items-center opacity-100", className),
16400
- children
16401
- }
16402
- ) }) });
16403
- });
16404
16560
  const AppContext = createContext({});
16405
16561
  const DialogPanel = forwardRef((props, ref) => {
16406
16562
  const {
@@ -26531,6 +26687,7 @@ export {
26531
26687
  RadioItem,
26532
26688
  ScrolBarStyle,
26533
26689
  ScrollArea,
26690
+ Sidebar,
26534
26691
  Spinner,
26535
26692
  SpinnerDialog,
26536
26693
  SplitButton,