@dashadmin/dash-components 1.3.73 → 1.3.74-srcfree.2
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/AuditLog/AuditLog.d.ts +27 -0
- package/dist/components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput.d.ts +22 -0
- package/dist/components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput.d.ts +7 -0
- package/dist/components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput.d.ts +22 -0
- package/dist/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput.d.ts +7 -0
- package/dist/components/Json/Json.d.ts +5 -0
- package/dist/components/JsonColorSelector/JsonColorSelector.d.ts +5 -0
- package/dist/components/JsonColorSelector/JsonColorSelectorEnhanced.d.ts +4 -0
- package/dist/components/JsonColorSelector/JsonCssVarValues.d.ts +5 -0
- package/dist/components/JsonColorSelector/components/BasicColorSelector.d.ts +9 -0
- package/dist/components/JsonColorSelector/components/ColorEditDialog.d.ts +12 -0
- package/dist/components/JsonColorSelector/components/ColorPaletteItem.d.ts +7 -0
- package/dist/components/JsonColorSelector/components/ImageColorExtractor.d.ts +9 -0
- package/dist/components/JsonColorSelector/helpers/functions.d.ts +11 -0
- package/dist/components/JsonColorSelector/helpers/paletteDerivation.d.ts +37 -0
- package/{src/components/JsonColorSelector/interfaces/interfaces.tsx → dist/components/JsonColorSelector/interfaces/interfaces.d.ts} +6 -8
- package/dist/components/JsonColorSelector/useAsyncColorThief.d.ts +11 -0
- package/dist/components/ListActive/ListActive.d.ts +10 -0
- package/dist/components/ListActive/ListBoolean.d.ts +10 -0
- package/dist/components/NotificationPreferences/NotificationPreferences.d.ts +6 -0
- package/dist/components/SearchableSelects/RASearchableSelect.d.ts +25 -0
- package/dist/components/SearchableSelects/RASearchableSelectCheckboxes.d.ts +35 -0
- package/dist/components/SearchableSelects/RASearchableSelectChips.d.ts +33 -0
- package/dist/components/SearchableSelects/RASearchableSelectChipsRecordContext.d.ts +30 -0
- package/dist/components/SearchableSelects/SearchableSelect.d.ts +25 -0
- package/dist/components/SearchableSelects/SearchableSelectCheckboxes.d.ts +29 -0
- package/dist/components/SortableDataGrid/SortableDataGrid.d.ts +7 -0
- package/dist/components/SortableDataGrid/SortableDataGridBody.d.ts +7 -0
- package/dist/components/SortableDataGrid/SortableDataGridHeader.d.ts +6 -0
- package/dist/components/SortableDataGrid/SortableDataGridRow.d.ts +5 -0
- package/dist/components/Upload/SingleImageUploader.d.ts +8 -0
- package/dist/components/custom/PackageCopyMethod.d.ts +15 -0
- package/dist/components/custom/PackageRadioButtonGroup.d.ts +8 -0
- package/dist/components/dialog/Basic.d.ts +2 -0
- package/dist/components/dialog/Correct.d.ts +2 -0
- package/dist/components/dialog/Error.d.ts +2 -0
- package/dist/components/dialog/Info.d.ts +2 -0
- package/dist/components/dialog/InfoV2.d.ts +2 -0
- package/dist/components/dialog/NotFound.d.ts +2 -0
- package/dist/components/dialog/QuickSearch.d.ts +6 -0
- package/dist/components/notifications/NotificationsCenter.d.ts +109 -0
- package/dist/components/notifications/index.d.ts +2 -0
- package/dist/components/tables/PaginationComponent.d.ts +4 -0
- package/dist/components/theme/AppLoadingFallback.d.ts +6 -0
- package/dist/components/theme/ErrorBoundary.d.ts +19 -0
- package/dist/components/theme/InitialLoader.d.ts +3 -0
- package/dist/components/theme/NotFound.d.ts +13 -0
- package/dist/components/theme/NotResults.d.ts +7 -0
- package/dist/hooks/useDraggable.d.ts +1 -0
- package/dist/hooks/useNotifications.d.ts +2 -0
- package/dist/hooks/useQuickSearch.d.ts +6 -0
- package/{src/index.tsx → dist/index.d.ts} +10 -58
- package/dist/utils/setNativeValue.d.ts +2 -0
- package/package.json +24 -21
- package/src/components/AuditLog/AuditLog.tsx +0 -490
- package/src/components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput.tsx +0 -917
- package/src/components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput.tsx +0 -39
- package/src/components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput.tsx +0 -916
- package/src/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayAutoSearch.tsx.wip +0 -42
- package/src/components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput.tsx +0 -44
- package/src/components/Json/Json.tsx +0 -312
- package/src/components/JsonColorSelector/JsonColorSelector.tsx +0 -1443
- package/src/components/JsonColorSelector/JsonColorSelector.tsx.bkup +0 -746
- package/src/components/JsonColorSelector/JsonColorSelectorEnhanced.tsx +0 -1135
- package/src/components/JsonColorSelector/JsonCssVarValues.tsx +0 -867
- package/src/components/JsonColorSelector/components/BasicColorSelector.tsx +0 -333
- package/src/components/JsonColorSelector/components/ColorEditDialog.tsx +0 -495
- package/src/components/JsonColorSelector/components/ColorPaletteItem.tsx +0 -80
- package/src/components/JsonColorSelector/components/ImageColorExtractor.tsx +0 -420
- package/src/components/JsonColorSelector/helpers/functions.tsx +0 -123
- package/src/components/JsonColorSelector/helpers/paletteDerivation.ts +0 -367
- package/src/components/JsonColorSelector/useAsyncColorThief.tsx +0 -97
- package/src/components/ListActive/ListActive.tsx +0 -106
- package/src/components/ListActive/ListBoolean.tsx +0 -96
- package/src/components/NotificationPreferences/NotificationPreferences.tsx +0 -480
- package/src/components/SearchableSelects/RASearchableSelect.tsx +0 -303
- package/src/components/SearchableSelects/RASearchableSelectCheckboxes.tsx +0 -617
- package/src/components/SearchableSelects/RASearchableSelectChips.tsx +0 -561
- package/src/components/SearchableSelects/RASearchableSelectChipsRecordContext.tsx +0 -366
- package/src/components/SearchableSelects/SearchableSelect.tsx +0 -323
- package/src/components/SearchableSelects/SearchableSelectCheckboxes.tsx +0 -358
- package/src/components/SortableDataGrid/README.md +0 -1
- package/src/components/SortableDataGrid/SortableDataGrid.tsx +0 -56
- package/src/components/SortableDataGrid/SortableDataGridBody.tsx +0 -175
- package/src/components/SortableDataGrid/SortableDataGridHeader.tsx +0 -171
- package/src/components/SortableDataGrid/SortableDataGridRow.tsx +0 -247
- package/src/components/Upload/SingleImageUploader.tsx +0 -55
- package/src/components/custom/PackageCopyMethod.tsx +0 -109
- package/src/components/custom/PackageRadioButtonGroup.tsx +0 -49
- package/src/components/dialog/Basic.tsx +0 -11
- package/src/components/dialog/Correct.tsx +0 -16
- package/src/components/dialog/Error.tsx +0 -15
- package/src/components/dialog/Info.tsx +0 -15
- package/src/components/dialog/InfoV2.tsx +0 -35
- package/src/components/dialog/NotFound.tsx +0 -18
- package/src/components/dialog/QuickSearch.tsx +0 -115
- package/src/components/notifications/NotificationsCenter.tsx +0 -743
- package/src/components/notifications/index.ts +0 -42
- package/src/components/tables/PaginationComponent.tsx +0 -17
- package/src/components/theme/AppLoadingFallback.tsx +0 -42
- package/src/components/theme/ErrorBoundary.tsx +0 -57
- package/src/components/theme/InitialLoader.tsx +0 -16
- package/src/components/theme/NotFound.tsx +0 -124
- package/src/components/theme/NotResults.tsx +0 -56
- package/src/hooks/useDraggable.ts +0 -11
- package/src/hooks/useNotifications.ts +0 -14
- package/src/hooks/useQuickSearch.tsx +0 -29
- package/src/styles/index.less +0 -0
- package/src/utils/setNativeValue.tsx +0 -23
- /package/{src/components/AuditLog/index.ts → dist/components/AuditLog/index.d.ts} +0 -0
- /package/{src/components/NotificationPreferences/index.tsx → dist/components/NotificationPreferences/index.d.ts} +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ProcessedNotification, type ToastNotification as DashUtilsToastNotification, type DialogNotification as DashUtilsDialogNotification } from 'dash-utils';
|
|
3
|
+
export type NotificationData = ProcessedNotification;
|
|
4
|
+
export type ToastNotification = DashUtilsToastNotification;
|
|
5
|
+
export type DialogNotification = DashUtilsDialogNotification;
|
|
6
|
+
export interface NotificationsCenterConfig {
|
|
7
|
+
maxNotifications?: number;
|
|
8
|
+
toastAutoHideDuration?: number;
|
|
9
|
+
baseZIndex?: number;
|
|
10
|
+
menuMaxHeight?: number;
|
|
11
|
+
menuWidth?: number;
|
|
12
|
+
labels?: NotificationsCenterLabels;
|
|
13
|
+
icons?: NotificationsCenterIcons;
|
|
14
|
+
}
|
|
15
|
+
export interface NotificationsCenterLabels {
|
|
16
|
+
title?: string;
|
|
17
|
+
markAll?: string;
|
|
18
|
+
noNotifications?: string;
|
|
19
|
+
close?: string;
|
|
20
|
+
acknowledge?: string;
|
|
21
|
+
customer?: string;
|
|
22
|
+
store?: string;
|
|
23
|
+
received?: string;
|
|
24
|
+
now?: string;
|
|
25
|
+
minutesAgo?: string;
|
|
26
|
+
hoursAgo?: string;
|
|
27
|
+
daysAgo?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface NotificationsCenterIcons {
|
|
30
|
+
empty?: React.ReactNode;
|
|
31
|
+
active?: React.ReactNode;
|
|
32
|
+
customer?: React.ReactNode;
|
|
33
|
+
store?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare const formatTimeAgo: (timestamp: string, labels?: NotificationsCenterLabels) => string;
|
|
36
|
+
export declare const generateNotificationId: () => string;
|
|
37
|
+
export interface UseNotificationsCenterReturn {
|
|
38
|
+
notifications: NotificationData[];
|
|
39
|
+
toastNotifications: ToastNotification[];
|
|
40
|
+
dialogNotifications: DialogNotification[];
|
|
41
|
+
unreadCount: number;
|
|
42
|
+
addNotification: (notification: Omit<NotificationData, 'id' | 'timestamp' | 'isRead'>, options?: {
|
|
43
|
+
showDialog?: boolean;
|
|
44
|
+
showToast?: boolean;
|
|
45
|
+
toastSeverity?: ToastNotification['severity'];
|
|
46
|
+
}) => void;
|
|
47
|
+
markAsRead: (notificationId: string) => void;
|
|
48
|
+
markAllAsRead: () => void;
|
|
49
|
+
removeNotification: (notificationId: string) => void;
|
|
50
|
+
clearAllNotifications: () => void;
|
|
51
|
+
closeToast: (toastId: string) => void;
|
|
52
|
+
closeDialog: (notificationId: string) => void;
|
|
53
|
+
acknowledgeDialog: (notificationId: string) => void;
|
|
54
|
+
bringDialogToFront: (notificationId: string) => void;
|
|
55
|
+
updateDialogPosition: (notificationId: string, position: {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}) => void;
|
|
59
|
+
}
|
|
60
|
+
export declare const useNotificationsCenter: (config?: NotificationsCenterConfig) => UseNotificationsCenterReturn;
|
|
61
|
+
export interface NotificationButtonProps {
|
|
62
|
+
unreadCount: number;
|
|
63
|
+
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
64
|
+
icons?: NotificationsCenterIcons;
|
|
65
|
+
}
|
|
66
|
+
export declare const NotificationButton: React.FC<NotificationButtonProps>;
|
|
67
|
+
export interface NotificationMenuItemProps {
|
|
68
|
+
notification: NotificationData;
|
|
69
|
+
onMarkAsRead: (id: string) => void;
|
|
70
|
+
onRemove: (id: string) => void;
|
|
71
|
+
formatTimeAgo: (timestamp: string) => string;
|
|
72
|
+
}
|
|
73
|
+
export declare const NotificationMenuItem: React.FC<NotificationMenuItemProps>;
|
|
74
|
+
export interface NotificationsMenuProps {
|
|
75
|
+
anchorEl: HTMLElement | null;
|
|
76
|
+
notifications: NotificationData[];
|
|
77
|
+
onClose: () => void;
|
|
78
|
+
onMarkAsRead: (id: string) => void;
|
|
79
|
+
onMarkAllAsRead: () => void;
|
|
80
|
+
onRemove: (id: string) => void;
|
|
81
|
+
onClearAll: () => void;
|
|
82
|
+
config?: NotificationsCenterConfig;
|
|
83
|
+
}
|
|
84
|
+
export declare const NotificationsMenu: React.FC<NotificationsMenuProps>;
|
|
85
|
+
export interface ToastNotificationsStackProps {
|
|
86
|
+
toasts: ToastNotification[];
|
|
87
|
+
onClose: (toastId: string) => void;
|
|
88
|
+
autoHideDuration?: number;
|
|
89
|
+
baseZIndex?: number;
|
|
90
|
+
}
|
|
91
|
+
export declare const ToastNotificationsStack: React.FC<ToastNotificationsStackProps>;
|
|
92
|
+
export interface DraggableNotificationDialogProps {
|
|
93
|
+
notification: DialogNotification;
|
|
94
|
+
onClose: () => void;
|
|
95
|
+
onAcknowledge: () => void;
|
|
96
|
+
onFocus: () => void;
|
|
97
|
+
onPositionChange: (position: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
}) => void;
|
|
101
|
+
config?: NotificationsCenterConfig;
|
|
102
|
+
}
|
|
103
|
+
export declare const DraggableNotificationDialog: React.FC<DraggableNotificationDialogProps>;
|
|
104
|
+
export interface NotificationsCenterProps {
|
|
105
|
+
config?: NotificationsCenterConfig;
|
|
106
|
+
notificationsHook?: UseNotificationsCenterReturn;
|
|
107
|
+
}
|
|
108
|
+
export declare const NotificationsCenter: React.FC<NotificationsCenterProps>;
|
|
109
|
+
export default NotificationsCenter;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { NotificationsCenter, NotificationButton, NotificationsMenu, NotificationMenuItem, ToastNotificationsStack, DraggableNotificationDialog, useNotificationsCenter, formatTimeAgo, generateNotificationId, type NotificationData, type ToastNotification, type DialogNotification, type NotificationsCenterConfig, type NotificationsCenterLabels, type NotificationsCenterIcons, type NotificationButtonProps, type NotificationsMenuProps, type NotificationMenuItemProps, type ToastNotificationsStackProps, type DraggableNotificationDialogProps, type NotificationsCenterProps, type UseNotificationsCenterReturn, } from './NotificationsCenter';
|
|
2
|
+
export { default } from './NotificationsCenter';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ErrorBoundaryState {
|
|
3
|
+
hasError: boolean;
|
|
4
|
+
error?: Error;
|
|
5
|
+
}
|
|
6
|
+
declare class ErrorBoundary extends React.Component<{
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}, ErrorBoundaryState> {
|
|
9
|
+
constructor(props: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
});
|
|
12
|
+
static getDerivedStateFromError(error: Error): {
|
|
13
|
+
hasError: boolean;
|
|
14
|
+
error: Error;
|
|
15
|
+
};
|
|
16
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
17
|
+
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>;
|
|
18
|
+
}
|
|
19
|
+
export default ErrorBoundary;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TitleComponent } from 'react-admin';
|
|
3
|
+
interface NotFoundProps {
|
|
4
|
+
title?: TitleComponent;
|
|
5
|
+
time?: number;
|
|
6
|
+
redirect?: string | null;
|
|
7
|
+
disableCountdown?: boolean;
|
|
8
|
+
disableGoBack?: boolean;
|
|
9
|
+
customMessage?: string;
|
|
10
|
+
customButtonText?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const NotFound: (props: NotFoundProps) => React.JSX.Element;
|
|
13
|
+
export default NotFound;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDraggable, type DraggablePosition, type UseDraggableOptions, type UseDraggableReturn } from 'dash-utils';
|
|
@@ -3,75 +3,27 @@ export { default as PackageCopyMethod } from './components/custom/PackageCopyMet
|
|
|
3
3
|
export { default as NotResults } from './components/theme/NotResults';
|
|
4
4
|
export { default as NotFound } from './components/theme/NotFound';
|
|
5
5
|
export { default as QuickSearch } from './components/dialog/QuickSearch';
|
|
6
|
-
|
|
7
6
|
export { default as PaginationComponent } from './components/tables/PaginationComponent';
|
|
8
|
-
|
|
9
7
|
export { default as AutocompleteCheckBoxArrayInput } from './components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput';
|
|
10
8
|
export { default as AutoCompleteCheckBoxInput } from './components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput';
|
|
11
9
|
export { default as AutocompleteCheckBoxArrayInputAutoSearch } from './components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput';
|
|
12
10
|
export { default as AutoCompleteCheckBoxInputAutoSearch } from './components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput';
|
|
13
|
-
// TODO: AutocompleteCheckBoxArrayAutoSearch.tsx.wip
|
|
14
11
|
export { default as SortableDatagrid } from './components/SortableDataGrid/SortableDataGrid';
|
|
15
|
-
|
|
16
12
|
export { default as SearchableSelectCheckboxes } from './components/SearchableSelects/SearchableSelectCheckboxes';
|
|
17
|
-
export { default as SingleImageUploader } from './components/Upload/SingleImageUploader'
|
|
13
|
+
export { default as SingleImageUploader } from './components/Upload/SingleImageUploader';
|
|
18
14
|
export { default as ListActive } from './components/ListActive/ListActive';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
//export { default as useAsyncColorThief } from ''
|
|
25
|
-
export { default as Json } from './components/Json/Json'
|
|
26
|
-
export { default as JsonCssVarValues } from './components/JsonColorSelector/JsonCssVarValues'
|
|
27
|
-
export { default as NotificationPreferences } from './components/NotificationPreferences/NotificationPreferences'
|
|
28
|
-
|
|
29
|
-
// Audit Log Component
|
|
15
|
+
export { default as JsonColorSelector } from './components/JsonColorSelector/JsonColorSelector';
|
|
16
|
+
export { default as JsonColorSelectorEnhanced } from './components/JsonColorSelector/JsonColorSelectorEnhanced';
|
|
17
|
+
export { default as Json } from './components/Json/Json';
|
|
18
|
+
export { default as JsonCssVarValues } from './components/JsonColorSelector/JsonCssVarValues';
|
|
19
|
+
export { default as NotificationPreferences } from './components/NotificationPreferences/NotificationPreferences';
|
|
30
20
|
export { AuditLog } from './components/AuditLog';
|
|
31
21
|
export type { AuditLogProps, ActivityLogRecord } from './components/AuditLog';
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
NotificationsCenter,
|
|
36
|
-
NotificationButton,
|
|
37
|
-
NotificationsMenu,
|
|
38
|
-
NotificationMenuItem,
|
|
39
|
-
ToastNotificationsStack,
|
|
40
|
-
DraggableNotificationDialog,
|
|
41
|
-
useNotificationsCenter,
|
|
42
|
-
formatTimeAgo,
|
|
43
|
-
generateNotificationId,
|
|
44
|
-
} from './components/notifications';
|
|
45
|
-
|
|
46
|
-
export type {
|
|
47
|
-
NotificationData,
|
|
48
|
-
ToastNotification as NotificationToast,
|
|
49
|
-
DialogNotification as NotificationDialog,
|
|
50
|
-
NotificationsCenterConfig,
|
|
51
|
-
NotificationsCenterLabels,
|
|
52
|
-
NotificationsCenterIcons,
|
|
53
|
-
NotificationButtonProps,
|
|
54
|
-
NotificationsMenuProps,
|
|
55
|
-
NotificationMenuItemProps,
|
|
56
|
-
ToastNotificationsStackProps,
|
|
57
|
-
DraggableNotificationDialogProps,
|
|
58
|
-
NotificationsCenterProps,
|
|
59
|
-
UseNotificationsCenterReturn,
|
|
60
|
-
} from './components/notifications';
|
|
61
|
-
|
|
62
|
-
// Hooks - Re-exported from dash-utils for backward compatibility
|
|
63
|
-
// @deprecated Import directly from 'dash-utils' instead
|
|
22
|
+
export { NotificationsCenter, NotificationButton, NotificationsMenu, NotificationMenuItem, ToastNotificationsStack, DraggableNotificationDialog, useNotificationsCenter, formatTimeAgo, generateNotificationId, } from './components/notifications';
|
|
23
|
+
export type { NotificationData, ToastNotification as NotificationToast, DialogNotification as NotificationDialog, NotificationsCenterConfig, NotificationsCenterLabels, NotificationsCenterIcons, NotificationButtonProps, NotificationsMenuProps, NotificationMenuItemProps, ToastNotificationsStackProps, DraggableNotificationDialogProps, NotificationsCenterProps, UseNotificationsCenterReturn, } from './components/notifications';
|
|
64
24
|
export { useDraggable } from './hooks/useDraggable';
|
|
65
25
|
export type { DraggablePosition, UseDraggableOptions, UseDraggableReturn } from './hooks/useDraggable';
|
|
66
|
-
|
|
67
26
|
export { useNotifications } from './hooks/useNotifications';
|
|
68
|
-
export type {
|
|
69
|
-
ProcessedNotification,
|
|
70
|
-
ToastNotification,
|
|
71
|
-
DialogNotification,
|
|
72
|
-
UseNotificationsOptions,
|
|
73
|
-
UseNotificationsReturn
|
|
74
|
-
} from './hooks/useNotifications';
|
|
75
|
-
|
|
27
|
+
export type { ProcessedNotification, ToastNotification, DialogNotification, UseNotificationsOptions, UseNotificationsReturn } from './hooks/useNotifications';
|
|
76
28
|
export { useQuickSearch } from 'dash-utils';
|
|
77
|
-
export type { UseQuickSearchReturn } from 'dash-utils';
|
|
29
|
+
export type { UseQuickSearchReturn } from 'dash-utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashadmin/dash-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.74-srcfree.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"lint:fix": "pnpm prettier --write .",
|
|
11
11
|
"check-updates": "pnpm npm-check-updates",
|
|
12
12
|
"updates-packages": "pnpm npm-check-updates -u",
|
|
13
|
-
"build": "tsup"
|
|
13
|
+
"build": "tsup && pnpm run build:types",
|
|
14
|
+
"build:types": "../../node_modules/.bin/tsc -p tsconfig.json --declaration --emitDeclarationOnly --noEmit false --outDir dist --rootDir src --skipLibCheck; test -f dist/index.d.ts"
|
|
14
15
|
},
|
|
15
16
|
"browserslist": {
|
|
16
17
|
"production": [
|
|
@@ -34,17 +35,17 @@
|
|
|
34
35
|
"@rollup/plugin-node-resolve": "latest",
|
|
35
36
|
"@rollup/plugin-replace": "latest",
|
|
36
37
|
"@rollup/plugin-typescript": "latest",
|
|
37
|
-
"@dashadmin/dash-auto-admin": "1.3.
|
|
38
|
-
"@dashadmin/dash-dialog": "1.3.
|
|
39
|
-
"@dashadmin/dash-modal": "1.3.
|
|
40
|
-
"@dashadmin/dash-utils": "1.3.
|
|
38
|
+
"@dashadmin/dash-auto-admin": "1.3.74-srcfree.2",
|
|
39
|
+
"@dashadmin/dash-dialog": "1.3.74-srcfree.2",
|
|
40
|
+
"@dashadmin/dash-modal": "1.3.74-srcfree.2",
|
|
41
|
+
"@dashadmin/dash-utils": "1.3.74-srcfree.2",
|
|
41
42
|
"numeral": "^2.0.6",
|
|
42
43
|
"react-number-format": "^5.4.4",
|
|
43
|
-
"@dashadmin/dash-auth": "1.3.
|
|
44
|
-
"@dashadmin/dash-admin-state": "1.3.
|
|
45
|
-
"@dashadmin/dash-axios-hook": "1.3.
|
|
46
|
-
"@dashadmin/dash-interfaces": "1.3.
|
|
47
|
-
"@dashadmin/dash-styles": "1.3.
|
|
44
|
+
"@dashadmin/dash-auth": "1.3.74-srcfree.2",
|
|
45
|
+
"@dashadmin/dash-admin-state": "1.3.74-srcfree.2",
|
|
46
|
+
"@dashadmin/dash-axios-hook": "1.3.74-srcfree.2",
|
|
47
|
+
"@dashadmin/dash-interfaces": "1.3.74-srcfree.2",
|
|
48
|
+
"@dashadmin/dash-styles": "1.3.74-srcfree.2",
|
|
48
49
|
"query-string": "latest",
|
|
49
50
|
"react-admin": "5.15.1",
|
|
50
51
|
"react-color": "^2.19.3",
|
|
@@ -72,8 +73,8 @@
|
|
|
72
73
|
"@types/react-dom": "latest",
|
|
73
74
|
"@zerollup/ts-transform-paths": "latest",
|
|
74
75
|
"babel-loader": "latest",
|
|
75
|
-
"@dashadmin/dash-eslint": "1.3.
|
|
76
|
-
"@dashadmin/dash-tsconfig": "1.3.
|
|
76
|
+
"@dashadmin/dash-eslint": "1.3.74-srcfree.2",
|
|
77
|
+
"@dashadmin/dash-tsconfig": "1.3.74-srcfree.2",
|
|
77
78
|
"eslint": "latest",
|
|
78
79
|
"eslint-config-airbnb": "latest",
|
|
79
80
|
"eslint-config-airbnb-typescript": "latest",
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
"eslint-plugin-react": "latest",
|
|
89
90
|
"eslint-plugin-react-hooks": "latest",
|
|
90
91
|
"eslint-plugin-storybook": "latest",
|
|
91
|
-
"@dashadmin/dash-prettier": "1.3.
|
|
92
|
+
"@dashadmin/dash-prettier": "1.3.74-srcfree.2",
|
|
92
93
|
"query-string": "latest",
|
|
93
94
|
"react-dom": "19.2.8",
|
|
94
95
|
"rollup": "latest",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"extends": "react-app"
|
|
114
115
|
},
|
|
115
116
|
"module": "dist/index.js",
|
|
116
|
-
"types": "./
|
|
117
|
+
"types": "./dist/index.d.ts",
|
|
117
118
|
"exports": {
|
|
118
119
|
".": "./dist/index.js",
|
|
119
120
|
"./components/AuditLog": "./dist/components/AuditLog/index.js",
|
|
@@ -130,18 +131,20 @@
|
|
|
130
131
|
"registry": "https://registry.npmjs.org"
|
|
131
132
|
},
|
|
132
133
|
"files": [
|
|
133
|
-
"dist"
|
|
134
|
-
"src"
|
|
134
|
+
"dist"
|
|
135
135
|
],
|
|
136
136
|
"typesVersions": {
|
|
137
137
|
"*": {
|
|
138
|
+
"dist/*": [
|
|
139
|
+
"dist/*"
|
|
140
|
+
],
|
|
138
141
|
"src/*": [
|
|
139
|
-
"
|
|
140
|
-
"
|
|
142
|
+
"dist/*",
|
|
143
|
+
"dist/*/index"
|
|
141
144
|
],
|
|
142
145
|
"*": [
|
|
143
|
-
"
|
|
144
|
-
"
|
|
146
|
+
"dist/*",
|
|
147
|
+
"dist/*/index"
|
|
145
148
|
]
|
|
146
149
|
}
|
|
147
150
|
}
|