@likec4/diagram 1.34.2 → 1.36.0
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/bundle/{chunk-Dd7et66b.js → chunk-7MPUJFHj.js} +1102 -1172
- package/bundle/custom.js +59 -55
- package/bundle/index.js +8918 -5681
- package/dist/LikeC4Diagram.js +6 -6
- package/dist/LikeC4Diagram.props.d.ts +53 -7
- package/dist/LikeC4ModelProvider.d.ts +4 -4
- package/dist/LikeC4ProjectsProvider.d.ts +17 -0
- package/dist/LikeC4ProjectsProvider.js +22 -0
- package/dist/LikeC4Styles.d.ts +1 -0
- package/dist/LikeC4Styles.js +94 -0
- package/dist/StaticLikeC4Diagram.d.ts +3 -3
- package/dist/base/BaseXYFlow.d.ts +2 -2
- package/dist/base/BaseXYFlow.js +26 -29
- package/dist/base/primitives/MarkdownBlock.d.ts +7 -1
- package/dist/base/primitives/MarkdownBlock.js +1 -1
- package/dist/base/primitives/compound/CompoundActionButton.js +3 -3
- package/dist/base/primitives/compound/CompoundDetailsButton.js +3 -3
- package/dist/base/primitives/compound/CompoundNodeContainer.css.js +4 -4
- package/dist/base/primitives/compound/CompoundNodeContainer.js +1 -4
- package/dist/base/primitives/compound/CompoundTitle.js +9 -8
- package/dist/base/primitives/compound/actionbtns.css.js +6 -6
- package/dist/base/primitives/edge/EdgeActionButton.js +3 -3
- package/dist/base/primitives/edge/EdgeContainer.js +4 -7
- package/dist/base/primitives/edge/EdgeLabel.css.d.ts +0 -22
- package/dist/base/primitives/edge/EdgeLabel.css.js +6 -84
- package/dist/base/primitives/edge/EdgeLabel.js +16 -6
- package/dist/base/primitives/edge/EdgeLabelContainer.js +1 -6
- package/dist/base/primitives/edge/EdgeMarkers.js +3 -3
- package/dist/base/primitives/edge/edge.css.d.ts +0 -2
- package/dist/base/primitives/edge/edge.css.js +1 -55
- package/dist/base/primitives/element/ElementActionButtons.js +2 -2
- package/dist/base/primitives/element/ElementDetailsButton.js +9 -8
- package/dist/base/primitives/element/ElementNodeContainer.css.js +4 -4
- package/dist/base/primitives/element/ElementNodeContainer.d.ts +3 -3
- package/dist/base/primitives/element/ElementNodeContainer.js +1 -4
- package/dist/base/primitives/element/ElementShape.css.js +11 -11
- package/dist/base/primitives/element/ElementTags.d.ts +1 -0
- package/dist/base/primitives/element/ElementTags.js +17 -14
- package/dist/base/primitives/element/ElementTitle.js +9 -9
- package/dist/bundle/LikeC4View.d.ts +1 -1
- package/dist/bundle/LikeC4View.js +10 -4
- package/dist/bundle/LikeC4View.props.d.ts +9 -6
- package/dist/bundle/ReactLikeC4.d.ts +1 -1
- package/dist/bundle/ViewNotFound.js +1 -1
- package/dist/bundle/custom.js +1 -0
- package/dist/bundle/index.d.ts +2 -1
- package/dist/bundle/index.js +2 -0
- package/dist/bundle/styles.css.js +1 -1
- package/dist/components/ErrorFallback.d.ts +2 -1
- package/dist/components/ErrorFallback.js +16 -3
- package/dist/components/GithubIcon.d.ts +2 -0
- package/dist/components/GithubIcon.js +17 -0
- package/dist/components/Link.d.ts +4 -3
- package/dist/components/Link.js +86 -89
- package/dist/components/NavigationLink.d.ts +6 -0
- package/dist/components/NavigationLink.js +25 -0
- package/dist/components/SearchControl.css.js +6 -5
- package/dist/components/SearchControl.js +1 -1
- package/dist/context/ControlsCustomLayout.d.ts +0 -1
- package/dist/context/DiagramEventHandlers.d.ts +6 -6
- package/dist/context/DiagramEventHandlers.js +4 -7
- package/dist/context/DiagramFeatures.d.ts +4 -1
- package/dist/context/IconRenderer.js +6 -6
- package/dist/custom/customNodes.js +10 -2
- package/dist/custom/hooks.d.ts +1 -0
- package/dist/custom/index.js +1 -0
- package/dist/globals.css.js +3 -0
- package/dist/hooks/useDiagram.d.ts +1 -2
- package/dist/hooks/useDiagram.js +1 -5
- package/dist/hooks/useXYFlow.d.ts +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/likec4diagram/DiagramUI.js +8 -4
- package/dist/likec4diagram/DiagramXYFlow.js +1 -1
- package/dist/likec4diagram/custom/edges/NotePopover.css.js +2 -2
- package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +2 -2
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +1 -1
- package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.css.js +7 -7
- package/dist/likec4diagram/custom/edges/RelationshipsDropdownMenu.js +7 -7
- package/dist/likec4diagram/custom/edges/edges.css.js +4 -4
- package/dist/likec4diagram/custom/index.d.ts +2 -2
- package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +2 -2
- package/dist/likec4diagram/ui/controls/ChangeAutoLayoutButton.js +1 -1
- package/dist/likec4diagram/ui/controls/Controls.js +11 -15
- package/dist/likec4diagram/ui/controls/LayoutDriftNotification.js +1 -1
- package/dist/likec4diagram/ui/controls/ManualLayoutToolsButton.js +9 -9
- package/dist/likec4diagram/ui/controls/NavigationButtons.js +4 -2
- package/dist/likec4diagram/ui/controls/ToggleReadonly.js +2 -2
- package/dist/likec4diagram/ui/controls/styles.css.js +5 -5
- package/dist/likec4diagram/ui/diagram-title/DiagramTitlePanel.js +15 -13
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +11 -11
- package/dist/likec4diagram/ui/notation/NotationPanel.js +5 -8
- package/dist/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.css.js +10 -10
- package/dist/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.js +4 -4
- package/dist/likec4model/LikeC4ModelContext.d.ts +4 -1
- package/dist/likec4model/LikeC4ModelContext.js +2 -1
- package/dist/likec4model/LikeC4ProjectsContext.d.ts +7 -0
- package/dist/likec4model/LikeC4ProjectsContext.js +5 -0
- package/dist/likec4model/index.d.ts +2 -0
- package/dist/likec4model/useCurrentViewModel.d.ts +2 -0
- package/dist/likec4model/useCurrentViewModel.js +12 -0
- package/dist/likec4model/useLikeC4Model.d.ts +2 -5
- package/dist/likec4model/useLikeC4Model.js +10 -16
- package/dist/likec4model/useLikeC4Project.d.ts +22 -0
- package/dist/likec4model/useLikeC4Project.js +23 -0
- package/dist/navigationpanel/NavigationPanel.d.ts +2 -0
- package/dist/navigationpanel/NavigationPanel.js +122 -0
- package/dist/navigationpanel/NavigationPanelControls.d.ts +1 -0
- package/dist/navigationpanel/NavigationPanelControls.js +147 -0
- package/dist/navigationpanel/NavigationPanelDropdown.d.ts +1 -0
- package/dist/navigationpanel/NavigationPanelDropdown.js +452 -0
- package/dist/navigationpanel/_common.d.ts +15 -0
- package/dist/navigationpanel/_common.js +72 -0
- package/dist/navigationpanel/actor.d.ts +296 -0
- package/dist/navigationpanel/actor.js +239 -0
- package/dist/navigationpanel/controls/BurgerButton.d.ts +1 -0
- package/dist/navigationpanel/controls/BurgerButton.js +34 -0
- package/dist/navigationpanel/controls/NavigationButtons.d.ts +1 -0
- package/dist/navigationpanel/controls/NavigationButtons.js +57 -0
- package/dist/navigationpanel/controls/OpenSource.d.ts +1 -0
- package/dist/navigationpanel/controls/OpenSource.js +27 -0
- package/dist/navigationpanel/controls/SearchControl.d.ts +1 -0
- package/dist/navigationpanel/controls/SearchControl.js +70 -0
- package/dist/navigationpanel/controls/ToggleReadonly.d.ts +1 -0
- package/dist/navigationpanel/controls/ToggleReadonly.js +69 -0
- package/dist/navigationpanel/controls/ViewDetailsCard.d.ts +2 -0
- package/dist/navigationpanel/controls/ViewDetailsCard.js +232 -0
- package/dist/navigationpanel/controls/index.d.ts +6 -0
- package/dist/navigationpanel/dropdown/ProjectsMenu.d.ts +2 -0
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +75 -0
- package/dist/navigationpanel/editorpanel/CenterCamera.d.ts +1 -0
- package/dist/navigationpanel/editorpanel/CenterCamera.js +12 -0
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.d.ts +1 -0
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +157 -0
- package/dist/navigationpanel/editorpanel/EditorPanel.d.ts +1 -0
- package/dist/navigationpanel/editorpanel/EditorPanel.js +48 -0
- package/dist/navigationpanel/editorpanel/LayoutDriftNotification.d.ts +1 -0
- package/dist/navigationpanel/editorpanel/LayoutDriftNotification.js +56 -0
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.d.ts +2 -0
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +173 -0
- package/dist/navigationpanel/editorpanel/_common.d.ts +6 -0
- package/dist/navigationpanel/editorpanel/_common.js +14 -0
- package/dist/navigationpanel/editorpanel/index.d.ts +1 -0
- package/dist/navigationpanel/editorpanel/styles.d.ts +8 -0
- package/dist/navigationpanel/editorpanel/styles.js +79 -0
- package/dist/navigationpanel/hooks.d.ts +20 -0
- package/dist/navigationpanel/hooks.js +38 -0
- package/dist/navigationpanel/index.d.ts +1 -0
- package/dist/navigationpanel/styles.css.d.ts +16 -0
- package/dist/navigationpanel/styles.css.js +30 -0
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.d.ts +2 -0
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +162 -0
- package/dist/navigationpanel/walkthrough/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.31.0_react@19.1.0 → @tabler_icons-react@3.34.1_react@19.1.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +1 -1
- package/dist/node_modules/.pnpm/{@tabler_icons-react@3.31.0_react@19.1.0 → @tabler_icons-react@3.34.1_react@19.1.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +1 -1
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMenu.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMenu2.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +14 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.34.1_react@19.1.1/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +14 -0
- package/dist/overlays/element-details/ElementDetailsCard.css.js +18 -17
- package/dist/overlays/element-details/ElementDetailsCard.js +12 -17
- package/dist/overlays/element-details/TabPanelDeployments.css.js +5 -4
- package/dist/overlays/element-details/TabPanelDeployments.js +3 -3
- package/dist/overlays/element-details/TabPanelRelationships.css.js +7 -7
- package/dist/overlays/element-details/TabPanelRelationships.js +3 -3
- package/dist/overlays/element-details/TabPanelStructure.js +1 -1
- package/dist/overlays/overlay/Overlay.css.d.ts +3 -3
- package/dist/overlays/overlay/Overlay.css.js +8 -7
- package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
- package/dist/overlays/relationship-details/SelectEdge.css.js +8 -8
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +3 -3
- package/dist/overlays/relationships-browser/SelectElement.css.js +1 -1
- package/dist/overlays/relationships-browser/SelectElement.js +2 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
- package/dist/search/Search.js +6 -6
- package/dist/search/components/ElementsColumn.css.js +5 -5
- package/dist/search/components/ElementsColumn.js +1 -1
- package/dist/search/components/PickView.js +1 -1
- package/dist/search/components/SearchByTags.js +4 -3
- package/dist/search/components/SearchInput.js +1 -1
- package/dist/search/components/ViewsColum.js +3 -3
- package/dist/search/components/ViewsColumn.css.js +1 -1
- package/dist/search/components/_shared.css.js +3 -3
- package/dist/search/components/styles.css.js +5 -5
- package/dist/state/DiagramActorProvider.d.ts +2 -2
- package/dist/state/DiagramActorProvider.js +82 -25
- package/dist/state/diagram-machine.d.ts +31 -249
- package/dist/state/diagram-machine.js +16 -16
- package/dist/styles-min.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css2.js +1 -1
- package/package.json +20 -17
- package/panda.buildinfo.json +368 -404
- package/src/LikeC4Diagram.props.ts +53 -5
- package/src/LikeC4Diagram.tsx +2 -2
- package/src/LikeC4ModelProvider.tsx +6 -6
- package/src/LikeC4ProjectsProvider.tsx +41 -0
- package/src/LikeC4Styles.tsx +107 -0
- package/src/StaticLikeC4Diagram.tsx +3 -3
- package/src/base/BaseXYFlow.tsx +28 -33
- package/src/base/primitives/MarkdownBlock.tsx +11 -3
- package/src/base/primitives/compound/CompoundActionButton.tsx +2 -2
- package/src/base/primitives/compound/CompoundDetailsButton.tsx +2 -2
- package/src/base/primitives/compound/CompoundNodeContainer.css.ts +4 -13
- package/src/base/primitives/compound/CompoundNodeContainer.tsx +0 -3
- package/src/base/primitives/compound/CompoundTitle.tsx +8 -8
- package/src/base/primitives/compound/actionbtns.css.ts +6 -6
- package/src/base/primitives/edge/EdgeActionButton.tsx +2 -2
- package/src/base/primitives/edge/EdgeContainer.tsx +3 -6
- package/src/base/primitives/edge/EdgeLabel.css.ts +4 -83
- package/src/base/primitives/edge/EdgeLabel.tsx +16 -10
- package/src/base/primitives/edge/EdgeLabelContainer.tsx +1 -6
- package/src/base/primitives/edge/EdgeMarkers.tsx +3 -3
- package/src/base/primitives/edge/edge.css.ts +0 -60
- package/src/base/primitives/element/ElementActionButtons.tsx +2 -2
- package/src/base/primitives/element/ElementDetailsButton.tsx +7 -7
- package/src/base/primitives/element/ElementNodeContainer.css.ts +4 -4
- package/src/base/primitives/element/ElementNodeContainer.tsx +2 -5
- package/src/base/primitives/element/ElementShape.css.ts +11 -11
- package/src/base/primitives/element/ElementTags.tsx +17 -14
- package/src/base/primitives/element/ElementTitle.tsx +4 -4
- package/src/bundle/LikeC4View.props.ts +15 -6
- package/src/bundle/LikeC4View.tsx +12 -5
- package/src/bundle/ReactLikeC4.tsx +1 -2
- package/src/bundle/ViewNotFound.tsx +1 -1
- package/src/bundle/index.ts +2 -1
- package/src/bundle/styles.css.ts +1 -1
- package/src/components/ErrorFallback.tsx +17 -2
- package/src/components/GithubIcon.tsx +16 -0
- package/src/components/Link.tsx +102 -113
- package/src/components/NavigationLink.tsx +32 -0
- package/src/components/SearchControl.css.ts +5 -5
- package/src/context/ControlsCustomLayout.ts +0 -1
- package/src/context/DiagramEventHandlers.tsx +12 -12
- package/src/context/DiagramFeatures.tsx +6 -1
- package/src/custom/customNodes.tsx +10 -2
- package/src/custom/hooks.ts +3 -0
- package/src/globals.css +71 -0
- package/src/hooks/useDiagram.ts +0 -8
- package/src/index.ts +5 -0
- package/src/likec4diagram/DiagramUI.tsx +9 -3
- package/src/likec4diagram/DiagramXYFlow.tsx +1 -1
- package/src/likec4diagram/custom/edges/NotePopover.css.ts +2 -2
- package/src/likec4diagram/custom/edges/RelationshipEdge.tsx +1 -1
- package/src/likec4diagram/custom/edges/RelationshipsDropdownMenu.css.ts +7 -7
- package/src/likec4diagram/custom/edges/RelationshipsDropdownMenu.tsx +3 -3
- package/src/likec4diagram/custom/edges/edges.css.ts +4 -4
- package/src/likec4diagram/custom/nodes/toolbar/CompoundToolbar.tsx +2 -2
- package/src/likec4diagram/ui/controls/Controls.tsx +8 -18
- package/src/likec4diagram/ui/controls/NavigationButtons.tsx +2 -0
- package/src/likec4diagram/ui/controls/styles.css.ts +5 -5
- package/src/likec4diagram/ui/diagram-title/DiagramTitlePanel.tsx +14 -11
- package/src/likec4diagram/ui/notation/NotationPanel.css.ts +11 -11
- package/src/likec4diagram/ui/notation/NotationPanel.tsx +1 -4
- package/src/likec4diagram/ui/walkthrough/DynamicViewWalkthrough.css.ts +10 -10
- package/src/likec4model/LikeC4ModelContext.ts +5 -1
- package/src/likec4model/LikeC4ProjectsContext.ts +9 -0
- package/src/likec4model/index.ts +11 -0
- package/src/likec4model/useCurrentViewModel.ts +10 -0
- package/src/likec4model/useLikeC4Model.ts +17 -27
- package/src/likec4model/useLikeC4Project.ts +61 -0
- package/src/navigationpanel/NavigationPanel.tsx +135 -0
- package/src/navigationpanel/NavigationPanelControls.tsx +133 -0
- package/src/navigationpanel/NavigationPanelDropdown.tsx +539 -0
- package/src/navigationpanel/_common.tsx +84 -0
- package/src/navigationpanel/actor.ts +320 -0
- package/src/navigationpanel/controls/BurgerButton.tsx +30 -0
- package/src/navigationpanel/controls/NavigationButtons.tsx +44 -0
- package/src/navigationpanel/controls/OpenSource.tsx +28 -0
- package/src/navigationpanel/controls/SearchControl.tsx +66 -0
- package/src/navigationpanel/controls/ToggleReadonly.tsx +66 -0
- package/src/navigationpanel/controls/ViewDetailsCard.tsx +244 -0
- package/src/navigationpanel/controls/index.ts +6 -0
- package/src/navigationpanel/dropdown/ProjectsMenu.tsx +74 -0
- package/src/navigationpanel/editorpanel/CenterCamera.tsx +15 -0
- package/src/navigationpanel/editorpanel/ChangeAutoLayoutButton.tsx +199 -0
- package/src/navigationpanel/editorpanel/EditorPanel.tsx +49 -0
- package/src/navigationpanel/editorpanel/LayoutDriftNotification.tsx +56 -0
- package/src/navigationpanel/editorpanel/ManualLayoutToolsButton.tsx +148 -0
- package/src/navigationpanel/editorpanel/_common.tsx +14 -0
- package/src/navigationpanel/editorpanel/index.ts +1 -0
- package/src/navigationpanel/editorpanel/styles.ts +84 -0
- package/src/navigationpanel/hooks.tsx +70 -0
- package/src/navigationpanel/index.ts +1 -0
- package/src/navigationpanel/styles.css.ts +28 -0
- package/src/navigationpanel/walkthrough/ActiveWalkthroughControls.tsx +165 -0
- package/src/navigationpanel/walkthrough/index.tsx +1 -0
- package/src/overlays/element-details/ElementDetailsCard.css.ts +17 -17
- package/src/overlays/element-details/ElementDetailsCard.tsx +8 -13
- package/src/overlays/element-details/TabPanelDeployments.css.ts +4 -4
- package/src/overlays/element-details/TabPanelRelationships.css.ts +7 -7
- package/src/overlays/overlay/Overlay.css.ts +7 -7
- package/src/overlays/relationship-details/SelectEdge.css.ts +8 -8
- package/src/overlays/relationships-browser/SelectElement.css.ts +1 -1
- package/src/search/Search.tsx +6 -6
- package/src/search/components/ElementsColumn.css.ts +5 -5
- package/src/search/components/SearchByTags.tsx +2 -2
- package/src/search/components/ViewsColum.tsx +1 -1
- package/src/search/components/ViewsColumn.css.ts +1 -1
- package/src/search/components/_shared.css.ts +3 -3
- package/src/search/components/styles.css.ts +5 -5
- package/src/state/DiagramActorProvider.tsx +104 -31
- package/src/state/diagram-machine.ts +24 -18
- package/dist/LikeC4CustomColors.d.ts +0 -2
- package/dist/LikeC4CustomColors.js +0 -45
- package/dist/base/primitives/element/ElementTitle.css.d.ts +0 -34
- package/dist/base/primitives/element/ElementTitle.css.js +0 -201
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconMenu.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconMenu2.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -13
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.31.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -13
- package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +0 -45
- package/src/LikeC4CustomColors.tsx +0 -85
- package/src/base/primitives/element/ElementTitle.css.ts +0 -206
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { css } from '@likec4/styles/css'
|
|
2
|
+
import { hstack } from '@likec4/styles/patterns'
|
|
3
|
+
import {
|
|
4
|
+
type PopoverProps,
|
|
5
|
+
Popover,
|
|
6
|
+
PopoverDropdown,
|
|
7
|
+
PopoverTarget,
|
|
8
|
+
TooltipGroup,
|
|
9
|
+
} from '@mantine/core'
|
|
10
|
+
import {
|
|
11
|
+
IconLayoutAlignBottom,
|
|
12
|
+
IconLayoutAlignCenter,
|
|
13
|
+
IconLayoutAlignLeft,
|
|
14
|
+
IconLayoutAlignMiddle,
|
|
15
|
+
IconLayoutAlignRight,
|
|
16
|
+
IconLayoutAlignTop,
|
|
17
|
+
IconLayoutBoardSplit,
|
|
18
|
+
IconLayoutCollage,
|
|
19
|
+
IconRouteOff,
|
|
20
|
+
} from '@tabler/icons-react'
|
|
21
|
+
import { useDiagram } from '../../hooks/useDiagram'
|
|
22
|
+
import { useMantinePortalProps } from '../../hooks/useMantinePortalProps'
|
|
23
|
+
import { PanelActionIcon } from '../_common'
|
|
24
|
+
import { Tooltip } from './_common'
|
|
25
|
+
|
|
26
|
+
const Action = ({
|
|
27
|
+
label,
|
|
28
|
+
icon,
|
|
29
|
+
onClick,
|
|
30
|
+
}: {
|
|
31
|
+
label: string
|
|
32
|
+
icon: React.ReactNode
|
|
33
|
+
onClick: React.MouseEventHandler
|
|
34
|
+
}) => (
|
|
35
|
+
<Tooltip label={label} withinPortal={false} position="top">
|
|
36
|
+
<PanelActionIcon
|
|
37
|
+
classNames={{
|
|
38
|
+
root: 'action-icon',
|
|
39
|
+
icon: css({
|
|
40
|
+
'& > svg': {
|
|
41
|
+
width: '70%',
|
|
42
|
+
height: '70%',
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
}}
|
|
46
|
+
onClick={onClick}>
|
|
47
|
+
{icon}
|
|
48
|
+
</PanelActionIcon>
|
|
49
|
+
</Tooltip>
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
export const ManualLayoutToolsButton = (props: PopoverProps) => {
|
|
53
|
+
const diagram = useDiagram()
|
|
54
|
+
const portalProps = useMantinePortalProps()
|
|
55
|
+
return (
|
|
56
|
+
<Popover
|
|
57
|
+
position="right"
|
|
58
|
+
offset={{
|
|
59
|
+
mainAxis: 12,
|
|
60
|
+
}}
|
|
61
|
+
clickOutsideEvents={[
|
|
62
|
+
'pointerdown',
|
|
63
|
+
]}
|
|
64
|
+
{...portalProps}
|
|
65
|
+
{...props}>
|
|
66
|
+
<PopoverTarget>
|
|
67
|
+
<Tooltip label="Manual layouting tools">
|
|
68
|
+
<PanelActionIcon>
|
|
69
|
+
<IconLayoutCollage />
|
|
70
|
+
</PanelActionIcon>
|
|
71
|
+
</Tooltip>
|
|
72
|
+
</PopoverTarget>
|
|
73
|
+
<PopoverDropdown
|
|
74
|
+
className={hstack({
|
|
75
|
+
gap: '0.5',
|
|
76
|
+
layerStyle: 'likec4.panel',
|
|
77
|
+
padding: '1',
|
|
78
|
+
pointerEvents: 'all',
|
|
79
|
+
})}>
|
|
80
|
+
<TooltipGroup>
|
|
81
|
+
<Action
|
|
82
|
+
label="Align in columns"
|
|
83
|
+
icon={<IconLayoutBoardSplit />}
|
|
84
|
+
onClick={e => {
|
|
85
|
+
e.stopPropagation()
|
|
86
|
+
diagram.align('Column')
|
|
87
|
+
}} />
|
|
88
|
+
<Action
|
|
89
|
+
label="Align left"
|
|
90
|
+
icon={<IconLayoutAlignLeft />}
|
|
91
|
+
onClick={e => {
|
|
92
|
+
e.stopPropagation()
|
|
93
|
+
diagram.align('Left')
|
|
94
|
+
}} />
|
|
95
|
+
<Action
|
|
96
|
+
label="Align center"
|
|
97
|
+
icon={<IconLayoutAlignCenter />}
|
|
98
|
+
onClick={e => {
|
|
99
|
+
e.stopPropagation()
|
|
100
|
+
diagram.align('Center')
|
|
101
|
+
}} />
|
|
102
|
+
<Action
|
|
103
|
+
label="Align right"
|
|
104
|
+
icon={<IconLayoutAlignRight />}
|
|
105
|
+
onClick={e => {
|
|
106
|
+
e.stopPropagation()
|
|
107
|
+
diagram.align('Right')
|
|
108
|
+
}} />
|
|
109
|
+
<Action
|
|
110
|
+
label="Align in rows"
|
|
111
|
+
icon={<IconLayoutBoardSplit style={{ transform: 'rotate(90deg)' }} />}
|
|
112
|
+
onClick={e => {
|
|
113
|
+
e.stopPropagation()
|
|
114
|
+
diagram.align('Row')
|
|
115
|
+
}} />
|
|
116
|
+
<Action
|
|
117
|
+
label="Align top"
|
|
118
|
+
icon={<IconLayoutAlignTop />}
|
|
119
|
+
onClick={e => {
|
|
120
|
+
e.stopPropagation()
|
|
121
|
+
diagram.align('Top')
|
|
122
|
+
}} />
|
|
123
|
+
<Action
|
|
124
|
+
label="Align middle"
|
|
125
|
+
icon={<IconLayoutAlignMiddle />}
|
|
126
|
+
onClick={e => {
|
|
127
|
+
e.stopPropagation()
|
|
128
|
+
diagram.align('Middle')
|
|
129
|
+
}} />
|
|
130
|
+
<Action
|
|
131
|
+
label="Align bottom"
|
|
132
|
+
icon={<IconLayoutAlignBottom />}
|
|
133
|
+
onClick={e => {
|
|
134
|
+
e.stopPropagation()
|
|
135
|
+
diagram.align('Bottom')
|
|
136
|
+
}} />
|
|
137
|
+
<Action
|
|
138
|
+
label="Reset all control points"
|
|
139
|
+
icon={<IconRouteOff />}
|
|
140
|
+
onClick={e => {
|
|
141
|
+
e.stopPropagation()
|
|
142
|
+
diagram.resetEdgeControlPoints()
|
|
143
|
+
}} />
|
|
144
|
+
</TooltipGroup>
|
|
145
|
+
</PopoverDropdown>
|
|
146
|
+
</Popover>
|
|
147
|
+
)
|
|
148
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Tooltip as MantineTooltip,
|
|
3
|
+
} from '@mantine/core'
|
|
4
|
+
|
|
5
|
+
export const Tooltip = MantineTooltip.withProps({
|
|
6
|
+
color: 'dark',
|
|
7
|
+
fz: 'xs',
|
|
8
|
+
openDelay: 600,
|
|
9
|
+
closeDelay: 120,
|
|
10
|
+
label: '',
|
|
11
|
+
children: null,
|
|
12
|
+
offset: 8,
|
|
13
|
+
position: 'right',
|
|
14
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditorPanel } from './EditorPanel'
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { css } from '@likec4/styles/css'
|
|
2
|
+
|
|
3
|
+
export const navigationButtons = css({
|
|
4
|
+
gap: 'xxs',
|
|
5
|
+
_empty: {
|
|
6
|
+
display: 'none',
|
|
7
|
+
},
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export const panel = css({
|
|
11
|
+
top: 'md',
|
|
12
|
+
left: 'md',
|
|
13
|
+
margin: '0',
|
|
14
|
+
pointerEvents: 'none',
|
|
15
|
+
'& :where(button, .action-icon, [role=\'dialog\'])': {
|
|
16
|
+
pointerEvents: 'all',
|
|
17
|
+
},
|
|
18
|
+
['& .action-icon']: {
|
|
19
|
+
['--ai-size']: '2rem',
|
|
20
|
+
},
|
|
21
|
+
['& .tabler-icon']: {
|
|
22
|
+
width: '65%',
|
|
23
|
+
height: '65%',
|
|
24
|
+
},
|
|
25
|
+
_reduceGraphics: {
|
|
26
|
+
'& .action-icon': {
|
|
27
|
+
'--ai-radius': '0px',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
export const actionIconGroup = css({
|
|
33
|
+
shadow: {
|
|
34
|
+
base: 'md',
|
|
35
|
+
_whenPanning: 'none',
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
export const autolayoutIcon = css({
|
|
40
|
+
['& .tabler-icon']: {
|
|
41
|
+
width: '65%',
|
|
42
|
+
height: '65%',
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
export const autolayoutButton = css({
|
|
47
|
+
flex: '1 1 40%',
|
|
48
|
+
textAlign: 'center',
|
|
49
|
+
fontWeight: 500,
|
|
50
|
+
padding: '[4px 6px]',
|
|
51
|
+
fontSize: '11px',
|
|
52
|
+
zIndex: 1,
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
export const autolayoutIndicator = css({
|
|
56
|
+
background: 'mantine.colors.gray[2]',
|
|
57
|
+
borderRadius: 'sm',
|
|
58
|
+
border: `1px solid`,
|
|
59
|
+
borderColor: 'mantine.colors.gray[4]',
|
|
60
|
+
_dark: {
|
|
61
|
+
background: 'mantine.colors.dark[5]',
|
|
62
|
+
borderColor: 'mantine.colors.dark[4]',
|
|
63
|
+
},
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
export const spacingSliderBody = css({
|
|
67
|
+
position: 'relative',
|
|
68
|
+
borderRadius: 'sm',
|
|
69
|
+
background: 'mantine.colors.gray[3]',
|
|
70
|
+
boxShadow: 'inset 1px 1px 3px 0px #00000024',
|
|
71
|
+
_dark: {
|
|
72
|
+
background: 'mantine.colors.dark[7]',
|
|
73
|
+
},
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
export const spacingSliderThumb = css({
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
width: 8,
|
|
79
|
+
height: 8,
|
|
80
|
+
border: `2px solid`,
|
|
81
|
+
borderColor: 'mantine.colors.gray[5]',
|
|
82
|
+
borderRadius: 3,
|
|
83
|
+
transform: 'translate(-50%, -50%)',
|
|
84
|
+
})
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ViewId } from '@likec4/core'
|
|
2
|
+
import { useSelector as useXstateSelector } from '@xstate/react'
|
|
3
|
+
import { shallowEqual } from 'fast-equals'
|
|
4
|
+
import { type DependencyList, createContext, useContext, useMemo } from 'react'
|
|
5
|
+
import type {
|
|
6
|
+
NavigationPanelActorContext,
|
|
7
|
+
NavigationPanelActorEvent,
|
|
8
|
+
NavigationPanelActorRef,
|
|
9
|
+
NavigationPanelActorSnapshot,
|
|
10
|
+
} from './actor'
|
|
11
|
+
|
|
12
|
+
const NavigationPanelActorSafeContext = createContext<NavigationPanelActorRef>(null as any)
|
|
13
|
+
NavigationPanelActorSafeContext.displayName = 'NavigationPanelActorSafeContext'
|
|
14
|
+
|
|
15
|
+
export const NavigationPanelActorContextProvider = NavigationPanelActorSafeContext.Provider
|
|
16
|
+
|
|
17
|
+
export const useNavigationActorRef = (): NavigationPanelActorRef => {
|
|
18
|
+
const ctx = useContext(NavigationPanelActorSafeContext)
|
|
19
|
+
if (ctx === null) {
|
|
20
|
+
throw new Error('NavigationPanelActorRef is not found in the context')
|
|
21
|
+
}
|
|
22
|
+
return ctx
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function useNavigationActorSnapshot<T = unknown>(
|
|
26
|
+
selector: (context: NavigationPanelActorSnapshot) => T,
|
|
27
|
+
compare: (a: NoInfer<T>, b: NoInfer<T>) => boolean = shallowEqual,
|
|
28
|
+
deps?: DependencyList,
|
|
29
|
+
): T {
|
|
30
|
+
const actorRef = useNavigationActorRef()
|
|
31
|
+
return useXstateSelector(actorRef, selector, compare)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function useNavigationActorContext<T = unknown>(
|
|
35
|
+
selector: (context: NavigationPanelActorContext) => T,
|
|
36
|
+
compare: (a: NoInfer<T>, b: NoInfer<T>) => boolean = shallowEqual,
|
|
37
|
+
deps?: DependencyList,
|
|
38
|
+
): T {
|
|
39
|
+
return useNavigationActorSnapshot(snapshot => selector(snapshot.context), compare, deps)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface NavigationActor {
|
|
43
|
+
readonly actorRef: NavigationPanelActorRef
|
|
44
|
+
send: (event: NavigationPanelActorEvent) => void
|
|
45
|
+
selectFolder: (folderPath: string) => void
|
|
46
|
+
selectView: (viewId: ViewId) => void
|
|
47
|
+
/**
|
|
48
|
+
* If the navigation dropdown is opened
|
|
49
|
+
*/
|
|
50
|
+
isOpened: () => boolean
|
|
51
|
+
clearSearch: () => void
|
|
52
|
+
closeDropdown: () => void
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function useNavigationActor(): NavigationActor {
|
|
56
|
+
const actorRef = useNavigationActorRef()
|
|
57
|
+
|
|
58
|
+
return useMemo(() => ({
|
|
59
|
+
actorRef,
|
|
60
|
+
send: (event: NavigationPanelActorEvent) => actorRef.send(event),
|
|
61
|
+
selectFolder: (folderPath: string) => actorRef.send({ type: 'select.folder', folderPath }),
|
|
62
|
+
selectView: (viewId: ViewId) => actorRef.send({ type: 'select.view', viewId }),
|
|
63
|
+
isOpened: () => {
|
|
64
|
+
const snapshot = actorRef.getSnapshot()
|
|
65
|
+
return snapshot.hasTag('active')
|
|
66
|
+
},
|
|
67
|
+
clearSearch: () => actorRef.send({ type: 'searchQuery.change', value: '' }),
|
|
68
|
+
closeDropdown: () => actorRef.send({ type: 'dropdown.dismiss' }),
|
|
69
|
+
}), [actorRef])
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavigationPanel } from './NavigationPanel'
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cva } from '@likec4/styles/css'
|
|
2
|
+
|
|
3
|
+
export const breadcrumbTitle = cva({
|
|
4
|
+
base: {
|
|
5
|
+
fontSize: 'sm',
|
|
6
|
+
fontWeight: '500',
|
|
7
|
+
transition: 'fast',
|
|
8
|
+
color: {
|
|
9
|
+
base: 'mantine.colors.text/90',
|
|
10
|
+
_hover: 'mantine.colors.text',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
truncate: {
|
|
15
|
+
'true': {
|
|
16
|
+
truncate: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
dimmed: {
|
|
20
|
+
'true': {
|
|
21
|
+
color: {
|
|
22
|
+
base: 'mantine.colors.dimmed',
|
|
23
|
+
_hover: 'mantine.colors.text',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
})
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { css } from '@likec4/styles/css'
|
|
2
|
+
import { Box } from '@likec4/styles/jsx'
|
|
3
|
+
import { Badge, Button, Portal } from '@mantine/core'
|
|
4
|
+
import {
|
|
5
|
+
IconPlayerPlayFilled,
|
|
6
|
+
IconPlayerSkipBackFilled,
|
|
7
|
+
IconPlayerSkipForwardFilled,
|
|
8
|
+
IconPlayerStopFilled,
|
|
9
|
+
} from '@tabler/icons-react'
|
|
10
|
+
import { AnimatePresence } from 'motion/react'
|
|
11
|
+
import * as m from 'motion/react-m'
|
|
12
|
+
import { isTruthy } from 'remeda'
|
|
13
|
+
import { useMantinePortalProps } from '../../hooks'
|
|
14
|
+
import { useDiagram, useDiagramContext } from '../../hooks/useDiagram'
|
|
15
|
+
import { Tooltip } from '../_common'
|
|
16
|
+
import { useNavigationActor } from '../hooks'
|
|
17
|
+
|
|
18
|
+
const TriggerWalkthroughButton = Button.withProps({
|
|
19
|
+
// Button is polymorphic, but we dont want it to inherit the motion props
|
|
20
|
+
component: m.button as any as 'button',
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
layoutId: 'trigger-dynamic-walkthrough',
|
|
23
|
+
variant: 'filled',
|
|
24
|
+
size: 'xs',
|
|
25
|
+
fw: '500',
|
|
26
|
+
className: css({
|
|
27
|
+
flexShrink: 0,
|
|
28
|
+
}),
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
export const StartWalkthroughButton = () => {
|
|
32
|
+
const diagram = useDiagram()
|
|
33
|
+
const actor = useNavigationActor()
|
|
34
|
+
return (
|
|
35
|
+
<Tooltip label="Start Dynamic View Walkthrough">
|
|
36
|
+
<TriggerWalkthroughButton
|
|
37
|
+
onClick={e => {
|
|
38
|
+
e.stopPropagation()
|
|
39
|
+
actor.closeDropdown()
|
|
40
|
+
diagram.startWalkthrough()
|
|
41
|
+
}}
|
|
42
|
+
rightSection={<IconPlayerPlayFilled size={10} />}
|
|
43
|
+
>
|
|
44
|
+
Start
|
|
45
|
+
</TriggerWalkthroughButton>
|
|
46
|
+
</Tooltip>
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const PrevNextButton = Button.withProps({
|
|
51
|
+
// Button is polymorphic, but we dont want it to inherit the motion props
|
|
52
|
+
component: m.button as any as 'button',
|
|
53
|
+
variant: 'light',
|
|
54
|
+
size: 'xs',
|
|
55
|
+
fw: '500',
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
const ParallelFrame = () => {
|
|
59
|
+
const { portalProps } = useMantinePortalProps()
|
|
60
|
+
return (
|
|
61
|
+
<Portal {...portalProps}>
|
|
62
|
+
<Box
|
|
63
|
+
css={{
|
|
64
|
+
position: 'absolute',
|
|
65
|
+
margin: '0',
|
|
66
|
+
padding: '0',
|
|
67
|
+
top: '0',
|
|
68
|
+
left: '0',
|
|
69
|
+
width: '100%',
|
|
70
|
+
height: '100%',
|
|
71
|
+
border: `2px solid`,
|
|
72
|
+
borderColor: 'mantine.colors.orange[6]',
|
|
73
|
+
pointerEvents: 'none',
|
|
74
|
+
md: {
|
|
75
|
+
borderWidth: 4,
|
|
76
|
+
},
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
79
|
+
</Box>
|
|
80
|
+
</Portal>
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const ActiveWalkthroughControls = () => {
|
|
85
|
+
const diagram = useDiagram()
|
|
86
|
+
const {
|
|
87
|
+
isParallel,
|
|
88
|
+
hasNext,
|
|
89
|
+
hasPrevious,
|
|
90
|
+
currentStep,
|
|
91
|
+
totalSteps,
|
|
92
|
+
} = useDiagramContext(s => {
|
|
93
|
+
const currentStepIndex = s.xyedges.findIndex(e => e.id === s.activeWalkthrough?.stepId)
|
|
94
|
+
return ({
|
|
95
|
+
isParallel: isTruthy(s.activeWalkthrough?.parallelPrefix),
|
|
96
|
+
hasNext: currentStepIndex < s.xyedges.length - 1,
|
|
97
|
+
hasPrevious: currentStepIndex > 0,
|
|
98
|
+
currentStep: currentStepIndex + 1,
|
|
99
|
+
totalSteps: s.xyedges.length,
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<AnimatePresence propagate>
|
|
105
|
+
<TriggerWalkthroughButton
|
|
106
|
+
key="trigger-dynamic-walkthrough"
|
|
107
|
+
variant="light"
|
|
108
|
+
color="orange"
|
|
109
|
+
mr={'sm'}
|
|
110
|
+
onClick={e => {
|
|
111
|
+
e.stopPropagation()
|
|
112
|
+
diagram.stopWalkthrough()
|
|
113
|
+
}}
|
|
114
|
+
rightSection={<IconPlayerStopFilled size={10} />}
|
|
115
|
+
>
|
|
116
|
+
Stop
|
|
117
|
+
</TriggerWalkthroughButton>
|
|
118
|
+
|
|
119
|
+
<PrevNextButton
|
|
120
|
+
key="prev"
|
|
121
|
+
disabled={!hasPrevious}
|
|
122
|
+
onClick={() => diagram.walkthroughStep('previous')}
|
|
123
|
+
leftSection={<IconPlayerSkipBackFilled size={10} />}
|
|
124
|
+
>
|
|
125
|
+
Previous
|
|
126
|
+
</PrevNextButton>
|
|
127
|
+
|
|
128
|
+
<Badge
|
|
129
|
+
key="step-badge"
|
|
130
|
+
component={m.div}
|
|
131
|
+
size="md"
|
|
132
|
+
radius="sm"
|
|
133
|
+
// fw={500}
|
|
134
|
+
variant={isParallel ? 'gradient' : 'transparent'}
|
|
135
|
+
gradient={{ from: 'red', to: 'orange', deg: 90 }}
|
|
136
|
+
rightSection={
|
|
137
|
+
<m.div
|
|
138
|
+
className={css({
|
|
139
|
+
fontSize: 'xxs',
|
|
140
|
+
display: isParallel ? 'block' : 'none',
|
|
141
|
+
})}>
|
|
142
|
+
parallel
|
|
143
|
+
</m.div>
|
|
144
|
+
}
|
|
145
|
+
className={css({
|
|
146
|
+
alignItems: 'baseline',
|
|
147
|
+
})}
|
|
148
|
+
>
|
|
149
|
+
<m.span>
|
|
150
|
+
{currentStep} / {totalSteps}
|
|
151
|
+
</m.span>
|
|
152
|
+
</Badge>
|
|
153
|
+
|
|
154
|
+
<PrevNextButton
|
|
155
|
+
key="next"
|
|
156
|
+
disabled={!hasNext}
|
|
157
|
+
onClick={() => diagram.walkthroughStep('next')}
|
|
158
|
+
rightSection={<IconPlayerSkipForwardFilled size={10} />}
|
|
159
|
+
>
|
|
160
|
+
Next
|
|
161
|
+
</PrevNextButton>
|
|
162
|
+
{isParallel && <ParallelFrame />}
|
|
163
|
+
</AnimatePresence>
|
|
164
|
+
)
|
|
165
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActiveWalkthroughControls, StartWalkthroughButton } from './ActiveWalkthroughControls'
|
|
@@ -5,10 +5,10 @@ export const backdropOpacity = '--_opacity'
|
|
|
5
5
|
|
|
6
6
|
export const dialog = css({
|
|
7
7
|
boxSizing: 'border-box',
|
|
8
|
-
margin: 0,
|
|
9
|
-
padding: 0,
|
|
8
|
+
margin: '0',
|
|
9
|
+
padding: '0',
|
|
10
10
|
position: 'fixed',
|
|
11
|
-
inset: 0,
|
|
11
|
+
inset: '0',
|
|
12
12
|
width: '100vw',
|
|
13
13
|
height: '100vh',
|
|
14
14
|
maxWidth: '100vw',
|
|
@@ -34,12 +34,12 @@ export const card = css({
|
|
|
34
34
|
border: `none`,
|
|
35
35
|
backgroundImage: `
|
|
36
36
|
linear-gradient(180deg,
|
|
37
|
-
color-mix(in srgb,
|
|
38
|
-
color-mix(in srgb,
|
|
39
|
-
color-mix(in srgb,
|
|
37
|
+
color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent),
|
|
38
|
+
color-mix(in srgb, var(--likec4-palette-fill) 20%, transparent) 8px,
|
|
39
|
+
color-mix(in srgb, var(--likec4-palette-fill) 14%, transparent) 20px,
|
|
40
40
|
transparent 80px
|
|
41
41
|
),
|
|
42
|
-
linear-gradient(180deg,
|
|
42
|
+
linear-gradient(180deg, var(--likec4-palette-fill), var(--likec4-palette-fill) 4px, transparent 4px)
|
|
43
43
|
`,
|
|
44
44
|
'& .react-flow__attribution': {
|
|
45
45
|
display: 'none',
|
|
@@ -99,7 +99,7 @@ export const viewButton = css({
|
|
|
99
99
|
width: '100%',
|
|
100
100
|
background: 'mantine.colors.body',
|
|
101
101
|
borderRadius: 'sm',
|
|
102
|
-
padding: `10px 8px`,
|
|
102
|
+
padding: `[10px 8px]`,
|
|
103
103
|
// gap: 6,
|
|
104
104
|
// alignItems: 'flex-start',
|
|
105
105
|
transition: 'fast',
|
|
@@ -163,8 +163,8 @@ export const tabsList = css({
|
|
|
163
163
|
background: 'mantine.colors.gray[1]',
|
|
164
164
|
borderRadius: 'sm',
|
|
165
165
|
flexWrap: 'nowrap',
|
|
166
|
-
gap: '
|
|
167
|
-
padding: '
|
|
166
|
+
gap: '1.5', // 6px
|
|
167
|
+
padding: '1',
|
|
168
168
|
_dark: {
|
|
169
169
|
background: 'mantine.colors.dark[7]',
|
|
170
170
|
},
|
|
@@ -174,7 +174,7 @@ export const tabsTab = css({
|
|
|
174
174
|
fontSize: 'xs',
|
|
175
175
|
fontWeight: 500,
|
|
176
176
|
flexGrow: 1,
|
|
177
|
-
padding: '6px 8px',
|
|
177
|
+
padding: '[6px 8px]',
|
|
178
178
|
transition: 'fast',
|
|
179
179
|
borderRadius: 'sm',
|
|
180
180
|
color: 'mantine.colors.gray[7]',
|
|
@@ -208,15 +208,15 @@ export const tabsPanel = css({
|
|
|
208
208
|
overflow: 'hidden',
|
|
209
209
|
position: 'relative',
|
|
210
210
|
'&:not(:has(.mantine-ScrollArea-root))': {
|
|
211
|
-
paddingLeft: '
|
|
212
|
-
paddingRight: '
|
|
211
|
+
paddingLeft: '1',
|
|
212
|
+
paddingRight: '1',
|
|
213
213
|
},
|
|
214
214
|
'& .mantine-ScrollArea-root': {
|
|
215
215
|
width: '100%',
|
|
216
216
|
height: '100%',
|
|
217
217
|
'& > div': {
|
|
218
|
-
paddingLeft: '
|
|
219
|
-
paddingRight: '
|
|
218
|
+
paddingLeft: '1',
|
|
219
|
+
paddingRight: '1',
|
|
220
220
|
},
|
|
221
221
|
},
|
|
222
222
|
})
|
|
@@ -246,8 +246,8 @@ export const resizeHandle = css({
|
|
|
246
246
|
borderTop: 'none',
|
|
247
247
|
borderLeft: 'none',
|
|
248
248
|
borderRadius: '2px',
|
|
249
|
-
bottom: '
|
|
250
|
-
right: '
|
|
249
|
+
bottom: '0.5',
|
|
250
|
+
right: '0.5',
|
|
251
251
|
transition: 'fast',
|
|
252
252
|
cursor: 'se-resize',
|
|
253
253
|
_hover: {
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
type ViewId,
|
|
10
10
|
} from '@likec4/core/types'
|
|
11
11
|
import { css, cx } from '@likec4/styles/css'
|
|
12
|
+
import { HStack } from '@likec4/styles/jsx'
|
|
12
13
|
import {
|
|
13
14
|
type TextProps,
|
|
14
15
|
ActionIcon,
|
|
@@ -266,12 +267,8 @@ export function ElementDetailsCard({
|
|
|
266
267
|
dragElastic={0}
|
|
267
268
|
dragMomentum={false}
|
|
268
269
|
dragListener={false}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
likec4Palette: nodeModel?.color ?? elementModel.color,
|
|
272
|
-
}),
|
|
273
|
-
styles.card,
|
|
274
|
-
)}
|
|
270
|
+
data-likec4-color={nodeModel?.color ?? elementModel.color}
|
|
271
|
+
className={styles.card}
|
|
275
272
|
initial={{
|
|
276
273
|
top,
|
|
277
274
|
left,
|
|
@@ -349,9 +346,7 @@ export function ElementDetailsCard({
|
|
|
349
346
|
<ElementTag
|
|
350
347
|
key={tag}
|
|
351
348
|
tag={tag}
|
|
352
|
-
|
|
353
|
-
cursor: 'pointer',
|
|
354
|
-
}}
|
|
349
|
+
cursor="pointer"
|
|
355
350
|
onClick={e => {
|
|
356
351
|
e.stopPropagation()
|
|
357
352
|
diagram.openSearch(`#${tag}`)
|
|
@@ -446,9 +441,9 @@ export function ElementDetailsCard({
|
|
|
446
441
|
{elementModel.links.length > 0 && (
|
|
447
442
|
<>
|
|
448
443
|
<PropertyLabel>links</PropertyLabel>
|
|
449
|
-
<
|
|
444
|
+
<HStack gap={'xs'} flexWrap="wrap">
|
|
450
445
|
{elementModel.links.map((link, i) => <Link key={i} value={link} />)}
|
|
451
|
-
</
|
|
446
|
+
</HStack>
|
|
452
447
|
</>
|
|
453
448
|
)}
|
|
454
449
|
{elementModel.$element.metadata && <ElementMetata value={elementModel.$element.metadata} />}
|
|
@@ -609,7 +604,7 @@ function ElementMetata({
|
|
|
609
604
|
gap: `[4px 4px]`,
|
|
610
605
|
alignItems: 'baseline',
|
|
611
606
|
justifyItems: 'stretch',
|
|
612
|
-
paddingRight: '
|
|
607
|
+
paddingRight: 'xxs',
|
|
613
608
|
})}>
|
|
614
609
|
{entries(metadata).map(([key, value]) => (
|
|
615
610
|
<div
|
|
@@ -654,7 +649,7 @@ function ElementMetata({
|
|
|
654
649
|
<div
|
|
655
650
|
className={css({
|
|
656
651
|
fontSize: 'sm',
|
|
657
|
-
padding: '
|
|
652
|
+
padding: 'xxs',
|
|
658
653
|
whiteSpace: 'pre',
|
|
659
654
|
fontFamily: '[var(--mantine-font-family-monospace)]',
|
|
660
655
|
userSelect: 'all',
|
|
@@ -8,8 +8,8 @@ export const treeNode = css({
|
|
|
8
8
|
|
|
9
9
|
export const treeNodeLabel = css({
|
|
10
10
|
cursor: 'default',
|
|
11
|
-
marginTop: 0,
|
|
12
|
-
marginBottom: 0,
|
|
11
|
+
marginTop: '0',
|
|
12
|
+
marginBottom: '0',
|
|
13
13
|
})
|
|
14
14
|
|
|
15
15
|
const label = css({
|
|
@@ -44,8 +44,8 @@ export const instanceLabel = cx(
|
|
|
44
44
|
justifyContent: 'stretch',
|
|
45
45
|
flexWrap: 'nowrap',
|
|
46
46
|
height: '36px',
|
|
47
|
-
paddingInlineStart: '16px',
|
|
48
|
-
paddingInlineEnd: '
|
|
47
|
+
paddingInlineStart: '[16px]',
|
|
48
|
+
paddingInlineEnd: '2.5', // 10px
|
|
49
49
|
borderRadius: 'sm',
|
|
50
50
|
alignItems: 'center',
|
|
51
51
|
color: 'mantine.colors.gray[7]',
|