@omniumretail/component-library 1.2.38 → 1.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -24,7 +24,7 @@ export interface customTagProps extends TagProps {
24
24
  }
25
25
 
26
26
  export const TagField = (props: customTagProps) => {
27
- const { customTags = [], advancedTags, disable, defaultAdvancedFilters = [], hideAdvancedFilters = true, inputPlacehold, inputDefaultAdvancedFilter = "" } = props;
27
+ const { customTags = [], advancedTags, disable, defaultAdvancedFilters = [], hideAdvancedFilters = false, inputPlacehold, inputDefaultAdvancedFilter = "" } = props;
28
28
 
29
29
  const [tags, setTags] = useState<string[]>(customTags.filter(tag => !tag.includes('=')));
30
30
  const [inputVisible, setInputVisible] = useState<boolean>(inputDefaultAdvancedFilter !== "" ? true : false);
@@ -39,7 +39,7 @@ export const TagField = (props: customTagProps) => {
39
39
  ...customTags.filter(tag => !tag.includes('=')),
40
40
  ...defaultAdvancedFilters.map((filter) => `${filter.display}`),
41
41
  ]);
42
- const [showAdvancedFilters, setShowAdvancedFilters] = useState<boolean>(true);
42
+ const [showAdvancedFilters, setShowAdvancedFilters] = useState<boolean>(false);
43
43
 
44
44
  useEffect(() => {
45
45
  if (defaultAdvancedFilters?.length > 0) {
@@ -129,12 +129,6 @@ export const TagField = (props: customTagProps) => {
129
129
  }
130
130
  };
131
131
 
132
- const handleHideAdvancedFilters = () => {
133
- if (hideAdvancedFilters) {
134
- setShowAdvancedFilters(!showAdvancedFilters);
135
- }
136
- };
137
-
138
132
  const doSomething = (e: any) => {
139
133
  const tag = e.target.innerText;
140
134
  if (!advancedTagList.map(tagObj => tagObj.display).includes(tag)) {