@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,24 +1,24 @@
|
|
|
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 { FormError } from '
|
|
7
|
-
import { Grow } from '
|
|
8
|
-
import { Image } from '
|
|
9
|
-
import { Inline } from '
|
|
10
|
-
import { 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 { FormError } from '../../Error/FormError';
|
|
7
|
+
import { Grow } from '../../../Layout/Grow';
|
|
8
|
+
import { Image } from '../../../Image/Image';
|
|
9
|
+
import { Inline } from '../../../Layout/Inline';
|
|
10
|
+
import { Text } from '../../../Text/Text';
|
|
11
11
|
import { faFile, faPlus, faTimesCircle } from '@fortawesome/free-solid-svg-icons';
|
|
12
12
|
import { useCallback, useRef } from 'react';
|
|
13
|
-
import { useListenerWithExtractedProps } from '
|
|
14
|
-
import { withMemo } from '
|
|
13
|
+
import { useListenerWithExtractedProps } from '../../../Hooks/useListener';
|
|
14
|
+
import { withMemo } from '../../../../helper/withMemo';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import styles from '
|
|
16
|
+
import styles from './fileInput.module.scss';
|
|
17
17
|
import type { ChangeEventHandler, DragEvent, InputHTMLAttributes } from 'react';
|
|
18
|
-
import type { FileType } from '
|
|
19
|
-
import type { Listener } from '
|
|
20
|
-
import type { Override } from '
|
|
21
|
-
import type { RbmComponentProps } from '
|
|
18
|
+
import type { FileType } from './FileType';
|
|
19
|
+
import type { Listener } from '../../../Hooks/useListener';
|
|
20
|
+
import type { Override } from '../../../../TypeHelpers';
|
|
21
|
+
import type { RbmComponentProps } from '../../../RbmComponentProps';
|
|
22
22
|
|
|
23
23
|
export type MultipleFileInputProps<OnChangeFilesData> = RbmComponentProps<
|
|
24
24
|
Override<
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Input } from '
|
|
3
|
-
import { withMemo } from '
|
|
2
|
+
import { Input } from './Input';
|
|
3
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { InputProps } from '
|
|
5
|
+
import styles from './input.module.scss';
|
|
6
|
+
import type { InputProps } from './Input';
|
|
7
7
|
|
|
8
8
|
export type HiddenInputProps<OnChangeType, OnBlurData, OnChangeEndData> = InputProps<
|
|
9
9
|
OnChangeType,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FormError } from '
|
|
2
|
+
import { FormError } from '../Error/FormError';
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
4
|
-
import { useComposedRef } from '
|
|
5
|
-
import { useDebounced } from '
|
|
6
|
-
import { useListenerWithExtractedProps } from '
|
|
7
|
-
import { useOnChangeDone } from '
|
|
8
|
-
import { useSendFormContext } from '
|
|
9
|
-
import { withMemo } from '
|
|
4
|
+
import { useComposedRef } from '../../Hooks/useComposedRef';
|
|
5
|
+
import { useDebounced } from '../../Hooks/useDebounced';
|
|
6
|
+
import { useListenerWithExtractedProps } from '../../Hooks/useListener';
|
|
7
|
+
import { useOnChangeDone } from '../hooks/useOnChangeDone';
|
|
8
|
+
import { useSendFormContext } from '../Controller/SendFormContext';
|
|
9
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
|
-
import styles from '
|
|
11
|
+
import styles from './input.module.scss';
|
|
12
12
|
import type { ChangeEvent, ForwardedRef, InputHTMLAttributes, KeyboardEvent } from 'react';
|
|
13
|
-
import type { OptionalListener } from '
|
|
14
|
-
import type { Override } from '
|
|
15
|
-
import type { RbmComponentProps } from '
|
|
13
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
14
|
+
import type { Override } from '../../../TypeHelpers';
|
|
15
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
16
16
|
|
|
17
17
|
export type InputProps<OnChangeData, OnBlurData, OnChangeDoneData> = RbmComponentProps<
|
|
18
18
|
Override<
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BaseIcon } from '
|
|
2
|
-
import { Clickable } from '
|
|
3
|
-
import { Flex } from '
|
|
4
|
-
import { Grow } from '
|
|
5
|
-
import { Input } from '
|
|
1
|
+
import { BaseIcon } from '../../../Icon/BaseIcon';
|
|
2
|
+
import { Clickable } from '../../../Clickable/Clickable';
|
|
3
|
+
import { Flex } from '../../../Layout/Flex';
|
|
4
|
+
import { Grow } from '../../../Layout/Grow';
|
|
5
|
+
import { Input } from '../Input';
|
|
6
6
|
import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons';
|
|
7
|
-
import { withMemo } from '
|
|
7
|
+
import { withMemo } from '../../../../helper/withMemo';
|
|
8
8
|
import React, { useCallback, useState } from 'react';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import styles from '
|
|
11
|
-
import type { DistributiveOmit } from '
|
|
10
|
+
import styles from './passwordInput.module.scss';
|
|
11
|
+
import type { DistributiveOmit } from '../../../../helper/DistributiveOmit';
|
|
12
12
|
import type { ForwardedRef } from 'react';
|
|
13
|
-
import type { InputProps } from '
|
|
13
|
+
import type { InputProps } from '../Input';
|
|
14
14
|
|
|
15
15
|
export type PasswordInputProps<OnChangeData, OnBlurData, OnChangeEndData> = DistributiveOmit<
|
|
16
16
|
InputProps<OnChangeData, OnBlurData, OnChangeEndData>,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SearchSelectInput } from '
|
|
1
|
+
import { SearchSelectInput } from './SearchSelectInput';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
|
-
import type { SearchSelectInputProps } from '
|
|
4
|
+
import type { SearchSelectInputProps } from './SearchSelectInput';
|
|
5
5
|
|
|
6
6
|
const meta = {
|
|
7
7
|
component: SearchSelectInput,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ArrayHelper } from '@ainias42/js-helper';
|
|
3
|
-
import { BaseBlock } from '
|
|
4
|
-
import { BaseInlineBlock } from '
|
|
5
|
-
import { Clickable } from '
|
|
6
|
-
import { Flex } from '
|
|
7
|
-
import { Grow } from '
|
|
8
|
-
import { TEXT_SIZE, Text } from '
|
|
3
|
+
import { BaseBlock } from '../../Layout/BaseBlock';
|
|
4
|
+
import { BaseInlineBlock } from '../../Layout/BaseInlineBlock';
|
|
5
|
+
import { Clickable } from '../../Clickable/Clickable';
|
|
6
|
+
import { Flex } from '../../Layout/Flex';
|
|
7
|
+
import { Grow } from '../../Layout/Grow';
|
|
8
|
+
import { TEXT_SIZE, Text } from '../../Text/Text';
|
|
9
9
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
10
|
-
import { useWindow } from '
|
|
11
|
-
import { withMemo } from '
|
|
10
|
+
import { useWindow } from '../../../WindowContext/WindowContext';
|
|
11
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import styles from '
|
|
13
|
+
import styles from './seachSelectInput.module.scss';
|
|
14
14
|
import type { ChangeEventHandler, KeyboardEvent, ReactNode } from 'react';
|
|
15
|
-
import type { OptionalListener } from '
|
|
16
|
-
import type { RbmComponentProps } from '
|
|
17
|
-
import type { SelectOption } from '
|
|
15
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
16
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
17
|
+
import type { SelectOption } from '../Select/Select';
|
|
18
18
|
|
|
19
19
|
export type SearchSelectInputProps<OnChangeData> = RbmComponentProps<
|
|
20
20
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
-
import { useListenerWithExtractedProps } from '
|
|
3
|
+
import { useListenerWithExtractedProps } from '../../Hooks/useListener';
|
|
4
4
|
import type { ChangeEventHandler, SelectHTMLAttributes } from 'react';
|
|
5
|
-
import type { Override } from '
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
5
|
+
import type { Override } from '../../../TypeHelpers';
|
|
6
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
7
7
|
|
|
8
|
-
import { FormError } from '
|
|
9
|
-
import { withMemo } from '
|
|
8
|
+
import { FormError } from '../Error/FormError';
|
|
9
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
|
-
import styles from '
|
|
12
|
-
import type { OptionalListener } from '
|
|
11
|
+
import styles from './select.module.scss';
|
|
12
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
13
13
|
|
|
14
14
|
export type SelectOption<ValueType = string> = {
|
|
15
15
|
label: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
-
import { useListenerWithExtractedProps } from '
|
|
4
|
-
import { useOnChangeDone } from '
|
|
5
|
-
import { withMemo } from '
|
|
3
|
+
import { useListenerWithExtractedProps } from '../../Hooks/useListener';
|
|
4
|
+
import { useOnChangeDone } from '../hooks/useOnChangeDone';
|
|
5
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import styles from '
|
|
7
|
+
import styles from './slider.module.scss';
|
|
8
8
|
import type { ChangeEventHandler, InputHTMLAttributes, MutableRefObject } from 'react';
|
|
9
|
-
import type { OptionalListener } from '
|
|
10
|
-
import type { Override } from '
|
|
11
|
-
import type { RbmComponentProps } from '
|
|
9
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
10
|
+
import type { Override } from '../../../TypeHelpers';
|
|
11
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
12
12
|
|
|
13
13
|
export type SliderProps<OnChangeData, OnChangeValueData, OnChangeDoneData> = RbmComponentProps<
|
|
14
14
|
Override<
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FormError } from '
|
|
2
|
+
import { FormError } from '../Error/FormError';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
-
import { useListenerWithExtractedProps } from '
|
|
5
|
-
import { withMemo } from '
|
|
4
|
+
import { useListenerWithExtractedProps } from '../../Hooks/useListener';
|
|
5
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
|
-
import styles from '
|
|
7
|
+
import styles from './switch.module.scss';
|
|
8
8
|
import type { ChangeEventHandler, InputHTMLAttributes, MouseEvent } from 'react';
|
|
9
|
-
import type { OptionalListener } from '
|
|
10
|
-
import type { Override } from '
|
|
11
|
-
import type { RbmComponentProps } from '
|
|
9
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
10
|
+
import type { Override } from '../../../TypeHelpers';
|
|
11
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
12
12
|
|
|
13
13
|
export type SwitchProps<OnChangeCheckedData> = RbmComponentProps<
|
|
14
14
|
Override<
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FormError } from '
|
|
2
|
+
import { FormError } from '../Error/FormError';
|
|
3
3
|
import { useCallback, useRef } from 'react';
|
|
4
|
-
import { useComposedRef } from '
|
|
5
|
-
import { useListenerWithExtractedProps } from '
|
|
6
|
-
import { useOnChangeDone } from '
|
|
7
|
-
import { withMemo } from '
|
|
4
|
+
import { useComposedRef } from '../../Hooks/useComposedRef';
|
|
5
|
+
import { useListenerWithExtractedProps } from '../../Hooks/useListener';
|
|
6
|
+
import { useOnChangeDone } from '../hooks/useOnChangeDone';
|
|
7
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
-
import styles from '
|
|
9
|
+
import styles from './textarea.module.scss';
|
|
10
10
|
import type { CSSProperties, ChangeEvent, ForwardedRef, KeyboardEvent, TextareaHTMLAttributes } from 'react';
|
|
11
|
-
import type { OptionalListener } from '
|
|
12
|
-
import type { Override } from '
|
|
13
|
-
import type { RbmComponentProps } from '
|
|
11
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
12
|
+
import type { Override } from '../../../TypeHelpers';
|
|
13
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
14
14
|
|
|
15
15
|
export type TextareaProps<OnChangeData, OnChangeDoneData> = RbmComponentProps<
|
|
16
16
|
Override<
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
4
|
-
import { useWindow } from '
|
|
5
|
-
import { withMemo } from '
|
|
4
|
+
import { useWindow } from '../../WindowContext/WindowContext';
|
|
5
|
+
import { withMemo } from '../../helper/withMemo';
|
|
6
6
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
7
|
-
import type { Override } from '
|
|
8
|
-
import type { RbmComponentProps } from '
|
|
7
|
+
import type { Override } from '../../TypeHelpers';
|
|
8
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
9
9
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
10
10
|
|
|
11
11
|
export type FullScreenProps<AsType extends keyof IntrinsicElements> = RbmComponentProps<
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useState } from 'react';
|
|
2
|
-
import { useDelayed } from '
|
|
2
|
+
import { useDelayed } from './useDelayed';
|
|
3
3
|
|
|
4
4
|
export function useDelayedState<T>(initialState: T | (() => T), delay = 100, maxDelay: number | undefined = undefined) {
|
|
5
5
|
const [immediateState, setImmediateState] = useState(initialState);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
3
|
-
import { withMemo } from '
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
5
|
+
import styles from './icon.module.scss';
|
|
6
6
|
import type { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
7
7
|
import type { IconDefinition } from '@fortawesome/free-regular-svg-icons';
|
|
8
8
|
import type { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
9
|
-
import type { Override } from '
|
|
10
|
-
import type { RbmComponentProps } from '
|
|
9
|
+
import type { Override } from '../../TypeHelpers';
|
|
10
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
11
11
|
import type { Ref } from 'react';
|
|
12
12
|
|
|
13
13
|
export type IconSource = IconProp | string | IconDefinition;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseIcon } from '
|
|
2
|
-
import { BaseInlineBlock } from '
|
|
3
|
-
import { withMemo } from '
|
|
1
|
+
import { BaseIcon } from './BaseIcon';
|
|
2
|
+
import { BaseInlineBlock } from '../Layout/BaseInlineBlock';
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { IconProps, IconSource } from '
|
|
5
|
+
import styles from './icon.module.scss';
|
|
6
|
+
import type { IconProps, IconSource } from './BaseIcon';
|
|
7
7
|
|
|
8
8
|
export type DoubleIconProps = IconProps & {
|
|
9
9
|
secondIcon: IconSource;
|
|
@@ -1,10 +1,10 @@
|
|
|
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 './image.module.scss';
|
|
5
5
|
import type { CSSProperties } from 'react';
|
|
6
|
-
import type { Override } from '
|
|
7
|
-
import type { RbmComponentProps, WithNoChildren } from '
|
|
6
|
+
import type { Override } from '../../TypeHelpers';
|
|
7
|
+
import type { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
|
|
8
8
|
|
|
9
9
|
export type ImageProps = RbmComponentProps<
|
|
10
10
|
Override<
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { withMemo } from '
|
|
3
|
+
import { withMemo } from '../../helper/withMemo';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
5
|
+
import styles from './inViewport.module.scss';
|
|
6
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
7
7
|
|
|
8
8
|
export type InViewportProps = RbmComponentProps<{
|
|
9
9
|
threshold?: number;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ViewWithoutListeners } from '
|
|
3
|
+
import { ViewWithoutListeners } from './ViewWithoutListeners';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { ComponentRef,
|
|
7
|
-
import type { RbmComponentProps } from '
|
|
8
|
-
import type { ViewWithoutListenersProps } from '
|
|
5
|
+
import styles from './layout.module.scss';
|
|
6
|
+
import type { ComponentRef, Ref } from 'react';
|
|
7
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
8
|
+
import type { ViewWithoutListenersProps } from './ViewWithoutListeners';
|
|
9
9
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
10
|
-
import { withMemo } from '
|
|
10
|
+
import { withMemo } from '../../helper/withMemo';
|
|
11
11
|
|
|
12
12
|
export type BlockProps<AsType extends keyof IntrinsicElements> = RbmComponentProps<
|
|
13
13
|
ViewWithoutListenersProps<AsType> & {
|
|
14
|
-
ref?:
|
|
14
|
+
ref?: Ref<ComponentRef<AsType>>;
|
|
15
15
|
}
|
|
16
16
|
>;
|
|
17
17
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ViewWithoutListeners } from '
|
|
3
|
+
import { ViewWithoutListeners } from './ViewWithoutListeners';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
7
|
-
import type { ViewWithoutListenersProps } from '
|
|
5
|
+
import styles from './layout.module.scss';
|
|
6
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
7
|
+
import type { ViewWithoutListenersProps } from './ViewWithoutListeners';
|
|
8
8
|
|
|
9
9
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
10
|
-
import { withMemo } from '
|
|
10
|
+
import { withMemo } from '../../helper/withMemo';
|
|
11
11
|
|
|
12
12
|
export type InlineBlockProps<AsType extends keyof IntrinsicElements> = RbmComponentProps<
|
|
13
13
|
ViewWithoutListenersProps<AsType> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 '
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
4
|
+
import styles from './container.module.scss';
|
|
5
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
6
6
|
|
|
7
7
|
export const CONTAINER_CLASSES = {
|
|
8
8
|
sm: styles['container-sm'],
|
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseBlock } from '
|
|
2
|
+
import { BaseBlock } from '../BaseBlock';
|
|
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 '
|
|
6
|
+
import styles from './grid.module.scss';
|
|
7
7
|
import type { ForwardedRef } from 'react';
|
|
8
|
-
import type { RbmComponentProps } from '
|
|
8
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
9
9
|
|
|
10
10
|
export type GridProps = RbmComponentProps<{
|
|
11
11
|
columns?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BaseInlineBlock } from '
|
|
3
|
-
import { withMemo } from '
|
|
2
|
+
import { BaseInlineBlock } from '../BaseInlineBlock';
|
|
3
|
+
import { withMemo } from '../../../helper/withMemo';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import styles from '
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
5
|
+
import styles from './grid.module.scss';
|
|
6
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
7
7
|
|
|
8
8
|
export type GridItemProps = RbmComponentProps<{
|
|
9
9
|
size: number;
|