@ainias42/react-bootstrap-mobile 1.0.4 → 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 +9 -6
- package/dist/Components/FormElements/Button/Button.stories.d.ts +12 -6
- 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 +15 -0
- 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 +4 -13
- 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 +10 -0
- package/dist/Components/Layout/BaseInlineBlock.d.ts +10 -0
- package/dist/Components/Layout/Block.d.ts +4 -10
- package/dist/Components/Layout/Container.d.ts +1 -1
- package/dist/Components/Layout/Flex.d.ts +8 -3
- 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 +4 -10
- 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/useHoverMenu.d.ts +17 -0
- 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/Title/HoverTitle.d.ts +9 -0
- package/dist/Components/Title/Title.stories.d.ts +11 -0
- package/dist/Components/Title/withTitle.d.ts +6 -0
- 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.css +4 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +420 -205
- 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 +20 -18
- 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 +11 -12
- package/src/Components/Dialog/AlertDialog.stories.tsx +2 -2
- package/src/Components/Dialog/AlertDialog.tsx +2 -2
- package/src/Components/Dialog/ButtonDialog.tsx +15 -15
- package/src/Components/Dialog/ConfirmDialog.stories.tsx +3 -4
- package/src/Components/Dialog/ConfirmDialog.tsx +2 -2
- package/src/Components/Dialog/Dialog.tsx +10 -10
- package/src/Components/Dialog/DialogBackground.tsx +12 -12
- package/src/Components/Dialog/DialogContainer.tsx +7 -7
- 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 +5 -5
- package/src/Components/FormElements/Button/Button.stories.tsx +6 -6
- package/src/Components/FormElements/Button/Button.tsx +9 -9
- 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 +9 -9
- 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 +21 -21
- 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 +10 -10
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.stories.tsx +2 -2
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx +19 -19
- 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/useDelayed.ts +5 -4
- 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/{Icon.tsx → BaseIcon.tsx} +10 -8
- package/src/Components/Icon/DoubleIcon.stories.tsx +1 -1
- package/src/Components/Icon/DoubleIcon.tsx +9 -9
- package/src/Components/Icon/Icon.stories.tsx +3 -3
- package/src/Components/Icon/Icon.ts +4 -0
- 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/{Block.tsx → BaseBlock.tsx} +8 -9
- package/src/Components/Layout/{InlineBlock.tsx → BaseInlineBlock.tsx} +6 -6
- package/src/Components/Layout/Block.ts +4 -0
- package/src/Components/Layout/Container.tsx +3 -3
- package/src/Components/Layout/Flex.tsx +21 -5
- package/src/Components/Layout/Grid/Grid.tsx +6 -6
- package/src/Components/Layout/Grid/GridItem.tsx +6 -6
- package/src/Components/Layout/Grow.tsx +3 -3
- package/src/Components/Layout/Inline.tsx +5 -5
- package/src/Components/Layout/InlineBlock.ts +4 -0
- package/src/Components/Layout/View.tsx +4 -4
- package/src/Components/Layout/ViewWithoutListeners.tsx +3 -3
- package/src/Components/Layout/layout.module.scss +13 -0
- package/src/Components/LoadingArea/LoadingArea.stories.tsx +5 -5
- 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 +5 -5
- package/src/Components/Menu/HoverMenu.tsx +13 -33
- package/src/Components/Menu/Menu.stories.tsx +5 -5
- package/src/Components/Menu/Menu.tsx +12 -12
- package/src/Components/Menu/MenuDivider.tsx +4 -4
- package/src/Components/Menu/MenuItem.stories.tsx +1 -1
- package/src/Components/Menu/MenuItem.tsx +12 -12
- package/src/Components/Menu/Submenu.stories.tsx +3 -3
- package/src/Components/Menu/Submenu.tsx +16 -16
- package/src/Components/Menu/menu.module.scss +3 -2
- package/src/Components/Menu/useHoverMenu.ts +36 -0
- package/src/Components/Menu/useMenu.ts +1 -1
- package/src/Components/RbmComponentProps.ts +1 -1
- package/src/Components/SizeCalculator/SizeCalculator.tsx +5 -5
- package/src/Components/SpoilerList/Spoiler/Spoiler.stories.tsx +1 -1
- package/src/Components/SpoilerList/Spoiler/Spoiler.tsx +18 -18
- package/src/Components/SpoilerList/SpoilerList.tsx +7 -7
- package/src/Components/TabBar/TabBar.stories.tsx +1 -1
- package/src/Components/TabBar/TabBar.tsx +11 -11
- 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 +97 -0
- package/src/Components/Title/Title.stories.tsx +95 -0
- package/src/Components/Title/hoverTitle.module.scss +8 -0
- package/src/Components/Title/withTitle.module.scss +7 -0
- package/src/Components/Title/withTitle.tsx +48 -0
- 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 +7 -8
- package/src/Components/TopBar/TopBar.stories.tsx +1 -1
- package/src/Components/TopBar/TopBar.tsx +18 -18
- package/src/Components/TopBar/TopBarButton.tsx +3 -3
- package/src/WrongChildError.ts +1 -0
- package/src/helper/nonEmptyString.ts +1 -1
- package/src/helper/withMemo.ts +3 -3
- package/src/helper/withRestrictedChildren.tsx +5 -3
- package/src/index.ts +6 -0
- package/tsconfig.json +2 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ForwardedRef } from 'react';
|
|
3
|
-
import type { IconSource } from '
|
|
4
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { IconSource } from '../Icon/BaseIcon';
|
|
4
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
5
5
|
export type ActionSheetAction<ActionData> = {
|
|
6
6
|
name: string;
|
|
7
7
|
icon?: IconSource;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-vite';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: ({ title, actions, cancelText, className, onClose, style, ref, }: import("
|
|
5
|
-
render: (args: import("
|
|
4
|
+
component: ({ title, actions, cancelText, className, onClose, style, ref, }: import("./ActionSheet").ActionSheetProps) => React.JSX.Element;
|
|
5
|
+
render: (args: import("./ActionSheet").ActionSheetProps) => React.JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
8
8
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { RbmComponentProps } from '
|
|
2
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
3
3
|
import type { ReactElement } from 'react';
|
|
4
4
|
export type CardProps = RbmComponentProps<{
|
|
5
5
|
title?: string | ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-vite';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: ({ title, children, fullHeight, noPaddingHeight, noPadding, noPaddingWidth, noMargin, className, ...rbmProps }: import("
|
|
4
|
+
component: ({ title, children, fullHeight, noPaddingHeight, noPadding, noPaddingWidth, noMargin, className, ...rbmProps }: import("./Card").CardProps) => React.JSX.Element;
|
|
5
5
|
argTypes: {
|
|
6
6
|
children: {
|
|
7
7
|
control: false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ForwardedRef, MouseEvent, PointerEvent, MouseEvent as ReactMouseEvent } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
4
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { OptionalListener } from '../Hooks/useListener';
|
|
4
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
5
5
|
type OnClickListener<Data> = OptionalListener<'onClick', Data>;
|
|
6
6
|
type OnPointerDownListener<Data> = OptionalListener<'onPointerDown', Data, PointerEvent>;
|
|
7
7
|
type OnPointerUpListener<Data> = OptionalListener<'onPointerUp', Data, PointerEvent>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: ({ title, message, close, confirmText, }: import("
|
|
4
|
+
component: ({ title, message, close, confirmText, }: import("./AlertDialog").AlertDialogProps) => React.JSX.Element;
|
|
5
5
|
decorators: (Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-vite").ReactRenderer, {
|
|
6
6
|
title?: string | undefined;
|
|
7
7
|
message: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Flavor } from '
|
|
3
|
-
import type { RbmComponentProps, WithNoChildren } from '
|
|
2
|
+
import { Flavor } from '../Flavor';
|
|
3
|
+
import type { RbmComponentProps, WithNoChildren } from '../RbmComponentProps';
|
|
4
4
|
import type { ReactElement } from 'react';
|
|
5
5
|
export type ButtonDialogProps = RbmComponentProps<{
|
|
6
6
|
title?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react-vite';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: ({ title, message, close, cancelText, confirmText, }: import("
|
|
4
|
+
component: ({ title, message, close, cancelText, confirmText, }: import("./ConfirmDialog").ConfirmDialogProps) => React.JSX.Element;
|
|
5
5
|
decorators: (Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-vite").ReactRenderer, {
|
|
6
6
|
title?: string | undefined;
|
|
7
7
|
message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { RbmComponentProps } from '
|
|
2
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
3
3
|
import type { ReactElement } from 'react';
|
|
4
4
|
export type DialogProps<ReturnData> = RbmComponentProps<{
|
|
5
5
|
closable?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { RbmComponentProps } from '
|
|
2
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
3
3
|
export type DialogBackgroundProps = RbmComponentProps<{
|
|
4
4
|
title?: string;
|
|
5
5
|
onClose?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ForwardedRef, PropsWithChildren } from 'react';
|
|
3
|
-
import type { ShowDialog } from '
|
|
3
|
+
import type { ShowDialog } from './DialogContext';
|
|
4
4
|
export type DialogContainerProps = PropsWithChildren<{
|
|
5
5
|
dialogClassName?: string;
|
|
6
6
|
ref?: ForwardedRef<DialogContainerRef>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentType } from 'react';
|
|
3
|
-
import type { EmptyProps } from '
|
|
3
|
+
import type { EmptyProps } from '../../helper/EmptyProps';
|
|
4
4
|
export type ShowDialog = <P = EmptyProps, R = any, C extends ComponentType<(P & {
|
|
5
5
|
close: (result?: R) => void;
|
|
6
6
|
}) | P> = ComponentType<(P & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DraggableProps } from '@hello-pangea/dnd';
|
|
3
|
-
import type { RbmComponentProps, WithNoStringAndChildrenProps } from '
|
|
3
|
+
import type { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
|
|
4
4
|
export type DragItemProps = RbmComponentProps<Omit<DraggableProps, 'children'>, WithNoStringAndChildrenProps>;
|
|
5
5
|
declare function DragItem({ children, className, ...dragProps }: DragItemProps): React.JSX.Element;
|
|
6
6
|
declare const DragItemMemo: typeof DragItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DroppableProps } from '@hello-pangea/dnd';
|
|
3
|
-
import type { RbmComponentProps, WithNoStringAndChildrenProps } from '
|
|
3
|
+
import type { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
|
|
4
4
|
export type DropAreaProps = RbmComponentProps<Omit<DroppableProps, 'children'>, WithNoStringAndChildrenProps>;
|
|
5
5
|
export declare const DropArea: ({ children, style, className, ...dropProps }: DropAreaProps) => React.JSX.Element | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ButtonType } from '
|
|
3
|
-
import { Flavor } from '
|
|
4
|
-
import { Size } from '
|
|
2
|
+
import { ButtonType } from './ButtonType';
|
|
3
|
+
import { Flavor } from '../../Flavor';
|
|
4
|
+
import { Size } from '../../../Size';
|
|
5
5
|
import type { HTMLAttributes } from 'react';
|
|
6
|
-
import type { OptionalListener } from '
|
|
6
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
7
7
|
import type { Override } from '@ainias42/js-helper';
|
|
8
|
-
import type { RbmComponentProps } from '
|
|
8
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
9
9
|
export type ButtonProps<ClickData> = RbmComponentProps<Override<HTMLAttributes<HTMLButtonElement>, {
|
|
10
10
|
type?: ButtonType;
|
|
11
11
|
disabled?: boolean;
|
|
@@ -14,4 +14,7 @@ export type ButtonProps<ClickData> = RbmComponentProps<Override<HTMLAttributes<H
|
|
|
14
14
|
stopPropagation?: boolean;
|
|
15
15
|
size?: Omit<Size, 'xxLarge' | 'xLarge' | 'large' | 'xSmall'>;
|
|
16
16
|
} & OptionalListener<'onClick', ClickData>>>;
|
|
17
|
-
export declare const Button:
|
|
17
|
+
export declare const Button: ({ title, ref, ...otherProps }: ButtonProps<unknown> & {
|
|
18
|
+
title?: string | React.ReactElement;
|
|
19
|
+
ref?: React.Ref<HTMLElement | null>;
|
|
20
|
+
}) => React.JSX.Element;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ButtonType } from '
|
|
2
|
-
import { Flavor } from '
|
|
3
|
-
import { Size } from '
|
|
1
|
+
import { ButtonType } from './ButtonType';
|
|
2
|
+
import { Flavor } from '../../Flavor';
|
|
3
|
+
import { Size } from '../../../Size';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import type { ButtonProps } from '
|
|
5
|
+
import type { ButtonProps } from './Button';
|
|
6
6
|
import type { StoryObj } from '@storybook/react-vite';
|
|
7
7
|
declare const meta: {
|
|
8
|
-
component:
|
|
8
|
+
component: ({ title, ref, ...otherProps }: ButtonProps<unknown> & {
|
|
9
|
+
title?: string | React.ReactElement;
|
|
10
|
+
ref?: React.Ref<HTMLElement | null>;
|
|
11
|
+
}) => React.JSX.Element;
|
|
9
12
|
argTypes: {
|
|
10
13
|
flavor: {
|
|
11
14
|
control: {
|
|
@@ -33,7 +36,10 @@ declare const meta: {
|
|
|
33
36
|
control: false;
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
|
-
render: (args: ButtonProps<unknown>
|
|
39
|
+
render: (args: ButtonProps<unknown> & {
|
|
40
|
+
title?: string | React.ReactElement;
|
|
41
|
+
ref?: React.Ref<HTMLElement | null>;
|
|
42
|
+
}) => React.JSX.Element;
|
|
37
43
|
};
|
|
38
44
|
export default meta;
|
|
39
45
|
type Story = StoryObj<ButtonProps<any>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { InputHTMLAttributes } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
4
|
import type { Override } from '@ainias42/js-helper';
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
5
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
6
6
|
export type CheckboxProps<OnChangeData, OnChangeCheckedData> = RbmComponentProps<Override<InputHTMLAttributes<HTMLInputElement>, {
|
|
7
7
|
label?: string;
|
|
8
8
|
children?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StoryObj } from '@storybook/react-vite';
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: <OnChangeData, OnChangeCheckedData>({ children, label, isLabelBeforeCheckbox, id, className, error, style, ...props }: import("
|
|
4
|
+
component: <OnChangeData, OnChangeCheckedData>({ children, label, isLabelBeforeCheckbox, id, className, error, style, ...props }: import("./Checkbox").CheckboxProps<OnChangeData, OnChangeCheckedData>) => React.JSX.Element;
|
|
5
5
|
argTypes: {};
|
|
6
6
|
args: {
|
|
7
7
|
checked: false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ColorResult } from '@uiw/react-color';
|
|
3
|
-
import type { OptionalListener } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
4
|
export type ColorInputProps<OnChangeData> = {
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
value?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData>({ defaultValue, value, label, onChangeColor, onOpen, onClose, disableAlpha, presetColors, error, sharedColorKey, disabled, className, ...otherProps }: import("
|
|
3
|
+
component: <OnChangeData>({ defaultValue, value, label, onChangeColor, onOpen, onClose, disableAlpha, presetColors, error, sharedColorKey, disabled, className, ...otherProps }: import("./ColorInput").ColorInputProps<OnChangeData>) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ColorInputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const ColorInputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../ColorInput/ColorInput").ColorInputProps<unknown>, "onBlur" | "name" | "value" | "onChangeColor"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<never> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
|
-
import type { FileInputProps } from '
|
|
3
|
+
import type { FileInputProps } from '../Input/FileInput/FileInput';
|
|
4
4
|
type Props<Values extends FieldValues, Name extends FieldPath<Values> = FieldPath<Values>> = Omit<FileInputProps<unknown>, 'name' | 'onBlur' | 'ref' | 'value' | '__allowChildren' | 'children' | 'onChangeFile' | 'error'> & {
|
|
5
5
|
name: Name;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const InputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const InputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Input/Input").InputProps<unknown, unknown, unknown>, "onBlur" | "name" | "value" | "onChangeText"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<HTMLInputElement> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const MultipleFileInputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const MultipleFileInputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Input/FileInput/MultipleFileInput").MultipleFileInputProps<unknown>, "onBlur" | "name" | "value" | "onChangeFiles"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<never> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PasswordInputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const PasswordInputController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Input/PasswordInput/PasswordInput").PasswordInputProps<unknown, unknown, unknown>, "onBlur" | "name" | "value" | "onChangeText"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<HTMLInputElement> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SelectController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const SelectController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Select/Select").SelectProps<unknown>, "onBlur" | "name" | "value" | "onChangeValue"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<never> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SliderController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const SliderController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Slider/Slider").SliderProps<unknown, unknown, unknown>, "onBlur" | "name" | "value" | "onChangeValue"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<never> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SwitchController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const SwitchController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Switch/Switch").SwitchProps<unknown>, "onBlur" | "name" | "value" | "onChangeChecked"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<never> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TextareaController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("
|
|
1
|
+
export declare const TextareaController: <Values extends import("react-hook-form").FieldValues, Name extends import("react-hook-form").Path<Values> = import("react-hook-form").Path<Values>>({ name, ref, ...otherProps }: Omit<import("../Textarea/Textarea").TextareaProps<unknown, unknown>, "onBlur" | "name" | "value" | "onChangeText"> & {
|
|
2
2
|
name: Name;
|
|
3
3
|
} & {
|
|
4
4
|
ref?: import("react").ForwardedRef<HTMLTextAreaElement> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: ({ error, inline }: import("
|
|
3
|
+
component: ({ error, inline }: import("./FormError").FormErrorProps) => import("react").JSX.Element | null;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: ({ error, inline }: import("
|
|
3
|
+
component: ({ error, inline }: import("./Error/FormError").FormErrorProps) => import("react").JSX.Element | null;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { FileType } from '
|
|
3
|
-
import type { Listener } from '
|
|
4
|
-
import type { MultipleFileInputProps } from '
|
|
5
|
-
import type { Override } from '
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
2
|
+
import type { FileType } from './FileType';
|
|
3
|
+
import type { Listener } from '../../../Hooks/useListener';
|
|
4
|
+
import type { MultipleFileInputProps } from './MultipleFileInput';
|
|
5
|
+
import type { Override } from '../../../../TypeHelpers';
|
|
6
|
+
import type { RbmComponentProps } from '../../../RbmComponentProps';
|
|
7
7
|
export type FileInputProps<OnChangeFileData> = RbmComponentProps<Override<Omit<MultipleFileInputProps<unknown>, 'onChangeFiles' | 'maxFiles' | 'onChangeFilesData' | 'mimeTypes' | 'showDeleteButton'>, {
|
|
8
8
|
value?: FileType;
|
|
9
9
|
mimeType?: string | string[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { InputHTMLAttributes } from 'react';
|
|
3
|
-
import type { FileType } from '
|
|
4
|
-
import type { Listener } from '
|
|
5
|
-
import type { Override } from '
|
|
6
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { FileType } from './FileType';
|
|
4
|
+
import type { Listener } from '../../../Hooks/useListener';
|
|
5
|
+
import type { Override } from '../../../../TypeHelpers';
|
|
6
|
+
import type { RbmComponentProps } from '../../../RbmComponentProps';
|
|
7
7
|
export type MultipleFileInputProps<OnChangeFilesData> = RbmComponentProps<Override<Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'onChange' | 'value'>, {
|
|
8
8
|
value: FileType[];
|
|
9
9
|
label?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { InputProps } from '
|
|
2
|
+
import type { InputProps } from './Input';
|
|
3
3
|
export type HiddenInputProps<OnChangeType, OnBlurData, OnChangeEndData> = InputProps<OnChangeType, OnBlurData, OnChangeEndData> & {
|
|
4
4
|
noFocusHint?: boolean;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData, OnBlurData, OnChangeEndData>({ noFocusHint, className, ...props }: import("
|
|
3
|
+
component: <OnChangeData, OnBlurData, OnChangeEndData>({ noFocusHint, className, ...props }: import("./HiddenInput").HiddenInputProps<OnChangeData, OnBlurData, OnChangeEndData>) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ForwardedRef, InputHTMLAttributes } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
4
|
-
import type { Override } from '
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
|
+
import type { Override } from '../../../TypeHelpers';
|
|
5
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
6
6
|
export type InputProps<OnChangeData, OnBlurData, OnChangeDoneData> = RbmComponentProps<Override<Omit<InputHTMLAttributes<HTMLInputElement>, 'onInput'>, {
|
|
7
7
|
label?: string;
|
|
8
8
|
inline?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData, OnBlurData, OnChangeDoneData>({ label, className, style, onKeyDown, inline, value, error, onChangeText, onEnter, ref, ...otherProps }: import("
|
|
3
|
+
component: <OnChangeData, OnBlurData, OnChangeDoneData>({ label, className, style, onKeyDown, inline, value, error, onChangeText, onEnter, ref, ...otherProps }: import("./Input").InputProps<OnChangeData, OnBlurData, OnChangeDoneData>) => import("react").JSX.Element;
|
|
4
4
|
argTypes: {
|
|
5
5
|
type: {
|
|
6
6
|
control: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DistributiveOmit } from '
|
|
2
|
+
import type { DistributiveOmit } from '../../../../helper/DistributiveOmit';
|
|
3
3
|
import type { ForwardedRef } from 'react';
|
|
4
|
-
import type { InputProps } from '
|
|
4
|
+
import type { InputProps } from '../Input';
|
|
5
5
|
export type PasswordInputProps<OnChangeData, OnBlurData, OnChangeEndData> = DistributiveOmit<InputProps<OnChangeData, OnBlurData, OnChangeEndData>, 'type' | 'onChangeText' | 'onEnter'> & {
|
|
6
6
|
onChangeText?: (newText: string) => void;
|
|
7
7
|
onEnter?: (newText: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData, OnBlurData, OnChangeEndData>({ className, style, ref, ...props }: import("
|
|
3
|
+
component: <OnChangeData, OnBlurData, OnChangeEndData>({ className, style, ref, ...props }: import("./PasswordInput").PasswordInputProps<OnChangeData, OnBlurData, OnChangeEndData>) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
4
|
-
import type { RbmComponentProps } from '
|
|
5
|
-
import type { SelectOption } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
5
|
+
import type { SelectOption } from '../Select/Select';
|
|
6
6
|
export type SearchSelectInputProps<OnChangeData> = RbmComponentProps<{
|
|
7
7
|
label?: string;
|
|
8
8
|
options: SelectOption[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { StoryObj } from '@storybook/react-vite';
|
|
3
|
-
import type { SearchSelectInputProps } from '
|
|
3
|
+
import type { SearchSelectInputProps } from './SearchSelectInput';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
component: <OnChangeData>({ label, options, values, onChangeValue, className, renderSelectableOptions, renderSelectedOption, showSelectedOptions, closeOnSelect, enableSearch, allowDeselect, style, }: SearchSelectInputProps<OnChangeData>) => React.JSX.Element;
|
|
6
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { SelectHTMLAttributes } from 'react';
|
|
3
|
-
import type { Override } from '
|
|
4
|
-
import type { RbmComponentProps } from '
|
|
5
|
-
import type { OptionalListener } from '
|
|
3
|
+
import type { Override } from '../../../TypeHelpers';
|
|
4
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
5
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
6
6
|
export type SelectOption<ValueType = string> = {
|
|
7
7
|
label: string;
|
|
8
8
|
value: ValueType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData>({ label, options, className, style, onChangeValue, inline, small, error, useNumericValues, ...otherProps }: import("
|
|
3
|
+
component: <OnChangeData>({ label, options, className, style, onChangeValue, inline, small, error, useNumericValues, ...otherProps }: import("./Select").SelectProps<OnChangeData>) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { InputHTMLAttributes } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
4
|
-
import type { Override } from '
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
|
+
import type { Override } from '../../../TypeHelpers';
|
|
5
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
6
6
|
export type SliderProps<OnChangeData, OnChangeValueData, OnChangeDoneData> = RbmComponentProps<Override<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>, {
|
|
7
7
|
value?: number;
|
|
8
8
|
stopPropagation?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData, OnChangeValueData, OnChangeDoneData>({ className, style, stopPropagation, ...props }: import("
|
|
3
|
+
component: <OnChangeData, OnChangeValueData, OnChangeDoneData>({ className, style, stopPropagation, ...props }: import("./Slider").SliderProps<OnChangeData, OnChangeValueData, OnChangeDoneData>) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { InputHTMLAttributes } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
4
|
-
import type { Override } from '
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
|
+
import type { Override } from '../../../TypeHelpers';
|
|
5
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
6
6
|
export type SwitchProps<OnChangeCheckedData> = RbmComponentProps<Override<InputHTMLAttributes<HTMLInputElement>, {
|
|
7
7
|
preLabel?: string;
|
|
8
8
|
label?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: <OnChangeCheckedData>({ children, label, preLabel, isLabelBeforeSwitch, isDual, stopPropagation, id, className, classNamePreLabel, classNameLabel, style, error, onChange, ...props }: import("
|
|
4
|
+
component: <OnChangeCheckedData>({ children, label, preLabel, isLabelBeforeSwitch, isDual, stopPropagation, id, className, classNamePreLabel, classNameLabel, style, error, onChange, ...props }: import("./Switch").SwitchProps<OnChangeCheckedData>) => React.JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default meta;
|
|
7
7
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CSSProperties, ForwardedRef, TextareaHTMLAttributes } from 'react';
|
|
3
|
-
import type { OptionalListener } from '
|
|
4
|
-
import type { Override } from '
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
3
|
+
import type { OptionalListener } from '../../Hooks/useListener';
|
|
4
|
+
import type { Override } from '../../../TypeHelpers';
|
|
5
|
+
import type { RbmComponentProps } from '../../RbmComponentProps';
|
|
6
6
|
export type TextareaProps<OnChangeData, OnChangeDoneData> = RbmComponentProps<Override<TextareaHTMLAttributes<HTMLTextAreaElement>, {
|
|
7
7
|
label?: string;
|
|
8
8
|
onChangeText?: (newText: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: <OnChangeData, OnChangeDoneData>({ label, className, style, onKeyUp, onChangeText, onEnter, onEscape, textareaStyles, containerRef, ref, error, ...otherProps }: import("
|
|
3
|
+
component: <OnChangeData, OnChangeDoneData>({ label, className, style, onKeyUp, onChangeText, onEnter, onEscape, textareaStyles, containerRef, ref, error, ...otherProps }: import("./Textarea").TextareaProps<OnChangeData, OnChangeDoneData>) => import("react").JSX.Element;
|
|
4
4
|
};
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
import type { Override } from '
|
|
5
|
-
import type { RbmComponentProps } from '
|
|
4
|
+
import type { Override } from '../../TypeHelpers';
|
|
5
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
6
6
|
import IntrinsicElements = JSX.IntrinsicElements;
|
|
7
7
|
export type FullScreenProps<AsType extends keyof IntrinsicElements> = RbmComponentProps<Override<ComponentPropsWithoutRef<AsType>, {
|
|
8
8
|
as?: AsType;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
3
|
+
import type { IconDefinition } from '@fortawesome/free-regular-svg-icons';
|
|
4
|
+
import type { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
5
|
+
import type { Override } from '../../TypeHelpers';
|
|
6
|
+
import type { RbmComponentProps } from '../RbmComponentProps';
|
|
7
|
+
import type { Ref } from 'react';
|
|
8
|
+
export type IconSource = IconProp | string | IconDefinition;
|
|
9
|
+
export type IconProps = RbmComponentProps<Override<FontAwesomeIconProps, {
|
|
10
|
+
noMargin?: boolean;
|
|
11
|
+
icon: IconSource;
|
|
12
|
+
alt?: string;
|
|
13
|
+
ref?: Ref<HTMLImageElement | null>;
|
|
14
|
+
}>>;
|
|
15
|
+
export declare const BaseIcon: ({ icon, alt, className, noMargin, style, ref, ...props }: IconProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: ({ secondIcon, secondIconColor, color, ...otherProps }: import("
|
|
3
|
+
component: ({ secondIcon, secondIconColor, color, ...otherProps }: import("./DoubleIcon").DoubleIconProps) => import("react").JSX.Element;
|
|
4
4
|
argTypes: {
|
|
5
5
|
icon: {
|
|
6
6
|
options: string[];
|