@mindly/ui-components 8.2.41 → 8.2.43

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.
Files changed (28) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/lib2/features/ExploreCardSwiperFeature/types.d.ts +2 -0
  3. package/dist/cjs/lib2/shared/assets/icons/IconKeyboard.d.ts +4 -0
  4. package/dist/cjs/lib2/shared/assets/icons/IconMicrophone.d.ts +3 -0
  5. package/dist/cjs/lib2/shared/assets/icons/IconVoiceMode.d.ts +3 -0
  6. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +2 -0
  7. package/dist/cjs/lib2/shared/ui/Button_v2/types.d.ts +4 -2
  8. package/dist/cjs/lib2/shared/ui/ExploreCard/styles.d.ts +1 -1
  9. package/dist/cjs/lib2/shared/ui/ExploreCard/types.d.ts +2 -0
  10. package/dist/cjs/lib2/shared/ui/ProgressCard/types.d.ts +2 -0
  11. package/dist/cjs/lib2/shared/ui/SolidInput/SolidInput.d.ts +4 -0
  12. package/dist/cjs/lib2/shared/ui/SolidInput/SolidInput.stories.d.ts +1 -0
  13. package/dist/cjs/lib2/shared/ui/SolidInput/types.d.ts +8 -0
  14. package/dist/esm/index.js +5 -5
  15. package/dist/esm/lib2/features/ExploreCardSwiperFeature/types.d.ts +2 -0
  16. package/dist/esm/lib2/shared/assets/icons/IconKeyboard.d.ts +4 -0
  17. package/dist/esm/lib2/shared/assets/icons/IconMicrophone.d.ts +3 -0
  18. package/dist/esm/lib2/shared/assets/icons/IconVoiceMode.d.ts +3 -0
  19. package/dist/esm/lib2/shared/assets/icons/index.d.ts +2 -0
  20. package/dist/esm/lib2/shared/ui/Button_v2/types.d.ts +4 -2
  21. package/dist/esm/lib2/shared/ui/ExploreCard/styles.d.ts +1 -1
  22. package/dist/esm/lib2/shared/ui/ExploreCard/types.d.ts +2 -0
  23. package/dist/esm/lib2/shared/ui/ProgressCard/types.d.ts +2 -0
  24. package/dist/esm/lib2/shared/ui/SolidInput/SolidInput.d.ts +4 -0
  25. package/dist/esm/lib2/shared/ui/SolidInput/SolidInput.stories.d.ts +1 -0
  26. package/dist/esm/lib2/shared/ui/SolidInput/types.d.ts +8 -0
  27. package/dist/index.d.ts +18 -3
  28. package/package.json +1 -1
@@ -14,6 +14,8 @@ export type ExploreCardSwiperFeatureProps = React.RefAttributes<SwiperRef> & Swi
14
14
  cards?: ExploreCardData[];
15
15
  className?: string;
16
16
  onInputClicked: (cardId?: string) => void;
17
+ onMicrophoneClick?: (cardId?: string) => void;
18
+ onVoiceButtonClick?: (cardId?: string) => void;
17
19
  isLoading?: boolean;
18
20
  slidesToShow?: number;
19
21
  progressImage: string;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { IconProps } from "../../types";
3
+ export declare const IconKeyboard: React.FC<IconProps>;
4
+ export default IconKeyboard;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { IconProps } from "../..";
3
+ export declare const IconMicrophone: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { IconProps } from "../../types";
3
+ export declare const IconVoiceMode: React.FC<IconProps>;
@@ -156,3 +156,5 @@ export * from './IconBlock';
156
156
  export * from './IconGoogleCalendar';
157
157
  export * from './IconAdvisorAssistance';
158
158
  export * from './IconPhotoCamera';
159
+ export * from './IconVoiceMode';
160
+ export * from './IconKeyboard';
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@ionic/core/components';
2
2
  import { CSSVarStyles } from '../../types';
