@mindly/ui-components 5.64.2 → 5.66.0

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.
@@ -15,6 +15,7 @@ type CardModalProps = {
15
15
  onClose: () => void;
16
16
  }) => React.ReactNode;
17
17
  mode?: HTMLIonModalElement['mode'];
18
+ onDidPresent?: () => void;
18
19
  };
19
20
  declare const CardModal: React.ForwardRefExoticComponent<CardModalProps & {
20
21
  children?: React.ReactNode;
@@ -6,8 +6,9 @@ type Props = {
6
6
  height?: number | undefined;
7
7
  selections: Record<string, SelectionType[]>;
8
8
  defaults?: Record<string, string>;
9
- onChange(value: any): void;
9
+ onChange(value: Record<string, SelectionType>): void;
10
10
  className?: string;
11
+ compareBy?: 'value' | 'label';
11
12
  };
12
- declare const DrumListPicker: ({ height, selections, defaults, onChange, className, }: Props) => JSX.Element;
13
+ declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, }: Props) => JSX.Element;
13
14
  export default DrumListPicker;
package/dist/index.d.ts CHANGED
@@ -1988,10 +1988,11 @@ type Props$2 = {
1988
1988
  height?: number | undefined;
1989
1989
  selections: Record<string, SelectionType[]>;
1990
1990
  defaults?: Record<string, string>;
1991
- onChange(value: any): void;
1991
+ onChange(value: Record<string, SelectionType>): void;
1992
1992
  className?: string;
1993
+ compareBy?: 'value' | 'label';
1993
1994
  };
1994
- declare const DrumListPicker: ({ height, selections, defaults, onChange, className, }: Props$2) => JSX.Element;
1995
+ declare const DrumListPicker: ({ height, selections, defaults, onChange, className, compareBy, }: Props$2) => JSX.Element;
1995
1996
 
1996
1997
  type FontWeight = 'Regular' | 'Semi' | 'Bold';
1997
1998
  type CollapsableTextProps = {
@@ -2461,6 +2462,7 @@ type CardModalProps = {
2461
2462
  onClose: () => void;
2462
2463
  }) => React__default.ReactNode;
2463
2464
  mode?: HTMLIonModalElement['mode'];
2465
+ onDidPresent?: () => void;
2464
2466
  };
2465
2467
  declare const CardModal: React__default.ForwardRefExoticComponent<CardModalProps & {
2466
2468
  children?: React__default.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.64.2",
3
+ "version": "5.66.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",