@ainias42/react-bootstrap-mobile 0.1.11 → 0.1.13

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 (58) hide show
  1. package/bin/updateCopies.js +1 -1
  2. package/dist/bootstrapReactMobile.js +1005 -914
  3. package/dist/bootstrapReactMobile.js.map +1 -1
  4. package/dist/src/Components/Card/Card.d.ts +2 -1
  5. package/dist/src/Components/Dialog/AlertDialog.d.ts +2 -2
  6. package/dist/src/Components/Dialog/ButtonDialog.d.ts +2 -2
  7. package/dist/src/Components/Dialog/ConfirmDialog.d.ts +2 -2
  8. package/dist/src/Components/Dialog/Dialog.d.ts +2 -1
  9. package/dist/src/Components/Dialog/DialogBackground.d.ts +2 -2
  10. package/dist/src/Components/Dialog/DialogContainer.d.ts +2 -1
  11. package/dist/src/Components/DragAndDrop/DragItem.d.ts +2 -2
  12. package/dist/src/Components/DragAndDrop/DropArea.d.ts +2 -2
  13. package/dist/src/Components/FormElements/Button/Button.d.ts +2 -1
  14. package/dist/src/Components/FormElements/CheckBox/Checkbox.d.ts +2 -1
  15. package/dist/src/Components/FormElements/ColorInput/ColorInput.d.ts +2 -2
  16. package/dist/src/Components/FormElements/ImageInput/ImageInput.d.ts +2 -1
  17. package/dist/src/Components/FormElements/ImageInput/MultipleFileInput.d.ts +2 -1
  18. package/dist/src/Components/FormElements/Input/HiddenInput.d.ts +2 -2
  19. package/dist/src/Components/FormElements/SearchSelectInput/SearchSelectInput.d.ts +2 -1
  20. package/dist/src/Components/FormElements/Select/Select.d.ts +2 -1
  21. package/dist/src/Components/FormElements/Slider/Slider.d.ts +2 -1
  22. package/dist/src/Components/FormElements/Switch/Switch.d.ts +2 -1
  23. package/dist/src/Components/FormElements/Textarea/Textarea.d.ts +2 -1
  24. package/dist/src/Components/Hooks/useOnMount.d.ts +1 -1
  25. package/dist/src/Components/Icon/Icon.d.ts +4 -3
  26. package/dist/src/Components/Image/Image.d.ts +1 -1
  27. package/dist/src/Components/InViewport/InViewport.d.ts +2 -2
  28. package/dist/src/Components/Layout/Container.d.ts +2 -1
  29. package/dist/src/Components/Layout/Grid/Grid.d.ts +2 -2
  30. package/dist/src/Components/Layout/Grid/GridItem.d.ts +2 -2
  31. package/dist/src/Components/Layout/Grow.d.ts +2 -2
  32. package/dist/src/Components/List/BulletList/BulletList.d.ts +2 -2
  33. package/dist/src/Components/List/BulletList/ListItem.d.ts +2 -2
  34. package/dist/src/Components/List/List.d.ts +2 -1
  35. package/dist/src/Components/LoadingArea/LoadingArea.d.ts +2 -2
  36. package/dist/src/Components/LoadingCircle/LoadingCircle.d.ts +2 -2
  37. package/dist/src/Components/Menu/Menu.d.ts +2 -1
  38. package/dist/src/Components/SizeCalculator/SizeCalculator.d.ts +2 -2
  39. package/dist/src/Components/SpoilerList/Spoiler/Spoiler.d.ts +5 -4
  40. package/dist/src/Components/SpoilerList/SpoilerList.d.ts +2 -1
  41. package/dist/src/Components/TabBar/TabBar.d.ts +2 -1
  42. package/dist/src/Components/TabBar/TabBarButton.d.ts +2 -2
  43. package/dist/src/Components/Table/Table.d.ts +1 -1
  44. package/dist/src/Components/Text/Heading.d.ts +2 -2
  45. package/dist/src/Components/Text/Text.d.ts +2 -2
  46. package/dist/src/Components/Toast/Toast.d.ts +2 -2
  47. package/dist/src/Components/Toast/ToastContainer.d.ts +2 -2
  48. package/dist/src/Components/TopBar/MoreButton.d.ts +2 -2
  49. package/dist/src/Components/TopBar/TopBar.d.ts +2 -1
  50. package/dist/src/Components/TopBar/TopBarButton.d.ts +2 -2
  51. package/package.json +2 -2
  52. package/src/Components/FormElements/Input/PasswordInput/passwordInput.scss +1 -0
  53. package/src/Components/FormElements/Input/input.scss +5 -0
  54. package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx +13 -7
  55. package/src/Components/Hooks/useOnMount.ts +20 -2
  56. package/src/Components/Icon/Icon.tsx +2 -1
  57. package/src/Components/List/List.tsx +1 -1
  58. package/src/Components/SpoilerList/Spoiler/Spoiler.tsx +3 -3
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../RbmComponentProps';
2
3
  import { ReactElement } from 'react';
