@abdellatifui/react 3.1.87 → 3.1.89

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,367 @@ 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
+ var _a;
12504
+ if (defaultOpen) {
12505
+ (_a = modelRef.current) == null ? void 0 : _a.open();
12506
+ window.setTimeout(() => {
12507
+ setIsOpen(true);
12508
+ }, 50);
12509
+ }
12510
+ }, [defaultOpen]);
12511
+ const mergedModelProps = useMemo(() => ({
12512
+ ...modelProps,
12513
+ bodyClick: (modelProps == null ? void 0 : modelProps.bodyClick) ?? true
12514
+ }), [modelProps]);
12515
+ const handleBodyClick = useCallback((event) => {
12516
+ var _a;
12517
+ handleClose();
12518
+ (_a = modelProps == null ? void 0 : modelProps.onBodyClick) == null ? void 0 : _a.call(modelProps, event);
12519
+ }, [handleClose, modelProps]);
12520
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
12521
+ Model,
12522
+ {
12523
+ ref: modelRef,
12524
+ onBodyClick: handleBodyClick,
12525
+ ...mergedModelProps,
12526
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12527
+ "div",
12528
+ {
12529
+ id: `#${id}`,
12530
+ style: style2,
12531
+ ref: ref2,
12532
+ className: cn(
12533
+ vrs$f({ rounded, variant, direction, padding: padding2, margin: margin2 }),
12534
+ isOpen && direction === "right" && "translate-x-0",
12535
+ isOpen && direction === "left" && "translate-x-0",
12536
+ className
12537
+ ),
12538
+ children: content
12539
+ }
12540
+ )
12541
+ }
12542
+ );
12543
+ });
12183
12544
  var observerMap = /* @__PURE__ */ new Map();
12184
12545
  var RootIds = /* @__PURE__ */ new WeakMap();
12185
12546
  var rootId = 0;
@@ -13407,54 +13768,6 @@ function _LogoControl(props) {
13407
13768
  }
13408
13769
  memo(_LogoControl);
13409
13770
  const Network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xBxSAEXM3DsZN9W1DBXVnIxVkjlW6x8xpIbWHaxf6g56MkvYgp4xp+A1ZFeQLAoRM7dKtrDLJzL0/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
13771
  const PinItem = (props) => {
13459
13772
  const {
13460
13773
  longitude,
@@ -14935,7 +15248,7 @@ const AccordionGroup = (props) => {
14935
15248
  options: options2
14936
15249
  }, children }) });
14937
15250
  };
14938
- const vrs$f = cva("px-1", {
15251
+ const vrs$e = cva("px-1", {
14939
15252
  variants: {
14940
15253
  disabled: {
14941
15254
  true: "bg-gray-100 cursor-not-allowed text-gray-400 *:no-underline",
@@ -14983,7 +15296,7 @@ const AccordionItem = (props) => {
14983
15296
  }, 100);
14984
15297
  }
14985
15298
  }, [defaultOpen]);
14986
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem$1, { ref, id, onClick: handleClick, className: cn(vrs$f({
15299
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem$1, { ref, id, onClick: handleClick, className: cn(vrs$e({
14987
15300
  disabled,
14988
15301
  border: options2.border
14989
15302
  }), className), disabled, value, children: [
@@ -15869,7 +16182,7 @@ process.env.NODE_ENV !== "production" ? Zoom.propTypes = {
15869
16182
  exit: PropTypes.number
15870
16183
  })])
15871
16184
  } : void 0;
15872
- const vrs$e = cva(
16185
+ const vrs$d = cva(
15873
16186
  "relative w-[35px] h-[35px] flex items-center justify-center !p-0 !m-0 transition-all duration-75 ease-in-out",
15874
16187
  {
15875
16188
  variants: {
@@ -15918,7 +16231,7 @@ const IconButtonComponent = forwardRef((props, ref) => {
15918
16231
  arrow: true,
15919
16232
  TransitionComponent: Zoom,
15920
16233
  TransitionProps: { timeout: 200 },
15921
- 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 }) })
16234
+ 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 }) })
15922
16235
  }
15923
16236
  );
