@orioro/react-ui-core 0.0.0
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/README.md +1 -0
- package/dist/AppHeader/AppHeaderContext.d.ts +5 -0
- package/dist/AppHeader/Logo.d.ts +2 -0
- package/dist/AppHeader/Main.d.ts +2 -0
- package/dist/AppHeader/OverlayMenu.d.ts +13 -0
- package/dist/AppHeader/Root.d.ts +9 -0
- package/dist/AppHeader/index.d.ts +9 -0
- package/dist/AspectRatio/index.d.ts +10 -0
- package/dist/Box/Box.d.ts +27 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/Box/spacing.d.ts +23 -0
- package/dist/Button/Button.d.ts +302 -0
- package/dist/Button/ButtonList.d.ts +13 -0
- package/dist/Button/LinkButton.d.ts +309 -0
- package/dist/Button/index.d.ts +3 -0
- package/dist/CSSReset/index.d.ts +2 -0
- package/dist/ClickTarget/ClickTarget.d.ts +2 -0
- package/dist/ClickTarget/index.d.ts +2 -0
- package/dist/ClickTarget/makeClickTarget.d.ts +15 -0
- package/dist/Collapsible/index.d.ts +7 -0
- package/dist/Container/index.d.ts +12 -0
- package/dist/DataList/index.d.ts +12 -0
- package/dist/Debug/LabeledBox.d.ts +4 -0
- package/dist/Debug/RandomIcon.d.ts +2 -0
- package/dist/Debug/index.d.ts +9 -0
- package/dist/Debug/randomText.d.ts +1 -0
- package/dist/Debug/wait.d.ts +1 -0
- package/dist/Dialog/AuthDialog/AccountRecoveryForm.d.ts +9 -0
- package/dist/Dialog/AuthDialog/AuthDialog.d.ts +51 -0
- package/dist/Dialog/AuthDialog/LoginForm.d.ts +11 -0
- package/dist/Dialog/AuthDialog/SignUpForm.d.ts +14 -0
- package/dist/Dialog/AuthDialog/constants.d.ts +36 -0
- package/dist/Dialog/AuthDialog/index.d.ts +3 -0
- package/dist/Dialog/AuthDialog/useAuthDialog.d.ts +4 -0
- package/dist/Dialog/ConfirmDialog/ConfirmDialog.d.ts +10 -0
- package/dist/Dialog/ConfirmDialog/index.d.ts +2 -0
- package/dist/Dialog/ConfirmDialog/types.d.ts +14 -0
- package/dist/Dialog/ConfirmDialog/useConfirmDialog.d.ts +3 -0
- package/dist/Dialog/DialogSystem/DialogSystem.d.ts +11 -0
- package/dist/Dialog/DialogSystem/DialogSystemContext.d.ts +4 -0
- package/dist/Dialog/DialogSystem/_DialogSystemContext.d.ts +3 -0
- package/dist/Dialog/DialogSystem/index.d.ts +2 -0
- package/dist/Dialog/DialogSystem/tmpDialogSystem.d.ts +3 -0
- package/dist/Dialog/DialogSystem/types.d.ts +25 -0
- package/dist/Dialog/InfoDialog/InfoDialog.d.ts +9 -0
- package/dist/Dialog/InfoDialog/index.d.ts +3 -0
- package/dist/Dialog/InfoDialog/types.d.ts +18 -0
- package/dist/Dialog/InfoDialog/useInfoDialog.d.ts +4 -0
- package/dist/Dialog/LoadingDialog/LoadingDialog.d.ts +3 -0
- package/dist/Dialog/LoadingDialog/index.d.ts +3 -0
- package/dist/Dialog/LoadingDialog/types.d.ts +4 -0
- package/dist/Dialog/LoadingDialog/useLoadingDialog.d.ts +5 -0
- package/dist/Dialog/OptionsDialog/OptionsDialog.d.ts +3 -0
- package/dist/Dialog/OptionsDialog/index.d.ts +2 -0
- package/dist/Dialog/OptionsDialog/types.d.ts +24 -0
- package/dist/Dialog/OptionsDialog/useOptionsDialog.d.ts +3 -0
- package/dist/Dialog/PromptDialog/PromptDialog.d.ts +47 -0
- package/dist/Dialog/PromptDialog/index.d.ts +3 -0
- package/dist/Dialog/PromptDialog/isEqual.d.ts +1 -0
- package/dist/Dialog/PromptDialog/types.d.ts +22 -0
- package/dist/Dialog/PromptDialog/usePromptDialog.d.ts +4 -0
- package/dist/Dialog/constants.d.ts +1 -0
- package/dist/Dialog/createDialogSystem/createDialogSystem.d.ts +13 -0
- package/dist/Dialog/createDialogSystem/index.d.ts +2 -0
- package/dist/Dialog/createDialogSystem/proxyRef.d.ts +2 -0
- package/dist/Dialog/createDialogSystem/useDialog.d.ts +18 -0
- package/dist/Dialog/index.d.ts +8 -0
- package/dist/Dialog/useDialog/index.d.ts +6 -0
- package/dist/DotDotDot/index.d.ts +3 -0
- package/dist/Editable/EditableContext.d.ts +3 -0
- package/dist/Editable/EditableField.d.ts +3 -0
- package/dist/Editable/EditableRoot.d.ts +3 -0
- package/dist/Editable/index.d.ts +10 -0
- package/dist/Editable/types.d.ts +26 -0
- package/dist/ErrorDisplay/ErrorDisplay.d.ts +3 -0
- package/dist/ErrorDisplay/ErrorHandlingContext.d.ts +27 -0
- package/dist/ErrorDisplay/index.d.ts +3 -0
- package/dist/ErrorDisplay/types.d.ts +34 -0
- package/dist/EvenSpacedList/EvenSpacedList.d.ts +46 -0
- package/dist/EvenSpacedList/evenSpacedListStyles.d.ts +11 -0
- package/dist/EvenSpacedList/index.d.ts +1 -0
- package/dist/FileDropzone/index.d.ts +18 -0
- package/dist/FileIcon/index.d.ts +8 -0
- package/dist/FilePreview/FileThumb.d.ts +7 -0
- package/dist/FilePreview/index.d.ts +9 -0
- package/dist/Flex/Flex.d.ts +46 -0
- package/dist/Flex/flexBaseStyles.d.ts +13 -0
- package/dist/Flex/flexGapStyles.d.ts +11 -0
- package/dist/Flex/index.d.ts +4 -0
- package/dist/Flex/types.d.ts +8 -0
- package/dist/FlexGrid/FlexGrid.d.ts +21 -0
- package/dist/FlexGrid/index.d.ts +1 -0
- package/dist/HoverElement/Container.d.ts +7 -0
- package/dist/HoverElement/Element.d.ts +3 -0
- package/dist/HoverElement/index.d.ts +10 -0
- package/dist/HoverElement/types.d.ts +7 -0
- package/dist/Image/Image.d.ts +12 -0
- package/dist/Image/ImageWithFallback.d.ts +8 -0
- package/dist/Image/index.d.ts +2 -0
- package/dist/Input/ArrayInput/ArrayInputContext.d.ts +19 -0
- package/dist/Input/ArrayInput/DefaultItemComponent.d.ts +3 -0
- package/dist/Input/ArrayInput/FloatingControls.d.ts +6 -0
- package/dist/Input/ArrayInput/ValueList.d.ts +5 -0
- package/dist/Input/ArrayInput/ValueList_Virtualized_POC.d.ts +5 -0
- package/dist/Input/ArrayInput/index.d.ts +3 -0
- package/dist/Input/ArrayInput/types.d.ts +41 -0
- package/dist/Input/BooleanCheckboxInput/index.d.ts +8 -0
- package/dist/Input/CheckboxSelectInput/index.d.ts +12 -0
- package/dist/Input/DateTimeInput/index.d.ts +12 -0
- package/dist/Input/ErrorDisplay/index.d.ts +2 -0
- package/dist/Input/INPUTS.d.ts +1 -0
- package/dist/Input/Input/Input.d.ts +4 -0
- package/dist/Input/Input/index.d.ts +2 -0
- package/dist/Input/Input/types.d.ts +2 -0
- package/dist/Input/InputGrid/index.d.ts +19 -0
- package/dist/Input/InputLayout/index.d.ts +11 -0
- package/dist/Input/MarkdownInput/index.d.ts +2 -0
- package/dist/Input/MultiFileInput/index.d.ts +16 -0
- package/dist/Input/ObjectInput/index.d.ts +21 -0
- package/dist/Input/RadioSelectInput/index.d.ts +13 -0
- package/dist/Input/RichTextInput/RichTextInput.d.ts +543 -0
- package/dist/Input/RichTextInput/RichTextInput_20240730_backup_NO_MARKDOWN.d.ts +543 -0
- package/dist/Input/RichTextInput/index.d.ts +2 -0
- package/dist/Input/RichTextInput/types.d.ts +13 -0
- package/dist/Input/SingleFileInput/index.d.ts +7 -0
- package/dist/Input/TextInput/index.d.ts +39 -0
- package/dist/Input/TextInput/parseValidator.d.ts +3 -0
- package/dist/Input/TextInput/types.d.ts +16 -0
- package/dist/Input/TextInput/useTextInput.d.ts +32 -0
- package/dist/Input/TextareaInput/index.d.ts +36 -0
- package/dist/Input/index.d.ts +16 -0
- package/dist/Input/types.d.ts +28 -0
- package/dist/Input/useValidation/index.d.ts +1 -0
- package/dist/Input/useValidation/useValidation.d.ts +13 -0
- package/dist/Input/util/index.d.ts +12 -0
- package/dist/Input/util/omitInputProps.d.ts +8 -0
- package/dist/Input/valueUtil/diff.d.ts +9 -0
- package/dist/Input/valueUtil/index.d.ts +2 -0
- package/dist/Input/valueUtil/strValue.d.ts +1 -0
- package/dist/LanguageSelector/index.d.ts +11 -0
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +7 -0
- package/dist/LoadingIndicator/LoadingOverlay.d.ts +6 -0
- package/dist/LoadingIndicator/index.d.ts +2 -0
- package/dist/LocalImagePreview/index.d.ts +6 -0
- package/dist/Markdown/index.d.ts +4 -0
- package/dist/Menu/ButtonBarMenu/MenuItem.d.ts +9 -0
- package/dist/Menu/ButtonBarMenu/index.d.ts +13 -0
- package/dist/Menu/ButtonBarMenu/types.d.ts +8 -0
- package/dist/Menu/DropdownMenu/MenuItem.d.ts +9 -0
- package/dist/Menu/DropdownMenu/index.d.ts +16 -0
- package/dist/Menu/DropdownMenu/types.d.ts +6 -0
- package/dist/Menu/constants.d.ts +1 -0
- package/dist/Menu/index.d.ts +4 -0
- package/dist/Menu/parseMenuItems.d.ts +2 -0
- package/dist/Menu/resolveOptions.d.ts +8 -0
- package/dist/Menu/types.d.ts +31 -0
- package/dist/Output/ArrayOutput/index.d.ts +5 -0
- package/dist/Output/BooleanCheckboxOutput/index.d.ts +4 -0
- package/dist/Output/CheckboxSelectOutput/index.d.ts +2 -0
- package/dist/Output/DateTimeOutput/index.d.ts +7 -0
- package/dist/Output/EmailOutput/index.d.ts +4 -0
- package/dist/Output/FileOutput/index.d.ts +2 -0
- package/dist/Output/LabeledLayout/index.d.ts +10 -0
- package/dist/Output/MarkdownOutput/index.d.ts +4 -0
- package/dist/Output/MultiFileOutput/index.d.ts +2 -0
- package/dist/Output/OUTPUTS.d.ts +1 -0
- package/dist/Output/ObjectOutput/index.d.ts +12 -0
- package/dist/Output/Output/Output.d.ts +3 -0
- package/dist/Output/Output/index.d.ts +1 -0
- package/dist/Output/RichTextOutput/index.d.ts +2 -0
- package/dist/Output/SelectOutput/index.d.ts +2 -0
- package/dist/Output/TextOutput/index.d.ts +4 -0
- package/dist/Output/TextareaOutput/index.d.ts +4 -0
- package/dist/Output/UrlOutput/index.d.ts +4 -0
- package/dist/Output/index.d.ts +14 -0
- package/dist/Output/types.d.ts +6 -0
- package/dist/Output/withPlaceholder/index.d.ts +8 -0
- package/dist/PromptPopover/PromptPopover.d.ts +11 -0
- package/dist/PromptPopover/index.d.ts +1 -0
- package/dist/PromptPopover/types.d.ts +9 -0
- package/dist/Responsive/Responsive.d.ts +5 -0
- package/dist/Responsive/index.d.ts +4 -0
- package/dist/Responsive/responsiveStyles.d.ts +2 -0
- package/dist/Responsive/transformResponsiveValue.d.ts +2 -0
- package/dist/Responsive/types.d.ts +12 -0
- package/dist/RichText/index.d.ts +2 -0
- package/dist/RichTextRenderer/BlockRenderer.d.ts +10 -0
- package/dist/RichTextRenderer/InlineContentRenderer.d.ts +8 -0
- package/dist/RichTextRenderer/RendererContext.d.ts +3 -0
- package/dist/RichTextRenderer/RichTextRenderer.d.ts +3 -0
- package/dist/RichTextRenderer/Unsupported.d.ts +2 -0
- package/dist/RichTextRenderer/groupListItems.d.ts +10 -0
- package/dist/RichTextRenderer/index.d.ts +4 -0
- package/dist/RichTextRenderer/renderers/Block/Heading.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/Block/Image.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/Block/Table.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/InlineContent/Link.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/InlineContent/StyledText.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/index.d.ts +2 -0
- package/dist/RichTextRenderer/types/blocknote.d.ts +74 -0
- package/dist/RichTextRenderer/types/index.d.ts +18 -0
- package/dist/RichTextRenderer/types/lists.d.ts +13 -0
- package/dist/RichTextRenderer/util/index.d.ts +5 -0
- package/dist/RichTextRenderer/util/richTextIsEmpty.d.ts +2 -0
- package/dist/RichTextRenderer/util/richTextToPlainText.d.ts +2 -0
- package/dist/RichTextRenderer/util/richTextTrimEmptyBlocks.d.ts +2 -0
- package/dist/RichTextRenderer/util/simpleBlockRenderer.d.ts +10 -0
- package/dist/RichTextRenderer/util/toDataProps.d.ts +3 -0
- package/dist/SearchForm/index.d.ts +5 -0
- package/dist/ShadowExpandable/index.d.ts +19 -0
- package/dist/ShadowExpandable/util.d.ts +1 -0
- package/dist/Spinner/index.d.ts +9 -0
- package/dist/StylableFileInput/index.d.ts +4 -0
- package/dist/TextEllipsis/index.d.ts +7 -0
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/theme.d.ts +29 -0
- package/dist/Theme/valueResolver.d.ts +13 -0
- package/dist/_switchValue/index.d.ts +1 -0
- package/dist/_switchValue/tmpindex.d.ts +9 -0
- package/dist/_typeOf/index.d.ts +1 -0
- package/dist/_typeOf/tmptypeOf.d.ts +6 -0
- package/dist/assets/index-BG8CATwr.css +94 -0
- package/dist/createDataContext/index.d.ts +36 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.mjs +7951 -0
- package/dist/makeLink/index.d.ts +1 -0
- package/dist/makeLink/locationAwareLink.d.ts +290 -0
- package/dist/makeListOf/index.d.ts +13 -0
- package/dist/makeListOf/types.d.ts +12 -0
- package/dist/mergeable/index.d.ts +9 -0
- package/dist/mergeable/types.d.ts +4 -0
- package/dist/recursiveRendererSystem/arrayRenderer.d.ts +20 -0
- package/dist/recursiveRendererSystem/index.d.ts +5 -0
- package/dist/recursiveRendererSystem/objectRenderer.d.ts +31 -0
- package/dist/recursiveRendererSystem/recursiveRendererSystem.d.ts +7 -0
- package/dist/recursiveRendererSystem/rendererSpecList.d.ts +2 -0
- package/dist/recursiveRendererSystem/stories/Output.d.ts +46 -0
- package/dist/recursiveRendererSystem/types.d.ts +43 -0
- package/dist/replaceable/index.d.ts +13 -0
- package/dist/responsiveCss/index.d.ts +15 -0
- package/dist/responsiveCss/queryDeclarations.d.ts +8 -0
- package/dist/responsiveCss/types.d.ts +4 -0
- package/dist/s3Upload/index.d.ts +3 -0
- package/dist/styleResolver/index.d.ts +16 -0
- package/dist/styles.css +2 -0
- package/dist/switchValue/index.d.ts +9 -0
- package/dist/typeOf/index.d.ts +1 -0
- package/dist/typeOf/typeOf.d.ts +6 -0
- package/dist/useClosestBackgroundColor/getClosestBackgroundColor.d.ts +1 -0
- package/dist/useClosestBackgroundColor/index.d.ts +3 -0
- package/dist/useDefer/index.d.ts +15 -0
- package/dist/useFetch/index.d.ts +10 -0
- package/dist/useFileReadAs/fileReadAs.d.ts +3 -0
- package/dist/useFileReadAs/index.d.ts +3 -0
- package/dist/useListMeasures/index.d.ts +2 -0
- package/dist/useListMeasures/measureList.d.ts +13 -0
- package/dist/useListMeasures/useListMeasures.d.ts +7 -0
- package/dist/useListOverflow/computeListOverflow.d.ts +12 -0
- package/dist/useListOverflow/index.d.ts +1 -0
- package/dist/useListOverflow/useListOverflow.d.ts +9 -0
- package/dist/useLocalState/index.d.ts +1 -0
- package/dist/useMeasureLayer/index.d.ts +7 -0
- package/dist/useMergedContext/index.d.ts +6 -0
- package/dist/useObjectURL/index.d.ts +8 -0
- package/dist/usePromiseCreator/index.d.ts +1 -0
- package/dist/usePromiseCreator/usePromiseCreator.d.ts +4 -0
- package/dist/usePromiseState/index.d.ts +1 -0
- package/dist/usePromiseState/usePromiseState.d.ts +11 -0
- package/dist/usePromptUI/index.d.ts +4 -0
- package/dist/usePromptUI/pickPromptUIProps.d.ts +9 -0
- package/dist/usePromptUI/renderPromptInput.d.ts +3 -0
- package/dist/usePromptUI/types.d.ts +18 -0
- package/dist/usePromptUI/usePromptUI.d.ts +34 -0
- package/dist/useResolvable/index.d.ts +1 -0
- package/dist/useResolvable/useResolvable.d.ts +23 -0
- package/dist/util/array.d.ts +5 -0
- package/dist/util/cssTypes.d.ts +3 -0
- package/dist/util/domProps.d.ts +1 -0
- package/dist/util/getClosestBackgroundColor.d.ts +1 -0
- package/dist/util/index.d.ts +7 -0
- package/dist/util/isInputEqual.d.ts +1 -0
- package/dist/util/maybeValue.d.ts +5 -0
- package/dist/util/parse.d.ts +2 -0
- package/dist/util/propPicker.d.ts +6 -0
- package/dist/util/toCss.d.ts +6 -0
- package/dist/withDefaults/index.d.ts +3 -0
- package/package.json +84 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
2
|
+
export type SpacingValue = number | string | {
|
|
3
|
+
[key: string]: number | string;
|
|
4
|
+
};
|
|
5
|
+
export type FlexAlignItems = 'flex-start' | 'center' | 'flex-end' | 'strecth';
|
|
6
|
+
export type FlexJustifyContent = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
7
|
+
export type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
8
|
+
export type FlexDisplay = 'none' | 'flex' | 'inline-flex';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexDirection, FlexProps } from '../Flex';
|
|
3
|
+
import { ResponsiveValueInput } from '../Responsive';
|
|
4
|
+
import { CSSLength } from '../util';
|
|
5
|
+
export type FlexGridRenderItem = (item: any, sizingStyle: {
|
|
6
|
+
width?: ResponsiveValueInput<CSSLength>;
|
|
7
|
+
height?: ResponsiveValueInput<CSSLength>;
|
|
8
|
+
}) => React.ReactNode;
|
|
9
|
+
type Size = 'auto' | 'proportional' | ((item: any, items: any[]) => CSSLength);
|
|
10
|
+
export type FlexGridProps = FlexProps & {
|
|
11
|
+
groups: any[];
|
|
12
|
+
groupSize?: Size;
|
|
13
|
+
groupGap?: ResponsiveValueInput<CSSLength>;
|
|
14
|
+
rootDirection?: ResponsiveValueInput<FlexDirection>;
|
|
15
|
+
direction?: ResponsiveValueInput<FlexDirection>;
|
|
16
|
+
renderItem?: FlexGridRenderItem;
|
|
17
|
+
itemSize?: Size;
|
|
18
|
+
};
|
|
19
|
+
export declare const FLEX_GRID_PROPS: string[];
|
|
20
|
+
export declare function FlexGrid({ direction, rootDirection, groups, groupSize, groupGap, renderItem, itemSize, ...props }: FlexGridProps): React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FlexGrid';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CSSLength } from '../util';
|
|
3
|
+
export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}>, never>, {
|
|
6
|
+
spacing?: CSSLength | undefined;
|
|
7
|
+
}>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ElementProps } from './types';
|
|
3
|
+
export declare const Element: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ElementProps>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from './types';
|
|
3
|
+
export declare const HoverElement: {
|
|
4
|
+
Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}>, never>, {
|
|
7
|
+
spacing?: import("..").CSSLength | undefined;
|
|
8
|
+
}>>;
|
|
9
|
+
Element: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, import("./types").ElementProps>>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Placement = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3
|
+
export type ElementProps = {
|
|
4
|
+
placement?: Placement;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AspectRatioProps } from '../AspectRatio';
|
|
3
|
+
export type ImageProps = {
|
|
4
|
+
aspectRatio?: AspectRatioProps['ratio'];
|
|
5
|
+
width?: AspectRatioProps['width'];
|
|
6
|
+
height?: AspectRatioProps['height'];
|
|
7
|
+
objectFit?: AspectRatioProps['objectFit'];
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
src?: string | null;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
export declare const Image: React.ForwardRefExoticComponent<Omit<ImageProps, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MergeableComponentInput } from '../mergeable';
|
|
3
|
+
export type ImageWithFallbackProps = {
|
|
4
|
+
src?: string | null;
|
|
5
|
+
fallback?: boolean | MergeableComponentInput;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const ImageWithFallback: React.ForwardRefExoticComponent<Omit<ImageWithFallbackProps, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArrayInputProps } from './types';
|
|
3
|
+
export declare function ArrayInputProvider<ItemType = any>({ children, ...props }: ArrayInputProps & {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export declare function useArrayInput(): {
|
|
7
|
+
localValue: any[];
|
|
8
|
+
setLocalValue: (value: any[] | ((curr: any[]) => any[])) => void;
|
|
9
|
+
setValue: (value: any[] | ((curr: any[]) => any[])) => void;
|
|
10
|
+
setItem: (value: any) => void;
|
|
11
|
+
isMoving: boolean;
|
|
12
|
+
moveItem: ((item: any, toIndex: number, fromIndex: number) => any) | null | undefined;
|
|
13
|
+
isRemoving: boolean;
|
|
14
|
+
removeItem: ((item: any, index: number) => any) | null | undefined;
|
|
15
|
+
viewItem: ((item: any, index: number) => any) | null | undefined;
|
|
16
|
+
isAdding: boolean;
|
|
17
|
+
addItem: ((atIndex: number) => any) | null | undefined;
|
|
18
|
+
props: ArrayInputProps;
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArrayInputProps } from './types';
|
|
3
|
+
import { DroppableProps } from 'react-beautiful-dnd';
|
|
4
|
+
export declare const StrictModeDroppable: ({ children, ...props }: DroppableProps) => React.JSX.Element | null;
|
|
5
|
+
export declare function ValueList<ItemType = any>({}: ArrayInputProps<ItemType>): React.JSX.Element | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArrayInputProps } from './types';
|
|
3
|
+
import { DroppableProps } from 'react-beautiful-dnd';
|
|
4
|
+
export declare const StrictModeDroppable: ({ children, ...props }: DroppableProps) => React.JSX.Element | null;
|
|
5
|
+
export declare function ValueList<ItemType = any>({}: ArrayInputProps<ItemType>): React.JSX.Element | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps, InputSchema } from '../types';
|
|
3
|
+
import { CSSLength } from '../../util';
|
|
4
|
+
import { Input } from '../Input';
|
|
5
|
+
import { Output } from '../../Output';
|
|
6
|
+
import { DraggableProvided } from 'react-beautiful-dnd';
|
|
7
|
+
import { Merge } from 'type-fest';
|
|
8
|
+
import { MenuItemProps } from '../../Menu/DropdownMenu/MenuItem';
|
|
9
|
+
export type ItemComponentType = React.FC<ItemComponentProps>;
|
|
10
|
+
export type ItemInputComponentType = React.FC<Merge<Parameters<typeof Input>[0], {
|
|
11
|
+
index: number;
|
|
12
|
+
}>>;
|
|
13
|
+
export type ItemOutputComponentType = React.FC<Merge<Parameters<typeof Output>[0], {
|
|
14
|
+
index: number;
|
|
15
|
+
}>>;
|
|
16
|
+
export type ArrayInputProps<ItemType = any> = InputProps<ItemType[]> & {
|
|
17
|
+
ofType: string | InputSchema;
|
|
18
|
+
minLength?: number;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
color?: string;
|
|
21
|
+
itemLabel?: string;
|
|
22
|
+
addLabel?: string;
|
|
23
|
+
removeLabel?: string;
|
|
24
|
+
moveLabel?: string;
|
|
25
|
+
itemEditable?: boolean;
|
|
26
|
+
itemGap?: CSSLength;
|
|
27
|
+
ItemComponent?: ItemComponentType;
|
|
28
|
+
ItemInput?: ItemInputComponentType;
|
|
29
|
+
ItemOutput?: ItemOutputComponentType;
|
|
30
|
+
itemMenu?: (item: ItemType, index: number) => MenuItemProps[];
|
|
31
|
+
itemId?: (item: ItemType, index: number) => string | number;
|
|
32
|
+
onRemoveItem?: ((item: ItemType, index: number) => any) | null;
|
|
33
|
+
onMoveItem?: ((item: ItemType, toIndex: number, fromIndex: number) => any) | null;
|
|
34
|
+
onAddItem?: ((atIndex: number) => any) | null;
|
|
35
|
+
onViewItem?: ((item: ItemType, index: number) => any) | null;
|
|
36
|
+
};
|
|
37
|
+
export type ItemComponentProps<ItemType = any> = {
|
|
38
|
+
draggableProvided: DraggableProvided;
|
|
39
|
+
value: ItemType;
|
|
40
|
+
index: number;
|
|
41
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Merge } from 'type-fest';
|
|
3
|
+
import { InputProps } from '../types';
|
|
4
|
+
type BooleanCheckboxInputProps = Merge<InputProps<boolean | 'indeterminate'>, {
|
|
5
|
+
description: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function BooleanCheckboxInput({ value, onSetValue, description, invalid, required, }: BooleanCheckboxInputProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '../types';
|
|
3
|
+
import { FlexProps } from '../../Flex';
|
|
4
|
+
import { Merge } from 'type-fest';
|
|
5
|
+
import { OptionsInput } from '../util';
|
|
6
|
+
type CheckboxSelectInputProps<ValueType = string> = FlexProps & Merge<InputProps, {
|
|
7
|
+
value?: ValueType[];
|
|
8
|
+
options: OptionsInput<ValueType>;
|
|
9
|
+
sort?: boolean | ((a: ValueType, b: ValueType) => number);
|
|
10
|
+
}>;
|
|
11
|
+
export declare function CheckboxSelectInput<ValueType = string>({ value: arrayValue, onSetValue: onSetArrayValue, options, sort, ...flexProps }: CheckboxSelectInputProps<ValueType>): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Merge } from 'type-fest';
|
|
3
|
+
import { InputProps } from '../types';
|
|
4
|
+
type DateTimeInputProps = Merge<InputProps, {
|
|
5
|
+
value?: string | null;
|
|
6
|
+
precision?: 'day' | 'minute';
|
|
7
|
+
min?: string;
|
|
8
|
+
max?: string;
|
|
9
|
+
containerStyle?: React.CSSProperties;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function DateTimeInput({ value, onSetValue, precision, required, min, max, containerStyle, ...props }: DateTimeInputProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INPUTS: import("../recursiveRendererSystem").RendererSpecList;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps } from '../types';
|
|
3
|
+
declare const InputProvider: import("react").FC<import("../../recursiveRendererSystem").RendererContextProviderProps>, Input: import("react").FC<import("../../recursiveRendererSystem").RecursiveRendererProps<Partial<InputProps>>>;
|
|
4
|
+
export { InputProvider, Input };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexGridProps } from '../../FlexGrid';
|
|
3
|
+
import { InputProps, InputSchema } from '../types';
|
|
4
|
+
import type { SetOptional } from 'type-fest';
|
|
5
|
+
export type NamedInputSchemaList = {
|
|
6
|
+
[key: string]: InputSchema | string;
|
|
7
|
+
};
|
|
8
|
+
type LayoutItem = string | React.ReactNode;
|
|
9
|
+
type LayoutGroup = LayoutItem[];
|
|
10
|
+
type LayoutRoot = (LayoutItem | LayoutGroup)[];
|
|
11
|
+
type InputPropGetter = (name: string, schema: InputSchema | string) => SetOptional<InputProps, 'name'>;
|
|
12
|
+
export type InputGridProps = {
|
|
13
|
+
schema: NamedInputSchemaList;
|
|
14
|
+
layout?: LayoutRoot;
|
|
15
|
+
inputProps: InputPropGetter;
|
|
16
|
+
} & Omit<FlexGridProps, 'groups'>;
|
|
17
|
+
export declare const INPUT_GRID_PROPS: string[];
|
|
18
|
+
export declare function InputGrid({ schema, layout, gap, direction, inputProps, ...flexGridProps }: InputGridProps): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '../types';
|
|
3
|
+
export type InputLayoutProps = Partial<InputProps> & {
|
|
4
|
+
label?: string;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
inputId: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
suffix?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare function InputLayout({ children, label, helperText, suffix, required, invalid, errorMessage, inputId, }: InputLayoutProps): React.JSX.Element;
|
|
11
|
+
export declare function withInputLayout<InputComponentProps extends InputProps = InputProps>(InputComponent: React.FC<InputComponentProps>): React.FC<InputLayoutProps & InputComponentProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Merge } from 'type-fest';
|
|
3
|
+
import { InputProps } from '../types';
|
|
4
|
+
import { FileDropzoneProps } from '../../FileDropzone';
|
|
5
|
+
type FileLike = {
|
|
6
|
+
name: string;
|
|
7
|
+
size: number;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
declare function defaultIssDuplicate(existingFiles: (File | FileLike)[], file: File): boolean;
|
|
11
|
+
type MultiFileInputProps = Merge<Merge<InputProps<File[]>, FileDropzoneProps>, {
|
|
12
|
+
isDuplicate?: false | typeof defaultIssDuplicate;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function MultiFileInput({ value: fileArray, onSetValue: onSetFileArray, isDuplicate, maxLength, ...props }: MultiFileInputProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputGridProps } from '../InputGrid';
|
|
3
|
+
import { InputProps, InputSchema } from '../types';
|
|
4
|
+
import { Merge } from 'type-fest';
|
|
5
|
+
type AnyObject = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
type FullKeySchema = Merge<InputSchema, {
|
|
9
|
+
getValue?: (currentObjectValue: AnyObject) => any;
|
|
10
|
+
setValue?: (currentObjectValue: AnyObject, nextKeyValue: any) => any;
|
|
11
|
+
}>;
|
|
12
|
+
type ObjectInputProps = InputProps<AnyObject> & Omit<InputGridProps, 'schema' | 'inputProps'> & {
|
|
13
|
+
properties: {
|
|
14
|
+
[key: string]: string | FullKeySchema;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function ObjectInput({ id, value: currentObjectValue, onSetValue: onSetObjectValue, disabled, properties, ...props }: ObjectInputProps): React.JSX.Element;
|
|
18
|
+
export declare namespace ObjectInput {
|
|
19
|
+
var labeled: null;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexProps } from '../../Flex';
|
|
3
|
+
import { Merge } from 'type-fest';
|
|
4
|
+
import { InputProps } from '../types';
|
|
5
|
+
import { OptionsInput } from '../util';
|
|
6
|
+
type RadioSelectInputProps<ValueType = string> = FlexProps & Merge<InputProps, {
|
|
7
|
+
value?: ValueType;
|
|
8
|
+
options: OptionsInput<ValueType>;
|
|
9
|
+
sort?: boolean | ((a: ValueType, b: ValueType) => number);
|
|
10
|
+
valueStringify?: (value: ValueType) => string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function RadioSelectInput<ValueType = string>({ value, onSetValue, disabled, options, ...flexProps }: RadioSelectInputProps<ValueType>): React.JSX.Element;
|
|
13
|
+
export {};
|