@factorearth/component-library 5.3.1 → 5.3.2-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.
Files changed (45) hide show
  1. package/README.md +11 -11
  2. package/dist/Atoms/Accordion/Accordion.js +18 -18
  3. package/dist/Atoms/Badge/Badge.js +18 -18
  4. package/dist/Atoms/Box/Box.js +15 -15
  5. package/dist/Atoms/Buttons/Button.js +23 -23
  6. package/dist/Atoms/ContentDropdown/ContentDropdown.js +24 -24
  7. package/dist/Atoms/DateField/DateField.js +94 -94
  8. package/dist/Atoms/FieldWrapper/FieldWrapper.js +35 -35
  9. package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +52 -52
  10. package/dist/Atoms/NoteField/NoteField.js +38 -38
  11. package/dist/Atoms/NumberField/NumberField.js +63 -63
  12. package/dist/Atoms/OptionsDropdown/OptionsDropdown.js +38 -38
  13. package/dist/Atoms/Pagination/Pagination.js +25 -25
  14. package/dist/Atoms/PhoneNumberField/PhoneNumberField.js +4 -4
  15. package/dist/Atoms/ProgressBar/ProgressBar.js +16 -16
  16. package/dist/Atoms/SortDropdown/SortDropdown.js +39 -39
  17. package/dist/Atoms/Spinner/Spinner.d.ts +7 -0
  18. package/dist/Atoms/Spinner/Spinner.js +10 -0
  19. package/dist/Atoms/Spinner/Spinner.js.map +1 -0
  20. package/dist/Atoms/Tab/Tab.js +18 -18
  21. package/dist/Atoms/TextField/TextField.js +24 -24
  22. package/dist/Atoms/Toggle/Toggle.js +11 -11
  23. package/dist/Atoms/Typography/Typography.js +7 -7
  24. package/dist/Molecules/Form/Form.js +8 -8
  25. package/dist/Molecules/NavMenu/NavMenu.d.ts +0 -1
  26. package/dist/Molecules/NavMenu/NavMenu.js +104 -117
  27. package/dist/Molecules/NavMenu/NavMenu.js.map +1 -1
  28. package/dist/Molecules/TableHeader/TableHeader.js +14 -14
  29. package/dist/Molecules/TableRow/TableRow.js +27 -27
  30. package/dist/Molecules/Thumbnail/Thumbnail.d.ts +4 -4
  31. package/dist/Molecules/Thumbnail/Thumbnail.js +131 -53
  32. package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
  33. package/dist/Organisms/Card/Card.js +33 -33
  34. package/dist/Organisms/EditUserPerms/EditUserPerms.js +67 -67
  35. package/dist/Organisms/ErrorSplash/ErrorSplash.js +44 -44
  36. package/dist/Organisms/TabManager/TabManager.js +13 -13
  37. package/dist/Organisms/Table/Table.js +14 -14
  38. package/dist/Organisms/Tutorial/Tutorial.js +51 -51
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +1 -0
  41. package/dist/index.js.map +1 -1
  42. package/package.json +2 -2
  43. package/dist/Organisms/Splash/Splash.d.ts +0 -10
  44. package/dist/Organisms/Splash/Splash.js +0 -82
  45. package/dist/Organisms/Splash/Splash.js.map +0 -1
@@ -2,59 +2,63 @@ import React, { useState, useRef, useEffect, } from "react";
2
2
  import styled from "@emotion/styled";
3
3
  import { FiTrash2, FiEye, FiEyeOff, FiSettings } from "react-icons/fi";
4
4
  import { Button } from "../../Atoms/Buttons/Button";
