@bigbluebutton/bbb-ui-components-react 0.5.0 → 0.6.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 (83) hide show
  1. package/README.md +11 -10
  2. package/dist/components/Accordion.js +53 -1
  3. package/dist/components/Button.js +144 -1
  4. package/dist/components/Checkbox.js +20 -1
  5. package/dist/components/Divider.js +9 -1
  6. package/dist/components/Hint.js +51 -1
  7. package/dist/components/Input.js +220 -0
  8. package/dist/components/Modal.js +222 -1
  9. package/dist/components/Navigation.js +74 -1
  10. package/dist/components/Search.js +130 -1
  11. package/dist/components/Select.js +46 -1
  12. package/dist/components/Spinner.js +34 -1
  13. package/dist/components/TextAreaInput.js +23 -1
  14. package/dist/components/TextInput.js +52 -1
  15. package/dist/components/Toggle.js +42 -1
  16. package/dist/components/Typography.js +42 -1
  17. package/dist/components/index.js +739 -1
  18. package/dist/esm/components/Accordion/component.js +6 -7
  19. package/dist/esm/components/Accordion/constants.js +3 -3
  20. package/dist/esm/components/Accordion/styles.js +58 -17
  21. package/dist/esm/components/Button/component.js +52 -35
  22. package/dist/esm/components/Button/constants.js +21 -20
  23. package/dist/esm/components/Button/styles.js +187 -45
  24. package/dist/esm/components/Checkbox/component.js +3 -14
  25. package/dist/esm/components/Checkbox/constants.js +3 -3
  26. package/dist/esm/components/Checkbox/styles.js +23 -9
  27. package/dist/esm/components/Divider/styles.js +10 -7
  28. package/dist/esm/components/Hint/component.js +3 -14
  29. package/dist/esm/components/Hint/constants.js +3 -3
  30. package/dist/esm/components/Hint/styles.js +58 -13
  31. package/dist/esm/components/Input/component.js +111 -0
  32. package/dist/esm/components/Input/index.js +1 -0
  33. package/dist/esm/components/Input/styles.js +89 -0
  34. package/dist/esm/components/Input/types.js +1 -0
  35. package/dist/esm/components/Modal/component.js +8 -19
  36. package/dist/esm/components/Modal/styles.js +41 -19
  37. package/dist/esm/components/Navigation/component.js +3 -4
  38. package/dist/esm/components/Navigation/styles.js +36 -12
  39. package/dist/esm/components/Search/component.js +16 -17
  40. package/dist/esm/components/Search/styles.js +103 -14
  41. package/dist/esm/components/Select/component.js +5 -16
  42. package/dist/esm/components/Select/styles.js +51 -11
  43. package/dist/esm/components/Spinner/component.js +1 -2
  44. package/dist/esm/components/Spinner/styles.js +39 -29
  45. package/dist/esm/components/TextAreaInput/component.js +4 -15
  46. package/dist/esm/components/TextAreaInput/styles.js +24 -7
  47. package/dist/esm/components/TextInput/component.js +2 -13
  48. package/dist/esm/components/TextInput/styles.js +58 -16
  49. package/dist/esm/components/Toggle/component.js +6 -17
  50. package/dist/esm/components/Toggle/constants.js +3 -3
  51. package/dist/esm/components/Toggle/styles.js +88 -72
  52. package/dist/esm/components/Typography/component.js +3 -14
  53. package/dist/esm/components/Typography/constants.js +1 -1
  54. package/dist/esm/components/Typography/styles.js +50 -17
  55. package/dist/esm/components/index.js +1 -0
  56. package/dist/esm/index.js +1 -1
  57. package/dist/esm/stylesheets/palette.js +49 -0
  58. package/dist/esm/stylesheets/sizing.js +9 -9
  59. package/dist/esm/stylesheets/typography.js +7 -7
  60. package/dist/types/components/Accordion/types.d.ts +8 -0
  61. package/dist/types/components/Button/constants.d.ts +3 -2
  62. package/dist/types/components/Button/styles.d.ts +1 -0
  63. package/dist/types/components/Button/type.d.ts +42 -1
  64. package/dist/types/components/Checkbox/types.d.ts +4 -0
  65. package/dist/types/components/Hint/types.d.ts +5 -0
  66. package/dist/types/components/Input/component.d.ts +12 -0
  67. package/dist/types/components/Input/index.d.ts +1 -0
  68. package/dist/types/components/Input/styles.d.ts +6 -0
  69. package/dist/types/components/Input/types.d.ts +69 -0
  70. package/dist/types/components/Modal/types.d.ts +11 -0
  71. package/dist/types/components/Navigation/types.d.ts +9 -0
  72. package/dist/types/components/Search/types.d.ts +6 -24
  73. package/dist/types/components/Select/types.d.ts +4 -0
  74. package/dist/types/components/Spinner/types.d.ts +3 -0
  75. package/dist/types/components/TextAreaInput/types.d.ts +7 -0
  76. package/dist/types/components/TextInput/types.d.ts +3 -0
  77. package/dist/types/components/Toggle/types.d.ts +6 -0
  78. package/dist/types/components/Typography/types.d.ts +3 -0
  79. package/dist/types/components/index.d.ts +1 -0
  80. package/dist/types/index.d.ts +1 -1
  81. package/dist/types/stylesheets/{pallete.d.ts → palette.d.ts} +9 -9
  82. package/package.json +15 -2
  83. package/dist/esm/stylesheets/pallete.js +0 -46
