@pagopa/selfcare-common-frontend 0.1.0 → 0.1.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/README.md CHANGED
@@ -54,7 +54,7 @@ FilterModalConfig fields:
54
54
  | data | Array<T> | Y | The list of values between to which choose |
55
55
  | getLabel | (e: T) => string | Y | A function that will select the label to show |
56
56
  | getValue | (e: T) => string | Y | A function that will select the value to return when selecting an item |
57
- | onFilterChange | (v: string) => void | Y | The function invoked when selecting a value |
57
+ | onFilterChange | (v: V) => void | Y | The function invoked when selecting a value |
58
58
 
59
59
  ## SessionModal
60
60
  Selfcare's popup
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20220120.1 - selfcare-common-frontend.deploy(17276)
2
- tags/v0.1.0^0 e6840f34e8bce36386c6eacc99063f040f50f8a7
1
+ 20220120.2 - selfcare-common-frontend.deploy(17331)
2
+ tags/v0.1.1^0 01a75c35fd9797944fbc4d330218a6a794d04cfa
@@ -7,13 +7,13 @@ declare type Props = {
7
7
  /** The popup title */
8
8
  title: string;
9
9
  /** @see FilterModalConfig */
10
- filterModalConfig?: FilterModalConfig<any>;
10
+ filterModalConfig?: FilterModalConfig<any, any>;
11
11
  /** The popup height */
12
12
  height?: string;
13
13
  /** The popup minHeight */
14
14
  minHeight?: string;
15
15
  };
16
- export declare type FilterModalConfig<T> = {
16
+ export declare type FilterModalConfig<T, V> = {
17
17
  /** The list of values between to which choose */
18
18
  data: Array<T>;
19
19
  /** A function that will select the label to show */
@@ -21,7 +21,7 @@ export declare type FilterModalConfig<T> = {
21
21
  /** A function that will select the value to return when selecting an item */
22
22
  getValue: (e: T) => string;
23
23
  /** The function invoked when selecting a value */
24
- onFilterChange: (v: string) => void;
24
+ onFilterChange: (v: V) => void;
25
25
  };
26
26
  /** Modal used to show a list of values from which to choose a single value */
27
27
  export default function FilterModal({ open, handleClose, title, filterModalConfig, height, minHeight, }: Props): JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagopa/selfcare-common-frontend",
3
3
  "description": "Shared React components for the pagopa selfcare project",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",