@evergis/apps 0.1.6 → 0.1.8

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 (63) 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/styled.js +147 -147
  38. package/dist/devmode/modules/python/components/Notebook/styled.js +203 -203
  39. package/dist/devmode/modules/python/components/PythonFileContent/styled.js +6 -6
  40. package/dist/devmode/modules/python/components/PythonRunBar/styled.js +5 -5
  41. package/dist/devmode/modules/python/components/PythonRunControl/styled.js +9 -9
  42. package/dist/devmode/modules/python/components/PythonRunLog/styled.js +11 -11
  43. package/dist/devmode/modules/python/components/PythonStatus/styled.js +11 -11
  44. package/dist/devmode/modules/python/components/SandboxesDialog/components/SandboxCard/styled.js +42 -42
  45. package/dist/devmode/modules/python/components/SandboxesDialog/styled.js +58 -58
  46. package/dist/devmode/modules/python/components/WorkerMetrics/styled.js +26 -26
  47. package/dist/devmode/modules/python/dialogs/ViewResponseDialog/styled.js +5 -5
  48. package/dist/devmode/modules/resource-json/styled.js +7 -7
  49. package/dist/devmode/modules/table/components/TableContent/styled.js +18 -18
  50. package/dist/devmode/monaco/MonacoEditor/styled.js +6 -6
  51. package/dist/devmode/monaco/ReadonlyMonacoEditor/styled.js +24 -24
  52. package/dist/devmode/navigation/CategoryTree/styled.js +65 -65
  53. package/dist/devmode/navigation/NodeActionsMenu/styled.js +63 -63
  54. package/dist/devmode/tabs/Panes/PaneHandle/styled.js +45 -45
  55. package/dist/devmode/tabs/Panes/styled.js +21 -21
  56. package/dist/devmode/tabs/ResultsDock/styled.js +35 -35
  57. package/dist/devmode/tabs/TabActions/styled.js +50 -50
  58. package/dist/devmode/tabs/TabPane/styled.js +6 -6
  59. package/dist/devmode/tabs/Tabs/Tab/styled.js +105 -105
  60. package/dist/devmode/tabs/Tabs/styled.js +61 -61
  61. package/dist/devmode/tabs/states/styled.js +2 -2
  62. package/dist/devmode/tabs/styled.js +37 -37
  63. package/package.json +8 -8
@@ -1,30 +1,30 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const EditResourceContainer = styled.div.withConfig({ displayName: "EditResourceContainer", componentId: "sc-wl6l6u" }) `
4
- display: flex;
5
- flex-direction: column;
6
- gap: 1.5rem 0;
7
- width: 100%;
3
+ const EditResourceContainer = styled.div.withConfig({ displayName: "EditResourceContainer", componentId: "sc-12nafuq" }) `
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 1.5rem 0;
7
+ width: 100%;
8
8
  `;
9
- const EditResourceWrapper = styled.div.withConfig({ displayName: "EditResourceWrapper", componentId: "sc-14zy1u2" }) `
10
- display: flex;
11
- gap: 0 1.5rem;
12
- width: 100%;
13
- flex-direction: ${({ $noType }) => ($noType ? "column" : "row")};
9
+ const EditResourceWrapper = styled.div.withConfig({ displayName: "EditResourceWrapper", componentId: "sc-1sei6j7" }) `
10
+ display: flex;
11
+ gap: 0 1.5rem;
12
+ width: 100%;
13
+ flex-direction: ${({ $noType }) => ($noType ? "column" : "row")};
14
14
  `;
15
- const EditResourcePreview = styled.div.withConfig({ displayName: "EditResourcePreview", componentId: "sc-z0254f" }) `
16
- width: 10rem;
17
- height: 7.5rem;
18
- flex-shrink: 0;
19
- display: flex;
20
- justify-content: center;
15
+ const EditResourcePreview = styled.div.withConfig({ displayName: "EditResourcePreview", componentId: "sc-10nacny" }) `
16
+ width: 10rem;
17
+ height: 7.5rem;
18
+ flex-shrink: 0;
19
+ display: flex;
20
+ justify-content: center;
21
21
  `;
22
- const EditResourceMeta = styled.div.withConfig({ displayName: "EditResourceMeta", componentId: "sc-19q1m1m" }) `
23
- display: flex;
24
- flex-direction: column;
25
- width: 100%;
26
- min-width: 1px;
27
- gap: 1rem 0;
22
+ const EditResourceMeta = styled.div.withConfig({ displayName: "EditResourceMeta", componentId: "sc-ia66w6" }) `
23
+ display: flex;
24
+ flex-direction: column;
25
+ width: 100%;
26
+ min-width: 1px;
27
+ gap: 1rem 0;
28
28
  `;
