@bigbluebutton/bbb-ui-components-react 0.7.0 → 0.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/README.md +6 -3
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +30 -0
- package/dist/components/Button.js +42 -44
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/Input.js +68 -70
- package/dist/components/Modal.js +89 -91
- package/dist/components/Search.js +1 -1
- package/dist/components/Select.js +9 -9
- package/dist/components/Slider.js +35 -0
- package/dist/components/TextAreaInput.js +1 -1
- package/dist/components/TextInput.js +10 -10
- package/dist/components/Toggle.js +12 -12
- package/dist/components/colors.js +1 -1
- package/dist/components/index.js +239 -178
- package/dist/esm/components/Avatar/component.js +38 -0
- package/dist/esm/components/Avatar/constants.js +13 -0
- package/dist/esm/components/Avatar/index.js +1 -0
- package/dist/esm/components/Avatar/styles.js +42 -0
- package/dist/esm/components/Avatar/types.js +1 -0
- package/dist/esm/components/Button/component.js +7 -7
- package/dist/esm/components/Button/constants.js +12 -3
- package/dist/esm/components/Button/styles.js +21 -17
- package/dist/esm/components/Checkbox/component.js +11 -5
- package/dist/esm/components/Modal/component.js +4 -6
- package/dist/esm/components/Modal/styles.js +11 -8
- package/dist/esm/components/Slider/component.js +63 -0
- package/dist/esm/components/Slider/constants.js +9 -0
- package/dist/esm/components/Slider/index.js +1 -0
- package/dist/esm/components/Slider/styles.js +138 -0
- package/dist/esm/components/Slider/types.js +1 -0
- package/dist/esm/components/Toggle/component.js +16 -2
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/stylesheets/colors.js +4 -1
- package/dist/esm/stylesheets/palette.js +7 -3
- package/dist/esm/stylesheets/sizing.js +1 -0
- package/dist/types/components/Accordion/constants.d.ts +1 -1
- package/dist/types/components/Avatar/component.d.ts +12 -0
- package/dist/types/components/Avatar/constants.d.ts +8 -0
- package/dist/types/components/Avatar/index.d.ts +1 -0
- package/dist/types/components/Avatar/styles.d.ts +3 -0
- package/dist/types/components/Avatar/types.d.ts +26 -0
- package/dist/types/components/Button/constants.d.ts +11 -4
- package/dist/types/components/Button/type.d.ts +11 -2
- package/dist/types/components/Checkbox/component.d.ts +1 -1
- package/dist/types/components/Checkbox/types.d.ts +3 -1
- package/dist/types/components/Modal/styles.d.ts +3 -2
- package/dist/types/components/Modal/types.d.ts +2 -0
- package/dist/types/components/Slider/component.d.ts +11 -0
- package/dist/types/components/Slider/constants.d.ts +9 -0
- package/dist/types/components/Slider/index.d.ts +1 -0
- package/dist/types/components/Slider/styles.d.ts +8 -0
- package/dist/types/components/Slider/types.d.ts +46 -0
- package/dist/types/components/TextInput/styles.d.ts +1 -1
- package/dist/types/components/Toggle/component.d.ts +1 -1
- package/dist/types/components/Toggle/constants.d.ts +2 -2
- package/dist/types/components/Toggle/types.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/stylesheets/colors.d.ts +8 -5
- package/dist/types/stylesheets/palette.d.ts +6 -5
- package/dist/types/stylesheets/sizing.d.ts +1 -0
- package/package.json +23 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorNeutral2, colorNeutral3, colorNeutral4, colorWhite, colorLightGray, colorGray, colorDarkGray, colorBrand1, colorBrand2, colorBrand3, colorBrandLight, colorBrandAux, colorSuccess, colorWarning, colorError, colorErrorDark, colorBackgroundWhite, colorBackgroundLight, colorBackgroundBlue, colorBorderDefault, colorBorderSelected, colorBorderError, colorBorderFocusRing, colorTextDefault, colorTextLight, colorIconDefault, colorIconBlue, colorIconWhite, colorIconDefaultDark, colorHoverDark, colorHoverLight, colorHoverNeutral, colorOverlay, colorShadowDefault, } from './palette';
|
|
1
|
+
import { colorNeutral2, colorNeutral3, colorNeutral4, colorWhite, colorLightGray, colorGray, colorDarkGray, colorBrand1, colorBrand2, colorBrand3, colorBrandLight, colorBrandAux, colorSuccess, colorWarning, colorError, colorErrorDark, colorBackgroundWhite, colorBackgroundLight, colorBackgroundBlue, colorBorderDefault, colorBorderSelected, colorBorderError, colorBorderFocusRing, colorTextDefault, colorTextLight, colorIconDefault, colorIconBlue, colorIconWhite, colorIconDefaultDark, colorHoverDark, colorHoverLight, colorHoverNeutral, colorOverlay, colorShadowDefault, colorUserYou, } from './palette';
|
|
2
2
|
export const colors = {
|
|
3
3
|
neutral: {
|
|
4
4
|
neutral2: colorNeutral2,
|
|
@@ -54,4 +54,7 @@ export const colors = {
|
|
|
54
54
|
shadow: {
|
|
55
55
|
default: colorShadowDefault,
|
|
56
56
|
},
|
|
57
|
+
user: {
|
|
58
|
+
you: colorUserYou,
|
|
59
|
+
},
|
|
57
60
|
};
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
export const colorNeutral2 = 'var(--color-neutral-2, #717C91)';
|
|
3
3
|
export const colorNeutral3 = 'var(--color-neutral-3, #B0BDC9)';
|
|
4
4
|
export const colorNeutral4 = 'var(--color-neutral-4, #DCE4EC)';
|
|
5
|
-
export const colorWhite = 'var(--color-neutral-white, #FFFFFF)';
|
|
6
5
|
export const colorLightGray = 'var(--color-light-gray, #F4F6FA)';
|
|
7
6
|
export const colorGray = 'var(--color-gray, #4E5A66)';
|
|
8
7
|
export const colorDarkGray = 'var(--color-dark-gray, #393C48)';
|
|
8
|
+
const colorWhite_base = 'var(--color-neutral-white, #FFFFFF)';
|
|
9
|
+
// Mapped to core css vars
|
|
10
|
+
export const colorWhite = `var(--color-white, ${colorWhite_base})`;
|
|
9
11
|
// Brand colors
|
|
10
12
|
// Last-resort fallbacks mirror bigbluebutton-html5's palette so that a client
|
|
11
13
|
// which doesn't override --color-primary renders library components with the
|
|
@@ -17,7 +19,7 @@ export const colorBrand2 = `var(--color-brand-2, ${colorBrand1_base})`;
|
|
|
17
19
|
export const colorBrand3 = `var(--color-brand-3, ${colorBrand1_base})`;
|
|
18
20
|
// Mapped to core css vars
|
|
19
21
|
export const colorBrandLight = `var(--color-blue-aux, ${colorBrandLight_base})`;
|
|
20
|
-
export const colorBrandAux = `var(--color-brand-aux, ${colorBrandLight_base})`;
|
|
22
|
+
export const colorBrandAux = `var(--color-brand-aux, var(--color-hover-light, ${colorBrandLight_base}))`;
|
|
21
23
|
// Semantic colors
|
|
22
24
|
const colorError_base = 'var(--color-error, #DF2721)';
|
|
23
25
|
const colorErrorDark_base = 'var(--color-error-dark, #AE1010)';
|
|
@@ -32,7 +34,7 @@ export const colorBackgroundLight = `var(--color-background-light, ${colorLightG
|
|
|
32
34
|
export const colorBackgroundBlue = `var(--color-background-blue, ${colorBrandLight_base})`;
|
|
33
35
|
// Border colors
|
|
34
36
|
const colorBorderDefault_base = `var(--color-border-default, ${colorNeutral3})`;
|
|
35
|
-
export const colorBorderSelected = `var(--color-border-selected, ${
|
|
37
|
+
export const colorBorderSelected = `var(--color-border-selected, ${colorBrand1})`;
|
|
36
38
|
export const colorBorderError = `var(--color-border-error, ${colorError_base})`;
|
|
37
39
|
// Mapped to core css vars
|
|
38
40
|
export const colorBorderDefault = `var(--default-border, ${colorBorderDefault_base})`;
|
|
@@ -53,3 +55,5 @@ export const colorHoverNeutral = `var(--color-hover-neutral, ${colorNeutral4})`;
|
|
|
53
55
|
export const colorOverlay = 'var(--color-overlay, rgba(0, 0, 0, 0.75))';
|
|
54
56
|
//Shadow colors
|
|
55
57
|
export const colorShadowDefault = 'var(--color-shadow-default, rgb(0 35 11 / 20%))';
|
|
58
|
+
// User colors
|
|
59
|
+
export const colorUserYou = 'var(--color-user-you, #19237C)';
|
|
@@ -7,6 +7,7 @@ export const spacingMedium = '1rem'; // 16px
|
|
|
7
7
|
export const spacingMediumLarge = '1.25rem'; // 20px
|
|
8
8
|
export const spacingLarge = '1.5rem'; // 24px
|
|
9
9
|
export const spacingXLarge = '2rem'; // 32px
|
|
10
|
+
export const spacingXXLarge = '3rem'; // 48px
|
|
10
11
|
// Border sizes
|
|
11
12
|
export const borderRadiusDefault = '1rem'; //16px
|
|
12
13
|
export const borderRadiusSmall = '0.5rem'; //8px
|
|
@@ -4,7 +4,7 @@ declare const TOOLTIP_PLACEMENTS: {
|
|
|
4
4
|
readonly LEFT: "left";
|
|
5
5
|
readonly RIGHT: "right";
|
|
6
6
|
};
|
|
7
|
-
declare const TOOLTIP_PLACEMENT_VALUES: ("
|
|
7
|
+
declare const TOOLTIP_PLACEMENT_VALUES: ("left" | "right" | "bottom" | "top")[];
|
|
8
8
|
declare const DEFAULT_TOOLTIP_PLACEMENT: "top";
|
|
9
9
|
declare const BUTTON_HEADER_POSITIONS: {
|
|
10
10
|
readonly LEFT: "left";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import 'tippy.js/dist/tippy.css';
|
|
3
|
+
import { AvatarProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* A user avatar component.
|
|
6
|
+
*
|
|
7
|
+
* Renders the user's avatar image when available, falling back to their initials on a
|
|
8
|
+
* deterministically-colored background when no image is provided or it fails to load.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
declare function Avatar({ name, avatarUrl, color, size, isModerator, isYou, isTalking, disableTooltip, }: AvatarProps): JSX.Element;
|
|
12
|
+
export default Avatar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const AVATAR_SIZES: {
|
|
2
|
+
readonly SMALL: "small";
|
|
3
|
+
readonly MEDIUM: "medium";
|
|
4
|
+
readonly LARGE: "large";
|
|
5
|
+
};
|
|
6
|
+
export declare const AVATAR_SIZE_VALUES: ("small" | "medium" | "large")[];
|
|
7
|
+
export declare const DEFAULT_AVATAR_SIZE: "medium";
|
|
8
|
+
export declare const AVATAR_FALLBACK_COLORS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BBBAvatar } from './component';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { StyledAvatarProps } from './types';
|
|
2
|
+
export declare const AvatarInitials: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledAvatarProps>> & string;
|
|
3
|
+
export declare const AvatarImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, StyledAvatarProps>> & string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AVATAR_SIZE_VALUES } from './constants';
|
|
2
|
+
export type AvatarSize = typeof AVATAR_SIZE_VALUES[number];
|
|
3
|
+
export interface StyledAvatarProps {
|
|
4
|
+
$size: AvatarSize;
|
|
5
|
+
$color: string;
|
|
6
|
+
$isModerator: boolean;
|
|
7
|
+
$isTalking: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface AvatarProps {
|
|
10
|
+
/** Full name of the user; used to render initials, to derive a deterministic fallback color, and as the tooltip content. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** URL of the user's avatar image. Falls back to initials when omitted or if the image fails to load. */
|
|
13
|
+
avatarUrl?: string;
|
|
14
|
+
/** Background color behind the initials (and border color on the image). @default a color deterministically derived from `name`, or BBB's "you" color when `isYou` is set */
|
|
15
|
+
color?: string;
|
|
16
|
+
/** Size variant of the avatar. @default 'medium' */
|
|
17
|
+
size?: AvatarSize;
|
|
18
|
+
/** Renders a rounded-square shape instead of a circle, matching BBB's moderator avatar treatment. @default false */
|
|
19
|
+
isModerator?: boolean;
|
|
20
|
+
/** Marks this avatar as belonging to the current user, applying BBB's "you" color in place of the fallback/computed color. Ignored when `color` is set. @default false */
|
|
21
|
+
isYou?: boolean;
|
|
22
|
+
/** Shows a pulsing ring around the avatar, in its own color, matching BBB's talking indicator. @default false */
|
|
23
|
+
isTalking?: boolean;
|
|
24
|
+
/** Disables the tooltip that shows the full `name` on hover. @default false */
|
|
25
|
+
disableTooltip?: boolean;
|
|
26
|
+
}
|
|
@@ -26,17 +26,24 @@ declare const LAYOUTS: {
|
|
|
26
26
|
readonly CIRCLE: "circle";
|
|
27
27
|
readonly SQUARED: "squared";
|
|
28
28
|
};
|
|
29
|
-
declare const LAYOUT_VALUES: ("default" | "
|
|
30
|
-
declare const DEFAULT_LAYOUT: "default" | "
|
|
29
|
+
declare const LAYOUT_VALUES: ("default" | "circle" | "stacked" | "squared")[];
|
|
30
|
+
declare const DEFAULT_LAYOUT: "default" | "circle" | "stacked" | "squared";
|
|
31
31
|
declare const TOOLTIP_PLACEMENTS: {
|
|
32
32
|
readonly TOP: "top";
|
|
33
33
|
readonly BOTTOM: "bottom";
|
|
34
34
|
readonly LEFT: "left";
|
|
35
35
|
readonly RIGHT: "right";
|
|
36
36
|
};
|
|
37
|
-
declare const TOOLTIP_PLACEMENT_VALUES: ("
|
|
37
|
+
declare const TOOLTIP_PLACEMENT_VALUES: ("left" | "right" | "bottom" | "top")[];
|
|
38
38
|
declare const DEFAULT_TOOLTIP_PLACEMENT: "top";
|
|
39
|
+
declare const TYPES: {
|
|
40
|
+
readonly BUTTON: "button";
|
|
41
|
+
readonly SUBMIT: "submit";
|
|
42
|
+
readonly RESET: "reset";
|
|
43
|
+
};
|
|
44
|
+
declare const TYPE_VALUES: ("button" | "reset" | "submit")[];
|
|
45
|
+
declare const DEFAULT_TYPE: "button";
|
|
39
46
|
declare const CSS_COLOR_PROPERTIES: CSSColorPropertiesType;
|
|
40
47
|
declare const CSS_COLOR_PROPERTIES_DISABLED: EssentialColorProperties;
|
|
41
48
|
declare const CSS_SIZE_PROPERTIES: CSSSizePropertiesType;
|
|
42
|
-
export { VARIANTS, VARIANT_VALUES, DEFAULT_VARIANT, COLORS, COLOR_VALUES, DEFAULT_COLOR, SIZES, SIZE_VALUES, DEFAULT_SIZE, LAYOUTS, LAYOUT_VALUES, DEFAULT_LAYOUT, TOOLTIP_PLACEMENTS, TOOLTIP_PLACEMENT_VALUES, DEFAULT_TOOLTIP_PLACEMENT, CSS_COLOR_PROPERTIES, CSS_COLOR_PROPERTIES_DISABLED, CSS_SIZE_PROPERTIES, };
|
|
49
|
+
export { VARIANTS, VARIANT_VALUES, DEFAULT_VARIANT, COLORS, COLOR_VALUES, DEFAULT_COLOR, SIZES, SIZE_VALUES, DEFAULT_SIZE, LAYOUTS, LAYOUT_VALUES, DEFAULT_LAYOUT, TOOLTIP_PLACEMENTS, TOOLTIP_PLACEMENT_VALUES, DEFAULT_TOOLTIP_PLACEMENT, TYPES, TYPE_VALUES, DEFAULT_TYPE, CSS_COLOR_PROPERTIES, CSS_COLOR_PROPERTIES_DISABLED, CSS_SIZE_PROPERTIES, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { COLOR_VALUES, LAYOUT_VALUES, SIZE_VALUES, VARIANT_VALUES, LAYOUTS, TOOLTIP_PLACEMENT_VALUES } from './constants';
|
|
2
|
+
import { COLOR_VALUES, LAYOUT_VALUES, SIZE_VALUES, VARIANT_VALUES, LAYOUTS, TOOLTIP_PLACEMENT_VALUES, TYPE_VALUES } from './constants';
|
|
3
3
|
export type EssentialColorProperties = {
|
|
4
4
|
color: string;
|
|
5
5
|
background: string | boolean;
|
|
@@ -19,6 +19,7 @@ export type CSSColorPropertiesType = {
|
|
|
19
19
|
};
|
|
20
20
|
export type SizeProperties = {
|
|
21
21
|
padding: string;
|
|
22
|
+
iconBoxSize: string;
|
|
22
23
|
};
|
|
23
24
|
export type CSSSizePropertiesType = {
|
|
24
25
|
[key: string]: SizeProperties;
|
|
@@ -28,6 +29,7 @@ type ColorType = typeof COLOR_VALUES[number];
|
|
|
28
29
|
type SizeType = typeof SIZE_VALUES[number];
|
|
29
30
|
type LayoutType = typeof LAYOUT_VALUES[number];
|
|
30
31
|
type TooltipPlacementType = typeof TOOLTIP_PLACEMENT_VALUES[number];
|
|
32
|
+
type ButtonType = typeof TYPE_VALUES[number];
|
|
31
33
|
export interface StyledHelperIconContainer {
|
|
32
34
|
$hover: boolean;
|
|
33
35
|
$variant: VariantType;
|
|
@@ -41,6 +43,7 @@ export interface StyledButtonProps {
|
|
|
41
43
|
$color?: ColorType;
|
|
42
44
|
$size?: SizeType;
|
|
43
45
|
$layout?: LayoutType;
|
|
46
|
+
$fullWidth?: boolean;
|
|
44
47
|
disabled: boolean;
|
|
45
48
|
}
|
|
46
49
|
type BaseButtonProps = {
|
|
@@ -68,8 +71,10 @@ type BaseButtonProps = {
|
|
|
68
71
|
color?: ColorType;
|
|
69
72
|
/** Visual variant controlling emphasis and background/border styling. @default 'primary' */
|
|
70
73
|
variant?: VariantType;
|
|
71
|
-
/** Button size; affects padding and, for the `circle`
|
|
74
|
+
/** Button size; affects padding and, for the `circle`/`squared` layouts, the overall box size (both render at the same size). @default 'md' */
|
|
72
75
|
size?: SizeType;
|
|
76
|
+
/** Native `type` attribute of the `<button>`; defaults to `'button'` so it never submits an enclosing form unless `'submit'` is passed explicitly. @default 'button' */
|
|
77
|
+
type?: ButtonType;
|
|
73
78
|
/** Disables interaction and applies disabled styling. @default false */
|
|
74
79
|
disabled?: boolean;
|
|
75
80
|
/** Additional content rendered inside the button, after the label (only used in the `default` layout). */
|
|
@@ -84,6 +89,8 @@ type BaseButtonProps = {
|
|
|
84
89
|
feedbackContent?: React.ReactNode;
|
|
85
90
|
/** How long, in milliseconds, the click feedback stays visible. @default 2000 */
|
|
86
91
|
feedbackDuration?: number;
|
|
92
|
+
/** Class name forwarded to the root element (the `<button>`, or the wrapper `<div>` in the `stacked` layout), so `styled(BBButton)` works. Escape hatch while BBButton is being adopted; prefer native props and open an issue for recurring needs. */
|
|
93
|
+
className?: string;
|
|
87
94
|
};
|
|
88
95
|
type DefaultLayoutProps = BaseButtonProps & {
|
|
89
96
|
/** Layout mode for this variant — always `'default'`, the standard inline label/icon button; also the overall default. @default 'default' */
|
|
@@ -92,6 +99,8 @@ type DefaultLayoutProps = BaseButtonProps & {
|
|
|
92
99
|
iconStart?: React.ReactNode;
|
|
93
100
|
/** Icon rendered after the label (right side); effective when a label is present. */
|
|
94
101
|
iconEnd?: React.ReactNode;
|
|
102
|
+
/** Makes the button fill the width of its container, keeping its content centered. @default false */
|
|
103
|
+
fullWidth?: boolean;
|
|
95
104
|
};
|
|
96
105
|
type StackedLayoutProps = BaseButtonProps & {
|
|
97
106
|
/** Layout mode for this variant — must be `'stacked'`, rendering a main icon with a label underneath plus an optional helper icon. */
|
|
@@ -8,5 +8,5 @@ import { CheckboxProps } from './types';
|
|
|
8
8
|
* and clicking the label will toggle the checkbox state.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
declare function Checkbox({ label, layout, round, ariaLabel, ...props }: CheckboxProps): JSX.Element;
|
|
11
|
+
declare function Checkbox({ label, layout, round, ariaLabel, id, dataTest, slotProps, ...props }: CheckboxProps): JSX.Element;
|
|
12
12
|
export default Checkbox;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CheckboxProps as MuiCheckboxProps } from '@mui/material';
|
|
2
2
|
import { LAYOUTS } from './constants';
|
|
3
3
|
type Layout = typeof LAYOUTS[keyof typeof LAYOUTS];
|
|
4
|
-
export interface CheckboxProps extends MuiCheckboxProps {
|
|
4
|
+
export interface CheckboxProps extends Omit<MuiCheckboxProps, 'inputProps'> {
|
|
5
5
|
/** Text label displayed next to the checkbox. */
|
|
6
6
|
label?: string;
|
|
7
7
|
/** Position of the label relative to the checkbox. @default 'right' */
|
|
@@ -10,5 +10,7 @@ export interface CheckboxProps extends MuiCheckboxProps {
|
|
|
10
10
|
round?: boolean;
|
|
11
11
|
/** Accessible name for the checkbox. */
|
|
12
12
|
ariaLabel?: string;
|
|
13
|
+
/** `data-test` attribute on the underlying `<input>` element. */
|
|
14
|
+
dataTest?: string;
|
|
13
15
|
}
|
|
14
16
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Styles } from 'react-modal';
|
|
1
|
+
import ReactModal, { Styles } from 'react-modal';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { StyledModalBodyProps, StyledModalFooterProps } from './types';
|
|
4
4
|
export declare const modalStyles: Styles;
|
|
5
5
|
export declare const ModalHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ModalTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Typography/types").TypographyProps, never>> & string & Omit<React.FC<import("../Typography/types").TypographyProps>, keyof React.Component<any, {}, any>>;
|
|
7
7
|
export declare const ModalScrollArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledModalBodyProps>> & string;
|
|
8
8
|
export declare const ModalBodyContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
9
|
export declare const ModalFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledModalFooterProps>> & string;
|
|
10
|
+
export declare const Modal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<ReactModal.Props & React.RefAttributes<ReactModal>, never>> & string & Omit<typeof ReactModal, keyof React.Component<any, {}, any>>;
|
|
@@ -19,6 +19,8 @@ export interface ModalProps extends Omit<ReactModal.Props, 'style'> {
|
|
|
19
19
|
allowScroll?: boolean;
|
|
20
20
|
/** Hide the footer section. @default false */
|
|
21
21
|
noFooter?: boolean;
|
|
22
|
+
/** Hide the header close button. @default false */
|
|
23
|
+
hideCloseButton?: boolean;
|
|
22
24
|
/** When true, the footer is sticky to the bottom instead of scrolling with the body. @default true */
|
|
23
25
|
stickyFooter?: boolean;
|
|
24
26
|
/** Custom React node to render inside the footer. @default null */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { SliderProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A horizontal, single-thumb slider for picking a value inside a range.
|
|
5
|
+
*
|
|
6
|
+
* It supports labels (label and helperText), decorative end icons, marks and a value tooltip,
|
|
7
|
+
* and keeps its accessible name and description on the underlying range input.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
declare function Slider({ label, helperText, iconStart, iconEnd, showMarkTicks, animate, valueLabelDisplay, onChange, onChangeCommitted, id: providedId, dataTest, ariaLabel, ariaLabelledBy, ariaDescribedBy, slotProps, ...rest }: SliderProps): JSX.Element;
|
|
11
|
+
export default Slider;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const VALUE_LABEL_DISPLAYS: {
|
|
2
|
+
readonly AUTO: "auto";
|
|
3
|
+
readonly ON: "on";
|
|
4
|
+
readonly OFF: "off";
|
|
5
|
+
};
|
|
6
|
+
export declare const VALUE_LABEL_DISPLAY_VALUES: ("auto" | "off" | "on")[];
|
|
7
|
+
export declare const DEFAULT_VALUE_LABEL_DISPLAY: "auto";
|
|
8
|
+
export declare const DEFAULT_SHOW_MARK_TICKS = true;
|
|
9
|
+
export declare const DEFAULT_ANIMATE = true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BBBSlider } from './component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledSliderRowProps, StyledSliderWrapperProps } from './types';
|
|
2
|
+
export declare const SliderWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledSliderWrapperProps>> & string;
|
|
3
|
+
export declare const TextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
4
|
+
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
5
|
+
export declare const HelperText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
6
|
+
export declare const SliderRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledSliderRowProps>> & string;
|
|
7
|
+
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
8
|
+
export declare const MaterialSlider: import("@emotion/styled").StyledComponent<import("@mui/material").SliderOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "name" | "color" | "size" | "style" | "disabled" | "defaultValue" | "className" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "track" | "value" | "classes" | "slots" | "slotProps" | "sx" | "step" | "max" | "min" | "scale" | "orientation" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SliderProps as MuiSliderProps } from '@mui/material';
|
|
3
|
+
import { VALUE_LABEL_DISPLAY_VALUES } from './constants';
|
|
4
|
+
export type ValueLabelDisplay = typeof VALUE_LABEL_DISPLAY_VALUES[number];
|
|
5
|
+
export interface StyledSliderRowProps {
|
|
6
|
+
$showMarkTicks: boolean;
|
|
7
|
+
$animate: boolean;
|
|
8
|
+
$isRtl: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface StyledSliderWrapperProps {
|
|
11
|
+
$valueLabelSpace: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SliderProps extends Omit<MuiSliderProps, 'orientation' | 'value' | 'defaultValue' | 'onChange' | 'onChangeCommitted' | 'valueLabelDisplay'> {
|
|
14
|
+
/** Main label text displayed above the slider. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** Helper text displayed below the label. */
|
|
17
|
+
helperText?: string;
|
|
18
|
+
/** Current value; providing it makes the slider controlled. */
|
|
19
|
+
value?: number;
|
|
20
|
+
/** Initial value used while the slider is uncontrolled. */
|
|
21
|
+
defaultValue?: number;
|
|
22
|
+
/** Change handler fired continuously while the user drags or presses a key. */
|
|
23
|
+
onChange?: (event: Event, value: number) => void;
|
|
24
|
+
/** Change handler fired once, when the interaction ends; prefer it for expensive updates. */
|
|
25
|
+
onChangeCommitted?: (event: React.SyntheticEvent | Event, value: number) => void;
|
|
26
|
+
/** Decorative node rendered at the minimum end of the track. */
|
|
27
|
+
iconStart?: React.ReactNode;
|
|
28
|
+
/** Decorative node rendered at the maximum end of the track. */
|
|
29
|
+
iconEnd?: React.ReactNode;
|
|
30
|
+
/** Controls when the value tooltip is shown. @default 'auto' */
|
|
31
|
+
valueLabelDisplay?: ValueLabelDisplay;
|
|
32
|
+
/** Renders the tick dots of `marks`; set to false to keep the mark labels only. @default true */
|
|
33
|
+
showMarkTicks?: boolean;
|
|
34
|
+
/** Enables transitions and hover/drag visual effects; set to false for instant state changes. @default true */
|
|
35
|
+
animate?: boolean;
|
|
36
|
+
/** HTML `id` applied to the underlying range input; auto-generated via `useId` when omitted. */
|
|
37
|
+
id?: string;
|
|
38
|
+
/** Value for the `data-test` attribute on the root; the range input gets `${dataTest}-input`. */
|
|
39
|
+
dataTest?: string;
|
|
40
|
+
/** Accessible name for the slider. */
|
|
41
|
+
ariaLabel?: string;
|
|
42
|
+
/** ID of the element that labels the slider; ignored when `ariaLabel` is set, and falls back to the rendered label's id when omitted. */
|
|
43
|
+
ariaLabelledBy?: string;
|
|
44
|
+
/** ID of the element that describes the slider; falls back to the rendered helper text's id when omitted. */
|
|
45
|
+
ariaDescribedBy?: string;
|
|
46
|
+
}
|
|
@@ -2,7 +2,7 @@ import { TextField } from '@mui/material';
|
|
|
2
2
|
import { StyledTextProps } from './types';
|
|
3
3
|
export declare const StyledTextField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
|
|
4
4
|
variant?: import("@mui/material").TextFieldVariants;
|
|
5
|
-
} & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").
|
|
5
|
+
} & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").StandardTextFieldProps | import("@mui/material").OutlinedTextFieldProps, "variant">, StyledTextProps>> & string & Omit<typeof TextField, keyof import("react").Component<any, {}, any>>;
|
|
6
6
|
export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
7
|
export declare const HelperText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTextProps>> & string;
|
|
8
8
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -7,5 +7,5 @@ import { ToggleProps } from './types';
|
|
|
7
7
|
* It supports labels (label and helperText) and various textPosition configurations.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
declare function Toggle({ label, helperText, textPosition, onChange, ariaLabel, ariaLabelledBy, ariaDescribedBy, id: providedId, ...rest }: ToggleProps): JSX.Element;
|
|
10
|
+
declare function Toggle({ label, helperText, textPosition, onChange, ariaLabel, ariaLabelledBy, ariaDescribedBy, id: providedId, slotProps, ...rest }: ToggleProps): JSX.Element;
|
|
11
11
|
export default Toggle;
|
|
@@ -4,5 +4,5 @@ export declare const TEXT_POSITIONS: {
|
|
|
4
4
|
readonly TOP: "top";
|
|
5
5
|
readonly BOTTOM: "bottom";
|
|
6
6
|
};
|
|
7
|
-
export declare const TEXT_POSITIONS_VALUES: ("
|
|
8
|
-
export declare const DEFAULT_TEXT_POSITION: "
|
|
7
|
+
export declare const TEXT_POSITIONS_VALUES: ("left" | "right" | "bottom" | "top")[];
|
|
8
|
+
export declare const DEFAULT_TEXT_POSITION: "left" | "right" | "bottom" | "top";
|
|
@@ -9,7 +9,7 @@ export interface StyledTextWrapperProps extends StyledToggleWrapperProps {
|
|
|
9
9
|
$hasLabel: boolean;
|
|
10
10
|
$hasHelperText: boolean;
|
|
11
11
|
}
|
|
12
|
-
export interface ToggleProps extends SwitchProps {
|
|
12
|
+
export interface ToggleProps extends Omit<SwitchProps, 'inputProps'> {
|
|
13
13
|
/** Main label text displayed next to the toggle. */
|
|
14
14
|
label?: string;
|
|
15
15
|
/** Helper text displayed below the label. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BBBAccordion } from './Accordion';
|
|
2
|
+
export { BBBAvatar } from './Avatar';
|
|
2
3
|
export { BBButton } from './Button';
|
|
3
4
|
export { BBBCheckbox } from './Checkbox';
|
|
4
5
|
export { BBBDivider } from './Divider';
|
|
@@ -9,6 +10,7 @@ export { BBBNavigation } from './Navigation';
|
|
|
9
10
|
export { BBBScrollArea } from './ScrollArea';
|
|
10
11
|
export { BBBSearch } from './Search';
|
|
11
12
|
export { BBBSelect } from './Select';
|
|
13
|
+
export { BBBSlider } from './Slider';
|
|
12
14
|
export { BBBSpinner } from './Spinner';
|
|
13
15
|
export { BBBTextAreaInput } from './TextAreaInput';
|
|
14
16
|
export { BBBTextInput } from './TextInput';
|
|
@@ -3,7 +3,7 @@ export declare const colors: {
|
|
|
3
3
|
readonly neutral2: "var(--color-neutral-2, #717C91)";
|
|
4
4
|
readonly neutral3: "var(--color-neutral-3, #B0BDC9)";
|
|
5
5
|
readonly neutral4: "var(--color-neutral-4, #DCE4EC)";
|
|
6
|
-
readonly white: "var(--color-neutral-white, #FFFFFF)";
|
|
6
|
+
readonly white: "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
7
7
|
readonly lightGray: "var(--color-light-gray, #F4F6FA)";
|
|
8
8
|
readonly gray: "var(--color-gray, #4E5A66)";
|
|
9
9
|
readonly darkGray: "var(--color-dark-gray, #393C48)";
|
|
@@ -13,7 +13,7 @@ export declare const colors: {
|
|
|
13
13
|
readonly brand2: "var(--color-brand-2, var(--color-brand-1, #0F70D7))";
|
|
14
14
|
readonly brand3: "var(--color-brand-3, var(--color-brand-1, #0F70D7))";
|
|
15
15
|
readonly light: "var(--color-blue-aux, var(--color-brand-light, #E5EFFB))";
|
|
16
|
-
readonly aux: "var(--color-brand-aux, var(--color-brand-light, #E5EFFB))";
|
|
16
|
+
readonly aux: "var(--color-brand-aux, var(--color-hover-light, var(--color-brand-light, #E5EFFB)))";
|
|
17
17
|
};
|
|
18
18
|
readonly semantic: {
|
|
19
19
|
readonly success: "var(--color-success, #2DD36F)";
|
|
@@ -22,13 +22,13 @@ export declare const colors: {
|
|
|
22
22
|
readonly errorDark: "var(--color-danger-dark, var(--color-error-dark, #AE1010))";
|
|
23
23
|
};
|
|
24
24
|
readonly background: {
|
|
25
|
-
readonly white: "var(--color-background-white, var(--color-neutral-white, #FFFFFF))";
|
|
25
|
+
readonly white: "var(--color-background-white, var(--color-white, var(--color-neutral-white, #FFFFFF)))";
|
|
26
26
|
readonly light: "var(--color-background-light, var(--color-light-gray, #F4F6FA))";
|
|
27
27
|
readonly blue: "var(--color-background-blue, var(--color-brand-light, #E5EFFB))";
|
|
28
28
|
};
|
|
29
29
|
readonly border: {
|
|
30
30
|
readonly default: "var(--default-border, var(--color-border-default, var(--color-neutral-3, #B0BDC9)))";
|
|
31
|
-
readonly selected: "var(--color-border-selected, var(--color-brand-1, #0F70D7))";
|
|
31
|
+
readonly selected: "var(--color-border-selected, var(--color-primary, var(--color-brand-1, #0F70D7)))";
|
|
32
32
|
readonly error: "var(--color-border-error, var(--color-error, #DF2721))";
|
|
33
33
|
readonly focusRing: "var(--color-border-focus-ring, rgba(29, 101, 212, 0.15))";
|
|
34
34
|
};
|
|
@@ -39,7 +39,7 @@ export declare const colors: {
|
|
|
39
39
|
readonly icon: {
|
|
40
40
|
readonly default: "var(--color-icon-default, var(--color-neutral-2, #717C91))";
|
|
41
41
|
readonly blue: "var(--color-icon-blue, var(--color-brand-1, #0F70D7))";
|
|
42
|
-
readonly white: "var(--color-icon-white, var(--color-neutral-white, #FFFFFF))";
|
|
42
|
+
readonly white: "var(--color-icon-white, var(--color-white, var(--color-neutral-white, #FFFFFF)))";
|
|
43
43
|
readonly defaultDark: "var(--color-icon-default-dark, rgba(255, 255, 255, 0.35))";
|
|
44
44
|
};
|
|
45
45
|
readonly hover: {
|
|
@@ -53,5 +53,8 @@ export declare const colors: {
|
|
|
53
53
|
readonly shadow: {
|
|
54
54
|
readonly default: "var(--color-shadow-default, rgb(0 35 11 / 20%))";
|
|
55
55
|
};
|
|
56
|
+
readonly user: {
|
|
57
|
+
readonly you: "var(--color-user-you, #19237C)";
|
|
58
|
+
};
|
|
56
59
|
};
|
|
57
60
|
export type Colors = typeof colors;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export declare const colorNeutral2 = "var(--color-neutral-2, #717C91)";
|
|
2
2
|
export declare const colorNeutral3 = "var(--color-neutral-3, #B0BDC9)";
|
|
3
3
|
export declare const colorNeutral4 = "var(--color-neutral-4, #DCE4EC)";
|
|
4
|
-
export declare const colorWhite = "var(--color-neutral-white, #FFFFFF)";
|
|
5
4
|
export declare const colorLightGray = "var(--color-light-gray, #F4F6FA)";
|
|
6
5
|
export declare const colorGray = "var(--color-gray, #4E5A66)";
|
|
7
6
|
export declare const colorDarkGray = "var(--color-dark-gray, #393C48)";
|
|
7
|
+
export declare const colorWhite = "var(--color-white, var(--color-neutral-white, #FFFFFF))";
|
|
8
8
|
export declare const colorBrand1 = "var(--color-primary, var(--color-brand-1, #0F70D7))";
|
|
9
9
|
export declare const colorBrand2 = "var(--color-brand-2, var(--color-brand-1, #0F70D7))";
|
|
10
10
|
export declare const colorBrand3 = "var(--color-brand-3, var(--color-brand-1, #0F70D7))";
|
|
11
11
|
export declare const colorBrandLight = "var(--color-blue-aux, var(--color-brand-light, #E5EFFB))";
|
|
12
|
-
export declare const colorBrandAux = "var(--color-brand-aux, var(--color-brand-light, #E5EFFB))";
|
|
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
15
|
export declare const colorError = "var(--color-danger, var(--color-error, #DF2721))";
|
|
16
16
|
export declare const colorErrorDark = "var(--color-danger-dark, var(--color-error-dark, #AE1010))";
|
|
17
|
-
export declare const colorBackgroundWhite = "var(--color-background-white, var(--color-neutral-white, #FFFFFF))";
|
|
17
|
+
export declare const colorBackgroundWhite = "var(--color-background-white, var(--color-white, var(--color-neutral-white, #FFFFFF)))";
|
|
18
18
|
export declare const colorBackgroundLight = "var(--color-background-light, var(--color-light-gray, #F4F6FA))";
|
|
19
19
|
export declare const colorBackgroundBlue = "var(--color-background-blue, var(--color-brand-light, #E5EFFB))";
|
|
20
|
-
export declare const colorBorderSelected = "var(--color-border-selected, var(--color-brand-1, #0F70D7))";
|
|
20
|
+
export declare const colorBorderSelected = "var(--color-border-selected, var(--color-primary, var(--color-brand-1, #0F70D7)))";
|
|
21
21
|
export declare const colorBorderError = "var(--color-border-error, var(--color-error, #DF2721))";
|
|
22
22
|
export declare const colorBorderDefault = "var(--default-border, var(--color-border-default, var(--color-neutral-3, #B0BDC9)))";
|
|
23
23
|
export declare const colorBorderFocusRing = "var(--color-border-focus-ring, rgba(29, 101, 212, 0.15))";
|
|
@@ -25,10 +25,11 @@ export declare const colorTextDefault = "var(--color-text-default, var(--color-d
|
|
|
25
25
|
export declare const colorTextLight = "var(--color-text-light, var(--color-neutral-2, #717C91))";
|
|
26
26
|
export declare const colorIconDefault = "var(--color-icon-default, var(--color-neutral-2, #717C91))";
|
|
27
27
|
export declare const colorIconBlue = "var(--color-icon-blue, var(--color-brand-1, #0F70D7))";
|
|
28
|
-
export declare const colorIconWhite = "var(--color-icon-white, var(--color-neutral-white, #FFFFFF))";
|
|
28
|
+
export declare const colorIconWhite = "var(--color-icon-white, var(--color-white, var(--color-neutral-white, #FFFFFF)))";
|
|
29
29
|
export declare const colorIconDefaultDark = "var(--color-icon-default-dark, rgba(255, 255, 255, 0.35))";
|
|
30
30
|
export declare const colorHoverDark = "var(--color-hover-dark, #0C57A7)";
|
|
31
31
|
export declare const colorHoverLight = "var(--color-hover-light, #D4E5FA)";
|
|
32
32
|
export declare const colorHoverNeutral = "var(--color-hover-neutral, var(--color-neutral-4, #DCE4EC))";
|
|
33
33
|
export declare const colorOverlay = "var(--color-overlay, rgba(0, 0, 0, 0.75))";
|
|
34
34
|
export declare const colorShadowDefault = "var(--color-shadow-default, rgb(0 35 11 / 20%))";
|
|
35
|
+
export declare const colorUserYou = "var(--color-user-you, #19237C)";
|
|
@@ -5,5 +5,6 @@ export declare const spacingMedium = "1rem";
|
|
|
5
5
|
export declare const spacingMediumLarge = "1.25rem";
|
|
6
6
|
export declare const spacingLarge = "1.5rem";
|
|
7
7
|
export declare const spacingXLarge = "2rem";
|
|
8
|
+
export declare const spacingXXLarge = "3rem";
|
|
8
9
|
export declare const borderRadiusDefault = "1rem";
|
|
9
10
|
export declare const borderRadiusSmall = "0.5rem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbluebutton/bbb-ui-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/bigbluebutton/bbb-ui-components-react.git"
|
|
@@ -22,6 +22,13 @@
|
|
|
22
22
|
"require": "./dist/components/Accordion.js",
|
|
23
23
|
"default": "./dist/components/Accordion.js"
|
|
24
24
|
},
|
|
25
|
+
"./Avatar": {
|
|
26
|
+
"types": "./dist/types/components/Avatar/index.d.ts",
|
|
27
|
+
"node": "./dist/components/Avatar.js",
|
|
28
|
+
"import": "./dist/esm/components/Avatar/index.js",
|
|
29
|
+
"require": "./dist/components/Avatar.js",
|
|
30
|
+
"default": "./dist/components/Avatar.js"
|
|
31
|
+
},
|
|
25
32
|
"./Button": {
|
|
26
33
|
"types": "./dist/types/components/Button/index.d.ts",
|
|
27
34
|
"node": "./dist/components/Button.js",
|
|
@@ -92,6 +99,13 @@
|
|
|
92
99
|
"require": "./dist/components/Select.js",
|
|
93
100
|
"default": "./dist/components/Select.js"
|
|
94
101
|
},
|
|
102
|
+
"./Slider": {
|
|
103
|
+
"types": "./dist/types/components/Slider/index.d.ts",
|
|
104
|
+
"node": "./dist/components/Slider.js",
|
|
105
|
+
"import": "./dist/esm/components/Slider/index.js",
|
|
106
|
+
"require": "./dist/components/Slider.js",
|
|
107
|
+
"default": "./dist/components/Slider.js"
|
|
108
|
+
},
|
|
95
109
|
"./Spinner": {
|
|
96
110
|
"types": "./dist/types/components/Spinner/index.d.ts",
|
|
97
111
|
"node": "./dist/components/Spinner.js",
|
|
@@ -181,6 +195,9 @@
|
|
|
181
195
|
"Accordion": [
|
|
182
196
|
"dist/types/components/Accordion/index.d.ts"
|
|
183
197
|
],
|
|
198
|
+
"Avatar": [
|
|
199
|
+
"dist/types/components/Avatar/index.d.ts"
|
|
200
|
+
],
|
|
184
201
|
"Button": [
|
|
185
202
|
"dist/types/components/Button/index.d.ts"
|
|
186
203
|
],
|
|
@@ -211,6 +228,9 @@
|
|
|
211
228
|
"Select": [
|
|
212
229
|
"dist/types/components/Select/index.d.ts"
|
|
213
230
|
],
|
|
231
|
+
"Slider": [
|
|
232
|
+
"dist/types/components/Slider/index.d.ts"
|
|
233
|
+
],
|
|
214
234
|
"Spinner": [
|
|
215
235
|
"dist/types/components/Spinner/index.d.ts"
|
|
216
236
|
],
|
|
@@ -260,8 +280,8 @@
|
|
|
260
280
|
"peerDependencies": {
|
|
261
281
|
"@emotion/react": "^11.13.0",
|
|
262
282
|
"@emotion/styled": "^11.13.0",
|
|
263
|
-
"@mui/icons-material": "^6.
|
|
264
|
-
"@mui/material": "^6.
|
|
283
|
+
"@mui/icons-material": "^6.4.9 || ^7.0.0",
|
|
284
|
+
"@mui/material": "^6.4.9 || ^7.0.0",
|
|
265
285
|
"prop-types": "^15.8.1",
|
|
266
286
|
"react": "^18.2.0",
|
|
267
287
|
"react-dom": "^18.2.0",
|