5
- const Container = styled.div `
6
- display: flex;
7
- flex-direction: column;
8
- align-items: end;
9
- justify-content: start;
10
- gap: 16px;
11
- flex-shrink: 0;
12
- ${({ showImage }) => showImage && `height: 278px; width: 200px`}
5
+ import { Spinner } from "../../Atoms/Spinner/Spinner";
6
+ const Container = styled.div `
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: end;
10
+ justify-content: start;
11
+ gap: 16px;
12
+ flex-shrink: 0;
13
+ ${({ showImage }) => showImage && `height: 278px; width: 200px`}
13
14
  `;
14
- const InputArea = styled.div `
15
- width: 150px;
16
- height: 132px;
17
- display: flex;
18
- justify-content: center;
19
- align-items: center;
20
- background-color: ${({ colors }) => colors.background.tertiary};
21
- border-style: solid;
22
- border-width: 1px;
23
- border-color: ${({ colors }) => colors.border.primary};
24
- position: relative;
25
- cursor: pointer;
26
- overflow: hidden;
27
- border-radius: 4px;
28
- padding: 24px;
15
+ const InputArea = styled.div `
16
+ width: 150px;
17
+ height: 132px;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ background-color: ${({ colors }) => colors.background.tertiary};
22
+ border-style: solid;
23
+ border-width: 1px;
24
+ border-color: ${({ colors }) => colors.border.primary};
25
+ position: relative;
26
+ cursor: pointer;
27
+ overflow: hidden;
28
+ border-radius: 4px;
29
+ padding: 24px;
29
30
  `;
30
- const SettingsArea = styled.div `
31
- width: 168px;
32
- height: 148px;
33
- display: flex;
34
- justify-content: center;
35
- align-items: center;
36
- background-color: ${({ colors }) => colors.background.secondary};
37
- border-style: solid;
38
- border-width: 1px;
39
- border-color: ${({ colors }) => colors.border.primary};
40
- cursor: pointer;
41
- overflow: hidden;
42
- border-radius: 4px;
43
- gap: 16px;
44
- padding: 16px;
31
+ const SettingsArea = styled.div `
32
+ width: 168px;
33
+ height: 148px;
34
+ display: flex;
35
+ justify-content: center;
36
+ align-items: center;
37
+ background-color: ${({ colors }) => colors.background.secondary};
38
+ border-style: solid;
39
+ border-width: 1px;
40
+ border-color: ${({ colors }) => colors.border.primary};
41
+ cursor: pointer;
42
+ overflow: hidden;
43
+ border-radius: 4px;
44
+ gap: 16px;
45
+ padding: 16px;
45
46
  `;
46
- const PreviewImage = styled.img `
47
- width: 100%;
48
- height: 100%;
49
- object-fit: cover;
50
- position: absolute;
51
- top: 0;
52
- left: 0;
53
- z-index: 1;
47
+ const PreviewImage = styled.img `
48
+ width: 100%;
49
+ height: 100%;
50
+ object-fit: cover;
51
+ position: absolute;
52
+ top: 0;
53
+ left: 0;
54
+ z-index: 1;
54
55
  `;