29
29
 
30
30
  export { EditResourceContainer, EditResourceMeta, EditResourcePreview, EditResourceWrapper };
@@ -4,67 +4,67 @@ import { ResourceType } from '../../core/types.js';
4
4
  import img from '../../assets/resource/folder_preview.svg.js';
5
5
 
6
6
  const FOLDER_BACKGROUND = "rgba(0, 170, 255, 0.06)";
7
- const PreviewIconContainer = styled.div.withConfig({ displayName: "PreviewIconContainer", componentId: "sc-77qx6t" }) `
8
- width: ${({ $width = "100%" }) => $width};
9
- height: ${({ $height = "100%" }) => $height};
10
- flex-shrink: 0;
11
- position: relative;
12
- border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
13
- display: flex;
14
- flex-direction: column;
15
- background-color: ${({ $resourceType, $type, theme, $isFolder }) => $isFolder ? FOLDER_BACKGROUND : getResourceColor($resourceType, $type) || theme.palette.elementDark};
7
+ const PreviewIconContainer = styled.div.withConfig({ displayName: "PreviewIconContainer", componentId: "sc-dxwcqq" }) `
8
+ width: ${({ $width = "100%" }) => $width};
9
+ height: ${({ $height = "100%" }) => $height};
10
+ flex-shrink: 0;
11
+ position: relative;
12
+ border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
13
+ display: flex;
14
+ flex-direction: column;
15
+ background-color: ${({ $resourceType, $type, theme, $isFolder }) => $isFolder ? FOLDER_BACKGROUND : getResourceColor($resourceType, $type) || theme.palette.elementDark};
16
16
  `;
17
- const PreviewIconResource = styled.img.withConfig({ displayName: "PreviewIconResource", componentId: "sc-6ejzto" }) `
18
- object-fit: cover;
19
- flex-shrink: 0;
20
- position: absolute;
21
- right: 0;
22
- top: 0;
23
- width: ${({ $width = "75%" }) => $width};
24
- height: ${({ $height = "100%" }) => $height};
25
- border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
26
-
17
+ const PreviewIconResource = styled.img.withConfig({ displayName: "PreviewIconResource", componentId: "sc-wyq0lo" }) `
18
+ object-fit: cover;
19
+ flex-shrink: 0;
20
+ position: absolute;
21
+ right: 0;
22
+ top: 0;
23
+ width: ${({ $width = "75%" }) => $width};
24
+ height: ${({ $height = "100%" }) => $height};
25
+ border-radius: ${({ $borderRadius = "1rem" }) => $borderRadius};
26
+
27
27
  ${({ $resourceType }) => $resourceType === ResourceType.PostgresSchema &&
28
- css `
29
- width: 7.5rem;
30
- height: 7.5rem;
31
- top: 1.875rem;
32
- border-radius: 0;
33
- `}
28
+ css `
29
+ width: 7.5rem;
30
+ height: 7.5rem;
31
+ top: 1.875rem;
32
+ border-radius: 0;
33
+ `}
34
34
  `;
