@segmentify/ui 0.0.54 → 0.0.55
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/phone-input.d.ts +7 -0
- package/dist/components/atoms/phone-inpux.d.ts +7 -0
- package/dist/components/molecules/form-phone-input.d.ts +14 -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 +9 -8
|
@@ -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,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,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 | undefined;
|
|
9
|
+
errorClassName?: string;
|
|
10
|
+
containerClassName?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
mainLanguage?: keyof typeof flags | undefined;
|
|
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;
|
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';
|