@gyramais/gyra-design 0.1.18 → 0.1.20

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.
@@ -1,22 +1,16 @@
1
1
  import React from "react";
2
2
  import "./index.css";
3
+ type FilterType = 'text' | 'boolean' | 'number';
3
4
  type FilterItem = {
4
5
  key: string;
5
6
  name: string;
6
- type: 'text' | 'boolean';
7
- disabled?: boolean;
8
- };
9
- type FilterValue = {
10
- [key: string]: string | boolean;
7
+ type: FilterType;
11
8
  };
12
9
  type FilterProps = {
13
10
  id?: string;
14
11
  className?: string;
15
- initialValues?: FilterValue;
16
12
  filters?: Array<FilterItem>;
17
- onFilter: (values: {
18
- [key: string]: string | boolean;
19
- }) => void;
13
+ onFilter: (values: any) => void;
20
14
  };
21
- declare const Filter: ({ id, className, initialValues, filters, onFilter, }: FilterProps) => React.JSX.Element;
15
+ declare const Filter: ({ id, className, filters, onFilter, }: FilterProps) => React.JSX.Element;
22
16
  export { Filter };
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type MultipleFilterType = 'text' | 'boolean' | 'number';
4
+ type MultipleFilterItem = {
5
+ key: string;
6
+ name: string;
7
+ type: MultipleFilterType;
8
+ };
9
+ type MultipleFilterProps = {
10
+ id?: string;
11
+ className?: string;
12
+ filters?: Array<MultipleFilterItem>;
13
+ onFilter: (values: any) => void;
14
+ };
15
+ declare const MultipleFilter: ({ id, className, filters, onFilter, }: MultipleFilterProps) => React.JSX.Element;
16
+ export { MultipleFilter };
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ type UniqueFilterType = any;
4
+ type UniqueFilterItem = {
5
+ key: string;
6
+ name: string;
7
+ type: UniqueFilterType;
8
+ };
9
+ type UniqueFilterProps = {
10
+ id?: string;
11
+ className?: string;
12
+ filters?: Array<UniqueFilterItem>;
13
+ onFilter: (values: any) => void;
14
+ };
15
+ declare const UniqueFilter: ({ id, className, filters, onFilter, }: UniqueFilterProps) => React.JSX.Element;
16
+ export { UniqueFilter };