35
- const PreviewIconFile = styled.div.withConfig({ displayName: "PreviewIconFile", componentId: "sc-yavlq5" }) `
36
- width: 3rem;
37
- height: 3rem;
38
- margin: auto;
39
- /* Кавычки обязательны: svg встраиваются в сборку data URI с пробелами и одинарными кавычками. */
40
- background: url("${({ $isDirectory, $resourceType }) => ($isDirectory ? img : getResourceTypeIcon($resourceType))}")
41
- center center no-repeat;
35
+ const PreviewIconFile = styled.div.withConfig({ displayName: "PreviewIconFile", componentId: "sc-olw9dt" }) `
36
+ width: 3rem;
37
+ height: 3rem;
38
+ margin: auto;
39
+ /* Кавычки обязательны: svg встраиваются в сборку data URI с пробелами и одинарными кавычками. */
40
+ background: url("${({ $isDirectory, $resourceType }) => ($isDirectory ? img : getResourceTypeIcon($resourceType))}")
41
+ center center no-repeat;
42
42
  `;
43
43
  const SYM_LINK_SIZES = {
44
- small: css `
45
- width: 0.75rem;
46
- height: 0.75rem;
47
- bottom: 2px;
48
- right: 2px;
44
+ small: css `
45
+ width: 0.75rem;
46
+ height: 0.75rem;
47
+ bottom: 2px;
48
+ right: 2px;
49
49
  `,
50
- properties: css `
51
- width: 1rem;
52
- height: 1rem;
53
- bottom: 0.5rem;
54
- right: 0.5rem;
50
+ properties: css `
51
+ width: 1rem;
52
+ height: 1rem;
53
+ bottom: 0.5rem;
54
+ right: 0.5rem;
55
55
  `,
56
- list: css `
57
- width: 1.5rem;
58
- height: 1.5rem;
59
- bottom: 0.75rem;
60
- right: 0.75rem;
56
+ list: css `
57
+ width: 1.5rem;
58
+ height: 1.5rem;
59
+ bottom: 0.75rem;
60
+ right: 0.75rem;
61
61
  `,
62
62
  };
63
- const ResourceIconSymLink = styled.img.withConfig({ displayName: "ResourceIconSymLink", componentId: "sc-1cjgh5l" }) `
64
- position: absolute;
65
- object-fit: cover;
66
- z-index: 2;
67
- ${({ $size }) => SYM_LINK_SIZES[$size]}
63
+ const ResourceIconSymLink = styled.img.withConfig({ displayName: "ResourceIconSymLink", componentId: "sc-13yhbs3" }) `
64
+ position: absolute;
65
+ object-fit: cover;
66
+ z-index: 2;
67
+ ${({ $size }) => SYM_LINK_SIZES[$size]}
68
68
  `;
69
69
 
70
70
  export { PreviewIconContainer, PreviewIconFile, PreviewIconResource, ResourceIconSymLink };
@@ -6,106 +6,106 @@ const ResourceModal = styled(Dialog).attrs(props => ({
6
6
  minWidth: "58rem",
7
7
  maxWidth: "75rem",
8
8
  ...props,
9
- })).withConfig({ displayName: "ResourceModal", componentId: "sc-99mg8j" }) `
10
- border-radius: 12px;
11
- position: relative;
9
+ })).withConfig({ displayName: "ResourceModal", componentId: "sc-1rsxsw8" }) `
10
+ border-radius: 12px;
11
+ position: relative;
12
12
  `;
13
- const HeaderContainer = styled.div.withConfig({ displayName: "HeaderContainer", componentId: "sc-5f3o8q" }) `
14
- display: flex;
15
- align-items: center;
16
- padding: 2rem 2rem 0 3rem;
17
- width: 100%;
18
- box-sizing: border-box;
19
- margin-bottom: 2rem;
13
+ const HeaderContainer = styled.div.withConfig({ displayName: "HeaderContainer", componentId: "sc-9gvv8o" }) `
14
+ display: flex;
15
+ align-items: center;
16
+ padding: 2rem 2rem 0 3rem;
17
+ width: 100%;
18
+ box-sizing: border-box;
19
+ margin-bottom: 2rem;
20
20
  `;
21
- const HeaderTitle = styled.div.withConfig({ displayName: "HeaderTitle", componentId: "sc-1xyxft1" }) `
22
- font-size: 1.5rem;
23
- display: flex;
24
- align-items: center;
25
- gap: 0 1rem;
21
+ const HeaderTitle = styled.div.withConfig({ displayName: "HeaderTitle", componentId: "sc-6x7amh" }) `
22
+ font-size: 1.5rem;
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 0 1rem;
26
26
  `;
