@factorearth/component-library 3.2.5 → 3.2.7-bs.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 CHANGED
@@ -1,11 +1,11 @@
1
- # `componentLibrary`
2
-
3
- > TODO: description
4
-
5
- ## Usage
6
-
7
- ```
8
- const componentlibrary = require('componentLibrary');
9
-
10
- // TODO: DEMONSTRATE API
11
- ```
1
+ # `componentLibrary`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const componentlibrary = require('componentLibrary');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -1,21 +1,21 @@
1
1
  import React from "react";
2
2
  import styled from "@emotion/styled";
3
- const DivButton = styled.div `
4
- height: 14px;
5
- background-color: ${({ color, variant }) => color.buttonBackground[variant]};
6
- color: ${({ color, variant }) => color.buttonText[variant]};
7
- display: flex;
8
- padding: 8px 9.5px;
9
- justify-content: center;
10
- align-items: center;
11
- gap: 8px;
12
- cursor: pointer;
13
- border-radius: 4px;
14
- border-style: solid;
15
- border-width: 1px;
16
- font-size: 14px;
17
- font-weight: 700;
18
- border-color: ${({ color, variant }) => color.buttonBorder[variant]};
3
+ const DivButton = styled.div `
4
+ height: 14px;
5
+ background-color: ${({ color, variant }) => color.buttonBackground[variant]};
6
+ color: ${({ color, variant }) => color.buttonText[variant]};
7
+ display: flex;
8
+ padding: 8px 9.5px;
9
+ justify-content: center;
10
+ align-items: center;
11
+ gap: 8px;
12
+ cursor: pointer;
13
+ border-radius: 4px;
14
+ border-style: solid;
15
+ border-width: 1px;
16
+ font-size: 14px;
17
+ font-weight: 700;
18
+ border-color: ${({ color, variant }) => color.buttonBorder[variant]};
19
19
  `;
20
20
  export const Button = (props) => {
21
21
  const { colorPalette, icon, variant, label, children } = props;
@@ -3,101 +3,101 @@ import styled from "@emotion/styled";
3
3
  import { FiCalendar } from "react-icons/fi";
4
4
  import DatePicker from "react-datepicker";
5
5
  import "react-datepicker/dist/react-datepicker.css";
6
- const DateIcon = styled(FiCalendar) `
7
- color: ${({ colorpalette }) => colorpalette.text.primary};
8
- background: ${({ colorpalette }) => colorpalette.background.primary};
9
- border-width: 1px;
10
- border-style: solid;
11
- border-color: ${({ colorpalette }) => colorpalette.border.primary};
12
- border-left: none;
13
- width: 24px;
14
- height: 38px;
15
- padding-right: 8px;
16
- cursor: pointer;
17
- border-radius: 0px 4px 4px 0px;
18
- ${({ morehorizon }) => morehorizon === "true" && `border-right: none; border-radius: 0px;`};
6
+ const DateIcon = styled(FiCalendar) `
7
+ color: ${({ colorpalette }) => colorpalette.text.primary};
8
+ background: ${({ colorpalette }) => colorpalette.background.primary};
9
+ border-width: 1px;
10
+ border-style: solid;
11
+ border-color: ${({ colorpalette }) => colorpalette.border.primary};
12
+ border-left: none;
13
+ width: 24px;
14
+ height: 38px;
15
+ padding-right: 8px;
16
+ cursor: pointer;
17
+ border-radius: 0px 4px 4px 0px;
18
+ ${({ morehorizon }) => morehorizon === "true" && `border-right: none; border-radius: 0px;`};
19
19
  `;