3
4
  export type CardProps = RbmComponentProps<{
@@ -8,6 +9,6 @@ export type CardProps = RbmComponentProps<{
8
9
  noPadding?: boolean;
9
10
  noMargin?: boolean;
10
11
  }>;
11
- declare function Card({ title, children, fullHeight, noPaddingHeight, noPadding, noPaddingWidth, noMargin, className, ...rbmProps }: CardProps): JSX.Element;
12
+ declare function Card({ title, children, fullHeight, noPaddingHeight, noPadding, noPaddingWidth, noMargin, className, ...rbmProps }: CardProps): React.JSX.Element;
12
13
  declare const CardMemo: typeof Card;
13
14
  export { CardMemo as Card };
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export type AlertDialogProps = {
3
3
  title?: string;
4
4
  message: string;
5
5
  close: () => void;
6
6
  confirmText?: string;
7
7
  };
8
- declare function AlertDialog({ title, message, close, confirmText }: AlertDialogProps): JSX.Element;
8
+ declare function AlertDialog({ title, message, close, confirmText }: AlertDialogProps): React.JSX.Element;
9
9
  declare const AlertDialogMemo: typeof AlertDialog;
10
10
  export { AlertDialogMemo as AlertDialog };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
3
3
  export type ButtonDialogProps = RbmComponentProps<{
4
4
  title?: string;
@@ -8,6 +8,6 @@ export type ButtonDialogProps = RbmComponentProps<{
8
8
  callback: () => void;
9
9
  }[];
10
10
  }, WithNoChildren>;
11
- declare function ButtonDialog({ title, message, buttons, style, className }: ButtonDialogProps): JSX.Element;
11
+ declare function ButtonDialog({ title, message, buttons, style, className }: ButtonDialogProps): React.JSX.Element;
12
12
  declare const ButtonDialogMemo: typeof ButtonDialog;
13
13
  export { ButtonDialogMemo as ButtonDialog };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export type ConfirmDialogProps = {
3
3
  title?: string;
4
4
  message: string;
@@ -6,6 +6,6 @@ export type ConfirmDialogProps = {
6
6
  cancelText?: string;
7
7
  confirmText?: string;
8
8
  };
9
- declare function ConfirmDialog({ title, message, close, cancelText, confirmText }: ConfirmDialogProps): JSX.Element;
9
+ declare function ConfirmDialog({ title, message, close, cancelText, confirmText }: ConfirmDialogProps): React.JSX.Element;
10
10
  declare const ConfirmDialogMemo: typeof ConfirmDialog;
11
11
  export { ConfirmDialogMemo as ConfirmDialog };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../RbmComponentProps';
2
3
  import { ReactElement } from 'react';
3
4
  export type DialogProps<ReturnData> = RbmComponentProps<{
@@ -9,6 +10,6 @@ export type DialogProps<ReturnData> = RbmComponentProps<{
9
10
  close?: (data?: ReturnData) => void;
10
11
  }> | string | number;
11
12
  }>;
12
- declare function Dialog<ReturnData>({ style, children, className, closable, onClose, identifier, }: DialogProps<ReturnData>): JSX.Element | null;
13
+ declare function Dialog<ReturnData>({ style, children, className, closable, onClose, identifier, }: DialogProps<ReturnData>): React.JSX.Element | null;
13
14
  declare const DialogMemo: typeof Dialog;
14
15
  export { DialogMemo as Dialog };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  import { EmptyProps } from '../../helper/EmptyProps';
4
4
  export type DialogBackgroundProps = RbmComponentProps<EmptyProps>;
5
- declare function DialogBackground({ children, className, style }: DialogBackgroundProps): JSX.Element;
5
+ declare function DialogBackground({ children, className, style }: DialogBackgroundProps): React.JSX.Element;
6
6
  declare const DialogBackgroundMemo: typeof DialogBackground;
7
7
  export { DialogBackgroundMemo as DialogBackground };
@@ -1,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import { PropsWithChildren } from 'react';
2
3
  import { EmptyProps } from '../../helper/EmptyProps';
3
4
  export type DialogContainerProps = PropsWithChildren<EmptyProps>;
4
- declare function DialogContainer({ children }: DialogContainerProps): JSX.Element;
5
+ declare function DialogContainer({ children }: DialogContainerProps): React.JSX.Element;
5
6
  declare const DialogContainerMemo: typeof DialogContainer;
6
7
  export { DialogContainerMemo as DialogContainer };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
3
3
  import { DraggableProps } from 'react-beautiful-dnd';
4
4
  export type DragItemProps = RbmComponentProps<Omit<DraggableProps, 'children'>, WithNoStringAndChildrenProps>;
5
- declare function DragItem({ children, ...dragProps }: DragItemProps): JSX.Element;
5
+ declare function DragItem({ children, ...dragProps }: DragItemProps): React.JSX.Element;
6
6
  declare const DragItemMemo: typeof DragItem;
7
7
  export { DragItemMemo as DragItem };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
3
3
  import { DroppableProps } from 'react-beautiful-dnd';
4
4
  export type DropAreaProps = RbmComponentProps<Omit<DroppableProps, 'children'>, WithNoStringAndChildrenProps>;
5
- declare function DropArea({ children, style, className, ...dropProps }: DropAreaProps): JSX.Element | null;
5
+ declare function DropArea({ children, style, className, ...dropProps }: DropAreaProps): React.JSX.Element | null;
6
6
  declare const DropAreaMemo: typeof DropArea;
7
7
  export { DropAreaMemo as DropArea };
@@ -1,8 +1,9 @@
1
+ import * as React from 'react';
1
2
  import { Override } from '@ainias42/js-helper';
2
3
  import { OptionalListener } from '../../Hooks/useListener';
3
4
  import { HTMLAttributes } from 'react';
4
5
  import { RbmComponentProps } from '../../RbmComponentProps';
5
6
  export type ButtonProps<ClickData> = RbmComponentProps<Override<HTMLAttributes<HTMLButtonElement>, OptionalListener<'onClick', ClickData>>>;
6
- declare function Button<ClickData>({ children, className, ...props }: ButtonProps<ClickData>): JSX.Element;
7
+ declare function Button<ClickData>({ children, className, ...props }: ButtonProps<ClickData>): React.JSX.Element;
7
8
  declare const ButtonMemo: typeof Button;
8
9
  export { ButtonMemo as Button };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { InputHTMLAttributes } from 'react';
3
4
  import { Override } from '@ainias42/js-helper';
@@ -7,6 +8,6 @@ export type CheckboxProps<OnChangeData, OnChangeCheckedData> = RbmComponentProps
7
8
  children?: string;
8
9
  isLabelBeforeCheckbox?: boolean;
9
10
  } & OptionalListener<'onChange', OnChangeData> & OptionalListener<'onChangeChecked', OnChangeCheckedData, boolean>>>;
10
- declare function Checkbox<OnChangeData, OnChangeCheckedData>({ children, label, isLabelBeforeCheckbox, id, className, style, ...props }: CheckboxProps<OnChangeData, OnChangeCheckedData>): JSX.Element;
11
+ declare function Checkbox<OnChangeData, OnChangeCheckedData>({ children, label, isLabelBeforeCheckbox, id, className, style, ...props }: CheckboxProps<OnChangeData, OnChangeCheckedData>): React.JSX.Element;
11
12
  declare const tmp: typeof Checkbox;
12
13
  export { tmp as Checkbox };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { OptionalListener } from '../../Hooks/useListener';
3
3
  export type ColorInputProps<OnChangeData> = {
4
4
  defaultValue?: string;
@@ -12,6 +12,6 @@ export type ColorInputProps<OnChangeData> = {
12
12
  presetColors?: string[];
13
13
  sharedColorKey?: string;
14
14
  } & OptionalListener<'onChange', OnChangeData>;
15
- declare function ColorInput<OnChangeData>({ defaultValue, value, label, onChangeColor, onChangeColorComplete, onOpen, onClose, disableAlpha, presetColors, sharedColorKey, ...otherProps }: ColorInputProps<OnChangeData>): JSX.Element;
15
+ declare function ColorInput<OnChangeData>({ defaultValue, value, label, onChangeColor, onChangeColorComplete, onOpen, onClose, disableAlpha, presetColors, sharedColorKey, ...otherProps }: ColorInputProps<OnChangeData>): React.JSX.Element;
16
16
  declare const ColorInputMemo: typeof ColorInput;
17
17
  export { ColorInputMemo as ColorInput };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { Override } from '../../../TypeHelpers';
3
4
  import { InputHTMLAttributes } from 'react';
@@ -12,6 +13,6 @@ export type ImageInputProps<OnChangeData> = RbmComponentProps<Override<InputHTML
12
13
  label?: string;
13
14
  onChangeImage?: (image: ImageType, imageData: File) => void;
14
15
  } & OptionalListener<'onChange', OnChangeData>>>;
15
- declare function ImageInput<OnChangeData>({ className, style, value, defaultValue, onChangeImage, label, ...otherProps }: ImageInputProps<OnChangeData>): JSX.Element;
16
+ declare function ImageInput<OnChangeData>({ className, style, value, defaultValue, onChangeImage, label, ...otherProps }: ImageInputProps<OnChangeData>): React.JSX.Element;
16
17
  declare const ImageInputMemo: typeof ImageInput;
17
18
  export { ImageInputMemo as ImageInput };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { Override } from '../../../TypeHelpers';
3
4
  import { InputHTMLAttributes } from 'react';
@@ -17,4 +18,4 @@ export type MultipleImageInputProps<OnChangeFilesData> = RbmComponentProps<Overr
17
18
  maxSizePerFile?: number;
18
19
  onError?: (error: string) => void;
19
20
  } & Listener<'onChangeFiles', OnChangeFilesData, FileType[]>>>;