27
- const HeaderActions = styled.div.withConfig({ displayName: "HeaderActions", componentId: "sc-zwjodb" }) `
28
- display: flex;
29
- flex-wrap: nowrap;
30
- flex-shrink: 0;
31
- align-items: center;
32
- margin-left: auto;
27
+ const HeaderActions = styled.div.withConfig({ displayName: "HeaderActions", componentId: "sc-1d5ttoy" }) `
28
+ display: flex;
29
+ flex-wrap: nowrap;
30
+ flex-shrink: 0;
31
+ align-items: center;
32
+ margin-left: auto;
33
33
  `;
34
- const ModalContent = styled(DialogContent).withConfig({ displayName: "ModalContent", componentId: "sc-1pmzcj8" }) `
35
- flex-grow: 1;
36
- flex-direction: column;
37
- height: 100%;
38
- padding: 0 3rem;
39
- width: 100%;
40
- align-items: start;
41
- box-sizing: border-box;
42
- gap: 1.5rem;
34
+ const ModalContent = styled(DialogContent).withConfig({ displayName: "ModalContent", componentId: "sc-g4hyrc" }) `
35
+ flex-grow: 1;
36
+ flex-direction: column;
37
+ height: 100%;
38
+ padding: 0 3rem;
39
+ width: 100%;
40
+ align-items: start;
41
+ box-sizing: border-box;
42
+ gap: 1.5rem;
43
43
  `;
44
- const ModalDialogActions = styled(DialogActions).withConfig({ displayName: "ModalDialogActions", componentId: "sc-1yho3v8" }) `
45
- align-items: center;
46
- flex-shrink: 0;
47
- margin-top: auto;
48
- padding: 1.5rem 3rem;
49
- width: 100%;
50
- box-sizing: border-box;
44
+ const ModalDialogActions = styled(DialogActions).withConfig({ displayName: "ModalDialogActions", componentId: "sc-1cx1tkc" }) `
45
+ align-items: center;
46
+ flex-shrink: 0;
47
+ margin-top: auto;
48
+ padding: 1.5rem 3rem;
49
+ width: 100%;
50
+ box-sizing: border-box;
51
51
  `;
52
- const FrameContent = styled.div.withConfig({ displayName: "FrameContent", componentId: "sc-1w19tlo" }) `
53
- display: flex;
54
- flex-direction: column;
55
- gap: 1rem;
56
- min-width: 24rem;
52
+ const FrameContent = styled.div.withConfig({ displayName: "FrameContent", componentId: "sc-1x0nau9" }) `
53
+ display: flex;
54
+ flex-direction: column;
55
+ gap: 1rem;
56
+ min-width: 24rem;
57
57
  `;
58
- const BrowserContainer = styled.div.withConfig({ displayName: "BrowserContainer", componentId: "sc-1qzybbp" }) `
59
- display: flex;
60
- flex-direction: column;
61
- gap: 0.5rem;
62
- min-width: 32rem;
58
+ const BrowserContainer = styled.div.withConfig({ displayName: "BrowserContainer", componentId: "sc-1l0yxy1" }) `
59
+ display: flex;
60
+ flex-direction: column;
61
+ gap: 0.5rem;
62
+ min-width: 32rem;
63
63
  `;
64
- const BrowserToolbar = styled.div.withConfig({ displayName: "BrowserToolbar", componentId: "sc-1797c91" }) `
65
- display: flex;
66
- gap: 0.5rem;
67
- align-items: center;
64
+ const BrowserToolbar = styled.div.withConfig({ displayName: "BrowserToolbar", componentId: "sc-18fvldd" }) `
65
+ display: flex;
66
+ gap: 0.5rem;
67
+ align-items: center;
68
68
  `;