@@ -0,0 +1,69 @@
1
+ import React from 'react';
2
+ import { VARIANT_VALUES } from '../Button/constants';
3
+ export type BBBInputButtonVariant = typeof VARIANT_VALUES[number];
4
+ export interface BBBInputProps {
5
+ /** Label displayed above the field. */
6
+ label?: string;
7
+ /** Placeholder text displayed inside the field when it's empty. */
8
+ placeholder?: string;
9
+ /** Controlled value. When provided together with `onChange`, the component is fully controlled. */
10
+ value?: string;
11
+ /** Called on every keystroke. Required when using controlled mode (`value` prop). */
12
+ onChange?: (value: string) => void;
13
+ /** Called with the trimmed, non-empty value when the field is submitted. */
14
+ onSubmit: (value: string) => void;
15
+ /** Icon rendered inside the action button. */
16
+ buttonIcon?: React.ReactNode;
17
+ /** Text label rendered by the action button, instead of (or alongside) `buttonIcon`. */
18
+ buttonLabel?: string;
19
+ /** Accessible name for the action button. Falls back to `buttonLabel` when set. Required for the button to be accessible when only `buttonIcon` is provided. */
20
+ buttonAriaLabel?: string;
21
+ /** Visual variant of the action button (same variants as the shared `Button`). @default 'primary' */
22
+ buttonVariant?: BBBInputButtonVariant;
23
+ /** `data-test` attribute on the underlying `<textarea>` element. */
24
+ dataTest?: string;
25
+ /** `data-test` attribute on the action button. */
26
+ buttonDataTest?: string;
27
+ /** Extra content (icon, button, or any other element) rendered to the left of the action button. */
28
+ beforeButton?: React.ReactNode;
29
+ /** Extra content (icon, button, or any other element) rendered to the right of the action button. */
30
+ afterButton?: React.ReactNode;
31
+ /** When `true`, pressing Enter submits the field (Shift+Enter still inserts a newline). When `false`, Enter always inserts a newline and only the button submits. @default true */
32
+ submitOnEnter?: boolean;
33
+ /** When `true`, shows `sentFeedbackContent` in place of `helperText` for `sentFeedbackDuration` after a successful submit. @default false */
34
+ showSentFeedback?: boolean;
35
+ /** Content rendered while the sent feedback is visible. @default 'Message sent' */
36
+ sentFeedbackContent?: React.ReactNode;
37
+ /** How long, in milliseconds, the sent feedback stays visible. @default 2000 */
38
+ sentFeedbackDuration?: number;
39
+ /** Disables the field and the action button. */
40
+ disabled?: boolean;
41
+ /** Puts the field in an error state. */
42
+ error?: boolean;
43
+ /** Helper text displayed below the field. */
44
+ helperText?: string;
45
+ /** Minimum number of visible rows. @default 1 */
46
+ minRows?: number;
47
+ /** Maximum number of rows before the field scrolls internally. @default 3 */
48
+ maxRows?: number;
49
+ /** Maximum character length, enforced natively by the underlying `<textarea>`. */
50
+ maxLength?: number;
51
+ /** Focuses the field when the component mounts. */
52
+ autoFocus?: boolean;
53
+ /** Ref forwarded to the underlying `<textarea>` element. */
54
+ inputRef?: React.Ref<HTMLTextAreaElement>;
55
+ /** HTML `id` for the underlying `<textarea>`. Auto-generated when omitted. */
56
+ id?: string;
57
+ /** Accessible name set as `aria-label` on the underlying `<textarea>`. */
58
+ 'aria-label'?: string;
59
+ /** Additional `aria-describedby` id(s), merged with the helper text's id when it's visible. */
60
+ 'aria-describedby'?: string;
61
+ }
62
+ export interface StyledContainerProps {
63
+ $disabled?: boolean;
64
+ $error?: boolean;
65
+ }
66
+ export interface StyledHelperTextProps {
67
+ $error?: boolean;
68
+ $success?: boolean;
69
+ }
@@ -7,15 +7,26 @@ export interface StyledModalFooterProps {
7
7
  $stickyFooter: boolean;
8
8
  }
