@fairmint/ui 0.2.38 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/primitives/muiCompat.d.ts.map +1 -1
- package/dist/fairmint-ui.cjs +1 -1
- package/dist/fairmint-ui.js +1 -1
- package/dist/{index-DcWIUgfH.cjs → index-C1YjT_p6.cjs} +603 -194
- package/dist/index-C1YjT_p6.cjs.map +1 -0
- package/dist/{index-5FDfBnyn.cjs → index-DP3u3pWZ.cjs} +3 -3
- package/dist/{index-5FDfBnyn.cjs.map → index-DP3u3pWZ.cjs.map} +1 -1
- package/dist/{index-B31nxDPQ.js → index-DZLs8q1Z.js} +2 -2
- package/dist/{index-B31nxDPQ.js.map → index-DZLs8q1Z.js.map} +1 -1
- package/dist/{index-49ranUMK.js → index-dcZ4kKzu.js} +603 -194
- package/dist/index-dcZ4kKzu.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-49ranUMK.js.map +0 -1
- package/dist/index-DcWIUgfH.cjs.map +0 -1
|
@@ -2717,7 +2717,7 @@ var values$1 = Object.values || function(obj) {
|
|
|
2717
2717
|
return obj[k];
|
|
2718
2718
|
});
|
|
2719
2719
|
};
|
|
2720
|
-
var defaultProps$
|
|
2720
|
+
var defaultProps$1p = {
|
|
2721
2721
|
component: "div",
|
|
2722
2722
|
childFactory: function childFactory(child) {
|
|
2723
2723
|
return child;
|
|
@@ -2844,7 +2844,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2844
2844
|
*/
|
|
2845
2845
|
childFactory: PropTypes.func
|
|
2846
2846
|
} : {};
|
|
2847
|
-
TransitionGroup.defaultProps = defaultProps$
|
|
2847
|
+
TransitionGroup.defaultProps = defaultProps$1p;
|
|
2848
2848
|
var extendStatics = function(d, b) {
|
|
2849
2849
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
2850
2850
|
d2.__proto__ = b2;
|
|
@@ -6271,7 +6271,7 @@ function useCollapse({
|
|
|
6271
6271
|
}
|
|
6272
6272
|
return getCollapseProps;
|
|
6273
6273
|
}
|
|
6274
|
-
const defaultProps$
|
|
6274
|
+
const defaultProps$1o = {
|
|
6275
6275
|
transitionDuration: 200,
|
|
6276
6276
|
transitionTimingFunction: "ease",
|
|
6277
6277
|
animateOpacity: true
|
|
@@ -6287,7 +6287,7 @@ const Collapse$1 = factory((props, ref) => {
|
|
|
6287
6287
|
animateOpacity,
|
|
6288
6288
|
keepMounted,
|
|
6289
6289
|
...others
|
|
6290
|
-
} = useProps("Collapse", defaultProps$
|
|
6290
|
+
} = useProps("Collapse", defaultProps$1o, props);
|
|
6291
6291
|
const theme = useMantineTheme();
|
|
6292
6292
|
const shouldReduceMotion = useReducedMotion();
|
|
6293
6293
|
const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false;
|
|
@@ -9808,14 +9808,14 @@ const ScrollAreaCorner = React.forwardRef((props, ref) => {
|
|
|
9808
9808
|
const hasCorner = ctx.type !== "scroll" && hasBothScrollbarsVisible;
|
|
9809
9809
|
return hasCorner ? /* @__PURE__ */ jsxRuntime.jsx(Corner, { ...props, ref }) : null;
|
|
9810
9810
|
});
|
|
9811
|
-
const defaultProps$
|
|
9811
|
+
const defaultProps$1n = {
|
|
9812
9812
|
scrollHideDelay: 1e3,
|
|
9813
9813
|
type: "hover"
|
|
9814
9814
|
};
|
|
9815
9815
|
const ScrollAreaRoot = React.forwardRef((_props, ref) => {
|
|
9816
9816
|
const { type, scrollHideDelay, scrollbars, getStyles: getStyles2, ...others } = useProps(
|
|
9817
9817
|
"ScrollAreaRoot",
|
|
9818
|
-
defaultProps$
|
|
9818
|
+
defaultProps$1n,
|
|
9819
9819
|
_props
|
|
9820
9820
|
);
|
|
9821
9821
|
const [scrollArea, setScrollArea] = React.useState(null);
|
|
@@ -10457,7 +10457,7 @@ const ScrollAreaViewport = React.forwardRef(
|
|
|
10457
10457
|
}
|
|
10458
10458
|
);
|
|
10459
10459
|
ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
|
|
10460
|
-
const defaultProps$
|
|
10460
|
+
const defaultProps$1m = {
|
|
10461
10461
|
scrollHideDelay: 1e3,
|
|
10462
10462
|
type: "hover",
|
|
10463
10463
|
scrollbars: "xy"
|
|
@@ -10481,7 +10481,7 @@ const varsResolver$16 = createVarsResolver(
|
|
|
10481
10481
|
}
|
|
10482
10482
|
);
|
|
10483
10483
|
const ScrollArea = factory((_props, ref) => {
|
|
10484
|
-
const props = useProps("ScrollArea", defaultProps$
|
|
10484
|
+
const props = useProps("ScrollArea", defaultProps$1m, _props);
|
|
10485
10485
|
const {
|
|
10486
10486
|
classNames: classNames2,
|
|
10487
10487
|
className,
|
|
@@ -10633,7 +10633,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
10633
10633
|
onTopReached,
|
|
10634
10634
|
onOverflowChange,
|
|
10635
10635
|
...others
|
|
10636
|
-
} = useProps("ScrollAreaAutosize", defaultProps$
|
|
10636
|
+
} = useProps("ScrollAreaAutosize", defaultProps$1m, props);
|
|
10637
10637
|
const viewportObserverRef = React.useRef(null);
|
|
10638
10638
|
const combinedViewportRef = useMergeRefs([viewportRef, viewportObserverRef]);
|
|
10639
10639
|
const [overflowing, setOverflowing] = React.useState(false);
|
|
@@ -10710,12 +10710,12 @@ ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
|
|
|
10710
10710
|
ScrollAreaAutosize.classes = classes$17;
|
|
10711
10711
|
ScrollArea.Autosize = ScrollAreaAutosize;
|
|
10712
10712
|
var classes$16 = { "root": "m_87cf2631" };
|
|
10713
|
-
const defaultProps$
|
|
10713
|
+
const defaultProps$1l = {
|
|
10714
10714
|
__staticSelector: "UnstyledButton"
|
|
10715
10715
|
};
|
|
10716
10716
|
const UnstyledButton = polymorphicFactory(
|
|
10717
10717
|
(_props, ref) => {
|
|
10718
|
-
const props = useProps("UnstyledButton", defaultProps$
|
|
10718
|
+
const props = useProps("UnstyledButton", defaultProps$1l, _props);
|
|
10719
10719
|
const {
|
|
10720
10720
|
className,
|
|
10721
10721
|
component = "button",
|
|
@@ -10961,7 +10961,7 @@ function getFloatingPosition(dir, position) {
|
|
|
10961
10961
|
return position;
|
|
10962
10962
|
}
|
|
10963
10963
|
var classes$13 = { "root": "m_9814e45f" };
|
|
10964
|
-
const defaultProps$
|
|
10964
|
+
const defaultProps$1k = {
|
|
10965
10965
|
zIndex: getDefaultZIndex("modal")
|
|
10966
10966
|
};
|
|
10967
10967
|
const varsResolver$14 = createVarsResolver(
|
|
@@ -10975,7 +10975,7 @@ const varsResolver$14 = createVarsResolver(
|
|
|
10975
10975
|
})
|
|
10976
10976
|
);
|
|
10977
10977
|
const Overlay = polymorphicFactory((_props, ref) => {
|
|
10978
|
-
const props = useProps("Overlay", defaultProps$
|
|
10978
|
+
const props = useProps("Overlay", defaultProps$1k, _props);
|
|
10979
10979
|
const {
|
|
10980
10980
|
classNames: classNames2,
|
|
10981
10981
|
className,
|
|
@@ -11040,11 +11040,11 @@ function getTargetNode({ target, reuseTargetNode, ...others }) {
|
|
|
11040
11040
|
}
|
|
11041
11041
|
return createPortalNode(others);
|
|
11042
11042
|
}
|
|
11043
|
-
const defaultProps$
|
|
11043
|
+
const defaultProps$1j = {
|
|
11044
11044
|
reuseTargetNode: true
|
|
11045
11045
|
};
|
|
11046
11046
|
const Portal = factory((props, ref) => {
|
|
11047
|
-
const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$
|
|
11047
|
+
const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$1j, props);
|
|
11048
11048
|
const [mounted, setMounted] = React.useState(false);
|
|
11049
11049
|
const nodeRef = React.useRef(null);
|
|
11050
11050
|
useIsomorphicEffect$1(() => {
|
|
@@ -11480,14 +11480,14 @@ const PopoverDropdown = factory((_props, ref) => {
|
|
|
11480
11480
|
});
|
|
11481
11481
|
PopoverDropdown.classes = classes$12;
|
|
11482
11482
|
PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
|
|
11483
|
-
const defaultProps$
|
|
11483
|
+
const defaultProps$1i = {
|
|
11484
11484
|
refProp: "ref",
|
|
11485
11485
|
popupType: "dialog"
|
|
11486
11486
|
};
|
|
11487
11487
|
const PopoverTarget = factory((props, ref) => {
|
|
11488
11488
|
const { children, refProp, popupType, ...others } = useProps(
|
|
11489
11489
|
"PopoverTarget",
|
|
11490
|
-
defaultProps$
|
|
11490
|
+
defaultProps$1i,
|
|
11491
11491
|
props
|
|
11492
11492
|
);
|
|
11493
11493
|
const child = getSingleElementChild(children);
|
|
@@ -11654,7 +11654,7 @@ function usePopover(options) {
|
|
|
11654
11654
|
onToggle
|
|
11655
11655
|
};
|
|
11656
11656
|
}
|
|
11657
|
-
const defaultProps$
|
|
11657
|
+
const defaultProps$1h = {
|
|
11658
11658
|
position: "bottom",
|
|
11659
11659
|
offset: 8,
|
|
11660
11660
|
positionDependencies: [],
|
|
@@ -11684,7 +11684,7 @@ const varsResolver$13 = createVarsResolver((_, { radius, shadow }) => ({
|
|
|
11684
11684
|
}
|
|
11685
11685
|
}));
|
|
11686
11686
|
function Popover(_props) {
|
|
11687
|
-
const props = useProps("Popover", defaultProps$
|
|
11687
|
+
const props = useProps("Popover", defaultProps$1h, _props);
|
|
11688
11688
|
const {
|
|
11689
11689
|
children,
|
|
11690
11690
|
position,
|
|
@@ -11914,7 +11914,7 @@ const defaultLoaders = {
|
|
|
11914
11914
|
oval: Oval,
|
|
11915
11915
|
dots: Dots
|
|
11916
11916
|
};
|
|
11917
|
-
const defaultProps$
|
|
11917
|
+
const defaultProps$1g = {
|
|
11918
11918
|
loaders: defaultLoaders,
|
|
11919
11919
|
type: "oval"
|
|
11920
11920
|
};
|
|
@@ -11925,7 +11925,7 @@ const varsResolver$12 = createVarsResolver((theme, { size: size2, color }) => ({
|
|
|
11925
11925
|
}
|
|
11926
11926
|
}));
|
|
11927
11927
|
const Loader$1 = factory((_props, ref) => {
|
|
11928
|
-
const props = useProps("Loader", defaultProps$
|
|
11928
|
+
const props = useProps("Loader", defaultProps$1g, _props);
|
|
11929
11929
|
const {
|
|
11930
11930
|
size: size2,
|
|
11931
11931
|
color,
|
|
@@ -11974,14 +11974,14 @@ Loader$1.defaultLoaders = defaultLoaders;
|
|
|
11974
11974
|
Loader$1.classes = classes$11;
|
|
11975
11975
|
Loader$1.displayName = "@mantine/core/Loader";
|
|
11976
11976
|
var classes$10 = { "root": "m_8d3f4000", "icon": "m_8d3afb97", "loader": "m_302b9fb1", "group": "m_1a0f1b21", "groupSection": "m_437b6484" };
|
|
11977
|
-
const defaultProps$
|
|
11977
|
+
const defaultProps$1f = {
|
|
11978
11978
|
orientation: "horizontal"
|
|
11979
11979
|
};
|
|
11980
11980
|
const varsResolver$11 = createVarsResolver((_, { borderWidth }) => ({
|
|
11981
11981
|
group: { "--ai-border-width": rem(borderWidth) }
|
|
11982
11982
|
}));
|
|
11983
11983
|
const ActionIconGroup = factory((_props, ref) => {
|
|
11984
|
-
const props = useProps("ActionIconGroup", defaultProps$
|
|
11984
|
+
const props = useProps("ActionIconGroup", defaultProps$1f, _props);
|
|
11985
11985
|
const {
|
|
11986
11986
|
className,
|
|
11987
11987
|
style,
|
|
@@ -11995,7 +11995,7 @@ const ActionIconGroup = factory((_props, ref) => {
|
|
|
11995
11995
|
mod,
|
|
11996
11996
|
attributes,
|
|
11997
11997
|
...others
|
|
11998
|
-
} = useProps("ActionIconGroup", defaultProps$
|
|
11998
|
+
} = useProps("ActionIconGroup", defaultProps$1f, _props);
|
|
11999
11999
|
const getStyles2 = useStyles({
|
|
12000
12000
|
name: "ActionIconGroup",
|
|
12001
12001
|
props,
|
|
@@ -12186,7 +12186,7 @@ const CloseIcon = React.forwardRef(
|
|
|
12186
12186
|
);
|
|
12187
12187
|
CloseIcon.displayName = "@mantine/core/CloseIcon";
|
|
12188
12188
|
var classes$$ = { "root": "m_86a44da5", "root--subtle": "m_220c80f2" };
|
|
12189
|
-
const defaultProps$
|
|
12189
|
+
const defaultProps$1e = {
|
|
12190
12190
|
variant: "subtle"
|
|
12191
12191
|
};
|
|
12192
12192
|
const varsResolver$_ = createVarsResolver((_, { size: size2, radius, iconSize }) => ({
|
|
@@ -12197,7 +12197,7 @@ const varsResolver$_ = createVarsResolver((_, { size: size2, radius, iconSize })
|
|
|
12197
12197
|
}
|
|
12198
12198
|
}));
|
|
12199
12199
|
const CloseButton = polymorphicFactory((_props, ref) => {
|
|
12200
|
-
const props = useProps("CloseButton", defaultProps$
|
|
12200
|
+
const props = useProps("CloseButton", defaultProps$1e, _props);
|
|
12201
12201
|
const {
|
|
12202
12202
|
iconSize,
|
|
12203
12203
|
children,
|
|
@@ -12253,7 +12253,7 @@ function filterFalsyChildren(children) {
|
|
|
12253
12253
|
return React.Children.toArray(children).filter(Boolean);
|
|
12254
12254
|
}
|
|
12255
12255
|
var classes$_ = { "root": "m_4081bf90" };
|
|
12256
|
-
const defaultProps$
|
|
12256
|
+
const defaultProps$1d = {
|
|
12257
12257
|
preventGrowOverflow: true,
|
|
12258
12258
|
gap: "md",
|
|
12259
12259
|
align: "center",
|
|
@@ -12272,7 +12272,7 @@ const varsResolver$Z = createVarsResolver(
|
|
|
12272
12272
|
})
|
|
12273
12273
|
);
|
|
12274
12274
|
const Group = factory((_props, ref) => {
|
|
12275
|
-
const props = useProps("Group", defaultProps$
|
|
12275
|
+
const props = useProps("Group", defaultProps$1d, _props);
|
|
12276
12276
|
const {
|
|
12277
12277
|
classNames: classNames2,
|
|
12278
12278
|
className,
|
|
@@ -12802,7 +12802,7 @@ const InputError = factory((_props, ref) => {
|
|
|
12802
12802
|
});
|
|
12803
12803
|
InputError.classes = classes$Y;
|
|
12804
12804
|
InputError.displayName = "@mantine/core/InputError";
|
|
12805
|
-
const defaultProps$
|
|
12805
|
+
const defaultProps$1c = {
|
|
12806
12806
|
labelElement: "label"
|
|
12807
12807
|
};
|
|
12808
12808
|
const varsResolver$W = createVarsResolver((_, { size: size2 }) => ({
|
|
@@ -12812,7 +12812,7 @@ const varsResolver$W = createVarsResolver((_, { size: size2 }) => ({
|
|
|
12812
12812
|
}
|
|
12813
12813
|
}));
|
|
12814
12814
|
const InputLabel$1 = factory((_props, ref) => {
|
|
12815
|
-
const props = useProps("InputLabel", defaultProps$
|
|
12815
|
+
const props = useProps("InputLabel", defaultProps$1c, _props);
|
|
12816
12816
|
const {
|
|
12817
12817
|
classNames: classNames2,
|
|
12818
12818
|
className,
|
|
@@ -12831,7 +12831,7 @@ const InputLabel$1 = factory((_props, ref) => {
|
|
|
12831
12831
|
mod,
|
|
12832
12832
|
attributes,
|
|
12833
12833
|
...others
|
|
12834
|
-
} = useProps("InputLabel", defaultProps$
|
|
12834
|
+
} = useProps("InputLabel", defaultProps$1c, props);
|
|
12835
12835
|
const _getStyles = useStyles({
|
|
12836
12836
|
name: ["InputWrapper", __staticSelector],
|
|
12837
12837
|
props,
|
|
@@ -12924,7 +12924,7 @@ function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
|
|
|
12924
12924
|
const offsetBottom = hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error");
|
|
12925
12925
|
return { offsetBottom, offsetTop };
|
|
12926
12926
|
}
|
|
12927
|
-
const defaultProps$
|
|
12927
|
+
const defaultProps$1b = {
|
|
12928
12928
|
labelElement: "label",
|
|
12929
12929
|
inputContainer: (children) => children,
|
|
12930
12930
|
inputWrapperOrder: ["label", "description", "input", "error"]
|
|
@@ -12942,7 +12942,7 @@ const varsResolver$V = createVarsResolver((_, { size: size2 }) => ({
|
|
|
12942
12942
|
}
|
|
12943
12943
|
}));
|
|
12944
12944
|
const InputWrapper = factory((_props, ref) => {
|
|
12945
|
-
const props = useProps("InputWrapper", defaultProps$
|
|
12945
|
+
const props = useProps("InputWrapper", defaultProps$1b, _props);
|
|
12946
12946
|
const {
|
|
12947
12947
|
classNames: classNames2,
|
|
12948
12948
|
className,
|
|
@@ -13076,7 +13076,7 @@ const InputWrapper = factory((_props, ref) => {
|
|
|
13076
13076
|
});
|
|
13077
13077
|
InputWrapper.classes = classes$Y;
|
|
13078
13078
|
InputWrapper.displayName = "@mantine/core/InputWrapper";
|
|
13079
|
-
const defaultProps$
|
|
13079
|
+
const defaultProps$1a = {
|
|
13080
13080
|
variant: "default",
|
|
13081
13081
|
leftSectionPointerEvents: "none",
|
|
13082
13082
|
rightSectionPointerEvents: "none",
|
|
@@ -13099,7 +13099,7 @@ const varsResolver$U = createVarsResolver((_, props, ctx) => ({
|
|
|
13099
13099
|
}
|
|
13100
13100
|
}));
|
|
13101
13101
|
const Input = polymorphicFactory((_props, ref) => {
|
|
13102
|
-
const props = useProps("Input", defaultProps$
|
|
13102
|
+
const props = useProps("Input", defaultProps$1a, _props);
|
|
13103
13103
|
const {
|
|
13104
13104
|
classNames: classNames2,
|
|
13105
13105
|
className,
|
|
@@ -13315,13 +13315,13 @@ function useInputProps(component, defaultProps2, _props) {
|
|
|
13315
13315
|
}
|
|
13316
13316
|
};
|
|
13317
13317
|
}
|
|
13318
|
-
const defaultProps$
|
|
13318
|
+
const defaultProps$19 = {
|
|
13319
13319
|
__staticSelector: "InputBase",
|
|
13320
13320
|
withAria: true,
|
|
13321
13321
|
size: "sm"
|
|
13322
13322
|
};
|
|
13323
13323
|
const InputBase = polymorphicFactory((props, ref) => {
|
|
13324
|
-
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$
|
|
13324
|
+
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$19, props);
|
|
13325
13325
|
return /* @__PURE__ */ jsxRuntime.jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsxRuntime.jsx(Input, { ...inputProps, ...others, ref }) });
|
|
13326
13326
|
});
|
|
13327
13327
|
InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
|
|
@@ -13736,7 +13736,7 @@ const AccordionPanel = factory((props, ref) => {
|
|
|
13736
13736
|
});
|
|
13737
13737
|
AccordionPanel.displayName = "@mantine/core/AccordionPanel";
|
|
13738
13738
|
AccordionPanel.classes = classes$V;
|
|
13739
|
-
const defaultProps$
|
|
13739
|
+
const defaultProps$18 = {
|
|
13740
13740
|
multiple: false,
|
|
13741
13741
|
disableChevronRotation: false,
|
|
13742
13742
|
chevronPosition: "right",
|
|
@@ -13754,7 +13754,7 @@ const varsResolver$S = createVarsResolver(
|
|
|
13754
13754
|
})
|
|
13755
13755
|
);
|
|
13756
13756
|
function Accordion$1(_props) {
|
|
13757
|
-
const props = useProps("Accordion", defaultProps$
|
|
13757
|
+
const props = useProps("Accordion", defaultProps$18, _props);
|
|
13758
13758
|
const {
|
|
13759
13759
|
classNames: classNames2,
|
|
13760
13760
|
className,
|
|
@@ -13947,7 +13947,7 @@ function getTextTruncate(truncate) {
|
|
|
13947
13947
|
}
|
|
13948
13948
|
return void 0;
|
|
13949
13949
|
}
|
|
13950
|
-
const defaultProps$
|
|
13950
|
+
const defaultProps$17 = {
|
|
13951
13951
|
inherit: false
|
|
13952
13952
|
};
|
|
13953
13953
|
const varsResolver$Q = createVarsResolver(
|
|
@@ -13964,7 +13964,7 @@ const varsResolver$Q = createVarsResolver(
|
|
|
13964
13964
|
})
|
|
13965
13965
|
);
|
|
13966
13966
|
const Text = polymorphicFactory((_props, ref) => {
|
|
13967
|
-
const props = useProps("Text", defaultProps$
|
|
13967
|
+
const props = useProps("Text", defaultProps$17, _props);
|
|
13968
13968
|
const {
|
|
13969
13969
|
lineClamp,
|
|
13970
13970
|
truncate,
|
|
@@ -14022,13 +14022,13 @@ const Text = polymorphicFactory((_props, ref) => {
|
|
|
14022
14022
|
Text.classes = classes$T;
|
|
14023
14023
|
Text.displayName = "@mantine/core/Text";
|
|
14024
14024
|
var classes$S = { "root": "m_849cf0da" };
|
|
14025
|
-
const defaultProps$
|
|
14025
|
+
const defaultProps$16 = {
|
|
14026
14026
|
underline: "hover"
|
|
14027
14027
|
};
|
|
14028
14028
|
const Anchor = polymorphicFactory((props, ref) => {
|
|
14029
14029
|
const { underline, className, unstyled, mod, ...others } = useProps(
|
|
14030
14030
|
"Anchor",
|
|
14031
|
-
defaultProps$
|
|
14031
|
+
defaultProps$16,
|
|
14032
14032
|
props
|
|
14033
14033
|
);
|
|
14034
14034
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14616,7 +14616,7 @@ function useResizing({ transitionDuration, disabled }) {
|
|
|
14616
14616
|
}, [disabled, transitionDuration]);
|
|
14617
14617
|
return resizing;
|
|
14618
14618
|
}
|
|
14619
|
-
const defaultProps$
|
|
14619
|
+
const defaultProps$15 = {
|
|
14620
14620
|
withBorder: true,
|
|
14621
14621
|
padding: 0,
|
|
14622
14622
|
transitionDuration: 200,
|
|
@@ -14633,7 +14633,7 @@ const varsResolver$P = createVarsResolver(
|
|
|
14633
14633
|
})
|
|
14634
14634
|
);
|
|
14635
14635
|
const AppShell = factory((_props, ref) => {
|
|
14636
|
-
const props = useProps("AppShell", defaultProps$
|
|
14636
|
+
const props = useProps("AppShell", defaultProps$15, _props);
|
|
14637
14637
|
const {
|
|
14638
14638
|
classNames: classNames2,
|
|
14639
14639
|
className,
|
|
@@ -14741,7 +14741,7 @@ function getOptionsLockup(options) {
|
|
|
14741
14741
|
}, {});
|
|
14742
14742
|
}
|
|
14743
14743
|
var classes$Q = { "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" };
|
|
14744
|
-
const defaultProps$
|
|
14744
|
+
const defaultProps$14 = {
|
|
14745
14745
|
error: null
|
|
14746
14746
|
};
|
|
14747
14747
|
const varsResolver$O = createVarsResolver((theme, { size: size2, color }) => ({
|
|
@@ -14751,7 +14751,7 @@ const varsResolver$O = createVarsResolver((theme, { size: size2, color }) => ({
|
|
|
14751
14751
|
}
|
|
14752
14752
|
}));
|
|
14753
14753
|
const ComboboxChevron = factory((_props, ref) => {
|
|
14754
|
-
const props = useProps("ComboboxChevron", defaultProps$
|
|
14754
|
+
const props = useProps("ComboboxChevron", defaultProps$14, _props);
|
|
14755
14755
|
const { size: size2, error: error2, style, className, classNames: classNames2, styles, unstyled, vars, mod, ...others } = props;
|
|
14756
14756
|
const getStyles2 = useStyles({
|
|
14757
14757
|
name: "ComboboxChevron",
|
|
@@ -14835,11 +14835,11 @@ const ComboboxDropdown = factory((props, ref) => {
|
|
|
14835
14835
|
});
|
|
14836
14836
|
ComboboxDropdown.classes = classes$Q;
|
|
14837
14837
|
ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
|
|
14838
|
-
const defaultProps$
|
|
14838
|
+
const defaultProps$13 = {
|
|
14839
14839
|
refProp: "ref"
|
|
14840
14840
|
};
|
|
14841
14841
|
const ComboboxDropdownTarget = factory((props, ref) => {
|
|
14842
|
-
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$
|
|
14842
|
+
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$13, props);
|
|
14843
14843
|
useComboboxContext();
|
|
14844
14844
|
if (!isElement$1(children)) {
|
|
14845
14845
|
throw new Error(
|
|
@@ -14944,7 +14944,7 @@ function useComboboxTargetProps({
|
|
|
14944
14944
|
onKeyDown: handleKeyDown
|
|
14945
14945
|
};
|
|
14946
14946
|
}
|
|
14947
|
-
const defaultProps$
|
|
14947
|
+
const defaultProps$12 = {
|
|
14948
14948
|
refProp: "ref",
|
|
14949
14949
|
targetType: "input",
|
|
14950
14950
|
withKeyboardNavigation: true,
|
|
@@ -14962,7 +14962,7 @@ const ComboboxEventsTarget = factory((props, ref) => {
|
|
|
14962
14962
|
targetType,
|
|
14963
14963
|
autoComplete,
|
|
14964
14964
|
...others
|
|
14965
|
-
} = useProps("ComboboxEventsTarget", defaultProps$
|
|
14965
|
+
} = useProps("ComboboxEventsTarget", defaultProps$12, props);
|
|
14966
14966
|
const child = getSingleElementChild(children);
|
|
14967
14967
|
if (!child) {
|
|
14968
14968
|
throw new Error(
|
|
@@ -15150,12 +15150,12 @@ const ComboboxOptions = factory((_props, ref) => {
|
|
|
15150
15150
|
});
|
|
15151
15151
|
ComboboxOptions.classes = classes$Q;
|
|
15152
15152
|
ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
|
|
15153
|
-
const defaultProps$
|
|
15153
|
+
const defaultProps$11 = {
|
|
15154
15154
|
withAriaAttributes: true,
|
|
15155
15155
|
withKeyboardNavigation: true
|
|
15156
15156
|
};
|
|
15157
15157
|
const ComboboxSearch = factory((_props, ref) => {
|
|
15158
|
-
const props = useProps("ComboboxSearch", defaultProps$
|
|
15158
|
+
const props = useProps("ComboboxSearch", defaultProps$11, _props);
|
|
15159
15159
|
const {
|
|
15160
15160
|
classNames: classNames2,
|
|
15161
15161
|
styles,
|
|
@@ -15192,7 +15192,7 @@ const ComboboxSearch = factory((_props, ref) => {
|
|
|
15192
15192
|
});
|
|
15193
15193
|
ComboboxSearch.classes = classes$Q;
|
|
15194
15194
|
ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
|
|
15195
|
-
const defaultProps
|
|
15195
|
+
const defaultProps$10 = {
|
|
15196
15196
|
refProp: "ref",
|
|
15197
15197
|
targetType: "input",
|
|
15198
15198
|
withKeyboardNavigation: true,
|
|
@@ -15210,7 +15210,7 @@ const ComboboxTarget = factory((props, ref) => {
|
|
|
15210
15210
|
targetType,
|
|
15211
15211
|
autoComplete,
|
|
15212
15212
|
...others
|
|
15213
|
-
} = useProps("ComboboxTarget", defaultProps
|
|
15213
|
+
} = useProps("ComboboxTarget", defaultProps$10, props);
|
|
15214
15214
|
const child = getSingleElementChild(children);
|
|
15215
15215
|
if (!child) {
|
|
15216
15216
|
throw new Error(
|
|
@@ -15459,7 +15459,7 @@ function useCombobox({
|
|
|
15459
15459
|
focusTarget
|
|
15460
15460
|
};
|
|
15461
15461
|
}
|
|
15462
|
-
const defaultProps
|
|
15462
|
+
const defaultProps$$ = {
|
|
15463
15463
|
keepMounted: true,
|
|
15464
15464
|
withinPortal: true,
|
|
15465
15465
|
resetSelectionOnOptionHover: false,
|
|
@@ -15479,7 +15479,7 @@ const varsResolver$N = createVarsResolver((_, { size: size2, dropdownPadding })
|
|
|
15479
15479
|
}
|
|
15480
15480
|
}));
|
|
15481
15481
|
function Combobox(_props) {
|
|
15482
|
-
const props = useProps("Combobox", defaultProps
|
|
15482
|
+
const props = useProps("Combobox", defaultProps$$, _props);
|
|
15483
15483
|
const {
|
|
15484
15484
|
classNames: classNames2,
|
|
15485
15485
|
styles,
|
|
@@ -15645,7 +15645,7 @@ const CheckboxGroupProvider = CheckboxGroupContext.Provider;
|
|
|
15645
15645
|
const useCheckboxGroupContext = () => React.useContext(CheckboxGroupContext);
|
|
15646
15646
|
const [CheckboxCardProvider, useCheckboxCardContext] = createOptionalContext();
|
|
15647
15647
|
var classes$N = { "card": "m_26775b0a" };
|
|
15648
|
-
const defaultProps$
|
|
15648
|
+
const defaultProps$_ = {
|
|
15649
15649
|
withBorder: true
|
|
15650
15650
|
};
|
|
15651
15651
|
const varsResolver$M = createVarsResolver((_, { radius }) => ({
|
|
@@ -15654,7 +15654,7 @@ const varsResolver$M = createVarsResolver((_, { radius }) => ({
|
|
|
15654
15654
|
}
|
|
15655
15655
|
}));
|
|
15656
15656
|
const CheckboxCard = factory((_props, ref) => {
|
|
15657
|
-
const props = useProps("CheckboxCard", defaultProps$
|
|
15657
|
+
const props = useProps("CheckboxCard", defaultProps$_, _props);
|
|
15658
15658
|
const {
|
|
15659
15659
|
classNames: classNames2,
|
|
15660
15660
|
className,
|
|
@@ -15799,7 +15799,7 @@ function CheckboxIcon({ indeterminate, ...others }) {
|
|
|
15799
15799
|
return /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { ...others });
|
|
15800
15800
|
}
|
|
15801
15801
|
var classes$M = { "indicator": "m_5e5256ee", "icon": "m_1b1c543a", "indicator--outline": "m_76e20374" };
|
|
15802
|
-
const defaultProps$
|
|
15802
|
+
const defaultProps$Z = {
|
|
15803
15803
|
icon: CheckboxIcon,
|
|
15804
15804
|
variant: "filled"
|
|
15805
15805
|
};
|
|
@@ -15818,7 +15818,7 @@ const varsResolver$L = createVarsResolver(
|
|
|
15818
15818
|
}
|
|
15819
15819
|
);
|
|
15820
15820
|
const CheckboxIndicator = factory((_props, ref) => {
|
|
15821
|
-
const props = useProps("CheckboxIndicator", defaultProps$
|
|
15821
|
+
const props = useProps("CheckboxIndicator", defaultProps$Z, _props);
|
|
15822
15822
|
const {
|
|
15823
15823
|
classNames: classNames2,
|
|
15824
15824
|
className,
|
|
@@ -15869,7 +15869,7 @@ const CheckboxIndicator = factory((_props, ref) => {
|
|
|
15869
15869
|
});
|
|
15870
15870
|
CheckboxIndicator.displayName = "@mantine/core/CheckboxIndicator";
|
|
15871
15871
|
CheckboxIndicator.classes = classes$M;
|
|
15872
|
-
const defaultProps$
|
|
15872
|
+
const defaultProps$Y = {
|
|
15873
15873
|
labelPosition: "right",
|
|
15874
15874
|
icon: CheckboxIcon,
|
|
15875
15875
|
variant: "filled"
|
|
@@ -15889,7 +15889,7 @@ const varsResolver$K = createVarsResolver(
|
|
|
15889
15889
|
}
|
|
15890
15890
|
);
|
|
15891
15891
|
const Checkbox$1 = factory((_props, forwardedRef) => {
|
|
15892
|
-
const props = useProps("Checkbox", defaultProps$
|
|
15892
|
+
const props = useProps("Checkbox", defaultProps$Y, _props);
|
|
15893
15893
|
const {
|
|
15894
15894
|
classNames: classNames2,
|
|
15895
15895
|
className,
|
|
@@ -16492,14 +16492,14 @@ const Burger = factory((_props, ref) => {
|
|
|
16492
16492
|
Burger.classes = classes$J;
|
|
16493
16493
|
Burger.displayName = "@mantine/core/Burger";
|
|
16494
16494
|
var classes$I = { "root": "m_77c9d27d", "inner": "m_80f1301b", "label": "m_811560b9", "section": "m_a74036a", "loader": "m_a25b86ee", "group": "m_80d6d844", "groupSection": "m_70be2a01" };
|
|
16495
|
-
const defaultProps$
|
|
16495
|
+
const defaultProps$X = {
|
|
16496
16496
|
orientation: "horizontal"
|
|
16497
16497
|
};
|
|
16498
16498
|
const varsResolver$F = createVarsResolver((_, { borderWidth }) => ({
|
|
16499
16499
|
group: { "--button-border-width": rem(borderWidth) }
|
|
16500
16500
|
}));
|
|
16501
16501
|
const ButtonGroup$1 = factory((_props, ref) => {
|
|
16502
|
-
const props = useProps("ButtonGroup", defaultProps$
|
|
16502
|
+
const props = useProps("ButtonGroup", defaultProps$X, _props);
|
|
16503
16503
|
const {
|
|
16504
16504
|
className,
|
|
16505
16505
|
style,
|
|
@@ -16513,7 +16513,7 @@ const ButtonGroup$1 = factory((_props, ref) => {
|
|
|
16513
16513
|
mod,
|
|
16514
16514
|
attributes,
|
|
16515
16515
|
...others
|
|
16516
|
-
} = useProps("ButtonGroup", defaultProps$
|
|
16516
|
+
} = useProps("ButtonGroup", defaultProps$X, _props);
|
|
16517
16517
|
const getStyles2 = useStyles({
|
|
16518
16518
|
name: "ButtonGroup",
|
|
16519
16519
|
props,
|
|
@@ -16856,7 +16856,7 @@ const Container$1 = factory((_props, ref) => {
|
|
|
16856
16856
|
Container$1.classes = classes$F;
|
|
16857
16857
|
Container$1.displayName = "@mantine/core/Container";
|
|
16858
16858
|
var classes$E = { "root": "m_3eebeb36", "label": "m_9e365f20" };
|
|
16859
|
-
const defaultProps$
|
|
16859
|
+
const defaultProps$W = {
|
|
16860
16860
|
orientation: "horizontal"
|
|
16861
16861
|
};
|
|
16862
16862
|
const varsResolver$A = createVarsResolver((theme, { color, variant, size: size2 }) => ({
|
|
@@ -16867,7 +16867,7 @@ const varsResolver$A = createVarsResolver((theme, { color, variant, size: size2
|
|
|
16867
16867
|
}
|
|
16868
16868
|
}));
|
|
16869
16869
|
const Divider$1 = factory((_props, ref) => {
|
|
16870
|
-
const props = useProps("Divider", defaultProps$
|
|
16870
|
+
const props = useProps("Divider", defaultProps$W, _props);
|
|
16871
16871
|
const {
|
|
16872
16872
|
classNames: classNames2,
|
|
16873
16873
|
className,
|
|
@@ -17022,7 +17022,7 @@ const rtlTransitions = {
|
|
|
17022
17022
|
right: "slide-right",
|
|
17023
17023
|
left: "slide-left"
|
|
17024
17024
|
};
|
|
17025
|
-
const defaultProps$
|
|
17025
|
+
const defaultProps$V = {
|
|
17026
17026
|
closeOnClickOutside: true,
|
|
17027
17027
|
withinPortal: true,
|
|
17028
17028
|
lockScroll: true,
|
|
@@ -17044,7 +17044,7 @@ const varsResolver$z = createVarsResolver((_, { position, size: size2, offset: o
|
|
|
17044
17044
|
}
|
|
17045
17045
|
}));
|
|
17046
17046
|
const DrawerRoot = factory((_props, ref) => {
|
|
17047
|
-
const props = useProps("DrawerRoot", defaultProps$
|
|
17047
|
+
const props = useProps("DrawerRoot", defaultProps$V, _props);
|
|
17048
17048
|
const {
|
|
17049
17049
|
classNames: classNames2,
|
|
17050
17050
|
className,
|
|
@@ -17128,7 +17128,7 @@ const DrawerTitle = factory((_props, ref) => {
|
|
|
17128
17128
|
});
|
|
17129
17129
|
DrawerTitle.classes = classes$D;
|
|
17130
17130
|
DrawerTitle.displayName = "@mantine/core/DrawerTitle";
|
|
17131
|
-
const defaultProps$
|
|
17131
|
+
const defaultProps$U = {
|
|
17132
17132
|
closeOnClickOutside: true,
|
|
17133
17133
|
withinPortal: true,
|
|
17134
17134
|
lockScroll: true,
|
|
@@ -17152,7 +17152,7 @@ const Drawer$1 = factory((_props, ref) => {
|
|
|
17152
17152
|
stackId,
|
|
17153
17153
|
zIndex,
|
|
17154
17154
|
...others
|
|
17155
|
-
} = useProps("Drawer", defaultProps$
|
|
17155
|
+
} = useProps("Drawer", defaultProps$U, _props);
|
|
17156
17156
|
const ctx = useDrawerStackContext();
|
|
17157
17157
|
const hasHeader = !!title || withCloseButton;
|
|
17158
17158
|
const stackProps = ctx && stackId ? {
|
|
@@ -17289,11 +17289,11 @@ function GridColVariables({ span, order, offset: offset2, selector }) {
|
|
|
17289
17289
|
}
|
|
17290
17290
|
);
|
|
17291
17291
|
}
|
|
17292
|
-
const defaultProps$
|
|
17292
|
+
const defaultProps$T = {
|
|
17293
17293
|
span: 12
|
|
17294
17294
|
};
|
|
17295
17295
|
const GridCol = factory((_props, ref) => {
|
|
17296
|
-
const props = useProps("GridCol", defaultProps$
|
|
17296
|
+
const props = useProps("GridCol", defaultProps$T, _props);
|
|
17297
17297
|
const { classNames: classNames2, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
|
|
17298
17298
|
const ctx = useGridContext();
|
|
17299
17299
|
const responsiveClassName = useRandomClassName();
|
|
@@ -17359,7 +17359,7 @@ function GridVariables({ gutter, selector, breakpoints, type }) {
|
|
|
17359
17359
|
}
|
|
17360
17360
|
);
|
|
17361
17361
|
}
|
|
17362
|
-
const defaultProps$
|
|
17362
|
+
const defaultProps$S = {
|
|
17363
17363
|
gutter: "md",
|
|
17364
17364
|
grow: false,
|
|
17365
17365
|
columns: 12
|
|
@@ -17372,7 +17372,7 @@ const varsResolver$y = createVarsResolver((_, { justify, align, overflow }) => (
|
|
|
17372
17372
|
}
|
|
17373
17373
|
}));
|
|
17374
17374
|
const Grid$1 = factory((_props, ref) => {
|
|
17375
|
-
const props = useProps("Grid", defaultProps$
|
|
17375
|
+
const props = useProps("Grid", defaultProps$S, _props);
|
|
17376
17376
|
const {
|
|
17377
17377
|
classNames: classNames2,
|
|
17378
17378
|
className,
|
|
@@ -17653,13 +17653,13 @@ var TextareaAutosize = function TextareaAutosize2(_ref, userRef) {
|
|
|
17653
17653
|
}
|
|
17654
17654
|
};
|
|
17655
17655
|
var index$2 = /* @__PURE__ */ React__namespace.forwardRef(TextareaAutosize);
|
|
17656
|
-
const defaultProps$
|
|
17656
|
+
const defaultProps$R = {
|
|
17657
17657
|
size: "sm"
|
|
17658
17658
|
};
|
|
17659
17659
|
const Textarea$1 = factory((props, ref) => {
|
|
17660
17660
|
const { autosize, maxRows, minRows, __staticSelector, resize, ...others } = useProps(
|
|
17661
17661
|
"Textarea",
|
|
17662
|
-
defaultProps$
|
|
17662
|
+
defaultProps$R,
|
|
17663
17663
|
props
|
|
17664
17664
|
);
|
|
17665
17665
|
const shouldAutosize = autosize && getEnv() !== "test";
|
|
@@ -17707,7 +17707,7 @@ const ListItem$1 = factory((_props, ref) => {
|
|
|
17707
17707
|
});
|
|
17708
17708
|
ListItem$1.classes = classes$B;
|
|
17709
17709
|
ListItem$1.displayName = "@mantine/core/ListItem";
|
|
17710
|
-
const defaultProps$
|
|
17710
|
+
const defaultProps$Q = {
|
|
17711
17711
|
type: "unordered"
|
|
17712
17712
|
};
|
|
17713
17713
|
const varsResolver$x = createVarsResolver((_, { size: size2, spacing }) => ({
|
|
@@ -17718,7 +17718,7 @@ const varsResolver$x = createVarsResolver((_, { size: size2, spacing }) => ({
|
|
|
17718
17718
|
}
|
|
17719
17719
|
}));
|
|
17720
17720
|
const List$1 = factory((_props, ref) => {
|
|
17721
|
-
const props = useProps("List", defaultProps$
|
|
17721
|
+
const props = useProps("List", defaultProps$Q, _props);
|
|
17722
17722
|
const {
|
|
17723
17723
|
classNames: classNames2,
|
|
17724
17724
|
className,
|
|
@@ -18075,7 +18075,7 @@ function MenuSubTarget({ children, refProp }) {
|
|
|
18075
18075
|
return /* @__PURE__ */ jsxRuntime.jsx(Popover.Target, { refProp, popupType: "menu", children });
|
|
18076
18076
|
}
|
|
18077
18077
|
MenuSubTarget.displayName = "@mantine/core/MenuSubTarget";
|
|
18078
|
-
const defaultProps$
|
|
18078
|
+
const defaultProps$P = {
|
|
18079
18079
|
offset: 0,
|
|
18080
18080
|
position: "right-start",
|
|
18081
18081
|
transitionProps: { duration: 0 },
|
|
@@ -18088,7 +18088,7 @@ const defaultProps$O = {
|
|
|
18088
18088
|
}
|
|
18089
18089
|
};
|
|
18090
18090
|
function MenuSub(_props) {
|
|
18091
|
-
const { children, closeDelay, openDelay, ...others } = useProps("MenuSub", defaultProps$
|
|
18091
|
+
const { children, closeDelay, openDelay, ...others } = useProps("MenuSub", defaultProps$P, _props);
|
|
18092
18092
|
const id2 = useId$1();
|
|
18093
18093
|
const [opened, { open, close }] = useDisclosure(false);
|
|
18094
18094
|
const ctx = useSubMenuContext();
|
|
@@ -18124,11 +18124,11 @@ MenuSub.displayName = "@mantine/core/MenuSub";
|
|
|
18124
18124
|
MenuSub.Target = MenuSubTarget;
|
|
18125
18125
|
MenuSub.Dropdown = MenuSubDropdown;
|
|
18126
18126
|
MenuSub.Item = MenuSubItem;
|
|
18127
|
-
const defaultProps$
|
|
18127
|
+
const defaultProps$O = {
|
|
18128
18128
|
refProp: "ref"
|
|
18129
18129
|
};
|
|
18130
18130
|
const MenuTarget = React.forwardRef((props, ref) => {
|
|
18131
|
-
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$
|
|
18131
|
+
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$O, props);
|
|
18132
18132
|
const child = getSingleElementChild(children);
|
|
18133
18133
|
if (!child) {
|
|
18134
18134
|
throw new Error(
|
|
@@ -18166,7 +18166,7 @@ const MenuTarget = React.forwardRef((props, ref) => {
|
|
|
18166
18166
|
}) });
|
|
18167
18167
|
});
|
|
18168
18168
|
MenuTarget.displayName = "@mantine/core/MenuTarget";
|
|
18169
|
-
const defaultProps$
|
|
18169
|
+
const defaultProps$N = {
|
|
18170
18170
|
trapFocus: true,
|
|
18171
18171
|
closeOnItemClick: true,
|
|
18172
18172
|
withInitialFocusPlaceholder: true,
|
|
@@ -18178,7 +18178,7 @@ const defaultProps$M = {
|
|
|
18178
18178
|
menuItemTabIndex: -1
|
|
18179
18179
|
};
|
|
18180
18180
|
function Menu$1(_props) {
|
|
18181
|
-
const props = useProps("Menu", defaultProps$
|
|
18181
|
+
const props = useProps("Menu", defaultProps$N, _props);
|
|
18182
18182
|
const {
|
|
18183
18183
|
children,
|
|
18184
18184
|
onOpen,
|
|
@@ -18384,7 +18384,7 @@ const ModalOverlay = factory((_props, ref) => {
|
|
|
18384
18384
|
});
|
|
18385
18385
|
ModalOverlay.classes = classes$z;
|
|
18386
18386
|
ModalOverlay.displayName = "@mantine/core/ModalOverlay";
|
|
18387
|
-
const defaultProps$
|
|
18387
|
+
const defaultProps$M = {
|
|
18388
18388
|
__staticSelector: "Modal",
|
|
18389
18389
|
closeOnClickOutside: true,
|
|
18390
18390
|
withinPortal: true,
|
|
@@ -18408,7 +18408,7 @@ const varsResolver$w = createVarsResolver(
|
|
|
18408
18408
|
})
|
|
18409
18409
|
);
|
|
18410
18410
|
const ModalRoot = factory((_props, ref) => {
|
|
18411
|
-
const props = useProps("ModalRoot", defaultProps$
|
|
18411
|
+
const props = useProps("ModalRoot", defaultProps$M, _props);
|
|
18412
18412
|
const {
|
|
18413
18413
|
classNames: classNames2,
|
|
18414
18414
|
className,
|
|
@@ -18494,7 +18494,7 @@ const ModalTitle = factory((_props, ref) => {
|
|
|
18494
18494
|
});
|
|
18495
18495
|
ModalTitle.classes = classes$z;
|
|
18496
18496
|
ModalTitle.displayName = "@mantine/core/ModalTitle";
|
|
18497
|
-
const defaultProps$
|
|
18497
|
+
const defaultProps$L = {
|
|
18498
18498
|
closeOnClickOutside: true,
|
|
18499
18499
|
withinPortal: true,
|
|
18500
18500
|
lockScroll: true,
|
|
@@ -18520,7 +18520,7 @@ const Modal$1 = factory((_props, ref) => {
|
|
|
18520
18520
|
stackId,
|
|
18521
18521
|
zIndex,
|
|
18522
18522
|
...others
|
|
18523
|
-
} = useProps("Modal", defaultProps$
|
|
18523
|
+
} = useProps("Modal", defaultProps$L, _props);
|
|
18524
18524
|
const ctx = useModalStackContext();
|
|
18525
18525
|
const hasHeader = !!title || withCloseButton;
|
|
18526
18526
|
const stackProps = ctx && stackId ? {
|
|
@@ -18623,7 +18623,7 @@ const PillGroup = factory((_props, ref) => {
|
|
|
18623
18623
|
});
|
|
18624
18624
|
PillGroup.classes = classes$y;
|
|
18625
18625
|
PillGroup.displayName = "@mantine/core/PillGroup";
|
|
18626
|
-
const defaultProps$
|
|
18626
|
+
const defaultProps$K = {
|
|
18627
18627
|
variant: "default"
|
|
18628
18628
|
};
|
|
18629
18629
|
const varsResolver$u = createVarsResolver((_, { radius }, { size: size2 }) => ({
|
|
@@ -18634,7 +18634,7 @@ const varsResolver$u = createVarsResolver((_, { radius }, { size: size2 }) => ({
|
|
|
18634
18634
|
}
|
|
18635
18635
|
}));
|
|
18636
18636
|
const Pill = factory((_props, ref) => {
|
|
18637
|
-
const props = useProps("Pill", defaultProps$
|
|
18637
|
+
const props = useProps("Pill", defaultProps$K, _props);
|
|
18638
18638
|
const {
|
|
18639
18639
|
classNames: classNames2,
|
|
18640
18640
|
className,
|
|
@@ -18720,11 +18720,11 @@ Pill.classes = classes$y;
|
|
|
18720
18720
|
Pill.displayName = "@mantine/core/Pill";
|
|
18721
18721
|
Pill.Group = PillGroup;
|
|
18722
18722
|
var classes$x = { "field": "m_45c4369d" };
|
|
18723
|
-
const defaultProps$
|
|
18723
|
+
const defaultProps$J = {
|
|
18724
18724
|
type: "visible"
|
|
18725
18725
|
};
|
|
18726
18726
|
const PillsInputField = factory((_props, ref) => {
|
|
18727
|
-
const props = useProps("PillsInputField", defaultProps$
|
|
18727
|
+
const props = useProps("PillsInputField", defaultProps$J, _props);
|
|
18728
18728
|
const {
|
|
18729
18729
|
classNames: classNames2,
|
|
18730
18730
|
className,
|
|
@@ -18775,11 +18775,11 @@ const PillsInputField = factory((_props, ref) => {
|
|
|
18775
18775
|
});
|
|
18776
18776
|
PillsInputField.classes = classes$x;
|
|
18777
18777
|
PillsInputField.displayName = "@mantine/core/PillsInputField";
|
|
18778
|
-
const defaultProps$
|
|
18778
|
+
const defaultProps$I = {
|
|
18779
18779
|
size: "sm"
|
|
18780
18780
|
};
|
|
18781
18781
|
const PillsInput = factory((_props, ref) => {
|
|
18782
|
-
const props = useProps("PillsInput", defaultProps$
|
|
18782
|
+
const props = useProps("PillsInput", defaultProps$I, _props);
|
|
18783
18783
|
const {
|
|
18784
18784
|
children,
|
|
18785
18785
|
onMouseDown,
|
|
@@ -18849,7 +18849,7 @@ const clearSectionOffset = {
|
|
|
18849
18849
|
lg: 72,
|
|
18850
18850
|
xl: 89
|
|
18851
18851
|
};
|
|
18852
|
-
const defaultProps$
|
|
18852
|
+
const defaultProps$H = {
|
|
18853
18853
|
maxValues: Infinity,
|
|
18854
18854
|
withCheckIcon: true,
|
|
18855
18855
|
checkIconPosition: "left",
|
|
@@ -18859,7 +18859,7 @@ const defaultProps$G = {
|
|
|
18859
18859
|
size: "sm"
|
|
18860
18860
|
};
|
|
18861
18861
|
const MultiSelect$1 = factory((_props, ref) => {
|
|
18862
|
-
const props = useProps("MultiSelect", defaultProps$
|
|
18862
|
+
const props = useProps("MultiSelect", defaultProps$H, _props);
|
|
18863
18863
|
const {
|
|
18864
18864
|
classNames: classNames2,
|
|
18865
18865
|
className,
|
|
@@ -19336,7 +19336,7 @@ const NavLink = polymorphicFactory((_props, ref) => {
|
|
|
19336
19336
|
NavLink.classes = classes$w;
|
|
19337
19337
|
NavLink.displayName = "@mantine/core/NavLink";
|
|
19338
19338
|
var classes$v = { "root": "m_a513464", "icon": "m_a4ceffb", "loader": "m_b0920b15", "body": "m_a49ed24", "title": "m_3feedf16", "description": "m_3d733a3a", "closeButton": "m_919a4d88" };
|
|
19339
|
-
const defaultProps$
|
|
19339
|
+
const defaultProps$G = {
|
|
19340
19340
|
withCloseButton: true
|
|
19341
19341
|
};
|
|
19342
19342
|
const varsResolver$s = createVarsResolver((theme, { radius, color }) => ({
|
|
@@ -19346,7 +19346,7 @@ const varsResolver$s = createVarsResolver((theme, { radius, color }) => ({
|
|
|
19346
19346
|
}
|
|
19347
19347
|
}));
|
|
19348
19348
|
const Notification = factory((_props, ref) => {
|
|
19349
|
-
const props = useProps("Notification", defaultProps$
|
|
19349
|
+
const props = useProps("Notification", defaultProps$G, _props);
|
|
19350
19350
|
const {
|
|
19351
19351
|
className,
|
|
19352
19352
|
color,
|
|
@@ -20476,7 +20476,7 @@ function isInRange$1(value, min2, max2) {
|
|
|
20476
20476
|
const maxValid = max2 === void 0 || value <= max2;
|
|
20477
20477
|
return minValid && maxValid;
|
|
20478
20478
|
}
|
|
20479
|
-
const defaultProps$
|
|
20479
|
+
const defaultProps$F = {
|
|
20480
20480
|
step: 1,
|
|
20481
20481
|
clampBehavior: "blur",
|
|
20482
20482
|
allowDecimal: true,
|
|
@@ -20511,7 +20511,7 @@ function clampAndSanitizeInput(sanitizedValue, max2, min2) {
|
|
|
20511
20511
|
return clamped;
|
|
20512
20512
|
}
|
|
20513
20513
|
const NumberInput = factory((_props, ref) => {
|
|
20514
|
-
const props = useProps("NumberInput", defaultProps$
|
|
20514
|
+
const props = useProps("NumberInput", defaultProps$F, _props);
|
|
20515
20515
|
const {
|
|
20516
20516
|
className,
|
|
20517
20517
|
classNames: classNames2,
|
|
@@ -20829,11 +20829,11 @@ var classes$t = { "root": "m_4addd315", "control": "m_326d024a", "dots": "m_4ad7
|
|
|
20829
20829
|
const [PaginationProvider, usePaginationContext] = createSafeContext(
|
|
20830
20830
|
"Pagination.Root component was not found in tree"
|
|
20831
20831
|
);
|
|
20832
|
-
const defaultProps$
|
|
20832
|
+
const defaultProps$E = {
|
|
20833
20833
|
withPadding: true
|
|
20834
20834
|
};
|
|
20835
20835
|
const PaginationControl = factory((_props, ref) => {
|
|
20836
|
-
const props = useProps("PaginationControl", defaultProps$
|
|
20836
|
+
const props = useProps("PaginationControl", defaultProps$E, _props);
|
|
20837
20837
|
const {
|
|
20838
20838
|
classNames: classNames2,
|
|
20839
20839
|
className,
|
|
@@ -20912,11 +20912,11 @@ const PaginationDotsIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
20912
20912
|
path: "M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"
|
|
20913
20913
|
}
|
|
20914
20914
|
);
|
|
20915
|
-
const defaultProps$
|
|
20915
|
+
const defaultProps$D = {
|
|
20916
20916
|
icon: PaginationDotsIcon
|
|
20917
20917
|
};
|
|
20918
20918
|
const PaginationDots = factory((_props, ref) => {
|
|
20919
|
-
const props = useProps("PaginationDots", defaultProps$
|
|
20919
|
+
const props = useProps("PaginationDots", defaultProps$D, _props);
|
|
20920
20920
|
const { classNames: classNames2, className, style, styles, vars, icon: Icon, ...others } = props;
|
|
20921
20921
|
const ctx = usePaginationContext();
|
|
20922
20922
|
return /* @__PURE__ */ jsxRuntime.jsx(Box$1, { ref, ...ctx.getStyles("dots", { className, style, styles, classNames: classNames2 }), ...others, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21007,7 +21007,7 @@ function PaginationItems({ dotsIcon }) {
|
|
|
21007
21007
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: items });
|
|
21008
21008
|
}
|
|
21009
21009
|
PaginationItems.displayName = "@mantine/core/PaginationItems";
|
|
21010
|
-
const defaultProps$
|
|
21010
|
+
const defaultProps$C = {
|
|
21011
21011
|
siblings: 1,
|
|
21012
21012
|
boundaries: 1
|
|
21013
21013
|
};
|
|
@@ -21023,7 +21023,7 @@ const varsResolver$q = createVarsResolver(
|
|
|
21023
21023
|
})
|
|
21024
21024
|
);
|
|
21025
21025
|
const PaginationRoot = factory((_props, ref) => {
|
|
21026
|
-
const props = useProps("PaginationRoot", defaultProps$
|
|
21026
|
+
const props = useProps("PaginationRoot", defaultProps$C, _props);
|
|
21027
21027
|
const {
|
|
21028
21028
|
classNames: classNames2,
|
|
21029
21029
|
className,
|
|
@@ -21096,7 +21096,7 @@ const PaginationRoot = factory((_props, ref) => {
|
|
|
21096
21096
|
});
|
|
21097
21097
|
PaginationRoot.classes = classes$t;
|
|
21098
21098
|
PaginationRoot.displayName = "@mantine/core/PaginationRoot";
|
|
21099
|
-
const defaultProps$
|
|
21099
|
+
const defaultProps$B = {
|
|
21100
21100
|
withControls: true,
|
|
21101
21101
|
withPages: true,
|
|
21102
21102
|
siblings: 1,
|
|
@@ -21104,7 +21104,7 @@ const defaultProps$A = {
|
|
|
21104
21104
|
gap: 8
|
|
21105
21105
|
};
|
|
21106
21106
|
const Pagination = factory((_props, ref) => {
|
|
21107
|
-
const props = useProps("Pagination", defaultProps$
|
|
21107
|
+
const props = useProps("Pagination", defaultProps$B, _props);
|
|
21108
21108
|
const {
|
|
21109
21109
|
withEdges,
|
|
21110
21110
|
withControls,
|
|
@@ -21162,7 +21162,7 @@ const PasswordToggleIcon = ({
|
|
|
21162
21162
|
)
|
|
21163
21163
|
}
|
|
21164
21164
|
);
|
|
21165
|
-
const defaultProps$
|
|
21165
|
+
const defaultProps$A = {
|
|
21166
21166
|
visibilityToggleIcon: PasswordToggleIcon
|
|
21167
21167
|
};
|
|
21168
21168
|
const varsResolver$p = createVarsResolver((_, { size: size2 }) => ({
|
|
@@ -21172,7 +21172,7 @@ const varsResolver$p = createVarsResolver((_, { size: size2 }) => ({
|
|
|
21172
21172
|
}
|
|
21173
21173
|
}));
|
|
21174
21174
|
const PasswordInput$1 = factory((_props, ref) => {
|
|
21175
|
-
const props = useProps("PasswordInput", defaultProps$
|
|
21175
|
+
const props = useProps("PasswordInput", defaultProps$A, _props);
|
|
21176
21176
|
const {
|
|
21177
21177
|
classNames: classNames2,
|
|
21178
21178
|
className,
|
|
@@ -21372,7 +21372,7 @@ const regex = {
|
|
|
21372
21372
|
number: /^[0-9]+$/,
|
|
21373
21373
|
alphanumeric: /^[a-zA-Z0-9]+$/i
|
|
21374
21374
|
};
|
|
21375
|
-
const defaultProps$
|
|
21375
|
+
const defaultProps$z = {
|
|
21376
21376
|
gap: "sm",
|
|
21377
21377
|
length: 4,
|
|
21378
21378
|
manageFocus: true,
|
|
@@ -21424,7 +21424,7 @@ const PinInput = factory((props, ref) => {
|
|
|
21424
21424
|
getInputProps,
|
|
21425
21425
|
attributes,
|
|
21426
21426
|
...others
|
|
21427
|
-
} = useProps("PinInput", defaultProps$
|
|
21427
|
+
} = useProps("PinInput", defaultProps$z, props);
|
|
21428
21428
|
const uuid2 = useId$1(id2);
|
|
21429
21429
|
const getStyles2 = useStyles({
|
|
21430
21430
|
name: "PinInput",
|
|
@@ -21698,7 +21698,7 @@ const ProgressRoot = factory((_props, ref) => {
|
|
|
21698
21698
|
});
|
|
21699
21699
|
ProgressRoot.classes = classes$q;
|
|
21700
21700
|
ProgressRoot.displayName = "@mantine/core/ProgressRoot";
|
|
21701
|
-
const defaultProps$
|
|
21701
|
+
const defaultProps$y = {
|
|
21702
21702
|
withAria: true
|
|
21703
21703
|
};
|
|
21704
21704
|
const ProgressSection = factory((props, ref) => {
|
|
@@ -21715,7 +21715,7 @@ const ProgressSection = factory((props, ref) => {
|
|
|
21715
21715
|
animated,
|
|
21716
21716
|
mod,
|
|
21717
21717
|
...others
|
|
21718
|
-
} = useProps("ProgressSection", defaultProps$
|
|
21718
|
+
} = useProps("ProgressSection", defaultProps$y, props);
|
|
21719
21719
|
const ctx = useProgressContext();
|
|
21720
21720
|
const theme = useMantineTheme();
|
|
21721
21721
|
const ariaAttributes = withAria ? {
|
|
@@ -21791,7 +21791,7 @@ var classes$p = { "root": "m_f3f1af94", "inner": "m_89c4f5e4", "icon": "m_f3ed6b
|
|
|
21791
21791
|
const [RadioGroupProvider, useRadioGroupContext] = createOptionalContext();
|
|
21792
21792
|
const [RadioCardProvider, useRadioCardContext] = createOptionalContext();
|
|
21793
21793
|
var classes$o = { "card": "m_9dc8ae12" };
|
|
21794
|
-
const defaultProps$
|
|
21794
|
+
const defaultProps$x = {
|
|
21795
21795
|
withBorder: true
|
|
21796
21796
|
};
|
|
21797
21797
|
const varsResolver$m = createVarsResolver((_, { radius }) => ({
|
|
@@ -21800,7 +21800,7 @@ const varsResolver$m = createVarsResolver((_, { radius }) => ({
|
|
|
21800
21800
|
}
|
|
21801
21801
|
}));
|
|
21802
21802
|
const RadioCard$1 = factory((_props, ref) => {
|
|
21803
|
-
const props = useProps("RadioCard", defaultProps$
|
|
21803
|
+
const props = useProps("RadioCard", defaultProps$x, _props);
|
|
21804
21804
|
const {
|
|
21805
21805
|
classNames: classNames2,
|
|
21806
21806
|
className,
|
|
@@ -21943,7 +21943,7 @@ function RadioIcon({ size: size2, style, ...others }) {
|
|
|
21943
21943
|
);
|
|
21944
21944
|
}
|
|
21945
21945
|
var classes$n = { "indicator": "m_717d7ff6", "icon": "m_3e4da632", "indicator--outline": "m_2980836c" };
|
|
21946
|
-
const defaultProps$
|
|
21946
|
+
const defaultProps$w = {
|
|
21947
21947
|
icon: RadioIcon
|
|
21948
21948
|
};
|
|
21949
21949
|
const varsResolver$l = createVarsResolver(
|
|
@@ -21962,7 +21962,7 @@ const varsResolver$l = createVarsResolver(
|
|
|
21962
21962
|
}
|
|
21963
21963
|
);
|
|
21964
21964
|
const RadioIndicator = factory((_props, ref) => {
|
|
21965
|
-
const props = useProps("RadioIndicator", defaultProps$
|
|
21965
|
+
const props = useProps("RadioIndicator", defaultProps$w, _props);
|
|
21966
21966
|
const {
|
|
21967
21967
|
classNames: classNames2,
|
|
21968
21968
|
className,
|
|
@@ -22012,7 +22012,7 @@ const RadioIndicator = factory((_props, ref) => {
|
|
|
22012
22012
|
});
|
|
22013
22013
|
RadioIndicator.displayName = "@mantine/core/RadioIndicator";
|
|
22014
22014
|
RadioIndicator.classes = classes$n;
|
|
22015
|
-
const defaultProps$
|
|
22015
|
+
const defaultProps$v = {
|
|
22016
22016
|
labelPosition: "right"
|
|
22017
22017
|
};
|
|
22018
22018
|
const varsResolver$k = createVarsResolver(
|
|
@@ -22031,7 +22031,7 @@ const varsResolver$k = createVarsResolver(
|
|
|
22031
22031
|
}
|
|
22032
22032
|
);
|
|
22033
22033
|
const Radio$1 = factory((_props, ref) => {
|
|
22034
|
-
const props = useProps("Radio", defaultProps$
|
|
22034
|
+
const props = useProps("Radio", defaultProps$v, _props);
|
|
22035
22035
|
const {
|
|
22036
22036
|
classNames: classNames2,
|
|
22037
22037
|
className,
|
|
@@ -22198,7 +22198,7 @@ function useFloatingTooltip({
|
|
|
22198
22198
|
}, [elements.reference, refs.floating.current, update, handleMouseMove, opened]);
|
|
22199
22199
|
return { handleMouseMove, x, y, opened, setOpened, boundaryRef, floating: refs.setFloating };
|
|
22200
22200
|
}
|
|
22201
|
-
const defaultProps$
|
|
22201
|
+
const defaultProps$u = {
|
|
22202
22202
|
refProp: "ref",
|
|
22203
22203
|
withinPortal: true,
|
|
22204
22204
|
offset: 10,
|
|
@@ -22213,7 +22213,7 @@ const varsResolver$j = createVarsResolver((theme, { radius, color }) => ({
|
|
|
22213
22213
|
}
|
|
22214
22214
|
}));
|
|
22215
22215
|
const TooltipFloating = factory((_props, ref) => {
|
|
22216
|
-
const props = useProps("TooltipFloating", defaultProps$
|
|
22216
|
+
const props = useProps("TooltipFloating", defaultProps$u, _props);
|
|
22217
22217
|
const {
|
|
22218
22218
|
children,
|
|
22219
22219
|
refProp,
|
|
@@ -22308,12 +22308,12 @@ TooltipFloating.displayName = "@mantine/core/TooltipFloating";
|
|
|
22308
22308
|
const TooltipGroupContext = React.createContext(false);
|
|
22309
22309
|
const TooltipGroupProvider = TooltipGroupContext.Provider;
|
|
22310
22310
|
const useTooltipGroupContext = () => React.useContext(TooltipGroupContext);
|
|
22311
|
-
const defaultProps$
|
|
22311
|
+
const defaultProps$t = {
|
|
22312
22312
|
openDelay: 0,
|
|
22313
22313
|
closeDelay: 0
|
|
22314
22314
|
};
|
|
22315
22315
|
function TooltipGroup(props) {
|
|
22316
|
-
const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$
|
|
22316
|
+
const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$t, props);
|
|
22317
22317
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipGroupProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(FloatingDelayGroup, { delay: { open: openDelay, close: closeDelay }, children }) });
|
|
22318
22318
|
}
|
|
22319
22319
|
TooltipGroup.displayName = "@mantine/core/TooltipGroup";
|
|
@@ -22416,7 +22416,7 @@ function useTooltip(settings) {
|
|
|
22416
22416
|
placement
|
|
22417
22417
|
};
|
|
22418
22418
|
}
|
|
22419
|
-
const defaultProps$
|
|
22419
|
+
const defaultProps$s = {
|
|
22420
22420
|
position: "top",
|
|
22421
22421
|
refProp: "ref",
|
|
22422
22422
|
withinPortal: true,
|
|
@@ -22449,7 +22449,7 @@ const varsResolver$i = createVarsResolver(
|
|
|
22449
22449
|
}
|
|
22450
22450
|
);
|
|
22451
22451
|
const Tooltip$1 = factory((_props, ref) => {
|
|
22452
|
-
const props = useProps("Tooltip", defaultProps$
|
|
22452
|
+
const props = useProps("Tooltip", defaultProps$s, _props);
|
|
22453
22453
|
const {
|
|
22454
22454
|
children,
|
|
22455
22455
|
position,
|
|
@@ -22497,7 +22497,7 @@ const Tooltip$1 = factory((_props, ref) => {
|
|
|
22497
22497
|
attributes,
|
|
22498
22498
|
target,
|
|
22499
22499
|
...others
|
|
22500
|
-
} = useProps("Tooltip", defaultProps$
|
|
22500
|
+
} = useProps("Tooltip", defaultProps$s, props);
|
|
22501
22501
|
const { dir } = useDirection();
|
|
22502
22502
|
const arrowRef = React.useRef(null);
|
|
22503
22503
|
const tooltip = useTooltip({
|
|
@@ -22664,7 +22664,7 @@ Tooltip$1.displayName = "@mantine/core/Tooltip";
|
|
|
22664
22664
|
Tooltip$1.Floating = TooltipFloating;
|
|
22665
22665
|
Tooltip$1.Group = TooltipGroup;
|
|
22666
22666
|
var classes$l = { "root": "m_cf365364", "indicator": "m_9e182ccd", "label": "m_1738fcb2", "input": "m_1714d588", "control": "m_69686b9b", "innerLabel": "m_78882f40" };
|
|
22667
|
-
const defaultProps$
|
|
22667
|
+
const defaultProps$r = {
|
|
22668
22668
|
withItemsBorders: true
|
|
22669
22669
|
};
|
|
22670
22670
|
const varsResolver$h = createVarsResolver(
|
|
@@ -22681,7 +22681,7 @@ const varsResolver$h = createVarsResolver(
|
|
|
22681
22681
|
})
|
|
22682
22682
|
);
|
|
22683
22683
|
const SegmentedControl = factory((_props, ref) => {
|
|
22684
|
-
const props = useProps("SegmentedControl", defaultProps$
|
|
22684
|
+
const props = useProps("SegmentedControl", defaultProps$r, _props);
|
|
22685
22685
|
const {
|
|
22686
22686
|
classNames: classNames2,
|
|
22687
22687
|
className,
|
|
@@ -22829,14 +22829,14 @@ const SegmentedControl = factory((_props, ref) => {
|
|
|
22829
22829
|
});
|
|
22830
22830
|
SegmentedControl.classes = classes$l;
|
|
22831
22831
|
SegmentedControl.displayName = "@mantine/core/SegmentedControl";
|
|
22832
|
-
const defaultProps$
|
|
22832
|
+
const defaultProps$q = {
|
|
22833
22833
|
withCheckIcon: true,
|
|
22834
22834
|
allowDeselect: true,
|
|
22835
22835
|
checkIconPosition: "left",
|
|
22836
22836
|
openOnFocus: true
|
|
22837
22837
|
};
|
|
22838
22838
|
const Select$1 = factory((_props, ref) => {
|
|
22839
|
-
const props = useProps("Select", defaultProps$
|
|
22839
|
+
const props = useProps("Select", defaultProps$q, _props);
|
|
22840
22840
|
const {
|
|
22841
22841
|
classNames: classNames2,
|
|
22842
22842
|
styles,
|
|
@@ -23196,13 +23196,13 @@ function SimpleGridContainerVariables({
|
|
|
23196
23196
|
}));
|
|
23197
23197
|
return /* @__PURE__ */ jsxRuntime.jsx(InlineStyles, { styles: baseStyles, container: media, selector });
|
|
23198
23198
|
}
|
|
23199
|
-
const defaultProps$
|
|
23199
|
+
const defaultProps$p = {
|
|
23200
23200
|
cols: 1,
|
|
23201
23201
|
spacing: "md",
|
|
23202
23202
|
type: "media"
|
|
23203
23203
|
};
|
|
23204
23204
|
const SimpleGrid = factory((_props, ref) => {
|
|
23205
|
-
const props = useProps("SimpleGrid", defaultProps$
|
|
23205
|
+
const props = useProps("SimpleGrid", defaultProps$p, _props);
|
|
23206
23206
|
const {
|
|
23207
23207
|
classNames: classNames2,
|
|
23208
23208
|
className,
|
|
@@ -23244,7 +23244,7 @@ const SimpleGrid = factory((_props, ref) => {
|
|
|
23244
23244
|
SimpleGrid.classes = classes$k;
|
|
23245
23245
|
SimpleGrid.displayName = "@mantine/core/SimpleGrid";
|
|
23246
23246
|
var classes$j = { "root": "m_18320242", "skeleton-fade": "m_299c329c" };
|
|
23247
|
-
const defaultProps$
|
|
23247
|
+
const defaultProps$o = {
|
|
23248
23248
|
visible: true,
|
|
23249
23249
|
animate: true
|
|
23250
23250
|
};
|
|
@@ -23258,7 +23258,7 @@ const varsResolver$g = createVarsResolver(
|
|
|
23258
23258
|
})
|
|
23259
23259
|
);
|
|
23260
23260
|
const Skeleton$1 = factory((_props, ref) => {
|
|
23261
|
-
const props = useProps("Skeleton", defaultProps$
|
|
23261
|
+
const props = useProps("Skeleton", defaultProps$o, _props);
|
|
23262
23262
|
const {
|
|
23263
23263
|
classNames: classNames2,
|
|
23264
23264
|
className,
|
|
@@ -23484,7 +23484,7 @@ function getLastMarkValue(marks) {
|
|
|
23484
23484
|
const sortedMarks = [...marks].sort((a, b) => a.value - b.value);
|
|
23485
23485
|
return sortedMarks.length > 0 ? sortedMarks[sortedMarks.length - 1].value : 100;
|
|
23486
23486
|
}
|
|
23487
|
-
const defaultProps$
|
|
23487
|
+
const defaultProps$n = {
|
|
23488
23488
|
radius: "xl",
|
|
23489
23489
|
min: 0,
|
|
23490
23490
|
max: 100,
|
|
@@ -23508,7 +23508,7 @@ const varsResolver$f = createVarsResolver(
|
|
|
23508
23508
|
})
|
|
23509
23509
|
);
|
|
23510
23510
|
const Slider$1 = factory((_props, ref) => {
|
|
23511
|
-
const props = useProps("Slider", defaultProps$
|
|
23511
|
+
const props = useProps("Slider", defaultProps$n, _props);
|
|
23512
23512
|
const {
|
|
23513
23513
|
classNames: classNames2,
|
|
23514
23514
|
styles,
|
|
@@ -23775,7 +23775,7 @@ const Space = factory((props, ref) => {
|
|
|
23775
23775
|
});
|
|
23776
23776
|
Space.displayName = "@mantine/core/Space";
|
|
23777
23777
|
var classes$h = { "root": "m_6d731127" };
|
|
23778
|
-
const defaultProps$
|
|
23778
|
+
const defaultProps$m = {
|
|
23779
23779
|
gap: "md",
|
|
23780
23780
|
align: "stretch",
|
|
23781
23781
|
justify: "flex-start"
|
|
@@ -23788,7 +23788,7 @@ const varsResolver$e = createVarsResolver((_, { gap, align, justify }) => ({
|
|
|
23788
23788
|
}
|
|
23789
23789
|
}));
|
|
23790
23790
|
const Stack$2 = factory((_props, ref) => {
|
|
23791
|
-
const props = useProps("Stack", defaultProps$
|
|
23791
|
+
const props = useProps("Stack", defaultProps$m, _props);
|
|
23792
23792
|
const {
|
|
23793
23793
|
classNames: classNames2,
|
|
23794
23794
|
className,
|
|
@@ -23832,7 +23832,7 @@ const getStepFragment = (Fragment, step) => {
|
|
|
23832
23832
|
}
|
|
23833
23833
|
return Fragment;
|
|
23834
23834
|
};
|
|
23835
|
-
const defaultProps$
|
|
23835
|
+
const defaultProps$l = {
|
|
23836
23836
|
withIcon: true,
|
|
23837
23837
|
allowStepClick: true,
|
|
23838
23838
|
iconPosition: "left"
|
|
@@ -23861,7 +23861,7 @@ const StepperStep = factory((props, ref) => {
|
|
|
23861
23861
|
orientation,
|
|
23862
23862
|
mod,
|
|
23863
23863
|
...others
|
|
23864
|
-
} = useProps("StepperStep", defaultProps$
|
|
23864
|
+
} = useProps("StepperStep", defaultProps$l, props);
|
|
23865
23865
|
const ctx = useStepperContext();
|
|
23866
23866
|
const theme = useMantineTheme();
|
|
23867
23867
|
const stylesApi = { classNames: classNames2, styles };
|
|
@@ -23935,7 +23935,7 @@ const StepperStep = factory((props, ref) => {
|
|
|
23935
23935
|
});
|
|
23936
23936
|
StepperStep.classes = classes$g;
|
|
23937
23937
|
StepperStep.displayName = "@mantine/core/StepperStep";
|
|
23938
|
-
const defaultProps$
|
|
23938
|
+
const defaultProps$k = {
|
|
23939
23939
|
orientation: "horizontal",
|
|
23940
23940
|
iconPosition: "left",
|
|
23941
23941
|
allowNextStepsSelect: true,
|
|
@@ -23955,7 +23955,7 @@ const varsResolver$d = createVarsResolver(
|
|
|
23955
23955
|
})
|
|
23956
23956
|
);
|
|
23957
23957
|
const Stepper = factory((_props, ref) => {
|
|
23958
|
-
const props = useProps("Stepper", defaultProps$
|
|
23958
|
+
const props = useProps("Stepper", defaultProps$k, _props);
|
|
23959
23959
|
const {
|
|
23960
23960
|
classNames: classNames2,
|
|
23961
23961
|
className,
|
|
@@ -24114,7 +24114,7 @@ const SwitchGroup = factory((props, ref) => {
|
|
|
24114
24114
|
});
|
|
24115
24115
|
SwitchGroup.classes = Input.Wrapper.classes;
|
|
24116
24116
|
SwitchGroup.displayName = "@mantine/core/SwitchGroup";
|
|
24117
|
-
const defaultProps$
|
|
24117
|
+
const defaultProps$j = {
|
|
24118
24118
|
labelPosition: "right",
|
|
24119
24119
|
withThumbIndicator: true
|
|
24120
24120
|
};
|
|
@@ -24130,7 +24130,7 @@ const varsResolver$c = createVarsResolver((theme, { radius, color, size: size2 }
|
|
|
24130
24130
|
}
|
|
24131
24131
|
}));
|
|
24132
24132
|
const Switch$1 = factory((_props, ref) => {
|
|
24133
|
-
const props = useProps("Switch", defaultProps$
|
|
24133
|
+
const props = useProps("Switch", defaultProps$j, _props);
|
|
24134
24134
|
const {
|
|
24135
24135
|
classNames: classNames2,
|
|
24136
24136
|
className,
|
|
@@ -24334,7 +24334,7 @@ function TableDataRenderer({ data }) {
|
|
|
24334
24334
|
] });
|
|
24335
24335
|
}
|
|
24336
24336
|
TableDataRenderer.displayName = "@mantine/core/TableDataRenderer";
|
|
24337
|
-
const defaultProps$
|
|
24337
|
+
const defaultProps$i = {
|
|
24338
24338
|
type: "scrollarea"
|
|
24339
24339
|
};
|
|
24340
24340
|
const varsResolver$b = createVarsResolver(
|
|
@@ -24347,7 +24347,7 @@ const varsResolver$b = createVarsResolver(
|
|
|
24347
24347
|
})
|
|
24348
24348
|
);
|
|
24349
24349
|
const TableScrollContainer = factory((_props, ref) => {
|
|
24350
|
-
const props = useProps("TableScrollContainer", defaultProps$
|
|
24350
|
+
const props = useProps("TableScrollContainer", defaultProps$i, _props);
|
|
24351
24351
|
const {
|
|
24352
24352
|
classNames: classNames2,
|
|
24353
24353
|
className,
|
|
@@ -24391,7 +24391,7 @@ const TableScrollContainer = factory((_props, ref) => {
|
|
|
24391
24391
|
});
|
|
24392
24392
|
TableScrollContainer.classes = classes$e;
|
|
24393
24393
|
TableScrollContainer.displayName = "@mantine/core/TableScrollContainer";
|
|
24394
|
-
const defaultProps$
|
|
24394
|
+
const defaultProps$h = {
|
|
24395
24395
|
withRowBorders: true,
|
|
24396
24396
|
verticalSpacing: 7
|
|
24397
24397
|
};
|
|
@@ -24422,7 +24422,7 @@ const varsResolver$a = createVarsResolver(
|
|
|
24422
24422
|
})
|
|
24423
24423
|
);
|
|
24424
24424
|
const Table$1 = factory((_props, ref) => {
|
|
24425
|
-
const props = useProps("Table", defaultProps$
|
|
24425
|
+
const props = useProps("Table", defaultProps$h, _props);
|
|
24426
24426
|
const {
|
|
24427
24427
|
classNames: classNames2,
|
|
24428
24428
|
className,
|
|
@@ -24647,7 +24647,7 @@ const TabsTab = factory((_props, ref) => {
|
|
|
24647
24647
|
TabsTab.classes = classes$d;
|
|
24648
24648
|
TabsTab.displayName = "@mantine/core/TabsTab";
|
|
24649
24649
|
const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value";
|
|
24650
|
-
const defaultProps$
|
|
24650
|
+
const defaultProps$g = {
|
|
24651
24651
|
keepMounted: true,
|
|
24652
24652
|
orientation: "horizontal",
|
|
24653
24653
|
loop: true,
|
|
@@ -24663,7 +24663,7 @@ const varsResolver$9 = createVarsResolver((theme, { radius, color, autoContrast
|
|
|
24663
24663
|
}
|
|
24664
24664
|
}));
|
|
24665
24665
|
const Tabs$1 = factory((_props, ref) => {
|
|
24666
|
-
const props = useProps("Tabs", defaultProps$
|
|
24666
|
+
const props = useProps("Tabs", defaultProps$g, _props);
|
|
24667
24667
|
const {
|
|
24668
24668
|
defaultValue,
|
|
24669
24669
|
value,
|
|
@@ -24841,7 +24841,7 @@ function getTitleSize(order, size2) {
|
|
|
24841
24841
|
};
|
|
24842
24842
|
}
|
|
24843
24843
|
var classes$b = { "root": "m_8a5d1357" };
|
|
24844
|
-
const defaultProps$
|
|
24844
|
+
const defaultProps$f = {
|
|
24845
24845
|
order: 1
|
|
24846
24846
|
};
|
|
24847
24847
|
const varsResolver$7 = createVarsResolver((_, { order, size: size2, lineClamp, textWrap }) => {
|
|
@@ -24857,7 +24857,7 @@ const varsResolver$7 = createVarsResolver((_, { order, size: size2, lineClamp, t
|
|
|
24857
24857
|
};
|
|
24858
24858
|
});
|
|
24859
24859
|
const Title = factory((_props, ref) => {
|
|
24860
|
-
const props = useProps("Title", defaultProps$
|
|
24860
|
+
const props = useProps("Title", defaultProps$f, _props);
|
|
24861
24861
|
const {
|
|
24862
24862
|
classNames: classNames2,
|
|
24863
24863
|
className,
|
|
@@ -25018,7 +25018,7 @@ const NotificationContainer = React.forwardRef(
|
|
|
25018
25018
|
NotificationContainer.displayName = "@mantine/notifications/NotificationContainer";
|
|
25019
25019
|
var classes$a = { "root": "m_b37d9ac7", "notification": "m_5ed0edd0" };
|
|
25020
25020
|
const Transition = Transition$2;
|
|
25021
|
-
const defaultProps$
|
|
25021
|
+
const defaultProps$e = {
|
|
25022
25022
|
position: "bottom-right",
|
|
25023
25023
|
autoClose: 4e3,
|
|
25024
25024
|
transitionDuration: 250,
|
|
@@ -25036,7 +25036,7 @@ const varsResolver$6 = createVarsResolver((_, { zIndex, containerWidth }) => ({
|
|
|
25036
25036
|
}
|
|
25037
25037
|
}));
|
|
25038
25038
|
const Notifications = factory((_props, ref) => {
|
|
25039
|
-
const props = useProps("Notifications", defaultProps$
|
|
25039
|
+
const props = useProps("Notifications", defaultProps$e, _props);
|
|
25040
25040
|
const {
|
|
25041
25041
|
classNames: classNames2,
|
|
25042
25042
|
className,
|
|
@@ -41042,7 +41042,7 @@ function getWeekNumber(week) {
|
|
|
41042
41042
|
return dayjs(monday).isoWeek();
|
|
41043
41043
|
}
|
|
41044
41044
|
var classes$7 = { "month": "m_cc9820d3", "monthCell": "m_8f457cd5", "weekNumber": "m_6cff9dea" };
|
|
41045
|
-
const defaultProps$
|
|
41045
|
+
const defaultProps$d = {
|
|
41046
41046
|
withCellSpacing: true
|
|
41047
41047
|
};
|
|
41048
41048
|
const varsResolver$3 = createVarsResolver((_, { size: size2 }) => ({
|
|
@@ -41052,7 +41052,7 @@ const varsResolver$3 = createVarsResolver((_, { size: size2 }) => ({
|
|
|
41052
41052
|
}
|
|
41053
41053
|
}));
|
|
41054
41054
|
const Month = factory((_props, ref) => {
|
|
41055
|
-
const props = useProps("Month", defaultProps$
|
|
41055
|
+
const props = useProps("Month", defaultProps$d, _props);
|
|
41056
41056
|
const {
|
|
41057
41057
|
classNames: classNames2,
|
|
41058
41058
|
className,
|
|
@@ -41309,12 +41309,12 @@ function getYearsData(decade) {
|
|
|
41309
41309
|
return results;
|
|
41310
41310
|
}
|
|
41311
41311
|
var classes$5 = { "yearsList": "m_9206547b", "yearsListCell": "m_c5a19c7d" };
|
|
41312
|
-
const defaultProps$
|
|
41312
|
+
const defaultProps$c = {
|
|
41313
41313
|
yearsListFormat: "YYYY",
|
|
41314
41314
|
withCellSpacing: true
|
|
41315
41315
|
};
|
|
41316
41316
|
const YearsList = factory((_props, ref) => {
|
|
41317
|
-
const props = useProps("YearsList", defaultProps$
|
|
41317
|
+
const props = useProps("YearsList", defaultProps$c, _props);
|
|
41318
41318
|
const {
|
|
41319
41319
|
classNames: classNames2,
|
|
41320
41320
|
className,
|
|
@@ -41458,12 +41458,12 @@ function getMonthsData(year) {
|
|
|
41458
41458
|
return results;
|
|
41459
41459
|
}
|
|
41460
41460
|
var classes$4 = { "monthsList": "m_2a6c32d", "monthsListCell": "m_fe27622f" };
|
|
41461
|
-
const defaultProps$
|
|
41461
|
+
const defaultProps$b = {
|
|
41462
41462
|
monthsListFormat: "MMM",
|
|
41463
41463
|
withCellSpacing: true
|
|
41464
41464
|
};
|
|
41465
41465
|
const MonthsList = factory((_props, ref) => {
|
|
41466
|
-
const props = useProps("MonthsList", defaultProps$
|
|
41466
|
+
const props = useProps("MonthsList", defaultProps$b, _props);
|
|
41467
41467
|
const {
|
|
41468
41468
|
classNames: classNames2,
|
|
41469
41469
|
className,
|
|
@@ -41569,7 +41569,7 @@ const MonthsList = factory((_props, ref) => {
|
|
|
41569
41569
|
MonthsList.classes = classes$4;
|
|
41570
41570
|
MonthsList.displayName = "@mantine/dates/MonthsList";
|
|
41571
41571
|
var classes$3 = { "calendarHeader": "m_730a79ed", "calendarHeaderLevel": "m_f6645d97", "calendarHeaderControl": "m_2351eeb0", "calendarHeaderControlIcon": "m_367dc749" };
|
|
41572
|
-
const defaultProps$
|
|
41572
|
+
const defaultProps$a = {
|
|
41573
41573
|
hasNextLevel: true,
|
|
41574
41574
|
withNext: true,
|
|
41575
41575
|
withPrevious: true,
|
|
@@ -41582,7 +41582,7 @@ const varsResolver$1 = createVarsResolver((_, { size: size2 }) => ({
|
|
|
41582
41582
|
}
|
|
41583
41583
|
}));
|
|
41584
41584
|
const CalendarHeader = factory((_props, ref) => {
|
|
41585
|
-
const props = useProps("CalendarHeader", defaultProps$
|
|
41585
|
+
const props = useProps("CalendarHeader", defaultProps$a, _props);
|
|
41586
41586
|
const {
|
|
41587
41587
|
classNames: classNames2,
|
|
41588
41588
|
className,
|
|
@@ -41711,11 +41711,11 @@ function getDecadeRange(decade) {
|
|
|
41711
41711
|
const years = getYearsData(decade);
|
|
41712
41712
|
return [years[0][0], years[3][0]];
|
|
41713
41713
|
}
|
|
41714
|
-
const defaultProps$
|
|
41714
|
+
const defaultProps$9 = {
|
|
41715
41715
|
decadeLabelFormat: "YYYY"
|
|
41716
41716
|
};
|
|
41717
41717
|
const DecadeLevel = factory((_props, ref) => {
|
|
41718
|
-
const props = useProps("DecadeLevel", defaultProps$
|
|
41718
|
+
const props = useProps("DecadeLevel", defaultProps$9, _props);
|
|
41719
41719
|
const {
|
|
41720
41720
|
// YearsList settings
|
|
41721
41721
|
decade,
|
|
@@ -41816,11 +41816,11 @@ const DecadeLevel = factory((_props, ref) => {
|
|
|
41816
41816
|
});
|
|
41817
41817
|
DecadeLevel.classes = { ...YearsList.classes, ...CalendarHeader.classes };
|
|
41818
41818
|
DecadeLevel.displayName = "@mantine/dates/DecadeLevel";
|
|
41819
|
-
const defaultProps$
|
|
41819
|
+
const defaultProps$8 = {
|
|
41820
41820
|
yearLabelFormat: "YYYY"
|
|
41821
41821
|
};
|
|
41822
41822
|
const YearLevel = factory((_props, ref) => {
|
|
41823
|
-
const props = useProps("YearLevel", defaultProps$
|
|
41823
|
+
const props = useProps("YearLevel", defaultProps$8, _props);
|
|
41824
41824
|
const {
|
|
41825
41825
|
// MonthsList settings
|
|
41826
41826
|
year,
|
|
@@ -41919,11 +41919,11 @@ const YearLevel = factory((_props, ref) => {
|
|
|
41919
41919
|
});
|
|
41920
41920
|
YearLevel.classes = { ...CalendarHeader.classes, ...MonthsList.classes };
|
|
41921
41921
|
YearLevel.displayName = "@mantine/dates/YearLevel";
|
|
41922
|
-
const defaultProps$
|
|
41922
|
+
const defaultProps$7 = {
|
|
41923
41923
|
monthLabelFormat: "MMMM YYYY"
|
|
41924
41924
|
};
|
|
41925
41925
|
const MonthLevel = factory((_props, ref) => {
|
|
41926
|
-
const props = useProps("MonthLevel", defaultProps$
|
|
41926
|
+
const props = useProps("MonthLevel", defaultProps$7, _props);
|
|
41927
41927
|
const {
|
|
41928
41928
|
// Month settings
|
|
41929
41929
|
month,
|
|
@@ -42073,11 +42073,11 @@ const LevelsGroup = factory((_props, ref) => {
|
|
|
42073
42073
|
});
|
|
42074
42074
|
LevelsGroup.classes = classes$2;
|
|
42075
42075
|
LevelsGroup.displayName = "@mantine/dates/LevelsGroup";
|
|
42076
|
-
const defaultProps$
|
|
42076
|
+
const defaultProps$6 = {
|
|
42077
42077
|
numberOfColumns: 1
|
|
42078
42078
|
};
|
|
42079
42079
|
const DecadeLevelGroup = factory((_props, ref) => {
|
|
42080
|
-
const props = useProps("DecadeLevelGroup", defaultProps$
|
|
42080
|
+
const props = useProps("DecadeLevelGroup", defaultProps$6, _props);
|
|
42081
42081
|
const {
|
|
42082
42082
|
// DecadeLevel settings
|
|
42083
42083
|
decade,
|
|
@@ -42187,11 +42187,11 @@ const DecadeLevelGroup = factory((_props, ref) => {
|
|
|
42187
42187
|
});
|
|
42188
42188
|
DecadeLevelGroup.classes = { ...LevelsGroup.classes, ...DecadeLevel.classes };
|
|
42189
42189
|
DecadeLevelGroup.displayName = "@mantine/dates/DecadeLevelGroup";
|
|
42190
|
-
const defaultProps$
|
|
42190
|
+
const defaultProps$5 = {
|
|
42191
42191
|
numberOfColumns: 1
|
|
42192
42192
|
};
|
|
42193
42193
|
const YearLevelGroup = factory((_props, ref) => {
|
|
42194
|
-
const props = useProps("YearLevelGroup", defaultProps$
|
|
42194
|
+
const props = useProps("YearLevelGroup", defaultProps$5, _props);
|
|
42195
42195
|
const {
|
|
42196
42196
|
// YearLevel settings
|
|
42197
42197
|
year,
|
|
@@ -42305,11 +42305,11 @@ const YearLevelGroup = factory((_props, ref) => {
|
|
|
42305
42305
|
});
|
|
42306
42306
|
YearLevelGroup.classes = { ...YearLevel.classes, ...LevelsGroup.classes };
|
|
42307
42307
|
YearLevelGroup.displayName = "@mantine/dates/YearLevelGroup";
|
|
42308
|
-
const defaultProps$
|
|
42308
|
+
const defaultProps$4 = {
|
|
42309
42309
|
numberOfColumns: 1
|
|
42310
42310
|
};
|
|
42311
42311
|
const MonthLevelGroup = factory((_props, ref) => {
|
|
42312
|
-
const props = useProps("MonthLevelGroup", defaultProps$
|
|
42312
|
+
const props = useProps("MonthLevelGroup", defaultProps$4, _props);
|
|
42313
42313
|
const {
|
|
42314
42314
|
// Month settings
|
|
42315
42315
|
month,
|
|
@@ -42603,7 +42603,7 @@ function clampLevel(level, minLevel, maxLevel) {
|
|
|
42603
42603
|
)
|
|
42604
42604
|
);
|
|
42605
42605
|
}
|
|
42606
|
-
const defaultProps$
|
|
42606
|
+
const defaultProps$3 = {
|
|
42607
42607
|
maxLevel: "decade",
|
|
42608
42608
|
minLevel: "month",
|
|
42609
42609
|
__updateDateOnYearSelect: true,
|
|
@@ -42611,7 +42611,7 @@ const defaultProps$2 = {
|
|
|
42611
42611
|
enableKeyboardNavigation: true
|
|
42612
42612
|
};
|
|
42613
42613
|
const Calendar = factory((_props, ref) => {
|
|
42614
|
-
const props = useProps("Calendar", defaultProps$
|
|
42614
|
+
const props = useProps("Calendar", defaultProps$3, _props);
|
|
42615
42615
|
const {
|
|
42616
42616
|
// CalendarLevel props
|
|
42617
42617
|
vars,
|
|
@@ -43199,14 +43199,14 @@ const varsResolver = createVarsResolver((_, { size: size2 }) => ({
|
|
|
43199
43199
|
"--preset-font-size": getFontSize(size2)
|
|
43200
43200
|
}
|
|
43201
43201
|
}));
|
|
43202
|
-
const defaultProps$
|
|
43202
|
+
const defaultProps$2 = {
|
|
43203
43203
|
type: "default",
|
|
43204
43204
|
defaultLevel: "month",
|
|
43205
43205
|
numberOfColumns: 1,
|
|
43206
43206
|
size: "sm"
|
|
43207
43207
|
};
|
|
43208
43208
|
const DatePicker$1 = factory((_props, ref) => {
|
|
43209
|
-
const props = useProps("DatePicker", defaultProps$
|
|
43209
|
+
const props = useProps("DatePicker", defaultProps$2, _props);
|
|
43210
43210
|
const {
|
|
43211
43211
|
allowDeselect,
|
|
43212
43212
|
allowSingleDateInRange,
|
|
@@ -43330,6 +43330,249 @@ const DatePicker$1 = factory((_props, ref) => {
|
|
|
43330
43330
|
});
|
|
43331
43331
|
DatePicker$1.classes = Calendar.classes;
|
|
43332
43332
|
DatePicker$1.displayName = "@mantine/dates/DatePicker";
|
|
43333
|
+
function dateStringParser(dateString) {
|
|
43334
|
+
if (dateString === null) {
|
|
43335
|
+
return null;
|
|
43336
|
+
}
|
|
43337
|
+
const date2 = new Date(dateString);
|
|
43338
|
+
if (Number.isNaN(date2.getTime()) || !dateString) {
|
|
43339
|
+
return null;
|
|
43340
|
+
}
|
|
43341
|
+
return dayjs(date2).format("YYYY-MM-DD");
|
|
43342
|
+
}
|
|
43343
|
+
function isDateValid({ date: date2, maxDate, minDate }) {
|
|
43344
|
+
if (date2 == null) {
|
|
43345
|
+
return false;
|
|
43346
|
+
}
|
|
43347
|
+
if (Number.isNaN(new Date(date2).getTime())) {
|
|
43348
|
+
return false;
|
|
43349
|
+
}
|
|
43350
|
+
if (maxDate && dayjs(date2).isAfter(maxDate, "date")) {
|
|
43351
|
+
return false;
|
|
43352
|
+
}
|
|
43353
|
+
if (minDate && dayjs(date2).isBefore(minDate, "date")) {
|
|
43354
|
+
return false;
|
|
43355
|
+
}
|
|
43356
|
+
return true;
|
|
43357
|
+
}
|
|
43358
|
+
const defaultProps$1 = {
|
|
43359
|
+
valueFormat: "MMMM D, YYYY",
|
|
43360
|
+
fixOnBlur: true,
|
|
43361
|
+
size: "sm"
|
|
43362
|
+
};
|
|
43363
|
+
const DateInput = factory((_props, ref) => {
|
|
43364
|
+
const props = useInputProps("DateInput", defaultProps$1, _props);
|
|
43365
|
+
const {
|
|
43366
|
+
inputProps,
|
|
43367
|
+
wrapperProps,
|
|
43368
|
+
value,
|
|
43369
|
+
defaultValue,
|
|
43370
|
+
onChange,
|
|
43371
|
+
clearable,
|
|
43372
|
+
clearButtonProps,
|
|
43373
|
+
popoverProps,
|
|
43374
|
+
getDayProps,
|
|
43375
|
+
locale,
|
|
43376
|
+
valueFormat,
|
|
43377
|
+
dateParser,
|
|
43378
|
+
minDate,
|
|
43379
|
+
maxDate,
|
|
43380
|
+
fixOnBlur,
|
|
43381
|
+
onFocus,
|
|
43382
|
+
onBlur,
|
|
43383
|
+
onClick,
|
|
43384
|
+
onKeyDown,
|
|
43385
|
+
readOnly,
|
|
43386
|
+
name,
|
|
43387
|
+
form,
|
|
43388
|
+
rightSection,
|
|
43389
|
+
unstyled,
|
|
43390
|
+
classNames: classNames2,
|
|
43391
|
+
styles,
|
|
43392
|
+
allowDeselect,
|
|
43393
|
+
date: date2,
|
|
43394
|
+
defaultDate,
|
|
43395
|
+
onDateChange,
|
|
43396
|
+
getMonthControlProps,
|
|
43397
|
+
getYearControlProps,
|
|
43398
|
+
disabled,
|
|
43399
|
+
...rest
|
|
43400
|
+
} = props;
|
|
43401
|
+
const _wrapperRef = React.useRef(null);
|
|
43402
|
+
const _dropdownRef = React.useRef(null);
|
|
43403
|
+
const [dropdownOpened, setDropdownOpened] = React.useState(false);
|
|
43404
|
+
const { calendarProps, others } = pickCalendarProps(rest);
|
|
43405
|
+
const ctx = useDatesContext();
|
|
43406
|
+
const defaultDateParser = (val) => {
|
|
43407
|
+
const parsedDate = dayjs(val, valueFormat, ctx.getLocale(locale)).toDate();
|
|
43408
|
+
return Number.isNaN(parsedDate.getTime()) ? dateStringParser(val) : dayjs(parsedDate).format("YYYY-MM-DD");
|
|
43409
|
+
};
|
|
43410
|
+
const _dateParser = dateParser || defaultDateParser;
|
|
43411
|
+
const _allowDeselect = allowDeselect !== void 0 ? allowDeselect : clearable;
|
|
43412
|
+
const formatValue2 = (val) => val ? dayjs(val).locale(ctx.getLocale(locale)).format(valueFormat) : "";
|
|
43413
|
+
const [_value, setValue, controlled] = useUncontrolledDates({
|
|
43414
|
+
type: "default",
|
|
43415
|
+
value,
|
|
43416
|
+
defaultValue,
|
|
43417
|
+
onChange
|
|
43418
|
+
});
|
|
43419
|
+
const [_date2, setDate] = useUncontrolledDates({
|
|
43420
|
+
type: "default",
|
|
43421
|
+
value: date2,
|
|
43422
|
+
defaultValue: defaultValue || defaultDate,
|
|
43423
|
+
onChange: onDateChange
|
|
43424
|
+
});
|
|
43425
|
+
React.useEffect(() => {
|
|
43426
|
+
if (controlled && value !== null) {
|
|
43427
|
+
setDate(value);
|
|
43428
|
+
}
|
|
43429
|
+
}, [controlled, value]);
|
|
43430
|
+
const [inputValue, setInputValue] = React.useState(formatValue2(_value));
|
|
43431
|
+
React.useEffect(() => {
|
|
43432
|
+
setInputValue(formatValue2(_value));
|
|
43433
|
+
}, [ctx.getLocale(locale)]);
|
|
43434
|
+
const handleInputChange = (event) => {
|
|
43435
|
+
const val = event.currentTarget.value;
|
|
43436
|
+
setInputValue(val);
|
|
43437
|
+
setDropdownOpened(true);
|
|
43438
|
+
if (val.trim() === "" && (allowDeselect || clearable)) {
|
|
43439
|
+
setValue(null);
|
|
43440
|
+
} else {
|
|
43441
|
+
const dateValue = _dateParser(val);
|
|
43442
|
+
if (dateValue && isDateValid({ date: dateValue, minDate, maxDate })) {
|
|
43443
|
+
setValue(dateValue);
|
|
43444
|
+
setDate(dateValue);
|
|
43445
|
+
}
|
|
43446
|
+
}
|
|
43447
|
+
};
|
|
43448
|
+
const handleInputBlur = (event) => {
|
|
43449
|
+
onBlur?.(event);
|
|
43450
|
+
setDropdownOpened(false);
|
|
43451
|
+
fixOnBlur && setInputValue(formatValue2(_value));
|
|
43452
|
+
};
|
|
43453
|
+
const handleInputFocus = (event) => {
|
|
43454
|
+
onFocus?.(event);
|
|
43455
|
+
setDropdownOpened(true);
|
|
43456
|
+
};
|
|
43457
|
+
const handleInputClick = (event) => {
|
|
43458
|
+
onClick?.(event);
|
|
43459
|
+
setDropdownOpened(true);
|
|
43460
|
+
};
|
|
43461
|
+
const handleInputKeyDown = (event) => {
|
|
43462
|
+
if (event.key === "Escape") {
|
|
43463
|
+
setDropdownOpened(false);
|
|
43464
|
+
}
|
|
43465
|
+
onKeyDown?.(event);
|
|
43466
|
+
};
|
|
43467
|
+
const _getDayProps = (day) => ({
|
|
43468
|
+
...getDayProps?.(day),
|
|
43469
|
+
selected: dayjs(_value).isSame(day, "day"),
|
|
43470
|
+
onClick: (event) => {
|
|
43471
|
+
getDayProps?.(day).onClick?.(event);
|
|
43472
|
+
const val = _allowDeselect ? dayjs(_value).isSame(day, "day") ? null : day : day;
|
|
43473
|
+
setValue(val);
|
|
43474
|
+
!controlled && val && setInputValue(formatValue2(val));
|
|
43475
|
+
setDropdownOpened(false);
|
|
43476
|
+
}
|
|
43477
|
+
});
|
|
43478
|
+
const clearButton = /* @__PURE__ */ jsxRuntime.jsx(
|
|
43479
|
+
Input.ClearButton,
|
|
43480
|
+
{
|
|
43481
|
+
onClick: () => {
|
|
43482
|
+
setValue(null);
|
|
43483
|
+
!controlled && setInputValue("");
|
|
43484
|
+
setDropdownOpened(false);
|
|
43485
|
+
},
|
|
43486
|
+
unstyled,
|
|
43487
|
+
...clearButtonProps
|
|
43488
|
+
}
|
|
43489
|
+
);
|
|
43490
|
+
const _clearable = clearable && !!_value && !readOnly && !disabled;
|
|
43491
|
+
useDidUpdate(() => {
|
|
43492
|
+
_value !== void 0 && !dropdownOpened && setInputValue(formatValue2(_value));
|
|
43493
|
+
}, [_value]);
|
|
43494
|
+
useClickOutside(() => setDropdownOpened(false), void 0, [
|
|
43495
|
+
_wrapperRef.current,
|
|
43496
|
+
_dropdownRef.current
|
|
43497
|
+
]);
|
|
43498
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
43499
|
+
/* @__PURE__ */ jsxRuntime.jsx(Input.Wrapper, { ...wrapperProps, __staticSelector: "DateInput", ref: _wrapperRef, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
43500
|
+
Popover,
|
|
43501
|
+
{
|
|
43502
|
+
opened: dropdownOpened,
|
|
43503
|
+
trapFocus: false,
|
|
43504
|
+
position: "bottom-start",
|
|
43505
|
+
disabled: readOnly || disabled,
|
|
43506
|
+
withRoles: false,
|
|
43507
|
+
unstyled,
|
|
43508
|
+
...popoverProps,
|
|
43509
|
+
children: [
|
|
43510
|
+
/* @__PURE__ */ jsxRuntime.jsx(Popover.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
43511
|
+
Input,
|
|
43512
|
+
{
|
|
43513
|
+
"data-dates-input": true,
|
|
43514
|
+
"data-read-only": readOnly || void 0,
|
|
43515
|
+
autoComplete: "off",
|
|
43516
|
+
ref,
|
|
43517
|
+
value: inputValue,
|
|
43518
|
+
onChange: handleInputChange,
|
|
43519
|
+
onBlur: handleInputBlur,
|
|
43520
|
+
onFocus: handleInputFocus,
|
|
43521
|
+
onClick: handleInputClick,
|
|
43522
|
+
onKeyDown: handleInputKeyDown,
|
|
43523
|
+
readOnly,
|
|
43524
|
+
rightSection,
|
|
43525
|
+
__clearSection: clearButton,
|
|
43526
|
+
__clearable: _clearable,
|
|
43527
|
+
...inputProps,
|
|
43528
|
+
...others,
|
|
43529
|
+
disabled,
|
|
43530
|
+
__staticSelector: "DateInput"
|
|
43531
|
+
}
|
|
43532
|
+
) }),
|
|
43533
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43534
|
+
Popover.Dropdown,
|
|
43535
|
+
{
|
|
43536
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
43537
|
+
"data-dates-dropdown": true,
|
|
43538
|
+
ref: _dropdownRef,
|
|
43539
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
43540
|
+
Calendar,
|
|
43541
|
+
{
|
|
43542
|
+
__staticSelector: "DateInput",
|
|
43543
|
+
...calendarProps,
|
|
43544
|
+
classNames: classNames2,
|
|
43545
|
+
styles,
|
|
43546
|
+
unstyled,
|
|
43547
|
+
__preventFocus: true,
|
|
43548
|
+
minDate,
|
|
43549
|
+
maxDate,
|
|
43550
|
+
locale,
|
|
43551
|
+
getDayProps: _getDayProps,
|
|
43552
|
+
size: inputProps.size,
|
|
43553
|
+
date: _date2,
|
|
43554
|
+
onDateChange: setDate,
|
|
43555
|
+
getMonthControlProps: (date22) => ({
|
|
43556
|
+
selected: typeof _value === "string" ? isSameMonth(date22, _value) : false,
|
|
43557
|
+
...getMonthControlProps?.(date22)
|
|
43558
|
+
}),
|
|
43559
|
+
getYearControlProps: (date22) => ({
|
|
43560
|
+
selected: typeof _value === "string" ? dayjs(date22).isSame(_value, "year") : false,
|
|
43561
|
+
...getYearControlProps?.(date22)
|
|
43562
|
+
}),
|
|
43563
|
+
attributes: wrapperProps.attributes
|
|
43564
|
+
}
|
|
43565
|
+
)
|
|
43566
|
+
}
|
|
43567
|
+
)
|
|
43568
|
+
]
|
|
43569
|
+
}
|
|
43570
|
+
) }),
|
|
43571
|
+
/* @__PURE__ */ jsxRuntime.jsx(HiddenDatesInput, { name, form, value: _value, type: "default" })
|
|
43572
|
+
] });
|
|
43573
|
+
});
|
|
43574
|
+
DateInput.classes = { ...Input.classes, ...Calendar.classes };
|
|
43575
|
+
DateInput.displayName = "@mantine/dates/DateInput";
|
|
43333
43576
|
function useDatesInput({
|
|
43334
43577
|
type,
|
|
43335
43578
|
value,
|
|
@@ -47861,6 +48104,138 @@ const Menu = Object.assign(MenuBase, {
|
|
|
47861
48104
|
Label: Menu$1.Label,
|
|
47862
48105
|
Divider: Menu$1.Divider
|
|
47863
48106
|
});
|
|
48107
|
+
var customParseFormat$2 = { exports: {} };
|
|
48108
|
+
var customParseFormat$1 = customParseFormat$2.exports;
|
|
48109
|
+
var hasRequiredCustomParseFormat;
|
|
48110
|
+
function requireCustomParseFormat() {
|
|
48111
|
+
if (hasRequiredCustomParseFormat) return customParseFormat$2.exports;
|
|
48112
|
+
hasRequiredCustomParseFormat = 1;
|
|
48113
|
+
(function(module2, exports$1) {
|
|
48114
|
+
!(function(e, t) {
|
|
48115
|
+
module2.exports = t();
|
|
48116
|
+
})(customParseFormat$1, (function() {
|
|
48117
|
+
var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r2 = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
|
|
48118
|
+
return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
|
|
48119
|
+
};
|
|
48120
|
+
var f = function(e2) {
|
|
48121
|
+
return function(t2) {
|
|
48122
|
+
this[e2] = +t2;
|
|
48123
|
+
};
|
|
48124
|
+
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
|
|
48125
|
+
(this.zone || (this.zone = {})).offset = (function(e3) {
|
|
48126
|
+
if (!e3) return 0;
|
|
48127
|
+
if ("Z" === e3) return 0;
|
|
48128
|
+
var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
|
|
48129
|
+
return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
|
|
48130
|
+
})(e2);
|
|
48131
|
+
}], u = function(e2) {
|
|
48132
|
+
var t2 = s[e2];
|
|
48133
|
+
return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
|
|
48134
|
+
}, d = function(e2, t2) {
|
|
48135
|
+
var n2, r3 = s.meridiem;
|
|
48136
|
+
if (r3) {
|
|
48137
|
+
for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r3(i2, 0, t2)) > -1) {
|
|
48138
|
+
n2 = i2 > 12;
|
|
48139
|
+
break;
|
|
48140
|
+
}
|
|
48141
|
+
} else n2 = e2 === (t2 ? "pm" : "PM");
|
|
48142
|
+
return n2;
|
|
48143
|
+
}, c = { A: [o, function(e2) {
|
|
48144
|
+
this.afternoon = d(e2, false);
|
|
48145
|
+
}], a: [o, function(e2) {
|
|
48146
|
+
this.afternoon = d(e2, true);
|
|
48147
|
+
}], Q: [n, function(e2) {
|
|
48148
|
+
this.month = 3 * (e2 - 1) + 1;
|
|
48149
|
+
}], S: [n, function(e2) {
|
|
48150
|
+
this.milliseconds = 100 * +e2;
|
|
48151
|
+
}], SS: [r2, function(e2) {
|
|
48152
|
+
this.milliseconds = 10 * +e2;
|
|
48153
|
+
}], SSS: [/\d{3}/, function(e2) {
|
|
48154
|
+
this.milliseconds = +e2;
|
|
48155
|
+
}], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r2, f("day")], Do: [o, function(e2) {
|
|
48156
|
+
var t2 = s.ordinal, n2 = e2.match(/\d+/);
|
|
48157
|
+
if (this.day = n2[0], t2) for (var r3 = 1; r3 <= 31; r3 += 1) t2(r3).replace(/\[|\]/g, "") === e2 && (this.day = r3);
|
|
48158
|
+
}], w: [i, f("week")], ww: [r2, f("week")], M: [i, f("month")], MM: [r2, f("month")], MMM: [o, function(e2) {
|
|
48159
|
+
var t2 = u("months"), n2 = (u("monthsShort") || t2.map((function(e3) {
|
|
48160
|
+
return e3.slice(0, 3);
|
|
48161
|
+
}))).indexOf(e2) + 1;
|
|
48162
|
+
if (n2 < 1) throw new Error();
|
|
48163
|
+
this.month = n2 % 12 || n2;
|
|
48164
|
+
}], MMMM: [o, function(e2) {
|
|
48165
|
+
var t2 = u("months").indexOf(e2) + 1;
|
|
48166
|
+
if (t2 < 1) throw new Error();
|
|
48167
|
+
this.month = t2 % 12 || t2;
|
|
48168
|
+
}], Y: [/[+-]?\d+/, f("year")], YY: [r2, function(e2) {
|
|
48169
|
+
this.year = a(e2);
|
|
48170
|
+
}], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
|
|
48171
|
+
function l(n2) {
|
|
48172
|
+
var r3, i2;
|
|
48173
|
+
r3 = n2, i2 = s && s.formats;
|
|
48174
|
+
for (var o2 = (n2 = r3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t2, n3, r4) {
|
|
48175
|
+
var o3 = r4 && r4.toUpperCase();
|
|
48176
|
+
return n3 || i2[r4] || e[r4] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e2, t3, n4) {
|
|
48177
|
+
return t3 || n4.slice(1);
|
|
48178
|
+
}));
|
|
48179
|
+
}))).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
|
|
48180
|
+
var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
|
|
48181
|
+
o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
|
|
48182
|
+
}
|
|
48183
|
+
return function(e2) {
|
|
48184
|
+
for (var t2 = {}, n3 = 0, r4 = 0; n3 < a2; n3 += 1) {
|
|
48185
|
+
var i3 = o2[n3];
|
|
48186
|
+
if ("string" == typeof i3) r4 += i3.length;
|
|
48187
|
+
else {
|
|
48188
|
+
var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r4), u3 = s2.exec(h3)[0];
|
|
48189
|
+
f3.call(t2, u3), e2 = e2.replace(u3, "");
|
|
48190
|
+
}
|
|
48191
|
+
}
|
|
48192
|
+
return (function(e3) {
|
|
48193
|
+
var t3 = e3.afternoon;
|
|
48194
|
+
if (void 0 !== t3) {
|
|
48195
|
+
var n4 = e3.hours;
|
|
48196
|
+
t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
|
|
48197
|
+
}
|
|
48198
|
+
})(t2), t2;
|
|
48199
|
+
};
|
|
48200
|
+
}
|
|
48201
|
+
return function(e2, t2, n2) {
|
|
48202
|
+
n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
|
|
48203
|
+
var r3 = t2.prototype, i2 = r3.parse;
|
|
48204
|
+
r3.parse = function(e3) {
|
|
48205
|
+
var t3 = e3.date, r4 = e3.utc, o2 = e3.args;
|
|
48206
|
+
this.$u = r4;
|
|
48207
|
+
var a2 = o2[1];
|
|
48208
|
+
if ("string" == typeof a2) {
|
|
48209
|
+
var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
|
|
48210
|
+
h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = (function(e4, t4, n3, r5) {
|
|
48211
|
+
try {
|
|
48212
|
+
if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
|
|
48213
|
+
var i3 = l(t4)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
|
|
48214
|
+
o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
|
|
48215
|
+
var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
|
|
48216
|
+
return c3 ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m2 && (D = r5(D).week(m2).toDate()), D);
|
|
48217
|
+
} catch (e5) {
|
|
48218
|
+
return /* @__PURE__ */ new Date("");
|
|
48219
|
+
}
|
|
48220
|
+
})(t3, a2, r4, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
48221
|
+
} else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
|
|
48222
|
+
o2[1] = a2[m - 1];
|
|
48223
|
+
var M = n2.apply(this, o2);
|
|
48224
|
+
if (M.isValid()) {
|
|
48225
|
+
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
48226
|
+
break;
|
|
48227
|
+
}
|
|
48228
|
+
m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
|
|
48229
|
+
}
|
|
48230
|
+
else i2.call(this, e3);
|
|
48231
|
+
};
|
|
48232
|
+
};
|
|
48233
|
+
}));
|
|
48234
|
+
})(customParseFormat$2);
|
|
48235
|
+
return customParseFormat$2.exports;
|
|
48236
|
+
}
|
|
48237
|
+
var customParseFormatExports = requireCustomParseFormat();
|
|
48238
|
+
const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
|
|
47864
48239
|
const Switch = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Switch$1, { color: muiIcons.colors.primary, ...props, ref }));
|
|
47865
48240
|
Switch.displayName = "Switch";
|
|
47866
48241
|
const Textarea = React.forwardRef(
|
|
@@ -47899,6 +48274,7 @@ function Tooltip({
|
|
|
47899
48274
|
}
|
|
47900
48275
|
);
|
|
47901
48276
|
}
|
|
48277
|
+
dayjs.extend(customParseFormat);
|
|
47902
48278
|
const ChevronIcon = ({ direction }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
47903
48279
|
"svg",
|
|
47904
48280
|
{
|
|
@@ -49075,10 +49451,10 @@ const DatePicker = ({
|
|
|
49075
49451
|
error: textFieldError,
|
|
49076
49452
|
helperText,
|
|
49077
49453
|
onBlur: textFieldOnBlur,
|
|
49454
|
+
required: required2,
|
|
49078
49455
|
size: size2,
|
|
49079
49456
|
style,
|
|
49080
49457
|
sx: textFieldSx,
|
|
49081
|
-
variant: _variant,
|
|
49082
49458
|
...textFieldProps
|
|
49083
49459
|
} = slotProps?.textField || {};
|
|
49084
49460
|
const mantineSize = mapCompatSize(size2);
|
|
@@ -49086,26 +49462,59 @@ const DatePicker = ({
|
|
|
49086
49462
|
const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue ?? null);
|
|
49087
49463
|
const resolvedValue = isControlled ? value : uncontrolledValue;
|
|
49088
49464
|
const dateValue = resolvedValue?.format ? resolvedValue.format("YYYY-MM-DD") : resolvedValue || "";
|
|
49465
|
+
const latestDateRef = React.useRef(dateValue || null);
|
|
49466
|
+
latestDateRef.current = dateValue || null;
|
|
49467
|
+
const normalizePickerValue = (next) => {
|
|
49468
|
+
if (!next) return null;
|
|
49469
|
+
if (next instanceof Date) return dayjs(next).format("YYYY-MM-DD");
|
|
49470
|
+
return next;
|
|
49471
|
+
};
|
|
49089
49472
|
const toDateValue = (next) => next ? dayjs(next) : null;
|
|
49473
|
+
const emitChange = (next) => {
|
|
49474
|
+
const iso = normalizePickerValue(next);
|
|
49475
|
+
latestDateRef.current = iso;
|
|
49476
|
+
const nextValue = toDateValue(iso);
|
|
49477
|
+
if (!isControlled) setUncontrolledValue(nextValue);
|
|
49478
|
+
onChange?.(nextValue);
|
|
49479
|
+
};
|
|
49480
|
+
const parseTypedDate = (raw) => {
|
|
49481
|
+
const trimmed = raw.trim();
|
|
49482
|
+
if (!trimmed) return null;
|
|
49483
|
+
const parsed = dayjs(trimmed, ["MM/DD/YYYY", "M/D/YYYY", "YYYY-MM-DD"], true);
|
|
49484
|
+
return parsed.isValid() ? parsed : null;
|
|
49485
|
+
};
|
|
49090
49486
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
49091
|
-
|
|
49487
|
+
DateInput,
|
|
49092
49488
|
{
|
|
49093
49489
|
label: label || textFieldProps.label,
|
|
49094
|
-
|
|
49095
|
-
|
|
49096
|
-
onChange: (event) => {
|
|
49097
|
-
const next = event.currentTarget.value;
|
|
49098
|
-
const nextValue = toDateValue(next);
|
|
49099
|
-
if (!isControlled) setUncontrolledValue(nextValue);
|
|
49100
|
-
onChange?.(nextValue);
|
|
49101
|
-
},
|
|
49490
|
+
value: dateValue || null,
|
|
49491
|
+
onChange: (next) => emitChange(next),
|
|
49102
49492
|
onBlur: (event) => {
|
|
49103
49493
|
textFieldOnBlur?.(event);
|
|
49104
|
-
|
|
49494
|
+
const raw = event.currentTarget.value ?? "";
|
|
49495
|
+
const parsed = parseTypedDate(raw);
|
|
49496
|
+
if (!raw.trim()) {
|
|
49497
|
+
emitChange(null);
|
|
49498
|
+
onAccept?.(null);
|
|
49499
|
+
return;
|
|
49500
|
+
}
|
|
49501
|
+
if (parsed) {
|
|
49502
|
+
emitChange(parsed.format("YYYY-MM-DD"));
|
|
49503
|
+
onAccept?.(parsed);
|
|
49504
|
+
return;
|
|
49505
|
+
}
|
|
49506
|
+
onAccept?.(toDateValue(latestDateRef.current));
|
|
49105
49507
|
},
|
|
49508
|
+
valueFormat: "MM/DD/YYYY",
|
|
49509
|
+
placeholder: "MM/DD/YYYY",
|
|
49106
49510
|
description: textFieldError ? void 0 : helperText,
|
|
49107
49511
|
error: textFieldError ? helperText : void 0,
|
|
49512
|
+
required: required2,
|
|
49108
49513
|
size: mantineSize,
|
|
49514
|
+
clearable: true,
|
|
49515
|
+
allowDeselect: false,
|
|
49516
|
+
defaultDate: dateValue || dayjs().format("YYYY-MM-DD"),
|
|
49517
|
+
w: fullWidth || textFieldFullWidth ? "100%" : void 0,
|
|
49109
49518
|
style: formControlStyle({
|
|
49110
49519
|
fullWidth: fullWidth || textFieldFullWidth,
|
|
49111
49520
|
style,
|
|
@@ -49544,7 +49953,7 @@ const loadReactPdf = async () => {
|
|
|
49544
49953
|
reactPdfPromise ??= Promise.all([
|
|
49545
49954
|
Promise.resolve().then(() => require("./AnnotationLayer-Dyvby5gX.cjs")),
|
|
49546
49955
|
Promise.resolve().then(() => require("./TextLayer-Dyvby5gX.cjs")),
|
|
49547
|
-
Promise.resolve().then(() => require("./index-
|
|
49956
|
+
Promise.resolve().then(() => require("./index-DP3u3pWZ.cjs"))
|
|
49548
49957
|
]).then(([, , mod]) => {
|
|
49549
49958
|
mod.pdfjs.GlobalWorkerOptions.workerSrc = pdfWorkerSrc;
|
|
49550
49959
|
return mod;
|
|
@@ -50885,4 +51294,4 @@ exports.validateEthereumAddress = validateEthereumAddress;
|
|
|
50885
51294
|
exports.walletKey = walletKey;
|
|
50886
51295
|
exports.z = z;
|
|
50887
51296
|
exports.zipSchema = zipSchema;
|
|
50888
|
-
//# sourceMappingURL=index-
|
|
51297
|
+
//# sourceMappingURL=index-C1YjT_p6.cjs.map
|