69
- const Breadcrumbs = styled.div.withConfig({ displayName: "Breadcrumbs", componentId: "sc-h51j0w" }) `
70
- display: flex;
71
- align-items: center;
72
- gap: 0.25rem;
73
- font-size: 0.875rem;
74
- color: ${({ theme: { palette } }) => palette.textSecondary};
69
+ const Breadcrumbs = styled.div.withConfig({ displayName: "Breadcrumbs", componentId: "sc-c07i9e" }) `
70
+ display: flex;
71
+ align-items: center;
72
+ gap: 0.25rem;
73
+ font-size: 0.875rem;
74
+ color: ${({ theme: { palette } }) => palette.textSecondary};
75
75
  `;
76
- const BrowserList = styled.div.withConfig({ displayName: "BrowserList", componentId: "sc-lu8opo" }) `
77
- display: flex;
78
- flex-direction: column;
79
- height: 22rem;
80
- overflow: auto;
81
- border: 1px solid ${({ theme: { palette } }) => palette.elementDeep};
82
- border-radius: 0.25rem;
76
+ const BrowserList = styled.div.withConfig({ displayName: "BrowserList", componentId: "sc-85bn72" }) `
77
+ display: flex;
78
+ flex-direction: column;
79
+ height: 22rem;
80
+ overflow: auto;
81
+ border: 1px solid ${({ theme: { palette } }) => palette.elementDeep};
82
+ border-radius: 0.25rem;
83
83
  `;
84
- const BrowserRow = styled.div.withConfig({ displayName: "BrowserRow", componentId: "sc-1s7lfat" }) `
85
- display: flex;
86
- align-items: center;
87
- gap: 0.5rem;
88
- min-height: 2rem;
89
- padding: 0 0.5rem;
90
-
91
- &:hover {
92
- background: ${({ theme: { palette } }) => palette.elementLight};
93
- }
84
+ const BrowserRow = styled.div.withConfig({ displayName: "BrowserRow", componentId: "sc-1v8e12d" }) `
85
+ display: flex;
86
+ align-items: center;
87
+ gap: 0.5rem;
88
+ min-height: 2rem;
89
+ padding: 0 0.5rem;
90
+
91
+ &:hover {
92
+ background: ${({ theme: { palette } }) => palette.elementLight};
93
+ }
94
94
  `;
95
- const BrowserRowTitle = styled.span.withConfig({ displayName: "BrowserRowTitle", componentId: "sc-rxs8s7" }) `
96
- flex: 1;
97
- min-width: 0;
98
- overflow: hidden;
99
- text-overflow: ellipsis;
100
- white-space: nowrap;
101
- cursor: pointer;
102
- font-size: 0.875rem;
103
- font-weight: ${({ $folder }) => ($folder ? "600" : "400")};
95
+ const BrowserRowTitle = styled.span.withConfig({ displayName: "BrowserRowTitle", componentId: "sc-13am0e6" }) `
96
+ flex: 1;
97
+ min-width: 0;
98
+ overflow: hidden;
99
+ text-overflow: ellipsis;
100
+ white-space: nowrap;
101
+ cursor: pointer;
102
+ font-size: 0.875rem;
103
+ font-weight: ${({ $folder }) => ($folder ? "600" : "400")};
104
104
  `;
105
- const EmptyState = styled.div.withConfig({ displayName: "EmptyState", componentId: "sc-o7x6vp" }) `
106
- padding: 1rem;
107
- font-size: 0.875rem;
108
- color: ${({ theme: { palette } }) => palette.textSecondary};
105
+ const EmptyState = styled.div.withConfig({ displayName: "EmptyState", componentId: "sc-1jebx9u" }) `
106
+ padding: 1rem;
107
+ font-size: 0.875rem;
108
+ color: ${({ theme: { palette } }) => palette.textSecondary};
109
109
  `;
110
110
 
111
111
  export { Breadcrumbs, BrowserContainer, BrowserList, BrowserRow, BrowserRowTitle, BrowserToolbar, EmptyState, FrameContent, HeaderActions, HeaderContainer, HeaderTitle, ModalContent, ModalDialogActions, ResourceModal };
@@ -1,67 +1,67 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { Flex, Icon } from '@evergis/uilib-gl';
3
3
 
4
- const ResourceTypes = styled(Flex).withConfig({ displayName: "ResourceTypes", componentId: "sc-1it8uwb" }) `
5
- background-color: ${({ theme: { palette } }) => palette.element};
6
- padding-bottom: 1.5rem;
7
- padding-top: 1.5rem;
8
- justify-content: center;
9
- align-items: center;
10
- margin-bottom: 2rem;
11
- width: 100%;
4
+ const ResourceTypes = styled(Flex).withConfig({ displayName: "ResourceTypes", componentId: "sc-b80dl2" }) `
5
+ background-color: ${({ theme: { palette } }) => palette.element};
6
+ padding-bottom: 1.5rem;
7
+ padding-top: 1.5rem;
8
+ justify-content: center;
9
+ align-items: center;
10
+ margin-bottom: 2rem;
11
+ width: 100%;
12
12
  `;
