@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,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseTextInputHandle } from '../TextInput/useTextInput';
|
|
3
|
+
export declare const TextareaInput: React.ForwardRefExoticComponent<{
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
onSetValue: (value: any) => void;
|
|
7
|
+
onBlur?: (() => void) | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
required?: string | boolean | undefined;
|
|
10
|
+
error?: Error | import("..").ErrorLike | undefined;
|
|
11
|
+
errorStyle?: React.CSSProperties | undefined;
|
|
12
|
+
validate?: boolean | (string | ((input: any, context: {
|
|
13
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
14
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | {
|
|
15
|
+
[key: string]: (string | ((input: any, context: {
|
|
16
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
17
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any) | [string | ((input: any, context: {
|
|
18
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
19
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput];
|
|
20
|
+
}) | [string | ((input: any, context: {
|
|
21
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
22
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | {
|
|
23
|
+
[key: string]: (string | ((input: any, context: {
|
|
24
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
25
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any) | [string | ((input: any, context: {
|
|
26
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
27
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput];
|
|
28
|
+
}, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput] | undefined;
|
|
29
|
+
value?: string | undefined;
|
|
30
|
+
valueDebounceMs?: number | undefined;
|
|
31
|
+
validateDebounceMs?: number | undefined;
|
|
32
|
+
mask?: any;
|
|
33
|
+
} & {
|
|
34
|
+
minRows?: number | undefined;
|
|
35
|
+
maxRows?: number | undefined;
|
|
36
|
+
} & React.RefAttributes<UseTextInputHandle>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './ArrayInput';
|
|
2
|
+
export * from './DateTimeInput';
|
|
3
|
+
export * from './INPUTS';
|
|
4
|
+
export * from './Input';
|
|
5
|
+
export * from './InputGrid';
|
|
6
|
+
export * from './MarkdownInput';
|
|
7
|
+
export * from './MultiFileInput';
|
|
8
|
+
export * from './ObjectInput';
|
|
9
|
+
export * from './RadioSelectInput';
|
|
10
|
+
export * from './RichTextInput';
|
|
11
|
+
export * from './SingleFileInput';
|
|
12
|
+
export * from './TextareaInput';
|
|
13
|
+
export * from './TextInput';
|
|
14
|
+
export * from './types';
|
|
15
|
+
export * from './util';
|
|
16
|
+
export * from './valueUtil';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AsyncValidatorSystem } from '@orioro/util/dist/validate/types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { Merge } from 'type-fest';
|
|
4
|
+
export type ErrorLike = {
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The base interface upon which all compatible inputs
|
|
9
|
+
* will be constructed
|
|
10
|
+
*/
|
|
11
|
+
export type InputProps<ValueType = any> = {
|
|
12
|
+
id?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
value?: ValueType;
|
|
15
|
+
onSetValue: (value: ValueType) => void;
|
|
16
|
+
onBlur?: () => void;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
required?: boolean | string;
|
|
19
|
+
error?: ErrorLike | Error;
|
|
20
|
+
errorStyle?: CSSProperties;
|
|
21
|
+
validate?: AsyncValidatorSystem['ValidatorInput'] | boolean;
|
|
22
|
+
};
|
|
23
|
+
export type InputSchema = Merge<Partial<InputProps>, {
|
|
24
|
+
type: string;
|
|
25
|
+
variant?: string;
|
|
26
|
+
defaultValue?: any;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useValidation';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AsyncValidatorSystem, DetailedInvalid } from '@orioro/util/dist/validate/types';
|
|
2
|
+
import { ErrorLike, InputProps } from '../types';
|
|
3
|
+
export type UseValidationProps = {
|
|
4
|
+
value: InputProps['value'];
|
|
5
|
+
error: InputProps['error'];
|
|
6
|
+
validator: AsyncValidatorSystem['ValidatorInput'] | false;
|
|
7
|
+
};
|
|
8
|
+
export declare function useValidation({ value, error, validator }: UseValidationProps): {
|
|
9
|
+
validationState: "loading" | "idle" | ErrorLike | DetailedInvalid | "valid";
|
|
10
|
+
setValidationState: (v: "loading" | "idle" | ErrorLike | DetailedInvalid | "valid" | ((currValue: "loading" | "idle" | ErrorLike | DetailedInvalid | "valid") => "loading" | "idle" | ErrorLike | DetailedInvalid | "valid")) => void;
|
|
11
|
+
validationError: ErrorLike | DetailedInvalid | null;
|
|
12
|
+
runValidation: () => Promise<true | DetailedInvalid>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ParsedOption<ValueType = any> = {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: ValueType;
|
|
5
|
+
};
|
|
6
|
+
export type Option<ValueType = any> = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: ValueType;
|
|
9
|
+
};
|
|
10
|
+
export type OptionsInput<ValueType = any> = (Option<ValueType> | string | [string, ValueType])[];
|
|
11
|
+
export declare function parseOptions(optionsInput?: OptionsInput): ParsedOption[];
|
|
12
|
+
export * from './omitInputProps';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
import { InputProps } from '../types';
|
|
3
|
+
export declare const INPUT_PROPS: (keyof InputProps)[];
|
|
4
|
+
export declare function omitInputProps(props: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}): import("lodash").Omit<{
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}, keyof InputProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Operation } from 'fast-json-patch';
|
|
2
|
+
export type ValueDiff = boolean | Operation[];
|
|
3
|
+
export declare function diffInputValues<InputType>(valueA: InputType | undefined, valueB: InputType | undefined): ValueDiff;
|
|
4
|
+
export declare function areInputValuesEqual<InputType>(valueA: InputType | undefined, valueB: InputType | undefined): boolean;
|
|
5
|
+
export declare function computeUpdatedKeys(initialValue: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}, updatedValue: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function strValue(str: any): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type LanguageSelectorProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
onSetValue: (nextValue: string) => any;
|
|
5
|
+
options: {
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
export declare function LanguageSelector({ value, onSetValue, options, }: LanguageSelectorProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpinnerProps } from '../Spinner';
|
|
3
|
+
export declare function LoadingIndicator({ message, children, style, ...spinnerProps }: {
|
|
4
|
+
message?: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
} & SpinnerProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActionItem, LinkItem, MenuItem } from '../types';
|
|
3
|
+
import { Components } from './types';
|
|
4
|
+
export type MenuItemProps = {
|
|
5
|
+
item: MenuItem;
|
|
6
|
+
onSelect: (item: ActionItem | LinkItem) => void;
|
|
7
|
+
components?: Components;
|
|
8
|
+
};
|
|
9
|
+
export declare function MenuItem({ item, onSelect, components: cp, }: MenuItemProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActionItem, LinkItem, MenuItemInput } from '../types';
|
|
3
|
+
import { Components } from './types';
|
|
4
|
+
type ActionHandler = (item: ActionItem | LinkItem) => void;
|
|
5
|
+
type ButtonBarProps = {
|
|
6
|
+
options: MenuItemInput[];
|
|
7
|
+
onSelect: ActionHandler | {
|
|
8
|
+
[key: string]: ActionHandler;
|
|
9
|
+
};
|
|
10
|
+
components?: Components;
|
|
11
|
+
};
|
|
12
|
+
export declare function ButtonBarMenu({ options, onSelect, components, }: ButtonBarProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActionItem, LinkItem, MenuItem as MenuItemType } from '../types';
|
|
3
|
+
import { Components } from './types';
|
|
4
|
+
export type MenuItemProps = {
|
|
5
|
+
item: MenuItemType;
|
|
6
|
+
onSelect: (item: ActionItem | LinkItem) => void;
|
|
7
|
+
components?: Components;
|
|
8
|
+
};
|
|
9
|
+
export declare function MenuItem({ item, onSelect, components: cp, }: MenuItemProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownMenu as RDropdown } from '@radix-ui/themes';
|
|
3
|
+
import { ActionItem, MenuItemInput, LinkItem } from '../types';
|
|
4
|
+
import { Components } from './types';
|
|
5
|
+
type DropdownMenuProps = {
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
options: MenuItemInput[];
|
|
8
|
+
onSelect: (item: ActionItem | LinkItem) => void;
|
|
9
|
+
components?: Components;
|
|
10
|
+
};
|
|
11
|
+
export declare function DropdownMenu({ children, options, onSelect, components, }: DropdownMenuProps): React.JSX.Element;
|
|
12
|
+
export declare namespace DropdownMenu {
|
|
13
|
+
var TriggerIcon: React.ForwardRefExoticComponent<RDropdown.TriggerIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
14
|
+
var Item: React.ForwardRefExoticComponent<RDropdown.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SEPARATOR = "---";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuItemInput } from './types';
|
|
2
|
+
type AnyContext = {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
type OptionSpec<ContextProps = AnyContext> = MenuItemInput | ((context: ContextProps) => MenuItemInput | MenuItemInput[]);
|
|
6
|
+
export declare function resolveOptions(optionSpecs: OptionSpec[], context: AnyContext): MenuItemInput[];
|
|
7
|
+
export declare function withPermission(permission: string, optionOrOptions: MenuItemInput | MenuItemInput[]): (context: AnyContext) => false | Omit<import("./types").ActionItem, "type"> | import("./types").SeparatorItem | "---" | MenuItemInput[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ItemInput<ItemType> = ItemType | Omit<ItemType, 'type'>;
|
|
3
|
+
export type MenuItemBase = {
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export type ActionItem = MenuItemBase & {
|
|
9
|
+
type: 'action';
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
export type ActionItemInput = ItemInput<ActionItem>;
|
|
14
|
+
export type LinkItem = MenuItemBase & {
|
|
15
|
+
type: 'link';
|
|
16
|
+
href: string;
|
|
17
|
+
target?: '_blank' | '_self';
|
|
18
|
+
};
|
|
19
|
+
export type LinkItemInput = ItemInput<LinkItem>;
|
|
20
|
+
export type SubMenuItem = MenuItemBase & {
|
|
21
|
+
type: 'subMenu';
|
|
22
|
+
options: MenuItem[];
|
|
23
|
+
};
|
|
24
|
+
export type SubMenuItemInput = ItemInput<SubMenuItem>;
|
|
25
|
+
export type SeparatorItem = {
|
|
26
|
+
type: 'separator';
|
|
27
|
+
};
|
|
28
|
+
export type SeparatorItemInput = SeparatorItem | '---';
|
|
29
|
+
export type MenuItem = ActionItem | LinkItem | SubMenuItem | SeparatorItem;
|
|
30
|
+
export type MenuItemInput = ActionItemInput | LinkItemInput | SubMenuItemInput | SeparatorItemInput;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OutputProps } from '../types';
|
|
3
|
+
export declare function LabeledLayout({ label, helperText, children, }: OutputProps & {
|
|
4
|
+
label?: string;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
export declare function withLabeledLayout(OutputComponent: React.FC<OutputProps>): ({ label, helperText, ...props }: OutputProps & {
|
|
9
|
+
label?: string | undefined;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OUTPUTS: import("../recursiveRendererSystem").RendererSpecList;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ObjectOutput: ({ properties, layout, value: objectValue, gap, direction, ...flexGridProps }: {
|
|
3
|
+
properties: {
|
|
4
|
+
[key: string]: import("../../recursiveRendererSystem").RendererSchemaInput<{
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
layout?: (string | string[])[] | undefined;
|
|
9
|
+
value?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
} | null | undefined;
|
|
12
|
+
} & Omit<import("../..").FlexGridProps, "groups">) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const OutputProvider: import("react").FC<import("../../recursiveRendererSystem").RendererContextProviderProps>, Output: import("react").FC<import("../../recursiveRendererSystem").RecursiveRendererProps<import("../../recursiveRendererSystem").AnySchemaProps>>;
|
|
3
|
+
export { Output, OutputProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Output';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './ArrayOutput';
|
|
2
|
+
export * from './BooleanCheckboxOutput';
|
|
3
|
+
export * from './CheckboxSelectOutput';
|
|
4
|
+
export * from './DateTimeOutput';
|
|
5
|
+
export * from './FileOutput';
|
|
6
|
+
export * from './LabeledLayout';
|
|
7
|
+
export * from './MarkdownOutput';
|
|
8
|
+
export * from './MultiFileOutput';
|
|
9
|
+
export * from './ObjectOutput';
|
|
10
|
+
export * from './Output';
|
|
11
|
+
export * from './RichTextOutput';
|
|
12
|
+
export * from './TextOutput';
|
|
13
|
+
export * from './withPlaceholder';
|
|
14
|
+
export * from './OUTPUTS';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function withPlaceholder(Component: any, { notEmpty, placeholder: defaultPlaceholder, PlaceholderComponent, }?: {
|
|
2
|
+
notEmpty?: typeof defaultNotEmpty | undefined;
|
|
3
|
+
placeholder?: null | undefined;
|
|
4
|
+
PlaceholderComponent?: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>> | undefined;
|
|
5
|
+
}): (props: any) => React.JSX.Element | null;
|
|
6
|
+
declare function defaultNotEmpty(value: any): boolean;
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Popover } from '@radix-ui/themes';
|
|
3
|
+
import { PromptPopoverProps } from './types';
|
|
4
|
+
declare function Content({ onConfirmDiscardUnsubmittedChanges, ...props }: PromptPopoverProps): React.JSX.Element;
|
|
5
|
+
export declare const PromptPopover: {
|
|
6
|
+
Root: React.FC<Popover.RootProps>;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<Popover.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Anchor: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Content: typeof Content;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PromptPopover';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FlexProps, Popover } from '@radix-ui/themes';
|
|
2
|
+
import { MergeableComponentInput } from '../mergeable';
|
|
3
|
+
import { PromptUIProps } from '../usePromptUI';
|
|
4
|
+
export type PromptPopoverProps = PromptUIProps & Partial<{
|
|
5
|
+
restore: MergeableComponentInput;
|
|
6
|
+
cancel: MergeableComponentInput;
|
|
7
|
+
submit: MergeableComponentInput;
|
|
8
|
+
buttonBar: FlexProps;
|
|
9
|
+
}> & Parameters<typeof Popover.Content>[0];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResponsiveProps } from './types';
|
|
3
|
+
export declare const Responsive: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, ResponsiveProps>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme } from '../Theme';
|
|
3
|
+
import { ResponsiveValue } from '../responsiveCss';
|
|
4
|
+
export * from '../responsiveCss';
|
|
5
|
+
type PseudoCSSStyleType = {
|
|
6
|
+
[key: string]: string | number | ResponsiveValue<any> | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type ResponsiveProps = {
|
|
9
|
+
style?: PseudoCSSStyleType;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
theme?: Partial<Theme>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Block } from '@blocknote/core';
|
|
3
|
+
type BlockRendererProps = {
|
|
4
|
+
block: Block;
|
|
5
|
+
};
|
|
6
|
+
export declare function BlockRenderer({ block }: BlockRendererProps): React.JSX.Element;
|
|
7
|
+
export declare function BlockRendererList({ blocks }: {
|
|
8
|
+
blocks: Block[];
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InlineContent } from './types';
|
|
3
|
+
export declare function InlineContentRenderer({ inlineContent, }: {
|
|
4
|
+
inlineContent: InlineContent;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export declare function InlineContentRendererList({ inlineContents, }: {
|
|
7
|
+
inlineContents: InlineContent[];
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BlockNote represents list items as isolate blocks.
|
|
3
|
+
* - bullteListItem
|
|
4
|
+
* - numberedListItem
|
|
5
|
+
*
|
|
6
|
+
* We must group them into list blocks before rendering
|
|
7
|
+
* in order to facilitate rendering to <ul> and <ol> tags
|
|
8
|
+
*/
|
|
9
|
+
import { Block } from '@blocknote/core';
|
|
10
|
+
export declare function groupListItems(blocks: Block[]): Block[];
|