@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
|
@@ -5,11 +5,11 @@ export const fqn = css({
|
|
|
5
5
|
fontSize: 'sm',
|
|
6
6
|
fontWeight: 500,
|
|
7
7
|
whiteSpace: 'nowrap',
|
|
8
|
-
padding: '3px 6px',
|
|
8
|
+
padding: '[3px 6px]',
|
|
9
9
|
borderRadius: 3,
|
|
10
|
-
background: `likec4
|
|
10
|
+
background: `var(--likec4-palette-fill)/75`,
|
|
11
11
|
lineHeight: 1.2,
|
|
12
|
-
color: 'likec4
|
|
12
|
+
color: 'var(--likec4-palette-hiContrast)',
|
|
13
13
|
// selectors: {
|
|
14
14
|
// [`${whereDark} &`]: {
|
|
15
15
|
// }
|
|
@@ -55,9 +55,9 @@ export const panelScope = css({
|
|
|
55
55
|
_before: {
|
|
56
56
|
content: '"scope:"',
|
|
57
57
|
position: 'absolute',
|
|
58
|
-
top: 0,
|
|
59
|
-
left:
|
|
60
|
-
fontSize: '
|
|
58
|
+
top: '0',
|
|
59
|
+
left: '2',
|
|
60
|
+
fontSize: 'xxs',
|
|
61
61
|
fontWeight: 500,
|
|
62
62
|
lineHeight: '1',
|
|
63
63
|
color: 'mantine.colors.dimmed',
|
|
@@ -75,7 +75,7 @@ export const edgeNum = css({
|
|
|
75
75
|
display: 'inline-block',
|
|
76
76
|
fontSize: 'xl',
|
|
77
77
|
fontWeight: 600,
|
|
78
|
-
padding: '1px 5px',
|
|
78
|
+
padding: '[1px 5px]',
|
|
79
79
|
minWidth: 24,
|
|
80
80
|
textAlign: 'center',
|
|
81
81
|
borderRadius: 'sm',
|
|
@@ -10,7 +10,7 @@ const inset = '--_inset'
|
|
|
10
10
|
const borderRadius = '--_border-radius'
|
|
11
11
|
const dialog = css.raw({
|
|
12
12
|
boxSizing: 'border-box',
|
|
13
|
-
margin: 0,
|
|
13
|
+
margin: '0',
|
|
14
14
|
position: 'fixed',
|
|
15
15
|
width: '100vw',
|
|
16
16
|
height: '100vh',
|
|
@@ -30,13 +30,13 @@ const dialog = css.raw({
|
|
|
30
30
|
_backdrop: {
|
|
31
31
|
cursor: 'zoom-out',
|
|
32
32
|
},
|
|
33
|
-
inset: 0,
|
|
34
|
-
padding: 0,
|
|
33
|
+
inset: '0',
|
|
34
|
+
padding: '0',
|
|
35
35
|
})
|
|
36
36
|
|
|
37
37
|
const body = css.raw({
|
|
38
38
|
position: 'relative',
|
|
39
|
-
containerName: '
|
|
39
|
+
containerName: 'likec4-dialog',
|
|
40
40
|
containerType: 'size',
|
|
41
41
|
border: `0 solid transparent`,
|
|
42
42
|
overflow: 'hidden',
|
|
@@ -60,7 +60,7 @@ export const overlay = sva({
|
|
|
60
60
|
width: 'calc(100vw - 2 * var(--_inset))',
|
|
61
61
|
height: 'calc(100vh - var(--_offset) - var(--_inset))',
|
|
62
62
|
[borderRadius]: '6px',
|
|
63
|
-
padding: '
|
|
63
|
+
padding: '1.5', // 6px
|
|
64
64
|
[offset]: '1rem',
|
|
65
65
|
},
|
|
66
66
|
md: {
|
|
@@ -81,8 +81,8 @@ export const overlay = sva({
|
|
|
81
81
|
},
|
|
82
82
|
true: {
|
|
83
83
|
dialog: {
|
|
84
|
-
inset: 0,
|
|
85
|
-
padding: 0,
|
|
84
|
+
inset: '0',
|
|
85
|
+
padding: '0',
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
88
|
},
|
|
@@ -3,7 +3,7 @@ import { css, cx } from '@likec4/styles/css'
|
|
|
3
3
|
const edgeEnpoint = css.raw({
|
|
4
4
|
display: 'inline-flex',
|
|
5
5
|
alignItems: 'center',
|
|
6
|
-
padding: '6px 2px 0 2px',
|
|
6
|
+
padding: '[6px 2px 0 2px]',
|
|
7
7
|
'& .mantine-Text-root': {
|
|
8
8
|
color: 'mantine.colors.text/90',
|
|
9
9
|
fontSize: 'xs',
|
|
@@ -13,7 +13,7 @@ const edgeEnpoint = css.raw({
|
|
|
13
13
|
})
|
|
14
14
|
|
|
15
15
|
export const edgeSource = css({
|
|
16
|
-
paddingLeft:
|
|
16
|
+
paddingLeft: '1',
|
|
17
17
|
gridColumn: 1,
|
|
18
18
|
}, edgeEnpoint)
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ export const edgeArrow = css({
|
|
|
23
23
|
|
|
24
24
|
export const edgeTarget = css({
|
|
25
25
|
gridColumn: 3,
|
|
26
|
-
paddingRight:
|
|
26
|
+
paddingRight: '1',
|
|
27
27
|
}, edgeEnpoint)
|
|
28
28
|
|
|
29
29
|
const edgeLabelclass = 'likec4-edge-label'
|
|
@@ -35,8 +35,8 @@ export const edgeLabel = cx(
|
|
|
35
35
|
gridColumnEnd: 4,
|
|
36
36
|
borderBottom: `1px solid`,
|
|
37
37
|
borderBottomColor: 'mantine.colors.defaultBorder',
|
|
38
|
-
marginBottom: '
|
|
39
|
-
padding: '0 4px 5px 4px',
|
|
38
|
+
marginBottom: '0',
|
|
39
|
+
padding: '[0 4px 5px 4px]',
|
|
40
40
|
width: '100%',
|
|
41
41
|
'& .mantine-Text-root': {
|
|
42
42
|
fontSize: 'xxs',
|
|
@@ -51,7 +51,7 @@ export const edgeRow = css({
|
|
|
51
51
|
display: 'contents',
|
|
52
52
|
[`&:last-child .${edgeLabelclass}`]: {
|
|
53
53
|
borderBottom: 'none',
|
|
54
|
-
marginBottom: 0,
|
|
54
|
+
marginBottom: '0',
|
|
55
55
|
},
|
|
56
56
|
'& > *': {
|
|
57
57
|
transition: 'all 0.15s ease-in',
|
|
@@ -67,7 +67,7 @@ export const edgeGrid = css({
|
|
|
67
67
|
display: 'grid',
|
|
68
68
|
gridTemplateColumns: '1fr 30px 1fr',
|
|
69
69
|
gridAutoRows: 'min-content max-content',
|
|
70
|
-
gap: 0,
|
|
70
|
+
gap: '0',
|
|
71
71
|
alignItems: 'stretch',
|
|
72
72
|
})
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ export const edgeDataGrid = css({
|
|
|
75
75
|
display: 'grid',
|
|
76
76
|
gridTemplateColumns: 'min-content 1fr',
|
|
77
77
|
gridAutoRows: 'min-content max-content',
|
|
78
|
-
gap: '10px 12px',
|
|
78
|
+
gap: '[10px 12px]',
|
|
79
79
|
alignItems: 'baseline',
|
|
80
80
|
justifyItems: 'start',
|
|
81
81
|
})
|
package/src/search/Search.tsx
CHANGED
|
@@ -40,8 +40,8 @@ const body = css({
|
|
|
40
40
|
// containerType: 'size',
|
|
41
41
|
// position: 'fixed',
|
|
42
42
|
// zIndex: 901,
|
|
43
|
-
// top: 0,
|
|
44
|
-
// left: 0,
|
|
43
|
+
// top: '0',
|
|
44
|
+
// left: '0',
|
|
45
45
|
width: '100%',
|
|
46
46
|
height: '100%',
|
|
47
47
|
maxHeight: '100vh',
|
|
@@ -50,10 +50,10 @@ const body = css({
|
|
|
50
50
|
flexDirection: 'column',
|
|
51
51
|
justifyContent: 'stretch',
|
|
52
52
|
gap: 'sm',
|
|
53
|
-
paddingTop:
|
|
54
|
-
paddingLeft:
|
|
55
|
-
paddingRight:
|
|
56
|
-
paddingBottom:
|
|
53
|
+
paddingTop: '[20px]',
|
|
54
|
+
paddingLeft: 'md',
|
|
55
|
+
paddingRight: 'md',
|
|
56
|
+
paddingBottom: 'sm',
|
|
57
57
|
background: '[transparent]',
|
|
58
58
|
// backgroundColor: {
|
|
59
59
|
// _dark: `[rgb(34 34 34 / 0.95)]`,
|
|
@@ -7,7 +7,7 @@ const whenContainerIsNarrow = `@container likec4-tree (max-width: 450px)`
|
|
|
7
7
|
|
|
8
8
|
export const treeNode = css({
|
|
9
9
|
outline: 'none',
|
|
10
|
-
marginBottom: '
|
|
10
|
+
marginBottom: '2',
|
|
11
11
|
})
|
|
12
12
|
export const treeRoot = css(
|
|
13
13
|
container.raw({
|
|
@@ -22,10 +22,10 @@ export const treeLabel = css({
|
|
|
22
22
|
display: 'flex',
|
|
23
23
|
alignItems: 'baseline',
|
|
24
24
|
outline: 'none !important',
|
|
25
|
-
gap: '
|
|
25
|
+
gap: '1',
|
|
26
26
|
})
|
|
27
27
|
export const treeSubtree = css({
|
|
28
|
-
marginTop: '
|
|
28
|
+
marginTop: '2',
|
|
29
29
|
})
|
|
30
30
|
|
|
31
31
|
// const iconSize = '--likec4-icon-size'
|
|
@@ -44,7 +44,7 @@ export const elementTitleAndId = css({
|
|
|
44
44
|
[whenContainerIsNarrow]: {
|
|
45
45
|
flexDirection: 'column-reverse',
|
|
46
46
|
alignItems: 'flex-start',
|
|
47
|
-
gap:
|
|
47
|
+
gap: '0.5',
|
|
48
48
|
},
|
|
49
49
|
})
|
|
50
50
|
|
|
@@ -56,7 +56,7 @@ export const elementId = css({
|
|
|
56
56
|
display: 'block',
|
|
57
57
|
fontWeight: 500,
|
|
58
58
|
whiteSpace: 'nowrap',
|
|
59
|
-
padding: '1px 5px',
|
|
59
|
+
padding: '[1px 5px]',
|
|
60
60
|
borderRadius: '4px',
|
|
61
61
|
background: `mantine.colors.dark[9]/30`,
|
|
62
62
|
_light: {
|
|
@@ -29,13 +29,13 @@ export function SearchByTags() {
|
|
|
29
29
|
ref={ref}
|
|
30
30
|
css={{
|
|
31
31
|
gap: 'md',
|
|
32
|
-
paddingLeft:
|
|
32
|
+
paddingLeft: '[48px]',
|
|
33
33
|
flexWrap: 'nowrap',
|
|
34
34
|
}}
|
|
35
35
|
>
|
|
36
36
|
<HStack
|
|
37
37
|
css={{
|
|
38
|
-
gap:
|
|
38
|
+
gap: '1.5', // 6px
|
|
39
39
|
flexWrap: 'wrap',
|
|
40
40
|
opacity: isFiltered ? 1 : .3,
|
|
41
41
|
grayscale: isFiltered ? 0 : .9,
|
|
@@ -43,7 +43,7 @@ export const ViewsColumn = memo(() => {
|
|
|
43
43
|
if (search.startsWith('#')) {
|
|
44
44
|
return view.tags.some((tag) => tag.toLocaleLowerCase().includes(search.slice(1)))
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return `${view.title} ${view.$view.description}`.toLocaleLowerCase().includes(search)
|
|
47
47
|
})
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -23,7 +23,7 @@ export const viewButton = cx(
|
|
|
23
23
|
// export const viewDescription = css(description)
|
|
24
24
|
|
|
25
25
|
export const viewButtonDescription = css({
|
|
26
|
-
marginTop: '
|
|
26
|
+
marginTop: '1',
|
|
27
27
|
// transition: transitions.fast,
|
|
28
28
|
// color: `[var(${descriptionColor}, {colors.mantine.colors.dimmed})]`,
|
|
29
29
|
fontSize: '13px',
|
|
@@ -17,9 +17,9 @@ const button = css.raw({
|
|
|
17
17
|
width: '100%',
|
|
18
18
|
background: 'mantine.colors.body',
|
|
19
19
|
rounded: 'sm',
|
|
20
|
-
padding: `12px 8px 12px 14px`,
|
|
20
|
+
padding: `[12px 8px 12px 14px]`,
|
|
21
21
|
minHeight: '60px',
|
|
22
|
-
gap:
|
|
22
|
+
gap: '2',
|
|
23
23
|
// alignItems: 'flex-start',
|
|
24
24
|
// transition: `all 50ms ${easings.inOut}`,
|
|
25
25
|
border: `1px solid`,
|
|
@@ -139,7 +139,7 @@ const descriptionColor = css.raw({
|
|
|
139
139
|
})
|
|
140
140
|
|
|
141
141
|
const description = css.raw(descriptionColor, {
|
|
142
|
-
marginTop: '
|
|
142
|
+
marginTop: '1',
|
|
143
143
|
fontSize: '12px',
|
|
144
144
|
lineHeight: '1.4',
|
|
145
145
|
|
|
@@ -18,7 +18,7 @@ export const input = css({
|
|
|
18
18
|
|
|
19
19
|
export const pickviewBackdrop = css({
|
|
20
20
|
position: 'absolute',
|
|
21
|
-
inset: 0,
|
|
21
|
+
inset: '0',
|
|
22
22
|
width: '100%',
|
|
23
23
|
height: '100%',
|
|
24
24
|
backgroundColor: '[rgb(34 34 34 / 0.7)]',
|
|
@@ -31,8 +31,8 @@ export const pickviewBackdrop = css({
|
|
|
31
31
|
})
|
|
32
32
|
export const pickview = css({
|
|
33
33
|
position: 'absolute',
|
|
34
|
-
top: '2rem',
|
|
35
|
-
left: '50%',
|
|
34
|
+
top: '[2rem]',
|
|
35
|
+
left: '[50%]',
|
|
36
36
|
width: '100%',
|
|
37
37
|
maxWidth: '600px',
|
|
38
38
|
minWidth: '200px',
|
|
@@ -41,9 +41,9 @@ export const pickview = css({
|
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
export const pickviewGroup = css({
|
|
44
|
-
marginTop: '
|
|
44
|
+
marginTop: '2',
|
|
45
45
|
'& + &': {
|
|
46
|
-
marginTop: '32px',
|
|
46
|
+
marginTop: '[32px]',
|
|
47
47
|
},
|
|
48
48
|
})
|
|
49
49
|
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import type { DiagramView, WhereOperator } from '@likec4/core/types'
|
|
2
|
+
import { useCustomCompareEffect } from '@react-hookz/web'
|
|
2
3
|
import { useActorRef, useSelector } from '@xstate/react'
|
|
3
4
|
import { useStoreApi } from '@xyflow/react'
|
|
4
|
-
import { shallowEqual } from 'fast-equals'
|
|
5
|
-
import { type PropsWithChildren, useEffect, useRef } from 'react'
|
|
6
|
-
import {
|
|
5
|
+
import { deepEqual, shallowEqual } from 'fast-equals'
|
|
6
|
+
import { type PropsWithChildren, useEffect, useRef, useState } from 'react'
|
|
7
|
+
import { ErrorBoundary } from '../components/ErrorFallback'
|
|
8
|
+
import { useDiagramEventHandlers } from '../context/DiagramEventHandlers'
|
|
7
9
|
import { DiagramFeatures, useEnabledFeatures } from '../context/DiagramFeatures'
|
|
8
10
|
import { DiagramActorContextProvider } from '../hooks/safeContext'
|
|
9
|
-
import
|
|
11
|
+
import { useCurrentViewId } from '../hooks/useCurrentViewId'
|
|
12
|
+
import type { ViewPadding } from '../LikeC4Diagram.props'
|
|
10
13
|
import type { Types } from '../likec4diagram/types'
|
|
11
14
|
import { useViewToNodesEdges } from '../likec4diagram/useViewToNodesEdges'
|
|
15
|
+
import { CurrentViewModelContext } from '../likec4model/LikeC4ModelContext'
|
|
16
|
+
import { useLikeC4Model } from '../likec4model/useLikeC4Model'
|
|
12
17
|
import { type DiagramMachine, diagramMachine } from './diagram-machine'
|
|
13
18
|
import { syncManualLayoutActorLogic } from './syncManualLayoutActor'
|
|
14
|
-
import type { DiagramActorSnapshot } from './types'
|
|
19
|
+
import type { DiagramActorRef, DiagramActorSnapshot } from './types'
|
|
15
20
|
|
|
16
21
|
const selectToggledFeatures = (state: DiagramActorSnapshot) => {
|
|
17
|
-
if (state.context.features.enableReadOnly) {
|
|
22
|
+
if (state.context.features.enableReadOnly || state.context.activeWalkthrough) {
|
|
18
23
|
return {
|
|
19
24
|
...state.context.toggledFeatures,
|
|
20
25
|
enableReadOnly: true,
|
|
@@ -35,32 +40,16 @@ export function DiagramActorProvider({
|
|
|
35
40
|
view: DiagramView
|
|
36
41
|
zoomable: boolean
|
|
37
42
|
pannable: boolean
|
|
38
|
-
fitViewPadding:
|
|
43
|
+
fitViewPadding: ViewPadding
|
|
39
44
|
nodesSelectable: boolean
|
|
40
45
|
where: WhereOperator | null
|
|
41
46
|
}>) {
|
|
42
|
-
const handlersRef =
|
|
47
|
+
const { handlersRef } = useDiagramEventHandlers()
|
|
43
48
|
const xystore = useStoreApi<Types.Node, Types.Edge>()
|
|
44
49
|
|
|
45
50
|
const machineRef = useRef<DiagramMachine | null>(null)
|
|
46
51
|
if (!machineRef.current) {
|
|
47
52
|
machineRef.current = diagramMachine.provide({
|
|
48
|
-
actions: {
|
|
49
|
-
'trigger:NavigateTo': ((_, { viewId }) => {
|
|
50
|
-
// Slightly defer callback for better responsiveness
|
|
51
|
-
setTimeout(() => {
|
|
52
|
-
handlersRef.current.onNavigateTo?.(viewId)
|
|
53
|
-
}, 40)
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
'trigger:OnChange': ((_, params) => {
|
|
57
|
-
handlersRef.current.onChange?.(params)
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
'trigger:OpenSource': ((_, params) => {
|
|
61
|
-
handlersRef.current.onOpenSource?.(params)
|
|
62
|
-
}),
|
|
63
|
-
},
|
|
64
53
|
actors: {
|
|
65
54
|
syncManualLayoutActorLogic: syncManualLayoutActorLogic.provide({
|
|
66
55
|
actions: {
|
|
@@ -90,14 +79,24 @@ export function DiagramActorProvider({
|
|
|
90
79
|
},
|
|
91
80
|
)
|
|
92
81
|
|
|
82
|
+
useActorEventHandlers(actorRef)
|
|
83
|
+
|
|
93
84
|
const features = useEnabledFeatures()
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
85
|
+
useCustomCompareEffect(
|
|
86
|
+
() => {
|
|
87
|
+
actorRef.send({ type: 'update.features', features })
|
|
88
|
+
},
|
|
89
|
+
[features],
|
|
90
|
+
shallowEqual,
|
|
91
|
+
)
|
|
97
92
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
useCustomCompareEffect(
|
|
94
|
+
() => {
|
|
95
|
+
actorRef.send({ type: 'update.inputs', inputs: { zoomable, pannable, fitViewPadding, nodesSelectable } })
|
|
96
|
+
},
|
|
97
|
+
[zoomable, pannable, fitViewPadding, nodesSelectable],
|
|
98
|
+
deepEqual,
|
|
99
|
+
)
|
|
101
100
|
|
|
102
101
|
const { xyedges, xynodes } = useViewToNodesEdges({
|
|
103
102
|
view,
|
|
@@ -114,8 +113,82 @@ export function DiagramActorProvider({
|
|
|
114
113
|
return (
|
|
115
114
|
<DiagramActorContextProvider value={actorRef}>
|
|
116
115
|
<DiagramFeatures overrides={toggledFeatures}>
|
|
117
|
-
|
|
116
|
+
<ErrorBoundary>
|
|
117
|
+
<CurrentViewModelProvider>
|
|
118
|
+
{children}
|
|
119
|
+
</CurrentViewModelProvider>
|
|
120
|
+
</ErrorBoundary>
|
|
118
121
|
</DiagramFeatures>
|
|
119
122
|
</DiagramActorContextProvider>
|
|
120
123
|
)
|
|
121
124
|
}
|
|
125
|
+
|
|
126
|
+
function CurrentViewModelProvider({
|
|
127
|
+
children,
|
|
128
|
+
}: PropsWithChildren) {
|
|
129
|
+
const viewId = useCurrentViewId()
|
|
130
|
+
const likec4model = useLikeC4Model()
|
|
131
|
+
const [viewmodel, setViewmodel] = useState(() => likec4model.view(viewId))
|
|
132
|
+
|
|
133
|
+
useEffect(() => {
|
|
134
|
+
setViewmodel(current => {
|
|
135
|
+
const nextviewmodel = likec4model.findView(viewId)
|
|
136
|
+
if (!nextviewmodel) {
|
|
137
|
+
console.error(`View "${viewId}" not found in likec4model, current viewmodel: ${current.id}`, {
|
|
138
|
+
currentViewModel: current,
|
|
139
|
+
likec4model,
|
|
140
|
+
})
|
|
141
|
+
return current
|
|
142
|
+
}
|
|
143
|
+
return nextviewmodel
|
|
144
|
+
})
|
|
145
|
+
}, [likec4model, viewId])
|
|
146
|
+
|
|
147
|
+
if (!viewmodel.isDiagram()) {
|
|
148
|
+
console.warn(`View "${viewId}" is not diagram.\nMake sure you have LikeC4ModelProvider with layouted model.`)
|
|
149
|
+
}
|
|
150
|
+
return (
|
|
151
|
+
<CurrentViewModelContext.Provider value={viewmodel}>
|
|
152
|
+
{children}
|
|
153
|
+
</CurrentViewModelContext.Provider>
|
|
154
|
+
)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function useActorEventHandlers(
|
|
158
|
+
actorRef: DiagramActorRef,
|
|
159
|
+
) {
|
|
160
|
+
const {
|
|
161
|
+
onChange,
|
|
162
|
+
onNavigateTo,
|
|
163
|
+
onOpenSource,
|
|
164
|
+
} = useDiagramEventHandlers()
|
|
165
|
+
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
if (!onChange) return
|
|
168
|
+
const subscription = actorRef.on('viewChange', ({ change }) => onChange({ change }))
|
|
169
|
+
return () => subscription.unsubscribe()
|
|
170
|
+
}, [actorRef, onChange])
|
|
171
|
+
|
|
172
|
+
useEffect(() => {
|
|
173
|
+
if (!onNavigateTo) return
|
|
174
|
+
let frame: number
|
|
175
|
+
|
|
176
|
+
const subscription = actorRef.on('navigateTo', ({ viewId }) => {
|
|
177
|
+
cancelAnimationFrame(frame)
|
|
178
|
+
// Slightly defer callback for better responsiveness
|
|
179
|
+
frame = requestAnimationFrame(() => {
|
|
180
|
+
onNavigateTo(viewId)
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
return () => {
|
|
184
|
+
cancelAnimationFrame(frame)
|
|
185
|
+
subscription.unsubscribe()
|
|
186
|
+
}
|
|
187
|
+
}, [actorRef, onNavigateTo])
|
|
188
|
+
|
|
189
|
+
useEffect(() => {
|
|
190
|
+
if (!onOpenSource) return
|
|
191
|
+
const subscription = actorRef.on('openSource', ({ params }) => onOpenSource(params))
|
|
192
|
+
return () => subscription.unsubscribe()
|
|
193
|
+
}, [actorRef, onOpenSource])
|
|
194
|
+
}
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
assertEvent,
|
|
36
36
|
assign,
|
|
37
37
|
cancel,
|
|
38
|
+
emit,
|
|
38
39
|
enqueueActions,
|
|
39
40
|
or,
|
|
40
41
|
raise,
|
|
@@ -46,7 +47,7 @@ import {
|
|
|
46
47
|
import { MinZoom } from '../base/const'
|
|
47
48
|
import { Base } from '../base/types'
|
|
48
49
|
import { type EnabledFeatures, type FeatureName, AllDisabled } from '../context/DiagramFeatures'
|
|
49
|
-
import type { OpenSourceParams,
|
|
50
|
+
import type { OpenSourceParams, ViewPadding } from '../LikeC4Diagram.props'
|
|
50
51
|
import type { Types } from '../likec4diagram/types'
|
|
51
52
|
import { createLayoutConstraints } from '../likec4diagram/useLayoutConstraints'
|
|
52
53
|
import { overlaysActorLogic } from '../overlays/overlaysActor'
|
|
@@ -85,7 +86,7 @@ export interface Input {
|
|
|
85
86
|
xystore: XYStoreApi
|
|
86
87
|
zoomable: boolean
|
|
87
88
|
pannable: boolean
|
|
88
|
-
fitViewPadding:
|
|
89
|
+
fitViewPadding: ViewPadding
|
|
89
90
|
nodesSelectable: boolean
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -179,6 +180,11 @@ export type Events =
|
|
|
179
180
|
| { type: 'tag.unhighlight' }
|
|
180
181
|
| { type: 'toggle.feature'; feature: FeatureName; forceValue?: boolean }
|
|
181
182
|
|
|
183
|
+
export type EmittedEvents =
|
|
184
|
+
| { type: 'navigateTo'; viewId: ViewId }
|
|
185
|
+
| { type: 'viewChange'; change: ViewChange }
|
|
186
|
+
| { type: 'openSource'; params: OpenSourceParams }
|
|
187
|
+
|
|
182
188
|
export type ActionArg = { context: Context; event: Events }
|
|
183
189
|
|
|
184
190
|
// TODO: naming convention for actors
|
|
@@ -193,6 +199,7 @@ const _diagramMachine = setup({
|
|
|
193
199
|
search: 'searchActorLogic'
|
|
194
200
|
},
|
|
195
201
|
events: {} as Events,
|
|
202
|
+
emitted: {} as EmittedEvents,
|
|
196
203
|
},
|
|
197
204
|
actors: {
|
|
198
205
|
syncManualLayoutActorLogic,
|
|
@@ -241,14 +248,20 @@ const _diagramMachine = setup({
|
|
|
241
248
|
},
|
|
242
249
|
},
|
|
243
250
|
actions: {
|
|
244
|
-
'trigger:NavigateTo': (
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
'trigger:NavigateTo': emit(({ context }) => ({
|
|
252
|
+
type: 'navigateTo',
|
|
253
|
+
viewId: nonNullable(context.lastOnNavigate, 'Invalid state, lastOnNavigate is null').toView,
|
|
254
|
+
})),
|
|
255
|
+
|
|
256
|
+
'trigger:OnChange': emit((_, _params: { change: ViewChange }) => ({
|
|
257
|
+
type: 'viewChange',
|
|
258
|
+
change: _params.change,
|
|
259
|
+
})),
|
|
260
|
+
|
|
261
|
+
'trigger:OpenSource': emit((_, _params: OpenSourceParams) => ({
|
|
262
|
+
type: 'openSource',
|
|
263
|
+
params: _params,
|
|
264
|
+
})),
|
|
252
265
|
|
|
253
266
|
'assign lastClickedNode': assign(({ context, event }) => {
|
|
254
267
|
assertEvent(event, 'xyflow.nodeClick')
|
|
@@ -1023,14 +1036,7 @@ const _diagramMachine = setup({
|
|
|
1023
1036
|
'closeAllOverlays',
|
|
1024
1037
|
'closeSearch',
|
|
1025
1038
|
'stopSyncLayout',
|
|
1026
|
-
|
|
1027
|
-
enqueue({
|
|
1028
|
-
type: 'trigger:NavigateTo',
|
|
1029
|
-
params: {
|
|
1030
|
-
viewId: nonNullable(context.lastOnNavigate, 'Invalid state, lastOnNavigate is null').toView,
|
|
1031
|
-
},
|
|
1032
|
-
})
|
|
1033
|
-
}),
|
|
1039
|
+
'trigger:NavigateTo',
|
|
1034
1040
|
],
|
|
1035
1041
|
on: {
|
|
1036
1042
|
'update.view': {
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import '@likec4/core';
|
|
3
|
-
import { useMantineStyleNonce } from '@mantine/core';
|
|
4
|
-
import { memo, useState } from 'react';
|
|
5
|
-
import { isEmpty, entries } from 'remeda';
|
|
6
|
-
import { useLikeC4Specification } from './likec4model/useLikeC4Model.js';
|
|
7
|
-
import { useUpdateEffect } from './hooks/useUpdateEffect.js';
|
|
8
|
-
|
|
9
|
-
function toStyle(name, colors) {
|
|
10
|
-
const darken = (color) => `color-mix(in srgb, ${color} 80%, black)`;
|
|
11
|
-
return `
|
|
12
|
-
:where([data-likec4-color=${name}]) {
|
|
13
|
-
--colors-likec4-palette-hi-contrast: ${colors.elements.hiContrast};
|
|
14
|
-
--colors-likec4-palette-lo-contrast: ${colors.elements.loContrast};
|
|
15
|
-
--colors-likec4-palette-fill: ${colors.elements.fill};
|
|
16
|
-
--colors-likec4-palette-stroke: ${colors.elements.stroke};
|
|
17
|
-
--colors-likec4-relation-stroke: ${colors.relationships.lineColor};
|
|
18
|
-
--colors-likec4-relation-stroke-selected: color-mix(in srgb, ${colors.relationships.lineColor}, var(--colors-likec4-mix-color) 20%);
|
|
19
|
-
--colors-likec4-relation-label: ${colors.relationships.labelColor};
|
|
20
|
-
--colors-likec4-relation-label-bg: ${colors.relationships.labelBgColor};
|
|
21
|
-
}
|
|
22
|
-
:where(.likec4-compound-node[data-likec4-color=${name}]) {
|
|
23
|
-
--colors-likec4-palette-fill: ${darken(colors.elements.fill)};
|
|
24
|
-
--colors-likec4-palette-stroke: ${darken(colors.elements.stroke)};
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
}
|
|
28
|
-
function generateCustomColorStyles(customColors) {
|
|
29
|
-
return entries(customColors).map(([name, color]) => toStyle(name, color)).join("\n").trim();
|
|
30
|
-
}
|
|
31
|
-
const LikeC4CustomColors = memo(() => {
|
|
32
|
-
const customColors = useLikeC4Specification().customColors ?? {};
|
|
33
|
-
const [styles, setStyles] = useState(() => generateCustomColorStyles(customColors));
|
|
34
|
-
useUpdateEffect(() => {
|
|
35
|
-
setStyles(generateCustomColorStyles(customColors));
|
|
36
|
-
}, [customColors]);
|
|
37
|
-
const nonce = useMantineStyleNonce()?.();
|
|
38
|
-
if (isEmpty(customColors)) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("style", { type: "text/css", dangerouslySetInnerHTML: { __html: styles }, nonce }) });
|
|
42
|
-
});
|
|
43
|
-
LikeC4CustomColors.displayName = "LikeC4CustomColors";
|
|
44
|
-
|
|
45
|
-
export { LikeC4CustomColors };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { SlotRecipeRuntimeFn } from '@likec4/styles/types';
|
|
2
|
-
export declare const iconSize = "--icon-size";
|
|
3
|
-
export declare const elementIcon: string;
|
|
4
|
-
export declare const elementTitle: SlotRecipeRuntimeFn<"root" | "title" | "technology" | "description" | "textContainer", {
|
|
5
|
-
hasIcon: {
|
|
6
|
-
false: {};
|
|
7
|
-
true: {
|
|
8
|
-
root: {
|
|
9
|
-
gap: "16px";
|
|
10
|
-
};
|
|
11
|
-
textContainer: {
|
|
12
|
-
minWidth: "calc(50% + var(--icon-size))";
|
|
13
|
-
alignItems: "flex-start";
|
|
14
|
-
};
|
|
15
|
-
title: {
|
|
16
|
-
textAlign: "left";
|
|
17
|
-
};
|
|
18
|
-
description: {
|
|
19
|
-
textAlign: "left";
|
|
20
|
-
};
|
|
21
|
-
technology: {
|
|
22
|
-
textAlign: "left";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
hasDescription: {
|
|
27
|
-
false: {};
|
|
28
|
-
true: {};
|
|
29
|
-
};
|
|
30
|
-
hasTechnology: {
|
|
31
|
-
false: {};
|
|
32
|
-
true: {};
|
|
33
|
-
};
|
|
34
|
-
}>;
|