55
- export const Thumbnail = ({ colorPalette, handleSubmit, settingsChildren, showImage, setShowImage, fieldInstance, s3Key, signedUrl, uploadButtonText, handleRemove, changed, handleChange, }) => {
56
+ export const Thumbnail = ({ colorPalette, handleSubmit, settingsChildren, showImage, setShowImage, fieldInstance, s3Key, signedUrl, loading, handleRemove, handleChange, }) => {
56
57
  const [selectedImage, setSelectedImage] = useState(null);
57
58
  const [showSettings, setShowSettings] = useState(false);
59
+ const [prevImage, setPrevImage] = useState(null);
60
+ const [openSubmitModal, setOpenSubmitModal] = useState(false);
61
+ const [deletingImage, setDeletingImage] = useState(false);
58
62
  const acceptedFileTypes = [
59
63
  "image/jpeg",
60
64
  "image/png",
@@ -68,60 +72,134 @@ export const Thumbnail = ({ colorPalette, handleSubmit, settingsChildren, showIm
68
72
  if (file) {
69
73
  const imageUrl = URL.createObjectURL(file);
70
74
  setSelectedImage(imageUrl);
75
+ setDeletingImage(false);
76
+ setPrevImage(null);
71
77
  }
72
78
  }
73
79
  else if (signedUrl && typeof signedUrl === "string") {
74
80
  setSelectedImage(signedUrl);
81
+ setDeletingImage(false);
82
+ setPrevImage(null);
75
83
  }
76
84
  else {
77
85
  setSelectedImage(null);
78
86
  }
79
87
  }, [signedUrl, s3Key]);
88
+ /**
89
+ * Handles the image upload from the input element.
90
+ * @param event from the input element
91
+ */
80
92
  const handleImageUpload = (event) => {
81
93
  const file = event.target.files?.[0];
82
94
  if (file) {
83
95
  const imageUrl = URL.createObjectURL(file);
84
96
  setSelectedImage(imageUrl);
97
+ setDeletingImage(false);
98
+ setOpenSubmitModal(true);
85
99
  handleChange(event);
100
+ // handleSubmit()
86
101
  }
87
102
  };
103
+ /**
104
+ * Handles the image upload from the drag and drop event.
105
+ * @param event from the drag event
106
+ */
88
107
  const handleDrop = (event) => {
89
108
  event.preventDefault();
90
109
  const file = event.dataTransfer.files[0];
91
110
  if (file) {
92
111
  const imageUrl = URL.createObjectURL(file);
93
112
  setSelectedImage(imageUrl);
113
+ setOpenSubmitModal(true);
114
+ setDeletingImage(false);
94
115
  const dropEvent = { target: { files: event.dataTransfer.files, name: "key", type: "file" } };
95
116
  if (inputRef.current)
96
117
  inputRef.current.files = event.dataTransfer.files;
97
118
  handleChange(dropEvent);
119
+ // handleSubmit();
98
120
  }
99
121
  };
122
+ /**
123
+ * HAndles the image upload from the drag and drop event.
124
+ * @param event from the drag event
125
+ */
100
126
  const handleDragOver = (event) => {
101
127
  event.preventDefault();
128
+ const file = event.dataTransfer.files[0];
129
+ if (file) {
130
+ const imageUrl = URL.createObjectURL(file);
131
+ setSelectedImage(imageUrl);
132
+ setOpenSubmitModal(true);
133
+ setDeletingImage(false);
134
+ const dropEvent = { target: { files: event.dataTransfer.files, name: "key", type: "file" } };
135
+ if (inputRef.current)
136
+ inputRef.current.files = event.dataTransfer.files;
137
+ handleChange(dropEvent);
138
+ // handleSubmit();
139
+ }
102
140
  };
103
- const handleBrowseClick = (event) => {
141
+ /**
142
+ * Handles the click event of the browse button.
143
+ */
144
+ const handleBrowseClick = () => {
104
145
  if (inputRef && inputRef.current)
105
146
  inputRef.current.click();
106
147
  };
148
+ /**
149
+ * Handles toggling the image preview.
150
+ */
107
151
  const handleToggleImage = () => {
108
152
  setShowImage(!showImage);
109
153
  setShowSettings(false);
110
154
  };
155
+ /**
156
+ * Handles toggling the settings.
157
+ */
111
158
  const handleToggleSettings = () => {
112
159
  setShowSettings(!showSettings);
113
160
  };
161
+ /**
162
+ * Handles clearing the input and removing the image.
163
+ */
164
+ const clearInput = () => {
165
+ if (inputRef.current) {
166
+ setPrevImage(selectedImage);
167
+ setSelectedImage(null);
168
+ inputRef.current.value = "";
169
+ }
170
+ if (handleRemove) {
171
+ setDeletingImage(true);
172
+ setOpenSubmitModal(true);
173
+ handleRemove();
174
+ // handleSubmit();
175
+ }
176
+ };
177
+ /**
178
+ * Handles the cancel click event from the modal.
179
+ */
180
+ const undoDelete = () => {
181
+ setSelectedImage(prevImage);
182
+ setOpenSubmitModal(false);
183
+ setDeletingImage(false);
184
+ setPrevImage(null);
185
+ };
186
+ /**
187
+ * Handles the submit click event from the modal.
188
+ */
189
+ const handleSubmitClick = async () => {
190
+ await handleSubmit();
191
+ setOpenSubmitModal(false);
192
+ };
114
193
  return (React.createElement(Container, { colors: colorPalette, showImage: showImage, showSettings: showSettings, key: `thumbnail_${fieldInstance.id}` },
115
194
  React.createElement("div", { style: { display: "flex" } },
116
195
  React.createElement(Button, { colorPalette: colorPalette, icon: !showImage ? React.createElement(FiEye, null) : React.createElement(FiEyeOff, null), variant: "outlined", onClick: handleToggleImage, "aria-label": !showImage ? "show-image" : "hide-image" }),
117
196
  showImage && selectedImage && (React.createElement(React.Fragment, null,
118
197
  React.createElement(Button, { colorPalette: colorPalette, icon: React.createElement(FiSettings, null), variant: "outlined", style: { borderColor: "transparent" }, onClick: handleToggleSettings }),
119
- handleRemove && (React.createElement(Button, { colorPalette: colorPalette, icon: React.createElement(FiTrash2, null), variant: "destructive", onClick: handleRemove }))))),
120
- showImage && !showSettings && (React.createElement(InputArea, { onDrop: handleDrop, onDragOver: handleDragOver, colors: colorPalette },
198
+ React.createElement(Button, { colorPalette: colorPalette, icon: React.createElement(FiTrash2, null), variant: "destructive", onClick: clearInput })))),
199
+ showImage && !showSettings && (loading ? (React.createElement(Spinner, { colorPalette: colorPalette })) : (React.createElement(InputArea, { onDrop: handleDrop, onDragOver: handleDragOver, colors: colorPalette },
121
200
  selectedImage && (React.createElement(PreviewImage, { alt: s3Key || "Uploaded Image", src: selectedImage })),
122
201
  React.createElement(Button, { colorPalette: colorPalette, label: "Browse", variant: "filled", onClick: handleBrowseClick },
123
- React.createElement("input", { type: "file", name: "key", accept: acceptedFileTypes.join(","), onChange: handleImageUpload, ref: inputRef, id: `upload-image-${fieldInstance.id}`, multiple: false, style: { display: "none" } })))),
124
- showSettings && showImage && (React.createElement(SettingsArea, { colors: colorPalette }, settingsChildren)),
125
- changed && (React.createElement(Button, { colorPalette: colorPalette, onClick: handleSubmit, variant: "filled", style: { margin: "0 auto" } }, uploadButtonText))));
202
+ React.createElement("input", { type: "file", name: "key", accept: acceptedFileTypes.join(","), onChange: handleImageUpload, ref: inputRef, id: `upload-image-${fieldInstance.id}`, multiple: false, style: { display: "none" } }))))),
203
+ showSettings && showImage && (React.createElement(SettingsArea, { colors: colorPalette }, settingsChildren))));
126
204
  };