15924
16237
  });
@@ -15995,7 +16308,7 @@ const fontsStore = [
15995
16308
  "ibm_plex_sanssemibold",
15996
16309
  "ibm_plex_sanssemibold_italic"
15997
16310
  ];
15998
- const vrs$d = cva(
16311
+ const vrs$c = cva(
15999
16312
  "bg-muted h-full w-full relative",
16000
16313
  {
16001
16314
  variants: {
@@ -16007,7 +16320,7 @@ const vrs$d = cva(
16007
16320
  );
16008
16321
  const Body = forwardRef((props, ref) => {
16009
16322
  const { className, children, padding: padding2, style: style2 = {} } = props;
16010
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: style2, ref, className: cn(vrs$d({ padding: padding2 }), className), children });
16323
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: style2, ref, className: cn(vrs$c({ padding: padding2 }), className), children });
16011
16324
  });
16012
16325
  const Frame = forwardRef((props, ref) => {
16013
16326
  const { children } = props;
@@ -16146,7 +16459,7 @@ const PanelHeader = forwardRef((props, ref) => {
16146
16459
  ) : null
16147
16460
  ] });
16148
16461
  });
16149
- const vrs$c = cva(
16462
+ const vrs$b = cva(
16150
16463
  "bg-muted h-full w-full relative z-4",
16151
16464
  {
16152
16465
  variants: {
@@ -16201,7 +16514,7 @@ const Panel = forwardRef((props, ref) => {
16201
16514
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MainHeader, { children: header }) }),
16202
16515
  shortInfo || description ? /* @__PURE__ */ jsxRuntimeExports.jsx(CardDescription, { className: "font-geistlight font-thin", children: shortInfo || description }) : null
16203
16516
  ] }),
16204
- /* @__PURE__ */ jsxRuntimeExports.jsx(PanelHeader, { ref: panelRef, moreInfo, collapsable, vrs: vrs$c, variant, close: closeButton, iconsOrder, tooltipOrder })
16517
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PanelHeader, { ref: panelRef, moreInfo, collapsable, vrs: vrs$b, variant, close: closeButton, iconsOrder, tooltipOrder })
16205
16518
  ] }),
16206
16519
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "css-i231" }),
16207
16520
  /* @__PURE__ */ jsxRuntimeExports.jsx(Separator, { className: "css-i231" }),
@@ -16248,158 +16561,6 @@ const SwapIconButton = forwardRef((props, ref) => {
16248
16561
  }
16249
16562
  ) });
16250
16563
  });
