@ivao/atmosphere-react 2.0.0-next.3 → 2.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atmosphere-react.js +597 -589
- package/dist/atmosphere-react.js.map +1 -1
- package/dist/react-components.d.ts +16 -2
- package/package.json +1 -1
|
@@ -129,6 +129,7 @@ import { TabsTriggerProps } from '@radix-ui/react-tabs';
|
|
|
129
129
|
import { TdHTMLAttributes } from 'react';
|
|
130
130
|
import { TextareaHTMLAttributes } from 'react';
|
|
131
131
|
import { ThHTMLAttributes } from 'react';
|
|
132
|
+
import { ToastProps as ToastProps_2 } from '@radix-ui/react-toast';
|
|
132
133
|
import { ToggleGroupItemProps as ToggleGroupItemProps_2 } from '@radix-ui/react-toggle-group';
|
|
133
134
|
import { ToggleProps } from '@radix-ui/react-toggle';
|
|
134
135
|
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
@@ -495,7 +496,7 @@ export declare const DarkModeToggle: ComponentType<DarkModeToggleProps>;
|
|
|
495
496
|
declare type DarkModeToggleProps = Omit<ComponentProps<typeof IconButton>, 'onClick' | 'Icon'> & Pick<ComponentPropsWithoutRef<typeof Tooltip>, 'side' | 'sideOffset' | 'align' | 'alignOffset'>;
|
|
496
497
|
|
|
497
498
|
export declare const DataTable: {
|
|
498
|
-
<TData>({ displayPagination, isClientSideData, displayViewOptions, ToolbarContent, ...props }: DataTableProps<TData>): JSX_2.Element;
|
|
499
|
+
<TData>({ displayPagination, isClientSideData, displayViewOptions, ToolbarContent, isLoading, noResultsMessage, ...props }: DataTableProps<TData>): JSX_2.Element;
|
|
499
500
|
displayName: string;
|
|
500
501
|
};
|
|
501
502
|
|
|
@@ -518,6 +519,15 @@ export declare interface DataTableProps<TData> extends Omit<TableOptions<TData>,
|
|
|
518
519
|
* If true, the data will be paginated, sorted, and filtered on the client side.
|
|
519
520
|
*/
|
|
520
521
|
isClientSideData?: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* If true, a loading column will be displayed.
|
|
524
|
+
*/
|
|
525
|
+
isLoading?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Message to display when there are no results.
|
|
528
|
+
* @default 'No results.'
|
|
529
|
+
*/
|
|
530
|
+
noResultsMessage?: string;
|
|
521
531
|
}
|
|
522
532
|
|
|
523
533
|
export declare function DataTableRowActions({ actions }: DataTableRowActionsProps): JSX_2.Element;
|
|
@@ -1185,7 +1195,7 @@ declare interface ToastProps {
|
|
|
1185
1195
|
title: string;
|
|
1186
1196
|
description?: string;
|
|
1187
1197
|
duration?: number;
|
|
1188
|
-
toastProps?:
|
|
1198
|
+
toastProps?: ComponentProps<typeof ToastRoot>;
|
|
1189
1199
|
actionAltText: string;
|
|
1190
1200
|
action?: ReactNode;
|
|
1191
1201
|
}
|
|
@@ -1196,6 +1206,10 @@ declare interface ToastProviderProps {
|
|
|
1196
1206
|
swipeDirection?: ComponentPropsWithoutRef<typeof Provider>['swipeDirection'];
|
|
1197
1207
|
}
|
|
1198
1208
|
|
|
1209
|
+
declare const ToastRoot: ForwardRefExoticComponent<Omit<ToastProps_2 & RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
1210
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
1211
|
+
} & ClassProp) | undefined) => string> & RefAttributes<HTMLLIElement>>;
|
|
1212
|
+
|
|
1199
1213
|
export declare const Toggle: ForwardRefExoticComponent<Omit<ToggleProps & RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1200
1214
|
variant?: "default" | "outline" | null | undefined;
|
|
1201
1215
|
size?: "default" | "sm" | "lg" | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivao/atmosphere-react",
|
|
3
3
|
"description": "React component library for the IVAO Atmosphere design system.",
|
|
4
|
-
"version": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/atmosphere-react.js",
|
|
7
7
|
"types": "./dist/react-components.d.ts",
|