@bigbluebutton/bbb-ui-components-react 0.5.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.
Files changed (150) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +141 -0
  3. package/dist/components/Accordion.js +1 -0
  4. package/dist/components/Button.js +1 -0
  5. package/dist/components/Checkbox.js +1 -0
  6. package/dist/components/Divider.js +1 -0
  7. package/dist/components/Hint.js +1 -0
  8. package/dist/components/Modal.js +1 -0
  9. package/dist/components/Navigation.js +1 -0
  10. package/dist/components/Search.js +1 -0
  11. package/dist/components/Select.js +1 -0
  12. package/dist/components/Spinner.js +1 -0
  13. package/dist/components/TextAreaInput.js +1 -0
  14. package/dist/components/TextInput.js +1 -0
  15. package/dist/components/Toggle.js +1 -0
  16. package/dist/components/Typography.js +1 -0
  17. package/dist/components/index.js +1 -0
  18. package/dist/esm/components/Accordion/component.js +29 -0
  19. package/dist/esm/components/Accordion/constants.js +9 -0
  20. package/dist/esm/components/Accordion/index.js +1 -0
  21. package/dist/esm/components/Accordion/styles.js +20 -0
  22. package/dist/esm/components/Accordion/types.js +2 -0
  23. package/dist/esm/components/Button/component.js +73 -0
  24. package/dist/esm/components/Button/constants.js +174 -0
  25. package/dist/esm/components/Button/index.js +1 -0
  26. package/dist/esm/components/Button/styles.js +60 -0
  27. package/dist/esm/components/Button/type.js +1 -0
  28. package/dist/esm/components/Checkbox/component.js +47 -0
  29. package/dist/esm/components/Checkbox/constants.js +6 -0
  30. package/dist/esm/components/Checkbox/index.js +1 -0
  31. package/dist/esm/components/Checkbox/styles.js +13 -0
  32. package/dist/esm/components/Checkbox/types.js +1 -0
  33. package/dist/esm/components/Divider/component.js +12 -0
  34. package/dist/esm/components/Divider/index.js +1 -0
  35. package/dist/esm/components/Divider/styles.js +8 -0
  36. package/dist/esm/components/Hint/component.js +48 -0
  37. package/dist/esm/components/Hint/constants.js +6 -0
  38. package/dist/esm/components/Hint/index.js +1 -0
  39. package/dist/esm/components/Hint/styles.js +16 -0
  40. package/dist/esm/components/Hint/types.js +1 -0
  41. package/dist/esm/components/Modal/component.js +56 -0
  42. package/dist/esm/components/Modal/index.js +1 -0
  43. package/dist/esm/components/Modal/styles.js +52 -0
  44. package/dist/esm/components/Modal/types.js +1 -0
  45. package/dist/esm/components/Navigation/component.js +20 -0
  46. package/dist/esm/components/Navigation/index.js +1 -0
  47. package/dist/esm/components/Navigation/styles.js +14 -0
  48. package/dist/esm/components/Navigation/types.js +1 -0
  49. package/dist/esm/components/Search/component.js +75 -0
  50. package/dist/esm/components/Search/index.js +1 -0
  51. package/dist/esm/components/Search/styles.js +17 -0
  52. package/dist/esm/components/Search/types.js +1 -0
  53. package/dist/esm/components/Select/component.js +44 -0
  54. package/dist/esm/components/Select/index.js +1 -0
  55. package/dist/esm/components/Select/styles.js +15 -0
  56. package/dist/esm/components/Select/types.js +1 -0
  57. package/dist/esm/components/Spinner/component.js +15 -0
  58. package/dist/esm/components/Spinner/index.js +1 -0
  59. package/dist/esm/components/Spinner/styles.js +30 -0
  60. package/dist/esm/components/Spinner/types.js +1 -0
  61. package/dist/esm/components/TextAreaInput/component.js +50 -0
  62. package/dist/esm/components/TextAreaInput/index.js +1 -0
  63. package/dist/esm/components/TextAreaInput/styles.js +9 -0
  64. package/dist/esm/components/TextAreaInput/types.js +2 -0
  65. package/dist/esm/components/TextInput/component.js +39 -0
  66. package/dist/esm/components/TextInput/index.js +1 -0
  67. package/dist/esm/components/TextInput/styles.js +20 -0
  68. package/dist/esm/components/TextInput/types.js +1 -0
  69. package/dist/esm/components/Toggle/component.js +46 -0
  70. package/dist/esm/components/Toggle/constants.js +8 -0
  71. package/dist/esm/components/Toggle/index.js +1 -0
  72. package/dist/esm/components/Toggle/styles.js +91 -0
  73. package/dist/esm/components/Toggle/types.js +2 -0
  74. package/dist/esm/components/Typography/component.js +36 -0
  75. package/dist/esm/components/Typography/constants.js +8 -0
  76. package/dist/esm/components/Typography/index.js +1 -0
  77. package/dist/esm/components/Typography/styles.js +20 -0
  78. package/dist/esm/components/Typography/types.js +1 -0
  79. package/dist/esm/components/index.js +14 -0
  80. package/dist/esm/index.js +3 -0
  81. package/dist/esm/stylesheets/pallete.js +46 -0
  82. package/dist/esm/stylesheets/sizing.js +12 -0
  83. package/dist/esm/stylesheets/typography.js +8 -0
  84. package/dist/types/components/Accordion/component.d.ts +12 -0
  85. package/dist/types/components/Accordion/constants.d.ts +9 -0
  86. package/dist/types/components/Accordion/index.d.ts +1 -0
  87. package/dist/types/components/Accordion/styles.d.ts +6 -0
  88. package/dist/types/components/Accordion/types.d.ts +21 -0
  89. package/dist/types/components/Button/component.d.ts +13 -0
  90. package/dist/types/components/Button/constants.d.ts +41 -0
  91. package/dist/types/components/Button/index.d.ts +1 -0
  92. package/dist/types/components/Button/styles.d.ts +7 -0
  93. package/dist/types/components/Button/type.d.ts +80 -0
  94. package/dist/types/components/Checkbox/component.d.ts +12 -0
  95. package/dist/types/components/Checkbox/constants.d.ts +6 -0
  96. package/dist/types/components/Checkbox/index.d.ts +1 -0
  97. package/dist/types/components/Checkbox/styles.d.ts +4 -0
  98. package/dist/types/components/Checkbox/types.d.ts +10 -0
  99. package/dist/types/components/Divider/component.d.ts +9 -0
  100. package/dist/types/components/Divider/index.d.ts +1 -0
  101. package/dist/types/components/Divider/styles.d.ts +1 -0
  102. package/dist/types/components/Hint/component.d.ts +11 -0
  103. package/dist/types/components/Hint/constants.d.ts +6 -0
  104. package/dist/types/components/Hint/index.d.ts +1 -0
  105. package/dist/types/components/Hint/styles.d.ts +7 -0
  106. package/dist/types/components/Hint/types.d.ts +7 -0
  107. package/dist/types/components/Modal/component.d.ts +11 -0
  108. package/dist/types/components/Modal/index.d.ts +1 -0
  109. package/dist/types/components/Modal/styles.d.ts +9 -0
  110. package/dist/types/components/Modal/types.d.ts +21 -0
  111. package/dist/types/components/Navigation/component.d.ts +9 -0
  112. package/dist/types/components/Navigation/index.d.ts +1 -0
  113. package/dist/types/components/Navigation/styles.d.ts +4 -0
  114. package/dist/types/components/Navigation/types.d.ts +15 -0
  115. package/dist/types/components/Search/component.d.ts +8 -0
  116. package/dist/types/components/Search/index.d.ts +1 -0
  117. package/dist/types/components/Search/styles.d.ts +9 -0
  118. package/dist/types/components/Search/types.d.ts +42 -0
  119. package/dist/types/components/Select/component.d.ts +11 -0
  120. package/dist/types/components/Select/index.d.ts +1 -0
  121. package/dist/types/components/Select/styles.d.ts +7 -0
  122. package/dist/types/components/Select/types.d.ts +8 -0
  123. package/dist/types/components/Spinner/component.d.ts +10 -0
  124. package/dist/types/components/Spinner/index.d.ts +1 -0
  125. package/dist/types/components/Spinner/styles.d.ts +4 -0
  126. package/dist/types/components/Spinner/types.d.ts +15 -0
  127. package/dist/types/components/TextAreaInput/component.d.ts +11 -0
  128. package/dist/types/components/TextAreaInput/index.d.ts +1 -0
  129. package/dist/types/components/TextAreaInput/styles.d.ts +1 -0
  130. package/dist/types/components/TextAreaInput/types.d.ts +10 -0
  131. package/dist/types/components/TextInput/component.d.ts +11 -0
  132. package/dist/types/components/TextInput/index.d.ts +1 -0
  133. package/dist/types/components/TextInput/styles.d.ts +8 -0
  134. package/dist/types/components/TextInput/types.d.ts +9 -0
  135. package/dist/types/components/Toggle/component.d.ts +11 -0
  136. package/dist/types/components/Toggle/constants.d.ts +8 -0
  137. package/dist/types/components/Toggle/index.d.ts +1 -0
  138. package/dist/types/components/Toggle/styles.d.ts +7 -0
  139. package/dist/types/components/Toggle/types.d.ts +19 -0
  140. package/dist/types/components/Typography/component.d.ts +11 -0
  141. package/dist/types/components/Typography/constants.d.ts +1 -0
  142. package/dist/types/components/Typography/index.d.ts +1 -0
  143. package/dist/types/components/Typography/styles.d.ts +2 -0
  144. package/dist/types/components/Typography/types.d.ts +11 -0
  145. package/dist/types/components/index.d.ts +14 -0
  146. package/dist/types/index.d.ts +3 -0
  147. package/dist/types/stylesheets/pallete.d.ts +30 -0
  148. package/dist/types/stylesheets/sizing.d.ts +9 -0
  149. package/dist/types/stylesheets/typography.d.ts +7 -0
  150. package/package.json +290 -0