9
9
  export interface ModalProps extends Omit<ReactModal.Props, 'style'> {
10
+ /** Controls whether the modal is open. @default true */
10
11
  isOpen: boolean;
12
+ /** Callback invoked when a request to close the modal occurs (e.g., overlay click, ESC key, or close button). */
11
13
  onRequestClose: NonNullable<ReactModal.Props['onRequestClose']>;
14
+ /** Modal title shown in the header. */
12
15
  title?: string;
16
+ /** Show dividers between header/body/footer. @default false */
13
17
  showDividers?: boolean;
18
+ /** Enable scrolling inside the modal body. @default true */
14
19
  allowScroll?: boolean;
20
+ /** Hide the footer section. @default false */
15
21
  noFooter?: boolean;
22
+ /** When true, the footer is sticky to the bottom instead of scrolling with the body. @default true */
16
23
  stickyFooter?: boolean;
24
+ /** Custom React node to render inside the footer. @default null */
17
25
  footerContent?: React.ReactNode;
26
+ /** Test identifier applied to the modal element (native ReactModal prop). Also used to derive `closeButtonDataTest` when that prop is omitted. */
18
27
  testId?: string;
28
+ /** Test identifier applied to the close button. Defaults to `${testId}-close-button` when `testId` is set. */
19
29
  closeButtonDataTest?: string;
30
+ /** Modal body content. */
20
31
  children: React.ReactNode;
21
32
  }
@@ -3,13 +3,22 @@ export interface StyledIconWrapper {
3
3
  $isCustomIcon: boolean;
4
4
  }
5
5
  export interface NavigationProps {
6
+ /** Text label displayed inside the navigation button. */
6
7
  label: string;
8
+ /** Click handler fired when the navigation button is activated. */
7
9
  onClick: React.MouseEventHandler<HTMLButtonElement>;
10
+ /** Keyboard keydown handler for the navigation button. */
8
11
  onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
12
+ /** Optional custom icon node. If omitted, a default icon is displayed. */
9
13
  icon?: React.ReactNode;
14
+ /** Optional children (e.g., sub-menus) rendered within the button. */
10
15
  children?: React.ReactNode;
16
+ /** Accessible name for the navigation button. */
11
17
  ariaLabel?: string;
18
+ /** ID of the element that labels the navigation button. */
12
19
  ariaLabelledBy?: string;
20
+ /** ID of the element that describes the navigation button. */
13
21
  ariaDescribedBy?: string;
22
+ /** Test id used for automated tests. */
14
23
  dataTest?: string;
15
24
  }