20
- export declare const MultipleFileInput: <OnChangeData>({ className, style, value, label, mimeTypes, maxFiles, maxSizePerFile, onError, ...otherProps }: MultipleImageInputProps<OnChangeData>) => JSX.Element;
21
+ export declare const MultipleFileInput: <OnChangeData>({ className, style, value, label, mimeTypes, maxFiles, maxSizePerFile, onError, ...otherProps }: MultipleImageInputProps<OnChangeData>) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { InputProps } from './Input';
3
3
  export type HiddenInputProps<OnChangeType, OnBlurData, OnChangeEndData> = InputProps<OnChangeType, OnBlurData, OnChangeEndData> & {
4
4
  noFocusHint?: boolean;
5
5
  };
6
- declare function HiddenInput<OnChangeData, OnBlurData, OnChangeEndData>({ noFocusHint, className, ...props }: HiddenInputProps<OnChangeData, OnBlurData, OnChangeEndData>): JSX.Element;
6
+ declare function HiddenInput<OnChangeData, OnBlurData, OnChangeEndData>({ noFocusHint, className, ...props }: HiddenInputProps<OnChangeData, OnBlurData, OnChangeEndData>): React.JSX.Element;
7
7
  declare const tmp: typeof HiddenInput;
8
8
  export { tmp as HiddenInput };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { OptionalListener } from '../../Hooks/useListener';