16251
- const AlertDialog = AlertDialogPrimitive.Root;
16252
- const AlertDialogPortal = AlertDialogPrimitive.Portal;
16253
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16254
- AlertDialogPrimitive.Overlay,
16255
- {
16256
- className: cn(
16257
- "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",
16258
- className
16259
- ),
16260
- ...props,
16261
- ref
16262
- }
16263
- ));
16264
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
16265
- const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogPortal, { children: [
16266
- /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialogOverlay, {}),
16267
- /* @__PURE__ */ jsxRuntimeExports.jsx(
16268
- AlertDialogPrimitive.Content,
16269
- {
16270
- ref,
16271
- className: cn(
16272
- "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",
16273
- className
16274
- ),
16275
- ...props
16276
- }
16277
- )
16278
- ] }));
16279
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
16280
- const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16281
- AlertDialogPrimitive.Title,
16282
- {
16283
- ref,
16284
- className: cn("text-lg font-semibold", className),
16285
- ...props
16286
- }
16287
- ));
16288
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
16289
- const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16290
- AlertDialogPrimitive.Description,
16291
- {
16292
- ref,
16293
- className: cn("text-sm text-muted-foreground", className),
16294
- ...props
16295
- }
16296
- ));
16297
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
16298
- const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16299
- AlertDialogPrimitive.Action,
16300
- {
16301
- ref,
16302
- className: cn(buttonVariants(), className),
16303
- ...props
16304
- }
16305
- ));
16306
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
16307
- const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
16308
- AlertDialogPrimitive.Cancel,
16309
- {
16310
- ref,
16311
- className: cn(
16312
- buttonVariants({ variant: "outline" }),
16313
- "mt-2 sm:mt-0",
16314
- className
16315
- ),
16316
- ...props
16317
- }
16318
- ));
16319
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
16320
- const ModelContext = createContext({});
16321
- const vrs$b = cva(
16322
- "flex items-center justify-center z-[300] css-iuur1",
16323
- {
16324
- variants: {
16325
- variant: {
16326
- transparent: "bg-transparent",
16327
- blur: "bg-blur",
16328
- dimmed: "bg-[#191a1e] bg-opacity-75"
16329
- },
16330
- inline: {
16331
- true: "absolute"
16332
- },
16333
- blur: {
16334
- true: "backdrop-blur-sm"
16335
- }
16336
- },
16337
- defaultVariants: {
16338
- variant: "blur"
16339
- }
16340
- }
16341
- );
16342
- const Model = forwardRef((props, ref) => {
16343
- const [open, setOpen] = useState(false);
16344
- const id = useGeneratedId();
16345
- const {
16346
- children,
16347
- bodyClick,
16348
- className,
16349
- variant,
16350
- inline = false,
16351
- hideOnContextMenu,
16352
- blur = false
16353
- } = props;
16354
- const handleClose = useCallback(() => {
16355
- setOpen(false);
16356
- }, []);
16357
- const hanldeOpen = useCallback(() => {
16358
- setOpen(true);
16359
- }, []);
16360
- useImperativeHandle(ref, () => ({
16361
- open: hanldeOpen,
16362
- close: handleClose,
16363
- get isOpen() {
16364
- return open;
16365
- }
16366
- }), [handleClose, hanldeOpen, open]);
16367
- useEffect(() => {
16368
- if (!open || inline) {
16369
- return;
16370
- }
16371
- const element = document.getElementById(id);
16372
- if (!element) {
16373
- return;
16374
- }
16375
- const frame = window.requestAnimationFrame(() => {
16376
- const boundaries = element.getBoundingClientRect();
16377
- element.style.top = `${-boundaries.y}px`;
16378
- });
16379
- return () => window.cancelAnimationFrame(frame);
16380
- }, [id, inline, open]);
16381
- function handleWrapperClose(e) {
16382
- if (e.target.classList.contains("custom-click-away") && bodyClick) {
16383
- setOpen(false);
16384
- }
16385
- }
16386
- function handleContextMenu(e) {
16387
- if (hideOnContextMenu) {
16388
- e.preventDefault();
16389
- setOpen(false);
16390
- }
16391
- }
16392
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ModelContext.Provider, { value: { openModel: hanldeOpen, closeModel: handleClose, ref, props }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16393
- AlertDialogOverlay,
16394
- {
16395
- onContextMenu: handleContextMenu,
16396
- onClick: handleWrapperClose,
16397
- id,
16398
- className: cn(vrs$b({ variant, inline, blur }), "custom-click-away flex justify-center items-center opacity-100", className),
16399
- children
16400
- }
16401
- ) }) });
16402
- });
16403
16564
  const AppContext = createContext({});
16404
16565
  const DialogPanel = forwardRef((props, ref) => {
16405
16566
  const {
@@ -26530,6 +26691,7 @@ export {
26530
26691
  RadioItem,
26531
26692
  ScrolBarStyle,
26532
26693
  ScrollArea,
26694
+ Sidebar,
26533
26695
  Spinner,
26534
26696
  SpinnerDialog,
26535
26697
  SplitButton,