20
- const DateFieldContainer = styled.div `
21
- display: flex;
22
- background: ${({ colorpalette }) => colorpalette.background.primary};
23
- width: 100%;
24
-
25
- .react-datepicker-wrapper {
26
- width: 100% !important;
27
- }
28
- .react-datepicker {
29
- border-color: ${({ colorpalette }) => colorpalette.border.primary};
30
- background: ${({ colorpalette }) => colorpalette.background.primary};
31
- left: 33px;
32
- border-radius: 4px;
33
- }
34
-
35
- .react-datepicker__input-container > input {
36
- height: 38px;
37
- border-width: 1px;
38
- border-style: solid;
39
- border-color: ${({ colorpalette }) => colorpalette.border.primary};
40
- color: ${({ colorpalette }) => colorpalette.text.primary};
41
- background: ${({ colorpalette }) => colorpalette.background.primary};
42
- border-radius: 4px;
43
- border-right: none;
44
- font-size: 14px;
45
- text-align: center;
46
- width: 100%;
47
- padding: 0;
48
- margin: 0;
49
- &:focus-visible {
50
- outline: none;
51
- }
52
- }
53
-
54
- .react-datepicker__header {
55
- background-color: ${({ colorpalette }) => colorpalette.background.secondary};
56
- border-bottom: none;
57
- padding: 10px;
58
- border-radius: 4px 4px 0 0;
59
- }
60
- .react-datepicker__month-container {
61
- background-color: ${({ colorpalette }) => colorpalette.background.primary};
62
- }
63
- .react-datepicker__day {
64
- background-color: ${({ colorpalette }) => colorpalette.background.primary};
65
- color: ${({ colorpalette }) => colorpalette.text.primary};
66
- }
67
-
68
- .react-datepicker__current-month {
69
- color: ${({ colorpalette }) => colorpalette.text.primary};
70
- font-weight: bold;
71
- font-size: 16px;
72
- }
73
-
74
- .react-datepicker__navigation {
75
- color: ${({ colorpalette }) => colorpalette.text.primary};
76
- }
77
-
78
- .react-datepicker__day-name {
79
- color: ${({ colorpalette }) => colorpalette.text.primary};
80
- }
81
-
82
- .react-datepicker__day--selected,
83
- .react-datepicker__day--keyboard-selected {
84
- background-color: ${({ colorpalette }) => colorpalette.background.secondary};
85
- color: ${({ colorpalette }) => colorpalette.text.primary};
86
- border-radius: 50%;
87
- }
88
-
89
- .react-datepicker__day:hover {
90
- background-color: ${({ colorpalette }) => colorpalette.background.secondary};
91
- border-radius: 50%;
92
- }
93
-
94
- .react-datepicker__day--outside-month {
95
- color: ${({ colorpalette }) => colorpalette.text.secondary};
96
- }
97
-
98
- .react-datepicker__triangle {
99
- display: none;
100
- }
20
+ const DateFieldContainer = styled.div `
21
+ display: flex;
22
+ background: ${({ colorpalette }) => colorpalette.background.primary};
23
+ width: 100%;
24
+
25
+ .react-datepicker-wrapper {
26
+ width: 100% !important;
27
+ }
28
+ .react-datepicker {
29
+ border-color: ${({ colorpalette }) => colorpalette.border.primary};
30
+ background: ${({ colorpalette }) => colorpalette.background.primary};
31
+ left: 33px;
32
+ border-radius: 4px;
33
+ }
34
+
35
+ .react-datepicker__input-container > input {
36
+ height: 38px;
37
+ border-width: 1px;
38
+ border-style: solid;
39
+ border-color: ${({ colorpalette }) => colorpalette.border.primary};
40
+ color: ${({ colorpalette }) => colorpalette.text.primary};
41
+ background: ${({ colorpalette }) => colorpalette.background.primary};
42
+ border-radius: 4px;
43
+ border-right: none;
44
+ font-size: 14px;
45
+ text-align: center;
46
+ width: 100%;
47
+ padding: 0;
48
+ margin: 0;
49
+ &:focus-visible {
50
+ outline: none;
51
+ }
52
+ }
53
+
54
+ .react-datepicker__header {
55
+ background-color: ${({ colorpalette }) => colorpalette.background.secondary};
56
+ border-bottom: none;
57
+ padding: 10px;
58
+ border-radius: 4px 4px 0 0;
59
+ }
60
+ .react-datepicker__month-container {
61
+ background-color: ${({ colorpalette }) => colorpalette.background.primary};
62
+ }
63
+ .react-datepicker__day {
64
+ background-color: ${({ colorpalette }) => colorpalette.background.primary};
65
+ color: ${({ colorpalette }) => colorpalette.text.primary};
66
+ }
67
+
68
+ .react-datepicker__current-month {
69
+ color: ${({ colorpalette }) => colorpalette.text.primary};
70
+ font-weight: bold;
71
+ font-size: 16px;
72
+ }
73
+
74
+ .react-datepicker__navigation {
75
+ color: ${({ colorpalette }) => colorpalette.text.primary};
76
+ }
77
+
78
+ .react-datepicker__day-name {
79
+ color: ${({ colorpalette }) => colorpalette.text.primary};
80
+ }
81
+
82
+ .react-datepicker__day--selected,
83
+ .react-datepicker__day--keyboard-selected {
84
+ background-color: ${({ colorpalette }) => colorpalette.background.secondary};
85
+ color: ${({ colorpalette }) => colorpalette.text.primary};
86
+ border-radius: 50%;
87
+ }
88
+
89
+ .react-datepicker__day:hover {
90
+ background-color: ${({ colorpalette }) => colorpalette.background.secondary};
91
+ border-radius: 50%;
92
+ }
93
+
94
+ .react-datepicker__day--outside-month {
95
+ color: ${({ colorpalette }) => colorpalette.text.secondary};
96
+ }
97
+
98
+ .react-datepicker__triangle {
99
+ display: none;
100
+ }
101
101
  `;
102
102
  export const DateFieldPicker = ({ colorPalette, handleBlur, handleChange, value, placeholder, moreHorizon, }) => {
103
103
  const [selectedDate, setSelectedDate] = useState(null);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import Select from "react-select";
3
3
  import Createable from "react-select/creatable";
4
4
  export const DropdownSelect = (props) => {
5
- const { colorPalette, moreHorizon, createAble, styles, ...selectProps } = props;
5
+ const { colorPalette, moreHorizon, createAble, styles, components, ...selectProps } = props;
6
6
  const defaultStyles = {
7
7
  control: (provided, state) => ({
8
8
  ...provided,
@@ -114,7 +114,7 @@ export const DropdownSelect = (props) => {
114
114
  };
115
115
  const customStyles = styles ? { ...defaultStyles, ...styles } : defaultStyles;
116
116
  return (React.createElement("div", { style: { display: "flex", width: "100%" } },
117
- createAble ? (React.createElement(Createable, { ...selectProps, styles: customStyles, colorPalette: colorPalette })) : (React.createElement(Select, { ...selectProps, styles: customStyles, colorPalette: colorPalette })),
117
+ createAble ? (React.createElement(Createable, { ...selectProps, styles: customStyles, colorPalette: colorPalette, components: components })) : (React.createElement(Select, { ...selectProps, styles: customStyles, colorPalette: colorPalette, components: components })),
118
118
  moreHorizon && moreHorizon));
119
119
  };
120
120
  //# sourceMappingURL=DropdownField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownField.js","sourceRoot":"","sources":["../../../lib/Atoms/DropdownField/DropdownField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAA4B,MAAM,cAAc,CAAC;AAExD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAehD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAY,EAAE,EAAE;IAC9C,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;IAChF,MAAM,aAAa,GAAG;QACrB,OAAO,EAAE,CAAC,QAAa,EAAE,KAAU,EAAE,EAAE,CAAC,CAAC;YACxC,GAAG,QAAQ;YACX,WAAW,EAAE,KAAK;YAClB,cAAc,EAAE,QAAQ;YACxB,SAAS,EAAE,SAAS;YACpB,eAAe,EAAE,YAAY,CAAC,UAAU,CAAC,OAAO;YAChD,MAAM,EAAE,SAAS;YACjB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IAAI,WAAW,CACtB,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -1,28 +1,28 @@
1
1
  import React from "react";
2
2
  import styled from "@emotion/styled";
3
- const FieldWrapperContainer = styled.div `
4
- display: flex;
5
- width: 100%;
6
- gap: 16px;
3
+ const FieldWrapperContainer = styled.div `
4
+ display: flex;
5
+ width: 100%;
6
+ gap: 16px;
7
7
  `;
