@fairmint/ui 0.2.26 → 0.2.28

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.
@@ -757,12 +757,12 @@ function shallowCompare(prevValue, currValue) {
757
757
  }
758
758
  function useShallowCompare(dependencies) {
759
759
  const ref = useRef([]);
760
- const updateRef = useRef(0);
760
+ const updateRef3 = useRef(0);
761
761
  if (!shallowCompare(ref.current, dependencies)) {
762
762
  ref.current = dependencies;
763
- updateRef.current += 1;
763
+ updateRef3.current += 1;
764
764
  }
765
- return [updateRef.current];
765
+ return [updateRef3.current];
766
766
  }
767
767
  function useShallowEffect(cb, dependencies) {
768
768
  useEffect(cb, useShallowCompare(dependencies));
@@ -2483,7 +2483,7 @@ Transition$2.propTypes = process.env.NODE_ENV !== "production" ? {
2483
2483
  */
2484
2484
  onExited: PropTypes.func
2485
2485
  } : {};
2486
- function noop$4() {
2486
+ function noop$5() {
2487
2487
  }
2488
2488
  Transition$2.defaultProps = {
2489
2489
  in: false,
@@ -2492,12 +2492,12 @@ Transition$2.defaultProps = {
2492
2492
  appear: false,
2493
2493
  enter: true,
2494
2494
  exit: true,
2495
- onEnter: noop$4,
2496
- onEntering: noop$4,
2497
- onEntered: noop$4,
2498
- onExit: noop$4,
2499
- onExiting: noop$4,
2500
- onExited: noop$4
2495
+ onEnter: noop$5,
2496
+ onEntering: noop$5,
2497
+ onEntered: noop$5,
2498
+ onExit: noop$5,
2499
+ onExiting: noop$5,
2500
+ onExited: noop$5
2501
2501
  };
2502
2502
  Transition$2.UNMOUNTED = UNMOUNTED;
2503
2503
  Transition$2.EXITED = EXITED;
@@ -2605,7 +2605,7 @@ var values$1 = Object.values || function(obj) {
2605
2605
  return obj[k];
2606
2606
  });
2607
2607
  };
2608
- var defaultProps$_ = {
2608
+ var defaultProps$$ = {
2609
2609
  component: "div",
2610
2610
  childFactory: function childFactory(child) {
2611
2611
  return child;
@@ -2732,7 +2732,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
2732
2732
  */
2733
2733
  childFactory: PropTypes.func
2734
2734
  } : {};
2735
- TransitionGroup.defaultProps = defaultProps$_;
2735
+ TransitionGroup.defaultProps = defaultProps$$;
2736
2736
  var extendStatics = function(d, b) {
2737
2737
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2738
2738
  d2.__proto__ = b2;
@@ -3688,11 +3688,11 @@ const elevations = {
3688
3688
  function getDefaultZIndex(level) {
3689
3689
  return elevations[level];
3690
3690
  }
3691
- const noop$3 = () => {
3691
+ const noop$4 = () => {
3692
3692
  };
3693
3693
  function closeOnEscape(callback, options = { active: true }) {
3694
3694
  if (typeof callback !== "function" || !options.active) {
3695
- return options.onKeyDown || noop$3;
3695
+ return options.onKeyDown || noop$4;
3696
3696
  }
3697
3697
  return (event) => {
3698
3698
  if (event.key === "Escape") {
@@ -6154,7 +6154,7 @@ function useCollapse({
6154
6154
  }
6155
6155
  return getCollapseProps;
6156
6156
  }
6157
- const defaultProps$Z = {
6157
+ const defaultProps$_ = {
6158
6158
  transitionDuration: 200,
6159
6159
  transitionTimingFunction: "ease",
6160
6160
  animateOpacity: true
@@ -6170,7 +6170,7 @@ const Collapse = factory((props, ref) => {
6170
6170
  animateOpacity,
6171
6171
  keepMounted,
6172
6172
  ...others
6173
- } = useProps("Collapse", defaultProps$Z, props);
6173
+ } = useProps("Collapse", defaultProps$_, props);
6174
6174
  const theme2 = useMantineTheme();
6175
6175
  const shouldReduceMotion = useReducedMotion();
6176
6176
  const reduceMotion = theme2.respectReducedMotion ? shouldReduceMotion : false;
@@ -6601,15 +6601,15 @@ function isMouseLikePointerType(pointerType, strict) {
6601
6601
  return values2.includes(pointerType);
6602
6602
  }
6603
6603
  var isClient$1 = typeof document !== "undefined";
6604
- var noop$2 = function noop() {
6604
+ var noop$3 = function noop() {
6605
6605
  };
6606
- var index$3 = isClient$1 ? useLayoutEffect : noop$2;
6606
+ var index$5 = isClient$1 ? useLayoutEffect : noop$3;
6607
6607
  const SafeReact$1 = {
6608
6608
  ...React
6609
6609
  };
6610
6610
  function useLatestRef$1(value) {
6611
6611
  const ref = React.useRef(value);
6612
- index$3(() => {
6612
+ index$5(() => {
6613
6613
  ref.current = value;
6614
6614
  });
6615
6615
  return ref;
@@ -8080,9 +8080,9 @@ const computePosition = (reference, floating, options) => {
8080
8080
  });
8081
8081
  };
8082
8082
  var isClient = typeof document !== "undefined";
8083
- var noop$1 = function noop2() {
8083
+ var noop$2 = function noop2() {
8084
8084
  };
8085
- var index$2 = isClient ? useLayoutEffect : noop$1;
8085
+ var index$4 = isClient ? useLayoutEffect : noop$2;
8086
8086
  function deepEqual(a, b) {
8087
8087
  if (a === b) {
8088
8088
  return true;
@@ -8143,7 +8143,7 @@ function roundByDPR(element, value) {
8143
8143
  }
8144
8144
  function useLatestRef(value) {
8145
8145
  const ref = React.useRef(value);
8146
- index$2(() => {
8146
+ index$4(() => {
8147
8147
  ref.current = value;
8148
8148
  });
8149
8149
  return ref;
@@ -8229,7 +8229,7 @@ function useFloating$1(options) {
8229
8229
  }
8230
8230
  });
8231
8231
  }, [latestMiddleware, placement, strategy, platformRef, openRef]);
8232
- index$2(() => {
8232
+ index$4(() => {
8233
8233
  if (open === false && dataRef.current.isPositioned) {
8234
8234
  dataRef.current.isPositioned = false;
8235
8235
  setData((data2) => ({
@@ -8239,13 +8239,13 @@ function useFloating$1(options) {
8239
8239
  }
8240
8240
  }, [open]);
8241
8241
  const isMountedRef = React.useRef(false);
8242
- index$2(() => {
8242
+ index$4(() => {
8243
8243
  isMountedRef.current = true;
8244
8244
  return () => {
8245
8245
  isMountedRef.current = false;
8246
8246
  };
8247
8247
  }, []);
8248
- index$2(() => {
8248
+ index$4(() => {
8249
8249
  if (referenceEl) referenceRef.current = referenceEl;
8250
8250
  if (floatingEl) floatingRef.current = floatingEl;
8251
8251
  if (referenceEl && floatingEl) {
@@ -8446,7 +8446,7 @@ const genId = () => (
8446
8446
  );
8447
8447
  function useFloatingId() {
8448
8448
  const [id2, setId] = React.useState(() => serverHandoffComplete ? genId() : void 0);
8449
- index$3(() => {
8449
+ index$5(() => {
8450
8450
  if (id2 == null) {
8451
8451
  setId(genId());
8452
8452
  }
@@ -8752,7 +8752,7 @@ function useHover(context, props) {
8752
8752
  };
8753
8753
  }
8754
8754
  }, [elements, enabled, context, mouseOnly, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree, delayRef, handleCloseRef, dataRef, isClickLikeOpenEvent, restMsRef]);
8755
- index$3(() => {
8755
+ index$5(() => {
8756
8756
  var _handleCloseRef$curre;
8757
8757
  if (!enabled) return;
8758
8758
  if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && (_handleCloseRef$curre = _handleCloseRef$curre.__options) != null && _handleCloseRef$curre.blockPointerEvents && isHoverOpen()) {
@@ -8778,7 +8778,7 @@ function useHover(context, props) {
8778
8778
  }
8779
8779
  }
8780
8780
  }, [enabled, open, parentId, elements, tree, handleCloseRef, isHoverOpen]);
8781
- index$3(() => {
8781
+ index$5(() => {
8782
8782
  if (!open) {
8783
8783
  pointerTypeRef.current = void 0;
8784
8784
  restTimeoutPendingRef.current = false;
@@ -8867,7 +8867,7 @@ function FloatingDelayGroup(props) {
8867
8867
  currentId
8868
8868
  });
8869
8869
  }, []);
8870
- index$3(() => {
8870
+ index$5(() => {
8871
8871
  if (state.currentId) {
8872
8872
  if (initialCurrentIdRef.current === null) {
8873
8873
  initialCurrentIdRef.current = state.currentId;
@@ -8916,7 +8916,7 @@ function useDelayGroup(context, options) {
8916
8916
  setState,
8917
8917
  timeoutMs
8918
8918
  } = groupContext;
8919
- index$3(() => {
8919
+ index$5(() => {
8920
8920
  if (!enabled) return;
8921
8921
  if (!currentId) return;
8922
8922
  setState({
@@ -8929,7 +8929,7 @@ function useDelayGroup(context, options) {
8929
8929
  onOpenChange(false);
8930
8930
  }
8931
8931
  }, [enabled, id2, onOpenChange, setState, currentId, initialDelay]);
8932
- index$3(() => {
8932
+ index$5(() => {
8933
8933
  function unset() {
8934
8934
  onOpenChange(false);
8935
8935
  setState({
@@ -8949,7 +8949,7 @@ function useDelayGroup(context, options) {
8949
8949
  unset();
8950
8950
  }
8951
8951
  }, [enabled, open, setState, currentId, id2, onOpenChange, initialDelay, timeoutMs]);
8952
- index$3(() => {
8952
+ index$5(() => {
8953
8953
  if (!enabled) return;
8954
8954
  if (setCurrentId === NOOP || !open) return;
8955
8955
  setCurrentId(id2);
@@ -9294,7 +9294,7 @@ function useFloating(options) {
9294
9294
  const domReference = optionDomReference || _domReference;
9295
9295
  const domReferenceRef = React.useRef(null);
9296
9296
  const tree = useFloatingTree();
9297
- index$3(() => {
9297
+ index$5(() => {
9298
9298
  if (domReference) {
9299
9299
  domReferenceRef.current = domReference;
9300
9300
  }
@@ -9346,7 +9346,7 @@ function useFloating(options) {
9346
9346
  elements,
9347
9347
  nodeId
9348
9348
  }), [position, refs, elements, nodeId, rootContext]);
9349
- index$3(() => {
9349
+ index$5(() => {
9350
9350
  rootContext.dataRef.current.floatingContext = context;
9351
9351
  const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
9352
9352
  if (node) {
@@ -9691,14 +9691,14 @@ const ScrollAreaCorner = forwardRef((props, ref) => {
9691
9691
  const hasCorner = ctx.type !== "scroll" && hasBothScrollbarsVisible;
9692
9692
  return hasCorner ? /* @__PURE__ */ jsx(Corner, { ...props, ref }) : null;
9693
9693
  });
9694
- const defaultProps$Y = {
9694
+ const defaultProps$Z = {
9695
9695
  scrollHideDelay: 1e3,
9696
9696
  type: "hover"
9697
9697
  };
9698
9698
  const ScrollAreaRoot = forwardRef((_props, ref) => {
9699
9699
  const { type, scrollHideDelay, scrollbars, getStyles: getStyles2, ...others } = useProps(
9700
9700
  "ScrollAreaRoot",
9701
- defaultProps$Y,
9701
+ defaultProps$Z,
9702
9702
  _props
9703
9703
  );
9704
9704
  const [scrollArea, setScrollArea] = useState(null);
@@ -10340,7 +10340,7 @@ const ScrollAreaViewport = forwardRef(
10340
10340
  }
10341
10341
  );
10342
10342
  ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
10343
- const defaultProps$X = {
10343
+ const defaultProps$Y = {
10344
10344
  scrollHideDelay: 1e3,
10345
10345
  type: "hover",
10346
10346
  scrollbars: "xy"
@@ -10364,7 +10364,7 @@ const varsResolver$T = createVarsResolver(
10364
10364
  }
10365
10365
  );
10366
10366
  const ScrollArea = factory((_props, ref) => {
10367
- const props = useProps("ScrollArea", defaultProps$X, _props);
10367
+ const props = useProps("ScrollArea", defaultProps$Y, _props);
10368
10368
  const {
10369
10369
  classNames: classNames2,
10370
10370
  className,
@@ -10516,7 +10516,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
10516
10516
  onTopReached,
10517
10517
  onOverflowChange,
10518
10518
  ...others
10519
- } = useProps("ScrollAreaAutosize", defaultProps$X, props);
10519
+ } = useProps("ScrollAreaAutosize", defaultProps$Y, props);
10520
10520
  const viewportObserverRef = useRef(null);
10521
10521
  const combinedViewportRef = useMergeRefs([viewportRef, viewportObserverRef]);
10522
10522
  const [overflowing, setOverflowing] = useState(false);
@@ -10593,12 +10593,12 @@ ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
10593
10593
  ScrollAreaAutosize.classes = classes$Q;
10594
10594
  ScrollArea.Autosize = ScrollAreaAutosize;
10595
10595
  var classes$P = { "root": "m_87cf2631" };
10596
- const defaultProps$W = {
10596
+ const defaultProps$X = {
10597
10597
  __staticSelector: "UnstyledButton"
10598
10598
  };
10599
10599
  const UnstyledButton = polymorphicFactory(
10600
10600
  (_props, ref) => {
10601
- const props = useProps("UnstyledButton", defaultProps$W, _props);
10601
+ const props = useProps("UnstyledButton", defaultProps$X, _props);
10602
10602
  const {
10603
10603
  className,
10604
10604
  component = "button",
@@ -10844,7 +10844,7 @@ function getFloatingPosition(dir, position) {
10844
10844
  return position;
10845
10845
  }
10846
10846
  var classes$M = { "root": "m_9814e45f" };
10847
- const defaultProps$V = {
10847
+ const defaultProps$W = {
10848
10848
  zIndex: getDefaultZIndex("modal")
10849
10849
  };
10850
10850
  const varsResolver$R = createVarsResolver(
@@ -10858,7 +10858,7 @@ const varsResolver$R = createVarsResolver(
10858
10858
  })
10859
10859
  );
10860
10860
  const Overlay = polymorphicFactory((_props, ref) => {
10861
- const props = useProps("Overlay", defaultProps$V, _props);
10861
+ const props = useProps("Overlay", defaultProps$W, _props);
10862
10862
  const {
10863
10863
  classNames: classNames2,
10864
10864
  className,
@@ -10923,11 +10923,11 @@ function getTargetNode({ target, reuseTargetNode, ...others }) {
10923
10923
  }
10924
10924
  return createPortalNode(others);
10925
10925
  }
10926
- const defaultProps$U = {
10926
+ const defaultProps$V = {
10927
10927
  reuseTargetNode: true
10928
10928
  };
10929
10929
  const Portal = factory((props, ref) => {
10930
- const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$U, props);
10930
+ const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$V, props);
10931
10931
  const [mounted, setMounted] = useState(false);
10932
10932
  const nodeRef = useRef(null);
10933
10933
  useIsomorphicEffect$1(() => {
@@ -11363,14 +11363,14 @@ const PopoverDropdown = factory((_props, ref) => {
11363
11363
  });
11364
11364
  PopoverDropdown.classes = classes$L;
11365
11365
  PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
11366
- const defaultProps$T = {
11366
+ const defaultProps$U = {
11367
11367
  refProp: "ref",
11368
11368
  popupType: "dialog"
11369
11369
  };
11370
11370
  const PopoverTarget = factory((props, ref) => {
11371
11371
  const { children, refProp, popupType, ...others } = useProps(
11372
11372
  "PopoverTarget",
11373
- defaultProps$T,
11373
+ defaultProps$U,
11374
11374
  props
11375
11375
  );
11376
11376
  const child = getSingleElementChild(children);
@@ -11537,7 +11537,7 @@ function usePopover(options) {
11537
11537
  onToggle
11538
11538
  };
11539
11539
  }
11540
- const defaultProps$S = {
11540
+ const defaultProps$T = {
11541
11541
  position: "bottom",
11542
11542
  offset: 8,
11543
11543
  positionDependencies: [],
@@ -11567,7 +11567,7 @@ const varsResolver$Q = createVarsResolver((_, { radius, shadow }) => ({
11567
11567
  }
11568
11568
  }));
11569
11569
  function Popover(_props) {
11570
- const props = useProps("Popover", defaultProps$S, _props);
11570
+ const props = useProps("Popover", defaultProps$T, _props);
11571
11571
  const {
11572
11572
  children,
11573
11573
  position,
@@ -11797,7 +11797,7 @@ const defaultLoaders = {
11797
11797
  oval: Oval,
11798
11798
  dots: Dots
11799
11799
  };
11800
- const defaultProps$R = {
11800
+ const defaultProps$S = {
11801
11801
  loaders: defaultLoaders,
11802
11802
  type: "oval"
11803
11803
  };
@@ -11808,7 +11808,7 @@ const varsResolver$P = createVarsResolver((theme2, { size: size2, color }) => ({
11808
11808
  }
11809
11809
  }));
11810
11810
  const Loader$1 = factory((_props, ref) => {
11811
- const props = useProps("Loader", defaultProps$R, _props);
11811
+ const props = useProps("Loader", defaultProps$S, _props);
11812
11812
  const {
11813
11813
  size: size2,
11814
11814
  color,
@@ -11857,14 +11857,14 @@ Loader$1.defaultLoaders = defaultLoaders;
11857
11857
  Loader$1.classes = classes$K;
11858
11858
  Loader$1.displayName = "@mantine/core/Loader";
11859
11859
  var classes$J = { "root": "m_8d3f4000", "icon": "m_8d3afb97", "loader": "m_302b9fb1", "group": "m_1a0f1b21", "groupSection": "m_437b6484" };
11860
- const defaultProps$Q = {
11860
+ const defaultProps$R = {
11861
11861
  orientation: "horizontal"
11862
11862
  };
11863
11863
  const varsResolver$O = createVarsResolver((_, { borderWidth }) => ({
11864
11864
  group: { "--ai-border-width": rem(borderWidth) }
11865
11865
  }));
11866
11866
  const ActionIconGroup = factory((_props, ref) => {
11867
- const props = useProps("ActionIconGroup", defaultProps$Q, _props);
11867
+ const props = useProps("ActionIconGroup", defaultProps$R, _props);
11868
11868
  const {
11869
11869
  className,
11870
11870
  style,
@@ -11878,7 +11878,7 @@ const ActionIconGroup = factory((_props, ref) => {
11878
11878
  mod,
11879
11879
  attributes,
11880
11880
  ...others
11881
- } = useProps("ActionIconGroup", defaultProps$Q, _props);
11881
+ } = useProps("ActionIconGroup", defaultProps$R, _props);
11882
11882
  const getStyles2 = useStyles({
11883
11883
  name: "ActionIconGroup",
11884
11884
  props,
@@ -12069,7 +12069,7 @@ const CloseIcon = forwardRef(
12069
12069
  );
12070
12070
  CloseIcon.displayName = "@mantine/core/CloseIcon";
12071
12071
  var classes$I = { "root": "m_86a44da5", "root--subtle": "m_220c80f2" };
12072
- const defaultProps$P = {
12072
+ const defaultProps$Q = {
12073
12073
  variant: "subtle"
12074
12074
  };
12075
12075
  const varsResolver$L = createVarsResolver((_, { size: size2, radius, iconSize }) => ({
@@ -12080,7 +12080,7 @@ const varsResolver$L = createVarsResolver((_, { size: size2, radius, iconSize })
12080
12080
  }
12081
12081
  }));
12082
12082
  const CloseButton = polymorphicFactory((_props, ref) => {
12083
- const props = useProps("CloseButton", defaultProps$P, _props);
12083
+ const props = useProps("CloseButton", defaultProps$Q, _props);
12084
12084
  const {
12085
12085
  iconSize,
12086
12086
  children,
@@ -12136,7 +12136,7 @@ function filterFalsyChildren(children) {
12136
12136
  return Children.toArray(children).filter(Boolean);
12137
12137
  }
12138
12138
  var classes$H = { "root": "m_4081bf90" };
12139
- const defaultProps$O = {
12139
+ const defaultProps$P = {
12140
12140
  preventGrowOverflow: true,
12141
12141
  gap: "md",
12142
12142
  align: "center",
@@ -12155,7 +12155,7 @@ const varsResolver$K = createVarsResolver(
12155
12155
  })
12156
12156
  );
12157
12157
  const Group = factory((_props, ref) => {
12158
- const props = useProps("Group", defaultProps$O, _props);
12158
+ const props = useProps("Group", defaultProps$P, _props);
12159
12159
  const {
12160
12160
  classNames: classNames2,
12161
12161
  className,
@@ -12685,7 +12685,7 @@ const InputError = factory((_props, ref) => {
12685
12685
  });
12686
12686
  InputError.classes = classes$F;
12687
12687
  InputError.displayName = "@mantine/core/InputError";
12688
- const defaultProps$N = {
12688
+ const defaultProps$O = {
12689
12689
  labelElement: "label"
12690
12690
  };
12691
12691
  const varsResolver$H = createVarsResolver((_, { size: size2 }) => ({
@@ -12695,7 +12695,7 @@ const varsResolver$H = createVarsResolver((_, { size: size2 }) => ({
12695
12695
  }
12696
12696
  }));
12697
12697
  const InputLabel = factory((_props, ref) => {
12698
- const props = useProps("InputLabel", defaultProps$N, _props);
12698
+ const props = useProps("InputLabel", defaultProps$O, _props);
12699
12699
  const {
12700
12700
  classNames: classNames2,
12701
12701
  className,
@@ -12714,7 +12714,7 @@ const InputLabel = factory((_props, ref) => {
12714
12714
  mod,
12715
12715
  attributes,
12716
12716
  ...others
12717
- } = useProps("InputLabel", defaultProps$N, props);
12717
+ } = useProps("InputLabel", defaultProps$O, props);
12718
12718
  const _getStyles = useStyles({
12719
12719
  name: ["InputWrapper", __staticSelector],
12720
12720
  props,
@@ -12807,7 +12807,7 @@ function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
12807
12807
  const offsetBottom = hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error");
12808
12808
  return { offsetBottom, offsetTop };
12809
12809
  }
12810
- const defaultProps$M = {
12810
+ const defaultProps$N = {
12811
12811
  labelElement: "label",
12812
12812
  inputContainer: (children) => children,
12813
12813
  inputWrapperOrder: ["label", "description", "input", "error"]
@@ -12825,7 +12825,7 @@ const varsResolver$G = createVarsResolver((_, { size: size2 }) => ({
12825
12825
  }
12826
12826
  }));
12827
12827
  const InputWrapper = factory((_props, ref) => {
12828
- const props = useProps("InputWrapper", defaultProps$M, _props);
12828
+ const props = useProps("InputWrapper", defaultProps$N, _props);
12829
12829
  const {
12830
12830
  classNames: classNames2,
12831
12831
  className,
@@ -12959,7 +12959,7 @@ const InputWrapper = factory((_props, ref) => {
12959
12959
  });
12960
12960
  InputWrapper.classes = classes$F;
12961
12961
  InputWrapper.displayName = "@mantine/core/InputWrapper";
12962
- const defaultProps$L = {
12962
+ const defaultProps$M = {
12963
12963
  variant: "default",
12964
12964
  leftSectionPointerEvents: "none",
12965
12965
  rightSectionPointerEvents: "none",
@@ -12982,7 +12982,7 @@ const varsResolver$F = createVarsResolver((_, props, ctx) => ({
12982
12982
  }
12983
12983
  }));
12984
12984
  const Input = polymorphicFactory((_props, ref) => {
12985
- const props = useProps("Input", defaultProps$L, _props);
12985
+ const props = useProps("Input", defaultProps$M, _props);
12986
12986
  const {
12987
12987
  classNames: classNames2,
12988
12988
  className,
@@ -13198,13 +13198,13 @@ function useInputProps(component, defaultProps2, _props) {
13198
13198
  }
13199
13199
  };
13200
13200
  }
13201
- const defaultProps$K = {
13201
+ const defaultProps$L = {
13202
13202
  __staticSelector: "InputBase",
13203
13203
  withAria: true,
13204
13204
  size: "sm"
13205
13205
  };
13206
13206
  const InputBase = polymorphicFactory((props, ref) => {
13207
- const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$K, props);
13207
+ const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$L, props);
13208
13208
  return /* @__PURE__ */ jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsx(Input, { ...inputProps, ...others, ref }) });
13209
13209
  });
13210
13210
  InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
@@ -13597,7 +13597,7 @@ function getTextTruncate(truncate) {
13597
13597
  }
13598
13598
  return void 0;
13599
13599
  }
13600
- const defaultProps$J = {
13600
+ const defaultProps$K = {
13601
13601
  inherit: false
13602
13602
  };
13603
13603
  const varsResolver$C = createVarsResolver(
@@ -13614,7 +13614,7 @@ const varsResolver$C = createVarsResolver(
13614
13614
  })
13615
13615
  );
13616
13616
  const Text = polymorphicFactory((_props, ref) => {
13617
- const props = useProps("Text", defaultProps$J, _props);
13617
+ const props = useProps("Text", defaultProps$K, _props);
13618
13618
  const {
13619
13619
  lineClamp,
13620
13620
  truncate,
@@ -13672,13 +13672,13 @@ const Text = polymorphicFactory((_props, ref) => {
13672
13672
  Text.classes = classes$B;
13673
13673
  Text.displayName = "@mantine/core/Text";
13674
13674
  var classes$A = { "root": "m_849cf0da" };
13675
- const defaultProps$I = {
13675
+ const defaultProps$J = {
13676
13676
  underline: "hover"
13677
13677
  };
13678
13678
  const Anchor = polymorphicFactory((props, ref) => {
13679
13679
  const { underline, className, unstyled, mod, ...others } = useProps(
13680
13680
  "Anchor",
13681
- defaultProps$I,
13681
+ defaultProps$J,
13682
13682
  props
13683
13683
  );
13684
13684
  return /* @__PURE__ */ jsx(
@@ -14266,7 +14266,7 @@ function useResizing({ transitionDuration, disabled }) {
14266
14266
  }, [disabled, transitionDuration]);
14267
14267
  return resizing;
14268
14268
  }
14269
- const defaultProps$H = {
14269
+ const defaultProps$I = {
14270
14270
  withBorder: true,
14271
14271
  padding: 0,
14272
14272
  transitionDuration: 200,
@@ -14283,7 +14283,7 @@ const varsResolver$B = createVarsResolver(
14283
14283
  })
14284
14284
  );
14285
14285
  const AppShell = factory((_props, ref) => {
14286
- const props = useProps("AppShell", defaultProps$H, _props);
14286
+ const props = useProps("AppShell", defaultProps$I, _props);
14287
14287
  const {
14288
14288
  classNames: classNames2,
14289
14289
  className,
@@ -14391,7 +14391,7 @@ function getOptionsLockup(options) {
14391
14391
  }, {});
14392
14392
  }
14393
14393
  var classes$y = { "dropdown": "m_88b62a41", "search": "m_985517d8", "options": "m_b2821a6e", "option": "m_92253aa5", "empty": "m_2530cd1d", "header": "m_858f94bd", "footer": "m_82b967cb", "group": "m_254f3e4f", "groupLabel": "m_2bb2e9e5", "chevron": "m_2943220b", "optionsDropdownOption": "m_390b5f4", "optionsDropdownCheckIcon": "m_8ee53fc2", "optionsDropdownCheckPlaceholder": "m_a530ee0a" };
14394
- const defaultProps$G = {
14394
+ const defaultProps$H = {
14395
14395
  error: null
14396
14396
  };
14397
14397
  const varsResolver$A = createVarsResolver((theme2, { size: size2, color }) => ({
@@ -14401,7 +14401,7 @@ const varsResolver$A = createVarsResolver((theme2, { size: size2, color }) => ({
14401
14401
  }
14402
14402
  }));
14403
14403
  const ComboboxChevron = factory((_props, ref) => {
14404
- const props = useProps("ComboboxChevron", defaultProps$G, _props);
14404
+ const props = useProps("ComboboxChevron", defaultProps$H, _props);
14405
14405
  const { size: size2, error: error2, style, className, classNames: classNames2, styles, unstyled, vars, mod, ...others } = props;
14406
14406
  const getStyles2 = useStyles({
14407
14407
  name: "ComboboxChevron",
@@ -14485,11 +14485,11 @@ const ComboboxDropdown = factory((props, ref) => {
14485
14485
  });
14486
14486
  ComboboxDropdown.classes = classes$y;
14487
14487
  ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
14488
- const defaultProps$F = {
14488
+ const defaultProps$G = {
14489
14489
  refProp: "ref"
14490
14490
  };
14491
14491
  const ComboboxDropdownTarget = factory((props, ref) => {
14492
- const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$F, props);
14492
+ const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$G, props);
14493
14493
  useComboboxContext();
14494
14494
  if (!isElement$1(children)) {
14495
14495
  throw new Error(
@@ -14594,7 +14594,7 @@ function useComboboxTargetProps({
14594
14594
  onKeyDown: handleKeyDown
14595
14595
  };
14596
14596
  }
14597
- const defaultProps$E = {
14597
+ const defaultProps$F = {
14598
14598
  refProp: "ref",
14599
14599
  targetType: "input",
14600
14600
  withKeyboardNavigation: true,
@@ -14612,7 +14612,7 @@ const ComboboxEventsTarget = factory((props, ref) => {
14612
14612
  targetType,
14613
14613
  autoComplete,
14614
14614
  ...others
14615
- } = useProps("ComboboxEventsTarget", defaultProps$E, props);
14615
+ } = useProps("ComboboxEventsTarget", defaultProps$F, props);
14616
14616
  const child = getSingleElementChild(children);
14617
14617
  if (!child) {
14618
14618
  throw new Error(
@@ -14800,12 +14800,12 @@ const ComboboxOptions = factory((_props, ref) => {
14800
14800
  });
14801
14801
  ComboboxOptions.classes = classes$y;
14802
14802
  ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
14803
- const defaultProps$D = {
14803
+ const defaultProps$E = {
14804
14804
  withAriaAttributes: true,
14805
14805
  withKeyboardNavigation: true
14806
14806
  };
14807
14807
  const ComboboxSearch = factory((_props, ref) => {
14808
- const props = useProps("ComboboxSearch", defaultProps$D, _props);
14808
+ const props = useProps("ComboboxSearch", defaultProps$E, _props);
14809
14809
  const {
14810
14810
  classNames: classNames2,
14811
14811
  styles,
@@ -14842,7 +14842,7 @@ const ComboboxSearch = factory((_props, ref) => {
14842
14842
  });
14843
14843
  ComboboxSearch.classes = classes$y;
14844
14844
  ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
14845
- const defaultProps$C = {
14845
+ const defaultProps$D = {
14846
14846
  refProp: "ref",
14847
14847
  targetType: "input",
14848
14848
  withKeyboardNavigation: true,
@@ -14860,7 +14860,7 @@ const ComboboxTarget = factory((props, ref) => {
14860
14860
  targetType,
14861
14861
  autoComplete,
14862
14862
  ...others
14863
- } = useProps("ComboboxTarget", defaultProps$C, props);
14863
+ } = useProps("ComboboxTarget", defaultProps$D, props);
14864
14864
  const child = getSingleElementChild(children);
14865
14865
  if (!child) {
14866
14866
  throw new Error(
@@ -15109,7 +15109,7 @@ function useCombobox({
15109
15109
  focusTarget
15110
15110
  };
15111
15111
  }
15112
- const defaultProps$B = {
15112
+ const defaultProps$C = {
15113
15113
  keepMounted: true,
15114
15114
  withinPortal: true,
15115
15115
  resetSelectionOnOptionHover: false,
@@ -15129,7 +15129,7 @@ const varsResolver$z = createVarsResolver((_, { size: size2, dropdownPadding })
15129
15129
  }
15130
15130
  }));
15131
15131
  function Combobox(_props) {
15132
- const props = useProps("Combobox", defaultProps$B, _props);
15132
+ const props = useProps("Combobox", defaultProps$C, _props);
15133
15133
  const {
15134
15134
  classNames: classNames2,
15135
15135
  styles,
@@ -15295,7 +15295,7 @@ const CheckboxGroupProvider = CheckboxGroupContext.Provider;
15295
15295
  const useCheckboxGroupContext = () => useContext(CheckboxGroupContext);
15296
15296
  const [CheckboxCardProvider, useCheckboxCardContext] = createOptionalContext();
15297
15297
  var classes$v = { "card": "m_26775b0a" };
15298
- const defaultProps$A = {
15298
+ const defaultProps$B = {
15299
15299
  withBorder: true
15300
15300
  };
15301
15301
  const varsResolver$y = createVarsResolver((_, { radius }) => ({
@@ -15304,7 +15304,7 @@ const varsResolver$y = createVarsResolver((_, { radius }) => ({
15304
15304
  }
15305
15305
  }));
15306
15306
  const CheckboxCard = factory((_props, ref) => {
15307
- const props = useProps("CheckboxCard", defaultProps$A, _props);
15307
+ const props = useProps("CheckboxCard", defaultProps$B, _props);
15308
15308
  const {
15309
15309
  classNames: classNames2,
15310
15310
  className,
@@ -15449,7 +15449,7 @@ function CheckboxIcon({ indeterminate, ...others }) {
15449
15449
  return /* @__PURE__ */ jsx(CheckIcon, { ...others });
15450
15450
  }
15451
15451
  var classes$u = { "indicator": "m_5e5256ee", "icon": "m_1b1c543a", "indicator--outline": "m_76e20374" };
15452
- const defaultProps$z = {
15452
+ const defaultProps$A = {
15453
15453
  icon: CheckboxIcon,
15454
15454
  variant: "filled"
15455
15455
  };
@@ -15468,7 +15468,7 @@ const varsResolver$x = createVarsResolver(
15468
15468
  }
15469
15469
  );
15470
15470
  const CheckboxIndicator = factory((_props, ref) => {
15471
- const props = useProps("CheckboxIndicator", defaultProps$z, _props);
15471
+ const props = useProps("CheckboxIndicator", defaultProps$A, _props);
15472
15472
  const {
15473
15473
  classNames: classNames2,
15474
15474
  className,
@@ -15519,7 +15519,7 @@ const CheckboxIndicator = factory((_props, ref) => {
15519
15519
  });
15520
15520
  CheckboxIndicator.displayName = "@mantine/core/CheckboxIndicator";
15521
15521
  CheckboxIndicator.classes = classes$u;
15522
- const defaultProps$y = {
15522
+ const defaultProps$z = {
15523
15523
  labelPosition: "right",
15524
15524
  icon: CheckboxIcon,
15525
15525
  variant: "filled"
@@ -15539,7 +15539,7 @@ const varsResolver$w = createVarsResolver(
15539
15539
  }
15540
15540
  );
15541
15541
  const Checkbox$1 = factory((_props, forwardedRef) => {
15542
- const props = useProps("Checkbox", defaultProps$y, _props);
15542
+ const props = useProps("Checkbox", defaultProps$z, _props);
15543
15543
  const {
15544
15544
  classNames: classNames2,
15545
15545
  className,
@@ -16142,14 +16142,14 @@ const Burger = factory((_props, ref) => {
16142
16142
  Burger.classes = classes$r;
16143
16143
  Burger.displayName = "@mantine/core/Burger";
16144
16144
  var classes$q = { "root": "m_77c9d27d", "inner": "m_80f1301b", "label": "m_811560b9", "section": "m_a74036a", "loader": "m_a25b86ee", "group": "m_80d6d844", "groupSection": "m_70be2a01" };
16145
- const defaultProps$x = {
16145
+ const defaultProps$y = {
16146
16146
  orientation: "horizontal"
16147
16147
  };
16148
16148
  const varsResolver$r = createVarsResolver((_, { borderWidth }) => ({
16149
16149
  group: { "--button-border-width": rem(borderWidth) }
16150
16150
  }));
16151
16151
  const ButtonGroup = factory((_props, ref) => {
16152
- const props = useProps("ButtonGroup", defaultProps$x, _props);
16152
+ const props = useProps("ButtonGroup", defaultProps$y, _props);
16153
16153
  const {
16154
16154
  className,
16155
16155
  style,
@@ -16163,7 +16163,7 @@ const ButtonGroup = factory((_props, ref) => {
16163
16163
  mod,
16164
16164
  attributes,
16165
16165
  ...others
16166
- } = useProps("ButtonGroup", defaultProps$x, _props);
16166
+ } = useProps("ButtonGroup", defaultProps$y, _props);
16167
16167
  const getStyles2 = useStyles({
16168
16168
  name: "ButtonGroup",
16169
16169
  props,
@@ -16506,7 +16506,7 @@ const Container = factory((_props, ref) => {
16506
16506
  Container.classes = classes$n;
16507
16507
  Container.displayName = "@mantine/core/Container";
16508
16508
  var classes$m = { "root": "m_3eebeb36", "label": "m_9e365f20" };
16509
- const defaultProps$w = {
16509
+ const defaultProps$x = {
16510
16510
  orientation: "horizontal"
16511
16511
  };
16512
16512
  const varsResolver$m = createVarsResolver((theme2, { color, variant, size: size2 }) => ({
@@ -16517,7 +16517,7 @@ const varsResolver$m = createVarsResolver((theme2, { color, variant, size: size2
16517
16517
  }
16518
16518
  }));
16519
16519
  const Divider = factory((_props, ref) => {
16520
- const props = useProps("Divider", defaultProps$w, _props);
16520
+ const props = useProps("Divider", defaultProps$x, _props);
16521
16521
  const {
16522
16522
  classNames: classNames2,
16523
16523
  className,
@@ -16672,7 +16672,7 @@ const rtlTransitions = {
16672
16672
  right: "slide-right",
16673
16673
  left: "slide-left"
16674
16674
  };
16675
- const defaultProps$v = {
16675
+ const defaultProps$w = {
16676
16676
  closeOnClickOutside: true,
16677
16677
  withinPortal: true,
16678
16678
  lockScroll: true,
@@ -16694,7 +16694,7 @@ const varsResolver$l = createVarsResolver((_, { position, size: size2, offset: o
16694
16694
  }
16695
16695
  }));
16696
16696
  const DrawerRoot = factory((_props, ref) => {
16697
- const props = useProps("DrawerRoot", defaultProps$v, _props);
16697
+ const props = useProps("DrawerRoot", defaultProps$w, _props);
16698
16698
  const {
16699
16699
  classNames: classNames2,
16700
16700
  className,
@@ -16778,7 +16778,7 @@ const DrawerTitle = factory((_props, ref) => {
16778
16778
  });
16779
16779
  DrawerTitle.classes = classes$l;
16780
16780
  DrawerTitle.displayName = "@mantine/core/DrawerTitle";
16781
- const defaultProps$u = {
16781
+ const defaultProps$v = {
16782
16782
  closeOnClickOutside: true,
16783
16783
  withinPortal: true,
16784
16784
  lockScroll: true,
@@ -16802,7 +16802,7 @@ const Drawer$1 = factory((_props, ref) => {
16802
16802
  stackId,
16803
16803
  zIndex,
16804
16804
  ...others
16805
- } = useProps("Drawer", defaultProps$u, _props);
16805
+ } = useProps("Drawer", defaultProps$v, _props);
16806
16806
  const ctx = useDrawerStackContext();
16807
16807
  const hasHeader = !!title || withCloseButton;
16808
16808
  const stackProps = ctx && stackId ? {
@@ -16939,11 +16939,11 @@ function GridColVariables({ span, order, offset: offset2, selector }) {
16939
16939
  }
16940
16940
  );
16941
16941
  }
16942
- const defaultProps$t = {
16942
+ const defaultProps$u = {
16943
16943
  span: 12
16944
16944
  };
16945
16945
  const GridCol = factory((_props, ref) => {
16946
- const props = useProps("GridCol", defaultProps$t, _props);
16946
+ const props = useProps("GridCol", defaultProps$u, _props);
16947
16947
  const { classNames: classNames2, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
16948
16948
  const ctx = useGridContext();
16949
16949
  const responsiveClassName = useRandomClassName();
@@ -17009,7 +17009,7 @@ function GridVariables({ gutter, selector, breakpoints, type }) {
17009
17009
  }
17010
17010
  );
17011
17011
  }
17012
- const defaultProps$s = {
17012
+ const defaultProps$t = {
17013
17013
  gutter: "md",
17014
17014
  grow: false,
17015
17015
  columns: 12
@@ -17022,7 +17022,7 @@ const varsResolver$k = createVarsResolver((_, { justify, align, overflow }) => (
17022
17022
  }
17023
17023
  }));
17024
17024
  const Grid = factory((_props, ref) => {
17025
- const props = useProps("Grid", defaultProps$s, _props);
17025
+ const props = useProps("Grid", defaultProps$t, _props);
17026
17026
  const {
17027
17027
  classNames: classNames2,
17028
17028
  className,
@@ -17069,6 +17069,267 @@ const Grid = factory((_props, ref) => {
17069
17069
  Grid.classes = classes$k;
17070
17070
  Grid.displayName = "@mantine/core/Grid";
17071
17071
  Grid.Col = GridCol;
17072
+ var index$3 = useLayoutEffect;
17073
+ var useLatest = function useLatest2(value) {
17074
+ var ref = React__default.useRef(value);
17075
+ index$3(function() {
17076
+ ref.current = value;
17077
+ });
17078
+ return ref;
17079
+ };
17080
+ var updateRef = function updateRef2(ref, value) {
17081
+ if (typeof ref === "function") {
17082
+ ref(value);
17083
+ return;
17084
+ }
17085
+ ref.current = value;
17086
+ };
17087
+ var useComposedRef = function useComposedRef2(libRef, userRef) {
17088
+ var prevUserRef = React__default.useRef();
17089
+ return React__default.useCallback(function(instance) {
17090
+ libRef.current = instance;
17091
+ if (prevUserRef.current) {
17092
+ updateRef(prevUserRef.current, null);
17093
+ }
17094
+ prevUserRef.current = userRef;
17095
+ if (!userRef) {
17096
+ return;
17097
+ }
17098
+ updateRef(userRef, instance);
17099
+ }, [userRef]);
17100
+ };
17101
+ var HIDDEN_TEXTAREA_STYLE = {
17102
+ "min-height": "0",
17103
+ "max-height": "none",
17104
+ height: "0",
17105
+ visibility: "hidden",
17106
+ overflow: "hidden",
17107
+ position: "absolute",
17108
+ "z-index": "-1000",
17109
+ top: "0",
17110
+ right: "0",
17111
+ display: "block"
17112
+ };
17113
+ var forceHiddenStyles = function forceHiddenStyles2(node) {
17114
+ Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {
17115
+ node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important");
17116
+ });
17117
+ };
17118
+ var forceHiddenStyles$1 = forceHiddenStyles;
17119
+ var hiddenTextarea = null;
17120
+ var getHeight = function getHeight2(node, sizingData) {
17121
+ var height = node.scrollHeight;
17122
+ if (sizingData.sizingStyle.boxSizing === "border-box") {
17123
+ return height + sizingData.borderSize;
17124
+ }
17125
+ return height - sizingData.paddingSize;
17126
+ };
17127
+ function calculateNodeHeight(sizingData, value, minRows, maxRows) {
17128
+ if (minRows === void 0) {
17129
+ minRows = 1;
17130
+ }
17131
+ if (maxRows === void 0) {
17132
+ maxRows = Infinity;
17133
+ }
17134
+ if (!hiddenTextarea) {
17135
+ hiddenTextarea = document.createElement("textarea");
17136
+ hiddenTextarea.setAttribute("tabindex", "-1");
17137
+ hiddenTextarea.setAttribute("aria-hidden", "true");
17138
+ forceHiddenStyles$1(hiddenTextarea);
17139
+ }
17140
+ if (hiddenTextarea.parentNode === null) {
17141
+ document.body.appendChild(hiddenTextarea);
17142
+ }
17143
+ var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle;
17144
+ var boxSizing = sizingStyle.boxSizing;
17145
+ Object.keys(sizingStyle).forEach(function(_key) {
17146
+ var key = _key;
17147
+ hiddenTextarea.style[key] = sizingStyle[key];
17148
+ });
17149
+ forceHiddenStyles$1(hiddenTextarea);
17150
+ hiddenTextarea.value = value;
17151
+ var height = getHeight(hiddenTextarea, sizingData);
17152
+ hiddenTextarea.value = value;
17153
+ height = getHeight(hiddenTextarea, sizingData);
17154
+ hiddenTextarea.value = "x";
17155
+ var rowHeight = hiddenTextarea.scrollHeight - paddingSize;
17156
+ var minHeight = rowHeight * minRows;
17157
+ if (boxSizing === "border-box") {
17158
+ minHeight = minHeight + paddingSize + borderSize;
17159
+ }
17160
+ height = Math.max(minHeight, height);
17161
+ var maxHeight = rowHeight * maxRows;
17162
+ if (boxSizing === "border-box") {
17163
+ maxHeight = maxHeight + paddingSize + borderSize;
17164
+ }
17165
+ height = Math.min(maxHeight, height);
17166
+ return [height, rowHeight];
17167
+ }
17168
+ var noop$1 = function noop3() {
17169
+ };
17170
+ var pick$1 = function pick(props, obj) {
17171
+ return props.reduce(function(acc, prop) {
17172
+ acc[prop] = obj[prop];
17173
+ return acc;
17174
+ }, {});
17175
+ };
17176
+ var SIZING_STYLE = [
17177
+ "borderBottomWidth",
17178
+ "borderLeftWidth",
17179
+ "borderRightWidth",
17180
+ "borderTopWidth",
17181
+ "boxSizing",
17182
+ "fontFamily",
17183
+ "fontSize",
17184
+ "fontStyle",
17185
+ "fontWeight",
17186
+ "letterSpacing",
17187
+ "lineHeight",
17188
+ "paddingBottom",
17189
+ "paddingLeft",
17190
+ "paddingRight",
17191
+ "paddingTop",
17192
+ // non-standard
17193
+ "tabSize",
17194
+ "textIndent",
17195
+ // non-standard
17196
+ "textRendering",
17197
+ "textTransform",
17198
+ "width",
17199
+ "wordBreak",
17200
+ "wordSpacing",
17201
+ "scrollbarGutter"
17202
+ ];
17203
+ var isIE = !!document.documentElement.currentStyle;
17204
+ var getSizingData = function getSizingData2(node) {
17205
+ var style = window.getComputedStyle(node);
17206
+ if (style === null) {
17207
+ return null;
17208
+ }
17209
+ var sizingStyle = pick$1(SIZING_STYLE, style);
17210
+ var boxSizing = sizingStyle.boxSizing;
17211
+ if (boxSizing === "") {
17212
+ return null;
17213
+ }
17214
+ if (isIE && boxSizing === "border-box") {
17215
+ sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px";
17216
+ }
17217
+ var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);
17218
+ var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);
17219
+ return {
17220
+ sizingStyle,
17221
+ paddingSize,
17222
+ borderSize
17223
+ };
17224
+ };
17225
+ var getSizingData$1 = getSizingData;
17226
+ function useListener(target, type, listener) {
17227
+ var latestListener = useLatest(listener);
17228
+ React.useLayoutEffect(function() {
17229
+ var handler = function handler2(ev) {
17230
+ return latestListener.current(ev);
17231
+ };
17232
+ if (!target) {
17233
+ return;
17234
+ }
17235
+ target.addEventListener(type, handler);
17236
+ return function() {
17237
+ return target.removeEventListener(type, handler);
17238
+ };
17239
+ }, []);
17240
+ }
17241
+ var useFormResetListener = function useFormResetListener2(libRef, listener) {
17242
+ useListener(document.body, "reset", function(ev) {
17243
+ if (libRef.current.form === ev.target) {
17244
+ listener(ev);
17245
+ }
17246
+ });
17247
+ };
17248
+ var useWindowResizeListener = function useWindowResizeListener2(listener) {
17249
+ useListener(window, "resize", listener);
17250
+ };
17251
+ var useFontsLoadedListener = function useFontsLoadedListener2(listener) {
17252
+ useListener(document.fonts, "loadingdone", listener);
17253
+ };
17254
+ var _excluded = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"];
17255
+ var TextareaAutosize = function TextareaAutosize2(_ref, userRef) {
17256
+ var cacheMeasurements = _ref.cacheMeasurements, maxRows = _ref.maxRows, minRows = _ref.minRows, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop$1 : _ref$onChange, _ref$onHeightChange = _ref.onHeightChange, onHeightChange = _ref$onHeightChange === void 0 ? noop$1 : _ref$onHeightChange, props = _objectWithoutPropertiesLoose(_ref, _excluded);
17257
+ var isControlled = props.value !== void 0;
17258
+ var libRef = React.useRef(null);
17259
+ var ref = useComposedRef(libRef, userRef);
17260
+ var heightRef = React.useRef(0);
17261
+ var measurementsCacheRef = React.useRef();
17262
+ var resizeTextarea = function resizeTextarea2() {
17263
+ var node = libRef.current;
17264
+ var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);
17265
+ if (!nodeSizingData) {
17266
+ return;
17267
+ }
17268
+ measurementsCacheRef.current = nodeSizingData;
17269
+ var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];
17270
+ if (heightRef.current !== height) {
17271
+ heightRef.current = height;
17272
+ node.style.setProperty("height", height + "px", "important");
17273
+ onHeightChange(height, {
17274
+ rowHeight
17275
+ });
17276
+ }
17277
+ };
17278
+ var handleChange = function handleChange2(event) {
17279
+ if (!isControlled) {
17280
+ resizeTextarea();
17281
+ }
17282
+ onChange(event);
17283
+ };
17284
+ {
17285
+ React.useLayoutEffect(resizeTextarea);
17286
+ useFormResetListener(libRef, function() {
17287
+ if (!isControlled) {
17288
+ var currentValue = libRef.current.value;
17289
+ requestAnimationFrame(function() {
17290
+ var node = libRef.current;
17291
+ if (node && currentValue !== node.value) {
17292
+ resizeTextarea();
17293
+ }
17294
+ });
17295
+ }
17296
+ });
17297
+ useWindowResizeListener(resizeTextarea);
17298
+ useFontsLoadedListener(resizeTextarea);
17299
+ return /* @__PURE__ */ React.createElement("textarea", _extends({}, props, {
17300
+ onChange: handleChange,
17301
+ ref
17302
+ }));
17303
+ }
17304
+ };
17305
+ var index$2 = /* @__PURE__ */ React.forwardRef(TextareaAutosize);
17306
+ const defaultProps$s = {
17307
+ size: "sm"
17308
+ };
17309
+ const Textarea$1 = factory((props, ref) => {
17310
+ const { autosize, maxRows, minRows, __staticSelector, resize, ...others } = useProps(
17311
+ "Textarea",
17312
+ defaultProps$s,
17313
+ props
17314
+ );
17315
+ const shouldAutosize = autosize && getEnv() !== "test";
17316
+ const autosizeProps = shouldAutosize ? { maxRows, minRows } : {};
17317
+ return /* @__PURE__ */ jsx(
17318
+ InputBase,
17319
+ {
17320
+ component: shouldAutosize ? index$2 : "textarea",
17321
+ ref,
17322
+ ...others,
17323
+ __staticSelector: __staticSelector || "Textarea",
17324
+ multiline: true,
17325
+ "data-no-overflow": autosize && maxRows === void 0 || void 0,
17326
+ __vars: { "--input-resize": resize },
17327
+ ...autosizeProps
17328
+ }
17329
+ );
17330
+ });
17331
+ Textarea$1.classes = InputBase.classes;
17332
+ Textarea$1.displayName = "@mantine/core/Textarea";
17072
17333
  const [MenuContextProvider, useMenuContext] = createSafeContext(
17073
17334
  "Menu component was not found in the tree"
17074
17335
  );
@@ -18103,7 +18364,7 @@ var SourceType;
18103
18364
  SourceType2["event"] = "event";
18104
18365
  SourceType2["props"] = "prop";
18105
18366
  })(SourceType || (SourceType = {}));
18106
- function noop3() {
18367
+ function noop4() {
18107
18368
  }
18108
18369
  function memoizeOnce(cb) {
18109
18370
  var lastArgs;
@@ -18402,7 +18663,7 @@ function caretUnknownFormatBoundary(formattedValue) {
18402
18663
  return boundaryAry;
18403
18664
  }
18404
18665
  function useInternalValues(value, defaultValue, valueIsNumericString, format2, removeFormatting2, onValueChange) {
18405
- if (onValueChange === void 0) onValueChange = noop3;
18666
+ if (onValueChange === void 0) onValueChange = noop4;
18406
18667
  var getValues = usePersistentCallback(function(value2, valueIsNumericString2) {
18407
18668
  var formattedValue, numAsString;
18408
18669
  if (isNotValidValue(value2)) {
@@ -18466,15 +18727,15 @@ function NumberFormatBase(props) {
18466
18727
  var onValueChange = props.onValueChange;
18467
18728
  var isAllowed = props.isAllowed;
18468
18729
  var onChange = props.onChange;
18469
- if (onChange === void 0) onChange = noop3;
18730
+ if (onChange === void 0) onChange = noop4;
18470
18731
  var onKeyDown = props.onKeyDown;
18471
- if (onKeyDown === void 0) onKeyDown = noop3;
18732
+ if (onKeyDown === void 0) onKeyDown = noop4;
18472
18733
  var onMouseUp = props.onMouseUp;
18473
- if (onMouseUp === void 0) onMouseUp = noop3;
18734
+ if (onMouseUp === void 0) onMouseUp = noop4;
18474
18735
  var onFocus = props.onFocus;
18475
- if (onFocus === void 0) onFocus = noop3;
18736
+ if (onFocus === void 0) onFocus = noop4;
18476
18737
  var onBlur = props.onBlur;
18477
- if (onBlur === void 0) onBlur = noop3;
18738
+ if (onBlur === void 0) onBlur = noop4;
18478
18739
  var propValue = props.value;
18479
18740
  var getCaretBoundary2 = props.getCaretBoundary;
18480
18741
  if (getCaretBoundary2 === void 0) getCaretBoundary2 = caretUnknownFormatBoundary;
@@ -18935,9 +19196,9 @@ function useNumericFormat(props) {
18935
19196
  var allowNegative = props.allowNegative;
18936
19197
  var allowLeadingZeros = props.allowLeadingZeros;
18937
19198
  var onKeyDown = props.onKeyDown;
18938
- if (onKeyDown === void 0) onKeyDown = noop3;
19199
+ if (onKeyDown === void 0) onKeyDown = noop4;
18939
19200
  var onBlur = props.onBlur;
18940
- if (onBlur === void 0) onBlur = noop3;
19201
+ if (onBlur === void 0) onBlur = noop4;
18941
19202
  var thousandSeparator = props.thousandSeparator;
18942
19203
  var decimalScale = props.decimalScale;
18943
19204
  var fixedDecimalScale = props.fixedDecimalScale;
@@ -19264,7 +19525,7 @@ const NumberInput = factory((_props, ref) => {
19264
19525
  inputRef.current.setSelectionRange(position, position);
19265
19526
  }
19266
19527
  };
19267
- const incrementRef = useRef(noop$3);
19528
+ const incrementRef = useRef(noop$4);
19268
19529
  incrementRef.current = () => {
19269
19530
  if (!canIncrement(_value)) {
19270
19531
  return;
@@ -19290,7 +19551,7 @@ const NumberInput = factory((_props, ref) => {
19290
19551
  );
19291
19552
  setTimeout(() => adjustCursor(inputRef.current?.value.length), 0);
19292
19553
  };
19293
- const decrementRef = useRef(noop$3);
19554
+ const decrementRef = useRef(noop$4);
19294
19555
  decrementRef.current = () => {
19295
19556
  if (!canIncrement(_value)) {
19296
19557
  return;
@@ -23139,7 +23400,7 @@ const BIGINT_FORMAT_RANGES = {
23139
23400
  int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
23140
23401
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
23141
23402
  };
23142
- function pick(schema, mask) {
23403
+ function pick2(schema, mask) {
23143
23404
  const currDef = schema._zod.def;
23144
23405
  const checks = currDef.checks;
23145
23406
  const hasChecks = checks && checks.length > 0;
@@ -23487,7 +23748,7 @@ const util = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
23487
23748
  optionalKeys,
23488
23749
  parsedType,
23489
23750
  partial,
23490
- pick,
23751
+ pick: pick2,
23491
23752
  prefixIssues,
23492
23753
  primitiveTypes,
23493
23754
  promiseAllObject,
@@ -34884,7 +35145,7 @@ const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
34884
35145
  return safeExtend(inst, incoming);
34885
35146
  };
34886
35147
  inst.merge = (other) => merge(inst, other);
34887
- inst.pick = (mask) => pick(inst, mask);
35148
+ inst.pick = (mask) => pick2(inst, mask);
34888
35149
  inst.omit = (mask) => omit(inst, mask);
34889
35150
  inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
34890
35151
  inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
@@ -36432,6 +36693,7 @@ const AVATAR_PALETTE = [
36432
36693
  colors.accent2,
36433
36694
  colors.accent3
36434
36695
  ];
36696
+ const overlayZIndexAboveLegacyShell = 1300;
36435
36697
  const radii = {
36436
36698
  xs: "0.25rem",
36437
36699
  sm: "0.375rem",
@@ -36725,8 +36987,8 @@ const Card = forwardRef((props, ref) => /* @__PURE__ */ jsx(Card$1, { padding: "
36725
36987
  Card.displayName = "Card";
36726
36988
  const Checkbox = forwardRef((props, ref) => /* @__PURE__ */ jsx(Checkbox$1, { color: colors.primary, ...props, ref }));
36727
36989
  Checkbox.displayName = "Checkbox";
36728
- function Drawer(props) {
36729
- return /* @__PURE__ */ jsx(Drawer$1, { position: "right", size: "lg", p: "lg", ...props });
36990
+ function Drawer({ zIndex = overlayZIndexAboveLegacyShell, ...props }) {
36991
+ return /* @__PURE__ */ jsx(Drawer$1, { position: "right", size: "lg", p: "lg", ...props, zIndex });
36730
36992
  }
36731
36993
  function Loader(props) {
36732
36994
  return /* @__PURE__ */ jsx(Loader$1, { ...props });
@@ -36741,8 +37003,8 @@ const Menu = Object.assign(MenuBase, {
36741
37003
  Label: Menu$1.Label,
36742
37004
  Divider: Menu$1.Divider
36743
37005
  });
36744
- function Modal(props) {
36745
- return /* @__PURE__ */ jsx(Modal$1, { centered: true, radius: "lg", ...props });
37006
+ function Modal({ zIndex = overlayZIndexAboveLegacyShell, ...props }) {
37007
+ return /* @__PURE__ */ jsx(Modal$1, { centered: true, radius: "lg", ...props, zIndex });
36746
37008
  }
36747
37009
  const PasswordInput = forwardRef((props, ref) => /* @__PURE__ */ jsx(PasswordInput$1, { size: "md", ...props, ref }));
36748
37010
  PasswordInput.displayName = "PasswordInput";
@@ -40560,6 +40822,8 @@ function UserMenu({
40560
40822
  ] }, item.id)) })
40561
40823
  ] });
40562
40824
  }
40825
+ const Textarea = forwardRef((props, ref) => /* @__PURE__ */ jsx(Textarea$1, { size: "md", ...props, ref }));
40826
+ Textarea.displayName = "Textarea";
40563
40827
  const DefaultDocumentIcon = () => /* @__PURE__ */ jsxs(
40564
40828
  "svg",
40565
40829
  {
@@ -41508,6 +41772,7 @@ export {
41508
41772
  Tabs,
41509
41773
  Text,
41510
41774
  TextInput,
41775
+ Textarea,
41511
41776
  ThemeIcon,
41512
41777
  Title,
41513
41778
  Tooltip,