@griddo/ax 10.3.12 → 10.3.14
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "10.3.
|
|
4
|
+
"version": "10.3.14",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -230,5 +230,5 @@
|
|
|
230
230
|
"publishConfig": {
|
|
231
231
|
"access": "public"
|
|
232
232
|
},
|
|
233
|
-
"gitHead": "
|
|
233
|
+
"gitHead": "d9d0cd327717be48374506340e8ed0c533ea34d4"
|
|
234
234
|
}
|
|
@@ -658,9 +658,9 @@ const FileDrive = (props: IProps) => {
|
|
|
658
658
|
</S.FoldersWrapper>
|
|
659
659
|
</S.SectionWrapper>
|
|
660
660
|
)}
|
|
661
|
-
<S.
|
|
661
|
+
<S.BigSectionWrapper>
|
|
662
662
|
<S.SectionHeader>
|
|
663
|
-
<S.SectionTitle>Documents</S.SectionTitle>
|
|
663
|
+
{totalItems > 0 && <S.SectionTitle>Documents</S.SectionTitle>}
|
|
664
664
|
{totalItems > 0 && isGrid && (
|
|
665
665
|
<BulkGridHeader
|
|
666
666
|
showBulk={areItemsSelected(filesIds)}
|
|
@@ -673,20 +673,13 @@ const FileDrive = (props: IProps) => {
|
|
|
673
673
|
)}
|
|
674
674
|
{!hasFolders && isRoot && !isSearching && <NewFolderButton />}
|
|
675
675
|
</S.SectionHeader>
|
|
676
|
-
<S.DocumentsWrapper>
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
) : (
|
|
684
|
-
<S.EmptyStateWrapper data-testid="empty-state">
|
|
685
|
-
{isSearching ? <EmptyState {...emptySearchStateProps} /> : <EmptyState {...emptyProps} />}
|
|
686
|
-
</S.EmptyStateWrapper>
|
|
687
|
-
)}
|
|
688
|
-
</S.DocumentsWrapper>
|
|
689
|
-
</S.SectionWrapper>
|
|
676
|
+
<S.DocumentsWrapper>{isGrid ? <GridList /> : <ListTable />}</S.DocumentsWrapper>
|
|
677
|
+
{totalItems === 0 && !hasFolders && (
|
|
678
|
+
<S.EmptyStateWrapper data-testid="empty-state" margin={!isRoot}>
|
|
679
|
+
{isSearching ? <EmptyState {...emptySearchStateProps} /> : <EmptyState {...emptyProps} />}
|
|
680
|
+
</S.EmptyStateWrapper>
|
|
681
|
+
)}
|
|
682
|
+
</S.BigSectionWrapper>
|
|
690
683
|
</>
|
|
691
684
|
)}
|
|
692
685
|
</S.ContentWrapper>
|
|
@@ -30,11 +30,19 @@ const FolderPanelContent = styled.div`
|
|
|
30
30
|
const ContentWrapper = styled.div`
|
|
31
31
|
width: 100%;
|
|
32
32
|
overflow: auto;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
33
35
|
`;
|
|
34
36
|
|
|
35
37
|
const SectionWrapper = styled.div`
|
|
36
38
|
width: 100%;
|
|
37
39
|
padding: ${(p) => p.theme.spacing.m};
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
const BigSectionWrapper = styled(SectionWrapper)`
|
|
45
|
+
flex-grow: 1;
|
|
38
46
|
`;
|
|
39
47
|
|
|
40
48
|
const SectionHeader = styled.div`
|
|
@@ -57,8 +65,10 @@ const ButtonWrapper = styled.div`
|
|
|
57
65
|
flex-shrink: 0;
|
|
58
66
|
`;
|
|
59
67
|
|
|
60
|
-
const EmptyStateWrapper = styled.div
|
|
68
|
+
const EmptyStateWrapper = styled.div<{ margin: boolean }>`
|
|
61
69
|
width: 100%;
|
|
70
|
+
flex-grow: 1;
|
|
71
|
+
margin-top: ${(p) => (p.margin ? "-100px" : "auto")};
|
|
62
72
|
`;
|
|
63
73
|
|
|
64
74
|
const DocumentsWrapper = styled.div`
|
|
@@ -137,7 +147,7 @@ const Filters = styled.div`
|
|
|
137
147
|
flex-shrink: 0;
|
|
138
148
|
& > * {
|
|
139
149
|
&:not(:last-child) {
|
|
140
|
-
margin-right: ${p => p.theme.spacing.m};
|
|
150
|
+
margin-right: ${(p) => p.theme.spacing.m};
|
|
141
151
|
}
|
|
142
152
|
}
|
|
143
153
|
`;
|
|
@@ -177,4 +187,5 @@ export {
|
|
|
177
187
|
TabsWrapper,
|
|
178
188
|
ResizeHandle,
|
|
179
189
|
Filters,
|
|
190
|
+
BigSectionWrapper,
|
|
180
191
|
};
|