3
+ import { HTMLAttributes } from 'react';
3
4
  export type ButtonProps = {
4
5
  fill?: 'outline' | 'clear';
5
6
  size?: 'default' | 'large' | 'small';
@@ -15,5 +16,6 @@ export type ButtonProps = {
15
16
  iconPosition?: 'start' | 'center';
16
17
  style?: CSSVarStyles;
17
18
  id?: string;
18
- variant?: 'default' | 'blue' | 'custom';
19
- } & JSX.IonButton;
19
+ variant?: 'default' | 'blue' | 'custom' | 'round';
20
+ slot?: string;
21
+ } & JSX.IonButton & HTMLAttributes<HTMLIonButtonElement>;
@@ -1 +1 @@
1
- export declare const exploreCardStyles: import("tailwind-variants").TVReturnType<{}, undefined, "bg-color-background-anti-flash-light rounded-[20px] p-7 flex flex-col items-start justify-between w-full h-[520px]", {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "bg-color-background-anti-flash-light rounded-[20px] p-7 flex flex-col items-start justify-between w-full h-[520px]", unknown, unknown, undefined>>;
1
+ export declare const exploreCardStyles: import("tailwind-variants").TVReturnType<{}, undefined, "bg-color-background-anti-flash-light rounded-[20px] px-6 py-7 flex flex-col items-start justify-between w-full h-[520px]", {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "bg-color-background-anti-flash-light rounded-[20px] px-6 py-7 flex flex-col items-start justify-between w-full h-[520px]", unknown, unknown, undefined>>;
@@ -5,5 +5,7 @@ export interface ExploreCardProps {
5
5
  badgeColorHex?: string;
6
6
  placeholder?: string;
7
7
  onInputClicked?: () => void;
8
+ onMicrophoneClick?: () => void;
9
+ onVoiceButtonClick?: () => void;
8
10
  className?: string;
9
11
  }
@@ -8,4 +8,6 @@ export interface ProgressCardProps {
8
8
  placeholder: string;
9
9
  circleText: string;
10
10
  onInputClicked?: () => void;
11
+ onMicrophoneClick?: () => void;
12
+ onVoiceButtonClick?: () => void;
11
13
  }
@@ -11,9 +11,13 @@ declare const SolidInput: React.ForwardRefExoticComponent<Partial<import("@ionic
11
11
  showTogglePassword?: boolean;
12
12
  showButton?: boolean;
13
13
  onButtonClick?: () => void;
14
+ onVoiceButtonClick?: () => void;
15
+ onMicrophoneClick?: () => void;
14
16
  onChange?: (event: import("@ionic/core").IonInputCustomEvent<import("@ionic/react").InputChangeEventDetail>) => void;
15
17
  onKeyDown?: React.KeyboardEventHandler;
18
+ onPointerDown?: (event: React.PointerEvent<HTMLIonInputElement>) => void;
16
19
  readonly?: boolean;
17
20
  onClick?: () => void;
21
+ variant?: "default" | "voice";
18
22
  } & React.RefAttributes<HTMLIonInputElement>>;
19
23
  export default SolidInput;
@@ -7,3 +7,4 @@ export declare const Default: Story;
7
7
  export declare const WithError: Story;
8
8
  export declare const Password: Story;
9
9
  export declare const WithButton: Story;
10
+ export declare const VoiceVariant: Story;
@@ -13,8 +13,16 @@ export type SolidInputProps = Partial<Components.IonInput> & {
13
13
  showButton?: boolean;
14
14
  /** Callback function called when the button is clicked */
15
15
  onButtonClick?: () => void;
16
+ onVoiceButtonClick?: () => void;
17
+ onMicrophoneClick?: () => void;
16
18
  onChange?: (event: IonInputCustomEvent<InputChangeEventDetail>) => void;
17
19
  onKeyDown?: KeyboardEventHandler;
20
+ onPointerDown?: (event: React.PointerEvent<HTMLIonInputElement>) => void;
18
21
  readonly?: boolean;
22
+ /**
23
+ * Golden rule: Never use onClick for input.
24
+ * @deprecated
25
+ */
19
26
  onClick?: () => void;
27
+ variant?: 'default' | 'voice';
20
28
  };