@bikdotai/bik-component-library 0.0.241 → 0.0.242-beta.1
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/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/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +6 -14
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +0 -2
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +6 -15
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +6 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.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/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +6 -14
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +0 -2
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +6 -15
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +6 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.d.ts +0 -4
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +0 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.d.ts +0 -4
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +0 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.d.ts +0 -2
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +0 -1
- package/dist/cjs/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +0 -79
- package/dist/cjs/components/QueryBuilder/helpers/OperatorHelperV2.d.ts +0 -7
- package/dist/cjs/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +0 -28
- package/dist/cjs/components/QueryBuilder/helpers/SegmentHelperV2.d.ts +0 -140
- package/dist/cjs/components/QueryBuilder/helpers/SegmentValidator.d.ts +0 -75
- package/dist/cjs/components/keywords-input/KeywordsInput.d.ts +0 -11
- package/dist/cjs/components/keywords-input/KeywordsInput.js +0 -1
- package/dist/cjs/components/keywords-input/KeywordsInput.styled.d.ts +0 -5
- package/dist/cjs/components/keywords-input/index.d.ts +0 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.d.ts +0 -4
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLastAgo.js +0 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.d.ts +0 -4
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTwoLast.js +0 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.d.ts +0 -2
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +0 -1
- package/dist/esm/components/QueryBuilder/helpers/MetaCustomProcessor.d.ts +0 -79
- package/dist/esm/components/QueryBuilder/helpers/OperatorHelperV2.d.ts +0 -7
- package/dist/esm/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +0 -28
- package/dist/esm/components/QueryBuilder/helpers/SegmentHelperV2.d.ts +0 -140
- package/dist/esm/components/QueryBuilder/helpers/SegmentValidator.d.ts +0 -75
- package/dist/esm/components/keywords-input/KeywordsInput.d.ts +0 -11
- package/dist/esm/components/keywords-input/KeywordsInput.js +0 -1
- package/dist/esm/components/keywords-input/KeywordsInput.styled.d.ts +0 -5
- package/dist/esm/components/keywords-input/index.d.ts +0 -1
|
@@ -1,140 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,75 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const KeywordsInput: (props: {
|
|
3
|
-
keywords: string[];
|
|
4
|
-
onDeleteKeyword: (name: string) => void;
|
|
5
|
-
onSelectKeyword?: ((kwds: string[]) => void) | undefined;
|
|
6
|
-
placeHolder?: string | undefined;
|
|
7
|
-
error?: boolean | undefined;
|
|
8
|
-
errorMessage?: string | undefined;
|
|
9
|
-
hint?: string | undefined;
|
|
10
|
-
width?: string | undefined;
|
|
11
|
-
}) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../assets/icons/cross.svg.js"),t=require("react"),i=require("../input/Input.js"),s=require("../tag/Tag.js");exports.KeywordsInput=o=>{var n;const[a,l]=t.useState(""),{keywords:d,onDeleteKeyword:c,errorMessage:u,onSelectKeyword:p,error:g,hint:x,width:w}=o;return e.jsxs("div",Object.assign({style:{marginTop:12}},{children:[e.jsx(i.Input,{width:w,onChangeText:function(e,r){!r||"keydown"!==(null==r?void 0:r.type)||13!==r.which&&13!==r.keyCode?l(e):e.trim()&&(l(""),p&&p([...d,e.trim()]))},value:a,hintText:x,placeholder:null!==(n=o.placeHolder)&&void 0!==n?n:"Ex. Hello",errorMessage:g?u||"Please ENTER to add keyword":""}),e.jsx("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:"8px",marginTop:12,flexWrap:"wrap",width:w}},{children:d.map(((t,i)=>e.jsx(s.Tag,{tagText:t,TrailingIcon:r.default,onTrailingIconClicked:()=>c(t)},t+i)))}))]}))};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ChipStyle: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './KeywordsInput';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{BodySecondary as r}from"../../../../TypographyStyle.js";import s from"./InTheLast.js";const i=i=>t("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:12,alignItems:"center"}},{children:[e(s,Object.assign({},i)),e(r,{children:"Ago"})]})),o=t=>e(i,Object.assign({},t));export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import I from"@emotion/styled/base";import{jsx as g,jsxs as C}from"react/jsx-runtime";import{useState as A,useEffect as d}from"react";import"../../../../dropdown/DropdownPopover/index.js";import{Dropdown as l}from"../../../../dropdown/Dropdown.js";import"../../../../zeroState/ZeroState.js";import{BodySecondary as c}from"../../../../TypographyStyle.js";import"../../../../../constants/Theme.js";import"../../../../dropdown/OpenedDropdown/components/description/Description.styled.js";import"../../../../checkBox/CheckBox.styled.js";import"../../../../list-item/ListItem.js";import"../../../../dropdown/OpenedDropdown/components/menu/FreeFormMenu.styled.js";import"../../../../dropdown/OpenedDropdown/components/menu/MenuItem.js";import"../../../../dropdown/OpenedDropdown/components/menu/MenuList.styled.js";import"../../../../button/Button.js";import"../../../../dropdown/OpenedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js";import"../../../../dropdown/OpenedDropdown/components/OpennedDropdown.styled.js";import{Input as e}from"../../../../input/Input.js";import{InputStyleContext as o}from"../../../../input/context/InputStyleProvider.js";import"../../../../dropdown/MenuItem/MenuItem.js";import i from"../../InputLoader.js";const n=I("div","production"===process.env.NODE_ENV?{target:"eqv4pu00"}:{target:"eqv4pu00",label:"Container"})("production"===process.env.NODE_ENV?{name:"1d5jh9x",styles:"display:flex;flex-direction:row;gap:12px;align-items:center"}:{name:"1d5jh9x",styles:"display:flex;flex-direction:row;gap:12px;align-items:center",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkluVHdvTGFzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUTZCIiwiZmlsZSI6IkluVHdvTGFzdC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJyZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCB7IHVzZUVmZmVjdCwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IERyb3Bkb3duIH0gZnJvbSBcIi4uLy4uLy4uLy4uL2Ryb3Bkb3duXCI7XHJcbmltcG9ydCB7IElucHV0IH0gZnJvbSBcIi4uLy4uLy4uLy4uL2lucHV0XCI7XHJcbmltcG9ydCB7IElucHV0U3R5bGVDb250ZXh0IH0gZnJvbSBcIi4uLy4uLy4uLy4uL2lucHV0L2NvbnRleHQvSW5wdXRTdHlsZVByb3ZpZGVyXCI7XHJcbmltcG9ydCB7IEJvZHlTZWNvbmRhcnkgfSBmcm9tIFwiLi4vLi4vLi4vLi4vVHlwb2dyYXBoeVN0eWxlXCI7XHJcbmltcG9ydCBJbnB1dExvYWRlciBmcm9tICcuLi8uLi9JbnB1dExvYWRlcic7XHJcbmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRnYXA6IDEycHg7XG5c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ICAgICAgICAgICAgICAgICAgICB0eXBlOiBvcHRpb24udmFsdWUsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGFydCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9mZnNldCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfSB9KV0gfSkgfSkpKTtcclxufTtcclxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9iYW4tdHMtY29tbWVudFxyXG4vLyBAdHMtaWdub3JlXHJcbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSByZWFjdC9kaXNwbGF5LW5hbWVcclxuZXhwb3J0IGRlZmF1bHQgKHByb3BzKSA9PiBfanN4KEluVHdvTGFzdCwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9SW5Ud29MYXN0LmpzLm1hcCJdfQ== */",toString:function(){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)."}}),t=[{label:"day(s)",value:"days"},{label:"minute(s)",value:"minutes"},{label:"hour(s)",value:"hours"}],b=I=>{let{val:b,onChange:s,errors:B,isLoading:m,disabled:u}=I;var p,a,y;const[X,Z]=A(t),H=null!==(p=null==b?void 0:b.type)&&void 0!==p?p:"days",r=null!==(a=null==b?void 0:b.start)&&void 0!==a?a:"1",G=null!==(y=null==b?void 0:b.offset)&&void 0!==y?y:"2";return d((()=>{var I;const g=null!==(I=null==b?void 0:b.type)&&void 0!==I?I:"days";Z((I=>I.map((I=>Object.assign(Object.assign({},I),{selected:g===I.value})))))}),[b]),d((()=>{var I,g,C;if(void 0===(null==b?void 0:b.start)){const A=null!==(I=null==b?void 0:b.type)&&void 0!==I?I:"days",d=null!==(g=null==b?void 0:b.start)&&void 0!==g?g:"1",l=null!==(C=null==b?void 0:b.offset)&&void 0!==C?C:"2";null==s||s({type:A,start:d,offset:l})}}),[]),m?g("div",Object.assign({style:{width:200}},{children:g(i,{containerStyle:{padding:"5px 8px"}})})):g(o.Provider,Object.assign({value:{InputWrapper:{width:104}}},{children:C(n,{children:[g(e,{type:"number",variant:"small",state:u?"disabled":"none",errorMessage:null==B?void 0:B.val,value:G.toString(),onChangeText:I=>null==s?void 0:s({type:H,start:r,offset:I})}),g("div",{children:g(c,{children:"to"})}),g(e,{type:"number",variant:"small",state:u?"disabled":"none",errorMessage:null==B?void 0:B.val,value:r.toString(),onChangeText:I=>null==s?void 0:s({type:H,start:I,offset:G})}),g(l,{disabled:u,placeHolder:"Time",width:"108px",size:"small",options:X,onSelect:I=>{null==s||s({type:I.value,start:r,offset:G})}})]})}))};var s=I=>g(b,Object.assign({},I));export{s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[{label:"Commonly used",options:[{selected:!1,value:"today",label:"Today"},{selected:!1,value:"yesterday",label:"Yesterday"},{selected:!1,value:"last week",label:"Last week"},{selected:!0,value:"last month",label:"Last month"}]},{label:"Relative",options:[{selected:!1,value:"in the last",label:"In the last"}]},{label:"Absolute",options:[{selected:!1,value:"on",label:"On"},{selected:!1,value:"notOn",label:"Not On"},{selected:!1,value:"inBetween",label:"In Between"},{selected:!1,value:"notInBetween",label:"Not In Between"},{selected:!1,value:"before",label:"Before"},{selected:!1,value:"after",label:"After"}]}];export{e as DATE_OPERATORS_OPTIONS};
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,75 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const KeywordsInput: (props: {
|
|
3
|
-
keywords: string[];
|
|
4
|
-
onDeleteKeyword: (name: string) => void;
|
|
5
|
-
onSelectKeyword?: ((kwds: string[]) => void) | undefined;
|
|
6
|
-
placeHolder?: string | undefined;
|
|
7
|
-
error?: boolean | undefined;
|
|
8
|
-
errorMessage?: string | undefined;
|
|
9
|
-
hint?: string | undefined;
|
|
10
|
-
width?: string | undefined;
|
|
11
|
-
}) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import o from"../../assets/icons/cross.svg.js";import{useState as t}from"react";import{Input as i}from"../input/Input.js";import{Tag as n}from"../tag/Tag.js";const a=a=>{var s;const[l,d]=t(""),{keywords:c,onDeleteKeyword:p,errorMessage:m,onSelectKeyword:g,error:h,hint:w,width:x}=a;return e("div",Object.assign({style:{marginTop:12}},{children:[r(i,{width:x,onChangeText:function(e,r){!r||"keydown"!==(null==r?void 0:r.type)||13!==r.which&&13!==r.keyCode?d(e):e.trim()&&(d(""),g&&g([...c,e.trim()]))},value:l,hintText:w,placeholder:null!==(s=a.placeHolder)&&void 0!==s?s:"Ex. Hello",errorMessage:h?m||"Please ENTER to add keyword":""}),r("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:"8px",marginTop:12,flexWrap:"wrap",width:x}},{children:c.map(((e,t)=>r(n,{tagText:e,TrailingIcon:o,onTrailingIconClicked:()=>p(e)},e+t)))}))]}))};export{a as KeywordsInput};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ChipStyle: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './KeywordsInput';
|