@bcrumbs.net/bc-ui 0.0.16 → 0.0.18
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/README.md +2 -1
- package/index.esm.js +2254 -2523
- package/package.json +4 -1
- package/src/index.d.ts +4 -0
- package/src/lib/charts/ChartLegend/ChartLegend.d.ts +3 -1
- package/src/lib/charts/NewBarChart/NewBarChart.d.ts +3 -1
- package/src/lib/charts/NewPieChart/NewPieChart.d.ts +3 -1
- package/src/lib/coloredTag/ColoredTag.d.ts +5 -1
- package/src/lib/constants/BoxShadow.d.ts +4 -3
- package/src/lib/constants/Color.d.ts +123 -110
- package/src/lib/constants/FontFamily.d.ts +9 -8
- package/src/lib/constants/LineHeight.d.ts +12 -11
- package/src/lib/constants/TextSize.d.ts +14 -13
- package/src/lib/constants/TextWeight.d.ts +11 -10
- package/src/lib/constants/index.d.ts +3 -0
- package/src/lib/dropList/bcdrop-list.d.ts +2 -1
- package/src/lib/hooks/useCopyToClipboard/index.d.ts +17 -0
- package/src/lib/icon/bcicon.d.ts +9 -0
- package/src/lib/navigation/left-nav/leftNavButton/index.d.ts +1 -1
- package/src/lib/navigation/types.d.ts +4 -0
- package/src/lib/newComponents/BCDrawer/BCDrawer.d.ts +29 -0
- package/src/lib/newComponents/BCInlineAlert/BCInlineAlert.d.ts +1 -1
- package/src/lib/newComponents/BCProgressDialog/BCProgressDialog.d.ts +4 -0
- package/src/lib/newComponents/BCProgressDialog/types.d.ts +20 -0
- package/src/lib/toaster/index.d.ts +1 -0
- package/src/lib/toaster/lightToast.d.ts +12 -0
- package/src/stories/NewColorsGallery.d.ts +4 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Library-neutral progress state, so consumers can map from any job/status enum. */
|
|
2
|
+
export type BCProgressDialogStatus = 'processing' | 'completed' | 'failed';
|
|
3
|
+
export type BCProgressDialogProps = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
/** Progress percentage, 0-100. */
|
|
6
|
+
progress: number;
|
|
7
|
+
status: BCProgressDialogStatus;
|
|
8
|
+
/** Text shown while the job is processing. */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Text shown once the job has completed. */
|
|
11
|
+
completedTitle: string;
|
|
12
|
+
/** Text shown when the job has failed. */
|
|
13
|
+
failedTitle: string;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
/** When provided, closing the dialog while processing cancels the job instead. */
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
rtl: boolean;
|
|
18
|
+
/** Optional background image URL for the dialog surface; falls back to a dark gradient. */
|
|
19
|
+
backgroundImage?: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LightToastVariant = 'success' | 'info';
|
|
3
|
+
type LightToastProps = {
|
|
4
|
+
/** Message; may contain inline links. */
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
variant?: LightToastVariant;
|
|
7
|
+
autoClose?: number | false;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
};
|
|
10
|
+
/** White card toast with a status icon and inline close button. */
|
|
11
|
+
export declare function triggerLightToast({ title, variant, autoClose, onClose }: LightToastProps): import("react").ReactText;
|
|
12
|
+
export {};
|