@exem-ui/react 0.3.4-next.20261015085356 → 0.3.4-next.20261022010408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSHNVBKAJ_js = require('./chunk-SHNVBKAJ.js');
3
+ var chunkLDCNEHLQ_js = require('./chunk-LDCNEHLQ.js');
4
4
  var chunkJIFX424V_js = require('./chunk-JIFX424V.js');
5
5
  var utils = require('@exem-ui/core/utils');
6
6
  var React = require('react');
@@ -13,7 +13,6 @@ var SwitchPrimitives = require('@radix-ui/react-switch');
13
13
  var reactDayPicker = require('react-day-picker');
14
14
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
15
15
  var dialog = require('@base-ui/react/dialog');
16
- var DialogPrimitive2 = require('@radix-ui/react-dialog');
17
16
  var reResizable = require('re-resizable');
18
17
  var progress = require('@base-ui/react/progress');
19
18
  var sonner = require('sonner');
@@ -41,7 +40,6 @@ var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimit
41
40
  var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
42
41
  var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
43
42
  var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
44
- var DialogPrimitive2__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive2);
45
43
 
46
44
  var SIZE_CONFIG = {
47
45
  xsmall: {
@@ -491,6 +489,7 @@ var buttonVariants = utils.cva(
491
489
  },
492
490
  variants: {
493
491
  size: {
492
+ "2xsmall": "h-5 gap-0 px-1 text-caption font-medium",
494
493
  xsmall: "h-6 gap-0 px-1 text-body-3 font-medium",
495
494
  small: "h-7 gap-0.5 px-1.5 text-body-2 font-medium",
496
495
  medium: "h-8 gap-0.5 px-2 text-body-2 font-medium",
@@ -501,6 +500,7 @@ var buttonVariants = utils.cva(
501
500
  }
502
501
  );
503
502
  var iconSizeMap = {
503
+ "2xsmall": chunkJIFX424V_js.iconSizes.xs,
504
504
  xsmall: chunkJIFX424V_js.iconSizes.sm,
505
505
  small: chunkJIFX424V_js.iconSizes.sm,
506
506
  medium: chunkJIFX424V_js.iconSizes.sm,
@@ -544,6 +544,7 @@ function Button({
544
544
  );
545
545
  }
546
546
  var iconButtonSizeClasses = {
547
+ "2xsmall": "size-5",
547
548
  xsmall: "size-6",
548
549
  small: "size-7",
549
550
  medium: "size-8",
@@ -560,7 +561,7 @@ function IconButton({
560
561
  ...props
561
562
  }) {
562
563
  const tooltipLabel = typeof tooltip === "string" ? tooltip : void 0;
563
- return /* @__PURE__ */ jsxRuntime.jsx(chunkSHNVBKAJ_js.ConditionalTooltip, { tooltip, children: /* @__PURE__ */ jsxRuntime.jsx(
564
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLDCNEHLQ_js.ConditionalTooltip, { tooltip, children: /* @__PURE__ */ jsxRuntime.jsx(
564
565
  Button,
565
566
  {
566
567
  "aria-label": ariaLabel ?? (ariaLabelledBy === void 0 ? tooltipLabel : void 0),
@@ -624,7 +625,7 @@ function ButtonGroup({
624
625
  item.id
625
626
  );
626
627
  }
627
- return /* @__PURE__ */ jsxRuntime.jsx(chunkSHNVBKAJ_js.ConditionalTooltip, { tooltip: item.tooltip, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { ...buttonBaseProps, leftIcon: item.icon, children: item.label }) }, item.id);
628
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkLDCNEHLQ_js.ConditionalTooltip, { tooltip: item.tooltip, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { ...buttonBaseProps, leftIcon: item.icon, children: item.label }) }, item.id);
628
629
  })
629
630
  }
630
631
  );
@@ -1024,12 +1025,12 @@ function DatePicker({ type = "single", showOutsideDays = true, ...rest }) {
1024
1025
  }
1025
1026
  var dropdownVariants = {
1026
1027
  content: utils.cn(
1027
- chunkSHNVBKAJ_js.overlayListVariants.content,
1028
+ chunkLDCNEHLQ_js.overlayListVariants.content,
1028
1029
  "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
1029
1030
  ),
1030
- viewport: chunkSHNVBKAJ_js.overlayListVariants.viewport,
1031
- item: (props) => utils.cn(chunkSHNVBKAJ_js.overlayListVariants.item(props), "focus:bg-elevation-elevation-2"),
1032
- slotSize: chunkSHNVBKAJ_js.overlayListVariants.slotSize,
1031
+ viewport: chunkLDCNEHLQ_js.overlayListVariants.viewport,
1032
+ item: (props) => utils.cn(chunkLDCNEHLQ_js.overlayListVariants.item(props), "focus:bg-elevation-elevation-2"),
1033
+ slotSize: chunkLDCNEHLQ_js.overlayListVariants.slotSize,
1033
1034
  separator: utils.cn("my-0.5 h-px bg-border-primary"),
1034
1035
  label: utils.cva("px-2 font-medium text-text-secondary", {
1035
1036
  defaultVariants: { size: "medium" },
@@ -1080,9 +1081,9 @@ Dropdown.Item = React.forwardRef(({ className, children, leftSlot, rightSlot, si
1080
1081
  className: utils.cn(dropdownVariants.item({ size }), className),
1081
1082
  ...props,
1082
1083
  children: [
1083
- leftSlot && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkSHNVBKAJ_js.overlayListVariants.slotSize({ size }), children: leftSlot }),
1084
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: utils.cn(chunkSHNVBKAJ_js.overlayListVariants.itemText({ size }), "min-w-0 flex-1 truncate"), children }),
1085
- rightSlot && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkSHNVBKAJ_js.overlayListVariants.slotSize({ size }), children: rightSlot })
1084
+ leftSlot && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkLDCNEHLQ_js.overlayListVariants.slotSize({ size }), children: leftSlot }),
1085
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: utils.cn(chunkLDCNEHLQ_js.overlayListVariants.itemText({ size }), "min-w-0 flex-1 truncate"), children }),
1086
+ rightSlot && /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkLDCNEHLQ_js.overlayListVariants.slotSize({ size }), children: rightSlot })
1086
1087
  ]
