@evergis/apps 0.1.12 → 0.1.13
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/README.md +118 -118
- package/dist/catalog/attributeFormat/Settings/styled.js +8 -8
- package/dist/catalog/attributeFormat/styled.js +171 -171
- package/dist/catalog/dialogs/EditResource/styled.js +22 -22
- package/dist/catalog/dialogs/ResourcePreview/styled.js +52 -52
- package/dist/catalog/dialogs/styled.js +87 -87
- package/dist/catalog/fields/ResourceTypeTiles/styled.js +56 -56
- package/dist/catalog/fields/styled.js +81 -81
- package/dist/catalog/geometry/GeometrySelector/styled.js +48 -48
- package/dist/catalog/selectors/AttributeSelector/styled.js +2 -2
- package/dist/catalog/selectors/DataSourceItemsList/styled.js +95 -95
- package/dist/catalog/selectors/DataSourcePicker/styled.js +11 -11
- package/dist/catalog/selectors/ResourceSelector/styled.js +11 -11
- package/dist/devmode/components/JsonTree/styled.js +84 -84
- package/dist/devmode/components/LayerCardPane/styled.js +53 -53
- package/dist/devmode/components/Markdown/MarkdownEditor/styled.js +43 -43
- package/dist/devmode/components/Markdown/MarkdownOutput/styled.js +10 -10
- package/dist/devmode/components/OutlinePanel/styled.js +40 -40
- package/dist/devmode/components/ResourceIcon/styled.js +30 -30
- package/dist/devmode/components/ResultsTable/styled.js +48 -48
- package/dist/devmode/components/RunErrorMessage/styled.js +20 -20
- package/dist/devmode/components/TreeExpand/index.js +12 -12
- package/dist/devmode/layout/DevModePanel/styled.js +20 -20
- package/dist/devmode/layout/DevModeTools/styled.js +29 -29
- package/dist/devmode/layout/NavigationSections/Header/styled.js +87 -87
- package/dist/devmode/layout/NavigationToggle/styled.js +21 -21
- package/dist/devmode/layout/PanelSwitcher/styled.js +49 -49
- package/dist/devmode/layout/StatusBar/styled.js +39 -39
- package/dist/devmode/layout/WorkspaceHeader/styled.js +37 -37
- package/dist/devmode/modules/eql/components/EqlEditor/styled.js +4 -4
- package/dist/devmode/modules/eql/components/QueryTypeSelect/styled.js +53 -53
- package/dist/devmode/modules/eql/components/modes/EqlConfigurationMode/AddConfiguration/styled.js +24 -24
- package/dist/devmode/modules/eql/dialogs/AddParameterDialog/styled.js +3 -3
- package/dist/devmode/modules/eql/styled.js +127 -127
- package/dist/devmode/modules/files/styled.js +14 -14
- package/dist/devmode/modules/layer/styled.js +10 -10
- package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js +6 -14
- package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js.map +1 -1
- package/dist/devmode/modules/navigation-catalog/styled.js +147 -147
- package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.d.ts +1 -2
- package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.js +1 -1
- package/dist/devmode/modules/python/components/Notebook/styled.js +203 -203
- package/dist/devmode/modules/python/components/PythonFileContent/styled.js +6 -6
- package/dist/devmode/modules/python/components/PythonRunBar/styled.js +5 -5
- package/dist/devmode/modules/python/components/PythonRunControl/styled.js +9 -9
- package/dist/devmode/modules/python/components/PythonRunLog/styled.js +11 -11
- package/dist/devmode/modules/python/components/PythonStatus/styled.js +11 -11
- package/dist/devmode/modules/python/components/SandboxesDialog/components/SandboxCard/styled.js +42 -42
- package/dist/devmode/modules/python/components/SandboxesDialog/styled.js +58 -58
- package/dist/devmode/modules/python/components/WorkerMetrics/styled.js +26 -26
- package/dist/devmode/modules/python/dialogs/ViewResponseDialog/styled.js +5 -5
- package/dist/devmode/modules/resource-json/styled.js +7 -7
- package/dist/devmode/modules/table/components/TableContent/styled.js +18 -18
- package/dist/devmode/monaco/MonacoEditor/styled.js +6 -6
- package/dist/devmode/monaco/ReadonlyMonacoEditor/styled.js +24 -24
- package/dist/devmode/navigation/CategoryTree/styled.js +65 -65
- package/dist/devmode/navigation/NodeActionsMenu/styled.js +63 -63
- package/dist/devmode/tabs/Panes/PaneHandle/styled.js +45 -45
- package/dist/devmode/tabs/Panes/styled.js +21 -21
- package/dist/devmode/tabs/ResultsDock/styled.js +35 -35
- package/dist/devmode/tabs/TabActions/styled.js +50 -50
- package/dist/devmode/tabs/TabPane/styled.js +6 -6
- package/dist/devmode/tabs/Tabs/Tab/styled.js +105 -105
- package/dist/devmode/tabs/Tabs/styled.js +61 -61
- package/dist/devmode/tabs/states/styled.js +2 -2
- package/dist/devmode/tabs/styled.js +37 -37
- package/package.json +5 -5
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { PANE_HANDLE_SIZE } from '../constants.js';
|
|
3
3
|
|
|
4
|
-
const PaneHandleLine = styled.div.withConfig({ displayName: "PaneHandleLine", componentId: "sc-
|
|
5
|
-
position: absolute;
|
|
6
|
-
outline: none;
|
|
7
|
-
touch-action: none;
|
|
8
|
-
|
|
4
|
+
const PaneHandleLine = styled.div.withConfig({ displayName: "PaneHandleLine", componentId: "sc-rg9hr3" }) `
|
|
5
|
+
position: absolute;
|
|
6
|
+
outline: none;
|
|
7
|
+
touch-action: none;
|
|
8
|
+
|
|
9
9
|
${({ $direction }) => $direction === "row"
|
|
10
|
-
? css `
|
|
11
|
-
width: ${PANE_HANDLE_SIZE}px;
|
|
12
|
-
margin: ${PANE_HANDLE_SIZE / 2}px 0 ${PANE_HANDLE_SIZE / 2}px -${PANE_HANDLE_SIZE / 2}px;
|
|
13
|
-
cursor: col-resize;
|
|
10
|
+
? css `
|
|
11
|
+
width: ${PANE_HANDLE_SIZE}px;
|
|
12
|
+
margin: ${PANE_HANDLE_SIZE / 2}px 0 ${PANE_HANDLE_SIZE / 2}px -${PANE_HANDLE_SIZE / 2}px;
|
|
13
|
+
cursor: col-resize;
|
|
14
14
|
`
|
|
15
|
-
: css `
|
|
16
|
-
height: ${PANE_HANDLE_SIZE}px;
|
|
17
|
-
margin: -${PANE_HANDLE_SIZE / 2}px ${PANE_HANDLE_SIZE / 2}px 0;
|
|
18
|
-
cursor: row-resize;
|
|
19
|
-
`}
|
|
20
|
-
|
|
21
|
-
&::after {
|
|
22
|
-
content: "";
|
|
23
|
-
position: absolute;
|
|
24
|
-
background: ${({ theme }) => theme.palette.primary};
|
|
25
|
-
opacity: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
15
|
+
: css `
|
|
16
|
+
height: ${PANE_HANDLE_SIZE}px;
|
|
17
|
+
margin: -${PANE_HANDLE_SIZE / 2}px ${PANE_HANDLE_SIZE / 2}px 0;
|
|
18
|
+
cursor: row-resize;
|
|
19
|
+
`}
|
|
20
|
+
|
|
21
|
+
&::after {
|
|
22
|
+
content: "";
|
|
23
|
+
position: absolute;
|
|
24
|
+
background: ${({ theme }) => theme.palette.primary};
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
28
|
${({ $direction }) => $direction === "row"
|
|
29
|
-
? css `
|
|
30
|
-
&::after {
|
|
31
|
-
top: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
left: 50%;
|
|
34
|
-
width: 1px;
|
|
35
|
-
transform: translateX(-50%);
|
|
36
|
-
}
|
|
29
|
+
? css `
|
|
30
|
+
&::after {
|
|
31
|
+
top: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 50%;
|
|
34
|
+
width: 1px;
|
|
35
|
+
transform: translateX(-50%);
|
|
36
|
+
}
|
|
37
37
|
`
|
|
38
|
-
: css `
|
|
39
|
-
&::after {
|
|
40
|
-
left: 0;
|
|
41
|
-
right: 0;
|
|
42
|
-
top: 50%;
|
|
43
|
-
height: 1px;
|
|
44
|
-
transform: translateY(-50%);
|
|
45
|
-
}
|
|
46
|
-
`}
|
|
47
|
-
|
|
48
|
-
&:hover::after,
|
|
49
|
-
&:focus-visible::after,
|
|
50
|
-
&[data-active="true"]::after {
|
|
51
|
-
opacity: 1;
|
|
52
|
-
}
|
|
38
|
+
: css `
|
|
39
|
+
&::after {
|
|
40
|
+
left: 0;
|
|
41
|
+
right: 0;
|
|
42
|
+
top: 50%;
|
|
43
|
+
height: 1px;
|
|
44
|
+
transform: translateY(-50%);
|
|
45
|
+
}
|
|
46
|
+
`}
|
|
47
|
+
|
|
48
|
+
&:hover::after,
|
|
49
|
+
&:focus-visible::after,
|
|
50
|
+
&[data-active="true"]::after {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
53
|
`;
|
|
54
54
|
|
|
55
55
|
export { PaneHandleLine };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { PANE_HANDLE_SIZE } from './constants.js';
|
|
3
3
|
|
|
4
|
-
const PaneLayer = styled.div.withConfig({ displayName: "PaneLayer", componentId: "sc-
|
|
5
|
-
display: contents;
|
|
6
|
-
|
|
4
|
+
const PaneLayer = styled.div.withConfig({ displayName: "PaneLayer", componentId: "sc-rmr6r3" }) `
|
|
5
|
+
display: contents;
|
|
6
|
+
|
|
7
7
|
${({ $split }) => $split &&
|
|
8
|
-
css `
|
|
9
|
-
position: absolute;
|
|
10
|
-
inset: -${PANE_HANDLE_SIZE / 2}px;
|
|
11
|
-
display: block;
|
|
12
|
-
`}
|
|
8
|
+
css `
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: -${PANE_HANDLE_SIZE / 2}px;
|
|
11
|
+
display: block;
|
|
12
|
+
`}
|
|
13
13
|
`;
|
|
14
|
-
const PaneFrame = styled.div.withConfig({ displayName: "PaneFrame", componentId: "sc-
|
|
15
|
-
display: contents;
|
|
16
|
-
|
|
14
|
+
const PaneFrame = styled.div.withConfig({ displayName: "PaneFrame", componentId: "sc-15r36gj" }) `
|
|
15
|
+
display: contents;
|
|
16
|
+
|
|
17
17
|
${({ $split, $active, theme: { palette } }) => $split &&
|
|
18
|
-
css `
|
|
19
|
-
position: absolute;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
margin: ${PANE_HANDLE_SIZE / 2}px;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
border-radius: 8px;
|
|
25
|
-
border: 1px solid ${$active ? palette.primary : palette.elementDeep};
|
|
26
|
-
background-color: ${palette.background !== "#fff" ? "#122631" : "#fff"};
|
|
27
|
-
`}
|
|
18
|
+
css `
|
|
19
|
+
position: absolute;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
margin: ${PANE_HANDLE_SIZE / 2}px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
border: 1px solid ${$active ? palette.primary : palette.elementDeep};
|
|
26
|
+
background-color: ${palette.background !== "#fff" ? "#122631" : "#fff"};
|
|
27
|
+
`}
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
export { PaneFrame, PaneLayer };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Flex, IconToggleButton, Icon } from '@evergis/uilib-gl';
|
|
3
3
|
|
|
4
|
-
const ResultsHeaderContainer = styled(Flex).withConfig({ displayName: "ResultsHeaderContainer", componentId: "sc-
|
|
5
|
-
align-items: center;
|
|
6
|
-
height: 1.5rem;
|
|
7
|
-
gap: 0 0.5rem;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
padding: 0 1rem;
|
|
10
|
-
background-color: ${({ theme: { palette } }) => palette.elementDark};
|
|
4
|
+
const ResultsHeaderContainer = styled(Flex).withConfig({ displayName: "ResultsHeaderContainer", componentId: "sc-tp06v8" }) `
|
|
5
|
+
align-items: center;
|
|
6
|
+
height: 1.5rem;
|
|
7
|
+
gap: 0 0.5rem;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 0 1rem;
|
|
10
|
+
background-color: ${({ theme: { palette } }) => palette.elementDark};
|
|
11
11
|
`;
|
|
12
|
-
const ResultsHeaderRight = styled.div.withConfig({ displayName: "ResultsHeaderRight", componentId: "sc-
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
gap: 0 0.5rem;
|
|
16
|
-
margin-left: auto;
|
|
17
|
-
min-width: 1px;
|
|
12
|
+
const ResultsHeaderRight = styled.div.withConfig({ displayName: "ResultsHeaderRight", componentId: "sc-11zc50t" }) `
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 0 0.5rem;
|
|
16
|
+
margin-left: auto;
|
|
17
|
+
min-width: 1px;
|
|
18
18
|
`;
|
|
19
|
-
const ResultsModeToggles = styled.div.withConfig({ displayName: "ResultsModeToggles", componentId: "sc-
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
gap: 0 0.25rem;
|
|
23
|
-
|
|
24
|
-
${IconToggleButton} {
|
|
25
|
-
width: 1.5rem;
|
|
26
|
-
height: 1.5rem;
|
|
27
|
-
padding: 5px;
|
|
28
|
-
|
|
29
|
-
${Icon} {
|
|
30
|
-
width: 14px;
|
|
31
|
-
height: 14px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
${Icon}:after {
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
19
|
+
const ResultsModeToggles = styled.div.withConfig({ displayName: "ResultsModeToggles", componentId: "sc-1c6ezcv" }) `
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
gap: 0 0.25rem;
|
|
23
|
+
|
|
24
|
+
${IconToggleButton} {
|
|
25
|
+
width: 1.5rem;
|
|
26
|
+
height: 1.5rem;
|
|
27
|
+
padding: 5px;
|
|
28
|
+
|
|
29
|
+
${Icon} {
|
|
30
|
+
width: 14px;
|
|
31
|
+
height: 14px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
${Icon}:after {
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
38
|
`;
|
|
39
|
-
const ResultsHeaderActions = styled.div.withConfig({ displayName: "ResultsHeaderActions", componentId: "sc-
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
39
|
+
const ResultsHeaderActions = styled.div.withConfig({ displayName: "ResultsHeaderActions", componentId: "sc-1ds41pw" }) `
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
44
|
export { ResultsHeaderActions, ResultsHeaderContainer, ResultsHeaderRight, ResultsModeToggles };
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { IconToggleButton, Icon, IconButtonButton } from '@evergis/uilib-gl';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
const ItemIconContainer = styled.div.withConfig({ displayName: "ItemIconContainer", componentId: "sc-
|
|
5
|
-
position: relative;
|
|
6
|
-
width: 14px;
|
|
7
|
-
height: 14px;
|
|
4
|
+
const ItemIconContainer = styled.div.withConfig({ displayName: "ItemIconContainer", componentId: "sc-1sck2g0" }) `
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 14px;
|
|
7
|
+
height: 14px;
|
|
8
8
|
`;
|
|
9
|
-
const EditorTabsActionsContainer = styled.div.withConfig({ displayName: "EditorTabsActionsContainer", componentId: "sc-
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-shrink: 0;
|
|
12
|
-
align-items: center;
|
|
13
|
-
|
|
14
|
-
gap: 0 0.25rem;
|
|
15
|
-
|
|
16
|
-
${IconToggleButton} {
|
|
17
|
-
height: 14px;
|
|
18
|
-
width: 14px;
|
|
19
|
-
padding: 5px;
|
|
20
|
-
margin: 0;
|
|
21
|
-
box-sizing: content-box;
|
|
22
|
-
|
|
23
|
-
${Icon} {
|
|
24
|
-
height: 14px;
|
|
25
|
-
width: 14px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
${Icon}:after {
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
${IconButtonButton} {
|
|
34
|
-
height: 14px;
|
|
35
|
-
width: 14px;
|
|
36
|
-
padding: 5px;
|
|
37
|
-
margin: 0;
|
|
38
|
-
box-sizing: content-box;
|
|
39
|
-
|
|
40
|
-
${Icon} {
|
|
41
|
-
height: 14px;
|
|
42
|
-
width: 14px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
${Icon}:after {
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
${ItemIconContainer} {
|
|
51
|
-
height: 14px;
|
|
52
|
-
}
|
|
9
|
+
const EditorTabsActionsContainer = styled.div.withConfig({ displayName: "EditorTabsActionsContainer", componentId: "sc-eeyzkz" }) `
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
gap: 0 0.25rem;
|
|
15
|
+
|
|
16
|
+
${IconToggleButton} {
|
|
17
|
+
height: 14px;
|
|
18
|
+
width: 14px;
|
|
19
|
+
padding: 5px;
|
|
20
|
+
margin: 0;
|
|
21
|
+
box-sizing: content-box;
|
|
22
|
+
|
|
23
|
+
${Icon} {
|
|
24
|
+
height: 14px;
|
|
25
|
+
width: 14px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
${Icon}:after {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
${IconButtonButton} {
|
|
34
|
+
height: 14px;
|
|
35
|
+
width: 14px;
|
|
36
|
+
padding: 5px;
|
|
37
|
+
margin: 0;
|
|
38
|
+
box-sizing: content-box;
|
|
39
|
+
|
|
40
|
+
${Icon} {
|
|
41
|
+
height: 14px;
|
|
42
|
+
width: 14px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
${Icon}:after {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
${ItemIconContainer} {
|
|
51
|
+
height: 14px;
|
|
52
|
+
}
|
|
53
53
|
`;
|
|
54
|
-
const EditorTabsActionsEnd = styled(EditorTabsActionsContainer).withConfig({ displayName: "EditorTabsActionsEnd", componentId: "sc-
|
|
55
|
-
margin-left: auto;
|
|
54
|
+
const EditorTabsActionsEnd = styled(EditorTabsActionsContainer).withConfig({ displayName: "EditorTabsActionsEnd", componentId: "sc-1hxvv9a" }) `
|
|
55
|
+
margin-left: auto;
|
|
56
56
|
`;
|
|
57
57
|
|
|
58
58
|
export { EditorTabsActionsContainer, EditorTabsActionsEnd, ItemIconContainer };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Flex } from '@evergis/uilib-gl';
|
|
3
3
|
|
|
4
|
-
const EditorPaneContainer = styled(Flex).withConfig({ displayName: "EditorPaneContainer", componentId: "sc-
|
|
5
|
-
display: ${({ $hidden }) => ($hidden ? "none" : "flex")};
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex: 1;
|
|
8
|
-
min-height: 0;
|
|
9
|
-
overflow: hidden;
|
|
4
|
+
const EditorPaneContainer = styled(Flex).withConfig({ displayName: "EditorPaneContainer", componentId: "sc-1cibc7v" }) `
|
|
5
|
+
display: ${({ $hidden }) => ($hidden ? "none" : "flex")};
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
flex: 1;
|
|
8
|
+
min-height: 0;
|
|
9
|
+
overflow: hidden;
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
12
|
export { EditorPaneContainer };
|
|
@@ -1,123 +1,123 @@
|
|
|
1
1
|
import { Icon, textOverflowEllipsisMixin } from '@evergis/uilib-gl';
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
|
|
4
|
-
const tabSurface = (active) => css `
|
|
4
|
+
const tabSurface = (active) => css `
|
|
5
5
|
background: ${({ theme }) => {
|
|
6
6
|
const isDark = theme.palette.background !== "#fff";
|
|
7
7
|
if (active) {
|
|
8
8
|
return isDark ? theme.palette.elementDeep : theme.palette.background;
|
|
9
9
|
}
|
|
10
10
|
return isDark ? theme.palette.element : theme.palette.elementLight;
|
|
11
|
-
}};
|
|
11
|
+
}};
|
|
12
12
|
`;
|
|
13
|
-
const ChangedIconContainer = styled.div.withConfig({ displayName: "ChangedIconContainer", componentId: "sc-
|
|
14
|
-
display: flex;
|
|
15
|
-
width: 0.75rem;
|
|
16
|
-
height: 0.75rem;
|
|
13
|
+
const ChangedIconContainer = styled.div.withConfig({ displayName: "ChangedIconContainer", componentId: "sc-16npbln" }) `
|
|
14
|
+
display: flex;
|
|
15
|
+
width: 0.75rem;
|
|
16
|
+
height: 0.75rem;
|
|
17
17
|
`;
|
|
18
|
-
const EditorTabChip = styled.div.withConfig({ displayName: "EditorTabChip", componentId: "sc-
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
padding: 0.3125rem 0.5rem;
|
|
24
|
-
border-radius: 0.25rem;
|
|
25
|
-
backdrop-filter: blur(0.625rem);
|
|
26
|
-
|
|
27
|
-
${({ $active }) => tabSurface($active)}
|
|
18
|
+
const EditorTabChip = styled.div.withConfig({ displayName: "EditorTabChip", componentId: "sc-12udgm6" }) `
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
padding: 0.3125rem 0.5rem;
|
|
24
|
+
border-radius: 0.25rem;
|
|
25
|
+
backdrop-filter: blur(0.625rem);
|
|
26
|
+
|
|
27
|
+
${({ $active }) => tabSurface($active)}
|
|
28
28
|
`;
|
|
29
|
-
const EditorTabDivider = styled.i.withConfig({ displayName: "EditorTabDivider", componentId: "sc-
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
width: 0.75rem;
|
|
32
|
-
height: 0.875rem;
|
|
33
|
-
background: ${({ theme }) => theme.palette.textPrimary};
|
|
34
|
-
opacity: 0.12;
|
|
35
|
-
mask: linear-gradient(#000 0 0) center / 1px 100% no-repeat;
|
|
29
|
+
const EditorTabDivider = styled.i.withConfig({ displayName: "EditorTabDivider", componentId: "sc-1j1oiel" }) `
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
width: 0.75rem;
|
|
32
|
+
height: 0.875rem;
|
|
33
|
+
background: ${({ theme }) => theme.palette.textPrimary};
|
|
34
|
+
opacity: 0.12;
|
|
35
|
+
mask: linear-gradient(#000 0 0) center / 1px 100% no-repeat;
|
|
36
36
|
`;
|
|
37
|
-
const EditorTabItem = styled.div.withConfig({ displayName: "EditorTabItem", componentId: "sc-
|
|
38
|
-
position: relative;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
flex-shrink: 0;
|
|
42
|
-
gap: 0.25rem;
|
|
43
|
-
box-sizing: border-box;
|
|
44
|
-
max-width: 12.5rem;
|
|
45
|
-
min-width: 0;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
|
|
48
|
-
${Icon}[kind="close"] {
|
|
49
|
-
display: flex;
|
|
50
|
-
width: 0.75rem;
|
|
51
|
-
height: 0.75rem;
|
|
52
|
-
flex-shrink: 0;
|
|
53
|
-
opacity: 0;
|
|
54
|
-
pointer-events: none;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
${Icon}[kind="close"]:after {
|
|
59
|
-
font-size: 0.75rem;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
${ChangedIconContainer} {
|
|
63
|
-
position: absolute;
|
|
64
|
-
right: 0;
|
|
65
|
-
pointer-events: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:hover {
|
|
69
|
-
${Icon}[kind="close"] {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
pointer-events: auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
${ChangedIconContainer} {
|
|
75
|
-
opacity: 0;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
37
|
+
const EditorTabItem = styled.div.withConfig({ displayName: "EditorTabItem", componentId: "sc-62y3w6" }) `
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
gap: 0.25rem;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
max-width: 12.5rem;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
|
|
48
|
+
${Icon}[kind="close"] {
|
|
49
|
+
display: flex;
|
|
50
|
+
width: 0.75rem;
|
|
51
|
+
height: 0.75rem;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
opacity: 0;
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
${Icon}[kind="close"]:after {
|
|
59
|
+
font-size: 0.75rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
${ChangedIconContainer} {
|
|
63
|
+
position: absolute;
|
|
64
|
+
right: 0;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
${Icon}[kind="close"] {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
pointer-events: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
${ChangedIconContainer} {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
78
|
`;
|
|
79
|
-
const EditorTabIconButton = styled.button.withConfig({ displayName: "EditorTabIconButton", componentId: "sc-
|
|
80
|
-
display: inline-flex;
|
|
81
|
-
flex-shrink: 0;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
width: 1.5rem;
|
|
85
|
-
height: 1.5rem;
|
|
86
|
-
margin: -0.25rem 0 -0.25rem -0.25rem;
|
|
87
|
-
padding: 0;
|
|
88
|
-
border: none;
|
|
89
|
-
background: none;
|
|
90
|
-
color: ${({ theme }) => theme.palette.icon};
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
|
|
93
|
-
&:disabled {
|
|
94
|
-
cursor: default;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
> [data-role="action"] {
|
|
98
|
-
display: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&:not(:disabled):hover > [data-role="action"],
|
|
102
|
-
&:not(:disabled):focus-visible > [data-role="action"],
|
|
103
|
-
&[data-open="true"] > [data-role="action"] {
|
|
104
|
-
display: inline-flex;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:not(:disabled):hover > [data-role="type"],
|
|
108
|
-
&:not(:disabled):focus-visible > [data-role="type"],
|
|
109
|
-
&[data-open="true"] > [data-role="type"] {
|
|
110
|
-
display: none;
|
|
111
|
-
}
|
|
79
|
+
const EditorTabIconButton = styled.button.withConfig({ displayName: "EditorTabIconButton", componentId: "sc-srsf0s" }) `
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
width: 1.5rem;
|
|
85
|
+
height: 1.5rem;
|
|
86
|
+
margin: -0.25rem 0 -0.25rem -0.25rem;
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: none;
|
|
89
|
+
background: none;
|
|
90
|
+
color: ${({ theme }) => theme.palette.icon};
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
|
|
93
|
+
&:disabled {
|
|
94
|
+
cursor: default;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
> [data-role="action"] {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:not(:disabled):hover > [data-role="action"],
|
|
102
|
+
&:not(:disabled):focus-visible > [data-role="action"],
|
|
103
|
+
&[data-open="true"] > [data-role="action"] {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:not(:disabled):hover > [data-role="type"],
|
|
108
|
+
&:not(:disabled):focus-visible > [data-role="type"],
|
|
109
|
+
&[data-open="true"] > [data-role="type"] {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
112
|
`;
|
|
113
|
-
const EditorTabText = styled.div.withConfig({ displayName: "EditorTabText", componentId: "sc-
|
|
114
|
-
min-width: 0;
|
|
115
|
-
font-size: 0.75rem;
|
|
116
|
-
line-height: 0.875rem;
|
|
117
|
-
font-weight: ${({ active }) => (active ? "700" : "normal")};
|
|
118
|
-
opacity: ${({ active }) => (active ? 1 : 0.65)};
|
|
119
|
-
|
|
120
|
-
${textOverflowEllipsisMixin}
|
|
113
|
+
const EditorTabText = styled.div.withConfig({ displayName: "EditorTabText", componentId: "sc-1ys9mzd" }) `
|
|
114
|
+
min-width: 0;
|
|
115
|
+
font-size: 0.75rem;
|
|
116
|
+
line-height: 0.875rem;
|
|
117
|
+
font-weight: ${({ active }) => (active ? "700" : "normal")};
|
|
118
|
+
opacity: ${({ active }) => (active ? 1 : 0.65)};
|
|
119
|
+
|
|
120
|
+
${textOverflowEllipsisMixin}
|
|
121
121
|
`;
|
|
122
122
|
|
|
123
123
|
export { ChangedIconContainer, EditorTabChip, EditorTabDivider, EditorTabIconButton, EditorTabItem, EditorTabText };
|