@evergis/apps 0.1.8 → 0.1.9

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.
Files changed (67) hide show
  1. package/README.md +118 -118
  2. package/dist/catalog/attributeFormat/Settings/styled.js +8 -8
  3. package/dist/catalog/attributeFormat/styled.js +171 -171
  4. package/dist/catalog/dialogs/EditResource/styled.js +22 -22
  5. package/dist/catalog/dialogs/ResourcePreview/styled.js +52 -52
  6. package/dist/catalog/dialogs/styled.js +87 -87
  7. package/dist/catalog/fields/ResourceTypeTiles/styled.js +56 -56
  8. package/dist/catalog/fields/styled.js +81 -81
  9. package/dist/catalog/geometry/GeometrySelector/styled.js +48 -48
  10. package/dist/catalog/selectors/AttributeSelector/styled.js +2 -2
  11. package/dist/catalog/selectors/DataSourceItemsList/styled.js +95 -95
  12. package/dist/catalog/selectors/DataSourcePicker/styled.js +11 -11
  13. package/dist/catalog/selectors/ResourceSelector/styled.js +11 -11
  14. package/dist/devmode/components/JsonTree/styled.js +84 -84
  15. package/dist/devmode/components/LayerCardPane/styled.js +53 -53
  16. package/dist/devmode/components/Markdown/MarkdownEditor/styled.js +43 -43
  17. package/dist/devmode/components/Markdown/MarkdownOutput/styled.js +10 -10
  18. package/dist/devmode/components/OutlinePanel/styled.js +40 -40
  19. package/dist/devmode/components/ResourceIcon/styled.js +30 -30
  20. package/dist/devmode/components/ResultsTable/styled.js +48 -48
  21. package/dist/devmode/components/RunErrorMessage/styled.js +20 -20
  22. package/dist/devmode/components/TreeExpand/index.js +12 -12
  23. package/dist/devmode/layout/DevModePanel/styled.js +20 -20
  24. package/dist/devmode/layout/DevModeTools/styled.js +29 -29
  25. package/dist/devmode/layout/NavigationSections/Header/styled.js +87 -87
  26. package/dist/devmode/layout/NavigationToggle/styled.js +21 -21
  27. package/dist/devmode/layout/PanelSwitcher/styled.js +49 -49
  28. package/dist/devmode/layout/StatusBar/styled.js +39 -39
  29. package/dist/devmode/layout/WorkspaceHeader/styled.js +37 -37
  30. package/dist/devmode/modules/eql/components/EqlEditor/styled.js +4 -4
  31. package/dist/devmode/modules/eql/components/QueryTypeSelect/styled.js +53 -53
  32. package/dist/devmode/modules/eql/components/modes/EqlConfigurationMode/AddConfiguration/styled.js +24 -24
  33. package/dist/devmode/modules/eql/dialogs/AddParameterDialog/styled.js +3 -3
  34. package/dist/devmode/modules/eql/styled.js +127 -127
  35. package/dist/devmode/modules/files/styled.js +14 -14
  36. package/dist/devmode/modules/layer/styled.js +10 -10
  37. package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js +14 -6
  38. package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js.map +1 -1
  39. package/dist/devmode/modules/navigation-catalog/styled.js +147 -147
  40. package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.d.ts +2 -1
  41. package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.js +1 -1
  42. package/dist/devmode/modules/python/components/Notebook/styled.js +203 -203
  43. package/dist/devmode/modules/python/components/PythonFileContent/styled.js +6 -6
  44. package/dist/devmode/modules/python/components/PythonRunBar/styled.js +5 -5
  45. package/dist/devmode/modules/python/components/PythonRunControl/styled.js +9 -9
  46. package/dist/devmode/modules/python/components/PythonRunLog/styled.js +11 -11
  47. package/dist/devmode/modules/python/components/PythonStatus/styled.js +11 -11
  48. package/dist/devmode/modules/python/components/SandboxesDialog/components/SandboxCard/styled.js +42 -42
  49. package/dist/devmode/modules/python/components/SandboxesDialog/styled.js +58 -58
  50. package/dist/devmode/modules/python/components/WorkerMetrics/styled.js +26 -26
  51. package/dist/devmode/modules/python/dialogs/ViewResponseDialog/styled.js +5 -5
  52. package/dist/devmode/modules/resource-json/styled.js +7 -7
  53. package/dist/devmode/modules/table/components/TableContent/styled.js +18 -18
  54. package/dist/devmode/monaco/MonacoEditor/styled.js +6 -6
  55. package/dist/devmode/monaco/ReadonlyMonacoEditor/styled.js +24 -24
  56. package/dist/devmode/navigation/CategoryTree/styled.js +65 -65
  57. package/dist/devmode/navigation/NodeActionsMenu/styled.js +63 -63
  58. package/dist/devmode/tabs/Panes/PaneHandle/styled.js +45 -45
  59. package/dist/devmode/tabs/Panes/styled.js +21 -21
  60. package/dist/devmode/tabs/ResultsDock/styled.js +35 -35
  61. package/dist/devmode/tabs/TabActions/styled.js +50 -50
  62. package/dist/devmode/tabs/TabPane/styled.js +6 -6
  63. package/dist/devmode/tabs/Tabs/Tab/styled.js +105 -105
  64. package/dist/devmode/tabs/Tabs/styled.js +61 -61
  65. package/dist/devmode/tabs/states/styled.js +2 -2
  66. package/dist/devmode/tabs/styled.js +37 -37
  67. package/package.json +321 -322
