@fairmint/ui 0.2.27 → 0.2.29

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.
@@ -775,12 +775,12 @@ function shallowCompare(prevValue, currValue) {
775
775
  }
776
776
  function useShallowCompare(dependencies) {
777
777
  const ref = React.useRef([]);
778
- const updateRef = React.useRef(0);
778
+ const updateRef3 = React.useRef(0);
779
779
  if (!shallowCompare(ref.current, dependencies)) {
780
780
  ref.current = dependencies;
781
- updateRef.current += 1;
781
+ updateRef3.current += 1;
782
782
  }
783
- return [updateRef.current];
783
+ return [updateRef3.current];
784
784
  }
785
785
  function useShallowEffect(cb, dependencies) {
786
786
  React.useEffect(cb, useShallowCompare(dependencies));
@@ -2501,7 +2501,7 @@ Transition$2.propTypes = process.env.NODE_ENV !== "production" ? {
2501
2501
  */
2502
2502
  onExited: PropTypes.func
2503
2503
  } : {};
2504
- function noop$4() {
2504
+ function noop$5() {
2505
2505
  }
2506
2506
  Transition$2.defaultProps = {
2507
2507
  in: false,
@@ -2510,12 +2510,12 @@ Transition$2.defaultProps = {
2510
2510
  appear: false,
2511
2511
  enter: true,
2512
2512
  exit: true,
2513
- onEnter: noop$4,
2514
- onEntering: noop$4,
2515
- onEntered: noop$4,
2516
- onExit: noop$4,
2517
- onExiting: noop$4,
2518
- onExited: noop$4
2513
+ onEnter: noop$5,
2514
+ onEntering: noop$5,
2515
+ onEntered: noop$5,
2516
+ onExit: noop$5,
2517
+ onExiting: noop$5,
2518
+ onExited: noop$5
2519
2519
  };
2520
2520
  Transition$2.UNMOUNTED = UNMOUNTED;
2521
2521
  Transition$2.EXITED = EXITED;
@@ -2623,7 +2623,7 @@ var values$1 = Object.values || function(obj) {
2623
2623
  return obj[k];
2624
2624
  });
2625
2625
  };
2626
- var defaultProps$_ = {
2626
+ var defaultProps$$ = {
2627
2627
  component: "div",
2628
2628
  childFactory: function childFactory(child) {
2629
2629
  return child;
@@ -2750,7 +2750,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
2750
2750
  */
2751
2751
  childFactory: PropTypes.func
2752
2752
  } : {};
2753
- TransitionGroup.defaultProps = defaultProps$_;
2753
+ TransitionGroup.defaultProps = defaultProps$$;
2754
2754
  var extendStatics = function(d, b) {
2755
2755
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2756
2756
  d2.__proto__ = b2;
@@ -3706,11 +3706,11 @@ const elevations = {
3706
3706
  function getDefaultZIndex(level) {
3707
3707
  return elevations[level];
3708
3708
  }
3709
- const noop$3 = () => {
3709
+ const noop$4 = () => {
3710
3710
  };
3711
3711
  function closeOnEscape(callback, options = { active: true }) {
3712
3712
  if (typeof callback !== "function" || !options.active) {
3713
- return options.onKeyDown || noop$3;
3713
+ return options.onKeyDown || noop$4;
3714
3714
  }
3715
3715
  return (event) => {
3716
3716
  if (event.key === "Escape") {
@@ -6172,7 +6172,7 @@ function useCollapse({
6172
6172
  }
6173
6173
  return getCollapseProps;
6174
6174
  }
6175
- const defaultProps$Z = {
6175
+ const defaultProps$_ = {
6176
6176
  transitionDuration: 200,
6177
6177
  transitionTimingFunction: "ease",
6178
6178
  animateOpacity: true
@@ -6188,7 +6188,7 @@ const Collapse = factory((props, ref) => {
6188
6188
  animateOpacity,
6189
6189
  keepMounted,
6190
6190
  ...others
6191
- } = useProps("Collapse", defaultProps$Z, props);
6191
+ } = useProps("Collapse", defaultProps$_, props);
6192
6192
  const theme2 = useMantineTheme();
6193
6193
  const shouldReduceMotion = useReducedMotion();
6194
6194
  const reduceMotion = theme2.respectReducedMotion ? shouldReduceMotion : false;
@@ -6619,15 +6619,15 @@ function isMouseLikePointerType(pointerType, strict) {
6619
6619
  return values2.includes(pointerType);
6620
6620
  }
6621
6621
  var isClient$1 = typeof document !== "undefined";
6622
- var noop$2 = function noop() {
6622
+ var noop$3 = function noop() {
6623
6623
  };
6624
- var index$3 = isClient$1 ? React.useLayoutEffect : noop$2;
6624
+ var index$5 = isClient$1 ? React.useLayoutEffect : noop$3;
6625
6625
  const SafeReact$1 = {
6626
6626
  ...React__namespace
6627
6627
  };
6628
6628
  function useLatestRef$1(value) {
6629
6629
  const ref = React__namespace.useRef(value);
6630
- index$3(() => {
6630
+ index$5(() => {
6631
6631
  ref.current = value;
6632
6632
  });
6633
6633
  return ref;
@@ -8098,9 +8098,9 @@ const computePosition = (reference, floating, options) => {
8098
8098
  });
8099
8099
  };
8100
8100
  var isClient = typeof document !== "undefined";
8101
- var noop$1 = function noop2() {
8101
+ var noop$2 = function noop2() {
8102
8102
  };
8103
- var index$2 = isClient ? React.useLayoutEffect : noop$1;
8103
+ var index$4 = isClient ? React.useLayoutEffect : noop$2;
8104
8104
  function deepEqual(a, b) {
8105
8105
  if (a === b) {
8106
8106
  return true;
@@ -8161,7 +8161,7 @@ function roundByDPR(element, value) {
8161
8161
  }
8162
8162
  function useLatestRef(value) {
8163
8163
  const ref = React__namespace.useRef(value);
8164
- index$2(() => {
8164
+ index$4(() => {
8165
8165
  ref.current = value;
8166
8166
  });
8167
8167
  return ref;
@@ -8247,7 +8247,7 @@ function useFloating$1(options) {
8247
8247
  }
8248
8248
  });
8249
8249
  }, [latestMiddleware, placement, strategy, platformRef, openRef]);
8250
- index$2(() => {
8250
+ index$4(() => {
8251
8251
  if (open === false && dataRef.current.isPositioned) {
8252
8252
  dataRef.current.isPositioned = false;
8253
8253
  setData((data2) => ({
@@ -8257,13 +8257,13 @@ function useFloating$1(options) {
8257
8257
  }
8258
8258
  }, [open]);
8259
8259
  const isMountedRef = React__namespace.useRef(false);
8260
- index$2(() => {
8260
+ index$4(() => {
8261
8261
  isMountedRef.current = true;
8262
8262
  return () => {
8263
8263
  isMountedRef.current = false;
8264
8264
  };
8265
8265
  }, []);
8266
- index$2(() => {
8266
+ index$4(() => {
8267
8267
  if (referenceEl) referenceRef.current = referenceEl;
8268
8268
  if (floatingEl) floatingRef.current = floatingEl;
8269
8269
  if (referenceEl && floatingEl) {
@@ -8464,7 +8464,7 @@ const genId = () => (
8464
8464
  );
8465
8465
  function useFloatingId() {
8466
8466
  const [id2, setId] = React__namespace.useState(() => serverHandoffComplete ? genId() : void 0);
8467
- index$3(() => {
8467
+ index$5(() => {
8468
8468
  if (id2 == null) {
8469
8469
  setId(genId());
8470
8470
  }
@@ -8770,7 +8770,7 @@ function useHover(context, props) {
8770
8770
  };
8771
8771
  }
8772
8772
  }, [elements, enabled, context, mouseOnly, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, openRef, tree, delayRef, handleCloseRef, dataRef, isClickLikeOpenEvent, restMsRef]);
8773
- index$3(() => {
8773
+ index$5(() => {
8774
8774
  var _handleCloseRef$curre;
8775
8775
  if (!enabled) return;
8776
8776
  if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && (_handleCloseRef$curre = _handleCloseRef$curre.__options) != null && _handleCloseRef$curre.blockPointerEvents && isHoverOpen()) {
@@ -8796,7 +8796,7 @@ function useHover(context, props) {
8796
8796
  }
8797
8797
  }
8798
8798
  }, [enabled, open, parentId, elements, tree, handleCloseRef, isHoverOpen]);
8799
- index$3(() => {
8799
+ index$5(() => {
8800
8800
  if (!open) {
8801
8801
  pointerTypeRef.current = void 0;
8802
8802
  restTimeoutPendingRef.current = false;
@@ -8885,7 +8885,7 @@ function FloatingDelayGroup(props) {
8885
8885
  currentId
8886
8886
  });
8887
8887
  }, []);
8888
- index$3(() => {
8888
+ index$5(() => {
8889
8889
  if (state.currentId) {
8890
8890
  if (initialCurrentIdRef.current === null) {
8891
8891
  initialCurrentIdRef.current = state.currentId;
@@ -8934,7 +8934,7 @@ function useDelayGroup(context, options) {
8934
8934
  setState,
8935
8935
  timeoutMs
8936
8936
  } = groupContext;
8937
- index$3(() => {
8937
+ index$5(() => {
8938
8938
  if (!enabled) return;
8939
8939
  if (!currentId) return;
8940
8940
  setState({
@@ -8947,7 +8947,7 @@ function useDelayGroup(context, options) {
8947
8947
  onOpenChange(false);
8948
8948
  }
8949
8949
  }, [enabled, id2, onOpenChange, setState, currentId, initialDelay]);
8950
- index$3(() => {
8950
+ index$5(() => {
8951
8951
  function unset() {
8952
8952
  onOpenChange(false);
8953
8953
  setState({
@@ -8967,7 +8967,7 @@ function useDelayGroup(context, options) {
8967
8967
  unset();
8968
8968
  }
8969
8969
  }, [enabled, open, setState, currentId, id2, onOpenChange, initialDelay, timeoutMs]);
8970
- index$3(() => {
8970
+ index$5(() => {
8971
8971
  if (!enabled) return;
8972
8972
  if (setCurrentId === NOOP || !open) return;
8973
8973
  setCurrentId(id2);
@@ -9312,7 +9312,7 @@ function useFloating(options) {
9312
9312
  const domReference = optionDomReference || _domReference;
9313
9313
  const domReferenceRef = React__namespace.useRef(null);
9314
9314
  const tree = useFloatingTree();
9315
- index$3(() => {
9315
+ index$5(() => {
9316
9316
  if (domReference) {
9317
9317
  domReferenceRef.current = domReference;
9318
9318
  }
@@ -9364,7 +9364,7 @@ function useFloating(options) {
9364
9364
  elements,
9365
9365
  nodeId
9366
9366
  }), [position, refs, elements, nodeId, rootContext]);
9367
- index$3(() => {
9367
+ index$5(() => {
9368
9368
  rootContext.dataRef.current.floatingContext = context;
9369
9369
  const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
9370
9370
  if (node) {
@@ -9709,14 +9709,14 @@ const ScrollAreaCorner = React.forwardRef((props, ref) => {
9709
9709
  const hasCorner = ctx.type !== "scroll" && hasBothScrollbarsVisible;
9710
9710
  return hasCorner ? /* @__PURE__ */ jsxRuntime.jsx(Corner, { ...props, ref }) : null;
9711
9711
  });
9712
- const defaultProps$Y = {
9712
+ const defaultProps$Z = {
9713
9713
  scrollHideDelay: 1e3,
9714
9714
  type: "hover"
9715
9715
  };
9716
9716
  const ScrollAreaRoot = React.forwardRef((_props, ref) => {
9717
9717
  const { type, scrollHideDelay, scrollbars, getStyles: getStyles2, ...others } = useProps(
9718
9718
  "ScrollAreaRoot",
9719
- defaultProps$Y,
9719
+ defaultProps$Z,
9720
9720
  _props
9721
9721
  );
9722
9722
  const [scrollArea, setScrollArea] = React.useState(null);
@@ -10358,7 +10358,7 @@ const ScrollAreaViewport = React.forwardRef(
10358
10358
  }
10359
10359
  );
10360
10360
  ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
10361
- const defaultProps$X = {
10361
+ const defaultProps$Y = {
10362
10362
  scrollHideDelay: 1e3,
10363
10363
  type: "hover",
10364
10364
  scrollbars: "xy"
@@ -10382,7 +10382,7 @@ const varsResolver$T = createVarsResolver(
10382
10382
  }
10383
10383
  );
10384
10384
  const ScrollArea = factory((_props, ref) => {
10385
- const props = useProps("ScrollArea", defaultProps$X, _props);
10385
+ const props = useProps("ScrollArea", defaultProps$Y, _props);
10386
10386
  const {
10387
10387
  classNames: classNames2,
10388
10388
  className,
@@ -10534,7 +10534,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
10534
10534
  onTopReached,
10535
10535
  onOverflowChange,
10536
10536
  ...others
10537
- } = useProps("ScrollAreaAutosize", defaultProps$X, props);
10537
+ } = useProps("ScrollAreaAutosize", defaultProps$Y, props);
10538
10538
  const viewportObserverRef = React.useRef(null);
10539
10539
  const combinedViewportRef = useMergeRefs([viewportRef, viewportObserverRef]);
10540
10540
  const [overflowing, setOverflowing] = React.useState(false);
@@ -10611,12 +10611,12 @@ ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
10611
10611
  ScrollAreaAutosize.classes = classes$Q;
10612
10612
  ScrollArea.Autosize = ScrollAreaAutosize;
10613
10613
  var classes$P = { "root": "m_87cf2631" };
10614
- const defaultProps$W = {
10614
+ const defaultProps$X = {
10615
10615
  __staticSelector: "UnstyledButton"
10616
10616
  };
10617
10617
  const UnstyledButton = polymorphicFactory(
10618
10618
  (_props, ref) => {
10619
- const props = useProps("UnstyledButton", defaultProps$W, _props);
10619
+ const props = useProps("UnstyledButton", defaultProps$X, _props);
10620
10620
  const {
10621
10621
  className,
10622
10622
  component = "button",
@@ -10862,7 +10862,7 @@ function getFloatingPosition(dir, position) {
10862
10862
  return position;
10863
10863
  }
10864
10864
  var classes$M = { "root": "m_9814e45f" };
10865
- const defaultProps$V = {
10865
+ const defaultProps$W = {
10866
10866
  zIndex: getDefaultZIndex("modal")
10867
10867
  };
10868
10868
  const varsResolver$R = createVarsResolver(
@@ -10876,7 +10876,7 @@ const varsResolver$R = createVarsResolver(
10876
10876
  })
10877
10877
  );
10878
10878
  const Overlay = polymorphicFactory((_props, ref) => {
10879
- const props = useProps("Overlay", defaultProps$V, _props);
10879
+ const props = useProps("Overlay", defaultProps$W, _props);
10880
10880
  const {
10881
10881
  classNames: classNames2,
10882
10882
  className,
@@ -10941,11 +10941,11 @@ function getTargetNode({ target, reuseTargetNode, ...others }) {
10941
10941
  }
10942
10942
  return createPortalNode(others);
10943
10943
  }
10944
- const defaultProps$U = {
10944
+ const defaultProps$V = {
10945
10945
  reuseTargetNode: true
10946
10946
  };
10947
10947
  const Portal = factory((props, ref) => {
10948
- const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$U, props);
10948
+ const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$V, props);
10949
10949
  const [mounted, setMounted] = React.useState(false);
10950
10950
  const nodeRef = React.useRef(null);
10951
10951
  useIsomorphicEffect$1(() => {
@@ -11381,14 +11381,14 @@ const PopoverDropdown = factory((_props, ref) => {
11381
11381
  });
11382
11382
  PopoverDropdown.classes = classes$L;
11383
11383
  PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
11384
- const defaultProps$T = {
11384
+ const defaultProps$U = {
11385
11385
  refProp: "ref",
11386
11386
  popupType: "dialog"
11387
11387
  };
11388
11388
  const PopoverTarget = factory((props, ref) => {
11389
11389
  const { children, refProp, popupType, ...others } = useProps(
11390
11390
  "PopoverTarget",
11391
- defaultProps$T,
11391
+ defaultProps$U,
11392
11392
  props
11393
11393
  );
11394
11394
  const child = getSingleElementChild(children);
@@ -11555,7 +11555,7 @@ function usePopover(options) {
11555
11555
  onToggle
11556
11556
  };
11557
11557
  }
11558
- const defaultProps$S = {
11558
+ const defaultProps$T = {
11559
11559
  position: "bottom",
11560
11560
  offset: 8,
11561
11561
  positionDependencies: [],
@@ -11585,7 +11585,7 @@ const varsResolver$Q = createVarsResolver((_, { radius, shadow }) => ({
11585
11585
  }
11586
11586
  }));
11587
11587
  function Popover(_props) {
11588
- const props = useProps("Popover", defaultProps$S, _props);
11588
+ const props = useProps("Popover", defaultProps$T, _props);
11589
11589
  const {
11590
11590
  children,
11591
11591
  position,
@@ -11815,7 +11815,7 @@ const defaultLoaders = {
11815
11815
  oval: Oval,
11816
11816
  dots: Dots
11817
11817
  };
11818
- const defaultProps$R = {
11818
+ const defaultProps$S = {
11819
11819
  loaders: defaultLoaders,
11820
11820
  type: "oval"
11821
11821
  };
@@ -11826,7 +11826,7 @@ const varsResolver$P = createVarsResolver((theme2, { size: size2, color }) => ({
11826
11826
  }
11827
11827
  }));
11828
11828
  const Loader$1 = factory((_props, ref) => {
11829
- const props = useProps("Loader", defaultProps$R, _props);
11829
+ const props = useProps("Loader", defaultProps$S, _props);
11830
11830
  const {
11831
11831
  size: size2,
11832
11832
  color,
@@ -11875,14 +11875,14 @@ Loader$1.defaultLoaders = defaultLoaders;
11875
11875
  Loader$1.classes = classes$K;
11876
11876
  Loader$1.displayName = "@mantine/core/Loader";
11877
11877
  var classes$J = { "root": "m_8d3f4000", "icon": "m_8d3afb97", "loader": "m_302b9fb1", "group": "m_1a0f1b21", "groupSection": "m_437b6484" };
11878
- const defaultProps$Q = {
11878
+ const defaultProps$R = {
11879
11879
  orientation: "horizontal"
11880
11880
  };
11881
11881
  const varsResolver$O = createVarsResolver((_, { borderWidth }) => ({
11882
11882
  group: { "--ai-border-width": rem(borderWidth) }
11883
11883
  }));
11884
11884
  const ActionIconGroup = factory((_props, ref) => {
11885
- const props = useProps("ActionIconGroup", defaultProps$Q, _props);
11885
+ const props = useProps("ActionIconGroup", defaultProps$R, _props);
11886
11886
  const {
11887
11887
  className,
11888
11888
  style,
@@ -11896,7 +11896,7 @@ const ActionIconGroup = factory((_props, ref) => {
11896
11896
  mod,
11897
11897
  attributes,
11898
11898
  ...others
11899
- } = useProps("ActionIconGroup", defaultProps$Q, _props);
11899
+ } = useProps("ActionIconGroup", defaultProps$R, _props);
11900
11900
  const getStyles2 = useStyles({
11901
11901
  name: "ActionIconGroup",
11902
11902
  props,
@@ -12087,7 +12087,7 @@ const CloseIcon = React.forwardRef(
12087
12087
  );
12088
12088
  CloseIcon.displayName = "@mantine/core/CloseIcon";
12089
12089
  var classes$I = { "root": "m_86a44da5", "root--subtle": "m_220c80f2" };
12090
- const defaultProps$P = {
12090
+ const defaultProps$Q = {
12091
12091
  variant: "subtle"
12092
12092
  };
12093
12093
  const varsResolver$L = createVarsResolver((_, { size: size2, radius, iconSize }) => ({
@@ -12098,7 +12098,7 @@ const varsResolver$L = createVarsResolver((_, { size: size2, radius, iconSize })
12098
12098
  }
12099
12099
  }));
12100
12100
  const CloseButton = polymorphicFactory((_props, ref) => {
12101
- const props = useProps("CloseButton", defaultProps$P, _props);
12101
+ const props = useProps("CloseButton", defaultProps$Q, _props);
12102
12102
  const {
12103
12103
  iconSize,
12104
12104
  children,
@@ -12154,7 +12154,7 @@ function filterFalsyChildren(children) {
12154
12154
  return React.Children.toArray(children).filter(Boolean);
12155
12155
  }
12156
12156
  var classes$H = { "root": "m_4081bf90" };
12157
- const defaultProps$O = {
12157
+ const defaultProps$P = {
12158
12158
  preventGrowOverflow: true,
12159
12159
  gap: "md",
12160
12160
  align: "center",
@@ -12173,7 +12173,7 @@ const varsResolver$K = createVarsResolver(
12173
12173
  })
12174
12174
  );
12175
12175
  const Group = factory((_props, ref) => {
12176
- const props = useProps("Group", defaultProps$O, _props);
12176
+ const props = useProps("Group", defaultProps$P, _props);
12177
12177
  const {
12178
12178
  classNames: classNames2,
12179
12179
  className,
@@ -12703,7 +12703,7 @@ const InputError = factory((_props, ref) => {
12703
12703
  });
12704
12704
  InputError.classes = classes$F;
12705
12705
  InputError.displayName = "@mantine/core/InputError";
12706
- const defaultProps$N = {
12706
+ const defaultProps$O = {
12707
12707
  labelElement: "label"
12708
12708
  };
12709
12709
  const varsResolver$H = createVarsResolver((_, { size: size2 }) => ({
@@ -12713,7 +12713,7 @@ const varsResolver$H = createVarsResolver((_, { size: size2 }) => ({
12713
12713
  }
12714
12714
  }));
12715
12715
  const InputLabel = factory((_props, ref) => {
12716
- const props = useProps("InputLabel", defaultProps$N, _props);
12716
+ const props = useProps("InputLabel", defaultProps$O, _props);
12717
12717
  const {
12718
12718
  classNames: classNames2,
12719
12719
  className,
@@ -12732,7 +12732,7 @@ const InputLabel = factory((_props, ref) => {
12732
12732
  mod,
12733
12733
  attributes,
12734
12734
  ...others
12735
- } = useProps("InputLabel", defaultProps$N, props);
12735
+ } = useProps("InputLabel", defaultProps$O, props);
12736
12736
  const _getStyles = useStyles({
12737
12737
  name: ["InputWrapper", __staticSelector],
12738
12738
  props,
@@ -12825,7 +12825,7 @@ function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
12825
12825
  const offsetBottom = hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error");
12826
12826
  return { offsetBottom, offsetTop };
12827
12827
  }
12828
- const defaultProps$M = {
12828
+ const defaultProps$N = {
12829
12829
  labelElement: "label",
12830
12830
  inputContainer: (children) => children,
12831
12831
  inputWrapperOrder: ["label", "description", "input", "error"]
@@ -12843,7 +12843,7 @@ const varsResolver$G = createVarsResolver((_, { size: size2 }) => ({
12843
12843
  }
12844
12844
  }));
12845
12845
  const InputWrapper = factory((_props, ref) => {
12846
- const props = useProps("InputWrapper", defaultProps$M, _props);
12846
+ const props = useProps("InputWrapper", defaultProps$N, _props);
12847
12847
  const {
12848
12848
  classNames: classNames2,
12849
12849
  className,
@@ -12977,7 +12977,7 @@ const InputWrapper = factory((_props, ref) => {
12977
12977
  });
12978
12978
  InputWrapper.classes = classes$F;
12979
12979
  InputWrapper.displayName = "@mantine/core/InputWrapper";
12980
- const defaultProps$L = {
12980
+ const defaultProps$M = {
12981
12981
  variant: "default",
12982
12982
  leftSectionPointerEvents: "none",
12983
12983
  rightSectionPointerEvents: "none",
@@ -13000,7 +13000,7 @@ const varsResolver$F = createVarsResolver((_, props, ctx) => ({
13000
13000
  }
13001
13001
  }));
13002
13002
  const Input = polymorphicFactory((_props, ref) => {
13003
- const props = useProps("Input", defaultProps$L, _props);
13003
+ const props = useProps("Input", defaultProps$M, _props);
13004
13004
  const {
13005
13005
  classNames: classNames2,
13006
13006
  className,
@@ -13216,13 +13216,13 @@ function useInputProps(component, defaultProps2, _props) {
13216
13216
  }
13217
13217
  };
13218
13218
  }
13219
- const defaultProps$K = {
13219
+ const defaultProps$L = {
13220
13220
  __staticSelector: "InputBase",
13221
13221
  withAria: true,
13222
13222
  size: "sm"
13223
13223
  };
13224
13224
  const InputBase = polymorphicFactory((props, ref) => {
13225
- const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$K, props);
13225
+ const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$L, props);
13226
13226
  return /* @__PURE__ */ jsxRuntime.jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsxRuntime.jsx(Input, { ...inputProps, ...others, ref }) });
13227
13227
  });
13228
13228
  InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
@@ -13615,7 +13615,7 @@ function getTextTruncate(truncate) {
13615
13615
  }
13616
13616
  return void 0;
13617
13617
  }
13618
- const defaultProps$J = {
13618
+ const defaultProps$K = {
13619
13619
  inherit: false
13620
13620
  };
13621
13621
  const varsResolver$C = createVarsResolver(
@@ -13632,7 +13632,7 @@ const varsResolver$C = createVarsResolver(
13632
13632
  })
13633
13633
  );
13634
13634
  const Text = polymorphicFactory((_props, ref) => {
13635
- const props = useProps("Text", defaultProps$J, _props);
13635
+ const props = useProps("Text", defaultProps$K, _props);
13636
13636
  const {
13637
13637
  lineClamp,
13638
13638
  truncate,
@@ -13690,13 +13690,13 @@ const Text = polymorphicFactory((_props, ref) => {
13690
13690
  Text.classes = classes$B;
13691
13691
  Text.displayName = "@mantine/core/Text";
13692
13692
  var classes$A = { "root": "m_849cf0da" };
13693
- const defaultProps$I = {
13693
+ const defaultProps$J = {
13694
13694
  underline: "hover"
13695
13695
  };
13696
13696
  const Anchor = polymorphicFactory((props, ref) => {
13697
13697
  const { underline, className, unstyled, mod, ...others } = useProps(
13698
13698
  "Anchor",
13699
- defaultProps$I,
13699
+ defaultProps$J,
13700
13700
  props
13701
13701
  );
13702
13702
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -14284,7 +14284,7 @@ function useResizing({ transitionDuration, disabled }) {
14284
14284
  }, [disabled, transitionDuration]);
14285
14285
  return resizing;
14286
14286
  }
14287
- const defaultProps$H = {
14287
+ const defaultProps$I = {
14288
14288
  withBorder: true,
14289
14289
  padding: 0,
14290
14290
  transitionDuration: 200,
@@ -14301,7 +14301,7 @@ const varsResolver$B = createVarsResolver(
14301
14301
  })
14302
14302
  );
14303
14303
  const AppShell = factory((_props, ref) => {
14304
- const props = useProps("AppShell", defaultProps$H, _props);
14304
+ const props = useProps("AppShell", defaultProps$I, _props);
14305
14305
  const {
14306
14306
  classNames: classNames2,
14307
14307
  className,
@@ -14409,7 +14409,7 @@ function getOptionsLockup(options) {
14409
14409
  }, {});
14410
14410
  }
14411
14411
  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" };
14412
- const defaultProps$G = {
14412
+ const defaultProps$H = {
14413
14413
  error: null
14414
14414
  };
14415
14415
  const varsResolver$A = createVarsResolver((theme2, { size: size2, color }) => ({
@@ -14419,7 +14419,7 @@ const varsResolver$A = createVarsResolver((theme2, { size: size2, color }) => ({
14419
14419
  }
14420
14420
  }));
14421
14421
  const ComboboxChevron = factory((_props, ref) => {
14422
- const props = useProps("ComboboxChevron", defaultProps$G, _props);
14422
+ const props = useProps("ComboboxChevron", defaultProps$H, _props);
14423
14423
  const { size: size2, error: error2, style, className, classNames: classNames2, styles, unstyled, vars, mod, ...others } = props;
14424
14424
  const getStyles2 = useStyles({
14425
14425
  name: "ComboboxChevron",
@@ -14503,11 +14503,11 @@ const ComboboxDropdown = factory((props, ref) => {
14503
14503
  });
14504
14504
  ComboboxDropdown.classes = classes$y;
14505
14505
  ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
14506
- const defaultProps$F = {
14506
+ const defaultProps$G = {
14507
14507
  refProp: "ref"
14508
14508
  };
14509
14509
  const ComboboxDropdownTarget = factory((props, ref) => {
14510
- const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$F, props);
14510
+ const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$G, props);
14511
14511
  useComboboxContext();
14512
14512
  if (!isElement$1(children)) {
14513
14513
  throw new Error(
@@ -14612,7 +14612,7 @@ function useComboboxTargetProps({
14612
14612
  onKeyDown: handleKeyDown
14613
14613
  };
14614
14614
  }
14615
- const defaultProps$E = {
14615
+ const defaultProps$F = {
14616
14616
  refProp: "ref",
14617
14617
  targetType: "input",
14618
14618
  withKeyboardNavigation: true,
@@ -14630,7 +14630,7 @@ const ComboboxEventsTarget = factory((props, ref) => {
14630
14630
  targetType,
14631
14631
  autoComplete,
14632
14632
  ...others
14633
- } = useProps("ComboboxEventsTarget", defaultProps$E, props);
14633
+ } = useProps("ComboboxEventsTarget", defaultProps$F, props);
14634
14634
  const child = getSingleElementChild(children);
14635
14635
  if (!child) {
14636
14636
  throw new Error(
@@ -14818,12 +14818,12 @@ const ComboboxOptions = factory((_props, ref) => {
14818
14818
  });
14819
14819
  ComboboxOptions.classes = classes$y;
14820
14820
  ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
14821
- const defaultProps$D = {
14821
+ const defaultProps$E = {
14822
14822
  withAriaAttributes: true,
14823
14823
  withKeyboardNavigation: true
14824
14824
  };
14825
14825
  const ComboboxSearch = factory((_props, ref) => {
14826
- const props = useProps("ComboboxSearch", defaultProps$D, _props);
14826
+ const props = useProps("ComboboxSearch", defaultProps$E, _props);
14827
14827
  const {
14828
14828
  classNames: classNames2,
14829
14829
  styles,
@@ -14860,7 +14860,7 @@ const ComboboxSearch = factory((_props, ref) => {
14860
14860
  });
14861
14861
  ComboboxSearch.classes = classes$y;
14862
14862
  ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
14863
- const defaultProps$C = {
14863
+ const defaultProps$D = {
14864
14864
  refProp: "ref",
14865
14865
  targetType: "input",
14866
14866
  withKeyboardNavigation: true,
@@ -14878,7 +14878,7 @@ const ComboboxTarget = factory((props, ref) => {
14878
14878
  targetType,
14879
14879
  autoComplete,
14880
14880
  ...others
14881
- } = useProps("ComboboxTarget", defaultProps$C, props);
14881
+ } = useProps("ComboboxTarget", defaultProps$D, props);
14882
14882
  const child = getSingleElementChild(children);
14883
14883
  if (!child) {
14884
14884
  throw new Error(
@@ -15127,7 +15127,7 @@ function useCombobox({
15127
15127
  focusTarget
15128
15128
  };
15129
15129
  }
15130
- const defaultProps$B = {
15130
+ const defaultProps$C = {
15131
15131
  keepMounted: true,
15132
15132
  withinPortal: true,
15133
15133
  resetSelectionOnOptionHover: false,
@@ -15147,7 +15147,7 @@ const varsResolver$z = createVarsResolver((_, { size: size2, dropdownPadding })
15147
15147
  }
15148
15148
  }));
15149
15149
  function Combobox(_props) {
15150
- const props = useProps("Combobox", defaultProps$B, _props);
15150
+ const props = useProps("Combobox", defaultProps$C, _props);
15151
15151
  const {
15152
15152
  classNames: classNames2,
15153
15153
  styles,
@@ -15313,7 +15313,7 @@ const CheckboxGroupProvider = CheckboxGroupContext.Provider;
15313
15313
  const useCheckboxGroupContext = () => React.useContext(CheckboxGroupContext);
15314
15314
  const [CheckboxCardProvider, useCheckboxCardContext] = createOptionalContext();
15315
15315
  var classes$v = { "card": "m_26775b0a" };
15316
- const defaultProps$A = {
15316
+ const defaultProps$B = {
15317
15317
  withBorder: true
15318
15318
  };
15319
15319
  const varsResolver$y = createVarsResolver((_, { radius }) => ({
@@ -15322,7 +15322,7 @@ const varsResolver$y = createVarsResolver((_, { radius }) => ({
15322
15322
  }
15323
15323
  }));
15324
15324
  const CheckboxCard = factory((_props, ref) => {
15325
- const props = useProps("CheckboxCard", defaultProps$A, _props);
15325
+ const props = useProps("CheckboxCard", defaultProps$B, _props);
15326
15326
  const {
15327
15327
  classNames: classNames2,
15328
15328
  className,
@@ -15467,7 +15467,7 @@ function CheckboxIcon({ indeterminate, ...others }) {
15467
15467
  return /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { ...others });
15468
15468
  }
15469
15469
  var classes$u = { "indicator": "m_5e5256ee", "icon": "m_1b1c543a", "indicator--outline": "m_76e20374" };
15470
- const defaultProps$z = {
15470
+ const defaultProps$A = {
15471
15471
  icon: CheckboxIcon,
15472
15472
  variant: "filled"
15473
15473
  };
@@ -15486,7 +15486,7 @@ const varsResolver$x = createVarsResolver(
15486
15486
  }
15487
15487
  );
15488
15488
  const CheckboxIndicator = factory((_props, ref) => {
15489
- const props = useProps("CheckboxIndicator", defaultProps$z, _props);
15489
+ const props = useProps("CheckboxIndicator", defaultProps$A, _props);
15490
15490
  const {
15491
15491
  classNames: classNames2,
15492
15492
  className,
@@ -15537,7 +15537,7 @@ const CheckboxIndicator = factory((_props, ref) => {
15537
15537
  });
15538
15538
  CheckboxIndicator.displayName = "@mantine/core/CheckboxIndicator";
15539
15539
  CheckboxIndicator.classes = classes$u;
15540
- const defaultProps$y = {
15540
+ const defaultProps$z = {
15541
15541
  labelPosition: "right",
15542
15542
  icon: CheckboxIcon,
15543
15543
  variant: "filled"
@@ -15557,7 +15557,7 @@ const varsResolver$w = createVarsResolver(
15557
15557
  }
15558
15558
  );
15559
15559
  const Checkbox$1 = factory((_props, forwardedRef) => {
15560
- const props = useProps("Checkbox", defaultProps$y, _props);
15560
+ const props = useProps("Checkbox", defaultProps$z, _props);
15561
15561
  const {
15562
15562
  classNames: classNames2,
15563
15563
  className,
@@ -16160,14 +16160,14 @@ const Burger = factory((_props, ref) => {
16160
16160
  Burger.classes = classes$r;
16161
16161
  Burger.displayName = "@mantine/core/Burger";
16162
16162
  var classes$q = { "root": "m_77c9d27d", "inner": "m_80f1301b", "label": "m_811560b9", "section": "m_a74036a", "loader": "m_a25b86ee", "group": "m_80d6d844", "groupSection": "m_70be2a01" };
16163
- const defaultProps$x = {
16163
+ const defaultProps$y = {
16164
16164
  orientation: "horizontal"
16165
16165
  };
16166
16166
  const varsResolver$r = createVarsResolver((_, { borderWidth }) => ({
16167
16167
  group: { "--button-border-width": rem(borderWidth) }
16168
16168
  }));
16169
16169
  const ButtonGroup = factory((_props, ref) => {
16170
- const props = useProps("ButtonGroup", defaultProps$x, _props);
16170
+ const props = useProps("ButtonGroup", defaultProps$y, _props);
16171
16171
  const {
16172
16172
  className,
16173
16173
  style,
@@ -16181,7 +16181,7 @@ const ButtonGroup = factory((_props, ref) => {
16181
16181
  mod,
16182
16182
  attributes,
16183
16183
  ...others
16184
- } = useProps("ButtonGroup", defaultProps$x, _props);
16184
+ } = useProps("ButtonGroup", defaultProps$y, _props);
16185
16185
  const getStyles2 = useStyles({
16186
16186
  name: "ButtonGroup",
16187
16187
  props,
@@ -16524,7 +16524,7 @@ const Container = factory((_props, ref) => {
16524
16524
  Container.classes = classes$n;
16525
16525
  Container.displayName = "@mantine/core/Container";
16526
16526
  var classes$m = { "root": "m_3eebeb36", "label": "m_9e365f20" };
16527
- const defaultProps$w = {
16527
+ const defaultProps$x = {
16528
16528
  orientation: "horizontal"
16529
16529
  };
16530
16530
  const varsResolver$m = createVarsResolver((theme2, { color, variant, size: size2 }) => ({
@@ -16535,7 +16535,7 @@ const varsResolver$m = createVarsResolver((theme2, { color, variant, size: size2
16535
16535
  }
16536
16536
  }));
16537
16537
  const Divider = factory((_props, ref) => {
16538
- const props = useProps("Divider", defaultProps$w, _props);
16538
+ const props = useProps("Divider", defaultProps$x, _props);
16539
16539
  const {
16540
16540
  classNames: classNames2,
16541
16541
  className,
@@ -16690,7 +16690,7 @@ const rtlTransitions = {
16690
16690
  right: "slide-right",
16691
16691
  left: "slide-left"
16692
16692
  };
16693
- const defaultProps$v = {
16693
+ const defaultProps$w = {
16694
16694
  closeOnClickOutside: true,
16695
16695
  withinPortal: true,
16696
16696
  lockScroll: true,
@@ -16712,7 +16712,7 @@ const varsResolver$l = createVarsResolver((_, { position, size: size2, offset: o
16712
16712
  }
16713
16713
  }));
16714
16714
  const DrawerRoot = factory((_props, ref) => {
16715
- const props = useProps("DrawerRoot", defaultProps$v, _props);
16715
+ const props = useProps("DrawerRoot", defaultProps$w, _props);
16716
16716
  const {
16717
16717
  classNames: classNames2,
16718
16718
  className,
@@ -16796,7 +16796,7 @@ const DrawerTitle = factory((_props, ref) => {
16796
16796
  });
16797
16797
  DrawerTitle.classes = classes$l;
16798
16798
  DrawerTitle.displayName = "@mantine/core/DrawerTitle";
16799
- const defaultProps$u = {
16799
+ const defaultProps$v = {
16800
16800
  closeOnClickOutside: true,
16801
16801
  withinPortal: true,
16802
16802
  lockScroll: true,
@@ -16820,7 +16820,7 @@ const Drawer$1 = factory((_props, ref) => {
16820
16820
  stackId,
16821
16821
  zIndex,
16822
16822
  ...others
16823
- } = useProps("Drawer", defaultProps$u, _props);
16823
+ } = useProps("Drawer", defaultProps$v, _props);
16824
16824
  const ctx = useDrawerStackContext();
16825
16825
  const hasHeader = !!title || withCloseButton;
16826
16826
  const stackProps = ctx && stackId ? {
@@ -16957,11 +16957,11 @@ function GridColVariables({ span, order, offset: offset2, selector }) {
16957
16957
  }
16958
16958
  );
16959
16959
  }
16960
- const defaultProps$t = {
16960
+ const defaultProps$u = {
16961
16961
  span: 12
16962
16962
  };
16963
16963
  const GridCol = factory((_props, ref) => {
16964
- const props = useProps("GridCol", defaultProps$t, _props);
16964
+ const props = useProps("GridCol", defaultProps$u, _props);
16965
16965
  const { classNames: classNames2, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
16966
16966
  const ctx = useGridContext();
16967
16967
  const responsiveClassName = useRandomClassName();
@@ -17027,7 +17027,7 @@ function GridVariables({ gutter, selector, breakpoints, type }) {
17027
17027
  }
17028
17028
  );
17029
17029
  }
17030
- const defaultProps$s = {
17030
+ const defaultProps$t = {
17031
17031
  gutter: "md",
17032
17032
  grow: false,
17033
17033
  columns: 12
@@ -17040,7 +17040,7 @@ const varsResolver$k = createVarsResolver((_, { justify, align, overflow }) => (
17040
17040
  }
17041
17041
  }));
17042
17042
  const Grid = factory((_props, ref) => {
17043
- const props = useProps("Grid", defaultProps$s, _props);
17043
+ const props = useProps("Grid", defaultProps$t, _props);
17044
17044
  const {
17045
17045
  classNames: classNames2,
17046
17046
  className,
@@ -17087,6 +17087,267 @@ const Grid = factory((_props, ref) => {
17087
17087
  Grid.classes = classes$k;
17088
17088
  Grid.displayName = "@mantine/core/Grid";
17089
17089
  Grid.Col = GridCol;
17090
+ var index$3 = React.useLayoutEffect;
17091
+ var useLatest = function useLatest2(value) {
17092
+ var ref = React.useRef(value);
17093
+ index$3(function() {
17094
+ ref.current = value;
17095
+ });
17096
+ return ref;
17097
+ };
17098
+ var updateRef = function updateRef2(ref, value) {
17099
+ if (typeof ref === "function") {
17100
+ ref(value);
17101
+ return;
17102
+ }
17103
+ ref.current = value;
17104
+ };
17105
+ var useComposedRef = function useComposedRef2(libRef, userRef) {
17106
+ var prevUserRef = React.useRef();
17107
+ return React.useCallback(function(instance) {
17108
+ libRef.current = instance;
17109
+ if (prevUserRef.current) {
17110
+ updateRef(prevUserRef.current, null);
17111
+ }
17112
+ prevUserRef.current = userRef;
17113
+ if (!userRef) {
17114
+ return;
17115
+ }
17116
+ updateRef(userRef, instance);
17117
+ }, [userRef]);
17118
+ };
17119
+ var HIDDEN_TEXTAREA_STYLE = {
17120
+ "min-height": "0",
17121
+ "max-height": "none",
17122
+ height: "0",
17123
+ visibility: "hidden",
17124
+ overflow: "hidden",
17125
+ position: "absolute",
17126
+ "z-index": "-1000",
17127
+ top: "0",
17128
+ right: "0",
17129
+ display: "block"
17130
+ };
17131
+ var forceHiddenStyles = function forceHiddenStyles2(node) {
17132
+ Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {
17133
+ node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important");
17134
+ });
17135
+ };
17136
+ var forceHiddenStyles$1 = forceHiddenStyles;
17137
+ var hiddenTextarea = null;
17138
+ var getHeight = function getHeight2(node, sizingData) {
17139
+ var height = node.scrollHeight;
17140
+ if (sizingData.sizingStyle.boxSizing === "border-box") {
17141
+ return height + sizingData.borderSize;
17142
+ }
17143
+ return height - sizingData.paddingSize;
17144
+ };
17145
+ function calculateNodeHeight(sizingData, value, minRows, maxRows) {
17146
+ if (minRows === void 0) {
17147
+ minRows = 1;
17148
+ }
17149
+ if (maxRows === void 0) {
17150
+ maxRows = Infinity;
17151
+ }
17152
+ if (!hiddenTextarea) {
17153
+ hiddenTextarea = document.createElement("textarea");
17154
+ hiddenTextarea.setAttribute("tabindex", "-1");
17155
+ hiddenTextarea.setAttribute("aria-hidden", "true");
17156
+ forceHiddenStyles$1(hiddenTextarea);
17157
+ }
17158
+ if (hiddenTextarea.parentNode === null) {
17159
+ document.body.appendChild(hiddenTextarea);
17160
+ }
17161
+ var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle;
17162
+ var boxSizing = sizingStyle.boxSizing;
17163
+ Object.keys(sizingStyle).forEach(function(_key) {
17164
+ var key = _key;
17165
+ hiddenTextarea.style[key] = sizingStyle[key];
17166
+ });
17167
+ forceHiddenStyles$1(hiddenTextarea);
17168
+ hiddenTextarea.value = value;
17169
+ var height = getHeight(hiddenTextarea, sizingData);
17170
+ hiddenTextarea.value = value;
17171
+ height = getHeight(hiddenTextarea, sizingData);
17172
+ hiddenTextarea.value = "x";
17173
+ var rowHeight = hiddenTextarea.scrollHeight - paddingSize;
17174
+ var minHeight = rowHeight * minRows;
17175
+ if (boxSizing === "border-box") {
17176
+ minHeight = minHeight + paddingSize + borderSize;
17177
+ }
17178
+ height = Math.max(minHeight, height);
17179
+ var maxHeight = rowHeight * maxRows;
17180
+ if (boxSizing === "border-box") {
17181
+ maxHeight = maxHeight + paddingSize + borderSize;
17182
+ }
17183
+ height = Math.min(maxHeight, height);
17184
+ return [height, rowHeight];
17185
+ }
17186
+ var noop$1 = function noop3() {
17187
+ };
17188
+ var pick$1 = function pick(props, obj) {
17189
+ return props.reduce(function(acc, prop) {
17190
+ acc[prop] = obj[prop];
17191
+ return acc;
17192
+ }, {});
17193
+ };
17194
+ var SIZING_STYLE = [
17195
+ "borderBottomWidth",
17196
+ "borderLeftWidth",
17197
+ "borderRightWidth",
17198
+ "borderTopWidth",
17199
+ "boxSizing",
17200
+ "fontFamily",
17201
+ "fontSize",
17202
+ "fontStyle",
17203
+ "fontWeight",
17204
+ "letterSpacing",
17205
+ "lineHeight",
17206
+ "paddingBottom",
17207
+ "paddingLeft",
17208
+ "paddingRight",
17209
+ "paddingTop",
17210
+ // non-standard
17211
+ "tabSize",
17212
+ "textIndent",
17213
+ // non-standard
17214
+ "textRendering",
17215
+ "textTransform",
17216
+ "width",
17217
+ "wordBreak",
17218
+ "wordSpacing",
17219
+ "scrollbarGutter"
17220
+ ];
17221
+ var isIE = !!document.documentElement.currentStyle;
17222
+ var getSizingData = function getSizingData2(node) {
17223
+ var style = window.getComputedStyle(node);
17224
+ if (style === null) {
17225
+ return null;
17226
+ }
17227
+ var sizingStyle = pick$1(SIZING_STYLE, style);
17228
+ var boxSizing = sizingStyle.boxSizing;
17229
+ if (boxSizing === "") {
17230
+ return null;
17231
+ }
17232
+ if (isIE && boxSizing === "border-box") {
17233
+ sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px";
17234
+ }
17235
+ var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);
17236
+ var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);
17237
+ return {
17238
+ sizingStyle,
17239
+ paddingSize,
17240
+ borderSize
17241
+ };
17242
+ };
17243
+ var getSizingData$1 = getSizingData;
17244
+ function useListener(target, type, listener) {
17245
+ var latestListener = useLatest(listener);
17246
+ React__namespace.useLayoutEffect(function() {
17247
+ var handler = function handler2(ev) {
17248
+ return latestListener.current(ev);
17249
+ };
17250
+ if (!target) {
17251
+ return;
17252
+ }
17253
+ target.addEventListener(type, handler);
17254
+ return function() {
17255
+ return target.removeEventListener(type, handler);
17256
+ };
17257
+ }, []);
17258
+ }
17259
+ var useFormResetListener = function useFormResetListener2(libRef, listener) {
17260
+ useListener(document.body, "reset", function(ev) {
17261
+ if (libRef.current.form === ev.target) {
17262
+ listener(ev);
17263
+ }
17264
+ });
17265
+ };
17266
+ var useWindowResizeListener = function useWindowResizeListener2(listener) {
17267
+ useListener(window, "resize", listener);
17268
+ };
17269
+ var useFontsLoadedListener = function useFontsLoadedListener2(listener) {
17270
+ useListener(document.fonts, "loadingdone", listener);
17271
+ };
17272
+ var _excluded = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"];
17273
+ var TextareaAutosize = function TextareaAutosize2(_ref, userRef) {
17274
+ 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);
17275
+ var isControlled = props.value !== void 0;
17276
+ var libRef = React__namespace.useRef(null);
17277
+ var ref = useComposedRef(libRef, userRef);
17278
+ var heightRef = React__namespace.useRef(0);
17279
+ var measurementsCacheRef = React__namespace.useRef();
17280
+ var resizeTextarea = function resizeTextarea2() {
17281
+ var node = libRef.current;
17282
+ var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);
17283
+ if (!nodeSizingData) {
17284
+ return;
17285
+ }
17286
+ measurementsCacheRef.current = nodeSizingData;
17287
+ var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];
17288
+ if (heightRef.current !== height) {
17289
+ heightRef.current = height;
17290
+ node.style.setProperty("height", height + "px", "important");
17291
+ onHeightChange(height, {
17292
+ rowHeight
17293
+ });
17294
+ }
17295
+ };
17296
+ var handleChange = function handleChange2(event) {
17297
+ if (!isControlled) {
17298
+ resizeTextarea();
17299
+ }
17300
+ onChange(event);
17301
+ };
17302
+ {
17303
+ React__namespace.useLayoutEffect(resizeTextarea);
17304
+ useFormResetListener(libRef, function() {
17305
+ if (!isControlled) {
17306
+ var currentValue = libRef.current.value;
17307
+ requestAnimationFrame(function() {
17308
+ var node = libRef.current;
17309
+ if (node && currentValue !== node.value) {
17310
+ resizeTextarea();
17311
+ }
17312
+ });
17313
+ }
17314
+ });
17315
+ useWindowResizeListener(resizeTextarea);
17316
+ useFontsLoadedListener(resizeTextarea);
17317
+ return /* @__PURE__ */ React__namespace.createElement("textarea", _extends({}, props, {
17318
+ onChange: handleChange,
17319
+ ref
17320
+ }));
17321
+ }
17322
+ };
17323
+ var index$2 = /* @__PURE__ */ React__namespace.forwardRef(TextareaAutosize);
17324
+ const defaultProps$s = {
17325
+ size: "sm"
17326
+ };
17327
+ const Textarea$1 = factory((props, ref) => {
17328
+ const { autosize, maxRows, minRows, __staticSelector, resize, ...others } = useProps(
17329
+ "Textarea",
17330
+ defaultProps$s,
17331
+ props
17332
+ );
17333
+ const shouldAutosize = autosize && getEnv() !== "test";
17334
+ const autosizeProps = shouldAutosize ? { maxRows, minRows } : {};
17335
+ return /* @__PURE__ */ jsxRuntime.jsx(
17336
+ InputBase,
17337
+ {
17338
+ component: shouldAutosize ? index$2 : "textarea",
17339
+ ref,
17340
+ ...others,
17341
+ __staticSelector: __staticSelector || "Textarea",
17342
+ multiline: true,
17343
+ "data-no-overflow": autosize && maxRows === void 0 || void 0,
17344
+ __vars: { "--input-resize": resize },
17345
+ ...autosizeProps
17346
+ }
17347
+ );
17348
+ });
17349
+ Textarea$1.classes = InputBase.classes;
17350
+ Textarea$1.displayName = "@mantine/core/Textarea";
17090
17351
  const [MenuContextProvider, useMenuContext] = createSafeContext(
17091
17352
  "Menu component was not found in the tree"
17092
17353
  );
@@ -18121,7 +18382,7 @@ var SourceType;
18121
18382
  SourceType2["event"] = "event";
18122
18383
  SourceType2["props"] = "prop";
18123
18384
  })(SourceType || (SourceType = {}));
18124
- function noop3() {
18385
+ function noop4() {
18125
18386
  }
18126
18387
  function memoizeOnce(cb) {
18127
18388
  var lastArgs;
@@ -18420,7 +18681,7 @@ function caretUnknownFormatBoundary(formattedValue) {
18420
18681
  return boundaryAry;
18421
18682
  }
18422
18683
  function useInternalValues(value, defaultValue, valueIsNumericString, format2, removeFormatting2, onValueChange) {
18423
- if (onValueChange === void 0) onValueChange = noop3;
18684
+ if (onValueChange === void 0) onValueChange = noop4;
18424
18685
  var getValues = usePersistentCallback(function(value2, valueIsNumericString2) {
18425
18686
  var formattedValue, numAsString;
18426
18687
  if (isNotValidValue(value2)) {
@@ -18484,15 +18745,15 @@ function NumberFormatBase(props) {
18484
18745
  var onValueChange = props.onValueChange;
18485
18746
  var isAllowed = props.isAllowed;
18486
18747
  var onChange = props.onChange;
18487
- if (onChange === void 0) onChange = noop3;
18748
+ if (onChange === void 0) onChange = noop4;
18488
18749
  var onKeyDown = props.onKeyDown;
18489
- if (onKeyDown === void 0) onKeyDown = noop3;
18750
+ if (onKeyDown === void 0) onKeyDown = noop4;
18490
18751
  var onMouseUp = props.onMouseUp;
18491
- if (onMouseUp === void 0) onMouseUp = noop3;
18752
+ if (onMouseUp === void 0) onMouseUp = noop4;
18492
18753
  var onFocus = props.onFocus;
18493
- if (onFocus === void 0) onFocus = noop3;
18754
+ if (onFocus === void 0) onFocus = noop4;
18494
18755
  var onBlur = props.onBlur;
18495
- if (onBlur === void 0) onBlur = noop3;
18756
+ if (onBlur === void 0) onBlur = noop4;
18496
18757
  var propValue = props.value;
18497
18758
  var getCaretBoundary2 = props.getCaretBoundary;
18498
18759
  if (getCaretBoundary2 === void 0) getCaretBoundary2 = caretUnknownFormatBoundary;
@@ -18953,9 +19214,9 @@ function useNumericFormat(props) {
18953
19214
  var allowNegative = props.allowNegative;
18954
19215
  var allowLeadingZeros = props.allowLeadingZeros;
18955
19216
  var onKeyDown = props.onKeyDown;
18956
- if (onKeyDown === void 0) onKeyDown = noop3;
19217
+ if (onKeyDown === void 0) onKeyDown = noop4;
18957
19218
  var onBlur = props.onBlur;
18958
- if (onBlur === void 0) onBlur = noop3;
19219
+ if (onBlur === void 0) onBlur = noop4;
18959
19220
  var thousandSeparator = props.thousandSeparator;
18960
19221
  var decimalScale = props.decimalScale;
18961
19222
  var fixedDecimalScale = props.fixedDecimalScale;
@@ -19282,7 +19543,7 @@ const NumberInput = factory((_props, ref) => {
19282
19543
  inputRef.current.setSelectionRange(position, position);
19283
19544
  }
19284
19545
  };
19285
- const incrementRef = React.useRef(noop$3);
19546
+ const incrementRef = React.useRef(noop$4);
19286
19547
  incrementRef.current = () => {
19287
19548
  if (!canIncrement(_value)) {
19288
19549
  return;
@@ -19308,7 +19569,7 @@ const NumberInput = factory((_props, ref) => {
19308
19569
  );
19309
19570
  setTimeout(() => adjustCursor(inputRef.current?.value.length), 0);
19310
19571
  };
19311
- const decrementRef = React.useRef(noop$3);
19572
+ const decrementRef = React.useRef(noop$4);
19312
19573
  decrementRef.current = () => {
19313
19574
  if (!canIncrement(_value)) {
19314
19575
  return;
@@ -23157,7 +23418,7 @@ const BIGINT_FORMAT_RANGES = {
23157
23418
  int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
23158
23419
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
23159
23420
  };
23160
- function pick(schema, mask) {
23421
+ function pick2(schema, mask) {
23161
23422
  const currDef = schema._zod.def;
23162
23423
  const checks = currDef.checks;
23163
23424
  const hasChecks = checks && checks.length > 0;
@@ -23505,7 +23766,7 @@ const util = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
23505
23766
  optionalKeys,
23506
23767
  parsedType,
23507
23768
  partial,
23508
- pick,
23769
+ pick: pick2,
23509
23770
  prefixIssues,
23510
23771
  primitiveTypes,
23511
23772
  promiseAllObject,
@@ -34902,7 +35163,7 @@ const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
34902
35163
  return safeExtend(inst, incoming);
34903
35164
  };
34904
35165
  inst.merge = (other) => merge(inst, other);
34905
- inst.pick = (mask) => pick(inst, mask);
35166
+ inst.pick = (mask) => pick2(inst, mask);
34906
35167
  inst.omit = (mask) => omit(inst, mask);
34907
35168
  inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
34908
35169
  inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
@@ -36618,6 +36879,15 @@ const theme = createTheme({
36618
36879
  textTransform: "uppercase"
36619
36880
  }
36620
36881
  }
36882
+ },
36883
+ Modal: {
36884
+ styles: {
36885
+ title: {
36886
+ fontSize: fontSizes.lg,
36887
+ fontWeight: 700,
36888
+ lineHeight: 1.3
36889
+ }
36890
+ }
36621
36891
  }
36622
36892
  }
36623
36893
  });
@@ -40579,6 +40849,8 @@ function UserMenu({
40579
40849
  ] }, item.id)) })
40580
40850
  ] });
40581
40851
  }
40852
+ const Textarea = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Textarea$1, { size: "md", ...props, ref }));
40853
+ Textarea.displayName = "Textarea";
40582
40854
  const DefaultDocumentIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
40583
40855
  "svg",
40584
40856
  {
@@ -41526,6 +41798,7 @@ exports.Table = Table;
41526
41798
  exports.Tabs = Tabs;
41527
41799
  exports.Text = Text;
41528
41800
  exports.TextInput = TextInput;
41801
+ exports.Textarea = Textarea;
41529
41802
  exports.ThemeIcon = ThemeIcon;
41530
41803
  exports.Title = Title;
41531
41804
  exports.Tooltip = Tooltip;