ymy-components 0.0.32 → 0.0.33

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,11 +1,12 @@
1
1
  import { CSSProperties } from 'react';
2
- import { default as DynamicLanguage } from '../types/DynamicLanguage';
2
+ import { default as DynamicLanguage, CharacterPreference } from '../types/DynamicLanguage';
3
3
  type AnimatedTextProps = {
4
4
  animate: boolean;
5
5
  content: DynamicLanguage;
6
6
  textStyles?: CSSProperties;
7
7
  htmlElement?: keyof JSX.IntrinsicElements;
8
8
  fadeIn?: boolean;
9
+ characterPreference?: CharacterPreference;
9
10
  };
10
- export default function AnimatedText({ animate, content, textStyles, htmlElement, fadeIn, }: AnimatedTextProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function AnimatedText({ animate, content, textStyles, htmlElement, fadeIn, characterPreference, }: AnimatedTextProps): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -1,3 +1,4 @@
1
+ import { CharacterPreference } from '../types/DynamicLanguage';
1
2
  /**
2
3
  * Props for the BannerButton component.
3
4
  */
@@ -33,4 +34,9 @@ export type BannerButtonProps = {
33
34
  * when the button is clicked. If omitted, a default action may be used.
34
35
  */
35
36
  onClick?: () => void;
37
+ /**
38
+ * The user's preferred Chinese character set for the animation.
39
+ * Defaults to 'simplified' if not specified.
40
+ */
41
+ characterPreference?: CharacterPreference;
36
42
  };
@@ -1,15 +1,21 @@
1
1
  import { ReactElement } from 'react';
2
- export declare const AvailableIcons: {
2
+ export declare const PrimaryIcons: {
3
3
  readonly translate: import('react-icons/lib').IconType;
4
4
  readonly sunny: import('react-icons/lib').IconType;
5
5
  readonly character: () => import("react/jsx-runtime").JSX.Element;
6
6
  };
7
- export type IconName = keyof typeof AvailableIcons;
7
+ export declare const SecondaryIcons: {
8
+ readonly chevron: import('react-icons/lib').IconType;
9
+ readonly switch: import('react-icons/lib').IconType;
10
+ };
11
+ export type PrimaryIconName = keyof typeof PrimaryIcons;
12
+ export type SecondaryIconName = keyof typeof SecondaryIcons;
8
13
  interface ListItemProps {
9
- icon: IconName;
14
+ icon: PrimaryIconName;
10
15
  text: string;
16
+ actionIcon?: SecondaryIconName;
11
17
  onClick?: () => void;
12
18
  styles?: React.CSSProperties;
13
19
  }
14
- export declare const ListItem: ({ icon, text, onClick, styles }: ListItemProps) => ReactElement;
20
+ export declare const ListItem: ({ icon, text, actionIcon, onClick, styles, }: ListItemProps) => ReactElement;
15
21
  export {};
@@ -4,5 +4,6 @@ export declare const ContentSection: import('styled-components/dist/types').ISty
4
4
  export declare const UnorderedListItemContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
5
5
  export declare const ListItemContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
6
6
  export declare const ListItemContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const ListItemLeftContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
8
  export declare const ListItemIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
9
  export declare const ListItemText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;