@adecore/ui 0.54.8 → 0.54.10
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/Banner.d.ts +1 -1
- package/dist/Banner.js +1 -0
- package/dist/Toasts.js +1 -1
- package/package.json +1 -1
- package/src/Banner.tsx +3 -2
- package/src/Toasts.tsx +1 -1
package/dist/Banner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LucideIcon } from 'lucide-react';
|
|
2
2
|
import type { ReactNode, Ref } from 'react';
|
|
3
|
-
export type BannerTone = 'attention' | 'error' | 'neutral';
|
|
3
|
+
export type BannerTone = 'attention' | 'error' | 'positive' | 'neutral';
|
|
4
4
|
export interface BannerProps {
|
|
5
5
|
icon: LucideIcon;
|
|
6
6
|
tone: BannerTone;
|
package/dist/Banner.js
CHANGED
|
@@ -6,6 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
const TONE = {
|
|
7
7
|
attention: 'text-status-needs-you',
|
|
8
8
|
error: 'text-status-error',
|
|
9
|
+
positive: 'text-positive',
|
|
9
10
|
neutral: 'text-text-muted'
|
|
10
11
|
};
|
|
11
12
|
const OVERLAY = 'absolute inset-x-0 top-3 z-20';
|
package/dist/Toasts.js
CHANGED
package/package.json
CHANGED
package/src/Banner.tsx
CHANGED
|
@@ -4,12 +4,13 @@ import type { ReactNode, Ref } from 'react';
|
|
|
4
4
|
import { Icon } from './Icon.tsx';
|
|
5
5
|
import { Surface } from './Surface.tsx';
|
|
6
6
|
|
|
7
|
-
/* The mark in front of the line: a decision to make, a failure to read, or something that happened. */
|
|
8
|
-
export type BannerTone = 'attention' | 'error' | 'neutral';
|
|
7
|
+
/* The mark in front of the line: a decision to make, a failure to read, something that succeeded, or something that happened. */
|
|
8
|
+
export type BannerTone = 'attention' | 'error' | 'positive' | 'neutral';
|
|
9
9
|
|
|
10
10
|
const TONE: Record<BannerTone, string> = {
|
|
11
11
|
attention: 'text-status-needs-you',
|
|
12
12
|
error: 'text-status-error',
|
|
13
|
+
positive: 'text-positive',
|
|
13
14
|
neutral: 'text-text-muted'
|
|
14
15
|
};
|
|
15
16
|
|