@orioro/react-ui-core 0.0.3 → 0.0.5
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/AppHeader/AppHeaderContext.d.ts +11 -2
- package/dist/AppHeader/Root.d.ts +1 -1
- package/dist/AppHeader/index.d.ts +2 -2
- package/dist/Box/Box.d.ts +2 -0
- package/dist/Button/Button.d.ts +2 -2
- package/dist/Button/ButtonCore.d.ts +2 -0
- package/dist/Button/LinkButton.d.ts +2 -2
- package/dist/Debug/index.d.ts +1 -0
- package/dist/Dialog/AuthDialog/AuthDialog.d.ts +2 -1
- package/dist/Dialog/AuthDialog/SignUpForm.d.ts +2 -2
- package/dist/Dialog/AuthDialog/dialogSystemSpec.d.ts +2 -0
- package/dist/Dialog/AuthDialog/index.d.ts +1 -0
- package/dist/Dialog/ConfirmDialog/ConfirmDialog.d.ts +1 -1
- package/dist/Dialog/ConfirmDialog/dialogSystemSpec.d.ts +2 -0
- package/dist/Dialog/ConfirmDialog/index.d.ts +1 -0
- package/dist/Dialog/ConfirmDialog/types.d.ts +1 -0
- package/dist/Dialog/DialogSystem_legacy/DialogSystem_.d.ts +2 -0
- package/dist/Dialog/DialogSystem_legacy/index.stories_.d.ts +7 -0
- package/dist/Dialog/DialogSystem_legacy/prompt.stories_.d.ts +6 -0
- package/dist/Dialog/DialogSystem_legacy/tmpDialogSystem.d.ts +3 -0
- package/dist/Dialog/DialogSystem_legacy/types.d.ts +25 -0
- package/dist/Dialog/InfoDialog/dialogSystemSpec.d.ts +2 -0
- package/dist/Dialog/InfoDialog/index.d.ts +1 -0
- package/dist/Dialog/LoadingDialog/dialogSystemSpec.d.ts +2 -0
- package/dist/Dialog/LoadingDialog/index.d.ts +1 -0
- package/dist/Dialog/OptionsDialog/dialogSystemSpec.d.ts +2 -0
- package/dist/Dialog/OptionsDialog/index.d.ts +1 -0
- package/dist/Dialog/PromptDialog/dialogSystemSpec.d.ts +2 -0
- package/dist/Dialog/PromptDialog/index.d.ts +1 -0
- package/dist/Dialog/createDialogSystem/createDialogSystem.d.ts +3 -10
- package/dist/Dialog/createDialogSystem/dialogSystemReducer.d.ts +2 -0
- package/dist/Dialog/createDialogSystem/dialogSystemSpecs.d.ts +2 -0
- package/dist/Dialog/createDialogSystem/index.d.ts +2 -1
- package/dist/Dialog/createDialogSystem/tmp_util.d.ts +16 -0
- package/dist/Dialog/createDialogSystem/types.d.ts +48 -0
- package/dist/Dialog/createDialogSystem/useDialog.d.ts +6 -2
- package/dist/Dialog/createDialogSystem/util.d.ts +16 -0
- package/dist/Dialog/createDialogSystem2/createDialogSystem.d.ts +6 -0
- package/dist/Dialog/createDialogSystem2/dialogSystemReducer.d.ts +2 -0
- package/dist/Dialog/createDialogSystem2/index.d.ts +2 -0
- package/dist/Dialog/createDialogSystem2/proxyRef.d.ts +2 -0
- package/dist/Dialog/createDialogSystem2/types.d.ts +48 -0
- package/dist/Dialog/createDialogSystem2/util.d.ts +16 -0
- package/dist/Dialog/createDialogSystem_legacy/createDialogSystem.d.ts +13 -0
- package/dist/Dialog/createDialogSystem_legacy/index.d.ts +1 -0
- package/dist/Dialog/createDialogSystem_legacy/proxyRef.d.ts +2 -0
- package/dist/Dialog/createDialogSystem_legacy/useDialog.d.ts +22 -0
- package/dist/Dialog/specUtil/index.d.ts +5 -0
- package/dist/EvenSpacedList/EvenSpacedList.d.ts +6 -2
- package/dist/FileDropzone/index.d.ts +1 -0
- package/dist/Flex/Flex.d.ts +27 -16
- package/dist/FlexGrid/FlexGrid.d.ts +23 -1
- package/dist/Input/BooleanCheckboxInput/index.d.ts +28 -6
- package/dist/Input/InputGrid/index.d.ts +5 -1
- package/dist/Input/ObjectInput/index.d.ts +44 -8
- package/dist/Input/RangeInput/RangeInput.d.ts +11 -0
- package/dist/Input/RangeInput/index.d.ts +1 -0
- package/dist/Input/RichTextInput/RichTextInput.d.ts +13 -13
- package/dist/Input/RichTextInput/RichTextInput_20240730_backup_NO_MARKDOWN.d.ts +13 -13
- package/dist/Input/SingleFileInput/index.d.ts +65 -6
- package/dist/Input/SingleFileInput/middleware.d.ts +4 -0
- package/dist/Input/SliderInput/SliderInput.d.ts +16 -0
- package/dist/Input/SliderInput/index.d.ts +1 -0
- package/dist/Input/SwitchInput/index.d.ts +6 -0
- package/dist/Input/TextInput/index.d.ts +14 -13
- package/dist/Input/TextInput/parseValidator.d.ts +1 -1
- package/dist/Input/TextInput/types.d.ts +1 -0
- package/dist/Input/TextInput/useTextInput.d.ts +3 -2
- package/dist/Input/TextareaInput/index.d.ts +13 -13
- package/dist/Input/TreeSelectInput/TreeSelectInput.d.ts +42 -0
- package/dist/Input/TreeSelectInput/index.d.ts +1 -0
- package/dist/Input/index.d.ts +5 -0
- package/dist/Input/types.d.ts +1 -1
- package/dist/Input/useValidation/useValidation.d.ts +1 -1
- package/dist/Interaction/constants.d.ts +1 -0
- package/dist/Interaction/index.d.ts +1 -0
- package/dist/LanguageSelector/index.d.ts +3 -2
- package/dist/Markdown/index.d.ts +7 -0
- package/dist/Menu/ButtonBarMenu/ButtonBarMenu.d.ts +13 -0
- package/dist/Menu/ButtonBarMenu/OverflowableButtonBarMenu.d.ts +8 -0
- package/dist/Menu/ButtonBarMenu/index.d.ts +2 -13
- package/dist/UIContext/UIContext.d.ts +16 -0
- package/dist/UIContext/index.d.ts +1 -0
- package/dist/cascadingContextProvider/index.d.ts +8 -0
- package/dist/componentMaker/componentMaker.d.ts +4 -0
- package/dist/entriesByIdReducer/entriesByIdReducer.d.ts +26 -0
- package/dist/entriesByIdReducer/index.d.ts +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +4501 -5209
- package/dist/makeLink/locationAwareLink.d.ts +1 -1
- package/dist/mergeable/index.d.ts +1 -0
- package/dist/mergeable/mergeRender.d.ts +3 -0
- package/dist/mergeable/types.d.ts +2 -2
- package/dist/mergeable/util.d.ts +1 -0
- package/dist/useByIdState/index.d.ts +8 -0
- package/dist/usePromptUI/renderPromptInput.d.ts +1 -1
- package/dist/usePromptUI/types.d.ts +1 -2
- package/dist/useRefByKey/index.d.ts +1 -0
- package/dist/util/htmlTagComponent.d.ts +2 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/mergeChildren.d.ts +2 -0
- package/package.json +9 -6
|
@@ -61,7 +61,7 @@ declare function defaultPropGetter(props: LinkProps, active: boolean): {
|
|
|
61
61
|
results?: number | undefined;
|
|
62
62
|
security?: string | undefined;
|
|
63
63
|
unselectable?: "on" | "off" | undefined;
|
|
64
|
-
inputMode?: "
|
|
64
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
65
65
|
is?: string | undefined;
|
|
66
66
|
"aria-activedescendant"?: string | undefined;
|
|
67
67
|
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Merge } from 'type-fest';
|
|
3
3
|
import { MergeableComponentInput } from './types';
|
|
4
4
|
export * from './types';
|
|
5
|
+
export * from './mergeRender';
|
|
5
6
|
export declare function mergeable<ComponentProps extends {
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
}>(Component: React.FC<ComponentProps>, defaultProps?: Partial<ComponentProps>): React.FC<Merge<Omit<ComponentProps, 'children'>, {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MergeableComponentInput } from './types';
|
|
3
|
+
export declare function mergeRender<ComponentProps extends {}>(Component: React.FC<ComponentProps>, defaultProps: ComponentProps, input: MergeableComponentInput<ComponentProps>): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export type MergeableComponentInput = React.ReactNode | {
|
|
2
|
+
export type MergeableComponentInput<ComponentProps extends Record<string, any> = Record<string, any>> = null | boolean | React.ReactNode | {
|
|
3
3
|
[key: string]: any;
|
|
4
|
-
};
|
|
4
|
+
} | ((props: ComponentProps, Component: React.FC<ComponentProps>) => React.ReactNode);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isReactComponent(component: any): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type DataEntry = {
|
|
2
|
+
id: string | number;
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
type EntriesById<EntryT extends DataEntry = DataEntry> = Record<string, EntryT>;
|
|
6
|
+
type EntriesArray<EntryT extends DataEntry = DataEntry> = EntryT[];
|
|
7
|
+
export declare function useByIdState(input: EntriesById | EntriesArray): void;
|
|
8
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PromptInputProps, PromptUIInputProp } from './types';
|
|
3
|
-
export declare
|
|
3
|
+
export declare const renderPromptInput: <InputType>(input: PromptUIInputProp<InputType>, promptInputProps: PromptInputProps<InputType>) => React.ReactNode;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { InputSchema, ValueDiff } from '../Input';
|
|
3
2
|
export type PromptInputProps<InputType> = {
|
|
4
3
|
value: InputType | undefined;
|
|
5
4
|
onSetValue: (value: InputType) => void;
|
|
6
5
|
disabled: boolean;
|
|
7
6
|
};
|
|
8
|
-
export type PromptUIInputProp<InputType> = string | InputSchema
|
|
7
|
+
export type PromptUIInputProp<InputType> = string | InputSchema;
|
|
9
8
|
export type PromptUIProps<InputType = any> = {
|
|
10
9
|
active: boolean;
|
|
11
10
|
defaultValue?: InputType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRefByKey<T>(): readonly [Record<string, T | null>, (key: string) => (ref: T | null) => void];
|
package/dist/util/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orioro/react-ui-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"prepublish": "yarn build"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@orioro/dev": "
|
|
28
|
+
"@orioro/dev": "workspace:^",
|
|
29
29
|
"rollup": "^4.13.0",
|
|
30
30
|
"rollup-plugin-import-css": "^3.5.0",
|
|
31
31
|
"storybook": "^8.0.0"
|
|
@@ -37,9 +37,12 @@
|
|
|
37
37
|
"@mdi/js": "^7.4.47",
|
|
38
38
|
"@mdi/react": "^1.6.1",
|
|
39
39
|
"@mui/base": "^5.0.0-beta.40",
|
|
40
|
-
"@orioro/react-select": "
|
|
41
|
-
"@orioro/
|
|
42
|
-
"@orioro/
|
|
40
|
+
"@orioro/react-select": "workspace:^",
|
|
41
|
+
"@orioro/react-tree": "workspace:^",
|
|
42
|
+
"@orioro/resolve": "workspace:^",
|
|
43
|
+
"@orioro/tree-model": "workspace:^",
|
|
44
|
+
"@orioro/util": "workspace:^",
|
|
45
|
+
"@orioro/validate": "workspace:^",
|
|
43
46
|
"@radix-ui/react-collapsible": "^1.1.0",
|
|
44
47
|
"@radix-ui/react-dialog": "^1.0.5",
|
|
45
48
|
"@radix-ui/react-icons": "^1.3.0",
|
|
@@ -81,4 +84,4 @@
|
|
|
81
84
|
"styled-components": "^6.1.8",
|
|
82
85
|
"type-fest": "^4.12.0"
|
|
83
86
|
}
|
|
84
|
-
}
|
|
87
|
+
}
|