@griddo/ax 1.61.3 → 1.61.4
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/package.json +2 -2
- package/src/components/Fields/AnalyticsField/PageAnalytics/index.tsx +1 -0
- package/src/components/Fields/AnalyticsField/StructuredDataAnalytics/index.tsx +1 -0
- package/src/components/Fields/MultiCheckSelect/index.tsx +14 -2
- package/src/components/Fields/MultiCheckSelect/style.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "1.61.
|
|
4
|
+
"version": "1.61.4",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -244,5 +244,5 @@
|
|
|
244
244
|
"publishConfig": {
|
|
245
245
|
"access": "public"
|
|
246
246
|
},
|
|
247
|
-
"gitHead": "
|
|
247
|
+
"gitHead": "aa12a8c88585c5a1d5be471c31175722833abfe8"
|
|
248
248
|
}
|
|
@@ -128,6 +128,7 @@ const PageAnalytics = (props: IAnalyticsFieldProps): JSX.Element => {
|
|
|
128
128
|
onChange={handleDimensionsSelect}
|
|
129
129
|
selectAllOption="all"
|
|
130
130
|
placeholder="Select Dimensions"
|
|
131
|
+
floating
|
|
131
132
|
/>
|
|
132
133
|
{!!state.dimensionsSelect && <DimensionsSelection {...{ analytics, state, setDimension }} />}
|
|
133
134
|
</>
|
|
@@ -78,6 +78,7 @@ const StructuredDataAnalytics = (props: IAnalyticsFieldProps): JSX.Element => {
|
|
|
78
78
|
onChange={handleDimensionsSelect}
|
|
79
79
|
selectAllOption="all"
|
|
80
80
|
placeholder="Select Dimensions"
|
|
81
|
+
floating
|
|
81
82
|
/>
|
|
82
83
|
{!!state.dimensionsSelect && <DimensionsSelection {...{ analytics, state, setDimension }} />}
|
|
83
84
|
</>
|
|
@@ -6,7 +6,18 @@ import { AsyncCheckGroup, CheckGroup } from "@ax/components";
|
|
|
6
6
|
import * as S from "./style";
|
|
7
7
|
|
|
8
8
|
const MultiCheckSelect = (props: IProps) => {
|
|
9
|
-
const {
|
|
9
|
+
const {
|
|
10
|
+
placeholder,
|
|
11
|
+
source,
|
|
12
|
+
value,
|
|
13
|
+
onChange,
|
|
14
|
+
site,
|
|
15
|
+
className,
|
|
16
|
+
mandatory,
|
|
17
|
+
options,
|
|
18
|
+
selectAllOption,
|
|
19
|
+
floating,
|
|
20
|
+
} = props;
|
|
10
21
|
|
|
11
22
|
const [isOpen, setIsOpen] = useState(false);
|
|
12
23
|
|
|
@@ -20,7 +31,7 @@ const MultiCheckSelect = (props: IProps) => {
|
|
|
20
31
|
{placeholder} <Asterisk />
|
|
21
32
|
</S.Field>
|
|
22
33
|
{isOpen && (
|
|
23
|
-
<S.DropDown>
|
|
34
|
+
<S.DropDown floating={floating}>
|
|
24
35
|
{options && (
|
|
25
36
|
<CheckGroup
|
|
26
37
|
options={options}
|
|
@@ -53,6 +64,7 @@ interface IProps {
|
|
|
53
64
|
mandatory?: boolean;
|
|
54
65
|
options?: { name: string, value: string, title: string }[];
|
|
55
66
|
selectAllOption?: string;
|
|
67
|
+
floating?: boolean;
|
|
56
68
|
}
|
|
57
69
|
|
|
58
70
|
export default memo(MultiCheckSelect);
|
|
@@ -40,7 +40,7 @@ const Field = styled.div<{isOpen: boolean}>`
|
|
|
40
40
|
}
|
|
41
41
|
`;
|
|
42
42
|
|
|
43
|
-
const DropDown = styled.div
|
|
43
|
+
const DropDown = styled.div<{ floating?: boolean }>`
|
|
44
44
|
background-color: ${p => p.theme.color.uiBarBackground};
|
|
45
45
|
border: 1px solid ${p => p.theme.color.uiLine};
|
|
46
46
|
border-radius: ${p => p.theme.radii.s};
|
|
@@ -49,7 +49,7 @@ const DropDown = styled.div`
|
|
|
49
49
|
z-index: 2;
|
|
50
50
|
max-height: 130px;
|
|
51
51
|
overflow: auto;
|
|
52
|
-
position: absolute;
|
|
52
|
+
position: ${(p) => p.floating ? "absolute" : "block"};
|
|
53
53
|
`;
|
|
54
54
|
|
|
55
55
|
const Asterisk = styled.span`
|