1087
1088
  }
1088
1089
  );
@@ -1127,8 +1128,8 @@ var useTextAreaContext = () => {
1127
1128
  return context;
1128
1129
  };
1129
1130
  var textAreaVariants = {
1130
- container: chunkSHNVBKAJ_js.commonInputVariants.container,
1131
- label: chunkSHNVBKAJ_js.commonInputVariants.label,
1131
+ container: chunkLDCNEHLQ_js.commonInputVariants.container,
1132
+ label: chunkLDCNEHLQ_js.commonInputVariants.label,
1132
1133
  field: utils.cva(
1133
1134
  "scrollbar-overlay block w-full resize-none rounded-medium border transition-colors focus:outline-none",
1134
1135
  {
@@ -1182,7 +1183,7 @@ var textAreaVariants = {
1182
1183
  },
1183
1184
  defaultVariants: { size: "medium" }
1184
1185
  }),
1185
- description: chunkSHNVBKAJ_js.commonInputVariants.description,
1186
+ description: chunkLDCNEHLQ_js.commonInputVariants.description,
1186
1187
  counter: utils.cva("text-nowrap font-regular", {
1187
1188
  variants: {
1188
1189
  disabled: {
@@ -1323,7 +1324,7 @@ var TextField = React.forwardRef(
1323
1324
  }, ref) => {
1324
1325
  const uniqueId = React.useId();
1325
1326
  const id = providedId || `text-field-${uniqueId}`;
1326
- return /* @__PURE__ */ jsxRuntime.jsx(TextFieldContext.Provider, { value: { variant, size, error, disabled, id, value, onChange }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils.cn(chunkSHNVBKAJ_js.textFieldVariants.container(), className), children: children || /* @__PURE__ */ jsxRuntime.jsx(TextField.Input, { ...inputProps }) }) });
1327
+ return /* @__PURE__ */ jsxRuntime.jsx(TextFieldContext.Provider, { value: { variant, size, error, disabled, id, value, onChange }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils.cn(chunkLDCNEHLQ_js.textFieldVariants.container(), className), children: children || /* @__PURE__ */ jsxRuntime.jsx(TextField.Input, { ...inputProps }) }) });
1327
1328
  }
1328
1329
  );
1329
1330
  TextField.Label = React.forwardRef(
@@ -1334,7 +1335,7 @@ TextField.Label = React.forwardRef(
1334
1335
  {
1335
1336
  ref,
1336
1337
  htmlFor: id,
1337
- className: utils.cn(chunkSHNVBKAJ_js.textFieldVariants.label({ size, disabled, required }), className),
1338
+ className: utils.cn(chunkLDCNEHLQ_js.textFieldVariants.label({ size, disabled, required }), className),
1338
1339
  children
1339
1340
  }
1340
1341
  );
@@ -1353,11 +1354,11 @@ TextField.Input = React.forwardRef(
1353
1354
  } = useTextFieldContext();
1354
1355
  const state = disabled ? "disabled" : error ? "error" : "default";
1355
1356
  const isControlled = contextValue !== void 0;
1356
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: utils.cn(chunkSHNVBKAJ_js.textFieldVariants.wrapper({ variant, size, state }), className), children: [
1357
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: utils.cn(chunkLDCNEHLQ_js.textFieldVariants.wrapper({ variant, size, state }), className), children: [
1357
1358
  leftIcon && /* @__PURE__ */ jsxRuntime.jsx(
1358
1359
  "span",
1359
1360
  {
1360
- className: utils.cn("flex items-center justify-center", chunkSHNVBKAJ_js.textFieldVariants.icon({ size })),
1361
+ className: utils.cn("flex items-center justify-center", chunkLDCNEHLQ_js.textFieldVariants.icon({ size })),
1361
1362
  children: leftIcon
1362
1363
  }
1363
1364
  ),
@@ -1368,7 +1369,7 @@ TextField.Input = React.forwardRef(
1368
1369
  ref,
1369
1370
  id,
1370
1371
  disabled,
1371
- className: utils.cn(chunkSHNVBKAJ_js.textFieldVariants.input({ size, state })),
1372
+ className: utils.cn(chunkLDCNEHLQ_js.textFieldVariants.input({ size, state })),
1372
1373
  onChange: (e) => {
1373
1374
  contextOnChange?.(e);
1374
1375
  },
@@ -1376,12 +1377,12 @@ TextField.Input = React.forwardRef(
1376
1377
  ...isControlled ? { value: contextValue } : {}
1377
1378
  }
1378
1379
  ),
1379
- subText && /* @__PURE__ */ jsxRuntime.jsx("span", { className: utils.cn(chunkSHNVBKAJ_js.textFieldVariants.subText({ size, disabled })), children: subText })
1380
+ subText && /* @__PURE__ */ jsxRuntime.jsx("span", { className: utils.cn(chunkLDCNEHLQ_js.textFieldVariants.subText({ size, disabled })), children: subText })
1380
1381
  ] }),
1381
1382
  rightIcon && /* @__PURE__ */ jsxRuntime.jsx(
1382
1383
  "span",
1383
1384
  {
1384
- className: utils.cn("flex items-center justify-center", chunkSHNVBKAJ_js.textFieldVariants.icon({ size })),
1385
+ className: utils.cn("flex items-center justify-center", chunkLDCNEHLQ_js.textFieldVariants.icon({ size })),
1385
1386
  children: rightIcon
1386
1387
  }
1387
1388
  )