8
- const LabelContainer = styled.label `
9
- display: flex;
10
- min-height: 56px;
11
- align-items: center;
12
- gap: 16px;
13
- text-overflow: ellipsis;
14
- font-size: 16px;
15
- font-style: normal;
16
- font-weight: 700;
17
- line-height: 125%;
18
- color: ${({ colorPalette }) => colorPalette.text.primary};
19
- width: 50%;
8
+ const LabelContainer = styled.label `
9
+ display: flex;
10
+ min-height: 56px;
11
+ align-items: center;
12
+ gap: 16px;
13
+ text-overflow: ellipsis;
14
+ font-size: 16px;
15
+ font-style: normal;
16
+ font-weight: 700;
17
+ line-height: 125%;
18
+ color: ${({ colorPalette }) => colorPalette.text.primary};
19
+ width: 50%;
20
20
  `;
21
- const FieldActionContainer = styled.div `
22
- display: flex;
23
- width: 100%;
24
- padding: 8px 0;
25
- align-items: center;
21
+ const FieldActionContainer = styled.div `
22
+ display: flex;
23
+ width: 100%;
24
+ padding: 8px 0;
25
+ align-items: center;
26
26
  `;
27
27
  export const FieldWrapper = (props) => {
28
28
  const { colorPalette, label, children, link, ...remainderProps } = props;
@@ -1,66 +1,66 @@
1
1
  import React, { useState, useRef, useEffect } from "react";
2
2
  import styled from "@emotion/styled";
3
3
  import { FiClock, FiMoreVertical, FiRefreshCw } from "react-icons/fi";
4
- const MoreHorizonPipe = styled.div `
5
- color: ${({ colorPalette }) => colorPalette.text.primary};
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- font-family: Arial;
10
- font-size: 12px;
11
- font-style: normal;
12
- font-weight: 700;
13
- line-height: normal;
4
+ const MoreHorizonPipe = styled.div `
5
+ color: ${({ colorPalette }) => colorPalette.text.primary};
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ font-family: Arial;
10
+ font-size: 12px;
11
+ font-style: normal;
12
+ font-weight: 700;
13
+ line-height: normal;
14
14
  `;
15
- const MoreHorizonIcon = styled.div `
16
- position: relative;
17
- left: ${({ menuOpen }) => (menuOpen ? "95px" : "0px")};
18
- display: flex;
15
+ const MoreHorizonIcon = styled.div `
16
+ position: relative;
17
+ left: ${({ menuOpen }) => (menuOpen ? "95px" : "0px")};
18
+ display: flex;
19
19
  `;
20
- const MoreHorizonContainer = styled.div `
21
- display: flex;
22
- height: 14px;
23
- width: 16px;
24
- padding: 12px 8px;
25
- align-items: center;
26
- justify-content: center;
27
- flex-shrink: 0;
28
- border-radius: 0px 4px 4px 0px;
29
- border-color: ${({ colorPalette }) => colorPalette.border.primary};
30
- border-style: solid;
31
- border-width: 1px;
32
- background-color: ${({ colorPalette }) => colorPalette.background.primary};
20
+ const MoreHorizonContainer = styled.div `
21
+ display: flex;
22
+ height: 14px;
23
+ width: 16px;
24
+ padding: 12px 8px;
25
+ align-items: center;
26
+ justify-content: center;
27
+ flex-shrink: 0;
28
+ border-radius: 0px 4px 4px 0px;
29
+ border-color: ${({ colorPalette }) => colorPalette.border.primary};
30
+ border-style: solid;
31
+ border-width: 1px;
32
+ background-color: ${({ colorPalette }) => colorPalette.background.primary};
33
33
  `;
34
- const MoreHorizonOption = styled.div `
35
- padding: 6px 12px;
36
- display: flex;
37
- align-items: center;
38
- justify-content: center;
39
- gap: 4px;
40
- width: 69px;
41
- height: 21px;
42
- font-size: 14px;
43
- font-style: normal;
44
- font-weight: 700;
45
- line-height: 150%;
46
- cursor: pointer;
47
- color: ${({ colorPalette }) => colorPalette.text.primary};
34
+ const MoreHorizonOption = styled.div `
35
+ padding: 6px 12px;
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ gap: 4px;
40
+ width: 69px;
41
+ height: 21px;
42
+ font-size: 14px;
43
+ font-style: normal;
44
+ font-weight: 700;
45
+ line-height: 150%;
46
+ cursor: pointer;
47
+ color: ${({ colorPalette }) => colorPalette.text.primary};
48
48
  `;
49
- const MoreHorizonMenu = styled.div `
50
- display: ${({ menuOpen }) => (menuOpen ? "flex" : "none")};
51
- position: relative;
52
- top: ${({ yPosition }) => (yPosition === "down" ? "40px " : "-40px")};
49
+ const MoreHorizonMenu = styled.div `
50
+ display: ${({ menuOpen }) => (menuOpen ? "flex" : "none")};
51
+ position: relative;
52
+ top: ${({ yPosition }) => (yPosition === "down" ? "40px " : "-40px")};
53
53
  left: ${({ xPosition }) => xPosition === "center"
54
54
  ? "-8px !important"
55
55
  : xPosition === "right"
56
56
  ? "70px"
57
- : "-85px"};
58
- flex-direction: row;
59
- background-color: ${({ colorPalette }) => colorPalette.highlight.secondary};
60
- border-radius: 4px;
61
- box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
62
- z-index: 1000;
63
- transform-origin: top left;
57
+ : "-85px"};
58
+ flex-direction: row;
59
+ background-color: ${({ colorPalette }) => colorPalette.highlight.secondary};
60
+ border-radius: 4px;
61
+ box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
62
+ z-index: 1000;
63
+ transform-origin: top left;
64
64
  `;
65
65
  export const MoreHorizonButton = (props) => {
66
66
  const { colorPalette, handleToggleHistory, handleRefreshField, ...remainderProps } = props;
@@ -1,48 +1,48 @@
1
1
  import React, { forwardRef } from "react";
2
2
  import styled from "@emotion/styled";
3
3
  import { FiMaximize } from "react-icons/fi";
4
- const NoteContainer = styled.div `
5
- display: flex;
6
- width: 100%;
7
- justify-content: flex-end;
4
+ const NoteContainer = styled.div `
5
+ display: flex;
6
+ width: 100%;
7
+ justify-content: flex-end;
8
8
  `;
