@apolitical/component-library 4.0.4 → 4.1.0-beta.2

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 (57) hide show
  1. package/accessibility/visually-hidden/visually-hidden.d.ts +1 -1
  2. package/discussion/components/form/form.d.ts +2 -4
  3. package/form/components/form/components/field-wrapper/field-wrapper.d.ts +1 -1
  4. package/form/components/form/components/fields/checkbox/checkbox.d.ts +4 -0
  5. package/form/components/form/components/fields/input/input.d.ts +4 -0
  6. package/form/components/form/form.types.d.ts +9 -1
  7. package/form/components/index.d.ts +1 -0
  8. package/form/components/rich-text-editor/components/context/context.d.ts +23 -0
  9. package/form/components/rich-text-editor/components/context/index.d.ts +1 -0
  10. package/form/components/rich-text-editor/components/editor/element/element.d.ts +3 -0
  11. package/form/components/rich-text-editor/components/editor/element/index.d.ts +1 -0
  12. package/form/components/rich-text-editor/components/editor/index.d.ts +2 -0
  13. package/form/components/rich-text-editor/components/editor/leaf/index.d.ts +1 -0
  14. package/form/components/rich-text-editor/components/editor/leaf/leaf.d.ts +3 -0
  15. package/form/components/rich-text-editor/components/index.d.ts +3 -0
  16. package/form/components/rich-text-editor/components/toolbar/components/block-option/block-option.d.ts +3 -0
  17. package/form/components/rich-text-editor/components/toolbar/components/block-option/block-option.helpers.d.ts +3 -0
  18. package/form/components/rich-text-editor/components/toolbar/components/block-option/index.d.ts +1 -0
  19. package/form/components/rich-text-editor/components/toolbar/components/index.d.ts +4 -0
  20. package/form/components/rich-text-editor/components/toolbar/components/link-editor/index.d.ts +2 -0
  21. package/form/components/rich-text-editor/components/toolbar/components/link-editor/link-editor.d.ts +2 -0
  22. package/form/components/rich-text-editor/components/toolbar/components/link-editor/link-editor.helpers.d.ts +5 -0
  23. package/form/components/rich-text-editor/components/toolbar/components/link-option/index.d.ts +1 -0
  24. package/form/components/rich-text-editor/components/toolbar/components/link-option/link-option.d.ts +2 -0
  25. package/form/components/rich-text-editor/components/toolbar/components/mark-option/index.d.ts +2 -0
  26. package/form/components/rich-text-editor/components/toolbar/components/mark-option/mark-option.d.ts +3 -0
  27. package/form/components/rich-text-editor/components/toolbar/components/mark-option/mark-option.helpers.d.ts +3 -0
  28. package/form/components/rich-text-editor/components/toolbar/components/option/index.d.ts +1 -0
  29. package/form/components/rich-text-editor/components/toolbar/components/option/option.d.ts +15 -0
  30. package/form/components/rich-text-editor/components/toolbar/index.d.ts +3 -0
  31. package/form/components/rich-text-editor/components/toolbar/toolbar.d.ts +4 -0
  32. package/form/components/rich-text-editor/components/toolbar/toolbar.data.d.ts +3 -0
  33. package/form/components/rich-text-editor/hooks/index.d.ts +2 -0
  34. package/form/components/rich-text-editor/hooks/use-positioned-element/index.d.ts +1 -0
  35. package/form/components/rich-text-editor/hooks/use-positioned-element/use-positioned-element.d.ts +4 -0
  36. package/form/components/rich-text-editor/hooks/use-selected-link/index.d.ts +1 -0
  37. package/form/components/rich-text-editor/hooks/use-selected-link/use-selected-link.d.ts +6 -0
  38. package/form/components/rich-text-editor/index.d.ts +1 -0
  39. package/form/components/rich-text-editor/plugins/index.d.ts +1 -0
  40. package/form/components/rich-text-editor/plugins/with-linlines/index.d.ts +1 -0
  41. package/form/components/rich-text-editor/plugins/with-linlines/with-inlines.d.ts +5 -0
  42. package/form/components/rich-text-editor/rich-text-editor.d.ts +19 -0
  43. package/form/components/rich-text-editor/rich-text-editor.helpers.d.ts +5 -0
  44. package/form/components/rich-text-editor/rich-text-editor.types.d.ts +24 -0
  45. package/general/buttons/button-wrapper/button-wrapper.d.ts +5 -1
  46. package/general/tooltip/tooltip.d.ts +25 -1
  47. package/helpers/intl.d.ts +16 -0
  48. package/helpers/validation.d.ts +1 -1
  49. package/index.js +119 -21
  50. package/index.mjs +19312 -5876
  51. package/package.json +12 -3
  52. package/style.css +1 -1
  53. package/styles/base/buttons/_icons.scss +0 -2
  54. package/styles/base/form/_fields.scss +1 -1
  55. package/styles/variables/colors/theme/_form.scss +10 -0
  56. package/testing/__mocks__/remark-parse.d.ts +2 -0
  57. package/testing/__mocks__/unified.d.ts +6 -0
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  /** The element that will render around the content. */
4
- element?: 'span' | 'small' | 'strong' | 'em' | 'sup' | 'sub' | 'div' | 'p' | 'label' | 'a' | 'button';
4
+ element?: 'span' | 'small' | 'strong' | 'em' | 'sup' | 'sub' | 'div' | 'p' | 'label' | 'legend' | 'a' | 'button';
5
5
  /** Whether the content should be shown on focus. */
