@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.
- package/dist/components/atoms/input.d.ts +1 -1
- package/dist/components/atoms/iphone-15.d.ts +2 -0
- package/dist/components/atoms/phone-input.d.ts +7 -0
- package/dist/components/atoms/preview-single-button.d.ts +6 -0
- package/dist/components/molecules/confirmation-dialog.d.ts +24 -0
- package/dist/components/molecules/form-phone-input.d.ts +14 -0
- package/dist/components/molecules/preview-sms.d.ts +5 -0
- package/dist/components/molecules/whatsapp-message.d.ts +15 -0
- package/dist/components/organisms/form-checkbox.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/segmentify-ui.cjs +110 -92
- package/dist/segmentify-ui.js +34336 -22057
- package/dist/ui.css +47 -0
- package/package.json +10 -9
- package/dist/hooks/use-popup-layer-z-index.d.ts +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare
|
|
2
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export { Input };
|
|
@@ -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,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';
|