9
- const MaximizeIconContainer = styled.div `
10
- border-radius: 4px 0px 0px 4px;
11
- height: 38px;
12
- width: 40px;
13
- display: flex;
14
- justify-content: center;
15
- align-items: center;
16
- cursor: pointer;
17
- color: ${({ colorPalette }) => colorPalette.text.primary};
18
- background: ${({ colorPalette }) => colorPalette.background.primary};
19
- border-width: 1px;
20
- border-style: solid;
21
- border-color: ${({ colorPalette }) => colorPalette.border.primary};
9
+ const MaximizeIconContainer = styled.div `
10
+ border-radius: 4px 0px 0px 4px;
11
+ height: 38px;
12
+ width: 40px;
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ cursor: pointer;
17
+ color: ${({ colorPalette }) => colorPalette.text.primary};
18
+ background: ${({ colorPalette }) => colorPalette.background.primary};
19
+ border-width: 1px;
20
+ border-style: solid;
21
+ border-color: ${({ colorPalette }) => colorPalette.border.primary};
22
22
  `;
23
- const MaximizeIcon = styled(FiMaximize) `
24
- width: 20px;
25
- height: 20px;
23
+ const MaximizeIcon = styled(FiMaximize) `
24
+ width: 20px;
25
+ height: 20px;
26
26
  `;