13
- const ResourceTypeContainer = styled(Flex).withConfig({ displayName: "ResourceTypeContainer", componentId: "sc-1ayr8e1" }) `
14
- height: 5.25rem;
15
- width: ${({ $width }) => $width || "16.5rem"};
16
- flex-direction: column;
17
- background-color: ${({ theme: { palette } }) => palette.background};
18
- margin-right: 1rem;
19
- cursor: pointer;
20
- justify-content: center;
21
- align-items: center;
22
- color: ${({ theme: { palette } }) => palette.textSecondary};
23
- border: 1px solid white;
24
- border-radius: ${({ theme: { borderRadius } }) => borderRadius.smallest};
25
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
26
-
27
- &:last-child {
28
- margin-right: 0;
29
- }
30
-
31
- &:hover {
32
- box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
33
- }
34
-
13
+ const ResourceTypeContainer = styled(Flex).withConfig({ displayName: "ResourceTypeContainer", componentId: "sc-cg5czf" }) `
14
+ height: 5.25rem;
15
+ width: ${({ $width }) => $width || "16.5rem"};
16
+ flex-direction: column;
17
+ background-color: ${({ theme: { palette } }) => palette.background};
18
+ margin-right: 1rem;
19
+ cursor: pointer;
20
+ justify-content: center;
21
+ align-items: center;
22
+ color: ${({ theme: { palette } }) => palette.textSecondary};
23
+ border: 1px solid white;
24
+ border-radius: ${({ theme: { borderRadius } }) => borderRadius.smallest};
25
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
26
+
27
+ &:last-child {
28
+ margin-right: 0;
29
+ }
30
+
31
+ &:hover {
32
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
33
+ }
34
+
35
35
  ${({ $selected }) => $selected &&
36
- css `
37
- color: ${({ theme: { palette } }) => palette.primary};
38
- border: 1px solid ${({ theme: { palette } }) => palette.primary};
39
- `}
40
-
36
+ css `
37
+ color: ${({ theme: { palette } }) => palette.primary};
38
+ border: 1px solid ${({ theme: { palette } }) => palette.primary};
39
+ `}
40
+
41
41
  ${({ $disabled }) => $disabled &&
42
- css `
43
- cursor: default;
44
- pointer-events: none;
45
- color: ${({ theme: { palette } }) => palette.textSecondary} !important;
46
- border: 1px solid white !important;
47
-
48
- &:hover {
49
- box-shadow: none;
50
- }
51
- `}
42
+ css `
43
+ cursor: default;
44
+ pointer-events: none;
45
+ color: ${({ theme: { palette } }) => palette.textSecondary} !important;
46
+ border: 1px solid white !important;
47
+
48
+ &:hover {
49
+ box-shadow: none;
50
+ }
51
+ `}
52
52
  `;
53
- const ResourceTypeIcon = styled(Icon).withConfig({ displayName: "ResourceTypeIcon", componentId: "sc-1n4d2uh" }) `
54
- width: 1.5rem;
55
- height: 1.5rem;
56
-
57
- &:after {
58
- font-size: 1.5rem;
59
- }
53
+ const ResourceTypeIcon = styled(Icon).withConfig({ displayName: "ResourceTypeIcon", componentId: "sc-egf7g" }) `
54
+ width: 1.5rem;
55
+ height: 1.5rem;
56
+
57
+ &:after {
58
+ font-size: 1.5rem;
59
+ }
60
60
  `;
