@ainias42/react-bootstrap-mobile 0.1.15 → 0.1.17
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/bin/updateCopies.js +9 -5
- package/bootstrapReactMobile.ts +13 -2
- package/dist/bootstrapReactMobile.d.ts +13 -2
- package/dist/bootstrapReactMobile.js +992 -395
- package/dist/bootstrapReactMobile.js.map +1 -1
- package/dist/src/Components/Clickable/Clickable.d.ts +7 -3
- package/dist/src/Components/Dialog/DialogBackground.d.ts +4 -5
- package/dist/src/Components/Dialog/DialogContainer.d.ts +7 -3
- package/dist/src/Components/DragAndDrop/DragItem.d.ts +1 -1
- package/dist/src/Components/Flavor.d.ts +4 -0
- package/dist/src/Components/FormElements/Button/Button.d.ts +8 -4
- package/dist/src/Components/FormElements/Button/ButtonType.d.ts +4 -0
- package/dist/src/Components/FormElements/Input/FileInput/FileInput.d.ts +12 -0
- package/dist/src/Components/FormElements/Input/FileInput/FileType.d.ts +7 -0
- package/dist/src/Components/FormElements/Input/FileInput/MultipleFileInput.d.ts +17 -0
- package/dist/src/Components/FormElements/Select/Select.d.ts +2 -1
- package/dist/src/Components/FormElements/Switch/Switch.d.ts +4 -4
- package/dist/src/Components/Hooks/useMousePosition.d.ts +5 -0
- package/dist/src/Components/Hooks/useWindowDimensions.d.ts +4 -0
- package/dist/src/Components/Icon/Icon.d.ts +2 -3
- package/dist/src/Components/Layout/Grid/Grid.d.ts +2 -1
- package/dist/src/Components/Layout/Grid/GridItem.d.ts +4 -1
- package/dist/src/Components/Menu/HoverMenu.d.ts +9 -0
- package/dist/src/Components/Menu/Menu.d.ts +16 -7
- package/dist/src/Components/Menu/MenuCloseContext.d.ts +3 -0
- package/dist/src/Components/Menu/MenuDivider.d.ts +2 -0
- package/dist/src/Components/Menu/MenuItem.d.ts +23 -0
- package/dist/src/Components/Menu/Submenu.d.ts +12 -0
- package/dist/src/Components/Menu/useMenu.d.ts +1 -1
- package/dist/src/Components/RbmComponentProps.d.ts +4 -0
- package/dist/src/Components/Text/Text.d.ts +1 -0
- package/dist/src/ListRow/ListRow.d.ts +1 -0
- package/package.json +8 -7
- package/src/Components/Clickable/Clickable.tsx +135 -19
- package/src/Components/Dialog/DialogBackground.tsx +5 -8
- package/src/Components/Dialog/DialogContainer.tsx +12 -8
- package/src/Components/Dialog/DialogContext.ts +1 -2
- package/src/Components/Dialog/dialogBackground.scss +5 -1
- package/src/Components/DragAndDrop/DragItem.tsx +7 -7
- package/src/Components/DragAndDrop/DropArea.tsx +2 -1
- package/src/Components/Flavor.ts +4 -0
- package/src/Components/FormElements/Button/Button.tsx +31 -13
- package/src/Components/FormElements/Button/ButtonType.ts +4 -0
- package/src/Components/FormElements/Button/button.scss +22 -5
- package/src/Components/FormElements/Input/FileInput/FileInput.tsx +55 -0
- package/src/Components/FormElements/Input/FileInput/FileType.ts +1 -0
- package/src/Components/FormElements/Input/FileInput/MultipleFileInput.tsx +281 -0
- package/src/Components/FormElements/{ImageInput/imageInput.scss → Input/FileInput/fileInput.scss} +37 -7
- package/src/Components/FormElements/Input/input.scss +1 -1
- package/src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx +2 -2
- package/src/Components/FormElements/SearchSelectInput/seachSelectInput.scss +1 -1
- package/src/Components/FormElements/Select/Select.tsx +3 -2
- package/src/Components/FormElements/Select/select.scss +5 -0
- package/src/Components/FormElements/Switch/Switch.tsx +9 -8
- package/src/Components/FormElements/Switch/switch.scss +1 -0
- package/src/Components/Hooks/useMousePosition.ts +13 -0
- package/src/Components/Hooks/useWindowDimensions.ts +17 -0
- package/src/Components/Icon/Icon.tsx +18 -14
- package/src/Components/Icon/icon.scss +9 -0
- package/src/Components/Layout/Grid/Grid.tsx +3 -2
- package/src/Components/Layout/Grid/GridItem.tsx +16 -1
- package/src/Components/Layout/Grid/grid.scss +113 -36
- package/src/Components/Menu/HoverMenu.tsx +82 -0
- package/src/Components/Menu/Menu.tsx +101 -47
- package/src/Components/Menu/MenuCloseContext.ts +10 -0
- package/src/Components/Menu/MenuDivider.tsx +22 -0
- package/src/Components/Menu/MenuItem.tsx +95 -0
- package/src/Components/Menu/Submenu.tsx +101 -0
- package/src/Components/Menu/menu.scss +99 -10
- package/src/Components/Menu/useMenu.ts +1 -1
- package/src/Components/RbmComponentProps.ts +6 -0
- package/src/Components/Text/Text.tsx +1 -0
- package/src/Components/Text/text.scss +13 -5
- package/src/ListRow/ListRow.tsx +20 -0
- package/src/WrongChildError.ts +0 -2
- package/src/scss/_colors.scss +1 -1
- package/src/scss/_flavorMixin.scss +10 -0
- package/dist/src/Components/FormElements/ImageInput/ImageInput.d.ts +0 -18
- package/dist/src/Components/FormElements/ImageInput/MultipleFileInput.d.ts +0 -21
- package/src/Components/FormElements/ImageInput/ImageInput.tsx +0 -98
- package/src/Components/FormElements/ImageInput/MultipleFileInput.tsx +0 -240
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { RbmComponentProps } from '../RbmComponentProps';
|
|
2
2
|
import { OptionalListener } from '../Hooks/useListener';
|
|
3
|
+
import { MouseEvent as ReactMouseEvent, MouseEvent } from 'react';
|
|
3
4
|
type OnClickListener<Data> = OptionalListener<'onClick', Data>;
|
|
4
5
|
type OnMouseDownListener<Data> = OptionalListener<'onMouseDown', Data>;
|
|
5
6
|
type OnMouseUpListener<Data> = OptionalListener<'onMouseUp', Data>;
|
|
6
7
|
type OnMouseMoveListener<Data> = OptionalListener<'onMouseMove', Data>;
|
|
7
|
-
|
|
8
|
+
type OnDropListener<Data> = OptionalListener<'onDrop', Data>;
|
|
9
|
+
type OnDragOverListener<Data> = OptionalListener<'onDragOver', Data>;
|
|
10
|
+
export type ClickableProps<OnClickData, OnMouseDownData, OnMouseMoveData, OnMouseUpData, OnClickCaptureData, OnDropData, OnDragOverData, OnMouseEnterData, OnMouseLeaveData, OnDoubleClickData, HrefType extends string | undefined> = RbmComponentProps<{
|
|
8
11
|
interactable?: boolean;
|
|
9
12
|
href?: HrefType;
|
|
10
13
|
preventDefault?: boolean;
|
|
11
14
|
stopPropagation?: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
useReactOnMouseLeave?: boolean;
|
|
16
|
+
} & OnClickListener<OnClickData> & OnMouseDownListener<OnMouseDownData> & OnMouseMoveListener<OnMouseMoveData> & OnMouseUpListener<OnMouseUpData> & OnDropListener<OnDropData> & OnDragOverListener<OnDragOverData> & OptionalListener<'onClickCapture', OnClickCaptureData> & OptionalListener<'onMouseEnter', OnMouseEnterData> & OptionalListener<'onMouseLeave', OnMouseLeaveData, MouseEvent | ReactMouseEvent> & OptionalListener<'onDoubleClick', OnDoubleClickData>>;
|
|
17
|
+
declare const ClickableMemo: import("../../helper/withForwardRef").RefComponent<ClickableProps<unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, string | undefined>, HTMLAnchorElement | HTMLSpanElement>;
|
|
14
18
|
export { ClickableMemo as Clickable };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const
|
|
7
|
-
export { DialogBackgroundMemo as DialogBackground };
|
|
3
|
+
export type DialogBackgroundProps = RbmComponentProps<{
|
|
4
|
+
title?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const DialogBackground: ({ children, className, style, title }: DialogBackgroundProps) => React.JSX.Element;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { ShowDialog } from './DialogContext';
|
|
3
4
|
import { EmptyProps } from '../../helper/EmptyProps';
|
|
4
5
|
export type DialogContainerProps = PropsWithChildren<EmptyProps>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export type DialogContainerRef = {
|
|
7
|
+
showDialog: ShowDialog;
|
|
8
|
+
};
|
|
9
|
+
export declare const DialogContainer: import("../../helper/withForwardRef").RefComponent<{
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}, DialogContainerRef>;
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { RbmComponentProps, WithNoStringAndChildrenProps } from '../RbmComponentProps';
|
|
3
3
|
import { DraggableProps } from 'react-beautiful-dnd';
|
|
4
4
|
export type DragItemProps = RbmComponentProps<Omit<DraggableProps, 'children'>, WithNoStringAndChildrenProps>;
|
|
5
|
-
declare function DragItem({ children, ...dragProps }: DragItemProps): React.JSX.Element;
|
|
5
|
+
declare function DragItem({ children, className, ...dragProps }: DragItemProps): React.JSX.Element;
|
|
6
6
|
declare const DragItemMemo: typeof DragItem;
|
|
7
7
|
export { DragItemMemo as DragItem };
|
|
@@ -3,7 +3,11 @@ import { Override } from '@ainias42/js-helper';
|
|
|
3
3
|
import { OptionalListener } from '../../Hooks/useListener';
|
|
4
4
|
import { HTMLAttributes } from 'react';
|
|
5
5
|
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { ButtonType } from "./ButtonType";
|
|
7
|
+
import { Flavor } from "../../Flavor";
|
|
8
|
+
export type ButtonProps<ClickData> = RbmComponentProps<Override<HTMLAttributes<HTMLButtonElement>, {
|
|
9
|
+
type?: ButtonType;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
flavor?: Flavor;
|
|
12
|
+
} & OptionalListener<'onClick', ClickData>>>;
|
|
13
|
+
export declare const Button: <ClickData>({ children, className, disabled, flavor, type, ...props }: ButtonProps<ClickData>) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RbmComponentProps } from '../../../RbmComponentProps';
|
|
3
|
+
import { Override } from '../../../../TypeHelpers';
|
|
4
|
+
import { Listener } from '../../../Hooks/useListener';
|
|
5
|
+
import { FileType } from "./FileType";
|
|
6
|
+
import { MultipleFileInputProps } from "./MultipleFileInput";
|
|
7
|
+
export type FileInputProps<OnChangeFileData> = RbmComponentProps<Override<Omit<MultipleFileInputProps<unknown>, "onChangeFiles" | "maxFiles" | "onChangeFilesData" | "mimeTypes" | "showDeleteButton">, {
|
|
8
|
+
value?: FileType;
|
|
9
|
+
mimeType?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
} & Listener<'onChangeFile', OnChangeFileData, FileType | undefined>>>;
|
|
12
|
+
export declare const FileInput: <OnChangeData>({ value, mimeType, required, ...otherProps }: FileInputProps<OnChangeData>) => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RbmComponentProps } from '../../../RbmComponentProps';
|
|
3
|
+
import { Override } from '../../../../TypeHelpers';
|
|
4
|
+
import { InputHTMLAttributes } from 'react';
|
|
5
|
+
import { Listener } from '../../../Hooks/useListener';
|
|
6
|
+
import { FileType } from "./FileType";
|
|
7
|
+
export type MultipleFileInputProps<OnChangeFilesData> = RbmComponentProps<Override<Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'onChange' | 'value'>, {
|
|
8
|
+
value: FileType[];
|
|
9
|
+
label?: string;
|
|
10
|
+
mimeTypes?: string[];
|
|
11
|
+
maxFiles?: number;
|
|
12
|
+
maxSizePerFile?: number;
|
|
13
|
+
onError?: (error: string) => void;
|
|
14
|
+
allowOverride?: boolean;
|
|
15
|
+
showDeleteButton?: boolean;
|
|
16
|
+
} & Listener<'onChangeFiles', OnChangeFilesData, FileType[]>>>;
|
|
17
|
+
export declare const MultipleFileInput: <OnChangeData>({ className, style, value, label, mimeTypes, maxFiles, maxSizePerFile, allowOverride, onError, showDeleteButton, ...otherProps }: MultipleFileInputProps<OnChangeData>) => React.JSX.Element;
|
|
@@ -13,5 +13,6 @@ export type SelectProps<OnChangeData> = RbmComponentProps<Override<SelectHTMLAtt
|
|
|
13
13
|
options: SelectOption[];
|
|
14
14
|
onChangeValue?: (newValue: string) => void;
|
|
15
15
|
inline?: boolean;
|
|
16
|
+
small?: boolean;
|
|
16
17
|
} & OptionalListener<'onChange', OnChangeData>>>;
|
|
17
|
-
export declare const Select: <OnChangeData>({ label, options, className, style, onChangeValue, inline, ...otherProps }: SelectProps<OnChangeData>) => React.JSX.Element;
|
|
18
|
+
export declare const Select: <OnChangeData>({ label, options, className, style, onChangeValue, inline, small, ...otherProps }: SelectProps<OnChangeData>) => React.JSX.Element;
|
|
@@ -2,12 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { InputHTMLAttributes } from 'react';
|
|
3
3
|
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
4
4
|
import { Override } from '../../../TypeHelpers';
|
|
5
|
-
|
|
5
|
+
import { OptionalListener } from "../../Hooks/useListener";
|
|
6
|
+
export type SwitchProps<OnChangeCheckedData> = RbmComponentProps<Override<InputHTMLAttributes<HTMLInputElement>, {
|
|
6
7
|
preLabel?: string;
|
|
7
8
|
label?: string;
|
|
8
9
|
children?: string;
|
|
9
10
|
isLabelBeforeSwitch?: boolean;
|
|
10
11
|
isDual?: boolean;
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
export declare const Switch: ({ children, label, preLabel, isLabelBeforeSwitch, isDual, id, className, style, onChange, onChangeChecked, ...props }: SwitchProps) => React.JSX.Element;
|
|
12
|
+
} & OptionalListener<"onChangeChecked", OnChangeCheckedData, boolean>>>;
|
|
13
|
+
export declare const Switch: <OnChangeCheckedData>({ children, label, preLabel, isLabelBeforeSwitch, isDual, id, className, style, onChange, ...props }: SwitchProps<OnChangeCheckedData>) => React.JSX.Element;
|
|
@@ -6,9 +6,8 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
|
6
6
|
import { IconDefinition } from '@fortawesome/free-regular-svg-icons';
|
|
7
7
|
export type IconSource = IconProp | string | IconDefinition;
|
|
8
8
|
export type IconProps = RbmComponentProps<Override<FontAwesomeIconProps, {
|
|
9
|
+
noMargin?: boolean;
|
|
9
10
|
icon: IconSource;
|
|
10
11
|
alt?: string;
|
|
11
12
|
}>>;
|
|
12
|
-
declare
|
|
13
|
-
declare const IconMemo: typeof Icon;
|
|
14
|
-
export { IconMemo as Icon };
|
|
13
|
+
export declare const Icon: ({ icon, alt, className, noMargin, style, title, ...props }: IconProps) => React.JSX.Element;
|
|
@@ -3,7 +3,8 @@ import { RbmComponentProps } from '../../RbmComponentProps';
|
|
|
3
3
|
export type GridProps = RbmComponentProps<{
|
|
4
4
|
columns?: number;
|
|
5
5
|
rows?: number;
|
|
6
|
+
useContainerWidth?: boolean;
|
|
6
7
|
}>;
|
|
7
|
-
declare function Grid({ style, children, columns, rows, className, __allowChildren }: GridProps): React.JSX.Element;
|
|
8
|
+
declare function Grid({ style, children, columns, rows, useContainerWidth, className, __allowChildren }: GridProps): React.JSX.Element;
|
|
8
9
|
declare const GridMemo: typeof Grid;
|
|
9
10
|
export { GridMemo as Grid };
|
|
@@ -2,12 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import { RbmComponentProps } from '../../RbmComponentProps';
|
|
3
3
|
export type GridItemProps = RbmComponentProps<{
|
|
4
4
|
size: number;
|
|
5
|
+
xs?: number;
|
|
5
6
|
sm?: number;
|
|
6
7
|
md?: number;
|
|
7
8
|
lg?: number;
|
|
8
9
|
xl?: number;
|
|
9
10
|
xxl?: number;
|
|
10
11
|
print?: number;
|
|
12
|
+
startXxs?: number;
|
|
11
13
|
startXs?: number;
|
|
12
14
|
startSm?: number;
|
|
13
15
|
startMd?: number;
|
|
@@ -15,6 +17,7 @@ export type GridItemProps = RbmComponentProps<{
|
|
|
15
17
|
startXl?: number;
|
|
16
18
|
startXxl?: number;
|
|
17
19
|
startPrint?: number;
|
|
20
|
+
orderXxs?: number;
|
|
18
21
|
orderXs?: number;
|
|
19
22
|
orderSm?: number;
|
|
20
23
|
orderMd?: number;
|
|
@@ -23,6 +26,6 @@ export type GridItemProps = RbmComponentProps<{
|
|
|
23
26
|
orderXxl?: number;
|
|
24
27
|
orderPrint?: number;
|
|
25
28
|
}>;
|
|
26
|
-
declare function GridItem({ style, children, className, __allowChildren, size, sm, md, lg, xl, xxl, print, startXs, startMd, startSm, startLg, startXl, startXxl, startPrint, orderXs, orderSm, orderMd, orderLg, orderXxl, orderXl, orderPrint, }: GridItemProps): React.JSX.Element;
|
|
29
|
+
declare function GridItem({ style, children, className, __allowChildren, size, xs, sm, md, lg, xl, xxl, print, startXxs, startXs, startMd, startSm, startLg, startXl, startXxl, startPrint, orderXxs, orderXs, orderSm, orderMd, orderLg, orderXxl, orderXl, orderPrint, }: GridItemProps): React.JSX.Element;
|
|
27
30
|
declare const GridItemMemo: typeof GridItem;
|
|
28
31
|
export { GridItemMemo as GridItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RbmChildWithoutString, RbmComponentProps, WithNoStringAndChildrenProps } from "../RbmComponentProps";
|
|
3
|
+
export type HoverMenuProps = RbmComponentProps<{
|
|
4
|
+
items: RbmChildWithoutString;
|
|
5
|
+
openToSide?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}, WithNoStringAndChildrenProps>;
|
|
9
|
+
export declare const HoverMenu: ({ children, items, className, style, onClick, onClose, openToSide }: HoverMenuProps) => React.JSX.Element;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { RbmComponentProps
|
|
2
|
+
import { RbmComponentProps } from '../RbmComponentProps';
|
|
3
3
|
import { IconSource } from '../Icon/Icon';
|
|
4
|
-
export type
|
|
4
|
+
export type MenuItemType = {
|
|
5
5
|
label: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
icon?: IconSource | {
|
|
7
|
+
icon: IconSource;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
8
10
|
key: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
callback: () => void;
|
|
13
|
+
onMouseEnter?: () => void;
|
|
14
|
+
onMouseLeave?: () => void;
|
|
9
15
|
};
|
|
10
16
|
export type MenuProps = RbmComponentProps<{
|
|
11
|
-
items
|
|
17
|
+
items?: MenuItemType[];
|
|
12
18
|
x: number;
|
|
13
19
|
y: number;
|
|
14
20
|
isOpen: boolean;
|
|
15
21
|
onClose: () => void;
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
offsetX?: number;
|
|
23
|
+
offsetY?: number;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const MENU_CONTAINER_CLASS = "rbm-menu-container";
|
|
26
|
+
export declare const Menu: ({ className, style, items, y, x, isOpen, onClose, children, offsetY, offsetX, }: MenuProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconSource } from "../Icon/Icon";
|
|
2
|
+
import React, { ReactNode } from "react";
|
|
3
|
+
import { RbmComponentProps, WithChildren } from "../RbmComponentProps";
|
|
4
|
+
import Element = React.JSX.Element;
|
|
5
|
+
export type MenuItemProps<Item = undefined> = RbmComponentProps<{
|
|
6
|
+
icon?: IconSource;
|
|
7
|
+
iconColor?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: string | ReactNode;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
} & ({
|
|
13
|
+
onClick: (item: Item) => void;
|
|
14
|
+
onMouseEnter?: (item: Item) => void;
|
|
15
|
+
onMouseLeave?: (item: Item) => void;
|
|
16
|
+
item?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
onClick: (item: Item) => void;
|
|
19
|
+
onMouseEnter?: (item: Item) => void;
|
|
20
|
+
onMouseLeave?: (item: Item) => void;
|
|
21
|
+
item: Item;
|
|
22
|
+
}), WithChildren>;
|
|
23
|
+
export declare const MenuItem: <Item>({ children, icon, iconColor, className, onClick, onMouseEnter, onMouseLeave, active, item, disabled, ...props }: MenuItemProps<Item>) => Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RbmComponentProps, WithNoStringAndChildrenProps } from "../RbmComponentProps";
|
|
2
|
+
import { IconSource } from "../Icon/Icon";
|
|
3
|
+
import React from "react";
|
|
4
|
+
export type SubmenuProps = RbmComponentProps<{
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: IconSource;
|
|
7
|
+
iconColor?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onMouseEnter?: () => void;
|
|
10
|
+
onMouseLeave?: () => void;
|
|
11
|
+
}, WithNoStringAndChildrenProps>;
|
|
12
|
+
export declare const Submenu: ({ children, label, icon, iconColor, className, style, disabled, onMouseEnter, onMouseLeave, }: SubmenuProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { MenuProps } from './Menu';
|
|
3
|
-
export declare function useMenu(): readonly [(e: MouseEvent) => void, Omit<MenuProps, "items">];
|
|
3
|
+
export declare function useMenu(): readonly [(e: MouseEvent) => void, Omit<MenuProps, "children" | "items">];
|
|
@@ -18,6 +18,10 @@ export type WithNoStringAndChildrenProps = {
|
|
|
18
18
|
export type WithStringProps = {
|
|
19
19
|
children?: Recursive<string>;
|
|
20
20
|
};
|
|
21
|
+
export type WithChildren = {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
__allowChildren?: "text" | "all" | "html";
|
|
24
|
+
};
|
|
21
25
|
export type WithStringAndChildrenProps = {
|
|
22
26
|
children: Recursive<string>;
|
|
23
27
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ListRow: () => null;
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainias42/react-bootstrap-mobile",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Mobile React Components using Bootstrap",
|
|
5
5
|
"main": "dist/bootstrapReactMobile",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
8
|
"build": "node bin/build.js && webpack",
|
|
9
9
|
"build:production": "node bin/build.js && webpack --env production",
|
|
10
|
-
"update packages": "node bin/updateCopies.js"
|
|
10
|
+
"update packages": "node bin/updateCopies.js",
|
|
11
|
+
"typecheck": "tsc --no-emit"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
@@ -28,10 +29,10 @@
|
|
|
28
29
|
},
|
|
29
30
|
"homepage": "https://github.com/Ainias/Bootstrap-React-Mobile#readme",
|
|
30
31
|
"peerDependencies": {
|
|
31
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
32
|
-
"@fortawesome/free-regular-svg-icons": "^
|
|
33
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
34
|
-
"@fortawesome/react-fontawesome": "^0.
|
|
32
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
33
|
+
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
|
34
|
+
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
35
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
35
36
|
"react": ">=17.0.0",
|
|
36
37
|
"react-beautiful-dnd": "^13.1.1"
|
|
37
38
|
},
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
82
83
|
"classnames": "^2.3.1",
|
|
83
84
|
"isomorphic-style-loader": "^5.3.2",
|
|
84
|
-
"@ainias42/js-helper": ">=0.8.
|
|
85
|
+
"@ainias42/js-helper": ">=0.8.9",
|
|
85
86
|
"react-color": "^2.19.3",
|
|
86
87
|
"react-table": "^7.7.0",
|
|
87
88
|
"react-virtualized-auto-sizer": "^1.0.7",
|