@ubnt/store.core 9.40.0-alpha.4 → 9.40.0-alpha.6
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/CHANGELOG.md +8 -0
- package/lib/assets/ai-dome.jpg +0 -0
- package/lib/assets/ai-dome2.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/ai-turret.jpg +0 -0
- package/lib/assets/ai-turret2.jpg +0 -0
- package/lib/assets/arrow-icon-tertiary.svg +3 -0
- package/lib/assets/building-bridge-xg.jpg +0 -0
- package/lib/assets/building-bridge-xg2.jpg +0 -0
- package/lib/assets/building-bridge.jpg +0 -0
- package/lib/assets/building-bridge2.jpg +0 -0
- package/lib/assets/g5-bullet.jpg +0 -0
- package/lib/assets/g5-bullet2.jpg +0 -0
- package/lib/assets/g5-dome-ultra.jpg +0 -0
- package/lib/assets/g5-dome-ultra2.jpg +0 -0
- package/lib/assets/g5-ptz.jpg +0 -0
- package/lib/assets/g5-ptz2.jpg +0 -0
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.js +64 -66
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.mjs +64 -66
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js +22 -2
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.mjs +22 -3
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.d.ts +8 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js +36 -2
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.mjs +34 -3
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.js +27 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.js.map +1 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.mjs +3 -0
- package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.mjs.map +1 -0
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/constants/modelCompareData/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/CloudGateways.js +6 -6
- package/lib/constants/modelCompareData/data/CloudGateways.mjs +4 -4
- package/lib/constants/modelCompareData/data/CloudGatewaysCompact.js +6 -6
- package/lib/constants/modelCompareData/data/CloudGatewaysCompact.mjs +4 -4
- package/lib/constants/modelCompareData/data/DreamMachineConsole.js +6 -6
- package/lib/constants/modelCompareData/data/DreamMachineConsole.mjs +4 -4
- package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridge.js +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridge.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridgeXG.js +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridgeXG.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/theta.js +2 -2
- package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/ucgMax.js +1 -1
- package/lib/constants/modelCompareData/data/products/ucgMax.mjs +1 -1
- package/lib/constants/modelCompareData/data/products/ucgUltra.js +1 -1
- package/lib/constants/modelCompareData/data/products/ucgUltra.mjs +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +7 -5
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +7 -5
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +2 -2
- package/package.json +1 -1
|
@@ -8,11 +8,15 @@ require('../../../../contexts/MenuContext/index.js');
|
|
|
8
8
|
require('../../../../contexts/MicrositeMenuContext/index.js');
|
|
9
9
|
var mapping = require('../../../../contexts/MicrositeMenuContext/mapping.js');
|
|
10
10
|
var translations = require('../../../../contexts/MicrositeMenuContext/translations.js');
|
|
11
|
+
require('../../../Button/index.js');
|
|
12
|
+
require('./assets/arrow-icon-tertiary.svg.js');
|
|
11
13
|
var LinePaths = require('./LinePaths.js');
|
|
12
14
|
var Topology_config = require('./Topology.config.js');
|
|
13
15
|
var VisualTopology_styles = require('./VisualTopology.styles.js');
|
|
14
16
|
var context = require('../../../../contexts/MicrositeMenuContext/context.js');
|
|
15
17
|
var context$1 = require('../../../../contexts/MenuContext/context.js');
|
|
18
|
+
var Button = require('../../../Button/Button.js');
|
|
19
|
+
var ArrowIconTertiary = require("../../../../assets/arrow-icon-tertiary.svg");
|
|
16
20
|
var _externalAssets_D$Ulf_i_ = require("../../../../assets/minus3.svg");
|
|
17
21
|
var _externalAssets_Bq7Yumgn = require("../../../../assets/plus4.svg");
|
|
18
22
|
function _interopDefault(e) {
|
|
@@ -20,6 +24,7 @@ function _interopDefault(e) {
|
|
|
20
24
|
default: e
|
|
21
25
|
};
|
|
22
26
|
}
|
|
27
|
+
var ArrowIconTertiary__default = /*#__PURE__*/_interopDefault(ArrowIconTertiary);
|
|
23
28
|
var _externalAssets_D$Ulf_i___default = /*#__PURE__*/_interopDefault(_externalAssets_D$Ulf_i_);
|
|
24
29
|
var _externalAssets_Bq7Yumgn__default = /*#__PURE__*/_interopDefault(_externalAssets_Bq7Yumgn);
|
|
25
30
|
"use strict";
|
|
@@ -70,6 +75,7 @@ const VisualTopology = ({
|
|
|
70
75
|
const containerRef = React.useRef(null);
|
|
71
76
|
const elementsRef = React.useRef({});
|
|
72
77
|
const categoryRef = React.useRef({});
|
|
78
|
+
const [isTopologyExpanded, setIsTopologyExpanded] = React.useState(false);
|
|
73
79
|
const [activeSubmenu, setActiveSubmenu] = React.useState(null);
|
|
74
80
|
const filteredNavigation = React.useMemo(() => {
|
|
75
81
|
return items.filter(({
|
|
@@ -91,9 +97,23 @@ const VisualTopology = ({
|
|
|
91
97
|
}
|
|
92
98
|
}, [filteredNavigation]);
|
|
93
99
|
return /* @__PURE__ */jsxRuntime.jsxs(VisualTopology_styles.RootTopologyContainer, {
|
|
94
|
-
children: [/* @__PURE__ */jsxRuntime.
|
|
95
|
-
children:
|
|
100
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(VisualTopology_styles.TopologyHeader, {
|
|
101
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(VisualTopology_styles.SectionTitle, {
|
|
102
|
+
children: formatMessage("menu.topology.title")
|
|
103
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(Button.Button, {
|
|
104
|
+
variant: "link",
|
|
105
|
+
onClick: () => setIsTopologyExpanded(!isTopologyExpanded),
|
|
106
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(VisualTopology_styles.ButtonLabel, {
|
|
107
|
+
children: isTopologyExpanded ? formatMessage("commons.hide") : formatMessage("commons.show")
|
|
108
|
+
}), /* @__PURE__ */jsxRuntime.jsx(VisualTopology_styles.StyledArrowIcon, {
|
|
109
|
+
src: ArrowIconTertiary__default["default"],
|
|
110
|
+
width: 8,
|
|
111
|
+
height: 8,
|
|
112
|
+
$isOpen: isTopologyExpanded
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
96
115
|
}), /* @__PURE__ */jsxRuntime.jsxs(VisualTopology_styles.ItemsContainer, {
|
|
116
|
+
$isVisible: isTopologyExpanded,
|
|
97
117
|
children: [/* @__PURE__ */jsxRuntime.jsxs(VisualTopology_styles.ContentWrapper, {
|
|
98
118
|
ref: containerRef,
|
|
99
119
|
children: [Topology_config.rootConfig.map(({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualTopology.js","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport type React from \"react\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { generic } from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport type { SiteUrl } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport { MenuCategoryId } from \"../../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../../contexts/MicrositeMenuContext/translations\";\nimport type { MicrositeHeaderItem } from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { LinePaths } from \"./LinePaths\";\nimport { rootConfig } from \"./Topology.config\";\nimport * as S from \"./VisualTopology.styles\";\nimport type { IVisualTopologyProps } from \"./VisualTopology.types\";\n\nconst HIDDEN_ITEMS = [MenuCategoryId.CloudGateways, MenuCategoryId.Switching];\n\nconst ROOT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesRoot\", color: \"#006FFF\" },\n { id: \"purpleParticlesRoot\", color: \"#A252E3\" },\n { id: \"blurContainerRoot\", color: \"#e5f1ff\" },\n];\n\nconst PARENT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesParent\", color: \"#006FFF\" },\n { id: \"purpleParticlesParent\", color: \"#A252E3\" },\n { id: \"blurContainerParent\", color: \"#e5f1ff\" },\n];\n\nconst SVG_ANIMATION_CONFIG = [\n { id: \"blueParticles\", color: \"#006FFF\" },\n { id: \"purpleParticles\", color: \"#A252E3\" },\n { id: \"blurContainer\", color: \"#e5f1ff\" },\n];\n\nexport const VisualTopology: React.FC<Readonly<IVisualTopologyProps>> = ({\n items,\n onLinkClick,\n}) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { createSiteUrl } = useMenu();\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const elementsRef = useRef<Record<string, HTMLButtonElement | null>>({});\n const categoryRef = useRef<Record<string, HTMLButtonElement | null>>({});\n\n const [activeSubmenu, setActiveSubmenu] =\n useState<MicrositeHeaderItem | null>(null);\n\n const filteredNavigation = useMemo(() => {\n return items.filter(\n ({ id }) => !HIDDEN_ITEMS.includes(id as MenuCategoryId),\n );\n }, [items]);\n\n const filteredActiveSubmenu = useMemo(() => {\n return (activeSubmenu?.items ?? []).filter(({ isOverview }) => !isOverview);\n }, [activeSubmenu]);\n\n useEffect(() => {\n if (!filteredNavigation?.length) {\n return;\n }\n\n const [wifi] = filteredNavigation;\n\n if (wifi) {\n setActiveSubmenu(wifi);\n }\n }, [filteredNavigation]);\n\n return (\n <S.RootTopologyContainer>\n <S.SectionTitle>{formatMessage(\"menu.topology.title\")}</S.SectionTitle>\n <S.ItemsContainer>\n <S.ContentWrapper ref={containerRef}>\n {rootConfig.map(({ id, label, url, isExternal, icon }, index) => (\n <S.Item\n key={`${id}-${index}`}\n as={url ? \"a\" : \"span\"}\n {...(url\n ? {\n href: isExternal ? url : createSiteUrl(url),\n target: isExternal ? \"_blank\" : \"_self\",\n }\n : {})}\n >\n {!!icon && (\n <S.IconWrapper>\n <S.ItemIcon\n id={id}\n src={icon.src as string}\n $width={icon.width}\n $height={icon.height}\n />\n </S.IconWrapper>\n )}\n\n {!!label && <S.ItemLabel>{formatMessage(label)}</S.ItemLabel>}\n </S.Item>\n ))}\n\n <S.RootSvgContainer>\n {ROOT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <svg\n id={id}\n key={id}\n width={ROOT_SVG_ANIMATION_CONFIG.length - 1 === index ? 6 : 2}\n height=\"182\"\n viewBox=\"0 0 2 182\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{\n position: \"absolute\",\n zIndex: 5 - index,\n }}\n >\n <path d=\"M1 182L2 0\" stroke={color} />\n </svg>\n ))}\n </S.RootSvgContainer>\n </S.ContentWrapper>\n\n <S.RelativeContentContainer>\n <S.TopologyMainContainer style={{ paddingTop: \"48px\" }}>\n {filteredNavigation.map((item, itemIndex) => (\n <S.TopologyNavItem\n key={`${item.id}-${itemIndex}`}\n id={item.id}\n ref={(element) => (categoryRef.current[itemIndex] = element)}\n style={{ zIndex: 15 }}\n onClick={() => setActiveSubmenu(item)}\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n width={78}\n height={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n <S.ExpandButton>\n <S.StyledIcon\n src={generic.minus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id === item.id}\n />\n <S.StyledIcon\n src={generic.plus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id !== item.id}\n />\n </S.ExpandButton>\n </S.TopologyNavItem>\n ))}\n\n {PARENT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n parentId=\"poe-plus-plus\"\n items={filteredNavigation}\n elementsRef={categoryRef}\n strokeColor={color}\n />\n ))}\n </S.TopologyMainContainer>\n\n <S.SubNavigationTopologyContainer $isVisible>\n {SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n items={filteredActiveSubmenu}\n parentId={activeSubmenu?.id as string}\n elementsRef={elementsRef}\n strokeColor={color}\n />\n ))}\n\n {filteredActiveSubmenu.map((item, elementIndex) => (\n <Tooltip\n motif=\"light\"\n key={`product-${item.id}`}\n cursorType=\"pointer\"\n className=\"product-tooltip\"\n position=\"bottom\"\n width={156}\n offset={10}\n description={\n item.description && (\n <S.TooltipLabel\n dangerouslySetInnerHTML={{\n __html: formatMessage(item.description),\n }}\n />\n )\n }\n >\n <S.TopologyNavItem\n $withHover\n ref={(element) =>\n (elementsRef.current[elementIndex] = element)\n }\n onClick={(event) =>\n onLinkClick(event, createSiteUrl(item.url as SiteUrl))\n }\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n height={38}\n width={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n </S.TopologyNavItem>\n </Tooltip>\n ))}\n </S.SubNavigationTopologyContainer>\n </S.RelativeContentContainer>\n </S.ItemsContainer>\n <S.TooltipStyles />\n </S.RootTopologyContainer>\n );\n};\n"],"names":["HIDDEN_ITEMS","MenuCategoryId","CloudGateways","Switching","ROOT_SVG_ANIMATION_CONFIG","id","color","PARENT_SVG_ANIMATION_CONFIG","SVG_ANIMATION_CONFIG","VisualTopology","items","onLinkClick","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","createSiteUrl","useMenu","containerRef","useRef","elementsRef","categoryRef","activeSubmenu","setActiveSubmenu","useState","filteredNavigation","useMemo","filter","includes","filteredActiveSubmenu","isOverview","useEffect","length","wifi","jsxs","S.RootTopologyContainer","children","jsx","S.SectionTitle","SectionTitle","S.ItemsContainer","S.ContentWrapper","ref","rootConfig","map","label","url","isExternal","icon","index","S.Item","Item","as","href","target","S.IconWrapper","S.ItemIcon","ItemIcon","src","$width","width","$height","height","S.ItemLabel","ItemLabel","S.RootSvgContainer","RootSvgContainer","viewBox","xmlns","style","position","zIndex","d","stroke","S.RelativeContentContainer","S.TopologyMainContainer","TopologyMainContainer","paddingTop","item","itemIndex","S.TopologyNavItem","TopologyNavItem","element","current","onClick","S.NavIcon","NavIcon","S.ExpandButton","S.StyledIcon","StyledIcon","generic.minus","$isVisible","generic.plus","LinePaths","parentId","strokeColor","S.SubNavigationTopologyContainer","elementIndex","Tooltip","motif","cursorType","className","offset","description","S.TooltipLabel","TooltipLabel","dangerouslySetInnerHTML","__html","$withHover","event","S.TooltipStyles","TooltipStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,YAAe,GAAA,CAACC,OAAe,CAAAA,cAAA,CAAAC,aAAA,EAAeD,uBAAeE,SAAS,CAAA;AAE5E,MAAMC,yBAA4B,GAAA,CAChC;EAAEC,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC5C;EAAED,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAC9C;AAEA,MAAMC,2BAA8B,GAAA,CAClC;EAAEF,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,uBAAyB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAChD;EAA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,EAAF;cACCC,uBAAyB,EAAA;gBACvBC,MAAA,EAAQ7F,aAAc,CAAAgE,IAAA,CAAKyB,WAAW;cACxC;YAAA,CACF,CAAA;YAIJnE,QAAA,iBAAAF,UAAA,CAAAA,IAAA,CAAC8C,qBAAE,CAAAC,eAAA,EAAF;cACC2B,UAAU,EAAA,IAAA;cACVlE,KAAMwC,OAAA,IACH9D,WAAY,CAAA+D,OAAA,CAAQc,YAAY,CAAI,GAAAf,OAAA;cAEvCE,OAAA,EAAUyB,KACR,IAAAlG,WAAA,CAAYkG,OAAO7F,aAAc,CAAA8D,IAAA,CAAKhC,GAAc,CAAC,CAAA;cAGtDV,QAAA,EAAA,CAAC,CAAA,CAAC0C,IAAM,EAAA9B,IAAA,EAAMU,GACb,mBAAArB,UAAA,CAAAA,GAAA,CAACgD,qBAAE,CAAAC,OAAA,EAAF;gBACC5B,GAAA,EAAKoB,KAAK9B,IAAK,CAAAU,GAAA;gBACfI,MAAQ,EAAA,EAAA;gBACRF,KAAO,EAAA;cAAA,CACT,CAAA,EAAA,8BAEDG,qBAAE,CAAAC,SAAA,EAAF;gBAAa5B,QAAc,EAAAtB,aAAA,CAAAgE,IAAA,CAAKjC,KAAK;eAAE,CAAA;YAAA,CAC1C;UAAA,CAAA,EAjCK,WAAWiC,KAAKzE,EAAE,EAAA,CAmC1B,CAAA;SACH,CAAA;OACF,CAAA;KACF,CAAA,EAAA,eACAgC,UAAA,CAAAA,GAAA,CAACyE,qBAAE,CAAAC,aAAA,EAAF,EAAgB,CAAA;EACnB,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"VisualTopology.js","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport type React from \"react\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { generic } from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport type { SiteUrl } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport { MenuCategoryId } from \"../../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../../contexts/MicrositeMenuContext/translations\";\nimport type { MicrositeHeaderItem } from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { Button } from \"../../../Button\";\nimport ArrowIconTertiary from \"./assets/arrow-icon-tertiary.svg\";\nimport { LinePaths } from \"./LinePaths\";\nimport { rootConfig } from \"./Topology.config\";\nimport * as S from \"./VisualTopology.styles\";\nimport type { IVisualTopologyProps } from \"./VisualTopology.types\";\n\nconst HIDDEN_ITEMS = [MenuCategoryId.CloudGateways, MenuCategoryId.Switching];\n\nconst ROOT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesRoot\", color: \"#006FFF\" },\n { id: \"purpleParticlesRoot\", color: \"#A252E3\" },\n { id: \"blurContainerRoot\", color: \"#e5f1ff\" },\n];\n\nconst PARENT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesParent\", color: \"#006FFF\" },\n { id: \"purpleParticlesParent\", color: \"#A252E3\" },\n { id: \"blurContainerParent\", color: \"#e5f1ff\" },\n];\n\nconst SVG_ANIMATION_CONFIG = [\n { id: \"blueParticles\", color: \"#006FFF\" },\n { id: \"purpleParticles\", color: \"#A252E3\" },\n { id: \"blurContainer\", color: \"#e5f1ff\" },\n];\n\nexport const VisualTopology: React.FC<Readonly<IVisualTopologyProps>> = ({\n items,\n onLinkClick,\n}) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { createSiteUrl } = useMenu();\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const elementsRef = useRef<Record<string, HTMLButtonElement | null>>({});\n const categoryRef = useRef<Record<string, HTMLButtonElement | null>>({});\n\n const [isTopologyExpanded, setIsTopologyExpanded] = useState(false);\n const [activeSubmenu, setActiveSubmenu] =\n useState<MicrositeHeaderItem | null>(null);\n\n const filteredNavigation = useMemo(() => {\n return items.filter(\n ({ id }) => !HIDDEN_ITEMS.includes(id as MenuCategoryId),\n );\n }, [items]);\n\n const filteredActiveSubmenu = useMemo(() => {\n return (activeSubmenu?.items ?? []).filter(({ isOverview }) => !isOverview);\n }, [activeSubmenu]);\n\n useEffect(() => {\n if (!filteredNavigation?.length) {\n return;\n }\n\n const [wifi] = filteredNavigation;\n\n if (wifi) {\n setActiveSubmenu(wifi);\n }\n }, [filteredNavigation]);\n\n return (\n <S.RootTopologyContainer>\n <S.TopologyHeader>\n <S.SectionTitle>{formatMessage(\"menu.topology.title\")}</S.SectionTitle>\n <Button\n variant=\"link\"\n onClick={() => setIsTopologyExpanded(!isTopologyExpanded)}\n >\n <S.ButtonLabel>\n {isTopologyExpanded\n ? formatMessage(\"commons.hide\")\n : formatMessage(\"commons.show\")}\n </S.ButtonLabel>\n\n <S.StyledArrowIcon\n src={ArrowIconTertiary}\n width={8}\n height={8}\n $isOpen={isTopologyExpanded}\n />\n </Button>\n </S.TopologyHeader>\n\n <S.ItemsContainer $isVisible={isTopologyExpanded}>\n <S.ContentWrapper ref={containerRef}>\n {rootConfig.map(({ id, label, url, isExternal, icon }, index) => (\n <S.Item\n key={`${id}-${index}`}\n as={url ? \"a\" : \"span\"}\n {...(url\n ? {\n href: isExternal ? url : createSiteUrl(url),\n target: isExternal ? \"_blank\" : \"_self\",\n }\n : {})}\n >\n {!!icon && (\n <S.IconWrapper>\n <S.ItemIcon\n id={id}\n src={icon.src as string}\n $width={icon.width}\n $height={icon.height}\n />\n </S.IconWrapper>\n )}\n\n {!!label && <S.ItemLabel>{formatMessage(label)}</S.ItemLabel>}\n </S.Item>\n ))}\n\n <S.RootSvgContainer>\n {ROOT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <svg\n id={id}\n key={id}\n width={ROOT_SVG_ANIMATION_CONFIG.length - 1 === index ? 6 : 2}\n height=\"182\"\n viewBox=\"0 0 2 182\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{\n position: \"absolute\",\n zIndex: 5 - index,\n }}\n >\n <path d=\"M1 182L2 0\" stroke={color} />\n </svg>\n ))}\n </S.RootSvgContainer>\n </S.ContentWrapper>\n\n <S.RelativeContentContainer>\n <S.TopologyMainContainer style={{ paddingTop: \"48px\" }}>\n {filteredNavigation.map((item, itemIndex) => (\n <S.TopologyNavItem\n key={`${item.id}-${itemIndex}`}\n id={item.id}\n ref={(element) => (categoryRef.current[itemIndex] = element)}\n style={{ zIndex: 15 }}\n onClick={() => setActiveSubmenu(item)}\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n width={78}\n height={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n <S.ExpandButton>\n <S.StyledIcon\n src={generic.minus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id === item.id}\n />\n <S.StyledIcon\n src={generic.plus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id !== item.id}\n />\n </S.ExpandButton>\n </S.TopologyNavItem>\n ))}\n\n {PARENT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n parentId=\"poe-plus-plus\"\n items={filteredNavigation}\n elementsRef={categoryRef}\n strokeColor={color}\n />\n ))}\n </S.TopologyMainContainer>\n\n <S.SubNavigationTopologyContainer $isVisible>\n {SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n items={filteredActiveSubmenu}\n parentId={activeSubmenu?.id as string}\n elementsRef={elementsRef}\n strokeColor={color}\n />\n ))}\n\n {filteredActiveSubmenu.map((item, elementIndex) => (\n <Tooltip\n motif=\"light\"\n key={`product-${item.id}`}\n cursorType=\"pointer\"\n className=\"product-tooltip\"\n position=\"bottom\"\n width={156}\n offset={10}\n description={\n item.description && (\n <S.TooltipLabel\n dangerouslySetInnerHTML={{\n __html: formatMessage(item.description),\n }}\n />\n )\n }\n >\n <S.TopologyNavItem\n $withHover\n ref={(element) =>\n (elementsRef.current[elementIndex] = element)\n }\n onClick={(event) =>\n onLinkClick(event, createSiteUrl(item.url as SiteUrl))\n }\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n height={38}\n width={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n </S.TopologyNavItem>\n </Tooltip>\n ))}\n </S.SubNavigationTopologyContainer>\n </S.RelativeContentContainer>\n </S.ItemsContainer>\n <S.TooltipStyles />\n </S.RootTopologyContainer>\n );\n};\n"],"names":["HIDDEN_ITEMS","MenuCategoryId","CloudGateways","Switching","ROOT_SVG_ANIMATION_CONFIG","id","color","PARENT_SVG_ANIMATION_CONFIG","SVG_ANIMATION_CONFIG","VisualTopology","items","onLinkClick","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","createSiteUrl","useMenu","containerRef","useRef","elementsRef","categoryRef","isTopologyExpanded","setIsTopologyExpanded","useState","activeSubmenu","setActiveSubmenu","filteredNavigation","useMemo","filter","includes","filteredActiveSubmenu","isOverview","useEffect","length","wifi","jsxs","S.RootTopologyContainer","children","S.TopologyHeader","jsx","S.SectionTitle","SectionTitle","Button","variant","onClick","S.ButtonLabel","S.StyledArrowIcon","StyledArrowIcon","src","ArrowIconTertiary","width","height","$isOpen","S.ItemsContainer","$isVisible","S.ContentWrapper","ref","rootConfig","map","label","url","isExternal","icon","index","S.Item","Item","as","href","target","S.IconWrapper","S.ItemIcon","ItemIcon","$width","$height","S.ItemLabel","ItemLabel","S.RootSvgContainer","RootSvgContainer","viewBox","xmlns","style","position","zIndex","d","stroke","S.RelativeContentContainer","S.TopologyMainContainer","TopologyMainContainer","paddingTop","item","itemIndex","S.TopologyNavItem","TopologyNavItem","element","current","S.NavIcon","NavIcon","S.ExpandButton","S.StyledIcon","StyledIcon","generic.minus","generic.plus","LinePaths","parentId","strokeColor","S.SubNavigationTopologyContainer","elementIndex","Tooltip","motif","cursorType","className","offset","description","S.TooltipLabel","TooltipLabel","dangerouslySetInnerHTML","__html","$withHover","event","S.TooltipStyles","TooltipStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,YAAe,GAAA,CAACC,OAAe,CAAAA,cAAA,CAAAC,aAAA,EAAeD,uBAAeE,SAAS,CAAA;AAE5E,MAAMC,yBAA4B,GAAA,CAChC;EAAEC,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC5C;EAAED,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAC9C;AAEA,MAAMC,2BAA8B,GAAA,CAClC;EAAEF,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,uBAAyB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAChD;EAAED,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAChD;AAEA,MAAME,oBAAuB,GAAA,CAC3B;EAAEH,EAAA,EAAI,eAAiB;EAAAC,KAAA,EAAO;AAAU,CAAA,EACxC;EAAED,EAAA,EAAI,iBAAmB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC1C;EAAED,EAAA,EAAI,eAAiB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAC1C;AAEO,MAAMG,iBAA2DA,CAAC;EACvEC,KAAA;EACAC;AACF,CAAM,KAAA;EACE,MAAA;IAAEC;GAAS,GAAIC,OAAAA,CAAAA,gBAAiB,EAAA;EACtC,MAAM;IAAEC;EAAA,CAAkB,GAAAC,YAAA,CAAAA,4BAAA,CAA6BH,QAAQ,CAAA;EACzD,MAAA;IAAEI;GAAc,GAAIC,SAAAA,CAAAA,OAAQ,EAAA;EAE5B,MAAAC,YAAA,GAAeC,a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
|
import { MenuCategoryId } from '../../../../contexts/MicrositeMenuContext/mapping.mjs';
|
|
8
8
|
import { useMicrositeMenuTranslations } from '../../../../contexts/MicrositeMenuContext/translations.mjs';
|
|
9
|
+
import '../../../Button/index.mjs';
|
|
10
|
+
import './assets/arrow-icon-tertiary.svg.mjs';
|
|
9
11
|
import { LinePaths } from './LinePaths.mjs';
|
|
10
12
|
import { rootConfig } from './Topology.config.mjs';
|
|
11
|
-
import { RootTopologyContainer, SectionTitle, ItemsContainer, ContentWrapper, Item, IconWrapper, ItemIcon, ItemLabel, RootSvgContainer, RelativeContentContainer, TopologyMainContainer, TopologyNavItem, NavIcon, ExpandButton, StyledIcon, SubNavigationTopologyContainer, TooltipLabel, TooltipStyles } from './VisualTopology.styles.mjs';
|
|
13
|
+
import { RootTopologyContainer, TopologyHeader, SectionTitle, ButtonLabel, StyledArrowIcon, ItemsContainer, ContentWrapper, Item, IconWrapper, ItemIcon, ItemLabel, RootSvgContainer, RelativeContentContainer, TopologyMainContainer, TopologyNavItem, NavIcon, ExpandButton, StyledIcon, SubNavigationTopologyContainer, TooltipLabel, TooltipStyles } from './VisualTopology.styles.mjs';
|
|
12
14
|
import { useMicrositeMenu } from '../../../../contexts/MicrositeMenuContext/context.mjs';
|
|
13
15
|
import { useMenu } from '../../../../contexts/MenuContext/context.mjs';
|
|
16
|
+
import { Button } from '../../../Button/Button.mjs';
|
|
17
|
+
import ArrowIconTertiary__default from "../../../../assets/arrow-icon-tertiary.svg";
|
|
14
18
|
import _externalAssets_D$Ulf_i___default from "../../../../assets/minus3.svg";
|
|
15
19
|
import _externalAssets_Bq7Yumgn__default from "../../../../assets/plus4.svg";
|
|
16
20
|
"use strict";
|
|
@@ -61,6 +65,7 @@ const VisualTopology = ({
|
|
|
61
65
|
const containerRef = useRef(null);
|
|
62
66
|
const elementsRef = useRef({});
|
|
63
67
|
const categoryRef = useRef({});
|
|
68
|
+
const [isTopologyExpanded, setIsTopologyExpanded] = useState(false);
|
|
64
69
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
65
70
|
const filteredNavigation = useMemo(() => {
|
|
66
71
|
return items.filter(({
|
|
@@ -82,9 +87,23 @@ const VisualTopology = ({
|
|
|
82
87
|
}
|
|
83
88
|
}, [filteredNavigation]);
|
|
84
89
|
return /* @__PURE__ */jsxs(RootTopologyContainer, {
|
|
85
|
-
children: [/* @__PURE__ */
|
|
86
|
-
children:
|
|
90
|
+
children: [/* @__PURE__ */jsxs(TopologyHeader, {
|
|
91
|
+
children: [/* @__PURE__ */jsx(SectionTitle, {
|
|
92
|
+
children: formatMessage("menu.topology.title")
|
|
93
|
+
}), /* @__PURE__ */jsxs(Button, {
|
|
94
|
+
variant: "link",
|
|
95
|
+
onClick: () => setIsTopologyExpanded(!isTopologyExpanded),
|
|
96
|
+
children: [/* @__PURE__ */jsx(ButtonLabel, {
|
|
97
|
+
children: isTopologyExpanded ? formatMessage("commons.hide") : formatMessage("commons.show")
|
|
98
|
+
}), /* @__PURE__ */jsx(StyledArrowIcon, {
|
|
99
|
+
src: ArrowIconTertiary__default,
|
|
100
|
+
width: 8,
|
|
101
|
+
height: 8,
|
|
102
|
+
$isOpen: isTopologyExpanded
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
87
105
|
}), /* @__PURE__ */jsxs(ItemsContainer, {
|
|
106
|
+
$isVisible: isTopologyExpanded,
|
|
88
107
|
children: [/* @__PURE__ */jsxs(ContentWrapper, {
|
|
89
108
|
ref: containerRef,
|
|
90
109
|
children: [rootConfig.map(({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualTopology.mjs","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport type React from \"react\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { generic } from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport type { SiteUrl } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport { MenuCategoryId } from \"../../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../../contexts/MicrositeMenuContext/translations\";\nimport type { MicrositeHeaderItem } from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { LinePaths } from \"./LinePaths\";\nimport { rootConfig } from \"./Topology.config\";\nimport * as S from \"./VisualTopology.styles\";\nimport type { IVisualTopologyProps } from \"./VisualTopology.types\";\n\nconst HIDDEN_ITEMS = [MenuCategoryId.CloudGateways, MenuCategoryId.Switching];\n\nconst ROOT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesRoot\", color: \"#006FFF\" },\n { id: \"purpleParticlesRoot\", color: \"#A252E3\" },\n { id: \"blurContainerRoot\", color: \"#e5f1ff\" },\n];\n\nconst PARENT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesParent\", color: \"#006FFF\" },\n { id: \"purpleParticlesParent\", color: \"#A252E3\" },\n { id: \"blurContainerParent\", color: \"#e5f1ff\" },\n];\n\nconst SVG_ANIMATION_CONFIG = [\n { id: \"blueParticles\", color: \"#006FFF\" },\n { id: \"purpleParticles\", color: \"#A252E3\" },\n { id: \"blurContainer\", color: \"#e5f1ff\" },\n];\n\nexport const VisualTopology: React.FC<Readonly<IVisualTopologyProps>> = ({\n items,\n onLinkClick,\n}) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { createSiteUrl } = useMenu();\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const elementsRef = useRef<Record<string, HTMLButtonElement | null>>({});\n const categoryRef = useRef<Record<string, HTMLButtonElement | null>>({});\n\n const [activeSubmenu, setActiveSubmenu] =\n useState<MicrositeHeaderItem | null>(null);\n\n const filteredNavigation = useMemo(() => {\n return items.filter(\n ({ id }) => !HIDDEN_ITEMS.includes(id as MenuCategoryId),\n );\n }, [items]);\n\n const filteredActiveSubmenu = useMemo(() => {\n return (activeSubmenu?.items ?? []).filter(({ isOverview }) => !isOverview);\n }, [activeSubmenu]);\n\n useEffect(() => {\n if (!filteredNavigation?.length) {\n return;\n }\n\n const [wifi] = filteredNavigation;\n\n if (wifi) {\n setActiveSubmenu(wifi);\n }\n }, [filteredNavigation]);\n\n return (\n <S.RootTopologyContainer>\n <S.SectionTitle>{formatMessage(\"menu.topology.title\")}</S.SectionTitle>\n <S.ItemsContainer>\n <S.ContentWrapper ref={containerRef}>\n {rootConfig.map(({ id, label, url, isExternal, icon }, index) => (\n <S.Item\n key={`${id}-${index}`}\n as={url ? \"a\" : \"span\"}\n {...(url\n ? {\n href: isExternal ? url : createSiteUrl(url),\n target: isExternal ? \"_blank\" : \"_self\",\n }\n : {})}\n >\n {!!icon && (\n <S.IconWrapper>\n <S.ItemIcon\n id={id}\n src={icon.src as string}\n $width={icon.width}\n $height={icon.height}\n />\n </S.IconWrapper>\n )}\n\n {!!label && <S.ItemLabel>{formatMessage(label)}</S.ItemLabel>}\n </S.Item>\n ))}\n\n <S.RootSvgContainer>\n {ROOT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <svg\n id={id}\n key={id}\n width={ROOT_SVG_ANIMATION_CONFIG.length - 1 === index ? 6 : 2}\n height=\"182\"\n viewBox=\"0 0 2 182\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{\n position: \"absolute\",\n zIndex: 5 - index,\n }}\n >\n <path d=\"M1 182L2 0\" stroke={color} />\n </svg>\n ))}\n </S.RootSvgContainer>\n </S.ContentWrapper>\n\n <S.RelativeContentContainer>\n <S.TopologyMainContainer style={{ paddingTop: \"48px\" }}>\n {filteredNavigation.map((item, itemIndex) => (\n <S.TopologyNavItem\n key={`${item.id}-${itemIndex}`}\n id={item.id}\n ref={(element) => (categoryRef.current[itemIndex] = element)}\n style={{ zIndex: 15 }}\n onClick={() => setActiveSubmenu(item)}\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n width={78}\n height={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n <S.ExpandButton>\n <S.StyledIcon\n src={generic.minus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id === item.id}\n />\n <S.StyledIcon\n src={generic.plus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id !== item.id}\n />\n </S.ExpandButton>\n </S.TopologyNavItem>\n ))}\n\n {PARENT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n parentId=\"poe-plus-plus\"\n items={filteredNavigation}\n elementsRef={categoryRef}\n strokeColor={color}\n />\n ))}\n </S.TopologyMainContainer>\n\n <S.SubNavigationTopologyContainer $isVisible>\n {SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n items={filteredActiveSubmenu}\n parentId={activeSubmenu?.id as string}\n elementsRef={elementsRef}\n strokeColor={color}\n />\n ))}\n\n {filteredActiveSubmenu.map((item, elementIndex) => (\n <Tooltip\n motif=\"light\"\n key={`product-${item.id}`}\n cursorType=\"pointer\"\n className=\"product-tooltip\"\n position=\"bottom\"\n width={156}\n offset={10}\n description={\n item.description && (\n <S.TooltipLabel\n dangerouslySetInnerHTML={{\n __html: formatMessage(item.description),\n }}\n />\n )\n }\n >\n <S.TopologyNavItem\n $withHover\n ref={(element) =>\n (elementsRef.current[elementIndex] = element)\n }\n onClick={(event) =>\n onLinkClick(event, createSiteUrl(item.url as SiteUrl))\n }\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n height={38}\n width={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n </S.TopologyNavItem>\n </Tooltip>\n ))}\n </S.SubNavigationTopologyContainer>\n </S.RelativeContentContainer>\n </S.ItemsContainer>\n <S.TooltipStyles />\n </S.RootTopologyContainer>\n );\n};\n"],"names":["HIDDEN_ITEMS","MenuCategoryId","CloudGateways","Switching","ROOT_SVG_ANIMATION_CONFIG","id","color","PARENT_SVG_ANIMATION_CONFIG","SVG_ANIMATION_CONFIG","VisualTopology","items","onLinkClick","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","createSiteUrl","useMenu","containerRef","useRef","elementsRef","categoryRef","activeSubmenu","setActiveSubmenu","useState","filteredNavigation","useMemo","filter","includes","filteredActiveSubmenu","isOverview","useEffect","length","wifi","jsxs","S.RootTopologyContainer","children","jsx","S.SectionTitle","S.ItemsContainer","S.ContentWrapper","ref","rootConfig","map","label","url","isExternal","icon","index","S.Item","as","href","target","S.IconWrapper","S.ItemIcon","src","$width","width","$height","height","S.ItemLabel","S.RootSvgContainer","viewBox","xmlns","style","position","zIndex","d","stroke","S.RelativeContentContainer","S.TopologyMainContainer","paddingTop","item","itemIndex","S.TopologyNavItem","element","current","onClick","S.NavIcon","S.ExpandButton","S.StyledIcon","generic.minus","$isVisible","generic.plus","LinePaths","parentId","strokeColor","S.SubNavigationTopologyContainer","elementIndex","Tooltip","motif","cursorType","className","offset","description","S.TooltipLabel","dangerouslySetInnerHTML","__html","$withHover","event","S.TooltipStyles"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAMA,YAAe,GAAA,CAACC,cAAe,CAAAC,aAAA,EAAeD,eAAeE,SAAS,CAAA;AAE5E,MAAMC,yBAA4B,GAAA,CAChC;EAAEC,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC5C;EAAED,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAC9C;AAEA,MAAMC,2BAA8B,GAAA,CAClC;EAAEF,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,uBAAyB;EAAAC,KAAA,EAAO;AAAU,CAAA,E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AAA,CAAA,EAjCK,WAAW4B,KAAKnE,EAAE,EAAA,CAmC1B,CAAA;SACH,CAAA;OACF,CAAA;KACF,CAAA,EAAA,eACAgC,GAAA,CAAC+D,aAAE,EAAF,EAAgB,CAAA;EACnB,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"VisualTopology.mjs","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.tsx"],"sourcesContent":["import { Tooltip } from \"@ubnt/ui-components/Tooltip\";\nimport type React from \"react\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { generic } from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport type { SiteUrl } from \"../../../../contexts/MenuContext/mapping\";\nimport { useMicrositeMenu } from \"../../../../contexts/MicrositeMenuContext\";\nimport { MenuCategoryId } from \"../../../../contexts/MicrositeMenuContext/mapping\";\nimport { useMicrositeMenuTranslations } from \"../../../../contexts/MicrositeMenuContext/translations\";\nimport type { MicrositeHeaderItem } from \"../../../../contexts/MicrositeMenuContext/types\";\nimport { Button } from \"../../../Button\";\nimport ArrowIconTertiary from \"./assets/arrow-icon-tertiary.svg\";\nimport { LinePaths } from \"./LinePaths\";\nimport { rootConfig } from \"./Topology.config\";\nimport * as S from \"./VisualTopology.styles\";\nimport type { IVisualTopologyProps } from \"./VisualTopology.types\";\n\nconst HIDDEN_ITEMS = [MenuCategoryId.CloudGateways, MenuCategoryId.Switching];\n\nconst ROOT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesRoot\", color: \"#006FFF\" },\n { id: \"purpleParticlesRoot\", color: \"#A252E3\" },\n { id: \"blurContainerRoot\", color: \"#e5f1ff\" },\n];\n\nconst PARENT_SVG_ANIMATION_CONFIG = [\n { id: \"blueParticlesParent\", color: \"#006FFF\" },\n { id: \"purpleParticlesParent\", color: \"#A252E3\" },\n { id: \"blurContainerParent\", color: \"#e5f1ff\" },\n];\n\nconst SVG_ANIMATION_CONFIG = [\n { id: \"blueParticles\", color: \"#006FFF\" },\n { id: \"purpleParticles\", color: \"#A252E3\" },\n { id: \"blurContainer\", color: \"#e5f1ff\" },\n];\n\nexport const VisualTopology: React.FC<Readonly<IVisualTopologyProps>> = ({\n items,\n onLinkClick,\n}) => {\n const { language } = useMicrositeMenu();\n const { formatMessage } = useMicrositeMenuTranslations(language);\n const { createSiteUrl } = useMenu();\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const elementsRef = useRef<Record<string, HTMLButtonElement | null>>({});\n const categoryRef = useRef<Record<string, HTMLButtonElement | null>>({});\n\n const [isTopologyExpanded, setIsTopologyExpanded] = useState(false);\n const [activeSubmenu, setActiveSubmenu] =\n useState<MicrositeHeaderItem | null>(null);\n\n const filteredNavigation = useMemo(() => {\n return items.filter(\n ({ id }) => !HIDDEN_ITEMS.includes(id as MenuCategoryId),\n );\n }, [items]);\n\n const filteredActiveSubmenu = useMemo(() => {\n return (activeSubmenu?.items ?? []).filter(({ isOverview }) => !isOverview);\n }, [activeSubmenu]);\n\n useEffect(() => {\n if (!filteredNavigation?.length) {\n return;\n }\n\n const [wifi] = filteredNavigation;\n\n if (wifi) {\n setActiveSubmenu(wifi);\n }\n }, [filteredNavigation]);\n\n return (\n <S.RootTopologyContainer>\n <S.TopologyHeader>\n <S.SectionTitle>{formatMessage(\"menu.topology.title\")}</S.SectionTitle>\n <Button\n variant=\"link\"\n onClick={() => setIsTopologyExpanded(!isTopologyExpanded)}\n >\n <S.ButtonLabel>\n {isTopologyExpanded\n ? formatMessage(\"commons.hide\")\n : formatMessage(\"commons.show\")}\n </S.ButtonLabel>\n\n <S.StyledArrowIcon\n src={ArrowIconTertiary}\n width={8}\n height={8}\n $isOpen={isTopologyExpanded}\n />\n </Button>\n </S.TopologyHeader>\n\n <S.ItemsContainer $isVisible={isTopologyExpanded}>\n <S.ContentWrapper ref={containerRef}>\n {rootConfig.map(({ id, label, url, isExternal, icon }, index) => (\n <S.Item\n key={`${id}-${index}`}\n as={url ? \"a\" : \"span\"}\n {...(url\n ? {\n href: isExternal ? url : createSiteUrl(url),\n target: isExternal ? \"_blank\" : \"_self\",\n }\n : {})}\n >\n {!!icon && (\n <S.IconWrapper>\n <S.ItemIcon\n id={id}\n src={icon.src as string}\n $width={icon.width}\n $height={icon.height}\n />\n </S.IconWrapper>\n )}\n\n {!!label && <S.ItemLabel>{formatMessage(label)}</S.ItemLabel>}\n </S.Item>\n ))}\n\n <S.RootSvgContainer>\n {ROOT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <svg\n id={id}\n key={id}\n width={ROOT_SVG_ANIMATION_CONFIG.length - 1 === index ? 6 : 2}\n height=\"182\"\n viewBox=\"0 0 2 182\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{\n position: \"absolute\",\n zIndex: 5 - index,\n }}\n >\n <path d=\"M1 182L2 0\" stroke={color} />\n </svg>\n ))}\n </S.RootSvgContainer>\n </S.ContentWrapper>\n\n <S.RelativeContentContainer>\n <S.TopologyMainContainer style={{ paddingTop: \"48px\" }}>\n {filteredNavigation.map((item, itemIndex) => (\n <S.TopologyNavItem\n key={`${item.id}-${itemIndex}`}\n id={item.id}\n ref={(element) => (categoryRef.current[itemIndex] = element)}\n style={{ zIndex: 15 }}\n onClick={() => setActiveSubmenu(item)}\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n width={78}\n height={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n <S.ExpandButton>\n <S.StyledIcon\n src={generic.minus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id === item.id}\n />\n <S.StyledIcon\n src={generic.plus}\n width={10}\n height={10}\n $isVisible={activeSubmenu?.id !== item.id}\n />\n </S.ExpandButton>\n </S.TopologyNavItem>\n ))}\n\n {PARENT_SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n parentId=\"poe-plus-plus\"\n items={filteredNavigation}\n elementsRef={categoryRef}\n strokeColor={color}\n />\n ))}\n </S.TopologyMainContainer>\n\n <S.SubNavigationTopologyContainer $isVisible>\n {SVG_ANIMATION_CONFIG.map(({ id, color }, index) => (\n <LinePaths\n key={id}\n id={id}\n zIndex={1 - index}\n items={filteredActiveSubmenu}\n parentId={activeSubmenu?.id as string}\n elementsRef={elementsRef}\n strokeColor={color}\n />\n ))}\n\n {filteredActiveSubmenu.map((item, elementIndex) => (\n <Tooltip\n motif=\"light\"\n key={`product-${item.id}`}\n cursorType=\"pointer\"\n className=\"product-tooltip\"\n position=\"bottom\"\n width={156}\n offset={10}\n description={\n item.description && (\n <S.TooltipLabel\n dangerouslySetInnerHTML={{\n __html: formatMessage(item.description),\n }}\n />\n )\n }\n >\n <S.TopologyNavItem\n $withHover\n ref={(element) =>\n (elementsRef.current[elementIndex] = element)\n }\n onClick={(event) =>\n onLinkClick(event, createSiteUrl(item.url as SiteUrl))\n }\n >\n {!!item?.icon?.src && (\n <S.NavIcon\n src={item.icon.src as string}\n height={38}\n width={38}\n />\n )}\n <S.ItemLabel>{formatMessage(item.label)}</S.ItemLabel>\n </S.TopologyNavItem>\n </Tooltip>\n ))}\n </S.SubNavigationTopologyContainer>\n </S.RelativeContentContainer>\n </S.ItemsContainer>\n <S.TooltipStyles />\n </S.RootTopologyContainer>\n );\n};\n"],"names":["HIDDEN_ITEMS","MenuCategoryId","CloudGateways","Switching","ROOT_SVG_ANIMATION_CONFIG","id","color","PARENT_SVG_ANIMATION_CONFIG","SVG_ANIMATION_CONFIG","VisualTopology","items","onLinkClick","language","useMicrositeMenu","formatMessage","useMicrositeMenuTranslations","createSiteUrl","useMenu","containerRef","useRef","elementsRef","categoryRef","isTopologyExpanded","setIsTopologyExpanded","useState","activeSubmenu","setActiveSubmenu","filteredNavigation","useMemo","filter","includes","filteredActiveSubmenu","isOverview","useEffect","length","wifi","jsxs","S.RootTopologyContainer","children","S.TopologyHeader","jsx","S.SectionTitle","Button","variant","onClick","S.ButtonLabel","S.StyledArrowIcon","src","ArrowIconTertiary","width","height","$isOpen","S.ItemsContainer","$isVisible","S.ContentWrapper","ref","rootConfig","map","label","url","isExternal","icon","index","S.Item","as","href","target","S.IconWrapper","S.ItemIcon","$width","$height","S.ItemLabel","S.RootSvgContainer","viewBox","xmlns","style","position","zIndex","d","stroke","S.RelativeContentContainer","S.TopologyMainContainer","paddingTop","item","itemIndex","S.TopologyNavItem","element","current","S.NavIcon","S.ExpandButton","S.StyledIcon","generic.minus","generic.plus","LinePaths","parentId","strokeColor","S.SubNavigationTopologyContainer","elementIndex","Tooltip","motif","cursorType","className","offset","description","S.TooltipLabel","dangerouslySetInnerHTML","__html","$withHover","event","S.TooltipStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,YAAe,GAAA,CAACC,cAAe,CAAAC,aAAA,EAAeD,eAAeE,SAAS,CAAA;AAE5E,MAAMC,yBAA4B,GAAA,CAChC;EAAEC,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC5C;EAAED,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,mBAAqB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAC9C;AAEA,MAAMC,2BAA8B,GAAA,CAClC;EAAEF,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC9C;EAAED,EAAA,EAAI,uBAAyB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAChD;EAAED,EAAA,EAAI,qBAAuB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAChD;AAEA,MAAME,oBAAuB,GAAA,CAC3B;EAAEH,EAAA,EAAI,eAAiB;EAAAC,KAAA,EAAO;AAAU,CAAA,EACxC;EAAED,EAAA,EAAI,iBAAmB;EAAAC,KAAA,EAAO;AAAU,CAAA,EAC1C;EAAED,EAAA,EAAI,eAAiB;EAAAC,KAAA,EAAO;AAAU,CAAA,CAC1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EAAA,CAAC,CAAA,CAAC6C,IAAM,EAAAtB,IAAA,EAAMd,GACb,mBAAAP,GAAA,CAACgD,OAAE,EAAF;gBACCzC,GAAA,EAAKoC,KAAKtB,IAAK,CAAAd,GAAA;gBACfG,MAAQ,EAAA,EAAA;gBACRD,KAAO,EAAA;cAAA,CACT,CAAA,EAAA,mBAEDsB,SAAE,EAAF;gBAAajC,QAAc,EAAAxB,aAAA,CAAAqE,IAAA,CAAKzB,KAAK;eAAE,CAAA;YAAA,CAC1C;UAAA,CAAA,EAjCK,WAAWyB,KAAK9E,EAAE,EAAA,CAmC1B,CAAA;SACH,CAAA;OACF,CAAA;KACF,CAAA,EAAA,eACAmC,GAAA,CAACqE,aAAE,EAAF,EAAgB,CAAA;EACnB,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const RootTopologyContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const TopologyHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
3
|
export declare const SectionTitle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const
|
|
4
|
+
export declare const ButtonLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const ItemsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
|
+
$isVisible: boolean;
|
|
7
|
+
}, never>;
|
|
4
8
|
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
9
|
export declare const Item: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
10
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -9,6 +13,9 @@ export declare const ItemIcon: import("styled-components").StyledComponent<"img"
|
|
|
9
13
|
$height?: number;
|
|
10
14
|
}, never>;
|
|
11
15
|
export declare const ItemLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
+
export declare const StyledArrowIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, $active, }: import("../../../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
|
17
|
+
$isOpen: boolean;
|
|
18
|
+
}, never>;
|
|
12
19
|
export declare const StyledIcon: import("styled-components").StyledComponent<({ src, width, height, renderedHeight, className, $active, }: import("../../../StyleableSvgImage").StyleableSvgImageProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
|
13
20
|
$isVisible: boolean;
|
|
14
21
|
}, never>;
|
|
@@ -19,20 +19,41 @@ const RootTopologyContainer = styled__default["default"].div`
|
|
|
19
19
|
position: relative;
|
|
20
20
|
margin-top: 16px;
|
|
21
21
|
`;
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const TopologyHeader = styled__default["default"].div`
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 16px;
|
|
24
26
|
left: 0;
|
|
27
|
+
position: absolute;
|
|
25
28
|
top: 0;
|
|
29
|
+
`;
|
|
30
|
+
const SectionTitle = styled__default["default"].span`
|
|
26
31
|
color: #212327;
|
|
27
32
|
font-size: 16px;
|
|
28
33
|
font-weight: 700;
|
|
29
34
|
line-height: normal;
|
|
30
35
|
`;
|
|
36
|
+
const ButtonLabel = styled__default["default"].span`
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
line-height: 16px;
|
|
39
|
+
`;
|
|
31
40
|
const ItemsContainer = styled__default["default"].div`
|
|
32
41
|
display: flex;
|
|
33
42
|
flex-direction: column;
|
|
34
43
|
width: 100%;
|
|
35
44
|
align-items: center;
|
|
45
|
+
max-height: 0;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
transition: all 0.5s cubic-bezier(0.4, 0, 0.6, 1);
|
|
49
|
+
|
|
50
|
+
${({
|
|
51
|
+
$isVisible
|
|
52
|
+
}) => $isVisible && styled.css`
|
|
53
|
+
overflow: unset;
|
|
54
|
+
opacity: 1;
|
|
55
|
+
max-height: 100vh;
|
|
56
|
+
`}
|
|
36
57
|
`;
|
|
37
58
|
const ContentWrapper = styled__default["default"].div`
|
|
38
59
|
display: flex;
|
|
@@ -71,6 +92,16 @@ const ItemLabel = styled__default["default"].span`
|
|
|
71
92
|
font-weight: 400;
|
|
72
93
|
line-height: normal;
|
|
73
94
|
`;
|
|
95
|
+
const StyledArrowIcon = styled__default["default"](StyleableSvgImage.StyleableSvgImage)`
|
|
96
|
+
color: ${theme.theme.colors.primaryBlue};
|
|
97
|
+
margin-left: 8px;
|
|
98
|
+
|
|
99
|
+
${({
|
|
100
|
+
$isOpen
|
|
101
|
+
}) => $isOpen && styled.css`
|
|
102
|
+
transform: rotate(180deg);
|
|
103
|
+
`}
|
|
104
|
+
`;
|
|
74
105
|
const StyledIcon = styled__default["default"](StyleableSvgImage.StyleableSvgImage)`
|
|
75
106
|
opacity: 0;
|
|
76
107
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -305,6 +336,7 @@ const TooltipStyles = styled.createGlobalStyle`
|
|
|
305
336
|
}
|
|
306
337
|
}
|
|
307
338
|
`;
|
|
339
|
+
exports.ButtonLabel = ButtonLabel;
|
|
308
340
|
exports.ContentWrapper = ContentWrapper;
|
|
309
341
|
exports.ExpandButton = ExpandButton;
|
|
310
342
|
exports.IconWrapper = IconWrapper;
|
|
@@ -317,11 +349,13 @@ exports.RelativeContentContainer = RelativeContentContainer;
|
|
|
317
349
|
exports.RootSvgContainer = RootSvgContainer;
|
|
318
350
|
exports.RootTopologyContainer = RootTopologyContainer;
|
|
319
351
|
exports.SectionTitle = SectionTitle;
|
|
352
|
+
exports.StyledArrowIcon = StyledArrowIcon;
|
|
320
353
|
exports.StyledIcon = StyledIcon;
|
|
321
354
|
exports.SubNavigationTopologyContainer = SubNavigationTopologyContainer;
|
|
322
355
|
exports.SvgWrapper = SvgWrapper;
|
|
323
356
|
exports.TooltipLabel = TooltipLabel;
|
|
324
357
|
exports.TooltipStyles = TooltipStyles;
|
|
358
|
+
exports.TopologyHeader = TopologyHeader;
|
|
325
359
|
exports.TopologyMainContainer = TopologyMainContainer;
|
|
326
360
|
exports.TopologyNavItem = TopologyNavItem;
|
|
327
361
|
//# sourceMappingURL=VisualTopology.styles.js.map
|
package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualTopology.styles.js","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.tsx"],"sourcesContent":["import styled, { createGlobalStyle, css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../DropdownMenu/DropdownMenu.styles\";\n\nconst MAIN_ICON_WIDTH = 78;\nconst MAIN_GAP_WIDTH = 16;\nconst TOOLTIP_CLASS_NAME = \"product-tooltip\";\n\nexport const RootTopologyContainer = styled.div`\n position: relative;\n margin-top: 16px;\n`;\n\nexport const SectionTitle = styled.span`\n position: absolute;\n left: 0;\n top: 0;\n color: #212327;\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n`;\n\nexport const ItemsContainer = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n`;\n\nexport const ContentWrapper = styled.div`\n display: flex;\n flex-direction: column;\n max-width: fit-content;\n gap: 20px;\n position: relative;\n transform: translateX(${MAIN_ICON_WIDTH / 2 + MAIN_GAP_WIDTH - 2}px);\n`;\n\nexport const Item = styled.div`\n display: flex;\n gap: 16px;\n align-items: center;\n`;\n\nexport const IconWrapper = styled.div`\n display: flex;\n justify-content: center;\n width: 78px;\n position: relative;\n height: 28px;\n background: ${theme.colors.white};\n`;\n\nexport const ItemIcon = styled.img<{ $width?: number; $height?: number }>`\n flex-shrink: 0;\n width: ${({ $width }) => $width}px;\n height: ${({ $height }) => $height}px;\n z-index: 12;\n`;\n\nexport const ItemLabel = styled.span`\n color: #212327;\n font-size: 13px;\n font-weight: 400;\n line-height: normal;\n`;\n\nexport const StyledIcon = styled(StyleableSvgImage)<{ $isVisible: boolean }>`\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n position: absolute;\n left: -9999px;\n width: 12px;\n\n ${({ $isVisible }) =>\n $isVisible &&\n `\n position: static;\n opacity: 1;\n `}\n`;\n\nexport const ExpandButton = styled.button`\n background: ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n`;\n\nexport const RootSvgContainer = styled.div`\n top: 24px;\n left: 36px;\n height: 100%;\n width: 6px;\n display: flex;\n justify-content: center;\n position: absolute;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-root 4.3s linear infinite !important;\n }\n\n #purpleParticlesRoot path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 0;\n }\n\n #blurContainerRoot path {\n filter: blur(10px);\n stroke: rgb(229 241 255);\n stroke-width: 6px;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-root {\n 100% {\n stroke-dashoffset: 150;\n\n #purpleParticlesRoot path {\n stroke-dashoffset: 220;\n }\n }\n }\n`;\n\nexport const RelativeContentContainer = styled.div`\n height: 100%;\n position: relative;\n width: 100%;\n`;\n\nexport const TopologyMainContainer = styled.div`\n display: flex;\n width: 100%;\n gap: 8px;\n position: relative;\n justify-content: center;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 135;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-opposite 4.3s linear infinite !important;\n }\n\n #purpleParticlesParent path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainerParent path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-opposite {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n`;\n\nexport const SubNavigationTopologyContainer = styled(TopologyMainContainer)<{\n $isVisible?: boolean;\n}>`\n position: absolute;\n left: -9999px;\n padding-top: 48px;\n opacity: 0;\n ${withCssTransition([\"opacity\"])};\n transition-duration: 0.5s !important;\n width: 100%;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 165;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow 4.3s linear infinite !important;\n }\n\n #purpleParticles path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainer path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n ${({ $isVisible }) =>\n $isVisible &&\n css`\n position: relative;\n left: 0;\n opacity: 1;\n `}\n`;\n\nexport const TopologyNavItem = styled.button<{ $withHover?: boolean }>`\n display: flex;\n background: transparent;\n cursor: pointer;\n outline: none;\n align-items: center;\n position: relative;\n border-radius: 6px;\n flex-direction: column;\n gap: 4px;\n min-width: 140px;\n border: 2px solid transparent;\n transition: all 0.15s ease-in-out;\n\n ${({ $withHover }) =>\n $withHover &&\n `\n padding: 12px 20px;\n\n &:hover {\n border: 2px solid #338CFF;\n background: linear-gradient(95deg, rgba(51, 140, 255, 0.20) 1.72%, rgba(107, 210, 253, 0.20) 100%), ${theme.colors.white};\n\n ${NavIcon}, ${ItemLabel} {\n color: ${theme.colors.primaryBlue};\n }\n `}\n`;\n\nexport const NavIcon = styled.img`\n color: #50565e;\n height: 38px;\n object-fit: none;\n`;\n\nexport const SvgWrapper = styled(StyleableSvgImage)`\n position: absolute;\n top: 0;\n left: 50%;\n width: 100%;\n transform: translateX(-100%);\n`;\n\nexport const TooltipLabel = styled.span`\n color: #676f79;\n font-size: 8px;\n line-height: normal;\n background: transparent;\n display: inline !important;\n`;\n\nexport const TooltipStyles = createGlobalStyle`\n .${TOOLTIP_CLASS_NAME} {\n z-index: 10;\n height: max-content;\n \n > div:nth-child(2) {\n border-radius: 6px;\n background: rgb(255 255 255 / 0.90);\n box-shadow: 0 0 16px 0 rgb(0 0 0 / 0.16);\n backdrop-filter: blur(7px);\n line-height: 10px;\n\n &::before {\n background: rgb(255 255 255 / 0.90);\n }\n\n > div {\n box-shadow: none; \n }\n }\n\n br {\n display: none;\n }\n }\n`;\n"],"names":["MAIN_ICON_WIDTH","MAIN_GAP_WIDTH","TOOLTIP_CLASS_NAME","RootTopologyContainer","styled","div","SectionTitle","span","ItemsContainer","ContentWrapper","Item","IconWrapper","theme","colors","white","ItemIcon","img","$width","$height","ItemLabel","StyledIcon","StyleableSvgImage","$isVisible","ExpandButton","button","primaryBlue","RootSvgContainer","RelativeContentContainer","TopologyMainContainer","SubNavigationTopologyContainer","withCssTransition","css","TopologyNavItem","$withHover","NavIcon","SvgWrapper","TooltipLabel","TooltipStyles","createGlobalStyle"],"mappings":";;;;;;;;;;;;;;AAMA,MAAMA,eAAkB,GAAA,EAAA;AACxB,MAAMC,cAAiB,GAAA,EAAA;AACvB,MAAMC,kBAAqB,GAAA,iBAAA;AAEpB,MAAMC,wBAAwBC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKrC,MAAMC,eAAeF,eAAO,CAAA,SAAA,CAAA,CAAAG,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;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,SAAA,CAAA,CAAAoB,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAclC,CAAC;EAAES;CAAW,KACdA,UACA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4GAKwGrB,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,QAEtHoB,YAAYf,SAAS;AAAA,eACdP,KAAA,CAAAA,KAAA,CAAMC,OAAOY,WAAW;AAAA;AAAA,GAEpC;AAAA,CAAA;AAGI,MAAMS,UAAU9B,eAAO,CAAA,SAAA,CAAA,CAAAY,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjB,MAAAmB,UAAA,GAAa/B,eAAAA,CAAAA,SAAAA,EAAOiB,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ3C,MAAMe,eAAehC,eAAO,CAAA,SAAA,CAAA,CAAAG,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ5B,MAAM8B,aAAgB,GAAAC,MAAAA,CAAAA,iBAAA;AAAA,KACxBpC,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"VisualTopology.styles.js","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.tsx"],"sourcesContent":["import styled, { createGlobalStyle, css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../DropdownMenu/DropdownMenu.styles\";\n\nconst MAIN_ICON_WIDTH = 78;\nconst MAIN_GAP_WIDTH = 16;\nconst TOOLTIP_CLASS_NAME = \"product-tooltip\";\n\nexport const RootTopologyContainer = styled.div`\n position: relative;\n margin-top: 16px;\n`;\n\nexport const TopologyHeader = styled.div`\n align-items: center;\n display: flex;\n gap: 16px;\n left: 0;\n position: absolute;\n top: 0;\n`;\n\nexport const SectionTitle = styled.span`\n color: #212327;\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n`;\n\nexport const ButtonLabel = styled.span`\n font-size: 12px;\n line-height: 16px;\n`;\n\nexport const ItemsContainer = styled.div<{ $isVisible: boolean }>`\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n max-height: 0;\n overflow: hidden;\n opacity: 0;\n transition: all 0.5s cubic-bezier(0.4, 0, 0.6, 1);\n\n ${({ $isVisible }) =>\n $isVisible &&\n css`\n overflow: unset;\n opacity: 1;\n max-height: 100vh;\n `}\n`;\n\nexport const ContentWrapper = styled.div`\n display: flex;\n flex-direction: column;\n max-width: fit-content;\n gap: 20px;\n position: relative;\n transform: translateX(${MAIN_ICON_WIDTH / 2 + MAIN_GAP_WIDTH - 2}px);\n`;\n\nexport const Item = styled.div`\n display: flex;\n gap: 16px;\n align-items: center;\n`;\n\nexport const IconWrapper = styled.div`\n display: flex;\n justify-content: center;\n width: 78px;\n position: relative;\n height: 28px;\n background: ${theme.colors.white};\n`;\n\nexport const ItemIcon = styled.img<{ $width?: number; $height?: number }>`\n flex-shrink: 0;\n width: ${({ $width }) => $width}px;\n height: ${({ $height }) => $height}px;\n z-index: 12;\n`;\n\nexport const ItemLabel = styled.span`\n color: #212327;\n font-size: 13px;\n font-weight: 400;\n line-height: normal;\n`;\n\nexport const StyledArrowIcon = styled(StyleableSvgImage)<{\n $isOpen: boolean;\n}>`\n color: ${theme.colors.primaryBlue};\n margin-left: 8px;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const StyledIcon = styled(StyleableSvgImage)<{ $isVisible: boolean }>`\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n position: absolute;\n left: -9999px;\n width: 12px;\n\n ${({ $isVisible }) =>\n $isVisible &&\n `\n position: static;\n opacity: 1;\n `}\n`;\n\nexport const ExpandButton = styled.button`\n background: ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n`;\n\nexport const RootSvgContainer = styled.div`\n top: 24px;\n left: 36px;\n height: 100%;\n width: 6px;\n display: flex;\n justify-content: center;\n position: absolute;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-root 4.3s linear infinite !important;\n }\n\n #purpleParticlesRoot path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 0;\n }\n\n #blurContainerRoot path {\n filter: blur(10px);\n stroke: rgb(229 241 255);\n stroke-width: 6px;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-root {\n 100% {\n stroke-dashoffset: 150;\n\n #purpleParticlesRoot path {\n stroke-dashoffset: 220;\n }\n }\n }\n`;\n\nexport const RelativeContentContainer = styled.div`\n height: 100%;\n position: relative;\n width: 100%;\n`;\n\nexport const TopologyMainContainer = styled.div`\n display: flex;\n width: 100%;\n gap: 8px;\n position: relative;\n justify-content: center;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 135;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-opposite 4.3s linear infinite !important;\n }\n\n #purpleParticlesParent path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainerParent path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-opposite {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n`;\n\nexport const SubNavigationTopologyContainer = styled(TopologyMainContainer)<{\n $isVisible?: boolean;\n}>`\n position: absolute;\n left: -9999px;\n padding-top: 48px;\n opacity: 0;\n ${withCssTransition([\"opacity\"])};\n transition-duration: 0.5s !important;\n width: 100%;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 165;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow 4.3s linear infinite !important;\n }\n\n #purpleParticles path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainer path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n ${({ $isVisible }) =>\n $isVisible &&\n css`\n position: relative;\n left: 0;\n opacity: 1;\n `}\n`;\n\nexport const TopologyNavItem = styled.button<{ $withHover?: boolean }>`\n display: flex;\n background: transparent;\n cursor: pointer;\n outline: none;\n align-items: center;\n position: relative;\n border-radius: 6px;\n flex-direction: column;\n gap: 4px;\n min-width: 140px;\n border: 2px solid transparent;\n transition: all 0.15s ease-in-out;\n\n ${({ $withHover }) =>\n $withHover &&\n `\n padding: 12px 20px;\n\n &:hover {\n border: 2px solid #338CFF;\n background: linear-gradient(95deg, rgba(51, 140, 255, 0.20) 1.72%, rgba(107, 210, 253, 0.20) 100%), ${theme.colors.white};\n\n ${NavIcon}, ${ItemLabel} {\n color: ${theme.colors.primaryBlue};\n }\n `}\n`;\n\nexport const NavIcon = styled.img`\n color: #50565e;\n height: 38px;\n object-fit: none;\n`;\n\nexport const SvgWrapper = styled(StyleableSvgImage)`\n position: absolute;\n top: 0;\n left: 50%;\n width: 100%;\n transform: translateX(-100%);\n`;\n\nexport const TooltipLabel = styled.span`\n color: #676f79;\n font-size: 8px;\n line-height: normal;\n background: transparent;\n display: inline !important;\n`;\n\nexport const TooltipStyles = createGlobalStyle`\n .${TOOLTIP_CLASS_NAME} {\n z-index: 10;\n height: max-content;\n \n > div:nth-child(2) {\n border-radius: 6px;\n background: rgb(255 255 255 / 0.90);\n box-shadow: 0 0 16px 0 rgb(0 0 0 / 0.16);\n backdrop-filter: blur(7px);\n line-height: 10px;\n\n &::before {\n background: rgb(255 255 255 / 0.90);\n }\n\n > div {\n box-shadow: none; \n }\n }\n\n br {\n display: none;\n }\n }\n`;\n"],"names":["MAIN_ICON_WIDTH","MAIN_GAP_WIDTH","TOOLTIP_CLASS_NAME","RootTopologyContainer","styled","div","TopologyHeader","SectionTitle","span","ButtonLabel","ItemsContainer","$isVisible","css","ContentWrapper","Item","IconWrapper","theme","colors","white","ItemIcon","img","$width","$height","ItemLabel","StyledArrowIcon","StyleableSvgImage","primaryBlue","$isOpen","StyledIcon","ExpandButton","button","RootSvgContainer","RelativeContentContainer","TopologyMainContainer","SubNavigationTopologyContainer","withCssTransition","TopologyNavItem","$withHover","NavIcon","SvgWrapper","TooltipLabel","TooltipStyles","createGlobalStyle"],"mappings":";;;;;;;;;;;;;;AAMA,MAAMA,eAAkB,GAAA,EAAA;AACxB,MAAMC,cAAiB,GAAA,EAAA;AACvB,MAAMC,kBAAqB,GAAA,iBAAA;AAEpB,MAAMC,wBAAwBC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKrC,MAAMC,iBAAiBF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS9B,MAAME,eAAeH,eAAO,CAAA,SAAA,CAAA,CAAAI,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO5B,MAAMC,cAAcL,eAAO,CAAA,SAAA,CAAA,CAAAI,IAAA;AAAA;AAAA;AAAA,CAAA;AAK3B,MAAME,iBAAiBN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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -11,20 +11,41 @@ const RootTopologyContainer = styled.div`
|
|
|
11
11
|
position: relative;
|
|
12
12
|
margin-top: 16px;
|
|
13
13
|
`;
|
|
14
|
-
const
|
|
15
|
-
|
|
14
|
+
const TopologyHeader = styled.div`
|
|
15
|
+
align-items: center;
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: 16px;
|
|
16
18
|
left: 0;
|
|
19
|
+
position: absolute;
|
|
17
20
|
top: 0;
|
|
21
|
+
`;
|
|
22
|
+
const SectionTitle = styled.span`
|
|
18
23
|
color: #212327;
|
|
19
24
|
font-size: 16px;
|
|
20
25
|
font-weight: 700;
|
|
21
26
|
line-height: normal;
|
|
22
27
|
`;
|
|
28
|
+
const ButtonLabel = styled.span`
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
line-height: 16px;
|
|
31
|
+
`;
|
|
23
32
|
const ItemsContainer = styled.div`
|
|
24
33
|
display: flex;
|
|
25
34
|
flex-direction: column;
|
|
26
35
|
width: 100%;
|
|
27
36
|
align-items: center;
|
|
37
|
+
max-height: 0;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transition: all 0.5s cubic-bezier(0.4, 0, 0.6, 1);
|
|
41
|
+
|
|
42
|
+
${({
|
|
43
|
+
$isVisible
|
|
44
|
+
}) => $isVisible && css`
|
|
45
|
+
overflow: unset;
|
|
46
|
+
opacity: 1;
|
|
47
|
+
max-height: 100vh;
|
|
48
|
+
`}
|
|
28
49
|
`;
|
|
29
50
|
const ContentWrapper = styled.div`
|
|
30
51
|
display: flex;
|
|
@@ -63,6 +84,16 @@ const ItemLabel = styled.span`
|
|
|
63
84
|
font-weight: 400;
|
|
64
85
|
line-height: normal;
|
|
65
86
|
`;
|
|
87
|
+
const StyledArrowIcon = styled(StyleableSvgImage)`
|
|
88
|
+
color: ${theme.colors.primaryBlue};
|
|
89
|
+
margin-left: 8px;
|
|
90
|
+
|
|
91
|
+
${({
|
|
92
|
+
$isOpen
|
|
93
|
+
}) => $isOpen && css`
|
|
94
|
+
transform: rotate(180deg);
|
|
95
|
+
`}
|
|
96
|
+
`;
|
|
66
97
|
const StyledIcon = styled(StyleableSvgImage)`
|
|
67
98
|
opacity: 0;
|
|
68
99
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -297,5 +328,5 @@ const TooltipStyles = createGlobalStyle`
|
|
|
297
328
|
}
|
|
298
329
|
}
|
|
299
330
|
`;
|
|
300
|
-
export { ContentWrapper, ExpandButton, IconWrapper, Item, ItemIcon, ItemLabel, ItemsContainer, NavIcon, RelativeContentContainer, RootSvgContainer, RootTopologyContainer, SectionTitle, StyledIcon, SubNavigationTopologyContainer, SvgWrapper, TooltipLabel, TooltipStyles, TopologyMainContainer, TopologyNavItem };
|
|
331
|
+
export { ButtonLabel, ContentWrapper, ExpandButton, IconWrapper, Item, ItemIcon, ItemLabel, ItemsContainer, NavIcon, RelativeContentContainer, RootSvgContainer, RootTopologyContainer, SectionTitle, StyledArrowIcon, StyledIcon, SubNavigationTopologyContainer, SvgWrapper, TooltipLabel, TooltipStyles, TopologyHeader, TopologyMainContainer, TopologyNavItem };
|
|
301
332
|
//# sourceMappingURL=VisualTopology.styles.mjs.map
|
package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisualTopology.styles.mjs","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.tsx"],"sourcesContent":["import styled, { createGlobalStyle, css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../DropdownMenu/DropdownMenu.styles\";\n\nconst MAIN_ICON_WIDTH = 78;\nconst MAIN_GAP_WIDTH = 16;\nconst TOOLTIP_CLASS_NAME = \"product-tooltip\";\n\nexport const RootTopologyContainer = styled.div`\n position: relative;\n margin-top: 16px;\n`;\n\nexport const SectionTitle = styled.span`\n position: absolute;\n left: 0;\n top: 0;\n color: #212327;\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n`;\n\nexport const ItemsContainer = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n`;\n\nexport const ContentWrapper = styled.div`\n display: flex;\n flex-direction: column;\n max-width: fit-content;\n gap: 20px;\n position: relative;\n transform: translateX(${MAIN_ICON_WIDTH / 2 + MAIN_GAP_WIDTH - 2}px);\n`;\n\nexport const Item = styled.div`\n display: flex;\n gap: 16px;\n align-items: center;\n`;\n\nexport const IconWrapper = styled.div`\n display: flex;\n justify-content: center;\n width: 78px;\n position: relative;\n height: 28px;\n background: ${theme.colors.white};\n`;\n\nexport const ItemIcon = styled.img<{ $width?: number; $height?: number }>`\n flex-shrink: 0;\n width: ${({ $width }) => $width}px;\n height: ${({ $height }) => $height}px;\n z-index: 12;\n`;\n\nexport const ItemLabel = styled.span`\n color: #212327;\n font-size: 13px;\n font-weight: 400;\n line-height: normal;\n`;\n\nexport const StyledIcon = styled(StyleableSvgImage)<{ $isVisible: boolean }>`\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n position: absolute;\n left: -9999px;\n width: 12px;\n\n ${({ $isVisible }) =>\n $isVisible &&\n `\n position: static;\n opacity: 1;\n `}\n`;\n\nexport const ExpandButton = styled.button`\n background: ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n`;\n\nexport const RootSvgContainer = styled.div`\n top: 24px;\n left: 36px;\n height: 100%;\n width: 6px;\n display: flex;\n justify-content: center;\n position: absolute;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-root 4.3s linear infinite !important;\n }\n\n #purpleParticlesRoot path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 0;\n }\n\n #blurContainerRoot path {\n filter: blur(10px);\n stroke: rgb(229 241 255);\n stroke-width: 6px;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-root {\n 100% {\n stroke-dashoffset: 150;\n\n #purpleParticlesRoot path {\n stroke-dashoffset: 220;\n }\n }\n }\n`;\n\nexport const RelativeContentContainer = styled.div`\n height: 100%;\n position: relative;\n width: 100%;\n`;\n\nexport const TopologyMainContainer = styled.div`\n display: flex;\n width: 100%;\n gap: 8px;\n position: relative;\n justify-content: center;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 135;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-opposite 4.3s linear infinite !important;\n }\n\n #purpleParticlesParent path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainerParent path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-opposite {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n`;\n\nexport const SubNavigationTopologyContainer = styled(TopologyMainContainer)<{\n $isVisible?: boolean;\n}>`\n position: absolute;\n left: -9999px;\n padding-top: 48px;\n opacity: 0;\n ${withCssTransition([\"opacity\"])};\n transition-duration: 0.5s !important;\n width: 100%;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 165;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow 4.3s linear infinite !important;\n }\n\n #purpleParticles path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainer path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n ${({ $isVisible }) =>\n $isVisible &&\n css`\n position: relative;\n left: 0;\n opacity: 1;\n `}\n`;\n\nexport const TopologyNavItem = styled.button<{ $withHover?: boolean }>`\n display: flex;\n background: transparent;\n cursor: pointer;\n outline: none;\n align-items: center;\n position: relative;\n border-radius: 6px;\n flex-direction: column;\n gap: 4px;\n min-width: 140px;\n border: 2px solid transparent;\n transition: all 0.15s ease-in-out;\n\n ${({ $withHover }) =>\n $withHover &&\n `\n padding: 12px 20px;\n\n &:hover {\n border: 2px solid #338CFF;\n background: linear-gradient(95deg, rgba(51, 140, 255, 0.20) 1.72%, rgba(107, 210, 253, 0.20) 100%), ${theme.colors.white};\n\n ${NavIcon}, ${ItemLabel} {\n color: ${theme.colors.primaryBlue};\n }\n `}\n`;\n\nexport const NavIcon = styled.img`\n color: #50565e;\n height: 38px;\n object-fit: none;\n`;\n\nexport const SvgWrapper = styled(StyleableSvgImage)`\n position: absolute;\n top: 0;\n left: 50%;\n width: 100%;\n transform: translateX(-100%);\n`;\n\nexport const TooltipLabel = styled.span`\n color: #676f79;\n font-size: 8px;\n line-height: normal;\n background: transparent;\n display: inline !important;\n`;\n\nexport const TooltipStyles = createGlobalStyle`\n .${TOOLTIP_CLASS_NAME} {\n z-index: 10;\n height: max-content;\n \n > div:nth-child(2) {\n border-radius: 6px;\n background: rgb(255 255 255 / 0.90);\n box-shadow: 0 0 16px 0 rgb(0 0 0 / 0.16);\n backdrop-filter: blur(7px);\n line-height: 10px;\n\n &::before {\n background: rgb(255 255 255 / 0.90);\n }\n\n > div {\n box-shadow: none; \n }\n }\n\n br {\n display: none;\n }\n }\n`;\n"],"names":["MAIN_ICON_WIDTH","MAIN_GAP_WIDTH","TOOLTIP_CLASS_NAME","RootTopologyContainer","styled","div","SectionTitle","span","ItemsContainer","ContentWrapper","Item","IconWrapper","theme","colors","white","ItemIcon","img","$width","$height","ItemLabel","StyledIcon","StyleableSvgImage","$isVisible","ExpandButton","button","primaryBlue","RootSvgContainer","RelativeContentContainer","TopologyMainContainer","SubNavigationTopologyContainer","withCssTransition","css","TopologyNavItem","$withHover","NavIcon","SvgWrapper","TooltipLabel","TooltipStyles","createGlobalStyle"],"mappings":";;;;;;AAMA,MAAMA,eAAkB,GAAA,EAAA;AACxB,MAAMC,cAAiB,GAAA,EAAA;AACvB,MAAMC,kBAAqB,GAAA,iBAAA;AAEpB,MAAMC,wBAAwBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKrC,MAAMC,eAAeF,MAAO,CAAAG,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU5B,MAAMC,iBAAiBJ,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMI,iBAAiBL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAMXL,eAAA,GAAkB,CAAI,GAAAC,cAAA,GAAiB,CAAC;AAAA,CAAA;AAG3D,MAAMS,OAAON,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMpB,MAAMM,cAAcP,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAMlBO,KAAA,CAAMC,OAAOC,KAAK;AAAA,CAAA;AAG3B,MAAMC,WAAWX,MAAO,CAAAY,GAAA;AAAA;AAAA,WAEpB,CAAC;EAAEC;AAAO,CAAA,KAAMA,MAAM;AAAA,YACrB,CAAC;EAAEC;AAAQ,CAAA,KAAMA,OAAO;AAAA;AAAA,CAAA;AAI7B,MAAMC,YAAYf,MAAO,CAAAG,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOnB,MAAAa,UAAA,GAAahB,OAAOiB,iBAAiB,CAAA;AAAA;AAAA;AAAA;AAAA;AA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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAmC9B,CAAC;EAAER;CAAW,KACdA,UACA,IAAAS,GAAA;AAAA;AAAA;AAAA;AAAA,KAIC;AAAA,CAAA;AAGE,MAAMC,kBAAkB5B,MAAO,CAAAoB,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAclC,CAAC;EAAES;CAAW,KACdA,UACA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4GAKwGrB,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,QAEtHoB,YAAYf,SAAS;AAAA,eACdP,KAAA,CAAMC,OAAOY,WAAW;AAAA;AAAA,GAEpC;AAAA,CAAA;AAGI,MAAMS,UAAU9B,MAAO,CAAAY,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjB,MAAAmB,UAAA,GAAa/B,OAAOiB,iBAAiB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ3C,MAAMe,eAAehC,MAAO,CAAAG,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ5B,MAAM8B,aAAgB,GAAAC,iBAAA;AAAA,KACxBpC,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"VisualTopology.styles.mjs","sources":["../../../../../src/components/MicrositeHeader/components/VisualTopology/VisualTopology.styles.tsx"],"sourcesContent":["import styled, { createGlobalStyle, css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { withCssTransition } from \"../DropdownMenu/DropdownMenu.styles\";\n\nconst MAIN_ICON_WIDTH = 78;\nconst MAIN_GAP_WIDTH = 16;\nconst TOOLTIP_CLASS_NAME = \"product-tooltip\";\n\nexport const RootTopologyContainer = styled.div`\n position: relative;\n margin-top: 16px;\n`;\n\nexport const TopologyHeader = styled.div`\n align-items: center;\n display: flex;\n gap: 16px;\n left: 0;\n position: absolute;\n top: 0;\n`;\n\nexport const SectionTitle = styled.span`\n color: #212327;\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n`;\n\nexport const ButtonLabel = styled.span`\n font-size: 12px;\n line-height: 16px;\n`;\n\nexport const ItemsContainer = styled.div<{ $isVisible: boolean }>`\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n max-height: 0;\n overflow: hidden;\n opacity: 0;\n transition: all 0.5s cubic-bezier(0.4, 0, 0.6, 1);\n\n ${({ $isVisible }) =>\n $isVisible &&\n css`\n overflow: unset;\n opacity: 1;\n max-height: 100vh;\n `}\n`;\n\nexport const ContentWrapper = styled.div`\n display: flex;\n flex-direction: column;\n max-width: fit-content;\n gap: 20px;\n position: relative;\n transform: translateX(${MAIN_ICON_WIDTH / 2 + MAIN_GAP_WIDTH - 2}px);\n`;\n\nexport const Item = styled.div`\n display: flex;\n gap: 16px;\n align-items: center;\n`;\n\nexport const IconWrapper = styled.div`\n display: flex;\n justify-content: center;\n width: 78px;\n position: relative;\n height: 28px;\n background: ${theme.colors.white};\n`;\n\nexport const ItemIcon = styled.img<{ $width?: number; $height?: number }>`\n flex-shrink: 0;\n width: ${({ $width }) => $width}px;\n height: ${({ $height }) => $height}px;\n z-index: 12;\n`;\n\nexport const ItemLabel = styled.span`\n color: #212327;\n font-size: 13px;\n font-weight: 400;\n line-height: normal;\n`;\n\nexport const StyledArrowIcon = styled(StyleableSvgImage)<{\n $isOpen: boolean;\n}>`\n color: ${theme.colors.primaryBlue};\n margin-left: 8px;\n\n ${({ $isOpen }) =>\n $isOpen &&\n css`\n transform: rotate(180deg);\n `}\n`;\n\nexport const StyledIcon = styled(StyleableSvgImage)<{ $isVisible: boolean }>`\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n position: absolute;\n left: -9999px;\n width: 12px;\n\n ${({ $isVisible }) =>\n $isVisible &&\n `\n position: static;\n opacity: 1;\n `}\n`;\n\nexport const ExpandButton = styled.button`\n background: ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n`;\n\nexport const RootSvgContainer = styled.div`\n top: 24px;\n left: 36px;\n height: 100%;\n width: 6px;\n display: flex;\n justify-content: center;\n position: absolute;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-root 4.3s linear infinite !important;\n }\n\n #purpleParticlesRoot path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 0;\n }\n\n #blurContainerRoot path {\n filter: blur(10px);\n stroke: rgb(229 241 255);\n stroke-width: 6px;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-root {\n 100% {\n stroke-dashoffset: 150;\n\n #purpleParticlesRoot path {\n stroke-dashoffset: 220;\n }\n }\n }\n`;\n\nexport const RelativeContentContainer = styled.div`\n height: 100%;\n position: relative;\n width: 100%;\n`;\n\nexport const TopologyMainContainer = styled.div`\n display: flex;\n width: 100%;\n gap: 8px;\n position: relative;\n justify-content: center;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 135;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow-opposite 4.3s linear infinite !important;\n }\n\n #purpleParticlesParent path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainerParent path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow-opposite {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n`;\n\nexport const SubNavigationTopologyContainer = styled(TopologyMainContainer)<{\n $isVisible?: boolean;\n}>`\n position: absolute;\n left: -9999px;\n padding-top: 48px;\n opacity: 0;\n ${withCssTransition([\"opacity\"])};\n transition-duration: 0.5s !important;\n width: 100%;\n\n path {\n stroke-dasharray: 0 8;\n stroke-width: 1.7;\n stroke-dashoffset: 165;\n stroke-linecap: round;\n stroke-linejoin: round;\n animation: flow 4.3s linear infinite !important;\n }\n\n #purpleParticles path {\n stroke-width: 1.5;\n stroke-dasharray: 0 14;\n stroke-dashoffset: 200;\n }\n\n #blurContainer path {\n filter: blur(2px);\n stroke: rgb(229 241 255);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 0;\n animation: none;\n }\n\n @keyframes flow {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n ${({ $isVisible }) =>\n $isVisible &&\n css`\n position: relative;\n left: 0;\n opacity: 1;\n `}\n`;\n\nexport const TopologyNavItem = styled.button<{ $withHover?: boolean }>`\n display: flex;\n background: transparent;\n cursor: pointer;\n outline: none;\n align-items: center;\n position: relative;\n border-radius: 6px;\n flex-direction: column;\n gap: 4px;\n min-width: 140px;\n border: 2px solid transparent;\n transition: all 0.15s ease-in-out;\n\n ${({ $withHover }) =>\n $withHover &&\n `\n padding: 12px 20px;\n\n &:hover {\n border: 2px solid #338CFF;\n background: linear-gradient(95deg, rgba(51, 140, 255, 0.20) 1.72%, rgba(107, 210, 253, 0.20) 100%), ${theme.colors.white};\n\n ${NavIcon}, ${ItemLabel} {\n color: ${theme.colors.primaryBlue};\n }\n `}\n`;\n\nexport const NavIcon = styled.img`\n color: #50565e;\n height: 38px;\n object-fit: none;\n`;\n\nexport const SvgWrapper = styled(StyleableSvgImage)`\n position: absolute;\n top: 0;\n left: 50%;\n width: 100%;\n transform: translateX(-100%);\n`;\n\nexport const TooltipLabel = styled.span`\n color: #676f79;\n font-size: 8px;\n line-height: normal;\n background: transparent;\n display: inline !important;\n`;\n\nexport const TooltipStyles = createGlobalStyle`\n .${TOOLTIP_CLASS_NAME} {\n z-index: 10;\n height: max-content;\n \n > div:nth-child(2) {\n border-radius: 6px;\n background: rgb(255 255 255 / 0.90);\n box-shadow: 0 0 16px 0 rgb(0 0 0 / 0.16);\n backdrop-filter: blur(7px);\n line-height: 10px;\n\n &::before {\n background: rgb(255 255 255 / 0.90);\n }\n\n > div {\n box-shadow: none; \n }\n }\n\n br {\n display: none;\n }\n }\n`;\n"],"names":["MAIN_ICON_WIDTH","MAIN_GAP_WIDTH","TOOLTIP_CLASS_NAME","RootTopologyContainer","styled","div","TopologyHeader","SectionTitle","span","ButtonLabel","ItemsContainer","$isVisible","css","ContentWrapper","Item","IconWrapper","theme","colors","white","ItemIcon","img","$width","$height","ItemLabel","StyledArrowIcon","StyleableSvgImage","primaryBlue","$isOpen","StyledIcon","ExpandButton","button","RootSvgContainer","RelativeContentContainer","TopologyMainContainer","SubNavigationTopologyContainer","withCssTransition","TopologyNavItem","$withHover","NavIcon","SvgWrapper","TooltipLabel","TooltipStyles","createGlobalStyle"],"mappings":";;;;;;AAMA,MAAMA,eAAkB,GAAA,EAAA;AACxB,MAAMC,cAAiB,GAAA,EAAA;AACvB,MAAMC,kBAAqB,GAAA,iBAAA;AAEpB,MAAMC,wBAAwBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKrC,MAAMC,iBAAiBF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS9B,MAAME,eAAeH,MAAO,CAAAI,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO5B,MAAMC,cAAcL,MAAO,CAAAI,IAAA;AAAA;AAAA;AAAA,CAAA;AAK3B,MAAME,iBAAiBN,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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A;AAAA;AAAA;AAAA;AAAA,IAclC,CAAC;EAAEO;CAAW,KACdA,UACA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4GAKwGrB,KAAA,CAAMC,OAAOC,KAAK;AAAA;AAAA,QAEtHoB,YAAYf,SAAS;AAAA,eACdP,KAAA,CAAMC,OAAOS,WAAW;AAAA;AAAA,GAEpC;AAAA,CAAA;AAGI,MAAMY,UAAUlC,MAAO,CAAAgB,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjB,MAAAmB,UAAA,GAAanC,OAAOqB,iBAAiB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ3C,MAAMe,eAAepC,MAAO,CAAAI,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQ5B,MAAMiC,aAAgB,GAAAC,iBAAA;AAAA,KACxBxC,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
package/lib/components/MicrositeHeader/components/VisualTopology/assets/arrow-icon-tertiary.svg.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var ArrowIconTertiary = require("../../../../../assets/arrow-icon-tertiary.svg");
|
|
7
|
+
function _interopDefault(e) {
|
|
8
|
+
return e && e.__esModule ? e : {
|
|
9
|
+
default: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
var ArrowIconTertiary__default = /*#__PURE__*/_interopDefault(ArrowIconTertiary);
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return ArrowIconTertiary__default["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.keys(ArrowIconTertiary).forEach(function (k) {
|
|
20
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return ArrowIconTertiary[k];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=arrow-icon-tertiary.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-icon-tertiary.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-icon-tertiary.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|