27
- const NoteArea = styled.textarea `
28
- border-color: ${({ colorPalette }) => colorPalette.border.primary};
29
- border-style: solid;
30
- border-width: 1px;
31
- padding: 8px 16px 0px 16px;
32
- height: 30px;
33
- width: 100%;
34
- min-height: 30px;
35
- resize: vertical;
36
- color: ${({ colorPalette }) => colorPalette.text.primary};
37
- background: ${({ colorPalette }) => colorPalette.background.primary};
38
- border-left: none;
39
- font-size: 16px;
40
- :focus-visible {
41
- max-height: 30px;
42
- }
43
- ${({ moreHorizon }) => moreHorizon && `border-right: none;`}
27
+ const NoteArea = styled.textarea `
28
+ border-color: ${({ colorPalette }) => colorPalette.border.primary};
29
+ border-style: solid;
30
+ border-width: 1px;
31
+ padding: 8px 16px 0px 16px;
32
+ height: 30px;
33
+ width: 100%;
34
+ min-height: 30px;
35
+ resize: vertical;
36
+ color: ${({ colorPalette }) => colorPalette.text.primary};
37
+ background: ${({ colorPalette }) => colorPalette.background.primary};
38
+ border-left: none;
39
+ font-size: 16px;
40
+ :focus-visible {
41
+ max-height: 30px;
42
+ }
43
+ ${({ moreHorizon }) => moreHorizon && `border-right: none;`}
44
44
  ${({ moreHorizon }) => moreHorizon &&
45
- `border-top-right-radius: 0px; border-bottom-right-radius: 0px;`}
45
+ `border-top-right-radius: 0px; border-bottom-right-radius: 0px;`}
46
46
  `;
47
47
  export const NoteFieldTextArea = forwardRef((props, ref) => {
48
48
  const { colorPalette, toggleFullScreenView, moreHorizon, ...textAreaProps } = props;