@factorearth/component-library 5.2.2 → 5.2.4-alpha.0
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 +11 -11
- package/dist/Atoms/Accordion/Accordion.js +18 -18
- package/dist/Atoms/Badge/Badge.js +18 -18
- package/dist/Atoms/Box/Box.js +15 -15
- package/dist/Atoms/Buttons/Button.js +23 -23
- package/dist/Atoms/ContentDropdown/ContentDropdown.js +24 -24
- package/dist/Atoms/DateField/DateField.js +94 -94
- package/dist/Atoms/FieldWrapper/FieldWrapper.js +35 -35
- package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +52 -52
- package/dist/Atoms/NoteField/NoteField.js +38 -38
- package/dist/Atoms/NumberField/NumberField.js +63 -63
- package/dist/Atoms/OptionsDropdown/OptionsDropdown.js +38 -38
- package/dist/Atoms/Pagination/Pagination.js +25 -25
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.js +4 -4
- package/dist/Atoms/ProgressBar/ProgressBar.js +16 -16
- package/dist/Atoms/SortDropdown/SortDropdown.js +39 -39
- package/dist/Atoms/Spinner/Spinner.d.ts +7 -0
- package/dist/Atoms/Spinner/Spinner.js +10 -0
- package/dist/Atoms/Spinner/Spinner.js.map +1 -0
- package/dist/Atoms/Tab/Tab.js +18 -18
- package/dist/Atoms/TextField/TextField.js +24 -24
- package/dist/Atoms/Toggle/Toggle.js +11 -11
- package/dist/Atoms/Typography/Typography.js +7 -7
- package/dist/Molecules/Form/Form.js +8 -8
- package/dist/Molecules/NavMenu/NavMenu.d.ts +0 -1
- package/dist/Molecules/NavMenu/NavMenu.js +104 -117
- package/dist/Molecules/NavMenu/NavMenu.js.map +1 -1
- package/dist/Molecules/TableHeader/TableHeader.js +14 -14
- package/dist/Molecules/TableRow/TableRow.js +27 -27
- package/dist/Molecules/Thumbnail/Thumbnail.d.ts +4 -4
- package/dist/Molecules/Thumbnail/Thumbnail.js +126 -50
- package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Organisms/Card/Card.js +33 -33
- package/dist/Organisms/EditUserPerms/EditUserPerms.js +67 -67
- package/dist/Organisms/ErrorSplash/ErrorSplash.js +44 -44
- package/dist/Organisms/Modal/Modal.js +71 -71
- package/dist/Organisms/TabManager/TabManager.js +13 -13
- package/dist/Organisms/Table/Table.js +14 -14
- package/dist/Organisms/Tutorial/Tutorial.js +51 -51
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/Organisms/Splash/Splash.d.ts +0 -10
- package/dist/Organisms/Splash/Splash.js +0 -82
- package/dist/Organisms/Splash/Splash.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
const ToggleLabel = styled.div `
|
|
4
|
-
font-size: 14px;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
font-weight: 700;
|
|
7
|
-
line-height: 21px;
|
|
8
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
9
|
-
text-align: right;
|
|
3
|
+
const ToggleLabel = styled.div `
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 700;
|
|
7
|
+
line-height: 21px;
|
|
8
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
9
|
+
text-align: right;
|
|
10
10
|
`;
|
|
11
|
-
const ToggleIcon = styled.div `
|
|
12
|
-
width: 16px;
|
|
13
|
-
height: 16px;
|
|
14
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
11
|
+
const ToggleIcon = styled.div `
|
|
12
|
+
width: 16px;
|
|
13
|
+
height: 16px;
|
|
14
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
15
15
|
`;
|
|
16
16
|
const Toggle = (props) => {
|
|
17
17
|
const { modes, setState, colorPalette, state, ...htmlProps } = props;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import tokens from "../../Theme/tokens.json";
|
|
4
|
-
const StyledText = styled.p `
|
|
5
|
-
color: ${({ textColor }) => textColor};
|
|
6
|
-
font-size: ${({ text }) => text.fontSize};
|
|
7
|
-
line-height: ${({ text }) => text.lineHeight};
|
|
8
|
-
font-weight: ${({ text }) => text.fontWeight};
|
|
9
|
-
padding: none;
|
|
10
|
-
margin: 0px;
|
|
4
|
+
const StyledText = styled.p `
|
|
5
|
+
color: ${({ textColor }) => textColor};
|
|
6
|
+
font-size: ${({ text }) => text.fontSize};
|
|
7
|
+
line-height: ${({ text }) => text.lineHeight};
|
|
8
|
+
font-weight: ${({ text }) => text.fontWeight};
|
|
9
|
+
padding: none;
|
|
10
|
+
margin: 0px;
|
|
11
11
|
`;
|
|
12
12
|
export const Typography = (props) => {
|
|
13
13
|
const { textColor, variant, content, children, ...htmlProps } = props;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled from "@emotion/styled";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export const ContentContainer = styled.div `
|
|
4
|
-
display: flex;
|
|
5
|
-
padding: 24px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
align-self: stretch;
|
|
10
|
-
background-color: ${({ colors }) => colors.background.primary};
|
|
3
|
+
export const ContentContainer = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 24px;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
background-color: ${({ colors }) => colors.background.primary};
|
|
11
11
|
`;
|
|
12
12
|
function Form(props) {
|
|
13
13
|
const { children, colors } = props;
|
|
@@ -3,121 +3,121 @@ import { keyframes } from "@emotion/react";
|
|
|
3
3
|
import React, { useState, useMemo, useRef } from "react";
|
|
4
4
|
import { FiMenu, FiCloud, FiCloudOff, FiSun, FiMoon, FiChevronRight, FiX, } from "react-icons/fi";
|
|
5
5
|
import Toggle from "../../Atoms/Toggle/Toggle";
|
|
6
|
-
const slideInLeft = keyframes `
|
|
7
|
-
0% {
|
|
8
|
-
transform: translateX(-100%);
|
|
9
|
-
opacity: 0;
|
|
10
|
-
}
|
|
11
|
-
100% {
|
|
12
|
-
transform: translateX(0);
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
6
|
+
const slideInLeft = keyframes `
|
|
7
|
+
0% {
|
|
8
|
+
transform: translateX(-100%);
|
|
9
|
+
opacity: 0;
|
|
10
|
+
}
|
|
11
|
+
100% {
|
|
12
|
+
transform: translateX(0);
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
15
|
`;
|
|
16
|
-
const NavMenu = styled.div `
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
20
|
-
width: 100vw;
|
|
16
|
+
const NavMenu = styled.div `
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
20
|
+
width: 100vw;
|
|
21
21
|
`;
|
|
22
|
-
const NavBarHeader = styled.div `
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
align-items: center;
|
|
26
|
-
height: 88px;
|
|
27
|
-
border-width: 0 0 1px 0;
|
|
28
|
-
border-style: solid;
|
|
29
|
-
border-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
22
|
+
const NavBarHeader = styled.div `
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
height: 88px;
|
|
27
|
+
border-width: 0 0 1px 0;
|
|
28
|
+
border-style: solid;
|
|
29
|
+
border-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
30
30
|
`;
|
|
31
|
-
const OnlineStatus = styled.div `
|
|
32
|
-
display: flex;
|
|
33
|
-
padding: 8px 12px;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
gap: 8px;
|
|
37
|
-
border-radius: 32px;
|
|
38
|
-
font-weight: 700;
|
|
39
|
-
border-width: 1px;
|
|
40
|
-
border-style: solid;
|
|
41
|
-
border-color: ${({ colorPalette }) => colorPalette.buttonBackground.success};
|
|
42
|
-
color: ${({ colorPalette }) => colorPalette.buttonBackground.success};
|
|
43
|
-
background: #ebfaed;
|
|
31
|
+
const OnlineStatus = styled.div `
|
|
32
|
+
display: flex;
|
|
33
|
+
padding: 8px 12px;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
border-radius: 32px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
border-width: 1px;
|
|
40
|
+
border-style: solid;
|
|
41
|
+
border-color: ${({ colorPalette }) => colorPalette.buttonBackground.success};
|
|
42
|
+
color: ${({ colorPalette }) => colorPalette.buttonBackground.success};
|
|
43
|
+
background: #ebfaed;
|
|
44
44
|
`;
|
|
45
|
-
const OfflineStatus = styled.div `
|
|
46
|
-
display: flex;
|
|
47
|
-
padding: 8px 12px;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
gap: 8px;
|
|
51
|
-
border-radius: 32px;
|
|
52
|
-
font-weight: 700;
|
|
53
|
-
border-width: 1px;
|
|
54
|
-
border-style: solid;
|
|
55
|
-
border-color: ${({ colorPalette }) => colorPalette.utils.icon};
|
|
56
|
-
color: ${({ colorPalette }) => colorPalette.utils.icon};
|
|
45
|
+
const OfflineStatus = styled.div `
|
|
46
|
+
display: flex;
|
|
47
|
+
padding: 8px 12px;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 8px;
|
|
51
|
+
border-radius: 32px;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
border-width: 1px;
|
|
54
|
+
border-style: solid;
|
|
55
|
+
border-color: ${({ colorPalette }) => colorPalette.utils.icon};
|
|
56
|
+
color: ${({ colorPalette }) => colorPalette.utils.icon};
|
|
57
57
|
`;
|
|
58
|
-
const NavMenuDropdown = styled.div `
|
|
59
|
-
width: 320px;
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 88px;
|
|
62
|
-
z-index: 1000;
|
|
63
|
-
box-shadow: 5px 5px 5px rgba(64, 64, 64, 0.2);
|
|
64
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
65
|
-
animation: ${slideInLeft} 0.5s ease-out forwards;
|
|
66
|
-
display: ${({ navOpen }) => (navOpen ? "flex" : "none")};
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
&:focus {
|
|
69
|
-
outline: none;
|
|
70
|
-
}
|
|
58
|
+
const NavMenuDropdown = styled.div `
|
|
59
|
+
width: 320px;
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 88px;
|
|
62
|
+
z-index: 1000;
|
|
63
|
+
box-shadow: 5px 5px 5px rgba(64, 64, 64, 0.2);
|
|
64
|
+
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
65
|
+
animation: ${slideInLeft} 0.5s ease-out forwards;
|
|
66
|
+
display: ${({ navOpen }) => (navOpen ? "flex" : "none")};
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
&:focus {
|
|
69
|
+
outline: none;
|
|
70
|
+
}
|
|
71
71
|
`;
|
|
72
|
-
const MenuItems = styled.div `
|
|
73
|
-
align-items: flex-start;
|
|
74
|
-
align-self: stretch;
|
|
72
|
+
const MenuItems = styled.div `
|
|
73
|
+
align-items: flex-start;
|
|
74
|
+
align-self: stretch;
|
|
75
75
|
`;
|
|
76
|
-
const MenuItem = styled.div `
|
|
77
|
-
display: flex;
|
|
78
|
-
padding: 8px 16px;
|
|
79
|
-
align-items: center;
|
|
80
|
-
color: ${({ colorPalette }) => colorPalette.text.tertiary};
|
|
81
|
-
font-weight: 700;
|
|
82
|
-
border-width: 0 0 1px 0;
|
|
83
|
-
border-style: solid;
|
|
84
|
-
border-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
85
|
-
width: 288px;
|
|
86
|
-
cursor: pointer;
|
|
76
|
+
const MenuItem = styled.div `
|
|
77
|
+
display: flex;
|
|
78
|
+
padding: 8px 16px;
|
|
79
|
+
align-items: center;
|
|
80
|
+
color: ${({ colorPalette }) => colorPalette.text.tertiary};
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
border-width: 0 0 1px 0;
|
|
83
|
+
border-style: solid;
|
|
84
|
+
border-color: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
85
|
+
width: 288px;
|
|
86
|
+
cursor: pointer;
|
|
87
87
|
`;
|
|
88
|
-
const Location = styled.div `
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
gap: 10px;
|
|
92
|
-
flex: 1 0 0;
|
|
93
|
-
font-size: 16px;
|
|
94
|
-
line-height: 150%;
|
|
88
|
+
const Location = styled.div `
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 10px;
|
|
92
|
+
flex: 1 0 0;
|
|
93
|
+
font-size: 16px;
|
|
94
|
+
line-height: 150%;
|
|
95
95
|
`;
|
|
96
|
-
const Toggles = styled.div `
|
|
97
|
-
padding: 24px 0px;
|
|
96
|
+
const Toggles = styled.div `
|
|
97
|
+
padding: 24px 0px;
|
|
98
98
|
`;
|
|
99
|
-
const AppInfo = styled.div `
|
|
100
|
-
padding: 16px;
|
|
101
|
-
width: 288px;
|
|
102
|
-
background: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
99
|
+
const AppInfo = styled.div `
|
|
100
|
+
padding: 16px;
|
|
101
|
+
width: 288px;
|
|
102
|
+
background: ${({ colorPalette }) => colorPalette.background.tertiary};
|
|
103
103
|
`;
|
|
104
|
-
const LogoAndCopyRights = styled.div `
|
|
105
|
-
display: flex;
|
|
106
|
-
gap: 16px;
|
|
107
|
-
margin-bottom: 12px;
|
|
108
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
104
|
+
const LogoAndCopyRights = styled.div `
|
|
105
|
+
display: flex;
|
|
106
|
+
gap: 16px;
|
|
107
|
+
margin-bottom: 12px;
|
|
108
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
109
109
|
`;
|
|
110
|
-
const CopyRights = styled.div `
|
|
111
|
-
font-size: 12px;
|
|
112
|
-
font-style: normal;
|
|
113
|
-
font-weight: 400;
|
|
114
|
-
line-height: 55%;
|
|
110
|
+
const CopyRights = styled.div `
|
|
111
|
+
font-size: 12px;
|
|
112
|
+
font-style: normal;
|
|
113
|
+
font-weight: 400;
|
|
114
|
+
line-height: 55%;
|
|
115
115
|
`;
|
|
116
|
-
const Version = styled.div `
|
|
117
|
-
text-align: center;
|
|
118
|
-
font-size: 14px;
|
|
119
|
-
font-weight: 400;
|
|
120
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
116
|
+
const Version = styled.div `
|
|
117
|
+
text-align: center;
|
|
118
|
+
font-size: 14px;
|
|
119
|
+
font-weight: 400;
|
|
120
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
121
121
|
`;
|
|
122
122
|
const NavBar = (props) => {
|
|
123
123
|
const { colorPalette, locations, appInfo } = props;
|
|
@@ -209,23 +209,10 @@ const NavBar = (props) => {
|
|
|
209
209
|
appInfo.copyRight && (React.createElement(CopyRights, null,
|
|
210
210
|
React.createElement("p", null, appInfo.copyRight),
|
|
211
211
|
React.createElement("p", null, "All Rights Reserved.")))),
|
|
212
|
-
React.createElement(Version, { colorPalette: colorPalette },
|
|
213
|
-
// The onClick function uses an if statement to protect against the onClick function being undefined.
|
|
214
|
-
// This is a workaround for the fact that the onClick function is optional in the appInfo interface.
|
|
215
|
-
onClick: () => {
|
|
216
|
-
if (appInfo.versionNumOnClick) {
|
|
217
|
-
appInfo.versionNumOnClick();
|
|
218
|
-
}
|
|
219
|
-
} },
|
|
212
|
+
React.createElement(Version, { colorPalette: colorPalette },
|
|
220
213
|
appInfo.name,
|
|
221
214
|
" ",
|
|
222
|
-
appInfo.versionNum
|
|
223
|
-
" - Release Notes")) : (React.createElement(React.Fragment, null,
|
|
224
|
-
" ",
|
|
225
|
-
appInfo.name,
|
|
226
|
-
" ",
|
|
227
|
-
appInfo.versionNum,
|
|
228
|
-
" "))))))));
|
|
215
|
+
appInfo.versionNum))))));
|
|
229
216
|
};
|
|
230
217
|
export default NavBar;
|
|
231
218
|
//# sourceMappingURL=NavMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavMenu.js","sourceRoot":"","sources":["../../../lib/Molecules/NavMenu/NavMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EACN,MAAM,EACN,OAAO,EACP,UAAU,EACV,KAAK,EACL,MAAM,EACN,cAAc,EACd,GAAG,GACH,MAAM,gBAAgB,CAAC;AACxB,OAAO,MAAM,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"NavMenu.js","sourceRoot":"","sources":["../../../lib/Molecules/NavMenu/NavMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EACN,MAAM,EACN,OAAO,EACP,UAAU,EACV,KAAK,EACL,MAAM,EACN,cAAc,EACd,GAAG,GACH,MAAM,gBAAgB,CAAC;AACxB,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAq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oBACpB,oBAAC,OAAO,IAAC,YAAY,EAAE,YAAY;wBACjC,OAAO,CAAC,IAAI;;wBAAG,OAAO,CAAC,UAAU,CACzB,CACD,CACL,CACW,CACT,CACV,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { SortDropdown } from "../../Atoms/SortDropdown/SortDropdown";
|
|
4
|
-
const HeaderCell = styled.th `
|
|
5
|
-
display: flex;
|
|
6
|
-
height: 56px;
|
|
7
|
-
padding: 0px 8px;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: 16px;
|
|
10
|
-
align-self: stretch;
|
|
11
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
12
|
-
align-items: center;
|
|
13
|
-
min-height: 40px;
|
|
14
|
-
font-size: 16px;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
width: 100%;
|
|
17
|
-
display: flex;
|
|
4
|
+
const HeaderCell = styled.th `
|
|
5
|
+
display: flex;
|
|
6
|
+
height: 56px;
|
|
7
|
+
padding: 0px 8px;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 16px;
|
|
10
|
+
align-self: stretch;
|
|
11
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
12
|
+
align-items: center;
|
|
13
|
+
min-height: 40px;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
width: 100%;
|
|
17
|
+
display: flex;
|
|
18
18
|
`;
|
|
19
19
|
export const TableHeader = (props) => {
|
|
20
20
|
const { columns, colorPalette } = props;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
const StyledTableRow = styled.tr `
|
|
4
|
-
display: flex;
|
|
5
|
-
border-width: 1px;
|
|
6
|
-
border-style: solid;
|
|
7
|
-
border-color: ${({ colorPalette }) => colorPalette.border.secondary};
|
|
8
|
-
background: $ ${({ colorPalette }) => colorPalette.background.primary};
|
|
9
|
-
border-right: none;
|
|
10
|
-
border-left: none;
|
|
11
|
-
border-top: none;
|
|
3
|
+
const StyledTableRow = styled.tr `
|
|
4
|
+
display: flex;
|
|
5
|
+
border-width: 1px;
|
|
6
|
+
border-style: solid;
|
|
7
|
+
border-color: ${({ colorPalette }) => colorPalette.border.secondary};
|
|
8
|
+
background: $ ${({ colorPalette }) => colorPalette.background.primary};
|
|
9
|
+
border-right: none;
|
|
10
|
+
border-left: none;
|
|
11
|
+
border-top: none;
|
|
12
12
|
`;
|
|
13
|
-
export const TableCell = styled.td `
|
|
14
|
-
width: 100%;
|
|
15
|
-
min-height: 50px;
|
|
16
|
-
display: flex;
|
|
17
|
-
padding: 0px 8px;
|
|
18
|
-
justify-content: flex-start;
|
|
19
|
-
align-items: center;
|
|
20
|
-
align-self: stretch;
|
|
21
|
-
justify-content: start;
|
|
22
|
-
flex: 1;
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
word-break: break-word;
|
|
26
|
-
white-space: normal;
|
|
27
|
-
flex-wrap: wrap;
|
|
28
|
-
:hover: {
|
|
29
|
-
background: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
30
|
-
}
|
|
13
|
+
export const TableCell = styled.td `
|
|
14
|
+
width: 100%;
|
|
15
|
+
min-height: 50px;
|
|
16
|
+
display: flex;
|
|
17
|
+
padding: 0px 8px;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
align-items: center;
|
|
20
|
+
align-self: stretch;
|
|
21
|
+
justify-content: start;
|
|
22
|
+
flex: 1;
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
word-break: break-word;
|
|
26
|
+
white-space: normal;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
:hover: {
|
|
29
|
+
background: ${({ colorPalette }) => colorPalette.background.secondary};
|
|
30
|
+
}
|
|
31
31
|
`;
|
|
32
32
|
export const TableRow = ({ index, colorPalette, rowData, columnConfig, }) => {
|
|
33
33
|
const rows = Object.entries(rowData)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode, Dispatch, SetStateAction } from "react";
|
|
2
2
|
import { Colors } from "Theme/types";
|
|
3
|
-
export declare const Thumbnail: ({ colorPalette, handleSubmit, settingsChildren, showImage, setShowImage, fieldInstance, s3Key, signedUrl,
|
|
3
|
+
export declare const Thumbnail: ({ colorPalette, handleSubmit, settingsChildren, showImage, setShowImage, fieldInstance, s3Key, signedUrl, loading, handleRemove, handleChange, }: {
|
|
4
4
|
colorPalette: Colors;
|
|
5
|
-
handleSubmit: (newValueData
|
|
5
|
+
handleSubmit: (newValueData?: {
|
|
6
6
|
target: {
|
|
7
7
|
name: string;
|
|
8
8
|
value: string;
|
|
9
9
|
};
|
|
10
|
-
}, useNewValue
|
|
10
|
+
}, useNewValue?: boolean) => Promise<void>;
|
|
11
11
|
handleChange(e: React.DragEvent<HTMLDivElement> | React.ChangeEvent<HTMLInputElement>): void;
|
|
12
12
|
settingsChildren: ReactNode;
|
|
13
13
|
showImage: boolean;
|
|
@@ -15,7 +15,7 @@ export declare const Thumbnail: ({ colorPalette, handleSubmit, settingsChildren,
|
|
|
15
15
|
fieldInstance: any;
|
|
16
16
|
s3Key: string;
|
|
17
17
|
signedUrl: any;
|
|
18
|
-
|
|
18
|
+
loading: boolean;
|
|
19
19
|
handleRemove?: () => void;
|
|
20
20
|
changed: boolean;
|
|
21
21
|
}) => React.JSX.Element;
|