@mindly/ui-components 5.64.1 → 5.65.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.
@@ -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;
@@ -1,6 +1,8 @@
1
1
  import { JSX } from '@ionic/core/components';
2
+ import { KeyboardEvent } from 'react';
2
3
  export interface TextareaV2Props extends Omit<JSX.IonTextarea, 'color' | 'enterkeyhint' | 'inputmode' | 'mode'> {
3
4
  borderTop?: boolean;
4
5
  showCounter?: boolean;
5
6
  className?: string;
7
+ onKeyPress?: (e: KeyboardEvent<HTMLIonTextareaElement>) => void;
6
8
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText, ReactElement, ChangeEvent, SVGAttributes, InputHTMLAttributes, SVGProps, PropsWithChildren } from 'react';
2
+ import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText, ReactElement, ChangeEvent, SVGAttributes, KeyboardEvent, InputHTMLAttributes, SVGProps, PropsWithChildren } from 'react';
3
3
  import { JSX as JSX$1 } from '@ionic/core/components';
4
4
  import * as react_i18next from 'react-i18next';
5
5
  import { WithTranslation } from 'react-i18next';
@@ -1819,6 +1819,7 @@ interface TextareaV2Props extends Omit<JSX$1.IonTextarea, 'color' | 'enterkeyhin
1819
1819
  borderTop?: boolean;
1820
1820
  showCounter?: boolean;
1821
1821
  className?: string;
1822
+ onKeyPress?: (e: KeyboardEvent<HTMLIonTextareaElement>) => void;
1822
1823
  }
1823
1824
 
1824
1825
  declare const _default$j: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaV2Props & React__default.RefAttributes<HTMLIonTextareaElement>>>;
@@ -1987,10 +1988,11 @@ type Props$2 = {
1987
1988
  height?: number | undefined;
1988
1989
  selections: Record<string, SelectionType[]>;
1989
1990
  defaults?: Record<string, string>;
1990
- onChange(value: any): void;
1991
+ onChange(value: Record<string, SelectionType>): void;
1991
1992
  className?: string;
1993
+ compareBy?: 'value' | 'label';
1992
1994
  };
1993
- 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;
1994
1996
 
1995
1997
  type FontWeight = 'Regular' | 'Semi' | 'Bold';
1996
1998
  type CollapsableTextProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.64.1",
3
+ "version": "5.65.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",