@@ -0,0 +1,41 @@
1
+ import { CSSColorPropertiesType, CSSSizePropertiesType, EssentialColorProperties } from './type';
2
+ declare const VARIANTS: {
3
+ readonly PRIMARY: "primary";
4
+ readonly SECONDARY: "secondary";
5
+ readonly TERTIARY: "tertiary";
6
+ readonly SUBTLE: "subtle";
7
+ };
8
+ declare const VARIANT_VALUES: ("primary" | "secondary" | "tertiary" | "subtle")[];
9
+ declare const DEFAULT_VARIANT: "primary" | "secondary" | "tertiary" | "subtle";
10
+ declare const COLORS: {
11
+ readonly DEFAULT: "default";
12
+ readonly DANGER: "danger";
13
+ readonly NEUTRAL: "neutral";
14
+ };
15
+ declare const COLOR_VALUES: ("default" | "danger" | "neutral")[];
16
+ declare const DEFAULT_COLOR: "default" | "danger" | "neutral";
17
+ declare const SIZES: {
18
+ readonly MEDIUM: "md";
19
+ readonly SMALL: "sm";
20
+ };
21
+ declare const SIZE_VALUES: ("md" | "sm")[];
22
+ declare const DEFAULT_SIZE: "md" | "sm";
23
+ declare const LAYOUTS: {
24
+ readonly DEFAULT: "default";
25
+ readonly STACKED: "stacked";
26
+ readonly CIRCLE: "circle";
27
+ };
28
+ declare const LAYOUT_VALUES: ("circle" | "default" | "stacked")[];
29
+ declare const DEFAULT_LAYOUT: "circle" | "default" | "stacked";
30
+ declare const TOOLTIP_PLACEMENTS: {
31
+ readonly TOP: "top";
32
+ readonly BOTTOM: "bottom";
33
+ readonly LEFT: "left";
34
+ readonly RIGHT: "right";
35
+ };
36
+ declare const TOOLTIP_PLACEMENT_VALUES: ("top" | "bottom" | "left" | "right")[];
37
+ declare const DEFAULT_TOOLTIP_PLACEMENT: "top";
38
+ declare const CSS_COLOR_PROPERTIES: CSSColorPropertiesType;
39
+ declare const CSS_COLOR_PROPERTIES_DISABLED: EssentialColorProperties;
40
+ declare const CSS_SIZE_PROPERTIES: CSSSizePropertiesType;
41
+ 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, };
@@ -0,0 +1 @@
1
+ export { default as BBButton } from './component';
@@ -0,0 +1,7 @@
1
+ import { StyledHelperIconContainer, StyledButtonProps, StyledButtonWrapperProps } from './type';
2
+ export declare const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledButtonWrapperProps>> & string;
3
+ export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledButtonProps>> & string;
4
+ export declare const HelperIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledHelperIconContainer>> & string;
5
+ export declare const HelperIcon: 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 IconWrapper: 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 ButtonText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,80 @@
1
+ import React from 'react';
2
+ import { COLOR_VALUES, LAYOUT_VALUES, SIZE_VALUES, VARIANT_VALUES, LAYOUTS, TOOLTIP_PLACEMENT_VALUES } from './constants';
3
+ export type EssentialColorProperties = {
4
+ color: string;
5
+ background: string | boolean;
6
+ border: string | boolean;
7
+ outline: string;
8
+ };
9
+ export type ColorProperties = EssentialColorProperties & {
10
+ iconColor?: string;
11
+ hoverColor: string;
12
+ hoverBackground: string;
13
+ hoverBorder: string | boolean;
14
+ };
15
+ export type CSSColorPropertiesType = {
16
+ [key: string]: {
17
+ [key: string]: ColorProperties;
18
+ };
19
+ };
20
+ export type SizeProperties = {
21
+ padding: string;
22
+ };
23
+ export type CSSSizePropertiesType = {
24
+ [key: string]: SizeProperties;
25
+ };
26
+ type VariantType = typeof VARIANT_VALUES[number];
27
+ type ColorType = typeof COLOR_VALUES[number];
28
+ type SizeType = typeof SIZE_VALUES[number];
29
+ type LayoutType = typeof LAYOUT_VALUES[number];
30
+ type TooltipPlacementType = typeof TOOLTIP_PLACEMENT_VALUES[number];
31
+ export interface StyledHelperIconContainer {
32
+ $hover: boolean;
33
+ $variant: VariantType;
34
+ $color: ColorType;
35
+ }
36
+ export interface StyledButtonWrapperProps {
37
+ $layout: LayoutType;
38
+ }
39
+ export interface StyledButtonProps {
40
+ $variant?: VariantType;
41
+ $color?: ColorType;
42
+ $size?: SizeType;
43
+ $layout?: LayoutType;
44
+ disabled: boolean;
45
+ }
46
+ type BaseButtonProps = {
47
+ id?: string;
48
+ dataTest?: string;
49
+ label?: string;
50
+ tooltipLabel?: string;
51
+ tooltipPlacement?: TooltipPlacementType;
52
+ onClick: React.MouseEventHandler<HTMLButtonElement>;
53
+ onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
54
+ ariaLabelledBy?: string;
55
+ ariaDescribedBy?: string;
56
+ ariaLabel?: string;
57
+ color?: ColorType;
58
+ variant?: VariantType;
59
+ size?: SizeType;
60
+ disabled?: boolean;
61
+ children?: React.ReactNode;
62
+ };
63
+ type DefaultLayoutProps = BaseButtonProps & {
64
+ layout?: typeof LAYOUTS.DEFAULT;
65
+ iconStart?: React.ReactNode;
66
+ iconEnd?: React.ReactNode;
67
+ };
68
+ type StackedLayoutProps = BaseButtonProps & {
69
+ layout: typeof LAYOUTS.STACKED;
70
+ icon?: React.ReactNode;
71
+ helperIcon?: React.ReactNode;
72
+ hideHelperIcon?: boolean;
73
+ helperOnClick?: React.MouseEventHandler<HTMLDivElement>;
74
+ };
75
+ type CircleLayoutProps = BaseButtonProps & {
76
+ layout: typeof LAYOUTS.CIRCLE;
77
+ icon?: React.ReactNode;
78
+ };
79
+ export type ButtonProps = DefaultLayoutProps | StackedLayoutProps | CircleLayoutProps;
80
+ export {};
@@ -0,0 +1,12 @@
1
+ import { JSX } from 'react';
2
+ import { CheckboxProps } from './types';
3
+ /**
4
+ * A customizable Checkbox component.
5
+ *
6
+ * This component provides a wrapper around the Material-UI Checkbox with additional features,
7
+ * such as custom layouts and a round variant. It can be used with a label,
8
+ * and clicking the label will toggle the checkbox state.
9
+ *
10
+ */
11
+ declare function Checkbox({ label, layout, round, ariaLabel, ...props }: CheckboxProps): JSX.Element;
12
+ export default Checkbox;
@@ -0,0 +1,6 @@
1
+ export declare const LAYOUTS: {
2
+ readonly RIGHT: "right";
3
+ readonly LEFT: "left";
4
+ };
5
+ export declare const LAYOUT_VALUES: ("left" | "right")[];
6
+ export declare const DEFAULT_LAYOUT: "left" | "right";
@@ -0,0 +1 @@
1
+ export { default as BBBCheckbox } from './component';
@@ -0,0 +1,4 @@
1
+ import { Checkbox as MuiCheckbox } from '@mui/material';
2
+ 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;
3
+ export declare const Label: 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 StyledCheckbox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/material").CheckboxProps, never>> & string & Omit<typeof MuiCheckbox, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,10 @@
1
+ import { CheckboxProps as MuiCheckboxProps } from '@mui/material';
2
+ import { LAYOUTS } from './constants';
3
+ type Layout = typeof LAYOUTS[keyof typeof LAYOUTS];
4
+ export interface CheckboxProps extends MuiCheckboxProps {
5
+ label?: string;
6
+ layout?: Layout;
7
+ round?: boolean;
8
+ ariaLabel?: string;
9
+ }
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { JSX } from 'react';
2
+ /**
3
+ * A customizable divider used to separate content areas.
4
+ *
5
+ * This component provides a styled divider that supports horizontal/vertical orientation and spacing via styles.
6
+ *
7
+ */
8
+ declare function Divider(): JSX.Element;
9
+ export default Divider;
@@ -0,0 +1 @@
1
+ export { default as BBBDivider } from './component';
@@ -0,0 +1 @@
1
+ export declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { HintProps } from './types';
3
+ /**
4
+ * A customizable hint component for displaying informational messages.
5
+ *
6
+ * This component provides a small contextual hint used to surface tips, short help text or dismissible messages.
7
+ * It can be displayed with a title, an icon, and a close button.
8
+ *
9
+ */
10
+ declare function Hint({ title, label, icon, onRequestClose, children, ...rest }: HintProps): JSX.Element;
11
+ export default Hint;
@@ -0,0 +1,6 @@
1
+ export declare const LAYOUTS: {
2
+ readonly RIGHT: "right";
3
+ readonly LEFT: "left";
4
+ };
5
+ export declare const LAYOUT_VALUES: ("left" | "right")[];
6
+ export declare const DEFAULT_LAYOUT: "left" | "right";
@@ -0,0 +1 @@
1
+ export { default as BBBHint } from './component';
@@ -0,0 +1,7 @@
1
+ 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;
2
+ export declare const IconTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ 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;
4
+ export declare const IconWrapper: 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 Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
6
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
7
+ export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
@@ -0,0 +1,7 @@
1
+ export interface HintProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ label: string;
3
+ title?: string;
4
+ icon?: React.ReactNode;
5
+ onRequestClose?: () => void;
6
+ children?: React.ReactNode;
7
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ModalProps } from './types';
3
+ /**
4
+ * A versatile BBBModal component
5
+ *
6
+ * This component provides a customizable modal with optional title, body, and footer.
7
+ * It supports accessibility, dividers, scrollable body, and sticky footer.
8
+ *
9
+ */
10
+ declare const Modal: React.FC<ModalProps>;
11
+ export default Modal;
@@ -0,0 +1 @@
1
+ export { default as BBBModal } from './component';
@@ -0,0 +1,9 @@
1
+ import { Styles } from 'react-modal';
2
+ import * as React from 'react';
3
+ import { StyledModalBodyProps, StyledModalFooterProps } from './types';
4
+ export declare const modalStyles: Styles;
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 CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
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
+ export declare const ModalBodyContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
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;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import ReactModal from 'react-modal';
3
+ export interface StyledModalBodyProps {
4
+ $allowScroll: boolean;
5
+ }
6
+ export interface StyledModalFooterProps {
7
+ $stickyFooter: boolean;
8
+ }
9
+ export interface ModalProps extends Omit<ReactModal.Props, 'style'> {
10
+ isOpen: boolean;
11
+ onRequestClose: NonNullable<ReactModal.Props['onRequestClose']>;
12
+ title?: string;
13
+ showDividers?: boolean;
14
+ allowScroll?: boolean;
15
+ noFooter?: boolean;
16
+ stickyFooter?: boolean;
17
+ footerContent?: React.ReactNode;
18
+ testId?: string;
19
+ closeButtonDataTest?: string;
20
+ children: React.ReactNode;
21
+ }
@@ -0,0 +1,9 @@
1
+ import { JSX } from 'react';
2
+ import { NavigationProps } from './types';
3
+ /**
4
+ * A customizable Navigation component that acts as a button with an icon and a label.
5
+ * It can be used for navigation actions within an application.
6
+ *
7
+ */
8
+ declare function Navigation({ label, onClick, onKeyDown, icon, children, ariaLabel, ariaLabelledBy, ariaDescribedBy, dataTest, }: NavigationProps): JSX.Element;
9
+ export default Navigation;
@@ -0,0 +1 @@
1
+ export { default as BBBNavigation } from './component';
@@ -0,0 +1,4 @@
1
+ import { StyledIconWrapper } from './types';
2
+ export declare const NavigationButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
3
+ export declare const IconTextWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledIconWrapper>> & string;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface StyledIconWrapper {
3
+ $isCustomIcon: boolean;
4
+ }
5
+ export interface NavigationProps {
6
+ label: string;
7
+ onClick: React.MouseEventHandler<HTMLButtonElement>;
8
+ onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
9
+ icon?: React.ReactNode;
10
+ children?: React.ReactNode;
11
+ ariaLabel?: string;
12
+ ariaLabelledBy?: string;
13
+ ariaDescribedBy?: string;
14
+ dataTest?: string;
15
+ }
@@ -0,0 +1,8 @@
1
+ import { JSX } from 'react';
2
+ import { BBBSearchProps } from './types';
3
+ /**
4
+ * Search input with debounce, clear action, and optional loading state.
5
+ * It supports both uncontrolled usage and controlled mode via `value` + `onChange`.
6
+ */
7
+ declare function BBBSearch({ placeholder, value, onChange, onSearch, onClear, debounce, isLoading, disabled, autoFocus, inputRef, 'aria-label': ariaLabel, }: BBBSearchProps): JSX.Element;
8
+ export default BBBSearch;
@@ -0,0 +1 @@
1
+ export { default as BBBSearch } from './component';
@@ -0,0 +1,9 @@
1
+ interface ContainerProps {
2
+ $disabled?: boolean;
3
+ }
4
+ 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>, ContainerProps>> & string;
5
+ export declare const SearchIconWrapper: 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 StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
7
+ export declare const ActionWrapper: 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 ClearButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
9
+ export {};
@@ -0,0 +1,42 @@
1
+ export interface BBBSearchProps {
2
+ /** Placeholder text displayed inside the input field. */
3
+ placeholder?: string;
4
+ /**
5
+ * Controlled value for the search input.
6
+ * When provided together with `onChange`, the component operates in controlled mode.
7
+ */
8
+ value?: string;
9
+ /**
10
+ * Called on every keystroke with the current input value.
11
+ * Required when using controlled mode (`value` prop).
12
+ */
13
+ onChange?: (value: string) => void;
14
+ /**
15
+ * Debounced callback fired after the user stops typing.
16
+ * Receives the current search term as argument.
17
+ */
18
+ onSearch?: (term: string) => void;
19
+ /**
20
+ * Called when the clear button is clicked.
21
+ * If not provided, the component clears the internal state and calls `onSearch('')`.
22
+ */
23
+ onClear?: () => void;
24
+ /**
25
+ * Debounce delay in milliseconds applied to `onSearch`.
26
+ * @default 500
27
+ */
28
+ debounce?: number;
29
+ /**
30
+ * When `true` and the input has a value, a loading spinner replaces the clear button.
31
+ * @default false
32
+ */
33
+ isLoading?: boolean;
34
+ /** Disables the search input. */
35
+ disabled?: boolean;
36
+ /** Focuses the input when the component mounts. */
37
+ autoFocus?: boolean;
38
+ /** Ref forwarded to the underlying `<input>` element. */
39
+ inputRef?: React.Ref<HTMLInputElement>;
40
+ /** Accessible label for the search input (used as `aria-label`). */
41
+ 'aria-label'?: string;
42
+ }
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { SelectProps } from './types';
3
+ /**
4
+ * A customizable Select component.
5
+ *
6
+ * This component provides a styled wrapper around the Material-UI Select and additional styling,
7
+ * such as a title and an optional icon.
8
+ *
9
+ */
10
+ declare function Select({ title, icon, children, ariaLabel, ...props }: SelectProps): JSX.Element;
11
+ export default Select;
@@ -0,0 +1 @@
1
+ export { default as BBBSelect } from './component';
@@ -0,0 +1,7 @@
1
+ export declare const SelectContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const SelectWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const Selector: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("@mui/material").SelectProps<unknown> & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<(<Value = unknown>(props: import("@mui/material").SelectProps<Value>) => React.JSX.Element) & {
4
+ muiName: string;
5
+ }, keyof import("react").Component<any, {}, any>>;
6
+ export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
7
+ export declare const SelectorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { SelectProps as MuiSelectProps } from '@mui/material/Select';
3
+ export type SelectProps = MuiSelectProps & {
4
+ title?: string;
5
+ icon?: React.ReactNode;
6
+ ariaLabel?: string;
7
+ children: React.ReactNode;
8
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { SpinnerProps } from './types';
3
+ /**
4
+ * A customizable spinner component.
5
+ *
6
+ * This component provides a small, configurable loading indicator for background activity or loading states.
7
+ *
8
+ */
9
+ declare const Spinner: React.FC<SpinnerProps>;
10
+ export default Spinner;
@@ -0,0 +1 @@
1
+ export { default as BBBSpinner } from './component';
@@ -0,0 +1,4 @@
1
+ import { StyledWrapperProps, StyledSvgProps, StyledPathProps } from './types';
2
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledWrapperProps>> & string;
3
+ export declare const StyledSvg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGSVGElement>, StyledSvgProps>> & string;
4
+ export declare const Path: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGCircleElement>, StyledPathProps>> & string;
@@ -0,0 +1,15 @@
1
+ export interface StyledWrapperProps {
2
+ $size: number | string;
3
+ }
4
+ export interface StyledSvgProps {
5
+ $animate: boolean;
6
+ }
7
+ export interface StyledPathProps {
8
+ $animate: boolean;
9
+ $strokeWidth: number;
10
+ }
11
+ export interface SpinnerProps {
12
+ size?: number | string;
13
+ strokeWidth?: number;
14
+ animate?: boolean;
15
+ }
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { TextAreaInputProps } from './types';
3
+ /**
4
+ * A customizable text area input component.
5
+ *
6
+ * This component provides a styled, multi-line text input field that automatically
7
+ * focuses on render and supports all standard textarea attributes.
8
+ *
9
+ */
10
+ declare function TextAreaInput({ placeholder, rows, maxLength, autoFocus, inputRef, onChange, onKeyDown, ...props }: TextAreaInputProps): JSX.Element;
11
+ export default TextAreaInput;
@@ -0,0 +1 @@
1
+ export { default as BBBTextAreaInput } from './component';
@@ -0,0 +1 @@
1
+ export declare const TextAreaInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface TextAreaInputProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ rows?: number;
4
+ maxLength?: number;
5
+ placeholder?: string;
6
+ autoFocus?: boolean;
7
+ inputRef?: React.MutableRefObject<HTMLTextAreaElement | null> | ((ref: HTMLTextAreaElement) => void);
8
+ onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
9
+ onKeyDown?: React.KeyboardEventHandler<HTMLTextAreaElement>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { TextInputProps } from './types';
3
+ /**
4
+ * A customizable text input component.
5
+ *
6
+ * This component provides a styled, single-line text input field that supports
7
+ * icons, custom validation, and all standard input attributes.
8
+ *
9
+ */
10
+ declare function TextInput({ label, helperText, error, placeholder, ...props }: TextInputProps): JSX.Element;
11
+ export default TextInput;
@@ -0,0 +1 @@
1
+ export { default as BBBTextInput } from './component';
@@ -0,0 +1,8 @@
1
+ import { TextField } from '@mui/material';
2
+ import { StyledTextProps } from './types';
3
+ export declare const StyledTextField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
4
+ variant?: import("@mui/material").TextFieldVariants;
5
+ } & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant">, StyledTextProps>> & string & Omit<typeof TextField, keyof import("react").Component<any, {}, any>>;
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
+ 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
+ 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;
@@ -0,0 +1,9 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ export interface StyledTextProps {
3
+ $error?: boolean;
4
+ }
5
+ export interface TextInputProps extends Omit<TextFieldProps, 'label'> {
6
+ label?: string;
7
+ helperText?: string;
8
+ error?: boolean;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { ToggleProps } from './types';
3
+ /**
4
+ * A customizable Toggle switch component.
5
+ *
6
+ * This component provides a flexible toggle switch that can be used for binary state changes.
7
+ * It supports labels (label and helperText) and various textPosition configurations.
8
+ *
9
+ */
10
+ declare function Toggle({ label, helperText, textPosition, onChange, ariaLabel, ariaLabelledBy, ariaDescribedBy, id: providedId, ...rest }: ToggleProps): JSX.Element;
11
+ export default Toggle;
@@ -0,0 +1,8 @@
1
+ export declare const TEXT_POSITIONS: {
2
+ readonly RIGHT: "right";
3
+ readonly LEFT: "left";
4
+ readonly TOP: "top";
5
+ readonly BOTTOM: "bottom";
6
+ };
7
+ export declare const TEXT_POSITIONS_VALUES: ("top" | "bottom" | "left" | "right")[];
8
+ export declare const DEFAULT_TEXT_POSITION: "top" | "bottom" | "left" | "right";
@@ -0,0 +1 @@
1
+ export { default as BBBToggle } from './component';
@@ -0,0 +1,7 @@
1
+ import { StyledTextWrapperProps, StyledToggleWrapperProps } from './types';
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
+ 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
+ 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").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
6
+ 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;
7
+ export declare const MaterialToggle: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,19 @@
1
+ import { SwitchProps } from '@mui/material';
2
+ import { TEXT_POSITIONS_VALUES } from './constants';
3
+ export type LayoutType = typeof TEXT_POSITIONS_VALUES[number];
4
+ export type LabelPlacement = 'top' | 'bottom' | 'start' | 'end';
5
+ export interface StyledToggleWrapperProps {
6
+ $textPosition: LayoutType;
7
+ }
8
+ export interface StyledTextWrapperProps extends StyledToggleWrapperProps {
9
+ $hasLabel: boolean;
10
+ $hasHelperText: boolean;
11
+ }
12
+ export interface ToggleProps extends SwitchProps {
13
+ label?: string;
14
+ helperText?: string;
15
+ textPosition?: LayoutType;
16
+ ariaLabel?: string;
17
+ ariaLabelledBy?: string;
18
+ ariaDescribedBy?: string;
19
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { TypographyProps } from './types';
3
+ /**
4
+ * A typography component that standardizes text styles across the app.
5
+ *
6
+ * This component provides multiple semantic variants (header, default, label, helper)
7
+ * and allows overriding the rendered HTML element via the `as` prop.
8
+ *
9
+ */
10
+ declare const Typography: React.FC<TypographyProps>;
11
+ export default Typography;
@@ -0,0 +1 @@
1
+ export declare const TYPOGRAPHY_VARIANTS: readonly ["default", "selected", "text2", "text3", "header", "button"];
@@ -0,0 +1 @@
1
+ export { default as BBBTypography } from './component';