127
205
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1B,MAAM,EAAE,YAAY;YAGnB,aAAa,IAAI,CACjB,oBAAC,YAAY,IACZ,GAAG,EAAE,KAAK,IAAI,gBAAgB,EAC9B,GAAG,EAAE,aAAa,GACjB,CACF;YACD,oBAAC,MAAM,IACN,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAC,QAAQ,EACd,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,iBAAiB;gBAE1B,+BACC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,EACV,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,EACnC,QAAQ,EAAE,iBAAiB,EAC3B,GAAG,EAAE,QAAQ,EACb,EAAE,EAAE,gBAAgB,aAAa,CAAC,EAAE,EAAE,EACtC,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GACzB,CACM,CACE,CACZ,CACF;QACA,YAAY,IAAI,SAAS,IAAI,CAC7B,oBAAC,YAAY,IAAC,MAAM,EAAE,YAAY,IAAG,gBAAgB,CAAgB,CACrE,CAuBU,CACZ,CAAC;AACH,CAAC,CAAC"}
@@ -1,41 +1,41 @@
1
1
  import React, { forwardRef } from "react";
2
2
  import styled from "@emotion/styled";
3
- const CardContainer = styled.div `
4
- padding: 24px;
5
- border-width: 0.5px;
6
- border-style: solid;
7
- border-color: ${({ colorPalette }) => colorPalette.border.primary};
8
- border-right: none;
9
- border-left: none;
3
+ const CardContainer = styled.div `
4
+ padding: 24px;
5
+ border-width: 0.5px;
6
+ border-style: solid;
7
+ border-color: ${({ colorPalette }) => colorPalette.border.primary};
8
+ border-right: none;
9
+ border-left: none;
10
10
  `;
11
- const FieldsXThumbnailSection = styled.section `
12
- display: flex;
13
- justify-content: space-between;
14
- flex-direction: row-reverse;
15
- @media (max-width: 600px) {
16
- flex-direction: column;
17
- align-items: flex-end;
18
- }
19
-
20
- :has(div > div > button[aria-label="show-image"]) {
21
- flex-direction: column;
22
- }
11
+ const FieldsXThumbnailSection = styled.section `
12
+ display: flex;
13
+ justify-content: space-between;
14
+ flex-direction: row-reverse;
15
+ @media (max-width: 600px) {
16
+ flex-direction: column;
17
+ align-items: flex-end;
18
+ }
19
+
20
+ :has(div > div > button[aria-label="show-image"]) {
21
+ flex-direction: column;
22
+ }
23
23
  `;