@@ -1395,7 +1396,7 @@ TextField.Description = React.forwardRef(
1395
1396
  "p",
1396
1397
  {
1397
1398
  ref,
1398
- className: utils.cn(chunkSHNVBKAJ_js.textFieldVariants.description({ size, error, disabled }), className),
1399
+ className: utils.cn(chunkLDCNEHLQ_js.textFieldVariants.description({ size, error, disabled }), className),
1399
1400
  children
1400
1401
  }
1401
1402
  );
@@ -1514,7 +1515,7 @@ function ModalBody({
1514
1515
  scroll && "h-full [&_[data-slot=scroll-area-viewport]>div]:h-full"
1515
1516
  ),
1516
1517
  ...props,
1517
- children: scroll ? /* @__PURE__ */ jsxRuntime.jsx(chunkSHNVBKAJ_js.ScrollArea, { className: "h-full flex flex-col", disableHorizontalScroll: !horizontalScroll, children: content }) : content
1518
+ children: scroll ? /* @__PURE__ */ jsxRuntime.jsx(chunkLDCNEHLQ_js.ScrollArea, { className: "h-full flex flex-col", disableHorizontalScroll: !horizontalScroll, children: content }) : content
1518
1519
  }
1519
1520
  );
1520
1521
  }
@@ -1639,55 +1640,16 @@ var Modal = Object.assign(ModalRoot, {
1639
1640
  Description: ModalDescription
1640
1641
  });
1641
1642
 
1642
- // src/hooks/useOverlayDismissGuard.ts
1643
- var isBaseUiPopupOpen = () => Boolean(
1644
- document.querySelector('[data-base-ui-portal] [data-slot="combobox-content"][data-open]')
1645
- );
1646
- var isTargetInsideBaseUiPopup = (target) => target instanceof Element && Boolean(target.closest("[data-base-ui-portal]"));
1647
- var shouldPreventDismissForSelect = (target) => {
1648
- const isSelectOpen = Boolean(
1649
- document.querySelector('[data-radix-select-content][data-state="open"]')
1650
- );
1651
- if (isSelectOpen) {
1652
- return true;
1653
- }
1654
- if (!(target instanceof Element)) {
1655
- return false;
1656
- }
1657
- return Boolean(
1658
- target.closest("[data-radix-select-content]") || target.closest("[data-radix-select-viewport]")
1659
- );
1660
- };
1661
- function useOverlayDismissGuard({
1662
- onInteractOutside,
1663
- onEscapeKeyDown
1664
- }) {
1665
- const handleInteractOutside = (event) => {
1666
- if (shouldPreventDismissForSelect(event.target) || isTargetInsideBaseUiPopup(event.target)) {
1667
- event.preventDefault();
1668
- }
1669
- onInteractOutside?.(event);
1670
- };
1671
- const handleEscapeKeyDown = (event) => {
1672
- if (isBaseUiPopupOpen()) {
1673
- event.preventDefault();
1674
- }
1675
- onEscapeKeyDown?.(event);
1676
- };
1677
- return { onEscapeKeyDown: handleEscapeKeyDown, onInteractOutside: handleInteractOutside };
1678
- }
1679
-
1680
1643
  // src/sheet/sheetResize.ts
1681
1644
  var SHEET_EDGE_GAP = "[--sheet-edge-gap:40px]";
