@segmentify/ui 0.0.63 → 0.0.65

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 (139) hide show
  1. package/dist/components/atoms/chart.d.ts +1 -1
  2. package/dist/index.d.ts +3 -0
  3. package/dist/lib/design-variants.d.ts +1 -1
  4. package/dist/segmentify-ui.cjs +29 -29
  5. package/dist/segmentify-ui.js +757 -756
  6. package/dist/ui.css +30 -0
  7. package/package.json +2 -2
  8. package/dist/components/atoms/autocomplete.d.ts +0 -13
  9. package/dist/components/atoms/iphone-15.d.ts +0 -2
  10. package/dist/components/atoms/preview-single-button.d.ts +0 -6
  11. package/dist/components/molecules/autocomplete-field.d.ts +0 -17
  12. package/dist/components/molecules/confirmation-dialog.d.ts +0 -24
  13. package/dist/components/molecules/preview-sms.d.ts +0 -5
  14. package/dist/components/molecules/whatsapp-message.d.ts +0 -15
  15. package/dist/components/organisms/form-checkbox.d.ts +0 -10
  16. package/dist/src/app.d.ts +0 -14
  17. package/dist/src/components/atoms/accordion.d.ts +0 -9
  18. package/dist/src/components/atoms/alert-dialog.d.ts +0 -18
  19. package/dist/src/components/atoms/aspect-ratio.d.ts +0 -3
  20. package/dist/src/components/atoms/avatar.d.ts +0 -6
  21. package/dist/src/components/atoms/badge.d.ts +0 -7
  22. package/dist/src/components/atoms/breadcrumb.d.ts +0 -11
  23. package/dist/src/components/atoms/button.d.ts +0 -10
  24. package/dist/src/components/atoms/calendar.d.ts +0 -8
  25. package/dist/src/components/atoms/card.d.ts +0 -9
  26. package/dist/src/components/atoms/carousel.d.ts +0 -19
  27. package/dist/src/components/atoms/chart.d.ts +0 -40
  28. package/dist/src/components/atoms/checkbox.d.ts +0 -4
  29. package/dist/src/components/atoms/collapsible.d.ts +0 -5
  30. package/dist/src/components/atoms/combobox.d.ts +0 -24
  31. package/dist/src/components/atoms/command.d.ts +0 -20
  32. package/dist/src/components/atoms/component-switch.d.ts +0 -19
  33. package/dist/src/components/atoms/content-wrapper.d.ts +0 -11
  34. package/dist/src/components/atoms/date.d.ts +0 -4
  35. package/dist/src/components/atoms/dialog.d.ts +0 -16
  36. package/dist/src/components/atoms/drawer.d.ts +0 -13
  37. package/dist/src/components/atoms/dropdown-menu.d.ts +0 -25
  38. package/dist/src/components/atoms/empty.d.ts +0 -11
  39. package/dist/src/components/atoms/error-message.d.ts +0 -6
  40. package/dist/src/components/atoms/field-description.d.ts +0 -6
  41. package/dist/src/components/atoms/form.d.ts +0 -17
  42. package/dist/src/components/atoms/hover-card.d.ts +0 -6
  43. package/dist/src/components/atoms/icon.d.ts +0 -6
  44. package/dist/src/components/atoms/input-group.d.ts +0 -16
  45. package/dist/src/components/atoms/input-otp.d.ts +0 -20
  46. package/dist/src/components/atoms/input.d.ts +0 -3
  47. package/dist/src/components/atoms/kbd.d.ts +0 -3
  48. package/dist/src/components/atoms/label.d.ts +0 -9
  49. package/dist/src/components/atoms/native-select.d.ts +0 -7
  50. package/dist/src/components/atoms/pagination.d.ts +0 -13
  51. package/dist/src/components/atoms/phone-input.d.ts +0 -7
  52. package/dist/src/components/atoms/phone-preview.d.ts +0 -5
  53. package/dist/src/components/atoms/popover.d.ts +0 -7
  54. package/dist/src/components/atoms/quill-editor.d.ts +0 -11
  55. package/dist/src/components/atoms/radio-group.d.ts +0 -5
  56. package/dist/src/components/atoms/scroll-area.d.ts +0 -5
  57. package/dist/src/components/atoms/select.d.ts +0 -18
  58. package/dist/src/components/atoms/separator.d.ts +0 -4
  59. package/dist/src/components/atoms/sheet.d.ts +0 -13
  60. package/dist/src/components/atoms/sidebar.d.ts +0 -59
  61. package/dist/src/components/atoms/skeleton.d.ts +0 -3
  62. package/dist/src/components/atoms/slider.d.ts +0 -4
  63. package/dist/src/components/atoms/sonner.d.ts +0 -3
  64. package/dist/src/components/atoms/spinner.d.ts +0 -7
  65. package/dist/src/components/atoms/switch.d.ts +0 -4
  66. package/dist/src/components/atoms/table.d.ts +0 -10
  67. package/dist/src/components/atoms/tabs.d.ts +0 -7
  68. package/dist/src/components/atoms/textarea.d.ts +0 -3
  69. package/dist/src/components/atoms/tooltip.d.ts +0 -8
  70. package/dist/src/components/molecules/async-combobox.d.ts +0 -15
  71. package/dist/src/components/molecules/base-button.d.ts +0 -15
  72. package/dist/src/components/molecules/campaign-title.d.ts +0 -9
  73. package/dist/src/components/molecules/checkbox-field.d.ts +0 -10
  74. package/dist/src/components/molecules/combobox-field.d.ts +0 -26
  75. package/dist/src/components/molecules/creatable-action-icons.d.ts +0 -9
  76. package/dist/src/components/molecules/date-range-picker.d.ts +0 -17
  77. package/dist/src/components/molecules/debounced-input.d.ts +0 -19
  78. package/dist/src/components/molecules/detailed-image-modal.d.ts +0 -18
  79. package/dist/src/components/molecules/form-checkbox.d.ts +0 -9
  80. package/dist/src/components/molecules/form-phone-input.d.ts +0 -14
  81. package/dist/src/components/molecules/input-field.d.ts +0 -15
  82. package/dist/src/components/molecules/messaging-phone.d.ts +0 -2
  83. package/dist/src/components/molecules/messaging-preview.d.ts +0 -5
  84. package/dist/src/components/molecules/mobile-preview-message.d.ts +0 -8
  85. package/dist/src/components/molecules/multi-select-dropdown.d.ts +0 -18
  86. package/dist/src/components/molecules/preview-carousel.d.ts +0 -2
  87. package/dist/src/components/molecules/preview-rich-media.d.ts +0 -5
  88. package/dist/src/components/molecules/recommendation-card/components/recommendation-filters-button.d.ts +0 -9
  89. package/dist/src/components/molecules/recommendation-card/components/selected-algorithms.d.ts +0 -12
  90. package/dist/src/components/molecules/recommendation-card/index.d.ts +0 -2
  91. package/dist/src/components/molecules/recommendation-card/types/index.d.ts +0 -82
  92. package/dist/src/components/molecules/select-field.d.ts +0 -18
  93. package/dist/src/components/molecules/select-multi-field.d.ts +0 -20
  94. package/dist/src/components/molecules/switch-field.d.ts +0 -7
  95. package/dist/src/components/molecules/textarea-field.d.ts +0 -11
  96. package/dist/src/components/molecules/tooltip-field.d.ts +0 -13
  97. package/dist/src/components/organisms/data-table/actions.d.ts +0 -12
  98. package/dist/src/components/organisms/data-table/column-visibility.d.ts +0 -6
  99. package/dist/src/components/organisms/data-table/content.d.ts +0 -18
  100. package/dist/src/components/organisms/data-table/context.d.ts +0 -10
  101. package/dist/src/components/organisms/data-table/index.d.ts +0 -17
  102. package/dist/src/components/organisms/data-table/pagination.d.ts +0 -10
  103. package/dist/src/components/organisms/data-table/root.d.ts +0 -13
  104. package/dist/src/components/organisms/data-table/search.d.ts +0 -8
  105. package/dist/src/components/organisms/data-table/toolbar.d.ts +0 -7
  106. package/dist/src/components/organisms/date-preset/context.d.ts +0 -8
  107. package/dist/src/components/organisms/date-preset/date-preset.d.ts +0 -11
  108. package/dist/src/components/organisms/date-preset/index.d.ts +0 -8
  109. package/dist/src/components/organisms/date-preset/presets.d.ts +0 -21
  110. package/dist/src/components/organisms/date-preset/root.d.ts +0 -9
  111. package/dist/src/components/organisms/form-combobox.d.ts +0 -21
  112. package/dist/src/components/organisms/form-date-picker.d.ts +0 -13
  113. package/dist/src/components/organisms/form-file-upload.d.ts +0 -23
  114. package/dist/src/components/organisms/form-input.d.ts +0 -16
  115. package/dist/src/components/organisms/form-password.d.ts +0 -14
  116. package/dist/src/components/organisms/form-radio.d.ts +0 -15
  117. package/dist/src/components/organisms/form-select.d.ts +0 -19
  118. package/dist/src/components/organisms/form-slider.d.ts +0 -23
  119. package/dist/src/components/organisms/form-switch.d.ts +0 -10
  120. package/dist/src/components/organisms/form-textarea.d.ts +0 -11
  121. package/dist/src/components/organisms/form-time-picker.d.ts +0 -22
  122. package/dist/src/components/organisms/timeline.d.ts +0 -25
  123. package/dist/src/hooks/use-data-table.d.ts +0 -165
  124. package/dist/src/hooks/use-form-field.d.ts +0 -19
  125. package/dist/src/hooks/use-mobile.d.ts +0 -1
  126. package/dist/src/hooks/use-popup-layer.d.ts +0 -10
  127. package/dist/src/hooks/use-sidebar.d.ts +0 -12
  128. package/dist/src/index.d.ts +0 -105
  129. package/dist/src/lib/design-variants.d.ts +0 -13
  130. package/dist/src/lib/types.d.ts +0 -7
  131. package/dist/src/lib/utils.d.ts +0 -31
  132. package/dist/src/main.d.ts +0 -1
  133. package/dist/src/mock/actions.d.ts +0 -6
  134. package/dist/src/mock/columns.d.ts +0 -9
  135. package/dist/src/providers/popup-layer-provider.d.ts +0 -14
  136. package/dist/src/types/messaging.d.ts +0 -34
  137. /package/dist/{src/components → components}/atoms/sortable-item.d.ts +0 -0
  138. /package/dist/{src/components → components}/molecules/sortable-list.d.ts +0 -0
  139. /package/dist/{src/components → components}/organisms/form-sortable-list.d.ts +0 -0