24
- const ThumbnailSectionFields = styled.section `
25
- padding: 16px 24px 0px 0px;
26
- display: flex;
27
- flex-direction: column;
28
- justify-content: center;
29
- width: 100%;
30
- @media (max-width: 600px) {
31
- padding: 16px 0px 0px 24px;
32
- }
24
+ const ThumbnailSectionFields = styled.section `
25
+ padding: 16px 24px 0px 0px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: center;
29
+ width: 100%;
30
+ @media (max-width: 600px) {
31
+ padding: 16px 0px 0px 24px;
32
+ }
33
33
  `;
34
- const ButtonContainer = styled.div `
35
- display: flex;
36
- justify-content: flex-end;
37
- gap: 24px;
38
- padding-top: 24px;
34
+ const ButtonContainer = styled.div `
35
+ display: flex;
36
+ justify-content: flex-end;
37
+ gap: 24px;
38
+ padding-top: 24px;
39
39
  `;
40
40
  export const Card = forwardRef((props, ref) => {
41
41
  const { colorPalette, thumbnail, thumbnailSectionFields, remainingFields, buttons, } = props;
@@ -6,82 +6,82 @@ import Badge from "../../Atoms/Badge/Badge";
6
6
  import { DropdownSelect } from "../../Atoms/DropdownField/DropdownField";
7
7
  import { FieldWrapper } from "../../Atoms/FieldWrapper/FieldWrapper";
8
8
  import { TextFieldWrapper } from "../../Atoms/TextField/TextField";
9
- const Container = styled.div `
10
- display: flex;
11
- padding: 16px 24px;
12
- flex-direction: column;
13
- align-items: flex-start;
14
- gap: 8px;
15
- align-self: stretch;
16
- border-radius: var(--Border-Radius-border-radius-md, 8px);
17
- border: 0.5px solid var(--colors-border-secondary, #DCDEE0);
18
- background: ${({ colorPalette }) => colorPalette.background.primary};
9
+ const Container = styled.div `
10
+ display: flex;
11
+ padding: 16px 24px;
12
+ flex-direction: column;
13
+ align-items: flex-start;
14
+ gap: 8px;
15
+ align-self: stretch;
16
+ border-radius: var(--Border-Radius-border-radius-md, 8px);
17
+ border: 0.5px solid var(--colors-border-secondary, #DCDEE0);
18
+ background: ${({ colorPalette }) => colorPalette.background.primary};
19
19
  `;
20
- const Created = styled.div `
21
- display: flex;
22
- padding: 0px 8px;
23
- gap: 8px;
24
- width: 100%;
20
+ const Created = styled.div `
21
+ display: flex;
22
+ padding: 0px 8px;
23
+ gap: 8px;
24
+ width: 100%;
25
25
  `;
26
- const BadgeContainer = styled.div `
27
- padding-top: 2px;
26
+ const BadgeContainer = styled.div `
27
+ padding-top: 2px;
28
28
  `;
29
- const CreatedText = styled.p `
30
- margin: 0px;
31
- padding-top: 8px;
32
- color: ${({ colorPalette }) => colorPalette.text.primary}
29
+ const CreatedText = styled.p `
30
+ margin: 0px;
31
+ padding-top: 8px;
32
+ color: ${({ colorPalette }) => colorPalette.text.primary}
33
33
  `;
34
- const DropdownContainer = styled.div `
35
- width: 100%;
36
- display: flex;
37
- padding: 0px 8px 8px 8px;
38
- flex-direction: column;
34
+ const DropdownContainer = styled.div `
35
+ width: 100%;
36
+ display: flex;
37
+ padding: 0px 8px 8px 8px;
38
+ flex-direction: column;
39
39
  `;
40
- const RoleDescriptionContainer = styled.div `
41
- display: flex;
42
- flex-direction: column
40
+ const RoleDescriptionContainer = styled.div `
41
+ display: flex;
42
+ flex-direction: column
43
43
  `;
44
- const RoleDescriptionParagraph = styled.p `
45
- font-size: 14px;
46
- font-style: italic;
47
- font-weight: 400;
48
- line-height: 20px;
49
- margin: 0px;
50
- color: ${({ colorPalette }) => colorPalette.text.primary}
44
+ const RoleDescriptionParagraph = styled.p `
45
+ font-size: 14px;
46
+ font-style: italic;
47
+ font-weight: 400;
48
+ line-height: 20px;
49
+ margin: 0px;
50
+ color: ${({ colorPalette }) => colorPalette.text.primary}
51
51
  `;
52
- const RoleNameParagraph = styled.h2 `
53
- font-size: 14px;
54
- font-style: italic;
55
- font-weight: 700;
56
- line-height: 20px;
57
- margin: 0px;
58
- color: ${({ colorPalette }) => colorPalette.text.primary}
52
+ const RoleNameParagraph = styled.h2 `
53
+ font-size: 14px;
54
+ font-style: italic;
55
+ font-weight: 700;
56
+ line-height: 20px;
57
+ margin: 0px;
58
+ color: ${({ colorPalette }) => colorPalette.text.primary}
59
59
  `;
60
- const EmailWrapper = styled.div `
61
- width: 100%;
62
- min-width: 60px;
63
- min-height: 30px;
64
- height: 38px;
65
- border-radius: 4px;
66
- border-width: 1px;
67
- border-style: solid;
68
- border-color: ${({ colorPalette }) => colorPalette.background.disabledInput};
69
- background-color: ${({ colorPalette }) => colorPalette.background.disabledInput};
60
+ const EmailWrapper = styled.div `
61
+ width: 100%;
62
+ min-width: 60px;
63
+ min-height: 30px;
64
+ height: 38px;
65
+ border-radius: 4px;
66
+ border-width: 1px;
67
+ border-style: solid;
68
+ border-color: ${({ colorPalette }) => colorPalette.background.disabledInput};
69
+ background-color: ${({ colorPalette }) => colorPalette.background.disabledInput};
70
70
  `;
71
- const PseudoInput = styled.div `
72
- display: flex;
73
- align-items: center;
74
- justify-content: space-between;
75
- gap: 16px;
76
- font-weight: 600;
77
- font-size: 16px;
78
- display: flex;
79
- padding: 3px 12px 3px 16px;
80
- cursor: default;
81
- color: ${({ colorPalette }) => colorPalette.text.primary};
82
- ::placeholder {
83
- font-weight: 500;
84
- }
71
+ const PseudoInput = styled.div `
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: space-between;
75
+ gap: 16px;
76
+ font-weight: 600;
77
+ font-size: 16px;
78
+ display: flex;
79
+ padding: 3px 12px 3px 16px;
80
+ cursor: default;
81
+ color: ${({ colorPalette }) => colorPalette.text.primary};
82
+ ::placeholder {
83
+ font-weight: 500;
84
+ }
85
85
  `;
86
86
  export function EditUserPerms(props) {
87
87
  const { user, handleChange, roles, theme } = props;
@@ -3,44 +3,44 @@ import styled from "@emotion/styled";
3
3
  import { FiRefreshCw } from "react-icons/fi";
4
4
  import { Button } from "../../Atoms/Buttons/Button";
5
5
  import { Typography } from "../../Atoms/Typography/Typography";
6
- const ErrorSplashContainer = styled.div `
7
- background-color: ${({ colorPalette }) => colorPalette.background.primary};
8
- display: flex;
9
- flex-direction: column;
10
- align-self: stretch;
11
- flex-grow: 1;
6
+ const ErrorSplashContainer = styled.div `
7
+ background-color: ${({ colorPalette }) => colorPalette.background.primary};
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-self: stretch;
11
+ flex-grow: 1;
12
12
  `;
13
- const HeaderDiv = styled.div `
14
- padding: 24px;
15
- flex-direction: column;
16
- align-items: center;
17
- gap: 16px;
18
- align-self: stretch;
19
- color: ${({ colorPalette }) => colorPalette.text.primary};
20
- border-width: 0 0 1px 0;
21
- border-style: solid;
22
- text-align: center;
23
- border-color: ${({ colorPalette }) => colorPalette.background.secondary};
13
+ const HeaderDiv = styled.div `
14
+ padding: 24px;
15
+ flex-direction: column;
16
+ align-items: center;
17
+ gap: 16px;
18
+ align-self: stretch;
19
+ color: ${({ colorPalette }) => colorPalette.text.primary};
20
+ border-width: 0 0 1px 0;
21
+ border-style: solid;
22
+ text-align: center;
23
+ border-color: ${({ colorPalette }) => colorPalette.background.secondary};
24
24
  `;
25
- const DescriptionDiv = styled.div `
26
- margin-top: 24px;
27
- text-align: center;
25
+ const DescriptionDiv = styled.div `
26
+ margin-top: 24px;
27
+ text-align: center;
28
28
  `;
29
- const BackgroundDiv = styled.div `
30
- display: flex;
31
- height: 245px;
32
- justify-content: center;
33
- align-items: center;
34
- align-content: center;
35
- gap: 16px;
36
- flex-shrink: 0;
37
- align-self: stretch;
38
- flex-wrap: wrap;
39
- flex-grow: 1;
40
- background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
41
- backgroundSize: cover;
42
- backgroundRepeat: no-repeat;
43
- overflowY: auto;
29
+ const BackgroundDiv = styled.div `
30
+ display: flex;
31
+ height: 245px;
32
+ justify-content: center;
33
+ align-items: center;
34
+ align-content: center;
35
+ gap: 16px;
36
+ flex-shrink: 0;
37
+ align-self: stretch;
38
+ flex-wrap: wrap;
39
+ flex-grow: 1;
40
+ background-image: ${({ backgroundImage }) => `url(${backgroundImage})`};
41
+ backgroundSize: cover;
42
+ backgroundRepeat: no-repeat;
43
+ overflowY: auto;
44
44
  `;
45
45
  // This will replace the ContactContainer when we have the ambassador program set up
46
46
  // const AmbassadorContactDiv = styled.div<{ colorPalette: Colors }>`
@@ -53,15 +53,15 @@ const BackgroundDiv = styled.div `
53
53
  // gap: 16px;
54
54
  // align-self: stretch;
55
55
  // `;
56
- const ContactContainer = styled.div `
57
- background-color: ${({ colors }) => colors.background.tertiary};
58
- color: ${({ colors }) => colors.text.primary};
59
- display: flex;
60
- padding: 24px 16px;
61
- flex-direction: column;
62
- align-items: center;
63
- gap: 16px;
64
- align-self: stretch;
56
+ const ContactContainer = styled.div `
57
+ background-color: ${({ colors }) => colors.background.tertiary};
58
+ color: ${({ colors }) => colors.text.primary};
59
+ display: flex;
60
+ padding: 24px 16px;
61
+ flex-direction: column;
62
+ align-items: center;
63
+ gap: 16px;
64
+ align-self: stretch;
65
65
  `;
66
66
  export const ErrorSplash = (props) => {
67
67
  const { colorPalette, title, description, image, backgroundImage, errorMessage, refreshOnClick, ...tableHtmlProps } = props;
@@ -3,20 +3,20 @@ import React, { useMemo, useState } from "react";
3
3
  import { MdPersonAddAlt } from "react-icons/md";
4
4
  import ContentDropdown from "../../Atoms/ContentDropdown/ContentDropdown";
5
5
  import Tab from "../../Atoms/Tab/Tab";
6
- const Container = styled.div `
7
- display: flex;
8
- width: 100%;
9
- flex-direction: column;
10
- align-items: flex-start;
11
- background-color: ${({ colorPalette }) => colorPalette.background.primary}
6
+ const Container = styled.div `
7
+ display: flex;
8
+ width: 100%;
9
+ flex-direction: column;
10
+ align-items: flex-start;
11
+ background-color: ${({ colorPalette }) => colorPalette.background.primary}
12
12
  `;
13
- const NavBar = styled.div `
14
- display: flex;
15
- padding: 0px 16px;
16
- align-items: flex-start;
17
- gap: 8px;
18
- align-self: stretch;
19
- border-bottom: 0.5px solid #89949F;
13
+ const NavBar = styled.div `
14
+ display: flex;
15
+ padding: 0px 16px;
16
+ align-items: flex-start;
17
+ gap: 8px;
18
+ align-self: stretch;
19
+ border-bottom: 0.5px solid #89949F;
20
20
  `;
21
21
  function TabManager(props) {
22
22
  const { colorPalette, tabLabels, forms } = props;