likec4 1.39.2 → 1.39.3
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/__app__/src/mantine.js +54 -41
- package/__app__/src/style.css +1 -1
- package/dist/cli/index.mjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.CvyLKWYl.mjs → likec4.1m5-zAm4.mjs} +1443 -1437
- package/dist/shared/{likec4.0IE9MZtt.mjs → likec4.4IWCUNWH.mjs} +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +17 -17
- package/react/index.mjs +21 -21
package/__app__/src/mantine.js
CHANGED
|
@@ -361,10 +361,14 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
361
361
|
}) {
|
|
362
362
|
const [matches, setMatches] = useState(
|
|
363
363
|
getInitialValueInEffect ? initialValue : getInitialValue(query)
|
|
364
|
-
)
|
|
364
|
+
);
|
|
365
365
|
return useEffect(() => {
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
try {
|
|
367
|
+
const mediaQuery = window.matchMedia(query);
|
|
368
|
+
return setMatches(mediaQuery.matches), attachMediaListener(mediaQuery, (event) => setMatches(event.matches));
|
|
369
|
+
} catch {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
368
372
|
}, [query]), matches || !1;
|
|
369
373
|
}
|
|
370
374
|
function useColorScheme(initialValue, options) {
|
|
@@ -384,7 +388,7 @@ function useDebouncedState(defaultValue, wait, options = { leading: !1 }) {
|
|
|
384
388
|
return [value, debouncedSetValue];
|
|
385
389
|
}
|
|
386
390
|
function useDebouncedValue(value, wait, options = { leading: !1 }) {
|
|
387
|
-
const [_value, setValue] = useState(value), mountedRef = useRef(!1), timeoutRef = useRef(null), cooldownRef = useRef(!1), cancel = () => window.clearTimeout(timeoutRef.current);
|
|
391
|
+
const [_value, setValue] = useState(value), mountedRef = useRef(!1), timeoutRef = useRef(null), cooldownRef = useRef(!1), cancel = useCallback(() => window.clearTimeout(timeoutRef.current), []);
|
|
388
392
|
return useEffect(() => {
|
|
389
393
|
mountedRef.current && (!cooldownRef.current && options.leading ? (cooldownRef.current = !0, setValue(value)) : (cancel(), timeoutRef.current = window.setTimeout(() => {
|
|
390
394
|
cooldownRef.current = !1, setValue(value);
|
|
@@ -3471,7 +3475,7 @@ const ScrollAreaViewport = forwardRef(
|
|
|
3471
3475
|
}
|
|
3472
3476
|
);
|
|
3473
3477
|
ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
|
|
3474
|
-
var classes$J = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268"
|
|
3478
|
+
var classes$J = { root: "m_d57069b5", content: "m_b1336c6", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268" };
|
|
3475
3479
|
const defaultProps$R = {
|
|
3476
3480
|
scrollHideDelay: 1e3,
|
|
3477
3481
|
type: "hover",
|
|
@@ -3627,28 +3631,44 @@ const ScrollAreaAutosize = factory((props, ref) => {
|
|
|
3627
3631
|
update();
|
|
3628
3632
|
const ro = new ResizeObserver(update);
|
|
3629
3633
|
return ro.observe(el), () => ro.disconnect();
|
|
3630
|
-
}, [onOverflowChange, overflowing]), /* @__PURE__ */ jsx(Box, { ...others, ref, style: [{ display: "flex", overflow: "
|
|
3631
|
-
|
|
3634
|
+
}, [onOverflowChange, overflowing]), /* @__PURE__ */ jsx(Box, { ...others, ref, style: [{ display: "flex", overflow: "hidden" }, style], children: /* @__PURE__ */ jsx(
|
|
3635
|
+
Box,
|
|
3632
3636
|
{
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3637
|
+
style: {
|
|
3638
|
+
display: "flex",
|
|
3639
|
+
flexDirection: "column",
|
|
3640
|
+
flex: 1,
|
|
3641
|
+
overflow: "hidden",
|
|
3642
|
+
...scrollbars === "y" && { minWidth: 0 },
|
|
3643
|
+
...scrollbars === "x" && { minHeight: 0 },
|
|
3644
|
+
...scrollbars === "xy" && { minWidth: 0, minHeight: 0 },
|
|
3645
|
+
...scrollbars === !1 && { minWidth: 0, minHeight: 0 }
|
|
3646
|
+
},
|
|
3647
|
+
children: /* @__PURE__ */ jsx(
|
|
3648
|
+
ScrollArea,
|
|
3649
|
+
{
|
|
3650
|
+
classNames,
|
|
3651
|
+
styles,
|
|
3652
|
+
scrollHideDelay,
|
|
3653
|
+
scrollbarSize,
|
|
3654
|
+
type,
|
|
3655
|
+
dir,
|
|
3656
|
+
offsetScrollbars,
|
|
3657
|
+
viewportRef: combinedViewportRef,
|
|
3658
|
+
onScrollPositionChange,
|
|
3659
|
+
unstyled,
|
|
3660
|
+
variant,
|
|
3661
|
+
viewportProps,
|
|
3662
|
+
vars,
|
|
3663
|
+
scrollbars,
|
|
3664
|
+
onBottomReached,
|
|
3665
|
+
onTopReached,
|
|
3666
|
+
"data-autosize": "true",
|
|
3667
|
+
children
|
|
3668
|
+
}
|
|
3669
|
+
)
|
|
3650
3670
|
}
|
|
3651
|
-
) })
|
|
3671
|
+
) });
|
|
3652
3672
|
});
|
|
3653
3673
|
ScrollArea.classes = classes$J;
|
|
3654
3674
|
ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
|
|
@@ -4374,28 +4394,19 @@ function usePopover(options) {
|
|
|
4374
4394
|
}, floating = useFloating({
|
|
4375
4395
|
strategy: options.strategy,
|
|
4376
4396
|
placement: options.preventPositionChangeWhenVisible ? options.positionRef.current : options.position,
|
|
4377
|
-
middleware: getPopoverMiddlewares(options, () => floating, env)
|
|
4378
|
-
// Only use whileElementsMounted when elements are conditionally rendered (not keepMounted)
|
|
4379
|
-
// When keepMounted=true, elements are hidden with CSS and we need manual autoUpdate control
|
|
4380
|
-
whileElementsMounted: options.keepMounted ? void 0 : autoUpdate
|
|
4397
|
+
middleware: getPopoverMiddlewares(options, () => floating, env)
|
|
4381
4398
|
});
|
|
4382
4399
|
return useEffect(() => {
|
|
4383
|
-
if (!(!
|
|
4400
|
+
if (!(!floating.refs.reference.current || !floating.refs.floating.current) && _opened)
|
|
4384
4401
|
return autoUpdate(
|
|
4385
4402
|
floating.refs.reference.current,
|
|
4386
4403
|
floating.refs.floating.current,
|
|
4387
4404
|
floating.update
|
|
4388
4405
|
);
|
|
4389
|
-
}, [
|
|
4390
|
-
options.keepMounted,
|
|
4391
|
-
_opened,
|
|
4392
|
-
floating.refs.reference,
|
|
4393
|
-
floating.refs.floating,
|
|
4394
|
-
floating.update
|
|
4395
|
-
]), useDidUpdate(() => {
|
|
4406
|
+
}, [_opened, floating.update]), useDidUpdate(() => {
|
|
4396
4407
|
var _a;
|
|
4397
4408
|
(_a = options.onPositionChange) == null || _a.call(options, floating.placement), options.positionRef.current = floating.placement;
|
|
4398
|
-
}, [floating.placement]), useDidUpdate(() => {
|
|
4409
|
+
}, [floating.placement, options.preventPositionChangeWhenVisible]), useDidUpdate(() => {
|
|
4399
4410
|
var _a, _b;
|
|
4400
4411
|
_opened !== previouslyOpened.current && (_opened ? (_b = options.onOpen) == null || _b.call(options) : (_a = options.onClose) == null || _a.call(options)), previouslyOpened.current = _opened;
|
|
4401
4412
|
}, [_opened, options.onClose, options.onOpen]), useDidUpdate(() => {
|
|
@@ -5656,7 +5667,8 @@ const defaultProps$F = {
|
|
|
5656
5667
|
leftSectionPointerEvents: "none",
|
|
5657
5668
|
rightSectionPointerEvents: "none",
|
|
5658
5669
|
withAria: !0,
|
|
5659
|
-
withErrorStyles: !0
|
|
5670
|
+
withErrorStyles: !0,
|
|
5671
|
+
size: "sm"
|
|
5660
5672
|
}, varsResolver$z = (_, props, ctx) => ({
|
|
5661
5673
|
wrapper: {
|
|
5662
5674
|
"--input-margin-top": ctx.offsetTop ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
|
|
@@ -5873,7 +5885,8 @@ function useInputProps(component, defaultProps2, _props) {
|
|
|
5873
5885
|
}
|
|
5874
5886
|
const defaultProps$E = {
|
|
5875
5887
|
__staticSelector: "InputBase",
|
|
5876
|
-
withAria: !0
|
|
5888
|
+
withAria: !0,
|
|
5889
|
+
size: "sm"
|
|
5877
5890
|
}, InputBase = polymorphicFactory((props, ref) => {
|
|
5878
5891
|
const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$E, props);
|
|
5879
5892
|
return /* @__PURE__ */ jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsx(Input, { ...inputProps, ...others, ref }) });
|
|
@@ -6844,7 +6857,7 @@ function useCombobox({
|
|
|
6844
6857
|
};
|
|
6845
6858
|
}
|
|
6846
6859
|
const defaultProps$w = {
|
|
6847
|
-
keepMounted: !
|
|
6860
|
+
keepMounted: !0,
|
|
6848
6861
|
withinPortal: !0,
|
|
6849
6862
|
resetSelectionOnOptionHover: !1,
|
|
6850
6863
|
width: "target",
|