@segmentify/ui 0.0.57 → 0.0.59
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/autocomplete.d.ts +13 -0
- package/dist/components/atoms/calendar.d.ts +1 -1
- package/dist/components/atoms/chart.d.ts +1 -1
- package/dist/components/atoms/form.d.ts +1 -1
- package/dist/components/atoms/quill-editor.d.ts +1 -1
- package/dist/components/molecules/async-combobox.d.ts +15 -0
- package/dist/components/molecules/autocomplete-field.d.ts +17 -0
- package/dist/components/molecules/base-button.d.ts +1 -1
- package/dist/components/molecules/date-range-picker.d.ts +1 -1
- package/dist/components/molecules/form-phone-input.d.ts +1 -1
- package/dist/components/molecules/recommendation-card/components/selected-algorithms.d.ts +1 -1
- package/dist/components/molecules/select-multi-field.d.ts +1 -1
- package/dist/components/molecules/textarea-field.d.ts +1 -1
- package/dist/components/organisms/data-table/index.d.ts +3 -3
- package/dist/components/organisms/form-select.d.ts +1 -1
- package/dist/components/organisms/timeline.d.ts +1 -1
- package/dist/hooks/use-data-table.d.ts +6 -2
- package/dist/index.d.ts +1 -0
- package/dist/mock/columns.d.ts +1 -1
- package/dist/segmentify-ui.cjs +271 -118
- package/dist/segmentify-ui.js +109517 -57667
- package/dist/src/app.d.ts +14 -0
- package/dist/src/components/atoms/accordion.d.ts +9 -0
- package/dist/src/components/atoms/alert-dialog.d.ts +18 -0
- package/dist/src/components/atoms/aspect-ratio.d.ts +3 -0
- package/dist/src/components/atoms/avatar.d.ts +6 -0
- package/dist/src/components/atoms/badge.d.ts +7 -0
- package/dist/src/components/atoms/breadcrumb.d.ts +11 -0
- package/dist/src/components/atoms/button.d.ts +10 -0
- package/dist/src/components/atoms/calendar.d.ts +8 -0
- package/dist/src/components/atoms/card.d.ts +9 -0
- package/dist/src/components/atoms/carousel.d.ts +19 -0
- package/dist/src/components/atoms/chart.d.ts +40 -0
- package/dist/src/components/atoms/checkbox.d.ts +4 -0
- package/dist/src/components/atoms/collapsible.d.ts +5 -0
- package/dist/src/components/atoms/combobox.d.ts +24 -0
- package/dist/src/components/atoms/command.d.ts +20 -0
- package/dist/src/components/atoms/component-switch.d.ts +19 -0
- package/dist/src/components/atoms/content-wrapper.d.ts +11 -0
- package/dist/src/components/atoms/date.d.ts +4 -0
- package/dist/src/components/atoms/dialog.d.ts +16 -0
- package/dist/src/components/atoms/drawer.d.ts +13 -0
- package/dist/src/components/atoms/dropdown-menu.d.ts +25 -0
- package/dist/src/components/atoms/empty.d.ts +11 -0
- package/dist/src/components/atoms/error-message.d.ts +6 -0
- package/dist/src/components/atoms/field-description.d.ts +6 -0
- package/dist/src/components/atoms/form.d.ts +17 -0
- package/dist/src/components/atoms/hover-card.d.ts +6 -0
- package/dist/src/components/atoms/icon.d.ts +6 -0
- package/dist/src/components/atoms/input-group.d.ts +16 -0
- package/dist/src/components/atoms/input-otp.d.ts +20 -0
- package/dist/src/components/atoms/input.d.ts +3 -0
- package/dist/src/components/atoms/kbd.d.ts +3 -0
- package/dist/src/components/atoms/label.d.ts +9 -0
- package/dist/src/components/atoms/native-select.d.ts +7 -0
- package/dist/src/components/atoms/pagination.d.ts +13 -0
- package/dist/src/components/atoms/phone-input.d.ts +7 -0
- package/dist/src/components/atoms/phone-preview.d.ts +5 -0
- package/dist/src/components/atoms/popover.d.ts +7 -0
- package/dist/src/components/atoms/quill-editor.d.ts +11 -0
- package/dist/src/components/atoms/radio-group.d.ts +5 -0
- package/dist/src/components/atoms/scroll-area.d.ts +5 -0
- package/dist/src/components/atoms/select.d.ts +18 -0
- package/dist/src/components/atoms/separator.d.ts +4 -0
- package/dist/src/components/atoms/sheet.d.ts +13 -0
- package/dist/src/components/atoms/sidebar.d.ts +59 -0
- package/dist/src/components/atoms/skeleton.d.ts +3 -0
- package/dist/src/components/atoms/slider.d.ts +4 -0
- package/dist/src/components/atoms/sonner.d.ts +3 -0
- package/dist/src/components/atoms/spinner.d.ts +7 -0
- package/dist/src/components/atoms/switch.d.ts +4 -0
- package/dist/src/components/atoms/table.d.ts +10 -0
- package/dist/src/components/atoms/tabs.d.ts +7 -0
- package/dist/src/components/atoms/textarea.d.ts +3 -0
- package/dist/src/components/atoms/tooltip.d.ts +8 -0
- package/dist/src/components/molecules/async-combobox.d.ts +15 -0
- package/dist/src/components/molecules/base-button.d.ts +15 -0
- package/dist/src/components/molecules/campaign-title.d.ts +9 -0
- package/dist/src/components/molecules/checkbox-field.d.ts +10 -0
- package/dist/src/components/molecules/combobox-field.d.ts +26 -0
- package/dist/src/components/molecules/creatable-action-icons.d.ts +9 -0
- package/dist/src/components/molecules/date-range-picker.d.ts +17 -0
- package/dist/src/components/molecules/debounced-input.d.ts +19 -0
- package/dist/src/components/molecules/detailed-image-modal.d.ts +18 -0
- package/dist/src/components/molecules/form-checkbox.d.ts +9 -0
- package/dist/src/components/molecules/form-phone-input.d.ts +14 -0
- package/dist/src/components/molecules/input-field.d.ts +15 -0
- package/dist/src/components/molecules/messaging-phone.d.ts +2 -0
- package/dist/src/components/molecules/messaging-preview.d.ts +5 -0
- package/dist/src/components/molecules/mobile-preview-message.d.ts +8 -0
- package/dist/src/components/molecules/multi-select-dropdown.d.ts +18 -0
- package/dist/src/components/molecules/preview-carousel.d.ts +2 -0
- package/dist/src/components/molecules/preview-rich-media.d.ts +5 -0
- package/dist/src/components/molecules/recommendation-card/components/recommendation-filters-button.d.ts +9 -0
- package/dist/src/components/molecules/recommendation-card/components/selected-algorithms.d.ts +12 -0
- package/dist/src/components/molecules/recommendation-card/index.d.ts +2 -0
- package/dist/src/components/molecules/recommendation-card/types/index.d.ts +82 -0
- package/dist/src/components/molecules/select-field.d.ts +18 -0
- package/dist/src/components/molecules/select-multi-field.d.ts +20 -0
- package/dist/src/components/molecules/switch-field.d.ts +7 -0
- package/dist/src/components/molecules/textarea-field.d.ts +11 -0
- package/dist/src/components/molecules/tooltip-field.d.ts +13 -0
- package/dist/src/components/organisms/data-table/actions.d.ts +12 -0
- package/dist/src/components/organisms/data-table/column-visibility.d.ts +6 -0
- package/dist/src/components/organisms/data-table/content.d.ts +18 -0
- package/dist/src/components/organisms/data-table/context.d.ts +10 -0
- package/dist/src/components/organisms/data-table/index.d.ts +17 -0
- package/dist/src/components/organisms/data-table/pagination.d.ts +10 -0
- package/dist/src/components/organisms/data-table/root.d.ts +13 -0
- package/dist/src/components/organisms/data-table/search.d.ts +8 -0
- package/dist/src/components/organisms/data-table/toolbar.d.ts +7 -0
- package/dist/src/components/organisms/date-preset/context.d.ts +8 -0
- package/dist/src/components/organisms/date-preset/date-preset.d.ts +11 -0
- package/dist/src/components/organisms/date-preset/index.d.ts +8 -0
- package/dist/src/components/organisms/date-preset/presets.d.ts +21 -0
- package/dist/src/components/organisms/date-preset/root.d.ts +9 -0
- package/dist/src/components/organisms/form-combobox.d.ts +21 -0
- package/dist/src/components/organisms/form-date-picker.d.ts +13 -0
- package/dist/src/components/organisms/form-file-upload.d.ts +23 -0
- package/dist/src/components/organisms/form-input.d.ts +16 -0
- package/dist/src/components/organisms/form-password.d.ts +14 -0
- package/dist/src/components/organisms/form-radio.d.ts +15 -0
- package/dist/src/components/organisms/form-select.d.ts +19 -0
- package/dist/src/components/organisms/form-slider.d.ts +23 -0
- package/dist/src/components/organisms/form-switch.d.ts +10 -0
- package/dist/src/components/organisms/form-textarea.d.ts +11 -0
- package/dist/src/components/organisms/form-time-picker.d.ts +22 -0
- package/dist/src/components/organisms/timeline.d.ts +25 -0
- package/dist/src/hooks/use-data-table.d.ts +165 -0
- package/dist/src/hooks/use-form-field.d.ts +19 -0
- package/dist/src/hooks/use-mobile.d.ts +1 -0
- package/dist/src/hooks/use-popup-layer.d.ts +10 -0
- package/dist/src/hooks/use-sidebar.d.ts +12 -0
- package/dist/src/index.d.ts +102 -0
- package/dist/src/lib/design-variants.d.ts +13 -0
- package/dist/src/lib/types.d.ts +7 -0
- package/dist/src/lib/utils.d.ts +31 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/mock/actions.d.ts +6 -0
- package/dist/src/mock/columns.d.ts +9 -0
- package/dist/src/providers/popup-layer-provider.d.ts +14 -0
- package/dist/src/types/messaging.d.ts +34 -0
- package/dist/ui.css +1 -1
- package/package.json +42 -41
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './components/atoms/accordion';
|
|
2
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from './components/atoms/alert-dialog';
|
|
3
|
+
export { AspectRatio } from './components/atoms/aspect-ratio';
|
|
4
|
+
export { Avatar, AvatarFallback, AvatarImage } from './components/atoms/avatar';
|
|
5
|
+
export { Badge } from './components/atoms/badge';
|
|
6
|
+
export { BaseButton } from './components/molecules/base-button';
|
|
7
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbSeparator, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, } from './components/atoms/breadcrumb';
|
|
8
|
+
export { Button } from './components/atoms/button';
|
|
9
|
+
export { Calendar, CalendarDayButton } from './components/atoms/calendar';
|
|
10
|
+
export { CampaignTitle } from './components/molecules/campaign-title';
|
|
11
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, } from './components/atoms/card';
|
|
12
|
+
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, } from './components/atoms/carousel';
|
|
13
|
+
export { Case, ComponentSwitch, Default } from './components/atoms/component-switch';
|
|
14
|
+
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, type ChartConfig, } from './components/atoms/chart';
|
|
15
|
+
export { Checkbox } from './components/atoms/checkbox';
|
|
16
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent } from './components/atoms/collapsible';
|
|
17
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, } from './components/atoms/command';
|
|
18
|
+
export { ContentWrapper } from './components/atoms/content-wrapper';
|
|
19
|
+
export { CreatableActionIcons } from './components/molecules/creatable-action-icons';
|
|
20
|
+
export { CheckboxField } from './components/molecules/checkbox-field';
|
|
21
|
+
export { ComboboxField, type ComboboxFieldItem, type ComboboxFieldInputMode, } from './components/molecules/combobox-field';
|
|
22
|
+
export { AsyncCombobox, type AsyncComboboxItem } from './components/molecules/async-combobox';
|
|
23
|
+
export { FormattedDate } from './components/atoms/date';
|
|
24
|
+
export { DateRangePicker } from './components/molecules/date-range-picker';
|
|
25
|
+
export { DebouncedInput } from './components/molecules/debounced-input';
|
|
26
|
+
export { DetailedImageModal } from './components/molecules/detailed-image-modal';
|
|
27
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, DialogOverlay, DialogPortal, } from './components/atoms/dialog';
|
|
28
|
+
export { Drawer, DrawerContent, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, } from './components/atoms/drawer';
|
|
29
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from './components/atoms/dropdown-menu';
|
|
30
|
+
export { Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, EmptyContent } from './components/atoms/empty';
|
|
31
|
+
export { ErrorMessage } from './components/atoms/error-message';
|
|
32
|
+
export { FieldDescription } from './components/atoms/field-description';
|
|
33
|
+
export { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from './components/atoms/form';
|
|
34
|
+
export { FormCheckbox } from './components/molecules/form-checkbox';
|
|
35
|
+
export { FormCombobox } from './components/organisms/form-combobox';
|
|
36
|
+
export { FormSelect } from './components/organisms/form-select';
|
|
37
|
+
export { FormTimePicker } from './components/organisms/form-time-picker';
|
|
38
|
+
export { FormDatePicker } from './components/organisms/form-date-picker';
|
|
39
|
+
export { FormFileUpload } from './components/organisms/form-file-upload';
|
|
40
|
+
export { FormInput } from './components/organisms/form-input';
|
|
41
|
+
export { FormPassword } from './components/organisms/form-password';
|
|
42
|
+
export { FormRadio } from './components/organisms/form-radio';
|
|
43
|
+
export { FormSlider } from './components/organisms/form-slider';
|
|
44
|
+
export { FormSwitch } from './components/organisms/form-switch';
|
|
45
|
+
export { FormTextarea } from './components/organisms/form-textarea';
|
|
46
|
+
export { FormPhoneInput } from './components/molecules/form-phone-input';
|
|
47
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/atoms/hover-card';
|
|
48
|
+
export { Icon } from './components/atoms/icon';
|
|
49
|
+
export { Input } from './components/atoms/input';
|
|
50
|
+
export { InputField } from './components/molecules/input-field';
|
|
51
|
+
export { InputOTP } from './components/atoms/input-otp';
|
|
52
|
+
export { PhonePreview } from './components/atoms/phone-preview';
|
|
53
|
+
export { Kbd, KbdGroup } from './components/atoms/kbd';
|
|
54
|
+
export { Label } from './components/atoms/label';
|
|
55
|
+
export { MessagingPhone } from './components/molecules/messaging-phone';
|
|
56
|
+
export * from './types/messaging';
|
|
57
|
+
export { MultiSelectDropdown } from './components/molecules/multi-select-dropdown';
|
|
58
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from './components/atoms/native-select';
|
|
59
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './components/atoms/pagination';
|
|
60
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/atoms/popover';
|
|
61
|
+
export { PhoneInput } from './components/atoms/phone-input';
|
|
62
|
+
export { PreviewCarousel } from './components/molecules/preview-carousel';
|
|
63
|
+
export { PreviewRichMedia } from './components/molecules/preview-rich-media';
|
|
64
|
+
export { MessagingPreview } from './components/molecules/messaging-preview';
|
|
65
|
+
export { RadioGroup, RadioGroupItem } from './components/atoms/radio-group';
|
|
66
|
+
export { ScrollArea, ScrollBar } from './components/atoms/scroll-area';
|
|
67
|
+
export { MobilePreviewMessage } from './components/molecules/mobile-preview-message';
|
|
68
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './components/atoms/select';
|
|
69
|
+
export { SelectField } from './components/molecules/select-field';
|
|
70
|
+
export { Separator } from './components/atoms/separator';
|
|
71
|
+
export { SelectMultiField } from './components/molecules/select-multi-field';
|
|
72
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/atoms/sheet';
|
|
73
|
+
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';
|
|
74
|
+
export { Skeleton } from './components/atoms/skeleton';
|
|
75
|
+
export { Slider } from './components/atoms/slider';
|
|
76
|
+
export { Toaster } from './components/atoms/sonner';
|
|
77
|
+
export { toast } from 'sonner';
|
|
78
|
+
export { Spinner } from './components/atoms/spinner';
|
|
79
|
+
export { Switch } from './components/atoms/switch';
|
|
80
|
+
export { SwitchField } from './components/molecules/switch-field';
|
|
81
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/atoms/tabs';
|
|
82
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from './components/atoms/table';
|
|
83
|
+
export { Textarea } from './components/atoms/textarea';
|
|
84
|
+
export { TextAreaField } from './components/molecules/textarea-field';
|
|
85
|
+
export { Timeline, type IconConfig, type TimelineItem, type TimelineProps } from './components/organisms/timeline';
|
|
86
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/atoms/tooltip';
|
|
87
|
+
export { TooltipField } from './components/molecules/tooltip-field';
|
|
88
|
+
export { RecommendationCard } from './components/molecules/recommendation-card';
|
|
89
|
+
export type { RecommendationCardProps, IntelligentAlgorithmOption, StaticAlgorithmOption, EmailAlgorithmConfig, AlgorithmType, FilterType, RecommendationCardConfig, } from './components/molecules/recommendation-card/types';
|
|
90
|
+
export { QuillEditor } from './components/atoms/quill-editor';
|
|
91
|
+
export { DataTable, type ColumnDef, type Column } from './components/organisms/data-table';
|
|
92
|
+
export type { ActionItem, ActionsProps, RenderRowSubComponentProps } from './components/organisms/data-table';
|
|
93
|
+
export { DatePreset } from './components/organisms/date-preset/date-preset';
|
|
94
|
+
export { DatePresetProvider } from './components/organisms/date-preset/root';
|
|
95
|
+
export { useDatePreset } from './components/organisms/date-preset/context';
|
|
96
|
+
export { DATE_PRESETS, DEFAULT_PRESET_KEY, findMatchingPreset } from './components/organisms/date-preset/presets';
|
|
97
|
+
export type { DateRange, DatePresetItem } from './components/organisms/date-preset/presets';
|
|
98
|
+
export type { DatePresetProps } from './components/organisms/date-preset/date-preset';
|
|
99
|
+
export type { DatePresetProviderProps } from './components/organisms/date-preset/root';
|
|
100
|
+
export type { DatePresetContextValue } from './components/organisms/date-preset/context';
|
|
101
|
+
export { useDataTable, type UseDataTableOptions, type UseDataTableReturn, type FetcherParams, type FetcherResponse, } from './hooks/use-data-table';
|
|
102
|
+
export { cn, formatDate } from './lib/utils';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
|
2
|
+
variant?: "link" | "primary" | "secondary" | "tertiary" | "success" | "destructive" | "outline" | "ghost" | "action" | "preview" | "paginationActive" | "paginationInactive" | null | undefined;
|
|
3
|
+
size?: "none" | "default" | "xs" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const labelVariants: (props?: ({
|
|
6
|
+
variant?: "default" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const badgeVariants: (props?: ({
|
|
9
|
+
variant?: "secondary" | "success" | "destructive" | "outline" | "default" | "subtle" | null | undefined;
|
|
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,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ClassValue } from 'clsx';
|
|
3
|
+
import { type FormatOptions } from 'date-fns';
|
|
4
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
5
|
+
export declare function mergeRefs<T>(...refs: (React.Ref<T> | undefined)[]): React.RefCallback<T>;
|
|
6
|
+
/**
|
|
7
|
+
* Formats a Date object into a localized string using date-fns.
|
|
8
|
+
* Falls back to formatting the current date if the provided date is invalid.
|
|
9
|
+
*
|
|
10
|
+
* @param date - The Date object to format.
|
|
11
|
+
* @param desiredFormat - A date-fns format string. Default: `'MMM d, yyyy h:mmaaa'`
|
|
12
|
+
* @param options - date-fns `FormatOptions` for locale, week start day, etc.
|
|
13
|
+
* @returns The formatted date string.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Default English format
|
|
17
|
+
* formatDate(new Date('2026-02-05T15:30:00'));
|
|
18
|
+
* // => "Feb 5, 2026 3:30pm"
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Turkish locale
|
|
22
|
+
* import { tr } from 'date-fns/locale';
|
|
23
|
+
* formatDate(new Date('2026-02-05T15:30:00'), undefined, { locale: tr });
|
|
24
|
+
* // => "Şub 5, 2026 3:30öö"
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Custom format
|
|
28
|
+
* formatDate(new Date('2026-02-05'), 'dd/MM/yyyy');
|
|
29
|
+
* // => "05/02/2026"
|
|
30
|
+
*/
|
|
31
|
+
export declare const formatDate: (date: Date, desiredFormat?: string, options?: FormatOptions) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.css';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
import { Product } from '../app';
|
|
4
|
+
export type ColumnDefWithSubCell<TData> = ColumnDef<TData> & {
|
|
5
|
+
meta?: {
|
|
6
|
+
subCell?: (data: TData) => ReactNode;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const columns: ColumnDefWithSubCell<Product>[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides the nearest overlay layer (e.g. Dialog) to
|
|
3
|
+
* descendant portaled popups (Combobox, Select, etc.) so they can render above
|
|
4
|
+
* the overlay rather than behind it.
|
|
5
|
+
*
|
|
6
|
+
* DialogContent reads its own computed z-index and provides it through this
|
|
7
|
+
* context. Portaled popup components consume it and
|
|
8
|
+
* apply `zIndex: value + 1` as an inline style, guaranteeing they stack on top
|
|
9
|
+
* of whatever overlay contains them — regardless of the specific z-index value.
|
|
10
|
+
*
|
|
11
|
+
* When no overlay layer is present the context is `undefined` and consumers
|
|
12
|
+
* fall back to their default class-based z-index (`z-50`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const PopupLayerContext: import("react").Context<HTMLDivElement | undefined>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type MessageFormat = 'TEXT' | 'IMAGE';
|
|
2
|
+
export type MessageButtonType = 'URL' | 'PHONE_NUMBER' | 'QUICK_REPLY';
|
|
3
|
+
export type MessageButton = {
|
|
4
|
+
text: string;
|
|
5
|
+
type?: MessageButtonType;
|
|
6
|
+
url?: string;
|
|
7
|
+
};
|
|
8
|
+
export type MessageHeader = {
|
|
9
|
+
format: MessageFormat;
|
|
10
|
+
text?: string;
|
|
11
|
+
image?: string;
|
|
12
|
+
};
|
|
13
|
+
export type MessageBody = {
|
|
14
|
+
text: string;
|
|
15
|
+
};
|
|
16
|
+
export type MessageFooter = {
|
|
17
|
+
text: string;
|
|
18
|
+
};
|
|
19
|
+
export type MessageCarouselCard = {
|
|
20
|
+
body: {
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
buttons: MessageButton[];
|
|
24
|
+
header?: MessageHeader;
|
|
25
|
+
};
|
|
26
|
+
export type MessagingPhoneProps = {
|
|
27
|
+
header?: MessageHeader;
|
|
28
|
+
body: MessageBody;
|
|
29
|
+
footer?: MessageFooter;
|
|
30
|
+
buttons?: MessageButton[];
|
|
31
|
+
carousel?: {
|
|
32
|
+
cards: MessageCarouselCard[];
|
|
33
|
+
};
|
|
34
|
+
};
|
package/dist/ui.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
:root, :host {
|
|
4
4
|
--ui-font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentify/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"description": "A collection of reusable React UI components built with Tailwind CSS and Radix UI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"sonner": "^2.0.7"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@base-ui/react": "^1.
|
|
39
|
+
"@base-ui/react": "^1.5.0",
|
|
40
40
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
41
41
|
"@radix-ui/react-aspect-ratio": "^1.1.8",
|
|
42
42
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
@@ -56,70 +56,71 @@
|
|
|
56
56
|
"@radix-ui/react-switch": "^1.2.6",
|
|
57
57
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
58
58
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
59
|
+
"@segmentify/common": "0.0.3",
|
|
59
60
|
"@tanstack/react-table": "^8.21.3",
|
|
60
61
|
"class-variance-authority": "^0.7.1",
|
|
61
62
|
"clsx": "^2.1.1",
|
|
62
63
|
"cmdk": "^1.1.1",
|
|
63
|
-
"date-fns": "^4.1
|
|
64
|
+
"date-fns": "^4.2.1",
|
|
64
65
|
"embla-carousel-react": "^8.6.0",
|
|
65
66
|
"input-otp": "^1.4.2",
|
|
66
67
|
"next-themes": "^0.4.6",
|
|
67
68
|
"quill": "^2.0.3",
|
|
68
69
|
"radix-ui": "^1.4.3",
|
|
69
|
-
"react-day-picker": "^9.
|
|
70
|
+
"react-day-picker": "^9.14.0",
|
|
70
71
|
"react-phone-number-input": "^3.4.16",
|
|
71
72
|
"react-select": "^5.10.2",
|
|
72
|
-
"tailwind-merge": "^3.
|
|
73
|
+
"tailwind-merge": "^3.6.0",
|
|
73
74
|
"vaul": "^1.1.2"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
|
-
"@changesets/cli": "^2.
|
|
77
|
-
"@chromatic-com/storybook": "^
|
|
78
|
-
"@eslint/js": "^
|
|
79
|
-
"@storybook/addon-a11y": "^10.1
|
|
80
|
-
"@storybook/addon-docs": "^10.1
|
|
81
|
-
"@storybook/addon-themes": "^10.1
|
|
82
|
-
"@storybook/addon-vitest": "^10.1
|
|
83
|
-
"@storybook/react-vite": "^10.1
|
|
84
|
-
"@tailwindcss/cli": "^4.
|
|
85
|
-
"@tailwindcss/vite": "^4.
|
|
86
|
-
"@tanstack/react-query": "^5.
|
|
87
|
-
"@types/node": "^25.
|
|
88
|
-
"@types/react": "^19.2.
|
|
77
|
+
"@changesets/cli": "^2.31.0",
|
|
78
|
+
"@chromatic-com/storybook": "^5.2.1",
|
|
79
|
+
"@eslint/js": "^10.0.1",
|
|
80
|
+
"@storybook/addon-a11y": "^10.4.1",
|
|
81
|
+
"@storybook/addon-docs": "^10.4.1",
|
|
82
|
+
"@storybook/addon-themes": "^10.4.1",
|
|
83
|
+
"@storybook/addon-vitest": "^10.4.1",
|
|
84
|
+
"@storybook/react-vite": "^10.4.1",
|
|
85
|
+
"@tailwindcss/cli": "^4.3.0",
|
|
86
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
87
|
+
"@tanstack/react-query": "^5.100.11",
|
|
88
|
+
"@types/node": "^25.9.1",
|
|
89
|
+
"@types/react": "^19.2.15",
|
|
89
90
|
"@types/react-dom": "^19.2.3",
|
|
90
|
-
"@vitejs/plugin-react": "^
|
|
91
|
-
"@vitest/browser-playwright": "^4.
|
|
92
|
-
"@vitest/coverage-v8": "^4.
|
|
93
|
-
"eslint": "^
|
|
91
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
92
|
+
"@vitest/browser-playwright": "^4.1.7",
|
|
93
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
94
|
+
"eslint": "^10.4.0",
|
|
94
95
|
"eslint-config-prettier": "^10.1.8",
|
|
95
96
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
96
|
-
"eslint-plugin-boundaries": "^
|
|
97
|
-
"eslint-plugin-import": "^
|
|
97
|
+
"eslint-plugin-boundaries": "^6.0.2",
|
|
98
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
98
99
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
99
|
-
"eslint-plugin-prettier": "^5.5.
|
|
100
|
-
"eslint-plugin-react-hooks": "^7.
|
|
101
|
-
"eslint-plugin-react-refresh": "^0.
|
|
102
|
-
"eslint-plugin-unicorn": "^
|
|
103
|
-
"globals": "^
|
|
100
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
101
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
102
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
103
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
104
|
+
"globals": "^17.6.0",
|
|
104
105
|
"husky": "^9.1.7",
|
|
105
|
-
"knip": "^
|
|
106
|
-
"lint-staged": "^
|
|
107
|
-
"lucide-react": "^
|
|
108
|
-
"playwright": "^1.
|
|
109
|
-
"prettier": "3.
|
|
106
|
+
"knip": "^6.14.2",
|
|
107
|
+
"lint-staged": "^17.0.5",
|
|
108
|
+
"lucide-react": "^1.16.0",
|
|
109
|
+
"playwright": "^1.60.0",
|
|
110
|
+
"prettier": "3.8.3",
|
|
110
111
|
"react": "^19.2.0",
|
|
111
112
|
"react-dom": "^19.2.0",
|
|
112
|
-
"react-hook-form": "7.
|
|
113
|
+
"react-hook-form": "7.76.0",
|
|
113
114
|
"recharts": "2.15.4",
|
|
114
115
|
"sonner": "^2.0.7",
|
|
115
|
-
"storybook": "^10.1
|
|
116
|
-
"tailwindcss": "^4.
|
|
116
|
+
"storybook": "^10.4.1",
|
|
117
|
+
"tailwindcss": "^4.3.0",
|
|
117
118
|
"ts-toolbelt": "^9.6.0",
|
|
118
119
|
"tw-animate-css": "^1.4.0",
|
|
119
|
-
"typescript": "~
|
|
120
|
-
"typescript-eslint": "^8.
|
|
121
|
-
"vite": "^
|
|
122
|
-
"vitest": "^4.
|
|
120
|
+
"typescript": "~6.0.3",
|
|
121
|
+
"typescript-eslint": "^8.59.4",
|
|
122
|
+
"vite": "^8.0.14",
|
|
123
|
+
"vitest": "^4.1.7"
|
|
123
124
|
},
|
|
124
125
|
"lint-staged": {
|
|
125
126
|
"*.{js,jsx,ts,tsx}": [
|