@@ -1,165 +0,0 @@
1
- import { type UseQueryOptions } from '@tanstack/react-query';
2
- import { type ColumnDef, type ColumnFiltersState, type ColumnPinningState, type ExpandedState, type PaginationState, type RowSelectionState, type SortingState, type Table, type VisibilityState } from '@tanstack/react-table';
3
- export interface FetcherParams {
4
- pageNo: number;
5
- pageSize: number;
6
- sortBy: SortingState;
7
- reversed: boolean;
8
- columnFilters: ColumnFiltersState;
9
- search: string;
10
- }
11
- export interface FetcherResponse<TData> {
12
- data: TData[];
13
- totalCount?: number;
14
- }
15
- export interface UseDataTableOptions<TData> {
16
- /**
17
- * Unique key for the query cache
18
- * @required
19
- */
20
- queryKey: string;
21
- /**
22
- * Column definitions for the table
23
- */
24
- columns: ColumnDef<TData>[];
25
- /**
26
- * Fetcher function to load data
27
- * Receives fetch params and should return data + optional totalCount
28
- */
29
- fetcher: (params: FetcherParams) => Promise<FetcherResponse<TData>>;
30
- /**
31
- * Initial page size
32
- * @default 10
33
- */
34
- initialPageSize?: number;
35
- /**
36
- * Initial sorting state
37
- */
38
- initialSorting?: SortingState;
39
- /**
40
- * Initial column visibility
41
- */
42
- initialColumnVisibility?: VisibilityState;
43
- /**
44
- * Initial column pinning state
45
- * @example { left: ['select'], right: ['actions'] }
46
- */
47
- initialColumnPinning?: ColumnPinningState;
48
- /**
49
- * Whether pagination is handled manually (server-side)
50
- * @default false
51
- */
52
- manualPagination?: boolean;
53
- /**
54
- * Whether sorting is handled manually (server-side)
55
- * @default false
56
- */
57
- manualSorting?: boolean;
58
- /**
59
- * Whether filtering is handled manually (server-side)
60
- * @default false
61
- */
62
- manualFiltering?: boolean;
63
- /**
64
- * Function to get sub-rows from a row (for expandable rows)
65
- * @example (row) => row.subRows
66
- */
67
- getSubRows?: (row: TData) => TData[] | undefined;
68
- /**
69
- * Function to determine if a row can be expanded.
70
- * Set to `() => true` to allow all rows to expand (useful for lazy-loaded sub-components).
71
- * @example () => true
72
- * @example (row) => row.original.hasDetails
73
- */
74
- getRowCanExpand?: (row: {
75
- original: TData;
76
- }) => boolean;
77
- /**
78
- * Additional react-query options
79
- * Allows customizing staleTime, gcTime, refetchInterval, etc.
80
- */
81
- queryOptions?: Omit<UseQueryOptions<FetcherResponse<TData>, Error>, 'queryKey' | 'queryFn'>;
82
- /**
83
- * Additional metadata to pass to the table instance (accessible via table.options.meta)
84
- */
85
- meta?: Record<string, unknown>;
86
- }
87
- export interface UseDataTableReturn<TData> {
88
- /**
89
- * The table instance from @tanstack/react-table
90
- */
91
- table: Table<TData>;
92
- /**
93
- * The current data array
94
- */
95
- data: TData[];
96
- /**
97
- * Whether the initial data is loading (no data yet)
98
- */
99
- isLoading: boolean;
100
- /**
101
- * Whether data is being fetched (including background refetches)
102
- */
103
- isFetching: boolean;
104
- /**
105
- * Whether a refetch is in progress
106
- */
107
- isRefetching: boolean;
108
- /**
109
- * Error if the fetch failed
110
- */
111
- error: Error | null;
112
- /**
113
- * Total count of items (for pagination)
114
- */
115
- totalCount: number;
116
- /**
117
- * Refetch the data
118
- */
119
- refetch: () => void;
120
- /**
121
- * Current search (global filter) value
122
- */
123
- search: string;
124
- /**
125
- * Set the search (global filter)
126
- */
127
- setSearch: (value: string) => void;
128
- /**
129
- * Current sorting state
130
- */
131
- sortBy: SortingState;
132
- /**
133
- * Current pagination state
134
- */
135
- pagination: PaginationState;
136
- /**
137
- * Current column filters
138
- */
139
- columnFilters: ColumnFiltersState;
140
- /**
141
- * Current column visibility
142
- */
143
- columnVisibility: VisibilityState;
144
- /**
145
- * Current row selection
146
- */
147
- rowSelection: RowSelectionState;
148
- /**
149
- * Current column pinning state
150
- */
151
- columnPinning: ColumnPinningState;
152
- /**
153
- * Current expanded state
154
- */
155
- expanded: ExpandedState;
156
- /**
157
- * Whether the query is in success state
158
- */
159
- isSuccess: boolean;
160
- /**
161
- * Whether the query is in error state
162
- */
163
- isError: boolean;
164
- }
165
- export declare function useDataTable<TData>({ queryKey, columns, fetcher, initialPageSize, initialSorting, initialColumnVisibility, initialColumnPinning, manualPagination, manualSorting, manualFiltering, getSubRows, getRowCanExpand, queryOptions, meta, }: UseDataTableOptions<TData>): UseDataTableReturn<TData>;
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import type { FieldError } from 'react-hook-form';
3
- type FormFieldContextValue = {
4
- name: string;
5
- error?: FieldError;
6
- };
7
- type FormItemContextValue = {
8
- id: string;
9
- };
10
- export declare const FormFieldContext: React.Context<FormFieldContextValue | null>;
11
- export declare const FormItemContext: React.Context<FormItemContextValue | null>;
12
- export declare const useFormField: () => {
13
- name: string;
14
- error: FieldError | undefined;
15
- formItemId: string;
16
- formDescriptionId: string;
17
- formMessageId: string;
18
- };
19
- export {};
@@ -1 +0,0 @@
1
- export declare function useIsMobile(): boolean;
@@ -1,10 +0,0 @@
1
- /**
2
- * Returns the computed z-index of the nearest overlay layer (e.g. Dialog), or
3
- * `undefined` when rendered outside one. Portaled popup components use this to
4
- * set their own z-index one level higher so they appear above the overlay.
5
- *
6
- * @see {@link PopupLayerContext} for the full rationale.
7
- */
8
- export declare const usePopupLayer: () => {
9
- layer: HTMLDivElement | undefined;
10
- };
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- export type SidebarContextProps = {
3
- state: 'expanded' | 'collapsed';
4
- open: boolean;
5
- setOpen: (open: boolean) => void;
6
- openMobile: boolean;
7
- setOpenMobile: (open: boolean) => void;
8
- isMobile: boolean;
9
- toggleSidebar: () => void;
10
- };
11
- export declare const SidebarContext: React.Context<SidebarContextProps | null>;
12
- export declare function useSidebar(): SidebarContextProps;
@@ -1,105 +0,0 @@
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 { FormSortableList } from './components/organisms/form-sortable-list';
45
- export { FormSwitch } from './components/organisms/form-switch';
46
- export { FormTextarea } from './components/organisms/form-textarea';
47
- export { FormPhoneInput } from './components/molecules/form-phone-input';
48
- export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/atoms/hover-card';
49
- export { Icon } from './components/atoms/icon';
50
- export { Input } from './components/atoms/input';
51
- export { InputField } from './components/molecules/input-field';
52
- export { InputOTP } from './components/atoms/input-otp';
53
- export { PhonePreview } from './components/atoms/phone-preview';
54
- export { Kbd, KbdGroup } from './components/atoms/kbd';
55
- export { Label } from './components/atoms/label';
56
- export { MessagingPhone } from './components/molecules/messaging-phone';
57
- export * from './types/messaging';
58
- export { MultiSelectDropdown } from './components/molecules/multi-select-dropdown';
59
- export { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from './components/atoms/native-select';
60
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './components/atoms/pagination';
61
- export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/atoms/popover';
62
- export { PhoneInput } from './components/atoms/phone-input';
63
- export { PreviewCarousel } from './components/molecules/preview-carousel';
64
- export { PreviewRichMedia } from './components/molecules/preview-rich-media';
65
- export { MessagingPreview } from './components/molecules/messaging-preview';
66
- export { RadioGroup, RadioGroupItem } from './components/atoms/radio-group';
67
- export { ScrollArea, ScrollBar } from './components/atoms/scroll-area';
68
- export { MobilePreviewMessage } from './components/molecules/mobile-preview-message';
69
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './components/atoms/select';
70
- export { SelectField } from './components/molecules/select-field';
71
- export { Separator } from './components/atoms/separator';
72
- export { SelectMultiField } from './components/molecules/select-multi-field';
73
- export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from './components/atoms/sheet';
74
- 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';
75
- export { Skeleton } from './components/atoms/skeleton';
76
- export { Slider } from './components/atoms/slider';
77
- export { SortableItem } from './components/atoms/sortable-item';
78
- export { SortableList } from './components/molecules/sortable-list';
79
- export { Toaster } from './components/atoms/sonner';
80
- export { toast } from 'sonner';
81
- export { Spinner } from './components/atoms/spinner';
82
- export { Switch } from './components/atoms/switch';
83
- export { SwitchField } from './components/molecules/switch-field';
84
- export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/atoms/tabs';
85
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from './components/atoms/table';
86
- export { Textarea } from './components/atoms/textarea';
87
- export { TextAreaField } from './components/molecules/textarea-field';
88
- export { Timeline, type IconConfig, type TimelineItem, type TimelineProps } from './components/organisms/timeline';
89
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/atoms/tooltip';
90
- export { TooltipField } from './components/molecules/tooltip-field';
91
- export { RecommendationCard } from './components/molecules/recommendation-card';
92
- export type { RecommendationCardProps, IntelligentAlgorithmOption, StaticAlgorithmOption, EmailAlgorithmConfig, AlgorithmType, FilterType, RecommendationCardConfig, } from './components/molecules/recommendation-card/types';
93
- export { QuillEditor } from './components/atoms/quill-editor';
94
- export { DataTable, type ColumnDef, type Column } from './components/organisms/data-table';
95
- export type { ActionItem, ActionsProps, RenderRowSubComponentProps } from './components/organisms/data-table';
96
- export { DatePreset } from './components/organisms/date-preset/date-preset';
97
- export { DatePresetProvider } from './components/organisms/date-preset/root';
98
- export { useDatePreset } from './components/organisms/date-preset/context';
99
- export { DATE_PRESETS, DEFAULT_PRESET_KEY, findMatchingPreset } from './components/organisms/date-preset/presets';
100
- export type { DateRange, DatePresetItem } from './components/organisms/date-preset/presets';
101
- export type { DatePresetProps } from './components/organisms/date-preset/date-preset';
102
- export type { DatePresetProviderProps } from './components/organisms/date-preset/root';
103
- export type { DatePresetContextValue } from './components/organisms/date-preset/context';
104
- export { useDataTable, type UseDataTableOptions, type UseDataTableReturn, type FetcherParams, type FetcherResponse, } from './hooks/use-data-table';
105
- export { cn, formatDate } from './lib/utils';
@@ -1,13 +0,0 @@
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;
@@ -1,7 +0,0 @@
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>;
@@ -1,31 +0,0 @@
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;
@@ -1 +0,0 @@
1
- import './index.css';
@@ -1,6 +0,0 @@
1
- import { Product } from '../../app';
2
- type ProductActionsProps = {
3
- product: Product;
4
- };
5
- export declare const ProductActions: ({ product }: ProductActionsProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,9 +0,0 @@
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>[];
@@ -1,14 +0,0 @@
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>;
@@ -1,34 +0,0 @@
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
- };