@@ -1,35 +1,17 @@
1
1
  export interface BBBSearchProps {
2
2
  /** Placeholder text displayed inside the input field. */
3
3
  placeholder?: string;
4
- /**
5
- * Controlled value for the search input.
6
- * When provided together with `onChange`, the component operates in controlled mode.
7
- */
4
+ /** Controlled value for the search input. When provided together with `onChange`, the component operates in controlled mode. */
8
5
  value?: string;
9
- /**
10
- * Called on every keystroke with the current input value.
11
- * Required when using controlled mode (`value` prop).
12
- */
6
+ /** Called on every keystroke with the current input value. Required when using controlled mode (`value` prop). */
13
7
  onChange?: (value: string) => void;
14
- /**
15
- * Debounced callback fired after the user stops typing.
16
- * Receives the current search term as argument.
17
- */
8
+ /** Debounced callback fired after the user stops typing. Receives the current search term as argument. */
18
9
  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
- */
10
+ /** Called when the clear button is clicked. If not provided, the component clears the internal state and calls `onSearch('')`. */
23
11
  onClear?: () => void;
24
- /**
25
- * Debounce delay in milliseconds applied to `onSearch`.
26
- * @default 500
27
- */
12
+ /** Debounce delay in milliseconds applied to `onSearch`. @default 500 */
28
13
  debounce?: number;
29
- /**
30
- * When `true` and the input has a value, a loading spinner replaces the clear button.
31
- * @default false
32
- */
14
+ /** When `true` and the input has a value, a loading spinner replaces the clear button. @default false */
33
15
  isLoading?: boolean;
34
16
  /** Disables the search input. */
35
17
  disabled?: boolean;
@@ -1,8 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { SelectProps as MuiSelectProps } from '@mui/material/Select';
3
3
  export type SelectProps = MuiSelectProps & {
4
+ /** Label text displayed above the select input. @default null */
4
5
  title?: string;
6
+ /** Optional icon rendered inside the select wrapper. @default null */
5
7
  icon?: React.ReactNode;
8
+ /** Accessible name for the select when a visible title is not present. */
6
9
  ariaLabel?: string;
10
+ /** Option elements rendered inside the select. */
7
11
  children: React.ReactNode;
8
12
  };
@@ -9,7 +9,10 @@ export interface StyledPathProps {
9
9
  $strokeWidth: number;
10
10
  }
11
11
  export interface SpinnerProps {
12
+ /** Width/height of the spinner (number in px or CSS string, e.g. '2rem'). @default 48 */
12
13
  size?: number | string;
14
+ /** Thickness of the spinner stroke. @default 4 */
13
15
  strokeWidth?: number;
16
+ /** When false, disables the rotation animation. @default true */
14
17
  animate?: boolean;
15
18
  }
@@ -1,10 +1,17 @@
1
1
  import React from 'react';
2
2
  export interface TextAreaInputProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ /** Initial number of visible text lines. @default 1 */
3
4
  rows?: number;
5
+ /** Maximum number of characters allowed. @default 250 */
4
6
  maxLength?: number;
7
+ /** Placeholder text shown when the textarea is empty. @default '' */
5
8
  placeholder?: string;
9
+ /** When true, the textarea is focused automatically on mount. @default true */
6
10
  autoFocus?: boolean;
11
+ /** Ref to the underlying textarea element; accepts either a mutable ref object or a callback ref. */
7
12
  inputRef?: React.MutableRefObject<HTMLTextAreaElement | null> | ((ref: HTMLTextAreaElement) => void);
13
+ /** Change event handler for the textarea. */
8
14
  onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
15
+ /** Keyboard event handler for the textarea. */
9
16
  onKeyDown?: React.KeyboardEventHandler<HTMLTextAreaElement>;
10
17
  }
