@bikdotai/bik-component-library 0.0.608-beta-ddp-0 → 0.0.609
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/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +0 -1
- package/dist/cjs/components/dropdown/Dropdown.d.ts +1 -0
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +2 -0
- package/dist/cjs/components/dropdown/hooks/useDropdown.d.ts +2 -0
- package/dist/cjs/components/dropdown/type.d.ts +2 -0
- package/dist/cjs/components/keywords-input/KeywordsInput.d.ts +1 -0
- package/dist/cjs/components/keywords-input/KeywordsInput.js +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
- package/dist/esm/components/bik-layout/MockMenus.d.ts +0 -1
- package/dist/esm/components/dropdown/Dropdown.d.ts +1 -0
- package/dist/esm/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +2 -0
- package/dist/esm/components/dropdown/hooks/useDropdown.d.ts +2 -0
- package/dist/esm/components/dropdown/type.d.ts +2 -0
- package/dist/esm/components/keywords-input/KeywordsInput.d.ts +1 -0
- package/dist/esm/components/keywords-input/KeywordsInput.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default EventsTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default IGTrigger;
|
package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from "../../../dropdown/type";
|
|
3
|
-
import { QueryBuilderProperty } from "../../
|
|
4
|
-
import { QueryBuilderNodeProps } from "../../
|
|
3
|
+
import { QueryBuilderProperty } from "../../types/QueryBuilder.type";
|
|
4
|
+
import { QueryBuilderNodeProps } from "../../types/QueryBuilderNodeProps.type";
|
|
5
5
|
declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
|
|
6
6
|
cacheKey: string;
|
|
7
7
|
propertyAddBtnText: string;
|
|
@@ -15,6 +15,7 @@ export declare function iterateOnOptions(options: DropdownOption[], newVal: Part
|
|
|
15
15
|
selectedLabel?: string | undefined;
|
|
16
16
|
children?: SingleOption[] | undefined;
|
|
17
17
|
parent?: SingleOption | undefined;
|
|
18
|
+
'data-test'?: string | undefined;
|
|
18
19
|
} | {
|
|
19
20
|
label?: string | undefined;
|
|
20
21
|
value?: string | undefined;
|
|
@@ -30,6 +31,7 @@ export declare function iterateOnOptions(options: DropdownOption[], newVal: Part
|
|
|
30
31
|
selectedLabel?: string | undefined;
|
|
31
32
|
children?: SingleOption[] | undefined;
|
|
32
33
|
parent?: SingleOption | undefined;
|
|
34
|
+
'data-test'?: string | undefined;
|
|
33
35
|
options: SingleOption[];
|
|
34
36
|
})[];
|
|
35
37
|
export declare function iterateOnOptionsRaw(options: DropdownOption[], cb: (option: SingleOption) => void): void;
|
|
@@ -22,6 +22,7 @@ export declare const useDropdown: (version: string | undefined, options: Dropdow
|
|
|
22
22
|
selectedLabel?: string | undefined;
|
|
23
23
|
children?: SingleOption[] | undefined;
|
|
24
24
|
parent?: SingleOption | undefined;
|
|
25
|
+
'data-test'?: string | undefined;
|
|
25
26
|
} | {
|
|
26
27
|
label?: string | undefined;
|
|
27
28
|
value?: string | undefined;
|
|
@@ -37,6 +38,7 @@ export declare const useDropdown: (version: string | undefined, options: Dropdow
|
|
|
37
38
|
selectedLabel?: string | undefined;
|
|
38
39
|
children?: SingleOption[] | undefined;
|
|
39
40
|
parent?: SingleOption | undefined;
|
|
41
|
+
'data-test'?: string | undefined;
|
|
40
42
|
options: SingleOption[];
|
|
41
43
|
})[] | undefined;
|
|
42
44
|
selectAllHandler: (newState: SelectAllCheckboxState) => void;
|
|
@@ -28,6 +28,7 @@ export interface OpenDropdownProps {
|
|
|
28
28
|
disableSearchOptions?: boolean;
|
|
29
29
|
disableSearchedOptionExcept?: string[];
|
|
30
30
|
useDefaultCursor?: boolean;
|
|
31
|
+
'data-test'?: string;
|
|
31
32
|
}
|
|
32
33
|
export type GroupedOption = {
|
|
33
34
|
label?: string;
|
|
@@ -49,6 +50,7 @@ export type SingleOption = {
|
|
|
49
50
|
selectedLabel?: string;
|
|
50
51
|
children?: SingleOption[];
|
|
51
52
|
parent?: SingleOption;
|
|
53
|
+
'data-test'?: string;
|
|
52
54
|
};
|
|
53
55
|
export type MultiSelectOption = SingleOption;
|
|
54
56
|
export type DropdownOption = MultiSelectOption | SingleOption | GroupedOption;
|
|
@@ -1 +1 @@
|
|
|
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"),
|
|
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"),s=require("../input/Input.js"),i=require("../tag/Tag.js");exports.KeywordsInput=a=>{var o;const[n,l]=t.useState(""),{keywords:d,onDeleteKeyword:c,errorMessage:u,onSelectKeyword:p,error:g,hint:x,width:w}=a;return e.jsxs("div",Object.assign({style:{marginTop:12}},{children:[e.jsx(s.Input,{"data-test":a["data-test"],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(e.trim()))},value:n,hintText:x,placeholder:null!==(o=a.placeHolder)&&void 0!==o?o:"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,s)=>e.jsx(i.Tag,{tagText:t,TrailingIcon:r.default,onTrailingIconClicked:()=>c(t)},t+s)))}))]}))};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default EventsTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default IGTrigger;
|
package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from "../../../dropdown/type";
|
|
3
|
-
import { QueryBuilderProperty } from "../../
|
|
4
|
-
import { QueryBuilderNodeProps } from "../../
|
|
3
|
+
import { QueryBuilderProperty } from "../../types/QueryBuilder.type";
|
|
4
|
+
import { QueryBuilderNodeProps } from "../../types/QueryBuilderNodeProps.type";
|
|
5
5
|
declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
|
|
6
6
|
cacheKey: string;
|
|
7
7
|
propertyAddBtnText: string;
|
|
@@ -15,6 +15,7 @@ export declare function iterateOnOptions(options: DropdownOption[], newVal: Part
|
|
|
15
15
|
selectedLabel?: string | undefined;
|
|
16
16
|
children?: SingleOption[] | undefined;
|
|
17
17
|
parent?: SingleOption | undefined;
|
|
18
|
+
'data-test'?: string | undefined;
|
|
18
19
|
} | {
|
|
19
20
|
label?: string | undefined;
|
|
20
21
|
value?: string | undefined;
|
|
@@ -30,6 +31,7 @@ export declare function iterateOnOptions(options: DropdownOption[], newVal: Part
|
|
|
30
31
|
selectedLabel?: string | undefined;
|
|
31
32
|
children?: SingleOption[] | undefined;
|
|
32
33
|
parent?: SingleOption | undefined;
|
|
34
|
+
'data-test'?: string | undefined;
|
|
33
35
|
options: SingleOption[];
|
|
34
36
|
})[];
|
|
35
37
|
export declare function iterateOnOptionsRaw(options: DropdownOption[], cb: (option: SingleOption) => void): void;
|
|
@@ -22,6 +22,7 @@ export declare const useDropdown: (version: string | undefined, options: Dropdow
|
|
|
22
22
|
selectedLabel?: string | undefined;
|
|
23
23
|
children?: SingleOption[] | undefined;
|
|
24
24
|
parent?: SingleOption | undefined;
|
|
25
|
+
'data-test'?: string | undefined;
|
|
25
26
|
} | {
|
|
26
27
|
label?: string | undefined;
|
|
27
28
|
value?: string | undefined;
|
|
@@ -37,6 +38,7 @@ export declare const useDropdown: (version: string | undefined, options: Dropdow
|
|
|
37
38
|
selectedLabel?: string | undefined;
|
|
38
39
|
children?: SingleOption[] | undefined;
|
|
39
40
|
parent?: SingleOption | undefined;
|
|
41
|
+
'data-test'?: string | undefined;
|
|
40
42
|
options: SingleOption[];
|
|
41
43
|
})[] | undefined;
|
|
42
44
|
selectAllHandler: (newState: SelectAllCheckboxState) => void;
|
|
@@ -28,6 +28,7 @@ export interface OpenDropdownProps {
|
|
|
28
28
|
disableSearchOptions?: boolean;
|
|
29
29
|
disableSearchedOptionExcept?: string[];
|
|
30
30
|
useDefaultCursor?: boolean;
|
|
31
|
+
'data-test'?: string;
|
|
31
32
|
}
|
|
32
33
|
export type GroupedOption = {
|
|
33
34
|
label?: string;
|
|
@@ -49,6 +50,7 @@ export type SingleOption = {
|
|
|
49
50
|
selectedLabel?: string;
|
|
50
51
|
children?: SingleOption[];
|
|
51
52
|
parent?: SingleOption;
|
|
53
|
+
'data-test'?: string;
|
|
52
54
|
};
|
|
53
55
|
export type MultiSelectOption = SingleOption;
|
|
54
56
|
export type DropdownOption = MultiSelectOption | SingleOption | GroupedOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import t from"../../assets/icons/cross.svg.js";import{useState as o}from"react";import{Input as i}from"../input/Input.js";import{Tag as a}from"../tag/Tag.js";const n=n=>{var s;const[l,d]=o(""),{keywords:c,onDeleteKeyword:p,errorMessage:m,onSelectKeyword:g,error:h,hint:w,width:x}=n;return e("div",Object.assign({style:{marginTop:12}},{children:[r(i,{"data-test":n["data-test"],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(e.trim()))},value:l,hintText:w,placeholder:null!==(s=n.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,o)=>r(a,{tagText:e,TrailingIcon:t,onTrailingIconClicked:()=>p(e)},e+o)))}))]}))};export{n as KeywordsInput};
|