@@ -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-14ofheq" }) `
5
- position: absolute;
6
- outline: none;
7
- touch-action: none;
8
-
4
+ const PaneHandleLine = styled.div.withConfig({ displayName: "PaneHandleLine", componentId: "sc-12qud9s" }) `
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-wmtmw3" }) `
5
- display: contents;
6
-
4
+ const PaneLayer = styled.div.withConfig({ displayName: "PaneLayer", componentId: "sc-rrragv" }) `
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-hwzhde" }) `
15
- display: contents;
16
-
14
+ const PaneFrame = styled.div.withConfig({ displayName: "PaneFrame", componentId: "sc-sfb81g" }) `
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-e8cfkk" }) `
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-195957x" }) `
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-1h7uy5c" }) `
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-1pyjl66" }) `
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-15kkzgo" }) `
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-kmbrdj" }) `
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-rdpdda" }) `
40
- display: flex;
41
- align-items: center;
39
+ const ResultsHeaderActions = styled.div.withConfig({ displayName: "ResultsHeaderActions", componentId: "sc-mgc7j5" }) `
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-m4ncgl" }) `
5
- position: relative;
6
- width: 14px;
7
- height: 14px;
4
+ const ItemIconContainer = styled.div.withConfig({ displayName: "ItemIconContainer", componentId: "sc-1vhamwx" }) `
5
+ position: relative;
6
+ width: 14px;
7
+ height: 14px;
8
8
  `;
9
- const EditorTabsActionsContainer = styled.div.withConfig({ displayName: "EditorTabsActionsContainer", componentId: "sc-yghkv7" }) `
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-18lu19r" }) `
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-7yc6lw" }) `
55
- margin-left: auto;
54
+ const EditorTabsActionsEnd = styled(EditorTabsActionsContainer).withConfig({ displayName: "EditorTabsActionsEnd", componentId: "sc-1rsa7o3" }) `
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-1565sg1" }) `
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-sq9qfh" }) `
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-ozh95" }) `
14
- display: flex;
15
- width: 0.75rem;
16
- height: 0.75rem;
13
+ const ChangedIconContainer = styled.div.withConfig({ displayName: "ChangedIconContainer", componentId: "sc-1igs5lq" }) `
14
+ display: flex;
15
+ width: 0.75rem;
16
+ height: 0.75rem;
17
17
  `;
18
- const EditorTabChip = styled.div.withConfig({ displayName: "EditorTabChip", componentId: "sc-1sn00qf" }) `
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-1b7gd82" }) `
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-czuspo" }) `
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-19j7pp0" }) `
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-1m9f96m" }) `
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-1oonkyy" }) `
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-rov703" }) `
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-48ln4v" }) `
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-zbfwi6" }) `
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-1c2jvyx" }) `
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 };