@segmentify/ui 0.0.54 → 0.0.56

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,3 +1,3 @@
1
1
  import * as React from 'react';
2
- declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
2
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
3
  export { Input };
@@ -0,0 +1,2 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ export declare const Iphone15: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as RPNInput from 'react-phone-number-input';
3
+ type PhoneInputProps = Omit<React.ComponentProps<'input'>, 'onChange' | 'value' | 'ref'> & Omit<RPNInput.Props<typeof RPNInput.default>, 'onChange'> & {
4
+ onChange?: (value: RPNInput.Value) => void;
5
+ };
6
+ declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps>;
7
+ export { PhoneInput };
@@ -0,0 +1,6 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ type PreviewSingleButtonProps = {
3
+ className?: string;
4
+ };
5
+ export declare const PreviewSingleButton: ({ children, className }: PropsWithChildren<PreviewSingleButtonProps>) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from 'class-variance-authority';
3
+ import { buttonVariants } from '../../lib/design-variants';
4
+ import type { Union } from 'ts-toolbelt';
5
+ type BaseProps = {
6
+ title: string;
7
+ description: string;
8
+ onAction: () => void;
9
+ children?: React.ReactNode;
10
+ cancelLabel: string;
11
+ actionLabel: string;
12
+ actionVariant?: VariantProps<typeof buttonVariants>['variant'];
13
+ };
14
+ type ControlledProps = BaseProps & {
15
+ controlled: true;
16
+ open: boolean;
17
+ setOpen: (open: boolean) => void;
18
+ };
19
+ type UncontrolledProps = BaseProps & {
20
+ controlled?: false;
21
+ };
22
+ type Props = Union.Strict<ControlledProps | UncontrolledProps>;
23
+ export declare const ConfirmationDialog: ({ title, description, onAction, children, cancelLabel, actionLabel, actionVariant, open, setOpen, controlled, }: Props) => import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { PhoneInput } from '../../components/atoms/phone-input';
3
+ import flags from 'react-phone-number-input/flags';
4
+ export type FormPhoneInputProps = {
5
+ label: string;
6
+ name: string;
7
+ description?: string;
8
+ showErrorPlaceholder?: boolean;
9
+ errorClassName?: string;
10
+ containerClassName?: string;
11
+ labelClassName?: string;
12
+ mainLanguage?: keyof typeof flags;
13
+ } & Omit<React.ComponentProps<typeof PhoneInput>, 'defaultCountry' | 'value' | 'onChange' | 'onBlur' | 'name' | 'ref'>;
14
+ export declare const FormPhoneInput: ({ label, name, description, showErrorPlaceholder, errorClassName, containerClassName, labelClassName, mainLanguage, ...props }: FormPhoneInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { MessagingPhoneProps } from '../../types/messaging';
2
+ export declare const PreviewSMS: {
3
+ ({ messageData }: MessagingPhoneProps): import("react/jsx-runtime").JSX.Element | null;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,15 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ type WhatsappMessageProps = {
3
+ cards?: {
4
+ image?: string;
5
+ title?: string;
6
+ content?: string;
7
+ buttons: {
8
+ text?: string;
9
+ yupButtonsText?: string;
10
+ }[];
11
+ }[];
12
+ includeTime?: boolean;
13
+ };
14
+ export declare const WhatsappMessage: ({ children, cards, includeTime }: PropsWithChildren<WhatsappMessageProps>) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -4,6 +4,7 @@ type FormCheckboxProps<TFieldValues extends FieldValues = FieldValues> = {
4
4
  control?: Control<TFieldValues>;
5
5
  label: string;
6
6
  formClassName?: string;
7
+ containerClassName?: string;
7
8
  };
8
9
  export declare const FormCheckbox: <TFieldValues extends FieldValues = FieldValues>({ name, control, formClassName, ...props }: FormCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
9
10
  export {};
package/dist/index.d.ts CHANGED
@@ -42,6 +42,7 @@ export { FormRadio } from './components/organisms/form-radio';
42
42
  export { FormSlider } from './components/organisms/form-slider';
43
43
  export { FormSwitch } from './components/organisms/form-switch';
44
44
  export { FormTextarea } from './components/organisms/form-textarea';
45
+ export { FormPhoneInput } from './components/molecules/form-phone-input';
45
46
  export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/atoms/hover-card';
46
47
  export { Icon } from './components/atoms/icon';
47
48
  export { Input } from './components/atoms/input';
@@ -56,6 +57,7 @@ export { MultiSelectDropdown } from './components/molecules/multi-select-dropdow
56
57
  export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from './components/atoms/native-select';
57
58
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './components/atoms/pagination';
58
59
  export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/atoms/popover';
60
+ export { PhoneInput } from './components/atoms/phone-input';
59
61
  export { PreviewCarousel } from './components/molecules/preview-carousel';
60
62
  export { PreviewRichMedia } from './components/molecules/preview-rich-media';
61
63
  export { MessagingPreview } from './components/molecules/messaging-preview';