@ainias42/react-bootstrap-mobile 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Components/ActionSheet/ActionSheet.d.ts +2 -2
- package/dist/Components/ActionSheet/ActionSheet.stories.d.ts +3 -3
- package/dist/Components/Card/Card.d.ts +1 -1
- package/dist/Components/Card/Card.stories.d.ts +2 -2
- package/dist/Components/Clickable/Clickable.d.ts +2 -2
- package/dist/Components/Dialog/AlertDialog.stories.d.ts +1 -1
- package/dist/Components/Dialog/ButtonDialog.d.ts +2 -2
- package/dist/Components/Dialog/ConfirmDialog.stories.d.ts +2 -2
- package/dist/Components/Dialog/Dialog.d.ts +1 -1
- package/dist/Components/Dialog/DialogBackground.d.ts +1 -1
- package/dist/Components/Dialog/DialogContainer.d.ts +1 -1
- package/dist/Components/Dialog/DialogContext.d.ts +1 -1
- package/dist/Components/DragAndDrop/DragItem.d.ts +1 -1
- package/dist/Components/DragAndDrop/DropArea.d.ts +1 -1
- package/dist/Components/FormElements/Button/Button.d.ts +5 -5
- package/dist/Components/FormElements/Button/Button.stories.d.ts +4 -4
- package/dist/Components/FormElements/CheckBox/Checkbox.d.ts +2 -2
- package/dist/Components/FormElements/CheckBox/Checkbox.stories.d.ts +1 -1
- package/dist/Components/FormElements/ColorInput/ColorInput.d.ts +1 -1
- package/dist/Components/FormElements/ColorInput/ColorInput.stories.d.ts +1 -1
- package/dist/Components/FormElements/Controller/ColorInputController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/FileInputController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/InputController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/MultipleFileInputController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/PasswordInputController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/SelectController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/SliderController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/SwitchController.d.ts +1 -1
- package/dist/Components/FormElements/Controller/TextareaController.d.ts +1 -1
- package/dist/Components/FormElements/Error/FormError.stories.d.ts +1 -1
- package/dist/Components/FormElements/Form.stories.d.ts +1 -1
- package/dist/Components/FormElements/Input/FileInput/FileInput.d.ts +5 -5
- package/dist/Components/FormElements/Input/FileInput/MultipleFileInput.d.ts +4 -4
- package/dist/Components/FormElements/Input/HiddenInput.d.ts +1 -1
- package/dist/Components/FormElements/Input/HiddenInput.stories.d.ts +1 -1
- package/dist/Components/FormElements/Input/Input.d.ts +3 -3
- package/dist/Components/FormElements/Input/Input.stories.d.ts +1 -1
- package/dist/Components/FormElements/Input/PasswordInput/PasswordInput.d.ts +2 -2
- package/dist/Components/FormElements/Input/PasswordInput/PasswordInput.stories.d.ts +1 -1
- package/dist/Components/FormElements/SearchSelectInput/SearchSelectInput.d.ts +3 -3
- package/dist/Components/FormElements/SearchSelectInput/SearchSelectInput.stories.d.ts +1 -1
- package/dist/Components/FormElements/Select/Select.d.ts +3 -3
- package/dist/Components/FormElements/Select/Select.stories.d.ts +1 -1
- package/dist/Components/FormElements/Slider/Slider.d.ts +3 -3
- package/dist/Components/FormElements/Slider/Slider.stories.d.ts +1 -1
- package/dist/Components/FormElements/Switch/Switch.d.ts +3 -3
- package/dist/Components/FormElements/Switch/Switch.stories.d.ts +1 -1
- package/dist/Components/FormElements/Textarea/Textarea.d.ts +3 -3
- package/dist/Components/FormElements/Textarea/Textarea.stories.d.ts +1 -1
- package/dist/Components/FullScreen/FullScreen.d.ts +2 -2
- package/dist/Components/Icon/BaseIcon.d.ts +2 -2
- package/dist/Components/Icon/DoubleIcon.d.ts +1 -1
- package/dist/Components/Icon/DoubleIcon.stories.d.ts +1 -1
- package/dist/Components/Icon/Icon.d.ts +1 -1
- package/dist/Components/Icon/Icon.stories.d.ts +1 -1
- package/dist/Components/Image/Image.d.ts +2 -2
- package/dist/Components/Image/Image.stories.d.ts +1 -1
- package/dist/Components/InViewport/InViewport.d.ts +1 -1
- package/dist/Components/Layout/BaseBlock.d.ts +4 -4
- package/dist/Components/Layout/BaseInlineBlock.d.ts +2 -2
- package/dist/Components/Layout/Block.d.ts +1 -1
- package/dist/Components/Layout/Container.d.ts +1 -1
- package/dist/Components/Layout/Flex.d.ts +2 -2
- package/dist/Components/Layout/Grid/Grid.d.ts +1 -1
- package/dist/Components/Layout/Grid/GridItem.d.ts +1 -1
- package/dist/Components/Layout/Grow.d.ts +1 -1
- package/dist/Components/Layout/Inline.d.ts +2 -2
- package/dist/Components/Layout/InlineBlock.d.ts +1 -1
- package/dist/Components/Layout/View.d.ts +4 -4
- package/dist/Components/Layout/ViewWithoutListeners.d.ts +1 -1
- package/dist/Components/LoadingArea/LoadingArea.d.ts +1 -1
- package/dist/Components/LoadingArea/LoadingArea.stories.d.ts +2 -2
- package/dist/Components/LoadingCircle/LoadingCircle.d.ts +2 -2
- package/dist/Components/LoadingCircle/LoadingCircle.stories.d.ts +2 -2
- package/dist/Components/Menu/HoverMenu.d.ts +1 -1
- package/dist/Components/Menu/HoverMenu.stories.d.ts +1 -1
- package/dist/Components/Menu/Menu.d.ts +2 -2
- package/dist/Components/Menu/Menu.stories.d.ts +1 -1
- package/dist/Components/Menu/MenuItem.d.ts +2 -2
- package/dist/Components/Menu/MenuItem.stories.d.ts +1 -1
- package/dist/Components/Menu/Submenu.d.ts +2 -2
- package/dist/Components/Menu/Submenu.stories.d.ts +1 -1
- package/dist/Components/Menu/useMenu.d.ts +1 -1
- package/dist/Components/RbmComponentProps.d.ts +1 -1
- package/dist/Components/SizeCalculator/SizeCalculator.d.ts +1 -1
- package/dist/Components/SpoilerList/Spoiler/Spoiler.d.ts +3 -3
- package/dist/Components/SpoilerList/Spoiler/Spoiler.stories.d.ts +1 -1
- package/dist/Components/SpoilerList/SpoilerList.d.ts +1 -1
- package/dist/Components/TabBar/TabBar.d.ts +2 -2
- package/dist/Components/TabBar/TabBar.stories.d.ts +1 -1
- package/dist/Components/TabBar/TabBarButton.d.ts +2 -2
- package/dist/Components/Table/Table.d.ts +1 -1
- package/dist/Components/Text/Heading.d.ts +2 -2
- package/dist/Components/Text/Text.d.ts +2 -2
- package/dist/Components/Text/Text.stories.d.ts +1 -1
- package/dist/Components/Toast/Toast.d.ts +2 -2
- package/dist/Components/Toast/Toast.stories.d.ts +1 -1
- package/dist/Components/Toast/ToastContainer.d.ts +2 -2
- package/dist/Components/TopBar/MoreButton.d.ts +1 -1
- package/dist/Components/TopBar/TopBar.d.ts +2 -2
- package/dist/Components/TopBar/TopBar.stories.d.ts +1 -1
- package/dist/Components/TopBar/TopBarButton.d.ts +1 -1
- package/dist/helper/withMemo.d.ts +1 -1
- package/dist/helper/withRestrictedChildren.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/eslint.config.js +1 -0
- package/package.json +1 -1
- package/src/Components/ActionSheet/ActionSheet.stories.tsx +3 -4
- package/src/Components/ActionSheet/ActionSheet.tsx +12 -12
- package/src/Components/Card/Card.stories.tsx +3 -4
- package/src/Components/Card/Card.tsx +3 -3
- package/src/Components/Clickable/Clickable.tsx +6 -6
- package/src/Components/Colors.stories.tsx +5 -6
- package/src/Components/Dialog/AlertDialog.stories.tsx +2 -2
- package/src/Components/Dialog/AlertDialog.tsx +2 -2
- package/src/Components/Dialog/ButtonDialog.tsx +7 -7
- package/src/Components/Dialog/ConfirmDialog.stories.tsx +3 -4
- package/src/Components/Dialog/ConfirmDialog.tsx +2 -2
- package/src/Components/Dialog/Dialog.tsx +6 -6
- package/src/Components/Dialog/DialogBackground.tsx +9 -9
- package/src/Components/Dialog/DialogContainer.tsx +5 -5
- package/src/Components/Dialog/DialogContext.ts +1 -1
- package/src/Components/Dialog/useAlertDialog.ts +2 -2
- package/src/Components/Dialog/useConfirmDialog.ts +2 -2
- package/src/Components/DragAndDrop/DragItem.tsx +2 -2
- package/src/Components/DragAndDrop/DropArea.tsx +3 -3
- package/src/Components/ErrorBoundary.tsx +3 -3
- package/src/Components/FormElements/Button/Button.stories.tsx +6 -6
- package/src/Components/FormElements/Button/Button.tsx +8 -8
- package/src/Components/FormElements/CheckBox/Checkbox.stories.tsx +1 -1
- package/src/Components/FormElements/CheckBox/Checkbox.tsx +6 -6
- package/src/Components/FormElements/ColorInput/ColorInput.stories.tsx +1 -1
- package/src/Components/FormElements/ColorInput/ColorInput.tsx +8 -8
- package/src/Components/FormElements/Controller/ColorInputController.ts +2 -2
- package/src/Components/FormElements/Controller/FileInputController.tsx +4 -4
- package/src/Components/FormElements/Controller/HookForm.tsx +4 -4
- package/src/Components/FormElements/Controller/InputController.ts +2 -2
- package/src/Components/FormElements/Controller/MultipleFileInputController.ts +2 -2
- package/src/Components/FormElements/Controller/PasswordInputController.ts +2 -2
- package/src/Components/FormElements/Controller/SelectController.ts +2 -2
- package/src/Components/FormElements/Controller/SliderController.ts +2 -2
- package/src/Components/FormElements/Controller/SwitchController.ts +2 -2
- package/src/Components/FormElements/Controller/TextareaController.ts +2 -2
- package/src/Components/FormElements/Controller/withHookController.tsx +2 -2
- package/src/Components/FormElements/Error/FormError.stories.tsx +1 -1
- package/src/Components/FormElements/Error/FormError.tsx +5 -5
- package/src/Components/FormElements/Form.stories.tsx +1 -1
- package/src/Components/FormElements/Input/FileInput/FileInput.tsx +8 -8
- package/src/Components/FormElements/Input/FileInput/MultipleFileInput.tsx +16 -16
- package/src/Components/FormElements/Input/HiddenInput.stories.tsx +1 -1
- package/src/Components/FormElements/Input/HiddenInput.tsx +4 -4
- package/src/Components/FormElements/Input/Input.stories.tsx +1 -1
- package/src/Components/FormElements/Input/Input.tsx +11 -11
- package/src/Components/FormElements/Input/PasswordInput/PasswordInput.stories.tsx +1 -1
- package/src/Components/FormElements/Input/PasswordInput/PasswordInput.tsx +9 -9
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.stories.tsx +2 -2
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx +12 -12
- package/src/Components/FormElements/Select/Select.stories.tsx +1 -1
- package/src/Components/FormElements/Select/Select.tsx +7 -7
- package/src/Components/FormElements/Slider/Slider.stories.tsx +1 -1
- package/src/Components/FormElements/Slider/Slider.tsx +7 -7
- package/src/Components/FormElements/Switch/Switch.stories.tsx +1 -1
- package/src/Components/FormElements/Switch/Switch.tsx +7 -7
- package/src/Components/FormElements/Textarea/Textarea.stories.tsx +1 -1
- package/src/Components/FormElements/Textarea/Textarea.tsx +9 -9
- package/src/Components/FullScreen/FullScreen.tsx +4 -4
- package/src/Components/Hooks/useBreakpoint.ts +1 -1
- package/src/Components/Hooks/useDelayedState.ts +1 -1
- package/src/Components/Hooks/useKeyListener.ts +1 -1
- package/src/Components/Hooks/useMousePosition.ts +1 -1
- package/src/Components/Hooks/useWindowDimensions.ts +1 -1
- package/src/Components/Icon/BaseIcon.tsx +4 -4
- package/src/Components/Icon/DoubleIcon.stories.tsx +1 -1
- package/src/Components/Icon/DoubleIcon.tsx +5 -5
- package/src/Components/Icon/Icon.stories.tsx +1 -1
- package/src/Components/Icon/Icon.ts +2 -2
- package/src/Components/Image/Image.stories.tsx +1 -1
- package/src/Components/Image/Image.tsx +4 -4
- package/src/Components/InViewport/InViewport.tsx +3 -3
- package/src/Components/Layout/BaseBlock.tsx +7 -7
- package/src/Components/Layout/BaseInlineBlock.tsx +5 -5
- package/src/Components/Layout/Block.ts +2 -2
- package/src/Components/Layout/Container.tsx +3 -3
- package/src/Components/Layout/Flex.tsx +5 -5
- package/src/Components/Layout/Grid/Grid.tsx +4 -4
- package/src/Components/Layout/Grid/GridItem.tsx +4 -4
- package/src/Components/Layout/Grow.tsx +3 -3
- package/src/Components/Layout/Inline.tsx +5 -5
- package/src/Components/Layout/InlineBlock.ts +2 -2
- package/src/Components/Layout/View.tsx +4 -4
- package/src/Components/Layout/ViewWithoutListeners.tsx +3 -3
- package/src/Components/LoadingArea/LoadingArea.stories.tsx +3 -3
- package/src/Components/LoadingArea/LoadingArea.tsx +5 -5
- package/src/Components/LoadingCircle/LoadingCircle.stories.tsx +2 -2
- package/src/Components/LoadingCircle/LoadingCircle.tsx +4 -4
- package/src/Components/Menu/HoverMenu.stories.tsx +3 -3
- package/src/Components/Menu/HoverMenu.tsx +6 -6
- package/src/Components/Menu/Menu.stories.tsx +5 -5
- package/src/Components/Menu/Menu.tsx +10 -10
- package/src/Components/Menu/MenuDivider.tsx +3 -3
- package/src/Components/Menu/MenuItem.stories.tsx +1 -1
- package/src/Components/Menu/MenuItem.tsx +9 -9
- package/src/Components/Menu/Submenu.stories.tsx +3 -3
- package/src/Components/Menu/Submenu.tsx +12 -12
- package/src/Components/Menu/useMenu.ts +1 -1
- package/src/Components/RbmComponentProps.ts +1 -1
- package/src/Components/SizeCalculator/SizeCalculator.tsx +3 -3
- package/src/Components/SpoilerList/Spoiler/Spoiler.stories.tsx +1 -1
- package/src/Components/SpoilerList/Spoiler/Spoiler.tsx +12 -12
- package/src/Components/SpoilerList/SpoilerList.tsx +5 -5
- package/src/Components/TabBar/TabBar.stories.tsx +1 -1
- package/src/Components/TabBar/TabBar.tsx +10 -10
- package/src/Components/TabBar/TabBarButton.tsx +5 -5
- package/src/Components/Table/Table.tsx +2 -2
- package/src/Components/Text/Heading.tsx +5 -5
- package/src/Components/Text/Text.stories.tsx +1 -1
- package/src/Components/Text/Text.tsx +6 -6
- package/src/Components/Title/HoverTitle.tsx +5 -5
- package/src/Components/Title/Title.stories.tsx +8 -8
- package/src/Components/Title/withTitle.tsx +6 -6
- package/src/Components/Toast/Toast.stories.tsx +1 -1
- package/src/Components/Toast/Toast.tsx +6 -6
- package/src/Components/Toast/ToastContainer.tsx +7 -7
- package/src/Components/TopBar/MoreButton.tsx +5 -6
- package/src/Components/TopBar/TopBar.stories.tsx +1 -1
- package/src/Components/TopBar/TopBar.tsx +15 -15
- package/src/Components/TopBar/TopBarButton.tsx +3 -3
- package/src/helper/nonEmptyString.ts +1 -1
- package/src/helper/withMemo.ts +3 -3
- package/src/helper/withRestrictedChildren.tsx +2 -2
- package/tsconfig.json +2 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { withMemo } from '
|
|
2
|
+
import { withMemo } from '../../helper/withMemo';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import styles from '
|
|
4
|
+
import styles from './layout.module.scss';
|
|
5
5
|
import type { ForwardedRef } from 'react';
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
6
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
7
7
|
|
|
8
8
|
export type GrowProps = RbmComponentProps<{
|
|
9
9
|
center?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ViewWithoutListeners } from '
|
|
4
|
-
import { withMemo } from '
|
|
3
|
+
import { ViewWithoutListeners } from './ViewWithoutListeners';
|
|
4
|
+
import { withMemo } from '../../helper/withMemo';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import styles from '
|
|
7
|
-
import type { RbmComponentProps } from '
|
|
8
|
-
import type { ViewWithoutListenersProps } from '
|
|
6
|
+
import styles from './layout.module.scss';
|
|
7
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
8
|
+
import type { ViewWithoutListenersProps } from './ViewWithoutListeners';
|
|
9
9
|
|
|
10
10
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseInlineBlock } from '
|
|
2
|
-
import { withTitle } from '
|
|
1
|
+
import { BaseInlineBlock } from './BaseInlineBlock';
|
|
2
|
+
import { withTitle } from '../Title/withTitle';
|
|
3
3
|
|
|
4
4
|
export const InlineBlock = withTitle(BaseInlineBlock);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { withMemo } from '
|
|
4
|
-
import type { ComponentRef,
|
|
5
|
-
import type { Override } from '
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
|
+
import type { ComponentRef, PropsWithChildren, Ref } from 'react';
|
|
5
|
+
import type { Override } from '../../TypeHelpers';
|
|
6
6
|
|
|
7
7
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ export type ViewProps<AsType extends keyof IntrinsicElements> = PropsWithChildre
|
|
|
12
12
|
{
|
|
13
13
|
as?: AsType;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
-
ref?:
|
|
15
|
+
ref?: Ref<ComponentRef<AsType>>;
|
|
16
16
|
}
|
|
17
17
|
>
|
|
18
18
|
>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { View } from '
|
|
4
|
-
import { withMemo } from '
|
|
3
|
+
import { View } from './View';
|
|
4
|
+
import { withMemo } from '../../helper/withMemo';
|
|
5
5
|
import type { DOMAttributes, ForwardedRef } from 'react';
|
|
6
|
-
import type { ViewProps } from '
|
|
6
|
+
import type { ViewProps } from './View';
|
|
7
7
|
|
|
8
8
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { BaseBlock } from '
|
|
4
|
-
import { LoadingArea } from '
|
|
5
|
-
import { Text } from '
|
|
3
|
+
import { BaseBlock } from '../Layout/BaseBlock';
|
|
4
|
+
import { LoadingArea } from './LoadingArea';
|
|
5
|
+
import { Text } from '../Text/Text';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
8
|
const meta = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { LoadingCircle } from '
|
|
3
|
-
import { withMemo } from '
|
|
4
|
-
import baseStyles from '
|
|
2
|
+
import { LoadingCircle } from '../LoadingCircle/LoadingCircle';
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
|
+
import baseStyles from '../../scss/baseClasses.module.scss';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import styles from '
|
|
7
|
-
import type { RbmComponentProps } from '
|
|
6
|
+
import styles from './loadingArea.module.scss';
|
|
7
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
8
8
|
|
|
9
9
|
export type LoadingAreaProps = RbmComponentProps<{
|
|
10
10
|
loading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { LoadingCircle } from '
|
|
4
|
-
import { Size } from '
|
|
3
|
+
import { LoadingCircle } from './LoadingCircle';
|
|
4
|
+
import { Size } from '../../Size';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Size } from '
|
|
2
|
+
import { Size } from '../../Size';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
|
-
import { withMemo } from '
|
|
4
|
+
import { withMemo } from '../../helper/withMemo';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import styles from '
|
|
7
|
-
import type { RbmComponentProps } from '
|
|
6
|
+
import styles from './loadingCircle.module.scss';
|
|
7
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
8
8
|
|
|
9
9
|
export type LoadingCircleProps = RbmComponentProps<{
|
|
10
10
|
size?: Size;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import * as MenuStories from '
|
|
4
|
-
import { BaseIcon } from '
|
|
5
|
-
import { HoverMenu } from '
|
|
3
|
+
import * as MenuStories from './Menu.stories';
|
|
4
|
+
import { BaseIcon } from '../Icon/BaseIcon';
|
|
5
|
+
import { HoverMenu } from './HoverMenu';
|
|
6
6
|
import { faCogs } from '@fortawesome/free-solid-svg-icons';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { ReactElement } from 'react';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Clickable } from '
|
|
2
|
-
import { Menu } from '
|
|
3
|
-
import { useHoverMenu } from '
|
|
4
|
-
import { withMemo } from '
|
|
1
|
+
import { Clickable } from '../Clickable/Clickable';
|
|
2
|
+
import { Menu } from './Menu';
|
|
3
|
+
import { useHoverMenu } from './useHoverMenu';
|
|
4
|
+
import { withMemo } from '../../helper/withMemo';
|
|
5
5
|
import React, { useCallback, useRef } from 'react';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import styles from '
|
|
7
|
+
import styles from './menu.module.scss';
|
|
8
8
|
import type {
|
|
9
9
|
RbmChildWithoutString,
|
|
10
10
|
RbmComponentProps,
|
|
11
11
|
WithNoStringAndChildrenProps,
|
|
12
|
-
} from '
|
|
12
|
+
} from '../RbmComponentProps';
|
|
13
13
|
|
|
14
14
|
export type HoverMenuProps = RbmComponentProps<
|
|
15
15
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { Menu } from '
|
|
4
|
-
import { MenuDivider } from '
|
|
5
|
-
import { MenuItem } from '
|
|
6
|
-
import { Submenu } from '
|
|
3
|
+
import { Menu } from './Menu';
|
|
4
|
+
import { MenuDivider } from './MenuDivider';
|
|
5
|
+
import { MenuItem } from './MenuItem';
|
|
6
|
+
import { Submenu } from './Submenu';
|
|
7
7
|
import { faCog, faCogs, faHome, faUser } from '@fortawesome/free-solid-svg-icons';
|
|
8
8
|
import { fn } from 'storybook/test';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import type { MenuProps } from '
|
|
10
|
+
import type { MenuProps } from './Menu';
|
|
11
11
|
|
|
12
12
|
const meta = {
|
|
13
13
|
component: Menu,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseBlock } from '
|
|
3
|
-
import { MenuCloseContextProvider } from '
|
|
4
|
-
import { MenuItem } from '
|
|
2
|
+
import { BaseBlock } from '../Layout/BaseBlock';
|
|
3
|
+
import { MenuCloseContextProvider } from './MenuCloseContext';
|
|
4
|
+
import { MenuItem } from './MenuItem';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
|
-
import { useClientLayoutEffect } from '
|
|
6
|
+
import { useClientLayoutEffect } from '../Hooks/useClientLayoutEffect';
|
|
7
7
|
import { useEffect, useRef, useState } from 'react';
|
|
8
|
-
import { useWindow } from '
|
|
9
|
-
import { withMemo } from '
|
|
10
|
-
import { withRenderBrowserOnly } from '
|
|
8
|
+
import { useWindow } from '../../WindowContext/WindowContext';
|
|
9
|
+
import { withMemo } from '../../helper/withMemo';
|
|
10
|
+
import { withRenderBrowserOnly } from '../../helper/withRenderBrowserOnly';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
|
-
import styles from '
|
|
13
|
-
import type { IconSource } from '
|
|
14
|
-
import type { RbmComponentProps } from '
|
|
12
|
+
import styles from './menu.module.scss';
|
|
13
|
+
import type { IconSource } from '../Icon/BaseIcon';
|
|
14
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
15
15
|
|
|
16
16
|
export type MenuItemType = {
|
|
17
17
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseBlock } from '
|
|
2
|
-
import { withMemo } from '
|
|
1
|
+
import { BaseBlock } from '../Layout/BaseBlock';
|
|
2
|
+
import { withMemo } from '../../helper/withMemo';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import styles from '
|
|
4
|
+
import styles from './menu.module.scss';
|
|
5
5
|
|
|
6
6
|
export const MenuDivider = withMemo(function MenuDivider() {
|
|
7
7
|
// Refs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { MenuItem } from '
|
|
3
|
+
import { MenuItem } from './MenuItem';
|
|
4
4
|
import { faCog, faHome, faUser } from '@fortawesome/free-solid-svg-icons';
|
|
5
5
|
import { fn } from 'storybook/test';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { BaseBlock } from '
|
|
2
|
-
import { BaseIcon } from '
|
|
3
|
-
import { Clickable } from '
|
|
4
|
-
import { Text } from '
|
|
5
|
-
import { useMenuClose } from '
|
|
6
|
-
import { withMemo } from '
|
|
1
|
+
import { BaseBlock } from '../Layout/BaseBlock';
|
|
2
|
+
import { BaseIcon } from '../Icon/BaseIcon';
|
|
3
|
+
import { Clickable } from '../Clickable/Clickable';
|
|
4
|
+
import { Text } from '../Text/Text';
|
|
5
|
+
import { useMenuClose } from './MenuCloseContext';
|
|
6
|
+
import { withMemo } from '../../helper/withMemo';
|
|
7
7
|
import React, { useCallback } from 'react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
-
import styles from '
|
|
10
|
-
import type { IconSource } from '
|
|
11
|
-
import type { RbmComponentProps, WithChildren } from '
|
|
9
|
+
import styles from './menu.module.scss';
|
|
10
|
+
import type { IconSource } from '../Icon/BaseIcon';
|
|
11
|
+
import type { RbmComponentProps, WithChildren } from '../RbmComponentProps';
|
|
12
12
|
import type { ReactNode } from 'react';
|
|
13
13
|
|
|
14
14
|
import Element = React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { MenuItem } from '
|
|
4
|
-
import { Submenu } from '
|
|
3
|
+
import { MenuItem } from './MenuItem';
|
|
4
|
+
import { Submenu } from './Submenu';
|
|
5
5
|
import { faBook, faCog, faHome, faUser } from '@fortawesome/free-solid-svg-icons';
|
|
6
6
|
import { fn } from 'storybook/test';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import type { SubmenuProps } from '
|
|
8
|
+
import type { SubmenuProps } from './Submenu';
|
|
9
9
|
|
|
10
10
|
const meta = {
|
|
11
11
|
component: Submenu,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { BaseBlock } from '
|
|
2
|
-
import { BaseIcon } from '
|
|
3
|
-
import { Clickable } from '
|
|
4
|
-
import { Flex } from '
|
|
5
|
-
import { Grow } from '
|
|
6
|
-
import { MenuCloseContextProvider, useMenuClose } from '
|
|
7
|
-
import { Text } from '
|
|
1
|
+
import { BaseBlock } from '../Layout/BaseBlock';
|
|
2
|
+
import { BaseIcon } from '../Icon/BaseIcon';
|
|
3
|
+
import { Clickable } from '../Clickable/Clickable';
|
|
4
|
+
import { Flex } from '../Layout/Flex';
|
|
5
|
+
import { Grow } from '../Layout/Grow';
|
|
6
|
+
import { MenuCloseContextProvider, useMenuClose } from './MenuCloseContext';
|
|
7
|
+
import { Text } from '../Text/Text';
|
|
8
8
|
import { faChevronRight } from '@fortawesome/free-solid-svg-icons';
|
|
9
|
-
import { useWindow } from '
|
|
10
|
-
import { withMemo } from '
|
|
9
|
+
import { useWindow } from '../../WindowContext/WindowContext';
|
|
10
|
+
import { withMemo } from '../../helper/withMemo';
|
|
11
11
|
import React, { useCallback, useRef, useState } from 'react';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import styles from '
|
|
14
|
-
import type { IconSource } from '
|
|
15
|
-
import type { RbmComponentProps, WithNoStringAndChildrenProps } from '
|
|
13
|
+
import styles from './menu.module.scss';
|
|
14
|
+
import type { IconSource } from '../Icon/BaseIcon';
|
|
15
|
+
import type { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
|
|
16
16
|
|
|
17
17
|
export type SubmenuProps = RbmComponentProps<
|
|
18
18
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import type { Recursive } from '
|
|
3
|
+
import type { Recursive } from '../TypeHelpers';
|
|
4
4
|
|
|
5
5
|
export type RbmChildWithoutString = Recursive<JSX.Element | undefined | null | RbmChildWithoutString[]> | false;
|
|
6
6
|
export type WithNoStringProps =
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseInlineBlock } from '
|
|
2
|
+
import { BaseInlineBlock } from '../Layout/BaseInlineBlock';
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
|
-
import { withMemo } from '
|
|
5
|
-
import type { WithNoStringAndChildrenProps } from '
|
|
4
|
+
import { withMemo } from '../../helper/withMemo';
|
|
5
|
+
import type { WithNoStringAndChildrenProps } from '../RbmComponentProps';
|
|
6
6
|
|
|
7
7
|
export type SizeCalculatorProps = {
|
|
8
8
|
onSize: (width: number, height: number) => void;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseBlock } from '
|
|
3
|
-
import { BaseIcon } from '
|
|
4
|
-
import { Clickable } from '
|
|
5
|
-
import { Flex } from '
|
|
6
|
-
import { Grow } from '
|
|
7
|
-
import { TEXT_SIZE, Text } from '
|
|
2
|
+
import { BaseBlock } from '../../Layout/BaseBlock';
|
|
3
|
+
import { BaseIcon } from '../../Icon/BaseIcon';
|
|
4
|
+
import { Clickable } from '../../Clickable/Clickable';
|
|
5
|
+
import { Flex } from '../../Layout/Flex';
|
|
6
|
+
import { Grow } from '../../Layout/Grow';
|
|
7
|
+
import { TEXT_SIZE, Text } from '../../Text/Text';
|
|
8
8
|
import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons';
|
|
9
9
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
10
|
-
import { useListener } from '
|
|
11
|
-
import { withMemo } from '
|
|
10
|
+
import { useListener } from '../../Hooks/useListener';
|
|
11
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import styles from '
|
|
14
|
-
import type { IconSource } from '
|
|
13
|
+
import styles from './spoiler.module.scss';
|
|
14
|
+
import type { IconSource } from '../../Icon/BaseIcon';
|
|
15
15
|
import type { MouseEvent, ReactNode } from 'react';
|
|
16
|
-
import type { OptionalListener } from '
|
|
17
|
-
import type { RbmComponentProps, WithChildren } from '
|
|
16
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
17
|
+
import type { RbmComponentProps, WithChildren } from '../../RbmComponentProps';
|
|
18
18
|
|
|
19
19
|
export type SpoilerProps<OnClickData> = RbmComponentProps<
|
|
20
20
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseBlock } from '
|
|
3
|
-
import { Spoiler } from '
|
|
4
|
-
import { useSpoilerGroup } from '
|
|
5
|
-
import { withMemo } from '
|
|
2
|
+
import { BaseBlock } from '../Layout/BaseBlock';
|
|
3
|
+
import { Spoiler } from './Spoiler/Spoiler';
|
|
4
|
+
import { useSpoilerGroup } from './useSpoilerGroup';
|
|
5
|
+
import { withMemo } from '../../helper/withMemo';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import type { RbmComponentProps, WithNoChildren } from '
|
|
7
|
+
import type { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
|
|
8
8
|
import type { ReactElement } from 'react';
|
|
9
9
|
|
|
10
10
|
export type SpoilerItem<BodyData, TitleData = string> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
|
|
3
|
-
import { TabBar } from '
|
|
3
|
+
import { TabBar } from './TabBar';
|
|
4
4
|
import { faCog, faHome, faSearch, faUser } from '@fortawesome/free-solid-svg-icons';
|
|
5
5
|
import { fn } from 'storybook/test';
|
|
6
6
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseIcon } from '
|
|
3
|
-
import { Container } from '
|
|
4
|
-
import { Inline } from '
|
|
5
|
-
import { TabBarButton } from '
|
|
6
|
-
import { Text } from '
|
|
2
|
+
import { BaseIcon } from '../Icon/BaseIcon';
|
|
3
|
+
import { Container } from '../Layout/Container';
|
|
4
|
+
import { Inline } from '../Layout/Inline';
|
|
5
|
+
import { TabBarButton } from './TabBarButton';
|
|
6
|
+
import { Text } from '../Text/Text';
|
|
7
7
|
import { useCallback, useState } from 'react';
|
|
8
|
-
import { withMemo } from '
|
|
8
|
+
import { withMemo } from '../../helper/withMemo';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import styles from '
|
|
10
|
+
import styles from './tabBar.module.scss';
|
|
11
11
|
import type { ComponentType } from 'react';
|
|
12
|
-
import type { IconSource } from '
|
|
13
|
-
import type { ListenerWithData } from '
|
|
14
|
-
import type { RbmComponentProps } from '
|
|
12
|
+
import type { IconSource } from '../Icon/BaseIcon';
|
|
13
|
+
import type { ListenerWithData } from '../Hooks/useListener';
|
|
14
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
15
15
|
|
|
16
16
|
export type TabBarComponentButtonType = {
|
|
17
17
|
component: ComponentType<Record<string, any>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useListenerWithExtractedProps } from '
|
|
3
|
-
import { withMemo } from '
|
|
2
|
+
import { useListenerWithExtractedProps } from '../Hooks/useListener';
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { Listener } from '
|
|
7
|
-
import type { RbmComponentProps } from '
|
|
5
|
+
import styles from './tabBar.module.scss';
|
|
6
|
+
import type { Listener } from '../Hooks/useListener';
|
|
7
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
8
8
|
|
|
9
9
|
export type TabBarButtonProps = RbmComponentProps<
|
|
10
10
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useSortBy, useTable } from 'react-table';
|
|
3
|
-
import { withMemo } from '
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
4
|
import type {
|
|
5
5
|
Cell,
|
|
6
6
|
HeaderGroup,
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
TableOptions,
|
|
11
11
|
UseSortByOptions,
|
|
12
12
|
} from 'react-table';
|
|
13
|
-
import type { RbmComponentProps } from '
|
|
13
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
14
14
|
import type { ReactNode } from 'react';
|
|
15
15
|
|
|
16
16
|
export type ColumnCellData<DataType extends string | number | Record<string, unknown>> = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TEXT_PRIO, TEXT_SIZE, Text } from '
|
|
3
|
-
import { withMemo } from '
|
|
2
|
+
import { TEXT_PRIO, TEXT_SIZE, Text } from './Text';
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { EmptyProps } from '
|
|
7
|
-
import type { RbmComponentProps, WithStringProps } from '
|
|
5
|
+
import styles from './heading.module.scss';
|
|
6
|
+
import type { EmptyProps } from '../../helper/EmptyProps';
|
|
7
|
+
import type { RbmComponentProps, WithStringProps } from '../RbmComponentProps';
|
|
8
8
|
|
|
9
9
|
export type HeadingProps = RbmComponentProps<EmptyProps, WithStringProps>;
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Inline } from '
|
|
2
|
+
import { Inline } from '../Layout/Inline';
|
|
3
3
|
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
import { WrongChildError } from '
|
|
4
|
+
import { WrongChildError } from '../../WrongChildError';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import styles from '
|
|
7
|
-
import type { InlineProps } from '
|
|
8
|
-
import type { Recursive, ValueOf } from '
|
|
9
|
-
import type { ViewProps } from '
|
|
6
|
+
import styles from './text.module.scss';
|
|
7
|
+
import type { InlineProps } from '../Layout/Inline';
|
|
8
|
+
import type { Recursive, ValueOf } from '../../TypeHelpers';
|
|
9
|
+
import type { ViewProps } from '../Layout/View';
|
|
10
10
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
11
11
|
|
|
12
12
|
export const TEXT_PRIO = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseInlineBlock } from '
|
|
2
|
-
import { useClientLayoutEffect } from '
|
|
3
|
-
import { useWindow } from '
|
|
4
|
-
import { withMemo } from '
|
|
1
|
+
import { BaseInlineBlock } from '../Layout/BaseInlineBlock';
|
|
2
|
+
import { useClientLayoutEffect } from '../Hooks/useClientLayoutEffect';
|
|
3
|
+
import { useWindow } from '../../WindowContext/WindowContext';
|
|
4
|
+
import { withMemo } from '../../helper/withMemo';
|
|
5
5
|
import React, { useEffect, useRef, useState } from 'react';
|
|
6
|
-
import styles from '
|
|
6
|
+
import styles from './hoverTitle.module.scss';
|
|
7
7
|
import type { ReactElement, RefObject } from 'react';
|
|
8
8
|
|
|
9
9
|
export type HoverTitleProps = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { BaseIcon } from '
|
|
2
|
-
import { Block } from '
|
|
3
|
-
import { HoverMenu } from '
|
|
4
|
-
import { MenuDivider } from '
|
|
5
|
-
import { MenuItem } from '
|
|
6
|
-
import { Submenu } from '
|
|
7
|
-
import { Text } from '
|
|
1
|
+
import { BaseIcon } from '../Icon/BaseIcon';
|
|
2
|
+
import { Block } from '../Layout/Block';
|
|
3
|
+
import { HoverMenu } from '../Menu/HoverMenu';
|
|
4
|
+
import { MenuDivider } from '../Menu/MenuDivider';
|
|
5
|
+
import { MenuItem } from '../Menu/MenuItem';
|
|
6
|
+
import { Submenu } from '../Menu/Submenu';
|
|
7
|
+
import { Text } from '../Text/Text';
|
|
8
8
|
import { faCog, faCogs, faHome, faUser } from '@fortawesome/free-solid-svg-icons';
|
|
9
9
|
import { fn } from 'storybook/test';
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import type { HoverMenuProps } from '
|
|
11
|
+
import type { HoverMenuProps } from '../Menu/HoverMenu';
|
|
12
12
|
import type { StoryObj } from '@storybook/react-vite';
|
|
13
13
|
|
|
14
14
|
const meta = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HoverTitle } from '
|
|
2
|
-
import { TEXT_SIZE, Text } from '
|
|
3
|
-
import { useComposedRef } from '
|
|
4
|
-
import { useHoverMenu } from '
|
|
5
|
-
import { withMemo } from '
|
|
1
|
+
import { HoverTitle } from './HoverTitle';
|
|
2
|
+
import { TEXT_SIZE, Text } from '../Text/Text';
|
|
3
|
+
import { useComposedRef } from '../Hooks/useComposedRef';
|
|
4
|
+
import { useHoverMenu } from '../Menu/useHoverMenu';
|
|
5
|
+
import { withMemo } from '../../helper/withMemo';
|
|
6
6
|
import React, { useEffect, useRef } from 'react';
|
|
7
7
|
import type { FunctionComponent, ReactElement, Ref } from 'react';
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ export function withTitle<Props extends Record<string, any>>(Comp: FunctionCompo
|
|
|
19
19
|
const titleRef = useRef<HTMLElement | null>(null);
|
|
20
20
|
const composedRef = useComposedRef(titleRef, ref);
|
|
21
21
|
const titleElement = typeof title === 'string' ? <Text size={TEXT_SIZE.small}>{title.trim()}</Text> : title;
|
|
22
|
-
const { isOpen,
|
|
22
|
+
const { isOpen, open, close } = useHoverMenu({ ref: titleRef });
|
|
23
23
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
const element = titleRef.current;
|