2
3
  import { SelectOption } from '../Select/Select';
3
4
  import { RbmComponentProps } from '../../RbmComponentProps';
@@ -7,4 +8,4 @@ export type SearchSelectInputProps<OnChangeData> = RbmComponentProps<{
7
8
  onChangeValue?: (newValues: string[]) => void;
8
9
  values: string[];
9
10
  } & OptionalListener<'onChange', OnChangeData>>;
10
- export declare const SearchSelectInput: <OnChangeData>({ label, options, values, onChangeValue, className, style, }: SearchSelectInputProps<OnChangeData>) => JSX.Element;
11
+ export declare const SearchSelectInput: <OnChangeData>({ label, options, values, onChangeValue, className, style, }: SearchSelectInputProps<OnChangeData>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { Override } from '../../../TypeHelpers';
3
4
  import { SelectHTMLAttributes } from 'react';
@@ -13,4 +14,4 @@ export type SelectProps<OnChangeData> = RbmComponentProps<Override<SelectHTMLAtt
13
14
  onChangeValue?: (newValue: string) => void;
14
15
  inline?: boolean;
15
16
  } & OptionalListener<'onChange', OnChangeData>>>;
16
- export declare const Select: <OnChangeData>({ label, options, className, style, onChangeValue, inline, ...otherProps }: SelectProps<OnChangeData>) => JSX.Element;
17
+ export declare const Select: <OnChangeData>({ label, options, className, style, onChangeValue, inline, ...otherProps }: SelectProps<OnChangeData>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { InputHTMLAttributes } from 'react';
3
4
  import { Override } from '../../../TypeHelpers';
@@ -5,4 +6,4 @@ import { OptionalListener } from '../../Hooks/useListener';
5
6
  export type SliderProps<OnChangeData, OnChangeValueData, OnChangeDoneData> = RbmComponentProps<Override<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>, {
6
7
  value?: number;
7
8
  } & OptionalListener<'onChange', OnChangeData> & OptionalListener<'onChangeValue', OnChangeValueData, number> & OptionalListener<'onChangeDone', OnChangeDoneData>>>;
8
- export declare const Slider: <OnChangeData, OnChangeValueData, OnChangeDoneData>({ className, style, ...props }: SliderProps<OnChangeData, OnChangeValueData, OnChangeDoneData>) => JSX.Element;
9
+ export declare const Slider: <OnChangeData, OnChangeValueData, OnChangeDoneData>({ className, style, ...props }: SliderProps<OnChangeData, OnChangeValueData, OnChangeDoneData>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { InputHTMLAttributes } from 'react';
2
3
  import { RbmComponentProps } from '../../RbmComponentProps';
3
4
  import { Override } from '../../../TypeHelpers';
@@ -9,4 +10,4 @@ export type SwitchProps = RbmComponentProps<Override<InputHTMLAttributes<HTMLInp
9
10
  isDual?: boolean;
10
11
  onChangeChecked?(isChecked: boolean): void;
11
12
  }>>;
12
- export declare const Switch: ({ children, label, preLabel, isLabelBeforeSwitch, isDual, id, className, style, onChange, onChangeChecked, ...props }: SwitchProps) => JSX.Element;
13
+ export declare const Switch: ({ children, label, preLabel, isLabelBeforeSwitch, isDual, id, className, style, onChange, onChangeChecked, ...props }: SwitchProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { Override } from '../../../TypeHelpers';
3
4
  import { TextareaHTMLAttributes } from 'react';
@@ -7,6 +8,6 @@ export type TextareaProps<OnChangeData> = RbmComponentProps<Override<TextareaHTM
7
8
  onChangeText?: (newText: string) => void;
8
9
  onEnter?: (newText: string) => void;
9
10
  } & OptionalListener<'onChange', OnChangeData>>>;
10
- declare function Textarea<OnChangeData>({ label, className, style, onKeyUp, onChangeText, onEnter, ...otherProps }: TextareaProps<OnChangeData>): JSX.Element;
11
+ declare function Textarea<OnChangeData>({ label, className, style, onKeyUp, onChangeText, onEnter, ...otherProps }: TextareaProps<OnChangeData>): React.JSX.Element;
11
12
  declare const TextareaMemo: typeof Textarea;
12
13
  export { TextareaMemo as Textarea };
@@ -1 +1 @@
1
- export declare function useOnMount(cb: () => void | Promise<void>): void;
1
+ export declare function useOnMount(cb: () => void | Promise<void> | (() => any)): void;
@@ -1,13 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
2
+ import * as React from 'react';
3
3
  import { RbmComponentProps } from '../RbmComponentProps';
4
4
  import { Override } from '../../TypeHelpers';
5
5
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
6
- export type IconSource = IconProp | string;
6
+ import { IconDefinition } from '@fortawesome/free-regular-svg-icons';
7
+ export type IconSource = IconProp | string | IconDefinition;
7
8
  export type IconProps = RbmComponentProps<Override<FontAwesomeIconProps, {
8
9
  icon: IconSource;
9
10
  alt?: string;
10
11
  }>>;
11
- declare function Icon({ icon, alt, className, style, title, ...props }: IconProps): JSX.Element;
12
+ declare function Icon({ icon, alt, className, style, title, ...props }: IconProps): React.JSX.Element;
12
13
  declare const IconMemo: typeof Icon;
13
14
  export { IconMemo as Icon };
@@ -7,6 +7,6 @@ export type ImageProps = RbmComponentProps<Override<Omit<React.ComponentPropsWit
7
7
  style?: CSSProperties;
8
8
  alt?: string;
9
9
  }>, WithNoChildren>;