1682
- var getAxis = (side) => side === "left" || side === "right" ? "horizontal" : "vertical";
1683
- var getDefaults = (axis) => axis === "horizontal" ? { minSize: 400, maxSize: "80%", defaultSize: 800 } : { minSize: 300, maxSize: "80%", defaultSize: 600 };
1684
- var resolveMaxSize = (maxSize, axis) => {
1645
+ var SHEET_SIZE_DEFAULTS = { minSize: 400, maxSize: "80%", defaultSize: 800 };
1646
+ var resolveMaxSize = (maxSize) => {
1685
1647
  if (typeof maxSize === "number") {
1686
1648
  return maxSize;
1687
1649
  }
1688
1650
  const value = Number.parseFloat(maxSize);
1689
1651
  if (maxSize.trim().endsWith("%") && Number.isFinite(value)) {
1690
- return `${value}${axis === "horizontal" ? "vw" : "vh"}`;
1652
+ return `${value}vw`;
1691
1653
  }
1692
1654
  return maxSize;
1693
1655
  };
@@ -1718,67 +1680,49 @@ var writeStoredSize = (key, size) => {
1718
1680
  };
1719
1681
  var ENABLE_BY_SIDE = {
1720
1682
  right: { left: true },
1721
- left: { right: true },
1722
- top: { bottom: true },
1723
- bottom: { top: true }
1683
+ left: { right: true }
1724
1684
  };
1725
1685
  var HANDLE_EDGE_BY_SIDE = {
1726
1686
  right: "left",
1727
- left: "right",
1728
- top: "bottom",
1729
- bottom: "top"
1687
+ left: "right"
1730
1688
  };
1731
- var SheetResizeHandle = ({ axis, active }) => /* @__PURE__ */ jsxRuntime.jsx(
1732
- "div",
1689
+ var SheetResizeHandle = ({ active }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "group/sheet-handle flex h-full w-full cursor-col-resize items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
1690
+ "span",
1733
1691
  {
1734
1692
  className: utils.cn(
1735
- "group/sheet-handle flex h-full w-full items-center justify-center",
1736
- axis === "horizontal" ? "cursor-col-resize" : "cursor-row-resize"
1737
- ),
1738
- children: /* @__PURE__ */ jsxRuntime.jsx(
1739
- "span",
1740
- {
1741
- className: utils.cn(
1742
- "transition-colors group-hover/sheet-handle:bg-border-accent",
1743
- active ? "bg-border-accent" : "bg-border-primary",
1744
- axis === "horizontal" ? "h-full w-px" : "h-px w-full"
1745
- )
1746
- }
1693
+ "transition-colors group-hover/sheet-handle:bg-border-accent",
1694
+ active ? "bg-border-accent" : "bg-border-primary",
1695
+ "h-full w-px"
1747
1696
  )
1748
1697
  }
1749
- );
1698
+ ) });
1750
1699
  var SheetResizableBox = ({ side, options, children }) => {
1751
1700
  const { minSize, maxSize, defaultSize, storageKey, onResize } = options;
1752
- const axis = getAxis(side);
1753
- const isHorizontal = axis === "horizontal";
1754
- const defaults = getDefaults(axis);
1755
- const resolvedMin = minSize ?? defaults.minSize;
1756
- const resolvedMax = resolveMaxSize(maxSize ?? defaults.maxSize, axis);
1701
+ const resolvedMin = minSize ?? SHEET_SIZE_DEFAULTS.minSize;
1702
+ const resolvedMax = resolveMaxSize(maxSize ?? SHEET_SIZE_DEFAULTS.maxSize);
1757
1703
  const [initialSize] = React.useState(() => {
1758
1704
  const stored = storageKey ? readStoredSize(storageKey) : null;
1759
- return Math.max(stored ?? defaultSize ?? defaults.defaultSize, resolvedMin);
1705
+ return Math.max(stored ?? defaultSize ?? SHEET_SIZE_DEFAULTS.defaultSize, resolvedMin);
1760
1706
  });
1761
1707
  const [resizing, setResizing] = React.useState(false);
1762
1708
  const handleResizeStop = (_event, _direction, refElement) => {
1763
1709
  setResizing(false);
1764
- const next = isHorizontal ? refElement.offsetWidth : refElement.offsetHeight;
1710
+ const next = refElement.offsetWidth;
1765
1711
  if (storageKey) {
1766
1712
  writeStoredSize(storageKey, next);
1767
1713
  }
1768
1714
  onResize?.(next);
1769
1715
  };
1770
1716
  const handleComponent = {
1771
- [HANDLE_EDGE_BY_SIDE[side]]: /* @__PURE__ */ jsxRuntime.jsx(SheetResizeHandle, { axis, active: resizing })
1717
+ [HANDLE_EDGE_BY_SIDE[side]]: /* @__PURE__ */ jsxRuntime.jsx(SheetResizeHandle, { active: resizing })
1772
1718
  };
1773
1719
  return /* @__PURE__ */ jsxRuntime.jsx(
1774
1720
  reResizable.Resizable,
1775
1721
  {
1776
1722
  enable: ENABLE_BY_SIDE[side],
1777
- defaultSize: isHorizontal ? { width: initialSize, height: "100%" } : { width: "100%", height: initialSize },
1778
- minWidth: isHorizontal ? resolvedMin : void 0,
1779
- maxWidth: isHorizontal ? resolvedMax : void 0,
1780
- minHeight: isHorizontal ? void 0 : resolvedMin,
1781
- maxHeight: isHorizontal ? void 0 : resolvedMax,
1723
+ defaultSize: { width: initialSize, height: "100%" },
1724
+ minWidth: resolvedMin,
1725
+ maxWidth: resolvedMax,
1782
1726
  onResizeStart: () => setResizing(true),
1783
1727
  onResizeStop: handleResizeStop,
1784
1728
  handleComponent,
@@ -1787,135 +1731,132 @@ var SheetResizableBox = ({ side, options, children }) => {
1787
1731
  }
1788
1732
  );
1789
1733
  };
1790
- var SHEET_CONTENT_BASE = "fixed z-50 data-[state=open]:duration-300 data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0";
1734
+ var SHEET_TRANSITION = "transition-[transform,translate,opacity] duration-300 ease-out data-[ending-style]:duration-200";
1791
1735
  var SHEET_CONTENT_BOX = "flex flex-col border-border-primary bg-background-primary shadow-strong";
1792
- var SHEET_SIDE_CLASSES = {
1793
- right: "inset-y-0 right-0 h-full w-[800px] max-w-[calc(100vw-var(--sheet-edge-gap))] border-l data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right",
1794
- left: "inset-y-0 left-0 h-full w-[800px] max-w-[calc(100vw-var(--sheet-edge-gap))] border-r data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",
1795
- top: "inset-x-0 top-0 w-full h-auto max-h-[calc(100vh-var(--sheet-edge-gap))] border-b data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
1796
- bottom: "inset-x-0 bottom-0 w-full h-auto max-h-[calc(100vh-var(--sheet-edge-gap))] border-t data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom"
1736
+ var SHEET_ANCHOR = {
1737
+ right: "inset-y-0 right-0 max-w-[calc(100vw-var(--sheet-edge-gap))]",
1738
+ left: "inset-y-0 left-0 max-w-[calc(100vw-var(--sheet-edge-gap))]"
1797
1739
  };
1798
- var SHEET_RESIZE_SIDE_CLASSES = {
1799
- right: "inset-y-0 right-0 max-w-[calc(100vw-var(--sheet-edge-gap))] data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right",
1800
- left: "inset-y-0 left-0 max-w-[calc(100vw-var(--sheet-edge-gap))] data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",
1801
- top: "inset-x-0 top-0 max-h-[calc(100vh-var(--sheet-edge-gap))] data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
1802
- bottom: "inset-x-0 bottom-0 max-h-[calc(100vh-var(--sheet-edge-gap))] data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom"
1740
+ var SHEET_SLIDE = {
1741
+ right: "data-[starting-style]:translate-x-full data-[ending-style]:translate-x-full",
1742
+ left: "data-[starting-style]:-translate-x-full data-[ending-style]:-translate-x-full"
1803
1743
  };
1804
- var SheetContext = React.createContext({ side: "right" });
1805
- var SheetRoot = (props) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive2__namespace.Root, { ...props });
1806
- var Sheet = SheetRoot;
1807
- Sheet.Trigger = React.forwardRef(
1808
- (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive2__namespace.Trigger, { ref, ...props })
1809
- );
1810
- Sheet.Portal = (props) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive2__namespace.Portal, { ...props });
1811
- Sheet.Close = React.forwardRef(
1812
- (props, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive2__namespace.Close, { ref, ...props })
1813
- );
1814
- Sheet.Overlay = React.forwardRef(
1815
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1816
- DialogPrimitive2__namespace.Overlay,
1744
+ var SHEET_BOX_SIZE = {
1745
+ right: "h-full w-[800px] border-l",
1746
+ left: "h-full w-[800px] border-r"
1747
+ };
1748
+ var SheetModalContext = React.createContext(void 0);
1749
+ function SheetRoot(props) {
1750
+ return /* @__PURE__ */ jsxRuntime.jsx(SheetModalContext.Provider, { value: props.modal, children: /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Root, { ...props }) });
1751
+ }
1752
+ function SheetTrigger(props) {
1753
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Trigger, { "data-slot": "sheet-trigger", ...props });
1754
+ }
1755
+ function SheetPortal(props) {
1756
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Portal, { ...props });
1757
+ }
1758
+ function SheetOverlay({ className, ...props }) {
1759
+ return /* @__PURE__ */ jsxRuntime.jsx(
1760
+ dialog.Dialog.Backdrop,
1817
1761
  {
1818
- ref,
1762
+ "data-slot": "sheet-overlay",
1819
1763
  className: utils.cn(
1820
- "fixed inset-0 z-50 bg-component-dim data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1764
+ "fixed inset-0 z-50 bg-component-dim",
1765
+ "transition-opacity duration-300 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0",
1821
1766
  className
1822
1767
  ),
1823
1768
  ...props
1824
1769
  }
1825
- )
1826
- );
1827
- Sheet.Content = React.forwardRef(
1828
- ({
1829
- className,
1830
- children,
1831
- side = "right",
1832
- resizable = false,
1833
- onInteractOutside,
1834
- onEscapeKeyDown,
1835
- ...props
1836
- }, ref) => {
1837
- const resizeOptions = typeof resizable === "object" ? resizable : { use: resizable };
1838
- const isResizable = resizeOptions.use ?? true;
1839
- const dismissGuard = useOverlayDismissGuard({ onEscapeKeyDown, onInteractOutside });
1840
- return /* @__PURE__ */ jsxRuntime.jsx(SheetContext.Provider, { value: { side }, children: /* @__PURE__ */ jsxRuntime.jsxs(Sheet.Portal, { children: [
1841
- /* @__PURE__ */ jsxRuntime.jsx(Sheet.Overlay, {}),
1842
- /* @__PURE__ */ jsxRuntime.jsx(
1843
- DialogPrimitive2__namespace.Content,
1844
- {
1845
- ref,
1846
- className: utils.cn(
1847
- SHEET_CONTENT_BASE,
1848
- SHEET_EDGE_GAP,
1849
- isResizable ? SHEET_RESIZE_SIDE_CLASSES[side] : utils.cn(SHEET_CONTENT_BOX, SHEET_SIDE_CLASSES[side]),
1850
- className
1851
- ),
1852
- ...props,
1853
- ...dismissGuard,
1854
- children: isResizable ? /* @__PURE__ */ jsxRuntime.jsx(SheetResizableBox, { side, options: resizeOptions, children }) : children
1855
- }
1856
- )
1857
- ] }) });
1858
- }
1859
- );
1860
- Sheet.Header = React.forwardRef(
1861
- ({ className, line = true, rightSlot, children, ...props }, ref) => {
1862
- const rightElement = rightSlot === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
1863
- DialogPrimitive2__namespace.Close,
1864
- {
1865
- className: utils.cn(
1866
- "flex shrink-0 items-center justify-center size-8 rounded-medium text-icon-secondary transition-colors hover:bg-elevation-elevation-2 focus:outline-none disabled:pointer-events-none"
1867
- ),
1868
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkJIFX424V_js.X, { type: "regular", size: 20 })
1869
- }
1870
- ) : rightSlot;
1871
- return /* @__PURE__ */ jsxRuntime.jsxs(
1872
- "div",
1770
+ );
1771
+ }
1772
+ function SheetContent({
1773
+ className,
1774
+ children,
1775
+ side: sideProp = "right",
1776
+ resizable = false,
1777
+ ...props
1778
+ }) {
1779
+ const side = sideProp === "left" ? "left" : "right";
1780
+ const modal = React.useContext(SheetModalContext);
1781
+ const resizeOptions = typeof resizable === "object" ? resizable : { use: resizable };
1782
+ const isResizable = resizeOptions.use ?? true;
1783
+ const showOverlay = modal !== false && modal !== "trap-focus";
1784
+ return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
1785
+ showOverlay && /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
1786
+ /* @__PURE__ */ jsxRuntime.jsx(
1787
+ dialog.Dialog.Popup,
1873
1788
  {
1874
- ref,
1789
+ "data-slot": "sheet-content",
1875
1790
  className: utils.cn(
1876
- "flex shrink-0 flex-row items-center gap-2 h-12 pl-4 pr-2",
1877
- line && "border-b border-border-primary",
1791
+ "fixed z-50",
1792
+ SHEET_EDGE_GAP,
1793
+ SHEET_TRANSITION,
1794
+ SHEET_ANCHOR[side],
1795
+ SHEET_SLIDE[side],
1796
+ !isResizable && utils.cn(SHEET_CONTENT_BOX, SHEET_BOX_SIZE[side]),
1878
1797
  className
1879
1798
  ),
1880
1799
  ...props,
1881
- children: [
1882
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 flex-row items-center gap-1", children }),
1883
- rightElement ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 flex-row items-center", children: rightElement }) : null
1884
- ]
1885
- }
1886
- );
1887
- }
1888
- );
1889
- Sheet.Body = React.forwardRef(
1890
- ({ className, children, ...props }, ref) => {
1891
- const { side } = React.useContext(SheetContext);
1892
- const disableHorizontalScroll = side === "left" || side === "right";
1893
- return /* @__PURE__ */ jsxRuntime.jsx(
1894
- "div",
1895
- {
1896
- ref,
1897
- className: utils.cn(
1898
- "flex-1 flex flex-col min-h-0 h-full",
1899
- "[&_[data-slot=scroll-area-viewport]>div]:h-full"
1900
- ),
1901
- ...props,
1902
- children: /* @__PURE__ */ jsxRuntime.jsx(
1903
- chunkSHNVBKAJ_js.ScrollArea,
1904
- {
1905
- className: "h-full flex flex-col",
1906
- disableHorizontalScroll,
1907
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: utils.cn("p-4", className), children })
1908
- }
1909
- )
1800
+ children: isResizable ? /* @__PURE__ */ jsxRuntime.jsx(SheetResizableBox, { side, options: resizeOptions, children }) : children
1910
1801
  }
1911
- );
1912
- }
1913
- );
1914
- Sheet.Footer = React.forwardRef(
1915
- ({ className, line = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1802
+ )
1803
+ ] });
1804
+ }
1805
+ function SheetHeader({ className, line = true, rightSlot, children, ...props }) {
1806
+ const rightElement = rightSlot === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
1807
+ dialog.Dialog.Close,
1808
+ {
1809
+ "data-slot": "sheet-close-icon",
1810
+ className: utils.cn(
1811
+ "flex shrink-0 items-center justify-center size-8 rounded-medium text-icon-secondary transition-colors hover:bg-elevation-elevation-2 focus:outline-none disabled:pointer-events-none"
1812
+ ),
1813
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkJIFX424V_js.X, { type: "regular", size: 20 })
1814
+ }
1815
+ ) : rightSlot;
1816
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1916
1817
  "div",
