@factorearth/component-library 3.2.9 → 3.3.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/Buttons/Button.d.ts +1 -1
- package/dist/Atoms/Buttons/Button.js +17 -17
- package/dist/Atoms/Buttons/Button.js.map +1 -1
- package/dist/Atoms/ContentDropdown/ContentDropdown.d.ts +11 -0
- package/dist/Atoms/ContentDropdown/ContentDropdown.js +37 -0
- package/dist/Atoms/ContentDropdown/ContentDropdown.js.map +1 -0
- package/dist/Atoms/DateField/DateField.d.ts +1 -1
- package/dist/Atoms/DateField/DateField.js +94 -94
- package/dist/Atoms/DateField/DateField.js.map +1 -1
- package/dist/Atoms/DropdownField/DropdownField.d.ts +1 -1
- package/dist/Atoms/FieldWrapper/FieldWrapper.js +21 -21
- package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +52 -52
- package/dist/Atoms/NoteField/NoteField.js +38 -38
- package/dist/Atoms/NumberField/NumberField.d.ts +1 -1
- package/dist/Atoms/NumberField/NumberField.js +63 -63
- package/dist/Atoms/NumberField/NumberField.js.map +1 -1
- package/dist/Atoms/Pagination/Pagination.js +26 -26
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.js +8 -6
- package/dist/Atoms/PhoneNumberField/PhoneNumberField.js.map +1 -1
- package/dist/Atoms/SelectField/SelectField.d.ts +1 -1
- package/dist/Atoms/SortDropdown/SortDropdown.js +39 -39
- package/dist/Atoms/Tab/Tab.d.ts +10 -0
- package/dist/Atoms/Tab/Tab.js +27 -0
- package/dist/Atoms/Tab/Tab.js.map +1 -0
- package/dist/Atoms/TextField/TextField.d.ts +1 -1
- package/dist/Atoms/TextField/TextField.js +23 -20
- package/dist/Atoms/TextField/TextField.js.map +1 -1
- package/dist/Molecules/Form/Form.d.ts +14 -0
- package/dist/Molecules/Form/Form.js +17 -0
- package/dist/Molecules/Form/Form.js.map +1 -0
- package/dist/Molecules/Thumbnail/Thumbnail.d.ts +1 -1
- package/dist/Molecules/Thumbnail/Thumbnail.js +51 -51
- package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Organisms/Card/Card.d.ts +1 -1
- package/dist/Organisms/Card/Card.js +36 -36
- package/dist/Organisms/Card/Card.js.map +1 -1
- package/dist/Organisms/Modal/Modal.d.ts +4 -4
- package/dist/Organisms/Modal/Modal.js +68 -68
- package/dist/Organisms/Modal/Modal.js.map +1 -1
- package/dist/Organisms/TabManager/TabManager.d.ts +9 -0
- package/dist/Organisms/TabManager/TabManager.js +47 -0
- package/dist/Organisms/TabManager/TabManager.js.map +1 -0
- package/dist/Theme/ThemeProvider.js +36 -8
- package/dist/Theme/ThemeProvider.js.map +1 -1
- package/dist/Theme/tokens.json +24 -0
- package/dist/Theme/types.d.ts +21 -1
- package/package.json +2 -2
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { FiPlus, FiMinus } from "react-icons/fi";
|
|
4
|
-
const NumberFieldContainer = styled.div `
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
4
|
+
const NumberFieldContainer = styled.div `
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 100%;
|
|
8
8
|
`;
|
|
9
|
-
const NumberInput = styled.input `
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
text-align: center;
|
|
14
|
-
min-width: 67px;
|
|
15
|
-
height: 38px;
|
|
16
|
-
width: 100%;
|
|
17
|
-
gap: 10px;
|
|
18
|
-
align-self: stretch;
|
|
19
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
20
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
21
|
-
border-width: 1px;
|
|
22
|
-
border-style: solid;
|
|
23
|
-
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
24
|
-
border-right: none;
|
|
25
|
-
border-left: none;
|
|
26
|
-
border-radius: 0px;
|
|
27
|
-
padding: 0;
|
|
28
|
-
&:focus-visible {
|
|
29
|
-
outline: none;
|
|
30
|
-
}
|
|
31
|
-
&::-webkit-inner-spin-button,
|
|
32
|
-
::-webkit-outer-spin-button {
|
|
33
|
-
-webkit-appearance: none;
|
|
34
|
-
margin: 0;
|
|
35
|
-
}
|
|
36
|
-
::placeholder {
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
}
|
|
9
|
+
const NumberInput = styled.input `
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
text-align: center;
|
|
14
|
+
min-width: 67px;
|
|
15
|
+
height: 38px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
gap: 10px;
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
20
|
+
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
border-style: solid;
|
|
23
|
+
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
24
|
+
border-right: none;
|
|
25
|
+
border-left: none;
|
|
26
|
+
border-radius: 0px;
|
|
27
|
+
padding: 0;
|
|
28
|
+
&:focus-visible {
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
&::-webkit-inner-spin-button,
|
|
32
|
+
::-webkit-outer-spin-button {
|
|
33
|
+
-webkit-appearance: none;
|
|
34
|
+
margin: 0;
|
|
35
|
+
}
|
|
36
|
+
::placeholder {
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
}
|
|
39
39
|
`;
|
|
40
|
-
const DecrementButton = styled.div `
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
display: flex;
|
|
43
|
-
width: 16px;
|
|
44
|
-
height: 22px;
|
|
45
|
-
padding: 8px 16px;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
align-items: center;
|
|
48
|
-
border-radius: 4px 0px 0px 4px;
|
|
49
|
-
border-width: 1px;
|
|
50
|
-
border-style: solid;
|
|
51
|
-
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
52
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
53
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
40
|
+
const DecrementButton = styled.div `
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
display: flex;
|
|
43
|
+
width: 16px;
|
|
44
|
+
height: 22px;
|
|
45
|
+
padding: 8px 16px;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
align-items: center;
|
|
48
|
+
border-radius: 4px 0px 0px 4px;
|
|
49
|
+
border-width: 1px;
|
|
50
|
+
border-style: solid;
|
|
51
|
+
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
52
|
+
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
53
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
54
54
|
`;
|
|
55
|
-
const IncrementButton = styled.div `
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
display: flex;
|
|
58
|
-
width: 16px;
|
|
59
|
-
height: 22px;
|
|
60
|
-
padding: 8px 16px;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
border-width: 1px;
|
|
64
|
-
border-style: solid;
|
|
65
|
-
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
66
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
67
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
68
|
-
${({ moreHorizon }) => !moreHorizon && `border-radius: 0px 4px 4px 0px;`}
|
|
69
|
-
${({ moreHorizon }) => moreHorizon && `border-right: none;`}
|
|
55
|
+
const IncrementButton = styled.div `
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
display: flex;
|
|
58
|
+
width: 16px;
|
|
59
|
+
height: 22px;
|
|
60
|
+
padding: 8px 16px;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
border-width: 1px;
|
|
64
|
+
border-style: solid;
|
|
65
|
+
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
66
|
+
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
67
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
68
|
+
${({ moreHorizon }) => !moreHorizon && `border-radius: 0px 4px 4px 0px;`}
|
|
69
|
+
${({ moreHorizon }) => moreHorizon && `border-right: none;`}
|
|
70
70
|
`;
|
|
71
71
|
export const NumberField = (props) => {
|
|
72
72
|
const { colorPalette, handleChange, handleBlur, fromTable, moreHorizon, value, ...inputProps } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../../../lib/Atoms/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,MAAqB,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGjD,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../../../lib/Atoms/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,MAAqB,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGjD,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAA2B;;;;CAIjE,CAAC;AAEF,MAAM,WAAW,GAA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G,EAAE;gBACZ,UAAU,IAAI,UAAU,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YACzD,CAAC;YAED,oBAAC,OAAO,OAAG,CACM;QAClB,oBAAC,WAAW,OACP,UAAU,EACd,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,kBAAkB,EAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACvD,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,WAAW,EACpB,IAAI,EAAC,MAAM,GACV;QACF,oBAAC,eAAe,IACf,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,CAAC,EACZ,MAAM,EAAE,GAAG,EAAE;gBACZ,UAAU,IAAI,UAAU,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YACzD,CAAC,EACD,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YAEvC,oBAAC,MAAM,OAAG,CACO;QACjB,WAAW,IAAI,WAAW,CACL,CACvB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import { FiChevronLeft, FiChevronRight } from "react-icons/fi";
|
|
4
|
-
const PaginationContainer = styled.div `
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
gap: 16px;
|
|
9
|
-
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
4
|
+
const PaginationContainer = styled.div `
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
background: ${({ colorPalette }) => colorPalette.background.primary};
|
|
10
10
|
`;
|
|
11
11
|
const PageNumber = styled.div(({ isActive, colorPalette, }) => ({
|
|
12
12
|
height: "14px",
|
|
@@ -27,28 +27,28 @@ const PageNumber = styled.div(({ isActive, colorPalette, }) => ({
|
|
|
27
27
|
fontWeight: 600,
|
|
28
28
|
lineHeight: "100%",
|
|
29
29
|
}));
|
|
30
|
-
const Ellipsis = styled.span `
|
|
31
|
-
height: 35px;
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
30
|
+
const Ellipsis = styled.span `
|
|
31
|
+
height: 35px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
36
36
|
`;
|
|
37
|
-
const RightButton = styled(FiChevronRight) `
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
height: 24px;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
align-items: center;
|
|
43
|
-
flex-shrink: 0;
|
|
37
|
+
const RightButton = styled(FiChevronRight) `
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
height: 24px;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
flex-shrink: 0;
|
|
44
44
|
`;
|
|
45
|
-
const LeftButton = styled(FiChevronLeft) `
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
display: inline-flex;
|
|
48
|
-
height: 24px;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
align-items: center;
|
|
51
|
-
flex-shrink: 0;
|
|
45
|
+
const LeftButton = styled(FiChevronLeft) `
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
height: 24px;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
align-items: center;
|
|
51
|
+
flex-shrink: 0;
|
|
52
52
|
`;
|
|
53
53
|
const getMinAndMax = (number, maxVisiblePages) => {
|
|
54
54
|
const min = Math.floor(number / maxVisiblePages) * maxVisiblePages + 1;
|
|
@@ -3,10 +3,10 @@ import { AsYouType, getCountries, getCountryCallingCode, } from "libphonenumber-
|
|
|
3
3
|
import React, { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { DropdownSelect } from "../DropdownField/DropdownField";
|
|
5
5
|
import { TextFieldWrapper } from "../TextField/TextField";
|
|
6
|
-
const PhoneNumberContainer = styled.div `
|
|
7
|
-
display: flex;
|
|
8
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
9
|
-
width: 100%;
|
|
6
|
+
const PhoneNumberContainer = styled.div `
|
|
7
|
+
display: flex;
|
|
8
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
9
|
+
width: 100%;
|
|
10
10
|
`;
|
|
11
11
|
export const PhoneNumberField = (props) => {
|
|
12
12
|
const { activeEditing, handleBlur, handleChange, moreHorizon, placeholder, initialValue, colorPalette, ...remainderProps } = props;
|
|
@@ -66,7 +66,8 @@ export const PhoneNumberField = (props) => {
|
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
68
|
control: (provided, _state) => {
|
|
69
|
-
return {
|
|
69
|
+
return {
|
|
70
|
+
...provided, paddingLeft: "8px",
|
|
70
71
|
justifyContent: "center",
|
|
71
72
|
alignSelf: "stretch",
|
|
72
73
|
backgroundColor: colorPalette.background.primary,
|
|
@@ -106,7 +107,8 @@ export const PhoneNumberField = (props) => {
|
|
|
106
107
|
boxShadow: "none",
|
|
107
108
|
borderRight: `1px solid ${colorPalette.border.primary}`,
|
|
108
109
|
},
|
|
109
|
-
boxShadow: "none",
|
|
110
|
+
boxShadow: "none",
|
|
111
|
+
};
|
|
110
112
|
},
|
|
111
113
|
}, containerStyle: { width: "150px" } }),
|
|
112
114
|
React.createElement(TextFieldWrapper, { style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneNumberField.js","sourceRoot":"","sources":["../../../lib/Atoms/PhoneNumberField/PhoneNumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EACN,SAAS,EAET,YAAY,EACZ,qBAAqB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"PhoneNumberField.js","sourceRoot":"","sources":["../../../lib/Atoms/PhoneNumberField/PhoneNumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EACN,SAAS,EAET,YAAY,EACZ,qBAAqB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAA2B;;qBAE7C,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;CAEzE,CAAC;AAiBF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAY,EAAE,EAAE;IAChD,MAAM,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,GAAG,cAAc,EACjB,GAAG,KAAK,CAAC;IAEV,MAA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,OAAO;4BAChD,SAAS,EAAE,MAAM;4BACjB,WAAW,EAAE,aAAa,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE;yBACvD;wBACD,SAAS,EAAE,MAAM;qBACjB,CAAC;gBACH,CAAC;aACD,EACD,cAAc,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,GACjC;QACF,oBAAC,gBAAgB,IAChB,KAAK,EAAE;gBACN,UAAU,EAAE,MAAM;gBAClB,WAAW,EAAE,MAAM;gBACnB,YAAY,EAAE,KAAK;aACnB,KACG,cAAc,EAClB,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAC,SAAS,EACnB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,uBAAuB,EACjC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,KAAK,GACT;QACD,WAAW,IAAI,WAAW,CACL,CACvB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ export interface CheckboxFieldValues {
|
|
|
6
6
|
}
|
|
7
7
|
interface SelectFieldProps {
|
|
8
8
|
handleChange(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
9
|
-
colorPalette: Colors
|
|
9
|
+
colorPalette: Colors;
|
|
10
10
|
options: Option[];
|
|
11
11
|
moreHorizon?: JSX.Element;
|
|
12
12
|
values: CheckboxFieldValues | Option[] | undefined;
|
|
@@ -2,49 +2,49 @@ import React, { useState, useRef, useEffect } from 'react';
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { GoSortAsc, GoSortDesc } from "react-icons/go";
|
|
4
4
|
import { TiMinus } from "react-icons/ti";
|
|
5
|
-
const DropdownContainer = styled.div `
|
|
6
|
-
position: relative;
|
|
7
|
-
display: inline-block;
|
|
5
|
+
const DropdownContainer = styled.div `
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-block;
|
|
8
8
|
`;
|
|
9
|
-
const DropdownButton = styled.button `
|
|
10
|
-
background-color: #f0f0f0;
|
|
11
|
-
border: none;
|
|
12
|
-
padding: 10px;
|
|
13
|
-
border-radius: 4px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
9
|
+
const DropdownButton = styled.button `
|
|
10
|
+
background-color: #f0f0f0;
|
|
11
|
+
border: none;
|
|
12
|
+
padding: 10px;
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
17
|
`;
|
|
18
|
-
const Menu = styled.div `
|
|
19
|
-
display: ${({ isOpen }) => (isOpen ? 'block' : 'none')};
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 100%;
|
|
22
|
-
left: 0;
|
|
23
|
-
background-color: #fff;
|
|
24
|
-
border: 1px solid #ccc;
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
27
|
-
min-width: 200px;
|
|
28
|
-
z-index: 1000;
|
|
18
|
+
const Menu = styled.div `
|
|
19
|
+
display: ${({ isOpen }) => (isOpen ? 'block' : 'none')};
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 100%;
|
|
22
|
+
left: 0;
|
|
23
|
+
background-color: #fff;
|
|
24
|
+
border: 1px solid #ccc;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
27
|
+
min-width: 200px;
|
|
28
|
+
z-index: 1000;
|
|
29
29
|
`;
|
|
30
|
-
const MenuItem = styled.button `
|
|
31
|
-
background: none;
|
|
32
|
-
border: none;
|
|
33
|
-
padding: 10px;
|
|
34
|
-
width: 100%;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
transition: background-color 0.2s;
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
background-color: #f0f0f0;
|
|
42
|
-
}
|
|
30
|
+
const MenuItem = styled.button `
|
|
31
|
+
background: none;
|
|
32
|
+
border: none;
|
|
33
|
+
padding: 10px;
|
|
34
|
+
width: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
transition: background-color 0.2s;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: #f0f0f0;
|
|
42
|
+
}
|
|
43
43
|
`;
|
|
44
|
-
const IconContainer = styled.span `
|
|
45
|
-
margin-right: 8px;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
44
|
+
const IconContainer = styled.span `
|
|
45
|
+
margin-right: 8px;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
48
|
`;
|
|
49
49
|
export const SortDropdown = () => {
|
|
50
50
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import React from "react";
|
|
3
|
+
const TabDiv = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 6px 12px;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
border-radius: 4px 4px 0px 0px;
|
|
10
|
+
background: ${({ colors, selected }) => selected ? colors.tab.selected : colors.tab.notSelected};
|
|
11
|
+
cursor: ${({ selected }) => selected ? "auto" : "pointer"};
|
|
12
|
+
border: .5px solid ${({ colors }) => colors.tab.selected};
|
|
13
|
+
`;
|
|
14
|
+
const Label = styled.p `
|
|
15
|
+
color: ${({ colors, selected }) => selected ? colors.tabText.selected : colors.tabText.notSelected};
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
line-height: 150%;
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
margin: 0px;
|
|
20
|
+
`;
|
|
21
|
+
function Tab(props) {
|
|
22
|
+
const { colors, handleClick, label, selected, ...remainingProps } = props;
|
|
23
|
+
return (React.createElement(TabDiv, { colors: colors, selected: selected, role: !selected ? "button" : undefined, "aria-label": `${label} tab`, onClick: !selected ? handleClick : undefined, ...remainingProps },
|
|
24
|
+
React.createElement(Label, { colors: colors, selected: selected }, label)));
|
|
25
|
+
}
|
|
26
|
+
export default Tab;
|
|
27
|
+
//# sourceMappingURL=Tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.js","sourceRoot":"","sources":["../../../lib/Atoms/Tab/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAyC;;;;;;;eAOnD,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW;WACrF,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;sBACpC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ;CACxD,CAAC;AAEF,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAyC;UACrD,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW;;;;;CAKlG,CAAC;AASF,SAAS,GAAG,CAAC,KAAY;IACxB,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,GAAG,KAAK,CAAC;IAC1E,OAAO,CACN,oBAAC,MAAM,IACN,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gBAC1B,GAAG,KAAK,MAAM,EAC1B,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,KACxC,cAAc;QAElB,oBAAC,KAAK,IACL,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,IAEjB,KAAK,CACC,CACA,CACT,CAAC;AACH,CAAC;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Colors } from "../../Theme/types";
|
|
3
3
|
interface TextFieldWrapperProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
4
4
|
activeEditing?: boolean;
|
|
5
|
-
colorPalette: Colors
|
|
5
|
+
colorPalette: Colors;
|
|
6
6
|
moreHorizon?: JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export declare const TextFieldWrapper: (props: TextFieldWrapperProps) => React.JSX.Element;
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from "react";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
const InputWrapper = styled.input `
|
|
4
|
-
width: 100%;
|
|
5
|
-
min-width: 60px;
|
|
6
|
-
min-height: 30px;
|
|
7
|
-
font-weight: 600;
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
cursor: text;
|
|
3
|
+
const InputWrapper = styled.input `
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 60px;
|
|
6
|
+
min-height: 30px;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
cursor: text;
|
|
10
10
|
${({ moreHorizon }) => moreHorizon &&
|
|
11
|
-
`border-top-right-radius: 0px;border-bottom-right-radius: 0px;`}
|
|
12
|
-
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
13
|
-
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
14
|
-
border-style: solid;
|
|
15
|
-
border-width: 1px;
|
|
16
|
-
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
17
|
-
padding: 0;
|
|
18
|
-
padding-left: 16px;
|
|
19
|
-
${({ moreHorizon }) => moreHorizon && `border-right: none;`}
|
|
20
|
-
height: 38px;
|
|
21
|
-
::placeholder {
|
|
22
|
-
font-weight: 500;
|
|
23
|
-
}
|
|
11
|
+
`border-top-right-radius: 0px;border-bottom-right-radius: 0px;`}
|
|
12
|
+
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
13
|
+
border-color: ${({ colorPalette }) => colorPalette.border.primary};
|
|
14
|
+
border-style: solid;
|
|
15
|
+
border-width: 1px;
|
|
16
|
+
color: ${({ colorPalette }) => colorPalette.text.primary};
|
|
17
|
+
padding: 0;
|
|
18
|
+
padding-left: 16px;
|
|
19
|
+
${({ moreHorizon }) => moreHorizon && `border-right: none;`}
|
|
20
|
+
height: 38px;
|
|
21
|
+
::placeholder {
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
}
|
|
24
|
+
:disabled {
|
|
25
|
+
background-color: ${({ colorPalette }) => colorPalette.background.disabledInput}
|
|
26
|
+
}
|
|
24
27
|
`;
|
|
25
28
|
export const TextFieldWrapper = (props) => {
|
|
26
29
|
const { activeEditing, colorPalette, moreHorizon, onChange, value, ...remainderProps } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../lib/Atoms/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAG/B;;;;;;;GAOC,C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AAW,EACX,QAAQ,EACR,KAAK,EACL,GAAG,cAAc,EACjB,GAAG,KAAK,CAAC;IACV,MAAM,GAAG,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1D,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC;QAC1B,IAAI,aAAa,IAAI,MAAM,EAAE,CAAC;YAC7B,IAAI,KAAK,IAAI,MAAM,EAAE,CAAC;gBACrB,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACzC,CAAC;QACF,CAAC;IACF,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;IAEnC,MAAM,YAAY,GAAG,CAAC,CAAsC,EAAE,EAAE;QAC/D,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QACnC,IAAI,QAAQ;YAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACN,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QAC7C,oBAAC,YAAY,OACR,cAAc,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EACvC,YAAY,EAAE,YAAY,GACzB;QACD,WAAW,IAAI,WAAW,CACtB,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors } from "../../Theme/types";
|
|
3
|
+
export declare const ContentContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
} & {
|
|
7
|
+
colors: Colors;
|
|
8
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
interface Props {
|
|
10
|
+
colors: Colors;
|
|
11
|
+
children: JSX.Element[];
|
|
12
|
+
}
|
|
13
|
+
declare function Form(props: Props): React.JSX.Element;
|
|
14
|
+
export default Form;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
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};
|
|
11
|
+
`;
|
|
12
|
+
function Form(props) {
|
|
13
|
+
const { children, colors } = props;
|
|
14
|
+
return (React.createElement(ContentContainer, { colors: colors }, children));
|
|
15
|
+
}
|
|
16
|
+
export default Form;
|
|
17
|
+
//# sourceMappingURL=Form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../lib/Molecules/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAqB;;;;;;;qBAO1C,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO;CAC7D,CAAC;AAOF,SAAS,IAAI,CAAC,KAAY;IACzB,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,OAAO,CACN,oBAAC,gBAAgB,IAAC,MAAM,EAAE,MAAM,IAC9B,QAAQ,CACS,CACnB,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, Dispatch, SetStateAction } from "react";
|
|
2
2
|
import { Colors } from "Theme/types";
|
|
3
3
|
export declare const Thumbnail: ({ colorPalette, handleSubmit, settingsChildren, showImage, setShowImage, fieldInstance, s3Key, signedUrl, uploadButtonText, handleRemove, changed, handleChange, }: {
|
|
4
|
-
colorPalette: Colors
|
|
4
|
+
colorPalette: Colors;
|
|
5
5
|
handleSubmit: (newValueData: {
|
|
6
6
|
target: {
|
|
7
7
|
name: string;
|