10
- declare function Image({ src, alt, className, style, ...otherProps }: ImageProps): JSX.Element;
10
+ declare function Image({ src, alt, className, style, ...otherProps }: ImageProps): React.JSX.Element;
11
11
  declare const ImageMemo: typeof Image;
12
12
  export { ImageMemo as Image };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  export type InViewportProps = RbmComponentProps<{
4
4
  threshold?: number;
@@ -6,6 +6,6 @@ export type InViewportProps = RbmComponentProps<{
6
6
  root?: HTMLElement;
7
7
  rootMargin?: string;
8
8
  }>;
9
- declare function InViewport({ threshold, root, rootMargin, onInViewportChange, className, style, children, }: InViewportProps): JSX.Element;
9
+ declare function InViewport({ threshold, root, rootMargin, onInViewportChange, className, style, children, }: InViewportProps): React.JSX.Element;
10
10
  declare const InViewportMemo: typeof InViewport;
11
11
  export { InViewportMemo as InViewport };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../RbmComponentProps';
2
3
  export declare const CONTAINER_CLASSES: {
3
4
  sm: string;
@@ -9,4 +10,4 @@ export declare const CONTAINER_CLASSES: {
9
10
  export type ContainerProps = RbmComponentProps<{
10
11
  fluid?: boolean | keyof typeof CONTAINER_CLASSES;
11
12
  }>;
12
- export declare const Container: ({ fluid, className, children, style }: ContainerProps) => JSX.Element;
13
+ export declare const Container: ({ fluid, className, children, style }: ContainerProps) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../../RbmComponentProps';
3
3
  export type GridProps = RbmComponentProps<{
4
4
  columns?: number;
5
5
  rows?: number;
6
6
  }>;
7
- declare function Grid({ style, children, columns, rows, className, __allowChildren }: GridProps): JSX.Element;
7
+ declare function Grid({ style, children, columns, rows, className, __allowChildren }: GridProps): React.JSX.Element;
8
8
  declare const GridMemo: typeof Grid;
9
9
  export { GridMemo as Grid };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../../RbmComponentProps';
3
3
  export type GridItemProps = RbmComponentProps<{
4
4
  size: number;
@@ -23,6 +23,6 @@ export type GridItemProps = RbmComponentProps<{
23
23
  orderXxl?: number;
24
24
  orderPrint?: number;
25
25
  }>;
26
- declare function GridItem({ style, children, className, __allowChildren, size, sm, md, lg, xl, xxl, print, startXs, startMd, startSm, startLg, startXl, startXxl, startPrint, orderXs, orderSm, orderMd, orderLg, orderXxl, orderXl, orderPrint, }: GridItemProps): JSX.Element;
26
+ declare function GridItem({ style, children, className, __allowChildren, size, sm, md, lg, xl, xxl, print, startXs, startMd, startSm, startLg, startXl, startXxl, startPrint, orderXs, orderSm, orderMd, orderLg, orderXxl, orderXl, orderPrint, }: GridItemProps): React.JSX.Element;
27
27
  declare const GridItemMemo: typeof GridItem;
28
28
  export { GridItemMemo as GridItem };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  export type GrowProps = RbmComponentProps<{
4
4
  center?: boolean;
5
5
  weight?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
6
6
  }>;
7
- declare function Grow({ className, children, center, style, weight }: GrowProps): JSX.Element;
7
+ declare function Grow({ className, children, center, style, weight }: GrowProps): React.JSX.Element;
8
8
  declare const tmp: typeof Grow;
9
9
  export { tmp as Grow };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../../RbmComponentProps';
3
3
  export type BulletListProps = RbmComponentProps<{
4
4
  numbered?: boolean;
5
5
  }>;
6
- declare function BulletList({ numbered, className, children, style }: BulletListProps): JSX.Element;
6
+ declare function BulletList({ numbered, className, children, style }: BulletListProps): React.JSX.Element;
7
7
  declare const BulletListMemo: typeof BulletList;
8
8
  export { BulletListMemo as BulletList };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../../RbmComponentProps';
3
3
  import { EmptyProps } from '../../../helper/EmptyProps';
4
4
  export type ListItemProps = RbmComponentProps<EmptyProps>;
5
- declare function ListItem({ className, children, style }: ListItemProps): JSX.Element;
5
+ declare function ListItem({ className, children, style }: ListItemProps): React.JSX.Element;
6
6
  declare const ListItemMemo: typeof ListItem;
7
7
  export { ListItemMemo as ListItem };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { CSSProperties, ReactElement, ReactNode } from 'react';
2
3
  import { RbmComponentProps } from '../RbmComponentProps';
3
4
  export type ListProps<ItemType> = RbmComponentProps<{
@@ -7,4 +8,4 @@ export type ListProps<ItemType> = RbmComponentProps<{
7
8
  renderBefore?: (item: ItemType, index: number) => ReactNode;
8
9
  keyExtractor?: (item: ItemType, index: number) => string;
9
10
  }>;
10
- export declare const List: <ItemType>({ items, renderItem, itemHeight: initialItemHeight, className, style, }: ListProps<ItemType>) => JSX.Element;
11
+ export declare const List: <ItemType>({ items, renderItem, itemHeight: initialItemHeight, className, style, }: ListProps<ItemType>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  export type LoadingAreaProps = RbmComponentProps<{
4
4
  opacity?: number;
@@ -7,6 +7,6 @@ export type LoadingAreaProps = RbmComponentProps<{
7
7
  fullHeight?: boolean;
8
8
  fullSize?: boolean;
9
9
  }>;
10
- declare function LoadingArea({ loading, fullWidth, fullSize, fullHeight, opacity, className, style, children, }: LoadingAreaProps): JSX.Element;
10
+ declare function LoadingArea({ loading, fullWidth, fullSize, fullHeight, opacity, className, style, children, }: LoadingAreaProps): React.JSX.Element;
11
11
  declare const LoadingAreaMemo: typeof LoadingArea;
12
12
  export { LoadingAreaMemo as LoadingArea };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  export type LoadingCircleProps = RbmComponentProps<{
4
4
  size?: number;
5
5
  }>;
6
- declare function LoadingCircle({ size, className, style }: LoadingCircleProps): JSX.Element;
6
+ declare function LoadingCircle({ size, className, style }: LoadingCircleProps): React.JSX.Element;
7
7
  declare const LoadingCircleMemo: typeof LoadingCircle;
8
8
  export { LoadingCircleMemo as LoadingCircle };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
2
3
  import { IconSource } from '../Icon/Icon';
3
4
  export type MenuItem = {
@@ -13,4 +14,4 @@ export type MenuProps = RbmComponentProps<{
13
14
  isOpen: boolean;
14
15
  onClose: () => void;
15
16
  }, WithNoChildren>;
16
- export declare const Menu: ({ className, style, items, y, x, isOpen, onClose }: MenuProps) => JSX.Element | null;
17
+ export declare const Menu: ({ className, style, items, y, x, isOpen, onClose }: MenuProps) => React.JSX.Element | null;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { WithNoStringAndChildrenProps } from '../RbmComponentProps';
3
3
  export type SizeCalculatorProps = {
4
4
  onSize: (width: number, height: number) => void;
5
5
  absolute?: boolean;
6
6
  } & WithNoStringAndChildrenProps;
7
- declare function SizeCalculator({ onSize, children, absolute }: SizeCalculatorProps): JSX.Element;
7
+ declare function SizeCalculator({ onSize, children, absolute }: SizeCalculatorProps): React.JSX.Element;
8
8
  declare const SizeCalculatorMemo: typeof SizeCalculator;
9
9
  export { SizeCalculatorMemo as SizeCalculator };
@@ -1,15 +1,16 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../../RbmComponentProps';
2
3
  import { ReactChild } from 'react';
3
4
  import { OptionalListener } from '../../Hooks/useListener';
4
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
5
+ import { IconSource } from '../../Icon/Icon';
5
6
  export type SpoilerProps<OnClickData> = RbmComponentProps<{
6
7
  title: ReactChild;
7
8
  initialOpen?: boolean;
8
9
  open?: boolean;
9
10
  noClosingAnimation?: boolean;
10
- openIcon?: IconProp | null;
11
- closeIcon?: IconProp | null;
11
+ openIcon?: IconSource | null;
12
+ closeIcon?: IconSource | null;
12
13
  } & OptionalListener<'onClick', OnClickData>>;
13
- declare function Spoiler<OnClickData>({ title, children, initialOpen, noClosingAnimation, openIcon, closeIcon, className, style, open, ...listenerProps }: SpoilerProps<OnClickData>): JSX.Element;
14
+ declare function Spoiler<OnClickData>({ title, children, initialOpen, noClosingAnimation, openIcon, closeIcon, className, style, open, ...listenerProps }: SpoilerProps<OnClickData>): React.JSX.Element;
14
15
  declare const SpoilerMemo: typeof Spoiler;
15
16
  export { SpoilerMemo as Spoiler };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { ReactElement } from 'react';
2
3
  import { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
3
4
  export type SpoilerItem<BodyData, TitleData = string> = {
@@ -10,6 +11,6 @@ export type SpoilerListProps<BodyData, TitleData = string> = RbmComponentProps<{
10
11
  renderBody: (item: SpoilerItem<BodyData, TitleData>) => ReactElement;
11
12
  renderTitle?: (item: SpoilerItem<BodyData, TitleData>) => ReactElement | string;
12
13
  }, WithNoChildren>;
13
- declare function SpoilerList<BodyData, TitleData = string>({ data, renderBody, renderTitle, className, style, }: SpoilerListProps<BodyData, TitleData>): JSX.Element;
14
+ declare function SpoilerList<BodyData, TitleData = string>({ data, renderBody, renderTitle, className, style, }: SpoilerListProps<BodyData, TitleData>): React.JSX.Element;
14
15
  declare const SpoilerListMemo: typeof SpoilerList;
15
16
  export { SpoilerListMemo as SpoilerList };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { RbmComponentProps } from '../RbmComponentProps';
2
3
  import { IconSource } from '../Icon/Icon';
3
4
  import { ComponentType } from 'react';
@@ -25,6 +26,6 @@ export type TabBarProps = RbmComponentProps<{
25
26
  drawBehind?: boolean;
26
27
  underline?: boolean;
27
28
  }>;
28
- declare function TabBar({ buttons, startActiveTab, onTabChange, activeTab, transparent, underline, className, ...rbmProps }: TabBarProps): JSX.Element;
29
+ declare function TabBar({ buttons, startActiveTab, onTabChange, activeTab, transparent, underline, className, ...rbmProps }: TabBarProps): React.JSX.Element;
29
30
  declare const TabBarMemo: typeof TabBar;
30
31
  export { TabBarMemo as TabBar };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  import { Listener } from '../Hooks/useListener';
4
4
  export type TabBarButtonProps = RbmComponentProps<{
5
5
  active: boolean;
6
6
  } & Listener<'onClick', number>>;
7
- declare function TabBarButton({ active, className, children, ...rbmProps }: TabBarButtonProps): JSX.Element;
7
+ declare function TabBarButton({ active, className, children, ...rbmProps }: TabBarButtonProps): React.JSX.Element;
8
8
  declare const TabBarButtonMemo: typeof TabBarButton;
9
9
  export { TabBarButtonMemo as TabBarButton };
@@ -31,6 +31,6 @@ export type TableProps<DataType extends string | number | Record<string, unknown
31
31
  getCellProperties?: (row: Cell<Record<string, DataType>>) => React.TdHTMLAttributes<HTMLTableDataCellElement>;
32
32
  getRowProperties?: (row: Row<Record<string, DataType>>) => React.HTMLAttributes<HTMLTableRowElement>;
33
33
  }>;
34
- declare function Table<DataType extends string | number | Record<string, unknown>>({ columns, data, cellRenderer, sortOptions, className, style, getCellProperties, getRowProperties, }: TableProps<DataType>): JSX.Element;
34
+ declare function Table<DataType extends string | number | Record<string, unknown>>({ columns, data, cellRenderer, sortOptions, className, style, getCellProperties, getRowProperties, }: TableProps<DataType>): React.JSX.Element;
35
35
  declare const tmp: typeof Table;
36
36
  export { tmp as Table };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps, WithStringProps } from '../RbmComponentProps';
3
3
  import { EmptyProps } from '../../helper/EmptyProps';
4
4
  export type HeadingProps = RbmComponentProps<EmptyProps, WithStringProps>;
5
- declare function Heading({ children, className, style }: HeadingProps): JSX.Element;
5
+ declare function Heading({ children, className, style }: HeadingProps): React.JSX.Element;
6
6
  declare const HeadingMemo: typeof Heading;
7
7
  export { HeadingMemo as Heading };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { Recursive, ValueOf } from '../../TypeHelpers';
3
3
  import { ViewProps } from '../Layout/View';
4
4
  export declare const TEXT_PRIO: {
@@ -21,6 +21,6 @@ export type TextProps<AsType extends keyof JSX.IntrinsicElements> = {
21
21
  className?: string;
22
22
  children: Recursive<string | undefined | null | number>;
23
23
  } & ViewProps<AsType>;
24
- declare function Text<AsType extends keyof JSX.IntrinsicElements = 'span'>({ className, children, block, prio, size, as, ...props }: TextProps<AsType>): JSX.Element;
24
+ declare function Text<AsType extends keyof JSX.IntrinsicElements = 'span'>({ className, children, block, prio, size, as, ...props }: TextProps<AsType>): React.JSX.Element;
25
25
  declare const tmp: typeof Text;
26
26
  export { tmp as Text };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
3
3
  import { Listener, OptionalListener } from '../Hooks/useListener';
4
4
  type WithoutActionProps<DismissedData> = {
@@ -8,6 +8,6 @@ type WithActionProps<ActionData, DismissedData> = WithoutActionProps<DismissedDa
8
8
  actionName: string;
9
9
  } & Listener<'onClick', ActionData>;
10
10
  export type ToastProps<ActionData, DismissedData> = RbmComponentProps<WithActionProps<ActionData, DismissedData> | WithoutActionProps<DismissedData>, WithNoStringAndChildrenProps>;
11
- declare function Toast<ActionData, DismissedData>({ className, timeToShow, children, style, ...otherProps }: ToastProps<ActionData, DismissedData>): JSX.Element | null;
11
+ declare function Toast<ActionData, DismissedData>({ className, timeToShow, children, style, ...otherProps }: ToastProps<ActionData, DismissedData>): React.JSX.Element | null;
12
12
  declare const ToastMemo: typeof Toast;
13
13
  export { ToastMemo as Toast };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  import { EmptyProps } from '../../helper/EmptyProps';
4
4
  export type ToastContainerProps = RbmComponentProps<EmptyProps>;
5
- declare function ToastContainer({ className, children, style }: ToastContainerProps): JSX.Element;
5
+ declare function ToastContainer({ className, children, style }: ToastContainerProps): React.JSX.Element;
6
6
  declare const ToastContainerMemo: typeof ToastContainer;
7
7
  export { ToastContainerMemo as ToastContainer };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { RbmComponentProps } from '../RbmComponentProps';
3
3
  export type MoreButtonProps = RbmComponentProps<{
4
4
  disabled?: boolean;
5
5
  onClick?: () => void;
6
6
  }>;
7
- declare function MoreButton({ onClick, disabled, className, style }: MoreButtonProps): JSX.Element;
7
+ declare function MoreButton({ onClick, disabled, className, style }: MoreButtonProps): React.JSX.Element;
8
8
  declare const MoreButtonMemo: typeof MoreButton;
9
9
  export { MoreButtonMemo as MoreButton };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { ComponentType } from 'react';
2
3
  import { RbmComponentProps } from '../RbmComponentProps';
3
4
  import { IconSource } from '../Icon/Icon';
@@ -20,6 +21,6 @@ export type TopBarProps = RbmComponentProps<{
20
21
  transparent?: boolean;
21
22
  drawBehind?: boolean;
22
23
  }>;
23
- declare function TopBar({ title, rightButtons, leftButtons, hiddenButtons, className, transparent, drawBehind, ...rbmProps }: TopBarProps): JSX.Element;
24
+ declare function TopBar({ title, rightButtons, leftButtons, hiddenButtons, className, transparent, drawBehind, ...rbmProps }: TopBarProps): React.JSX.Element;
24
25
  declare const TopBarMemo: typeof TopBar;
25
26
  export { TopBarMemo as TopBar };