@ttoss/components 2.7.11 → 2.9.0
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/JsonEditor/index.d.ts +1 -0
- package/dist/NotificationsMenu/index.d.ts +17 -2
- package/dist/SpotlightCard/index.d.ts +27 -0
- package/dist/esm/Menu/index.js +15 -2187
- package/dist/esm/NotificationCard/index.js +154 -3
- package/dist/esm/NotificationsMenu/index.js +181 -28
- package/dist/esm/SpotlightCard/index.js +207 -0
- package/package.json +5 -1
- package/dist/esm/chunk-4GBVRL7E.js +0 -156
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type NotificationType = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
5
|
+
type NotificationAction = {
|
|
6
|
+
action?: 'open_url';
|
|
7
|
+
url?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
10
|
+
type NotificationCardProps = {
|
|
11
|
+
type: NotificationType;
|
|
12
|
+
title?: string | React.ReactNode;
|
|
13
|
+
message: string | React.ReactNode;
|
|
14
|
+
actions?: NotificationAction[];
|
|
15
|
+
caption?: string | React.ReactNode;
|
|
16
|
+
tags?: string[] | React.ReactNode;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
};
|
|
4
19
|
|
|
5
20
|
type Notification = NotificationCardProps & {
|
|
6
21
|
id: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { IconType } from '@ttoss/react-icons';
|
|
3
|
+
import { ButtonProps } from '@ttoss/ui';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
type ButtonPropType = ButtonProps | React.ReactNode;
|
|
7
|
+
type SpotlightCardProps = {
|
|
8
|
+
icon: IconType;
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
description: string;
|
|
12
|
+
firstButton?: ButtonPropType;
|
|
13
|
+
secondButton?: ButtonPropType;
|
|
14
|
+
/**
|
|
15
|
+
* Visual variant of the card.
|
|
16
|
+
* - 'accent': (Default) Highlighted background (Action Accent) with shine animation.
|
|
17
|
+
* - 'primary': Primary background (Action Primary).
|
|
18
|
+
* @default 'accent'
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'accent' | 'primary';
|
|
21
|
+
};
|
|
22
|
+
declare const SpotlightCard: {
|
|
23
|
+
({ icon, title, subtitle, description, firstButton, secondButton, variant, }: SpotlightCardProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { SpotlightCard, type SpotlightCardProps };
|