@factorearth/component-library 3.0.28 → 3.0.29
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/dist/Atoms/MoreHorizonButton/MoreHorizonButton.d.ts +4 -3
- package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +4 -3
- package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js.map +1 -1
- package/dist/Atoms/NumberField/NumberField.d.ts +9 -3
- package/dist/Atoms/NumberField/NumberField.js +79 -24
- package/dist/Atoms/NumberField/NumberField.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { CSSObject } from "@emotion/styled";
|
|
2
3
|
import { Colors } from "@../../Theme/types";
|
|
3
|
-
interface MoreHorizonButtonProps {
|
|
4
|
+
export interface MoreHorizonButtonProps {
|
|
4
5
|
colorPalette: Colors;
|
|
5
6
|
handleToggleHistory: () => void;
|
|
6
7
|
handleRefreshField: () => void;
|
|
8
|
+
styles?: CSSObject;
|
|
7
9
|
}
|
|
8
|
-
export declare const MoreHorizonButton: ({ colorPalette, handleToggleHistory, handleRefreshField, }: MoreHorizonButtonProps) => React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
+
export declare const MoreHorizonButton: ({ colorPalette, handleToggleHistory, handleRefreshField, styles, }: MoreHorizonButtonProps) => React.JSX.Element;
|
|
@@ -19,7 +19,7 @@ const MoreHorizonIcon = styled.div `
|
|
|
19
19
|
`;
|
|
20
20
|
const MoreHorizonContainer = styled.div `
|
|
21
21
|
display: flex;
|
|
22
|
-
height:
|
|
22
|
+
height: 14px;
|
|
23
23
|
width: 16px;
|
|
24
24
|
padding: 12px 8px;
|
|
25
25
|
align-items: center;
|
|
@@ -30,6 +30,7 @@ const MoreHorizonContainer = styled.div `
|
|
|
30
30
|
border-style: solid;
|
|
31
31
|
border-width: 1px;
|
|
32
32
|
background-color: ${({ colorPalette }) => colorPalette.background.primary};
|
|
33
|
+
${({ styles }) => styles && styles}
|
|
33
34
|
`;
|
|
34
35
|
const MoreHorizonOption = styled.div `
|
|
35
36
|
padding: 6px 12px;
|
|
@@ -62,7 +63,7 @@ const MoreHorizonMenu = styled.div `
|
|
|
62
63
|
z-index: 1000;
|
|
63
64
|
transform-origin: top left;
|
|
64
65
|
`;
|
|
65
|
-
export const MoreHorizonButton = ({ colorPalette, handleToggleHistory, handleRefreshField, }) => {
|
|
66
|
+
export const MoreHorizonButton = ({ colorPalette, handleToggleHistory, handleRefreshField, styles, }) => {
|
|
66
67
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
67
68
|
const [loading, setLoading] = useState(false);
|
|
68
69
|
const [yPosition, setYPosition] = useState("down");
|
|
@@ -104,7 +105,7 @@ export const MoreHorizonButton = ({ colorPalette, handleToggleHistory, handleRef
|
|
|
104
105
|
const toggleMenu = () => {
|
|
105
106
|
setMenuOpen(!menuOpen);
|
|
106
107
|
};
|
|
107
|
-
return (React.createElement(MoreHorizonContainer, { colorPalette: colorPalette, ref: buttonRef, onClick: toggleMenu, tabIndex: -1, onBlur: () => setMenuOpen(false) },
|
|
108
|
+
return (React.createElement(MoreHorizonContainer, { colorPalette: colorPalette, ref: buttonRef, onClick: toggleMenu, tabIndex: -1, onBlur: () => setMenuOpen(false), styles: styles },
|
|
108
109
|
React.createElement(MoreHorizonIcon, { menuOpen: menuOpen },
|
|
109
110
|
React.createElement(FiMoreVertical, { color: colorPalette.text.primary })),
|
|
110
111
|
React.createElement(MoreHorizonMenu, { menuOpen: menuOpen && !loading, colorPalette: colorPalette, ref: menuRef, yPosition: yPosition, xPosition: xPosition },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoreHorizonButton.js","sourceRoot":"","sources":["../../../lib/Atoms/MoreHorizonButton/MoreHorizonButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO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EAAE,YAAY,EAC1B,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,CAAC,CAAC,EACZ,MAAM,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EAChC,MAAM,EAAE,MAAM;QAEd,oBAAC,eAAe,IAAC,QAAQ,EAAE,QAAQ;YAClC,oBAAC,cAAc,IAAC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,GAAI,CACnC;QAClB,oBAAC,eAAe,IACf,QAAQ,EAAE,QAAQ,IAAI,CAAC,OAAO,EAC9B,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS;YAEpB,oBAAC,iBAAiB,IACjB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,mBAAmB;gBAE5B,oBAAC,OAAO,OAAG;0BAEQ;YACpB,oBAAC,eAAe,IAAC,YAAY,EAAE,YAAY,QAAqB;YAChE,oBAAC,iBAAiB,IACjB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,kBAAkB;gBAE3B,oBAAC,WAAW,OAAG;0BAEI,CACH,CACI,CACvB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { CSSObject } from "@emotion/styled";
|
|
2
3
|
import { Colors } from "Theme/types";
|
|
3
|
-
interface NumberFieldProps
|
|
4
|
+
interface NumberFieldProps {
|
|
4
5
|
colorPalette: Colors & string;
|
|
5
6
|
handleChange: (event: {
|
|
6
7
|
target: {
|
|
@@ -8,8 +9,13 @@ interface NumberFieldProps extends React.DetailedHTMLProps<React.InputHTMLAttrib
|
|
|
8
9
|
value: any;
|
|
9
10
|
};
|
|
10
11
|
}) => Promise<void>;
|
|
11
|
-
handleBlur
|
|
12
|
+
handleBlur?: (newValue?: string | number) => Promise<void>;
|
|
12
13
|
fromTable?: boolean;
|
|
14
|
+
value: string | number | undefined;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
styles?: CSSObject;
|
|
17
|
+
moreHorizon?: JSX.Element;
|
|
18
|
+
name?: string;
|
|
13
19
|
}
|
|
14
|
-
export declare const NumberField: (
|
|
20
|
+
export declare const NumberField: ({ colorPalette, handleChange, handleBlur, fromTable, value, placeholder, styles, moreHorizon, name, }: NumberFieldProps) => React.JSX.Element;
|
|
15
21
|
export {};
|
|
@@ -4,14 +4,17 @@ import { FiPlus, FiMinus } from "react-icons/fi";
|
|
|
4
4
|
const NumberFieldContainer = styled.div `
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
|
-
|
|
7
|
+
width: 100%;
|
|
8
|
+
${({ styles }) => styles && styles}
|
|
8
9
|
`;
|
|
9
10
|
const NumberInput = styled.input `
|
|
10
11
|
display: flex;
|
|
11
12
|
justify-content: center;
|
|
12
13
|
align-items: center;
|
|
13
14
|
text-align: center;
|
|
14
|
-
min-width:
|
|
15
|
+
min-width: 50px;
|
|
16
|
+
height: 38px;
|
|
17
|
+
width: 100%;
|
|
15
18
|
gap: 10px;
|
|
16
19
|
align-self: stretch;
|
|
17
20
|
color: ${({ color }) => color.text.primary};
|
|
@@ -23,16 +26,20 @@ const NumberInput = styled.input `
|
|
|
23
26
|
border-left: none;
|
|
24
27
|
border-radius: 0px;
|
|
25
28
|
padding: 0;
|
|
26
|
-
margin: 0;
|
|
27
29
|
&:focus-visible {
|
|
28
30
|
outline: none;
|
|
29
31
|
}
|
|
32
|
+
&::-webkit-inner-spin-button,
|
|
33
|
+
::-webkit-outer-spin-button {
|
|
34
|
+
-webkit-appearance: none;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
30
37
|
`;
|
|
31
38
|
const DecrementButton = styled.div `
|
|
32
39
|
cursor: pointer;
|
|
33
40
|
display: flex;
|
|
34
41
|
width: 16px;
|
|
35
|
-
height:
|
|
42
|
+
height: 22px;
|
|
36
43
|
padding: 8px 16px;
|
|
37
44
|
justify-content: center;
|
|
38
45
|
align-items: center;
|
|
@@ -47,7 +54,7 @@ const IncrementButton = styled.div `
|
|
|
47
54
|
cursor: pointer;
|
|
48
55
|
display: flex;
|
|
49
56
|
width: 16px;
|
|
50
|
-
height:
|
|
57
|
+
height: 22px;
|
|
51
58
|
padding: 8px 16px;
|
|
52
59
|
justify-content: center;
|
|
53
60
|
align-items: center;
|
|
@@ -56,27 +63,65 @@ const IncrementButton = styled.div `
|
|
|
56
63
|
border-color: ${({ color }) => color.border.primary};
|
|
57
64
|
background: ${({ color }) => color.background.primary};
|
|
58
65
|
color: ${({ color }) => color.text.primary};
|
|
59
|
-
border-
|
|
66
|
+
${({ moreHorizon }) => !moreHorizon && `border-radius: 0px 4px 4px 0px;`}
|
|
67
|
+
${({ moreHorizon }) => moreHorizon && `border-right: none;`}
|
|
60
68
|
`;
|
|
61
|
-
export const NumberField = (
|
|
62
|
-
const { colorPalette, handleChange, handleBlur, fromTable, value, placeholder, } = props;
|
|
69
|
+
export const NumberField = ({ colorPalette, handleChange, handleBlur, fromTable, value, placeholder, styles, moreHorizon, name, }) => {
|
|
63
70
|
const inputRef = useRef(null);
|
|
64
71
|
const [numberValue, setNumberValue] = useState(value ? Number(value) : "");
|
|
65
72
|
useEffect(() => {
|
|
66
73
|
setNumberValue(value ? Number(value) : "");
|
|
67
74
|
}, [value]);
|
|
68
75
|
const handleIncrement = () => {
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
let stepper = 0.1;
|
|
77
|
+
const event = {
|
|
78
|
+
target: {
|
|
79
|
+
name: inputRef.current?.name || "",
|
|
80
|
+
value: String(numberValue),
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
if (numberValue === "" || numberValue === undefined) {
|
|
84
|
+
event.target.value = "1";
|
|
85
|
+
setNumberValue(1);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
let newValue = Number(numberValue);
|
|
89
|
+
if (!String(newValue).includes(".")) {
|
|
90
|
+
stepper = 1;
|
|
91
|
+
newValue = newValue + stepper;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
newValue = (newValue + stepper).toFixed(1);
|
|
95
|
+
}
|
|
96
|
+
setNumberValue((newValue));
|
|
97
|
+
event.target.value = String((newValue));
|
|
98
|
+
}
|
|
73
99
|
handleChange(event);
|
|
74
100
|
};
|
|
75
101
|
const handleDecrement = () => {
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
102
|
+
let stepper = 0.1;
|
|
103
|
+
const event = {
|
|
104
|
+
target: {
|
|
105
|
+
name: inputRef.current?.name || "",
|
|
106
|
+
value: String(numberValue),
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
if (numberValue === "" || numberValue === undefined) {
|
|
110
|
+
event.target.value = "-1";
|
|
111
|
+
setNumberValue(-1);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
let newValue = Number(numberValue);
|
|
115
|
+
if (!String(newValue).includes(".")) {
|
|
116
|
+
stepper = 1;
|
|
117
|
+
newValue = newValue - stepper;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
newValue = (newValue - stepper).toFixed(1);
|
|
121
|
+
}
|
|
122
|
+
setNumberValue((newValue));
|
|
123
|
+
event.target.value = String((newValue));
|
|
124
|
+
}
|
|
80
125
|
handleChange(event);
|
|
81
126
|
};
|
|
82
127
|
const handleFocus = () => {
|
|
@@ -89,15 +134,25 @@ export const NumberField = (props) => {
|
|
|
89
134
|
}
|
|
90
135
|
};
|
|
91
136
|
const handleNumberChange = (e) => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
137
|
+
if (!e.target.value.match(/^[\+\-]?\d+(\.\d*)?([eE][\+\-]?\d+)?$/)) {
|
|
138
|
+
setNumberValue("");
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
setNumberValue(e.target.value);
|
|
143
|
+
handleChange(e);
|
|
144
|
+
}
|
|
95
145
|
};
|
|
96
|
-
return (React.createElement(NumberFieldContainer, { color: colorPalette },
|
|
97
|
-
React.createElement(DecrementButton, { color: colorPalette, onClick: handleDecrement, tabIndex: -1, onBlur: () => {
|
|
146
|
+
return (React.createElement(NumberFieldContainer, { color: colorPalette, styles: styles },
|
|
147
|
+
React.createElement(DecrementButton, { color: colorPalette, onClick: handleDecrement, tabIndex: -1, onBlur: () => {
|
|
148
|
+
handleBlur && handleBlur(inputRef.current?.value || "");
|
|
149
|
+
} },
|
|
98
150
|
React.createElement(FiMinus, null)),
|
|
99
|
-
React.createElement(NumberInput, { name:
|
|
100
|
-
React.createElement(IncrementButton, { color: colorPalette, onClick: handleIncrement, tabIndex: -1, onBlur: () => {
|
|
101
|
-
|
|
151
|
+
React.createElement(NumberInput, { name: name, value: numberValue, onChange: handleNumberChange, onBlur: (e) => handleBlur && handleBlur(e.target.value), color: colorPalette, ref: inputRef, onFocus: handleFocus, placeholder: placeholder, pattern: "^\\d+$", type: "text" }),
|
|
152
|
+
React.createElement(IncrementButton, { color: colorPalette, onClick: handleIncrement, tabIndex: -1, onBlur: () => {
|
|
153
|
+
handleBlur && handleBlur(inputRef.current?.value || "");
|
|
154
|
+
}, moreHorizon: moreHorizon ? true : false },
|
|
155
|
+
React.createElement(FiPlus, null)),
|
|
156
|
+
moreHorizon && moreHorizon));
|
|
102
157
|
};
|
|
103
158
|
//# sourceMappingURL=NumberField.js.map
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../../../lib/Atoms/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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AC,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACvD,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAC,QAAO,EACf,IAAI,EAAC,MAAM,GACV;QACF,oBAAC,eAAe,IACf,KAAK,EAAE,YAAY,EACnB,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorearth/component-library",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.29",
|
|
4
4
|
"description": " A storybook component library for FactorEarth",
|
|
5
5
|
"author": "madtrx <marlin.makori@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"access": "public",
|
|
46
46
|
"registry": "https://registry.npmjs.org/"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3664c694fc94ac7fd8c9e86d15fbf0ac9e1a5a63",
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@emotion/react": "^11.13.0",
|
|
51
51
|
"@emotion/styled": "^11.13.0",
|