1917
1818
  {
1918
- ref,
1819
+ "data-slot": "sheet-header",
1820
+ className: utils.cn(
1821
+ "flex shrink-0 flex-row items-center gap-2 h-12 pl-4 pr-2",
1822
+ line && "border-b border-border-primary",
1823
+ className
1824
+ ),
1825
+ ...props,
1826
+ children: [
1827
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 flex-row items-center gap-1", children }),
1828
+ rightElement ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 flex-row items-center", children: rightElement }) : null
1829
+ ]
1830
+ }
1831
+ );
1832
+ }
1833
+ function SheetBody({ className, children, scroll = true, ...props }) {
1834
+ const content = /* @__PURE__ */ jsxRuntime.jsx("div", { className: utils.cn("p-4", className), children });
1835
+ return /* @__PURE__ */ jsxRuntime.jsx(
1836
+ "div",
1837
+ {
1838
+ "data-slot": "sheet-body",
1839
+ className: utils.cn(
1840
+ "flex-1 flex flex-col min-h-0",
1841
+ scroll && "h-full [&_[data-slot=scroll-area-viewport]>div]:h-full"
1842
+ ),
1843
+ ...props,
1844
+ children: scroll ? /* @__PURE__ */ jsxRuntime.jsx(
1845
+ chunkLDCNEHLQ_js.ScrollArea,
1846
+ {
1847
+ className: "h-full flex flex-col",
1848
+ disableHorizontalScroll: true,
1849
+ children: content
1850
+ }
1851
+ ) : content
1852
+ }
1853
+ );
1854
+ }
1855
+ function SheetFooter({ className, line = true, ...props }) {
1856
+ return /* @__PURE__ */ jsxRuntime.jsx(
1857
+ "div",
1858
+ {
1859
+ "data-slot": "sheet-footer",
1919
1860
  className: utils.cn(
1920
1861
  "flex flex-row items-center justify-between h-14 gap-3 px-4 py-3",
1921
1862
  line && "border-t border-border-primary",
@@ -1923,13 +1864,19 @@ Sheet.Footer = React.forwardRef(
1923
1864
  ),
1924
1865
  ...props
1925
1866
  }
1926
- )
1927
- );
1928
- Sheet.FooterDescription = React.forwardRef(
1929
- ({ className, error = false, icon, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1867
+ );
1868
+ }
1869
+ function SheetFooterDescription({
1870
+ className,
1871
+ error = false,
1872
+ icon,
1873
+ children,
1874
+ ...props
1875
+ }) {
1876
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1930
1877
  "div",
1931
1878
  {
1932
- ref,
1879
+ "data-slot": "sheet-footer-description",
1933
1880
  className: utils.cn(
1934
1881
  "flex flex-row items-center gap-1 text-body-3",
1935
1882
  error ? "text-text-critical" : "text-text-tertiary",
@@ -1941,43 +1888,71 @@ Sheet.FooterDescription = React.forwardRef(
1941
1888
  children
1942
1889
  ]
1943
1890
  }
1944
- )
1945
- );
1946
- Sheet.Actions = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: utils.cn("ml-auto flex flex-row items-center gap-2", className), ...props }));
1947
- Sheet.Title = React.forwardRef(
1948
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1949
- DialogPrimitive2__namespace.Title,
1891
+ );
1892
+ }
1893
+ function SheetActions({ className, ...props }) {
1894
+ return /* @__PURE__ */ jsxRuntime.jsx(
1895
+ "div",
1950
1896
  {
1951
- ref,
1897
+ "data-slot": "sheet-actions",
1898
+ className: utils.cn("ml-auto flex flex-row items-center gap-2", className),
1899
+ ...props
1900
+ }
1901
+ );
1902
+ }
1903
+ function SheetClose(props) {
1904
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Close, { "data-slot": "sheet-close", ...props });
1905
+ }
1906
+ function SheetTitle({ className, ...props }) {
1907
+ return /* @__PURE__ */ jsxRuntime.jsx(
1908
+ dialog.Dialog.Title,
1909
+ {
1910
+ "data-slot": "sheet-title",
1952
1911
  className: utils.cn(
1953
1912
  "text-body-1 font-semibold leading-none tracking-tight text-text-primary",
1954
1913
  className
1955
1914
  ),
1956
1915
  ...props
1957
1916
  }
1958
- )
1959
- );
1960
- Sheet.Description = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1961
- DialogPrimitive2__namespace.Description,
1962
- {
1963
- ref,
1964
- className: utils.cn("text-body-2 text-text-tertiary", className),
1965
- ...props
1966
- }
1967
- ));
1968
- Sheet.displayName = "Sheet";
1969
- Sheet.Trigger.displayName = "Sheet.Trigger";
1970
- Sheet.Portal.displayName = "Sheet.Portal";
1971
- Sheet.Close.displayName = "Sheet.Close";
1972
- Sheet.Overlay.displayName = "Sheet.Overlay";
1973
- Sheet.Content.displayName = "Sheet.Content";
1974
- Sheet.Header.displayName = "Sheet.Header";
1975
- Sheet.Body.displayName = "Sheet.Body";
1976
- Sheet.Footer.displayName = "Sheet.Footer";
1977
- Sheet.FooterDescription.displayName = "Sheet.FooterDescription";
1978
- Sheet.Actions.displayName = "Sheet.Actions";
1979
- Sheet.Title.displayName = "Sheet.Title";
1980
- Sheet.Description.displayName = "Sheet.Description";
1917
+ );
1918
+ }
1919
+ function SheetDescription({ className, ...props }) {
1920
+ return /* @__PURE__ */ jsxRuntime.jsx(
1921
+ dialog.Dialog.Description,
1922
+ {
1923
+ "data-slot": "sheet-description",
1924
+ className: utils.cn("text-body-2 text-text-tertiary", className),
1925
+ ...props
1926
+ }
1927
+ );
1928
+ }
1929
+ SheetRoot.displayName = "Sheet";
1930
+ SheetTrigger.displayName = "Sheet.Trigger";
1931
+ SheetPortal.displayName = "Sheet.Portal";
1932
+ SheetClose.displayName = "Sheet.Close";
1933
+ SheetOverlay.displayName = "Sheet.Overlay";
1934
+ SheetContent.displayName = "Sheet.Content";
1935
+ SheetHeader.displayName = "Sheet.Header";
1936
+ SheetBody.displayName = "Sheet.Body";
1937
+ SheetFooter.displayName = "Sheet.Footer";
1938
+ SheetFooterDescription.displayName = "Sheet.FooterDescription";
1939
+ SheetActions.displayName = "Sheet.Actions";
1940
+ SheetTitle.displayName = "Sheet.Title";
1941
+ SheetDescription.displayName = "Sheet.Description";
1942
+ var Sheet = Object.assign(SheetRoot, {
1943
+ Trigger: SheetTrigger,
1944
+ Portal: SheetPortal,
1945
+ Close: SheetClose,
1946
+ Overlay: SheetOverlay,
1947
+ Content: SheetContent,
1948
+ Header: SheetHeader,
1949
+ Body: SheetBody,
1950
+ Footer: SheetFooter,
1951
+ FooterDescription: SheetFooterDescription,
1952
+ Actions: SheetActions,
1953
+ Title: SheetTitle,
1954
+ Description: SheetDescription
1955
+ });
1981
1956
  var MESSAGE_BOX_TRANSITION = "transition-[transform,scale,opacity] duration-200 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0";