@@ -3,7 +3,10 @@ export interface StyledTextProps {
3
3
  $error?: boolean;
4
4
  }
5
5
  export interface TextInputProps extends Omit<TextFieldProps, 'label'> {
6
+ /** Label displayed above the input. */
6
7
  label?: string;
8
+ /** Helper text shown below the input. */
7
9
  helperText?: string;
10
+ /** When true, renders the input in an error state. */
8
11
  error?: boolean;
9
12
  }
@@ -10,10 +10,16 @@ export interface StyledTextWrapperProps extends StyledToggleWrapperProps {
10
10
  $hasHelperText: boolean;
11
11
  }
12
12
  export interface ToggleProps extends SwitchProps {
13
+ /** Main label text displayed next to the toggle. */
13
14
  label?: string;
15
+ /** Helper text displayed below the label. */
14
16
  helperText?: string;
17
+ /** Position of the label/helper text relative to the toggle. @default 'right' */
15
18
  textPosition?: LayoutType;
19
+ /** Accessible name for the toggle. */
16
20
  ariaLabel?: string;
21
+ /** ID of the element that labels the toggle; ignored when `ariaLabel` is set, and falls back to the rendered label's id when omitted. */
17
22
  ariaLabelledBy?: string;
23
+ /** ID of the element that describes the toggle; falls back to the rendered helper text's id when omitted. */
18
24
  ariaDescribedBy?: string;
19
25
  }
@@ -5,7 +5,10 @@ export interface StyledTypography {
5
5
  $variant: TypographyVariants;
6
6
  }
7
7
  export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
8
+ /** Text content to render. */
8
9
  children: React.ReactNode;
10
+ /** Typography variant (e.g., header, default) controlling the applied text style. @default 'default' */
9
11
  variant?: TypographyVariants;
12
+ /** HTML element to render as (e.g., h1, p, span), overriding the variant's default element. */
10
13
  as?: React.ElementType;
11
14
  }
@@ -3,6 +3,7 @@ export { BBButton } from './Button';
3
3
  export { BBBCheckbox } from './Checkbox';
4
4
  export { BBBDivider } from './Divider';
5
5
  export { BBBHint } from './Hint';
6
+ export { BBBInput } from './Input';
6
7
  export { BBBModal } from './Modal';
7
8
  export { BBBNavigation } from './Navigation';
8
9
  export { BBBSearch } from './Search';
@@ -1,3 +1,3 @@
1
1
  export * from './components';
2
- export * from './stylesheets/pallete';
2
+ export * from './stylesheets/palette';
3
3
  export * from './stylesheets/sizing';
@@ -5,26 +5,26 @@ export declare const colorWhite = "var(--color-neutral-white, #FFFFFF)";
5
5
  export declare const colorLightGray = "var(--color-light-gray, #F4F6FA)";
6
6
  export declare const colorGray = "var(--color-gray, #4E5A66)";
7
7
  export declare const colorDarkGray = "var(--color-dark-gray, #393C48)";