61
- const ResourceTypeTitle = styled.label.withConfig({ displayName: "ResourceTypeTitle", componentId: "sc-15gosvq" }) `
62
- font-size: 14px;
63
- margin-top: 0.75rem;
64
- cursor: pointer;
61
+ const ResourceTypeTitle = styled.label.withConfig({ displayName: "ResourceTypeTitle", componentId: "sc-d7ncb2" }) `
62
+ font-size: 14px;
63
+ margin-top: 0.75rem;
64
+ cursor: pointer;
65
65
  `;
66
66
 
67
67
  export { ResourceTypeContainer, ResourceTypeIcon, ResourceTypeTitle, ResourceTypes };
@@ -1,95 +1,95 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { DropdownField, Input, Icon, IconButtonButton } from '@evergis/uilib-gl';
3
3
 
4
- const FieldWrapper = styled.div.withConfig({ displayName: "FieldWrapper", componentId: "sc-1xmyfus" }) `
5
- display: flex;
6
- box-sizing: border-box;
7
- width: ${({ $width }) => $width};
8
- position: relative;
9
- margin-top: 1.25rem;
10
-
11
- input,
12
- ${DropdownField} {
13
- border-bottom-left-radius: 0;
14
- border-top-left-radius: 0;
15
- }
16
-
17
- ${DropdownField} {
18
- height: 35px;
19
- }
4
+ const FieldWrapper = styled.div.withConfig({ displayName: "FieldWrapper", componentId: "sc-1d6jif1" }) `
5
+ display: flex;
6
+ box-sizing: border-box;
7
+ width: ${({ $width }) => $width};
8
+ position: relative;
9
+ margin-top: 1.25rem;
10
+
11
+ input,
12
+ ${DropdownField} {
13
+ border-bottom-left-radius: 0;
14
+ border-top-left-radius: 0;
15
+ }
16
+
17
+ ${DropdownField} {
18
+ height: 35px;
19
+ }
20
20
  `;
21
- const FieldPrefix = styled.div.withConfig({ displayName: "FieldPrefix", componentId: "sc-lirag7" }) `
22
- user-select: none;
23
- background: ${({ theme }) => theme.palette.elementDeep};
24
- border: 1px solid ${({ theme }) => theme.palette.elementDeep};
25
- color: ${({ theme }) => theme.palette.icon};
26
- padding: 0.34375rem 0.5rem;
27
- box-sizing: border-box;
28
- border-bottom-left-radius: 0.25rem;
29
- border-top-left-radius: 0.25rem;
30
- border-right: none;
21
+ const FieldPrefix = styled.div.withConfig({ displayName: "FieldPrefix", componentId: "sc-1z12vah" }) `
22
+ user-select: none;
23
+ background: ${({ theme }) => theme.palette.elementDeep};
24
+ border: 1px solid ${({ theme }) => theme.palette.elementDeep};
25
+ color: ${({ theme }) => theme.palette.icon};
26
+ padding: 0.34375rem 0.5rem;
27
+ box-sizing: border-box;
28
+ border-bottom-left-radius: 0.25rem;
29
+ border-top-left-radius: 0.25rem;
30
+ border-right: none;
31
31
  `;
32
- const FieldLabel = styled.div.withConfig({ displayName: "FieldLabel", componentId: "sc-1g4lhku" }) `
33
- position: absolute;
34
- top: -1rem;
35
- left: 0.5rem;
36
- font-size: 0.75rem;
37
- color: ${({ theme }) => theme.palette.textSecondary};
32
+ const FieldLabel = styled.div.withConfig({ displayName: "FieldLabel", componentId: "sc-184hfkv" }) `
33
+ position: absolute;
34
+ top: -1rem;
35
+ left: 0.5rem;
36
+ font-size: 0.75rem;
37
+ color: ${({ theme }) => theme.palette.textSecondary};
38
38
  `;
39
- const PathInput = styled(Input).withConfig({ displayName: "PathInput", componentId: "sc-1ix49gh" }) `
40
- text-overflow: ellipsis;
41
- direction: rtl;
42
- unicode-bidi: normal;
43
- text-align: left;
39
+ const PathInput = styled(Input).withConfig({ displayName: "PathInput", componentId: "sc-1vf6d47" }) `
40
+ text-overflow: ellipsis;
41
+ direction: rtl;
42
+ unicode-bidi: normal;
43
+ text-align: left;
44
44
  `;
45
- const PathIcon = styled(Icon).withConfig({ displayName: "PathIcon", componentId: "sc-e9ugqz" }) `
45
+ const PathIcon = styled(Icon).withConfig({ displayName: "PathIcon", componentId: "sc-18tow1" }) `
46
46
  ${({ $disabled }) => $disabled
47
47
  ? ""
48
- : css `
49
- pointer-events: all !important;
50
- cursor: pointer !important;
51
- `};
48
+ : css `
49
+ pointer-events: all !important;
50
+ cursor: pointer !important;
51
+ `};
52
52
  `;