1982
1957
  var MessageBoxContext = React.createContext({ variant: "default" });
1983
1958
  function MessageBoxRoot(props) {
@@ -2554,95 +2529,95 @@ var buttonize = (fn) => {
2554
2529
 
2555
2530
  Object.defineProperty(exports, "ColorPalette", {
2556
2531
  enumerable: true,
2557
- get: function () { return chunkSHNVBKAJ_js.ColorPalette; }
2532
+ get: function () { return chunkLDCNEHLQ_js.ColorPalette; }
2558
2533
  });
2559
2534
  Object.defineProperty(exports, "ColorPaletteColors", {
2560
2535
  enumerable: true,
2561
- get: function () { return chunkSHNVBKAJ_js.ColorPaletteColors; }
2536
+ get: function () { return chunkLDCNEHLQ_js.ColorPaletteColors; }
2562
2537
  });
2563
2538
  Object.defineProperty(exports, "Combobox", {
2564
2539
  enumerable: true,
2565
- get: function () { return chunkSHNVBKAJ_js.Combobox; }
2540
+ get: function () { return chunkLDCNEHLQ_js.Combobox; }
2566
2541
  });
2567
2542
  Object.defineProperty(exports, "ComboboxContent", {
2568
2543
  enumerable: true,
2569
- get: function () { return chunkSHNVBKAJ_js.ComboboxContent; }
2544
+ get: function () { return chunkLDCNEHLQ_js.ComboboxContent; }
2570
2545
  });
2571
2546
  Object.defineProperty(exports, "ComboboxDescription", {
2572
2547
  enumerable: true,
2573
- get: function () { return chunkSHNVBKAJ_js.ComboboxDescription; }
2548
+ get: function () { return chunkLDCNEHLQ_js.ComboboxDescription; }
2574
2549
  });
2575
2550
  Object.defineProperty(exports, "ComboboxEmpty", {
2576
2551
  enumerable: true,
2577
- get: function () { return chunkSHNVBKAJ_js.ComboboxEmpty; }
2552
+ get: function () { return chunkLDCNEHLQ_js.ComboboxEmpty; }
2578
2553
  });
2579
2554
  Object.defineProperty(exports, "ComboboxInput", {
2580
2555
  enumerable: true,
2581
- get: function () { return chunkSHNVBKAJ_js.ComboboxInput; }
2556
+ get: function () { return chunkLDCNEHLQ_js.ComboboxInput; }
2582
2557
  });
2583
2558
  Object.defineProperty(exports, "ComboboxItem", {
2584
2559
  enumerable: true,
2585
- get: function () { return chunkSHNVBKAJ_js.ComboboxItem; }
2560
+ get: function () { return chunkLDCNEHLQ_js.ComboboxItem; }
2586
2561
  });
2587
2562
  Object.defineProperty(exports, "ComboboxLabel", {
2588
2563
  enumerable: true,
2589
- get: function () { return chunkSHNVBKAJ_js.ComboboxLabel; }
2564
+ get: function () { return chunkLDCNEHLQ_js.ComboboxLabel; }
2590
2565
  });
2591
2566
  Object.defineProperty(exports, "ComboboxList", {
2592
2567
  enumerable: true,
2593
- get: function () { return chunkSHNVBKAJ_js.ComboboxList; }
2568
+ get: function () { return chunkLDCNEHLQ_js.ComboboxList; }
2594
2569
  });
2595
2570
  Object.defineProperty(exports, "ComboboxSearch", {
2596
2571
  enumerable: true,
2597
- get: function () { return chunkSHNVBKAJ_js.ComboboxSearch; }
2572
+ get: function () { return chunkLDCNEHLQ_js.ComboboxSearch; }
2598
2573
  });
2599
2574
  Object.defineProperty(exports, "ComboboxTrigger", {
2600
2575
  enumerable: true,
2601
- get: function () { return chunkSHNVBKAJ_js.ComboboxTrigger; }
2576
+ get: function () { return chunkLDCNEHLQ_js.ComboboxTrigger; }
2602
2577
  });
2603
2578
  Object.defineProperty(exports, "ComboboxValue", {
2604
2579
  enumerable: true,
2605
- get: function () { return chunkSHNVBKAJ_js.ComboboxValue; }
2580
+ get: function () { return chunkLDCNEHLQ_js.ComboboxValue; }
2606
2581
  });
2607
2582
  Object.defineProperty(exports, "DEFAULT_COLOR", {
2608
2583
  enumerable: true,
2609
- get: function () { return chunkSHNVBKAJ_js.DEFAULT_COLOR; }
2584
+ get: function () { return chunkLDCNEHLQ_js.DEFAULT_COLOR; }
2610
2585
  });
2611
2586
  Object.defineProperty(exports, "ScrollArea", {
2612
2587
  enumerable: true,
2613
- get: function () { return chunkSHNVBKAJ_js.ScrollArea; }
2588
+ get: function () { return chunkLDCNEHLQ_js.ScrollArea; }
2614
2589
  });
2615
2590
  Object.defineProperty(exports, "ScrollBar", {
2616
2591
  enumerable: true,
2617
- get: function () { return chunkSHNVBKAJ_js.ScrollBar; }
2592
+ get: function () { return chunkLDCNEHLQ_js.ScrollBar; }
2618
2593
  });
2619
2594
  Object.defineProperty(exports, "Segment", {
2620
2595
  enumerable: true,
2621
- get: function () { return chunkSHNVBKAJ_js.Segment; }
2596
+ get: function () { return chunkLDCNEHLQ_js.Segment; }
2622
2597
  });
2623
2598
  Object.defineProperty(exports, "Select", {
2624
2599
  enumerable: true,
2625
- get: function () { return chunkSHNVBKAJ_js.Select; }
2600
+ get: function () { return chunkLDCNEHLQ_js.Select; }
2626
2601
  });
2627
2602
  Object.defineProperty(exports, "Tabs", {
2628
2603
  enumerable: true,
2629
- get: function () { return chunkSHNVBKAJ_js.Tabs; }
2604
+ get: function () { return chunkLDCNEHLQ_js.Tabs; }
2630
2605
  });
2631
2606
  Object.defineProperty(exports, "Tooltip", {
2632
2607
  enumerable: true,
2633
- get: function () { return chunkSHNVBKAJ_js.Tooltip; }
2608
+ get: function () { return chunkLDCNEHLQ_js.Tooltip; }
2634
2609
  });
2635
2610
  Object.defineProperty(exports, "colorPaletteColorClasses", {
2636
2611
  enumerable: true,
2637
- get: function () { return chunkSHNVBKAJ_js.colorPaletteColorClasses; }
2612
+ get: function () { return chunkLDCNEHLQ_js.colorPaletteColorClasses; }
2638
2613
  });
2639
2614
  Object.defineProperty(exports, "getColorPaletteColor", {
2640
2615
  enumerable: true,
2641
- get: function () { return chunkSHNVBKAJ_js.getColorPaletteColor; }
2616
+ get: function () { return chunkLDCNEHLQ_js.getColorPaletteColor; }
2642
2617
  });
2643
2618
  Object.defineProperty(exports, "isInPalette", {
2644
2619
  enumerable: true,
2645
- get: function () { return chunkSHNVBKAJ_js.isInPalette; }
2620
+ get: function () { return chunkLDCNEHLQ_js.isInPalette; }
2646
2621
  });
2647
2622
  exports.Avatar = Avatar;
2648
2623
  exports.Badge = Badge;