6
6
  showOnFocus?: boolean;
7
7
  /** The content to be hidden from screen readers. */
@@ -21,13 +21,11 @@ export interface IDiscussionForm {
21
21
  showSuccessMessage?: boolean;
22
22
  };
23
23
  /** The `ref` for the input, if we need to have control over it in the parent */
24
- inputRef?: React.Ref<HTMLTextAreaElement> | undefined;
24
+ editorRef?: React.MutableRefObject<string | null>;
25
25
  /** The placeholder text - this defaults to the intl text */
26
26
  placeholder?: string;
27
27
  /** The maximum number of characters */
28
28
  maxLength?: number;
29
- /** The minimum number of rows */
30
- minRows?: number;
31
29
  /** Force elements on the form to show, regardless of the form state */
32
30
  forceShow?: {
33
31
  /** If the cancel button should always show */
@@ -52,5 +50,5 @@ export interface IDiscussionForm {
52
50
  /** The language to use for the text */
53
51
  locale?: string;
54
52
  }
55
- declare const Form: ({ content, userHasPermissions, meta, inputRef, placeholder, maxLength, minRows, forceShow, functions, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
53
+ declare const Form: ({ content, userHasPermissions, meta, editorRef, placeholder, maxLength, forceShow, functions, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
56
54
  export default Form;
@@ -1,3 +1,3 @@
1
1
  import { IFieldWrapper } from '../../form.types';
2
- declare const FieldWrapper: ({ id, intlPath, className, error, functions, limit, showRequiredLabels, type, validation, value, ...props }: IFieldWrapper) => import("react/jsx-runtime").JSX.Element;
2
+ declare const FieldWrapper: ({ id, intlPath, className, error, functions, limit, showRequiredLabels, type, validation, value, submitOnEnter, ...props }: IFieldWrapper) => import("react/jsx-runtime").JSX.Element;
3
3
  export default FieldWrapper;
@@ -5,10 +5,13 @@ export declare const Checkbox: ({ className, disabled, element, functions: allFu
5
5
  onBlur?: (() => void) | undefined;
6
6
  onFocus?: (() => void) | undefined;
7
7
  onKeyInput?: (<T>(arg1: import("../../../form.types").FormValues) => Promise<T>) | undefined;
8
+ onKeyDown?: ((e: React.KeyboardEvent<HTMLElement>) => void) | undefined;
9
+ submitForm?: ((arg: import("../../../form.types").IFormValues) => void) | undefined;
8
10
  'aria-describedby'?: string | undefined;
9
11
  'aria-invalid'?: boolean | undefined;
10
12
  'aria-required'?: boolean | undefined;
11
13
  autoComplete?: string | undefined;
14
+ autoFocus?: boolean | undefined;
12
15
  component?: any;
13
16
  'data-character-limit'?: number | undefined;
14
17
  'data-testid'?: string | undefined;
@@ -30,6 +33,7 @@ export declare const Checkbox: ({ className, disabled, element, functions: allFu
30
33
  [key: string]: string | boolean | object | React.RefObject<any> | (() => void);
31
34
  } | undefined;
32
35
  required?: boolean | undefined;
36
+ submitOnEnter?: boolean | undefined;
33
37
  validation?: import("../../../form.types").IFieldValidation[] | undefined;
34
38
  onClick: (e: React.MouseEvent<HTMLElement>) => void;
35
39
  className: string;
@@ -6,6 +6,8 @@ export declare const Input: ({ className, element, id, inputRef: ref, functions,
6
6
  onBlur?: (() => void) | undefined;
7
7
  onFocus?: (() => void) | undefined;
8
8
  onKeyInput?: (<T>(arg1: import("../../../form.types").FormValues) => Promise<T>) | undefined;
9
+ onKeyDown?: ((e: React.KeyboardEvent<HTMLElement>) => void) | undefined;
10
+ submitForm?: ((arg: import("../../../form.types").IFormValues) => void) | undefined;
9
11
  type: InputTypes;
10
12
  id: string | undefined;
11
13
  name: string | undefined;
@@ -16,6 +18,7 @@ export declare const Input: ({ className, element, id, inputRef: ref, functions,
16
18
  'aria-invalid'?: boolean | undefined;
17
19
  'aria-required'?: boolean | undefined;
18
20
  autoComplete?: string | undefined;
21
+ autoFocus?: boolean | undefined;
19
22
  component?: any;
20
23
  'data-character-limit'?: number | undefined;
21
24
  'data-testid'?: string | undefined;
@@ -39,6 +42,7 @@ export declare const Input: ({ className, element, id, inputRef: ref, functions,
39
42
  } | undefined;
40
43
  required?: boolean | undefined;
41
44
  shownValue?: InputValues | undefined;
45
+ submitOnEnter?: boolean | undefined;
42
46
  validation?: import("../../../form.types").IFieldValidation[] | undefined;
43
47
  ref: React.RefObject<HTMLInputElement>;
44
48
  }, HTMLInputElement>;
@@ -5,7 +5,7 @@ import { IntlShape } from 'react-intl';
5
5
  export type InputValues = string | number | boolean | null;
6
6
  export type MultipleInputValues = InputValues[];
7
7
  export type FormValues = InputValues | MultipleInputValues | undefined;
8
- export type InputTypes = 'text' | 'textarea' | 'email' | 'checkbox' | 'select' | 'radio' | 'password' | 'autocomplete' | 'number';
8
+ export type InputTypes = 'text' | 'textarea' | 'email' | 'url' | 'checkbox' | 'select' | 'radio' | 'password' | 'autocomplete' | 'number';
9
9
  export interface ILabel {
10
10
  /** The element to be used, defaulting to `label` */
11
11
  element?: string;
@@ -68,6 +68,8 @@ export interface IField {
68
68
  'aria-required'?: boolean;
69
69
  /** Whether the field can be automatically filled */
70
70
  autoComplete?: string;
71
+ /** Whether the field should autofocus */
72
+ autoFocus?: boolean;
71
73
  /** Additional classes to be added to the field */
72
74
  className?: string;
73
75
  /** The component to render, instead of rendering a field (e.g. for when we need a component like `EmailHelperTextBox` in the middle of a form). Please specify props when passing in. */
@@ -97,6 +99,10 @@ export interface IField {
97
99
  onFocus?: () => void;
98
100
  /** The function to call when a key is pressed */
99
101
  onKeyInput?: <T>(arg1: FormValues) => Promise<T>;
102
+ /** The function to call when a key is pressed */
103
+ onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
104
+ /** The function to call when the form is submitted from a field */
105
+ submitForm?: (arg: IFormValues) => void;
100
106
  };
101
107
  /** The Google Tag Manager data to be passed to the field */
102
108
  gtm?: {
@@ -140,6 +146,8 @@ export interface IField {
140
146
  required?: boolean;
141
147
  /** The selected value for checkboxes */
142
148
  shownValue?: InputValues;
149
+ /** Whether hitting enter on the field should submit the form */
150
+ submitOnEnter?: boolean;
143
151
  /** The type of the input */
144
152
  type?: InputTypes | 'checkboxes';
145
153
  /** The validation for the field */
@@ -2,5 +2,6 @@ export * from './email-helper-text-box';
2
2
  export * from './form';
3
3
  export * from './password-rules';
4
4
  export * from './rating';
5
+ export * from './rich-text-editor';
5
6
  export * from './toggle';
6
7
  export * from './profile-image-change';
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { Point } from 'slate';
3
+ declare const RichTextEditorContext: import("react").Context<{
4
+ /** The id of the editor */
5
+ id: string;
6
+ /** The toolbar option that is currently tabbable */
7
+ tabbableOption: string;
8
+ /** The function to set focus on the toolbar options */
9
+ setFocus: (option: string | null) => void;
10
+ /** The tooltip that is currently open */
11
+ openTooltip: string | null;
12
+ /** The function to set the open tooltip */
13
+ setOpenTooltip: (option: string | null) => void;
14
+ /** Whether the link editor is open */
15
+ showLinkEditor: boolean;
16
+ /** The function to set the link editor */
17
+ setShowLinkEditor: (open: boolean) => void;
18
+ /** The last anchor point (used for Slate to know where the cursor is) */
19
+ lastAnchor: Point | null;
20
+ /** The function to set the last anchor */
21
+ setLastAnchor: (anchor: Point | null) => void;
22
+ }>;
23
+ export default RichTextEditorContext;
@@ -0,0 +1 @@
1
+ export { default as RichTextEditorContext } from './context';
@@ -0,0 +1,3 @@
1
+ import { RenderElementProps } from 'slate-react';
2
+ declare const Element: ({ attributes, children, element: originalElement, }: RenderElementProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Element;
@@ -0,0 +1 @@
1
+ export { default as Element } from './element';
@@ -0,0 +1,2 @@
1
+ export * from './element';
2
+ export * from './leaf';
@@ -0,0 +1 @@
1
+ export { default as Leaf } from './leaf';
@@ -0,0 +1,3 @@
1
+ import { RenderLeafProps } from 'slate-react';
2
+ declare const Leaf: ({ attributes, children, leaf: originalLeaf }: RenderLeafProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Leaf;
@@ -0,0 +1,3 @@
1
+ export * from './context';
2
+ export * from './editor';
3
+ export * from './toolbar';
@@ -0,0 +1,3 @@
1
+ import { OptionTypes } from '../../../../../../../form/components/rich-text-editor/rich-text-editor.types';
2
+ declare const BlockOption: ({ format, hasDivider }: OptionTypes) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockOption;
@@ -0,0 +1,3 @@
1
+ import { BaseEditor } from 'slate';
2
+ export declare const isBlockActive: (editor: BaseEditor, format: string) => boolean;
3
+ export declare const toggleBlock: (editor: BaseEditor, format: string) => void;
@@ -0,0 +1 @@
1
+ export { default as BlockOption } from './block-option';
@@ -0,0 +1,4 @@
1
+ export * from './block-option';
2
+ export * from './link-editor';
3
+ export * from './link-option';
4
+ export * from './mark-option';
@@ -0,0 +1,2 @@
1
+ export { default as LinkEditor } from './link-editor';
2
+ export * from './link-editor.helpers';
@@ -0,0 +1,2 @@
1
+ declare const LinkEditor: () => import("react/jsx-runtime").JSX.Element;
2
+ export default LinkEditor;
@@ -0,0 +1,5 @@
1
+ import { BaseEditor } from 'slate';
2
+ export declare const isLinkActive: (editor: BaseEditor) => boolean;
3
+ export declare const insertLink: (editor: BaseEditor, url: string) => void;
4
+ export declare const wrapLink: (editor: BaseEditor, url: string) => void;
5
+ export declare const unwrapLink: (editor: BaseEditor) => void;
@@ -0,0 +1 @@
1
+ export { default as LinkOption } from './link-option';
@@ -0,0 +1,2 @@
1
+ declare const LinkOption: () => import("react/jsx-runtime").JSX.Element;
2
+ export default LinkOption;
@@ -0,0 +1,2 @@
1
+ export { default as MarkOption } from './mark-option';
2
+ export * from './mark-option.helpers';
@@ -0,0 +1,3 @@
1
+ import { OptionTypes } from '../../../../../../../form/components/rich-text-editor/rich-text-editor.types';
2
+ declare const MarkOption: ({ format, hasDivider }: OptionTypes) => import("react/jsx-runtime").JSX.Element;
3
+ export default MarkOption;
@@ -0,0 +1,3 @@
1
+ import { BaseEditor } from 'slate';
2
+ export declare const isMarkActive: (editor: BaseEditor, format: string) => boolean;
3
+ export declare const toggleMark: (editor: BaseEditor, format: string) => void;
@@ -0,0 +1 @@
1
+ export { default as Option } from './option';
@@ -0,0 +1,15 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { BaseProps } from '../../../../../../../form/components/rich-text-editor/rich-text-editor.types';
3
+ declare const Option: ({ id, active, hasDivider, callback, className, children, ...props }: React.PropsWithChildren<{
4
+ /** The id of the option */
5
+ id: string;
6
+ /** Whether the option is active */
7
+ active?: boolean | undefined;
8
+ /** Whether the option has a divider */
9
+ hasDivider?: boolean | undefined;
10
+ /** The callback to fire when the option is clicked */
11
+ callback: () => void;
12
+ /** Additional classes */
13
+ className?: string | undefined;
14
+ } & BaseProps>) => import("react/jsx-runtime").JSX.Element;
15
+ export default Option;
@@ -0,0 +1,3 @@
1
+ export { default as Toolbar } from './toolbar';
2
+ export * from './toolbar.data';
3
+ export { toggleMark, wrapLink } from './components';
@@ -0,0 +1,4 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { BaseProps } from './../../rich-text-editor.types';
3
+ declare const Toolbar: ({ ...props }: PropsWithChildren<BaseProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Toolbar;
@@ -0,0 +1,3 @@
1
+ import { BlockOptionType, MarkOptionType } from '../../../../../form/components/rich-text-editor/rich-text-editor.types';
2
+ export declare const marks: MarkOptionType[];
3
+ export declare const blocks: BlockOptionType[];
@@ -0,0 +1,2 @@
1
+ export * from './use-positioned-element';
2
+ export * from './use-selected-link';
@@ -0,0 +1 @@
1
+ export { default as usePositionedElement } from './use-positioned-element';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { BaseEditor } from 'slate';
3
+ declare const usePositionedElement: (editor: BaseEditor, element: string, fallback: string) => import("react").MutableRefObject<HTMLElement | null>;
4
+ export default usePositionedElement;
@@ -0,0 +1 @@
1
+ export { default as useSelectedLink } from './use-selected-link';
@@ -0,0 +1,6 @@
1
+ import { BaseEditor } from 'slate';
2
+ declare const useSelectedLink: (editor: BaseEditor) => {
3
+ full: string;
4
+ pretty: string;
5
+ } | null;
6
+ export default useSelectedLink;
@@ -0,0 +1 @@
1
+ export { default as RichTextEditor } from './rich-text-editor';
@@ -0,0 +1 @@
1
+ export * from './with-linlines';
@@ -0,0 +1 @@
1
+ export { default as withInlines } from './with-inlines';
@@ -0,0 +1,5 @@
1
+ import { BaseEditor } from 'slate';
2
+ import { HistoryEditor } from 'slate-history';
3
+ import { ReactEditor } from 'slate-react';
4
+ declare const withInlines: (editor: BaseEditor & ReactEditor & HistoryEditor) => BaseEditor & ReactEditor & HistoryEditor;
5
+ export default withInlines;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ /** The id of the rich text editor */
4
+ id?: string;
5
+ /** The default value of the rich text editor */
6
+ value?: string;
7
+ /** The placeholder text of the rich text editor */
8
+ placeholder?: string;
9
+ /** An optional event handler, called when the rich text editor is changed */
10
+ onChange?: (value: string) => void;
11
+ /** Optional autoFocus */
12
+ autoFocus?: boolean;
13
+ /** Optional aria invalid */
14
+ 'aria-invalid'?: boolean;
15
+ /** Optional aria error message */
16
+ 'aria-errormessage'?: string;
17
+ }
18
+ declare const RichTextEditor: React.ForwardRefExoticComponent<Props & React.RefAttributes<string | null>>;
19
+ export default RichTextEditor;
@@ -0,0 +1,5 @@
1
+ import { Descendant } from 'slate';
2
+ export declare const HOTKEYS: {
3
+ [key: string]: string;
4
+ };
5
+ export declare const deserialize: (node: string, callback?: (v: Descendant[]) => void) => void;
@@ -0,0 +1,24 @@
1
+ import { BaseElement, BaseText, Descendant } from 'slate';
2
+ export interface BaseProps {
3
+ className?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ export type BlockOptionType = 'block_quote' | 'link' | 'list_item' | 'ol_list' | 'ul_list' | 'paragraph' | 'span';
7
+ export interface TypeElement extends BaseElement {
8
+ type: BlockOptionType;
9
+ }
10
+ export type MarkOptionType = 'bold' | 'italic' | 'strikeThrough';
11
+ export interface TypeText extends BaseText {
12
+ bold?: boolean;
13
+ italic?: boolean;
14
+ strikeThrough?: boolean;
15
+ }
16
+ export type OptionTypes = {
17
+ format: BlockOptionType | MarkOptionType;
18
+ hasDivider?: boolean;
19
+ };
20
+ export type LinkElement = {
21
+ type: 'link';
22
+ link: string;
23
+ children: Descendant[];
24
+ };
@@ -3,10 +3,14 @@ import { ButtonPropsType } from './../button';
3
3
  interface Props {
4
4
  /** The props for each button */
5
5
  buttons: ButtonPropsType[];
6
+ /** Optional props for each button's wrapper */
7
+ wrappers?: {
8
+ className?: string;
9
+ }[];
6
10
  /** Additional classes */
7
11
  className?: string;
8
12
  }
9
- declare const ButtonWrapper: ({ buttons, className, ...props }: Props) => React.DetailedReactHTMLElement<{
13
+ declare const ButtonWrapper: ({ buttons, wrappers, className, ...props }: Props) => React.DetailedReactHTMLElement<{
10
14
  children: JSX.Element[];
11
15
  className: string;
12
16
  }, HTMLElement>;
@@ -1,11 +1,35 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
+ /** Optional styling */
4
+ styling?: {
5
+ /** Whether the tooltip has extra padding */
6
+ extraPadding?: boolean;
7
+ /** Whether the tooltip has a pointer */
8
+ hasPointer?: false | 'top' | 'bottom';
9
+ /** Whether the tooltip has a form */
10
+ hasForm?: boolean;
11
+ };
3
12
  /** If the tooltip is open or not */
4
13
  isOpen?: boolean;
5
14
  /** If the content is loading or not */
6
15
  isLoading?: boolean;
7
16
  /** The content to show in the tooltip */
8
17
  children?: React.ReactNode | JSX.Element | string;
18
+ /** Additional classes */
19
+ className?: string;
20
+ /** Optional functions */
21
+ functions?: {
22
+ onBlur?: () => void;
23
+ };
24
+ /** Optional callbacks */
25
+ callbacks?: {
26
+ /** The callback to fire when the tooltip is opened */
27
+ onOpen?: () => void;
28
+ /** The callback to fire when the tooltip is closed */
29
+ onClose?: () => void;
30
+ };
31
+ /** Whether the tooltip is hidden from screen readers or not */
32
+ 'aria-hidden'?: boolean;
9
33
  }
10
- declare const Tooltip: ({ isOpen, isLoading, children }: Props) => import("react/jsx-runtime").JSX.Element;
34
+ declare const Tooltip: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement | null>>;
11
35
  export default Tooltip;
package/helpers/intl.d.ts CHANGED
@@ -219,6 +219,22 @@ export declare const checkIntlPathExists: (path: string, language?: {
219
219
  ratings_low: string;
220
220
  ratings_high: string;
221
221
  ratings_success: string;
222
+ richTextEditor_placeholder: string;
223
+ richTextEditor_toolbar: string;
224
+ richTextEditor_bold: string;
225
+ richTextEditor_italic: string;
226
+ richTextEditor_strikeThrough: string;
227
+ richTextEditor_link: string;
228
+ richTextEditor_link_placeholder: string;
229
+ richTextEditor_link_error_required: string;
230
+ richTextEditor_link_open: string;
231
+ richTextEditor_link_open_text: string;
232
+ richTextEditor_link_edit: string;
233
+ richTextEditor_link_remove: string;
234
+ richTextEditor_link_button: string;
235
+ richTextEditor_ol_list: string;
236
+ richTextEditor_ul_list: string;
237
+ richTextEditor_block_quote: string;
222
238
  search_label: string;
223
239
  search_placeholder: string;
224
240
  search_clear: string;
@@ -1,4 +1,4 @@
1
- export declare const valueIsNotEmpty: (value: string) => boolean;
1
+ export declare const valueIsNotEmpty: (value?: string) => boolean;
2
2
  export declare const passwordValidator: (password: string) => {
3
3
  isValid: boolean;
4
4
  matchingRules: {