@likec4/diagram 1.59.3 → 1.59.4
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/LikeC4Diagram.d.ts +1 -1
- package/dist/LikeC4Diagram.js +36 -21
- package/dist/LikeC4Diagram.props.d.ts +23 -0
- package/dist/LikeC4MantineProvider.d.ts +24 -0
- package/dist/LikeC4MantineProvider.js +156 -0
- package/dist/LikeC4ProjectsOverview.js +1 -1
- package/dist/LikeC4ProjectsProvider.d.ts +17 -2
- package/dist/LikeC4Styles.d.ts +13 -3
- package/dist/LikeC4Styles.js +8 -5
- package/dist/LikeC4View.js +2 -2
- package/dist/StaticLikeC4Diagram.d.ts +1 -1
- package/dist/base/BaseXYFlow.d.ts +1 -1
- package/dist/base/BaseXYFlow.js +11 -8
- package/dist/base/const.d.ts +1 -0
- package/dist/base/const.js +3 -1
- package/dist/base-primitives/Markdown.d.ts +3 -3
- package/dist/base-primitives/compound/actionbtns.css.d.ts +3 -3
- package/dist/base-primitives/compound/actionbtns.css.js +3 -3
- package/dist/base-primitives/element/ElementTags.d.ts +2 -2
- package/dist/base-primitives/element/ElementTags.js +5 -5
- package/dist/components/EmptyBox.d.ts +3 -0
- package/dist/components/EmptyBox.js +9 -0
- package/dist/components/ErrorFallback.js +7 -6
- package/dist/components/FloatingWindow.d.ts +18 -0
- package/dist/components/FloatingWindow.js +89 -0
- package/dist/components/Link.js +7 -7
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/NavigationPanel.js +5 -6
- package/dist/components/SearchControl.css.js +10 -12
- package/dist/components/ViewIcon.d.ts +11 -0
- package/dist/components/ViewIcon.js +71 -0
- package/dist/context/DiagramEventHandlers.js +2 -1
- package/dist/context/EnsureMantine.js +3 -3
- package/dist/context/IconRenderer.d.ts +2 -1
- package/dist/context/IconRenderer.js +38 -2
- package/dist/context/LikeC4ProjectsContext.d.ts +3 -2
- package/dist/context/TagStylesContext.d.ts +9 -3
- package/dist/context/TagStylesContext.js +19 -19
- package/dist/custom/index.d.ts +3 -0
- package/dist/custom/index.js +6 -3
- package/dist/editor/applyChangesToManualLayout.js +4 -1
- package/dist/hooks/safeContext.d.ts +12 -4
- package/dist/hooks/safeContext.js +2 -2
- package/dist/hooks/useCurrentView.js +5 -5
- package/dist/hooks/useDiagram.js +1 -23
- package/dist/hooks/useDiagramCompareLayout.d.ts +4 -4
- package/dist/hooks/useDiagramCompareLayout.js +14 -16
- package/dist/hooks/useEditorActor.js +3 -5
- package/dist/hooks/useLikeC4Model.js +8 -3
- package/dist/hooks/useLikeC4Project.d.ts +4 -3
- package/dist/hooks/useOverlaysActor.d.ts +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +6 -5
- package/dist/likec4diagram/DiagramXYFlow.d.ts +5 -0
- package/dist/likec4diagram/DiagramXYFlow.js +20 -13
- package/dist/likec4diagram/custom/edges/EdgeDrifts.js +4 -4
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +1 -1
- package/dist/likec4diagram/custom/edges/edges.css.js +13 -13
- package/dist/likec4diagram/custom/nodes/NodeDrifts.js +2 -2
- package/dist/likec4diagram/custom/nodes/NodeNotes.js +4 -4
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +2 -2
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.js +8 -5
- package/dist/likec4diagram/custom/nodes/nodes.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +5 -5
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +1 -1
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +2 -0
- package/dist/likec4diagram/relationship-popover/components.d.ts +1 -1
- package/dist/likec4diagram/relationship-popover/components.js +6 -2
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +7 -2
- package/dist/likec4diagram/state/DiagramActorProvider.js +20 -4
- package/dist/likec4diagram/state/diagram-api.d.ts +2 -2
- package/dist/likec4diagram/state/diagram-api.js +3 -2
- package/dist/likec4diagram/state/machine.actions.js +9 -6
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +1 -0
- package/dist/likec4diagram/state/machine.actions.layout.js +7 -5
- package/dist/likec4diagram/state/machine.setup.d.ts +10 -1
- package/dist/likec4diagram/state/machine.setup.js +6 -1
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +2 -26
- package/dist/likec4diagram/state/machine.state.initializing.js +9 -6
- package/dist/likec4diagram/state/machine.state.navigating.js +1 -1
- package/dist/likec4diagram/state/machine.state.ready.d.ts +134 -3
- package/dist/likec4diagram/state/machine.state.ready.js +2 -1
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +106 -1
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +39 -6
- package/dist/likec4diagram/state/utils.d.ts +1 -1
- package/dist/likec4diagram/state/utils.js +1 -2
- package/dist/likec4diagram/ui/LayoutDriftFrame.js +16 -10
- package/dist/likec4diagram/ui/index.d.ts +1 -1
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +13 -15
- package/dist/likec4diagram/ui/notation/NotationPanel.js +9 -9
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.d.ts +9 -0
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.js +81 -0
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.d.ts +11 -0
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.js +70 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.d.ts +2 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.js +106 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.d.ts +2 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.js +140 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.d.ts +17 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.js +83 -0
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.d.ts +4 -0
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.js +49 -527
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.d.ts +8 -0
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.js +52 -0
- package/dist/likec4diagram/ui/sequence-outline/StepRow.d.ts +7 -0
- package/dist/likec4diagram/ui/sequence-outline/StepRow.js +190 -0
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.d.ts +238 -0
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.js +94 -0
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.d.ts +21 -0
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.js +71 -0
- package/dist/likec4diagram/ui/sequence-outline/index.d.ts +2 -0
- package/dist/likec4diagram/ui/sequence-outline/motion.d.ts +13 -0
- package/dist/likec4diagram/ui/sequence-outline/motion.js +21 -0
- package/dist/likec4diagram/ui/sequence-outline/presentation.d.ts +10 -0
- package/dist/likec4diagram/ui/sequence-outline/presentation.js +80 -0
- package/dist/likec4diagram/ui/sequence-outline/tree.d.ts +9 -0
- package/dist/likec4diagram/ui/sequence-outline/tree.js +67 -0
- package/dist/likec4diagram/ui/sequence-outline/{state.d.ts → types.d.ts} +4 -2
- package/dist/likec4diagram/ui/sequence-outline/types.js +12 -0
- package/dist/likec4diagram/useLayoutConstraints.js +9 -12
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.js +1 -0
- package/dist/likec4diagram/xyflow-sequence/utils.js +0 -1
- package/dist/navigationpanel/NavigationPanel.js +45 -41
- package/dist/navigationpanel/NavigationPanelControls.js +102 -63
- package/dist/navigationpanel/NavigationPanelDropdown.js +51 -77
- package/dist/navigationpanel/_common.d.ts +6 -6
- package/dist/navigationpanel/_common.js +31 -42
- package/dist/navigationpanel/actor.actions.js +6 -5
- package/dist/navigationpanel/actor.js +2 -2
- package/dist/navigationpanel/actor.setup.d.ts +6 -6
- package/dist/navigationpanel/actor.setup.js +2 -1
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -4
- package/dist/navigationpanel/comparepanel/ComparePanel.js +8 -10
- package/dist/navigationpanel/comparepanel/DriftsSummary.d.ts +1 -1
- package/dist/navigationpanel/comparepanel/DriftsSummary.js +11 -9
- package/dist/navigationpanel/controls/LayoutWarning.js +69 -72
- package/dist/navigationpanel/controls/NavigationButtons.d.ts +1 -1
- package/dist/navigationpanel/controls/NavigationButtons.js +8 -8
- package/dist/navigationpanel/controls/OpenSource.d.ts +1 -1
- package/dist/navigationpanel/controls/OpenSource.js +5 -8
- package/dist/navigationpanel/controls/SearchControl.js +24 -9
- package/dist/navigationpanel/controls/ToggleReadonly.d.ts +4 -1
- package/dist/navigationpanel/controls/ToggleReadonly.js +56 -76
- package/dist/navigationpanel/controls/ViewDetailsButton.d.ts +5 -0
- package/dist/navigationpanel/controls/ViewDetailsButton.js +121 -0
- package/dist/navigationpanel/controls/index.d.ts +1 -1
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +27 -16
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +10 -9
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -8
- package/dist/navigationpanel/editorpanel/styles.js +8 -15
- package/dist/navigationpanel/hooks.d.ts +6 -2
- package/dist/navigationpanel/styles.css.d.ts +2 -2
- package/dist/navigationpanel/styles.css.js +0 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +3 -2
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +5 -4
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +9 -36
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.d.ts +1 -0
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.js +49 -0
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +8 -8
- package/dist/navigationpanel/windows/ViewDetailsWindow.d.ts +1 -0
- package/dist/navigationpanel/windows/ViewDetailsWindow.js +379 -0
- package/dist/overlays/Overlays.js +29 -17
- package/dist/overlays/element-details/ElementDetailsCard.css.js +28 -36
- package/dist/overlays/element-details/ElementDetailsCard.js +1 -1
- package/dist/overlays/element-details/MetadataValue.js +18 -16
- package/dist/overlays/element-details/TabPanelDeployments.css.js +6 -14
- package/dist/overlays/element-details/TabPanelRelationships.css.js +8 -12
- package/dist/overlays/element-details/TabPanelStructure.css.js +4 -8
- package/dist/overlays/hooks.d.ts +3 -1
- package/dist/overlays/overlay/Overlay.js +8 -7
- package/dist/overlays/overlaysActor.js +4 -0
- package/dist/overlays/relationship-details/SelectEdge.css.js +14 -9
- package/dist/overlays/relationship-details/actor.js +1 -1
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +6 -0
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +11 -6
- package/dist/overlays/relationships-browser/SelectElement.css.js +2 -8
- package/dist/overlays/relationships-browser/SelectElement.js +5 -1
- package/dist/overlays/relationships-browser/actor.js +1 -1
- package/dist/overlays/relationships-browser/custom/EmptyNode.js +7 -9
- package/dist/projects-overview/actor.js +1 -1
- package/dist/search/Search.js +9 -7
- package/dist/search/components/ElementsColumn.css.js +6 -5
- package/dist/search/components/ElementsColumn.js +4 -3
- package/dist/search/components/SearchByTags.js +3 -3
- package/dist/search/components/ViewsColum.js +36 -35
- package/dist/search/components/ViewsColumn.css.js +4 -4
- package/dist/search/components/_shared.css.d.ts +2 -2
- package/dist/search/components/_shared.css.js +31 -46
- package/dist/search/components/styles.css.js +4 -4
- package/dist/shadowroot/ShadowRoot.js +2 -3
- package/dist/styles2.js +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +10 -10
- package/panda.buildinfo.json +340 -298
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/context/DefaultMantineProvider.d.ts +0 -2
- package/dist/context/DefaultMantineProvider.js +0 -48
- package/dist/likec4diagram/ui/sequence-outline/state.js +0 -55
- package/dist/navigationpanel/controls/DetailsControls.d.ts +0 -2
- package/dist/navigationpanel/controls/DetailsControls.js +0 -224
|
@@ -35,16 +35,16 @@ function SearchByTags() {
|
|
|
35
35
|
css: {
|
|
36
36
|
gap: "1.5",
|
|
37
37
|
flexWrap: "wrap",
|
|
38
|
-
opacity: isFiltered ? 1 : .3,
|
|
38
|
+
opacity: isFiltered ? "1" : "0.3",
|
|
39
39
|
grayscale: isFiltered ? 0 : .9,
|
|
40
40
|
filter: "auto",
|
|
41
41
|
transition: "fast",
|
|
42
42
|
_groupHover: {
|
|
43
|
-
opacity: 1,
|
|
43
|
+
opacity: "1",
|
|
44
44
|
grayscale: 0
|
|
45
45
|
},
|
|
46
46
|
_groupFocusWithin: {
|
|
47
|
-
opacity: 1,
|
|
47
|
+
opacity: "1",
|
|
48
48
|
grayscale: 0
|
|
49
49
|
}
|
|
50
50
|
},
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { useLikeC4Model } from "../../hooks/useLikeC4Model.js";
|
|
3
|
+
import { EmptyBox } from "../../components/EmptyBox.js";
|
|
4
|
+
import { ViewIcon } from "../../components/ViewIcon.js";
|
|
3
5
|
import { useSearchContext } from "../SearchContext.js";
|
|
4
6
|
import { useNormalizedSearch } from "../hooks.js";
|
|
5
|
-
import { buttonsva,
|
|
7
|
+
import { buttonsva, focusable } from "./_shared.css.js";
|
|
6
8
|
import { centerY, moveFocusToSearchInput, queryAllFocusable } from "./utils.js";
|
|
7
9
|
import { viewButton } from "./ViewsColumn.css.js";
|
|
8
10
|
import { cx } from "@likec4/styles/css";
|
|
9
|
-
import { IconStack2, IconZoomScan } from "@tabler/icons-react";
|
|
10
11
|
import { memo, useMemo, useRef } from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
import { first } from "remeda";
|
|
13
|
-
import { Badge, Group, Highlight,
|
|
14
|
-
import {
|
|
14
|
+
import { Badge, Group, Highlight, ThemeIcon, UnstyledButton, VisuallyHidden, createScopedKeydownHandler } from "@mantine/core";
|
|
15
|
+
import { m } from "motion/react";
|
|
15
16
|
import { preferSummary } from "@likec4/core/types";
|
|
16
|
-
import
|
|
17
|
+
import { Box as Box$1 } from "@likec4/styles/jsx";
|
|
18
|
+
import { vstack } from "@likec4/styles/patterns";
|
|
17
19
|
//#region src/search/components/ViewsColum.tsx
|
|
18
|
-
var NothingFound = () => /* @__PURE__ */ jsx(
|
|
19
|
-
|
|
20
|
+
var NothingFound = () => /* @__PURE__ */ jsx(EmptyBox, {
|
|
21
|
+
fullsize: true,
|
|
22
|
+
as: m.div,
|
|
20
23
|
children: "Nothing found"
|
|
21
24
|
});
|
|
22
25
|
var useFoundViews = () => {
|
|
@@ -50,13 +53,11 @@ var useFoundViews = () => {
|
|
|
50
53
|
var ViewsColumn = memo(() => {
|
|
51
54
|
const ref = useRef(null);
|
|
52
55
|
const [views, search, currentViewId] = useFoundViews();
|
|
53
|
-
return /* @__PURE__ */
|
|
56
|
+
if (views.length === 0) return /* @__PURE__ */ jsx(NothingFound, {}, "nothing-found");
|
|
57
|
+
return /* @__PURE__ */ jsxs(m.div, {
|
|
54
58
|
ref,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
...props
|
|
58
|
-
}),
|
|
59
|
-
gap: 8,
|
|
59
|
+
layout: true,
|
|
60
|
+
className: vstack({ gap: "2" }),
|
|
60
61
|
"data-likec4-search-views": true,
|
|
61
62
|
onKeyDown: (e) => {
|
|
62
63
|
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
|
|
@@ -71,27 +72,23 @@ var ViewsColumn = memo(() => {
|
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
|
-
children: [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
})
|
|
92
|
-
}, view.id))
|
|
93
|
-
]
|
|
94
|
-
});
|
|
75
|
+
children: [views.length > 0 && /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
76
|
+
"data-likec4-view": true,
|
|
77
|
+
tabIndex: -1,
|
|
78
|
+
onFocus: (e) => {
|
|
79
|
+
e.stopPropagation();
|
|
80
|
+
moveFocusToSearchInput(ref.current);
|
|
81
|
+
}
|
|
82
|
+
}) }), views.map((view, i) => /* @__PURE__ */ jsx(m.div, {
|
|
83
|
+
layout: "position",
|
|
84
|
+
children: /* @__PURE__ */ jsx(ViewButton, {
|
|
85
|
+
view,
|
|
86
|
+
currentViewId: currentViewId ?? "",
|
|
87
|
+
search,
|
|
88
|
+
tabIndex: i === 0 ? 0 : -1
|
|
89
|
+
})
|
|
90
|
+
}, `@view${view.id}`))]
|
|
91
|
+
}, "views-column");
|
|
95
92
|
});
|
|
96
93
|
var btn = buttonsva();
|
|
97
94
|
function ViewButton({ className, view, loop = false, search, focusOnElement, currentViewId, ...props }) {
|
|
@@ -126,7 +123,10 @@ function ViewButton({ className, view, loop = false, search, focusOnElement, cur
|
|
|
126
123
|
children: [/* @__PURE__ */ jsx(ThemeIcon, {
|
|
127
124
|
variant: "transparent",
|
|
128
125
|
className: btn.icon,
|
|
129
|
-
children:
|
|
126
|
+
children: /* @__PURE__ */ jsx(ViewIcon, {
|
|
127
|
+
type: view._type,
|
|
128
|
+
size: 16
|
|
129
|
+
})
|
|
130
130
|
}), /* @__PURE__ */ jsxs(Box$1, {
|
|
131
131
|
style: { flexGrow: 1 },
|
|
132
132
|
children: [/* @__PURE__ */ jsxs(Group, {
|
|
@@ -137,6 +137,7 @@ function ViewButton({ className, view, loop = false, search, focusOnElement, cur
|
|
|
137
137
|
component: "div",
|
|
138
138
|
highlight: search,
|
|
139
139
|
className: btn.title,
|
|
140
|
+
lineClamp: 1,
|
|
140
141
|
children: view.titleOrUntitled
|
|
141
142
|
}), isCurrentView && /* @__PURE__ */ jsx(Badge, {
|
|
142
143
|
size: "xs",
|
|
@@ -3,13 +3,13 @@ import { css, cx } from "@likec4/styles/css";
|
|
|
3
3
|
var viewButton = cx(css({
|
|
4
4
|
flexWrap: "nowrap",
|
|
5
5
|
display: "flex",
|
|
6
|
-
"&[data-disabled] .mantine-ThemeIcon-root": { opacity: .45 }
|
|
6
|
+
"&[data-disabled] .mantine-ThemeIcon-root": { opacity: "0.45" }
|
|
7
7
|
}), "likec4-view-btn");
|
|
8
8
|
css({
|
|
9
9
|
marginTop: "1",
|
|
10
|
-
fontSize: "
|
|
11
|
-
lineHeight: "
|
|
12
|
-
[`:where(.likec4-view-btn[data-disabled]) &`]: { opacity: .85 }
|
|
10
|
+
fontSize: "sm",
|
|
11
|
+
lineHeight: "md",
|
|
12
|
+
[`:where(.likec4-view-btn[data-disabled]) &`]: { opacity: "0.85" }
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { viewButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlotRecipeRuntimeFn, SlotRecipeVariantRecord } from '
|
|
1
|
+
import { SlotRecipeRuntimeFn, SlotRecipeVariantRecord } from '@likec4/styles/types';
|
|
2
2
|
export declare const focusable = "likec4-focusable";
|
|
3
3
|
export declare const emptyBoX: string;
|
|
4
|
-
export declare const buttonsva: SlotRecipeRuntimeFn<"
|
|
4
|
+
export declare const buttonsva: SlotRecipeRuntimeFn<"icon" | "title" | "description" | "root" | "descriptionColor", SlotRecipeVariantRecord<"icon" | "title" | "description" | "root" | "descriptionColor">>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { css, sva } from "@likec4/styles/css";
|
|
2
|
+
import { emptyBox } from "@likec4/styles/recipes";
|
|
2
3
|
//#region src/search/components/_shared.css.ts
|
|
3
4
|
var buttonFocused = css.raw({
|
|
4
5
|
outline: "none",
|
|
5
|
-
background: "
|
|
6
|
-
borderColor: "
|
|
6
|
+
background: "likec4.accent.8",
|
|
7
|
+
borderColor: "likec4.accent.9"
|
|
7
8
|
});
|
|
8
9
|
var _treenodefocus = ".mantine-Tree-node:focus > .mantine-Tree-label &";
|
|
9
10
|
var button = css.raw({
|
|
@@ -12,14 +13,13 @@ var button = css.raw({
|
|
|
12
13
|
background: "surface.default",
|
|
13
14
|
rounded: "sm",
|
|
14
15
|
padding: `[12px 8px 12px 14px]`,
|
|
15
|
-
minHeight: "60px",
|
|
16
|
+
minHeight: "[60px]",
|
|
16
17
|
gap: "2",
|
|
17
|
-
border: `
|
|
18
|
-
borderColor: "default.border",
|
|
18
|
+
border: `default`,
|
|
19
19
|
_hover: {
|
|
20
20
|
...buttonFocused,
|
|
21
|
-
borderColor: "
|
|
22
|
-
background: `
|
|
21
|
+
borderColor: "likec4.accent.9",
|
|
22
|
+
background: `likec4.accent.8/60`
|
|
23
23
|
},
|
|
24
24
|
_focus: buttonFocused,
|
|
25
25
|
[_treenodefocus]: buttonFocused,
|
|
@@ -28,26 +28,24 @@ var button = css.raw({
|
|
|
28
28
|
background: `mantine.dark[6]/80`
|
|
29
29
|
},
|
|
30
30
|
_light: {
|
|
31
|
-
background: `
|
|
31
|
+
background: `white/80`,
|
|
32
32
|
_hover: {
|
|
33
|
-
borderColor: "
|
|
34
|
-
backgroundColor: "
|
|
33
|
+
borderColor: "likec4.accent.6",
|
|
34
|
+
backgroundColor: "likec4.accent.5"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
var focusable = "likec4-focusable";
|
|
39
|
-
var iconSize = { ref: "
|
|
39
|
+
var iconSize = { ref: "24px" };
|
|
40
40
|
var icon = css.raw({
|
|
41
41
|
color: {
|
|
42
42
|
base: "text.dimmed",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
_groupFocus: "mantine.primary[0]"
|
|
43
|
+
_groupHover: "likec4.accent.0",
|
|
44
|
+
_groupFocus: "likec4.accent.0"
|
|
46
45
|
},
|
|
47
|
-
[_treenodefocus]: { color: "
|
|
48
|
-
flex: `0 0 ${iconSize.ref}`,
|
|
49
|
-
|
|
50
|
-
width: iconSize.ref,
|
|
46
|
+
[_treenodefocus]: { color: "likec4.accent.0" },
|
|
47
|
+
flex: `[0 0 ${iconSize.ref}]`,
|
|
48
|
+
boxSize: `[${iconSize.ref}]`,
|
|
51
49
|
display: "flex",
|
|
52
50
|
alignItems: "center",
|
|
53
51
|
justifyContent: "center",
|
|
@@ -63,24 +61,24 @@ var icon = css.raw({
|
|
|
63
61
|
"&.likec4-shape-icon svg": { strokeWidth: "[1.5]" }
|
|
64
62
|
});
|
|
65
63
|
var title = css.raw({
|
|
66
|
-
fontSize: "
|
|
64
|
+
fontSize: "lg",
|
|
67
65
|
fontWeight: "medium",
|
|
68
|
-
lineHeight: "
|
|
69
|
-
[`:where([data-disabled]) &`]: { opacity: .4 },
|
|
66
|
+
lineHeight: "snug",
|
|
67
|
+
[`:where([data-disabled]) &`]: { opacity: "[0.4]" },
|
|
70
68
|
color: {
|
|
71
69
|
base: "mantine.dark[1]",
|
|
72
70
|
_light: "mantine.gray[7]",
|
|
73
71
|
_groupHover: {
|
|
74
|
-
base: "
|
|
72
|
+
base: "likec4.accent.1",
|
|
75
73
|
_light: "white"
|
|
76
74
|
},
|
|
77
75
|
_groupFocus: {
|
|
78
|
-
base: "
|
|
76
|
+
base: "likec4.accent.1",
|
|
79
77
|
_light: "white"
|
|
80
78
|
}
|
|
81
79
|
},
|
|
82
80
|
[_treenodefocus]: { color: {
|
|
83
|
-
base: "
|
|
81
|
+
base: "likec4.accent.1",
|
|
84
82
|
_light: "white"
|
|
85
83
|
} }
|
|
86
84
|
});
|
|
@@ -88,33 +86,20 @@ var descriptionColor = css.raw({
|
|
|
88
86
|
color: {
|
|
89
87
|
base: "text.dimmed",
|
|
90
88
|
_groupHover: {
|
|
91
|
-
base: "
|
|
92
|
-
_light: "
|
|
89
|
+
base: "likec4.accent.1",
|
|
90
|
+
_light: "likec4.accent.0"
|
|
93
91
|
},
|
|
94
|
-
_groupFocus: "
|
|
92
|
+
_groupFocus: "likec4.accent.0"
|
|
95
93
|
},
|
|
96
|
-
[_treenodefocus]: { color: "
|
|
94
|
+
[_treenodefocus]: { color: "likec4.accent.0" }
|
|
97
95
|
});
|
|
98
96
|
var description = css.raw(descriptionColor, {
|
|
99
97
|
marginTop: "1",
|
|
100
|
-
fontSize: "
|
|
101
|
-
lineHeight: "
|
|
102
|
-
[`:where([data-disabled]) &`]: { opacity: .85 }
|
|
103
|
-
});
|
|
104
|
-
var emptyBoX = css({
|
|
105
|
-
width: "100%",
|
|
106
|
-
height: "100%",
|
|
107
|
-
border: `2px dashed`,
|
|
108
|
-
borderColor: "default.border",
|
|
109
|
-
rounded: "md",
|
|
110
|
-
display: "flex",
|
|
111
|
-
justifyContent: "center",
|
|
112
|
-
alignItems: "center",
|
|
113
|
-
fontSize: "md",
|
|
114
|
-
color: "text.dimmed",
|
|
115
|
-
padding: "md",
|
|
116
|
-
paddingBlock: "xl"
|
|
98
|
+
fontSize: "sm",
|
|
99
|
+
lineHeight: "sm",
|
|
100
|
+
[`:where([data-disabled]) &`]: { opacity: "[0.85]" }
|
|
117
101
|
});
|
|
102
|
+
emptyBox({ fullsize: true });
|
|
118
103
|
var buttonsva = sva({
|
|
119
104
|
slots: [
|
|
120
105
|
"root",
|
|
@@ -133,4 +118,4 @@ var buttonsva = sva({
|
|
|
133
118
|
}
|
|
134
119
|
});
|
|
135
120
|
//#endregion
|
|
136
|
-
export { buttonsva,
|
|
121
|
+
export { buttonsva, focusable };
|
|
@@ -21,7 +21,7 @@ var pickviewBackdrop = css({
|
|
|
21
21
|
width: "100%",
|
|
22
22
|
height: "100%",
|
|
23
23
|
backgroundColor: "[rgb(34 34 34 / 0.7)]",
|
|
24
|
-
zIndex: 902,
|
|
24
|
+
zIndex: "[902]",
|
|
25
25
|
backdropFilter: "auto",
|
|
26
26
|
backdropBlur: "10px",
|
|
27
27
|
_light: { backgroundColor: "[rgb(255 255 255 / 0.6)]" }
|
|
@@ -31,10 +31,10 @@ var pickview = css({
|
|
|
31
31
|
top: "[2rem]",
|
|
32
32
|
left: "[50%]",
|
|
33
33
|
width: "100%",
|
|
34
|
-
maxWidth: "600px",
|
|
35
|
-
minWidth: "200px",
|
|
34
|
+
maxWidth: "[600px]",
|
|
35
|
+
minWidth: "[200px]",
|
|
36
36
|
transform: "translateX(-50%)",
|
|
37
|
-
zIndex: 903
|
|
37
|
+
zIndex: "[903]"
|
|
38
38
|
});
|
|
39
39
|
var pickviewGroup = css({
|
|
40
40
|
marginTop: "2",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { __name } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { useCallbackRef as useCallbackRef$1 } from "../hooks/useCallbackRef.js";
|
|
3
|
-
import {
|
|
3
|
+
import { LikeC4MantineProvider } from "../LikeC4MantineProvider.js";
|
|
4
4
|
import { FramerMotionConfig } from "../context/FramerMotionConfig.js";
|
|
5
5
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
6
6
|
import styles_font_default from "../styles-font2.js";
|
|
7
7
|
import styles_default from "../styles2.js";
|
|
8
8
|
import { memo, useEffectEvent, useInsertionEffect, useLayoutEffect, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import "fast-equals";
|
|
11
10
|
import { first, isDefined, isFunction, isString, once } from "remeda";
|
|
12
11
|
import { useColorScheme, useMutationObserverTarget } from "@mantine/hooks";
|
|
13
12
|
import { createPortal } from "react-dom";
|
|
@@ -89,7 +88,7 @@ function ShadowRoot({ children, theme, injectFontCss = true, styleNonce, colorSc
|
|
|
89
88
|
ref: mantineRootRef,
|
|
90
89
|
"data-mantine-color-scheme": colorScheme,
|
|
91
90
|
className: "likec4-shadow-root",
|
|
92
|
-
children: /* @__PURE__ */ jsx(
|
|
91
|
+
children: /* @__PURE__ */ jsx(LikeC4MantineProvider, {
|
|
93
92
|
defaultColorScheme: colorScheme,
|
|
94
93
|
getRootElement,
|
|
95
94
|
cssVariablesSelector: ".likec4-shadow-root",
|