@fairmint/ui 0.2.30 → 0.2.32
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/generic/MultiSelectSearch/MultiSelectSearch.d.ts +24 -0
- package/dist/components/generic/MultiSelectSearch/MultiSelectSearch.d.ts.map +1 -0
- package/dist/components/primitives/MultiSelect/MultiSelect.d.ts +5 -0
- package/dist/components/primitives/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts +30 -0
- package/dist/components/specific/EquityRibbonChart/EquityRibbonChart.d.ts.map +1 -0
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts +23 -0
- package/dist/components/specific/EquityRibbonChart/FairmintRibbonMark.d.ts.map +1 -0
- package/dist/components/specific/EquityRibbonChart/index.d.ts +9 -0
- package/dist/components/specific/EquityRibbonChart/index.d.ts.map +1 -0
- package/dist/components/specific/EquityRibbonChart/ribbonGeometry.d.ts +55 -0
- package/dist/components/specific/EquityRibbonChart/ribbonGeometry.d.ts.map +1 -0
- package/dist/components/specific/EquityRibbonChart/ribbonTheme.d.ts +13 -0
- package/dist/components/specific/EquityRibbonChart/ribbonTheme.d.ts.map +1 -0
- package/dist/fairmint-ui.cjs +1621 -341
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +1621 -341
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/styles.css +96 -0
- package/dist/theme/ribbonChartColors.d.ts +31 -0
- package/dist/theme/ribbonChartColors.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/fairmint-ui.cjs
CHANGED
|
@@ -2623,7 +2623,7 @@ var values$1 = Object.values || function(obj) {
|
|
|
2623
2623
|
return obj[k];
|
|
2624
2624
|
});
|
|
2625
2625
|
};
|
|
2626
|
-
var defaultProps$
|
|
2626
|
+
var defaultProps$1g = {
|
|
2627
2627
|
component: "div",
|
|
2628
2628
|
childFactory: function childFactory(child) {
|
|
2629
2629
|
return child;
|
|
@@ -2750,7 +2750,7 @@ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2750
2750
|
*/
|
|
2751
2751
|
childFactory: PropTypes.func
|
|
2752
2752
|
} : {};
|
|
2753
|
-
TransitionGroup.defaultProps = defaultProps$
|
|
2753
|
+
TransitionGroup.defaultProps = defaultProps$1g;
|
|
2754
2754
|
var extendStatics = function(d, b) {
|
|
2755
2755
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
2756
2756
|
d2.__proto__ = b2;
|
|
@@ -6172,7 +6172,7 @@ function useCollapse({
|
|
|
6172
6172
|
}
|
|
6173
6173
|
return getCollapseProps;
|
|
6174
6174
|
}
|
|
6175
|
-
const defaultProps$
|
|
6175
|
+
const defaultProps$1f = {
|
|
6176
6176
|
transitionDuration: 200,
|
|
6177
6177
|
transitionTimingFunction: "ease",
|
|
6178
6178
|
animateOpacity: true
|
|
@@ -6188,7 +6188,7 @@ const Collapse = factory((props, ref) => {
|
|
|
6188
6188
|
animateOpacity,
|
|
6189
6189
|
keepMounted,
|
|
6190
6190
|
...others
|
|
6191
|
-
} = useProps("Collapse", defaultProps$
|
|
6191
|
+
} = useProps("Collapse", defaultProps$1f, props);
|
|
6192
6192
|
const theme2 = useMantineTheme();
|
|
6193
6193
|
const shouldReduceMotion = useReducedMotion();
|
|
6194
6194
|
const reduceMotion = theme2.respectReducedMotion ? shouldReduceMotion : false;
|
|
@@ -9663,7 +9663,7 @@ function useRole(context, props) {
|
|
|
9663
9663
|
item
|
|
9664
9664
|
} : {}, [enabled, reference, floating, item]);
|
|
9665
9665
|
}
|
|
9666
|
-
var classes$
|
|
9666
|
+
var classes$10 = { "root": "m_d57069b5", "content": "m_b1336c6", "viewport": "m_c0783ff9", "viewportInner": "m_f8f631dd", "scrollbar": "m_c44ba933", "thumb": "m_d8b5e363", "corner": "m_21657268" };
|
|
9667
9667
|
const [ScrollAreaProvider, useScrollAreaContext] = createSafeContext(
|
|
9668
9668
|
"ScrollArea.Root component was not found in tree"
|
|
9669
9669
|
);
|
|
@@ -9709,14 +9709,14 @@ const ScrollAreaCorner = React.forwardRef((props, ref) => {
|
|
|
9709
9709
|
const hasCorner = ctx.type !== "scroll" && hasBothScrollbarsVisible;
|
|
9710
9710
|
return hasCorner ? /* @__PURE__ */ jsxRuntime.jsx(Corner, { ...props, ref }) : null;
|
|
9711
9711
|
});
|
|
9712
|
-
const defaultProps$
|
|
9712
|
+
const defaultProps$1e = {
|
|
9713
9713
|
scrollHideDelay: 1e3,
|
|
9714
9714
|
type: "hover"
|
|
9715
9715
|
};
|
|
9716
9716
|
const ScrollAreaRoot = React.forwardRef((_props, ref) => {
|
|
9717
9717
|
const { type, scrollHideDelay, scrollbars, getStyles: getStyles2, ...others } = useProps(
|
|
9718
9718
|
"ScrollAreaRoot",
|
|
9719
|
-
defaultProps$
|
|
9719
|
+
defaultProps$1e,
|
|
9720
9720
|
_props
|
|
9721
9721
|
);
|
|
9722
9722
|
const [scrollArea, setScrollArea] = React.useState(null);
|
|
@@ -10358,12 +10358,12 @@ const ScrollAreaViewport = React.forwardRef(
|
|
|
10358
10358
|
}
|
|
10359
10359
|
);
|
|
10360
10360
|
ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
|
|
10361
|
-
const defaultProps$
|
|
10361
|
+
const defaultProps$1d = {
|
|
10362
10362
|
scrollHideDelay: 1e3,
|
|
10363
10363
|
type: "hover",
|
|
10364
10364
|
scrollbars: "xy"
|
|
10365
10365
|
};
|
|
10366
|
-
const varsResolver
|
|
10366
|
+
const varsResolver$$ = createVarsResolver(
|
|
10367
10367
|
(_, { scrollbarSize, overscrollBehavior, scrollbars }) => {
|
|
10368
10368
|
let overrideOverscrollBehavior = overscrollBehavior;
|
|
10369
10369
|
if (overscrollBehavior && scrollbars) {
|
|
@@ -10382,7 +10382,7 @@ const varsResolver$Z = createVarsResolver(
|
|
|
10382
10382
|
}
|
|
10383
10383
|
);
|
|
10384
10384
|
const ScrollArea = factory((_props, ref) => {
|
|
10385
|
-
const props = useProps("ScrollArea", defaultProps$
|
|
10385
|
+
const props = useProps("ScrollArea", defaultProps$1d, _props);
|
|
10386
10386
|
const {
|
|
10387
10387
|
classNames: classNames2,
|
|
10388
10388
|
className,
|
|
@@ -10411,7 +10411,7 @@ const ScrollArea = factory((_props, ref) => {
|
|
|
10411
10411
|
const getStyles2 = useStyles({
|
|
10412
10412
|
name: "ScrollArea",
|
|
10413
10413
|
props,
|
|
10414
|
-
classes: classes$
|
|
10414
|
+
classes: classes$10,
|
|
10415
10415
|
className,
|
|
10416
10416
|
style,
|
|
10417
10417
|
classNames: classNames2,
|
|
@@ -10419,7 +10419,7 @@ const ScrollArea = factory((_props, ref) => {
|
|
|
10419
10419
|
unstyled,
|
|
10420
10420
|
attributes,
|
|
10421
10421
|
vars,
|
|
10422
|
-
varsResolver: varsResolver
|
|
10422
|
+
varsResolver: varsResolver$$
|
|
10423
10423
|
});
|
|
10424
10424
|
const localViewportRef = React.useRef(null);
|
|
10425
10425
|
const combinedViewportRef = useMergeRefs([viewportRef, localViewportRef]);
|
|
@@ -10534,7 +10534,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
10534
10534
|
onTopReached,
|
|
10535
10535
|
onOverflowChange,
|
|
10536
10536
|
...others
|
|
10537
|
-
} = useProps("ScrollAreaAutosize", defaultProps$
|
|
10537
|
+
} = useProps("ScrollAreaAutosize", defaultProps$1d, props);
|
|
10538
10538
|
const viewportObserverRef = React.useRef(null);
|
|
10539
10539
|
const combinedViewportRef = useMergeRefs([viewportRef, viewportObserverRef]);
|
|
10540
10540
|
const [overflowing, setOverflowing] = React.useState(false);
|
|
@@ -10606,17 +10606,17 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
10606
10606
|
}
|
|
10607
10607
|
) });
|
|
10608
10608
|
});
|
|
10609
|
-
ScrollArea.classes = classes$
|
|
10609
|
+
ScrollArea.classes = classes$10;
|
|
10610
10610
|
ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
|
|
10611
|
-
ScrollAreaAutosize.classes = classes$
|
|
10611
|
+
ScrollAreaAutosize.classes = classes$10;
|
|
10612
10612
|
ScrollArea.Autosize = ScrollAreaAutosize;
|
|
10613
|
-
var classes
|
|
10614
|
-
const defaultProps$
|
|
10613
|
+
var classes$$ = { "root": "m_87cf2631" };
|
|
10614
|
+
const defaultProps$1c = {
|
|
10615
10615
|
__staticSelector: "UnstyledButton"
|
|
10616
10616
|
};
|
|
10617
10617
|
const UnstyledButton = polymorphicFactory(
|
|
10618
10618
|
(_props, ref) => {
|
|
10619
|
-
const props = useProps("UnstyledButton", defaultProps$
|
|
10619
|
+
const props = useProps("UnstyledButton", defaultProps$1c, _props);
|
|
10620
10620
|
const {
|
|
10621
10621
|
className,
|
|
10622
10622
|
component = "button",
|
|
@@ -10631,7 +10631,7 @@ const UnstyledButton = polymorphicFactory(
|
|
|
10631
10631
|
const getStyles2 = useStyles({
|
|
10632
10632
|
name: __staticSelector,
|
|
10633
10633
|
props,
|
|
10634
|
-
classes: classes
|
|
10634
|
+
classes: classes$$,
|
|
10635
10635
|
className,
|
|
10636
10636
|
style,
|
|
10637
10637
|
classNames: classNames2,
|
|
@@ -10651,15 +10651,15 @@ const UnstyledButton = polymorphicFactory(
|
|
|
10651
10651
|
);
|
|
10652
10652
|
}
|
|
10653
10653
|
);
|
|
10654
|
-
UnstyledButton.classes = classes
|
|
10654
|
+
UnstyledButton.classes = classes$$;
|
|
10655
10655
|
UnstyledButton.displayName = "@mantine/core/UnstyledButton";
|
|
10656
|
-
var classes$
|
|
10656
|
+
var classes$_ = { "root": "m_515a97f8" };
|
|
10657
10657
|
const VisuallyHidden = factory((_props, ref) => {
|
|
10658
10658
|
const props = useProps("VisuallyHidden", null, _props);
|
|
10659
10659
|
const { classNames: classNames2, className, style, styles, unstyled, vars, attributes, ...others } = props;
|
|
10660
10660
|
const getStyles2 = useStyles({
|
|
10661
10661
|
name: "VisuallyHidden",
|
|
10662
|
-
classes: classes$
|
|
10662
|
+
classes: classes$_,
|
|
10663
10663
|
props,
|
|
10664
10664
|
className,
|
|
10665
10665
|
style,
|
|
@@ -10670,10 +10670,10 @@ const VisuallyHidden = factory((_props, ref) => {
|
|
|
10670
10670
|
});
|
|
10671
10671
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", ref, ...getStyles2("root"), ...others });
|
|
10672
10672
|
});
|
|
10673
|
-
VisuallyHidden.classes = classes$
|
|
10673
|
+
VisuallyHidden.classes = classes$_;
|
|
10674
10674
|
VisuallyHidden.displayName = "@mantine/core/VisuallyHidden";
|
|
10675
|
-
var classes$
|
|
10676
|
-
const varsResolver$
|
|
10675
|
+
var classes$Z = { "root": "m_1b7284a3" };
|
|
10676
|
+
const varsResolver$_ = createVarsResolver((_, { radius, shadow }) => ({
|
|
10677
10677
|
root: {
|
|
10678
10678
|
"--paper-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
10679
10679
|
"--paper-shadow": getShadow(shadow)
|
|
@@ -10699,7 +10699,7 @@ const Paper = polymorphicFactory((_props, ref) => {
|
|
|
10699
10699
|
const getStyles2 = useStyles({
|
|
10700
10700
|
name: "Paper",
|
|
10701
10701
|
props,
|
|
10702
|
-
classes: classes$
|
|
10702
|
+
classes: classes$Z,
|
|
10703
10703
|
className,
|
|
10704
10704
|
style,
|
|
10705
10705
|
classNames: classNames2,
|
|
@@ -10707,7 +10707,7 @@ const Paper = polymorphicFactory((_props, ref) => {
|
|
|
10707
10707
|
unstyled,
|
|
10708
10708
|
attributes,
|
|
10709
10709
|
vars,
|
|
10710
|
-
varsResolver: varsResolver$
|
|
10710
|
+
varsResolver: varsResolver$_
|
|
10711
10711
|
});
|
|
10712
10712
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10713
10713
|
Box,
|
|
@@ -10720,7 +10720,7 @@ const Paper = polymorphicFactory((_props, ref) => {
|
|
|
10720
10720
|
}
|
|
10721
10721
|
);
|
|
10722
10722
|
});
|
|
10723
|
-
Paper.classes = classes$
|
|
10723
|
+
Paper.classes = classes$Z;
|
|
10724
10724
|
Paper.displayName = "@mantine/core/Paper";
|
|
10725
10725
|
function horizontalSide(placement, arrowY, arrowOffset, arrowPosition) {
|
|
10726
10726
|
if (placement === "center" || arrowPosition === "center") {
|
|
@@ -10861,11 +10861,11 @@ function getFloatingPosition(dir, position) {
|
|
|
10861
10861
|
}
|
|
10862
10862
|
return position;
|
|
10863
10863
|
}
|
|
10864
|
-
var classes$
|
|
10865
|
-
const defaultProps$
|
|
10864
|
+
var classes$Y = { "root": "m_9814e45f" };
|
|
10865
|
+
const defaultProps$1b = {
|
|
10866
10866
|
zIndex: getDefaultZIndex("modal")
|
|
10867
10867
|
};
|
|
10868
|
-
const varsResolver$
|
|
10868
|
+
const varsResolver$Z = createVarsResolver(
|
|
10869
10869
|
(_, { gradient, color, backgroundOpacity, blur, radius, zIndex }) => ({
|
|
10870
10870
|
root: {
|
|
10871
10871
|
"--overlay-bg": gradient || (color !== void 0 || backgroundOpacity !== void 0) && rgba(color || "#000", backgroundOpacity ?? 0.6) || void 0,
|
|
@@ -10876,7 +10876,7 @@ const varsResolver$X = createVarsResolver(
|
|
|
10876
10876
|
})
|
|
10877
10877
|
);
|
|
10878
10878
|
const Overlay = polymorphicFactory((_props, ref) => {
|
|
10879
|
-
const props = useProps("Overlay", defaultProps$
|
|
10879
|
+
const props = useProps("Overlay", defaultProps$1b, _props);
|
|
10880
10880
|
const {
|
|
10881
10881
|
classNames: classNames2,
|
|
10882
10882
|
className,
|
|
@@ -10900,7 +10900,7 @@ const Overlay = polymorphicFactory((_props, ref) => {
|
|
|
10900
10900
|
const getStyles2 = useStyles({
|
|
10901
10901
|
name: "Overlay",
|
|
10902
10902
|
props,
|
|
10903
|
-
classes: classes$
|
|
10903
|
+
classes: classes$Y,
|
|
10904
10904
|
className,
|
|
10905
10905
|
style,
|
|
10906
10906
|
classNames: classNames2,
|
|
@@ -10908,11 +10908,11 @@ const Overlay = polymorphicFactory((_props, ref) => {
|
|
|
10908
10908
|
unstyled,
|
|
10909
10909
|
attributes,
|
|
10910
10910
|
vars,
|
|
10911
|
-
varsResolver: varsResolver$
|
|
10911
|
+
varsResolver: varsResolver$Z
|
|
10912
10912
|
});
|
|
10913
10913
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { ref, ...getStyles2("root"), mod: [{ center, fixed }, mod], ...others, children });
|
|
10914
10914
|
});
|
|
10915
|
-
Overlay.classes = classes$
|
|
10915
|
+
Overlay.classes = classes$Y;
|
|
10916
10916
|
Overlay.displayName = "@mantine/core/Overlay";
|
|
10917
10917
|
function createPortalNode(props) {
|
|
10918
10918
|
const node = document.createElement("div");
|
|
@@ -10941,11 +10941,11 @@ function getTargetNode({ target, reuseTargetNode, ...others }) {
|
|
|
10941
10941
|
}
|
|
10942
10942
|
return createPortalNode(others);
|
|
10943
10943
|
}
|
|
10944
|
-
const defaultProps$
|
|
10944
|
+
const defaultProps$1a = {
|
|
10945
10945
|
reuseTargetNode: true
|
|
10946
10946
|
};
|
|
10947
10947
|
const Portal = factory((props, ref) => {
|
|
10948
|
-
const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$
|
|
10948
|
+
const { children, target, reuseTargetNode, ...others } = useProps("Portal", defaultProps$1a, props);
|
|
10949
10949
|
const [mounted, setMounted] = React.useState(false);
|
|
10950
10950
|
const nodeRef = React.useRef(null);
|
|
10951
10951
|
useIsomorphicEffect$1(() => {
|
|
@@ -11256,7 +11256,7 @@ Transition$1.displayName = "@mantine/core/Transition";
|
|
|
11256
11256
|
const [PopoverContextProvider, usePopoverContext] = createSafeContext(
|
|
11257
11257
|
"Popover component was not found in the tree"
|
|
11258
11258
|
);
|
|
11259
|
-
var classes$
|
|
11259
|
+
var classes$X = { "dropdown": "m_38a85659", "arrow": "m_a31dc6c1", "overlay": "m_3d7bc908" };
|
|
11260
11260
|
function FocusTrap({
|
|
11261
11261
|
children,
|
|
11262
11262
|
active = true,
|
|
@@ -11379,16 +11379,16 @@ const PopoverDropdown = factory((_props, ref) => {
|
|
|
11379
11379
|
}
|
|
11380
11380
|
) });
|
|
11381
11381
|
});
|
|
11382
|
-
PopoverDropdown.classes = classes$
|
|
11382
|
+
PopoverDropdown.classes = classes$X;
|
|
11383
11383
|
PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
|
|
11384
|
-
const defaultProps$
|
|
11384
|
+
const defaultProps$19 = {
|
|
11385
11385
|
refProp: "ref",
|
|
11386
11386
|
popupType: "dialog"
|
|
11387
11387
|
};
|
|
11388
11388
|
const PopoverTarget = factory((props, ref) => {
|
|
11389
11389
|
const { children, refProp, popupType, ...others } = useProps(
|
|
11390
11390
|
"PopoverTarget",
|
|
11391
|
-
defaultProps$
|
|
11391
|
+
defaultProps$19,
|
|
11392
11392
|
props
|
|
11393
11393
|
);
|
|
11394
11394
|
const child = getSingleElementChild(children);
|
|
@@ -11555,7 +11555,7 @@ function usePopover(options) {
|
|
|
11555
11555
|
onToggle
|
|
11556
11556
|
};
|
|
11557
11557
|
}
|
|
11558
|
-
const defaultProps$
|
|
11558
|
+
const defaultProps$18 = {
|
|
11559
11559
|
position: "bottom",
|
|
11560
11560
|
offset: 8,
|
|
11561
11561
|
positionDependencies: [],
|
|
@@ -11578,14 +11578,14 @@ const defaultProps$14 = {
|
|
|
11578
11578
|
__staticSelector: "Popover",
|
|
11579
11579
|
width: "max-content"
|
|
11580
11580
|
};
|
|
11581
|
-
const varsResolver$
|
|
11581
|
+
const varsResolver$Y = createVarsResolver((_, { radius, shadow }) => ({
|
|
11582
11582
|
dropdown: {
|
|
11583
11583
|
"--popover-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
11584
11584
|
"--popover-shadow": getShadow(shadow)
|
|
11585
11585
|
}
|
|
11586
11586
|
}));
|
|
11587
11587
|
function Popover(_props) {
|
|
11588
|
-
const props = useProps("Popover", defaultProps$
|
|
11588
|
+
const props = useProps("Popover", defaultProps$18, _props);
|
|
11589
11589
|
const {
|
|
11590
11590
|
children,
|
|
11591
11591
|
position,
|
|
@@ -11641,14 +11641,14 @@ function Popover(_props) {
|
|
|
11641
11641
|
const getStyles2 = useStyles({
|
|
11642
11642
|
name: __staticSelector,
|
|
11643
11643
|
props,
|
|
11644
|
-
classes: classes$
|
|
11644
|
+
classes: classes$X,
|
|
11645
11645
|
classNames: classNames2,
|
|
11646
11646
|
styles,
|
|
11647
11647
|
unstyled,
|
|
11648
11648
|
attributes,
|
|
11649
11649
|
rootSelector: "dropdown",
|
|
11650
11650
|
vars,
|
|
11651
|
-
varsResolver: varsResolver$
|
|
11651
|
+
varsResolver: varsResolver$Y
|
|
11652
11652
|
});
|
|
11653
11653
|
const { resolvedStyles } = useResolvedStylesApi({ classNames: classNames2, styles, props });
|
|
11654
11654
|
const [dropdownVisible, setDropdownVisible] = React.useState(opened ?? defaultOpened ?? false);
|
|
@@ -11795,38 +11795,38 @@ Popover.Target = PopoverTarget;
|
|
|
11795
11795
|
Popover.Dropdown = PopoverDropdown;
|
|
11796
11796
|
Popover.displayName = "@mantine/core/Popover";
|
|
11797
11797
|
Popover.extend = (input) => input;
|
|
11798
|
-
var classes$
|
|
11799
|
-
const Bars = React.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Box, { component: "span", className: clsx(classes$
|
|
11800
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$
|
|
11801
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$
|
|
11802
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$
|
|
11798
|
+
var classes$W = { "root": "m_5ae2e3c", "barsLoader": "m_7a2bd4cd", "bar": "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", "dotsLoader": "m_4e3f22d7", "dot": "m_870c4af", "loader-dots-animation": "m_aac34a1", "ovalLoader": "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
|
|
11799
|
+
const Bars = React.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Box, { component: "span", className: clsx(classes$W.barsLoader, className), ...others, ref, children: [
|
|
11800
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$W.bar }),
|
|
11801
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$W.bar }),
|
|
11802
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$W.bar })
|
|
11803
11803
|
] }));
|
|
11804
11804
|
Bars.displayName = "@mantine/core/Bars";
|
|
11805
|
-
const Dots = React.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Box, { component: "span", className: clsx(classes$
|
|
11806
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$
|
|
11807
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$
|
|
11808
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$
|
|
11805
|
+
const Dots = React.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(Box, { component: "span", className: clsx(classes$W.dotsLoader, className), ...others, ref, children: [
|
|
11806
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$W.dot }),
|
|
11807
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$W.dot }),
|
|
11808
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes$W.dot })
|
|
11809
11809
|
] }));
|
|
11810
11810
|
Dots.displayName = "@mantine/core/Dots";
|
|
11811
|
-
const Oval = React.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", className: clsx(classes$
|
|
11811
|
+
const Oval = React.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", className: clsx(classes$W.ovalLoader, className), ...others, ref }));
|
|
11812
11812
|
Oval.displayName = "@mantine/core/Oval";
|
|
11813
11813
|
const defaultLoaders = {
|
|
11814
11814
|
bars: Bars,
|
|
11815
11815
|
oval: Oval,
|
|
11816
11816
|
dots: Dots
|
|
11817
11817
|
};
|
|
11818
|
-
const defaultProps$
|
|
11818
|
+
const defaultProps$17 = {
|
|
11819
11819
|
loaders: defaultLoaders,
|
|
11820
11820
|
type: "oval"
|
|
11821
11821
|
};
|
|
11822
|
-
const varsResolver$
|
|
11822
|
+
const varsResolver$X = createVarsResolver((theme2, { size: size2, color }) => ({
|
|
11823
11823
|
root: {
|
|
11824
11824
|
"--loader-size": getSize(size2, "loader-size"),
|
|
11825
11825
|
"--loader-color": color ? getThemeColor(color, theme2) : void 0
|
|
11826
11826
|
}
|
|
11827
11827
|
}));
|
|
11828
11828
|
const Loader$1 = factory((_props, ref) => {
|
|
11829
|
-
const props = useProps("Loader", defaultProps$
|
|
11829
|
+
const props = useProps("Loader", defaultProps$17, _props);
|
|
11830
11830
|
const {
|
|
11831
11831
|
size: size2,
|
|
11832
11832
|
color,
|
|
@@ -11846,7 +11846,7 @@ const Loader$1 = factory((_props, ref) => {
|
|
|
11846
11846
|
const getStyles2 = useStyles({
|
|
11847
11847
|
name: "Loader",
|
|
11848
11848
|
props,
|
|
11849
|
-
classes: classes$
|
|
11849
|
+
classes: classes$W,
|
|
11850
11850
|
className,
|
|
11851
11851
|
style,
|
|
11852
11852
|
classNames: classNames2,
|
|
@@ -11854,7 +11854,7 @@ const Loader$1 = factory((_props, ref) => {
|
|
|
11854
11854
|
unstyled,
|
|
11855
11855
|
attributes,
|
|
11856
11856
|
vars,
|
|
11857
|
-
varsResolver: varsResolver$
|
|
11857
|
+
varsResolver: varsResolver$X
|
|
11858
11858
|
});
|
|
11859
11859
|
if (children) {
|
|
11860
11860
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { ...getStyles2("root"), ref, ...others, children });
|
|
@@ -11872,17 +11872,17 @@ const Loader$1 = factory((_props, ref) => {
|
|
|
11872
11872
|
);
|
|
11873
11873
|
});
|
|
11874
11874
|
Loader$1.defaultLoaders = defaultLoaders;
|
|
11875
|
-
Loader$1.classes = classes$
|
|
11875
|
+
Loader$1.classes = classes$W;
|
|
11876
11876
|
Loader$1.displayName = "@mantine/core/Loader";
|
|
11877
|
-
var classes$
|
|
11878
|
-
const defaultProps$
|
|
11877
|
+
var classes$V = { "root": "m_8d3f4000", "icon": "m_8d3afb97", "loader": "m_302b9fb1", "group": "m_1a0f1b21", "groupSection": "m_437b6484" };
|
|
11878
|
+
const defaultProps$16 = {
|
|
11879
11879
|
orientation: "horizontal"
|
|
11880
11880
|
};
|
|
11881
|
-
const varsResolver$
|
|
11881
|
+
const varsResolver$W = createVarsResolver((_, { borderWidth }) => ({
|
|
11882
11882
|
group: { "--ai-border-width": rem(borderWidth) }
|
|
11883
11883
|
}));
|
|
11884
11884
|
const ActionIconGroup = factory((_props, ref) => {
|
|
11885
|
-
const props = useProps("ActionIconGroup", defaultProps$
|
|
11885
|
+
const props = useProps("ActionIconGroup", defaultProps$16, _props);
|
|
11886
11886
|
const {
|
|
11887
11887
|
className,
|
|
11888
11888
|
style,
|
|
@@ -11896,11 +11896,11 @@ const ActionIconGroup = factory((_props, ref) => {
|
|
|
11896
11896
|
mod,
|
|
11897
11897
|
attributes,
|
|
11898
11898
|
...others
|
|
11899
|
-
} = useProps("ActionIconGroup", defaultProps$
|
|
11899
|
+
} = useProps("ActionIconGroup", defaultProps$16, _props);
|
|
11900
11900
|
const getStyles2 = useStyles({
|
|
11901
11901
|
name: "ActionIconGroup",
|
|
11902
11902
|
props,
|
|
11903
|
-
classes: classes$
|
|
11903
|
+
classes: classes$V,
|
|
11904
11904
|
className,
|
|
11905
11905
|
style,
|
|
11906
11906
|
classNames: classNames2,
|
|
@@ -11908,7 +11908,7 @@ const ActionIconGroup = factory((_props, ref) => {
|
|
|
11908
11908
|
unstyled,
|
|
11909
11909
|
attributes,
|
|
11910
11910
|
vars,
|
|
11911
|
-
varsResolver: varsResolver$
|
|
11911
|
+
varsResolver: varsResolver$W,
|
|
11912
11912
|
rootSelector: "group"
|
|
11913
11913
|
});
|
|
11914
11914
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11923,9 +11923,9 @@ const ActionIconGroup = factory((_props, ref) => {
|
|
|
11923
11923
|
}
|
|
11924
11924
|
);
|
|
11925
11925
|
});
|
|
11926
|
-
ActionIconGroup.classes = classes$
|
|
11926
|
+
ActionIconGroup.classes = classes$V;
|
|
11927
11927
|
ActionIconGroup.displayName = "@mantine/core/ActionIconGroup";
|
|
11928
|
-
const varsResolver$
|
|
11928
|
+
const varsResolver$V = createVarsResolver(
|
|
11929
11929
|
(theme2, { radius, color, gradient, variant, autoContrast, size: size2 }) => {
|
|
11930
11930
|
const colors2 = theme2.variantColorResolver({
|
|
11931
11931
|
color: color || theme2.primaryColor,
|
|
@@ -11966,7 +11966,7 @@ const ActionIconGroupSection = factory((_props, ref) => {
|
|
|
11966
11966
|
const getStyles2 = useStyles({
|
|
11967
11967
|
name: "ActionIconGroupSection",
|
|
11968
11968
|
props,
|
|
11969
|
-
classes: classes$
|
|
11969
|
+
classes: classes$V,
|
|
11970
11970
|
className,
|
|
11971
11971
|
style,
|
|
11972
11972
|
classNames: classNames2,
|
|
@@ -11974,14 +11974,14 @@ const ActionIconGroupSection = factory((_props, ref) => {
|
|
|
11974
11974
|
unstyled,
|
|
11975
11975
|
attributes,
|
|
11976
11976
|
vars,
|
|
11977
|
-
varsResolver: varsResolver$
|
|
11977
|
+
varsResolver: varsResolver$V,
|
|
11978
11978
|
rootSelector: "groupSection"
|
|
11979
11979
|
});
|
|
11980
11980
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { ...getStyles2("groupSection"), ref, variant, ...others });
|
|
11981
11981
|
});
|
|
11982
|
-
ActionIconGroupSection.classes = classes$
|
|
11982
|
+
ActionIconGroupSection.classes = classes$V;
|
|
11983
11983
|
ActionIconGroupSection.displayName = "@mantine/core/ActionIconGroupSection";
|
|
11984
|
-
const varsResolver$
|
|
11984
|
+
const varsResolver$U = createVarsResolver(
|
|
11985
11985
|
(theme2, { size: size2, radius, variant, gradient, color, autoContrast }) => {
|
|
11986
11986
|
const colors2 = theme2.variantColorResolver({
|
|
11987
11987
|
color: color || theme2.primaryColor,
|
|
@@ -12033,13 +12033,13 @@ const ActionIcon$1 = polymorphicFactory((_props, ref) => {
|
|
|
12033
12033
|
props,
|
|
12034
12034
|
className,
|
|
12035
12035
|
style,
|
|
12036
|
-
classes: classes$
|
|
12036
|
+
classes: classes$V,
|
|
12037
12037
|
classNames: classNames2,
|
|
12038
12038
|
styles,
|
|
12039
12039
|
unstyled,
|
|
12040
12040
|
attributes,
|
|
12041
12041
|
vars,
|
|
12042
|
-
varsResolver: varsResolver$
|
|
12042
|
+
varsResolver: varsResolver$U
|
|
12043
12043
|
});
|
|
12044
12044
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12045
12045
|
UnstyledButton,
|
|
@@ -12059,7 +12059,7 @@ const ActionIcon$1 = polymorphicFactory((_props, ref) => {
|
|
|
12059
12059
|
}
|
|
12060
12060
|
);
|
|
12061
12061
|
});
|
|
12062
|
-
ActionIcon$1.classes = classes$
|
|
12062
|
+
ActionIcon$1.classes = classes$V;
|
|
12063
12063
|
ActionIcon$1.displayName = "@mantine/core/ActionIcon";
|
|
12064
12064
|
ActionIcon$1.Group = ActionIconGroup;
|
|
12065
12065
|
ActionIcon$1.GroupSection = ActionIconGroupSection;
|
|
@@ -12086,11 +12086,11 @@ const CloseIcon = React.forwardRef(
|
|
|
12086
12086
|
)
|
|
12087
12087
|
);
|
|
12088
12088
|
CloseIcon.displayName = "@mantine/core/CloseIcon";
|
|
12089
|
-
var classes$
|
|
12090
|
-
const defaultProps$
|
|
12089
|
+
var classes$U = { "root": "m_86a44da5", "root--subtle": "m_220c80f2" };
|
|
12090
|
+
const defaultProps$15 = {
|
|
12091
12091
|
variant: "subtle"
|
|
12092
12092
|
};
|
|
12093
|
-
const varsResolver$
|
|
12093
|
+
const varsResolver$T = createVarsResolver((_, { size: size2, radius, iconSize }) => ({
|
|
12094
12094
|
root: {
|
|
12095
12095
|
"--cb-size": getSize(size2, "cb-size"),
|
|
12096
12096
|
"--cb-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
@@ -12098,7 +12098,7 @@ const varsResolver$R = createVarsResolver((_, { size: size2, radius, iconSize })
|
|
|
12098
12098
|
}
|
|
12099
12099
|
}));
|
|
12100
12100
|
const CloseButton = polymorphicFactory((_props, ref) => {
|
|
12101
|
-
const props = useProps("CloseButton", defaultProps$
|
|
12101
|
+
const props = useProps("CloseButton", defaultProps$15, _props);
|
|
12102
12102
|
const {
|
|
12103
12103
|
iconSize,
|
|
12104
12104
|
children,
|
|
@@ -12123,13 +12123,13 @@ const CloseButton = polymorphicFactory((_props, ref) => {
|
|
|
12123
12123
|
props,
|
|
12124
12124
|
className,
|
|
12125
12125
|
style,
|
|
12126
|
-
classes: classes$
|
|
12126
|
+
classes: classes$U,
|
|
12127
12127
|
classNames: classNames2,
|
|
12128
12128
|
styles,
|
|
12129
12129
|
unstyled,
|
|
12130
12130
|
attributes,
|
|
12131
12131
|
vars,
|
|
12132
|
-
varsResolver: varsResolver$
|
|
12132
|
+
varsResolver: varsResolver$T
|
|
12133
12133
|
});
|
|
12134
12134
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12135
12135
|
UnstyledButton,
|
|
@@ -12148,20 +12148,20 @@ const CloseButton = polymorphicFactory((_props, ref) => {
|
|
|
12148
12148
|
}
|
|
12149
12149
|
);
|
|
12150
12150
|
});
|
|
12151
|
-
CloseButton.classes = classes$
|
|
12151
|
+
CloseButton.classes = classes$U;
|
|
12152
12152
|
CloseButton.displayName = "@mantine/core/CloseButton";
|
|
12153
12153
|
function filterFalsyChildren(children) {
|
|
12154
12154
|
return React.Children.toArray(children).filter(Boolean);
|
|
12155
12155
|
}
|
|
12156
|
-
var classes$
|
|
12157
|
-
const defaultProps$
|
|
12156
|
+
var classes$T = { "root": "m_4081bf90" };
|
|
12157
|
+
const defaultProps$14 = {
|
|
12158
12158
|
preventGrowOverflow: true,
|
|
12159
12159
|
gap: "md",
|
|
12160
12160
|
align: "center",
|
|
12161
12161
|
justify: "flex-start",
|
|
12162
12162
|
wrap: "wrap"
|
|
12163
12163
|
};
|
|
12164
|
-
const varsResolver$
|
|
12164
|
+
const varsResolver$S = createVarsResolver(
|
|
12165
12165
|
(_, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({
|
|
12166
12166
|
root: {
|
|
12167
12167
|
"--group-child-width": grow && preventGrowOverflow ? childWidth : void 0,
|
|
@@ -12173,7 +12173,7 @@ const varsResolver$Q = createVarsResolver(
|
|
|
12173
12173
|
})
|
|
12174
12174
|
);
|
|
12175
12175
|
const Group = factory((_props, ref) => {
|
|
12176
|
-
const props = useProps("Group", defaultProps$
|
|
12176
|
+
const props = useProps("Group", defaultProps$14, _props);
|
|
12177
12177
|
const {
|
|
12178
12178
|
classNames: classNames2,
|
|
12179
12179
|
className,
|
|
@@ -12205,13 +12205,13 @@ const Group = factory((_props, ref) => {
|
|
|
12205
12205
|
stylesCtx,
|
|
12206
12206
|
className,
|
|
12207
12207
|
style,
|
|
12208
|
-
classes: classes$
|
|
12208
|
+
classes: classes$T,
|
|
12209
12209
|
classNames: classNames2,
|
|
12210
12210
|
styles,
|
|
12211
12211
|
unstyled,
|
|
12212
12212
|
attributes,
|
|
12213
12213
|
vars,
|
|
12214
|
-
varsResolver: varsResolver$
|
|
12214
|
+
varsResolver: varsResolver$S
|
|
12215
12215
|
});
|
|
12216
12216
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12217
12217
|
Box,
|
|
@@ -12226,7 +12226,7 @@ const Group = factory((_props, ref) => {
|
|
|
12226
12226
|
}
|
|
12227
12227
|
);
|
|
12228
12228
|
});
|
|
12229
|
-
Group.classes = classes$
|
|
12229
|
+
Group.classes = classes$T;
|
|
12230
12230
|
Group.displayName = "@mantine/core/Group";
|
|
12231
12231
|
const [ModalBaseProvider, useModalBaseContext] = createSafeContext(
|
|
12232
12232
|
"ModalBase component was not found in tree"
|
|
@@ -12358,7 +12358,7 @@ const ModalBase = React.forwardRef(
|
|
|
12358
12358
|
}
|
|
12359
12359
|
);
|
|
12360
12360
|
ModalBase.displayName = "@mantine/core/ModalBase";
|
|
12361
|
-
var classes$
|
|
12361
|
+
var classes$S = { "title": "m_615af6c9", "header": "m_b5489c3c", "inner": "m_60c222c7", "content": "m_fd1ab0aa", "close": "m_606cb269", "body": "m_5df29311" };
|
|
12362
12362
|
function useModalBodyId() {
|
|
12363
12363
|
const ctx = useModalBaseContext();
|
|
12364
12364
|
React.useEffect(() => {
|
|
@@ -12377,7 +12377,7 @@ const ModalBaseBody = React.forwardRef(
|
|
|
12377
12377
|
ref,
|
|
12378
12378
|
...others,
|
|
12379
12379
|
id: bodyId,
|
|
12380
|
-
className: clsx({ [classes$
|
|
12380
|
+
className: clsx({ [classes$S.body]: !ctx.unstyled }, className)
|
|
12381
12381
|
}
|
|
12382
12382
|
);
|
|
12383
12383
|
}
|
|
@@ -12395,7 +12395,7 @@ const ModalBaseCloseButton = React.forwardRef(
|
|
|
12395
12395
|
ctx.onClose();
|
|
12396
12396
|
onClick?.(event);
|
|
12397
12397
|
},
|
|
12398
|
-
className: clsx({ [classes$
|
|
12398
|
+
className: clsx({ [classes$S.close]: !ctx.unstyled }, className),
|
|
12399
12399
|
unstyled: ctx.unstyled
|
|
12400
12400
|
}
|
|
12401
12401
|
);
|
|
@@ -12424,7 +12424,7 @@ const ModalBaseContent = React.forwardRef(
|
|
|
12424
12424
|
"div",
|
|
12425
12425
|
{
|
|
12426
12426
|
...innerProps,
|
|
12427
|
-
className: clsx({ [classes$
|
|
12427
|
+
className: clsx({ [classes$S.inner]: !ctx.unstyled }, innerProps.className),
|
|
12428
12428
|
children: /* @__PURE__ */ jsxRuntime.jsx(FocusTrap, { active: ctx.opened && ctx.trapFocus, innerRef: ref, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12429
12429
|
Paper,
|
|
12430
12430
|
{
|
|
@@ -12436,7 +12436,7 @@ const ModalBaseContent = React.forwardRef(
|
|
|
12436
12436
|
"aria-describedby": ctx.bodyMounted ? ctx.getBodyId() : void 0,
|
|
12437
12437
|
"aria-labelledby": ctx.titleMounted ? ctx.getTitleId() : void 0,
|
|
12438
12438
|
style: [style, transitionStyles],
|
|
12439
|
-
className: clsx({ [classes$
|
|
12439
|
+
className: clsx({ [classes$S.content]: !ctx.unstyled }, className),
|
|
12440
12440
|
unstyled: ctx.unstyled,
|
|
12441
12441
|
children: others.children
|
|
12442
12442
|
}
|
|
@@ -12456,7 +12456,7 @@ const ModalBaseHeader = React.forwardRef(
|
|
|
12456
12456
|
{
|
|
12457
12457
|
component: "header",
|
|
12458
12458
|
ref,
|
|
12459
|
-
className: clsx({ [classes$
|
|
12459
|
+
className: clsx({ [classes$S.header]: !ctx.unstyled }, className),
|
|
12460
12460
|
...others
|
|
12461
12461
|
}
|
|
12462
12462
|
);
|
|
@@ -12519,7 +12519,7 @@ const ModalBaseTitle = React.forwardRef(
|
|
|
12519
12519
|
{
|
|
12520
12520
|
component: "h2",
|
|
12521
12521
|
ref,
|
|
12522
|
-
className: clsx({ [classes$
|
|
12522
|
+
className: clsx({ [classes$S.title]: !ctx.unstyled }, className),
|
|
12523
12523
|
...others,
|
|
12524
12524
|
id: id2
|
|
12525
12525
|
}
|
|
@@ -12533,7 +12533,7 @@ function NativeScrollArea({ children }) {
|
|
|
12533
12533
|
const [InputContext, useInputContext] = createOptionalContext({
|
|
12534
12534
|
size: "sm"
|
|
12535
12535
|
});
|
|
12536
|
-
var classes$
|
|
12536
|
+
var classes$R = { "wrapper": "m_6c018570", "input": "m_8fb7ebe7", "section": "m_82577fc2", "placeholder": "m_88bacfd0", "root": "m_46b77525", "label": "m_8fdc1311", "required": "m_78a94662", "error": "m_8f816625", "description": "m_fe47ce59" };
|
|
12537
12537
|
const InputClearButton = factory((_props, ref) => {
|
|
12538
12538
|
const props = useProps("InputClearButton", null, _props);
|
|
12539
12539
|
const { size: size2, variant, vars, classNames: classNames2, styles, ...others } = props;
|
|
@@ -12558,7 +12558,7 @@ const InputClearButton = factory((_props, ref) => {
|
|
|
12558
12558
|
);
|
|
12559
12559
|
});
|
|
12560
12560
|
InputClearButton.displayName = "@mantine/core/InputClearButton";
|
|
12561
|
-
const clearSectionOffset = {
|
|
12561
|
+
const clearSectionOffset$1 = {
|
|
12562
12562
|
xs: 7,
|
|
12563
12563
|
sm: 8,
|
|
12564
12564
|
md: 10,
|
|
@@ -12582,7 +12582,7 @@ function InputClearSection({
|
|
|
12582
12582
|
display: "flex",
|
|
12583
12583
|
gap: 2,
|
|
12584
12584
|
alignItems: "center",
|
|
12585
|
-
paddingInlineEnd: clearSectionOffset[size2]
|
|
12585
|
+
paddingInlineEnd: clearSectionOffset$1[size2]
|
|
12586
12586
|
},
|
|
12587
12587
|
children: [
|
|
12588
12588
|
clearSection,
|
|
@@ -12601,7 +12601,7 @@ const [InputWrapperProvider, useInputWrapperContext] = createOptionalContext({
|
|
|
12601
12601
|
inputId: void 0,
|
|
12602
12602
|
labelId: void 0
|
|
12603
12603
|
});
|
|
12604
|
-
const varsResolver$
|
|
12604
|
+
const varsResolver$R = createVarsResolver((_, { size: size2 }) => ({
|
|
12605
12605
|
description: {
|
|
12606
12606
|
"--input-description-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
|
|
12607
12607
|
}
|
|
@@ -12626,7 +12626,7 @@ const InputDescription = factory((_props, ref) => {
|
|
|
12626
12626
|
const _getStyles = useStyles({
|
|
12627
12627
|
name: ["InputWrapper", __staticSelector],
|
|
12628
12628
|
props,
|
|
12629
|
-
classes: classes$
|
|
12629
|
+
classes: classes$R,
|
|
12630
12630
|
className,
|
|
12631
12631
|
style,
|
|
12632
12632
|
classNames: classNames2,
|
|
@@ -12635,7 +12635,7 @@ const InputDescription = factory((_props, ref) => {
|
|
|
12635
12635
|
attributes,
|
|
12636
12636
|
rootSelector: "description",
|
|
12637
12637
|
vars,
|
|
12638
|
-
varsResolver: varsResolver$
|
|
12638
|
+
varsResolver: varsResolver$R
|
|
12639
12639
|
});
|
|
12640
12640
|
const getStyles2 = __inheritStyles && ctx?.getStyles || _getStyles;
|
|
12641
12641
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12650,9 +12650,9 @@ const InputDescription = factory((_props, ref) => {
|
|
|
12650
12650
|
}
|
|
12651
12651
|
);
|
|
12652
12652
|
});
|
|
12653
|
-
InputDescription.classes = classes$
|
|
12653
|
+
InputDescription.classes = classes$R;
|
|
12654
12654
|
InputDescription.displayName = "@mantine/core/InputDescription";
|
|
12655
|
-
const varsResolver$
|
|
12655
|
+
const varsResolver$Q = createVarsResolver((_, { size: size2 }) => ({
|
|
12656
12656
|
error: {
|
|
12657
12657
|
"--input-error-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
|
|
12658
12658
|
}
|
|
@@ -12676,7 +12676,7 @@ const InputError = factory((_props, ref) => {
|
|
|
12676
12676
|
const _getStyles = useStyles({
|
|
12677
12677
|
name: ["InputWrapper", __staticSelector],
|
|
12678
12678
|
props,
|
|
12679
|
-
classes: classes$
|
|
12679
|
+
classes: classes$R,
|
|
12680
12680
|
className,
|
|
12681
12681
|
style,
|
|
12682
12682
|
classNames: classNames2,
|
|
@@ -12685,7 +12685,7 @@ const InputError = factory((_props, ref) => {
|
|
|
12685
12685
|
attributes,
|
|
12686
12686
|
rootSelector: "error",
|
|
12687
12687
|
vars,
|
|
12688
|
-
varsResolver: varsResolver$
|
|
12688
|
+
varsResolver: varsResolver$Q
|
|
12689
12689
|
});
|
|
12690
12690
|
const ctx = useInputWrapperContext();
|
|
12691
12691
|
const getStyles2 = __inheritStyles && ctx?.getStyles || _getStyles;
|
|
@@ -12701,19 +12701,19 @@ const InputError = factory((_props, ref) => {
|
|
|
12701
12701
|
}
|
|
12702
12702
|
);
|
|
12703
12703
|
});
|
|
12704
|
-
InputError.classes = classes$
|
|
12704
|
+
InputError.classes = classes$R;
|
|
12705
12705
|
InputError.displayName = "@mantine/core/InputError";
|
|
12706
|
-
const defaultProps
|
|
12706
|
+
const defaultProps$13 = {
|
|
12707
12707
|
labelElement: "label"
|
|
12708
12708
|
};
|
|
12709
|
-
const varsResolver$
|
|
12709
|
+
const varsResolver$P = createVarsResolver((_, { size: size2 }) => ({
|
|
12710
12710
|
label: {
|
|
12711
12711
|
"--input-label-size": getFontSize(size2),
|
|
12712
12712
|
"--input-asterisk-color": void 0
|
|
12713
12713
|
}
|
|
12714
12714
|
}));
|
|
12715
12715
|
const InputLabel = factory((_props, ref) => {
|
|
12716
|
-
const props = useProps("InputLabel", defaultProps
|
|
12716
|
+
const props = useProps("InputLabel", defaultProps$13, _props);
|
|
12717
12717
|
const {
|
|
12718
12718
|
classNames: classNames2,
|
|
12719
12719
|
className,
|
|
@@ -12732,11 +12732,11 @@ const InputLabel = factory((_props, ref) => {
|
|
|
12732
12732
|
mod,
|
|
12733
12733
|
attributes,
|
|
12734
12734
|
...others
|
|
12735
|
-
} = useProps("InputLabel", defaultProps
|
|
12735
|
+
} = useProps("InputLabel", defaultProps$13, props);
|
|
12736
12736
|
const _getStyles = useStyles({
|
|
12737
12737
|
name: ["InputWrapper", __staticSelector],
|
|
12738
12738
|
props,
|
|
12739
|
-
classes: classes$
|
|
12739
|
+
classes: classes$R,
|
|
12740
12740
|
className,
|
|
12741
12741
|
style,
|
|
12742
12742
|
classNames: classNames2,
|
|
@@ -12745,7 +12745,7 @@ const InputLabel = factory((_props, ref) => {
|
|
|
12745
12745
|
attributes,
|
|
12746
12746
|
rootSelector: "label",
|
|
12747
12747
|
vars,
|
|
12748
|
-
varsResolver: varsResolver$
|
|
12748
|
+
varsResolver: varsResolver$P
|
|
12749
12749
|
});
|
|
12750
12750
|
const ctx = useInputWrapperContext();
|
|
12751
12751
|
const getStyles2 = ctx?.getStyles || _getStyles;
|
|
@@ -12773,7 +12773,7 @@ const InputLabel = factory((_props, ref) => {
|
|
|
12773
12773
|
}
|
|
12774
12774
|
);
|
|
12775
12775
|
});
|
|
12776
|
-
InputLabel.classes = classes$
|
|
12776
|
+
InputLabel.classes = classes$R;
|
|
12777
12777
|
InputLabel.displayName = "@mantine/core/InputLabel";
|
|
12778
12778
|
const InputPlaceholder = factory((_props, ref) => {
|
|
12779
12779
|
const props = useProps("InputPlaceholder", null, _props);
|
|
@@ -12794,7 +12794,7 @@ const InputPlaceholder = factory((_props, ref) => {
|
|
|
12794
12794
|
const getStyles2 = useStyles({
|
|
12795
12795
|
name: ["InputPlaceholder", __staticSelector],
|
|
12796
12796
|
props,
|
|
12797
|
-
classes: classes$
|
|
12797
|
+
classes: classes$R,
|
|
12798
12798
|
className,
|
|
12799
12799
|
style,
|
|
12800
12800
|
classNames: classNames2,
|
|
@@ -12815,7 +12815,7 @@ const InputPlaceholder = factory((_props, ref) => {
|
|
|
12815
12815
|
}
|
|
12816
12816
|
);
|
|
12817
12817
|
});
|
|
12818
|
-
InputPlaceholder.classes = classes$
|
|
12818
|
+
InputPlaceholder.classes = classes$R;
|
|
12819
12819
|
InputPlaceholder.displayName = "@mantine/core/InputPlaceholder";
|
|
12820
12820
|
function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
|
|
12821
12821
|
const inputIndex = inputWrapperOrder.findIndex((part) => part === "input");
|
|
@@ -12825,12 +12825,12 @@ function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
|
|
|
12825
12825
|
const offsetBottom = hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error");
|
|
12826
12826
|
return { offsetBottom, offsetTop };
|
|
12827
12827
|
}
|
|
12828
|
-
const defaultProps$
|
|
12828
|
+
const defaultProps$12 = {
|
|
12829
12829
|
labelElement: "label",
|
|
12830
12830
|
inputContainer: (children) => children,
|
|
12831
12831
|
inputWrapperOrder: ["label", "description", "input", "error"]
|
|
12832
12832
|
};
|
|
12833
|
-
const varsResolver$
|
|
12833
|
+
const varsResolver$O = createVarsResolver((_, { size: size2 }) => ({
|
|
12834
12834
|
label: {
|
|
12835
12835
|
"--input-label-size": getFontSize(size2),
|
|
12836
12836
|
"--input-asterisk-color": void 0
|
|
@@ -12843,7 +12843,7 @@ const varsResolver$M = createVarsResolver((_, { size: size2 }) => ({
|
|
|
12843
12843
|
}
|
|
12844
12844
|
}));
|
|
12845
12845
|
const InputWrapper = factory((_props, ref) => {
|
|
12846
|
-
const props = useProps("InputWrapper", defaultProps$
|
|
12846
|
+
const props = useProps("InputWrapper", defaultProps$12, _props);
|
|
12847
12847
|
const {
|
|
12848
12848
|
classNames: classNames2,
|
|
12849
12849
|
className,
|
|
@@ -12875,7 +12875,7 @@ const InputWrapper = factory((_props, ref) => {
|
|
|
12875
12875
|
const getStyles2 = useStyles({
|
|
12876
12876
|
name: ["InputWrapper", __staticSelector],
|
|
12877
12877
|
props: __stylesApiProps || props,
|
|
12878
|
-
classes: classes$
|
|
12878
|
+
classes: classes$R,
|
|
12879
12879
|
className,
|
|
12880
12880
|
style,
|
|
12881
12881
|
classNames: classNames2,
|
|
@@ -12883,7 +12883,7 @@ const InputWrapper = factory((_props, ref) => {
|
|
|
12883
12883
|
unstyled,
|
|
12884
12884
|
attributes,
|
|
12885
12885
|
vars,
|
|
12886
|
-
varsResolver: varsResolver$
|
|
12886
|
+
varsResolver: varsResolver$O
|
|
12887
12887
|
});
|
|
12888
12888
|
const sharedProps = {
|
|
12889
12889
|
size: size2,
|
|
@@ -12975,9 +12975,9 @@ const InputWrapper = factory((_props, ref) => {
|
|
|
12975
12975
|
}
|
|
12976
12976
|
);
|
|
12977
12977
|
});
|
|
12978
|
-
InputWrapper.classes = classes$
|
|
12978
|
+
InputWrapper.classes = classes$R;
|
|
12979
12979
|
InputWrapper.displayName = "@mantine/core/InputWrapper";
|
|
12980
|
-
const defaultProps$
|
|
12980
|
+
const defaultProps$11 = {
|
|
12981
12981
|
variant: "default",
|
|
12982
12982
|
leftSectionPointerEvents: "none",
|
|
12983
12983
|
rightSectionPointerEvents: "none",
|
|
@@ -12985,7 +12985,7 @@ const defaultProps$Z = {
|
|
|
12985
12985
|
withErrorStyles: true,
|
|
12986
12986
|
size: "sm"
|
|
12987
12987
|
};
|
|
12988
|
-
const varsResolver$
|
|
12988
|
+
const varsResolver$N = createVarsResolver((_, props, ctx) => ({
|
|
12989
12989
|
wrapper: {
|
|
12990
12990
|
"--input-margin-top": ctx.offsetTop ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
|
|
12991
12991
|
"--input-margin-bottom": ctx.offsetBottom ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
|
|
@@ -13000,7 +13000,7 @@ const varsResolver$L = createVarsResolver((_, props, ctx) => ({
|
|
|
13000
13000
|
}
|
|
13001
13001
|
}));
|
|
13002
13002
|
const Input = polymorphicFactory((_props, ref) => {
|
|
13003
|
-
const props = useProps("Input", defaultProps$
|
|
13003
|
+
const props = useProps("Input", defaultProps$11, _props);
|
|
13004
13004
|
const {
|
|
13005
13005
|
classNames: classNames2,
|
|
13006
13006
|
className,
|
|
@@ -13044,7 +13044,7 @@ const Input = polymorphicFactory((_props, ref) => {
|
|
|
13044
13044
|
const getStyles2 = useStyles({
|
|
13045
13045
|
name: ["Input", __staticSelector],
|
|
13046
13046
|
props: __stylesApiProps || props,
|
|
13047
|
-
classes: classes$
|
|
13047
|
+
classes: classes$R,
|
|
13048
13048
|
className,
|
|
13049
13049
|
style,
|
|
13050
13050
|
classNames: classNames2,
|
|
@@ -13054,7 +13054,7 @@ const Input = polymorphicFactory((_props, ref) => {
|
|
|
13054
13054
|
stylesCtx,
|
|
13055
13055
|
rootSelector: "wrapper",
|
|
13056
13056
|
vars,
|
|
13057
|
-
varsResolver: varsResolver$
|
|
13057
|
+
varsResolver: varsResolver$N
|
|
13058
13058
|
});
|
|
13059
13059
|
const ariaAttributes = withAria ? {
|
|
13060
13060
|
required: required2,
|
|
@@ -13132,7 +13132,7 @@ const Input = polymorphicFactory((_props, ref) => {
|
|
|
13132
13132
|
}
|
|
13133
13133
|
) });
|
|
13134
13134
|
});
|
|
13135
|
-
Input.classes = classes$
|
|
13135
|
+
Input.classes = classes$R;
|
|
13136
13136
|
Input.Wrapper = InputWrapper;
|
|
13137
13137
|
Input.Label = InputLabel;
|
|
13138
13138
|
Input.Error = InputError;
|
|
@@ -13216,13 +13216,13 @@ function useInputProps(component, defaultProps2, _props) {
|
|
|
13216
13216
|
}
|
|
13217
13217
|
};
|
|
13218
13218
|
}
|
|
13219
|
-
const defaultProps$
|
|
13219
|
+
const defaultProps$10 = {
|
|
13220
13220
|
__staticSelector: "InputBase",
|
|
13221
13221
|
withAria: true,
|
|
13222
13222
|
size: "sm"
|
|
13223
13223
|
};
|
|
13224
13224
|
const InputBase = polymorphicFactory((props, ref) => {
|
|
13225
|
-
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$
|
|
13225
|
+
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$10, props);
|
|
13226
13226
|
return /* @__PURE__ */ jsxRuntime.jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsxRuntime.jsx(Input, { ...inputProps, ...others, ref }) });
|
|
13227
13227
|
});
|
|
13228
13228
|
InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
|
|
@@ -13236,7 +13236,7 @@ const FLEX_STYLE_PROPS_DATA = {
|
|
|
13236
13236
|
wrap: { type: "identity", property: "flexWrap" },
|
|
13237
13237
|
direction: { type: "identity", property: "flexDirection" }
|
|
13238
13238
|
};
|
|
13239
|
-
var classes$
|
|
13239
|
+
var classes$Q = { "root": "m_8bffd616" };
|
|
13240
13240
|
const Flex = polymorphicFactory((_props, ref) => {
|
|
13241
13241
|
const props = useProps("Flex", null, _props);
|
|
13242
13242
|
const {
|
|
@@ -13258,7 +13258,7 @@ const Flex = polymorphicFactory((_props, ref) => {
|
|
|
13258
13258
|
} = props;
|
|
13259
13259
|
const getStyles2 = useStyles({
|
|
13260
13260
|
name: "Flex",
|
|
13261
|
-
classes: classes$
|
|
13261
|
+
classes: classes$Q,
|
|
13262
13262
|
props,
|
|
13263
13263
|
className,
|
|
13264
13264
|
style,
|
|
@@ -13297,9 +13297,9 @@ const Flex = polymorphicFactory((_props, ref) => {
|
|
|
13297
13297
|
)
|
|
13298
13298
|
] });
|
|
13299
13299
|
});
|
|
13300
|
-
Flex.classes = classes$
|
|
13300
|
+
Flex.classes = classes$Q;
|
|
13301
13301
|
Flex.displayName = "@mantine/core/Flex";
|
|
13302
|
-
var classes$
|
|
13302
|
+
var classes$P = { "root": "m_96b553a6" };
|
|
13303
13303
|
function isParent(parentElement, childElement) {
|
|
13304
13304
|
if (!childElement || !parentElement) {
|
|
13305
13305
|
return false;
|
|
@@ -13411,7 +13411,7 @@ function useFloatingIndicator({
|
|
|
13411
13411
|
);
|
|
13412
13412
|
return { initialized, hidden: hidden2 };
|
|
13413
13413
|
}
|
|
13414
|
-
const varsResolver$
|
|
13414
|
+
const varsResolver$M = createVarsResolver(
|
|
13415
13415
|
(_theme, { transitionDuration }) => ({
|
|
13416
13416
|
root: {
|
|
13417
13417
|
"--transition-duration": typeof transitionDuration === "number" ? `${transitionDuration}ms` : transitionDuration
|
|
@@ -13437,7 +13437,7 @@ const FloatingIndicator = factory((_props, ref) => {
|
|
|
13437
13437
|
} = props;
|
|
13438
13438
|
const getStyles2 = useStyles({
|
|
13439
13439
|
name: "FloatingIndicator",
|
|
13440
|
-
classes: classes$
|
|
13440
|
+
classes: classes$P,
|
|
13441
13441
|
props,
|
|
13442
13442
|
className,
|
|
13443
13443
|
style,
|
|
@@ -13446,7 +13446,7 @@ const FloatingIndicator = factory((_props, ref) => {
|
|
|
13446
13446
|
unstyled,
|
|
13447
13447
|
attributes,
|
|
13448
13448
|
vars,
|
|
13449
|
-
varsResolver: varsResolver$
|
|
13449
|
+
varsResolver: varsResolver$M
|
|
13450
13450
|
});
|
|
13451
13451
|
const innerRef = React.useRef(null);
|
|
13452
13452
|
const { initialized, hidden: hidden2 } = useFloatingIndicator({
|
|
@@ -13462,7 +13462,7 @@ const FloatingIndicator = factory((_props, ref) => {
|
|
|
13462
13462
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { ref: mergedRef, mod: [{ initialized, hidden: hidden2 }, mod], ...getStyles2("root"), ...others });
|
|
13463
13463
|
});
|
|
13464
13464
|
FloatingIndicator.displayName = "@mantine/core/FloatingIndicator";
|
|
13465
|
-
FloatingIndicator.classes = classes$
|
|
13465
|
+
FloatingIndicator.classes = classes$P;
|
|
13466
13466
|
function useDelayedHover({ open, close, openDelay, closeDelay }) {
|
|
13467
13467
|
const openTimeout = React.useRef(-1);
|
|
13468
13468
|
const closeTimeout = React.useRef(-1);
|
|
@@ -13511,8 +13511,8 @@ function AccordionChevron({ style, size: size2 = 16, ...others }) {
|
|
|
13511
13511
|
);
|
|
13512
13512
|
}
|
|
13513
13513
|
AccordionChevron.displayName = "@mantine/core/AccordionChevron";
|
|
13514
|
-
var classes$
|
|
13515
|
-
const varsResolver$
|
|
13514
|
+
var classes$O = { "root": "m_66836ed3", "wrapper": "m_a5d60502", "body": "m_667c2793", "title": "m_6a03f287", "label": "m_698f4f23", "icon": "m_667f2a6a", "message": "m_7fa78076", "closeButton": "m_87f54839" };
|
|
13515
|
+
const varsResolver$L = createVarsResolver(
|
|
13516
13516
|
(theme2, { radius, color, variant, autoContrast }) => {
|
|
13517
13517
|
const colors2 = theme2.variantColorResolver({
|
|
13518
13518
|
color: color || theme2.primaryColor,
|
|
@@ -13556,7 +13556,7 @@ const Alert$1 = factory((_props, ref) => {
|
|
|
13556
13556
|
} = props;
|
|
13557
13557
|
const getStyles2 = useStyles({
|
|
13558
13558
|
name: "Alert",
|
|
13559
|
-
classes: classes$
|
|
13559
|
+
classes: classes$O,
|
|
13560
13560
|
props,
|
|
13561
13561
|
className,
|
|
13562
13562
|
style,
|
|
@@ -13565,7 +13565,7 @@ const Alert$1 = factory((_props, ref) => {
|
|
|
13565
13565
|
unstyled,
|
|
13566
13566
|
attributes,
|
|
13567
13567
|
vars,
|
|
13568
|
-
varsResolver: varsResolver$
|
|
13568
|
+
varsResolver: varsResolver$L
|
|
13569
13569
|
});
|
|
13570
13570
|
const rootId = useId$1(id2);
|
|
13571
13571
|
const titleId = title && `${rootId}-title` || void 0;
|
|
@@ -13603,9 +13603,9 @@ const Alert$1 = factory((_props, ref) => {
|
|
|
13603
13603
|
}
|
|
13604
13604
|
);
|
|
13605
13605
|
});
|
|
13606
|
-
Alert$1.classes = classes$
|
|
13606
|
+
Alert$1.classes = classes$O;
|
|
13607
13607
|
Alert$1.displayName = "@mantine/core/Alert";
|
|
13608
|
-
var classes$
|
|
13608
|
+
var classes$N = { "root": "m_b6d8b162" };
|
|
13609
13609
|
function getTextTruncate(truncate) {
|
|
13610
13610
|
if (truncate === "start") {
|
|
13611
13611
|
return "start";
|
|
@@ -13615,10 +13615,10 @@ function getTextTruncate(truncate) {
|
|
|
13615
13615
|
}
|
|
13616
13616
|
return void 0;
|
|
13617
13617
|
}
|
|
13618
|
-
const defaultProps
|
|
13618
|
+
const defaultProps$$ = {
|
|
13619
13619
|
inherit: false
|
|
13620
13620
|
};
|
|
13621
|
-
const varsResolver$
|
|
13621
|
+
const varsResolver$K = createVarsResolver(
|
|
13622
13622
|
// Will be removed in 9.0
|
|
13623
13623
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
13624
13624
|
(theme2, { variant, lineClamp, gradient, size: size2, color }) => ({
|
|
@@ -13632,7 +13632,7 @@ const varsResolver$I = createVarsResolver(
|
|
|
13632
13632
|
})
|
|
13633
13633
|
);
|
|
13634
13634
|
const Text = polymorphicFactory((_props, ref) => {
|
|
13635
|
-
const props = useProps("Text", defaultProps
|
|
13635
|
+
const props = useProps("Text", defaultProps$$, _props);
|
|
13636
13636
|
const {
|
|
13637
13637
|
lineClamp,
|
|
13638
13638
|
truncate,
|
|
@@ -13656,7 +13656,7 @@ const Text = polymorphicFactory((_props, ref) => {
|
|
|
13656
13656
|
const getStyles2 = useStyles({
|
|
13657
13657
|
name: ["Text", __staticSelector],
|
|
13658
13658
|
props,
|
|
13659
|
-
classes: classes$
|
|
13659
|
+
classes: classes$N,
|
|
13660
13660
|
className,
|
|
13661
13661
|
style,
|
|
13662
13662
|
classNames: classNames2,
|
|
@@ -13664,7 +13664,7 @@ const Text = polymorphicFactory((_props, ref) => {
|
|
|
13664
13664
|
unstyled,
|
|
13665
13665
|
attributes,
|
|
13666
13666
|
vars,
|
|
13667
|
-
varsResolver: varsResolver$
|
|
13667
|
+
varsResolver: varsResolver$K
|
|
13668
13668
|
});
|
|
13669
13669
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13670
13670
|
Box,
|
|
@@ -13687,16 +13687,16 @@ const Text = polymorphicFactory((_props, ref) => {
|
|
|
13687
13687
|
}
|
|
13688
13688
|
);
|
|
13689
13689
|
});
|
|
13690
|
-
Text.classes = classes$
|
|
13690
|
+
Text.classes = classes$N;
|
|
13691
13691
|
Text.displayName = "@mantine/core/Text";
|
|
13692
|
-
var classes$
|
|
13693
|
-
const defaultProps$
|
|
13692
|
+
var classes$M = { "root": "m_849cf0da" };
|
|
13693
|
+
const defaultProps$_ = {
|
|
13694
13694
|
underline: "hover"
|
|
13695
13695
|
};
|
|
13696
13696
|
const Anchor = polymorphicFactory((props, ref) => {
|
|
13697
13697
|
const { underline, className, unstyled, mod, ...others } = useProps(
|
|
13698
13698
|
"Anchor",
|
|
13699
|
-
defaultProps$
|
|
13699
|
+
defaultProps$_,
|
|
13700
13700
|
props
|
|
13701
13701
|
);
|
|
13702
13702
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13704,7 +13704,7 @@ const Anchor = polymorphicFactory((props, ref) => {
|
|
|
13704
13704
|
{
|
|
13705
13705
|
component: "a",
|
|
13706
13706
|
ref,
|
|
13707
|
-
className: clsx({ [classes$
|
|
13707
|
+
className: clsx({ [classes$M.root]: !unstyled }, className),
|
|
13708
13708
|
...others,
|
|
13709
13709
|
mod: [{ underline }, mod],
|
|
13710
13710
|
__staticSelector: "Anchor",
|
|
@@ -13712,12 +13712,12 @@ const Anchor = polymorphicFactory((props, ref) => {
|
|
|
13712
13712
|
}
|
|
13713
13713
|
);
|
|
13714
13714
|
});
|
|
13715
|
-
Anchor.classes = classes$
|
|
13715
|
+
Anchor.classes = classes$M;
|
|
13716
13716
|
Anchor.displayName = "@mantine/core/Anchor";
|
|
13717
13717
|
const [AppShellProvider, useAppShellContext] = createSafeContext(
|
|
13718
13718
|
"AppShell was not found in tree"
|
|
13719
13719
|
);
|
|
13720
|
-
var classes$
|
|
13720
|
+
var classes$L = { "root": "m_89ab340", "navbar": "m_45252eee", "aside": "m_9cdde9a", "header": "m_3b16f56b", "main": "m_8983817", "footer": "m_3840c879", "section": "m_6dcfc7c7" };
|
|
13721
13721
|
const AppShellAside = factory((_props, ref) => {
|
|
13722
13722
|
const {
|
|
13723
13723
|
classNames: classNames2,
|
|
@@ -13752,7 +13752,7 @@ const AppShellAside = factory((_props, ref) => {
|
|
|
13752
13752
|
}
|
|
13753
13753
|
);
|
|
13754
13754
|
});
|
|
13755
|
-
AppShellAside.classes = classes$
|
|
13755
|
+
AppShellAside.classes = classes$L;
|
|
13756
13756
|
AppShellAside.displayName = "@mantine/core/AppShellAside";
|
|
13757
13757
|
const AppShellFooter = factory((_props, ref) => {
|
|
13758
13758
|
const {
|
|
@@ -13788,7 +13788,7 @@ const AppShellFooter = factory((_props, ref) => {
|
|
|
13788
13788
|
}
|
|
13789
13789
|
);
|
|
13790
13790
|
});
|
|
13791
|
-
AppShellFooter.classes = classes$
|
|
13791
|
+
AppShellFooter.classes = classes$L;
|
|
13792
13792
|
AppShellFooter.displayName = "@mantine/core/AppShellFooter";
|
|
13793
13793
|
const AppShellHeader = factory((_props, ref) => {
|
|
13794
13794
|
const {
|
|
@@ -13824,7 +13824,7 @@ const AppShellHeader = factory((_props, ref) => {
|
|
|
13824
13824
|
}
|
|
13825
13825
|
);
|
|
13826
13826
|
});
|
|
13827
|
-
AppShellHeader.classes = classes$
|
|
13827
|
+
AppShellHeader.classes = classes$L;
|
|
13828
13828
|
AppShellHeader.displayName = "@mantine/core/AppShellHeader";
|
|
13829
13829
|
const AppShellMain = factory((_props, ref) => {
|
|
13830
13830
|
const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
|
|
@@ -13843,7 +13843,7 @@ const AppShellMain = factory((_props, ref) => {
|
|
|
13843
13843
|
}
|
|
13844
13844
|
);
|
|
13845
13845
|
});
|
|
13846
|
-
AppShellMain.classes = classes$
|
|
13846
|
+
AppShellMain.classes = classes$L;
|
|
13847
13847
|
AppShellMain.displayName = "@mantine/core/AppShellMain";
|
|
13848
13848
|
function getBaseSize(size2) {
|
|
13849
13849
|
if (typeof size2 === "object") {
|
|
@@ -14237,7 +14237,7 @@ const AppShellNavbar = factory((_props, ref) => {
|
|
|
14237
14237
|
}
|
|
14238
14238
|
);
|
|
14239
14239
|
});
|
|
14240
|
-
AppShellNavbar.classes = classes$
|
|
14240
|
+
AppShellNavbar.classes = classes$L;
|
|
14241
14241
|
AppShellNavbar.displayName = "@mantine/core/AppShellNavbar";
|
|
14242
14242
|
const AppShellSection = polymorphicFactory((_props, ref) => {
|
|
14243
14243
|
const { classNames: classNames2, className, style, styles, vars, grow, mod, ...others } = useProps(
|
|
@@ -14256,7 +14256,7 @@ const AppShellSection = polymorphicFactory((_props, ref) => {
|
|
|
14256
14256
|
}
|
|
14257
14257
|
);
|
|
14258
14258
|
});
|
|
14259
|
-
AppShellSection.classes = classes$
|
|
14259
|
+
AppShellSection.classes = classes$L;
|
|
14260
14260
|
AppShellSection.displayName = "@mantine/core/AppShellSection";
|
|
14261
14261
|
function useResizing({ transitionDuration, disabled }) {
|
|
14262
14262
|
const [resizing, setResizing] = React.useState(true);
|
|
@@ -14284,7 +14284,7 @@ function useResizing({ transitionDuration, disabled }) {
|
|
|
14284
14284
|
}, [disabled, transitionDuration]);
|
|
14285
14285
|
return resizing;
|
|
14286
14286
|
}
|
|
14287
|
-
const defaultProps$
|
|
14287
|
+
const defaultProps$Z = {
|
|
14288
14288
|
withBorder: true,
|
|
14289
14289
|
padding: 0,
|
|
14290
14290
|
transitionDuration: 200,
|
|
@@ -14292,7 +14292,7 @@ const defaultProps$V = {
|
|
|
14292
14292
|
zIndex: getDefaultZIndex("app"),
|
|
14293
14293
|
mode: "fixed"
|
|
14294
14294
|
};
|
|
14295
|
-
const varsResolver$
|
|
14295
|
+
const varsResolver$J = createVarsResolver(
|
|
14296
14296
|
(_, { transitionDuration, transitionTimingFunction }) => ({
|
|
14297
14297
|
root: {
|
|
14298
14298
|
"--app-shell-transition-duration": `${transitionDuration}ms`,
|
|
@@ -14301,7 +14301,7 @@ const varsResolver$H = createVarsResolver(
|
|
|
14301
14301
|
})
|
|
14302
14302
|
);
|
|
14303
14303
|
const AppShell = factory((_props, ref) => {
|
|
14304
|
-
const props = useProps("AppShell", defaultProps$
|
|
14304
|
+
const props = useProps("AppShell", defaultProps$Z, _props);
|
|
14305
14305
|
const {
|
|
14306
14306
|
classNames: classNames2,
|
|
14307
14307
|
className,
|
|
@@ -14329,7 +14329,7 @@ const AppShell = factory((_props, ref) => {
|
|
|
14329
14329
|
} = props;
|
|
14330
14330
|
const getStyles2 = useStyles({
|
|
14331
14331
|
name: "AppShell",
|
|
14332
|
-
classes: classes$
|
|
14332
|
+
classes: classes$L,
|
|
14333
14333
|
props,
|
|
14334
14334
|
className,
|
|
14335
14335
|
style,
|
|
@@ -14338,7 +14338,7 @@ const AppShell = factory((_props, ref) => {
|
|
|
14338
14338
|
unstyled,
|
|
14339
14339
|
attributes,
|
|
14340
14340
|
vars,
|
|
14341
|
-
varsResolver: varsResolver$
|
|
14341
|
+
varsResolver: varsResolver$J
|
|
14342
14342
|
});
|
|
14343
14343
|
const resizing = useResizing({ disabled, transitionDuration });
|
|
14344
14344
|
const _id = useId$1(id2);
|
|
@@ -14367,7 +14367,7 @@ const AppShell = factory((_props, ref) => {
|
|
|
14367
14367
|
)
|
|
14368
14368
|
] });
|
|
14369
14369
|
});
|
|
14370
|
-
AppShell.classes = classes$
|
|
14370
|
+
AppShell.classes = classes$L;
|
|
14371
14371
|
AppShell.displayName = "@mantine/core/AppShell";
|
|
14372
14372
|
AppShell.Navbar = AppShellNavbar;
|
|
14373
14373
|
AppShell.Header = AppShellHeader;
|
|
@@ -14408,22 +14408,22 @@ function getOptionsLockup(options) {
|
|
|
14408
14408
|
return acc;
|
|
14409
14409
|
}, {});
|
|
14410
14410
|
}
|
|
14411
|
-
var classes$
|
|
14412
|
-
const defaultProps$
|
|
14411
|
+
var classes$K = { "dropdown": "m_88b62a41", "search": "m_985517d8", "options": "m_b2821a6e", "option": "m_92253aa5", "empty": "m_2530cd1d", "header": "m_858f94bd", "footer": "m_82b967cb", "group": "m_254f3e4f", "groupLabel": "m_2bb2e9e5", "chevron": "m_2943220b", "optionsDropdownOption": "m_390b5f4", "optionsDropdownCheckIcon": "m_8ee53fc2", "optionsDropdownCheckPlaceholder": "m_a530ee0a" };
|
|
14412
|
+
const defaultProps$Y = {
|
|
14413
14413
|
error: null
|
|
14414
14414
|
};
|
|
14415
|
-
const varsResolver$
|
|
14415
|
+
const varsResolver$I = createVarsResolver((theme2, { size: size2, color }) => ({
|
|
14416
14416
|
chevron: {
|
|
14417
14417
|
"--combobox-chevron-size": getSize(size2, "combobox-chevron-size"),
|
|
14418
14418
|
"--combobox-chevron-color": color ? getThemeColor(color, theme2) : void 0
|
|
14419
14419
|
}
|
|
14420
14420
|
}));
|
|
14421
14421
|
const ComboboxChevron = factory((_props, ref) => {
|
|
14422
|
-
const props = useProps("ComboboxChevron", defaultProps$
|
|
14422
|
+
const props = useProps("ComboboxChevron", defaultProps$Y, _props);
|
|
14423
14423
|
const { size: size2, error: error2, style, className, classNames: classNames2, styles, unstyled, vars, mod, ...others } = props;
|
|
14424
14424
|
const getStyles2 = useStyles({
|
|
14425
14425
|
name: "ComboboxChevron",
|
|
14426
|
-
classes: classes$
|
|
14426
|
+
classes: classes$K,
|
|
14427
14427
|
props,
|
|
14428
14428
|
style,
|
|
14429
14429
|
className,
|
|
@@ -14431,7 +14431,7 @@ const ComboboxChevron = factory((_props, ref) => {
|
|
|
14431
14431
|
styles,
|
|
14432
14432
|
unstyled,
|
|
14433
14433
|
vars,
|
|
14434
|
-
varsResolver: varsResolver$
|
|
14434
|
+
varsResolver: varsResolver$I,
|
|
14435
14435
|
rootSelector: "chevron"
|
|
14436
14436
|
});
|
|
14437
14437
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14458,7 +14458,7 @@ const ComboboxChevron = factory((_props, ref) => {
|
|
|
14458
14458
|
}
|
|
14459
14459
|
);
|
|
14460
14460
|
});
|
|
14461
|
-
ComboboxChevron.classes = classes$
|
|
14461
|
+
ComboboxChevron.classes = classes$K;
|
|
14462
14462
|
ComboboxChevron.displayName = "@mantine/core/ComboboxChevron";
|
|
14463
14463
|
const [ComboboxProvider, useComboboxContext] = createSafeContext(
|
|
14464
14464
|
"Combobox component was not found in tree"
|
|
@@ -14501,13 +14501,13 @@ const ComboboxDropdown = factory((props, ref) => {
|
|
|
14501
14501
|
}
|
|
14502
14502
|
);
|
|
14503
14503
|
});
|
|
14504
|
-
ComboboxDropdown.classes = classes$
|
|
14504
|
+
ComboboxDropdown.classes = classes$K;
|
|
14505
14505
|
ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
|
|
14506
|
-
const defaultProps$
|
|
14506
|
+
const defaultProps$X = {
|
|
14507
14507
|
refProp: "ref"
|
|
14508
14508
|
};
|
|
14509
14509
|
const ComboboxDropdownTarget = factory((props, ref) => {
|
|
14510
|
-
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$
|
|
14510
|
+
const { children, refProp } = useProps("ComboboxDropdownTarget", defaultProps$X, props);
|
|
14511
14511
|
useComboboxContext();
|
|
14512
14512
|
if (!isElement$1(children)) {
|
|
14513
14513
|
throw new Error(
|
|
@@ -14533,7 +14533,7 @@ const ComboboxEmpty = factory((props, ref) => {
|
|
|
14533
14533
|
}
|
|
14534
14534
|
);
|
|
14535
14535
|
});
|
|
14536
|
-
ComboboxEmpty.classes = classes$
|
|
14536
|
+
ComboboxEmpty.classes = classes$K;
|
|
14537
14537
|
ComboboxEmpty.displayName = "@mantine/core/ComboboxEmpty";
|
|
14538
14538
|
function useComboboxTargetProps({
|
|
14539
14539
|
onKeyDown,
|
|
@@ -14612,7 +14612,7 @@ function useComboboxTargetProps({
|
|
|
14612
14612
|
onKeyDown: handleKeyDown
|
|
14613
14613
|
};
|
|
14614
14614
|
}
|
|
14615
|
-
const defaultProps$
|
|
14615
|
+
const defaultProps$W = {
|
|
14616
14616
|
refProp: "ref",
|
|
14617
14617
|
targetType: "input",
|
|
14618
14618
|
withKeyboardNavigation: true,
|
|
@@ -14630,7 +14630,7 @@ const ComboboxEventsTarget = factory((props, ref) => {
|
|
|
14630
14630
|
targetType,
|
|
14631
14631
|
autoComplete,
|
|
14632
14632
|
...others
|
|
14633
|
-
} = useProps("ComboboxEventsTarget", defaultProps$
|
|
14633
|
+
} = useProps("ComboboxEventsTarget", defaultProps$W, props);
|
|
14634
14634
|
const child = getSingleElementChild(children);
|
|
14635
14635
|
if (!child) {
|
|
14636
14636
|
throw new Error(
|
|
@@ -14672,7 +14672,7 @@ const ComboboxFooter = factory((props, ref) => {
|
|
|
14672
14672
|
}
|
|
14673
14673
|
);
|
|
14674
14674
|
});
|
|
14675
|
-
ComboboxFooter.classes = classes$
|
|
14675
|
+
ComboboxFooter.classes = classes$K;
|
|
14676
14676
|
ComboboxFooter.displayName = "@mantine/core/ComboboxFooter";
|
|
14677
14677
|
const ComboboxGroup = factory((props, ref) => {
|
|
14678
14678
|
const { classNames: classNames2, className, style, styles, vars, children, label, id: id2, ...others } = useProps(
|
|
@@ -14697,7 +14697,7 @@ const ComboboxGroup = factory((props, ref) => {
|
|
|
14697
14697
|
}
|
|
14698
14698
|
);
|
|
14699
14699
|
});
|
|
14700
|
-
ComboboxGroup.classes = classes$
|
|
14700
|
+
ComboboxGroup.classes = classes$K;
|
|
14701
14701
|
ComboboxGroup.displayName = "@mantine/core/ComboboxGroup";
|
|
14702
14702
|
const ComboboxHeader = factory((props, ref) => {
|
|
14703
14703
|
const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
|
|
@@ -14718,7 +14718,7 @@ const ComboboxHeader = factory((props, ref) => {
|
|
|
14718
14718
|
}
|
|
14719
14719
|
);
|
|
14720
14720
|
});
|
|
14721
|
-
ComboboxHeader.classes = classes$
|
|
14721
|
+
ComboboxHeader.classes = classes$K;
|
|
14722
14722
|
ComboboxHeader.displayName = "@mantine/core/ComboboxHeader";
|
|
14723
14723
|
function ComboboxHiddenInput({
|
|
14724
14724
|
value,
|
|
@@ -14790,7 +14790,7 @@ const ComboboxOption = factory((_props, ref) => {
|
|
|
14790
14790
|
}
|
|
14791
14791
|
);
|
|
14792
14792
|
});
|
|
14793
|
-
ComboboxOption.classes = classes$
|
|
14793
|
+
ComboboxOption.classes = classes$K;
|
|
14794
14794
|
ComboboxOption.displayName = "@mantine/core/ComboboxOption";
|
|
14795
14795
|
const ComboboxOptions = factory((_props, ref) => {
|
|
14796
14796
|
const props = useProps("ComboboxOptions", null, _props);
|
|
@@ -14816,14 +14816,14 @@ const ComboboxOptions = factory((_props, ref) => {
|
|
|
14816
14816
|
}
|
|
14817
14817
|
);
|
|
14818
14818
|
});
|
|
14819
|
-
ComboboxOptions.classes = classes$
|
|
14819
|
+
ComboboxOptions.classes = classes$K;
|
|
14820
14820
|
ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
|
|
14821
|
-
const defaultProps$
|
|
14821
|
+
const defaultProps$V = {
|
|
14822
14822
|
withAriaAttributes: true,
|
|
14823
14823
|
withKeyboardNavigation: true
|
|
14824
14824
|
};
|
|
14825
14825
|
const ComboboxSearch = factory((_props, ref) => {
|
|
14826
|
-
const props = useProps("ComboboxSearch", defaultProps$
|
|
14826
|
+
const props = useProps("ComboboxSearch", defaultProps$V, _props);
|
|
14827
14827
|
const {
|
|
14828
14828
|
classNames: classNames2,
|
|
14829
14829
|
styles,
|
|
@@ -14858,9 +14858,9 @@ const ComboboxSearch = factory((_props, ref) => {
|
|
|
14858
14858
|
}
|
|
14859
14859
|
);
|
|
14860
14860
|
});
|
|
14861
|
-
ComboboxSearch.classes = classes$
|
|
14861
|
+
ComboboxSearch.classes = classes$K;
|
|
14862
14862
|
ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
|
|
14863
|
-
const defaultProps$
|
|
14863
|
+
const defaultProps$U = {
|
|
14864
14864
|
refProp: "ref",
|
|
14865
14865
|
targetType: "input",
|
|
14866
14866
|
withKeyboardNavigation: true,
|
|
@@ -14878,7 +14878,7 @@ const ComboboxTarget = factory((props, ref) => {
|
|
|
14878
14878
|
targetType,
|
|
14879
14879
|
autoComplete,
|
|
14880
14880
|
...others
|
|
14881
|
-
} = useProps("ComboboxTarget", defaultProps$
|
|
14881
|
+
} = useProps("ComboboxTarget", defaultProps$U, props);
|
|
14882
14882
|
const child = getSingleElementChild(children);
|
|
14883
14883
|
if (!child) {
|
|
14884
14884
|
throw new Error(
|
|
@@ -15127,7 +15127,7 @@ function useCombobox({
|
|
|
15127
15127
|
focusTarget
|
|
15128
15128
|
};
|
|
15129
15129
|
}
|
|
15130
|
-
const defaultProps$
|
|
15130
|
+
const defaultProps$T = {
|
|
15131
15131
|
keepMounted: true,
|
|
15132
15132
|
withinPortal: true,
|
|
15133
15133
|
resetSelectionOnOptionHover: false,
|
|
@@ -15135,7 +15135,7 @@ const defaultProps$P = {
|
|
|
15135
15135
|
transitionProps: { transition: "fade", duration: 0 },
|
|
15136
15136
|
size: "sm"
|
|
15137
15137
|
};
|
|
15138
|
-
const varsResolver$
|
|
15138
|
+
const varsResolver$H = createVarsResolver((_, { size: size2, dropdownPadding }) => ({
|
|
15139
15139
|
options: {
|
|
15140
15140
|
"--combobox-option-fz": getFontSize(size2),
|
|
15141
15141
|
"--combobox-option-padding": getSize(size2, "combobox-option-padding")
|
|
@@ -15147,7 +15147,7 @@ const varsResolver$F = createVarsResolver((_, { size: size2, dropdownPadding })
|
|
|
15147
15147
|
}
|
|
15148
15148
|
}));
|
|
15149
15149
|
function Combobox(_props) {
|
|
15150
|
-
const props = useProps("Combobox", defaultProps$
|
|
15150
|
+
const props = useProps("Combobox", defaultProps$T, _props);
|
|
15151
15151
|
const {
|
|
15152
15152
|
classNames: classNames2,
|
|
15153
15153
|
styles,
|
|
@@ -15169,14 +15169,14 @@ function Combobox(_props) {
|
|
|
15169
15169
|
const store = controlledStore || uncontrolledStore;
|
|
15170
15170
|
const getStyles2 = useStyles({
|
|
15171
15171
|
name: __staticSelector || "Combobox",
|
|
15172
|
-
classes: classes$
|
|
15172
|
+
classes: classes$K,
|
|
15173
15173
|
props,
|
|
15174
15174
|
classNames: classNames2,
|
|
15175
15175
|
styles,
|
|
15176
15176
|
unstyled,
|
|
15177
15177
|
attributes,
|
|
15178
15178
|
vars,
|
|
15179
|
-
varsResolver: varsResolver$
|
|
15179
|
+
varsResolver: varsResolver$H
|
|
15180
15180
|
});
|
|
15181
15181
|
const onDropdownClose = () => {
|
|
15182
15182
|
onClose?.();
|
|
@@ -15210,7 +15210,7 @@ function Combobox(_props) {
|
|
|
15210
15210
|
}
|
|
15211
15211
|
const extendCombobox = (c) => c;
|
|
15212
15212
|
Combobox.extend = extendCombobox;
|
|
15213
|
-
Combobox.classes = classes$
|
|
15213
|
+
Combobox.classes = classes$K;
|
|
15214
15214
|
Combobox.displayName = "@mantine/core/Combobox";
|
|
15215
15215
|
Combobox.Target = ComboboxTarget;
|
|
15216
15216
|
Combobox.Dropdown = ComboboxDropdown;
|
|
@@ -15226,8 +15226,8 @@ Combobox.DropdownTarget = ComboboxDropdownTarget;
|
|
|
15226
15226
|
Combobox.Group = ComboboxGroup;
|
|
15227
15227
|
Combobox.ClearButton = ComboboxClearButton;
|
|
15228
15228
|
Combobox.HiddenInput = ComboboxHiddenInput;
|
|
15229
|
-
var classes$
|
|
15230
|
-
const InlineInputClasses = classes$
|
|
15229
|
+
var classes$J = { "root": "m_5f75b09e", "body": "m_5f6e695e", "labelWrapper": "m_d3ea56bb", "label": "m_8ee546b8", "description": "m_328f68c0", "error": "m_8e8a99cc" };
|
|
15230
|
+
const InlineInputClasses = classes$J;
|
|
15231
15231
|
const InlineInput = React.forwardRef(
|
|
15232
15232
|
({
|
|
15233
15233
|
__staticSelector,
|
|
@@ -15258,7 +15258,7 @@ const InlineInput = React.forwardRef(
|
|
|
15258
15258
|
props: __stylesApiProps,
|
|
15259
15259
|
className,
|
|
15260
15260
|
style,
|
|
15261
|
-
classes: classes$
|
|
15261
|
+
classes: classes$J,
|
|
15262
15262
|
classNames: classNames2,
|
|
15263
15263
|
styles,
|
|
15264
15264
|
unstyled,
|
|
@@ -15307,22 +15307,22 @@ const InlineInput = React.forwardRef(
|
|
|
15307
15307
|
}
|
|
15308
15308
|
);
|
|
15309
15309
|
InlineInput.displayName = "@mantine/core/InlineInput";
|
|
15310
|
-
var classes$
|
|
15310
|
+
var classes$I = { "root": "m_bf2d988c", "inner": "m_26062bec", "input": "m_26063560", "icon": "m_bf295423", "input--outline": "m_215c4542" };
|
|
15311
15311
|
const CheckboxGroupContext = React.createContext(null);
|
|
15312
15312
|
const CheckboxGroupProvider = CheckboxGroupContext.Provider;
|
|
15313
15313
|
const useCheckboxGroupContext = () => React.useContext(CheckboxGroupContext);
|
|
15314
15314
|
const [CheckboxCardProvider, useCheckboxCardContext] = createOptionalContext();
|
|
15315
|
-
var classes$
|
|
15316
|
-
const defaultProps$
|
|
15315
|
+
var classes$H = { "card": "m_26775b0a" };
|
|
15316
|
+
const defaultProps$S = {
|
|
15317
15317
|
withBorder: true
|
|
15318
15318
|
};
|
|
15319
|
-
const varsResolver$
|
|
15319
|
+
const varsResolver$G = createVarsResolver((_, { radius }) => ({
|
|
15320
15320
|
card: {
|
|
15321
15321
|
"--card-radius": getRadius(radius)
|
|
15322
15322
|
}
|
|
15323
15323
|
}));
|
|
15324
15324
|
const CheckboxCard = factory((_props, ref) => {
|
|
15325
|
-
const props = useProps("CheckboxCard", defaultProps$
|
|
15325
|
+
const props = useProps("CheckboxCard", defaultProps$S, _props);
|
|
15326
15326
|
const {
|
|
15327
15327
|
classNames: classNames2,
|
|
15328
15328
|
className,
|
|
@@ -15342,7 +15342,7 @@ const CheckboxCard = factory((_props, ref) => {
|
|
|
15342
15342
|
} = props;
|
|
15343
15343
|
const getStyles2 = useStyles({
|
|
15344
15344
|
name: "CheckboxCard",
|
|
15345
|
-
classes: classes$
|
|
15345
|
+
classes: classes$H,
|
|
15346
15346
|
props,
|
|
15347
15347
|
className,
|
|
15348
15348
|
style,
|
|
@@ -15351,7 +15351,7 @@ const CheckboxCard = factory((_props, ref) => {
|
|
|
15351
15351
|
unstyled,
|
|
15352
15352
|
attributes,
|
|
15353
15353
|
vars,
|
|
15354
|
-
varsResolver: varsResolver$
|
|
15354
|
+
varsResolver: varsResolver$G,
|
|
15355
15355
|
rootSelector: "card"
|
|
15356
15356
|
});
|
|
15357
15357
|
const ctx = useCheckboxGroupContext();
|
|
@@ -15380,7 +15380,7 @@ const CheckboxCard = factory((_props, ref) => {
|
|
|
15380
15380
|
) });
|
|
15381
15381
|
});
|
|
15382
15382
|
CheckboxCard.displayName = "@mantine/core/CheckboxCard";
|
|
15383
|
-
CheckboxCard.classes = classes$
|
|
15383
|
+
CheckboxCard.classes = classes$H;
|
|
15384
15384
|
function InputsGroupFieldset({ children, role }) {
|
|
15385
15385
|
const ctx = useInputWrapperContext();
|
|
15386
15386
|
if (!ctx) {
|
|
@@ -15466,12 +15466,12 @@ function CheckboxIcon({ indeterminate, ...others }) {
|
|
|
15466
15466
|
}
|
|
15467
15467
|
return /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { ...others });
|
|
15468
15468
|
}
|
|
15469
|
-
var classes$
|
|
15470
|
-
const defaultProps$
|
|
15469
|
+
var classes$G = { "indicator": "m_5e5256ee", "icon": "m_1b1c543a", "indicator--outline": "m_76e20374" };
|
|
15470
|
+
const defaultProps$R = {
|
|
15471
15471
|
icon: CheckboxIcon,
|
|
15472
15472
|
variant: "filled"
|
|
15473
15473
|
};
|
|
15474
|
-
const varsResolver$
|
|
15474
|
+
const varsResolver$F = createVarsResolver(
|
|
15475
15475
|
(theme2, { radius, color, size: size2, iconColor, variant, autoContrast }) => {
|
|
15476
15476
|
const parsedColor = parseThemeColor({ color: color || theme2.primaryColor, theme: theme2 });
|
|
15477
15477
|
const outlineColor = parsedColor.isThemeColor && parsedColor.shade === void 0 ? `var(--mantine-color-${parsedColor.color}-outline)` : parsedColor.color;
|
|
@@ -15486,7 +15486,7 @@ const varsResolver$D = createVarsResolver(
|
|
|
15486
15486
|
}
|
|
15487
15487
|
);
|
|
15488
15488
|
const CheckboxIndicator = factory((_props, ref) => {
|
|
15489
|
-
const props = useProps("CheckboxIndicator", defaultProps$
|
|
15489
|
+
const props = useProps("CheckboxIndicator", defaultProps$R, _props);
|
|
15490
15490
|
const {
|
|
15491
15491
|
classNames: classNames2,
|
|
15492
15492
|
className,
|
|
@@ -15509,7 +15509,7 @@ const CheckboxIndicator = factory((_props, ref) => {
|
|
|
15509
15509
|
} = props;
|
|
15510
15510
|
const getStyles2 = useStyles({
|
|
15511
15511
|
name: "CheckboxIndicator",
|
|
15512
|
-
classes: classes$
|
|
15512
|
+
classes: classes$G,
|
|
15513
15513
|
props,
|
|
15514
15514
|
className,
|
|
15515
15515
|
style,
|
|
@@ -15518,7 +15518,7 @@ const CheckboxIndicator = factory((_props, ref) => {
|
|
|
15518
15518
|
unstyled,
|
|
15519
15519
|
attributes,
|
|
15520
15520
|
vars,
|
|
15521
|
-
varsResolver: varsResolver$
|
|
15521
|
+
varsResolver: varsResolver$F,
|
|
15522
15522
|
rootSelector: "indicator"
|
|
15523
15523
|
});
|
|
15524
15524
|
const ctx = useCheckboxCardContext();
|
|
@@ -15536,13 +15536,13 @@ const CheckboxIndicator = factory((_props, ref) => {
|
|
|
15536
15536
|
);
|
|
15537
15537
|
});
|
|
15538
15538
|
CheckboxIndicator.displayName = "@mantine/core/CheckboxIndicator";
|
|
15539
|
-
CheckboxIndicator.classes = classes$
|
|
15540
|
-
const defaultProps$
|
|
15539
|
+
CheckboxIndicator.classes = classes$G;
|
|
15540
|
+
const defaultProps$Q = {
|
|
15541
15541
|
labelPosition: "right",
|
|
15542
15542
|
icon: CheckboxIcon,
|
|
15543
15543
|
variant: "filled"
|
|
15544
15544
|
};
|
|
15545
|
-
const varsResolver$
|
|
15545
|
+
const varsResolver$E = createVarsResolver(
|
|
15546
15546
|
(theme2, { radius, color, size: size2, iconColor, variant, autoContrast }) => {
|
|
15547
15547
|
const parsedColor = parseThemeColor({ color: color || theme2.primaryColor, theme: theme2 });
|
|
15548
15548
|
const outlineColor = parsedColor.isThemeColor && parsedColor.shade === void 0 ? `var(--mantine-color-${parsedColor.color}-outline)` : parsedColor.color;
|
|
@@ -15557,7 +15557,7 @@ const varsResolver$C = createVarsResolver(
|
|
|
15557
15557
|
}
|
|
15558
15558
|
);
|
|
15559
15559
|
const Checkbox$1 = factory((_props, forwardedRef) => {
|
|
15560
|
-
const props = useProps("Checkbox", defaultProps$
|
|
15560
|
+
const props = useProps("Checkbox", defaultProps$Q, _props);
|
|
15561
15561
|
const {
|
|
15562
15562
|
classNames: classNames2,
|
|
15563
15563
|
className,
|
|
@@ -15592,7 +15592,7 @@ const Checkbox$1 = factory((_props, forwardedRef) => {
|
|
|
15592
15592
|
const getStyles2 = useStyles({
|
|
15593
15593
|
name: "Checkbox",
|
|
15594
15594
|
props,
|
|
15595
|
-
classes: classes$
|
|
15595
|
+
classes: classes$I,
|
|
15596
15596
|
className,
|
|
15597
15597
|
style,
|
|
15598
15598
|
classNames: classNames2,
|
|
@@ -15600,7 +15600,7 @@ const Checkbox$1 = factory((_props, forwardedRef) => {
|
|
|
15600
15600
|
unstyled,
|
|
15601
15601
|
attributes,
|
|
15602
15602
|
vars,
|
|
15603
|
-
varsResolver: varsResolver$
|
|
15603
|
+
varsResolver: varsResolver$E
|
|
15604
15604
|
});
|
|
15605
15605
|
const { styleProps, rest } = extractStyleProps(others);
|
|
15606
15606
|
const uuid2 = useId$1(id2);
|
|
@@ -15667,7 +15667,7 @@ const Checkbox$1 = factory((_props, forwardedRef) => {
|
|
|
15667
15667
|
}
|
|
15668
15668
|
);
|
|
15669
15669
|
});
|
|
15670
|
-
Checkbox$1.classes = { ...classes$
|
|
15670
|
+
Checkbox$1.classes = { ...classes$I, ...InlineInputClasses };
|
|
15671
15671
|
Checkbox$1.displayName = "@mantine/core/Checkbox";
|
|
15672
15672
|
Checkbox$1.Group = CheckboxGroup;
|
|
15673
15673
|
Checkbox$1.Indicator = CheckboxIndicator;
|
|
@@ -15758,7 +15758,7 @@ function Option({
|
|
|
15758
15758
|
}) {
|
|
15759
15759
|
if (!isOptionsGroup(data)) {
|
|
15760
15760
|
const checked = isValueChecked(value, data.value);
|
|
15761
|
-
const check2 = withCheckIcon && (checked ? /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: classes$
|
|
15761
|
+
const check2 = withCheckIcon && (checked ? /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: classes$K.optionsDropdownCheckIcon }) : withAlignedLabels ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes$K.optionsDropdownCheckPlaceholder }) : null);
|
|
15762
15762
|
const defaultContent = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15763
15763
|
checkIconPosition === "left" && check2,
|
|
15764
15764
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: data.label }),
|
|
@@ -15769,7 +15769,7 @@ function Option({
|
|
|
15769
15769
|
{
|
|
15770
15770
|
value: data.value,
|
|
15771
15771
|
disabled: data.disabled,
|
|
15772
|
-
className: clsx({ [classes$
|
|
15772
|
+
className: clsx({ [classes$K.optionsDropdownOption]: !unstyled }),
|
|
15773
15773
|
"data-reverse": checkIconPosition === "right" || void 0,
|
|
15774
15774
|
"data-checked": checked || void 0,
|
|
15775
15775
|
"aria-selected": checked,
|
|
@@ -15850,14 +15850,14 @@ function OptionsDropdown({
|
|
|
15850
15850
|
isEmpty && nothingFoundMessage && /* @__PURE__ */ jsxRuntime.jsx(Combobox.Empty, { children: nothingFoundMessage })
|
|
15851
15851
|
] }) });
|
|
15852
15852
|
}
|
|
15853
|
-
var classes$
|
|
15853
|
+
var classes$F = { "group": "m_11def92b", "root": "m_f85678b6", "image": "m_11f8ac07", "placeholder": "m_104cd71f" };
|
|
15854
15854
|
const AvatarGroupContext = React.createContext(null);
|
|
15855
15855
|
const AvatarGroupProvider = AvatarGroupContext.Provider;
|
|
15856
15856
|
function useAvatarGroupContext() {
|
|
15857
15857
|
const ctx = React.useContext(AvatarGroupContext);
|
|
15858
15858
|
return { withinGroup: !!ctx };
|
|
15859
15859
|
}
|
|
15860
|
-
const varsResolver$
|
|
15860
|
+
const varsResolver$D = createVarsResolver((_, { spacing: spacing2 }) => ({
|
|
15861
15861
|
group: {
|
|
15862
15862
|
"--ag-spacing": getSpacing(spacing2)
|
|
15863
15863
|
}
|
|
@@ -15867,7 +15867,7 @@ const AvatarGroup = factory((_props, ref) => {
|
|
|
15867
15867
|
const { classNames: classNames2, className, style, styles, unstyled, vars, spacing: spacing2, attributes, ...others } = props;
|
|
15868
15868
|
const getStyles2 = useStyles({
|
|
15869
15869
|
name: "AvatarGroup",
|
|
15870
|
-
classes: classes$
|
|
15870
|
+
classes: classes$F,
|
|
15871
15871
|
props,
|
|
15872
15872
|
className,
|
|
15873
15873
|
style,
|
|
@@ -15876,12 +15876,12 @@ const AvatarGroup = factory((_props, ref) => {
|
|
|
15876
15876
|
unstyled,
|
|
15877
15877
|
attributes,
|
|
15878
15878
|
vars,
|
|
15879
|
-
varsResolver: varsResolver$
|
|
15879
|
+
varsResolver: varsResolver$D,
|
|
15880
15880
|
rootSelector: "group"
|
|
15881
15881
|
});
|
|
15882
15882
|
return /* @__PURE__ */ jsxRuntime.jsx(AvatarGroupProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { ref, ...getStyles2("group"), ...others }) });
|
|
15883
15883
|
});
|
|
15884
|
-
AvatarGroup.classes = classes$
|
|
15884
|
+
AvatarGroup.classes = classes$F;
|
|
15885
15885
|
AvatarGroup.displayName = "@mantine/core/AvatarGroup";
|
|
15886
15886
|
function AvatarPlaceholderIcon(props) {
|
|
15887
15887
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -15938,7 +15938,7 @@ function getInitials$1(name, limit = 2) {
|
|
|
15938
15938
|
}
|
|
15939
15939
|
return splitted.map((word) => word[0]).slice(0, limit).join("").toUpperCase();
|
|
15940
15940
|
}
|
|
15941
|
-
const varsResolver$
|
|
15941
|
+
const varsResolver$C = createVarsResolver(
|
|
15942
15942
|
(theme2, { size: size2, radius, variant, gradient, color, autoContrast, name, allowedInitialsColors }) => {
|
|
15943
15943
|
const _color = color === "initials" && typeof name === "string" ? getInitialsColor(name, allowedInitialsColors) : color;
|
|
15944
15944
|
const colors2 = theme2.variantColorResolver({
|
|
@@ -15987,7 +15987,7 @@ const Avatar$1 = polymorphicFactory((_props, ref) => {
|
|
|
15987
15987
|
const getStyles2 = useStyles({
|
|
15988
15988
|
name: "Avatar",
|
|
15989
15989
|
props,
|
|
15990
|
-
classes: classes$
|
|
15990
|
+
classes: classes$F,
|
|
15991
15991
|
className,
|
|
15992
15992
|
style,
|
|
15993
15993
|
classNames: classNames2,
|
|
@@ -15995,7 +15995,7 @@ const Avatar$1 = polymorphicFactory((_props, ref) => {
|
|
|
15995
15995
|
unstyled,
|
|
15996
15996
|
attributes,
|
|
15997
15997
|
vars,
|
|
15998
|
-
varsResolver: varsResolver$
|
|
15998
|
+
varsResolver: varsResolver$C
|
|
15999
15999
|
});
|
|
16000
16000
|
React.useEffect(() => setError(!src), [src]);
|
|
16001
16001
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16021,11 +16021,11 @@ const Avatar$1 = polymorphicFactory((_props, ref) => {
|
|
|
16021
16021
|
}
|
|
16022
16022
|
);
|
|
16023
16023
|
});
|
|
16024
|
-
Avatar$1.classes = classes$
|
|
16024
|
+
Avatar$1.classes = classes$F;
|
|
16025
16025
|
Avatar$1.displayName = "@mantine/core/Avatar";
|
|
16026
16026
|
Avatar$1.Group = AvatarGroup;
|
|
16027
|
-
var classes$
|
|
16028
|
-
const varsResolver$
|
|
16027
|
+
var classes$E = { "root": "m_347db0ec", "root--dot": "m_fbd81e3d", "label": "m_5add502a", "section": "m_91fdda9b" };
|
|
16028
|
+
const varsResolver$B = createVarsResolver(
|
|
16029
16029
|
(theme2, { radius, color, gradient, variant, size: size2, autoContrast, circle }) => {
|
|
16030
16030
|
const colors2 = theme2.variantColorResolver({
|
|
16031
16031
|
color: color || theme2.primaryColor,
|
|
@@ -16074,7 +16074,7 @@ const Badge$1 = polymorphicFactory((_props, ref) => {
|
|
|
16074
16074
|
const getStyles2 = useStyles({
|
|
16075
16075
|
name: "Badge",
|
|
16076
16076
|
props,
|
|
16077
|
-
classes: classes$
|
|
16077
|
+
classes: classes$E,
|
|
16078
16078
|
className,
|
|
16079
16079
|
style,
|
|
16080
16080
|
classNames: classNames2,
|
|
@@ -16082,7 +16082,7 @@ const Badge$1 = polymorphicFactory((_props, ref) => {
|
|
|
16082
16082
|
unstyled,
|
|
16083
16083
|
attributes,
|
|
16084
16084
|
vars,
|
|
16085
|
-
varsResolver: varsResolver$
|
|
16085
|
+
varsResolver: varsResolver$B
|
|
16086
16086
|
});
|
|
16087
16087
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16088
16088
|
Box,
|
|
@@ -16108,10 +16108,10 @@ const Badge$1 = polymorphicFactory((_props, ref) => {
|
|
|
16108
16108
|
}
|
|
16109
16109
|
);
|
|
16110
16110
|
});
|
|
16111
|
-
Badge$1.classes = classes$
|
|
16111
|
+
Badge$1.classes = classes$E;
|
|
16112
16112
|
Badge$1.displayName = "@mantine/core/Badge";
|
|
16113
|
-
var classes$
|
|
16114
|
-
const varsResolver$
|
|
16113
|
+
var classes$D = { "root": "m_fea6bf1a", "burger": "m_d4fb9cad" };
|
|
16114
|
+
const varsResolver$A = createVarsResolver(
|
|
16115
16115
|
(theme2, { color, size: size2, lineSize, transitionDuration, transitionTimingFunction }) => ({
|
|
16116
16116
|
root: {
|
|
16117
16117
|
"--burger-color": color ? getThemeColor(color, theme2) : void 0,
|
|
@@ -16141,7 +16141,7 @@ const Burger = factory((_props, ref) => {
|
|
|
16141
16141
|
} = props;
|
|
16142
16142
|
const getStyles2 = useStyles({
|
|
16143
16143
|
name: "Burger",
|
|
16144
|
-
classes: classes$
|
|
16144
|
+
classes: classes$D,
|
|
16145
16145
|
props,
|
|
16146
16146
|
className,
|
|
16147
16147
|
style,
|
|
@@ -16150,24 +16150,24 @@ const Burger = factory((_props, ref) => {
|
|
|
16150
16150
|
unstyled,
|
|
16151
16151
|
attributes,
|
|
16152
16152
|
vars,
|
|
16153
|
-
varsResolver: varsResolver$
|
|
16153
|
+
varsResolver: varsResolver$A
|
|
16154
16154
|
});
|
|
16155
16155
|
return /* @__PURE__ */ jsxRuntime.jsxs(UnstyledButton, { ...getStyles2("root"), ref, ...others, children: [
|
|
16156
16156
|
/* @__PURE__ */ jsxRuntime.jsx(Box, { mod: ["reduce-motion", { opened }], ...getStyles2("burger") }),
|
|
16157
16157
|
children
|
|
16158
16158
|
] });
|
|
16159
16159
|
});
|
|
16160
|
-
Burger.classes = classes$
|
|
16160
|
+
Burger.classes = classes$D;
|
|
16161
16161
|
Burger.displayName = "@mantine/core/Burger";
|
|
16162
|
-
var classes$
|
|
16163
|
-
const defaultProps$
|
|
16162
|
+
var classes$C = { "root": "m_77c9d27d", "inner": "m_80f1301b", "label": "m_811560b9", "section": "m_a74036a", "loader": "m_a25b86ee", "group": "m_80d6d844", "groupSection": "m_70be2a01" };
|
|
16163
|
+
const defaultProps$P = {
|
|
16164
16164
|
orientation: "horizontal"
|
|
16165
16165
|
};
|
|
16166
|
-
const varsResolver$
|
|
16166
|
+
const varsResolver$z = createVarsResolver((_, { borderWidth }) => ({
|
|
16167
16167
|
group: { "--button-border-width": rem(borderWidth) }
|
|
16168
16168
|
}));
|
|
16169
16169
|
const ButtonGroup = factory((_props, ref) => {
|
|
16170
|
-
const props = useProps("ButtonGroup", defaultProps$
|
|
16170
|
+
const props = useProps("ButtonGroup", defaultProps$P, _props);
|
|
16171
16171
|
const {
|
|
16172
16172
|
className,
|
|
16173
16173
|
style,
|
|
@@ -16181,11 +16181,11 @@ const ButtonGroup = factory((_props, ref) => {
|
|
|
16181
16181
|
mod,
|
|
16182
16182
|
attributes,
|
|
16183
16183
|
...others
|
|
16184
|
-
} = useProps("ButtonGroup", defaultProps$
|
|
16184
|
+
} = useProps("ButtonGroup", defaultProps$P, _props);
|
|
16185
16185
|
const getStyles2 = useStyles({
|
|
16186
16186
|
name: "ButtonGroup",
|
|
16187
16187
|
props,
|
|
16188
|
-
classes: classes$
|
|
16188
|
+
classes: classes$C,
|
|
16189
16189
|
className,
|
|
16190
16190
|
style,
|
|
16191
16191
|
classNames: classNames2,
|
|
@@ -16193,7 +16193,7 @@ const ButtonGroup = factory((_props, ref) => {
|
|
|
16193
16193
|
unstyled,
|
|
16194
16194
|
attributes,
|
|
16195
16195
|
vars,
|
|
16196
|
-
varsResolver: varsResolver$
|
|
16196
|
+
varsResolver: varsResolver$z,
|
|
16197
16197
|
rootSelector: "group"
|
|
16198
16198
|
});
|
|
16199
16199
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16208,9 +16208,9 @@ const ButtonGroup = factory((_props, ref) => {
|
|
|
16208
16208
|
}
|
|
16209
16209
|
);
|
|
16210
16210
|
});
|
|
16211
|
-
ButtonGroup.classes = classes$
|
|
16211
|
+
ButtonGroup.classes = classes$C;
|
|
16212
16212
|
ButtonGroup.displayName = "@mantine/core/ButtonGroup";
|
|
16213
|
-
const varsResolver$
|
|
16213
|
+
const varsResolver$y = createVarsResolver(
|
|
16214
16214
|
(theme2, { radius, color, gradient, variant, autoContrast, size: size2 }) => {
|
|
16215
16215
|
const colors2 = theme2.variantColorResolver({
|
|
16216
16216
|
color: color || theme2.primaryColor,
|
|
@@ -16251,7 +16251,7 @@ const ButtonGroupSection = factory((_props, ref) => {
|
|
|
16251
16251
|
const getStyles2 = useStyles({
|
|
16252
16252
|
name: "ButtonGroupSection",
|
|
16253
16253
|
props,
|
|
16254
|
-
classes: classes$
|
|
16254
|
+
classes: classes$C,
|
|
16255
16255
|
className,
|
|
16256
16256
|
style,
|
|
16257
16257
|
classNames: classNames2,
|
|
@@ -16259,12 +16259,12 @@ const ButtonGroupSection = factory((_props, ref) => {
|
|
|
16259
16259
|
unstyled,
|
|
16260
16260
|
attributes,
|
|
16261
16261
|
vars,
|
|
16262
|
-
varsResolver: varsResolver$
|
|
16262
|
+
varsResolver: varsResolver$y,
|
|
16263
16263
|
rootSelector: "groupSection"
|
|
16264
16264
|
});
|
|
16265
16265
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { ...getStyles2("groupSection"), ref, variant, ...others });
|
|
16266
16266
|
});
|
|
16267
|
-
ButtonGroupSection.classes = classes$
|
|
16267
|
+
ButtonGroupSection.classes = classes$C;
|
|
16268
16268
|
ButtonGroupSection.displayName = "@mantine/core/ButtonGroupSection";
|
|
16269
16269
|
const loaderTransition = {
|
|
16270
16270
|
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${rem(1)}))` },
|
|
@@ -16272,7 +16272,7 @@ const loaderTransition = {
|
|
|
16272
16272
|
common: { transformOrigin: "center" },
|
|
16273
16273
|
transitionProperty: "transform, opacity"
|
|
16274
16274
|
};
|
|
16275
|
-
const varsResolver$
|
|
16275
|
+
const varsResolver$x = createVarsResolver(
|
|
16276
16276
|
(theme2, { radius, color, gradient, variant, size: size2, justify, autoContrast }) => {
|
|
16277
16277
|
const colors2 = theme2.variantColorResolver({
|
|
16278
16278
|
color: color || theme2.primaryColor,
|
|
@@ -16326,7 +16326,7 @@ const Button$1 = polymorphicFactory((_props, ref) => {
|
|
|
16326
16326
|
const getStyles2 = useStyles({
|
|
16327
16327
|
name: "Button",
|
|
16328
16328
|
props,
|
|
16329
|
-
classes: classes$
|
|
16329
|
+
classes: classes$C,
|
|
16330
16330
|
className,
|
|
16331
16331
|
style,
|
|
16332
16332
|
classNames: classNames2,
|
|
@@ -16334,7 +16334,7 @@ const Button$1 = polymorphicFactory((_props, ref) => {
|
|
|
16334
16334
|
unstyled,
|
|
16335
16335
|
attributes,
|
|
16336
16336
|
vars,
|
|
16337
|
-
varsResolver: varsResolver$
|
|
16337
|
+
varsResolver: varsResolver$x
|
|
16338
16338
|
});
|
|
16339
16339
|
const hasLeftSection = !!leftSection;
|
|
16340
16340
|
const hasRightSection = !!rightSection;
|
|
@@ -16375,14 +16375,14 @@ const Button$1 = polymorphicFactory((_props, ref) => {
|
|
|
16375
16375
|
}
|
|
16376
16376
|
);
|
|
16377
16377
|
});
|
|
16378
|
-
Button$1.classes = classes$
|
|
16378
|
+
Button$1.classes = classes$C;
|
|
16379
16379
|
Button$1.displayName = "@mantine/core/Button";
|
|
16380
16380
|
Button$1.Group = ButtonGroup;
|
|
16381
16381
|
Button$1.GroupSection = ButtonGroupSection;
|
|
16382
16382
|
const [CardProvider, useCardContext] = createSafeContext(
|
|
16383
16383
|
"Card component was not found in tree"
|
|
16384
16384
|
);
|
|
16385
|
-
var classes$
|
|
16385
|
+
var classes$B = { "root": "m_e615b15f", "section": "m_599a2148" };
|
|
16386
16386
|
const CardSection = polymorphicFactory((_props, ref) => {
|
|
16387
16387
|
const props = useProps("CardSection", null, _props);
|
|
16388
16388
|
const { classNames: classNames2, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props;
|
|
@@ -16397,9 +16397,9 @@ const CardSection = polymorphicFactory((_props, ref) => {
|
|
|
16397
16397
|
}
|
|
16398
16398
|
);
|
|
16399
16399
|
});
|
|
16400
|
-
CardSection.classes = classes$
|
|
16400
|
+
CardSection.classes = classes$B;
|
|
16401
16401
|
CardSection.displayName = "@mantine/core/CardSection";
|
|
16402
|
-
const varsResolver$
|
|
16402
|
+
const varsResolver$w = createVarsResolver((_, { padding }) => ({
|
|
16403
16403
|
root: {
|
|
16404
16404
|
"--card-padding": getSpacing(padding)
|
|
16405
16405
|
}
|
|
@@ -16421,7 +16421,7 @@ const Card$1 = polymorphicFactory((_props, ref) => {
|
|
|
16421
16421
|
const getStyles2 = useStyles({
|
|
16422
16422
|
name: "Card",
|
|
16423
16423
|
props,
|
|
16424
|
-
classes: classes$
|
|
16424
|
+
classes: classes$B,
|
|
16425
16425
|
className,
|
|
16426
16426
|
style,
|
|
16427
16427
|
classNames: classNames2,
|
|
@@ -16429,7 +16429,7 @@ const Card$1 = polymorphicFactory((_props, ref) => {
|
|
|
16429
16429
|
unstyled,
|
|
16430
16430
|
attributes,
|
|
16431
16431
|
vars,
|
|
16432
|
-
varsResolver: varsResolver$
|
|
16432
|
+
varsResolver: varsResolver$w
|
|
16433
16433
|
});
|
|
16434
16434
|
const _children = React.Children.toArray(children);
|
|
16435
16435
|
const content = _children.map((child, index2) => {
|
|
@@ -16443,10 +16443,10 @@ const Card$1 = polymorphicFactory((_props, ref) => {
|
|
|
16443
16443
|
});
|
|
16444
16444
|
return /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { value: { getStyles: getStyles2 }, children: /* @__PURE__ */ jsxRuntime.jsx(Paper, { ref, unstyled, ...getStyles2("root"), ...others, children: content }) });
|
|
16445
16445
|
});
|
|
16446
|
-
Card$1.classes = classes$
|
|
16446
|
+
Card$1.classes = classes$B;
|
|
16447
16447
|
Card$1.displayName = "@mantine/core/Card";
|
|
16448
16448
|
Card$1.Section = CardSection;
|
|
16449
|
-
var classes$
|
|
16449
|
+
var classes$A = { "root": "m_4451eb3a" };
|
|
16450
16450
|
const Center = polymorphicFactory((_props, ref) => {
|
|
16451
16451
|
const props = useProps("Center", null, _props);
|
|
16452
16452
|
const {
|
|
@@ -16464,7 +16464,7 @@ const Center = polymorphicFactory((_props, ref) => {
|
|
|
16464
16464
|
const getStyles2 = useStyles({
|
|
16465
16465
|
name: "Center",
|
|
16466
16466
|
props,
|
|
16467
|
-
classes: classes$
|
|
16467
|
+
classes: classes$A,
|
|
16468
16468
|
className,
|
|
16469
16469
|
style,
|
|
16470
16470
|
classNames: classNames2,
|
|
@@ -16475,10 +16475,10 @@ const Center = polymorphicFactory((_props, ref) => {
|
|
|
16475
16475
|
});
|
|
16476
16476
|
return /* @__PURE__ */ jsxRuntime.jsx(Box, { ref, mod: [{ inline: inline2 }, mod], ...getStyles2("root"), ...others });
|
|
16477
16477
|
});
|
|
16478
|
-
Center.classes = classes$
|
|
16478
|
+
Center.classes = classes$A;
|
|
16479
16479
|
Center.displayName = "@mantine/core/Center";
|
|
16480
|
-
var classes$
|
|
16481
|
-
const varsResolver$
|
|
16480
|
+
var classes$z = { "root": "m_7485cace" };
|
|
16481
|
+
const varsResolver$v = createVarsResolver((_, { size: size2, fluid }) => ({
|
|
16482
16482
|
root: {
|
|
16483
16483
|
"--container-size": fluid ? void 0 : getSize(size2, "container-size")
|
|
16484
16484
|
}
|
|
@@ -16500,7 +16500,7 @@ const Container = factory((_props, ref) => {
|
|
|
16500
16500
|
} = props;
|
|
16501
16501
|
const getStyles2 = useStyles({
|
|
16502
16502
|
name: "Container",
|
|
16503
|
-
classes: classes$
|
|
16503
|
+
classes: classes$z,
|
|
16504
16504
|
props,
|
|
16505
16505
|
className,
|
|
16506
16506
|
style,
|
|
@@ -16509,7 +16509,7 @@ const Container = factory((_props, ref) => {
|
|
|
16509
16509
|
unstyled,
|
|
16510
16510
|
attributes,
|
|
16511
16511
|
vars,
|
|
16512
|
-
varsResolver: varsResolver$
|
|
16512
|
+
varsResolver: varsResolver$v
|
|
16513
16513
|
});
|
|
16514
16514
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16515
16515
|
Box,
|
|
@@ -16521,13 +16521,13 @@ const Container = factory((_props, ref) => {
|
|
|
16521
16521
|
}
|
|
16522
16522
|
);
|
|
16523
16523
|
});
|
|
16524
|
-
Container.classes = classes$
|
|
16524
|
+
Container.classes = classes$z;
|
|
16525
16525
|
Container.displayName = "@mantine/core/Container";
|
|
16526
|
-
var classes$
|
|
16527
|
-
const defaultProps$
|
|
16526
|
+
var classes$y = { "root": "m_3eebeb36", "label": "m_9e365f20" };
|
|
16527
|
+
const defaultProps$O = {
|
|
16528
16528
|
orientation: "horizontal"
|
|
16529
16529
|
};
|
|
16530
|
-
const varsResolver$
|
|
16530
|
+
const varsResolver$u = createVarsResolver((theme2, { color, variant, size: size2 }) => ({
|
|
16531
16531
|
root: {
|
|
16532
16532
|
"--divider-color": color ? getThemeColor(color, theme2) : void 0,
|
|
16533
16533
|
"--divider-border-style": variant,
|
|
@@ -16535,7 +16535,7 @@ const varsResolver$s = createVarsResolver((theme2, { color, variant, size: size2
|
|
|
16535
16535
|
}
|
|
16536
16536
|
}));
|
|
16537
16537
|
const Divider = factory((_props, ref) => {
|
|
16538
|
-
const props = useProps("Divider", defaultProps$
|
|
16538
|
+
const props = useProps("Divider", defaultProps$O, _props);
|
|
16539
16539
|
const {
|
|
16540
16540
|
classNames: classNames2,
|
|
16541
16541
|
className,
|
|
@@ -16553,7 +16553,7 @@ const Divider = factory((_props, ref) => {
|
|
|
16553
16553
|
} = props;
|
|
16554
16554
|
const getStyles2 = useStyles({
|
|
16555
16555
|
name: "Divider",
|
|
16556
|
-
classes: classes$
|
|
16556
|
+
classes: classes$y,
|
|
16557
16557
|
props,
|
|
16558
16558
|
className,
|
|
16559
16559
|
style,
|
|
@@ -16562,7 +16562,7 @@ const Divider = factory((_props, ref) => {
|
|
|
16562
16562
|
unstyled,
|
|
16563
16563
|
attributes,
|
|
16564
16564
|
vars,
|
|
16565
|
-
varsResolver: varsResolver$
|
|
16565
|
+
varsResolver: varsResolver$u
|
|
16566
16566
|
});
|
|
16567
16567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16568
16568
|
Box,
|
|
@@ -16576,9 +16576,9 @@ const Divider = factory((_props, ref) => {
|
|
|
16576
16576
|
}
|
|
16577
16577
|
);
|
|
16578
16578
|
});
|
|
16579
|
-
Divider.classes = classes$
|
|
16579
|
+
Divider.classes = classes$y;
|
|
16580
16580
|
Divider.displayName = "@mantine/core/Divider";
|
|
16581
|
-
var classes$
|
|
16581
|
+
var classes$x = { "root": "m_f11b401e", "header": "m_5a7c2c9", "content": "m_b8a05bbd", "inner": "m_31cd769a" };
|
|
16582
16582
|
const [DrawerProvider, useDrawerContext] = createSafeContext(
|
|
16583
16583
|
"Drawer component was not found in tree"
|
|
16584
16584
|
);
|
|
@@ -16595,7 +16595,7 @@ const DrawerBody = factory((_props, ref) => {
|
|
|
16595
16595
|
}
|
|
16596
16596
|
);
|
|
16597
16597
|
});
|
|
16598
|
-
DrawerBody.classes = classes$
|
|
16598
|
+
DrawerBody.classes = classes$x;
|
|
16599
16599
|
DrawerBody.displayName = "@mantine/core/DrawerBody";
|
|
16600
16600
|
const DrawerCloseButton = factory((_props, ref) => {
|
|
16601
16601
|
const props = useProps("DrawerCloseButton", null, _props);
|
|
@@ -16610,7 +16610,7 @@ const DrawerCloseButton = factory((_props, ref) => {
|
|
|
16610
16610
|
}
|
|
16611
16611
|
);
|
|
16612
16612
|
});
|
|
16613
|
-
DrawerCloseButton.classes = classes$
|
|
16613
|
+
DrawerCloseButton.classes = classes$x;
|
|
16614
16614
|
DrawerCloseButton.displayName = "@mantine/core/DrawerCloseButton";
|
|
16615
16615
|
const DrawerContent = factory((_props, ref) => {
|
|
16616
16616
|
const props = useProps("DrawerContent", null, _props);
|
|
@@ -16630,7 +16630,7 @@ const DrawerContent = factory((_props, ref) => {
|
|
|
16630
16630
|
}
|
|
16631
16631
|
);
|
|
16632
16632
|
});
|
|
16633
|
-
DrawerContent.classes = classes$
|
|
16633
|
+
DrawerContent.classes = classes$x;
|
|
16634
16634
|
DrawerContent.displayName = "@mantine/core/DrawerContent";
|
|
16635
16635
|
const DrawerHeader = factory((_props, ref) => {
|
|
16636
16636
|
const props = useProps("DrawerHeader", null, _props);
|
|
@@ -16645,7 +16645,7 @@ const DrawerHeader = factory((_props, ref) => {
|
|
|
16645
16645
|
}
|
|
16646
16646
|
);
|
|
16647
16647
|
});
|
|
16648
|
-
DrawerHeader.classes = classes$
|
|
16648
|
+
DrawerHeader.classes = classes$x;
|
|
16649
16649
|
DrawerHeader.displayName = "@mantine/core/DrawerHeader";
|
|
16650
16650
|
const DrawerOverlay = factory((_props, ref) => {
|
|
16651
16651
|
const props = useProps("DrawerOverlay", null, _props);
|
|
@@ -16660,7 +16660,7 @@ const DrawerOverlay = factory((_props, ref) => {
|
|
|
16660
16660
|
}
|
|
16661
16661
|
);
|
|
16662
16662
|
});
|
|
16663
|
-
DrawerOverlay.classes = classes$
|
|
16663
|
+
DrawerOverlay.classes = classes$x;
|
|
16664
16664
|
DrawerOverlay.displayName = "@mantine/core/DrawerOverlay";
|
|
16665
16665
|
function getDrawerAlign(position) {
|
|
16666
16666
|
switch (position) {
|
|
@@ -16690,7 +16690,7 @@ const rtlTransitions = {
|
|
|
16690
16690
|
right: "slide-right",
|
|
16691
16691
|
left: "slide-left"
|
|
16692
16692
|
};
|
|
16693
|
-
const defaultProps$
|
|
16693
|
+
const defaultProps$N = {
|
|
16694
16694
|
closeOnClickOutside: true,
|
|
16695
16695
|
withinPortal: true,
|
|
16696
16696
|
lockScroll: true,
|
|
@@ -16701,7 +16701,7 @@ const defaultProps$J = {
|
|
|
16701
16701
|
zIndex: getDefaultZIndex("modal"),
|
|
16702
16702
|
position: "left"
|
|
16703
16703
|
};
|
|
16704
|
-
const varsResolver$
|
|
16704
|
+
const varsResolver$t = createVarsResolver((_, { position, size: size2, offset: offset2 }) => ({
|
|
16705
16705
|
root: {
|
|
16706
16706
|
"--drawer-size": getSize(size2, "drawer-size"),
|
|
16707
16707
|
"--drawer-flex": getDrawerFlex(position),
|
|
@@ -16712,7 +16712,7 @@ const varsResolver$r = createVarsResolver((_, { position, size: size2, offset: o
|
|
|
16712
16712
|
}
|
|
16713
16713
|
}));
|
|
16714
16714
|
const DrawerRoot = factory((_props, ref) => {
|
|
16715
|
-
const props = useProps("DrawerRoot", defaultProps$
|
|
16715
|
+
const props = useProps("DrawerRoot", defaultProps$N, _props);
|
|
16716
16716
|
const {
|
|
16717
16717
|
classNames: classNames2,
|
|
16718
16718
|
className,
|
|
@@ -16730,7 +16730,7 @@ const DrawerRoot = factory((_props, ref) => {
|
|
|
16730
16730
|
const { dir } = useDirection();
|
|
16731
16731
|
const getStyles2 = useStyles({
|
|
16732
16732
|
name: "Drawer",
|
|
16733
|
-
classes: classes$
|
|
16733
|
+
classes: classes$x,
|
|
16734
16734
|
props,
|
|
16735
16735
|
className,
|
|
16736
16736
|
style,
|
|
@@ -16739,7 +16739,7 @@ const DrawerRoot = factory((_props, ref) => {
|
|
|
16739
16739
|
unstyled,
|
|
16740
16740
|
attributes,
|
|
16741
16741
|
vars,
|
|
16742
|
-
varsResolver: varsResolver$
|
|
16742
|
+
varsResolver: varsResolver$t
|
|
16743
16743
|
});
|
|
16744
16744
|
const drawerTransition = (dir === "rtl" ? rtlTransitions : transitions)[position];
|
|
16745
16745
|
return /* @__PURE__ */ jsxRuntime.jsx(DrawerProvider, { value: { scrollAreaComponent, getStyles: getStyles2, radius }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16754,7 +16754,7 @@ const DrawerRoot = factory((_props, ref) => {
|
|
|
16754
16754
|
}
|
|
16755
16755
|
) });
|
|
16756
16756
|
});
|
|
16757
|
-
DrawerRoot.classes = classes$
|
|
16757
|
+
DrawerRoot.classes = classes$x;
|
|
16758
16758
|
DrawerRoot.displayName = "@mantine/core/DrawerRoot";
|
|
16759
16759
|
const [DrawerStackProvider, useDrawerStackContext] = createOptionalContext();
|
|
16760
16760
|
function DrawerStack({ children }) {
|
|
@@ -16794,9 +16794,9 @@ const DrawerTitle = factory((_props, ref) => {
|
|
|
16794
16794
|
}
|
|
16795
16795
|
);
|
|
16796
16796
|
});
|
|
16797
|
-
DrawerTitle.classes = classes$
|
|
16797
|
+
DrawerTitle.classes = classes$x;
|
|
16798
16798
|
DrawerTitle.displayName = "@mantine/core/DrawerTitle";
|
|
16799
|
-
const defaultProps$
|
|
16799
|
+
const defaultProps$M = {
|
|
16800
16800
|
closeOnClickOutside: true,
|
|
16801
16801
|
withinPortal: true,
|
|
16802
16802
|
lockScroll: true,
|
|
@@ -16820,7 +16820,7 @@ const Drawer$1 = factory((_props, ref) => {
|
|
|
16820
16820
|
stackId,
|
|
16821
16821
|
zIndex,
|
|
16822
16822
|
...others
|
|
16823
|
-
} = useProps("Drawer", defaultProps$
|
|
16823
|
+
} = useProps("Drawer", defaultProps$M, _props);
|
|
16824
16824
|
const ctx = useDrawerStackContext();
|
|
16825
16825
|
const hasHeader = !!title || withCloseButton;
|
|
16826
16826
|
const stackProps = ctx && stackId ? {
|
|
@@ -16862,7 +16862,7 @@ const Drawer$1 = factory((_props, ref) => {
|
|
|
16862
16862
|
}
|
|
16863
16863
|
);
|
|
16864
16864
|
});
|
|
16865
|
-
Drawer$1.classes = classes$
|
|
16865
|
+
Drawer$1.classes = classes$x;
|
|
16866
16866
|
Drawer$1.displayName = "@mantine/core/Drawer";
|
|
16867
16867
|
Drawer$1.Root = DrawerRoot;
|
|
16868
16868
|
Drawer$1.Overlay = DrawerOverlay;
|
|
@@ -16875,7 +16875,7 @@ Drawer$1.Stack = DrawerStack;
|
|
|
16875
16875
|
const [GridProvider, useGridContext] = createSafeContext(
|
|
16876
16876
|
"Grid component was not found in tree"
|
|
16877
16877
|
);
|
|
16878
|
-
var classes$
|
|
16878
|
+
var classes$w = { "container": "m_8478a6da", "root": "m_410352e9", "inner": "m_dee7bd2f", "col": "m_96bdd299" };
|
|
16879
16879
|
const getColumnFlexBasis = (colSpan, columns) => {
|
|
16880
16880
|
if (colSpan === "content") {
|
|
16881
16881
|
return "auto";
|
|
@@ -16957,11 +16957,11 @@ function GridColVariables({ span, order, offset: offset2, selector }) {
|
|
|
16957
16957
|
}
|
|
16958
16958
|
);
|
|
16959
16959
|
}
|
|
16960
|
-
const defaultProps$
|
|
16960
|
+
const defaultProps$L = {
|
|
16961
16961
|
span: 12
|
|
16962
16962
|
};
|
|
16963
16963
|
const GridCol = factory((_props, ref) => {
|
|
16964
|
-
const props = useProps("GridCol", defaultProps$
|
|
16964
|
+
const props = useProps("GridCol", defaultProps$L, _props);
|
|
16965
16965
|
const { classNames: classNames2, className, style, styles, vars, span, order, offset: offset2, ...others } = props;
|
|
16966
16966
|
const ctx = useGridContext();
|
|
16967
16967
|
const responsiveClassName = useRandomClassName();
|
|
@@ -16990,7 +16990,7 @@ const GridCol = factory((_props, ref) => {
|
|
|
16990
16990
|
)
|
|
16991
16991
|
] });
|
|
16992
16992
|
});
|
|
16993
|
-
GridCol.classes = classes$
|
|
16993
|
+
GridCol.classes = classes$w;
|
|
16994
16994
|
GridCol.displayName = "@mantine/core/GridCol";
|
|
16995
16995
|
function GridVariables({ gutter, selector, breakpoints, type }) {
|
|
16996
16996
|
const theme2 = useMantineTheme();
|
|
@@ -17027,12 +17027,12 @@ function GridVariables({ gutter, selector, breakpoints, type }) {
|
|
|
17027
17027
|
}
|
|
17028
17028
|
);
|
|
17029
17029
|
}
|
|
17030
|
-
const defaultProps$
|
|
17030
|
+
const defaultProps$K = {
|
|
17031
17031
|
gutter: "md",
|
|
17032
17032
|
grow: false,
|
|
17033
17033
|
columns: 12
|
|
17034
17034
|
};
|
|
17035
|
-
const varsResolver$
|
|
17035
|
+
const varsResolver$s = createVarsResolver((_, { justify, align, overflow }) => ({
|
|
17036
17036
|
root: {
|
|
17037
17037
|
"--grid-justify": justify,
|
|
17038
17038
|
"--grid-align": align,
|
|
@@ -17040,7 +17040,7 @@ const varsResolver$q = createVarsResolver((_, { justify, align, overflow }) => (
|
|
|
17040
17040
|
}
|
|
17041
17041
|
}));
|
|
17042
17042
|
const Grid = factory((_props, ref) => {
|
|
17043
|
-
const props = useProps("Grid", defaultProps$
|
|
17043
|
+
const props = useProps("Grid", defaultProps$K, _props);
|
|
17044
17044
|
const {
|
|
17045
17045
|
classNames: classNames2,
|
|
17046
17046
|
className,
|
|
@@ -17061,7 +17061,7 @@ const Grid = factory((_props, ref) => {
|
|
|
17061
17061
|
} = props;
|
|
17062
17062
|
const getStyles2 = useStyles({
|
|
17063
17063
|
name: "Grid",
|
|
17064
|
-
classes: classes$
|
|
17064
|
+
classes: classes$w,
|
|
17065
17065
|
props,
|
|
17066
17066
|
className,
|
|
17067
17067
|
style,
|
|
@@ -17070,7 +17070,7 @@ const Grid = factory((_props, ref) => {
|
|
|
17070
17070
|
unstyled,
|
|
17071
17071
|
attributes,
|
|
17072
17072
|
vars,
|
|
17073
|
-
varsResolver: varsResolver$
|
|
17073
|
+
varsResolver: varsResolver$s
|
|
17074
17074
|
});
|
|
17075
17075
|
const responsiveClassName = useRandomClassName();
|
|
17076
17076
|
if (type === "container" && breakpoints) {
|
|
@@ -17084,7 +17084,7 @@ const Grid = factory((_props, ref) => {
|
|
|
17084
17084
|
/* @__PURE__ */ jsxRuntime.jsx(Box, { ref, ...getStyles2("root", { className: responsiveClassName }), ...others, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ...getStyles2("inner"), children }) })
|
|
17085
17085
|
] });
|
|
17086
17086
|
});
|
|
17087
|
-
Grid.classes = classes$
|
|
17087
|
+
Grid.classes = classes$w;
|
|
17088
17088
|
Grid.displayName = "@mantine/core/Grid";
|
|
17089
17089
|
Grid.Col = GridCol;
|
|
17090
17090
|
var index$3 = React.useLayoutEffect;
|
|
@@ -17321,13 +17321,13 @@ var TextareaAutosize = function TextareaAutosize2(_ref, userRef) {
|
|
|
17321
17321
|
}
|
|
17322
17322
|
};
|
|
17323
17323
|
var index$2 = /* @__PURE__ */ React__namespace.forwardRef(TextareaAutosize);
|
|
17324
|
-
const defaultProps$
|
|
17324
|
+
const defaultProps$J = {
|
|
17325
17325
|
size: "sm"
|
|
17326
17326
|
};
|
|
17327
17327
|
const Textarea$1 = factory((props, ref) => {
|
|
17328
17328
|
const { autosize, maxRows, minRows, __staticSelector, resize, ...others } = useProps(
|
|
17329
17329
|
"Textarea",
|
|
17330
|
-
defaultProps$
|
|
17330
|
+
defaultProps$J,
|
|
17331
17331
|
props
|
|
17332
17332
|
);
|
|
17333
17333
|
const shouldAutosize = autosize && getEnv() !== "test";
|
|
@@ -17351,7 +17351,7 @@ Textarea$1.displayName = "@mantine/core/Textarea";
|
|
|
17351
17351
|
const [MenuContextProvider, useMenuContext] = createSafeContext(
|
|
17352
17352
|
"Menu component was not found in the tree"
|
|
17353
17353
|
);
|
|
17354
|
-
var classes$
|
|
17354
|
+
var classes$v = { "dropdown": "m_dc9b7c9f", "label": "m_9bfac126", "divider": "m_efdf90cb", "item": "m_99ac2aa1", "itemLabel": "m_5476e0d3", "itemSection": "m_8b75e504", "chevron": "m_b85b0bed" };
|
|
17355
17355
|
const MenuDivider = factory((props, ref) => {
|
|
17356
17356
|
const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
|
|
17357
17357
|
"MenuDivider",
|
|
@@ -17368,7 +17368,7 @@ const MenuDivider = factory((props, ref) => {
|
|
|
17368
17368
|
}
|
|
17369
17369
|
);
|
|
17370
17370
|
});
|
|
17371
|
-
MenuDivider.classes = classes$
|
|
17371
|
+
MenuDivider.classes = classes$v;
|
|
17372
17372
|
MenuDivider.displayName = "@mantine/core/MenuDivider";
|
|
17373
17373
|
const MenuDropdown = factory((props, ref) => {
|
|
17374
17374
|
const {
|
|
@@ -17425,7 +17425,7 @@ const MenuDropdown = factory((props, ref) => {
|
|
|
17425
17425
|
}
|
|
17426
17426
|
);
|
|
17427
17427
|
});
|
|
17428
|
-
MenuDropdown.classes = classes$
|
|
17428
|
+
MenuDropdown.classes = classes$v;
|
|
17429
17429
|
MenuDropdown.displayName = "@mantine/core/MenuDropdown";
|
|
17430
17430
|
const [SubMenuProvider, useSubMenuContext] = createOptionalContext();
|
|
17431
17431
|
const MenuItem = polymorphicFactory((props, ref) => {
|
|
@@ -17504,7 +17504,7 @@ const MenuItem = polymorphicFactory((props, ref) => {
|
|
|
17504
17504
|
}
|
|
17505
17505
|
);
|
|
17506
17506
|
});
|
|
17507
|
-
MenuItem.classes = classes$
|
|
17507
|
+
MenuItem.classes = classes$v;
|
|
17508
17508
|
MenuItem.displayName = "@mantine/core/MenuItem";
|
|
17509
17509
|
const MenuLabel = factory((props, ref) => {
|
|
17510
17510
|
const { classNames: classNames2, className, style, styles, vars, ...others } = useProps(
|
|
@@ -17522,7 +17522,7 @@ const MenuLabel = factory((props, ref) => {
|
|
|
17522
17522
|
}
|
|
17523
17523
|
);
|
|
17524
17524
|
});
|
|
17525
|
-
MenuLabel.classes = classes$
|
|
17525
|
+
MenuLabel.classes = classes$v;
|
|
17526
17526
|
MenuLabel.displayName = "@mantine/core/MenuLabel";
|
|
17527
17527
|
const MenuSubDropdown = factory((props, ref) => {
|
|
17528
17528
|
const {
|
|
@@ -17564,7 +17564,7 @@ const MenuSubDropdown = factory((props, ref) => {
|
|
|
17564
17564
|
}
|
|
17565
17565
|
);
|
|
17566
17566
|
});
|
|
17567
|
-
MenuSubDropdown.classes = classes$
|
|
17567
|
+
MenuSubDropdown.classes = classes$v;
|
|
17568
17568
|
MenuSubDropdown.displayName = "@mantine/core/MenuSubDropdown";
|
|
17569
17569
|
const MenuSubItem = polymorphicFactory((props, ref) => {
|
|
17570
17570
|
const {
|
|
@@ -17646,7 +17646,7 @@ const MenuSubItem = polymorphicFactory((props, ref) => {
|
|
|
17646
17646
|
}
|
|
17647
17647
|
);
|
|
17648
17648
|
});
|
|
17649
|
-
MenuSubItem.classes = classes$
|
|
17649
|
+
MenuSubItem.classes = classes$v;
|
|
17650
17650
|
MenuSubItem.displayName = "@mantine/core/MenuSubItem";
|
|
17651
17651
|
function MenuSubTarget({ children, refProp }) {
|
|
17652
17652
|
if (!isElement$1(children)) {
|
|
@@ -17658,7 +17658,7 @@ function MenuSubTarget({ children, refProp }) {
|
|
|
17658
17658
|
return /* @__PURE__ */ jsxRuntime.jsx(Popover.Target, { refProp, popupType: "menu", children });
|
|
17659
17659
|
}
|
|
17660
17660
|
MenuSubTarget.displayName = "@mantine/core/MenuSubTarget";
|
|
17661
|
-
const defaultProps$
|
|
17661
|
+
const defaultProps$I = {
|
|
17662
17662
|
offset: 0,
|
|
17663
17663
|
position: "right-start",
|
|
17664
17664
|
transitionProps: { duration: 0 },
|
|
@@ -17671,7 +17671,7 @@ const defaultProps$E = {
|
|
|
17671
17671
|
}
|
|
17672
17672
|
};
|
|
17673
17673
|
function MenuSub(_props) {
|
|
17674
|
-
const { children, closeDelay, openDelay, ...others } = useProps("MenuSub", defaultProps$
|
|
17674
|
+
const { children, closeDelay, openDelay, ...others } = useProps("MenuSub", defaultProps$I, _props);
|
|
17675
17675
|
const id2 = useId$1();
|
|
17676
17676
|
const [opened, { open, close }] = useDisclosure(false);
|
|
17677
17677
|
const ctx = useSubMenuContext();
|
|
@@ -17707,11 +17707,11 @@ MenuSub.displayName = "@mantine/core/MenuSub";
|
|
|
17707
17707
|
MenuSub.Target = MenuSubTarget;
|
|
17708
17708
|
MenuSub.Dropdown = MenuSubDropdown;
|
|
17709
17709
|
MenuSub.Item = MenuSubItem;
|
|
17710
|
-
const defaultProps$
|
|
17710
|
+
const defaultProps$H = {
|
|
17711
17711
|
refProp: "ref"
|
|
17712
17712
|
};
|
|
17713
17713
|
const MenuTarget = React.forwardRef((props, ref) => {
|
|
17714
|
-
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$
|
|
17714
|
+
const { children, refProp, ...others } = useProps("MenuTarget", defaultProps$H, props);
|
|
17715
17715
|
const child = getSingleElementChild(children);
|
|
17716
17716
|
if (!child) {
|
|
17717
17717
|
throw new Error(
|
|
@@ -17749,7 +17749,7 @@ const MenuTarget = React.forwardRef((props, ref) => {
|
|
|
17749
17749
|
}) });
|
|
17750
17750
|
});
|
|
17751
17751
|
MenuTarget.displayName = "@mantine/core/MenuTarget";
|
|
17752
|
-
const defaultProps$
|
|
17752
|
+
const defaultProps$G = {
|
|
17753
17753
|
trapFocus: true,
|
|
17754
17754
|
closeOnItemClick: true,
|
|
17755
17755
|
withInitialFocusPlaceholder: true,
|
|
@@ -17761,7 +17761,7 @@ const defaultProps$C = {
|
|
|
17761
17761
|
menuItemTabIndex: -1
|
|
17762
17762
|
};
|
|
17763
17763
|
function Menu$1(_props) {
|
|
17764
|
-
const props = useProps("Menu", defaultProps$
|
|
17764
|
+
const props = useProps("Menu", defaultProps$G, _props);
|
|
17765
17765
|
const {
|
|
17766
17766
|
children,
|
|
17767
17767
|
onOpen,
|
|
@@ -17789,7 +17789,7 @@ function Menu$1(_props) {
|
|
|
17789
17789
|
} = props;
|
|
17790
17790
|
const getStyles2 = useStyles({
|
|
17791
17791
|
name: "Menu",
|
|
17792
|
-
classes: classes$
|
|
17792
|
+
classes: classes$v,
|
|
17793
17793
|
props,
|
|
17794
17794
|
classNames: classNames2,
|
|
17795
17795
|
styles,
|
|
@@ -17866,7 +17866,7 @@ function Menu$1(_props) {
|
|
|
17866
17866
|
}
|
|
17867
17867
|
Menu$1.extend = (input) => input;
|
|
17868
17868
|
Menu$1.withProps = getWithProps(Menu$1);
|
|
17869
|
-
Menu$1.classes = classes$
|
|
17869
|
+
Menu$1.classes = classes$v;
|
|
17870
17870
|
Menu$1.displayName = "@mantine/core/Menu";
|
|
17871
17871
|
Menu$1.Item = MenuItem;
|
|
17872
17872
|
Menu$1.Label = MenuLabel;
|
|
@@ -17874,7 +17874,7 @@ Menu$1.Dropdown = MenuDropdown;
|
|
|
17874
17874
|
Menu$1.Target = MenuTarget;
|
|
17875
17875
|
Menu$1.Divider = MenuDivider;
|
|
17876
17876
|
Menu$1.Sub = MenuSub;
|
|
17877
|
-
var classes$
|
|
17877
|
+
var classes$u = { "root": "m_9df02822", "content": "m_54c44539", "inner": "m_1f958f16", "header": "m_d0e2b9cd" };
|
|
17878
17878
|
const [ModalProvider, useModalContext] = createSafeContext(
|
|
17879
17879
|
"Modal component was not found in tree"
|
|
17880
17880
|
);
|
|
@@ -17891,7 +17891,7 @@ const ModalBody = factory((_props, ref) => {
|
|
|
17891
17891
|
}
|
|
17892
17892
|
);
|
|
17893
17893
|
});
|
|
17894
|
-
ModalBody.classes = classes$
|
|
17894
|
+
ModalBody.classes = classes$u;
|
|
17895
17895
|
ModalBody.displayName = "@mantine/core/ModalBody";
|
|
17896
17896
|
const ModalCloseButton = factory((_props, ref) => {
|
|
17897
17897
|
const props = useProps("ModalCloseButton", null, _props);
|
|
@@ -17906,7 +17906,7 @@ const ModalCloseButton = factory((_props, ref) => {
|
|
|
17906
17906
|
}
|
|
17907
17907
|
);
|
|
17908
17908
|
});
|
|
17909
|
-
ModalCloseButton.classes = classes$
|
|
17909
|
+
ModalCloseButton.classes = classes$u;
|
|
17910
17910
|
ModalCloseButton.displayName = "@mantine/core/ModalCloseButton";
|
|
17911
17911
|
const ModalContent = factory((_props, ref) => {
|
|
17912
17912
|
const props = useProps("ModalContent", null, _props);
|
|
@@ -17935,7 +17935,7 @@ const ModalContent = factory((_props, ref) => {
|
|
|
17935
17935
|
}
|
|
17936
17936
|
);
|
|
17937
17937
|
});
|
|
17938
|
-
ModalContent.classes = classes$
|
|
17938
|
+
ModalContent.classes = classes$u;
|
|
17939
17939
|
ModalContent.displayName = "@mantine/core/ModalContent";
|
|
17940
17940
|
const ModalHeader = factory((_props, ref) => {
|
|
17941
17941
|
const props = useProps("ModalHeader", null, _props);
|
|
@@ -17950,7 +17950,7 @@ const ModalHeader = factory((_props, ref) => {
|
|
|
17950
17950
|
}
|
|
17951
17951
|
);
|
|
17952
17952
|
});
|
|
17953
|
-
ModalHeader.classes = classes$
|
|
17953
|
+
ModalHeader.classes = classes$u;
|
|
17954
17954
|
ModalHeader.displayName = "@mantine/core/ModalHeader";
|
|
17955
17955
|
const ModalOverlay = factory((_props, ref) => {
|
|
17956
17956
|
const props = useProps("ModalOverlay", null, _props);
|
|
@@ -17965,9 +17965,9 @@ const ModalOverlay = factory((_props, ref) => {
|
|
|
17965
17965
|
}
|
|
17966
17966
|
);
|
|
17967
17967
|
});
|
|
17968
|
-
ModalOverlay.classes = classes$
|
|
17968
|
+
ModalOverlay.classes = classes$u;
|
|
17969
17969
|
ModalOverlay.displayName = "@mantine/core/ModalOverlay";
|
|
17970
|
-
const defaultProps$
|
|
17970
|
+
const defaultProps$F = {
|
|
17971
17971
|
__staticSelector: "Modal",
|
|
17972
17972
|
closeOnClickOutside: true,
|
|
17973
17973
|
withinPortal: true,
|
|
@@ -17980,7 +17980,7 @@ const defaultProps$B = {
|
|
|
17980
17980
|
transitionProps: { duration: 200, transition: "fade-down" },
|
|
17981
17981
|
yOffset: "5dvh"
|
|
17982
17982
|
};
|
|
17983
|
-
const varsResolver$
|
|
17983
|
+
const varsResolver$r = createVarsResolver(
|
|
17984
17984
|
(_, { radius, size: size2, yOffset, xOffset }) => ({
|
|
17985
17985
|
root: {
|
|
17986
17986
|
"--modal-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
@@ -17991,7 +17991,7 @@ const varsResolver$p = createVarsResolver(
|
|
|
17991
17991
|
})
|
|
17992
17992
|
);
|
|
17993
17993
|
const ModalRoot = factory((_props, ref) => {
|
|
17994
|
-
const props = useProps("ModalRoot", defaultProps$
|
|
17994
|
+
const props = useProps("ModalRoot", defaultProps$F, _props);
|
|
17995
17995
|
const {
|
|
17996
17996
|
classNames: classNames2,
|
|
17997
17997
|
className,
|
|
@@ -18011,7 +18011,7 @@ const ModalRoot = factory((_props, ref) => {
|
|
|
18011
18011
|
} = props;
|
|
18012
18012
|
const getStyles2 = useStyles({
|
|
18013
18013
|
name: __staticSelector,
|
|
18014
|
-
classes: classes$
|
|
18014
|
+
classes: classes$u,
|
|
18015
18015
|
props,
|
|
18016
18016
|
className,
|
|
18017
18017
|
style,
|
|
@@ -18020,7 +18020,7 @@ const ModalRoot = factory((_props, ref) => {
|
|
|
18020
18020
|
unstyled,
|
|
18021
18021
|
attributes,
|
|
18022
18022
|
vars,
|
|
18023
|
-
varsResolver: varsResolver$
|
|
18023
|
+
varsResolver: varsResolver$r
|
|
18024
18024
|
});
|
|
18025
18025
|
return /* @__PURE__ */ jsxRuntime.jsx(ModalProvider, { value: { yOffset, scrollAreaComponent, getStyles: getStyles2, fullScreen }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18026
18026
|
ModalBase,
|
|
@@ -18035,7 +18035,7 @@ const ModalRoot = factory((_props, ref) => {
|
|
|
18035
18035
|
}
|
|
18036
18036
|
) });
|
|
18037
18037
|
});
|
|
18038
|
-
ModalRoot.classes = classes$
|
|
18038
|
+
ModalRoot.classes = classes$u;
|
|
18039
18039
|
ModalRoot.displayName = "@mantine/core/ModalRoot";
|
|
18040
18040
|
const [ModalStackProvider, useModalStackContext] = createOptionalContext();
|
|
18041
18041
|
function ModalStack({ children }) {
|
|
@@ -18075,9 +18075,9 @@ const ModalTitle = factory((_props, ref) => {
|
|
|
18075
18075
|
}
|
|
18076
18076
|
);
|
|
18077
18077
|
});
|
|
18078
|
-
ModalTitle.classes = classes$
|
|
18078
|
+
ModalTitle.classes = classes$u;
|
|
18079
18079
|
ModalTitle.displayName = "@mantine/core/ModalTitle";
|
|
18080
|
-
const defaultProps$
|
|
18080
|
+
const defaultProps$E = {
|
|
18081
18081
|
closeOnClickOutside: true,
|
|
18082
18082
|
withinPortal: true,
|
|
18083
18083
|
lockScroll: true,
|
|
@@ -18103,7 +18103,7 @@ const Modal$1 = factory((_props, ref) => {
|
|
|
18103
18103
|
stackId,
|
|
18104
18104
|
zIndex,
|
|
18105
18105
|
...others
|
|
18106
|
-
} = useProps("Modal", defaultProps$
|
|
18106
|
+
} = useProps("Modal", defaultProps$E, _props);
|
|
18107
18107
|
const ctx = useModalStackContext();
|
|
18108
18108
|
const hasHeader = !!title || withCloseButton;
|
|
18109
18109
|
const stackProps = ctx && stackId ? {
|
|
@@ -18153,7 +18153,7 @@ const Modal$1 = factory((_props, ref) => {
|
|
|
18153
18153
|
}
|
|
18154
18154
|
);
|
|
18155
18155
|
});
|
|
18156
|
-
Modal$1.classes = classes$
|
|
18156
|
+
Modal$1.classes = classes$u;
|
|
18157
18157
|
Modal$1.displayName = "@mantine/core/Modal";
|
|
18158
18158
|
Modal$1.Root = ModalRoot;
|
|
18159
18159
|
Modal$1.Overlay = ModalOverlay;
|
|
@@ -18163,6 +18163,643 @@ Modal$1.Header = ModalHeader;
|
|
|
18163
18163
|
Modal$1.Title = ModalTitle;
|
|
18164
18164
|
Modal$1.CloseButton = ModalCloseButton;
|
|
18165
18165
|
Modal$1.Stack = ModalStack;
|
|
18166
|
+
const [PillsInputProvider, usePillsInputContext] = createOptionalContext();
|
|
18167
|
+
var classes$t = { "root": "m_7cda1cd6", "root--default": "m_44da308b", "root--contrast": "m_e3a01f8", "label": "m_1e0e6180", "remove": "m_ae386778", "group": "m_1dcfd90b" };
|
|
18168
|
+
const [PillGroupProvider, usePillGroupContext] = createOptionalContext();
|
|
18169
|
+
const varsResolver$q = createVarsResolver((_, { gap }, { size: size2 }) => ({
|
|
18170
|
+
group: {
|
|
18171
|
+
"--pg-gap": gap !== void 0 ? getSize(gap) : getSize(size2, "pg-gap")
|
|
18172
|
+
}
|
|
18173
|
+
}));
|
|
18174
|
+
const PillGroup = factory((_props, ref) => {
|
|
18175
|
+
const props = useProps("PillGroup", null, _props);
|
|
18176
|
+
const {
|
|
18177
|
+
classNames: classNames2,
|
|
18178
|
+
className,
|
|
18179
|
+
style,
|
|
18180
|
+
styles,
|
|
18181
|
+
unstyled,
|
|
18182
|
+
vars,
|
|
18183
|
+
size: size2,
|
|
18184
|
+
disabled,
|
|
18185
|
+
attributes,
|
|
18186
|
+
...others
|
|
18187
|
+
} = props;
|
|
18188
|
+
const pillsInputCtx = usePillsInputContext();
|
|
18189
|
+
const _size2 = pillsInputCtx?.size || size2 || void 0;
|
|
18190
|
+
const getStyles2 = useStyles({
|
|
18191
|
+
name: "PillGroup",
|
|
18192
|
+
classes: classes$t,
|
|
18193
|
+
props,
|
|
18194
|
+
className,
|
|
18195
|
+
style,
|
|
18196
|
+
classNames: classNames2,
|
|
18197
|
+
styles,
|
|
18198
|
+
unstyled,
|
|
18199
|
+
attributes,
|
|
18200
|
+
vars,
|
|
18201
|
+
varsResolver: varsResolver$q,
|
|
18202
|
+
stylesCtx: { size: _size2 },
|
|
18203
|
+
rootSelector: "group"
|
|
18204
|
+
});
|
|
18205
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PillGroupProvider, { value: { size: _size2, disabled }, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { ref, size: _size2, ...getStyles2("group"), ...others }) });
|
|
18206
|
+
});
|
|
18207
|
+
PillGroup.classes = classes$t;
|
|
18208
|
+
PillGroup.displayName = "@mantine/core/PillGroup";
|
|
18209
|
+
const defaultProps$D = {
|
|
18210
|
+
variant: "default"
|
|
18211
|
+
};
|
|
18212
|
+
const varsResolver$p = createVarsResolver((_, { radius }, { size: size2 }) => ({
|
|
18213
|
+
root: {
|
|
18214
|
+
"--pill-fz": getSize(size2, "pill-fz"),
|
|
18215
|
+
"--pill-height": getSize(size2, "pill-height"),
|
|
18216
|
+
"--pill-radius": radius === void 0 ? void 0 : getRadius(radius)
|
|
18217
|
+
}
|
|
18218
|
+
}));
|
|
18219
|
+
const Pill = factory((_props, ref) => {
|
|
18220
|
+
const props = useProps("Pill", defaultProps$D, _props);
|
|
18221
|
+
const {
|
|
18222
|
+
classNames: classNames2,
|
|
18223
|
+
className,
|
|
18224
|
+
style,
|
|
18225
|
+
styles,
|
|
18226
|
+
unstyled,
|
|
18227
|
+
vars,
|
|
18228
|
+
variant,
|
|
18229
|
+
children,
|
|
18230
|
+
withRemoveButton,
|
|
18231
|
+
onRemove,
|
|
18232
|
+
removeButtonProps,
|
|
18233
|
+
radius,
|
|
18234
|
+
size: size2,
|
|
18235
|
+
disabled,
|
|
18236
|
+
mod,
|
|
18237
|
+
attributes,
|
|
18238
|
+
...others
|
|
18239
|
+
} = props;
|
|
18240
|
+
const ctx = usePillGroupContext();
|
|
18241
|
+
const pillsInputCtx = usePillsInputContext();
|
|
18242
|
+
const _size2 = size2 || ctx?.size || void 0;
|
|
18243
|
+
const _variant = pillsInputCtx?.variant === "filled" ? "contrast" : variant || "default";
|
|
18244
|
+
const getStyles2 = useStyles({
|
|
18245
|
+
name: "Pill",
|
|
18246
|
+
classes: classes$t,
|
|
18247
|
+
props,
|
|
18248
|
+
className,
|
|
18249
|
+
style,
|
|
18250
|
+
classNames: classNames2,
|
|
18251
|
+
styles,
|
|
18252
|
+
unstyled,
|
|
18253
|
+
attributes,
|
|
18254
|
+
vars,
|
|
18255
|
+
varsResolver: varsResolver$p,
|
|
18256
|
+
stylesCtx: { size: _size2 }
|
|
18257
|
+
});
|
|
18258
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18259
|
+
Box,
|
|
18260
|
+
{
|
|
18261
|
+
component: "span",
|
|
18262
|
+
ref,
|
|
18263
|
+
variant: _variant,
|
|
18264
|
+
size: _size2,
|
|
18265
|
+
...getStyles2("root", { variant: _variant }),
|
|
18266
|
+
mod: [
|
|
18267
|
+
{ "with-remove": withRemoveButton && !disabled, disabled: disabled || ctx?.disabled },
|
|
18268
|
+
mod
|
|
18269
|
+
],
|
|
18270
|
+
...others,
|
|
18271
|
+
children: [
|
|
18272
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { ...getStyles2("label"), children }),
|
|
18273
|
+
withRemoveButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18274
|
+
CloseButton,
|
|
18275
|
+
{
|
|
18276
|
+
variant: "transparent",
|
|
18277
|
+
radius,
|
|
18278
|
+
tabIndex: -1,
|
|
18279
|
+
"aria-hidden": true,
|
|
18280
|
+
unstyled,
|
|
18281
|
+
...removeButtonProps,
|
|
18282
|
+
...getStyles2("remove", {
|
|
18283
|
+
className: removeButtonProps?.className,
|
|
18284
|
+
style: removeButtonProps?.style
|
|
18285
|
+
}),
|
|
18286
|
+
onMouseDown: (event) => {
|
|
18287
|
+
event.preventDefault();
|
|
18288
|
+
event.stopPropagation();
|
|
18289
|
+
removeButtonProps?.onMouseDown?.(event);
|
|
18290
|
+
},
|
|
18291
|
+
onClick: (event) => {
|
|
18292
|
+
event.stopPropagation();
|
|
18293
|
+
onRemove?.();
|
|
18294
|
+
removeButtonProps?.onClick?.(event);
|
|
18295
|
+
}
|
|
18296
|
+
}
|
|
18297
|
+
)
|
|
18298
|
+
]
|
|
18299
|
+
}
|
|
18300
|
+
);
|
|
18301
|
+
});
|
|
18302
|
+
Pill.classes = classes$t;
|
|
18303
|
+
Pill.displayName = "@mantine/core/Pill";
|
|
18304
|
+
Pill.Group = PillGroup;
|
|
18305
|
+
var classes$s = { "field": "m_45c4369d" };
|
|
18306
|
+
const defaultProps$C = {
|
|
18307
|
+
type: "visible"
|
|
18308
|
+
};
|
|
18309
|
+
const PillsInputField = factory((_props, ref) => {
|
|
18310
|
+
const props = useProps("PillsInputField", defaultProps$C, _props);
|
|
18311
|
+
const {
|
|
18312
|
+
classNames: classNames2,
|
|
18313
|
+
className,
|
|
18314
|
+
style,
|
|
18315
|
+
styles,
|
|
18316
|
+
unstyled,
|
|
18317
|
+
vars,
|
|
18318
|
+
type,
|
|
18319
|
+
disabled,
|
|
18320
|
+
id: id2,
|
|
18321
|
+
pointer,
|
|
18322
|
+
mod,
|
|
18323
|
+
attributes,
|
|
18324
|
+
...others
|
|
18325
|
+
} = props;
|
|
18326
|
+
const ctx = usePillsInputContext();
|
|
18327
|
+
const inputWrapperCtx = useInputWrapperContext();
|
|
18328
|
+
const getStyles2 = useStyles({
|
|
18329
|
+
name: "PillsInputField",
|
|
18330
|
+
classes: classes$s,
|
|
18331
|
+
props,
|
|
18332
|
+
className,
|
|
18333
|
+
style,
|
|
18334
|
+
classNames: classNames2,
|
|
18335
|
+
styles,
|
|
18336
|
+
unstyled,
|
|
18337
|
+
attributes,
|
|
18338
|
+
rootSelector: "field"
|
|
18339
|
+
});
|
|
18340
|
+
const _disabled = disabled || ctx?.disabled;
|
|
18341
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18342
|
+
Box,
|
|
18343
|
+
{
|
|
18344
|
+
component: "input",
|
|
18345
|
+
ref: useMergedRef(ref, ctx?.fieldRef),
|
|
18346
|
+
"data-type": type,
|
|
18347
|
+
disabled: _disabled,
|
|
18348
|
+
mod: [{ disabled: _disabled, pointer }, mod],
|
|
18349
|
+
...getStyles2("field"),
|
|
18350
|
+
...others,
|
|
18351
|
+
id: inputWrapperCtx?.inputId || id2,
|
|
18352
|
+
"aria-invalid": ctx?.hasError,
|
|
18353
|
+
"aria-describedby": inputWrapperCtx?.describedBy,
|
|
18354
|
+
type: "text",
|
|
18355
|
+
onMouseDown: (event) => !pointer && event.stopPropagation()
|
|
18356
|
+
}
|
|
18357
|
+
);
|
|
18358
|
+
});
|
|
18359
|
+
PillsInputField.classes = classes$s;
|
|
18360
|
+
PillsInputField.displayName = "@mantine/core/PillsInputField";
|
|
18361
|
+
const defaultProps$B = {
|
|
18362
|
+
size: "sm"
|
|
18363
|
+
};
|
|
18364
|
+
const PillsInput = factory((_props, ref) => {
|
|
18365
|
+
const props = useProps("PillsInput", defaultProps$B, _props);
|
|
18366
|
+
const {
|
|
18367
|
+
children,
|
|
18368
|
+
onMouseDown,
|
|
18369
|
+
onClick,
|
|
18370
|
+
size: size2,
|
|
18371
|
+
disabled,
|
|
18372
|
+
__staticSelector,
|
|
18373
|
+
error: error2,
|
|
18374
|
+
variant,
|
|
18375
|
+
...others
|
|
18376
|
+
} = props;
|
|
18377
|
+
const fieldRef = React.useRef(null);
|
|
18378
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PillsInputProvider, { value: { fieldRef, size: size2, disabled, hasError: !!error2, variant }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18379
|
+
InputBase,
|
|
18380
|
+
{
|
|
18381
|
+
size: size2,
|
|
18382
|
+
error: error2,
|
|
18383
|
+
variant,
|
|
18384
|
+
component: "div",
|
|
18385
|
+
ref,
|
|
18386
|
+
"data-no-overflow": true,
|
|
18387
|
+
onMouseDown: (event) => {
|
|
18388
|
+
event.preventDefault();
|
|
18389
|
+
onMouseDown?.(event);
|
|
18390
|
+
fieldRef.current?.focus();
|
|
18391
|
+
},
|
|
18392
|
+
onClick: (event) => {
|
|
18393
|
+
event.preventDefault();
|
|
18394
|
+
const fieldset = event.currentTarget.closest("fieldset");
|
|
18395
|
+
if (!fieldset?.disabled) {
|
|
18396
|
+
fieldRef.current?.focus();
|
|
18397
|
+
onClick?.(event);
|
|
18398
|
+
}
|
|
18399
|
+
},
|
|
18400
|
+
...others,
|
|
18401
|
+
multiline: true,
|
|
18402
|
+
disabled,
|
|
18403
|
+
__staticSelector: __staticSelector || "PillsInput",
|
|
18404
|
+
withAria: false,
|
|
18405
|
+
children
|
|
18406
|
+
}
|
|
18407
|
+
) });
|
|
18408
|
+
});
|
|
18409
|
+
PillsInput.displayName = "@mantine/core/PillsInput";
|
|
18410
|
+
PillsInput.Field = PillsInputField;
|
|
18411
|
+
function filterPickedValues({ data, value }) {
|
|
18412
|
+
const normalizedValue = value.map((item) => item.trim().toLowerCase());
|
|
18413
|
+
const filtered = data.reduce((acc, item) => {
|
|
18414
|
+
if (isOptionsGroup(item)) {
|
|
18415
|
+
acc.push({
|
|
18416
|
+
group: item.group,
|
|
18417
|
+
items: item.items.filter(
|
|
18418
|
+
(option) => normalizedValue.indexOf(option.value.toLowerCase().trim()) === -1
|
|
18419
|
+
)
|
|
18420
|
+
});
|
|
18421
|
+
} else if (normalizedValue.indexOf(item.value.toLowerCase().trim()) === -1) {
|
|
18422
|
+
acc.push(item);
|
|
18423
|
+
}
|
|
18424
|
+
return acc;
|
|
18425
|
+
}, []);
|
|
18426
|
+
return filtered;
|
|
18427
|
+
}
|
|
18428
|
+
const clearSectionOffset = {
|
|
18429
|
+
xs: 41,
|
|
18430
|
+
sm: 50,
|
|
18431
|
+
md: 60,
|
|
18432
|
+
lg: 72,
|
|
18433
|
+
xl: 89
|
|
18434
|
+
};
|
|
18435
|
+
const defaultProps$A = {
|
|
18436
|
+
maxValues: Infinity,
|
|
18437
|
+
withCheckIcon: true,
|
|
18438
|
+
checkIconPosition: "left",
|
|
18439
|
+
hiddenInputValuesDivider: ",",
|
|
18440
|
+
clearSearchOnChange: true,
|
|
18441
|
+
openOnFocus: true,
|
|
18442
|
+
size: "sm"
|
|
18443
|
+
};
|
|
18444
|
+
const MultiSelect$1 = factory((_props, ref) => {
|
|
18445
|
+
const props = useProps("MultiSelect", defaultProps$A, _props);
|
|
18446
|
+
const {
|
|
18447
|
+
classNames: classNames2,
|
|
18448
|
+
className,
|
|
18449
|
+
style,
|
|
18450
|
+
styles,
|
|
18451
|
+
unstyled,
|
|
18452
|
+
vars,
|
|
18453
|
+
size: size2,
|
|
18454
|
+
value,
|
|
18455
|
+
defaultValue,
|
|
18456
|
+
onChange,
|
|
18457
|
+
onKeyDown,
|
|
18458
|
+
variant,
|
|
18459
|
+
data,
|
|
18460
|
+
dropdownOpened,
|
|
18461
|
+
defaultDropdownOpened,
|
|
18462
|
+
onDropdownOpen,
|
|
18463
|
+
onDropdownClose,
|
|
18464
|
+
selectFirstOptionOnChange,
|
|
18465
|
+
selectFirstOptionOnDropdownOpen,
|
|
18466
|
+
onOptionSubmit,
|
|
18467
|
+
comboboxProps,
|
|
18468
|
+
filter,
|
|
18469
|
+
limit,
|
|
18470
|
+
withScrollArea,
|
|
18471
|
+
maxDropdownHeight,
|
|
18472
|
+
searchValue,
|
|
18473
|
+
defaultSearchValue,
|
|
18474
|
+
onSearchChange,
|
|
18475
|
+
readOnly,
|
|
18476
|
+
disabled,
|
|
18477
|
+
onFocus,
|
|
18478
|
+
onBlur,
|
|
18479
|
+
radius,
|
|
18480
|
+
rightSection,
|
|
18481
|
+
rightSectionWidth,
|
|
18482
|
+
rightSectionPointerEvents,
|
|
18483
|
+
rightSectionProps,
|
|
18484
|
+
leftSection,
|
|
18485
|
+
leftSectionWidth,
|
|
18486
|
+
leftSectionPointerEvents,
|
|
18487
|
+
leftSectionProps,
|
|
18488
|
+
inputContainer,
|
|
18489
|
+
inputWrapperOrder,
|
|
18490
|
+
withAsterisk,
|
|
18491
|
+
labelProps,
|
|
18492
|
+
descriptionProps,
|
|
18493
|
+
errorProps,
|
|
18494
|
+
wrapperProps,
|
|
18495
|
+
description,
|
|
18496
|
+
label,
|
|
18497
|
+
error: error2,
|
|
18498
|
+
maxValues,
|
|
18499
|
+
searchable,
|
|
18500
|
+
nothingFoundMessage,
|
|
18501
|
+
withCheckIcon,
|
|
18502
|
+
withAlignedLabels,
|
|
18503
|
+
checkIconPosition,
|
|
18504
|
+
hidePickedOptions,
|
|
18505
|
+
withErrorStyles,
|
|
18506
|
+
name,
|
|
18507
|
+
form,
|
|
18508
|
+
id: id2,
|
|
18509
|
+
clearable,
|
|
18510
|
+
clearButtonProps,
|
|
18511
|
+
hiddenInputProps,
|
|
18512
|
+
placeholder,
|
|
18513
|
+
hiddenInputValuesDivider,
|
|
18514
|
+
required: required2,
|
|
18515
|
+
mod,
|
|
18516
|
+
renderOption,
|
|
18517
|
+
onRemove,
|
|
18518
|
+
onClear,
|
|
18519
|
+
scrollAreaProps,
|
|
18520
|
+
chevronColor,
|
|
18521
|
+
attributes,
|
|
18522
|
+
clearSearchOnChange,
|
|
18523
|
+
openOnFocus,
|
|
18524
|
+
...others
|
|
18525
|
+
} = props;
|
|
18526
|
+
const _id = useId$1(id2);
|
|
18527
|
+
const parsedData = getParsedComboboxData(data);
|
|
18528
|
+
const optionsLockup = getOptionsLockup(parsedData);
|
|
18529
|
+
const retainedSelectedOptions = React.useRef({});
|
|
18530
|
+
const combobox = useCombobox({
|
|
18531
|
+
opened: dropdownOpened,
|
|
18532
|
+
defaultOpened: defaultDropdownOpened,
|
|
18533
|
+
onDropdownOpen: () => {
|
|
18534
|
+
onDropdownOpen?.();
|
|
18535
|
+
if (selectFirstOptionOnDropdownOpen) {
|
|
18536
|
+
combobox.selectFirstOption();
|
|
18537
|
+
}
|
|
18538
|
+
},
|
|
18539
|
+
onDropdownClose: () => {
|
|
18540
|
+
onDropdownClose?.();
|
|
18541
|
+
combobox.resetSelectedOption();
|
|
18542
|
+
}
|
|
18543
|
+
});
|
|
18544
|
+
const {
|
|
18545
|
+
styleProps,
|
|
18546
|
+
rest: { type, autoComplete, ...rest }
|
|
18547
|
+
} = extractStyleProps(others);
|
|
18548
|
+
const [_value, setValue] = useUncontrolled({
|
|
18549
|
+
value,
|
|
18550
|
+
defaultValue,
|
|
18551
|
+
finalValue: [],
|
|
18552
|
+
onChange
|
|
18553
|
+
});
|
|
18554
|
+
const [_searchValue, setSearchValue] = useUncontrolled({
|
|
18555
|
+
value: searchValue,
|
|
18556
|
+
defaultValue: defaultSearchValue,
|
|
18557
|
+
finalValue: "",
|
|
18558
|
+
onChange: onSearchChange
|
|
18559
|
+
});
|
|
18560
|
+
const handleSearchChange = (value2) => {
|
|
18561
|
+
setSearchValue(value2);
|
|
18562
|
+
combobox.resetSelectedOption();
|
|
18563
|
+
};
|
|
18564
|
+
const getStyles2 = useStyles({
|
|
18565
|
+
name: "MultiSelect",
|
|
18566
|
+
classes: {},
|
|
18567
|
+
props,
|
|
18568
|
+
classNames: classNames2,
|
|
18569
|
+
styles,
|
|
18570
|
+
unstyled,
|
|
18571
|
+
attributes
|
|
18572
|
+
});
|
|
18573
|
+
const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({
|
|
18574
|
+
props,
|
|
18575
|
+
styles,
|
|
18576
|
+
classNames: classNames2
|
|
18577
|
+
});
|
|
18578
|
+
const handleInputKeydown = (event) => {
|
|
18579
|
+
onKeyDown?.(event);
|
|
18580
|
+
if (event.key === " " && !searchable) {
|
|
18581
|
+
event.preventDefault();
|
|
18582
|
+
combobox.toggleDropdown();
|
|
18583
|
+
}
|
|
18584
|
+
if (event.key === "Backspace" && _searchValue.length === 0 && _value.length > 0) {
|
|
18585
|
+
onRemove?.(_value[_value.length - 1]);
|
|
18586
|
+
setValue(_value.slice(0, _value.length - 1));
|
|
18587
|
+
}
|
|
18588
|
+
};
|
|
18589
|
+
const values2 = _value.map((item, index2) => {
|
|
18590
|
+
const optionData = optionsLockup[item] || retainedSelectedOptions.current[item];
|
|
18591
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18592
|
+
Pill,
|
|
18593
|
+
{
|
|
18594
|
+
withRemoveButton: !readOnly && !optionsLockup[item]?.disabled,
|
|
18595
|
+
onRemove: () => {
|
|
18596
|
+
setValue(_value.filter((i) => item !== i));
|
|
18597
|
+
onRemove?.(item);
|
|
18598
|
+
},
|
|
18599
|
+
unstyled,
|
|
18600
|
+
disabled,
|
|
18601
|
+
...getStyles2("pill"),
|
|
18602
|
+
children: optionData?.label || item
|
|
18603
|
+
},
|
|
18604
|
+
`${item}-${index2}`
|
|
18605
|
+
);
|
|
18606
|
+
});
|
|
18607
|
+
React.useEffect(() => {
|
|
18608
|
+
if (selectFirstOptionOnChange) {
|
|
18609
|
+
combobox.selectFirstOption();
|
|
18610
|
+
}
|
|
18611
|
+
}, [selectFirstOptionOnChange, _searchValue]);
|
|
18612
|
+
React.useEffect(() => {
|
|
18613
|
+
_value.forEach((val) => {
|
|
18614
|
+
if (val in optionsLockup) {
|
|
18615
|
+
retainedSelectedOptions.current[val] = optionsLockup[val];
|
|
18616
|
+
}
|
|
18617
|
+
});
|
|
18618
|
+
}, [optionsLockup, _value]);
|
|
18619
|
+
const clearButton = /* @__PURE__ */ jsxRuntime.jsx(
|
|
18620
|
+
Combobox.ClearButton,
|
|
18621
|
+
{
|
|
18622
|
+
...clearButtonProps,
|
|
18623
|
+
onClear: () => {
|
|
18624
|
+
onClear?.();
|
|
18625
|
+
setValue([]);
|
|
18626
|
+
handleSearchChange("");
|
|
18627
|
+
}
|
|
18628
|
+
}
|
|
18629
|
+
);
|
|
18630
|
+
const filteredData = filterPickedValues({ data: parsedData, value: _value });
|
|
18631
|
+
const _clearable = clearable && _value.length > 0 && !disabled && !readOnly;
|
|
18632
|
+
const pillsListStyle = _clearable ? { paddingInlineEnd: clearSectionOffset[size2] ?? clearSectionOffset.sm } : void 0;
|
|
18633
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
18634
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18635
|
+
Combobox,
|
|
18636
|
+
{
|
|
18637
|
+
store: combobox,
|
|
18638
|
+
classNames: resolvedClassNames,
|
|
18639
|
+
styles: resolvedStyles,
|
|
18640
|
+
unstyled,
|
|
18641
|
+
size: size2,
|
|
18642
|
+
readOnly,
|
|
18643
|
+
__staticSelector: "MultiSelect",
|
|
18644
|
+
attributes,
|
|
18645
|
+
onOptionSubmit: (val) => {
|
|
18646
|
+
onOptionSubmit?.(val);
|
|
18647
|
+
if (clearSearchOnChange) {
|
|
18648
|
+
handleSearchChange("");
|
|
18649
|
+
}
|
|
18650
|
+
combobox.updateSelectedOptionIndex("selected");
|
|
18651
|
+
if (_value.includes(optionsLockup[val].value)) {
|
|
18652
|
+
setValue(_value.filter((v) => v !== optionsLockup[val].value));
|
|
18653
|
+
onRemove?.(optionsLockup[val].value);
|
|
18654
|
+
} else if (_value.length < maxValues) {
|
|
18655
|
+
setValue([..._value, optionsLockup[val].value]);
|
|
18656
|
+
}
|
|
18657
|
+
},
|
|
18658
|
+
...comboboxProps,
|
|
18659
|
+
children: [
|
|
18660
|
+
/* @__PURE__ */ jsxRuntime.jsx(Combobox.DropdownTarget, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18661
|
+
PillsInput,
|
|
18662
|
+
{
|
|
18663
|
+
...styleProps,
|
|
18664
|
+
__staticSelector: "MultiSelect",
|
|
18665
|
+
classNames: resolvedClassNames,
|
|
18666
|
+
styles: resolvedStyles,
|
|
18667
|
+
unstyled,
|
|
18668
|
+
size: size2,
|
|
18669
|
+
className,
|
|
18670
|
+
style,
|
|
18671
|
+
variant,
|
|
18672
|
+
disabled,
|
|
18673
|
+
radius,
|
|
18674
|
+
__defaultRightSection: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18675
|
+
Combobox.Chevron,
|
|
18676
|
+
{
|
|
18677
|
+
size: size2,
|
|
18678
|
+
error: error2,
|
|
18679
|
+
unstyled,
|
|
18680
|
+
color: chevronColor
|
|
18681
|
+
}
|
|
18682
|
+
),
|
|
18683
|
+
__clearSection: clearButton,
|
|
18684
|
+
__clearable: _clearable,
|
|
18685
|
+
rightSection,
|
|
18686
|
+
rightSectionPointerEvents: rightSectionPointerEvents || "none",
|
|
18687
|
+
rightSectionWidth,
|
|
18688
|
+
rightSectionProps,
|
|
18689
|
+
leftSection,
|
|
18690
|
+
leftSectionWidth,
|
|
18691
|
+
leftSectionPointerEvents,
|
|
18692
|
+
leftSectionProps,
|
|
18693
|
+
inputContainer,
|
|
18694
|
+
inputWrapperOrder,
|
|
18695
|
+
withAsterisk,
|
|
18696
|
+
labelProps,
|
|
18697
|
+
descriptionProps,
|
|
18698
|
+
errorProps,
|
|
18699
|
+
wrapperProps,
|
|
18700
|
+
description,
|
|
18701
|
+
label,
|
|
18702
|
+
error: error2,
|
|
18703
|
+
withErrorStyles,
|
|
18704
|
+
__stylesApiProps: {
|
|
18705
|
+
...props,
|
|
18706
|
+
rightSectionPointerEvents: rightSectionPointerEvents || "none",
|
|
18707
|
+
multiline: true
|
|
18708
|
+
},
|
|
18709
|
+
pointer: !searchable,
|
|
18710
|
+
onClick: () => searchable ? combobox.openDropdown() : combobox.toggleDropdown(),
|
|
18711
|
+
"data-expanded": combobox.dropdownOpened || void 0,
|
|
18712
|
+
id: _id,
|
|
18713
|
+
required: required2,
|
|
18714
|
+
mod,
|
|
18715
|
+
attributes,
|
|
18716
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18717
|
+
Pill.Group,
|
|
18718
|
+
{
|
|
18719
|
+
attributes,
|
|
18720
|
+
disabled,
|
|
18721
|
+
unstyled,
|
|
18722
|
+
...getStyles2("pillsList", { style: pillsListStyle }),
|
|
18723
|
+
children: [
|
|
18724
|
+
values2,
|
|
18725
|
+
/* @__PURE__ */ jsxRuntime.jsx(Combobox.EventsTarget, { autoComplete, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18726
|
+
PillsInput.Field,
|
|
18727
|
+
{
|
|
18728
|
+
...rest,
|
|
18729
|
+
ref,
|
|
18730
|
+
id: _id,
|
|
18731
|
+
placeholder,
|
|
18732
|
+
type: !searchable && !placeholder ? "hidden" : "visible",
|
|
18733
|
+
...getStyles2("inputField"),
|
|
18734
|
+
unstyled,
|
|
18735
|
+
onFocus: (event) => {
|
|
18736
|
+
onFocus?.(event);
|
|
18737
|
+
openOnFocus && searchable && combobox.openDropdown();
|
|
18738
|
+
},
|
|
18739
|
+
onBlur: (event) => {
|
|
18740
|
+
onBlur?.(event);
|
|
18741
|
+
combobox.closeDropdown();
|
|
18742
|
+
handleSearchChange("");
|
|
18743
|
+
},
|
|
18744
|
+
onKeyDown: handleInputKeydown,
|
|
18745
|
+
value: _searchValue,
|
|
18746
|
+
onChange: (event) => {
|
|
18747
|
+
handleSearchChange(event.currentTarget.value);
|
|
18748
|
+
searchable && combobox.openDropdown();
|
|
18749
|
+
selectFirstOptionOnChange && combobox.selectFirstOption();
|
|
18750
|
+
},
|
|
18751
|
+
disabled,
|
|
18752
|
+
readOnly: readOnly || !searchable,
|
|
18753
|
+
pointer: !searchable
|
|
18754
|
+
}
|
|
18755
|
+
) })
|
|
18756
|
+
]
|
|
18757
|
+
}
|
|
18758
|
+
)
|
|
18759
|
+
}
|
|
18760
|
+
) }),
|
|
18761
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18762
|
+
OptionsDropdown,
|
|
18763
|
+
{
|
|
18764
|
+
data: hidePickedOptions ? filteredData : parsedData,
|
|
18765
|
+
hidden: readOnly || disabled,
|
|
18766
|
+
filter,
|
|
18767
|
+
search: _searchValue,
|
|
18768
|
+
limit,
|
|
18769
|
+
hiddenWhenEmpty: !nothingFoundMessage,
|
|
18770
|
+
withScrollArea,
|
|
18771
|
+
maxDropdownHeight,
|
|
18772
|
+
filterOptions: searchable,
|
|
18773
|
+
value: _value,
|
|
18774
|
+
checkIconPosition,
|
|
18775
|
+
withCheckIcon,
|
|
18776
|
+
withAlignedLabels,
|
|
18777
|
+
nothingFoundMessage,
|
|
18778
|
+
unstyled,
|
|
18779
|
+
labelId: label ? `${_id}-label` : void 0,
|
|
18780
|
+
"aria-label": label ? void 0 : others["aria-label"],
|
|
18781
|
+
renderOption,
|
|
18782
|
+
scrollAreaProps
|
|
18783
|
+
}
|
|
18784
|
+
)
|
|
18785
|
+
]
|
|
18786
|
+
}
|
|
18787
|
+
),
|
|
18788
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18789
|
+
Combobox.HiddenInput,
|
|
18790
|
+
{
|
|
18791
|
+
name,
|
|
18792
|
+
valuesDivider: hiddenInputValuesDivider,
|
|
18793
|
+
value: _value,
|
|
18794
|
+
form,
|
|
18795
|
+
disabled,
|
|
18796
|
+
...hiddenInputProps
|
|
18797
|
+
}
|
|
18798
|
+
)
|
|
18799
|
+
] });
|
|
18800
|
+
});
|
|
18801
|
+
MultiSelect$1.classes = { ...InputBase.classes, ...Combobox.classes };
|
|
18802
|
+
MultiSelect$1.displayName = "@mantine/core/MultiSelect";
|
|
18166
18803
|
var classes$r = { "root": "m_f0824112", "description": "m_57492dcc", "section": "m_690090b5", "label": "m_1f6ac4c4", "body": "m_f07af9d2", "children": "m_e17b862f", "chevron": "m_1fd8a00b" };
|
|
18167
18804
|
const varsResolver$o = createVarsResolver(
|
|
18168
18805
|
(theme2, { variant, color, childrenOffset, autoContrast }) => {
|
|
@@ -42514,6 +43151,118 @@ function ListRow({
|
|
|
42514
43151
|
}
|
|
42515
43152
|
);
|
|
42516
43153
|
}
|
|
43154
|
+
const horizontalPillsListClassName = "fairmint-multiselect-pills-list";
|
|
43155
|
+
function mergeClassName(...classes2) {
|
|
43156
|
+
return classes2.filter(Boolean).join(" ") || void 0;
|
|
43157
|
+
}
|
|
43158
|
+
function appendHorizontalPillsListClass(classNames2) {
|
|
43159
|
+
if (typeof classNames2 === "function") {
|
|
43160
|
+
return (theme2, props, ctx) => {
|
|
43161
|
+
const resolvedClassNames = classNames2(theme2, props, ctx);
|
|
43162
|
+
return {
|
|
43163
|
+
...resolvedClassNames,
|
|
43164
|
+
pillsList: mergeClassName(horizontalPillsListClassName, resolvedClassNames?.pillsList)
|
|
43165
|
+
};
|
|
43166
|
+
};
|
|
43167
|
+
}
|
|
43168
|
+
return {
|
|
43169
|
+
...classNames2,
|
|
43170
|
+
pillsList: mergeClassName(horizontalPillsListClassName, classNames2?.pillsList)
|
|
43171
|
+
};
|
|
43172
|
+
}
|
|
43173
|
+
const MultiSelect = React.forwardRef(
|
|
43174
|
+
({ classNames: classNames2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
43175
|
+
MultiSelect$1,
|
|
43176
|
+
{
|
|
43177
|
+
size: "md",
|
|
43178
|
+
classNames: appendHorizontalPillsListClass(classNames2),
|
|
43179
|
+
...props,
|
|
43180
|
+
ref
|
|
43181
|
+
}
|
|
43182
|
+
)
|
|
43183
|
+
);
|
|
43184
|
+
MultiSelect.displayName = "MultiSelect";
|
|
43185
|
+
const multiSelectSearchDefaultFilter = ({
|
|
43186
|
+
options,
|
|
43187
|
+
search,
|
|
43188
|
+
limit
|
|
43189
|
+
}) => {
|
|
43190
|
+
const normalizedSearch = search.trim().toLowerCase();
|
|
43191
|
+
const maxResults = limit ?? Number.POSITIVE_INFINITY;
|
|
43192
|
+
if (maxResults <= 0) return [];
|
|
43193
|
+
const filteredOptions = [];
|
|
43194
|
+
let resultCount = 0;
|
|
43195
|
+
for (const option of options) {
|
|
43196
|
+
if ("items" in option) {
|
|
43197
|
+
const groupItems = option.items.filter(
|
|
43198
|
+
(item) => multiSelectSearchOptionMatches(item, normalizedSearch)
|
|
43199
|
+
);
|
|
43200
|
+
if (groupItems.length > 0) {
|
|
43201
|
+
const remaining = maxResults - resultCount;
|
|
43202
|
+
filteredOptions.push({ ...option, items: groupItems.slice(0, remaining) });
|
|
43203
|
+
resultCount += Math.min(groupItems.length, remaining);
|
|
43204
|
+
}
|
|
43205
|
+
} else if (multiSelectSearchOptionMatches(option, normalizedSearch)) {
|
|
43206
|
+
filteredOptions.push(option);
|
|
43207
|
+
resultCount += 1;
|
|
43208
|
+
}
|
|
43209
|
+
if (resultCount >= maxResults) break;
|
|
43210
|
+
}
|
|
43211
|
+
return filteredOptions;
|
|
43212
|
+
};
|
|
43213
|
+
function multiSelectSearchOptionMatches(option, search) {
|
|
43214
|
+
if (!search) return true;
|
|
43215
|
+
const description = "description" in option ? String(option.description ?? "") : "";
|
|
43216
|
+
const searchText = "searchText" in option ? String(option.searchText ?? "") : "";
|
|
43217
|
+
return [option.label, option.value, description, searchText].some(
|
|
43218
|
+
(value) => value.toLowerCase().includes(search)
|
|
43219
|
+
);
|
|
43220
|
+
}
|
|
43221
|
+
const MultiSelectSearch = React.forwardRef(
|
|
43222
|
+
({
|
|
43223
|
+
clearable = true,
|
|
43224
|
+
data,
|
|
43225
|
+
filter = multiSelectSearchDefaultFilter,
|
|
43226
|
+
maxDropdownHeight = 320,
|
|
43227
|
+
nothingFoundMessage = "No results",
|
|
43228
|
+
renderOption,
|
|
43229
|
+
searchable = true,
|
|
43230
|
+
size: size2 = "md",
|
|
43231
|
+
...props
|
|
43232
|
+
}, ref) => {
|
|
43233
|
+
const descriptionsByValue = React.useMemo(
|
|
43234
|
+
() => new Map(
|
|
43235
|
+
flattenMultiSelectSearchOptions(data).map((option) => [option.value, option.description])
|
|
43236
|
+
),
|
|
43237
|
+
[data]
|
|
43238
|
+
);
|
|
43239
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43240
|
+
MultiSelect,
|
|
43241
|
+
{
|
|
43242
|
+
ref,
|
|
43243
|
+
clearable,
|
|
43244
|
+
data,
|
|
43245
|
+
filter,
|
|
43246
|
+
maxDropdownHeight,
|
|
43247
|
+
nothingFoundMessage,
|
|
43248
|
+
renderOption: renderOption ?? (({ option }) => {
|
|
43249
|
+
const description = descriptionsByValue.get(option.value);
|
|
43250
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: 2, children: [
|
|
43251
|
+
/* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 700, size: "sm", children: option.label }),
|
|
43252
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(Text, { c: colors.neutral, size: "xs", children: description }) : null
|
|
43253
|
+
] });
|
|
43254
|
+
}),
|
|
43255
|
+
searchable,
|
|
43256
|
+
size: size2,
|
|
43257
|
+
...props
|
|
43258
|
+
}
|
|
43259
|
+
);
|
|
43260
|
+
}
|
|
43261
|
+
);
|
|
43262
|
+
MultiSelectSearch.displayName = "MultiSelectSearch";
|
|
43263
|
+
function flattenMultiSelectSearchOptions(data) {
|
|
43264
|
+
return data.flatMap((option) => "items" in option ? option.items : option);
|
|
43265
|
+
}
|
|
42517
43266
|
function Percent({ value, decimals = 2, ...rest }) {
|
|
42518
43267
|
return /* @__PURE__ */ jsxRuntime.jsx(Text, { component: "span", ...rest, children: formatPercent(value, decimals) });
|
|
42519
43268
|
}
|
|
@@ -44267,6 +45016,526 @@ function EquityGrantCard({
|
|
|
44267
45016
|
}
|
|
44268
45017
|
);
|
|
44269
45018
|
}
|
|
45019
|
+
const DEFAULT_RIBBON_CONFIG = {
|
|
45020
|
+
baseline: 0.82,
|
|
45021
|
+
xEndStagger: 9e-3,
|
|
45022
|
+
xEndDraw: [0.84, 0.849, 0.858, 0.867, 0.876],
|
|
45023
|
+
xEndCurve: 0.914,
|
|
45024
|
+
xStart: [0.05, 0.19, 0.34, 0.5, 0.66],
|
|
45025
|
+
kArr: [1.7, 2.4, 3.1, 3.9, 4.9],
|
|
45026
|
+
V: [0.082, 0.102, 0.132, 0.172, 0.21],
|
|
45027
|
+
vMin: [0.038, 0.04, 0.042, 0.044, 0.046],
|
|
45028
|
+
xStem: [0.05, 0.04, 0.035, 0.03, 0.025],
|
|
45029
|
+
labelX: [0.08, 0.24, 0.4, 0.56, 0.8],
|
|
45030
|
+
labelAboveGap: [0.034, 0.03, 0.028, 0.024],
|
|
45031
|
+
labelLeftGap: 0.055,
|
|
45032
|
+
labelLiquidityGap: 0.016,
|
|
45033
|
+
labelNudge: [
|
|
45034
|
+
[0, 0],
|
|
45035
|
+
[0, 0],
|
|
45036
|
+
[0, 0],
|
|
45037
|
+
[0, 0],
|
|
45038
|
+
[0, -0.012]
|
|
45039
|
+
],
|
|
45040
|
+
samples: 72
|
|
45041
|
+
};
|
|
45042
|
+
const MARK_RIBBON_RIGHT_EDGE = 0.936;
|
|
45043
|
+
const MARK_FIT_HORIZONTAL_COMPRESS = 0.78;
|
|
45044
|
+
const MARK_RIBBON_CONFIG = {
|
|
45045
|
+
...DEFAULT_RIBBON_CONFIG,
|
|
45046
|
+
baseline: 0.97,
|
|
45047
|
+
xEndDraw: [
|
|
45048
|
+
MARK_RIBBON_RIGHT_EDGE,
|
|
45049
|
+
MARK_RIBBON_RIGHT_EDGE,
|
|
45050
|
+
MARK_RIBBON_RIGHT_EDGE,
|
|
45051
|
+
MARK_RIBBON_RIGHT_EDGE,
|
|
45052
|
+
MARK_RIBBON_RIGHT_EDGE
|
|
45053
|
+
],
|
|
45054
|
+
xEndCurve: 0.94,
|
|
45055
|
+
xStart: [0.08, 0.2, 0.32, 0.44, 0.56],
|
|
45056
|
+
xStem: [0.028, 0.022, 0.018, 0.015, 0.012]
|
|
45057
|
+
};
|
|
45058
|
+
function labelGapAbove(i, config2) {
|
|
45059
|
+
const lastBand = config2.xStart.length - 1;
|
|
45060
|
+
if (i === lastBand) return config2.labelLiquidityGap;
|
|
45061
|
+
return config2.labelAboveGap[i] ?? config2.labelLiquidityGap;
|
|
45062
|
+
}
|
|
45063
|
+
function mergeBounds(a, b) {
|
|
45064
|
+
return {
|
|
45065
|
+
minX: Math.min(a.minX, b.minX),
|
|
45066
|
+
minY: Math.min(a.minY, b.minY),
|
|
45067
|
+
maxX: Math.max(a.maxX, b.maxX),
|
|
45068
|
+
maxY: Math.max(a.maxY, b.maxY)
|
|
45069
|
+
};
|
|
45070
|
+
}
|
|
45071
|
+
function transformPathD(d, scaleX, scaleY, tx, ty) {
|
|
45072
|
+
return d.replace(/(-?[\d.]+),(-?[\d.]+)/g, (_, x, y) => {
|
|
45073
|
+
const px2 = Number(x) * scaleX + tx;
|
|
45074
|
+
const py = Number(y) * scaleY + ty;
|
|
45075
|
+
return `${px2.toFixed(1)},${py.toFixed(1)}`;
|
|
45076
|
+
});
|
|
45077
|
+
}
|
|
45078
|
+
function computeMarkFitTransform(bounds, width, height, paddingRatio) {
|
|
45079
|
+
const pad = paddingRatio * Math.min(width, height);
|
|
45080
|
+
const bw = bounds.maxX - bounds.minX;
|
|
45081
|
+
const bh = bounds.maxY - bounds.minY;
|
|
45082
|
+
if (bw <= 0 || bh <= 0) {
|
|
45083
|
+
return { scaleX: 1, scaleY: 1, tx: 0, ty: 0 };
|
|
45084
|
+
}
|
|
45085
|
+
const scaleY = (height - pad * 2) / bh;
|
|
45086
|
+
let scaleX = scaleY * MARK_FIT_HORIZONTAL_COMPRESS;
|
|
45087
|
+
if (bw * scaleX > width - pad * 2) {
|
|
45088
|
+
scaleX = (width - pad * 2) / bw;
|
|
45089
|
+
}
|
|
45090
|
+
const tx = (width - bw * scaleX) / 2 - bounds.minX * scaleX;
|
|
45091
|
+
const ty = (height - bh * scaleY) / 2 - bounds.minY * scaleY;
|
|
45092
|
+
return { scaleX, scaleY, tx, ty };
|
|
45093
|
+
}
|
|
45094
|
+
function valAt(i, xf, config2) {
|
|
45095
|
+
const { xStart, xEndCurve, kArr, V, vMin, xStem } = config2;
|
|
45096
|
+
const xLo = xStart[i] - xStem[i];
|
|
45097
|
+
if (xf < xLo || xf > xEndCurve) return 0;
|
|
45098
|
+
if (xf < xStart[i]) return vMin[i];
|
|
45099
|
+
const u = (xf - xStart[i]) / (xEndCurve - xStart[i]);
|
|
45100
|
+
const grow = (Math.exp(kArr[i] * u) - 1) / (Math.exp(kArr[i]) - 1);
|
|
45101
|
+
return vMin[i] + (V[i] - vMin[i]) * grow;
|
|
45102
|
+
}
|
|
45103
|
+
function cumBelow(i, xf, config2) {
|
|
45104
|
+
let sum = 0;
|
|
45105
|
+
for (let j = 0; j < i; j++) sum += valAt(j, xf, config2);
|
|
45106
|
+
return sum;
|
|
45107
|
+
}
|
|
45108
|
+
function buildBandPath(i, width, height, config2) {
|
|
45109
|
+
const { xStart, xEndCurve, xStem, baseline } = config2;
|
|
45110
|
+
const samples = Math.max(1, Math.floor(config2.samples));
|
|
45111
|
+
const xLo = xStart[i] - xStem[i];
|
|
45112
|
+
const top = [];
|
|
45113
|
+
const bot = [];
|
|
45114
|
+
for (let s = 0; s <= samples; s++) {
|
|
45115
|
+
const xf = xLo + (xEndCurve - xLo) * (s / samples);
|
|
45116
|
+
const below = cumBelow(i, xf, config2);
|
|
45117
|
+
const v = valAt(i, xf, config2);
|
|
45118
|
+
const x = xf * width;
|
|
45119
|
+
top.push([x, (baseline - below - v) * height]);
|
|
45120
|
+
bot.push([x, (baseline - below) * height]);
|
|
45121
|
+
}
|
|
45122
|
+
let minX = Number.POSITIVE_INFINITY;
|
|
45123
|
+
let minY = Number.POSITIVE_INFINITY;
|
|
45124
|
+
let maxX = Number.NEGATIVE_INFINITY;
|
|
45125
|
+
let maxY = Number.NEGATIVE_INFINITY;
|
|
45126
|
+
for (const [x, y] of [...top, ...bot]) {
|
|
45127
|
+
minX = Math.min(minX, x);
|
|
45128
|
+
minY = Math.min(minY, y);
|
|
45129
|
+
maxX = Math.max(maxX, x);
|
|
45130
|
+
maxY = Math.max(maxY, y);
|
|
45131
|
+
}
|
|
45132
|
+
let d = `M${top[0][0].toFixed(1)},${top[0][1].toFixed(1)}`;
|
|
45133
|
+
for (let s = 1; s <= samples; s++) {
|
|
45134
|
+
d += ` L${top[s][0].toFixed(1)},${top[s][1].toFixed(1)}`;
|
|
45135
|
+
}
|
|
45136
|
+
d += ` L${bot[samples][0].toFixed(1)},${bot[samples][1].toFixed(1)}`;
|
|
45137
|
+
for (let s = samples - 1; s >= 0; s--) {
|
|
45138
|
+
d += ` L${bot[s][0].toFixed(1)},${bot[s][1].toFixed(1)}`;
|
|
45139
|
+
}
|
|
45140
|
+
return { d: `${d} Z`, bounds: { minX, minY, maxX, maxY } };
|
|
45141
|
+
}
|
|
45142
|
+
function buildLabel(i, text, _width, _height, config2, offsetXNorm) {
|
|
45143
|
+
const { baseline, xStart, xStem, labelNudge } = config2;
|
|
45144
|
+
const xf = xStart[i] - xStem[i] + offsetXNorm;
|
|
45145
|
+
const below = cumBelow(i, xf, config2);
|
|
45146
|
+
const v = valAt(i, xf, config2);
|
|
45147
|
+
const yTop = baseline - below - v;
|
|
45148
|
+
const [nudgeX, nudgeY] = labelNudge[i];
|
|
45149
|
+
return {
|
|
45150
|
+
index: i,
|
|
45151
|
+
text,
|
|
45152
|
+
leftPct: (xf + nudgeX) * 100,
|
|
45153
|
+
topPct: (yTop - labelGapAbove(i, config2) + nudgeY) * 100,
|
|
45154
|
+
placement: "start"
|
|
45155
|
+
};
|
|
45156
|
+
}
|
|
45157
|
+
function clampBandCount(count2, max2 = 5) {
|
|
45158
|
+
if (!Number.isFinite(count2)) return max2;
|
|
45159
|
+
return Math.min(max2, Math.max(1, Math.round(count2)));
|
|
45160
|
+
}
|
|
45161
|
+
function buildRibbonGeometry(width, height, labels, config2 = DEFAULT_RIBBON_CONFIG, bandCount = config2.xStart.length, layout = "hero") {
|
|
45162
|
+
const totalBands = config2.xStart.length;
|
|
45163
|
+
const visibleBands = clampBandCount(bandCount, totalBands);
|
|
45164
|
+
if (width <= 0 || height <= 0) {
|
|
45165
|
+
return null;
|
|
45166
|
+
}
|
|
45167
|
+
const paths = [];
|
|
45168
|
+
const clipWidthPx = [];
|
|
45169
|
+
let bounds = null;
|
|
45170
|
+
for (let i = 0; i < visibleBands; i++) {
|
|
45171
|
+
const band = buildBandPath(i, width, height, config2);
|
|
45172
|
+
paths.push(band.d);
|
|
45173
|
+
clipWidthPx.push(config2.xEndDraw[i] * width);
|
|
45174
|
+
bounds = bounds ? mergeBounds(bounds, band.bounds) : band.bounds;
|
|
45175
|
+
}
|
|
45176
|
+
let fitPaths = paths;
|
|
45177
|
+
let fitClips = clipWidthPx;
|
|
45178
|
+
let offsetXNorm = 0;
|
|
45179
|
+
if (bounds) {
|
|
45180
|
+
if (layout === "mark") {
|
|
45181
|
+
const { scaleX, scaleY, tx, ty } = computeMarkFitTransform(bounds, width, height, 0.05);
|
|
45182
|
+
fitPaths = paths.map((p) => transformPathD(p, scaleX, scaleY, tx, ty));
|
|
45183
|
+
const alignedClipRight = MARK_RIBBON_RIGHT_EDGE * width * scaleX + tx;
|
|
45184
|
+
fitClips = clipWidthPx.map(() => alignedClipRight);
|
|
45185
|
+
offsetXNorm = tx / width;
|
|
45186
|
+
} else if (layout === "hero") {
|
|
45187
|
+
const bw = bounds.maxX - bounds.minX;
|
|
45188
|
+
const tx = (width - bw) / 2 - bounds.minX;
|
|
45189
|
+
fitPaths = paths.map((p) => transformPathD(p, 1, 1, tx, 0));
|
|
45190
|
+
fitClips = clipWidthPx.map((w) => w + tx);
|
|
45191
|
+
offsetXNorm = tx / width;
|
|
45192
|
+
}
|
|
45193
|
+
}
|
|
45194
|
+
const paddedLabels = Array.from({ length: visibleBands }, (_, i) => labels[i] ?? "");
|
|
45195
|
+
const builtLabels = paddedLabels.map(
|
|
45196
|
+
(text, i) => buildLabel(i, text, width, height, config2, offsetXNorm)
|
|
45197
|
+
);
|
|
45198
|
+
return {
|
|
45199
|
+
paths: fitPaths,
|
|
45200
|
+
clipWidthPx: fitClips,
|
|
45201
|
+
labels: builtLabels,
|
|
45202
|
+
width,
|
|
45203
|
+
height,
|
|
45204
|
+
bandCount: visibleBands
|
|
45205
|
+
};
|
|
45206
|
+
}
|
|
45207
|
+
function easePower1InOut(t) {
|
|
45208
|
+
const p = Math.max(0, Math.min(1, t));
|
|
45209
|
+
return p < 0.5 ? 2 * p * p : 1 - (-2 * p + 2) ** 2 / 2;
|
|
45210
|
+
}
|
|
45211
|
+
function easePower2Out(t) {
|
|
45212
|
+
const p = Math.max(0, Math.min(1, t));
|
|
45213
|
+
return 1 - (1 - p) ** 2;
|
|
45214
|
+
}
|
|
45215
|
+
function ribbonLabelRevealTime(labelIndex, duration2, config2 = DEFAULT_RIBBON_CONFIG) {
|
|
45216
|
+
return Math.min(duration2, config2.labelX[labelIndex] * duration2 + 0.25);
|
|
45217
|
+
}
|
|
45218
|
+
const ribbonChartLabelDefault = "#FFFFFF";
|
|
45219
|
+
const ribbonChartSurface = {
|
|
45220
|
+
white: "#FFFFFF",
|
|
45221
|
+
black: "#0D1023"
|
|
45222
|
+
};
|
|
45223
|
+
const ribbonBandGradientStops = [
|
|
45224
|
+
{ idSuffix: "0", start: "#33198C", end: "#5B2BF0" },
|
|
45225
|
+
{ idSuffix: "1", start: "#4A22C8", end: "#7A3DF5" },
|
|
45226
|
+
{ idSuffix: "2", start: "#6A32E8", end: "#9A6BFF" },
|
|
45227
|
+
{ idSuffix: "3", start: "#8A52F5", end: "#BD84FF" },
|
|
45228
|
+
{ idSuffix: "4", start: "#A86BFF", end: "#E6ABFF" }
|
|
45229
|
+
];
|
|
45230
|
+
const RIBBON_BACKGROUND_CLASS = {
|
|
45231
|
+
white: "fairmint-equity-ribbon--bg-white",
|
|
45232
|
+
black: "fairmint-equity-ribbon--bg-black",
|
|
45233
|
+
transparent: "fairmint-equity-ribbon--bg-transparent"
|
|
45234
|
+
};
|
|
45235
|
+
const DEFAULT_RIBBON_LABELS = [
|
|
45236
|
+
"Cap Table",
|
|
45237
|
+
"Fundraising",
|
|
45238
|
+
"Grants",
|
|
45239
|
+
"Secondaries",
|
|
45240
|
+
"Liquidity"
|
|
45241
|
+
];
|
|
45242
|
+
const RIBBON_BAND_GRADIENTS = ribbonBandGradientStops;
|
|
45243
|
+
const RIBBON_SURFACE_CSS_VARS = {
|
|
45244
|
+
"--fairmint-ribbon-surface-white": ribbonChartSurface.white,
|
|
45245
|
+
"--fairmint-ribbon-surface-black": ribbonChartSurface.black
|
|
45246
|
+
};
|
|
45247
|
+
const REVEAL_DURATION_MS = 2300;
|
|
45248
|
+
const REVEAL_DELAY_MS = 420;
|
|
45249
|
+
function labelAnchorTransform(_placement, yOffsetPx) {
|
|
45250
|
+
return `translate(0, calc(-100% + ${yOffsetPx}px))`;
|
|
45251
|
+
}
|
|
45252
|
+
function labelClassName(_placement) {
|
|
45253
|
+
return "fairmint-equity-ribbon__label fairmint-equity-ribbon__label--start";
|
|
45254
|
+
}
|
|
45255
|
+
function resolveGradients(gradients, bandCount) {
|
|
45256
|
+
const source = gradients ?? RIBBON_BAND_GRADIENTS;
|
|
45257
|
+
return Array.from({ length: bandCount }, (_, i) => {
|
|
45258
|
+
const fallback = RIBBON_BAND_GRADIENTS[i] ?? RIBBON_BAND_GRADIENTS[RIBBON_BAND_GRADIENTS.length - 1];
|
|
45259
|
+
const g = source[i] ?? fallback;
|
|
45260
|
+
return {
|
|
45261
|
+
idSuffix: String(i),
|
|
45262
|
+
start: g.start,
|
|
45263
|
+
end: g.end
|
|
45264
|
+
};
|
|
45265
|
+
});
|
|
45266
|
+
}
|
|
45267
|
+
function EquityRibbonChart({
|
|
45268
|
+
labels = DEFAULT_RIBBON_LABELS,
|
|
45269
|
+
bandCount: bandCountProp = 5,
|
|
45270
|
+
gradients,
|
|
45271
|
+
animated = true,
|
|
45272
|
+
hideLabels = false,
|
|
45273
|
+
background = "transparent",
|
|
45274
|
+
layout = "hero",
|
|
45275
|
+
labelColor = ribbonChartLabelDefault,
|
|
45276
|
+
className,
|
|
45277
|
+
height,
|
|
45278
|
+
style
|
|
45279
|
+
}) {
|
|
45280
|
+
const bandCount = clampBandCount(bandCountProp);
|
|
45281
|
+
const labelsKey = labels.join("");
|
|
45282
|
+
const labelsRef = React.useRef(labels);
|
|
45283
|
+
labelsRef.current = labels;
|
|
45284
|
+
const bandGradients = resolveGradients(gradients, bandCount);
|
|
45285
|
+
const uid = React.useId().replace(/:/g, "");
|
|
45286
|
+
const rootRef = React.useRef(null);
|
|
45287
|
+
const playedRef = React.useRef(false);
|
|
45288
|
+
const rafRef = React.useRef(null);
|
|
45289
|
+
const revealGenerationRef = React.useRef(0);
|
|
45290
|
+
const revealScheduleRef = React.useRef(0);
|
|
45291
|
+
const cancelRevealAnimation = React.useCallback(() => {
|
|
45292
|
+
revealGenerationRef.current += 1;
|
|
45293
|
+
if (rafRef.current !== null) {
|
|
45294
|
+
cancelAnimationFrame(rafRef.current);
|
|
45295
|
+
rafRef.current = null;
|
|
45296
|
+
}
|
|
45297
|
+
}, []);
|
|
45298
|
+
const [geometry, setGeometry] = React.useState(null);
|
|
45299
|
+
const [revealWidth, setRevealWidth] = React.useState(0);
|
|
45300
|
+
const [labelStyles, setLabelStyles] = React.useState(
|
|
45301
|
+
() => labels.slice(0, bandCount).map(() => ({ opacity: 0, transform: "translateY(6px)" }))
|
|
45302
|
+
);
|
|
45303
|
+
const rebuild = React.useCallback(() => {
|
|
45304
|
+
cancelRevealAnimation();
|
|
45305
|
+
const el = rootRef.current;
|
|
45306
|
+
if (!el) return;
|
|
45307
|
+
const width = el.clientWidth;
|
|
45308
|
+
const heightPx = el.clientHeight;
|
|
45309
|
+
const config2 = layout === "mark" ? MARK_RIBBON_CONFIG : void 0;
|
|
45310
|
+
const built = buildRibbonGeometry(
|
|
45311
|
+
width,
|
|
45312
|
+
heightPx,
|
|
45313
|
+
labelsRef.current,
|
|
45314
|
+
config2,
|
|
45315
|
+
bandCount,
|
|
45316
|
+
layout
|
|
45317
|
+
);
|
|
45318
|
+
setGeometry(built);
|
|
45319
|
+
if (built && (playedRef.current || !animated)) {
|
|
45320
|
+
setRevealWidth(built.width);
|
|
45321
|
+
setLabelStyles(
|
|
45322
|
+
built.labels.map((lbl) => ({
|
|
45323
|
+
opacity: 1,
|
|
45324
|
+
transform: labelAnchorTransform(lbl.placement, 0)
|
|
45325
|
+
}))
|
|
45326
|
+
);
|
|
45327
|
+
}
|
|
45328
|
+
}, [animated, bandCount, cancelRevealAnimation, labelsKey, layout]);
|
|
45329
|
+
React.useLayoutEffect(() => {
|
|
45330
|
+
playedRef.current = false;
|
|
45331
|
+
revealScheduleRef.current = 0;
|
|
45332
|
+
cancelRevealAnimation();
|
|
45333
|
+
if (animated) {
|
|
45334
|
+
setRevealWidth(0);
|
|
45335
|
+
setLabelStyles(
|
|
45336
|
+
labelsRef.current.slice(0, bandCount).map(() => ({
|
|
45337
|
+
opacity: 0,
|
|
45338
|
+
transform: "translateY(6px)"
|
|
45339
|
+
}))
|
|
45340
|
+
);
|
|
45341
|
+
}
|
|
45342
|
+
rebuild();
|
|
45343
|
+
}, [animated, bandCount, cancelRevealAnimation, rebuild]);
|
|
45344
|
+
React.useEffect(() => () => cancelRevealAnimation(), [cancelRevealAnimation]);
|
|
45345
|
+
React.useEffect(() => {
|
|
45346
|
+
const el = rootRef.current;
|
|
45347
|
+
if (!el) return;
|
|
45348
|
+
if (typeof ResizeObserver === "undefined") {
|
|
45349
|
+
rebuild();
|
|
45350
|
+
return;
|
|
45351
|
+
}
|
|
45352
|
+
const ro = new ResizeObserver(() => {
|
|
45353
|
+
rebuild();
|
|
45354
|
+
});
|
|
45355
|
+
ro.observe(el);
|
|
45356
|
+
return () => ro.disconnect();
|
|
45357
|
+
}, [rebuild]);
|
|
45358
|
+
const runReveal = React.useCallback(() => {
|
|
45359
|
+
if (!geometry || playedRef.current) return;
|
|
45360
|
+
if (!animated) {
|
|
45361
|
+
playedRef.current = true;
|
|
45362
|
+
setRevealWidth(geometry.width);
|
|
45363
|
+
setLabelStyles(
|
|
45364
|
+
geometry.labels.map((lbl) => ({
|
|
45365
|
+
opacity: 1,
|
|
45366
|
+
transform: labelAnchorTransform(lbl.placement, 0)
|
|
45367
|
+
}))
|
|
45368
|
+
);
|
|
45369
|
+
return;
|
|
45370
|
+
}
|
|
45371
|
+
const reduceMotion = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
45372
|
+
if (reduceMotion) {
|
|
45373
|
+
playedRef.current = true;
|
|
45374
|
+
setRevealWidth(geometry.width);
|
|
45375
|
+
setLabelStyles(
|
|
45376
|
+
geometry.labels.map((lbl) => ({
|
|
45377
|
+
opacity: 1,
|
|
45378
|
+
transform: labelAnchorTransform(lbl.placement, 0)
|
|
45379
|
+
}))
|
|
45380
|
+
);
|
|
45381
|
+
return;
|
|
45382
|
+
}
|
|
45383
|
+
playedRef.current = true;
|
|
45384
|
+
setRevealWidth(0);
|
|
45385
|
+
setLabelStyles(
|
|
45386
|
+
geometry.labels.map((lbl) => ({
|
|
45387
|
+
opacity: 0,
|
|
45388
|
+
transform: labelAnchorTransform(lbl.placement, 6)
|
|
45389
|
+
}))
|
|
45390
|
+
);
|
|
45391
|
+
const generation = revealGenerationRef.current;
|
|
45392
|
+
const start = performance.now();
|
|
45393
|
+
const tick = (now) => {
|
|
45394
|
+
if (generation !== revealGenerationRef.current) return;
|
|
45395
|
+
const elapsed = now - start;
|
|
45396
|
+
const t = Math.min(1, elapsed / REVEAL_DURATION_MS);
|
|
45397
|
+
const eased = easePower1InOut(t);
|
|
45398
|
+
setRevealWidth(geometry.width * eased);
|
|
45399
|
+
setLabelStyles(
|
|
45400
|
+
geometry.labels.map((lbl, i) => {
|
|
45401
|
+
const labelStart = ribbonLabelRevealTime(i, REVEAL_DURATION_MS / 1e3) * 1e3;
|
|
45402
|
+
const labelDur = 550;
|
|
45403
|
+
const lt2 = Math.min(1, Math.max(0, (elapsed - labelStart) / labelDur));
|
|
45404
|
+
const lo = easePower2Out(lt2);
|
|
45405
|
+
const y = 6 * (1 - lo);
|
|
45406
|
+
return { opacity: lo, transform: labelAnchorTransform(lbl.placement, y) };
|
|
45407
|
+
})
|
|
45408
|
+
);
|
|
45409
|
+
if (t < 1) {
|
|
45410
|
+
rafRef.current = requestAnimationFrame(tick);
|
|
45411
|
+
} else {
|
|
45412
|
+
setRevealWidth(geometry.width);
|
|
45413
|
+
setLabelStyles(
|
|
45414
|
+
geometry.labels.map((lbl) => ({
|
|
45415
|
+
opacity: 1,
|
|
45416
|
+
transform: labelAnchorTransform(lbl.placement, 0)
|
|
45417
|
+
}))
|
|
45418
|
+
);
|
|
45419
|
+
}
|
|
45420
|
+
};
|
|
45421
|
+
rafRef.current = requestAnimationFrame(tick);
|
|
45422
|
+
}, [animated, geometry]);
|
|
45423
|
+
React.useEffect(() => {
|
|
45424
|
+
if (!geometry || playedRef.current) return;
|
|
45425
|
+
const scheduleId = ++revealScheduleRef.current;
|
|
45426
|
+
const delay = scheduleId === 1 ? REVEAL_DELAY_MS : 0;
|
|
45427
|
+
const timer = window.setTimeout(() => {
|
|
45428
|
+
if (scheduleId !== revealScheduleRef.current) return;
|
|
45429
|
+
runReveal();
|
|
45430
|
+
}, delay);
|
|
45431
|
+
return () => window.clearTimeout(timer);
|
|
45432
|
+
}, [geometry, runReveal]);
|
|
45433
|
+
const suppressLabels = hideLabels || layout === "mark";
|
|
45434
|
+
const activeGeometry = geometry && geometry.bandCount === bandCount ? geometry : null;
|
|
45435
|
+
const rootClass = [
|
|
45436
|
+
"fairmint-equity-ribbon",
|
|
45437
|
+
RIBBON_BACKGROUND_CLASS[background],
|
|
45438
|
+
layout === "mark" ? "fairmint-equity-ribbon--layout-mark" : "",
|
|
45439
|
+
suppressLabels ? "fairmint-equity-ribbon--hidden-labels" : "",
|
|
45440
|
+
className ?? ""
|
|
45441
|
+
].filter(Boolean).join(" ");
|
|
45442
|
+
const rootStyle = {
|
|
45443
|
+
...RIBBON_SURFACE_CSS_VARS,
|
|
45444
|
+
...style,
|
|
45445
|
+
...height ? { height } : {}
|
|
45446
|
+
};
|
|
45447
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: rootRef, className: rootClass, style: rootStyle, children: [
|
|
45448
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
45449
|
+
"svg",
|
|
45450
|
+
{
|
|
45451
|
+
className: "fairmint-equity-ribbon__svg",
|
|
45452
|
+
preserveAspectRatio: "none",
|
|
45453
|
+
"aria-hidden": "true",
|
|
45454
|
+
viewBox: activeGeometry ? `0 0 ${activeGeometry.width} ${activeGeometry.height}` : "0 0 1 1",
|
|
45455
|
+
children: [
|
|
45456
|
+
/* @__PURE__ */ jsxRuntime.jsxs("defs", { children: [
|
|
45457
|
+
bandGradients.map((g) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45458
|
+
"linearGradient",
|
|
45459
|
+
{
|
|
45460
|
+
id: `${uid}-bg${g.idSuffix}`,
|
|
45461
|
+
x1: "0",
|
|
45462
|
+
y1: "1",
|
|
45463
|
+
x2: "1",
|
|
45464
|
+
y2: "0",
|
|
45465
|
+
children: [
|
|
45466
|
+
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "0", stopColor: g.start }),
|
|
45467
|
+
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "1", stopColor: g.end })
|
|
45468
|
+
]
|
|
45469
|
+
},
|
|
45470
|
+
g.idSuffix
|
|
45471
|
+
)),
|
|
45472
|
+
/* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: `${uid}-revealclip`, children: /* @__PURE__ */ jsxRuntime.jsx("rect", { x: 0, y: -1, width: revealWidth, height: (activeGeometry?.height ?? 1) + 2 }) }),
|
|
45473
|
+
activeGeometry ? activeGeometry.paths.map((_, i) => /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: `${uid}-bandclip${i}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
45474
|
+
"rect",
|
|
45475
|
+
{
|
|
45476
|
+
x: 0,
|
|
45477
|
+
y: -1,
|
|
45478
|
+
width: activeGeometry.clipWidthPx[i],
|
|
45479
|
+
height: activeGeometry.height + 2
|
|
45480
|
+
}
|
|
45481
|
+
) }, `bandclip-${bandGradients[i].idSuffix}`)) : null
|
|
45482
|
+
] }),
|
|
45483
|
+
/* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: `url(#${uid}-revealclip)`, children: activeGeometry?.paths.map((d, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
45484
|
+
"path",
|
|
45485
|
+
{
|
|
45486
|
+
className: "fairmint-equity-ribbon__band",
|
|
45487
|
+
fill: `url(#${uid}-bg${bandGradients[i].idSuffix})`,
|
|
45488
|
+
clipPath: `url(#${uid}-bandclip${i})`,
|
|
45489
|
+
d
|
|
45490
|
+
},
|
|
45491
|
+
bandGradients[i].idSuffix
|
|
45492
|
+
)) })
|
|
45493
|
+
]
|
|
45494
|
+
}
|
|
45495
|
+
),
|
|
45496
|
+
!suppressLabels && activeGeometry?.labels.map((lbl, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
45497
|
+
"div",
|
|
45498
|
+
{
|
|
45499
|
+
className: labelClassName(lbl.placement),
|
|
45500
|
+
style: {
|
|
45501
|
+
left: `${lbl.leftPct}%`,
|
|
45502
|
+
top: `${lbl.topPct}%`,
|
|
45503
|
+
color: labelColor,
|
|
45504
|
+
opacity: labelStyles[i]?.opacity ?? 0,
|
|
45505
|
+
transform: labelStyles[i]?.transform
|
|
45506
|
+
},
|
|
45507
|
+
children: lbl.text
|
|
45508
|
+
},
|
|
45509
|
+
`${lbl.text}-${lbl.index}`
|
|
45510
|
+
))
|
|
45511
|
+
] });
|
|
45512
|
+
}
|
|
45513
|
+
function FairmintRibbonMark({
|
|
45514
|
+
size: size2 = 64,
|
|
45515
|
+
bandCount = 5,
|
|
45516
|
+
gradients,
|
|
45517
|
+
background = "black",
|
|
45518
|
+
labelColor,
|
|
45519
|
+
className,
|
|
45520
|
+
style
|
|
45521
|
+
}) {
|
|
45522
|
+
const dimension = `${size2}px`;
|
|
45523
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45524
|
+
EquityRibbonChart,
|
|
45525
|
+
{
|
|
45526
|
+
bandCount,
|
|
45527
|
+
gradients,
|
|
45528
|
+
background,
|
|
45529
|
+
labelColor,
|
|
45530
|
+
layout: "mark",
|
|
45531
|
+
animated: false,
|
|
45532
|
+
hideLabels: true,
|
|
45533
|
+
className: ["fairmint-ribbon-mark", className].filter(Boolean).join(" "),
|
|
45534
|
+
height: dimension,
|
|
45535
|
+
style: { width: dimension, height: dimension, ...style }
|
|
45536
|
+
}
|
|
45537
|
+
);
|
|
45538
|
+
}
|
|
44270
45539
|
function InvestmentCard({
|
|
44271
45540
|
companyName,
|
|
44272
45541
|
logoUrl,
|
|
@@ -45036,6 +46305,8 @@ exports.ConfidentialityBanner = ConfidentialityBanner;
|
|
|
45036
46305
|
exports.ConfirmDialog = ConfirmDialog;
|
|
45037
46306
|
exports.Container = Container;
|
|
45038
46307
|
exports.Currency = Currency;
|
|
46308
|
+
exports.DEFAULT_RIBBON_CONFIG = DEFAULT_RIBBON_CONFIG;
|
|
46309
|
+
exports.DEFAULT_RIBBON_LABELS = DEFAULT_RIBBON_LABELS;
|
|
45039
46310
|
exports.DataRow = DataRow;
|
|
45040
46311
|
exports.DataTable = DataTable;
|
|
45041
46312
|
exports.DateDisplay = DateDisplay;
|
|
@@ -45048,12 +46319,14 @@ exports.EditableSection = EditableSection;
|
|
|
45048
46319
|
exports.EmailField = EmailField;
|
|
45049
46320
|
exports.EmptyState = EmptyState;
|
|
45050
46321
|
exports.EquityGrantCard = EquityGrantCard;
|
|
46322
|
+
exports.EquityRibbonChart = EquityRibbonChart;
|
|
45051
46323
|
exports.ErrorFallback = ErrorFallback;
|
|
45052
46324
|
exports.ErrorPage = ErrorPage;
|
|
45053
46325
|
exports.EthereumAddressField = EthereumAddressField;
|
|
45054
46326
|
exports.Eyebrow = Eyebrow;
|
|
45055
46327
|
exports.FairmintLogo = FairmintLogo;
|
|
45056
46328
|
exports.FairmintProvider = FairmintProvider;
|
|
46329
|
+
exports.FairmintRibbonMark = FairmintRibbonMark;
|
|
45057
46330
|
exports.Flex = Flex;
|
|
45058
46331
|
exports.Form = Form;
|
|
45059
46332
|
exports.FormField = FormField;
|
|
@@ -45064,9 +46337,13 @@ exports.InvestorProfileCard = InvestorProfileCard;
|
|
|
45064
46337
|
exports.ListRow = ListRow;
|
|
45065
46338
|
exports.Loader = Loader;
|
|
45066
46339
|
exports.LoadingSpinner = LoadingSpinner;
|
|
46340
|
+
exports.MARK_RIBBON_CONFIG = MARK_RIBBON_CONFIG;
|
|
46341
|
+
exports.MARK_RIBBON_RIGHT_EDGE = MARK_RIBBON_RIGHT_EDGE;
|
|
45067
46342
|
exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT;
|
|
45068
46343
|
exports.Menu = Menu;
|
|
45069
46344
|
exports.Modal = Modal;
|
|
46345
|
+
exports.MultiSelect = MultiSelect;
|
|
46346
|
+
exports.MultiSelectSearch = MultiSelectSearch;
|
|
45070
46347
|
exports.NavLink = NavLink;
|
|
45071
46348
|
exports.Notification = Notification;
|
|
45072
46349
|
exports.Notifications = Notifications;
|
|
@@ -45081,6 +46358,8 @@ exports.PhoneField = PhoneField;
|
|
|
45081
46358
|
exports.PhotoCropModal = PhotoCropModal;
|
|
45082
46359
|
exports.PinInput = PinInput;
|
|
45083
46360
|
exports.Progress = Progress;
|
|
46361
|
+
exports.RIBBON_BACKGROUND_CLASS = RIBBON_BACKGROUND_CLASS;
|
|
46362
|
+
exports.RIBBON_BAND_GRADIENTS = RIBBON_BAND_GRADIENTS;
|
|
45084
46363
|
exports.RadioCard = RadioCard;
|
|
45085
46364
|
exports.RedactedValue = RedactedValue;
|
|
45086
46365
|
exports.ScrollArea = ScrollArea;
|
|
@@ -45114,6 +46393,7 @@ exports.WalletList = WalletList;
|
|
|
45114
46393
|
exports.ZERO_ETHEREUM_ADDRESS = ZERO_ETHEREUM_ADDRESS;
|
|
45115
46394
|
exports.ZipField = ZipField;
|
|
45116
46395
|
exports.brandColors = brandColors;
|
|
46396
|
+
exports.clampBandCount = clampBandCount;
|
|
45117
46397
|
exports.colors = colors;
|
|
45118
46398
|
exports.createFairmintMantineProviderProps = createFairmintMantineProviderProps;
|
|
45119
46399
|
exports.createZipSchema = createZipSchema;
|