53
- const TagsContainer = styled.div.withConfig({ displayName: "TagsContainer", componentId: "sc-147oxlf" }) `
54
- display: flex;
55
- width: 100%;
56
- flex-wrap: wrap;
57
- gap: 0.5rem 0.25rem;
53
+ const TagsContainer = styled.div.withConfig({ displayName: "TagsContainer", componentId: "sc-d3og54" }) `
54
+ display: flex;
55
+ width: 100%;
56
+ flex-wrap: wrap;
57
+ gap: 0.5rem 0.25rem;
58
58
  `;
59
- const TagChip = styled.div.withConfig({ displayName: "TagChip", componentId: "sc-mg4xgc" }) `
60
- display: inline-flex;
61
- align-items: center;
62
- padding: 4px 0.5rem;
63
- border-radius: 0.25rem;
64
- height: 1.5rem;
65
- gap: 0 0.25rem;
66
- box-sizing: border-box;
67
- cursor: pointer;
68
- pointer-events: ${({ $disabled }) => ($disabled ? "none" : "all")};
69
- background: ${({ theme, $selected }) => ($selected ? "rgba(0, 170, 255, 0.06)" : theme.palette.elementDeep)};
70
- color: ${({ theme, $selected, $disabled }) => $disabled ? theme.palette.textDisabled : $selected ? theme.palette.primary : theme.palette.icon};
71
- font-size: 12px;
72
-
73
- ${Icon} {
74
- width: 14px;
75
- height: 14px;
76
- font-size: 14px;
77
-
78
- &:after {
79
- color: ${({ theme, $selected, $disabled }) => $disabled ? theme.palette.textDisabled : $selected ? theme.palette.primary : theme.palette.icon};
80
- font-size: 14px;
81
- }
82
- }
83
-
84
- &:hover {
85
- background: ${({ theme, $selected }) => ($selected ? "rgba(0, 170, 255, 0.06)" : theme.palette.elementDeep)};
86
- }
87
-
88
- ${IconButtonButton} {
89
- width: 14px;
90
- height: 14px;
91
- padding: 0;
92
- }
59
+ const TagChip = styled.div.withConfig({ displayName: "TagChip", componentId: "sc-ilquxl" }) `
60
+ display: inline-flex;
61
+ align-items: center;
62
+ padding: 4px 0.5rem;
63
+ border-radius: 0.25rem;
64
+ height: 1.5rem;
65
+ gap: 0 0.25rem;
66
+ box-sizing: border-box;
67
+ cursor: pointer;
68
+ pointer-events: ${({ $disabled }) => ($disabled ? "none" : "all")};
69
+ background: ${({ theme, $selected }) => ($selected ? "rgba(0, 170, 255, 0.06)" : theme.palette.elementDeep)};
70
+ color: ${({ theme, $selected, $disabled }) => $disabled ? theme.palette.textDisabled : $selected ? theme.palette.primary : theme.palette.icon};
71
+ font-size: 12px;
72
+
73
+ ${Icon} {
74
+ width: 14px;
75
+ height: 14px;
76
+ font-size: 14px;
77
+
78
+ &:after {
79
+ color: ${({ theme, $selected, $disabled }) => $disabled ? theme.palette.textDisabled : $selected ? theme.palette.primary : theme.palette.icon};
80
+ font-size: 14px;
81
+ }
82
+ }
83
+
84
+ &:hover {
85
+ background: ${({ theme, $selected }) => ($selected ? "rgba(0, 170, 255, 0.06)" : theme.palette.elementDeep)};
86
+ }
87
+
88
+ ${IconButtonButton} {
89
+ width: 14px;
90
+ height: 14px;
91
+ padding: 0;
92
+ }
93
93
  `;
94
94
 
95
95
  export { FieldLabel, FieldPrefix, FieldWrapper, PathIcon, PathInput, TagChip, TagsContainer };