@segmentify/ui 0.0.64 → 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.
- package/dist/components/atoms/chart.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/lib/design-variants.d.ts +1 -1
- package/dist/segmentify-ui.cjs +29 -29
- package/dist/segmentify-ui.js +757 -756
- package/dist/ui.css +30 -0
- package/package.json +2 -2
- package/dist/components/atoms/autocomplete.d.ts +0 -13
- package/dist/components/atoms/iphone-15.d.ts +0 -2
- package/dist/components/atoms/preview-single-button.d.ts +0 -6
- package/dist/components/molecules/autocomplete-field.d.ts +0 -17
- package/dist/components/molecules/confirmation-dialog.d.ts +0 -24
- package/dist/components/molecules/preview-sms.d.ts +0 -5
- package/dist/components/molecules/whatsapp-message.d.ts +0 -15
- package/dist/components/organisms/form-checkbox.d.ts +0 -10
- package/dist/src/app.d.ts +0 -14
- package/dist/src/components/atoms/accordion.d.ts +0 -9
- package/dist/src/components/atoms/alert-dialog.d.ts +0 -18
- package/dist/src/components/atoms/aspect-ratio.d.ts +0 -3
- package/dist/src/components/atoms/avatar.d.ts +0 -6
- package/dist/src/components/atoms/badge.d.ts +0 -7
- package/dist/src/components/atoms/breadcrumb.d.ts +0 -11
- package/dist/src/components/atoms/button.d.ts +0 -10
- package/dist/src/components/atoms/calendar.d.ts +0 -8
- package/dist/src/components/atoms/card.d.ts +0 -9
- package/dist/src/components/atoms/carousel.d.ts +0 -19
- package/dist/src/components/atoms/chart.d.ts +0 -40
- package/dist/src/components/atoms/checkbox.d.ts +0 -4
- package/dist/src/components/atoms/collapsible.d.ts +0 -5
- package/dist/src/components/atoms/combobox.d.ts +0 -24
- package/dist/src/components/atoms/command.d.ts +0 -20
- package/dist/src/components/atoms/component-switch.d.ts +0 -19
- package/dist/src/components/atoms/content-wrapper.d.ts +0 -11
- package/dist/src/components/atoms/date.d.ts +0 -4
- package/dist/src/components/atoms/dialog.d.ts +0 -16
- package/dist/src/components/atoms/drawer.d.ts +0 -13
- package/dist/src/components/atoms/dropdown-menu.d.ts +0 -25
- package/dist/src/components/atoms/empty.d.ts +0 -11
- package/dist/src/components/atoms/error-message.d.ts +0 -6
- package/dist/src/components/atoms/field-description.d.ts +0 -6
- package/dist/src/components/atoms/form.d.ts +0 -17
- package/dist/src/components/atoms/hover-card.d.ts +0 -6
- package/dist/src/components/atoms/icon.d.ts +0 -6
- package/dist/src/components/atoms/input-group.d.ts +0 -16
- package/dist/src/components/atoms/input-otp.d.ts +0 -20
- package/dist/src/components/atoms/input.d.ts +0 -3
- package/dist/src/components/atoms/kbd.d.ts +0 -3
- package/dist/src/components/atoms/label.d.ts +0 -9
- package/dist/src/components/atoms/native-select.d.ts +0 -7
- package/dist/src/components/atoms/pagination.d.ts +0 -13
- package/dist/src/components/atoms/phone-input.d.ts +0 -7
- package/dist/src/components/atoms/phone-preview.d.ts +0 -5
- package/dist/src/components/atoms/popover.d.ts +0 -7
- package/dist/src/components/atoms/quill-editor.d.ts +0 -11
- package/dist/src/components/atoms/radio-group.d.ts +0 -5
- package/dist/src/components/atoms/scroll-area.d.ts +0 -5
- package/dist/src/components/atoms/select.d.ts +0 -18
- package/dist/src/components/atoms/separator.d.ts +0 -4
- package/dist/src/components/atoms/sheet.d.ts +0 -13
- package/dist/src/components/atoms/sidebar.d.ts +0 -59
- package/dist/src/components/atoms/skeleton.d.ts +0 -3
- package/dist/src/components/atoms/slider.d.ts +0 -4
- package/dist/src/components/atoms/sonner.d.ts +0 -3
- package/dist/src/components/atoms/spinner.d.ts +0 -7
- package/dist/src/components/atoms/switch.d.ts +0 -4
- package/dist/src/components/atoms/table.d.ts +0 -10
- package/dist/src/components/atoms/tabs.d.ts +0 -7
- package/dist/src/components/atoms/textarea.d.ts +0 -3
- package/dist/src/components/atoms/tooltip.d.ts +0 -8
- package/dist/src/components/molecules/async-combobox.d.ts +0 -15
- package/dist/src/components/molecules/base-button.d.ts +0 -15
- package/dist/src/components/molecules/campaign-title.d.ts +0 -9
- package/dist/src/components/molecules/checkbox-field.d.ts +0 -10
- package/dist/src/components/molecules/combobox-field.d.ts +0 -26
- package/dist/src/components/molecules/creatable-action-icons.d.ts +0 -9
- package/dist/src/components/molecules/date-range-picker.d.ts +0 -17
- package/dist/src/components/molecules/debounced-input.d.ts +0 -19
- package/dist/src/components/molecules/detailed-image-modal.d.ts +0 -18
- package/dist/src/components/molecules/form-checkbox.d.ts +0 -9
- package/dist/src/components/molecules/form-phone-input.d.ts +0 -14
- package/dist/src/components/molecules/input-field.d.ts +0 -15
- package/dist/src/components/molecules/messaging-phone.d.ts +0 -2
- package/dist/src/components/molecules/messaging-preview.d.ts +0 -5
- package/dist/src/components/molecules/mobile-preview-message.d.ts +0 -8
- package/dist/src/components/molecules/multi-select-dropdown.d.ts +0 -18
- package/dist/src/components/molecules/preview-carousel.d.ts +0 -2
- package/dist/src/components/molecules/preview-rich-media.d.ts +0 -5
- package/dist/src/components/molecules/recommendation-card/components/recommendation-filters-button.d.ts +0 -9
- package/dist/src/components/molecules/recommendation-card/components/selected-algorithms.d.ts +0 -12
- package/dist/src/components/molecules/recommendation-card/index.d.ts +0 -2
- package/dist/src/components/molecules/recommendation-card/types/index.d.ts +0 -82
- package/dist/src/components/molecules/select-field.d.ts +0 -18
- package/dist/src/components/molecules/select-multi-field.d.ts +0 -20
- package/dist/src/components/molecules/switch-field.d.ts +0 -7
- package/dist/src/components/molecules/textarea-field.d.ts +0 -11
- package/dist/src/components/molecules/tooltip-field.d.ts +0 -13
- package/dist/src/components/organisms/data-table/actions.d.ts +0 -12
- package/dist/src/components/organisms/data-table/column-visibility.d.ts +0 -6
- package/dist/src/components/organisms/data-table/content.d.ts +0 -18
- package/dist/src/components/organisms/data-table/context.d.ts +0 -10
- package/dist/src/components/organisms/data-table/index.d.ts +0 -17
- package/dist/src/components/organisms/data-table/pagination.d.ts +0 -10
- package/dist/src/components/organisms/data-table/root.d.ts +0 -13
- package/dist/src/components/organisms/data-table/search.d.ts +0 -8
- package/dist/src/components/organisms/data-table/toolbar.d.ts +0 -7
- package/dist/src/components/organisms/date-preset/context.d.ts +0 -8
- package/dist/src/components/organisms/date-preset/date-preset.d.ts +0 -11
- package/dist/src/components/organisms/date-preset/index.d.ts +0 -8
- package/dist/src/components/organisms/date-preset/presets.d.ts +0 -21
- package/dist/src/components/organisms/date-preset/root.d.ts +0 -9
- package/dist/src/components/organisms/form-combobox.d.ts +0 -21
- package/dist/src/components/organisms/form-date-picker.d.ts +0 -13
- package/dist/src/components/organisms/form-file-upload.d.ts +0 -23
- package/dist/src/components/organisms/form-input.d.ts +0 -16
- package/dist/src/components/organisms/form-password.d.ts +0 -14
- package/dist/src/components/organisms/form-radio.d.ts +0 -15
- package/dist/src/components/organisms/form-select.d.ts +0 -19
- package/dist/src/components/organisms/form-slider.d.ts +0 -23
- package/dist/src/components/organisms/form-switch.d.ts +0 -10
- package/dist/src/components/organisms/form-textarea.d.ts +0 -11
- package/dist/src/components/organisms/form-time-picker.d.ts +0 -22
- package/dist/src/components/organisms/timeline.d.ts +0 -25
- package/dist/src/hooks/use-data-table.d.ts +0 -165
- package/dist/src/hooks/use-form-field.d.ts +0 -19
- package/dist/src/hooks/use-mobile.d.ts +0 -1
- package/dist/src/hooks/use-popup-layer.d.ts +0 -10
- package/dist/src/hooks/use-sidebar.d.ts +0 -12
- package/dist/src/index.d.ts +0 -105
- package/dist/src/lib/design-variants.d.ts +0 -13
- package/dist/src/lib/types.d.ts +0 -7
- package/dist/src/lib/utils.d.ts +0 -31
- package/dist/src/main.d.ts +0 -1
- package/dist/src/mock/actions.d.ts +0 -6
- package/dist/src/mock/columns.d.ts +0 -9
- package/dist/src/providers/popup-layer-provider.d.ts +0 -14
- package/dist/src/types/messaging.d.ts +0 -34
- /package/dist/{src/components → components}/atoms/sortable-item.d.ts +0 -0
- /package/dist/{src/components → components}/molecules/sortable-list.d.ts +0 -0
- /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;
|
package/dist/src/index.d.ts
DELETED
|
@@ -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;
|
package/dist/src/lib/types.d.ts
DELETED
package/dist/src/lib/utils.d.ts
DELETED
|
@@ -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;
|
package/dist/src/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
@@ -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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|