ymy-components 0.0.39 → 0.0.40

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,4 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
+ import { default as DynamicLanguage, CharacterPreference } from '../types/DynamicLanguage';
2
3
  export declare const PrimaryIcons: {
3
4
  readonly translate: import('react-icons/lib').IconType;
4
5
  readonly sunny: import('react-icons/lib').IconType;
@@ -8,12 +9,15 @@ export type PrimaryIconName = keyof typeof PrimaryIcons;
8
9
  export type SecondaryIconName = 'chevron' | 'switch';
9
10
  interface ListItemProps {
10
11
  icon: PrimaryIconName;
11
- text: string;
12
+ text?: string;
13
+ textContent?: DynamicLanguage;
14
+ characterPreference?: CharacterPreference;
15
+ animate?: boolean;
12
16
  actionIcon?: SecondaryIconName;
13
17
  onClick?: () => void;
14
18
  styles?: React.CSSProperties;
15
19
  switchChecked?: boolean;
16
20
  onSwitchChange?: (checked: boolean) => void;
17
21
  }
18
- export declare const ListItem: ({ icon, text, actionIcon, onClick, styles, switchChecked, onSwitchChange, }: ListItemProps) => ReactElement;
22
+ export declare const ListItem: ({ icon, text, textContent, characterPreference, animate, actionIcon, onClick, styles, switchChecked, onSwitchChange, }: ListItemProps) => ReactElement;
19
23
  export {};