@bikdotai/bik-component-library 0.0.239-beta.1 → 0.0.239
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/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.d.ts +2 -2
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.d.ts +4 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.d.ts +4 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.d.ts +1 -0
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts +5 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.d.ts +2 -0
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -0
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +14 -6
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +2 -0
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +79 -0
- package/dist/cjs/components/QueryBuilder/helpers/OperatorHelperV2.d.ts +7 -0
- package/dist/cjs/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +28 -0
- package/dist/cjs/components/QueryBuilder/helpers/SegmentHelperV2.d.ts +140 -0
- package/dist/cjs/components/QueryBuilder/helpers/SegmentValidator.d.ts +75 -0
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +3 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +15 -6
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +1 -0
- package/dist/cjs/components/accordion/Accordion.d.ts +3 -0
- package/dist/cjs/components/accordion/Accordion.js +1 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +2 -0
- package/dist/cjs/components/accordion/Accordion.style.js +8 -4
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +1 -2
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +2 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +1 -0
- package/dist/cjs/components/bik-layout/BikHeader.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +4 -0
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.d.ts +1 -0
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -0
- package/dist/cjs/components/button/themes.d.ts +1 -1
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/checkBox/CheckBox.js +1 -1
- package/dist/cjs/components/country-code-picker/CountryCodePicker.js +1 -1
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/cjs/components/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
- package/dist/cjs/components/dropdown/hooks/useDropdown.d.ts +41 -0
- package/dist/cjs/components/dropdown/hooks/useDropdown.js +1 -0
- package/dist/cjs/components/dropdown/index.d.ts +2 -1
- package/dist/cjs/components/dropdown/type.d.ts +1 -0
- package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
- package/dist/cjs/components/dynamic-tabs/DynamicTabs.d.ts +19 -0
- package/dist/cjs/components/dynamic-tabs/DynamicTabs.js +1 -0
- package/dist/cjs/components/dynamic-tabs/index.d.ts +1 -0
- package/dist/cjs/components/input/Input.d.ts +2 -0
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.d.ts +1 -0
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/product-picker-v2/modal.js +1 -1
- package/dist/cjs/components/searchBar/searchBar.d.ts +1 -0
- package/dist/cjs/components/searchBar/searchBar.js +1 -1
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.d.ts +6 -4
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -0
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +2 -2
- package/dist/cjs/components/side-modal/SideModal.d.ts +14 -0
- package/dist/cjs/components/side-modal/SideModal.js +1 -0
- package/dist/cjs/components/side-modal/SideModal.style.d.ts +12 -0
- package/dist/cjs/components/side-modal/SideModal.style.js +54 -0
- package/dist/cjs/components/side-modal/index.d.ts +1 -0
- package/dist/cjs/components/stepper/Stepper.d.ts +1 -0
- package/dist/cjs/components/stepper/Stepper.js +1 -1
- package/dist/cjs/components/stepper/Stepper.styled.d.ts +1 -0
- package/dist/cjs/components/stepper/Stepper.styled.js +5 -5
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.d.ts +2 -2
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.d.ts +4 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +1 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.d.ts +4 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +1 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.d.ts +1 -0
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Base/BaseQueryBuilderNode.d.ts +5 -1
- package/dist/esm/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.d.ts +2 -0
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -0
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +14 -6
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +2 -0
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +79 -0
- package/dist/esm/components/QueryBuilder/helpers/OperatorHelperV2.d.ts +7 -0
- package/dist/esm/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +28 -0
- package/dist/esm/components/QueryBuilder/helpers/SegmentHelperV2.d.ts +140 -0
- package/dist/esm/components/QueryBuilder/helpers/SegmentValidator.d.ts +75 -0
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +3 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +15 -6
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +1 -0
- package/dist/esm/components/accordion/Accordion.d.ts +3 -0
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +2 -0
- package/dist/esm/components/accordion/Accordion.style.js +8 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +1 -2
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +2 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +1 -1
- package/dist/esm/components/bik-layout/BikHeader.d.ts +1 -0
- package/dist/esm/components/bik-layout/BikHeader.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +4 -0
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.d.ts +1 -0
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -0
- package/dist/esm/components/button/themes.d.ts +1 -1
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/checkBox/CheckBox.js +1 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.js +1 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/esm/components/dropdown/Dropdown.js +1 -1
- package/dist/esm/components/dropdown/MenuItem/MenuItem.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +2 -2
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +1 -0
- package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.js +1 -1
- package/dist/esm/components/dropdown/hooks/useDropdown.d.ts +41 -0
- package/dist/esm/components/dropdown/hooks/useDropdown.js +1 -0
- package/dist/esm/components/dropdown/index.d.ts +2 -1
- package/dist/esm/components/dropdown/type.d.ts +1 -0
- package/dist/esm/components/dropdown-button/DropdownButton.js +1 -1
- package/dist/esm/components/dynamic-tabs/DynamicTabs.d.ts +19 -0
- package/dist/esm/components/dynamic-tabs/DynamicTabs.js +1 -0
- package/dist/esm/components/dynamic-tabs/index.d.ts +1 -0
- package/dist/esm/components/input/Input.d.ts +2 -0
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.d.ts +1 -0
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/searchBar/searchBar.d.ts +1 -0
- package/dist/esm/components/searchBar/searchBar.js +1 -1
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.d.ts +6 -4
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.js +1 -1
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +2 -0
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.js +2 -2
- package/dist/esm/components/side-modal/SideModal.d.ts +14 -0
- package/dist/esm/components/side-modal/SideModal.js +1 -0
- package/dist/esm/components/side-modal/SideModal.style.d.ts +12 -0
- package/dist/esm/components/side-modal/SideModal.style.js +54 -0
- package/dist/esm/components/side-modal/index.d.ts +1 -0
- package/dist/esm/components/stepper/Stepper.d.ts +1 -0
- package/dist/esm/components/stepper/Stepper.js +1 -1
- package/dist/esm/components/stepper/Stepper.styled.d.ts +1 -0
- package/dist/esm/components/stepper/Stepper.styled.js +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DATE_OPERATORS } from '../types';
|
|
2
|
+
import { QueryBuilderMeta } from '../types/QueryBuilder.type';
|
|
3
|
+
export declare const lastDaysRegexPattern: RegExp;
|
|
4
|
+
export declare const notLastDaysRegexPattern: RegExp;
|
|
5
|
+
export declare const inBetweenLast: RegExp;
|
|
6
|
+
export declare const notInBetweenLast: RegExp;
|
|
7
|
+
export declare const exactly: RegExp;
|
|
8
|
+
export declare const notExactly: RegExp;
|
|
9
|
+
export declare class MetaCustomProcessor {
|
|
10
|
+
prepareDateMeta(meta: QueryBuilderMeta): QueryBuilderMeta | {
|
|
11
|
+
value: {
|
|
12
|
+
operator: string;
|
|
13
|
+
value: any[];
|
|
14
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
15
|
+
};
|
|
16
|
+
key: string;
|
|
17
|
+
refresh?: boolean | undefined;
|
|
18
|
+
error: {
|
|
19
|
+
key?: string | undefined;
|
|
20
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
value: {
|
|
24
|
+
operator: string;
|
|
25
|
+
value: any[];
|
|
26
|
+
offset: any[];
|
|
27
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
28
|
+
};
|
|
29
|
+
key: string;
|
|
30
|
+
refresh?: boolean | undefined;
|
|
31
|
+
error: {
|
|
32
|
+
key?: string | undefined;
|
|
33
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
value: {
|
|
37
|
+
operator: string;
|
|
38
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
39
|
+
value?: string | number | string[] | number[] | Date | Date[] | undefined;
|
|
40
|
+
};
|
|
41
|
+
key: string;
|
|
42
|
+
refresh?: boolean | undefined;
|
|
43
|
+
error: {
|
|
44
|
+
key?: string | undefined;
|
|
45
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/** @edit */
|
|
49
|
+
normalizeDateMeta(meta: QueryBuilderMeta): QueryBuilderMeta | {
|
|
50
|
+
value: {
|
|
51
|
+
operator: DATE_OPERATORS;
|
|
52
|
+
value: {
|
|
53
|
+
type: string | undefined;
|
|
54
|
+
start: any;
|
|
55
|
+
/** @ts-ignore offset-start is BE only type, happens in type-less way */
|
|
56
|
+
offset: any;
|
|
57
|
+
};
|
|
58
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
59
|
+
};
|
|
60
|
+
key: string;
|
|
61
|
+
refresh?: boolean | undefined;
|
|
62
|
+
error: {
|
|
63
|
+
key?: string | undefined;
|
|
64
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
value: {
|
|
68
|
+
value: any[];
|
|
69
|
+
operator: DATE_OPERATORS;
|
|
70
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
71
|
+
};
|
|
72
|
+
key: string;
|
|
73
|
+
refresh?: boolean | undefined;
|
|
74
|
+
error: {
|
|
75
|
+
key?: string | undefined;
|
|
76
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseQueryBuilderNode, QueryBuilderProperty } from '../types/QueryBuilder.type';
|
|
2
|
+
export declare class OperatorHelperV2 {
|
|
3
|
+
convertBetweenOperator(property: QueryBuilderProperty): QueryBuilderProperty | QueryBuilderProperty[];
|
|
4
|
+
convertNotBetweenOperator(property: QueryBuilderProperty): QueryBuilderProperty | QueryBuilderProperty[];
|
|
5
|
+
/** @unused */
|
|
6
|
+
breakUserPropertyNodeBasedOperator(userPropertyNode: BaseQueryBuilderNode): BaseQueryBuilderNode | BaseQueryBuilderNode[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QueryBuilderProperty } from '../types/QueryBuilder.type';
|
|
2
|
+
export declare class PropertyCustomProcessor {
|
|
3
|
+
/** @unused */
|
|
4
|
+
prepareBetween(property: QueryBuilderProperty): QueryBuilderProperty | QueryBuilderProperty[];
|
|
5
|
+
prepareBoolean(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
6
|
+
prepareDate(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
7
|
+
prepareInteger(property: QueryBuilderProperty): {
|
|
8
|
+
_id: string;
|
|
9
|
+
name?: string | number | undefined;
|
|
10
|
+
dataType?: import("../types/QueryBuilder.type").QueryBuilderConnectorType | undefined;
|
|
11
|
+
operator?: import("..").CONNECTOR_OPERATORS | undefined;
|
|
12
|
+
value?: import("..").CONNECTOR_VALUE_TYPE;
|
|
13
|
+
_refresh?: boolean | undefined;
|
|
14
|
+
error: {
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
dataType?: string | undefined;
|
|
17
|
+
operator?: string | undefined;
|
|
18
|
+
value?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
prepareIsAndIsNot(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
22
|
+
/** @edit */
|
|
23
|
+
normalizeIsAndIsNotOperator(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
24
|
+
/** @edit */
|
|
25
|
+
normalizeBoolean(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
26
|
+
/** @edit */
|
|
27
|
+
normalizeInteger(property: QueryBuilderProperty): QueryBuilderProperty;
|
|
28
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { QueryBuilderMeta, QueryBuilderRoot } from '../types';
|
|
2
|
+
import { QueryBuilderType } from '../types/QueryBuilder.type';
|
|
3
|
+
type SegmentBuilder = {
|
|
4
|
+
exclude?: QueryBuilderRoot;
|
|
5
|
+
include: QueryBuilderRoot;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @frontend
|
|
10
|
+
*/
|
|
11
|
+
export declare class SegmentHelperV2 {
|
|
12
|
+
private prepareNode;
|
|
13
|
+
prepare(v2: SegmentBuilder): SegmentBuilder;
|
|
14
|
+
private editNode;
|
|
15
|
+
edit(v2: SegmentBuilder): {
|
|
16
|
+
name: string | undefined;
|
|
17
|
+
include: {
|
|
18
|
+
nodes: {
|
|
19
|
+
metas: (QueryBuilderMeta | {
|
|
20
|
+
value: {
|
|
21
|
+
operator: import("../types").DATE_OPERATORS;
|
|
22
|
+
value: {
|
|
23
|
+
type: string | undefined;
|
|
24
|
+
start: any;
|
|
25
|
+
offset: any;
|
|
26
|
+
};
|
|
27
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
28
|
+
};
|
|
29
|
+
key: string;
|
|
30
|
+
refresh?: boolean | undefined;
|
|
31
|
+
error: {
|
|
32
|
+
key?: string | undefined;
|
|
33
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
value: {
|
|
37
|
+
value: any[];
|
|
38
|
+
operator: import("../types").DATE_OPERATORS;
|
|
39
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
40
|
+
};
|
|
41
|
+
key: string;
|
|
42
|
+
refresh?: boolean | undefined;
|
|
43
|
+
error: {
|
|
44
|
+
key?: string | undefined;
|
|
45
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
46
|
+
};
|
|
47
|
+
})[];
|
|
48
|
+
properties: import("../types").QueryBuilderPropertyType[];
|
|
49
|
+
_id: string;
|
|
50
|
+
type: QueryBuilderType;
|
|
51
|
+
isExclude?: boolean | undefined;
|
|
52
|
+
PropertyOperator?: import("../types").QueryBuilderJoinOperators | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
operator: import("../types").QueryBuilderJoinOperators | undefined;
|
|
55
|
+
};
|
|
56
|
+
exclude: {
|
|
57
|
+
nodes: {
|
|
58
|
+
metas: (QueryBuilderMeta | {
|
|
59
|
+
value: {
|
|
60
|
+
operator: import("../types").DATE_OPERATORS;
|
|
61
|
+
value: {
|
|
62
|
+
type: string | undefined;
|
|
63
|
+
start: any;
|
|
64
|
+
offset: any;
|
|
65
|
+
};
|
|
66
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
67
|
+
};
|
|
68
|
+
key: string;
|
|
69
|
+
refresh?: boolean | undefined;
|
|
70
|
+
error: {
|
|
71
|
+
key?: string | undefined;
|
|
72
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
value: {
|
|
76
|
+
value: any[];
|
|
77
|
+
operator: import("../types").DATE_OPERATORS;
|
|
78
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
79
|
+
};
|
|
80
|
+
key: string;
|
|
81
|
+
refresh?: boolean | undefined;
|
|
82
|
+
error: {
|
|
83
|
+
key?: string | undefined;
|
|
84
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
85
|
+
};
|
|
86
|
+
})[];
|
|
87
|
+
properties: import("../types").QueryBuilderPropertyType[];
|
|
88
|
+
_id: string;
|
|
89
|
+
type: QueryBuilderType;
|
|
90
|
+
isExclude?: boolean | undefined;
|
|
91
|
+
PropertyOperator?: import("../types").QueryBuilderJoinOperators | undefined;
|
|
92
|
+
}[];
|
|
93
|
+
operator: import("../types").QueryBuilderJoinOperators | undefined;
|
|
94
|
+
};
|
|
95
|
+
} | {
|
|
96
|
+
name: string | undefined;
|
|
97
|
+
include: {
|
|
98
|
+
nodes: {
|
|
99
|
+
metas: (QueryBuilderMeta | {
|
|
100
|
+
value: {
|
|
101
|
+
operator: import("../types").DATE_OPERATORS;
|
|
102
|
+
value: {
|
|
103
|
+
type: string | undefined;
|
|
104
|
+
start: any;
|
|
105
|
+
offset: any;
|
|
106
|
+
};
|
|
107
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
108
|
+
};
|
|
109
|
+
key: string;
|
|
110
|
+
refresh?: boolean | undefined;
|
|
111
|
+
error: {
|
|
112
|
+
key?: string | undefined;
|
|
113
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
114
|
+
};
|
|
115
|
+
} | {
|
|
116
|
+
value: {
|
|
117
|
+
value: any[];
|
|
118
|
+
operator: import("../types").DATE_OPERATORS;
|
|
119
|
+
dataType: import("../types").QueryBuilderConnectorType;
|
|
120
|
+
};
|
|
121
|
+
key: string;
|
|
122
|
+
refresh?: boolean | undefined;
|
|
123
|
+
error: {
|
|
124
|
+
key?: string | undefined;
|
|
125
|
+
value?: string | import("../types").ConnectorError | undefined;
|
|
126
|
+
};
|
|
127
|
+
})[];
|
|
128
|
+
properties: import("../types").QueryBuilderPropertyType[];
|
|
129
|
+
_id: string;
|
|
130
|
+
type: QueryBuilderType;
|
|
131
|
+
isExclude?: boolean | undefined;
|
|
132
|
+
PropertyOperator?: import("../types").QueryBuilderJoinOperators | undefined;
|
|
133
|
+
}[];
|
|
134
|
+
operator: import("../types").QueryBuilderJoinOperators | undefined;
|
|
135
|
+
};
|
|
136
|
+
exclude?: undefined;
|
|
137
|
+
};
|
|
138
|
+
containsError(v2: SegmentBuilder): string | undefined;
|
|
139
|
+
}
|
|
140
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { QueryBuilderRoot } from '../types';
|
|
2
|
+
import { QueryBuilderConnector, QueryBuilderMeta, QueryBuilderProperty } from '../types/QueryBuilder.type';
|
|
3
|
+
type SegmentBuilder = {
|
|
4
|
+
exclude?: QueryBuilderRoot;
|
|
5
|
+
include: QueryBuilderRoot;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const POSITIVE_VAL_ERROR = "Please enter a positive integer";
|
|
9
|
+
export declare const NON_ZERO_VAL = "Enter a positive value";
|
|
10
|
+
export declare const INTEGER_ERROR = "Please enter an integer";
|
|
11
|
+
export declare const REQUIRED_VALUE = "Required field";
|
|
12
|
+
export declare const NON_DECIMAL_NUMBER = "Please enter a non-decimal number";
|
|
13
|
+
export declare const COMMA_SEPERATED_VALUES = "Please enter values seperated by commas";
|
|
14
|
+
export declare const LESS_THAN_180_DAYS = "Please enter values less than 180 days";
|
|
15
|
+
export declare class SegmentValidator {
|
|
16
|
+
validate(stateArg: SegmentBuilder): (boolean | {
|
|
17
|
+
include: QueryBuilderRoot;
|
|
18
|
+
exclude?: QueryBuilderRoot | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
})[];
|
|
21
|
+
validateMeta(meta: QueryBuilderMeta, onErr?: () => void): {
|
|
22
|
+
error: {
|
|
23
|
+
value: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
key: string;
|
|
28
|
+
value: string | QueryBuilderConnector;
|
|
29
|
+
refresh?: boolean | undefined;
|
|
30
|
+
} | {
|
|
31
|
+
error: {
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
key: string;
|
|
35
|
+
value: string | QueryBuilderConnector;
|
|
36
|
+
refresh?: boolean | undefined;
|
|
37
|
+
} | {
|
|
38
|
+
error: undefined;
|
|
39
|
+
key: string;
|
|
40
|
+
value: string | QueryBuilderConnector;
|
|
41
|
+
refresh?: boolean | undefined;
|
|
42
|
+
};
|
|
43
|
+
validateProperty(property: QueryBuilderProperty, onErr?: () => void): {
|
|
44
|
+
error: {
|
|
45
|
+
name: string;
|
|
46
|
+
value?: undefined;
|
|
47
|
+
};
|
|
48
|
+
_id: string;
|
|
49
|
+
name?: string | number | undefined;
|
|
50
|
+
dataType?: import("../types").QueryBuilderConnectorType | undefined;
|
|
51
|
+
operator?: import("../types").CONNECTOR_OPERATORS | undefined;
|
|
52
|
+
value?: import("../types").CONNECTOR_VALUE_TYPE;
|
|
53
|
+
_refresh?: boolean | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
error: {
|
|
56
|
+
value: string;
|
|
57
|
+
name?: undefined;
|
|
58
|
+
};
|
|
59
|
+
_id: string;
|
|
60
|
+
name?: string | number | undefined;
|
|
61
|
+
dataType?: import("../types").QueryBuilderConnectorType | undefined;
|
|
62
|
+
operator?: import("../types").CONNECTOR_OPERATORS | undefined;
|
|
63
|
+
value?: import("../types").CONNECTOR_VALUE_TYPE;
|
|
64
|
+
_refresh?: boolean | undefined;
|
|
65
|
+
} | {
|
|
66
|
+
error: undefined;
|
|
67
|
+
_id: string;
|
|
68
|
+
name?: string | number | undefined;
|
|
69
|
+
dataType?: import("../types").QueryBuilderConnectorType | undefined;
|
|
70
|
+
operator?: import("../types").CONNECTOR_OPERATORS | undefined;
|
|
71
|
+
value?: import("../types").CONNECTOR_VALUE_TYPE;
|
|
72
|
+
_refresh?: boolean | undefined;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export type ConnectorComponentProps = {
|
|
|
19
19
|
nativeID?: string;
|
|
20
20
|
isLoading?: boolean;
|
|
21
21
|
disabled?: boolean;
|
|
22
|
+
onSearch?: (searchKey: string) => Promise<DropdownOption[]>;
|
|
22
23
|
};
|
|
23
24
|
export type ConnectorProps = {
|
|
24
25
|
isLoading?: boolean;
|
|
@@ -38,8 +39,9 @@ export type ConnectorProps = {
|
|
|
38
39
|
};
|
|
39
40
|
testID?: string;
|
|
40
41
|
disabled?: boolean;
|
|
42
|
+
onSearch?: (searchKey: string) => Promise<DropdownOption[]>;
|
|
41
43
|
};
|
|
42
|
-
export type CONNECTOR_VALUE_TYPE = string[] | number | Date[] | Date | number[] | number | undefined | /** for multiselect */ QueryBuilderAPIData[] | IG_VALUE[];
|
|
44
|
+
export type CONNECTOR_VALUE_TYPE = object | string[] | string | number | Date[] | Date | number[] | number | undefined | /** for multiselect */ QueryBuilderAPIData[] | IG_VALUE[];
|
|
43
45
|
type IG_VALUE = {
|
|
44
46
|
imageUrl: string;
|
|
45
47
|
redirectionUrl: string;
|
|
@@ -48,18 +48,27 @@ export declare enum REACTION_OPERATORS {
|
|
|
48
48
|
contains = "contains"
|
|
49
49
|
}
|
|
50
50
|
export declare enum DATE_OPERATORS {
|
|
51
|
+
today = "today",
|
|
52
|
+
yesterday = "yesterday",
|
|
53
|
+
'last 7 days' = "last 7 days",
|
|
54
|
+
'last 30 days' = "last 30 days",
|
|
55
|
+
'this week' = "this week",
|
|
56
|
+
'last week' = "last week",
|
|
57
|
+
'this month' = "this month",
|
|
58
|
+
'last month' = "last month",
|
|
59
|
+
'exactly' = "exactly",
|
|
60
|
+
'not exactly' = "not exactly",
|
|
61
|
+
'in the last' = "in the last",
|
|
62
|
+
'not in the last' = "not in the last",
|
|
63
|
+
'in between last' = "in between last",
|
|
64
|
+
'not in between last' = "not in between last",
|
|
51
65
|
on = "on",
|
|
52
66
|
notOn = "notOn",
|
|
53
67
|
inBetween = "inBetween",
|
|
54
68
|
notInBetween = "notInBetween",
|
|
55
69
|
before = "before",
|
|
56
70
|
after = "after",
|
|
57
|
-
|
|
58
|
-
yesterday = "yesterday",
|
|
59
|
-
'last week' = "last week",
|
|
60
|
-
'last month' = "last month",
|
|
61
|
-
'last quarter' = "last quarter",
|
|
62
|
-
'in the last' = "in the last"
|
|
71
|
+
'last quarter' = "last quarter"
|
|
63
72
|
}
|
|
64
73
|
export declare enum BOOLEAN_OPERATORS {
|
|
65
74
|
isTrue = "isTrue",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,
|
|
1
|
+
var t,e,n,s,i,a,o,l,r,u,c,d,h;!function(t){t.is="is",t.isNot="isNot",t.exists="exists",t.doesntExist="doesntExist",t.lessThan="lessThan",t.lessThanOrEqualTo="lessThanOrEqualTo",t.greaterThan="greaterThan",t.greaterThanOrEqualTo="greaterThanOrEqualTo"}(t||(t={})),function(t){t.is="is",t.isNot="isNot",t.contains="contains",t.doesntContain="doesntContain",t.startsWith="startsWith",t.endsWith="endsWith",t.exists="exists",t.doesntExist="doesntExist"}(e||(e={})),function(t){t.any="any",t.is="is",t.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith"}(n||(n={})),function(t){t.is="is"}(s||(s={})),function(t){t.in="in"}(i||(i={})),function(t){t.is="is"}(a||(a={})),function(t){t.in="in"}(o||(o={})),function(t){t.in="in"}(l||(l={})),function(t){t.contains="contains"}(r||(r={})),function(t){t.today="today",t.yesterday="yesterday",t["last 7 days"]="last 7 days",t["last 30 days"]="last 30 days",t["this week"]="this week",t["last week"]="last week",t["this month"]="this month",t["last month"]="last month",t.exactly="exactly",t["not exactly"]="not exactly",t["in the last"]="in the last",t["not in the last"]="not in the last",t["in between last"]="in between last",t["not in between last"]="not in between last",t.on="on",t.notOn="notOn",t.inBetween="inBetween",t.notInBetween="notInBetween",t.before="before",t.after="after",t["last quarter"]="last quarter"}(u||(u={})),function(t){t.isTrue="isTrue",t.isFalse="isFalse",t.exists="exists",t.doesntExist="doesntExist"}(c||(c={})),function(t){t.exactly="exactly",t.atleast="atleast",t.atMost="atMost"}(d||(d={})),function(t){t.FreeText="FreeText",t.NoInput="NoInput",t.IntegerSingleValue="IntegerSingleValue",t.StringSingleValue="StringSingleValue",t.TwoNumberInputsSeperatedByAnd="TwoNumberInputsSeperatedByAnd",t.MultiselectDropdownFreeText="MultiselectDropdownFreeText",t.SingleselectDropdownFreeText="SingleselectDropdownFreeText",t.SingleDate="SingleDate",t.TwoDate="TwoDate",t.IntegerPositiveSingle="IntegerPositiveSingle",t.NumberTime="NumberTime"}(h||(h={}));export{s as AD_STRING_OPERATORS,l as ANY_AD_OPERATORS,o as ANY_IG_OPERATORS,c as BOOLEAN_OPERATORS,u as DATE_OPERATORS,h as EVENT_VALUES,d as FREQUENCY_OPERATORS,a as ICE_BREAKER_OPERATORS,n as IG_STRING_OPERATORS,t as INTEGER_OPERATORS,r as REACTION_OPERATORS,i as SPECIFIC_IG_OPERATORS,e as STRING_OPERATORS};
|
|
@@ -16,4 +16,5 @@ export type QueryBuilderPropertyProps = {
|
|
|
16
16
|
}>;
|
|
17
17
|
onPropertyOperatorChange?: (option: CONNECTOR_OPERATORS, property: QueryBuilderProperty) => void;
|
|
18
18
|
onPropertyValueChange?: (value: CONNECTOR_VALUE_TYPE | /** for multiselect */ QueryBuilderAPIData[], property: QueryBuilderProperty) => void;
|
|
19
|
+
onPropertyValueSearch?: (searchKey: string, property: QueryBuilderProperty) => Promise<DropdownOption[]>;
|
|
19
20
|
};
|
|
@@ -9,5 +9,8 @@ export interface AccordionProps {
|
|
|
9
9
|
skipHoverHeader?: boolean;
|
|
10
10
|
headerPadding?: string;
|
|
11
11
|
childrenPadding?: string;
|
|
12
|
+
showBorders?: boolean;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
refresh?: number | boolean;
|
|
12
15
|
}
|
|
13
16
|
export declare const BikAccordion: React.FC<AccordionProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t}from"react";import{TitleRegular as i,BodySecondary as
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useEffect as o}from"react";import{TitleRegular as i,BodySecondary as c}from"../TypographyStyle.js";import a from"./Accordion.style.js";import s from"./AccordionArrow.js";const l=l=>{var d;const[h,u]=n(!1),v=t(null),g=t(null),m=(e,r)=>{g.current&&v.current&&("keydown"===r.type&&"Enter"!==r.key||(u(e),g.current.style.maxHeight?(g.current.style.maxHeight="",v.current.style.transform="rotate(0deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="padding 0s"):(g.current.style.maxHeight=g.current.scrollHeight+"px",v.current.style.transform="rotate(180deg)",v.current.style.transition="transform 0.25s ease-in-out",g.current.style.transition="max-height 0.25s ease-in-out")))};return o((()=>{var e;h&&(null==l?void 0:l.refresh)&&(null===(e=null==g?void 0:g.current)||void 0===e?void 0:e.scrollHeight)&&setTimeout((()=>{g.current.style.maxHeight=g.current.scrollHeight+"px"}),100)}),[h,null==l?void 0:l.refresh,null===(d=null==g?void 0:g.current)||void 0===d?void 0:d.scrollHeight]),e(a,Object.assign({className:"accordion",isActive:h,width:null==l?void 0:l.width,contentMargin:null==l?void 0:l.contentMargin,headerPadding:l.headerPadding,skipHoverState:l.skipHoverHeader,showBorders:l.showBorders,backgroundColor:l.backgroundColor},{children:[e("div",Object.assign({className:"accordion__overview "+(h?"active":""),onClick:e=>m(!h,e),onKeyDown:e=>m(!h,e),role:"button",tabIndex:0},{children:[!l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:["string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header,r(s,{isNewIcon:!1,ref:v})]})),l.rightActionComponent&&e("div",Object.assign({className:"accordion__overview__header"},{children:[e("div",Object.assign({className:"accordion__overview__title-wrapper"},{children:[r(s,{isNewIcon:!0,ref:v}),"string"==typeof l.header?r(i,{children:null==l?void 0:l.header}):l.header]})),r("div",Object.assign({onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},role:"button",tabIndex:0},{children:l.rightActionComponent}))]})),(null==l?void 0:l.caption)&&r("div",Object.assign({className:"accordion__overview__caption"},{children:r(c,{children:l.caption})}))]})),r("div",Object.assign({ref:g,className:"accordion__content"},{children:l.children}))]}))};export{l as BikAccordion};
|
|
@@ -4,5 +4,7 @@ declare const AccordionStyle: import("styled-components").StyledComponent<"div",
|
|
|
4
4
|
contentMargin?: string | undefined;
|
|
5
5
|
skipHoverState?: boolean | undefined;
|
|
6
6
|
headerPadding?: string | undefined;
|
|
7
|
+
showBorders?: boolean | undefined;
|
|
8
|
+
backgroundColor?: string | undefined;
|
|
7
9
|
}, never>;
|
|
8
10
|
export default AccordionStyle;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import e from"styled-components";import{COLORS as
|
|
1
|
+
import e from"styled-components";import{COLORS as r}from"../../constants/Theme.js";const o=e.div`
|
|
2
2
|
width: ${e=>(null==e?void 0:e.width)||"100%"};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
+
border: ${e=>e.showBorders?"1px solid "+r.stroke.primary:""};
|
|
6
|
+
border-radius: ${e=>e.showBorders?"4px":""};
|
|
7
|
+
background: ${e=>e.backgroundColor||"unset"};
|
|
5
8
|
.accordion {
|
|
6
9
|
&__overview {
|
|
7
10
|
display: flex;
|
|
8
11
|
flex-direction: column;
|
|
9
12
|
gap: 4px;
|
|
10
13
|
padding: ${e=>e.headerPadding?e.headerPadding:"24px"};
|
|
14
|
+
border-bottom: ${e=>e.showBorders&&e.isActive?"1px solid "+r.stroke.primary:""};
|
|
11
15
|
&__header {
|
|
12
16
|
display: flex;
|
|
13
17
|
flex-direction: row;
|
|
@@ -19,8 +23,8 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
19
23
|
gap: 8px;
|
|
20
24
|
}
|
|
21
25
|
:hover {
|
|
22
|
-
background: ${e=>e.skipHoverState?null:
|
|
23
|
-
border-radius: 4px;
|
|
26
|
+
background: ${e=>e.skipHoverState?null:r.surface.subdued};
|
|
27
|
+
border-radius: ${e=>e.skipHoverState?null:"4px"};
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
&__content {
|
|
@@ -29,4 +33,4 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
29
33
|
max-height: 0;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
|
-
`;export{
|
|
36
|
+
`;export{o as default};
|
|
@@ -22,7 +22,7 @@ export interface AnalyticsDropdownInterface {
|
|
|
22
22
|
onOptionSelected: (chosen: DropdownOptions & {
|
|
23
23
|
selectedRange?: [Date, Date];
|
|
24
24
|
}) => void;
|
|
25
|
-
|
|
25
|
+
backgroundColor?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare const AnalyticsDropdown: React.FC<AnalyticsDropdownInterface>;
|
|
28
28
|
export declare const EachItem: React.FC<{
|
|
@@ -30,6 +30,5 @@ export declare const EachItem: React.FC<{
|
|
|
30
30
|
selectedOption: DropdownOptions | undefined;
|
|
31
31
|
selectedDate: Date[] | undefined;
|
|
32
32
|
onClickingEachItem: (optionSelected: DropdownOptions) => void;
|
|
33
|
-
rangeSelection?: boolean;
|
|
34
33
|
}>;
|
|
35
34
|
export declare const formatDate: (dateVal: Date) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as
|
|
1
|
+
import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{Dropdown as l}from"react-bootstrap";import{BASE_COLORS as s}from"../../constants/Theme.js";import{DatePicker as a}from"../datePicker/DatePicker.js";import{BodySecondary as d,BodyCaption as c}from"../TypographyStyle.js";import{MainDropdown as r,ItemMenuContainer as g}from"./CommonStyles.js";const m=s=>{let{options:c,placeholder:g="Select an option",selected:m,onOptionSelected:v,resetDropdown:O,backgroundColor:h}=s;var b,y,D;const[k,j]=t(!1),[S,w]=t(m),[C,R]=t(),[f,T]=t(!1),$=()=>{!k&&T(!f)},[x,N]=t(m);return i((()=>{O&&w(void 0)}),[O]),i((()=>{var e;(null==m?void 0:m.isCustom)&&(null===(e=m.dateRangeSelectionOptions)||void 0===e?void 0:e.selectedDates)?R(m.dateRangeSelectionOptions.selectedDates):m&&w(m)}),[m]),e(o,{children:n(r,Object.assign({drop:"down",show:f,onToggle:$,backgroundColor:h},{children:[e(l.Toggle,Object.assign({id:"dropdown-autoclose-outside",className:"main--dropdown"},{children:e(d,{children:(null==S?void 0:S.isCustom)?C?p(C[0])===p(C[1])?`${p(C[0])}`:`${p(C[0])} to ${p(C[1])}`:null==x?void 0:x.label:S?null==S?void 0:S.label:g})})),e(l.Menu,Object.assign({className:"main--dropdown"},{children:n(r,Object.assign({drop:"end",id:"sub--dropdown",show:k,onToggle:e=>{!e&&T(!1),j(!k)}},{children:[c.map((o=>e("div",{children:(null==o?void 0:o.isCustom)?e(l.Toggle,Object.assign({className:"sub--dropdown"},{children:e(u,{eachOption:o,selectedOption:S,selectedDate:C,onClickingEachItem:e=>{w(e),j(!0)}})})):e(u,{eachOption:o,selectedOption:S,selectedDate:C,onClickingEachItem:e=>{if(w(e),N(e),$(),!e.noOfDays)return void v(e);const o=new Date,n=new Date;n.setDate(o.getDate()-e.noOfDays),v(Object.assign(Object.assign({},e),{selectedRange:[n,o]}))}})},null==o?void 0:o.key))),e(l.Menu,Object.assign({className:"sub--dropdown"},{children:e(a,{selectRange:(null===(b=null==S?void 0:S.dateRangeSelectionOptions)||void 0===b?void 0:b.selectRange)||!1,maxDate:null===(y=null==S?void 0:S.dateRangeSelectionOptions)||void 0===y?void 0:y.maxDate,minDate:null===(D=null==S?void 0:S.dateRangeSelectionOptions)||void 0===D?void 0:D.minDate,selectedDates:C,onSelectRange:(e,o)=>{const n=[e,o];(null==S?void 0:S.dateRangeSelectionOptions)&&(S.dateRangeSelectionOptions.selectedDates=n,v(Object.assign(Object.assign({},S),{selectedRange:[e,o]}))),N(S),j(!1),R(n),T(!f)}})}))]}))}))]}))})},u=o=>{let{eachOption:t,selectedOption:i,selectedDate:l,onClickingEachItem:a}=o;return n(g,Object.assign({onClick:()=>a(t),isSelected:t.isCustom?t.key==(null==i?void 0:i.key)&&!!l:t.key==(null==i?void 0:i.key)},{children:[e(d,Object.assign({color:t.key==(null==i?void 0:i.key)?s.positive[900]:s.grayscale[900]},{children:t.label})),l&&(null==i?void 0:i.isCustom)&&t.key==(null==i?void 0:i.key)&&e(c,{children:`${p(l[0])} to ${p(l[1])}`})]}),t.key)},p=e=>e.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"});export{m as AnalyticsDropdown,u as EachItem,p as formatDate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from"@emotion/styled/base";import{jsxs as I,jsx as C,Fragment as A}from"react/jsx-runtime";import{COLORS as c}from"../../constants/Theme.js";import{TitleMedium as l,TitleRegular as b}from"../TypographyStyle.js";import{AnalyticsTrend as d}from"./AnalyticsTrend.js";function G(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const e=g("div","production"===process.env.NODE_ENV?{target:"e1bel8cf1"}:{target:"e1bel8cf1",label:"TrendContainer"})("production"===process.env.NODE_ENV?{name:"jovua5",styles:"display:flex;flex-direction:row;flex-wrap:wrap"}:{name:"jovua5",styles:"display:flex;flex-direction:row;flex-wrap:wrap",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFuYWx5dGljc01ldHJpYy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2tDIiwiZmlsZSI6IkFuYWx5dGljc01ldHJpYy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cywgRnJhZ21lbnQgYXMgX0ZyYWdtZW50IH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgQ09MT1JTIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5pbXBvcnQgeyBUaXRsZU1lZGl1bSwgVGl0bGVSZWd1bGFyIH0gZnJvbSAnLi4vVHlwb2dyYXBoeVN0eWxlJztcclxuaW1wb3J0IHsgQW5hbHl0aWNzVHJlbmQgfSBmcm9tICcuL0FuYWx5dGljc1RyZW5kJztcclxuY29uc3QgVHJlbmRDb250YWluZXIgPSBzdHlsZWQuZGl2IGBcblx0ZGlzcGxheTogZmxleDtcblx0ZmxleC1kaXJlY3Rpb246IHJvdztcblx0ZmxleC13cmFwOiB3cmFwO1xuYDtcclxuY29uc3QgQnJlYWsgPSBzdHlsZWQuZGl2IGBcblx0ZmxleC1iYXNpczogMTAwJTtcblx0aGVpZ2h0OiAwO1xuYDtcclxuZXhwb3J0IGNvbnN0IEFuYWx5dGljc01ldHJpYyA9ICh7IHRpdGxlLCB0cmVuZHMsIFJpZ2h0SGVhZGVyQ29tcG9uZW50LCBjb250YWluZXJTdHlsZSwgdGl0bGVTaXplLCB0aXRsZUNvbG9yLCBwZXJSb3csIH0pID0+IHtcclxuICAgIGNvbnN0IFR5cG8gPSB0aXRsZVNpemUgPT09ICdsYXJnZScgPyBUaXRsZU1lZGl1bSA6IFRpdGxlUmVndWxhcjtcclxuICAgIGNvbnN0IHBlclJvd0xvY2FsID0gcGVyUm93IHx8XHJcbiAgICAgICAgKHRyZW5kcy5sZW5ndGggPD0gNCA/IHRyZW5kcy5sZW5ndGggOiB0cmVuZHMubGVuZ3RoICUgMyA9PSAwID8gMyA6IDQpO1xyXG4gICAgY29uc3Qgcm93cyA9IE1hdGguY2VpbCh0cmVuZHMubGVuZ3RoIC8gcGVyUm93TG9jYWwpO1xyXG4gICAgcmV0dXJuIChfanN4cyhcImRpdlwiLCBPYmplY3QuYXNzaWduKHsgc3R5bGU6IE9iamVjdC5hc3NpZ24oeyBwYWRkaW5nVG9wOiAyNCwgcGFkZGluZ0JvdHRvbTogMjQgfSwgKGNvbnRhaW5lclN0eWxlICE9PSBudWxsICYmIGNvbnRhaW5lclN0eWxlICE9PSB2b2lkIDAgPyBjb250YWluZXJTdHlsZSA6IHt9KSkgfSwgeyBjaGlsZHJlbjogW19qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZToge1xyXG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6ICdmbGV4JyxcclxuICAgICAgICAgICAgICAgICAgICBmbGV4RGlyZWN0aW9uOiAncm93JyxcclxuICAgICAgICAgICAgICAgICAgICBqdXN0aWZ5Q29udGVudDogJ3NwYWNlLWJldHdlZW4nLFxyXG4gICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiBbdGl0bGUgJiYgKF9qc3goVHlwbywgT2JqZWN0LmFzc2lnbih7IGNvbG9yOiB0aXRsZUNvbG9yICE9PSBudWxsICYmIHRpdGxlQ29sb3IgIT09IHZvaWQgMCA/IHRpdGxlQ29sb3IgOiBDT0xPUlMuY29udGVudC5zZWNvbmRhcnksIHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogMjQsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nUmlnaHQ6IDI0LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZ0JvdHRvbTogOCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiB0aXRsZSB9KSkpLCBSaWdodEhlYWRlckNvbXBvbmVudF0gfSkpLCBfanN4KFRyZW5kQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBBcnJheS5mcm9tKHsgbGVuZ3RoOiByb3dzIH0pLm1hcCgoXywgcm93SW5kZXgpID0+IChfanN4cyhfRnJhZ21lbnQsIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZTogeyBkaXNwbGF5OiAnZmxleCcsIHdpZHRoOiAnMTAwJScgfSB9LCB7IGNoaWxkcmVuOiB0cmVuZHNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuc2xpY2Uocm93SW5kZXggKiBwZXJSb3dMb2NhbCwgKHJvd0luZGV4ICsgMSkgKiBwZXJSb3dMb2NhbClcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAubWFwKCh0cmVuZCwgaSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBfYTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gKF9qc3goXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmbGV4OiAxLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4V2lkdGg6IGA1MCVgLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IH0sIHsgY2hpbGRyZW46IF9qc3goQW5hbHl0aWNzVHJlbmQsIE9iamVjdC5hc3NpZ24oe30sIHRyZW5kLCB7IGNhcmQ6IGZhbHNlLCBzaXplOiAoX2EgPSB0cmVuZC5zaXplKSAhPT0gbnVsbCAmJiBfYSAhPT0gdm9pZCAwID8gX2EgOiAnc21hbGwnLCByaWdodFNlcGFyYXRvcjogaSArIHJvd0luZGV4ICogcGVyUm93TG9jYWwgPFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE1hdGgubWluKChyb3dJbmRleCArIDEpICogcGVyUm93TG9jYWwgLSAxLCB0cmVuZHMubGVuZ3RoIC0gMSkgfSkpIH0pLCBpKSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSB9KSwgcm93SW5kZXgpLCBfanN4KEJyZWFrLCB7IHN0eWxlOiB7IG1hcmdpblRvcDogJzMycHgnIH0gfSldIH0pKSkgfSldIH0pKSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUFuYWx5dGljc01ldHJpYy5qcy5tYXAiXX0= */",toString:G}),Z=g("div","production"===process.env.NODE_ENV?{target:"e1bel8cf0"}:{target:"e1bel8cf0",label:"Break"})("production"===process.env.NODE_ENV?{name:"1f76xva",styles:"flex-basis:100%;height:0"}:{name:"1f76xva",styles:"flex-basis:100%;height:0",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFuYWx5dGljc01ldHJpYy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVXlCIiwiZmlsZSI6IkFuYWx5dGljc01ldHJpYy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cywgRnJhZ21lbnQgYXMgX0ZyYWdtZW50IH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgQ09MT1JTIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5pbXBvcnQgeyBUaXRsZU1lZGl1bSwgVGl0bGVSZWd1bGFyIH0gZnJvbSAnLi4vVHlwb2dyYXBoeVN0eWxlJztcclxuaW1wb3J0IHsgQW5hbHl0aWNzVHJlbmQgfSBmcm9tICcuL0FuYWx5dGljc1RyZW5kJztcclxuY29uc3QgVHJlbmRDb250YWluZXIgPSBzdHlsZWQuZGl2IGBcblx0ZGlzcGxheTogZmxleDtcblx0ZmxleC1kaXJlY3Rpb246IHJvdztcblx0ZmxleC13cmFwOiB3cmFwO1xuYDtcclxuY29uc3QgQnJlYWsgPSBzdHlsZWQuZGl2IGBcblx0ZmxleC1iYXNpczogMTAwJTtcblx0aGVpZ2h0OiAwO1xuYDtcclxuZXhwb3J0IGNvbnN0IEFuYWx5dGljc01ldHJpYyA9ICh7IHRpdGxlLCB0cmVuZHMsIFJpZ2h0SGVhZGVyQ29tcG9uZW50LCBjb250YWluZXJTdHlsZSwgdGl0bGVTaXplLCB0aXRsZUNvbG9yLCBwZXJSb3csIH0pID0+IHtcclxuICAgIGNvbnN0IFR5cG8gPSB0aXRsZVNpemUgPT09ICdsYXJnZScgPyBUaXRsZU1lZGl1bSA6IFRpdGxlUmVndWxhcjtcclxuICAgIGNvbnN0IHBlclJvd0xvY2FsID0gcGVyUm93IHx8XHJcbiAgICAgICAgKHRyZW5kcy5sZW5ndGggPD0gNCA/IHRyZW5kcy5sZW5ndGggOiB0cmVuZHMubGVuZ3RoICUgMyA9PSAwID8gMyA6IDQpO1xyXG4gICAgY29uc3Qgcm93cyA9IE1hdGguY2VpbCh0cmVuZHMubGVuZ3RoIC8gcGVyUm93TG9jYWwpO1xyXG4gICAgcmV0dXJuIChfanN4cyhcImRpdlwiLCBPYmplY3QuYXNzaWduKHsgc3R5bGU6IE9iamVjdC5hc3NpZ24oeyBwYWRkaW5nVG9wOiAyNCwgcGFkZGluZ0JvdHRvbTogMjQgfSwgKGNvbnRhaW5lclN0eWxlICE9PSBudWxsICYmIGNvbnRhaW5lclN0eWxlICE9PSB2b2lkIDAgPyBjb250YWluZXJTdHlsZSA6IHt9KSkgfSwgeyBjaGlsZHJlbjogW19qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZToge1xyXG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6ICdmbGV4JyxcclxuICAgICAgICAgICAgICAgICAgICBmbGV4RGlyZWN0aW9uOiAncm93JyxcclxuICAgICAgICAgICAgICAgICAgICBqdXN0aWZ5Q29udGVudDogJ3NwYWNlLWJldHdlZW4nLFxyXG4gICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiBbdGl0bGUgJiYgKF9qc3goVHlwbywgT2JqZWN0LmFzc2lnbih7IGNvbG9yOiB0aXRsZUNvbG9yICE9PSBudWxsICYmIHRpdGxlQ29sb3IgIT09IHZvaWQgMCA/IHRpdGxlQ29sb3IgOiBDT0xPUlMuY29udGVudC5zZWNvbmRhcnksIHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nTGVmdDogMjQsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nUmlnaHQ6IDI0LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZ0JvdHRvbTogOCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSB9LCB7IGNoaWxkcmVuOiB0aXRsZSB9KSkpLCBSaWdodEhlYWRlckNvbXBvbmVudF0gfSkpLCBfanN4KFRyZW5kQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBBcnJheS5mcm9tKHsgbGVuZ3RoOiByb3dzIH0pLm1hcCgoXywgcm93SW5kZXgpID0+IChfanN4cyhfRnJhZ21lbnQsIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBzdHlsZTogeyBkaXNwbGF5OiAnZmxleCcsIHdpZHRoOiAnMTAwJScgfSB9LCB7IGNoaWxkcmVuOiB0cmVuZHNcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuc2xpY2Uocm93SW5kZXggKiBwZXJSb3dMb2NhbCwgKHJvd0luZGV4ICsgMSkgKiBwZXJSb3dMb2NhbClcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAubWFwKCh0cmVuZCwgaSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBfYTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gKF9qc3goXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmbGV4OiAxLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4V2lkdGg6IGA1MCVgLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IH0sIHsgY2hpbGRyZW46IF9qc3goQW5hbHl0aWNzVHJlbmQsIE9iamVjdC5hc3NpZ24oe30sIHRyZW5kLCB7IGNhcmQ6IGZhbHNlLCBzaXplOiAoX2EgPSB0cmVuZC5zaXplKSAhPT0gbnVsbCAmJiBfYSAhPT0gdm9pZCAwID8gX2EgOiAnc21hbGwnLCByaWdodFNlcGFyYXRvcjogaSArIHJvd0luZGV4ICogcGVyUm93TG9jYWwgPFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE1hdGgubWluKChyb3dJbmRleCArIDEpICogcGVyUm93TG9jYWwgLSAxLCB0cmVuZHMubGVuZ3RoIC0gMSkgfSkpIH0pLCBpKSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSB9KSwgcm93SW5kZXgpLCBfanN4KEJyZWFrLCB7IHN0eWxlOiB7IG1hcmdpblRvcDogJzMycHgnIH0gfSldIH0pKSkgfSldIH0pKSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPUFuYWx5dGljc01ldHJpYy5qcy5tYXAiXX0= */",toString:G}),i=g=>{let{title:G,trends:i,RightHeaderComponent:a,containerStyle:n,titleSize:y,titleColor:u,perRow:s}=g;const W="large"===y?l:b,t=s||(i.length<=4?i.length:i.length%3==0?3:4),B=Math.ceil(i.length/t);return I("div",Object.assign({style:Object.assign({paddingTop:24,paddingBottom:24},null!=n?n:{})},{children:[I("div",Object.assign({style:{display:"flex",flexDirection:"row",justifyContent:"space-between"}},{children:[G&&C(W,Object.assign({color:null!=u?u:c.content.secondary,style:{paddingLeft:24,paddingRight:24,paddingBottom:8}},{children:G})),a]})),C(e,{children:Array.from({length:B}).map(((g,c)=>I(A,{children:[C("div",Object.assign({style:{display:"flex",width:"100%"}},{children:i.slice(c*t,(c+1)*t).map(((g,I)=>{var A;return C("div",Object.assign({style:{flex:1,maxWidth:"50%"}},{children:C(d,Object.assign({},g,{card:!1,size:null!==(A=g.size)&&void 0!==A?A:"small",rightSeparator:I+c*t<Math.min((c+1)*t-1,i.length-1)}))}),I)}))}),c),C(Z,{style:{marginTop:"32px"}})]})))})]}))};export{i as AnalyticsMetric};
|
|
@@ -23,6 +23,7 @@ export declare const MainDropdown: import("@emotion/styled").StyledComponent<{
|
|
|
23
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
height?: string | undefined;
|
|
26
|
+
backgroundColor?: string | undefined;
|
|
26
27
|
}, {}, {}>;
|
|
27
28
|
export declare const ItemMenuContainer: import("@emotion/styled").StyledComponent<{
|
|
28
29
|
theme?: import("@emotion/react").Theme | undefined;
|