@fairmint/ui 0.2.38 → 0.2.39
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-5FDfBnyn.cjs → index-CWzgtudR.cjs} +3 -3
- package/dist/{index-5FDfBnyn.cjs.map → index-CWzgtudR.cjs.map} +1 -1
- package/dist/{index-DcWIUgfH.cjs → index-DuObJmri.cjs} +602 -194
- package/dist/index-DuObJmri.cjs.map +1 -0
- package/dist/{index-49ranUMK.js → index-c_TfaoDt.js} +602 -194
- package/dist/index-c_TfaoDt.js.map +1 -0
- package/dist/{index-B31nxDPQ.js → index-veNaZFxk.js} +2 -2
- package/dist/{index-B31nxDPQ.js.map → index-veNaZFxk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-49ranUMK.js.map +0 -1
- package/dist/index-DcWIUgfH.cjs.map +0 -1
|
@@ -2700,7 +2700,7 @@ var values$1 = Object.values || function(obj) {
|
|
|
2700
2700
|
return obj[k];
|
|
2701
2701
|
});
|
|
2702
2702
|
};
|
|
2703
|
-
var defaultProps$
|
|
2703
|
+
var defaultProps$1p = {
|
|
2704
2704
|
component: "div",
|
|
2705
2705
|
childFactory: function childFactory(child) {
|
|
2706
2706
|
return child;
|
|
@@ -2827,7 +2827,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2827
2827
|
*/
|
|
2828
2828
|
childFactory: PropTypes.func
|
|
2829
2829
|
} : {};
|
|
2830
|
-
TransitionGroup.defaultProps = defaultProps$
|
|
2830
|
+
TransitionGroup.defaultProps = defaultProps$1p;
|
|
2831
2831
|
var extendStatics = function(d, b) {
|
|
2832
2832
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
2833
2833
|
d2.__proto__ = b2;
|
|
@@ -6254,7 +6254,7 @@ function useCollapse({
|
|
|
6254
6254
|
}
|
|
6255
6255
|
return getCollapseProps;
|
|
6256
6256
|
}
|
|
6257
|
-
const defaultProps$
|
|
6257
|
+
const defaultProps$1o = {
|
|
6258
6258
|
transitionDuration: 200,
|
|
6259
6259
|
transitionTimingFunction: "ease",
|
|
6260
6260
|
animateOpacity: true
|
|
@@ -6270,7 +6270,7 @@ const Collapse$1 = factory((props, ref) => {
|
|
|
6270
6270
|
animateOpacity,
|
|
6271
6271
|
keepMounted,
|
|
6272
6272
|
...others
|
|
6273
|
-
} = useProps("Collapse", defaultProps$
|
|
6273
|
+
} = useProps("Collapse", defaultProps$1o, props);
|
|
6274
6274
|
const theme2 = useMantineTheme();
|
|
6275
6275
|
const shouldReduceMotion = useReducedMotion();
|
|
6276
6276
|
const reduceMotion = theme2.respectReducedMotion ? shouldReduceMotion : false;
|
|
@@ -9791,14 +9791,14 @@ const ScrollAreaCorner = forwardRef((props, ref) => {
|
|
|
9791
9791
|
const hasCorner = ctx.type !== "scroll" && hasBothScrollbarsVisible;
|
|
9792
9792
|
return hasCorner ? /* @__PURE__ */ jsx(Corner, { ...props, ref }) : null;
|
|
9793
9793
|
});
|
|
9794
|
-
const defaultProps$
|
|
9794
|
+
const defaultProps$1n = {
|
|
9795
9795
|
scrollHideDelay: 1e3,
|
|
9796
9796
|
type: "hover"
|
|
9797
9797
|
};
|
|
9798
9798
|
const ScrollAreaRoot = forwardRef((_props, ref) => {
|
|
9799
9799
|
const { type, scrollHideDelay, scrollbars, getStyles: getStyles2, ...others } = useProps(
|
|
9800
9800
|
"ScrollAreaRoot",
|
|
9801
|
-
defaultProps$
|
|
9801
|
+
defaultProps$1n,
|
|
9802
9802
|
_props
|
|
9803
9803
|
);
|
|
9804
9804
|
const [scrollArea, setScrollArea] = useState(null);
|
|
@@ -10440,7 +10440,7 @@ const ScrollAreaViewport = forwardRef(
|
|
|
10440
10440
|
}
|
|
10441
10441
|
);
|
|
10442
10442
|
ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
|
|
10443
|
-
const defaultProps$
|
|
10443
|
+
const defaultProps$1m = {
|
|
10444
10444
|
scrollHideDelay: 1e3,
|
|
10445
10445
|
type: "hover",
|
|
10446
10446
|
scrollbars: "xy"
|
|
@@ -10464,7 +10464,7 @@ const varsResolver$16 = createVarsResolver(
|
|
|
10464
10464
|
}
|
|
10465
10465
|
);
|
|
10466
10466
|
const ScrollArea = factory((_props, ref) => {
|
|
10467
|
-
const props = useProps("ScrollArea", defaultProps$
|
|
10467
|
+
const props = useProps("ScrollArea", defaultProps$1m, _props);
|
|
10468
10468
|
const {
|
|
10469
10469
|
classNames: classNames2,
|
|
10470
10470
|
className,
|
|
@@ -10616,7 +10616,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
10616
10616
|
onTopReached,
|
|
10617
10617
|
onOverflowChange,
|
|
10618
10618
|
...others
|
|
10619
|
-
} = useProps("ScrollAreaAutosize", defaultProps$
|
|
10619
|
+
} = useProps("ScrollAreaAutosize", defaultProps$1m, props);
|
|
10620
10620
|
const viewportObserverRef = useRef(null);
|
|
10621
10621
|
const combinedViewportRef = useMergeRefs([viewportRef, viewportObserverRef]);
|
|
10622
10622
|
const [overflowing, setOverflowing] = useState(false);
|
|
@@ -10693,12 +10693,12 @@ ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
|
|
|
10693
10693
|
ScrollAreaAutosize.classes = classes$17;
|
|
10694
10694
|
ScrollArea.Autosize = ScrollAreaAutosize;
|
|
10695
10695
|
var classes$16 = { "root": "m_87cf2631" };
|
|
10696
|
-
const defaultProps$
|
|
10696
|
+
const defaultProps$1l = {
|
|
10697
10697
|
__staticSelector: "UnstyledButton"
|
|
10698
10698
|
};
|
|
10699
10699
|
const UnstyledButton = polymorphicFactory(
|
|
10700
10700
|
(_props, ref) => {
|
|
10701
|
-
const props = useProps("UnstyledButton", defaultProps$
|
|
10701
|
+
const props = useProps("UnstyledButton", defaultProps$1l, _props);
|
|
10702
10702
|
const {
|
|
10703
10703
|
className,
|
|
10704
10704
|
component = "button",
|
|
@@ -10944,7 +10944,7 @@ function getFloatingPosition(dir, position) {
|
|
|
10944
10944
|
return position;
|
|
10945
10945
|
}
|
|
10946
10946
|
var classes$13 = { "root": "m_9814e45f" };
|
|
10947
|
-
const defaultProps$
|
|
10947
|
+
const defaultProps$1k = {
|
|
10948
10948
|
zIndex: getDefaultZIndex("modal")
|
|
10949
10949
|
};
|
|
10950
10950
|
const varsResolver$14 = createVarsResolver(
|
|
@@ -10958,7 +10958,7 @@ const varsResolver$14 = createVarsResolver(
|
|
|
10958
10958
|
})
|
|
10959
10959
|
);
|
|
10960
10960
|
const Overlay = polymorphicFactory((_props, ref) => {
|
|
10961
|
-
const props = useProps("Overlay", defaultProps$
|
|
10961
|
+
const props = useProps("Overlay", defaultProps$1k, _props);
|
|
10962
10962
|
const {
|
|
10963
10963
|
classNames: classNames2,
|
|
10964
10964
|
className,
|
|
@@ -11023,11 +11023,11 @@ function getTargetNode({ target, reuseTargetNode, ...others }) {
|
|
|
11023
11023
|
}
|
|
11024
11024
|
return createPortalNode(others);
|
|
11025
11025
|
}
|
|
11026
|
-
const defaultProps$
|
|
11026
|
+
const defaultProps$1j = {
|
|
11027
11027
|
reuseTargetNode: true
|
|
11028
11028
|
};
|
|
11029
11029
|
const Portal = factory((props, ref) => {
|
|
11030
|
-
const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$
|
|
11030
|
+
const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$1j, props);
|
|
11031
11031
|
const [mounted, setMounted] = useState(false);
|
|
11032
11032
|
const nodeRef = useRef(null);
|
|
11033
11033
|
useIsomorphicEffect$1(() => {
|
|
@@ -11463,14 +11463,14 @@ const PopoverDropdown = factory((_props, ref) => {
|
|
|
11463
11463
|
});
|
|
11464
11464
|
PopoverDropdown.classes = classes$12;
|
|
11465
11465
|
PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
|
|
11466
|
-
const defaultProps$
|
|
11466
|
+
const defaultProps$1i = {
|
|
11467
11467
|
refProp: "ref",
|
|
11468
11468
|
popupType: "dialog"
|
|
11469
11469
|
};
|
|
11470
11470
|
const PopoverTarget = factory((props, ref) => {
|
|
11471
11471
|
const { children, refProp, popupType, ...others } = useProps(
|
|
11472
11472
|
"PopoverTarget",
|
|
11473
|
-
defaultProps$
|
|
11473
|
+
defaultProps$1i,
|
|
11474
11474
|
props
|
|
11475
11475
|
);
|
|
11476
11476
|
const child = getSingleElementChild(children);
|
|
@@ -11637,7 +11637,7 @@ function usePopover(options) {
|
|
|
11637
11637
|
onToggle
|
|
11638
11638
|
};
|
|
11639
11639
|
}
|
|
11640
|
-
const defaultProps$
|
|
11640
|
+
const defaultProps$1h = {
|
|
11641
11641
|
position: "bottom",
|
|
11642
11642
|
offset: 8,
|
|
11643
11643
|
positionDependencies: [],
|
|
@@ -11667,7 +11667,7 @@ const varsResolver$13 = createVarsResolver((_, { radius, shadow }) => ({
|
|
|
11667
11667
|
}
|
|
11668
11668
|
}));
|
|
11669
11669
|
function Popover(_props) {
|
|
11670
|
-
const props = useProps("Popover", defaultProps$
|
|
11670
|
+
const props = useProps("Popover", defaultProps$1h, _props);
|
|
11671
11671
|
const {
|
|
11672
11672
|
children,
|
|
11673
11673
|
position,
|
|
@@ -11897,7 +11897,7 @@ const defaultLoaders = {
|
|
|
11897
11897
|
oval: Oval,
|
|
11898
11898
|
dots: Dots
|
|
11899
11899
|
};
|
|
11900
|
-
const defaultProps$
|
|
11900
|
+
const defaultProps$1g = {
|
|
11901
11901
|
loaders: defaultLoaders,
|
|
11902
11902
|
type: "oval"
|
|
11903
11903
|
};
|
|
@@ -11908,7 +11908,7 @@ const varsResolver$12 = createVarsResolver((theme2, { size: size2, color }) => (
|
|
|
11908
11908
|
}
|
|
11909
11909
|
}));
|
|
11910
11910
|
const Loader$1 = factory((_props, ref) => {
|
|
11911
|
-
const props = useProps("Loader", defaultProps$
|
|
11911
|
+
const props = useProps("Loader", defaultProps$1g, _props);
|
|
11912
11912
|
const {
|
|
11913
11913
|
size: size2,
|
|
11914
11914
|
color,
|
|
@@ -11957,14 +11957,14 @@ Loader$1.defaultLoaders = defaultLoaders;
|
|
|
11957
11957
|
Loader$1.classes = classes$11;
|
|
11958
11958
|
Loader$1.displayName = "@mantine/core/Loader";
|
|
11959
11959
|
var classes$10 = { "root": "m_8d3f4000", "icon": "m_8d3afb97", "loader": "m_302b9fb1", "group": "m_1a0f1b21", "groupSection": "m_437b6484" };
|
|
11960
|
-
const defaultProps$
|
|
11960
|
+
const defaultProps$1f = {
|
|
11961
11961
|
orientation: "horizontal"
|
|
11962
11962
|
};
|
|
11963
11963
|
const varsResolver$11 = createVarsResolver((_, { borderWidth }) => ({
|
|
11964
11964
|
group: { "--ai-border-width": rem(borderWidth) }
|
|
11965
11965
|
}));
|
|
11966
11966
|
const ActionIconGroup = factory((_props, ref) => {
|
|
11967
|
-
const props = useProps("ActionIconGroup", defaultProps$
|
|
11967
|
+
const props = useProps("ActionIconGroup", defaultProps$1f, _props);
|
|
11968
11968
|
const {
|
|
11969
11969
|
className,
|
|
11970
11970
|
style,
|
|
@@ -11978,7 +11978,7 @@ const ActionIconGroup = factory((_props, ref) => {
|
|
|
11978
11978
|
mod,
|
|
11979
11979
|
attributes,
|
|
11980
11980
|
...others
|
|
11981
|
-
} = useProps("ActionIconGroup", defaultProps$
|
|
11981
|
+
} = useProps("ActionIconGroup", defaultProps$1f, _props);
|
|
11982
11982
|
const getStyles2 = useStyles({
|
|
11983
11983
|
name: "ActionIconGroup",
|
|
11984
11984
|
props,
|
|
@@ -12169,7 +12169,7 @@ const CloseIcon = forwardRef(
|
|
|
12169
12169
|
);
|
|
12170
12170
|
CloseIcon.displayName = "@mantine/core/CloseIcon";
|
|
12171
12171
|
var classes$$ = { "root": "m_86a44da5", "root--subtle": "m_220c80f2" };
|
|
12172
|
-
const defaultProps$
|
|
12172
|
+
const defaultProps$1e = {
|
|
12173
12173
|
variant: "subtle"
|
|
12174
12174
|
};
|
|
12175
12175
|
const varsResolver$_ = createVarsResolver((_, { size: size2, radius, iconSize }) => ({
|
|
@@ -12180,7 +12180,7 @@ const varsResolver$_ = createVarsResolver((_, { size: size2, radius, iconSize })
|
|
|
12180
12180
|
}
|
|
12181
12181
|
}));
|
|
12182
12182
|
const CloseButton = polymorphicFactory((_props, ref) => {
|
|
12183
|
-
const props = useProps("CloseButton", defaultProps$
|
|
12183
|
+
const props = useProps("CloseButton", defaultProps$1e, _props);
|
|
12184
12184
|
const {
|
|
12185
12185
|
iconSize,
|
|
12186
12186
|
children,
|
|
@@ -12236,7 +12236,7 @@ function filterFalsyChildren(children) {
|
|
|
12236
12236
|
return Children.toArray(children).filter(Boolean);
|
|
12237
12237
|
}
|
|
12238
12238
|
var classes$_ = { "root": "m_4081bf90" };
|
|
12239
|
-
const defaultProps$
|
|
12239
|
+
const defaultProps$1d = {
|
|
12240
12240
|
preventGrowOverflow: true,
|
|
12241
12241
|
gap: "md",
|
|
12242
12242
|
align: "center",
|
|
@@ -12255,7 +12255,7 @@ const varsResolver$Z = createVarsResolver(
|
|
|
12255
12255
|
})
|
|
12256
12256
|
);
|
|
12257
12257
|
const Group = factory((_props, ref) => {
|
|
12258
|
-
const props = useProps("Group", defaultProps$
|
|
12258
|
+
const props = useProps("Group", defaultProps$1d, _props);
|
|
12259
12259
|
const {
|
|
12260
12260
|
classNames: classNames2,
|
|
12261
12261
|
className,
|
|
@@ -12785,7 +12785,7 @@ const InputError = factory((_props, ref) => {
|
|
|
12785
12785
|
});
|
|
12786
12786
|
InputError.classes = classes$Y;
|
|
12787
12787
|
InputError.displayName = "@mantine/core/InputError";
|
|
12788
|
-
const defaultProps$
|
|
12788
|
+
const defaultProps$1c = {
|
|
12789
12789
|
labelElement: "label"
|
|
12790
12790
|
};
|
|
12791
12791
|
const varsResolver$W = createVarsResolver((_, { size: size2 }) => ({
|
|
@@ -12795,7 +12795,7 @@ const varsResolver$W = createVarsResolver((_, { size: size2 }) => ({
|
|
|
12795
12795
|
}
|
|
12796
12796
|
}));
|
|
12797
12797
|
const InputLabel$1 = factory((_props, ref) => {
|
|
12798
|
-
const props = useProps("InputLabel", defaultProps$
|
|
12798
|
+
const props = useProps("InputLabel", defaultProps$1c, _props);
|
|
12799
12799
|
const {
|
|
12800
12800
|
classNames: classNames2,
|
|
12801
12801
|
className,
|
|
@@ -12814,7 +12814,7 @@ const InputLabel$1 = factory((_props, ref) => {
|
|
|
12814
12814
|
mod,
|
|
12815
12815
|
attributes,
|
|
12816
12816
|
...others
|
|
12817
|
-
} = useProps("InputLabel", defaultProps$
|
|
12817
|
+
} = useProps("InputLabel", defaultProps$1c, props);
|
|
12818
12818
|
const _getStyles = useStyles({
|
|
12819
12819
|
name: ["InputWrapper", __staticSelector],
|
|
12820
12820
|
props,
|
|
@@ -12907,7 +12907,7 @@ function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
|
|
|
12907
12907
|
const offsetBottom = hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error");
|
|
12908
12908
|
return { offsetBottom, offsetTop };
|
|
12909
12909
|
}
|
|
12910
|
-
const defaultProps$
|
|
12910
|
+
const defaultProps$1b = {
|
|
12911
12911
|
labelElement: "label",
|
|
12912
12912
|
inputContainer: (children) => children,
|
|
12913
12913
|
inputWrapperOrder: ["label", "description", "input", "error"]
|
|
@@ -12925,7 +12925,7 @@ const varsResolver$V = createVarsResolver((_, { size: size2 }) => ({
|
|
|
12925
12925
|
}
|
|
12926
12926
|
}));
|
|
12927
12927
|
const InputWrapper = factory((_props, ref) => {
|
|
12928
|
-
const props = useProps("InputWrapper", defaultProps$
|
|
12928
|
+
const props = useProps("InputWrapper", defaultProps$1b, _props);
|
|
12929
12929
|
const {
|
|
12930
12930
|
classNames: classNames2,
|
|
12931
12931
|
className,
|
|
@@ -13059,7 +13059,7 @@ const InputWrapper = factory((_props, ref) => {
|
|
|
13059
13059
|
});
|
|
13060
13060
|
InputWrapper.classes = classes$Y;
|
|
13061
13061
|
InputWrapper.displayName = "@mantine/core/InputWrapper";
|
|
13062
|
-
const defaultProps$
|
|
13062
|
+
const defaultProps$1a = {
|
|
13063
13063
|
variant: "default",
|
|
13064
13064
|
leftSectionPointerEvents: "none",
|
|
13065
13065
|
rightSectionPointerEvents: "none",
|
|
@@ -13082,7 +13082,7 @@ const varsResolver$U = createVarsResolver((_, props, ctx) => ({
|
|
|
13082
13082
|
}
|
|
13083
13083
|
}));
|
|
13084
13084
|
const Input = polymorphicFactory((_props, ref) => {
|
|
13085
|
-
const props = useProps("Input", defaultProps$
|
|
13085
|
+
const props = useProps("Input", defaultProps$1a, _props);
|
|
13086
13086
|
const {
|
|
13087
13087
|
classNames: classNames2,
|
|
13088
13088
|
className,
|
|
@@ -13298,13 +13298,13 @@ function useInputProps(component, defaultProps2, _props) {
|
|
|
13298
13298
|
}
|
|
13299
13299
|
};
|
|
13300
13300
|
}
|
|
13301
|
-
const defaultProps$
|
|
13301
|
+
const defaultProps$19 = {
|
|
13302
13302
|
__staticSelector: "InputBase",
|
|
13303
13303
|
withAria: true,
|
|
13304
13304
|
size: "sm"
|
|
13305
13305
|
};
|
|
13306
13306
|
const InputBase = polymorphicFactory((props, ref) => {
|
|
13307
|
-
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$
|
|
13307
|
+
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$19, props);
|
|
13308
13308
|
return /* @__PURE__ */ jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsx(Input, { ...inputProps, ...others, ref }) });
|
|
13309
13309
|
});
|
|
13310
13310
|
InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
|
|
@@ -13719,7 +13719,7 @@ const AccordionPanel = factory((props, ref) => {
|
|
|
13719
13719
|
});
|
|
13720
13720
|
AccordionPanel.displayName = "@mantine/core/AccordionPanel";
|
|
13721
13721
|
AccordionPanel.classes = classes$V;
|
|
13722
|
-
const defaultProps$
|
|
13722
|
+
const defaultProps$18 = {
|
|
13723
13723
|
multiple: false,
|
|
13724
13724
|
disableChevronRotation: false,
|
|
13725
13725
|
chevronPosition: "right",
|
|
@@ -13737,7 +13737,7 @@ const varsResolver$S = createVarsResolver(
|
|
|
13737
13737
|
})
|
|
13738
13738
|
);
|
|
13739
13739
|
function Accordion$1(_props) {
|
|
13740
|
-
const props = useProps("Accordion", defaultProps$
|
|
13740
|
+
const props = useProps("Accordion", defaultProps$18, _props);
|
|
13741
13741
|
const {
|
|
13742
13742
|
classNames: classNames2,
|
|
13743
13743
|
className,
|
|
@@ -13930,7 +13930,7 @@ function getTextTruncate(truncate) {
|
|
|
13930
13930
|
}
|
|
13931
13931
|
return void 0;
|
|
13932
13932
|
}
|
|
13933
|
-
const defaultProps$
|
|
13933
|
+
const defaultProps$17 = {
|
|
13934
13934
|
inherit: false
|
|
13935
13935
|
};
|
|
13936
13936
|
const varsResolver$Q = createVarsResolver(
|
|
@@ -13947,7 +13947,7 @@ const varsResolver$Q = createVarsResolver(
|
|
|
13947
13947
|
})
|
|
13948
13948
|
);
|
|
13949
13949
|
const Text = polymorphicFactory((_props, ref) => {
|
|
13950
|
-
const props = useProps("Text", defaultProps$
|
|
13950
|
+
const props = useProps("Text", defaultProps$17, _props);
|
|
13951
13951
|
const {
|
|
13952
13952
|
lineClamp,
|
|
13953
13953
|
truncate,
|
|
@@ -14005,13 +14005,13 @@ const Text = polymorphicFactory((_props, ref) => {
|
|
|
14005
14005
|
Text.classes = classes$T;
|
|
14006
14006
|
Text.displayName = "@mantine/core/Text";
|
|
14007
14007
|
var classes$S = { "root": "m_849cf0da" };
|
|
14008
|
-
const defaultProps$
|
|
14008
|
+
const defaultProps$16 = {
|
|
14009
14009
|
underline: "hover"
|
|
14010
14010
|
};
|
|
14011
14011
|
const Anchor = polymorphicFactory((props, ref) => {
|
|
14012
14012
|
const { underline, className, unstyled, mod, ...others } = useProps(
|
|
14013
14013
|
"Anchor",
|
|
14014
|
-
defaultProps$
|
|
14014
|
+
defaultProps$16,
|
|
14015
14015
|
props
|
|
14016
14016
|
);
|
|
14017
14017
|
return /* @__PURE__ */ jsx(
|
|
@@ -14599,7 +14599,7 @@ function useResizing({ transitionDuration, disabled }) {
|
|
|
14599
14599
|
}, [disabled, transitionDuration]);
|
|
14600
14600
|
return resizing;
|
|
14601
14601
|
}
|
|
14602
|
-
const defaultProps$
|
|
14602
|
+
const defaultProps$15 = {
|
|
14603
14603
|
withBorder: true,
|
|
14604
14604
|
padding: 0,
|
|
14605
14605
|
transitionDuration: 200,
|
|
@@ -14616,7 +14616,7 @@ const varsResolver$P = createVarsResolver(
|
|
|
14616
14616
|
})
|
|
14617
14617
|
);
|
|
14618
14618
|
const AppShell = factory((_props, ref) => {
|
|
14619
|
-
const props = useProps("AppShell", defaultProps$
|
|
14619
|
+
const props = useProps("AppShell", defaultProps$15, _props);
|
|
14620
14620
|
const {
|
|
14621
14621
|
classNames: classNames2,
|
|
14622
14622
|
className,
|
|
@@ -14724,7 +14724,7 @@ function getOptionsLockup(options) {
|
|
|
14724
14724
|
}, {});
|
|
14725
14725
|
}
|
|
14726
14726
|
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" };
|
|
14727
|
-
const defaultProps$
|
|
14727
|
+
const defaultProps$14 = {
|
|
14728
14728
|
error: null
|
|
14729
14729
|
};
|
|
14730
14730
|
const varsResolver$O = createVarsResolver((theme2, { size: size2, color }) => ({
|
|
@@ -14734,7 +14734,7 @@ const varsResolver$O = createVarsResolver((theme2, { size: size2, color }) => ({
|
|
|
14734
14734
|
}
|
|
14735
14735
|
}));
|
|
14736
14736
|
const ComboboxChevron = factory((_props, ref) => {
|
|
14737
|
-
const props = useProps("ComboboxChevron", defaultProps$
|
|
14737
|
+
const props = useProps("ComboboxChevron", defaultProps$14, _props);
|
|
14738
14738
|
const { size: size2, error: error2, style, className, classNames: classNames2, styles, unstyled, vars, mod, ...others } = props;
|
|
14739
14739
|
const getStyles2 = useStyles({
|
|
14740
14740
|
name: "ComboboxChevron",
|
|
@@ -14818,11 +14818,11 @@ const ComboboxDropdown = factory((props, ref) => {
|
|
|
14818
14818
|
});
|
|
14819
14819
|
ComboboxDropdown.classes = classes$Q;
|
|
14820
14820
|
ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
|
|
14821
|
-
const defaultProps$
|
|
14821
|
+
const defaultProps$13 = {
|
|
14822
14822
|
refProp: "ref"
|
|
14823
14823
|
};
|
|
14824
14824
|
const ComboboxDropdownTarget = factory((props, ref) => {
|
|
14825
|
-
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$
|
|
14825
|
+
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$13, props);
|
|
14826
14826
|
useComboboxContext();
|
|
14827
14827
|
if (!isElement$1(children)) {
|
|
14828
14828
|
throw new Error(
|
|
@@ -14927,7 +14927,7 @@ function useComboboxTargetProps({
|
|
|
14927
14927
|
onKeyDown: handleKeyDown
|
|
14928
14928
|
};
|
|
14929
14929
|
}
|
|
14930
|
-
const defaultProps$
|
|
14930
|
+
const defaultProps$12 = {
|
|
14931
14931
|
refProp: "ref",
|
|
14932
14932
|
targetType: "input",
|
|
14933
14933
|
withKeyboardNavigation: true,
|
|
@@ -14945,7 +14945,7 @@ const ComboboxEventsTarget = factory((props, ref) => {
|
|
|
14945
14945
|
targetType,
|
|
14946
14946
|
autoComplete,
|
|
14947
14947
|
...others
|
|
14948
|
-
} = useProps("ComboboxEventsTarget", defaultProps$
|
|
14948
|
+
} = useProps("ComboboxEventsTarget", defaultProps$12, props);
|
|
14949
14949
|
const child = getSingleElementChild(children);
|
|
14950
14950
|
if (!child) {
|
|
14951
14951
|
throw new Error(
|
|
@@ -15133,12 +15133,12 @@ const ComboboxOptions = factory((_props, ref) => {
|
|
|
15133
15133
|
});
|
|
15134
15134
|
ComboboxOptions.classes = classes$Q;
|
|
15135
15135
|
ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
|
|
15136
|
-
const defaultProps$
|
|
15136
|
+
const defaultProps$11 = {
|
|
15137
15137
|
withAriaAttributes: true,
|
|
15138
15138
|
withKeyboardNavigation: true
|
|
15139
15139
|
};
|
|
15140
15140
|
const ComboboxSearch = factory((_props, ref) => {
|
|
15141
|
-
const props = useProps("ComboboxSearch", defaultProps$
|
|
15141
|
+
const props = useProps("ComboboxSearch", defaultProps$11, _props);
|
|
15142
15142
|
const {
|
|
15143
15143
|
classNames: classNames2,
|
|
15144
15144
|
styles,
|
|
@@ -15175,7 +15175,7 @@ const ComboboxSearch = factory((_props, ref) => {
|
|
|
15175
15175
|
});
|
|
15176
15176
|
ComboboxSearch.classes = classes$Q;
|
|
15177
15177
|
ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
|
|
15178
|
-
const defaultProps
|
|
15178
|
+
const defaultProps$10 = {
|
|
15179
15179
|
refProp: "ref",
|
|
15180
15180
|
targetType: "input",
|
|
15181
15181
|
withKeyboardNavigation: true,
|
|
@@ -15193,7 +15193,7 @@ const ComboboxTarget = factory((props, ref) => {
|
|
|
15193
15193
|
targetType,
|
|
15194
15194
|
autoComplete,
|
|
15195
15195
|
...others
|
|
15196
|
-
} = useProps("ComboboxTarget", defaultProps
|
|
15196
|
+
} = useProps("ComboboxTarget", defaultProps$10, props);
|
|
15197
15197
|
const child = getSingleElementChild(children);
|
|
15198
15198
|
if (!child) {
|
|
15199
15199
|
throw new Error(
|
|
@@ -15442,7 +15442,7 @@ function useCombobox({
|
|
|
15442
15442
|
focusTarget
|
|
15443
15443
|
};
|
|
15444
15444
|
}
|
|
15445
|
-
const defaultProps
|
|
15445
|
+
const defaultProps$$ = {
|
|
15446
15446
|
keepMounted: true,
|
|
15447
15447
|
withinPortal: true,
|
|
15448
15448
|
resetSelectionOnOptionHover: false,
|
|
@@ -15462,7 +15462,7 @@ const varsResolver$N = createVarsResolver((_, { size: size2, dropdownPadding })
|
|
|
15462
15462
|
}
|
|
15463
15463
|
}));
|
|
15464
15464
|
function Combobox(_props) {
|
|
15465
|
-
const props = useProps("Combobox", defaultProps
|
|
15465
|
+
const props = useProps("Combobox", defaultProps$$, _props);
|
|
15466
15466
|
const {
|
|
15467
15467
|
classNames: classNames2,
|
|
15468
15468
|
styles,
|
|
@@ -15628,7 +15628,7 @@ const CheckboxGroupProvider = CheckboxGroupContext.Provider;
|
|
|
15628
15628
|
const useCheckboxGroupContext = () => useContext(CheckboxGroupContext);
|
|
15629
15629
|
const [CheckboxCardProvider, useCheckboxCardContext] = createOptionalContext();
|
|
15630
15630
|
var classes$N = { "card": "m_26775b0a" };
|
|
15631
|
-
const defaultProps$
|
|
15631
|
+
const defaultProps$_ = {
|
|
15632
15632
|
withBorder: true
|
|
15633
15633
|
};
|
|
15634
15634
|
const varsResolver$M = createVarsResolver((_, { radius }) => ({
|
|
@@ -15637,7 +15637,7 @@ const varsResolver$M = createVarsResolver((_, { radius }) => ({
|
|
|
15637
15637
|
}
|
|
15638
15638
|
}));
|
|
15639
15639
|
const CheckboxCard = factory((_props, ref) => {
|
|
15640
|
-
const props = useProps("CheckboxCard", defaultProps$
|
|
15640
|
+
const props = useProps("CheckboxCard", defaultProps$_, _props);
|
|
15641
15641
|
const {
|
|
15642
15642
|
classNames: classNames2,
|
|
15643
15643
|
className,
|
|
@@ -15782,7 +15782,7 @@ function CheckboxIcon({ indeterminate, ...others }) {
|
|
|
15782
15782
|
return /* @__PURE__ */ jsx(CheckIcon, { ...others });
|
|
15783
15783
|
}
|
|
15784
15784
|
var classes$M = { "indicator": "m_5e5256ee", "icon": "m_1b1c543a", "indicator--outline": "m_76e20374" };
|
|
15785
|
-
const defaultProps$
|
|
15785
|
+
const defaultProps$Z = {
|
|
15786
15786
|
icon: CheckboxIcon,
|
|
15787
15787
|
variant: "filled"
|
|
15788
15788
|
};
|
|
@@ -15801,7 +15801,7 @@ const varsResolver$L = createVarsResolver(
|
|
|
15801
15801
|
}
|
|
15802
15802
|
);
|
|
15803
15803
|
const CheckboxIndicator = factory((_props, ref) => {
|
|
15804
|
-
const props = useProps("CheckboxIndicator", defaultProps$
|
|
15804
|
+
const props = useProps("CheckboxIndicator", defaultProps$Z, _props);
|
|
15805
15805
|
const {
|
|
15806
15806
|
classNames: classNames2,
|
|
15807
15807
|
className,
|
|
@@ -15852,7 +15852,7 @@ const CheckboxIndicator = factory((_props, ref) => {
|
|
|
15852
15852
|
});
|
|
15853
15853
|
CheckboxIndicator.displayName = "@mantine/core/CheckboxIndicator";
|
|
15854
15854
|
CheckboxIndicator.classes = classes$M;
|
|
15855
|
-
const defaultProps$
|
|
15855
|
+
const defaultProps$Y = {
|
|
15856
15856
|
labelPosition: "right",
|
|
15857
15857
|
icon: CheckboxIcon,
|
|
15858
15858
|
variant: "filled"
|
|
@@ -15872,7 +15872,7 @@ const varsResolver$K = createVarsResolver(
|
|
|
15872
15872
|
}
|
|
15873
15873
|
);
|
|
15874
15874
|
const Checkbox$1 = factory((_props, forwardedRef) => {
|
|
15875
|
-
const props = useProps("Checkbox", defaultProps$
|
|
15875
|
+
const props = useProps("Checkbox", defaultProps$Y, _props);
|
|
15876
15876
|
const {
|
|
15877
15877
|
classNames: classNames2,
|
|
15878
15878
|
className,
|
|
@@ -16475,14 +16475,14 @@ const Burger = factory((_props, ref) => {
|
|
|
16475
16475
|
Burger.classes = classes$J;
|
|
16476
16476
|
Burger.displayName = "@mantine/core/Burger";
|
|
16477
16477
|
var classes$I = { "root": "m_77c9d27d", "inner": "m_80f1301b", "label": "m_811560b9", "section": "m_a74036a", "loader": "m_a25b86ee", "group": "m_80d6d844", "groupSection": "m_70be2a01" };
|
|
16478
|
-
const defaultProps$
|
|
16478
|
+
const defaultProps$X = {
|
|
16479
16479
|
orientation: "horizontal"
|
|
16480
16480
|
};
|
|
16481
16481
|
const varsResolver$F = createVarsResolver((_, { borderWidth }) => ({
|
|
16482
16482
|
group: { "--button-border-width": rem(borderWidth) }
|
|
16483
16483
|
}));
|
|
16484
16484
|
const ButtonGroup$1 = factory((_props, ref) => {
|
|
16485
|
-
const props = useProps("ButtonGroup", defaultProps$
|
|
16485
|
+
const props = useProps("ButtonGroup", defaultProps$X, _props);
|
|
16486
16486
|
const {
|
|
16487
16487
|
className,
|
|
16488
16488
|
style,
|
|
@@ -16496,7 +16496,7 @@ const ButtonGroup$1 = factory((_props, ref) => {
|
|
|
16496
16496
|
mod,
|
|
16497
16497
|
attributes,
|
|
16498
16498
|
...others
|
|
16499
|
-
} = useProps("ButtonGroup", defaultProps$
|
|
16499
|
+
} = useProps("ButtonGroup", defaultProps$X, _props);
|
|
16500
16500
|
const getStyles2 = useStyles({
|
|
16501
16501
|
name: "ButtonGroup",
|
|
16502
16502
|
props,
|
|
@@ -16839,7 +16839,7 @@ const Container$1 = factory((_props, ref) => {
|
|
|
16839
16839
|
Container$1.classes = classes$F;
|
|
16840
16840
|
Container$1.displayName = "@mantine/core/Container";
|
|
16841
16841
|
var classes$E = { "root": "m_3eebeb36", "label": "m_9e365f20" };
|
|
16842
|
-
const defaultProps$
|
|
16842
|
+
const defaultProps$W = {
|
|
16843
16843
|
orientation: "horizontal"
|
|
16844
16844
|
};
|
|
16845
16845
|
const varsResolver$A = createVarsResolver((theme2, { color, variant, size: size2 }) => ({
|
|
@@ -16850,7 +16850,7 @@ const varsResolver$A = createVarsResolver((theme2, { color, variant, size: size2
|
|
|
16850
16850
|
}
|
|
16851
16851
|
}));
|
|
16852
16852
|
const Divider$1 = factory((_props, ref) => {
|
|
16853
|
-
const props = useProps("Divider", defaultProps$
|
|
16853
|
+
const props = useProps("Divider", defaultProps$W, _props);
|
|
16854
16854
|
const {
|
|
16855
16855
|
classNames: classNames2,
|
|
16856
16856
|
className,
|
|
@@ -17005,7 +17005,7 @@ const rtlTransitions = {
|
|
|
17005
17005
|
right: "slide-right",
|
|
17006
17006
|
left: "slide-left"
|
|
17007
17007
|
};
|
|
17008
|
-
const defaultProps$
|
|
17008
|
+
const defaultProps$V = {
|
|
17009
17009
|
closeOnClickOutside: true,
|
|
17010
17010
|
withinPortal: true,
|
|
17011
17011
|
lockScroll: true,
|
|
@@ -17027,7 +17027,7 @@ const varsResolver$z = createVarsResolver((_, { position, size: size2, offset: o
|
|
|
17027
17027
|
}
|
|
17028
17028
|
}));
|
|
17029
17029
|
const DrawerRoot = factory((_props, ref) => {
|
|
17030
|
-
const props = useProps("DrawerRoot", defaultProps$
|
|
17030
|
+
const props = useProps("DrawerRoot", defaultProps$V, _props);
|
|
17031
17031
|
const {
|
|
17032
17032
|
classNames: classNames2,
|
|
17033
17033
|
className,
|
|
@@ -17111,7 +17111,7 @@ const DrawerTitle = factory((_props, ref) => {
|
|
|
17111
17111
|
});
|
|
17112
17112
|
DrawerTitle.classes = classes$D;
|
|
17113
17113
|
DrawerTitle.displayName = "@mantine/core/DrawerTitle";
|
|
17114
|
-
const defaultProps$
|
|
17114
|
+
const defaultProps$U = {
|
|
17115
17115
|
closeOnClickOutside: true,
|
|
17116
17116
|
withinPortal: true,
|
|
17117
17117
|
lockScroll: true,
|
|
@@ -17135,7 +17135,7 @@ const Drawer$1 = factory((_props, ref) => {
|
|
|
17135
17135
|
stackId,
|
|
17136
17136
|
zIndex,
|
|
17137
17137
|
...others
|
|
17138
|
-
} = useProps("Drawer", defaultProps$
|
|
17138
|
+
} = useProps("Drawer", defaultProps$U, _props);
|
|
17139
17139
|
const ctx = useDrawerStackContext();
|
|
17140
17140
|
const hasHeader = !!title || withCloseButton;
|
|
17141
17141
|
const stackProps = ctx && stackId ? {
|
|
@@ -17272,11 +17272,11 @@ function GridColVariables({ span, order, offset: offset2, selector }) {
|
|
|
17272
17272
|
}
|
|
17273
17273
|
);
|
|
17274
17274
|
}
|
|
17275
|
-
const defaultProps$
|
|
17275
|
+
const defaultProps$T = {
|
|
17276
17276
|
span: 12
|
|
17277
17277
|
};
|
|
17278
17278
|
const GridCol = factory((_props, ref) => {
|
|
17279
|
-
const props = useProps("GridCol", defaultProps$
|
|
17279
|
+
const props = useProps("GridCol", defaultProps$T, _props);
|
|
17280
17280
|
const { classNames: classNames2, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
|
|
17281
17281
|
const ctx = useGridContext();
|
|
17282
17282
|
const responsiveClassName = useRandomClassName();
|
|
@@ -17342,7 +17342,7 @@ function GridVariables({ gutter, selector, breakpoints, type }) {
|
|
|
17342
17342
|
}
|
|
17343
17343
|
);
|
|
17344
17344
|
}
|
|
17345
|
-
const defaultProps$
|
|
17345
|
+
const defaultProps$S = {
|
|
17346
17346
|
gutter: "md",
|
|
17347
17347
|
grow: false,
|
|
17348
17348
|
columns: 12
|
|
@@ -17355,7 +17355,7 @@ const varsResolver$y = createVarsResolver((_, { justify, align, overflow }) => (
|
|
|
17355
17355
|
}
|
|
17356
17356
|
}));
|
|
17357
17357
|
const Grid$1 = factory((_props, ref) => {
|
|
17358
|
-
const props = useProps("Grid", defaultProps$
|
|
17358
|
+
const props = useProps("Grid", defaultProps$S, _props);
|
|
17359
17359
|
const {
|
|
17360
17360
|
classNames: classNames2,
|
|
17361
17361
|
className,
|
|
@@ -17636,13 +17636,13 @@ var TextareaAutosize = function TextareaAutosize2(_ref, userRef) {
|
|
|
17636
17636
|
}
|
|
17637
17637
|
};
|
|
17638
17638
|
var index$2 = /* @__PURE__ */ React.forwardRef(TextareaAutosize);
|
|
17639
|
-
const defaultProps$
|
|
17639
|
+
const defaultProps$R = {
|
|
17640
17640
|
size: "sm"
|
|
17641
17641
|
};
|
|
17642
17642
|
const Textarea$1 = factory((props, ref) => {
|
|
17643
17643
|
const { autosize, maxRows, minRows, __staticSelector, resize, ...others } = useProps(
|
|
17644
17644
|
"Textarea",
|
|
17645
|
-
defaultProps$
|
|
17645
|
+
defaultProps$R,
|
|
17646
17646
|
props
|
|
17647
17647
|
);
|
|
17648
17648
|
const shouldAutosize = autosize && getEnv() !== "test";
|
|
@@ -17690,7 +17690,7 @@ const ListItem$1 = factory((_props, ref) => {
|
|
|
17690
17690
|
});
|
|
17691
17691
|
ListItem$1.classes = classes$B;
|
|
17692
17692
|
ListItem$1.displayName = "@mantine/core/ListItem";
|
|
17693
|
-
const defaultProps$
|
|
17693
|
+
const defaultProps$Q = {
|
|
17694
17694
|
type: "unordered"
|
|
17695
17695
|
};
|
|
17696
17696
|
const varsResolver$x = createVarsResolver((_, { size: size2, spacing }) => ({
|
|
@@ -17701,7 +17701,7 @@ const varsResolver$x = createVarsResolver((_, { size: size2, spacing }) => ({
|
|
|
17701
17701
|
}
|
|
17702
17702
|
}));
|
|
17703
17703
|
const List$1 = factory((_props, ref) => {
|
|
17704
|
-
const props = useProps("List", defaultProps$
|
|
17704
|
+
const props = useProps("List", defaultProps$Q, _props);
|
|
17705
17705
|
const {
|
|
17706
17706
|
classNames: classNames2,
|
|
17707
17707
|
className,
|
|
@@ -18058,7 +18058,7 @@ function MenuSubTarget({ children, refProp }) {
|
|
|
18058
18058
|
return /* @__PURE__ */ jsx(Popover.Target, { refProp, popupType: "menu", children });
|
|
18059
18059
|
}
|
|
18060
18060
|
MenuSubTarget.displayName = "@mantine/core/MenuSubTarget";
|
|
18061
|
-
const defaultProps$
|
|
18061
|
+
const defaultProps$P = {
|
|
18062
18062
|
offset: 0,
|
|
18063
18063
|
position: "right-start",
|
|
18064
18064
|
transitionProps: { duration: 0 },
|
|
@@ -18071,7 +18071,7 @@ const defaultProps$O = {
|
|
|
18071
18071
|
}
|
|
18072
18072
|
};
|
|
18073
18073
|
function MenuSub(_props) {
|
|
18074
|
-
const { children, closeDelay, openDelay, ...others } = useProps("MenuSub", defaultProps$
|
|
18074
|
+
const { children, closeDelay, openDelay, ...others } = useProps("MenuSub", defaultProps$P, _props);
|
|
18075
18075
|
const id2 = useId$1();
|
|
18076
18076
|
const [opened, { open, close }] = useDisclosure(false);
|
|
18077
18077
|
const ctx = useSubMenuContext();
|
|
@@ -18107,11 +18107,11 @@ MenuSub.displayName = "@mantine/core/MenuSub";
|
|
|
18107
18107
|
MenuSub.Target = MenuSubTarget;
|
|
18108
18108
|
MenuSub.Dropdown = MenuSubDropdown;
|
|
18109
18109
|
MenuSub.Item = MenuSubItem;
|
|
18110
|
-
const defaultProps$
|
|
18110
|
+
const defaultProps$O = {
|
|
18111
18111
|
refProp: "ref"
|
|
18112
18112
|
};
|
|
18113
18113
|
const MenuTarget = forwardRef((props, ref) => {
|
|
18114
|
-
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$
|
|
18114
|
+
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$O, props);
|
|
18115
18115
|
const child = getSingleElementChild(children);
|
|
18116
18116
|
if (!child) {
|
|
18117
18117
|
throw new Error(
|
|
@@ -18149,7 +18149,7 @@ const MenuTarget = forwardRef((props, ref) => {
|
|
|
18149
18149
|
}) });
|
|
18150
18150
|
});
|
|
18151
18151
|
MenuTarget.displayName = "@mantine/core/MenuTarget";
|
|
18152
|
-
const defaultProps$
|
|
18152
|
+
const defaultProps$N = {
|
|
18153
18153
|
trapFocus: true,
|
|
18154
18154
|
closeOnItemClick: true,
|
|
18155
18155
|
withInitialFocusPlaceholder: true,
|
|
@@ -18161,7 +18161,7 @@ const defaultProps$M = {
|
|
|
18161
18161
|
menuItemTabIndex: -1
|
|
18162
18162
|
};
|
|
18163
18163
|
function Menu$1(_props) {
|
|
18164
|
-
const props = useProps("Menu", defaultProps$
|
|
18164
|
+
const props = useProps("Menu", defaultProps$N, _props);
|
|
18165
18165
|
const {
|
|
18166
18166
|
children,
|
|
18167
18167
|
onOpen,
|
|
@@ -18367,7 +18367,7 @@ const ModalOverlay = factory((_props, ref) => {
|
|
|
18367
18367
|
});
|
|
18368
18368
|
ModalOverlay.classes = classes$z;
|
|
18369
18369
|
ModalOverlay.displayName = "@mantine/core/ModalOverlay";
|
|
18370
|
-
const defaultProps$
|
|
18370
|
+
const defaultProps$M = {
|
|
18371
18371
|
__staticSelector: "Modal",
|
|
18372
18372
|
closeOnClickOutside: true,
|
|
18373
18373
|
withinPortal: true,
|
|
@@ -18391,7 +18391,7 @@ const varsResolver$w = createVarsResolver(
|
|
|
18391
18391
|
})
|
|
18392
18392
|
);
|
|
18393
18393
|
const ModalRoot = factory((_props, ref) => {
|
|
18394
|
-
const props = useProps("ModalRoot", defaultProps$
|
|
18394
|
+
const props = useProps("ModalRoot", defaultProps$M, _props);
|
|
18395
18395
|
const {
|
|
18396
18396
|
classNames: classNames2,
|
|
18397
18397
|
className,
|
|
@@ -18477,7 +18477,7 @@ const ModalTitle = factory((_props, ref) => {
|
|
|
18477
18477
|
});
|
|
18478
18478
|
ModalTitle.classes = classes$z;
|
|
18479
18479
|
ModalTitle.displayName = "@mantine/core/ModalTitle";
|
|
18480
|
-
const defaultProps$
|
|
18480
|
+
const defaultProps$L = {
|
|
18481
18481
|
closeOnClickOutside: true,
|
|
18482
18482
|
withinPortal: true,
|
|
18483
18483
|
lockScroll: true,
|
|
@@ -18503,7 +18503,7 @@ const Modal$1 = factory((_props, ref) => {
|
|
|
18503
18503
|
stackId,
|
|
18504
18504
|
zIndex,
|
|
18505
18505
|
...others
|
|
18506
|
-
} = useProps("Modal", defaultProps$
|
|
18506
|
+
} = useProps("Modal", defaultProps$L, _props);
|
|
18507
18507
|
const ctx = useModalStackContext();
|
|
18508
18508
|
const hasHeader = !!title || withCloseButton;
|
|
18509
18509
|
const stackProps = ctx && stackId ? {
|
|
@@ -18606,7 +18606,7 @@ const PillGroup = factory((_props, ref) => {
|
|
|
18606
18606
|
});
|
|
18607
18607
|
PillGroup.classes = classes$y;
|
|
18608
18608
|
PillGroup.displayName = "@mantine/core/PillGroup";
|
|
18609
|
-
const defaultProps$
|
|
18609
|
+
const defaultProps$K = {
|
|
18610
18610
|
variant: "default"
|
|
18611
18611
|
};
|
|
18612
18612
|
const varsResolver$u = createVarsResolver((_, { radius }, { size: size2 }) => ({
|
|
@@ -18617,7 +18617,7 @@ const varsResolver$u = createVarsResolver((_, { radius }, { size: size2 }) => ({
|
|
|
18617
18617
|
}
|
|
18618
18618
|
}));
|
|
18619
18619
|
const Pill = factory((_props, ref) => {
|
|
18620
|
-
const props = useProps("Pill", defaultProps$
|
|
18620
|
+
const props = useProps("Pill", defaultProps$K, _props);
|
|
18621
18621
|
const {
|
|
18622
18622
|
classNames: classNames2,
|
|
18623
18623
|
className,
|
|
@@ -18703,11 +18703,11 @@ Pill.classes = classes$y;
|
|
|
18703
18703
|
Pill.displayName = "@mantine/core/Pill";
|
|
18704
18704
|
Pill.Group = PillGroup;
|
|
18705
18705
|
var classes$x = { "field": "m_45c4369d" };
|
|
18706
|
-
const defaultProps$
|
|
18706
|
+
const defaultProps$J = {
|
|
18707
18707
|
type: "visible"
|
|
18708
18708
|
};
|
|
18709
18709
|
const PillsInputField = factory((_props, ref) => {
|
|
18710
|
-
const props = useProps("PillsInputField", defaultProps$
|
|
18710
|
+
const props = useProps("PillsInputField", defaultProps$J, _props);
|
|
18711
18711
|
const {
|
|
18712
18712
|
classNames: classNames2,
|
|
18713
18713
|
className,
|
|
@@ -18758,11 +18758,11 @@ const PillsInputField = factory((_props, ref) => {
|
|
|
18758
18758
|
});
|
|
18759
18759
|
PillsInputField.classes = classes$x;
|
|
18760
18760
|
PillsInputField.displayName = "@mantine/core/PillsInputField";
|
|
18761
|
-
const defaultProps$
|
|
18761
|
+
const defaultProps$I = {
|
|
18762
18762
|
size: "sm"
|
|
18763
18763
|
};
|
|
18764
18764
|
const PillsInput = factory((_props, ref) => {
|
|
18765
|
-
const props = useProps("PillsInput", defaultProps$
|
|
18765
|
+
const props = useProps("PillsInput", defaultProps$I, _props);
|
|
18766
18766
|
const {
|
|
18767
18767
|
children,
|
|
18768
18768
|
onMouseDown,
|
|
@@ -18832,7 +18832,7 @@ const clearSectionOffset = {
|
|
|
18832
18832
|
lg: 72,
|
|
18833
18833
|
xl: 89
|
|
18834
18834
|
};
|
|
18835
|
-
const defaultProps$
|
|
18835
|
+
const defaultProps$H = {
|
|
18836
18836
|
maxValues: Infinity,
|
|
18837
18837
|
withCheckIcon: true,
|
|
18838
18838
|
checkIconPosition: "left",
|
|
@@ -18842,7 +18842,7 @@ const defaultProps$G = {
|
|
|
18842
18842
|
size: "sm"
|
|
18843
18843
|
};
|
|
18844
18844
|
const MultiSelect$1 = factory((_props, ref) => {
|
|
18845
|
-
const props = useProps("MultiSelect", defaultProps$
|
|
18845
|
+
const props = useProps("MultiSelect", defaultProps$H, _props);
|
|
18846
18846
|
const {
|
|
18847
18847
|
classNames: classNames2,
|
|
18848
18848
|
className,
|
|
@@ -19319,7 +19319,7 @@ const NavLink = polymorphicFactory((_props, ref) => {
|
|
|
19319
19319
|
NavLink.classes = classes$w;
|
|
19320
19320
|
NavLink.displayName = "@mantine/core/NavLink";
|
|
19321
19321
|
var classes$v = { "root": "m_a513464", "icon": "m_a4ceffb", "loader": "m_b0920b15", "body": "m_a49ed24", "title": "m_3feedf16", "description": "m_3d733a3a", "closeButton": "m_919a4d88" };
|
|
19322
|
-
const defaultProps$
|
|
19322
|
+
const defaultProps$G = {
|
|
19323
19323
|
withCloseButton: true
|
|
19324
19324
|
};
|
|
19325
19325
|
const varsResolver$s = createVarsResolver((theme2, { radius, color }) => ({
|
|
@@ -19329,7 +19329,7 @@ const varsResolver$s = createVarsResolver((theme2, { radius, color }) => ({
|
|
|
19329
19329
|
}
|
|
19330
19330
|
}));
|
|
19331
19331
|
const Notification = factory((_props, ref) => {
|
|
19332
|
-
const props = useProps("Notification", defaultProps$
|
|
19332
|
+
const props = useProps("Notification", defaultProps$G, _props);
|
|
19333
19333
|
const {
|
|
19334
19334
|
className,
|
|
19335
19335
|
color,
|
|
@@ -20459,7 +20459,7 @@ function isInRange$1(value, min2, max2) {
|
|
|
20459
20459
|
const maxValid = max2 === void 0 || value <= max2;
|
|
20460
20460
|
return minValid && maxValid;
|
|
20461
20461
|
}
|
|
20462
|
-
const defaultProps$
|
|
20462
|
+
const defaultProps$F = {
|
|
20463
20463
|
step: 1,
|
|
20464
20464
|
clampBehavior: "blur",
|
|
20465
20465
|
allowDecimal: true,
|
|
@@ -20494,7 +20494,7 @@ function clampAndSanitizeInput(sanitizedValue, max2, min2) {
|
|
|
20494
20494
|
return clamped;
|
|
20495
20495
|
}
|
|
20496
20496
|
const NumberInput = factory((_props, ref) => {
|
|
20497
|
-
const props = useProps("NumberInput", defaultProps$
|
|
20497
|
+
const props = useProps("NumberInput", defaultProps$F, _props);
|
|
20498
20498
|
const {
|
|
20499
20499
|
className,
|
|
20500
20500
|
classNames: classNames2,
|
|
@@ -20812,11 +20812,11 @@ var classes$t = { "root": "m_4addd315", "control": "m_326d024a", "dots": "m_4ad7
|
|
|
20812
20812
|
const [PaginationProvider, usePaginationContext] = createSafeContext(
|
|
20813
20813
|
"Pagination.Root component was not found in tree"
|
|
20814
20814
|
);
|
|
20815
|
-
const defaultProps$
|
|
20815
|
+
const defaultProps$E = {
|
|
20816
20816
|
withPadding: true
|
|
20817
20817
|
};
|
|
20818
20818
|
const PaginationControl = factory((_props, ref) => {
|
|
20819
|
-
const props = useProps("PaginationControl", defaultProps$
|
|
20819
|
+
const props = useProps("PaginationControl", defaultProps$E, _props);
|
|
20820
20820
|
const {
|
|
20821
20821
|
classNames: classNames2,
|
|
20822
20822
|
className,
|
|
@@ -20895,11 +20895,11 @@ const PaginationDotsIcon = (props) => /* @__PURE__ */ jsx(
|
|
|
20895
20895
|
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"
|
|
20896
20896
|
}
|
|
20897
20897
|
);
|
|
20898
|
-
const defaultProps$
|
|
20898
|
+
const defaultProps$D = {
|
|
20899
20899
|
icon: PaginationDotsIcon
|
|
20900
20900
|
};
|
|
20901
20901
|
const PaginationDots = factory((_props, ref) => {
|
|
20902
|
-
const props = useProps("PaginationDots", defaultProps$
|
|
20902
|
+
const props = useProps("PaginationDots", defaultProps$D, _props);
|
|
20903
20903
|
const { classNames: classNames2, className, style, styles, vars, icon: Icon, ...others } = props;
|
|
20904
20904
|
const ctx = usePaginationContext();
|
|
20905
20905
|
return /* @__PURE__ */ jsx(Box$1, { ref, ...ctx.getStyles("dots", { className, style, styles, classNames: classNames2 }), ...others, children: /* @__PURE__ */ jsx(
|
|
@@ -20990,7 +20990,7 @@ function PaginationItems({ dotsIcon }) {
|
|
|
20990
20990
|
return /* @__PURE__ */ jsx(Fragment$1, { children: items });
|
|
20991
20991
|
}
|
|
20992
20992
|
PaginationItems.displayName = "@mantine/core/PaginationItems";
|
|
20993
|
-
const defaultProps$
|
|
20993
|
+
const defaultProps$C = {
|
|
20994
20994
|
siblings: 1,
|
|
20995
20995
|
boundaries: 1
|
|
20996
20996
|
};
|
|
@@ -21006,7 +21006,7 @@ const varsResolver$q = createVarsResolver(
|
|
|
21006
21006
|
})
|
|
21007
21007
|
);
|
|
21008
21008
|
const PaginationRoot = factory((_props, ref) => {
|
|
21009
|
-
const props = useProps("PaginationRoot", defaultProps$
|
|
21009
|
+
const props = useProps("PaginationRoot", defaultProps$C, _props);
|
|
21010
21010
|
const {
|
|
21011
21011
|
classNames: classNames2,
|
|
21012
21012
|
className,
|
|
@@ -21079,7 +21079,7 @@ const PaginationRoot = factory((_props, ref) => {
|
|
|
21079
21079
|
});
|
|
21080
21080
|
PaginationRoot.classes = classes$t;
|
|
21081
21081
|
PaginationRoot.displayName = "@mantine/core/PaginationRoot";
|
|
21082
|
-
const defaultProps$
|
|
21082
|
+
const defaultProps$B = {
|
|
21083
21083
|
withControls: true,
|
|
21084
21084
|
withPages: true,
|
|
21085
21085
|
siblings: 1,
|
|
@@ -21087,7 +21087,7 @@ const defaultProps$A = {
|
|
|
21087
21087
|
gap: 8
|
|
21088
21088
|
};
|
|
21089
21089
|
const Pagination = factory((_props, ref) => {
|
|
21090
|
-
const props = useProps("Pagination", defaultProps$
|
|
21090
|
+
const props = useProps("Pagination", defaultProps$B, _props);
|
|
21091
21091
|
const {
|
|
21092
21092
|
withEdges,
|
|
21093
21093
|
withControls,
|
|
@@ -21145,7 +21145,7 @@ const PasswordToggleIcon = ({
|
|
|
21145
21145
|
)
|
|
21146
21146
|
}
|
|
21147
21147
|
);
|
|
21148
|
-
const defaultProps$
|
|
21148
|
+
const defaultProps$A = {
|
|
21149
21149
|
visibilityToggleIcon: PasswordToggleIcon
|
|
21150
21150
|
};
|
|
21151
21151
|
const varsResolver$p = createVarsResolver((_, { size: size2 }) => ({
|
|
@@ -21155,7 +21155,7 @@ const varsResolver$p = createVarsResolver((_, { size: size2 }) => ({
|
|
|
21155
21155
|
}
|
|
21156
21156
|
}));
|
|
21157
21157
|
const PasswordInput$1 = factory((_props, ref) => {
|
|
21158
|
-
const props = useProps("PasswordInput", defaultProps$
|
|
21158
|
+
const props = useProps("PasswordInput", defaultProps$A, _props);
|
|
21159
21159
|
const {
|
|
21160
21160
|
classNames: classNames2,
|
|
21161
21161
|
className,
|
|
@@ -21355,7 +21355,7 @@ const regex = {
|
|
|
21355
21355
|
number: /^[0-9]+$/,
|
|
21356
21356
|
alphanumeric: /^[a-zA-Z0-9]+$/i
|
|
21357
21357
|
};
|
|
21358
|
-
const defaultProps$
|
|
21358
|
+
const defaultProps$z = {
|
|
21359
21359
|
gap: "sm",
|
|
21360
21360
|
length: 4,
|
|
21361
21361
|
manageFocus: true,
|
|
@@ -21407,7 +21407,7 @@ const PinInput = factory((props, ref) => {
|
|
|
21407
21407
|
getInputProps,
|
|
21408
21408
|
attributes,
|
|
21409
21409
|
...others
|
|
21410
|
-
} = useProps("PinInput", defaultProps$
|
|
21410
|
+
} = useProps("PinInput", defaultProps$z, props);
|
|
21411
21411
|
const uuid2 = useId$1(id2);
|
|
21412
21412
|
const getStyles2 = useStyles({
|
|
21413
21413
|
name: "PinInput",
|
|
@@ -21681,7 +21681,7 @@ const ProgressRoot = factory((_props, ref) => {
|
|
|
21681
21681
|
});
|
|
21682
21682
|
ProgressRoot.classes = classes$q;
|
|
21683
21683
|
ProgressRoot.displayName = "@mantine/core/ProgressRoot";
|
|
21684
|
-
const defaultProps$
|
|
21684
|
+
const defaultProps$y = {
|
|
21685
21685
|
withAria: true
|
|
21686
21686
|
};
|
|
21687
21687
|
const ProgressSection = factory((props, ref) => {
|
|
@@ -21698,7 +21698,7 @@ const ProgressSection = factory((props, ref) => {
|
|
|
21698
21698
|
animated,
|
|
21699
21699
|
mod,
|
|
21700
21700
|
...others
|
|
21701
|
-
} = useProps("ProgressSection", defaultProps$
|
|
21701
|
+
} = useProps("ProgressSection", defaultProps$y, props);
|
|
21702
21702
|
const ctx = useProgressContext();
|
|
21703
21703
|
const theme2 = useMantineTheme();
|
|
21704
21704
|
const ariaAttributes = withAria ? {
|
|
@@ -21774,7 +21774,7 @@ var classes$p = { "root": "m_f3f1af94", "inner": "m_89c4f5e4", "icon": "m_f3ed6b
|
|
|
21774
21774
|
const [RadioGroupProvider, useRadioGroupContext] = createOptionalContext();
|
|
21775
21775
|
const [RadioCardProvider, useRadioCardContext] = createOptionalContext();
|
|
21776
21776
|
var classes$o = { "card": "m_9dc8ae12" };
|
|
21777
|
-
const defaultProps$
|
|
21777
|
+
const defaultProps$x = {
|
|
21778
21778
|
withBorder: true
|
|
21779
21779
|
};
|
|
21780
21780
|
const varsResolver$m = createVarsResolver((_, { radius }) => ({
|
|
@@ -21783,7 +21783,7 @@ const varsResolver$m = createVarsResolver((_, { radius }) => ({
|
|
|
21783
21783
|
}
|
|
21784
21784
|
}));
|
|
21785
21785
|
const RadioCard$1 = factory((_props, ref) => {
|
|
21786
|
-
const props = useProps("RadioCard", defaultProps$
|
|
21786
|
+
const props = useProps("RadioCard", defaultProps$x, _props);
|
|
21787
21787
|
const {
|
|
21788
21788
|
classNames: classNames2,
|
|
21789
21789
|
className,
|
|
@@ -21926,7 +21926,7 @@ function RadioIcon({ size: size2, style, ...others }) {
|
|
|
21926
21926
|
);
|
|
21927
21927
|
}
|
|
21928
21928
|
var classes$n = { "indicator": "m_717d7ff6", "icon": "m_3e4da632", "indicator--outline": "m_2980836c" };
|
|
21929
|
-
const defaultProps$
|
|
21929
|
+
const defaultProps$w = {
|
|
21930
21930
|
icon: RadioIcon
|
|
21931
21931
|
};
|
|
21932
21932
|
const varsResolver$l = createVarsResolver(
|
|
@@ -21945,7 +21945,7 @@ const varsResolver$l = createVarsResolver(
|
|
|
21945
21945
|
}
|
|
21946
21946
|
);
|
|
21947
21947
|
const RadioIndicator = factory((_props, ref) => {
|
|
21948
|
-
const props = useProps("RadioIndicator", defaultProps$
|
|
21948
|
+
const props = useProps("RadioIndicator", defaultProps$w, _props);
|
|
21949
21949
|
const {
|
|
21950
21950
|
classNames: classNames2,
|
|
21951
21951
|
className,
|
|
@@ -21995,7 +21995,7 @@ const RadioIndicator = factory((_props, ref) => {
|
|
|
21995
21995
|
});
|
|
21996
21996
|
RadioIndicator.displayName = "@mantine/core/RadioIndicator";
|
|
21997
21997
|
RadioIndicator.classes = classes$n;
|
|
21998
|
-
const defaultProps$
|
|
21998
|
+
const defaultProps$v = {
|
|
21999
21999
|
labelPosition: "right"
|
|
22000
22000
|
};
|
|
22001
22001
|
const varsResolver$k = createVarsResolver(
|
|
@@ -22014,7 +22014,7 @@ const varsResolver$k = createVarsResolver(
|
|
|
22014
22014
|
}
|
|
22015
22015
|
);
|
|
22016
22016
|
const Radio$1 = factory((_props, ref) => {
|
|
22017
|
-
const props = useProps("Radio", defaultProps$
|
|
22017
|
+
const props = useProps("Radio", defaultProps$v, _props);
|
|
22018
22018
|
const {
|
|
22019
22019
|
classNames: classNames2,
|
|
22020
22020
|
className,
|
|
@@ -22181,7 +22181,7 @@ function useFloatingTooltip({
|
|
|
22181
22181
|
}, [elements.reference, refs.floating.current, update, handleMouseMove, opened]);
|
|
22182
22182
|
return { handleMouseMove, x, y, opened, setOpened, boundaryRef, floating: refs.setFloating };
|
|
22183
22183
|
}
|
|
22184
|
-
const defaultProps$
|
|
22184
|
+
const defaultProps$u = {
|
|
22185
22185
|
refProp: "ref",
|
|
22186
22186
|
withinPortal: true,
|
|
22187
22187
|
offset: 10,
|
|
@@ -22196,7 +22196,7 @@ const varsResolver$j = createVarsResolver((theme2, { radius, color }) => ({
|
|
|
22196
22196
|
}
|
|
22197
22197
|
}));
|
|
22198
22198
|
const TooltipFloating = factory((_props, ref) => {
|
|
22199
|
-
const props = useProps("TooltipFloating", defaultProps$
|
|
22199
|
+
const props = useProps("TooltipFloating", defaultProps$u, _props);
|
|
22200
22200
|
const {
|
|
22201
22201
|
children,
|
|
22202
22202
|
refProp,
|
|
@@ -22291,12 +22291,12 @@ TooltipFloating.displayName = "@mantine/core/TooltipFloating";
|
|
|
22291
22291
|
const TooltipGroupContext = createContext(false);
|
|
22292
22292
|
const TooltipGroupProvider = TooltipGroupContext.Provider;
|
|
22293
22293
|
const useTooltipGroupContext = () => useContext(TooltipGroupContext);
|
|
22294
|
-
const defaultProps$
|
|
22294
|
+
const defaultProps$t = {
|
|
22295
22295
|
openDelay: 0,
|
|
22296
22296
|
closeDelay: 0
|
|
22297
22297
|
};
|
|
22298
22298
|
function TooltipGroup(props) {
|
|
22299
|
-
const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$
|
|
22299
|
+
const { openDelay, closeDelay, children } = useProps("TooltipGroup", defaultProps$t, props);
|
|
22300
22300
|
return /* @__PURE__ */ jsx(TooltipGroupProvider, { value: true, children: /* @__PURE__ */ jsx(FloatingDelayGroup, { delay: { open: openDelay, close: closeDelay }, children }) });
|
|
22301
22301
|
}
|
|
22302
22302
|
TooltipGroup.displayName = "@mantine/core/TooltipGroup";
|
|
@@ -22399,7 +22399,7 @@ function useTooltip(settings) {
|
|
|
22399
22399
|
placement
|
|
22400
22400
|
};
|
|
22401
22401
|
}
|
|
22402
|
-
const defaultProps$
|
|
22402
|
+
const defaultProps$s = {
|
|
22403
22403
|
position: "top",
|
|
22404
22404
|
refProp: "ref",
|
|
22405
22405
|
withinPortal: true,
|
|
@@ -22432,7 +22432,7 @@ const varsResolver$i = createVarsResolver(
|
|
|
22432
22432
|
}
|
|
22433
22433
|
);
|
|
22434
22434
|
const Tooltip$1 = factory((_props, ref) => {
|
|
22435
|
-
const props = useProps("Tooltip", defaultProps$
|
|
22435
|
+
const props = useProps("Tooltip", defaultProps$s, _props);
|
|
22436
22436
|
const {
|
|
22437
22437
|
children,
|
|
22438
22438
|
position,
|
|
@@ -22480,7 +22480,7 @@ const Tooltip$1 = factory((_props, ref) => {
|
|
|
22480
22480
|
attributes,
|
|
22481
22481
|
target,
|
|
22482
22482
|
...others
|
|
22483
|
-
} = useProps("Tooltip", defaultProps$
|
|
22483
|
+
} = useProps("Tooltip", defaultProps$s, props);
|
|
22484
22484
|
const { dir } = useDirection();
|
|
22485
22485
|
const arrowRef = useRef(null);
|
|
22486
22486
|
const tooltip = useTooltip({
|
|
@@ -22647,7 +22647,7 @@ Tooltip$1.displayName = "@mantine/core/Tooltip";
|
|
|
22647
22647
|
Tooltip$1.Floating = TooltipFloating;
|
|
22648
22648
|
Tooltip$1.Group = TooltipGroup;
|
|
22649
22649
|
var classes$l = { "root": "m_cf365364", "indicator": "m_9e182ccd", "label": "m_1738fcb2", "input": "m_1714d588", "control": "m_69686b9b", "innerLabel": "m_78882f40" };
|
|
22650
|
-
const defaultProps$
|
|
22650
|
+
const defaultProps$r = {
|
|
22651
22651
|
withItemsBorders: true
|
|
22652
22652
|
};
|
|
22653
22653
|
const varsResolver$h = createVarsResolver(
|
|
@@ -22664,7 +22664,7 @@ const varsResolver$h = createVarsResolver(
|
|
|
22664
22664
|
})
|
|
22665
22665
|
);
|
|
22666
22666
|
const SegmentedControl = factory((_props, ref) => {
|
|
22667
|
-
const props = useProps("SegmentedControl", defaultProps$
|
|
22667
|
+
const props = useProps("SegmentedControl", defaultProps$r, _props);
|
|
22668
22668
|
const {
|
|
22669
22669
|
classNames: classNames2,
|
|
22670
22670
|
className,
|
|
@@ -22812,14 +22812,14 @@ const SegmentedControl = factory((_props, ref) => {
|
|
|
22812
22812
|
});
|
|
22813
22813
|
SegmentedControl.classes = classes$l;
|
|
22814
22814
|
SegmentedControl.displayName = "@mantine/core/SegmentedControl";
|
|
22815
|
-
const defaultProps$
|
|
22815
|
+
const defaultProps$q = {
|
|
22816
22816
|
withCheckIcon: true,
|
|
22817
22817
|
allowDeselect: true,
|
|
22818
22818
|
checkIconPosition: "left",
|
|
22819
22819
|
openOnFocus: true
|
|
22820
22820
|
};
|
|
22821
22821
|
const Select$1 = factory((_props, ref) => {
|
|
22822
|
-
const props = useProps("Select", defaultProps$
|
|
22822
|
+
const props = useProps("Select", defaultProps$q, _props);
|
|
22823
22823
|
const {
|
|
22824
22824
|
classNames: classNames2,
|
|
22825
22825
|
styles,
|
|
@@ -23179,13 +23179,13 @@ function SimpleGridContainerVariables({
|
|
|
23179
23179
|
}));
|
|
23180
23180
|
return /* @__PURE__ */ jsx(InlineStyles, { styles: baseStyles, container: media, selector });
|
|
23181
23181
|
}
|
|
23182
|
-
const defaultProps$
|
|
23182
|
+
const defaultProps$p = {
|
|
23183
23183
|
cols: 1,
|
|
23184
23184
|
spacing: "md",
|
|
23185
23185
|
type: "media"
|
|
23186
23186
|
};
|
|
23187
23187
|
const SimpleGrid = factory((_props, ref) => {
|
|
23188
|
-
const props = useProps("SimpleGrid", defaultProps$
|
|
23188
|
+
const props = useProps("SimpleGrid", defaultProps$p, _props);
|
|
23189
23189
|
const {
|
|
23190
23190
|
classNames: classNames2,
|
|
23191
23191
|
className,
|
|
@@ -23227,7 +23227,7 @@ const SimpleGrid = factory((_props, ref) => {
|
|
|
23227
23227
|
SimpleGrid.classes = classes$k;
|
|
23228
23228
|
SimpleGrid.displayName = "@mantine/core/SimpleGrid";
|
|
23229
23229
|
var classes$j = { "root": "m_18320242", "skeleton-fade": "m_299c329c" };
|
|
23230
|
-
const defaultProps$
|
|
23230
|
+
const defaultProps$o = {
|
|
23231
23231
|
visible: true,
|
|
23232
23232
|
animate: true
|
|
23233
23233
|
};
|
|
@@ -23241,7 +23241,7 @@ const varsResolver$g = createVarsResolver(
|
|
|
23241
23241
|
})
|
|
23242
23242
|
);
|
|
23243
23243
|
const Skeleton$1 = factory((_props, ref) => {
|
|
23244
|
-
const props = useProps("Skeleton", defaultProps$
|
|
23244
|
+
const props = useProps("Skeleton", defaultProps$o, _props);
|
|
23245
23245
|
const {
|
|
23246
23246
|
classNames: classNames2,
|
|
23247
23247
|
className,
|
|
@@ -23467,7 +23467,7 @@ function getLastMarkValue(marks) {
|
|
|
23467
23467
|
const sortedMarks = [...marks].sort((a, b) => a.value - b.value);
|
|
23468
23468
|
return sortedMarks.length > 0 ? sortedMarks[sortedMarks.length - 1].value : 100;
|
|
23469
23469
|
}
|
|
23470
|
-
const defaultProps$
|
|
23470
|
+
const defaultProps$n = {
|
|
23471
23471
|
radius: "xl",
|
|
23472
23472
|
min: 0,
|
|
23473
23473
|
max: 100,
|
|
@@ -23491,7 +23491,7 @@ const varsResolver$f = createVarsResolver(
|
|
|
23491
23491
|
})
|
|
23492
23492
|
);
|
|
23493
23493
|
const Slider$1 = factory((_props, ref) => {
|
|
23494
|
-
const props = useProps("Slider", defaultProps$
|
|
23494
|
+
const props = useProps("Slider", defaultProps$n, _props);
|
|
23495
23495
|
const {
|
|
23496
23496
|
classNames: classNames2,
|
|
23497
23497
|
styles,
|
|
@@ -23758,7 +23758,7 @@ const Space = factory((props, ref) => {
|
|
|
23758
23758
|
});
|
|
23759
23759
|
Space.displayName = "@mantine/core/Space";
|
|
23760
23760
|
var classes$h = { "root": "m_6d731127" };
|
|
23761
|
-
const defaultProps$
|
|
23761
|
+
const defaultProps$m = {
|
|
23762
23762
|
gap: "md",
|
|
23763
23763
|
align: "stretch",
|
|
23764
23764
|
justify: "flex-start"
|
|
@@ -23771,7 +23771,7 @@ const varsResolver$e = createVarsResolver((_, { gap, align, justify }) => ({
|
|
|
23771
23771
|
}
|
|
23772
23772
|
}));
|
|
23773
23773
|
const Stack$2 = factory((_props, ref) => {
|
|
23774
|
-
const props = useProps("Stack", defaultProps$
|
|
23774
|
+
const props = useProps("Stack", defaultProps$m, _props);
|
|
23775
23775
|
const {
|
|
23776
23776
|
classNames: classNames2,
|
|
23777
23777
|
className,
|
|
@@ -23815,7 +23815,7 @@ const getStepFragment = (Fragment2, step) => {
|
|
|
23815
23815
|
}
|
|
23816
23816
|
return Fragment2;
|
|
23817
23817
|
};
|
|
23818
|
-
const defaultProps$
|
|
23818
|
+
const defaultProps$l = {
|
|
23819
23819
|
withIcon: true,
|
|
23820
23820
|
allowStepClick: true,
|
|
23821
23821
|
iconPosition: "left"
|
|
@@ -23844,7 +23844,7 @@ const StepperStep = factory((props, ref) => {
|
|
|
23844
23844
|
orientation,
|
|
23845
23845
|
mod,
|
|
23846
23846
|
...others
|
|
23847
|
-
} = useProps("StepperStep", defaultProps$
|
|
23847
|
+
} = useProps("StepperStep", defaultProps$l, props);
|
|
23848
23848
|
const ctx = useStepperContext();
|
|
23849
23849
|
const theme2 = useMantineTheme();
|
|
23850
23850
|
const stylesApi = { classNames: classNames2, styles };
|
|
@@ -23918,7 +23918,7 @@ const StepperStep = factory((props, ref) => {
|
|
|
23918
23918
|
});
|
|
23919
23919
|
StepperStep.classes = classes$g;
|
|
23920
23920
|
StepperStep.displayName = "@mantine/core/StepperStep";
|
|
23921
|
-
const defaultProps$
|
|
23921
|
+
const defaultProps$k = {
|
|
23922
23922
|
orientation: "horizontal",
|
|
23923
23923
|
iconPosition: "left",
|
|
23924
23924
|
allowNextStepsSelect: true,
|
|
@@ -23938,7 +23938,7 @@ const varsResolver$d = createVarsResolver(
|
|
|
23938
23938
|
})
|
|
23939
23939
|
);
|
|
23940
23940
|
const Stepper = factory((_props, ref) => {
|
|
23941
|
-
const props = useProps("Stepper", defaultProps$
|
|
23941
|
+
const props = useProps("Stepper", defaultProps$k, _props);
|
|
23942
23942
|
const {
|
|
23943
23943
|
classNames: classNames2,
|
|
23944
23944
|
className,
|
|
@@ -24097,7 +24097,7 @@ const SwitchGroup = factory((props, ref) => {
|
|
|
24097
24097
|
});
|
|
24098
24098
|
SwitchGroup.classes = Input.Wrapper.classes;
|
|
24099
24099
|
SwitchGroup.displayName = "@mantine/core/SwitchGroup";
|
|
24100
|
-
const defaultProps$
|
|
24100
|
+
const defaultProps$j = {
|
|
24101
24101
|
labelPosition: "right",
|
|
24102
24102
|
withThumbIndicator: true
|
|
24103
24103
|
};
|
|
@@ -24113,7 +24113,7 @@ const varsResolver$c = createVarsResolver((theme2, { radius, color, size: size2
|
|
|
24113
24113
|
}
|
|
24114
24114
|
}));
|
|
24115
24115
|
const Switch$1 = factory((_props, ref) => {
|
|
24116
|
-
const props = useProps("Switch", defaultProps$
|
|
24116
|
+
const props = useProps("Switch", defaultProps$j, _props);
|
|
24117
24117
|
const {
|
|
24118
24118
|
classNames: classNames2,
|
|
24119
24119
|
className,
|
|
@@ -24317,7 +24317,7 @@ function TableDataRenderer({ data }) {
|
|
|
24317
24317
|
] });
|
|
24318
24318
|
}
|
|
24319
24319
|
TableDataRenderer.displayName = "@mantine/core/TableDataRenderer";
|
|
24320
|
-
const defaultProps$
|
|
24320
|
+
const defaultProps$i = {
|
|
24321
24321
|
type: "scrollarea"
|
|
24322
24322
|
};
|
|
24323
24323
|
const varsResolver$b = createVarsResolver(
|
|
@@ -24330,7 +24330,7 @@ const varsResolver$b = createVarsResolver(
|
|
|
24330
24330
|
})
|
|
24331
24331
|
);
|
|
24332
24332
|
const TableScrollContainer = factory((_props, ref) => {
|
|
24333
|
-
const props = useProps("TableScrollContainer", defaultProps$
|
|
24333
|
+
const props = useProps("TableScrollContainer", defaultProps$i, _props);
|
|
24334
24334
|
const {
|
|
24335
24335
|
classNames: classNames2,
|
|
24336
24336
|
className,
|
|
@@ -24374,7 +24374,7 @@ const TableScrollContainer = factory((_props, ref) => {
|
|
|
24374
24374
|
});
|
|
24375
24375
|
TableScrollContainer.classes = classes$e;
|
|
24376
24376
|
TableScrollContainer.displayName = "@mantine/core/TableScrollContainer";
|
|
24377
|
-
const defaultProps$
|
|
24377
|
+
const defaultProps$h = {
|
|
24378
24378
|
withRowBorders: true,
|
|
24379
24379
|
verticalSpacing: 7
|
|
24380
24380
|
};
|
|
@@ -24405,7 +24405,7 @@ const varsResolver$a = createVarsResolver(
|
|
|
24405
24405
|
})
|
|
24406
24406
|
);
|
|
24407
24407
|
const Table$1 = factory((_props, ref) => {
|
|
24408
|
-
const props = useProps("Table", defaultProps$
|
|
24408
|
+
const props = useProps("Table", defaultProps$h, _props);
|
|
24409
24409
|
const {
|
|
24410
24410
|
classNames: classNames2,
|
|
24411
24411
|
className,
|
|
@@ -24630,7 +24630,7 @@ const TabsTab = factory((_props, ref) => {
|
|
|
24630
24630
|
TabsTab.classes = classes$d;
|
|
24631
24631
|
TabsTab.displayName = "@mantine/core/TabsTab";
|
|
24632
24632
|
const VALUE_ERROR = "Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value";
|
|
24633
|
-
const defaultProps$
|
|
24633
|
+
const defaultProps$g = {
|
|
24634
24634
|
keepMounted: true,
|
|
24635
24635
|
orientation: "horizontal",
|
|
24636
24636
|
loop: true,
|
|
@@ -24646,7 +24646,7 @@ const varsResolver$9 = createVarsResolver((theme2, { radius, color, autoContrast
|
|
|
24646
24646
|
}
|
|
24647
24647
|
}));
|
|
24648
24648
|
const Tabs$1 = factory((_props, ref) => {
|
|
24649
|
-
const props = useProps("Tabs", defaultProps$
|
|
24649
|
+
const props = useProps("Tabs", defaultProps$g, _props);
|
|
24650
24650
|
const {
|
|
24651
24651
|
defaultValue,
|
|
24652
24652
|
value,
|
|
@@ -24824,7 +24824,7 @@ function getTitleSize(order, size2) {
|
|
|
24824
24824
|
};
|
|
24825
24825
|
}
|
|
24826
24826
|
var classes$b = { "root": "m_8a5d1357" };
|
|
24827
|
-
const defaultProps$
|
|
24827
|
+
const defaultProps$f = {
|
|
24828
24828
|
order: 1
|
|
24829
24829
|
};
|
|
24830
24830
|
const varsResolver$7 = createVarsResolver((_, { order, size: size2, lineClamp, textWrap }) => {
|
|
@@ -24840,7 +24840,7 @@ const varsResolver$7 = createVarsResolver((_, { order, size: size2, lineClamp, t
|
|
|
24840
24840
|
};
|
|
24841
24841
|
});
|
|
24842
24842
|
const Title = factory((_props, ref) => {
|
|
24843
|
-
const props = useProps("Title", defaultProps$
|
|
24843
|
+
const props = useProps("Title", defaultProps$f, _props);
|
|
24844
24844
|
const {
|
|
24845
24845
|
classNames: classNames2,
|
|
24846
24846
|
className,
|
|
@@ -25001,7 +25001,7 @@ const NotificationContainer = forwardRef(
|
|
|
25001
25001
|
NotificationContainer.displayName = "@mantine/notifications/NotificationContainer";
|
|
25002
25002
|
var classes$a = { "root": "m_b37d9ac7", "notification": "m_5ed0edd0" };
|
|
25003
25003
|
const Transition = Transition$2;
|
|
25004
|
-
const defaultProps$
|
|
25004
|
+
const defaultProps$e = {
|
|
25005
25005
|
position: "bottom-right",
|
|
25006
25006
|
autoClose: 4e3,
|
|
25007
25007
|
transitionDuration: 250,
|
|
@@ -25019,7 +25019,7 @@ const varsResolver$6 = createVarsResolver((_, { zIndex, containerWidth }) => ({
|
|
|
25019
25019
|
}
|
|
25020
25020
|
}));
|
|
25021
25021
|
const Notifications = factory((_props, ref) => {
|
|
25022
|
-
const props = useProps("Notifications", defaultProps$
|
|
25022
|
+
const props = useProps("Notifications", defaultProps$e, _props);
|
|
25023
25023
|
const {
|
|
25024
25024
|
classNames: classNames2,
|
|
25025
25025
|
className,
|
|
@@ -41025,7 +41025,7 @@ function getWeekNumber(week) {
|
|
|
41025
41025
|
return dayjs(monday).isoWeek();
|
|
41026
41026
|
}
|
|
41027
41027
|
var classes$7 = { "month": "m_cc9820d3", "monthCell": "m_8f457cd5", "weekNumber": "m_6cff9dea" };
|
|
41028
|
-
const defaultProps$
|
|
41028
|
+
const defaultProps$d = {
|
|
41029
41029
|
withCellSpacing: true
|
|
41030
41030
|
};
|
|
41031
41031
|
const varsResolver$3 = createVarsResolver((_, { size: size2 }) => ({
|
|
@@ -41035,7 +41035,7 @@ const varsResolver$3 = createVarsResolver((_, { size: size2 }) => ({
|
|
|
41035
41035
|
}
|
|
41036
41036
|
}));
|
|
41037
41037
|
const Month = factory((_props, ref) => {
|
|
41038
|
-
const props = useProps("Month", defaultProps$
|
|
41038
|
+
const props = useProps("Month", defaultProps$d, _props);
|
|
41039
41039
|
const {
|
|
41040
41040
|
classNames: classNames2,
|
|
41041
41041
|
className,
|
|
@@ -41292,12 +41292,12 @@ function getYearsData(decade) {
|
|
|
41292
41292
|
return results;
|
|
41293
41293
|
}
|
|
41294
41294
|
var classes$5 = { "yearsList": "m_9206547b", "yearsListCell": "m_c5a19c7d" };
|
|
41295
|
-
const defaultProps$
|
|
41295
|
+
const defaultProps$c = {
|
|
41296
41296
|
yearsListFormat: "YYYY",
|
|
41297
41297
|
withCellSpacing: true
|
|
41298
41298
|
};
|
|
41299
41299
|
const YearsList = factory((_props, ref) => {
|
|
41300
|
-
const props = useProps("YearsList", defaultProps$
|
|
41300
|
+
const props = useProps("YearsList", defaultProps$c, _props);
|
|
41301
41301
|
const {
|
|
41302
41302
|
classNames: classNames2,
|
|
41303
41303
|
className,
|
|
@@ -41441,12 +41441,12 @@ function getMonthsData(year) {
|
|
|
41441
41441
|
return results;
|
|
41442
41442
|
}
|
|
41443
41443
|
var classes$4 = { "monthsList": "m_2a6c32d", "monthsListCell": "m_fe27622f" };
|
|
41444
|
-
const defaultProps$
|
|
41444
|
+
const defaultProps$b = {
|
|
41445
41445
|
monthsListFormat: "MMM",
|
|
41446
41446
|
withCellSpacing: true
|
|
41447
41447
|
};
|
|
41448
41448
|
const MonthsList = factory((_props, ref) => {
|
|
41449
|
-
const props = useProps("MonthsList", defaultProps$
|
|
41449
|
+
const props = useProps("MonthsList", defaultProps$b, _props);
|
|
41450
41450
|
const {
|
|
41451
41451
|
classNames: classNames2,
|
|
41452
41452
|
className,
|
|
@@ -41552,7 +41552,7 @@ const MonthsList = factory((_props, ref) => {
|
|
|
41552
41552
|
MonthsList.classes = classes$4;
|
|
41553
41553
|
MonthsList.displayName = "@mantine/dates/MonthsList";
|
|
41554
41554
|
var classes$3 = { "calendarHeader": "m_730a79ed", "calendarHeaderLevel": "m_f6645d97", "calendarHeaderControl": "m_2351eeb0", "calendarHeaderControlIcon": "m_367dc749" };
|
|
41555
|
-
const defaultProps$
|
|
41555
|
+
const defaultProps$a = {
|
|
41556
41556
|
hasNextLevel: true,
|
|
41557
41557
|
withNext: true,
|
|
41558
41558
|
withPrevious: true,
|
|
@@ -41565,7 +41565,7 @@ const varsResolver$1 = createVarsResolver((_, { size: size2 }) => ({
|
|
|
41565
41565
|
}
|
|
41566
41566
|
}));
|
|
41567
41567
|
const CalendarHeader = factory((_props, ref) => {
|
|
41568
|
-
const props = useProps("CalendarHeader", defaultProps$
|
|
41568
|
+
const props = useProps("CalendarHeader", defaultProps$a, _props);
|
|
41569
41569
|
const {
|
|
41570
41570
|
classNames: classNames2,
|
|
41571
41571
|
className,
|
|
@@ -41694,11 +41694,11 @@ function getDecadeRange(decade) {
|
|
|
41694
41694
|
const years = getYearsData(decade);
|
|
41695
41695
|
return [years[0][0], years[3][0]];
|
|
41696
41696
|
}
|
|
41697
|
-
const defaultProps$
|
|
41697
|
+
const defaultProps$9 = {
|
|
41698
41698
|
decadeLabelFormat: "YYYY"
|
|
41699
41699
|
};
|
|
41700
41700
|
const DecadeLevel = factory((_props, ref) => {
|
|
41701
|
-
const props = useProps("DecadeLevel", defaultProps$
|
|
41701
|
+
const props = useProps("DecadeLevel", defaultProps$9, _props);
|
|
41702
41702
|
const {
|
|
41703
41703
|
// YearsList settings
|
|
41704
41704
|
decade,
|
|
@@ -41799,11 +41799,11 @@ const DecadeLevel = factory((_props, ref) => {
|
|
|
41799
41799
|
});
|
|
41800
41800
|
DecadeLevel.classes = { ...YearsList.classes, ...CalendarHeader.classes };
|
|
41801
41801
|
DecadeLevel.displayName = "@mantine/dates/DecadeLevel";
|
|
41802
|
-
const defaultProps$
|
|
41802
|
+
const defaultProps$8 = {
|
|
41803
41803
|
yearLabelFormat: "YYYY"
|
|
41804
41804
|
};
|
|
41805
41805
|
const YearLevel = factory((_props, ref) => {
|
|
41806
|
-
const props = useProps("YearLevel", defaultProps$
|
|
41806
|
+
const props = useProps("YearLevel", defaultProps$8, _props);
|
|
41807
41807
|
const {
|
|
41808
41808
|
// MonthsList settings
|
|
41809
41809
|
year,
|
|
@@ -41902,11 +41902,11 @@ const YearLevel = factory((_props, ref) => {
|
|
|
41902
41902
|
});
|
|
41903
41903
|
YearLevel.classes = { ...CalendarHeader.classes, ...MonthsList.classes };
|
|
41904
41904
|
YearLevel.displayName = "@mantine/dates/YearLevel";
|
|
41905
|
-
const defaultProps$
|
|
41905
|
+
const defaultProps$7 = {
|
|
41906
41906
|
monthLabelFormat: "MMMM YYYY"
|
|
41907
41907
|
};
|
|
41908
41908
|
const MonthLevel = factory((_props, ref) => {
|
|
41909
|
-
const props = useProps("MonthLevel", defaultProps$
|
|
41909
|
+
const props = useProps("MonthLevel", defaultProps$7, _props);
|
|
41910
41910
|
const {
|
|
41911
41911
|
// Month settings
|
|
41912
41912
|
month,
|
|
@@ -42056,11 +42056,11 @@ const LevelsGroup = factory((_props, ref) => {
|
|
|
42056
42056
|
});
|
|
42057
42057
|
LevelsGroup.classes = classes$2;
|
|
42058
42058
|
LevelsGroup.displayName = "@mantine/dates/LevelsGroup";
|
|
42059
|
-
const defaultProps$
|
|
42059
|
+
const defaultProps$6 = {
|
|
42060
42060
|
numberOfColumns: 1
|
|
42061
42061
|
};
|
|
42062
42062
|
const DecadeLevelGroup = factory((_props, ref) => {
|
|
42063
|
-
const props = useProps("DecadeLevelGroup", defaultProps$
|
|
42063
|
+
const props = useProps("DecadeLevelGroup", defaultProps$6, _props);
|
|
42064
42064
|
const {
|
|
42065
42065
|
// DecadeLevel settings
|
|
42066
42066
|
decade,
|
|
@@ -42170,11 +42170,11 @@ const DecadeLevelGroup = factory((_props, ref) => {
|
|
|
42170
42170
|
});
|
|
42171
42171
|
DecadeLevelGroup.classes = { ...LevelsGroup.classes, ...DecadeLevel.classes };
|
|
42172
42172
|
DecadeLevelGroup.displayName = "@mantine/dates/DecadeLevelGroup";
|
|
42173
|
-
const defaultProps$
|
|
42173
|
+
const defaultProps$5 = {
|
|
42174
42174
|
numberOfColumns: 1
|
|
42175
42175
|
};
|
|
42176
42176
|
const YearLevelGroup = factory((_props, ref) => {
|
|
42177
|
-
const props = useProps("YearLevelGroup", defaultProps$
|
|
42177
|
+
const props = useProps("YearLevelGroup", defaultProps$5, _props);
|
|
42178
42178
|
const {
|
|
42179
42179
|
// YearLevel settings
|
|
42180
42180
|
year,
|
|
@@ -42288,11 +42288,11 @@ const YearLevelGroup = factory((_props, ref) => {
|
|
|
42288
42288
|
});
|
|
42289
42289
|
YearLevelGroup.classes = { ...YearLevel.classes, ...LevelsGroup.classes };
|
|
42290
42290
|
YearLevelGroup.displayName = "@mantine/dates/YearLevelGroup";
|
|
42291
|
-
const defaultProps$
|
|
42291
|
+
const defaultProps$4 = {
|
|
42292
42292
|
numberOfColumns: 1
|
|
42293
42293
|
};
|
|
42294
42294
|
const MonthLevelGroup = factory((_props, ref) => {
|
|
42295
|
-
const props = useProps("MonthLevelGroup", defaultProps$
|
|
42295
|
+
const props = useProps("MonthLevelGroup", defaultProps$4, _props);
|
|
42296
42296
|
const {
|
|
42297
42297
|
// Month settings
|
|
42298
42298
|
month,
|
|
@@ -42586,7 +42586,7 @@ function clampLevel(level, minLevel, maxLevel) {
|
|
|
42586
42586
|
)
|
|
42587
42587
|
);
|
|
42588
42588
|
}
|
|
42589
|
-
const defaultProps$
|
|
42589
|
+
const defaultProps$3 = {
|
|
42590
42590
|
maxLevel: "decade",
|
|
42591
42591
|
minLevel: "month",
|
|
42592
42592
|
__updateDateOnYearSelect: true,
|
|
@@ -42594,7 +42594,7 @@ const defaultProps$2 = {
|
|
|
42594
42594
|
enableKeyboardNavigation: true
|
|
42595
42595
|
};
|
|
42596
42596
|
const Calendar = factory((_props, ref) => {
|
|
42597
|
-
const props = useProps("Calendar", defaultProps$
|
|
42597
|
+
const props = useProps("Calendar", defaultProps$3, _props);
|
|
42598
42598
|
const {
|
|
42599
42599
|
// CalendarLevel props
|
|
42600
42600
|
vars,
|
|
@@ -43182,14 +43182,14 @@ const varsResolver = createVarsResolver((_, { size: size2 }) => ({
|
|
|
43182
43182
|
"--preset-font-size": getFontSize(size2)
|
|
43183
43183
|
}
|
|
43184
43184
|
}));
|
|
43185
|
-
const defaultProps$
|
|
43185
|
+
const defaultProps$2 = {
|
|
43186
43186
|
type: "default",
|
|
43187
43187
|
defaultLevel: "month",
|
|
43188
43188
|
numberOfColumns: 1,
|
|
43189
43189
|
size: "sm"
|
|
43190
43190
|
};
|
|
43191
43191
|
const DatePicker$1 = factory((_props, ref) => {
|
|
43192
|
-
const props = useProps("DatePicker", defaultProps$
|
|
43192
|
+
const props = useProps("DatePicker", defaultProps$2, _props);
|
|
43193
43193
|
const {
|
|
43194
43194
|
allowDeselect,
|
|
43195
43195
|
allowSingleDateInRange,
|
|
@@ -43313,6 +43313,249 @@ const DatePicker$1 = factory((_props, ref) => {
|
|
|
43313
43313
|
});
|
|
43314
43314
|
DatePicker$1.classes = Calendar.classes;
|
|
43315
43315
|
DatePicker$1.displayName = "@mantine/dates/DatePicker";
|
|
43316
|
+
function dateStringParser(dateString) {
|
|
43317
|
+
if (dateString === null) {
|
|
43318
|
+
return null;
|
|
43319
|
+
}
|
|
43320
|
+
const date2 = new Date(dateString);
|
|
43321
|
+
if (Number.isNaN(date2.getTime()) || !dateString) {
|
|
43322
|
+
return null;
|
|
43323
|
+
}
|
|
43324
|
+
return dayjs(date2).format("YYYY-MM-DD");
|
|
43325
|
+
}
|
|
43326
|
+
function isDateValid({ date: date2, maxDate, minDate }) {
|
|
43327
|
+
if (date2 == null) {
|
|
43328
|
+
return false;
|
|
43329
|
+
}
|
|
43330
|
+
if (Number.isNaN(new Date(date2).getTime())) {
|
|
43331
|
+
return false;
|
|
43332
|
+
}
|
|
43333
|
+
if (maxDate && dayjs(date2).isAfter(maxDate, "date")) {
|
|
43334
|
+
return false;
|
|
43335
|
+
}
|
|
43336
|
+
if (minDate && dayjs(date2).isBefore(minDate, "date")) {
|
|
43337
|
+
return false;
|
|
43338
|
+
}
|
|
43339
|
+
return true;
|
|
43340
|
+
}
|
|
43341
|
+
const defaultProps$1 = {
|
|
43342
|
+
valueFormat: "MMMM D, YYYY",
|
|
43343
|
+
fixOnBlur: true,
|
|
43344
|
+
size: "sm"
|
|
43345
|
+
};
|
|
43346
|
+
const DateInput = factory((_props, ref) => {
|
|
43347
|
+
const props = useInputProps("DateInput", defaultProps$1, _props);
|
|
43348
|
+
const {
|
|
43349
|
+
inputProps,
|
|
43350
|
+
wrapperProps,
|
|
43351
|
+
value,
|
|
43352
|
+
defaultValue,
|
|
43353
|
+
onChange,
|
|
43354
|
+
clearable,
|
|
43355
|
+
clearButtonProps,
|
|
43356
|
+
popoverProps,
|
|
43357
|
+
getDayProps,
|
|
43358
|
+
locale,
|
|
43359
|
+
valueFormat,
|
|
43360
|
+
dateParser,
|
|
43361
|
+
minDate,
|
|
43362
|
+
maxDate,
|
|
43363
|
+
fixOnBlur,
|
|
43364
|
+
onFocus,
|
|
43365
|
+
onBlur,
|
|
43366
|
+
onClick,
|
|
43367
|
+
onKeyDown,
|
|
43368
|
+
readOnly,
|
|
43369
|
+
name,
|
|
43370
|
+
form,
|
|
43371
|
+
rightSection,
|
|
43372
|
+
unstyled,
|
|
43373
|
+
classNames: classNames2,
|
|
43374
|
+
styles,
|
|
43375
|
+
allowDeselect,
|
|
43376
|
+
date: date2,
|
|
43377
|
+
defaultDate,
|
|
43378
|
+
onDateChange,
|
|
43379
|
+
getMonthControlProps,
|
|
43380
|
+
getYearControlProps,
|
|
43381
|
+
disabled,
|
|
43382
|
+
...rest
|
|
43383
|
+
} = props;
|
|
43384
|
+
const _wrapperRef = useRef(null);
|
|
43385
|
+
const _dropdownRef = useRef(null);
|
|
43386
|
+
const [dropdownOpened, setDropdownOpened] = useState(false);
|
|
43387
|
+
const { calendarProps, others } = pickCalendarProps(rest);
|
|
43388
|
+
const ctx = useDatesContext();
|
|
43389
|
+
const defaultDateParser = (val) => {
|
|
43390
|
+
const parsedDate = dayjs(val, valueFormat, ctx.getLocale(locale)).toDate();
|
|
43391
|
+
return Number.isNaN(parsedDate.getTime()) ? dateStringParser(val) : dayjs(parsedDate).format("YYYY-MM-DD");
|
|
43392
|
+
};
|
|
43393
|
+
const _dateParser = dateParser || defaultDateParser;
|
|
43394
|
+
const _allowDeselect = allowDeselect !== void 0 ? allowDeselect : clearable;
|
|
43395
|
+
const formatValue2 = (val) => val ? dayjs(val).locale(ctx.getLocale(locale)).format(valueFormat) : "";
|
|
43396
|
+
const [_value, setValue, controlled] = useUncontrolledDates({
|
|
43397
|
+
type: "default",
|
|
43398
|
+
value,
|
|
43399
|
+
defaultValue,
|
|
43400
|
+
onChange
|
|
43401
|
+
});
|
|
43402
|
+
const [_date2, setDate] = useUncontrolledDates({
|
|
43403
|
+
type: "default",
|
|
43404
|
+
value: date2,
|
|
43405
|
+
defaultValue: defaultValue || defaultDate,
|
|
43406
|
+
onChange: onDateChange
|
|
43407
|
+
});
|
|
43408
|
+
useEffect(() => {
|
|
43409
|
+
if (controlled && value !== null) {
|
|
43410
|
+
setDate(value);
|
|
43411
|
+
}
|
|
43412
|
+
}, [controlled, value]);
|
|
43413
|
+
const [inputValue, setInputValue] = useState(formatValue2(_value));
|
|
43414
|
+
useEffect(() => {
|
|
43415
|
+
setInputValue(formatValue2(_value));
|
|
43416
|
+
}, [ctx.getLocale(locale)]);
|
|
43417
|
+
const handleInputChange = (event) => {
|
|
43418
|
+
const val = event.currentTarget.value;
|
|
43419
|
+
setInputValue(val);
|
|
43420
|
+
setDropdownOpened(true);
|
|
43421
|
+
if (val.trim() === "" && (allowDeselect || clearable)) {
|
|
43422
|
+
setValue(null);
|
|
43423
|
+
} else {
|
|
43424
|
+
const dateValue = _dateParser(val);
|
|
43425
|
+
if (dateValue && isDateValid({ date: dateValue, minDate, maxDate })) {
|
|
43426
|
+
setValue(dateValue);
|
|
43427
|
+
setDate(dateValue);
|
|
43428
|
+
}
|
|
43429
|
+
}
|
|
43430
|
+
};
|
|
43431
|
+
const handleInputBlur = (event) => {
|
|
43432
|
+
onBlur?.(event);
|
|
43433
|
+
setDropdownOpened(false);
|
|
43434
|
+
fixOnBlur && setInputValue(formatValue2(_value));
|
|
43435
|
+
};
|
|
43436
|
+
const handleInputFocus = (event) => {
|
|
43437
|
+
onFocus?.(event);
|
|
43438
|
+
setDropdownOpened(true);
|
|
43439
|
+
};
|
|
43440
|
+
const handleInputClick = (event) => {
|
|
43441
|
+
onClick?.(event);
|
|
43442
|
+
setDropdownOpened(true);
|
|
43443
|
+
};
|
|
43444
|
+
const handleInputKeyDown = (event) => {
|
|
43445
|
+
if (event.key === "Escape") {
|
|
43446
|
+
setDropdownOpened(false);
|
|
43447
|
+
}
|
|
43448
|
+
onKeyDown?.(event);
|
|
43449
|
+
};
|
|
43450
|
+
const _getDayProps = (day) => ({
|
|
43451
|
+
...getDayProps?.(day),
|
|
43452
|
+
selected: dayjs(_value).isSame(day, "day"),
|
|
43453
|
+
onClick: (event) => {
|
|
43454
|
+
getDayProps?.(day).onClick?.(event);
|
|
43455
|
+
const val = _allowDeselect ? dayjs(_value).isSame(day, "day") ? null : day : day;
|
|
43456
|
+
setValue(val);
|
|
43457
|
+
!controlled && val && setInputValue(formatValue2(val));
|
|
43458
|
+
setDropdownOpened(false);
|
|
43459
|
+
}
|
|
43460
|
+
});
|
|
43461
|
+
const clearButton = /* @__PURE__ */ jsx(
|
|
43462
|
+
Input.ClearButton,
|
|
43463
|
+
{
|
|
43464
|
+
onClick: () => {
|
|
43465
|
+
setValue(null);
|
|
43466
|
+
!controlled && setInputValue("");
|
|
43467
|
+
setDropdownOpened(false);
|
|
43468
|
+
},
|
|
43469
|
+
unstyled,
|
|
43470
|
+
...clearButtonProps
|
|
43471
|
+
}
|
|
43472
|
+
);
|
|
43473
|
+
const _clearable = clearable && !!_value && !readOnly && !disabled;
|
|
43474
|
+
useDidUpdate(() => {
|
|
43475
|
+
_value !== void 0 && !dropdownOpened && setInputValue(formatValue2(_value));
|
|
43476
|
+
}, [_value]);
|
|
43477
|
+
useClickOutside(() => setDropdownOpened(false), void 0, [
|
|
43478
|
+
_wrapperRef.current,
|
|
43479
|
+
_dropdownRef.current
|
|
43480
|
+
]);
|
|
43481
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
43482
|
+
/* @__PURE__ */ jsx(Input.Wrapper, { ...wrapperProps, __staticSelector: "DateInput", ref: _wrapperRef, children: /* @__PURE__ */ jsxs(
|
|
43483
|
+
Popover,
|
|
43484
|
+
{
|
|
43485
|
+
opened: dropdownOpened,
|
|
43486
|
+
trapFocus: false,
|
|
43487
|
+
position: "bottom-start",
|
|
43488
|
+
disabled: readOnly || disabled,
|
|
43489
|
+
withRoles: false,
|
|
43490
|
+
unstyled,
|
|
43491
|
+
...popoverProps,
|
|
43492
|
+
children: [
|
|
43493
|
+
/* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(
|
|
43494
|
+
Input,
|
|
43495
|
+
{
|
|
43496
|
+
"data-dates-input": true,
|
|
43497
|
+
"data-read-only": readOnly || void 0,
|
|
43498
|
+
autoComplete: "off",
|
|
43499
|
+
ref,
|
|
43500
|
+
value: inputValue,
|
|
43501
|
+
onChange: handleInputChange,
|
|
43502
|
+
onBlur: handleInputBlur,
|
|
43503
|
+
onFocus: handleInputFocus,
|
|
43504
|
+
onClick: handleInputClick,
|
|
43505
|
+
onKeyDown: handleInputKeyDown,
|
|
43506
|
+
readOnly,
|
|
43507
|
+
rightSection,
|
|
43508
|
+
__clearSection: clearButton,
|
|
43509
|
+
__clearable: _clearable,
|
|
43510
|
+
...inputProps,
|
|
43511
|
+
...others,
|
|
43512
|
+
disabled,
|
|
43513
|
+
__staticSelector: "DateInput"
|
|
43514
|
+
}
|
|
43515
|
+
) }),
|
|
43516
|
+
/* @__PURE__ */ jsx(
|
|
43517
|
+
Popover.Dropdown,
|
|
43518
|
+
{
|
|
43519
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
43520
|
+
"data-dates-dropdown": true,
|
|
43521
|
+
ref: _dropdownRef,
|
|
43522
|
+
children: /* @__PURE__ */ jsx(
|
|
43523
|
+
Calendar,
|
|
43524
|
+
{
|
|
43525
|
+
__staticSelector: "DateInput",
|
|
43526
|
+
...calendarProps,
|
|
43527
|
+
classNames: classNames2,
|
|
43528
|
+
styles,
|
|
43529
|
+
unstyled,
|
|
43530
|
+
__preventFocus: true,
|
|
43531
|
+
minDate,
|
|
43532
|
+
maxDate,
|
|
43533
|
+
locale,
|
|
43534
|
+
getDayProps: _getDayProps,
|
|
43535
|
+
size: inputProps.size,
|
|
43536
|
+
date: _date2,
|
|
43537
|
+
onDateChange: setDate,
|
|
43538
|
+
getMonthControlProps: (date22) => ({
|
|
43539
|
+
selected: typeof _value === "string" ? isSameMonth(date22, _value) : false,
|
|
43540
|
+
...getMonthControlProps?.(date22)
|
|
43541
|
+
}),
|
|
43542
|
+
getYearControlProps: (date22) => ({
|
|
43543
|
+
selected: typeof _value === "string" ? dayjs(date22).isSame(_value, "year") : false,
|
|
43544
|
+
...getYearControlProps?.(date22)
|
|
43545
|
+
}),
|
|
43546
|
+
attributes: wrapperProps.attributes
|
|
43547
|
+
}
|
|
43548
|
+
)
|
|
43549
|
+
}
|
|
43550
|
+
)
|
|
43551
|
+
]
|
|
43552
|
+
}
|
|
43553
|
+
) }),
|
|
43554
|
+
/* @__PURE__ */ jsx(HiddenDatesInput, { name, form, value: _value, type: "default" })
|
|
43555
|
+
] });
|
|
43556
|
+
});
|
|
43557
|
+
DateInput.classes = { ...Input.classes, ...Calendar.classes };
|
|
43558
|
+
DateInput.displayName = "@mantine/dates/DateInput";
|
|
43316
43559
|
function useDatesInput({
|
|
43317
43560
|
type,
|
|
43318
43561
|
value,
|
|
@@ -47844,6 +48087,138 @@ const Menu = Object.assign(MenuBase, {
|
|
|
47844
48087
|
Label: Menu$1.Label,
|
|
47845
48088
|
Divider: Menu$1.Divider
|
|
47846
48089
|
});
|
|
48090
|
+
var customParseFormat$2 = { exports: {} };
|
|
48091
|
+
var customParseFormat$1 = customParseFormat$2.exports;
|
|
48092
|
+
var hasRequiredCustomParseFormat;
|
|
48093
|
+
function requireCustomParseFormat() {
|
|
48094
|
+
if (hasRequiredCustomParseFormat) return customParseFormat$2.exports;
|
|
48095
|
+
hasRequiredCustomParseFormat = 1;
|
|
48096
|
+
(function(module, exports$1) {
|
|
48097
|
+
!(function(e, t) {
|
|
48098
|
+
module.exports = t();
|
|
48099
|
+
})(customParseFormat$1, (function() {
|
|
48100
|
+
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) {
|
|
48101
|
+
return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
|
|
48102
|
+
};
|
|
48103
|
+
var f = function(e2) {
|
|
48104
|
+
return function(t2) {
|
|
48105
|
+
this[e2] = +t2;
|
|
48106
|
+
};
|
|
48107
|
+
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
|
|
48108
|
+
(this.zone || (this.zone = {})).offset = (function(e3) {
|
|
48109
|
+
if (!e3) return 0;
|
|
48110
|
+
if ("Z" === e3) return 0;
|
|
48111
|
+
var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
|
|
48112
|
+
return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
|
|
48113
|
+
})(e2);
|
|
48114
|
+
}], u = function(e2) {
|
|
48115
|
+
var t2 = s[e2];
|
|
48116
|
+
return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
|
|
48117
|
+
}, d = function(e2, t2) {
|
|
48118
|
+
var n2, r3 = s.meridiem;
|
|
48119
|
+
if (r3) {
|
|
48120
|
+
for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r3(i2, 0, t2)) > -1) {
|
|
48121
|
+
n2 = i2 > 12;
|
|
48122
|
+
break;
|
|
48123
|
+
}
|
|
48124
|
+
} else n2 = e2 === (t2 ? "pm" : "PM");
|
|
48125
|
+
return n2;
|
|
48126
|
+
}, c = { A: [o, function(e2) {
|
|
48127
|
+
this.afternoon = d(e2, false);
|
|
48128
|
+
}], a: [o, function(e2) {
|
|
48129
|
+
this.afternoon = d(e2, true);
|
|
48130
|
+
}], Q: [n, function(e2) {
|
|
48131
|
+
this.month = 3 * (e2 - 1) + 1;
|
|
48132
|
+
}], S: [n, function(e2) {
|
|
48133
|
+
this.milliseconds = 100 * +e2;
|
|
48134
|
+
}], SS: [r2, function(e2) {
|
|
48135
|
+
this.milliseconds = 10 * +e2;
|
|
48136
|
+
}], SSS: [/\d{3}/, function(e2) {
|
|
48137
|
+
this.milliseconds = +e2;
|
|
48138
|
+
}], 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) {
|
|
48139
|
+
var t2 = s.ordinal, n2 = e2.match(/\d+/);
|
|
48140
|
+
if (this.day = n2[0], t2) for (var r3 = 1; r3 <= 31; r3 += 1) t2(r3).replace(/\[|\]/g, "") === e2 && (this.day = r3);
|
|
48141
|
+
}], w: [i, f("week")], ww: [r2, f("week")], M: [i, f("month")], MM: [r2, f("month")], MMM: [o, function(e2) {
|
|
48142
|
+
var t2 = u("months"), n2 = (u("monthsShort") || t2.map((function(e3) {
|
|
48143
|
+
return e3.slice(0, 3);
|
|
48144
|
+
}))).indexOf(e2) + 1;
|
|
48145
|
+
if (n2 < 1) throw new Error();
|
|
48146
|
+
this.month = n2 % 12 || n2;
|
|
48147
|
+
}], MMMM: [o, function(e2) {
|
|
48148
|
+
var t2 = u("months").indexOf(e2) + 1;
|
|
48149
|
+
if (t2 < 1) throw new Error();
|
|
48150
|
+
this.month = t2 % 12 || t2;
|
|
48151
|
+
}], Y: [/[+-]?\d+/, f("year")], YY: [r2, function(e2) {
|
|
48152
|
+
this.year = a(e2);
|
|
48153
|
+
}], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
|
|
48154
|
+
function l(n2) {
|
|
48155
|
+
var r3, i2;
|
|
48156
|
+
r3 = n2, i2 = s && s.formats;
|
|
48157
|
+
for (var o2 = (n2 = r3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t2, n3, r4) {
|
|
48158
|
+
var o3 = r4 && r4.toUpperCase();
|
|
48159
|
+
return n3 || i2[r4] || e[r4] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e2, t3, n4) {
|
|
48160
|
+
return t3 || n4.slice(1);
|
|
48161
|
+
}));
|
|
48162
|
+
}))).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
|
|
48163
|
+
var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
|
|
48164
|
+
o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
|
|
48165
|
+
}
|
|
48166
|
+
return function(e2) {
|
|
48167
|
+
for (var t2 = {}, n3 = 0, r4 = 0; n3 < a2; n3 += 1) {
|
|
48168
|
+
var i3 = o2[n3];
|
|
48169
|
+
if ("string" == typeof i3) r4 += i3.length;
|
|
48170
|
+
else {
|
|
48171
|
+
var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r4), u3 = s2.exec(h3)[0];
|
|
48172
|
+
f3.call(t2, u3), e2 = e2.replace(u3, "");
|
|
48173
|
+
}
|
|
48174
|
+
}
|
|
48175
|
+
return (function(e3) {
|
|
48176
|
+
var t3 = e3.afternoon;
|
|
48177
|
+
if (void 0 !== t3) {
|
|
48178
|
+
var n4 = e3.hours;
|
|
48179
|
+
t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
|
|
48180
|
+
}
|
|
48181
|
+
})(t2), t2;
|
|
48182
|
+
};
|
|
48183
|
+
}
|
|
48184
|
+
return function(e2, t2, n2) {
|
|
48185
|
+
n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
|
|
48186
|
+
var r3 = t2.prototype, i2 = r3.parse;
|
|
48187
|
+
r3.parse = function(e3) {
|
|
48188
|
+
var t3 = e3.date, r4 = e3.utc, o2 = e3.args;
|
|
48189
|
+
this.$u = r4;
|
|
48190
|
+
var a2 = o2[1];
|
|
48191
|
+
if ("string" == typeof a2) {
|
|
48192
|
+
var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
|
|
48193
|
+
h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = (function(e4, t4, n3, r5) {
|
|
48194
|
+
try {
|
|
48195
|
+
if (["x", "X"].indexOf(t4) > -1) return new Date(("X" === t4 ? 1e3 : 1) * e4);
|
|
48196
|
+
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;
|
|
48197
|
+
o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
|
|
48198
|
+
var D, w = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
|
|
48199
|
+
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);
|
|
48200
|
+
} catch (e5) {
|
|
48201
|
+
return /* @__PURE__ */ new Date("");
|
|
48202
|
+
}
|
|
48203
|
+
})(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 = {};
|
|
48204
|
+
} else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
|
|
48205
|
+
o2[1] = a2[m - 1];
|
|
48206
|
+
var M = n2.apply(this, o2);
|
|
48207
|
+
if (M.isValid()) {
|
|
48208
|
+
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
48209
|
+
break;
|
|
48210
|
+
}
|
|
48211
|
+
m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
|
|
48212
|
+
}
|
|
48213
|
+
else i2.call(this, e3);
|
|
48214
|
+
};
|
|
48215
|
+
};
|
|
48216
|
+
}));
|
|
48217
|
+
})(customParseFormat$2);
|
|
48218
|
+
return customParseFormat$2.exports;
|
|
48219
|
+
}
|
|
48220
|
+
var customParseFormatExports = requireCustomParseFormat();
|
|
48221
|
+
const customParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
|
|
47847
48222
|
const Switch = forwardRef((props, ref) => /* @__PURE__ */ jsx(Switch$1, { color: colors.primary, ...props, ref }));
|
|
47848
48223
|
Switch.displayName = "Switch";
|
|
47849
48224
|
const Textarea = forwardRef(
|
|
@@ -47882,6 +48257,7 @@ function Tooltip({
|
|
|
47882
48257
|
}
|
|
47883
48258
|
);
|
|
47884
48259
|
}
|
|
48260
|
+
dayjs.extend(customParseFormat);
|
|
47885
48261
|
const ChevronIcon = ({ direction }) => /* @__PURE__ */ jsx(
|
|
47886
48262
|
"svg",
|
|
47887
48263
|
{
|
|
@@ -49058,10 +49434,10 @@ const DatePicker = ({
|
|
|
49058
49434
|
error: textFieldError,
|
|
49059
49435
|
helperText,
|
|
49060
49436
|
onBlur: textFieldOnBlur,
|
|
49437
|
+
required: required2,
|
|
49061
49438
|
size: size2,
|
|
49062
49439
|
style,
|
|
49063
49440
|
sx: textFieldSx,
|
|
49064
|
-
variant: _variant,
|
|
49065
49441
|
...textFieldProps
|
|
49066
49442
|
} = slotProps?.textField || {};
|
|
49067
49443
|
const mantineSize = mapCompatSize(size2);
|
|
@@ -49069,26 +49445,58 @@ const DatePicker = ({
|
|
|
49069
49445
|
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? null);
|
|
49070
49446
|
const resolvedValue = isControlled ? value : uncontrolledValue;
|
|
49071
49447
|
const dateValue = resolvedValue?.format ? resolvedValue.format("YYYY-MM-DD") : resolvedValue || "";
|
|
49448
|
+
const latestDateRef = useRef(dateValue || null);
|
|
49449
|
+
latestDateRef.current = dateValue || null;
|
|
49450
|
+
const normalizePickerValue = (next) => {
|
|
49451
|
+
if (!next) return null;
|
|
49452
|
+
if (next instanceof Date) return dayjs(next).format("YYYY-MM-DD");
|
|
49453
|
+
return next;
|
|
49454
|
+
};
|
|
49072
49455
|
const toDateValue = (next) => next ? dayjs(next) : null;
|
|
49456
|
+
const emitChange = (next) => {
|
|
49457
|
+
const iso = normalizePickerValue(next);
|
|
49458
|
+
latestDateRef.current = iso;
|
|
49459
|
+
const nextValue = toDateValue(iso);
|
|
49460
|
+
if (!isControlled) setUncontrolledValue(nextValue);
|
|
49461
|
+
onChange?.(nextValue);
|
|
49462
|
+
};
|
|
49463
|
+
const parseTypedDate = (raw) => {
|
|
49464
|
+
const trimmed = raw.trim();
|
|
49465
|
+
if (!trimmed) return null;
|
|
49466
|
+
const parsed = dayjs(trimmed, ["MM/DD/YYYY", "M/D/YYYY", "YYYY-MM-DD"], true);
|
|
49467
|
+
return parsed.isValid() ? parsed : null;
|
|
49468
|
+
};
|
|
49073
49469
|
return /* @__PURE__ */ jsx(
|
|
49074
|
-
|
|
49470
|
+
DateInput,
|
|
49075
49471
|
{
|
|
49076
49472
|
label: label || textFieldProps.label,
|
|
49077
|
-
|
|
49078
|
-
|
|
49079
|
-
onChange: (event) => {
|
|
49080
|
-
const next = event.currentTarget.value;
|
|
49081
|
-
const nextValue = toDateValue(next);
|
|
49082
|
-
if (!isControlled) setUncontrolledValue(nextValue);
|
|
49083
|
-
onChange?.(nextValue);
|
|
49084
|
-
},
|
|
49473
|
+
value: dateValue || null,
|
|
49474
|
+
onChange: (next) => emitChange(next),
|
|
49085
49475
|
onBlur: (event) => {
|
|
49086
49476
|
textFieldOnBlur?.(event);
|
|
49087
|
-
|
|
49477
|
+
const raw = event.currentTarget.value ?? "";
|
|
49478
|
+
const parsed = parseTypedDate(raw);
|
|
49479
|
+
if (!raw.trim()) {
|
|
49480
|
+
emitChange(null);
|
|
49481
|
+
onAccept?.(null);
|
|
49482
|
+
return;
|
|
49483
|
+
}
|
|
49484
|
+
if (parsed) {
|
|
49485
|
+
emitChange(parsed.format("YYYY-MM-DD"));
|
|
49486
|
+
onAccept?.(parsed);
|
|
49487
|
+
return;
|
|
49488
|
+
}
|
|
49489
|
+
onAccept?.(toDateValue(latestDateRef.current));
|
|
49088
49490
|
},
|
|
49491
|
+
valueFormat: "MM/DD/YYYY",
|
|
49492
|
+
placeholder: "MM/DD/YYYY",
|
|
49089
49493
|
description: textFieldError ? void 0 : helperText,
|
|
49090
49494
|
error: textFieldError ? helperText : void 0,
|
|
49495
|
+
required: required2,
|
|
49091
49496
|
size: mantineSize,
|
|
49497
|
+
clearable: true,
|
|
49498
|
+
defaultDate: dateValue || "1990-01-01",
|
|
49499
|
+
w: fullWidth || textFieldFullWidth ? "100%" : void 0,
|
|
49092
49500
|
style: formControlStyle({
|
|
49093
49501
|
fullWidth: fullWidth || textFieldFullWidth,
|
|
49094
49502
|
style,
|
|
@@ -49527,7 +49935,7 @@ const loadReactPdf = async () => {
|
|
|
49527
49935
|
reactPdfPromise ??= Promise.all([
|
|
49528
49936
|
Promise.resolve({ }),
|
|
49529
49937
|
Promise.resolve({ }),
|
|
49530
|
-
import("./index-
|
|
49938
|
+
import("./index-veNaZFxk.js")
|
|
49531
49939
|
]).then(([, , mod]) => {
|
|
49532
49940
|
mod.pdfjs.GlobalWorkerOptions.workerSrc = pdfWorkerSrc;
|
|
49533
49941
|
return mod;
|
|
@@ -50870,4 +51278,4 @@ export {
|
|
|
50870
51278
|
Checkbox as y,
|
|
50871
51279
|
Chip as z
|
|
50872
51280
|
};
|
|
50873
|
-
//# sourceMappingURL=index-
|
|
51281
|
+
//# sourceMappingURL=index-c_TfaoDt.js.map
|