@segmentify/ui 0.0.3 → 0.0.5

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 (44) hide show
  1. package/dist/components/atoms/badge.d.ts +1 -1
  2. package/dist/components/atoms/button.d.ts +6 -3
  3. package/dist/components/atoms/carousel.d.ts +1 -1
  4. package/dist/components/atoms/command.d.ts +4 -2
  5. package/dist/components/atoms/label.d.ts +1 -1
  6. package/dist/components/atoms/quill-editor.d.ts +11 -0
  7. package/dist/components/atoms/sidebar.d.ts +4 -4
  8. package/dist/components/atoms/sonner.d.ts +3 -0
  9. package/dist/components/atoms/tooltip.d.ts +2 -1
  10. package/dist/components/molecules/base-button.d.ts +29 -0
  11. package/dist/components/molecules/campaign-title.d.ts +9 -0
  12. package/dist/components/molecules/checkbox-field.d.ts +10 -0
  13. package/dist/components/molecules/combobox-field.d.ts +32 -0
  14. package/dist/components/molecules/confirmation-dialog.d.ts +24 -0
  15. package/dist/components/molecules/creatable-action-icons.d.ts +9 -0
  16. package/dist/components/molecules/date-range-picker.d.ts +15 -0
  17. package/dist/components/molecules/debounced-input.d.ts +11 -0
  18. package/dist/components/molecules/detailed-image-modal.d.ts +18 -0
  19. package/dist/components/molecules/input-field.d.ts +19 -0
  20. package/dist/components/molecules/multi-select-dropdown.d.ts +18 -0
  21. package/dist/components/molecules/select-field.d.ts +16 -0
  22. package/dist/components/molecules/select-multi-field.d.ts +20 -0
  23. package/dist/components/molecules/switch-field.d.ts +7 -0
  24. package/dist/components/molecules/textarea-field.d.ts +11 -0
  25. package/dist/components/molecules/tooltip-field.d.ts +13 -0
  26. package/dist/components/organisms/form-checkbox.d.ts +7 -0
  27. package/dist/components/organisms/form-combobox.d.ts +24 -0
  28. package/dist/components/organisms/form-file-upload.d.ts +19 -0
  29. package/dist/components/organisms/form-input.d.ts +12 -0
  30. package/dist/components/organisms/form-password.d.ts +12 -0
  31. package/dist/components/organisms/form-radio.d.ts +13 -0
  32. package/dist/components/organisms/form-switch.d.ts +7 -0
  33. package/dist/components/organisms/form-textarea.d.ts +9 -0
  34. package/dist/index.d.ts +28 -15
  35. package/dist/lib/design-variants.d.ts +3 -0
  36. package/dist/lib/types.d.ts +7 -0
  37. package/dist/segmentify-ui.cjs +81 -33
  38. package/dist/segmentify-ui.js +27012 -18258
  39. package/package.json +2 -2
  40. package/dist/components/atoms/load-more.d.ts +0 -6
  41. package/dist/components/atoms/select-multi.d.ts +0 -28
  42. package/dist/components/atoms/table-whatsapp.d.ts +0 -35
  43. package/dist/vite.svg +0 -1
  44. /package/dist/{App.d.ts → app.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
- import { badgeVariants } from '@/lib/design-variants';
3
+ import { badgeVariants } from '../../lib/design-variants';
4
4
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
5
5
  asChild?: boolean;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
- import { buttonVariants } from '@/lib/design-variants';
4
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
3
+ import { buttonVariants } from '../../lib/design-variants';
4
+ interface ButtonProps extends React.ComponentProps<'button'> {
5
+ variant?: VariantProps<typeof buttonVariants>['variant'];
6
+ size?: VariantProps<typeof buttonVariants>['size'];
5
7
  asChild?: boolean;
6
- }): import("react/jsx-runtime").JSX.Element;
8
+ }
9
+ declare function Button({ className, variant, size, asChild, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
7
10
  export { Button };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
3
- import { Button } from '@/components/atoms/button';
3
+ import { Button } from '../../components/atoms/button';
4
4
  type CarouselApi = UseEmblaCarouselType[1];
5
5
  type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
6
  type CarouselOptions = UseCarouselParameters[0];
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Command as CommandPrimitive } from 'cmdk';
3
- import { Dialog } from '@/components/atoms/dialog';
3
+ import { Dialog } from '../../components/atoms/dialog';
4
4
  declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
5
  declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
6
  title?: string;
@@ -8,7 +8,9 @@ declare function CommandDialog({ title, description, children, className, showCl
8
8
  className?: string;
9
9
  showCloseButton?: boolean;
10
10
  }): import("react/jsx-runtime").JSX.Element;
11
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
11
+ declare function CommandInput({ containerClassName, className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input> & {
12
+ containerClassName?: string;
13
+ }): import("react/jsx-runtime").JSX.Element;
12
14
  declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
15
  declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
16
  declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as LabelPrimitive from '@radix-ui/react-label';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
- import { labelVariants } from '@/lib/design-variants';
4
+ import { labelVariants } from '../../lib/design-variants';
5
5
  interface LabelProps extends React.ComponentProps<typeof LabelPrimitive.Root> {
6
6
  variant?: VariantProps<typeof labelVariants>['variant'];
7
7
  }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import Quill, { Delta, Range, EmitterSource } from 'quill';
3
+ interface EditorProps {
4
+ readOnly?: boolean;
5
+ defaultValue?: Delta;
6
+ onTextChange?: (html: string) => void;
7
+ onSelectionChange?: (range: Range | null, oldRange: Range | null, source: EmitterSource) => void;
8
+ theme?: 'snow' | 'bubble';
9
+ }
10
+ declare const QuillEditor: React.ForwardRefExoticComponent<EditorProps & React.RefAttributes<Quill>>;
11
+ export { QuillEditor };
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
- import { Button } from '@/components/atoms/button';
4
- import { Input } from '@/components/atoms/input';
5
- import { Separator } from '@/components/atoms/separator';
6
- import { TooltipContent } from '@/components/atoms/tooltip';
3
+ import { Button } from '../../components/atoms/button';
4
+ import { Input } from '../../components/atoms/input';
5
+ import { Separator } from '../../components/atoms/separator';
6
+ import { TooltipContent } from '../../components/atoms/tooltip';
7
7
  declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
8
8
  defaultOpen?: boolean;
9
9
  open?: boolean;
@@ -0,0 +1,3 @@
1
+ import { type ToasterProps } from 'sonner';
2
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Toaster };
@@ -4,4 +4,5 @@ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentPro
4
4
  declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
5
  declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
6
  declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
7
+ declare const TooltipContentWithPortal: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipContentWithPortal, TooltipProvider };
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { buttonVariants } from '../../lib/design-variants';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import type { Union } from 'ts-toolbelt';
5
+ type BaseProps = {
6
+ className?: string;
7
+ type?: 'button' | 'submit' | 'reset';
8
+ size?: VariantProps<typeof buttonVariants>['size'];
9
+ variant?: VariantProps<typeof buttonVariants>['variant'];
10
+ label?: string;
11
+ suffix?: boolean;
12
+ prefix?: boolean;
13
+ isLoading?: boolean;
14
+ onClick?: () => void;
15
+ labelClassName?: string;
16
+ disabled?: boolean;
17
+ form?: string;
18
+ };
19
+ type IconOnlyProps = BaseProps & {
20
+ isIconOnly: true;
21
+ icon: React.ReactNode;
22
+ };
23
+ type DefaultButtonProps = BaseProps & {
24
+ isIconOnly?: false;
25
+ icon?: React.ReactNode;
26
+ };
27
+ type BaseButtonProps = Union.Strict<IconOnlyProps | DefaultButtonProps>;
28
+ declare const BaseButton: ({ icon, type, label, size, variant, suffix, prefix, isLoading, onClick, className, labelClassName, disabled, isIconOnly, form, }: BaseButtonProps) => import("react/jsx-runtime").JSX.Element;
29
+ export { BaseButton };
@@ -0,0 +1,9 @@
1
+ interface CampaignTitleProps {
2
+ label: string;
3
+ editLabel: string;
4
+ status: string;
5
+ statusMap: Record<string, string>;
6
+ campaignId: string;
7
+ }
8
+ declare const CampaignTitle: ({ label, editLabel, status, statusMap, campaignId }: CampaignTitleProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { CampaignTitle };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Checkbox } from '../../components/atoms/checkbox';
3
+ interface Props extends React.ComponentProps<typeof Checkbox> {
4
+ label: string;
5
+ name: string;
6
+ description?: string;
7
+ onCheckedChange: (checked: boolean) => void;
8
+ }
9
+ export declare const CheckboxField: ({ label, name, description, onCheckedChange, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,32 @@
1
+ import type { SelectItemProps } from '../../lib/types';
2
+ import type { Union } from 'ts-toolbelt';
3
+ type BaseProps = {
4
+ isDisabled?: boolean;
5
+ options: SelectItemProps[];
6
+ triggerPlaceholder: string;
7
+ isFormControlWrapper?: boolean;
8
+ avoidCollisions?: boolean;
9
+ contentClassName?: string;
10
+ inputPlaceholder: string;
11
+ emptyMessage: string;
12
+ containerClassName?: string;
13
+ contentListClassName?: string;
14
+ closeOnSelect?: boolean;
15
+ label?: string;
16
+ onInputChange: (inputValue: string) => void;
17
+ handleSelectItem: (value: string | string[], option: SelectItemProps) => void;
18
+ };
19
+ type MultiSelectProps = BaseProps & {
20
+ isMultiSelect: true;
21
+ value: string[];
22
+ hasAllOption?: boolean;
23
+ allOptionLabel?: string;
24
+ handleSelectAll: (value: string | string[], availableOptions: SelectItemProps[]) => void;
25
+ };
26
+ type SingleSelectProps = BaseProps & {
27
+ isMultiSelect?: false;
28
+ value: string;
29
+ };
30
+ type Props = Union.Strict<MultiSelectProps | SingleSelectProps>;
31
+ export declare const ComboboxField: ({ value, isDisabled, hasAllOption, isMultiSelect, options, allOptionLabel, triggerPlaceholder, isFormControlWrapper, avoidCollisions, contentClassName, inputPlaceholder, emptyMessage, containerClassName, contentListClassName, closeOnSelect, label, handleSelectItem, handleSelectAll, onInputChange, }: Props) => import("react/jsx-runtime").JSX.Element;
32
+ 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,9 @@
1
+ import { type ClassValue } from 'clsx';
2
+ type Props = {
3
+ onCreate: () => void;
4
+ onDelete: () => void;
5
+ showCreate?: boolean;
6
+ className?: ClassValue;
7
+ };
8
+ export declare const CreatableActionIcons: ({ onCreate, onDelete, showCreate, className }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,15 @@
1
+ import { type DateRange } from 'react-day-picker';
2
+ import { type ClassValue } from 'clsx';
3
+ type Props = {
4
+ start: Date;
5
+ end: Date;
6
+ onConfirm: (range: DateRange) => void;
7
+ className?: ClassValue;
8
+ triggerButtonClassName?: ClassValue;
9
+ label: string;
10
+ placeholder: string;
11
+ confirmLabel: string;
12
+ disabledCondition: (date: Date) => boolean;
13
+ };
14
+ export declare const DateRangePicker: ({ start, end, onConfirm, className, triggerButtonClassName, label, placeholder, confirmLabel, disabledCondition, }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,11 @@
1
+ interface SearchInputProps {
2
+ name: string;
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ placeholder: string;
6
+ className?: string;
7
+ label?: string;
8
+ inputClassName?: string;
9
+ }
10
+ declare function DebouncedInput({ value, onChange, className, inputClassName, name, placeholder, label }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
11
+ export { DebouncedInput };
@@ -0,0 +1,18 @@
1
+ import { type ClassValue } from 'clsx';
2
+ import type { Union } from 'ts-toolbelt';
3
+ type BaseProps = {
4
+ banner: string;
5
+ campaignName: string;
6
+ imageClassName?: ClassValue;
7
+ };
8
+ type ControlledProps = BaseProps & {
9
+ isControlled: true;
10
+ open: boolean;
11
+ setOpen: (open: boolean) => void;
12
+ };
13
+ type UncontrolledProps = BaseProps & {
14
+ isControlled?: false;
15
+ };
16
+ type DetailedImageModalProps = Union.Strict<ControlledProps | UncontrolledProps>;
17
+ export declare const DetailedImageModal: ({ banner, campaignName, isControlled, open, setOpen, imageClassName, }: DetailedImageModalProps) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { labelVariants } from '../../lib/design-variants';
4
+ export interface InputFieldProps {
5
+ name: string;
6
+ value: string;
7
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ placeholder: string;
9
+ label?: string;
10
+ labelVariant?: VariantProps<typeof labelVariants>['variant'];
11
+ type?: React.HTMLInputTypeAttribute;
12
+ description?: string;
13
+ className?: string;
14
+ isReadOnly?: boolean;
15
+ inputClassName?: string;
16
+ hasRequiredIndicator?: boolean;
17
+ }
18
+ declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<HTMLInputElement>>;
19
+ export { InputField };
@@ -0,0 +1,18 @@
1
+ import { SelectItemProps } from '../../lib/types';
2
+ interface MultiSelectDropdownProps {
3
+ label: string;
4
+ options: SelectItemProps[];
5
+ value: string[];
6
+ onChange: (value: string[]) => void;
7
+ toggleAllLabel?: string;
8
+ optionSuffix?: string;
9
+ translateOptions?: boolean;
10
+ containerClassName?: string;
11
+ contentClassName?: string;
12
+ triggerClassName?: string;
13
+ showSelectedItemLabels?: boolean;
14
+ showErrorPlaceholder?: boolean;
15
+ error?: string;
16
+ }
17
+ declare function MultiSelectDropdown({ label, options, value, onChange, toggleAllLabel, optionSuffix, translateOptions, containerClassName, contentClassName, triggerClassName, showSelectedItemLabels, showErrorPlaceholder, error, }: MultiSelectDropdownProps): import("react/jsx-runtime").JSX.Element;
18
+ export { MultiSelectDropdown };
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { Select } from '../../components/atoms/select';
3
+ import type { SelectItemProps } from '../../lib/types';
4
+ interface SelectFieldProps extends React.ComponentProps<typeof Select> {
5
+ options: SelectItemProps[];
6
+ placeholder: string;
7
+ hasFormControlWrapper?: boolean;
8
+ selectContentClassName?: string;
9
+ triggerClassName: string;
10
+ containerClassName: string;
11
+ onChange: (value: string) => void;
12
+ value: string;
13
+ label: string;
14
+ }
15
+ export declare const SelectField: ({ options, placeholder, hasFormControlWrapper, selectContentClassName, onChange, value, label, triggerClassName, containerClassName, ...props }: SelectFieldProps) => import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,20 @@
1
+ import { type ActionMeta, type SingleValue, type MultiValue, type InputActionMeta } from 'react-select';
2
+ import { SelectItemProps } from '../../lib/types';
3
+ type SelectFieldProps = {
4
+ label?: string;
5
+ name: string;
6
+ options: SelectItemProps[];
7
+ value: SingleValue<SelectItemProps> | MultiValue<SelectItemProps>;
8
+ onChange?: (newValue: SingleValue<SelectItemProps> | MultiValue<SelectItemProps>, actionMeta: ActionMeta<SelectItemProps>) => void;
9
+ onInputChange?: (inputValue: string, actionMeta: InputActionMeta) => void;
10
+ placeholder?: string;
11
+ isClearable?: boolean;
12
+ isSearchable?: boolean;
13
+ isMulti?: boolean;
14
+ isDisabled?: boolean;
15
+ isCreatable?: boolean;
16
+ description?: string;
17
+ className?: string;
18
+ };
19
+ export declare function SelectMultiField({ label, name, options, value, onChange, onInputChange, placeholder, isClearable, isSearchable, isMulti, isDisabled, description, className, isCreatable, }: SelectFieldProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Switch } from '../../components/atoms/switch';
2
+ interface Props extends React.ComponentProps<typeof Switch> {
3
+ label: string;
4
+ name: string;
5
+ }
6
+ export declare const SwitchField: ({ label, name, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Textarea } from '../../components/atoms/textarea';
3
+ import { type ClassValue } from 'clsx';
4
+ interface Props extends React.ComponentProps<typeof Textarea> {
5
+ textAreaClassName?: ClassValue;
6
+ value: string;
7
+ onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
8
+ label?: string;
9
+ }
10
+ export declare const TextAreaField: ({ textAreaClassName, value, onChange, label, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ type TooltipFieldProps = {
3
+ trigger: React.ReactNode;
4
+ content: React.ReactNode;
5
+ asChild?: boolean;
6
+ wrapTrigger?: boolean;
7
+ triggerClassName?: string;
8
+ contentClassName?: string;
9
+ disableContent?: boolean;
10
+ isPortal?: boolean;
11
+ };
12
+ declare const TooltipField: ({ trigger, content, asChild, wrapTrigger, triggerClassName, contentClassName, disableContent, isPortal, }: TooltipFieldProps) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
13
+ export { TooltipField };
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ name: string;
3
+ label: string;
4
+ formClassName?: string;
5
+ };
6
+ export declare const FormCheckbox: ({ name, formClassName, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { SelectItemProps } from '../../lib/types';
2
+ type Props = {
3
+ name: string;
4
+ label: string;
5
+ triggerPlaceholder: string;
6
+ inputPlaceholder: string;
7
+ options: SelectItemProps[];
8
+ description?: string;
9
+ isMultiSelect?: boolean;
10
+ emptyMessage: string;
11
+ containerClassName?: string;
12
+ contentClassName?: string;
13
+ contentListClassName?: string;
14
+ avoidCollisions?: boolean;
15
+ hasClearButton?: boolean;
16
+ hasAllOption?: boolean;
17
+ allOptionLabel?: string;
18
+ closeOnSelect?: boolean;
19
+ onInputChange: (inputValue: string) => void;
20
+ isDisabled?: boolean;
21
+ tooltipContent?: string;
22
+ };
23
+ export declare const FormCombobox: ({ name, label, triggerPlaceholder, inputPlaceholder, options, description, isMultiSelect, emptyMessage, containerClassName, contentClassName, contentListClassName, avoidCollisions, hasClearButton, hasAllOption, allOptionLabel, closeOnSelect, onInputChange, isDisabled, tooltipContent, }: Props) => import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { ClassValue } from 'clsx';
2
+ type FormFileUploadProps = {
3
+ name: string;
4
+ label?: string;
5
+ uploadButtonLabel?: string;
6
+ description?: string;
7
+ accept?: string;
8
+ disabled?: boolean;
9
+ multiple?: boolean;
10
+ containerClassName?: ClassValue;
11
+ tooltipContent?: string;
12
+ hasRequiredIndicator?: boolean;
13
+ onUpload?: (file: File) => Promise<string>;
14
+ };
15
+ export declare const FormFileUpload: {
16
+ ({ name, label, uploadButtonLabel, description, accept, disabled, multiple, containerClassName, tooltipContent, hasRequiredIndicator, onUpload, }: FormFileUploadProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { ClassValue } from 'clsx';
2
+ type Props = {
3
+ label: string;
4
+ containerClassName?: ClassValue;
5
+ name: string;
6
+ placeholder: string;
7
+ description?: string;
8
+ tooltipContent?: string;
9
+ hasRequiredIndicator?: boolean;
10
+ };
11
+ export declare const FormInput: ({ label, containerClassName, name, description, placeholder, tooltipContent, hasRequiredIndicator, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { ClassValue } from 'clsx';
2
+ type Props = {
3
+ label: string;
4
+ name: string;
5
+ placeholder: string;
6
+ containerClassName?: ClassValue;
7
+ description?: string;
8
+ tooltipContent?: string;
9
+ hasRequiredIndicator?: boolean;
10
+ };
11
+ export declare const FormPassword: ({ label, name, containerClassName, description, placeholder, tooltipContent, hasRequiredIndicator, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { SelectItemProps } from '../../lib/types';
2
+ type Props = {
3
+ name: string;
4
+ label: string;
5
+ items: SelectItemProps[];
6
+ containerClassName?: string;
7
+ itemClassName?: string;
8
+ itemLabelClassName?: string;
9
+ selectedClassName?: string;
10
+ description?: string;
11
+ };
12
+ export declare const FormRadio: ({ name, label, items, containerClassName, itemClassName, itemLabelClassName, selectedClassName, description, }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ name: string;
3
+ label: string;
4
+ description?: string;
5
+ };
6
+ export declare const FormSwitch: ({ name, label, description, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ type Props = {
2
+ label: string;
3
+ name: string;
4
+ placeholder: string;
5
+ description?: string;
6
+ containerClassName?: string;
7
+ };
8
+ export declare const FormTextarea: ({ label, name, description, placeholder, containerClassName, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,41 +1,52 @@
1
1
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './components/atoms/accordion';
2
2
  export { AspectRatio } from './components/atoms/aspect-ratio';
3
- export { Avatar } from './components/atoms/avatar';
3
+ export { Avatar, AvatarFallback, AvatarImage } from './components/atoms/avatar';
4
4
  export { Badge } from './components/atoms/badge';
5
- export { Breadcrumb } from './components/atoms/breadcrumb';
5
+ export { BaseButton } from './components/molecules/base-button';
6
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbSeparator, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, } from './components/atoms/breadcrumb';
6
7
  export { Button } from './components/atoms/button';
7
- export { Calendar } from './components/atoms/calendar';
8
+ export { Calendar, CalendarDayButton } from './components/atoms/calendar';
9
+ export { CampaignTitle } from './components/molecules/campaign-title';
8
10
  export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, } from './components/atoms/card';
9
11
  export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, } from './components/atoms/carousel';
10
12
  export { Case, ComponentSwitch, Default } from './components/atoms/component-switch';
11
- export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, } from './components/atoms/chart';
13
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, type ChartConfig, } from './components/atoms/chart';
12
14
  export { Checkbox } from './components/atoms/checkbox';
13
15
  export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './components/atoms/collapsible';
14
16
  export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, } from './components/atoms/command';
15
17
  export { ContentWrapper } from './components/atoms/content-wrapper';
18
+ export { CreatableActionIcons } from './components/molecules/creatable-action-icons';
19
+ export { CheckboxField } from './components/molecules/checkbox-field';
20
+ export { ConfirmationDialog } from './components/molecules/confirmation-dialog';
21
+ export { ComboboxField } from './components/molecules/combobox-field';
16
22
  export { FormattedDate } from './components/atoms/date';
23
+ export { DateRangePicker } from './components/molecules/date-range-picker';
24
+ export { DebouncedInput } from './components/molecules/debounced-input';
17
25
  export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogOverlay, DialogPortal, } from './components/atoms/dialog';
18
- export { Drawer } from './components/atoms/drawer';
19
- export { DropdownMenu } from './components/atoms/dropdown-menu';
26
+ export { Drawer, DrawerContent, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, } from './components/atoms/drawer';
27
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from './components/atoms/dropdown-menu';
20
28
  export { Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, EmptyContent } from './components/atoms/empty';
21
29
  export { ErrorMessage } from './components/atoms/error-message';
22
30
  export { FieldDescription } from './components/atoms/field-description';
23
31
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from './components/atoms/form';
24
- export { HoverCard } from './components/atoms/hover-card';
32
+ export { FormCombobox } from './components/organisms/form-combobox';
33
+ export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/atoms/hover-card';
25
34
  export { Icon } from './components/atoms/icon';
26
35
  export { Input } from './components/atoms/input';
36
+ export { InputField } from './components/molecules/input-field';
27
37
  export { InputOTP } from './components/atoms/input-otp';
28
38
  export { Kbd, KbdGroup } from './components/atoms/kbd';
29
39
  export { Label } from './components/atoms/label';
30
- export { LoadMore } from './components/atoms/load-more';
40
+ export { MultiSelectDropdown } from './components/molecules/multi-select-dropdown';
31
41
  export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from './components/atoms/native-select';
32
- export { Pagination } from './components/atoms/pagination';
33
- export { Popover } from './components/atoms/popover';
34
- export { RadioGroup } from './components/atoms/radio-group';
35
- export { ScrollArea } from './components/atoms/scroll-area';
36
- export { Select } from './components/atoms/select';
37
- export { SelectMulti } from './components/atoms/select-multi';
42
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './components/atoms/pagination';
43
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/atoms/popover';
44
+ export { RadioGroup, RadioGroupItem } from './components/atoms/radio-group';
45
+ export { ScrollArea, ScrollBar } from './components/atoms/scroll-area';
46
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './components/atoms/select';
47
+ export { SelectField } from './components/molecules/select-field';
38
48
  export { Separator } from './components/atoms/separator';
49
+ export { SelectMultiField } from './components/molecules/select-multi-field';
39
50
  export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/atoms/sheet';
40
51
  export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, } from './components/atoms/sidebar';
41
52
  export { Skeleton } from './components/atoms/skeleton';
@@ -44,7 +55,9 @@ export { Spinner } from './components/atoms/spinner';
44
55
  export { Switch } from './components/atoms/switch';
45
56
  export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/atoms/tabs';
46
57
  export { Table, TableHeader, TableBody, TableHeadRow, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from './components/atoms/table';
47
- export { Table as TableWhatsApp, TableHeader as TableWhatsAppHeader, TableBody as TableWhatsAppBody, TableHeadRow as TableWhatsAppHeadRow, TableFooter as TableWhatsAppFooter, TableHead as TableWhatsAppHead, TableRow as TableWhatsAppRow, TableCell as TableWhatsAppCell, TableCaption as TableWhatsAppCaption, } from './components/atoms/table-whatsapp';
48
58
  export { Textarea } from './components/atoms/textarea';
59
+ export { TextAreaField } from './components/molecules/textarea-field';
49
60
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/atoms/tooltip';
61
+ export { TooltipField } from './components/molecules/tooltip-field';
62
+ export { QuillEditor } from './components/atoms/quill-editor';
50
63
  export { cn } from './lib/utils';
@@ -8,3 +8,6 @@ export declare const labelVariants: (props?: ({
8
8
  export declare const badgeVariants: (props?: ({
9
9
  variant?: "secondary" | "success" | "destructive" | "outline" | "default" | "subtle" | null | undefined;
10
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ export declare const selectVariants: (props?: ({
12
+ variant?: "default" | "isFocused" | "multiSelected" | "isSelected" | "isControlFocused" | "isDisabled" | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1,7 @@
1
+ import type { ControllerRenderProps, FieldValues } from 'react-hook-form';
2
+ export type SelectItemProps = {
3
+ value: string;
4
+ label: string;
5
+ name?: string;
6
+ };
7
+ export type FormFieldType = ControllerRenderProps<FieldValues, string>;