8
- export declare const colorBrand1 = "var(--color-primary, var(--color-brand-1, #1D65D4))";
9
- export declare const colorBrand2 = "var(--color-brand-2, var(--color-brand-1, #1D65D4))";
10
- export declare const colorBrand3 = "var(--color-brand-3, var(--color-brand-1, #1D65D4))";
8
+ export declare const colorBrand1 = "var(--color-primary, var(--color-brand-1, #0F70D7))";
9
+ export declare const colorBrand2 = "var(--color-brand-2, var(--color-brand-1, #0F70D7))";
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
12
  export declare const colorBrandAux = "var(--color-brand-aux, 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 colorError = "var(--color-danger, var(--color-error, #D6232D))";
16
- export declare const colorErrorDark = "var(--color-danger-dark, var(--color-error-dark, #B91C25))";
15
+ export declare const colorError = "var(--color-danger, var(--color-error, #DF2721))";
16
+ export declare const colorErrorDark = "var(--color-danger-dark, var(--color-error-dark, #AE1010))";
17
17
  export declare const colorBackgroundWhite = "var(--color-background-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, #1D65D4))";
21
- export declare const colorBorderError = "var(--color-border-error, var(--color-error, #D6232D))";
20
+ export declare const colorBorderSelected = "var(--color-border-selected, var(--color-brand-1, #0F70D7))";
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 colorTextDefault = "var(--color-text-default, var(--color-dark-gray, #393C48))";
24
24
  export declare const colorTextLight = "var(--color-text-light, var(--color-neutral-2, #717C91))";
25
25
  export declare const colorIconDefault = "var(--color-icon-default, var(--color-neutral-2, #717C91))";
26
- export declare const colorIconBlue = "var(--color-icon-blue, var(--color-brand-1, #1D65D4))";
26
+ export declare const colorIconBlue = "var(--color-icon-blue, var(--color-brand-1, #0F70D7))";
27
27
  export declare const colorIconWhite = "var(--color-icon-white, var(--color-neutral-white, #FFFFFF))";
28
- export declare const colorHoverDark = "var(--color-hover-dark, #1E53AF)";
28
+ export declare const colorHoverDark = "var(--color-hover-dark, #0C57A7)";
29
29
  export declare const colorHoverLight = "var(--color-hover-light, #D4E5FA)";
30
30
  export declare const colorHoverNeutral = "var(--color-hover-neutral, var(--color-neutral-4, #DCE4EC))";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbluebutton/bbb-ui-components-react",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/bigbluebutton/bbb-ui-components-react.git"
@@ -50,6 +50,13 @@
50
50
  "require": "./dist/components/Hint.js",
51
51
  "default": "./dist/components/Hint.js"
52
52
  },
53
+ "./Input": {
54
+ "types": "./dist/types/components/Input/index.d.ts",
55
+ "node": "./dist/components/Input.js",
56
+ "import": "./dist/esm/components/Input/index.js",
57
+ "require": "./dist/components/Input.js",
58
+ "default": "./dist/components/Input.js"
59
+ },
53
60
  "./Modal": {
54
61
  "types": "./dist/types/components/Modal/index.d.ts",
55
62
  "node": "./dist/components/Modal.js",
@@ -172,6 +179,9 @@
172
179
  "Hint": [
173
180
  "dist/types/components/Hint/index.d.ts"
174
181
  ],
182
+ "Input": [
183
+ "dist/types/components/Input/index.d.ts"
184
+ ],
175
185
  "Modal": [
176
186
  "dist/types/components/Modal/index.d.ts"
177
187
  ],
@@ -230,8 +240,8 @@
230
240
  "peerDependencies": {
231
241
  "@emotion/react": "^11.13.0",
232
242
  "@emotion/styled": "^11.13.0",
233
- "@mui/material": "^6.1.4 || ^7.0.0",
234
243
  "@mui/icons-material": "^6.1.4 || ^7.0.0",
244
+ "@mui/material": "^6.1.4 || ^7.0.0",
235
245
  "prop-types": "^15.8.1",
236
246
  "react": "^18.2.0",
237
247
  "react-dom": "^18.2.0",
@@ -247,6 +257,8 @@
247
257
  "@babel/preset-typescript": "^7.24.7",
248
258
  "@babel/register": "^7.24.6",
249
259
  "@eslint/js": "^9.33.0",
260
+ "@storybook/addon-a11y": "^8.6.18",
261
+ "@storybook/addon-actions": "^8.6.18",
250
262
  "@storybook/addon-docs": "^8.6.18",
251
263
  "@storybook/addon-links": "^8.6.18",
252
264
  "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
@@ -262,6 +274,7 @@
262
274
  "eslint": "^9.33.0",
263
275
  "eslint-import-resolver-typescript": "^4.4.4",
264
276
  "eslint-plugin-import": "^2.32.0",
277
+ "eslint-plugin-jsdoc": "^62.9.0",
265
278
  "eslint-plugin-jsx-a11y": "^6.10.2",
266
279
  "eslint-plugin-react": "^7.37.5",
267
280
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -1,46 +0,0 @@
1
- // Neutral colors
2
- export var colorNeutral2 = 'var(--color-neutral-2, #717C91)';
3
- export var colorNeutral3 = 'var(--color-neutral-3, #B0BDC9)';
4
- export var colorNeutral4 = 'var(--color-neutral-4, #DCE4EC)';
5
- export var colorWhite = 'var(--color-neutral-white, #FFFFFF)';
6
- export var colorLightGray = 'var(--color-light-gray, #F4F6FA)';
7
- export var colorGray = 'var(--color-gray, #4E5A66)';
8
- export var colorDarkGray = 'var(--color-dark-gray, #393C48)';
9
- // Brand colors
10
- var colorBrand1_base = 'var(--color-brand-1, #1D65D4)';
11
- var colorBrandLight_base = 'var(--color-brand-light, #E5EFFB)';
12
- export var colorBrand1 = "var(--color-primary, ".concat(colorBrand1_base, ")");
13
- export var colorBrand2 = "var(--color-brand-2, ".concat(colorBrand1_base, ")");
14
- export var colorBrand3 = "var(--color-brand-3, ".concat(colorBrand1_base, ")");
15
- // Mapped to core css vars
16
- export var colorBrandLight = "var(--color-blue-aux, ".concat(colorBrandLight_base, ")");
17
- export var colorBrandAux = "var(--color-brand-aux, ".concat(colorBrandLight_base, ")");
18
- // Semantic colors
19
- var colorError_base = 'var(--color-error, #D6232D)';
20
- var colorErrorDark_base = 'var(--color-error-dark, #B91C25)';
21
- export var colorSuccess = 'var(--color-success, #2DD36F)';
22
- export var colorWarning = 'var(--color-warning, #F59240)';
23
- // Mapped to core css vars
24
- export var colorError = "var(--color-danger, ".concat(colorError_base, ")");
25
- export var colorErrorDark = "var(--color-danger-dark, ".concat(colorErrorDark_base, ")");
26
- // Background colors
27
- export var colorBackgroundWhite = "var(--color-background-white, ".concat(colorWhite, ")");
28
- export var colorBackgroundLight = "var(--color-background-light, ".concat(colorLightGray, ")");
29
- export var colorBackgroundBlue = "var(--color-background-blue, ".concat(colorBrandLight_base, ")");
30
- // Border colors
31
- var colorBorderDefault_base = "var(--color-border-default, ".concat(colorNeutral3, ")");
32
- export var colorBorderSelected = "var(--color-border-selected, ".concat(colorBrand1_base, ")");
33
- export var colorBorderError = "var(--color-border-error, ".concat(colorError_base, ")");
34
- // Mapped to core css vars
35
- export var colorBorderDefault = "var(--default-border, ".concat(colorBorderDefault_base, ")");
36
- // Text colors
37
- export var colorTextDefault = "var(--color-text-default, ".concat(colorDarkGray, ")");
38
- export var colorTextLight = "var(--color-text-light, ".concat(colorNeutral2, ")");
39
- //Icon colors
40
- export var colorIconDefault = "var(--color-icon-default, ".concat(colorNeutral2, ")");
41
- export var colorIconBlue = "var(--color-icon-blue, ".concat(colorBrand1_base, ")");
42
- export var colorIconWhite = "var(--color-icon-white, ".concat(colorWhite, ")");
43
- //Hover colors
44
- export var colorHoverDark = 'var(--color-hover-dark, #1E53AF)';
45
- export var colorHoverLight = 'var(--color-hover-light, #D4E5FA)';
46
- export var colorHoverNeutral = "var(--color-hover-neutral, ".concat(colorNeutral4, ")");