@bigbluebutton/bbb-ui-components-react 0.9.0 → 0.11.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/README.md +1 -0
- package/dist/components/Accordion.js +7 -7
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Button.js +32 -29
- package/dist/components/Checkbox.js +33 -10
- package/dist/components/Input.js +64 -61
- package/dist/components/Modal.js +46 -43
- package/dist/components/Search.js +3 -2
- package/dist/components/Slider.js +8 -8
- package/dist/components/Spinner.js +1 -0
- package/dist/components/Toast.js +295 -0
- package/dist/components/Toggle.js +23 -16
- package/dist/components/index.js +318 -142
- package/dist/esm/components/Accordion/component.js +2 -1
- package/dist/esm/components/Avatar/component.js +2 -1
- package/dist/esm/components/Button/component.js +26 -5
- package/dist/esm/components/Button/constants.js +11 -4
- package/dist/esm/components/Button/styles.js +25 -1
- package/dist/esm/components/Checkbox/component.js +67 -12
- package/dist/esm/components/Checkbox/constants.js +8 -0
- package/dist/esm/components/Checkbox/styles.js +50 -8
- package/dist/esm/components/Slider/component.js +3 -2
- package/dist/esm/components/Slider/valueLabel.js +36 -0
- package/dist/esm/components/Spinner/styles.js +1 -0
- package/dist/esm/components/Toast/component.js +144 -0
- package/dist/esm/components/Toast/constants.js +36 -0
- package/dist/esm/components/Toast/index.js +1 -0
- package/dist/esm/components/Toast/styles.js +180 -0
- package/dist/esm/components/Toast/types.js +1 -0
- package/dist/esm/components/Toggle/component.js +88 -16
- package/dist/esm/components/Toggle/constants.js +8 -0
- package/dist/esm/components/Toggle/styles.js +32 -6
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/stylesheets/palette.js +4 -0
- package/dist/esm/utils/tooltip.js +20 -0
- package/dist/types/components/Button/constants.d.ts +8 -1
- package/dist/types/components/Button/styles.d.ts +2 -1
- package/dist/types/components/Button/type.d.ts +8 -1
- package/dist/types/components/Checkbox/component.d.ts +2 -1
- package/dist/types/components/Checkbox/constants.d.ts +8 -0
- package/dist/types/components/Checkbox/styles.d.ts +5 -3
- package/dist/types/components/Checkbox/types.d.ts +19 -1
- package/dist/types/components/Slider/component.d.ts +1 -1
- package/dist/types/components/Slider/valueLabel.d.ts +7 -0
- package/dist/types/components/TextInput/styles.d.ts +1 -1
- package/dist/types/components/Toast/component.d.ts +14 -0
- package/dist/types/components/Toast/constants.d.ts +42 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/types/components/Toast/styles.d.ts +14 -0
- package/dist/types/components/Toast/types.d.ts +68 -0
- package/dist/types/components/Toggle/component.d.ts +2 -1
- package/dist/types/components/Toggle/constants.d.ts +8 -0
- package/dist/types/components/Toggle/styles.d.ts +3 -3
- package/dist/types/components/Toggle/types.d.ts +14 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/stylesheets/palette.d.ts +2 -0
- package/dist/types/utils/tooltip.d.ts +3 -0
- package/package.json +11 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { ToastProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A notification card for transient messages.
|
|
5
|
+
*
|
|
6
|
+
* This component renders the presentational part of a toast notification: an icon badge
|
|
7
|
+
* matched to `variant`, the message, optional secondary content and an optional action button.
|
|
8
|
+
*
|
|
9
|
+
* It never hides itself. Both the close button and the `autoClose` timer call `onRequestClose`,
|
|
10
|
+
* leaving removal to whoever owns the toast stack, so the card can live inside an external
|
|
11
|
+
* toast engine without leaving an empty slot behind.
|
|
12
|
+
*/
|
|
13
|
+
declare function Toast({ message, variant, icon, content, showSeparator, small, disablePointer, onClick, clickAriaLabel, actionLabel, onActionClick, autoClose, paused, hideProgressBar, hideCloseButton, closeButtonAriaLabel, onRequestClose, maxHeight, dataTest, messageDataTest, closeButtonDataTest, actionButtonDataTest, onMouseEnter, onMouseLeave, onFocus, onBlur, ...rest }: ToastProps): JSX.Element;
|
|
14
|
+
export default Toast;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const TOAST_VARIANTS: {
|
|
2
|
+
readonly DEFAULT: "default";
|
|
3
|
+
readonly INFO: "info";
|
|
4
|
+
readonly SUCCESS: "success";
|
|
5
|
+
readonly WARNING: "warning";
|
|
6
|
+
readonly ERROR: "error";
|
|
7
|
+
};
|
|
8
|
+
export declare const TOAST_VARIANT_VALUES: ("default" | "error" | "info" | "success" | "warning")[];
|
|
9
|
+
export declare const DEFAULT_TOAST_VARIANT: "default";
|
|
10
|
+
export declare const DEFAULT_AUTO_CLOSE = 5000;
|
|
11
|
+
export declare const DEFAULT_CLOSE_BUTTON_ARIA_LABEL = "Close";
|
|
12
|
+
export declare const INTERACTIVE_SELECTOR: string;
|
|
13
|
+
export declare const DEFAULT_MAX_HEIGHT = "70vh";
|
|
14
|
+
export declare const DEFAULT_ICONS: {
|
|
15
|
+
readonly default: import("react-icons/lib").IconType;
|
|
16
|
+
readonly info: import("react-icons/lib").IconType;
|
|
17
|
+
readonly success: import("react-icons/lib").IconType;
|
|
18
|
+
readonly warning: import("react-icons/lib").IconType;
|
|
19
|
+
readonly error: import("react-icons/lib").IconType;
|
|
20
|
+
};
|
|
21
|
+
export declare const VARIANT_COLORS: {
|
|
22
|
+
readonly default: {
|
|
23
|
+
readonly background: "var(--color-primary, var(--color-brand-1, #0F70D7))";
|
|
24
|
+
readonly glyph: "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
25
|
+
};
|
|
26
|
+
readonly info: {
|
|
27
|
+
readonly background: "var(--color-primary, var(--color-brand-1, #0F70D7))";
|
|
28
|
+
readonly glyph: "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
29
|
+
};
|
|
30
|
+
readonly success: {
|
|
31
|
+
readonly background: "var(--color-success-dark, #209B51)";
|
|
32
|
+
readonly glyph: "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
33
|
+
};
|
|
34
|
+
readonly warning: {
|
|
35
|
+
readonly background: "var(--color-warning-dark, #D8680B)";
|
|
36
|
+
readonly glyph: "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
37
|
+
};
|
|
38
|
+
readonly error: {
|
|
39
|
+
readonly background: "var(--color-danger, var(--color-error, #DF2721))";
|
|
40
|
+
readonly glyph: "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BBBToast } from './component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StyledCardActionProps, StyledIconBadgeProps, StyledProgressBarProps, StyledTextProps, StyledToastProps } from './types';
|
|
2
|
+
export declare const CardAction: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledCardActionProps>> & string;
|
|
3
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledToastProps>> & string;
|
|
4
|
+
export declare const IconSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const IconBand: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const IconBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledIconBadgeProps>> & string;
|
|
9
|
+
export declare const Message: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTextProps>> & string;
|
|
10
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTextProps>> & string;
|
|
11
|
+
export declare const ActionWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const CloseButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export declare const ProgressTrack: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export declare const ProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProgressBarProps>> & string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TOAST_VARIANT_VALUES } from './constants';
|
|
3
|
+
export type ToastVariant = (typeof TOAST_VARIANT_VALUES)[number];
|
|
4
|
+
export interface StyledToastProps {
|
|
5
|
+
$disablePointer: boolean;
|
|
6
|
+
$maxHeight: string;
|
|
7
|
+
}
|
|
8
|
+
export interface StyledProgressBarProps {
|
|
9
|
+
$variant: ToastVariant;
|
|
10
|
+
$duration: number;
|
|
11
|
+
$paused: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface StyledIconBadgeProps {
|
|
14
|
+
$variant: ToastVariant;
|
|
15
|
+
$small: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface StyledCardActionProps {
|
|
18
|
+
$visuallyHidden: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface StyledTextProps {
|
|
21
|
+
$small: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
24
|
+
/** Title of the notification, rendered on its own line; usually plain text, but takes a node for inline i18n markup. */
|
|
25
|
+
message?: React.ReactNode;
|
|
26
|
+
/** Visual variant driving the default icon and the icon badge color. @default 'default' */
|
|
27
|
+
variant?: ToastVariant;
|
|
28
|
+
/** Custom icon replacing the one matched to `variant`, or `false` to hide the icon badge entirely. */
|
|
29
|
+
icon?: React.ReactNode | false;
|
|
30
|
+
/** Description or secondary content (text, links, action buttons) rendered below the title, sharing its left edge. */
|
|
31
|
+
content?: React.ReactNode;
|
|
32
|
+
/** Shows the divider between the title and `content`; only rendered when both are present. @default true */
|
|
33
|
+
showSeparator?: boolean;
|
|
34
|
+
/** Compact variant for space-constrained placements. @default false */
|
|
35
|
+
small?: boolean;
|
|
36
|
+
/** Keeps the default cursor instead of showing a pointer one, so the toast doesn't read as clickable; defaults to `false` when `onClick` is set and `true` otherwise. */
|
|
37
|
+
disablePointer?: boolean;
|
|
38
|
+
/** Click handler for the whole toast (e.g. open a related chat or panel); exposed to assistive technology as a button wrapping `message`. */
|
|
39
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
40
|
+
/** Accessible name for the `onClick` action, overriding the `message` text; needed when `onClick` is set without a `message`, else the `content` text is used. */
|
|
41
|
+
clickAriaLabel?: string;
|
|
42
|
+
/** Label for an optional action button rendered below the content. */
|
|
43
|
+
actionLabel?: string;
|
|
44
|
+
/** Handler for the action button; only used when `actionLabel` is set. */
|
|
45
|
+
onActionClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
46
|
+
/** Auto-dismiss delay in milliseconds, paused while the toast is hovered or focused, or `false` to persist until dismissed manually. @default 5000 */
|
|
47
|
+
autoClose?: number | false;
|
|
48
|
+
/** Pauses the `autoClose` countdown from outside, on top of the card's own pause on hover and focus (e.g. while a toast engine's stack is hovered). @default false */
|
|
49
|
+
paused?: boolean;
|
|
50
|
+
/** Hides the bar at the bottom of the card that counts down `autoClose`; never shown when `autoClose` is `false`. @default false */
|
|
51
|
+
hideProgressBar?: boolean;
|
|
52
|
+
/** Hides the close (X) button, for toasts that shouldn't be manually dismissed. @default false */
|
|
53
|
+
hideCloseButton?: boolean;
|
|
54
|
+
/** Accessible name for the close button; pass a translated string in localized apps. @default 'Close' */
|
|
55
|
+
closeButtonAriaLabel?: string;
|
|
56
|
+
/** Callback fired when the toast is dismissed, by the close button or by `autoClose`. */
|
|
57
|
+
onRequestClose?: () => void;
|
|
58
|
+
/** Caps the card's height, scrolling its body past that point; any CSS length. @default '70vh' */
|
|
59
|
+
maxHeight?: string;
|
|
60
|
+
/** Value for the `data-test` attribute on the container; also the base for the derived test ids below. */
|
|
61
|
+
dataTest?: string;
|
|
62
|
+
/** Test identifier applied to the message. Defaults to `${dataTest}-message` when `dataTest` is set. */
|
|
63
|
+
messageDataTest?: string;
|
|
64
|
+
/** Test identifier applied to the close button. Defaults to `${dataTest}-close-button` when `dataTest` is set. */
|
|
65
|
+
closeButtonDataTest?: string;
|
|
66
|
+
/** Test identifier applied to the action button. Defaults to `${dataTest}-action-button` when `dataTest` is set. */
|
|
67
|
+
actionButtonDataTest?: string;
|
|
68
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { ToggleProps } from './types';
|
|
3
|
+
import 'tippy.js/dist/tippy.css';
|
|
3
4
|
/**
|
|
4
5
|
* A customizable Toggle switch component.
|
|
5
6
|
*
|
|
@@ -7,5 +8,5 @@ import { ToggleProps } from './types';
|
|
|
7
8
|
* It supports labels (label and helperText) and various textPosition configurations.
|
|
8
9
|
*
|
|
9
10
|
*/
|
|
10
|
-
declare function Toggle({ label, helperText, textPosition, onChange, ariaLabel, ariaLabelledBy, ariaDescribedBy, id: providedId, slotProps, ...rest }: ToggleProps): JSX.Element;
|
|
11
|
+
declare function Toggle({ label, helperText, textPosition, fullWidth, disabled, onChange, ariaLabel, ariaLabelledBy, ariaDescribedBy, id: providedId, slotProps, tooltipLabel, tooltipPlacement, ...rest }: ToggleProps): JSX.Element;
|
|
11
12
|
export default Toggle;
|
|
@@ -6,3 +6,11 @@ export declare const TEXT_POSITIONS: {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const TEXT_POSITIONS_VALUES: ("left" | "right" | "bottom" | "top")[];
|
|
8
8
|
export declare const DEFAULT_TEXT_POSITION: "left" | "right" | "bottom" | "top";
|
|
9
|
+
export declare const TOOLTIP_PLACEMENTS: {
|
|
10
|
+
readonly TOP: "top";
|
|
11
|
+
readonly BOTTOM: "bottom";
|
|
12
|
+
readonly LEFT: "left";
|
|
13
|
+
readonly RIGHT: "right";
|
|
14
|
+
};
|
|
15
|
+
export declare const TOOLTIP_PLACEMENT_VALUES: ("left" | "right" | "bottom" | "top")[];
|
|
16
|
+
export declare const DEFAULT_TOOLTIP_PLACEMENT: "top";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StyledTextWrapperProps, StyledToggleWrapperProps } from './types';
|
|
1
|
+
import { StyledTextProps, StyledTextWrapperProps, StyledToggleWrapperProps } from './types';
|
|
2
2
|
export declare const ToggleWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledToggleWrapperProps>> & string;
|
|
3
3
|
export declare const ToggleSwitchWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
export declare const TextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, StyledTextWrapperProps>> & string;
|
|
5
|
-
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
6
|
-
export declare const HelperText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
5
|
+
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledTextProps>> & string;
|
|
6
|
+
export declare const HelperText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledTextProps>> & string;
|
|
7
7
|
export declare const MaterialToggle: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { SwitchProps } from '@mui/material';
|
|
2
|
-
import { TEXT_POSITIONS_VALUES } from './constants';
|
|
2
|
+
import { TEXT_POSITIONS_VALUES, TOOLTIP_PLACEMENT_VALUES } from './constants';
|
|
3
3
|
export type LayoutType = typeof TEXT_POSITIONS_VALUES[number];
|
|
4
|
+
type TooltipPlacement = typeof TOOLTIP_PLACEMENT_VALUES[number];
|
|
4
5
|
export type LabelPlacement = 'top' | 'bottom' | 'start' | 'end';
|
|
5
6
|
export interface StyledToggleWrapperProps {
|
|
6
7
|
$textPosition: LayoutType;
|
|
8
|
+
$fullWidth: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface StyledTextWrapperProps extends StyledToggleWrapperProps {
|
|
9
11
|
$hasLabel: boolean;
|
|
10
12
|
$hasHelperText: boolean;
|
|
13
|
+
$disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface StyledTextProps {
|
|
16
|
+
$disabled?: boolean;
|
|
11
17
|
}
|
|
12
18
|
export interface ToggleProps extends Omit<SwitchProps, 'inputProps'> {
|
|
13
19
|
/** Main label text displayed next to the toggle. */
|
|
@@ -16,10 +22,17 @@ export interface ToggleProps extends Omit<SwitchProps, 'inputProps'> {
|
|
|
16
22
|
helperText?: string;
|
|
17
23
|
/** Position of the label/helper text relative to the toggle. @default 'right' */
|
|
18
24
|
textPosition?: LayoutType;
|
|
25
|
+
/** Stretches the row to its container, putting the text and the switch at opposite ends; only used with `textPosition` 'left' or 'right'. @default false */
|
|
26
|
+
fullWidth?: boolean;
|
|
19
27
|
/** Accessible name for the toggle. */
|
|
20
28
|
ariaLabel?: string;
|
|
21
29
|
/** ID of the element that labels the toggle; ignored when `ariaLabel` is set, and falls back to the rendered label's id when omitted. */
|
|
22
30
|
ariaLabelledBy?: string;
|
|
23
31
|
/** ID of the element that describes the toggle; falls back to the rendered helper text's id when omitted. */
|
|
24
32
|
ariaDescribedBy?: string;
|
|
33
|
+
/** Text shown in a tooltip on hover and keyboard focus; when set, a disabled toggle stays focusable (`aria-disabled`) so the tooltip can be reached. */
|
|
34
|
+
tooltipLabel?: string;
|
|
35
|
+
/** Placement of the tooltip when `tooltipLabel` is provided. @default 'top' */
|
|
36
|
+
tooltipPlacement?: TooltipPlacement;
|
|
25
37
|
}
|
|
38
|
+
export {};
|
|
@@ -14,5 +14,6 @@ export { BBBSlider } from './Slider';
|
|
|
14
14
|
export { BBBSpinner } from './Spinner';
|
|
15
15
|
export { BBBTextAreaInput } from './TextAreaInput';
|
|
16
16
|
export { BBBTextInput } from './TextInput';
|
|
17
|
+
export { BBBToast } from './Toast';
|
|
17
18
|
export { BBBToggle } from './Toggle';
|
|
18
19
|
export { BBBTypography } from './Typography';
|
|
@@ -12,6 +12,8 @@ export declare const colorBrandLight = "var(--color-blue-aux, var(--color-brand-
|
|
|
12
12
|
export declare const colorBrandAux = "var(--color-brand-aux, var(--color-hover-light, var(--color-brand-light, #E5EFFB)))";
|
|
13
13
|
export declare const colorSuccess = "var(--color-success, #2DD36F)";
|
|
14
14
|
export declare const colorWarning = "var(--color-warning, #F59240)";
|
|
15
|
+
export declare const colorSuccessDark = "var(--color-success-dark, #209B51)";
|
|
16
|
+
export declare const colorWarningDark = "var(--color-warning-dark, #D8680B)";
|
|
15
17
|
export declare const colorError = "var(--color-danger, var(--color-error, #DF2721))";
|
|
16
18
|
export declare const colorErrorDark = "var(--color-danger-dark, var(--color-error-dark, #AE1010))";
|
|
17
19
|
export declare const colorBackgroundWhite = "var(--color-background-white, var(--color-white, var(--color-neutral-white, #FFFFFF)))";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbluebutton/bbb-ui-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/bigbluebutton/bbb-ui-components-react.git"
|
|
@@ -127,6 +127,13 @@
|
|
|
127
127
|
"require": "./dist/components/TextInput.js",
|
|
128
128
|
"default": "./dist/components/TextInput.js"
|
|
129
129
|
},
|
|
130
|
+
"./Toast": {
|
|
131
|
+
"types": "./dist/types/components/Toast/index.d.ts",
|
|
132
|
+
"node": "./dist/components/Toast.js",
|
|
133
|
+
"import": "./dist/esm/components/Toast/index.js",
|
|
134
|
+
"require": "./dist/components/Toast.js",
|
|
135
|
+
"default": "./dist/components/Toast.js"
|
|
136
|
+
},
|
|
130
137
|
"./Toggle": {
|
|
131
138
|
"types": "./dist/types/components/Toggle/index.d.ts",
|
|
132
139
|
"node": "./dist/components/Toggle.js",
|
|
@@ -240,6 +247,9 @@
|
|
|
240
247
|
"TextInput": [
|
|
241
248
|
"dist/types/components/TextInput/index.d.ts"
|
|
242
249
|
],
|
|
250
|
+
"Toast": [
|
|
251
|
+
"dist/types/components/Toast/index.d.ts"
|
|
252
|
+
],
|
|
243
253
|
"Toggle": [
|
|
244
254
|
"dist/types/components/Toggle/index.d.ts"
|
|
245
255
|
],
|